@vendasta/forms_microservice 0.13.0 → 0.15.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/form-submission.api.service.mjs +7 -8
- package/esm2020/lib/_internal/forms.api.service.mjs +7 -8
- package/esm2020/lib/_internal/interfaces/api.interface.mjs +1 -1
- package/esm2020/lib/_internal/objects/api.mjs +4 -1
- package/fesm2015/vendasta-forms_microservice.mjs +16 -12
- package/fesm2015/vendasta-forms_microservice.mjs.map +1 -1
- package/fesm2020/vendasta-forms_microservice.mjs +16 -12
- package/fesm2020/vendasta-forms_microservice.mjs.map +1 -1
- package/lib/_internal/enums/api.enum.d.ts +2 -1
- package/lib/_internal/form-submission.api.service.d.ts +2 -5
- package/lib/_internal/forms.api.service.d.ts +3 -5
- package/lib/_internal/interfaces/api.interface.d.ts +1 -0
- package/lib/_internal/objects/api.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Injectable } from '@angular/core';
|
|
2
|
+
import { Injectable, inject } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common/http';
|
|
4
|
-
import { HttpHeaders } from '@angular/common/http';
|
|
4
|
+
import { HttpClient, HttpHeaders } from '@angular/common/http';
|
|
5
5
|
import { map } from 'rxjs/operators';
|
|
6
6
|
|
|
7
7
|
// *********************************
|
|
@@ -24,6 +24,7 @@ var FieldType;
|
|
|
24
24
|
FieldType[FieldType["FIELD_TYPE_EMAIL"] = 9] = "FIELD_TYPE_EMAIL";
|
|
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
|
+
FieldType[FieldType["FIELD_TYPE_TEXT_AREA"] = 12] = "FIELD_TYPE_TEXT_AREA";
|
|
27
28
|
})(FieldType || (FieldType = {}));
|
|
28
29
|
var JsonSchemaLibrary;
|
|
29
30
|
(function (JsonSchemaLibrary) {
|
|
@@ -268,6 +269,9 @@ class FormConfigField {
|
|
|
268
269
|
if (typeof this.placeholder !== 'undefined') {
|
|
269
270
|
toReturn['placeholder'] = this.placeholder;
|
|
270
271
|
}
|
|
272
|
+
if (typeof this.defaultPhoneIsoCountryCode !== 'undefined') {
|
|
273
|
+
toReturn['defaultPhoneIsoCountryCode'] = this.defaultPhoneIsoCountryCode;
|
|
274
|
+
}
|
|
271
275
|
return toReturn;
|
|
272
276
|
}
|
|
273
277
|
}
|
|
@@ -1417,9 +1421,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1417
1421
|
// API Service.
|
|
1418
1422
|
// *********************************
|
|
1419
1423
|
class FormSubmissionApiService {
|
|
1420
|
-
constructor(
|
|
1421
|
-
this.
|
|
1422
|
-
this.
|
|
1424
|
+
constructor() {
|
|
1425
|
+
this.hostService = inject(HostService);
|
|
1426
|
+
this.http = inject(HttpClient);
|
|
1423
1427
|
this._host = this.hostService.hostWithScheme;
|
|
1424
1428
|
}
|
|
1425
1429
|
apiOptions() {
|
|
@@ -1446,12 +1450,12 @@ class FormSubmissionApiService {
|
|
|
1446
1450
|
.pipe(map(resp => GetMultiFormSubmissionResponse.fromProto(resp)));
|
|
1447
1451
|
}
|
|
1448
1452
|
}
|
|
1449
|
-
FormSubmissionApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FormSubmissionApiService, deps: [
|
|
1453
|
+
FormSubmissionApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FormSubmissionApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1450
1454
|
FormSubmissionApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FormSubmissionApiService, providedIn: 'root' });
|
|
1451
1455
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FormSubmissionApiService, decorators: [{
|
|
1452
1456
|
type: Injectable,
|
|
1453
1457
|
args: [{ providedIn: 'root' }]
|
|
1454
|
-
}]
|
|
1458
|
+
}] });
|
|
1455
1459
|
|
|
1456
1460
|
// *********************************
|
|
1457
1461
|
// Code generated by sdkgen
|
|
@@ -1460,9 +1464,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1460
1464
|
// API Service.
|
|
1461
1465
|
// *********************************
|
|
1462
1466
|
class FormsApiService {
|
|
1463
|
-
constructor(
|
|
1464
|
-
this.
|
|
1465
|
-
this.
|
|
1467
|
+
constructor() {
|
|
1468
|
+
this.hostService = inject(HostService);
|
|
1469
|
+
this.http = inject(HttpClient);
|
|
1466
1470
|
this._host = this.hostService.hostWithScheme;
|
|
1467
1471
|
}
|
|
1468
1472
|
apiOptions() {
|
|
@@ -1528,12 +1532,12 @@ class FormsApiService {
|
|
|
1528
1532
|
.pipe(map(resp => ListMappedFieldSchemaResponse.fromProto(resp)));
|
|
1529
1533
|
}
|
|
1530
1534
|
}
|
|
1531
|
-
FormsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FormsApiService, deps: [
|
|
1535
|
+
FormsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FormsApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1532
1536
|
FormsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FormsApiService, providedIn: 'root' });
|
|
1533
1537
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FormsApiService, decorators: [{
|
|
1534
1538
|
type: Injectable,
|
|
1535
1539
|
args: [{ providedIn: 'root' }]
|
|
1536
|
-
}]
|
|
1540
|
+
}] });
|
|
1537
1541
|
|
|
1538
1542
|
// *********************************
|
|
1539
1543
|
// Code generated by sdkgen
|