@indigina/wms-api 0.0.44 → 0.0.46
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/api.d.ts +7 -1
- package/api/deliveries.service.d.ts +27 -0
- package/api/productMasters.service.d.ts +42 -0
- package/api/reasons.service.d.ts +42 -0
- package/api/settings.service.d.ts +147 -0
- package/fesm2022/indigina-wms-api.mjs +862 -69
- package/fesm2022/indigina-wms-api.mjs.map +1 -1
- package/model/delivery.d.ts +35 -0
- package/model/deliveryItemView.d.ts +1 -0
- package/model/models.d.ts +9 -0
- package/model/productMaster.d.ts +19 -0
- package/model/productMasters.d.ts +14 -0
- package/model/qcType.d.ts +13 -0
- package/model/reason.d.ts +17 -0
- package/model/reasonType.d.ts +14 -0
- package/model/reasons.d.ts +14 -0
- package/model/settingValue.d.ts +13 -0
- package/model/settingView.d.ts +14 -0
- package/package.json +1 -1
|
@@ -1428,6 +1428,70 @@ class DeliveriesService {
|
|
|
1428
1428
|
reportProgress: reportProgress
|
|
1429
1429
|
});
|
|
1430
1430
|
}
|
|
1431
|
+
getDelivery(id, $skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
|
|
1432
|
+
if (id === null || id === undefined) {
|
|
1433
|
+
throw new Error('Required parameter id was null or undefined when calling getDelivery.');
|
|
1434
|
+
}
|
|
1435
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
1436
|
+
if ($skip !== undefined && $skip !== null) {
|
|
1437
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
|
|
1438
|
+
}
|
|
1439
|
+
if ($top !== undefined && $top !== null) {
|
|
1440
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
|
|
1441
|
+
}
|
|
1442
|
+
if ($orderby !== undefined && $orderby !== null) {
|
|
1443
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
|
|
1444
|
+
}
|
|
1445
|
+
if ($filter !== undefined && $filter !== null) {
|
|
1446
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
|
|
1447
|
+
}
|
|
1448
|
+
if ($search !== undefined && $search !== null) {
|
|
1449
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
|
|
1450
|
+
}
|
|
1451
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1452
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
1453
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
1454
|
+
// to determine the Accept header
|
|
1455
|
+
const httpHeaderAccepts = [
|
|
1456
|
+
'application/json'
|
|
1457
|
+
];
|
|
1458
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1459
|
+
}
|
|
1460
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1461
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1462
|
+
}
|
|
1463
|
+
let localVarHttpContext = options && options.context;
|
|
1464
|
+
if (localVarHttpContext === undefined) {
|
|
1465
|
+
localVarHttpContext = new HttpContext();
|
|
1466
|
+
}
|
|
1467
|
+
let localVarTransferCache = options && options.transferCache;
|
|
1468
|
+
if (localVarTransferCache === undefined) {
|
|
1469
|
+
localVarTransferCache = true;
|
|
1470
|
+
}
|
|
1471
|
+
let responseType_ = 'json';
|
|
1472
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1473
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1474
|
+
responseType_ = 'text';
|
|
1475
|
+
}
|
|
1476
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1477
|
+
responseType_ = 'json';
|
|
1478
|
+
}
|
|
1479
|
+
else {
|
|
1480
|
+
responseType_ = 'blob';
|
|
1481
|
+
}
|
|
1482
|
+
}
|
|
1483
|
+
let localVarPath = `/deliveries/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/`;
|
|
1484
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
1485
|
+
context: localVarHttpContext,
|
|
1486
|
+
params: localVarQueryParameters,
|
|
1487
|
+
responseType: responseType_,
|
|
1488
|
+
withCredentials: this.configuration.withCredentials,
|
|
1489
|
+
headers: localVarHeaders,
|
|
1490
|
+
observe: observe,
|
|
1491
|
+
transferCache: localVarTransferCache,
|
|
1492
|
+
reportProgress: reportProgress
|
|
1493
|
+
});
|
|
1494
|
+
}
|
|
1431
1495
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: DeliveriesService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1432
1496
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: DeliveriesService, providedIn: 'root' });
|
|
1433
1497
|
}
|
|
@@ -2150,7 +2214,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImpor
|
|
|
2150
2214
|
* Do not edit the class manually.
|
|
2151
2215
|
*/
|
|
2152
2216
|
/* tslint:disable:no-unused-variable member-ordering */
|
|
2153
|
-
class
|
|
2217
|
+
class ProductMastersService {
|
|
2154
2218
|
httpClient;
|
|
2155
2219
|
basePath = 'http://localhost';
|
|
2156
2220
|
defaultHeaders = new HttpHeaders();
|
|
@@ -2211,9 +2275,22 @@ class SummaryService {
|
|
|
2211
2275
|
}
|
|
2212
2276
|
return httpParams;
|
|
2213
2277
|
}
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2278
|
+
getProductMasters($skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
|
|
2279
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
2280
|
+
if ($skip !== undefined && $skip !== null) {
|
|
2281
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
|
|
2282
|
+
}
|
|
2283
|
+
if ($top !== undefined && $top !== null) {
|
|
2284
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
|
|
2285
|
+
}
|
|
2286
|
+
if ($orderby !== undefined && $orderby !== null) {
|
|
2287
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
|
|
2288
|
+
}
|
|
2289
|
+
if ($filter !== undefined && $filter !== null) {
|
|
2290
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
|
|
2291
|
+
}
|
|
2292
|
+
if ($search !== undefined && $search !== null) {
|
|
2293
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
|
|
2217
2294
|
}
|
|
2218
2295
|
let localVarHeaders = this.defaultHeaders;
|
|
2219
2296
|
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
@@ -2247,9 +2324,10 @@ class SummaryService {
|
|
|
2247
2324
|
responseType_ = 'blob';
|
|
2248
2325
|
}
|
|
2249
2326
|
}
|
|
2250
|
-
let localVarPath = `/
|
|
2327
|
+
let localVarPath = `/productMasters`;
|
|
2251
2328
|
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
2252
2329
|
context: localVarHttpContext,
|
|
2330
|
+
params: localVarQueryParameters,
|
|
2253
2331
|
responseType: responseType_,
|
|
2254
2332
|
withCredentials: this.configuration.withCredentials,
|
|
2255
2333
|
headers: localVarHeaders,
|
|
@@ -2258,10 +2336,10 @@ class SummaryService {
|
|
|
2258
2336
|
reportProgress: reportProgress
|
|
2259
2337
|
});
|
|
2260
2338
|
}
|
|
2261
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type:
|
|
2262
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type:
|
|
2339
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: ProductMastersService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2340
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: ProductMastersService, providedIn: 'root' });
|
|
2263
2341
|
}
|
|
2264
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type:
|
|
2342
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: ProductMastersService, decorators: [{
|
|
2265
2343
|
type: Injectable,
|
|
2266
2344
|
args: [{
|
|
2267
2345
|
providedIn: 'root'
|
|
@@ -2285,7 +2363,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImpor
|
|
|
2285
2363
|
* Do not edit the class manually.
|
|
2286
2364
|
*/
|
|
2287
2365
|
/* tslint:disable:no-unused-variable member-ordering */
|
|
2288
|
-
class
|
|
2366
|
+
class ReasonsService {
|
|
2289
2367
|
httpClient;
|
|
2290
2368
|
basePath = 'http://localhost';
|
|
2291
2369
|
defaultHeaders = new HttpHeaders();
|
|
@@ -2346,9 +2424,22 @@ class UserService {
|
|
|
2346
2424
|
}
|
|
2347
2425
|
return httpParams;
|
|
2348
2426
|
}
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2427
|
+
getReasons($skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
|
|
2428
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
2429
|
+
if ($skip !== undefined && $skip !== null) {
|
|
2430
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
|
|
2431
|
+
}
|
|
2432
|
+
if ($top !== undefined && $top !== null) {
|
|
2433
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
|
|
2434
|
+
}
|
|
2435
|
+
if ($orderby !== undefined && $orderby !== null) {
|
|
2436
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
|
|
2437
|
+
}
|
|
2438
|
+
if ($filter !== undefined && $filter !== null) {
|
|
2439
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
|
|
2440
|
+
}
|
|
2441
|
+
if ($search !== undefined && $search !== null) {
|
|
2442
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
|
|
2352
2443
|
}
|
|
2353
2444
|
let localVarHeaders = this.defaultHeaders;
|
|
2354
2445
|
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
@@ -2382,9 +2473,10 @@ class UserService {
|
|
|
2382
2473
|
responseType_ = 'blob';
|
|
2383
2474
|
}
|
|
2384
2475
|
}
|
|
2385
|
-
let localVarPath = `/
|
|
2476
|
+
let localVarPath = `/reasons`;
|
|
2386
2477
|
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
2387
2478
|
context: localVarHttpContext,
|
|
2479
|
+
params: localVarQueryParameters,
|
|
2388
2480
|
responseType: responseType_,
|
|
2389
2481
|
withCredentials: this.configuration.withCredentials,
|
|
2390
2482
|
headers: localVarHeaders,
|
|
@@ -2393,14 +2485,106 @@ class UserService {
|
|
|
2393
2485
|
reportProgress: reportProgress
|
|
2394
2486
|
});
|
|
2395
2487
|
}
|
|
2396
|
-
|
|
2488
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: ReasonsService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2489
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: ReasonsService, providedIn: 'root' });
|
|
2490
|
+
}
|
|
2491
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: ReasonsService, decorators: [{
|
|
2492
|
+
type: Injectable,
|
|
2493
|
+
args: [{
|
|
2494
|
+
providedIn: 'root'
|
|
2495
|
+
}]
|
|
2496
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
2497
|
+
type: Optional
|
|
2498
|
+
}, {
|
|
2499
|
+
type: Inject,
|
|
2500
|
+
args: [BASE_PATH]
|
|
2501
|
+
}] }, { type: Configuration, decorators: [{
|
|
2502
|
+
type: Optional
|
|
2503
|
+
}] }] });
|
|
2504
|
+
|
|
2505
|
+
/**
|
|
2506
|
+
* Wms.API.Client
|
|
2507
|
+
*
|
|
2508
|
+
*
|
|
2509
|
+
*
|
|
2510
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2511
|
+
* https://openapi-generator.tech
|
|
2512
|
+
* Do not edit the class manually.
|
|
2513
|
+
*/
|
|
2514
|
+
/* tslint:disable:no-unused-variable member-ordering */
|
|
2515
|
+
class SettingsService {
|
|
2516
|
+
httpClient;
|
|
2517
|
+
basePath = 'http://localhost';
|
|
2518
|
+
defaultHeaders = new HttpHeaders();
|
|
2519
|
+
configuration = new Configuration();
|
|
2520
|
+
encoder;
|
|
2521
|
+
constructor(httpClient, basePath, configuration) {
|
|
2522
|
+
this.httpClient = httpClient;
|
|
2523
|
+
if (configuration) {
|
|
2524
|
+
this.configuration = configuration;
|
|
2525
|
+
}
|
|
2526
|
+
if (typeof this.configuration.basePath !== 'string') {
|
|
2527
|
+
const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
|
|
2528
|
+
if (firstBasePath != undefined) {
|
|
2529
|
+
basePath = firstBasePath;
|
|
2530
|
+
}
|
|
2531
|
+
if (typeof basePath !== 'string') {
|
|
2532
|
+
basePath = this.basePath;
|
|
2533
|
+
}
|
|
2534
|
+
this.configuration.basePath = basePath;
|
|
2535
|
+
}
|
|
2536
|
+
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
2537
|
+
}
|
|
2538
|
+
// @ts-ignore
|
|
2539
|
+
addToHttpParams(httpParams, value, key) {
|
|
2540
|
+
if (typeof value === "object" && value instanceof Date === false) {
|
|
2541
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
2542
|
+
}
|
|
2543
|
+
else {
|
|
2544
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
|
|
2545
|
+
}
|
|
2546
|
+
return httpParams;
|
|
2547
|
+
}
|
|
2548
|
+
addToHttpParamsRecursive(httpParams, value, key) {
|
|
2549
|
+
if (value == null) {
|
|
2550
|
+
return httpParams;
|
|
2551
|
+
}
|
|
2552
|
+
if (typeof value === "object") {
|
|
2553
|
+
if (Array.isArray(value)) {
|
|
2554
|
+
value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
|
|
2555
|
+
}
|
|
2556
|
+
else if (value instanceof Date) {
|
|
2557
|
+
if (key != null) {
|
|
2558
|
+
httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
|
|
2559
|
+
}
|
|
2560
|
+
else {
|
|
2561
|
+
throw Error("key may not be null if value is Date");
|
|
2562
|
+
}
|
|
2563
|
+
}
|
|
2564
|
+
else {
|
|
2565
|
+
Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
|
|
2566
|
+
}
|
|
2567
|
+
}
|
|
2568
|
+
else if (key != null) {
|
|
2569
|
+
httpParams = httpParams.append(key, value);
|
|
2570
|
+
}
|
|
2571
|
+
else {
|
|
2572
|
+
throw Error("key may not be null if value is not object or array");
|
|
2573
|
+
}
|
|
2574
|
+
return httpParams;
|
|
2575
|
+
}
|
|
2576
|
+
deleteSettingByGroupAndKey(key, group, observe = 'body', reportProgress = false, options) {
|
|
2577
|
+
if (key === null || key === undefined) {
|
|
2578
|
+
throw new Error('Required parameter key was null or undefined when calling deleteSettingByGroupAndKey.');
|
|
2579
|
+
}
|
|
2580
|
+
if (group === null || group === undefined) {
|
|
2581
|
+
throw new Error('Required parameter group was null or undefined when calling deleteSettingByGroupAndKey.');
|
|
2582
|
+
}
|
|
2397
2583
|
let localVarHeaders = this.defaultHeaders;
|
|
2398
2584
|
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
2399
2585
|
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
2400
2586
|
// to determine the Accept header
|
|
2401
|
-
const httpHeaderAccepts = [
|
|
2402
|
-
'application/json'
|
|
2403
|
-
];
|
|
2587
|
+
const httpHeaderAccepts = [];
|
|
2404
2588
|
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
2405
2589
|
}
|
|
2406
2590
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
@@ -2426,8 +2610,8 @@ class UserService {
|
|
|
2426
2610
|
responseType_ = 'blob';
|
|
2427
2611
|
}
|
|
2428
2612
|
}
|
|
2429
|
-
let localVarPath = `/users/me/
|
|
2430
|
-
return this.httpClient.request('
|
|
2613
|
+
let localVarPath = `/users/me/settings/groups/${this.configuration.encodeParam({ name: "group", value: group, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/${this.configuration.encodeParam({ name: "key", value: key, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
|
|
2614
|
+
return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, {
|
|
2431
2615
|
context: localVarHttpContext,
|
|
2432
2616
|
responseType: responseType_,
|
|
2433
2617
|
withCredentials: this.configuration.withCredentials,
|
|
@@ -2437,14 +2621,15 @@ class UserService {
|
|
|
2437
2621
|
reportProgress: reportProgress
|
|
2438
2622
|
});
|
|
2439
2623
|
}
|
|
2440
|
-
|
|
2624
|
+
deleteSettingByKey(key, observe = 'body', reportProgress = false, options) {
|
|
2625
|
+
if (key === null || key === undefined) {
|
|
2626
|
+
throw new Error('Required parameter key was null or undefined when calling deleteSettingByKey.');
|
|
2627
|
+
}
|
|
2441
2628
|
let localVarHeaders = this.defaultHeaders;
|
|
2442
2629
|
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
2443
2630
|
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
2444
2631
|
// to determine the Accept header
|
|
2445
|
-
const httpHeaderAccepts = [
|
|
2446
|
-
'application/json'
|
|
2447
|
-
];
|
|
2632
|
+
const httpHeaderAccepts = [];
|
|
2448
2633
|
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
2449
2634
|
}
|
|
2450
2635
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
@@ -2470,8 +2655,8 @@ class UserService {
|
|
|
2470
2655
|
responseType_ = 'blob';
|
|
2471
2656
|
}
|
|
2472
2657
|
}
|
|
2473
|
-
let localVarPath = `/
|
|
2474
|
-
return this.httpClient.request('
|
|
2658
|
+
let localVarPath = `/users/me/settings/${this.configuration.encodeParam({ name: "key", value: key, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
|
|
2659
|
+
return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, {
|
|
2475
2660
|
context: localVarHttpContext,
|
|
2476
2661
|
responseType: responseType_,
|
|
2477
2662
|
withCredentials: this.configuration.withCredentials,
|
|
@@ -2481,7 +2666,13 @@ class UserService {
|
|
|
2481
2666
|
reportProgress: reportProgress
|
|
2482
2667
|
});
|
|
2483
2668
|
}
|
|
2484
|
-
|
|
2669
|
+
getSettingByGroupAndKey(key, group, observe = 'body', reportProgress = false, options) {
|
|
2670
|
+
if (key === null || key === undefined) {
|
|
2671
|
+
throw new Error('Required parameter key was null or undefined when calling getSettingByGroupAndKey.');
|
|
2672
|
+
}
|
|
2673
|
+
if (group === null || group === undefined) {
|
|
2674
|
+
throw new Error('Required parameter group was null or undefined when calling getSettingByGroupAndKey.');
|
|
2675
|
+
}
|
|
2485
2676
|
let localVarHeaders = this.defaultHeaders;
|
|
2486
2677
|
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
2487
2678
|
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
@@ -2502,14 +2693,6 @@ class UserService {
|
|
|
2502
2693
|
if (localVarTransferCache === undefined) {
|
|
2503
2694
|
localVarTransferCache = true;
|
|
2504
2695
|
}
|
|
2505
|
-
// to determine the Content-Type header
|
|
2506
|
-
const consumes = [
|
|
2507
|
-
'application/json'
|
|
2508
|
-
];
|
|
2509
|
-
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
2510
|
-
if (httpContentTypeSelected !== undefined) {
|
|
2511
|
-
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
2512
|
-
}
|
|
2513
2696
|
let responseType_ = 'json';
|
|
2514
2697
|
if (localVarHttpHeaderAcceptSelected) {
|
|
2515
2698
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
@@ -2522,10 +2705,9 @@ class UserService {
|
|
|
2522
2705
|
responseType_ = 'blob';
|
|
2523
2706
|
}
|
|
2524
2707
|
}
|
|
2525
|
-
let localVarPath = `/
|
|
2526
|
-
return this.httpClient.request('
|
|
2708
|
+
let localVarPath = `/users/me/settings/groups/${this.configuration.encodeParam({ name: "group", value: group, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/${this.configuration.encodeParam({ name: "key", value: key, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
|
|
2709
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
2527
2710
|
context: localVarHttpContext,
|
|
2528
|
-
body: setNewFeaturesVisibilityCommand,
|
|
2529
2711
|
responseType: responseType_,
|
|
2530
2712
|
withCredentials: this.configuration.withCredentials,
|
|
2531
2713
|
headers: localVarHeaders,
|
|
@@ -2534,37 +2716,601 @@ class UserService {
|
|
|
2534
2716
|
reportProgress: reportProgress
|
|
2535
2717
|
});
|
|
2536
2718
|
}
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2719
|
+
getSettingByKey(key, observe = 'body', reportProgress = false, options) {
|
|
2720
|
+
if (key === null || key === undefined) {
|
|
2721
|
+
throw new Error('Required parameter key was null or undefined when calling getSettingByKey.');
|
|
2722
|
+
}
|
|
2723
|
+
let localVarHeaders = this.defaultHeaders;
|
|
2724
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
2725
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
2726
|
+
// to determine the Accept header
|
|
2727
|
+
const httpHeaderAccepts = [
|
|
2728
|
+
'application/json'
|
|
2729
|
+
];
|
|
2730
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
2731
|
+
}
|
|
2732
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
2733
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
2734
|
+
}
|
|
2735
|
+
let localVarHttpContext = options && options.context;
|
|
2736
|
+
if (localVarHttpContext === undefined) {
|
|
2737
|
+
localVarHttpContext = new HttpContext();
|
|
2738
|
+
}
|
|
2739
|
+
let localVarTransferCache = options && options.transferCache;
|
|
2740
|
+
if (localVarTransferCache === undefined) {
|
|
2741
|
+
localVarTransferCache = true;
|
|
2742
|
+
}
|
|
2743
|
+
let responseType_ = 'json';
|
|
2744
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
2745
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
2746
|
+
responseType_ = 'text';
|
|
2747
|
+
}
|
|
2748
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
2749
|
+
responseType_ = 'json';
|
|
2750
|
+
}
|
|
2751
|
+
else {
|
|
2752
|
+
responseType_ = 'blob';
|
|
2753
|
+
}
|
|
2754
|
+
}
|
|
2755
|
+
let localVarPath = `/users/me/settings/${this.configuration.encodeParam({ name: "key", value: key, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
|
|
2756
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
2757
|
+
context: localVarHttpContext,
|
|
2758
|
+
responseType: responseType_,
|
|
2759
|
+
withCredentials: this.configuration.withCredentials,
|
|
2760
|
+
headers: localVarHeaders,
|
|
2761
|
+
observe: observe,
|
|
2762
|
+
transferCache: localVarTransferCache,
|
|
2763
|
+
reportProgress: reportProgress
|
|
2764
|
+
});
|
|
2765
|
+
}
|
|
2766
|
+
getSettingsByGroup(group, observe = 'body', reportProgress = false, options) {
|
|
2767
|
+
if (group === null || group === undefined) {
|
|
2768
|
+
throw new Error('Required parameter group was null or undefined when calling getSettingsByGroup.');
|
|
2769
|
+
}
|
|
2770
|
+
let localVarHeaders = this.defaultHeaders;
|
|
2771
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
2772
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
2773
|
+
// to determine the Accept header
|
|
2774
|
+
const httpHeaderAccepts = [
|
|
2775
|
+
'application/json'
|
|
2776
|
+
];
|
|
2777
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
2778
|
+
}
|
|
2779
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
2780
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
2781
|
+
}
|
|
2782
|
+
let localVarHttpContext = options && options.context;
|
|
2783
|
+
if (localVarHttpContext === undefined) {
|
|
2784
|
+
localVarHttpContext = new HttpContext();
|
|
2785
|
+
}
|
|
2786
|
+
let localVarTransferCache = options && options.transferCache;
|
|
2787
|
+
if (localVarTransferCache === undefined) {
|
|
2788
|
+
localVarTransferCache = true;
|
|
2789
|
+
}
|
|
2790
|
+
let responseType_ = 'json';
|
|
2791
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
2792
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
2793
|
+
responseType_ = 'text';
|
|
2794
|
+
}
|
|
2795
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
2796
|
+
responseType_ = 'json';
|
|
2797
|
+
}
|
|
2798
|
+
else {
|
|
2799
|
+
responseType_ = 'blob';
|
|
2800
|
+
}
|
|
2801
|
+
}
|
|
2802
|
+
let localVarPath = `/users/me/settings/groups/${this.configuration.encodeParam({ name: "group", value: group, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
|
|
2803
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
2804
|
+
context: localVarHttpContext,
|
|
2805
|
+
responseType: responseType_,
|
|
2806
|
+
withCredentials: this.configuration.withCredentials,
|
|
2807
|
+
headers: localVarHeaders,
|
|
2808
|
+
observe: observe,
|
|
2809
|
+
transferCache: localVarTransferCache,
|
|
2810
|
+
reportProgress: reportProgress
|
|
2811
|
+
});
|
|
2812
|
+
}
|
|
2813
|
+
setSettingByKey(key, settingValue, observe = 'body', reportProgress = false, options) {
|
|
2814
|
+
if (key === null || key === undefined) {
|
|
2815
|
+
throw new Error('Required parameter key was null or undefined when calling setSettingByKey.');
|
|
2816
|
+
}
|
|
2817
|
+
if (settingValue === null || settingValue === undefined) {
|
|
2818
|
+
throw new Error('Required parameter settingValue was null or undefined when calling setSettingByKey.');
|
|
2819
|
+
}
|
|
2820
|
+
let localVarHeaders = this.defaultHeaders;
|
|
2821
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
2822
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
2823
|
+
// to determine the Accept header
|
|
2824
|
+
const httpHeaderAccepts = [
|
|
2825
|
+
'application/json'
|
|
2826
|
+
];
|
|
2827
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
2828
|
+
}
|
|
2829
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
2830
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
2831
|
+
}
|
|
2832
|
+
let localVarHttpContext = options && options.context;
|
|
2833
|
+
if (localVarHttpContext === undefined) {
|
|
2834
|
+
localVarHttpContext = new HttpContext();
|
|
2835
|
+
}
|
|
2836
|
+
let localVarTransferCache = options && options.transferCache;
|
|
2837
|
+
if (localVarTransferCache === undefined) {
|
|
2838
|
+
localVarTransferCache = true;
|
|
2839
|
+
}
|
|
2840
|
+
// to determine the Content-Type header
|
|
2841
|
+
const consumes = [
|
|
2842
|
+
'application/json'
|
|
2843
|
+
];
|
|
2844
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
2845
|
+
if (httpContentTypeSelected !== undefined) {
|
|
2846
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
2847
|
+
}
|
|
2848
|
+
let responseType_ = 'json';
|
|
2849
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
2850
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
2851
|
+
responseType_ = 'text';
|
|
2852
|
+
}
|
|
2853
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
2854
|
+
responseType_ = 'json';
|
|
2855
|
+
}
|
|
2856
|
+
else {
|
|
2857
|
+
responseType_ = 'blob';
|
|
2858
|
+
}
|
|
2859
|
+
}
|
|
2860
|
+
let localVarPath = `/users/me/settings/${this.configuration.encodeParam({ name: "key", value: key, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
|
|
2861
|
+
return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, {
|
|
2862
|
+
context: localVarHttpContext,
|
|
2863
|
+
body: settingValue,
|
|
2864
|
+
responseType: responseType_,
|
|
2865
|
+
withCredentials: this.configuration.withCredentials,
|
|
2866
|
+
headers: localVarHeaders,
|
|
2867
|
+
observe: observe,
|
|
2868
|
+
transferCache: localVarTransferCache,
|
|
2869
|
+
reportProgress: reportProgress
|
|
2870
|
+
});
|
|
2871
|
+
}
|
|
2872
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: SettingsService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2873
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: SettingsService, providedIn: 'root' });
|
|
2874
|
+
}
|
|
2875
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: SettingsService, decorators: [{
|
|
2876
|
+
type: Injectable,
|
|
2877
|
+
args: [{
|
|
2878
|
+
providedIn: 'root'
|
|
2879
|
+
}]
|
|
2880
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
2881
|
+
type: Optional
|
|
2882
|
+
}, {
|
|
2883
|
+
type: Inject,
|
|
2884
|
+
args: [BASE_PATH]
|
|
2885
|
+
}] }, { type: Configuration, decorators: [{
|
|
2886
|
+
type: Optional
|
|
2887
|
+
}] }] });
|
|
2888
|
+
|
|
2889
|
+
/**
|
|
2890
|
+
* Wms.API.Client
|
|
2891
|
+
*
|
|
2892
|
+
*
|
|
2893
|
+
*
|
|
2894
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2895
|
+
* https://openapi-generator.tech
|
|
2896
|
+
* Do not edit the class manually.
|
|
2897
|
+
*/
|
|
2898
|
+
/* tslint:disable:no-unused-variable member-ordering */
|
|
2899
|
+
class SummaryService {
|
|
2900
|
+
httpClient;
|
|
2901
|
+
basePath = 'http://localhost';
|
|
2902
|
+
defaultHeaders = new HttpHeaders();
|
|
2903
|
+
configuration = new Configuration();
|
|
2904
|
+
encoder;
|
|
2905
|
+
constructor(httpClient, basePath, configuration) {
|
|
2906
|
+
this.httpClient = httpClient;
|
|
2907
|
+
if (configuration) {
|
|
2908
|
+
this.configuration = configuration;
|
|
2909
|
+
}
|
|
2910
|
+
if (typeof this.configuration.basePath !== 'string') {
|
|
2911
|
+
const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
|
|
2912
|
+
if (firstBasePath != undefined) {
|
|
2913
|
+
basePath = firstBasePath;
|
|
2914
|
+
}
|
|
2915
|
+
if (typeof basePath !== 'string') {
|
|
2916
|
+
basePath = this.basePath;
|
|
2917
|
+
}
|
|
2918
|
+
this.configuration.basePath = basePath;
|
|
2919
|
+
}
|
|
2920
|
+
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
2921
|
+
}
|
|
2922
|
+
// @ts-ignore
|
|
2923
|
+
addToHttpParams(httpParams, value, key) {
|
|
2924
|
+
if (typeof value === "object" && value instanceof Date === false) {
|
|
2925
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
2926
|
+
}
|
|
2927
|
+
else {
|
|
2928
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
|
|
2929
|
+
}
|
|
2930
|
+
return httpParams;
|
|
2931
|
+
}
|
|
2932
|
+
addToHttpParamsRecursive(httpParams, value, key) {
|
|
2933
|
+
if (value == null) {
|
|
2934
|
+
return httpParams;
|
|
2935
|
+
}
|
|
2936
|
+
if (typeof value === "object") {
|
|
2937
|
+
if (Array.isArray(value)) {
|
|
2938
|
+
value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
|
|
2939
|
+
}
|
|
2940
|
+
else if (value instanceof Date) {
|
|
2941
|
+
if (key != null) {
|
|
2942
|
+
httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
|
|
2943
|
+
}
|
|
2944
|
+
else {
|
|
2945
|
+
throw Error("key may not be null if value is Date");
|
|
2946
|
+
}
|
|
2947
|
+
}
|
|
2948
|
+
else {
|
|
2949
|
+
Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
|
|
2950
|
+
}
|
|
2951
|
+
}
|
|
2952
|
+
else if (key != null) {
|
|
2953
|
+
httpParams = httpParams.append(key, value);
|
|
2954
|
+
}
|
|
2955
|
+
else {
|
|
2956
|
+
throw Error("key may not be null if value is not object or array");
|
|
2957
|
+
}
|
|
2958
|
+
return httpParams;
|
|
2959
|
+
}
|
|
2960
|
+
getSummaryDashboardReport(dashboardName, observe = 'body', reportProgress = false, options) {
|
|
2961
|
+
if (dashboardName === null || dashboardName === undefined) {
|
|
2962
|
+
throw new Error('Required parameter dashboardName was null or undefined when calling getSummaryDashboardReport.');
|
|
2963
|
+
}
|
|
2964
|
+
let localVarHeaders = this.defaultHeaders;
|
|
2965
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
2966
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
2967
|
+
// to determine the Accept header
|
|
2968
|
+
const httpHeaderAccepts = [
|
|
2969
|
+
'application/json'
|
|
2970
|
+
];
|
|
2971
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
2972
|
+
}
|
|
2973
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
2974
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
2975
|
+
}
|
|
2976
|
+
let localVarHttpContext = options && options.context;
|
|
2977
|
+
if (localVarHttpContext === undefined) {
|
|
2978
|
+
localVarHttpContext = new HttpContext();
|
|
2979
|
+
}
|
|
2980
|
+
let localVarTransferCache = options && options.transferCache;
|
|
2981
|
+
if (localVarTransferCache === undefined) {
|
|
2982
|
+
localVarTransferCache = true;
|
|
2983
|
+
}
|
|
2984
|
+
let responseType_ = 'json';
|
|
2985
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
2986
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
2987
|
+
responseType_ = 'text';
|
|
2988
|
+
}
|
|
2989
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
2990
|
+
responseType_ = 'json';
|
|
2991
|
+
}
|
|
2992
|
+
else {
|
|
2993
|
+
responseType_ = 'blob';
|
|
2994
|
+
}
|
|
2995
|
+
}
|
|
2996
|
+
let localVarPath = `/summary/dashboard/${this.configuration.encodeParam({ name: "dashboardName", value: dashboardName, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
|
|
2997
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
2998
|
+
context: localVarHttpContext,
|
|
2999
|
+
responseType: responseType_,
|
|
3000
|
+
withCredentials: this.configuration.withCredentials,
|
|
3001
|
+
headers: localVarHeaders,
|
|
3002
|
+
observe: observe,
|
|
3003
|
+
transferCache: localVarTransferCache,
|
|
3004
|
+
reportProgress: reportProgress
|
|
3005
|
+
});
|
|
3006
|
+
}
|
|
3007
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: SummaryService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3008
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: SummaryService, providedIn: 'root' });
|
|
3009
|
+
}
|
|
3010
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: SummaryService, decorators: [{
|
|
3011
|
+
type: Injectable,
|
|
3012
|
+
args: [{
|
|
3013
|
+
providedIn: 'root'
|
|
3014
|
+
}]
|
|
3015
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
3016
|
+
type: Optional
|
|
3017
|
+
}, {
|
|
3018
|
+
type: Inject,
|
|
3019
|
+
args: [BASE_PATH]
|
|
3020
|
+
}] }, { type: Configuration, decorators: [{
|
|
3021
|
+
type: Optional
|
|
3022
|
+
}] }] });
|
|
3023
|
+
|
|
3024
|
+
/**
|
|
3025
|
+
* Wms.API.Client
|
|
3026
|
+
*
|
|
3027
|
+
*
|
|
3028
|
+
*
|
|
3029
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3030
|
+
* https://openapi-generator.tech
|
|
3031
|
+
* Do not edit the class manually.
|
|
3032
|
+
*/
|
|
3033
|
+
/* tslint:disable:no-unused-variable member-ordering */
|
|
3034
|
+
class UserService {
|
|
3035
|
+
httpClient;
|
|
3036
|
+
basePath = 'http://localhost';
|
|
3037
|
+
defaultHeaders = new HttpHeaders();
|
|
3038
|
+
configuration = new Configuration();
|
|
3039
|
+
encoder;
|
|
3040
|
+
constructor(httpClient, basePath, configuration) {
|
|
3041
|
+
this.httpClient = httpClient;
|
|
3042
|
+
if (configuration) {
|
|
3043
|
+
this.configuration = configuration;
|
|
3044
|
+
}
|
|
3045
|
+
if (typeof this.configuration.basePath !== 'string') {
|
|
3046
|
+
const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
|
|
3047
|
+
if (firstBasePath != undefined) {
|
|
3048
|
+
basePath = firstBasePath;
|
|
3049
|
+
}
|
|
3050
|
+
if (typeof basePath !== 'string') {
|
|
3051
|
+
basePath = this.basePath;
|
|
3052
|
+
}
|
|
3053
|
+
this.configuration.basePath = basePath;
|
|
3054
|
+
}
|
|
3055
|
+
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
3056
|
+
}
|
|
3057
|
+
// @ts-ignore
|
|
3058
|
+
addToHttpParams(httpParams, value, key) {
|
|
3059
|
+
if (typeof value === "object" && value instanceof Date === false) {
|
|
3060
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
3061
|
+
}
|
|
3062
|
+
else {
|
|
3063
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
|
|
3064
|
+
}
|
|
3065
|
+
return httpParams;
|
|
3066
|
+
}
|
|
3067
|
+
addToHttpParamsRecursive(httpParams, value, key) {
|
|
3068
|
+
if (value == null) {
|
|
3069
|
+
return httpParams;
|
|
3070
|
+
}
|
|
3071
|
+
if (typeof value === "object") {
|
|
3072
|
+
if (Array.isArray(value)) {
|
|
3073
|
+
value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
|
|
3074
|
+
}
|
|
3075
|
+
else if (value instanceof Date) {
|
|
3076
|
+
if (key != null) {
|
|
3077
|
+
httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
|
|
3078
|
+
}
|
|
3079
|
+
else {
|
|
3080
|
+
throw Error("key may not be null if value is Date");
|
|
3081
|
+
}
|
|
3082
|
+
}
|
|
3083
|
+
else {
|
|
3084
|
+
Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
|
|
3085
|
+
}
|
|
3086
|
+
}
|
|
3087
|
+
else if (key != null) {
|
|
3088
|
+
httpParams = httpParams.append(key, value);
|
|
3089
|
+
}
|
|
3090
|
+
else {
|
|
3091
|
+
throw Error("key may not be null if value is not object or array");
|
|
3092
|
+
}
|
|
3093
|
+
return httpParams;
|
|
3094
|
+
}
|
|
3095
|
+
getApplicationSetting(name, observe = 'body', reportProgress = false, options) {
|
|
3096
|
+
if (name === null || name === undefined) {
|
|
3097
|
+
throw new Error('Required parameter name was null or undefined when calling getApplicationSetting.');
|
|
3098
|
+
}
|
|
3099
|
+
let localVarHeaders = this.defaultHeaders;
|
|
3100
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
3101
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
3102
|
+
// to determine the Accept header
|
|
3103
|
+
const httpHeaderAccepts = [
|
|
3104
|
+
'application/json'
|
|
3105
|
+
];
|
|
3106
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
3107
|
+
}
|
|
3108
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
3109
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
3110
|
+
}
|
|
3111
|
+
let localVarHttpContext = options && options.context;
|
|
3112
|
+
if (localVarHttpContext === undefined) {
|
|
3113
|
+
localVarHttpContext = new HttpContext();
|
|
3114
|
+
}
|
|
3115
|
+
let localVarTransferCache = options && options.transferCache;
|
|
3116
|
+
if (localVarTransferCache === undefined) {
|
|
3117
|
+
localVarTransferCache = true;
|
|
3118
|
+
}
|
|
3119
|
+
let responseType_ = 'json';
|
|
3120
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
3121
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
3122
|
+
responseType_ = 'text';
|
|
3123
|
+
}
|
|
3124
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
3125
|
+
responseType_ = 'json';
|
|
3126
|
+
}
|
|
3127
|
+
else {
|
|
3128
|
+
responseType_ = 'blob';
|
|
3129
|
+
}
|
|
3130
|
+
}
|
|
3131
|
+
let localVarPath = `/user/me/settings/${this.configuration.encodeParam({ name: "name", value: name, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
|
|
3132
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
3133
|
+
context: localVarHttpContext,
|
|
3134
|
+
responseType: responseType_,
|
|
3135
|
+
withCredentials: this.configuration.withCredentials,
|
|
3136
|
+
headers: localVarHeaders,
|
|
3137
|
+
observe: observe,
|
|
3138
|
+
transferCache: localVarTransferCache,
|
|
3139
|
+
reportProgress: reportProgress
|
|
3140
|
+
});
|
|
3141
|
+
}
|
|
3142
|
+
getUserApplicationList(observe = 'body', reportProgress = false, options) {
|
|
3143
|
+
let localVarHeaders = this.defaultHeaders;
|
|
3144
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
3145
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
3146
|
+
// to determine the Accept header
|
|
3147
|
+
const httpHeaderAccepts = [
|
|
3148
|
+
'application/json'
|
|
3149
|
+
];
|
|
3150
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
3151
|
+
}
|
|
3152
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
3153
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
3154
|
+
}
|
|
3155
|
+
let localVarHttpContext = options && options.context;
|
|
3156
|
+
if (localVarHttpContext === undefined) {
|
|
3157
|
+
localVarHttpContext = new HttpContext();
|
|
3158
|
+
}
|
|
3159
|
+
let localVarTransferCache = options && options.transferCache;
|
|
3160
|
+
if (localVarTransferCache === undefined) {
|
|
3161
|
+
localVarTransferCache = true;
|
|
3162
|
+
}
|
|
3163
|
+
let responseType_ = 'json';
|
|
3164
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
3165
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
3166
|
+
responseType_ = 'text';
|
|
3167
|
+
}
|
|
3168
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
3169
|
+
responseType_ = 'json';
|
|
3170
|
+
}
|
|
3171
|
+
else {
|
|
3172
|
+
responseType_ = 'blob';
|
|
3173
|
+
}
|
|
3174
|
+
}
|
|
3175
|
+
let localVarPath = `/users/me/applications`;
|
|
3176
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
3177
|
+
context: localVarHttpContext,
|
|
3178
|
+
responseType: responseType_,
|
|
3179
|
+
withCredentials: this.configuration.withCredentials,
|
|
3180
|
+
headers: localVarHeaders,
|
|
3181
|
+
observe: observe,
|
|
3182
|
+
transferCache: localVarTransferCache,
|
|
3183
|
+
reportProgress: reportProgress
|
|
3184
|
+
});
|
|
3185
|
+
}
|
|
3186
|
+
getUserInfo(observe = 'body', reportProgress = false, options) {
|
|
3187
|
+
let localVarHeaders = this.defaultHeaders;
|
|
3188
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
3189
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
3190
|
+
// to determine the Accept header
|
|
3191
|
+
const httpHeaderAccepts = [
|
|
3192
|
+
'application/json'
|
|
3193
|
+
];
|
|
3194
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
3195
|
+
}
|
|
3196
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
3197
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
3198
|
+
}
|
|
3199
|
+
let localVarHttpContext = options && options.context;
|
|
3200
|
+
if (localVarHttpContext === undefined) {
|
|
3201
|
+
localVarHttpContext = new HttpContext();
|
|
3202
|
+
}
|
|
3203
|
+
let localVarTransferCache = options && options.transferCache;
|
|
3204
|
+
if (localVarTransferCache === undefined) {
|
|
3205
|
+
localVarTransferCache = true;
|
|
3206
|
+
}
|
|
3207
|
+
let responseType_ = 'json';
|
|
3208
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
3209
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
3210
|
+
responseType_ = 'text';
|
|
3211
|
+
}
|
|
3212
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
3213
|
+
responseType_ = 'json';
|
|
3214
|
+
}
|
|
3215
|
+
else {
|
|
3216
|
+
responseType_ = 'blob';
|
|
3217
|
+
}
|
|
3218
|
+
}
|
|
3219
|
+
let localVarPath = `/user/me`;
|
|
3220
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
3221
|
+
context: localVarHttpContext,
|
|
3222
|
+
responseType: responseType_,
|
|
3223
|
+
withCredentials: this.configuration.withCredentials,
|
|
3224
|
+
headers: localVarHeaders,
|
|
3225
|
+
observe: observe,
|
|
3226
|
+
transferCache: localVarTransferCache,
|
|
3227
|
+
reportProgress: reportProgress
|
|
3228
|
+
});
|
|
3229
|
+
}
|
|
3230
|
+
setNewFeaturesVisibility(setNewFeaturesVisibilityCommand, observe = 'body', reportProgress = false, options) {
|
|
3231
|
+
let localVarHeaders = this.defaultHeaders;
|
|
3232
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
3233
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
3234
|
+
// to determine the Accept header
|
|
3235
|
+
const httpHeaderAccepts = [
|
|
3236
|
+
'application/json'
|
|
3237
|
+
];
|
|
3238
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
3239
|
+
}
|
|
3240
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
3241
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
3242
|
+
}
|
|
3243
|
+
let localVarHttpContext = options && options.context;
|
|
3244
|
+
if (localVarHttpContext === undefined) {
|
|
3245
|
+
localVarHttpContext = new HttpContext();
|
|
3246
|
+
}
|
|
3247
|
+
let localVarTransferCache = options && options.transferCache;
|
|
3248
|
+
if (localVarTransferCache === undefined) {
|
|
3249
|
+
localVarTransferCache = true;
|
|
3250
|
+
}
|
|
3251
|
+
// to determine the Content-Type header
|
|
3252
|
+
const consumes = [
|
|
3253
|
+
'application/json'
|
|
3254
|
+
];
|
|
3255
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
3256
|
+
if (httpContentTypeSelected !== undefined) {
|
|
3257
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
3258
|
+
}
|
|
3259
|
+
let responseType_ = 'json';
|
|
3260
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
3261
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
3262
|
+
responseType_ = 'text';
|
|
3263
|
+
}
|
|
3264
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
3265
|
+
responseType_ = 'json';
|
|
3266
|
+
}
|
|
3267
|
+
else {
|
|
3268
|
+
responseType_ = 'blob';
|
|
3269
|
+
}
|
|
3270
|
+
}
|
|
3271
|
+
let localVarPath = `/user/me/settings/newfeaturevisibility`;
|
|
3272
|
+
return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, {
|
|
3273
|
+
context: localVarHttpContext,
|
|
3274
|
+
body: setNewFeaturesVisibilityCommand,
|
|
3275
|
+
responseType: responseType_,
|
|
3276
|
+
withCredentials: this.configuration.withCredentials,
|
|
3277
|
+
headers: localVarHeaders,
|
|
3278
|
+
observe: observe,
|
|
3279
|
+
transferCache: localVarTransferCache,
|
|
3280
|
+
reportProgress: reportProgress
|
|
3281
|
+
});
|
|
3282
|
+
}
|
|
3283
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: UserService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3284
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: UserService, providedIn: 'root' });
|
|
3285
|
+
}
|
|
3286
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: UserService, decorators: [{
|
|
3287
|
+
type: Injectable,
|
|
3288
|
+
args: [{
|
|
3289
|
+
providedIn: 'root'
|
|
3290
|
+
}]
|
|
3291
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
3292
|
+
type: Optional
|
|
3293
|
+
}, {
|
|
3294
|
+
type: Inject,
|
|
3295
|
+
args: [BASE_PATH]
|
|
3296
|
+
}] }, { type: Configuration, decorators: [{
|
|
3297
|
+
type: Optional
|
|
3298
|
+
}] }] });
|
|
3299
|
+
|
|
3300
|
+
const APIS = [AnalyticsService, CompaniesService, DcsService, DeliveriesService, DeliveryItemsService, HealthService, NotesService, PermissionsService, ProductMastersService, ReasonsService, SettingsService, SummaryService, UserService];
|
|
3301
|
+
|
|
3302
|
+
/**
|
|
3303
|
+
* Wms.API.Client
|
|
3304
|
+
*
|
|
3305
|
+
*
|
|
3306
|
+
*
|
|
3307
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3308
|
+
* https://openapi-generator.tech
|
|
3309
|
+
* Do not edit the class manually.
|
|
3310
|
+
*/
|
|
3311
|
+
|
|
3312
|
+
/**
|
|
3313
|
+
* Wms.API.Client
|
|
2568
3314
|
*
|
|
2569
3315
|
*
|
|
2570
3316
|
*
|
|
@@ -2740,6 +3486,33 @@ const OrderStatus = {
|
|
|
2740
3486
|
Booked: 'Booked'
|
|
2741
3487
|
};
|
|
2742
3488
|
|
|
3489
|
+
/**
|
|
3490
|
+
* Wms.API.Client
|
|
3491
|
+
*
|
|
3492
|
+
*
|
|
3493
|
+
*
|
|
3494
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3495
|
+
* https://openapi-generator.tech
|
|
3496
|
+
* Do not edit the class manually.
|
|
3497
|
+
*/
|
|
3498
|
+
const QcType = {
|
|
3499
|
+
CheckerCount: 'CheckerCount'
|
|
3500
|
+
};
|
|
3501
|
+
|
|
3502
|
+
/**
|
|
3503
|
+
* Wms.API.Client
|
|
3504
|
+
*
|
|
3505
|
+
*
|
|
3506
|
+
*
|
|
3507
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3508
|
+
* https://openapi-generator.tech
|
|
3509
|
+
* Do not edit the class manually.
|
|
3510
|
+
*/
|
|
3511
|
+
const ReasonType = {
|
|
3512
|
+
Receipt: 'Receipt',
|
|
3513
|
+
InventoryHoldMovement: 'InventoryHoldMovement'
|
|
3514
|
+
};
|
|
3515
|
+
|
|
2743
3516
|
/**
|
|
2744
3517
|
* Wms.API.Client
|
|
2745
3518
|
*
|
|
@@ -2814,6 +3587,26 @@ const RecordType = {
|
|
|
2814
3587
|
* Do not edit the class manually.
|
|
2815
3588
|
*/
|
|
2816
3589
|
|
|
3590
|
+
/**
|
|
3591
|
+
* Wms.API.Client
|
|
3592
|
+
*
|
|
3593
|
+
*
|
|
3594
|
+
*
|
|
3595
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3596
|
+
* https://openapi-generator.tech
|
|
3597
|
+
* Do not edit the class manually.
|
|
3598
|
+
*/
|
|
3599
|
+
|
|
3600
|
+
/**
|
|
3601
|
+
* Wms.API.Client
|
|
3602
|
+
*
|
|
3603
|
+
*
|
|
3604
|
+
*
|
|
3605
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3606
|
+
* https://openapi-generator.tech
|
|
3607
|
+
* Do not edit the class manually.
|
|
3608
|
+
*/
|
|
3609
|
+
|
|
2817
3610
|
class ApiModule {
|
|
2818
3611
|
static forRoot(configurationFactory) {
|
|
2819
3612
|
return {
|
|
@@ -2854,5 +3647,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImpor
|
|
|
2854
3647
|
* Generated bundle index. Do not edit.
|
|
2855
3648
|
*/
|
|
2856
3649
|
|
|
2857
|
-
export { APIS, AnalyticsService, ApiModule, BASE_PATH, COLLECTION_FORMATS, CompaniesService, Configuration, DcsService, DeliveriesService, DeliveryItemsService, DeliveryType, HealthService, NoteCategory, NoteSourceType, NotesService, OrderStatus, PermissionsService, RecordType, SummaryService, UserService };
|
|
3650
|
+
export { APIS, AnalyticsService, ApiModule, BASE_PATH, COLLECTION_FORMATS, CompaniesService, Configuration, DcsService, DeliveriesService, DeliveryItemsService, DeliveryType, HealthService, NoteCategory, NoteSourceType, NotesService, OrderStatus, PermissionsService, ProductMastersService, QcType, ReasonType, ReasonsService, RecordType, SettingsService, SummaryService, UserService };
|
|
2858
3651
|
//# sourceMappingURL=indigina-wms-api.mjs.map
|