@vendasta/developer-training 0.2.0 → 0.3.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.
Files changed (37) hide show
  1. package/esm2020/lib/_generated/host.service.mjs +25 -0
  2. package/esm2020/lib/_internal/business-qa.api.service.mjs +45 -0
  3. package/esm2020/lib/_internal/index.mjs +10 -0
  4. package/esm2020/lib/_internal/interfaces/businessqa.interface.mjs +2 -0
  5. package/esm2020/lib/_internal/interfaces/field-mask.interface.mjs +8 -0
  6. package/esm2020/lib/_internal/interfaces/index.mjs +2 -0
  7. package/esm2020/lib/_internal/objects/businessqa.mjs +103 -0
  8. package/esm2020/lib/_internal/objects/field-mask.mjs +21 -0
  9. package/esm2020/lib/_internal/objects/index.mjs +9 -0
  10. package/esm2020/lib/index.mjs +2 -0
  11. package/{esm2015/public_api.js → esm2020/public_api.mjs} +1 -1
  12. package/{esm2015/vendasta-developer-training.js → esm2020/vendasta-developer-training.mjs} +1 -1
  13. package/fesm2015/{vendasta-developer-training.js → vendasta-developer-training.mjs} +36 -92
  14. package/fesm2015/vendasta-developer-training.mjs.map +1 -0
  15. package/fesm2020/vendasta-developer-training.mjs +194 -0
  16. package/fesm2020/vendasta-developer-training.mjs.map +1 -0
  17. package/lib/_generated/host.service.d.ts +5 -9
  18. package/lib/_internal/business-qa.api.service.d.ts +4 -0
  19. package/package.json +28 -17
  20. package/src/README.md +1 -0
  21. package/vendasta-developer-training.d.ts +1 -0
  22. package/bundles/vendasta-developer-training.umd.js +0 -268
  23. package/bundles/vendasta-developer-training.umd.js.map +0 -1
  24. package/bundles/vendasta-developer-training.umd.min.js +0 -2
  25. package/bundles/vendasta-developer-training.umd.min.js.map +0 -1
  26. package/esm2015/lib/_generated/host.service.js +0 -65
  27. package/esm2015/lib/_internal/business-qa.api.service.js +0 -46
  28. package/esm2015/lib/_internal/index.js +0 -10
  29. package/esm2015/lib/_internal/interfaces/businessqa.interface.js +0 -2
  30. package/esm2015/lib/_internal/interfaces/field-mask.interface.js +0 -8
  31. package/esm2015/lib/_internal/interfaces/index.js +0 -2
  32. package/esm2015/lib/_internal/objects/businessqa.js +0 -119
  33. package/esm2015/lib/_internal/objects/field-mask.js +0 -24
  34. package/esm2015/lib/_internal/objects/index.js +0 -9
  35. package/esm2015/lib/index.js +0 -2
  36. package/fesm2015/vendasta-developer-training.js.map +0 -1
  37. package/vendasta-developer-training.metadata.json +0 -1
@@ -0,0 +1,194 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Injectable } from '@angular/core';
3
+ import * as i1 from '@angular/common/http';
4
+ import { HttpHeaders } from '@angular/common/http';
5
+ import { map } from 'rxjs/operators';
6
+
7
+ class FieldMask {
8
+ constructor(kwargs) {
9
+ if (!kwargs) {
10
+ return;
11
+ }
12
+ Object.assign(this, kwargs);
13
+ }
14
+ static fromProto(proto) {
15
+ let m = new FieldMask();
16
+ m = Object.assign(m, proto);
17
+ return m;
18
+ }
19
+ toApiJson() {
20
+ const toReturn = {};
21
+ if (typeof this.paths !== 'undefined') {
22
+ toReturn['paths'] = this.paths;
23
+ }
24
+ return toReturn;
25
+ }
26
+ }
27
+
28
+ class GetBusinessQuestionsAnswersRequest {
29
+ constructor(kwargs) {
30
+ if (!kwargs) {
31
+ return;
32
+ }
33
+ Object.assign(this, kwargs);
34
+ }
35
+ static fromProto(proto) {
36
+ let m = new GetBusinessQuestionsAnswersRequest();
37
+ m = Object.assign(m, proto);
38
+ return m;
39
+ }
40
+ toApiJson() {
41
+ const toReturn = {};
42
+ if (typeof this.businessId !== 'undefined') {
43
+ toReturn['businessId'] = this.businessId;
44
+ }
45
+ return toReturn;
46
+ }
47
+ }
48
+ class GetBusinessQuestionsAnswersResponse {
49
+ constructor(kwargs) {
50
+ if (!kwargs) {
51
+ return;
52
+ }
53
+ Object.assign(this, kwargs);
54
+ }
55
+ static fromProto(proto) {
56
+ let m = new GetBusinessQuestionsAnswersResponse();
57
+ m = Object.assign(m, proto);
58
+ if (proto.answers) {
59
+ m.answers = QuestionsAnswers.fromProto(proto.answers);
60
+ }
61
+ return m;
62
+ }
63
+ toApiJson() {
64
+ const toReturn = {};
65
+ if (typeof this.businessId !== 'undefined') {
66
+ toReturn['businessId'] = this.businessId;
67
+ }
68
+ if (typeof this.answers !== 'undefined' && this.answers !== null) {
69
+ toReturn['answers'] = 'toApiJson' in this.answers ? this.answers.toApiJson() : this.answers;
70
+ }
71
+ return toReturn;
72
+ }
73
+ }
74
+ class QuestionsAnswers {
75
+ constructor(kwargs) {
76
+ if (!kwargs) {
77
+ return;
78
+ }
79
+ Object.assign(this, kwargs);
80
+ }
81
+ static fromProto(proto) {
82
+ let m = new QuestionsAnswers();
83
+ m = Object.assign(m, proto);
84
+ return m;
85
+ }
86
+ toApiJson() {
87
+ const toReturn = {};
88
+ if (typeof this.whatIsBestTimeOfDayToContact !== 'undefined') {
89
+ toReturn['whatIsBestTimeOfDayToContact'] = this.whatIsBestTimeOfDayToContact;
90
+ }
91
+ if (typeof this.isThisPlaceWheelchairAccessible !== 'undefined') {
92
+ toReturn['isThisPlaceWheelchairAccessible'] = this.isThisPlaceWheelchairAccessible;
93
+ }
94
+ return toReturn;
95
+ }
96
+ }
97
+ class ReplaceBusinessQuestionsAnswersRequest {
98
+ constructor(kwargs) {
99
+ if (!kwargs) {
100
+ return;
101
+ }
102
+ Object.assign(this, kwargs);
103
+ }
104
+ static fromProto(proto) {
105
+ let m = new ReplaceBusinessQuestionsAnswersRequest();
106
+ m = Object.assign(m, proto);
107
+ if (proto.fieldMask) {
108
+ m.fieldMask = FieldMask.fromProto(proto.fieldMask);
109
+ }
110
+ if (proto.answers) {
111
+ m.answers = QuestionsAnswers.fromProto(proto.answers);
112
+ }
113
+ return m;
114
+ }
115
+ toApiJson() {
116
+ const toReturn = {};
117
+ if (typeof this.businessId !== 'undefined') {
118
+ toReturn['businessId'] = this.businessId;
119
+ }
120
+ if (typeof this.fieldMask !== 'undefined' && this.fieldMask !== null) {
121
+ toReturn['fieldMask'] = 'toApiJson' in this.fieldMask ? this.fieldMask.toApiJson() : this.fieldMask;
122
+ }
123
+ if (typeof this.answers !== 'undefined' && this.answers !== null) {
124
+ toReturn['answers'] = 'toApiJson' in this.answers ? this.answers.toApiJson() : this.answers;
125
+ }
126
+ return toReturn;
127
+ }
128
+ }
129
+
130
+ // *********************************
131
+
132
+ const environment = (window ? window['environment'] : 'prod') ?? 'prod';
133
+ const hostMap = {
134
+ 'local': 'developer-training-api.vendasta-local.com',
135
+ 'test': '',
136
+ 'demo': 'developer-training-demo.apigateway.co',
137
+ 'prod': 'developer-training-prod.apigateway.co',
138
+ 'production': 'developer-training-prod.apigateway.co',
139
+ };
140
+ class HostService {
141
+ get host() {
142
+ return hostMap[environment.toLowerCase()];
143
+ }
144
+ get hostWithScheme() {
145
+ return 'https://' + this.host;
146
+ }
147
+ }
148
+ HostService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: HostService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
149
+ HostService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: HostService, providedIn: 'root' });
150
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: HostService, decorators: [{
151
+ type: Injectable,
152
+ args: [{ providedIn: 'root' }]
153
+ }] });
154
+
155
+ // *********************************
156
+ class BusinessQAApiService {
157
+ constructor(http, hostService) {
158
+ this.http = http;
159
+ this.hostService = hostService;
160
+ this._host = this.hostService.hostWithScheme;
161
+ }
162
+ apiOptions() {
163
+ return {
164
+ headers: new HttpHeaders({
165
+ 'Content-Type': 'application/json'
166
+ }),
167
+ withCredentials: true
168
+ };
169
+ }
170
+ getBusinessQuestionsAnswers(r) {
171
+ const request = (r.toApiJson) ? r : new GetBusinessQuestionsAnswersRequest(r);
172
+ return this.http.post(this._host + "/developertraining.v1.BusinessQA/GetBusinessQuestionsAnswers", request.toApiJson(), this.apiOptions())
173
+ .pipe(map(resp => GetBusinessQuestionsAnswersResponse.fromProto(resp)));
174
+ }
175
+ replaceBusinessQuestionsAnswers(r) {
176
+ const request = (r.toApiJson) ? r : new ReplaceBusinessQuestionsAnswersRequest(r);
177
+ return this.http.post(this._host + "/developertraining.v1.BusinessQA/ReplaceBusinessQuestionsAnswers", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
178
+ }
179
+ }
180
+ BusinessQAApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: BusinessQAApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
181
+ BusinessQAApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: BusinessQAApiService, providedIn: 'root' });
182
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.1", ngImport: i0, type: BusinessQAApiService, decorators: [{
183
+ type: Injectable,
184
+ args: [{ providedIn: 'root' }]
185
+ }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
186
+
187
+ // *********************************
188
+
189
+ /**
190
+ * Generated bundle index. Do not edit.
191
+ */
192
+
193
+ export { BusinessQAApiService, FieldMask, GetBusinessQuestionsAnswersRequest, GetBusinessQuestionsAnswersResponse, QuestionsAnswers, ReplaceBusinessQuestionsAnswersRequest };
194
+ //# sourceMappingURL=vendasta-developer-training.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vendasta-developer-training.mjs","sources":["../../../developer_training_sdk/src/lib/_internal/objects/field-mask.ts","../../../developer_training_sdk/src/lib/_internal/objects/businessqa.ts","../../../developer_training_sdk/src/lib/_internal/objects/index.ts","../../../developer_training_sdk/src/lib/_generated/host.service.ts","../../../developer_training_sdk/src/lib/_internal/business-qa.api.service.ts","../../../developer_training_sdk/src/lib/_internal/index.ts","../../../developer_training_sdk/src/vendasta-developer-training.ts"],"sourcesContent":["// *********************************\n// Code generated by sdkgen\n// DO NOT EDIT!.\n//\n// Objects.\n// *********************************\nimport * as i from '../interfaces';\n\n\nexport class FieldMask implements i.FieldMaskInterface {\n paths: string[];\n\n static fromProto(proto: any): FieldMask {\n let m = new FieldMask();\n m = Object.assign(m, proto);\n return m;\n }\n\n constructor(kwargs?: i.FieldMaskInterface) {\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.paths !== 'undefined') {toReturn['paths'] = this.paths;}\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 { FieldMask } from './field-mask';\n\nexport class GetBusinessQuestionsAnswersRequest implements i.GetBusinessQuestionsAnswersRequestInterface {\n businessId: string;\n\n static fromProto(proto: any): GetBusinessQuestionsAnswersRequest {\n let m = new GetBusinessQuestionsAnswersRequest();\n m = Object.assign(m, proto);\n return m;\n }\n\n constructor(kwargs?: i.GetBusinessQuestionsAnswersRequestInterface) {\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.businessId !== 'undefined') {toReturn['businessId'] = this.businessId;}\n return toReturn;\n }\n}\n\nexport class GetBusinessQuestionsAnswersResponse implements i.GetBusinessQuestionsAnswersResponseInterface {\n businessId: string;\n answers: QuestionsAnswers;\n\n static fromProto(proto: any): GetBusinessQuestionsAnswersResponse {\n let m = new GetBusinessQuestionsAnswersResponse();\n m = Object.assign(m, proto);\n if (proto.answers) {m.answers = QuestionsAnswers.fromProto(proto.answers);}\n return m;\n }\n\n constructor(kwargs?: i.GetBusinessQuestionsAnswersResponseInterface) {\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.businessId !== 'undefined') {toReturn['businessId'] = this.businessId;}\n if (typeof this.answers !== 'undefined' && this.answers !== null) {toReturn['answers'] = 'toApiJson' in this.answers ? (this.answers as any).toApiJson() : this.answers;}\n return toReturn;\n }\n}\n\nexport class QuestionsAnswers implements i.QuestionsAnswersInterface {\n whatIsBestTimeOfDayToContact: string;\n isThisPlaceWheelchairAccessible: string;\n\n static fromProto(proto: any): QuestionsAnswers {\n let m = new QuestionsAnswers();\n m = Object.assign(m, proto);\n return m;\n }\n\n constructor(kwargs?: i.QuestionsAnswersInterface) {\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.whatIsBestTimeOfDayToContact !== 'undefined') {toReturn['whatIsBestTimeOfDayToContact'] = this.whatIsBestTimeOfDayToContact;}\n if (typeof this.isThisPlaceWheelchairAccessible !== 'undefined') {toReturn['isThisPlaceWheelchairAccessible'] = this.isThisPlaceWheelchairAccessible;}\n return toReturn;\n }\n}\n\nexport class ReplaceBusinessQuestionsAnswersRequest implements i.ReplaceBusinessQuestionsAnswersRequestInterface {\n businessId: string;\n fieldMask: FieldMask;\n answers: QuestionsAnswers;\n\n static fromProto(proto: any): ReplaceBusinessQuestionsAnswersRequest {\n let m = new ReplaceBusinessQuestionsAnswersRequest();\n m = Object.assign(m, proto);\n if (proto.fieldMask) {m.fieldMask = FieldMask.fromProto(proto.fieldMask);}\n if (proto.answers) {m.answers = QuestionsAnswers.fromProto(proto.answers);}\n return m;\n }\n\n constructor(kwargs?: i.ReplaceBusinessQuestionsAnswersRequestInterface) {\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.businessId !== 'undefined') {toReturn['businessId'] = this.businessId;}\n if (typeof this.fieldMask !== 'undefined' && this.fieldMask !== null) {toReturn['fieldMask'] = 'toApiJson' in this.fieldMask ? (this.fieldMask as any).toApiJson() : this.fieldMask;}\n if (typeof this.answers !== 'undefined' && this.answers !== null) {toReturn['answers'] = 'toApiJson' in this.answers ? (this.answers as any).toApiJson() : this.answers;}\n return toReturn;\n }\n}\n\n","// *********************************\n// Code generated by sdkgen\n// DO NOT EDIT!.\n//\n// Objects Index.\n// *********************************\nexport {\n FieldMask,\n} from './field-mask';\n\nexport {\n GetBusinessQuestionsAnswersRequest,\n GetBusinessQuestionsAnswersResponse,\n QuestionsAnswers,\n ReplaceBusinessQuestionsAnswersRequest,\n} from './businessqa';\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': 'developer-training-api.vendasta-local.com',\n 'test': '',\n 'demo': 'developer-training-demo.apigateway.co',\n 'prod': 'developer-training-prod.apigateway.co',\n 'production': 'developer-training-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 GetBusinessQuestionsAnswersRequest,\n GetBusinessQuestionsAnswersResponse,\n ReplaceBusinessQuestionsAnswersRequest,\n} from './objects/';\nimport {\n GetBusinessQuestionsAnswersRequestInterface,\n GetBusinessQuestionsAnswersResponseInterface,\n ReplaceBusinessQuestionsAnswersRequestInterface,\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 BusinessQAApiService {\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 getBusinessQuestionsAnswers(r: GetBusinessQuestionsAnswersRequest | GetBusinessQuestionsAnswersRequestInterface): Observable<GetBusinessQuestionsAnswersResponse> {\n const request = ((<GetBusinessQuestionsAnswersRequest>r).toApiJson) ? (<GetBusinessQuestionsAnswersRequest>r) : new GetBusinessQuestionsAnswersRequest(r);\n return this.http.post<GetBusinessQuestionsAnswersResponseInterface>(this._host + \"/developertraining.v1.BusinessQA/GetBusinessQuestionsAnswers\", request.toApiJson(), this.apiOptions())\n .pipe(\n map(resp => GetBusinessQuestionsAnswersResponse.fromProto(resp))\n );\n }\n replaceBusinessQuestionsAnswers(r: ReplaceBusinessQuestionsAnswersRequest | ReplaceBusinessQuestionsAnswersRequestInterface): Observable<HttpResponse<null>> {\n const request = ((<ReplaceBusinessQuestionsAnswersRequest>r).toApiJson) ? (<ReplaceBusinessQuestionsAnswersRequest>r) : new ReplaceBusinessQuestionsAnswersRequest(r);\n return this.http.post<null>(this._host + \"/developertraining.v1.BusinessQA/ReplaceBusinessQuestionsAnswers\", request.toApiJson(), {...this.apiOptions(), observe: 'response'});\n }\n \n}\n","// *********************************\n// Code generated by sdkgen\n// DO NOT EDIT!.\n//\n// Index.\n// *********************************\nexport * from './objects';\nexport * from './interfaces';\nexport { BusinessQAApiService } from './business-qa.api.service';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i2.HostService"],"mappings":";;;;;;MASa,SAAS,CAAA;AASlB,IAAA,WAAA,CAAY,MAA6B,EAAA;QACrC,IAAI,CAAC,MAAM,EAAE;YACT,OAAO;AACV,SAAA;AACD,QAAA,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;KAC/B;IAXD,OAAO,SAAS,CAAC,KAAU,EAAA;AACvB,QAAA,IAAI,CAAC,GAAG,IAAI,SAAS,EAAE,CAAC;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AC,UAAU,EAAE,EAAE,OAAO,EAAE,UAAU,EAAC,CAAC,CAAC;KAClL;;iHAzBQ,oBAAoB,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;AAApB,oBAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,oBAAoB,cADR,MAAM,EAAA,CAAA,CAAA;2FAClB,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBADhC,UAAU;mBAAC,EAAC,UAAU,EAAE,MAAM,EAAC,CAAA;;;ACtBhC;;ACAA;;AAEG;;;;"}
@@ -1,11 +1,7 @@
1
- import { EnvironmentService } from '@vendasta/core';
1
+ import * as i0 from "@angular/core";
2
2
  export declare class HostService {
3
- private environmentService;
4
- private _host;
5
- private _httpsHost;
6
- constructor(environmentService: EnvironmentService);
7
- host(): string;
8
- httpsHost(): string;
9
- hostWithScheme(): string;
10
- httpsHostWithScheme(): string;
3
+ get host(): string;
4
+ get hostWithScheme(): string;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<HostService, never>;
6
+ static ɵprov: i0.ɵɵInjectableDeclaration<HostService>;
11
7
  }
@@ -3,11 +3,15 @@ import { GetBusinessQuestionsAnswersRequestInterface, ReplaceBusinessQuestionsAn
3
3
  import { HttpClient, HttpResponse } from '@angular/common/http';
4
4
  import { HostService } from '../_generated/host.service';
5
5
  import { Observable } from 'rxjs';
6
+ import * as i0 from "@angular/core";
6
7
  export declare class BusinessQAApiService {
7
8
  private http;
8
9
  private hostService;
10
+ private _host;
9
11
  constructor(http: HttpClient, hostService: HostService);
10
12
  private apiOptions;
11
13
  getBusinessQuestionsAnswers(r: GetBusinessQuestionsAnswersRequest | GetBusinessQuestionsAnswersRequestInterface): Observable<GetBusinessQuestionsAnswersResponse>;
12
14
  replaceBusinessQuestionsAnswers(r: ReplaceBusinessQuestionsAnswersRequest | ReplaceBusinessQuestionsAnswersRequestInterface): Observable<HttpResponse<null>>;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<BusinessQAApiService, never>;
16
+ static ɵprov: i0.ɵɵInjectableDeclaration<BusinessQAApiService>;
13
17
  }
package/package.json CHANGED
@@ -1,24 +1,35 @@
1
1
  {
2
2
  "name": "@vendasta/developer-training",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "peerDependencies": {
5
- "@angular/core": "^10.0.0",
6
- "@angular/common": "^10.0.0",
7
- "@vendasta/core": "^46.0.1",
8
- "rxjs": "^6.0.0"
5
+ "@angular/common": "^13.0.0",
6
+ "@angular/core": "^13.0.0"
9
7
  },
10
8
  "author": "Vendasta R&D",
11
- "description": "SDK to interact with the developer-training service, a service to use as a playground for helping teach new to Vendasta developers",
9
+ "description": "SDK to interact with the developer-training service",
12
10
  "typings": "vendasta-developer-training.d.ts",
13
- "dependencies": {
14
- "tslib": "^2.0.0"
15
- },
16
11
  "license": "ISC",
17
- "main": "bundles/vendasta-developer-training.umd.js",
18
- "module": "fesm2015/vendasta-developer-training.js",
19
- "es2015": "fesm2015/vendasta-developer-training.js",
20
- "esm2015": "esm2015/vendasta-developer-training.js",
21
- "fesm2015": "fesm2015/vendasta-developer-training.js",
22
- "metadata": "vendasta-developer-training.metadata.json",
23
- "sideEffects": false
24
- }
12
+ "main": "index.js",
13
+ "module": "fesm2015/vendasta-developer-training.mjs",
14
+ "es2020": "fesm2020/vendasta-developer-training.mjs",
15
+ "esm2020": "esm2020/vendasta-developer-training.mjs",
16
+ "fesm2020": "fesm2020/vendasta-developer-training.mjs",
17
+ "fesm2015": "fesm2015/vendasta-developer-training.mjs",
18
+ "exports": {
19
+ "./package.json": {
20
+ "default": "./package.json"
21
+ },
22
+ ".": {
23
+ "types": "./vendasta-developer-training.d.ts",
24
+ "esm2020": "./esm2020/vendasta-developer-training.mjs",
25
+ "es2020": "./fesm2020/vendasta-developer-training.mjs",
26
+ "es2015": "./fesm2015/vendasta-developer-training.mjs",
27
+ "node": "./fesm2015/vendasta-developer-training.mjs",
28
+ "default": "./fesm2020/vendasta-developer-training.mjs"
29
+ }
30
+ },
31
+ "sideEffects": false,
32
+ "dependencies": {
33
+ "tslib": "^2.3.0"
34
+ }
35
+ }
package/src/README.md ADDED
@@ -0,0 +1 @@
1
+ # developer-training SDK
@@ -1,4 +1,5 @@
1
1
  /**
2
2
  * Generated bundle index. Do not edit.
3
3
  */
4
+ /// <amd-module name="@vendasta/developer-training" />
4
5
  export * from './public_api';
@@ -1,268 +0,0 @@
1
- (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common/http'), require('@vendasta/core'), require('rxjs/operators')) :
3
- typeof define === 'function' && define.amd ? define('@vendasta/developer-training', ['exports', '@angular/core', '@angular/common/http', '@vendasta/core', 'rxjs/operators'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.vendasta = global.vendasta || {}, global.vendasta['developer-training'] = {}), global.ng.core, global.ng.common.http, global.i1, global.rxjs.operators));
5
- }(this, (function (exports, i0, i1$1, i1, operators) { 'use strict';
6
-
7
- var FieldMask = /** @class */ (function () {
8
- function FieldMask(kwargs) {
9
- if (!kwargs) {
10
- return;
11
- }
12
- Object.assign(this, kwargs);
13
- }
14
- FieldMask.fromProto = function (proto) {
15
- var m = new FieldMask();
16
- m = Object.assign(m, proto);
17
- return m;
18
- };
19
- FieldMask.prototype.toApiJson = function () {
20
- if (typeof this.paths === 'undefined') {
21
- return {};
22
- }
23
- var toReturn = {};
24
- if (typeof this.paths !== 'undefined') {
25
- toReturn['paths'] = this.paths;
26
- }
27
- return toReturn;
28
- };
29
- return FieldMask;
30
- }());
31
-
32
- var GetBusinessQuestionsAnswersRequest = /** @class */ (function () {
33
- function GetBusinessQuestionsAnswersRequest(kwargs) {
34
- if (!kwargs) {
35
- return;
36
- }
37
- Object.assign(this, kwargs);
38
- }
39
- GetBusinessQuestionsAnswersRequest.fromProto = function (proto) {
40
- var m = new GetBusinessQuestionsAnswersRequest();
41
- m = Object.assign(m, proto);
42
- return m;
43
- };
44
- GetBusinessQuestionsAnswersRequest.prototype.toApiJson = function () {
45
- if (typeof this.businessId === 'undefined') {
46
- return {};
47
- }
48
- var toReturn = {};
49
- if (typeof this.businessId !== 'undefined') {
50
- toReturn['businessId'] = this.businessId;
51
- }
52
- return toReturn;
53
- };
54
- return GetBusinessQuestionsAnswersRequest;
55
- }());
56
- var GetBusinessQuestionsAnswersResponse = /** @class */ (function () {
57
- function GetBusinessQuestionsAnswersResponse(kwargs) {
58
- if (!kwargs) {
59
- return;
60
- }
61
- Object.assign(this, kwargs);
62
- }
63
- GetBusinessQuestionsAnswersResponse.fromProto = function (proto) {
64
- var m = new GetBusinessQuestionsAnswersResponse();
65
- m = Object.assign(m, proto);
66
- if (proto.answers) {
67
- m.answers = QuestionsAnswers.fromProto(proto.answers);
68
- }
69
- return m;
70
- };
71
- GetBusinessQuestionsAnswersResponse.prototype.toApiJson = function () {
72
- if (typeof this.businessId === 'undefined' &&
73
- typeof this.answers === 'undefined') {
74
- return {};
75
- }
76
- var toReturn = {};
77
- if (typeof this.businessId !== 'undefined') {
78
- toReturn['businessId'] = this.businessId;
79
- }
80
- if (typeof this.answers !== 'undefined' && this.answers !== null) {
81
- toReturn['answers'] = 'toApiJson' in this.answers ? this.answers.toApiJson() : this.answers;
82
- }
83
- return toReturn;
84
- };
85
- return GetBusinessQuestionsAnswersResponse;
86
- }());
87
- var QuestionsAnswers = /** @class */ (function () {
88
- function QuestionsAnswers(kwargs) {
89
- if (!kwargs) {
90
- return;
91
- }
92
- Object.assign(this, kwargs);
93
- }
94
- QuestionsAnswers.fromProto = function (proto) {
95
- var m = new QuestionsAnswers();
96
- m = Object.assign(m, proto);
97
- return m;
98
- };
99
- QuestionsAnswers.prototype.toApiJson = function () {
100
- if (typeof this.whatIsBestTimeOfDayToContact === 'undefined' &&
101
- typeof this.isThisPlaceWheelchairAccessible === 'undefined') {
102
- return {};
103
- }
104
- var toReturn = {};
105
- if (typeof this.whatIsBestTimeOfDayToContact !== 'undefined') {
106
- toReturn['whatIsBestTimeOfDayToContact'] = this.whatIsBestTimeOfDayToContact;
107
- }
108
- if (typeof this.isThisPlaceWheelchairAccessible !== 'undefined') {
109
- toReturn['isThisPlaceWheelchairAccessible'] = this.isThisPlaceWheelchairAccessible;
110
- }
111
- return toReturn;
112
- };
113
- return QuestionsAnswers;
114
- }());
115
- var ReplaceBusinessQuestionsAnswersRequest = /** @class */ (function () {
116
- function ReplaceBusinessQuestionsAnswersRequest(kwargs) {
117
- if (!kwargs) {
118
- return;
119
- }
120
- Object.assign(this, kwargs);
121
- }
122
- ReplaceBusinessQuestionsAnswersRequest.fromProto = function (proto) {
123
- var m = new ReplaceBusinessQuestionsAnswersRequest();
124
- m = Object.assign(m, proto);
125
- if (proto.fieldMask) {
126
- m.fieldMask = FieldMask.fromProto(proto.fieldMask);
127
- }
128
- if (proto.answers) {
129
- m.answers = QuestionsAnswers.fromProto(proto.answers);
130
- }
131
- return m;
132
- };
133
- ReplaceBusinessQuestionsAnswersRequest.prototype.toApiJson = function () {
134
- if (typeof this.businessId === 'undefined' &&
135
- typeof this.fieldMask === 'undefined' &&
136
- typeof this.answers === 'undefined') {
137
- return {};
138
- }
139
- var toReturn = {};
140
- if (typeof this.businessId !== 'undefined') {
141
- toReturn['businessId'] = this.businessId;
142
- }
143
- if (typeof this.fieldMask !== 'undefined' && this.fieldMask !== null) {
144
- toReturn['fieldMask'] = 'toApiJson' in this.fieldMask ? this.fieldMask.toApiJson() : this.fieldMask;
145
- }
146
- if (typeof this.answers !== 'undefined' && this.answers !== null) {
147
- toReturn['answers'] = 'toApiJson' in this.answers ? this.answers.toApiJson() : this.answers;
148
- }
149
- return toReturn;
150
- };
151
- return ReplaceBusinessQuestionsAnswersRequest;
152
- }());
153
-
154
- // *********************************
155
-
156
- var HostService = /** @class */ (function () {
157
- function HostService(environmentService) {
158
- this.environmentService = environmentService;
159
- }
160
- HostService.prototype.host = function () {
161
- if (this._host) {
162
- return this._host;
163
- }
164
- switch (this.environmentService.getEnvironment()) {
165
- case i1.Environment.LOCAL:
166
- this._host = 'developer-training-api.vendasta-local.com';
167
- break;
168
- case i1.Environment.TEST:
169
- this._host = '';
170
- break;
171
- case i1.Environment.DEMO:
172
- this._host = 'developer-training-demo.apigateway.co';
173
- break;
174
- case i1.Environment.PROD:
175
- this._host = 'developer-training-prod.apigateway.co';
176
- break;
177
- }
178
- return this._host;
179
- };
180
- HostService.prototype.httpsHost = function () {
181
- if (this._httpsHost) {
182
- return this._httpsHost;
183
- }
184
- switch (this.environmentService.getEnvironment()) {
185
- case i1.Environment.LOCAL:
186
- this._httpsHost = 'developer-training.vendasta-local.com';
187
- break;
188
- case i1.Environment.TEST:
189
- this._httpsHost = '';
190
- break;
191
- case i1.Environment.DEMO:
192
- this._httpsHost = 'developer-training-demo.apigateway.co';
193
- break;
194
- case i1.Environment.PROD:
195
- this._httpsHost = 'developer-training-prod.apigateway.co';
196
- break;
197
- }
198
- return this._httpsHost;
199
- };
200
- HostService.prototype.hostWithScheme = function () {
201
- var scheme = this.environmentService.getEnvironment() === i1.Environment.LOCAL ? 'http://' : 'https://';
202
- return scheme + this.host();
203
- };
204
- HostService.prototype.httpsHostWithScheme = function () {
205
- var scheme = this.environmentService.getEnvironment() === i1.Environment.LOCAL ? 'http://' : 'https://';
206
- return scheme + this.httpsHost();
207
- };
208
- return HostService;
209
- }());
210
- HostService.ɵprov = i0.ɵɵdefineInjectable({ factory: function HostService_Factory() { return new HostService(i0.ɵɵinject(i1.EnvironmentService)); }, token: HostService, providedIn: "root" });
211
- HostService.decorators = [
212
- { type: i0.Injectable, args: [{ providedIn: 'root' },] }
213
- ];
214
- HostService.ctorParameters = function () { return [
215
- { type: i1.EnvironmentService }
216
- ]; };
217
-
218
- // *********************************
219
- var BusinessQAApiService = /** @class */ (function () {
220
- function BusinessQAApiService(http, hostService) {
221
- this.http = http;
222
- this.hostService = hostService;
223
- }
224
- BusinessQAApiService.prototype.apiOptions = function () {
225
- return {
226
- headers: new i1$1.HttpHeaders({
227
- 'Content-Type': 'application/json'
228
- }),
229
- withCredentials: true
230
- };
231
- };
232
- BusinessQAApiService.prototype.getBusinessQuestionsAnswers = function (r) {
233
- var request = (r.toApiJson) ? r : new GetBusinessQuestionsAnswersRequest(r);
234
- return this.http.post(this.hostService.hostWithScheme() + "/developertraining.v1.BusinessQA/GetBusinessQuestionsAnswers", request.toApiJson(), this.apiOptions())
235
- .pipe(operators.map(function (resp) { return GetBusinessQuestionsAnswersResponse.fromProto(resp); }), operators.share());
236
- };
237
- BusinessQAApiService.prototype.replaceBusinessQuestionsAnswers = function (r) {
238
- var request = (r.toApiJson) ? r : new ReplaceBusinessQuestionsAnswersRequest(r);
239
- return this.http.post(this.hostService.hostWithScheme() + "/developertraining.v1.BusinessQA/ReplaceBusinessQuestionsAnswers", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
240
- };
241
- return BusinessQAApiService;
242
- }());
243
- BusinessQAApiService.ɵprov = i0.ɵɵdefineInjectable({ factory: function BusinessQAApiService_Factory() { return new BusinessQAApiService(i0.ɵɵinject(i1$1.HttpClient), i0.ɵɵinject(HostService)); }, token: BusinessQAApiService, providedIn: "root" });
244
- BusinessQAApiService.decorators = [
245
- { type: i0.Injectable, args: [{ providedIn: 'root' },] }
246
- ];
247
- BusinessQAApiService.ctorParameters = function () { return [
248
- { type: i1$1.HttpClient },
249
- { type: HostService }
250
- ]; };
251
-
252
- // *********************************
253
-
254
- /**
255
- * Generated bundle index. Do not edit.
256
- */
257
-
258
- exports.BusinessQAApiService = BusinessQAApiService;
259
- exports.FieldMask = FieldMask;
260
- exports.GetBusinessQuestionsAnswersRequest = GetBusinessQuestionsAnswersRequest;
261
- exports.GetBusinessQuestionsAnswersResponse = GetBusinessQuestionsAnswersResponse;
262
- exports.QuestionsAnswers = QuestionsAnswers;
263
- exports.ReplaceBusinessQuestionsAnswersRequest = ReplaceBusinessQuestionsAnswersRequest;
264
-
265
- Object.defineProperty(exports, '__esModule', { value: true });
266
-
267
- })));
268
- //# sourceMappingURL=vendasta-developer-training.umd.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"vendasta-developer-training.umd.js","sources":["../../../developer_training_sdk/src/lib/_internal/objects/field-mask.ts","../../../developer_training_sdk/src/lib/_internal/objects/businessqa.ts","../../../developer_training_sdk/src/lib/_internal/objects/index.ts","../../../developer_training_sdk/src/lib/_generated/host.service.ts","../../../developer_training_sdk/src/lib/_internal/business-qa.api.service.ts","../../../developer_training_sdk/src/lib/_internal/index.ts","../../../developer_training_sdk/src/vendasta-developer-training.ts"],"sourcesContent":["// *********************************\n// Code generated by sdkgen\n// DO NOT EDIT!.\n//\n// Objects.\n// *********************************\nimport * as i from '../interfaces';\n\n\nexport class FieldMask implements i.FieldMaskInterface {\n paths: string[];\n\n static fromProto(proto: any): FieldMask {\n let m = new FieldMask();\n m = Object.assign(m, proto);\n return m;\n }\n\n constructor(kwargs?: i.FieldMaskInterface) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n\n toApiJson(): object {\n if (\n typeof this.paths === 'undefined') {\n return {};\n }\n \n const toReturn: {\n [key: string]: any;\n } = {};\n \n if (typeof this.paths !== 'undefined') {toReturn['paths'] = this.paths;}\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 { FieldMask } from './field-mask';\n\nexport class GetBusinessQuestionsAnswersRequest implements i.GetBusinessQuestionsAnswersRequestInterface {\n businessId: string;\n\n static fromProto(proto: any): GetBusinessQuestionsAnswersRequest {\n let m = new GetBusinessQuestionsAnswersRequest();\n m = Object.assign(m, proto);\n return m;\n }\n\n constructor(kwargs?: i.GetBusinessQuestionsAnswersRequestInterface) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n\n toApiJson(): object {\n if (\n typeof this.businessId === 'undefined') {\n return {};\n }\n \n const toReturn: {\n [key: string]: any;\n } = {};\n \n if (typeof this.businessId !== 'undefined') {toReturn['businessId'] = this.businessId;}\n return toReturn;\n }\n}\n\nexport class GetBusinessQuestionsAnswersResponse implements i.GetBusinessQuestionsAnswersResponseInterface {\n businessId: string;\n answers: QuestionsAnswers;\n\n static fromProto(proto: any): GetBusinessQuestionsAnswersResponse {\n let m = new GetBusinessQuestionsAnswersResponse();\n m = Object.assign(m, proto);\n if (proto.answers) {m.answers = QuestionsAnswers.fromProto(proto.answers);}\n return m;\n }\n\n constructor(kwargs?: i.GetBusinessQuestionsAnswersResponseInterface) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n\n toApiJson(): object {\n if (\n typeof this.businessId === 'undefined' &&\n typeof this.answers === 'undefined') {\n return {};\n }\n \n const toReturn: {\n [key: string]: any;\n } = {};\n \n if (typeof this.businessId !== 'undefined') {toReturn['businessId'] = this.businessId;}\n if (typeof this.answers !== 'undefined' && this.answers !== null) {toReturn['answers'] = 'toApiJson' in this.answers ? (this.answers as any).toApiJson() : this.answers;}\n return toReturn;\n }\n}\n\nexport class QuestionsAnswers implements i.QuestionsAnswersInterface {\n whatIsBestTimeOfDayToContact: string;\n isThisPlaceWheelchairAccessible: string;\n\n static fromProto(proto: any): QuestionsAnswers {\n let m = new QuestionsAnswers();\n m = Object.assign(m, proto);\n return m;\n }\n\n constructor(kwargs?: i.QuestionsAnswersInterface) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n\n toApiJson(): object {\n if (\n typeof this.whatIsBestTimeOfDayToContact === 'undefined' &&\n typeof this.isThisPlaceWheelchairAccessible === 'undefined') {\n return {};\n }\n \n const toReturn: {\n [key: string]: any;\n } = {};\n \n if (typeof this.whatIsBestTimeOfDayToContact !== 'undefined') {toReturn['whatIsBestTimeOfDayToContact'] = this.whatIsBestTimeOfDayToContact;}\n if (typeof this.isThisPlaceWheelchairAccessible !== 'undefined') {toReturn['isThisPlaceWheelchairAccessible'] = this.isThisPlaceWheelchairAccessible;}\n return toReturn;\n }\n}\n\nexport class ReplaceBusinessQuestionsAnswersRequest implements i.ReplaceBusinessQuestionsAnswersRequestInterface {\n businessId: string;\n fieldMask: FieldMask;\n answers: QuestionsAnswers;\n\n static fromProto(proto: any): ReplaceBusinessQuestionsAnswersRequest {\n let m = new ReplaceBusinessQuestionsAnswersRequest();\n m = Object.assign(m, proto);\n if (proto.fieldMask) {m.fieldMask = FieldMask.fromProto(proto.fieldMask);}\n if (proto.answers) {m.answers = QuestionsAnswers.fromProto(proto.answers);}\n return m;\n }\n\n constructor(kwargs?: i.ReplaceBusinessQuestionsAnswersRequestInterface) {\n if (!kwargs) {\n return;\n }\n Object.assign(this, kwargs);\n }\n\n toApiJson(): object {\n if (\n typeof this.businessId === 'undefined' &&\n typeof this.fieldMask === 'undefined' &&\n typeof this.answers === 'undefined') {\n return {};\n }\n \n const toReturn: {\n [key: string]: any;\n } = {};\n \n if (typeof this.businessId !== 'undefined') {toReturn['businessId'] = this.businessId;}\n if (typeof this.fieldMask !== 'undefined' && this.fieldMask !== null) {toReturn['fieldMask'] = 'toApiJson' in this.fieldMask ? (this.fieldMask as any).toApiJson() : this.fieldMask;}\n if (typeof this.answers !== 'undefined' && this.answers !== null) {toReturn['answers'] = 'toApiJson' in this.answers ? (this.answers as any).toApiJson() : this.answers;}\n return toReturn;\n }\n}\n\n","// *********************************\n// Code generated by sdkgen\n// DO NOT EDIT!.\n//\n// Objects Index.\n// *********************************\nexport {\n FieldMask,\n} from './field-mask';\n\nexport {\n GetBusinessQuestionsAnswersRequest,\n GetBusinessQuestionsAnswersResponse,\n QuestionsAnswers,\n ReplaceBusinessQuestionsAnswersRequest,\n} from './businessqa';\n\n","import { Injectable } from '@angular/core';\nimport { EnvironmentService, Environment } from '@vendasta/core';\n\n@Injectable({providedIn: 'root'})\nexport class HostService {\n private _host: string;\n private _httpsHost: string;\n\n constructor(private environmentService: EnvironmentService) {\n }\n\n host(): string {\n if (this._host) {\n return this._host;\n }\n\n switch (this.environmentService.getEnvironment()) {\n case Environment.LOCAL:\n this._host = 'developer-training-api.vendasta-local.com';\n break;\n case Environment.TEST:\n this._host = '';\n break;\n case Environment.DEMO:\n this._host = 'developer-training-demo.apigateway.co';\n break;\n case Environment.PROD:\n this._host = 'developer-training-prod.apigateway.co';\n break;\n }\n return this._host;\n }\n\n httpsHost(): string {\n if (this._httpsHost) {\n return this._httpsHost;\n }\n\n switch (this.environmentService.getEnvironment()) {\n case Environment.LOCAL:\n this._httpsHost = 'developer-training.vendasta-local.com';\n break;\n case Environment.TEST:\n this._httpsHost = '';\n break;\n case Environment.DEMO:\n this._httpsHost = 'developer-training-demo.apigateway.co';\n break;\n case Environment.PROD:\n this._httpsHost = 'developer-training-prod.apigateway.co';\n break;\n }\n return this._httpsHost;\n }\n\n hostWithScheme(): string {\n const scheme = this.environmentService.getEnvironment() === Environment.LOCAL ? 'http://' : 'https://';\n return scheme + this.host()\n }\n\n httpsHostWithScheme(): string {\n const scheme = this.environmentService.getEnvironment() === Environment.LOCAL ? 'http://' : 'https://';\n return scheme + this.httpsHost()\n }\n}\n","// *********************************\n// Code generated by sdkgen\n// DO NOT EDIT!.\n//\n// API Service.\n// *********************************\nimport {Injectable} from '@angular/core';\nimport {\n GetBusinessQuestionsAnswersRequest,\n GetBusinessQuestionsAnswersResponse,\n ReplaceBusinessQuestionsAnswersRequest,\n} from './objects/';\nimport {\n GetBusinessQuestionsAnswersRequestInterface,\n GetBusinessQuestionsAnswersResponseInterface,\n ReplaceBusinessQuestionsAnswersRequestInterface,\n} from './interfaces/';\nimport {HttpHeaders, HttpClient, HttpResponse} from '@angular/common/http';\nimport {HostService} from '../_generated/host.service';\nimport {Observable} from 'rxjs';\nimport {map, share} from 'rxjs/operators';\n\n@Injectable({providedIn: 'root'})\nexport class BusinessQAApiService {\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 getBusinessQuestionsAnswers(r: GetBusinessQuestionsAnswersRequest | GetBusinessQuestionsAnswersRequestInterface): Observable<GetBusinessQuestionsAnswersResponse> {\n const request = ((<GetBusinessQuestionsAnswersRequest>r).toApiJson) ? (<GetBusinessQuestionsAnswersRequest>r) : new GetBusinessQuestionsAnswersRequest(r);\n return this.http.post<GetBusinessQuestionsAnswersResponseInterface>(this.hostService.hostWithScheme() + \"/developertraining.v1.BusinessQA/GetBusinessQuestionsAnswers\", request.toApiJson(), this.apiOptions())\n .pipe(\n map(resp => GetBusinessQuestionsAnswersResponse.fromProto(resp)),\n share()\n );\n }\n replaceBusinessQuestionsAnswers(r: ReplaceBusinessQuestionsAnswersRequest | ReplaceBusinessQuestionsAnswersRequestInterface): Observable<HttpResponse<null>> {\n const request = ((<ReplaceBusinessQuestionsAnswersRequest>r).toApiJson) ? (<ReplaceBusinessQuestionsAnswersRequest>r) : new ReplaceBusinessQuestionsAnswersRequest(r);\n return this.http.post<null>(this.hostService.hostWithScheme() + \"/developertraining.v1.BusinessQA/ReplaceBusinessQuestionsAnswers\", request.toApiJson(), {...this.apiOptions(), observe: 'response'});\n }\n \n}\n","// *********************************\n// Code generated by sdkgen\n// DO NOT EDIT!.\n//\n// Index.\n// *********************************\nexport * from './objects';\nexport * from './interfaces';\nexport { BusinessQAApiService } from './business-qa.api.service';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["Environment","Injectable","EnvironmentService","HttpHeaders","map","share","HttpClient"],"mappings":";;;;;;;QAkBI,mBAAY,MAA6B;YACrC,IAAI,CAAC,MAAM,EAAE;gBACT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