@effect-aws/client-sns 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/SNSClientInstance/package.json +6 -0
- package/SNSService/package.json +6 -0
- package/SNSServiceConfig/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 +42 -0
- package/dist/cjs/Errors.js.map +1 -0
- package/dist/cjs/SNSClientInstance.d.ts +24 -0
- package/dist/cjs/SNSClientInstance.d.ts.map +1 -0
- package/dist/cjs/SNSClientInstance.js +50 -0
- package/dist/cjs/SNSClientInstance.js.map +1 -0
- package/{lib → dist/cjs}/SNSService.d.ts +16 -38
- package/dist/cjs/SNSService.d.ts.map +1 -0
- package/dist/cjs/SNSService.js +98 -0
- package/dist/cjs/SNSService.js.map +1 -0
- package/dist/cjs/SNSServiceConfig.d.ts +25 -0
- package/dist/cjs/SNSServiceConfig.d.ts.map +1 -0
- package/dist/cjs/SNSServiceConfig.js +35 -0
- package/dist/cjs/SNSServiceConfig.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 +41 -0
- package/dist/dts/Errors.d.ts.map +1 -0
- package/dist/dts/SNSClientInstance.d.ts +24 -0
- package/dist/dts/SNSClientInstance.d.ts.map +1 -0
- package/dist/dts/SNSService.d.ts +253 -0
- package/dist/dts/SNSService.d.ts.map +1 -0
- package/dist/dts/SNSServiceConfig.d.ts +25 -0
- package/dist/dts/SNSServiceConfig.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 +39 -0
- package/dist/esm/Errors.js.map +1 -0
- package/dist/esm/SNSClientInstance.js +23 -0
- package/dist/esm/SNSClientInstance.js.map +1 -0
- package/dist/esm/SNSService.js +71 -0
- package/dist/esm/SNSService.js.map +1 -0
- package/dist/esm/SNSServiceConfig.js +31 -0
- package/dist/esm/SNSServiceConfig.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 +113 -0
- package/src/SNSClientInstance.ts +33 -0
- package/src/SNSService.ts +839 -0
- package/src/SNSServiceConfig.ts +51 -0
- package/src/index.ts +44 -0
- package/CHANGELOG.md +0 -113
- package/docgen.json +0 -8
- package/lib/Errors.js +0 -42
- package/lib/SNSClientInstance.d.ts +0 -31
- package/lib/SNSClientInstance.js +0 -57
- package/lib/SNSClientInstanceConfig.d.ts +0 -23
- package/lib/SNSClientInstanceConfig.js +0 -44
- package/lib/SNSService.js +0 -130
- package/lib/esm/Errors.js +0 -39
- package/lib/esm/SNSClientInstance.js +0 -30
- package/lib/esm/SNSClientInstanceConfig.js +0 -40
- package/lib/esm/SNSService.js +0 -126
- 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
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
import type { AuthorizationErrorException, BatchEntryIdsNotDistinctException, BatchRequestTooLongException, ConcurrentAccessException, EmptyBatchRequestException, EndpointDisabledException, FilterPolicyLimitExceededException, InternalErrorException, InvalidBatchEntryIdException, InvalidParameterException, InvalidParameterValueException, InvalidSecurityException, InvalidStateException, KMSAccessDeniedException, KMSDisabledException, KMSInvalidStateException, KMSNotFoundException, KMSOptInRequired, KMSThrottlingException, NotFoundException, OptedOutException, PlatformApplicationDisabledException, ReplayLimitExceededException, ResourceNotFoundException, StaleTagException, SubscriptionLimitExceededException, TagLimitExceededException, TagPolicyException, ThrottledException, TooManyEntriesInBatchRequestException, TopicLimitExceededException, UserErrorException, ValidationException, VerificationException } from "@aws-sdk/client-sns";
|
|
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 ["AuthorizationErrorException", "BatchEntryIdsNotDistinctException", "BatchRequestTooLongException", "ConcurrentAccessException", "EmptyBatchRequestException", "EndpointDisabledException", "FilterPolicyLimitExceededException", "InternalErrorException", "InvalidBatchEntryIdException", "InvalidParameterException", "InvalidParameterValueException", "InvalidSecurityException", "InvalidStateException", "KMSAccessDeniedException", "KMSDisabledException", "KMSInvalidStateException", "KMSNotFoundException", "KMSOptInRequired", "KMSThrottlingException", "NotFoundException", "OptedOutException", "PlatformApplicationDisabledException", "ReplayLimitExceededException", "ResourceNotFoundException", "StaleTagException", "SubscriptionLimitExceededException", "TagLimitExceededException", "TagPolicyException", "ThrottledException", "TooManyEntriesInBatchRequestException", "TopicLimitExceededException", "UserErrorException", "ValidationException", "VerificationException"];
|
|
9
5
|
export type AuthorizationError = TaggedException<AuthorizationErrorException>;
|
|
10
6
|
export type BatchEntryIdsNotDistinctError = TaggedException<BatchEntryIdsNotDistinctException>;
|
|
11
7
|
export type BatchRequestTooLongError = TaggedException<BatchRequestTooLongException>;
|
|
@@ -40,7 +36,6 @@ export type TopicLimitExceededError = TaggedException<TopicLimitExceededExceptio
|
|
|
40
36
|
export type UserError = TaggedException<UserErrorException>;
|
|
41
37
|
export type ValidationError = TaggedException<ValidationException>;
|
|
42
38
|
export type VerificationError = TaggedException<VerificationException>;
|
|
43
|
-
export type SdkError =
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
export declare const SdkError: Data.Case.Constructor<SdkError, "_tag">;
|
|
39
|
+
export type SdkError = CommonSdkError;
|
|
40
|
+
export declare const SdkError: import("effect/Data").Case.Constructor<CommonSdkError, "_tag">;
|
|
41
|
+
//# 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,2BAA2B,EAC3B,iCAAiC,EACjC,4BAA4B,EAC5B,yBAAyB,EACzB,0BAA0B,EAC1B,yBAAyB,EACzB,kCAAkC,EAClC,sBAAsB,EACtB,4BAA4B,EAC5B,yBAAyB,EACzB,8BAA8B,EAC9B,wBAAwB,EACxB,qBAAqB,EACrB,wBAAwB,EACxB,oBAAoB,EACpB,wBAAwB,EACxB,oBAAoB,EACpB,gBAAgB,EAChB,sBAAsB,EACtB,iBAAiB,EACjB,iBAAiB,EACjB,oCAAoC,EACpC,4BAA4B,EAC5B,yBAAyB,EACzB,iBAAiB,EACjB,kCAAkC,EAClC,yBAAyB,EACzB,kBAAkB,EAClB,kBAAkB,EAClB,qCAAqC,EACrC,2BAA2B,EAC3B,kBAAkB,EAClB,mBAAmB,EACnB,qBAAqB,EACtB,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,k9BAmCnB,CAAC;AAEX,MAAM,MAAM,kBAAkB,GAAG,eAAe,CAAC,2BAA2B,CAAC,CAAC;AAC9E,MAAM,MAAM,6BAA6B,GAAG,eAAe,CAAC,iCAAiC,CAAC,CAAC;AAC/F,MAAM,MAAM,wBAAwB,GAAG,eAAe,CAAC,4BAA4B,CAAC,CAAC;AACrF,MAAM,MAAM,qBAAqB,GAAG,eAAe,CAAC,yBAAyB,CAAC,CAAC;AAC/E,MAAM,MAAM,sBAAsB,GAAG,eAAe,CAAC,0BAA0B,CAAC,CAAC;AACjF,MAAM,MAAM,qBAAqB,GAAG,eAAe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Ae,CAAC,iBAAiB,CAAC,CAAC;AAC/D,MAAM,MAAM,8BAA8B,GAAG,eAAe,CAAC,kCAAkC,CAAC,CAAC;AACjG,MAAM,MAAM,qBAAqB,GAAG,eAAe,CAAC,yBAAyB,CAAC,CAAC;AAC/E,MAAM,MAAM,cAAc,GAAG,eAAe,CAAC,kBAAkB,CAAC,CAAC;AACjE,MAAM,MAAM,cAAc,GAAG,eAAe,CAAC,kBAAkB,CAAC,CAAC;AACjE,MAAM,MAAM,iCAAiC,GAAG,eAAe,CAAC,qCAAqC,CAAC,CAAC;AACvG,MAAM,MAAM,uBAAuB,GAAG,eAAe,CAAC,2BAA2B,CAAC,CAAC;AACnF,MAAM,MAAM,SAAS,GAAG,eAAe,CAAC,kBAAkB,CAAC,CAAC;AAC5D,MAAM,MAAM,eAAe,GAAG,eAAe,CAAC,mBAAmB,CAAC,CAAC;AACnE,MAAM,MAAM,iBAAiB,GAAG,eAAe,CAAC,qBAAqB,CAAC,CAAC;AAEvE,MAAM,MAAM,QAAQ,GAAG,cAAc,CAAC;AACtC,eAAO,MAAM,QAAQ,gEAAiB,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
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
|
+
"AuthorizationErrorException",
|
|
7
|
+
"BatchEntryIdsNotDistinctException",
|
|
8
|
+
"BatchRequestTooLongException",
|
|
9
|
+
"ConcurrentAccessException",
|
|
10
|
+
"EmptyBatchRequestException",
|
|
11
|
+
"EndpointDisabledException",
|
|
12
|
+
"FilterPolicyLimitExceededException",
|
|
13
|
+
"InternalErrorException",
|
|
14
|
+
"InvalidBatchEntryIdException",
|
|
15
|
+
"InvalidParameterException",
|
|
16
|
+
"InvalidParameterValueException",
|
|
17
|
+
"InvalidSecurityException",
|
|
18
|
+
"InvalidStateException",
|
|
19
|
+
"KMSAccessDeniedException",
|
|
20
|
+
"KMSDisabledException",
|
|
21
|
+
"KMSInvalidStateException",
|
|
22
|
+
"KMSNotFoundException",
|
|
23
|
+
"KMSOptInRequired",
|
|
24
|
+
"KMSThrottlingException",
|
|
25
|
+
"NotFoundException",
|
|
26
|
+
"OptedOutException",
|
|
27
|
+
"PlatformApplicationDisabledException",
|
|
28
|
+
"ReplayLimitExceededException",
|
|
29
|
+
"ResourceNotFoundException",
|
|
30
|
+
"StaleTagException",
|
|
31
|
+
"SubscriptionLimitExceededException",
|
|
32
|
+
"TagLimitExceededException",
|
|
33
|
+
"TagPolicyException",
|
|
34
|
+
"ThrottledException",
|
|
35
|
+
"TooManyEntriesInBatchRequestException",
|
|
36
|
+
"TopicLimitExceededException",
|
|
37
|
+
"UserErrorException",
|
|
38
|
+
"ValidationException",
|
|
39
|
+
"VerificationException",
|
|
40
|
+
];
|
|
41
|
+
exports.SdkError = commons_1.SdkError;
|
|
42
|
+
//# sourceMappingURL=Errors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Errors.js","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":";;;AAqCA,iDAAiE;AAEpD,QAAA,gBAAgB,GAAG;IAC9B,6BAA6B;IAC7B,mCAAmC;IACnC,8BAA8B;IAC9B,2BAA2B;IAC3B,4BAA4B;IAC5B,2BAA2B;IAC3B,oCAAoC;IACpC,wBAAwB;IACxB,8BAA8B;IAC9B,2BAA2B;IAC3B,gCAAgC;IAChC,0BAA0B;IAC1B,uBAAuB;IACvB,0BAA0B;IAC1B,sBAAsB;IACtB,0BAA0B;IAC1B,sBAAsB;IACtB,kBAAkB;IAClB,wBAAwB;IACxB,mBAAmB;IACnB,mBAAmB;IACnB,sCAAsC;IACtC,8BAA8B;IAC9B,2BAA2B;IAC3B,mBAAmB;IACnB,oCAAoC;IACpC,2BAA2B;IAC3B,oBAAoB;IACpB,oBAAoB;IACpB,uCAAuC;IACvC,6BAA6B;IAC7B,oBAAoB;IACpB,qBAAqB;IACrB,uBAAuB;CACf,CAAC;AAsCE,QAAA,QAAQ,GAAG,kBAAc,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @since 1.0.0
|
|
3
|
+
*/
|
|
4
|
+
import { SNSClient } from "@aws-sdk/client-sns";
|
|
5
|
+
import { Context, Effect, Layer } from "effect";
|
|
6
|
+
declare const SNSClientInstance_base: Context.TagClass<SNSClientInstance, "@effect-aws/client-sns/SNSClientInstance", SNSClient>;
|
|
7
|
+
/**
|
|
8
|
+
* @since 1.0.0
|
|
9
|
+
* @category tags
|
|
10
|
+
*/
|
|
11
|
+
export declare class SNSClientInstance extends SNSClientInstance_base {
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* @since 1.0.0
|
|
15
|
+
* @category constructors
|
|
16
|
+
*/
|
|
17
|
+
export declare const make: Effect.Effect<SNSClient, never, import("effect/Scope").Scope>;
|
|
18
|
+
/**
|
|
19
|
+
* @since 1.0.0
|
|
20
|
+
* @category layers
|
|
21
|
+
*/
|
|
22
|
+
export declare const layer: Layer.Layer<SNSClientInstance, never, never>;
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=SNSClientInstance.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SNSClientInstance.d.ts","sourceRoot":"","sources":["../../src/SNSClientInstance.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.SNSClientInstance = void 0;
|
|
27
|
+
/**
|
|
28
|
+
* @since 1.0.0
|
|
29
|
+
*/
|
|
30
|
+
const client_sns_1 = require("@aws-sdk/client-sns");
|
|
31
|
+
const effect_1 = require("effect");
|
|
32
|
+
const SNSServiceConfig = __importStar(require("./SNSServiceConfig.js"));
|
|
33
|
+
/**
|
|
34
|
+
* @since 1.0.0
|
|
35
|
+
* @category tags
|
|
36
|
+
*/
|
|
37
|
+
class SNSClientInstance extends effect_1.Context.Tag("@effect-aws/client-sns/SNSClientInstance")() {
|
|
38
|
+
}
|
|
39
|
+
exports.SNSClientInstance = SNSClientInstance;
|
|
40
|
+
/**
|
|
41
|
+
* @since 1.0.0
|
|
42
|
+
* @category constructors
|
|
43
|
+
*/
|
|
44
|
+
exports.make = effect_1.Effect.flatMap(SNSServiceConfig.toSNSClientConfig, (config) => effect_1.Effect.acquireRelease(effect_1.Effect.sync(() => new client_sns_1.SNSClient(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(SNSClientInstance, exports.make);
|
|
50
|
+
//# sourceMappingURL=SNSClientInstance.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SNSClientInstance.js","sourceRoot":"","sources":["../../src/SNSClientInstance.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 CheckIfPhoneNumberIsOptedOutCommandInput, type CheckIfPhoneNumberIsOptedOutCommandOutput, type ConfirmSubscriptionCommandInput, type ConfirmSubscriptionCommandOutput, type CreatePlatformApplicationCommandInput, type CreatePlatformApplicationCommandOutput, type CreatePlatformEndpointCommandInput, type CreatePlatformEndpointCommandOutput, type CreateSMSSandboxPhoneNumberCommandInput, type CreateSMSSandboxPhoneNumberCommandOutput, type CreateTopicCommandInput, type CreateTopicCommandOutput, type DeleteEndpointCommandInput, type DeleteEndpointCommandOutput, type DeletePlatformApplicationCommandInput, type DeletePlatformApplicationCommandOutput, type DeleteSMSSandboxPhoneNumberCommandInput, type DeleteSMSSandboxPhoneNumberCommandOutput, type DeleteTopicCommandInput, type DeleteTopicCommandOutput, type GetDataProtectionPolicyCommandInput, type GetDataProtectionPolicyCommandOutput, type GetEndpointAttributesCommandInput, type GetEndpointAttributesCommandOutput, type GetPlatformApplicationAttributesCommandInput, type GetPlatformApplicationAttributesCommandOutput, type GetSMSAttributesCommandInput, type GetSMSAttributesCommandOutput, type GetSMSSandboxAccountStatusCommandInput, type GetSMSSandboxAccountStatusCommandOutput, type GetSubscriptionAttributesCommandInput, type GetSubscriptionAttributesCommandOutput, type GetTopicAttributesCommandInput, type GetTopicAttributesCommandOutput, type ListEndpointsByPlatformApplicationCommandInput, type ListEndpointsByPlatformApplicationCommandOutput, type ListOriginationNumbersCommandInput, type ListOriginationNumbersCommandOutput, type ListPhoneNumbersOptedOutCommandInput, type ListPhoneNumbersOptedOutCommandOutput, type ListPlatformApplicationsCommandInput, type ListPlatformApplicationsCommandOutput, type ListSMSSandboxPhoneNumbersCommandInput, type ListSMSSandboxPhoneNumbersCommandOutput, type ListSubscriptionsByTopicCommandInput, type ListSubscriptionsByTopicCommandOutput, type ListSubscriptionsCommandInput, type ListSubscriptionsCommandOutput, type ListTagsForResourceCommandInput, type ListTagsForResourceCommandOutput, type ListTopicsCommandInput, type ListTopicsCommandOutput, type OptInPhoneNumberCommandInput, type OptInPhoneNumberCommandOutput, type PublishBatchCommandInput, type PublishBatchCommandOutput, type PublishCommandInput, type PublishCommandOutput, type PutDataProtectionPolicyCommandInput, type PutDataProtectionPolicyCommandOutput, type RemovePermissionCommandInput, type RemovePermissionCommandOutput, type SetEndpointAttributesCommandInput, type SetEndpointAttributesCommandOutput, type SetPlatformApplicationAttributesCommandInput, type SetPlatformApplicationAttributesCommandOutput, type SetSMSAttributesCommandInput, type SetSMSAttributesCommandOutput, type SetSubscriptionAttributesCommandInput, type SetSubscriptionAttributesCommandOutput, type SetTopicAttributesCommandInput, type SetTopicAttributesCommandOutput, type SNSClient, type SNSClientConfig, type SubscribeCommandInput, type SubscribeCommandOutput, type TagResourceCommandInput, type TagResourceCommandOutput, type UnsubscribeCommandInput, type UnsubscribeCommandOutput, type UntagResourceCommandInput, type UntagResourceCommandOutput, type VerifySMSSandboxPhoneNumberCommandInput, type VerifySMSSandboxPhoneNumberCommandOutput } from "@aws-sdk/client-sns";
|
|
5
|
+
import type { HttpHandlerOptions, SdkError, ServiceLogger } from "@effect-aws/commons";
|
|
5
6
|
import { Effect, Layer } from "effect";
|
|
6
|
-
import { AuthorizationError, BatchEntryIdsNotDistinctError, BatchRequestTooLongError, ConcurrentAccessError, EmptyBatchRequestError, EndpointDisabledError, FilterPolicyLimitExceededError, InternalError, InvalidBatchEntryIdError, InvalidParameterError, InvalidParameterValueError, InvalidSecurityError, InvalidStateError, KMSAccessDeniedError, KMSDisabledError, KMSInvalidStateError, KMSNotFoundError, KMSOptInRequiredError, KMSThrottlingError, NotFoundError, OptedOutError, PlatformApplicationDisabledError, ReplayLimitExceededError, ResourceNotFoundError, StaleTagError, SubscriptionLimitExceededError, TagLimitExceededError, TagPolicyError, ThrottledError, TooManyEntriesInBatchRequestError, TopicLimitExceededError, UserError, ValidationError, VerificationError
|
|
7
|
-
import
|
|
8
|
-
import { SNSClientInstanceConfig } from "./SNSClientInstanceConfig";
|
|
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 { AuthorizationError, BatchEntryIdsNotDistinctError, BatchRequestTooLongError, ConcurrentAccessError, EmptyBatchRequestError, EndpointDisabledError, FilterPolicyLimitExceededError, InternalError, InvalidBatchEntryIdError, InvalidParameterError, InvalidParameterValueError, InvalidSecurityError, InvalidStateError, KMSAccessDeniedError, KMSDisabledError, KMSInvalidStateError, KMSNotFoundError, KMSOptInRequiredError, KMSThrottlingError, NotFoundError, OptedOutError, PlatformApplicationDisabledError, ReplayLimitExceededError, ResourceNotFoundError, StaleTagError, SubscriptionLimitExceededError, TagLimitExceededError, TagPolicyError, ThrottledError, TooManyEntriesInBatchRequestError, TopicLimitExceededError, UserError, ValidationError, VerificationError } from "./Errors.js";
|
|
8
|
+
import * as Instance from "./SNSClientInstance.js";
|
|
19
9
|
interface SNSService$ {
|
|
20
10
|
readonly _: unique symbol;
|
|
21
11
|
/**
|
|
@@ -191,7 +181,7 @@ interface SNSService$ {
|
|
|
191
181
|
* @since 1.0.0
|
|
192
182
|
* @category constructors
|
|
193
183
|
*/
|
|
194
|
-
export declare const makeSNSService: Effect.Effect<SNSService$, never, SNSClientInstance>;
|
|
184
|
+
export declare const makeSNSService: Effect.Effect<SNSService$, never, Instance.SNSClientInstance>;
|
|
195
185
|
declare const SNSService_base: import("effect/Context").TagClass<SNSService, "@effect-aws/client-sns/SNSService", SNSService$> & {
|
|
196
186
|
readonly _: Effect.Effect<SNSService$["_"], never, SNSService>;
|
|
197
187
|
addPermission: (args: AddPermissionCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<AddPermissionCommandOutput, AuthorizationError | InternalError | InvalidParameterError | NotFoundError | SdkError, SNSService>;
|
|
@@ -237,7 +227,7 @@ declare const SNSService_base: import("effect/Context").TagClass<SNSService, "@e
|
|
|
237
227
|
untagResource: (args: UntagResourceCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<UntagResourceCommandOutput, AuthorizationError | ConcurrentAccessError | InvalidParameterError | ResourceNotFoundError | StaleTagError | TagLimitExceededError | TagPolicyError | SdkError, SNSService>;
|
|
238
228
|
verifySMSSandboxPhoneNumber: (args: VerifySMSSandboxPhoneNumberCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<VerifySMSSandboxPhoneNumberCommandOutput, AuthorizationError | InternalError | InvalidParameterError | ResourceNotFoundError | ThrottledError | VerificationError | SdkError, SNSService>;
|
|
239
229
|
} & {
|
|
240
|
-
use: <X>(body: (_: SNSService$) => X) => X extends Effect.Effect<infer A, infer E, infer R> ? Effect.Effect<A, E,
|
|
230
|
+
use: <X>(body: (_: SNSService$) => X) => X extends Effect.Effect<infer A, infer E, infer R> ? Effect.Effect<A, E, SNSService | R> : Effect.Effect<X, never, SNSService>;
|
|
241
231
|
};
|
|
242
232
|
/**
|
|
243
233
|
* @since 1.0.0
|
|
@@ -245,31 +235,19 @@ declare const SNSService_base: import("effect/Context").TagClass<SNSService, "@e
|
|
|
245
235
|
*/
|
|
246
236
|
export declare class SNSService extends SNSService_base {
|
|
247
237
|
static readonly defaultLayer: Layer.Layer<SNSService, never, never>;
|
|
248
|
-
static readonly layer: (config:
|
|
238
|
+
static readonly layer: (config: SNSService.Config) => Layer.Layer<SNSService, never, never>;
|
|
249
239
|
static readonly baseLayer: (evaluate: (defaultConfig: SNSClientConfig) => SNSClient) => Layer.Layer<SNSService, never, never>;
|
|
250
240
|
}
|
|
251
241
|
/**
|
|
252
242
|
* @since 1.0.0
|
|
253
|
-
* @category models
|
|
254
|
-
* @alias SNSService
|
|
255
|
-
*/
|
|
256
|
-
export declare const SNS: typeof SNSService;
|
|
257
|
-
/**
|
|
258
|
-
* @since 1.0.0
|
|
259
|
-
* @category layers
|
|
260
|
-
* @deprecated use SNS.baseLayer instead
|
|
261
243
|
*/
|
|
262
|
-
export declare
|
|
263
|
-
/**
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
* @since 1.0.0
|
|
271
|
-
* @category layers
|
|
272
|
-
* @deprecated use SNS.defaultLayer instead
|
|
273
|
-
*/
|
|
274
|
-
export declare const DefaultSNSServiceLayer: Layer.Layer<SNSService, never, never>;
|
|
244
|
+
export declare namespace SNSService {
|
|
245
|
+
/**
|
|
246
|
+
* @since 1.0.0
|
|
247
|
+
*/
|
|
248
|
+
interface Config extends Omit<SNSClientConfig, "logger"> {
|
|
249
|
+
readonly logger?: ServiceLogger.ServiceLoggerConstructorProps | true;
|
|
250
|
+
}
|
|
251
|
+
}
|
|
275
252
|
export {};
|
|
253
|
+
//# sourceMappingURL=SNSService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SNSService.d.ts","sourceRoot":"","sources":["../../src/SNSService.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAEL,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,EAE/B,KAAK,wCAAwC,EAC7C,KAAK,yCAAyC,EAE9C,KAAK,+BAA+B,EACpC,KAAK,gCAAgC,EAErC,KAAK,qCAAqC,EAC1C,KAAK,sCAAsC,EAE3C,KAAK,kCAAkC,EACvC,KAAK,mCAAmC,EAExC,KAAK,uCAAuC,EAC5C,KAAK,wCAAwC,EAE7C,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAE7B,KAAK,0BAA0B,EAC/B,KAAK,2BAA2B,EAEhC,KAAK,qCAAqC,EAC1C,KAAK,sCAAsC,EAE3C,KAAK,uCAAu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AyB,EAC/B,OAAO,CAAC,EAAE,kBAAkB,GAC3B,MAAM,CAAC,MAAM,CACd,0BAA0B,EACxB,QAAQ,GACR,kBAAkB,GAClB,qBAAqB,GACrB,qBAAqB,GACrB,qBAAqB,GACrB,aAAa,GACb,qBAAqB,GACrB,cAAc,CACjB,CAAC;IAEF;;OAEG;IACH,2BAA2B,CACzB,IAAI,EAAE,uCAAuC,EAC7C,OAAO,CAAC,EAAE,kBAAkB,GAC3B,MAAM,CAAC,MAAM,CACd,wCAAwC,EACtC,QAAQ,GACR,kBAAkB,GAClB,aAAa,GACb,qBAAqB,GACrB,qBAAqB,GACrB,cAAc,GACd,iBAAiB,CACpB,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,98 @@
|
|
|
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.SNSService = exports.makeSNSService = void 0;
|
|
27
|
+
/**
|
|
28
|
+
* @since 1.0.0
|
|
29
|
+
*/
|
|
30
|
+
const client_sns_1 = require("@aws-sdk/client-sns");
|
|
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("./SNSClientInstance.js"));
|
|
35
|
+
const SNSServiceConfig = __importStar(require("./SNSServiceConfig.js"));
|
|
36
|
+
const commands = {
|
|
37
|
+
AddPermissionCommand: client_sns_1.AddPermissionCommand,
|
|
38
|
+
CheckIfPhoneNumberIsOptedOutCommand: client_sns_1.CheckIfPhoneNumberIsOptedOutCommand,
|
|
39
|
+
ConfirmSubscriptionCommand: client_sns_1.ConfirmSubscriptionCommand,
|
|
40
|
+
CreatePlatformApplicationCommand: client_sns_1.CreatePlatformApplicationCommand,
|
|
41
|
+
CreatePlatformEndpointCommand: client_sns_1.CreatePlatformEndpointCommand,
|
|
42
|
+
CreateSMSSandboxPhoneNumberCommand: client_sns_1.CreateSMSSandboxPhoneNumberCommand,
|
|
43
|
+
CreateTopicCommand: client_sns_1.CreateTopicCommand,
|
|
44
|
+
DeleteEndpointCommand: client_sns_1.DeleteEndpointCommand,
|
|
45
|
+
DeletePlatformApplicationCommand: client_sns_1.DeletePlatformApplicationCommand,
|
|
46
|
+
DeleteSMSSandboxPhoneNumberCommand: client_sns_1.DeleteSMSSandboxPhoneNumberCommand,
|
|
47
|
+
DeleteTopicCommand: client_sns_1.DeleteTopicCommand,
|
|
48
|
+
GetDataProtectionPolicyCommand: client_sns_1.GetDataProtectionPolicyCommand,
|
|
49
|
+
GetEndpointAttributesCommand: client_sns_1.GetEndpointAttributesCommand,
|
|
50
|
+
GetPlatformApplicationAttributesCommand: client_sns_1.GetPlatformApplicationAttributesCommand,
|
|
51
|
+
GetSMSAttributesCommand: client_sns_1.GetSMSAttributesCommand,
|
|
52
|
+
GetSMSSandboxAccountStatusCommand: client_sns_1.GetSMSSandboxAccountStatusCommand,
|
|
53
|
+
GetSubscriptionAttributesCommand: client_sns_1.GetSubscriptionAttributesCommand,
|
|
54
|
+
GetTopicAttributesCommand: client_sns_1.GetTopicAttributesCommand,
|
|
55
|
+
ListEndpointsByPlatformApplicationCommand: client_sns_1.ListEndpointsByPlatformApplicationCommand,
|
|
56
|
+
ListOriginationNumbersCommand: client_sns_1.ListOriginationNumbersCommand,
|
|
57
|
+
ListPhoneNumbersOptedOutCommand: client_sns_1.ListPhoneNumbersOptedOutCommand,
|
|
58
|
+
ListPlatformApplicationsCommand: client_sns_1.ListPlatformApplicationsCommand,
|
|
59
|
+
ListSMSSandboxPhoneNumbersCommand: client_sns_1.ListSMSSandboxPhoneNumbersCommand,
|
|
60
|
+
ListSubscriptionsCommand: client_sns_1.ListSubscriptionsCommand,
|
|
61
|
+
ListSubscriptionsByTopicCommand: client_sns_1.ListSubscriptionsByTopicCommand,
|
|
62
|
+
ListTagsForResourceCommand: client_sns_1.ListTagsForResourceCommand,
|
|
63
|
+
ListTopicsCommand: client_sns_1.ListTopicsCommand,
|
|
64
|
+
OptInPhoneNumberCommand: client_sns_1.OptInPhoneNumberCommand,
|
|
65
|
+
PublishCommand: client_sns_1.PublishCommand,
|
|
66
|
+
PublishBatchCommand: client_sns_1.PublishBatchCommand,
|
|
67
|
+
PutDataProtectionPolicyCommand: client_sns_1.PutDataProtectionPolicyCommand,
|
|
68
|
+
RemovePermissionCommand: client_sns_1.RemovePermissionCommand,
|
|
69
|
+
SetEndpointAttributesCommand: client_sns_1.SetEndpointAttributesCommand,
|
|
70
|
+
SetPlatformApplicationAttributesCommand: client_sns_1.SetPlatformApplicationAttributesCommand,
|
|
71
|
+
SetSMSAttributesCommand: client_sns_1.SetSMSAttributesCommand,
|
|
72
|
+
SetSubscriptionAttributesCommand: client_sns_1.SetSubscriptionAttributesCommand,
|
|
73
|
+
SetTopicAttributesCommand: client_sns_1.SetTopicAttributesCommand,
|
|
74
|
+
SubscribeCommand: client_sns_1.SubscribeCommand,
|
|
75
|
+
TagResourceCommand: client_sns_1.TagResourceCommand,
|
|
76
|
+
UnsubscribeCommand: client_sns_1.UnsubscribeCommand,
|
|
77
|
+
UntagResourceCommand: client_sns_1.UntagResourceCommand,
|
|
78
|
+
VerifySMSSandboxPhoneNumberCommand: client_sns_1.VerifySMSSandboxPhoneNumberCommand,
|
|
79
|
+
};
|
|
80
|
+
/**
|
|
81
|
+
* @since 1.0.0
|
|
82
|
+
* @category constructors
|
|
83
|
+
*/
|
|
84
|
+
exports.makeSNSService = effect_1.Effect.gen(function* () {
|
|
85
|
+
const client = yield* Instance.SNSClientInstance;
|
|
86
|
+
return commons_1.Service.fromClientAndCommands(client, commands, Errors_js_1.AllServiceErrors);
|
|
87
|
+
});
|
|
88
|
+
/**
|
|
89
|
+
* @since 1.0.0
|
|
90
|
+
* @category models
|
|
91
|
+
*/
|
|
92
|
+
class SNSService extends effect_1.Effect.Tag("@effect-aws/client-sns/SNSService")() {
|
|
93
|
+
static defaultLayer = effect_1.Layer.effect(this, exports.makeSNSService).pipe(effect_1.Layer.provide(Instance.layer));
|
|
94
|
+
static layer = (config) => effect_1.Layer.effect(this, exports.makeSNSService).pipe(effect_1.Layer.provide(Instance.layer), effect_1.Layer.provide(SNSServiceConfig.setSNSServiceConfig(config)));
|
|
95
|
+
static baseLayer = (evaluate) => effect_1.Layer.effect(this, exports.makeSNSService).pipe(effect_1.Layer.provide(effect_1.Layer.effect(Instance.SNSClientInstance, effect_1.Effect.map(SNSServiceConfig.toSNSClientConfig, evaluate))));
|
|
96
|
+
}
|
|
97
|
+
exports.SNSService = SNSService;
|
|
98
|
+
//# sourceMappingURL=SNSService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SNSService.js","sourceRoot":"","sources":["../../src/SNSService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,oDAiI6B;AAE7B,iDAA8C;AAC9C,mCAAuC;AAqCvC,2CAA+C;AAC/C,iEAAmD;AACnD,wEAA0D;AAE1D,MAAM,QAAQ,GAAG;IACf,oBAAoB,EAApB,iCAAoB;IACpB,mCAAmC,EAAnC,gDAAmC;IACnC,0BAA0B,EAA1B,uCAA0B;IAC1B,gCAAgC,EAAhC,6CAAgC;IAChC,6BAA6B,EAA7B,0CAA6B;IAC7B,kCAAkC,EAAlC,+CAAkC;IAClC,kBAAkB,EAAlB,+BAAkB;IAClB,qBAAqB,EAArB,kCAAqB;IACrB,gCAAgC,EAAhC,6CAAgC;IAChC,kCAAkC,EAAlC,+CAAkC;IAClC,kBAAkB,EAAlB,+BAAkB;IAClB,8BAA8B,EAA9B,2CAA8B;IAC9B,4BAA4B,EAA5B,yCAA4B;IAC5B,uCAAuC,EAAvC,oDAAuC;IACvC,uBAAuB,EAAvB,oCAAuB;IACvB,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,CAAC,CAAC,IAAI,CAAC,cAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC;IACtG,MAAM,CAAU,KAAK,GAAG,CAAC,MAAyB,EAAE,EAAE,CACpD,cAAK,CAAC,MAAM,CAAC,IAAI,EAAE,sBAAc,CAAC,CAAC,IAAI,CACrC,cAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,EAC7B,cAAK,CAAC,OAAO,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,MAAM,CAAC,CAAC,CAC5D,CAAC;IACJ,MAAM,CAAU,SAAS,GAAG,CAC1B,QAAuD,EACvD,EAAE,CACF,cAAK,CAAC,MAAM,CAAC,IAAI,EAAE,sBAAc,CAAC,CAAC,IAAI,CACrC,cAAK,CAAC,OAAO,CACX,cAAK,CAAC,MAAM,CACV,QAAQ,CAAC,iBAAiB,EAC1B,eAAM,CAAC,GAAG,CAAC,gBAAgB,CAAC,iBAAiB,EAAE,QAAQ,CAAC,CACzD,CACF,CACF,CAAC;;AApBN,gCAqBC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @since 1.0.0
|
|
3
|
+
*/
|
|
4
|
+
import type { SNSClientConfig } from "@aws-sdk/client-sns";
|
|
5
|
+
import { Effect, Layer } from "effect";
|
|
6
|
+
import type { SNSService } from "./SNSService.js";
|
|
7
|
+
/**
|
|
8
|
+
* @since 1.0.0
|
|
9
|
+
* @category sns service config
|
|
10
|
+
*/
|
|
11
|
+
export declare const withSNSServiceConfig: {
|
|
12
|
+
(config: SNSService.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: SNSService.Config): Effect.Effect<A, E, R>;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* @since 1.0.0
|
|
17
|
+
* @category sns service config
|
|
18
|
+
*/
|
|
19
|
+
export declare const setSNSServiceConfig: (config: SNSService.Config) => Layer.Layer<never, never, never>;
|
|
20
|
+
/**
|
|
21
|
+
* @since 1.0.0
|
|
22
|
+
* @category adapters
|
|
23
|
+
*/
|
|
24
|
+
export declare const toSNSClientConfig: Effect.Effect<SNSClientConfig>;
|
|
25
|
+
//# sourceMappingURL=SNSServiceConfig.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SNSServiceConfig.d.ts","sourceRoot":"","sources":["../../src/SNSServiceConfig.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.toSNSClientConfig = exports.setSNSServiceConfig = exports.withSNSServiceConfig = 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 sns service config
|
|
11
|
+
*/
|
|
12
|
+
const currentSNSServiceConfig = (0, GlobalValue_1.globalValue)("@effect-aws/client-sns/currentSNSServiceConfig", () => effect_1.FiberRef.unsafeMake({}));
|
|
13
|
+
/**
|
|
14
|
+
* @since 1.0.0
|
|
15
|
+
* @category sns service config
|
|
16
|
+
*/
|
|
17
|
+
exports.withSNSServiceConfig = (0, Function_1.dual)(2, (effect, config) => effect_1.Effect.locally(effect, currentSNSServiceConfig, config));
|
|
18
|
+
/**
|
|
19
|
+
* @since 1.0.0
|
|
20
|
+
* @category sns service config
|
|
21
|
+
*/
|
|
22
|
+
const setSNSServiceConfig = (config) => effect_1.Layer.locallyScoped(currentSNSServiceConfig, config);
|
|
23
|
+
exports.setSNSServiceConfig = setSNSServiceConfig;
|
|
24
|
+
/**
|
|
25
|
+
* @since 1.0.0
|
|
26
|
+
* @category adapters
|
|
27
|
+
*/
|
|
28
|
+
exports.toSNSClientConfig = effect_1.Effect.gen(function* () {
|
|
29
|
+
const { logger: serviceLogger, ...config } = yield* effect_1.FiberRef.get(currentSNSServiceConfig);
|
|
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
|
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MAAM,EAAE,GAAG,MAAM,EAAE,CAAC;AAC/B,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @since 1.0.0
|
|
3
|
+
*/
|
|
4
|
+
import { SNSService } from "./SNSService.js";
|
|
5
|
+
/**
|
|
6
|
+
* @since 1.0.0
|
|
7
|
+
*/
|
|
8
|
+
export * from "./Errors.js";
|
|
9
|
+
/**
|
|
10
|
+
* @since 1.0.0
|
|
11
|
+
*/
|
|
12
|
+
export * as SNSClientInstance from "./SNSClientInstance.js";
|
|
13
|
+
/**
|
|
14
|
+
* @since 1.0.0
|
|
15
|
+
*/
|
|
16
|
+
export * as SNSServiceConfig from "./SNSServiceConfig.js";
|
|
17
|
+
/**
|
|
18
|
+
* @since 1.0.0
|
|
19
|
+
*/
|
|
20
|
+
export * from "./SNSService.js";
|
|
21
|
+
/**
|
|
22
|
+
* @since 1.0.0
|
|
23
|
+
* @category exports
|
|
24
|
+
* @alias SNSService
|
|
25
|
+
*/
|
|
26
|
+
export declare namespace SNS {
|
|
27
|
+
/**
|
|
28
|
+
* @since 1.0.0
|
|
29
|
+
* @alias SNSService.Config
|
|
30
|
+
*/
|
|
31
|
+
type Config = SNSService.Config;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* @since 1.0.0
|
|
35
|
+
* @category exports
|
|
36
|
+
* @alias SNSService
|
|
37
|
+
*/
|
|
38
|
+
export declare const SNS: typeof SNSService;
|
|
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.SNS = exports.SNSServiceConfig = exports.SNSClientInstance = void 0;
|
|
30
|
+
/**
|
|
31
|
+
* @since 1.0.0
|
|
32
|
+
*/
|
|
33
|
+
const SNSService_js_1 = require("./SNSService.js");
|
|
34
|
+
/**
|
|
35
|
+
* @since 1.0.0
|
|
36
|
+
*/
|
|
37
|
+
__exportStar(require("./Errors.js"), exports);
|
|
38
|
+
/**
|
|
39
|
+
* @since 1.0.0
|
|
40
|
+
*/
|
|
41
|
+
exports.SNSClientInstance = __importStar(require("./SNSClientInstance.js"));
|
|
42
|
+
/**
|
|
43
|
+
* @since 1.0.0
|
|
44
|
+
*/
|
|
45
|
+
exports.SNSServiceConfig = __importStar(require("./SNSServiceConfig.js"));
|
|
46
|
+
/**
|
|
47
|
+
* @since 1.0.0
|
|
48
|
+
*/
|
|
49
|
+
__exportStar(require("./SNSService.js"), exports);
|
|
50
|
+
/**
|
|
51
|
+
* @since 1.0.0
|
|
52
|
+
* @category exports
|
|
53
|
+
* @alias SNSService
|
|
54
|
+
*/
|
|
55
|
+
exports.SNS = SNSService_js_1.SNSService;
|
|
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"}
|