@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
|
@@ -1 +0,0 @@
|
|
|
1
|
-
7.14.0
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
# OpenAPI Generator Ignore
|
|
2
|
-
# Generated by openapi-generator https://github.com/openapitools/openapi-generator
|
|
3
|
-
|
|
4
|
-
# Use this file to prevent files from being overwritten by the generator.
|
|
5
|
-
# The patterns follow closely to .gitignore or .dockerignore.
|
|
6
|
-
|
|
7
|
-
# As an example, the C# client generator defines ApiClient.cs.
|
|
8
|
-
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
|
|
9
|
-
#ApiClient.cs
|
|
10
|
-
|
|
11
|
-
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
|
|
12
|
-
#foo/*/qux
|
|
13
|
-
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
|
|
14
|
-
|
|
15
|
-
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
|
|
16
|
-
#foo/**/qux
|
|
17
|
-
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
|
|
18
|
-
|
|
19
|
-
# You can also negate patterns with an exclamation (!).
|
|
20
|
-
# For example, you can ignore all files in a docs folder with the file extension .md:
|
|
21
|
-
#docs/*.md
|
|
22
|
-
# Then explicitly reverse the ignore rule for a single file:
|
|
23
|
-
#!docs/README.md
|
package/api/api.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export * from "./auth-api";
|
|
2
|
-
import { AuthApiService } from "./auth-api";
|
|
3
|
-
export * from "./auth-apiInterface";
|
|
4
|
-
export * from "./users-api";
|
|
5
|
-
import { UsersApiService } from "./users-api";
|
|
6
|
-
export * from "./users-apiInterface";
|
|
7
|
-
export const APIS = [AuthApiService, UsersApiService];
|
package/api/auth-api.ts
DELETED
|
@@ -1,296 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* RenewAire CORES API
|
|
3
|
-
*
|
|
4
|
-
* Contact: renewaire@saritasa.com
|
|
5
|
-
*
|
|
6
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
7
|
-
* https://openapi-generator.tech
|
|
8
|
-
* Do not edit the class manually.
|
|
9
|
-
*/
|
|
10
|
-
/* tslint:disable:no-unused-variable member-ordering */
|
|
11
|
-
|
|
12
|
-
import { Inject, Injectable, Optional } from "@angular/core";
|
|
13
|
-
import {
|
|
14
|
-
HttpClient,
|
|
15
|
-
HttpHeaders,
|
|
16
|
-
HttpParams,
|
|
17
|
-
HttpResponse,
|
|
18
|
-
HttpEvent,
|
|
19
|
-
HttpParameterCodec,
|
|
20
|
-
HttpContext,
|
|
21
|
-
} from "@angular/common/http";
|
|
22
|
-
import { CustomHttpParameterCodec } from "../encoder";
|
|
23
|
-
import { Observable } from "rxjs";
|
|
24
|
-
|
|
25
|
-
// @ts-ignore
|
|
26
|
-
import { LoginUserCommand } from "../model/login-user-command";
|
|
27
|
-
// @ts-ignore
|
|
28
|
-
import { RefreshTokenCommand } from "../model/refresh-token-command";
|
|
29
|
-
// @ts-ignore
|
|
30
|
-
import { TokenModel } from "../model/token-model";
|
|
31
|
-
|
|
32
|
-
// @ts-ignore
|
|
33
|
-
import { BASE_PATH, COLLECTION_FORMATS } from "../variables";
|
|
34
|
-
import { Configuration } from "../configuration";
|
|
35
|
-
import { BaseService } from "../api.base.service";
|
|
36
|
-
import {
|
|
37
|
-
AuthApiServiceInterface,
|
|
38
|
-
AuthAuthenticateRequestParams,
|
|
39
|
-
AuthRefreshTokenRequestParams,
|
|
40
|
-
} from "./auth-apiInterface";
|
|
41
|
-
|
|
42
|
-
@Injectable({
|
|
43
|
-
providedIn: "root",
|
|
44
|
-
})
|
|
45
|
-
export class AuthApiService
|
|
46
|
-
extends BaseService
|
|
47
|
-
implements AuthApiServiceInterface
|
|
48
|
-
{
|
|
49
|
-
constructor(
|
|
50
|
-
protected httpClient: HttpClient,
|
|
51
|
-
@Optional() @Inject(BASE_PATH) basePath: string | string[],
|
|
52
|
-
@Optional() configuration?: Configuration,
|
|
53
|
-
) {
|
|
54
|
-
super(basePath, configuration);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* Authenticate user by email and password.
|
|
59
|
-
* @param requestParameters
|
|
60
|
-
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
61
|
-
* @param reportProgress flag to report request and response progress.
|
|
62
|
-
*/
|
|
63
|
-
public authAuthenticate(
|
|
64
|
-
requestParameters: AuthAuthenticateRequestParams,
|
|
65
|
-
observe?: "body",
|
|
66
|
-
reportProgress?: boolean,
|
|
67
|
-
options?: {
|
|
68
|
-
httpHeaderAccept?: "text/plain" | "application/json" | "text/json";
|
|
69
|
-
context?: HttpContext;
|
|
70
|
-
transferCache?: boolean;
|
|
71
|
-
},
|
|
72
|
-
): Observable<TokenModel>;
|
|
73
|
-
public authAuthenticate(
|
|
74
|
-
requestParameters: AuthAuthenticateRequestParams,
|
|
75
|
-
observe?: "response",
|
|
76
|
-
reportProgress?: boolean,
|
|
77
|
-
options?: {
|
|
78
|
-
httpHeaderAccept?: "text/plain" | "application/json" | "text/json";
|
|
79
|
-
context?: HttpContext;
|
|
80
|
-
transferCache?: boolean;
|
|
81
|
-
},
|
|
82
|
-
): Observable<HttpResponse<TokenModel>>;
|
|
83
|
-
public authAuthenticate(
|
|
84
|
-
requestParameters: AuthAuthenticateRequestParams,
|
|
85
|
-
observe?: "events",
|
|
86
|
-
reportProgress?: boolean,
|
|
87
|
-
options?: {
|
|
88
|
-
httpHeaderAccept?: "text/plain" | "application/json" | "text/json";
|
|
89
|
-
context?: HttpContext;
|
|
90
|
-
transferCache?: boolean;
|
|
91
|
-
},
|
|
92
|
-
): Observable<HttpEvent<TokenModel>>;
|
|
93
|
-
public authAuthenticate(
|
|
94
|
-
requestParameters: AuthAuthenticateRequestParams,
|
|
95
|
-
observe: any = "body",
|
|
96
|
-
reportProgress: boolean = false,
|
|
97
|
-
options?: {
|
|
98
|
-
httpHeaderAccept?: "text/plain" | "application/json" | "text/json";
|
|
99
|
-
context?: HttpContext;
|
|
100
|
-
transferCache?: boolean;
|
|
101
|
-
},
|
|
102
|
-
): Observable<any> {
|
|
103
|
-
const loginUserCommand = requestParameters?.loginUserCommand;
|
|
104
|
-
if (loginUserCommand === null || loginUserCommand === undefined) {
|
|
105
|
-
throw new Error(
|
|
106
|
-
"Required parameter loginUserCommand was null or undefined when calling authAuthenticate.",
|
|
107
|
-
);
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
let localVarHeaders = this.defaultHeaders;
|
|
111
|
-
|
|
112
|
-
const localVarHttpHeaderAcceptSelected: string | undefined =
|
|
113
|
-
options?.httpHeaderAccept ??
|
|
114
|
-
this.configuration.selectHeaderAccept([
|
|
115
|
-
"text/plain",
|
|
116
|
-
"application/json",
|
|
117
|
-
"text/json",
|
|
118
|
-
]);
|
|
119
|
-
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
120
|
-
localVarHeaders = localVarHeaders.set(
|
|
121
|
-
"Accept",
|
|
122
|
-
localVarHttpHeaderAcceptSelected,
|
|
123
|
-
);
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
const localVarHttpContext: HttpContext =
|
|
127
|
-
options?.context ?? new HttpContext();
|
|
128
|
-
|
|
129
|
-
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
130
|
-
|
|
131
|
-
// to determine the Content-Type header
|
|
132
|
-
const consumes: string[] = [
|
|
133
|
-
"application/json",
|
|
134
|
-
"text/json",
|
|
135
|
-
"application/*+json",
|
|
136
|
-
];
|
|
137
|
-
const httpContentTypeSelected: string | undefined =
|
|
138
|
-
this.configuration.selectHeaderContentType(consumes);
|
|
139
|
-
if (httpContentTypeSelected !== undefined) {
|
|
140
|
-
localVarHeaders = localVarHeaders.set(
|
|
141
|
-
"Content-Type",
|
|
142
|
-
httpContentTypeSelected,
|
|
143
|
-
);
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
let responseType_: "text" | "json" | "blob" = "json";
|
|
147
|
-
if (localVarHttpHeaderAcceptSelected) {
|
|
148
|
-
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
149
|
-
responseType_ = "text";
|
|
150
|
-
} else if (
|
|
151
|
-
this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
|
|
152
|
-
) {
|
|
153
|
-
responseType_ = "json";
|
|
154
|
-
} else {
|
|
155
|
-
responseType_ = "blob";
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
let localVarPath = `/api/auth`;
|
|
160
|
-
const { basePath, withCredentials } = this.configuration;
|
|
161
|
-
return this.httpClient.request<TokenModel>(
|
|
162
|
-
"post",
|
|
163
|
-
`${basePath}${localVarPath}`,
|
|
164
|
-
{
|
|
165
|
-
context: localVarHttpContext,
|
|
166
|
-
body: loginUserCommand,
|
|
167
|
-
responseType: <any>responseType_,
|
|
168
|
-
...(withCredentials ? { withCredentials } : {}),
|
|
169
|
-
headers: localVarHeaders,
|
|
170
|
-
observe: observe,
|
|
171
|
-
transferCache: localVarTransferCache,
|
|
172
|
-
reportProgress: reportProgress,
|
|
173
|
-
},
|
|
174
|
-
);
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
/**
|
|
178
|
-
* Get new token by refresh token.
|
|
179
|
-
* @param requestParameters
|
|
180
|
-
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
181
|
-
* @param reportProgress flag to report request and response progress.
|
|
182
|
-
*/
|
|
183
|
-
public authRefreshToken(
|
|
184
|
-
requestParameters: AuthRefreshTokenRequestParams,
|
|
185
|
-
observe?: "body",
|
|
186
|
-
reportProgress?: boolean,
|
|
187
|
-
options?: {
|
|
188
|
-
httpHeaderAccept?: "text/plain" | "application/json" | "text/json";
|
|
189
|
-
context?: HttpContext;
|
|
190
|
-
transferCache?: boolean;
|
|
191
|
-
},
|
|
192
|
-
): Observable<TokenModel>;
|
|
193
|
-
public authRefreshToken(
|
|
194
|
-
requestParameters: AuthRefreshTokenRequestParams,
|
|
195
|
-
observe?: "response",
|
|
196
|
-
reportProgress?: boolean,
|
|
197
|
-
options?: {
|
|
198
|
-
httpHeaderAccept?: "text/plain" | "application/json" | "text/json";
|
|
199
|
-
context?: HttpContext;
|
|
200
|
-
transferCache?: boolean;
|
|
201
|
-
},
|
|
202
|
-
): Observable<HttpResponse<TokenModel>>;
|
|
203
|
-
public authRefreshToken(
|
|
204
|
-
requestParameters: AuthRefreshTokenRequestParams,
|
|
205
|
-
observe?: "events",
|
|
206
|
-
reportProgress?: boolean,
|
|
207
|
-
options?: {
|
|
208
|
-
httpHeaderAccept?: "text/plain" | "application/json" | "text/json";
|
|
209
|
-
context?: HttpContext;
|
|
210
|
-
transferCache?: boolean;
|
|
211
|
-
},
|
|
212
|
-
): Observable<HttpEvent<TokenModel>>;
|
|
213
|
-
public authRefreshToken(
|
|
214
|
-
requestParameters: AuthRefreshTokenRequestParams,
|
|
215
|
-
observe: any = "body",
|
|
216
|
-
reportProgress: boolean = false,
|
|
217
|
-
options?: {
|
|
218
|
-
httpHeaderAccept?: "text/plain" | "application/json" | "text/json";
|
|
219
|
-
context?: HttpContext;
|
|
220
|
-
transferCache?: boolean;
|
|
221
|
-
},
|
|
222
|
-
): Observable<any> {
|
|
223
|
-
const refreshTokenCommand = requestParameters?.refreshTokenCommand;
|
|
224
|
-
if (refreshTokenCommand === null || refreshTokenCommand === undefined) {
|
|
225
|
-
throw new Error(
|
|
226
|
-
"Required parameter refreshTokenCommand was null or undefined when calling authRefreshToken.",
|
|
227
|
-
);
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
let localVarHeaders = this.defaultHeaders;
|
|
231
|
-
|
|
232
|
-
const localVarHttpHeaderAcceptSelected: string | undefined =
|
|
233
|
-
options?.httpHeaderAccept ??
|
|
234
|
-
this.configuration.selectHeaderAccept([
|
|
235
|
-
"text/plain",
|
|
236
|
-
"application/json",
|
|
237
|
-
"text/json",
|
|
238
|
-
]);
|
|
239
|
-
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
240
|
-
localVarHeaders = localVarHeaders.set(
|
|
241
|
-
"Accept",
|
|
242
|
-
localVarHttpHeaderAcceptSelected,
|
|
243
|
-
);
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
const localVarHttpContext: HttpContext =
|
|
247
|
-
options?.context ?? new HttpContext();
|
|
248
|
-
|
|
249
|
-
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
250
|
-
|
|
251
|
-
// to determine the Content-Type header
|
|
252
|
-
const consumes: string[] = [
|
|
253
|
-
"application/json",
|
|
254
|
-
"text/json",
|
|
255
|
-
"application/*+json",
|
|
256
|
-
];
|
|
257
|
-
const httpContentTypeSelected: string | undefined =
|
|
258
|
-
this.configuration.selectHeaderContentType(consumes);
|
|
259
|
-
if (httpContentTypeSelected !== undefined) {
|
|
260
|
-
localVarHeaders = localVarHeaders.set(
|
|
261
|
-
"Content-Type",
|
|
262
|
-
httpContentTypeSelected,
|
|
263
|
-
);
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
let responseType_: "text" | "json" | "blob" = "json";
|
|
267
|
-
if (localVarHttpHeaderAcceptSelected) {
|
|
268
|
-
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
269
|
-
responseType_ = "text";
|
|
270
|
-
} else if (
|
|
271
|
-
this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
|
|
272
|
-
) {
|
|
273
|
-
responseType_ = "json";
|
|
274
|
-
} else {
|
|
275
|
-
responseType_ = "blob";
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
let localVarPath = `/api/auth`;
|
|
280
|
-
const { basePath, withCredentials } = this.configuration;
|
|
281
|
-
return this.httpClient.request<TokenModel>(
|
|
282
|
-
"put",
|
|
283
|
-
`${basePath}${localVarPath}`,
|
|
284
|
-
{
|
|
285
|
-
context: localVarHttpContext,
|
|
286
|
-
body: refreshTokenCommand,
|
|
287
|
-
responseType: <any>responseType_,
|
|
288
|
-
...(withCredentials ? { withCredentials } : {}),
|
|
289
|
-
headers: localVarHeaders,
|
|
290
|
-
observe: observe,
|
|
291
|
-
transferCache: localVarTransferCache,
|
|
292
|
-
reportProgress: reportProgress,
|
|
293
|
-
},
|
|
294
|
-
);
|
|
295
|
-
}
|
|
296
|
-
}
|
package/api/auth-apiInterface.ts
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* RenewAire CORES API
|
|
3
|
-
*
|
|
4
|
-
* Contact: renewaire@saritasa.com
|
|
5
|
-
*
|
|
6
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
7
|
-
* https://openapi-generator.tech
|
|
8
|
-
* Do not edit the class manually.
|
|
9
|
-
*/
|
|
10
|
-
import { HttpHeaders } from "@angular/common/http";
|
|
11
|
-
|
|
12
|
-
import { Observable } from "rxjs";
|
|
13
|
-
|
|
14
|
-
import { LoginUserCommand } from "../model/models";
|
|
15
|
-
import { RefreshTokenCommand } from "../model/models";
|
|
16
|
-
import { TokenModel } from "../model/models";
|
|
17
|
-
|
|
18
|
-
import { Configuration } from "../configuration";
|
|
19
|
-
|
|
20
|
-
export interface AuthAuthenticateRequestParams {
|
|
21
|
-
loginUserCommand: LoginUserCommand;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export interface AuthRefreshTokenRequestParams {
|
|
25
|
-
refreshTokenCommand: RefreshTokenCommand;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export interface AuthApiServiceInterface {
|
|
29
|
-
defaultHeaders: HttpHeaders;
|
|
30
|
-
configuration: Configuration;
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* Authenticate user by email and password.
|
|
34
|
-
*
|
|
35
|
-
* @param requestParameters
|
|
36
|
-
*/
|
|
37
|
-
authAuthenticate(
|
|
38
|
-
requestParameters: AuthAuthenticateRequestParams,
|
|
39
|
-
extraHttpRequestParams?: any,
|
|
40
|
-
): Observable<TokenModel>;
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Get new token by refresh token.
|
|
44
|
-
*
|
|
45
|
-
* @param requestParameters
|
|
46
|
-
*/
|
|
47
|
-
authRefreshToken(
|
|
48
|
-
requestParameters: AuthRefreshTokenRequestParams,
|
|
49
|
-
extraHttpRequestParams?: any,
|
|
50
|
-
): Observable<TokenModel>;
|
|
51
|
-
}
|