@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
|
@@ -5,5 +5,5 @@
|
|
|
5
5
|
// Objects Index.
|
|
6
6
|
// *********************************
|
|
7
7
|
export { PagedRequestOptions, PagedResponseMetadata, } from './paging';
|
|
8
|
-
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';
|
|
9
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
8
|
+
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';
|
|
9
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9mb3Jtc19zZGsvc3JjL2xpYi9faW50ZXJuYWwvb2JqZWN0cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxvQ0FBb0M7QUFDcEMsMkJBQTJCO0FBQzNCLGdCQU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vbnMsXG59IGZyb20gJy4vYXBpJztcblxuIl19
|
|
@@ -26,12 +26,21 @@ var FieldType;
|
|
|
26
26
|
FieldType[FieldType["FIELD_TYPE_BUSINESS_SEARCH"] = 11] = "FIELD_TYPE_BUSINESS_SEARCH";
|
|
27
27
|
FieldType[FieldType["FIELD_TYPE_TEXT_AREA"] = 12] = "FIELD_TYPE_TEXT_AREA";
|
|
28
28
|
FieldType[FieldType["FIELD_TYPE_TAG"] = 13] = "FIELD_TYPE_TAG";
|
|
29
|
+
FieldType[FieldType["FIELD_TYPE_SECTION"] = 14] = "FIELD_TYPE_SECTION";
|
|
29
30
|
})(FieldType || (FieldType = {}));
|
|
30
31
|
var JsonSchemaLibrary;
|
|
31
32
|
(function (JsonSchemaLibrary) {
|
|
32
33
|
JsonSchemaLibrary[JsonSchemaLibrary["JSON_SCHEMA_LIBRARY_UNDEFINED"] = 0] = "JSON_SCHEMA_LIBRARY_UNDEFINED";
|
|
33
34
|
JsonSchemaLibrary[JsonSchemaLibrary["JSON_SCHEMA_LIBRARY_JSONFORM"] = 1] = "JSON_SCHEMA_LIBRARY_JSONFORM";
|
|
34
35
|
})(JsonSchemaLibrary || (JsonSchemaLibrary = {}));
|
|
36
|
+
var SectionAction;
|
|
37
|
+
(function (SectionAction) {
|
|
38
|
+
SectionAction[SectionAction["SECTION_ACTION_UNDEFINED"] = 0] = "SECTION_ACTION_UNDEFINED";
|
|
39
|
+
SectionAction[SectionAction["SECTION_ACTION_SUBMIT"] = 1] = "SECTION_ACTION_SUBMIT";
|
|
40
|
+
SectionAction[SectionAction["SECTION_ACTION_SUBMIT_CONDITION"] = 2] = "SECTION_ACTION_SUBMIT_CONDITION";
|
|
41
|
+
SectionAction[SectionAction["SECTION_ACTION_NEXT_PAGE"] = 3] = "SECTION_ACTION_NEXT_PAGE";
|
|
42
|
+
SectionAction[SectionAction["SECTION_ACTION_NEXT_APPEND"] = 4] = "SECTION_ACTION_NEXT_APPEND";
|
|
43
|
+
})(SectionAction || (SectionAction = {}));
|
|
35
44
|
|
|
36
45
|
// *********************************
|
|
37
46
|
// Code generated by sdkgen
|
|
@@ -108,6 +117,35 @@ function enumStringToValue(enumRef, value) {
|
|
|
108
117
|
}
|
|
109
118
|
return enumRef[value];
|
|
110
119
|
}
|
|
120
|
+
class ActionParameters {
|
|
121
|
+
static fromProto(proto) {
|
|
122
|
+
let m = new ActionParameters();
|
|
123
|
+
m = Object.assign(m, proto);
|
|
124
|
+
if (proto.submitConditionParams) {
|
|
125
|
+
m.submitConditionParams = SubmitConditionParameters.fromProto(proto.submitConditionParams);
|
|
126
|
+
}
|
|
127
|
+
if (proto.nextParameters) {
|
|
128
|
+
m.nextParameters = NextParameters.fromProto(proto.nextParameters);
|
|
129
|
+
}
|
|
130
|
+
return m;
|
|
131
|
+
}
|
|
132
|
+
constructor(kwargs) {
|
|
133
|
+
if (!kwargs) {
|
|
134
|
+
return;
|
|
135
|
+
}
|
|
136
|
+
Object.assign(this, kwargs);
|
|
137
|
+
}
|
|
138
|
+
toApiJson() {
|
|
139
|
+
const toReturn = {};
|
|
140
|
+
if (typeof this.submitConditionParams !== 'undefined' && this.submitConditionParams !== null) {
|
|
141
|
+
toReturn['submitConditionParams'] = 'toApiJson' in this.submitConditionParams ? this.submitConditionParams.toApiJson() : this.submitConditionParams;
|
|
142
|
+
}
|
|
143
|
+
if (typeof this.nextParameters !== 'undefined' && this.nextParameters !== null) {
|
|
144
|
+
toReturn['nextParameters'] = 'toApiJson' in this.nextParameters ? this.nextParameters.toApiJson() : this.nextParameters;
|
|
145
|
+
}
|
|
146
|
+
return toReturn;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
111
149
|
class CreateFormRequest {
|
|
112
150
|
static fromProto(proto) {
|
|
113
151
|
let m = new CreateFormRequest();
|
|
@@ -206,6 +244,29 @@ class CreateFormSubmissionResponse {
|
|
|
206
244
|
return toReturn;
|
|
207
245
|
}
|
|
208
246
|
}
|
|
247
|
+
class RenderFormResponseDefaultValues {
|
|
248
|
+
static fromProto(proto) {
|
|
249
|
+
let m = new RenderFormResponseDefaultValues();
|
|
250
|
+
m = Object.assign(m, proto);
|
|
251
|
+
return m;
|
|
252
|
+
}
|
|
253
|
+
constructor(kwargs) {
|
|
254
|
+
if (!kwargs) {
|
|
255
|
+
return;
|
|
256
|
+
}
|
|
257
|
+
Object.assign(this, kwargs);
|
|
258
|
+
}
|
|
259
|
+
toApiJson() {
|
|
260
|
+
const toReturn = {};
|
|
261
|
+
if (typeof this.fieldId !== 'undefined') {
|
|
262
|
+
toReturn['fieldId'] = this.fieldId;
|
|
263
|
+
}
|
|
264
|
+
if (typeof this.jsonValue !== 'undefined') {
|
|
265
|
+
toReturn['jsonValue'] = this.jsonValue;
|
|
266
|
+
}
|
|
267
|
+
return toReturn;
|
|
268
|
+
}
|
|
269
|
+
}
|
|
209
270
|
class DeleteFormRequest {
|
|
210
271
|
static fromProto(proto) {
|
|
211
272
|
let m = new DeleteFormRequest();
|
|
@@ -239,6 +300,9 @@ class FormConfigField {
|
|
|
239
300
|
if (proto.defaultValue) {
|
|
240
301
|
m.defaultValue = FieldValue.fromProto(proto.defaultValue);
|
|
241
302
|
}
|
|
303
|
+
if (proto.sectionConfig) {
|
|
304
|
+
m.sectionConfig = SectionConfig.fromProto(proto.sectionConfig);
|
|
305
|
+
}
|
|
242
306
|
return m;
|
|
243
307
|
}
|
|
244
308
|
constructor(kwargs) {
|
|
@@ -273,6 +337,9 @@ class FormConfigField {
|
|
|
273
337
|
if (typeof this.defaultPhoneIsoCountryCode !== 'undefined') {
|
|
274
338
|
toReturn['defaultPhoneIsoCountryCode'] = this.defaultPhoneIsoCountryCode;
|
|
275
339
|
}
|
|
340
|
+
if (typeof this.sectionConfig !== 'undefined' && this.sectionConfig !== null) {
|
|
341
|
+
toReturn['sectionConfig'] = 'toApiJson' in this.sectionConfig ? this.sectionConfig.toApiJson() : this.sectionConfig;
|
|
342
|
+
}
|
|
276
343
|
return toReturn;
|
|
277
344
|
}
|
|
278
345
|
}
|
|
@@ -957,6 +1024,26 @@ class MappedField {
|
|
|
957
1024
|
return toReturn;
|
|
958
1025
|
}
|
|
959
1026
|
}
|
|
1027
|
+
class NextParameters {
|
|
1028
|
+
static fromProto(proto) {
|
|
1029
|
+
let m = new NextParameters();
|
|
1030
|
+
m = Object.assign(m, proto);
|
|
1031
|
+
return m;
|
|
1032
|
+
}
|
|
1033
|
+
constructor(kwargs) {
|
|
1034
|
+
if (!kwargs) {
|
|
1035
|
+
return;
|
|
1036
|
+
}
|
|
1037
|
+
Object.assign(this, kwargs);
|
|
1038
|
+
}
|
|
1039
|
+
toApiJson() {
|
|
1040
|
+
const toReturn = {};
|
|
1041
|
+
if (typeof this.nextSectionId !== 'undefined') {
|
|
1042
|
+
toReturn['nextSectionId'] = this.nextSectionId;
|
|
1043
|
+
}
|
|
1044
|
+
return toReturn;
|
|
1045
|
+
}
|
|
1046
|
+
}
|
|
960
1047
|
class RenderFormResponsePreFillByUrlQueryParameter {
|
|
961
1048
|
static fromProto(proto) {
|
|
962
1049
|
let m = new RenderFormResponsePreFillByUrlQueryParameter();
|
|
@@ -1068,6 +1155,9 @@ class RenderFormResponse {
|
|
|
1068
1155
|
if (proto.fieldQueryParams) {
|
|
1069
1156
|
m.fieldQueryParams = proto.fieldQueryParams.map(RenderFormResponsePreFillByUrlQueryParameter.fromProto);
|
|
1070
1157
|
}
|
|
1158
|
+
if (proto.defaultValues) {
|
|
1159
|
+
m.defaultValues = proto.defaultValues.map(RenderFormResponseDefaultValues.fromProto);
|
|
1160
|
+
}
|
|
1071
1161
|
return m;
|
|
1072
1162
|
}
|
|
1073
1163
|
constructor(kwargs) {
|
|
@@ -1093,6 +1183,9 @@ class RenderFormResponse {
|
|
|
1093
1183
|
if (typeof this.recaptchaSiteKey !== 'undefined') {
|
|
1094
1184
|
toReturn['recaptchaSiteKey'] = this.recaptchaSiteKey;
|
|
1095
1185
|
}
|
|
1186
|
+
if (typeof this.defaultValues !== 'undefined' && this.defaultValues !== null) {
|
|
1187
|
+
toReturn['defaultValues'] = 'toApiJson' in this.defaultValues ? this.defaultValues.toApiJson() : this.defaultValues;
|
|
1188
|
+
}
|
|
1096
1189
|
return toReturn;
|
|
1097
1190
|
}
|
|
1098
1191
|
}
|
|
@@ -1125,6 +1218,38 @@ class FormConfigFieldSchema {
|
|
|
1125
1218
|
return toReturn;
|
|
1126
1219
|
}
|
|
1127
1220
|
}
|
|
1221
|
+
class SectionConfig {
|
|
1222
|
+
static fromProto(proto) {
|
|
1223
|
+
let m = new SectionConfig();
|
|
1224
|
+
m = Object.assign(m, proto);
|
|
1225
|
+
if (proto.buttonAction) {
|
|
1226
|
+
m.buttonAction = enumStringToValue(SectionAction, proto.buttonAction);
|
|
1227
|
+
}
|
|
1228
|
+
if (proto.actionParameters) {
|
|
1229
|
+
m.actionParameters = ActionParameters.fromProto(proto.actionParameters);
|
|
1230
|
+
}
|
|
1231
|
+
return m;
|
|
1232
|
+
}
|
|
1233
|
+
constructor(kwargs) {
|
|
1234
|
+
if (!kwargs) {
|
|
1235
|
+
return;
|
|
1236
|
+
}
|
|
1237
|
+
Object.assign(this, kwargs);
|
|
1238
|
+
}
|
|
1239
|
+
toApiJson() {
|
|
1240
|
+
const toReturn = {};
|
|
1241
|
+
if (typeof this.buttonLabel !== 'undefined') {
|
|
1242
|
+
toReturn['buttonLabel'] = this.buttonLabel;
|
|
1243
|
+
}
|
|
1244
|
+
if (typeof this.buttonAction !== 'undefined') {
|
|
1245
|
+
toReturn['buttonAction'] = this.buttonAction;
|
|
1246
|
+
}
|
|
1247
|
+
if (typeof this.actionParameters !== 'undefined' && this.actionParameters !== null) {
|
|
1248
|
+
toReturn['actionParameters'] = 'toApiJson' in this.actionParameters ? this.actionParameters.toApiJson() : this.actionParameters;
|
|
1249
|
+
}
|
|
1250
|
+
return toReturn;
|
|
1251
|
+
}
|
|
1252
|
+
}
|
|
1128
1253
|
class StringList {
|
|
1129
1254
|
static fromProto(proto) {
|
|
1130
1255
|
let m = new StringList();
|
|
@@ -1192,6 +1317,50 @@ class Styles {
|
|
|
1192
1317
|
return toReturn;
|
|
1193
1318
|
}
|
|
1194
1319
|
}
|
|
1320
|
+
class SubmitConditionParameters {
|
|
1321
|
+
static fromProto(proto) {
|
|
1322
|
+
let m = new SubmitConditionParameters();
|
|
1323
|
+
m = Object.assign(m, proto);
|
|
1324
|
+
if (proto.onConditionFailure) {
|
|
1325
|
+
m.onConditionFailure = enumStringToValue(SectionAction, proto.onConditionFailure);
|
|
1326
|
+
}
|
|
1327
|
+
if (proto.onConditionFailureParameters) {
|
|
1328
|
+
m.onConditionFailureParameters = ActionParameters.fromProto(proto.onConditionFailureParameters);
|
|
1329
|
+
}
|
|
1330
|
+
return m;
|
|
1331
|
+
}
|
|
1332
|
+
constructor(kwargs) {
|
|
1333
|
+
if (!kwargs) {
|
|
1334
|
+
return;
|
|
1335
|
+
}
|
|
1336
|
+
Object.assign(this, kwargs);
|
|
1337
|
+
}
|
|
1338
|
+
toApiJson() {
|
|
1339
|
+
const toReturn = {};
|
|
1340
|
+
if (typeof this.fieldId !== 'undefined') {
|
|
1341
|
+
toReturn['fieldId'] = this.fieldId;
|
|
1342
|
+
}
|
|
1343
|
+
if (typeof this.noValue !== 'undefined') {
|
|
1344
|
+
toReturn['noValue'] = this.noValue;
|
|
1345
|
+
}
|
|
1346
|
+
if (typeof this.anyValue !== 'undefined') {
|
|
1347
|
+
toReturn['anyValue'] = this.anyValue;
|
|
1348
|
+
}
|
|
1349
|
+
if (typeof this.isValue !== 'undefined') {
|
|
1350
|
+
toReturn['isValue'] = this.isValue;
|
|
1351
|
+
}
|
|
1352
|
+
if (typeof this.isNotValue !== 'undefined') {
|
|
1353
|
+
toReturn['isNotValue'] = this.isNotValue;
|
|
1354
|
+
}
|
|
1355
|
+
if (typeof this.onConditionFailure !== 'undefined') {
|
|
1356
|
+
toReturn['onConditionFailure'] = this.onConditionFailure;
|
|
1357
|
+
}
|
|
1358
|
+
if (typeof this.onConditionFailureParameters !== 'undefined' && this.onConditionFailureParameters !== null) {
|
|
1359
|
+
toReturn['onConditionFailureParameters'] = 'toApiJson' in this.onConditionFailureParameters ? this.onConditionFailureParameters.toApiJson() : this.onConditionFailureParameters;
|
|
1360
|
+
}
|
|
1361
|
+
return toReturn;
|
|
1362
|
+
}
|
|
1363
|
+
}
|
|
1195
1364
|
class FormSubmissionSubmittedValue {
|
|
1196
1365
|
static fromProto(proto) {
|
|
1197
1366
|
let m = new FormSubmissionSubmittedValue();
|
|
@@ -1611,5 +1780,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1611
1780
|
* Generated bundle index. Do not edit.
|
|
1612
1781
|
*/
|
|
1613
1782
|
|
|
1614
|
-
export { CreateFormRequest, CreateFormResponse, CreateFormSubmissionRequest, CreateFormSubmissionResponse, DeleteFormRequest, FieldOption, FieldType, FieldValue, FormConfig, FormConfigField, FormConfigFieldSchema, FormSubmission, FormSubmissionApiService, FormSubmissionSubmittedValue, FormSubmissionsExportService, FormsApiService, GetEmbedCodeRequest, GetEmbedCodeResponse, GetFormRequest, GetFormResponse, GetMultiFormSubmissionRequest, GetMultiFormSubmissionResponse, GetMultiFormVersionsListRequest, GetMultiFormVersionsListResponse, GetMultiFormVersionsListResponseVersions, GetMultiRequest, GetMultiRequestFormConfigIdentifier, GetMultiResponse, HostService, JsonSchemaLibrary, ListFormSubmissionRequest, ListFormSubmissionResponse, ListFormsRequest, ListFormsRequestFilters, ListFormsResponse, ListFormsResponseFormRow, ListMappedFieldSchemaRequest, ListMappedFieldSchemaResponse, MappedField, PagedRequestOptions, PagedResponseMetadata, PreviewFormRequest, PreviewFormResponse, RenderFormRequest, RenderFormResponse, RenderFormResponsePreFillByUrlQueryParameter, StringList, Styles, SystemDefined, UnmappedField, UpdateFormRequest, UpdateFormResponse, UserFormSubmission, ValidationError };
|
|
1783
|
+
export { ActionParameters, CreateFormRequest, CreateFormResponse, CreateFormSubmissionRequest, CreateFormSubmissionResponse, DeleteFormRequest, FieldOption, FieldType, FieldValue, FormConfig, FormConfigField, FormConfigFieldSchema, FormSubmission, FormSubmissionApiService, FormSubmissionSubmittedValue, FormSubmissionsExportService, FormsApiService, GetEmbedCodeRequest, GetEmbedCodeResponse, GetFormRequest, GetFormResponse, GetMultiFormSubmissionRequest, GetMultiFormSubmissionResponse, GetMultiFormVersionsListRequest, GetMultiFormVersionsListResponse, GetMultiFormVersionsListResponseVersions, GetMultiRequest, GetMultiRequestFormConfigIdentifier, GetMultiResponse, HostService, JsonSchemaLibrary, ListFormSubmissionRequest, ListFormSubmissionResponse, ListFormsRequest, ListFormsRequestFilters, ListFormsResponse, ListFormsResponseFormRow, ListMappedFieldSchemaRequest, ListMappedFieldSchemaResponse, MappedField, NextParameters, PagedRequestOptions, PagedResponseMetadata, PreviewFormRequest, PreviewFormResponse, RenderFormRequest, RenderFormResponse, RenderFormResponseDefaultValues, RenderFormResponsePreFillByUrlQueryParameter, SectionAction, SectionConfig, StringList, Styles, SubmitConditionParameters, SystemDefined, UnmappedField, UpdateFormRequest, UpdateFormResponse, UserFormSubmission, ValidationError };
|
|
1615
1784
|
//# sourceMappingURL=vendasta-forms_microservice.mjs.map
|