@aws-lite/sqs-types 0.2.6 → 0.2.7

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 +6 -4
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -8,6 +8,8 @@ import {
8
8
  // $IMPORTS_END
9
9
  } from "@aws-sdk/client-sqs";
10
10
 
11
+ import type { AwsLiteMethodOptions } from "@aws-lite/client";
12
+
11
13
  declare interface AwsLiteSQS {
12
14
  /* ! Do not remove METHODS_START / METHODS_END ! */
13
15
  // $METHODS_START
@@ -16,25 +18,25 @@ declare interface AwsLiteSQS {
16
18
  * - AWS docs: {@link https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/API_SendMessage.html SQS: SendMessage}
17
19
  * - aws-lite docs: {@link https://github.com/aws-lite/aws-lite/blob/main/plugins/sqs/readme.md#SendMessage SQS: SendMessage}
18
20
  */
19
- SendMessage: (input: { MessageBody: string, QueueUrl: string, DelaySeconds?: number, MessageAttributes?: Record<string, any>, MessageDeduplicationId?: string, MessageGroupId?: string, MessageSystemAttributes?: Record<string, any> }) => Promise<SendMessageResponse>
21
+ SendMessage: (input: AwsLiteMethodOptions & { MessageBody: string, QueueUrl: string, DelaySeconds?: number, MessageAttributes?: Record<string, any>, MessageDeduplicationId?: string, MessageGroupId?: string, MessageSystemAttributes?: Record<string, any> }) => Promise<SendMessageResponse>
20
22
  /**
21
23
  * @description
22
24
  * - AWS docs: {@link https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/API_GetQueueAttributes.html SQS: GetQueueAttributes}
23
25
  * - aws-lite docs: {@link https://github.com/aws-lite/aws-lite/blob/main/plugins/sqs/readme.md#GetQueueAttributes SQS: GetQueueAttributes}
24
26
  */
25
- GetQueueAttributes: (input: { QueueUrl: string, AttributeNames?: any[] }) => Promise<GetQueueAttributesResponse>
27
+ GetQueueAttributes: (input: AwsLiteMethodOptions & { QueueUrl: string, AttributeNames?: any[] }) => Promise<GetQueueAttributesResponse>
26
28
  /**
27
29
  * @description
28
30
  * - AWS docs: {@link https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/API_ReceiveMessage.html SQS: ReceiveMessage}
29
31
  * - aws-lite docs: {@link https://github.com/aws-lite/aws-lite/blob/main/plugins/sqs/readme.md#ReceiveMessage SQS: ReceiveMessage}
30
32
  */
31
- ReceiveMessage: (input: { QueueUrl: string, AttributeNames?: any[], MaxNumberOfMessages?: number, MessageAttributeNames?: any[], MessageSystemAttributeNames?: any[], ReceiveRequestAttemptId?: string, VisibilityTimeout?: number, WaitTimeSeconds?: number }) => Promise<ReceiveMessageResponse>
33
+ ReceiveMessage: (input: AwsLiteMethodOptions & { QueueUrl: string, AttributeNames?: any[], MaxNumberOfMessages?: number, MessageAttributeNames?: any[], MessageSystemAttributeNames?: any[], ReceiveRequestAttemptId?: string, VisibilityTimeout?: number, WaitTimeSeconds?: number }) => Promise<ReceiveMessageResponse>
32
34
  /**
33
35
  * @description
34
36
  * - AWS docs: {@link https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/API_DeleteMessage.html SQS: DeleteMessage}
35
37
  * - aws-lite docs: {@link https://github.com/aws-lite/aws-lite/blob/main/plugins/sqs/readme.md#DeleteMessage SQS: DeleteMessage}
36
38
  */
37
- DeleteMessage: (input: { QueueUrl: string, ReceiptHandle: string }) => Promise<DeleteMessageResponse>
39
+ DeleteMessage: (input: AwsLiteMethodOptions & { QueueUrl: string, ReceiptHandle: string }) => Promise<DeleteMessageResponse>
38
40
  // $METHODS_END
39
41
  }
40
42
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-lite/sqs-types",
3
- "version": "0.2.6",
3
+ "version": "0.2.7",
4
4
  "description": "Type definitions for the `@aws-lite/sqs` plugin",
5
5
  "homepage": "https://aws-lite.org/services/sqs",
6
6
  "repository": {