@indigina/dcm-api 0.0.16 → 0.0.17
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.
|
@@ -800,138 +800,6 @@ 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
|
-
}
|
|
935
803
|
getShipmentItems(id, observe = 'body', reportProgress = false, options) {
|
|
936
804
|
if (id === null || id === undefined) {
|
|
937
805
|
throw new Error('Required parameter id was null or undefined when calling getShipmentItems.');
|
|
@@ -1084,7 +952,10 @@ class ShipmentsService {
|
|
|
1084
952
|
reportProgress: reportProgress
|
|
1085
953
|
});
|
|
1086
954
|
}
|
|
1087
|
-
|
|
955
|
+
getShipmentsCountByState(state, observe = 'body', reportProgress = false, options) {
|
|
956
|
+
if (state === null || state === undefined) {
|
|
957
|
+
throw new Error('Required parameter state was null or undefined when calling getShipmentsCountByState.');
|
|
958
|
+
}
|
|
1088
959
|
let localVarHeaders = this.defaultHeaders;
|
|
1089
960
|
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
1090
961
|
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
@@ -1117,7 +988,7 @@ class ShipmentsService {
|
|
|
1117
988
|
responseType_ = 'blob';
|
|
1118
989
|
}
|
|
1119
990
|
}
|
|
1120
|
-
let localVarPath = `/shipments/
|
|
991
|
+
let localVarPath = `/shipments/byStateCount/${this.configuration.encodeParam({ name: "state", value: state, in: "path", style: "simple", explode: false, dataType: "'Draft' | 'CancellationRequested' | 'Amend' | 'AuthorisedToShip'", dataFormat: undefined })}`;
|
|
1121
992
|
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
1122
993
|
context: localVarHttpContext,
|
|
1123
994
|
responseType: responseType_,
|