@vendasta/forms_microservice 0.15.0 → 0.17.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/esm2020/lib/_internal/enums/api.enum.mjs +11 -1
- package/esm2020/lib/_internal/enums/index.mjs +2 -2
- package/esm2020/lib/_internal/interfaces/api.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2020/lib/_internal/objects/api.mjs +187 -1
- package/esm2020/lib/_internal/objects/index.mjs +2 -2
- package/fesm2015/vendasta-forms_microservice.mjs +197 -1
- package/fesm2015/vendasta-forms_microservice.mjs.map +1 -1
- package/fesm2020/vendasta-forms_microservice.mjs +197 -1
- package/fesm2020/vendasta-forms_microservice.mjs.map +1 -1
- package/lib/_internal/enums/api.enum.d.ts +10 -1
- package/lib/_internal/enums/index.d.ts +1 -1
- package/lib/_internal/interfaces/api.interface.d.ts +31 -0
- package/lib/_internal/interfaces/index.d.ts +1 -1
- package/lib/_internal/objects/api.d.ts +49 -0
- package/lib/_internal/objects/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -11,9 +11,18 @@ export declare enum FieldType {
|
|
|
11
11
|
FIELD_TYPE_EMAIL = 9,
|
|
12
12
|
FIELD_TYPE_PHONE = 10,
|
|
13
13
|
FIELD_TYPE_BUSINESS_SEARCH = 11,
|
|
14
|
-
FIELD_TYPE_TEXT_AREA = 12
|
|
14
|
+
FIELD_TYPE_TEXT_AREA = 12,
|
|
15
|
+
FIELD_TYPE_TAG = 13,
|
|
16
|
+
FIELD_TYPE_SECTION = 14
|
|
15
17
|
}
|
|
16
18
|
export declare enum JsonSchemaLibrary {
|
|
17
19
|
JSON_SCHEMA_LIBRARY_UNDEFINED = 0,
|
|
18
20
|
JSON_SCHEMA_LIBRARY_JSONFORM = 1
|
|
19
21
|
}
|
|
22
|
+
export declare enum SectionAction {
|
|
23
|
+
SECTION_ACTION_UNDEFINED = 0,
|
|
24
|
+
SECTION_ACTION_SUBMIT = 1,
|
|
25
|
+
SECTION_ACTION_SUBMIT_CONDITION = 2,
|
|
26
|
+
SECTION_ACTION_NEXT_PAGE = 3,
|
|
27
|
+
SECTION_ACTION_NEXT_APPEND = 4
|
|
28
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { FieldType, JsonSchemaLibrary, } from './api.enum';
|
|
1
|
+
export { FieldType, JsonSchemaLibrary, SectionAction, } from './api.enum';
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { PagedRequestOptionsInterface, PagedResponseMetadataInterface } from './paging.interface';
|
|
2
2
|
import * as e from '../enums';
|
|
3
|
+
export interface ActionParametersInterface {
|
|
4
|
+
submitConditionParams?: SubmitConditionParametersInterface;
|
|
5
|
+
nextParameters?: NextParametersInterface;
|
|
6
|
+
}
|
|
3
7
|
export interface CreateFormRequestInterface {
|
|
4
8
|
formConfig?: FormConfigInterface;
|
|
5
9
|
}
|
|
@@ -15,6 +19,10 @@ export interface CreateFormSubmissionRequestInterface {
|
|
|
15
19
|
export interface CreateFormSubmissionResponseInterface {
|
|
16
20
|
redirectUrl?: string;
|
|
17
21
|
}
|
|
22
|
+
export interface RenderFormResponseDefaultValuesInterface {
|
|
23
|
+
fieldId?: string;
|
|
24
|
+
jsonValue?: string;
|
|
25
|
+
}
|
|
18
26
|
export interface DeleteFormRequestInterface {
|
|
19
27
|
formId?: string;
|
|
20
28
|
version?: string;
|
|
@@ -28,6 +36,7 @@ export interface FormConfigFieldInterface {
|
|
|
28
36
|
preFillByUrlQueryParameter?: string;
|
|
29
37
|
placeholder?: string;
|
|
30
38
|
defaultPhoneIsoCountryCode?: string;
|
|
39
|
+
sectionConfig?: SectionConfigInterface;
|
|
31
40
|
}
|
|
32
41
|
export interface FieldOptionInterface {
|
|
33
42
|
value?: string;
|
|
@@ -37,6 +46,7 @@ export interface FieldValueInterface {
|
|
|
37
46
|
invalid?: boolean;
|
|
38
47
|
integer?: number;
|
|
39
48
|
string?: string;
|
|
49
|
+
stringValues?: StringListInterface;
|
|
40
50
|
boolean?: boolean;
|
|
41
51
|
}
|
|
42
52
|
export interface ListFormsRequestFiltersInterface {
|
|
@@ -139,6 +149,9 @@ export interface MappedFieldInterface {
|
|
|
139
149
|
systemDefined?: SystemDefinedInterface;
|
|
140
150
|
readonly?: boolean;
|
|
141
151
|
}
|
|
152
|
+
export interface NextParametersInterface {
|
|
153
|
+
nextSectionId?: string;
|
|
154
|
+
}
|
|
142
155
|
export interface RenderFormResponsePreFillByUrlQueryParameterInterface {
|
|
143
156
|
fieldId?: string;
|
|
144
157
|
queryParam?: string;
|
|
@@ -161,11 +174,20 @@ export interface RenderFormResponseInterface {
|
|
|
161
174
|
styles?: StylesInterface;
|
|
162
175
|
fieldQueryParams?: RenderFormResponsePreFillByUrlQueryParameterInterface[];
|
|
163
176
|
recaptchaSiteKey?: string;
|
|
177
|
+
defaultValues?: RenderFormResponseDefaultValuesInterface[];
|
|
164
178
|
}
|
|
165
179
|
export interface FormConfigFieldSchemaInterface {
|
|
166
180
|
unmappedField?: UnmappedFieldInterface;
|
|
167
181
|
mappedField?: MappedFieldInterface;
|
|
168
182
|
}
|
|
183
|
+
export interface SectionConfigInterface {
|
|
184
|
+
buttonLabel?: string;
|
|
185
|
+
buttonAction?: e.SectionAction;
|
|
186
|
+
actionParameters?: ActionParametersInterface;
|
|
187
|
+
}
|
|
188
|
+
export interface StringListInterface {
|
|
189
|
+
values?: string[];
|
|
190
|
+
}
|
|
169
191
|
export interface StylesInterface {
|
|
170
192
|
width?: string;
|
|
171
193
|
backgroundColor?: string;
|
|
@@ -178,6 +200,15 @@ export interface StylesInterface {
|
|
|
178
200
|
primaryColor?: string;
|
|
179
201
|
onPrimaryColor?: string;
|
|
180
202
|
}
|
|
203
|
+
export interface SubmitConditionParametersInterface {
|
|
204
|
+
fieldId?: string;
|
|
205
|
+
noValue?: boolean;
|
|
206
|
+
anyValue?: boolean;
|
|
207
|
+
isValue?: string;
|
|
208
|
+
isNotValue?: string;
|
|
209
|
+
onConditionFailure?: e.SectionAction;
|
|
210
|
+
onConditionFailureParameters?: ActionParametersInterface;
|
|
211
|
+
}
|
|
181
212
|
export interface FormSubmissionSubmittedValueInterface {
|
|
182
213
|
fieldId?: string;
|
|
183
214
|
fieldValue?: FieldValueInterface;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { PagedRequestOptionsInterface, PagedResponseMetadataInterface, } from './paging.interface';
|
|
2
|
-
export { CreateFormRequestInterface, CreateFormResponseInterface, CreateFormSubmissionRequestInterface, CreateFormSubmissionResponseInterface, DeleteFormRequestInterface, FormConfigFieldInterface, FieldOptionInterface, FieldValueInterface, ListFormsRequestFiltersInterface, FormConfigInterface, GetMultiRequestFormConfigIdentifierInterface, ListFormsResponseFormRowInterface, FormSubmissionInterface, GetEmbedCodeRequestInterface, GetEmbedCodeResponseInterface, GetFormRequestInterface, GetFormResponseInterface, GetMultiFormSubmissionRequestInterface, GetMultiFormSubmissionResponseInterface, GetMultiFormVersionsListRequestInterface, GetMultiFormVersionsListResponseInterface, GetMultiRequestInterface, GetMultiResponseInterface, ListFormSubmissionRequestInterface, ListFormSubmissionResponseInterface, ListFormsRequestInterface, ListFormsResponseInterface, ListMappedFieldSchemaRequestInterface, ListMappedFieldSchemaResponseInterface, MappedFieldInterface, RenderFormResponsePreFillByUrlQueryParameterInterface, PreviewFormRequestInterface, PreviewFormResponseInterface, RenderFormRequestInterface, RenderFormResponseInterface, FormConfigFieldSchemaInterface, StylesInterface, FormSubmissionSubmittedValueInterface, SystemDefinedInterface, UnmappedFieldInterface, UpdateFormRequestInterface, UpdateFormResponseInterface, UserFormSubmissionInterface, ValidationErrorInterface, GetMultiFormVersionsListResponseVersionsInterface, } from './api.interface';
|
|
2
|
+
export { ActionParametersInterface, CreateFormRequestInterface, CreateFormResponseInterface, CreateFormSubmissionRequestInterface, CreateFormSubmissionResponseInterface, RenderFormResponseDefaultValuesInterface, DeleteFormRequestInterface, FormConfigFieldInterface, FieldOptionInterface, FieldValueInterface, ListFormsRequestFiltersInterface, FormConfigInterface, GetMultiRequestFormConfigIdentifierInterface, ListFormsResponseFormRowInterface, FormSubmissionInterface, GetEmbedCodeRequestInterface, GetEmbedCodeResponseInterface, GetFormRequestInterface, GetFormResponseInterface, GetMultiFormSubmissionRequestInterface, GetMultiFormSubmissionResponseInterface, GetMultiFormVersionsListRequestInterface, GetMultiFormVersionsListResponseInterface, GetMultiRequestInterface, GetMultiResponseInterface, ListFormSubmissionRequestInterface, ListFormSubmissionResponseInterface, ListFormsRequestInterface, ListFormsResponseInterface, ListMappedFieldSchemaRequestInterface, ListMappedFieldSchemaResponseInterface, MappedFieldInterface, NextParametersInterface, RenderFormResponsePreFillByUrlQueryParameterInterface, PreviewFormRequestInterface, PreviewFormResponseInterface, RenderFormRequestInterface, RenderFormResponseInterface, FormConfigFieldSchemaInterface, SectionConfigInterface, StringListInterface, StylesInterface, SubmitConditionParametersInterface, FormSubmissionSubmittedValueInterface, SystemDefinedInterface, UnmappedFieldInterface, UpdateFormRequestInterface, UpdateFormResponseInterface, UserFormSubmissionInterface, ValidationErrorInterface, GetMultiFormVersionsListResponseVersionsInterface, } from './api.interface';
|
|
@@ -2,6 +2,13 @@ import * as i from '../interfaces';
|
|
|
2
2
|
import { PagedRequestOptions, PagedResponseMetadata } from './paging';
|
|
3
3
|
import * as e from '../enums';
|
|
4
4
|
export declare function enumStringToValue<E>(enumRef: any, value: string): E;
|
|
5
|
+
export declare class ActionParameters implements i.ActionParametersInterface {
|
|
6
|
+
submitConditionParams: SubmitConditionParameters;
|
|
7
|
+
nextParameters: NextParameters;
|
|
8
|
+
static fromProto(proto: any): ActionParameters;
|
|
9
|
+
constructor(kwargs?: i.ActionParametersInterface);
|
|
10
|
+
toApiJson(): object;
|
|
11
|
+
}
|
|
5
12
|
export declare class CreateFormRequest implements i.CreateFormRequestInterface {
|
|
6
13
|
formConfig: FormConfig;
|
|
7
14
|
static fromProto(proto: any): CreateFormRequest;
|
|
@@ -29,6 +36,13 @@ export declare class CreateFormSubmissionResponse implements i.CreateFormSubmiss
|
|
|
29
36
|
constructor(kwargs?: i.CreateFormSubmissionResponseInterface);
|
|
30
37
|
toApiJson(): object;
|
|
31
38
|
}
|
|
39
|
+
export declare class RenderFormResponseDefaultValues implements i.RenderFormResponseDefaultValuesInterface {
|
|
40
|
+
fieldId: string;
|
|
41
|
+
jsonValue: string;
|
|
42
|
+
static fromProto(proto: any): RenderFormResponseDefaultValues;
|
|
43
|
+
constructor(kwargs?: i.RenderFormResponseDefaultValuesInterface);
|
|
44
|
+
toApiJson(): object;
|
|
45
|
+
}
|
|
32
46
|
export declare class DeleteFormRequest implements i.DeleteFormRequestInterface {
|
|
33
47
|
formId: string;
|
|
34
48
|
version: string;
|
|
@@ -45,6 +59,7 @@ export declare class FormConfigField implements i.FormConfigFieldInterface {
|
|
|
45
59
|
preFillByUrlQueryParameter: string;
|
|
46
60
|
placeholder: string;
|
|
47
61
|
defaultPhoneIsoCountryCode: string;
|
|
62
|
+
sectionConfig: SectionConfig;
|
|
48
63
|
static fromProto(proto: any): FormConfigField;
|
|
49
64
|
constructor(kwargs?: i.FormConfigFieldInterface);
|
|
50
65
|
toApiJson(): object;
|
|
@@ -60,6 +75,7 @@ export declare class FieldValue implements i.FieldValueInterface {
|
|
|
60
75
|
invalid: boolean;
|
|
61
76
|
integer: number;
|
|
62
77
|
string: string;
|
|
78
|
+
stringValues: StringList;
|
|
63
79
|
boolean: boolean;
|
|
64
80
|
static fromProto(proto: any): FieldValue;
|
|
65
81
|
constructor(kwargs?: i.FieldValueInterface);
|
|
@@ -231,6 +247,12 @@ export declare class MappedField implements i.MappedFieldInterface {
|
|
|
231
247
|
constructor(kwargs?: i.MappedFieldInterface);
|
|
232
248
|
toApiJson(): object;
|
|
233
249
|
}
|
|
250
|
+
export declare class NextParameters implements i.NextParametersInterface {
|
|
251
|
+
nextSectionId: string;
|
|
252
|
+
static fromProto(proto: any): NextParameters;
|
|
253
|
+
constructor(kwargs?: i.NextParametersInterface);
|
|
254
|
+
toApiJson(): object;
|
|
255
|
+
}
|
|
234
256
|
export declare class RenderFormResponsePreFillByUrlQueryParameter implements i.RenderFormResponsePreFillByUrlQueryParameterInterface {
|
|
235
257
|
fieldId: string;
|
|
236
258
|
queryParam: string;
|
|
@@ -265,6 +287,7 @@ export declare class RenderFormResponse implements i.RenderFormResponseInterface
|
|
|
265
287
|
styles: Styles;
|
|
266
288
|
fieldQueryParams: RenderFormResponsePreFillByUrlQueryParameter[];
|
|
267
289
|
recaptchaSiteKey: string;
|
|
290
|
+
defaultValues: RenderFormResponseDefaultValues[];
|
|
268
291
|
static fromProto(proto: any): RenderFormResponse;
|
|
269
292
|
constructor(kwargs?: i.RenderFormResponseInterface);
|
|
270
293
|
toApiJson(): object;
|
|
@@ -276,6 +299,20 @@ export declare class FormConfigFieldSchema implements i.FormConfigFieldSchemaInt
|
|
|
276
299
|
constructor(kwargs?: i.FormConfigFieldSchemaInterface);
|
|
277
300
|
toApiJson(): object;
|
|
278
301
|
}
|
|
302
|
+
export declare class SectionConfig implements i.SectionConfigInterface {
|
|
303
|
+
buttonLabel: string;
|
|
304
|
+
buttonAction: e.SectionAction;
|
|
305
|
+
actionParameters: ActionParameters;
|
|
306
|
+
static fromProto(proto: any): SectionConfig;
|
|
307
|
+
constructor(kwargs?: i.SectionConfigInterface);
|
|
308
|
+
toApiJson(): object;
|
|
309
|
+
}
|
|
310
|
+
export declare class StringList implements i.StringListInterface {
|
|
311
|
+
values: string[];
|
|
312
|
+
static fromProto(proto: any): StringList;
|
|
313
|
+
constructor(kwargs?: i.StringListInterface);
|
|
314
|
+
toApiJson(): object;
|
|
315
|
+
}
|
|
279
316
|
export declare class Styles implements i.StylesInterface {
|
|
280
317
|
width: string;
|
|
281
318
|
backgroundColor: string;
|
|
@@ -291,6 +328,18 @@ export declare class Styles implements i.StylesInterface {
|
|
|
291
328
|
constructor(kwargs?: i.StylesInterface);
|
|
292
329
|
toApiJson(): object;
|
|
293
330
|
}
|
|
331
|
+
export declare class SubmitConditionParameters implements i.SubmitConditionParametersInterface {
|
|
332
|
+
fieldId: string;
|
|
333
|
+
noValue: boolean;
|
|
334
|
+
anyValue: boolean;
|
|
335
|
+
isValue: string;
|
|
336
|
+
isNotValue: string;
|
|
337
|
+
onConditionFailure: e.SectionAction;
|
|
338
|
+
onConditionFailureParameters: ActionParameters;
|
|
339
|
+
static fromProto(proto: any): SubmitConditionParameters;
|
|
340
|
+
constructor(kwargs?: i.SubmitConditionParametersInterface);
|
|
341
|
+
toApiJson(): object;
|
|
342
|
+
}
|
|
294
343
|
export declare class FormSubmissionSubmittedValue implements i.FormSubmissionSubmittedValueInterface {
|
|
295
344
|
fieldId: string;
|
|
296
345
|
fieldValue: FieldValue;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { PagedRequestOptions, PagedResponseMetadata, } from './paging';
|
|
2
|
-
export { CreateFormRequest, CreateFormResponse, CreateFormSubmissionRequest, CreateFormSubmissionResponse, DeleteFormRequest, FormConfigField, FieldOption, FieldValue, ListFormsRequestFilters, FormConfig, GetMultiRequestFormConfigIdentifier, ListFormsResponseFormRow, FormSubmission, GetEmbedCodeRequest, GetEmbedCodeResponse, GetFormRequest, GetFormResponse, GetMultiFormSubmissionRequest, GetMultiFormSubmissionResponse, GetMultiFormVersionsListRequest, GetMultiFormVersionsListResponse, GetMultiRequest, GetMultiResponse, ListFormSubmissionRequest, ListFormSubmissionResponse, ListFormsRequest, ListFormsResponse, ListMappedFieldSchemaRequest, ListMappedFieldSchemaResponse, MappedField, RenderFormResponsePreFillByUrlQueryParameter, PreviewFormRequest, PreviewFormResponse, RenderFormRequest, RenderFormResponse, FormConfigFieldSchema, Styles, FormSubmissionSubmittedValue, SystemDefined, UnmappedField, UpdateFormRequest, UpdateFormResponse, UserFormSubmission, ValidationError, GetMultiFormVersionsListResponseVersions, } from './api';
|
|
2
|
+
export { ActionParameters, CreateFormRequest, CreateFormResponse, CreateFormSubmissionRequest, CreateFormSubmissionResponse, RenderFormResponseDefaultValues, DeleteFormRequest, FormConfigField, FieldOption, FieldValue, ListFormsRequestFilters, FormConfig, GetMultiRequestFormConfigIdentifier, ListFormsResponseFormRow, FormSubmission, GetEmbedCodeRequest, GetEmbedCodeResponse, GetFormRequest, GetFormResponse, GetMultiFormSubmissionRequest, GetMultiFormSubmissionResponse, GetMultiFormVersionsListRequest, GetMultiFormVersionsListResponse, GetMultiRequest, GetMultiResponse, ListFormSubmissionRequest, ListFormSubmissionResponse, ListFormsRequest, ListFormsResponse, ListMappedFieldSchemaRequest, ListMappedFieldSchemaResponse, MappedField, NextParameters, RenderFormResponsePreFillByUrlQueryParameter, PreviewFormRequest, PreviewFormResponse, RenderFormRequest, RenderFormResponse, FormConfigFieldSchema, SectionConfig, StringList, Styles, SubmitConditionParameters, FormSubmissionSubmittedValue, SystemDefined, UnmappedField, UpdateFormRequest, UpdateFormResponse, UserFormSubmission, ValidationError, GetMultiFormVersionsListResponseVersions, } from './api';
|