@aws-sdk/client-amplifyuibuilder 3.52.0 → 3.54.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.
Files changed (42) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/README.md +8 -9
  3. package/dist-cjs/index.js +3 -0
  4. package/dist-cjs/models/AmplifyUIBuilderServiceException.js +11 -0
  5. package/dist-cjs/models/models_0.js +86 -1
  6. package/dist-cjs/pagination/ExportComponentsPaginator.js +34 -0
  7. package/dist-cjs/pagination/ExportThemesPaginator.js +34 -0
  8. package/dist-cjs/pagination/index.js +2 -0
  9. package/dist-cjs/protocols/Aws_restJson1.js +287 -402
  10. package/dist-es/index.js +1 -0
  11. package/dist-es/models/AmplifyUIBuilderServiceException.js +12 -0
  12. package/dist-es/models/models_0.js +74 -1
  13. package/dist-es/pagination/ExportComponentsPaginator.js +73 -0
  14. package/dist-es/pagination/ExportThemesPaginator.js +73 -0
  15. package/dist-es/pagination/index.js +2 -0
  16. package/dist-es/protocols/Aws_restJson1.js +410 -479
  17. package/dist-types/AmplifyUIBuilder.d.ts +14 -15
  18. package/dist-types/AmplifyUIBuilderClient.d.ts +10 -11
  19. package/dist-types/commands/ExportComponentsCommand.d.ts +1 -2
  20. package/dist-types/commands/ExportThemesCommand.d.ts +1 -2
  21. package/dist-types/commands/ListComponentsCommand.d.ts +2 -1
  22. package/dist-types/commands/ListThemesCommand.d.ts +2 -1
  23. package/dist-types/index.d.ts +1 -0
  24. package/dist-types/models/AmplifyUIBuilderServiceException.d.ts +10 -0
  25. package/dist-types/models/models_0.d.ts +270 -63
  26. package/dist-types/pagination/ExportComponentsPaginator.d.ts +4 -0
  27. package/dist-types/pagination/ExportThemesPaginator.d.ts +4 -0
  28. package/dist-types/pagination/index.d.ts +2 -0
  29. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  30. package/dist-types/runtimeConfig.d.ts +1 -1
  31. package/dist-types/runtimeConfig.native.d.ts +1 -1
  32. package/dist-types/ts3.4/AmplifyUIBuilderClient.d.ts +2 -2
  33. package/dist-types/ts3.4/index.d.ts +1 -0
  34. package/dist-types/ts3.4/models/AmplifyUIBuilderServiceException.d.ts +6 -0
  35. package/dist-types/ts3.4/models/models_0.d.ts +114 -21
  36. package/dist-types/ts3.4/pagination/ExportComponentsPaginator.d.ts +4 -0
  37. package/dist-types/ts3.4/pagination/ExportThemesPaginator.d.ts +4 -0
  38. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  39. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  40. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  41. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
  42. package/package.json +27 -27
@@ -5,7 +5,7 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
5
5
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
6
6
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
7
7
  import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
- import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
8
+ import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
9
  import { CreateComponentCommandInput, CreateComponentCommandOutput } from "./commands/CreateComponentCommand";
10
10
  import { CreateThemeCommandInput, CreateThemeCommandOutput } from "./commands/CreateThemeCommand";
11
11
  import { DeleteComponentCommandInput, DeleteComponentCommandOutput } from "./commands/DeleteComponentCommand";
@@ -30,7 +30,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
30
30
 
31
31
  urlParser?: __UrlParser;
32
32
 
33
- bodyLengthChecker?: (body: any) => number | undefined;
33
+ bodyLengthChecker?: __BodyLengthCalculator;
34
34
 
35
35
  streamCollector?: __StreamCollector;
36
36
 
@@ -3,3 +3,4 @@ export * from "./AmplifyUIBuilderClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
+ export { AmplifyUIBuilderServiceException } from "./models/AmplifyUIBuilderServiceException";
@@ -0,0 +1,6 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+
3
+ export declare class AmplifyUIBuilderServiceException extends __ServiceException {
4
+
5
+ constructor(options: __ServiceExceptionOptions);
6
+ }
@@ -1,4 +1,5 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { AmplifyUIBuilderServiceException as __BaseException } from "./AmplifyUIBuilderServiceException";
2
3
 
3
4
  export interface ComponentPropertyBindingProperties {
4
5
 
@@ -51,28 +52,32 @@ export declare namespace ComponentVariant {
51
52
  const filterSensitiveLog: (obj: ComponentVariant) => any;
52
53
  }
53
54
 
54
- export interface InternalServerException extends __SmithyException, $MetadataBearer {
55
- name: "InternalServerException";
56
- $fault: "server";
57
- message?: string;
55
+ export declare class InternalServerException extends __BaseException {
56
+ readonly name: "InternalServerException";
57
+ readonly $fault: "server";
58
+
59
+ constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
58
60
  }
59
61
 
60
- export interface InvalidParameterException extends __SmithyException, $MetadataBearer {
61
- name: "InvalidParameterException";
62
- $fault: "client";
63
- message?: string;
62
+ export declare class InvalidParameterException extends __BaseException {
63
+ readonly name: "InvalidParameterException";
64
+ readonly $fault: "client";
65
+
66
+ constructor(opts: __ExceptionOptionType<InvalidParameterException, __BaseException>);
64
67
  }
65
68
 
66
- export interface ResourceConflictException extends __SmithyException, $MetadataBearer {
67
- name: "ResourceConflictException";
68
- $fault: "client";
69
- message?: string;
69
+ export declare class ResourceConflictException extends __BaseException {
70
+ readonly name: "ResourceConflictException";
71
+ readonly $fault: "client";
72
+
73
+ constructor(opts: __ExceptionOptionType<ResourceConflictException, __BaseException>);
70
74
  }
71
75
 
72
- export interface ServiceQuotaExceededException extends __SmithyException, $MetadataBearer {
73
- name: "ServiceQuotaExceededException";
74
- $fault: "client";
75
- message?: string;
76
+ export declare class ServiceQuotaExceededException extends __BaseException {
77
+ readonly name: "ServiceQuotaExceededException";
78
+ readonly $fault: "client";
79
+
80
+ constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
76
81
  }
77
82
  export interface DeleteComponentRequest {
78
83
 
@@ -87,16 +92,19 @@ export declare namespace DeleteComponentRequest {
87
92
  const filterSensitiveLog: (obj: DeleteComponentRequest) => any;
88
93
  }
89
94
 
90
- export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
91
- name: "ResourceNotFoundException";
92
- $fault: "client";
93
- message?: string;
95
+ export declare class ResourceNotFoundException extends __BaseException {
96
+ readonly name: "ResourceNotFoundException";
97
+ readonly $fault: "client";
98
+
99
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
94
100
  }
95
101
  export interface ExportComponentsRequest {
96
102
 
97
103
  appId: string | undefined;
98
104
 
99
105
  environmentName: string | undefined;
106
+
107
+ nextToken?: string;
100
108
  }
101
109
  export declare namespace ExportComponentsRequest {
102
110
 
@@ -238,6 +246,8 @@ export interface ExportThemesRequest {
238
246
  appId: string | undefined;
239
247
 
240
248
  environmentName: string | undefined;
249
+
250
+ nextToken?: string;
241
251
  }
242
252
  export declare namespace ExportThemesRequest {
243
253
 
@@ -399,6 +409,10 @@ export interface ComponentProperty {
399
409
  type?: string;
400
410
 
401
411
  importedValue?: string;
412
+
413
+ componentName?: string;
414
+
415
+ property?: string;
402
416
  }
403
417
  export declare namespace ComponentProperty {
404
418
 
@@ -477,6 +491,19 @@ export declare namespace UpdateThemeData {
477
491
  const filterSensitiveLog: (obj: UpdateThemeData) => any;
478
492
  }
479
493
 
494
+ export interface MutationActionSetStateParameter {
495
+
496
+ componentName: string | undefined;
497
+
498
+ property: string | undefined;
499
+
500
+ set: ComponentProperty | undefined;
501
+ }
502
+ export declare namespace MutationActionSetStateParameter {
503
+
504
+ const filterSensitiveLog: (obj: MutationActionSetStateParameter) => any;
505
+ }
506
+
480
507
  export interface ComponentConditionProperty {
481
508
 
482
509
  property?: string;
@@ -490,6 +517,8 @@ export interface ComponentConditionProperty {
490
517
  then?: ComponentProperty;
491
518
 
492
519
  else?: ComponentProperty;
520
+
521
+ operandType?: string;
493
522
  }
494
523
  export declare namespace ComponentConditionProperty {
495
524
 
@@ -552,12 +581,52 @@ export declare namespace UpdateThemeResponse {
552
581
  export interface ExportThemesResponse {
553
582
 
554
583
  entities: Theme[] | undefined;
584
+
585
+ nextToken?: string;
555
586
  }
556
587
  export declare namespace ExportThemesResponse {
557
588
 
558
589
  const filterSensitiveLog: (obj: ExportThemesResponse) => any;
559
590
  }
560
591
 
592
+ export interface ActionParameters {
593
+
594
+ type?: ComponentProperty;
595
+
596
+ url?: ComponentProperty;
597
+
598
+ anchor?: ComponentProperty;
599
+
600
+ target?: ComponentProperty;
601
+
602
+ global?: ComponentProperty;
603
+
604
+ model?: string;
605
+
606
+ id?: ComponentProperty;
607
+
608
+ fields?: {
609
+ [key: string]: ComponentProperty;
610
+ };
611
+
612
+ state?: MutationActionSetStateParameter;
613
+ }
614
+ export declare namespace ActionParameters {
615
+
616
+ const filterSensitiveLog: (obj: ActionParameters) => any;
617
+ }
618
+
619
+ export interface ComponentEvent {
620
+
621
+ action?: string;
622
+
623
+ parameters?: ActionParameters;
624
+ }
625
+ export declare namespace ComponentEvent {
626
+
627
+ const filterSensitiveLog: (obj: ComponentEvent) => any;
628
+ }
629
+
561
630
  export interface ComponentChild {
562
631
 
563
632
  componentType: string | undefined;
@@ -569,6 +638,10 @@ export interface ComponentChild {
569
638
  } | undefined;
570
639
 
571
640
  children?: ComponentChild[];
641
+
642
+ events?: {
643
+ [key: string]: ComponentEvent;
644
+ };
572
645
  }
573
646
  export declare namespace ComponentChild {
574
647
 
@@ -618,6 +691,12 @@ export interface Component {
618
691
  tags?: {
619
692
  [key: string]: string;
620
693
  };
694
+
695
+ events?: {
696
+ [key: string]: ComponentEvent;
697
+ };
698
+
699
+ schemaVersion?: string;
621
700
  }
622
701
  export declare namespace Component {
623
702
 
@@ -657,6 +736,12 @@ export interface CreateComponentData {
657
736
  tags?: {
658
737
  [key: string]: string;
659
738
  };
739
+
740
+ events?: {
741
+ [key: string]: ComponentEvent;
742
+ };
743
+
744
+ schemaVersion?: string;
660
745
  }
661
746
  export declare namespace CreateComponentData {
662
747
 
@@ -694,6 +779,12 @@ export interface UpdateComponentData {
694
779
  collectionProperties?: {
695
780
  [key: string]: ComponentDataConfiguration;
696
781
  };
782
+
783
+ events?: {
784
+ [key: string]: ComponentEvent;
785
+ };
786
+
787
+ schemaVersion?: string;
697
788
  }
698
789
  export declare namespace UpdateComponentData {
699
790
 
@@ -756,6 +847,8 @@ export declare namespace UpdateComponentResponse {
756
847
  export interface ExportComponentsResponse {
757
848
 
758
849
  entities: Component[] | undefined;
850
+
851
+ nextToken?: string;
759
852
  }
760
853
  export declare namespace ExportComponentsResponse {
761
854
 
@@ -0,0 +1,4 @@
1
+ import { Paginator } from "@aws-sdk/types";
2
+ import { ExportComponentsCommandInput, ExportComponentsCommandOutput } from "../commands/ExportComponentsCommand";
3
+ import { AmplifyUIBuilderPaginationConfiguration } from "./Interfaces";
4
+ export declare function paginateExportComponents(config: AmplifyUIBuilderPaginationConfiguration, input: ExportComponentsCommandInput, ...additionalArguments: any): Paginator<ExportComponentsCommandOutput>;
@@ -0,0 +1,4 @@
1
+ import { Paginator } from "@aws-sdk/types";
2
+ import { ExportThemesCommandInput, ExportThemesCommandOutput } from "../commands/ExportThemesCommand";
3
+ import { AmplifyUIBuilderPaginationConfiguration } from "./Interfaces";
4
+ export declare function paginateExportThemes(config: AmplifyUIBuilderPaginationConfiguration, input: ExportThemesCommandInput, ...additionalArguments: any): Paginator<ExportThemesCommandOutput>;
@@ -1,3 +1,5 @@
1
+ export * from "./ExportComponentsPaginator";
2
+ export * from "./ExportThemesPaginator";
1
3
  export * from "./Interfaces";
2
4
  export * from "./ListComponentsPaginator";
3
5
  export * from "./ListThemesPaginator";
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: AmplifyUIBuilderClientConfig) =>
6
6
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
7
7
  base64Decoder: import("@aws-sdk/types").Decoder;
8
8
  base64Encoder: import("@aws-sdk/types").Encoder;
9
- bodyLengthChecker: (body: any) => number | undefined;
9
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
10
10
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
11
11
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
12
12
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: AmplifyUIBuilderClientConfig) =>
6
6
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
7
7
  base64Decoder: import("@aws-sdk/types").Decoder;
8
8
  base64Encoder: import("@aws-sdk/types").Encoder;
9
- bodyLengthChecker: (body: any) => number | undefined;
9
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
10
10
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
11
11
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
12
12
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: AmplifyUIBuilderClientConfig) =>
6
6
  requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | import("@aws-sdk/fetch-http-handler").FetchHttpHandler;
7
7
  apiVersion: string;
8
8
  urlParser: import("@aws-sdk/types").UrlParser;
9
- bodyLengthChecker: (body: any) => number | undefined;
9
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
10
10
  streamCollector: import("@aws-sdk/types").StreamCollector;
11
11
  base64Decoder: import("@aws-sdk/types").Decoder;
12
12
  base64Encoder: import("@aws-sdk/types").Encoder;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-amplifyuibuilder",
3
3
  "description": "AWS SDK for JavaScript Amplifyuibuilder Client for Node.js, Browser and React Native",
4
- "version": "3.52.0",
4
+ "version": "3.54.1",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -18,34 +18,34 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.52.0",
22
- "@aws-sdk/config-resolver": "3.52.0",
23
- "@aws-sdk/credential-provider-node": "3.52.0",
24
- "@aws-sdk/fetch-http-handler": "3.52.0",
25
- "@aws-sdk/hash-node": "3.52.0",
26
- "@aws-sdk/invalid-dependency": "3.52.0",
27
- "@aws-sdk/middleware-content-length": "3.52.0",
28
- "@aws-sdk/middleware-host-header": "3.52.0",
29
- "@aws-sdk/middleware-logger": "3.52.0",
30
- "@aws-sdk/middleware-retry": "3.52.0",
31
- "@aws-sdk/middleware-serde": "3.52.0",
32
- "@aws-sdk/middleware-signing": "3.52.0",
33
- "@aws-sdk/middleware-stack": "3.52.0",
34
- "@aws-sdk/middleware-user-agent": "3.52.0",
35
- "@aws-sdk/node-config-provider": "3.52.0",
36
- "@aws-sdk/node-http-handler": "3.52.0",
37
- "@aws-sdk/protocol-http": "3.52.0",
38
- "@aws-sdk/smithy-client": "3.52.0",
39
- "@aws-sdk/types": "3.52.0",
40
- "@aws-sdk/url-parser": "3.52.0",
21
+ "@aws-sdk/client-sts": "3.54.1",
22
+ "@aws-sdk/config-resolver": "3.54.1",
23
+ "@aws-sdk/credential-provider-node": "3.54.1",
24
+ "@aws-sdk/fetch-http-handler": "3.54.1",
25
+ "@aws-sdk/hash-node": "3.54.1",
26
+ "@aws-sdk/invalid-dependency": "3.54.1",
27
+ "@aws-sdk/middleware-content-length": "3.54.1",
28
+ "@aws-sdk/middleware-host-header": "3.54.1",
29
+ "@aws-sdk/middleware-logger": "3.54.1",
30
+ "@aws-sdk/middleware-retry": "3.54.1",
31
+ "@aws-sdk/middleware-serde": "3.54.1",
32
+ "@aws-sdk/middleware-signing": "3.54.1",
33
+ "@aws-sdk/middleware-stack": "3.54.1",
34
+ "@aws-sdk/middleware-user-agent": "3.54.1",
35
+ "@aws-sdk/node-config-provider": "3.54.1",
36
+ "@aws-sdk/node-http-handler": "3.54.1",
37
+ "@aws-sdk/protocol-http": "3.54.1",
38
+ "@aws-sdk/smithy-client": "3.54.1",
39
+ "@aws-sdk/types": "3.54.1",
40
+ "@aws-sdk/url-parser": "3.54.1",
41
41
  "@aws-sdk/util-base64-browser": "3.52.0",
42
42
  "@aws-sdk/util-base64-node": "3.52.0",
43
- "@aws-sdk/util-body-length-browser": "3.52.0",
44
- "@aws-sdk/util-body-length-node": "3.52.0",
45
- "@aws-sdk/util-defaults-mode-browser": "3.52.0",
46
- "@aws-sdk/util-defaults-mode-node": "3.52.0",
47
- "@aws-sdk/util-user-agent-browser": "3.52.0",
48
- "@aws-sdk/util-user-agent-node": "3.52.0",
43
+ "@aws-sdk/util-body-length-browser": "3.54.0",
44
+ "@aws-sdk/util-body-length-node": "3.54.0",
45
+ "@aws-sdk/util-defaults-mode-browser": "3.54.1",
46
+ "@aws-sdk/util-defaults-mode-node": "3.54.1",
47
+ "@aws-sdk/util-user-agent-browser": "3.54.1",
48
+ "@aws-sdk/util-user-agent-node": "3.54.1",
49
49
  "@aws-sdk/util-utf8-browser": "3.52.0",
50
50
  "@aws-sdk/util-utf8-node": "3.52.0",
51
51
  "tslib": "^2.3.0",