@vendasta/forms_microservice 0.19.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.
@@ -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$1(enumRef, value) {
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
  }
@@ -923,6 +1153,9 @@ class ListFormsRequest {
923
1153
  if (proto.pagingOptions) {
924
1154
  m.pagingOptions = PagedRequestOptions.fromProto(proto.pagingOptions);
925
1155
  }
1156
+ if (proto.filtersV2) {
1157
+ m.filtersV2 = FilterGroup.fromProto(proto.filtersV2);
1158
+ }
926
1159
  return m;
927
1160
  }
928
1161
  constructor(kwargs) {
@@ -939,6 +1172,9 @@ class ListFormsRequest {
939
1172
  if (typeof this.pagingOptions !== 'undefined' && this.pagingOptions !== null) {
940
1173
  toReturn['pagingOptions'] = 'toApiJson' in this.pagingOptions ? this.pagingOptions.toApiJson() : this.pagingOptions;
941
1174
  }
1175
+ if (typeof this.filtersV2 !== 'undefined' && this.filtersV2 !== null) {
1176
+ toReturn['filtersV2'] = 'toApiJson' in this.filtersV2 ? this.filtersV2.toApiJson() : this.filtersV2;
1177
+ }
942
1178
  return toReturn;
943
1179
  }
944
1180
  }
@@ -1529,6 +1765,26 @@ class SystemDefined {
1529
1765
  return toReturn;
1530
1766
  }
1531
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
+ }
1532
1788
  class UnmappedField {
1533
1789
  static fromProto(proto) {
1534
1790
  let m = new UnmappedField();
@@ -1896,5 +2152,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
1896
2152
  * Generated bundle index. Do not edit.
1897
2153
  */
1898
2154
 
1899
- export { ActionParameters, CreateFormRequest, CreateFormResponse, CreateFormSubmissionRequest, CreateFormSubmissionResponse, DeleteFormRequest, FieldOption, FieldType, FieldValue, FormConfig, FormConfigField, FormConfigFieldSchema, 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, 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 };
1900
2156
  //# sourceMappingURL=vendasta-forms_microservice.mjs.map