@effect-aws/client-scheduler 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.
Files changed (37) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +3 -3
  3. package/dist/dts/SchedulerClientInstance.d.ts +2 -2
  4. package/dist/dts/SchedulerClientInstance.d.ts.map +1 -1
  5. package/dist/dts/SchedulerService.d.ts +14 -16
  6. package/dist/dts/SchedulerService.d.ts.map +1 -1
  7. package/dist/dts/SchedulerServiceConfig.d.ts.map +1 -1
  8. package/dist/esm/SchedulerClientInstance.js +3 -3
  9. package/dist/esm/SchedulerClientInstance.js.map +1 -1
  10. package/dist/esm/SchedulerService.js +2 -2
  11. package/dist/esm/SchedulerService.js.map +1 -1
  12. package/dist/esm/SchedulerServiceConfig.js +5 -6
  13. package/dist/esm/SchedulerServiceConfig.js.map +1 -1
  14. package/package.json +8 -14
  15. package/src/SchedulerClientInstance.ts +4 -4
  16. package/src/SchedulerService.ts +15 -15
  17. package/src/SchedulerServiceConfig.ts +6 -7
  18. package/dist/cjs/Errors.d.ts +0 -13
  19. package/dist/cjs/Errors.d.ts.map +0 -1
  20. package/dist/cjs/Errors.js +0 -12
  21. package/dist/cjs/Errors.js.map +0 -1
  22. package/dist/cjs/SchedulerClientInstance.d.ts +0 -24
  23. package/dist/cjs/SchedulerClientInstance.d.ts.map +0 -1
  24. package/dist/cjs/SchedulerClientInstance.js +0 -50
  25. package/dist/cjs/SchedulerClientInstance.js.map +0 -1
  26. package/dist/cjs/SchedulerService.d.ts +0 -94
  27. package/dist/cjs/SchedulerService.d.ts.map +0 -1
  28. package/dist/cjs/SchedulerService.js +0 -71
  29. package/dist/cjs/SchedulerService.js.map +0 -1
  30. package/dist/cjs/SchedulerServiceConfig.d.ts +0 -25
  31. package/dist/cjs/SchedulerServiceConfig.d.ts.map +0 -1
  32. package/dist/cjs/SchedulerServiceConfig.js +0 -35
  33. package/dist/cjs/SchedulerServiceConfig.js.map +0 -1
  34. package/dist/cjs/index.d.ts +0 -44
  35. package/dist/cjs/index.d.ts.map +0 -1
  36. package/dist/cjs/index.js +0 -56
  37. package/dist/cjs/index.js.map +0 -1
package/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2025 Victor Korzunin
1
+ Copyright (c) 2026 Victor Korzunin
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  of this software and associated documentation files (the "Software"), to deal
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,8 @@
2
2
  * @since 1.0.0
3
3
  */
4
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>;
5
+ import { Effect, Layer, ServiceMap } from "effect";
6
+ declare const SchedulerClientInstance_base: ServiceMap.ServiceClass<SchedulerClientInstance, "@effect-aws/client-scheduler/SchedulerClientInstance", SchedulerClient>;
7
7
  /**
8
8
  * @since 1.0.0
9
9
  * @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,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
+ {"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,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;;AAGnD;;;GAGG;AACH,qBAAa,uBAAwB,SAAQ,4BAE5C;CAAG;AAEJ;;;GAGG;AACH,eAAO,MAAM,IAAI,qEAOhB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,KAAK,oDAA8C,CAAC"}
@@ -4,7 +4,7 @@
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
6
  import type { Cause } from "effect";
7
- import { Effect, Layer } from "effect";
7
+ import { Effect, Layer, ServiceMap } from "effect";
8
8
  import type { ConflictError, InternalServerError, ResourceNotFoundError, SdkError, ServiceQuotaExceededError, ThrottlingError, ValidationError } from "./Errors.js";
9
9
  import * as Instance from "./SchedulerClientInstance.js";
10
10
  interface SchedulerService$ {
@@ -12,60 +12,58 @@ interface SchedulerService$ {
12
12
  /**
13
13
  * @see {@link CreateScheduleCommand}
14
14
  */
15
- createSchedule(args: CreateScheduleCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateScheduleCommandOutput, Cause.TimeoutException | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ServiceQuotaExceededError | ThrottlingError | ValidationError>;
15
+ createSchedule(args: CreateScheduleCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateScheduleCommandOutput, Cause.TimeoutError | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ServiceQuotaExceededError | ThrottlingError | ValidationError>;
16
16
  /**
17
17
  * @see {@link CreateScheduleGroupCommand}
18
18
  */
19
- createScheduleGroup(args: CreateScheduleGroupCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateScheduleGroupCommandOutput, Cause.TimeoutException | SdkError | ConflictError | InternalServerError | ServiceQuotaExceededError | ThrottlingError | ValidationError>;
19
+ createScheduleGroup(args: CreateScheduleGroupCommandInput, options?: HttpHandlerOptions): Effect.Effect<CreateScheduleGroupCommandOutput, Cause.TimeoutError | SdkError | ConflictError | InternalServerError | ServiceQuotaExceededError | ThrottlingError | ValidationError>;
20
20
  /**
21
21
  * @see {@link DeleteScheduleCommand}
22
22
  */
23
- deleteSchedule(args: DeleteScheduleCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteScheduleCommandOutput, Cause.TimeoutException | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
23
+ deleteSchedule(args: DeleteScheduleCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteScheduleCommandOutput, Cause.TimeoutError | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
24
24
  /**
25
25
  * @see {@link DeleteScheduleGroupCommand}
26
26
  */
27
- deleteScheduleGroup(args: DeleteScheduleGroupCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteScheduleGroupCommandOutput, Cause.TimeoutException | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
27
+ deleteScheduleGroup(args: DeleteScheduleGroupCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteScheduleGroupCommandOutput, Cause.TimeoutError | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
28
28
  /**
29
29
  * @see {@link GetScheduleCommand}
30
30
  */
31
- getSchedule(args: GetScheduleCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetScheduleCommandOutput, Cause.TimeoutException | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
31
+ getSchedule(args: GetScheduleCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetScheduleCommandOutput, Cause.TimeoutError | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
32
32
  /**
33
33
  * @see {@link GetScheduleGroupCommand}
34
34
  */
35
- getScheduleGroup(args: GetScheduleGroupCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetScheduleGroupCommandOutput, Cause.TimeoutException | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
35
+ getScheduleGroup(args: GetScheduleGroupCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetScheduleGroupCommandOutput, Cause.TimeoutError | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
36
36
  /**
37
37
  * @see {@link ListScheduleGroupsCommand}
38
38
  */
39
- listScheduleGroups(args: ListScheduleGroupsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListScheduleGroupsCommandOutput, Cause.TimeoutException | SdkError | InternalServerError | ThrottlingError | ValidationError>;
39
+ listScheduleGroups(args: ListScheduleGroupsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListScheduleGroupsCommandOutput, Cause.TimeoutError | SdkError | InternalServerError | ThrottlingError | ValidationError>;
40
40
  /**
41
41
  * @see {@link ListSchedulesCommand}
42
42
  */
43
- listSchedules(args: ListSchedulesCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListSchedulesCommandOutput, Cause.TimeoutException | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
43
+ listSchedules(args: ListSchedulesCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListSchedulesCommandOutput, Cause.TimeoutError | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
44
44
  /**
45
45
  * @see {@link ListTagsForResourceCommand}
46
46
  */
47
- listTagsForResource(args: ListTagsForResourceCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListTagsForResourceCommandOutput, Cause.TimeoutException | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
47
+ listTagsForResource(args: ListTagsForResourceCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListTagsForResourceCommandOutput, Cause.TimeoutError | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
48
48
  /**
49
49
  * @see {@link TagResourceCommand}
50
50
  */
51
- tagResource(args: TagResourceCommandInput, options?: HttpHandlerOptions): Effect.Effect<TagResourceCommandOutput, Cause.TimeoutException | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
51
+ tagResource(args: TagResourceCommandInput, options?: HttpHandlerOptions): Effect.Effect<TagResourceCommandOutput, Cause.TimeoutError | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
52
52
  /**
53
53
  * @see {@link UntagResourceCommand}
54
54
  */
55
- untagResource(args: UntagResourceCommandInput, options?: HttpHandlerOptions): Effect.Effect<UntagResourceCommandOutput, Cause.TimeoutException | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
55
+ untagResource(args: UntagResourceCommandInput, options?: HttpHandlerOptions): Effect.Effect<UntagResourceCommandOutput, Cause.TimeoutError | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
56
56
  /**
57
57
  * @see {@link UpdateScheduleCommand}
58
58
  */
59
- updateSchedule(args: UpdateScheduleCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateScheduleCommandOutput, Cause.TimeoutException | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
59
+ updateSchedule(args: UpdateScheduleCommandInput, options?: HttpHandlerOptions): Effect.Effect<UpdateScheduleCommandOutput, Cause.TimeoutError | SdkError | ConflictError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError>;
60
60
  }
61
61
  /**
62
62
  * @since 1.0.0
63
63
  * @category constructors
64
64
  */
65
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
- };
66
+ declare const SchedulerService_base: ServiceMap.ServiceClass<SchedulerService, "@effect-aws/client-scheduler/SchedulerService", SchedulerService$>;
69
67
  /**
70
68
  * @since 1.0.0
71
69
  * @category models
@@ -1 +1 @@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CACb,CAAC;AAE7D;;;GAGG;AACH,eAAO,MAAM,uBAAuB,EAAE,MAAM,CAAC,MAAM,CAAC,qBAAqB,CAQvE,CAAC"}
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,EAAE,KAAK,EAAc,MAAM,QAAQ,CAAC;AAEnD,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,13 @@
2
2
  * @since 1.0.0
3
3
  */
4
4
  import { SchedulerClient } from "@aws-sdk/client-scheduler";
5
- import { Context, Effect, Layer } from "effect";
5
+ import { Effect, Layer, ServiceMap } from "effect";
6
6
  import * as SchedulerServiceConfig from "./SchedulerServiceConfig.js";
7
7
  /**
8
8
  * @since 1.0.0
9
9
  * @category tags
10
10
  */
11
- export class SchedulerClientInstance extends Context.Tag("@effect-aws/client-scheduler/SchedulerClientInstance")() {
11
+ export class SchedulerClientInstance extends ServiceMap.Service()("@effect-aws/client-scheduler/SchedulerClientInstance") {
12
12
  }
13
13
  /**
14
14
  * @since 1.0.0
@@ -19,5 +19,5 @@ export const make = Effect.flatMap(SchedulerServiceConfig.toSchedulerClientConfi
19
19
  * @since 1.0.0
20
20
  * @category layers
21
21
  */
22
- export const layer = Layer.scoped(SchedulerClientInstance, make);
22
+ export const layer = Layer.effect(SchedulerClientInstance, make);
23
23
  //# 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,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAChD,OAAO,KAAK,sBAAsB,MAAM,6BAA6B,CAAC;AAEtE;;;GAGG;AACH,MAAM,OAAO,uBAAwB,SAAQ,OAAO,CAAC,GAAG,CACtD,sDAAsD,CACvD,EAA4C;CAAG;AAEhD;;;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"}
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,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AACnD,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,7 @@
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 { Effect, Layer } from "effect";
6
+ import { Effect, Layer, ServiceMap } from "effect";
7
7
  import { AllServiceErrors } from "./Errors.js";
8
8
  import * as Instance from "./SchedulerClientInstance.js";
9
9
  import * as SchedulerServiceConfig from "./SchedulerServiceConfig.js";
@@ -36,7 +36,7 @@ export const makeSchedulerService = Effect.gen(function* () {
36
36
  * @since 1.0.0
37
37
  * @category models
38
38
  */
39
- export class SchedulerService extends Effect.Tag("@effect-aws/client-scheduler/SchedulerService")() {
39
+ export class SchedulerService extends ServiceMap.Service()("@effect-aws/client-scheduler/SchedulerService") {
40
40
  static defaultLayer = Layer.effect(this, makeSchedulerService).pipe(Layer.provide(Instance.layer));
41
41
  static layer = (config) => Layer.effect(this, makeSchedulerService).pipe(Layer.provide(Instance.layer), Layer.provide(SchedulerServiceConfig.setSchedulerServiceConfig(config)));
42
42
  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,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAUvC,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,KAAK,QAAQ,MAAM,8BAA8B,CAAC;AACzD,OAAO,KAAK,sBAAsB,MAAM,6BAA6B,CAAC;AAEtE,MAAM,QAAQ,GAAG;IACf,qB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,CACF,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,OAAO,gBAAiB,SAAQ,UAAU,CAAC,OAAO,EAGrD,CAAC,+CAA+C,CAAC;IAClD,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,27 @@
1
1
  import { ServiceLogger } from "@effect-aws/commons";
2
- import { Effect, FiberRef, Layer } from "effect";
2
+ import { Effect, Layer, 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 scheduler service config
8
7
  */
9
- const currentSchedulerServiceConfig = globalValue("@effect-aws/client-scheduler/currentSchedulerServiceConfig", () => FiberRef.unsafeMake({}));
8
+ const currentSchedulerServiceConfig = ServiceMap.Reference("@effect-aws/client-scheduler/currentSchedulerServiceConfig", { defaultValue: () => ({}) });
10
9
  /**
11
10
  * @since 1.0.0
12
11
  * @category scheduler service config
13
12
  */
14
- export const withSchedulerServiceConfig = dual(2, (effect, config) => Effect.locally(effect, currentSchedulerServiceConfig, config));
13
+ export const withSchedulerServiceConfig = dual(2, (effect, config) => Effect.provideService(effect, currentSchedulerServiceConfig, config));
15
14
  /**
16
15
  * @since 1.0.0
17
16
  * @category scheduler service config
18
17
  */
19
- export const setSchedulerServiceConfig = (config) => Layer.locallyScoped(currentSchedulerServiceConfig, config);
18
+ export const setSchedulerServiceConfig = (config) => Layer.succeed(currentSchedulerServiceConfig, config);
20
19
  /**
21
20
  * @since 1.0.0
22
21
  * @category adapters
23
22
  */
24
23
  export const toSchedulerClientConfig = Effect.gen(function* () {
25
- const { logger: serviceLogger, ...config } = yield* FiberRef.get(currentSchedulerServiceConfig);
24
+ const { logger: serviceLogger, ...config } = yield* currentSchedulerServiceConfig;
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":"SchedulerServiceConfig.js","sourceRoot":"","sources":["../../src/SchedulerServiceConfig.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AACjD,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGjD;;;GAGG;AACH,MAAM,6BAA6B,GAAG,WAAW,CAC/C,4DAA4D,EAC5D,GAAG,EAAE,CAAC,QAAQ,CAAC,UAAU,CAA0B,EAAE,CAAC,CACvD,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAGnC,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E,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": "1.10.3",
3
+ "version": "2.0.0-beta.0",
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.3.0"
19
+ "@effect-aws/commons": "^1.0.0-beta.0"
20
20
  },
21
21
  "peerDependencies": {
22
- "effect": ">=3.0.4 <4.0.0"
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,16 @@
2
2
  * @since 1.0.0
3
3
  */
4
4
  import { SchedulerClient } from "@aws-sdk/client-scheduler";
5
- import { Context, Effect, Layer } from "effect";
5
+ import { Effect, Layer, ServiceMap } from "effect";
6
6
  import * as SchedulerServiceConfig from "./SchedulerServiceConfig.js";
7
7
 
8
8
  /**
9
9
  * @since 1.0.0
10
10
  * @category tags
11
11
  */
12
- export class SchedulerClientInstance extends Context.Tag(
12
+ export class SchedulerClientInstance extends ServiceMap.Service<SchedulerClientInstance, SchedulerClient>()(
13
13
  "@effect-aws/client-scheduler/SchedulerClientInstance",
14
- )<SchedulerClientInstance, SchedulerClient>() {}
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.scoped(SchedulerClientInstance, make);
33
+ export const layer = Layer.effect(SchedulerClientInstance, make);
@@ -44,7 +44,7 @@ import {
44
44
  import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons";
45
45
  import { Service } from "@effect-aws/commons";
46
46
  import type { Cause } from "effect";
47
- import { Effect, Layer } from "effect";
47
+ import { Effect, Layer, ServiceMap } from "effect";
48
48
  import type {
49
49
  ConflictError,
50
50
  InternalServerError,
@@ -84,7 +84,7 @@ interface SchedulerService$ {
84
84
  options?: HttpHandlerOptions,
85
85
  ): Effect.Effect<
86
86
  CreateScheduleCommandOutput,
87
- | Cause.TimeoutException
87
+ | Cause.TimeoutError
88
88
  | SdkError
89
89
  | ConflictError
90
90
  | InternalServerError
@@ -102,7 +102,7 @@ interface SchedulerService$ {
102
102
  options?: HttpHandlerOptions,
103
103
  ): Effect.Effect<
104
104
  CreateScheduleGroupCommandOutput,
105
- | Cause.TimeoutException
105
+ | Cause.TimeoutError
106
106
  | SdkError
107
107
  | ConflictError
108
108
  | InternalServerError
@@ -119,7 +119,7 @@ interface SchedulerService$ {
119
119
  options?: HttpHandlerOptions,
120
120
  ): Effect.Effect<
121
121
  DeleteScheduleCommandOutput,
122
- | Cause.TimeoutException
122
+ | Cause.TimeoutError
123
123
  | SdkError
124
124
  | ConflictError
125
125
  | InternalServerError
@@ -136,7 +136,7 @@ interface SchedulerService$ {
136
136
  options?: HttpHandlerOptions,
137
137
  ): Effect.Effect<
138
138
  DeleteScheduleGroupCommandOutput,
139
- | Cause.TimeoutException
139
+ | Cause.TimeoutError
140
140
  | SdkError
141
141
  | ConflictError
142
142
  | InternalServerError
@@ -153,7 +153,7 @@ interface SchedulerService$ {
153
153
  options?: HttpHandlerOptions,
154
154
  ): Effect.Effect<
155
155
  GetScheduleCommandOutput,
156
- Cause.TimeoutException | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError
156
+ Cause.TimeoutError | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError
157
157
  >;
158
158
 
159
159
  /**
@@ -164,7 +164,7 @@ interface SchedulerService$ {
164
164
  options?: HttpHandlerOptions,
165
165
  ): Effect.Effect<
166
166
  GetScheduleGroupCommandOutput,
167
- Cause.TimeoutException | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError
167
+ Cause.TimeoutError | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError
168
168
  >;
169
169
 
170
170
  /**
@@ -175,7 +175,7 @@ interface SchedulerService$ {
175
175
  options?: HttpHandlerOptions,
176
176
  ): Effect.Effect<
177
177
  ListScheduleGroupsCommandOutput,
178
- Cause.TimeoutException | SdkError | InternalServerError | ThrottlingError | ValidationError
178
+ Cause.TimeoutError | SdkError | InternalServerError | ThrottlingError | ValidationError
179
179
  >;
180
180
 
181
181
  /**
@@ -186,7 +186,7 @@ interface SchedulerService$ {
186
186
  options?: HttpHandlerOptions,
187
187
  ): Effect.Effect<
188
188
  ListSchedulesCommandOutput,
189
- Cause.TimeoutException | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError
189
+ Cause.TimeoutError | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError
190
190
  >;
191
191
 
192
192
  /**
@@ -197,7 +197,7 @@ interface SchedulerService$ {
197
197
  options?: HttpHandlerOptions,
198
198
  ): Effect.Effect<
199
199
  ListTagsForResourceCommandOutput,
200
- Cause.TimeoutException | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError
200
+ Cause.TimeoutError | SdkError | InternalServerError | ResourceNotFoundError | ThrottlingError | ValidationError
201
201
  >;
202
202
 
203
203
  /**
@@ -208,7 +208,7 @@ interface SchedulerService$ {
208
208
  options?: HttpHandlerOptions,
209
209
  ): Effect.Effect<
210
210
  TagResourceCommandOutput,
211
- | Cause.TimeoutException
211
+ | Cause.TimeoutError
212
212
  | SdkError
213
213
  | ConflictError
214
214
  | InternalServerError
@@ -225,7 +225,7 @@ interface SchedulerService$ {
225
225
  options?: HttpHandlerOptions,
226
226
  ): Effect.Effect<
227
227
  UntagResourceCommandOutput,
228
- | Cause.TimeoutException
228
+ | Cause.TimeoutError
229
229
  | SdkError
230
230
  | ConflictError
231
231
  | InternalServerError
@@ -242,7 +242,7 @@ interface SchedulerService$ {
242
242
  options?: HttpHandlerOptions,
243
243
  ): Effect.Effect<
244
244
  UpdateScheduleCommandOutput,
245
- | Cause.TimeoutException
245
+ | Cause.TimeoutError
246
246
  | SdkError
247
247
  | ConflictError
248
248
  | InternalServerError
@@ -273,10 +273,10 @@ export const makeSchedulerService = Effect.gen(function*() {
273
273
  * @since 1.0.0
274
274
  * @category models
275
275
  */
276
- export class SchedulerService extends Effect.Tag("@effect-aws/client-scheduler/SchedulerService")<
276
+ export class SchedulerService extends ServiceMap.Service<
277
277
  SchedulerService,
278
278
  SchedulerService$
279
- >() {
279
+ >()("@effect-aws/client-scheduler/SchedulerService") {
280
280
  static readonly defaultLayer = Layer.effect(this, makeSchedulerService).pipe(Layer.provide(Instance.layer));
281
281
  static readonly layer = (config: SchedulerService.Config) =>
282
282
  Layer.effect(this, makeSchedulerService).pipe(
@@ -3,18 +3,17 @@
3
3
  */
4
4
  import type { SchedulerClientConfig } from "@aws-sdk/client-scheduler";
5
5
  import { ServiceLogger } from "@effect-aws/commons";
6
- import { Effect, FiberRef, Layer } from "effect";
6
+ import { Effect, Layer, ServiceMap } from "effect";
7
7
  import { dual } from "effect/Function";
8
- import { globalValue } from "effect/GlobalValue";
9
8
  import type { SchedulerService } from "./SchedulerService.js";
10
9
 
11
10
  /**
12
11
  * @since 1.0.0
13
12
  * @category scheduler service config
14
13
  */
15
- const currentSchedulerServiceConfig = globalValue(
14
+ const currentSchedulerServiceConfig = ServiceMap.Reference<SchedulerService.Config>(
16
15
  "@effect-aws/client-scheduler/currentSchedulerServiceConfig",
17
- () => FiberRef.unsafeMake<SchedulerService.Config>({}),
16
+ { defaultValue: () => ({}) },
18
17
  );
19
18
 
20
19
  /**
@@ -27,7 +26,7 @@ export const withSchedulerServiceConfig: {
27
26
  } = dual(
28
27
  2,
29
28
  <A, E, R>(effect: Effect.Effect<A, E, R>, config: SchedulerService.Config): Effect.Effect<A, E, R> =>
30
- Effect.locally(effect, currentSchedulerServiceConfig, config),
29
+ Effect.provideService(effect, currentSchedulerServiceConfig, config),
31
30
  );
32
31
 
33
32
  /**
@@ -35,14 +34,14 @@ export const withSchedulerServiceConfig: {
35
34
  * @category scheduler service config
36
35
  */
37
36
  export const setSchedulerServiceConfig = (config: SchedulerService.Config) =>
38
- Layer.locallyScoped(currentSchedulerServiceConfig, config);
37
+ Layer.succeed(currentSchedulerServiceConfig, config);
39
38
 
40
39
  /**
41
40
  * @since 1.0.0
42
41
  * @category adapters
43
42
  */
44
43
  export const toSchedulerClientConfig: Effect.Effect<SchedulerClientConfig> = Effect.gen(function*() {
45
- const { logger: serviceLogger, ...config } = yield* FiberRef.get(currentSchedulerServiceConfig);
44
+ const { logger: serviceLogger, ...config } = yield* currentSchedulerServiceConfig;
46
45
 
47
46
  const logger = serviceLogger === true
48
47
  ? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger)
@@ -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
@@ -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"}
@@ -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
@@ -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;;GA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2BAA2B,EACzB,KAAK,CAAC,gBAAgB,GACtB,QAAQ,GACR,aAAa,GACb,mBAAmB,GACnB,qBAAqB,GACrB,eAAe,GACf,eAAe,CAClB,CAAC;CACH;AAED;;;GAGG;AACH,eAAO,MAAM,oBAAoB,2EAW/B,CAAC;;;;AAEH;;;GAGG;AACH,qBAAa,gBAAiB,SAAQ,qBAGnC;IACD,MAAM,CAAC,QAAQ,CAAC,YAAY,8CAAgF;IAC5G,MAAM,CAAC,QAAQ,CAAC,KAAK,WAAY,iBAAiB,MAAM,iDAIpD;IACJ,MAAM,CAAC,QAAQ,CAAC,SAAS,aACb,CAAC,aAAa,EAAE,qBAAqB,KAAK,eAAe,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,oBAAoB,EAApB,uCAAoB;IACpB,qBAAqB,EAArB,wCAAqB;CACtB,CAAC;AAqLF;;;GAGG;AACU,QAAA,oBAAoB,GAAG,eAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IACtD,MAAM,MAAM,GAAG,KAAK,CAAC,CAAC,QAAQ,CAAC,uBAAuB,CAAC;IAEvD,OAAO,KAAK,CAAC,CAAC,iBAAO,CAAC,qBAAqB,CACzC,MAAM,EACN,QAAQ,EACR;QACE,SAAS,EAAE,4BAAgB;QAC3B,mBAAmB,EAAE,sBAAsB,CAAC,uBAAuB;KACpE,CACF,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAa,gBAAiB,SAAQ,eAAM,CAAC,GAAG,CAAC,+CAA+C,CAAC,EAG9F;IACD,MAAM,CAAU,YAAY,GAAG,cAAK,CAAC,MAAM,CAAC,IAAI,EAAE,4BAAoB,CAAC,CAAC,IAAI,CAAC,cAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC;IAC5G,MAAM,CAAU,KAAK,GAAG,CAAC,MAA+B,EAAE,EAAE,CAC1D,cAAK,CAAC,MAAM,CAAC,IAAI,EAAE,4BAAoB,CAAC,CAAC,IAAI,CAC3C,cAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,EAC7B,cAAK,CAAC,OAAO,CAAC,sBAAsB,CAAC,yBAAyB,CAAC,MAAM,CAAC,CAAC,CACxE,CAAC;IACJ,MAAM,CAAU,SAAS,GAAG,CAC1B,QAAmE,EACnE,EAAE,CACF,cAAK,CAAC,MAAM,CAAC,IAAI,EAAE,4BAAoB,CAAC,CAAC,IAAI,CAC3C,cAAK,CAAC,OAAO,CACX,cAAK,CAAC,MAAM,CACV,QAAQ,CAAC,uBAAuB,EAChC,eAAM,CAAC,GAAG,CAAC,sBAAsB,CAAC,uBAAuB,EAAE,QAAQ,CAAC,CACrE,CACF,CACF,CAAC;;AApBN,4CAqBC"}
@@ -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","s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* @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
@@ -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
@@ -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"}