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

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,1654 @@
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
+ usersGetRepContacts(observe = "body", reportProgress = false, options) {
1149
+ let localVarHeaders = this.defaultHeaders;
1150
+ // authentication (Bearer) required
1151
+ localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
1152
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
1153
+ this.configuration.selectHeaderAccept([
1154
+ "text/plain",
1155
+ "application/json",
1156
+ "text/json",
1157
+ ]);
1158
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1159
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
1160
+ }
1161
+ const localVarHttpContext = options?.context ?? new HttpContext();
1162
+ const localVarTransferCache = options?.transferCache ?? true;
1163
+ let responseType_ = "json";
1164
+ if (localVarHttpHeaderAcceptSelected) {
1165
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
1166
+ responseType_ = "text";
1167
+ }
1168
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1169
+ responseType_ = "json";
1170
+ }
1171
+ else {
1172
+ responseType_ = "blob";
1173
+ }
1174
+ }
1175
+ let localVarPath = `/api/users/me/rep-contacts`;
1176
+ const { basePath, withCredentials } = this.configuration;
1177
+ return this.httpClient.request("get", `${basePath}${localVarPath}`, {
1178
+ context: localVarHttpContext,
1179
+ responseType: responseType_,
1180
+ ...(withCredentials ? { withCredentials } : {}),
1181
+ headers: localVarHeaders,
1182
+ observe: observe,
1183
+ transferCache: localVarTransferCache,
1184
+ reportProgress: reportProgress,
1185
+ });
1186
+ }
1187
+ usersGetRepContacts_1(requestParameters, observe = "body", reportProgress = false, options) {
1188
+ const userId = requestParameters?.userId;
1189
+ if (userId === null || userId === undefined) {
1190
+ throw new Error("Required parameter userId was null or undefined when calling usersGetRepContacts_1.");
1191
+ }
1192
+ let localVarHeaders = this.defaultHeaders;
1193
+ // authentication (Bearer) required
1194
+ localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
1195
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
1196
+ this.configuration.selectHeaderAccept([
1197
+ "text/plain",
1198
+ "application/json",
1199
+ "text/json",
1200
+ ]);
1201
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1202
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
1203
+ }
1204
+ const localVarHttpContext = options?.context ?? new HttpContext();
1205
+ const localVarTransferCache = options?.transferCache ?? true;
1206
+ let responseType_ = "json";
1207
+ if (localVarHttpHeaderAcceptSelected) {
1208
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
1209
+ responseType_ = "text";
1210
+ }
1211
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1212
+ responseType_ = "json";
1213
+ }
1214
+ else {
1215
+ responseType_ = "blob";
1216
+ }
1217
+ }
1218
+ let localVarPath = `/api/users/${this.configuration.encodeParam({ name: "userId", value: userId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}/rep-contacts`;
1219
+ const { basePath, withCredentials } = this.configuration;
1220
+ return this.httpClient.request("get", `${basePath}${localVarPath}`, {
1221
+ context: localVarHttpContext,
1222
+ responseType: responseType_,
1223
+ ...(withCredentials ? { withCredentials } : {}),
1224
+ headers: localVarHeaders,
1225
+ observe: observe,
1226
+ transferCache: localVarTransferCache,
1227
+ reportProgress: reportProgress,
1228
+ });
1229
+ }
1230
+ usersRegisterUser(requestParameters, observe = "body", reportProgress = false, options) {
1231
+ const userRegistrationDto = requestParameters?.userRegistrationDto;
1232
+ let localVarHeaders = this.defaultHeaders;
1233
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
1234
+ this.configuration.selectHeaderAccept([
1235
+ "text/plain",
1236
+ "application/json",
1237
+ "text/json",
1238
+ ]);
1239
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1240
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
1241
+ }
1242
+ const localVarHttpContext = options?.context ?? new HttpContext();
1243
+ const localVarTransferCache = options?.transferCache ?? true;
1244
+ // to determine the Content-Type header
1245
+ const consumes = [
1246
+ "application/json",
1247
+ "text/json",
1248
+ "application/*+json",
1249
+ ];
1250
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
1251
+ if (httpContentTypeSelected !== undefined) {
1252
+ localVarHeaders = localVarHeaders.set("Content-Type", httpContentTypeSelected);
1253
+ }
1254
+ let responseType_ = "json";
1255
+ if (localVarHttpHeaderAcceptSelected) {
1256
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
1257
+ responseType_ = "text";
1258
+ }
1259
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1260
+ responseType_ = "json";
1261
+ }
1262
+ else {
1263
+ responseType_ = "blob";
1264
+ }
1265
+ }
1266
+ let localVarPath = `/api/users`;
1267
+ const { basePath, withCredentials } = this.configuration;
1268
+ return this.httpClient.request("post", `${basePath}${localVarPath}`, {
1269
+ context: localVarHttpContext,
1270
+ body: userRegistrationDto,
1271
+ responseType: responseType_,
1272
+ ...(withCredentials ? { withCredentials } : {}),
1273
+ headers: localVarHeaders,
1274
+ observe: observe,
1275
+ transferCache: localVarTransferCache,
1276
+ reportProgress: reportProgress,
1277
+ });
1278
+ }
1279
+ usersRequestConfirmEmail(requestParameters, observe = "body", reportProgress = false, options) {
1280
+ const userEmailDto = requestParameters?.userEmailDto;
1281
+ let localVarHeaders = this.defaultHeaders;
1282
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
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/request-email`;
1311
+ const { basePath, withCredentials } = this.configuration;
1312
+ return this.httpClient.request("put", `${basePath}${localVarPath}`, {
1313
+ context: localVarHttpContext,
1314
+ body: userEmailDto,
1315
+ responseType: responseType_,
1316
+ ...(withCredentials ? { withCredentials } : {}),
1317
+ headers: localVarHeaders,
1318
+ observe: observe,
1319
+ transferCache: localVarTransferCache,
1320
+ reportProgress: reportProgress,
1321
+ });
1322
+ }
1323
+ 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 });
1324
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: UsersApiService, providedIn: "root" });
1325
+ }
1326
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: UsersApiService, decorators: [{
1327
+ type: Injectable,
1328
+ args: [{
1329
+ providedIn: "root",
1330
+ }]
1331
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
1332
+ type: Optional
1333
+ }, {
1334
+ type: Inject,
1335
+ args: [BASE_PATH]
1336
+ }] }, { type: Configuration, decorators: [{
1337
+ type: Optional
1338
+ }] }] });
1339
+
1340
+ const APIS = [
1341
+ AuthApiService,
1342
+ PermissionsApiService,
1343
+ RegionsApiService,
1344
+ RepTerritoriesApiService,
1345
+ RsdRegionsApiService,
1346
+ UsersApiService,
1347
+ ];
1348
+
1349
+ /**
1350
+ * RenewAire CORES API
1351
+ *
1352
+ * Contact: renewaire@saritasa.com
1353
+ *
1354
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1355
+ * https://openapi-generator.tech
1356
+ * Do not edit the class manually.
1357
+ */
1358
+ /**
1359
+ * AddressCountry<br />0 = Unknown<br />1 = UnitedStates<br />2 = Canada<br />3 = Mexico
1360
+ */
1361
+ var AddressCountry;
1362
+ (function (AddressCountry) {
1363
+ AddressCountry["Unknown"] = "Unknown";
1364
+ AddressCountry["UnitedStates"] = "UnitedStates";
1365
+ AddressCountry["Canada"] = "Canada";
1366
+ AddressCountry["Mexico"] = "Mexico";
1367
+ })(AddressCountry || (AddressCountry = {}));
1368
+
1369
+ /**
1370
+ * RenewAire CORES API
1371
+ *
1372
+ * Contact: renewaire@saritasa.com
1373
+ *
1374
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1375
+ * https://openapi-generator.tech
1376
+ * Do not edit the class manually.
1377
+ */
1378
+ var AddressDtoCountryEnum;
1379
+ (function (AddressDtoCountryEnum) {
1380
+ AddressDtoCountryEnum["Unknown"] = "Unknown";
1381
+ AddressDtoCountryEnum["UnitedStates"] = "UnitedStates";
1382
+ AddressDtoCountryEnum["Canada"] = "Canada";
1383
+ AddressDtoCountryEnum["Mexico"] = "Mexico";
1384
+ })(AddressDtoCountryEnum || (AddressDtoCountryEnum = {}));
1385
+
1386
+ /**
1387
+ * RenewAire CORES API
1388
+ *
1389
+ * Contact: renewaire@saritasa.com
1390
+ *
1391
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1392
+ * https://openapi-generator.tech
1393
+ * Do not edit the class manually.
1394
+ */
1395
+
1396
+ /**
1397
+ * RenewAire CORES API
1398
+ *
1399
+ * Contact: renewaire@saritasa.com
1400
+ *
1401
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1402
+ * https://openapi-generator.tech
1403
+ * Do not edit the class manually.
1404
+ */
1405
+
1406
+ /**
1407
+ * RenewAire CORES API
1408
+ *
1409
+ * Contact: renewaire@saritasa.com
1410
+ *
1411
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1412
+ * https://openapi-generator.tech
1413
+ * Do not edit the class manually.
1414
+ */
1415
+
1416
+ /**
1417
+ * RenewAire CORES API
1418
+ *
1419
+ * Contact: renewaire@saritasa.com
1420
+ *
1421
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1422
+ * https://openapi-generator.tech
1423
+ * Do not edit the class manually.
1424
+ */
1425
+
1426
+ /**
1427
+ * RenewAire CORES API
1428
+ *
1429
+ * Contact: renewaire@saritasa.com
1430
+ *
1431
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1432
+ * https://openapi-generator.tech
1433
+ * Do not edit the class manually.
1434
+ */
1435
+
1436
+ /**
1437
+ * RenewAire CORES API
1438
+ *
1439
+ * Contact: renewaire@saritasa.com
1440
+ *
1441
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1442
+ * https://openapi-generator.tech
1443
+ * Do not edit the class manually.
1444
+ */
1445
+
1446
+ /**
1447
+ * RenewAire CORES API
1448
+ *
1449
+ * Contact: renewaire@saritasa.com
1450
+ *
1451
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1452
+ * https://openapi-generator.tech
1453
+ * Do not edit the class manually.
1454
+ */
1455
+
1456
+ /**
1457
+ * RenewAire CORES API
1458
+ *
1459
+ * Contact: renewaire@saritasa.com
1460
+ *
1461
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1462
+ * https://openapi-generator.tech
1463
+ * Do not edit the class manually.
1464
+ */
1465
+
1466
+ /**
1467
+ * RenewAire CORES API
1468
+ *
1469
+ * Contact: renewaire@saritasa.com
1470
+ *
1471
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1472
+ * https://openapi-generator.tech
1473
+ * Do not edit the class manually.
1474
+ */
1475
+
1476
+ /**
1477
+ * RenewAire CORES API
1478
+ *
1479
+ * Contact: renewaire@saritasa.com
1480
+ *
1481
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1482
+ * https://openapi-generator.tech
1483
+ * Do not edit the class manually.
1484
+ */
1485
+ /**
1486
+ * RegionLevel<br />0 = Country<br />1 = State<br />2 = County
1487
+ */
1488
+ var RegionLevel;
1489
+ (function (RegionLevel) {
1490
+ RegionLevel["Country"] = "Country";
1491
+ RegionLevel["State"] = "State";
1492
+ RegionLevel["County"] = "County";
1493
+ })(RegionLevel || (RegionLevel = {}));
1494
+
1495
+ /**
1496
+ * RenewAire CORES API
1497
+ *
1498
+ * Contact: renewaire@saritasa.com
1499
+ *
1500
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1501
+ * https://openapi-generator.tech
1502
+ * Do not edit the class manually.
1503
+ */
1504
+
1505
+ /**
1506
+ * RenewAire CORES API
1507
+ *
1508
+ * Contact: renewaire@saritasa.com
1509
+ *
1510
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1511
+ * https://openapi-generator.tech
1512
+ * Do not edit the class manually.
1513
+ */
1514
+
1515
+ /**
1516
+ * RenewAire CORES API
1517
+ *
1518
+ * Contact: renewaire@saritasa.com
1519
+ *
1520
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1521
+ * https://openapi-generator.tech
1522
+ * Do not edit the class manually.
1523
+ */
1524
+
1525
+ /**
1526
+ * RenewAire CORES API
1527
+ *
1528
+ * Contact: renewaire@saritasa.com
1529
+ *
1530
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1531
+ * https://openapi-generator.tech
1532
+ * Do not edit the class manually.
1533
+ */
1534
+ var SearchRegionDtoLevelEnum;
1535
+ (function (SearchRegionDtoLevelEnum) {
1536
+ SearchRegionDtoLevelEnum["Country"] = "Country";
1537
+ SearchRegionDtoLevelEnum["State"] = "State";
1538
+ SearchRegionDtoLevelEnum["County"] = "County";
1539
+ })(SearchRegionDtoLevelEnum || (SearchRegionDtoLevelEnum = {}));
1540
+
1541
+ /**
1542
+ * RenewAire CORES API
1543
+ *
1544
+ * Contact: renewaire@saritasa.com
1545
+ *
1546
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1547
+ * https://openapi-generator.tech
1548
+ * Do not edit the class manually.
1549
+ */
1550
+
1551
+ /**
1552
+ * RenewAire CORES API
1553
+ *
1554
+ * Contact: renewaire@saritasa.com
1555
+ *
1556
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1557
+ * https://openapi-generator.tech
1558
+ * Do not edit the class manually.
1559
+ */
1560
+
1561
+ /**
1562
+ * RenewAire CORES API
1563
+ *
1564
+ * Contact: renewaire@saritasa.com
1565
+ *
1566
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1567
+ * https://openapi-generator.tech
1568
+ * Do not edit the class manually.
1569
+ */
1570
+
1571
+ /**
1572
+ * RenewAire CORES API
1573
+ *
1574
+ * Contact: renewaire@saritasa.com
1575
+ *
1576
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1577
+ * https://openapi-generator.tech
1578
+ * Do not edit the class manually.
1579
+ */
1580
+
1581
+ /**
1582
+ * RenewAire CORES API
1583
+ *
1584
+ * Contact: renewaire@saritasa.com
1585
+ *
1586
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1587
+ * https://openapi-generator.tech
1588
+ * Do not edit the class manually.
1589
+ */
1590
+
1591
+ /**
1592
+ * RenewAire CORES API
1593
+ *
1594
+ * Contact: renewaire@saritasa.com
1595
+ *
1596
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1597
+ * https://openapi-generator.tech
1598
+ * Do not edit the class manually.
1599
+ */
1600
+
1601
+ class ApiModule {
1602
+ static forRoot(configurationFactory) {
1603
+ return {
1604
+ ngModule: ApiModule,
1605
+ providers: [{ provide: Configuration, useFactory: configurationFactory }],
1606
+ };
1607
+ }
1608
+ constructor(parentModule, http) {
1609
+ if (parentModule) {
1610
+ throw new Error("ApiModule is already loaded. Import in your base AppModule only.");
1611
+ }
1612
+ if (!http) {
1613
+ throw new Error("You need to import the HttpClientModule in your AppModule! \n" +
1614
+ "See also https://github.com/angular/angular/issues/20575");
1615
+ }
1616
+ }
1617
+ 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 });
1618
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.3", ngImport: i0, type: ApiModule });
1619
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: ApiModule });
1620
+ }
1621
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: ApiModule, decorators: [{
1622
+ type: NgModule,
1623
+ args: [{
1624
+ imports: [],
1625
+ declarations: [],
1626
+ exports: [],
1627
+ providers: [],
1628
+ }]
1629
+ }], ctorParameters: () => [{ type: ApiModule, decorators: [{
1630
+ type: Optional
1631
+ }, {
1632
+ type: SkipSelf
1633
+ }] }, { type: i1.HttpClient, decorators: [{
1634
+ type: Optional
1635
+ }] }] });
1636
+
1637
+ // Returns the service class providers, to be used in the [ApplicationConfig](https://angular.dev/api/core/ApplicationConfig).
1638
+ function provideApi(configOrBasePath) {
1639
+ return makeEnvironmentProviders([
1640
+ typeof configOrBasePath === "string"
1641
+ ? { provide: BASE_PATH, useValue: configOrBasePath }
1642
+ : {
1643
+ provide: Configuration,
1644
+ useValue: new Configuration({ ...configOrBasePath }),
1645
+ },
1646
+ ]);
1647
+ }
1648
+
1649
+ /**
1650
+ * Generated bundle index. Do not edit.
1651
+ */
1652
+
1653
+ export { APIS, AddressCountry, AddressDtoCountryEnum, ApiModule, AuthApiService, BASE_PATH, COLLECTION_FORMATS, Configuration, PermissionsApiService, RegionLevel, RegionsApiService, RepTerritoriesApiService, RsdRegionsApiService, SearchRegionDtoLevelEnum, UsersApiService, provideApi };
1654
+ //# sourceMappingURL=saritasa-renewaire-frontend-sdk.mjs.map