@aws-sdk/client-amplifyuibuilder 3.378.0 → 3.381.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.
@@ -3,5 +3,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ruleSet = void 0;
4
4
  const q = "required", r = "fn", s = "argv", t = "ref";
5
5
  const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
6
- const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://amplifyuibuilder-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://amplifyuibuilder-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://amplifyuibuilder.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://amplifyuibuilder.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
6
+ const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }, { conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ endpoint: { url: "https://amplifyuibuilder-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ endpoint: { url: "https://amplifyuibuilder-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ endpoint: { url: "https://amplifyuibuilder.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://amplifyuibuilder.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] };
7
7
  exports.ruleSet = _data;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RefreshTokenResponseFilterSensitiveLog = exports.RefreshTokenRequestFilterSensitiveLog = exports.RefreshTokenRequestBodyFilterSensitiveLog = exports.ExchangeCodeForTokenResponseFilterSensitiveLog = exports.ExchangeCodeForTokenRequestFilterSensitiveLog = exports.ExchangeCodeForTokenRequestBodyFilterSensitiveLog = exports.UnauthorizedException = exports.FormStyleConfig = exports.LabelDecorator = exports.FormActionType = exports.StorageAccessLevel = exports.FormDataSourceType = exports.FormButtonsPosition = exports.FieldPosition = exports.FixedPosition = exports.TokenProviders = exports.ServiceQuotaExceededException = exports.ResourceConflictException = exports.ThrottlingException = exports.ResourceNotFoundException = exports.InvalidParameterException = exports.InternalServerException = exports.CodegenJobStatus = exports.CodegenJobRenderConfig = exports.JSTarget = exports.JSScript = exports.JSModule = exports.GenericDataRelationshipType = exports.CodegenGenericDataFieldDataType = exports.CodegenJobGenericDataSourceType = void 0;
3
+ exports.RefreshTokenResponseFilterSensitiveLog = exports.RefreshTokenRequestFilterSensitiveLog = exports.RefreshTokenRequestBodyFilterSensitiveLog = exports.ExchangeCodeForTokenResponseFilterSensitiveLog = exports.ExchangeCodeForTokenRequestFilterSensitiveLog = exports.ExchangeCodeForTokenRequestBodyFilterSensitiveLog = exports.UnauthorizedException = exports.FormStyleConfig = exports.LabelDecorator = exports.FormActionType = exports.StorageAccessLevel = exports.FormDataSourceType = exports.FormButtonsPosition = exports.FieldPosition = exports.FixedPosition = exports.TokenProviders = exports.ServiceQuotaExceededException = exports.ResourceConflictException = exports.ThrottlingException = exports.ResourceNotFoundException = exports.InvalidParameterException = exports.InternalServerException = exports.CodegenJobStatus = exports.CodegenJobRenderConfig = exports.JSTarget = exports.JSScript = exports.JSModule = exports.ApiConfiguration = exports.GenericDataRelationshipType = exports.CodegenGenericDataFieldDataType = exports.CodegenJobGenericDataSourceType = void 0;
4
4
  const smithy_client_1 = require("@smithy/smithy-client");
5
5
  const AmplifyUIBuilderServiceException_1 = require("./AmplifyUIBuilderServiceException");
6
6
  exports.CodegenJobGenericDataSourceType = {
@@ -30,6 +30,18 @@ exports.GenericDataRelationshipType = {
30
30
  HAS_MANY: "HAS_MANY",
31
31
  HAS_ONE: "HAS_ONE",
32
32
  };
33
+ var ApiConfiguration;
34
+ (function (ApiConfiguration) {
35
+ ApiConfiguration.visit = (value, visitor) => {
36
+ if (value.graphQLConfig !== undefined)
37
+ return visitor.graphQLConfig(value.graphQLConfig);
38
+ if (value.dataStoreConfig !== undefined)
39
+ return visitor.dataStoreConfig(value.dataStoreConfig);
40
+ if (value.noApiConfig !== undefined)
41
+ return visitor.noApiConfig(value.noApiConfig);
42
+ return visitor._(value.$unknown[0], value.$unknown[1]);
43
+ };
44
+ })(ApiConfiguration = exports.ApiConfiguration || (exports.ApiConfiguration = {}));
33
45
  exports.JSModule = {
34
46
  ES2020: "es2020",
35
47
  ESNEXT: "esnext",
@@ -1,4 +1,4 @@
1
1
  const q = "required", r = "fn", s = "argv", t = "ref";
2
2
  const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
3
- const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://amplifyuibuilder-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://amplifyuibuilder-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://amplifyuibuilder.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://amplifyuibuilder.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
3
+ const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }, { conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ endpoint: { url: "https://amplifyuibuilder-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ endpoint: { url: "https://amplifyuibuilder-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ endpoint: { url: "https://amplifyuibuilder.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://amplifyuibuilder.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] };
4
4
  export const ruleSet = _data;
@@ -27,6 +27,18 @@ export const GenericDataRelationshipType = {
27
27
  HAS_MANY: "HAS_MANY",
28
28
  HAS_ONE: "HAS_ONE",
29
29
  };
30
+ export var ApiConfiguration;
31
+ (function (ApiConfiguration) {
32
+ ApiConfiguration.visit = (value, visitor) => {
33
+ if (value.graphQLConfig !== undefined)
34
+ return visitor.graphQLConfig(value.graphQLConfig);
35
+ if (value.dataStoreConfig !== undefined)
36
+ return visitor.dataStoreConfig(value.dataStoreConfig);
37
+ if (value.noApiConfig !== undefined)
38
+ return visitor.noApiConfig(value.noApiConfig);
39
+ return visitor._(value.$unknown[0], value.$unknown[1]);
40
+ };
41
+ })(ApiConfiguration || (ApiConfiguration = {}));
30
42
  export const JSModule = {
31
43
  ES2020: "es2020",
32
44
  ESNEXT: "esnext",
@@ -23,7 +23,7 @@ export interface CreateFormCommandOutput extends CreateFormResponse, __MetadataB
23
23
  }
24
24
  /**
25
25
  * @public
26
- * <p>Creates a new form for an Amplify.</p>
26
+ * <p>Creates a new form for an Amplify app.</p>
27
27
  * @example
28
28
  * Use a bare-bones client and the command you need to make an API call.
29
29
  * ```javascript
@@ -49,6 +49,17 @@ export interface GetCodegenJobCommandOutput extends GetCodegenJobResponse, __Met
49
49
  * // script: "jsx" || "tsx" || "js",
50
50
  * // renderTypeDeclarations: true || false,
51
51
  * // inlineSourceMap: true || false,
52
+ * // apiConfiguration: { // ApiConfiguration Union: only one key present
53
+ * // graphQLConfig: { // GraphQLRenderConfig
54
+ * // typesFilePath: "STRING_VALUE", // required
55
+ * // queriesFilePath: "STRING_VALUE", // required
56
+ * // mutationsFilePath: "STRING_VALUE", // required
57
+ * // subscriptionsFilePath: "STRING_VALUE", // required
58
+ * // fragmentsFilePath: "STRING_VALUE", // required
59
+ * // },
60
+ * // dataStoreConfig: {},
61
+ * // noApiConfig: {},
62
+ * // },
52
63
  * // },
53
64
  * // },
54
65
  * // genericDataSchema: { // CodegenJobGenericDataSchema
@@ -23,7 +23,7 @@ export interface StartCodegenJobCommandOutput extends StartCodegenJobResponse, _
23
23
  }
24
24
  /**
25
25
  * @public
26
- * <p>Starts a code generation job for for a specified Amplify app and backend environment.</p>
26
+ * <p>Starts a code generation job for a specified Amplify app and backend environment.</p>
27
27
  * @example
28
28
  * Use a bare-bones client and the command you need to make an API call.
29
29
  * ```javascript
@@ -42,6 +42,17 @@ export interface StartCodegenJobCommandOutput extends StartCodegenJobResponse, _
42
42
  * script: "jsx" || "tsx" || "js",
43
43
  * renderTypeDeclarations: true || false,
44
44
  * inlineSourceMap: true || false,
45
+ * apiConfiguration: { // ApiConfiguration Union: only one key present
46
+ * graphQLConfig: { // GraphQLRenderConfig
47
+ * typesFilePath: "STRING_VALUE", // required
48
+ * queriesFilePath: "STRING_VALUE", // required
49
+ * mutationsFilePath: "STRING_VALUE", // required
50
+ * subscriptionsFilePath: "STRING_VALUE", // required
51
+ * fragmentsFilePath: "STRING_VALUE", // required
52
+ * },
53
+ * dataStoreConfig: {},
54
+ * noApiConfig: {},
55
+ * },
45
56
  * },
46
57
  * },
47
58
  * genericDataSchema: { // CodegenJobGenericDataSchema
@@ -138,6 +149,17 @@ export interface StartCodegenJobCommandOutput extends StartCodegenJobResponse, _
138
149
  * // script: "jsx" || "tsx" || "js",
139
150
  * // renderTypeDeclarations: true || false,
140
151
  * // inlineSourceMap: true || false,
152
+ * // apiConfiguration: { // ApiConfiguration Union: only one key present
153
+ * // graphQLConfig: { // GraphQLRenderConfig
154
+ * // typesFilePath: "STRING_VALUE", // required
155
+ * // queriesFilePath: "STRING_VALUE", // required
156
+ * // mutationsFilePath: "STRING_VALUE", // required
157
+ * // subscriptionsFilePath: "STRING_VALUE", // required
158
+ * // fragmentsFilePath: "STRING_VALUE", // required
159
+ * // },
160
+ * // dataStoreConfig: {},
161
+ * // noApiConfig: {},
162
+ * // },
141
163
  * // },
142
164
  * // },
143
165
  * // genericDataSchema: { // CodegenJobGenericDataSchema
@@ -1,4 +1,7 @@
1
1
  import { Endpoint, EndpointParameters as __EndpointParameters, EndpointV2, Provider } from "@smithy/types";
2
+ /**
3
+ * @public
4
+ */
2
5
  export interface ClientInputEndpointParameters {
3
6
  region?: string | Provider<string>;
4
7
  useDualstackEndpoint?: boolean | Provider<boolean>;
@@ -13,6 +13,7 @@
13
13
  */
14
14
  export * from "./AmplifyUIBuilderClient";
15
15
  export * from "./AmplifyUIBuilder";
16
+ export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
16
17
  export * from "./commands";
17
18
  export * from "./pagination";
18
19
  export * from "./models";
@@ -253,6 +253,94 @@ export interface CodegenJobGenericDataSchema {
253
253
  */
254
254
  nonModels: Record<string, CodegenGenericDataNonModel> | undefined;
255
255
  }
256
+ /**
257
+ * @public
258
+ * <p>Describes the DataStore configuration for an API for a code generation job.</p>
259
+ */
260
+ export interface DataStoreRenderConfig {
261
+ }
262
+ /**
263
+ * @public
264
+ * <p>Describes the GraphQL configuration for an API for a code generation job.</p>
265
+ */
266
+ export interface GraphQLRenderConfig {
267
+ /**
268
+ * <p>The path to the GraphQL types file, relative to the component output directory.</p>
269
+ */
270
+ typesFilePath: string | undefined;
271
+ /**
272
+ * <p>The path to the GraphQL queries file, relative to the component output directory.</p>
273
+ */
274
+ queriesFilePath: string | undefined;
275
+ /**
276
+ * <p>The path to the GraphQL mutations file, relative to the component output directory.</p>
277
+ */
278
+ mutationsFilePath: string | undefined;
279
+ /**
280
+ * <p>The path to the GraphQL subscriptions file, relative to the component output directory.</p>
281
+ */
282
+ subscriptionsFilePath: string | undefined;
283
+ /**
284
+ * <p>The path to the GraphQL fragments file, relative to the component output directory.</p>
285
+ */
286
+ fragmentsFilePath: string | undefined;
287
+ }
288
+ /**
289
+ * @public
290
+ * <p>Describes the configuration for an application with no API being used.</p>
291
+ */
292
+ export interface NoApiRenderConfig {
293
+ }
294
+ /**
295
+ * @public
296
+ * <p>Describes the API configuration for a code generation job.</p>
297
+ */
298
+ export type ApiConfiguration = ApiConfiguration.DataStoreConfigMember | ApiConfiguration.GraphQLConfigMember | ApiConfiguration.NoApiConfigMember | ApiConfiguration.$UnknownMember;
299
+ /**
300
+ * @public
301
+ */
302
+ export declare namespace ApiConfiguration {
303
+ /**
304
+ * <p>The configuration for an application using GraphQL APIs.</p>
305
+ */
306
+ interface GraphQLConfigMember {
307
+ graphQLConfig: GraphQLRenderConfig;
308
+ dataStoreConfig?: never;
309
+ noApiConfig?: never;
310
+ $unknown?: never;
311
+ }
312
+ /**
313
+ * <p>The configuration for an application using DataStore APIs.</p>
314
+ */
315
+ interface DataStoreConfigMember {
316
+ graphQLConfig?: never;
317
+ dataStoreConfig: DataStoreRenderConfig;
318
+ noApiConfig?: never;
319
+ $unknown?: never;
320
+ }
321
+ /**
322
+ * <p>The configuration for an application with no API being used.</p>
323
+ */
324
+ interface NoApiConfigMember {
325
+ graphQLConfig?: never;
326
+ dataStoreConfig?: never;
327
+ noApiConfig: NoApiRenderConfig;
328
+ $unknown?: never;
329
+ }
330
+ interface $UnknownMember {
331
+ graphQLConfig?: never;
332
+ dataStoreConfig?: never;
333
+ noApiConfig?: never;
334
+ $unknown: [string, any];
335
+ }
336
+ interface Visitor<T> {
337
+ graphQLConfig: (value: GraphQLRenderConfig) => T;
338
+ dataStoreConfig: (value: DataStoreRenderConfig) => T;
339
+ noApiConfig: (value: NoApiRenderConfig) => T;
340
+ _: (name: string, value: any) => T;
341
+ }
342
+ const visit: <T>(value: ApiConfiguration, visitor: Visitor<T>) => T;
343
+ }
256
344
  /**
257
345
  * @public
258
346
  * @enum
@@ -315,10 +403,14 @@ export interface ReactStartCodegenJobData {
315
403
  * <p>Specifies whether the code generation job should render inline source maps.</p>
316
404
  */
317
405
  inlineSourceMap?: boolean;
406
+ /**
407
+ * <p>The API configuration for the code generation job.</p>
408
+ */
409
+ apiConfiguration?: ApiConfiguration;
318
410
  }
319
411
  /**
320
412
  * @public
321
- * <p>Describes the configuration information for rendering the UI component associated the code generation job.</p>
413
+ * <p>Describes the configuration information for rendering the UI component associated with the code generation job.</p>
322
414
  */
323
415
  export type CodegenJobRenderConfig = CodegenJobRenderConfig.ReactMember | CodegenJobRenderConfig.$UnknownMember;
324
416
  /**
@@ -373,7 +465,7 @@ export interface CodegenJob {
373
465
  */
374
466
  environmentName: string | undefined;
375
467
  /**
376
- * <p>Describes the configuration information for rendering the UI component associated the code generation job.</p>
468
+ * <p>Describes the configuration information for rendering the UI component associated with the code generation job.</p>
377
469
  */
378
470
  renderConfig?: CodegenJobRenderConfig;
379
471
  /**
@@ -1,5 +1,6 @@
1
1
  export * from "./AmplifyUIBuilderClient";
2
2
  export * from "./AmplifyUIBuilder";
3
+ export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
3
4
  export * from "./commands";
4
5
  export * from "./pagination";
5
6
  export * from "./models";
@@ -89,6 +89,53 @@ export interface CodegenJobGenericDataSchema {
89
89
  enums: Record<string, CodegenGenericDataEnum> | undefined;
90
90
  nonModels: Record<string, CodegenGenericDataNonModel> | undefined;
91
91
  }
92
+ export interface DataStoreRenderConfig {}
93
+ export interface GraphQLRenderConfig {
94
+ typesFilePath: string | undefined;
95
+ queriesFilePath: string | undefined;
96
+ mutationsFilePath: string | undefined;
97
+ subscriptionsFilePath: string | undefined;
98
+ fragmentsFilePath: string | undefined;
99
+ }
100
+ export interface NoApiRenderConfig {}
101
+ export type ApiConfiguration =
102
+ | ApiConfiguration.DataStoreConfigMember
103
+ | ApiConfiguration.GraphQLConfigMember
104
+ | ApiConfiguration.NoApiConfigMember
105
+ | ApiConfiguration.$UnknownMember;
106
+ export declare namespace ApiConfiguration {
107
+ interface GraphQLConfigMember {
108
+ graphQLConfig: GraphQLRenderConfig;
109
+ dataStoreConfig?: never;
110
+ noApiConfig?: never;
111
+ $unknown?: never;
112
+ }
113
+ interface DataStoreConfigMember {
114
+ graphQLConfig?: never;
115
+ dataStoreConfig: DataStoreRenderConfig;
116
+ noApiConfig?: never;
117
+ $unknown?: never;
118
+ }
119
+ interface NoApiConfigMember {
120
+ graphQLConfig?: never;
121
+ dataStoreConfig?: never;
122
+ noApiConfig: NoApiRenderConfig;
123
+ $unknown?: never;
124
+ }
125
+ interface $UnknownMember {
126
+ graphQLConfig?: never;
127
+ dataStoreConfig?: never;
128
+ noApiConfig?: never;
129
+ $unknown: [string, any];
130
+ }
131
+ interface Visitor<T> {
132
+ graphQLConfig: (value: GraphQLRenderConfig) => T;
133
+ dataStoreConfig: (value: DataStoreRenderConfig) => T;
134
+ noApiConfig: (value: NoApiRenderConfig) => T;
135
+ _: (name: string, value: any) => T;
136
+ }
137
+ const visit: <T>(value: ApiConfiguration, visitor: Visitor<T>) => T;
138
+ }
92
139
  export declare const JSModule: {
93
140
  readonly ES2020: "es2020";
94
141
  readonly ESNEXT: "esnext";
@@ -111,6 +158,7 @@ export interface ReactStartCodegenJobData {
111
158
  script?: JSScript | string;
112
159
  renderTypeDeclarations?: boolean;
113
160
  inlineSourceMap?: boolean;
161
+ apiConfiguration?: ApiConfiguration;
114
162
  }
115
163
  export type CodegenJobRenderConfig =
116
164
  | CodegenJobRenderConfig.ReactMember
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.378.0",
4
+ "version": "3.381.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,13 +21,13 @@
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.378.0",
25
- "@aws-sdk/credential-provider-node": "3.378.0",
26
- "@aws-sdk/middleware-host-header": "3.378.0",
24
+ "@aws-sdk/client-sts": "3.379.1",
25
+ "@aws-sdk/credential-provider-node": "3.379.1",
26
+ "@aws-sdk/middleware-host-header": "3.379.1",
27
27
  "@aws-sdk/middleware-logger": "3.378.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.378.0",
29
- "@aws-sdk/middleware-signing": "3.378.0",
30
- "@aws-sdk/middleware-user-agent": "3.378.0",
29
+ "@aws-sdk/middleware-signing": "3.379.1",
30
+ "@aws-sdk/middleware-user-agent": "3.379.1",
31
31
  "@aws-sdk/types": "3.378.0",
32
32
  "@aws-sdk/util-endpoints": "3.378.0",
33
33
  "@aws-sdk/util-user-agent-browser": "3.378.0",