@indigina/dcm-api 0.0.10 → 0.0.12
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 +22 -0
- package/api/user.service.d.ts +23 -0
- package/esm2022/api/shipments.service.mjs +48 -1
- package/esm2022/api/user.service.mjs +54 -1
- package/esm2022/model/commandStatusResult.mjs +13 -0
- package/esm2022/model/models.mjs +5 -1
- package/esm2022/model/port.mjs +1 -1
- package/esm2022/model/setNewFeaturesVisibilityCommand.mjs +13 -0
- package/esm2022/model/shipmentItem.mjs +13 -0
- package/esm2022/model/shipmentItemsList.mjs +2 -0
- package/esm2022/model/transportCarrier.mjs +1 -1
- package/fesm2022/indigina-dcm-api.mjs +136 -0
- package/fesm2022/indigina-dcm-api.mjs.map +1 -1
- package/model/commandStatusResult.d.ts +14 -0
- package/model/models.d.ts +4 -0
- package/model/port.d.ts +1 -0
- package/model/setNewFeaturesVisibilityCommand.d.ts +14 -0
- package/model/shipmentItem.d.ts +24 -0
- package/model/shipmentItemsList.d.ts +16 -0
- package/model/transportCarrier.d.ts +1 -0
- package/package.json +1 -1
|
@@ -623,6 +623,53 @@ class ShipmentsService {
|
|
|
623
623
|
}
|
|
624
624
|
return httpParams;
|
|
625
625
|
}
|
|
626
|
+
getShipmentItems(id, observe = 'body', reportProgress = false, options) {
|
|
627
|
+
if (id === null || id === undefined) {
|
|
628
|
+
throw new Error('Required parameter id was null or undefined when calling getShipmentItems.');
|
|
629
|
+
}
|
|
630
|
+
let localVarHeaders = this.defaultHeaders;
|
|
631
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
632
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
633
|
+
// to determine the Accept header
|
|
634
|
+
const httpHeaderAccepts = [
|
|
635
|
+
'application/json'
|
|
636
|
+
];
|
|
637
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
638
|
+
}
|
|
639
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
640
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
641
|
+
}
|
|
642
|
+
let localVarHttpContext = options && options.context;
|
|
643
|
+
if (localVarHttpContext === undefined) {
|
|
644
|
+
localVarHttpContext = new HttpContext();
|
|
645
|
+
}
|
|
646
|
+
let localVarTransferCache = options && options.transferCache;
|
|
647
|
+
if (localVarTransferCache === undefined) {
|
|
648
|
+
localVarTransferCache = true;
|
|
649
|
+
}
|
|
650
|
+
let responseType_ = 'json';
|
|
651
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
652
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
653
|
+
responseType_ = 'text';
|
|
654
|
+
}
|
|
655
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
656
|
+
responseType_ = 'json';
|
|
657
|
+
}
|
|
658
|
+
else {
|
|
659
|
+
responseType_ = 'blob';
|
|
660
|
+
}
|
|
661
|
+
}
|
|
662
|
+
let localVarPath = `/shipments/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/items`;
|
|
663
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
664
|
+
context: localVarHttpContext,
|
|
665
|
+
responseType: responseType_,
|
|
666
|
+
withCredentials: this.configuration.withCredentials,
|
|
667
|
+
headers: localVarHeaders,
|
|
668
|
+
observe: observe,
|
|
669
|
+
transferCache: localVarTransferCache,
|
|
670
|
+
reportProgress: reportProgress
|
|
671
|
+
});
|
|
672
|
+
}
|
|
626
673
|
getShipments($skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
|
|
627
674
|
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
628
675
|
if ($skip !== undefined && $skip !== null) {
|
|
@@ -993,6 +1040,59 @@ class UserService {
|
|
|
993
1040
|
reportProgress: reportProgress
|
|
994
1041
|
});
|
|
995
1042
|
}
|
|
1043
|
+
setNewFeaturesVisibility(setNewFeaturesVisibilityCommand, observe = 'body', reportProgress = false, options) {
|
|
1044
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1045
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
1046
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
1047
|
+
// to determine the Accept header
|
|
1048
|
+
const httpHeaderAccepts = [
|
|
1049
|
+
'application/json'
|
|
1050
|
+
];
|
|
1051
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1052
|
+
}
|
|
1053
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1054
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1055
|
+
}
|
|
1056
|
+
let localVarHttpContext = options && options.context;
|
|
1057
|
+
if (localVarHttpContext === undefined) {
|
|
1058
|
+
localVarHttpContext = new HttpContext();
|
|
1059
|
+
}
|
|
1060
|
+
let localVarTransferCache = options && options.transferCache;
|
|
1061
|
+
if (localVarTransferCache === undefined) {
|
|
1062
|
+
localVarTransferCache = true;
|
|
1063
|
+
}
|
|
1064
|
+
// to determine the Content-Type header
|
|
1065
|
+
const consumes = [
|
|
1066
|
+
'application/json'
|
|
1067
|
+
];
|
|
1068
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
1069
|
+
if (httpContentTypeSelected !== undefined) {
|
|
1070
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
1071
|
+
}
|
|
1072
|
+
let responseType_ = 'json';
|
|
1073
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1074
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1075
|
+
responseType_ = 'text';
|
|
1076
|
+
}
|
|
1077
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1078
|
+
responseType_ = 'json';
|
|
1079
|
+
}
|
|
1080
|
+
else {
|
|
1081
|
+
responseType_ = 'blob';
|
|
1082
|
+
}
|
|
1083
|
+
}
|
|
1084
|
+
let localVarPath = `/user/me/settings/newfeaturevisibility`;
|
|
1085
|
+
return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, {
|
|
1086
|
+
context: localVarHttpContext,
|
|
1087
|
+
body: setNewFeaturesVisibilityCommand,
|
|
1088
|
+
responseType: responseType_,
|
|
1089
|
+
withCredentials: this.configuration.withCredentials,
|
|
1090
|
+
headers: localVarHeaders,
|
|
1091
|
+
observe: observe,
|
|
1092
|
+
transferCache: localVarTransferCache,
|
|
1093
|
+
reportProgress: reportProgress
|
|
1094
|
+
});
|
|
1095
|
+
}
|
|
996
1096
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: UserService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
997
1097
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: UserService, providedIn: 'root' });
|
|
998
1098
|
}
|
|
@@ -1096,6 +1196,30 @@ const APIS = [ContainersService, HealthService, PermissionsService, ShipmentsSer
|
|
|
1096
1196
|
* Do not edit the class manually.
|
|
1097
1197
|
*/
|
|
1098
1198
|
|
|
1199
|
+
/**
|
|
1200
|
+
* Dcm.API.Client
|
|
1201
|
+
* DCM API Client for Angular applications
|
|
1202
|
+
*
|
|
1203
|
+
* The version of the OpenAPI document: v1
|
|
1204
|
+
*
|
|
1205
|
+
*
|
|
1206
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1207
|
+
* https://openapi-generator.tech
|
|
1208
|
+
* Do not edit the class manually.
|
|
1209
|
+
*/
|
|
1210
|
+
|
|
1211
|
+
/**
|
|
1212
|
+
* Dcm.API.Client
|
|
1213
|
+
* DCM API Client for Angular applications
|
|
1214
|
+
*
|
|
1215
|
+
* The version of the OpenAPI document: v1
|
|
1216
|
+
*
|
|
1217
|
+
*
|
|
1218
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1219
|
+
* https://openapi-generator.tech
|
|
1220
|
+
* Do not edit the class manually.
|
|
1221
|
+
*/
|
|
1222
|
+
|
|
1099
1223
|
/**
|
|
1100
1224
|
* Dcm.API.Client
|
|
1101
1225
|
* DCM API Client for Angular applications
|
|
@@ -1112,6 +1236,18 @@ const ShipmentApprovalType = {
|
|
|
1112
1236
|
Manual: 'Manual'
|
|
1113
1237
|
};
|
|
1114
1238
|
|
|
1239
|
+
/**
|
|
1240
|
+
* Dcm.API.Client
|
|
1241
|
+
* DCM API Client for Angular applications
|
|
1242
|
+
*
|
|
1243
|
+
* The version of the OpenAPI document: v1
|
|
1244
|
+
*
|
|
1245
|
+
*
|
|
1246
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1247
|
+
* https://openapi-generator.tech
|
|
1248
|
+
* Do not edit the class manually.
|
|
1249
|
+
*/
|
|
1250
|
+
|
|
1115
1251
|
/**
|
|
1116
1252
|
* Dcm.API.Client
|
|
1117
1253
|
* DCM API Client for Angular applications
|