@vendasta/forms_microservice 0.16.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 +10 -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 +161 -1
- package/esm2020/lib/_internal/objects/index.mjs +2 -2
- package/fesm2015/vendasta-forms_microservice.mjs +170 -1
- package/fesm2015/vendasta-forms_microservice.mjs.map +1 -1
- package/fesm2020/vendasta-forms_microservice.mjs +170 -1
- package/fesm2020/vendasta-forms_microservice.mjs.map +1 -1
- package/lib/_internal/enums/api.enum.d.ts +9 -1
- package/lib/_internal/enums/index.d.ts +1 -1
- package/lib/_internal/interfaces/api.interface.d.ts +27 -0
- package/lib/_internal/interfaces/index.d.ts +1 -1
- package/lib/_internal/objects/api.d.ts +42 -0
- package/lib/_internal/objects/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -12,9 +12,17 @@ export declare enum FieldType {
|
|
|
12
12
|
FIELD_TYPE_PHONE = 10,
|
|
13
13
|
FIELD_TYPE_BUSINESS_SEARCH = 11,
|
|
14
14
|
FIELD_TYPE_TEXT_AREA = 12,
|
|
15
|
-
FIELD_TYPE_TAG = 13
|
|
15
|
+
FIELD_TYPE_TAG = 13,
|
|
16
|
+
FIELD_TYPE_SECTION = 14
|
|
16
17
|
}
|
|
17
18
|
export declare enum JsonSchemaLibrary {
|
|
18
19
|
JSON_SCHEMA_LIBRARY_UNDEFINED = 0,
|
|
19
20
|
JSON_SCHEMA_LIBRARY_JSONFORM = 1
|
|
20
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;
|
|
@@ -140,6 +149,9 @@ export interface MappedFieldInterface {
|
|
|
140
149
|
systemDefined?: SystemDefinedInterface;
|
|
141
150
|
readonly?: boolean;
|
|
142
151
|
}
|
|
152
|
+
export interface NextParametersInterface {
|
|
153
|
+
nextSectionId?: string;
|
|
154
|
+
}
|
|
143
155
|
export interface RenderFormResponsePreFillByUrlQueryParameterInterface {
|
|
144
156
|
fieldId?: string;
|
|
145
157
|
queryParam?: string;
|
|
@@ -162,11 +174,17 @@ export interface RenderFormResponseInterface {
|
|
|
162
174
|
styles?: StylesInterface;
|
|
163
175
|
fieldQueryParams?: RenderFormResponsePreFillByUrlQueryParameterInterface[];
|
|
164
176
|
recaptchaSiteKey?: string;
|
|
177
|
+
defaultValues?: RenderFormResponseDefaultValuesInterface[];
|
|
165
178
|
}
|
|
166
179
|
export interface FormConfigFieldSchemaInterface {
|
|
167
180
|
unmappedField?: UnmappedFieldInterface;
|
|
168
181
|
mappedField?: MappedFieldInterface;
|
|
169
182
|
}
|
|
183
|
+
export interface SectionConfigInterface {
|
|
184
|
+
buttonLabel?: string;
|
|
185
|
+
buttonAction?: e.SectionAction;
|
|
186
|
+
actionParameters?: ActionParametersInterface;
|
|
187
|
+
}
|
|
170
188
|
export interface StringListInterface {
|
|
171
189
|
values?: string[];
|
|
172
190
|
}
|
|
@@ -182,6 +200,15 @@ export interface StylesInterface {
|
|
|
182
200
|
primaryColor?: string;
|
|
183
201
|
onPrimaryColor?: string;
|
|
184
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
|
+
}
|
|
185
212
|
export interface FormSubmissionSubmittedValueInterface {
|
|
186
213
|
fieldId?: string;
|
|
187
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, StringListInterface, 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;
|
|
@@ -232,6 +247,12 @@ export declare class MappedField implements i.MappedFieldInterface {
|
|
|
232
247
|
constructor(kwargs?: i.MappedFieldInterface);
|
|
233
248
|
toApiJson(): object;
|
|
234
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
|
+
}
|
|
235
256
|
export declare class RenderFormResponsePreFillByUrlQueryParameter implements i.RenderFormResponsePreFillByUrlQueryParameterInterface {
|
|
236
257
|
fieldId: string;
|
|
237
258
|
queryParam: string;
|
|
@@ -266,6 +287,7 @@ export declare class RenderFormResponse implements i.RenderFormResponseInterface
|
|
|
266
287
|
styles: Styles;
|
|
267
288
|
fieldQueryParams: RenderFormResponsePreFillByUrlQueryParameter[];
|
|
268
289
|
recaptchaSiteKey: string;
|
|
290
|
+
defaultValues: RenderFormResponseDefaultValues[];
|
|
269
291
|
static fromProto(proto: any): RenderFormResponse;
|
|
270
292
|
constructor(kwargs?: i.RenderFormResponseInterface);
|
|
271
293
|
toApiJson(): object;
|
|
@@ -277,6 +299,14 @@ export declare class FormConfigFieldSchema implements i.FormConfigFieldSchemaInt
|
|
|
277
299
|
constructor(kwargs?: i.FormConfigFieldSchemaInterface);
|
|
278
300
|
toApiJson(): object;
|
|
279
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
|
+
}
|
|
280
310
|
export declare class StringList implements i.StringListInterface {
|
|
281
311
|
values: string[];
|
|
282
312
|
static fromProto(proto: any): StringList;
|
|
@@ -298,6 +328,18 @@ export declare class Styles implements i.StylesInterface {
|
|
|
298
328
|
constructor(kwargs?: i.StylesInterface);
|
|
299
329
|
toApiJson(): object;
|
|
300
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
|
+
}
|
|
301
343
|
export declare class FormSubmissionSubmittedValue implements i.FormSubmissionSubmittedValueInterface {
|
|
302
344
|
fieldId: string;
|
|
303
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, StringList, 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';
|