@indigina/wms-api 0.0.17

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 (41) hide show
  1. package/README.md +226 -0
  2. package/api/api.d.ts +7 -0
  3. package/api/health.service.d.ts +36 -0
  4. package/api/permissions.service.d.ts +37 -0
  5. package/api/user.service.d.ts +101 -0
  6. package/api.module.d.ts +11 -0
  7. package/configuration.d.ts +104 -0
  8. package/encoder.d.ts +11 -0
  9. package/esm2022/api/api.mjs +8 -0
  10. package/esm2022/api/health.service.mjs +143 -0
  11. package/esm2022/api/permissions.service.mjs +142 -0
  12. package/esm2022/api/user.service.mjs +283 -0
  13. package/esm2022/api.module.mjs +40 -0
  14. package/esm2022/configuration.mjs +121 -0
  15. package/esm2022/encoder.mjs +19 -0
  16. package/esm2022/index.mjs +7 -0
  17. package/esm2022/indigina-wms-api.mjs +5 -0
  18. package/esm2022/model/commandStatusResult.mjs +13 -0
  19. package/esm2022/model/currentUser.mjs +13 -0
  20. package/esm2022/model/failures.mjs +13 -0
  21. package/esm2022/model/modelError.mjs +2 -0
  22. package/esm2022/model/models.mjs +8 -0
  23. package/esm2022/model/pendingMessagesCount.mjs +13 -0
  24. package/esm2022/model/setNewFeaturesVisibilityCommand.mjs +13 -0
  25. package/esm2022/model/userPermissions.mjs +13 -0
  26. package/esm2022/param.mjs +2 -0
  27. package/esm2022/variables.mjs +9 -0
  28. package/fesm2022/indigina-wms-api.mjs +810 -0
  29. package/fesm2022/indigina-wms-api.mjs.map +1 -0
  30. package/index.d.ts +6 -0
  31. package/model/commandStatusResult.d.ts +14 -0
  32. package/model/currentUser.d.ts +19 -0
  33. package/model/failures.d.ts +18 -0
  34. package/model/modelError.d.ts +17 -0
  35. package/model/models.d.ts +7 -0
  36. package/model/pendingMessagesCount.d.ts +14 -0
  37. package/model/setNewFeaturesVisibilityCommand.d.ts +14 -0
  38. package/model/userPermissions.d.ts +14 -0
  39. package/package.json +36 -0
  40. package/param.d.ts +37 -0
  41. package/variables.d.ts +8 -0
@@ -0,0 +1,810 @@
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, HttpContext } from '@angular/common/http';
5
+
6
+ /**
7
+ * Custom HttpParameterCodec
8
+ * Workaround for https://github.com/angular/angular/issues/18261
9
+ */
10
+ class CustomHttpParameterCodec {
11
+ encodeKey(k) {
12
+ return encodeURIComponent(k);
13
+ }
14
+ encodeValue(v) {
15
+ return encodeURIComponent(v);
16
+ }
17
+ decodeKey(k) {
18
+ return decodeURIComponent(k);
19
+ }
20
+ decodeValue(v) {
21
+ return decodeURIComponent(v);
22
+ }
23
+ }
24
+
25
+ const BASE_PATH = new InjectionToken('basePath');
26
+ const COLLECTION_FORMATS = {
27
+ 'csv': ',',
28
+ 'tsv': ' ',
29
+ 'ssv': ' ',
30
+ 'pipes': '|'
31
+ };
32
+
33
+ class Configuration {
34
+ /**
35
+ * @deprecated Since 5.0. Use credentials instead
36
+ */
37
+ apiKeys;
38
+ username;
39
+ password;
40
+ /**
41
+ * @deprecated Since 5.0. Use credentials instead
42
+ */
43
+ accessToken;
44
+ basePath;
45
+ withCredentials;
46
+ /**
47
+ * Takes care of encoding query- and form-parameters.
48
+ */
49
+ encoder;
50
+ /**
51
+ * Encoding of various path parameter
52
+ * <a href="https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#style-values">styles</a>.
53
+ * <p>
54
+ * See {@link README.md} for more details
55
+ * </p>
56
+ */
57
+ encodeParam;
58
+ /**
59
+ * The keys are the names in the securitySchemes section of the OpenAPI
60
+ * document. They should map to the value used for authentication
61
+ * minus any standard prefixes such as 'Basic' or 'Bearer'.
62
+ */
63
+ credentials;
64
+ constructor(configurationParameters = {}) {
65
+ this.apiKeys = configurationParameters.apiKeys;
66
+ this.username = configurationParameters.username;
67
+ this.password = configurationParameters.password;
68
+ this.accessToken = configurationParameters.accessToken;
69
+ this.basePath = configurationParameters.basePath;
70
+ this.withCredentials = configurationParameters.withCredentials;
71
+ this.encoder = configurationParameters.encoder;
72
+ if (configurationParameters.encodeParam) {
73
+ this.encodeParam = configurationParameters.encodeParam;
74
+ }
75
+ else {
76
+ this.encodeParam = param => this.defaultEncodeParam(param);
77
+ }
78
+ if (configurationParameters.credentials) {
79
+ this.credentials = configurationParameters.credentials;
80
+ }
81
+ else {
82
+ this.credentials = {};
83
+ }
84
+ }
85
+ /**
86
+ * Select the correct content-type to use for a request.
87
+ * Uses {@link Configuration#isJsonMime} to determine the correct content-type.
88
+ * If no content type is found return the first found type if the contentTypes is not empty
89
+ * @param contentTypes - the array of content types that are available for selection
90
+ * @returns the selected content-type or <code>undefined</code> if no selection could be made.
91
+ */
92
+ selectHeaderContentType(contentTypes) {
93
+ if (contentTypes.length === 0) {
94
+ return undefined;
95
+ }
96
+ const type = contentTypes.find((x) => this.isJsonMime(x));
97
+ if (type === undefined) {
98
+ return contentTypes[0];
99
+ }
100
+ return type;
101
+ }
102
+ /**
103
+ * Select the correct accept content-type to use for a request.
104
+ * Uses {@link Configuration#isJsonMime} to determine the correct accept content-type.
105
+ * If no content type is found return the first found type if the contentTypes is not empty
106
+ * @param accepts - the array of content types that are available for selection.
107
+ * @returns the selected content-type or <code>undefined</code> if no selection could be made.
108
+ */
109
+ selectHeaderAccept(accepts) {
110
+ if (accepts.length === 0) {
111
+ return undefined;
112
+ }
113
+ const type = accepts.find((x) => this.isJsonMime(x));
114
+ if (type === undefined) {
115
+ return accepts[0];
116
+ }
117
+ return type;
118
+ }
119
+ /**
120
+ * Check if the given MIME is a JSON MIME.
121
+ * JSON MIME examples:
122
+ * application/json
123
+ * application/json; charset=UTF8
124
+ * APPLICATION/JSON
125
+ * application/vnd.company+json
126
+ * @param mime - MIME (Multipurpose Internet Mail Extensions)
127
+ * @return True if the given MIME is JSON, false otherwise.
128
+ */
129
+ isJsonMime(mime) {
130
+ const jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
131
+ return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
132
+ }
133
+ lookupCredential(key) {
134
+ const value = this.credentials[key];
135
+ return typeof value === 'function'
136
+ ? value()
137
+ : value;
138
+ }
139
+ defaultEncodeParam(param) {
140
+ // This implementation exists as fallback for missing configuration
141
+ // and for backwards compatibility to older typescript-angular generator versions.
142
+ // It only works for the 'simple' parameter style.
143
+ // Date-handling only works for the 'date-time' format.
144
+ // All other styles and Date-formats are probably handled incorrectly.
145
+ //
146
+ // But: if that's all you need (i.e.: the most common use-case): no need for customization!
147
+ const value = param.dataFormat === 'date-time' && param.value instanceof Date
148
+ ? param.value.toISOString()
149
+ : param.value;
150
+ return encodeURIComponent(String(value));
151
+ }
152
+ }
153
+
154
+ /**
155
+ * Wms.API.Client
156
+ * WMS API Client for Angular applications
157
+ *
158
+ * The version of the OpenAPI document: v1
159
+ *
160
+ *
161
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
162
+ * https://openapi-generator.tech
163
+ * Do not edit the class manually.
164
+ */
165
+ /* tslint:disable:no-unused-variable member-ordering */
166
+ class HealthService {
167
+ httpClient;
168
+ basePath = 'http://localhost';
169
+ defaultHeaders = new HttpHeaders();
170
+ configuration = new Configuration();
171
+ encoder;
172
+ constructor(httpClient, basePath, configuration) {
173
+ this.httpClient = httpClient;
174
+ if (configuration) {
175
+ this.configuration = configuration;
176
+ }
177
+ if (typeof this.configuration.basePath !== 'string') {
178
+ if (Array.isArray(basePath) && basePath.length > 0) {
179
+ basePath = basePath[0];
180
+ }
181
+ if (typeof basePath !== 'string') {
182
+ basePath = this.basePath;
183
+ }
184
+ this.configuration.basePath = basePath;
185
+ }
186
+ this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
187
+ }
188
+ // @ts-ignore
189
+ addToHttpParams(httpParams, value, key) {
190
+ if (typeof value === "object" && value instanceof Date === false) {
191
+ httpParams = this.addToHttpParamsRecursive(httpParams, value);
192
+ }
193
+ else {
194
+ httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
195
+ }
196
+ return httpParams;
197
+ }
198
+ addToHttpParamsRecursive(httpParams, value, key) {
199
+ if (value == null) {
200
+ return httpParams;
201
+ }
202
+ if (typeof value === "object") {
203
+ if (Array.isArray(value)) {
204
+ value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
205
+ }
206
+ else if (value instanceof Date) {
207
+ if (key != null) {
208
+ httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
209
+ }
210
+ else {
211
+ throw Error("key may not be null if value is Date");
212
+ }
213
+ }
214
+ else {
215
+ Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
216
+ }
217
+ }
218
+ else if (key != null) {
219
+ httpParams = httpParams.append(key, value);
220
+ }
221
+ else {
222
+ throw Error("key may not be null if value is not object or array");
223
+ }
224
+ return httpParams;
225
+ }
226
+ getHealth(observe = 'body', reportProgress = false, options) {
227
+ let localVarHeaders = this.defaultHeaders;
228
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
229
+ if (localVarHttpHeaderAcceptSelected === undefined) {
230
+ // to determine the Accept header
231
+ const httpHeaderAccepts = [
232
+ 'text/plain',
233
+ 'application/json'
234
+ ];
235
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
236
+ }
237
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
238
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
239
+ }
240
+ let localVarHttpContext = options && options.context;
241
+ if (localVarHttpContext === undefined) {
242
+ localVarHttpContext = new HttpContext();
243
+ }
244
+ let localVarTransferCache = options && options.transferCache;
245
+ if (localVarTransferCache === undefined) {
246
+ localVarTransferCache = true;
247
+ }
248
+ let responseType_ = 'json';
249
+ if (localVarHttpHeaderAcceptSelected) {
250
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
251
+ responseType_ = 'text';
252
+ }
253
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
254
+ responseType_ = 'json';
255
+ }
256
+ else {
257
+ responseType_ = 'blob';
258
+ }
259
+ }
260
+ let localVarPath = `/health`;
261
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
262
+ context: localVarHttpContext,
263
+ responseType: responseType_,
264
+ withCredentials: this.configuration.withCredentials,
265
+ headers: localVarHeaders,
266
+ observe: observe,
267
+ transferCache: localVarTransferCache,
268
+ reportProgress: reportProgress
269
+ });
270
+ }
271
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: HealthService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
272
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: HealthService, providedIn: 'root' });
273
+ }
274
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: HealthService, decorators: [{
275
+ type: Injectable,
276
+ args: [{
277
+ providedIn: 'root'
278
+ }]
279
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
280
+ type: Optional
281
+ }, {
282
+ type: Inject,
283
+ args: [BASE_PATH]
284
+ }] }, { type: Configuration, decorators: [{
285
+ type: Optional
286
+ }] }] });
287
+
288
+ /**
289
+ * Wms.API.Client
290
+ * WMS API Client for Angular applications
291
+ *
292
+ * The version of the OpenAPI document: v1
293
+ *
294
+ *
295
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
296
+ * https://openapi-generator.tech
297
+ * Do not edit the class manually.
298
+ */
299
+ /* tslint:disable:no-unused-variable member-ordering */
300
+ class PermissionsService {
301
+ httpClient;
302
+ basePath = 'http://localhost';
303
+ defaultHeaders = new HttpHeaders();
304
+ configuration = new Configuration();
305
+ encoder;
306
+ constructor(httpClient, basePath, configuration) {
307
+ this.httpClient = httpClient;
308
+ if (configuration) {
309
+ this.configuration = configuration;
310
+ }
311
+ if (typeof this.configuration.basePath !== 'string') {
312
+ if (Array.isArray(basePath) && basePath.length > 0) {
313
+ basePath = basePath[0];
314
+ }
315
+ if (typeof basePath !== 'string') {
316
+ basePath = this.basePath;
317
+ }
318
+ this.configuration.basePath = basePath;
319
+ }
320
+ this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
321
+ }
322
+ // @ts-ignore
323
+ addToHttpParams(httpParams, value, key) {
324
+ if (typeof value === "object" && value instanceof Date === false) {
325
+ httpParams = this.addToHttpParamsRecursive(httpParams, value);
326
+ }
327
+ else {
328
+ httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
329
+ }
330
+ return httpParams;
331
+ }
332
+ addToHttpParamsRecursive(httpParams, value, key) {
333
+ if (value == null) {
334
+ return httpParams;
335
+ }
336
+ if (typeof value === "object") {
337
+ if (Array.isArray(value)) {
338
+ value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
339
+ }
340
+ else if (value instanceof Date) {
341
+ if (key != null) {
342
+ httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
343
+ }
344
+ else {
345
+ throw Error("key may not be null if value is Date");
346
+ }
347
+ }
348
+ else {
349
+ Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
350
+ }
351
+ }
352
+ else if (key != null) {
353
+ httpParams = httpParams.append(key, value);
354
+ }
355
+ else {
356
+ throw Error("key may not be null if value is not object or array");
357
+ }
358
+ return httpParams;
359
+ }
360
+ getUserPermissions(observe = 'body', reportProgress = false, options) {
361
+ let localVarHeaders = this.defaultHeaders;
362
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
363
+ if (localVarHttpHeaderAcceptSelected === undefined) {
364
+ // to determine the Accept header
365
+ const httpHeaderAccepts = [
366
+ 'application/json'
367
+ ];
368
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
369
+ }
370
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
371
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
372
+ }
373
+ let localVarHttpContext = options && options.context;
374
+ if (localVarHttpContext === undefined) {
375
+ localVarHttpContext = new HttpContext();
376
+ }
377
+ let localVarTransferCache = options && options.transferCache;
378
+ if (localVarTransferCache === undefined) {
379
+ localVarTransferCache = true;
380
+ }
381
+ let responseType_ = 'json';
382
+ if (localVarHttpHeaderAcceptSelected) {
383
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
384
+ responseType_ = 'text';
385
+ }
386
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
387
+ responseType_ = 'json';
388
+ }
389
+ else {
390
+ responseType_ = 'blob';
391
+ }
392
+ }
393
+ let localVarPath = `/user/permissions`;
394
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
395
+ context: localVarHttpContext,
396
+ responseType: responseType_,
397
+ withCredentials: this.configuration.withCredentials,
398
+ headers: localVarHeaders,
399
+ observe: observe,
400
+ transferCache: localVarTransferCache,
401
+ reportProgress: reportProgress
402
+ });
403
+ }
404
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: PermissionsService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
405
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: PermissionsService, providedIn: 'root' });
406
+ }
407
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: PermissionsService, decorators: [{
408
+ type: Injectable,
409
+ args: [{
410
+ providedIn: 'root'
411
+ }]
412
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
413
+ type: Optional
414
+ }, {
415
+ type: Inject,
416
+ args: [BASE_PATH]
417
+ }] }, { type: Configuration, decorators: [{
418
+ type: Optional
419
+ }] }] });
420
+
421
+ /**
422
+ * Wms.API.Client
423
+ * WMS API Client for Angular applications
424
+ *
425
+ * The version of the OpenAPI document: v1
426
+ *
427
+ *
428
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
429
+ * https://openapi-generator.tech
430
+ * Do not edit the class manually.
431
+ */
432
+ /* tslint:disable:no-unused-variable member-ordering */
433
+ class UserService {
434
+ httpClient;
435
+ basePath = 'http://localhost';
436
+ defaultHeaders = new HttpHeaders();
437
+ configuration = new Configuration();
438
+ encoder;
439
+ constructor(httpClient, basePath, configuration) {
440
+ this.httpClient = httpClient;
441
+ if (configuration) {
442
+ this.configuration = configuration;
443
+ }
444
+ if (typeof this.configuration.basePath !== 'string') {
445
+ if (Array.isArray(basePath) && basePath.length > 0) {
446
+ basePath = basePath[0];
447
+ }
448
+ if (typeof basePath !== 'string') {
449
+ basePath = this.basePath;
450
+ }
451
+ this.configuration.basePath = basePath;
452
+ }
453
+ this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
454
+ }
455
+ // @ts-ignore
456
+ addToHttpParams(httpParams, value, key) {
457
+ if (typeof value === "object" && value instanceof Date === false) {
458
+ httpParams = this.addToHttpParamsRecursive(httpParams, value);
459
+ }
460
+ else {
461
+ httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
462
+ }
463
+ return httpParams;
464
+ }
465
+ addToHttpParamsRecursive(httpParams, value, key) {
466
+ if (value == null) {
467
+ return httpParams;
468
+ }
469
+ if (typeof value === "object") {
470
+ if (Array.isArray(value)) {
471
+ value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
472
+ }
473
+ else if (value instanceof Date) {
474
+ if (key != null) {
475
+ httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
476
+ }
477
+ else {
478
+ throw Error("key may not be null if value is Date");
479
+ }
480
+ }
481
+ else {
482
+ Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
483
+ }
484
+ }
485
+ else if (key != null) {
486
+ httpParams = httpParams.append(key, value);
487
+ }
488
+ else {
489
+ throw Error("key may not be null if value is not object or array");
490
+ }
491
+ return httpParams;
492
+ }
493
+ getChatPendingCount(observe = 'body', reportProgress = false, options) {
494
+ let localVarHeaders = this.defaultHeaders;
495
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
496
+ if (localVarHttpHeaderAcceptSelected === undefined) {
497
+ // to determine the Accept header
498
+ const httpHeaderAccepts = [
499
+ 'application/json'
500
+ ];
501
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
502
+ }
503
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
504
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
505
+ }
506
+ let localVarHttpContext = options && options.context;
507
+ if (localVarHttpContext === undefined) {
508
+ localVarHttpContext = new HttpContext();
509
+ }
510
+ let localVarTransferCache = options && options.transferCache;
511
+ if (localVarTransferCache === undefined) {
512
+ localVarTransferCache = true;
513
+ }
514
+ let responseType_ = 'json';
515
+ if (localVarHttpHeaderAcceptSelected) {
516
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
517
+ responseType_ = 'text';
518
+ }
519
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
520
+ responseType_ = 'json';
521
+ }
522
+ else {
523
+ responseType_ = 'blob';
524
+ }
525
+ }
526
+ let localVarPath = `/user/chatCount`;
527
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
528
+ context: localVarHttpContext,
529
+ responseType: responseType_,
530
+ withCredentials: this.configuration.withCredentials,
531
+ headers: localVarHeaders,
532
+ observe: observe,
533
+ transferCache: localVarTransferCache,
534
+ reportProgress: reportProgress
535
+ });
536
+ }
537
+ getMailPendingCount(observe = 'body', reportProgress = false, options) {
538
+ let localVarHeaders = this.defaultHeaders;
539
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
540
+ if (localVarHttpHeaderAcceptSelected === undefined) {
541
+ // to determine the Accept header
542
+ const httpHeaderAccepts = [
543
+ 'application/json'
544
+ ];
545
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
546
+ }
547
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
548
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
549
+ }
550
+ let localVarHttpContext = options && options.context;
551
+ if (localVarHttpContext === undefined) {
552
+ localVarHttpContext = new HttpContext();
553
+ }
554
+ let localVarTransferCache = options && options.transferCache;
555
+ if (localVarTransferCache === undefined) {
556
+ localVarTransferCache = true;
557
+ }
558
+ let responseType_ = 'json';
559
+ if (localVarHttpHeaderAcceptSelected) {
560
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
561
+ responseType_ = 'text';
562
+ }
563
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
564
+ responseType_ = 'json';
565
+ }
566
+ else {
567
+ responseType_ = 'blob';
568
+ }
569
+ }
570
+ let localVarPath = `/user/mailCount`;
571
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
572
+ context: localVarHttpContext,
573
+ responseType: responseType_,
574
+ withCredentials: this.configuration.withCredentials,
575
+ headers: localVarHeaders,
576
+ observe: observe,
577
+ transferCache: localVarTransferCache,
578
+ reportProgress: reportProgress
579
+ });
580
+ }
581
+ getUserInfo(observe = 'body', reportProgress = false, options) {
582
+ let localVarHeaders = this.defaultHeaders;
583
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
584
+ if (localVarHttpHeaderAcceptSelected === undefined) {
585
+ // to determine the Accept header
586
+ const httpHeaderAccepts = [
587
+ 'application/json'
588
+ ];
589
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
590
+ }
591
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
592
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
593
+ }
594
+ let localVarHttpContext = options && options.context;
595
+ if (localVarHttpContext === undefined) {
596
+ localVarHttpContext = new HttpContext();
597
+ }
598
+ let localVarTransferCache = options && options.transferCache;
599
+ if (localVarTransferCache === undefined) {
600
+ localVarTransferCache = true;
601
+ }
602
+ let responseType_ = 'json';
603
+ if (localVarHttpHeaderAcceptSelected) {
604
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
605
+ responseType_ = 'text';
606
+ }
607
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
608
+ responseType_ = 'json';
609
+ }
610
+ else {
611
+ responseType_ = 'blob';
612
+ }
613
+ }
614
+ let localVarPath = `/user/me`;
615
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
616
+ context: localVarHttpContext,
617
+ responseType: responseType_,
618
+ withCredentials: this.configuration.withCredentials,
619
+ headers: localVarHeaders,
620
+ observe: observe,
621
+ transferCache: localVarTransferCache,
622
+ reportProgress: reportProgress
623
+ });
624
+ }
625
+ setNewFeaturesVisibility(setNewFeaturesVisibilityCommand, observe = 'body', reportProgress = false, options) {
626
+ let localVarHeaders = this.defaultHeaders;
627
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
628
+ if (localVarHttpHeaderAcceptSelected === undefined) {
629
+ // to determine the Accept header
630
+ const httpHeaderAccepts = [
631
+ 'application/json'
632
+ ];
633
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
634
+ }
635
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
636
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
637
+ }
638
+ let localVarHttpContext = options && options.context;
639
+ if (localVarHttpContext === undefined) {
640
+ localVarHttpContext = new HttpContext();
641
+ }
642
+ let localVarTransferCache = options && options.transferCache;
643
+ if (localVarTransferCache === undefined) {
644
+ localVarTransferCache = true;
645
+ }
646
+ // to determine the Content-Type header
647
+ const consumes = [
648
+ 'application/json'
649
+ ];
650
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
651
+ if (httpContentTypeSelected !== undefined) {
652
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
653
+ }
654
+ let responseType_ = 'json';
655
+ if (localVarHttpHeaderAcceptSelected) {
656
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
657
+ responseType_ = 'text';
658
+ }
659
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
660
+ responseType_ = 'json';
661
+ }
662
+ else {
663
+ responseType_ = 'blob';
664
+ }
665
+ }
666
+ let localVarPath = `/user/me/settings/newfeaturevisibility`;
667
+ return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, {
668
+ context: localVarHttpContext,
669
+ body: setNewFeaturesVisibilityCommand,
670
+ responseType: responseType_,
671
+ withCredentials: this.configuration.withCredentials,
672
+ headers: localVarHeaders,
673
+ observe: observe,
674
+ transferCache: localVarTransferCache,
675
+ reportProgress: reportProgress
676
+ });
677
+ }
678
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: UserService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
679
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: UserService, providedIn: 'root' });
680
+ }
681
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: UserService, decorators: [{
682
+ type: Injectable,
683
+ args: [{
684
+ providedIn: 'root'
685
+ }]
686
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
687
+ type: Optional
688
+ }, {
689
+ type: Inject,
690
+ args: [BASE_PATH]
691
+ }] }, { type: Configuration, decorators: [{
692
+ type: Optional
693
+ }] }] });
694
+
695
+ const APIS = [HealthService, PermissionsService, UserService];
696
+
697
+ /**
698
+ * Wms.API.Client
699
+ * WMS API Client for Angular applications
700
+ *
701
+ * The version of the OpenAPI document: v1
702
+ *
703
+ *
704
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
705
+ * https://openapi-generator.tech
706
+ * Do not edit the class manually.
707
+ */
708
+
709
+ /**
710
+ * Wms.API.Client
711
+ * WMS API Client for Angular applications
712
+ *
713
+ * The version of the OpenAPI document: v1
714
+ *
715
+ *
716
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
717
+ * https://openapi-generator.tech
718
+ * Do not edit the class manually.
719
+ */
720
+
721
+ /**
722
+ * Wms.API.Client
723
+ * WMS API Client for Angular applications
724
+ *
725
+ * The version of the OpenAPI document: v1
726
+ *
727
+ *
728
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
729
+ * https://openapi-generator.tech
730
+ * Do not edit the class manually.
731
+ */
732
+
733
+ /**
734
+ * Wms.API.Client
735
+ * WMS API Client for Angular applications
736
+ *
737
+ * The version of the OpenAPI document: v1
738
+ *
739
+ *
740
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
741
+ * https://openapi-generator.tech
742
+ * Do not edit the class manually.
743
+ */
744
+
745
+ /**
746
+ * Wms.API.Client
747
+ * WMS API Client for Angular applications
748
+ *
749
+ * The version of the OpenAPI document: v1
750
+ *
751
+ *
752
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
753
+ * https://openapi-generator.tech
754
+ * Do not edit the class manually.
755
+ */
756
+
757
+ /**
758
+ * Wms.API.Client
759
+ * WMS API Client for Angular applications
760
+ *
761
+ * The version of the OpenAPI document: v1
762
+ *
763
+ *
764
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
765
+ * https://openapi-generator.tech
766
+ * Do not edit the class manually.
767
+ */
768
+
769
+ class ApiModule {
770
+ static forRoot(configurationFactory) {
771
+ return {
772
+ ngModule: ApiModule,
773
+ providers: [{ provide: Configuration, useFactory: configurationFactory }]
774
+ };
775
+ }
776
+ constructor(parentModule, http) {
777
+ if (parentModule) {
778
+ throw new Error('ApiModule is already loaded. Import in your base AppModule only.');
779
+ }
780
+ if (!http) {
781
+ throw new Error('You need to import the HttpClientModule in your AppModule! \n' +
782
+ 'See also https://github.com/angular/angular/issues/20575');
783
+ }
784
+ }
785
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: ApiModule, deps: [{ token: ApiModule, optional: true, skipSelf: true }, { token: i1.HttpClient, optional: true }], target: i0.ɵɵFactoryTarget.NgModule });
786
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.1.3", ngImport: i0, type: ApiModule });
787
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: ApiModule });
788
+ }
789
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: ApiModule, decorators: [{
790
+ type: NgModule,
791
+ args: [{
792
+ imports: [],
793
+ declarations: [],
794
+ exports: [],
795
+ providers: []
796
+ }]
797
+ }], ctorParameters: () => [{ type: ApiModule, decorators: [{
798
+ type: Optional
799
+ }, {
800
+ type: SkipSelf
801
+ }] }, { type: i1.HttpClient, decorators: [{
802
+ type: Optional
803
+ }] }] });
804
+
805
+ /**
806
+ * Generated bundle index. Do not edit.
807
+ */
808
+
809
+ export { APIS, ApiModule, BASE_PATH, COLLECTION_FORMATS, Configuration, HealthService, PermissionsService, UserService };
810
+ //# sourceMappingURL=indigina-wms-api.mjs.map