@aws-sdk/client-amplifyuibuilder 3.303.0 → 3.309.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.
- package/dist-cjs/commands/CreateComponentCommand.js +2 -2
- package/dist-cjs/commands/CreateFormCommand.js +2 -2
- package/dist-cjs/commands/CreateThemeCommand.js +2 -2
- package/dist-cjs/commands/DeleteComponentCommand.js +2 -2
- package/dist-cjs/commands/DeleteFormCommand.js +2 -2
- package/dist-cjs/commands/DeleteThemeCommand.js +2 -2
- package/dist-cjs/commands/ExchangeCodeForTokenCommand.js +2 -2
- package/dist-cjs/commands/ExportComponentsCommand.js +2 -2
- package/dist-cjs/commands/ExportFormsCommand.js +2 -2
- package/dist-cjs/commands/ExportThemesCommand.js +2 -2
- package/dist-cjs/commands/GetComponentCommand.js +2 -2
- package/dist-cjs/commands/GetFormCommand.js +2 -2
- package/dist-cjs/commands/GetMetadataCommand.js +2 -2
- package/dist-cjs/commands/GetThemeCommand.js +2 -2
- package/dist-cjs/commands/ListComponentsCommand.js +2 -2
- package/dist-cjs/commands/ListFormsCommand.js +2 -2
- package/dist-cjs/commands/ListThemesCommand.js +2 -2
- package/dist-cjs/commands/PutMetadataFlagCommand.js +2 -2
- package/dist-cjs/commands/RefreshTokenCommand.js +2 -2
- package/dist-cjs/commands/UpdateComponentCommand.js +2 -2
- package/dist-cjs/commands/UpdateFormCommand.js +2 -2
- package/dist-cjs/commands/UpdateThemeCommand.js +2 -2
- package/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/models/models_0.js +13 -1
- package/dist-cjs/protocols/Aws_restJson1.js +647 -572
- package/dist-es/commands/CreateComponentCommand.js +3 -3
- package/dist-es/commands/CreateFormCommand.js +3 -3
- package/dist-es/commands/CreateThemeCommand.js +3 -3
- package/dist-es/commands/DeleteComponentCommand.js +3 -3
- package/dist-es/commands/DeleteFormCommand.js +3 -3
- package/dist-es/commands/DeleteThemeCommand.js +3 -3
- package/dist-es/commands/ExchangeCodeForTokenCommand.js +3 -3
- package/dist-es/commands/ExportComponentsCommand.js +3 -3
- package/dist-es/commands/ExportFormsCommand.js +3 -3
- package/dist-es/commands/ExportThemesCommand.js +3 -3
- package/dist-es/commands/GetComponentCommand.js +3 -3
- package/dist-es/commands/GetFormCommand.js +3 -3
- package/dist-es/commands/GetMetadataCommand.js +3 -3
- package/dist-es/commands/GetThemeCommand.js +3 -3
- package/dist-es/commands/ListComponentsCommand.js +3 -3
- package/dist-es/commands/ListFormsCommand.js +3 -3
- package/dist-es/commands/ListThemesCommand.js +3 -3
- package/dist-es/commands/PutMetadataFlagCommand.js +3 -3
- package/dist-es/commands/RefreshTokenCommand.js +3 -3
- package/dist-es/commands/UpdateComponentCommand.js +3 -3
- package/dist-es/commands/UpdateFormCommand.js +3 -3
- package/dist-es/commands/UpdateThemeCommand.js +3 -3
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/models/models_0.js +12 -0
- package/dist-es/protocols/Aws_restJson1.js +602 -527
- package/dist-types/AmplifyUIBuilder.d.ts +1 -1
- package/dist-types/commands/CreateComponentCommand.d.ts +2 -0
- package/dist-types/commands/CreateFormCommand.d.ts +38 -4
- package/dist-types/commands/ExchangeCodeForTokenCommand.d.ts +1 -0
- package/dist-types/commands/PutMetadataFlagCommand.d.ts +1 -1
- package/dist-types/commands/RefreshTokenCommand.d.ts +1 -0
- package/dist-types/commands/UpdateComponentCommand.d.ts +2 -0
- package/dist-types/commands/UpdateFormCommand.d.ts +38 -4
- package/dist-types/models/models_0.d.ts +567 -404
- package/dist-types/protocols/Aws_restJson1.d.ts +176 -44
- package/dist-types/ts3.4/models/models_0.d.ts +136 -92
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +44 -44
- package/package.json +29 -29
|
@@ -22,47 +22,179 @@ import { RefreshTokenCommandInput, RefreshTokenCommandOutput } from "../commands
|
|
|
22
22
|
import { UpdateComponentCommandInput, UpdateComponentCommandOutput } from "../commands/UpdateComponentCommand";
|
|
23
23
|
import { UpdateFormCommandInput, UpdateFormCommandOutput } from "../commands/UpdateFormCommand";
|
|
24
24
|
import { UpdateThemeCommandInput, UpdateThemeCommandOutput } from "../commands/UpdateThemeCommand";
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
export declare const
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
export declare const
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
export declare const
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
export declare const
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
export declare const
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
export declare const
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
export declare const
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
export declare const
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
export declare const
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
export declare const
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
export declare const
|
|
25
|
+
/**
|
|
26
|
+
* serializeAws_restJson1CreateComponentCommand
|
|
27
|
+
*/
|
|
28
|
+
export declare const se_CreateComponentCommand: (input: CreateComponentCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
29
|
+
/**
|
|
30
|
+
* serializeAws_restJson1CreateFormCommand
|
|
31
|
+
*/
|
|
32
|
+
export declare const se_CreateFormCommand: (input: CreateFormCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
33
|
+
/**
|
|
34
|
+
* serializeAws_restJson1CreateThemeCommand
|
|
35
|
+
*/
|
|
36
|
+
export declare const se_CreateThemeCommand: (input: CreateThemeCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
37
|
+
/**
|
|
38
|
+
* serializeAws_restJson1DeleteComponentCommand
|
|
39
|
+
*/
|
|
40
|
+
export declare const se_DeleteComponentCommand: (input: DeleteComponentCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
41
|
+
/**
|
|
42
|
+
* serializeAws_restJson1DeleteFormCommand
|
|
43
|
+
*/
|
|
44
|
+
export declare const se_DeleteFormCommand: (input: DeleteFormCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
45
|
+
/**
|
|
46
|
+
* serializeAws_restJson1DeleteThemeCommand
|
|
47
|
+
*/
|
|
48
|
+
export declare const se_DeleteThemeCommand: (input: DeleteThemeCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
49
|
+
/**
|
|
50
|
+
* serializeAws_restJson1ExchangeCodeForTokenCommand
|
|
51
|
+
*/
|
|
52
|
+
export declare const se_ExchangeCodeForTokenCommand: (input: ExchangeCodeForTokenCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
53
|
+
/**
|
|
54
|
+
* serializeAws_restJson1ExportComponentsCommand
|
|
55
|
+
*/
|
|
56
|
+
export declare const se_ExportComponentsCommand: (input: ExportComponentsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
57
|
+
/**
|
|
58
|
+
* serializeAws_restJson1ExportFormsCommand
|
|
59
|
+
*/
|
|
60
|
+
export declare const se_ExportFormsCommand: (input: ExportFormsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
61
|
+
/**
|
|
62
|
+
* serializeAws_restJson1ExportThemesCommand
|
|
63
|
+
*/
|
|
64
|
+
export declare const se_ExportThemesCommand: (input: ExportThemesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
65
|
+
/**
|
|
66
|
+
* serializeAws_restJson1GetComponentCommand
|
|
67
|
+
*/
|
|
68
|
+
export declare const se_GetComponentCommand: (input: GetComponentCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
69
|
+
/**
|
|
70
|
+
* serializeAws_restJson1GetFormCommand
|
|
71
|
+
*/
|
|
72
|
+
export declare const se_GetFormCommand: (input: GetFormCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
73
|
+
/**
|
|
74
|
+
* serializeAws_restJson1GetMetadataCommand
|
|
75
|
+
*/
|
|
76
|
+
export declare const se_GetMetadataCommand: (input: GetMetadataCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
77
|
+
/**
|
|
78
|
+
* serializeAws_restJson1GetThemeCommand
|
|
79
|
+
*/
|
|
80
|
+
export declare const se_GetThemeCommand: (input: GetThemeCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
81
|
+
/**
|
|
82
|
+
* serializeAws_restJson1ListComponentsCommand
|
|
83
|
+
*/
|
|
84
|
+
export declare const se_ListComponentsCommand: (input: ListComponentsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
85
|
+
/**
|
|
86
|
+
* serializeAws_restJson1ListFormsCommand
|
|
87
|
+
*/
|
|
88
|
+
export declare const se_ListFormsCommand: (input: ListFormsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
89
|
+
/**
|
|
90
|
+
* serializeAws_restJson1ListThemesCommand
|
|
91
|
+
*/
|
|
92
|
+
export declare const se_ListThemesCommand: (input: ListThemesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
93
|
+
/**
|
|
94
|
+
* serializeAws_restJson1PutMetadataFlagCommand
|
|
95
|
+
*/
|
|
96
|
+
export declare const se_PutMetadataFlagCommand: (input: PutMetadataFlagCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
97
|
+
/**
|
|
98
|
+
* serializeAws_restJson1RefreshTokenCommand
|
|
99
|
+
*/
|
|
100
|
+
export declare const se_RefreshTokenCommand: (input: RefreshTokenCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
101
|
+
/**
|
|
102
|
+
* serializeAws_restJson1UpdateComponentCommand
|
|
103
|
+
*/
|
|
104
|
+
export declare const se_UpdateComponentCommand: (input: UpdateComponentCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
105
|
+
/**
|
|
106
|
+
* serializeAws_restJson1UpdateFormCommand
|
|
107
|
+
*/
|
|
108
|
+
export declare const se_UpdateFormCommand: (input: UpdateFormCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
109
|
+
/**
|
|
110
|
+
* serializeAws_restJson1UpdateThemeCommand
|
|
111
|
+
*/
|
|
112
|
+
export declare const se_UpdateThemeCommand: (input: UpdateThemeCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
113
|
+
/**
|
|
114
|
+
* deserializeAws_restJson1CreateComponentCommand
|
|
115
|
+
*/
|
|
116
|
+
export declare const de_CreateComponentCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateComponentCommandOutput>;
|
|
117
|
+
/**
|
|
118
|
+
* deserializeAws_restJson1CreateFormCommand
|
|
119
|
+
*/
|
|
120
|
+
export declare const de_CreateFormCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateFormCommandOutput>;
|
|
121
|
+
/**
|
|
122
|
+
* deserializeAws_restJson1CreateThemeCommand
|
|
123
|
+
*/
|
|
124
|
+
export declare const de_CreateThemeCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateThemeCommandOutput>;
|
|
125
|
+
/**
|
|
126
|
+
* deserializeAws_restJson1DeleteComponentCommand
|
|
127
|
+
*/
|
|
128
|
+
export declare const de_DeleteComponentCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteComponentCommandOutput>;
|
|
129
|
+
/**
|
|
130
|
+
* deserializeAws_restJson1DeleteFormCommand
|
|
131
|
+
*/
|
|
132
|
+
export declare const de_DeleteFormCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteFormCommandOutput>;
|
|
133
|
+
/**
|
|
134
|
+
* deserializeAws_restJson1DeleteThemeCommand
|
|
135
|
+
*/
|
|
136
|
+
export declare const de_DeleteThemeCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteThemeCommandOutput>;
|
|
137
|
+
/**
|
|
138
|
+
* deserializeAws_restJson1ExchangeCodeForTokenCommand
|
|
139
|
+
*/
|
|
140
|
+
export declare const de_ExchangeCodeForTokenCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ExchangeCodeForTokenCommandOutput>;
|
|
141
|
+
/**
|
|
142
|
+
* deserializeAws_restJson1ExportComponentsCommand
|
|
143
|
+
*/
|
|
144
|
+
export declare const de_ExportComponentsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ExportComponentsCommandOutput>;
|
|
145
|
+
/**
|
|
146
|
+
* deserializeAws_restJson1ExportFormsCommand
|
|
147
|
+
*/
|
|
148
|
+
export declare const de_ExportFormsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ExportFormsCommandOutput>;
|
|
149
|
+
/**
|
|
150
|
+
* deserializeAws_restJson1ExportThemesCommand
|
|
151
|
+
*/
|
|
152
|
+
export declare const de_ExportThemesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ExportThemesCommandOutput>;
|
|
153
|
+
/**
|
|
154
|
+
* deserializeAws_restJson1GetComponentCommand
|
|
155
|
+
*/
|
|
156
|
+
export declare const de_GetComponentCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetComponentCommandOutput>;
|
|
157
|
+
/**
|
|
158
|
+
* deserializeAws_restJson1GetFormCommand
|
|
159
|
+
*/
|
|
160
|
+
export declare const de_GetFormCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetFormCommandOutput>;
|
|
161
|
+
/**
|
|
162
|
+
* deserializeAws_restJson1GetMetadataCommand
|
|
163
|
+
*/
|
|
164
|
+
export declare const de_GetMetadataCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetMetadataCommandOutput>;
|
|
165
|
+
/**
|
|
166
|
+
* deserializeAws_restJson1GetThemeCommand
|
|
167
|
+
*/
|
|
168
|
+
export declare const de_GetThemeCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetThemeCommandOutput>;
|
|
169
|
+
/**
|
|
170
|
+
* deserializeAws_restJson1ListComponentsCommand
|
|
171
|
+
*/
|
|
172
|
+
export declare const de_ListComponentsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListComponentsCommandOutput>;
|
|
173
|
+
/**
|
|
174
|
+
* deserializeAws_restJson1ListFormsCommand
|
|
175
|
+
*/
|
|
176
|
+
export declare const de_ListFormsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListFormsCommandOutput>;
|
|
177
|
+
/**
|
|
178
|
+
* deserializeAws_restJson1ListThemesCommand
|
|
179
|
+
*/
|
|
180
|
+
export declare const de_ListThemesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListThemesCommandOutput>;
|
|
181
|
+
/**
|
|
182
|
+
* deserializeAws_restJson1PutMetadataFlagCommand
|
|
183
|
+
*/
|
|
184
|
+
export declare const de_PutMetadataFlagCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<PutMetadataFlagCommandOutput>;
|
|
185
|
+
/**
|
|
186
|
+
* deserializeAws_restJson1RefreshTokenCommand
|
|
187
|
+
*/
|
|
188
|
+
export declare const de_RefreshTokenCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<RefreshTokenCommandOutput>;
|
|
189
|
+
/**
|
|
190
|
+
* deserializeAws_restJson1UpdateComponentCommand
|
|
191
|
+
*/
|
|
192
|
+
export declare const de_UpdateComponentCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateComponentCommandOutput>;
|
|
193
|
+
/**
|
|
194
|
+
* deserializeAws_restJson1UpdateFormCommand
|
|
195
|
+
*/
|
|
196
|
+
export declare const de_UpdateFormCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateFormCommandOutput>;
|
|
197
|
+
/**
|
|
198
|
+
* deserializeAws_restJson1UpdateThemeCommand
|
|
199
|
+
*/
|
|
200
|
+
export declare const de_UpdateThemeCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateThemeCommandOutput>;
|
|
@@ -92,6 +92,7 @@ export type TokenProviders =
|
|
|
92
92
|
export interface ExchangeCodeForTokenRequestBody {
|
|
93
93
|
code: string | undefined;
|
|
94
94
|
redirectUri: string | undefined;
|
|
95
|
+
clientId?: string;
|
|
95
96
|
}
|
|
96
97
|
export interface ExchangeCodeForTokenRequest {
|
|
97
98
|
provider: TokenProviders | string | undefined;
|
|
@@ -172,32 +173,31 @@ export interface FormDataTypeConfig {
|
|
|
172
173
|
dataSourceType: FormDataSourceType | string | undefined;
|
|
173
174
|
dataTypeName: string | undefined;
|
|
174
175
|
}
|
|
175
|
-
export
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
176
|
+
export declare const StorageAccessLevel: {
|
|
177
|
+
readonly PRIVATE: "private";
|
|
178
|
+
readonly PROTECTED: "protected";
|
|
179
|
+
readonly PUBLIC: "public";
|
|
180
|
+
};
|
|
181
|
+
export type StorageAccessLevel =
|
|
182
|
+
(typeof StorageAccessLevel)[keyof typeof StorageAccessLevel];
|
|
183
|
+
export interface FileUploaderFieldConfig {
|
|
184
|
+
accessLevel: StorageAccessLevel | string | undefined;
|
|
185
|
+
acceptedFileTypes: string[] | undefined;
|
|
186
|
+
showThumbnails?: boolean;
|
|
187
|
+
isResumable?: boolean;
|
|
188
|
+
maxFileCount?: number;
|
|
189
|
+
maxSize?: number;
|
|
190
|
+
}
|
|
191
|
+
export interface FormInputBindingPropertiesValueProperties {
|
|
192
|
+
model?: string;
|
|
181
193
|
}
|
|
182
|
-
export interface
|
|
183
|
-
|
|
194
|
+
export interface FormInputBindingPropertiesValue {
|
|
195
|
+
type?: string;
|
|
196
|
+
bindingProperties?: FormInputBindingPropertiesValueProperties;
|
|
184
197
|
}
|
|
185
|
-
export interface
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
readOnly?: boolean;
|
|
189
|
-
placeholder?: string;
|
|
190
|
-
defaultValue?: string;
|
|
191
|
-
descriptiveText?: string;
|
|
192
|
-
defaultChecked?: boolean;
|
|
193
|
-
defaultCountryCode?: string;
|
|
194
|
-
valueMappings?: ValueMappings;
|
|
195
|
-
name?: string;
|
|
196
|
-
minValue?: number;
|
|
197
|
-
maxValue?: number;
|
|
198
|
-
step?: number;
|
|
199
|
-
value?: string;
|
|
200
|
-
isArray?: boolean;
|
|
198
|
+
export interface FormInputValuePropertyBindingProperties {
|
|
199
|
+
property: string | undefined;
|
|
200
|
+
field?: string;
|
|
201
201
|
}
|
|
202
202
|
export interface FieldValidationConfiguration {
|
|
203
203
|
type: string | undefined;
|
|
@@ -205,25 +205,26 @@ export interface FieldValidationConfiguration {
|
|
|
205
205
|
numValues?: number[];
|
|
206
206
|
validationMessage?: string;
|
|
207
207
|
}
|
|
208
|
-
export interface FieldConfig {
|
|
209
|
-
label?: string;
|
|
210
|
-
position?: FieldPosition;
|
|
211
|
-
excluded?: boolean;
|
|
212
|
-
inputType?: FieldInputConfig;
|
|
213
|
-
validations?: FieldValidationConfiguration[];
|
|
214
|
-
}
|
|
215
208
|
export declare const FormActionType: {
|
|
216
209
|
readonly CREATE: "create";
|
|
217
210
|
readonly UPDATE: "update";
|
|
218
211
|
};
|
|
219
212
|
export type FormActionType =
|
|
220
213
|
(typeof FormActionType)[keyof typeof FormActionType];
|
|
214
|
+
export declare const LabelDecorator: {
|
|
215
|
+
readonly NONE: "none";
|
|
216
|
+
readonly OPTIONAL: "optional";
|
|
217
|
+
readonly REQUIRED: "required";
|
|
218
|
+
};
|
|
219
|
+
export type LabelDecorator =
|
|
220
|
+
(typeof LabelDecorator)[keyof typeof LabelDecorator];
|
|
221
221
|
export interface SectionalElement {
|
|
222
222
|
type: string | undefined;
|
|
223
223
|
position?: FieldPosition;
|
|
224
224
|
text?: string;
|
|
225
225
|
level?: number;
|
|
226
226
|
orientation?: string;
|
|
227
|
+
excluded?: boolean;
|
|
227
228
|
}
|
|
228
229
|
export type FormStyleConfig =
|
|
229
230
|
| FormStyleConfig.TokenReferenceMember
|
|
@@ -257,40 +258,6 @@ export interface FormStyle {
|
|
|
257
258
|
verticalGap?: FormStyleConfig;
|
|
258
259
|
outerPadding?: FormStyleConfig;
|
|
259
260
|
}
|
|
260
|
-
export interface CreateFormData {
|
|
261
|
-
name: string | undefined;
|
|
262
|
-
dataType: FormDataTypeConfig | undefined;
|
|
263
|
-
formActionType: FormActionType | string | undefined;
|
|
264
|
-
fields: Record<string, FieldConfig> | undefined;
|
|
265
|
-
style: FormStyle | undefined;
|
|
266
|
-
sectionalElements: Record<string, SectionalElement> | undefined;
|
|
267
|
-
schemaVersion: string | undefined;
|
|
268
|
-
cta?: FormCTA;
|
|
269
|
-
tags?: Record<string, string>;
|
|
270
|
-
}
|
|
271
|
-
export interface CreateFormRequest {
|
|
272
|
-
appId: string | undefined;
|
|
273
|
-
environmentName: string | undefined;
|
|
274
|
-
clientToken?: string;
|
|
275
|
-
formToCreate: CreateFormData | undefined;
|
|
276
|
-
}
|
|
277
|
-
export interface Form {
|
|
278
|
-
appId: string | undefined;
|
|
279
|
-
environmentName: string | undefined;
|
|
280
|
-
id: string | undefined;
|
|
281
|
-
name: string | undefined;
|
|
282
|
-
formActionType: FormActionType | string | undefined;
|
|
283
|
-
style: FormStyle | undefined;
|
|
284
|
-
dataType: FormDataTypeConfig | undefined;
|
|
285
|
-
fields: Record<string, FieldConfig> | undefined;
|
|
286
|
-
sectionalElements: Record<string, SectionalElement> | undefined;
|
|
287
|
-
schemaVersion: string | undefined;
|
|
288
|
-
tags?: Record<string, string>;
|
|
289
|
-
cta?: FormCTA;
|
|
290
|
-
}
|
|
291
|
-
export interface CreateFormResponse {
|
|
292
|
-
entity?: Form;
|
|
293
|
-
}
|
|
294
261
|
export interface DeleteFormRequest {
|
|
295
262
|
appId: string | undefined;
|
|
296
263
|
environmentName: string | undefined;
|
|
@@ -301,18 +268,11 @@ export interface ExportFormsRequest {
|
|
|
301
268
|
environmentName: string | undefined;
|
|
302
269
|
nextToken?: string;
|
|
303
270
|
}
|
|
304
|
-
export interface ExportFormsResponse {
|
|
305
|
-
entities: Form[] | undefined;
|
|
306
|
-
nextToken?: string;
|
|
307
|
-
}
|
|
308
271
|
export interface GetFormRequest {
|
|
309
272
|
appId: string | undefined;
|
|
310
273
|
environmentName: string | undefined;
|
|
311
274
|
id: string | undefined;
|
|
312
275
|
}
|
|
313
|
-
export interface GetFormResponse {
|
|
314
|
-
form?: Form;
|
|
315
|
-
}
|
|
316
276
|
export interface ListFormsRequest {
|
|
317
277
|
appId: string | undefined;
|
|
318
278
|
environmentName: string | undefined;
|
|
@@ -331,26 +291,6 @@ export interface ListFormsResponse {
|
|
|
331
291
|
entities: FormSummary[] | undefined;
|
|
332
292
|
nextToken?: string;
|
|
333
293
|
}
|
|
334
|
-
export interface UpdateFormData {
|
|
335
|
-
name?: string;
|
|
336
|
-
dataType?: FormDataTypeConfig;
|
|
337
|
-
formActionType?: FormActionType | string;
|
|
338
|
-
fields?: Record<string, FieldConfig>;
|
|
339
|
-
style?: FormStyle;
|
|
340
|
-
sectionalElements?: Record<string, SectionalElement>;
|
|
341
|
-
schemaVersion?: string;
|
|
342
|
-
cta?: FormCTA;
|
|
343
|
-
}
|
|
344
|
-
export interface UpdateFormRequest {
|
|
345
|
-
appId: string | undefined;
|
|
346
|
-
environmentName: string | undefined;
|
|
347
|
-
id: string | undefined;
|
|
348
|
-
clientToken?: string;
|
|
349
|
-
updatedForm: UpdateFormData | undefined;
|
|
350
|
-
}
|
|
351
|
-
export interface UpdateFormResponse {
|
|
352
|
-
entity?: Form;
|
|
353
|
-
}
|
|
354
294
|
export interface GetMetadataRequest {
|
|
355
295
|
appId: string | undefined;
|
|
356
296
|
environmentName: string | undefined;
|
|
@@ -376,6 +316,7 @@ export interface PutMetadataFlagRequest {
|
|
|
376
316
|
}
|
|
377
317
|
export interface RefreshTokenRequestBody {
|
|
378
318
|
token: string | undefined;
|
|
319
|
+
clientId?: string;
|
|
379
320
|
}
|
|
380
321
|
export interface RefreshTokenRequest {
|
|
381
322
|
provider: TokenProviders | string | undefined;
|
|
@@ -416,6 +357,11 @@ export interface ListThemesResponse {
|
|
|
416
357
|
entities: ThemeSummary[] | undefined;
|
|
417
358
|
nextToken?: string;
|
|
418
359
|
}
|
|
360
|
+
export interface FormInputValueProperty {
|
|
361
|
+
value?: string;
|
|
362
|
+
bindingProperties?: FormInputValuePropertyBindingProperties;
|
|
363
|
+
concat?: FormInputValueProperty[];
|
|
364
|
+
}
|
|
419
365
|
export interface ThemeValue {
|
|
420
366
|
value?: string;
|
|
421
367
|
children?: ThemeValues[];
|
|
@@ -430,6 +376,7 @@ export interface Predicate {
|
|
|
430
376
|
field?: string;
|
|
431
377
|
operator?: string;
|
|
432
378
|
operand?: string;
|
|
379
|
+
operandType?: string;
|
|
433
380
|
}
|
|
434
381
|
export interface ComponentBindingPropertiesValueProperties {
|
|
435
382
|
model?: string;
|
|
@@ -464,6 +411,10 @@ export interface ComponentProperty {
|
|
|
464
411
|
componentName?: string;
|
|
465
412
|
property?: string;
|
|
466
413
|
}
|
|
414
|
+
export interface ValueMapping {
|
|
415
|
+
displayValue?: FormInputValueProperty;
|
|
416
|
+
value: FormInputValueProperty | undefined;
|
|
417
|
+
}
|
|
467
418
|
export interface ComponentBindingPropertiesValue {
|
|
468
419
|
type?: string;
|
|
469
420
|
bindingProperties?: ComponentBindingPropertiesValueProperties;
|
|
@@ -528,10 +479,103 @@ export interface UpdateThemeRequest {
|
|
|
528
479
|
export interface UpdateThemeResponse {
|
|
529
480
|
entity?: Theme;
|
|
530
481
|
}
|
|
482
|
+
export interface ValueMappings {
|
|
483
|
+
values: ValueMapping[] | undefined;
|
|
484
|
+
bindingProperties?: Record<string, FormInputBindingPropertiesValue>;
|
|
485
|
+
}
|
|
531
486
|
export interface ExportThemesResponse {
|
|
532
487
|
entities: Theme[] | undefined;
|
|
533
488
|
nextToken?: string;
|
|
534
489
|
}
|
|
490
|
+
export interface FieldInputConfig {
|
|
491
|
+
type: string | undefined;
|
|
492
|
+
required?: boolean;
|
|
493
|
+
readOnly?: boolean;
|
|
494
|
+
placeholder?: string;
|
|
495
|
+
defaultValue?: string;
|
|
496
|
+
descriptiveText?: string;
|
|
497
|
+
defaultChecked?: boolean;
|
|
498
|
+
defaultCountryCode?: string;
|
|
499
|
+
valueMappings?: ValueMappings;
|
|
500
|
+
name?: string;
|
|
501
|
+
minValue?: number;
|
|
502
|
+
maxValue?: number;
|
|
503
|
+
step?: number;
|
|
504
|
+
value?: string;
|
|
505
|
+
isArray?: boolean;
|
|
506
|
+
fileUploaderConfig?: FileUploaderFieldConfig;
|
|
507
|
+
}
|
|
508
|
+
export interface FieldConfig {
|
|
509
|
+
label?: string;
|
|
510
|
+
position?: FieldPosition;
|
|
511
|
+
excluded?: boolean;
|
|
512
|
+
inputType?: FieldInputConfig;
|
|
513
|
+
validations?: FieldValidationConfiguration[];
|
|
514
|
+
}
|
|
515
|
+
export interface CreateFormData {
|
|
516
|
+
name: string | undefined;
|
|
517
|
+
dataType: FormDataTypeConfig | undefined;
|
|
518
|
+
formActionType: FormActionType | string | undefined;
|
|
519
|
+
fields: Record<string, FieldConfig> | undefined;
|
|
520
|
+
style: FormStyle | undefined;
|
|
521
|
+
sectionalElements: Record<string, SectionalElement> | undefined;
|
|
522
|
+
schemaVersion: string | undefined;
|
|
523
|
+
cta?: FormCTA;
|
|
524
|
+
tags?: Record<string, string>;
|
|
525
|
+
labelDecorator?: LabelDecorator | string;
|
|
526
|
+
}
|
|
527
|
+
export interface Form {
|
|
528
|
+
appId: string | undefined;
|
|
529
|
+
environmentName: string | undefined;
|
|
530
|
+
id: string | undefined;
|
|
531
|
+
name: string | undefined;
|
|
532
|
+
formActionType: FormActionType | string | undefined;
|
|
533
|
+
style: FormStyle | undefined;
|
|
534
|
+
dataType: FormDataTypeConfig | undefined;
|
|
535
|
+
fields: Record<string, FieldConfig> | undefined;
|
|
536
|
+
sectionalElements: Record<string, SectionalElement> | undefined;
|
|
537
|
+
schemaVersion: string | undefined;
|
|
538
|
+
tags?: Record<string, string>;
|
|
539
|
+
cta?: FormCTA;
|
|
540
|
+
labelDecorator?: LabelDecorator | string;
|
|
541
|
+
}
|
|
542
|
+
export interface UpdateFormData {
|
|
543
|
+
name?: string;
|
|
544
|
+
dataType?: FormDataTypeConfig;
|
|
545
|
+
formActionType?: FormActionType | string;
|
|
546
|
+
fields?: Record<string, FieldConfig>;
|
|
547
|
+
style?: FormStyle;
|
|
548
|
+
sectionalElements?: Record<string, SectionalElement>;
|
|
549
|
+
schemaVersion?: string;
|
|
550
|
+
cta?: FormCTA;
|
|
551
|
+
labelDecorator?: LabelDecorator | string;
|
|
552
|
+
}
|
|
553
|
+
export interface CreateFormRequest {
|
|
554
|
+
appId: string | undefined;
|
|
555
|
+
environmentName: string | undefined;
|
|
556
|
+
clientToken?: string;
|
|
557
|
+
formToCreate: CreateFormData | undefined;
|
|
558
|
+
}
|
|
559
|
+
export interface CreateFormResponse {
|
|
560
|
+
entity?: Form;
|
|
561
|
+
}
|
|
562
|
+
export interface GetFormResponse {
|
|
563
|
+
form?: Form;
|
|
564
|
+
}
|
|
565
|
+
export interface UpdateFormRequest {
|
|
566
|
+
appId: string | undefined;
|
|
567
|
+
environmentName: string | undefined;
|
|
568
|
+
id: string | undefined;
|
|
569
|
+
clientToken?: string;
|
|
570
|
+
updatedForm: UpdateFormData | undefined;
|
|
571
|
+
}
|
|
572
|
+
export interface UpdateFormResponse {
|
|
573
|
+
entity?: Form;
|
|
574
|
+
}
|
|
575
|
+
export interface ExportFormsResponse {
|
|
576
|
+
entities: Form[] | undefined;
|
|
577
|
+
nextToken?: string;
|
|
578
|
+
}
|
|
535
579
|
export interface ActionParameters {
|
|
536
580
|
type?: ComponentProperty;
|
|
537
581
|
url?: ComponentProperty;
|