@vendasta/forms_microservice 0.18.0 → 0.20.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/galaxy-filters.enum.mjs +71 -0
- package/esm2020/lib/_internal/enums/index.mjs +2 -1
- package/esm2020/lib/_internal/forms.api.service.mjs +7 -2
- package/esm2020/lib/_internal/interfaces/api.interface.mjs +1 -1
- package/esm2020/lib/_internal/interfaces/galaxy-filters.interface.mjs +8 -0
- package/esm2020/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2020/lib/_internal/objects/api.mjs +101 -1
- package/esm2020/lib/_internal/objects/galaxy-filters.mjs +148 -0
- package/esm2020/lib/_internal/objects/index.mjs +3 -2
- package/fesm2015/vendasta-forms_microservice.mjs +324 -2
- package/fesm2015/vendasta-forms_microservice.mjs.map +1 -1
- package/fesm2020/vendasta-forms_microservice.mjs +324 -2
- package/fesm2020/vendasta-forms_microservice.mjs.map +1 -1
- package/lib/_internal/enums/galaxy-filters.enum.d.ts +60 -0
- package/lib/_internal/enums/index.d.ts +1 -0
- package/lib/_internal/forms.api.service.d.ts +3 -2
- package/lib/_internal/interfaces/api.interface.d.ts +19 -0
- package/lib/_internal/interfaces/galaxy-filters.interface.d.ts +25 -0
- package/lib/_internal/interfaces/index.d.ts +2 -1
- package/lib/_internal/objects/api.d.ts +28 -0
- package/lib/_internal/objects/galaxy-filters.d.ts +39 -0
- package/lib/_internal/objects/index.d.ts +2 -1
- package/package.json +1 -1
|
@@ -4,6 +4,77 @@ import * as i1 from '@angular/common/http';
|
|
|
4
4
|
import { HttpClient, HttpHeaders } from '@angular/common/http';
|
|
5
5
|
import { map } from 'rxjs/operators';
|
|
6
6
|
|
|
7
|
+
// *********************************
|
|
8
|
+
// Code generated by sdkgen
|
|
9
|
+
// DO NOT EDIT!.
|
|
10
|
+
//
|
|
11
|
+
// Enums.
|
|
12
|
+
// *********************************
|
|
13
|
+
var DateDefault;
|
|
14
|
+
(function (DateDefault) {
|
|
15
|
+
DateDefault[DateDefault["DATE_DEFAULT_INVALID"] = 0] = "DATE_DEFAULT_INVALID";
|
|
16
|
+
DateDefault[DateDefault["DATE_DEFAULT_TODAY"] = 1] = "DATE_DEFAULT_TODAY";
|
|
17
|
+
DateDefault[DateDefault["DATE_DEFAULT_YESTERDAY"] = 2] = "DATE_DEFAULT_YESTERDAY";
|
|
18
|
+
DateDefault[DateDefault["DATE_DEFAULT_TOMORROW"] = 3] = "DATE_DEFAULT_TOMORROW";
|
|
19
|
+
DateDefault[DateDefault["DATE_DEFAULT_THIS_WEEK"] = 4] = "DATE_DEFAULT_THIS_WEEK";
|
|
20
|
+
DateDefault[DateDefault["DATE_DEFAULT_LAST_WEEK"] = 5] = "DATE_DEFAULT_LAST_WEEK";
|
|
21
|
+
DateDefault[DateDefault["DATE_DEFAULT_NEXT_WEEK"] = 6] = "DATE_DEFAULT_NEXT_WEEK";
|
|
22
|
+
DateDefault[DateDefault["DATE_DEFAULT_THIS_MONTH"] = 7] = "DATE_DEFAULT_THIS_MONTH";
|
|
23
|
+
DateDefault[DateDefault["DATE_DEFAULT_LAST_MONTH"] = 8] = "DATE_DEFAULT_LAST_MONTH";
|
|
24
|
+
DateDefault[DateDefault["DATE_DEFAULT_NEXT_MONTH"] = 9] = "DATE_DEFAULT_NEXT_MONTH";
|
|
25
|
+
DateDefault[DateDefault["DATE_DEFAULT_THIS_QUARTER"] = 10] = "DATE_DEFAULT_THIS_QUARTER";
|
|
26
|
+
DateDefault[DateDefault["DATE_DEFAULT_LAST_QUARTER"] = 11] = "DATE_DEFAULT_LAST_QUARTER";
|
|
27
|
+
DateDefault[DateDefault["DATE_DEFAULT_NEXT_QUARTER"] = 12] = "DATE_DEFAULT_NEXT_QUARTER";
|
|
28
|
+
DateDefault[DateDefault["DATE_DEFAULT_THIS_YEAR"] = 13] = "DATE_DEFAULT_THIS_YEAR";
|
|
29
|
+
DateDefault[DateDefault["DATE_DEFAULT_LAST_YEAR"] = 14] = "DATE_DEFAULT_LAST_YEAR";
|
|
30
|
+
DateDefault[DateDefault["DATE_DEFAULT_NEXT_YEAR"] = 15] = "DATE_DEFAULT_NEXT_YEAR";
|
|
31
|
+
})(DateDefault || (DateDefault = {}));
|
|
32
|
+
var FilterGroupOperator;
|
|
33
|
+
(function (FilterGroupOperator) {
|
|
34
|
+
FilterGroupOperator[FilterGroupOperator["FILTER_GROUP_OPERATOR_INVALID"] = 0] = "FILTER_GROUP_OPERATOR_INVALID";
|
|
35
|
+
FilterGroupOperator[FilterGroupOperator["FILTER_GROUP_OPERATOR_AND"] = 1] = "FILTER_GROUP_OPERATOR_AND";
|
|
36
|
+
FilterGroupOperator[FilterGroupOperator["FILTER_GROUP_OPERATOR_OR"] = 2] = "FILTER_GROUP_OPERATOR_OR";
|
|
37
|
+
})(FilterGroupOperator || (FilterGroupOperator = {}));
|
|
38
|
+
var FilterOperator;
|
|
39
|
+
(function (FilterOperator) {
|
|
40
|
+
FilterOperator[FilterOperator["FILTER_OPERATOR_INVALID"] = 0] = "FILTER_OPERATOR_INVALID";
|
|
41
|
+
FilterOperator[FilterOperator["FILTER_OPERATOR_IS_EMPTY"] = 1] = "FILTER_OPERATOR_IS_EMPTY";
|
|
42
|
+
FilterOperator[FilterOperator["FILTER_OPERATOR_IS_NOT_EMPTY"] = 2] = "FILTER_OPERATOR_IS_NOT_EMPTY";
|
|
43
|
+
FilterOperator[FilterOperator["FILTER_OPERATOR_IS"] = 3] = "FILTER_OPERATOR_IS";
|
|
44
|
+
FilterOperator[FilterOperator["FILTER_OPERATOR_IS_NOT"] = 4] = "FILTER_OPERATOR_IS_NOT";
|
|
45
|
+
FilterOperator[FilterOperator["FILTER_OPERATOR_IS_ANY"] = 5] = "FILTER_OPERATOR_IS_ANY";
|
|
46
|
+
FilterOperator[FilterOperator["FILTER_OPERATOR_IS_NOT_ANY"] = 6] = "FILTER_OPERATOR_IS_NOT_ANY";
|
|
47
|
+
FilterOperator[FilterOperator["FILTER_OPERATOR_IS_ALL"] = 7] = "FILTER_OPERATOR_IS_ALL";
|
|
48
|
+
FilterOperator[FilterOperator["FILTER_OPERATOR_IS_NOT_ALL"] = 8] = "FILTER_OPERATOR_IS_NOT_ALL";
|
|
49
|
+
FilterOperator[FilterOperator["FILTER_OPERATOR_CONTAINS"] = 9] = "FILTER_OPERATOR_CONTAINS";
|
|
50
|
+
FilterOperator[FilterOperator["FILTER_OPERATOR_DOES_NOT_CONTAIN"] = 10] = "FILTER_OPERATOR_DOES_NOT_CONTAIN";
|
|
51
|
+
FilterOperator[FilterOperator["FILTER_OPERATOR_IS_EQUAL_TO"] = 11] = "FILTER_OPERATOR_IS_EQUAL_TO";
|
|
52
|
+
FilterOperator[FilterOperator["FILTER_OPERATOR_IS_NOT_EQUAL_TO"] = 12] = "FILTER_OPERATOR_IS_NOT_EQUAL_TO";
|
|
53
|
+
FilterOperator[FilterOperator["FILTER_OPERATOR_IS_GREATER_THAN"] = 13] = "FILTER_OPERATOR_IS_GREATER_THAN";
|
|
54
|
+
FilterOperator[FilterOperator["FILTER_OPERATOR_IS_GREATER_THAN_OR_EQUAL_TO"] = 14] = "FILTER_OPERATOR_IS_GREATER_THAN_OR_EQUAL_TO";
|
|
55
|
+
FilterOperator[FilterOperator["FILTER_OPERATOR_IS_LESS_THAN"] = 15] = "FILTER_OPERATOR_IS_LESS_THAN";
|
|
56
|
+
FilterOperator[FilterOperator["FILTER_OPERATOR_IS_LESS_THAN_OR_EQUAL_TO"] = 16] = "FILTER_OPERATOR_IS_LESS_THAN_OR_EQUAL_TO";
|
|
57
|
+
FilterOperator[FilterOperator["FILTER_OPERATOR_IS_BEFORE"] = 17] = "FILTER_OPERATOR_IS_BEFORE";
|
|
58
|
+
FilterOperator[FilterOperator["FILTER_OPERATOR_IS_BEFORE_OR_ON"] = 18] = "FILTER_OPERATOR_IS_BEFORE_OR_ON";
|
|
59
|
+
FilterOperator[FilterOperator["FILTER_OPERATOR_IS_AFTER"] = 19] = "FILTER_OPERATOR_IS_AFTER";
|
|
60
|
+
FilterOperator[FilterOperator["FILTER_OPERATOR_IS_AFTER_OR_ON"] = 20] = "FILTER_OPERATOR_IS_AFTER_OR_ON";
|
|
61
|
+
FilterOperator[FilterOperator["FILTER_OPERATOR_IS_BETWEEN"] = 21] = "FILTER_OPERATOR_IS_BETWEEN";
|
|
62
|
+
FilterOperator[FilterOperator["FILTER_OPERATOR_IS_NOT_BETWEEN"] = 22] = "FILTER_OPERATOR_IS_NOT_BETWEEN";
|
|
63
|
+
FilterOperator[FilterOperator["FILTER_OPERATOR_IS_VALID"] = 23] = "FILTER_OPERATOR_IS_VALID";
|
|
64
|
+
FilterOperator[FilterOperator["FILTER_OPERATOR_IS_NOT_VALID"] = 24] = "FILTER_OPERATOR_IS_NOT_VALID";
|
|
65
|
+
})(FilterOperator || (FilterOperator = {}));
|
|
66
|
+
var FilterType;
|
|
67
|
+
(function (FilterType) {
|
|
68
|
+
FilterType[FilterType["FILTER_TYPE_INVALID"] = 0] = "FILTER_TYPE_INVALID";
|
|
69
|
+
FilterType[FilterType["FILTER_TYPE_STRING"] = 1] = "FILTER_TYPE_STRING";
|
|
70
|
+
FilterType[FilterType["FILTER_TYPE_INTEGER"] = 2] = "FILTER_TYPE_INTEGER";
|
|
71
|
+
FilterType[FilterType["FILTER_TYPE_DATE"] = 3] = "FILTER_TYPE_DATE";
|
|
72
|
+
FilterType[FilterType["FILTER_TYPE_FLOAT"] = 4] = "FILTER_TYPE_FLOAT";
|
|
73
|
+
FilterType[FilterType["FILTER_TYPE_BOOLEAN"] = 5] = "FILTER_TYPE_BOOLEAN";
|
|
74
|
+
FilterType[FilterType["FILTER_TYPE_TAG"] = 6] = "FILTER_TYPE_TAG";
|
|
75
|
+
FilterType[FilterType["FILTER_TYPE_PHONE"] = 8] = "FILTER_TYPE_PHONE";
|
|
76
|
+
})(FilterType || (FilterType = {}));
|
|
77
|
+
|
|
7
78
|
// *********************************
|
|
8
79
|
// Code generated by sdkgen
|
|
9
80
|
// DO NOT EDIT!.
|
|
@@ -49,7 +120,7 @@ var SectionAction;
|
|
|
49
120
|
// Enums Index.
|
|
50
121
|
// *********************************
|
|
51
122
|
|
|
52
|
-
function enumStringToValue$
|
|
123
|
+
function enumStringToValue$2(enumRef, value) {
|
|
53
124
|
if (typeof value === 'number') {
|
|
54
125
|
return value;
|
|
55
126
|
}
|
|
@@ -111,6 +182,153 @@ class PagedResponseMetadata {
|
|
|
111
182
|
}
|
|
112
183
|
}
|
|
113
184
|
|
|
185
|
+
function enumStringToValue$1(enumRef, value) {
|
|
186
|
+
if (typeof value === 'number') {
|
|
187
|
+
return value;
|
|
188
|
+
}
|
|
189
|
+
return enumRef[value];
|
|
190
|
+
}
|
|
191
|
+
class Filter {
|
|
192
|
+
static fromProto(proto) {
|
|
193
|
+
let m = new Filter();
|
|
194
|
+
m = Object.assign(m, proto);
|
|
195
|
+
if (proto.operator) {
|
|
196
|
+
m.operator = enumStringToValue$1(FilterOperator, proto.operator);
|
|
197
|
+
}
|
|
198
|
+
if (proto.values) {
|
|
199
|
+
m.values = proto.values.map(FilterValue.fromProto);
|
|
200
|
+
}
|
|
201
|
+
return m;
|
|
202
|
+
}
|
|
203
|
+
constructor(kwargs) {
|
|
204
|
+
if (!kwargs) {
|
|
205
|
+
return;
|
|
206
|
+
}
|
|
207
|
+
Object.assign(this, kwargs);
|
|
208
|
+
}
|
|
209
|
+
toApiJson() {
|
|
210
|
+
const toReturn = {};
|
|
211
|
+
if (typeof this.fieldId !== 'undefined') {
|
|
212
|
+
toReturn['fieldId'] = this.fieldId;
|
|
213
|
+
}
|
|
214
|
+
if (typeof this.operator !== 'undefined') {
|
|
215
|
+
toReturn['operator'] = this.operator;
|
|
216
|
+
}
|
|
217
|
+
if (typeof this.values !== 'undefined' && this.values !== null) {
|
|
218
|
+
toReturn['values'] = 'toApiJson' in this.values ? this.values.toApiJson() : this.values;
|
|
219
|
+
}
|
|
220
|
+
if (typeof this.floatTolerance !== 'undefined') {
|
|
221
|
+
toReturn['floatTolerance'] = this.floatTolerance;
|
|
222
|
+
}
|
|
223
|
+
return toReturn;
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
class FilterGroup {
|
|
227
|
+
static fromProto(proto) {
|
|
228
|
+
let m = new FilterGroup();
|
|
229
|
+
m = Object.assign(m, proto);
|
|
230
|
+
if (proto.operator) {
|
|
231
|
+
m.operator = enumStringToValue$1(FilterGroupOperator, proto.operator);
|
|
232
|
+
}
|
|
233
|
+
if (proto.filters) {
|
|
234
|
+
m.filters = proto.filters.map(Filter.fromProto);
|
|
235
|
+
}
|
|
236
|
+
return m;
|
|
237
|
+
}
|
|
238
|
+
constructor(kwargs) {
|
|
239
|
+
if (!kwargs) {
|
|
240
|
+
return;
|
|
241
|
+
}
|
|
242
|
+
Object.assign(this, kwargs);
|
|
243
|
+
}
|
|
244
|
+
toApiJson() {
|
|
245
|
+
const toReturn = {};
|
|
246
|
+
if (typeof this.operator !== 'undefined') {
|
|
247
|
+
toReturn['operator'] = this.operator;
|
|
248
|
+
}
|
|
249
|
+
if (typeof this.filters !== 'undefined' && this.filters !== null) {
|
|
250
|
+
toReturn['filters'] = 'toApiJson' in this.filters ? this.filters.toApiJson() : this.filters;
|
|
251
|
+
}
|
|
252
|
+
return toReturn;
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
class Phone {
|
|
256
|
+
static fromProto(proto) {
|
|
257
|
+
let m = new Phone();
|
|
258
|
+
m = Object.assign(m, proto);
|
|
259
|
+
return m;
|
|
260
|
+
}
|
|
261
|
+
constructor(kwargs) {
|
|
262
|
+
if (!kwargs) {
|
|
263
|
+
return;
|
|
264
|
+
}
|
|
265
|
+
Object.assign(this, kwargs);
|
|
266
|
+
}
|
|
267
|
+
toApiJson() {
|
|
268
|
+
const toReturn = {};
|
|
269
|
+
if (typeof this.isoCountryCode !== 'undefined') {
|
|
270
|
+
toReturn['isoCountryCode'] = this.isoCountryCode;
|
|
271
|
+
}
|
|
272
|
+
if (typeof this.nationalNumber !== 'undefined') {
|
|
273
|
+
toReturn['nationalNumber'] = this.nationalNumber;
|
|
274
|
+
}
|
|
275
|
+
if (typeof this.extension !== 'undefined') {
|
|
276
|
+
toReturn['extension'] = this.extension;
|
|
277
|
+
}
|
|
278
|
+
return toReturn;
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
class FilterValue {
|
|
282
|
+
static fromProto(proto) {
|
|
283
|
+
let m = new FilterValue();
|
|
284
|
+
m = Object.assign(m, proto);
|
|
285
|
+
if (proto.integer) {
|
|
286
|
+
m.integer = parseInt(proto.integer, 10);
|
|
287
|
+
}
|
|
288
|
+
if (proto.date) {
|
|
289
|
+
m.date = new Date(proto.date);
|
|
290
|
+
}
|
|
291
|
+
if (proto.dateDefault) {
|
|
292
|
+
m.dateDefault = enumStringToValue$1(DateDefault, proto.dateDefault);
|
|
293
|
+
}
|
|
294
|
+
if (proto.phone) {
|
|
295
|
+
m.phone = Phone.fromProto(proto.phone);
|
|
296
|
+
}
|
|
297
|
+
return m;
|
|
298
|
+
}
|
|
299
|
+
constructor(kwargs) {
|
|
300
|
+
if (!kwargs) {
|
|
301
|
+
return;
|
|
302
|
+
}
|
|
303
|
+
Object.assign(this, kwargs);
|
|
304
|
+
}
|
|
305
|
+
toApiJson() {
|
|
306
|
+
const toReturn = {};
|
|
307
|
+
if (typeof this.boolean !== 'undefined') {
|
|
308
|
+
toReturn['boolean'] = this.boolean;
|
|
309
|
+
}
|
|
310
|
+
if (typeof this.integer !== 'undefined') {
|
|
311
|
+
toReturn['integer'] = this.integer;
|
|
312
|
+
}
|
|
313
|
+
if (typeof this.float !== 'undefined') {
|
|
314
|
+
toReturn['float'] = this.float;
|
|
315
|
+
}
|
|
316
|
+
if (typeof this.string !== 'undefined') {
|
|
317
|
+
toReturn['string'] = this.string;
|
|
318
|
+
}
|
|
319
|
+
if (typeof this.date !== 'undefined' && this.date !== null) {
|
|
320
|
+
toReturn['date'] = 'toApiJson' in this.date ? this.date.toApiJson() : this.date;
|
|
321
|
+
}
|
|
322
|
+
if (typeof this.dateDefault !== 'undefined') {
|
|
323
|
+
toReturn['dateDefault'] = this.dateDefault;
|
|
324
|
+
}
|
|
325
|
+
if (typeof this.phone !== 'undefined' && this.phone !== null) {
|
|
326
|
+
toReturn['phone'] = 'toApiJson' in this.phone ? this.phone.toApiJson() : this.phone;
|
|
327
|
+
}
|
|
328
|
+
return toReturn;
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
|
|
114
332
|
function enumStringToValue(enumRef, value) {
|
|
115
333
|
if (typeof value === 'number') {
|
|
116
334
|
return value;
|
|
@@ -440,6 +658,9 @@ class FormConfig {
|
|
|
440
658
|
if (proto.updated) {
|
|
441
659
|
m.updated = new Date(proto.updated);
|
|
442
660
|
}
|
|
661
|
+
if (proto.templateSetupSettings) {
|
|
662
|
+
m.templateSetupSettings = FormConfigTemplateSetupSettings.fromProto(proto.templateSetupSettings);
|
|
663
|
+
}
|
|
443
664
|
return m;
|
|
444
665
|
}
|
|
445
666
|
constructor(kwargs) {
|
|
@@ -495,6 +716,15 @@ class FormConfig {
|
|
|
495
716
|
if (typeof this.createInboxConversation !== 'undefined') {
|
|
496
717
|
toReturn['createInboxConversation'] = this.createInboxConversation;
|
|
497
718
|
}
|
|
719
|
+
if (typeof this.tags !== 'undefined') {
|
|
720
|
+
toReturn['tags'] = this.tags;
|
|
721
|
+
}
|
|
722
|
+
if (typeof this.description !== 'undefined') {
|
|
723
|
+
toReturn['description'] = this.description;
|
|
724
|
+
}
|
|
725
|
+
if (typeof this.templateSetupSettings !== 'undefined' && this.templateSetupSettings !== null) {
|
|
726
|
+
toReturn['templateSetupSettings'] = 'toApiJson' in this.templateSetupSettings ? this.templateSetupSettings.toApiJson() : this.templateSetupSettings;
|
|
727
|
+
}
|
|
498
728
|
return toReturn;
|
|
499
729
|
}
|
|
500
730
|
}
|
|
@@ -585,6 +815,64 @@ class FormSubmission {
|
|
|
585
815
|
return toReturn;
|
|
586
816
|
}
|
|
587
817
|
}
|
|
818
|
+
class GenerateCustomCSSRequest {
|
|
819
|
+
static fromProto(proto) {
|
|
820
|
+
let m = new GenerateCustomCSSRequest();
|
|
821
|
+
m = Object.assign(m, proto);
|
|
822
|
+
if (proto.currentCss) {
|
|
823
|
+
m.currentCss = Styles.fromProto(proto.currentCss);
|
|
824
|
+
}
|
|
825
|
+
return m;
|
|
826
|
+
}
|
|
827
|
+
constructor(kwargs) {
|
|
828
|
+
if (!kwargs) {
|
|
829
|
+
return;
|
|
830
|
+
}
|
|
831
|
+
Object.assign(this, kwargs);
|
|
832
|
+
}
|
|
833
|
+
toApiJson() {
|
|
834
|
+
const toReturn = {};
|
|
835
|
+
if (typeof this.namespace !== 'undefined') {
|
|
836
|
+
toReturn['namespace'] = this.namespace;
|
|
837
|
+
}
|
|
838
|
+
if (typeof this.currentCss !== 'undefined' && this.currentCss !== null) {
|
|
839
|
+
toReturn['currentCss'] = 'toApiJson' in this.currentCss ? this.currentCss.toApiJson() : this.currentCss;
|
|
840
|
+
}
|
|
841
|
+
if (typeof this.prompt !== 'undefined') {
|
|
842
|
+
toReturn['prompt'] = this.prompt;
|
|
843
|
+
}
|
|
844
|
+
if (typeof this.imageUrls !== 'undefined') {
|
|
845
|
+
toReturn['imageUrls'] = this.imageUrls;
|
|
846
|
+
}
|
|
847
|
+
if (typeof this.htmlTemplate !== 'undefined') {
|
|
848
|
+
toReturn['htmlTemplate'] = this.htmlTemplate;
|
|
849
|
+
}
|
|
850
|
+
return toReturn;
|
|
851
|
+
}
|
|
852
|
+
}
|
|
853
|
+
class GenerateCustomCSSResponse {
|
|
854
|
+
static fromProto(proto) {
|
|
855
|
+
let m = new GenerateCustomCSSResponse();
|
|
856
|
+
m = Object.assign(m, proto);
|
|
857
|
+
if (proto.generatedCss) {
|
|
858
|
+
m.generatedCss = Styles.fromProto(proto.generatedCss);
|
|
859
|
+
}
|
|
860
|
+
return m;
|
|
861
|
+
}
|
|
862
|
+
constructor(kwargs) {
|
|
863
|
+
if (!kwargs) {
|
|
864
|
+
return;
|
|
865
|
+
}
|
|
866
|
+
Object.assign(this, kwargs);
|
|
867
|
+
}
|
|
868
|
+
toApiJson() {
|
|
869
|
+
const toReturn = {};
|
|
870
|
+
if (typeof this.generatedCss !== 'undefined' && this.generatedCss !== null) {
|
|
871
|
+
toReturn['generatedCss'] = 'toApiJson' in this.generatedCss ? this.generatedCss.toApiJson() : this.generatedCss;
|
|
872
|
+
}
|
|
873
|
+
return toReturn;
|
|
874
|
+
}
|
|
875
|
+
}
|
|
588
876
|
class GetEmbedCodeRequest {
|
|
589
877
|
static fromProto(proto) {
|
|
590
878
|
let m = new GetEmbedCodeRequest();
|
|
@@ -865,6 +1153,9 @@ class ListFormsRequest {
|
|
|
865
1153
|
if (proto.pagingOptions) {
|
|
866
1154
|
m.pagingOptions = PagedRequestOptions.fromProto(proto.pagingOptions);
|
|
867
1155
|
}
|
|
1156
|
+
if (proto.filtersV2) {
|
|
1157
|
+
m.filtersV2 = FilterGroup.fromProto(proto.filtersV2);
|
|
1158
|
+
}
|
|
868
1159
|
return m;
|
|
869
1160
|
}
|
|
870
1161
|
constructor(kwargs) {
|
|
@@ -881,6 +1172,9 @@ class ListFormsRequest {
|
|
|
881
1172
|
if (typeof this.pagingOptions !== 'undefined' && this.pagingOptions !== null) {
|
|
882
1173
|
toReturn['pagingOptions'] = 'toApiJson' in this.pagingOptions ? this.pagingOptions.toApiJson() : this.pagingOptions;
|
|
883
1174
|
}
|
|
1175
|
+
if (typeof this.filtersV2 !== 'undefined' && this.filtersV2 !== null) {
|
|
1176
|
+
toReturn['filtersV2'] = 'toApiJson' in this.filtersV2 ? this.filtersV2.toApiJson() : this.filtersV2;
|
|
1177
|
+
}
|
|
884
1178
|
return toReturn;
|
|
885
1179
|
}
|
|
886
1180
|
}
|
|
@@ -945,6 +1239,9 @@ class ListMappedFieldSchemaRequest {
|
|
|
945
1239
|
if (typeof this.mappedToResource !== 'undefined') {
|
|
946
1240
|
toReturn['mappedToResource'] = this.mappedToResource;
|
|
947
1241
|
}
|
|
1242
|
+
if (typeof this.locale !== 'undefined') {
|
|
1243
|
+
toReturn['locale'] = this.locale;
|
|
1244
|
+
}
|
|
948
1245
|
return toReturn;
|
|
949
1246
|
}
|
|
950
1247
|
}
|
|
@@ -1468,6 +1765,26 @@ class SystemDefined {
|
|
|
1468
1765
|
return toReturn;
|
|
1469
1766
|
}
|
|
1470
1767
|
}
|
|
1768
|
+
class FormConfigTemplateSetupSettings {
|
|
1769
|
+
static fromProto(proto) {
|
|
1770
|
+
let m = new FormConfigTemplateSetupSettings();
|
|
1771
|
+
m = Object.assign(m, proto);
|
|
1772
|
+
return m;
|
|
1773
|
+
}
|
|
1774
|
+
constructor(kwargs) {
|
|
1775
|
+
if (!kwargs) {
|
|
1776
|
+
return;
|
|
1777
|
+
}
|
|
1778
|
+
Object.assign(this, kwargs);
|
|
1779
|
+
}
|
|
1780
|
+
toApiJson() {
|
|
1781
|
+
const toReturn = {};
|
|
1782
|
+
if (typeof this.automationIds !== 'undefined') {
|
|
1783
|
+
toReturn['automationIds'] = this.automationIds;
|
|
1784
|
+
}
|
|
1785
|
+
return toReturn;
|
|
1786
|
+
}
|
|
1787
|
+
}
|
|
1471
1788
|
class UnmappedField {
|
|
1472
1789
|
static fromProto(proto) {
|
|
1473
1790
|
let m = new UnmappedField();
|
|
@@ -1777,6 +2094,11 @@ class FormsApiService {
|
|
|
1777
2094
|
return this.http.post(this._host + "/forms.v1.Forms/RecoverForm", request.toApiJson(), this.apiOptions())
|
|
1778
2095
|
.pipe(map(resp => RecoverFormResponse.fromProto(resp)));
|
|
1779
2096
|
}
|
|
2097
|
+
generateCustomCss(r) {
|
|
2098
|
+
const request = (r.toApiJson) ? r : new GenerateCustomCSSRequest(r);
|
|
2099
|
+
return this.http.post(this._host + "/forms.v1.Forms/GenerateCustomCSS", request.toApiJson(), this.apiOptions())
|
|
2100
|
+
.pipe(map(resp => GenerateCustomCSSResponse.fromProto(resp)));
|
|
2101
|
+
}
|
|
1780
2102
|
}
|
|
1781
2103
|
FormsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FormsApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1782
2104
|
FormsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FormsApiService, providedIn: 'root' });
|
|
@@ -1830,5 +2152,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1830
2152
|
* Generated bundle index. Do not edit.
|
|
1831
2153
|
*/
|
|
1832
2154
|
|
|
1833
|
-
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, RecoverFormRequest, RecoverFormResponse, RenderFormRequest, RenderFormResponse, RenderFormResponseDefaultValues, RenderFormResponsePreFillByUrlQueryParameter, SectionAction, SectionConfig, StringList, Styles, SubmitConditionParameters, SystemDefined, UnmappedField, UpdateFormRequest, UpdateFormResponse, UserFormSubmission, ValidationError };
|
|
2155
|
+
export { ActionParameters, CreateFormRequest, CreateFormResponse, CreateFormSubmissionRequest, CreateFormSubmissionResponse, DateDefault, DeleteFormRequest, FieldOption, FieldType, FieldValue, Filter, FilterGroup, FilterGroupOperator, FilterOperator, FilterType, FilterValue, FormConfig, FormConfigField, FormConfigFieldSchema, FormConfigTemplateSetupSettings, FormSubmission, FormSubmissionApiService, FormSubmissionSubmittedValue, FormSubmissionsExportService, FormsApiService, GenerateCustomCSSRequest, GenerateCustomCSSResponse, 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, Phone, PreviewFormRequest, PreviewFormResponse, RecoverFormRequest, RecoverFormResponse, RenderFormRequest, RenderFormResponse, RenderFormResponseDefaultValues, RenderFormResponsePreFillByUrlQueryParameter, SectionAction, SectionConfig, StringList, Styles, SubmitConditionParameters, SystemDefined, UnmappedField, UpdateFormRequest, UpdateFormResponse, UserFormSubmission, ValidationError };
|
|
1834
2156
|
//# sourceMappingURL=vendasta-forms_microservice.mjs.map
|