@effect-aws/client-account 2.0.0-beta.1 → 2.0.0-beta.3
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/dist/dts/AccountService.d.ts +5 -3
- package/dist/dts/AccountService.d.ts.map +1 -1
- package/dist/dts/Errors.d.ts +1 -1
- package/dist/dts/Errors.d.ts.map +1 -1
- package/dist/esm/AccountService.js +6 -3
- package/dist/esm/AccountService.js.map +1 -1
- package/dist/esm/AccountServiceConfig.js +1 -1
- package/dist/esm/AccountServiceConfig.js.map +1 -1
- package/package.json +2 -2
- package/src/AccountService.ts +18 -4
- package/src/AccountServiceConfig.ts +1 -1
- package/src/Errors.ts +1 -1
|
@@ -2,15 +2,16 @@
|
|
|
2
2
|
* @since 1.0.0
|
|
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
|
-
import type
|
|
5
|
+
import type * as ServiceLogger from "@effect-aws/commons/ServiceLogger";
|
|
6
|
+
import type { HttpHandlerOptions } from "@effect-aws/commons/Types";
|
|
6
7
|
import type * as Cause from "effect/Cause";
|
|
7
8
|
import * as Effect from "effect/Effect";
|
|
8
9
|
import * as Layer from "effect/Layer";
|
|
9
10
|
import * as ServiceMap from "effect/ServiceMap";
|
|
11
|
+
import type * as Stream from "effect/Stream";
|
|
10
12
|
import * as Instance from "./AccountClientInstance.js";
|
|
11
13
|
import type { AccessDeniedError, ConflictError, InternalServerError, ResourceNotFoundError, ResourceUnavailableError, SdkError, TooManyRequestsError, ValidationError } from "./Errors.js";
|
|
12
|
-
interface AccountService$ {
|
|
13
|
-
readonly _: unique symbol;
|
|
14
|
+
export interface AccountService$ {
|
|
14
15
|
/**
|
|
15
16
|
* @see {@link AcceptPrimaryEmailUpdateCommand}
|
|
16
17
|
*/
|
|
@@ -55,6 +56,7 @@ interface AccountService$ {
|
|
|
55
56
|
* @see {@link ListRegionsCommand}
|
|
56
57
|
*/
|
|
57
58
|
listRegions(args: ListRegionsCommandInput, options?: HttpHandlerOptions): Effect.Effect<ListRegionsCommandOutput, Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | TooManyRequestsError | ValidationError>;
|
|
59
|
+
listRegionsStream(args: ListRegionsCommandInput, options?: HttpHandlerOptions): Stream.Stream<ListRegionsCommandOutput, Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | TooManyRequestsError | ValidationError>;
|
|
58
60
|
/**
|
|
59
61
|
* @see {@link PutAccountNameCommand}
|
|
60
62
|
*/
|
|
@@ -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,KA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ResourceNotFoundException, ResourceUnavailableException, TooManyRequestsException, ValidationException } from "@aws-sdk/client-account";
|
|
2
|
-
import type { TaggedException } from "@effect-aws/commons";
|
|
2
|
+
import type { TaggedException } from "@effect-aws/commons/Errors";
|
|
3
3
|
export declare const AllServiceErrors: readonly ["AccessDeniedException", "ConflictException", "InternalServerException", "ResourceNotFoundException", "ResourceUnavailableException", "TooManyRequestsException", "ValidationException"];
|
|
4
4
|
export type AccessDeniedError = TaggedException<AccessDeniedException>;
|
|
5
5
|
export type ConflictError = TaggedException<ConflictException>;
|
package/dist/dts/Errors.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
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,
|
|
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,4BAA4B,CAAC;AAElE,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"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
|
-
import { AcceptPrimaryEmailUpdateCommand, DeleteAlternateContactCommand, DisableRegionCommand, EnableRegionCommand, GetAccountInformationCommand, GetAlternateContactCommand, GetContactInformationCommand, GetGovCloudAccountInformationCommand, GetPrimaryEmailCommand, GetRegionOptStatusCommand, ListRegionsCommand, PutAccountNameCommand, PutAlternateContactCommand, PutContactInformationCommand, StartPrimaryEmailUpdateCommand, } from "@aws-sdk/client-account";
|
|
5
|
-
import
|
|
4
|
+
import { AcceptPrimaryEmailUpdateCommand, DeleteAlternateContactCommand, DisableRegionCommand, EnableRegionCommand, GetAccountInformationCommand, GetAlternateContactCommand, GetContactInformationCommand, GetGovCloudAccountInformationCommand, GetPrimaryEmailCommand, GetRegionOptStatusCommand, ListRegionsCommand, paginateListRegions, PutAccountNameCommand, PutAlternateContactCommand, PutContactInformationCommand, StartPrimaryEmailUpdateCommand, } from "@aws-sdk/client-account";
|
|
5
|
+
import * as Service from "@effect-aws/commons/Service";
|
|
6
6
|
import * as Effect from "effect/Effect";
|
|
7
7
|
import * as Layer from "effect/Layer";
|
|
8
8
|
import * as ServiceMap from "effect/ServiceMap";
|
|
@@ -26,6 +26,9 @@ const commands = {
|
|
|
26
26
|
PutContactInformationCommand,
|
|
27
27
|
StartPrimaryEmailUpdateCommand,
|
|
28
28
|
};
|
|
29
|
+
const paginators = {
|
|
30
|
+
paginateListRegions,
|
|
31
|
+
};
|
|
29
32
|
/**
|
|
30
33
|
* @since 1.0.0
|
|
31
34
|
* @category constructors
|
|
@@ -35,7 +38,7 @@ export const makeAccountService = Effect.gen(function* () {
|
|
|
35
38
|
return yield* Service.fromClientAndCommands(client, commands, {
|
|
36
39
|
errorTags: AllServiceErrors,
|
|
37
40
|
resolveClientConfig: AccountServiceConfig.toAccountClientConfig,
|
|
38
|
-
});
|
|
41
|
+
}, paginators);
|
|
39
42
|
});
|
|
40
43
|
/**
|
|
41
44
|
* @since 1.0.0
|
|
@@ -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;
|
|
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,mBAAmB,EACnB,qBAAqB,EAGrB,0BAA0B,EAG1B,4BAA4B,EAG5B,8BAA8B,GAG/B,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,OAAO,MAAM,6BAA6B,CAAC;AAIvD,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,cA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,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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccountServiceConfig.js","sourceRoot":"","sources":["../../src/AccountServiceConfig.ts"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"AccountServiceConfig.js","sourceRoot":"","sources":["../../src/AccountServiceConfig.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,aAAa,MAAM,mCAAmC,CAAC;AACnE,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": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.3",
|
|
4
4
|
"description": "Effectful AWS Account client",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -16,7 +16,7 @@
|
|
|
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": "^1.0.0-beta.
|
|
19
|
+
"@effect-aws/commons": "^1.0.0-beta.3"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
22
22
|
"effect": ">=4.0.0 <5.0.0"
|
package/src/AccountService.ts
CHANGED
|
@@ -37,6 +37,7 @@ import {
|
|
|
37
37
|
ListRegionsCommand,
|
|
38
38
|
type ListRegionsCommandInput,
|
|
39
39
|
type ListRegionsCommandOutput,
|
|
40
|
+
paginateListRegions,
|
|
40
41
|
PutAccountNameCommand,
|
|
41
42
|
type PutAccountNameCommandInput,
|
|
42
43
|
type PutAccountNameCommandOutput,
|
|
@@ -50,12 +51,14 @@ import {
|
|
|
50
51
|
type StartPrimaryEmailUpdateCommandInput,
|
|
51
52
|
type StartPrimaryEmailUpdateCommandOutput,
|
|
52
53
|
} from "@aws-sdk/client-account";
|
|
53
|
-
import
|
|
54
|
-
import
|
|
54
|
+
import * as Service from "@effect-aws/commons/Service";
|
|
55
|
+
import type * as ServiceLogger from "@effect-aws/commons/ServiceLogger";
|
|
56
|
+
import type { HttpHandlerOptions } from "@effect-aws/commons/Types";
|
|
55
57
|
import type * as Cause from "effect/Cause";
|
|
56
58
|
import * as Effect from "effect/Effect";
|
|
57
59
|
import * as Layer from "effect/Layer";
|
|
58
60
|
import * as ServiceMap from "effect/ServiceMap";
|
|
61
|
+
import type * as Stream from "effect/Stream";
|
|
59
62
|
import * as Instance from "./AccountClientInstance.js";
|
|
60
63
|
import * as AccountServiceConfig from "./AccountServiceConfig.js";
|
|
61
64
|
import type {
|
|
@@ -88,9 +91,11 @@ const commands = {
|
|
|
88
91
|
StartPrimaryEmailUpdateCommand,
|
|
89
92
|
};
|
|
90
93
|
|
|
91
|
-
|
|
92
|
-
|
|
94
|
+
const paginators = {
|
|
95
|
+
paginateListRegions,
|
|
96
|
+
};
|
|
93
97
|
|
|
98
|
+
export interface AccountService$ {
|
|
94
99
|
/**
|
|
95
100
|
* @see {@link AcceptPrimaryEmailUpdateCommand}
|
|
96
101
|
*/
|
|
@@ -262,6 +267,14 @@ interface AccountService$ {
|
|
|
262
267
|
Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | TooManyRequestsError | ValidationError
|
|
263
268
|
>;
|
|
264
269
|
|
|
270
|
+
listRegionsStream(
|
|
271
|
+
args: ListRegionsCommandInput,
|
|
272
|
+
options?: HttpHandlerOptions,
|
|
273
|
+
): Stream.Stream<
|
|
274
|
+
ListRegionsCommandOutput,
|
|
275
|
+
Cause.TimeoutError | SdkError | AccessDeniedError | InternalServerError | TooManyRequestsError | ValidationError
|
|
276
|
+
>;
|
|
277
|
+
|
|
265
278
|
/**
|
|
266
279
|
* @see {@link PutAccountNameCommand}
|
|
267
280
|
*/
|
|
@@ -328,6 +341,7 @@ export const makeAccountService = Effect.gen(function*() {
|
|
|
328
341
|
errorTags: AllServiceErrors,
|
|
329
342
|
resolveClientConfig: AccountServiceConfig.toAccountClientConfig,
|
|
330
343
|
},
|
|
344
|
+
paginators,
|
|
331
345
|
);
|
|
332
346
|
});
|
|
333
347
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
4
|
import type { AccountClientConfig } from "@aws-sdk/client-account";
|
|
5
|
-
import
|
|
5
|
+
import * as ServiceLogger from "@effect-aws/commons/ServiceLogger";
|
|
6
6
|
import * as Effect from "effect/Effect";
|
|
7
7
|
import { dual } from "effect/Function";
|
|
8
8
|
import * as Layer from "effect/Layer";
|
package/src/Errors.ts
CHANGED
|
@@ -7,7 +7,7 @@ import type {
|
|
|
7
7
|
TooManyRequestsException,
|
|
8
8
|
ValidationException,
|
|
9
9
|
} from "@aws-sdk/client-account";
|
|
10
|
-
import type { TaggedException } from "@effect-aws/commons";
|
|
10
|
+
import type { TaggedException } from "@effect-aws/commons/Errors";
|
|
11
11
|
|
|
12
12
|
export const AllServiceErrors = [
|
|
13
13
|
"AccessDeniedException",
|