@saritasa/renewaire-frontend-sdk 0.1.2 → 0.1.3

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,703 @@
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 } 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.2", 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.2", ngImport: i0, type: AuthApiService, providedIn: "root" });
373
+ }
374
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.2", 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 UsersApiService extends BaseService {
399
+ httpClient;
400
+ constructor(httpClient, basePath, configuration) {
401
+ super(basePath, configuration);
402
+ this.httpClient = httpClient;
403
+ }
404
+ usersConfirmEmail(requestParameters, observe = "body", reportProgress = false, options) {
405
+ const emailConfirmationTokenDto = requestParameters?.emailConfirmationTokenDto;
406
+ let localVarHeaders = this.defaultHeaders;
407
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
408
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
409
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
410
+ }
411
+ const localVarHttpContext = options?.context ?? new HttpContext();
412
+ const localVarTransferCache = options?.transferCache ?? true;
413
+ // to determine the Content-Type header
414
+ const consumes = [
415
+ "application/json",
416
+ "text/json",
417
+ "application/*+json",
418
+ ];
419
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
420
+ if (httpContentTypeSelected !== undefined) {
421
+ localVarHeaders = localVarHeaders.set("Content-Type", httpContentTypeSelected);
422
+ }
423
+ let responseType_ = "json";
424
+ if (localVarHttpHeaderAcceptSelected) {
425
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
426
+ responseType_ = "text";
427
+ }
428
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
429
+ responseType_ = "json";
430
+ }
431
+ else {
432
+ responseType_ = "blob";
433
+ }
434
+ }
435
+ let localVarPath = `/api/users/confirm-email`;
436
+ const { basePath, withCredentials } = this.configuration;
437
+ return this.httpClient.request("post", `${basePath}${localVarPath}`, {
438
+ context: localVarHttpContext,
439
+ body: emailConfirmationTokenDto,
440
+ responseType: responseType_,
441
+ ...(withCredentials ? { withCredentials } : {}),
442
+ headers: localVarHeaders,
443
+ observe: observe,
444
+ transferCache: localVarTransferCache,
445
+ reportProgress: reportProgress,
446
+ });
447
+ }
448
+ usersRegisterUser(requestParameters, observe = "body", reportProgress = false, options) {
449
+ const userRegistrationDto = requestParameters?.userRegistrationDto;
450
+ let localVarHeaders = this.defaultHeaders;
451
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
452
+ this.configuration.selectHeaderAccept([
453
+ "text/plain",
454
+ "application/json",
455
+ "text/json",
456
+ ]);
457
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
458
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
459
+ }
460
+ const localVarHttpContext = options?.context ?? new HttpContext();
461
+ const localVarTransferCache = options?.transferCache ?? true;
462
+ // to determine the Content-Type header
463
+ const consumes = [
464
+ "application/json",
465
+ "text/json",
466
+ "application/*+json",
467
+ ];
468
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
469
+ if (httpContentTypeSelected !== undefined) {
470
+ localVarHeaders = localVarHeaders.set("Content-Type", httpContentTypeSelected);
471
+ }
472
+ let responseType_ = "json";
473
+ if (localVarHttpHeaderAcceptSelected) {
474
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
475
+ responseType_ = "text";
476
+ }
477
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
478
+ responseType_ = "json";
479
+ }
480
+ else {
481
+ responseType_ = "blob";
482
+ }
483
+ }
484
+ let localVarPath = `/api/users`;
485
+ const { basePath, withCredentials } = this.configuration;
486
+ return this.httpClient.request("post", `${basePath}${localVarPath}`, {
487
+ context: localVarHttpContext,
488
+ body: userRegistrationDto,
489
+ responseType: responseType_,
490
+ ...(withCredentials ? { withCredentials } : {}),
491
+ headers: localVarHeaders,
492
+ observe: observe,
493
+ transferCache: localVarTransferCache,
494
+ reportProgress: reportProgress,
495
+ });
496
+ }
497
+ usersRequestConfirmEmail(requestParameters, observe = "body", reportProgress = false, options) {
498
+ const userEmailDto = requestParameters?.userEmailDto;
499
+ let localVarHeaders = this.defaultHeaders;
500
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
501
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
502
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
503
+ }
504
+ const localVarHttpContext = options?.context ?? new HttpContext();
505
+ const localVarTransferCache = options?.transferCache ?? true;
506
+ // to determine the Content-Type header
507
+ const consumes = [
508
+ "application/json",
509
+ "text/json",
510
+ "application/*+json",
511
+ ];
512
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
513
+ if (httpContentTypeSelected !== undefined) {
514
+ localVarHeaders = localVarHeaders.set("Content-Type", httpContentTypeSelected);
515
+ }
516
+ let responseType_ = "json";
517
+ if (localVarHttpHeaderAcceptSelected) {
518
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
519
+ responseType_ = "text";
520
+ }
521
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
522
+ responseType_ = "json";
523
+ }
524
+ else {
525
+ responseType_ = "blob";
526
+ }
527
+ }
528
+ let localVarPath = `/api/users/request-email`;
529
+ const { basePath, withCredentials } = this.configuration;
530
+ return this.httpClient.request("put", `${basePath}${localVarPath}`, {
531
+ context: localVarHttpContext,
532
+ body: userEmailDto,
533
+ responseType: responseType_,
534
+ ...(withCredentials ? { withCredentials } : {}),
535
+ headers: localVarHeaders,
536
+ observe: observe,
537
+ transferCache: localVarTransferCache,
538
+ reportProgress: reportProgress,
539
+ });
540
+ }
541
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.2", ngImport: i0, type: UsersApiService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
542
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.2", ngImport: i0, type: UsersApiService, providedIn: "root" });
543
+ }
544
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.2", ngImport: i0, type: UsersApiService, decorators: [{
545
+ type: Injectable,
546
+ args: [{
547
+ providedIn: "root",
548
+ }]
549
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
550
+ type: Optional
551
+ }, {
552
+ type: Inject,
553
+ args: [BASE_PATH]
554
+ }] }, { type: Configuration, decorators: [{
555
+ type: Optional
556
+ }] }] });
557
+
558
+ const APIS = [AuthApiService, UsersApiService];
559
+
560
+ /**
561
+ * RenewAire CORES API
562
+ *
563
+ * Contact: renewaire@saritasa.com
564
+ *
565
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
566
+ * https://openapi-generator.tech
567
+ * Do not edit the class manually.
568
+ */
569
+
570
+ /**
571
+ * RenewAire CORES API
572
+ *
573
+ * Contact: renewaire@saritasa.com
574
+ *
575
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
576
+ * https://openapi-generator.tech
577
+ * Do not edit the class manually.
578
+ */
579
+
580
+ /**
581
+ * RenewAire CORES API
582
+ *
583
+ * Contact: renewaire@saritasa.com
584
+ *
585
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
586
+ * https://openapi-generator.tech
587
+ * Do not edit the class manually.
588
+ */
589
+
590
+ /**
591
+ * RenewAire CORES API
592
+ *
593
+ * Contact: renewaire@saritasa.com
594
+ *
595
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
596
+ * https://openapi-generator.tech
597
+ * Do not edit the class manually.
598
+ */
599
+
600
+ /**
601
+ * RenewAire CORES API
602
+ *
603
+ * Contact: renewaire@saritasa.com
604
+ *
605
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
606
+ * https://openapi-generator.tech
607
+ * Do not edit the class manually.
608
+ */
609
+
610
+ /**
611
+ * RenewAire CORES API
612
+ *
613
+ * Contact: renewaire@saritasa.com
614
+ *
615
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
616
+ * https://openapi-generator.tech
617
+ * Do not edit the class manually.
618
+ */
619
+
620
+ /**
621
+ * RenewAire CORES API
622
+ *
623
+ * Contact: renewaire@saritasa.com
624
+ *
625
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
626
+ * https://openapi-generator.tech
627
+ * Do not edit the class manually.
628
+ */
629
+
630
+ /**
631
+ * RenewAire CORES API
632
+ *
633
+ * Contact: renewaire@saritasa.com
634
+ *
635
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
636
+ * https://openapi-generator.tech
637
+ * Do not edit the class manually.
638
+ */
639
+
640
+ /**
641
+ * RenewAire CORES API
642
+ *
643
+ * Contact: renewaire@saritasa.com
644
+ *
645
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
646
+ * https://openapi-generator.tech
647
+ * Do not edit the class manually.
648
+ */
649
+
650
+ class ApiModule {
651
+ static forRoot(configurationFactory) {
652
+ return {
653
+ ngModule: ApiModule,
654
+ providers: [{ provide: Configuration, useFactory: configurationFactory }],
655
+ };
656
+ }
657
+ constructor(parentModule, http) {
658
+ if (parentModule) {
659
+ throw new Error("ApiModule is already loaded. Import in your base AppModule only.");
660
+ }
661
+ if (!http) {
662
+ throw new Error("You need to import the HttpClientModule in your AppModule! \n" +
663
+ "See also https://github.com/angular/angular/issues/20575");
664
+ }
665
+ }
666
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.2", ngImport: i0, type: ApiModule, deps: [{ token: ApiModule, optional: true, skipSelf: true }, { token: i1.HttpClient, optional: true }], target: i0.ɵɵFactoryTarget.NgModule });
667
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.1.2", ngImport: i0, type: ApiModule });
668
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.1.2", ngImport: i0, type: ApiModule });
669
+ }
670
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.2", ngImport: i0, type: ApiModule, decorators: [{
671
+ type: NgModule,
672
+ args: [{
673
+ imports: [],
674
+ declarations: [],
675
+ exports: [],
676
+ providers: [],
677
+ }]
678
+ }], ctorParameters: () => [{ type: ApiModule, decorators: [{
679
+ type: Optional
680
+ }, {
681
+ type: SkipSelf
682
+ }] }, { type: i1.HttpClient, decorators: [{
683
+ type: Optional
684
+ }] }] });
685
+
686
+ // Returns the service class providers, to be used in the [ApplicationConfig](https://angular.dev/api/core/ApplicationConfig).
687
+ function provideApi(configOrBasePath) {
688
+ return makeEnvironmentProviders([
689
+ typeof configOrBasePath === "string"
690
+ ? { provide: BASE_PATH, useValue: configOrBasePath }
691
+ : {
692
+ provide: Configuration,
693
+ useValue: new Configuration({ ...configOrBasePath }),
694
+ },
695
+ ]);
696
+ }
697
+
698
+ /**
699
+ * Generated bundle index. Do not edit.
700
+ */
701
+
702
+ export { APIS, ApiModule, AuthApiService, BASE_PATH, COLLECTION_FORMATS, Configuration, UsersApiService, provideApi };
703
+ //# sourceMappingURL=saritasa-renewaire-frontend-sdk.mjs.map