@indigina/wms-api 0.0.73 → 0.0.75
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
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @indigina/wms-api@0.0.
|
|
1
|
+
# @indigina/wms-api@0.0.75
|
|
2
2
|
|
|
3
3
|
WMS API Client for Angular applications
|
|
4
4
|
|
|
@@ -24,7 +24,7 @@ Navigate to the folder of your consuming project and run one of next commands.
|
|
|
24
24
|
_published:_
|
|
25
25
|
|
|
26
26
|
```console
|
|
27
|
-
npm install @indigina/wms-api@0.0.
|
|
27
|
+
npm install @indigina/wms-api@0.0.75 --save
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
_without publishing (not recommended):_
|
package/api/api.d.ts
CHANGED
|
@@ -8,10 +8,10 @@ export * from './deliveries.service';
|
|
|
8
8
|
import { DeliveriesService } from './deliveries.service';
|
|
9
9
|
export * from './deliveryItems.service';
|
|
10
10
|
import { DeliveryItemsService } from './deliveryItems.service';
|
|
11
|
-
export * from './dispatch.service';
|
|
12
|
-
import { DispatchService } from './dispatch.service';
|
|
13
11
|
export * from './dispatchItems.service';
|
|
14
12
|
import { DispatchItemsService } from './dispatchItems.service';
|
|
13
|
+
export * from './dispatches.service';
|
|
14
|
+
import { DispatchesService } from './dispatches.service';
|
|
15
15
|
export * from './health.service';
|
|
16
16
|
import { HealthService } from './health.service';
|
|
17
17
|
export * from './notes.service';
|
|
@@ -38,4 +38,4 @@ export * from './user.service';
|
|
|
38
38
|
import { UserService } from './user.service';
|
|
39
39
|
export * from './usersInternal.service';
|
|
40
40
|
import { UsersInternalService } from './usersInternal.service';
|
|
41
|
-
export declare const APIS: (typeof AnalyticsService | typeof CompaniesService | typeof DcsService | typeof DeliveriesService | typeof DeliveryItemsService | typeof
|
|
41
|
+
export declare const APIS: (typeof AnalyticsService | typeof CompaniesService | typeof DcsService | typeof DeliveriesService | typeof DeliveryItemsService | typeof DispatchItemsService | typeof DispatchesService | typeof HealthService | typeof NotesService | typeof PermissionsService | typeof ProductMastersService | typeof ProductQuantitiesService | typeof ReasonsService | typeof SettingsService | typeof SummaryService | typeof TaskCompletionTimeService | typeof TaskOperationsService | typeof TaskUserRecordsService | typeof UserService | typeof UsersInternalService)[];
|
|
@@ -6,7 +6,7 @@ import { Dispatches } from '../model/dispatches';
|
|
|
6
6
|
import { OrderStatus } from '../model/orderStatus';
|
|
7
7
|
import { Configuration } from '../configuration';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
|
-
export declare class
|
|
9
|
+
export declare class DispatchesService {
|
|
10
10
|
protected httpClient: HttpClient;
|
|
11
11
|
protected basePath: string;
|
|
12
12
|
defaultHeaders: HttpHeaders;
|
|
@@ -15,6 +15,49 @@ export declare class DispatchService {
|
|
|
15
15
|
constructor(httpClient: HttpClient, basePath: string | string[], configuration: Configuration);
|
|
16
16
|
private addToHttpParams;
|
|
17
17
|
private addToHttpParamsRecursive;
|
|
18
|
+
/**
|
|
19
|
+
* Cancel dispatches
|
|
20
|
+
* @param ids
|
|
21
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
22
|
+
* @param reportProgress flag to report request and response progress.
|
|
23
|
+
*/
|
|
24
|
+
cancelDispatches(ids: Array<string>, observe?: 'body', reportProgress?: boolean, options?: {
|
|
25
|
+
httpHeaderAccept?: undefined;
|
|
26
|
+
context?: HttpContext;
|
|
27
|
+
transferCache?: boolean;
|
|
28
|
+
}): Observable<any>;
|
|
29
|
+
cancelDispatches(ids: Array<string>, observe?: 'response', reportProgress?: boolean, options?: {
|
|
30
|
+
httpHeaderAccept?: undefined;
|
|
31
|
+
context?: HttpContext;
|
|
32
|
+
transferCache?: boolean;
|
|
33
|
+
}): Observable<HttpResponse<any>>;
|
|
34
|
+
cancelDispatches(ids: Array<string>, observe?: 'events', reportProgress?: boolean, options?: {
|
|
35
|
+
httpHeaderAccept?: undefined;
|
|
36
|
+
context?: HttpContext;
|
|
37
|
+
transferCache?: boolean;
|
|
38
|
+
}): Observable<HttpEvent<any>>;
|
|
39
|
+
/**
|
|
40
|
+
* Confirm dispatches
|
|
41
|
+
* @param ids
|
|
42
|
+
* @param dispatchDate
|
|
43
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
44
|
+
* @param reportProgress flag to report request and response progress.
|
|
45
|
+
*/
|
|
46
|
+
confirmDispatches(ids: Array<string>, dispatchDate: string, observe?: 'body', reportProgress?: boolean, options?: {
|
|
47
|
+
httpHeaderAccept?: undefined;
|
|
48
|
+
context?: HttpContext;
|
|
49
|
+
transferCache?: boolean;
|
|
50
|
+
}): Observable<any>;
|
|
51
|
+
confirmDispatches(ids: Array<string>, dispatchDate: string, observe?: 'response', reportProgress?: boolean, options?: {
|
|
52
|
+
httpHeaderAccept?: undefined;
|
|
53
|
+
context?: HttpContext;
|
|
54
|
+
transferCache?: boolean;
|
|
55
|
+
}): Observable<HttpResponse<any>>;
|
|
56
|
+
confirmDispatches(ids: Array<string>, dispatchDate: string, observe?: 'events', reportProgress?: boolean, options?: {
|
|
57
|
+
httpHeaderAccept?: undefined;
|
|
58
|
+
context?: HttpContext;
|
|
59
|
+
transferCache?: boolean;
|
|
60
|
+
}): Observable<HttpEvent<any>>;
|
|
18
61
|
/**
|
|
19
62
|
* Getting dispatch by id
|
|
20
63
|
* @param id
|
|
@@ -109,6 +152,27 @@ export declare class DispatchService {
|
|
|
109
152
|
context?: HttpContext;
|
|
110
153
|
transferCache?: boolean;
|
|
111
154
|
}): Observable<HttpEvent<Dispatches>>;
|
|
112
|
-
|
|
113
|
-
|
|
155
|
+
/**
|
|
156
|
+
* Release on-hold dispatches
|
|
157
|
+
* @param ids
|
|
158
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
159
|
+
* @param reportProgress flag to report request and response progress.
|
|
160
|
+
*/
|
|
161
|
+
releaseOnHoldDispatches(ids: Array<string>, observe?: 'body', reportProgress?: boolean, options?: {
|
|
162
|
+
httpHeaderAccept?: undefined;
|
|
163
|
+
context?: HttpContext;
|
|
164
|
+
transferCache?: boolean;
|
|
165
|
+
}): Observable<any>;
|
|
166
|
+
releaseOnHoldDispatches(ids: Array<string>, observe?: 'response', reportProgress?: boolean, options?: {
|
|
167
|
+
httpHeaderAccept?: undefined;
|
|
168
|
+
context?: HttpContext;
|
|
169
|
+
transferCache?: boolean;
|
|
170
|
+
}): Observable<HttpResponse<any>>;
|
|
171
|
+
releaseOnHoldDispatches(ids: Array<string>, observe?: 'events', reportProgress?: boolean, options?: {
|
|
172
|
+
httpHeaderAccept?: undefined;
|
|
173
|
+
context?: HttpContext;
|
|
174
|
+
transferCache?: boolean;
|
|
175
|
+
}): Observable<HttpEvent<any>>;
|
|
176
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DispatchesService, [null, { optional: true; }, { optional: true; }]>;
|
|
177
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DispatchesService>;
|
|
114
178
|
}
|
|
@@ -2451,7 +2451,159 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImpor
|
|
|
2451
2451
|
* Do not edit the class manually.
|
|
2452
2452
|
*/
|
|
2453
2453
|
/* tslint:disable:no-unused-variable member-ordering */
|
|
2454
|
-
class
|
|
2454
|
+
class DispatchItemsService {
|
|
2455
|
+
httpClient;
|
|
2456
|
+
basePath = 'http://localhost';
|
|
2457
|
+
defaultHeaders = new HttpHeaders();
|
|
2458
|
+
configuration = new Configuration();
|
|
2459
|
+
encoder;
|
|
2460
|
+
constructor(httpClient, basePath, configuration) {
|
|
2461
|
+
this.httpClient = httpClient;
|
|
2462
|
+
if (configuration) {
|
|
2463
|
+
this.configuration = configuration;
|
|
2464
|
+
}
|
|
2465
|
+
if (typeof this.configuration.basePath !== 'string') {
|
|
2466
|
+
const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
|
|
2467
|
+
if (firstBasePath != undefined) {
|
|
2468
|
+
basePath = firstBasePath;
|
|
2469
|
+
}
|
|
2470
|
+
if (typeof basePath !== 'string') {
|
|
2471
|
+
basePath = this.basePath;
|
|
2472
|
+
}
|
|
2473
|
+
this.configuration.basePath = basePath;
|
|
2474
|
+
}
|
|
2475
|
+
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
2476
|
+
}
|
|
2477
|
+
// @ts-ignore
|
|
2478
|
+
addToHttpParams(httpParams, value, key) {
|
|
2479
|
+
if (typeof value === "object" && value instanceof Date === false) {
|
|
2480
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
2481
|
+
}
|
|
2482
|
+
else {
|
|
2483
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
|
|
2484
|
+
}
|
|
2485
|
+
return httpParams;
|
|
2486
|
+
}
|
|
2487
|
+
addToHttpParamsRecursive(httpParams, value, key) {
|
|
2488
|
+
if (value == null) {
|
|
2489
|
+
return httpParams;
|
|
2490
|
+
}
|
|
2491
|
+
if (typeof value === "object") {
|
|
2492
|
+
if (Array.isArray(value)) {
|
|
2493
|
+
value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
|
|
2494
|
+
}
|
|
2495
|
+
else if (value instanceof Date) {
|
|
2496
|
+
if (key != null) {
|
|
2497
|
+
httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
|
|
2498
|
+
}
|
|
2499
|
+
else {
|
|
2500
|
+
throw Error("key may not be null if value is Date");
|
|
2501
|
+
}
|
|
2502
|
+
}
|
|
2503
|
+
else {
|
|
2504
|
+
Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
|
|
2505
|
+
}
|
|
2506
|
+
}
|
|
2507
|
+
else if (key != null) {
|
|
2508
|
+
httpParams = httpParams.append(key, value);
|
|
2509
|
+
}
|
|
2510
|
+
else {
|
|
2511
|
+
throw Error("key may not be null if value is not object or array");
|
|
2512
|
+
}
|
|
2513
|
+
return httpParams;
|
|
2514
|
+
}
|
|
2515
|
+
getDispatchItems(id, $skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
|
|
2516
|
+
if (id === null || id === undefined) {
|
|
2517
|
+
throw new Error('Required parameter id was null or undefined when calling getDispatchItems.');
|
|
2518
|
+
}
|
|
2519
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
2520
|
+
if ($skip !== undefined && $skip !== null) {
|
|
2521
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
|
|
2522
|
+
}
|
|
2523
|
+
if ($top !== undefined && $top !== null) {
|
|
2524
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
|
|
2525
|
+
}
|
|
2526
|
+
if ($orderby !== undefined && $orderby !== null) {
|
|
2527
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
|
|
2528
|
+
}
|
|
2529
|
+
if ($filter !== undefined && $filter !== null) {
|
|
2530
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
|
|
2531
|
+
}
|
|
2532
|
+
if ($search !== undefined && $search !== null) {
|
|
2533
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
|
|
2534
|
+
}
|
|
2535
|
+
let localVarHeaders = this.defaultHeaders;
|
|
2536
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
2537
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
2538
|
+
// to determine the Accept header
|
|
2539
|
+
const httpHeaderAccepts = [
|
|
2540
|
+
'application/json'
|
|
2541
|
+
];
|
|
2542
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
2543
|
+
}
|
|
2544
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
2545
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
2546
|
+
}
|
|
2547
|
+
let localVarHttpContext = options && options.context;
|
|
2548
|
+
if (localVarHttpContext === undefined) {
|
|
2549
|
+
localVarHttpContext = new HttpContext();
|
|
2550
|
+
}
|
|
2551
|
+
let localVarTransferCache = options && options.transferCache;
|
|
2552
|
+
if (localVarTransferCache === undefined) {
|
|
2553
|
+
localVarTransferCache = true;
|
|
2554
|
+
}
|
|
2555
|
+
let responseType_ = 'json';
|
|
2556
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
2557
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
2558
|
+
responseType_ = 'text';
|
|
2559
|
+
}
|
|
2560
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
2561
|
+
responseType_ = 'json';
|
|
2562
|
+
}
|
|
2563
|
+
else {
|
|
2564
|
+
responseType_ = 'blob';
|
|
2565
|
+
}
|
|
2566
|
+
}
|
|
2567
|
+
let localVarPath = `/dispatches/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/items`;
|
|
2568
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
2569
|
+
context: localVarHttpContext,
|
|
2570
|
+
params: localVarQueryParameters,
|
|
2571
|
+
responseType: responseType_,
|
|
2572
|
+
withCredentials: this.configuration.withCredentials,
|
|
2573
|
+
headers: localVarHeaders,
|
|
2574
|
+
observe: observe,
|
|
2575
|
+
transferCache: localVarTransferCache,
|
|
2576
|
+
reportProgress: reportProgress
|
|
2577
|
+
});
|
|
2578
|
+
}
|
|
2579
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: DispatchItemsService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2580
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: DispatchItemsService, providedIn: 'root' });
|
|
2581
|
+
}
|
|
2582
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: DispatchItemsService, decorators: [{
|
|
2583
|
+
type: Injectable,
|
|
2584
|
+
args: [{
|
|
2585
|
+
providedIn: 'root'
|
|
2586
|
+
}]
|
|
2587
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
2588
|
+
type: Optional
|
|
2589
|
+
}, {
|
|
2590
|
+
type: Inject,
|
|
2591
|
+
args: [BASE_PATH]
|
|
2592
|
+
}] }, { type: Configuration, decorators: [{
|
|
2593
|
+
type: Optional
|
|
2594
|
+
}] }] });
|
|
2595
|
+
|
|
2596
|
+
/**
|
|
2597
|
+
* Wms.API.Client
|
|
2598
|
+
*
|
|
2599
|
+
*
|
|
2600
|
+
*
|
|
2601
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2602
|
+
* https://openapi-generator.tech
|
|
2603
|
+
* Do not edit the class manually.
|
|
2604
|
+
*/
|
|
2605
|
+
/* tslint:disable:no-unused-variable member-ordering */
|
|
2606
|
+
class DispatchesService {
|
|
2455
2607
|
httpClient;
|
|
2456
2608
|
basePath = 'http://localhost';
|
|
2457
2609
|
defaultHeaders = new HttpHeaders();
|
|
@@ -2512,6 +2664,116 @@ class DispatchService {
|
|
|
2512
2664
|
}
|
|
2513
2665
|
return httpParams;
|
|
2514
2666
|
}
|
|
2667
|
+
cancelDispatches(ids, observe = 'body', reportProgress = false, options) {
|
|
2668
|
+
if (ids === null || ids === undefined) {
|
|
2669
|
+
throw new Error('Required parameter ids was null or undefined when calling cancelDispatches.');
|
|
2670
|
+
}
|
|
2671
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
2672
|
+
if (ids) {
|
|
2673
|
+
ids.forEach((element) => {
|
|
2674
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, element, 'ids');
|
|
2675
|
+
});
|
|
2676
|
+
}
|
|
2677
|
+
let localVarHeaders = this.defaultHeaders;
|
|
2678
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
2679
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
2680
|
+
// to determine the Accept header
|
|
2681
|
+
const httpHeaderAccepts = [];
|
|
2682
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
2683
|
+
}
|
|
2684
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
2685
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
2686
|
+
}
|
|
2687
|
+
let localVarHttpContext = options && options.context;
|
|
2688
|
+
if (localVarHttpContext === undefined) {
|
|
2689
|
+
localVarHttpContext = new HttpContext();
|
|
2690
|
+
}
|
|
2691
|
+
let localVarTransferCache = options && options.transferCache;
|
|
2692
|
+
if (localVarTransferCache === undefined) {
|
|
2693
|
+
localVarTransferCache = true;
|
|
2694
|
+
}
|
|
2695
|
+
let responseType_ = 'json';
|
|
2696
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
2697
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
2698
|
+
responseType_ = 'text';
|
|
2699
|
+
}
|
|
2700
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
2701
|
+
responseType_ = 'json';
|
|
2702
|
+
}
|
|
2703
|
+
else {
|
|
2704
|
+
responseType_ = 'blob';
|
|
2705
|
+
}
|
|
2706
|
+
}
|
|
2707
|
+
let localVarPath = `/dispatches/cancel`;
|
|
2708
|
+
return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, {
|
|
2709
|
+
context: localVarHttpContext,
|
|
2710
|
+
params: localVarQueryParameters,
|
|
2711
|
+
responseType: responseType_,
|
|
2712
|
+
withCredentials: this.configuration.withCredentials,
|
|
2713
|
+
headers: localVarHeaders,
|
|
2714
|
+
observe: observe,
|
|
2715
|
+
transferCache: localVarTransferCache,
|
|
2716
|
+
reportProgress: reportProgress
|
|
2717
|
+
});
|
|
2718
|
+
}
|
|
2719
|
+
confirmDispatches(ids, dispatchDate, observe = 'body', reportProgress = false, options) {
|
|
2720
|
+
if (ids === null || ids === undefined) {
|
|
2721
|
+
throw new Error('Required parameter ids was null or undefined when calling confirmDispatches.');
|
|
2722
|
+
}
|
|
2723
|
+
if (dispatchDate === null || dispatchDate === undefined) {
|
|
2724
|
+
throw new Error('Required parameter dispatchDate was null or undefined when calling confirmDispatches.');
|
|
2725
|
+
}
|
|
2726
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
2727
|
+
if (ids) {
|
|
2728
|
+
ids.forEach((element) => {
|
|
2729
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, element, 'ids');
|
|
2730
|
+
});
|
|
2731
|
+
}
|
|
2732
|
+
if (dispatchDate !== undefined && dispatchDate !== null) {
|
|
2733
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, dispatchDate, 'dispatchDate');
|
|
2734
|
+
}
|
|
2735
|
+
let localVarHeaders = this.defaultHeaders;
|
|
2736
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
2737
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
2738
|
+
// to determine the Accept header
|
|
2739
|
+
const httpHeaderAccepts = [];
|
|
2740
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
2741
|
+
}
|
|
2742
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
2743
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
2744
|
+
}
|
|
2745
|
+
let localVarHttpContext = options && options.context;
|
|
2746
|
+
if (localVarHttpContext === undefined) {
|
|
2747
|
+
localVarHttpContext = new HttpContext();
|
|
2748
|
+
}
|
|
2749
|
+
let localVarTransferCache = options && options.transferCache;
|
|
2750
|
+
if (localVarTransferCache === undefined) {
|
|
2751
|
+
localVarTransferCache = true;
|
|
2752
|
+
}
|
|
2753
|
+
let responseType_ = 'json';
|
|
2754
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
2755
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
2756
|
+
responseType_ = 'text';
|
|
2757
|
+
}
|
|
2758
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
2759
|
+
responseType_ = 'json';
|
|
2760
|
+
}
|
|
2761
|
+
else {
|
|
2762
|
+
responseType_ = 'blob';
|
|
2763
|
+
}
|
|
2764
|
+
}
|
|
2765
|
+
let localVarPath = `/dispatches/confirm`;
|
|
2766
|
+
return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, {
|
|
2767
|
+
context: localVarHttpContext,
|
|
2768
|
+
params: localVarQueryParameters,
|
|
2769
|
+
responseType: responseType_,
|
|
2770
|
+
withCredentials: this.configuration.withCredentials,
|
|
2771
|
+
headers: localVarHeaders,
|
|
2772
|
+
observe: observe,
|
|
2773
|
+
transferCache: localVarTransferCache,
|
|
2774
|
+
reportProgress: reportProgress
|
|
2775
|
+
});
|
|
2776
|
+
}
|
|
2515
2777
|
getDispatch(id, observe = 'body', reportProgress = false, options) {
|
|
2516
2778
|
if (id === null || id === undefined) {
|
|
2517
2779
|
throw new Error('Required parameter id was null or undefined when calling getDispatch.');
|
|
@@ -2548,7 +2810,7 @@ class DispatchService {
|
|
|
2548
2810
|
responseType_ = 'blob';
|
|
2549
2811
|
}
|
|
2550
2812
|
}
|
|
2551
|
-
let localVarPath = `/
|
|
2813
|
+
let localVarPath = `/dispatches/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
|
|
2552
2814
|
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
2553
2815
|
context: localVarHttpContext,
|
|
2554
2816
|
responseType: responseType_,
|
|
@@ -2595,7 +2857,7 @@ class DispatchService {
|
|
|
2595
2857
|
responseType_ = 'blob';
|
|
2596
2858
|
}
|
|
2597
2859
|
}
|
|
2598
|
-
let localVarPath = `/
|
|
2860
|
+
let localVarPath = `/dispatches/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/summary`;
|
|
2599
2861
|
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
2600
2862
|
context: localVarHttpContext,
|
|
2601
2863
|
responseType: responseType_,
|
|
@@ -2661,7 +2923,7 @@ class DispatchService {
|
|
|
2661
2923
|
responseType_ = 'blob';
|
|
2662
2924
|
}
|
|
2663
2925
|
}
|
|
2664
|
-
let localVarPath = `/
|
|
2926
|
+
let localVarPath = `/dispatches/${this.configuration.encodeParam({ name: "orderStatus", value: orderStatus, in: "path", style: "simple", explode: false, dataType: "OrderStatus", dataFormat: undefined })}`;
|
|
2665
2927
|
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
2666
2928
|
context: localVarHttpContext,
|
|
2667
2929
|
params: localVarQueryParameters,
|
|
@@ -2734,121 +2996,21 @@ class DispatchService {
|
|
|
2734
2996
|
reportProgress: reportProgress
|
|
2735
2997
|
});
|
|
2736
2998
|
}
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: DispatchService, decorators: [{
|
|
2741
|
-
type: Injectable,
|
|
2742
|
-
args: [{
|
|
2743
|
-
providedIn: 'root'
|
|
2744
|
-
}]
|
|
2745
|
-
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
2746
|
-
type: Optional
|
|
2747
|
-
}, {
|
|
2748
|
-
type: Inject,
|
|
2749
|
-
args: [BASE_PATH]
|
|
2750
|
-
}] }, { type: Configuration, decorators: [{
|
|
2751
|
-
type: Optional
|
|
2752
|
-
}] }] });
|
|
2753
|
-
|
|
2754
|
-
/**
|
|
2755
|
-
* Wms.API.Client
|
|
2756
|
-
*
|
|
2757
|
-
*
|
|
2758
|
-
*
|
|
2759
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2760
|
-
* https://openapi-generator.tech
|
|
2761
|
-
* Do not edit the class manually.
|
|
2762
|
-
*/
|
|
2763
|
-
/* tslint:disable:no-unused-variable member-ordering */
|
|
2764
|
-
class DispatchItemsService {
|
|
2765
|
-
httpClient;
|
|
2766
|
-
basePath = 'http://localhost';
|
|
2767
|
-
defaultHeaders = new HttpHeaders();
|
|
2768
|
-
configuration = new Configuration();
|
|
2769
|
-
encoder;
|
|
2770
|
-
constructor(httpClient, basePath, configuration) {
|
|
2771
|
-
this.httpClient = httpClient;
|
|
2772
|
-
if (configuration) {
|
|
2773
|
-
this.configuration = configuration;
|
|
2774
|
-
}
|
|
2775
|
-
if (typeof this.configuration.basePath !== 'string') {
|
|
2776
|
-
const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
|
|
2777
|
-
if (firstBasePath != undefined) {
|
|
2778
|
-
basePath = firstBasePath;
|
|
2779
|
-
}
|
|
2780
|
-
if (typeof basePath !== 'string') {
|
|
2781
|
-
basePath = this.basePath;
|
|
2782
|
-
}
|
|
2783
|
-
this.configuration.basePath = basePath;
|
|
2784
|
-
}
|
|
2785
|
-
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
2786
|
-
}
|
|
2787
|
-
// @ts-ignore
|
|
2788
|
-
addToHttpParams(httpParams, value, key) {
|
|
2789
|
-
if (typeof value === "object" && value instanceof Date === false) {
|
|
2790
|
-
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
2791
|
-
}
|
|
2792
|
-
else {
|
|
2793
|
-
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
|
|
2794
|
-
}
|
|
2795
|
-
return httpParams;
|
|
2796
|
-
}
|
|
2797
|
-
addToHttpParamsRecursive(httpParams, value, key) {
|
|
2798
|
-
if (value == null) {
|
|
2799
|
-
return httpParams;
|
|
2800
|
-
}
|
|
2801
|
-
if (typeof value === "object") {
|
|
2802
|
-
if (Array.isArray(value)) {
|
|
2803
|
-
value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
|
|
2804
|
-
}
|
|
2805
|
-
else if (value instanceof Date) {
|
|
2806
|
-
if (key != null) {
|
|
2807
|
-
httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
|
|
2808
|
-
}
|
|
2809
|
-
else {
|
|
2810
|
-
throw Error("key may not be null if value is Date");
|
|
2811
|
-
}
|
|
2812
|
-
}
|
|
2813
|
-
else {
|
|
2814
|
-
Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
|
|
2815
|
-
}
|
|
2816
|
-
}
|
|
2817
|
-
else if (key != null) {
|
|
2818
|
-
httpParams = httpParams.append(key, value);
|
|
2819
|
-
}
|
|
2820
|
-
else {
|
|
2821
|
-
throw Error("key may not be null if value is not object or array");
|
|
2822
|
-
}
|
|
2823
|
-
return httpParams;
|
|
2824
|
-
}
|
|
2825
|
-
getDispatchItems(id, $skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
|
|
2826
|
-
if (id === null || id === undefined) {
|
|
2827
|
-
throw new Error('Required parameter id was null or undefined when calling getDispatchItems.');
|
|
2999
|
+
releaseOnHoldDispatches(ids, observe = 'body', reportProgress = false, options) {
|
|
3000
|
+
if (ids === null || ids === undefined) {
|
|
3001
|
+
throw new Error('Required parameter ids was null or undefined when calling releaseOnHoldDispatches.');
|
|
2828
3002
|
}
|
|
2829
3003
|
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
2830
|
-
if (
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
|
|
2835
|
-
}
|
|
2836
|
-
if ($orderby !== undefined && $orderby !== null) {
|
|
2837
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
|
|
2838
|
-
}
|
|
2839
|
-
if ($filter !== undefined && $filter !== null) {
|
|
2840
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
|
|
2841
|
-
}
|
|
2842
|
-
if ($search !== undefined && $search !== null) {
|
|
2843
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
|
|
3004
|
+
if (ids) {
|
|
3005
|
+
ids.forEach((element) => {
|
|
3006
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, element, 'ids');
|
|
3007
|
+
});
|
|
2844
3008
|
}
|
|
2845
3009
|
let localVarHeaders = this.defaultHeaders;
|
|
2846
3010
|
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
2847
3011
|
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
2848
3012
|
// to determine the Accept header
|
|
2849
|
-
const httpHeaderAccepts = [
|
|
2850
|
-
'application/json'
|
|
2851
|
-
];
|
|
3013
|
+
const httpHeaderAccepts = [];
|
|
2852
3014
|
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
2853
3015
|
}
|
|
2854
3016
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
@@ -2874,8 +3036,8 @@ class DispatchItemsService {
|
|
|
2874
3036
|
responseType_ = 'blob';
|
|
2875
3037
|
}
|
|
2876
3038
|
}
|
|
2877
|
-
let localVarPath = `/
|
|
2878
|
-
return this.httpClient.request('
|
|
3039
|
+
let localVarPath = `/dispatches/release-on-hold`;
|
|
3040
|
+
return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, {
|
|
2879
3041
|
context: localVarHttpContext,
|
|
2880
3042
|
params: localVarQueryParameters,
|
|
2881
3043
|
responseType: responseType_,
|
|
@@ -2886,10 +3048,10 @@ class DispatchItemsService {
|
|
|
2886
3048
|
reportProgress: reportProgress
|
|
2887
3049
|
});
|
|
2888
3050
|
}
|
|
2889
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type:
|
|
2890
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type:
|
|
3051
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: DispatchesService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3052
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: DispatchesService, providedIn: 'root' });
|
|
2891
3053
|
}
|
|
2892
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type:
|
|
3054
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: DispatchesService, decorators: [{
|
|
2893
3055
|
type: Injectable,
|
|
2894
3056
|
args: [{
|
|
2895
3057
|
providedIn: 'root'
|
|
@@ -6093,7 +6255,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImpor
|
|
|
6093
6255
|
type: Optional
|
|
6094
6256
|
}] }] });
|
|
6095
6257
|
|
|
6096
|
-
const APIS = [AnalyticsService, CompaniesService, DcsService, DeliveriesService, DeliveryItemsService,
|
|
6258
|
+
const APIS = [AnalyticsService, CompaniesService, DcsService, DeliveriesService, DeliveryItemsService, DispatchItemsService, DispatchesService, HealthService, NotesService, PermissionsService, ProductMastersService, ProductQuantitiesService, ReasonsService, SettingsService, SummaryService, TaskCompletionTimeService, TaskOperationsService, TaskUserRecordsService, UserService, UsersInternalService];
|
|
6097
6259
|
|
|
6098
6260
|
/**
|
|
6099
6261
|
* Wms.API.Client
|
|
@@ -6574,5 +6736,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImpor
|
|
|
6574
6736
|
* Generated bundle index. Do not edit.
|
|
6575
6737
|
*/
|
|
6576
6738
|
|
|
6577
|
-
export { APIS, AnalyticsService, ApiModule, BASE_PATH, COLLECTION_FORMATS, CompaniesService, Configuration, DcsService, DeliveriesService, DeliveryItemsService, DeliveryType, DeviceType, DispatchItemsService,
|
|
6739
|
+
export { APIS, AnalyticsService, ApiModule, BASE_PATH, COLLECTION_FORMATS, CompaniesService, Configuration, DcsService, DeliveriesService, DeliveryItemsService, DeliveryType, DeviceType, DispatchItemsService, DispatchesService, HealthService, NoteCategory, NoteSourceType, NotesService, OrderStatus, OrderType, PackingProcess, PermissionsService, PickingProcess, ProductMastersService, ProductQuantitiesService, QcType, ReasonType, ReasonsService, RecordType, SettingsService, SummaryService, TaskCompletionTimeService, TaskOperationsService, TaskUserRecordsService, UserCompanyType, UserService, UsersInternalService };
|
|
6578
6740
|
//# sourceMappingURL=indigina-wms-api.mjs.map
|