@vendasta/forms_microservice 0.0.14 → 0.0.17
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 +2 -1
- 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 +50 -59
- package/esm2020/lib/_internal/objects/index.mjs +2 -2
- package/fesm2015/vendasta-forms_microservice.mjs +51 -59
- package/fesm2015/vendasta-forms_microservice.mjs.map +1 -1
- package/fesm2020/vendasta-forms_microservice.mjs +51 -59
- package/fesm2020/vendasta-forms_microservice.mjs.map +1 -1
- package/lib/_internal/enums/api.enum.d.ts +2 -1
- package/lib/_internal/interfaces/api.interface.d.ts +11 -13
- package/lib/_internal/interfaces/index.d.ts +1 -1
- package/lib/_internal/objects/api.d.ts +17 -19
- 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, DeleteFormRequest,
|
|
9
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
8
|
+
export { CreateFormRequest, CreateFormResponse, CreateFormSubmissionRequest, DeleteFormRequest, FormConfigField, FieldValue, ListFormsRequestFilters, FormConfig, GetMultiRequestFormConfigIdentifier, ListFormsResponseFormRow, ListFormSubmissionResponseFormSubmission, FormSubmission, GetEmbedCodeRequest, GetEmbedCodeResponse, GetFormRequest, GetFormResponse, GetMultiFormVersionsListRequest, GetMultiFormVersionsListResponse, GetMultiRequest, GetMultiResponse, ListFormSubmissionRequest, ListFormSubmissionResponse, ListFormsRequest, ListFormsResponse, FormConfigFieldUnmappedFieldOption, PreviewFormRequest, PreviewFormResponse, RenderFormRequest, RenderFormResponse, FormConfigFieldSchema, Styles, ListFormSubmissionResponseFormSubmissionSubmittedValue, FormConfigFieldUnmappedField, UpdateFormRequest, UpdateFormResponse, GetMultiFormVersionsListResponseVersions, } from './api';
|
|
9
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9mb3Jtc19zZGsvc3JjL2xpYi9faW50ZXJuYWwvb2JqZWN0cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxvQ0FBb0M7QUFDcEMsMkJBQTJCO0FBQzNCLGdCQUFnQjtBQUNoQixFQUFFO0FBQ0YsaUJBQWlCO0FBQ2pCLG9DQUFvQztBQUNwQyxPQUFPLEVBQ0gsbUJBQW1CLEVBQ25CLHFCQUFxQixHQUN4QixNQUFNLFVBQVUsQ0FBQztBQUVsQixPQUFPLEVBQ0gsaUJBQWlCLEVBQ2pCLGtCQUFrQixFQUNsQiwyQkFBMkIsRUFDM0IsaUJBQWlCLEVBQ2pCLGVBQWUsRUFDZixVQUFVLEVBQ1YsdUJBQXVCLEVBQ3ZCLFVBQVUsRUFDVixtQ0FBbUMsRUFDbkMsd0JBQXdCLEVBQ3hCLHdDQUF3QyxFQUN4QyxjQUFjLEVBQ2QsbUJBQW1CLEVBQ25CLG9CQUFvQixFQUNwQixjQUFjLEVBQ2QsZUFBZSxFQUNmLCtCQUErQixFQUMvQixnQ0FBZ0MsRUFDaEMsZUFBZSxFQUNmLGdCQUFnQixFQUNoQix5QkFBeUIsRUFDekIsMEJBQTBCLEVBQzFCLGdCQUFnQixFQUNoQixpQkFBaUIsRUFDakIsa0NBQWtDLEVBQ2xDLGtCQUFrQixFQUNsQixtQkFBbUIsRUFDbkIsaUJBQWlCLEVBQ2pCLGtCQUFrQixFQUNsQixxQkFBcUIsRUFDckIsTUFBTSxFQ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dCxcbiAgICBHZXRNdWx0aUZvcm1WZXJzaW9uc0xpc3RSZXNwb25zZSxcbiAgICBHZXRNdWx0aVJlcXVlc3QsXG4gICAgR2V0TXVsdGlSZXNwb25zZSxcbiAgICBMaXN0Rm9ybVN1Ym1pc3Npb25SZXF1ZXN0LFxuICAgIExpc3RGb3JtU3VibWlzc2lvblJlc3BvbnNlLFxuICAgIExpc3RGb3Jtc1JlcXVlc3QsXG4gICAgTGlzdEZvcm1zUmVzcG9uc2UsXG4gICAgRm9ybUNvbmZpZ0ZpZWxkVW5tYXBwZWRGaWVsZE9wdGlvbixcbiAgICBQcmV2aWV3Rm9ybVJlcXVlc3QsXG4gICAgUHJldmlld0Zvcm1SZXNwb25zZSxcbiAgICBSZW5kZXJGb3JtUmVxdWVzdCxcbiAgICBSZW5kZXJGb3JtUmVzcG9uc2UsXG4gICAgRm9ybUNvbmZpZ0ZpZWxkU2NoZW1hLFxuICAgIFN0eWxlcyxcbiAgICBMaXN0Rm9ybVN1Ym1pc3Npb25SZXNwb25zZUZvcm1TdWJtaXNzaW9uU3VibWl0dGVkVmFsdWUsXG4gICAgRm9ybUNvbmZpZ0ZpZWxkVW5tYXBwZWRGaWVsZCxcbiAgICBVcGRhdGVGb3JtUmVxdWVzdCxcbiAgICBVcGRhdGVGb3JtUmVzcG9uc2UsXG4gICAgR2V0TXVsdGlGb3JtVmVyc2lvbnNMaXN0UmVzcG9uc2VWZXJzaW9ucyxcbn0gZnJvbSAnLi9hcGknO1xuXG4iXX0=
|
|
@@ -19,6 +19,7 @@ var FieldType;
|
|
|
19
19
|
FieldType[FieldType["FIELD_TYPE_DROPDOWN"] = 4] = "FIELD_TYPE_DROPDOWN";
|
|
20
20
|
FieldType[FieldType["FIELD_TYPE_CURRENCY"] = 5] = "FIELD_TYPE_CURRENCY";
|
|
21
21
|
FieldType[FieldType["FIELD_TYPE_BOOLEAN"] = 6] = "FIELD_TYPE_BOOLEAN";
|
|
22
|
+
FieldType[FieldType["FIELD_TYPE_RADIO"] = 7] = "FIELD_TYPE_RADIO";
|
|
22
23
|
})(FieldType || (FieldType = {}));
|
|
23
24
|
var JsonSchemaLibrary;
|
|
24
25
|
(function (JsonSchemaLibrary) {
|
|
@@ -188,29 +189,6 @@ class DeleteFormRequest {
|
|
|
188
189
|
return toReturn;
|
|
189
190
|
}
|
|
190
191
|
}
|
|
191
|
-
class FormConfigFieldUnmappedFieldDropdownOption {
|
|
192
|
-
constructor(kwargs) {
|
|
193
|
-
if (!kwargs) {
|
|
194
|
-
return;
|
|
195
|
-
}
|
|
196
|
-
Object.assign(this, kwargs);
|
|
197
|
-
}
|
|
198
|
-
static fromProto(proto) {
|
|
199
|
-
let m = new FormConfigFieldUnmappedFieldDropdownOption();
|
|
200
|
-
m = Object.assign(m, proto);
|
|
201
|
-
return m;
|
|
202
|
-
}
|
|
203
|
-
toApiJson() {
|
|
204
|
-
const toReturn = {};
|
|
205
|
-
if (typeof this.value !== 'undefined') {
|
|
206
|
-
toReturn['value'] = this.value;
|
|
207
|
-
}
|
|
208
|
-
if (typeof this.label !== 'undefined') {
|
|
209
|
-
toReturn['label'] = this.label;
|
|
210
|
-
}
|
|
211
|
-
return toReturn;
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
192
|
class FormConfigField {
|
|
215
193
|
constructor(kwargs) {
|
|
216
194
|
if (!kwargs) {
|
|
@@ -262,9 +240,6 @@ class FieldValue {
|
|
|
262
240
|
if (proto.integer) {
|
|
263
241
|
m.integer = parseInt(proto.integer, 10);
|
|
264
242
|
}
|
|
265
|
-
if (proto.currency) {
|
|
266
|
-
m.currency = parseInt(proto.currency, 10);
|
|
267
|
-
}
|
|
268
243
|
return m;
|
|
269
244
|
}
|
|
270
245
|
toApiJson() {
|
|
@@ -278,15 +253,6 @@ class FieldValue {
|
|
|
278
253
|
if (typeof this.string !== 'undefined') {
|
|
279
254
|
toReturn['string'] = this.string;
|
|
280
255
|
}
|
|
281
|
-
if (typeof this.date !== 'undefined') {
|
|
282
|
-
toReturn['date'] = this.date;
|
|
283
|
-
}
|
|
284
|
-
if (typeof this.dropdown !== 'undefined') {
|
|
285
|
-
toReturn['dropdown'] = this.dropdown;
|
|
286
|
-
}
|
|
287
|
-
if (typeof this.currency !== 'undefined') {
|
|
288
|
-
toReturn['currency'] = this.currency;
|
|
289
|
-
}
|
|
290
256
|
if (typeof this.boolean !== 'undefined') {
|
|
291
257
|
toReturn['boolean'] = this.boolean;
|
|
292
258
|
}
|
|
@@ -369,6 +335,9 @@ class FormConfig {
|
|
|
369
335
|
if (typeof this.mostRecent !== 'undefined') {
|
|
370
336
|
toReturn['mostRecent'] = this.mostRecent;
|
|
371
337
|
}
|
|
338
|
+
if (typeof this.redirectUrl !== 'undefined') {
|
|
339
|
+
toReturn['redirectUrl'] = this.redirectUrl;
|
|
340
|
+
}
|
|
372
341
|
return toReturn;
|
|
373
342
|
}
|
|
374
343
|
}
|
|
@@ -424,7 +393,7 @@ class ListFormsResponseFormRow {
|
|
|
424
393
|
return toReturn;
|
|
425
394
|
}
|
|
426
395
|
}
|
|
427
|
-
class
|
|
396
|
+
class ListFormSubmissionResponseFormSubmission {
|
|
428
397
|
constructor(kwargs) {
|
|
429
398
|
if (!kwargs) {
|
|
430
399
|
return;
|
|
@@ -432,25 +401,28 @@ class FormSubmission {
|
|
|
432
401
|
Object.assign(this, kwargs);
|
|
433
402
|
}
|
|
434
403
|
static fromProto(proto) {
|
|
435
|
-
let m = new
|
|
404
|
+
let m = new ListFormSubmissionResponseFormSubmission();
|
|
436
405
|
m = Object.assign(m, proto);
|
|
406
|
+
if (proto.values) {
|
|
407
|
+
m.values = proto.values.map(ListFormSubmissionResponseFormSubmissionSubmittedValue.fromProto);
|
|
408
|
+
}
|
|
437
409
|
return m;
|
|
438
410
|
}
|
|
439
411
|
toApiJson() {
|
|
440
412
|
const toReturn = {};
|
|
441
|
-
if (typeof this.
|
|
442
|
-
toReturn['
|
|
413
|
+
if (typeof this.formSubmissionId !== 'undefined') {
|
|
414
|
+
toReturn['formSubmissionId'] = this.formSubmissionId;
|
|
443
415
|
}
|
|
444
|
-
if (typeof this.
|
|
445
|
-
toReturn['
|
|
416
|
+
if (typeof this.formVersion !== 'undefined') {
|
|
417
|
+
toReturn['formVersion'] = this.formVersion;
|
|
446
418
|
}
|
|
447
|
-
if (typeof this.values !== 'undefined') {
|
|
448
|
-
toReturn['values'] = this.values;
|
|
419
|
+
if (typeof this.values !== 'undefined' && this.values !== null) {
|
|
420
|
+
toReturn['values'] = 'toApiJson' in this.values ? this.values.toApiJson() : this.values;
|
|
449
421
|
}
|
|
450
422
|
return toReturn;
|
|
451
423
|
}
|
|
452
424
|
}
|
|
453
|
-
class
|
|
425
|
+
class FormSubmission {
|
|
454
426
|
constructor(kwargs) {
|
|
455
427
|
if (!kwargs) {
|
|
456
428
|
return;
|
|
@@ -458,23 +430,20 @@ class ListFormSubmissionResponseFormSubmission {
|
|
|
458
430
|
Object.assign(this, kwargs);
|
|
459
431
|
}
|
|
460
432
|
static fromProto(proto) {
|
|
461
|
-
let m = new
|
|
433
|
+
let m = new FormSubmission();
|
|
462
434
|
m = Object.assign(m, proto);
|
|
463
|
-
if (proto.values) {
|
|
464
|
-
m.values = proto.values.map(ListFormSubmissionResponseFormSubmissionSubmittedValue.fromProto);
|
|
465
|
-
}
|
|
466
435
|
return m;
|
|
467
436
|
}
|
|
468
437
|
toApiJson() {
|
|
469
438
|
const toReturn = {};
|
|
470
|
-
if (typeof this.
|
|
471
|
-
toReturn['
|
|
439
|
+
if (typeof this.formId !== 'undefined') {
|
|
440
|
+
toReturn['formId'] = this.formId;
|
|
472
441
|
}
|
|
473
|
-
if (typeof this.
|
|
474
|
-
toReturn['
|
|
442
|
+
if (typeof this.version !== 'undefined') {
|
|
443
|
+
toReturn['version'] = this.version;
|
|
475
444
|
}
|
|
476
|
-
if (typeof this.values !== 'undefined'
|
|
477
|
-
toReturn['values'] =
|
|
445
|
+
if (typeof this.values !== 'undefined') {
|
|
446
|
+
toReturn['values'] = this.values;
|
|
478
447
|
}
|
|
479
448
|
return toReturn;
|
|
480
449
|
}
|
|
@@ -764,6 +733,29 @@ class ListFormsResponse {
|
|
|
764
733
|
return toReturn;
|
|
765
734
|
}
|
|
766
735
|
}
|
|
736
|
+
class FormConfigFieldUnmappedFieldOption {
|
|
737
|
+
constructor(kwargs) {
|
|
738
|
+
if (!kwargs) {
|
|
739
|
+
return;
|
|
740
|
+
}
|
|
741
|
+
Object.assign(this, kwargs);
|
|
742
|
+
}
|
|
743
|
+
static fromProto(proto) {
|
|
744
|
+
let m = new FormConfigFieldUnmappedFieldOption();
|
|
745
|
+
m = Object.assign(m, proto);
|
|
746
|
+
return m;
|
|
747
|
+
}
|
|
748
|
+
toApiJson() {
|
|
749
|
+
const toReturn = {};
|
|
750
|
+
if (typeof this.value !== 'undefined') {
|
|
751
|
+
toReturn['value'] = this.value;
|
|
752
|
+
}
|
|
753
|
+
if (typeof this.label !== 'undefined') {
|
|
754
|
+
toReturn['label'] = this.label;
|
|
755
|
+
}
|
|
756
|
+
return toReturn;
|
|
757
|
+
}
|
|
758
|
+
}
|
|
767
759
|
class PreviewFormRequest {
|
|
768
760
|
constructor(kwargs) {
|
|
769
761
|
if (!kwargs) {
|
|
@@ -974,8 +966,8 @@ class FormConfigFieldUnmappedField {
|
|
|
974
966
|
if (proto.type) {
|
|
975
967
|
m.type = enumStringToValue(FieldType, proto.type);
|
|
976
968
|
}
|
|
977
|
-
if (proto.
|
|
978
|
-
m.
|
|
969
|
+
if (proto.options) {
|
|
970
|
+
m.options = proto.options.map(FormConfigFieldUnmappedFieldOption.fromProto);
|
|
979
971
|
}
|
|
980
972
|
return m;
|
|
981
973
|
}
|
|
@@ -987,8 +979,8 @@ class FormConfigFieldUnmappedField {
|
|
|
987
979
|
if (typeof this.type !== 'undefined') {
|
|
988
980
|
toReturn['type'] = this.type;
|
|
989
981
|
}
|
|
990
|
-
if (typeof this.
|
|
991
|
-
toReturn['
|
|
982
|
+
if (typeof this.options !== 'undefined' && this.options !== null) {
|
|
983
|
+
toReturn['options'] = 'toApiJson' in this.options ? this.options.toApiJson() : this.options;
|
|
992
984
|
}
|
|
993
985
|
if (typeof this.currencyCode !== 'undefined') {
|
|
994
986
|
toReturn['currencyCode'] = this.currencyCode;
|
|
@@ -1201,5 +1193,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImpor
|
|
|
1201
1193
|
* Generated bundle index. Do not edit.
|
|
1202
1194
|
*/
|
|
1203
1195
|
|
|
1204
|
-
export { CreateFormRequest, CreateFormResponse, CreateFormSubmissionRequest, DeleteFormRequest, FieldType, FieldValue, FormConfig, FormConfigField, FormConfigFieldSchema, FormConfigFieldUnmappedField,
|
|
1196
|
+
export { CreateFormRequest, CreateFormResponse, CreateFormSubmissionRequest, DeleteFormRequest, FieldType, FieldValue, FormConfig, FormConfigField, FormConfigFieldSchema, FormConfigFieldUnmappedField, FormConfigFieldUnmappedFieldOption, FormSubmission, FormSubmissionApiService, FormsApiService, GetEmbedCodeRequest, GetEmbedCodeResponse, GetFormRequest, GetFormResponse, GetMultiFormVersionsListRequest, GetMultiFormVersionsListResponse, GetMultiFormVersionsListResponseVersions, GetMultiRequest, GetMultiRequestFormConfigIdentifier, GetMultiResponse, HostService, JsonSchemaLibrary, ListFormSubmissionRequest, ListFormSubmissionResponse, ListFormSubmissionResponseFormSubmission, ListFormSubmissionResponseFormSubmissionSubmittedValue, ListFormsRequest, ListFormsRequestFilters, ListFormsResponse, ListFormsResponseFormRow, PagedRequestOptions, PagedResponseMetadata, PreviewFormRequest, PreviewFormResponse, RenderFormRequest, RenderFormResponse, Styles, UpdateFormRequest, UpdateFormResponse };
|
|
1205
1197
|
//# sourceMappingURL=vendasta-forms_microservice.mjs.map
|