@vendasta/forms_microservice 0.12.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/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) {
|
|
@@ -414,6 +415,9 @@ class FormConfig {
|
|
|
414
415
|
if (typeof this.submitButtonLabel !== 'undefined') {
|
|
415
416
|
toReturn['submitButtonLabel'] = this.submitButtonLabel;
|
|
416
417
|
}
|
|
418
|
+
if (typeof this.createInboxConversation !== 'undefined') {
|
|
419
|
+
toReturn['createInboxConversation'] = this.createInboxConversation;
|
|
420
|
+
}
|
|
417
421
|
return toReturn;
|
|
418
422
|
}
|
|
419
423
|
}
|
|
@@ -1414,9 +1418,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1414
1418
|
// API Service.
|
|
1415
1419
|
// *********************************
|
|
1416
1420
|
class FormSubmissionApiService {
|
|
1417
|
-
constructor(
|
|
1418
|
-
this.
|
|
1419
|
-
this.
|
|
1421
|
+
constructor() {
|
|
1422
|
+
this.hostService = inject(HostService);
|
|
1423
|
+
this.http = inject(HttpClient);
|
|
1420
1424
|
this._host = this.hostService.hostWithScheme;
|
|
1421
1425
|
}
|
|
1422
1426
|
apiOptions() {
|
|
@@ -1443,12 +1447,12 @@ class FormSubmissionApiService {
|
|
|
1443
1447
|
.pipe(map(resp => GetMultiFormSubmissionResponse.fromProto(resp)));
|
|
1444
1448
|
}
|
|
1445
1449
|
}
|
|
1446
|
-
FormSubmissionApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FormSubmissionApiService, deps: [
|
|
1450
|
+
FormSubmissionApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FormSubmissionApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1447
1451
|
FormSubmissionApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FormSubmissionApiService, providedIn: 'root' });
|
|
1448
1452
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FormSubmissionApiService, decorators: [{
|
|
1449
1453
|
type: Injectable,
|
|
1450
1454
|
args: [{ providedIn: 'root' }]
|
|
1451
|
-
}]
|
|
1455
|
+
}] });
|
|
1452
1456
|
|
|
1453
1457
|
// *********************************
|
|
1454
1458
|
// Code generated by sdkgen
|
|
@@ -1457,9 +1461,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1457
1461
|
// API Service.
|
|
1458
1462
|
// *********************************
|
|
1459
1463
|
class FormsApiService {
|
|
1460
|
-
constructor(
|
|
1461
|
-
this.
|
|
1462
|
-
this.
|
|
1464
|
+
constructor() {
|
|
1465
|
+
this.hostService = inject(HostService);
|
|
1466
|
+
this.http = inject(HttpClient);
|
|
1463
1467
|
this._host = this.hostService.hostWithScheme;
|
|
1464
1468
|
}
|
|
1465
1469
|
apiOptions() {
|
|
@@ -1525,12 +1529,12 @@ class FormsApiService {
|
|
|
1525
1529
|
.pipe(map(resp => ListMappedFieldSchemaResponse.fromProto(resp)));
|
|
1526
1530
|
}
|
|
1527
1531
|
}
|
|
1528
|
-
FormsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FormsApiService, deps: [
|
|
1532
|
+
FormsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FormsApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1529
1533
|
FormsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FormsApiService, providedIn: 'root' });
|
|
1530
1534
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FormsApiService, decorators: [{
|
|
1531
1535
|
type: Injectable,
|
|
1532
1536
|
args: [{ providedIn: 'root' }]
|
|
1533
|
-
}]
|
|
1537
|
+
}] });
|
|
1534
1538
|
|
|
1535
1539
|
// *********************************
|
|
1536
1540
|
// Code generated by sdkgen
|