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

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/package.json CHANGED
@@ -1,38 +1,34 @@
1
1
  {
2
2
  "name": "@saritasa/renewaire-frontend-sdk",
3
- "version": "0.1.0-dev.101+Branch.develop.Sha.43fa6c039fab5669101a991bb9a33aa8b45fbe0d.43fa6c039fab5669101a991bb9a33aa8b45fbe0d",
4
- "description": "OpenAPI client for @saritasa/renewaire-frontend-sdk",
3
+ "version": "0.1.0-dev.287",
4
+ "description": "OpenAPI client for @saritasa/renewaire-frontend-sdk(for version 0.1.0-dev.287+Branch.develop.Sha.9a383d349c3b1918db5e7486650a5fb6750b6c02.9a383d349c3b1918db5e7486650a5fb6750b6c02)",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {
7
7
  "type": "git",
8
- "url": "https://github.com/saritasa-nest/renewaire-frontend-sdk.git"
8
+ "url": "git+https://github.com/saritasa-nest/renewaire-frontend-sdk.git"
9
9
  },
10
10
  "keywords": [
11
- "axios",
12
- "typescript",
13
11
  "openapi-client",
14
- "openapi-generator",
15
- "@saritasa/renewaire-frontend-sdk"
12
+ "openapi-generator"
16
13
  ],
17
14
  "license": "Unlicense",
18
- "main": "./dist/index.js",
19
- "typings": "./dist/index.d.ts",
20
- "scripts": {
21
- "build": "tsc",
22
- "prepare": "npm run build"
15
+ "peerDependencies": {
16
+ "@angular/core": "^20.0.0",
17
+ "rxjs": "^7.4.0"
23
18
  },
24
- "dependencies": {
25
- "@angular/common": "20.0.0",
26
- "@angular/compiler": "20.0.0",
27
- "@angular/core": "20.0.0",
28
- "@angular/platform-browser": "20.0.0",
29
- "@angular/platform-browser-dynamic": "20.0.0"
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
+ }
30
29
  },
31
- "devDependencies": {
32
- "@angular/build": "20.0.0",
33
- "@angular/cli": "20.0.0",
34
- "@angular/compiler-cli": "20.0.0",
35
- "@types/node": "",
36
- "typescript": "5.8.2"
30
+ "sideEffects": false,
31
+ "dependencies": {
32
+ "tslib": "^2.3.0"
37
33
  }
38
34
  }
@@ -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.service.ts
8
- api/auth-api.serviceInterface.ts
9
- api/users-api.service.ts
10
- api/users-api.serviceInterface.ts
11
- configuration.ts
12
- encoder.ts
13
- git_push.sh
14
- index.ts
15
- model/email-confirmation-token-dto.dto.ts
16
- model/int32-id-dto.dto.ts
17
- model/login-user-command.dto.ts
18
- model/models.ts
19
- model/physical-address-dto.dto.ts
20
- model/refresh-token-command.dto.ts
21
- model/token-model.dto.ts
22
- model/user-email-dto.dto.ts
23
- model/user-preferences-dto.dto.ts
24
- model/user-profile-dto.dto.ts
25
- model/user-registration-dto.dto.ts
26
- ng-package.json
27
- package.json
28
- param.ts
29
- provide-api.ts
30
- tsconfig.json
31
- variables.ts
@@ -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.service";
2
- import { AuthApiService } from "./auth-api.service";
3
- export * from "./auth-api.serviceInterface";
4
- export * from "./users-api.service";
5
- import { UsersApiService } from "./users-api.service";
6
- export * from "./users-api.serviceInterface";
7
- export const APIS = [AuthApiService, UsersApiService];
@@ -1,299 +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 { LoginUserCommandDto } from "../model/login-user-command.dto";
27
- // @ts-ignore
28
- import { RefreshTokenCommandDto } from "../model/refresh-token-command.dto";
29
- // @ts-ignore
30
- import { TokenModelDto } from "../model/token-model.dto";
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-api.serviceInterface";
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<TokenModelDto>;
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<TokenModelDto>>;
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<TokenModelDto>>;
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 loginUserCommandDto = requestParameters?.loginUserCommandDto;
104
- if (loginUserCommandDto === null || loginUserCommandDto === undefined) {
105
- throw new Error(
106
- "Required parameter loginUserCommandDto 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<TokenModelDto>(
162
- "post",
163
- `${basePath}${localVarPath}`,
164
- {
165
- context: localVarHttpContext,
166
- body: loginUserCommandDto,
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<TokenModelDto>;
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<TokenModelDto>>;
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<TokenModelDto>>;
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 refreshTokenCommandDto = requestParameters?.refreshTokenCommandDto;
224
- if (
225
- refreshTokenCommandDto === null ||
226
- refreshTokenCommandDto === undefined
227
- ) {
228
- throw new Error(
229
- "Required parameter refreshTokenCommandDto was null or undefined when calling authRefreshToken.",
230
- );
231
- }
232
-
233
- let localVarHeaders = this.defaultHeaders;
234
-
235
- const localVarHttpHeaderAcceptSelected: string | undefined =
236
- options?.httpHeaderAccept ??
237
- this.configuration.selectHeaderAccept([
238
- "text/plain",
239
- "application/json",
240
- "text/json",
241
- ]);
242
- if (localVarHttpHeaderAcceptSelected !== undefined) {
243
- localVarHeaders = localVarHeaders.set(
244
- "Accept",
245
- localVarHttpHeaderAcceptSelected,
246
- );
247
- }
248
-
249
- const localVarHttpContext: HttpContext =
250
- options?.context ?? new HttpContext();
251
-
252
- const localVarTransferCache: boolean = options?.transferCache ?? true;
253
-
254
- // to determine the Content-Type header
255
- const consumes: string[] = [
256
- "application/json",
257
- "text/json",
258
- "application/*+json",
259
- ];
260
- const httpContentTypeSelected: string | undefined =
261
- this.configuration.selectHeaderContentType(consumes);
262
- if (httpContentTypeSelected !== undefined) {
263
- localVarHeaders = localVarHeaders.set(
264
- "Content-Type",
265
- httpContentTypeSelected,
266
- );
267
- }
268
-
269
- let responseType_: "text" | "json" | "blob" = "json";
270
- if (localVarHttpHeaderAcceptSelected) {
271
- if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
272
- responseType_ = "text";
273
- } else if (
274
- this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
275
- ) {
276
- responseType_ = "json";
277
- } else {
278
- responseType_ = "blob";
279
- }
280
- }
281
-
282
- let localVarPath = `/api/auth`;
283
- const { basePath, withCredentials } = this.configuration;
284
- return this.httpClient.request<TokenModelDto>(
285
- "put",
286
- `${basePath}${localVarPath}`,
287
- {
288
- context: localVarHttpContext,
289
- body: refreshTokenCommandDto,
290
- responseType: <any>responseType_,
291
- ...(withCredentials ? { withCredentials } : {}),
292
- headers: localVarHeaders,
293
- observe: observe,
294
- transferCache: localVarTransferCache,
295
- reportProgress: reportProgress,
296
- },
297
- );
298
- }
299
- }
@@ -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 { LoginUserCommandDto } from "../model/models";
15
- import { RefreshTokenCommandDto } from "../model/models";
16
- import { TokenModelDto } from "../model/models";
17
-
18
- import { Configuration } from "../configuration";
19
-
20
- export interface AuthAuthenticateRequestParams {
21
- loginUserCommandDto: LoginUserCommandDto;
22
- }
23
-
24
- export interface AuthRefreshTokenRequestParams {
25
- refreshTokenCommandDto: RefreshTokenCommandDto;
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<TokenModelDto>;
41
-
42
- /**
43
- * Get new token by refresh token.
44
- *
45
- * @param requestParameters
46
- */
47
- authRefreshToken(
48
- requestParameters: AuthRefreshTokenRequestParams,
49
- extraHttpRequestParams?: any,
50
- ): Observable<TokenModelDto>;
51
- }