@indigina/myseko-api 0.0.18 → 0.0.20

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.18
1
+ # @indigina/myseko-api@0.0.20
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.18 --save
27
+ npm install @indigina/myseko-api@0.0.20 --save
28
28
  ```
29
29
 
30
30
  _without publishing (not recommended):_
@@ -485,6 +485,9 @@ class CalendarService extends BaseService {
485
485
  if (endDate === null || endDate === undefined) {
486
486
  throw new Error('Required parameter endDate was null or undefined when calling getShipmentCalendarRange.');
487
487
  }
488
+ if (viewBy === null || viewBy === undefined) {
489
+ throw new Error('Required parameter viewBy was null or undefined when calling getShipmentCalendarRange.');
490
+ }
488
491
  let localVarQueryParameters = new OpenApiHttpParams(this.encoder);
489
492
  localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'viewBy', viewBy, QueryParamStyle.Form, true);
490
493
  localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, 'searchTerm', searchTerm, QueryParamStyle.Form, true);
@@ -999,6 +1002,140 @@ class ShipmentService extends BaseService {
999
1002
  super(basePath, configuration);
1000
1003
  this.httpClient = httpClient;
1001
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
+ }
1002
1139
  getShipmentPackageDetails(ordOrderID, observe = 'body', reportProgress = false, options) {
1003
1140
  if (ordOrderID === null || ordOrderID === undefined) {
1004
1141
  throw new Error('Required parameter ordOrderID was null or undefined when calling getShipmentPackageDetails.');
@@ -1228,6 +1365,56 @@ class ShipmentService extends BaseService {
1228
1365
  reportProgress: reportProgress
1229
1366
  });
1230
1367
  }
1368
+ updateShipmentIssue(ordOrderID, issueID, updateIssueRequest, observe = 'body', reportProgress = false, options) {
1369
+ if (ordOrderID === null || ordOrderID === undefined) {
1370
+ throw new Error('Required parameter ordOrderID was null or undefined when calling updateShipmentIssue.');
1371
+ }
1372
+ if (issueID === null || issueID === undefined) {
1373
+ throw new Error('Required parameter issueID was null or undefined when calling updateShipmentIssue.');
1374
+ }
1375
+ if (updateIssueRequest === null || updateIssueRequest === undefined) {
1376
+ throw new Error('Required parameter updateIssueRequest was null or undefined when calling updateShipmentIssue.');
1377
+ }
1378
+ let localVarHeaders = this.defaultHeaders;
1379
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
1380
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1381
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1382
+ }
1383
+ const localVarHttpContext = options?.context ?? new HttpContext();
1384
+ const localVarTransferCache = options?.transferCache ?? true;
1385
+ // to determine the Content-Type header
1386
+ const consumes = [
1387
+ 'application/json'
1388
+ ];
1389
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
1390
+ if (httpContentTypeSelected !== undefined) {
1391
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
1392
+ }
1393
+ let responseType_ = 'json';
1394
+ if (localVarHttpHeaderAcceptSelected) {
1395
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1396
+ responseType_ = 'text';
1397
+ }
1398
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1399
+ responseType_ = 'json';
1400
+ }
1401
+ else {
1402
+ responseType_ = 'blob';
1403
+ }
1404
+ }
1405
+ 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 })}`;
1406
+ const { basePath, withCredentials } = this.configuration;
1407
+ return this.httpClient.request('put', `${basePath}${localVarPath}`, {
1408
+ context: localVarHttpContext,
1409
+ body: updateIssueRequest,
1410
+ responseType: responseType_,
1411
+ ...(withCredentials ? { withCredentials } : {}),
1412
+ headers: localVarHeaders,
1413
+ observe: observe,
1414
+ ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
1415
+ reportProgress: reportProgress
1416
+ });
1417
+ }
1231
1418
  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 });
1232
1419
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: ShipmentService, providedIn: 'root' });
1233
1420
  }
@@ -1449,10 +1636,11 @@ const APIS = [AuthService, CalendarService, DashboardService, HealthService, Set
1449
1636
  * Do not edit the class manually.
1450
1637
  */
1451
1638
  const CalendarViewBy = {
1452
- Due: 'due',
1453
- Pickup: 'pickup',
1454
- Pod: 'pod',
1455
- Created: 'created'
1639
+ ScheduledDelivery: 'scheduledDelivery',
1640
+ Delivered: 'delivered',
1641
+ ArrivePortDate: 'arrivePortDate',
1642
+ DepartPortDate: 'departPortDate',
1643
+ Pickup: 'pickup'
1456
1644
  };
1457
1645
 
1458
1646
  /**
@@ -1565,6 +1753,36 @@ const CalendarViewBy = {
1565
1753
  * Do not edit the class manually.
1566
1754
  */
1567
1755
 
1756
+ /**
1757
+ * MySeko.API.Client
1758
+ *
1759
+ *
1760
+ *
1761
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1762
+ * https://openapi-generator.tech
1763
+ * Do not edit the class manually.
1764
+ */
1765
+
1766
+ /**
1767
+ * MySeko.API.Client
1768
+ *
1769
+ *
1770
+ *
1771
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1772
+ * https://openapi-generator.tech
1773
+ * Do not edit the class manually.
1774
+ */
1775
+
1776
+ /**
1777
+ * MySeko.API.Client
1778
+ *
1779
+ *
1780
+ *
1781
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1782
+ * https://openapi-generator.tech
1783
+ * Do not edit the class manually.
1784
+ */
1785
+
1568
1786
  /**
1569
1787
  * MySeko.API.Client
1570
1788
  *
@@ -1582,6 +1800,16 @@ const TimelineEventStatus = {
1582
1800
  DESTINATION: 4
1583
1801
  };
1584
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
+
1585
1813
  /**
1586
1814
  * MySeko.API.Client
1587
1815
  *