@effect-aws/client-ses 1.10.9 → 2.0.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +3 -3
- package/dist/dts/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/esm/SESService.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { CloneReceiptRuleSetCommand, CreateConfigurationSetCommand, CreateConfigurationSetEventDestinationCommand, CreateConfigurationSetTrackingOptionsCommand, CreateCustomVerificationEmailTemplateCommand, CreateReceiptFilterCommand, CreateReceiptRuleCommand, CreateReceiptRuleSetCommand, CreateTemplateCommand, DeleteConfigurationSetCommand, DeleteConfigurationSetEventDestinationCommand, DeleteConfigurationSetTrackingOptionsCommand, DeleteCustomVerificationEmailTemplateCommand, DeleteIdentityCommand, DeleteIdentityPolicyCommand, DeleteReceiptFilterCommand, DeleteReceiptRuleCommand, DeleteReceiptRuleSetCommand, DeleteTemplateCommand, DeleteVerifiedEmailAddressCommand, DescribeActiveReceiptRuleSetCommand, DescribeConfigurationSetCommand, DescribeReceiptRuleCommand, DescribeReceiptRuleSetCommand, GetAccountSendingEnabledCommand, GetCustomVerificationEmailTemplateCommand, GetIdentityDkimAttributesCommand, GetIdentityMailFromDomainAttributesCommand, GetIdentityNotificationAttributesCommand, GetIdentityPoliciesCommand, GetIdentityVerificationAttributesCommand, GetSendQuotaCommand, GetSendStatisticsCommand, GetTemplateCommand, ListConfigurationSetsCommand, ListCustomVerificationEmailTemplatesCommand, ListIdentitiesCommand, ListIdentityPoliciesCommand, ListReceiptFiltersCommand, ListReceiptRuleSetsCommand, ListTemplatesCommand, ListVerifiedEmailAddressesCommand, PutConfigurationSetDeliveryOptionsCommand, PutIdentityPolicyCommand, ReorderReceiptRuleSetCommand, SendBounceCommand, SendBulkTemplatedEmailCommand, SendCustomVerificationEmailCommand, SendEmailCommand, SendRawEmailCommand, SendTemplatedEmailCommand, SetActiveReceiptRuleSetCommand, SetIdentityDkimEnabledCommand, SetIdentityFeedbackForwardingEnabledCommand, SetIdentityHeadersInNotificationsEnabledCommand, SetIdentityMailFromDomainCommand, SetIdentityNotificationTopicCommand, SetReceiptRulePositionCommand, TestRenderTemplateCommand, UpdateAccountSendingEnabledCommand, UpdateConfigurationSetEventDestinationCommand, UpdateConfigurationSetReputationMetricsEnabledCommand, UpdateConfigurationSetSendingEnabledCommand, UpdateConfigurationSetTrackingOptionsCommand, UpdateCustomVerificationEmailTemplateCommand, UpdateReceiptRuleCommand, UpdateTemplateCommand, VerifyDomainDkimCommand, VerifyDomainIdentityCommand, VerifyEmailAddressCommand, VerifyEmailIdentityCommand, } from "@aws-sdk/client-ses";
|
|
5
5
|
import { Service } from "@effect-aws/commons";
|
|
6
|
-
import { Effect, Layer } from "effect";
|
|
6
|
+
import { Effect, Layer, ServiceMap } from "effect";
|
|
7
7
|
import { AllServiceErrors } from "./Errors.js";
|
|
8
8
|
import * as Instance from "./SESClientInstance.js";
|
|
9
9
|
import * as SESServiceConfig from "./SESServiceConfig.js";
|
|
@@ -95,7 +95,7 @@ export const makeSESService = Effect.gen(function* () {
|
|
|
95
95
|
* @since 1.0.0
|
|
96
96
|
* @category models
|
|
97
97
|
*/
|
|
98
|
-
export class SESService extends
|
|
98
|
+
export class SESService extends ServiceMap.Service()("@effect-aws/client-ses/SESService") {
|
|
99
99
|
static defaultLayer = Layer.effect(this, makeSESService).pipe(Layer.provide(Instance.layer));
|
|
100
100
|
static layer = (config) => Layer.effect(this, makeSESService).pipe(Layer.provide(Instance.layer), Layer.provide(SESServiceConfig.setSESServiceConfig(config)));
|
|
101
101
|
static baseLayer = (evaluate) => Layer.effect(this, makeSESService).pipe(Layer.provide(Layer.effect(Instance.SESClientInstance, Effect.map(SESServiceConfig.toSESClientConfig, evaluate))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SESService.js","sourceRoot":"","sources":["../../src/SESService.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EACL,0BAA0B,EAG1B,6BAA6B,EAG7B,6CAA6C,EAG7C,4CAA4C,EAG5C,4CAA4C,EAG5C,0BAA0B,EAG1B,wBAAwB,EAGxB,2BAA2B,EAG3B,qBAAqB,EAGrB,6BAA6B,EAG7B,6CAA6C,EAG7C,4CAA4C,EAG5C,4CAA4C,EAG5C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ServiceMap } from "effect";
|
|
3
3
|
import { dual } from "effect/Function";
|
|
4
|
-
import { globalValue } from "effect/GlobalValue";
|
|
5
4
|
/**
|
|
6
5
|
* @since 1.0.0
|
|
7
6
|
* @category ses service config
|
|
8
7
|
*/
|
|
9
|
-
const currentSESServiceConfig =
|
|
8
|
+
const currentSESServiceConfig = ServiceMap.Reference("@effect-aws/client-ses/currentSESServiceConfig", { defaultValue: () => ({}) });
|
|
10
9
|
/**
|
|
11
10
|
* @since 1.0.0
|
|
12
11
|
* @category ses service config
|
|
13
12
|
*/
|
|
14
|
-
export const withSESServiceConfig = dual(2, (effect, config) => Effect.
|
|
13
|
+
export const withSESServiceConfig = dual(2, (effect, config) => Effect.provideService(effect, currentSESServiceConfig, config));
|
|
15
14
|
/**
|
|
16
15
|
* @since 1.0.0
|
|
17
16
|
* @category ses service config
|
|
18
17
|
*/
|
|
19
|
-
export const setSESServiceConfig = (config) => Layer.
|
|
18
|
+
export const setSESServiceConfig = (config) => Layer.succeed(currentSESServiceConfig, config);
|
|
20
19
|
/**
|
|
21
20
|
* @since 1.0.0
|
|
22
21
|
* @category adapters
|
|
23
22
|
*/
|
|
24
23
|
export const toSESClientConfig = Effect.gen(function* () {
|
|
25
|
-
const { logger: serviceLogger, ...config } = yield*
|
|
24
|
+
const { logger: serviceLogger, ...config } = yield* currentSESServiceConfig;
|
|
26
25
|
const logger = serviceLogger === true
|
|
27
26
|
? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger)
|
|
28
27
|
: (serviceLogger ? yield* ServiceLogger.toClientLogger(ServiceLogger.make(serviceLogger)) : undefined);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SESServiceConfig.js","sourceRoot":"","sources":["../../src/SESServiceConfig.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"SESServiceConfig.js","source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G,MAAM,EAAE,CAAC;AAC/B,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effect-aws/client-ses",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-beta.0",
|
|
4
4
|
"description": "Effectful AWS SES client",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -16,40 +16,34 @@
|
|
|
16
16
|
"homepage": "https://floydspace.github.io/effect-aws/docs/client-ses",
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@aws-sdk/client-ses": "^3",
|
|
19
|
-
"@effect-aws/commons": "^0.
|
|
19
|
+
"@effect-aws/commons": "^1.0.0-beta.0"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
22
|
-
"effect": ">=
|
|
22
|
+
"effect": ">=4.0.0 <5.0.0"
|
|
23
23
|
},
|
|
24
|
-
"main": "./dist/cjs/index.js",
|
|
25
24
|
"module": "./dist/esm/index.js",
|
|
26
25
|
"types": "./dist/dts/index.d.ts",
|
|
27
26
|
"exports": {
|
|
28
27
|
"./package.json": "./package.json",
|
|
29
28
|
".": {
|
|
30
29
|
"types": "./dist/dts/index.d.ts",
|
|
31
|
-
"import": "./dist/esm/index.js"
|
|
32
|
-
"default": "./dist/cjs/index.js"
|
|
30
|
+
"import": "./dist/esm/index.js"
|
|
33
31
|
},
|
|
34
32
|
"./Errors": {
|
|
35
33
|
"types": "./dist/dts/Errors.d.ts",
|
|
36
|
-
"import": "./dist/esm/Errors.js"
|
|
37
|
-
"default": "./dist/cjs/Errors.js"
|
|
34
|
+
"import": "./dist/esm/Errors.js"
|
|
38
35
|
},
|
|
39
36
|
"./SESClientInstance": {
|
|
40
37
|
"types": "./dist/dts/SESClientInstance.d.ts",
|
|
41
|
-
"import": "./dist/esm/SESClientInstance.js"
|
|
42
|
-
"default": "./dist/cjs/SESClientInstance.js"
|
|
38
|
+
"import": "./dist/esm/SESClientInstance.js"
|
|
43
39
|
},
|
|
44
40
|
"./SESService": {
|
|
45
41
|
"types": "./dist/dts/SESService.d.ts",
|
|
46
|
-
"import": "./dist/esm/SESService.js"
|
|
47
|
-
"default": "./dist/cjs/SESService.js"
|
|
42
|
+
"import": "./dist/esm/SESService.js"
|
|
48
43
|
},
|
|
49
44
|
"./SESServiceConfig": {
|
|
50
45
|
"types": "./dist/dts/SESServiceConfig.d.ts",
|
|
51
|
-
"import": "./dist/esm/SESServiceConfig.js"
|
|
52
|
-
"default": "./dist/cjs/SESServiceConfig.js"
|
|
46
|
+
"import": "./dist/esm/SESServiceConfig.js"
|
|
53
47
|
}
|
|
54
48
|
},
|
|
55
49
|
"typesVersions": {
|
package/src/SESClientInstance.ts
CHANGED
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
4
|
import { SESClient } from "@aws-sdk/client-ses";
|
|
5
|
-
import {
|
|
5
|
+
import { Effect, Layer, ServiceMap } from "effect";
|
|
6
6
|
import * as SESServiceConfig from "./SESServiceConfig.js";
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* @since 1.0.0
|
|
10
10
|
* @category tags
|
|
11
11
|
*/
|
|
12
|
-
export class SESClientInstance extends
|
|
12
|
+
export class SESClientInstance extends ServiceMap.Service<SESClientInstance, SESClient>()(
|
|
13
13
|
"@effect-aws/client-ses/SESClientInstance",
|
|
14
|
-
)
|
|
14
|
+
) {}
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* @since 1.0.0
|
|
@@ -30,4 +30,4 @@ export const make = Effect.flatMap(
|
|
|
30
30
|
* @since 1.0.0
|
|
31
31
|
* @category layers
|
|
32
32
|
*/
|
|
33
|
-
export const layer = Layer.
|
|
33
|
+
export const layer = Layer.effect(SESClientInstance, make);
|