@indigina/myseko-api 0.0.16 → 0.0.18

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@indigina/myseko-api",
3
- "version": "0.0.16",
3
+ "version": "0.0.18",
4
4
  "description": "OpenAPI client for @indigina/myseko-api",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {
@@ -13,17 +13,17 @@
13
13
  ],
14
14
  "license": "Unlicense",
15
15
  "peerDependencies": {
16
- "@angular/core": "^20.1.3",
16
+ "@angular/core": "^21.1.0",
17
17
  "rxjs": "^7.4.0"
18
18
  },
19
19
  "module": "fesm2022/indigina-myseko-api.mjs",
20
- "typings": "index.d.ts",
20
+ "typings": "types/indigina-myseko-api.d.ts",
21
21
  "exports": {
22
22
  "./package.json": {
23
23
  "default": "./package.json"
24
24
  },
25
25
  ".": {
26
- "types": "./index.d.ts",
26
+ "types": "./types/indigina-myseko-api.d.ts",
27
27
  "default": "./fesm2022/indigina-myseko-api.mjs"
28
28
  }
29
29
  },
@@ -146,6 +146,64 @@ declare class Configuration {
146
146
  private defaultEncodeParam;
147
147
  }
148
148
 
149
+ declare enum QueryParamStyle {
150
+ Json = 0,
151
+ Form = 1,
152
+ DeepObject = 2,
153
+ SpaceDelimited = 3,
154
+ PipeDelimited = 4
155
+ }
156
+ type Delimiter = "," | " " | "|" | "\t";
157
+ interface ParamOptions {
158
+ /** When true, serialized as multiple repeated key=value pairs. When false, serialized as a single key with joined values using `delimiter`. */
159
+ explode?: boolean;
160
+ /** Delimiter used when explode=false. The delimiter itself is inserted unencoded between encoded values. */
161
+ delimiter?: Delimiter;
162
+ }
163
+ declare class OpenApiHttpParams {
164
+ private params;
165
+ private defaults;
166
+ private encoder;
167
+ /**
168
+ * @param encoder Parameter serializer
169
+ * @param defaults Global defaults used when a specific parameter has no explicit options.
170
+ * By OpenAPI default, explode is true for query params with style=form.
171
+ */
172
+ constructor(encoder?: HttpParameterCodec, defaults?: {
173
+ explode?: boolean;
174
+ delimiter?: Delimiter;
175
+ });
176
+ private resolveOptions;
177
+ /**
178
+ * Replace the parameter's values and (optionally) its options.
179
+ * Options are stored per-parameter (not global).
180
+ */
181
+ set(key: string, values: string[] | string, options?: ParamOptions): this;
182
+ /**
183
+ * Append a single value to the parameter. If the parameter didn't exist it will be created
184
+ * and use resolved options (global defaults merged with any provided options).
185
+ */
186
+ append(key: string, value: string, options?: ParamOptions): this;
187
+ /**
188
+ * Serialize to a query string according to per-parameter OpenAPI options.
189
+ * - If explode=true for that parameter → repeated key=value pairs (each value encoded).
190
+ * - If explode=false for that parameter → single key=value where values are individually encoded
191
+ * and joined using the configured delimiter. The delimiter character is inserted AS-IS
192
+ * (not percent-encoded).
193
+ */
194
+ toString(): string;
195
+ /**
196
+ * Return parameters as a plain record.
197
+ * - If a parameter has exactly one value, returns that value directly.
198
+ * - If a parameter has multiple values, returns a readonly array of values.
199
+ */
200
+ toRecord(): Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
201
+ /**
202
+ * Return an Angular's HttpParams with an identity parameter codec as the parameters are already encoded.
203
+ */
204
+ toHttpParams(): HttpParams;
205
+ }
206
+
149
207
  /**
150
208
  * MySeko.API.Client
151
209
  *
@@ -163,8 +221,7 @@ declare class BaseService {
163
221
  encoder: HttpParameterCodec;
164
222
  constructor(basePath?: string | string[], configuration?: Configuration);
165
223
  protected canConsumeForm(consumes: string[]): boolean;
166
- protected addToHttpParams(httpParams: HttpParams, value: any, key?: string, isDeep?: boolean): HttpParams;
167
- protected addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string, isDeep?: boolean): HttpParams;
224
+ protected addToHttpParams(httpParams: OpenApiHttpParams, key: string, value: any | null | undefined, paramStyle: QueryParamStyle, explode: boolean): OpenApiHttpParams;
168
225
  }
169
226
 
170
227
  declare class AuthService extends BaseService {
@@ -172,8 +229,10 @@ declare class AuthService extends BaseService {
172
229
  constructor(httpClient: HttpClient, basePath: string | string[], configuration?: Configuration);
173
230
  /**
174
231
  * User login
232
+ * @endpoint post /myseko/auth/login
175
233
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
176
234
  * @param reportProgress flag to report request and response progress.
235
+ * @param options additional options
177
236
  */
178
237
  userLogin(observe?: 'body', reportProgress?: boolean, options?: {
179
238
  httpHeaderAccept?: undefined;
@@ -227,6 +286,8 @@ interface ShipmentCalendarItem {
227
286
  status?: string | null;
228
287
  from?: string | null;
229
288
  to?: string | null;
289
+ shipReference?: string | null;
290
+ consReference?: string | null;
230
291
  }
231
292
 
232
293
  /**
@@ -264,6 +325,7 @@ declare class CalendarService extends BaseService {
264
325
  constructor(httpClient: HttpClient, basePath: string | string[], configuration?: Configuration);
265
326
  /**
266
327
  * Returns Calendar for a given range
328
+ * @endpoint get /myseko/shipments/calendar/{startDate}/{endDate}
267
329
  * @param startDate
268
330
  * @param endDate
269
331
  * @param viewBy
@@ -276,6 +338,7 @@ declare class CalendarService extends BaseService {
276
338
  * @param $skip
277
339
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
278
340
  * @param reportProgress flag to report request and response progress.
341
+ * @param options additional options
279
342
  */
280
343
  getShipmentCalendarRange(startDate: string, endDate: string, viewBy?: CalendarViewBy, searchTerm?: string, $filter?: string, $orderby?: string, $select?: string, $expand?: string, $top?: number, $skip?: number, observe?: 'body', reportProgress?: boolean, options?: {
281
344
  httpHeaderAccept?: 'application/json';
@@ -310,13 +373,30 @@ interface ActiveShipment {
310
373
  domesticUSCount?: number;
311
374
  }
312
375
 
376
+ /**
377
+ * MySeko.API.Client
378
+ *
379
+ *
380
+ *
381
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
382
+ * https://openapi-generator.tech
383
+ * Do not edit the class manually.
384
+ */
385
+ interface DeliveriesToday {
386
+ deliveredToday?: number;
387
+ deliveringToday?: number;
388
+ deliveringThisWeek?: number;
389
+ }
390
+
313
391
  declare class DashboardService extends BaseService {
314
392
  protected httpClient: HttpClient;
315
393
  constructor(httpClient: HttpClient, basePath: string | string[], configuration?: Configuration);
316
394
  /**
317
395
  * Get active shipments statistics
396
+ * @endpoint get /myseko/dashboard/active-shipments
318
397
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
319
398
  * @param reportProgress flag to report request and response progress.
399
+ * @param options additional options
320
400
  */
321
401
  getActiveShipments(observe?: 'body', reportProgress?: boolean, options?: {
322
402
  httpHeaderAccept?: 'application/json';
@@ -333,6 +413,28 @@ declare class DashboardService extends BaseService {
333
413
  context?: HttpContext;
334
414
  transferCache?: boolean;
335
415
  }): Observable<HttpEvent<ActiveShipment>>;
416
+ /**
417
+ * Get deliveries today statistics
418
+ * @endpoint get /myseko/dashboard/deliveries-today
419
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
420
+ * @param reportProgress flag to report request and response progress.
421
+ * @param options additional options
422
+ */
423
+ getDeliveriesToday(observe?: 'body', reportProgress?: boolean, options?: {
424
+ httpHeaderAccept?: 'application/json';
425
+ context?: HttpContext;
426
+ transferCache?: boolean;
427
+ }): Observable<DeliveriesToday>;
428
+ getDeliveriesToday(observe?: 'response', reportProgress?: boolean, options?: {
429
+ httpHeaderAccept?: 'application/json';
430
+ context?: HttpContext;
431
+ transferCache?: boolean;
432
+ }): Observable<HttpResponse<DeliveriesToday>>;
433
+ getDeliveriesToday(observe?: 'events', reportProgress?: boolean, options?: {
434
+ httpHeaderAccept?: 'application/json';
435
+ context?: HttpContext;
436
+ transferCache?: boolean;
437
+ }): Observable<HttpEvent<DeliveriesToday>>;
336
438
  static ɵfac: i0.ɵɵFactoryDeclaration<DashboardService, [null, { optional: true; }, { optional: true; }]>;
337
439
  static ɵprov: i0.ɵɵInjectableDeclaration<DashboardService>;
338
440
  }
@@ -342,8 +444,10 @@ declare class HealthService extends BaseService {
342
444
  constructor(httpClient: HttpClient, basePath: string | string[], configuration?: Configuration);
343
445
  /**
344
446
  * Api health check
447
+ * @endpoint get /health
345
448
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
346
449
  * @param reportProgress flag to report request and response progress.
450
+ * @param options additional options
347
451
  */
348
452
  getHealth(observe?: 'body', reportProgress?: boolean, options?: {
349
453
  httpHeaderAccept?: 'text/plain' | 'application/json';
@@ -398,10 +502,12 @@ declare class SettingsService extends BaseService {
398
502
  constructor(httpClient: HttpClient, basePath: string | string[], configuration?: Configuration);
399
503
  /**
400
504
  * Delete a specific setting by group and key
505
+ * @endpoint delete /users/me/settings/groups/{group}/{key}
401
506
  * @param key
402
507
  * @param group
403
508
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
404
509
  * @param reportProgress flag to report request and response progress.
510
+ * @param options additional options
405
511
  */
406
512
  deleteSettingByGroupAndKey(key: string, group: string, observe?: 'body', reportProgress?: boolean, options?: {
407
513
  httpHeaderAccept?: undefined;
@@ -420,9 +526,11 @@ declare class SettingsService extends BaseService {
420
526
  }): Observable<HttpEvent<any>>;
421
527
  /**
422
528
  * Delete a specific setting by key
529
+ * @endpoint delete /users/me/settings/{key}
423
530
  * @param key
424
531
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
425
532
  * @param reportProgress flag to report request and response progress.
533
+ * @param options additional options
426
534
  */
427
535
  deleteSettingByKey(key: string, observe?: 'body', reportProgress?: boolean, options?: {
428
536
  httpHeaderAccept?: undefined;
@@ -441,10 +549,12 @@ declare class SettingsService extends BaseService {
441
549
  }): Observable<HttpEvent<any>>;
442
550
  /**
443
551
  * Get a specific setting by group and key
552
+ * @endpoint get /users/me/settings/groups/{group}/{key}
444
553
  * @param key
445
554
  * @param group
446
555
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
447
556
  * @param reportProgress flag to report request and response progress.
557
+ * @param options additional options
448
558
  */
449
559
  getSettingByGroupAndKey(key: string, group: string, observe?: 'body', reportProgress?: boolean, options?: {
450
560
  httpHeaderAccept?: 'application/json';
@@ -463,9 +573,11 @@ declare class SettingsService extends BaseService {
463
573
  }): Observable<HttpEvent<SettingValue>>;
464
574
  /**
465
575
  * Get a specific setting by key
576
+ * @endpoint get /users/me/settings/{key}
466
577
  * @param key
467
578
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
468
579
  * @param reportProgress flag to report request and response progress.
580
+ * @param options additional options
469
581
  */
470
582
  getSettingByKey(key: string, observe?: 'body', reportProgress?: boolean, options?: {
471
583
  httpHeaderAccept?: 'application/json';
@@ -484,9 +596,11 @@ declare class SettingsService extends BaseService {
484
596
  }): Observable<HttpEvent<SettingValue>>;
485
597
  /**
486
598
  * Get settings by group
599
+ * @endpoint get /users/me/settings/groups/{group}
487
600
  * @param group
488
601
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
489
602
  * @param reportProgress flag to report request and response progress.
603
+ * @param options additional options
490
604
  */
491
605
  getSettingsByGroup(group: string, observe?: 'body', reportProgress?: boolean, options?: {
492
606
  httpHeaderAccept?: 'application/json';
@@ -505,10 +619,12 @@ declare class SettingsService extends BaseService {
505
619
  }): Observable<HttpEvent<Array<SettingView>>>;
506
620
  /**
507
621
  * Create or update a specific setting by key
622
+ * @endpoint put /users/me/settings/{key}
508
623
  * @param key
509
624
  * @param settingValue
510
625
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
511
626
  * @param reportProgress flag to report request and response progress.
627
+ * @param options additional options
512
628
  */
513
629
  setSettingByKey(key: string, settingValue: SettingValue, observe?: 'body', reportProgress?: boolean, options?: {
514
630
  httpHeaderAccept?: 'application/json';
@@ -819,7 +935,6 @@ interface Shipment {
819
935
  accountNumber?: string | null;
820
936
  origin?: string | null;
821
937
  destination?: string | null;
822
- outerPkgType?: string | null;
823
938
  pickupDate?: string | null;
824
939
  dueDate?: string | null;
825
940
  shipReference?: string | null;
@@ -842,7 +957,6 @@ interface Shipment {
842
957
  containerType?: string | null;
843
958
  shipCountryCode?: string | null;
844
959
  consCountryCode?: string | null;
845
- clientName?: string | null;
846
960
  references?: string | null;
847
961
  incoTerm?: string | null;
848
962
  additionalShipmentRef?: string | null;
@@ -864,7 +978,6 @@ interface Shipment {
864
978
  deliveryCity?: string | null;
865
979
  deliveryState?: string | null;
866
980
  deliveryZip?: string | null;
867
- innerPkgType?: string | null;
868
981
  innerPieces?: number | null;
869
982
  volume?: number | null;
870
983
  volumeUOM?: string | null;
@@ -872,8 +985,6 @@ interface Shipment {
872
985
  containerNum?: string | null;
873
986
  containerRefNum?: string | null;
874
987
  teu?: number | null;
875
- entryType?: string | null;
876
- entryNumber?: string | null;
877
988
  importBroker?: string | null;
878
989
  exportBroker?: string | null;
879
990
  tcn?: string | null;
@@ -905,9 +1016,11 @@ declare class ShipmentService extends BaseService {
905
1016
  constructor(httpClient: HttpClient, basePath: string | string[], configuration?: Configuration);
906
1017
  /**
907
1018
  * Get shipment package details by ordOrderID
1019
+ * @endpoint get /myseko/shipments/{ordOrderID}/package-details
908
1020
  * @param ordOrderID
909
1021
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
910
1022
  * @param reportProgress flag to report request and response progress.
1023
+ * @param options additional options
911
1024
  */
912
1025
  getShipmentPackageDetails(ordOrderID: string, observe?: 'body', reportProgress?: boolean, options?: {
913
1026
  httpHeaderAccept?: 'application/json';
@@ -926,9 +1039,11 @@ declare class ShipmentService extends BaseService {
926
1039
  }): Observable<HttpEvent<PackageDetails>>;
927
1040
  /**
928
1041
  * Get shipment purchase order details by ordOrderID
1042
+ * @endpoint get /myseko/shipments/{ordOrderID}/purchase-order-details
929
1043
  * @param ordOrderID
930
1044
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
931
1045
  * @param reportProgress flag to report request and response progress.
1046
+ * @param options additional options
932
1047
  */
933
1048
  getShipmentPurchaseOrderDetails(ordOrderID: string, observe?: 'body', reportProgress?: boolean, options?: {
934
1049
  httpHeaderAccept?: 'application/json';
@@ -947,9 +1062,11 @@ declare class ShipmentService extends BaseService {
947
1062
  }): Observable<HttpEvent<ShipmentPurchaseOrderDetails>>;
948
1063
  /**
949
1064
  * Get shipment summary by ordOrderID
1065
+ * @endpoint get /myseko/shipments/{ordOrderID}/summary
950
1066
  * @param ordOrderID
951
1067
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
952
1068
  * @param reportProgress flag to report request and response progress.
1069
+ * @param options additional options
953
1070
  */
954
1071
  getShipmentSummary(ordOrderID: string, observe?: 'body', reportProgress?: boolean, options?: {
955
1072
  httpHeaderAccept?: 'application/json';
@@ -968,9 +1085,11 @@ declare class ShipmentService extends BaseService {
968
1085
  }): Observable<HttpEvent<ShipmentSummary>>;
969
1086
  /**
970
1087
  * Get shipment timeline events by ordOrderID
1088
+ * @endpoint get /myseko/shipments/{ordOrderID}/timeline
971
1089
  * @param ordOrderID
972
1090
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
973
1091
  * @param reportProgress flag to report request and response progress.
1092
+ * @param options additional options
974
1093
  */
975
1094
  getShipmentTimeline(ordOrderID: string, observe?: 'body', reportProgress?: boolean, options?: {
976
1095
  httpHeaderAccept?: 'application/json';
@@ -989,12 +1108,14 @@ declare class ShipmentService extends BaseService {
989
1108
  }): Observable<HttpEvent<ShipmentTimeline>>;
990
1109
  /**
991
1110
  * Get all shipments
1111
+ * @endpoint get /myseko/shipments
992
1112
  * @param $skip
993
1113
  * @param $top
994
1114
  * @param $orderby
995
1115
  * @param $filter
996
1116
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
997
1117
  * @param reportProgress flag to report request and response progress.
1118
+ * @param options additional options
998
1119
  */
999
1120
  getShipments($skip?: number, $top?: number, $orderby?: string, $filter?: string, observe?: 'body', reportProgress?: boolean, options?: {
1000
1121
  httpHeaderAccept?: 'application/json';
@@ -1013,6 +1134,7 @@ declare class ShipmentService extends BaseService {
1013
1134
  }): Observable<HttpEvent<Shipments>>;
1014
1135
  /**
1015
1136
  * Get all shipments
1137
+ * @endpoint get /myseko/shipments/search
1016
1138
  * @param $skip
1017
1139
  * @param $top
1018
1140
  * @param $orderby
@@ -1020,6 +1142,7 @@ declare class ShipmentService extends BaseService {
1020
1142
  * @param searchTerm
1021
1143
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
1022
1144
  * @param reportProgress flag to report request and response progress.
1145
+ * @param options additional options
1023
1146
  */
1024
1147
  getShipmentsWithSearch($skip?: number, $top?: number, $orderby?: string, $filter?: string, searchTerm?: string, observe?: 'body', reportProgress?: boolean, options?: {
1025
1148
  httpHeaderAccept?: 'application/json';
@@ -1095,8 +1218,10 @@ declare class UserService extends BaseService {
1095
1218
  constructor(httpClient: HttpClient, basePath: string | string[], configuration?: Configuration);
1096
1219
  /**
1097
1220
  * Get current user information
1221
+ * @endpoint get /myseko/users/me
1098
1222
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
1099
1223
  * @param reportProgress flag to report request and response progress.
1224
+ * @param options additional options
1100
1225
  */
1101
1226
  getUser(observe?: 'body', reportProgress?: boolean, options?: {
1102
1227
  httpHeaderAccept?: 'application/json';
@@ -1122,8 +1247,10 @@ declare class UsergroupService extends BaseService {
1122
1247
  constructor(httpClient: HttpClient, basePath: string | string[], configuration?: Configuration);
1123
1248
  /**
1124
1249
  * Get user group for current user
1250
+ * @endpoint get /myseko/users/me/group
1125
1251
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
1126
1252
  * @param reportProgress flag to report request and response progress.
1253
+ * @param options additional options
1127
1254
  */
1128
1255
  getUserGroup(observe?: 'body', reportProgress?: boolean, options?: {
1129
1256
  httpHeaderAccept?: 'application/json';
@@ -1142,9 +1269,11 @@ declare class UsergroupService extends BaseService {
1142
1269
  }): Observable<HttpEvent<RegGroup>>;
1143
1270
  /**
1144
1271
  * Set user group for current user
1272
+ * @endpoint patch /myseko/users/me/group
1145
1273
  * @param regGroupID
1146
1274
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
1147
1275
  * @param reportProgress flag to report request and response progress.
1276
+ * @param options additional options
1148
1277
  */
1149
1278
  setUserGroup(regGroupID: string, observe?: 'body', reportProgress?: boolean, options?: {
1150
1279
  httpHeaderAccept?: undefined;
@@ -1332,4 +1461,4 @@ declare class ApiModule {
1332
1461
  declare function provideApi(configOrBasePath: string | ConfigurationParameters): EnvironmentProviders;
1333
1462
 
1334
1463
  export { APIS, ApiModule, AuthService, BASE_PATH, COLLECTION_FORMATS, CalendarService, CalendarViewBy, Configuration, DashboardService, HealthService, SettingsService, ShipmentService, TimelineEvent, TimelineEventStatus, UserService, UsergroupService, provideApi };
1335
- export type { ActiveShipment, Address, BaseShipmentSummary, ConfigurationParameters, Contact, DataFormat, DataType, EntityList, IntlShipmentSummary, ModelError, PackageDetails, Param, ParamLocation, ParamStyle, PieceDetail, RegGroup, SekonaShipmentSummary, SettingValue, SettingView, Shipment, ShipmentCalendarDateGroup, ShipmentCalendarDates, ShipmentCalendarItem, ShipmentParty, ShipmentPurchaseOrder, ShipmentPurchaseOrderDetails, ShipmentSummary, ShipmentTimeline, Shipments, StandardDataFormat, StandardDataType, StandardParamStyle, User, UserAccount };
1464
+ export type { ActiveShipment, Address, BaseShipmentSummary, ConfigurationParameters, Contact, DataFormat, DataType, DeliveriesToday, EntityList, IntlShipmentSummary, ModelError, PackageDetails, Param, ParamLocation, ParamStyle, PieceDetail, RegGroup, SekonaShipmentSummary, SettingValue, SettingView, Shipment, ShipmentCalendarDateGroup, ShipmentCalendarDates, ShipmentCalendarItem, ShipmentParty, ShipmentPurchaseOrder, ShipmentPurchaseOrderDetails, ShipmentSummary, ShipmentTimeline, Shipments, StandardDataFormat, StandardDataType, StandardParamStyle, User, UserAccount };