@allthings/cloud-toolkit 1.5.1 → 1.5.2-dev.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.
@@ -5,13 +5,16 @@ export interface ISQS {
5
5
  logger?: TAWSLogger;
6
6
  }
7
7
  export type TGetQueueUrl = (queueName: string) => Promise<string | undefined>;
8
- export type TSendMessage = (queueUrl: string, message: string, messageAttributes?: Record<string, MessageAttributeValue>, messageDelay?: number) => Promise<string | undefined>;
8
+ export type TSendMessage = (queueUrl: string, message: string, fifoSettings?: {
9
+ MessageDeduplicationId?: string;
10
+ MessageGroupId: string;
11
+ }, messageAttributes?: Record<string, MessageAttributeValue>, messageDelay?: number) => Promise<string | undefined>;
9
12
  export type TGetQueueItems = (queueUrl: string, maxNumberOfMessages?: number) => Promise<ReceiveMessageCommandOutput | undefined>;
10
13
  export type TDeleteQueueItem = (queueUrl: string, receiptHandle: DeleteMessageCommandInput['ReceiptHandle']) => Promise<ReceiveMessageCommandOutput | undefined>;
11
14
  declare const deleteQueueItem: (sqsClient: SQSClient, config: ISQS, queueUrl: string, receiptHandle: DeleteMessageCommandInput['ReceiptHandle']) => Promise<DeleteMessageCommandOutput | undefined>;
12
15
  declare const getQueueItems: (sqsClient: SQSClient, config: ISQS, queueUrl: string, maxNumberOfMessages?: number) => Promise<ReceiveMessageCommandOutput | undefined>;
13
16
  declare const getQueueUrl: (sqsClient: SQSClient, config: ISQS, queueName: string) => Promise<string | undefined>;
14
- declare const sendMessage: (sqsClient: SQSClient, config: ISQS, queueUrl: string, message: string, messageAttributes?: Record<string, MessageAttributeValue>, messageDelay?: number) => Promise<string | undefined>;
17
+ declare const sendMessage: (sqsClient: SQSClient, config: ISQS, queueUrl: string, message: string, fifoSettings?: {}, messageAttributes?: Record<string, MessageAttributeValue>, messageDelay?: number) => Promise<string | undefined>;
15
18
  declare const sqs: (userConfig: ISQS) => {
16
19
  deleteQueueItem: TDeleteQueueItem;
17
20
  getQueueItems: TGetQueueItems;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allthings/cloud-toolkit",
3
- "version": "1.5.1",
3
+ "version": "1.5.2-dev.1",
4
4
  "description": "",
5
5
  "author": "Allthings GmbH",
6
6
  "keywords": [