@effect-aws/client-sqs 1.6.0 → 1.9.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/Errors/package.json +6 -0
- package/LICENSE +1 -1
- 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/{lib → dist/cjs}/SQSService.d.ts +16 -38
- package/dist/cjs/SQSService.d.ts.map +1 -0
- package/dist/cjs/SQSService.js +79 -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 +158 -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 +52 -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 +603 -0
- package/src/SQSServiceConfig.ts +51 -0
- package/src/index.ts +44 -0
- package/CHANGELOG.md +0 -109
- 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.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
package/LICENSE
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
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 {
|
|
3
|
-
|
|
4
|
-
export
|
|
5
|
-
name: string;
|
|
6
|
-
}> = T & {
|
|
7
|
-
readonly _tag: T["name"];
|
|
8
|
-
};
|
|
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"];
|
|
9
5
|
export type BatchEntryIdsNotDistinctError = TaggedException<BatchEntryIdsNotDistinct>;
|
|
10
6
|
export type BatchRequestTooLongError = TaggedException<BatchRequestTooLong>;
|
|
11
7
|
export type EmptyBatchRequestError = TaggedException<EmptyBatchRequest>;
|
|
@@ -34,7 +30,6 @@ export type RequestThrottledError = TaggedException<RequestThrottled>;
|
|
|
34
30
|
export type ResourceNotFoundError = TaggedException<ResourceNotFoundException>;
|
|
35
31
|
export type TooManyEntriesInBatchRequestError = TaggedException<TooManyEntriesInBatchRequest>;
|
|
36
32
|
export type UnsupportedOperationError = TaggedException<UnsupportedOperation>;
|
|
37
|
-
export type SdkError =
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
export declare const SdkError: Data.Case.Constructor<SdkError, "_tag">;
|
|
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 @@
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AAC;AAE9E,MAAM,MAAM,QAAQ,GAAG,cAAc,CAAC;AACtC,eAAO,MAAM,QAAQ,gEAAiB,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SdkError = exports.AllServiceErrors = void 0;
|
|
4
|
+
const commons_1 = require("@effect-aws/commons");
|
|
5
|
+
exports.AllServiceErrors = [
|
|
6
|
+
"BatchEntryIdsNotDistinct",
|
|
7
|
+
"BatchRequestTooLong",
|
|
8
|
+
"EmptyBatchRequest",
|
|
9
|
+
"InvalidAddress",
|
|
10
|
+
"InvalidAttributeName",
|
|
11
|
+
"InvalidAttributeValue",
|
|
12
|
+
"InvalidBatchEntryId",
|
|
13
|
+
"InvalidIdFormat",
|
|
14
|
+
"InvalidMessageContents",
|
|
15
|
+
"InvalidSecurity",
|
|
16
|
+
"KmsAccessDenied",
|
|
17
|
+
"KmsDisabled",
|
|
18
|
+
"KmsInvalidKeyUsage",
|
|
19
|
+
"KmsInvalidState",
|
|
20
|
+
"KmsNotFound",
|
|
21
|
+
"KmsOptInRequired",
|
|
22
|
+
"KmsThrottled",
|
|
23
|
+
"MessageNotInflight",
|
|
24
|
+
"OverLimit",
|
|
25
|
+
"PurgeQueueInProgress",
|
|
26
|
+
"QueueDeletedRecently",
|
|
27
|
+
"QueueDoesNotExist",
|
|
28
|
+
"QueueNameExists",
|
|
29
|
+
"ReceiptHandleIsInvalid",
|
|
30
|
+
"RequestThrottled",
|
|
31
|
+
"ResourceNotFoundException",
|
|
32
|
+
"TooManyEntriesInBatchRequest",
|
|
33
|
+
"UnsupportedOperation",
|
|
34
|
+
];
|
|
35
|
+
exports.SdkError = commons_1.SdkError;
|
|
36
|
+
//# sourceMappingURL=Errors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Errors.js","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":";;;AA+BA,iDAAiE;AAEpD,QAAA,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;AAgCE,QAAA,QAAQ,GAAG,kBAAc,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,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.layer = exports.make = exports.SQSClientInstance = void 0;
|
|
27
|
+
/**
|
|
28
|
+
* @since 1.0.0
|
|
29
|
+
*/
|
|
30
|
+
const client_sqs_1 = require("@aws-sdk/client-sqs");
|
|
31
|
+
const effect_1 = require("effect");
|
|
32
|
+
const SQSServiceConfig = __importStar(require("./SQSServiceConfig.js"));
|
|
33
|
+
/**
|
|
34
|
+
* @since 1.0.0
|
|
35
|
+
* @category tags
|
|
36
|
+
*/
|
|
37
|
+
class SQSClientInstance extends effect_1.Context.Tag("@effect-aws/client-sqs/SQSClientInstance")() {
|
|
38
|
+
}
|
|
39
|
+
exports.SQSClientInstance = SQSClientInstance;
|
|
40
|
+
/**
|
|
41
|
+
* @since 1.0.0
|
|
42
|
+
* @category constructors
|
|
43
|
+
*/
|
|
44
|
+
exports.make = effect_1.Effect.flatMap(SQSServiceConfig.toSQSClientConfig, (config) => effect_1.Effect.acquireRelease(effect_1.Effect.sync(() => new client_sqs_1.SQSClient(config)), (client) => effect_1.Effect.sync(() => client.destroy())));
|
|
45
|
+
/**
|
|
46
|
+
* @since 1.0.0
|
|
47
|
+
* @category layers
|
|
48
|
+
*/
|
|
49
|
+
exports.layer = effect_1.Layer.scoped(SQSClientInstance, exports.make);
|
|
50
|
+
//# sourceMappingURL=SQSClientInstance.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SQSClientInstance.js","sourceRoot":"","sources":["../../src/SQSClientInstance.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,oDAAgD;AAChD,mCAAgD;AAChD,wEAA0D;AAE1D;;;GAGG;AACH,MAAa,iBAAkB,SAAQ,gBAAO,CAAC,GAAG,CAChD,0CAA0C,CAC3C,EAAgC;CAAG;AAFpC,8CAEoC;AAEpC;;;GAGG;AACU,QAAA,IAAI,GAAG,eAAM,CAAC,OAAO,CAChC,gBAAgB,CAAC,iBAAiB,EAClC,CAAC,MAAM,EAAE,EAAE,CACT,eAAM,CAAC,cAAc,CACnB,eAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,sBAAS,CAAC,MAAM,CAAC,CAAC,EACxC,CAAC,MAAM,EAAE,EAAE,CAAC,eAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,CAChD,CACJ,CAAC;AAEF;;;GAGG;AACU,QAAA,KAAK,GAAG,cAAK,CAAC,MAAM,CAAC,iBAAiB,EAAE,YAAI,CAAC,CAAC"}
|
|
@@ -1,21 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
|
-
import { type
|
|
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";
|
|
5
6
|
import { Effect, Layer } from "effect";
|
|
6
|
-
import { 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
|
|
7
|
-
import
|
|
8
|
-
import { SQSClientInstanceConfig } from "./SQSClientInstanceConfig";
|
|
9
|
-
/**
|
|
10
|
-
* @since 1.0.0
|
|
11
|
-
*/
|
|
12
|
-
export interface HttpHandlerOptions {
|
|
13
|
-
/**
|
|
14
|
-
* The maximum time in milliseconds that the connection phase of a request
|
|
15
|
-
* may take before the connection attempt is abandoned.
|
|
16
|
-
*/
|
|
17
|
-
requestTimeout?: number;
|
|
18
|
-
}
|
|
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";
|
|
19
9
|
interface SQSService$ {
|
|
20
10
|
readonly _: unique symbol;
|
|
21
11
|
/**
|
|
@@ -115,7 +105,7 @@ interface SQSService$ {
|
|
|
115
105
|
* @since 1.0.0
|
|
116
106
|
* @category constructors
|
|
117
107
|
*/
|
|
118
|
-
export declare const makeSQSService: Effect.Effect<SQSService$, never, SQSClientInstance>;
|
|
108
|
+
export declare const makeSQSService: Effect.Effect<SQSService$, never, Instance.SQSClientInstance>;
|
|
119
109
|
declare const SQSService_base: import("effect/Context").TagClass<SQSService, "@effect-aws/client-sqs/SQSService", SQSService$> & {
|
|
120
110
|
readonly _: Effect.Effect<SQSService$["_"], never, SQSService>;
|
|
121
111
|
addPermission: (args: AddPermissionCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<AddPermissionCommandOutput, InvalidAddressError | InvalidSecurityError | OverLimitError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError | SdkError, SQSService>;
|
|
@@ -142,7 +132,7 @@ declare const SQSService_base: import("effect/Context").TagClass<SQSService, "@e
|
|
|
142
132
|
tagQueue: (args: TagQueueCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<TagQueueCommandOutput, InvalidAddressError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError | SdkError, SQSService>;
|
|
143
133
|
untagQueue: (args: UntagQueueCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<UntagQueueCommandOutput, InvalidAddressError | InvalidSecurityError | QueueDoesNotExistError | RequestThrottledError | UnsupportedOperationError | SdkError, SQSService>;
|
|
144
134
|
} & {
|
|
145
|
-
use: <X>(body: (_: SQSService$) => X) => X extends Effect.Effect<infer A, infer E, infer R> ? Effect.Effect<A, E,
|
|
135
|
+
use: <X>(body: (_: SQSService$) => X) => X extends Effect.Effect<infer A, infer E, infer R> ? Effect.Effect<A, E, SQSService | R> : Effect.Effect<X, never, SQSService>;
|
|
146
136
|
};
|
|
147
137
|
/**
|
|
148
138
|
* @since 1.0.0
|
|
@@ -150,31 +140,19 @@ declare const SQSService_base: import("effect/Context").TagClass<SQSService, "@e
|
|
|
150
140
|
*/
|
|
151
141
|
export declare class SQSService extends SQSService_base {
|
|
152
142
|
static readonly defaultLayer: Layer.Layer<SQSService, never, never>;
|
|
153
|
-
static readonly layer: (config:
|
|
143
|
+
static readonly layer: (config: SQSService.Config) => Layer.Layer<SQSService, never, never>;
|
|
154
144
|
static readonly baseLayer: (evaluate: (defaultConfig: SQSClientConfig) => SQSClient) => Layer.Layer<SQSService, never, never>;
|
|
155
145
|
}
|
|
156
146
|
/**
|
|
157
147
|
* @since 1.0.0
|
|
158
|
-
* @category models
|
|
159
|
-
* @alias SQSService
|
|
160
|
-
*/
|
|
161
|
-
export declare const SQS: typeof SQSService;
|
|
162
|
-
/**
|
|
163
|
-
* @since 1.0.0
|
|
164
|
-
* @category layers
|
|
165
|
-
* @deprecated use SQS.baseLayer instead
|
|
166
148
|
*/
|
|
167
|
-
export declare
|
|
168
|
-
/**
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
* @since 1.0.0
|
|
176
|
-
* @category layers
|
|
177
|
-
* @deprecated use SQS.defaultLayer instead
|
|
178
|
-
*/
|
|
179
|
-
export declare const DefaultSQSServiceLayer: Layer.Layer<SQSService, never, never>;
|
|
149
|
+
export declare namespace SQSService {
|
|
150
|
+
/**
|
|
151
|
+
* @since 1.0.0
|
|
152
|
+
*/
|
|
153
|
+
interface Config extends Omit<SQSClientConfig, "logger"> {
|
|
154
|
+
readonly logger?: ServiceLogger.ServiceLoggerConstructorProps | true;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
180
157
|
export {};
|
|
158
|
+
//# 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,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAE7B,KAAK,sCAAsC,EAC3C,KAAK,uCAAuC,EAE5C,KAAK,gCAAgC,EACrC,KAAK,iCAAiC,EAEtC,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAE5B,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,EAE/B,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAE5B,KAAK,0BAA0B,EAC/B,KAAK,2BAA2B,EAEhC,KAAK,4BAA4B,EACjC,KAAK,6BAA6B,EAElC,KAAK,4BAA4B,EACjC,KAAK,6BAA6B,EAElC,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAE7B,KAAK,8BAA8B,EACnC,KAAK,+BAA+B,EACpC,KAAK,SAAS,EACd,KAAK,eAAe,EAEpB,KAAK,gCAAgC,EACrC,KAAK,iCAAiC,EAEtC,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAE1B,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAC7B,MAAM,qBAAq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d,qBAAqB,EACnB,QAAQ,GACR,mBAAmB,GACnB,oBAAoB,GACpB,sBAAsB,GACtB,qBAAqB,GACrB,yBAAyB,CAC5B,CAAC;IAEF;;OAEG;IACH,UAAU,CACR,IAAI,EAAE,sBAAsB,EAC5B,OAAO,CAAC,EAAE,kBAAkB,GAC3B,MAAM,CAAC,MAAM,CACd,uBAAuB,EACrB,QAAQ,GACR,mBAAmB,GACnB,oBAAoB,GACpB,sBAAsB,GACtB,qBAAqB,GACrB,yBAAyB,CAC5B,CAAC;CACH;AAED;;;GAGG;AACH,eAAO,MAAM,cAAc,+DAIzB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH;;;GAGG;AACH,qBAAa,UAAW,SAAQ,eAG7B;IACD,MAAM,CAAC,QAAQ,CAAC,YAAY,wCAA0E;IACtG,MAAM,CAAC,QAAQ,CAAC,KAAK,WAAY,WAAW,MAAM,2CAI9C;IACJ,MAAM,CAAC,QAAQ,CAAC,SAAS,aACb,CAAC,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,79 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.SQSService = exports.makeSQSService = void 0;
|
|
27
|
+
/**
|
|
28
|
+
* @since 1.0.0
|
|
29
|
+
*/
|
|
30
|
+
const client_sqs_1 = require("@aws-sdk/client-sqs");
|
|
31
|
+
const commons_1 = require("@effect-aws/commons");
|
|
32
|
+
const effect_1 = require("effect");
|
|
33
|
+
const Errors_js_1 = require("./Errors.js");
|
|
34
|
+
const Instance = __importStar(require("./SQSClientInstance.js"));
|
|
35
|
+
const SQSServiceConfig = __importStar(require("./SQSServiceConfig.js"));
|
|
36
|
+
const commands = {
|
|
37
|
+
AddPermissionCommand: client_sqs_1.AddPermissionCommand,
|
|
38
|
+
CancelMessageMoveTaskCommand: client_sqs_1.CancelMessageMoveTaskCommand,
|
|
39
|
+
ChangeMessageVisibilityCommand: client_sqs_1.ChangeMessageVisibilityCommand,
|
|
40
|
+
ChangeMessageVisibilityBatchCommand: client_sqs_1.ChangeMessageVisibilityBatchCommand,
|
|
41
|
+
CreateQueueCommand: client_sqs_1.CreateQueueCommand,
|
|
42
|
+
DeleteMessageCommand: client_sqs_1.DeleteMessageCommand,
|
|
43
|
+
DeleteMessageBatchCommand: client_sqs_1.DeleteMessageBatchCommand,
|
|
44
|
+
DeleteQueueCommand: client_sqs_1.DeleteQueueCommand,
|
|
45
|
+
GetQueueAttributesCommand: client_sqs_1.GetQueueAttributesCommand,
|
|
46
|
+
GetQueueUrlCommand: client_sqs_1.GetQueueUrlCommand,
|
|
47
|
+
ListDeadLetterSourceQueuesCommand: client_sqs_1.ListDeadLetterSourceQueuesCommand,
|
|
48
|
+
ListMessageMoveTasksCommand: client_sqs_1.ListMessageMoveTasksCommand,
|
|
49
|
+
ListQueueTagsCommand: client_sqs_1.ListQueueTagsCommand,
|
|
50
|
+
ListQueuesCommand: client_sqs_1.ListQueuesCommand,
|
|
51
|
+
PurgeQueueCommand: client_sqs_1.PurgeQueueCommand,
|
|
52
|
+
ReceiveMessageCommand: client_sqs_1.ReceiveMessageCommand,
|
|
53
|
+
RemovePermissionCommand: client_sqs_1.RemovePermissionCommand,
|
|
54
|
+
SendMessageCommand: client_sqs_1.SendMessageCommand,
|
|
55
|
+
SendMessageBatchCommand: client_sqs_1.SendMessageBatchCommand,
|
|
56
|
+
SetQueueAttributesCommand: client_sqs_1.SetQueueAttributesCommand,
|
|
57
|
+
StartMessageMoveTaskCommand: client_sqs_1.StartMessageMoveTaskCommand,
|
|
58
|
+
TagQueueCommand: client_sqs_1.TagQueueCommand,
|
|
59
|
+
UntagQueueCommand: client_sqs_1.UntagQueueCommand,
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* @since 1.0.0
|
|
63
|
+
* @category constructors
|
|
64
|
+
*/
|
|
65
|
+
exports.makeSQSService = effect_1.Effect.gen(function* () {
|
|
66
|
+
const client = yield* Instance.SQSClientInstance;
|
|
67
|
+
return commons_1.Service.fromClientAndCommands(client, commands, Errors_js_1.AllServiceErrors);
|
|
68
|
+
});
|
|
69
|
+
/**
|
|
70
|
+
* @since 1.0.0
|
|
71
|
+
* @category models
|
|
72
|
+
*/
|
|
73
|
+
class SQSService extends effect_1.Effect.Tag("@effect-aws/client-sqs/SQSService")() {
|
|
74
|
+
static defaultLayer = effect_1.Layer.effect(this, exports.makeSQSService).pipe(effect_1.Layer.provide(Instance.layer));
|
|
75
|
+
static layer = (config) => effect_1.Layer.effect(this, exports.makeSQSService).pipe(effect_1.Layer.provide(Instance.layer), effect_1.Layer.provide(SQSServiceConfig.setSQSServiceConfig(config)));
|
|
76
|
+
static baseLayer = (evaluate) => effect_1.Layer.effect(this, exports.makeSQSService).pipe(effect_1.Layer.provide(effect_1.Layer.effect(Instance.SQSClientInstance, effect_1.Effect.map(SQSServiceConfig.toSQSClientConfig, evaluate))));
|
|
77
|
+
}
|
|
78
|
+
exports.SQSService = SQSService;
|
|
79
|
+
//# sourceMappingURL=SQSService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SQSService.js","sourceRoot":"","sources":["../../src/SQSService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,oDAwE6B;AAE7B,iDAA8C;AAC9C,mCAAuC;AA+BvC,2CAA+C;AAC/C,iEAAmD;AACnD,wEAA0D;AAE1D,MAAM,QAAQ,GAAG;IACf,oBAAoB,EAApB,iCAAoB;IACpB,4BAA4B,EAA5B,yCAA4B;IAC5B,8BAA8B,EAA9B,2CAA8B;IAC9B,mCAAmC,EAAnC,gDAAmC;IACnC,kBAAkB,EAAlB,+BAAkB;IAClB,oBAAoB,EAApB,iCAAoB;IACpB,yBAAyB,EAAzB,sCAAyB;IACzB,kBAAkB,EAAlB,+BAAkB;IAClB,yBAAyB,EAAzB,sCAAyB;IACzB,kBAAkB,EAAlB,+BAAkB;IAClB,iCAAiC,EAAjC,8CAAiC;IACjC,2BAA2B,EAA3B,wCAA2B;IAC3B,oBAAoB,EAApB,iCAAoB;IACpB,iBAAiB,EAAjB,8BAAiB;IACjB,iBAAiB,EAAjB,8BAAiB;IACjB,qBAAqB,EAArB,kCAAqB;IACrB,uBAAuB,EAAvB,o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CACzD,CACF,CACF,CAAC;;AApBN,gCAqBC"}
|
|
@@ -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,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.toSQSClientConfig = exports.setSQSServiceConfig = exports.withSQSServiceConfig = void 0;
|
|
4
|
+
const commons_1 = require("@effect-aws/commons");
|
|
5
|
+
const effect_1 = require("effect");
|
|
6
|
+
const Function_1 = require("effect/Function");
|
|
7
|
+
const GlobalValue_1 = require("effect/GlobalValue");
|
|
8
|
+
/**
|
|
9
|
+
* @since 1.0.0
|
|
10
|
+
* @category sqs service config
|
|
11
|
+
*/
|
|
12
|
+
const currentSQSServiceConfig = (0, GlobalValue_1.globalValue)("@effect-aws/client-sqs/currentSQSServiceConfig", () => effect_1.FiberRef.unsafeMake({}));
|
|
13
|
+
/**
|
|
14
|
+
* @since 1.0.0
|
|
15
|
+
* @category sqs service config
|
|
16
|
+
*/
|
|
17
|
+
exports.withSQSServiceConfig = (0, Function_1.dual)(2, (effect, config) => effect_1.Effect.locally(effect, currentSQSServiceConfig, config));
|
|
18
|
+
/**
|
|
19
|
+
* @since 1.0.0
|
|
20
|
+
* @category sqs service config
|
|
21
|
+
*/
|
|
22
|
+
const setSQSServiceConfig = (config) => effect_1.Layer.locallyScoped(currentSQSServiceConfig, config);
|
|
23
|
+
exports.setSQSServiceConfig = setSQSServiceConfig;
|
|
24
|
+
/**
|
|
25
|
+
* @since 1.0.0
|
|
26
|
+
* @category adapters
|
|
27
|
+
*/
|
|
28
|
+
exports.toSQSClientConfig = effect_1.Effect.gen(function* () {
|
|
29
|
+
const { logger: serviceLogger, ...config } = yield* effect_1.FiberRef.get(currentSQSServiceConfig);
|
|
30
|
+
const logger = serviceLogger === true
|
|
31
|
+
? yield* commons_1.ServiceLogger.toClientLogger(commons_1.ServiceLogger.defaultServiceLogger)
|
|
32
|
+
: (serviceLogger ? yield* commons_1.ServiceLogger.toClientLogger(commons_1.ServiceLogger.make(serviceLogger)) : undefined);
|
|
33
|
+
return { logger, ...config };
|
|
34
|
+
});
|
|
35
|
+
//# sourceMappingURL=SQSServiceConfig.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SQSServiceConfig.js","sourceRoot":"","sources":["../../src/SQSServiceConfig.ts"],"names":[],"mappings":";;;AAIA,iDAAoD;AACpD,mCAAiD;AACjD,8CAAuC;AACvC,oDAAiD;AAGjD;;;GAGG;AACH,MAAM,uBAAuB,GAAG,IAAA,yBAAW,EACzC,gDAAgD,EAChD,GAAG,EAAE,CAAC,iBAAQ,CAAC,UAAU,CAAoB,EAAE,CAAC,CACjD,CAAC;AAEF;;;GAGG;AACU,QAAA,oBAAoB,GAG7B,IAAA,eAAI,EACN,CAAC,EACD,CAAU,MAA8B,EAAE,MAAyB,EAA0B,EAAE,CAC7F,eAAM,CAAC,OAAO,CAAC,MAAM,EAAE,uBAAuB,EAAE,MAAM,CAAC,CAC1D,CAAC;AAEF;;;GAGG;AACI,MAAM,mBAAmB,GAAG,CAAC,MAAyB,EAAE,EAAE,CAAC,cAAK,CAAC,aAAa,CAAC,uBAAuB,EAAE,MAAM,CAAC,CAAC;AAA1G,QAAA,mBAAmB,uBAAuF;AAEvH;;;GAGG;AACU,QAAA,iBAAiB,GAAmC,eAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IACnF,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,GAAG,MAAM,EAAE,GAAG,KAAK,CAAC,CAAC,iBAAQ,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC;IAE1F,MAAM,MAAM,GAAG,aAAa,KAAK,IAAI;QACnC,CAAC,CAAC,KAAK,CAAC,CAAC,uBAAa,CAAC,cAAc,CAAC,uBAAa,CAAC,oBAAoB,CAAC;QACzE,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,uBAAa,CAAC,cAAc,CAAC,uBAAa,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"}
|
|
@@ -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,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
19
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
20
|
+
};
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.SQS = exports.SQSServiceConfig = exports.SQSClientInstance = void 0;
|
|
30
|
+
/**
|
|
31
|
+
* @since 1.0.0
|
|
32
|
+
*/
|
|
33
|
+
const SQSService_js_1 = require("./SQSService.js");
|
|
34
|
+
/**
|
|
35
|
+
* @since 1.0.0
|
|
36
|
+
*/
|
|
37
|
+
__exportStar(require("./Errors.js"), exports);
|
|
38
|
+
/**
|
|
39
|
+
* @since 1.0.0
|
|
40
|
+
*/
|
|
41
|
+
exports.SQSClientInstance = __importStar(require("./SQSClientInstance.js"));
|
|
42
|
+
/**
|
|
43
|
+
* @since 1.0.0
|
|
44
|
+
*/
|
|
45
|
+
exports.SQSServiceConfig = __importStar(require("./SQSServiceConfig.js"));
|
|
46
|
+
/**
|
|
47
|
+
* @since 1.0.0
|
|
48
|
+
*/
|
|
49
|
+
__exportStar(require("./SQSService.js"), exports);
|
|
50
|
+
/**
|
|
51
|
+
* @since 1.0.0
|
|
52
|
+
* @category exports
|
|
53
|
+
* @alias SQSService
|
|
54
|
+
*/
|
|
55
|
+
exports.SQS = SQSService_js_1.SQSService;
|
|
56
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,mDAA6C;AAE7C;;GAEG;AACH,8CAA4B;AAE5B;;GAEG;AACH,4EAA4D;AAE5D;;GAEG;AACH,0EAA0D;AAE1D;;GAEG;AACH,kDAAgC;AAehC;;;;GAIG;AACU,QAAA,GAAG,GAAG,0BAAU,CAAC"}
|
|
@@ -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,yBAAyB,EACzB,4BAA4B,EAC5B,oBAAoB,EACrB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,QAAQ,IAAI,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAEjE,eAAO,MAAM,gBAAgB,ymBA6BnB,CAAC;AAEX,MAAM,MAAM,6BAA6B,GAAG,eAAe,CAAC,wBAAwB,CAAC,CAAC;AAC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