@indigina/myseko-api 0.0.13 → 0.0.14

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.13
1
+ # @indigina/myseko-api@0.0.14
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.13 --save
27
+ npm install @indigina/myseko-api@0.0.14 --save
28
28
  ```
29
29
 
30
30
  _without publishing (not recommended):_
@@ -324,55 +324,12 @@ class CalendarService extends BaseService {
324
324
  super(basePath, configuration);
325
325
  this.httpClient = httpClient;
326
326
  }
327
- getShipmentCalendarDay(date, viewBy, $filter, $orderby, $select, $expand, $top, $skip, observe = 'body', reportProgress = false, options) {
328
- if (date === null || date === undefined) {
329
- throw new Error('Required parameter date was null or undefined when calling getShipmentCalendarDay.');
330
- }
331
- let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
332
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, viewBy, 'viewBy');
333
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
334
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
335
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $select, '$select');
336
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $expand, '$expand');
337
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
338
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
339
- let localVarHeaders = this.defaultHeaders;
340
- const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
341
- 'application/json'
342
- ]);
343
- if (localVarHttpHeaderAcceptSelected !== undefined) {
344
- localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
345
- }
346
- const localVarHttpContext = options?.context ?? new HttpContext();
347
- const localVarTransferCache = options?.transferCache ?? true;
348
- let responseType_ = 'json';
349
- if (localVarHttpHeaderAcceptSelected) {
350
- if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
351
- responseType_ = 'text';
352
- }
353
- else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
354
- responseType_ = 'json';
355
- }
356
- else {
357
- responseType_ = 'blob';
358
- }
327
+ getShipmentCalendarRange(startDate, endDate, viewBy, $filter, $orderby, $select, $expand, $top, $skip, observe = 'body', reportProgress = false, options) {
328
+ if (startDate === null || startDate === undefined) {
329
+ throw new Error('Required parameter startDate was null or undefined when calling getShipmentCalendarRange.');
359
330
  }
360
- let localVarPath = `/myseko/shipments/calendar/day/${this.configuration.encodeParam({ name: "date", value: date, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "date" })}`;
361
- const { basePath, withCredentials } = this.configuration;
362
- return this.httpClient.request('get', `${basePath}${localVarPath}`, {
363
- context: localVarHttpContext,
364
- params: localVarQueryParameters,
365
- responseType: responseType_,
366
- ...(withCredentials ? { withCredentials } : {}),
367
- headers: localVarHeaders,
368
- observe: observe,
369
- transferCache: localVarTransferCache,
370
- reportProgress: reportProgress
371
- });
372
- }
373
- getShipmentCalendarDayShort(date, viewBy, $filter, $orderby, $select, $expand, $top, $skip, observe = 'body', reportProgress = false, options) {
374
- if (date === null || date === undefined) {
375
- throw new Error('Required parameter date was null or undefined when calling getShipmentCalendarDayShort.');
331
+ if (endDate === null || endDate === undefined) {
332
+ throw new Error('Required parameter endDate was null or undefined when calling getShipmentCalendarRange.');
376
333
  }
377
334
  let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
378
335
  localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, viewBy, 'viewBy');
@@ -403,178 +360,6 @@ class CalendarService extends BaseService {
403
360
  responseType_ = 'blob';
404
361
  }
405
362
  }
406
- let localVarPath = `/myseko/shipments/calendar/${this.configuration.encodeParam({ name: "date", value: date, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "date" })}`;
407
- const { basePath, withCredentials } = this.configuration;
408
- return this.httpClient.request('get', `${basePath}${localVarPath}`, {
409
- context: localVarHttpContext,
410
- params: localVarQueryParameters,
411
- responseType: responseType_,
412
- ...(withCredentials ? { withCredentials } : {}),
413
- headers: localVarHeaders,
414
- observe: observe,
415
- transferCache: localVarTransferCache,
416
- reportProgress: reportProgress
417
- });
418
- }
419
- getShipmentCalendarMonth(year, month, viewBy, observe = 'body', reportProgress = false, options) {
420
- if (year === null || year === undefined) {
421
- throw new Error('Required parameter year was null or undefined when calling getShipmentCalendarMonth.');
422
- }
423
- if (month === null || month === undefined) {
424
- throw new Error('Required parameter month was null or undefined when calling getShipmentCalendarMonth.');
425
- }
426
- let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
427
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, viewBy, 'viewBy');
428
- let localVarHeaders = this.defaultHeaders;
429
- const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
430
- 'application/json'
431
- ]);
432
- if (localVarHttpHeaderAcceptSelected !== undefined) {
433
- localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
434
- }
435
- const localVarHttpContext = options?.context ?? new HttpContext();
436
- const localVarTransferCache = options?.transferCache ?? true;
437
- let responseType_ = 'json';
438
- if (localVarHttpHeaderAcceptSelected) {
439
- if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
440
- responseType_ = 'text';
441
- }
442
- else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
443
- responseType_ = 'json';
444
- }
445
- else {
446
- responseType_ = 'blob';
447
- }
448
- }
449
- let localVarPath = `/myseko/shipments/calendar/month/${this.configuration.encodeParam({ name: "year", value: year, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}/${this.configuration.encodeParam({ name: "month", value: month, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}`;
450
- const { basePath, withCredentials } = this.configuration;
451
- return this.httpClient.request('get', `${basePath}${localVarPath}`, {
452
- context: localVarHttpContext,
453
- params: localVarQueryParameters,
454
- responseType: responseType_,
455
- ...(withCredentials ? { withCredentials } : {}),
456
- headers: localVarHeaders,
457
- observe: observe,
458
- transferCache: localVarTransferCache,
459
- reportProgress: reportProgress
460
- });
461
- }
462
- getShipmentCalendarMonthShort(year, month, viewBy, observe = 'body', reportProgress = false, options) {
463
- if (year === null || year === undefined) {
464
- throw new Error('Required parameter year was null or undefined when calling getShipmentCalendarMonthShort.');
465
- }
466
- if (month === null || month === undefined) {
467
- throw new Error('Required parameter month was null or undefined when calling getShipmentCalendarMonthShort.');
468
- }
469
- let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
470
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, viewBy, 'viewBy');
471
- let localVarHeaders = this.defaultHeaders;
472
- const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
473
- 'application/json'
474
- ]);
475
- if (localVarHttpHeaderAcceptSelected !== undefined) {
476
- localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
477
- }
478
- const localVarHttpContext = options?.context ?? new HttpContext();
479
- const localVarTransferCache = options?.transferCache ?? true;
480
- let responseType_ = 'json';
481
- if (localVarHttpHeaderAcceptSelected) {
482
- if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
483
- responseType_ = 'text';
484
- }
485
- else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
486
- responseType_ = 'json';
487
- }
488
- else {
489
- responseType_ = 'blob';
490
- }
491
- }
492
- let localVarPath = `/myseko/shipments/calendar/${this.configuration.encodeParam({ name: "year", value: year, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}/${this.configuration.encodeParam({ name: "month", value: month, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}`;
493
- const { basePath, withCredentials } = this.configuration;
494
- return this.httpClient.request('get', `${basePath}${localVarPath}`, {
495
- context: localVarHttpContext,
496
- params: localVarQueryParameters,
497
- responseType: responseType_,
498
- ...(withCredentials ? { withCredentials } : {}),
499
- headers: localVarHeaders,
500
- observe: observe,
501
- transferCache: localVarTransferCache,
502
- reportProgress: reportProgress
503
- });
504
- }
505
- getShipmentCalendarRange(startDate, endDate, viewBy, observe = 'body', reportProgress = false, options) {
506
- if (startDate === null || startDate === undefined) {
507
- throw new Error('Required parameter startDate was null or undefined when calling getShipmentCalendarRange.');
508
- }
509
- if (endDate === null || endDate === undefined) {
510
- throw new Error('Required parameter endDate was null or undefined when calling getShipmentCalendarRange.');
511
- }
512
- let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
513
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, viewBy, 'viewBy');
514
- let localVarHeaders = this.defaultHeaders;
515
- const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
516
- 'application/json'
517
- ]);
518
- if (localVarHttpHeaderAcceptSelected !== undefined) {
519
- localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
520
- }
521
- const localVarHttpContext = options?.context ?? new HttpContext();
522
- const localVarTransferCache = options?.transferCache ?? true;
523
- let responseType_ = 'json';
524
- if (localVarHttpHeaderAcceptSelected) {
525
- if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
526
- responseType_ = 'text';
527
- }
528
- else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
529
- responseType_ = 'json';
530
- }
531
- else {
532
- responseType_ = 'blob';
533
- }
534
- }
535
- let localVarPath = `/myseko/shipments/calendar/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" })}`;
536
- const { basePath, withCredentials } = this.configuration;
537
- return this.httpClient.request('get', `${basePath}${localVarPath}`, {
538
- context: localVarHttpContext,
539
- params: localVarQueryParameters,
540
- responseType: responseType_,
541
- ...(withCredentials ? { withCredentials } : {}),
542
- headers: localVarHeaders,
543
- observe: observe,
544
- transferCache: localVarTransferCache,
545
- reportProgress: reportProgress
546
- });
547
- }
548
- getShipmentCalendarRangeShort(startDate, endDate, viewBy, observe = 'body', reportProgress = false, options) {
549
- if (startDate === null || startDate === undefined) {
550
- throw new Error('Required parameter startDate was null or undefined when calling getShipmentCalendarRangeShort.');
551
- }
552
- if (endDate === null || endDate === undefined) {
553
- throw new Error('Required parameter endDate was null or undefined when calling getShipmentCalendarRangeShort.');
554
- }
555
- let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
556
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, viewBy, 'viewBy');
557
- let localVarHeaders = this.defaultHeaders;
558
- const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
559
- 'application/json'
560
- ]);
561
- if (localVarHttpHeaderAcceptSelected !== undefined) {
562
- localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
563
- }
564
- const localVarHttpContext = options?.context ?? new HttpContext();
565
- const localVarTransferCache = options?.transferCache ?? true;
566
- let responseType_ = 'json';
567
- if (localVarHttpHeaderAcceptSelected) {
568
- if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
569
- responseType_ = 'text';
570
- }
571
- else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
572
- responseType_ = 'json';
573
- }
574
- else {
575
- responseType_ = 'blob';
576
- }
577
- }
578
363
  let localVarPath = `/myseko/shipments/calendar/${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" })}`;
579
364
  const { basePath, withCredentials } = this.configuration;
580
365
  return this.httpClient.request('get', `${basePath}${localVarPath}`, {
@@ -1590,6 +1375,13 @@ const CalendarViewBy = {
1590
1375
  * https://openapi-generator.tech
1591
1376
  * Do not edit the class manually.
1592
1377
  */
1378
+ const TimelineEventStatus = {
1379
+ Origin: 'ORIGIN',
1380
+ Departed: 'DEPARTED',
1381
+ InTransit: 'IN_TRANSIT',
1382
+ Arrived: 'ARRIVED',
1383
+ Destination: 'DESTINATION'
1384
+ };
1593
1385
 
1594
1386
  /**
1595
1387
  * MySeko.API.Client
@@ -1653,5 +1445,5 @@ function provideApi(configOrBasePath) {
1653
1445
  * Generated bundle index. Do not edit.
1654
1446
  */
1655
1447
 
1656
- export { APIS, ApiModule, AuthService, BASE_PATH, COLLECTION_FORMATS, CalendarService, CalendarViewBy, Configuration, DashboardService, HealthService, SettingsService, ShipmentService, UserService, UsergroupService, provideApi };
1448
+ export { APIS, ApiModule, AuthService, BASE_PATH, COLLECTION_FORMATS, CalendarService, CalendarViewBy, Configuration, DashboardService, HealthService, SettingsService, ShipmentService, TimelineEventStatus, UserService, UsergroupService, provideApi };
1657
1449
  //# sourceMappingURL=indigina-myseko-api.mjs.map