UNPKG

mns-node-sdk

Version:
51 lines (50 loc) 2.91 kB
import * as types from './types'; export default class Client { accountId: string; accessKeyID: string; accessKeySecret: string; region: string; endpointDomain: string; endpoint: string; keepAlive: boolean; retries: number; constructor(configs: { accountId: string; region: string; accessKeyId: string; accessKeySecret: string; secure?: boolean; internal?: boolean; vpc?: boolean; keepAlive?: boolean; retries?: number; }); createQueue(params: types.CreateQueueRequest): Promise<types.CreateQueueResponse>; deleteQueue(params: types.DeleteQueueRequest): Promise<void>; listQueue(params?: types.ListQueueRequest): Promise<types.ListQueueResponse>; getQueueAttributes(params: types.GetQueueAttributesRequest): Promise<types.GetQueueAttributesResponse>; setQueueAttributes(params: types.SetQueueAttributesRequest): Promise<void>; sendMessage(params: types.SendMessageRequest): Promise<types.SendMessageResponse>; batchSendMessage(params: types.BatchSendMessageRequest): Promise<types.SendMessageResponse[]>; receiveMessage(params: types.ReceiveMessageRequest): Promise<types.ReceiveMessageResponse>; batchReceiveMessage(params: types.BatchReceiveMessageRequest): Promise<types.ReceiveMessageResponse[]>; peekMessage(params: types.PeekMessageRequest): Promise<types.PeekMessageResponse>; batchPeekMessage(params: types.BatchPeekMessageRequest): Promise<types.PeekMessageResponse[]>; deleteMessage(params: types.DeleteMessageRequest): Promise<void>; batchDeleteMessage(params: types.BatchDeleteMessageRequest): Promise<types.DeleteMessageResponse[] | void>; changeMessageVisibility(params: types.ChangeMessageVisibilityRequest): Promise<types.ChangeMessageVisibilityResponse>; createTopic(params: types.CreateTopicRequest): Promise<types.CreateTopicResponse>; deleteTopic(params: types.DeleteTopicRequest): Promise<void>; listTopic(params: types.ListTopicRequest): Promise<types.ListTopicResponse>; getTopicAttributes(params: types.GetTopicAttributesRequest): Promise<types.GetTopicAttributesResponse>; setTopicAttributes(params: types.SetTopicAttributesRequest): Promise<void>; subscribe(params: types.SubscribeRequest): Promise<types.SubscribeResponse>; unsubscribe(params: types.UnsubscribeRequest): Promise<void>; listSubscriptionByTopic(params: types.ListSubscriptionByTopicRequest): Promise<types.ListSubscriptionResponse>; getSubscriptionAttributes(params: types.GetSubscriptionAttributesRequest): Promise<types.GetSubscriptionAttributesResponse>; setSubscriptionAttributes(params: types.SetSubscriptionAttributesRequest): Promise<void>; publishMessage(params: types.PublishMessageRequest): Promise<types.PublishMessageResponse>; private request; private buildHeaders; private sign; }