@revxui/api-clients-ts 0.0.24

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.
Files changed (73) hide show
  1. package/README.md +178 -0
  2. package/api/adminRoleValidationController.service.d.ts +73 -0
  3. package/api/api.d.ts +5 -0
  4. package/api/authApi.service.d.ts +209 -0
  5. package/api.module.d.ts +11 -0
  6. package/configuration.d.ts +48 -0
  7. package/encoder.d.ts +10 -0
  8. package/esm2020/api/adminRoleValidationController.service.mjs +174 -0
  9. package/esm2020/api/api.mjs +6 -0
  10. package/esm2020/api/authApi.service.mjs +541 -0
  11. package/esm2020/api.module.mjs +48 -0
  12. package/esm2020/configuration.mjs +59 -0
  13. package/esm2020/encoder.mjs +17 -0
  14. package/esm2020/index.mjs +6 -0
  15. package/esm2020/model/advertiser.mjs +2 -0
  16. package/esm2020/model/apiListResponseLifeTimeAuthenticationEntity.mjs +2 -0
  17. package/esm2020/model/apiResponseObjectApiListResponseLifeTimeAuthenticationEntity.mjs +2 -0
  18. package/esm2020/model/apiResponseObjectConsoleUserInfo.mjs +2 -0
  19. package/esm2020/model/apiResponseObjectLifeTimeAuthenticationEntity.mjs +2 -0
  20. package/esm2020/model/apiResponseObjectResponseMessage.mjs +2 -0
  21. package/esm2020/model/apiResponseObjectSetLicensee.mjs +2 -0
  22. package/esm2020/model/apiResponseObjectTokenResponse.mjs +2 -0
  23. package/esm2020/model/apiResponseObjectUser2FADetail.mjs +2 -0
  24. package/esm2020/model/apiResponseObjectUserInfo.mjs +2 -0
  25. package/esm2020/model/apiResponseObjectboolean.mjs +13 -0
  26. package/esm2020/model/apiResponseObjectstring.mjs +13 -0
  27. package/esm2020/model/baseModel.mjs +13 -0
  28. package/esm2020/model/consoleUserInfo.mjs +13 -0
  29. package/esm2020/model/licensee.mjs +13 -0
  30. package/esm2020/model/lifeTimeAuthenticationEntity.mjs +13 -0
  31. package/esm2020/model/modelError.mjs +13 -0
  32. package/esm2020/model/models.mjs +25 -0
  33. package/esm2020/model/passwordChangeRequest.mjs +13 -0
  34. package/esm2020/model/responseMessage.mjs +13 -0
  35. package/esm2020/model/tokenResponse.mjs +2 -0
  36. package/esm2020/model/user2FADetail.mjs +13 -0
  37. package/esm2020/model/userInfo.mjs +2 -0
  38. package/esm2020/model/userInfoExtended.mjs +2 -0
  39. package/esm2020/model/userLoginRequest.mjs +13 -0
  40. package/esm2020/revxui-api-clients-ts.mjs +5 -0
  41. package/esm2020/variables.mjs +9 -0
  42. package/fesm2015/revxui-api-clients-ts.mjs +844 -0
  43. package/fesm2015/revxui-api-clients-ts.mjs.map +1 -0
  44. package/fesm2020/revxui-api-clients-ts.mjs +970 -0
  45. package/fesm2020/revxui-api-clients-ts.mjs.map +1 -0
  46. package/index.d.ts +5 -0
  47. package/model/advertiser.d.ts +34 -0
  48. package/model/apiListResponseLifeTimeAuthenticationEntity.d.ts +16 -0
  49. package/model/apiResponseObjectApiListResponseLifeTimeAuthenticationEntity.d.ts +17 -0
  50. package/model/apiResponseObjectConsoleUserInfo.d.ts +17 -0
  51. package/model/apiResponseObjectLifeTimeAuthenticationEntity.d.ts +17 -0
  52. package/model/apiResponseObjectResponseMessage.d.ts +17 -0
  53. package/model/apiResponseObjectSetLicensee.d.ts +17 -0
  54. package/model/apiResponseObjectTokenResponse.d.ts +17 -0
  55. package/model/apiResponseObjectUser2FADetail.d.ts +17 -0
  56. package/model/apiResponseObjectUserInfo.d.ts +17 -0
  57. package/model/apiResponseObjectboolean.d.ts +16 -0
  58. package/model/apiResponseObjectstring.d.ts +16 -0
  59. package/model/baseModel.d.ts +15 -0
  60. package/model/consoleUserInfo.d.ts +16 -0
  61. package/model/licensee.d.ts +22 -0
  62. package/model/lifeTimeAuthenticationEntity.d.ts +22 -0
  63. package/model/modelError.d.ts +15 -0
  64. package/model/models.d.ts +24 -0
  65. package/model/passwordChangeRequest.d.ts +16 -0
  66. package/model/responseMessage.d.ts +15 -0
  67. package/model/tokenResponse.d.ts +19 -0
  68. package/model/user2FADetail.d.ts +16 -0
  69. package/model/userInfo.d.ts +23 -0
  70. package/model/userInfoExtended.d.ts +18 -0
  71. package/model/userLoginRequest.d.ts +25 -0
  72. package/package.json +33 -0
  73. package/variables.d.ts +8 -0
@@ -0,0 +1,970 @@
1
+ import * as i0 from '@angular/core';
2
+ import { InjectionToken, Injectable, Optional, Inject, NgModule, SkipSelf } from '@angular/core';
3
+ import * as i1 from '@angular/common/http';
4
+ import { HttpHeaders, HttpUrlEncodingCodec, HttpParams } from '@angular/common/http';
5
+
6
+ const BASE_PATH = new InjectionToken('basePath');
7
+ const COLLECTION_FORMATS = {
8
+ 'csv': ',',
9
+ 'tsv': ' ',
10
+ 'ssv': ' ',
11
+ 'pipes': '|'
12
+ };
13
+
14
+ class Configuration {
15
+ constructor(configurationParameters = {}) {
16
+ this.apiKeys = configurationParameters.apiKeys;
17
+ this.username = configurationParameters.username;
18
+ this.password = configurationParameters.password;
19
+ this.accessToken = configurationParameters.accessToken;
20
+ this.basePath = configurationParameters.basePath;
21
+ this.withCredentials = configurationParameters.withCredentials;
22
+ }
23
+ /**
24
+ * Select the correct content-type to use for a request.
25
+ * Uses {@link Configuration#isJsonMime} to determine the correct content-type.
26
+ * If no content type is found return the first found type if the contentTypes is not empty
27
+ * @param contentTypes - the array of content types that are available for selection
28
+ * @returns the selected content-type or <code>undefined</code> if no selection could be made.
29
+ */
30
+ selectHeaderContentType(contentTypes) {
31
+ if (contentTypes.length == 0) {
32
+ return undefined;
33
+ }
34
+ let type = contentTypes.find(x => this.isJsonMime(x));
35
+ if (type === undefined) {
36
+ return contentTypes[0];
37
+ }
38
+ return type;
39
+ }
40
+ /**
41
+ * Select the correct accept content-type to use for a request.
42
+ * Uses {@link Configuration#isJsonMime} to determine the correct accept content-type.
43
+ * If no content type is found return the first found type if the contentTypes is not empty
44
+ * @param accepts - the array of content types that are available for selection.
45
+ * @returns the selected content-type or <code>undefined</code> if no selection could be made.
46
+ */
47
+ selectHeaderAccept(accepts) {
48
+ if (accepts.length == 0) {
49
+ return undefined;
50
+ }
51
+ let type = accepts.find(x => this.isJsonMime(x));
52
+ if (type === undefined) {
53
+ return accepts[0];
54
+ }
55
+ return type;
56
+ }
57
+ /**
58
+ * Check if the given MIME is a JSON MIME.
59
+ * JSON MIME examples:
60
+ * application/json
61
+ * application/json; charset=UTF8
62
+ * APPLICATION/JSON
63
+ * application/vnd.company+json
64
+ * @param mime - MIME (Multipurpose Internet Mail Extensions)
65
+ * @return True if the given MIME is JSON, false otherwise.
66
+ */
67
+ isJsonMime(mime) {
68
+ const jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
69
+ return mime != null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
70
+ }
71
+ }
72
+
73
+ /**
74
+ * Api Documentation
75
+ * Api Documentation
76
+ *
77
+ * OpenAPI spec version: 1.0
78
+ *
79
+ *
80
+ * NOTE: This class is auto generated by the swagger code generator program.
81
+ * https://github.com/swagger-api/swagger-codegen.git
82
+ * Do not edit the class manually.
83
+ */
84
+ /* tslint:disable:no-unused-variable member-ordering */
85
+ class AdminRoleValidationControllerService {
86
+ constructor(httpClient, basePath, configuration) {
87
+ this.httpClient = httpClient;
88
+ this.basePath = 'https://authv2stage7.atomex.net';
89
+ this.defaultHeaders = new HttpHeaders();
90
+ this.configuration = new Configuration();
91
+ if (basePath) {
92
+ this.basePath = basePath;
93
+ }
94
+ if (configuration) {
95
+ this.configuration = configuration;
96
+ this.basePath = basePath || configuration.basePath || this.basePath;
97
+ }
98
+ }
99
+ /**
100
+ * @param consumes string[] mime-types
101
+ * @return true: consumes contains 'multipart/form-data', false: otherwise
102
+ */
103
+ canConsumeForm(consumes) {
104
+ const form = 'multipart/form-data';
105
+ for (const consume of consumes) {
106
+ if (form === consume) {
107
+ return true;
108
+ }
109
+ }
110
+ return false;
111
+ }
112
+ checkAdminUsingGET(observe = 'body', reportProgress = false) {
113
+ let headers = this.defaultHeaders;
114
+ // to determine the Accept header
115
+ let httpHeaderAccepts = [
116
+ '*/*'
117
+ ];
118
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
119
+ if (httpHeaderAcceptSelected != undefined) {
120
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
121
+ }
122
+ // to determine the Content-Type header
123
+ const consumes = [];
124
+ return this.httpClient.get(`${this.basePath}/v2/auth/admin`, {
125
+ withCredentials: this.configuration.withCredentials,
126
+ headers: headers,
127
+ observe: observe,
128
+ reportProgress: reportProgress
129
+ });
130
+ }
131
+ checkDemoUsingGET(observe = 'body', reportProgress = false) {
132
+ let headers = this.defaultHeaders;
133
+ // to determine the Accept header
134
+ let httpHeaderAccepts = [
135
+ '*/*'
136
+ ];
137
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
138
+ if (httpHeaderAcceptSelected != undefined) {
139
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
140
+ }
141
+ // to determine the Content-Type header
142
+ const consumes = [];
143
+ return this.httpClient.get(`${this.basePath}/v2/auth/demo`, {
144
+ withCredentials: this.configuration.withCredentials,
145
+ headers: headers,
146
+ observe: observe,
147
+ reportProgress: reportProgress
148
+ });
149
+ }
150
+ checkNoRoleUsingGET(observe = 'body', reportProgress = false) {
151
+ let headers = this.defaultHeaders;
152
+ // to determine the Accept header
153
+ let httpHeaderAccepts = [
154
+ '*/*'
155
+ ];
156
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
157
+ if (httpHeaderAcceptSelected != undefined) {
158
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
159
+ }
160
+ // to determine the Content-Type header
161
+ const consumes = [];
162
+ return this.httpClient.get(`${this.basePath}/v2/auth/norole`, {
163
+ withCredentials: this.configuration.withCredentials,
164
+ headers: headers,
165
+ observe: observe,
166
+ reportProgress: reportProgress
167
+ });
168
+ }
169
+ checkRWAccessUsingGET(observe = 'body', reportProgress = false) {
170
+ let headers = this.defaultHeaders;
171
+ // to determine the Accept header
172
+ let httpHeaderAccepts = [
173
+ '*/*'
174
+ ];
175
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
176
+ if (httpHeaderAcceptSelected != undefined) {
177
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
178
+ }
179
+ // to determine the Content-Type header
180
+ const consumes = [];
181
+ return this.httpClient.get(`${this.basePath}/v2/auth/rw`, {
182
+ withCredentials: this.configuration.withCredentials,
183
+ headers: headers,
184
+ observe: observe,
185
+ reportProgress: reportProgress
186
+ });
187
+ }
188
+ checkRoUsingGET(observe = 'body', reportProgress = false) {
189
+ let headers = this.defaultHeaders;
190
+ // to determine the Accept header
191
+ let httpHeaderAccepts = [
192
+ '*/*'
193
+ ];
194
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
195
+ if (httpHeaderAcceptSelected != undefined) {
196
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
197
+ }
198
+ // to determine the Content-Type header
199
+ const consumes = [];
200
+ return this.httpClient.get(`${this.basePath}/v2/auth/ro`, {
201
+ withCredentials: this.configuration.withCredentials,
202
+ headers: headers,
203
+ observe: observe,
204
+ reportProgress: reportProgress
205
+ });
206
+ }
207
+ checkSAdminUsingGET(observe = 'body', reportProgress = false) {
208
+ let headers = this.defaultHeaders;
209
+ // to determine the Accept header
210
+ let httpHeaderAccepts = [
211
+ '*/*'
212
+ ];
213
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
214
+ if (httpHeaderAcceptSelected != undefined) {
215
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
216
+ }
217
+ // to determine the Content-Type header
218
+ const consumes = [];
219
+ return this.httpClient.get(`${this.basePath}/v2/auth/sadmin`, {
220
+ withCredentials: this.configuration.withCredentials,
221
+ headers: headers,
222
+ observe: observe,
223
+ reportProgress: reportProgress
224
+ });
225
+ }
226
+ }
227
+ AdminRoleValidationControllerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AdminRoleValidationControllerService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
228
+ AdminRoleValidationControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AdminRoleValidationControllerService });
229
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AdminRoleValidationControllerService, decorators: [{
230
+ type: Injectable
231
+ }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
232
+ type: Optional
233
+ }, {
234
+ type: Inject,
235
+ args: [BASE_PATH]
236
+ }] }, { type: Configuration, decorators: [{
237
+ type: Optional
238
+ }] }]; } });
239
+
240
+ /**
241
+ * CustomHttpUrlEncodingCodec
242
+ * Fix plus sign (+) not encoding, so sent as blank space
243
+ * See: https://github.com/angular/angular/issues/11058#issuecomment-247367318
244
+ */
245
+ class CustomHttpUrlEncodingCodec extends HttpUrlEncodingCodec {
246
+ encodeKey(k) {
247
+ k = super.encodeKey(k);
248
+ return k.replace(/\+/gi, '%2B');
249
+ }
250
+ encodeValue(v) {
251
+ v = super.encodeValue(v);
252
+ return v.replace(/\+/gi, '%2B');
253
+ }
254
+ }
255
+
256
+ /**
257
+ * Api Documentation
258
+ * Api Documentation
259
+ *
260
+ * OpenAPI spec version: 1.0
261
+ *
262
+ *
263
+ * NOTE: This class is auto generated by the swagger code generator program.
264
+ * https://github.com/swagger-api/swagger-codegen.git
265
+ * Do not edit the class manually.
266
+ */
267
+ /* tslint:disable:no-unused-variable member-ordering */
268
+ class AuthApiService {
269
+ constructor(httpClient, basePath, configuration) {
270
+ this.httpClient = httpClient;
271
+ this.basePath = 'https://authv2stage7.atomex.net';
272
+ this.defaultHeaders = new HttpHeaders();
273
+ this.configuration = new Configuration();
274
+ if (basePath) {
275
+ this.basePath = basePath;
276
+ }
277
+ if (configuration) {
278
+ this.configuration = configuration;
279
+ this.basePath = basePath || configuration.basePath || this.basePath;
280
+ }
281
+ }
282
+ /**
283
+ * @param consumes string[] mime-types
284
+ * @return true: consumes contains 'multipart/form-data', false: otherwise
285
+ */
286
+ canConsumeForm(consumes) {
287
+ const form = 'multipart/form-data';
288
+ for (const consume of consumes) {
289
+ if (form === consume) {
290
+ return true;
291
+ }
292
+ }
293
+ return false;
294
+ }
295
+ changePasswordUsingPOST(passwordChangeRequest, token, observe = 'body', reportProgress = false) {
296
+ if (passwordChangeRequest === null || passwordChangeRequest === undefined) {
297
+ throw new Error('Required parameter passwordChangeRequest was null or undefined when calling changePasswordUsingPOST.');
298
+ }
299
+ if (token === null || token === undefined) {
300
+ throw new Error('Required parameter token was null or undefined when calling changePasswordUsingPOST.');
301
+ }
302
+ let headers = this.defaultHeaders;
303
+ if (token !== undefined && token !== null) {
304
+ headers = headers.set('token', String(token));
305
+ }
306
+ // to determine the Accept header
307
+ let httpHeaderAccepts = [
308
+ 'application/json'
309
+ ];
310
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
311
+ if (httpHeaderAcceptSelected != undefined) {
312
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
313
+ }
314
+ // to determine the Content-Type header
315
+ const consumes = [
316
+ 'application/json'
317
+ ];
318
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
319
+ if (httpContentTypeSelected != undefined) {
320
+ headers = headers.set('Content-Type', httpContentTypeSelected);
321
+ }
322
+ return this.httpClient.post(`${this.basePath}/v2/auth/change-pass-secret`, passwordChangeRequest, {
323
+ withCredentials: this.configuration.withCredentials,
324
+ headers: headers,
325
+ observe: observe,
326
+ reportProgress: reportProgress
327
+ });
328
+ }
329
+ consoleUserInfoUsingGET(token, observe = 'body', reportProgress = false) {
330
+ if (token === null || token === undefined) {
331
+ throw new Error('Required parameter token was null or undefined when calling consoleUserInfoUsingGET.');
332
+ }
333
+ let headers = this.defaultHeaders;
334
+ if (token !== undefined && token !== null) {
335
+ headers = headers.set('token', String(token));
336
+ }
337
+ // to determine the Accept header
338
+ let httpHeaderAccepts = [
339
+ 'application/json'
340
+ ];
341
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
342
+ if (httpHeaderAcceptSelected != undefined) {
343
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
344
+ }
345
+ // to determine the Content-Type header
346
+ const consumes = [];
347
+ return this.httpClient.get(`${this.basePath}/v2/auth/consoleuserinfo`, {
348
+ withCredentials: this.configuration.withCredentials,
349
+ headers: headers,
350
+ observe: observe,
351
+ reportProgress: reportProgress
352
+ });
353
+ }
354
+ createAPIKeyUsingPOST(token, advId, observe = 'body', reportProgress = false) {
355
+ if (token === null || token === undefined) {
356
+ throw new Error('Required parameter token was null or undefined when calling createAPIKeyUsingPOST.');
357
+ }
358
+ let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
359
+ if (advId !== undefined && advId !== null) {
360
+ queryParameters = queryParameters.set('advId', advId);
361
+ }
362
+ let headers = this.defaultHeaders;
363
+ if (token !== undefined && token !== null) {
364
+ headers = headers.set('token', String(token));
365
+ }
366
+ // to determine the Accept header
367
+ let httpHeaderAccepts = [
368
+ 'application/json'
369
+ ];
370
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
371
+ if (httpHeaderAcceptSelected != undefined) {
372
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
373
+ }
374
+ // to determine the Content-Type header
375
+ const consumes = [
376
+ 'application/json'
377
+ ];
378
+ return this.httpClient.post(`${this.basePath}/v2/auth/api-key`, null, {
379
+ params: queryParameters,
380
+ withCredentials: this.configuration.withCredentials,
381
+ headers: headers,
382
+ observe: observe,
383
+ reportProgress: reportProgress
384
+ });
385
+ }
386
+ createLifeTimeTokenUsingPOST(token, observe = 'body', reportProgress = false) {
387
+ if (token === null || token === undefined) {
388
+ throw new Error('Required parameter token was null or undefined when calling createLifeTimeTokenUsingPOST.');
389
+ }
390
+ let headers = this.defaultHeaders;
391
+ if (token !== undefined && token !== null) {
392
+ headers = headers.set('token', String(token));
393
+ }
394
+ // to determine the Accept header
395
+ let httpHeaderAccepts = [
396
+ 'application/json'
397
+ ];
398
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
399
+ if (httpHeaderAcceptSelected != undefined) {
400
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
401
+ }
402
+ // to determine the Content-Type header
403
+ const consumes = [
404
+ 'application/json'
405
+ ];
406
+ return this.httpClient.post(`${this.basePath}/v2/auth/create-lifetime-token`, null, {
407
+ withCredentials: this.configuration.withCredentials,
408
+ headers: headers,
409
+ observe: observe,
410
+ reportProgress: reportProgress
411
+ });
412
+ }
413
+ deleteLifeTimeTokenUsingPUT(token, tokenId, observe = 'body', reportProgress = false) {
414
+ if (token === null || token === undefined) {
415
+ throw new Error('Required parameter token was null or undefined when calling deleteLifeTimeTokenUsingPUT.');
416
+ }
417
+ if (tokenId === null || tokenId === undefined) {
418
+ throw new Error('Required parameter tokenId was null or undefined when calling deleteLifeTimeTokenUsingPUT.');
419
+ }
420
+ let headers = this.defaultHeaders;
421
+ if (token !== undefined && token !== null) {
422
+ headers = headers.set('token', String(token));
423
+ }
424
+ // to determine the Accept header
425
+ let httpHeaderAccepts = [
426
+ 'application/json'
427
+ ];
428
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
429
+ if (httpHeaderAcceptSelected != undefined) {
430
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
431
+ }
432
+ // to determine the Content-Type header
433
+ const consumes = [
434
+ 'application/json'
435
+ ];
436
+ return this.httpClient.put(`${this.basePath}/v2/auth/lifetime-token/${encodeURIComponent(String(tokenId))}`, null, {
437
+ withCredentials: this.configuration.withCredentials,
438
+ headers: headers,
439
+ observe: observe,
440
+ reportProgress: reportProgress
441
+ });
442
+ }
443
+ getAPIKeysUsingGET(token, observe = 'body', reportProgress = false) {
444
+ if (token === null || token === undefined) {
445
+ throw new Error('Required parameter token was null or undefined when calling getAPIKeysUsingGET.');
446
+ }
447
+ let headers = this.defaultHeaders;
448
+ if (token !== undefined && token !== null) {
449
+ headers = headers.set('token', String(token));
450
+ }
451
+ // to determine the Accept header
452
+ let httpHeaderAccepts = [
453
+ 'application/json'
454
+ ];
455
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
456
+ if (httpHeaderAcceptSelected != undefined) {
457
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
458
+ }
459
+ // to determine the Content-Type header
460
+ const consumes = [];
461
+ return this.httpClient.get(`${this.basePath}/v2/auth/api-key`, {
462
+ withCredentials: this.configuration.withCredentials,
463
+ headers: headers,
464
+ observe: observe,
465
+ reportProgress: reportProgress
466
+ });
467
+ }
468
+ getLifeTimeTokenUsingGET(token, observe = 'body', reportProgress = false) {
469
+ if (token === null || token === undefined) {
470
+ throw new Error('Required parameter token was null or undefined when calling getLifeTimeTokenUsingGET.');
471
+ }
472
+ let headers = this.defaultHeaders;
473
+ if (token !== undefined && token !== null) {
474
+ headers = headers.set('token', String(token));
475
+ }
476
+ // to determine the Accept header
477
+ let httpHeaderAccepts = [
478
+ 'application/json'
479
+ ];
480
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
481
+ if (httpHeaderAcceptSelected != undefined) {
482
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
483
+ }
484
+ // to determine the Content-Type header
485
+ const consumes = [];
486
+ return this.httpClient.get(`${this.basePath}/v2/auth/lifetime-token`, {
487
+ withCredentials: this.configuration.withCredentials,
488
+ headers: headers,
489
+ observe: observe,
490
+ reportProgress: reportProgress
491
+ });
492
+ }
493
+ loginSocialUsingGET(client, socialToken, isConsole, oidcIssuer, observe = 'body', reportProgress = false) {
494
+ if (client === null || client === undefined) {
495
+ throw new Error('Required parameter client was null or undefined when calling loginSocialUsingGET.');
496
+ }
497
+ if (socialToken === null || socialToken === undefined) {
498
+ throw new Error('Required parameter socialToken was null or undefined when calling loginSocialUsingGET.');
499
+ }
500
+ let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
501
+ if (isConsole !== undefined && isConsole !== null) {
502
+ queryParameters = queryParameters.set('isConsole', isConsole);
503
+ }
504
+ if (oidcIssuer !== undefined && oidcIssuer !== null) {
505
+ queryParameters = queryParameters.set('oidcIssuer', oidcIssuer);
506
+ }
507
+ let headers = this.defaultHeaders;
508
+ // to determine the Accept header
509
+ let httpHeaderAccepts = [
510
+ 'application/json'
511
+ ];
512
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
513
+ if (httpHeaderAcceptSelected != undefined) {
514
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
515
+ }
516
+ // to determine the Content-Type header
517
+ const consumes = [];
518
+ return this.httpClient.get(`${this.basePath}/v2/auth/login-social/${encodeURIComponent(String(client))}/${encodeURIComponent(String(socialToken))}`, {
519
+ params: queryParameters,
520
+ withCredentials: this.configuration.withCredentials,
521
+ headers: headers,
522
+ observe: observe,
523
+ reportProgress: reportProgress
524
+ });
525
+ }
526
+ loginUsingPOST(userLoginRequest, observe = 'body', reportProgress = false) {
527
+ if (userLoginRequest === null || userLoginRequest === undefined) {
528
+ throw new Error('Required parameter userLoginRequest was null or undefined when calling loginUsingPOST.');
529
+ }
530
+ let headers = this.defaultHeaders;
531
+ // to determine the Accept header
532
+ let httpHeaderAccepts = [
533
+ 'application/json'
534
+ ];
535
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
536
+ if (httpHeaderAcceptSelected != undefined) {
537
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
538
+ }
539
+ // to determine the Content-Type header
540
+ const consumes = [
541
+ 'application/json'
542
+ ];
543
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
544
+ if (httpContentTypeSelected != undefined) {
545
+ headers = headers.set('Content-Type', httpContentTypeSelected);
546
+ }
547
+ return this.httpClient.post(`${this.basePath}/v2/auth/login`, userLoginRequest, {
548
+ withCredentials: this.configuration.withCredentials,
549
+ headers: headers,
550
+ observe: observe,
551
+ reportProgress: reportProgress
552
+ });
553
+ }
554
+ logoutUserUsingGET(token, username, observe = 'body', reportProgress = false) {
555
+ if (token === null || token === undefined) {
556
+ throw new Error('Required parameter token was null or undefined when calling logoutUserUsingGET.');
557
+ }
558
+ if (username === null || username === undefined) {
559
+ throw new Error('Required parameter username was null or undefined when calling logoutUserUsingGET.');
560
+ }
561
+ let headers = this.defaultHeaders;
562
+ if (token !== undefined && token !== null) {
563
+ headers = headers.set('token', String(token));
564
+ }
565
+ // to determine the Accept header
566
+ let httpHeaderAccepts = [
567
+ 'application/json'
568
+ ];
569
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
570
+ if (httpHeaderAcceptSelected != undefined) {
571
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
572
+ }
573
+ // to determine the Content-Type header
574
+ const consumes = [];
575
+ return this.httpClient.get(`${this.basePath}/v2/auth/logout-user/${encodeURIComponent(String(username))}`, {
576
+ withCredentials: this.configuration.withCredentials,
577
+ headers: headers,
578
+ observe: observe,
579
+ reportProgress: reportProgress
580
+ });
581
+ }
582
+ logoutWithTokenUsingGET(token, observe = 'body', reportProgress = false) {
583
+ if (token === null || token === undefined) {
584
+ throw new Error('Required parameter token was null or undefined when calling logoutWithTokenUsingGET.');
585
+ }
586
+ let headers = this.defaultHeaders;
587
+ if (token !== undefined && token !== null) {
588
+ headers = headers.set('token', String(token));
589
+ }
590
+ // to determine the Accept header
591
+ let httpHeaderAccepts = [
592
+ 'application/json'
593
+ ];
594
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
595
+ if (httpHeaderAcceptSelected != undefined) {
596
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
597
+ }
598
+ // to determine the Content-Type header
599
+ const consumes = [];
600
+ return this.httpClient.get(`${this.basePath}/v2/auth/logout-token`, {
601
+ withCredentials: this.configuration.withCredentials,
602
+ headers: headers,
603
+ observe: observe,
604
+ reportProgress: reportProgress
605
+ });
606
+ }
607
+ resendOtpUsingPOST(username, observe = 'body', reportProgress = false) {
608
+ if (username === null || username === undefined) {
609
+ throw new Error('Required parameter username was null or undefined when calling resendOtpUsingPOST.');
610
+ }
611
+ let headers = this.defaultHeaders;
612
+ // to determine the Accept header
613
+ let httpHeaderAccepts = [
614
+ 'application/json'
615
+ ];
616
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
617
+ if (httpHeaderAcceptSelected != undefined) {
618
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
619
+ }
620
+ // to determine the Content-Type header
621
+ const consumes = [
622
+ 'application/json'
623
+ ];
624
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
625
+ if (httpContentTypeSelected != undefined) {
626
+ headers = headers.set('Content-Type', httpContentTypeSelected);
627
+ }
628
+ return this.httpClient.post(`${this.basePath}/v2/auth/resend-otp`, username, {
629
+ withCredentials: this.configuration.withCredentials,
630
+ headers: headers,
631
+ observe: observe,
632
+ reportProgress: reportProgress
633
+ });
634
+ }
635
+ switchLicenseeUsingGET(licenseeId, token, observe = 'body', reportProgress = false) {
636
+ if (licenseeId === null || licenseeId === undefined) {
637
+ throw new Error('Required parameter licenseeId was null or undefined when calling switchLicenseeUsingGET.');
638
+ }
639
+ if (token === null || token === undefined) {
640
+ throw new Error('Required parameter token was null or undefined when calling switchLicenseeUsingGET.');
641
+ }
642
+ let headers = this.defaultHeaders;
643
+ if (token !== undefined && token !== null) {
644
+ headers = headers.set('token', String(token));
645
+ }
646
+ // to determine the Accept header
647
+ let httpHeaderAccepts = [
648
+ 'application/json'
649
+ ];
650
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
651
+ if (httpHeaderAcceptSelected != undefined) {
652
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
653
+ }
654
+ // to determine the Content-Type header
655
+ const consumes = [];
656
+ return this.httpClient.get(`${this.basePath}/v2/auth/switch-licensee/${encodeURIComponent(String(licenseeId))}`, {
657
+ withCredentials: this.configuration.withCredentials,
658
+ headers: headers,
659
+ observe: observe,
660
+ reportProgress: reportProgress
661
+ });
662
+ }
663
+ update2FAUsingPOST(isEnabled, token, observe = 'body', reportProgress = false) {
664
+ if (isEnabled === null || isEnabled === undefined) {
665
+ throw new Error('Required parameter isEnabled was null or undefined when calling update2FAUsingPOST.');
666
+ }
667
+ if (token === null || token === undefined) {
668
+ throw new Error('Required parameter token was null or undefined when calling update2FAUsingPOST.');
669
+ }
670
+ let headers = this.defaultHeaders;
671
+ if (token !== undefined && token !== null) {
672
+ headers = headers.set('token', String(token));
673
+ }
674
+ // to determine the Accept header
675
+ let httpHeaderAccepts = [
676
+ 'application/json'
677
+ ];
678
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
679
+ if (httpHeaderAcceptSelected != undefined) {
680
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
681
+ }
682
+ // to determine the Content-Type header
683
+ const consumes = [
684
+ 'application/json'
685
+ ];
686
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
687
+ if (httpContentTypeSelected != undefined) {
688
+ headers = headers.set('Content-Type', httpContentTypeSelected);
689
+ }
690
+ return this.httpClient.post(`${this.basePath}/v2/auth/update-2fa`, isEnabled, {
691
+ withCredentials: this.configuration.withCredentials,
692
+ headers: headers,
693
+ observe: observe,
694
+ reportProgress: reportProgress
695
+ });
696
+ }
697
+ userInfoUsingGET(token, observe = 'body', reportProgress = false) {
698
+ if (token === null || token === undefined) {
699
+ throw new Error('Required parameter token was null or undefined when calling userInfoUsingGET.');
700
+ }
701
+ let headers = this.defaultHeaders;
702
+ if (token !== undefined && token !== null) {
703
+ headers = headers.set('token', String(token));
704
+ }
705
+ // to determine the Accept header
706
+ let httpHeaderAccepts = [
707
+ 'application/json'
708
+ ];
709
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
710
+ if (httpHeaderAcceptSelected != undefined) {
711
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
712
+ }
713
+ // to determine the Content-Type header
714
+ const consumes = [];
715
+ return this.httpClient.get(`${this.basePath}/v2/auth/userinfo`, {
716
+ withCredentials: this.configuration.withCredentials,
717
+ headers: headers,
718
+ observe: observe,
719
+ reportProgress: reportProgress
720
+ });
721
+ }
722
+ userPrivilegeUsingGET(token, observe = 'body', reportProgress = false) {
723
+ if (token === null || token === undefined) {
724
+ throw new Error('Required parameter token was null or undefined when calling userPrivilegeUsingGET.');
725
+ }
726
+ let headers = this.defaultHeaders;
727
+ if (token !== undefined && token !== null) {
728
+ headers = headers.set('token', String(token));
729
+ }
730
+ // to determine the Accept header
731
+ let httpHeaderAccepts = [
732
+ 'application/json'
733
+ ];
734
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
735
+ if (httpHeaderAcceptSelected != undefined) {
736
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
737
+ }
738
+ // to determine the Content-Type header
739
+ const consumes = [];
740
+ return this.httpClient.get(`${this.basePath}/v2/auth/user-privileges`, {
741
+ withCredentials: this.configuration.withCredentials,
742
+ headers: headers,
743
+ observe: observe,
744
+ reportProgress: reportProgress
745
+ });
746
+ }
747
+ validateOtpUsingPOST(uiExtended, observe = 'body', reportProgress = false) {
748
+ if (uiExtended === null || uiExtended === undefined) {
749
+ throw new Error('Required parameter uiExtended was null or undefined when calling validateOtpUsingPOST.');
750
+ }
751
+ let headers = this.defaultHeaders;
752
+ // to determine the Accept header
753
+ let httpHeaderAccepts = [
754
+ 'application/json'
755
+ ];
756
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
757
+ if (httpHeaderAcceptSelected != undefined) {
758
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
759
+ }
760
+ // to determine the Content-Type header
761
+ const consumes = [
762
+ 'application/json'
763
+ ];
764
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
765
+ if (httpContentTypeSelected != undefined) {
766
+ headers = headers.set('Content-Type', httpContentTypeSelected);
767
+ }
768
+ return this.httpClient.post(`${this.basePath}/v2/auth/validate-otp`, uiExtended, {
769
+ withCredentials: this.configuration.withCredentials,
770
+ headers: headers,
771
+ observe: observe,
772
+ reportProgress: reportProgress
773
+ });
774
+ }
775
+ }
776
+ AuthApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AuthApiService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
777
+ AuthApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AuthApiService });
778
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AuthApiService, decorators: [{
779
+ type: Injectable
780
+ }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
781
+ type: Optional
782
+ }, {
783
+ type: Inject,
784
+ args: [BASE_PATH]
785
+ }] }, { type: Configuration, decorators: [{
786
+ type: Optional
787
+ }] }]; } });
788
+
789
+ const APIS = [AdminRoleValidationControllerService, AuthApiService];
790
+
791
+ /**
792
+ * Api Documentation
793
+ * Api Documentation
794
+ *
795
+ * OpenAPI spec version: 1.0
796
+ *
797
+ *
798
+ * NOTE: This class is auto generated by the swagger code generator program.
799
+ * https://github.com/swagger-api/swagger-codegen.git
800
+ * Do not edit the class manually.
801
+ */
802
+
803
+ /**
804
+ * Api Documentation
805
+ * Api Documentation
806
+ *
807
+ * OpenAPI spec version: 1.0
808
+ *
809
+ *
810
+ * NOTE: This class is auto generated by the swagger code generator program.
811
+ * https://github.com/swagger-api/swagger-codegen.git
812
+ * Do not edit the class manually.
813
+ */
814
+
815
+ /**
816
+ * Api Documentation
817
+ * Api Documentation
818
+ *
819
+ * OpenAPI spec version: 1.0
820
+ *
821
+ *
822
+ * NOTE: This class is auto generated by the swagger code generator program.
823
+ * https://github.com/swagger-api/swagger-codegen.git
824
+ * Do not edit the class manually.
825
+ */
826
+
827
+ /**
828
+ * Api Documentation
829
+ * Api Documentation
830
+ *
831
+ * OpenAPI spec version: 1.0
832
+ *
833
+ *
834
+ * NOTE: This class is auto generated by the swagger code generator program.
835
+ * https://github.com/swagger-api/swagger-codegen.git
836
+ * Do not edit the class manually.
837
+ */
838
+
839
+ /**
840
+ * Api Documentation
841
+ * Api Documentation
842
+ *
843
+ * OpenAPI spec version: 1.0
844
+ *
845
+ *
846
+ * NOTE: This class is auto generated by the swagger code generator program.
847
+ * https://github.com/swagger-api/swagger-codegen.git
848
+ * Do not edit the class manually.
849
+ */
850
+
851
+ /**
852
+ * Api Documentation
853
+ * Api Documentation
854
+ *
855
+ * OpenAPI spec version: 1.0
856
+ *
857
+ *
858
+ * NOTE: This class is auto generated by the swagger code generator program.
859
+ * https://github.com/swagger-api/swagger-codegen.git
860
+ * Do not edit the class manually.
861
+ */
862
+
863
+ /**
864
+ * Api Documentation
865
+ * Api Documentation
866
+ *
867
+ * OpenAPI spec version: 1.0
868
+ *
869
+ *
870
+ * NOTE: This class is auto generated by the swagger code generator program.
871
+ * https://github.com/swagger-api/swagger-codegen.git
872
+ * Do not edit the class manually.
873
+ */
874
+
875
+ /**
876
+ * Api Documentation
877
+ * Api Documentation
878
+ *
879
+ * OpenAPI spec version: 1.0
880
+ *
881
+ *
882
+ * NOTE: This class is auto generated by the swagger code generator program.
883
+ * https://github.com/swagger-api/swagger-codegen.git
884
+ * Do not edit the class manually.
885
+ */
886
+
887
+ /**
888
+ * Api Documentation
889
+ * Api Documentation
890
+ *
891
+ * OpenAPI spec version: 1.0
892
+ *
893
+ *
894
+ * NOTE: This class is auto generated by the swagger code generator program.
895
+ * https://github.com/swagger-api/swagger-codegen.git
896
+ * Do not edit the class manually.
897
+ */
898
+
899
+ /**
900
+ * Api Documentation
901
+ * Api Documentation
902
+ *
903
+ * OpenAPI spec version: 1.0
904
+ *
905
+ *
906
+ * NOTE: This class is auto generated by the swagger code generator program.
907
+ * https://github.com/swagger-api/swagger-codegen.git
908
+ * Do not edit the class manually.
909
+ */
910
+
911
+ /**
912
+ * Api Documentation
913
+ * Api Documentation
914
+ *
915
+ * OpenAPI spec version: 1.0
916
+ *
917
+ *
918
+ * NOTE: This class is auto generated by the swagger code generator program.
919
+ * https://github.com/swagger-api/swagger-codegen.git
920
+ * Do not edit the class manually.
921
+ */
922
+
923
+ class ApiModule {
924
+ static forRoot(configurationFactory) {
925
+ return {
926
+ ngModule: ApiModule,
927
+ providers: [{ provide: Configuration, useFactory: configurationFactory }]
928
+ };
929
+ }
930
+ constructor(parentModule, http) {
931
+ if (parentModule) {
932
+ throw new Error('ApiModule is already loaded. Import in your base AppModule only.');
933
+ }
934
+ if (!http) {
935
+ throw new Error('You need to import the HttpClientModule in your AppModule! \n' +
936
+ 'See also https://github.com/angular/angular/issues/20575');
937
+ }
938
+ }
939
+ }
940
+ ApiModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ApiModule, deps: [{ token: ApiModule, optional: true, skipSelf: true }, { token: i1.HttpClient, optional: true }], target: i0.ɵɵFactoryTarget.NgModule });
941
+ ApiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: ApiModule });
942
+ ApiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ApiModule, providers: [
943
+ AdminRoleValidationControllerService,
944
+ AuthApiService
945
+ ] });
946
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ApiModule, decorators: [{
947
+ type: NgModule,
948
+ args: [{
949
+ imports: [],
950
+ declarations: [],
951
+ exports: [],
952
+ providers: [
953
+ AdminRoleValidationControllerService,
954
+ AuthApiService
955
+ ]
956
+ }]
957
+ }], ctorParameters: function () { return [{ type: ApiModule, decorators: [{
958
+ type: Optional
959
+ }, {
960
+ type: SkipSelf
961
+ }] }, { type: i1.HttpClient, decorators: [{
962
+ type: Optional
963
+ }] }]; } });
964
+
965
+ /**
966
+ * Generated bundle index. Do not edit.
967
+ */
968
+
969
+ export { APIS, AdminRoleValidationControllerService, ApiModule, AuthApiService, BASE_PATH, COLLECTION_FORMATS, Configuration };
970
+ //# sourceMappingURL=revxui-api-clients-ts.mjs.map