@effect-aws/client-sfn 1.5.0 → 1.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/Errors/package.json +6 -0
  2. package/LICENSE +1 -1
  3. package/SFNClientInstance/package.json +6 -0
  4. package/SFNService/package.json +6 -0
  5. package/SFNServiceConfig/package.json +6 -0
  6. package/{lib → dist/cjs}/Errors.d.ts +6 -11
  7. package/dist/cjs/Errors.d.ts.map +1 -0
  8. package/dist/cjs/Errors.js +41 -0
  9. package/dist/cjs/Errors.js.map +1 -0
  10. package/dist/cjs/SFNClientInstance.d.ts +24 -0
  11. package/dist/cjs/SFNClientInstance.d.ts.map +1 -0
  12. package/dist/cjs/SFNClientInstance.js +50 -0
  13. package/dist/cjs/SFNClientInstance.js.map +1 -0
  14. package/{lib → dist/cjs}/SFNService.d.ts +16 -38
  15. package/dist/cjs/SFNService.d.ts.map +1 -0
  16. package/dist/cjs/SFNService.js +93 -0
  17. package/dist/cjs/SFNService.js.map +1 -0
  18. package/dist/cjs/SFNServiceConfig.d.ts +25 -0
  19. package/dist/cjs/SFNServiceConfig.d.ts.map +1 -0
  20. package/dist/cjs/SFNServiceConfig.js +35 -0
  21. package/dist/cjs/SFNServiceConfig.js.map +1 -0
  22. package/dist/cjs/index.d.ts +39 -0
  23. package/dist/cjs/index.d.ts.map +1 -0
  24. package/dist/cjs/index.js +56 -0
  25. package/dist/cjs/index.js.map +1 -0
  26. package/dist/dts/Errors.d.ts +40 -0
  27. package/dist/dts/Errors.d.ts.map +1 -0
  28. package/dist/dts/SFNClientInstance.d.ts +24 -0
  29. package/dist/dts/SFNClientInstance.d.ts.map +1 -0
  30. package/dist/dts/SFNService.d.ts +228 -0
  31. package/dist/dts/SFNService.d.ts.map +1 -0
  32. package/dist/dts/SFNServiceConfig.d.ts +25 -0
  33. package/dist/dts/SFNServiceConfig.d.ts.map +1 -0
  34. package/dist/dts/index.d.ts +39 -0
  35. package/dist/dts/index.d.ts.map +1 -0
  36. package/dist/esm/Errors.js +38 -0
  37. package/dist/esm/Errors.js.map +1 -0
  38. package/dist/esm/SFNClientInstance.js +23 -0
  39. package/dist/esm/SFNClientInstance.js.map +1 -0
  40. package/dist/esm/SFNService.js +66 -0
  41. package/dist/esm/SFNService.js.map +1 -0
  42. package/dist/esm/SFNServiceConfig.js +31 -0
  43. package/dist/esm/SFNServiceConfig.js.map +1 -0
  44. package/dist/esm/index.js +27 -0
  45. package/dist/esm/index.js.map +1 -0
  46. package/dist/esm/package.json +4 -0
  47. package/package.json +60 -43
  48. package/src/Errors.ts +110 -0
  49. package/src/SFNClientInstance.ts +33 -0
  50. package/src/SFNService.ts +789 -0
  51. package/src/SFNServiceConfig.ts +51 -0
  52. package/src/index.ts +44 -0
  53. package/CHANGELOG.md +0 -73
  54. package/docgen.json +0 -8
  55. package/lib/Errors.js +0 -41
  56. package/lib/SFNClientInstance.d.ts +0 -31
  57. package/lib/SFNClientInstance.js +0 -57
  58. package/lib/SFNClientInstanceConfig.d.ts +0 -23
  59. package/lib/SFNClientInstanceConfig.js +0 -44
  60. package/lib/SFNService.js +0 -125
  61. package/lib/esm/Errors.js +0 -38
  62. package/lib/esm/SFNClientInstance.js +0 -30
  63. package/lib/esm/SFNClientInstanceConfig.js +0 -40
  64. package/lib/esm/SFNService.js +0 -121
  65. package/lib/esm/index.js +0 -5
  66. package/lib/index.d.ts +0 -4
  67. package/lib/index.js +0 -21
  68. package/project.json +0 -77
  69. package/vitest.config.ts +0 -3
@@ -0,0 +1,6 @@
1
+ {
2
+ "main": "../dist/cjs/Errors.js",
3
+ "module": "../dist/esm/Errors.js",
4
+ "types": "../dist/dts/Errors.d.ts",
5
+ "sideEffects": []
6
+ }
package/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2024 Victor Korzunin
1
+ Copyright (c) 2025 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
@@ -0,0 +1,6 @@
1
+ {
2
+ "main": "../dist/cjs/SFNClientInstance.js",
3
+ "module": "../dist/esm/SFNClientInstance.js",
4
+ "types": "../dist/dts/SFNClientInstance.d.ts",
5
+ "sideEffects": []
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "main": "../dist/cjs/SFNService.js",
3
+ "module": "../dist/esm/SFNService.js",
4
+ "types": "../dist/dts/SFNService.d.ts",
5
+ "sideEffects": []
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "main": "../dist/cjs/SFNServiceConfig.js",
3
+ "module": "../dist/esm/SFNServiceConfig.js",
4
+ "types": "../dist/dts/SFNServiceConfig.d.ts",
5
+ "sideEffects": []
6
+ }
@@ -1,11 +1,7 @@
1
1
  import type { ActivityAlreadyExists, ActivityDoesNotExist, ActivityLimitExceeded, ActivityWorkerLimitExceeded, ConflictException, ExecutionAlreadyExists, ExecutionDoesNotExist, ExecutionLimitExceeded, ExecutionNotRedrivable, InvalidArn, InvalidDefinition, InvalidEncryptionConfiguration, InvalidExecutionInput, InvalidLoggingConfiguration, InvalidName, InvalidOutput, InvalidToken, InvalidTracingConfiguration, KmsAccessDeniedException, KmsInvalidStateException, KmsThrottlingException, MissingRequiredParameter, ResourceNotFound, ServiceQuotaExceededException, StateMachineAlreadyExists, StateMachineDeleting, StateMachineDoesNotExist, StateMachineLimitExceeded, StateMachineTypeNotSupported, TaskDoesNotExist, TaskTimedOut, TooManyTags, ValidationException } from "@aws-sdk/client-sfn";
2
- import { Data } from "effect";
3
- export declare const AllServiceErrors: string[];
4
- export type TaggedException<T extends {
5
- name: string;
6
- }> = T & {
7
- readonly _tag: T["name"];
8
- };
2
+ import type { TaggedException } from "@effect-aws/commons";
3
+ import { SdkError as CommonSdkError } from "@effect-aws/commons";
4
+ export declare const AllServiceErrors: readonly ["ActivityAlreadyExists", "ActivityDoesNotExist", "ActivityLimitExceeded", "ActivityWorkerLimitExceeded", "ConflictException", "ExecutionAlreadyExists", "ExecutionDoesNotExist", "ExecutionLimitExceeded", "ExecutionNotRedrivable", "InvalidArn", "InvalidDefinition", "InvalidEncryptionConfiguration", "InvalidExecutionInput", "InvalidLoggingConfiguration", "InvalidName", "InvalidOutput", "InvalidToken", "InvalidTracingConfiguration", "KmsAccessDeniedException", "KmsInvalidStateException", "KmsThrottlingException", "MissingRequiredParameter", "ResourceNotFound", "ServiceQuotaExceededException", "StateMachineAlreadyExists", "StateMachineDeleting", "StateMachineDoesNotExist", "StateMachineLimitExceeded", "StateMachineTypeNotSupported", "TaskDoesNotExist", "TaskTimedOut", "TooManyTags", "ValidationException"];
9
5
  export type ActivityAlreadyExistsError = TaggedException<ActivityAlreadyExists>;
10
6
  export type ActivityDoesNotExistError = TaggedException<ActivityDoesNotExist>;
11
7
  export type ActivityLimitExceededError = TaggedException<ActivityLimitExceeded>;
@@ -39,7 +35,6 @@ export type TaskDoesNotExistError = TaggedException<TaskDoesNotExist>;
39
35
  export type TaskTimedOutError = TaggedException<TaskTimedOut>;
40
36
  export type TooManyTagsError = TaggedException<TooManyTags>;
41
37
  export type ValidationError = TaggedException<ValidationException>;
42
- export type SdkError = TaggedException<Error & {
43
- name: "SdkError";
44
- }>;
45
- export declare const SdkError: Data.Case.Constructor<SdkError, "_tag">;
38
+ export type SdkError = CommonSdkError;
39
+ export declare const SdkError: import("effect/Data").Case.Constructor<CommonSdkError, "_tag">;
40
+ //# sourceMappingURL=Errors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Errors.d.ts","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EACrB,oBAAoB,EACpB,qBAAqB,EACrB,2BAA2B,EAC3B,iBAAiB,EACjB,sBAAsB,EACtB,qBAAqB,EACrB,sBAAsB,EACtB,sBAAsB,EACtB,UAAU,EACV,iBAAiB,EACjB,8BAA8B,EAC9B,qBAAqB,EACrB,2BAA2B,EAC3B,WAAW,EACX,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MAAM,gBAAgB,GAAG,eAAe,CAAC,WAAW,CAAC,CAAC;AAC5D,MAAM,MAAM,eAAe,GAAG,eAAe,CAAC,mBAAmB,CAAC,CAAC;AAEnE,MAAM,MAAM,QAAQ,GAAG,cAAc,CAAC;AACtC,eAAO,MAAM,QAAQ,gEAAiB,CAAC"}
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SdkError = exports.AllServiceErrors = void 0;
4
+ const commons_1 = require("@effect-aws/commons");
5
+ exports.AllServiceErrors = [
6
+ "ActivityAlreadyExists",
7
+ "ActivityDoesNotExist",
8
+ "ActivityLimitExceeded",
9
+ "ActivityWorkerLimitExceeded",
10
+ "ConflictException",
11
+ "ExecutionAlreadyExists",
12
+ "ExecutionDoesNotExist",
13
+ "ExecutionLimitExceeded",
14
+ "ExecutionNotRedrivable",
15
+ "InvalidArn",
16
+ "InvalidDefinition",
17
+ "InvalidEncryptionConfiguration",
18
+ "InvalidExecutionInput",
19
+ "InvalidLoggingConfiguration",
20
+ "InvalidName",
21
+ "InvalidOutput",
22
+ "InvalidToken",
23
+ "InvalidTracingConfiguration",
24
+ "KmsAccessDeniedException",
25
+ "KmsInvalidStateException",
26
+ "KmsThrottlingException",
27
+ "MissingRequiredParameter",
28
+ "ResourceNotFound",
29
+ "ServiceQuotaExceededException",
30
+ "StateMachineAlreadyExists",
31
+ "StateMachineDeleting",
32
+ "StateMachineDoesNotExist",
33
+ "StateMachineLimitExceeded",
34
+ "StateMachineTypeNotSupported",
35
+ "TaskDoesNotExist",
36
+ "TaskTimedOut",
37
+ "TooManyTags",
38
+ "ValidationException",
39
+ ];
40
+ exports.SdkError = commons_1.SdkError;
41
+ //# sourceMappingURL=Errors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Errors.js","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":";;;AAoCA,iDAAiE;AAEpD,QAAA,gBAAgB,GAAG;IAC9B,uBAAuB;IACvB,sBAAsB;IACtB,uBAAuB;IACvB,6BAA6B;IAC7B,mBAAmB;IACnB,wBAAwB;IACxB,uBAAuB;IACvB,wBAAwB;IACxB,wBAAwB;IACxB,YAAY;IACZ,mBAAmB;IACnB,gCAAgC;IAChC,uBAAuB;IACvB,6BAA6B;IAC7B,aAAa;IACb,eAAe;IACf,cAAc;IACd,6BAA6B;IAC7B,0BAA0B;IAC1B,0BAA0B;IAC1B,wBAAwB;IACxB,0BAA0B;IAC1B,kBAAkB;IAClB,+BAA+B;IAC/B,2BAA2B;IAC3B,sBAAsB;IACtB,0BAA0B;IAC1B,2BAA2B;IAC3B,8BAA8B;IAC9B,kBAAkB;IAClB,cAAc;IACd,aAAa;IACb,qBAAqB;CACb,CAAC;AAqCE,QAAA,QAAQ,GAAG,kBAAc,CAAC"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * @since 1.0.0
3
+ */
4
+ import { SFNClient } from "@aws-sdk/client-sfn";
5
+ import { Context, Effect, Layer } from "effect";
6
+ declare const SFNClientInstance_base: Context.TagClass<SFNClientInstance, "@effect-aws/client-sfn/SFNClientInstance", SFNClient>;
7
+ /**
8
+ * @since 1.0.0
9
+ * @category tags
10
+ */
11
+ export declare class SFNClientInstance extends SFNClientInstance_base {
12
+ }
13
+ /**
14
+ * @since 1.0.0
15
+ * @category constructors
16
+ */
17
+ export declare const make: Effect.Effect<SFNClient, never, import("effect/Scope").Scope>;
18
+ /**
19
+ * @since 1.0.0
20
+ * @category layers
21
+ */
22
+ export declare const layer: Layer.Layer<SFNClientInstance, never, never>;
23
+ export {};
24
+ //# sourceMappingURL=SFNClientInstance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SFNClientInstance.d.ts","sourceRoot":"","sources":["../../src/SFNClientInstance.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;;AAGhD;;;GAGG;AACH,qBAAa,iBAAkB,SAAQ,sBAEN;CAAG;AAEpC;;;GAGG;AACH,eAAO,MAAM,IAAI,+DAOhB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,KAAK,8CAAwC,CAAC"}
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.layer = exports.make = exports.SFNClientInstance = void 0;
27
+ /**
28
+ * @since 1.0.0
29
+ */
30
+ const client_sfn_1 = require("@aws-sdk/client-sfn");
31
+ const effect_1 = require("effect");
32
+ const SFNServiceConfig = __importStar(require("./SFNServiceConfig.js"));
33
+ /**
34
+ * @since 1.0.0
35
+ * @category tags
36
+ */
37
+ class SFNClientInstance extends effect_1.Context.Tag("@effect-aws/client-sfn/SFNClientInstance")() {
38
+ }
39
+ exports.SFNClientInstance = SFNClientInstance;
40
+ /**
41
+ * @since 1.0.0
42
+ * @category constructors
43
+ */
44
+ exports.make = effect_1.Effect.flatMap(SFNServiceConfig.toSFNClientConfig, (config) => effect_1.Effect.acquireRelease(effect_1.Effect.sync(() => new client_sfn_1.SFNClient(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(SFNClientInstance, exports.make);
50
+ //# sourceMappingURL=SFNClientInstance.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SFNClientInstance.js","sourceRoot":"","sources":["../../src/SFNClientInstance.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,oDAAgD;AAChD,mCAAgD;AAChD,wEAA0D;AAE1D;;;GAGG;AACH,MAAa,iBAAkB,SAAQ,gBAAO,CAAC,GAAG,CAChD,0CAA0C,CAC3C,EAAgC;CAAG;AAFpC,8CAEoC;AAEpC;;;GAGG;AACU,QAAA,IAAI,GAAG,eAAM,CAAC,OAAO,CAChC,gBAAgB,CAAC,iBAAiB,EAClC,CAAC,MAAM,EAAE,EAAE,CACT,eAAM,CAAC,cAAc,CACnB,eAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,sBAAS,CAAC,MAAM,CAAC,CAAC,EACxC,CAAC,MAAM,EAAE,EAAE,CAAC,eAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,CAChD,CACJ,CAAC;AAEF;;;GAGG;AACU,QAAA,KAAK,GAAG,cAAK,CAAC,MAAM,CAAC,iBAAiB,EAAE,YAAI,CAAC,CAAC"}
@@ -1,21 +1,11 @@
1
1
  /**
2
2
  * @since 1.0.0
3
3
  */
4
- import { type SFNClient, type SFNClientConfig, type CreateActivityCommandInput, type CreateActivityCommandOutput, type CreateStateMachineCommandInput, type CreateStateMachineCommandOutput, type CreateStateMachineAliasCommandInput, type CreateStateMachineAliasCommandOutput, type DeleteActivityCommandInput, type DeleteActivityCommandOutput, type DeleteStateMachineCommandInput, type DeleteStateMachineCommandOutput, type DeleteStateMachineAliasCommandInput, type DeleteStateMachineAliasCommandOutput, type DeleteStateMachineVersionCommandInput, type DeleteStateMachineVersionCommandOutput, type DescribeActivityCommandInput, type DescribeActivityCommandOutput, type DescribeExecutionCommandInput, type DescribeExecutionCommandOutput, type DescribeMapRunCommandInput, type DescribeMapRunCommandOutput, type DescribeStateMachineCommandInput, type DescribeStateMachineCommandOutput, type DescribeStateMachineAliasCommandInput, type DescribeStateMachineAliasCommandOutput, type DescribeStateMachineForExecutionCommandInput, type DescribeStateMachineForExecutionCommandOutput, type GetActivityTaskCommandInput, type GetActivityTaskCommandOutput, type GetExecutionHistoryCommandInput, type GetExecutionHistoryCommandOutput, type ListActivitiesCommandInput, type ListActivitiesCommandOutput, type ListExecutionsCommandInput, type ListExecutionsCommandOutput, type ListMapRunsCommandInput, type ListMapRunsCommandOutput, type ListStateMachineAliasesCommandInput, type ListStateMachineAliasesCommandOutput, type ListStateMachineVersionsCommandInput, type ListStateMachineVersionsCommandOutput, type ListStateMachinesCommandInput, type ListStateMachinesCommandOutput, type ListTagsForResourceCommandInput, type ListTagsForResourceCommandOutput, type PublishStateMachineVersionCommandInput, type PublishStateMachineVersionCommandOutput, type RedriveExecutionCommandInput, type RedriveExecutionCommandOutput, type SendTaskFailureCommandInput, type SendTaskFailureCommandOutput, type SendTaskHeartbeatCommandInput, type SendTaskHeartbeatCommandOutput, type SendTaskSuccessCommandInput, type SendTaskSuccessCommandOutput, type StartExecutionCommandInput, type StartExecutionCommandOutput, type StartSyncExecutionCommandInput, type StartSyncExecutionCommandOutput, type StopExecutionCommandInput, type StopExecutionCommandOutput, type TagResourceCommandInput, type TagResourceCommandOutput, type TestStateCommandInput, type TestStateCommandOutput, type UntagResourceCommandInput, type UntagResourceCommandOutput, type UpdateMapRunCommandInput, type UpdateMapRunCommandOutput, type UpdateStateMachineCommandInput, type UpdateStateMachineCommandOutput, type UpdateStateMachineAliasCommandInput, type UpdateStateMachineAliasCommandOutput, type ValidateStateMachineDefinitionCommandInput, type ValidateStateMachineDefinitionCommandOutput } from "@aws-sdk/client-sfn";
4
+ import { type CreateActivityCommandInput, type CreateActivityCommandOutput, type CreateStateMachineAliasCommandInput, type CreateStateMachineAliasCommandOutput, type CreateStateMachineCommandInput, type CreateStateMachineCommandOutput, type DeleteActivityCommandInput, type DeleteActivityCommandOutput, type DeleteStateMachineAliasCommandInput, type DeleteStateMachineAliasCommandOutput, type DeleteStateMachineCommandInput, type DeleteStateMachineCommandOutput, type DeleteStateMachineVersionCommandInput, type DeleteStateMachineVersionCommandOutput, type DescribeActivityCommandInput, type DescribeActivityCommandOutput, type DescribeExecutionCommandInput, type DescribeExecutionCommandOutput, type DescribeMapRunCommandInput, type DescribeMapRunCommandOutput, type DescribeStateMachineAliasCommandInput, type DescribeStateMachineAliasCommandOutput, type DescribeStateMachineCommandInput, type DescribeStateMachineCommandOutput, type DescribeStateMachineForExecutionCommandInput, type DescribeStateMachineForExecutionCommandOutput, type GetActivityTaskCommandInput, type GetActivityTaskCommandOutput, type GetExecutionHistoryCommandInput, type GetExecutionHistoryCommandOutput, type ListActivitiesCommandInput, type ListActivitiesCommandOutput, type ListExecutionsCommandInput, type ListExecutionsCommandOutput, type ListMapRunsCommandInput, type ListMapRunsCommandOutput, type ListStateMachineAliasesCommandInput, type ListStateMachineAliasesCommandOutput, type ListStateMachinesCommandInput, type ListStateMachinesCommandOutput, type ListStateMachineVersionsCommandInput, type ListStateMachineVersionsCommandOutput, type ListTagsForResourceCommandInput, type ListTagsForResourceCommandOutput, type PublishStateMachineVersionCommandInput, type PublishStateMachineVersionCommandOutput, type RedriveExecutionCommandInput, type RedriveExecutionCommandOutput, type SendTaskFailureCommandInput, type SendTaskFailureCommandOutput, type SendTaskHeartbeatCommandInput, type SendTaskHeartbeatCommandOutput, type SendTaskSuccessCommandInput, type SendTaskSuccessCommandOutput, type SFNClient, type SFNClientConfig, type StartExecutionCommandInput, type StartExecutionCommandOutput, type StartSyncExecutionCommandInput, type StartSyncExecutionCommandOutput, type StopExecutionCommandInput, type StopExecutionCommandOutput, type TagResourceCommandInput, type TagResourceCommandOutput, type TestStateCommandInput, type TestStateCommandOutput, type UntagResourceCommandInput, type UntagResourceCommandOutput, type UpdateMapRunCommandInput, type UpdateMapRunCommandOutput, type UpdateStateMachineAliasCommandInput, type UpdateStateMachineAliasCommandOutput, type UpdateStateMachineCommandInput, type UpdateStateMachineCommandOutput, type ValidateStateMachineDefinitionCommandInput, type ValidateStateMachineDefinitionCommandOutput } from "@aws-sdk/client-sfn";
5
+ import type { HttpHandlerOptions, SdkError, ServiceLogger } from "@effect-aws/commons";
5
6
  import { Effect, Layer } from "effect";
6
- import { ActivityAlreadyExistsError, ActivityDoesNotExistError, ActivityLimitExceededError, ActivityWorkerLimitExceededError, ConflictError, ExecutionAlreadyExistsError, ExecutionDoesNotExistError, ExecutionLimitExceededError, ExecutionNotRedrivableError, InvalidArnError, InvalidDefinitionError, InvalidEncryptionConfigurationError, InvalidExecutionInputError, InvalidLoggingConfigurationError, InvalidNameError, InvalidOutputError, InvalidTokenError, InvalidTracingConfigurationError, KmsAccessDeniedError, KmsInvalidStateError, KmsThrottlingError, MissingRequiredParameterError, ResourceNotFoundError, ServiceQuotaExceededError, StateMachineAlreadyExistsError, StateMachineDeletingError, StateMachineDoesNotExistError, StateMachineLimitExceededError, StateMachineTypeNotSupportedError, TaskDoesNotExistError, TaskTimedOutError, TooManyTagsError, ValidationError, SdkError } from "./Errors";
7
- import { SFNClientInstance } from "./SFNClientInstance";
8
- import { SFNClientInstanceConfig } from "./SFNClientInstanceConfig";
9
- /**
10
- * @since 1.0.0
11
- */
12
- export interface HttpHandlerOptions {
13
- /**
14
- * The maximum time in milliseconds that the connection phase of a request
15
- * may take before the connection attempt is abandoned.
16
- */
17
- requestTimeout?: number;
18
- }
7
+ import type { ActivityAlreadyExistsError, ActivityDoesNotExistError, ActivityLimitExceededError, ActivityWorkerLimitExceededError, ConflictError, ExecutionAlreadyExistsError, ExecutionDoesNotExistError, ExecutionLimitExceededError, ExecutionNotRedrivableError, InvalidArnError, InvalidDefinitionError, InvalidEncryptionConfigurationError, InvalidExecutionInputError, InvalidLoggingConfigurationError, InvalidNameError, InvalidOutputError, InvalidTokenError, InvalidTracingConfigurationError, KmsAccessDeniedError, KmsInvalidStateError, KmsThrottlingError, MissingRequiredParameterError, ResourceNotFoundError, ServiceQuotaExceededError, StateMachineAlreadyExistsError, StateMachineDeletingError, StateMachineDoesNotExistError, StateMachineLimitExceededError, StateMachineTypeNotSupportedError, TaskDoesNotExistError, TaskTimedOutError, TooManyTagsError, ValidationError } from "./Errors.js";
8
+ import * as Instance from "./SFNClientInstance.js";
19
9
  interface SFNService$ {
20
10
  readonly _: unique symbol;
21
11
  /**
@@ -171,7 +161,7 @@ interface SFNService$ {
171
161
  * @since 1.0.0
172
162
  * @category constructors
173
163
  */
174
- export declare const makeSFNService: Effect.Effect<SFNService$, never, SFNClientInstance>;
164
+ export declare const makeSFNService: Effect.Effect<SFNService$, never, Instance.SFNClientInstance>;
175
165
  declare const SFNService_base: import("effect/Context").TagClass<SFNService, "@effect-aws/client-sfn/SFNService", SFNService$> & {
176
166
  readonly _: Effect.Effect<SFNService$["_"], never, SFNService>;
177
167
  createActivity: (args: CreateActivityCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<CreateActivityCommandOutput, ActivityAlreadyExistsError | ActivityLimitExceededError | InvalidEncryptionConfigurationError | InvalidNameError | KmsAccessDeniedError | KmsThrottlingError | TooManyTagsError | SdkError, SFNService>;
@@ -212,7 +202,7 @@ declare const SFNService_base: import("effect/Context").TagClass<SFNService, "@e
212
202
  updateStateMachineAlias: (args: UpdateStateMachineAliasCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<UpdateStateMachineAliasCommandOutput, ConflictError | InvalidArnError | ResourceNotFoundError | StateMachineDeletingError | ValidationError | SdkError, SFNService>;
213
203
  validateStateMachineDefinition: (args: ValidateStateMachineDefinitionCommandInput, options?: HttpHandlerOptions | undefined) => Effect.Effect<ValidateStateMachineDefinitionCommandOutput, ValidationError | SdkError, SFNService>;
214
204
  } & {
215
- use: <X>(body: (_: SFNService$) => X) => X extends Effect.Effect<infer A, infer E, infer R> ? Effect.Effect<A, E, R | SFNService> : Effect.Effect<X, never, SFNService>;
205
+ use: <X>(body: (_: SFNService$) => X) => X extends Effect.Effect<infer A, infer E, infer R> ? Effect.Effect<A, E, SFNService | R> : Effect.Effect<X, never, SFNService>;
216
206
  };
217
207
  /**
218
208
  * @since 1.0.0
@@ -220,31 +210,19 @@ declare const SFNService_base: import("effect/Context").TagClass<SFNService, "@e
220
210
  */
221
211
  export declare class SFNService extends SFNService_base {
222
212
  static readonly defaultLayer: Layer.Layer<SFNService, never, never>;
223
- static readonly layer: (config: SFNClientConfig) => Layer.Layer<SFNService, never, never>;
213
+ static readonly layer: (config: SFNService.Config) => Layer.Layer<SFNService, never, never>;
224
214
  static readonly baseLayer: (evaluate: (defaultConfig: SFNClientConfig) => SFNClient) => Layer.Layer<SFNService, never, never>;
225
215
  }
226
216
  /**
227
217
  * @since 1.0.0
228
- * @category models
229
- * @alias SFNService
230
- */
231
- export declare const SFN: typeof SFNService;
232
- /**
233
- * @since 1.0.0
234
- * @category layers
235
- * @deprecated use SFN.baseLayer instead
236
218
  */
237
- export declare const BaseSFNServiceLayer: Layer.Layer<SFNService, never, SFNClientInstance>;
238
- /**
239
- * @since 1.0.0
240
- * @category layers
241
- * @deprecated use SFN.layer instead
242
- */
243
- export declare const SFNServiceLayer: Layer.Layer<SFNService, never, SFNClientInstanceConfig>;
244
- /**
245
- * @since 1.0.0
246
- * @category layers
247
- * @deprecated use SFN.defaultLayer instead
248
- */
249
- export declare const DefaultSFNServiceLayer: Layer.Layer<SFNService, never, never>;
219
+ export declare namespace SFNService {
220
+ /**
221
+ * @since 1.0.0
222
+ */
223
+ interface Config extends Omit<SFNClientConfig, "logger"> {
224
+ readonly logger?: ServiceLogger.ServiceLoggerConstructorProps | true;
225
+ }
226
+ }
250
227
  export {};
228
+ //# sourceMappingURL=SFNService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SFNService.d.ts","sourceRoot":"","sources":["../../src/SFNService.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAEL,KAAK,0BAA0B,EAC/B,KAAK,2BAA2B,EAEhC,KAAK,mCAAmC,EACxC,KAAK,oCAAoC,EAEzC,KAAK,8BAA8B,EACnC,KAAK,+BAA+B,EAEpC,KAAK,0BAA0B,EAC/B,KAAK,2BAA2B,EAEhC,KAAK,mCAAmC,EACxC,KAAK,oCAAoC,EAEzC,KAAK,8BAA8B,EACnC,KAAK,+BAA+B,EAEpC,KAAK,qCAAqC,EAC1C,KAAK,sCAAsC,EAE3C,KAAK,4BAA4B,EACjC,KAAK,6BAA6B,EAElC,KAAK,6BAA6B,EAClC,KAAK,8BAA8B,EAEnC,KAAK,0BAA0B,EAC/B,KAAK,2BAA2B,EAEhC,KAAK,qCAAqC,EAC1C,KAAK,sCAAsC,EAE3C,KAAK,gCAAgC,EACrC,KAAK,iCAAiC,EAEtC,KAAK,4CAA4C,EACjD,KAAK,6CAA6C,EAElD,KAAK,2BAA2B,EAChC,KAAK,4BAA4B,EAEjC,KAAK,+BAA+B,EACpC,KAAK,gCAAgC,EAErC,KAAK,0BAA0B,EAC/B,KAAK,2BAA2B,EAEhC,KAAK,0BAA0B,EAC/B,KAAK,2BAA2B,EAEhC,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAE7B,KAAK,mCAAmC,EACxC,KAAK,oCAAoC,EAEzC,KAAK,6BAA6B,EAClC,KAAK,8BAA8B,EAEnC,KAAK,oCAAoC,EACzC,KAAK,qCAAqC,EAE1C,KAAK,+BAA+B,EACpC,KAAK,gCAAgC,EAErC,KAAK,sCAAsC,EAC3C,KAAK,uCAAuC,EAE5C,KAAK,4BAA4B,EACjC,KAAK,6BA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AE,aAAa,CAAC,6BAA6B,GAAG,IAAI,CAAC;KACtE;CACF"}
@@ -0,0 +1,93 @@
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.SFNService = exports.makeSFNService = void 0;
27
+ /**
28
+ * @since 1.0.0
29
+ */
30
+ const client_sfn_1 = require("@aws-sdk/client-sfn");
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("./SFNClientInstance.js"));
35
+ const SFNServiceConfig = __importStar(require("./SFNServiceConfig.js"));
36
+ const commands = {
37
+ CreateActivityCommand: client_sfn_1.CreateActivityCommand,
38
+ CreateStateMachineCommand: client_sfn_1.CreateStateMachineCommand,
39
+ CreateStateMachineAliasCommand: client_sfn_1.CreateStateMachineAliasCommand,
40
+ DeleteActivityCommand: client_sfn_1.DeleteActivityCommand,
41
+ DeleteStateMachineCommand: client_sfn_1.DeleteStateMachineCommand,
42
+ DeleteStateMachineAliasCommand: client_sfn_1.DeleteStateMachineAliasCommand,
43
+ DeleteStateMachineVersionCommand: client_sfn_1.DeleteStateMachineVersionCommand,
44
+ DescribeActivityCommand: client_sfn_1.DescribeActivityCommand,
45
+ DescribeExecutionCommand: client_sfn_1.DescribeExecutionCommand,
46
+ DescribeMapRunCommand: client_sfn_1.DescribeMapRunCommand,
47
+ DescribeStateMachineCommand: client_sfn_1.DescribeStateMachineCommand,
48
+ DescribeStateMachineAliasCommand: client_sfn_1.DescribeStateMachineAliasCommand,
49
+ DescribeStateMachineForExecutionCommand: client_sfn_1.DescribeStateMachineForExecutionCommand,
50
+ GetActivityTaskCommand: client_sfn_1.GetActivityTaskCommand,
51
+ GetExecutionHistoryCommand: client_sfn_1.GetExecutionHistoryCommand,
52
+ ListActivitiesCommand: client_sfn_1.ListActivitiesCommand,
53
+ ListExecutionsCommand: client_sfn_1.ListExecutionsCommand,
54
+ ListMapRunsCommand: client_sfn_1.ListMapRunsCommand,
55
+ ListStateMachineAliasesCommand: client_sfn_1.ListStateMachineAliasesCommand,
56
+ ListStateMachineVersionsCommand: client_sfn_1.ListStateMachineVersionsCommand,
57
+ ListStateMachinesCommand: client_sfn_1.ListStateMachinesCommand,
58
+ ListTagsForResourceCommand: client_sfn_1.ListTagsForResourceCommand,
59
+ PublishStateMachineVersionCommand: client_sfn_1.PublishStateMachineVersionCommand,
60
+ RedriveExecutionCommand: client_sfn_1.RedriveExecutionCommand,
61
+ SendTaskFailureCommand: client_sfn_1.SendTaskFailureCommand,
62
+ SendTaskHeartbeatCommand: client_sfn_1.SendTaskHeartbeatCommand,
63
+ SendTaskSuccessCommand: client_sfn_1.SendTaskSuccessCommand,
64
+ StartExecutionCommand: client_sfn_1.StartExecutionCommand,
65
+ StartSyncExecutionCommand: client_sfn_1.StartSyncExecutionCommand,
66
+ StopExecutionCommand: client_sfn_1.StopExecutionCommand,
67
+ TagResourceCommand: client_sfn_1.TagResourceCommand,
68
+ TestStateCommand: client_sfn_1.TestStateCommand,
69
+ UntagResourceCommand: client_sfn_1.UntagResourceCommand,
70
+ UpdateMapRunCommand: client_sfn_1.UpdateMapRunCommand,
71
+ UpdateStateMachineCommand: client_sfn_1.UpdateStateMachineCommand,
72
+ UpdateStateMachineAliasCommand: client_sfn_1.UpdateStateMachineAliasCommand,
73
+ ValidateStateMachineDefinitionCommand: client_sfn_1.ValidateStateMachineDefinitionCommand,
74
+ };
75
+ /**
76
+ * @since 1.0.0
77
+ * @category constructors
78
+ */
79
+ exports.makeSFNService = effect_1.Effect.gen(function* () {
80
+ const client = yield* Instance.SFNClientInstance;
81
+ return commons_1.Service.fromClientAndCommands(client, commands, Errors_js_1.AllServiceErrors);
82
+ });
83
+ /**
84
+ * @since 1.0.0
85
+ * @category models
86
+ */
87
+ class SFNService extends effect_1.Effect.Tag("@effect-aws/client-sfn/SFNService")() {
88
+ static defaultLayer = effect_1.Layer.effect(this, exports.makeSFNService).pipe(effect_1.Layer.provide(Instance.layer));
89
+ static layer = (config) => effect_1.Layer.effect(this, exports.makeSFNService).pipe(effect_1.Layer.provide(Instance.layer), effect_1.Layer.provide(SFNServiceConfig.setSFNServiceConfig(config)));
90
+ static baseLayer = (evaluate) => effect_1.Layer.effect(this, exports.makeSFNService).pipe(effect_1.Layer.provide(effect_1.Layer.effect(Instance.SFNClientInstance, effect_1.Effect.map(SFNServiceConfig.toSFNClientConfig, evaluate))));
91
+ }
92
+ exports.SFNService = SFNService;
93
+ //# sourceMappingURL=SFNService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SFNService.js","sourceRoot":"","sources":["../../src/SFNService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,oDAkH6B;AAE7B,iDAA8C;AAC9C,mCAAuC;AAoCvC,2CAA+C;AAC/C,iEAAmD;AACnD,wEAA0D;AAE1D,MAAM,QAAQ,GAAG;IACf,qBAAqB,EAArB,kCAAqB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AiB,CAAC;IAEjD,OAAO,iBAAO,CAAC,qBAAqB,CAAc,MAAM,EAAE,QAAQ,EAAE,4BAAgB,CAAC,CAAC;AACxF,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAa,UAAW,SAAQ,eAAM,CAAC,GAAG,CAAC,mCAAmC,CAAC,EAG5E;IACD,MAAM,CAAU,YAAY,GAAG,cAAK,CAAC,MAAM,CAAC,IAAI,EAAE,sBAAc,CAAC,CAAC,IAAI,CAAC,cAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC;IACtG,MAAM,CAAU,KAAK,GAAG,CAAC,MAAyB,EAAE,EAAE,CACpD,cAAK,CAAC,MAAM,CAAC,IAAI,EAAE,sBAAc,CAAC,CAAC,IAAI,CACrC,cAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,EAC7B,cAAK,CAAC,OAAO,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,MAAM,CAAC,CAAC,CAC5D,CAAC;IACJ,MAAM,CAAU,SAAS,GAAG,CAC1B,QAAuD,EACvD,EAAE,CACF,cAAK,CAAC,MAAM,CAAC,IAAI,EAAE,sBAAc,CAAC,CAAC,IAAI,CACrC,cAAK,CAAC,OAAO,CACX,cAAK,CAAC,MAAM,CACV,QAAQ,CAAC,iBAAiB,EAC1B,eAAM,CAAC,GAAG,CAAC,gBAAgB,CAAC,iBAAiB,EAAE,QAAQ,CAAC,CACzD,CACF,CACF,CAAC;;AApBN,gCAqBC"}
@@ -0,0 +1,25 @@
1
+ /**
2
+ * @since 1.0.0
3
+ */
4
+ import type { SFNClientConfig } from "@aws-sdk/client-sfn";
5
+ import { Effect, Layer } from "effect";
6
+ import type { SFNService } from "./SFNService.js";
7
+ /**
8
+ * @since 1.0.0
9
+ * @category sfn service config
10
+ */
11
+ export declare const withSFNServiceConfig: {
12
+ (config: SFNService.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: SFNService.Config): Effect.Effect<A, E, R>;
14
+ };
15
+ /**
16
+ * @since 1.0.0
17
+ * @category sfn service config
18
+ */
19
+ export declare const setSFNServiceConfig: (config: SFNService.Config) => Layer.Layer<never, never, never>;
20
+ /**
21
+ * @since 1.0.0
22
+ * @category adapters
23
+ */
24
+ export declare const toSFNClientConfig: Effect.Effect<SFNClientConfig>;
25
+ //# sourceMappingURL=SFNServiceConfig.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SFNServiceConfig.d.ts","sourceRoot":"","sources":["../../src/SFNServiceConfig.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE3D,OAAO,EAAE,MAAM,EAAY,KAAK,EAAE,MAAM,QAAQ,CAAC;AAGjD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAWlD;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE;IACjC,CAAC,MAAM,EAAE,UAAU,CAAC,MAAM,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,KAAK,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IACjG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;CAK9F,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,mBAAmB,WAAY,WAAW,MAAM,qCAAyD,CAAC;AAEvH;;;GAGG;AACH,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,CAAC,eAAe,CAQ3D,CAAC"}
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.toSFNClientConfig = exports.setSFNServiceConfig = exports.withSFNServiceConfig = 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 sfn service config
11
+ */
12
+ const currentSFNServiceConfig = (0, GlobalValue_1.globalValue)("@effect-aws/client-sfn/currentSFNServiceConfig", () => effect_1.FiberRef.unsafeMake({}));
13
+ /**
14
+ * @since 1.0.0
15
+ * @category sfn service config
16
+ */
17
+ exports.withSFNServiceConfig = (0, Function_1.dual)(2, (effect, config) => effect_1.Effect.locally(effect, currentSFNServiceConfig, config));
18
+ /**
19
+ * @since 1.0.0
20
+ * @category sfn service config
21
+ */
22
+ const setSFNServiceConfig = (config) => effect_1.Layer.locallyScoped(currentSFNServiceConfig, config);
23
+ exports.setSFNServiceConfig = setSFNServiceConfig;
24
+ /**
25
+ * @since 1.0.0
26
+ * @category adapters
27
+ */
28
+ exports.toSFNClientConfig = effect_1.Effect.gen(function* () {
29
+ const { logger: serviceLogger, ...config } = yield* effect_1.FiberRef.get(currentSFNServiceConfig);
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=SFNServiceConfig.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SFNServiceConfig.js","sourceRoot":"","sources":["../../src/SFNServiceConfig.ts"],"names":[],"mappings":";;;AAIA,iDAAoD;AACpD,mCAAiD;AACjD,8CAAuC;AACvC,oD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**
10
+ * @since 1.0.0
11
+ */
12
+ export * as SFNClientInstance from "./SFNClientInstance.js";
13
+ /**
14
+ * @since 1.0.0
15
+ */
16
+ export * as SFNServiceConfig from "./SFNServiceConfig.js";
17
+ /**
18
+ * @since 1.0.0
19
+ */
20
+ export * from "./SFNService.js";
21
+ /**
22
+ * @since 1.0.0
23
+ * @category exports
24
+ * @alias SFNService
25
+ */
26
+ export declare namespace SFN {
27
+ /**
28
+ * @since 1.0.0
29
+ * @alias SFNService.Config
30
+ */
31
+ type Config = SFNService.Config;
32
+ }
33
+ /**
34
+ * @since 1.0.0
35
+ * @category exports
36
+ * @alias SFNService
37
+ */
38
+ export declare const SFN: typeof SFNService;
39
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C;;GAEG;AACH,cAAc,aAAa,CAAC;AAE5B;;GAEG;AACH,OAAO,KAAK,iBAAiB,MAAM,wBAAwB,CAAC;AAE5D;;GAEG;AACH,OAAO,KAAK,gBAAgB,MAAM,uBAAuB,CAAC;AAE1D;;GAEG;AACH,cAAc,iBAAiB,CAAC;AAEhC;;;;GAIG;AACH,MAAM,CAAC,OAAO,WAAW,GAAG,CAAC;IAC3B;;;OAGG;IACH,KAAY,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;CACxC;AAED;;;;GAIG;AACH,eAAO,MAAM,GAAG,mBAAa,CAAC"}
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
19
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
20
+ };
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.SFN = exports.SFNServiceConfig = exports.SFNClientInstance = void 0;
30
+ /**
31
+ * @since 1.0.0
32
+ */
33
+ const SFNService_js_1 = require("./SFNService.js");
34
+ /**
35
+ * @since 1.0.0
36
+ */
37
+ __exportStar(require("./Errors.js"), exports);
38
+ /**
39
+ * @since 1.0.0
40
+ */
41
+ exports.SFNClientInstance = __importStar(require("./SFNClientInstance.js"));
42
+ /**
43
+ * @since 1.0.0
44
+ */
45
+ exports.SFNServiceConfig = __importStar(require("./SFNServiceConfig.js"));
46
+ /**
47
+ * @since 1.0.0
48
+ */
49
+ __exportStar(require("./SFNService.js"), exports);
50
+ /**
51
+ * @since 1.0.0
52
+ * @category exports
53
+ * @alias SFNService
54
+ */
55
+ exports.SFN = SFNService_js_1.SFNService;
56
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,mDAA6C;AAE7C;;GAEG;AACH,8CAA4B;AAE5B;;GAEG;AACH,4EAA4D;AAE5D;;GAEG;AACH,0EAA0D;AAE1D;;GAEG;AACH,kDAAgC;AAehC;;;;GAIG;AACU,QAAA,GAAG,GAAG,0BAAU,CAAC"}