@vendasta/forms_microservice 0.0.1 → 0.0.2

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.
@@ -4,6 +4,62 @@ import * as i1 from '@angular/common/http';
4
4
  import { HttpHeaders } from '@angular/common/http';
5
5
  import { map } from 'rxjs/operators';
6
6
 
7
+ class PagedRequestOptions {
8
+ constructor(kwargs) {
9
+ if (!kwargs) {
10
+ return;
11
+ }
12
+ Object.assign(this, kwargs);
13
+ }
14
+ static fromProto(proto) {
15
+ let m = new PagedRequestOptions();
16
+ m = Object.assign(m, proto);
17
+ if (proto.pageSize) {
18
+ m.pageSize = parseInt(proto.pageSize, 10);
19
+ }
20
+ return m;
21
+ }
22
+ toApiJson() {
23
+ const toReturn = {};
24
+ if (typeof this.cursor !== 'undefined') {
25
+ toReturn['cursor'] = this.cursor;
26
+ }
27
+ if (typeof this.pageSize !== 'undefined') {
28
+ toReturn['pageSize'] = this.pageSize;
29
+ }
30
+ return toReturn;
31
+ }
32
+ }
33
+ class PagedResponseMetadata {
34
+ constructor(kwargs) {
35
+ if (!kwargs) {
36
+ return;
37
+ }
38
+ Object.assign(this, kwargs);
39
+ }
40
+ static fromProto(proto) {
41
+ let m = new PagedResponseMetadata();
42
+ m = Object.assign(m, proto);
43
+ if (proto.totalResults) {
44
+ m.totalResults = parseInt(proto.totalResults, 10);
45
+ }
46
+ return m;
47
+ }
48
+ toApiJson() {
49
+ const toReturn = {};
50
+ if (typeof this.nextCursor !== 'undefined') {
51
+ toReturn['nextCursor'] = this.nextCursor;
52
+ }
53
+ if (typeof this.hasMore !== 'undefined') {
54
+ toReturn['hasMore'] = this.hasMore;
55
+ }
56
+ if (typeof this.totalResults !== 'undefined') {
57
+ toReturn['totalResults'] = this.totalResults;
58
+ }
59
+ return toReturn;
60
+ }
61
+ }
62
+
7
63
  class CreateFormRequest {
8
64
  constructor(kwargs) {
9
65
  if (!kwargs) {
@@ -50,6 +106,49 @@ class CreateFormResponse {
50
106
  return toReturn;
51
107
  }
52
108
  }
109
+ class CreateFormSubmissionRequest {
110
+ constructor(kwargs) {
111
+ if (!kwargs) {
112
+ return;
113
+ }
114
+ Object.assign(this, kwargs);
115
+ }
116
+ static fromProto(proto) {
117
+ let m = new CreateFormSubmissionRequest();
118
+ m = Object.assign(m, proto);
119
+ if (proto.submission) {
120
+ m.submission = FormSubmission.fromProto(proto.submission);
121
+ }
122
+ return m;
123
+ }
124
+ toApiJson() {
125
+ const toReturn = {};
126
+ if (typeof this.submission !== 'undefined' && this.submission !== null) {
127
+ toReturn['submission'] = 'toApiJson' in this.submission ? this.submission.toApiJson() : this.submission;
128
+ }
129
+ return toReturn;
130
+ }
131
+ }
132
+ class ListFormsRequestFilters {
133
+ constructor(kwargs) {
134
+ if (!kwargs) {
135
+ return;
136
+ }
137
+ Object.assign(this, kwargs);
138
+ }
139
+ static fromProto(proto) {
140
+ let m = new ListFormsRequestFilters();
141
+ m = Object.assign(m, proto);
142
+ return m;
143
+ }
144
+ toApiJson() {
145
+ const toReturn = {};
146
+ if (typeof this.partnerId !== 'undefined') {
147
+ toReturn['partnerId'] = this.partnerId;
148
+ }
149
+ return toReturn;
150
+ }
151
+ }
53
152
  class FormConfig {
54
153
  constructor(kwargs) {
55
154
  if (!kwargs) {
@@ -63,6 +162,12 @@ class FormConfig {
63
162
  if (proto.styles) {
64
163
  m.styles = Styles.fromProto(proto.styles);
65
164
  }
165
+ if (proto.created) {
166
+ m.created = new Date(proto.created);
167
+ }
168
+ if (proto.updated) {
169
+ m.updated = new Date(proto.updated);
170
+ }
66
171
  return m;
67
172
  }
68
173
  toApiJson() {
@@ -88,6 +193,64 @@ class FormConfig {
88
193
  if (typeof this.namespace !== 'undefined') {
89
194
  toReturn['namespace'] = this.namespace;
90
195
  }
196
+ if (typeof this.name !== 'undefined') {
197
+ toReturn['name'] = this.name;
198
+ }
199
+ if (typeof this.created !== 'undefined' && this.created !== null) {
200
+ toReturn['created'] = 'toApiJson' in this.created ? this.created.toApiJson() : this.created;
201
+ }
202
+ if (typeof this.updated !== 'undefined' && this.updated !== null) {
203
+ toReturn['updated'] = 'toApiJson' in this.updated ? this.updated.toApiJson() : this.updated;
204
+ }
205
+ return toReturn;
206
+ }
207
+ }
208
+ class ListFormsResponseFormRow {
209
+ constructor(kwargs) {
210
+ if (!kwargs) {
211
+ return;
212
+ }
213
+ Object.assign(this, kwargs);
214
+ }
215
+ static fromProto(proto) {
216
+ let m = new ListFormsResponseFormRow();
217
+ m = Object.assign(m, proto);
218
+ if (proto.form) {
219
+ m.form = FormConfig.fromProto(proto.form);
220
+ }
221
+ return m;
222
+ }
223
+ toApiJson() {
224
+ const toReturn = {};
225
+ if (typeof this.form !== 'undefined' && this.form !== null) {
226
+ toReturn['form'] = 'toApiJson' in this.form ? this.form.toApiJson() : this.form;
227
+ }
228
+ return toReturn;
229
+ }
230
+ }
231
+ class FormSubmission {
232
+ constructor(kwargs) {
233
+ if (!kwargs) {
234
+ return;
235
+ }
236
+ Object.assign(this, kwargs);
237
+ }
238
+ static fromProto(proto) {
239
+ let m = new FormSubmission();
240
+ m = Object.assign(m, proto);
241
+ return m;
242
+ }
243
+ toApiJson() {
244
+ const toReturn = {};
245
+ if (typeof this.formId !== 'undefined') {
246
+ toReturn['formId'] = this.formId;
247
+ }
248
+ if (typeof this.version !== 'undefined') {
249
+ toReturn['version'] = this.version;
250
+ }
251
+ if (typeof this.values !== 'undefined') {
252
+ toReturn['values'] = this.values;
253
+ }
91
254
  return toReturn;
92
255
  }
93
256
  }
@@ -174,6 +337,64 @@ class GetFormResponse {
174
337
  return toReturn;
175
338
  }
176
339
  }
340
+ class ListFormsRequest {
341
+ constructor(kwargs) {
342
+ if (!kwargs) {
343
+ return;
344
+ }
345
+ Object.assign(this, kwargs);
346
+ }
347
+ static fromProto(proto) {
348
+ let m = new ListFormsRequest();
349
+ m = Object.assign(m, proto);
350
+ if (proto.filters) {
351
+ m.filters = ListFormsRequestFilters.fromProto(proto.filters);
352
+ }
353
+ if (proto.pagingOptions) {
354
+ m.pagingOptions = PagedRequestOptions.fromProto(proto.pagingOptions);
355
+ }
356
+ return m;
357
+ }
358
+ toApiJson() {
359
+ const toReturn = {};
360
+ if (typeof this.filters !== 'undefined' && this.filters !== null) {
361
+ toReturn['filters'] = 'toApiJson' in this.filters ? this.filters.toApiJson() : this.filters;
362
+ }
363
+ if (typeof this.pagingOptions !== 'undefined' && this.pagingOptions !== null) {
364
+ toReturn['pagingOptions'] = 'toApiJson' in this.pagingOptions ? this.pagingOptions.toApiJson() : this.pagingOptions;
365
+ }
366
+ return toReturn;
367
+ }
368
+ }
369
+ class ListFormsResponse {
370
+ constructor(kwargs) {
371
+ if (!kwargs) {
372
+ return;
373
+ }
374
+ Object.assign(this, kwargs);
375
+ }
376
+ static fromProto(proto) {
377
+ let m = new ListFormsResponse();
378
+ m = Object.assign(m, proto);
379
+ if (proto.formRows) {
380
+ m.formRows = proto.formRows.map(ListFormsResponseFormRow.fromProto);
381
+ }
382
+ if (proto.pagingMetadata) {
383
+ m.pagingMetadata = PagedResponseMetadata.fromProto(proto.pagingMetadata);
384
+ }
385
+ return m;
386
+ }
387
+ toApiJson() {
388
+ const toReturn = {};
389
+ if (typeof this.formRows !== 'undefined' && this.formRows !== null) {
390
+ toReturn['formRows'] = 'toApiJson' in this.formRows ? this.formRows.toApiJson() : this.formRows;
391
+ }
392
+ if (typeof this.pagingMetadata !== 'undefined' && this.pagingMetadata !== null) {
393
+ toReturn['pagingMetadata'] = 'toApiJson' in this.pagingMetadata ? this.pagingMetadata.toApiJson() : this.pagingMetadata;
394
+ }
395
+ return toReturn;
396
+ }
397
+ }
177
398
  class Styles {
178
399
  constructor(kwargs) {
179
400
  if (!kwargs) {
@@ -284,6 +505,33 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImpor
284
505
  args: [{ providedIn: 'root' }]
285
506
  }] });
286
507
 
508
+ // *********************************
509
+ class FormSubmissionApiService {
510
+ constructor(http, hostService) {
511
+ this.http = http;
512
+ this.hostService = hostService;
513
+ this._host = this.hostService.hostWithScheme;
514
+ }
515
+ apiOptions() {
516
+ return {
517
+ headers: new HttpHeaders({
518
+ 'Content-Type': 'application/json'
519
+ }),
520
+ withCredentials: true
521
+ };
522
+ }
523
+ createFormSubmission(r) {
524
+ const request = (r.toApiJson) ? r : new CreateFormSubmissionRequest(r);
525
+ return this.http.post(this._host + "/forms.v1.FormSubmissionService/CreateFormSubmission", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
526
+ }
527
+ }
528
+ FormSubmissionApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: FormSubmissionApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
529
+ FormSubmissionApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: FormSubmissionApiService, providedIn: 'root' });
530
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: FormSubmissionApiService, decorators: [{
531
+ type: Injectable,
532
+ args: [{ providedIn: 'root' }]
533
+ }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
534
+
287
535
  // *********************************
288
536
  class FormsApiService {
289
537
  constructor(http, hostService) {
@@ -319,6 +567,11 @@ class FormsApiService {
319
567
  return this.http.post(this._host + "/forms.v1.Forms/UpdateForm", request.toApiJson(), this.apiOptions())
320
568
  .pipe(map(resp => UpdateFormResponse.fromProto(resp)));
321
569
  }
570
+ listForms(r) {
571
+ const request = (r.toApiJson) ? r : new ListFormsRequest(r);
572
+ return this.http.post(this._host + "/forms.v1.Forms/ListForms", request.toApiJson(), this.apiOptions())
573
+ .pipe(map(resp => ListFormsResponse.fromProto(resp)));
574
+ }
322
575
  }
323
576
  FormsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: FormsApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
324
577
  FormsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: FormsApiService, providedIn: 'root' });
@@ -335,5 +588,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImpor
335
588
  * Generated bundle index. Do not edit.
336
589
  */
337
590
 
338
- export { CreateFormRequest, CreateFormResponse, FormConfig, FormsApiService, GetEmbedCodeRequest, GetEmbedCodeResponse, GetFormRequest, GetFormResponse, HostService, Styles, UpdateFormRequest, UpdateFormResponse };
591
+ export { CreateFormRequest, CreateFormResponse, CreateFormSubmissionRequest, FormConfig, FormSubmission, FormSubmissionApiService, FormsApiService, GetEmbedCodeRequest, GetEmbedCodeResponse, GetFormRequest, GetFormResponse, HostService, ListFormsRequest, ListFormsRequestFilters, ListFormsResponse, ListFormsResponseFormRow, PagedRequestOptions, PagedResponseMetadata, Styles, UpdateFormRequest, UpdateFormResponse };
339
592
  //# sourceMappingURL=vendasta-forms_microservice.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"vendasta-forms_microservice.mjs","sources":["../../../forms_sdk/src/lib/_internal/objects/api.ts","../../../forms_sdk/src/lib/_internal/objects/index.ts","../../../forms_sdk/src/lib/_generated/host.service.ts","../../../forms_sdk/src/lib/_internal/forms.api.service.ts","../../../forms_sdk/src/lib/_internal/index.ts","../../../forms_sdk/src/lib/index.ts","../../../forms_sdk/src/vendasta-forms_microservice.ts"],"sourcesContent":["// *********************************\n// Code generated by sdkgen\n// DO NOT EDIT!.\n//\n// Objects.\n// *********************************\nimport * as i from '../interfaces';\n\n\nexport class CreateFormRequest implements i.CreateFormRequestInterface {\n formConfig: FormConfig;\n\n static fromProto(proto: any): CreateFormRequest {\n let m = new CreateFormRequest();\n m = Object.assign(m, proto);\n if (proto.formConfig) {m.formConfig = FormConfig.fromProto(proto.formConfig);}\n return m;\n }\n\n constructor(kwargs?: i.CreateFormRequestInterface) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n\n toApiJson(): object {\n const toReturn: {\n [key: string]: any;\n } = {};\n \n if (typeof this.formConfig !== 'undefined' && this.formConfig !== null) {toReturn['formConfig'] = 'toApiJson' in this.formConfig ? (this.formConfig as any).toApiJson() : this.formConfig;}\n return toReturn;\n }\n}\n\nexport class CreateFormResponse implements i.CreateFormResponseInterface {\n formId: string;\n version: string;\n\n static fromProto(proto: any): CreateFormResponse {\n let m = new CreateFormResponse();\n m = Object.assign(m, proto);\n return m;\n }\n\n constructor(kwargs?: i.CreateFormResponseInterface) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n\n toApiJson(): object {\n const toReturn: {\n [key: string]: any;\n } = {};\n \n if (typeof this.formId !== 'undefined') {toReturn['formId'] = this.formId;}\n if (typeof this.version !== 'undefined') {toReturn['version'] = this.version;}\n return toReturn;\n }\n}\n\nexport class FormConfig implements i.FormConfigInterface {\n formId: string;\n version: string;\n styles: Styles;\n schema: string;\n uiSchema: string;\n formType: string;\n namespace: string;\n\n static fromProto(proto: any): FormConfig {\n let m = new FormConfig();\n m = Object.assign(m, proto);\n if (proto.styles) {m.styles = Styles.fromProto(proto.styles);}\n return m;\n }\n\n constructor(kwargs?: i.FormConfigInterface) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n\n toApiJson(): object {\n const toReturn: {\n [key: string]: any;\n } = {};\n \n if (typeof this.formId !== 'undefined') {toReturn['formId'] = this.formId;}\n if (typeof this.version !== 'undefined') {toReturn['version'] = this.version;}\n if (typeof this.styles !== 'undefined' && this.styles !== null) {toReturn['styles'] = 'toApiJson' in this.styles ? (this.styles as any).toApiJson() : this.styles;}\n if (typeof this.schema !== 'undefined') {toReturn['schema'] = this.schema;}\n if (typeof this.uiSchema !== 'undefined') {toReturn['uiSchema'] = this.uiSchema;}\n if (typeof this.formType !== 'undefined') {toReturn['formType'] = this.formType;}\n if (typeof this.namespace !== 'undefined') {toReturn['namespace'] = this.namespace;}\n return toReturn;\n }\n}\n\nexport class GetEmbedCodeRequest implements i.GetEmbedCodeRequestInterface {\n formId: string;\n\n static fromProto(proto: any): GetEmbedCodeRequest {\n let m = new GetEmbedCodeRequest();\n m = Object.assign(m, proto);\n return m;\n }\n\n constructor(kwargs?: i.GetEmbedCodeRequestInterface) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n\n toApiJson(): object {\n const toReturn: {\n [key: string]: any;\n } = {};\n \n if (typeof this.formId !== 'undefined') {toReturn['formId'] = this.formId;}\n return toReturn;\n }\n}\n\nexport class GetEmbedCodeResponse implements i.GetEmbedCodeResponseInterface {\n embedCode: string;\n\n static fromProto(proto: any): GetEmbedCodeResponse {\n let m = new GetEmbedCodeResponse();\n m = Object.assign(m, proto);\n return m;\n }\n\n constructor(kwargs?: i.GetEmbedCodeResponseInterface) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n\n toApiJson(): object {\n const toReturn: {\n [key: string]: any;\n } = {};\n \n if (typeof this.embedCode !== 'undefined') {toReturn['embedCode'] = this.embedCode;}\n return toReturn;\n }\n}\n\nexport class GetFormRequest implements i.GetFormRequestInterface {\n formId: string;\n\n static fromProto(proto: any): GetFormRequest {\n let m = new GetFormRequest();\n m = Object.assign(m, proto);\n return m;\n }\n\n constructor(kwargs?: i.GetFormRequestInterface) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n\n toApiJson(): object {\n const toReturn: {\n [key: string]: any;\n } = {};\n \n if (typeof this.formId !== 'undefined') {toReturn['formId'] = this.formId;}\n return toReturn;\n }\n}\n\nexport class GetFormResponse implements i.GetFormResponseInterface {\n formConfig: FormConfig;\n\n static fromProto(proto: any): GetFormResponse {\n let m = new GetFormResponse();\n m = Object.assign(m, proto);\n if (proto.formConfig) {m.formConfig = FormConfig.fromProto(proto.formConfig);}\n return m;\n }\n\n constructor(kwargs?: i.GetFormResponseInterface) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n\n toApiJson(): object {\n const toReturn: {\n [key: string]: any;\n } = {};\n \n if (typeof this.formConfig !== 'undefined' && this.formConfig !== null) {toReturn['formConfig'] = 'toApiJson' in this.formConfig ? (this.formConfig as any).toApiJson() : this.formConfig;}\n return toReturn;\n }\n}\n\nexport class Styles implements i.StylesInterface {\n width: string;\n backgroundColor: string;\n borderColor: string;\n borderRadius: string;\n borderWidth: string;\n borderStyle: string;\n padding: string;\n primaryFontColor: string;\n\n static fromProto(proto: any): Styles {\n let m = new Styles();\n m = Object.assign(m, proto);\n return m;\n }\n\n constructor(kwargs?: i.StylesInterface) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n\n toApiJson(): object {\n const toReturn: {\n [key: string]: any;\n } = {};\n \n if (typeof this.width !== 'undefined') {toReturn['width'] = this.width;}\n if (typeof this.backgroundColor !== 'undefined') {toReturn['backgroundColor'] = this.backgroundColor;}\n if (typeof this.borderColor !== 'undefined') {toReturn['borderColor'] = this.borderColor;}\n if (typeof this.borderRadius !== 'undefined') {toReturn['borderRadius'] = this.borderRadius;}\n if (typeof this.borderWidth !== 'undefined') {toReturn['borderWidth'] = this.borderWidth;}\n if (typeof this.borderStyle !== 'undefined') {toReturn['borderStyle'] = this.borderStyle;}\n if (typeof this.padding !== 'undefined') {toReturn['padding'] = this.padding;}\n if (typeof this.primaryFontColor !== 'undefined') {toReturn['primaryFontColor'] = this.primaryFontColor;}\n return toReturn;\n }\n}\n\nexport class UpdateFormRequest implements i.UpdateFormRequestInterface {\n formConfig: FormConfig;\n\n static fromProto(proto: any): UpdateFormRequest {\n let m = new UpdateFormRequest();\n m = Object.assign(m, proto);\n if (proto.formConfig) {m.formConfig = FormConfig.fromProto(proto.formConfig);}\n return m;\n }\n\n constructor(kwargs?: i.UpdateFormRequestInterface) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n\n toApiJson(): object {\n const toReturn: {\n [key: string]: any;\n } = {};\n \n if (typeof this.formConfig !== 'undefined' && this.formConfig !== null) {toReturn['formConfig'] = 'toApiJson' in this.formConfig ? (this.formConfig as any).toApiJson() : this.formConfig;}\n return toReturn;\n }\n}\n\nexport class UpdateFormResponse implements i.UpdateFormResponseInterface {\n version: string;\n\n static fromProto(proto: any): UpdateFormResponse {\n let m = new UpdateFormResponse();\n m = Object.assign(m, proto);\n return m;\n }\n\n constructor(kwargs?: i.UpdateFormResponseInterface) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n\n toApiJson(): object {\n const toReturn: {\n [key: string]: any;\n } = {};\n \n if (typeof this.version !== 'undefined') {toReturn['version'] = this.version;}\n return toReturn;\n }\n}\n\n","// *********************************\n// Code generated by sdkgen\n// DO NOT EDIT!.\n//\n// Objects Index.\n// *********************************\nexport {\n CreateFormRequest,\n CreateFormResponse,\n FormConfig,\n GetEmbedCodeRequest,\n GetEmbedCodeResponse,\n GetFormRequest,\n GetFormResponse,\n Styles,\n UpdateFormRequest,\n UpdateFormResponse,\n} from './api';\n\n","import { Injectable } from '@angular/core';\n\ndeclare const window: any;\nconst environment: string = (window ? window['environment'] : 'prod') ?? 'prod';\nconst hostMap: { [key: string]: string } = {\n 'local': 'forms-api.vendasta-local.com',\n 'test': '',\n 'demo': 'forms-demo.apigateway.co',\n 'prod': 'forms-prod.apigateway.co',\n 'production': 'forms-prod.apigateway.co',\n};\n\n@Injectable({providedIn: 'root'})\nexport class HostService {\n get host(): string {\n return hostMap[environment.toLowerCase()];\n }\n\n get hostWithScheme(): string {\n return 'https://' + this.host;\n }\n}\n","// *********************************\n// Code generated by sdkgen\n// DO NOT EDIT!.\n//\n// API Service.\n// *********************************\nimport {Injectable} from '@angular/core';\nimport {\n CreateFormRequest,\n CreateFormResponse,\n GetEmbedCodeRequest,\n GetEmbedCodeResponse,\n GetFormRequest,\n GetFormResponse,\n UpdateFormRequest,\n UpdateFormResponse,\n} from './objects/';\nimport {\n CreateFormRequestInterface,\n CreateFormResponseInterface,\n GetEmbedCodeRequestInterface,\n GetEmbedCodeResponseInterface,\n GetFormRequestInterface,\n GetFormResponseInterface,\n UpdateFormRequestInterface,\n UpdateFormResponseInterface,\n} from './interfaces/';\nimport {HttpHeaders, HttpClient, HttpResponse} from '@angular/common/http';\nimport {HostService} from '../_generated/host.service';\nimport {Observable} from 'rxjs';\nimport {map} from 'rxjs/operators';\n\n@Injectable({providedIn: 'root'})\nexport class FormsApiService {\n private _host = this.hostService.hostWithScheme;\n\n constructor(private http: HttpClient, private hostService: HostService) {\n }\n\n private apiOptions(): {headers: HttpHeaders, withCredentials: boolean} {\n return {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json'\n }),\n withCredentials: true\n };\n }\n\n getEmbedCode(r: GetEmbedCodeRequest | GetEmbedCodeRequestInterface): Observable<GetEmbedCodeResponse> {\n const request = ((<GetEmbedCodeRequest>r).toApiJson) ? (<GetEmbedCodeRequest>r) : new GetEmbedCodeRequest(r);\n return this.http.post<GetEmbedCodeResponseInterface>(this._host + \"/forms.v1.Forms/GetEmbedCode\", request.toApiJson(), this.apiOptions())\n .pipe(\n map(resp => GetEmbedCodeResponse.fromProto(resp))\n );\n }\n getForm(r: GetFormRequest | GetFormRequestInterface): Observable<GetFormResponse> {\n const request = ((<GetFormRequest>r).toApiJson) ? (<GetFormRequest>r) : new GetFormRequest(r);\n return this.http.post<GetFormResponseInterface>(this._host + \"/forms.v1.Forms/GetForm\", request.toApiJson(), this.apiOptions())\n .pipe(\n map(resp => GetFormResponse.fromProto(resp))\n );\n }\n createForm(r: CreateFormRequest | CreateFormRequestInterface): Observable<CreateFormResponse> {\n const request = ((<CreateFormRequest>r).toApiJson) ? (<CreateFormRequest>r) : new CreateFormRequest(r);\n return this.http.post<CreateFormResponseInterface>(this._host + \"/forms.v1.Forms/CreateForm\", request.toApiJson(), this.apiOptions())\n .pipe(\n map(resp => CreateFormResponse.fromProto(resp))\n );\n }\n updateForm(r: UpdateFormRequest | UpdateFormRequestInterface): Observable<UpdateFormResponse> {\n const request = ((<UpdateFormRequest>r).toApiJson) ? (<UpdateFormRequest>r) : new UpdateFormRequest(r);\n return this.http.post<UpdateFormResponseInterface>(this._host + \"/forms.v1.Forms/UpdateForm\", request.toApiJson(), this.apiOptions())\n .pipe(\n map(resp => UpdateFormResponse.fromProto(resp))\n );\n }\n \n}\n","// *********************************\n// Code generated by sdkgen\n// DO NOT EDIT!.\n//\n// Index.\n// *********************************\nexport * from './objects';\nexport * from './interfaces';\nexport { FormsApiService } from './forms.api.service';\n","// MANUALLY CREATED FILE\n// Don't delete this by mistake when you update the SDK with mscli!\nexport * from './_internal';\nexport * from './_generated';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i2.HostService"],"mappings":";;;;;;MASa,iBAAiB,CAAA;AAU1B,IAAA,WAAA,CAAY,MAAqC,EAAA;QAC7C,IAAI,CAAC,MAAM,EAAE;YACT,OAAO;AACV,SAAA;AACD,QAAA,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;KAC/B;IAZD,OAAO,SAAS,CAAC,KAAU,EAAA;AACvB,QAAA,IAAI,CAAC,GAAG,IAAI,iBAAiB,EAAE,CAAC;QAChC,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;QAC5B,IAAI,KAAK,CAAC,UAAU,EAAE;YAAC,CAAC,CAAC,UAAU,GAAG,UAAU,CAAC,SAAS,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;AAAC,SAAA;AAC9E,QAAA,OAAO,CAAC,CAAC;KACZ;IASD,SAAS,GAAA;QACL,MAAM,QAAQ,GAEV,EAAE,CAAC;AAEP,QAAA,IAAI,OAAO,IAAI,CAAC,UAAU,KAAK,WAAW,IAAI,IAAI,CAAC,UAAU,KAAK,IAAI,EAAE;YAAC,QAAQ,CAAC,YAA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AM,OAAO,GAAG,CAAqB,CAAE,CAAC,SAAS,IAAwB,CAAE,GAAG,IAAI,iBAAiB,CAAC,CAAC,CAAC,CAAC;QACvG,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAA8B,IAAI,CAAC,KAAK,GAAG,4BAA4B,EAAE,OAAO,CAAC,SAAS,EAAE,EAAE,IAAI,CAAC,UAAU,EAAE,CAAC;AAChI,aAAA,IAAI,CACD,GAAG,CAAC,IAAI,IAAI,kBAAkB,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAClD,CAAC;KACT;;4GA1CQ,eAAe,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,UAAA,EAAA,EAAA,EAAA,KAAA,EAAAA,WAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAf,eAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,eAAe,cADH,MAAM,EAAA,CAAA,CAAA;2FAClB,eAAe,EAAA,UAAA,EAAA,CAAA;kBAD3B,UAAU;mBAAC,EAAC,UAAU,EAAE,MAAM,EAAC,CAAA;;;AChChC;;ACAA;;ACAA;;AAEG;;;;"}
1
+ {"version":3,"file":"vendasta-forms_microservice.mjs","sources":["../../../forms_sdk/src/lib/_internal/objects/paging.ts","../../../forms_sdk/src/lib/_internal/objects/api.ts","../../../forms_sdk/src/lib/_internal/objects/index.ts","../../../forms_sdk/src/lib/_generated/host.service.ts","../../../forms_sdk/src/lib/_internal/form-submission.api.service.ts","../../../forms_sdk/src/lib/_internal/forms.api.service.ts","../../../forms_sdk/src/lib/_internal/index.ts","../../../forms_sdk/src/lib/index.ts","../../../forms_sdk/src/vendasta-forms_microservice.ts"],"sourcesContent":["// *********************************\n// Code generated by sdkgen\n// DO NOT EDIT!.\n//\n// Objects.\n// *********************************\nimport * as i from '../interfaces';\n\n\nexport class PagedRequestOptions implements i.PagedRequestOptionsInterface {\n cursor: string;\n pageSize: number;\n\n static fromProto(proto: any): PagedRequestOptions {\n let m = new PagedRequestOptions();\n m = Object.assign(m, proto);\n if (proto.pageSize) {m.pageSize = parseInt(proto.pageSize, 10);}\n return m;\n }\n\n constructor(kwargs?: i.PagedRequestOptionsInterface) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n\n toApiJson(): object {\n const toReturn: {\n [key: string]: any;\n } = {};\n \n if (typeof this.cursor !== 'undefined') {toReturn['cursor'] = this.cursor;}\n if (typeof this.pageSize !== 'undefined') {toReturn['pageSize'] = this.pageSize;}\n return toReturn;\n }\n}\n\nexport class PagedResponseMetadata implements i.PagedResponseMetadataInterface {\n nextCursor: string;\n hasMore: boolean;\n totalResults: number;\n\n static fromProto(proto: any): PagedResponseMetadata {\n let m = new PagedResponseMetadata();\n m = Object.assign(m, proto);\n if (proto.totalResults) {m.totalResults = parseInt(proto.totalResults, 10);}\n return m;\n }\n\n constructor(kwargs?: i.PagedResponseMetadataInterface) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n\n toApiJson(): object {\n const toReturn: {\n [key: string]: any;\n } = {};\n \n if (typeof this.nextCursor !== 'undefined') {toReturn['nextCursor'] = this.nextCursor;}\n if (typeof this.hasMore !== 'undefined') {toReturn['hasMore'] = this.hasMore;}\n if (typeof this.totalResults !== 'undefined') {toReturn['totalResults'] = this.totalResults;}\n return toReturn;\n }\n}\n\n","// *********************************\n// Code generated by sdkgen\n// DO NOT EDIT!.\n//\n// Objects.\n// *********************************\nimport * as i from '../interfaces';\nimport { PagedRequestOptions, PagedResponseMetadata } from './paging';\n\nexport class CreateFormRequest implements i.CreateFormRequestInterface {\n formConfig: FormConfig;\n\n static fromProto(proto: any): CreateFormRequest {\n let m = new CreateFormRequest();\n m = Object.assign(m, proto);\n if (proto.formConfig) {m.formConfig = FormConfig.fromProto(proto.formConfig);}\n return m;\n }\n\n constructor(kwargs?: i.CreateFormRequestInterface) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n\n toApiJson(): object {\n const toReturn: {\n [key: string]: any;\n } = {};\n \n if (typeof this.formConfig !== 'undefined' && this.formConfig !== null) {toReturn['formConfig'] = 'toApiJson' in this.formConfig ? (this.formConfig as any).toApiJson() : this.formConfig;}\n return toReturn;\n }\n}\n\nexport class CreateFormResponse implements i.CreateFormResponseInterface {\n formId: string;\n version: string;\n\n static fromProto(proto: any): CreateFormResponse {\n let m = new CreateFormResponse();\n m = Object.assign(m, proto);\n return m;\n }\n\n constructor(kwargs?: i.CreateFormResponseInterface) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n\n toApiJson(): object {\n const toReturn: {\n [key: string]: any;\n } = {};\n \n if (typeof this.formId !== 'undefined') {toReturn['formId'] = this.formId;}\n if (typeof this.version !== 'undefined') {toReturn['version'] = this.version;}\n return toReturn;\n }\n}\n\nexport class CreateFormSubmissionRequest implements i.CreateFormSubmissionRequestInterface {\n submission: FormSubmission;\n\n static fromProto(proto: any): CreateFormSubmissionRequest {\n let m = new CreateFormSubmissionRequest();\n m = Object.assign(m, proto);\n if (proto.submission) {m.submission = FormSubmission.fromProto(proto.submission);}\n return m;\n }\n\n constructor(kwargs?: i.CreateFormSubmissionRequestInterface) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n\n toApiJson(): object {\n const toReturn: {\n [key: string]: any;\n } = {};\n \n if (typeof this.submission !== 'undefined' && this.submission !== null) {toReturn['submission'] = 'toApiJson' in this.submission ? (this.submission as any).toApiJson() : this.submission;}\n return toReturn;\n }\n}\n\nexport class ListFormsRequestFilters implements i.ListFormsRequestFiltersInterface {\n partnerId: string;\n\n static fromProto(proto: any): ListFormsRequestFilters {\n let m = new ListFormsRequestFilters();\n m = Object.assign(m, proto);\n return m;\n }\n\n constructor(kwargs?: i.ListFormsRequestFiltersInterface) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n\n toApiJson(): object {\n const toReturn: {\n [key: string]: any;\n } = {};\n \n if (typeof this.partnerId !== 'undefined') {toReturn['partnerId'] = this.partnerId;}\n return toReturn;\n }\n}\n\nexport class FormConfig implements i.FormConfigInterface {\n formId: string;\n version: string;\n styles: Styles;\n schema: string;\n uiSchema: string;\n formType: string;\n namespace: string;\n name: string;\n created: Date;\n updated: Date;\n\n static fromProto(proto: any): FormConfig {\n let m = new FormConfig();\n m = Object.assign(m, proto);\n if (proto.styles) {m.styles = Styles.fromProto(proto.styles);}\n if (proto.created) {m.created = new Date(proto.created);}\n if (proto.updated) {m.updated = new Date(proto.updated);}\n return m;\n }\n\n constructor(kwargs?: i.FormConfigInterface) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n\n toApiJson(): object {\n const toReturn: {\n [key: string]: any;\n } = {};\n \n if (typeof this.formId !== 'undefined') {toReturn['formId'] = this.formId;}\n if (typeof this.version !== 'undefined') {toReturn['version'] = this.version;}\n if (typeof this.styles !== 'undefined' && this.styles !== null) {toReturn['styles'] = 'toApiJson' in this.styles ? (this.styles as any).toApiJson() : this.styles;}\n if (typeof this.schema !== 'undefined') {toReturn['schema'] = this.schema;}\n if (typeof this.uiSchema !== 'undefined') {toReturn['uiSchema'] = this.uiSchema;}\n if (typeof this.formType !== 'undefined') {toReturn['formType'] = this.formType;}\n if (typeof this.namespace !== 'undefined') {toReturn['namespace'] = this.namespace;}\n if (typeof this.name !== 'undefined') {toReturn['name'] = this.name;}\n if (typeof this.created !== 'undefined' && this.created !== null) {toReturn['created'] = 'toApiJson' in this.created ? (this.created as any).toApiJson() : this.created;}\n if (typeof this.updated !== 'undefined' && this.updated !== null) {toReturn['updated'] = 'toApiJson' in this.updated ? (this.updated as any).toApiJson() : this.updated;}\n return toReturn;\n }\n}\n\nexport class ListFormsResponseFormRow implements i.ListFormsResponseFormRowInterface {\n form: FormConfig;\n\n static fromProto(proto: any): ListFormsResponseFormRow {\n let m = new ListFormsResponseFormRow();\n m = Object.assign(m, proto);\n if (proto.form) {m.form = FormConfig.fromProto(proto.form);}\n return m;\n }\n\n constructor(kwargs?: i.ListFormsResponseFormRowInterface) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n\n toApiJson(): object {\n const toReturn: {\n [key: string]: any;\n } = {};\n \n if (typeof this.form !== 'undefined' && this.form !== null) {toReturn['form'] = 'toApiJson' in this.form ? (this.form as any).toApiJson() : this.form;}\n return toReturn;\n }\n}\n\nexport class FormSubmission implements i.FormSubmissionInterface {\n formId: string;\n version: string;\n values: string;\n\n static fromProto(proto: any): FormSubmission {\n let m = new FormSubmission();\n m = Object.assign(m, proto);\n return m;\n }\n\n constructor(kwargs?: i.FormSubmissionInterface) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n\n toApiJson(): object {\n const toReturn: {\n [key: string]: any;\n } = {};\n \n if (typeof this.formId !== 'undefined') {toReturn['formId'] = this.formId;}\n if (typeof this.version !== 'undefined') {toReturn['version'] = this.version;}\n if (typeof this.values !== 'undefined') {toReturn['values'] = this.values;}\n return toReturn;\n }\n}\n\nexport class GetEmbedCodeRequest implements i.GetEmbedCodeRequestInterface {\n formId: string;\n\n static fromProto(proto: any): GetEmbedCodeRequest {\n let m = new GetEmbedCodeRequest();\n m = Object.assign(m, proto);\n return m;\n }\n\n constructor(kwargs?: i.GetEmbedCodeRequestInterface) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n\n toApiJson(): object {\n const toReturn: {\n [key: string]: any;\n } = {};\n \n if (typeof this.formId !== 'undefined') {toReturn['formId'] = this.formId;}\n return toReturn;\n }\n}\n\nexport class GetEmbedCodeResponse implements i.GetEmbedCodeResponseInterface {\n embedCode: string;\n\n static fromProto(proto: any): GetEmbedCodeResponse {\n let m = new GetEmbedCodeResponse();\n m = Object.assign(m, proto);\n return m;\n }\n\n constructor(kwargs?: i.GetEmbedCodeResponseInterface) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n\n toApiJson(): object {\n const toReturn: {\n [key: string]: any;\n } = {};\n \n if (typeof this.embedCode !== 'undefined') {toReturn['embedCode'] = this.embedCode;}\n return toReturn;\n }\n}\n\nexport class GetFormRequest implements i.GetFormRequestInterface {\n formId: string;\n\n static fromProto(proto: any): GetFormRequest {\n let m = new GetFormRequest();\n m = Object.assign(m, proto);\n return m;\n }\n\n constructor(kwargs?: i.GetFormRequestInterface) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n\n toApiJson(): object {\n const toReturn: {\n [key: string]: any;\n } = {};\n \n if (typeof this.formId !== 'undefined') {toReturn['formId'] = this.formId;}\n return toReturn;\n }\n}\n\nexport class GetFormResponse implements i.GetFormResponseInterface {\n formConfig: FormConfig;\n\n static fromProto(proto: any): GetFormResponse {\n let m = new GetFormResponse();\n m = Object.assign(m, proto);\n if (proto.formConfig) {m.formConfig = FormConfig.fromProto(proto.formConfig);}\n return m;\n }\n\n constructor(kwargs?: i.GetFormResponseInterface) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n\n toApiJson(): object {\n const toReturn: {\n [key: string]: any;\n } = {};\n \n if (typeof this.formConfig !== 'undefined' && this.formConfig !== null) {toReturn['formConfig'] = 'toApiJson' in this.formConfig ? (this.formConfig as any).toApiJson() : this.formConfig;}\n return toReturn;\n }\n}\n\nexport class ListFormsRequest implements i.ListFormsRequestInterface {\n filters: ListFormsRequestFilters;\n pagingOptions: PagedRequestOptions;\n\n static fromProto(proto: any): ListFormsRequest {\n let m = new ListFormsRequest();\n m = Object.assign(m, proto);\n if (proto.filters) {m.filters = ListFormsRequestFilters.fromProto(proto.filters);}\n if (proto.pagingOptions) {m.pagingOptions = PagedRequestOptions.fromProto(proto.pagingOptions);}\n return m;\n }\n\n constructor(kwargs?: i.ListFormsRequestInterface) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n\n toApiJson(): object {\n const toReturn: {\n [key: string]: any;\n } = {};\n \n if (typeof this.filters !== 'undefined' && this.filters !== null) {toReturn['filters'] = 'toApiJson' in this.filters ? (this.filters as any).toApiJson() : this.filters;}\n if (typeof this.pagingOptions !== 'undefined' && this.pagingOptions !== null) {toReturn['pagingOptions'] = 'toApiJson' in this.pagingOptions ? (this.pagingOptions as any).toApiJson() : this.pagingOptions;}\n return toReturn;\n }\n}\n\nexport class ListFormsResponse implements i.ListFormsResponseInterface {\n formRows: ListFormsResponseFormRow[];\n pagingMetadata: PagedResponseMetadata;\n\n static fromProto(proto: any): ListFormsResponse {\n let m = new ListFormsResponse();\n m = Object.assign(m, proto);\n if (proto.formRows) {m.formRows = proto.formRows.map(ListFormsResponseFormRow.fromProto);}\n if (proto.pagingMetadata) {m.pagingMetadata = PagedResponseMetadata.fromProto(proto.pagingMetadata);}\n return m;\n }\n\n constructor(kwargs?: i.ListFormsResponseInterface) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n\n toApiJson(): object {\n const toReturn: {\n [key: string]: any;\n } = {};\n \n if (typeof this.formRows !== 'undefined' && this.formRows !== null) {toReturn['formRows'] = 'toApiJson' in this.formRows ? (this.formRows as any).toApiJson() : this.formRows;}\n if (typeof this.pagingMetadata !== 'undefined' && this.pagingMetadata !== null) {toReturn['pagingMetadata'] = 'toApiJson' in this.pagingMetadata ? (this.pagingMetadata as any).toApiJson() : this.pagingMetadata;}\n return toReturn;\n }\n}\n\nexport class Styles implements i.StylesInterface {\n width: string;\n backgroundColor: string;\n borderColor: string;\n borderRadius: string;\n borderWidth: string;\n borderStyle: string;\n padding: string;\n primaryFontColor: string;\n\n static fromProto(proto: any): Styles {\n let m = new Styles();\n m = Object.assign(m, proto);\n return m;\n }\n\n constructor(kwargs?: i.StylesInterface) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n\n toApiJson(): object {\n const toReturn: {\n [key: string]: any;\n } = {};\n \n if (typeof this.width !== 'undefined') {toReturn['width'] = this.width;}\n if (typeof this.backgroundColor !== 'undefined') {toReturn['backgroundColor'] = this.backgroundColor;}\n if (typeof this.borderColor !== 'undefined') {toReturn['borderColor'] = this.borderColor;}\n if (typeof this.borderRadius !== 'undefined') {toReturn['borderRadius'] = this.borderRadius;}\n if (typeof this.borderWidth !== 'undefined') {toReturn['borderWidth'] = this.borderWidth;}\n if (typeof this.borderStyle !== 'undefined') {toReturn['borderStyle'] = this.borderStyle;}\n if (typeof this.padding !== 'undefined') {toReturn['padding'] = this.padding;}\n if (typeof this.primaryFontColor !== 'undefined') {toReturn['primaryFontColor'] = this.primaryFontColor;}\n return toReturn;\n }\n}\n\nexport class UpdateFormRequest implements i.UpdateFormRequestInterface {\n formConfig: FormConfig;\n\n static fromProto(proto: any): UpdateFormRequest {\n let m = new UpdateFormRequest();\n m = Object.assign(m, proto);\n if (proto.formConfig) {m.formConfig = FormConfig.fromProto(proto.formConfig);}\n return m;\n }\n\n constructor(kwargs?: i.UpdateFormRequestInterface) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n\n toApiJson(): object {\n const toReturn: {\n [key: string]: any;\n } = {};\n \n if (typeof this.formConfig !== 'undefined' && this.formConfig !== null) {toReturn['formConfig'] = 'toApiJson' in this.formConfig ? (this.formConfig as any).toApiJson() : this.formConfig;}\n return toReturn;\n }\n}\n\nexport class UpdateFormResponse implements i.UpdateFormResponseInterface {\n version: string;\n\n static fromProto(proto: any): UpdateFormResponse {\n let m = new UpdateFormResponse();\n m = Object.assign(m, proto);\n return m;\n }\n\n constructor(kwargs?: i.UpdateFormResponseInterface) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n\n toApiJson(): object {\n const toReturn: {\n [key: string]: any;\n } = {};\n \n if (typeof this.version !== 'undefined') {toReturn['version'] = this.version;}\n return toReturn;\n }\n}\n\n","// *********************************\n// Code generated by sdkgen\n// DO NOT EDIT!.\n//\n// Objects Index.\n// *********************************\nexport {\n PagedRequestOptions,\n PagedResponseMetadata,\n} from './paging';\n\nexport {\n CreateFormRequest,\n CreateFormResponse,\n CreateFormSubmissionRequest,\n ListFormsRequestFilters,\n FormConfig,\n ListFormsResponseFormRow,\n FormSubmission,\n GetEmbedCodeRequest,\n GetEmbedCodeResponse,\n GetFormRequest,\n GetFormResponse,\n ListFormsRequest,\n ListFormsResponse,\n Styles,\n UpdateFormRequest,\n UpdateFormResponse,\n} from './api';\n\n","import { Injectable } from '@angular/core';\n\ndeclare const window: any;\nconst environment: string = (window ? window['environment'] : 'prod') ?? 'prod';\nconst hostMap: { [key: string]: string } = {\n 'local': 'forms-api.vendasta-local.com',\n 'test': '',\n 'demo': 'forms-demo.apigateway.co',\n 'prod': 'forms-prod.apigateway.co',\n 'production': 'forms-prod.apigateway.co',\n};\n\n@Injectable({providedIn: 'root'})\nexport class HostService {\n get host(): string {\n return hostMap[environment.toLowerCase()];\n }\n\n get hostWithScheme(): string {\n return 'https://' + this.host;\n }\n}\n","// *********************************\n// Code generated by sdkgen\n// DO NOT EDIT!.\n//\n// API Service.\n// *********************************\nimport {Injectable} from '@angular/core';\nimport {\n CreateFormSubmissionRequest,\n} from './objects/';\nimport {\n CreateFormSubmissionRequestInterface,\n} from './interfaces/';\nimport {HttpHeaders, HttpClient, HttpResponse} from '@angular/common/http';\nimport {HostService} from '../_generated/host.service';\nimport {Observable} from 'rxjs';\nimport {map} from 'rxjs/operators';\n\n@Injectable({providedIn: 'root'})\nexport class FormSubmissionApiService {\n private _host = this.hostService.hostWithScheme;\n\n constructor(private http: HttpClient, private hostService: HostService) {\n }\n\n private apiOptions(): {headers: HttpHeaders, withCredentials: boolean} {\n return {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json'\n }),\n withCredentials: true\n };\n }\n\n createFormSubmission(r: CreateFormSubmissionRequest | CreateFormSubmissionRequestInterface): Observable<HttpResponse<null>> {\n const request = ((<CreateFormSubmissionRequest>r).toApiJson) ? (<CreateFormSubmissionRequest>r) : new CreateFormSubmissionRequest(r);\n return this.http.post<null>(this._host + \"/forms.v1.FormSubmissionService/CreateFormSubmission\", request.toApiJson(), {...this.apiOptions(), observe: 'response'});\n }\n \n}\n","// *********************************\n// Code generated by sdkgen\n// DO NOT EDIT!.\n//\n// API Service.\n// *********************************\nimport {Injectable} from '@angular/core';\nimport {\n CreateFormRequest,\n CreateFormResponse,\n GetEmbedCodeRequest,\n GetEmbedCodeResponse,\n GetFormRequest,\n GetFormResponse,\n ListFormsRequest,\n ListFormsResponse,\n UpdateFormRequest,\n UpdateFormResponse,\n} from './objects/';\nimport {\n CreateFormRequestInterface,\n CreateFormResponseInterface,\n GetEmbedCodeRequestInterface,\n GetEmbedCodeResponseInterface,\n GetFormRequestInterface,\n GetFormResponseInterface,\n ListFormsRequestInterface,\n ListFormsResponseInterface,\n UpdateFormRequestInterface,\n UpdateFormResponseInterface,\n} from './interfaces/';\nimport {HttpHeaders, HttpClient, HttpResponse} from '@angular/common/http';\nimport {HostService} from '../_generated/host.service';\nimport {Observable} from 'rxjs';\nimport {map} from 'rxjs/operators';\n\n@Injectable({providedIn: 'root'})\nexport class FormsApiService {\n private _host = this.hostService.hostWithScheme;\n\n constructor(private http: HttpClient, private hostService: HostService) {\n }\n\n private apiOptions(): {headers: HttpHeaders, withCredentials: boolean} {\n return {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json'\n }),\n withCredentials: true\n };\n }\n\n getEmbedCode(r: GetEmbedCodeRequest | GetEmbedCodeRequestInterface): Observable<GetEmbedCodeResponse> {\n const request = ((<GetEmbedCodeRequest>r).toApiJson) ? (<GetEmbedCodeRequest>r) : new GetEmbedCodeRequest(r);\n return this.http.post<GetEmbedCodeResponseInterface>(this._host + \"/forms.v1.Forms/GetEmbedCode\", request.toApiJson(), this.apiOptions())\n .pipe(\n map(resp => GetEmbedCodeResponse.fromProto(resp))\n );\n }\n getForm(r: GetFormRequest | GetFormRequestInterface): Observable<GetFormResponse> {\n const request = ((<GetFormRequest>r).toApiJson) ? (<GetFormRequest>r) : new GetFormRequest(r);\n return this.http.post<GetFormResponseInterface>(this._host + \"/forms.v1.Forms/GetForm\", request.toApiJson(), this.apiOptions())\n .pipe(\n map(resp => GetFormResponse.fromProto(resp))\n );\n }\n createForm(r: CreateFormRequest | CreateFormRequestInterface): Observable<CreateFormResponse> {\n const request = ((<CreateFormRequest>r).toApiJson) ? (<CreateFormRequest>r) : new CreateFormRequest(r);\n return this.http.post<CreateFormResponseInterface>(this._host + \"/forms.v1.Forms/CreateForm\", request.toApiJson(), this.apiOptions())\n .pipe(\n map(resp => CreateFormResponse.fromProto(resp))\n );\n }\n updateForm(r: UpdateFormRequest | UpdateFormRequestInterface): Observable<UpdateFormResponse> {\n const request = ((<UpdateFormRequest>r).toApiJson) ? (<UpdateFormRequest>r) : new UpdateFormRequest(r);\n return this.http.post<UpdateFormResponseInterface>(this._host + \"/forms.v1.Forms/UpdateForm\", request.toApiJson(), this.apiOptions())\n .pipe(\n map(resp => UpdateFormResponse.fromProto(resp))\n );\n }\n listForms(r: ListFormsRequest | ListFormsRequestInterface): Observable<ListFormsResponse> {\n const request = ((<ListFormsRequest>r).toApiJson) ? (<ListFormsRequest>r) : new ListFormsRequest(r);\n return this.http.post<ListFormsResponseInterface>(this._host + \"/forms.v1.Forms/ListForms\", request.toApiJson(), this.apiOptions())\n .pipe(\n map(resp => ListFormsResponse.fromProto(resp))\n );\n }\n \n}\n","// *********************************\n// Code generated by sdkgen\n// DO NOT EDIT!.\n//\n// Index.\n// *********************************\nexport * from './objects';\nexport * from './interfaces';\nexport { FormSubmissionApiService } from './form-submission.api.service';\nexport { FormsApiService } from './forms.api.service';\n","// MANUALLY CREATED FILE\n// Don't delete this by mistake when you update the SDK with mscli!\nexport * from './_internal';\nexport * from './_generated';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i2.HostService"],"mappings":";;;;;;MASa,mBAAmB,CAAA;AAW5B,IAAA,WAAA,CA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I,CAA6B,IAAI,CAAC,KAAK,GAAG,2BAA2B,EAAE,OAAO,CAAC,SAAS,EAAE,EAAE,IAAI,CAAC,UAAU,EAAE,CAAC;AAC9H,aAAA,IAAI,CACD,GAAG,CAAC,IAAI,IAAI,iBAAiB,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CACjD,CAAC;KACT;;4GAjDQ,eAAe,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,UAAA,EAAA,EAAA,EAAA,KAAA,EAAAA,WAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAf,eAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,eAAe,cADH,MAAM,EAAA,CAAA,CAAA;2FAClB,eAAe,EAAA,UAAA,EAAA,CAAA;kBAD3B,UAAU;mBAAC,EAAC,UAAU,EAAE,MAAM,EAAC,CAAA;;;ACpChC;;ACAA;;ACAA;;AAEG;;;;"}
@@ -0,0 +1,16 @@
1
+ import { CreateFormSubmissionRequest } from './objects/';
2
+ import { CreateFormSubmissionRequestInterface } from './interfaces/';
3
+ import { HttpClient, HttpResponse } from '@angular/common/http';
4
+ import { HostService } from '../_generated/host.service';
5
+ import { Observable } from 'rxjs';
6
+ import * as i0 from "@angular/core";
7
+ export declare class FormSubmissionApiService {
8
+ private http;
9
+ private hostService;
10
+ private _host;
11
+ constructor(http: HttpClient, hostService: HostService);
12
+ private apiOptions;
13
+ createFormSubmission(r: CreateFormSubmissionRequest | CreateFormSubmissionRequestInterface): Observable<HttpResponse<null>>;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormSubmissionApiService, never>;
15
+ static ɵprov: i0.ɵɵInjectableDeclaration<FormSubmissionApiService>;
16
+ }
@@ -1,5 +1,5 @@
1
- import { CreateFormRequest, CreateFormResponse, GetEmbedCodeRequest, GetEmbedCodeResponse, GetFormRequest, GetFormResponse, UpdateFormRequest, UpdateFormResponse } from './objects/';
2
- import { CreateFormRequestInterface, GetEmbedCodeRequestInterface, GetFormRequestInterface, UpdateFormRequestInterface } from './interfaces/';
1
+ import { CreateFormRequest, CreateFormResponse, GetEmbedCodeRequest, GetEmbedCodeResponse, GetFormRequest, GetFormResponse, ListFormsRequest, ListFormsResponse, UpdateFormRequest, UpdateFormResponse } from './objects/';
2
+ import { CreateFormRequestInterface, GetEmbedCodeRequestInterface, GetFormRequestInterface, ListFormsRequestInterface, UpdateFormRequestInterface } from './interfaces/';
3
3
  import { HttpClient } from '@angular/common/http';
4
4
  import { HostService } from '../_generated/host.service';
5
5
  import { Observable } from 'rxjs';
@@ -14,6 +14,7 @@ export declare class FormsApiService {
14
14
  getForm(r: GetFormRequest | GetFormRequestInterface): Observable<GetFormResponse>;
15
15
  createForm(r: CreateFormRequest | CreateFormRequestInterface): Observable<CreateFormResponse>;
16
16
  updateForm(r: UpdateFormRequest | UpdateFormRequestInterface): Observable<UpdateFormResponse>;
17
+ listForms(r: ListFormsRequest | ListFormsRequestInterface): Observable<ListFormsResponse>;
17
18
  static ɵfac: i0.ɵɵFactoryDeclaration<FormsApiService, never>;
18
19
  static ɵprov: i0.ɵɵInjectableDeclaration<FormsApiService>;
19
20
  }
@@ -1,3 +1,4 @@
1
1
  export * from './objects';
2
2
  export * from './interfaces';
3
+ export { FormSubmissionApiService } from './form-submission.api.service';
3
4
  export { FormsApiService } from './forms.api.service';
@@ -1,3 +1,4 @@
1
+ import { PagedRequestOptionsInterface, PagedResponseMetadataInterface } from './paging.interface';
1
2
  export interface CreateFormRequestInterface {
2
3
  formConfig?: FormConfigInterface;
3
4
  }
@@ -5,6 +6,12 @@ export interface CreateFormResponseInterface {
5
6
  formId?: string;
6
7
  version?: string;
7
8
  }
9
+ export interface CreateFormSubmissionRequestInterface {
10
+ submission?: FormSubmissionInterface;
11
+ }
12
+ export interface ListFormsRequestFiltersInterface {
13
+ partnerId?: string;
14
+ }
8
15
  export interface FormConfigInterface {
9
16
  formId?: string;
10
17
  version?: string;
@@ -13,6 +20,17 @@ export interface FormConfigInterface {
13
20
  uiSchema?: string;
14
21
  formType?: string;
15
22
  namespace?: string;
23
+ name?: string;
24
+ created?: Date;
25
+ updated?: Date;
26
+ }
27
+ export interface ListFormsResponseFormRowInterface {
28
+ form?: FormConfigInterface;
29
+ }
30
+ export interface FormSubmissionInterface {
31
+ formId?: string;
32
+ version?: string;
33
+ values?: string;
16
34
  }
17
35
  export interface GetEmbedCodeRequestInterface {
18
36
  formId?: string;
@@ -26,6 +44,14 @@ export interface GetFormRequestInterface {
26
44
  export interface GetFormResponseInterface {
27
45
  formConfig?: FormConfigInterface;
28
46
  }
47
+ export interface ListFormsRequestInterface {
48
+ filters?: ListFormsRequestFiltersInterface;
49
+ pagingOptions?: PagedRequestOptionsInterface;
50
+ }
51
+ export interface ListFormsResponseInterface {
52
+ formRows?: ListFormsResponseFormRowInterface[];
53
+ pagingMetadata?: PagedResponseMetadataInterface;
54
+ }
29
55
  export interface StylesInterface {
30
56
  width?: string;
31
57
  backgroundColor?: string;
@@ -1 +1,2 @@
1
- export { CreateFormRequestInterface, CreateFormResponseInterface, FormConfigInterface, GetEmbedCodeRequestInterface, GetEmbedCodeResponseInterface, GetFormRequestInterface, GetFormResponseInterface, StylesInterface, UpdateFormRequestInterface, UpdateFormResponseInterface, } from './api.interface';
1
+ export { PagedRequestOptionsInterface, PagedResponseMetadataInterface, } from './paging.interface';
2
+ export { CreateFormRequestInterface, CreateFormResponseInterface, CreateFormSubmissionRequestInterface, ListFormsRequestFiltersInterface, FormConfigInterface, ListFormsResponseFormRowInterface, FormSubmissionInterface, GetEmbedCodeRequestInterface, GetEmbedCodeResponseInterface, GetFormRequestInterface, GetFormResponseInterface, ListFormsRequestInterface, ListFormsResponseInterface, StylesInterface, UpdateFormRequestInterface, UpdateFormResponseInterface, } from './api.interface';
@@ -0,0 +1,9 @@
1
+ export interface PagedRequestOptionsInterface {
2
+ cursor?: string;
3
+ pageSize?: number;
4
+ }
5
+ export interface PagedResponseMetadataInterface {
6
+ nextCursor?: string;
7
+ hasMore?: boolean;
8
+ totalResults?: number;
9
+ }
@@ -1,4 +1,5 @@
1
1
  import * as i from '../interfaces';
2
+ import { PagedRequestOptions, PagedResponseMetadata } from './paging';
2
3
  export declare class CreateFormRequest implements i.CreateFormRequestInterface {
3
4
  formConfig: FormConfig;
4
5
  static fromProto(proto: any): CreateFormRequest;
@@ -12,6 +13,18 @@ export declare class CreateFormResponse implements i.CreateFormResponseInterface
12
13
  constructor(kwargs?: i.CreateFormResponseInterface);
13
14
  toApiJson(): object;
14
15
  }
16
+ export declare class CreateFormSubmissionRequest implements i.CreateFormSubmissionRequestInterface {
17
+ submission: FormSubmission;
18
+ static fromProto(proto: any): CreateFormSubmissionRequest;
19
+ constructor(kwargs?: i.CreateFormSubmissionRequestInterface);
20
+ toApiJson(): object;
21
+ }
22
+ export declare class ListFormsRequestFilters implements i.ListFormsRequestFiltersInterface {
23
+ partnerId: string;
24
+ static fromProto(proto: any): ListFormsRequestFilters;
25
+ constructor(kwargs?: i.ListFormsRequestFiltersInterface);
26
+ toApiJson(): object;
27
+ }
15
28
  export declare class FormConfig implements i.FormConfigInterface {
16
29
  formId: string;
17
30
  version: string;
@@ -20,10 +33,27 @@ export declare class FormConfig implements i.FormConfigInterface {
20
33
  uiSchema: string;
21
34
  formType: string;
22
35
  namespace: string;
36
+ name: string;
37
+ created: Date;
38
+ updated: Date;
23
39
  static fromProto(proto: any): FormConfig;
24
40
  constructor(kwargs?: i.FormConfigInterface);
25
41
  toApiJson(): object;
26
42
  }
43
+ export declare class ListFormsResponseFormRow implements i.ListFormsResponseFormRowInterface {
44
+ form: FormConfig;
45
+ static fromProto(proto: any): ListFormsResponseFormRow;
46
+ constructor(kwargs?: i.ListFormsResponseFormRowInterface);
47
+ toApiJson(): object;
48
+ }
49
+ export declare class FormSubmission implements i.FormSubmissionInterface {
50
+ formId: string;
51
+ version: string;
52
+ values: string;
53
+ static fromProto(proto: any): FormSubmission;
54
+ constructor(kwargs?: i.FormSubmissionInterface);
55
+ toApiJson(): object;
56
+ }
27
57
  export declare class GetEmbedCodeRequest implements i.GetEmbedCodeRequestInterface {
28
58
  formId: string;
29
59
  static fromProto(proto: any): GetEmbedCodeRequest;
@@ -48,6 +78,20 @@ export declare class GetFormResponse implements i.GetFormResponseInterface {
48
78
  constructor(kwargs?: i.GetFormResponseInterface);
49
79
  toApiJson(): object;
50
80
  }
81
+ export declare class ListFormsRequest implements i.ListFormsRequestInterface {
82
+ filters: ListFormsRequestFilters;
83
+ pagingOptions: PagedRequestOptions;
84
+ static fromProto(proto: any): ListFormsRequest;
85
+ constructor(kwargs?: i.ListFormsRequestInterface);
86
+ toApiJson(): object;
87
+ }
88
+ export declare class ListFormsResponse implements i.ListFormsResponseInterface {
89
+ formRows: ListFormsResponseFormRow[];
90
+ pagingMetadata: PagedResponseMetadata;
91
+ static fromProto(proto: any): ListFormsResponse;
92
+ constructor(kwargs?: i.ListFormsResponseInterface);
93
+ toApiJson(): object;
94
+ }
51
95
  export declare class Styles implements i.StylesInterface {
52
96
  width: string;
53
97
  backgroundColor: string;