@saritasa/renewaire-frontend-sdk 0.1.2 → 0.1.4

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.
package/index.d.ts ADDED
@@ -0,0 +1,792 @@
1
+ import { HttpParameterCodec, HttpHeaders, HttpParams, HttpClient, HttpContext, HttpResponse, HttpEvent } from '@angular/common/http';
2
+ import { Observable } from 'rxjs';
3
+ import * as i0 from '@angular/core';
4
+ import { InjectionToken, ModuleWithProviders, EnvironmentProviders } from '@angular/core';
5
+
6
+ /**
7
+ * RenewAire CORES API
8
+ *
9
+ * Contact: renewaire@saritasa.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ /**
16
+ * API generated token model.
17
+ */
18
+ interface TokenModel {
19
+ /**
20
+ * Token.
21
+ */
22
+ token: string;
23
+ /**
24
+ * Token expiration in seconds.
25
+ */
26
+ expiresIn: number;
27
+ }
28
+
29
+ /**
30
+ * Standard parameter styles defined by OpenAPI spec
31
+ */
32
+ type StandardParamStyle = "matrix" | "label" | "form" | "simple" | "spaceDelimited" | "pipeDelimited" | "deepObject";
33
+ /**
34
+ * The OpenAPI standard {@link StandardParamStyle}s may be extended by custom styles by the user.
35
+ */
36
+ type ParamStyle = StandardParamStyle | string;
37
+ /**
38
+ * Standard parameter locations defined by OpenAPI spec
39
+ */
40
+ type ParamLocation = "query" | "header" | "path" | "cookie";
41
+ /**
42
+ * Standard types as defined in <a href="https://swagger.io/specification/#data-types">OpenAPI Specification: Data Types</a>
43
+ */
44
+ type StandardDataType = "integer" | "number" | "boolean" | "string" | "object" | "array";
45
+ /**
46
+ * Standard {@link DataType}s plus your own types/classes.
47
+ */
48
+ type DataType = StandardDataType | string;
49
+ /**
50
+ * Standard formats as defined in <a href="https://swagger.io/specification/#data-types">OpenAPI Specification: Data Types</a>
51
+ */
52
+ type StandardDataFormat = "int32" | "int64" | "float" | "double" | "byte" | "binary" | "date" | "date-time" | "password";
53
+ type DataFormat = StandardDataFormat | string;
54
+ /**
55
+ * The parameter to encode.
56
+ */
57
+ interface Param {
58
+ name: string;
59
+ value: unknown;
60
+ in: ParamLocation;
61
+ style: ParamStyle;
62
+ explode: boolean;
63
+ dataType: DataType;
64
+ dataFormat: DataFormat | undefined;
65
+ }
66
+
67
+ interface ConfigurationParameters {
68
+ /**
69
+ * @deprecated Since 5.0. Use credentials instead
70
+ */
71
+ apiKeys?: {
72
+ [key: string]: string;
73
+ };
74
+ username?: string;
75
+ password?: string;
76
+ /**
77
+ * @deprecated Since 5.0. Use credentials instead
78
+ */
79
+ accessToken?: string | (() => string);
80
+ basePath?: string;
81
+ withCredentials?: boolean;
82
+ /**
83
+ * Takes care of encoding query- and form-parameters.
84
+ */
85
+ encoder?: HttpParameterCodec;
86
+ /**
87
+ * Override the default method for encoding path parameters in various
88
+ * <a href="https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#style-values">styles</a>.
89
+ * <p>
90
+ * See {@link README.md} for more details
91
+ * </p>
92
+ */
93
+ encodeParam?: (param: Param) => string;
94
+ /**
95
+ * The keys are the names in the securitySchemes section of the OpenAPI
96
+ * document. They should map to the value used for authentication
97
+ * minus any standard prefixes such as 'Basic' or 'Bearer'.
98
+ */
99
+ credentials?: {
100
+ [key: string]: string | (() => string | undefined);
101
+ };
102
+ }
103
+ declare class Configuration {
104
+ /**
105
+ * @deprecated Since 5.0. Use credentials instead
106
+ */
107
+ apiKeys?: {
108
+ [key: string]: string;
109
+ };
110
+ username?: string;
111
+ password?: string;
112
+ /**
113
+ * @deprecated Since 5.0. Use credentials instead
114
+ */
115
+ accessToken?: string | (() => string);
116
+ basePath?: string;
117
+ withCredentials?: boolean;
118
+ /**
119
+ * Takes care of encoding query- and form-parameters.
120
+ */
121
+ encoder?: HttpParameterCodec;
122
+ /**
123
+ * Encoding of various path parameter
124
+ * <a href="https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#style-values">styles</a>.
125
+ * <p>
126
+ * See {@link README.md} for more details
127
+ * </p>
128
+ */
129
+ encodeParam: (param: Param) => string;
130
+ /**
131
+ * The keys are the names in the securitySchemes section of the OpenAPI
132
+ * document. They should map to the value used for authentication
133
+ * minus any standard prefixes such as 'Basic' or 'Bearer'.
134
+ */
135
+ credentials: {
136
+ [key: string]: string | (() => string | undefined);
137
+ };
138
+ constructor({ accessToken, apiKeys, basePath, credentials, encodeParam, encoder, password, username, withCredentials, }?: ConfigurationParameters);
139
+ /**
140
+ * Select the correct content-type to use for a request.
141
+ * Uses {@link Configuration#isJsonMime} to determine the correct content-type.
142
+ * If no content type is found return the first found type if the contentTypes is not empty
143
+ * @param contentTypes - the array of content types that are available for selection
144
+ * @returns the selected content-type or <code>undefined</code> if no selection could be made.
145
+ */
146
+ selectHeaderContentType(contentTypes: string[]): string | undefined;
147
+ /**
148
+ * Select the correct accept content-type to use for a request.
149
+ * Uses {@link Configuration#isJsonMime} to determine the correct accept content-type.
150
+ * If no content type is found return the first found type if the contentTypes is not empty
151
+ * @param accepts - the array of content types that are available for selection.
152
+ * @returns the selected content-type or <code>undefined</code> if no selection could be made.
153
+ */
154
+ selectHeaderAccept(accepts: string[]): string | undefined;
155
+ /**
156
+ * Check if the given MIME is a JSON MIME.
157
+ * JSON MIME examples:
158
+ * application/json
159
+ * application/json; charset=UTF8
160
+ * APPLICATION/JSON
161
+ * application/vnd.company+json
162
+ * @param mime - MIME (Multipurpose Internet Mail Extensions)
163
+ * @return True if the given MIME is JSON, false otherwise.
164
+ */
165
+ isJsonMime(mime: string): boolean;
166
+ lookupCredential(key: string): string | undefined;
167
+ addCredentialToHeaders(credentialKey: string, headerName: string, headers: HttpHeaders, prefix?: string): HttpHeaders;
168
+ addCredentialToQuery(credentialKey: string, paramName: string, query: HttpParams): HttpParams;
169
+ private defaultEncodeParam;
170
+ }
171
+
172
+ /**
173
+ * RenewAire CORES API
174
+ *
175
+ * Contact: renewaire@saritasa.com
176
+ *
177
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
178
+ * https://openapi-generator.tech
179
+ * Do not edit the class manually.
180
+ */
181
+
182
+ declare class BaseService {
183
+ protected basePath: string;
184
+ defaultHeaders: HttpHeaders;
185
+ configuration: Configuration;
186
+ encoder: HttpParameterCodec;
187
+ constructor(basePath?: string | string[], configuration?: Configuration);
188
+ protected canConsumeForm(consumes: string[]): boolean;
189
+ protected addToHttpParams(httpParams: HttpParams, value: any, key?: string, isDeep?: boolean): HttpParams;
190
+ protected addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string, isDeep?: boolean): HttpParams;
191
+ }
192
+
193
+ /**
194
+ * RenewAire CORES API
195
+ *
196
+ * Contact: renewaire@saritasa.com
197
+ *
198
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
199
+ * https://openapi-generator.tech
200
+ * Do not edit the class manually.
201
+ */
202
+ /**
203
+ * Email confirmation token DTO.
204
+ */
205
+ interface EmailConfirmationTokenDto {
206
+ /**
207
+ * Email address.
208
+ */
209
+ email: string;
210
+ /**
211
+ * Confirmation token (code).
212
+ */
213
+ token: string;
214
+ }
215
+
216
+ /**
217
+ * RenewAire CORES API
218
+ *
219
+ * Contact: renewaire@saritasa.com
220
+ *
221
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
222
+ * https://openapi-generator.tech
223
+ * Do not edit the class manually.
224
+ */
225
+ /**
226
+ * DTO to return Id of entity.
227
+ */
228
+ interface Int32IdDto {
229
+ id: number;
230
+ }
231
+
232
+ /**
233
+ * RenewAire CORES API
234
+ *
235
+ * Contact: renewaire@saritasa.com
236
+ *
237
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
238
+ * https://openapi-generator.tech
239
+ * Do not edit the class manually.
240
+ */
241
+ /**
242
+ * Login user command.
243
+ */
244
+ interface LoginUserCommand {
245
+ /**
246
+ * Username (email).
247
+ */
248
+ userName: string;
249
+ /**
250
+ * Password.
251
+ */
252
+ password: string;
253
+ /**
254
+ * Remember user\'s cookie for longer period.
255
+ */
256
+ rememberMe: boolean;
257
+ }
258
+
259
+ /**
260
+ * RenewAire CORES API
261
+ *
262
+ * Contact: renewaire@saritasa.com
263
+ *
264
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
265
+ * https://openapi-generator.tech
266
+ * Do not edit the class manually.
267
+ */
268
+ interface OffsetLimitListMetadata {
269
+ totalCount: number;
270
+ offset: number;
271
+ limit: number;
272
+ }
273
+
274
+ /**
275
+ * RenewAire CORES API
276
+ *
277
+ * Contact: renewaire@saritasa.com
278
+ *
279
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
280
+ * https://openapi-generator.tech
281
+ * Do not edit the class manually.
282
+ */
283
+ interface PagedListMetadata {
284
+ totalCount: number;
285
+ offset: number;
286
+ limit: number;
287
+ page: number;
288
+ pageSize: number;
289
+ totalPages: number;
290
+ }
291
+
292
+ /**
293
+ * RenewAire CORES API
294
+ *
295
+ * Contact: renewaire@saritasa.com
296
+ *
297
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
298
+ * https://openapi-generator.tech
299
+ * Do not edit the class manually.
300
+ */
301
+ /**
302
+ * Physical address.
303
+ */
304
+ interface PhysicalAddressDto {
305
+ /**
306
+ * Address display name.
307
+ */
308
+ displayAddress: string;
309
+ street1: string;
310
+ stateCode: string;
311
+ /**
312
+ * Country name.
313
+ */
314
+ country: string;
315
+ /**
316
+ * Postal code.
317
+ */
318
+ postalCode: string;
319
+ apartmentNumber?: string | null;
320
+ street2?: string | null;
321
+ county?: string | null;
322
+ city?: string | null;
323
+ }
324
+
325
+ /**
326
+ * RenewAire CORES API
327
+ *
328
+ * Contact: renewaire@saritasa.com
329
+ *
330
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
331
+ * https://openapi-generator.tech
332
+ * Do not edit the class manually.
333
+ */
334
+ /**
335
+ * Refresh token command.
336
+ */
337
+ interface RefreshTokenCommand {
338
+ /**
339
+ * User token.
340
+ */
341
+ token: string;
342
+ }
343
+
344
+ /**
345
+ * RenewAire CORES API
346
+ *
347
+ * Contact: renewaire@saritasa.com
348
+ *
349
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
350
+ * https://openapi-generator.tech
351
+ * Do not edit the class manually.
352
+ */
353
+ /**
354
+ * RegionLevel<br />0 = Country<br />1 = State<br />2 = County
355
+ */
356
+ declare enum RegionLevel {
357
+ Country = "Country",
358
+ State = "State",
359
+ County = "County"
360
+ }
361
+
362
+ /**
363
+ * RenewAire CORES API
364
+ *
365
+ * Contact: renewaire@saritasa.com
366
+ *
367
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
368
+ * https://openapi-generator.tech
369
+ * Do not edit the class manually.
370
+ */
371
+ /**
372
+ * DTO for searching RenewAire.Cores.Domain.Region.
373
+ */
374
+ interface SearchRegionDto {
375
+ id: object;
376
+ /**
377
+ * RegionLevel<br />0 = Country<br />1 = State<br />2 = County
378
+ */
379
+ level: SearchRegionDtoLevelEnum;
380
+ name: string;
381
+ code: string;
382
+ parentRegionId?: object | null;
383
+ }
384
+ declare enum SearchRegionDtoLevelEnum {
385
+ Country = "Country",
386
+ State = "State",
387
+ County = "County"
388
+ }
389
+
390
+ /**
391
+ * RenewAire CORES API
392
+ *
393
+ * Contact: renewaire@saritasa.com
394
+ *
395
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
396
+ * https://openapi-generator.tech
397
+ * Do not edit the class manually.
398
+ */
399
+
400
+ interface SearchRegionDtoPagedListMetadataDto {
401
+ metadata: PagedListMetadata;
402
+ items: Array<SearchRegionDto>;
403
+ }
404
+
405
+ /**
406
+ * RenewAire CORES API
407
+ *
408
+ * Contact: renewaire@saritasa.com
409
+ *
410
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
411
+ * https://openapi-generator.tech
412
+ * Do not edit the class manually.
413
+ */
414
+ interface TotalCountListMetadata {
415
+ totalCount: number;
416
+ }
417
+
418
+ /**
419
+ * RenewAire CORES API
420
+ *
421
+ * Contact: renewaire@saritasa.com
422
+ *
423
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
424
+ * https://openapi-generator.tech
425
+ * Do not edit the class manually.
426
+ */
427
+ /**
428
+ * User email DTO.
429
+ */
430
+ interface UserEmailDto {
431
+ /**
432
+ * <inheritdoc cref=\"P:RenewAire.Cores.Domain.Users.User.Email\" />.
433
+ */
434
+ email: string;
435
+ }
436
+
437
+ /**
438
+ * RenewAire CORES API
439
+ *
440
+ * Contact: renewaire@saritasa.com
441
+ *
442
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
443
+ * https://openapi-generator.tech
444
+ * Do not edit the class manually.
445
+ */
446
+ /**
447
+ * User preferences DTO.
448
+ */
449
+ interface UserPreferencesDto {
450
+ occupation: string;
451
+ }
452
+
453
+ /**
454
+ * RenewAire CORES API
455
+ *
456
+ * Contact: renewaire@saritasa.com
457
+ *
458
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
459
+ * https://openapi-generator.tech
460
+ * Do not edit the class manually.
461
+ */
462
+ /**
463
+ * User profile DTO.
464
+ */
465
+ interface UserProfileDto {
466
+ firstName: string;
467
+ lastName: string;
468
+ company: string;
469
+ title: string;
470
+ /**
471
+ * Phone number.
472
+ */
473
+ workPhoneNumber: string;
474
+ /**
475
+ * Work phone number extension. Optional.
476
+ */
477
+ workPhoneNumberExt?: string | null;
478
+ /**
479
+ * Work phone.
480
+ */
481
+ mobilePhoneNumber?: string | null;
482
+ }
483
+
484
+ /**
485
+ * RenewAire CORES API
486
+ *
487
+ * Contact: renewaire@saritasa.com
488
+ *
489
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
490
+ * https://openapi-generator.tech
491
+ * Do not edit the class manually.
492
+ */
493
+
494
+ /**
495
+ * User registration DTO.
496
+ */
497
+ interface UserRegistrationDto {
498
+ /**
499
+ * Email address and confirmation token.
500
+ */
501
+ emailToken: EmailConfirmationTokenDto;
502
+ /**
503
+ * Password.
504
+ */
505
+ password: string;
506
+ /**
507
+ * User profile information.
508
+ */
509
+ profile: UserProfileDto;
510
+ /**
511
+ * Physical address.
512
+ */
513
+ address: PhysicalAddressDto;
514
+ /**
515
+ * Preferences.
516
+ */
517
+ preferences: UserPreferencesDto;
518
+ }
519
+
520
+ /**
521
+ * RenewAire CORES API
522
+ *
523
+ * Contact: renewaire@saritasa.com
524
+ *
525
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
526
+ * https://openapi-generator.tech
527
+ * Do not edit the class manually.
528
+ */
529
+
530
+ interface AuthAuthenticateRequestParams {
531
+ loginUserCommand: LoginUserCommand;
532
+ }
533
+ interface AuthRefreshTokenRequestParams {
534
+ refreshTokenCommand: RefreshTokenCommand;
535
+ }
536
+ interface AuthApiServiceInterface {
537
+ defaultHeaders: HttpHeaders;
538
+ configuration: Configuration;
539
+ /**
540
+ * Authenticate user by email and password.
541
+ *
542
+ * @param requestParameters
543
+ */
544
+ authAuthenticate(requestParameters: AuthAuthenticateRequestParams, extraHttpRequestParams?: any): Observable<TokenModel>;
545
+ /**
546
+ * Get new token by refresh token.
547
+ *
548
+ * @param requestParameters
549
+ */
550
+ authRefreshToken(requestParameters: AuthRefreshTokenRequestParams, extraHttpRequestParams?: any): Observable<TokenModel>;
551
+ }
552
+
553
+ declare class AuthApiService extends BaseService implements AuthApiServiceInterface {
554
+ protected httpClient: HttpClient;
555
+ constructor(httpClient: HttpClient, basePath: string | string[], configuration?: Configuration);
556
+ /**
557
+ * Authenticate user by email and password.
558
+ * @param requestParameters
559
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
560
+ * @param reportProgress flag to report request and response progress.
561
+ */
562
+ authAuthenticate(requestParameters: AuthAuthenticateRequestParams, observe?: "body", reportProgress?: boolean, options?: {
563
+ httpHeaderAccept?: "text/plain" | "application/json" | "text/json";
564
+ context?: HttpContext;
565
+ transferCache?: boolean;
566
+ }): Observable<TokenModel>;
567
+ authAuthenticate(requestParameters: AuthAuthenticateRequestParams, observe?: "response", reportProgress?: boolean, options?: {
568
+ httpHeaderAccept?: "text/plain" | "application/json" | "text/json";
569
+ context?: HttpContext;
570
+ transferCache?: boolean;
571
+ }): Observable<HttpResponse<TokenModel>>;
572
+ authAuthenticate(requestParameters: AuthAuthenticateRequestParams, observe?: "events", reportProgress?: boolean, options?: {
573
+ httpHeaderAccept?: "text/plain" | "application/json" | "text/json";
574
+ context?: HttpContext;
575
+ transferCache?: boolean;
576
+ }): Observable<HttpEvent<TokenModel>>;
577
+ /**
578
+ * Get new token by refresh token.
579
+ * @param requestParameters
580
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
581
+ * @param reportProgress flag to report request and response progress.
582
+ */
583
+ authRefreshToken(requestParameters: AuthRefreshTokenRequestParams, observe?: "body", reportProgress?: boolean, options?: {
584
+ httpHeaderAccept?: "text/plain" | "application/json" | "text/json";
585
+ context?: HttpContext;
586
+ transferCache?: boolean;
587
+ }): Observable<TokenModel>;
588
+ authRefreshToken(requestParameters: AuthRefreshTokenRequestParams, observe?: "response", reportProgress?: boolean, options?: {
589
+ httpHeaderAccept?: "text/plain" | "application/json" | "text/json";
590
+ context?: HttpContext;
591
+ transferCache?: boolean;
592
+ }): Observable<HttpResponse<TokenModel>>;
593
+ authRefreshToken(requestParameters: AuthRefreshTokenRequestParams, observe?: "events", reportProgress?: boolean, options?: {
594
+ httpHeaderAccept?: "text/plain" | "application/json" | "text/json";
595
+ context?: HttpContext;
596
+ transferCache?: boolean;
597
+ }): Observable<HttpEvent<TokenModel>>;
598
+ static ɵfac: i0.ɵɵFactoryDeclaration<AuthApiService, [null, { optional: true; }, { optional: true; }]>;
599
+ static ɵprov: i0.ɵɵInjectableDeclaration<AuthApiService>;
600
+ }
601
+
602
+ /**
603
+ * RenewAire CORES API
604
+ *
605
+ * Contact: renewaire@saritasa.com
606
+ *
607
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
608
+ * https://openapi-generator.tech
609
+ * Do not edit the class manually.
610
+ */
611
+
612
+ interface RegionsSearchRegionsRequestParams {
613
+ name?: string;
614
+ code?: string;
615
+ level?: RegionLevel;
616
+ orderBy?: string;
617
+ page?: number;
618
+ pageSize?: number;
619
+ }
620
+ interface RegionsApiServiceInterface {
621
+ defaultHeaders: HttpHeaders;
622
+ configuration: Configuration;
623
+ /**
624
+ * Search regions.
625
+ *
626
+ * @param requestParameters
627
+ */
628
+ regionsSearchRegions(requestParameters: RegionsSearchRegionsRequestParams, extraHttpRequestParams?: any): Observable<SearchRegionDtoPagedListMetadataDto>;
629
+ }
630
+
631
+ declare class RegionsApiService extends BaseService implements RegionsApiServiceInterface {
632
+ protected httpClient: HttpClient;
633
+ constructor(httpClient: HttpClient, basePath: string | string[], configuration?: Configuration);
634
+ /**
635
+ * Search regions.
636
+ * @param requestParameters
637
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
638
+ * @param reportProgress flag to report request and response progress.
639
+ */
640
+ regionsSearchRegions(requestParameters?: RegionsSearchRegionsRequestParams, observe?: "body", reportProgress?: boolean, options?: {
641
+ httpHeaderAccept?: "text/plain" | "application/json" | "text/json";
642
+ context?: HttpContext;
643
+ transferCache?: boolean;
644
+ }): Observable<SearchRegionDtoPagedListMetadataDto>;
645
+ regionsSearchRegions(requestParameters?: RegionsSearchRegionsRequestParams, observe?: "response", reportProgress?: boolean, options?: {
646
+ httpHeaderAccept?: "text/plain" | "application/json" | "text/json";
647
+ context?: HttpContext;
648
+ transferCache?: boolean;
649
+ }): Observable<HttpResponse<SearchRegionDtoPagedListMetadataDto>>;
650
+ regionsSearchRegions(requestParameters?: RegionsSearchRegionsRequestParams, observe?: "events", reportProgress?: boolean, options?: {
651
+ httpHeaderAccept?: "text/plain" | "application/json" | "text/json";
652
+ context?: HttpContext;
653
+ transferCache?: boolean;
654
+ }): Observable<HttpEvent<SearchRegionDtoPagedListMetadataDto>>;
655
+ static ɵfac: i0.ɵɵFactoryDeclaration<RegionsApiService, [null, { optional: true; }, { optional: true; }]>;
656
+ static ɵprov: i0.ɵɵInjectableDeclaration<RegionsApiService>;
657
+ }
658
+
659
+ /**
660
+ * RenewAire CORES API
661
+ *
662
+ * Contact: renewaire@saritasa.com
663
+ *
664
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
665
+ * https://openapi-generator.tech
666
+ * Do not edit the class manually.
667
+ */
668
+
669
+ interface UsersConfirmEmailRequestParams {
670
+ emailConfirmationTokenDto?: EmailConfirmationTokenDto;
671
+ }
672
+ interface UsersRegisterUserRequestParams {
673
+ userRegistrationDto?: UserRegistrationDto;
674
+ }
675
+ interface UsersRequestConfirmEmailRequestParams {
676
+ userEmailDto?: UserEmailDto;
677
+ }
678
+ interface UsersApiServiceInterface {
679
+ defaultHeaders: HttpHeaders;
680
+ configuration: Configuration;
681
+ /**
682
+ * Confirm email address using the verification code from email and continue registration.
683
+ *
684
+ * @param requestParameters
685
+ */
686
+ usersConfirmEmail(requestParameters: UsersConfirmEmailRequestParams, extraHttpRequestParams?: any): Observable<{}>;
687
+ /**
688
+ * Register user.
689
+ *
690
+ * @param requestParameters
691
+ */
692
+ usersRegisterUser(requestParameters: UsersRegisterUserRequestParams, extraHttpRequestParams?: any): Observable<Int32IdDto>;
693
+ /**
694
+ * Request email confirmation and begin registration. This endpoint sends verification email to a given address.
695
+ *
696
+ * @param requestParameters
697
+ */
698
+ usersRequestConfirmEmail(requestParameters: UsersRequestConfirmEmailRequestParams, extraHttpRequestParams?: any): Observable<{}>;
699
+ }
700
+
701
+ declare class UsersApiService extends BaseService implements UsersApiServiceInterface {
702
+ protected httpClient: HttpClient;
703
+ constructor(httpClient: HttpClient, basePath: string | string[], configuration?: Configuration);
704
+ /**
705
+ * Confirm email address using the verification code from email and continue registration.
706
+ * @param requestParameters
707
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
708
+ * @param reportProgress flag to report request and response progress.
709
+ */
710
+ usersConfirmEmail(requestParameters?: UsersConfirmEmailRequestParams, observe?: "body", reportProgress?: boolean, options?: {
711
+ httpHeaderAccept?: undefined;
712
+ context?: HttpContext;
713
+ transferCache?: boolean;
714
+ }): Observable<any>;
715
+ usersConfirmEmail(requestParameters?: UsersConfirmEmailRequestParams, observe?: "response", reportProgress?: boolean, options?: {
716
+ httpHeaderAccept?: undefined;
717
+ context?: HttpContext;
718
+ transferCache?: boolean;
719
+ }): Observable<HttpResponse<any>>;
720
+ usersConfirmEmail(requestParameters?: UsersConfirmEmailRequestParams, observe?: "events", reportProgress?: boolean, options?: {
721
+ httpHeaderAccept?: undefined;
722
+ context?: HttpContext;
723
+ transferCache?: boolean;
724
+ }): Observable<HttpEvent<any>>;
725
+ /**
726
+ * Register user.
727
+ * @param requestParameters
728
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
729
+ * @param reportProgress flag to report request and response progress.
730
+ */
731
+ usersRegisterUser(requestParameters?: UsersRegisterUserRequestParams, observe?: "body", reportProgress?: boolean, options?: {
732
+ httpHeaderAccept?: "text/plain" | "application/json" | "text/json";
733
+ context?: HttpContext;
734
+ transferCache?: boolean;
735
+ }): Observable<Int32IdDto>;
736
+ usersRegisterUser(requestParameters?: UsersRegisterUserRequestParams, observe?: "response", reportProgress?: boolean, options?: {
737
+ httpHeaderAccept?: "text/plain" | "application/json" | "text/json";
738
+ context?: HttpContext;
739
+ transferCache?: boolean;
740
+ }): Observable<HttpResponse<Int32IdDto>>;
741
+ usersRegisterUser(requestParameters?: UsersRegisterUserRequestParams, observe?: "events", reportProgress?: boolean, options?: {
742
+ httpHeaderAccept?: "text/plain" | "application/json" | "text/json";
743
+ context?: HttpContext;
744
+ transferCache?: boolean;
745
+ }): Observable<HttpEvent<Int32IdDto>>;
746
+ /**
747
+ * Request email confirmation and begin registration. This endpoint sends verification email to a given address.
748
+ * @param requestParameters
749
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
750
+ * @param reportProgress flag to report request and response progress.
751
+ */
752
+ usersRequestConfirmEmail(requestParameters?: UsersRequestConfirmEmailRequestParams, observe?: "body", reportProgress?: boolean, options?: {
753
+ httpHeaderAccept?: undefined;
754
+ context?: HttpContext;
755
+ transferCache?: boolean;
756
+ }): Observable<any>;
757
+ usersRequestConfirmEmail(requestParameters?: UsersRequestConfirmEmailRequestParams, observe?: "response", reportProgress?: boolean, options?: {
758
+ httpHeaderAccept?: undefined;
759
+ context?: HttpContext;
760
+ transferCache?: boolean;
761
+ }): Observable<HttpResponse<any>>;
762
+ usersRequestConfirmEmail(requestParameters?: UsersRequestConfirmEmailRequestParams, observe?: "events", reportProgress?: boolean, options?: {
763
+ httpHeaderAccept?: undefined;
764
+ context?: HttpContext;
765
+ transferCache?: boolean;
766
+ }): Observable<HttpEvent<any>>;
767
+ static ɵfac: i0.ɵɵFactoryDeclaration<UsersApiService, [null, { optional: true; }, { optional: true; }]>;
768
+ static ɵprov: i0.ɵɵInjectableDeclaration<UsersApiService>;
769
+ }
770
+
771
+ declare const APIS: (typeof AuthApiService | typeof RegionsApiService | typeof UsersApiService)[];
772
+
773
+ declare const BASE_PATH: InjectionToken<string>;
774
+ declare const COLLECTION_FORMATS: {
775
+ csv: string;
776
+ tsv: string;
777
+ ssv: string;
778
+ pipes: string;
779
+ };
780
+
781
+ declare class ApiModule {
782
+ static forRoot(configurationFactory: () => Configuration): ModuleWithProviders<ApiModule>;
783
+ constructor(parentModule: ApiModule, http: HttpClient);
784
+ static ɵfac: i0.ɵɵFactoryDeclaration<ApiModule, [{ optional: true; skipSelf: true; }, { optional: true; }]>;
785
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ApiModule, never, never, never>;
786
+ static ɵinj: i0.ɵɵInjectorDeclaration<ApiModule>;
787
+ }
788
+
789
+ declare function provideApi(configOrBasePath: string | ConfigurationParameters): EnvironmentProviders;
790
+
791
+ export { APIS, ApiModule, AuthApiService, BASE_PATH, COLLECTION_FORMATS, Configuration, RegionLevel, RegionsApiService, SearchRegionDtoLevelEnum, UsersApiService, provideApi };
792
+ export type { AuthApiServiceInterface, AuthAuthenticateRequestParams, AuthRefreshTokenRequestParams, ConfigurationParameters, DataFormat, DataType, EmailConfirmationTokenDto, Int32IdDto, LoginUserCommand, OffsetLimitListMetadata, PagedListMetadata, Param, ParamLocation, ParamStyle, PhysicalAddressDto, RefreshTokenCommand, RegionsApiServiceInterface, RegionsSearchRegionsRequestParams, SearchRegionDto, SearchRegionDtoPagedListMetadataDto, StandardDataFormat, StandardDataType, StandardParamStyle, TokenModel, TotalCountListMetadata, UserEmailDto, UserPreferencesDto, UserProfileDto, UserRegistrationDto, UsersApiServiceInterface, UsersConfirmEmailRequestParams, UsersRegisterUserRequestParams, UsersRequestConfirmEmailRequestParams };