@aws-lite/sqs-types 0.0.4 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.d.ts +21 -0
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -2,6 +2,9 @@ import {
2
2
  /* ! Do not remove IMPORTS_START / IMPORTS_END ! */
3
3
  // $IMPORTS_START
4
4
  SendMessageCommandOutput as SendMessageResponse,
5
+ GetQueueAttributesCommandOutput as GetQueueAttributesResponse,
6
+ ReceiveMessageCommandOutput as ReceiveMessageResponse,
7
+ DeleteMessageCommandOutput as DeleteMessageResponse,
5
8
  // $IMPORTS_END
6
9
  } from "@aws-sdk/client-sqs";
7
10
 
@@ -14,6 +17,24 @@ declare interface AwsLiteSQS {
14
17
  * - aws-lite docs: {@link https://github.com/architect/aws-lite/blob/main/plugins/sqs/readme.md#SendMessage SQS: SendMessage}
15
18
  */
16
19
  SendMessage: (input: { MessageBody: string, QueueUrl: string, DelaySeconds?: number, MessageAttributes?: Record<string, any>, MessageDeduplicationId?: string, MessageGroupId?: string, MessageSystemAttributes?: Record<string, any> }) => Promise<SendMessageResponse>
20
+ /**
21
+ * @description
22
+ * - AWS docs: {@link https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/API_GetQueueAttributes.html SQS: GetQueueAttributes}
23
+ * - aws-lite docs: {@link https://github.com/architect/aws-lite/blob/main/plugins/sqs/readme.md#GetQueueAttributes SQS: GetQueueAttributes}
24
+ */
25
+ GetQueueAttributes: (input: { QueueUrl: string, AttributeNames?: any[] }) => Promise<GetQueueAttributesResponse>
26
+ /**
27
+ * @description
28
+ * - AWS docs: {@link https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/API_ReceiveMessage.html SQS: ReceiveMessage}
29
+ * - aws-lite docs: {@link https://github.com/architect/aws-lite/blob/main/plugins/sqs/readme.md#ReceiveMessage SQS: ReceiveMessage}
30
+ */
31
+ ReceiveMessage: (input: { QueueUrl: string, AttributeNames?: any[], MaxNumberOfMessages?: number, MessageAttributeNames?: any[], MessageSystemAttributeNames?: any[], ReceiveRequestAttemptId?: string, VisibilityTimeout?: number, WaitTimeSeconds?: number }) => Promise<ReceiveMessageResponse>
32
+ /**
33
+ * @description
34
+ * - AWS docs: {@link https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/API_DeleteMessage.html SQS: DeleteMessage}
35
+ * - aws-lite docs: {@link https://github.com/architect/aws-lite/blob/main/plugins/sqs/readme.md#DeleteMessage SQS: DeleteMessage}
36
+ */
37
+ DeleteMessage: (input: { QueueUrl: string, ReceiptHandle: string }) => Promise<DeleteMessageResponse>
17
38
  // $METHODS_END
18
39
  }
19
40
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-lite/sqs-types",
3
- "version": "0.0.4",
3
+ "version": "0.2.0",
4
4
  "description": "Type definitions for the `@aws-lite/sqs` plugin",
5
5
  "homepage": "https://aws-lite.org/services/sqs",
6
6
  "repository": {