@indigina/dcm-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 +3 -1
- package/api/purchaseOrders.service.d.ts +116 -0
- package/api/shipments.service.d.ts +4 -4
- package/fesm2022/indigina-dcm-api.mjs +358 -18
- package/fesm2022/indigina-dcm-api.mjs.map +1 -1
- package/model/dc.d.ts +16 -0
- package/model/models.d.ts +9 -1
- package/model/purchaseOrderGridView.d.ts +44 -0
- package/model/purchaseOrderItem.d.ts +44 -0
- package/model/purchaseOrderItems.d.ts +14 -0
- package/model/purchaseOrderState.d.ts +19 -0
- package/model/purchaseOrderSummary.d.ts +42 -0
- package/model/purchaseOrderView.d.ts +38 -0
- package/model/purchaseOrders.d.ts +14 -0
- package/model/shipment.d.ts +2 -2
- package/model/shipmentApproval.d.ts +2 -2
- package/model/shipmentSummary.d.ts +2 -2
- package/model/{shipmentType.d.ts → transportMode.d.ts} +5 -5
- package/model/transportationShipmentTimelineItem.d.ts +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @indigina/dcm-api@0.0.
|
|
1
|
+
# @indigina/dcm-api@0.0.46
|
|
2
2
|
|
|
3
3
|
DCM 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/dcm-api@0.0.
|
|
27
|
+
npm install @indigina/dcm-api@0.0.46 --save
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
_without publishing (not recommended):_
|
package/api/api.d.ts
CHANGED
|
@@ -12,6 +12,8 @@ export * from './notes.service';
|
|
|
12
12
|
import { NotesService } from './notes.service';
|
|
13
13
|
export * from './permissions.service';
|
|
14
14
|
import { PermissionsService } from './permissions.service';
|
|
15
|
+
export * from './purchaseOrders.service';
|
|
16
|
+
import { PurchaseOrdersService } from './purchaseOrders.service';
|
|
15
17
|
export * from './reports.service';
|
|
16
18
|
import { ReportsService } from './reports.service';
|
|
17
19
|
export * from './settings.service';
|
|
@@ -20,4 +22,4 @@ export * from './shipments.service';
|
|
|
20
22
|
import { ShipmentsService } from './shipments.service';
|
|
21
23
|
export * from './user.service';
|
|
22
24
|
import { UserService } from './user.service';
|
|
23
|
-
export declare const APIS: (typeof AuditLogsService | typeof BookingsService | typeof ContainersService | typeof DocumentsService | typeof HealthService | typeof NotesService | typeof PermissionsService | typeof ReportsService | typeof SettingsService | typeof ShipmentsService | typeof UserService)[];
|
|
25
|
+
export declare const APIS: (typeof AuditLogsService | typeof BookingsService | typeof ContainersService | typeof DocumentsService | typeof HealthService | typeof NotesService | typeof PermissionsService | typeof PurchaseOrdersService | typeof ReportsService | typeof SettingsService | typeof ShipmentsService | typeof UserService)[];
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { HttpClient, HttpHeaders, HttpResponse, HttpEvent, HttpParameterCodec, HttpContext } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { PurchaseOrderItems } from '../model/purchaseOrderItems';
|
|
4
|
+
import { PurchaseOrderSummary } from '../model/purchaseOrderSummary';
|
|
5
|
+
import { PurchaseOrders } from '../model/purchaseOrders';
|
|
6
|
+
import { Configuration } from '../configuration';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class PurchaseOrdersService {
|
|
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 purchas order items
|
|
19
|
+
* @param id
|
|
20
|
+
* @param $skip
|
|
21
|
+
* @param $top
|
|
22
|
+
* @param $orderby
|
|
23
|
+
* @param $filter
|
|
24
|
+
* @param $search
|
|
25
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
26
|
+
* @param reportProgress flag to report request and response progress.
|
|
27
|
+
*/
|
|
28
|
+
getPurchaseOrderProducts(id: string, $skip?: number, $top?: number, $orderby?: string, $filter?: string, $search?: string, observe?: 'body', reportProgress?: boolean, options?: {
|
|
29
|
+
httpHeaderAccept?: 'application/json';
|
|
30
|
+
context?: HttpContext;
|
|
31
|
+
transferCache?: boolean;
|
|
32
|
+
}): Observable<PurchaseOrderItems>;
|
|
33
|
+
getPurchaseOrderProducts(id: string, $skip?: number, $top?: number, $orderby?: string, $filter?: string, $search?: string, observe?: 'response', reportProgress?: boolean, options?: {
|
|
34
|
+
httpHeaderAccept?: 'application/json';
|
|
35
|
+
context?: HttpContext;
|
|
36
|
+
transferCache?: boolean;
|
|
37
|
+
}): Observable<HttpResponse<PurchaseOrderItems>>;
|
|
38
|
+
getPurchaseOrderProducts(id: string, $skip?: number, $top?: number, $orderby?: string, $filter?: string, $search?: string, observe?: 'events', reportProgress?: boolean, options?: {
|
|
39
|
+
httpHeaderAccept?: 'application/json';
|
|
40
|
+
context?: HttpContext;
|
|
41
|
+
transferCache?: boolean;
|
|
42
|
+
}): Observable<HttpEvent<PurchaseOrderItems>>;
|
|
43
|
+
/**
|
|
44
|
+
* Getting a purchas order summary by id
|
|
45
|
+
* @param id
|
|
46
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
47
|
+
* @param reportProgress flag to report request and response progress.
|
|
48
|
+
*/
|
|
49
|
+
getPurchaseOrderSummary(id: string, observe?: 'body', reportProgress?: boolean, options?: {
|
|
50
|
+
httpHeaderAccept?: 'application/json';
|
|
51
|
+
context?: HttpContext;
|
|
52
|
+
transferCache?: boolean;
|
|
53
|
+
}): Observable<PurchaseOrderSummary>;
|
|
54
|
+
getPurchaseOrderSummary(id: string, observe?: 'response', reportProgress?: boolean, options?: {
|
|
55
|
+
httpHeaderAccept?: 'application/json';
|
|
56
|
+
context?: HttpContext;
|
|
57
|
+
transferCache?: boolean;
|
|
58
|
+
}): Observable<HttpResponse<PurchaseOrderSummary>>;
|
|
59
|
+
getPurchaseOrderSummary(id: string, observe?: 'events', reportProgress?: boolean, options?: {
|
|
60
|
+
httpHeaderAccept?: 'application/json';
|
|
61
|
+
context?: HttpContext;
|
|
62
|
+
transferCache?: boolean;
|
|
63
|
+
}): Observable<HttpEvent<PurchaseOrderSummary>>;
|
|
64
|
+
/**
|
|
65
|
+
* Purchase orders list
|
|
66
|
+
* @param $skip
|
|
67
|
+
* @param $top
|
|
68
|
+
* @param $orderby
|
|
69
|
+
* @param $filter
|
|
70
|
+
* @param $search
|
|
71
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
72
|
+
* @param reportProgress flag to report request and response progress.
|
|
73
|
+
*/
|
|
74
|
+
getPurchaseOrders($skip?: number, $top?: number, $orderby?: string, $filter?: string, $search?: string, observe?: 'body', reportProgress?: boolean, options?: {
|
|
75
|
+
httpHeaderAccept?: 'application/json';
|
|
76
|
+
context?: HttpContext;
|
|
77
|
+
transferCache?: boolean;
|
|
78
|
+
}): Observable<PurchaseOrders>;
|
|
79
|
+
getPurchaseOrders($skip?: number, $top?: number, $orderby?: string, $filter?: string, $search?: string, observe?: 'response', reportProgress?: boolean, options?: {
|
|
80
|
+
httpHeaderAccept?: 'application/json';
|
|
81
|
+
context?: HttpContext;
|
|
82
|
+
transferCache?: boolean;
|
|
83
|
+
}): Observable<HttpResponse<PurchaseOrders>>;
|
|
84
|
+
getPurchaseOrders($skip?: number, $top?: number, $orderby?: string, $filter?: string, $search?: string, observe?: 'events', reportProgress?: boolean, options?: {
|
|
85
|
+
httpHeaderAccept?: 'application/json';
|
|
86
|
+
context?: HttpContext;
|
|
87
|
+
transferCache?: boolean;
|
|
88
|
+
}): Observable<HttpEvent<PurchaseOrders>>;
|
|
89
|
+
/**
|
|
90
|
+
* Purchase orders list
|
|
91
|
+
* @param $skip
|
|
92
|
+
* @param $top
|
|
93
|
+
* @param $orderby
|
|
94
|
+
* @param $filter
|
|
95
|
+
* @param searchTerm
|
|
96
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
97
|
+
* @param reportProgress flag to report request and response progress.
|
|
98
|
+
*/
|
|
99
|
+
getPurchaseOrdersFromIndex($skip?: number, $top?: number, $orderby?: string, $filter?: string, searchTerm?: string, observe?: 'body', reportProgress?: boolean, options?: {
|
|
100
|
+
httpHeaderAccept?: 'application/json';
|
|
101
|
+
context?: HttpContext;
|
|
102
|
+
transferCache?: boolean;
|
|
103
|
+
}): Observable<PurchaseOrders>;
|
|
104
|
+
getPurchaseOrdersFromIndex($skip?: number, $top?: number, $orderby?: string, $filter?: string, searchTerm?: string, observe?: 'response', reportProgress?: boolean, options?: {
|
|
105
|
+
httpHeaderAccept?: 'application/json';
|
|
106
|
+
context?: HttpContext;
|
|
107
|
+
transferCache?: boolean;
|
|
108
|
+
}): Observable<HttpResponse<PurchaseOrders>>;
|
|
109
|
+
getPurchaseOrdersFromIndex($skip?: number, $top?: number, $orderby?: string, $filter?: string, searchTerm?: string, observe?: 'events', reportProgress?: boolean, options?: {
|
|
110
|
+
httpHeaderAccept?: 'application/json';
|
|
111
|
+
context?: HttpContext;
|
|
112
|
+
transferCache?: boolean;
|
|
113
|
+
}): Observable<HttpEvent<PurchaseOrders>>;
|
|
114
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PurchaseOrdersService, [null, { optional: true; }, { optional: true; }]>;
|
|
115
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PurchaseOrdersService>;
|
|
116
|
+
}
|
|
@@ -8,11 +8,11 @@ import { ShipmentRoutingsInner } from '../model/shipmentRoutingsInner';
|
|
|
8
8
|
import { ShipmentState } from '../model/shipmentState';
|
|
9
9
|
import { ShipmentSummary } from '../model/shipmentSummary';
|
|
10
10
|
import { ShipmentTimelineInner } from '../model/shipmentTimelineInner';
|
|
11
|
-
import { ShipmentType } from '../model/shipmentType';
|
|
12
11
|
import { Shipments } from '../model/shipments';
|
|
13
12
|
import { ShipmentsApprovalCount } from '../model/shipmentsApprovalCount';
|
|
14
13
|
import { ShipmentsCount } from '../model/shipmentsCount';
|
|
15
14
|
import { ShipmentsInTransitCount } from '../model/shipmentsInTransitCount';
|
|
15
|
+
import { TransportMode } from '../model/transportMode';
|
|
16
16
|
import { Configuration } from '../configuration';
|
|
17
17
|
import * as i0 from "@angular/core";
|
|
18
18
|
export declare class ShipmentsService {
|
|
@@ -149,17 +149,17 @@ export declare class ShipmentsService {
|
|
|
149
149
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
150
150
|
* @param reportProgress flag to report request and response progress.
|
|
151
151
|
*/
|
|
152
|
-
getShipmentRouting(shipmentId: string, type:
|
|
152
|
+
getShipmentRouting(shipmentId: string, type: TransportMode, observe?: 'body', reportProgress?: boolean, options?: {
|
|
153
153
|
httpHeaderAccept?: 'application/json';
|
|
154
154
|
context?: HttpContext;
|
|
155
155
|
transferCache?: boolean;
|
|
156
156
|
}): Observable<Array<ShipmentRoutingsInner>>;
|
|
157
|
-
getShipmentRouting(shipmentId: string, type:
|
|
157
|
+
getShipmentRouting(shipmentId: string, type: TransportMode, observe?: 'response', reportProgress?: boolean, options?: {
|
|
158
158
|
httpHeaderAccept?: 'application/json';
|
|
159
159
|
context?: HttpContext;
|
|
160
160
|
transferCache?: boolean;
|
|
161
161
|
}): Observable<HttpResponse<Array<ShipmentRoutingsInner>>>;
|
|
162
|
-
getShipmentRouting(shipmentId: string, type:
|
|
162
|
+
getShipmentRouting(shipmentId: string, type: TransportMode, observe?: 'events', reportProgress?: boolean, options?: {
|
|
163
163
|
httpHeaderAccept?: 'application/json';
|
|
164
164
|
context?: HttpContext;
|
|
165
165
|
transferCache?: boolean;
|
|
@@ -1526,6 +1526,327 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImpor
|
|
|
1526
1526
|
type: Optional
|
|
1527
1527
|
}] }] });
|
|
1528
1528
|
|
|
1529
|
+
/**
|
|
1530
|
+
* Dcm.API.Client
|
|
1531
|
+
*
|
|
1532
|
+
*
|
|
1533
|
+
*
|
|
1534
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1535
|
+
* https://openapi-generator.tech
|
|
1536
|
+
* Do not edit the class manually.
|
|
1537
|
+
*/
|
|
1538
|
+
/* tslint:disable:no-unused-variable member-ordering */
|
|
1539
|
+
class PurchaseOrdersService {
|
|
1540
|
+
httpClient;
|
|
1541
|
+
basePath = 'http://localhost';
|
|
1542
|
+
defaultHeaders = new HttpHeaders();
|
|
1543
|
+
configuration = new Configuration();
|
|
1544
|
+
encoder;
|
|
1545
|
+
constructor(httpClient, basePath, configuration) {
|
|
1546
|
+
this.httpClient = httpClient;
|
|
1547
|
+
if (configuration) {
|
|
1548
|
+
this.configuration = configuration;
|
|
1549
|
+
}
|
|
1550
|
+
if (typeof this.configuration.basePath !== 'string') {
|
|
1551
|
+
const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
|
|
1552
|
+
if (firstBasePath != undefined) {
|
|
1553
|
+
basePath = firstBasePath;
|
|
1554
|
+
}
|
|
1555
|
+
if (typeof basePath !== 'string') {
|
|
1556
|
+
basePath = this.basePath;
|
|
1557
|
+
}
|
|
1558
|
+
this.configuration.basePath = basePath;
|
|
1559
|
+
}
|
|
1560
|
+
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
1561
|
+
}
|
|
1562
|
+
// @ts-ignore
|
|
1563
|
+
addToHttpParams(httpParams, value, key) {
|
|
1564
|
+
if (typeof value === "object" && value instanceof Date === false) {
|
|
1565
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
1566
|
+
}
|
|
1567
|
+
else {
|
|
1568
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
|
|
1569
|
+
}
|
|
1570
|
+
return httpParams;
|
|
1571
|
+
}
|
|
1572
|
+
addToHttpParamsRecursive(httpParams, value, key) {
|
|
1573
|
+
if (value == null) {
|
|
1574
|
+
return httpParams;
|
|
1575
|
+
}
|
|
1576
|
+
if (typeof value === "object") {
|
|
1577
|
+
if (Array.isArray(value)) {
|
|
1578
|
+
value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
|
|
1579
|
+
}
|
|
1580
|
+
else if (value instanceof Date) {
|
|
1581
|
+
if (key != null) {
|
|
1582
|
+
httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
|
|
1583
|
+
}
|
|
1584
|
+
else {
|
|
1585
|
+
throw Error("key may not be null if value is Date");
|
|
1586
|
+
}
|
|
1587
|
+
}
|
|
1588
|
+
else {
|
|
1589
|
+
Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
|
|
1590
|
+
}
|
|
1591
|
+
}
|
|
1592
|
+
else if (key != null) {
|
|
1593
|
+
httpParams = httpParams.append(key, value);
|
|
1594
|
+
}
|
|
1595
|
+
else {
|
|
1596
|
+
throw Error("key may not be null if value is not object or array");
|
|
1597
|
+
}
|
|
1598
|
+
return httpParams;
|
|
1599
|
+
}
|
|
1600
|
+
getPurchaseOrderProducts(id, $skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
|
|
1601
|
+
if (id === null || id === undefined) {
|
|
1602
|
+
throw new Error('Required parameter id was null or undefined when calling getPurchaseOrderProducts.');
|
|
1603
|
+
}
|
|
1604
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
1605
|
+
if ($skip !== undefined && $skip !== null) {
|
|
1606
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
|
|
1607
|
+
}
|
|
1608
|
+
if ($top !== undefined && $top !== null) {
|
|
1609
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
|
|
1610
|
+
}
|
|
1611
|
+
if ($orderby !== undefined && $orderby !== null) {
|
|
1612
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
|
|
1613
|
+
}
|
|
1614
|
+
if ($filter !== undefined && $filter !== null) {
|
|
1615
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
|
|
1616
|
+
}
|
|
1617
|
+
if ($search !== undefined && $search !== null) {
|
|
1618
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
|
|
1619
|
+
}
|
|
1620
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1621
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
1622
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
1623
|
+
// to determine the Accept header
|
|
1624
|
+
const httpHeaderAccepts = [
|
|
1625
|
+
'application/json'
|
|
1626
|
+
];
|
|
1627
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1628
|
+
}
|
|
1629
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1630
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1631
|
+
}
|
|
1632
|
+
let localVarHttpContext = options && options.context;
|
|
1633
|
+
if (localVarHttpContext === undefined) {
|
|
1634
|
+
localVarHttpContext = new HttpContext();
|
|
1635
|
+
}
|
|
1636
|
+
let localVarTransferCache = options && options.transferCache;
|
|
1637
|
+
if (localVarTransferCache === undefined) {
|
|
1638
|
+
localVarTransferCache = true;
|
|
1639
|
+
}
|
|
1640
|
+
let responseType_ = 'json';
|
|
1641
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1642
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1643
|
+
responseType_ = 'text';
|
|
1644
|
+
}
|
|
1645
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1646
|
+
responseType_ = 'json';
|
|
1647
|
+
}
|
|
1648
|
+
else {
|
|
1649
|
+
responseType_ = 'blob';
|
|
1650
|
+
}
|
|
1651
|
+
}
|
|
1652
|
+
let localVarPath = `/purchaseOrders/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/items`;
|
|
1653
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
1654
|
+
context: localVarHttpContext,
|
|
1655
|
+
params: localVarQueryParameters,
|
|
1656
|
+
responseType: responseType_,
|
|
1657
|
+
withCredentials: this.configuration.withCredentials,
|
|
1658
|
+
headers: localVarHeaders,
|
|
1659
|
+
observe: observe,
|
|
1660
|
+
transferCache: localVarTransferCache,
|
|
1661
|
+
reportProgress: reportProgress
|
|
1662
|
+
});
|
|
1663
|
+
}
|
|
1664
|
+
getPurchaseOrderSummary(id, observe = 'body', reportProgress = false, options) {
|
|
1665
|
+
if (id === null || id === undefined) {
|
|
1666
|
+
throw new Error('Required parameter id was null or undefined when calling getPurchaseOrderSummary.');
|
|
1667
|
+
}
|
|
1668
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1669
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
1670
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
1671
|
+
// to determine the Accept header
|
|
1672
|
+
const httpHeaderAccepts = [
|
|
1673
|
+
'application/json'
|
|
1674
|
+
];
|
|
1675
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1676
|
+
}
|
|
1677
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1678
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1679
|
+
}
|
|
1680
|
+
let localVarHttpContext = options && options.context;
|
|
1681
|
+
if (localVarHttpContext === undefined) {
|
|
1682
|
+
localVarHttpContext = new HttpContext();
|
|
1683
|
+
}
|
|
1684
|
+
let localVarTransferCache = options && options.transferCache;
|
|
1685
|
+
if (localVarTransferCache === undefined) {
|
|
1686
|
+
localVarTransferCache = true;
|
|
1687
|
+
}
|
|
1688
|
+
let responseType_ = 'json';
|
|
1689
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1690
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1691
|
+
responseType_ = 'text';
|
|
1692
|
+
}
|
|
1693
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1694
|
+
responseType_ = 'json';
|
|
1695
|
+
}
|
|
1696
|
+
else {
|
|
1697
|
+
responseType_ = 'blob';
|
|
1698
|
+
}
|
|
1699
|
+
}
|
|
1700
|
+
let localVarPath = `/purchaseOrders/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/summary`;
|
|
1701
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
1702
|
+
context: localVarHttpContext,
|
|
1703
|
+
responseType: responseType_,
|
|
1704
|
+
withCredentials: this.configuration.withCredentials,
|
|
1705
|
+
headers: localVarHeaders,
|
|
1706
|
+
observe: observe,
|
|
1707
|
+
transferCache: localVarTransferCache,
|
|
1708
|
+
reportProgress: reportProgress
|
|
1709
|
+
});
|
|
1710
|
+
}
|
|
1711
|
+
getPurchaseOrders($skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
|
|
1712
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
1713
|
+
if ($skip !== undefined && $skip !== null) {
|
|
1714
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
|
|
1715
|
+
}
|
|
1716
|
+
if ($top !== undefined && $top !== null) {
|
|
1717
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
|
|
1718
|
+
}
|
|
1719
|
+
if ($orderby !== undefined && $orderby !== null) {
|
|
1720
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
|
|
1721
|
+
}
|
|
1722
|
+
if ($filter !== undefined && $filter !== null) {
|
|
1723
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
|
|
1724
|
+
}
|
|
1725
|
+
if ($search !== undefined && $search !== null) {
|
|
1726
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
|
|
1727
|
+
}
|
|
1728
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1729
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
1730
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
1731
|
+
// to determine the Accept header
|
|
1732
|
+
const httpHeaderAccepts = [
|
|
1733
|
+
'application/json'
|
|
1734
|
+
];
|
|
1735
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1736
|
+
}
|
|
1737
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1738
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1739
|
+
}
|
|
1740
|
+
let localVarHttpContext = options && options.context;
|
|
1741
|
+
if (localVarHttpContext === undefined) {
|
|
1742
|
+
localVarHttpContext = new HttpContext();
|
|
1743
|
+
}
|
|
1744
|
+
let localVarTransferCache = options && options.transferCache;
|
|
1745
|
+
if (localVarTransferCache === undefined) {
|
|
1746
|
+
localVarTransferCache = true;
|
|
1747
|
+
}
|
|
1748
|
+
let responseType_ = 'json';
|
|
1749
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1750
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1751
|
+
responseType_ = 'text';
|
|
1752
|
+
}
|
|
1753
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1754
|
+
responseType_ = 'json';
|
|
1755
|
+
}
|
|
1756
|
+
else {
|
|
1757
|
+
responseType_ = 'blob';
|
|
1758
|
+
}
|
|
1759
|
+
}
|
|
1760
|
+
let localVarPath = `/purchaseOrders`;
|
|
1761
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
1762
|
+
context: localVarHttpContext,
|
|
1763
|
+
params: localVarQueryParameters,
|
|
1764
|
+
responseType: responseType_,
|
|
1765
|
+
withCredentials: this.configuration.withCredentials,
|
|
1766
|
+
headers: localVarHeaders,
|
|
1767
|
+
observe: observe,
|
|
1768
|
+
transferCache: localVarTransferCache,
|
|
1769
|
+
reportProgress: reportProgress
|
|
1770
|
+
});
|
|
1771
|
+
}
|
|
1772
|
+
getPurchaseOrdersFromIndex($skip, $top, $orderby, $filter, searchTerm, observe = 'body', reportProgress = false, options) {
|
|
1773
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
1774
|
+
if ($skip !== undefined && $skip !== null) {
|
|
1775
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
|
|
1776
|
+
}
|
|
1777
|
+
if ($top !== undefined && $top !== null) {
|
|
1778
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
|
|
1779
|
+
}
|
|
1780
|
+
if ($orderby !== undefined && $orderby !== null) {
|
|
1781
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
|
|
1782
|
+
}
|
|
1783
|
+
if ($filter !== undefined && $filter !== null) {
|
|
1784
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
|
|
1785
|
+
}
|
|
1786
|
+
if (searchTerm !== undefined && searchTerm !== null) {
|
|
1787
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, searchTerm, 'searchTerm');
|
|
1788
|
+
}
|
|
1789
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1790
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
1791
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
1792
|
+
// to determine the Accept header
|
|
1793
|
+
const httpHeaderAccepts = [
|
|
1794
|
+
'application/json'
|
|
1795
|
+
];
|
|
1796
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1797
|
+
}
|
|
1798
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1799
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1800
|
+
}
|
|
1801
|
+
let localVarHttpContext = options && options.context;
|
|
1802
|
+
if (localVarHttpContext === undefined) {
|
|
1803
|
+
localVarHttpContext = new HttpContext();
|
|
1804
|
+
}
|
|
1805
|
+
let localVarTransferCache = options && options.transferCache;
|
|
1806
|
+
if (localVarTransferCache === undefined) {
|
|
1807
|
+
localVarTransferCache = true;
|
|
1808
|
+
}
|
|
1809
|
+
let responseType_ = 'json';
|
|
1810
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1811
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1812
|
+
responseType_ = 'text';
|
|
1813
|
+
}
|
|
1814
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1815
|
+
responseType_ = 'json';
|
|
1816
|
+
}
|
|
1817
|
+
else {
|
|
1818
|
+
responseType_ = 'blob';
|
|
1819
|
+
}
|
|
1820
|
+
}
|
|
1821
|
+
let localVarPath = `/purchaseOrders/search`;
|
|
1822
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
1823
|
+
context: localVarHttpContext,
|
|
1824
|
+
params: localVarQueryParameters,
|
|
1825
|
+
responseType: responseType_,
|
|
1826
|
+
withCredentials: this.configuration.withCredentials,
|
|
1827
|
+
headers: localVarHeaders,
|
|
1828
|
+
observe: observe,
|
|
1829
|
+
transferCache: localVarTransferCache,
|
|
1830
|
+
reportProgress: reportProgress
|
|
1831
|
+
});
|
|
1832
|
+
}
|
|
1833
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: PurchaseOrdersService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1834
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: PurchaseOrdersService, providedIn: 'root' });
|
|
1835
|
+
}
|
|
1836
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: PurchaseOrdersService, decorators: [{
|
|
1837
|
+
type: Injectable,
|
|
1838
|
+
args: [{
|
|
1839
|
+
providedIn: 'root'
|
|
1840
|
+
}]
|
|
1841
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1842
|
+
type: Optional
|
|
1843
|
+
}, {
|
|
1844
|
+
type: Inject,
|
|
1845
|
+
args: [BASE_PATH]
|
|
1846
|
+
}] }, { type: Configuration, decorators: [{
|
|
1847
|
+
type: Optional
|
|
1848
|
+
}] }] });
|
|
1849
|
+
|
|
1529
1850
|
/**
|
|
1530
1851
|
* Dcm.API.Client
|
|
1531
1852
|
*
|
|
@@ -2476,7 +2797,7 @@ class ShipmentsService {
|
|
|
2476
2797
|
responseType_ = 'blob';
|
|
2477
2798
|
}
|
|
2478
2799
|
}
|
|
2479
|
-
let localVarPath = `/shipments/${this.configuration.encodeParam({ name: "shipmentId", value: shipmentId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/${this.configuration.encodeParam({ name: "type", value: type, in: "path", style: "simple", explode: false, dataType: "
|
|
2800
|
+
let localVarPath = `/shipments/${this.configuration.encodeParam({ name: "shipmentId", value: shipmentId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/${this.configuration.encodeParam({ name: "type", value: type, in: "path", style: "simple", explode: false, dataType: "TransportMode", dataFormat: undefined })}/routing`;
|
|
2480
2801
|
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
2481
2802
|
context: localVarHttpContext,
|
|
2482
2803
|
responseType: responseType_,
|
|
@@ -3310,7 +3631,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImpor
|
|
|
3310
3631
|
type: Optional
|
|
3311
3632
|
}] }] });
|
|
3312
3633
|
|
|
3313
|
-
const APIS = [AuditLogsService, BookingsService, ContainersService, DocumentsService, HealthService, NotesService, PermissionsService, ReportsService, SettingsService, ShipmentsService, UserService];
|
|
3634
|
+
const APIS = [AuditLogsService, BookingsService, ContainersService, DocumentsService, HealthService, NotesService, PermissionsService, PurchaseOrdersService, ReportsService, SettingsService, ShipmentsService, UserService];
|
|
3314
3635
|
|
|
3315
3636
|
/**
|
|
3316
3637
|
* Dcm.API.Client
|
|
@@ -3586,6 +3907,25 @@ const PowerBiTenant = {
|
|
|
3586
3907
|
Others: 'Others'
|
|
3587
3908
|
};
|
|
3588
3909
|
|
|
3910
|
+
/**
|
|
3911
|
+
* Dcm.API.Client
|
|
3912
|
+
*
|
|
3913
|
+
*
|
|
3914
|
+
*
|
|
3915
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3916
|
+
* https://openapi-generator.tech
|
|
3917
|
+
* Do not edit the class manually.
|
|
3918
|
+
*/
|
|
3919
|
+
const PurchaseOrderState = {
|
|
3920
|
+
Draft: 'Draft',
|
|
3921
|
+
NotAllocated: 'NotAllocated',
|
|
3922
|
+
PartlyAllocated: 'PartlyAllocated',
|
|
3923
|
+
FullyAllocated: 'FullyAllocated',
|
|
3924
|
+
Commit: 'Commit',
|
|
3925
|
+
Complete: 'Complete',
|
|
3926
|
+
Deleted: 'Deleted'
|
|
3927
|
+
};
|
|
3928
|
+
|
|
3589
3929
|
/**
|
|
3590
3930
|
* Dcm.API.Client
|
|
3591
3931
|
*
|
|
@@ -3720,21 +4060,6 @@ const ShipmentTerm = {
|
|
|
3720
4060
|
Dap: 'DAP'
|
|
3721
4061
|
};
|
|
3722
4062
|
|
|
3723
|
-
/**
|
|
3724
|
-
* Dcm.API.Client
|
|
3725
|
-
*
|
|
3726
|
-
*
|
|
3727
|
-
*
|
|
3728
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3729
|
-
* https://openapi-generator.tech
|
|
3730
|
-
* Do not edit the class manually.
|
|
3731
|
-
*/
|
|
3732
|
-
const ShipmentType = {
|
|
3733
|
-
Air: 'Air',
|
|
3734
|
-
Sea: 'Sea',
|
|
3735
|
-
Road: 'Road'
|
|
3736
|
-
};
|
|
3737
|
-
|
|
3738
4063
|
/**
|
|
3739
4064
|
* Dcm.API.Client
|
|
3740
4065
|
*
|
|
@@ -3832,6 +4157,21 @@ const TimelineEventTypes = {
|
|
|
3832
4157
|
* Do not edit the class manually.
|
|
3833
4158
|
*/
|
|
3834
4159
|
|
|
4160
|
+
/**
|
|
4161
|
+
* Dcm.API.Client
|
|
4162
|
+
*
|
|
4163
|
+
*
|
|
4164
|
+
*
|
|
4165
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
4166
|
+
* https://openapi-generator.tech
|
|
4167
|
+
* Do not edit the class manually.
|
|
4168
|
+
*/
|
|
4169
|
+
const TransportMode = {
|
|
4170
|
+
Air: 'Air',
|
|
4171
|
+
Sea: 'Sea',
|
|
4172
|
+
Road: 'Road'
|
|
4173
|
+
};
|
|
4174
|
+
|
|
3835
4175
|
/**
|
|
3836
4176
|
* Dcm.API.Client
|
|
3837
4177
|
*
|
|
@@ -3920,5 +4260,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImpor
|
|
|
3920
4260
|
* Generated bundle index. Do not edit.
|
|
3921
4261
|
*/
|
|
3922
4262
|
|
|
3923
|
-
export { APIS, ApiModule, ApprovalTypes, AuditLogsService, BASE_PATH, BookingsService, COLLECTION_FORMATS, Configuration, ContainerTypes, ContainersService, DocumentType, DocumentsService, EntityState, HealthService, JourneySegmentTypes, NoteSourceTypes, NotesService, PermissionsService, PowerBiTenant, RecordTypes, ReportsService, SettingsService, ShipmentApprovalType, ShipmentState, ShipmentTerm,
|
|
4263
|
+
export { APIS, ApiModule, ApprovalTypes, AuditLogsService, BASE_PATH, BookingsService, COLLECTION_FORMATS, Configuration, ContainerTypes, ContainersService, DocumentType, DocumentsService, EntityState, HealthService, JourneySegmentTypes, NoteSourceTypes, NotesService, PermissionsService, PowerBiTenant, PurchaseOrderState, PurchaseOrdersService, RecordTypes, ReportsService, SettingsService, ShipmentApprovalType, ShipmentState, ShipmentTerm, ShipmentsService, TimelineEventStates, TimelineEventTypes, TransportMode, UserService, WorkflowArtifacts };
|
|
3924
4264
|
//# sourceMappingURL=indigina-dcm-api.mjs.map
|