@indigina/wms-api 0.0.51 → 0.0.53
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 +5 -1
- package/api/deliveryItems.service.d.ts +21 -0
- package/api/dispatch.service.d.ts +67 -0
- package/api/dispatchItems.service.d.ts +43 -0
- package/fesm2022/indigina-wms-api.mjs +467 -2
- package/fesm2022/indigina-wms-api.mjs.map +1 -1
- package/model/deliveryItem.d.ts +1 -0
- package/model/dispatch.d.ts +85 -0
- package/model/dispatchGridView.d.ts +58 -0
- package/model/dispatchItemView.d.ts +32 -0
- package/model/dispatchItems.d.ts +14 -0
- package/model/dispatches.d.ts +14 -0
- package/model/models.d.ts +8 -0
- package/model/orderType.d.ts +20 -0
- package/model/packingProcess.d.ts +17 -0
- package/model/pickingProcess.d.ts +17 -0
- package/model/productMaster.d.ts +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @indigina/wms-api@0.0.
|
|
1
|
+
# @indigina/wms-api@0.0.53
|
|
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.53 --save
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
_without publishing (not recommended):_
|
package/api/api.d.ts
CHANGED
|
@@ -8,6 +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
|
+
export * from './dispatchItems.service';
|
|
14
|
+
import { DispatchItemsService } from './dispatchItems.service';
|
|
11
15
|
export * from './health.service';
|
|
12
16
|
import { HealthService } from './health.service';
|
|
13
17
|
export * from './notes.service';
|
|
@@ -30,4 +34,4 @@ export * from './taskUserRecords.service';
|
|
|
30
34
|
import { TaskUserRecordsService } from './taskUserRecords.service';
|
|
31
35
|
export * from './user.service';
|
|
32
36
|
import { UserService } from './user.service';
|
|
33
|
-
export declare const APIS: (typeof AnalyticsService | typeof CompaniesService | typeof DcsService | typeof DeliveriesService | typeof DeliveryItemsService | typeof HealthService | typeof NotesService | typeof PermissionsService | typeof ProductMastersService | typeof ProductQuantitiesService | typeof ReasonsService | typeof SettingsService | typeof SummaryService | typeof TaskOperationsService | typeof TaskUserRecordsService | typeof UserService)[];
|
|
37
|
+
export declare const APIS: (typeof AnalyticsService | typeof CompaniesService | typeof DcsService | typeof DeliveriesService | typeof DeliveryItemsService | typeof DispatchService | typeof DispatchItemsService | typeof HealthService | typeof NotesService | typeof PermissionsService | typeof ProductMastersService | typeof ProductQuantitiesService | typeof ReasonsService | typeof SettingsService | typeof SummaryService | typeof TaskOperationsService | typeof TaskUserRecordsService | typeof UserService)[];
|
|
@@ -55,6 +55,27 @@ export declare class DeliveryItemsService {
|
|
|
55
55
|
context?: HttpContext;
|
|
56
56
|
transferCache?: boolean;
|
|
57
57
|
}): Observable<HttpEvent<any>>;
|
|
58
|
+
/**
|
|
59
|
+
* Getting delivery Item by id
|
|
60
|
+
* @param id
|
|
61
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
62
|
+
* @param reportProgress flag to report request and response progress.
|
|
63
|
+
*/
|
|
64
|
+
getDeliveryItem(id: string, observe?: 'body', reportProgress?: boolean, options?: {
|
|
65
|
+
httpHeaderAccept?: 'application/json';
|
|
66
|
+
context?: HttpContext;
|
|
67
|
+
transferCache?: boolean;
|
|
68
|
+
}): Observable<DeliveryItem>;
|
|
69
|
+
getDeliveryItem(id: string, observe?: 'response', reportProgress?: boolean, options?: {
|
|
70
|
+
httpHeaderAccept?: 'application/json';
|
|
71
|
+
context?: HttpContext;
|
|
72
|
+
transferCache?: boolean;
|
|
73
|
+
}): Observable<HttpResponse<DeliveryItem>>;
|
|
74
|
+
getDeliveryItem(id: string, observe?: 'events', reportProgress?: boolean, options?: {
|
|
75
|
+
httpHeaderAccept?: 'application/json';
|
|
76
|
+
context?: HttpContext;
|
|
77
|
+
transferCache?: boolean;
|
|
78
|
+
}): Observable<HttpEvent<DeliveryItem>>;
|
|
58
79
|
/**
|
|
59
80
|
* Getting delivery items
|
|
60
81
|
* @param id
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { HttpClient, HttpHeaders, HttpResponse, HttpEvent, HttpParameterCodec, HttpContext } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { Dispatch } from '../model/dispatch';
|
|
4
|
+
import { Dispatches } from '../model/dispatches';
|
|
5
|
+
import { OrderStatus } from '../model/orderStatus';
|
|
6
|
+
import { Configuration } from '../configuration';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class DispatchService {
|
|
9
|
+
protected httpClient: HttpClient;
|
|
10
|
+
protected basePath: string;
|
|
11
|
+
defaultHeaders: HttpHeaders;
|
|
12
|
+
configuration: Configuration;
|
|
13
|
+
encoder: HttpParameterCodec;
|
|
14
|
+
constructor(httpClient: HttpClient, basePath: string | string[], configuration: Configuration);
|
|
15
|
+
private addToHttpParams;
|
|
16
|
+
private addToHttpParamsRecursive;
|
|
17
|
+
/**
|
|
18
|
+
* Getting dispatch by id
|
|
19
|
+
* @param id
|
|
20
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
21
|
+
* @param reportProgress flag to report request and response progress.
|
|
22
|
+
*/
|
|
23
|
+
getDispatch(id: string, observe?: 'body', reportProgress?: boolean, options?: {
|
|
24
|
+
httpHeaderAccept?: 'application/json';
|
|
25
|
+
context?: HttpContext;
|
|
26
|
+
transferCache?: boolean;
|
|
27
|
+
}): Observable<Dispatch>;
|
|
28
|
+
getDispatch(id: string, observe?: 'response', reportProgress?: boolean, options?: {
|
|
29
|
+
httpHeaderAccept?: 'application/json';
|
|
30
|
+
context?: HttpContext;
|
|
31
|
+
transferCache?: boolean;
|
|
32
|
+
}): Observable<HttpResponse<Dispatch>>;
|
|
33
|
+
getDispatch(id: string, observe?: 'events', reportProgress?: boolean, options?: {
|
|
34
|
+
httpHeaderAccept?: 'application/json';
|
|
35
|
+
context?: HttpContext;
|
|
36
|
+
transferCache?: boolean;
|
|
37
|
+
}): Observable<HttpEvent<Dispatch>>;
|
|
38
|
+
/**
|
|
39
|
+
* Getting dispatches
|
|
40
|
+
* @param orderStatus
|
|
41
|
+
* @param $skip
|
|
42
|
+
* @param $top
|
|
43
|
+
* @param $orderby
|
|
44
|
+
* @param $filter
|
|
45
|
+
* @param $search
|
|
46
|
+
* @param tabName
|
|
47
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
48
|
+
* @param reportProgress flag to report request and response progress.
|
|
49
|
+
*/
|
|
50
|
+
getDispatchesByOrderStatus(orderStatus: OrderStatus, $skip?: number, $top?: number, $orderby?: string, $filter?: string, $search?: string, tabName?: string, observe?: 'body', reportProgress?: boolean, options?: {
|
|
51
|
+
httpHeaderAccept?: 'application/json';
|
|
52
|
+
context?: HttpContext;
|
|
53
|
+
transferCache?: boolean;
|
|
54
|
+
}): Observable<Dispatches>;
|
|
55
|
+
getDispatchesByOrderStatus(orderStatus: OrderStatus, $skip?: number, $top?: number, $orderby?: string, $filter?: string, $search?: string, tabName?: string, observe?: 'response', reportProgress?: boolean, options?: {
|
|
56
|
+
httpHeaderAccept?: 'application/json';
|
|
57
|
+
context?: HttpContext;
|
|
58
|
+
transferCache?: boolean;
|
|
59
|
+
}): Observable<HttpResponse<Dispatches>>;
|
|
60
|
+
getDispatchesByOrderStatus(orderStatus: OrderStatus, $skip?: number, $top?: number, $orderby?: string, $filter?: string, $search?: string, tabName?: string, observe?: 'events', reportProgress?: boolean, options?: {
|
|
61
|
+
httpHeaderAccept?: 'application/json';
|
|
62
|
+
context?: HttpContext;
|
|
63
|
+
transferCache?: boolean;
|
|
64
|
+
}): Observable<HttpEvent<Dispatches>>;
|
|
65
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DispatchService, [null, { optional: true; }, { optional: true; }]>;
|
|
66
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DispatchService>;
|
|
67
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { HttpClient, HttpHeaders, HttpResponse, HttpEvent, HttpParameterCodec, HttpContext } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { DispatchItems } from '../model/dispatchItems';
|
|
4
|
+
import { Configuration } from '../configuration';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class DispatchItemsService {
|
|
7
|
+
protected httpClient: HttpClient;
|
|
8
|
+
protected basePath: string;
|
|
9
|
+
defaultHeaders: HttpHeaders;
|
|
10
|
+
configuration: Configuration;
|
|
11
|
+
encoder: HttpParameterCodec;
|
|
12
|
+
constructor(httpClient: HttpClient, basePath: string | string[], configuration: Configuration);
|
|
13
|
+
private addToHttpParams;
|
|
14
|
+
private addToHttpParamsRecursive;
|
|
15
|
+
/**
|
|
16
|
+
* Getting dispatch items
|
|
17
|
+
* @param id
|
|
18
|
+
* @param $skip
|
|
19
|
+
* @param $top
|
|
20
|
+
* @param $orderby
|
|
21
|
+
* @param $filter
|
|
22
|
+
* @param $search
|
|
23
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
24
|
+
* @param reportProgress flag to report request and response progress.
|
|
25
|
+
*/
|
|
26
|
+
getDispatchItems(id: string, $skip?: number, $top?: number, $orderby?: string, $filter?: string, $search?: string, observe?: 'body', reportProgress?: boolean, options?: {
|
|
27
|
+
httpHeaderAccept?: 'application/json';
|
|
28
|
+
context?: HttpContext;
|
|
29
|
+
transferCache?: boolean;
|
|
30
|
+
}): Observable<DispatchItems>;
|
|
31
|
+
getDispatchItems(id: string, $skip?: number, $top?: number, $orderby?: string, $filter?: string, $search?: string, observe?: 'response', reportProgress?: boolean, options?: {
|
|
32
|
+
httpHeaderAccept?: 'application/json';
|
|
33
|
+
context?: HttpContext;
|
|
34
|
+
transferCache?: boolean;
|
|
35
|
+
}): Observable<HttpResponse<DispatchItems>>;
|
|
36
|
+
getDispatchItems(id: string, $skip?: number, $top?: number, $orderby?: string, $filter?: string, $search?: string, observe?: 'events', reportProgress?: boolean, options?: {
|
|
37
|
+
httpHeaderAccept?: 'application/json';
|
|
38
|
+
context?: HttpContext;
|
|
39
|
+
transferCache?: boolean;
|
|
40
|
+
}): Observable<HttpEvent<DispatchItems>>;
|
|
41
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DispatchItemsService, [null, { optional: true; }, { optional: true; }]>;
|
|
42
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DispatchItemsService>;
|
|
43
|
+
}
|
|
@@ -2096,6 +2096,53 @@ class DeliveryItemsService {
|
|
|
2096
2096
|
reportProgress: reportProgress
|
|
2097
2097
|
});
|
|
2098
2098
|
}
|
|
2099
|
+
getDeliveryItem(id, observe = 'body', reportProgress = false, options) {
|
|
2100
|
+
if (id === null || id === undefined) {
|
|
2101
|
+
throw new Error('Required parameter id was null or undefined when calling getDeliveryItem.');
|
|
2102
|
+
}
|
|
2103
|
+
let localVarHeaders = this.defaultHeaders;
|
|
2104
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
2105
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
2106
|
+
// to determine the Accept header
|
|
2107
|
+
const httpHeaderAccepts = [
|
|
2108
|
+
'application/json'
|
|
2109
|
+
];
|
|
2110
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
2111
|
+
}
|
|
2112
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
2113
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
2114
|
+
}
|
|
2115
|
+
let localVarHttpContext = options && options.context;
|
|
2116
|
+
if (localVarHttpContext === undefined) {
|
|
2117
|
+
localVarHttpContext = new HttpContext();
|
|
2118
|
+
}
|
|
2119
|
+
let localVarTransferCache = options && options.transferCache;
|
|
2120
|
+
if (localVarTransferCache === undefined) {
|
|
2121
|
+
localVarTransferCache = true;
|
|
2122
|
+
}
|
|
2123
|
+
let responseType_ = 'json';
|
|
2124
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
2125
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
2126
|
+
responseType_ = 'text';
|
|
2127
|
+
}
|
|
2128
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
2129
|
+
responseType_ = 'json';
|
|
2130
|
+
}
|
|
2131
|
+
else {
|
|
2132
|
+
responseType_ = 'blob';
|
|
2133
|
+
}
|
|
2134
|
+
}
|
|
2135
|
+
let localVarPath = `/deliveryItems/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
|
|
2136
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
2137
|
+
context: localVarHttpContext,
|
|
2138
|
+
responseType: responseType_,
|
|
2139
|
+
withCredentials: this.configuration.withCredentials,
|
|
2140
|
+
headers: localVarHeaders,
|
|
2141
|
+
observe: observe,
|
|
2142
|
+
transferCache: localVarTransferCache,
|
|
2143
|
+
reportProgress: reportProgress
|
|
2144
|
+
});
|
|
2145
|
+
}
|
|
2099
2146
|
getDeliveryItems(id, $skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
|
|
2100
2147
|
if (id === null || id === undefined) {
|
|
2101
2148
|
throw new Error('Required parameter id was null or undefined when calling getDeliveryItems.');
|
|
@@ -2243,6 +2290,360 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImpor
|
|
|
2243
2290
|
type: Optional
|
|
2244
2291
|
}] }] });
|
|
2245
2292
|
|
|
2293
|
+
/**
|
|
2294
|
+
* Wms.API.Client
|
|
2295
|
+
*
|
|
2296
|
+
*
|
|
2297
|
+
*
|
|
2298
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2299
|
+
* https://openapi-generator.tech
|
|
2300
|
+
* Do not edit the class manually.
|
|
2301
|
+
*/
|
|
2302
|
+
/* tslint:disable:no-unused-variable member-ordering */
|
|
2303
|
+
class DispatchService {
|
|
2304
|
+
httpClient;
|
|
2305
|
+
basePath = 'http://localhost';
|
|
2306
|
+
defaultHeaders = new HttpHeaders();
|
|
2307
|
+
configuration = new Configuration();
|
|
2308
|
+
encoder;
|
|
2309
|
+
constructor(httpClient, basePath, configuration) {
|
|
2310
|
+
this.httpClient = httpClient;
|
|
2311
|
+
if (configuration) {
|
|
2312
|
+
this.configuration = configuration;
|
|
2313
|
+
}
|
|
2314
|
+
if (typeof this.configuration.basePath !== 'string') {
|
|
2315
|
+
const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
|
|
2316
|
+
if (firstBasePath != undefined) {
|
|
2317
|
+
basePath = firstBasePath;
|
|
2318
|
+
}
|
|
2319
|
+
if (typeof basePath !== 'string') {
|
|
2320
|
+
basePath = this.basePath;
|
|
2321
|
+
}
|
|
2322
|
+
this.configuration.basePath = basePath;
|
|
2323
|
+
}
|
|
2324
|
+
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
2325
|
+
}
|
|
2326
|
+
// @ts-ignore
|
|
2327
|
+
addToHttpParams(httpParams, value, key) {
|
|
2328
|
+
if (typeof value === "object" && value instanceof Date === false) {
|
|
2329
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
2330
|
+
}
|
|
2331
|
+
else {
|
|
2332
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
|
|
2333
|
+
}
|
|
2334
|
+
return httpParams;
|
|
2335
|
+
}
|
|
2336
|
+
addToHttpParamsRecursive(httpParams, value, key) {
|
|
2337
|
+
if (value == null) {
|
|
2338
|
+
return httpParams;
|
|
2339
|
+
}
|
|
2340
|
+
if (typeof value === "object") {
|
|
2341
|
+
if (Array.isArray(value)) {
|
|
2342
|
+
value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
|
|
2343
|
+
}
|
|
2344
|
+
else if (value instanceof Date) {
|
|
2345
|
+
if (key != null) {
|
|
2346
|
+
httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
|
|
2347
|
+
}
|
|
2348
|
+
else {
|
|
2349
|
+
throw Error("key may not be null if value is Date");
|
|
2350
|
+
}
|
|
2351
|
+
}
|
|
2352
|
+
else {
|
|
2353
|
+
Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
|
|
2354
|
+
}
|
|
2355
|
+
}
|
|
2356
|
+
else if (key != null) {
|
|
2357
|
+
httpParams = httpParams.append(key, value);
|
|
2358
|
+
}
|
|
2359
|
+
else {
|
|
2360
|
+
throw Error("key may not be null if value is not object or array");
|
|
2361
|
+
}
|
|
2362
|
+
return httpParams;
|
|
2363
|
+
}
|
|
2364
|
+
getDispatch(id, observe = 'body', reportProgress = false, options) {
|
|
2365
|
+
if (id === null || id === undefined) {
|
|
2366
|
+
throw new Error('Required parameter id was null or undefined when calling getDispatch.');
|
|
2367
|
+
}
|
|
2368
|
+
let localVarHeaders = this.defaultHeaders;
|
|
2369
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
2370
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
2371
|
+
// to determine the Accept header
|
|
2372
|
+
const httpHeaderAccepts = [
|
|
2373
|
+
'application/json'
|
|
2374
|
+
];
|
|
2375
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
2376
|
+
}
|
|
2377
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
2378
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
2379
|
+
}
|
|
2380
|
+
let localVarHttpContext = options && options.context;
|
|
2381
|
+
if (localVarHttpContext === undefined) {
|
|
2382
|
+
localVarHttpContext = new HttpContext();
|
|
2383
|
+
}
|
|
2384
|
+
let localVarTransferCache = options && options.transferCache;
|
|
2385
|
+
if (localVarTransferCache === undefined) {
|
|
2386
|
+
localVarTransferCache = true;
|
|
2387
|
+
}
|
|
2388
|
+
let responseType_ = 'json';
|
|
2389
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
2390
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
2391
|
+
responseType_ = 'text';
|
|
2392
|
+
}
|
|
2393
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
2394
|
+
responseType_ = 'json';
|
|
2395
|
+
}
|
|
2396
|
+
else {
|
|
2397
|
+
responseType_ = 'blob';
|
|
2398
|
+
}
|
|
2399
|
+
}
|
|
2400
|
+
let localVarPath = `/dispatch/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
|
|
2401
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
2402
|
+
context: localVarHttpContext,
|
|
2403
|
+
responseType: responseType_,
|
|
2404
|
+
withCredentials: this.configuration.withCredentials,
|
|
2405
|
+
headers: localVarHeaders,
|
|
2406
|
+
observe: observe,
|
|
2407
|
+
transferCache: localVarTransferCache,
|
|
2408
|
+
reportProgress: reportProgress
|
|
2409
|
+
});
|
|
2410
|
+
}
|
|
2411
|
+
getDispatchesByOrderStatus(orderStatus, $skip, $top, $orderby, $filter, $search, tabName, observe = 'body', reportProgress = false, options) {
|
|
2412
|
+
if (orderStatus === null || orderStatus === undefined) {
|
|
2413
|
+
throw new Error('Required parameter orderStatus was null or undefined when calling getDispatchesByOrderStatus.');
|
|
2414
|
+
}
|
|
2415
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
2416
|
+
if ($skip !== undefined && $skip !== null) {
|
|
2417
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
|
|
2418
|
+
}
|
|
2419
|
+
if ($top !== undefined && $top !== null) {
|
|
2420
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
|
|
2421
|
+
}
|
|
2422
|
+
if ($orderby !== undefined && $orderby !== null) {
|
|
2423
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
|
|
2424
|
+
}
|
|
2425
|
+
if ($filter !== undefined && $filter !== null) {
|
|
2426
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
|
|
2427
|
+
}
|
|
2428
|
+
if ($search !== undefined && $search !== null) {
|
|
2429
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
|
|
2430
|
+
}
|
|
2431
|
+
if (tabName !== undefined && tabName !== null) {
|
|
2432
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, tabName, 'tabName');
|
|
2433
|
+
}
|
|
2434
|
+
let localVarHeaders = this.defaultHeaders;
|
|
2435
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
2436
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
2437
|
+
// to determine the Accept header
|
|
2438
|
+
const httpHeaderAccepts = [
|
|
2439
|
+
'application/json'
|
|
2440
|
+
];
|
|
2441
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
2442
|
+
}
|
|
2443
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
2444
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
2445
|
+
}
|
|
2446
|
+
let localVarHttpContext = options && options.context;
|
|
2447
|
+
if (localVarHttpContext === undefined) {
|
|
2448
|
+
localVarHttpContext = new HttpContext();
|
|
2449
|
+
}
|
|
2450
|
+
let localVarTransferCache = options && options.transferCache;
|
|
2451
|
+
if (localVarTransferCache === undefined) {
|
|
2452
|
+
localVarTransferCache = true;
|
|
2453
|
+
}
|
|
2454
|
+
let responseType_ = 'json';
|
|
2455
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
2456
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
2457
|
+
responseType_ = 'text';
|
|
2458
|
+
}
|
|
2459
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
2460
|
+
responseType_ = 'json';
|
|
2461
|
+
}
|
|
2462
|
+
else {
|
|
2463
|
+
responseType_ = 'blob';
|
|
2464
|
+
}
|
|
2465
|
+
}
|
|
2466
|
+
let localVarPath = `/dispatch/${this.configuration.encodeParam({ name: "orderStatus", value: orderStatus, in: "path", style: "simple", explode: false, dataType: "OrderStatus", dataFormat: undefined })}`;
|
|
2467
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
2468
|
+
context: localVarHttpContext,
|
|
2469
|
+
params: localVarQueryParameters,
|
|
2470
|
+
responseType: responseType_,
|
|
2471
|
+
withCredentials: this.configuration.withCredentials,
|
|
2472
|
+
headers: localVarHeaders,
|
|
2473
|
+
observe: observe,
|
|
2474
|
+
transferCache: localVarTransferCache,
|
|
2475
|
+
reportProgress: reportProgress
|
|
2476
|
+
});
|
|
2477
|
+
}
|
|
2478
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: DispatchService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2479
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: DispatchService, providedIn: 'root' });
|
|
2480
|
+
}
|
|
2481
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: DispatchService, decorators: [{
|
|
2482
|
+
type: Injectable,
|
|
2483
|
+
args: [{
|
|
2484
|
+
providedIn: 'root'
|
|
2485
|
+
}]
|
|
2486
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
2487
|
+
type: Optional
|
|
2488
|
+
}, {
|
|
2489
|
+
type: Inject,
|
|
2490
|
+
args: [BASE_PATH]
|
|
2491
|
+
}] }, { type: Configuration, decorators: [{
|
|
2492
|
+
type: Optional
|
|
2493
|
+
}] }] });
|
|
2494
|
+
|
|
2495
|
+
/**
|
|
2496
|
+
* Wms.API.Client
|
|
2497
|
+
*
|
|
2498
|
+
*
|
|
2499
|
+
*
|
|
2500
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2501
|
+
* https://openapi-generator.tech
|
|
2502
|
+
* Do not edit the class manually.
|
|
2503
|
+
*/
|
|
2504
|
+
/* tslint:disable:no-unused-variable member-ordering */
|
|
2505
|
+
class DispatchItemsService {
|
|
2506
|
+
httpClient;
|
|
2507
|
+
basePath = 'http://localhost';
|
|
2508
|
+
defaultHeaders = new HttpHeaders();
|
|
2509
|
+
configuration = new Configuration();
|
|
2510
|
+
encoder;
|
|
2511
|
+
constructor(httpClient, basePath, configuration) {
|
|
2512
|
+
this.httpClient = httpClient;
|
|
2513
|
+
if (configuration) {
|
|
2514
|
+
this.configuration = configuration;
|
|
2515
|
+
}
|
|
2516
|
+
if (typeof this.configuration.basePath !== 'string') {
|
|
2517
|
+
const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
|
|
2518
|
+
if (firstBasePath != undefined) {
|
|
2519
|
+
basePath = firstBasePath;
|
|
2520
|
+
}
|
|
2521
|
+
if (typeof basePath !== 'string') {
|
|
2522
|
+
basePath = this.basePath;
|
|
2523
|
+
}
|
|
2524
|
+
this.configuration.basePath = basePath;
|
|
2525
|
+
}
|
|
2526
|
+
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
2527
|
+
}
|
|
2528
|
+
// @ts-ignore
|
|
2529
|
+
addToHttpParams(httpParams, value, key) {
|
|
2530
|
+
if (typeof value === "object" && value instanceof Date === false) {
|
|
2531
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
2532
|
+
}
|
|
2533
|
+
else {
|
|
2534
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
|
|
2535
|
+
}
|
|
2536
|
+
return httpParams;
|
|
2537
|
+
}
|
|
2538
|
+
addToHttpParamsRecursive(httpParams, value, key) {
|
|
2539
|
+
if (value == null) {
|
|
2540
|
+
return httpParams;
|
|
2541
|
+
}
|
|
2542
|
+
if (typeof value === "object") {
|
|
2543
|
+
if (Array.isArray(value)) {
|
|
2544
|
+
value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
|
|
2545
|
+
}
|
|
2546
|
+
else if (value instanceof Date) {
|
|
2547
|
+
if (key != null) {
|
|
2548
|
+
httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
|
|
2549
|
+
}
|
|
2550
|
+
else {
|
|
2551
|
+
throw Error("key may not be null if value is Date");
|
|
2552
|
+
}
|
|
2553
|
+
}
|
|
2554
|
+
else {
|
|
2555
|
+
Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
|
|
2556
|
+
}
|
|
2557
|
+
}
|
|
2558
|
+
else if (key != null) {
|
|
2559
|
+
httpParams = httpParams.append(key, value);
|
|
2560
|
+
}
|
|
2561
|
+
else {
|
|
2562
|
+
throw Error("key may not be null if value is not object or array");
|
|
2563
|
+
}
|
|
2564
|
+
return httpParams;
|
|
2565
|
+
}
|
|
2566
|
+
getDispatchItems(id, $skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
|
|
2567
|
+
if (id === null || id === undefined) {
|
|
2568
|
+
throw new Error('Required parameter id was null or undefined when calling getDispatchItems.');
|
|
2569
|
+
}
|
|
2570
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
2571
|
+
if ($skip !== undefined && $skip !== null) {
|
|
2572
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
|
|
2573
|
+
}
|
|
2574
|
+
if ($top !== undefined && $top !== null) {
|
|
2575
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
|
|
2576
|
+
}
|
|
2577
|
+
if ($orderby !== undefined && $orderby !== null) {
|
|
2578
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
|
|
2579
|
+
}
|
|
2580
|
+
if ($filter !== undefined && $filter !== null) {
|
|
2581
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
|
|
2582
|
+
}
|
|
2583
|
+
if ($search !== undefined && $search !== null) {
|
|
2584
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
|
|
2585
|
+
}
|
|
2586
|
+
let localVarHeaders = this.defaultHeaders;
|
|
2587
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
2588
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
2589
|
+
// to determine the Accept header
|
|
2590
|
+
const httpHeaderAccepts = [
|
|
2591
|
+
'application/json'
|
|
2592
|
+
];
|
|
2593
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
2594
|
+
}
|
|
2595
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
2596
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
2597
|
+
}
|
|
2598
|
+
let localVarHttpContext = options && options.context;
|
|
2599
|
+
if (localVarHttpContext === undefined) {
|
|
2600
|
+
localVarHttpContext = new HttpContext();
|
|
2601
|
+
}
|
|
2602
|
+
let localVarTransferCache = options && options.transferCache;
|
|
2603
|
+
if (localVarTransferCache === undefined) {
|
|
2604
|
+
localVarTransferCache = true;
|
|
2605
|
+
}
|
|
2606
|
+
let responseType_ = 'json';
|
|
2607
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
2608
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
2609
|
+
responseType_ = 'text';
|
|
2610
|
+
}
|
|
2611
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
2612
|
+
responseType_ = 'json';
|
|
2613
|
+
}
|
|
2614
|
+
else {
|
|
2615
|
+
responseType_ = 'blob';
|
|
2616
|
+
}
|
|
2617
|
+
}
|
|
2618
|
+
let localVarPath = `/dispatch/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/items`;
|
|
2619
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
2620
|
+
context: localVarHttpContext,
|
|
2621
|
+
params: localVarQueryParameters,
|
|
2622
|
+
responseType: responseType_,
|
|
2623
|
+
withCredentials: this.configuration.withCredentials,
|
|
2624
|
+
headers: localVarHeaders,
|
|
2625
|
+
observe: observe,
|
|
2626
|
+
transferCache: localVarTransferCache,
|
|
2627
|
+
reportProgress: reportProgress
|
|
2628
|
+
});
|
|
2629
|
+
}
|
|
2630
|
+
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 });
|
|
2631
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: DispatchItemsService, providedIn: 'root' });
|
|
2632
|
+
}
|
|
2633
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: DispatchItemsService, decorators: [{
|
|
2634
|
+
type: Injectable,
|
|
2635
|
+
args: [{
|
|
2636
|
+
providedIn: 'root'
|
|
2637
|
+
}]
|
|
2638
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
2639
|
+
type: Optional
|
|
2640
|
+
}, {
|
|
2641
|
+
type: Inject,
|
|
2642
|
+
args: [BASE_PATH]
|
|
2643
|
+
}] }, { type: Configuration, decorators: [{
|
|
2644
|
+
type: Optional
|
|
2645
|
+
}] }] });
|
|
2646
|
+
|
|
2246
2647
|
/**
|
|
2247
2648
|
* Wms.API.Client
|
|
2248
2649
|
*
|
|
@@ -4740,7 +5141,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImpor
|
|
|
4740
5141
|
type: Optional
|
|
4741
5142
|
}] }] });
|
|
4742
5143
|
|
|
4743
|
-
const APIS = [AnalyticsService, CompaniesService, DcsService, DeliveriesService, DeliveryItemsService, HealthService, NotesService, PermissionsService, ProductMastersService, ProductQuantitiesService, ReasonsService, SettingsService, SummaryService, TaskOperationsService, TaskUserRecordsService, UserService];
|
|
5144
|
+
const APIS = [AnalyticsService, CompaniesService, DcsService, DeliveriesService, DeliveryItemsService, DispatchService, DispatchItemsService, HealthService, NotesService, PermissionsService, ProductMastersService, ProductQuantitiesService, ReasonsService, SettingsService, SummaryService, TaskOperationsService, TaskUserRecordsService, UserService];
|
|
4744
5145
|
|
|
4745
5146
|
/**
|
|
4746
5147
|
* Wms.API.Client
|
|
@@ -4874,6 +5275,16 @@ const DeviceType = {
|
|
|
4874
5275
|
* Do not edit the class manually.
|
|
4875
5276
|
*/
|
|
4876
5277
|
|
|
5278
|
+
/**
|
|
5279
|
+
* Wms.API.Client
|
|
5280
|
+
*
|
|
5281
|
+
*
|
|
5282
|
+
*
|
|
5283
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
5284
|
+
* https://openapi-generator.tech
|
|
5285
|
+
* Do not edit the class manually.
|
|
5286
|
+
*/
|
|
5287
|
+
|
|
4877
5288
|
/**
|
|
4878
5289
|
* Wms.API.Client
|
|
4879
5290
|
*
|
|
@@ -4943,6 +5354,60 @@ const OrderStatus = {
|
|
|
4943
5354
|
Booked: 'Booked'
|
|
4944
5355
|
};
|
|
4945
5356
|
|
|
5357
|
+
/**
|
|
5358
|
+
* Wms.API.Client
|
|
5359
|
+
*
|
|
5360
|
+
*
|
|
5361
|
+
*
|
|
5362
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
5363
|
+
* https://openapi-generator.tech
|
|
5364
|
+
* Do not edit the class manually.
|
|
5365
|
+
*/
|
|
5366
|
+
const OrderType = {
|
|
5367
|
+
Standard: 'Standard',
|
|
5368
|
+
Web: 'Web',
|
|
5369
|
+
Expedited: 'Expedited',
|
|
5370
|
+
Ground: 'Ground',
|
|
5371
|
+
EcomCrossDock: 'EcomCrossDock',
|
|
5372
|
+
WorkOrder: 'WorkOrder',
|
|
5373
|
+
Wholesale: 'Wholesale',
|
|
5374
|
+
Retail: 'Retail'
|
|
5375
|
+
};
|
|
5376
|
+
|
|
5377
|
+
/**
|
|
5378
|
+
* Wms.API.Client
|
|
5379
|
+
*
|
|
5380
|
+
*
|
|
5381
|
+
*
|
|
5382
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
5383
|
+
* https://openapi-generator.tech
|
|
5384
|
+
* Do not edit the class manually.
|
|
5385
|
+
*/
|
|
5386
|
+
const PackingProcess = {
|
|
5387
|
+
OrderPacking: 'OrderPacking',
|
|
5388
|
+
WebOrderPacking: 'WebOrderPacking',
|
|
5389
|
+
ClusterPacking: 'ClusterPacking',
|
|
5390
|
+
DispatchPacking: 'DispatchPacking',
|
|
5391
|
+
SkuPacking: 'SkuPacking'
|
|
5392
|
+
};
|
|
5393
|
+
|
|
5394
|
+
/**
|
|
5395
|
+
* Wms.API.Client
|
|
5396
|
+
*
|
|
5397
|
+
*
|
|
5398
|
+
*
|
|
5399
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
5400
|
+
* https://openapi-generator.tech
|
|
5401
|
+
* Do not edit the class manually.
|
|
5402
|
+
*/
|
|
5403
|
+
const PickingProcess = {
|
|
5404
|
+
OrderPicking: 'OrderPicking',
|
|
5405
|
+
OrderPickingToTempBin: 'OrderPickingToTempBin',
|
|
5406
|
+
WavePicking: 'WavePicking',
|
|
5407
|
+
FastDispatch: 'FastDispatch',
|
|
5408
|
+
PickBySku: 'PickBySku'
|
|
5409
|
+
};
|
|
5410
|
+
|
|
4946
5411
|
/**
|
|
4947
5412
|
* Wms.API.Client
|
|
4948
5413
|
*
|
|
@@ -5124,5 +5589,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImpor
|
|
|
5124
5589
|
* Generated bundle index. Do not edit.
|
|
5125
5590
|
*/
|
|
5126
5591
|
|
|
5127
|
-
export { APIS, AnalyticsService, ApiModule, BASE_PATH, COLLECTION_FORMATS, CompaniesService, Configuration, DcsService, DeliveriesService, DeliveryItemsService, DeliveryType, DeviceType, HealthService, NoteCategory, NoteSourceType, NotesService, OrderStatus, PermissionsService, ProductMastersService, ProductQuantitiesService, QcType, ReasonType, ReasonsService, RecordType, SettingsService, SummaryService, TaskOperationsService, TaskUserRecordsService, UserService };
|
|
5592
|
+
export { APIS, AnalyticsService, ApiModule, BASE_PATH, COLLECTION_FORMATS, CompaniesService, Configuration, DcsService, DeliveriesService, DeliveryItemsService, DeliveryType, DeviceType, DispatchItemsService, DispatchService, HealthService, NoteCategory, NoteSourceType, NotesService, OrderStatus, OrderType, PackingProcess, PermissionsService, PickingProcess, ProductMastersService, ProductQuantitiesService, QcType, ReasonType, ReasonsService, RecordType, SettingsService, SummaryService, TaskOperationsService, TaskUserRecordsService, UserService };
|
|
5128
5593
|
//# sourceMappingURL=indigina-wms-api.mjs.map
|