@indigina/myseko-api 0.0.30 → 0.0.32

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.30
1
+ # @indigina/myseko-api@0.0.32
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.30 --save
27
+ npm install @indigina/myseko-api@0.0.32 --save
28
28
  ```
29
29
 
30
30
  _without publishing (not recommended):_
@@ -632,6 +632,40 @@ class DashboardService extends BaseService {
632
632
  reportProgress: reportProgress
633
633
  });
634
634
  }
635
+ getShipmentExceptionStats(observe = 'body', reportProgress = false, options) {
636
+ let localVarHeaders = this.defaultHeaders;
637
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
638
+ 'application/json'
639
+ ]);
640
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
641
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
642
+ }
643
+ const localVarHttpContext = options?.context ?? new HttpContext();
644
+ const localVarTransferCache = options?.transferCache ?? true;
645
+ let responseType_ = 'json';
646
+ if (localVarHttpHeaderAcceptSelected) {
647
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
648
+ responseType_ = 'text';
649
+ }
650
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
651
+ responseType_ = 'json';
652
+ }
653
+ else {
654
+ responseType_ = 'blob';
655
+ }
656
+ }
657
+ let localVarPath = `/myseko/dashboard/shipments-exceptions`;
658
+ const { basePath, withCredentials } = this.configuration;
659
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
660
+ context: localVarHttpContext,
661
+ responseType: responseType_,
662
+ ...(withCredentials ? { withCredentials } : {}),
663
+ headers: localVarHeaders,
664
+ observe: observe,
665
+ ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
666
+ reportProgress: reportProgress
667
+ });
668
+ }
635
669
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: DashboardService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
636
670
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: DashboardService, providedIn: 'root' });
637
671
  }
@@ -856,10 +890,14 @@ class ExceptionsService extends BaseService {
856
890
  super(basePath, configuration);
857
891
  this.httpClient = httpClient;
858
892
  }
859
- getException(id, observe = 'body', reportProgress = false, options) {
860
- if (id === null || id === undefined) {
861
- throw new Error('Required parameter id was null or undefined when calling getException.');
862
- }
893
+ getShipmentExceptionManagement($skip, $top, $filter, $orderby, $select, $expand, observe = 'body', reportProgress = false, options) {
894
+ let localVarQueryParameters = new OpenApiHttpParams(this.encoder);
895
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, '$skip', $skip, QueryParamStyle.Form, true);
896
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, '$top', $top, QueryParamStyle.Form, true);
897
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, '$filter', $filter, QueryParamStyle.Form, true);
898
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, '$orderby', $orderby, QueryParamStyle.Form, true);
899
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, '$select', $select, QueryParamStyle.Form, true);
900
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, '$expand', $expand, QueryParamStyle.Form, true);
863
901
  let localVarHeaders = this.defaultHeaders;
864
902
  const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
865
903
  'application/json'
@@ -881,10 +919,11 @@ class ExceptionsService extends BaseService {
881
919
  responseType_ = 'blob';
882
920
  }
883
921
  }
884
- let localVarPath = `/exceptions/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}`;
922
+ let localVarPath = `/myseko/shipments/exceptions`;
885
923
  const { basePath, withCredentials } = this.configuration;
886
924
  return this.httpClient.request('get', `${basePath}${localVarPath}`, {
887
925
  context: localVarHttpContext,
926
+ params: localVarQueryParameters.toHttpParams(),
888
927
  responseType: responseType_,
889
928
  ...(withCredentials ? { withCredentials } : {}),
890
929
  headers: localVarHeaders,
@@ -893,12 +932,17 @@ class ExceptionsService extends BaseService {
893
932
  reportProgress: reportProgress
894
933
  });
895
934
  }
896
- getExceptions($skip, $top, $orderby, $filter, observe = 'body', reportProgress = false, options) {
935
+ getShipmentExceptions(ordOrderID, $skip, $top, $filter, $orderby, $select, $expand, observe = 'body', reportProgress = false, options) {
936
+ if (ordOrderID === null || ordOrderID === undefined) {
937
+ throw new Error('Required parameter ordOrderID was null or undefined when calling getShipmentExceptions.');
938
+ }
897
939
  let localVarQueryParameters = new OpenApiHttpParams(this.encoder);
898
940
  localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, '$skip', $skip, QueryParamStyle.Form, true);
899
941
  localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, '$top', $top, QueryParamStyle.Form, true);
900
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, '$orderby', $orderby, QueryParamStyle.Form, true);
901
942
  localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, '$filter', $filter, QueryParamStyle.Form, true);
943
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, '$orderby', $orderby, QueryParamStyle.Form, true);
944
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, '$select', $select, QueryParamStyle.Form, true);
945
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, '$expand', $expand, QueryParamStyle.Form, true);
902
946
  let localVarHeaders = this.defaultHeaders;
903
947
  const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
904
948
  'application/json'
@@ -920,7 +964,7 @@ class ExceptionsService extends BaseService {
920
964
  responseType_ = 'blob';
921
965
  }
922
966
  }
923
- let localVarPath = `/exceptions`;
967
+ let localVarPath = `/myseko/shipments/${this.configuration.encodeParam({ name: "ordOrderID", value: ordOrderID, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid" })}/exceptions`;
924
968
  const { basePath, withCredentials } = this.configuration;
925
969
  return this.httpClient.request('get', `${basePath}${localVarPath}`, {
926
970
  context: localVarHttpContext,
@@ -2048,24 +2092,6 @@ const CalendarViewBy = {
2048
2092
  * Do not edit the class manually.
2049
2093
  */
2050
2094
 
2051
- /**
2052
- * MySeko.API.Client
2053
- *
2054
- *
2055
- *
2056
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2057
- * https://openapi-generator.tech
2058
- * Do not edit the class manually.
2059
- */
2060
- /**
2061
- * Criticality level of exception
2062
- */
2063
- const Criticality = {
2064
- Low: 'Low',
2065
- Medium: 'Medium',
2066
- High: 'High'
2067
- };
2068
-
2069
2095
  /**
2070
2096
  * MySeko.API.Client
2071
2097
  *
@@ -2195,13 +2221,6 @@ const DocumentCategoryType = {
2195
2221
  * https://openapi-generator.tech
2196
2222
  * Do not edit the class manually.
2197
2223
  */
2198
- /**
2199
- * Status of exception
2200
- */
2201
- const ExceptionStatus = {
2202
- Active: 'Active',
2203
- Closed: 'Closed'
2204
- };
2205
2224
 
2206
2225
  /**
2207
2226
  * MySeko.API.Client
@@ -2212,20 +2231,16 @@ const ExceptionStatus = {
2212
2231
  * https://openapi-generator.tech
2213
2232
  * Do not edit the class manually.
2214
2233
  */
2234
+
2215
2235
  /**
2216
- * Type of exception
2236
+ * MySeko.API.Client
2237
+ *
2238
+ *
2239
+ *
2240
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2241
+ * https://openapi-generator.tech
2242
+ * Do not edit the class manually.
2217
2243
  */
2218
- const ExceptionType = {
2219
- TransitDelay: 'TransitDelay',
2220
- ArrivalOverdue: 'ArrivalOverdue',
2221
- DeliveryOverdue: 'DeliveryOverdue',
2222
- DeliveryAppointmentOverdue: 'DeliveryAppointmentOverdue',
2223
- LateDelivery: 'LateDelivery',
2224
- ConsigneeUnreachable: 'ConsigneeUnreachable',
2225
- FailedDelivery: 'FailedDelivery',
2226
- PartialDelivery: 'PartialDelivery',
2227
- IncompletePod: 'IncompletePOD'
2228
- };
2229
2244
 
2230
2245
  /**
2231
2246
  * MySeko.API.Client
@@ -2446,5 +2461,5 @@ function provideApi(configOrBasePath) {
2446
2461
  * Generated bundle index. Do not edit.
2447
2462
  */
2448
2463
 
2449
- export { APIS, ApiModule, AuthService, BASE_PATH, COLLECTION_FORMATS, CalendarService, CalendarViewBy, Configuration, Criticality, DashboardService, DocumentCategoryType, DocumentService, ExceptionStatus, ExceptionType, ExceptionsService, HealthService, SettingsService, ShipmentService, ShipmentStage, UserService, UsergroupService, provideApi };
2464
+ export { APIS, ApiModule, AuthService, BASE_PATH, COLLECTION_FORMATS, CalendarService, CalendarViewBy, Configuration, DashboardService, DocumentCategoryType, DocumentService, ExceptionsService, HealthService, SettingsService, ShipmentService, ShipmentStage, UserService, UsergroupService, provideApi };
2450
2465
  //# sourceMappingURL=indigina-myseko-api.mjs.map