@effect-aws/client-sqs 1.10.9 → 2.0.0-beta.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.
- package/LICENSE +1 -1
- package/README.md +3 -3
- package/dist/dts/SQSClientInstance.d.ts +4 -2
- package/dist/dts/SQSClientInstance.d.ts.map +1 -1
- package/dist/dts/SQSService.d.ts +28 -28
- package/dist/dts/SQSService.d.ts.map +1 -1
- package/dist/dts/SQSServiceConfig.d.ts +2 -1
- package/dist/dts/SQSServiceConfig.d.ts.map +1 -1
- package/dist/esm/SQSClientInstance.js +5 -3
- package/dist/esm/SQSClientInstance.js.map +1 -1
- package/dist/esm/SQSService.js +4 -2
- package/dist/esm/SQSService.js.map +1 -1
- package/dist/esm/SQSServiceConfig.js +7 -6
- package/dist/esm/SQSServiceConfig.js.map +1 -1
- package/package.json +8 -14
- package/src/SQSClientInstance.ts +6 -4
- package/src/SQSService.ts +29 -27
- package/src/SQSServiceConfig.ts +8 -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,10 @@
|
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
4
|
import { SQSClient } from "@aws-sdk/client-sqs";
|
|
5
|
-
import
|
|
6
|
-
|
|
5
|
+
import * as Effect from "effect/Effect";
|
|
6
|
+
import * as Layer from "effect/Layer";
|
|
7
|
+
import * as ServiceMap from "effect/ServiceMap";
|
|
8
|
+
declare const SQSClientInstance_base: ServiceMap.ServiceClass<SQSClientInstance, "@effect-aws/client-sqs/SQSClientInstance", SQSClient>;
|
|
7
9
|
/**
|
|
8
10
|
* @since 1.0.0
|
|
9
11
|
* @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,
|
|
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,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;;AAGhD;;;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
|
@@ -3,8 +3,10 @@
|
|
|
3
3
|
*/
|
|
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
|
-
import type
|
|
7
|
-
import
|
|
6
|
+
import type * as Cause from "effect/Cause";
|
|
7
|
+
import * as Effect from "effect/Effect";
|
|
8
|
+
import * as Layer from "effect/Layer";
|
|
9
|
+
import * as ServiceMap from "effect/ServiceMap";
|
|
8
10
|
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
11
|
import * as Instance from "./SQSClientInstance.js";
|
|
10
12
|
interface SQSService$ {
|
|
@@ -12,104 +14,102 @@ interface SQSService$ {
|
|
|
12
14
|
/**
|
|
13
15
|
* @see {@link AddPermissionCommand}
|
|
14
16
|
*/
|
|
15
|
-
addPermission(args: AddPermissionCommandInput, options?: HttpHandlerOptions): Effect.Effect<AddPermissionCommandOutput, Cause.
|
|
17
|
+
addPermission(args: AddPermissionCommandInput, options?: HttpHandlerOptions): Effect.Effect<AddPermissionCommandOutput, Cause.TimeoutError | SdkError | InvalidAddressError | InvalidSecurityError | OverLimitError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
16
18
|
/**
|
|
17
19
|
* @see {@link CancelMessageMoveTaskCommand}
|
|
18
20
|
*/
|
|
19
|
-
cancelMessageMoveTask(args: CancelMessageMoveTaskCommandInput, options?: HttpHandlerOptions): Effect.Effect<CancelMessageMoveTaskCommandOutput, Cause.
|
|
21
|
+
cancelMessageMoveTask(args: CancelMessageMoveTaskCommandInput, options?: HttpHandlerOptions): Effect.Effect<CancelMessageMoveTaskCommandOutput, Cause.TimeoutError | SdkError | InvalidAddressError | InvalidSecurityError | RequestThrottledError | ResourceNotFoundError | UnsupportedOperationError>;
|
|
20
22
|
/**
|
|
21
23
|
* @see {@link ChangeMessageVisibilityCommand}
|
|
22
24
|
*/
|
|
23
|
-
changeMessageVisibility(args: ChangeMessageVisibilityCommandInput, options?: HttpHandlerOptions): Effect.Effect<ChangeMessageVisibilityCommandOutput, Cause.
|
|
25
|
+
changeMessageVisibility(args: ChangeMessageVisibilityCommandInput, options?: HttpHandlerOptions): Effect.Effect<ChangeMessageVisibilityCommandOutput, Cause.TimeoutError | SdkError | InvalidAddressError | InvalidSecurityError | MessageNotInflightError | QueueDoesNotExistError | ReceiptHandleIsInvalidError | RequestThrottledError | UnsupportedOperationError>;
|
|
24
26
|
/**
|
|
25
27
|
* @see {@link ChangeMessageVisibilityBatchCommand}
|
|
26
28
|
*/
|
|
27
|
-
changeMessageVisibilityBatch(args: ChangeMessageVisibilityBatchCommandInput, options?: HttpHandlerOptions): Effect.Effect<ChangeMessageVisibilityBatchCommandOutput, Cause.
|
|
29
|
+
changeMessageVisibilityBatch(args: ChangeMessageVisibilityBatchCommandInput, options?: HttpHandlerOptions): Effect.Effect<ChangeMessageVisibilityBatchCommandOutput, Cause.TimeoutError | SdkError | BatchEntryIdsNotDistinctError | EmptyBatchRequestError | InvalidAddressError | InvalidBatchEntryIdError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | TooManyEntriesInBatchRequestError | UnsupportedOperationError>;
|
|
28
30
|
/**
|
|
29
31
|
* @see {@link CreateQueueCommand}
|
|
30
32
|
*/
|
|
31
|
-
createQueue(args: CreateQueueCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateQueueCommandOutput, Cause.
|
|
33
|
+
createQueue(args: CreateQueueCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateQueueCommandOutput, Cause.TimeoutError | SdkError | InvalidAddressError | InvalidAttributeNameError | InvalidAttributeValueError | InvalidSecurityError | QueueDeletedRecentlyError | QueueNameExistsError | RequestThrottledError | UnsupportedOperationError>;
|
|
32
34
|
/**
|
|
33
35
|
* @see {@link DeleteMessageCommand}
|
|
34
36
|
*/
|
|
35
|
-
deleteMessage(args: DeleteMessageCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteMessageCommandOutput, Cause.
|
|
37
|
+
deleteMessage(args: DeleteMessageCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteMessageCommandOutput, Cause.TimeoutError | SdkError | InvalidAddressError | InvalidIdFormatError | InvalidSecurityError | QueueDoesNotExistError | ReceiptHandleIsInvalidError | RequestThrottledError | UnsupportedOperationError>;
|
|
36
38
|
/**
|
|
37
39
|
* @see {@link DeleteMessageBatchCommand}
|
|
38
40
|
*/
|
|
39
|
-
deleteMessageBatch(args: DeleteMessageBatchCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteMessageBatchCommandOutput, Cause.
|
|
41
|
+
deleteMessageBatch(args: DeleteMessageBatchCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteMessageBatchCommandOutput, Cause.TimeoutError | SdkError | BatchEntryIdsNotDistinctError | EmptyBatchRequestError | InvalidAddressError | InvalidBatchEntryIdError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | TooManyEntriesInBatchRequestError | UnsupportedOperationError>;
|
|
40
42
|
/**
|
|
41
43
|
* @see {@link DeleteQueueCommand}
|
|
42
44
|
*/
|
|
43
|
-
deleteQueue(args: DeleteQueueCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteQueueCommandOutput, Cause.
|
|
45
|
+
deleteQueue(args: DeleteQueueCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteQueueCommandOutput, Cause.TimeoutError | SdkError | InvalidAddressError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
44
46
|
/**
|
|
45
47
|
* @see {@link GetQueueAttributesCommand}
|
|
46
48
|
*/
|
|
47
|
-
getQueueAttributes(args: GetQueueAttributesCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetQueueAttributesCommandOutput, Cause.
|
|
49
|
+
getQueueAttributes(args: GetQueueAttributesCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetQueueAttributesCommandOutput, Cause.TimeoutError | SdkError | InvalidAddressError | InvalidAttributeNameError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
48
50
|
/**
|
|
49
51
|
* @see {@link GetQueueUrlCommand}
|
|
50
52
|
*/
|
|
51
|
-
getQueueUrl(args: GetQueueUrlCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetQueueUrlCommandOutput, Cause.
|
|
53
|
+
getQueueUrl(args: GetQueueUrlCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetQueueUrlCommandOutput, Cause.TimeoutError | SdkError | InvalidAddressError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
52
54
|
/**
|
|
53
55
|
* @see {@link ListDeadLetterSourceQueuesCommand}
|
|
54
56
|
*/
|
|
55
|
-
listDeadLetterSourceQueues(args: ListDeadLetterSourceQueuesCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListDeadLetterSourceQueuesCommandOutput, Cause.
|
|
57
|
+
listDeadLetterSourceQueues(args: ListDeadLetterSourceQueuesCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListDeadLetterSourceQueuesCommandOutput, Cause.TimeoutError | SdkError | InvalidAddressError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
56
58
|
/**
|
|
57
59
|
* @see {@link ListMessageMoveTasksCommand}
|
|
58
60
|
*/
|
|
59
|
-
listMessageMoveTasks(args: ListMessageMoveTasksCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListMessageMoveTasksCommandOutput, Cause.
|
|
61
|
+
listMessageMoveTasks(args: ListMessageMoveTasksCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListMessageMoveTasksCommandOutput, Cause.TimeoutError | SdkError | InvalidAddressError | InvalidSecurityError | RequestThrottledError | ResourceNotFoundError | UnsupportedOperationError>;
|
|
60
62
|
/**
|
|
61
63
|
* @see {@link ListQueueTagsCommand}
|
|
62
64
|
*/
|
|
63
|
-
listQueueTags(args: ListQueueTagsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListQueueTagsCommandOutput, Cause.
|
|
65
|
+
listQueueTags(args: ListQueueTagsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListQueueTagsCommandOutput, Cause.TimeoutError | SdkError | InvalidAddressError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
64
66
|
/**
|
|
65
67
|
* @see {@link ListQueuesCommand}
|
|
66
68
|
*/
|
|
67
|
-
listQueues(args: ListQueuesCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListQueuesCommandOutput, Cause.
|
|
69
|
+
listQueues(args: ListQueuesCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListQueuesCommandOutput, Cause.TimeoutError | SdkError | InvalidAddressError | InvalidSecurityError | RequestThrottledError | UnsupportedOperationError>;
|
|
68
70
|
/**
|
|
69
71
|
* @see {@link PurgeQueueCommand}
|
|
70
72
|
*/
|
|
71
|
-
purgeQueue(args: PurgeQueueCommandInput, options?: HttpHandlerOptions): Effect.Effect<PurgeQueueCommandOutput, Cause.
|
|
73
|
+
purgeQueue(args: PurgeQueueCommandInput, options?: HttpHandlerOptions): Effect.Effect<PurgeQueueCommandOutput, Cause.TimeoutError | SdkError | InvalidAddressError | InvalidSecurityError | PurgeQueueInProgressError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
72
74
|
/**
|
|
73
75
|
* @see {@link ReceiveMessageCommand}
|
|
74
76
|
*/
|
|
75
|
-
receiveMessage(args: ReceiveMessageCommandInput, options?: HttpHandlerOptions): Effect.Effect<ReceiveMessageCommandOutput, Cause.
|
|
77
|
+
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
78
|
/**
|
|
77
79
|
* @see {@link RemovePermissionCommand}
|
|
78
80
|
*/
|
|
79
|
-
removePermission(args: RemovePermissionCommandInput, options?: HttpHandlerOptions): Effect.Effect<RemovePermissionCommandOutput, Cause.
|
|
81
|
+
removePermission(args: RemovePermissionCommandInput, options?: HttpHandlerOptions): Effect.Effect<RemovePermissionCommandOutput, Cause.TimeoutError | SdkError | InvalidAddressError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
80
82
|
/**
|
|
81
83
|
* @see {@link SendMessageCommand}
|
|
82
84
|
*/
|
|
83
|
-
sendMessage(args: SendMessageCommandInput, options?: HttpHandlerOptions): Effect.Effect<SendMessageCommandOutput, Cause.
|
|
85
|
+
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
86
|
/**
|
|
85
87
|
* @see {@link SendMessageBatchCommand}
|
|
86
88
|
*/
|
|
87
|
-
sendMessageBatch(args: SendMessageBatchCommandInput, options?: HttpHandlerOptions): Effect.Effect<SendMessageBatchCommandOutput, Cause.
|
|
89
|
+
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
90
|
/**
|
|
89
91
|
* @see {@link SetQueueAttributesCommand}
|
|
90
92
|
*/
|
|
91
|
-
setQueueAttributes(args: SetQueueAttributesCommandInput, options?: HttpHandlerOptions): Effect.Effect<SetQueueAttributesCommandOutput, Cause.
|
|
93
|
+
setQueueAttributes(args: SetQueueAttributesCommandInput, options?: HttpHandlerOptions): Effect.Effect<SetQueueAttributesCommandOutput, Cause.TimeoutError | SdkError | InvalidAddressError | InvalidAttributeNameError | InvalidAttributeValueError | InvalidSecurityError | OverLimitError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
92
94
|
/**
|
|
93
95
|
* @see {@link StartMessageMoveTaskCommand}
|
|
94
96
|
*/
|
|
95
|
-
startMessageMoveTask(args: StartMessageMoveTaskCommandInput, options?: HttpHandlerOptions): Effect.Effect<StartMessageMoveTaskCommandOutput, Cause.
|
|
97
|
+
startMessageMoveTask(args: StartMessageMoveTaskCommandInput, options?: HttpHandlerOptions): Effect.Effect<StartMessageMoveTaskCommandOutput, Cause.TimeoutError | SdkError | InvalidAddressError | InvalidSecurityError | RequestThrottledError | ResourceNotFoundError | UnsupportedOperationError>;
|
|
96
98
|
/**
|
|
97
99
|
* @see {@link TagQueueCommand}
|
|
98
100
|
*/
|
|
99
|
-
tagQueue(args: TagQueueCommandInput, options?: HttpHandlerOptions): Effect.Effect<TagQueueCommandOutput, Cause.
|
|
101
|
+
tagQueue(args: TagQueueCommandInput, options?: HttpHandlerOptions): Effect.Effect<TagQueueCommandOutput, Cause.TimeoutError | SdkError | InvalidAddressError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
100
102
|
/**
|
|
101
103
|
* @see {@link UntagQueueCommand}
|
|
102
104
|
*/
|
|
103
|
-
untagQueue(args: UntagQueueCommandInput, options?: HttpHandlerOptions): Effect.Effect<UntagQueueCommandOutput, Cause.
|
|
105
|
+
untagQueue(args: UntagQueueCommandInput, options?: HttpHandlerOptions): Effect.Effect<UntagQueueCommandOutput, Cause.TimeoutError | SdkError | InvalidAddressError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError>;
|
|
104
106
|
}
|
|
105
107
|
/**
|
|
106
108
|
* @since 1.0.0
|
|
107
109
|
* @category constructors
|
|
108
110
|
*/
|
|
109
111
|
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
|
-
};
|
|
112
|
+
declare const SQSService_base: ServiceMap.ServiceClass<SQSService, "@effect-aws/client-sqs/SQSService", SQSService$>;
|
|
113
113
|
/**
|
|
114
114
|
* @since 1.0.0
|
|
115
115
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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;IAED;;OAEG;IACH,KAAY,IAAI,GAAG,WAAW,CAAC;CAChC"}
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
4
|
import type { SQSClientConfig } from "@aws-sdk/client-sqs";
|
|
5
|
-
import
|
|
5
|
+
import * as Effect from "effect/Effect";
|
|
6
|
+
import * as Layer from "effect/Layer";
|
|
6
7
|
import type { SQSService } from "./SQSService.js";
|
|
7
8
|
/**
|
|
8
9
|
* @since 1.0.0
|
|
@@ -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,
|
|
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,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AAEtC,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,15 @@
|
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
4
|
import { SQSClient } from "@aws-sdk/client-sqs";
|
|
5
|
-
import
|
|
5
|
+
import * as Effect from "effect/Effect";
|
|
6
|
+
import * as Layer from "effect/Layer";
|
|
7
|
+
import * as ServiceMap from "effect/ServiceMap";
|
|
6
8
|
import * as SQSServiceConfig from "./SQSServiceConfig.js";
|
|
7
9
|
/**
|
|
8
10
|
* @since 1.0.0
|
|
9
11
|
* @category tags
|
|
10
12
|
*/
|
|
11
|
-
export class SQSClientInstance extends
|
|
13
|
+
export class SQSClientInstance extends ServiceMap.Service()("@effect-aws/client-sqs/SQSClientInstance") {
|
|
12
14
|
}
|
|
13
15
|
/**
|
|
14
16
|
* @since 1.0.0
|
|
@@ -19,5 +21,5 @@ export const make = Effect.flatMap(SQSServiceConfig.toSQSClientConfig, (config)
|
|
|
19
21
|
* @since 1.0.0
|
|
20
22
|
* @category layers
|
|
21
23
|
*/
|
|
22
|
-
export const layer = Layer.
|
|
24
|
+
export const layer = Layer.effect(SQSClientInstance, make);
|
|
23
25
|
//# 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,
|
|
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,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAChD,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,9 @@
|
|
|
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
|
|
6
|
+
import * as Effect from "effect/Effect";
|
|
7
|
+
import * as Layer from "effect/Layer";
|
|
8
|
+
import * as ServiceMap from "effect/ServiceMap";
|
|
7
9
|
import { AllServiceErrors } from "./Errors.js";
|
|
8
10
|
import * as Instance from "./SQSClientInstance.js";
|
|
9
11
|
import * as SQSServiceConfig from "./SQSServiceConfig.js";
|
|
@@ -47,7 +49,7 @@ export const makeSQSService = Effect.gen(function* () {
|
|
|
47
49
|
* @since 1.0.0
|
|
48
50
|
* @category models
|
|
49
51
|
*/
|
|
50
|
-
export class SQSService extends
|
|
52
|
+
export class SQSService extends ServiceMap.Service()("@effect-aws/client-sqs/SQSService") {
|
|
51
53
|
static defaultLayer = Layer.effect(this, makeSQSService).pipe(Layer.provide(Instance.layer));
|
|
52
54
|
static layer = (config) => Layer.effect(this, makeSQSService).pipe(Layer.provide(Instance.layer), Layer.provide(SQSServiceConfig.setSQSServiceConfig(config)));
|
|
53
55
|
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,8BAA8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,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,29 @@
|
|
|
1
1
|
import { ServiceLogger } from "@effect-aws/commons";
|
|
2
|
-
import
|
|
2
|
+
import * as Effect from "effect/Effect";
|
|
3
3
|
import { dual } from "effect/Function";
|
|
4
|
-
import
|
|
4
|
+
import * as Layer from "effect/Layer";
|
|
5
|
+
import * as ServiceMap from "effect/ServiceMap";
|
|
5
6
|
/**
|
|
6
7
|
* @since 1.0.0
|
|
7
8
|
* @category sqs service config
|
|
8
9
|
*/
|
|
9
|
-
const currentSQSServiceConfig =
|
|
10
|
+
const currentSQSServiceConfig = ServiceMap.Reference("@effect-aws/client-sqs/currentSQSServiceConfig", { defaultValue: () => ({}) });
|
|
10
11
|
/**
|
|
11
12
|
* @since 1.0.0
|
|
12
13
|
* @category sqs service config
|
|
13
14
|
*/
|
|
14
|
-
export const withSQSServiceConfig = dual(2, (effect, config) => Effect.
|
|
15
|
+
export const withSQSServiceConfig = dual(2, (effect, config) => Effect.provideService(effect, currentSQSServiceConfig, config));
|
|
15
16
|
/**
|
|
16
17
|
* @since 1.0.0
|
|
17
18
|
* @category sqs service config
|
|
18
19
|
*/
|
|
19
|
-
export const setSQSServiceConfig = (config) => Layer.
|
|
20
|
+
export const setSQSServiceConfig = (config) => Layer.succeed(currentSQSServiceConfig, config);
|
|
20
21
|
/**
|
|
21
22
|
* @since 1.0.0
|
|
22
23
|
* @category adapters
|
|
23
24
|
*/
|
|
24
25
|
export const toSQSClientConfig = Effect.gen(function* () {
|
|
25
|
-
const { logger: serviceLogger, ...config } = yield*
|
|
26
|
+
const { logger: serviceLogger, ...config } = yield* currentSQSServiceConfig;
|
|
26
27
|
const logger = serviceLogger === true
|
|
27
28
|
? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger)
|
|
28
29
|
: (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,
|
|
1
|
+
{"version":3,"file":"SQSServiceConfig.js","sourceRoot":"","sources":["../../src/SQSServiceConfig.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAGhD;;;GAGG;AACH,MAAM,uBAAuB,GAAG,UAAU,CAAC,SAAS,CAClD,gDAAgD,EAChD,EAAE,YAAY,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAC7B,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAG7B,IAAI,CACN,CAAC,EACD,CAAU,MAA8B,EAAE,MAAyB,EAA0B,EAAE,CAC7F,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,uBAAuB,EAAE,MAAM,CAAC,CACjE,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,MAAyB,EAAE,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,uBAAuB,EAAE,MAAM,CAAC,CAAC;AAEjH;;;GAGG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAmC,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IACnF,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,GAAG,MAAM,EAAE,GAAG,KAAK,CAAC,CAAC,uBAAuB,CAAC;IAE5E,MAAM,MAAM,GAAG,aAAa,KAAK,IAAI;QACnC,CAAC,CAAC,KAAK,CAAC,CAAC,aAAa,CAAC,cAAc,CAAC,aAAa,CAAC,oBAAoB,CAAC;QACzE,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,aAAa,CAAC,cAAc,CAAC,aAAa,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;IAEzG,OAAO,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC;AAC/B,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effect-aws/client-sqs",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-beta.1",
|
|
4
4
|
"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.1"
|
|
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,18 @@
|
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
4
|
import { SQSClient } from "@aws-sdk/client-sqs";
|
|
5
|
-
import
|
|
5
|
+
import * as Effect from "effect/Effect";
|
|
6
|
+
import * as Layer from "effect/Layer";
|
|
7
|
+
import * as ServiceMap from "effect/ServiceMap";
|
|
6
8
|
import * as SQSServiceConfig from "./SQSServiceConfig.js";
|
|
7
9
|
|
|
8
10
|
/**
|
|
9
11
|
* @since 1.0.0
|
|
10
12
|
* @category tags
|
|
11
13
|
*/
|
|
12
|
-
export class SQSClientInstance extends
|
|
14
|
+
export class SQSClientInstance extends ServiceMap.Service<SQSClientInstance, SQSClient>()(
|
|
13
15
|
"@effect-aws/client-sqs/SQSClientInstance",
|
|
14
|
-
)
|
|
16
|
+
) {}
|
|
15
17
|
|
|
16
18
|
/**
|
|
17
19
|
* @since 1.0.0
|
|
@@ -30,4 +32,4 @@ export const make = Effect.flatMap(
|
|
|
30
32
|
* @since 1.0.0
|
|
31
33
|
* @category layers
|
|
32
34
|
*/
|
|
33
|
-
export const layer = Layer.
|
|
35
|
+
export const layer = Layer.effect(SQSClientInstance, make);
|