@effect-aws/client-ses 1.10.3 → 2.0.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +3 -3
- package/dist/dts/SESClientInstance.d.ts +2 -2
- package/dist/dts/SESClientInstance.d.ts.map +1 -1
- package/dist/dts/SESService.d.ts +73 -75
- package/dist/dts/SESService.d.ts.map +1 -1
- package/dist/dts/SESServiceConfig.d.ts.map +1 -1
- package/dist/esm/SESClientInstance.js +3 -3
- package/dist/esm/SESClientInstance.js.map +1 -1
- package/dist/esm/SESService.js +2 -2
- package/dist/esm/SESService.js.map +1 -1
- package/dist/esm/SESServiceConfig.js +5 -6
- package/dist/esm/SESServiceConfig.js.map +1 -1
- package/package.json +8 -14
- package/src/SESClientInstance.ts +4 -4
- package/src/SESService.ts +74 -74
- package/src/SESServiceConfig.ts +6 -7
- package/dist/cjs/Errors.d.ts +0 -41
- package/dist/cjs/Errors.d.ts.map +0 -1
- package/dist/cjs/Errors.js +0 -40
- package/dist/cjs/Errors.js.map +0 -1
- package/dist/cjs/SESClientInstance.d.ts +0 -24
- package/dist/cjs/SESClientInstance.d.ts.map +0 -1
- package/dist/cjs/SESClientInstance.js +0 -50
- package/dist/cjs/SESClientInstance.js.map +0 -1
- package/dist/cjs/SESService.d.ts +0 -330
- package/dist/cjs/SESService.d.ts.map +0 -1
- package/dist/cjs/SESService.js +0 -130
- package/dist/cjs/SESService.js.map +0 -1
- package/dist/cjs/SESServiceConfig.d.ts +0 -25
- package/dist/cjs/SESServiceConfig.d.ts.map +0 -1
- package/dist/cjs/SESServiceConfig.js +0 -35
- package/dist/cjs/SESServiceConfig.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/dist/cjs/SESService.js
DELETED
|
@@ -1,130 +0,0 @@
|
|
|
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.SESService = exports.makeSESService = void 0;
|
|
27
|
-
/**
|
|
28
|
-
* @since 1.0.0
|
|
29
|
-
*/
|
|
30
|
-
const client_ses_1 = require("@aws-sdk/client-ses");
|
|
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("./SESClientInstance.js"));
|
|
35
|
-
const SESServiceConfig = __importStar(require("./SESServiceConfig.js"));
|
|
36
|
-
const commands = {
|
|
37
|
-
CloneReceiptRuleSetCommand: client_ses_1.CloneReceiptRuleSetCommand,
|
|
38
|
-
CreateConfigurationSetCommand: client_ses_1.CreateConfigurationSetCommand,
|
|
39
|
-
CreateConfigurationSetEventDestinationCommand: client_ses_1.CreateConfigurationSetEventDestinationCommand,
|
|
40
|
-
CreateConfigurationSetTrackingOptionsCommand: client_ses_1.CreateConfigurationSetTrackingOptionsCommand,
|
|
41
|
-
CreateCustomVerificationEmailTemplateCommand: client_ses_1.CreateCustomVerificationEmailTemplateCommand,
|
|
42
|
-
CreateReceiptFilterCommand: client_ses_1.CreateReceiptFilterCommand,
|
|
43
|
-
CreateReceiptRuleCommand: client_ses_1.CreateReceiptRuleCommand,
|
|
44
|
-
CreateReceiptRuleSetCommand: client_ses_1.CreateReceiptRuleSetCommand,
|
|
45
|
-
CreateTemplateCommand: client_ses_1.CreateTemplateCommand,
|
|
46
|
-
DeleteConfigurationSetCommand: client_ses_1.DeleteConfigurationSetCommand,
|
|
47
|
-
DeleteConfigurationSetEventDestinationCommand: client_ses_1.DeleteConfigurationSetEventDestinationCommand,
|
|
48
|
-
DeleteConfigurationSetTrackingOptionsCommand: client_ses_1.DeleteConfigurationSetTrackingOptionsCommand,
|
|
49
|
-
DeleteCustomVerificationEmailTemplateCommand: client_ses_1.DeleteCustomVerificationEmailTemplateCommand,
|
|
50
|
-
DeleteIdentityCommand: client_ses_1.DeleteIdentityCommand,
|
|
51
|
-
DeleteIdentityPolicyCommand: client_ses_1.DeleteIdentityPolicyCommand,
|
|
52
|
-
DeleteReceiptFilterCommand: client_ses_1.DeleteReceiptFilterCommand,
|
|
53
|
-
DeleteReceiptRuleCommand: client_ses_1.DeleteReceiptRuleCommand,
|
|
54
|
-
DeleteReceiptRuleSetCommand: client_ses_1.DeleteReceiptRuleSetCommand,
|
|
55
|
-
DeleteTemplateCommand: client_ses_1.DeleteTemplateCommand,
|
|
56
|
-
DeleteVerifiedEmailAddressCommand: client_ses_1.DeleteVerifiedEmailAddressCommand,
|
|
57
|
-
DescribeActiveReceiptRuleSetCommand: client_ses_1.DescribeActiveReceiptRuleSetCommand,
|
|
58
|
-
DescribeConfigurationSetCommand: client_ses_1.DescribeConfigurationSetCommand,
|
|
59
|
-
DescribeReceiptRuleCommand: client_ses_1.DescribeReceiptRuleCommand,
|
|
60
|
-
DescribeReceiptRuleSetCommand: client_ses_1.DescribeReceiptRuleSetCommand,
|
|
61
|
-
GetAccountSendingEnabledCommand: client_ses_1.GetAccountSendingEnabledCommand,
|
|
62
|
-
GetCustomVerificationEmailTemplateCommand: client_ses_1.GetCustomVerificationEmailTemplateCommand,
|
|
63
|
-
GetIdentityDkimAttributesCommand: client_ses_1.GetIdentityDkimAttributesCommand,
|
|
64
|
-
GetIdentityMailFromDomainAttributesCommand: client_ses_1.GetIdentityMailFromDomainAttributesCommand,
|
|
65
|
-
GetIdentityNotificationAttributesCommand: client_ses_1.GetIdentityNotificationAttributesCommand,
|
|
66
|
-
GetIdentityPoliciesCommand: client_ses_1.GetIdentityPoliciesCommand,
|
|
67
|
-
GetIdentityVerificationAttributesCommand: client_ses_1.GetIdentityVerificationAttributesCommand,
|
|
68
|
-
GetSendQuotaCommand: client_ses_1.GetSendQuotaCommand,
|
|
69
|
-
GetSendStatisticsCommand: client_ses_1.GetSendStatisticsCommand,
|
|
70
|
-
GetTemplateCommand: client_ses_1.GetTemplateCommand,
|
|
71
|
-
ListConfigurationSetsCommand: client_ses_1.ListConfigurationSetsCommand,
|
|
72
|
-
ListCustomVerificationEmailTemplatesCommand: client_ses_1.ListCustomVerificationEmailTemplatesCommand,
|
|
73
|
-
ListIdentitiesCommand: client_ses_1.ListIdentitiesCommand,
|
|
74
|
-
ListIdentityPoliciesCommand: client_ses_1.ListIdentityPoliciesCommand,
|
|
75
|
-
ListReceiptFiltersCommand: client_ses_1.ListReceiptFiltersCommand,
|
|
76
|
-
ListReceiptRuleSetsCommand: client_ses_1.ListReceiptRuleSetsCommand,
|
|
77
|
-
ListTemplatesCommand: client_ses_1.ListTemplatesCommand,
|
|
78
|
-
ListVerifiedEmailAddressesCommand: client_ses_1.ListVerifiedEmailAddressesCommand,
|
|
79
|
-
PutConfigurationSetDeliveryOptionsCommand: client_ses_1.PutConfigurationSetDeliveryOptionsCommand,
|
|
80
|
-
PutIdentityPolicyCommand: client_ses_1.PutIdentityPolicyCommand,
|
|
81
|
-
ReorderReceiptRuleSetCommand: client_ses_1.ReorderReceiptRuleSetCommand,
|
|
82
|
-
SendBounceCommand: client_ses_1.SendBounceCommand,
|
|
83
|
-
SendBulkTemplatedEmailCommand: client_ses_1.SendBulkTemplatedEmailCommand,
|
|
84
|
-
SendCustomVerificationEmailCommand: client_ses_1.SendCustomVerificationEmailCommand,
|
|
85
|
-
SendEmailCommand: client_ses_1.SendEmailCommand,
|
|
86
|
-
SendRawEmailCommand: client_ses_1.SendRawEmailCommand,
|
|
87
|
-
SendTemplatedEmailCommand: client_ses_1.SendTemplatedEmailCommand,
|
|
88
|
-
SetActiveReceiptRuleSetCommand: client_ses_1.SetActiveReceiptRuleSetCommand,
|
|
89
|
-
SetIdentityDkimEnabledCommand: client_ses_1.SetIdentityDkimEnabledCommand,
|
|
90
|
-
SetIdentityFeedbackForwardingEnabledCommand: client_ses_1.SetIdentityFeedbackForwardingEnabledCommand,
|
|
91
|
-
SetIdentityHeadersInNotificationsEnabledCommand: client_ses_1.SetIdentityHeadersInNotificationsEnabledCommand,
|
|
92
|
-
SetIdentityMailFromDomainCommand: client_ses_1.SetIdentityMailFromDomainCommand,
|
|
93
|
-
SetIdentityNotificationTopicCommand: client_ses_1.SetIdentityNotificationTopicCommand,
|
|
94
|
-
SetReceiptRulePositionCommand: client_ses_1.SetReceiptRulePositionCommand,
|
|
95
|
-
TestRenderTemplateCommand: client_ses_1.TestRenderTemplateCommand,
|
|
96
|
-
UpdateAccountSendingEnabledCommand: client_ses_1.UpdateAccountSendingEnabledCommand,
|
|
97
|
-
UpdateConfigurationSetEventDestinationCommand: client_ses_1.UpdateConfigurationSetEventDestinationCommand,
|
|
98
|
-
UpdateConfigurationSetReputationMetricsEnabledCommand: client_ses_1.UpdateConfigurationSetReputationMetricsEnabledCommand,
|
|
99
|
-
UpdateConfigurationSetSendingEnabledCommand: client_ses_1.UpdateConfigurationSetSendingEnabledCommand,
|
|
100
|
-
UpdateConfigurationSetTrackingOptionsCommand: client_ses_1.UpdateConfigurationSetTrackingOptionsCommand,
|
|
101
|
-
UpdateCustomVerificationEmailTemplateCommand: client_ses_1.UpdateCustomVerificationEmailTemplateCommand,
|
|
102
|
-
UpdateReceiptRuleCommand: client_ses_1.UpdateReceiptRuleCommand,
|
|
103
|
-
UpdateTemplateCommand: client_ses_1.UpdateTemplateCommand,
|
|
104
|
-
VerifyDomainDkimCommand: client_ses_1.VerifyDomainDkimCommand,
|
|
105
|
-
VerifyDomainIdentityCommand: client_ses_1.VerifyDomainIdentityCommand,
|
|
106
|
-
VerifyEmailAddressCommand: client_ses_1.VerifyEmailAddressCommand,
|
|
107
|
-
VerifyEmailIdentityCommand: client_ses_1.VerifyEmailIdentityCommand,
|
|
108
|
-
};
|
|
109
|
-
/**
|
|
110
|
-
* @since 1.0.0
|
|
111
|
-
* @category constructors
|
|
112
|
-
*/
|
|
113
|
-
exports.makeSESService = effect_1.Effect.gen(function* () {
|
|
114
|
-
const client = yield* Instance.SESClientInstance;
|
|
115
|
-
return yield* commons_1.Service.fromClientAndCommands(client, commands, {
|
|
116
|
-
errorTags: Errors_js_1.AllServiceErrors,
|
|
117
|
-
resolveClientConfig: SESServiceConfig.toSESClientConfig,
|
|
118
|
-
});
|
|
119
|
-
});
|
|
120
|
-
/**
|
|
121
|
-
* @since 1.0.0
|
|
122
|
-
* @category models
|
|
123
|
-
*/
|
|
124
|
-
class SESService extends effect_1.Effect.Tag("@effect-aws/client-ses/SESService")() {
|
|
125
|
-
static defaultLayer = effect_1.Layer.effect(this, exports.makeSESService).pipe(effect_1.Layer.provide(Instance.layer));
|
|
126
|
-
static layer = (config) => effect_1.Layer.effect(this, exports.makeSESService).pipe(effect_1.Layer.provide(Instance.layer), effect_1.Layer.provide(SESServiceConfig.setSESServiceConfig(config)));
|
|
127
|
-
static baseLayer = (evaluate) => effect_1.Layer.effect(this, exports.makeSESService).pipe(effect_1.Layer.provide(effect_1.Layer.effect(Instance.SESClientInstance, effect_1.Effect.map(SESServiceConfig.toSESClientConfig, evaluate))));
|
|
128
|
-
}
|
|
129
|
-
exports.SESService = SESService;
|
|
130
|
-
//# sourceMappingURL=SESService.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SESService.js","sourceRoot":"","sources":["../../src/SESService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,oDAwN6B;AAE7B,iDAA8C;AAE9C,mCAAuC;AAsCvC,2CAA+C;AAC/C,iEAAmD;AACnD,wEAA0D;AAE1D,MAAM,QAAQ,GAAG;IACf,0BAA0B,EAA1B,uCAA0B;IAC1B,6BAA6B,EAA7B,0CAA6B;IAC7B,6CAA6C,EAA7C,0DAA6C;IAC7C,4CAA4C,EAA5C,yDAA4C;IAC5C,4CAA4C,EAA5C,yDAA4C;IAC5C,0BAA0B,EAA1B,uCAA0B;IAC1B,wBAAwB,EAAxB,qCAAwB;IACxB,2BAA2B,EAA3B,wCAA2B;IAC3B,qBAAqB,EAArB,kCAAqB;IACrB,6BAA6B,EAA7B,0CAA6B;IAC7B,6CAA6C,EAA7C,0DAA6C;IAC7C,4CAA4C,EAA5C,yDAA4C;IAC5C,4CAA4C,EAA5C,yDAA4C;IAC5C,qBAAqB,EAArB,kCAAqB;IACrB,2BAA2B,EAA3B,wCAA2B;IAC3B,0BAA0B,EAA1B,uCAA0B;IAC1B,wBAAwB,EAAxB,qCAAwB;IACxB,2BAA2B,EAA3B,wCAA2B;IAC3B,qBAAqB,EAArB,kCAAqB;IACrB,iCAAiC,EAAjC,8CAAiC;IACjC,mCAAmC,EAAnC,gDAAmC;IACnC,+BAA+B,EAA/B,4CAA+B;IAC/B,0BAA0B,EAA1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rC,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"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @since 1.0.0
|
|
3
|
-
*/
|
|
4
|
-
import type { SESClientConfig } from "@aws-sdk/client-ses";
|
|
5
|
-
import { Effect, Layer } from "effect";
|
|
6
|
-
import type { SESService } from "./SESService.js";
|
|
7
|
-
/**
|
|
8
|
-
* @since 1.0.0
|
|
9
|
-
* @category ses service config
|
|
10
|
-
*/
|
|
11
|
-
export declare const withSESServiceConfig: {
|
|
12
|
-
(config: SESService.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: SESService.Config): Effect.Effect<A, E, R>;
|
|
14
|
-
};
|
|
15
|
-
/**
|
|
16
|
-
* @since 1.0.0
|
|
17
|
-
* @category ses service config
|
|
18
|
-
*/
|
|
19
|
-
export declare const setSESServiceConfig: (config: SESService.Config) => Layer.Layer<never, never, never>;
|
|
20
|
-
/**
|
|
21
|
-
* @since 1.0.0
|
|
22
|
-
* @category adapters
|
|
23
|
-
*/
|
|
24
|
-
export declare const toSESClientConfig: Effect.Effect<SESClientConfig>;
|
|
25
|
-
//# sourceMappingURL=SESServiceConfig.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SESServiceConfig.d.ts","sourceRoot":"","sources":["../../src/SESServiceConfig.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"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.toSESClientConfig = exports.setSESServiceConfig = exports.withSESServiceConfig = 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 ses service config
|
|
11
|
-
*/
|
|
12
|
-
const currentSESServiceConfig = (0, GlobalValue_1.globalValue)("@effect-aws/client-ses/currentSESServiceConfig", () => effect_1.FiberRef.unsafeMake({}));
|
|
13
|
-
/**
|
|
14
|
-
* @since 1.0.0
|
|
15
|
-
* @category ses service config
|
|
16
|
-
*/
|
|
17
|
-
exports.withSESServiceConfig = (0, Function_1.dual)(2, (effect, config) => effect_1.Effect.locally(effect, currentSESServiceConfig, config));
|
|
18
|
-
/**
|
|
19
|
-
* @since 1.0.0
|
|
20
|
-
* @category ses service config
|
|
21
|
-
*/
|
|
22
|
-
const setSESServiceConfig = (config) => effect_1.Layer.locallyScoped(currentSESServiceConfig, config);
|
|
23
|
-
exports.setSESServiceConfig = setSESServiceConfig;
|
|
24
|
-
/**
|
|
25
|
-
* @since 1.0.0
|
|
26
|
-
* @category adapters
|
|
27
|
-
*/
|
|
28
|
-
exports.toSESClientConfig = effect_1.Effect.gen(function* () {
|
|
29
|
-
const { logger: serviceLogger, ...config } = yield* effect_1.FiberRef.get(currentSESServiceConfig);
|
|
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=SESServiceConfig.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SESServiceConfig.js","sourceRoot":"","sources":["../../src/SESServiceConfig.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"}
|
package/dist/cjs/index.d.ts
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @since 1.0.0
|
|
3
|
-
*/
|
|
4
|
-
import { SESService } from "./SESService.js";
|
|
5
|
-
/**
|
|
6
|
-
* @since 1.0.0
|
|
7
|
-
*/
|
|
8
|
-
export * from "./Errors.js";
|
|
9
|
-
/**
|
|
10
|
-
* @since 1.0.0
|
|
11
|
-
*/
|
|
12
|
-
export * as SESClientInstance from "./SESClientInstance.js";
|
|
13
|
-
/**
|
|
14
|
-
* @since 1.0.0
|
|
15
|
-
*/
|
|
16
|
-
export * as SESServiceConfig from "./SESServiceConfig.js";
|
|
17
|
-
/**
|
|
18
|
-
* @since 1.0.0
|
|
19
|
-
*/
|
|
20
|
-
export * from "./SESService.js";
|
|
21
|
-
/**
|
|
22
|
-
* @since 1.0.0
|
|
23
|
-
* @category exports
|
|
24
|
-
* @alias SESService
|
|
25
|
-
*/
|
|
26
|
-
export declare namespace SES {
|
|
27
|
-
/**
|
|
28
|
-
* @since 1.0.0
|
|
29
|
-
* @alias SESService.Config
|
|
30
|
-
*/
|
|
31
|
-
type Config = SESService.Config;
|
|
32
|
-
/**
|
|
33
|
-
* @since 1.0.0
|
|
34
|
-
* @alias SESService.Type
|
|
35
|
-
*/
|
|
36
|
-
type Type = SESService.Type;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* @since 1.0.0
|
|
40
|
-
* @category exports
|
|
41
|
-
* @alias SESService
|
|
42
|
-
*/
|
|
43
|
-
export declare const SES: typeof SESService;
|
|
44
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/cjs/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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;IAEvC;;;OAGG;IACH,KAAY,IAAI,GAAG,UAAU,CAAC,IAAI,CAAC;CACpC;AAED;;;;GAIG;AACH,eAAO,MAAM,GAAG,mBAAa,CAAC"}
|
package/dist/cjs/index.js
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
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.SES = exports.SESServiceConfig = exports.SESClientInstance = void 0;
|
|
30
|
-
/**
|
|
31
|
-
* @since 1.0.0
|
|
32
|
-
*/
|
|
33
|
-
const SESService_js_1 = require("./SESService.js");
|
|
34
|
-
/**
|
|
35
|
-
* @since 1.0.0
|
|
36
|
-
*/
|
|
37
|
-
__exportStar(require("./Errors.js"), exports);
|
|
38
|
-
/**
|
|
39
|
-
* @since 1.0.0
|
|
40
|
-
*/
|
|
41
|
-
exports.SESClientInstance = __importStar(require("./SESClientInstance.js"));
|
|
42
|
-
/**
|
|
43
|
-
* @since 1.0.0
|
|
44
|
-
*/
|
|
45
|
-
exports.SESServiceConfig = __importStar(require("./SESServiceConfig.js"));
|
|
46
|
-
/**
|
|
47
|
-
* @since 1.0.0
|
|
48
|
-
*/
|
|
49
|
-
__exportStar(require("./SESService.js"), exports);
|
|
50
|
-
/**
|
|
51
|
-
* @since 1.0.0
|
|
52
|
-
* @category exports
|
|
53
|
-
* @alias SESService
|
|
54
|
-
*/
|
|
55
|
-
exports.SES = SESService_js_1.SESService;
|
|
56
|
-
//# sourceMappingURL=index.js.map
|
package/dist/cjs/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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;AAqBhC;;;;GAIG;AACU,QAAA,GAAG,GAAG,0BAAU,CAAC"}
|