@indigina/myseko-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 CHANGED
@@ -1,4 +1,4 @@
1
- # @indigina/myseko-api@0.0.10
1
+ # @indigina/myseko-api@0.0.12
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.10 --save
27
+ npm install @indigina/myseko-api@0.0.12 --save
28
28
  ```
29
29
 
30
30
  _without publishing (not recommended):_
@@ -261,9 +261,7 @@ class AuthService extends BaseService {
261
261
  }
262
262
  userLogin(observe = 'body', reportProgress = false, options) {
263
263
  let localVarHeaders = this.defaultHeaders;
264
- const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
265
- 'application/json'
266
- ]);
264
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
267
265
  if (localVarHttpHeaderAcceptSelected !== undefined) {
268
266
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
269
267
  }
@@ -310,6 +308,82 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImpor
310
308
  type: Optional
311
309
  }] }] });
312
310
 
311
+ /**
312
+ * MySeko.API.Client
313
+ *
314
+ *
315
+ *
316
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
317
+ * https://openapi-generator.tech
318
+ * Do not edit the class manually.
319
+ */
320
+ /* tslint:disable:no-unused-variable member-ordering */
321
+ class CalendarService extends BaseService {
322
+ httpClient;
323
+ constructor(httpClient, basePath, configuration) {
324
+ super(basePath, configuration);
325
+ this.httpClient = httpClient;
326
+ }
327
+ getCalendarRange(calendar, startDate, endDate, observe = 'body', reportProgress = false, options) {
328
+ if (calendar === null || calendar === undefined) {
329
+ throw new Error('Required parameter calendar was null or undefined when calling getCalendarRange.');
330
+ }
331
+ if (startDate === null || startDate === undefined) {
332
+ throw new Error('Required parameter startDate was null or undefined when calling getCalendarRange.');
333
+ }
334
+ if (endDate === null || endDate === undefined) {
335
+ throw new Error('Required parameter endDate was null or undefined when calling getCalendarRange.');
336
+ }
337
+ let localVarHeaders = this.defaultHeaders;
338
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
339
+ 'application/json'
340
+ ]);
341
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
342
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
343
+ }
344
+ const localVarHttpContext = options?.context ?? new HttpContext();
345
+ const localVarTransferCache = options?.transferCache ?? true;
346
+ let responseType_ = 'json';
347
+ if (localVarHttpHeaderAcceptSelected) {
348
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
349
+ responseType_ = 'text';
350
+ }
351
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
352
+ responseType_ = 'json';
353
+ }
354
+ else {
355
+ responseType_ = 'blob';
356
+ }
357
+ }
358
+ let localVarPath = `/myseko/calendar/${this.configuration.encodeParam({ name: "calendar", value: calendar, in: "path", style: "simple", explode: false, dataType: "CalendarType", dataFormat: undefined })}/range/${this.configuration.encodeParam({ name: "startDate", value: startDate, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "date" })}/${this.configuration.encodeParam({ name: "endDate", value: endDate, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "date" })}`;
359
+ const { basePath, withCredentials } = this.configuration;
360
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
361
+ context: localVarHttpContext,
362
+ responseType: responseType_,
363
+ ...(withCredentials ? { withCredentials } : {}),
364
+ headers: localVarHeaders,
365
+ observe: observe,
366
+ transferCache: localVarTransferCache,
367
+ reportProgress: reportProgress
368
+ });
369
+ }
370
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: CalendarService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
371
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: CalendarService, providedIn: 'root' });
372
+ }
373
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: CalendarService, decorators: [{
374
+ type: Injectable,
375
+ args: [{
376
+ providedIn: 'root'
377
+ }]
378
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
379
+ type: Optional
380
+ }, {
381
+ type: Inject,
382
+ args: [BASE_PATH]
383
+ }] }, { type: Configuration, decorators: [{
384
+ type: Optional
385
+ }] }] });
386
+
313
387
  /**
314
388
  * MySeko.API.Client
315
389
  *
@@ -730,6 +804,154 @@ class ShipmentService extends BaseService {
730
804
  super(basePath, configuration);
731
805
  this.httpClient = httpClient;
732
806
  }
807
+ getShipmentPackageDetails(ordOrderID, observe = 'body', reportProgress = false, options) {
808
+ if (ordOrderID === null || ordOrderID === undefined) {
809
+ throw new Error('Required parameter ordOrderID was null or undefined when calling getShipmentPackageDetails.');
810
+ }
811
+ let localVarHeaders = this.defaultHeaders;
812
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
813
+ 'application/json'
814
+ ]);
815
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
816
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
817
+ }
818
+ const localVarHttpContext = options?.context ?? new HttpContext();
819
+ const localVarTransferCache = options?.transferCache ?? true;
820
+ let responseType_ = 'json';
821
+ if (localVarHttpHeaderAcceptSelected) {
822
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
823
+ responseType_ = 'text';
824
+ }
825
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
826
+ responseType_ = 'json';
827
+ }
828
+ else {
829
+ responseType_ = 'blob';
830
+ }
831
+ }
832
+ let localVarPath = `/myseko/shipments/${this.configuration.encodeParam({ name: "ordOrderID", value: ordOrderID, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid" })}/package-details`;
833
+ const { basePath, withCredentials } = this.configuration;
834
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
835
+ context: localVarHttpContext,
836
+ responseType: responseType_,
837
+ ...(withCredentials ? { withCredentials } : {}),
838
+ headers: localVarHeaders,
839
+ observe: observe,
840
+ transferCache: localVarTransferCache,
841
+ reportProgress: reportProgress
842
+ });
843
+ }
844
+ getShipmentPurchaseOrderDetails(ordOrderID, observe = 'body', reportProgress = false, options) {
845
+ if (ordOrderID === null || ordOrderID === undefined) {
846
+ throw new Error('Required parameter ordOrderID was null or undefined when calling getShipmentPurchaseOrderDetails.');
847
+ }
848
+ let localVarHeaders = this.defaultHeaders;
849
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
850
+ 'application/json'
851
+ ]);
852
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
853
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
854
+ }
855
+ const localVarHttpContext = options?.context ?? new HttpContext();
856
+ const localVarTransferCache = options?.transferCache ?? true;
857
+ let responseType_ = 'json';
858
+ if (localVarHttpHeaderAcceptSelected) {
859
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
860
+ responseType_ = 'text';
861
+ }
862
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
863
+ responseType_ = 'json';
864
+ }
865
+ else {
866
+ responseType_ = 'blob';
867
+ }
868
+ }
869
+ let localVarPath = `/myseko/shipments/${this.configuration.encodeParam({ name: "ordOrderID", value: ordOrderID, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid" })}/purchase-order-details`;
870
+ const { basePath, withCredentials } = this.configuration;
871
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
872
+ context: localVarHttpContext,
873
+ responseType: responseType_,
874
+ ...(withCredentials ? { withCredentials } : {}),
875
+ headers: localVarHeaders,
876
+ observe: observe,
877
+ transferCache: localVarTransferCache,
878
+ reportProgress: reportProgress
879
+ });
880
+ }
881
+ getShipmentSummary(ordOrderID, observe = 'body', reportProgress = false, options) {
882
+ if (ordOrderID === null || ordOrderID === undefined) {
883
+ throw new Error('Required parameter ordOrderID was null or undefined when calling getShipmentSummary.');
884
+ }
885
+ let localVarHeaders = this.defaultHeaders;
886
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
887
+ 'application/json'
888
+ ]);
889
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
890
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
891
+ }
892
+ const localVarHttpContext = options?.context ?? new HttpContext();
893
+ const localVarTransferCache = options?.transferCache ?? true;
894
+ let responseType_ = 'json';
895
+ if (localVarHttpHeaderAcceptSelected) {
896
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
897
+ responseType_ = 'text';
898
+ }
899
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
900
+ responseType_ = 'json';
901
+ }
902
+ else {
903
+ responseType_ = 'blob';
904
+ }
905
+ }
906
+ let localVarPath = `/myseko/shipments/${this.configuration.encodeParam({ name: "ordOrderID", value: ordOrderID, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid" })}/summary`;
907
+ const { basePath, withCredentials } = this.configuration;
908
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
909
+ context: localVarHttpContext,
910
+ responseType: responseType_,
911
+ ...(withCredentials ? { withCredentials } : {}),
912
+ headers: localVarHeaders,
913
+ observe: observe,
914
+ transferCache: localVarTransferCache,
915
+ reportProgress: reportProgress
916
+ });
917
+ }
918
+ getShipmentTimeline(ordOrderID, observe = 'body', reportProgress = false, options) {
919
+ if (ordOrderID === null || ordOrderID === undefined) {
920
+ throw new Error('Required parameter ordOrderID was null or undefined when calling getShipmentTimeline.');
921
+ }
922
+ let localVarHeaders = this.defaultHeaders;
923
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
924
+ 'application/json'
925
+ ]);
926
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
927
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
928
+ }
929
+ const localVarHttpContext = options?.context ?? new HttpContext();
930
+ const localVarTransferCache = options?.transferCache ?? true;
931
+ let responseType_ = 'json';
932
+ if (localVarHttpHeaderAcceptSelected) {
933
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
934
+ responseType_ = 'text';
935
+ }
936
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
937
+ responseType_ = 'json';
938
+ }
939
+ else {
940
+ responseType_ = 'blob';
941
+ }
942
+ }
943
+ let localVarPath = `/myseko/shipments/${this.configuration.encodeParam({ name: "ordOrderID", value: ordOrderID, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid" })}/timeline`;
944
+ const { basePath, withCredentials } = this.configuration;
945
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
946
+ context: localVarHttpContext,
947
+ responseType: responseType_,
948
+ ...(withCredentials ? { withCredentials } : {}),
949
+ headers: localVarHeaders,
950
+ observe: observe,
951
+ transferCache: localVarTransferCache,
952
+ reportProgress: reportProgress
953
+ });
954
+ }
733
955
  getShipments($skip, $top, $orderby, $filter, observe = 'body', reportProgress = false, options) {
734
956
  let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
735
957
  localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
@@ -770,6 +992,47 @@ class ShipmentService extends BaseService {
770
992
  reportProgress: reportProgress
771
993
  });
772
994
  }
995
+ getShipmentsWithSearch($skip, $top, $orderby, $filter, searchTerm, observe = 'body', reportProgress = false, options) {
996
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
997
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
998
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
999
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
1000
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
1001
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, searchTerm, 'searchTerm');
1002
+ let localVarHeaders = this.defaultHeaders;
1003
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
1004
+ 'application/json'
1005
+ ]);
1006
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1007
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1008
+ }
1009
+ const localVarHttpContext = options?.context ?? new HttpContext();
1010
+ const localVarTransferCache = options?.transferCache ?? true;
1011
+ let responseType_ = 'json';
1012
+ if (localVarHttpHeaderAcceptSelected) {
1013
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1014
+ responseType_ = 'text';
1015
+ }
1016
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1017
+ responseType_ = 'json';
1018
+ }
1019
+ else {
1020
+ responseType_ = 'blob';
1021
+ }
1022
+ }
1023
+ let localVarPath = `/myseko/shipments/search`;
1024
+ const { basePath, withCredentials } = this.configuration;
1025
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
1026
+ context: localVarHttpContext,
1027
+ params: localVarQueryParameters,
1028
+ responseType: responseType_,
1029
+ ...(withCredentials ? { withCredentials } : {}),
1030
+ headers: localVarHeaders,
1031
+ observe: observe,
1032
+ transferCache: localVarTransferCache,
1033
+ reportProgress: reportProgress
1034
+ });
1035
+ }
773
1036
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: ShipmentService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
774
1037
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: ShipmentService, providedIn: 'root' });
775
1038
  }
@@ -911,9 +1174,7 @@ class UsergroupService extends BaseService {
911
1174
  let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
912
1175
  localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, regGroupID, 'regGroupID');
913
1176
  let localVarHeaders = this.defaultHeaders;
914
- const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
915
- 'application/json'
916
- ]);
1177
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
917
1178
  if (localVarHttpHeaderAcceptSelected !== undefined) {
918
1179
  localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
919
1180
  }
@@ -961,7 +1222,81 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImpor
961
1222
  type: Optional
962
1223
  }] }] });
963
1224
 
964
- const APIS = [AuthService, DashboardService, HealthService, SettingsService, ShipmentService, UserService, UsergroupService];
1225
+ const APIS = [AuthService, CalendarService, DashboardService, HealthService, SettingsService, ShipmentService, UserService, UsergroupService];
1226
+
1227
+ /**
1228
+ * MySeko.API.Client
1229
+ *
1230
+ *
1231
+ *
1232
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1233
+ * https://openapi-generator.tech
1234
+ * Do not edit the class manually.
1235
+ */
1236
+
1237
+ /**
1238
+ * MySeko.API.Client
1239
+ *
1240
+ *
1241
+ *
1242
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1243
+ * https://openapi-generator.tech
1244
+ * Do not edit the class manually.
1245
+ */
1246
+
1247
+ /**
1248
+ * MySeko.API.Client
1249
+ *
1250
+ *
1251
+ *
1252
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1253
+ * https://openapi-generator.tech
1254
+ * Do not edit the class manually.
1255
+ */
1256
+
1257
+ /**
1258
+ * MySeko.API.Client
1259
+ *
1260
+ *
1261
+ *
1262
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1263
+ * https://openapi-generator.tech
1264
+ * Do not edit the class manually.
1265
+ */
1266
+ const CalendarType = {
1267
+ NorthAmerican: 'NorthAmerican',
1268
+ International: 'International'
1269
+ };
1270
+
1271
+ /**
1272
+ * MySeko.API.Client
1273
+ *
1274
+ *
1275
+ *
1276
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1277
+ * https://openapi-generator.tech
1278
+ * Do not edit the class manually.
1279
+ */
1280
+
1281
+ /**
1282
+ * MySeko.API.Client
1283
+ *
1284
+ *
1285
+ *
1286
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1287
+ * https://openapi-generator.tech
1288
+ * Do not edit the class manually.
1289
+ */
1290
+
1291
+ /**
1292
+ * MySeko.API.Client
1293
+ *
1294
+ *
1295
+ *
1296
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1297
+ * https://openapi-generator.tech
1298
+ * Do not edit the class manually.
1299
+ */
965
1300
 
966
1301
  /**
967
1302
  * MySeko.API.Client
@@ -1095,5 +1430,5 @@ function provideApi(configOrBasePath) {
1095
1430
  * Generated bundle index. Do not edit.
1096
1431
  */
1097
1432
 
1098
- export { APIS, ApiModule, AuthService, BASE_PATH, COLLECTION_FORMATS, Configuration, DashboardService, HealthService, SettingsService, ShipmentService, UserService, UsergroupService, provideApi };
1433
+ export { APIS, ApiModule, AuthService, BASE_PATH, COLLECTION_FORMATS, CalendarService, CalendarType, Configuration, DashboardService, HealthService, SettingsService, ShipmentService, UserService, UsergroupService, provideApi };
1099
1434
  //# sourceMappingURL=indigina-myseko-api.mjs.map