@aws-sdk/client-amplifyuibuilder 3.301.0 → 3.303.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -68,14 +68,12 @@ class ResourceNotFoundException extends AmplifyUIBuilderServiceException_1.Ampli
68
68
  }
69
69
  }
70
70
  exports.ResourceNotFoundException = ResourceNotFoundException;
71
- var TokenProviders;
72
- (function (TokenProviders) {
73
- TokenProviders["FIGMA"] = "figma";
74
- })(TokenProviders = exports.TokenProviders || (exports.TokenProviders = {}));
75
- var FixedPosition;
76
- (function (FixedPosition) {
77
- FixedPosition["FIRST"] = "first";
78
- })(FixedPosition = exports.FixedPosition || (exports.FixedPosition = {}));
71
+ exports.TokenProviders = {
72
+ FIGMA: "figma",
73
+ };
74
+ exports.FixedPosition = {
75
+ FIRST: "first",
76
+ };
79
77
  var FieldPosition;
80
78
  (function (FieldPosition) {
81
79
  FieldPosition.visit = (value, visitor) => {
@@ -88,22 +86,19 @@ var FieldPosition;
88
86
  return visitor._(value.$unknown[0], value.$unknown[1]);
89
87
  };
90
88
  })(FieldPosition = exports.FieldPosition || (exports.FieldPosition = {}));
91
- var FormButtonsPosition;
92
- (function (FormButtonsPosition) {
93
- FormButtonsPosition["BOTTOM"] = "bottom";
94
- FormButtonsPosition["TOP"] = "top";
95
- FormButtonsPosition["TOP_AND_BOTTOM"] = "top_and_bottom";
96
- })(FormButtonsPosition = exports.FormButtonsPosition || (exports.FormButtonsPosition = {}));
97
- var FormDataSourceType;
98
- (function (FormDataSourceType) {
99
- FormDataSourceType["CUSTOM"] = "Custom";
100
- FormDataSourceType["DATASTORE"] = "DataStore";
101
- })(FormDataSourceType = exports.FormDataSourceType || (exports.FormDataSourceType = {}));
102
- var FormActionType;
103
- (function (FormActionType) {
104
- FormActionType["CREATE"] = "create";
105
- FormActionType["UPDATE"] = "update";
106
- })(FormActionType = exports.FormActionType || (exports.FormActionType = {}));
89
+ exports.FormButtonsPosition = {
90
+ BOTTOM: "bottom",
91
+ TOP: "top",
92
+ TOP_AND_BOTTOM: "top_and_bottom",
93
+ };
94
+ exports.FormDataSourceType = {
95
+ CUSTOM: "Custom",
96
+ DATASTORE: "DataStore",
97
+ };
98
+ exports.FormActionType = {
99
+ CREATE: "create",
100
+ UPDATE: "update",
101
+ };
107
102
  var FormStyleConfig;
108
103
  (function (FormStyleConfig) {
109
104
  FormStyleConfig.visit = (value, visitor) => {
@@ -60,14 +60,12 @@ export class ResourceNotFoundException extends __BaseException {
60
60
  Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
61
61
  }
62
62
  }
63
- export var TokenProviders;
64
- (function (TokenProviders) {
65
- TokenProviders["FIGMA"] = "figma";
66
- })(TokenProviders || (TokenProviders = {}));
67
- export var FixedPosition;
68
- (function (FixedPosition) {
69
- FixedPosition["FIRST"] = "first";
70
- })(FixedPosition || (FixedPosition = {}));
63
+ export const TokenProviders = {
64
+ FIGMA: "figma",
65
+ };
66
+ export const FixedPosition = {
67
+ FIRST: "first",
68
+ };
71
69
  export var FieldPosition;
72
70
  (function (FieldPosition) {
73
71
  FieldPosition.visit = (value, visitor) => {
@@ -80,22 +78,19 @@ export var FieldPosition;
80
78
  return visitor._(value.$unknown[0], value.$unknown[1]);
81
79
  };
82
80
  })(FieldPosition || (FieldPosition = {}));
83
- export var FormButtonsPosition;
84
- (function (FormButtonsPosition) {
85
- FormButtonsPosition["BOTTOM"] = "bottom";
86
- FormButtonsPosition["TOP"] = "top";
87
- FormButtonsPosition["TOP_AND_BOTTOM"] = "top_and_bottom";
88
- })(FormButtonsPosition || (FormButtonsPosition = {}));
89
- export var FormDataSourceType;
90
- (function (FormDataSourceType) {
91
- FormDataSourceType["CUSTOM"] = "Custom";
92
- FormDataSourceType["DATASTORE"] = "DataStore";
93
- })(FormDataSourceType || (FormDataSourceType = {}));
94
- export var FormActionType;
95
- (function (FormActionType) {
96
- FormActionType["CREATE"] = "create";
97
- FormActionType["UPDATE"] = "update";
98
- })(FormActionType || (FormActionType = {}));
81
+ export const FormButtonsPosition = {
82
+ BOTTOM: "bottom",
83
+ TOP: "top",
84
+ TOP_AND_BOTTOM: "top_and_bottom",
85
+ };
86
+ export const FormDataSourceType = {
87
+ CUSTOM: "Custom",
88
+ DATASTORE: "DataStore",
89
+ };
90
+ export const FormActionType = {
91
+ CREATE: "create",
92
+ UPDATE: "update",
93
+ };
99
94
  export var FormStyleConfig;
100
95
  (function (FormStyleConfig) {
101
96
  FormStyleConfig.visit = (value, visitor) => {
@@ -244,13 +244,18 @@ export interface ListComponentsResponse {
244
244
  }
245
245
  /**
246
246
  * @public
247
+ * @enum
247
248
  */
248
- export declare enum TokenProviders {
249
+ export declare const TokenProviders: {
249
250
  /**
250
251
  * The figma token provider.
251
252
  */
252
- FIGMA = "figma"
253
- }
253
+ readonly FIGMA: "figma";
254
+ };
255
+ /**
256
+ * @public
257
+ */
258
+ export type TokenProviders = (typeof TokenProviders)[keyof typeof TokenProviders];
254
259
  /**
255
260
  * @public
256
261
  * <p>Describes the configuration of a request to exchange an access code for a token.</p>
@@ -298,10 +303,15 @@ export interface ExchangeCodeForTokenResponse {
298
303
  }
299
304
  /**
300
305
  * @public
306
+ * @enum
301
307
  */
302
- export declare enum FixedPosition {
303
- FIRST = "first"
304
- }
308
+ export declare const FixedPosition: {
309
+ readonly FIRST: "first";
310
+ };
311
+ /**
312
+ * @public
313
+ */
314
+ export type FixedPosition = (typeof FixedPosition)[keyof typeof FixedPosition];
305
315
  /**
306
316
  * @public
307
317
  * <p>Describes the field position.</p>
@@ -372,12 +382,17 @@ export interface FormButton {
372
382
  }
373
383
  /**
374
384
  * @public
385
+ * @enum
375
386
  */
376
- export declare enum FormButtonsPosition {
377
- BOTTOM = "bottom",
378
- TOP = "top",
379
- TOP_AND_BOTTOM = "top_and_bottom"
380
- }
387
+ export declare const FormButtonsPosition: {
388
+ readonly BOTTOM: "bottom";
389
+ readonly TOP: "top";
390
+ readonly TOP_AND_BOTTOM: "top_and_bottom";
391
+ };
392
+ /**
393
+ * @public
394
+ */
395
+ export type FormButtonsPosition = (typeof FormButtonsPosition)[keyof typeof FormButtonsPosition];
381
396
  /**
382
397
  * @public
383
398
  * <p>Describes the call to action button configuration for the form.</p>
@@ -402,17 +417,22 @@ export interface FormCTA {
402
417
  }
403
418
  /**
404
419
  * @public
420
+ * @enum
405
421
  */
406
- export declare enum FormDataSourceType {
422
+ export declare const FormDataSourceType: {
407
423
  /**
408
424
  * Will use passed in hooks to use when creating a form from scratch
409
425
  */
410
- CUSTOM = "Custom",
426
+ readonly CUSTOM: "Custom";
411
427
  /**
412
428
  * Will use a provided Amplify DataStore enabled API
413
429
  */
414
- DATASTORE = "DataStore"
415
- }
430
+ readonly DATASTORE: "DataStore";
431
+ };
432
+ /**
433
+ * @public
434
+ */
435
+ export type FormDataSourceType = (typeof FormDataSourceType)[keyof typeof FormDataSourceType];
416
436
  /**
417
437
  * @public
418
438
  * <p>Describes the data type configuration for the data source associated with a form.</p>
@@ -581,11 +601,16 @@ export interface FieldConfig {
581
601
  }
582
602
  /**
583
603
  * @public
604
+ * @enum
584
605
  */
585
- export declare enum FormActionType {
586
- CREATE = "create",
587
- UPDATE = "update"
588
- }
606
+ export declare const FormActionType: {
607
+ readonly CREATE: "create";
608
+ readonly UPDATE: "update";
609
+ };
610
+ /**
611
+ * @public
612
+ */
613
+ export type FormActionType = (typeof FormActionType)[keyof typeof FormActionType];
589
614
  /**
590
615
  * @public
591
616
  * <p>Stores the configuration information for a visual helper element for a form. A sectional
@@ -84,9 +84,11 @@ export interface ListComponentsResponse {
84
84
  entities: ComponentSummary[] | undefined;
85
85
  nextToken?: string;
86
86
  }
87
- export declare enum TokenProviders {
88
- FIGMA = "figma",
89
- }
87
+ export declare const TokenProviders: {
88
+ readonly FIGMA: "figma";
89
+ };
90
+ export type TokenProviders =
91
+ (typeof TokenProviders)[keyof typeof TokenProviders];
90
92
  export interface ExchangeCodeForTokenRequestBody {
91
93
  code: string | undefined;
92
94
  redirectUri: string | undefined;
@@ -100,9 +102,10 @@ export interface ExchangeCodeForTokenResponse {
100
102
  expiresIn: number | undefined;
101
103
  refreshToken: string | undefined;
102
104
  }
103
- export declare enum FixedPosition {
104
- FIRST = "first",
105
- }
105
+ export declare const FixedPosition: {
106
+ readonly FIRST: "first";
107
+ };
108
+ export type FixedPosition = (typeof FixedPosition)[keyof typeof FixedPosition];
106
109
  export type FieldPosition =
107
110
  | FieldPosition.BelowMember
108
111
  | FieldPosition.FixedMember
@@ -146,21 +149,25 @@ export interface FormButton {
146
149
  children?: string;
147
150
  position?: FieldPosition;
148
151
  }
149
- export declare enum FormButtonsPosition {
150
- BOTTOM = "bottom",
151
- TOP = "top",
152
- TOP_AND_BOTTOM = "top_and_bottom",
153
- }
152
+ export declare const FormButtonsPosition: {
153
+ readonly BOTTOM: "bottom";
154
+ readonly TOP: "top";
155
+ readonly TOP_AND_BOTTOM: "top_and_bottom";
156
+ };
157
+ export type FormButtonsPosition =
158
+ (typeof FormButtonsPosition)[keyof typeof FormButtonsPosition];
154
159
  export interface FormCTA {
155
160
  position?: FormButtonsPosition | string;
156
161
  clear?: FormButton;
157
162
  cancel?: FormButton;
158
163
  submit?: FormButton;
159
164
  }
160
- export declare enum FormDataSourceType {
161
- CUSTOM = "Custom",
162
- DATASTORE = "DataStore",
163
- }
165
+ export declare const FormDataSourceType: {
166
+ readonly CUSTOM: "Custom";
167
+ readonly DATASTORE: "DataStore";
168
+ };
169
+ export type FormDataSourceType =
170
+ (typeof FormDataSourceType)[keyof typeof FormDataSourceType];
164
171
  export interface FormDataTypeConfig {
165
172
  dataSourceType: FormDataSourceType | string | undefined;
166
173
  dataTypeName: string | undefined;
@@ -205,10 +212,12 @@ export interface FieldConfig {
205
212
  inputType?: FieldInputConfig;
206
213
  validations?: FieldValidationConfiguration[];
207
214
  }
208
- export declare enum FormActionType {
209
- CREATE = "create",
210
- UPDATE = "update",
211
- }
215
+ export declare const FormActionType: {
216
+ readonly CREATE: "create";
217
+ readonly UPDATE: "update";
218
+ };
219
+ export type FormActionType =
220
+ (typeof FormActionType)[keyof typeof FormActionType];
212
221
  export interface SectionalElement {
213
222
  type: string | undefined;
214
223
  position?: FieldPosition;
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.301.0",
4
+ "version": "3.303.0",
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",
@@ -21,43 +21,43 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.301.0",
25
- "@aws-sdk/config-resolver": "3.300.0",
26
- "@aws-sdk/credential-provider-node": "3.301.0",
27
- "@aws-sdk/fetch-http-handler": "3.296.0",
28
- "@aws-sdk/hash-node": "3.296.0",
29
- "@aws-sdk/invalid-dependency": "3.296.0",
30
- "@aws-sdk/middleware-content-length": "3.296.0",
31
- "@aws-sdk/middleware-endpoint": "3.299.0",
32
- "@aws-sdk/middleware-host-header": "3.296.0",
33
- "@aws-sdk/middleware-logger": "3.296.0",
34
- "@aws-sdk/middleware-recursion-detection": "3.296.0",
35
- "@aws-sdk/middleware-retry": "3.300.0",
36
- "@aws-sdk/middleware-serde": "3.296.0",
37
- "@aws-sdk/middleware-signing": "3.299.0",
38
- "@aws-sdk/middleware-stack": "3.296.0",
39
- "@aws-sdk/middleware-user-agent": "3.299.0",
40
- "@aws-sdk/node-config-provider": "3.300.0",
41
- "@aws-sdk/node-http-handler": "3.296.0",
42
- "@aws-sdk/protocol-http": "3.296.0",
43
- "@aws-sdk/smithy-client": "3.296.0",
44
- "@aws-sdk/types": "3.296.0",
45
- "@aws-sdk/url-parser": "3.296.0",
46
- "@aws-sdk/util-base64": "3.295.0",
47
- "@aws-sdk/util-body-length-browser": "3.295.0",
48
- "@aws-sdk/util-body-length-node": "3.295.0",
49
- "@aws-sdk/util-defaults-mode-browser": "3.296.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.300.0",
51
- "@aws-sdk/util-endpoints": "3.296.0",
52
- "@aws-sdk/util-retry": "3.296.0",
53
- "@aws-sdk/util-user-agent-browser": "3.299.0",
54
- "@aws-sdk/util-user-agent-node": "3.300.0",
55
- "@aws-sdk/util-utf8": "3.295.0",
24
+ "@aws-sdk/client-sts": "3.303.0",
25
+ "@aws-sdk/config-resolver": "3.303.0",
26
+ "@aws-sdk/credential-provider-node": "3.303.0",
27
+ "@aws-sdk/fetch-http-handler": "3.303.0",
28
+ "@aws-sdk/hash-node": "3.303.0",
29
+ "@aws-sdk/invalid-dependency": "3.303.0",
30
+ "@aws-sdk/middleware-content-length": "3.303.0",
31
+ "@aws-sdk/middleware-endpoint": "3.303.0",
32
+ "@aws-sdk/middleware-host-header": "3.303.0",
33
+ "@aws-sdk/middleware-logger": "3.303.0",
34
+ "@aws-sdk/middleware-recursion-detection": "3.303.0",
35
+ "@aws-sdk/middleware-retry": "3.303.0",
36
+ "@aws-sdk/middleware-serde": "3.303.0",
37
+ "@aws-sdk/middleware-signing": "3.303.0",
38
+ "@aws-sdk/middleware-stack": "3.303.0",
39
+ "@aws-sdk/middleware-user-agent": "3.303.0",
40
+ "@aws-sdk/node-config-provider": "3.303.0",
41
+ "@aws-sdk/node-http-handler": "3.303.0",
42
+ "@aws-sdk/protocol-http": "3.303.0",
43
+ "@aws-sdk/smithy-client": "3.303.0",
44
+ "@aws-sdk/types": "3.303.0",
45
+ "@aws-sdk/url-parser": "3.303.0",
46
+ "@aws-sdk/util-base64": "3.303.0",
47
+ "@aws-sdk/util-body-length-browser": "3.303.0",
48
+ "@aws-sdk/util-body-length-node": "3.303.0",
49
+ "@aws-sdk/util-defaults-mode-browser": "3.303.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.303.0",
51
+ "@aws-sdk/util-endpoints": "3.303.0",
52
+ "@aws-sdk/util-retry": "3.303.0",
53
+ "@aws-sdk/util-user-agent-browser": "3.303.0",
54
+ "@aws-sdk/util-user-agent-node": "3.303.0",
55
+ "@aws-sdk/util-utf8": "3.303.0",
56
56
  "tslib": "^2.5.0",
57
57
  "uuid": "^8.3.2"
58
58
  },
59
59
  "devDependencies": {
60
- "@aws-sdk/service-client-documentation-generator": "3.295.0",
60
+ "@aws-sdk/service-client-documentation-generator": "3.303.0",
61
61
  "@tsconfig/node14": "1.0.3",
62
62
  "@types/node": "^14.14.31",
63
63
  "@types/uuid": "^8.3.0",