@indigina/wms-api 0.0.45 → 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 +5 -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/fesm2022/indigina-wms-api.mjs +391 -2
- 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 +7 -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/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @indigina/wms-api@0.0.
|
|
1
|
+
# @indigina/wms-api@0.0.46
|
|
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.46 --save
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
_without publishing (not recommended):_
|
package/api/api.d.ts
CHANGED
|
@@ -14,10 +14,14 @@ export * from './notes.service';
|
|
|
14
14
|
import { NotesService } from './notes.service';
|
|
15
15
|
export * from './permissions.service';
|
|
16
16
|
import { PermissionsService } from './permissions.service';
|
|
17
|
+
export * from './productMasters.service';
|
|
18
|
+
import { ProductMastersService } from './productMasters.service';
|
|
19
|
+
export * from './reasons.service';
|
|
20
|
+
import { ReasonsService } from './reasons.service';
|
|
17
21
|
export * from './settings.service';
|
|
18
22
|
import { SettingsService } from './settings.service';
|
|
19
23
|
export * from './summary.service';
|
|
20
24
|
import { SummaryService } from './summary.service';
|
|
21
25
|
export * from './user.service';
|
|
22
26
|
import { UserService } from './user.service';
|
|
23
|
-
export declare const APIS: (typeof AnalyticsService | typeof CompaniesService | typeof DcsService | typeof DeliveriesService | typeof DeliveryItemsService | typeof HealthService | typeof NotesService | typeof PermissionsService | typeof SettingsService | typeof SummaryService | typeof UserService)[];
|
|
27
|
+
export declare const APIS: (typeof AnalyticsService | typeof CompaniesService | typeof DcsService | typeof DeliveriesService | typeof DeliveryItemsService | typeof HealthService | typeof NotesService | typeof PermissionsService | typeof ProductMastersService | typeof ReasonsService | typeof SettingsService | typeof SummaryService | typeof UserService)[];
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { HttpClient, HttpHeaders, HttpResponse, HttpEvent, HttpParameterCodec, HttpContext } from '@angular/common/http';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { Deliveries } from '../model/deliveries';
|
|
4
|
+
import { Delivery } from '../model/delivery';
|
|
4
5
|
import { OrderStatus } from '../model/orderStatus';
|
|
5
6
|
import { Configuration } from '../configuration';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
@@ -89,6 +90,32 @@ export declare class DeliveriesService {
|
|
|
89
90
|
context?: HttpContext;
|
|
90
91
|
transferCache?: boolean;
|
|
91
92
|
}): Observable<HttpEvent<Deliveries>>;
|
|
93
|
+
/**
|
|
94
|
+
* Getting delivery by id
|
|
95
|
+
* @param id
|
|
96
|
+
* @param $skip
|
|
97
|
+
* @param $top
|
|
98
|
+
* @param $orderby
|
|
99
|
+
* @param $filter
|
|
100
|
+
* @param $search
|
|
101
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
102
|
+
* @param reportProgress flag to report request and response progress.
|
|
103
|
+
*/
|
|
104
|
+
getDelivery(id: string, $skip?: number, $top?: number, $orderby?: string, $filter?: string, $search?: string, observe?: 'body', reportProgress?: boolean, options?: {
|
|
105
|
+
httpHeaderAccept?: 'application/json';
|
|
106
|
+
context?: HttpContext;
|
|
107
|
+
transferCache?: boolean;
|
|
108
|
+
}): Observable<Delivery>;
|
|
109
|
+
getDelivery(id: string, $skip?: number, $top?: number, $orderby?: string, $filter?: string, $search?: string, observe?: 'response', reportProgress?: boolean, options?: {
|
|
110
|
+
httpHeaderAccept?: 'application/json';
|
|
111
|
+
context?: HttpContext;
|
|
112
|
+
transferCache?: boolean;
|
|
113
|
+
}): Observable<HttpResponse<Delivery>>;
|
|
114
|
+
getDelivery(id: string, $skip?: number, $top?: number, $orderby?: string, $filter?: string, $search?: string, observe?: 'events', reportProgress?: boolean, options?: {
|
|
115
|
+
httpHeaderAccept?: 'application/json';
|
|
116
|
+
context?: HttpContext;
|
|
117
|
+
transferCache?: boolean;
|
|
118
|
+
}): Observable<HttpEvent<Delivery>>;
|
|
92
119
|
static ɵfac: i0.ɵɵFactoryDeclaration<DeliveriesService, [null, { optional: true; }, { optional: true; }]>;
|
|
93
120
|
static ɵprov: i0.ɵɵInjectableDeclaration<DeliveriesService>;
|
|
94
121
|
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { HttpClient, HttpHeaders, HttpResponse, HttpEvent, HttpParameterCodec, HttpContext } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { ProductMasters } from '../model/productMasters';
|
|
4
|
+
import { Configuration } from '../configuration';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class ProductMastersService {
|
|
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 productMasters
|
|
17
|
+
* @param $skip
|
|
18
|
+
* @param $top
|
|
19
|
+
* @param $orderby
|
|
20
|
+
* @param $filter
|
|
21
|
+
* @param $search
|
|
22
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
23
|
+
* @param reportProgress flag to report request and response progress.
|
|
24
|
+
*/
|
|
25
|
+
getProductMasters($skip?: number, $top?: number, $orderby?: string, $filter?: string, $search?: string, observe?: 'body', reportProgress?: boolean, options?: {
|
|
26
|
+
httpHeaderAccept?: 'application/json';
|
|
27
|
+
context?: HttpContext;
|
|
28
|
+
transferCache?: boolean;
|
|
29
|
+
}): Observable<ProductMasters>;
|
|
30
|
+
getProductMasters($skip?: number, $top?: number, $orderby?: string, $filter?: string, $search?: string, observe?: 'response', reportProgress?: boolean, options?: {
|
|
31
|
+
httpHeaderAccept?: 'application/json';
|
|
32
|
+
context?: HttpContext;
|
|
33
|
+
transferCache?: boolean;
|
|
34
|
+
}): Observable<HttpResponse<ProductMasters>>;
|
|
35
|
+
getProductMasters($skip?: number, $top?: number, $orderby?: string, $filter?: string, $search?: string, observe?: 'events', reportProgress?: boolean, options?: {
|
|
36
|
+
httpHeaderAccept?: 'application/json';
|
|
37
|
+
context?: HttpContext;
|
|
38
|
+
transferCache?: boolean;
|
|
39
|
+
}): Observable<HttpEvent<ProductMasters>>;
|
|
40
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProductMastersService, [null, { optional: true; }, { optional: true; }]>;
|
|
41
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ProductMastersService>;
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { HttpClient, HttpHeaders, HttpResponse, HttpEvent, HttpParameterCodec, HttpContext } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { Reasons } from '../model/reasons';
|
|
4
|
+
import { Configuration } from '../configuration';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class ReasonsService {
|
|
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 reasons
|
|
17
|
+
* @param $skip
|
|
18
|
+
* @param $top
|
|
19
|
+
* @param $orderby
|
|
20
|
+
* @param $filter
|
|
21
|
+
* @param $search
|
|
22
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
23
|
+
* @param reportProgress flag to report request and response progress.
|
|
24
|
+
*/
|
|
25
|
+
getReasons($skip?: number, $top?: number, $orderby?: string, $filter?: string, $search?: string, observe?: 'body', reportProgress?: boolean, options?: {
|
|
26
|
+
httpHeaderAccept?: 'application/json';
|
|
27
|
+
context?: HttpContext;
|
|
28
|
+
transferCache?: boolean;
|
|
29
|
+
}): Observable<Reasons>;
|
|
30
|
+
getReasons($skip?: number, $top?: number, $orderby?: string, $filter?: string, $search?: string, observe?: 'response', reportProgress?: boolean, options?: {
|
|
31
|
+
httpHeaderAccept?: 'application/json';
|
|
32
|
+
context?: HttpContext;
|
|
33
|
+
transferCache?: boolean;
|
|
34
|
+
}): Observable<HttpResponse<Reasons>>;
|
|
35
|
+
getReasons($skip?: number, $top?: number, $orderby?: string, $filter?: string, $search?: string, observe?: 'events', reportProgress?: boolean, options?: {
|
|
36
|
+
httpHeaderAccept?: 'application/json';
|
|
37
|
+
context?: HttpContext;
|
|
38
|
+
transferCache?: boolean;
|
|
39
|
+
}): Observable<HttpEvent<Reasons>>;
|
|
40
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ReasonsService, [null, { optional: true; }, { optional: true; }]>;
|
|
41
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ReasonsService>;
|
|
42
|
+
}
|
|
@@ -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
|
}
|
|
@@ -2140,6 +2204,304 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImpor
|
|
|
2140
2204
|
type: Optional
|
|
2141
2205
|
}] }] });
|
|
2142
2206
|
|
|
2207
|
+
/**
|
|
2208
|
+
* Wms.API.Client
|
|
2209
|
+
*
|
|
2210
|
+
*
|
|
2211
|
+
*
|
|
2212
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2213
|
+
* https://openapi-generator.tech
|
|
2214
|
+
* Do not edit the class manually.
|
|
2215
|
+
*/
|
|
2216
|
+
/* tslint:disable:no-unused-variable member-ordering */
|
|
2217
|
+
class ProductMastersService {
|
|
2218
|
+
httpClient;
|
|
2219
|
+
basePath = 'http://localhost';
|
|
2220
|
+
defaultHeaders = new HttpHeaders();
|
|
2221
|
+
configuration = new Configuration();
|
|
2222
|
+
encoder;
|
|
2223
|
+
constructor(httpClient, basePath, configuration) {
|
|
2224
|
+
this.httpClient = httpClient;
|
|
2225
|
+
if (configuration) {
|
|
2226
|
+
this.configuration = configuration;
|
|
2227
|
+
}
|
|
2228
|
+
if (typeof this.configuration.basePath !== 'string') {
|
|
2229
|
+
const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
|
|
2230
|
+
if (firstBasePath != undefined) {
|
|
2231
|
+
basePath = firstBasePath;
|
|
2232
|
+
}
|
|
2233
|
+
if (typeof basePath !== 'string') {
|
|
2234
|
+
basePath = this.basePath;
|
|
2235
|
+
}
|
|
2236
|
+
this.configuration.basePath = basePath;
|
|
2237
|
+
}
|
|
2238
|
+
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
2239
|
+
}
|
|
2240
|
+
// @ts-ignore
|
|
2241
|
+
addToHttpParams(httpParams, value, key) {
|
|
2242
|
+
if (typeof value === "object" && value instanceof Date === false) {
|
|
2243
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
2244
|
+
}
|
|
2245
|
+
else {
|
|
2246
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
|
|
2247
|
+
}
|
|
2248
|
+
return httpParams;
|
|
2249
|
+
}
|
|
2250
|
+
addToHttpParamsRecursive(httpParams, value, key) {
|
|
2251
|
+
if (value == null) {
|
|
2252
|
+
return httpParams;
|
|
2253
|
+
}
|
|
2254
|
+
if (typeof value === "object") {
|
|
2255
|
+
if (Array.isArray(value)) {
|
|
2256
|
+
value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
|
|
2257
|
+
}
|
|
2258
|
+
else if (value instanceof Date) {
|
|
2259
|
+
if (key != null) {
|
|
2260
|
+
httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
|
|
2261
|
+
}
|
|
2262
|
+
else {
|
|
2263
|
+
throw Error("key may not be null if value is Date");
|
|
2264
|
+
}
|
|
2265
|
+
}
|
|
2266
|
+
else {
|
|
2267
|
+
Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
|
|
2268
|
+
}
|
|
2269
|
+
}
|
|
2270
|
+
else if (key != null) {
|
|
2271
|
+
httpParams = httpParams.append(key, value);
|
|
2272
|
+
}
|
|
2273
|
+
else {
|
|
2274
|
+
throw Error("key may not be null if value is not object or array");
|
|
2275
|
+
}
|
|
2276
|
+
return httpParams;
|
|
2277
|
+
}
|
|
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');
|
|
2294
|
+
}
|
|
2295
|
+
let localVarHeaders = this.defaultHeaders;
|
|
2296
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
2297
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
2298
|
+
// to determine the Accept header
|
|
2299
|
+
const httpHeaderAccepts = [
|
|
2300
|
+
'application/json'
|
|
2301
|
+
];
|
|
2302
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
2303
|
+
}
|
|
2304
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
2305
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
2306
|
+
}
|
|
2307
|
+
let localVarHttpContext = options && options.context;
|
|
2308
|
+
if (localVarHttpContext === undefined) {
|
|
2309
|
+
localVarHttpContext = new HttpContext();
|
|
2310
|
+
}
|
|
2311
|
+
let localVarTransferCache = options && options.transferCache;
|
|
2312
|
+
if (localVarTransferCache === undefined) {
|
|
2313
|
+
localVarTransferCache = true;
|
|
2314
|
+
}
|
|
2315
|
+
let responseType_ = 'json';
|
|
2316
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
2317
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
2318
|
+
responseType_ = 'text';
|
|
2319
|
+
}
|
|
2320
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
2321
|
+
responseType_ = 'json';
|
|
2322
|
+
}
|
|
2323
|
+
else {
|
|
2324
|
+
responseType_ = 'blob';
|
|
2325
|
+
}
|
|
2326
|
+
}
|
|
2327
|
+
let localVarPath = `/productMasters`;
|
|
2328
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
2329
|
+
context: localVarHttpContext,
|
|
2330
|
+
params: localVarQueryParameters,
|
|
2331
|
+
responseType: responseType_,
|
|
2332
|
+
withCredentials: this.configuration.withCredentials,
|
|
2333
|
+
headers: localVarHeaders,
|
|
2334
|
+
observe: observe,
|
|
2335
|
+
transferCache: localVarTransferCache,
|
|
2336
|
+
reportProgress: reportProgress
|
|
2337
|
+
});
|
|
2338
|
+
}
|
|
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' });
|
|
2341
|
+
}
|
|
2342
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: ProductMastersService, decorators: [{
|
|
2343
|
+
type: Injectable,
|
|
2344
|
+
args: [{
|
|
2345
|
+
providedIn: 'root'
|
|
2346
|
+
}]
|
|
2347
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
2348
|
+
type: Optional
|
|
2349
|
+
}, {
|
|
2350
|
+
type: Inject,
|
|
2351
|
+
args: [BASE_PATH]
|
|
2352
|
+
}] }, { type: Configuration, decorators: [{
|
|
2353
|
+
type: Optional
|
|
2354
|
+
}] }] });
|
|
2355
|
+
|
|
2356
|
+
/**
|
|
2357
|
+
* Wms.API.Client
|
|
2358
|
+
*
|
|
2359
|
+
*
|
|
2360
|
+
*
|
|
2361
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2362
|
+
* https://openapi-generator.tech
|
|
2363
|
+
* Do not edit the class manually.
|
|
2364
|
+
*/
|
|
2365
|
+
/* tslint:disable:no-unused-variable member-ordering */
|
|
2366
|
+
class ReasonsService {
|
|
2367
|
+
httpClient;
|
|
2368
|
+
basePath = 'http://localhost';
|
|
2369
|
+
defaultHeaders = new HttpHeaders();
|
|
2370
|
+
configuration = new Configuration();
|
|
2371
|
+
encoder;
|
|
2372
|
+
constructor(httpClient, basePath, configuration) {
|
|
2373
|
+
this.httpClient = httpClient;
|
|
2374
|
+
if (configuration) {
|
|
2375
|
+
this.configuration = configuration;
|
|
2376
|
+
}
|
|
2377
|
+
if (typeof this.configuration.basePath !== 'string') {
|
|
2378
|
+
const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
|
|
2379
|
+
if (firstBasePath != undefined) {
|
|
2380
|
+
basePath = firstBasePath;
|
|
2381
|
+
}
|
|
2382
|
+
if (typeof basePath !== 'string') {
|
|
2383
|
+
basePath = this.basePath;
|
|
2384
|
+
}
|
|
2385
|
+
this.configuration.basePath = basePath;
|
|
2386
|
+
}
|
|
2387
|
+
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
2388
|
+
}
|
|
2389
|
+
// @ts-ignore
|
|
2390
|
+
addToHttpParams(httpParams, value, key) {
|
|
2391
|
+
if (typeof value === "object" && value instanceof Date === false) {
|
|
2392
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
2393
|
+
}
|
|
2394
|
+
else {
|
|
2395
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
|
|
2396
|
+
}
|
|
2397
|
+
return httpParams;
|
|
2398
|
+
}
|
|
2399
|
+
addToHttpParamsRecursive(httpParams, value, key) {
|
|
2400
|
+
if (value == null) {
|
|
2401
|
+
return httpParams;
|
|
2402
|
+
}
|
|
2403
|
+
if (typeof value === "object") {
|
|
2404
|
+
if (Array.isArray(value)) {
|
|
2405
|
+
value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
|
|
2406
|
+
}
|
|
2407
|
+
else if (value instanceof Date) {
|
|
2408
|
+
if (key != null) {
|
|
2409
|
+
httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
|
|
2410
|
+
}
|
|
2411
|
+
else {
|
|
2412
|
+
throw Error("key may not be null if value is Date");
|
|
2413
|
+
}
|
|
2414
|
+
}
|
|
2415
|
+
else {
|
|
2416
|
+
Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
|
|
2417
|
+
}
|
|
2418
|
+
}
|
|
2419
|
+
else if (key != null) {
|
|
2420
|
+
httpParams = httpParams.append(key, value);
|
|
2421
|
+
}
|
|
2422
|
+
else {
|
|
2423
|
+
throw Error("key may not be null if value is not object or array");
|
|
2424
|
+
}
|
|
2425
|
+
return httpParams;
|
|
2426
|
+
}
|
|
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');
|
|
2443
|
+
}
|
|
2444
|
+
let localVarHeaders = this.defaultHeaders;
|
|
2445
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
2446
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
2447
|
+
// to determine the Accept header
|
|
2448
|
+
const httpHeaderAccepts = [
|
|
2449
|
+
'application/json'
|
|
2450
|
+
];
|
|
2451
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
2452
|
+
}
|
|
2453
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
2454
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
2455
|
+
}
|
|
2456
|
+
let localVarHttpContext = options && options.context;
|
|
2457
|
+
if (localVarHttpContext === undefined) {
|
|
2458
|
+
localVarHttpContext = new HttpContext();
|
|
2459
|
+
}
|
|
2460
|
+
let localVarTransferCache = options && options.transferCache;
|
|
2461
|
+
if (localVarTransferCache === undefined) {
|
|
2462
|
+
localVarTransferCache = true;
|
|
2463
|
+
}
|
|
2464
|
+
let responseType_ = 'json';
|
|
2465
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
2466
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
2467
|
+
responseType_ = 'text';
|
|
2468
|
+
}
|
|
2469
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
2470
|
+
responseType_ = 'json';
|
|
2471
|
+
}
|
|
2472
|
+
else {
|
|
2473
|
+
responseType_ = 'blob';
|
|
2474
|
+
}
|
|
2475
|
+
}
|
|
2476
|
+
let localVarPath = `/reasons`;
|
|
2477
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
2478
|
+
context: localVarHttpContext,
|
|
2479
|
+
params: localVarQueryParameters,
|
|
2480
|
+
responseType: responseType_,
|
|
2481
|
+
withCredentials: this.configuration.withCredentials,
|
|
2482
|
+
headers: localVarHeaders,
|
|
2483
|
+
observe: observe,
|
|
2484
|
+
transferCache: localVarTransferCache,
|
|
2485
|
+
reportProgress: reportProgress
|
|
2486
|
+
});
|
|
2487
|
+
}
|
|
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
|
+
|
|
2143
2505
|
/**
|
|
2144
2506
|
* Wms.API.Client
|
|
2145
2507
|
*
|
|
@@ -2935,7 +3297,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImpor
|
|
|
2935
3297
|
type: Optional
|
|
2936
3298
|
}] }] });
|
|
2937
3299
|
|
|
2938
|
-
const APIS = [AnalyticsService, CompaniesService, DcsService, DeliveriesService, DeliveryItemsService, HealthService, NotesService, PermissionsService, SettingsService, SummaryService, UserService];
|
|
3300
|
+
const APIS = [AnalyticsService, CompaniesService, DcsService, DeliveriesService, DeliveryItemsService, HealthService, NotesService, PermissionsService, ProductMastersService, ReasonsService, SettingsService, SummaryService, UserService];
|
|
2939
3301
|
|
|
2940
3302
|
/**
|
|
2941
3303
|
* Wms.API.Client
|
|
@@ -3124,6 +3486,33 @@ const OrderStatus = {
|
|
|
3124
3486
|
Booked: 'Booked'
|
|
3125
3487
|
};
|
|
3126
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
|
+
|
|
3127
3516
|
/**
|
|
3128
3517
|
* Wms.API.Client
|
|
3129
3518
|
*
|
|
@@ -3258,5 +3647,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImpor
|
|
|
3258
3647
|
* Generated bundle index. Do not edit.
|
|
3259
3648
|
*/
|
|
3260
3649
|
|
|
3261
|
-
export { APIS, AnalyticsService, ApiModule, BASE_PATH, COLLECTION_FORMATS, CompaniesService, Configuration, DcsService, DeliveriesService, DeliveryItemsService, DeliveryType, HealthService, NoteCategory, NoteSourceType, NotesService, OrderStatus, PermissionsService, RecordType, SettingsService, 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 };
|
|
3262
3651
|
//# sourceMappingURL=indigina-wms-api.mjs.map
|