@vendasta/forms_microservice 0.15.0 → 0.16.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 +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 +27 -1
- package/esm2020/lib/_internal/objects/index.mjs +2 -2
- package/fesm2015/vendasta-forms_microservice.mjs +28 -1
- package/fesm2015/vendasta-forms_microservice.mjs.map +1 -1
- package/fesm2020/vendasta-forms_microservice.mjs +28 -1
- 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 +4 -0
- package/lib/_internal/interfaces/index.d.ts +1 -1
- package/lib/_internal/objects/api.d.ts +7 -0
- package/lib/_internal/objects/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -25,6 +25,7 @@ var FieldType;
|
|
|
25
25
|
FieldType[FieldType["FIELD_TYPE_PHONE"] = 10] = "FIELD_TYPE_PHONE";
|
|
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
|
+
FieldType[FieldType["FIELD_TYPE_TAG"] = 13] = "FIELD_TYPE_TAG";
|
|
28
29
|
})(FieldType || (FieldType = {}));
|
|
29
30
|
var JsonSchemaLibrary;
|
|
30
31
|
(function (JsonSchemaLibrary) {
|
|
@@ -305,6 +306,9 @@ class FieldValue {
|
|
|
305
306
|
if (proto.integer) {
|
|
306
307
|
m.integer = parseInt(proto.integer, 10);
|
|
307
308
|
}
|
|
309
|
+
if (proto.stringValues) {
|
|
310
|
+
m.stringValues = StringList.fromProto(proto.stringValues);
|
|
311
|
+
}
|
|
308
312
|
return m;
|
|
309
313
|
}
|
|
310
314
|
constructor(kwargs) {
|
|
@@ -324,6 +328,9 @@ class FieldValue {
|
|
|
324
328
|
if (typeof this.string !== 'undefined') {
|
|
325
329
|
toReturn['string'] = this.string;
|
|
326
330
|
}
|
|
331
|
+
if (typeof this.stringValues !== 'undefined' && this.stringValues !== null) {
|
|
332
|
+
toReturn['stringValues'] = 'toApiJson' in this.stringValues ? this.stringValues.toApiJson() : this.stringValues;
|
|
333
|
+
}
|
|
327
334
|
if (typeof this.boolean !== 'undefined') {
|
|
328
335
|
toReturn['boolean'] = this.boolean;
|
|
329
336
|
}
|
|
@@ -1118,6 +1125,26 @@ class FormConfigFieldSchema {
|
|
|
1118
1125
|
return toReturn;
|
|
1119
1126
|
}
|
|
1120
1127
|
}
|
|
1128
|
+
class StringList {
|
|
1129
|
+
static fromProto(proto) {
|
|
1130
|
+
let m = new StringList();
|
|
1131
|
+
m = Object.assign(m, proto);
|
|
1132
|
+
return m;
|
|
1133
|
+
}
|
|
1134
|
+
constructor(kwargs) {
|
|
1135
|
+
if (!kwargs) {
|
|
1136
|
+
return;
|
|
1137
|
+
}
|
|
1138
|
+
Object.assign(this, kwargs);
|
|
1139
|
+
}
|
|
1140
|
+
toApiJson() {
|
|
1141
|
+
const toReturn = {};
|
|
1142
|
+
if (typeof this.values !== 'undefined') {
|
|
1143
|
+
toReturn['values'] = this.values;
|
|
1144
|
+
}
|
|
1145
|
+
return toReturn;
|
|
1146
|
+
}
|
|
1147
|
+
}
|
|
1121
1148
|
class Styles {
|
|
1122
1149
|
static fromProto(proto) {
|
|
1123
1150
|
let m = new Styles();
|
|
@@ -1583,5 +1610,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1583
1610
|
* Generated bundle index. Do not edit.
|
|
1584
1611
|
*/
|
|
1585
1612
|
|
|
1586
|
-
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, Styles, SystemDefined, UnmappedField, UpdateFormRequest, UpdateFormResponse, UserFormSubmission, ValidationError };
|
|
1613
|
+
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 };
|
|
1587
1614
|
//# sourceMappingURL=vendasta-forms_microservice.mjs.map
|