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