@effect-aws/client-sqs 1.10.9 → 2.0.0-beta.0
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/LICENSE +1 -1
- package/README.md +3 -3
- package/dist/dts/SQSClientInstance.d.ts +2 -2
- package/dist/dts/SQSClientInstance.d.ts.map +1 -1
- package/dist/dts/SQSService.d.ts +25 -27
- package/dist/dts/SQSService.d.ts.map +1 -1
- package/dist/dts/SQSServiceConfig.d.ts.map +1 -1
- package/dist/esm/SQSClientInstance.js +3 -3
- package/dist/esm/SQSClientInstance.js.map +1 -1
- package/dist/esm/SQSService.js +2 -2
- package/dist/esm/SQSService.js.map +1 -1
- package/dist/esm/SQSServiceConfig.js +5 -6
- package/dist/esm/SQSServiceConfig.js.map +1 -1
- package/package.json +8 -14
- package/src/SQSClientInstance.ts +4 -4
- package/src/SQSService.ts +26 -26
- package/src/SQSServiceConfig.ts +6 -7
- package/dist/cjs/Errors.d.ts +0 -35
- package/dist/cjs/Errors.d.ts.map +0 -1
- package/dist/cjs/Errors.js +0 -34
- package/dist/cjs/Errors.js.map +0 -1
- package/dist/cjs/SQSClientInstance.d.ts +0 -24
- package/dist/cjs/SQSClientInstance.d.ts.map +0 -1
- package/dist/cjs/SQSClientInstance.js +0 -50
- package/dist/cjs/SQSClientInstance.js.map +0 -1
- package/dist/cjs/SQSService.d.ts +0 -138
- package/dist/cjs/SQSService.d.ts.map +0 -1
- package/dist/cjs/SQSService.js +0 -82
- package/dist/cjs/SQSService.js.map +0 -1
- package/dist/cjs/SQSServiceConfig.d.ts +0 -25
- package/dist/cjs/SQSServiceConfig.d.ts.map +0 -1
- package/dist/cjs/SQSServiceConfig.js +0 -35
- package/dist/cjs/SQSServiceConfig.js.map +0 -1
- package/dist/cjs/index.d.ts +0 -44
- package/dist/cjs/index.d.ts.map +0 -1
- package/dist/cjs/index.js +0 -56
- package/dist/cjs/index.js.map +0 -1
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@ With default SQSClient instance:
|
|
|
16
16
|
```typescript
|
|
17
17
|
import { SQS } from "@effect-aws/client-sqs";
|
|
18
18
|
|
|
19
|
-
const program = SQS.sendMessage(args);
|
|
19
|
+
const program = SQS.use((svc) => svc.sendMessage(args));
|
|
20
20
|
|
|
21
21
|
const result = pipe(
|
|
22
22
|
program,
|
|
@@ -30,7 +30,7 @@ With custom SQSClient instance:
|
|
|
30
30
|
```typescript
|
|
31
31
|
import { SQS } from "@effect-aws/client-sqs";
|
|
32
32
|
|
|
33
|
-
const program = SQS.sendMessage(args);
|
|
33
|
+
const program = SQS.use((svc) => svc.sendMessage(args));
|
|
34
34
|
|
|
35
35
|
const result = await pipe(
|
|
36
36
|
program,
|
|
@@ -46,7 +46,7 @@ With custom SQSClient configuration:
|
|
|
46
46
|
```typescript
|
|
47
47
|
import { SQS } from "@effect-aws/client-sqs";
|
|
48
48
|
|
|
49
|
-
const program = SQS.sendMessage(args);
|
|
49
|
+
const program = SQS.use((svc) => svc.sendMessage(args));
|
|
50
50
|
|
|
51
51
|
const result = await pipe(
|
|
52
52
|
program,
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
4
|
import { SQSClient } from "@aws-sdk/client-sqs";
|
|
5
|
-
import {
|
|
6
|
-
declare const SQSClientInstance_base:
|
|
5
|
+
import { Effect, Layer, ServiceMap } from "effect";
|
|
6
|
+
declare const SQSClientInstance_base: ServiceMap.ServiceClass<SQSClientInstance, "@effect-aws/client-sqs/SQSClientInstance", SQSClient>;
|
|
7
7
|
/**
|
|
8
8
|
* @since 1.0.0
|
|
9
9
|
* @category tags
|
|
@@ -1 +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,
|
|
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,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;;AAGnD;;;GAGG;AACH,qBAAa,iBAAkB,SAAQ,sBAEtC;CAAG;AAEJ;;;GAGG;AACH,eAAO,MAAM,IAAI,+DAOhB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,KAAK,8CAAwC,CAAC"}
|
package/dist/dts/SQSService.d.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
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
5
|
import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons";
|
|
6
6
|
import type { Cause } from "effect";
|
|
7
|
-
import { Effect, Layer } from "effect";
|
|
7
|
+
import { Effect, Layer, ServiceMap } from "effect";
|
|
8
8
|
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, SdkError, TooManyEntriesInBatchRequestError, UnsupportedOperationError } from "./Errors.js";
|
|
9
9
|
import * as Instance from "./SQSClientInstance.js";
|
|
10
10
|
interface SQSService$ {
|
|
@@ -12,104 +12,102 @@ interface SQSService$ {
|
|
|
12
12
|
/**
|
|
13
13
|
* @see {@link AddPermissionCommand}
|
|
14
14
|
*/
|
|
15
|
-
addPermission(args: AddPermissionCommandInput, options?: HttpHandlerOptions): Effect.Effect<AddPermissionCommandOutput, Cause.
|
|
15
|
+
addPermission(args: AddPermissionCommandInput, options?: HttpHandlerOptions): Effect.Effect<AddPermissionCommandOutput, Cause.TimeoutError | SdkError | InvalidAddressError | InvalidSecurityError | OverLimitError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
16
16
|
/**
|
|
17
17
|
* @see {@link CancelMessageMoveTaskCommand}
|
|
18
18
|
*/
|
|
19
|
-
cancelMessageMoveTask(args: CancelMessageMoveTaskCommandInput, options?: HttpHandlerOptions): Effect.Effect<CancelMessageMoveTaskCommandOutput, Cause.
|
|
19
|
+
cancelMessageMoveTask(args: CancelMessageMoveTaskCommandInput, options?: HttpHandlerOptions): Effect.Effect<CancelMessageMoveTaskCommandOutput, Cause.TimeoutError | SdkError | InvalidAddressError | InvalidSecurityError | RequestThrottledError | ResourceNotFoundError | UnsupportedOperationError>;
|
|
20
20
|
/**
|
|
21
21
|
* @see {@link ChangeMessageVisibilityCommand}
|
|
22
22
|
*/
|
|
23
|
-
changeMessageVisibility(args: ChangeMessageVisibilityCommandInput, options?: HttpHandlerOptions): Effect.Effect<ChangeMessageVisibilityCommandOutput, Cause.
|
|
23
|
+
changeMessageVisibility(args: ChangeMessageVisibilityCommandInput, options?: HttpHandlerOptions): Effect.Effect<ChangeMessageVisibilityCommandOutput, Cause.TimeoutError | SdkError | InvalidAddressError | InvalidSecurityError | MessageNotInflightError | QueueDoesNotExistError | ReceiptHandleIsInvalidError | RequestThrottledError | UnsupportedOperationError>;
|
|
24
24
|
/**
|
|
25
25
|
* @see {@link ChangeMessageVisibilityBatchCommand}
|
|
26
26
|
*/
|
|
27
|
-
changeMessageVisibilityBatch(args: ChangeMessageVisibilityBatchCommandInput, options?: HttpHandlerOptions): Effect.Effect<ChangeMessageVisibilityBatchCommandOutput, Cause.
|
|
27
|
+
changeMessageVisibilityBatch(args: ChangeMessageVisibilityBatchCommandInput, options?: HttpHandlerOptions): Effect.Effect<ChangeMessageVisibilityBatchCommandOutput, Cause.TimeoutError | SdkError | BatchEntryIdsNotDistinctError | EmptyBatchRequestError | InvalidAddressError | InvalidBatchEntryIdError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | TooManyEntriesInBatchRequestError | UnsupportedOperationError>;
|
|
28
28
|
/**
|
|
29
29
|
* @see {@link CreateQueueCommand}
|
|
30
30
|
*/
|
|
31
|
-
createQueue(args: CreateQueueCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateQueueCommandOutput, Cause.
|
|
31
|
+
createQueue(args: CreateQueueCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateQueueCommandOutput, Cause.TimeoutError | SdkError | InvalidAddressError | InvalidAttributeNameError | InvalidAttributeValueError | InvalidSecurityError | QueueDeletedRecentlyError | QueueNameExistsError | RequestThrottledError | UnsupportedOperationError>;
|
|
32
32
|
/**
|
|
33
33
|
* @see {@link DeleteMessageCommand}
|
|
34
34
|
*/
|
|
35
|
-
deleteMessage(args: DeleteMessageCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteMessageCommandOutput, Cause.
|
|
35
|
+
deleteMessage(args: DeleteMessageCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteMessageCommandOutput, Cause.TimeoutError | SdkError | InvalidAddressError | InvalidIdFormatError | InvalidSecurityError | QueueDoesNotExistError | ReceiptHandleIsInvalidError | RequestThrottledError | UnsupportedOperationError>;
|
|
36
36
|
/**
|
|
37
37
|
* @see {@link DeleteMessageBatchCommand}
|
|
38
38
|
*/
|
|
39
|
-
deleteMessageBatch(args: DeleteMessageBatchCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteMessageBatchCommandOutput, Cause.
|
|
39
|
+
deleteMessageBatch(args: DeleteMessageBatchCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteMessageBatchCommandOutput, Cause.TimeoutError | SdkError | BatchEntryIdsNotDistinctError | EmptyBatchRequestError | InvalidAddressError | InvalidBatchEntryIdError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | TooManyEntriesInBatchRequestError | UnsupportedOperationError>;
|
|
40
40
|
/**
|
|
41
41
|
* @see {@link DeleteQueueCommand}
|
|
42
42
|
*/
|
|
43
|
-
deleteQueue(args: DeleteQueueCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteQueueCommandOutput, Cause.
|
|
43
|
+
deleteQueue(args: DeleteQueueCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteQueueCommandOutput, Cause.TimeoutError | SdkError | InvalidAddressError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
44
44
|
/**
|
|
45
45
|
* @see {@link GetQueueAttributesCommand}
|
|
46
46
|
*/
|
|
47
|
-
getQueueAttributes(args: GetQueueAttributesCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetQueueAttributesCommandOutput, Cause.
|
|
47
|
+
getQueueAttributes(args: GetQueueAttributesCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetQueueAttributesCommandOutput, Cause.TimeoutError | SdkError | InvalidAddressError | InvalidAttributeNameError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
48
48
|
/**
|
|
49
49
|
* @see {@link GetQueueUrlCommand}
|
|
50
50
|
*/
|
|
51
|
-
getQueueUrl(args: GetQueueUrlCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetQueueUrlCommandOutput, Cause.
|
|
51
|
+
getQueueUrl(args: GetQueueUrlCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetQueueUrlCommandOutput, Cause.TimeoutError | SdkError | InvalidAddressError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
52
52
|
/**
|
|
53
53
|
* @see {@link ListDeadLetterSourceQueuesCommand}
|
|
54
54
|
*/
|
|
55
|
-
listDeadLetterSourceQueues(args: ListDeadLetterSourceQueuesCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListDeadLetterSourceQueuesCommandOutput, Cause.
|
|
55
|
+
listDeadLetterSourceQueues(args: ListDeadLetterSourceQueuesCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListDeadLetterSourceQueuesCommandOutput, Cause.TimeoutError | SdkError | InvalidAddressError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
56
56
|
/**
|
|
57
57
|
* @see {@link ListMessageMoveTasksCommand}
|
|
58
58
|
*/
|
|
59
|
-
listMessageMoveTasks(args: ListMessageMoveTasksCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListMessageMoveTasksCommandOutput, Cause.
|
|
59
|
+
listMessageMoveTasks(args: ListMessageMoveTasksCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListMessageMoveTasksCommandOutput, Cause.TimeoutError | SdkError | InvalidAddressError | InvalidSecurityError | RequestThrottledError | ResourceNotFoundError | UnsupportedOperationError>;
|
|
60
60
|
/**
|
|
61
61
|
* @see {@link ListQueueTagsCommand}
|
|
62
62
|
*/
|
|
63
|
-
listQueueTags(args: ListQueueTagsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListQueueTagsCommandOutput, Cause.
|
|
63
|
+
listQueueTags(args: ListQueueTagsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListQueueTagsCommandOutput, Cause.TimeoutError | SdkError | InvalidAddressError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
64
64
|
/**
|
|
65
65
|
* @see {@link ListQueuesCommand}
|
|
66
66
|
*/
|
|
67
|
-
listQueues(args: ListQueuesCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListQueuesCommandOutput, Cause.
|
|
67
|
+
listQueues(args: ListQueuesCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListQueuesCommandOutput, Cause.TimeoutError | SdkError | InvalidAddressError | InvalidSecurityError | RequestThrottledError | UnsupportedOperationError>;
|
|
68
68
|
/**
|
|
69
69
|
* @see {@link PurgeQueueCommand}
|
|
70
70
|
*/
|
|
71
|
-
purgeQueue(args: PurgeQueueCommandInput, options?: HttpHandlerOptions): Effect.Effect<PurgeQueueCommandOutput, Cause.
|
|
71
|
+
purgeQueue(args: PurgeQueueCommandInput, options?: HttpHandlerOptions): Effect.Effect<PurgeQueueCommandOutput, Cause.TimeoutError | SdkError | InvalidAddressError | InvalidSecurityError | PurgeQueueInProgressError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
72
72
|
/**
|
|
73
73
|
* @see {@link ReceiveMessageCommand}
|
|
74
74
|
*/
|
|
75
|
-
receiveMessage(args: ReceiveMessageCommandInput, options?: HttpHandlerOptions): Effect.Effect<ReceiveMessageCommandOutput, Cause.
|
|
75
|
+
receiveMessage(args: ReceiveMessageCommandInput, options?: HttpHandlerOptions): Effect.Effect<ReceiveMessageCommandOutput, Cause.TimeoutError | SdkError | InvalidAddressError | InvalidSecurityError | KmsAccessDeniedError | KmsDisabledError | KmsInvalidKeyUsageError | KmsInvalidStateError | KmsNotFoundError | KmsOptInRequiredError | KmsThrottledError | OverLimitError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
76
76
|
/**
|
|
77
77
|
* @see {@link RemovePermissionCommand}
|
|
78
78
|
*/
|
|
79
|
-
removePermission(args: RemovePermissionCommandInput, options?: HttpHandlerOptions): Effect.Effect<RemovePermissionCommandOutput, Cause.
|
|
79
|
+
removePermission(args: RemovePermissionCommandInput, options?: HttpHandlerOptions): Effect.Effect<RemovePermissionCommandOutput, Cause.TimeoutError | SdkError | InvalidAddressError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
80
80
|
/**
|
|
81
81
|
* @see {@link SendMessageCommand}
|
|
82
82
|
*/
|
|
83
|
-
sendMessage(args: SendMessageCommandInput, options?: HttpHandlerOptions): Effect.Effect<SendMessageCommandOutput, Cause.
|
|
83
|
+
sendMessage(args: SendMessageCommandInput, options?: HttpHandlerOptions): Effect.Effect<SendMessageCommandOutput, Cause.TimeoutError | SdkError | InvalidAddressError | InvalidMessageContentsError | InvalidSecurityError | KmsAccessDeniedError | KmsDisabledError | KmsInvalidKeyUsageError | KmsInvalidStateError | KmsNotFoundError | KmsOptInRequiredError | KmsThrottledError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
84
84
|
/**
|
|
85
85
|
* @see {@link SendMessageBatchCommand}
|
|
86
86
|
*/
|
|
87
|
-
sendMessageBatch(args: SendMessageBatchCommandInput, options?: HttpHandlerOptions): Effect.Effect<SendMessageBatchCommandOutput, Cause.
|
|
87
|
+
sendMessageBatch(args: SendMessageBatchCommandInput, options?: HttpHandlerOptions): Effect.Effect<SendMessageBatchCommandOutput, Cause.TimeoutError | SdkError | BatchEntryIdsNotDistinctError | BatchRequestTooLongError | EmptyBatchRequestError | InvalidAddressError | InvalidBatchEntryIdError | InvalidSecurityError | KmsAccessDeniedError | KmsDisabledError | KmsInvalidKeyUsageError | KmsInvalidStateError | KmsNotFoundError | KmsOptInRequiredError | KmsThrottledError | QueueDoesNotExistError | RequestThrottledError | TooManyEntriesInBatchRequestError | UnsupportedOperationError>;
|
|
88
88
|
/**
|
|
89
89
|
* @see {@link SetQueueAttributesCommand}
|
|
90
90
|
*/
|
|
91
|
-
setQueueAttributes(args: SetQueueAttributesCommandInput, options?: HttpHandlerOptions): Effect.Effect<SetQueueAttributesCommandOutput, Cause.
|
|
91
|
+
setQueueAttributes(args: SetQueueAttributesCommandInput, options?: HttpHandlerOptions): Effect.Effect<SetQueueAttributesCommandOutput, Cause.TimeoutError | SdkError | InvalidAddressError | InvalidAttributeNameError | InvalidAttributeValueError | InvalidSecurityError | OverLimitError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
92
92
|
/**
|
|
93
93
|
* @see {@link StartMessageMoveTaskCommand}
|
|
94
94
|
*/
|
|
95
|
-
startMessageMoveTask(args: StartMessageMoveTaskCommandInput, options?: HttpHandlerOptions): Effect.Effect<StartMessageMoveTaskCommandOutput, Cause.
|
|
95
|
+
startMessageMoveTask(args: StartMessageMoveTaskCommandInput, options?: HttpHandlerOptions): Effect.Effect<StartMessageMoveTaskCommandOutput, Cause.TimeoutError | SdkError | InvalidAddressError | InvalidSecurityError | RequestThrottledError | ResourceNotFoundError | UnsupportedOperationError>;
|
|
96
96
|
/**
|
|
97
97
|
* @see {@link TagQueueCommand}
|
|
98
98
|
*/
|
|
99
|
-
tagQueue(args: TagQueueCommandInput, options?: HttpHandlerOptions): Effect.Effect<TagQueueCommandOutput, Cause.
|
|
99
|
+
tagQueue(args: TagQueueCommandInput, options?: HttpHandlerOptions): Effect.Effect<TagQueueCommandOutput, Cause.TimeoutError | SdkError | InvalidAddressError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
100
100
|
/**
|
|
101
101
|
* @see {@link UntagQueueCommand}
|
|
102
102
|
*/
|
|
103
|
-
untagQueue(args: UntagQueueCommandInput, options?: HttpHandlerOptions): Effect.Effect<UntagQueueCommandOutput, Cause.
|
|
103
|
+
untagQueue(args: UntagQueueCommandInput, options?: HttpHandlerOptions): Effect.Effect<UntagQueueCommandOutput, Cause.TimeoutError | SdkError | InvalidAddressError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
104
104
|
}
|
|
105
105
|
/**
|
|
106
106
|
* @since 1.0.0
|
|
107
107
|
* @category constructors
|
|
108
108
|
*/
|
|
109
109
|
export declare const makeSQSService: Effect.Effect<SQSService$, never, Instance.SQSClientInstance>;
|
|
110
|
-
declare const SQSService_base:
|
|
111
|
-
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, Cause.UnknownException, SQSService> : Effect.Effect<X, never, SQSService>;
|
|
112
|
-
};
|
|
110
|
+
declare const SQSService_base: ServiceMap.ServiceClass<SQSService, "@effect-aws/client-sqs/SQSService", SQSService$>;
|
|
113
111
|
/**
|
|
114
112
|
* @since 1.0.0
|
|
115
113
|
* @category models
|
|
@@ -1 +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,KA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AC,MAAM,CAAC,EAAE,aAAa,CAAC,6BAA6B,GAAG,IAAI,CAAC;KACtE;IAED;;OAEG;IACH,KAAY,IAAI,GAAG,WAAW,CAAC;CAChC"}
|
|
@@ -1 +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,
|
|
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,EAAE,KAAK,EAAc,MAAM,QAAQ,CAAC;AAEnD,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,qCAAmD,CAAC;AAEjH;;;GAGG;AACH,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,CAAC,eAAe,CAQ3D,CAAC"}
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
4
|
import { SQSClient } from "@aws-sdk/client-sqs";
|
|
5
|
-
import {
|
|
5
|
+
import { Effect, Layer, ServiceMap } from "effect";
|
|
6
6
|
import * as SQSServiceConfig from "./SQSServiceConfig.js";
|
|
7
7
|
/**
|
|
8
8
|
* @since 1.0.0
|
|
9
9
|
* @category tags
|
|
10
10
|
*/
|
|
11
|
-
export class SQSClientInstance extends
|
|
11
|
+
export class SQSClientInstance extends ServiceMap.Service()("@effect-aws/client-sqs/SQSClientInstance") {
|
|
12
12
|
}
|
|
13
13
|
/**
|
|
14
14
|
* @since 1.0.0
|
|
@@ -19,5 +19,5 @@ export const make = Effect.flatMap(SQSServiceConfig.toSQSClientConfig, (config)
|
|
|
19
19
|
* @since 1.0.0
|
|
20
20
|
* @category layers
|
|
21
21
|
*/
|
|
22
|
-
export const layer = Layer.
|
|
22
|
+
export const layer = Layer.effect(SQSClientInstance, make);
|
|
23
23
|
//# sourceMappingURL=SQSClientInstance.js.map
|
|
@@ -1 +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,
|
|
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,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AACnD,OAAO,KAAK,gBAAgB,MAAM,uBAAuB,CAAC;AAE1D;;;GAGG;AACH,MAAM,OAAO,iBAAkB,SAAQ,UAAU,CAAC,OAAO,EAAgC,CACvF,0CAA0C,CAC3C;CAAG;AAEJ;;;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"}
|
package/dist/esm/SQSService.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
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
5
|
import { Service } from "@effect-aws/commons";
|
|
6
|
-
import { Effect, Layer } from "effect";
|
|
6
|
+
import { Effect, Layer, ServiceMap } from "effect";
|
|
7
7
|
import { AllServiceErrors } from "./Errors.js";
|
|
8
8
|
import * as Instance from "./SQSClientInstance.js";
|
|
9
9
|
import * as SQSServiceConfig from "./SQSServiceConfig.js";
|
|
@@ -47,7 +47,7 @@ export const makeSQSService = Effect.gen(function* () {
|
|
|
47
47
|
* @since 1.0.0
|
|
48
48
|
* @category models
|
|
49
49
|
*/
|
|
50
|
-
export class SQSService extends
|
|
50
|
+
export class SQSService extends ServiceMap.Service()("@effect-aws/client-sqs/SQSService") {
|
|
51
51
|
static defaultLayer = Layer.effect(this, makeSQSService).pipe(Layer.provide(Instance.layer));
|
|
52
52
|
static layer = (config) => Layer.effect(this, makeSQSService).pipe(Layer.provide(Instance.layer), Layer.provide(SQSServiceConfig.setSQSServiceConfig(config)));
|
|
53
53
|
static baseLayer = (evaluate) => Layer.effect(this, makeSQSService).pipe(Layer.provide(Layer.effect(Instance.SQSClientInstance, Effect.map(SQSServiceConfig.toSQSClientConfig, evaluate))));
|
|
@@ -1 +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;AAE9C,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"SQSService.js","sourceRoot":"","sources":["../../src/SQSService.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EACL,oBAAoB,EAGpB,4BAA4B,EAG5B,mCAAmC,EA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,gBAAgB;QAC3B,mBAAmB,EAAE,gBAAgB,CAAC,iBAAiB;KACxD,CACF,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,OAAO,UAAW,SAAQ,UAAU,CAAC,OAAO,EAG/C,CAAC,mCAAmC,CAAC;IACtC,MAAM,CAAU,YAAY,GAAG,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,cAAc,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC;IACtG,MAAM,CAAU,KAAK,GAAG,CAAC,MAAyB,EAAE,EAAE,CACpD,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,cAAc,CAAC,CAAC,IAAI,CACrC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,EAC7B,KAAK,CAAC,OAAO,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,MAAM,CAAC,CAAC,CAC5D,CAAC;IACJ,MAAM,CAAU,SAAS,GAAG,CAC1B,QAAuD,EACvD,EAAE,CACF,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,cAAc,CAAC,CAAC,IAAI,CACrC,KAAK,CAAC,OAAO,CACX,KAAK,CAAC,MAAM,CACV,QAAQ,CAAC,iBAAiB,EAC1B,MAAM,CAAC,GAAG,CAAC,gBAAgB,CAAC,iBAAiB,EAAE,QAAQ,CAAC,CACzD,CACF,CACF,CAAC"}
|
|
@@ -1,28 +1,27 @@
|
|
|
1
1
|
import { ServiceLogger } from "@effect-aws/commons";
|
|
2
|
-
import { Effect,
|
|
2
|
+
import { Effect, Layer, ServiceMap } from "effect";
|
|
3
3
|
import { dual } from "effect/Function";
|
|
4
|
-
import { globalValue } from "effect/GlobalValue";
|
|
5
4
|
/**
|
|
6
5
|
* @since 1.0.0
|
|
7
6
|
* @category sqs service config
|
|
8
7
|
*/
|
|
9
|
-
const currentSQSServiceConfig =
|
|
8
|
+
const currentSQSServiceConfig = ServiceMap.Reference("@effect-aws/client-sqs/currentSQSServiceConfig", { defaultValue: () => ({}) });
|
|
10
9
|
/**
|
|
11
10
|
* @since 1.0.0
|
|
12
11
|
* @category sqs service config
|
|
13
12
|
*/
|
|
14
|
-
export const withSQSServiceConfig = dual(2, (effect, config) => Effect.
|
|
13
|
+
export const withSQSServiceConfig = dual(2, (effect, config) => Effect.provideService(effect, currentSQSServiceConfig, config));
|
|
15
14
|
/**
|
|
16
15
|
* @since 1.0.0
|
|
17
16
|
* @category sqs service config
|
|
18
17
|
*/
|
|
19
|
-
export const setSQSServiceConfig = (config) => Layer.
|
|
18
|
+
export const setSQSServiceConfig = (config) => Layer.succeed(currentSQSServiceConfig, config);
|
|
20
19
|
/**
|
|
21
20
|
* @since 1.0.0
|
|
22
21
|
* @category adapters
|
|
23
22
|
*/
|
|
24
23
|
export const toSQSClientConfig = Effect.gen(function* () {
|
|
25
|
-
const { logger: serviceLogger, ...config } = yield*
|
|
24
|
+
const { logger: serviceLogger, ...config } = yield* currentSQSServiceConfig;
|
|
26
25
|
const logger = serviceLogger === true
|
|
27
26
|
? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger)
|
|
28
27
|
: (serviceLogger ? yield* ServiceLogger.toClientLogger(ServiceLogger.make(serviceLogger)) : undefined);
|
|
@@ -1 +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,
|
|
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,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AACnD,OAAO,EAAE,IAAI,E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
|
"description": "Effectful AWS SQS client",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -16,40 +16,34 @@
|
|
|
16
16
|
"homepage": "https://floydspace.github.io/effect-aws/docs/client-sqs",
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@aws-sdk/client-sqs": "^3",
|
|
19
|
-
"@effect-aws/commons": "^0.
|
|
19
|
+
"@effect-aws/commons": "^1.0.0-beta.0"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
22
|
-
"effect": ">=
|
|
22
|
+
"effect": ">=4.0.0 <5.0.0"
|
|
23
23
|
},
|
|
24
|
-
"main": "./dist/cjs/index.js",
|
|
25
24
|
"module": "./dist/esm/index.js",
|
|
26
25
|
"types": "./dist/dts/index.d.ts",
|
|
27
26
|
"exports": {
|
|
28
27
|
"./package.json": "./package.json",
|
|
29
28
|
".": {
|
|
30
29
|
"types": "./dist/dts/index.d.ts",
|
|
31
|
-
"import": "./dist/esm/index.js"
|
|
32
|
-
"default": "./dist/cjs/index.js"
|
|
30
|
+
"import": "./dist/esm/index.js"
|
|
33
31
|
},
|
|
34
32
|
"./Errors": {
|
|
35
33
|
"types": "./dist/dts/Errors.d.ts",
|
|
36
|
-
"import": "./dist/esm/Errors.js"
|
|
37
|
-
"default": "./dist/cjs/Errors.js"
|
|
34
|
+
"import": "./dist/esm/Errors.js"
|
|
38
35
|
},
|
|
39
36
|
"./SQSClientInstance": {
|
|
40
37
|
"types": "./dist/dts/SQSClientInstance.d.ts",
|
|
41
|
-
"import": "./dist/esm/SQSClientInstance.js"
|
|
42
|
-
"default": "./dist/cjs/SQSClientInstance.js"
|
|
38
|
+
"import": "./dist/esm/SQSClientInstance.js"
|
|
43
39
|
},
|
|
44
40
|
"./SQSService": {
|
|
45
41
|
"types": "./dist/dts/SQSService.d.ts",
|
|
46
|
-
"import": "./dist/esm/SQSService.js"
|
|
47
|
-
"default": "./dist/cjs/SQSService.js"
|
|
42
|
+
"import": "./dist/esm/SQSService.js"
|
|
48
43
|
},
|
|
49
44
|
"./SQSServiceConfig": {
|
|
50
45
|
"types": "./dist/dts/SQSServiceConfig.d.ts",
|
|
51
|
-
"import": "./dist/esm/SQSServiceConfig.js"
|
|
52
|
-
"default": "./dist/cjs/SQSServiceConfig.js"
|
|
46
|
+
"import": "./dist/esm/SQSServiceConfig.js"
|
|
53
47
|
}
|
|
54
48
|
},
|
|
55
49
|
"typesVersions": {
|
package/src/SQSClientInstance.ts
CHANGED
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
4
|
import { SQSClient } from "@aws-sdk/client-sqs";
|
|
5
|
-
import {
|
|
5
|
+
import { Effect, Layer, ServiceMap } from "effect";
|
|
6
6
|
import * as SQSServiceConfig from "./SQSServiceConfig.js";
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* @since 1.0.0
|
|
10
10
|
* @category tags
|
|
11
11
|
*/
|
|
12
|
-
export class SQSClientInstance extends
|
|
12
|
+
export class SQSClientInstance extends ServiceMap.Service<SQSClientInstance, SQSClient>()(
|
|
13
13
|
"@effect-aws/client-sqs/SQSClientInstance",
|
|
14
|
-
)
|
|
14
|
+
) {}
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* @since 1.0.0
|
|
@@ -30,4 +30,4 @@ export const make = Effect.flatMap(
|
|
|
30
30
|
* @since 1.0.0
|
|
31
31
|
* @category layers
|
|
32
32
|
*/
|
|
33
|
-
export const layer = Layer.
|
|
33
|
+
export const layer = Layer.effect(SQSClientInstance, make);
|