@indigina/dcm-api 0.0.9 → 0.0.10
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/shipments.service.d.ts +26 -0
- package/esm2022/api/shipments.service.mjs +63 -2
- package/esm2022/model/company.mjs +13 -0
- package/esm2022/model/country.mjs +13 -0
- package/esm2022/model/departmentShipment.mjs +13 -0
- package/esm2022/model/models.mjs +13 -1
- package/esm2022/model/port.mjs +2 -0
- package/esm2022/model/shipment.mjs +2 -0
- package/esm2022/model/shipmentApprovalType.mjs +16 -0
- package/esm2022/model/shipmentState.mjs +23 -0
- package/esm2022/model/shipmentType.mjs +17 -0
- package/esm2022/model/shipmentsList.mjs +2 -0
- package/esm2022/model/transportCarrier.mjs +13 -0
- package/esm2022/model/transportLocation.mjs +13 -0
- package/esm2022/model/user.mjs +13 -0
- package/fesm2022/indigina-dcm-api.mjs +191 -2
- package/fesm2022/indigina-dcm-api.mjs.map +1 -1
- package/model/company.d.ts +15 -0
- package/model/country.d.ts +15 -0
- package/model/departmentShipment.d.ts +16 -0
- package/model/models.d.ts +12 -0
- package/model/port.d.ts +17 -0
- package/model/shipment.d.ts +63 -0
- package/model/shipmentApprovalType.d.ts +16 -0
- package/model/shipmentState.d.ts +23 -0
- package/model/shipmentType.d.ts +17 -0
- package/model/shipmentsList.d.ts +16 -0
- package/model/transportCarrier.d.ts +14 -0
- package/model/transportLocation.d.ts +15 -0
- package/model/user.d.ts +15 -0
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { InjectionToken, Injectable, Optional, Inject, NgModule, SkipSelf } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common/http';
|
|
4
|
-
import { HttpHeaders, HttpContext } from '@angular/common/http';
|
|
4
|
+
import { HttpHeaders, HttpContext, HttpParams } from '@angular/common/http';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Custom HttpParameterCodec
|
|
@@ -623,6 +623,67 @@ class ShipmentsService {
|
|
|
623
623
|
}
|
|
624
624
|
return httpParams;
|
|
625
625
|
}
|
|
626
|
+
getShipments($skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
|
|
627
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
628
|
+
if ($skip !== undefined && $skip !== null) {
|
|
629
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
|
|
630
|
+
}
|
|
631
|
+
if ($top !== undefined && $top !== null) {
|
|
632
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
|
|
633
|
+
}
|
|
634
|
+
if ($orderby !== undefined && $orderby !== null) {
|
|
635
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
|
|
636
|
+
}
|
|
637
|
+
if ($filter !== undefined && $filter !== null) {
|
|
638
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
|
|
639
|
+
}
|
|
640
|
+
if ($search !== undefined && $search !== null) {
|
|
641
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
|
|
642
|
+
}
|
|
643
|
+
let localVarHeaders = this.defaultHeaders;
|
|
644
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
645
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
646
|
+
// to determine the Accept header
|
|
647
|
+
const httpHeaderAccepts = [
|
|
648
|
+
'application/json'
|
|
649
|
+
];
|
|
650
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
651
|
+
}
|
|
652
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
653
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
654
|
+
}
|
|
655
|
+
let localVarHttpContext = options && options.context;
|
|
656
|
+
if (localVarHttpContext === undefined) {
|
|
657
|
+
localVarHttpContext = new HttpContext();
|
|
658
|
+
}
|
|
659
|
+
let localVarTransferCache = options && options.transferCache;
|
|
660
|
+
if (localVarTransferCache === undefined) {
|
|
661
|
+
localVarTransferCache = true;
|
|
662
|
+
}
|
|
663
|
+
let responseType_ = 'json';
|
|
664
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
665
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
666
|
+
responseType_ = 'text';
|
|
667
|
+
}
|
|
668
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
669
|
+
responseType_ = 'json';
|
|
670
|
+
}
|
|
671
|
+
else {
|
|
672
|
+
responseType_ = 'blob';
|
|
673
|
+
}
|
|
674
|
+
}
|
|
675
|
+
let localVarPath = `/shipments/list`;
|
|
676
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
677
|
+
context: localVarHttpContext,
|
|
678
|
+
params: localVarQueryParameters,
|
|
679
|
+
responseType: responseType_,
|
|
680
|
+
withCredentials: this.configuration.withCredentials,
|
|
681
|
+
headers: localVarHeaders,
|
|
682
|
+
observe: observe,
|
|
683
|
+
transferCache: localVarTransferCache,
|
|
684
|
+
reportProgress: reportProgress
|
|
685
|
+
});
|
|
686
|
+
}
|
|
626
687
|
getShipmentsApprovalCount(observe = 'body', reportProgress = false, options) {
|
|
627
688
|
let localVarHeaders = this.defaultHeaders;
|
|
628
689
|
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
@@ -963,6 +1024,134 @@ const APIS = [ContainersService, HealthService, PermissionsService, ShipmentsSer
|
|
|
963
1024
|
* Do not edit the class manually.
|
|
964
1025
|
*/
|
|
965
1026
|
|
|
1027
|
+
/**
|
|
1028
|
+
* Dcm.API.Client
|
|
1029
|
+
* DCM API Client for Angular applications
|
|
1030
|
+
*
|
|
1031
|
+
* The version of the OpenAPI document: v1
|
|
1032
|
+
*
|
|
1033
|
+
*
|
|
1034
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1035
|
+
* https://openapi-generator.tech
|
|
1036
|
+
* Do not edit the class manually.
|
|
1037
|
+
*/
|
|
1038
|
+
|
|
1039
|
+
/**
|
|
1040
|
+
* Dcm.API.Client
|
|
1041
|
+
* DCM API Client for Angular applications
|
|
1042
|
+
*
|
|
1043
|
+
* The version of the OpenAPI document: v1
|
|
1044
|
+
*
|
|
1045
|
+
*
|
|
1046
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1047
|
+
* https://openapi-generator.tech
|
|
1048
|
+
* Do not edit the class manually.
|
|
1049
|
+
*/
|
|
1050
|
+
|
|
1051
|
+
/**
|
|
1052
|
+
* Dcm.API.Client
|
|
1053
|
+
* DCM API Client for Angular applications
|
|
1054
|
+
*
|
|
1055
|
+
* The version of the OpenAPI document: v1
|
|
1056
|
+
*
|
|
1057
|
+
*
|
|
1058
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1059
|
+
* https://openapi-generator.tech
|
|
1060
|
+
* Do not edit the class manually.
|
|
1061
|
+
*/
|
|
1062
|
+
|
|
1063
|
+
/**
|
|
1064
|
+
* Dcm.API.Client
|
|
1065
|
+
* DCM API Client for Angular applications
|
|
1066
|
+
*
|
|
1067
|
+
* The version of the OpenAPI document: v1
|
|
1068
|
+
*
|
|
1069
|
+
*
|
|
1070
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1071
|
+
* https://openapi-generator.tech
|
|
1072
|
+
* Do not edit the class manually.
|
|
1073
|
+
*/
|
|
1074
|
+
|
|
1075
|
+
/**
|
|
1076
|
+
* Dcm.API.Client
|
|
1077
|
+
* DCM API Client for Angular applications
|
|
1078
|
+
*
|
|
1079
|
+
* The version of the OpenAPI document: v1
|
|
1080
|
+
*
|
|
1081
|
+
*
|
|
1082
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1083
|
+
* https://openapi-generator.tech
|
|
1084
|
+
* Do not edit the class manually.
|
|
1085
|
+
*/
|
|
1086
|
+
|
|
1087
|
+
/**
|
|
1088
|
+
* Dcm.API.Client
|
|
1089
|
+
* DCM API Client for Angular applications
|
|
1090
|
+
*
|
|
1091
|
+
* The version of the OpenAPI document: v1
|
|
1092
|
+
*
|
|
1093
|
+
*
|
|
1094
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1095
|
+
* https://openapi-generator.tech
|
|
1096
|
+
* Do not edit the class manually.
|
|
1097
|
+
*/
|
|
1098
|
+
|
|
1099
|
+
/**
|
|
1100
|
+
* Dcm.API.Client
|
|
1101
|
+
* DCM API Client for Angular applications
|
|
1102
|
+
*
|
|
1103
|
+
* The version of the OpenAPI document: v1
|
|
1104
|
+
*
|
|
1105
|
+
*
|
|
1106
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1107
|
+
* https://openapi-generator.tech
|
|
1108
|
+
* Do not edit the class manually.
|
|
1109
|
+
*/
|
|
1110
|
+
const ShipmentApprovalType = {
|
|
1111
|
+
Auto: 'Auto',
|
|
1112
|
+
Manual: 'Manual'
|
|
1113
|
+
};
|
|
1114
|
+
|
|
1115
|
+
/**
|
|
1116
|
+
* Dcm.API.Client
|
|
1117
|
+
* DCM API Client for Angular applications
|
|
1118
|
+
*
|
|
1119
|
+
* The version of the OpenAPI document: v1
|
|
1120
|
+
*
|
|
1121
|
+
*
|
|
1122
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1123
|
+
* https://openapi-generator.tech
|
|
1124
|
+
* Do not edit the class manually.
|
|
1125
|
+
*/
|
|
1126
|
+
const ShipmentState = {
|
|
1127
|
+
Draft: 'Draft',
|
|
1128
|
+
RequestAuthorisation: 'RequestAuthorisation',
|
|
1129
|
+
AuthorisedToShip: 'AuthorisedToShip',
|
|
1130
|
+
Amend: 'Amend',
|
|
1131
|
+
Confirmed: 'Confirmed',
|
|
1132
|
+
Delivered: 'Delivered',
|
|
1133
|
+
Arrived: 'Arrived',
|
|
1134
|
+
CancellationRequested: 'CancellationRequested',
|
|
1135
|
+
Cancelled: 'Cancelled'
|
|
1136
|
+
};
|
|
1137
|
+
|
|
1138
|
+
/**
|
|
1139
|
+
* Dcm.API.Client
|
|
1140
|
+
* DCM API Client for Angular applications
|
|
1141
|
+
*
|
|
1142
|
+
* The version of the OpenAPI document: v1
|
|
1143
|
+
*
|
|
1144
|
+
*
|
|
1145
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1146
|
+
* https://openapi-generator.tech
|
|
1147
|
+
* Do not edit the class manually.
|
|
1148
|
+
*/
|
|
1149
|
+
const ShipmentType = {
|
|
1150
|
+
Air: 'Air',
|
|
1151
|
+
Sea: 'Sea',
|
|
1152
|
+
Road: 'Road'
|
|
1153
|
+
};
|
|
1154
|
+
|
|
966
1155
|
/**
|
|
967
1156
|
* Dcm.API.Client
|
|
968
1157
|
* DCM API Client for Angular applications
|
|
@@ -1075,5 +1264,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.3", ngImpor
|
|
|
1075
1264
|
* Generated bundle index. Do not edit.
|
|
1076
1265
|
*/
|
|
1077
1266
|
|
|
1078
|
-
export { APIS, ApiModule, BASE_PATH, COLLECTION_FORMATS, Configuration, ContainersService, HealthService, PermissionsService, ShipmentsService, UserService };
|
|
1267
|
+
export { APIS, ApiModule, BASE_PATH, COLLECTION_FORMATS, Configuration, ContainersService, HealthService, PermissionsService, ShipmentApprovalType, ShipmentState, ShipmentType, ShipmentsService, UserService };
|
|
1079
1268
|
//# sourceMappingURL=indigina-dcm-api.mjs.map
|