diff --git a/packages/sns/package.json b/packages/sns/package.json index eb37fba8..6c723228 100644 --- a/packages/sns/package.json +++ b/packages/sns/package.json @@ -31,14 +31,14 @@ "zod": "^3.22.4" }, "peerDependencies": { - "@aws-sdk/client-sns": "^3.385.0", - "@aws-sdk/client-sqs": "^3.385.0", + "@aws-sdk/client-sns": "^3.431.0", + "@aws-sdk/client-sqs": "^3.431.0", "@message-queue-toolkit/core": "^4.0.0", "@message-queue-toolkit/sqs": "^4.0.1" }, "devDependencies": { - "@aws-sdk/client-sns": "^3.385.0", - "@aws-sdk/client-sqs": "^3.385.0", + "@aws-sdk/client-sns": "^3.431.0", + "@aws-sdk/client-sqs": "^3.431.0", "@message-queue-toolkit/core": "*", "@message-queue-toolkit/sqs": "*", "@types/node": "^20.7.0", diff --git a/packages/sqs/index.ts b/packages/sqs/index.ts index 20e31813..70e52118 100644 --- a/packages/sqs/index.ts +++ b/packages/sqs/index.ts @@ -1,5 +1,4 @@ export type { - SQSQueueAWSConfig, SQSQueueConfig, SQSConsumerDependencies, SQSQueueLocatorType, diff --git a/packages/sqs/lib/sqs/AbstractSqsConsumer.ts b/packages/sqs/lib/sqs/AbstractSqsConsumer.ts index 902ef31f..de584ef3 100644 --- a/packages/sqs/lib/sqs/AbstractSqsConsumer.ts +++ b/packages/sqs/lib/sqs/AbstractSqsConsumer.ts @@ -15,7 +15,7 @@ import { readSqsMessage } from '../utils/sqsMessageReader' import type { SQSConsumerDependencies, - SQSQueueAWSConfig, + SQSQueueConfig, SQSQueueLocatorType, } from './AbstractSqsService' import { AbstractSqsService } from './AbstractSqsService' @@ -29,7 +29,7 @@ export type ExtraSQSCreationParams = { } export type SQSCreationConfig = { - queue: SQSQueueAWSConfig + queue: SQSQueueConfig } & ExtraSQSCreationParams export type NewSQSConsumerOptions = diff --git a/packages/sqs/lib/sqs/AbstractSqsService.ts b/packages/sqs/lib/sqs/AbstractSqsService.ts index c2117a51..1a3fe7b1 100644 --- a/packages/sqs/lib/sqs/AbstractSqsService.ts +++ b/packages/sqs/lib/sqs/AbstractSqsService.ts @@ -19,21 +19,7 @@ export type SQSDependencies = QueueDependencies & { export type SQSConsumerDependencies = SQSDependencies & QueueConsumerDependencies -export type SQSQueueAWSConfig = CreateQueueRequest -export type SQSQueueConfig = { - tags?: Record - Attributes?: { - DelaySeconds?: number - MaximumMessageSize?: number - MessageRetentionPeriod?: number - // eslint-disable-next-line @typescript-eslint/no-explicit-any - Policy?: any - ReceiveMessageWaitTimeSeconds?: number - VisibilityTimeout?: number - RedrivePolicy?: string - RedriveAllowPolicy?: string - } -} +export type SQSQueueConfig = CreateQueueRequest export type SQSQueueLocatorType = { queueUrl: string diff --git a/packages/sqs/package.json b/packages/sqs/package.json index de6bb918..f6e92a99 100644 --- a/packages/sqs/package.json +++ b/packages/sqs/package.json @@ -26,16 +26,16 @@ "prepublishOnly": "npm run build:release" }, "dependencies": { - "@lokalise/node-core": "^6.4.0", - "sqs-consumer": "^7.2.2", + "@lokalise/node-core": "^6.5.0", + "sqs-consumer": "^7.3.0", "zod": "^3.22.4" }, "peerDependencies": { - "@aws-sdk/client-sqs": "^3.385.0", + "@aws-sdk/client-sqs": "^3.431.0", "@message-queue-toolkit/core": "^4.0.0" }, "devDependencies": { - "@aws-sdk/client-sqs": "^3.385.0", + "@aws-sdk/client-sqs": "^3.431.0", "@message-queue-toolkit/core": "*", "@types/node": "^20.7.0", "@typescript-eslint/eslint-plugin": "^6.7.3",