@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
|
}
|
|
@@ -1416,9 +1420,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1416
1420
|
// API Service.
|
|
1417
1421
|
// *********************************
|
|
1418
1422
|
class FormSubmissionApiService {
|
|
1419
|
-
constructor(
|
|
1420
|
-
this.
|
|
1421
|
-
this.
|
|
1423
|
+
constructor() {
|
|
1424
|
+
this.hostService = inject(HostService);
|
|
1425
|
+
this.http = inject(HttpClient);
|
|
1422
1426
|
this._host = this.hostService.hostWithScheme;
|
|
1423
1427
|
}
|
|
1424
1428
|
apiOptions() {
|
|
@@ -1445,12 +1449,12 @@ class FormSubmissionApiService {
|
|
|
1445
1449
|
.pipe(map(resp => GetMultiFormSubmissionResponse.fromProto(resp)));
|
|
1446
1450
|
}
|
|
1447
1451
|
}
|
|
1448
|
-
FormSubmissionApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FormSubmissionApiService, deps: [
|
|
1452
|
+
FormSubmissionApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FormSubmissionApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1449
1453
|
FormSubmissionApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FormSubmissionApiService, providedIn: 'root' });
|
|
1450
1454
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FormSubmissionApiService, decorators: [{
|
|
1451
1455
|
type: Injectable,
|
|
1452
1456
|
args: [{ providedIn: 'root' }]
|
|
1453
|
-
}]
|
|
1457
|
+
}] });
|
|
1454
1458
|
|
|
1455
1459
|
// *********************************
|
|
1456
1460
|
// Code generated by sdkgen
|
|
@@ -1459,9 +1463,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1459
1463
|
// API Service.
|
|
1460
1464
|
// *********************************
|
|
1461
1465
|
class FormsApiService {
|
|
1462
|
-
constructor(
|
|
1463
|
-
this.
|
|
1464
|
-
this.
|
|
1466
|
+
constructor() {
|
|
1467
|
+
this.hostService = inject(HostService);
|
|
1468
|
+
this.http = inject(HttpClient);
|
|
1465
1469
|
this._host = this.hostService.hostWithScheme;
|
|
1466
1470
|
}
|
|
1467
1471
|
apiOptions() {
|
|
@@ -1527,12 +1531,12 @@ class FormsApiService {
|
|
|
1527
1531
|
.pipe(map(resp => ListMappedFieldSchemaResponse.fromProto(resp)));
|
|
1528
1532
|
}
|
|
1529
1533
|
}
|
|
1530
|
-
FormsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FormsApiService, deps: [
|
|
1534
|
+
FormsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FormsApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1531
1535
|
FormsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FormsApiService, providedIn: 'root' });
|
|
1532
1536
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FormsApiService, decorators: [{
|
|
1533
1537
|
type: Injectable,
|
|
1534
1538
|
args: [{ providedIn: 'root' }]
|
|
1535
|
-
}]
|
|
1539
|
+
}] });
|
|
1536
1540
|
|
|
1537
1541
|
// *********************************
|
|
1538
1542
|
// Code generated by sdkgen
|