@indigina/myseko-api 0.0.12 → 0.0.13

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.12
1
+ # @indigina/myseko-api@0.0.13
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.12 --save
27
+ npm install @indigina/myseko-api@0.0.13 --save
28
28
  ```
29
29
 
30
30
  _without publishing (not recommended):_
@@ -324,16 +324,193 @@ class CalendarService extends BaseService {
324
324
  super(basePath, configuration);
325
325
  this.httpClient = httpClient;
326
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.');
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
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
+ }
359
+ }
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.');
376
+ }
377
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
378
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, viewBy, 'viewBy');
379
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
380
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
381
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $select, '$select');
382
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $expand, '$expand');
383
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
384
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
385
+ let localVarHeaders = this.defaultHeaders;
386
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
387
+ 'application/json'
388
+ ]);
389
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
390
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
391
+ }
392
+ const localVarHttpContext = options?.context ?? new HttpContext();
393
+ const localVarTransferCache = options?.transferCache ?? true;
394
+ let responseType_ = 'json';
395
+ if (localVarHttpHeaderAcceptSelected) {
396
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
397
+ responseType_ = 'text';
398
+ }
399
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
400
+ responseType_ = 'json';
401
+ }
402
+ else {
403
+ responseType_ = 'blob';
404
+ }
405
+ }
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) {
331
506
  if (startDate === null || startDate === undefined) {
332
- throw new Error('Required parameter startDate was null or undefined when calling getCalendarRange.');
507
+ throw new Error('Required parameter startDate was null or undefined when calling getShipmentCalendarRange.');
333
508
  }
334
509
  if (endDate === null || endDate === undefined) {
335
- throw new Error('Required parameter endDate was null or undefined when calling getCalendarRange.');
510
+ throw new Error('Required parameter endDate was null or undefined when calling getShipmentCalendarRange.');
336
511
  }
512
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
513
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, viewBy, 'viewBy');
337
514
  let localVarHeaders = this.defaultHeaders;
338
515
  const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
339
516
  'application/json'
@@ -355,10 +532,54 @@ class CalendarService extends BaseService {
355
532
  responseType_ = 'blob';
356
533
  }
357
534
  }
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" })}`;
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" })}`;
359
536
  const { basePath, withCredentials } = this.configuration;
360
537
  return this.httpClient.request('get', `${basePath}${localVarPath}`, {
361
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
+ 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
+ const { basePath, withCredentials } = this.configuration;
580
+ return this.httpClient.request('get', `${basePath}${localVarPath}`, {
581
+ context: localVarHttpContext,
582
+ params: localVarQueryParameters,
362
583
  responseType: responseType_,
363
584
  ...(withCredentials ? { withCredentials } : {}),
364
585
  headers: localVarHeaders,
@@ -1253,6 +1474,12 @@ const APIS = [AuthService, CalendarService, DashboardService, HealthService, Set
1253
1474
  * https://openapi-generator.tech
1254
1475
  * Do not edit the class manually.
1255
1476
  */
1477
+ const CalendarViewBy = {
1478
+ Due: 'due',
1479
+ Pickup: 'pickup',
1480
+ Pod: 'pod',
1481
+ Created: 'created'
1482
+ };
1256
1483
 
1257
1484
  /**
1258
1485
  * MySeko.API.Client
@@ -1263,10 +1490,6 @@ const APIS = [AuthService, CalendarService, DashboardService, HealthService, Set
1263
1490
  * https://openapi-generator.tech
1264
1491
  * Do not edit the class manually.
1265
1492
  */
1266
- const CalendarType = {
1267
- NorthAmerican: 'NorthAmerican',
1268
- International: 'International'
1269
- };
1270
1493
 
1271
1494
  /**
1272
1495
  * MySeko.API.Client
@@ -1430,5 +1653,5 @@ function provideApi(configOrBasePath) {
1430
1653
  * Generated bundle index. Do not edit.
1431
1654
  */
1432
1655
 
1433
- export { APIS, ApiModule, AuthService, BASE_PATH, COLLECTION_FORMATS, CalendarService, CalendarType, Configuration, DashboardService, HealthService, SettingsService, ShipmentService, UserService, UsergroupService, provideApi };
1656
+ export { APIS, ApiModule, AuthService, BASE_PATH, COLLECTION_FORMATS, CalendarService, CalendarViewBy, Configuration, DashboardService, HealthService, SettingsService, ShipmentService, UserService, UsergroupService, provideApi };
1434
1657
  //# sourceMappingURL=indigina-myseko-api.mjs.map