@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.
- package/README.md +2 -2
- package/fesm2022/saritasa-renewaire-frontend-sdk.mjs +703 -0
- package/fesm2022/saritasa-renewaire-frontend-sdk.mjs.map +1 -0
- package/index.d.ts +628 -0
- package/package.json +15 -15
- package/.openapi-generator/FILES +0 -31
- package/.openapi-generator/VERSION +0 -1
- package/.openapi-generator-ignore +0 -23
- package/api/api.ts +0 -7
- package/api/auth-api.ts +0 -296
- package/api/auth-apiInterface.ts +0 -51
- package/api/users-api.ts +0 -387
- package/api/users-apiInterface.ts +0 -66
- package/api.base.service.ts +0 -109
- package/api.module.ts +0 -42
- package/configuration.ts +0 -219
- package/encoder.ts +0 -20
- package/git_push.sh +0 -57
- package/index.ts +0 -7
- package/model/email-confirmation-token-dto.ts +0 -23
- package/model/int32-id-dto.ts +0 -16
- package/model/login-user-command.ts +0 -27
- package/model/models.ts +0 -10
- package/model/physical-address-dto.ts +0 -33
- package/model/refresh-token-command.ts +0 -19
- package/model/token-model.ts +0 -23
- package/model/user-email-dto.ts +0 -19
- package/model/user-preferences-dto.ts +0 -16
- package/model/user-profile-dto.ts +0 -31
- package/model/user-registration-dto.ts +0 -39
- package/ng-package.json +0 -6
- package/param.ts +0 -66
- package/provide-api.ts +0 -17
- package/tsconfig.json +0 -21
- package/variables.ts +0 -9
package/index.d.ts
ADDED
|
@@ -0,0 +1,628 @@
|
|
|
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
|
+
/**
|
|
269
|
+
* Physical address.
|
|
270
|
+
*/
|
|
271
|
+
interface PhysicalAddressDto {
|
|
272
|
+
/**
|
|
273
|
+
* Address display name.
|
|
274
|
+
*/
|
|
275
|
+
displayAddress: string;
|
|
276
|
+
street1: string;
|
|
277
|
+
stateCode: string;
|
|
278
|
+
/**
|
|
279
|
+
* Country name.
|
|
280
|
+
*/
|
|
281
|
+
country: string;
|
|
282
|
+
/**
|
|
283
|
+
* Postal code.
|
|
284
|
+
*/
|
|
285
|
+
postalCode: string;
|
|
286
|
+
apartmentNumber?: string | null;
|
|
287
|
+
street2?: string | null;
|
|
288
|
+
county?: string | null;
|
|
289
|
+
city?: string | null;
|
|
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
|
+
* Refresh token command.
|
|
303
|
+
*/
|
|
304
|
+
interface RefreshTokenCommand {
|
|
305
|
+
/**
|
|
306
|
+
* User token.
|
|
307
|
+
*/
|
|
308
|
+
token: string;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
/**
|
|
312
|
+
* RenewAire CORES API
|
|
313
|
+
*
|
|
314
|
+
* Contact: renewaire@saritasa.com
|
|
315
|
+
*
|
|
316
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
317
|
+
* https://openapi-generator.tech
|
|
318
|
+
* Do not edit the class manually.
|
|
319
|
+
*/
|
|
320
|
+
/**
|
|
321
|
+
* User email DTO.
|
|
322
|
+
*/
|
|
323
|
+
interface UserEmailDto {
|
|
324
|
+
/**
|
|
325
|
+
* <inheritdoc cref=\"P:RenewAire.Cores.Domain.Users.User.Email\" />.
|
|
326
|
+
*/
|
|
327
|
+
email: string;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
/**
|
|
331
|
+
* RenewAire CORES API
|
|
332
|
+
*
|
|
333
|
+
* Contact: renewaire@saritasa.com
|
|
334
|
+
*
|
|
335
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
336
|
+
* https://openapi-generator.tech
|
|
337
|
+
* Do not edit the class manually.
|
|
338
|
+
*/
|
|
339
|
+
/**
|
|
340
|
+
* User preferences DTO.
|
|
341
|
+
*/
|
|
342
|
+
interface UserPreferencesDto {
|
|
343
|
+
occupation: string;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
/**
|
|
347
|
+
* RenewAire CORES API
|
|
348
|
+
*
|
|
349
|
+
* Contact: renewaire@saritasa.com
|
|
350
|
+
*
|
|
351
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
352
|
+
* https://openapi-generator.tech
|
|
353
|
+
* Do not edit the class manually.
|
|
354
|
+
*/
|
|
355
|
+
/**
|
|
356
|
+
* User profile DTO.
|
|
357
|
+
*/
|
|
358
|
+
interface UserProfileDto {
|
|
359
|
+
firstName: string;
|
|
360
|
+
lastName: string;
|
|
361
|
+
company: string;
|
|
362
|
+
title: string;
|
|
363
|
+
/**
|
|
364
|
+
* Phone number.
|
|
365
|
+
*/
|
|
366
|
+
workPhoneNumber: string;
|
|
367
|
+
/**
|
|
368
|
+
* Work phone number extension. Optional.
|
|
369
|
+
*/
|
|
370
|
+
workPhoneNumberExt?: string | null;
|
|
371
|
+
/**
|
|
372
|
+
* Work phone.
|
|
373
|
+
*/
|
|
374
|
+
mobilePhoneNumber?: string | null;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
/**
|
|
378
|
+
* RenewAire CORES API
|
|
379
|
+
*
|
|
380
|
+
* Contact: renewaire@saritasa.com
|
|
381
|
+
*
|
|
382
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
383
|
+
* https://openapi-generator.tech
|
|
384
|
+
* Do not edit the class manually.
|
|
385
|
+
*/
|
|
386
|
+
|
|
387
|
+
/**
|
|
388
|
+
* User registration DTO.
|
|
389
|
+
*/
|
|
390
|
+
interface UserRegistrationDto {
|
|
391
|
+
/**
|
|
392
|
+
* Email address and confirmation token.
|
|
393
|
+
*/
|
|
394
|
+
emailToken: EmailConfirmationTokenDto;
|
|
395
|
+
/**
|
|
396
|
+
* Password.
|
|
397
|
+
*/
|
|
398
|
+
password: string;
|
|
399
|
+
/**
|
|
400
|
+
* User profile information.
|
|
401
|
+
*/
|
|
402
|
+
profile: UserProfileDto;
|
|
403
|
+
/**
|
|
404
|
+
* Physical address.
|
|
405
|
+
*/
|
|
406
|
+
address: PhysicalAddressDto;
|
|
407
|
+
/**
|
|
408
|
+
* Preferences.
|
|
409
|
+
*/
|
|
410
|
+
preferences: UserPreferencesDto;
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
/**
|
|
414
|
+
* RenewAire CORES API
|
|
415
|
+
*
|
|
416
|
+
* Contact: renewaire@saritasa.com
|
|
417
|
+
*
|
|
418
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
419
|
+
* https://openapi-generator.tech
|
|
420
|
+
* Do not edit the class manually.
|
|
421
|
+
*/
|
|
422
|
+
|
|
423
|
+
interface AuthAuthenticateRequestParams {
|
|
424
|
+
loginUserCommand: LoginUserCommand;
|
|
425
|
+
}
|
|
426
|
+
interface AuthRefreshTokenRequestParams {
|
|
427
|
+
refreshTokenCommand: RefreshTokenCommand;
|
|
428
|
+
}
|
|
429
|
+
interface AuthApiServiceInterface {
|
|
430
|
+
defaultHeaders: HttpHeaders;
|
|
431
|
+
configuration: Configuration;
|
|
432
|
+
/**
|
|
433
|
+
* Authenticate user by email and password.
|
|
434
|
+
*
|
|
435
|
+
* @param requestParameters
|
|
436
|
+
*/
|
|
437
|
+
authAuthenticate(requestParameters: AuthAuthenticateRequestParams, extraHttpRequestParams?: any): Observable<TokenModel>;
|
|
438
|
+
/**
|
|
439
|
+
* Get new token by refresh token.
|
|
440
|
+
*
|
|
441
|
+
* @param requestParameters
|
|
442
|
+
*/
|
|
443
|
+
authRefreshToken(requestParameters: AuthRefreshTokenRequestParams, extraHttpRequestParams?: any): Observable<TokenModel>;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
declare class AuthApiService extends BaseService implements AuthApiServiceInterface {
|
|
447
|
+
protected httpClient: HttpClient;
|
|
448
|
+
constructor(httpClient: HttpClient, basePath: string | string[], configuration?: Configuration);
|
|
449
|
+
/**
|
|
450
|
+
* Authenticate user by email and password.
|
|
451
|
+
* @param requestParameters
|
|
452
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
453
|
+
* @param reportProgress flag to report request and response progress.
|
|
454
|
+
*/
|
|
455
|
+
authAuthenticate(requestParameters: AuthAuthenticateRequestParams, observe?: "body", reportProgress?: boolean, options?: {
|
|
456
|
+
httpHeaderAccept?: "text/plain" | "application/json" | "text/json";
|
|
457
|
+
context?: HttpContext;
|
|
458
|
+
transferCache?: boolean;
|
|
459
|
+
}): Observable<TokenModel>;
|
|
460
|
+
authAuthenticate(requestParameters: AuthAuthenticateRequestParams, observe?: "response", reportProgress?: boolean, options?: {
|
|
461
|
+
httpHeaderAccept?: "text/plain" | "application/json" | "text/json";
|
|
462
|
+
context?: HttpContext;
|
|
463
|
+
transferCache?: boolean;
|
|
464
|
+
}): Observable<HttpResponse<TokenModel>>;
|
|
465
|
+
authAuthenticate(requestParameters: AuthAuthenticateRequestParams, observe?: "events", reportProgress?: boolean, options?: {
|
|
466
|
+
httpHeaderAccept?: "text/plain" | "application/json" | "text/json";
|
|
467
|
+
context?: HttpContext;
|
|
468
|
+
transferCache?: boolean;
|
|
469
|
+
}): Observable<HttpEvent<TokenModel>>;
|
|
470
|
+
/**
|
|
471
|
+
* Get new token by refresh token.
|
|
472
|
+
* @param requestParameters
|
|
473
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
474
|
+
* @param reportProgress flag to report request and response progress.
|
|
475
|
+
*/
|
|
476
|
+
authRefreshToken(requestParameters: AuthRefreshTokenRequestParams, observe?: "body", reportProgress?: boolean, options?: {
|
|
477
|
+
httpHeaderAccept?: "text/plain" | "application/json" | "text/json";
|
|
478
|
+
context?: HttpContext;
|
|
479
|
+
transferCache?: boolean;
|
|
480
|
+
}): Observable<TokenModel>;
|
|
481
|
+
authRefreshToken(requestParameters: AuthRefreshTokenRequestParams, observe?: "response", reportProgress?: boolean, options?: {
|
|
482
|
+
httpHeaderAccept?: "text/plain" | "application/json" | "text/json";
|
|
483
|
+
context?: HttpContext;
|
|
484
|
+
transferCache?: boolean;
|
|
485
|
+
}): Observable<HttpResponse<TokenModel>>;
|
|
486
|
+
authRefreshToken(requestParameters: AuthRefreshTokenRequestParams, observe?: "events", reportProgress?: boolean, options?: {
|
|
487
|
+
httpHeaderAccept?: "text/plain" | "application/json" | "text/json";
|
|
488
|
+
context?: HttpContext;
|
|
489
|
+
transferCache?: boolean;
|
|
490
|
+
}): Observable<HttpEvent<TokenModel>>;
|
|
491
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AuthApiService, [null, { optional: true; }, { optional: true; }]>;
|
|
492
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AuthApiService>;
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
/**
|
|
496
|
+
* RenewAire CORES API
|
|
497
|
+
*
|
|
498
|
+
* Contact: renewaire@saritasa.com
|
|
499
|
+
*
|
|
500
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
501
|
+
* https://openapi-generator.tech
|
|
502
|
+
* Do not edit the class manually.
|
|
503
|
+
*/
|
|
504
|
+
|
|
505
|
+
interface UsersConfirmEmailRequestParams {
|
|
506
|
+
emailConfirmationTokenDto?: EmailConfirmationTokenDto;
|
|
507
|
+
}
|
|
508
|
+
interface UsersRegisterUserRequestParams {
|
|
509
|
+
userRegistrationDto?: UserRegistrationDto;
|
|
510
|
+
}
|
|
511
|
+
interface UsersRequestConfirmEmailRequestParams {
|
|
512
|
+
userEmailDto?: UserEmailDto;
|
|
513
|
+
}
|
|
514
|
+
interface UsersApiServiceInterface {
|
|
515
|
+
defaultHeaders: HttpHeaders;
|
|
516
|
+
configuration: Configuration;
|
|
517
|
+
/**
|
|
518
|
+
* Confirm email address using the verification code from email and continue registration.
|
|
519
|
+
*
|
|
520
|
+
* @param requestParameters
|
|
521
|
+
*/
|
|
522
|
+
usersConfirmEmail(requestParameters: UsersConfirmEmailRequestParams, extraHttpRequestParams?: any): Observable<{}>;
|
|
523
|
+
/**
|
|
524
|
+
* Register user.
|
|
525
|
+
*
|
|
526
|
+
* @param requestParameters
|
|
527
|
+
*/
|
|
528
|
+
usersRegisterUser(requestParameters: UsersRegisterUserRequestParams, extraHttpRequestParams?: any): Observable<Int32IdDto>;
|
|
529
|
+
/**
|
|
530
|
+
* Request email confirmation and begin registration. This endpoint sends verification email to a given address.
|
|
531
|
+
*
|
|
532
|
+
* @param requestParameters
|
|
533
|
+
*/
|
|
534
|
+
usersRequestConfirmEmail(requestParameters: UsersRequestConfirmEmailRequestParams, extraHttpRequestParams?: any): Observable<{}>;
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
declare class UsersApiService extends BaseService implements UsersApiServiceInterface {
|
|
538
|
+
protected httpClient: HttpClient;
|
|
539
|
+
constructor(httpClient: HttpClient, basePath: string | string[], configuration?: Configuration);
|
|
540
|
+
/**
|
|
541
|
+
* Confirm email address using the verification code from email and continue registration.
|
|
542
|
+
* @param requestParameters
|
|
543
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
544
|
+
* @param reportProgress flag to report request and response progress.
|
|
545
|
+
*/
|
|
546
|
+
usersConfirmEmail(requestParameters?: UsersConfirmEmailRequestParams, observe?: "body", reportProgress?: boolean, options?: {
|
|
547
|
+
httpHeaderAccept?: undefined;
|
|
548
|
+
context?: HttpContext;
|
|
549
|
+
transferCache?: boolean;
|
|
550
|
+
}): Observable<any>;
|
|
551
|
+
usersConfirmEmail(requestParameters?: UsersConfirmEmailRequestParams, observe?: "response", reportProgress?: boolean, options?: {
|
|
552
|
+
httpHeaderAccept?: undefined;
|
|
553
|
+
context?: HttpContext;
|
|
554
|
+
transferCache?: boolean;
|
|
555
|
+
}): Observable<HttpResponse<any>>;
|
|
556
|
+
usersConfirmEmail(requestParameters?: UsersConfirmEmailRequestParams, observe?: "events", reportProgress?: boolean, options?: {
|
|
557
|
+
httpHeaderAccept?: undefined;
|
|
558
|
+
context?: HttpContext;
|
|
559
|
+
transferCache?: boolean;
|
|
560
|
+
}): Observable<HttpEvent<any>>;
|
|
561
|
+
/**
|
|
562
|
+
* Register user.
|
|
563
|
+
* @param requestParameters
|
|
564
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
565
|
+
* @param reportProgress flag to report request and response progress.
|
|
566
|
+
*/
|
|
567
|
+
usersRegisterUser(requestParameters?: UsersRegisterUserRequestParams, observe?: "body", reportProgress?: boolean, options?: {
|
|
568
|
+
httpHeaderAccept?: "text/plain" | "application/json" | "text/json";
|
|
569
|
+
context?: HttpContext;
|
|
570
|
+
transferCache?: boolean;
|
|
571
|
+
}): Observable<Int32IdDto>;
|
|
572
|
+
usersRegisterUser(requestParameters?: UsersRegisterUserRequestParams, observe?: "response", reportProgress?: boolean, options?: {
|
|
573
|
+
httpHeaderAccept?: "text/plain" | "application/json" | "text/json";
|
|
574
|
+
context?: HttpContext;
|
|
575
|
+
transferCache?: boolean;
|
|
576
|
+
}): Observable<HttpResponse<Int32IdDto>>;
|
|
577
|
+
usersRegisterUser(requestParameters?: UsersRegisterUserRequestParams, observe?: "events", reportProgress?: boolean, options?: {
|
|
578
|
+
httpHeaderAccept?: "text/plain" | "application/json" | "text/json";
|
|
579
|
+
context?: HttpContext;
|
|
580
|
+
transferCache?: boolean;
|
|
581
|
+
}): Observable<HttpEvent<Int32IdDto>>;
|
|
582
|
+
/**
|
|
583
|
+
* Request email confirmation and begin registration. This endpoint sends verification email to a given address.
|
|
584
|
+
* @param requestParameters
|
|
585
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
586
|
+
* @param reportProgress flag to report request and response progress.
|
|
587
|
+
*/
|
|
588
|
+
usersRequestConfirmEmail(requestParameters?: UsersRequestConfirmEmailRequestParams, observe?: "body", reportProgress?: boolean, options?: {
|
|
589
|
+
httpHeaderAccept?: undefined;
|
|
590
|
+
context?: HttpContext;
|
|
591
|
+
transferCache?: boolean;
|
|
592
|
+
}): Observable<any>;
|
|
593
|
+
usersRequestConfirmEmail(requestParameters?: UsersRequestConfirmEmailRequestParams, observe?: "response", reportProgress?: boolean, options?: {
|
|
594
|
+
httpHeaderAccept?: undefined;
|
|
595
|
+
context?: HttpContext;
|
|
596
|
+
transferCache?: boolean;
|
|
597
|
+
}): Observable<HttpResponse<any>>;
|
|
598
|
+
usersRequestConfirmEmail(requestParameters?: UsersRequestConfirmEmailRequestParams, observe?: "events", reportProgress?: boolean, options?: {
|
|
599
|
+
httpHeaderAccept?: undefined;
|
|
600
|
+
context?: HttpContext;
|
|
601
|
+
transferCache?: boolean;
|
|
602
|
+
}): Observable<HttpEvent<any>>;
|
|
603
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UsersApiService, [null, { optional: true; }, { optional: true; }]>;
|
|
604
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<UsersApiService>;
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
declare const APIS: (typeof AuthApiService | typeof UsersApiService)[];
|
|
608
|
+
|
|
609
|
+
declare const BASE_PATH: InjectionToken<string>;
|
|
610
|
+
declare const COLLECTION_FORMATS: {
|
|
611
|
+
csv: string;
|
|
612
|
+
tsv: string;
|
|
613
|
+
ssv: string;
|
|
614
|
+
pipes: string;
|
|
615
|
+
};
|
|
616
|
+
|
|
617
|
+
declare class ApiModule {
|
|
618
|
+
static forRoot(configurationFactory: () => Configuration): ModuleWithProviders<ApiModule>;
|
|
619
|
+
constructor(parentModule: ApiModule, http: HttpClient);
|
|
620
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ApiModule, [{ optional: true; skipSelf: true; }, { optional: true; }]>;
|
|
621
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ApiModule, never, never, never>;
|
|
622
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ApiModule>;
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
declare function provideApi(configOrBasePath: string | ConfigurationParameters): EnvironmentProviders;
|
|
626
|
+
|
|
627
|
+
export { APIS, ApiModule, AuthApiService, BASE_PATH, COLLECTION_FORMATS, Configuration, UsersApiService, provideApi };
|
|
628
|
+
export type { AuthApiServiceInterface, AuthAuthenticateRequestParams, AuthRefreshTokenRequestParams, ConfigurationParameters, DataFormat, DataType, EmailConfirmationTokenDto, Int32IdDto, LoginUserCommand, Param, ParamLocation, ParamStyle, PhysicalAddressDto, RefreshTokenCommand, StandardDataFormat, StandardDataType, StandardParamStyle, TokenModel, UserEmailDto, UserPreferencesDto, UserProfileDto, UserRegistrationDto, UsersApiServiceInterface, UsersConfirmEmailRequestParams, UsersRegisterUserRequestParams, UsersRequestConfirmEmailRequestParams };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@saritasa/renewaire-frontend-sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "OpenAPI client for @saritasa/renewaire-frontend-sdk(for version 0.1.0-dev.101+Branch.develop.Sha.43fa6c039fab5669101a991bb9a33aa8b45fbe0d.43fa6c039fab5669101a991bb9a33aa8b45fbe0d)",
|
|
5
5
|
"author": "OpenAPI-Generator Contributors",
|
|
6
6
|
"repository": {
|
|
@@ -12,23 +12,23 @@
|
|
|
12
12
|
"openapi-generator"
|
|
13
13
|
],
|
|
14
14
|
"license": "Unlicense",
|
|
15
|
-
"scripts": {
|
|
16
|
-
"build": "ng-packagr -p ng-package.json"
|
|
17
|
-
},
|
|
18
15
|
"peerDependencies": {
|
|
19
16
|
"@angular/core": "^20.0.0",
|
|
20
17
|
"rxjs": "^7.4.0"
|
|
21
18
|
},
|
|
22
|
-
"
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
"
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
"
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
19
|
+
"module": "fesm2022/saritasa-renewaire-frontend-sdk.mjs",
|
|
20
|
+
"typings": "index.d.ts",
|
|
21
|
+
"exports": {
|
|
22
|
+
"./package.json": {
|
|
23
|
+
"default": "./package.json"
|
|
24
|
+
},
|
|
25
|
+
".": {
|
|
26
|
+
"types": "./index.d.ts",
|
|
27
|
+
"default": "./fesm2022/saritasa-renewaire-frontend-sdk.mjs"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"sideEffects": false,
|
|
31
|
+
"dependencies": {
|
|
32
|
+
"tslib": "^2.3.0"
|
|
33
33
|
}
|
|
34
34
|
}
|
package/.openapi-generator/FILES
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
.gitignore
|
|
2
|
-
.openapi-generator-ignore
|
|
3
|
-
README.md
|
|
4
|
-
api.base.service.ts
|
|
5
|
-
api.module.ts
|
|
6
|
-
api/api.ts
|
|
7
|
-
api/auth-api.ts
|
|
8
|
-
api/auth-apiInterface.ts
|
|
9
|
-
api/users-api.ts
|
|
10
|
-
api/users-apiInterface.ts
|
|
11
|
-
configuration.ts
|
|
12
|
-
encoder.ts
|
|
13
|
-
git_push.sh
|
|
14
|
-
index.ts
|
|
15
|
-
model/email-confirmation-token-dto.ts
|
|
16
|
-
model/int32-id-dto.ts
|
|
17
|
-
model/login-user-command.ts
|
|
18
|
-
model/models.ts
|
|
19
|
-
model/physical-address-dto.ts
|
|
20
|
-
model/refresh-token-command.ts
|
|
21
|
-
model/token-model.ts
|
|
22
|
-
model/user-email-dto.ts
|
|
23
|
-
model/user-preferences-dto.ts
|
|
24
|
-
model/user-profile-dto.ts
|
|
25
|
-
model/user-registration-dto.ts
|
|
26
|
-
ng-package.json
|
|
27
|
-
package.json
|
|
28
|
-
param.ts
|
|
29
|
-
provide-api.ts
|
|
30
|
-
tsconfig.json
|
|
31
|
-
variables.ts
|