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