@aws-lite/sqs-types 0.1.0 → 0.2.1

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 +24 -0
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -3,6 +3,8 @@ import {
3
3
  // $IMPORTS_START
4
4
  SendMessageCommandOutput as SendMessageResponse,
5
5
  GetQueueAttributesCommandOutput as GetQueueAttributesResponse,
6
+ ReceiveMessageCommandOutput as ReceiveMessageResponse,
7
+ DeleteMessageCommandOutput as DeleteMessageResponse,
6
8
  // $IMPORTS_END
7
9
  } from "@aws-sdk/client-sqs";
8
10
 
@@ -21,6 +23,18 @@ declare interface AwsLiteSQS {
21
23
  * - aws-lite docs: {@link https://github.com/architect/aws-lite/blob/main/plugins/sqs/readme.md#GetQueueAttributes SQS: GetQueueAttributes}
22
24
  */
23
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>
24
38
  // $METHODS_END
25
39
  }
26
40
 
@@ -29,3 +43,13 @@ declare module "@aws-lite/client" {
29
43
  SQS: AwsLiteSQS;
30
44
  }
31
45
  }
46
+
47
+ export type {
48
+ /* ! Do not remove EXPORT_START / EXPORT_END ! */
49
+ // $EXPORT_START
50
+ SendMessageResponse,
51
+ GetQueueAttributesResponse,
52
+ ReceiveMessageResponse,
53
+ DeleteMessageResponse,
54
+ // $EXPORT_END
55
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-lite/sqs-types",
3
- "version": "0.1.0",
3
+ "version": "0.2.1",
4
4
  "description": "Type definitions for the `@aws-lite/sqs` plugin",
5
5
  "homepage": "https://aws-lite.org/services/sqs",
6
6
  "repository": {