@vendasta/developer-training 0.1.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 (45) 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/esm2020/public_api.mjs +2 -0
  12. package/esm2020/vendasta-developer-training.mjs +5 -0
  13. package/fesm2015/vendasta-developer-training.mjs +195 -0
  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 +4 -11
  18. package/lib/_internal/business-qa.api.service.d.ts +3 -2
  19. package/lib/_internal/index.d.ts +2 -2
  20. package/lib/_internal/objects/businessqa.d.ts +1 -1
  21. package/lib/_internal/objects/field-mask.d.ts +1 -1
  22. package/lib/index.d.ts +1 -2
  23. package/package.json +26 -17
  24. package/public_api.d.ts +1 -1
  25. package/src/README.md +1 -0
  26. package/bundles/vendasta-developer-training.umd.js +0 -296
  27. package/bundles/vendasta-developer-training.umd.js.map +0 -1
  28. package/bundles/vendasta-developer-training.umd.min.js +0 -2
  29. package/bundles/vendasta-developer-training.umd.min.js.map +0 -1
  30. package/esm2015/lib/_generated/host.service.js +0 -63
  31. package/esm2015/lib/_internal/business-qa.api.service.js +0 -43
  32. package/esm2015/lib/_internal/index.js +0 -10
  33. package/esm2015/lib/_internal/interfaces/businessqa.interface.js +0 -2
  34. package/esm2015/lib/_internal/interfaces/field-mask.interface.js +0 -8
  35. package/esm2015/lib/_internal/interfaces/index.js +0 -2
  36. package/esm2015/lib/_internal/objects/businessqa.js +0 -119
  37. package/esm2015/lib/_internal/objects/field-mask.js +0 -24
  38. package/esm2015/lib/_internal/objects/index.js +0 -9
  39. package/esm2015/lib/developer-training.module.js +0 -33
  40. package/esm2015/lib/index.js +0 -3
  41. package/esm2015/public_api.js +0 -2
  42. package/esm2015/vendasta-developer-training.js +0 -5
  43. package/fesm2015/vendasta-developer-training.js +0 -269
  44. package/fesm2015/vendasta-developer-training.js.map +0 -1
  45. package/lib/developer-training.module.d.ts +0 -6
@@ -1,269 +0,0 @@
1
- import { ɵɵinject, ɵɵdefineInjectable, ɵsetClassMetadata, Injectable, ɵɵdefineNgModule, ɵɵdefineInjector, ɵɵsetNgModuleScope, NgModule } from '@angular/core';
2
- import { Environment, EnvironmentService, SessionServiceModule, EnvironmentServiceModule } from '@vendasta/core';
3
- import { HttpHeaders, HttpClient } from '@angular/common/http';
4
- import { map, share } from 'rxjs/operators';
5
-
6
- class FieldMask {
7
- constructor(kwargs) {
8
- if (!kwargs) {
9
- return;
10
- }
11
- Object.assign(this, kwargs);
12
- }
13
- static fromProto(proto) {
14
- let m = new FieldMask();
15
- m = Object.assign(m, proto);
16
- return m;
17
- }
18
- toApiJson() {
19
- if (typeof this.paths === 'undefined') {
20
- return {};
21
- }
22
- const toReturn = {};
23
- if (typeof this.paths !== 'undefined') {
24
- toReturn['paths'] = this.paths;
25
- }
26
- return toReturn;
27
- }
28
- }
29
-
30
- class GetBusinessQuestionsAnswersRequest {
31
- constructor(kwargs) {
32
- if (!kwargs) {
33
- return;
34
- }
35
- Object.assign(this, kwargs);
36
- }
37
- static fromProto(proto) {
38
- let m = new GetBusinessQuestionsAnswersRequest();
39
- m = Object.assign(m, proto);
40
- return m;
41
- }
42
- toApiJson() {
43
- if (typeof this.businessId === 'undefined') {
44
- return {};
45
- }
46
- const toReturn = {};
47
- if (typeof this.businessId !== 'undefined') {
48
- toReturn['businessId'] = this.businessId;
49
- }
50
- return toReturn;
51
- }
52
- }
53
- class GetBusinessQuestionsAnswersResponse {
54
- constructor(kwargs) {
55
- if (!kwargs) {
56
- return;
57
- }
58
- Object.assign(this, kwargs);
59
- }
60
- static fromProto(proto) {
61
- let m = new GetBusinessQuestionsAnswersResponse();
62
- m = Object.assign(m, proto);
63
- if (proto.answers) {
64
- m.answers = QuestionsAnswers.fromProto(proto.answers);
65
- }
66
- return m;
67
- }
68
- toApiJson() {
69
- if (typeof this.businessId === 'undefined' &&
70
- typeof this.answers === 'undefined') {
71
- return {};
72
- }
73
- const toReturn = {};
74
- if (typeof this.businessId !== 'undefined') {
75
- toReturn['businessId'] = this.businessId;
76
- }
77
- if (typeof this.answers !== 'undefined' && this.answers !== null) {
78
- toReturn['answers'] = 'toApiJson' in this.answers ? this.answers.toApiJson() : this.answers;
79
- }
80
- return toReturn;
81
- }
82
- }
83
- class QuestionsAnswers {
84
- constructor(kwargs) {
85
- if (!kwargs) {
86
- return;
87
- }
88
- Object.assign(this, kwargs);
89
- }
90
- static fromProto(proto) {
91
- let m = new QuestionsAnswers();
92
- m = Object.assign(m, proto);
93
- return m;
94
- }
95
- toApiJson() {
96
- if (typeof this.whatIsBestTimeOfDayToContact === 'undefined' &&
97
- typeof this.isThisPlaceWheelchairAccessible === 'undefined') {
98
- return {};
99
- }
100
- const toReturn = {};
101
- if (typeof this.whatIsBestTimeOfDayToContact !== 'undefined') {
102
- toReturn['whatIsBestTimeOfDayToContact'] = this.whatIsBestTimeOfDayToContact;
103
- }
104
- if (typeof this.isThisPlaceWheelchairAccessible !== 'undefined') {
105
- toReturn['isThisPlaceWheelchairAccessible'] = this.isThisPlaceWheelchairAccessible;
106
- }
107
- return toReturn;
108
- }
109
- }
110
- class ReplaceBusinessQuestionsAnswersRequest {
111
- constructor(kwargs) {
112
- if (!kwargs) {
113
- return;
114
- }
115
- Object.assign(this, kwargs);
116
- }
117
- static fromProto(proto) {
118
- let m = new ReplaceBusinessQuestionsAnswersRequest();
119
- m = Object.assign(m, proto);
120
- if (proto.fieldMask) {
121
- m.fieldMask = FieldMask.fromProto(proto.fieldMask);
122
- }
123
- if (proto.answers) {
124
- m.answers = QuestionsAnswers.fromProto(proto.answers);
125
- }
126
- return m;
127
- }
128
- toApiJson() {
129
- if (typeof this.businessId === 'undefined' &&
130
- typeof this.fieldMask === 'undefined' &&
131
- typeof this.answers === 'undefined') {
132
- return {};
133
- }
134
- const toReturn = {};
135
- if (typeof this.businessId !== 'undefined') {
136
- toReturn['businessId'] = this.businessId;
137
- }
138
- if (typeof this.fieldMask !== 'undefined' && this.fieldMask !== null) {
139
- toReturn['fieldMask'] = 'toApiJson' in this.fieldMask ? this.fieldMask.toApiJson() : this.fieldMask;
140
- }
141
- if (typeof this.answers !== 'undefined' && this.answers !== null) {
142
- toReturn['answers'] = 'toApiJson' in this.answers ? this.answers.toApiJson() : this.answers;
143
- }
144
- return toReturn;
145
- }
146
- }
147
-
148
- // *********************************
149
-
150
- class HostService {
151
- constructor(environmentService) {
152
- this.environmentService = environmentService;
153
- }
154
- host() {
155
- if (this._host) {
156
- return this._host;
157
- }
158
- switch (this.environmentService.getEnvironment()) {
159
- case Environment.LOCAL:
160
- this._host = 'developer-training-api.vendasta-local.com';
161
- break;
162
- case Environment.TEST:
163
- this._host = '';
164
- break;
165
- case Environment.DEMO:
166
- this._host = 'developer-training-demo.apigateway.co';
167
- break;
168
- case Environment.PROD:
169
- this._host = 'developer-training-prod.apigateway.co';
170
- break;
171
- }
172
- return this._host;
173
- }
174
- httpsHost() {
175
- if (this._httpsHost) {
176
- return this._httpsHost;
177
- }
178
- switch (this.environmentService.getEnvironment()) {
179
- case Environment.LOCAL:
180
- this._httpsHost = 'developer-training.vendasta-local.com';
181
- break;
182
- case Environment.TEST:
183
- this._httpsHost = '';
184
- break;
185
- case Environment.DEMO:
186
- this._httpsHost = 'developer-training-demo.apigateway.co';
187
- break;
188
- case Environment.PROD:
189
- this._httpsHost = 'developer-training-prod.apigateway.co';
190
- break;
191
- }
192
- return this._httpsHost;
193
- }
194
- hostWithScheme() {
195
- const scheme = this.environmentService.getEnvironment() === Environment.LOCAL ? 'http://' : 'https://';
196
- return scheme + this.host();
197
- }
198
- httpsHostWithScheme() {
199
- const scheme = this.environmentService.getEnvironment() === Environment.LOCAL ? 'http://' : 'https://';
200
- return scheme + this.httpsHost();
201
- }
202
- }
203
- HostService.ɵfac = function HostService_Factory(t) { return new (t || HostService)(ɵɵinject(EnvironmentService)); };
204
- HostService.ɵprov = ɵɵdefineInjectable({ token: HostService, factory: HostService.ɵfac });
205
- /*@__PURE__*/ (function () { ɵsetClassMetadata(HostService, [{
206
- type: Injectable
207
- }], function () { return [{ type: EnvironmentService }]; }, null); })();
208
-
209
- // *********************************
210
- class BusinessQAApiService {
211
- constructor(http, hostService) {
212
- this.http = http;
213
- this.hostService = hostService;
214
- }
215
- apiOptions() {
216
- return {
217
- headers: new HttpHeaders({
218
- 'Content-Type': 'application/json'
219
- }),
220
- withCredentials: true
221
- };
222
- }
223
- getBusinessQuestionsAnswers(r) {
224
- const request = (r.toApiJson) ? r : new GetBusinessQuestionsAnswersRequest(r);
225
- return this.http.post(this.hostService.hostWithScheme() + "/developertraining.v1.BusinessQA/GetBusinessQuestionsAnswers", request.toApiJson(), this.apiOptions())
226
- .pipe(map(resp => GetBusinessQuestionsAnswersResponse.fromProto(resp)), share());
227
- }
228
- replaceBusinessQuestionsAnswers(r) {
229
- const request = (r.toApiJson) ? r : new ReplaceBusinessQuestionsAnswersRequest(r);
230
- return this.http.post(this.hostService.hostWithScheme() + "/developertraining.v1.BusinessQA/ReplaceBusinessQuestionsAnswers", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
231
- }
232
- }
233
- BusinessQAApiService.ɵfac = function BusinessQAApiService_Factory(t) { return new (t || BusinessQAApiService)(ɵɵinject(HttpClient), ɵɵinject(HostService)); };
234
- BusinessQAApiService.ɵprov = ɵɵdefineInjectable({ token: BusinessQAApiService, factory: BusinessQAApiService.ɵfac });
235
- /*@__PURE__*/ (function () { ɵsetClassMetadata(BusinessQAApiService, [{
236
- type: Injectable
237
- }], function () { return [{ type: HttpClient }, { type: HostService }]; }, null); })();
238
-
239
- // *********************************
240
- class DeveloperTrainingModule {
241
- }
242
- DeveloperTrainingModule.ɵmod = ɵɵdefineNgModule({ type: DeveloperTrainingModule });
243
- DeveloperTrainingModule.ɵinj = ɵɵdefineInjector({ factory: function DeveloperTrainingModule_Factory(t) { return new (t || DeveloperTrainingModule)(); }, providers: [
244
- BusinessQAApiService,
245
- HostService
246
- ], imports: [[SessionServiceModule, EnvironmentServiceModule]] });
247
- (function () { (typeof ngJitMode === "undefined" || ngJitMode) && ɵɵsetNgModuleScope(DeveloperTrainingModule, { imports: [SessionServiceModule, EnvironmentServiceModule] }); })();
248
- /*@__PURE__*/ (function () { ɵsetClassMetadata(DeveloperTrainingModule, [{
249
- type: NgModule,
250
- args: [{
251
- imports: [SessionServiceModule, EnvironmentServiceModule],
252
- providers: [
253
- BusinessQAApiService,
254
- HostService
255
- ],
256
- declarations: [],
257
- exports: [],
258
- entryComponents: []
259
- }]
260
- }], null, null); })();
261
-
262
- // *********************************
263
-
264
- /**
265
- * Generated bundle index. Do not edit.
266
- */
267
-
268
- export { BusinessQAApiService, DeveloperTrainingModule, FieldMask, GetBusinessQuestionsAnswersRequest, GetBusinessQuestionsAnswersResponse, QuestionsAnswers, ReplaceBusinessQuestionsAnswersRequest };
269
- //# sourceMappingURL=vendasta-developer-training.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"vendasta-developer-training.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/developer-training.module.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/index';\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/index';\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()\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()\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// Module.\n// *********************************\nimport { NgModule } from '@angular/core';\nimport { SessionServiceModule, EnvironmentServiceModule } from '@vendasta/core';\nimport { BusinessQAApiService } from './_internal/business-qa.api.service';\nimport {HostService} from './_generated/host.service';\n\n@NgModule({\n imports: [SessionServiceModule, EnvironmentServiceModule],\n providers: [\n BusinessQAApiService,\n HostService\n ],\n declarations: [],\n exports: [],\n entryComponents: []\n})\nexport class DeveloperTrainingModule {}\n","// *********************************\n// Code generated by sdkgen\n// DO NOT EDIT!.\n//\n// Index.\n// *********************************\nexport * from './objects/index';\nexport * from './interfaces/index';\nexport { BusinessQAApiService } from './business-qa.api.service';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;MASa,SAAS;IASlB,YAAY,MAA6B;QACrC,IAAI,CAAC,MAAM,EAAE;YACT,OAAO;SACV;QACD,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;KAC/B;IAXD,OAAO,SAAS,CAAC,KAAU;QACvB,IAAI,CAAC,GAAG,IAAI,SAAS,EAAE,CAAC;QACxB,CAAC,G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;;"}
@@ -1,6 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "@vendasta/core";
3
- export declare class DeveloperTrainingModule {
4
- static ɵmod: i0.ɵɵNgModuleDefWithMeta<DeveloperTrainingModule, never, [typeof i1.SessionServiceModule, typeof i1.EnvironmentServiceModule], never>;
5
- static ɵinj: i0.ɵɵInjectorDef<DeveloperTrainingModule>;
6
- }