@saritasa/renewaire-frontend-sdk 0.1.0-dev.101 → 0.1.0-dev.287

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.
@@ -0,0 +1,1762 @@
1
+ import * as i0 from '@angular/core';
2
+ import { InjectionToken, Optional, Inject, Injectable, SkipSelf, NgModule, makeEnvironmentProviders } from '@angular/core';
3
+ import * as i1 from '@angular/common/http';
4
+ import { HttpHeaders, HttpContext, HttpParams } from '@angular/common/http';
5
+
6
+ const BASE_PATH = new InjectionToken("basePath");
7
+ const COLLECTION_FORMATS = {
8
+ csv: ",",
9
+ tsv: " ",
10
+ ssv: " ",
11
+ pipes: "|",
12
+ };
13
+
14
+ /**
15
+ * Custom HttpParameterCodec
16
+ * Workaround for https://github.com/angular/angular/issues/18261
17
+ */
18
+ class CustomHttpParameterCodec {
19
+ encodeKey(k) {
20
+ return encodeURIComponent(k);
21
+ }
22
+ encodeValue(v) {
23
+ return encodeURIComponent(v);
24
+ }
25
+ decodeKey(k) {
26
+ return decodeURIComponent(k);
27
+ }
28
+ decodeValue(v) {
29
+ return decodeURIComponent(v);
30
+ }
31
+ }
32
+
33
+ class Configuration {
34
+ /**
35
+ * @deprecated Since 5.0. Use credentials instead
36
+ */
37
+ apiKeys;
38
+ username;
39
+ password;
40
+ /**
41
+ * @deprecated Since 5.0. Use credentials instead
42
+ */
43
+ accessToken;
44
+ basePath;
45
+ withCredentials;
46
+ /**
47
+ * Takes care of encoding query- and form-parameters.
48
+ */
49
+ encoder;
50
+ /**
51
+ * Encoding of various path parameter
52
+ * <a href="https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#style-values">styles</a>.
53
+ * <p>
54
+ * See {@link README.md} for more details
55
+ * </p>
56
+ */
57
+ encodeParam;
58
+ /**
59
+ * The keys are the names in the securitySchemes section of the OpenAPI
60
+ * document. They should map to the value used for authentication
61
+ * minus any standard prefixes such as 'Basic' or 'Bearer'.
62
+ */
63
+ credentials;
64
+ constructor({ accessToken, apiKeys, basePath, credentials, encodeParam, encoder, password, username, withCredentials, } = {}) {
65
+ if (apiKeys) {
66
+ this.apiKeys = apiKeys;
67
+ }
68
+ if (username !== undefined) {
69
+ this.username = username;
70
+ }
71
+ if (password !== undefined) {
72
+ this.password = password;
73
+ }
74
+ if (accessToken !== undefined) {
75
+ this.accessToken = accessToken;
76
+ }
77
+ if (basePath !== undefined) {
78
+ this.basePath = basePath;
79
+ }
80
+ if (withCredentials !== undefined) {
81
+ this.withCredentials = withCredentials;
82
+ }
83
+ if (encoder) {
84
+ this.encoder = encoder;
85
+ }
86
+ this.encodeParam =
87
+ encodeParam ?? ((param) => this.defaultEncodeParam(param));
88
+ this.credentials = credentials ?? {};
89
+ // init default Bearer credential
90
+ if (!this.credentials["Bearer"]) {
91
+ this.credentials["Bearer"] = () => {
92
+ return typeof this.accessToken === "function"
93
+ ? this.accessToken()
94
+ : this.accessToken;
95
+ };
96
+ }
97
+ }
98
+ /**
99
+ * Select the correct content-type to use for a request.
100
+ * Uses {@link Configuration#isJsonMime} to determine the correct content-type.
101
+ * If no content type is found return the first found type if the contentTypes is not empty
102
+ * @param contentTypes - the array of content types that are available for selection
103
+ * @returns the selected content-type or <code>undefined</code> if no selection could be made.
104
+ */
105
+ selectHeaderContentType(contentTypes) {
106
+ if (contentTypes.length === 0) {
107
+ return undefined;
108
+ }
109
+ const type = contentTypes.find((x) => this.isJsonMime(x));
110
+ if (type === undefined) {
111
+ return contentTypes[0];
112
+ }
113
+ return type;
114
+ }
115
+ /**
116
+ * Select the correct accept content-type to use for a request.
117
+ * Uses {@link Configuration#isJsonMime} to determine the correct accept content-type.
118
+ * If no content type is found return the first found type if the contentTypes is not empty
119
+ * @param accepts - the array of content types that are available for selection.
120
+ * @returns the selected content-type or <code>undefined</code> if no selection could be made.
121
+ */
122
+ selectHeaderAccept(accepts) {
123
+ if (accepts.length === 0) {
124
+ return undefined;
125
+ }
126
+ const type = accepts.find((x) => this.isJsonMime(x));
127
+ if (type === undefined) {
128
+ return accepts[0];
129
+ }
130
+ return type;
131
+ }
132
+ /**
133
+ * Check if the given MIME is a JSON MIME.
134
+ * JSON MIME examples:
135
+ * application/json
136
+ * application/json; charset=UTF8
137
+ * APPLICATION/JSON
138
+ * application/vnd.company+json
139
+ * @param mime - MIME (Multipurpose Internet Mail Extensions)
140
+ * @return True if the given MIME is JSON, false otherwise.
141
+ */
142
+ isJsonMime(mime) {
143
+ const jsonMime = new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$", "i");
144
+ return (mime !== null &&
145
+ (jsonMime.test(mime) ||
146
+ mime.toLowerCase() === "application/json-patch+json"));
147
+ }
148
+ lookupCredential(key) {
149
+ const value = this.credentials[key];
150
+ return typeof value === "function" ? value() : value;
151
+ }
152
+ addCredentialToHeaders(credentialKey, headerName, headers, prefix) {
153
+ const value = this.lookupCredential(credentialKey);
154
+ return value ? headers.set(headerName, (prefix ?? "") + value) : headers;
155
+ }
156
+ addCredentialToQuery(credentialKey, paramName, query) {
157
+ const value = this.lookupCredential(credentialKey);
158
+ return value ? query.set(paramName, value) : query;
159
+ }
160
+ defaultEncodeParam(param) {
161
+ // This implementation exists as fallback for missing configuration
162
+ // and for backwards compatibility to older typescript-angular generator versions.
163
+ // It only works for the 'simple' parameter style.
164
+ // Date-handling only works for the 'date-time' format.
165
+ // All other styles and Date-formats are probably handled incorrectly.
166
+ //
167
+ // But: if that's all you need (i.e.: the most common use-case): no need for customization!
168
+ const value = param.dataFormat === "date-time" && param.value instanceof Date
169
+ ? param.value.toISOString()
170
+ : param.value;
171
+ return encodeURIComponent(String(value));
172
+ }
173
+ }
174
+
175
+ /**
176
+ * RenewAire CORES API
177
+ *
178
+ * Contact: renewaire@saritasa.com
179
+ *
180
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
181
+ * https://openapi-generator.tech
182
+ * Do not edit the class manually.
183
+ */
184
+ class BaseService {
185
+ basePath = "http://localhost";
186
+ defaultHeaders = new HttpHeaders();
187
+ configuration;
188
+ encoder;
189
+ constructor(basePath, configuration) {
190
+ this.configuration = configuration || new Configuration();
191
+ if (typeof this.configuration.basePath !== "string") {
192
+ const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
193
+ if (firstBasePath != undefined) {
194
+ basePath = firstBasePath;
195
+ }
196
+ if (typeof basePath !== "string") {
197
+ basePath = this.basePath;
198
+ }
199
+ this.configuration.basePath = basePath;
200
+ }
201
+ this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
202
+ }
203
+ canConsumeForm(consumes) {
204
+ return consumes.indexOf("multipart/form-data") !== -1;
205
+ }
206
+ addToHttpParams(httpParams, value, key, isDeep = false) {
207
+ // If the value is an object (but not a Date), recursively add its keys.
208
+ if (typeof value === "object" && !(value instanceof Date)) {
209
+ return this.addToHttpParamsRecursive(httpParams, value, isDeep ? key : undefined, isDeep);
210
+ }
211
+ return this.addToHttpParamsRecursive(httpParams, value, key);
212
+ }
213
+ addToHttpParamsRecursive(httpParams, value, key, isDeep = false) {
214
+ if (value === null || value === undefined) {
215
+ return httpParams;
216
+ }
217
+ if (typeof value === "object") {
218
+ // If JSON format is preferred, key must be provided.
219
+ if (key != null) {
220
+ return isDeep
221
+ ? Object.keys(value).reduce((hp, k) => hp.append(`${key}[${k}]`, value[k]), httpParams)
222
+ : httpParams.append(key, JSON.stringify(value));
223
+ }
224
+ // Otherwise, if it's an array, add each element.
225
+ if (Array.isArray(value)) {
226
+ value.forEach((elem) => (httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)));
227
+ }
228
+ else if (value instanceof Date) {
229
+ if (key != null) {
230
+ httpParams = httpParams.append(key, value.toISOString());
231
+ }
232
+ else {
233
+ throw Error("key may not be null if value is Date");
234
+ }
235
+ }
236
+ else {
237
+ Object.keys(value).forEach((k) => {
238
+ const paramKey = key ? `${key}.${k}` : k;
239
+ httpParams = this.addToHttpParamsRecursive(httpParams, value[k], paramKey);
240
+ });
241
+ }
242
+ return httpParams;
243
+ }
244
+ else if (key != null) {
245
+ return httpParams.append(key, value);
246
+ }
247
+ throw Error("key may not be null if value is not object or array");
248
+ }
249
+ }
250
+
251
+ /**
252
+ * RenewAire CORES API
253
+ *
254
+ * Contact: renewaire@saritasa.com
255
+ *
256
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
257
+ * https://openapi-generator.tech
258
+ * Do not edit the class manually.
259
+ */
260
+ /* tslint:disable:no-unused-variable member-ordering */
261
+ class AuthApiService extends BaseService {
262
+ httpClient;
263
+ constructor(httpClient, basePath, configuration) {
264
+ super(basePath, configuration);
265
+ this.httpClient = httpClient;
266
+ }
267
+ authAuthenticate(requestParameters, observe = "body", reportProgress = false, options) {
268
+ const loginUserCommand = requestParameters?.loginUserCommand;
269
+ if (loginUserCommand === null || loginUserCommand === undefined) {
270
+ throw new Error("Required parameter loginUserCommand was null or undefined when calling authAuthenticate.");
271
+ }
272
+ let localVarHeaders = this.defaultHeaders;
273
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
274
+ this.configuration.selectHeaderAccept([
275
+ "text/plain",
276
+ "application/json",
277
+ "text/json",
278
+ ]);
279
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
280
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
281
+ }
282
+ const localVarHttpContext = options?.context ?? new HttpContext();
283
+ const localVarTransferCache = options?.transferCache ?? true;
284
+ // to determine the Content-Type header
285
+ const consumes = [
286
+ "application/json",
287
+ "text/json",
288
+ "application/*+json",
289
+ ];
290
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
291
+ if (httpContentTypeSelected !== undefined) {
292
+ localVarHeaders = localVarHeaders.set("Content-Type", httpContentTypeSelected);
293
+ }
294
+ let responseType_ = "json";
295
+ if (localVarHttpHeaderAcceptSelected) {
296
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
297
+ responseType_ = "text";
298
+ }
299
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
300
+ responseType_ = "json";
301
+ }
302
+ else {
303
+ responseType_ = "blob";
304
+ }
305
+ }
306
+ let localVarPath = `/api/auth`;
307
+ const { basePath, withCredentials } = this.configuration;
308
+ return this.httpClient.request("post", `${basePath}${localVarPath}`, {
309
+ context: localVarHttpContext,
310
+ body: loginUserCommand,
311
+ responseType: responseType_,
312
+ ...(withCredentials ? { withCredentials } : {}),
313
+ headers: localVarHeaders,
314
+ observe: observe,
315
+ transferCache: localVarTransferCache,
316
+ reportProgress: reportProgress,
317
+ });
318
+ }
319
+ authRefreshToken(requestParameters, observe = "body", reportProgress = false, options) {
320
+ const refreshTokenCommand = requestParameters?.refreshTokenCommand;
321
+ if (refreshTokenCommand === null || refreshTokenCommand === undefined) {
322
+ throw new Error("Required parameter refreshTokenCommand was null or undefined when calling authRefreshToken.");
323
+ }
324
+ let localVarHeaders = this.defaultHeaders;
325
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
326
+ this.configuration.selectHeaderAccept([
327
+ "text/plain",
328
+ "application/json",
329
+ "text/json",
330
+ ]);
331
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
332
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
333
+ }
334
+ const localVarHttpContext = options?.context ?? new HttpContext();
335
+ const localVarTransferCache = options?.transferCache ?? true;
336
+ // to determine the Content-Type header
337
+ const consumes = [
338
+ "application/json",
339
+ "text/json",
340
+ "application/*+json",
341
+ ];
342
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
343
+ if (httpContentTypeSelected !== undefined) {
344
+ localVarHeaders = localVarHeaders.set("Content-Type", httpContentTypeSelected);
345
+ }
346
+ let responseType_ = "json";
347
+ if (localVarHttpHeaderAcceptSelected) {
348
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
349
+ responseType_ = "text";
350
+ }
351
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
352
+ responseType_ = "json";
353
+ }
354
+ else {
355
+ responseType_ = "blob";
356
+ }
357
+ }
358
+ let localVarPath = `/api/auth`;
359
+ const { basePath, withCredentials } = this.configuration;
360
+ return this.httpClient.request("put", `${basePath}${localVarPath}`, {
361
+ context: localVarHttpContext,
362
+ body: refreshTokenCommand,
363
+ responseType: responseType_,
364
+ ...(withCredentials ? { withCredentials } : {}),
365
+ headers: localVarHeaders,
366
+ observe: observe,
367
+ transferCache: localVarTransferCache,
368
+ reportProgress: reportProgress,
369
+ });
370
+ }
371
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AuthApiService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
372
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AuthApiService, providedIn: "root" });
373
+ }
374
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: AuthApiService, decorators: [{
375
+ type: Injectable,
376
+ args: [{
377
+ providedIn: "root",
378
+ }]
379
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
380
+ type: Optional
381
+ }, {
382
+ type: Inject,
383
+ args: [BASE_PATH]
384
+ }] }, { type: Configuration, decorators: [{
385
+ type: Optional
386
+ }] }] });
387
+
388
+ /**
389
+ * RenewAire CORES API
390
+ *
391
+ * Contact: renewaire@saritasa.com
392
+ *
393
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
394
+ * https://openapi-generator.tech
395
+ * Do not edit the class manually.
396
+ */
397
+ /* tslint:disable:no-unused-variable member-ordering */
398
+ class PermissionsApiService extends BaseService {
399
+ httpClient;
400
+ constructor(httpClient, basePath, configuration) {
401
+ super(basePath, configuration);
402
+ this.httpClient = httpClient;
403
+ }
404
+ permissionsGetPermissions(observe = "body", reportProgress = false, options) {
405
+ let localVarHeaders = this.defaultHeaders;
406
+ // authentication (Bearer) required
407
+ localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
408
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
409
+ this.configuration.selectHeaderAccept([
410
+ "text/plain",
411
+ "application/json",
412
+ "text/json",
413
+ ]);
414
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
415
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
416
+ }
417
+ const localVarHttpContext = options?.context ?? new HttpContext();
418
+ const localVarTransferCache = options?.transferCache ?? true;
419
+ let responseType_ = "json";
420
+ if (localVarHttpHeaderAcceptSelected) {
421
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
422
+ responseType_ = "text";
423
+ }
424
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
425
+ responseType_ = "json";
426
+ }
427
+ else {
428
+ responseType_ = "blob";
429
+ }
430
+ }
431
+ let localVarPath = `/api/permissions`;
432
+ const { basePath, withCredentials } = this.configuration;
433
+ return this.httpClient.request("get", `${basePath}${localVarPath}`, {
434
+ context: localVarHttpContext,
435
+ responseType: responseType_,
436
+ ...(withCredentials ? { withCredentials } : {}),
437
+ headers: localVarHeaders,
438
+ observe: observe,
439
+ transferCache: localVarTransferCache,
440
+ reportProgress: reportProgress,
441
+ });
442
+ }
443
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: PermissionsApiService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
444
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: PermissionsApiService, providedIn: "root" });
445
+ }
446
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: PermissionsApiService, decorators: [{
447
+ type: Injectable,
448
+ args: [{
449
+ providedIn: "root",
450
+ }]
451
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
452
+ type: Optional
453
+ }, {
454
+ type: Inject,
455
+ args: [BASE_PATH]
456
+ }] }, { type: Configuration, decorators: [{
457
+ type: Optional
458
+ }] }] });
459
+
460
+ /**
461
+ * RenewAire CORES API
462
+ *
463
+ * Contact: renewaire@saritasa.com
464
+ *
465
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
466
+ * https://openapi-generator.tech
467
+ * Do not edit the class manually.
468
+ */
469
+ /* tslint:disable:no-unused-variable member-ordering */
470
+ class RegionsApiService extends BaseService {
471
+ httpClient;
472
+ constructor(httpClient, basePath, configuration) {
473
+ super(basePath, configuration);
474
+ this.httpClient = httpClient;
475
+ }
476
+ regionsSearchRegions(requestParameters, observe = "body", reportProgress = false, options) {
477
+ const name = requestParameters?.name;
478
+ const code = requestParameters?.code;
479
+ const level = requestParameters?.level;
480
+ const orderBy = requestParameters?.orderBy;
481
+ const page = requestParameters?.page;
482
+ const pageSize = requestParameters?.pageSize;
483
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
484
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, name, "Name");
485
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, code, "Code");
486
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, level, "Level");
487
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, orderBy, "OrderBy");
488
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, page, "Page");
489
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, pageSize, "PageSize");
490
+ let localVarHeaders = this.defaultHeaders;
491
+ // authentication (Bearer) required
492
+ localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
493
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
494
+ this.configuration.selectHeaderAccept([
495
+ "text/plain",
496
+ "application/json",
497
+ "text/json",
498
+ ]);
499
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
500
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
501
+ }
502
+ const localVarHttpContext = options?.context ?? new HttpContext();
503
+ const localVarTransferCache = options?.transferCache ?? true;
504
+ let responseType_ = "json";
505
+ if (localVarHttpHeaderAcceptSelected) {
506
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
507
+ responseType_ = "text";
508
+ }
509
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
510
+ responseType_ = "json";
511
+ }
512
+ else {
513
+ responseType_ = "blob";
514
+ }
515
+ }
516
+ let localVarPath = `/api/regions`;
517
+ const { basePath, withCredentials } = this.configuration;
518
+ return this.httpClient.request("get", `${basePath}${localVarPath}`, {
519
+ context: localVarHttpContext,
520
+ params: localVarQueryParameters,
521
+ responseType: responseType_,
522
+ ...(withCredentials ? { withCredentials } : {}),
523
+ headers: localVarHeaders,
524
+ observe: observe,
525
+ transferCache: localVarTransferCache,
526
+ reportProgress: reportProgress,
527
+ });
528
+ }
529
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: RegionsApiService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
530
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: RegionsApiService, providedIn: "root" });
531
+ }
532
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: RegionsApiService, decorators: [{
533
+ type: Injectable,
534
+ args: [{
535
+ providedIn: "root",
536
+ }]
537
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
538
+ type: Optional
539
+ }, {
540
+ type: Inject,
541
+ args: [BASE_PATH]
542
+ }] }, { type: Configuration, decorators: [{
543
+ type: Optional
544
+ }] }] });
545
+
546
+ /**
547
+ * RenewAire CORES API
548
+ *
549
+ * Contact: renewaire@saritasa.com
550
+ *
551
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
552
+ * https://openapi-generator.tech
553
+ * Do not edit the class manually.
554
+ */
555
+ /* tslint:disable:no-unused-variable member-ordering */
556
+ class RepTerritoriesApiService extends BaseService {
557
+ httpClient;
558
+ constructor(httpClient, basePath, configuration) {
559
+ super(basePath, configuration);
560
+ this.httpClient = httpClient;
561
+ }
562
+ repTerritoriesCreateRepTerritory(requestParameters, observe = "body", reportProgress = false, options) {
563
+ const saveRepTerritoryDto = requestParameters?.saveRepTerritoryDto;
564
+ let localVarHeaders = this.defaultHeaders;
565
+ // authentication (Bearer) required
566
+ localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
567
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
568
+ this.configuration.selectHeaderAccept([
569
+ "text/plain",
570
+ "application/json",
571
+ "text/json",
572
+ ]);
573
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
574
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
575
+ }
576
+ const localVarHttpContext = options?.context ?? new HttpContext();
577
+ const localVarTransferCache = options?.transferCache ?? true;
578
+ // to determine the Content-Type header
579
+ const consumes = [
580
+ "application/json",
581
+ "text/json",
582
+ "application/*+json",
583
+ ];
584
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
585
+ if (httpContentTypeSelected !== undefined) {
586
+ localVarHeaders = localVarHeaders.set("Content-Type", httpContentTypeSelected);
587
+ }
588
+ let responseType_ = "json";
589
+ if (localVarHttpHeaderAcceptSelected) {
590
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
591
+ responseType_ = "text";
592
+ }
593
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
594
+ responseType_ = "json";
595
+ }
596
+ else {
597
+ responseType_ = "blob";
598
+ }
599
+ }
600
+ let localVarPath = `/api/rep-territories`;
601
+ const { basePath, withCredentials } = this.configuration;
602
+ return this.httpClient.request("post", `${basePath}${localVarPath}`, {
603
+ context: localVarHttpContext,
604
+ body: saveRepTerritoryDto,
605
+ responseType: responseType_,
606
+ ...(withCredentials ? { withCredentials } : {}),
607
+ headers: localVarHeaders,
608
+ observe: observe,
609
+ transferCache: localVarTransferCache,
610
+ reportProgress: reportProgress,
611
+ });
612
+ }
613
+ repTerritoriesGetRepTerritory(requestParameters, observe = "body", reportProgress = false, options) {
614
+ const repTerritoryId = requestParameters?.repTerritoryId;
615
+ if (repTerritoryId === null || repTerritoryId === undefined) {
616
+ throw new Error("Required parameter repTerritoryId was null or undefined when calling repTerritoriesGetRepTerritory.");
617
+ }
618
+ let localVarHeaders = this.defaultHeaders;
619
+ // authentication (Bearer) required
620
+ localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
621
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
622
+ this.configuration.selectHeaderAccept([
623
+ "text/plain",
624
+ "application/json",
625
+ "text/json",
626
+ ]);
627
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
628
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
629
+ }
630
+ const localVarHttpContext = options?.context ?? new HttpContext();
631
+ const localVarTransferCache = options?.transferCache ?? true;
632
+ let responseType_ = "json";
633
+ if (localVarHttpHeaderAcceptSelected) {
634
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
635
+ responseType_ = "text";
636
+ }
637
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
638
+ responseType_ = "json";
639
+ }
640
+ else {
641
+ responseType_ = "blob";
642
+ }
643
+ }
644
+ let localVarPath = `/api/rep-territories/${this.configuration.encodeParam({ name: "repTerritoryId", value: repTerritoryId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}`;
645
+ const { basePath, withCredentials } = this.configuration;
646
+ return this.httpClient.request("get", `${basePath}${localVarPath}`, {
647
+ context: localVarHttpContext,
648
+ responseType: responseType_,
649
+ ...(withCredentials ? { withCredentials } : {}),
650
+ headers: localVarHeaders,
651
+ observe: observe,
652
+ transferCache: localVarTransferCache,
653
+ reportProgress: reportProgress,
654
+ });
655
+ }
656
+ repTerritoriesRemoveRepTerritory(requestParameters, observe = "body", reportProgress = false, options) {
657
+ const repTerritoryId = requestParameters?.repTerritoryId;
658
+ if (repTerritoryId === null || repTerritoryId === undefined) {
659
+ throw new Error("Required parameter repTerritoryId was null or undefined when calling repTerritoriesRemoveRepTerritory.");
660
+ }
661
+ let localVarHeaders = this.defaultHeaders;
662
+ // authentication (Bearer) required
663
+ localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
664
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
665
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
666
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
667
+ }
668
+ const localVarHttpContext = options?.context ?? new HttpContext();
669
+ const localVarTransferCache = options?.transferCache ?? true;
670
+ let responseType_ = "json";
671
+ if (localVarHttpHeaderAcceptSelected) {
672
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
673
+ responseType_ = "text";
674
+ }
675
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
676
+ responseType_ = "json";
677
+ }
678
+ else {
679
+ responseType_ = "blob";
680
+ }
681
+ }
682
+ let localVarPath = `/api/rep-territories/${this.configuration.encodeParam({ name: "repTerritoryId", value: repTerritoryId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}`;
683
+ const { basePath, withCredentials } = this.configuration;
684
+ return this.httpClient.request("delete", `${basePath}${localVarPath}`, {
685
+ context: localVarHttpContext,
686
+ responseType: responseType_,
687
+ ...(withCredentials ? { withCredentials } : {}),
688
+ headers: localVarHeaders,
689
+ observe: observe,
690
+ transferCache: localVarTransferCache,
691
+ reportProgress: reportProgress,
692
+ });
693
+ }
694
+ repTerritoriesSearchRsdTerritories(requestParameters, observe = "body", reportProgress = false, options) {
695
+ const repName = requestParameters?.repName;
696
+ const repCode = requestParameters?.repCode;
697
+ const rsdRegionName = requestParameters?.rsdRegionName;
698
+ const orderBy = requestParameters?.orderBy;
699
+ const page = requestParameters?.page;
700
+ const pageSize = requestParameters?.pageSize;
701
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
702
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, repName, "RepName");
703
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, repCode, "RepCode");
704
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, rsdRegionName, "RsdRegionName");
705
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, orderBy, "OrderBy");
706
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, page, "Page");
707
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, pageSize, "PageSize");
708
+ let localVarHeaders = this.defaultHeaders;
709
+ // authentication (Bearer) required
710
+ localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
711
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
712
+ this.configuration.selectHeaderAccept([
713
+ "text/plain",
714
+ "application/json",
715
+ "text/json",
716
+ ]);
717
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
718
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
719
+ }
720
+ const localVarHttpContext = options?.context ?? new HttpContext();
721
+ const localVarTransferCache = options?.transferCache ?? true;
722
+ let responseType_ = "json";
723
+ if (localVarHttpHeaderAcceptSelected) {
724
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
725
+ responseType_ = "text";
726
+ }
727
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
728
+ responseType_ = "json";
729
+ }
730
+ else {
731
+ responseType_ = "blob";
732
+ }
733
+ }
734
+ let localVarPath = `/api/rep-territories`;
735
+ const { basePath, withCredentials } = this.configuration;
736
+ return this.httpClient.request("get", `${basePath}${localVarPath}`, {
737
+ context: localVarHttpContext,
738
+ params: localVarQueryParameters,
739
+ responseType: responseType_,
740
+ ...(withCredentials ? { withCredentials } : {}),
741
+ headers: localVarHeaders,
742
+ observe: observe,
743
+ transferCache: localVarTransferCache,
744
+ reportProgress: reportProgress,
745
+ });
746
+ }
747
+ repTerritoriesUpdateRepTerritory(requestParameters, observe = "body", reportProgress = false, options) {
748
+ const repTerritoryId = requestParameters?.repTerritoryId;
749
+ if (repTerritoryId === null || repTerritoryId === undefined) {
750
+ throw new Error("Required parameter repTerritoryId was null or undefined when calling repTerritoriesUpdateRepTerritory.");
751
+ }
752
+ const saveRepTerritoryDto = requestParameters?.saveRepTerritoryDto;
753
+ let localVarHeaders = this.defaultHeaders;
754
+ // authentication (Bearer) required
755
+ localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
756
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
757
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
758
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
759
+ }
760
+ const localVarHttpContext = options?.context ?? new HttpContext();
761
+ const localVarTransferCache = options?.transferCache ?? true;
762
+ // to determine the Content-Type header
763
+ const consumes = [
764
+ "application/json",
765
+ "text/json",
766
+ "application/*+json",
767
+ ];
768
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
769
+ if (httpContentTypeSelected !== undefined) {
770
+ localVarHeaders = localVarHeaders.set("Content-Type", httpContentTypeSelected);
771
+ }
772
+ let responseType_ = "json";
773
+ if (localVarHttpHeaderAcceptSelected) {
774
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
775
+ responseType_ = "text";
776
+ }
777
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
778
+ responseType_ = "json";
779
+ }
780
+ else {
781
+ responseType_ = "blob";
782
+ }
783
+ }
784
+ let localVarPath = `/api/rep-territories/${this.configuration.encodeParam({ name: "repTerritoryId", value: repTerritoryId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}`;
785
+ const { basePath, withCredentials } = this.configuration;
786
+ return this.httpClient.request("put", `${basePath}${localVarPath}`, {
787
+ context: localVarHttpContext,
788
+ body: saveRepTerritoryDto,
789
+ responseType: responseType_,
790
+ ...(withCredentials ? { withCredentials } : {}),
791
+ headers: localVarHeaders,
792
+ observe: observe,
793
+ transferCache: localVarTransferCache,
794
+ reportProgress: reportProgress,
795
+ });
796
+ }
797
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: RepTerritoriesApiService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
798
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: RepTerritoriesApiService, providedIn: "root" });
799
+ }
800
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: RepTerritoriesApiService, decorators: [{
801
+ type: Injectable,
802
+ args: [{
803
+ providedIn: "root",
804
+ }]
805
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
806
+ type: Optional
807
+ }, {
808
+ type: Inject,
809
+ args: [BASE_PATH]
810
+ }] }, { type: Configuration, decorators: [{
811
+ type: Optional
812
+ }] }] });
813
+
814
+ /**
815
+ * RenewAire CORES API
816
+ *
817
+ * Contact: renewaire@saritasa.com
818
+ *
819
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
820
+ * https://openapi-generator.tech
821
+ * Do not edit the class manually.
822
+ */
823
+ /* tslint:disable:no-unused-variable member-ordering */
824
+ class RsdRegionsApiService extends BaseService {
825
+ httpClient;
826
+ constructor(httpClient, basePath, configuration) {
827
+ super(basePath, configuration);
828
+ this.httpClient = httpClient;
829
+ }
830
+ rsdRegionsCreateRsdRegion(requestParameters, observe = "body", reportProgress = false, options) {
831
+ const createRsdRegionDto = requestParameters?.createRsdRegionDto;
832
+ let localVarHeaders = this.defaultHeaders;
833
+ // authentication (Bearer) required
834
+ localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
835
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
836
+ this.configuration.selectHeaderAccept([
837
+ "text/plain",
838
+ "application/json",
839
+ "text/json",
840
+ ]);
841
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
842
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
843
+ }
844
+ const localVarHttpContext = options?.context ?? new HttpContext();
845
+ const localVarTransferCache = options?.transferCache ?? true;
846
+ // to determine the Content-Type header
847
+ const consumes = [
848
+ "application/json",
849
+ "text/json",
850
+ "application/*+json",
851
+ ];
852
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
853
+ if (httpContentTypeSelected !== undefined) {
854
+ localVarHeaders = localVarHeaders.set("Content-Type", httpContentTypeSelected);
855
+ }
856
+ let responseType_ = "json";
857
+ if (localVarHttpHeaderAcceptSelected) {
858
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
859
+ responseType_ = "text";
860
+ }
861
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
862
+ responseType_ = "json";
863
+ }
864
+ else {
865
+ responseType_ = "blob";
866
+ }
867
+ }
868
+ let localVarPath = `/api/rsd-regions`;
869
+ const { basePath, withCredentials } = this.configuration;
870
+ return this.httpClient.request("post", `${basePath}${localVarPath}`, {
871
+ context: localVarHttpContext,
872
+ body: createRsdRegionDto,
873
+ responseType: responseType_,
874
+ ...(withCredentials ? { withCredentials } : {}),
875
+ headers: localVarHeaders,
876
+ observe: observe,
877
+ transferCache: localVarTransferCache,
878
+ reportProgress: reportProgress,
879
+ });
880
+ }
881
+ rsdRegionsGetRsdRegion(requestParameters, observe = "body", reportProgress = false, options) {
882
+ const id = requestParameters?.id;
883
+ if (id === null || id === undefined) {
884
+ throw new Error("Required parameter id was null or undefined when calling rsdRegionsGetRsdRegion.");
885
+ }
886
+ let localVarHeaders = this.defaultHeaders;
887
+ // authentication (Bearer) required
888
+ localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
889
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
890
+ this.configuration.selectHeaderAccept([
891
+ "text/plain",
892
+ "application/json",
893
+ "text/json",
894
+ ]);
895
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
896
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
897
+ }
898
+ const localVarHttpContext = options?.context ?? new HttpContext();
899
+ const localVarTransferCache = options?.transferCache ?? true;
900
+ let responseType_ = "json";
901
+ if (localVarHttpHeaderAcceptSelected) {
902
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
903
+ responseType_ = "text";
904
+ }
905
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
906
+ responseType_ = "json";
907
+ }
908
+ else {
909
+ responseType_ = "blob";
910
+ }
911
+ }
912
+ let localVarPath = `/api/rsd-regions/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}`;
913
+ const { basePath, withCredentials } = this.configuration;
914
+ return this.httpClient.request("get", `${basePath}${localVarPath}`, {
915
+ context: localVarHttpContext,
916
+ responseType: responseType_,
917
+ ...(withCredentials ? { withCredentials } : {}),
918
+ headers: localVarHeaders,
919
+ observe: observe,
920
+ transferCache: localVarTransferCache,
921
+ reportProgress: reportProgress,
922
+ });
923
+ }
924
+ rsdRegionsRemoveRsdRegion(requestParameters, observe = "body", reportProgress = false, options) {
925
+ const id = requestParameters?.id;
926
+ if (id === null || id === undefined) {
927
+ throw new Error("Required parameter id was null or undefined when calling rsdRegionsRemoveRsdRegion.");
928
+ }
929
+ let localVarHeaders = this.defaultHeaders;
930
+ // authentication (Bearer) required
931
+ localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
932
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
933
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
934
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
935
+ }
936
+ const localVarHttpContext = options?.context ?? new HttpContext();
937
+ const localVarTransferCache = options?.transferCache ?? true;
938
+ let responseType_ = "json";
939
+ if (localVarHttpHeaderAcceptSelected) {
940
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
941
+ responseType_ = "text";
942
+ }
943
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
944
+ responseType_ = "json";
945
+ }
946
+ else {
947
+ responseType_ = "blob";
948
+ }
949
+ }
950
+ let localVarPath = `/api/rsd-regions/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}`;
951
+ const { basePath, withCredentials } = this.configuration;
952
+ return this.httpClient.request("delete", `${basePath}${localVarPath}`, {
953
+ context: localVarHttpContext,
954
+ responseType: responseType_,
955
+ ...(withCredentials ? { withCredentials } : {}),
956
+ headers: localVarHeaders,
957
+ observe: observe,
958
+ transferCache: localVarTransferCache,
959
+ reportProgress: reportProgress,
960
+ });
961
+ }
962
+ rsdRegionsSearchRsdRegions(requestParameters, observe = "body", reportProgress = false, options) {
963
+ const name = requestParameters?.name;
964
+ const isActive = requestParameters?.isActive;
965
+ const rsdUserIds = requestParameters?.rsdUserIds;
966
+ const repTerritoryIds = requestParameters?.repTerritoryIds;
967
+ const orderBy = requestParameters?.orderBy;
968
+ const page = requestParameters?.page;
969
+ const pageSize = requestParameters?.pageSize;
970
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
971
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, name, "Name");
972
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, isActive, "IsActive");
973
+ if (rsdUserIds) {
974
+ rsdUserIds.forEach((element) => {
975
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, element, "RsdUserIds");
976
+ });
977
+ }
978
+ if (repTerritoryIds) {
979
+ repTerritoryIds.forEach((element) => {
980
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, element, "RepTerritoryIds");
981
+ });
982
+ }
983
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, orderBy, "OrderBy");
984
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, page, "Page");
985
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, pageSize, "PageSize");
986
+ let localVarHeaders = this.defaultHeaders;
987
+ // authentication (Bearer) required
988
+ localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
989
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
990
+ this.configuration.selectHeaderAccept([
991
+ "text/plain",
992
+ "application/json",
993
+ "text/json",
994
+ ]);
995
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
996
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
997
+ }
998
+ const localVarHttpContext = options?.context ?? new HttpContext();
999
+ const localVarTransferCache = options?.transferCache ?? true;
1000
+ let responseType_ = "json";
1001
+ if (localVarHttpHeaderAcceptSelected) {
1002
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
1003
+ responseType_ = "text";
1004
+ }
1005
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1006
+ responseType_ = "json";
1007
+ }
1008
+ else {
1009
+ responseType_ = "blob";
1010
+ }
1011
+ }
1012
+ let localVarPath = `/api/rsd-regions`;
1013
+ const { basePath, withCredentials } = this.configuration;
1014
+ return this.httpClient.request("get", `${basePath}${localVarPath}`, {
1015
+ context: localVarHttpContext,
1016
+ params: localVarQueryParameters,
1017
+ responseType: responseType_,
1018
+ ...(withCredentials ? { withCredentials } : {}),
1019
+ headers: localVarHeaders,
1020
+ observe: observe,
1021
+ transferCache: localVarTransferCache,
1022
+ reportProgress: reportProgress,
1023
+ });
1024
+ }
1025
+ rsdRegionsUpdateRsdRegion(requestParameters, observe = "body", reportProgress = false, options) {
1026
+ const updateRsdRegionDto = requestParameters?.updateRsdRegionDto;
1027
+ let localVarHeaders = this.defaultHeaders;
1028
+ // authentication (Bearer) required
1029
+ localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
1030
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
1031
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1032
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
1033
+ }
1034
+ const localVarHttpContext = options?.context ?? new HttpContext();
1035
+ const localVarTransferCache = options?.transferCache ?? true;
1036
+ // to determine the Content-Type header
1037
+ const consumes = [
1038
+ "application/json",
1039
+ "text/json",
1040
+ "application/*+json",
1041
+ ];
1042
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
1043
+ if (httpContentTypeSelected !== undefined) {
1044
+ localVarHeaders = localVarHeaders.set("Content-Type", httpContentTypeSelected);
1045
+ }
1046
+ let responseType_ = "json";
1047
+ if (localVarHttpHeaderAcceptSelected) {
1048
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
1049
+ responseType_ = "text";
1050
+ }
1051
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1052
+ responseType_ = "json";
1053
+ }
1054
+ else {
1055
+ responseType_ = "blob";
1056
+ }
1057
+ }
1058
+ let localVarPath = `/api/rsd-regions`;
1059
+ const { basePath, withCredentials } = this.configuration;
1060
+ return this.httpClient.request("put", `${basePath}${localVarPath}`, {
1061
+ context: localVarHttpContext,
1062
+ body: updateRsdRegionDto,
1063
+ responseType: responseType_,
1064
+ ...(withCredentials ? { withCredentials } : {}),
1065
+ headers: localVarHeaders,
1066
+ observe: observe,
1067
+ transferCache: localVarTransferCache,
1068
+ reportProgress: reportProgress,
1069
+ });
1070
+ }
1071
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: RsdRegionsApiService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
1072
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: RsdRegionsApiService, providedIn: "root" });
1073
+ }
1074
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: RsdRegionsApiService, decorators: [{
1075
+ type: Injectable,
1076
+ args: [{
1077
+ providedIn: "root",
1078
+ }]
1079
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
1080
+ type: Optional
1081
+ }, {
1082
+ type: Inject,
1083
+ args: [BASE_PATH]
1084
+ }] }, { type: Configuration, decorators: [{
1085
+ type: Optional
1086
+ }] }] });
1087
+
1088
+ /**
1089
+ * RenewAire CORES API
1090
+ *
1091
+ * Contact: renewaire@saritasa.com
1092
+ *
1093
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1094
+ * https://openapi-generator.tech
1095
+ * Do not edit the class manually.
1096
+ */
1097
+ /* tslint:disable:no-unused-variable member-ordering */
1098
+ class UsersApiService extends BaseService {
1099
+ httpClient;
1100
+ constructor(httpClient, basePath, configuration) {
1101
+ super(basePath, configuration);
1102
+ this.httpClient = httpClient;
1103
+ }
1104
+ usersConfirmEmail(requestParameters, observe = "body", reportProgress = false, options) {
1105
+ const emailConfirmationTokenDto = requestParameters?.emailConfirmationTokenDto;
1106
+ let localVarHeaders = this.defaultHeaders;
1107
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
1108
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1109
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
1110
+ }
1111
+ const localVarHttpContext = options?.context ?? new HttpContext();
1112
+ const localVarTransferCache = options?.transferCache ?? true;
1113
+ // to determine the Content-Type header
1114
+ const consumes = [
1115
+ "application/json",
1116
+ "text/json",
1117
+ "application/*+json",
1118
+ ];
1119
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
1120
+ if (httpContentTypeSelected !== undefined) {
1121
+ localVarHeaders = localVarHeaders.set("Content-Type", httpContentTypeSelected);
1122
+ }
1123
+ let responseType_ = "json";
1124
+ if (localVarHttpHeaderAcceptSelected) {
1125
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
1126
+ responseType_ = "text";
1127
+ }
1128
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1129
+ responseType_ = "json";
1130
+ }
1131
+ else {
1132
+ responseType_ = "blob";
1133
+ }
1134
+ }
1135
+ let localVarPath = `/api/users/confirm-email`;
1136
+ const { basePath, withCredentials } = this.configuration;
1137
+ return this.httpClient.request("post", `${basePath}${localVarPath}`, {
1138
+ context: localVarHttpContext,
1139
+ body: emailConfirmationTokenDto,
1140
+ responseType: responseType_,
1141
+ ...(withCredentials ? { withCredentials } : {}),
1142
+ headers: localVarHeaders,
1143
+ observe: observe,
1144
+ transferCache: localVarTransferCache,
1145
+ reportProgress: reportProgress,
1146
+ });
1147
+ }
1148
+ usersForgotPassword(requestParameters, observe = "body", reportProgress = false, options) {
1149
+ const forgotPasswordCommand = requestParameters?.forgotPasswordCommand;
1150
+ let localVarHeaders = this.defaultHeaders;
1151
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
1152
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1153
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
1154
+ }
1155
+ const localVarHttpContext = options?.context ?? new HttpContext();
1156
+ const localVarTransferCache = options?.transferCache ?? true;
1157
+ // to determine the Content-Type header
1158
+ const consumes = [
1159
+ "application/json",
1160
+ "text/json",
1161
+ "application/*+json",
1162
+ ];
1163
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
1164
+ if (httpContentTypeSelected !== undefined) {
1165
+ localVarHeaders = localVarHeaders.set("Content-Type", httpContentTypeSelected);
1166
+ }
1167
+ let responseType_ = "json";
1168
+ if (localVarHttpHeaderAcceptSelected) {
1169
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
1170
+ responseType_ = "text";
1171
+ }
1172
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1173
+ responseType_ = "json";
1174
+ }
1175
+ else {
1176
+ responseType_ = "blob";
1177
+ }
1178
+ }
1179
+ let localVarPath = `/api/users/forgot-password`;
1180
+ const { basePath, withCredentials } = this.configuration;
1181
+ return this.httpClient.request("post", `${basePath}${localVarPath}`, {
1182
+ context: localVarHttpContext,
1183
+ body: forgotPasswordCommand,
1184
+ responseType: responseType_,
1185
+ ...(withCredentials ? { withCredentials } : {}),
1186
+ headers: localVarHeaders,
1187
+ observe: observe,
1188
+ transferCache: localVarTransferCache,
1189
+ reportProgress: reportProgress,
1190
+ });
1191
+ }
1192
+ usersGetRepContacts(observe = "body", reportProgress = false, options) {
1193
+ let localVarHeaders = this.defaultHeaders;
1194
+ // authentication (Bearer) required
1195
+ localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
1196
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
1197
+ this.configuration.selectHeaderAccept([
1198
+ "text/plain",
1199
+ "application/json",
1200
+ "text/json",
1201
+ ]);
1202
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1203
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
1204
+ }
1205
+ const localVarHttpContext = options?.context ?? new HttpContext();
1206
+ const localVarTransferCache = options?.transferCache ?? true;
1207
+ let responseType_ = "json";
1208
+ if (localVarHttpHeaderAcceptSelected) {
1209
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
1210
+ responseType_ = "text";
1211
+ }
1212
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1213
+ responseType_ = "json";
1214
+ }
1215
+ else {
1216
+ responseType_ = "blob";
1217
+ }
1218
+ }
1219
+ let localVarPath = `/api/users/me/rep-contacts`;
1220
+ const { basePath, withCredentials } = this.configuration;
1221
+ return this.httpClient.request("get", `${basePath}${localVarPath}`, {
1222
+ context: localVarHttpContext,
1223
+ responseType: responseType_,
1224
+ ...(withCredentials ? { withCredentials } : {}),
1225
+ headers: localVarHeaders,
1226
+ observe: observe,
1227
+ transferCache: localVarTransferCache,
1228
+ reportProgress: reportProgress,
1229
+ });
1230
+ }
1231
+ usersGetRepContacts_1(requestParameters, observe = "body", reportProgress = false, options) {
1232
+ const userId = requestParameters?.userId;
1233
+ if (userId === null || userId === undefined) {
1234
+ throw new Error("Required parameter userId was null or undefined when calling usersGetRepContacts_1.");
1235
+ }
1236
+ let localVarHeaders = this.defaultHeaders;
1237
+ // authentication (Bearer) required
1238
+ localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
1239
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
1240
+ this.configuration.selectHeaderAccept([
1241
+ "text/plain",
1242
+ "application/json",
1243
+ "text/json",
1244
+ ]);
1245
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1246
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
1247
+ }
1248
+ const localVarHttpContext = options?.context ?? new HttpContext();
1249
+ const localVarTransferCache = options?.transferCache ?? true;
1250
+ let responseType_ = "json";
1251
+ if (localVarHttpHeaderAcceptSelected) {
1252
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
1253
+ responseType_ = "text";
1254
+ }
1255
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1256
+ responseType_ = "json";
1257
+ }
1258
+ else {
1259
+ responseType_ = "blob";
1260
+ }
1261
+ }
1262
+ let localVarPath = `/api/users/${this.configuration.encodeParam({ name: "userId", value: userId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}/rep-contacts`;
1263
+ const { basePath, withCredentials } = this.configuration;
1264
+ return this.httpClient.request("get", `${basePath}${localVarPath}`, {
1265
+ context: localVarHttpContext,
1266
+ responseType: responseType_,
1267
+ ...(withCredentials ? { withCredentials } : {}),
1268
+ headers: localVarHeaders,
1269
+ observe: observe,
1270
+ transferCache: localVarTransferCache,
1271
+ reportProgress: reportProgress,
1272
+ });
1273
+ }
1274
+ usersRegisterUser(requestParameters, observe = "body", reportProgress = false, options) {
1275
+ const userRegistrationDto = requestParameters?.userRegistrationDto;
1276
+ let localVarHeaders = this.defaultHeaders;
1277
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
1278
+ this.configuration.selectHeaderAccept([
1279
+ "text/plain",
1280
+ "application/json",
1281
+ "text/json",
1282
+ ]);
1283
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1284
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
1285
+ }
1286
+ const localVarHttpContext = options?.context ?? new HttpContext();
1287
+ const localVarTransferCache = options?.transferCache ?? true;
1288
+ // to determine the Content-Type header
1289
+ const consumes = [
1290
+ "application/json",
1291
+ "text/json",
1292
+ "application/*+json",
1293
+ ];
1294
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
1295
+ if (httpContentTypeSelected !== undefined) {
1296
+ localVarHeaders = localVarHeaders.set("Content-Type", httpContentTypeSelected);
1297
+ }
1298
+ let responseType_ = "json";
1299
+ if (localVarHttpHeaderAcceptSelected) {
1300
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
1301
+ responseType_ = "text";
1302
+ }
1303
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1304
+ responseType_ = "json";
1305
+ }
1306
+ else {
1307
+ responseType_ = "blob";
1308
+ }
1309
+ }
1310
+ let localVarPath = `/api/users`;
1311
+ const { basePath, withCredentials } = this.configuration;
1312
+ return this.httpClient.request("post", `${basePath}${localVarPath}`, {
1313
+ context: localVarHttpContext,
1314
+ body: userRegistrationDto,
1315
+ responseType: responseType_,
1316
+ ...(withCredentials ? { withCredentials } : {}),
1317
+ headers: localVarHeaders,
1318
+ observe: observe,
1319
+ transferCache: localVarTransferCache,
1320
+ reportProgress: reportProgress,
1321
+ });
1322
+ }
1323
+ usersRequestConfirmEmail(requestParameters, observe = "body", reportProgress = false, options) {
1324
+ const userEmailDto = requestParameters?.userEmailDto;
1325
+ let localVarHeaders = this.defaultHeaders;
1326
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
1327
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1328
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
1329
+ }
1330
+ const localVarHttpContext = options?.context ?? new HttpContext();
1331
+ const localVarTransferCache = options?.transferCache ?? true;
1332
+ // to determine the Content-Type header
1333
+ const consumes = [
1334
+ "application/json",
1335
+ "text/json",
1336
+ "application/*+json",
1337
+ ];
1338
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
1339
+ if (httpContentTypeSelected !== undefined) {
1340
+ localVarHeaders = localVarHeaders.set("Content-Type", httpContentTypeSelected);
1341
+ }
1342
+ let responseType_ = "json";
1343
+ if (localVarHttpHeaderAcceptSelected) {
1344
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
1345
+ responseType_ = "text";
1346
+ }
1347
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1348
+ responseType_ = "json";
1349
+ }
1350
+ else {
1351
+ responseType_ = "blob";
1352
+ }
1353
+ }
1354
+ let localVarPath = `/api/users/request-email`;
1355
+ const { basePath, withCredentials } = this.configuration;
1356
+ return this.httpClient.request("put", `${basePath}${localVarPath}`, {
1357
+ context: localVarHttpContext,
1358
+ body: userEmailDto,
1359
+ responseType: responseType_,
1360
+ ...(withCredentials ? { withCredentials } : {}),
1361
+ headers: localVarHeaders,
1362
+ observe: observe,
1363
+ transferCache: localVarTransferCache,
1364
+ reportProgress: reportProgress,
1365
+ });
1366
+ }
1367
+ usersResetPassword(requestParameters, observe = "body", reportProgress = false, options) {
1368
+ const resetPasswordCommand = requestParameters?.resetPasswordCommand;
1369
+ let localVarHeaders = this.defaultHeaders;
1370
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
1371
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1372
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
1373
+ }
1374
+ const localVarHttpContext = options?.context ?? new HttpContext();
1375
+ const localVarTransferCache = options?.transferCache ?? true;
1376
+ // to determine the Content-Type header
1377
+ const consumes = [
1378
+ "application/json",
1379
+ "text/json",
1380
+ "application/*+json",
1381
+ ];
1382
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
1383
+ if (httpContentTypeSelected !== undefined) {
1384
+ localVarHeaders = localVarHeaders.set("Content-Type", httpContentTypeSelected);
1385
+ }
1386
+ let responseType_ = "json";
1387
+ if (localVarHttpHeaderAcceptSelected) {
1388
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
1389
+ responseType_ = "text";
1390
+ }
1391
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1392
+ responseType_ = "json";
1393
+ }
1394
+ else {
1395
+ responseType_ = "blob";
1396
+ }
1397
+ }
1398
+ let localVarPath = `/api/users/reset-password`;
1399
+ const { basePath, withCredentials } = this.configuration;
1400
+ return this.httpClient.request("post", `${basePath}${localVarPath}`, {
1401
+ context: localVarHttpContext,
1402
+ body: resetPasswordCommand,
1403
+ responseType: responseType_,
1404
+ ...(withCredentials ? { withCredentials } : {}),
1405
+ headers: localVarHeaders,
1406
+ observe: observe,
1407
+ transferCache: localVarTransferCache,
1408
+ reportProgress: reportProgress,
1409
+ });
1410
+ }
1411
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: UsersApiService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
1412
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: UsersApiService, providedIn: "root" });
1413
+ }
1414
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: UsersApiService, decorators: [{
1415
+ type: Injectable,
1416
+ args: [{
1417
+ providedIn: "root",
1418
+ }]
1419
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
1420
+ type: Optional
1421
+ }, {
1422
+ type: Inject,
1423
+ args: [BASE_PATH]
1424
+ }] }, { type: Configuration, decorators: [{
1425
+ type: Optional
1426
+ }] }] });
1427
+
1428
+ const APIS = [
1429
+ AuthApiService,
1430
+ PermissionsApiService,
1431
+ RegionsApiService,
1432
+ RepTerritoriesApiService,
1433
+ RsdRegionsApiService,
1434
+ UsersApiService,
1435
+ ];
1436
+
1437
+ /**
1438
+ * RenewAire CORES API
1439
+ *
1440
+ * Contact: renewaire@saritasa.com
1441
+ *
1442
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1443
+ * https://openapi-generator.tech
1444
+ * Do not edit the class manually.
1445
+ */
1446
+ /**
1447
+ * AddressCountry<br />0 = Unknown<br />1 = UnitedStates<br />2 = Canada<br />3 = Mexico
1448
+ */
1449
+ var AddressCountry;
1450
+ (function (AddressCountry) {
1451
+ AddressCountry["Unknown"] = "Unknown";
1452
+ AddressCountry["UnitedStates"] = "UnitedStates";
1453
+ AddressCountry["Canada"] = "Canada";
1454
+ AddressCountry["Mexico"] = "Mexico";
1455
+ })(AddressCountry || (AddressCountry = {}));
1456
+
1457
+ /**
1458
+ * RenewAire CORES API
1459
+ *
1460
+ * Contact: renewaire@saritasa.com
1461
+ *
1462
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1463
+ * https://openapi-generator.tech
1464
+ * Do not edit the class manually.
1465
+ */
1466
+ var AddressDtoCountryEnum;
1467
+ (function (AddressDtoCountryEnum) {
1468
+ AddressDtoCountryEnum["Unknown"] = "Unknown";
1469
+ AddressDtoCountryEnum["UnitedStates"] = "UnitedStates";
1470
+ AddressDtoCountryEnum["Canada"] = "Canada";
1471
+ AddressDtoCountryEnum["Mexico"] = "Mexico";
1472
+ })(AddressDtoCountryEnum || (AddressDtoCountryEnum = {}));
1473
+
1474
+ /**
1475
+ * RenewAire CORES API
1476
+ *
1477
+ * Contact: renewaire@saritasa.com
1478
+ *
1479
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1480
+ * https://openapi-generator.tech
1481
+ * Do not edit the class manually.
1482
+ */
1483
+
1484
+ /**
1485
+ * RenewAire CORES API
1486
+ *
1487
+ * Contact: renewaire@saritasa.com
1488
+ *
1489
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1490
+ * https://openapi-generator.tech
1491
+ * Do not edit the class manually.
1492
+ */
1493
+
1494
+ /**
1495
+ * RenewAire CORES API
1496
+ *
1497
+ * Contact: renewaire@saritasa.com
1498
+ *
1499
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1500
+ * https://openapi-generator.tech
1501
+ * Do not edit the class manually.
1502
+ */
1503
+
1504
+ /**
1505
+ * RenewAire CORES API
1506
+ *
1507
+ * Contact: renewaire@saritasa.com
1508
+ *
1509
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1510
+ * https://openapi-generator.tech
1511
+ * Do not edit the class manually.
1512
+ */
1513
+
1514
+ /**
1515
+ * RenewAire CORES API
1516
+ *
1517
+ * Contact: renewaire@saritasa.com
1518
+ *
1519
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1520
+ * https://openapi-generator.tech
1521
+ * Do not edit the class manually.
1522
+ */
1523
+
1524
+ /**
1525
+ * RenewAire CORES API
1526
+ *
1527
+ * Contact: renewaire@saritasa.com
1528
+ *
1529
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1530
+ * https://openapi-generator.tech
1531
+ * Do not edit the class manually.
1532
+ */
1533
+
1534
+ /**
1535
+ * RenewAire CORES API
1536
+ *
1537
+ * Contact: renewaire@saritasa.com
1538
+ *
1539
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1540
+ * https://openapi-generator.tech
1541
+ * Do not edit the class manually.
1542
+ */
1543
+
1544
+ /**
1545
+ * RenewAire CORES API
1546
+ *
1547
+ * Contact: renewaire@saritasa.com
1548
+ *
1549
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1550
+ * https://openapi-generator.tech
1551
+ * Do not edit the class manually.
1552
+ */
1553
+
1554
+ /**
1555
+ * RenewAire CORES API
1556
+ *
1557
+ * Contact: renewaire@saritasa.com
1558
+ *
1559
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1560
+ * https://openapi-generator.tech
1561
+ * Do not edit the class manually.
1562
+ */
1563
+
1564
+ /**
1565
+ * RenewAire CORES API
1566
+ *
1567
+ * Contact: renewaire@saritasa.com
1568
+ *
1569
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1570
+ * https://openapi-generator.tech
1571
+ * Do not edit the class manually.
1572
+ */
1573
+
1574
+ /**
1575
+ * RenewAire CORES API
1576
+ *
1577
+ * Contact: renewaire@saritasa.com
1578
+ *
1579
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1580
+ * https://openapi-generator.tech
1581
+ * Do not edit the class manually.
1582
+ */
1583
+ /**
1584
+ * RegionLevel<br />0 = Country<br />1 = State<br />2 = County
1585
+ */
1586
+ var RegionLevel;
1587
+ (function (RegionLevel) {
1588
+ RegionLevel["Country"] = "Country";
1589
+ RegionLevel["State"] = "State";
1590
+ RegionLevel["County"] = "County";
1591
+ })(RegionLevel || (RegionLevel = {}));
1592
+
1593
+ /**
1594
+ * RenewAire CORES API
1595
+ *
1596
+ * Contact: renewaire@saritasa.com
1597
+ *
1598
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1599
+ * https://openapi-generator.tech
1600
+ * Do not edit the class manually.
1601
+ */
1602
+
1603
+ /**
1604
+ * RenewAire CORES API
1605
+ *
1606
+ * Contact: renewaire@saritasa.com
1607
+ *
1608
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1609
+ * https://openapi-generator.tech
1610
+ * Do not edit the class manually.
1611
+ */
1612
+
1613
+ /**
1614
+ * RenewAire CORES API
1615
+ *
1616
+ * Contact: renewaire@saritasa.com
1617
+ *
1618
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1619
+ * https://openapi-generator.tech
1620
+ * Do not edit the class manually.
1621
+ */
1622
+
1623
+ /**
1624
+ * RenewAire CORES API
1625
+ *
1626
+ * Contact: renewaire@saritasa.com
1627
+ *
1628
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1629
+ * https://openapi-generator.tech
1630
+ * Do not edit the class manually.
1631
+ */
1632
+
1633
+ /**
1634
+ * RenewAire CORES API
1635
+ *
1636
+ * Contact: renewaire@saritasa.com
1637
+ *
1638
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1639
+ * https://openapi-generator.tech
1640
+ * Do not edit the class manually.
1641
+ */
1642
+ var SearchRegionDtoLevelEnum;
1643
+ (function (SearchRegionDtoLevelEnum) {
1644
+ SearchRegionDtoLevelEnum["Country"] = "Country";
1645
+ SearchRegionDtoLevelEnum["State"] = "State";
1646
+ SearchRegionDtoLevelEnum["County"] = "County";
1647
+ })(SearchRegionDtoLevelEnum || (SearchRegionDtoLevelEnum = {}));
1648
+
1649
+ /**
1650
+ * RenewAire CORES API
1651
+ *
1652
+ * Contact: renewaire@saritasa.com
1653
+ *
1654
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1655
+ * https://openapi-generator.tech
1656
+ * Do not edit the class manually.
1657
+ */
1658
+
1659
+ /**
1660
+ * RenewAire CORES API
1661
+ *
1662
+ * Contact: renewaire@saritasa.com
1663
+ *
1664
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1665
+ * https://openapi-generator.tech
1666
+ * Do not edit the class manually.
1667
+ */
1668
+
1669
+ /**
1670
+ * RenewAire CORES API
1671
+ *
1672
+ * Contact: renewaire@saritasa.com
1673
+ *
1674
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1675
+ * https://openapi-generator.tech
1676
+ * Do not edit the class manually.
1677
+ */
1678
+
1679
+ /**
1680
+ * RenewAire CORES API
1681
+ *
1682
+ * Contact: renewaire@saritasa.com
1683
+ *
1684
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1685
+ * https://openapi-generator.tech
1686
+ * Do not edit the class manually.
1687
+ */
1688
+
1689
+ /**
1690
+ * RenewAire CORES API
1691
+ *
1692
+ * Contact: renewaire@saritasa.com
1693
+ *
1694
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1695
+ * https://openapi-generator.tech
1696
+ * Do not edit the class manually.
1697
+ */
1698
+
1699
+ /**
1700
+ * RenewAire CORES API
1701
+ *
1702
+ * Contact: renewaire@saritasa.com
1703
+ *
1704
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1705
+ * https://openapi-generator.tech
1706
+ * Do not edit the class manually.
1707
+ */
1708
+
1709
+ class ApiModule {
1710
+ static forRoot(configurationFactory) {
1711
+ return {
1712
+ ngModule: ApiModule,
1713
+ providers: [{ provide: Configuration, useFactory: configurationFactory }],
1714
+ };
1715
+ }
1716
+ constructor(parentModule, http) {
1717
+ if (parentModule) {
1718
+ throw new Error("ApiModule is already loaded. Import in your base AppModule only.");
1719
+ }
1720
+ if (!http) {
1721
+ throw new Error("You need to import the HttpClientModule in your AppModule! \n" +
1722
+ "See also https://github.com/angular/angular/issues/20575");
1723
+ }
1724
+ }
1725
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: ApiModule, deps: [{ token: ApiModule, optional: true, skipSelf: true }, { token: i1.HttpClient, optional: true }], target: i0.ɵɵFactoryTarget.NgModule });
1726
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.3", ngImport: i0, type: ApiModule });
1727
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: ApiModule });
1728
+ }
1729
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: ApiModule, decorators: [{
1730
+ type: NgModule,
1731
+ args: [{
1732
+ imports: [],
1733
+ declarations: [],
1734
+ exports: [],
1735
+ providers: [],
1736
+ }]
1737
+ }], ctorParameters: () => [{ type: ApiModule, decorators: [{
1738
+ type: Optional
1739
+ }, {
1740
+ type: SkipSelf
1741
+ }] }, { type: i1.HttpClient, decorators: [{
1742
+ type: Optional
1743
+ }] }] });
1744
+
1745
+ // Returns the service class providers, to be used in the [ApplicationConfig](https://angular.dev/api/core/ApplicationConfig).
1746
+ function provideApi(configOrBasePath) {
1747
+ return makeEnvironmentProviders([
1748
+ typeof configOrBasePath === "string"
1749
+ ? { provide: BASE_PATH, useValue: configOrBasePath }
1750
+ : {
1751
+ provide: Configuration,
1752
+ useValue: new Configuration({ ...configOrBasePath }),
1753
+ },
1754
+ ]);
1755
+ }
1756
+
1757
+ /**
1758
+ * Generated bundle index. Do not edit.
1759
+ */
1760
+
1761
+ export { APIS, AddressCountry, AddressDtoCountryEnum, ApiModule, AuthApiService, BASE_PATH, COLLECTION_FORMATS, Configuration, PermissionsApiService, RegionLevel, RegionsApiService, RepTerritoriesApiService, RsdRegionsApiService, SearchRegionDtoLevelEnum, UsersApiService, provideApi };
1762
+ //# sourceMappingURL=saritasa-renewaire-frontend-sdk.mjs.map