@vendasta/forms_microservice 0.0.13 → 0.0.16
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/interfaces/api.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2020/lib/_internal/objects/api.mjs +50 -109
- package/esm2020/lib/_internal/objects/index.mjs +2 -2
- package/fesm2015/vendasta-forms_microservice.mjs +50 -109
- package/fesm2015/vendasta-forms_microservice.mjs.map +1 -1
- package/fesm2020/vendasta-forms_microservice.mjs +50 -109
- package/fesm2020/vendasta-forms_microservice.mjs.map +1 -1
- package/lib/_internal/interfaces/api.interface.d.ts +11 -23
- package/lib/_internal/interfaces/index.d.ts +1 -1
- package/lib/_internal/objects/api.d.ts +17 -32
- 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,
|
|
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9mb3Jtc19zZGsvc3JjL2xpYi9faW50ZXJuYWwvb2JqZWN0cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxvQ0FBb0M7QUFDcEMsMkJBQTJCO0FBQzNCLGdCQUFnQjtBQUNoQixFQUFFO0FBQ0YsaUJBQWlCO0FBQ2pCLG9DQUFvQztBQUNwQyxPQUFPLEVBQ0gsbUJBQW1CLEVBQ25CLHFCQUFxQixHQUN4QixNQUFNLFVBQVUsQ0FBQztBQUVsQixPQUFPLEVBQ0gsaUJBQWlCLEVBQ2pCLGtCQUFrQixFQUNsQiwyQkFBMkIsRUFDM0IsaUJBQWlCLEVBQ2pCLGVBQWUsRUFDZixVQUFVLEVBQ1YsdUJBQXVCLEVBQ3ZCLFVBQVUsRUFDVixtQ0FBbUMsRUFDbkMsd0JBQXdCLEVBQ3hCLHdDQUF3QyxFQUN4QyxjQUFjLEVBQ2QsbUJBQW1CLEVBQ25CLG9CQUFvQixFQUNwQixjQUFjLEVBQ2QsZUFBZSxFQUNmLCtCQUErQixFQUMvQixnQ0FBZ0MsRUFDaEMsZUFBZSxFQUNmLGdCQUFnQixFQUNoQix5QkFBeUIsRUFDekIsMEJBQTBCLEVBQzFCLGdCQUFnQixFQUNoQixpQkFBaUIsRUFDakIsa0NBQWtDLEVBQ2xDLGtCQUFrQixFQUNsQixtQkFBbUIsRUFDbkIsaUJBQWlCLEVBQ2pCLGtCQUFrQixFQUNsQixxQkFBcUIsRUFDckIsTUFBTSxFQUNOLHNEQUFzRCxFQUN0RCw0QkFBNEIsRUFDNUIsaUJBQWlCLEVBQ2pCLGtCQUFrQixFQUN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VJlcXVlc3QsXG4gICAgR2V0TXVsdGlSZXNwb25zZSxcbiAgICBMaXN0Rm9ybVN1Ym1pc3Npb25SZXF1ZXN0LFxuICAgIExpc3RGb3JtU3VibWlzc2lvblJlc3BvbnNlLFxuICAgIExpc3RGb3Jtc1JlcXVlc3QsXG4gICAgTGlzdEZvcm1zUmVzcG9uc2UsXG4gICAgRm9ybUNvbmZpZ0ZpZWxkVW5tYXBwZWRGaWVsZE9wdGlvbixcbiAgICBQcmV2aWV3Rm9ybVJlcXVlc3QsXG4gICAgUHJldmlld0Zvcm1SZXNwb25zZSxcbiAgICBSZW5kZXJGb3JtUmVxdWVzdCxcbiAgICBSZW5kZXJGb3JtUmVzcG9uc2UsXG4gICAgRm9ybUNvbmZpZ0ZpZWxkU2NoZW1hLFxuICAgIFN0eWxlcyxcbiAgICBMaXN0Rm9ybVN1Ym1pc3Npb25SZXNwb25zZUZvcm1TdWJtaXNzaW9uU3VibWl0dGVkVmFsdWUsXG4gICAgRm9ybUNvbmZpZ0ZpZWxkVW5tYXBwZWRGaWVsZCxcbiAgICBVcGRhdGVGb3JtUmVxdWVzdCxcbiAgICBVcGRhdGVGb3JtUmVzcG9uc2UsXG4gICAgR2V0TXVsdGlGb3JtVmVyc2lvbnNMaXN0UmVzcG9uc2VWZXJzaW9ucyxcbn0gZnJvbSAnLi9hcGknO1xuXG4iXX0=
|
|
@@ -165,50 +165,6 @@ class CreateFormSubmissionRequest {
|
|
|
165
165
|
return toReturn;
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
|
-
class FormConfigFieldDefault {
|
|
169
|
-
constructor(kwargs) {
|
|
170
|
-
if (!kwargs) {
|
|
171
|
-
return;
|
|
172
|
-
}
|
|
173
|
-
Object.assign(this, kwargs);
|
|
174
|
-
}
|
|
175
|
-
static fromProto(proto) {
|
|
176
|
-
let m = new FormConfigFieldDefault();
|
|
177
|
-
m = Object.assign(m, proto);
|
|
178
|
-
if (proto.integer) {
|
|
179
|
-
m.integer = parseInt(proto.integer, 10);
|
|
180
|
-
}
|
|
181
|
-
if (proto.currency) {
|
|
182
|
-
m.currency = parseInt(proto.currency, 10);
|
|
183
|
-
}
|
|
184
|
-
return m;
|
|
185
|
-
}
|
|
186
|
-
toApiJson() {
|
|
187
|
-
const toReturn = {};
|
|
188
|
-
if (typeof this.invalid !== 'undefined') {
|
|
189
|
-
toReturn['invalid'] = this.invalid;
|
|
190
|
-
}
|
|
191
|
-
if (typeof this.integer !== 'undefined') {
|
|
192
|
-
toReturn['integer'] = this.integer;
|
|
193
|
-
}
|
|
194
|
-
if (typeof this.string !== 'undefined') {
|
|
195
|
-
toReturn['string'] = this.string;
|
|
196
|
-
}
|
|
197
|
-
if (typeof this.date !== 'undefined') {
|
|
198
|
-
toReturn['date'] = this.date;
|
|
199
|
-
}
|
|
200
|
-
if (typeof this.dropdown !== 'undefined') {
|
|
201
|
-
toReturn['dropdown'] = this.dropdown;
|
|
202
|
-
}
|
|
203
|
-
if (typeof this.currency !== 'undefined') {
|
|
204
|
-
toReturn['currency'] = this.currency;
|
|
205
|
-
}
|
|
206
|
-
if (typeof this.boolean !== 'undefined') {
|
|
207
|
-
toReturn['boolean'] = this.boolean;
|
|
208
|
-
}
|
|
209
|
-
return toReturn;
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
168
|
class DeleteFormRequest {
|
|
213
169
|
constructor(kwargs) {
|
|
214
170
|
if (!kwargs) {
|
|
@@ -232,29 +188,6 @@ class DeleteFormRequest {
|
|
|
232
188
|
return toReturn;
|
|
233
189
|
}
|
|
234
190
|
}
|
|
235
|
-
class FormConfigFieldUnmappedFieldDropdownOption {
|
|
236
|
-
constructor(kwargs) {
|
|
237
|
-
if (!kwargs) {
|
|
238
|
-
return;
|
|
239
|
-
}
|
|
240
|
-
Object.assign(this, kwargs);
|
|
241
|
-
}
|
|
242
|
-
static fromProto(proto) {
|
|
243
|
-
let m = new FormConfigFieldUnmappedFieldDropdownOption();
|
|
244
|
-
m = Object.assign(m, proto);
|
|
245
|
-
return m;
|
|
246
|
-
}
|
|
247
|
-
toApiJson() {
|
|
248
|
-
const toReturn = {};
|
|
249
|
-
if (typeof this.value !== 'undefined') {
|
|
250
|
-
toReturn['value'] = this.value;
|
|
251
|
-
}
|
|
252
|
-
if (typeof this.label !== 'undefined') {
|
|
253
|
-
toReturn['label'] = this.label;
|
|
254
|
-
}
|
|
255
|
-
return toReturn;
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
191
|
class FormConfigField {
|
|
259
192
|
constructor(kwargs) {
|
|
260
193
|
if (!kwargs) {
|
|
@@ -268,9 +201,6 @@ class FormConfigField {
|
|
|
268
201
|
if (proto.schema) {
|
|
269
202
|
m.schema = FormConfigFieldSchema.fromProto(proto.schema);
|
|
270
203
|
}
|
|
271
|
-
if (proto.default) {
|
|
272
|
-
m.default = FormConfigFieldDefault.fromProto(proto.default);
|
|
273
|
-
}
|
|
274
204
|
if (proto.defaultValue) {
|
|
275
205
|
m.defaultValue = FieldValue.fromProto(proto.defaultValue);
|
|
276
206
|
}
|
|
@@ -284,9 +214,6 @@ class FormConfigField {
|
|
|
284
214
|
if (typeof this.label !== 'undefined') {
|
|
285
215
|
toReturn['label'] = this.label;
|
|
286
216
|
}
|
|
287
|
-
if (typeof this.default !== 'undefined' && this.default !== null) {
|
|
288
|
-
toReturn['default'] = 'toApiJson' in this.default ? this.default.toApiJson() : this.default;
|
|
289
|
-
}
|
|
290
217
|
if (typeof this.required !== 'undefined') {
|
|
291
218
|
toReturn['required'] = this.required;
|
|
292
219
|
}
|
|
@@ -312,9 +239,6 @@ class FieldValue {
|
|
|
312
239
|
if (proto.integer) {
|
|
313
240
|
m.integer = parseInt(proto.integer, 10);
|
|
314
241
|
}
|
|
315
|
-
if (proto.currency) {
|
|
316
|
-
m.currency = parseInt(proto.currency, 10);
|
|
317
|
-
}
|
|
318
242
|
return m;
|
|
319
243
|
}
|
|
320
244
|
toApiJson() {
|
|
@@ -328,15 +252,6 @@ class FieldValue {
|
|
|
328
252
|
if (typeof this.string !== 'undefined') {
|
|
329
253
|
toReturn['string'] = this.string;
|
|
330
254
|
}
|
|
331
|
-
if (typeof this.date !== 'undefined') {
|
|
332
|
-
toReturn['date'] = this.date;
|
|
333
|
-
}
|
|
334
|
-
if (typeof this.dropdown !== 'undefined') {
|
|
335
|
-
toReturn['dropdown'] = this.dropdown;
|
|
336
|
-
}
|
|
337
|
-
if (typeof this.currency !== 'undefined') {
|
|
338
|
-
toReturn['currency'] = this.currency;
|
|
339
|
-
}
|
|
340
255
|
if (typeof this.boolean !== 'undefined') {
|
|
341
256
|
toReturn['boolean'] = this.boolean;
|
|
342
257
|
}
|
|
@@ -419,6 +334,9 @@ class FormConfig {
|
|
|
419
334
|
if (typeof this.mostRecent !== 'undefined') {
|
|
420
335
|
toReturn['mostRecent'] = this.mostRecent;
|
|
421
336
|
}
|
|
337
|
+
if (typeof this.redirectUrl !== 'undefined') {
|
|
338
|
+
toReturn['redirectUrl'] = this.redirectUrl;
|
|
339
|
+
}
|
|
422
340
|
return toReturn;
|
|
423
341
|
}
|
|
424
342
|
}
|
|
@@ -474,7 +392,7 @@ class ListFormsResponseFormRow {
|
|
|
474
392
|
return toReturn;
|
|
475
393
|
}
|
|
476
394
|
}
|
|
477
|
-
class
|
|
395
|
+
class ListFormSubmissionResponseFormSubmission {
|
|
478
396
|
constructor(kwargs) {
|
|
479
397
|
if (!kwargs) {
|
|
480
398
|
return;
|
|
@@ -482,25 +400,28 @@ class FormSubmission {
|
|
|
482
400
|
Object.assign(this, kwargs);
|
|
483
401
|
}
|
|
484
402
|
static fromProto(proto) {
|
|
485
|
-
let m = new
|
|
403
|
+
let m = new ListFormSubmissionResponseFormSubmission();
|
|
486
404
|
m = Object.assign(m, proto);
|
|
405
|
+
if (proto.values) {
|
|
406
|
+
m.values = proto.values.map(ListFormSubmissionResponseFormSubmissionSubmittedValue.fromProto);
|
|
407
|
+
}
|
|
487
408
|
return m;
|
|
488
409
|
}
|
|
489
410
|
toApiJson() {
|
|
490
411
|
const toReturn = {};
|
|
491
|
-
if (typeof this.
|
|
492
|
-
toReturn['
|
|
412
|
+
if (typeof this.formSubmissionId !== 'undefined') {
|
|
413
|
+
toReturn['formSubmissionId'] = this.formSubmissionId;
|
|
493
414
|
}
|
|
494
|
-
if (typeof this.
|
|
495
|
-
toReturn['
|
|
415
|
+
if (typeof this.formVersion !== 'undefined') {
|
|
416
|
+
toReturn['formVersion'] = this.formVersion;
|
|
496
417
|
}
|
|
497
|
-
if (typeof this.values !== 'undefined') {
|
|
498
|
-
toReturn['values'] = this.values;
|
|
418
|
+
if (typeof this.values !== 'undefined' && this.values !== null) {
|
|
419
|
+
toReturn['values'] = 'toApiJson' in this.values ? this.values.toApiJson() : this.values;
|
|
499
420
|
}
|
|
500
421
|
return toReturn;
|
|
501
422
|
}
|
|
502
423
|
}
|
|
503
|
-
class
|
|
424
|
+
class FormSubmission {
|
|
504
425
|
constructor(kwargs) {
|
|
505
426
|
if (!kwargs) {
|
|
506
427
|
return;
|
|
@@ -508,23 +429,20 @@ class ListFormSubmissionResponseFormSubmission {
|
|
|
508
429
|
Object.assign(this, kwargs);
|
|
509
430
|
}
|
|
510
431
|
static fromProto(proto) {
|
|
511
|
-
let m = new
|
|
432
|
+
let m = new FormSubmission();
|
|
512
433
|
m = Object.assign(m, proto);
|
|
513
|
-
if (proto.values) {
|
|
514
|
-
m.values = proto.values.map(ListFormSubmissionResponseFormSubmissionSubmittedValue.fromProto);
|
|
515
|
-
}
|
|
516
434
|
return m;
|
|
517
435
|
}
|
|
518
436
|
toApiJson() {
|
|
519
437
|
const toReturn = {};
|
|
520
|
-
if (typeof this.
|
|
521
|
-
toReturn['
|
|
438
|
+
if (typeof this.formId !== 'undefined') {
|
|
439
|
+
toReturn['formId'] = this.formId;
|
|
522
440
|
}
|
|
523
|
-
if (typeof this.
|
|
524
|
-
toReturn['
|
|
441
|
+
if (typeof this.version !== 'undefined') {
|
|
442
|
+
toReturn['version'] = this.version;
|
|
525
443
|
}
|
|
526
|
-
if (typeof this.values !== 'undefined'
|
|
527
|
-
toReturn['values'] =
|
|
444
|
+
if (typeof this.values !== 'undefined') {
|
|
445
|
+
toReturn['values'] = this.values;
|
|
528
446
|
}
|
|
529
447
|
return toReturn;
|
|
530
448
|
}
|
|
@@ -814,6 +732,29 @@ class ListFormsResponse {
|
|
|
814
732
|
return toReturn;
|
|
815
733
|
}
|
|
816
734
|
}
|
|
735
|
+
class FormConfigFieldUnmappedFieldOption {
|
|
736
|
+
constructor(kwargs) {
|
|
737
|
+
if (!kwargs) {
|
|
738
|
+
return;
|
|
739
|
+
}
|
|
740
|
+
Object.assign(this, kwargs);
|
|
741
|
+
}
|
|
742
|
+
static fromProto(proto) {
|
|
743
|
+
let m = new FormConfigFieldUnmappedFieldOption();
|
|
744
|
+
m = Object.assign(m, proto);
|
|
745
|
+
return m;
|
|
746
|
+
}
|
|
747
|
+
toApiJson() {
|
|
748
|
+
const toReturn = {};
|
|
749
|
+
if (typeof this.value !== 'undefined') {
|
|
750
|
+
toReturn['value'] = this.value;
|
|
751
|
+
}
|
|
752
|
+
if (typeof this.label !== 'undefined') {
|
|
753
|
+
toReturn['label'] = this.label;
|
|
754
|
+
}
|
|
755
|
+
return toReturn;
|
|
756
|
+
}
|
|
757
|
+
}
|
|
817
758
|
class PreviewFormRequest {
|
|
818
759
|
constructor(kwargs) {
|
|
819
760
|
if (!kwargs) {
|
|
@@ -1024,8 +965,8 @@ class FormConfigFieldUnmappedField {
|
|
|
1024
965
|
if (proto.type) {
|
|
1025
966
|
m.type = enumStringToValue(FieldType, proto.type);
|
|
1026
967
|
}
|
|
1027
|
-
if (proto.
|
|
1028
|
-
m.
|
|
968
|
+
if (proto.options) {
|
|
969
|
+
m.options = proto.options.map(FormConfigFieldUnmappedFieldOption.fromProto);
|
|
1029
970
|
}
|
|
1030
971
|
return m;
|
|
1031
972
|
}
|
|
@@ -1037,8 +978,8 @@ class FormConfigFieldUnmappedField {
|
|
|
1037
978
|
if (typeof this.type !== 'undefined') {
|
|
1038
979
|
toReturn['type'] = this.type;
|
|
1039
980
|
}
|
|
1040
|
-
if (typeof this.
|
|
1041
|
-
toReturn['
|
|
981
|
+
if (typeof this.options !== 'undefined' && this.options !== null) {
|
|
982
|
+
toReturn['options'] = 'toApiJson' in this.options ? this.options.toApiJson() : this.options;
|
|
1042
983
|
}
|
|
1043
984
|
if (typeof this.currencyCode !== 'undefined') {
|
|
1044
985
|
toReturn['currencyCode'] = this.currencyCode;
|
|
@@ -1251,5 +1192,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImpor
|
|
|
1251
1192
|
* Generated bundle index. Do not edit.
|
|
1252
1193
|
*/
|
|
1253
1194
|
|
|
1254
|
-
export { CreateFormRequest, CreateFormResponse, CreateFormSubmissionRequest, DeleteFormRequest, FieldType, FieldValue, FormConfig, FormConfigField,
|
|
1195
|
+
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 };
|
|
1255
1196
|
//# sourceMappingURL=vendasta-forms_microservice.mjs.map
|