@effect-aws/client-sqs 1.7.0 → 1.9.3
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.
- package/Errors/package.json +6 -0
- package/SQSClientInstance/package.json +6 -0
- package/SQSService/package.json +6 -0
- package/SQSServiceConfig/package.json +6 -0
- package/{lib → dist/cjs}/Errors.d.ts +6 -11
- package/dist/cjs/Errors.d.ts.map +1 -0
- package/dist/cjs/Errors.js +36 -0
- package/dist/cjs/Errors.js.map +1 -0
- package/dist/cjs/SQSClientInstance.d.ts +24 -0
- package/dist/cjs/SQSClientInstance.d.ts.map +1 -0
- package/dist/cjs/SQSClientInstance.js +50 -0
- package/dist/cjs/SQSClientInstance.js.map +1 -0
- package/dist/cjs/SQSService.d.ts +133 -0
- package/dist/cjs/SQSService.d.ts.map +1 -0
- package/dist/cjs/SQSService.js +82 -0
- package/dist/cjs/SQSService.js.map +1 -0
- package/dist/cjs/SQSServiceConfig.d.ts +25 -0
- package/dist/cjs/SQSServiceConfig.d.ts.map +1 -0
- package/dist/cjs/SQSServiceConfig.js +35 -0
- package/dist/cjs/SQSServiceConfig.js.map +1 -0
- package/dist/cjs/index.d.ts +39 -0
- package/dist/cjs/index.d.ts.map +1 -0
- package/dist/cjs/index.js +56 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/dts/Errors.d.ts +35 -0
- package/dist/dts/Errors.d.ts.map +1 -0
- package/dist/dts/SQSClientInstance.d.ts +24 -0
- package/dist/dts/SQSClientInstance.d.ts.map +1 -0
- package/dist/dts/SQSService.d.ts +133 -0
- package/dist/dts/SQSService.d.ts.map +1 -0
- package/dist/dts/SQSServiceConfig.d.ts +25 -0
- package/dist/dts/SQSServiceConfig.d.ts.map +1 -0
- package/dist/dts/index.d.ts +39 -0
- package/dist/dts/index.d.ts.map +1 -0
- package/dist/esm/Errors.js +33 -0
- package/dist/esm/Errors.js.map +1 -0
- package/dist/esm/SQSClientInstance.js +23 -0
- package/dist/esm/SQSClientInstance.js.map +1 -0
- package/dist/esm/SQSService.js +55 -0
- package/dist/esm/SQSService.js.map +1 -0
- package/dist/esm/SQSServiceConfig.js +31 -0
- package/dist/esm/SQSServiceConfig.js.map +1 -0
- package/dist/esm/index.js +27 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/package.json +4 -0
- package/package.json +60 -43
- package/src/Errors.ts +95 -0
- package/src/SQSClientInstance.ts +33 -0
- package/src/SQSService.ts +610 -0
- package/src/SQSServiceConfig.ts +51 -0
- package/src/index.ts +44 -0
- package/CHANGELOG.md +0 -115
- package/docgen.json +0 -8
- package/lib/Errors.js +0 -36
- package/lib/SQSClientInstance.d.ts +0 -31
- package/lib/SQSClientInstance.js +0 -57
- package/lib/SQSClientInstanceConfig.d.ts +0 -23
- package/lib/SQSClientInstanceConfig.js +0 -44
- package/lib/SQSService.d.ts +0 -180
- package/lib/SQSService.js +0 -111
- package/lib/esm/Errors.js +0 -33
- package/lib/esm/SQSClientInstance.js +0 -30
- package/lib/esm/SQSClientInstanceConfig.js +0 -40
- package/lib/esm/SQSService.js +0 -107
- package/lib/esm/index.js +0 -5
- package/lib/index.d.ts +0 -4
- package/lib/index.js +0 -21
- package/project.json +0 -77
- package/vitest.config.ts +0 -3
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { BatchEntryIdsNotDistinct, BatchRequestTooLong, EmptyBatchRequest, InvalidAddress, InvalidAttributeName, InvalidAttributeValue, InvalidBatchEntryId, InvalidIdFormat, InvalidMessageContents, InvalidSecurity, KmsAccessDenied, KmsDisabled, KmsInvalidKeyUsage, KmsInvalidState, KmsNotFound, KmsOptInRequired, KmsThrottled, MessageNotInflight, OverLimit, PurgeQueueInProgress, QueueDeletedRecently, QueueDoesNotExist, QueueNameExists, ReceiptHandleIsInvalid, RequestThrottled, ResourceNotFoundException, TooManyEntriesInBatchRequest, UnsupportedOperation } from "@aws-sdk/client-sqs";
|
|
2
|
+
import type { TaggedException } from "@effect-aws/commons";
|
|
3
|
+
import { SdkError as CommonSdkError } from "@effect-aws/commons";
|
|
4
|
+
export declare const AllServiceErrors: readonly ["BatchEntryIdsNotDistinct", "BatchRequestTooLong", "EmptyBatchRequest", "InvalidAddress", "InvalidAttributeName", "InvalidAttributeValue", "InvalidBatchEntryId", "InvalidIdFormat", "InvalidMessageContents", "InvalidSecurity", "KmsAccessDenied", "KmsDisabled", "KmsInvalidKeyUsage", "KmsInvalidState", "KmsNotFound", "KmsOptInRequired", "KmsThrottled", "MessageNotInflight", "OverLimit", "PurgeQueueInProgress", "QueueDeletedRecently", "QueueDoesNotExist", "QueueNameExists", "ReceiptHandleIsInvalid", "RequestThrottled", "ResourceNotFoundException", "TooManyEntriesInBatchRequest", "UnsupportedOperation"];
|
|
5
|
+
export type BatchEntryIdsNotDistinctError = TaggedException<BatchEntryIdsNotDistinct>;
|
|
6
|
+
export type BatchRequestTooLongError = TaggedException<BatchRequestTooLong>;
|
|
7
|
+
export type EmptyBatchRequestError = TaggedException<EmptyBatchRequest>;
|
|
8
|
+
export type InvalidAddressError = TaggedException<InvalidAddress>;
|
|
9
|
+
export type InvalidAttributeNameError = TaggedException<InvalidAttributeName>;
|
|
10
|
+
export type InvalidAttributeValueError = TaggedException<InvalidAttributeValue>;
|
|
11
|
+
export type InvalidBatchEntryIdError = TaggedException<InvalidBatchEntryId>;
|
|
12
|
+
export type InvalidIdFormatError = TaggedException<InvalidIdFormat>;
|
|
13
|
+
export type InvalidMessageContentsError = TaggedException<InvalidMessageContents>;
|
|
14
|
+
export type InvalidSecurityError = TaggedException<InvalidSecurity>;
|
|
15
|
+
export type KmsAccessDeniedError = TaggedException<KmsAccessDenied>;
|
|
16
|
+
export type KmsDisabledError = TaggedException<KmsDisabled>;
|
|
17
|
+
export type KmsInvalidKeyUsageError = TaggedException<KmsInvalidKeyUsage>;
|
|
18
|
+
export type KmsInvalidStateError = TaggedException<KmsInvalidState>;
|
|
19
|
+
export type KmsNotFoundError = TaggedException<KmsNotFound>;
|
|
20
|
+
export type KmsOptInRequiredError = TaggedException<KmsOptInRequired>;
|
|
21
|
+
export type KmsThrottledError = TaggedException<KmsThrottled>;
|
|
22
|
+
export type MessageNotInflightError = TaggedException<MessageNotInflight>;
|
|
23
|
+
export type OverLimitError = TaggedException<OverLimit>;
|
|
24
|
+
export type PurgeQueueInProgressError = TaggedException<PurgeQueueInProgress>;
|
|
25
|
+
export type QueueDeletedRecentlyError = TaggedException<QueueDeletedRecently>;
|
|
26
|
+
export type QueueDoesNotExistError = TaggedException<QueueDoesNotExist>;
|
|
27
|
+
export type QueueNameExistsError = TaggedException<QueueNameExists>;
|
|
28
|
+
export type ReceiptHandleIsInvalidError = TaggedException<ReceiptHandleIsInvalid>;
|
|
29
|
+
export type RequestThrottledError = TaggedException<RequestThrottled>;
|
|
30
|
+
export type ResourceNotFoundError = TaggedException<ResourceNotFoundException>;
|
|
31
|
+
export type TooManyEntriesInBatchRequestError = TaggedException<TooManyEntriesInBatchRequest>;
|
|
32
|
+
export type UnsupportedOperationError = TaggedException<UnsupportedOperation>;
|
|
33
|
+
export type SdkError = CommonSdkError;
|
|
34
|
+
export declare const SdkError: import("effect/Data").Case.Constructor<CommonSdkError, "_tag">;
|
|
35
|
+
//# sourceMappingURL=Errors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Errors.d.ts","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,wBAAwB,EACxB,mBAAmB,EACnB,iBAAiB,EACjB,cAAc,EACd,oBAAoB,EACpB,qBAAqB,EACrB,mBAAmB,EACnB,eAAe,EACf,sBAAsB,EACtB,eAAe,EACf,eAAe,EACf,WAAW,EACX,kBAAkB,EAClB,eAAe,EACf,WAAW,EACX,gBAAgB,EAChB,YAAY,EACZ,kBAAkB,EAClB,SAAS,EACT,oBAAoB,EACpB,oBAAoB,EACpB,iBAAiB,EACjB,eAAe,EACf,sBAAsB,EACtB,gBAAgB,EAChB,yBAA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AAC,gBAAgB,CAAC,CAAC;AACtE,MAAM,MAAM,iBAAiB,GAAG,eAAe,CAAC,YAAY,CAAC,CAAC;AAC9D,MAAM,MAAM,uBAAuB,GAAG,eAAe,CAAC,kBAAkB,CAAC,CAAC;AAC1E,MAAM,MAAM,cAAc,GAAG,eAAe,CAAC,SAAS,CAAC,CAAC;AACxD,MAAM,MAAM,yBAAyB,GAAG,eAAe,CAAC,oBAAoB,CAAC,CAAC;AAC9E,MAAM,MAAM,yBAAyB,GAAG,eAAe,CAAC,oBAAoB,CAAC,CAAC;AAC9E,MAAM,MAAM,sBAAsB,GAAG,eAAe,CAAC,iBAAiB,CAAC,CAAC;AACxE,MAAM,MAAM,oBAAoB,GAAG,eAAe,CAAC,eAAe,CAAC,CAAC;AACpE,MAAM,MAAM,2BAA2B,GAAG,eAAe,CAAC,sBAAsB,CAAC,CAAC;AAClF,MAAM,MAAM,qBAAqB,GAAG,eAAe,CAAC,gBAAgB,CAAC,CAAC;AACtE,MAAM,MAAM,qBAAqB,GAAG,eAAe,CAAC,yBAAyB,CAAC,CAAC;AAC/E,MAAM,MAAM,iCAAiC,GAAG,eAAe,CAAC,4BAA4B,CAAC,CAAC;AAC9F,MAAM,MAAM,yBAAyB,GAAG,eAAe,CAAC,oBAAoB,CAAC,CAAC;AAE9E,MAAM,MAAM,QAAQ,GAAG,cAAc,CAAC;AACtC,eAAO,MAAM,QAAQ,gEAAiB,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @since 1.0.0
|
|
3
|
+
*/
|
|
4
|
+
import { SQSClient } from "@aws-sdk/client-sqs";
|
|
5
|
+
import { Context, Effect, Layer } from "effect";
|
|
6
|
+
declare const SQSClientInstance_base: Context.TagClass<SQSClientInstance, "@effect-aws/client-sqs/SQSClientInstance", SQSClient>;
|
|
7
|
+
/**
|
|
8
|
+
* @since 1.0.0
|
|
9
|
+
* @category tags
|
|
10
|
+
*/
|
|
11
|
+
export declare class SQSClientInstance extends SQSClientInstance_base {
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* @since 1.0.0
|
|
15
|
+
* @category constructors
|
|
16
|
+
*/
|
|
17
|
+
export declare const make: Effect.Effect<SQSClient, never, import("effect/Scope").Scope>;
|
|
18
|
+
/**
|
|
19
|
+
* @since 1.0.0
|
|
20
|
+
* @category layers
|
|
21
|
+
*/
|
|
22
|
+
export declare const layer: Layer.Layer<SQSClientInstance, never, never>;
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=SQSClientInstance.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SQSClientInstance.d.ts","sourceRoot":"","sources":["../../src/SQSClientInstance.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;;AAGhD;;;GAGG;AACH,qBAAa,iBAAkB,SAAQ,sBAEN;CAAG;AAEpC;;;GAGG;AACH,eAAO,MAAM,IAAI,+DAOhB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,KAAK,8CAAwC,CAAC"}
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @since 1.0.0
|
|
3
|
+
*/
|
|
4
|
+
import { type AddPermissionCommandInput, type AddPermissionCommandOutput, type CancelMessageMoveTaskCommandInput, type CancelMessageMoveTaskCommandOutput, type ChangeMessageVisibilityBatchCommandInput, type ChangeMessageVisibilityBatchCommandOutput, type ChangeMessageVisibilityCommandInput, type ChangeMessageVisibilityCommandOutput, type CreateQueueCommandInput, type CreateQueueCommandOutput, type DeleteMessageBatchCommandInput, type DeleteMessageBatchCommandOutput, type DeleteMessageCommandInput, type DeleteMessageCommandOutput, type DeleteQueueCommandInput, type DeleteQueueCommandOutput, type GetQueueAttributesCommandInput, type GetQueueAttributesCommandOutput, type GetQueueUrlCommandInput, type GetQueueUrlCommandOutput, type ListDeadLetterSourceQueuesCommandInput, type ListDeadLetterSourceQueuesCommandOutput, type ListMessageMoveTasksCommandInput, type ListMessageMoveTasksCommandOutput, type ListQueuesCommandInput, type ListQueuesCommandOutput, type ListQueueTagsCommandInput, type ListQueueTagsCommandOutput, type PurgeQueueCommandInput, type PurgeQueueCommandOutput, type ReceiveMessageCommandInput, type ReceiveMessageCommandOutput, type RemovePermissionCommandInput, type RemovePermissionCommandOutput, type SendMessageBatchCommandInput, type SendMessageBatchCommandOutput, type SendMessageCommandInput, type SendMessageCommandOutput, type SetQueueAttributesCommandInput, type SetQueueAttributesCommandOutput, type SQSClient, type SQSClientConfig, type StartMessageMoveTaskCommandInput, type StartMessageMoveTaskCommandOutput, type TagQueueCommandInput, type TagQueueCommandOutput, type UntagQueueCommandInput, type UntagQueueCommandOutput } from "@aws-sdk/client-sqs";
|
|
5
|
+
import type { HttpHandlerOptions, SdkError, ServiceLogger } from "@effect-aws/commons";
|
|
6
|
+
import { Effect, Layer } from "effect";
|
|
7
|
+
import type { BatchEntryIdsNotDistinctError, BatchRequestTooLongError, EmptyBatchRequestError, InvalidAddressError, InvalidAttributeNameError, InvalidAttributeValueError, InvalidBatchEntryIdError, InvalidIdFormatError, InvalidMessageContentsError, InvalidSecurityError, KmsAccessDeniedError, KmsDisabledError, KmsInvalidKeyUsageError, KmsInvalidStateError, KmsNotFoundError, KmsOptInRequiredError, KmsThrottledError, MessageNotInflightError, OverLimitError, PurgeQueueInProgressError, QueueDeletedRecentlyError, QueueDoesNotExistError, QueueNameExistsError, ReceiptHandleIsInvalidError, RequestThrottledError, ResourceNotFoundError, TooManyEntriesInBatchRequestError, UnsupportedOperationError } from "./Errors.js";
|
|
8
|
+
import * as Instance from "./SQSClientInstance.js";
|
|
9
|
+
interface SQSService$ {
|
|
10
|
+
readonly _: unique symbol;
|
|
11
|
+
/**
|
|
12
|
+
* @see {@link AddPermissionCommand}
|
|
13
|
+
*/
|
|
14
|
+
addPermission(args: AddPermissionCommandInput, options?: HttpHandlerOptions): Effect.Effect<AddPermissionCommandOutput, SdkError | InvalidAddressError | InvalidSecurityError | OverLimitError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
15
|
+
/**
|
|
16
|
+
* @see {@link CancelMessageMoveTaskCommand}
|
|
17
|
+
*/
|
|
18
|
+
cancelMessageMoveTask(args: CancelMessageMoveTaskCommandInput, options?: HttpHandlerOptions): Effect.Effect<CancelMessageMoveTaskCommandOutput, SdkError | InvalidAddressError | InvalidSecurityError | RequestThrottledError | ResourceNotFoundError | UnsupportedOperationError>;
|
|
19
|
+
/**
|
|
20
|
+
* @see {@link ChangeMessageVisibilityCommand}
|
|
21
|
+
*/
|
|
22
|
+
changeMessageVisibility(args: ChangeMessageVisibilityCommandInput, options?: HttpHandlerOptions): Effect.Effect<ChangeMessageVisibilityCommandOutput, SdkError | InvalidAddressError | InvalidSecurityError | MessageNotInflightError | QueueDoesNotExistError | ReceiptHandleIsInvalidError | RequestThrottledError | UnsupportedOperationError>;
|
|
23
|
+
/**
|
|
24
|
+
* @see {@link ChangeMessageVisibilityBatchCommand}
|
|
25
|
+
*/
|
|
26
|
+
changeMessageVisibilityBatch(args: ChangeMessageVisibilityBatchCommandInput, options?: HttpHandlerOptions): Effect.Effect<ChangeMessageVisibilityBatchCommandOutput, SdkError | BatchEntryIdsNotDistinctError | EmptyBatchRequestError | InvalidAddressError | InvalidBatchEntryIdError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | TooManyEntriesInBatchRequestError | UnsupportedOperationError>;
|
|
27
|
+
/**
|
|
28
|
+
* @see {@link CreateQueueCommand}
|
|
29
|
+
*/
|
|
30
|
+
createQueue(args: CreateQueueCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateQueueCommandOutput, SdkError | InvalidAddressError | InvalidAttributeNameError | InvalidAttributeValueError | InvalidSecurityError | QueueDeletedRecentlyError | QueueNameExistsError | RequestThrottledError | UnsupportedOperationError>;
|
|
31
|
+
/**
|
|
32
|
+
* @see {@link DeleteMessageCommand}
|
|
33
|
+
*/
|
|
34
|
+
deleteMessage(args: DeleteMessageCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteMessageCommandOutput, SdkError | InvalidAddressError | InvalidIdFormatError | InvalidSecurityError | QueueDoesNotExistError | ReceiptHandleIsInvalidError | RequestThrottledError | UnsupportedOperationError>;
|
|
35
|
+
/**
|
|
36
|
+
* @see {@link DeleteMessageBatchCommand}
|
|
37
|
+
*/
|
|
38
|
+
deleteMessageBatch(args: DeleteMessageBatchCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteMessageBatchCommandOutput, SdkError | BatchEntryIdsNotDistinctError | EmptyBatchRequestError | InvalidAddressError | InvalidBatchEntryIdError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | TooManyEntriesInBatchRequestError | UnsupportedOperationError>;
|
|
39
|
+
/**
|
|
40
|
+
* @see {@link DeleteQueueCommand}
|
|
41
|
+
*/
|
|
42
|
+
deleteQueue(args: DeleteQueueCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteQueueCommandOutput, SdkError | InvalidAddressError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
43
|
+
/**
|
|
44
|
+
* @see {@link GetQueueAttributesCommand}
|
|
45
|
+
*/
|
|
46
|
+
getQueueAttributes(args: GetQueueAttributesCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetQueueAttributesCommandOutput, SdkError | InvalidAddressError | InvalidAttributeNameError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
47
|
+
/**
|
|
48
|
+
* @see {@link GetQueueUrlCommand}
|
|
49
|
+
*/
|
|
50
|
+
getQueueUrl(args: GetQueueUrlCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetQueueUrlCommandOutput, SdkError | InvalidAddressError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
51
|
+
/**
|
|
52
|
+
* @see {@link ListDeadLetterSourceQueuesCommand}
|
|
53
|
+
*/
|
|
54
|
+
listDeadLetterSourceQueues(args: ListDeadLetterSourceQueuesCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListDeadLetterSourceQueuesCommandOutput, SdkError | InvalidAddressError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
55
|
+
/**
|
|
56
|
+
* @see {@link ListMessageMoveTasksCommand}
|
|
57
|
+
*/
|
|
58
|
+
listMessageMoveTasks(args: ListMessageMoveTasksCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListMessageMoveTasksCommandOutput, SdkError | InvalidAddressError | InvalidSecurityError | RequestThrottledError | ResourceNotFoundError | UnsupportedOperationError>;
|
|
59
|
+
/**
|
|
60
|
+
* @see {@link ListQueueTagsCommand}
|
|
61
|
+
*/
|
|
62
|
+
listQueueTags(args: ListQueueTagsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListQueueTagsCommandOutput, SdkError | InvalidAddressError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
63
|
+
/**
|
|
64
|
+
* @see {@link ListQueuesCommand}
|
|
65
|
+
*/
|
|
66
|
+
listQueues(args: ListQueuesCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListQueuesCommandOutput, SdkError | InvalidAddressError | InvalidSecurityError | RequestThrottledError | UnsupportedOperationError>;
|
|
67
|
+
/**
|
|
68
|
+
* @see {@link PurgeQueueCommand}
|
|
69
|
+
*/
|
|
70
|
+
purgeQueue(args: PurgeQueueCommandInput, options?: HttpHandlerOptions): Effect.Effect<PurgeQueueCommandOutput, SdkError | InvalidAddressError | InvalidSecurityError | PurgeQueueInProgressError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
71
|
+
/**
|
|
72
|
+
* @see {@link ReceiveMessageCommand}
|
|
73
|
+
*/
|
|
74
|
+
receiveMessage(args: ReceiveMessageCommandInput, options?: HttpHandlerOptions): Effect.Effect<ReceiveMessageCommandOutput, SdkError | InvalidAddressError | InvalidSecurityError | KmsAccessDeniedError | KmsDisabledError | KmsInvalidKeyUsageError | KmsInvalidStateError | KmsNotFoundError | KmsOptInRequiredError | KmsThrottledError | OverLimitError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
75
|
+
/**
|
|
76
|
+
* @see {@link RemovePermissionCommand}
|
|
77
|
+
*/
|
|
78
|
+
removePermission(args: RemovePermissionCommandInput, options?: HttpHandlerOptions): Effect.Effect<RemovePermissionCommandOutput, SdkError | InvalidAddressError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
79
|
+
/**
|
|
80
|
+
* @see {@link SendMessageCommand}
|
|
81
|
+
*/
|
|
82
|
+
sendMessage(args: SendMessageCommandInput, options?: HttpHandlerOptions): Effect.Effect<SendMessageCommandOutput, SdkError | InvalidAddressError | InvalidMessageContentsError | InvalidSecurityError | KmsAccessDeniedError | KmsDisabledError | KmsInvalidKeyUsageError | KmsInvalidStateError | KmsNotFoundError | KmsOptInRequiredError | KmsThrottledError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
83
|
+
/**
|
|
84
|
+
* @see {@link SendMessageBatchCommand}
|
|
85
|
+
*/
|
|
86
|
+
sendMessageBatch(args: SendMessageBatchCommandInput, options?: HttpHandlerOptions): Effect.Effect<SendMessageBatchCommandOutput, SdkError | BatchEntryIdsNotDistinctError | BatchRequestTooLongError | EmptyBatchRequestError | InvalidAddressError | InvalidBatchEntryIdError | InvalidSecurityError | KmsAccessDeniedError | KmsDisabledError | KmsInvalidKeyUsageError | KmsInvalidStateError | KmsNotFoundError | KmsOptInRequiredError | KmsThrottledError | QueueDoesNotExistError | RequestThrottledError | TooManyEntriesInBatchRequestError | UnsupportedOperationError>;
|
|
87
|
+
/**
|
|
88
|
+
* @see {@link SetQueueAttributesCommand}
|
|
89
|
+
*/
|
|
90
|
+
setQueueAttributes(args: SetQueueAttributesCommandInput, options?: HttpHandlerOptions): Effect.Effect<SetQueueAttributesCommandOutput, SdkError | InvalidAddressError | InvalidAttributeNameError | InvalidAttributeValueError | InvalidSecurityError | OverLimitError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
91
|
+
/**
|
|
92
|
+
* @see {@link StartMessageMoveTaskCommand}
|
|
93
|
+
*/
|
|
94
|
+
startMessageMoveTask(args: StartMessageMoveTaskCommandInput, options?: HttpHandlerOptions): Effect.Effect<StartMessageMoveTaskCommandOutput, SdkError | InvalidAddressError | InvalidSecurityError | RequestThrottledError | ResourceNotFoundError | UnsupportedOperationError>;
|
|
95
|
+
/**
|
|
96
|
+
* @see {@link TagQueueCommand}
|
|
97
|
+
*/
|
|
98
|
+
tagQueue(args: TagQueueCommandInput, options?: HttpHandlerOptions): Effect.Effect<TagQueueCommandOutput, SdkError | InvalidAddressError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
99
|
+
/**
|
|
100
|
+
* @see {@link UntagQueueCommand}
|
|
101
|
+
*/
|
|
102
|
+
untagQueue(args: UntagQueueCommandInput, options?: HttpHandlerOptions): Effect.Effect<UntagQueueCommandOutput, SdkError | InvalidAddressError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* @since 1.0.0
|
|
106
|
+
* @category constructors
|
|
107
|
+
*/
|
|
108
|
+
export declare const makeSQSService: Effect.Effect<SQSService$, never, Instance.SQSClientInstance>;
|
|
109
|
+
declare const SQSService_base: import("effect/Context").TagClass<SQSService, "@effect-aws/client-sqs/SQSService", SQSService$> & Effect.Tag.Proxy<SQSService, SQSService$> & {
|
|
110
|
+
use: <X>(body: (_: SQSService$) => X) => [X] extends [Effect.Effect<infer A, infer E, infer R>] ? Effect.Effect<A, E, SQSService | R> : [X] extends [PromiseLike<infer A_1>] ? Effect.Effect<A_1, import("effect/Cause").UnknownException, SQSService> : Effect.Effect<X, never, SQSService>;
|
|
111
|
+
};
|
|
112
|
+
/**
|
|
113
|
+
* @since 1.0.0
|
|
114
|
+
* @category models
|
|
115
|
+
*/
|
|
116
|
+
export declare class SQSService extends SQSService_base {
|
|
117
|
+
static readonly defaultLayer: Layer.Layer<SQSService, never, never>;
|
|
118
|
+
static readonly layer: (config: SQSService.Config) => Layer.Layer<SQSService, never, never>;
|
|
119
|
+
static readonly baseLayer: (evaluate: (defaultConfig: SQSClientConfig) => SQSClient) => Layer.Layer<SQSService, never, never>;
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* @since 1.0.0
|
|
123
|
+
*/
|
|
124
|
+
export declare namespace SQSService {
|
|
125
|
+
/**
|
|
126
|
+
* @since 1.0.0
|
|
127
|
+
*/
|
|
128
|
+
interface Config extends Omit<SQSClientConfig, "logger"> {
|
|
129
|
+
readonly logger?: ServiceLogger.ServiceLoggerConstructorProps | true;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
export {};
|
|
133
|
+
//# sourceMappingURL=SQSService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SQSService.d.ts","sourceRoot":"","sources":["../../src/SQSService.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAEL,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,EAE/B,KAAK,iCAAiC,EACtC,KAAK,kCAAkC,EAEvC,KAAK,wCAAwC,EAC7C,KAAK,yCAAyC,EAE9C,KAAK,mCAAmC,EACxC,KAAK,oCAAoC,EAEzC,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAE7B,KAAK,8BAA8B,EACnC,KAAK,+BAA+B,EAEpC,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,EAE/B,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAE7B,KAAK,8BAA8B,EACnC,KAAK,+BAA+B,EAEpC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C,aAAa,EAAE,eAAe,KAAK,SAAS,2CASrD;CACL;AAED;;GAEG;AACH,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC;;OAEG;IACH,UAAiB,MAAO,SAAQ,IAAI,CAAC,eAAe,EAAE,QAAQ,CAAC;QAC7D,QAAQ,CAAC,MAAM,CAAC,EAAE,aAAa,CAAC,6BAA6B,GAAG,IAAI,CAAC;KACtE;CACF"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @since 1.0.0
|
|
3
|
+
*/
|
|
4
|
+
import type { SQSClientConfig } from "@aws-sdk/client-sqs";
|
|
5
|
+
import { Effect, Layer } from "effect";
|
|
6
|
+
import type { SQSService } from "./SQSService.js";
|
|
7
|
+
/**
|
|
8
|
+
* @since 1.0.0
|
|
9
|
+
* @category sqs service config
|
|
10
|
+
*/
|
|
11
|
+
export declare const withSQSServiceConfig: {
|
|
12
|
+
(config: SQSService.Config): <A, E, R>(effect: Effect.Effect<A, E, R>) => Effect.Effect<A, E, R>;
|
|
13
|
+
<A, E, R>(effect: Effect.Effect<A, E, R>, config: SQSService.Config): Effect.Effect<A, E, R>;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* @since 1.0.0
|
|
17
|
+
* @category sqs service config
|
|
18
|
+
*/
|
|
19
|
+
export declare const setSQSServiceConfig: (config: SQSService.Config) => Layer.Layer<never, never, never>;
|
|
20
|
+
/**
|
|
21
|
+
* @since 1.0.0
|
|
22
|
+
* @category adapters
|
|
23
|
+
*/
|
|
24
|
+
export declare const toSQSClientConfig: Effect.Effect<SQSClientConfig>;
|
|
25
|
+
//# sourceMappingURL=SQSServiceConfig.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SQSServiceConfig.d.ts","sourceRoot":"","sources":["../../src/SQSServiceConfig.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE3D,OAAO,EAAE,MAAM,EAAY,KAAK,EAAE,MAAM,QAAQ,CAAC;AAGjD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAWlD;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE;IACjC,CAAC,MAAM,EAAE,UAAU,CAAC,MAAM,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,KAAK,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IACjG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;CAK9F,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,mBAAmB,WAAY,WAAW,MAAM,qCAAyD,CAAC;AAEvH;;;GAGG;AACH,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,CAAC,eAAe,CAQ3D,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @since 1.0.0
|
|
3
|
+
*/
|
|
4
|
+
import { SQSService } from "./SQSService.js";
|
|
5
|
+
/**
|
|
6
|
+
* @since 1.0.0
|
|
7
|
+
*/
|
|
8
|
+
export * from "./Errors.js";
|
|
9
|
+
/**
|
|
10
|
+
* @since 1.0.0
|
|
11
|
+
*/
|
|
12
|
+
export * as SQSClientInstance from "./SQSClientInstance.js";
|
|
13
|
+
/**
|
|
14
|
+
* @since 1.0.0
|
|
15
|
+
*/
|
|
16
|
+
export * as SQSServiceConfig from "./SQSServiceConfig.js";
|
|
17
|
+
/**
|
|
18
|
+
* @since 1.0.0
|
|
19
|
+
*/
|
|
20
|
+
export * from "./SQSService.js";
|
|
21
|
+
/**
|
|
22
|
+
* @since 1.0.0
|
|
23
|
+
* @category exports
|
|
24
|
+
* @alias SQSService
|
|
25
|
+
*/
|
|
26
|
+
export declare namespace SQS {
|
|
27
|
+
/**
|
|
28
|
+
* @since 1.0.0
|
|
29
|
+
* @alias SQSService.Config
|
|
30
|
+
*/
|
|
31
|
+
type Config = SQSService.Config;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* @since 1.0.0
|
|
35
|
+
* @category exports
|
|
36
|
+
* @alias SQSService
|
|
37
|
+
*/
|
|
38
|
+
export declare const SQS: typeof SQSService;
|
|
39
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C;;GAEG;AACH,cAAc,aAAa,CAAC;AAE5B;;GAEG;AACH,OAAO,KAAK,iBAAiB,MAAM,wBAAwB,CAAC;AAE5D;;GAEG;AACH,OAAO,KAAK,gBAAgB,MAAM,uBAAuB,CAAC;AAE1D;;GAEG;AACH,cAAc,iBAAiB,CAAC;AAEhC;;;;GAIG;AACH,MAAM,CAAC,OAAO,WAAW,GAAG,CAAC;IAC3B;;;OAGG;IACH,KAAY,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;CACxC;AAED;;;;GAIG;AACH,eAAO,MAAM,GAAG,mBAAa,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { SdkError as CommonSdkError } from "@effect-aws/commons";
|
|
2
|
+
export const AllServiceErrors = [
|
|
3
|
+
"BatchEntryIdsNotDistinct",
|
|
4
|
+
"BatchRequestTooLong",
|
|
5
|
+
"EmptyBatchRequest",
|
|
6
|
+
"InvalidAddress",
|
|
7
|
+
"InvalidAttributeName",
|
|
8
|
+
"InvalidAttributeValue",
|
|
9
|
+
"InvalidBatchEntryId",
|
|
10
|
+
"InvalidIdFormat",
|
|
11
|
+
"InvalidMessageContents",
|
|
12
|
+
"InvalidSecurity",
|
|
13
|
+
"KmsAccessDenied",
|
|
14
|
+
"KmsDisabled",
|
|
15
|
+
"KmsInvalidKeyUsage",
|
|
16
|
+
"KmsInvalidState",
|
|
17
|
+
"KmsNotFound",
|
|
18
|
+
"KmsOptInRequired",
|
|
19
|
+
"KmsThrottled",
|
|
20
|
+
"MessageNotInflight",
|
|
21
|
+
"OverLimit",
|
|
22
|
+
"PurgeQueueInProgress",
|
|
23
|
+
"QueueDeletedRecently",
|
|
24
|
+
"QueueDoesNotExist",
|
|
25
|
+
"QueueNameExists",
|
|
26
|
+
"ReceiptHandleIsInvalid",
|
|
27
|
+
"RequestThrottled",
|
|
28
|
+
"ResourceNotFoundException",
|
|
29
|
+
"TooManyEntriesInBatchRequest",
|
|
30
|
+
"UnsupportedOperation",
|
|
31
|
+
];
|
|
32
|
+
export const SdkError = CommonSdkError;
|
|
33
|
+
//# sourceMappingURL=Errors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Errors.js","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":"AA+BA,OAAO,EAAE,QAAQ,IAAI,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAEjE,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,0BAA0B;IAC1B,qBAAqB;IACrB,mBAAmB;IACnB,gBAAgB;IAChB,sBAAsB;IACtB,uBAAuB;IACvB,qBAAqB;IACrB,iBAAiB;IACjB,wBAAwB;IACxB,iBAAiB;IACjB,iBAAiB;IACjB,aAAa;IACb,oBAAoB;IACpB,iBAAiB;IACjB,aAAa;IACb,kBAAkB;IAClB,cAAc;IACd,oBAAoB;IACpB,WAAW;IACX,sBAAsB;IACtB,sBAAsB;IACtB,mBAAmB;IACnB,iBAAiB;IACjB,wBAAwB;IACxB,kBAAkB;IAClB,2BAA2B;IAC3B,8BAA8B;IAC9B,sBAAsB;CACd,CAAC;AAgCX,MAAM,CAAC,MAAM,QAAQ,GAAG,cAAc,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @since 1.0.0
|
|
3
|
+
*/
|
|
4
|
+
import { SQSClient } from "@aws-sdk/client-sqs";
|
|
5
|
+
import { Context, Effect, Layer } from "effect";
|
|
6
|
+
import * as SQSServiceConfig from "./SQSServiceConfig.js";
|
|
7
|
+
/**
|
|
8
|
+
* @since 1.0.0
|
|
9
|
+
* @category tags
|
|
10
|
+
*/
|
|
11
|
+
export class SQSClientInstance extends Context.Tag("@effect-aws/client-sqs/SQSClientInstance")() {
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* @since 1.0.0
|
|
15
|
+
* @category constructors
|
|
16
|
+
*/
|
|
17
|
+
export const make = Effect.flatMap(SQSServiceConfig.toSQSClientConfig, (config) => Effect.acquireRelease(Effect.sync(() => new SQSClient(config)), (client) => Effect.sync(() => client.destroy())));
|
|
18
|
+
/**
|
|
19
|
+
* @since 1.0.0
|
|
20
|
+
* @category layers
|
|
21
|
+
*/
|
|
22
|
+
export const layer = Layer.scoped(SQSClientInstance, make);
|
|
23
|
+
//# sourceMappingURL=SQSClientInstance.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SQSClientInstance.js","sourceRoot":"","sources":["../../src/SQSClientInstance.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAChD,OAAO,KAAK,gBAAgB,MAAM,uBAAuB,CAAC;AAE1D;;;GAGG;AACH,MAAM,OAAO,iBAAkB,SAAQ,OAAO,CAAC,GAAG,CAChD,0CAA0C,CAC3C,EAAgC;CAAG;AAEpC;;;GAGG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG,MAAM,CAAC,OAAO,CAChC,gBAAgB,CAAC,iBAAiB,EAClC,CAAC,MAAM,EAAE,EAAE,CACT,MAAM,CAAC,cAAc,CACnB,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,SAAS,CAAC,MAAM,CAAC,CAAC,EACxC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,CAChD,CACJ,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,iBAAiB,EAAE,IAAI,CAAC,CAAC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @since 1.0.0
|
|
3
|
+
*/
|
|
4
|
+
import { AddPermissionCommand, CancelMessageMoveTaskCommand, ChangeMessageVisibilityBatchCommand, ChangeMessageVisibilityCommand, CreateQueueCommand, DeleteMessageBatchCommand, DeleteMessageCommand, DeleteQueueCommand, GetQueueAttributesCommand, GetQueueUrlCommand, ListDeadLetterSourceQueuesCommand, ListMessageMoveTasksCommand, ListQueuesCommand, ListQueueTagsCommand, PurgeQueueCommand, ReceiveMessageCommand, RemovePermissionCommand, SendMessageBatchCommand, SendMessageCommand, SetQueueAttributesCommand, StartMessageMoveTaskCommand, TagQueueCommand, UntagQueueCommand, } from "@aws-sdk/client-sqs";
|
|
5
|
+
import { Service } from "@effect-aws/commons";
|
|
6
|
+
import { Effect, Layer } from "effect";
|
|
7
|
+
import { AllServiceErrors } from "./Errors.js";
|
|
8
|
+
import * as Instance from "./SQSClientInstance.js";
|
|
9
|
+
import * as SQSServiceConfig from "./SQSServiceConfig.js";
|
|
10
|
+
const commands = {
|
|
11
|
+
AddPermissionCommand,
|
|
12
|
+
CancelMessageMoveTaskCommand,
|
|
13
|
+
ChangeMessageVisibilityCommand,
|
|
14
|
+
ChangeMessageVisibilityBatchCommand,
|
|
15
|
+
CreateQueueCommand,
|
|
16
|
+
DeleteMessageCommand,
|
|
17
|
+
DeleteMessageBatchCommand,
|
|
18
|
+
DeleteQueueCommand,
|
|
19
|
+
GetQueueAttributesCommand,
|
|
20
|
+
GetQueueUrlCommand,
|
|
21
|
+
ListDeadLetterSourceQueuesCommand,
|
|
22
|
+
ListMessageMoveTasksCommand,
|
|
23
|
+
ListQueueTagsCommand,
|
|
24
|
+
ListQueuesCommand,
|
|
25
|
+
PurgeQueueCommand,
|
|
26
|
+
ReceiveMessageCommand,
|
|
27
|
+
RemovePermissionCommand,
|
|
28
|
+
SendMessageCommand,
|
|
29
|
+
SendMessageBatchCommand,
|
|
30
|
+
SetQueueAttributesCommand,
|
|
31
|
+
StartMessageMoveTaskCommand,
|
|
32
|
+
TagQueueCommand,
|
|
33
|
+
UntagQueueCommand,
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* @since 1.0.0
|
|
37
|
+
* @category constructors
|
|
38
|
+
*/
|
|
39
|
+
export const makeSQSService = Effect.gen(function* () {
|
|
40
|
+
const client = yield* Instance.SQSClientInstance;
|
|
41
|
+
return Service.fromClientAndCommands(client, commands, {
|
|
42
|
+
errorTags: AllServiceErrors,
|
|
43
|
+
resolveClientConfig: SQSServiceConfig.toSQSClientConfig,
|
|
44
|
+
});
|
|
45
|
+
});
|
|
46
|
+
/**
|
|
47
|
+
* @since 1.0.0
|
|
48
|
+
* @category models
|
|
49
|
+
*/
|
|
50
|
+
export class SQSService extends Effect.Tag("@effect-aws/client-sqs/SQSService")() {
|
|
51
|
+
static defaultLayer = Layer.effect(this, makeSQSService).pipe(Layer.provide(Instance.layer));
|
|
52
|
+
static layer = (config) => Layer.effect(this, makeSQSService).pipe(Layer.provide(Instance.layer), Layer.provide(SQSServiceConfig.setSQSServiceConfig(config)));
|
|
53
|
+
static baseLayer = (evaluate) => Layer.effect(this, makeSQSService).pipe(Layer.provide(Layer.effect(Instance.SQSClientInstance, Effect.map(SQSServiceConfig.toSQSClientConfig, evaluate))));
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=SQSService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SQSService.js","sourceRoot":"","sources":["../../src/SQSService.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EACL,oBAAoB,EAGpB,4BAA4B,EAG5B,mCAAmC,EAGnC,8BAA8B,EAG9B,kBAAkB,EAGlB,yBAAyB,EAGzB,oBAAoB,EAGpB,kBAAkB,EAGlB,yBAAyB,EAGzB,kBAAkB,EAGlB,iCAAiC,EAGjC,2BAA2B,EAG3B,iBAAiB,EAGjB,oBAAoB,EAGpB,iBAAiB,EAGjB,qBAAqB,EAGrB,uBAAuB,EAGvB,uBAAuB,EAGvB,kBAAkB,EAGlB,yBAAyB,EAKzB,2BAA2B,EAG3B,eAAe,EAGf,iBAAiB,GAGlB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AA+BvC,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,KAAK,QAAQ,MAAM,wBAAwB,CAAC;AACnD,OAAO,KAAK,gBAAgB,MAAM,uBAAuB,CAAC;AAE1D,MAAM,QAAQ,GAAG;IACf,oBAAoB;IACpB,4BAA4B;IAC5B,8BAA8B;IAC9B,mCAAmC;IACnC,kBAAkB;IAClB,oBAAoB;IACpB,yBAAyB;IACzB,kBAAkB;IAClB,yBAAyB;IACzB,kBAAkB;IAClB,iCAAiC;IACjC,2BAA2B;IAC3B,oBAAoB;IACpB,iBAAiB;IACjB,iBAAiB;IACjB,qBAAqB;IACrB,uBAAuB;IACvB,kBAAkB;IAClB,uBAAuB;IACvB,yBAAyB;IACzB,2BAA2B;IAC3B,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ons";
|
|
2
|
+
import { Effect, FiberRef, Layer } from "effect";
|
|
3
|
+
import { dual } from "effect/Function";
|
|
4
|
+
import { globalValue } from "effect/GlobalValue";
|
|
5
|
+
/**
|
|
6
|
+
* @since 1.0.0
|
|
7
|
+
* @category sqs service config
|
|
8
|
+
*/
|
|
9
|
+
const currentSQSServiceConfig = globalValue("@effect-aws/client-sqs/currentSQSServiceConfig", () => FiberRef.unsafeMake({}));
|
|
10
|
+
/**
|
|
11
|
+
* @since 1.0.0
|
|
12
|
+
* @category sqs service config
|
|
13
|
+
*/
|
|
14
|
+
export const withSQSServiceConfig = dual(2, (effect, config) => Effect.locally(effect, currentSQSServiceConfig, config));
|
|
15
|
+
/**
|
|
16
|
+
* @since 1.0.0
|
|
17
|
+
* @category sqs service config
|
|
18
|
+
*/
|
|
19
|
+
export const setSQSServiceConfig = (config) => Layer.locallyScoped(currentSQSServiceConfig, config);
|
|
20
|
+
/**
|
|
21
|
+
* @since 1.0.0
|
|
22
|
+
* @category adapters
|
|
23
|
+
*/
|
|
24
|
+
export const toSQSClientConfig = Effect.gen(function* () {
|
|
25
|
+
const { logger: serviceLogger, ...config } = yield* FiberRef.get(currentSQSServiceConfig);
|
|
26
|
+
const logger = serviceLogger === true
|
|
27
|
+
? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger)
|
|
28
|
+
: (serviceLogger ? yield* ServiceLogger.toClientLogger(ServiceLogger.make(serviceLogger)) : undefined);
|
|
29
|
+
return { logger, ...config };
|
|
30
|
+
});
|
|
31
|
+
//# sourceMappingURL=SQSServiceConfig.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SQSServiceConfig.js","sourceRoot":"","sources":["../../src/SQSServiceConfig.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AACjD,OAAO,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
|
3
|
+
*/
|
|
4
|
+
import { SQSService } from "./SQSService.js";
|
|
5
|
+
/**
|
|
6
|
+
* @since 1.0.0
|
|
7
|
+
*/
|
|
8
|
+
export * from "./Errors.js";
|
|
9
|
+
/**
|
|
10
|
+
* @since 1.0.0
|
|
11
|
+
*/
|
|
12
|
+
export * as SQSClientInstance from "./SQSClientInstance.js";
|
|
13
|
+
/**
|
|
14
|
+
* @since 1.0.0
|
|
15
|
+
*/
|
|
16
|
+
export * as SQSServiceConfig from "./SQSServiceConfig.js";
|
|
17
|
+
/**
|
|
18
|
+
* @since 1.0.0
|
|
19
|
+
*/
|
|
20
|
+
export * from "./SQSService.js";
|
|
21
|
+
/**
|
|
22
|
+
* @since 1.0.0
|
|
23
|
+
* @category exports
|
|
24
|
+
* @alias SQSService
|
|
25
|
+
*/
|
|
26
|
+
export const SQS = SQSService;
|
|
27
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C;;GAEG;AACH,cAAc,aAAa,CAAC;AAE5B;;GAEG;AACH,OAAO,KAAK,iBAAiB,MAAM,wBAAwB,CAAC;AAE5D;;GAEG;AACH,OAAO,KAAK,gBAAgB,MAAM,uBAAuB,CAAC;AAE1D;;GAEG;AACH,cAAc,iBAAiB,CAAC;AAehC;;;;GAIG;AACH,MAAM,CAAC,MAAM,GAAG,GAAG,UAAU,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,54 +1,71 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effect-aws/client-sqs",
|
|
3
|
+
"version": "1.9.3",
|
|
4
|
+
"description": "Effectful AWS SQS client",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "github:floydspace/effect-aws",
|
|
9
|
+
"directory": "packages/client-sqs"
|
|
10
|
+
},
|
|
11
|
+
"sideEffects": [],
|
|
3
12
|
"author": {
|
|
4
13
|
"name": "Victor Korzunin",
|
|
5
|
-
"email": "ifloydrose@gmail.com"
|
|
6
|
-
"organization": false
|
|
14
|
+
"email": "ifloydrose@gmail.com"
|
|
7
15
|
},
|
|
8
|
-
"
|
|
9
|
-
|
|
10
|
-
"@
|
|
11
|
-
"@
|
|
12
|
-
"aws-sdk-client-mock": "^4.0.2",
|
|
13
|
-
"aws-sdk-client-mock-vitest": "^4.0.0",
|
|
14
|
-
"effect": "3.0.0",
|
|
15
|
-
"eslint": "^8",
|
|
16
|
-
"eslint-config-prettier": "^9.1.0",
|
|
17
|
-
"eslint-import-resolver-typescript": "^3.6.1",
|
|
18
|
-
"eslint-plugin-import": "^2.29.1",
|
|
19
|
-
"eslint-plugin-prettier": "^5.2.1",
|
|
20
|
-
"prettier": "^3.2.5",
|
|
21
|
-
"typescript": "^5.4.2",
|
|
22
|
-
"vitest": "^2.0.5"
|
|
16
|
+
"homepage": "https://floydspace.github.io/effect-aws/docs/client-sqs",
|
|
17
|
+
"dependencies": {
|
|
18
|
+
"@aws-sdk/client-sqs": "^3",
|
|
19
|
+
"@effect-aws/commons": "^0.2.0"
|
|
23
20
|
},
|
|
24
21
|
"peerDependencies": {
|
|
25
|
-
"effect": ">=3.0.
|
|
22
|
+
"effect": ">=3.0.4 <4.0.0"
|
|
26
23
|
},
|
|
27
|
-
"
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
"
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
24
|
+
"main": "./dist/cjs/index.js",
|
|
25
|
+
"module": "./dist/esm/index.js",
|
|
26
|
+
"types": "./dist/dts/index.d.ts",
|
|
27
|
+
"exports": {
|
|
28
|
+
"./package.json": "./package.json",
|
|
29
|
+
".": {
|
|
30
|
+
"types": "./dist/dts/index.d.ts",
|
|
31
|
+
"import": "./dist/esm/index.js",
|
|
32
|
+
"default": "./dist/cjs/index.js"
|
|
33
|
+
},
|
|
34
|
+
"./Errors": {
|
|
35
|
+
"types": "./dist/dts/Errors.d.ts",
|
|
36
|
+
"import": "./dist/esm/Errors.js",
|
|
37
|
+
"default": "./dist/cjs/Errors.js"
|
|
38
|
+
},
|
|
39
|
+
"./SQSClientInstance": {
|
|
40
|
+
"types": "./dist/dts/SQSClientInstance.d.ts",
|
|
41
|
+
"import": "./dist/esm/SQSClientInstance.js",
|
|
42
|
+
"default": "./dist/cjs/SQSClientInstance.js"
|
|
43
|
+
},
|
|
44
|
+
"./SQSService": {
|
|
45
|
+
"types": "./dist/dts/SQSService.d.ts",
|
|
46
|
+
"import": "./dist/esm/SQSService.js",
|
|
47
|
+
"default": "./dist/cjs/SQSService.js"
|
|
48
|
+
},
|
|
49
|
+
"./SQSServiceConfig": {
|
|
50
|
+
"types": "./dist/dts/SQSServiceConfig.d.ts",
|
|
51
|
+
"import": "./dist/esm/SQSServiceConfig.js",
|
|
52
|
+
"default": "./dist/cjs/SQSServiceConfig.js"
|
|
53
|
+
}
|
|
35
54
|
},
|
|
36
|
-
"
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
"watch": "npx projen watch",
|
|
52
|
-
"docgen": "docgen"
|
|
55
|
+
"typesVersions": {
|
|
56
|
+
"*": {
|
|
57
|
+
"Errors": [
|
|
58
|
+
"./dist/dts/Errors.d.ts"
|
|
59
|
+
],
|
|
60
|
+
"SQSClientInstance": [
|
|
61
|
+
"./dist/dts/SQSClientInstance.d.ts"
|
|
62
|
+
],
|
|
63
|
+
"SQSService": [
|
|
64
|
+
"./dist/dts/SQSService.d.ts"
|
|
65
|
+
],
|
|
66
|
+
"SQSServiceConfig": [
|
|
67
|
+
"./dist/dts/SQSServiceConfig.d.ts"
|
|
68
|
+
]
|
|
69
|
+
}
|
|
53
70
|
}
|
|
54
71
|
}
|