@indigina/myseko-api 0.0.19 → 0.0.21
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
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @indigina/myseko-api@0.0.
|
|
1
|
+
# @indigina/myseko-api@0.0.21
|
|
2
2
|
|
|
3
3
|
MySeko 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/myseko-api@0.0.
|
|
27
|
+
npm install @indigina/myseko-api@0.0.21 --save
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
_without publishing (not recommended):_
|
|
@@ -1002,6 +1002,140 @@ class ShipmentService extends BaseService {
|
|
|
1002
1002
|
super(basePath, configuration);
|
|
1003
1003
|
this.httpClient = httpClient;
|
|
1004
1004
|
}
|
|
1005
|
+
createShipmentIssue(ordOrderID, createIssueRequest, observe = 'body', reportProgress = false, options) {
|
|
1006
|
+
if (ordOrderID === null || ordOrderID === undefined) {
|
|
1007
|
+
throw new Error('Required parameter ordOrderID was null or undefined when calling createShipmentIssue.');
|
|
1008
|
+
}
|
|
1009
|
+
if (createIssueRequest === null || createIssueRequest === undefined) {
|
|
1010
|
+
throw new Error('Required parameter createIssueRequest was null or undefined when calling createShipmentIssue.');
|
|
1011
|
+
}
|
|
1012
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1013
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
1014
|
+
'application/json'
|
|
1015
|
+
]);
|
|
1016
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1017
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1018
|
+
}
|
|
1019
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
1020
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
1021
|
+
// to determine the Content-Type header
|
|
1022
|
+
const consumes = [
|
|
1023
|
+
'application/json'
|
|
1024
|
+
];
|
|
1025
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
1026
|
+
if (httpContentTypeSelected !== undefined) {
|
|
1027
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
1028
|
+
}
|
|
1029
|
+
let responseType_ = 'json';
|
|
1030
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1031
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1032
|
+
responseType_ = 'text';
|
|
1033
|
+
}
|
|
1034
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1035
|
+
responseType_ = 'json';
|
|
1036
|
+
}
|
|
1037
|
+
else {
|
|
1038
|
+
responseType_ = 'blob';
|
|
1039
|
+
}
|
|
1040
|
+
}
|
|
1041
|
+
let localVarPath = `/myseko/shipments/${this.configuration.encodeParam({ name: "ordOrderID", value: ordOrderID, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid" })}/issues`;
|
|
1042
|
+
const { basePath, withCredentials } = this.configuration;
|
|
1043
|
+
return this.httpClient.request('post', `${basePath}${localVarPath}`, {
|
|
1044
|
+
context: localVarHttpContext,
|
|
1045
|
+
body: createIssueRequest,
|
|
1046
|
+
responseType: responseType_,
|
|
1047
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
1048
|
+
headers: localVarHeaders,
|
|
1049
|
+
observe: observe,
|
|
1050
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
1051
|
+
reportProgress: reportProgress
|
|
1052
|
+
});
|
|
1053
|
+
}
|
|
1054
|
+
getShipmentIssue(ordOrderID, issueID, observe = 'body', reportProgress = false, options) {
|
|
1055
|
+
if (ordOrderID === null || ordOrderID === undefined) {
|
|
1056
|
+
throw new Error('Required parameter ordOrderID was null or undefined when calling getShipmentIssue.');
|
|
1057
|
+
}
|
|
1058
|
+
if (issueID === null || issueID === undefined) {
|
|
1059
|
+
throw new Error('Required parameter issueID was null or undefined when calling getShipmentIssue.');
|
|
1060
|
+
}
|
|
1061
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1062
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
1063
|
+
'application/json'
|
|
1064
|
+
]);
|
|
1065
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1066
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1067
|
+
}
|
|
1068
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
1069
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
1070
|
+
let responseType_ = 'json';
|
|
1071
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1072
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1073
|
+
responseType_ = 'text';
|
|
1074
|
+
}
|
|
1075
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1076
|
+
responseType_ = 'json';
|
|
1077
|
+
}
|
|
1078
|
+
else {
|
|
1079
|
+
responseType_ = 'blob';
|
|
1080
|
+
}
|
|
1081
|
+
}
|
|
1082
|
+
let localVarPath = `/myseko/shipments/${this.configuration.encodeParam({ name: "ordOrderID", value: ordOrderID, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid" })}/issues/${this.configuration.encodeParam({ name: "issueID", value: issueID, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: undefined })}`;
|
|
1083
|
+
const { basePath, withCredentials } = this.configuration;
|
|
1084
|
+
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
1085
|
+
context: localVarHttpContext,
|
|
1086
|
+
responseType: responseType_,
|
|
1087
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
1088
|
+
headers: localVarHeaders,
|
|
1089
|
+
observe: observe,
|
|
1090
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
1091
|
+
reportProgress: reportProgress
|
|
1092
|
+
});
|
|
1093
|
+
}
|
|
1094
|
+
getShipmentIssues(ordOrderID, $skip, $top, $filter, $orderby, $select, $expand, observe = 'body', reportProgress = false, options) {
|
|
1095
|
+
if (ordOrderID === null || ordOrderID === undefined) {
|
|
1096
|
+
throw new Error('Required parameter ordOrderID was null or undefined when calling getShipmentIssues.');
|
|
1097
|
+
}
|
|
1098
|
+
let localVarQueryParameters = new OpenApiHttpParams(this.encoder);
|
|
1099
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, '$skip', $skip, QueryParamStyle.Form, true);
|
|
1100
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, '$top', $top, QueryParamStyle.Form, true);
|
|
1101
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, '$filter', $filter, QueryParamStyle.Form, true);
|
|
1102
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, '$orderby', $orderby, QueryParamStyle.Form, true);
|
|
1103
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, '$select', $select, QueryParamStyle.Form, true);
|
|
1104
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, '$expand', $expand, QueryParamStyle.Form, true);
|
|
1105
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1106
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
1107
|
+
'application/json'
|
|
1108
|
+
]);
|
|
1109
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1110
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1111
|
+
}
|
|
1112
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
1113
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
1114
|
+
let responseType_ = 'json';
|
|
1115
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1116
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1117
|
+
responseType_ = 'text';
|
|
1118
|
+
}
|
|
1119
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1120
|
+
responseType_ = 'json';
|
|
1121
|
+
}
|
|
1122
|
+
else {
|
|
1123
|
+
responseType_ = 'blob';
|
|
1124
|
+
}
|
|
1125
|
+
}
|
|
1126
|
+
let localVarPath = `/myseko/shipments/${this.configuration.encodeParam({ name: "ordOrderID", value: ordOrderID, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid" })}/issues`;
|
|
1127
|
+
const { basePath, withCredentials } = this.configuration;
|
|
1128
|
+
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
1129
|
+
context: localVarHttpContext,
|
|
1130
|
+
params: localVarQueryParameters.toHttpParams(),
|
|
1131
|
+
responseType: responseType_,
|
|
1132
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
1133
|
+
headers: localVarHeaders,
|
|
1134
|
+
observe: observe,
|
|
1135
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
1136
|
+
reportProgress: reportProgress
|
|
1137
|
+
});
|
|
1138
|
+
}
|
|
1005
1139
|
getShipmentPackageDetails(ordOrderID, observe = 'body', reportProgress = false, options) {
|
|
1006
1140
|
if (ordOrderID === null || ordOrderID === undefined) {
|
|
1007
1141
|
throw new Error('Required parameter ordOrderID was null or undefined when calling getShipmentPackageDetails.');
|
|
@@ -1076,6 +1210,43 @@ class ShipmentService extends BaseService {
|
|
|
1076
1210
|
reportProgress: reportProgress
|
|
1077
1211
|
});
|
|
1078
1212
|
}
|
|
1213
|
+
getShipmentRoutingDetails(ordOrderID, observe = 'body', reportProgress = false, options) {
|
|
1214
|
+
if (ordOrderID === null || ordOrderID === undefined) {
|
|
1215
|
+
throw new Error('Required parameter ordOrderID was null or undefined when calling getShipmentRoutingDetails.');
|
|
1216
|
+
}
|
|
1217
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1218
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
1219
|
+
'application/json'
|
|
1220
|
+
]);
|
|
1221
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1222
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1223
|
+
}
|
|
1224
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
1225
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
1226
|
+
let responseType_ = 'json';
|
|
1227
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1228
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1229
|
+
responseType_ = 'text';
|
|
1230
|
+
}
|
|
1231
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1232
|
+
responseType_ = 'json';
|
|
1233
|
+
}
|
|
1234
|
+
else {
|
|
1235
|
+
responseType_ = 'blob';
|
|
1236
|
+
}
|
|
1237
|
+
}
|
|
1238
|
+
let localVarPath = `/myseko/shipments/${this.configuration.encodeParam({ name: "ordOrderID", value: ordOrderID, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid" })}/routing-details`;
|
|
1239
|
+
const { basePath, withCredentials } = this.configuration;
|
|
1240
|
+
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
1241
|
+
context: localVarHttpContext,
|
|
1242
|
+
responseType: responseType_,
|
|
1243
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
1244
|
+
headers: localVarHeaders,
|
|
1245
|
+
observe: observe,
|
|
1246
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
1247
|
+
reportProgress: reportProgress
|
|
1248
|
+
});
|
|
1249
|
+
}
|
|
1079
1250
|
getShipmentSummary(ordOrderID, observe = 'body', reportProgress = false, options) {
|
|
1080
1251
|
if (ordOrderID === null || ordOrderID === undefined) {
|
|
1081
1252
|
throw new Error('Required parameter ordOrderID was null or undefined when calling getShipmentSummary.');
|
|
@@ -1231,6 +1402,56 @@ class ShipmentService extends BaseService {
|
|
|
1231
1402
|
reportProgress: reportProgress
|
|
1232
1403
|
});
|
|
1233
1404
|
}
|
|
1405
|
+
updateShipmentIssue(ordOrderID, issueID, updateIssueRequest, observe = 'body', reportProgress = false, options) {
|
|
1406
|
+
if (ordOrderID === null || ordOrderID === undefined) {
|
|
1407
|
+
throw new Error('Required parameter ordOrderID was null or undefined when calling updateShipmentIssue.');
|
|
1408
|
+
}
|
|
1409
|
+
if (issueID === null || issueID === undefined) {
|
|
1410
|
+
throw new Error('Required parameter issueID was null or undefined when calling updateShipmentIssue.');
|
|
1411
|
+
}
|
|
1412
|
+
if (updateIssueRequest === null || updateIssueRequest === undefined) {
|
|
1413
|
+
throw new Error('Required parameter updateIssueRequest was null or undefined when calling updateShipmentIssue.');
|
|
1414
|
+
}
|
|
1415
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1416
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
|
1417
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1418
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1419
|
+
}
|
|
1420
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
1421
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
1422
|
+
// to determine the Content-Type header
|
|
1423
|
+
const consumes = [
|
|
1424
|
+
'application/json'
|
|
1425
|
+
];
|
|
1426
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
1427
|
+
if (httpContentTypeSelected !== undefined) {
|
|
1428
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
1429
|
+
}
|
|
1430
|
+
let responseType_ = 'json';
|
|
1431
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1432
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1433
|
+
responseType_ = 'text';
|
|
1434
|
+
}
|
|
1435
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1436
|
+
responseType_ = 'json';
|
|
1437
|
+
}
|
|
1438
|
+
else {
|
|
1439
|
+
responseType_ = 'blob';
|
|
1440
|
+
}
|
|
1441
|
+
}
|
|
1442
|
+
let localVarPath = `/myseko/shipments/${this.configuration.encodeParam({ name: "ordOrderID", value: ordOrderID, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid" })}/issues/${this.configuration.encodeParam({ name: "issueID", value: issueID, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: undefined })}`;
|
|
1443
|
+
const { basePath, withCredentials } = this.configuration;
|
|
1444
|
+
return this.httpClient.request('put', `${basePath}${localVarPath}`, {
|
|
1445
|
+
context: localVarHttpContext,
|
|
1446
|
+
body: updateIssueRequest,
|
|
1447
|
+
responseType: responseType_,
|
|
1448
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
1449
|
+
headers: localVarHeaders,
|
|
1450
|
+
observe: observe,
|
|
1451
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
1452
|
+
reportProgress: reportProgress
|
|
1453
|
+
});
|
|
1454
|
+
}
|
|
1234
1455
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: ShipmentService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1235
1456
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: ShipmentService, providedIn: 'root' });
|
|
1236
1457
|
}
|
|
@@ -1569,6 +1790,46 @@ const CalendarViewBy = {
|
|
|
1569
1790
|
* Do not edit the class manually.
|
|
1570
1791
|
*/
|
|
1571
1792
|
|
|
1793
|
+
/**
|
|
1794
|
+
* MySeko.API.Client
|
|
1795
|
+
*
|
|
1796
|
+
*
|
|
1797
|
+
*
|
|
1798
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1799
|
+
* https://openapi-generator.tech
|
|
1800
|
+
* Do not edit the class manually.
|
|
1801
|
+
*/
|
|
1802
|
+
|
|
1803
|
+
/**
|
|
1804
|
+
* MySeko.API.Client
|
|
1805
|
+
*
|
|
1806
|
+
*
|
|
1807
|
+
*
|
|
1808
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1809
|
+
* https://openapi-generator.tech
|
|
1810
|
+
* Do not edit the class manually.
|
|
1811
|
+
*/
|
|
1812
|
+
|
|
1813
|
+
/**
|
|
1814
|
+
* MySeko.API.Client
|
|
1815
|
+
*
|
|
1816
|
+
*
|
|
1817
|
+
*
|
|
1818
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1819
|
+
* https://openapi-generator.tech
|
|
1820
|
+
* Do not edit the class manually.
|
|
1821
|
+
*/
|
|
1822
|
+
|
|
1823
|
+
/**
|
|
1824
|
+
* MySeko.API.Client
|
|
1825
|
+
*
|
|
1826
|
+
*
|
|
1827
|
+
*
|
|
1828
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1829
|
+
* https://openapi-generator.tech
|
|
1830
|
+
* Do not edit the class manually.
|
|
1831
|
+
*/
|
|
1832
|
+
|
|
1572
1833
|
/**
|
|
1573
1834
|
* MySeko.API.Client
|
|
1574
1835
|
*
|
|
@@ -1579,13 +1840,23 @@ const CalendarViewBy = {
|
|
|
1579
1840
|
* Do not edit the class manually.
|
|
1580
1841
|
*/
|
|
1581
1842
|
const TimelineEventStatus = {
|
|
1582
|
-
ORIGIN:
|
|
1583
|
-
DEPARTED:
|
|
1584
|
-
IN_TRANSIT:
|
|
1585
|
-
ARRIVED:
|
|
1586
|
-
DESTINATION:
|
|
1843
|
+
ORIGIN: 1,
|
|
1844
|
+
DEPARTED: 2,
|
|
1845
|
+
IN_TRANSIT: 3,
|
|
1846
|
+
ARRIVED: 4,
|
|
1847
|
+
DESTINATION: 5
|
|
1587
1848
|
};
|
|
1588
1849
|
|
|
1850
|
+
/**
|
|
1851
|
+
* MySeko.API.Client
|
|
1852
|
+
*
|
|
1853
|
+
*
|
|
1854
|
+
*
|
|
1855
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1856
|
+
* https://openapi-generator.tech
|
|
1857
|
+
* Do not edit the class manually.
|
|
1858
|
+
*/
|
|
1859
|
+
|
|
1589
1860
|
/**
|
|
1590
1861
|
* MySeko.API.Client
|
|
1591
1862
|
*
|