@indigina/dcm-api 0.0.50 → 0.0.51
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/poItems.service.d.ts +38 -0
- package/api/purchaseOrders.service.d.ts +22 -0
- package/api/sipmetItems.service.d.ts +43 -0
- package/fesm2022/indigina-dcm-api.mjs +356 -2
- package/fesm2022/indigina-dcm-api.mjs.map +1 -1
- package/model/models.d.ts +4 -0
- package/model/poItemSummary.d.ts +20 -0
- package/model/poItemTotals.d.ts +13 -0
- package/model/purchaseOrderItem.d.ts +1 -0
- package/model/purchaseOrderSummary.d.ts +5 -4
- package/model/shipmentItemSummaries.d.ts +14 -0
- package/model/shipmentItemSummary.d.ts +24 -0
- 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.51
|
|
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.51 --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 './poItems.service';
|
|
16
|
+
import { PoItemsService } from './poItems.service';
|
|
15
17
|
export * from './purchaseOrders.service';
|
|
16
18
|
import { PurchaseOrdersService } from './purchaseOrders.service';
|
|
17
19
|
export * from './reports.service';
|
|
@@ -20,6 +22,8 @@ export * from './settings.service';
|
|
|
20
22
|
import { SettingsService } from './settings.service';
|
|
21
23
|
export * from './shipments.service';
|
|
22
24
|
import { ShipmentsService } from './shipments.service';
|
|
25
|
+
export * from './sipmetItems.service';
|
|
26
|
+
import { SipmetItemsService } from './sipmetItems.service';
|
|
23
27
|
export * from './user.service';
|
|
24
28
|
import { UserService } from './user.service';
|
|
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)[];
|
|
29
|
+
export declare const APIS: (typeof AuditLogsService | typeof BookingsService | typeof ContainersService | typeof DocumentsService | typeof HealthService | typeof NotesService | typeof PermissionsService | typeof PoItemsService | typeof PurchaseOrdersService | typeof ReportsService | typeof SettingsService | typeof ShipmentsService | typeof SipmetItemsService | typeof UserService)[];
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { HttpClient, HttpHeaders, HttpResponse, HttpEvent, HttpParameterCodec, HttpContext } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { PoItemSummary } from '../model/poItemSummary';
|
|
4
|
+
import { Configuration } from '../configuration';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class PoItemsService {
|
|
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 a po item summary by id
|
|
17
|
+
* @param id
|
|
18
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
19
|
+
* @param reportProgress flag to report request and response progress.
|
|
20
|
+
*/
|
|
21
|
+
getPoItemSummary(id: string, observe?: 'body', reportProgress?: boolean, options?: {
|
|
22
|
+
httpHeaderAccept?: 'application/json';
|
|
23
|
+
context?: HttpContext;
|
|
24
|
+
transferCache?: boolean;
|
|
25
|
+
}): Observable<PoItemSummary>;
|
|
26
|
+
getPoItemSummary(id: string, observe?: 'response', reportProgress?: boolean, options?: {
|
|
27
|
+
httpHeaderAccept?: 'application/json';
|
|
28
|
+
context?: HttpContext;
|
|
29
|
+
transferCache?: boolean;
|
|
30
|
+
}): Observable<HttpResponse<PoItemSummary>>;
|
|
31
|
+
getPoItemSummary(id: string, observe?: 'events', reportProgress?: boolean, options?: {
|
|
32
|
+
httpHeaderAccept?: 'application/json';
|
|
33
|
+
context?: HttpContext;
|
|
34
|
+
transferCache?: boolean;
|
|
35
|
+
}): Observable<HttpEvent<PoItemSummary>>;
|
|
36
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PoItemsService, [null, { optional: true; }, { optional: true; }]>;
|
|
37
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PoItemsService>;
|
|
38
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { HttpClient, HttpHeaders, HttpResponse, HttpEvent, HttpParameterCodec, HttpContext } from '@angular/common/http';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
+
import { PoItemTotals } from '../model/poItemTotals';
|
|
3
4
|
import { PurchaseOrderItems } from '../model/purchaseOrderItems';
|
|
4
5
|
import { PurchaseOrderSummary } from '../model/purchaseOrderSummary';
|
|
5
6
|
import { PurchaseOrders } from '../model/purchaseOrders';
|
|
@@ -14,6 +15,27 @@ export declare class PurchaseOrdersService {
|
|
|
14
15
|
constructor(httpClient: HttpClient, basePath: string | string[], configuration: Configuration);
|
|
15
16
|
private addToHttpParams;
|
|
16
17
|
private addToHttpParamsRecursive;
|
|
18
|
+
/**
|
|
19
|
+
* Getting a Po Item totals
|
|
20
|
+
* @param purchaseOrderId
|
|
21
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
22
|
+
* @param reportProgress flag to report request and response progress.
|
|
23
|
+
*/
|
|
24
|
+
getPoItemTotals(purchaseOrderId: string, observe?: 'body', reportProgress?: boolean, options?: {
|
|
25
|
+
httpHeaderAccept?: 'application/json';
|
|
26
|
+
context?: HttpContext;
|
|
27
|
+
transferCache?: boolean;
|
|
28
|
+
}): Observable<PoItemTotals>;
|
|
29
|
+
getPoItemTotals(purchaseOrderId: string, observe?: 'response', reportProgress?: boolean, options?: {
|
|
30
|
+
httpHeaderAccept?: 'application/json';
|
|
31
|
+
context?: HttpContext;
|
|
32
|
+
transferCache?: boolean;
|
|
33
|
+
}): Observable<HttpResponse<PoItemTotals>>;
|
|
34
|
+
getPoItemTotals(purchaseOrderId: string, observe?: 'events', reportProgress?: boolean, options?: {
|
|
35
|
+
httpHeaderAccept?: 'application/json';
|
|
36
|
+
context?: HttpContext;
|
|
37
|
+
transferCache?: boolean;
|
|
38
|
+
}): Observable<HttpEvent<PoItemTotals>>;
|
|
17
39
|
/**
|
|
18
40
|
* Getting purchas order items
|
|
19
41
|
* @param id
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { HttpClient, HttpHeaders, HttpResponse, HttpEvent, HttpParameterCodec, HttpContext } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { ShipmentItemSummaries } from '../model/shipmentItemSummaries';
|
|
4
|
+
import { Configuration } from '../configuration';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class SipmetItemsService {
|
|
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 shipment items summary list
|
|
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
|
+
getShipmentItemSummaries(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<ShipmentItemSummaries>;
|
|
31
|
+
getShipmentItemSummaries(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<ShipmentItemSummaries>>;
|
|
36
|
+
getShipmentItemSummaries(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<ShipmentItemSummaries>>;
|
|
41
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SipmetItemsService, [null, { optional: true; }, { optional: true; }]>;
|
|
42
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SipmetItemsService>;
|
|
43
|
+
}
|
|
@@ -1526,6 +1526,141 @@ 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 PoItemsService {
|
|
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
|
+
getPoItemSummary(id, observe = 'body', reportProgress = false, options) {
|
|
1601
|
+
if (id === null || id === undefined) {
|
|
1602
|
+
throw new Error('Required parameter id was null or undefined when calling getPoItemSummary.');
|
|
1603
|
+
}
|
|
1604
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1605
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
1606
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
1607
|
+
// to determine the Accept header
|
|
1608
|
+
const httpHeaderAccepts = [
|
|
1609
|
+
'application/json'
|
|
1610
|
+
];
|
|
1611
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1612
|
+
}
|
|
1613
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1614
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1615
|
+
}
|
|
1616
|
+
let localVarHttpContext = options && options.context;
|
|
1617
|
+
if (localVarHttpContext === undefined) {
|
|
1618
|
+
localVarHttpContext = new HttpContext();
|
|
1619
|
+
}
|
|
1620
|
+
let localVarTransferCache = options && options.transferCache;
|
|
1621
|
+
if (localVarTransferCache === undefined) {
|
|
1622
|
+
localVarTransferCache = true;
|
|
1623
|
+
}
|
|
1624
|
+
let responseType_ = 'json';
|
|
1625
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1626
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1627
|
+
responseType_ = 'text';
|
|
1628
|
+
}
|
|
1629
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1630
|
+
responseType_ = 'json';
|
|
1631
|
+
}
|
|
1632
|
+
else {
|
|
1633
|
+
responseType_ = 'blob';
|
|
1634
|
+
}
|
|
1635
|
+
}
|
|
1636
|
+
let localVarPath = `/poItems/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/summary`;
|
|
1637
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
1638
|
+
context: localVarHttpContext,
|
|
1639
|
+
responseType: responseType_,
|
|
1640
|
+
withCredentials: this.configuration.withCredentials,
|
|
1641
|
+
headers: localVarHeaders,
|
|
1642
|
+
observe: observe,
|
|
1643
|
+
transferCache: localVarTransferCache,
|
|
1644
|
+
reportProgress: reportProgress
|
|
1645
|
+
});
|
|
1646
|
+
}
|
|
1647
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: PoItemsService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1648
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: PoItemsService, providedIn: 'root' });
|
|
1649
|
+
}
|
|
1650
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: PoItemsService, decorators: [{
|
|
1651
|
+
type: Injectable,
|
|
1652
|
+
args: [{
|
|
1653
|
+
providedIn: 'root'
|
|
1654
|
+
}]
|
|
1655
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1656
|
+
type: Optional
|
|
1657
|
+
}, {
|
|
1658
|
+
type: Inject,
|
|
1659
|
+
args: [BASE_PATH]
|
|
1660
|
+
}] }, { type: Configuration, decorators: [{
|
|
1661
|
+
type: Optional
|
|
1662
|
+
}] }] });
|
|
1663
|
+
|
|
1529
1664
|
/**
|
|
1530
1665
|
* Dcm.API.Client
|
|
1531
1666
|
*
|
|
@@ -1597,6 +1732,53 @@ class PurchaseOrdersService {
|
|
|
1597
1732
|
}
|
|
1598
1733
|
return httpParams;
|
|
1599
1734
|
}
|
|
1735
|
+
getPoItemTotals(purchaseOrderId, observe = 'body', reportProgress = false, options) {
|
|
1736
|
+
if (purchaseOrderId === null || purchaseOrderId === undefined) {
|
|
1737
|
+
throw new Error('Required parameter purchaseOrderId was null or undefined when calling getPoItemTotals.');
|
|
1738
|
+
}
|
|
1739
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1740
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
1741
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
1742
|
+
// to determine the Accept header
|
|
1743
|
+
const httpHeaderAccepts = [
|
|
1744
|
+
'application/json'
|
|
1745
|
+
];
|
|
1746
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1747
|
+
}
|
|
1748
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1749
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1750
|
+
}
|
|
1751
|
+
let localVarHttpContext = options && options.context;
|
|
1752
|
+
if (localVarHttpContext === undefined) {
|
|
1753
|
+
localVarHttpContext = new HttpContext();
|
|
1754
|
+
}
|
|
1755
|
+
let localVarTransferCache = options && options.transferCache;
|
|
1756
|
+
if (localVarTransferCache === undefined) {
|
|
1757
|
+
localVarTransferCache = true;
|
|
1758
|
+
}
|
|
1759
|
+
let responseType_ = 'json';
|
|
1760
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1761
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1762
|
+
responseType_ = 'text';
|
|
1763
|
+
}
|
|
1764
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1765
|
+
responseType_ = 'json';
|
|
1766
|
+
}
|
|
1767
|
+
else {
|
|
1768
|
+
responseType_ = 'blob';
|
|
1769
|
+
}
|
|
1770
|
+
}
|
|
1771
|
+
let localVarPath = `/purchaseOrders/${this.configuration.encodeParam({ name: "purchaseOrderId", value: purchaseOrderId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/itemTotals`;
|
|
1772
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
1773
|
+
context: localVarHttpContext,
|
|
1774
|
+
responseType: responseType_,
|
|
1775
|
+
withCredentials: this.configuration.withCredentials,
|
|
1776
|
+
headers: localVarHeaders,
|
|
1777
|
+
observe: observe,
|
|
1778
|
+
transferCache: localVarTransferCache,
|
|
1779
|
+
reportProgress: reportProgress
|
|
1780
|
+
});
|
|
1781
|
+
}
|
|
1600
1782
|
getPurchaseOrderProducts(id, $skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
|
|
1601
1783
|
if (id === null || id === undefined) {
|
|
1602
1784
|
throw new Error('Required parameter id was null or undefined when calling getPurchaseOrderProducts.');
|
|
@@ -3314,6 +3496,158 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImpor
|
|
|
3314
3496
|
type: Optional
|
|
3315
3497
|
}] }] });
|
|
3316
3498
|
|
|
3499
|
+
/**
|
|
3500
|
+
* Dcm.API.Client
|
|
3501
|
+
*
|
|
3502
|
+
*
|
|
3503
|
+
*
|
|
3504
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3505
|
+
* https://openapi-generator.tech
|
|
3506
|
+
* Do not edit the class manually.
|
|
3507
|
+
*/
|
|
3508
|
+
/* tslint:disable:no-unused-variable member-ordering */
|
|
3509
|
+
class SipmetItemsService {
|
|
3510
|
+
httpClient;
|
|
3511
|
+
basePath = 'http://localhost';
|
|
3512
|
+
defaultHeaders = new HttpHeaders();
|
|
3513
|
+
configuration = new Configuration();
|
|
3514
|
+
encoder;
|
|
3515
|
+
constructor(httpClient, basePath, configuration) {
|
|
3516
|
+
this.httpClient = httpClient;
|
|
3517
|
+
if (configuration) {
|
|
3518
|
+
this.configuration = configuration;
|
|
3519
|
+
}
|
|
3520
|
+
if (typeof this.configuration.basePath !== 'string') {
|
|
3521
|
+
const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
|
|
3522
|
+
if (firstBasePath != undefined) {
|
|
3523
|
+
basePath = firstBasePath;
|
|
3524
|
+
}
|
|
3525
|
+
if (typeof basePath !== 'string') {
|
|
3526
|
+
basePath = this.basePath;
|
|
3527
|
+
}
|
|
3528
|
+
this.configuration.basePath = basePath;
|
|
3529
|
+
}
|
|
3530
|
+
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
3531
|
+
}
|
|
3532
|
+
// @ts-ignore
|
|
3533
|
+
addToHttpParams(httpParams, value, key) {
|
|
3534
|
+
if (typeof value === "object" && value instanceof Date === false) {
|
|
3535
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
3536
|
+
}
|
|
3537
|
+
else {
|
|
3538
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
|
|
3539
|
+
}
|
|
3540
|
+
return httpParams;
|
|
3541
|
+
}
|
|
3542
|
+
addToHttpParamsRecursive(httpParams, value, key) {
|
|
3543
|
+
if (value == null) {
|
|
3544
|
+
return httpParams;
|
|
3545
|
+
}
|
|
3546
|
+
if (typeof value === "object") {
|
|
3547
|
+
if (Array.isArray(value)) {
|
|
3548
|
+
value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
|
|
3549
|
+
}
|
|
3550
|
+
else if (value instanceof Date) {
|
|
3551
|
+
if (key != null) {
|
|
3552
|
+
httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
|
|
3553
|
+
}
|
|
3554
|
+
else {
|
|
3555
|
+
throw Error("key may not be null if value is Date");
|
|
3556
|
+
}
|
|
3557
|
+
}
|
|
3558
|
+
else {
|
|
3559
|
+
Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
|
|
3560
|
+
}
|
|
3561
|
+
}
|
|
3562
|
+
else if (key != null) {
|
|
3563
|
+
httpParams = httpParams.append(key, value);
|
|
3564
|
+
}
|
|
3565
|
+
else {
|
|
3566
|
+
throw Error("key may not be null if value is not object or array");
|
|
3567
|
+
}
|
|
3568
|
+
return httpParams;
|
|
3569
|
+
}
|
|
3570
|
+
getShipmentItemSummaries(id, $skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
|
|
3571
|
+
if (id === null || id === undefined) {
|
|
3572
|
+
throw new Error('Required parameter id was null or undefined when calling getShipmentItemSummaries.');
|
|
3573
|
+
}
|
|
3574
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
3575
|
+
if ($skip !== undefined && $skip !== null) {
|
|
3576
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
|
|
3577
|
+
}
|
|
3578
|
+
if ($top !== undefined && $top !== null) {
|
|
3579
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
|
|
3580
|
+
}
|
|
3581
|
+
if ($orderby !== undefined && $orderby !== null) {
|
|
3582
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
|
|
3583
|
+
}
|
|
3584
|
+
if ($filter !== undefined && $filter !== null) {
|
|
3585
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
|
|
3586
|
+
}
|
|
3587
|
+
if ($search !== undefined && $search !== null) {
|
|
3588
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
|
|
3589
|
+
}
|
|
3590
|
+
let localVarHeaders = this.defaultHeaders;
|
|
3591
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
3592
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
3593
|
+
// to determine the Accept header
|
|
3594
|
+
const httpHeaderAccepts = [
|
|
3595
|
+
'application/json'
|
|
3596
|
+
];
|
|
3597
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
3598
|
+
}
|
|
3599
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
3600
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
3601
|
+
}
|
|
3602
|
+
let localVarHttpContext = options && options.context;
|
|
3603
|
+
if (localVarHttpContext === undefined) {
|
|
3604
|
+
localVarHttpContext = new HttpContext();
|
|
3605
|
+
}
|
|
3606
|
+
let localVarTransferCache = options && options.transferCache;
|
|
3607
|
+
if (localVarTransferCache === undefined) {
|
|
3608
|
+
localVarTransferCache = true;
|
|
3609
|
+
}
|
|
3610
|
+
let responseType_ = 'json';
|
|
3611
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
3612
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
3613
|
+
responseType_ = 'text';
|
|
3614
|
+
}
|
|
3615
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
3616
|
+
responseType_ = 'json';
|
|
3617
|
+
}
|
|
3618
|
+
else {
|
|
3619
|
+
responseType_ = 'blob';
|
|
3620
|
+
}
|
|
3621
|
+
}
|
|
3622
|
+
let localVarPath = `/shipmentItems/summaries`;
|
|
3623
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
3624
|
+
context: localVarHttpContext,
|
|
3625
|
+
params: localVarQueryParameters,
|
|
3626
|
+
responseType: responseType_,
|
|
3627
|
+
withCredentials: this.configuration.withCredentials,
|
|
3628
|
+
headers: localVarHeaders,
|
|
3629
|
+
observe: observe,
|
|
3630
|
+
transferCache: localVarTransferCache,
|
|
3631
|
+
reportProgress: reportProgress
|
|
3632
|
+
});
|
|
3633
|
+
}
|
|
3634
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: SipmetItemsService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3635
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: SipmetItemsService, providedIn: 'root' });
|
|
3636
|
+
}
|
|
3637
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: SipmetItemsService, decorators: [{
|
|
3638
|
+
type: Injectable,
|
|
3639
|
+
args: [{
|
|
3640
|
+
providedIn: 'root'
|
|
3641
|
+
}]
|
|
3642
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
3643
|
+
type: Optional
|
|
3644
|
+
}, {
|
|
3645
|
+
type: Inject,
|
|
3646
|
+
args: [BASE_PATH]
|
|
3647
|
+
}] }, { type: Configuration, decorators: [{
|
|
3648
|
+
type: Optional
|
|
3649
|
+
}] }] });
|
|
3650
|
+
|
|
3317
3651
|
/**
|
|
3318
3652
|
* Dcm.API.Client
|
|
3319
3653
|
*
|
|
@@ -3631,7 +3965,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImpor
|
|
|
3631
3965
|
type: Optional
|
|
3632
3966
|
}] }] });
|
|
3633
3967
|
|
|
3634
|
-
const APIS = [AuditLogsService, BookingsService, ContainersService, DocumentsService, HealthService, NotesService, PermissionsService, PurchaseOrdersService, ReportsService, SettingsService, ShipmentsService, UserService];
|
|
3968
|
+
const APIS = [AuditLogsService, BookingsService, ContainersService, DocumentsService, HealthService, NotesService, PermissionsService, PoItemsService, PurchaseOrdersService, ReportsService, SettingsService, ShipmentsService, SipmetItemsService, UserService];
|
|
3635
3969
|
|
|
3636
3970
|
/**
|
|
3637
3971
|
* Dcm.API.Client
|
|
@@ -3923,6 +4257,26 @@ const NoteSourceTypes = {
|
|
|
3923
4257
|
* Do not edit the class manually.
|
|
3924
4258
|
*/
|
|
3925
4259
|
|
|
4260
|
+
/**
|
|
4261
|
+
* Dcm.API.Client
|
|
4262
|
+
*
|
|
4263
|
+
*
|
|
4264
|
+
*
|
|
4265
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
4266
|
+
* https://openapi-generator.tech
|
|
4267
|
+
* Do not edit the class manually.
|
|
4268
|
+
*/
|
|
4269
|
+
|
|
4270
|
+
/**
|
|
4271
|
+
* Dcm.API.Client
|
|
4272
|
+
*
|
|
4273
|
+
*
|
|
4274
|
+
*
|
|
4275
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
4276
|
+
* https://openapi-generator.tech
|
|
4277
|
+
* Do not edit the class manually.
|
|
4278
|
+
*/
|
|
4279
|
+
|
|
3926
4280
|
/**
|
|
3927
4281
|
* Dcm.API.Client
|
|
3928
4282
|
*
|
|
@@ -4281,5 +4635,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImpor
|
|
|
4281
4635
|
* Generated bundle index. Do not edit.
|
|
4282
4636
|
*/
|
|
4283
4637
|
|
|
4284
|
-
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 };
|
|
4638
|
+
export { APIS, ApiModule, ApprovalTypes, AuditLogsService, BASE_PATH, BookingsService, COLLECTION_FORMATS, Configuration, ContainerTypes, ContainersService, DocumentType, DocumentsService, EntityState, HealthService, JourneySegmentTypes, NoteSourceTypes, NotesService, PermissionsService, PoItemsService, PowerBiTenant, PurchaseOrderState, PurchaseOrdersService, RecordTypes, ReportsService, SettingsService, ShipmentApprovalType, ShipmentState, ShipmentTerm, ShipmentsService, SipmetItemsService, TimelineEventStates, TimelineEventTypes, TransportMode, UserService, WorkflowArtifacts };
|
|
4285
4639
|
//# sourceMappingURL=indigina-dcm-api.mjs.map
|