@indigina/myseko-api 0.0.28 → 0.0.30

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.28
1
+ # @indigina/myseko-api@0.0.30
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.28 --save
27
+ npm install @indigina/myseko-api@0.0.30 --save
28
28
  ```
29
29
 
30
30
  _without publishing (not recommended):_
@@ -840,6 +840,116 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.0", ngImpor
840
840
  type: Optional
841
841
  }] }] });
842
842
 
843
+ /**
844
+ * MySeko.API.Client
845
+ *
846
+ *
847
+ *
848
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
849
+ * https://openapi-generator.tech
850
+ * Do not edit the class manually.
851
+ */
852
+ /* tslint:disable:no-unused-variable member-ordering */
853
+ class ExceptionsService extends BaseService {
854
+ httpClient;
855
+ constructor(httpClient, basePath, configuration) {
856
+ super(basePath, configuration);
857
+ this.httpClient = httpClient;
858
+ }
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
+ }
863
+ let localVarHeaders = this.defaultHeaders;
864
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
865
+ 'application/json'
866
+ ]);
867
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
868
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
869
+ }
870
+ const localVarHttpContext = options?.context ?? new HttpContext();
871
+ const localVarTransferCache = options?.transferCache ?? true;
872
+ let responseType_ = 'json';
873
+ if (localVarHttpHeaderAcceptSelected) {
874
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
875
+ responseType_ = 'text';
876
+ }
877
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
878
+ responseType_ = 'json';
879
+ }
880
+ else {
881
+ responseType_ = 'blob';
882
+ }
883
+ }
884
+ let localVarPath = `/exceptions/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}`;
885
+ const { basePath, withCredentials } = this.configuration;
886
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
887
+ context: localVarHttpContext,
888
+ responseType: responseType_,
889
+ ...(withCredentials ? { withCredentials } : {}),
890
+ headers: localVarHeaders,
891
+ observe: observe,
892
+ ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
893
+ reportProgress: reportProgress
894
+ });
895
+ }
896
+ getExceptions($skip, $top, $orderby, $filter, observe = 'body', reportProgress = false, options) {
897
+ let localVarQueryParameters = new OpenApiHttpParams(this.encoder);
898
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, '$skip', $skip, QueryParamStyle.Form, true);
899
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, '$top', $top, QueryParamStyle.Form, true);
900
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, '$orderby', $orderby, QueryParamStyle.Form, true);
901
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, '$filter', $filter, QueryParamStyle.Form, true);
902
+ let localVarHeaders = this.defaultHeaders;
903
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
904
+ 'application/json'
905
+ ]);
906
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
907
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
908
+ }
909
+ const localVarHttpContext = options?.context ?? new HttpContext();
910
+ const localVarTransferCache = options?.transferCache ?? true;
911
+ let responseType_ = 'json';
912
+ if (localVarHttpHeaderAcceptSelected) {
913
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
914
+ responseType_ = 'text';
915
+ }
916
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
917
+ responseType_ = 'json';
918
+ }
919
+ else {
920
+ responseType_ = 'blob';
921
+ }
922
+ }
923
+ let localVarPath = `/exceptions`;
924
+ const { basePath, withCredentials } = this.configuration;
925
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
926
+ context: localVarHttpContext,
927
+ params: localVarQueryParameters.toHttpParams(),
928
+ responseType: responseType_,
929
+ ...(withCredentials ? { withCredentials } : {}),
930
+ headers: localVarHeaders,
931
+ observe: observe,
932
+ ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
933
+ reportProgress: reportProgress
934
+ });
935
+ }
936
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: ExceptionsService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
937
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: ExceptionsService, providedIn: 'root' });
938
+ }
939
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: ExceptionsService, decorators: [{
940
+ type: Injectable,
941
+ args: [{
942
+ providedIn: 'root'
943
+ }]
944
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
945
+ type: Optional
946
+ }, {
947
+ type: Inject,
948
+ args: [BASE_PATH]
949
+ }] }, { type: Configuration, decorators: [{
950
+ type: Optional
951
+ }] }] });
952
+
843
953
  /**
844
954
  * MySeko.API.Client
845
955
  *
@@ -1869,7 +1979,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.0", ngImpor
1869
1979
  type: Optional
1870
1980
  }] }] });
1871
1981
 
1872
- const APIS = [AuthService, CalendarService, DashboardService, DocumentService, HealthService, SettingsService, ShipmentService, UserService, UsergroupService];
1982
+ const APIS = [AuthService, CalendarService, DashboardService, DocumentService, ExceptionsService, HealthService, SettingsService, ShipmentService, UserService, UsergroupService];
1873
1983
 
1874
1984
  /**
1875
1985
  * MySeko.API.Client
@@ -1938,6 +2048,24 @@ const CalendarViewBy = {
1938
2048
  * Do not edit the class manually.
1939
2049
  */
1940
2050
 
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
+
1941
2069
  /**
1942
2070
  * MySeko.API.Client
1943
2071
  *
@@ -2058,6 +2186,47 @@ const DocumentCategoryType = {
2058
2186
  * Do not edit the class manually.
2059
2187
  */
2060
2188
 
2189
+ /**
2190
+ * MySeko.API.Client
2191
+ *
2192
+ *
2193
+ *
2194
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2195
+ * https://openapi-generator.tech
2196
+ * Do not edit the class manually.
2197
+ */
2198
+ /**
2199
+ * Status of exception
2200
+ */
2201
+ const ExceptionStatus = {
2202
+ Active: 'Active',
2203
+ Closed: 'Closed'
2204
+ };
2205
+
2206
+ /**
2207
+ * MySeko.API.Client
2208
+ *
2209
+ *
2210
+ *
2211
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2212
+ * https://openapi-generator.tech
2213
+ * Do not edit the class manually.
2214
+ */
2215
+ /**
2216
+ * Type of exception
2217
+ */
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
+
2061
2230
  /**
2062
2231
  * MySeko.API.Client
2063
2232
  *
@@ -2277,5 +2446,5 @@ function provideApi(configOrBasePath) {
2277
2446
  * Generated bundle index. Do not edit.
2278
2447
  */
2279
2448
 
2280
- export { APIS, ApiModule, AuthService, BASE_PATH, COLLECTION_FORMATS, CalendarService, CalendarViewBy, Configuration, DashboardService, DocumentCategoryType, DocumentService, HealthService, SettingsService, ShipmentService, ShipmentStage, UserService, UsergroupService, provideApi };
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 };
2281
2450
  //# sourceMappingURL=indigina-myseko-api.mjs.map