@indigina/wms-api 0.0.34 → 0.0.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/api/{reports.service.d.ts → analytics.service.d.ts} +95 -48
- package/api/api.d.ts +5 -3
- package/api/summary.service.d.ts +37 -0
- package/esm2022/api/analytics.service.mjs +570 -0
- package/esm2022/api/api.mjs +6 -4
- package/esm2022/api/summary.service.mjs +142 -0
- package/esm2022/model/embedReport.mjs +1 -1
- package/esm2022/model/group.mjs +2 -0
- package/esm2022/model/models.mjs +3 -9
- package/esm2022/model/report.mjs +12 -0
- package/fesm2022/indigina-wms-api.mjs +536 -260
- package/fesm2022/indigina-wms-api.mjs.map +1 -1
- package/model/embedReport.d.ts +1 -1
- package/model/{column.d.ts → group.d.ts} +9 -4
- package/model/models.d.ts +2 -8
- package/model/{embedReportInfoModel.d.ts → report.d.ts} +12 -12
- package/package.json +1 -1
- package/esm2022/api/reports.service.mjs +0 -423
- package/esm2022/model/column.mjs +0 -2
- package/esm2022/model/dashboardColumn.mjs +0 -2
- package/esm2022/model/dashboardReportGroup.mjs +0 -2
- package/esm2022/model/dashboardReports.mjs +0 -2
- package/esm2022/model/embedReportInfoModel.mjs +0 -2
- package/esm2022/model/powerBiTenant.mjs +0 -15
- package/esm2022/model/reportResponse.mjs +0 -2
- package/esm2022/model/reportTabs.mjs +0 -2
- package/model/dashboardColumn.d.ts +0 -15
- package/model/dashboardReportGroup.d.ts +0 -20
- package/model/dashboardReports.d.ts +0 -14
- package/model/powerBiTenant.d.ts +0 -15
- package/model/reportResponse.d.ts +0 -15
- package/model/reportTabs.d.ts +0 -15
|
@@ -162,7 +162,7 @@ class Configuration {
|
|
|
162
162
|
* Do not edit the class manually.
|
|
163
163
|
*/
|
|
164
164
|
/* tslint:disable:no-unused-variable member-ordering */
|
|
165
|
-
class
|
|
165
|
+
class AnalyticsService {
|
|
166
166
|
httpClient;
|
|
167
167
|
basePath = 'http://localhost';
|
|
168
168
|
defaultHeaders = new HttpHeaders();
|
|
@@ -223,7 +223,10 @@ class DcsService {
|
|
|
223
223
|
}
|
|
224
224
|
return httpParams;
|
|
225
225
|
}
|
|
226
|
-
|
|
226
|
+
createReport(report, observe = 'body', reportProgress = false, options) {
|
|
227
|
+
if (report === null || report === undefined) {
|
|
228
|
+
throw new Error('Required parameter report was null or undefined when calling createReport.');
|
|
229
|
+
}
|
|
227
230
|
let localVarHeaders = this.defaultHeaders;
|
|
228
231
|
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
229
232
|
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
@@ -244,6 +247,14 @@ class DcsService {
|
|
|
244
247
|
if (localVarTransferCache === undefined) {
|
|
245
248
|
localVarTransferCache = true;
|
|
246
249
|
}
|
|
250
|
+
// to determine the Content-Type header
|
|
251
|
+
const consumes = [
|
|
252
|
+
'application/json'
|
|
253
|
+
];
|
|
254
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
255
|
+
if (httpContentTypeSelected !== undefined) {
|
|
256
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
257
|
+
}
|
|
247
258
|
let responseType_ = 'json';
|
|
248
259
|
if (localVarHttpHeaderAcceptSelected) {
|
|
249
260
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
@@ -256,9 +267,10 @@ class DcsService {
|
|
|
256
267
|
responseType_ = 'blob';
|
|
257
268
|
}
|
|
258
269
|
}
|
|
259
|
-
let localVarPath = `/
|
|
260
|
-
return this.httpClient.request('
|
|
270
|
+
let localVarPath = `/analytics/reports`;
|
|
271
|
+
return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, {
|
|
261
272
|
context: localVarHttpContext,
|
|
273
|
+
body: report,
|
|
262
274
|
responseType: responseType_,
|
|
263
275
|
withCredentials: this.configuration.withCredentials,
|
|
264
276
|
headers: localVarHeaders,
|
|
@@ -267,7 +279,52 @@ class DcsService {
|
|
|
267
279
|
reportProgress: reportProgress
|
|
268
280
|
});
|
|
269
281
|
}
|
|
270
|
-
|
|
282
|
+
deleteReport(id, observe = 'body', reportProgress = false, options) {
|
|
283
|
+
if (id === null || id === undefined) {
|
|
284
|
+
throw new Error('Required parameter id was null or undefined when calling deleteReport.');
|
|
285
|
+
}
|
|
286
|
+
let localVarHeaders = this.defaultHeaders;
|
|
287
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
288
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
289
|
+
// to determine the Accept header
|
|
290
|
+
const httpHeaderAccepts = [];
|
|
291
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
292
|
+
}
|
|
293
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
294
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
295
|
+
}
|
|
296
|
+
let localVarHttpContext = options && options.context;
|
|
297
|
+
if (localVarHttpContext === undefined) {
|
|
298
|
+
localVarHttpContext = new HttpContext();
|
|
299
|
+
}
|
|
300
|
+
let localVarTransferCache = options && options.transferCache;
|
|
301
|
+
if (localVarTransferCache === undefined) {
|
|
302
|
+
localVarTransferCache = true;
|
|
303
|
+
}
|
|
304
|
+
let responseType_ = 'json';
|
|
305
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
306
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
307
|
+
responseType_ = 'text';
|
|
308
|
+
}
|
|
309
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
310
|
+
responseType_ = 'json';
|
|
311
|
+
}
|
|
312
|
+
else {
|
|
313
|
+
responseType_ = 'blob';
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
let localVarPath = `/analytics/reports/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: undefined })}`;
|
|
317
|
+
return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, {
|
|
318
|
+
context: localVarHttpContext,
|
|
319
|
+
responseType: responseType_,
|
|
320
|
+
withCredentials: this.configuration.withCredentials,
|
|
321
|
+
headers: localVarHeaders,
|
|
322
|
+
observe: observe,
|
|
323
|
+
transferCache: localVarTransferCache,
|
|
324
|
+
reportProgress: reportProgress
|
|
325
|
+
});
|
|
326
|
+
}
|
|
327
|
+
getCastoreWeeklyReports(observe = 'body', reportProgress = false, options) {
|
|
271
328
|
let localVarHeaders = this.defaultHeaders;
|
|
272
329
|
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
273
330
|
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
@@ -300,7 +357,7 @@ class DcsService {
|
|
|
300
357
|
responseType_ = 'blob';
|
|
301
358
|
}
|
|
302
359
|
}
|
|
303
|
-
let localVarPath = `/
|
|
360
|
+
let localVarPath = `/analytics/castore-weekly`;
|
|
304
361
|
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
305
362
|
context: localVarHttpContext,
|
|
306
363
|
responseType: responseType_,
|
|
@@ -311,7 +368,23 @@ class DcsService {
|
|
|
311
368
|
reportProgress: reportProgress
|
|
312
369
|
});
|
|
313
370
|
}
|
|
314
|
-
|
|
371
|
+
getEmbedded(id, workspaceId, powerBiTenant, observe = 'body', reportProgress = false, options) {
|
|
372
|
+
if (id === null || id === undefined) {
|
|
373
|
+
throw new Error('Required parameter id was null or undefined when calling getEmbedded.');
|
|
374
|
+
}
|
|
375
|
+
if (workspaceId === null || workspaceId === undefined) {
|
|
376
|
+
throw new Error('Required parameter workspaceId was null or undefined when calling getEmbedded.');
|
|
377
|
+
}
|
|
378
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
379
|
+
if (id !== undefined && id !== null) {
|
|
380
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, id, 'id');
|
|
381
|
+
}
|
|
382
|
+
if (workspaceId !== undefined && workspaceId !== null) {
|
|
383
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, workspaceId, 'workspaceId');
|
|
384
|
+
}
|
|
385
|
+
if (powerBiTenant !== undefined && powerBiTenant !== null) {
|
|
386
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, powerBiTenant, 'powerBiTenant');
|
|
387
|
+
}
|
|
315
388
|
let localVarHeaders = this.defaultHeaders;
|
|
316
389
|
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
317
390
|
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
@@ -344,9 +417,10 @@ class DcsService {
|
|
|
344
417
|
responseType_ = 'blob';
|
|
345
418
|
}
|
|
346
419
|
}
|
|
347
|
-
let localVarPath = `/
|
|
420
|
+
let localVarPath = `/analytics/embed`;
|
|
348
421
|
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
349
422
|
context: localVarHttpContext,
|
|
423
|
+
params: localVarQueryParameters,
|
|
350
424
|
responseType: responseType_,
|
|
351
425
|
withCredentials: this.configuration.withCredentials,
|
|
352
426
|
headers: localVarHeaders,
|
|
@@ -355,7 +429,14 @@ class DcsService {
|
|
|
355
429
|
reportProgress: reportProgress
|
|
356
430
|
});
|
|
357
431
|
}
|
|
358
|
-
|
|
432
|
+
getGroupReports(reportName, observe = 'body', reportProgress = false, options) {
|
|
433
|
+
if (reportName === null || reportName === undefined) {
|
|
434
|
+
throw new Error('Required parameter reportName was null or undefined when calling getGroupReports.');
|
|
435
|
+
}
|
|
436
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
437
|
+
if (reportName !== undefined && reportName !== null) {
|
|
438
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, reportName, 'reportName');
|
|
439
|
+
}
|
|
359
440
|
let localVarHeaders = this.defaultHeaders;
|
|
360
441
|
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
361
442
|
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
@@ -388,9 +469,10 @@ class DcsService {
|
|
|
388
469
|
responseType_ = 'blob';
|
|
389
470
|
}
|
|
390
471
|
}
|
|
391
|
-
let localVarPath = `/
|
|
472
|
+
let localVarPath = `/analytics/group-reports`;
|
|
392
473
|
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
393
474
|
context: localVarHttpContext,
|
|
475
|
+
params: localVarQueryParameters,
|
|
394
476
|
responseType: responseType_,
|
|
395
477
|
withCredentials: this.configuration.withCredentials,
|
|
396
478
|
headers: localVarHeaders,
|
|
@@ -399,102 +481,59 @@ class DcsService {
|
|
|
399
481
|
reportProgress: reportProgress
|
|
400
482
|
});
|
|
401
483
|
}
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: DcsService, decorators: [{
|
|
406
|
-
type: Injectable,
|
|
407
|
-
args: [{
|
|
408
|
-
providedIn: 'root'
|
|
409
|
-
}]
|
|
410
|
-
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
411
|
-
type: Optional
|
|
412
|
-
}, {
|
|
413
|
-
type: Inject,
|
|
414
|
-
args: [BASE_PATH]
|
|
415
|
-
}] }, { type: Configuration, decorators: [{
|
|
416
|
-
type: Optional
|
|
417
|
-
}] }] });
|
|
418
|
-
|
|
419
|
-
/**
|
|
420
|
-
* Wms.API.Client
|
|
421
|
-
* WMS API Client for Angular applications
|
|
422
|
-
*
|
|
423
|
-
*
|
|
424
|
-
*
|
|
425
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
426
|
-
* https://openapi-generator.tech
|
|
427
|
-
* Do not edit the class manually.
|
|
428
|
-
*/
|
|
429
|
-
/* tslint:disable:no-unused-variable member-ordering */
|
|
430
|
-
class HealthService {
|
|
431
|
-
httpClient;
|
|
432
|
-
basePath = 'http://localhost';
|
|
433
|
-
defaultHeaders = new HttpHeaders();
|
|
434
|
-
configuration = new Configuration();
|
|
435
|
-
encoder;
|
|
436
|
-
constructor(httpClient, basePath, configuration) {
|
|
437
|
-
this.httpClient = httpClient;
|
|
438
|
-
if (configuration) {
|
|
439
|
-
this.configuration = configuration;
|
|
484
|
+
getReportById(id, observe = 'body', reportProgress = false, options) {
|
|
485
|
+
if (id === null || id === undefined) {
|
|
486
|
+
throw new Error('Required parameter id was null or undefined when calling getReportById.');
|
|
440
487
|
}
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
this.configuration.basePath = basePath;
|
|
488
|
+
let localVarHeaders = this.defaultHeaders;
|
|
489
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
490
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
491
|
+
// to determine the Accept header
|
|
492
|
+
const httpHeaderAccepts = [
|
|
493
|
+
'application/json'
|
|
494
|
+
];
|
|
495
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
450
496
|
}
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
// @ts-ignore
|
|
454
|
-
addToHttpParams(httpParams, value, key) {
|
|
455
|
-
if (typeof value === "object" && value instanceof Date === false) {
|
|
456
|
-
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
497
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
498
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
457
499
|
}
|
|
458
|
-
|
|
459
|
-
|
|
500
|
+
let localVarHttpContext = options && options.context;
|
|
501
|
+
if (localVarHttpContext === undefined) {
|
|
502
|
+
localVarHttpContext = new HttpContext();
|
|
460
503
|
}
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
if (value == null) {
|
|
465
|
-
return httpParams;
|
|
504
|
+
let localVarTransferCache = options && options.transferCache;
|
|
505
|
+
if (localVarTransferCache === undefined) {
|
|
506
|
+
localVarTransferCache = true;
|
|
466
507
|
}
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
508
|
+
let responseType_ = 'json';
|
|
509
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
510
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
511
|
+
responseType_ = 'text';
|
|
470
512
|
}
|
|
471
|
-
else if (
|
|
472
|
-
|
|
473
|
-
httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
|
|
474
|
-
}
|
|
475
|
-
else {
|
|
476
|
-
throw Error("key may not be null if value is Date");
|
|
477
|
-
}
|
|
513
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
514
|
+
responseType_ = 'json';
|
|
478
515
|
}
|
|
479
516
|
else {
|
|
480
|
-
|
|
517
|
+
responseType_ = 'blob';
|
|
481
518
|
}
|
|
482
519
|
}
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
520
|
+
let localVarPath = `/analytics/reports/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: undefined })}`;
|
|
521
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
522
|
+
context: localVarHttpContext,
|
|
523
|
+
responseType: responseType_,
|
|
524
|
+
withCredentials: this.configuration.withCredentials,
|
|
525
|
+
headers: localVarHeaders,
|
|
526
|
+
observe: observe,
|
|
527
|
+
transferCache: localVarTransferCache,
|
|
528
|
+
reportProgress: reportProgress
|
|
529
|
+
});
|
|
490
530
|
}
|
|
491
|
-
|
|
531
|
+
getSohoManifestReports(observe = 'body', reportProgress = false, options) {
|
|
492
532
|
let localVarHeaders = this.defaultHeaders;
|
|
493
533
|
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
494
534
|
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
495
535
|
// to determine the Accept header
|
|
496
536
|
const httpHeaderAccepts = [
|
|
497
|
-
'text/plain',
|
|
498
537
|
'application/json'
|
|
499
538
|
];
|
|
500
539
|
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
@@ -522,7 +561,7 @@ class HealthService {
|
|
|
522
561
|
responseType_ = 'blob';
|
|
523
562
|
}
|
|
524
563
|
}
|
|
525
|
-
let localVarPath = `/
|
|
564
|
+
let localVarPath = `/analytics/soho-manifest`;
|
|
526
565
|
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
527
566
|
context: localVarHttpContext,
|
|
528
567
|
responseType: responseType_,
|
|
@@ -533,96 +572,77 @@ class HealthService {
|
|
|
533
572
|
reportProgress: reportProgress
|
|
534
573
|
});
|
|
535
574
|
}
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: HealthService, decorators: [{
|
|
540
|
-
type: Injectable,
|
|
541
|
-
args: [{
|
|
542
|
-
providedIn: 'root'
|
|
543
|
-
}]
|
|
544
|
-
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
545
|
-
type: Optional
|
|
546
|
-
}, {
|
|
547
|
-
type: Inject,
|
|
548
|
-
args: [BASE_PATH]
|
|
549
|
-
}] }, { type: Configuration, decorators: [{
|
|
550
|
-
type: Optional
|
|
551
|
-
}] }] });
|
|
552
|
-
|
|
553
|
-
/**
|
|
554
|
-
* Wms.API.Client
|
|
555
|
-
* WMS API Client for Angular applications
|
|
556
|
-
*
|
|
557
|
-
*
|
|
558
|
-
*
|
|
559
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
560
|
-
* https://openapi-generator.tech
|
|
561
|
-
* Do not edit the class manually.
|
|
562
|
-
*/
|
|
563
|
-
/* tslint:disable:no-unused-variable member-ordering */
|
|
564
|
-
class PermissionsService {
|
|
565
|
-
httpClient;
|
|
566
|
-
basePath = 'http://localhost';
|
|
567
|
-
defaultHeaders = new HttpHeaders();
|
|
568
|
-
configuration = new Configuration();
|
|
569
|
-
encoder;
|
|
570
|
-
constructor(httpClient, basePath, configuration) {
|
|
571
|
-
this.httpClient = httpClient;
|
|
572
|
-
if (configuration) {
|
|
573
|
-
this.configuration = configuration;
|
|
575
|
+
updateGroupReports(reportName, group, observe = 'body', reportProgress = false, options) {
|
|
576
|
+
if (reportName === null || reportName === undefined) {
|
|
577
|
+
throw new Error('Required parameter reportName was null or undefined when calling updateGroupReports.');
|
|
574
578
|
}
|
|
575
|
-
if (
|
|
576
|
-
|
|
577
|
-
if (firstBasePath != undefined) {
|
|
578
|
-
basePath = firstBasePath;
|
|
579
|
-
}
|
|
580
|
-
if (typeof basePath !== 'string') {
|
|
581
|
-
basePath = this.basePath;
|
|
582
|
-
}
|
|
583
|
-
this.configuration.basePath = basePath;
|
|
579
|
+
if (group === null || group === undefined) {
|
|
580
|
+
throw new Error('Required parameter group was null or undefined when calling updateGroupReports.');
|
|
584
581
|
}
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
addToHttpParams(httpParams, value, key) {
|
|
589
|
-
if (typeof value === "object" && value instanceof Date === false) {
|
|
590
|
-
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
582
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
583
|
+
if (reportName !== undefined && reportName !== null) {
|
|
584
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, reportName, 'reportName');
|
|
591
585
|
}
|
|
592
|
-
|
|
593
|
-
|
|
586
|
+
let localVarHeaders = this.defaultHeaders;
|
|
587
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
588
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
589
|
+
// to determine the Accept header
|
|
590
|
+
const httpHeaderAccepts = [
|
|
591
|
+
'application/json'
|
|
592
|
+
];
|
|
593
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
594
594
|
}
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
addToHttpParamsRecursive(httpParams, value, key) {
|
|
598
|
-
if (value == null) {
|
|
599
|
-
return httpParams;
|
|
595
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
596
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
600
597
|
}
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
598
|
+
let localVarHttpContext = options && options.context;
|
|
599
|
+
if (localVarHttpContext === undefined) {
|
|
600
|
+
localVarHttpContext = new HttpContext();
|
|
601
|
+
}
|
|
602
|
+
let localVarTransferCache = options && options.transferCache;
|
|
603
|
+
if (localVarTransferCache === undefined) {
|
|
604
|
+
localVarTransferCache = true;
|
|
605
|
+
}
|
|
606
|
+
// to determine the Content-Type header
|
|
607
|
+
const consumes = [
|
|
608
|
+
'application/json'
|
|
609
|
+
];
|
|
610
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
611
|
+
if (httpContentTypeSelected !== undefined) {
|
|
612
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
613
|
+
}
|
|
614
|
+
let responseType_ = 'json';
|
|
615
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
616
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
617
|
+
responseType_ = 'text';
|
|
604
618
|
}
|
|
605
|
-
else if (
|
|
606
|
-
|
|
607
|
-
httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
|
|
608
|
-
}
|
|
609
|
-
else {
|
|
610
|
-
throw Error("key may not be null if value is Date");
|
|
611
|
-
}
|
|
619
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
620
|
+
responseType_ = 'json';
|
|
612
621
|
}
|
|
613
622
|
else {
|
|
614
|
-
|
|
623
|
+
responseType_ = 'blob';
|
|
615
624
|
}
|
|
616
625
|
}
|
|
617
|
-
|
|
618
|
-
|
|
626
|
+
let localVarPath = `/analytics/group-reports`;
|
|
627
|
+
return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, {
|
|
628
|
+
context: localVarHttpContext,
|
|
629
|
+
body: group,
|
|
630
|
+
params: localVarQueryParameters,
|
|
631
|
+
responseType: responseType_,
|
|
632
|
+
withCredentials: this.configuration.withCredentials,
|
|
633
|
+
headers: localVarHeaders,
|
|
634
|
+
observe: observe,
|
|
635
|
+
transferCache: localVarTransferCache,
|
|
636
|
+
reportProgress: reportProgress
|
|
637
|
+
});
|
|
638
|
+
}
|
|
639
|
+
updateReport(id, report, observe = 'body', reportProgress = false, options) {
|
|
640
|
+
if (id === null || id === undefined) {
|
|
641
|
+
throw new Error('Required parameter id was null or undefined when calling updateReport.');
|
|
619
642
|
}
|
|
620
|
-
|
|
621
|
-
throw Error(
|
|
643
|
+
if (report === null || report === undefined) {
|
|
644
|
+
throw new Error('Required parameter report was null or undefined when calling updateReport.');
|
|
622
645
|
}
|
|
623
|
-
return httpParams;
|
|
624
|
-
}
|
|
625
|
-
getUserPermissions(observe = 'body', reportProgress = false, options) {
|
|
626
646
|
let localVarHeaders = this.defaultHeaders;
|
|
627
647
|
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
628
648
|
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
@@ -643,6 +663,14 @@ class PermissionsService {
|
|
|
643
663
|
if (localVarTransferCache === undefined) {
|
|
644
664
|
localVarTransferCache = true;
|
|
645
665
|
}
|
|
666
|
+
// to determine the Content-Type header
|
|
667
|
+
const consumes = [
|
|
668
|
+
'application/json'
|
|
669
|
+
];
|
|
670
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
671
|
+
if (httpContentTypeSelected !== undefined) {
|
|
672
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
673
|
+
}
|
|
646
674
|
let responseType_ = 'json';
|
|
647
675
|
if (localVarHttpHeaderAcceptSelected) {
|
|
648
676
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
@@ -655,9 +683,10 @@ class PermissionsService {
|
|
|
655
683
|
responseType_ = 'blob';
|
|
656
684
|
}
|
|
657
685
|
}
|
|
658
|
-
let localVarPath = `/
|
|
659
|
-
return this.httpClient.request('
|
|
686
|
+
let localVarPath = `/analytics/reports/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: undefined })}`;
|
|
687
|
+
return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, {
|
|
660
688
|
context: localVarHttpContext,
|
|
689
|
+
body: report,
|
|
661
690
|
responseType: responseType_,
|
|
662
691
|
withCredentials: this.configuration.withCredentials,
|
|
663
692
|
headers: localVarHeaders,
|
|
@@ -666,10 +695,10 @@ class PermissionsService {
|
|
|
666
695
|
reportProgress: reportProgress
|
|
667
696
|
});
|
|
668
697
|
}
|
|
669
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type:
|
|
670
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type:
|
|
698
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: AnalyticsService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
699
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: AnalyticsService, providedIn: 'root' });
|
|
671
700
|
}
|
|
672
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type:
|
|
701
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: AnalyticsService, decorators: [{
|
|
673
702
|
type: Injectable,
|
|
674
703
|
args: [{
|
|
675
704
|
providedIn: 'root'
|
|
@@ -694,7 +723,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImpor
|
|
|
694
723
|
* Do not edit the class manually.
|
|
695
724
|
*/
|
|
696
725
|
/* tslint:disable:no-unused-variable member-ordering */
|
|
697
|
-
class
|
|
726
|
+
class DcsService {
|
|
698
727
|
httpClient;
|
|
699
728
|
basePath = 'http://localhost';
|
|
700
729
|
defaultHeaders = new HttpHeaders();
|
|
@@ -755,7 +784,51 @@ class ReportsService {
|
|
|
755
784
|
}
|
|
756
785
|
return httpParams;
|
|
757
786
|
}
|
|
758
|
-
|
|
787
|
+
getCountingSummary(observe = 'body', reportProgress = false, options) {
|
|
788
|
+
let localVarHeaders = this.defaultHeaders;
|
|
789
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
790
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
791
|
+
// to determine the Accept header
|
|
792
|
+
const httpHeaderAccepts = [
|
|
793
|
+
'application/json'
|
|
794
|
+
];
|
|
795
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
796
|
+
}
|
|
797
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
798
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
799
|
+
}
|
|
800
|
+
let localVarHttpContext = options && options.context;
|
|
801
|
+
if (localVarHttpContext === undefined) {
|
|
802
|
+
localVarHttpContext = new HttpContext();
|
|
803
|
+
}
|
|
804
|
+
let localVarTransferCache = options && options.transferCache;
|
|
805
|
+
if (localVarTransferCache === undefined) {
|
|
806
|
+
localVarTransferCache = true;
|
|
807
|
+
}
|
|
808
|
+
let responseType_ = 'json';
|
|
809
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
810
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
811
|
+
responseType_ = 'text';
|
|
812
|
+
}
|
|
813
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
814
|
+
responseType_ = 'json';
|
|
815
|
+
}
|
|
816
|
+
else {
|
|
817
|
+
responseType_ = 'blob';
|
|
818
|
+
}
|
|
819
|
+
}
|
|
820
|
+
let localVarPath = `/dcs/counting/summary`;
|
|
821
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
822
|
+
context: localVarHttpContext,
|
|
823
|
+
responseType: responseType_,
|
|
824
|
+
withCredentials: this.configuration.withCredentials,
|
|
825
|
+
headers: localVarHeaders,
|
|
826
|
+
observe: observe,
|
|
827
|
+
transferCache: localVarTransferCache,
|
|
828
|
+
reportProgress: reportProgress
|
|
829
|
+
});
|
|
830
|
+
}
|
|
831
|
+
getDispatchSummary(observe = 'body', reportProgress = false, options) {
|
|
759
832
|
let localVarHeaders = this.defaultHeaders;
|
|
760
833
|
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
761
834
|
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
@@ -788,7 +861,7 @@ class ReportsService {
|
|
|
788
861
|
responseType_ = 'blob';
|
|
789
862
|
}
|
|
790
863
|
}
|
|
791
|
-
let localVarPath = `/
|
|
864
|
+
let localVarPath = `/dcs/dispatches/summary`;
|
|
792
865
|
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
793
866
|
context: localVarHttpContext,
|
|
794
867
|
responseType: responseType_,
|
|
@@ -799,7 +872,7 @@ class ReportsService {
|
|
|
799
872
|
reportProgress: reportProgress
|
|
800
873
|
});
|
|
801
874
|
}
|
|
802
|
-
|
|
875
|
+
getReceivingSummary(observe = 'body', reportProgress = false, options) {
|
|
803
876
|
let localVarHeaders = this.defaultHeaders;
|
|
804
877
|
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
805
878
|
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
@@ -832,7 +905,7 @@ class ReportsService {
|
|
|
832
905
|
responseType_ = 'blob';
|
|
833
906
|
}
|
|
834
907
|
}
|
|
835
|
-
let localVarPath = `/
|
|
908
|
+
let localVarPath = `/dcs/receiving/summary`;
|
|
836
909
|
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
837
910
|
context: localVarHttpContext,
|
|
838
911
|
responseType: responseType_,
|
|
@@ -843,7 +916,7 @@ class ReportsService {
|
|
|
843
916
|
reportProgress: reportProgress
|
|
844
917
|
});
|
|
845
918
|
}
|
|
846
|
-
|
|
919
|
+
getReplenishmentSummary(observe = 'body', reportProgress = false, options) {
|
|
847
920
|
let localVarHeaders = this.defaultHeaders;
|
|
848
921
|
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
849
922
|
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
@@ -860,39 +933,129 @@ class ReportsService {
|
|
|
860
933
|
if (localVarHttpContext === undefined) {
|
|
861
934
|
localVarHttpContext = new HttpContext();
|
|
862
935
|
}
|
|
863
|
-
let localVarTransferCache = options && options.transferCache;
|
|
864
|
-
if (localVarTransferCache === undefined) {
|
|
865
|
-
localVarTransferCache = true;
|
|
936
|
+
let localVarTransferCache = options && options.transferCache;
|
|
937
|
+
if (localVarTransferCache === undefined) {
|
|
938
|
+
localVarTransferCache = true;
|
|
939
|
+
}
|
|
940
|
+
let responseType_ = 'json';
|
|
941
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
942
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
943
|
+
responseType_ = 'text';
|
|
944
|
+
}
|
|
945
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
946
|
+
responseType_ = 'json';
|
|
947
|
+
}
|
|
948
|
+
else {
|
|
949
|
+
responseType_ = 'blob';
|
|
950
|
+
}
|
|
951
|
+
}
|
|
952
|
+
let localVarPath = `/dcs/replenishment/summary`;
|
|
953
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
954
|
+
context: localVarHttpContext,
|
|
955
|
+
responseType: responseType_,
|
|
956
|
+
withCredentials: this.configuration.withCredentials,
|
|
957
|
+
headers: localVarHeaders,
|
|
958
|
+
observe: observe,
|
|
959
|
+
transferCache: localVarTransferCache,
|
|
960
|
+
reportProgress: reportProgress
|
|
961
|
+
});
|
|
962
|
+
}
|
|
963
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: DcsService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
964
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: DcsService, providedIn: 'root' });
|
|
965
|
+
}
|
|
966
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: DcsService, decorators: [{
|
|
967
|
+
type: Injectable,
|
|
968
|
+
args: [{
|
|
969
|
+
providedIn: 'root'
|
|
970
|
+
}]
|
|
971
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
972
|
+
type: Optional
|
|
973
|
+
}, {
|
|
974
|
+
type: Inject,
|
|
975
|
+
args: [BASE_PATH]
|
|
976
|
+
}] }, { type: Configuration, decorators: [{
|
|
977
|
+
type: Optional
|
|
978
|
+
}] }] });
|
|
979
|
+
|
|
980
|
+
/**
|
|
981
|
+
* Wms.API.Client
|
|
982
|
+
* WMS API Client for Angular applications
|
|
983
|
+
*
|
|
984
|
+
*
|
|
985
|
+
*
|
|
986
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
987
|
+
* https://openapi-generator.tech
|
|
988
|
+
* Do not edit the class manually.
|
|
989
|
+
*/
|
|
990
|
+
/* tslint:disable:no-unused-variable member-ordering */
|
|
991
|
+
class HealthService {
|
|
992
|
+
httpClient;
|
|
993
|
+
basePath = 'http://localhost';
|
|
994
|
+
defaultHeaders = new HttpHeaders();
|
|
995
|
+
configuration = new Configuration();
|
|
996
|
+
encoder;
|
|
997
|
+
constructor(httpClient, basePath, configuration) {
|
|
998
|
+
this.httpClient = httpClient;
|
|
999
|
+
if (configuration) {
|
|
1000
|
+
this.configuration = configuration;
|
|
1001
|
+
}
|
|
1002
|
+
if (typeof this.configuration.basePath !== 'string') {
|
|
1003
|
+
const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
|
|
1004
|
+
if (firstBasePath != undefined) {
|
|
1005
|
+
basePath = firstBasePath;
|
|
1006
|
+
}
|
|
1007
|
+
if (typeof basePath !== 'string') {
|
|
1008
|
+
basePath = this.basePath;
|
|
1009
|
+
}
|
|
1010
|
+
this.configuration.basePath = basePath;
|
|
1011
|
+
}
|
|
1012
|
+
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
1013
|
+
}
|
|
1014
|
+
// @ts-ignore
|
|
1015
|
+
addToHttpParams(httpParams, value, key) {
|
|
1016
|
+
if (typeof value === "object" && value instanceof Date === false) {
|
|
1017
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
1018
|
+
}
|
|
1019
|
+
else {
|
|
1020
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
|
|
1021
|
+
}
|
|
1022
|
+
return httpParams;
|
|
1023
|
+
}
|
|
1024
|
+
addToHttpParamsRecursive(httpParams, value, key) {
|
|
1025
|
+
if (value == null) {
|
|
1026
|
+
return httpParams;
|
|
866
1027
|
}
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
responseType_ = 'text';
|
|
1028
|
+
if (typeof value === "object") {
|
|
1029
|
+
if (Array.isArray(value)) {
|
|
1030
|
+
value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
|
|
871
1031
|
}
|
|
872
|
-
else if (
|
|
873
|
-
|
|
1032
|
+
else if (value instanceof Date) {
|
|
1033
|
+
if (key != null) {
|
|
1034
|
+
httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
|
|
1035
|
+
}
|
|
1036
|
+
else {
|
|
1037
|
+
throw Error("key may not be null if value is Date");
|
|
1038
|
+
}
|
|
874
1039
|
}
|
|
875
1040
|
else {
|
|
876
|
-
|
|
1041
|
+
Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
|
|
877
1042
|
}
|
|
878
1043
|
}
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
transferCache: localVarTransferCache,
|
|
887
|
-
reportProgress: reportProgress
|
|
888
|
-
});
|
|
1044
|
+
else if (key != null) {
|
|
1045
|
+
httpParams = httpParams.append(key, value);
|
|
1046
|
+
}
|
|
1047
|
+
else {
|
|
1048
|
+
throw Error("key may not be null if value is not object or array");
|
|
1049
|
+
}
|
|
1050
|
+
return httpParams;
|
|
889
1051
|
}
|
|
890
|
-
|
|
1052
|
+
getHealth(observe = 'body', reportProgress = false, options) {
|
|
891
1053
|
let localVarHeaders = this.defaultHeaders;
|
|
892
1054
|
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
893
1055
|
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
894
1056
|
// to determine the Accept header
|
|
895
1057
|
const httpHeaderAccepts = [
|
|
1058
|
+
'text/plain',
|
|
896
1059
|
'application/json'
|
|
897
1060
|
];
|
|
898
1061
|
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
@@ -920,7 +1083,7 @@ class ReportsService {
|
|
|
920
1083
|
responseType_ = 'blob';
|
|
921
1084
|
}
|
|
922
1085
|
}
|
|
923
|
-
let localVarPath = `/
|
|
1086
|
+
let localVarPath = `/health`;
|
|
924
1087
|
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
925
1088
|
context: localVarHttpContext,
|
|
926
1089
|
responseType: responseType_,
|
|
@@ -931,23 +1094,96 @@ class ReportsService {
|
|
|
931
1094
|
reportProgress: reportProgress
|
|
932
1095
|
});
|
|
933
1096
|
}
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
1097
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: HealthService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1098
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: HealthService, providedIn: 'root' });
|
|
1099
|
+
}
|
|
1100
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: HealthService, decorators: [{
|
|
1101
|
+
type: Injectable,
|
|
1102
|
+
args: [{
|
|
1103
|
+
providedIn: 'root'
|
|
1104
|
+
}]
|
|
1105
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1106
|
+
type: Optional
|
|
1107
|
+
}, {
|
|
1108
|
+
type: Inject,
|
|
1109
|
+
args: [BASE_PATH]
|
|
1110
|
+
}] }, { type: Configuration, decorators: [{
|
|
1111
|
+
type: Optional
|
|
1112
|
+
}] }] });
|
|
1113
|
+
|
|
1114
|
+
/**
|
|
1115
|
+
* Wms.API.Client
|
|
1116
|
+
* WMS API Client for Angular applications
|
|
1117
|
+
*
|
|
1118
|
+
*
|
|
1119
|
+
*
|
|
1120
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1121
|
+
* https://openapi-generator.tech
|
|
1122
|
+
* Do not edit the class manually.
|
|
1123
|
+
*/
|
|
1124
|
+
/* tslint:disable:no-unused-variable member-ordering */
|
|
1125
|
+
class PermissionsService {
|
|
1126
|
+
httpClient;
|
|
1127
|
+
basePath = 'http://localhost';
|
|
1128
|
+
defaultHeaders = new HttpHeaders();
|
|
1129
|
+
configuration = new Configuration();
|
|
1130
|
+
encoder;
|
|
1131
|
+
constructor(httpClient, basePath, configuration) {
|
|
1132
|
+
this.httpClient = httpClient;
|
|
1133
|
+
if (configuration) {
|
|
1134
|
+
this.configuration = configuration;
|
|
937
1135
|
}
|
|
938
|
-
if (
|
|
939
|
-
|
|
1136
|
+
if (typeof this.configuration.basePath !== 'string') {
|
|
1137
|
+
const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
|
|
1138
|
+
if (firstBasePath != undefined) {
|
|
1139
|
+
basePath = firstBasePath;
|
|
1140
|
+
}
|
|
1141
|
+
if (typeof basePath !== 'string') {
|
|
1142
|
+
basePath = this.basePath;
|
|
1143
|
+
}
|
|
1144
|
+
this.configuration.basePath = basePath;
|
|
940
1145
|
}
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
1146
|
+
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
1147
|
+
}
|
|
1148
|
+
// @ts-ignore
|
|
1149
|
+
addToHttpParams(httpParams, value, key) {
|
|
1150
|
+
if (typeof value === "object" && value instanceof Date === false) {
|
|
1151
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
944
1152
|
}
|
|
945
|
-
|
|
946
|
-
|
|
1153
|
+
else {
|
|
1154
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
|
|
947
1155
|
}
|
|
948
|
-
|
|
949
|
-
|
|
1156
|
+
return httpParams;
|
|
1157
|
+
}
|
|
1158
|
+
addToHttpParamsRecursive(httpParams, value, key) {
|
|
1159
|
+
if (value == null) {
|
|
1160
|
+
return httpParams;
|
|
1161
|
+
}
|
|
1162
|
+
if (typeof value === "object") {
|
|
1163
|
+
if (Array.isArray(value)) {
|
|
1164
|
+
value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
|
|
1165
|
+
}
|
|
1166
|
+
else if (value instanceof Date) {
|
|
1167
|
+
if (key != null) {
|
|
1168
|
+
httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
|
|
1169
|
+
}
|
|
1170
|
+
else {
|
|
1171
|
+
throw Error("key may not be null if value is Date");
|
|
1172
|
+
}
|
|
1173
|
+
}
|
|
1174
|
+
else {
|
|
1175
|
+
Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
|
|
1176
|
+
}
|
|
1177
|
+
}
|
|
1178
|
+
else if (key != null) {
|
|
1179
|
+
httpParams = httpParams.append(key, value);
|
|
950
1180
|
}
|
|
1181
|
+
else {
|
|
1182
|
+
throw Error("key may not be null if value is not object or array");
|
|
1183
|
+
}
|
|
1184
|
+
return httpParams;
|
|
1185
|
+
}
|
|
1186
|
+
getUserPermissions(observe = 'body', reportProgress = false, options) {
|
|
951
1187
|
let localVarHeaders = this.defaultHeaders;
|
|
952
1188
|
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
953
1189
|
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
@@ -980,10 +1216,9 @@ class ReportsService {
|
|
|
980
1216
|
responseType_ = 'blob';
|
|
981
1217
|
}
|
|
982
1218
|
}
|
|
983
|
-
let localVarPath = `/
|
|
1219
|
+
let localVarPath = `/user/permissions`;
|
|
984
1220
|
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
985
1221
|
context: localVarHttpContext,
|
|
986
|
-
params: localVarQueryParameters,
|
|
987
1222
|
responseType: responseType_,
|
|
988
1223
|
withCredentials: this.configuration.withCredentials,
|
|
989
1224
|
headers: localVarHeaders,
|
|
@@ -992,49 +1227,94 @@ class ReportsService {
|
|
|
992
1227
|
reportProgress: reportProgress
|
|
993
1228
|
});
|
|
994
1229
|
}
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1230
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: PermissionsService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1231
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: PermissionsService, providedIn: 'root' });
|
|
1232
|
+
}
|
|
1233
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: PermissionsService, decorators: [{
|
|
1234
|
+
type: Injectable,
|
|
1235
|
+
args: [{
|
|
1236
|
+
providedIn: 'root'
|
|
1237
|
+
}]
|
|
1238
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1239
|
+
type: Optional
|
|
1240
|
+
}, {
|
|
1241
|
+
type: Inject,
|
|
1242
|
+
args: [BASE_PATH]
|
|
1243
|
+
}] }, { type: Configuration, decorators: [{
|
|
1244
|
+
type: Optional
|
|
1245
|
+
}] }] });
|
|
1246
|
+
|
|
1247
|
+
/**
|
|
1248
|
+
* Wms.API.Client
|
|
1249
|
+
* WMS API Client for Angular applications
|
|
1250
|
+
*
|
|
1251
|
+
*
|
|
1252
|
+
*
|
|
1253
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1254
|
+
* https://openapi-generator.tech
|
|
1255
|
+
* Do not edit the class manually.
|
|
1256
|
+
*/
|
|
1257
|
+
/* tslint:disable:no-unused-variable member-ordering */
|
|
1258
|
+
class SummaryService {
|
|
1259
|
+
httpClient;
|
|
1260
|
+
basePath = 'http://localhost';
|
|
1261
|
+
defaultHeaders = new HttpHeaders();
|
|
1262
|
+
configuration = new Configuration();
|
|
1263
|
+
encoder;
|
|
1264
|
+
constructor(httpClient, basePath, configuration) {
|
|
1265
|
+
this.httpClient = httpClient;
|
|
1266
|
+
if (configuration) {
|
|
1267
|
+
this.configuration = configuration;
|
|
1004
1268
|
}
|
|
1005
|
-
if (
|
|
1006
|
-
|
|
1269
|
+
if (typeof this.configuration.basePath !== 'string') {
|
|
1270
|
+
const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
|
|
1271
|
+
if (firstBasePath != undefined) {
|
|
1272
|
+
basePath = firstBasePath;
|
|
1273
|
+
}
|
|
1274
|
+
if (typeof basePath !== 'string') {
|
|
1275
|
+
basePath = this.basePath;
|
|
1276
|
+
}
|
|
1277
|
+
this.configuration.basePath = basePath;
|
|
1007
1278
|
}
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1279
|
+
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
1280
|
+
}
|
|
1281
|
+
// @ts-ignore
|
|
1282
|
+
addToHttpParams(httpParams, value, key) {
|
|
1283
|
+
if (typeof value === "object" && value instanceof Date === false) {
|
|
1284
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
1011
1285
|
}
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
localVarTransferCache = true;
|
|
1286
|
+
else {
|
|
1287
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
|
|
1015
1288
|
}
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1289
|
+
return httpParams;
|
|
1290
|
+
}
|
|
1291
|
+
addToHttpParamsRecursive(httpParams, value, key) {
|
|
1292
|
+
if (value == null) {
|
|
1293
|
+
return httpParams;
|
|
1294
|
+
}
|
|
1295
|
+
if (typeof value === "object") {
|
|
1296
|
+
if (Array.isArray(value)) {
|
|
1297
|
+
value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
|
|
1020
1298
|
}
|
|
1021
|
-
else if (
|
|
1022
|
-
|
|
1299
|
+
else if (value instanceof Date) {
|
|
1300
|
+
if (key != null) {
|
|
1301
|
+
httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
|
|
1302
|
+
}
|
|
1303
|
+
else {
|
|
1304
|
+
throw Error("key may not be null if value is Date");
|
|
1305
|
+
}
|
|
1023
1306
|
}
|
|
1024
1307
|
else {
|
|
1025
|
-
|
|
1308
|
+
Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
|
|
1026
1309
|
}
|
|
1027
1310
|
}
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
transferCache: localVarTransferCache,
|
|
1036
|
-
reportProgress: reportProgress
|
|
1037
|
-
});
|
|
1311
|
+
else if (key != null) {
|
|
1312
|
+
httpParams = httpParams.append(key, value);
|
|
1313
|
+
}
|
|
1314
|
+
else {
|
|
1315
|
+
throw Error("key may not be null if value is not object or array");
|
|
1316
|
+
}
|
|
1317
|
+
return httpParams;
|
|
1038
1318
|
}
|
|
1039
1319
|
getSummaryDashboardReports(observe = 'body', reportProgress = false, options) {
|
|
1040
1320
|
let localVarHeaders = this.defaultHeaders;
|
|
@@ -1069,7 +1349,7 @@ class ReportsService {
|
|
|
1069
1349
|
responseType_ = 'blob';
|
|
1070
1350
|
}
|
|
1071
1351
|
}
|
|
1072
|
-
let localVarPath = `/
|
|
1352
|
+
let localVarPath = `/summary/dashboard`;
|
|
1073
1353
|
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
1074
1354
|
context: localVarHttpContext,
|
|
1075
1355
|
responseType: responseType_,
|
|
@@ -1080,10 +1360,10 @@ class ReportsService {
|
|
|
1080
1360
|
reportProgress: reportProgress
|
|
1081
1361
|
});
|
|
1082
1362
|
}
|
|
1083
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type:
|
|
1084
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type:
|
|
1363
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: SummaryService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1364
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: SummaryService, providedIn: 'root' });
|
|
1085
1365
|
}
|
|
1086
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type:
|
|
1366
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: SummaryService, decorators: [{
|
|
1087
1367
|
type: Injectable,
|
|
1088
1368
|
args: [{
|
|
1089
1369
|
providedIn: 'root'
|
|
@@ -1374,7 +1654,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImpor
|
|
|
1374
1654
|
type: Optional
|
|
1375
1655
|
}] }] });
|
|
1376
1656
|
|
|
1377
|
-
const APIS = [DcsService, HealthService, PermissionsService,
|
|
1657
|
+
const APIS = [AnalyticsService, DcsService, HealthService, PermissionsService, SummaryService, UserService];
|
|
1378
1658
|
|
|
1379
1659
|
/**
|
|
1380
1660
|
* Wms.API.Client
|
|
@@ -1463,10 +1743,6 @@ const APIS = [DcsService, HealthService, PermissionsService, ReportsService, Use
|
|
|
1463
1743
|
* https://openapi-generator.tech
|
|
1464
1744
|
* Do not edit the class manually.
|
|
1465
1745
|
*/
|
|
1466
|
-
const PowerBiTenant = {
|
|
1467
|
-
SekoBi360: 'SekoBi360',
|
|
1468
|
-
Others: 'Others'
|
|
1469
|
-
};
|
|
1470
1746
|
|
|
1471
1747
|
/**
|
|
1472
1748
|
* Wms.API.Client
|
|
@@ -1563,5 +1839,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImpor
|
|
|
1563
1839
|
* Generated bundle index. Do not edit.
|
|
1564
1840
|
*/
|
|
1565
1841
|
|
|
1566
|
-
export { APIS, ApiModule, BASE_PATH, COLLECTION_FORMATS, Configuration, DcsService, HealthService, PermissionsService,
|
|
1842
|
+
export { APIS, AnalyticsService, ApiModule, BASE_PATH, COLLECTION_FORMATS, Configuration, DcsService, HealthService, PermissionsService, SummaryService, UserService };
|
|
1567
1843
|
//# sourceMappingURL=indigina-wms-api.mjs.map
|