@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,844 @@
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 () {
232
+ return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
233
+ type: Optional
234
+ }, {
235
+ type: Inject,
236
+ args: [BASE_PATH]
237
+ }] }, { type: Configuration, decorators: [{
238
+ type: Optional
239
+ }] }];
240
+ } });
241
+
242
+ /**
243
+ * CustomHttpUrlEncodingCodec
244
+ * Fix plus sign (+) not encoding, so sent as blank space
245
+ * See: https://github.com/angular/angular/issues/11058#issuecomment-247367318
246
+ */
247
+ class CustomHttpUrlEncodingCodec extends HttpUrlEncodingCodec {
248
+ encodeKey(k) {
249
+ k = super.encodeKey(k);
250
+ return k.replace(/\+/gi, '%2B');
251
+ }
252
+ encodeValue(v) {
253
+ v = super.encodeValue(v);
254
+ return v.replace(/\+/gi, '%2B');
255
+ }
256
+ }
257
+
258
+ /**
259
+ * Api Documentation
260
+ * Api Documentation
261
+ *
262
+ * OpenAPI spec version: 1.0
263
+ *
264
+ *
265
+ * NOTE: This class is auto generated by the swagger code generator program.
266
+ * https://github.com/swagger-api/swagger-codegen.git
267
+ * Do not edit the class manually.
268
+ */
269
+ /* tslint:disable:no-unused-variable member-ordering */
270
+ class AuthApiService {
271
+ constructor(httpClient, basePath, configuration) {
272
+ this.httpClient = httpClient;
273
+ this.basePath = 'https://authv2stage7.atomex.net';
274
+ this.defaultHeaders = new HttpHeaders();
275
+ this.configuration = new Configuration();
276
+ if (basePath) {
277
+ this.basePath = basePath;
278
+ }
279
+ if (configuration) {
280
+ this.configuration = configuration;
281
+ this.basePath = basePath || configuration.basePath || this.basePath;
282
+ }
283
+ }
284
+ /**
285
+ * @param consumes string[] mime-types
286
+ * @return true: consumes contains 'multipart/form-data', false: otherwise
287
+ */
288
+ canConsumeForm(consumes) {
289
+ const form = 'multipart/form-data';
290
+ for (const consume of consumes) {
291
+ if (form === consume) {
292
+ return true;
293
+ }
294
+ }
295
+ return false;
296
+ }
297
+ changePasswordUsingPOST(passwordChangeRequest, token, observe = 'body', reportProgress = false) {
298
+ if (passwordChangeRequest === null || passwordChangeRequest === undefined) {
299
+ throw new Error('Required parameter passwordChangeRequest was null or undefined when calling changePasswordUsingPOST.');
300
+ }
301
+ if (token === null || token === undefined) {
302
+ throw new Error('Required parameter token was null or undefined when calling changePasswordUsingPOST.');
303
+ }
304
+ let headers = this.defaultHeaders;
305
+ if (token !== undefined && token !== null) {
306
+ headers = headers.set('token', String(token));
307
+ }
308
+ // to determine the Accept header
309
+ let httpHeaderAccepts = [
310
+ 'application/json'
311
+ ];
312
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
313
+ if (httpHeaderAcceptSelected != undefined) {
314
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
315
+ }
316
+ // to determine the Content-Type header
317
+ const consumes = [
318
+ 'application/json'
319
+ ];
320
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
321
+ if (httpContentTypeSelected != undefined) {
322
+ headers = headers.set('Content-Type', httpContentTypeSelected);
323
+ }
324
+ return this.httpClient.post(`${this.basePath}/v2/auth/change-pass-secret`, passwordChangeRequest, {
325
+ withCredentials: this.configuration.withCredentials,
326
+ headers: headers,
327
+ observe: observe,
328
+ reportProgress: reportProgress
329
+ });
330
+ }
331
+ consoleUserInfoUsingGET(token, observe = 'body', reportProgress = false) {
332
+ if (token === null || token === undefined) {
333
+ throw new Error('Required parameter token was null or undefined when calling consoleUserInfoUsingGET.');
334
+ }
335
+ let headers = this.defaultHeaders;
336
+ if (token !== undefined && token !== null) {
337
+ headers = headers.set('token', String(token));
338
+ }
339
+ // to determine the Accept header
340
+ let httpHeaderAccepts = [
341
+ 'application/json'
342
+ ];
343
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
344
+ if (httpHeaderAcceptSelected != undefined) {
345
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
346
+ }
347
+ // to determine the Content-Type header
348
+ const consumes = [];
349
+ return this.httpClient.get(`${this.basePath}/v2/auth/consoleuserinfo`, {
350
+ withCredentials: this.configuration.withCredentials,
351
+ headers: headers,
352
+ observe: observe,
353
+ reportProgress: reportProgress
354
+ });
355
+ }
356
+ createAPIKeyUsingPOST(token, advId, observe = 'body', reportProgress = false) {
357
+ if (token === null || token === undefined) {
358
+ throw new Error('Required parameter token was null or undefined when calling createAPIKeyUsingPOST.');
359
+ }
360
+ let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
361
+ if (advId !== undefined && advId !== null) {
362
+ queryParameters = queryParameters.set('advId', advId);
363
+ }
364
+ let headers = this.defaultHeaders;
365
+ if (token !== undefined && token !== null) {
366
+ headers = headers.set('token', String(token));
367
+ }
368
+ // to determine the Accept header
369
+ let httpHeaderAccepts = [
370
+ 'application/json'
371
+ ];
372
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
373
+ if (httpHeaderAcceptSelected != undefined) {
374
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
375
+ }
376
+ // to determine the Content-Type header
377
+ const consumes = [
378
+ 'application/json'
379
+ ];
380
+ return this.httpClient.post(`${this.basePath}/v2/auth/api-key`, null, {
381
+ params: queryParameters,
382
+ withCredentials: this.configuration.withCredentials,
383
+ headers: headers,
384
+ observe: observe,
385
+ reportProgress: reportProgress
386
+ });
387
+ }
388
+ createLifeTimeTokenUsingPOST(token, observe = 'body', reportProgress = false) {
389
+ if (token === null || token === undefined) {
390
+ throw new Error('Required parameter token was null or undefined when calling createLifeTimeTokenUsingPOST.');
391
+ }
392
+ let headers = this.defaultHeaders;
393
+ if (token !== undefined && token !== null) {
394
+ headers = headers.set('token', String(token));
395
+ }
396
+ // to determine the Accept header
397
+ let httpHeaderAccepts = [
398
+ 'application/json'
399
+ ];
400
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
401
+ if (httpHeaderAcceptSelected != undefined) {
402
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
403
+ }
404
+ // to determine the Content-Type header
405
+ const consumes = [
406
+ 'application/json'
407
+ ];
408
+ return this.httpClient.post(`${this.basePath}/v2/auth/create-lifetime-token`, null, {
409
+ withCredentials: this.configuration.withCredentials,
410
+ headers: headers,
411
+ observe: observe,
412
+ reportProgress: reportProgress
413
+ });
414
+ }
415
+ deleteLifeTimeTokenUsingPUT(token, tokenId, observe = 'body', reportProgress = false) {
416
+ if (token === null || token === undefined) {
417
+ throw new Error('Required parameter token was null or undefined when calling deleteLifeTimeTokenUsingPUT.');
418
+ }
419
+ if (tokenId === null || tokenId === undefined) {
420
+ throw new Error('Required parameter tokenId was null or undefined when calling deleteLifeTimeTokenUsingPUT.');
421
+ }
422
+ let headers = this.defaultHeaders;
423
+ if (token !== undefined && token !== null) {
424
+ headers = headers.set('token', String(token));
425
+ }
426
+ // to determine the Accept header
427
+ let httpHeaderAccepts = [
428
+ 'application/json'
429
+ ];
430
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
431
+ if (httpHeaderAcceptSelected != undefined) {
432
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
433
+ }
434
+ // to determine the Content-Type header
435
+ const consumes = [
436
+ 'application/json'
437
+ ];
438
+ return this.httpClient.put(`${this.basePath}/v2/auth/lifetime-token/${encodeURIComponent(String(tokenId))}`, null, {
439
+ withCredentials: this.configuration.withCredentials,
440
+ headers: headers,
441
+ observe: observe,
442
+ reportProgress: reportProgress
443
+ });
444
+ }
445
+ getAPIKeysUsingGET(token, observe = 'body', reportProgress = false) {
446
+ if (token === null || token === undefined) {
447
+ throw new Error('Required parameter token was null or undefined when calling getAPIKeysUsingGET.');
448
+ }
449
+ let headers = this.defaultHeaders;
450
+ if (token !== undefined && token !== null) {
451
+ headers = headers.set('token', String(token));
452
+ }
453
+ // to determine the Accept header
454
+ let httpHeaderAccepts = [
455
+ 'application/json'
456
+ ];
457
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
458
+ if (httpHeaderAcceptSelected != undefined) {
459
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
460
+ }
461
+ // to determine the Content-Type header
462
+ const consumes = [];
463
+ return this.httpClient.get(`${this.basePath}/v2/auth/api-key`, {
464
+ withCredentials: this.configuration.withCredentials,
465
+ headers: headers,
466
+ observe: observe,
467
+ reportProgress: reportProgress
468
+ });
469
+ }
470
+ getLifeTimeTokenUsingGET(token, observe = 'body', reportProgress = false) {
471
+ if (token === null || token === undefined) {
472
+ throw new Error('Required parameter token was null or undefined when calling getLifeTimeTokenUsingGET.');
473
+ }
474
+ let headers = this.defaultHeaders;
475
+ if (token !== undefined && token !== null) {
476
+ headers = headers.set('token', String(token));
477
+ }
478
+ // to determine the Accept header
479
+ let httpHeaderAccepts = [
480
+ 'application/json'
481
+ ];
482
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
483
+ if (httpHeaderAcceptSelected != undefined) {
484
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
485
+ }
486
+ // to determine the Content-Type header
487
+ const consumes = [];
488
+ return this.httpClient.get(`${this.basePath}/v2/auth/lifetime-token`, {
489
+ withCredentials: this.configuration.withCredentials,
490
+ headers: headers,
491
+ observe: observe,
492
+ reportProgress: reportProgress
493
+ });
494
+ }
495
+ loginSocialUsingGET(client, socialToken, isConsole, oidcIssuer, observe = 'body', reportProgress = false) {
496
+ if (client === null || client === undefined) {
497
+ throw new Error('Required parameter client was null or undefined when calling loginSocialUsingGET.');
498
+ }
499
+ if (socialToken === null || socialToken === undefined) {
500
+ throw new Error('Required parameter socialToken was null or undefined when calling loginSocialUsingGET.');
501
+ }
502
+ let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
503
+ if (isConsole !== undefined && isConsole !== null) {
504
+ queryParameters = queryParameters.set('isConsole', isConsole);
505
+ }
506
+ if (oidcIssuer !== undefined && oidcIssuer !== null) {
507
+ queryParameters = queryParameters.set('oidcIssuer', oidcIssuer);
508
+ }
509
+ let headers = this.defaultHeaders;
510
+ // to determine the Accept header
511
+ let httpHeaderAccepts = [
512
+ 'application/json'
513
+ ];
514
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
515
+ if (httpHeaderAcceptSelected != undefined) {
516
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
517
+ }
518
+ // to determine the Content-Type header
519
+ const consumes = [];
520
+ return this.httpClient.get(`${this.basePath}/v2/auth/login-social/${encodeURIComponent(String(client))}/${encodeURIComponent(String(socialToken))}`, {
521
+ params: queryParameters,
522
+ withCredentials: this.configuration.withCredentials,
523
+ headers: headers,
524
+ observe: observe,
525
+ reportProgress: reportProgress
526
+ });
527
+ }
528
+ loginUsingPOST(userLoginRequest, observe = 'body', reportProgress = false) {
529
+ if (userLoginRequest === null || userLoginRequest === undefined) {
530
+ throw new Error('Required parameter userLoginRequest was null or undefined when calling loginUsingPOST.');
531
+ }
532
+ let headers = this.defaultHeaders;
533
+ // to determine the Accept header
534
+ let httpHeaderAccepts = [
535
+ 'application/json'
536
+ ];
537
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
538
+ if (httpHeaderAcceptSelected != undefined) {
539
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
540
+ }
541
+ // to determine the Content-Type header
542
+ const consumes = [
543
+ 'application/json'
544
+ ];
545
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
546
+ if (httpContentTypeSelected != undefined) {
547
+ headers = headers.set('Content-Type', httpContentTypeSelected);
548
+ }
549
+ return this.httpClient.post(`${this.basePath}/v2/auth/login`, userLoginRequest, {
550
+ withCredentials: this.configuration.withCredentials,
551
+ headers: headers,
552
+ observe: observe,
553
+ reportProgress: reportProgress
554
+ });
555
+ }
556
+ logoutUserUsingGET(token, username, observe = 'body', reportProgress = false) {
557
+ if (token === null || token === undefined) {
558
+ throw new Error('Required parameter token was null or undefined when calling logoutUserUsingGET.');
559
+ }
560
+ if (username === null || username === undefined) {
561
+ throw new Error('Required parameter username was null or undefined when calling logoutUserUsingGET.');
562
+ }
563
+ let headers = this.defaultHeaders;
564
+ if (token !== undefined && token !== null) {
565
+ headers = headers.set('token', String(token));
566
+ }
567
+ // to determine the Accept header
568
+ let httpHeaderAccepts = [
569
+ 'application/json'
570
+ ];
571
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
572
+ if (httpHeaderAcceptSelected != undefined) {
573
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
574
+ }
575
+ // to determine the Content-Type header
576
+ const consumes = [];
577
+ return this.httpClient.get(`${this.basePath}/v2/auth/logout-user/${encodeURIComponent(String(username))}`, {
578
+ withCredentials: this.configuration.withCredentials,
579
+ headers: headers,
580
+ observe: observe,
581
+ reportProgress: reportProgress
582
+ });
583
+ }
584
+ logoutWithTokenUsingGET(token, observe = 'body', reportProgress = false) {
585
+ if (token === null || token === undefined) {
586
+ throw new Error('Required parameter token was null or undefined when calling logoutWithTokenUsingGET.');
587
+ }
588
+ let headers = this.defaultHeaders;
589
+ if (token !== undefined && token !== null) {
590
+ headers = headers.set('token', String(token));
591
+ }
592
+ // to determine the Accept header
593
+ let httpHeaderAccepts = [
594
+ 'application/json'
595
+ ];
596
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
597
+ if (httpHeaderAcceptSelected != undefined) {
598
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
599
+ }
600
+ // to determine the Content-Type header
601
+ const consumes = [];
602
+ return this.httpClient.get(`${this.basePath}/v2/auth/logout-token`, {
603
+ withCredentials: this.configuration.withCredentials,
604
+ headers: headers,
605
+ observe: observe,
606
+ reportProgress: reportProgress
607
+ });
608
+ }
609
+ resendOtpUsingPOST(username, observe = 'body', reportProgress = false) {
610
+ if (username === null || username === undefined) {
611
+ throw new Error('Required parameter username was null or undefined when calling resendOtpUsingPOST.');
612
+ }
613
+ let headers = this.defaultHeaders;
614
+ // to determine the Accept header
615
+ let httpHeaderAccepts = [
616
+ 'application/json'
617
+ ];
618
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
619
+ if (httpHeaderAcceptSelected != undefined) {
620
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
621
+ }
622
+ // to determine the Content-Type header
623
+ const consumes = [
624
+ 'application/json'
625
+ ];
626
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
627
+ if (httpContentTypeSelected != undefined) {
628
+ headers = headers.set('Content-Type', httpContentTypeSelected);
629
+ }
630
+ return this.httpClient.post(`${this.basePath}/v2/auth/resend-otp`, username, {
631
+ withCredentials: this.configuration.withCredentials,
632
+ headers: headers,
633
+ observe: observe,
634
+ reportProgress: reportProgress
635
+ });
636
+ }
637
+ switchLicenseeUsingGET(licenseeId, token, observe = 'body', reportProgress = false) {
638
+ if (licenseeId === null || licenseeId === undefined) {
639
+ throw new Error('Required parameter licenseeId was null or undefined when calling switchLicenseeUsingGET.');
640
+ }
641
+ if (token === null || token === undefined) {
642
+ throw new Error('Required parameter token was null or undefined when calling switchLicenseeUsingGET.');
643
+ }
644
+ let headers = this.defaultHeaders;
645
+ if (token !== undefined && token !== null) {
646
+ headers = headers.set('token', String(token));
647
+ }
648
+ // to determine the Accept header
649
+ let httpHeaderAccepts = [
650
+ 'application/json'
651
+ ];
652
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
653
+ if (httpHeaderAcceptSelected != undefined) {
654
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
655
+ }
656
+ // to determine the Content-Type header
657
+ const consumes = [];
658
+ return this.httpClient.get(`${this.basePath}/v2/auth/switch-licensee/${encodeURIComponent(String(licenseeId))}`, {
659
+ withCredentials: this.configuration.withCredentials,
660
+ headers: headers,
661
+ observe: observe,
662
+ reportProgress: reportProgress
663
+ });
664
+ }
665
+ update2FAUsingPOST(isEnabled, token, observe = 'body', reportProgress = false) {
666
+ if (isEnabled === null || isEnabled === undefined) {
667
+ throw new Error('Required parameter isEnabled was null or undefined when calling update2FAUsingPOST.');
668
+ }
669
+ if (token === null || token === undefined) {
670
+ throw new Error('Required parameter token was null or undefined when calling update2FAUsingPOST.');
671
+ }
672
+ let headers = this.defaultHeaders;
673
+ if (token !== undefined && token !== null) {
674
+ headers = headers.set('token', String(token));
675
+ }
676
+ // to determine the Accept header
677
+ let httpHeaderAccepts = [
678
+ 'application/json'
679
+ ];
680
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
681
+ if (httpHeaderAcceptSelected != undefined) {
682
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
683
+ }
684
+ // to determine the Content-Type header
685
+ const consumes = [
686
+ 'application/json'
687
+ ];
688
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
689
+ if (httpContentTypeSelected != undefined) {
690
+ headers = headers.set('Content-Type', httpContentTypeSelected);
691
+ }
692
+ return this.httpClient.post(`${this.basePath}/v2/auth/update-2fa`, isEnabled, {
693
+ withCredentials: this.configuration.withCredentials,
694
+ headers: headers,
695
+ observe: observe,
696
+ reportProgress: reportProgress
697
+ });
698
+ }
699
+ userInfoUsingGET(token, observe = 'body', reportProgress = false) {
700
+ if (token === null || token === undefined) {
701
+ throw new Error('Required parameter token was null or undefined when calling userInfoUsingGET.');
702
+ }
703
+ let headers = this.defaultHeaders;
704
+ if (token !== undefined && token !== null) {
705
+ headers = headers.set('token', String(token));
706
+ }
707
+ // to determine the Accept header
708
+ let httpHeaderAccepts = [
709
+ 'application/json'
710
+ ];
711
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
712
+ if (httpHeaderAcceptSelected != undefined) {
713
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
714
+ }
715
+ // to determine the Content-Type header
716
+ const consumes = [];
717
+ return this.httpClient.get(`${this.basePath}/v2/auth/userinfo`, {
718
+ withCredentials: this.configuration.withCredentials,
719
+ headers: headers,
720
+ observe: observe,
721
+ reportProgress: reportProgress
722
+ });
723
+ }
724
+ userPrivilegeUsingGET(token, observe = 'body', reportProgress = false) {
725
+ if (token === null || token === undefined) {
726
+ throw new Error('Required parameter token was null or undefined when calling userPrivilegeUsingGET.');
727
+ }
728
+ let headers = this.defaultHeaders;
729
+ if (token !== undefined && token !== null) {
730
+ headers = headers.set('token', String(token));
731
+ }
732
+ // to determine the Accept header
733
+ let httpHeaderAccepts = [
734
+ 'application/json'
735
+ ];
736
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
737
+ if (httpHeaderAcceptSelected != undefined) {
738
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
739
+ }
740
+ // to determine the Content-Type header
741
+ const consumes = [];
742
+ return this.httpClient.get(`${this.basePath}/v2/auth/user-privileges`, {
743
+ withCredentials: this.configuration.withCredentials,
744
+ headers: headers,
745
+ observe: observe,
746
+ reportProgress: reportProgress
747
+ });
748
+ }
749
+ validateOtpUsingPOST(uiExtended, observe = 'body', reportProgress = false) {
750
+ if (uiExtended === null || uiExtended === undefined) {
751
+ throw new Error('Required parameter uiExtended was null or undefined when calling validateOtpUsingPOST.');
752
+ }
753
+ let headers = this.defaultHeaders;
754
+ // to determine the Accept header
755
+ let httpHeaderAccepts = [
756
+ 'application/json'
757
+ ];
758
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
759
+ if (httpHeaderAcceptSelected != undefined) {
760
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
761
+ }
762
+ // to determine the Content-Type header
763
+ const consumes = [
764
+ 'application/json'
765
+ ];
766
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
767
+ if (httpContentTypeSelected != undefined) {
768
+ headers = headers.set('Content-Type', httpContentTypeSelected);
769
+ }
770
+ return this.httpClient.post(`${this.basePath}/v2/auth/validate-otp`, uiExtended, {
771
+ withCredentials: this.configuration.withCredentials,
772
+ headers: headers,
773
+ observe: observe,
774
+ reportProgress: reportProgress
775
+ });
776
+ }
777
+ }
778
+ 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 });
779
+ AuthApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AuthApiService });
780
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AuthApiService, decorators: [{
781
+ type: Injectable
782
+ }], ctorParameters: function () {
783
+ return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
784
+ type: Optional
785
+ }, {
786
+ type: Inject,
787
+ args: [BASE_PATH]
788
+ }] }, { type: Configuration, decorators: [{
789
+ type: Optional
790
+ }] }];
791
+ } });
792
+
793
+ const APIS = [AdminRoleValidationControllerService, AuthApiService];
794
+
795
+ class ApiModule {
796
+ static forRoot(configurationFactory) {
797
+ return {
798
+ ngModule: ApiModule,
799
+ providers: [{ provide: Configuration, useFactory: configurationFactory }]
800
+ };
801
+ }
802
+ constructor(parentModule, http) {
803
+ if (parentModule) {
804
+ throw new Error('ApiModule is already loaded. Import in your base AppModule only.');
805
+ }
806
+ if (!http) {
807
+ throw new Error('You need to import the HttpClientModule in your AppModule! \n' +
808
+ 'See also https://github.com/angular/angular/issues/20575');
809
+ }
810
+ }
811
+ }
812
+ 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 });
813
+ ApiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: ApiModule });
814
+ ApiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ApiModule, providers: [
815
+ AdminRoleValidationControllerService,
816
+ AuthApiService
817
+ ] });
818
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ApiModule, decorators: [{
819
+ type: NgModule,
820
+ args: [{
821
+ imports: [],
822
+ declarations: [],
823
+ exports: [],
824
+ providers: [
825
+ AdminRoleValidationControllerService,
826
+ AuthApiService
827
+ ]
828
+ }]
829
+ }], ctorParameters: function () {
830
+ return [{ type: ApiModule, decorators: [{
831
+ type: Optional
832
+ }, {
833
+ type: SkipSelf
834
+ }] }, { type: i1.HttpClient, decorators: [{
835
+ type: Optional
836
+ }] }];
837
+ } });
838
+
839
+ /**
840
+ * Generated bundle index. Do not edit.
841
+ */
842
+
843
+ export { APIS, AdminRoleValidationControllerService, ApiModule, AuthApiService, BASE_PATH, COLLECTION_FORMATS, Configuration };
844
+ //# sourceMappingURL=revxui-api-clients-ts.mjs.map