@indigina/dcm-api 0.0.15 → 0.0.16
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 +81 -0
- package/esm2022/api/shipments.service.mjs +177 -1
- package/esm2022/model/models.mjs +2 -1
- package/esm2022/model/shipmentsCount.mjs +13 -0
- package/fesm2022/indigina-dcm-api.mjs +188 -0
- package/fesm2022/indigina-dcm-api.mjs.map +1 -1
- package/model/models.d.ts +1 -0
- package/model/shipmentsCount.d.ts +14 -0
- package/package.json +1 -1
|
@@ -800,6 +800,138 @@ class ShipmentsService {
|
|
|
800
800
|
}
|
|
801
801
|
return httpParams;
|
|
802
802
|
}
|
|
803
|
+
getCancellationRequestShipments(observe = 'body', reportProgress = false, options) {
|
|
804
|
+
let localVarHeaders = this.defaultHeaders;
|
|
805
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
806
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
807
|
+
// to determine the Accept header
|
|
808
|
+
const httpHeaderAccepts = [
|
|
809
|
+
'application/json'
|
|
810
|
+
];
|
|
811
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
812
|
+
}
|
|
813
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
814
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
815
|
+
}
|
|
816
|
+
let localVarHttpContext = options && options.context;
|
|
817
|
+
if (localVarHttpContext === undefined) {
|
|
818
|
+
localVarHttpContext = new HttpContext();
|
|
819
|
+
}
|
|
820
|
+
let localVarTransferCache = options && options.transferCache;
|
|
821
|
+
if (localVarTransferCache === undefined) {
|
|
822
|
+
localVarTransferCache = true;
|
|
823
|
+
}
|
|
824
|
+
let responseType_ = 'json';
|
|
825
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
826
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
827
|
+
responseType_ = 'text';
|
|
828
|
+
}
|
|
829
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
830
|
+
responseType_ = 'json';
|
|
831
|
+
}
|
|
832
|
+
else {
|
|
833
|
+
responseType_ = 'blob';
|
|
834
|
+
}
|
|
835
|
+
}
|
|
836
|
+
let localVarPath = `/shipments/cancellation/count`;
|
|
837
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
838
|
+
context: localVarHttpContext,
|
|
839
|
+
responseType: responseType_,
|
|
840
|
+
withCredentials: this.configuration.withCredentials,
|
|
841
|
+
headers: localVarHeaders,
|
|
842
|
+
observe: observe,
|
|
843
|
+
transferCache: localVarTransferCache,
|
|
844
|
+
reportProgress: reportProgress
|
|
845
|
+
});
|
|
846
|
+
}
|
|
847
|
+
getReAuthShipments(observe = 'body', reportProgress = false, options) {
|
|
848
|
+
let localVarHeaders = this.defaultHeaders;
|
|
849
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
850
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
851
|
+
// to determine the Accept header
|
|
852
|
+
const httpHeaderAccepts = [
|
|
853
|
+
'application/json'
|
|
854
|
+
];
|
|
855
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
856
|
+
}
|
|
857
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
858
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
859
|
+
}
|
|
860
|
+
let localVarHttpContext = options && options.context;
|
|
861
|
+
if (localVarHttpContext === undefined) {
|
|
862
|
+
localVarHttpContext = new HttpContext();
|
|
863
|
+
}
|
|
864
|
+
let localVarTransferCache = options && options.transferCache;
|
|
865
|
+
if (localVarTransferCache === undefined) {
|
|
866
|
+
localVarTransferCache = true;
|
|
867
|
+
}
|
|
868
|
+
let responseType_ = 'json';
|
|
869
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
870
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
871
|
+
responseType_ = 'text';
|
|
872
|
+
}
|
|
873
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
874
|
+
responseType_ = 'json';
|
|
875
|
+
}
|
|
876
|
+
else {
|
|
877
|
+
responseType_ = 'blob';
|
|
878
|
+
}
|
|
879
|
+
}
|
|
880
|
+
let localVarPath = `/shipments/reauth/count`;
|
|
881
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
882
|
+
context: localVarHttpContext,
|
|
883
|
+
responseType: responseType_,
|
|
884
|
+
withCredentials: this.configuration.withCredentials,
|
|
885
|
+
headers: localVarHeaders,
|
|
886
|
+
observe: observe,
|
|
887
|
+
transferCache: localVarTransferCache,
|
|
888
|
+
reportProgress: reportProgress
|
|
889
|
+
});
|
|
890
|
+
}
|
|
891
|
+
getReadyShipments(observe = 'body', reportProgress = false, options) {
|
|
892
|
+
let localVarHeaders = this.defaultHeaders;
|
|
893
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
894
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
895
|
+
// to determine the Accept header
|
|
896
|
+
const httpHeaderAccepts = [
|
|
897
|
+
'application/json'
|
|
898
|
+
];
|
|
899
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
900
|
+
}
|
|
901
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
902
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
903
|
+
}
|
|
904
|
+
let localVarHttpContext = options && options.context;
|
|
905
|
+
if (localVarHttpContext === undefined) {
|
|
906
|
+
localVarHttpContext = new HttpContext();
|
|
907
|
+
}
|
|
908
|
+
let localVarTransferCache = options && options.transferCache;
|
|
909
|
+
if (localVarTransferCache === undefined) {
|
|
910
|
+
localVarTransferCache = true;
|
|
911
|
+
}
|
|
912
|
+
let responseType_ = 'json';
|
|
913
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
914
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
915
|
+
responseType_ = 'text';
|
|
916
|
+
}
|
|
917
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
918
|
+
responseType_ = 'json';
|
|
919
|
+
}
|
|
920
|
+
else {
|
|
921
|
+
responseType_ = 'blob';
|
|
922
|
+
}
|
|
923
|
+
}
|
|
924
|
+
let localVarPath = `/shipments/toconfirm/count`;
|
|
925
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
926
|
+
context: localVarHttpContext,
|
|
927
|
+
responseType: responseType_,
|
|
928
|
+
withCredentials: this.configuration.withCredentials,
|
|
929
|
+
headers: localVarHeaders,
|
|
930
|
+
observe: observe,
|
|
931
|
+
transferCache: localVarTransferCache,
|
|
932
|
+
reportProgress: reportProgress
|
|
933
|
+
});
|
|
934
|
+
}
|
|
803
935
|
getShipmentItems(id, observe = 'body', reportProgress = false, options) {
|
|
804
936
|
if (id === null || id === undefined) {
|
|
805
937
|
throw new Error('Required parameter id was null or undefined when calling getShipmentItems.');
|
|
@@ -952,6 +1084,50 @@ class ShipmentsService {
|
|
|
952
1084
|
reportProgress: reportProgress
|
|
953
1085
|
});
|
|
954
1086
|
}
|
|
1087
|
+
getShipmentsDraft(observe = 'body', reportProgress = false, options) {
|
|
1088
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1089
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
1090
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
1091
|
+
// to determine the Accept header
|
|
1092
|
+
const httpHeaderAccepts = [
|
|
1093
|
+
'application/json'
|
|
1094
|
+
];
|
|
1095
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1096
|
+
}
|
|
1097
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1098
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1099
|
+
}
|
|
1100
|
+
let localVarHttpContext = options && options.context;
|
|
1101
|
+
if (localVarHttpContext === undefined) {
|
|
1102
|
+
localVarHttpContext = new HttpContext();
|
|
1103
|
+
}
|
|
1104
|
+
let localVarTransferCache = options && options.transferCache;
|
|
1105
|
+
if (localVarTransferCache === undefined) {
|
|
1106
|
+
localVarTransferCache = true;
|
|
1107
|
+
}
|
|
1108
|
+
let responseType_ = 'json';
|
|
1109
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1110
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1111
|
+
responseType_ = 'text';
|
|
1112
|
+
}
|
|
1113
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1114
|
+
responseType_ = 'json';
|
|
1115
|
+
}
|
|
1116
|
+
else {
|
|
1117
|
+
responseType_ = 'blob';
|
|
1118
|
+
}
|
|
1119
|
+
}
|
|
1120
|
+
let localVarPath = `/shipments/draft/count`;
|
|
1121
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
1122
|
+
context: localVarHttpContext,
|
|
1123
|
+
responseType: responseType_,
|
|
1124
|
+
withCredentials: this.configuration.withCredentials,
|
|
1125
|
+
headers: localVarHeaders,
|
|
1126
|
+
observe: observe,
|
|
1127
|
+
transferCache: localVarTransferCache,
|
|
1128
|
+
reportProgress: reportProgress
|
|
1129
|
+
});
|
|
1130
|
+
}
|
|
955
1131
|
getShipmentsInTransitCount(observe = 'body', reportProgress = false, options) {
|
|
956
1132
|
let localVarHeaders = this.defaultHeaders;
|
|
957
1133
|
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
@@ -1565,6 +1741,18 @@ const ShipmentType = {
|
|
|
1565
1741
|
* Do not edit the class manually.
|
|
1566
1742
|
*/
|
|
1567
1743
|
|
|
1744
|
+
/**
|
|
1745
|
+
* Dcm.API.Client
|
|
1746
|
+
* DCM API Client for Angular applications
|
|
1747
|
+
*
|
|
1748
|
+
* The version of the OpenAPI document: v1
|
|
1749
|
+
*
|
|
1750
|
+
*
|
|
1751
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1752
|
+
* https://openapi-generator.tech
|
|
1753
|
+
* Do not edit the class manually.
|
|
1754
|
+
*/
|
|
1755
|
+
|
|
1568
1756
|
class ApiModule {
|
|
1569
1757
|
static forRoot(configurationFactory) {
|
|
1570
1758
|
return {
|