@effect-aws/client-account 1.10.9 → 2.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +3 -3
- package/dist/dts/AccountClientInstance.d.ts +4 -2
- package/dist/dts/AccountClientInstance.d.ts.map +1 -1
- package/dist/dts/AccountService.d.ts +20 -20
- package/dist/dts/AccountService.d.ts.map +1 -1
- package/dist/dts/AccountServiceConfig.d.ts +2 -1
- package/dist/dts/AccountServiceConfig.d.ts.map +1 -1
- package/dist/esm/AccountClientInstance.js +5 -3
- package/dist/esm/AccountClientInstance.js.map +1 -1
- package/dist/esm/AccountService.js +4 -2
- package/dist/esm/AccountService.js.map +1 -1
- package/dist/esm/AccountServiceConfig.js +7 -6
- package/dist/esm/AccountServiceConfig.js.map +1 -1
- package/package.json +8 -14
- package/src/AccountClientInstance.ts +6 -4
- package/src/AccountService.ts +21 -19
- package/src/AccountServiceConfig.ts +8 -7
- package/dist/cjs/AccountClientInstance.d.ts +0 -24
- package/dist/cjs/AccountClientInstance.d.ts.map +0 -1
- package/dist/cjs/AccountClientInstance.js +0 -50
- package/dist/cjs/AccountClientInstance.js.map +0 -1
- package/dist/cjs/AccountService.d.ts +0 -106
- package/dist/cjs/AccountService.d.ts.map +0 -1
- package/dist/cjs/AccountService.js +0 -74
- package/dist/cjs/AccountService.js.map +0 -1
- package/dist/cjs/AccountServiceConfig.d.ts +0 -25
- package/dist/cjs/AccountServiceConfig.d.ts.map +0 -1
- package/dist/cjs/AccountServiceConfig.js +0 -35
- package/dist/cjs/AccountServiceConfig.js.map +0 -1
- package/dist/cjs/Errors.d.ts +0 -14
- package/dist/cjs/Errors.d.ts.map +0 -1
- package/dist/cjs/Errors.js +0 -13
- package/dist/cjs/Errors.js.map +0 -1
- package/dist/cjs/index.d.ts +0 -44
- package/dist/cjs/index.d.ts.map +0 -1
- package/dist/cjs/index.js +0 -56
- package/dist/cjs/index.js.map +0 -1
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@ With default AccountClient instance:
|
|
|
16
16
|
```typescript
|
|
17
17
|
import { Account } from "@effect-aws/client-account";
|
|
18
18
|
|
|
19
|
-
const program = Account.listRegions(args);
|
|
19
|
+
const program = Account.use((svc) => svc.listRegions(args));
|
|
20
20
|
|
|
21
21
|
const result = pipe(
|
|
22
22
|
program,
|
|
@@ -30,7 +30,7 @@ With custom AccountClient instance:
|
|
|
30
30
|
```typescript
|
|
31
31
|
import { Account } from "@effect-aws/client-account";
|
|
32
32
|
|
|
33
|
-
const program = Account.listRegions(args);
|
|
33
|
+
const program = Account.use((svc) => svc.listRegions(args));
|
|
34
34
|
|
|
35
35
|
const result = await pipe(
|
|
36
36
|
program,
|
|
@@ -46,7 +46,7 @@ With custom AccountClient configuration:
|
|
|
46
46
|
```typescript
|
|
47
47
|
import { Account } from "@effect-aws/client-account";
|
|
48
48
|
|
|
49
|
-
const program = Account.listRegions(args);
|
|
49
|
+
const program = Account.use((svc) => svc.listRegions(args));
|
|
50
50
|
|
|
51
51
|
const result = await pipe(
|
|
52
52
|
program,
|
|
@@ -2,8 +2,10 @@
|
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
4
|
import { AccountClient } from "@aws-sdk/client-account";
|
|
5
|
-
import
|
|
6
|
-
|
|
5
|
+
import * as Effect from "effect/Effect";
|
|
6
|
+
import * as Layer from "effect/Layer";
|
|
7
|
+
import * as ServiceMap from "effect/ServiceMap";
|
|
8
|
+
declare const AccountClientInstance_base: ServiceMap.ServiceClass<AccountClientInstance, "@effect-aws/client-account/AccountClientInstance", AccountClient>;
|
|
7
9
|
/**
|
|
8
10
|
* @since 1.0.0
|
|
9
11
|
* @category tags
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccountClientInstance.d.ts","sourceRoot":"","sources":["../../src/AccountClientInstance.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,
|
|
1
|
+
{"version":3,"file":"AccountClientInstance.d.ts","sourceRoot":"","sources":["../../src/AccountClientInstance.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;;AAGhD;;;GAGG;AACH,qBAAa,qBAAsB,SAAQ,0BAE1C;CAAG;AAEJ;;;GAGG;AACH,eAAO,MAAM,IAAI,mEAOhB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,KAAK,kDAA4C,CAAC"}
|
|
@@ -3,8 +3,10 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { type AcceptPrimaryEmailUpdateCommandInput, type AcceptPrimaryEmailUpdateCommandOutput, type AccountClient, type AccountClientConfig, type DeleteAlternateContactCommandInput, type DeleteAlternateContactCommandOutput, type DisableRegionCommandInput, type DisableRegionCommandOutput, type EnableRegionCommandInput, type EnableRegionCommandOutput, type GetAccountInformationCommandInput, type GetAccountInformationCommandOutput, type GetAlternateContactCommandInput, type GetAlternateContactCommandOutput, type GetContactInformationCommandInput, type GetContactInformationCommandOutput, type GetGovCloudAccountInformationCommandInput, type GetGovCloudAccountInformationCommandOutput, type GetPrimaryEmailCommandInput, type GetPrimaryEmailCommandOutput, type GetRegionOptStatusCommandInput, type GetRegionOptStatusCommandOutput, type ListRegionsCommandInput, type ListRegionsCommandOutput, type PutAccountNameCommandInput, type PutAccountNameCommandOutput, type PutAlternateContactCommandInput, type PutAlternateContactCommandOutput, type PutContactInformationCommandInput, type PutContactInformationCommandOutput, type StartPrimaryEmailUpdateCommandInput, type StartPrimaryEmailUpdateCommandOutput } from "@aws-sdk/client-account";
|
|
5
5
|
import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons";
|
|
6
|
-
import type
|
|
7
|
-
import
|
|
6
|
+
import type * as Cause from "effect/Cause";
|
|
7
|
+
import * as Effect from "effect/Effect";
|
|
8
|
+
import * as Layer from "effect/Layer";
|
|
9
|
+
import * as ServiceMap from "effect/ServiceMap";
|
|
8
10
|
import * as Instance from "./AccountClientInstance.js";
|
|
9
11
|
import type { AccessDeniedError, ConflictError, InternalServerError, ResourceNotFoundError, ResourceUnavailableError, SdkError, TooManyRequestsError, ValidationError } from "./Errors.js";
|
|
10
12
|
interface AccountService$ {
|
|
@@ -12,72 +14,70 @@ interface AccountService$ {
|
|
|
12
14
|
/**
|
|
13
15
|
* @see {@link AcceptPrimaryEmailUpdateCommand}
|
|
14
16
|
*/
|
|
15
|
-
acceptPrimaryEmailUpdate(args: AcceptPrimaryEmailUpdateCommandInput, options?: HttpHandlerOptions): Effect.Effect<AcceptPrimaryEmailUpdateCommandOutput, Cause.
|
|
17
|
+
acceptPrimaryEmailUpdate(args: AcceptPrimaryEmailUpdateCommandInput, options?: HttpHandlerOptions): Effect.Effect<AcceptPrimaryEmailUpdateCommandOutput, Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError | InternalServerError | ResourceNotFoundError | TooManyRequestsError | ValidationError>;
|
|
16
18
|
/**
|
|
17
19
|
* @see {@link DeleteAlternateContactCommand}
|
|
18
20
|
*/
|
|
19
|
-
deleteAlternateContact(args: DeleteAlternateContactCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteAlternateContactCommandOutput, Cause.
|
|
21
|
+
deleteAlternateContact(args: DeleteAlternateContactCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteAlternateContactCommandOutput, Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | ResourceNotFoundError | TooManyRequestsError | ValidationError>;
|
|
20
22
|
/**
|
|
21
23
|
* @see {@link DisableRegionCommand}
|
|
22
24
|
*/
|
|
23
|
-
disableRegion(args: DisableRegionCommandInput, options?: HttpHandlerOptions): Effect.Effect<DisableRegionCommandOutput, Cause.
|
|
25
|
+
disableRegion(args: DisableRegionCommandInput, options?: HttpHandlerOptions): Effect.Effect<DisableRegionCommandOutput, Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError | InternalServerError | TooManyRequestsError | ValidationError>;
|
|
24
26
|
/**
|
|
25
27
|
* @see {@link EnableRegionCommand}
|
|
26
28
|
*/
|
|
27
|
-
enableRegion(args: EnableRegionCommandInput, options?: HttpHandlerOptions): Effect.Effect<EnableRegionCommandOutput, Cause.
|
|
29
|
+
enableRegion(args: EnableRegionCommandInput, options?: HttpHandlerOptions): Effect.Effect<EnableRegionCommandOutput, Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError | InternalServerError | TooManyRequestsError | ValidationError>;
|
|
28
30
|
/**
|
|
29
31
|
* @see {@link GetAccountInformationCommand}
|
|
30
32
|
*/
|
|
31
|
-
getAccountInformation(args: GetAccountInformationCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetAccountInformationCommandOutput, Cause.
|
|
33
|
+
getAccountInformation(args: GetAccountInformationCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetAccountInformationCommandOutput, Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | TooManyRequestsError | ValidationError>;
|
|
32
34
|
/**
|
|
33
35
|
* @see {@link GetAlternateContactCommand}
|
|
34
36
|
*/
|
|
35
|
-
getAlternateContact(args: GetAlternateContactCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetAlternateContactCommandOutput, Cause.
|
|
37
|
+
getAlternateContact(args: GetAlternateContactCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetAlternateContactCommandOutput, Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | ResourceNotFoundError | TooManyRequestsError | ValidationError>;
|
|
36
38
|
/**
|
|
37
39
|
* @see {@link GetContactInformationCommand}
|
|
38
40
|
*/
|
|
39
|
-
getContactInformation(args: GetContactInformationCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetContactInformationCommandOutput, Cause.
|
|
41
|
+
getContactInformation(args: GetContactInformationCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetContactInformationCommandOutput, Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | ResourceNotFoundError | TooManyRequestsError | ValidationError>;
|
|
40
42
|
/**
|
|
41
43
|
* @see {@link GetGovCloudAccountInformationCommand}
|
|
42
44
|
*/
|
|
43
|
-
getGovCloudAccountInformation(args: GetGovCloudAccountInformationCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetGovCloudAccountInformationCommandOutput, Cause.
|
|
45
|
+
getGovCloudAccountInformation(args: GetGovCloudAccountInformationCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetGovCloudAccountInformationCommandOutput, Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | ResourceNotFoundError | ResourceUnavailableError | TooManyRequestsError | ValidationError>;
|
|
44
46
|
/**
|
|
45
47
|
* @see {@link GetPrimaryEmailCommand}
|
|
46
48
|
*/
|
|
47
|
-
getPrimaryEmail(args: GetPrimaryEmailCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetPrimaryEmailCommandOutput, Cause.
|
|
49
|
+
getPrimaryEmail(args: GetPrimaryEmailCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetPrimaryEmailCommandOutput, Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | ResourceNotFoundError | TooManyRequestsError | ValidationError>;
|
|
48
50
|
/**
|
|
49
51
|
* @see {@link GetRegionOptStatusCommand}
|
|
50
52
|
*/
|
|
51
|
-
getRegionOptStatus(args: GetRegionOptStatusCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetRegionOptStatusCommandOutput, Cause.
|
|
53
|
+
getRegionOptStatus(args: GetRegionOptStatusCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetRegionOptStatusCommandOutput, Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | TooManyRequestsError | ValidationError>;
|
|
52
54
|
/**
|
|
53
55
|
* @see {@link ListRegionsCommand}
|
|
54
56
|
*/
|
|
55
|
-
listRegions(args: ListRegionsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListRegionsCommandOutput, Cause.
|
|
57
|
+
listRegions(args: ListRegionsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListRegionsCommandOutput, Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | TooManyRequestsError | ValidationError>;
|
|
56
58
|
/**
|
|
57
59
|
* @see {@link PutAccountNameCommand}
|
|
58
60
|
*/
|
|
59
|
-
putAccountName(args: PutAccountNameCommandInput, options?: HttpHandlerOptions): Effect.Effect<PutAccountNameCommandOutput, Cause.
|
|
61
|
+
putAccountName(args: PutAccountNameCommandInput, options?: HttpHandlerOptions): Effect.Effect<PutAccountNameCommandOutput, Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | TooManyRequestsError | ValidationError>;
|
|
60
62
|
/**
|
|
61
63
|
* @see {@link PutAlternateContactCommand}
|
|
62
64
|
*/
|
|
63
|
-
putAlternateContact(args: PutAlternateContactCommandInput, options?: HttpHandlerOptions): Effect.Effect<PutAlternateContactCommandOutput, Cause.
|
|
65
|
+
putAlternateContact(args: PutAlternateContactCommandInput, options?: HttpHandlerOptions): Effect.Effect<PutAlternateContactCommandOutput, Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | TooManyRequestsError | ValidationError>;
|
|
64
66
|
/**
|
|
65
67
|
* @see {@link PutContactInformationCommand}
|
|
66
68
|
*/
|
|
67
|
-
putContactInformation(args: PutContactInformationCommandInput, options?: HttpHandlerOptions): Effect.Effect<PutContactInformationCommandOutput, Cause.
|
|
69
|
+
putContactInformation(args: PutContactInformationCommandInput, options?: HttpHandlerOptions): Effect.Effect<PutContactInformationCommandOutput, Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | TooManyRequestsError | ValidationError>;
|
|
68
70
|
/**
|
|
69
71
|
* @see {@link StartPrimaryEmailUpdateCommand}
|
|
70
72
|
*/
|
|
71
|
-
startPrimaryEmailUpdate(args: StartPrimaryEmailUpdateCommandInput, options?: HttpHandlerOptions): Effect.Effect<StartPrimaryEmailUpdateCommandOutput, Cause.
|
|
73
|
+
startPrimaryEmailUpdate(args: StartPrimaryEmailUpdateCommandInput, options?: HttpHandlerOptions): Effect.Effect<StartPrimaryEmailUpdateCommandOutput, Cause.TimeoutError | SdkError | AccessDeniedError | ConflictError | InternalServerError | ResourceNotFoundError | TooManyRequestsError | ValidationError>;
|
|
72
74
|
}
|
|
73
75
|
/**
|
|
74
76
|
* @since 1.0.0
|
|
75
77
|
* @category constructors
|
|
76
78
|
*/
|
|
77
79
|
export declare const makeAccountService: Effect.Effect<AccountService$, never, Instance.AccountClientInstance>;
|
|
78
|
-
declare const AccountService_base:
|
|
79
|
-
use: <X>(body: (_: AccountService$) => X) => [X] extends [Effect.Effect<infer A, infer E, infer R>] ? Effect.Effect<A, E, AccountService | R> : [X] extends [PromiseLike<infer A_1>] ? Effect.Effect<A_1, Cause.UnknownException, AccountService> : Effect.Effect<X, never, AccountService>;
|
|
80
|
-
};
|
|
80
|
+
declare const AccountService_base: ServiceMap.ServiceClass<AccountService, "@effect-aws/client-account/AccountService", AccountService$>;
|
|
81
81
|
/**
|
|
82
82
|
* @since 1.0.0
|
|
83
83
|
* @category models
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccountService.d.ts","sourceRoot":"","sources":["../../src/AccountService.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAEL,KAAK,oCAAoC,EACzC,KAAK,qCAAqC,EAC1C,KAAK,aAAa,EAClB,KAAK,mBAAmB,EAExB,KAAK,kCAAkC,EACvC,KAAK,mCAAmC,EAExC,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,EAE/B,KAAK,wBAAwB,EAC7B,KAAK,yBAAyB,EAE9B,KAAK,iCAAiC,EACtC,KAAK,kCAAkC,EAEvC,KAAK,+BAA+B,EACpC,KAAK,gCAAgC,EAErC,KAAK,iCAAiC,EACtC,KAAK,kCAAkC,EAE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O,CAAC,EAAE,kBAAkB,GAC3B,MAAM,CAAC,MAAM,CACd,kCAAkC,EAClC,KAAK,CAAC,YAAY,GAAG,QAAQ,GAAG,iBAAiB,GAAG,mBAAmB,GAAG,oBAAoB,GAAG,eAAe,CACjH,CAAC;IAEF;;OAEG;IACH,uBAAuB,CACrB,IAAI,EAAE,mCAAmC,EACzC,OAAO,CAAC,EAAE,kBAAkB,GAC3B,MAAM,CAAC,MAAM,CACd,oCAAoC,EAClC,KAAK,CAAC,YAAY,GAClB,QAAQ,GACR,iBAAiB,GACjB,aAAa,GACb,mBAAmB,GACnB,qBAAqB,GACrB,oBAAoB,GACpB,eAAe,CAClB,CAAC;CACH;AAED;;;GAGG;AACH,eAAO,MAAM,kBAAkB,uEAW7B,CAAC;;AAEH;;;GAGG;AACH,qBAAa,cAAe,SAAQ,mBAGY;IAC9C,MAAM,CAAC,QAAQ,CAAC,YAAY,4CAA8E;IAC1G,MAAM,CAAC,QAAQ,CAAC,KAAK,WAAY,eAAe,MAAM,+CAIlD;IACJ,MAAM,CAAC,QAAQ,CAAC,SAAS,aACb,CAAC,aAAa,EAAE,mBAAmB,KAAK,aAAa,+CAS7D;CACL;AAED;;GAEG;AACH,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC;IACtC;;OAEG;IACH,UAAiB,MAAO,SAAQ,IAAI,CAAC,mBAAmB,EAAE,QAAQ,CAAC;QACjE,QAAQ,CAAC,MAAM,CAAC,EAAE,aAAa,CAAC,6BAA6B,GAAG,IAAI,CAAC;KACtE;IAED;;OAEG;IACH,KAAY,IAAI,GAAG,eAAe,CAAC;CACpC"}
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
4
|
import type { AccountClientConfig } from "@aws-sdk/client-account";
|
|
5
|
-
import
|
|
5
|
+
import * as Effect from "effect/Effect";
|
|
6
|
+
import * as Layer from "effect/Layer";
|
|
6
7
|
import type { AccountService } from "./AccountService.js";
|
|
7
8
|
/**
|
|
8
9
|
* @since 1.0.0
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccountServiceConfig.d.ts","sourceRoot":"","sources":["../../src/AccountServiceConfig.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAEnE,OAAO,
|
|
1
|
+
{"version":3,"file":"AccountServiceConfig.d.ts","sourceRoot":"","sources":["../../src/AccountServiceConfig.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAEnE,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AAEtC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAW1D;;;GAGG;AACH,eAAO,MAAM,wBAAwB,EAAE;IACrC,CAAC,MAAM,EAAE,cAAc,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;IACrG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,cAAc,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;CAKlG,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,uBAAuB,WAAY,eAAe,MAAM,qCACjB,CAAC;AAErD;;;GAGG;AACH,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,MAAM,CAAC,mBAAmB,CAQnE,CAAC"}
|
|
@@ -2,13 +2,15 @@
|
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
4
|
import { AccountClient } from "@aws-sdk/client-account";
|
|
5
|
-
import
|
|
5
|
+
import * as Effect from "effect/Effect";
|
|
6
|
+
import * as Layer from "effect/Layer";
|
|
7
|
+
import * as ServiceMap from "effect/ServiceMap";
|
|
6
8
|
import * as AccountServiceConfig from "./AccountServiceConfig.js";
|
|
7
9
|
/**
|
|
8
10
|
* @since 1.0.0
|
|
9
11
|
* @category tags
|
|
10
12
|
*/
|
|
11
|
-
export class AccountClientInstance extends
|
|
13
|
+
export class AccountClientInstance extends ServiceMap.Service()("@effect-aws/client-account/AccountClientInstance") {
|
|
12
14
|
}
|
|
13
15
|
/**
|
|
14
16
|
* @since 1.0.0
|
|
@@ -19,5 +21,5 @@ export const make = Effect.flatMap(AccountServiceConfig.toAccountClientConfig, (
|
|
|
19
21
|
* @since 1.0.0
|
|
20
22
|
* @category layers
|
|
21
23
|
*/
|
|
22
|
-
export const layer = Layer.
|
|
24
|
+
export const layer = Layer.effect(AccountClientInstance, make);
|
|
23
25
|
//# sourceMappingURL=AccountClientInstance.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccountClientInstance.js","sourceRoot":"","sources":["../../src/AccountClientInstance.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,
|
|
1
|
+
{"version":3,"file":"AccountClientInstance.js","sourceRoot":"","sources":["../../src/AccountClientInstance.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,oBAAoB,MAAM,2BAA2B,CAAC;AAElE;;;GAGG;AACH,MAAM,OAAO,qBAAsB,SAAQ,UAAU,CAAC,OAAO,EAAwC,CACnG,kDAAkD,CACnD;CAAG;AAEJ;;;GAGG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG,MAAM,CAAC,OAAO,CAChC,oBAAoB,CAAC,qBAAqB,EAC1C,CAAC,MAAM,EAAE,EAAE,CACT,MAAM,CAAC,cAAc,CACnB,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,aAAa,CAAC,MAAM,CAAC,CAAC,EAC5C,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,qBAAqB,EAAE,IAAI,CAAC,CAAC"}
|
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { AcceptPrimaryEmailUpdateCommand, DeleteAlternateContactCommand, DisableRegionCommand, EnableRegionCommand, GetAccountInformationCommand, GetAlternateContactCommand, GetContactInformationCommand, GetGovCloudAccountInformationCommand, GetPrimaryEmailCommand, GetRegionOptStatusCommand, ListRegionsCommand, PutAccountNameCommand, PutAlternateContactCommand, PutContactInformationCommand, StartPrimaryEmailUpdateCommand, } from "@aws-sdk/client-account";
|
|
5
5
|
import { Service } from "@effect-aws/commons";
|
|
6
|
-
import
|
|
6
|
+
import * as Effect from "effect/Effect";
|
|
7
|
+
import * as Layer from "effect/Layer";
|
|
8
|
+
import * as ServiceMap from "effect/ServiceMap";
|
|
7
9
|
import * as Instance from "./AccountClientInstance.js";
|
|
8
10
|
import * as AccountServiceConfig from "./AccountServiceConfig.js";
|
|
9
11
|
import { AllServiceErrors } from "./Errors.js";
|
|
@@ -39,7 +41,7 @@ export const makeAccountService = Effect.gen(function* () {
|
|
|
39
41
|
* @since 1.0.0
|
|
40
42
|
* @category models
|
|
41
43
|
*/
|
|
42
|
-
export class AccountService extends
|
|
44
|
+
export class AccountService extends ServiceMap.Service()("@effect-aws/client-account/AccountService") {
|
|
43
45
|
static defaultLayer = Layer.effect(this, makeAccountService).pipe(Layer.provide(Instance.layer));
|
|
44
46
|
static layer = (config) => Layer.effect(this, makeAccountService).pipe(Layer.provide(Instance.layer), Layer.provide(AccountServiceConfig.setAccountServiceConfig(config)));
|
|
45
47
|
static baseLayer = (evaluate) => Layer.effect(this, makeAccountService).pipe(Layer.provide(Layer.effect(Instance.AccountClientInstance, Effect.map(AccountServiceConfig.toAccountClientConfig, evaluate))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccountService.js","sourceRoot":"","sources":["../../src/AccountService.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EACL,+BAA+B,EAK/B,6BAA6B,EAG7B,oBAAoB,EAGpB,mBAAmB,EAGnB,4BAA4B,EAG5B,0BAA0B,EAG1B,4BAA4B,EAG5B,oCAAoC,EAGpC,sBAAsB,EAGtB,yBAAyB,EAGzB,kBAAkB,EAGlB,qBAAqB,EAGrB,0BAA0B,EAG1B,4BAA4B,EAG5B,8BAA8B,GAG/B,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C,OAAO,
|
|
1
|
+
{"version":3,"file":"AccountService.js","sourceRoot":"","sources":["../../src/AccountService.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EACL,+BAA+B,EAK/B,6BAA6B,EAG7B,oBAAoB,EAGpB,mBAAmB,EAGnB,4BAA4B,EAG5B,0BAA0B,EAG1B,4BAA4B,EAG5B,oCAAoC,EAGpC,sBAAsB,EAGtB,yBAAyB,EAGzB,kBAAkB,EAGlB,qBAAqB,EAGrB,0BAA0B,EAG1B,4BAA4B,EAG5B,8BAA8B,GAG/B,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAE,OAAO,EAAE,M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,MAAM,CAAC,IAAI,EAAE,kBAAkB,CAAC,CAAC,IAAI,CACzC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,EAC7B,KAAK,CAAC,OAAO,CAAC,oBAAoB,CAAC,uBAAuB,CAAC,MAAM,CAAC,CAAC,CACpE,CAAC;IACJ,MAAM,CAAU,SAAS,GAAG,CAC1B,QAA+D,EAC/D,EAAE,CACF,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,kBAAkB,CAAC,CAAC,IAAI,CACzC,KAAK,CAAC,OAAO,CACX,KAAK,CAAC,MAAM,CACV,QAAQ,CAAC,qBAAqB,EAC9B,MAAM,CAAC,GAAG,CAAC,oBAAoB,CAAC,qBAAqB,EAAE,QAAQ,CAAC,CACjE,CACF,CACF,CAAC"}
|
|
@@ -1,28 +1,29 @@
|
|
|
1
1
|
import { ServiceLogger } from "@effect-aws/commons";
|
|
2
|
-
import
|
|
2
|
+
import * as Effect from "effect/Effect";
|
|
3
3
|
import { dual } from "effect/Function";
|
|
4
|
-
import
|
|
4
|
+
import * as Layer from "effect/Layer";
|
|
5
|
+
import * as ServiceMap from "effect/ServiceMap";
|
|
5
6
|
/**
|
|
6
7
|
* @since 1.0.0
|
|
7
8
|
* @category account service config
|
|
8
9
|
*/
|
|
9
|
-
const currentAccountServiceConfig =
|
|
10
|
+
const currentAccountServiceConfig = ServiceMap.Reference("@effect-aws/client-account/currentAccountServiceConfig", { defaultValue: () => ({}) });
|
|
10
11
|
/**
|
|
11
12
|
* @since 1.0.0
|
|
12
13
|
* @category account service config
|
|
13
14
|
*/
|
|
14
|
-
export const withAccountServiceConfig = dual(2, (effect, config) => Effect.
|
|
15
|
+
export const withAccountServiceConfig = dual(2, (effect, config) => Effect.provideService(effect, currentAccountServiceConfig, config));
|
|
15
16
|
/**
|
|
16
17
|
* @since 1.0.0
|
|
17
18
|
* @category account service config
|
|
18
19
|
*/
|
|
19
|
-
export const setAccountServiceConfig = (config) => Layer.
|
|
20
|
+
export const setAccountServiceConfig = (config) => Layer.succeed(currentAccountServiceConfig, config);
|
|
20
21
|
/**
|
|
21
22
|
* @since 1.0.0
|
|
22
23
|
* @category adapters
|
|
23
24
|
*/
|
|
24
25
|
export const toAccountClientConfig = Effect.gen(function* () {
|
|
25
|
-
const { logger: serviceLogger, ...config } = yield*
|
|
26
|
+
const { logger: serviceLogger, ...config } = yield* currentAccountServiceConfig;
|
|
26
27
|
const logger = serviceLogger === true
|
|
27
28
|
? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger)
|
|
28
29
|
: (serviceLogger ? yield* ServiceLogger.toClientLogger(ServiceLogger.make(serviceLogger)) : undefined);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccountServiceConfig.js","sourceRoot":"","sources":["../../src/AccountServiceConfig.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,
|
|
1
|
+
{"version":3,"file":"AccountServiceConfig.js","sourceRoot":"","sources":["../../src/AccountServiceConfig.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAGhD;;;GAGG;AACH,MAAM,2BAA2B,GAAG,UAAU,CAAC,SAAS,CACtD,wDAAwD,EACxD,EAAE,YAAY,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAC7B,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAGjC,IAAI,CACN,CAAC,EACD,CAAU,MAA8B,EAAE,MAA6B,EAA0B,EAAE,CACjG,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,2BAA2B,EAAE,MAAM,CAAC,CACrE,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,MAA6B,EAAE,EAAE,CACvE,KAAK,CAAC,OAAO,CAAC,2BAA2B,EAAE,MAAM,CAAC,CAAC;AAErD;;;GAGG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAuC,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IAC3F,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,GAAG,MAAM,EAAE,GAAG,KAAK,CAAC,CAAC,2BAA2B,CAAC;IAEhF,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-account",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-beta.1",
|
|
4
4
|
"description": "Effectful AWS Account client",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -16,40 +16,34 @@
|
|
|
16
16
|
"homepage": "https://floydspace.github.io/effect-aws/docs/client-account",
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@aws-sdk/client-account": "^3",
|
|
19
|
-
"@effect-aws/commons": "^0.
|
|
19
|
+
"@effect-aws/commons": "^1.0.0-beta.1"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
22
|
-
"effect": ">=
|
|
22
|
+
"effect": ">=4.0.0 <5.0.0"
|
|
23
23
|
},
|
|
24
|
-
"main": "./dist/cjs/index.js",
|
|
25
24
|
"module": "./dist/esm/index.js",
|
|
26
25
|
"types": "./dist/dts/index.d.ts",
|
|
27
26
|
"exports": {
|
|
28
27
|
"./package.json": "./package.json",
|
|
29
28
|
".": {
|
|
30
29
|
"types": "./dist/dts/index.d.ts",
|
|
31
|
-
"import": "./dist/esm/index.js"
|
|
32
|
-
"default": "./dist/cjs/index.js"
|
|
30
|
+
"import": "./dist/esm/index.js"
|
|
33
31
|
},
|
|
34
32
|
"./AccountClientInstance": {
|
|
35
33
|
"types": "./dist/dts/AccountClientInstance.d.ts",
|
|
36
|
-
"import": "./dist/esm/AccountClientInstance.js"
|
|
37
|
-
"default": "./dist/cjs/AccountClientInstance.js"
|
|
34
|
+
"import": "./dist/esm/AccountClientInstance.js"
|
|
38
35
|
},
|
|
39
36
|
"./AccountService": {
|
|
40
37
|
"types": "./dist/dts/AccountService.d.ts",
|
|
41
|
-
"import": "./dist/esm/AccountService.js"
|
|
42
|
-
"default": "./dist/cjs/AccountService.js"
|
|
38
|
+
"import": "./dist/esm/AccountService.js"
|
|
43
39
|
},
|
|
44
40
|
"./AccountServiceConfig": {
|
|
45
41
|
"types": "./dist/dts/AccountServiceConfig.d.ts",
|
|
46
|
-
"import": "./dist/esm/AccountServiceConfig.js"
|
|
47
|
-
"default": "./dist/cjs/AccountServiceConfig.js"
|
|
42
|
+
"import": "./dist/esm/AccountServiceConfig.js"
|
|
48
43
|
},
|
|
49
44
|
"./Errors": {
|
|
50
45
|
"types": "./dist/dts/Errors.d.ts",
|
|
51
|
-
"import": "./dist/esm/Errors.js"
|
|
52
|
-
"default": "./dist/cjs/Errors.js"
|
|
46
|
+
"import": "./dist/esm/Errors.js"
|
|
53
47
|
}
|
|
54
48
|
},
|
|
55
49
|
"typesVersions": {
|
|
@@ -2,16 +2,18 @@
|
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
4
|
import { AccountClient } from "@aws-sdk/client-account";
|
|
5
|
-
import
|
|
5
|
+
import * as Effect from "effect/Effect";
|
|
6
|
+
import * as Layer from "effect/Layer";
|
|
7
|
+
import * as ServiceMap from "effect/ServiceMap";
|
|
6
8
|
import * as AccountServiceConfig from "./AccountServiceConfig.js";
|
|
7
9
|
|
|
8
10
|
/**
|
|
9
11
|
* @since 1.0.0
|
|
10
12
|
* @category tags
|
|
11
13
|
*/
|
|
12
|
-
export class AccountClientInstance extends
|
|
14
|
+
export class AccountClientInstance extends ServiceMap.Service<AccountClientInstance, AccountClient>()(
|
|
13
15
|
"@effect-aws/client-account/AccountClientInstance",
|
|
14
|
-
)
|
|
16
|
+
) {}
|
|
15
17
|
|
|
16
18
|
/**
|
|
17
19
|
* @since 1.0.0
|
|
@@ -30,4 +32,4 @@ export const make = Effect.flatMap(
|
|
|
30
32
|
* @since 1.0.0
|
|
31
33
|
* @category layers
|
|
32
34
|
*/
|
|
33
|
-
export const layer = Layer.
|
|
35
|
+
export const layer = Layer.effect(AccountClientInstance, make);
|
package/src/AccountService.ts
CHANGED
|
@@ -52,8 +52,10 @@ import {
|
|
|
52
52
|
} from "@aws-sdk/client-account";
|
|
53
53
|
import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons";
|
|
54
54
|
import { Service } from "@effect-aws/commons";
|
|
55
|
-
import type
|
|
56
|
-
import
|
|
55
|
+
import type * as Cause from "effect/Cause";
|
|
56
|
+
import * as Effect from "effect/Effect";
|
|
57
|
+
import * as Layer from "effect/Layer";
|
|
58
|
+
import * as ServiceMap from "effect/ServiceMap";
|
|
57
59
|
import * as Instance from "./AccountClientInstance.js";
|
|
58
60
|
import * as AccountServiceConfig from "./AccountServiceConfig.js";
|
|
59
61
|
import type {
|
|
@@ -97,7 +99,7 @@ interface AccountService$ {
|
|
|
97
99
|
options?: HttpHandlerOptions,
|
|
98
100
|
): Effect.Effect<
|
|
99
101
|
AcceptPrimaryEmailUpdateCommandOutput,
|
|
100
|
-
| Cause.
|
|
102
|
+
| Cause.TimeoutError
|
|
101
103
|
| SdkError
|
|
102
104
|
| AccessDeniedError
|
|
103
105
|
| ConflictError
|
|
@@ -115,7 +117,7 @@ interface AccountService$ {
|
|
|
115
117
|
options?: HttpHandlerOptions,
|
|
116
118
|
): Effect.Effect<
|
|
117
119
|
DeleteAlternateContactCommandOutput,
|
|
118
|
-
| Cause.
|
|
120
|
+
| Cause.TimeoutError
|
|
119
121
|
| SdkError
|
|
120
122
|
| AccessDeniedError
|
|
121
123
|
| InternalServerError
|
|
@@ -132,7 +134,7 @@ interface AccountService$ {
|
|
|
132
134
|
options?: HttpHandlerOptions,
|
|
133
135
|
): Effect.Effect<
|
|
134
136
|
DisableRegionCommandOutput,
|
|
135
|
-
| Cause.
|
|
137
|
+
| Cause.TimeoutError
|
|
136
138
|
| SdkError
|
|
137
139
|
| AccessDeniedError
|
|
138
140
|
| ConflictError
|
|
@@ -149,7 +151,7 @@ interface AccountService$ {
|
|
|
149
151
|
options?: HttpHandlerOptions,
|
|
150
152
|
): Effect.Effect<
|
|
151
153
|
EnableRegionCommandOutput,
|
|
152
|
-
| Cause.
|
|
154
|
+
| Cause.TimeoutError
|
|
153
155
|
| SdkError
|
|
154
156
|
| AccessDeniedError
|
|
155
157
|
| ConflictError
|
|
@@ -166,7 +168,7 @@ interface AccountService$ {
|
|
|
166
168
|
options?: HttpHandlerOptions,
|
|
167
169
|
): Effect.Effect<
|
|
168
170
|
GetAccountInformationCommandOutput,
|
|
169
|
-
Cause.
|
|
171
|
+
Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | TooManyRequestsError | ValidationError
|
|
170
172
|
>;
|
|
171
173
|
|
|
172
174
|
/**
|
|
@@ -177,7 +179,7 @@ interface AccountService$ {
|
|
|
177
179
|
options?: HttpHandlerOptions,
|
|
178
180
|
): Effect.Effect<
|
|
179
181
|
GetAlternateContactCommandOutput,
|
|
180
|
-
| Cause.
|
|
182
|
+
| Cause.TimeoutError
|
|
181
183
|
| SdkError
|
|
182
184
|
| AccessDeniedError
|
|
183
185
|
| InternalServerError
|
|
@@ -194,7 +196,7 @@ interface AccountService$ {
|
|
|
194
196
|
options?: HttpHandlerOptions,
|
|
195
197
|
): Effect.Effect<
|
|
196
198
|
GetContactInformationCommandOutput,
|
|
197
|
-
| Cause.
|
|
199
|
+
| Cause.TimeoutError
|
|
198
200
|
| SdkError
|
|
199
201
|
| AccessDeniedError
|
|
200
202
|
| InternalServerError
|
|
@@ -211,7 +213,7 @@ interface AccountService$ {
|
|
|
211
213
|
options?: HttpHandlerOptions,
|
|
212
214
|
): Effect.Effect<
|
|
213
215
|
GetGovCloudAccountInformationCommandOutput,
|
|
214
|
-
| Cause.
|
|
216
|
+
| Cause.TimeoutError
|
|
215
217
|
| SdkError
|
|
216
218
|
| AccessDeniedError
|
|
217
219
|
| InternalServerError
|
|
@@ -229,7 +231,7 @@ interface AccountService$ {
|
|
|
229
231
|
options?: HttpHandlerOptions,
|
|
230
232
|
): Effect.Effect<
|
|
231
233
|
GetPrimaryEmailCommandOutput,
|
|
232
|
-
| Cause.
|
|
234
|
+
| Cause.TimeoutError
|
|
233
235
|
| SdkError
|
|
234
236
|
| AccessDeniedError
|
|
235
237
|
| InternalServerError
|
|
@@ -246,7 +248,7 @@ interface AccountService$ {
|
|
|
246
248
|
options?: HttpHandlerOptions,
|
|
247
249
|
): Effect.Effect<
|
|
248
250
|
GetRegionOptStatusCommandOutput,
|
|
249
|
-
Cause.
|
|
251
|
+
Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | TooManyRequestsError | ValidationError
|
|
250
252
|
>;
|
|
251
253
|
|
|
252
254
|
/**
|
|
@@ -257,7 +259,7 @@ interface AccountService$ {
|
|
|
257
259
|
options?: HttpHandlerOptions,
|
|
258
260
|
): Effect.Effect<
|
|
259
261
|
ListRegionsCommandOutput,
|
|
260
|
-
Cause.
|
|
262
|
+
Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | TooManyRequestsError | ValidationError
|
|
261
263
|
>;
|
|
262
264
|
|
|
263
265
|
/**
|
|
@@ -268,7 +270,7 @@ interface AccountService$ {
|
|
|
268
270
|
options?: HttpHandlerOptions,
|
|
269
271
|
): Effect.Effect<
|
|
270
272
|
PutAccountNameCommandOutput,
|
|
271
|
-
Cause.
|
|
273
|
+
Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | TooManyRequestsError | ValidationError
|
|
272
274
|
>;
|
|
273
275
|
|
|
274
276
|
/**
|
|
@@ -279,7 +281,7 @@ interface AccountService$ {
|
|
|
279
281
|
options?: HttpHandlerOptions,
|
|
280
282
|
): Effect.Effect<
|
|
281
283
|
PutAlternateContactCommandOutput,
|
|
282
|
-
Cause.
|
|
284
|
+
Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | TooManyRequestsError | ValidationError
|
|
283
285
|
>;
|
|
284
286
|
|
|
285
287
|
/**
|
|
@@ -290,7 +292,7 @@ interface AccountService$ {
|
|
|
290
292
|
options?: HttpHandlerOptions,
|
|
291
293
|
): Effect.Effect<
|
|
292
294
|
PutContactInformationCommandOutput,
|
|
293
|
-
Cause.
|
|
295
|
+
Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | TooManyRequestsError | ValidationError
|
|
294
296
|
>;
|
|
295
297
|
|
|
296
298
|
/**
|
|
@@ -301,7 +303,7 @@ interface AccountService$ {
|
|
|
301
303
|
options?: HttpHandlerOptions,
|
|
302
304
|
): Effect.Effect<
|
|
303
305
|
StartPrimaryEmailUpdateCommandOutput,
|
|
304
|
-
| Cause.
|
|
306
|
+
| Cause.TimeoutError
|
|
305
307
|
| SdkError
|
|
306
308
|
| AccessDeniedError
|
|
307
309
|
| ConflictError
|
|
@@ -333,10 +335,10 @@ export const makeAccountService = Effect.gen(function*() {
|
|
|
333
335
|
* @since 1.0.0
|
|
334
336
|
* @category models
|
|
335
337
|
*/
|
|
336
|
-
export class AccountService extends
|
|
338
|
+
export class AccountService extends ServiceMap.Service<
|
|
337
339
|
AccountService,
|
|
338
340
|
AccountService$
|
|
339
|
-
>() {
|
|
341
|
+
>()("@effect-aws/client-account/AccountService") {
|
|
340
342
|
static readonly defaultLayer = Layer.effect(this, makeAccountService).pipe(Layer.provide(Instance.layer));
|
|
341
343
|
static readonly layer = (config: AccountService.Config) =>
|
|
342
344
|
Layer.effect(this, makeAccountService).pipe(
|
|
@@ -3,18 +3,19 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import type { AccountClientConfig } from "@aws-sdk/client-account";
|
|
5
5
|
import { ServiceLogger } from "@effect-aws/commons";
|
|
6
|
-
import
|
|
6
|
+
import * as Effect from "effect/Effect";
|
|
7
7
|
import { dual } from "effect/Function";
|
|
8
|
-
import
|
|
8
|
+
import * as Layer from "effect/Layer";
|
|
9
|
+
import * as ServiceMap from "effect/ServiceMap";
|
|
9
10
|
import type { AccountService } from "./AccountService.js";
|
|
10
11
|
|
|
11
12
|
/**
|
|
12
13
|
* @since 1.0.0
|
|
13
14
|
* @category account service config
|
|
14
15
|
*/
|
|
15
|
-
const currentAccountServiceConfig =
|
|
16
|
+
const currentAccountServiceConfig = ServiceMap.Reference<AccountService.Config>(
|
|
16
17
|
"@effect-aws/client-account/currentAccountServiceConfig",
|
|
17
|
-
() =>
|
|
18
|
+
{ defaultValue: () => ({}) },
|
|
18
19
|
);
|
|
19
20
|
|
|
20
21
|
/**
|
|
@@ -27,7 +28,7 @@ export const withAccountServiceConfig: {
|
|
|
27
28
|
} = dual(
|
|
28
29
|
2,
|
|
29
30
|
<A, E, R>(effect: Effect.Effect<A, E, R>, config: AccountService.Config): Effect.Effect<A, E, R> =>
|
|
30
|
-
Effect.
|
|
31
|
+
Effect.provideService(effect, currentAccountServiceConfig, config),
|
|
31
32
|
);
|
|
32
33
|
|
|
33
34
|
/**
|
|
@@ -35,14 +36,14 @@ export const withAccountServiceConfig: {
|
|
|
35
36
|
* @category account service config
|
|
36
37
|
*/
|
|
37
38
|
export const setAccountServiceConfig = (config: AccountService.Config) =>
|
|
38
|
-
Layer.
|
|
39
|
+
Layer.succeed(currentAccountServiceConfig, config);
|
|
39
40
|
|
|
40
41
|
/**
|
|
41
42
|
* @since 1.0.0
|
|
42
43
|
* @category adapters
|
|
43
44
|
*/
|
|
44
45
|
export const toAccountClientConfig: Effect.Effect<AccountClientConfig> = Effect.gen(function*() {
|
|
45
|
-
const { logger: serviceLogger, ...config } = yield*
|
|
46
|
+
const { logger: serviceLogger, ...config } = yield* currentAccountServiceConfig;
|
|
46
47
|
|
|
47
48
|
const logger = serviceLogger === true
|
|
48
49
|
? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger)
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @since 1.0.0
|
|
3
|
-
*/
|
|
4
|
-
import { AccountClient } from "@aws-sdk/client-account";
|
|
5
|
-
import { Context, Effect, Layer } from "effect";
|
|
6
|
-
declare const AccountClientInstance_base: Context.TagClass<AccountClientInstance, "@effect-aws/client-account/AccountClientInstance", AccountClient>;
|
|
7
|
-
/**
|
|
8
|
-
* @since 1.0.0
|
|
9
|
-
* @category tags
|
|
10
|
-
*/
|
|
11
|
-
export declare class AccountClientInstance extends AccountClientInstance_base {
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* @since 1.0.0
|
|
15
|
-
* @category constructors
|
|
16
|
-
*/
|
|
17
|
-
export declare const make: Effect.Effect<AccountClient, never, import("effect/Scope").Scope>;
|
|
18
|
-
/**
|
|
19
|
-
* @since 1.0.0
|
|
20
|
-
* @category layers
|
|
21
|
-
*/
|
|
22
|
-
export declare const layer: Layer.Layer<AccountClientInstance, never, never>;
|
|
23
|
-
export {};
|
|
24
|
-
//# sourceMappingURL=AccountClientInstance.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AccountClientInstance.d.ts","sourceRoot":"","sources":["../../src/AccountClientInstance.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;;AAGhD;;;GAGG;AACH,qBAAa,qBAAsB,SAAQ,0BAEF;CAAG;AAE5C;;;GAGG;AACH,eAAO,MAAM,IAAI,mEAOhB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,KAAK,kDAA4C,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.AccountClientInstance = void 0;
|
|
27
|
-
/**
|
|
28
|
-
* @since 1.0.0
|
|
29
|
-
*/
|
|
30
|
-
const client_account_1 = require("@aws-sdk/client-account");
|
|
31
|
-
const effect_1 = require("effect");
|
|
32
|
-
const AccountServiceConfig = __importStar(require("./AccountServiceConfig.js"));
|
|
33
|
-
/**
|
|
34
|
-
* @since 1.0.0
|
|
35
|
-
* @category tags
|
|
36
|
-
*/
|
|
37
|
-
class AccountClientInstance extends effect_1.Context.Tag("@effect-aws/client-account/AccountClientInstance")() {
|
|
38
|
-
}
|
|
39
|
-
exports.AccountClientInstance = AccountClientInstance;
|
|
40
|
-
/**
|
|
41
|
-
* @since 1.0.0
|
|
42
|
-
* @category constructors
|
|
43
|
-
*/
|
|
44
|
-
exports.make = effect_1.Effect.flatMap(AccountServiceConfig.toAccountClientConfig, (config) => effect_1.Effect.acquireRelease(effect_1.Effect.sync(() => new client_account_1.AccountClient(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(AccountClientInstance, exports.make);
|
|
50
|
-
//# sourceMappingURL=AccountClientInstance.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AccountClientInstance.js","sourceRoot":"","sources":["../../src/AccountClientInstance.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,4DAAwD;AACxD,mCAAgD;AAChD,gFAAkE;AAElE;;;GAGG;AACH,MAAa,qBAAsB,SAAQ,gBAAO,CAAC,GAAG,CACpD,kDAAkD,CACnD,EAAwC;CAAG;AAF5C,sDAE4C;AAE5C;;;GAGG;AACU,QAAA,IAAI,GAAG,eAAM,CAAC,OAAO,CAChC,oBAAoB,CAAC,qBAAqB,EAC1C,CAAC,MAAM,EAAE,EAAE,CACT,eAAM,CAAC,cAAc,CACnB,eAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,8BAAa,CAAC,MAAM,CAAC,CAAC,EAC5C,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,qBAAqB,EAAE,YAAI,CAAC,CAAC"}
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @since 1.0.0
|
|
3
|
-
*/
|
|
4
|
-
import { type AcceptPrimaryEmailUpdateCommandInput, type AcceptPrimaryEmailUpdateCommandOutput, type AccountClient, type AccountClientConfig, type DeleteAlternateContactCommandInput, type DeleteAlternateContactCommandOutput, type DisableRegionCommandInput, type DisableRegionCommandOutput, type EnableRegionCommandInput, type EnableRegionCommandOutput, type GetAccountInformationCommandInput, type GetAccountInformationCommandOutput, type GetAlternateContactCommandInput, type GetAlternateContactCommandOutput, type GetContactInformationCommandInput, type GetContactInformationCommandOutput, type GetGovCloudAccountInformationCommandInput, type GetGovCloudAccountInformationCommandOutput, type GetPrimaryEmailCommandInput, type GetPrimaryEmailCommandOutput, type GetRegionOptStatusCommandInput, type GetRegionOptStatusCommandOutput, type ListRegionsCommandInput, type ListRegionsCommandOutput, type PutAccountNameCommandInput, type PutAccountNameCommandOutput, type PutAlternateContactCommandInput, type PutAlternateContactCommandOutput, type PutContactInformationCommandInput, type PutContactInformationCommandOutput, type StartPrimaryEmailUpdateCommandInput, type StartPrimaryEmailUpdateCommandOutput } from "@aws-sdk/client-account";
|
|
5
|
-
import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons";
|
|
6
|
-
import type { Cause } from "effect";
|
|
7
|
-
import { Effect, Layer } from "effect";
|
|
8
|
-
import * as Instance from "./AccountClientInstance.js";
|
|
9
|
-
import type { AccessDeniedError, ConflictError, InternalServerError, ResourceNotFoundError, ResourceUnavailableError, SdkError, TooManyRequestsError, ValidationError } from "./Errors.js";
|
|
10
|
-
interface AccountService$ {
|
|
11
|
-
readonly _: unique symbol;
|
|
12
|
-
/**
|
|
13
|
-
* @see {@link AcceptPrimaryEmailUpdateCommand}
|
|
14
|
-
*/
|
|
15
|
-
acceptPrimaryEmailUpdate(args: AcceptPrimaryEmailUpdateCommandInput, options?: HttpHandlerOptions): Effect.Effect<AcceptPrimaryEmailUpdateCommandOutput, Cause.TimeoutException | SdkError | AccessDeniedError | ConflictError | InternalServerError | ResourceNotFoundError | TooManyRequestsError | ValidationError>;
|
|
16
|
-
/**
|
|
17
|
-
* @see {@link DeleteAlternateContactCommand}
|
|
18
|
-
*/
|
|
19
|
-
deleteAlternateContact(args: DeleteAlternateContactCommandInput, options?: HttpHandlerOptions): Effect.Effect<DeleteAlternateContactCommandOutput, Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ResourceNotFoundError | TooManyRequestsError | ValidationError>;
|
|
20
|
-
/**
|
|
21
|
-
* @see {@link DisableRegionCommand}
|
|
22
|
-
*/
|
|
23
|
-
disableRegion(args: DisableRegionCommandInput, options?: HttpHandlerOptions): Effect.Effect<DisableRegionCommandOutput, Cause.TimeoutException | SdkError | AccessDeniedError | ConflictError | InternalServerError | TooManyRequestsError | ValidationError>;
|
|
24
|
-
/**
|
|
25
|
-
* @see {@link EnableRegionCommand}
|
|
26
|
-
*/
|
|
27
|
-
enableRegion(args: EnableRegionCommandInput, options?: HttpHandlerOptions): Effect.Effect<EnableRegionCommandOutput, Cause.TimeoutException | SdkError | AccessDeniedError | ConflictError | InternalServerError | TooManyRequestsError | ValidationError>;
|
|
28
|
-
/**
|
|
29
|
-
* @see {@link GetAccountInformationCommand}
|
|
30
|
-
*/
|
|
31
|
-
getAccountInformation(args: GetAccountInformationCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetAccountInformationCommandOutput, Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | TooManyRequestsError | ValidationError>;
|
|
32
|
-
/**
|
|
33
|
-
* @see {@link GetAlternateContactCommand}
|
|
34
|
-
*/
|
|
35
|
-
getAlternateContact(args: GetAlternateContactCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetAlternateContactCommandOutput, Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ResourceNotFoundError | TooManyRequestsError | ValidationError>;
|
|
36
|
-
/**
|
|
37
|
-
* @see {@link GetContactInformationCommand}
|
|
38
|
-
*/
|
|
39
|
-
getContactInformation(args: GetContactInformationCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetContactInformationCommandOutput, Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ResourceNotFoundError | TooManyRequestsError | ValidationError>;
|
|
40
|
-
/**
|
|
41
|
-
* @see {@link GetGovCloudAccountInformationCommand}
|
|
42
|
-
*/
|
|
43
|
-
getGovCloudAccountInformation(args: GetGovCloudAccountInformationCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetGovCloudAccountInformationCommandOutput, Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ResourceNotFoundError | ResourceUnavailableError | TooManyRequestsError | ValidationError>;
|
|
44
|
-
/**
|
|
45
|
-
* @see {@link GetPrimaryEmailCommand}
|
|
46
|
-
*/
|
|
47
|
-
getPrimaryEmail(args: GetPrimaryEmailCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetPrimaryEmailCommandOutput, Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | ResourceNotFoundError | TooManyRequestsError | ValidationError>;
|
|
48
|
-
/**
|
|
49
|
-
* @see {@link GetRegionOptStatusCommand}
|
|
50
|
-
*/
|
|
51
|
-
getRegionOptStatus(args: GetRegionOptStatusCommandInput, options?: HttpHandlerOptions): Effect.Effect<GetRegionOptStatusCommandOutput, Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | TooManyRequestsError | ValidationError>;
|
|
52
|
-
/**
|
|
53
|
-
* @see {@link ListRegionsCommand}
|
|
54
|
-
*/
|
|
55
|
-
listRegions(args: ListRegionsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListRegionsCommandOutput, Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | TooManyRequestsError | ValidationError>;
|
|
56
|
-
/**
|
|
57
|
-
* @see {@link PutAccountNameCommand}
|
|
58
|
-
*/
|
|
59
|
-
putAccountName(args: PutAccountNameCommandInput, options?: HttpHandlerOptions): Effect.Effect<PutAccountNameCommandOutput, Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | TooManyRequestsError | ValidationError>;
|
|
60
|
-
/**
|
|
61
|
-
* @see {@link PutAlternateContactCommand}
|
|
62
|
-
*/
|
|
63
|
-
putAlternateContact(args: PutAlternateContactCommandInput, options?: HttpHandlerOptions): Effect.Effect<PutAlternateContactCommandOutput, Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | TooManyRequestsError | ValidationError>;
|
|
64
|
-
/**
|
|
65
|
-
* @see {@link PutContactInformationCommand}
|
|
66
|
-
*/
|
|
67
|
-
putContactInformation(args: PutContactInformationCommandInput, options?: HttpHandlerOptions): Effect.Effect<PutContactInformationCommandOutput, Cause.TimeoutException | SdkError | AccessDeniedError | InternalServerError | TooManyRequestsError | ValidationError>;
|
|
68
|
-
/**
|
|
69
|
-
* @see {@link StartPrimaryEmailUpdateCommand}
|
|
70
|
-
*/
|
|
71
|
-
startPrimaryEmailUpdate(args: StartPrimaryEmailUpdateCommandInput, options?: HttpHandlerOptions): Effect.Effect<StartPrimaryEmailUpdateCommandOutput, Cause.TimeoutException | SdkError | AccessDeniedError | ConflictError | InternalServerError | ResourceNotFoundError | TooManyRequestsError | ValidationError>;
|
|
72
|
-
}
|
|
73
|
-
/**
|
|
74
|
-
* @since 1.0.0
|
|
75
|
-
* @category constructors
|
|
76
|
-
*/
|
|
77
|
-
export declare const makeAccountService: Effect.Effect<AccountService$, never, Instance.AccountClientInstance>;
|
|
78
|
-
declare const AccountService_base: import("effect/Context").TagClass<AccountService, "@effect-aws/client-account/AccountService", AccountService$> & Effect.Tag.Proxy<AccountService, AccountService$> & {
|
|
79
|
-
use: <X>(body: (_: AccountService$) => X) => [X] extends [Effect.Effect<infer A, infer E, infer R>] ? Effect.Effect<A, E, AccountService | R> : [X] extends [PromiseLike<infer A_1>] ? Effect.Effect<A_1, Cause.UnknownException, AccountService> : Effect.Effect<X, never, AccountService>;
|
|
80
|
-
};
|
|
81
|
-
/**
|
|
82
|
-
* @since 1.0.0
|
|
83
|
-
* @category models
|
|
84
|
-
*/
|
|
85
|
-
export declare class AccountService extends AccountService_base {
|
|
86
|
-
static readonly defaultLayer: Layer.Layer<AccountService, never, never>;
|
|
87
|
-
static readonly layer: (config: AccountService.Config) => Layer.Layer<AccountService, never, never>;
|
|
88
|
-
static readonly baseLayer: (evaluate: (defaultConfig: AccountClientConfig) => AccountClient) => Layer.Layer<AccountService, never, never>;
|
|
89
|
-
}
|
|
90
|
-
/**
|
|
91
|
-
* @since 1.0.0
|
|
92
|
-
*/
|
|
93
|
-
export declare namespace AccountService {
|
|
94
|
-
/**
|
|
95
|
-
* @since 1.0.0
|
|
96
|
-
*/
|
|
97
|
-
interface Config extends Omit<AccountClientConfig, "logger"> {
|
|
98
|
-
readonly logger?: ServiceLogger.ServiceLoggerConstructorProps | true;
|
|
99
|
-
}
|
|
100
|
-
/**
|
|
101
|
-
* @since 1.0.0
|
|
102
|
-
*/
|
|
103
|
-
type Type = AccountService$;
|
|
104
|
-
}
|
|
105
|
-
export {};
|
|
106
|
-
//# sourceMappingURL=AccountService.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AccountService.d.ts","sourceRoot":"","sources":["../../src/AccountService.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAEL,KAAK,oCAAoC,EACzC,KAAK,qCAAqC,EAC1C,KAAK,aAAa,EAClB,KAAK,mBAAmB,EAExB,KAAK,kCAAkC,EACvC,KAAK,mCAAmC,EAExC,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,EAE/B,KAAK,wBAAwB,EAC7B,KAAK,yBAA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C;;OAEG;IACH,UAAiB,MAAO,SAAQ,IAAI,CAAC,mBAAmB,EAAE,QAAQ,CAAC;QACjE,QAAQ,CAAC,MAAM,CAAC,EAAE,aAAa,CAAC,6BAA6B,GAAG,IAAI,CAAC;KACtE;IAED;;OAEG;IACH,KAAY,IAAI,GAAG,eAAe,CAAC;CACpC"}
|
|
@@ -1,74 +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.AccountService = exports.makeAccountService = void 0;
|
|
27
|
-
/**
|
|
28
|
-
* @since 1.0.0
|
|
29
|
-
*/
|
|
30
|
-
const client_account_1 = require("@aws-sdk/client-account");
|
|
31
|
-
const commons_1 = require("@effect-aws/commons");
|
|
32
|
-
const effect_1 = require("effect");
|
|
33
|
-
const Instance = __importStar(require("./AccountClientInstance.js"));
|
|
34
|
-
const AccountServiceConfig = __importStar(require("./AccountServiceConfig.js"));
|
|
35
|
-
const Errors_js_1 = require("./Errors.js");
|
|
36
|
-
const commands = {
|
|
37
|
-
AcceptPrimaryEmailUpdateCommand: client_account_1.AcceptPrimaryEmailUpdateCommand,
|
|
38
|
-
DeleteAlternateContactCommand: client_account_1.DeleteAlternateContactCommand,
|
|
39
|
-
DisableRegionCommand: client_account_1.DisableRegionCommand,
|
|
40
|
-
EnableRegionCommand: client_account_1.EnableRegionCommand,
|
|
41
|
-
GetAccountInformationCommand: client_account_1.GetAccountInformationCommand,
|
|
42
|
-
GetAlternateContactCommand: client_account_1.GetAlternateContactCommand,
|
|
43
|
-
GetContactInformationCommand: client_account_1.GetContactInformationCommand,
|
|
44
|
-
GetGovCloudAccountInformationCommand: client_account_1.GetGovCloudAccountInformationCommand,
|
|
45
|
-
GetPrimaryEmailCommand: client_account_1.GetPrimaryEmailCommand,
|
|
46
|
-
GetRegionOptStatusCommand: client_account_1.GetRegionOptStatusCommand,
|
|
47
|
-
ListRegionsCommand: client_account_1.ListRegionsCommand,
|
|
48
|
-
PutAccountNameCommand: client_account_1.PutAccountNameCommand,
|
|
49
|
-
PutAlternateContactCommand: client_account_1.PutAlternateContactCommand,
|
|
50
|
-
PutContactInformationCommand: client_account_1.PutContactInformationCommand,
|
|
51
|
-
StartPrimaryEmailUpdateCommand: client_account_1.StartPrimaryEmailUpdateCommand,
|
|
52
|
-
};
|
|
53
|
-
/**
|
|
54
|
-
* @since 1.0.0
|
|
55
|
-
* @category constructors
|
|
56
|
-
*/
|
|
57
|
-
exports.makeAccountService = effect_1.Effect.gen(function* () {
|
|
58
|
-
const client = yield* Instance.AccountClientInstance;
|
|
59
|
-
return yield* commons_1.Service.fromClientAndCommands(client, commands, {
|
|
60
|
-
errorTags: Errors_js_1.AllServiceErrors,
|
|
61
|
-
resolveClientConfig: AccountServiceConfig.toAccountClientConfig,
|
|
62
|
-
});
|
|
63
|
-
});
|
|
64
|
-
/**
|
|
65
|
-
* @since 1.0.0
|
|
66
|
-
* @category models
|
|
67
|
-
*/
|
|
68
|
-
class AccountService extends effect_1.Effect.Tag("@effect-aws/client-account/AccountService")() {
|
|
69
|
-
static defaultLayer = effect_1.Layer.effect(this, exports.makeAccountService).pipe(effect_1.Layer.provide(Instance.layer));
|
|
70
|
-
static layer = (config) => effect_1.Layer.effect(this, exports.makeAccountService).pipe(effect_1.Layer.provide(Instance.layer), effect_1.Layer.provide(AccountServiceConfig.setAccountServiceConfig(config)));
|
|
71
|
-
static baseLayer = (evaluate) => effect_1.Layer.effect(this, exports.makeAccountService).pipe(effect_1.Layer.provide(effect_1.Layer.effect(Instance.AccountClientInstance, effect_1.Effect.map(AccountServiceConfig.toAccountClientConfig, evaluate))));
|
|
72
|
-
}
|
|
73
|
-
exports.AccountService = AccountService;
|
|
74
|
-
//# sourceMappingURL=AccountService.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AccountService.js","sourceRoot":"","sources":["../../src/AccountService.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,4DAgDiC;AAEjC,iDAA8C;AAE9C,mCAAuC;AACvC,qEAAuD;AACvD,gFAAkE;AAWlE,2CAA+C;AAE/C,MAAM,QAAQ,GAAG;IACf,+BAA+B,EAA/B,gDAA+B;IAC/B,6BAA6B,EAA7B,8CAA6B;IAC7B,oBAAoB,EAApB,qCAAoB;IACpB,mBAAmB,EAAnB,oCAAmB;IACnB,4BAA4B,EAA5B,6CAA4B;IAC5B,0BAA0B,EAA1B,2CAA0B;IAC1B,4BAA4B,EAA5B,6CAA4B;IAC5B,oCAAoC,EAApC,qDAAoC;IACpC,sBAAsB,EAAtB,uCAAsB;IACtB,yBAAyB,EAAzB,0CAAyB;IACz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GAAG,CAAC,oBAAoB,CAAC,qBAAqB,EAAE,QAAQ,CAAC,CACjE,CACF,CACF,CAAC;;AApBN,wCAqBC"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @since 1.0.0
|
|
3
|
-
*/
|
|
4
|
-
import type { AccountClientConfig } from "@aws-sdk/client-account";
|
|
5
|
-
import { Effect, Layer } from "effect";
|
|
6
|
-
import type { AccountService } from "./AccountService.js";
|
|
7
|
-
/**
|
|
8
|
-
* @since 1.0.0
|
|
9
|
-
* @category account service config
|
|
10
|
-
*/
|
|
11
|
-
export declare const withAccountServiceConfig: {
|
|
12
|
-
(config: AccountService.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: AccountService.Config): Effect.Effect<A, E, R>;
|
|
14
|
-
};
|
|
15
|
-
/**
|
|
16
|
-
* @since 1.0.0
|
|
17
|
-
* @category account service config
|
|
18
|
-
*/
|
|
19
|
-
export declare const setAccountServiceConfig: (config: AccountService.Config) => Layer.Layer<never, never, never>;
|
|
20
|
-
/**
|
|
21
|
-
* @since 1.0.0
|
|
22
|
-
* @category adapters
|
|
23
|
-
*/
|
|
24
|
-
export declare const toAccountClientConfig: Effect.Effect<AccountClientConfig>;
|
|
25
|
-
//# sourceMappingURL=AccountServiceConfig.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AccountServiceConfig.d.ts","sourceRoot":"","sources":["../../src/AccountServiceConfig.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAEnE,OAAO,EAAE,MAAM,EAAY,KAAK,EAAE,MAAM,QAAQ,CAAC;AAGjD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAW1D;;;GAGG;AACH,eAAO,MAAM,wBAAwB,EAAE;IACrC,CAAC,MAAM,EAAE,cAAc,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;IACrG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,cAAc,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;CAKlG,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,uBAAuB,WAAY,eAAe,MAAM,qCACX,CAAC;AAE3D;;;GAGG;AACH,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,MAAM,CAAC,mBAAmB,CAQnE,CAAC"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.toAccountClientConfig = exports.setAccountServiceConfig = exports.withAccountServiceConfig = 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 account service config
|
|
11
|
-
*/
|
|
12
|
-
const currentAccountServiceConfig = (0, GlobalValue_1.globalValue)("@effect-aws/client-account/currentAccountServiceConfig", () => effect_1.FiberRef.unsafeMake({}));
|
|
13
|
-
/**
|
|
14
|
-
* @since 1.0.0
|
|
15
|
-
* @category account service config
|
|
16
|
-
*/
|
|
17
|
-
exports.withAccountServiceConfig = (0, Function_1.dual)(2, (effect, config) => effect_1.Effect.locally(effect, currentAccountServiceConfig, config));
|
|
18
|
-
/**
|
|
19
|
-
* @since 1.0.0
|
|
20
|
-
* @category account service config
|
|
21
|
-
*/
|
|
22
|
-
const setAccountServiceConfig = (config) => effect_1.Layer.locallyScoped(currentAccountServiceConfig, config);
|
|
23
|
-
exports.setAccountServiceConfig = setAccountServiceConfig;
|
|
24
|
-
/**
|
|
25
|
-
* @since 1.0.0
|
|
26
|
-
* @category adapters
|
|
27
|
-
*/
|
|
28
|
-
exports.toAccountClientConfig = effect_1.Effect.gen(function* () {
|
|
29
|
-
const { logger: serviceLogger, ...config } = yield* effect_1.FiberRef.get(currentAccountServiceConfig);
|
|
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=AccountServiceConfig.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AccountServiceConfig.js","sourceRoot":"","sources":["../../src/AccountServiceConfig.ts"],"names":[],"mappings":";;;AAIA,iDAAoD;AACpD,mCAAiD;AACjD,8CAAuC;AACvC,oDAAiD;AAGjD;;;GAGG;AACH,MAAM,2BAA2B,GAAG,IAAA,yBAAW,EAC7C,wDAAwD,EACxD,GAAG,EAAE,CAAC,iBAAQ,CAAC,UAAU,CAAwB,EAAE,CAAC,CACrD,CAAC;AAEF;;;GAGG;AACU,QAAA,wBAAwB,GAGjC,IAAA,eAAI,EACN,CAAC,EACD,CAAU,MAA8B,EAAE,MAA6B,EAA0B,EAAE,CACjG,eAAM,CAAC,OAAO,CAAC,MAAM,EAAE,2BAA2B,EAAE,MAAM,CAAC,CAC9D,CAAC;AAEF;;;GAGG;AACI,MAAM,uBAAuB,GAAG,CAAC,MAA6B,EAAE,EAAE,CACvE,cAAK,CAAC,aAAa,CAAC,2BAA2B,EAAE,MAAM,CAAC,CAAC;AAD9C,QAAA,uBAAuB,2BACuB;AAE3D;;;GAGG;AACU,QAAA,qBAAqB,GAAuC,eAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IAC3F,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,GAAG,MAAM,EAAE,GAAG,KAAK,CAAC,CAAC,iBAAQ,CAAC,GAAG,CAAC,2BAA2B,CAAC,CAAC;IAE9F,MAAM,MAAM,GAAG,aAAa,KAAK,IAAI;QACnC,CAAC,CAAC,KAAK,CAAC,CAAC,uBAAa,CAAC,cAAc,CAAC,uBAAa,CAAC,oBAAoB,CAAC;QACzE,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,uBAAa,CAAC,cAAc,CAAC,uBAAa,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;IAEzG,OAAO,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC;AAC/B,CAAC,CAAC,CAAC"}
|
package/dist/cjs/Errors.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ResourceUnavailableException, TooManyRequestsException, ValidationException } from "@aws-sdk/client-account";
|
|
2
|
-
import type { TaggedException } from "@effect-aws/commons";
|
|
3
|
-
export declare const AllServiceErrors: readonly ["AccessDeniedException", "ConflictException", "InternalServerException", "ResourceNotFoundException", "ResourceUnavailableException", "TooManyRequestsException", "ValidationException"];
|
|
4
|
-
export type AccessDeniedError = TaggedException<AccessDeniedException>;
|
|
5
|
-
export type ConflictError = TaggedException<ConflictException>;
|
|
6
|
-
export type InternalServerError = TaggedException<InternalServerException>;
|
|
7
|
-
export type ResourceNotFoundError = TaggedException<ResourceNotFoundException>;
|
|
8
|
-
export type ResourceUnavailableError = TaggedException<ResourceUnavailableException>;
|
|
9
|
-
export type TooManyRequestsError = TaggedException<TooManyRequestsException>;
|
|
10
|
-
export type ValidationError = TaggedException<ValidationException>;
|
|
11
|
-
export type SdkError = TaggedException<Error & {
|
|
12
|
-
name: "SdkError";
|
|
13
|
-
}>;
|
|
14
|
-
//# sourceMappingURL=Errors.d.ts.map
|
package/dist/cjs/Errors.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Errors.d.ts","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EACrB,iBAAiB,EACjB,uBAAuB,EACvB,yBAAyB,EACzB,4BAA4B,EAC5B,wBAAwB,EACxB,mBAAmB,EACpB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE3D,eAAO,MAAM,gBAAgB,oMAQnB,CAAC;AAEX,MAAM,MAAM,iBAAiB,GAAG,eAAe,CAAC,qBAAqB,CAAC,CAAC;AACvE,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,wBAAwB,GAAG,eAAe,CAAC,4BAA4B,CAAC,CAAC;AACrF,MAAM,MAAM,oBAAoB,GAAG,eAAe,CAAC,wBAAwB,CAAC,CAAC;AAC7E,MAAM,MAAM,eAAe,GAAG,eAAe,CAAC,mBAAmB,CAAC,CAAC;AACnE,MAAM,MAAM,QAAQ,GAAG,eAAe,CAAC,KAAK,GAAG;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,CAAC,CAAC"}
|
package/dist/cjs/Errors.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AllServiceErrors = void 0;
|
|
4
|
-
exports.AllServiceErrors = [
|
|
5
|
-
"AccessDeniedException",
|
|
6
|
-
"ConflictException",
|
|
7
|
-
"InternalServerException",
|
|
8
|
-
"ResourceNotFoundException",
|
|
9
|
-
"ResourceUnavailableException",
|
|
10
|
-
"TooManyRequestsException",
|
|
11
|
-
"ValidationException",
|
|
12
|
-
];
|
|
13
|
-
//# sourceMappingURL=Errors.js.map
|
package/dist/cjs/Errors.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Errors.js","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":";;;AAWa,QAAA,gBAAgB,GAAG;IAC9B,uBAAuB;IACvB,mBAAmB;IACnB,yBAAyB;IACzB,2BAA2B;IAC3B,8BAA8B;IAC9B,0BAA0B;IAC1B,qBAAqB;CACb,CAAC"}
|
package/dist/cjs/index.d.ts
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @since 1.0.0
|
|
3
|
-
*/
|
|
4
|
-
import { AccountService } from "./AccountService.js";
|
|
5
|
-
/**
|
|
6
|
-
* @since 1.0.0
|
|
7
|
-
*/
|
|
8
|
-
export * from "./Errors.js";
|
|
9
|
-
/**
|
|
10
|
-
* @since 1.0.0
|
|
11
|
-
*/
|
|
12
|
-
export * as AccountClientInstance from "./AccountClientInstance.js";
|
|
13
|
-
/**
|
|
14
|
-
* @since 1.0.0
|
|
15
|
-
*/
|
|
16
|
-
export * as AccountServiceConfig from "./AccountServiceConfig.js";
|
|
17
|
-
/**
|
|
18
|
-
* @since 1.0.0
|
|
19
|
-
*/
|
|
20
|
-
export * from "./AccountService.js";
|
|
21
|
-
/**
|
|
22
|
-
* @since 1.0.0
|
|
23
|
-
* @category exports
|
|
24
|
-
* @alias AccountService
|
|
25
|
-
*/
|
|
26
|
-
export declare namespace Account {
|
|
27
|
-
/**
|
|
28
|
-
* @since 1.0.0
|
|
29
|
-
* @alias AccountService.Config
|
|
30
|
-
*/
|
|
31
|
-
type Config = AccountService.Config;
|
|
32
|
-
/**
|
|
33
|
-
* @since 1.0.0
|
|
34
|
-
* @alias AccountService.Type
|
|
35
|
-
*/
|
|
36
|
-
type Type = AccountService.Type;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* @since 1.0.0
|
|
40
|
-
* @category exports
|
|
41
|
-
* @alias AccountService
|
|
42
|
-
*/
|
|
43
|
-
export declare const Account: typeof AccountService;
|
|
44
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/cjs/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD;;GAEG;AACH,cAAc,aAAa,CAAC;AAE5B;;GAEG;AACH,OAAO,KAAK,qBAAqB,MAAM,4BAA4B,CAAC;AAEpE;;GAEG;AACH,OAAO,KAAK,oBAAoB,MAAM,2BAA2B,CAAC;AAElE;;GAEG;AACH,cAAc,qBAAqB,CAAC;AAEpC;;;;GAIG;AACH,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B;;;OAGG;IACH,KAAY,MAAM,GAAG,cAAc,CAAC,MAAM,CAAC;IAE3C;;;OAGG;IACH,KAAY,IAAI,GAAG,cAAc,CAAC,IAAI,CAAC;CACxC;AAED;;;;GAIG;AACH,eAAO,MAAM,OAAO,uBAAiB,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.Account = exports.AccountServiceConfig = exports.AccountClientInstance = void 0;
|
|
30
|
-
/**
|
|
31
|
-
* @since 1.0.0
|
|
32
|
-
*/
|
|
33
|
-
const AccountService_js_1 = require("./AccountService.js");
|
|
34
|
-
/**
|
|
35
|
-
* @since 1.0.0
|
|
36
|
-
*/
|
|
37
|
-
__exportStar(require("./Errors.js"), exports);
|
|
38
|
-
/**
|
|
39
|
-
* @since 1.0.0
|
|
40
|
-
*/
|
|
41
|
-
exports.AccountClientInstance = __importStar(require("./AccountClientInstance.js"));
|
|
42
|
-
/**
|
|
43
|
-
* @since 1.0.0
|
|
44
|
-
*/
|
|
45
|
-
exports.AccountServiceConfig = __importStar(require("./AccountServiceConfig.js"));
|
|
46
|
-
/**
|
|
47
|
-
* @since 1.0.0
|
|
48
|
-
*/
|
|
49
|
-
__exportStar(require("./AccountService.js"), exports);
|
|
50
|
-
/**
|
|
51
|
-
* @since 1.0.0
|
|
52
|
-
* @category exports
|
|
53
|
-
* @alias AccountService
|
|
54
|
-
*/
|
|
55
|
-
exports.Account = AccountService_js_1.AccountService;
|
|
56
|
-
//# sourceMappingURL=index.js.map
|
package/dist/cjs/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,2DAAqD;AAErD;;GAEG;AACH,8CAA4B;AAE5B;;GAEG;AACH,oFAAoE;AAEpE;;GAEG;AACH,kFAAkE;AAElE;;GAEG;AACH,sDAAoC;AAqBpC;;;;GAIG;AACU,QAAA,OAAO,GAAG,kCAAc,CAAC"}
|