@effect-aws/client-scheduler 1.10.9 → 2.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +3 -3
- package/dist/dts/SchedulerClientInstance.d.ts +4 -2
- package/dist/dts/SchedulerClientInstance.d.ts.map +1 -1
- package/dist/dts/SchedulerService.d.ts +17 -17
- package/dist/dts/SchedulerService.d.ts.map +1 -1
- package/dist/dts/SchedulerServiceConfig.d.ts +2 -1
- package/dist/dts/SchedulerServiceConfig.d.ts.map +1 -1
- package/dist/esm/SchedulerClientInstance.js +5 -3
- package/dist/esm/SchedulerClientInstance.js.map +1 -1
- package/dist/esm/SchedulerService.js +4 -2
- package/dist/esm/SchedulerService.js.map +1 -1
- package/dist/esm/SchedulerServiceConfig.js +7 -6
- package/dist/esm/SchedulerServiceConfig.js.map +1 -1
- package/package.json +8 -14
- package/src/SchedulerClientInstance.ts +6 -4
- package/src/SchedulerService.ts +18 -16
- package/src/SchedulerServiceConfig.ts +8 -7
- package/dist/cjs/Errors.d.ts +0 -13
- package/dist/cjs/Errors.d.ts.map +0 -1
- package/dist/cjs/Errors.js +0 -12
- package/dist/cjs/Errors.js.map +0 -1
- package/dist/cjs/SchedulerClientInstance.d.ts +0 -24
- package/dist/cjs/SchedulerClientInstance.d.ts.map +0 -1
- package/dist/cjs/SchedulerClientInstance.js +0 -50
- package/dist/cjs/SchedulerClientInstance.js.map +0 -1
- package/dist/cjs/SchedulerService.d.ts +0 -94
- package/dist/cjs/SchedulerService.d.ts.map +0 -1
- package/dist/cjs/SchedulerService.js +0 -71
- package/dist/cjs/SchedulerService.js.map +0 -1
- package/dist/cjs/SchedulerServiceConfig.d.ts +0 -25
- package/dist/cjs/SchedulerServiceConfig.d.ts.map +0 -1
- package/dist/cjs/SchedulerServiceConfig.js +0 -35
- package/dist/cjs/SchedulerServiceConfig.js.map +0 -1
- package/dist/cjs/index.d.ts +0 -44
- package/dist/cjs/index.d.ts.map +0 -1
- package/dist/cjs/index.js +0 -56
- package/dist/cjs/index.js.map +0 -1
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@ With default SchedulerClient instance:
|
|
|
16
16
|
```typescript
|
|
17
17
|
import { Scheduler } from "@effect-aws/client-scheduler";
|
|
18
18
|
|
|
19
|
-
const program = Scheduler.tagResource(args);
|
|
19
|
+
const program = Scheduler.use((svc) => svc.tagResource(args));
|
|
20
20
|
|
|
21
21
|
const result = pipe(
|
|
22
22
|
program,
|
|
@@ -30,7 +30,7 @@ With custom SchedulerClient instance:
|
|
|
30
30
|
```typescript
|
|
31
31
|
import { Scheduler } from "@effect-aws/client-scheduler";
|
|
32
32
|
|
|
33
|
-
const program = Scheduler.tagResource(args);
|
|
33
|
+
const program = Scheduler.use((svc) => svc.tagResource(args));
|
|
34
34
|
|
|
35
35
|
const result = await pipe(
|
|
36
36
|
program,
|
|
@@ -46,7 +46,7 @@ With custom SchedulerClient configuration:
|
|
|
46
46
|
```typescript
|
|
47
47
|
import { Scheduler } from "@effect-aws/client-scheduler";
|
|
48
48
|
|
|
49
|
-
const program = Scheduler.tagResource(args);
|
|
49
|
+
const program = Scheduler.use((svc) => svc.tagResource(args));
|
|
50
50
|
|
|
51
51
|
const result = await pipe(
|
|
52
52
|
program,
|
|
@@ -2,8 +2,10 @@
|
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
4
|
import { SchedulerClient } from "@aws-sdk/client-scheduler";
|
|
5
|
-
import
|
|
6
|
-
|
|
5
|
+
import * as Effect from "effect/Effect";
|
|
6
|
+
import * as Layer from "effect/Layer";
|
|
7
|
+
import * as ServiceMap from "effect/ServiceMap";
|
|
8
|
+
declare const SchedulerClientInstance_base: ServiceMap.ServiceClass<SchedulerClientInstance, "@effect-aws/client-scheduler/SchedulerClientInstance", SchedulerClient>;
|
|
7
9
|
/**
|
|
8
10
|
* @since 1.0.0
|
|
9
11
|
* @category tags
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchedulerClientInstance.d.ts","sourceRoot":"","sources":["../../src/SchedulerClientInstance.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,
|
|
1
|
+
{"version":3,"file":"SchedulerClientInstance.d.ts","sourceRoot":"","sources":["../../src/SchedulerClientInstance.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;;AAGhD;;;GAGG;AACH,qBAAa,uBAAwB,SAAQ,4BAE5C;CAAG;AAEJ;;;GAGG;AACH,eAAO,MAAM,IAAI,qEAOhB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,KAAK,oDAA8C,CAAC"}
|
|
@@ -3,8 +3,10 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { type CreateScheduleCommandInput, type CreateScheduleCommandOutput, type CreateScheduleGroupCommandInput, type CreateScheduleGroupCommandOutput, type DeleteScheduleCommandInput, type DeleteScheduleCommandOutput, type DeleteScheduleGroupCommandInput, type DeleteScheduleGroupCommandOutput, type GetScheduleCommandInput, type GetScheduleCommandOutput, type GetScheduleGroupCommandInput, type GetScheduleGroupCommandOutput, type ListScheduleGroupsCommandInput, type ListScheduleGroupsCommandOutput, type ListSchedulesCommandInput, type ListSchedulesCommandOutput, type ListTagsForResourceCommandInput, type ListTagsForResourceCommandOutput, type SchedulerClient, type SchedulerClientConfig, type TagResourceCommandInput, type TagResourceCommandOutput, type UntagResourceCommandInput, type UntagResourceCommandOutput, type UpdateScheduleCommandInput, type UpdateScheduleCommandOutput } from "@aws-sdk/client-scheduler";
|
|
5
5
|
import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons";
|
|
6
|
-
import type
|
|
7
|
-
import
|
|
6
|
+
import type * as Cause from "effect/Cause";
|
|
7
|
+
import * as Effect from "effect/Effect";
|
|
8
|
+
import * as Layer from "effect/Layer";
|
|
9
|
+
import * as ServiceMap from "effect/ServiceMap";
|
|
8
10
|
import type { ConflictError, InternalServerError, ResourceNotFoundError, SdkError, ServiceQuotaExceededError, ThrottlingError, ValidationError } from "./Errors.js";
|
|
9
11
|
import * as Instance from "./SchedulerClientInstance.js";
|
|
10
12
|
interface SchedulerService$ {
|
|
@@ -12,60 +14,58 @@ interface SchedulerService$ {
|
|
|
12
14
|
/**
|
|
13
15
|
* @see {@link CreateScheduleCommand}
|
|
14
16
|
*/
|
|
15
|
-
createSchedule(args: CreateScheduleCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateScheduleCommandOutput, Cause.
|
|
17
|
+
createSchedule(args: CreateScheduleCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateScheduleCommandOutput, Cause.TimeoutError | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ServiceQuotaExceededError | ThrottlingError | ValidationError>;
|
|
16
18
|
/**
|
|
17
19
|
* @see {@link CreateScheduleGroupCommand}
|
|
18
20
|
*/
|
|
19
|
-
createScheduleGroup(args: CreateScheduleGroupCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateScheduleGroupCommandOutput, Cause.
|
|
21
|
+
createScheduleGroup(args: CreateScheduleGroupCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateScheduleGroupCommandOutput, Cause.TimeoutError | SdkError | ConflictError | InternalServerError | ServiceQuotaExceededError | ThrottlingError | ValidationError>;
|
|
20
22
|
/**
|
|
21
23
|
* @see {@link DeleteScheduleCommand}
|
|
22
24
|
*/
|
|
23
|
-
deleteSchedule(args: DeleteScheduleCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteScheduleCommandOutput, Cause.
|
|
25
|
+
deleteSchedule(args: DeleteScheduleCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteScheduleCommandOutput, Cause.TimeoutError | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
24
26
|
/**
|
|
25
27
|
* @see {@link DeleteScheduleGroupCommand}
|
|
26
28
|
*/
|
|
27
|
-
deleteScheduleGroup(args: DeleteScheduleGroupCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteScheduleGroupCommandOutput, Cause.
|
|
29
|
+
deleteScheduleGroup(args: DeleteScheduleGroupCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteScheduleGroupCommandOutput, Cause.TimeoutError | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
28
30
|
/**
|
|
29
31
|
* @see {@link GetScheduleCommand}
|
|
30
32
|
*/
|
|
31
|
-
getSchedule(args: GetScheduleCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetScheduleCommandOutput, Cause.
|
|
33
|
+
getSchedule(args: GetScheduleCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetScheduleCommandOutput, Cause.TimeoutError | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
32
34
|
/**
|
|
33
35
|
* @see {@link GetScheduleGroupCommand}
|
|
34
36
|
*/
|
|
35
|
-
getScheduleGroup(args: GetScheduleGroupCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetScheduleGroupCommandOutput, Cause.
|
|
37
|
+
getScheduleGroup(args: GetScheduleGroupCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetScheduleGroupCommandOutput, Cause.TimeoutError | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
36
38
|
/**
|
|
37
39
|
* @see {@link ListScheduleGroupsCommand}
|
|
38
40
|
*/
|
|
39
|
-
listScheduleGroups(args: ListScheduleGroupsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListScheduleGroupsCommandOutput, Cause.
|
|
41
|
+
listScheduleGroups(args: ListScheduleGroupsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListScheduleGroupsCommandOutput, Cause.TimeoutError | SdkError | InternalServerError | ThrottlingError | ValidationError>;
|
|
40
42
|
/**
|
|
41
43
|
* @see {@link ListSchedulesCommand}
|
|
42
44
|
*/
|
|
43
|
-
listSchedules(args: ListSchedulesCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListSchedulesCommandOutput, Cause.
|
|
45
|
+
listSchedules(args: ListSchedulesCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListSchedulesCommandOutput, Cause.TimeoutError | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
44
46
|
/**
|
|
45
47
|
* @see {@link ListTagsForResourceCommand}
|
|
46
48
|
*/
|
|
47
|
-
listTagsForResource(args: ListTagsForResourceCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListTagsForResourceCommandOutput, Cause.
|
|
49
|
+
listTagsForResource(args: ListTagsForResourceCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListTagsForResourceCommandOutput, Cause.TimeoutError | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
48
50
|
/**
|
|
49
51
|
* @see {@link TagResourceCommand}
|
|
50
52
|
*/
|
|
51
|
-
tagResource(args: TagResourceCommandInput, options?: HttpHandlerOptions): Effect.Effect<TagResourceCommandOutput, Cause.
|
|
53
|
+
tagResource(args: TagResourceCommandInput, options?: HttpHandlerOptions): Effect.Effect<TagResourceCommandOutput, Cause.TimeoutError | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
52
54
|
/**
|
|
53
55
|
* @see {@link UntagResourceCommand}
|
|
54
56
|
*/
|
|
55
|
-
untagResource(args: UntagResourceCommandInput, options?: HttpHandlerOptions): Effect.Effect<UntagResourceCommandOutput, Cause.
|
|
57
|
+
untagResource(args: UntagResourceCommandInput, options?: HttpHandlerOptions): Effect.Effect<UntagResourceCommandOutput, Cause.TimeoutError | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
56
58
|
/**
|
|
57
59
|
* @see {@link UpdateScheduleCommand}
|
|
58
60
|
*/
|
|
59
|
-
updateSchedule(args: UpdateScheduleCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateScheduleCommandOutput, Cause.
|
|
61
|
+
updateSchedule(args: UpdateScheduleCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateScheduleCommandOutput, Cause.TimeoutError | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
60
62
|
}
|
|
61
63
|
/**
|
|
62
64
|
* @since 1.0.0
|
|
63
65
|
* @category constructors
|
|
64
66
|
*/
|
|
65
67
|
export declare const makeSchedulerService: Effect.Effect<SchedulerService$, never, Instance.SchedulerClientInstance>;
|
|
66
|
-
declare const SchedulerService_base:
|
|
67
|
-
use: <X>(body: (_: SchedulerService$) => X) => [X] extends [Effect.Effect<infer A, infer E, infer R>] ? Effect.Effect<A, E, SchedulerService | R> : [X] extends [PromiseLike<infer A_1>] ? Effect.Effect<A_1, Cause.UnknownException, SchedulerService> : Effect.Effect<X, never, SchedulerService>;
|
|
68
|
-
};
|
|
68
|
+
declare const SchedulerService_base: ServiceMap.ServiceClass<SchedulerService, "@effect-aws/client-scheduler/SchedulerService", SchedulerService$>;
|
|
69
69
|
/**
|
|
70
70
|
* @since 1.0.0
|
|
71
71
|
* @category models
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchedulerService.d.ts","sourceRoot":"","sources":["../../src/SchedulerService.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAEL,KAAK,0BAA0B,EAC/B,KAAK,2BAA2B,EAEhC,KAAK,+BAA+B,EACpC,KAAK,gCAAgC,EAErC,KAAK,0BAA0B,EAC/B,KAAK,2BAA2B,EAEhC,KAAK,+BAA+B,EACpC,KAAK,gCAAgC,EAErC,KAAK,uBAAuB,EAC5B,K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,CAAC;KACtE;IAED;;OAEG;IACH,KAAY,IAAI,GAAG,iBAAiB,CAAC;CACtC"}
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
4
|
import type { SchedulerClientConfig } from "@aws-sdk/client-scheduler";
|
|
5
|
-
import
|
|
5
|
+
import * as Effect from "effect/Effect";
|
|
6
|
+
import * as Layer from "effect/Layer";
|
|
6
7
|
import type { SchedulerService } from "./SchedulerService.js";
|
|
7
8
|
/**
|
|
8
9
|
* @since 1.0.0
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchedulerServiceConfig.d.ts","sourceRoot":"","sources":["../../src/SchedulerServiceConfig.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAEvE,OAAO,
|
|
1
|
+
{"version":3,"file":"SchedulerServiceConfig.d.ts","sourceRoot":"","sources":["../../src/SchedulerServiceConfig.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAEvE,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AAEtC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAW9D;;;GAGG;AACH,eAAO,MAAM,0BAA0B,EAAE;IACvC,CAAC,MAAM,EAAE,gBAAgB,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;IACvG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,gBAAgB,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;CAKpG,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,yBAAyB,WAAY,iBAAiB,MAAM,qCACnB,CAAC;AAEvD;;;GAGG;AACH,eAAO,MAAM,uBAAuB,EAAE,MAAM,CAAC,MAAM,CAAC,qBAAqB,CAQvE,CAAC"}
|
|
@@ -2,13 +2,15 @@
|
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
4
|
import { SchedulerClient } from "@aws-sdk/client-scheduler";
|
|
5
|
-
import
|
|
5
|
+
import * as Effect from "effect/Effect";
|
|
6
|
+
import * as Layer from "effect/Layer";
|
|
7
|
+
import * as ServiceMap from "effect/ServiceMap";
|
|
6
8
|
import * as SchedulerServiceConfig from "./SchedulerServiceConfig.js";
|
|
7
9
|
/**
|
|
8
10
|
* @since 1.0.0
|
|
9
11
|
* @category tags
|
|
10
12
|
*/
|
|
11
|
-
export class SchedulerClientInstance extends
|
|
13
|
+
export class SchedulerClientInstance extends ServiceMap.Service()("@effect-aws/client-scheduler/SchedulerClientInstance") {
|
|
12
14
|
}
|
|
13
15
|
/**
|
|
14
16
|
* @since 1.0.0
|
|
@@ -19,5 +21,5 @@ export const make = Effect.flatMap(SchedulerServiceConfig.toSchedulerClientConfi
|
|
|
19
21
|
* @since 1.0.0
|
|
20
22
|
* @category layers
|
|
21
23
|
*/
|
|
22
|
-
export const layer = Layer.
|
|
24
|
+
export const layer = Layer.effect(SchedulerClientInstance, make);
|
|
23
25
|
//# sourceMappingURL=SchedulerClientInstance.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchedulerClientInstance.js","sourceRoot":"","sources":["../../src/SchedulerClientInstance.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,
|
|
1
|
+
{"version":3,"file":"SchedulerClientInstance.js","sourceRoot":"","sources":["../../src/SchedulerClientInstance.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,sBAAsB,MAAM,6BAA6B,CAAC;AAEtE;;;GAGG;AACH,MAAM,OAAO,uBAAwB,SAAQ,UAAU,CAAC,OAAO,EAA4C,CACzG,sDAAsD,CACvD;CAAG;AAEJ;;;GAGG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG,MAAM,CAAC,OAAO,CAChC,sBAAsB,CAAC,uBAAuB,EAC9C,CAAC,MAAM,EAAE,EAAE,CACT,MAAM,CAAC,cAAc,CACnB,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,eAAe,CAAC,MAAM,CAAC,CAAC,EAC9C,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,CAChD,CACJ,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,uBAAuB,EAAE,IAAI,CAAC,CAAC"}
|
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { CreateScheduleCommand, CreateScheduleGroupCommand, DeleteScheduleCommand, DeleteScheduleGroupCommand, GetScheduleCommand, GetScheduleGroupCommand, ListScheduleGroupsCommand, ListSchedulesCommand, ListTagsForResourceCommand, TagResourceCommand, UntagResourceCommand, UpdateScheduleCommand, } from "@aws-sdk/client-scheduler";
|
|
5
5
|
import { Service } from "@effect-aws/commons";
|
|
6
|
-
import
|
|
6
|
+
import * as Effect from "effect/Effect";
|
|
7
|
+
import * as Layer from "effect/Layer";
|
|
8
|
+
import * as ServiceMap from "effect/ServiceMap";
|
|
7
9
|
import { AllServiceErrors } from "./Errors.js";
|
|
8
10
|
import * as Instance from "./SchedulerClientInstance.js";
|
|
9
11
|
import * as SchedulerServiceConfig from "./SchedulerServiceConfig.js";
|
|
@@ -36,7 +38,7 @@ export const makeSchedulerService = Effect.gen(function* () {
|
|
|
36
38
|
* @since 1.0.0
|
|
37
39
|
* @category models
|
|
38
40
|
*/
|
|
39
|
-
export class SchedulerService extends
|
|
41
|
+
export class SchedulerService extends ServiceMap.Service()("@effect-aws/client-scheduler/SchedulerService") {
|
|
40
42
|
static defaultLayer = Layer.effect(this, makeSchedulerService).pipe(Layer.provide(Instance.layer));
|
|
41
43
|
static layer = (config) => Layer.effect(this, makeSchedulerService).pipe(Layer.provide(Instance.layer), Layer.provide(SchedulerServiceConfig.setSchedulerServiceConfig(config)));
|
|
42
44
|
static baseLayer = (evaluate) => Layer.effect(this, makeSchedulerService).pipe(Layer.provide(Layer.effect(Instance.SchedulerClientInstance, Effect.map(SchedulerServiceConfig.toSchedulerClientConfig, evaluate))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchedulerService.js","sourceRoot":"","sources":["../../src/SchedulerService.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EACL,qBAAqB,EAGrB,0BAA0B,EAG1B,qBAAqB,EAGrB,0BAA0B,EAG1B,kBAAkB,EAGlB,uBAAuB,EAGvB,yBAAyB,EAGzB,oBAAoB,EAGpB,0BAA0B,EAK1B,kBAAkB,EAGlB,oBAAoB,EAGpB,qBAAqB,GAGtB,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C,OAAO,
|
|
1
|
+
{"version":3,"file":"SchedulerService.js","sourceRoot":"","sources":["../../src/SchedulerService.ts"],"names":[],"m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,MAAM,CAAU,YAAY,GAAG,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,oBAAoB,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC;IAC5G,MAAM,CAAU,KAAK,GAAG,CAAC,MAA+B,EAAE,EAAE,CAC1D,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,oBAAoB,CAAC,CAAC,IAAI,CAC3C,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,EAC7B,KAAK,CAAC,OAAO,CAAC,sBAAsB,CAAC,yBAAyB,CAAC,MAAM,CAAC,CAAC,CACxE,CAAC;IACJ,MAAM,CAAU,SAAS,GAAG,CAC1B,QAAmE,EACnE,EAAE,CACF,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,oBAAoB,CAAC,CAAC,IAAI,CAC3C,KAAK,CAAC,OAAO,CACX,KAAK,CAAC,MAAM,CACV,QAAQ,CAAC,uBAAuB,EAChC,MAAM,CAAC,GAAG,CAAC,sBAAsB,CAAC,uBAAuB,EAAE,QAAQ,CAAC,CACrE,CACF,CACF,CAAC"}
|
|
@@ -1,28 +1,29 @@
|
|
|
1
1
|
import { ServiceLogger } from "@effect-aws/commons";
|
|
2
|
-
import
|
|
2
|
+
import * as Effect from "effect/Effect";
|
|
3
3
|
import { dual } from "effect/Function";
|
|
4
|
-
import
|
|
4
|
+
import * as Layer from "effect/Layer";
|
|
5
|
+
import * as ServiceMap from "effect/ServiceMap";
|
|
5
6
|
/**
|
|
6
7
|
* @since 1.0.0
|
|
7
8
|
* @category scheduler service config
|
|
8
9
|
*/
|
|
9
|
-
const currentSchedulerServiceConfig =
|
|
10
|
+
const currentSchedulerServiceConfig = ServiceMap.Reference("@effect-aws/client-scheduler/currentSchedulerServiceConfig", { defaultValue: () => ({}) });
|
|
10
11
|
/**
|
|
11
12
|
* @since 1.0.0
|
|
12
13
|
* @category scheduler service config
|
|
13
14
|
*/
|
|
14
|
-
export const withSchedulerServiceConfig = dual(2, (effect, config) => Effect.
|
|
15
|
+
export const withSchedulerServiceConfig = dual(2, (effect, config) => Effect.provideService(effect, currentSchedulerServiceConfig, config));
|
|
15
16
|
/**
|
|
16
17
|
* @since 1.0.0
|
|
17
18
|
* @category scheduler service config
|
|
18
19
|
*/
|
|
19
|
-
export const setSchedulerServiceConfig = (config) => Layer.
|
|
20
|
+
export const setSchedulerServiceConfig = (config) => Layer.succeed(currentSchedulerServiceConfig, config);
|
|
20
21
|
/**
|
|
21
22
|
* @since 1.0.0
|
|
22
23
|
* @category adapters
|
|
23
24
|
*/
|
|
24
25
|
export const toSchedulerClientConfig = Effect.gen(function* () {
|
|
25
|
-
const { logger: serviceLogger, ...config } = yield*
|
|
26
|
+
const { logger: serviceLogger, ...config } = yield* currentSchedulerServiceConfig;
|
|
26
27
|
const logger = serviceLogger === true
|
|
27
28
|
? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger)
|
|
28
29
|
: (serviceLogger ? yield* ServiceLogger.toClientLogger(ServiceLogger.make(serviceLogger)) : undefined);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchedulerServiceConfig.js","sourceRoot":"","sources":["../../src/SchedulerServiceConfig.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,
|
|
1
|
+
{"version":3,"file":"SchedulerServiceConfig.js","sourceRoot":"","sources":["../../src/SchedulerServiceConfig.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAGhD;;;GAGG;AACH,MAAM,6BAA6B,GAAG,UAAU,CAAC,SAAS,CACxD,4DAA4D,EAC5D,EAAE,YAAY,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAC7B,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAGnC,IAAI,CACN,CAAC,EACD,CAAU,MAA8B,EAAE,MAA+B,EAA0B,EAAE,CACnG,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,6BAA6B,EAAE,MAAM,CAAC,CACvE,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,MAA+B,EAAE,EAAE,CAC3E,KAAK,CAAC,OAAO,CAAC,6BAA6B,EAAE,MAAM,CAAC,CAAC;AAEvD;;;GAGG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAyC,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IAC/F,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,GAAG,MAAM,EAAE,GAAG,KAAK,CAAC,CAAC,6BAA6B,CAAC;IAElF,MAAM,MAAM,GAAG,aAAa,KAAK,IAAI;QACnC,CAAC,CAAC,KAAK,CAAC,CAAC,aAAa,CAAC,cAAc,CAAC,aAAa,CAAC,oBAAoB,CAAC;QACzE,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,aAAa,CAAC,cAAc,CAAC,aAAa,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;IAEzG,OAAO,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC;AAC/B,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effect-aws/client-scheduler",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-beta.1",
|
|
4
4
|
"description": "Effectful AWS Scheduler client",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -16,40 +16,34 @@
|
|
|
16
16
|
"homepage": "https://floydspace.github.io/effect-aws/docs/client-scheduler",
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@aws-sdk/client-scheduler": "^3",
|
|
19
|
-
"@effect-aws/commons": "^0.
|
|
19
|
+
"@effect-aws/commons": "^1.0.0-beta.1"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
22
|
-
"effect": ">=
|
|
22
|
+
"effect": ">=4.0.0 <5.0.0"
|
|
23
23
|
},
|
|
24
|
-
"main": "./dist/cjs/index.js",
|
|
25
24
|
"module": "./dist/esm/index.js",
|
|
26
25
|
"types": "./dist/dts/index.d.ts",
|
|
27
26
|
"exports": {
|
|
28
27
|
"./package.json": "./package.json",
|
|
29
28
|
".": {
|
|
30
29
|
"types": "./dist/dts/index.d.ts",
|
|
31
|
-
"import": "./dist/esm/index.js"
|
|
32
|
-
"default": "./dist/cjs/index.js"
|
|
30
|
+
"import": "./dist/esm/index.js"
|
|
33
31
|
},
|
|
34
32
|
"./Errors": {
|
|
35
33
|
"types": "./dist/dts/Errors.d.ts",
|
|
36
|
-
"import": "./dist/esm/Errors.js"
|
|
37
|
-
"default": "./dist/cjs/Errors.js"
|
|
34
|
+
"import": "./dist/esm/Errors.js"
|
|
38
35
|
},
|
|
39
36
|
"./SchedulerClientInstance": {
|
|
40
37
|
"types": "./dist/dts/SchedulerClientInstance.d.ts",
|
|
41
|
-
"import": "./dist/esm/SchedulerClientInstance.js"
|
|
42
|
-
"default": "./dist/cjs/SchedulerClientInstance.js"
|
|
38
|
+
"import": "./dist/esm/SchedulerClientInstance.js"
|
|
43
39
|
},
|
|
44
40
|
"./SchedulerService": {
|
|
45
41
|
"types": "./dist/dts/SchedulerService.d.ts",
|
|
46
|
-
"import": "./dist/esm/SchedulerService.js"
|
|
47
|
-
"default": "./dist/cjs/SchedulerService.js"
|
|
42
|
+
"import": "./dist/esm/SchedulerService.js"
|
|
48
43
|
},
|
|
49
44
|
"./SchedulerServiceConfig": {
|
|
50
45
|
"types": "./dist/dts/SchedulerServiceConfig.d.ts",
|
|
51
|
-
"import": "./dist/esm/SchedulerServiceConfig.js"
|
|
52
|
-
"default": "./dist/cjs/SchedulerServiceConfig.js"
|
|
46
|
+
"import": "./dist/esm/SchedulerServiceConfig.js"
|
|
53
47
|
}
|
|
54
48
|
},
|
|
55
49
|
"typesVersions": {
|
|
@@ -2,16 +2,18 @@
|
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
4
|
import { SchedulerClient } from "@aws-sdk/client-scheduler";
|
|
5
|
-
import
|
|
5
|
+
import * as Effect from "effect/Effect";
|
|
6
|
+
import * as Layer from "effect/Layer";
|
|
7
|
+
import * as ServiceMap from "effect/ServiceMap";
|
|
6
8
|
import * as SchedulerServiceConfig from "./SchedulerServiceConfig.js";
|
|
7
9
|
|
|
8
10
|
/**
|
|
9
11
|
* @since 1.0.0
|
|
10
12
|
* @category tags
|
|
11
13
|
*/
|
|
12
|
-
export class SchedulerClientInstance extends
|
|
14
|
+
export class SchedulerClientInstance extends ServiceMap.Service<SchedulerClientInstance, SchedulerClient>()(
|
|
13
15
|
"@effect-aws/client-scheduler/SchedulerClientInstance",
|
|
14
|
-
)
|
|
16
|
+
) {}
|
|
15
17
|
|
|
16
18
|
/**
|
|
17
19
|
* @since 1.0.0
|
|
@@ -30,4 +32,4 @@ export const make = Effect.flatMap(
|
|
|
30
32
|
* @since 1.0.0
|
|
31
33
|
* @category layers
|
|
32
34
|
*/
|
|
33
|
-
export const layer = Layer.
|
|
35
|
+
export const layer = Layer.effect(SchedulerClientInstance, make);
|
package/src/SchedulerService.ts
CHANGED
|
@@ -43,8 +43,10 @@ import {
|
|
|
43
43
|
} from "@aws-sdk/client-scheduler";
|
|
44
44
|
import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons";
|
|
45
45
|
import { Service } from "@effect-aws/commons";
|
|
46
|
-
import type
|
|
47
|
-
import
|
|
46
|
+
import type * as Cause from "effect/Cause";
|
|
47
|
+
import * as Effect from "effect/Effect";
|
|
48
|
+
import * as Layer from "effect/Layer";
|
|
49
|
+
import * as ServiceMap from "effect/ServiceMap";
|
|
48
50
|
import type {
|
|
49
51
|
ConflictError,
|
|
50
52
|
InternalServerError,
|
|
@@ -84,7 +86,7 @@ interface SchedulerService$ {
|
|
|
84
86
|
options?: HttpHandlerOptions,
|
|
85
87
|
): Effect.Effect<
|
|
86
88
|
CreateScheduleCommandOutput,
|
|
87
|
-
| Cause.
|
|
89
|
+
| Cause.TimeoutError
|
|
88
90
|
| SdkError
|
|
89
91
|
| ConflictError
|
|
90
92
|
| InternalServerError
|
|
@@ -102,7 +104,7 @@ interface SchedulerService$ {
|
|
|
102
104
|
options?: HttpHandlerOptions,
|
|
103
105
|
): Effect.Effect<
|
|
104
106
|
CreateScheduleGroupCommandOutput,
|
|
105
|
-
| Cause.
|
|
107
|
+
| Cause.TimeoutError
|
|
106
108
|
| SdkError
|
|
107
109
|
| ConflictError
|
|
108
110
|
| InternalServerError
|
|
@@ -119,7 +121,7 @@ interface SchedulerService$ {
|
|
|
119
121
|
options?: HttpHandlerOptions,
|
|
120
122
|
): Effect.Effect<
|
|
121
123
|
DeleteScheduleCommandOutput,
|
|
122
|
-
| Cause.
|
|
124
|
+
| Cause.TimeoutError
|
|
123
125
|
| SdkError
|
|
124
126
|
| ConflictError
|
|
125
127
|
| InternalServerError
|
|
@@ -136,7 +138,7 @@ interface SchedulerService$ {
|
|
|
136
138
|
options?: HttpHandlerOptions,
|
|
137
139
|
): Effect.Effect<
|
|
138
140
|
DeleteScheduleGroupCommandOutput,
|
|
139
|
-
| Cause.
|
|
141
|
+
| Cause.TimeoutError
|
|
140
142
|
| SdkError
|
|
141
143
|
| ConflictError
|
|
142
144
|
| InternalServerError
|
|
@@ -153,7 +155,7 @@ interface SchedulerService$ {
|
|
|
153
155
|
options?: HttpHandlerOptions,
|
|
154
156
|
): Effect.Effect<
|
|
155
157
|
GetScheduleCommandOutput,
|
|
156
|
-
Cause.
|
|
158
|
+
Cause.TimeoutError | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError
|
|
157
159
|
>;
|
|
158
160
|
|
|
159
161
|
/**
|
|
@@ -164,7 +166,7 @@ interface SchedulerService$ {
|
|
|
164
166
|
options?: HttpHandlerOptions,
|
|
165
167
|
): Effect.Effect<
|
|
166
168
|
GetScheduleGroupCommandOutput,
|
|
167
|
-
Cause.
|
|
169
|
+
Cause.TimeoutError | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError
|
|
168
170
|
>;
|
|
169
171
|
|
|
170
172
|
/**
|
|
@@ -175,7 +177,7 @@ interface SchedulerService$ {
|
|
|
175
177
|
options?: HttpHandlerOptions,
|
|
176
178
|
): Effect.Effect<
|
|
177
179
|
ListScheduleGroupsCommandOutput,
|
|
178
|
-
Cause.
|
|
180
|
+
Cause.TimeoutError | SdkError | InternalServerError | ThrottlingError | ValidationError
|
|
179
181
|
>;
|
|
180
182
|
|
|
181
183
|
/**
|
|
@@ -186,7 +188,7 @@ interface SchedulerService$ {
|
|
|
186
188
|
options?: HttpHandlerOptions,
|
|
187
189
|
): Effect.Effect<
|
|
188
190
|
ListSchedulesCommandOutput,
|
|
189
|
-
Cause.
|
|
191
|
+
Cause.TimeoutError | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError
|
|
190
192
|
>;
|
|
191
193
|
|
|
192
194
|
/**
|
|
@@ -197,7 +199,7 @@ interface SchedulerService$ {
|
|
|
197
199
|
options?: HttpHandlerOptions,
|
|
198
200
|
): Effect.Effect<
|
|
199
201
|
ListTagsForResourceCommandOutput,
|
|
200
|
-
Cause.
|
|
202
|
+
Cause.TimeoutError | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError
|
|
201
203
|
>;
|
|
202
204
|
|
|
203
205
|
/**
|
|
@@ -208,7 +210,7 @@ interface SchedulerService$ {
|
|
|
208
210
|
options?: HttpHandlerOptions,
|
|
209
211
|
): Effect.Effect<
|
|
210
212
|
TagResourceCommandOutput,
|
|
211
|
-
| Cause.
|
|
213
|
+
| Cause.TimeoutError
|
|
212
214
|
| SdkError
|
|
213
215
|
| ConflictError
|
|
214
216
|
| InternalServerError
|
|
@@ -225,7 +227,7 @@ interface SchedulerService$ {
|
|
|
225
227
|
options?: HttpHandlerOptions,
|
|
226
228
|
): Effect.Effect<
|
|
227
229
|
UntagResourceCommandOutput,
|
|
228
|
-
| Cause.
|
|
230
|
+
| Cause.TimeoutError
|
|
229
231
|
| SdkError
|
|
230
232
|
| ConflictError
|
|
231
233
|
| InternalServerError
|
|
@@ -242,7 +244,7 @@ interface SchedulerService$ {
|
|
|
242
244
|
options?: HttpHandlerOptions,
|
|
243
245
|
): Effect.Effect<
|
|
244
246
|
UpdateScheduleCommandOutput,
|
|
245
|
-
| Cause.
|
|
247
|
+
| Cause.TimeoutError
|
|
246
248
|
| SdkError
|
|
247
249
|
| ConflictError
|
|
248
250
|
| InternalServerError
|
|
@@ -273,10 +275,10 @@ export const makeSchedulerService = Effect.gen(function*() {
|
|
|
273
275
|
* @since 1.0.0
|
|
274
276
|
* @category models
|
|
275
277
|
*/
|
|
276
|
-
export class SchedulerService extends
|
|
278
|
+
export class SchedulerService extends ServiceMap.Service<
|
|
277
279
|
SchedulerService,
|
|
278
280
|
SchedulerService$
|
|
279
|
-
>() {
|
|
281
|
+
>()("@effect-aws/client-scheduler/SchedulerService") {
|
|
280
282
|
static readonly defaultLayer = Layer.effect(this, makeSchedulerService).pipe(Layer.provide(Instance.layer));
|
|
281
283
|
static readonly layer = (config: SchedulerService.Config) =>
|
|
282
284
|
Layer.effect(this, makeSchedulerService).pipe(
|
|
@@ -3,18 +3,19 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import type { SchedulerClientConfig } from "@aws-sdk/client-scheduler";
|
|
5
5
|
import { ServiceLogger } from "@effect-aws/commons";
|
|
6
|
-
import
|
|
6
|
+
import * as Effect from "effect/Effect";
|
|
7
7
|
import { dual } from "effect/Function";
|
|
8
|
-
import
|
|
8
|
+
import * as Layer from "effect/Layer";
|
|
9
|
+
import * as ServiceMap from "effect/ServiceMap";
|
|
9
10
|
import type { SchedulerService } from "./SchedulerService.js";
|
|
10
11
|
|
|
11
12
|
/**
|
|
12
13
|
* @since 1.0.0
|
|
13
14
|
* @category scheduler service config
|
|
14
15
|
*/
|
|
15
|
-
const currentSchedulerServiceConfig =
|
|
16
|
+
const currentSchedulerServiceConfig = ServiceMap.Reference<SchedulerService.Config>(
|
|
16
17
|
"@effect-aws/client-scheduler/currentSchedulerServiceConfig",
|
|
17
|
-
() =>
|
|
18
|
+
{ defaultValue: () => ({}) },
|
|
18
19
|
);
|
|
19
20
|
|
|
20
21
|
/**
|
|
@@ -27,7 +28,7 @@ export const withSchedulerServiceConfig: {
|
|
|
27
28
|
} = dual(
|
|
28
29
|
2,
|
|
29
30
|
<A, E, R>(effect: Effect.Effect<A, E, R>, config: SchedulerService.Config): Effect.Effect<A, E, R> =>
|
|
30
|
-
Effect.
|
|
31
|
+
Effect.provideService(effect, currentSchedulerServiceConfig, config),
|
|
31
32
|
);
|
|
32
33
|
|
|
33
34
|
/**
|
|
@@ -35,14 +36,14 @@ export const withSchedulerServiceConfig: {
|
|
|
35
36
|
* @category scheduler service config
|
|
36
37
|
*/
|
|
37
38
|
export const setSchedulerServiceConfig = (config: SchedulerService.Config) =>
|
|
38
|
-
Layer.
|
|
39
|
+
Layer.succeed(currentSchedulerServiceConfig, config);
|
|
39
40
|
|
|
40
41
|
/**
|
|
41
42
|
* @since 1.0.0
|
|
42
43
|
* @category adapters
|
|
43
44
|
*/
|
|
44
45
|
export const toSchedulerClientConfig: Effect.Effect<SchedulerClientConfig> = Effect.gen(function*() {
|
|
45
|
-
const { logger: serviceLogger, ...config } = yield*
|
|
46
|
+
const { logger: serviceLogger, ...config } = yield* currentSchedulerServiceConfig;
|
|
46
47
|
|
|
47
48
|
const logger = serviceLogger === true
|
|
48
49
|
? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger)
|
package/dist/cjs/Errors.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException } from "@aws-sdk/client-scheduler";
|
|
2
|
-
import type { TaggedException } from "@effect-aws/commons";
|
|
3
|
-
export declare const AllServiceErrors: readonly ["ConflictException", "InternalServerException", "ResourceNotFoundException", "ServiceQuotaExceededException", "ThrottlingException", "ValidationException"];
|
|
4
|
-
export type ConflictError = TaggedException<ConflictException>;
|
|
5
|
-
export type InternalServerError = TaggedException<InternalServerException>;
|
|
6
|
-
export type ResourceNotFoundError = TaggedException<ResourceNotFoundException>;
|
|
7
|
-
export type ServiceQuotaExceededError = TaggedException<ServiceQuotaExceededException>;
|
|
8
|
-
export type ThrottlingError = TaggedException<ThrottlingException>;
|
|
9
|
-
export type ValidationError = TaggedException<ValidationException>;
|
|
10
|
-
export type SdkError = TaggedException<Error & {
|
|
11
|
-
name: "SdkError";
|
|
12
|
-
}>;
|
|
13
|
-
//# sourceMappingURL=Errors.d.ts.map
|
package/dist/cjs/Errors.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Errors.d.ts","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,uBAAuB,EACvB,yBAAyB,EACzB,6BAA6B,EAC7B,mBAAmB,EACnB,mBAAmB,EACpB,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE3D,eAAO,MAAM,gBAAgB,uKAOnB,CAAC;AAEX,MAAM,MAAM,aAAa,GAAG,eAAe,CAAC,iBAAiB,CAAC,CAAC;AAC/D,MAAM,MAAM,mBAAmB,GAAG,eAAe,CAAC,uBAAuB,CAAC,CAAC;AAC3E,MAAM,MAAM,qBAAqB,GAAG,eAAe,CAAC,yBAAyB,CAAC,CAAC;AAC/E,MAAM,MAAM,yBAAyB,GAAG,eAAe,CAAC,6BAA6B,CAAC,CAAC;AACvF,MAAM,MAAM,eAAe,GAAG,eAAe,CAAC,mBAAmB,CAAC,CAAC;AACnE,MAAM,MAAM,eAAe,GAAG,eAAe,CAAC,mBAAmB,CAAC,CAAC;AACnE,MAAM,MAAM,QAAQ,GAAG,eAAe,CAAC,KAAK,GAAG;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,CAAC,CAAC"}
|
package/dist/cjs/Errors.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AllServiceErrors = void 0;
|
|
4
|
-
exports.AllServiceErrors = [
|
|
5
|
-
"ConflictException",
|
|
6
|
-
"InternalServerException",
|
|
7
|
-
"ResourceNotFoundException",
|
|
8
|
-
"ServiceQuotaExceededException",
|
|
9
|
-
"ThrottlingException",
|
|
10
|
-
"ValidationException",
|
|
11
|
-
];
|
|
12
|
-
//# sourceMappingURL=Errors.js.map
|
package/dist/cjs/Errors.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Errors.js","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":";;;AAUa,QAAA,gBAAgB,GAAG;IAC9B,mBAAmB;IACnB,yBAAyB;IACzB,2BAA2B;IAC3B,+BAA+B;IAC/B,qBAAqB;IACrB,qBAAqB;CACb,CAAC"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @since 1.0.0
|
|
3
|
-
*/
|
|
4
|
-
import { SchedulerClient } from "@aws-sdk/client-scheduler";
|
|
5
|
-
import { Context, Effect, Layer } from "effect";
|
|
6
|
-
declare const SchedulerClientInstance_base: Context.TagClass<SchedulerClientInstance, "@effect-aws/client-scheduler/SchedulerClientInstance", SchedulerClient>;
|
|
7
|
-
/**
|
|
8
|
-
* @since 1.0.0
|
|
9
|
-
* @category tags
|
|
10
|
-
*/
|
|
11
|
-
export declare class SchedulerClientInstance extends SchedulerClientInstance_base {
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* @since 1.0.0
|
|
15
|
-
* @category constructors
|
|
16
|
-
*/
|
|
17
|
-
export declare const make: Effect.Effect<SchedulerClient, never, import("effect/Scope").Scope>;
|
|
18
|
-
/**
|
|
19
|
-
* @since 1.0.0
|
|
20
|
-
* @category layers
|
|
21
|
-
*/
|
|
22
|
-
export declare const layer: Layer.Layer<SchedulerClientInstance, never, never>;
|
|
23
|
-
export {};
|
|
24
|
-
//# sourceMappingURL=SchedulerClientInstance.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SchedulerClientInstance.d.ts","sourceRoot":"","sources":["../../src/SchedulerClientInstance.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;;AAGhD;;;GAGG;AACH,qBAAa,uBAAwB,SAAQ,4BAEA;CAAG;AAEhD;;;GAGG;AACH,eAAO,MAAM,IAAI,qEAOhB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,KAAK,oDAA8C,CAAC"}
|
|
@@ -1,50 +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.layer = exports.make = exports.SchedulerClientInstance = void 0;
|
|
27
|
-
/**
|
|
28
|
-
* @since 1.0.0
|
|
29
|
-
*/
|
|
30
|
-
const client_scheduler_1 = require("@aws-sdk/client-scheduler");
|
|
31
|
-
const effect_1 = require("effect");
|
|
32
|
-
const SchedulerServiceConfig = __importStar(require("./SchedulerServiceConfig.js"));
|
|
33
|
-
/**
|
|
34
|
-
* @since 1.0.0
|
|
35
|
-
* @category tags
|
|
36
|
-
*/
|
|
37
|
-
class SchedulerClientInstance extends effect_1.Context.Tag("@effect-aws/client-scheduler/SchedulerClientInstance")() {
|
|
38
|
-
}
|
|
39
|
-
exports.SchedulerClientInstance = SchedulerClientInstance;
|
|
40
|
-
/**
|
|
41
|
-
* @since 1.0.0
|
|
42
|
-
* @category constructors
|
|
43
|
-
*/
|
|
44
|
-
exports.make = effect_1.Effect.flatMap(SchedulerServiceConfig.toSchedulerClientConfig, (config) => effect_1.Effect.acquireRelease(effect_1.Effect.sync(() => new client_scheduler_1.SchedulerClient(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(SchedulerClientInstance, exports.make);
|
|
50
|
-
//# sourceMappingURL=SchedulerClientInstance.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SchedulerClientInstance.js","sourceRoot":"","sources":["../../src/SchedulerClientInstance.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,gEAA4D;AAC5D,mCAAgD;AAChD,oFAAsE;AAEtE;;;GAGG;AACH,MAAa,uBAAwB,SAAQ,gBAAO,CAAC,GAAG,CACtD,sDAAsD,CACvD,EAA4C;CAAG;AAFhD,0DAEgD;AAEhD;;;GAGG;AACU,QAAA,IAAI,GAAG,eAAM,CAAC,OAAO,CAChC,sBAAsB,CAAC,uBAAuB,EAC9C,CAAC,MAAM,EAAE,EAAE,CACT,eAAM,CAAC,cAAc,CACnB,eAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,kCAAe,CAAC,MAAM,CAAC,CAAC,EAC9C,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,uBAAuB,EAAE,YAAI,CAAC,CAAC"}
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @since 1.0.0
|
|
3
|
-
*/
|
|
4
|
-
import { type CreateScheduleCommandInput, type CreateScheduleCommandOutput, type CreateScheduleGroupCommandInput, type CreateScheduleGroupCommandOutput, type DeleteScheduleCommandInput, type DeleteScheduleCommandOutput, type DeleteScheduleGroupCommandInput, type DeleteScheduleGroupCommandOutput, type GetScheduleCommandInput, type GetScheduleCommandOutput, type GetScheduleGroupCommandInput, type GetScheduleGroupCommandOutput, type ListScheduleGroupsCommandInput, type ListScheduleGroupsCommandOutput, type ListSchedulesCommandInput, type ListSchedulesCommandOutput, type ListTagsForResourceCommandInput, type ListTagsForResourceCommandOutput, type SchedulerClient, type SchedulerClientConfig, type TagResourceCommandInput, type TagResourceCommandOutput, type UntagResourceCommandInput, type UntagResourceCommandOutput, type UpdateScheduleCommandInput, type UpdateScheduleCommandOutput } from "@aws-sdk/client-scheduler";
|
|
5
|
-
import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons";
|
|
6
|
-
import type { Cause } from "effect";
|
|
7
|
-
import { Effect, Layer } from "effect";
|
|
8
|
-
import type { ConflictError, InternalServerError, ResourceNotFoundError, SdkError, ServiceQuotaExceededError, ThrottlingError, ValidationError } from "./Errors.js";
|
|
9
|
-
import * as Instance from "./SchedulerClientInstance.js";
|
|
10
|
-
interface SchedulerService$ {
|
|
11
|
-
readonly _: unique symbol;
|
|
12
|
-
/**
|
|
13
|
-
* @see {@link CreateScheduleCommand}
|
|
14
|
-
*/
|
|
15
|
-
createSchedule(args: CreateScheduleCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateScheduleCommandOutput, Cause.TimeoutException | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ServiceQuotaExceededError | ThrottlingError | ValidationError>;
|
|
16
|
-
/**
|
|
17
|
-
* @see {@link CreateScheduleGroupCommand}
|
|
18
|
-
*/
|
|
19
|
-
createScheduleGroup(args: CreateScheduleGroupCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateScheduleGroupCommandOutput, Cause.TimeoutException | SdkError | ConflictError | InternalServerError | ServiceQuotaExceededError | ThrottlingError | ValidationError>;
|
|
20
|
-
/**
|
|
21
|
-
* @see {@link DeleteScheduleCommand}
|
|
22
|
-
*/
|
|
23
|
-
deleteSchedule(args: DeleteScheduleCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteScheduleCommandOutput, Cause.TimeoutException | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
24
|
-
/**
|
|
25
|
-
* @see {@link DeleteScheduleGroupCommand}
|
|
26
|
-
*/
|
|
27
|
-
deleteScheduleGroup(args: DeleteScheduleGroupCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteScheduleGroupCommandOutput, Cause.TimeoutException | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
28
|
-
/**
|
|
29
|
-
* @see {@link GetScheduleCommand}
|
|
30
|
-
*/
|
|
31
|
-
getSchedule(args: GetScheduleCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetScheduleCommandOutput, Cause.TimeoutException | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
32
|
-
/**
|
|
33
|
-
* @see {@link GetScheduleGroupCommand}
|
|
34
|
-
*/
|
|
35
|
-
getScheduleGroup(args: GetScheduleGroupCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetScheduleGroupCommandOutput, Cause.TimeoutException | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
36
|
-
/**
|
|
37
|
-
* @see {@link ListScheduleGroupsCommand}
|
|
38
|
-
*/
|
|
39
|
-
listScheduleGroups(args: ListScheduleGroupsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListScheduleGroupsCommandOutput, Cause.TimeoutException | SdkError | InternalServerError | ThrottlingError | ValidationError>;
|
|
40
|
-
/**
|
|
41
|
-
* @see {@link ListSchedulesCommand}
|
|
42
|
-
*/
|
|
43
|
-
listSchedules(args: ListSchedulesCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListSchedulesCommandOutput, Cause.TimeoutException | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
44
|
-
/**
|
|
45
|
-
* @see {@link ListTagsForResourceCommand}
|
|
46
|
-
*/
|
|
47
|
-
listTagsForResource(args: ListTagsForResourceCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListTagsForResourceCommandOutput, Cause.TimeoutException | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
48
|
-
/**
|
|
49
|
-
* @see {@link TagResourceCommand}
|
|
50
|
-
*/
|
|
51
|
-
tagResource(args: TagResourceCommandInput, options?: HttpHandlerOptions): Effect.Effect<TagResourceCommandOutput, Cause.TimeoutException | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
52
|
-
/**
|
|
53
|
-
* @see {@link UntagResourceCommand}
|
|
54
|
-
*/
|
|
55
|
-
untagResource(args: UntagResourceCommandInput, options?: HttpHandlerOptions): Effect.Effect<UntagResourceCommandOutput, Cause.TimeoutException | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
56
|
-
/**
|
|
57
|
-
* @see {@link UpdateScheduleCommand}
|
|
58
|
-
*/
|
|
59
|
-
updateSchedule(args: UpdateScheduleCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateScheduleCommandOutput, Cause.TimeoutException | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* @since 1.0.0
|
|
63
|
-
* @category constructors
|
|
64
|
-
*/
|
|
65
|
-
export declare const makeSchedulerService: Effect.Effect<SchedulerService$, never, Instance.SchedulerClientInstance>;
|
|
66
|
-
declare const SchedulerService_base: import("effect/Context").TagClass<SchedulerService, "@effect-aws/client-scheduler/SchedulerService", SchedulerService$> & Effect.Tag.Proxy<SchedulerService, SchedulerService$> & {
|
|
67
|
-
use: <X>(body: (_: SchedulerService$) => X) => [X] extends [Effect.Effect<infer A, infer E, infer R>] ? Effect.Effect<A, E, SchedulerService | R> : [X] extends [PromiseLike<infer A_1>] ? Effect.Effect<A_1, Cause.UnknownException, SchedulerService> : Effect.Effect<X, never, SchedulerService>;
|
|
68
|
-
};
|
|
69
|
-
/**
|
|
70
|
-
* @since 1.0.0
|
|
71
|
-
* @category models
|
|
72
|
-
*/
|
|
73
|
-
export declare class SchedulerService extends SchedulerService_base {
|
|
74
|
-
static readonly defaultLayer: Layer.Layer<SchedulerService, never, never>;
|
|
75
|
-
static readonly layer: (config: SchedulerService.Config) => Layer.Layer<SchedulerService, never, never>;
|
|
76
|
-
static readonly baseLayer: (evaluate: (defaultConfig: SchedulerClientConfig) => SchedulerClient) => Layer.Layer<SchedulerService, never, never>;
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* @since 1.0.0
|
|
80
|
-
*/
|
|
81
|
-
export declare namespace SchedulerService {
|
|
82
|
-
/**
|
|
83
|
-
* @since 1.0.0
|
|
84
|
-
*/
|
|
85
|
-
interface Config extends Omit<SchedulerClientConfig, "logger"> {
|
|
86
|
-
readonly logger?: ServiceLogger.ServiceLoggerConstructorProps | true;
|
|
87
|
-
}
|
|
88
|
-
/**
|
|
89
|
-
* @since 1.0.0
|
|
90
|
-
*/
|
|
91
|
-
type Type = SchedulerService$;
|
|
92
|
-
}
|
|
93
|
-
export {};
|
|
94
|
-
//# sourceMappingURL=SchedulerService.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SchedulerService.d.ts","sourceRoot":"","sources":["../../src/SchedulerService.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAEL,KAAK,0BAA0B,EAC/B,KAAK,2BAA2B,EAEhC,KAAK,+BAA+B,EACpC,KAAK,gCAAgC,EAErC,KAAK,0BAA0B,EAC/B,KAAK,2BAA2B,EAEhC,KAAK,+BAA+B,EACpC,KAAK,gCAAgC,EAErC,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAE7B,KAAK,4BAA4B,EACjC,KAAK,6BAA6B,EAElC,KAAK,8BAA8B,EACnC,KAAK,+BAA+B,EAEpC,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,EAE/B,KAAK,+BAA+B,EACpC,KAAK,gCAAgC,EACrC,KAAK,eAAe,EACpB,KAAK,q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,iDASjE;CACL;AAED;;GAEG;AACH,MAAM,CAAC,OAAO,WAAW,gBAAgB,CAAC;IACxC;;OAEG;IACH,UAAiB,MAAO,SAAQ,IAAI,CAAC,qBAAqB,EAAE,QAAQ,CAAC;QACnE,QAAQ,CAAC,MAAM,CAAC,EAAE,aAAa,CAAC,6BAA6B,GAAG,IAAI,CAAC;KACtE;IAED;;OAEG;IACH,KAAY,IAAI,GAAG,iBAAiB,CAAC;CACtC"}
|
|
@@ -1,71 +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.SchedulerService = exports.makeSchedulerService = void 0;
|
|
27
|
-
/**
|
|
28
|
-
* @since 1.0.0
|
|
29
|
-
*/
|
|
30
|
-
const client_scheduler_1 = require("@aws-sdk/client-scheduler");
|
|
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("./SchedulerClientInstance.js"));
|
|
35
|
-
const SchedulerServiceConfig = __importStar(require("./SchedulerServiceConfig.js"));
|
|
36
|
-
const commands = {
|
|
37
|
-
CreateScheduleCommand: client_scheduler_1.CreateScheduleCommand,
|
|
38
|
-
CreateScheduleGroupCommand: client_scheduler_1.CreateScheduleGroupCommand,
|
|
39
|
-
DeleteScheduleCommand: client_scheduler_1.DeleteScheduleCommand,
|
|
40
|
-
DeleteScheduleGroupCommand: client_scheduler_1.DeleteScheduleGroupCommand,
|
|
41
|
-
GetScheduleCommand: client_scheduler_1.GetScheduleCommand,
|
|
42
|
-
GetScheduleGroupCommand: client_scheduler_1.GetScheduleGroupCommand,
|
|
43
|
-
ListScheduleGroupsCommand: client_scheduler_1.ListScheduleGroupsCommand,
|
|
44
|
-
ListSchedulesCommand: client_scheduler_1.ListSchedulesCommand,
|
|
45
|
-
ListTagsForResourceCommand: client_scheduler_1.ListTagsForResourceCommand,
|
|
46
|
-
TagResourceCommand: client_scheduler_1.TagResourceCommand,
|
|
47
|
-
UntagResourceCommand: client_scheduler_1.UntagResourceCommand,
|
|
48
|
-
UpdateScheduleCommand: client_scheduler_1.UpdateScheduleCommand,
|
|
49
|
-
};
|
|
50
|
-
/**
|
|
51
|
-
* @since 1.0.0
|
|
52
|
-
* @category constructors
|
|
53
|
-
*/
|
|
54
|
-
exports.makeSchedulerService = effect_1.Effect.gen(function* () {
|
|
55
|
-
const client = yield* Instance.SchedulerClientInstance;
|
|
56
|
-
return yield* commons_1.Service.fromClientAndCommands(client, commands, {
|
|
57
|
-
errorTags: Errors_js_1.AllServiceErrors,
|
|
58
|
-
resolveClientConfig: SchedulerServiceConfig.toSchedulerClientConfig,
|
|
59
|
-
});
|
|
60
|
-
});
|
|
61
|
-
/**
|
|
62
|
-
* @since 1.0.0
|
|
63
|
-
* @category models
|
|
64
|
-
*/
|
|
65
|
-
class SchedulerService extends effect_1.Effect.Tag("@effect-aws/client-scheduler/SchedulerService")() {
|
|
66
|
-
static defaultLayer = effect_1.Layer.effect(this, exports.makeSchedulerService).pipe(effect_1.Layer.provide(Instance.layer));
|
|
67
|
-
static layer = (config) => effect_1.Layer.effect(this, exports.makeSchedulerService).pipe(effect_1.Layer.provide(Instance.layer), effect_1.Layer.provide(SchedulerServiceConfig.setSchedulerServiceConfig(config)));
|
|
68
|
-
static baseLayer = (evaluate) => effect_1.Layer.effect(this, exports.makeSchedulerService).pipe(effect_1.Layer.provide(effect_1.Layer.effect(Instance.SchedulerClientInstance, effect_1.Effect.map(SchedulerServiceConfig.toSchedulerClientConfig, evaluate))));
|
|
69
|
-
}
|
|
70
|
-
exports.SchedulerService = SchedulerService;
|
|
71
|
-
//# sourceMappingURL=SchedulerService.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SchedulerService.js","sourceRoot":"","sources":["../../src/SchedulerService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,gEAuCmC;AAEnC,iDAA8C;AAE9C,mCAAuC;AAUvC,2CAA+C;AAC/C,uEAAyD;AACzD,oFAAsE;AAEtE,MAAM,QAAQ,GAAG;IACf,qBAAqB,EAArB,wCAAqB;IACrB,0BAA0B,EAA1B,6CAA0B;IAC1B,qBAAqB,EAArB,wCAAqB;IACrB,0BAA0B,EAA1B,6CAA0B;IAC1B,kBAAkB,EAAlB,qCAAkB;IAClB,uBAAuB,EAAvB,0CAAuB;IACvB,yBAAyB,EAAzB,4CAAyB;IACzB,oBAAoB,EAApB,uCAAoB;IACpB,0BAA0B,EAA1B,6CAA0B;IAC1B,kBAAkB,EAAlB,qCAAkB;IAClB,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
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @since 1.0.0
|
|
3
|
-
*/
|
|
4
|
-
import type { SchedulerClientConfig } from "@aws-sdk/client-scheduler";
|
|
5
|
-
import { Effect, Layer } from "effect";
|
|
6
|
-
import type { SchedulerService } from "./SchedulerService.js";
|
|
7
|
-
/**
|
|
8
|
-
* @since 1.0.0
|
|
9
|
-
* @category scheduler service config
|
|
10
|
-
*/
|
|
11
|
-
export declare const withSchedulerServiceConfig: {
|
|
12
|
-
(config: SchedulerService.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: SchedulerService.Config): Effect.Effect<A, E, R>;
|
|
14
|
-
};
|
|
15
|
-
/**
|
|
16
|
-
* @since 1.0.0
|
|
17
|
-
* @category scheduler service config
|
|
18
|
-
*/
|
|
19
|
-
export declare const setSchedulerServiceConfig: (config: SchedulerService.Config) => Layer.Layer<never, never, never>;
|
|
20
|
-
/**
|
|
21
|
-
* @since 1.0.0
|
|
22
|
-
* @category adapters
|
|
23
|
-
*/
|
|
24
|
-
export declare const toSchedulerClientConfig: Effect.Effect<SchedulerClientConfig>;
|
|
25
|
-
//# sourceMappingURL=SchedulerServiceConfig.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SchedulerServiceConfig.d.ts","sourceRoot":"","sources":["../../src/SchedulerServiceConfig.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAEvE,OAAO,EAAE,MAAM,EAAY,KAAK,EAAE,MAAM,QAAQ,CAAC;AAGjD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAW9D;;;GAGG;AACH,eAAO,MAAM,0BAA0B,EAAE;IACvC,CAAC,MAAM,EAAE,gBAAgB,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;IACvG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,gBAAgB,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;CAKpG,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,yBAAyB,WAAY,iBAAiB,MAAM,qCACb,CAAC;AAE7D;;;GAGG;AACH,eAAO,MAAM,uBAAuB,EAAE,MAAM,CAAC,MAAM,CAAC,qBAAqB,CAQvE,CAAC"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.toSchedulerClientConfig = exports.setSchedulerServiceConfig = exports.withSchedulerServiceConfig = 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 scheduler service config
|
|
11
|
-
*/
|
|
12
|
-
const currentSchedulerServiceConfig = (0, GlobalValue_1.globalValue)("@effect-aws/client-scheduler/currentSchedulerServiceConfig", () => effect_1.FiberRef.unsafeMake({}));
|
|
13
|
-
/**
|
|
14
|
-
* @since 1.0.0
|
|
15
|
-
* @category scheduler service config
|
|
16
|
-
*/
|
|
17
|
-
exports.withSchedulerServiceConfig = (0, Function_1.dual)(2, (effect, config) => effect_1.Effect.locally(effect, currentSchedulerServiceConfig, config));
|
|
18
|
-
/**
|
|
19
|
-
* @since 1.0.0
|
|
20
|
-
* @category scheduler service config
|
|
21
|
-
*/
|
|
22
|
-
const setSchedulerServiceConfig = (config) => effect_1.Layer.locallyScoped(currentSchedulerServiceConfig, config);
|
|
23
|
-
exports.setSchedulerServiceConfig = setSchedulerServiceConfig;
|
|
24
|
-
/**
|
|
25
|
-
* @since 1.0.0
|
|
26
|
-
* @category adapters
|
|
27
|
-
*/
|
|
28
|
-
exports.toSchedulerClientConfig = effect_1.Effect.gen(function* () {
|
|
29
|
-
const { logger: serviceLogger, ...config } = yield* effect_1.FiberRef.get(currentSchedulerServiceConfig);
|
|
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=SchedulerServiceConfig.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SchedulerServiceConfig.js","sourceRoot":"","sources":["../../src/SchedulerServiceConfig.ts"],"names":[],"mappings":";;;AAIA,iDAAoD;AACpD,mCAAiD;AACjD,8CAAuC;AACvC,oDAAiD;AAGjD;;;GAGG;AACH,MAAM,6BAA6B,GAAG,IAAA,yBAAW,EAC/C,4DAA4D,EAC5D,GAAG,EAAE,CAAC,iBAAQ,CAAC,UAAU,CAA0B,EAAE,CAAC,CACvD,CAAC;AAEF;;;GAGG;AACU,QAAA,0BAA0B,GAGnC,IAAA,eAAI,EACN,CAAC,EACD,CAAU,MAA8B,EAAE,MAA+B,EAA0B,EAAE,CACnG,eAAM,CAAC,OAAO,CAAC,MAAM,EAAE,6BAA6B,EAAE,MAAM,CAAC,CAChE,CAAC;AAEF;;;GAGG;AACI,MAAM,yBAAyB,GAAG,CAAC,MAA+B,EAAE,EAAE,CAC3E,cAAK,CAAC,aAAa,CAAC,6BAA6B,EAAE,MAAM,CAAC,CAAC;AADhD,QAAA,yBAAyB,6BACuB;AAE7D;;;GAGG;AACU,QAAA,uBAAuB,GAAyC,eAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IAC/F,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,GAAG,MAAM,EAAE,GAAG,KAAK,CAAC,CAAC,iBAAQ,CAAC,GAAG,CAAC,6BAA6B,CAAC,CAAC;IAEhG,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 { SchedulerService } from "./SchedulerService.js";
|
|
5
|
-
/**
|
|
6
|
-
* @since 1.0.0
|
|
7
|
-
*/
|
|
8
|
-
export * from "./Errors.js";
|
|
9
|
-
/**
|
|
10
|
-
* @since 1.0.0
|
|
11
|
-
*/
|
|
12
|
-
export * as SchedulerClientInstance from "./SchedulerClientInstance.js";
|
|
13
|
-
/**
|
|
14
|
-
* @since 1.0.0
|
|
15
|
-
*/
|
|
16
|
-
export * as SchedulerServiceConfig from "./SchedulerServiceConfig.js";
|
|
17
|
-
/**
|
|
18
|
-
* @since 1.0.0
|
|
19
|
-
*/
|
|
20
|
-
export * from "./SchedulerService.js";
|
|
21
|
-
/**
|
|
22
|
-
* @since 1.0.0
|
|
23
|
-
* @category exports
|
|
24
|
-
* @alias SchedulerService
|
|
25
|
-
*/
|
|
26
|
-
export declare namespace Scheduler {
|
|
27
|
-
/**
|
|
28
|
-
* @since 1.0.0
|
|
29
|
-
* @alias SchedulerService.Config
|
|
30
|
-
*/
|
|
31
|
-
type Config = SchedulerService.Config;
|
|
32
|
-
/**
|
|
33
|
-
* @since 1.0.0
|
|
34
|
-
* @alias SchedulerService.Type
|
|
35
|
-
*/
|
|
36
|
-
type Type = SchedulerService.Type;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* @since 1.0.0
|
|
40
|
-
* @category exports
|
|
41
|
-
* @alias SchedulerService
|
|
42
|
-
*/
|
|
43
|
-
export declare const Scheduler: typeof SchedulerService;
|
|
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,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD;;GAEG;AACH,cAAc,aAAa,CAAC;AAE5B;;GAEG;AACH,OAAO,KAAK,uBAAuB,MAAM,8BAA8B,CAAC;AAExE;;GAEG;AACH,OAAO,KAAK,sBAAsB,MAAM,6BAA6B,CAAC;AAEtE;;GAEG;AACH,cAAc,uBAAuB,CAAC;AAEtC;;;;GAIG;AACH,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC;;;OAGG;IACH,KAAY,MAAM,GAAG,gBAAgB,CAAC,MAAM,CAAC;IAE7C;;;OAGG;IACH,KAAY,IAAI,GAAG,gBAAgB,CAAC,IAAI,CAAC;CAC1C;AAED;;;;GAIG;AACH,eAAO,MAAM,SAAS,yBAAmB,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.Scheduler = exports.SchedulerServiceConfig = exports.SchedulerClientInstance = void 0;
|
|
30
|
-
/**
|
|
31
|
-
* @since 1.0.0
|
|
32
|
-
*/
|
|
33
|
-
const SchedulerService_js_1 = require("./SchedulerService.js");
|
|
34
|
-
/**
|
|
35
|
-
* @since 1.0.0
|
|
36
|
-
*/
|
|
37
|
-
__exportStar(require("./Errors.js"), exports);
|
|
38
|
-
/**
|
|
39
|
-
* @since 1.0.0
|
|
40
|
-
*/
|
|
41
|
-
exports.SchedulerClientInstance = __importStar(require("./SchedulerClientInstance.js"));
|
|
42
|
-
/**
|
|
43
|
-
* @since 1.0.0
|
|
44
|
-
*/
|
|
45
|
-
exports.SchedulerServiceConfig = __importStar(require("./SchedulerServiceConfig.js"));
|
|
46
|
-
/**
|
|
47
|
-
* @since 1.0.0
|
|
48
|
-
*/
|
|
49
|
-
__exportStar(require("./SchedulerService.js"), exports);
|
|
50
|
-
/**
|
|
51
|
-
* @since 1.0.0
|
|
52
|
-
* @category exports
|
|
53
|
-
* @alias SchedulerService
|
|
54
|
-
*/
|
|
55
|
-
exports.Scheduler = SchedulerService_js_1.SchedulerService;
|
|
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,+DAAyD;AAEzD;;GAEG;AACH,8CAA4B;AAE5B;;GAEG;AACH,wFAAwE;AAExE;;GAEG;AACH,sFAAsE;AAEtE;;GAEG;AACH,wDAAsC;AAqBtC;;;;GAIG;AACU,QAAA,SAAS,GAAG,sCAAgB,CAAC"}
|