@indigina/myseko-api 0.0.17 → 0.0.19

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.17",
3
+ "version": "0.0.19",
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;
@@ -204,10 +263,11 @@ declare class AuthService extends BaseService {
204
263
  * Do not edit the class manually.
205
264
  */
206
265
  declare const CalendarViewBy: {
207
- readonly Due: "due";
266
+ readonly ScheduledDelivery: "scheduledDelivery";
267
+ readonly Delivered: "delivered";
268
+ readonly ArrivePortDate: "arrivePortDate";
269
+ readonly DepartPortDate: "departPortDate";
208
270
  readonly Pickup: "pickup";
209
- readonly Pod: "pod";
210
- readonly Created: "created";
211
271
  };
212
272
  type CalendarViewBy = typeof CalendarViewBy[keyof typeof CalendarViewBy];
213
273
 
@@ -223,12 +283,14 @@ type CalendarViewBy = typeof CalendarViewBy[keyof typeof CalendarViewBy];
223
283
  interface ShipmentCalendarItem {
224
284
  ordOrderID: string;
225
285
  date?: string | null;
286
+ viewBy?: string | null;
226
287
  number?: string | null;
227
288
  status?: string | null;
228
289
  from?: string | null;
229
290
  to?: string | null;
230
291
  shipReference?: string | null;
231
292
  consReference?: string | null;
293
+ isCalculatedScheduledDelivery?: boolean | null;
232
294
  }
233
295
 
234
296
  /**
@@ -266,6 +328,7 @@ declare class CalendarService extends BaseService {
266
328
  constructor(httpClient: HttpClient, basePath: string | string[], configuration?: Configuration);
267
329
  /**
268
330
  * Returns Calendar for a given range
331
+ * @endpoint get /myseko/shipments/calendar/{startDate}/{endDate}
269
332
  * @param startDate
270
333
  * @param endDate
271
334
  * @param viewBy
@@ -278,18 +341,19 @@ declare class CalendarService extends BaseService {
278
341
  * @param $skip
279
342
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
280
343
  * @param reportProgress flag to report request and response progress.
344
+ * @param options additional options
281
345
  */
282
- 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?: {
346
+ getShipmentCalendarRange(startDate: string, endDate: string, viewBy: Array<CalendarViewBy>, searchTerm?: string, $filter?: string, $orderby?: string, $select?: string, $expand?: string, $top?: number, $skip?: number, observe?: 'body', reportProgress?: boolean, options?: {
283
347
  httpHeaderAccept?: 'application/json';
284
348
  context?: HttpContext;
285
349
  transferCache?: boolean;
286
350
  }): Observable<ShipmentCalendarDates>;
287
- getShipmentCalendarRange(startDate: string, endDate: string, viewBy?: CalendarViewBy, searchTerm?: string, $filter?: string, $orderby?: string, $select?: string, $expand?: string, $top?: number, $skip?: number, observe?: 'response', reportProgress?: boolean, options?: {
351
+ getShipmentCalendarRange(startDate: string, endDate: string, viewBy: Array<CalendarViewBy>, searchTerm?: string, $filter?: string, $orderby?: string, $select?: string, $expand?: string, $top?: number, $skip?: number, observe?: 'response', reportProgress?: boolean, options?: {
288
352
  httpHeaderAccept?: 'application/json';
289
353
  context?: HttpContext;
290
354
  transferCache?: boolean;
291
355
  }): Observable<HttpResponse<ShipmentCalendarDates>>;
292
- getShipmentCalendarRange(startDate: string, endDate: string, viewBy?: CalendarViewBy, searchTerm?: string, $filter?: string, $orderby?: string, $select?: string, $expand?: string, $top?: number, $skip?: number, observe?: 'events', reportProgress?: boolean, options?: {
356
+ getShipmentCalendarRange(startDate: string, endDate: string, viewBy: Array<CalendarViewBy>, searchTerm?: string, $filter?: string, $orderby?: string, $select?: string, $expand?: string, $top?: number, $skip?: number, observe?: 'events', reportProgress?: boolean, options?: {
293
357
  httpHeaderAccept?: 'application/json';
294
358
  context?: HttpContext;
295
359
  transferCache?: boolean;
@@ -332,8 +396,10 @@ declare class DashboardService extends BaseService {
332
396
  constructor(httpClient: HttpClient, basePath: string | string[], configuration?: Configuration);
333
397
  /**
334
398
  * Get active shipments statistics
399
+ * @endpoint get /myseko/dashboard/active-shipments
335
400
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
336
401
  * @param reportProgress flag to report request and response progress.
402
+ * @param options additional options
337
403
  */
338
404
  getActiveShipments(observe?: 'body', reportProgress?: boolean, options?: {
339
405
  httpHeaderAccept?: 'application/json';
@@ -352,8 +418,10 @@ declare class DashboardService extends BaseService {
352
418
  }): Observable<HttpEvent<ActiveShipment>>;
353
419
  /**
354
420
  * Get deliveries today statistics
421
+ * @endpoint get /myseko/dashboard/deliveries-today
355
422
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
356
423
  * @param reportProgress flag to report request and response progress.
424
+ * @param options additional options
357
425
  */
358
426
  getDeliveriesToday(observe?: 'body', reportProgress?: boolean, options?: {
359
427
  httpHeaderAccept?: 'application/json';
@@ -379,8 +447,10 @@ declare class HealthService extends BaseService {
379
447
  constructor(httpClient: HttpClient, basePath: string | string[], configuration?: Configuration);
380
448
  /**
381
449
  * Api health check
450
+ * @endpoint get /health
382
451
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
383
452
  * @param reportProgress flag to report request and response progress.
453
+ * @param options additional options
384
454
  */
385
455
  getHealth(observe?: 'body', reportProgress?: boolean, options?: {
386
456
  httpHeaderAccept?: 'text/plain' | 'application/json';
@@ -435,10 +505,12 @@ declare class SettingsService extends BaseService {
435
505
  constructor(httpClient: HttpClient, basePath: string | string[], configuration?: Configuration);
436
506
  /**
437
507
  * Delete a specific setting by group and key
508
+ * @endpoint delete /users/me/settings/groups/{group}/{key}
438
509
  * @param key
439
510
  * @param group
440
511
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
441
512
  * @param reportProgress flag to report request and response progress.
513
+ * @param options additional options
442
514
  */
443
515
  deleteSettingByGroupAndKey(key: string, group: string, observe?: 'body', reportProgress?: boolean, options?: {
444
516
  httpHeaderAccept?: undefined;
@@ -457,9 +529,11 @@ declare class SettingsService extends BaseService {
457
529
  }): Observable<HttpEvent<any>>;
458
530
  /**
459
531
  * Delete a specific setting by key
532
+ * @endpoint delete /users/me/settings/{key}
460
533
  * @param key
461
534
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
462
535
  * @param reportProgress flag to report request and response progress.
536
+ * @param options additional options
463
537
  */
464
538
  deleteSettingByKey(key: string, observe?: 'body', reportProgress?: boolean, options?: {
465
539
  httpHeaderAccept?: undefined;
@@ -478,10 +552,12 @@ declare class SettingsService extends BaseService {
478
552
  }): Observable<HttpEvent<any>>;
479
553
  /**
480
554
  * Get a specific setting by group and key
555
+ * @endpoint get /users/me/settings/groups/{group}/{key}
481
556
  * @param key
482
557
  * @param group
483
558
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
484
559
  * @param reportProgress flag to report request and response progress.
560
+ * @param options additional options
485
561
  */
486
562
  getSettingByGroupAndKey(key: string, group: string, observe?: 'body', reportProgress?: boolean, options?: {
487
563
  httpHeaderAccept?: 'application/json';
@@ -500,9 +576,11 @@ declare class SettingsService extends BaseService {
500
576
  }): Observable<HttpEvent<SettingValue>>;
501
577
  /**
502
578
  * Get a specific setting by key
579
+ * @endpoint get /users/me/settings/{key}
503
580
  * @param key
504
581
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
505
582
  * @param reportProgress flag to report request and response progress.
583
+ * @param options additional options
506
584
  */
507
585
  getSettingByKey(key: string, observe?: 'body', reportProgress?: boolean, options?: {
508
586
  httpHeaderAccept?: 'application/json';
@@ -521,9 +599,11 @@ declare class SettingsService extends BaseService {
521
599
  }): Observable<HttpEvent<SettingValue>>;
522
600
  /**
523
601
  * Get settings by group
602
+ * @endpoint get /users/me/settings/groups/{group}
524
603
  * @param group
525
604
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
526
605
  * @param reportProgress flag to report request and response progress.
606
+ * @param options additional options
527
607
  */
528
608
  getSettingsByGroup(group: string, observe?: 'body', reportProgress?: boolean, options?: {
529
609
  httpHeaderAccept?: 'application/json';
@@ -542,10 +622,12 @@ declare class SettingsService extends BaseService {
542
622
  }): Observable<HttpEvent<Array<SettingView>>>;
543
623
  /**
544
624
  * Create or update a specific setting by key
625
+ * @endpoint put /users/me/settings/{key}
545
626
  * @param key
546
627
  * @param settingValue
547
628
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
548
629
  * @param reportProgress flag to report request and response progress.
630
+ * @param options additional options
549
631
  */
550
632
  setSettingByKey(key: string, settingValue: SettingValue, observe?: 'body', reportProgress?: boolean, options?: {
551
633
  httpHeaderAccept?: 'application/json';
@@ -937,9 +1019,11 @@ declare class ShipmentService extends BaseService {
937
1019
  constructor(httpClient: HttpClient, basePath: string | string[], configuration?: Configuration);
938
1020
  /**
939
1021
  * Get shipment package details by ordOrderID
1022
+ * @endpoint get /myseko/shipments/{ordOrderID}/package-details
940
1023
  * @param ordOrderID
941
1024
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
942
1025
  * @param reportProgress flag to report request and response progress.
1026
+ * @param options additional options
943
1027
  */
944
1028
  getShipmentPackageDetails(ordOrderID: string, observe?: 'body', reportProgress?: boolean, options?: {
945
1029
  httpHeaderAccept?: 'application/json';
@@ -958,9 +1042,11 @@ declare class ShipmentService extends BaseService {
958
1042
  }): Observable<HttpEvent<PackageDetails>>;
959
1043
  /**
960
1044
  * Get shipment purchase order details by ordOrderID
1045
+ * @endpoint get /myseko/shipments/{ordOrderID}/purchase-order-details
961
1046
  * @param ordOrderID
962
1047
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
963
1048
  * @param reportProgress flag to report request and response progress.
1049
+ * @param options additional options
964
1050
  */
965
1051
  getShipmentPurchaseOrderDetails(ordOrderID: string, observe?: 'body', reportProgress?: boolean, options?: {
966
1052
  httpHeaderAccept?: 'application/json';
@@ -979,9 +1065,11 @@ declare class ShipmentService extends BaseService {
979
1065
  }): Observable<HttpEvent<ShipmentPurchaseOrderDetails>>;
980
1066
  /**
981
1067
  * Get shipment summary by ordOrderID
1068
+ * @endpoint get /myseko/shipments/{ordOrderID}/summary
982
1069
  * @param ordOrderID
983
1070
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
984
1071
  * @param reportProgress flag to report request and response progress.
1072
+ * @param options additional options
985
1073
  */
986
1074
  getShipmentSummary(ordOrderID: string, observe?: 'body', reportProgress?: boolean, options?: {
987
1075
  httpHeaderAccept?: 'application/json';
@@ -1000,9 +1088,11 @@ declare class ShipmentService extends BaseService {
1000
1088
  }): Observable<HttpEvent<ShipmentSummary>>;
1001
1089
  /**
1002
1090
  * Get shipment timeline events by ordOrderID
1091
+ * @endpoint get /myseko/shipments/{ordOrderID}/timeline
1003
1092
  * @param ordOrderID
1004
1093
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
1005
1094
  * @param reportProgress flag to report request and response progress.
1095
+ * @param options additional options
1006
1096
  */
1007
1097
  getShipmentTimeline(ordOrderID: string, observe?: 'body', reportProgress?: boolean, options?: {
1008
1098
  httpHeaderAccept?: 'application/json';
@@ -1021,12 +1111,14 @@ declare class ShipmentService extends BaseService {
1021
1111
  }): Observable<HttpEvent<ShipmentTimeline>>;
1022
1112
  /**
1023
1113
  * Get all shipments
1114
+ * @endpoint get /myseko/shipments
1024
1115
  * @param $skip
1025
1116
  * @param $top
1026
1117
  * @param $orderby
1027
1118
  * @param $filter
1028
1119
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
1029
1120
  * @param reportProgress flag to report request and response progress.
1121
+ * @param options additional options
1030
1122
  */
1031
1123
  getShipments($skip?: number, $top?: number, $orderby?: string, $filter?: string, observe?: 'body', reportProgress?: boolean, options?: {
1032
1124
  httpHeaderAccept?: 'application/json';
@@ -1045,6 +1137,7 @@ declare class ShipmentService extends BaseService {
1045
1137
  }): Observable<HttpEvent<Shipments>>;
1046
1138
  /**
1047
1139
  * Get all shipments
1140
+ * @endpoint get /myseko/shipments/search
1048
1141
  * @param $skip
1049
1142
  * @param $top
1050
1143
  * @param $orderby
@@ -1052,6 +1145,7 @@ declare class ShipmentService extends BaseService {
1052
1145
  * @param searchTerm
1053
1146
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
1054
1147
  * @param reportProgress flag to report request and response progress.
1148
+ * @param options additional options
1055
1149
  */
1056
1150
  getShipmentsWithSearch($skip?: number, $top?: number, $orderby?: string, $filter?: string, searchTerm?: string, observe?: 'body', reportProgress?: boolean, options?: {
1057
1151
  httpHeaderAccept?: 'application/json';
@@ -1127,8 +1221,10 @@ declare class UserService extends BaseService {
1127
1221
  constructor(httpClient: HttpClient, basePath: string | string[], configuration?: Configuration);
1128
1222
  /**
1129
1223
  * Get current user information
1224
+ * @endpoint get /myseko/users/me
1130
1225
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
1131
1226
  * @param reportProgress flag to report request and response progress.
1227
+ * @param options additional options
1132
1228
  */
1133
1229
  getUser(observe?: 'body', reportProgress?: boolean, options?: {
1134
1230
  httpHeaderAccept?: 'application/json';
@@ -1154,8 +1250,10 @@ declare class UsergroupService extends BaseService {
1154
1250
  constructor(httpClient: HttpClient, basePath: string | string[], configuration?: Configuration);
1155
1251
  /**
1156
1252
  * Get user group for current user
1253
+ * @endpoint get /myseko/users/me/group
1157
1254
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
1158
1255
  * @param reportProgress flag to report request and response progress.
1256
+ * @param options additional options
1159
1257
  */
1160
1258
  getUserGroup(observe?: 'body', reportProgress?: boolean, options?: {
1161
1259
  httpHeaderAccept?: 'application/json';
@@ -1174,9 +1272,11 @@ declare class UsergroupService extends BaseService {
1174
1272
  }): Observable<HttpEvent<RegGroup>>;
1175
1273
  /**
1176
1274
  * Set user group for current user
1275
+ * @endpoint patch /myseko/users/me/group
1177
1276
  * @param regGroupID
1178
1277
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
1179
1278
  * @param reportProgress flag to report request and response progress.
1279
+ * @param options additional options
1180
1280
  */
1181
1281
  setUserGroup(regGroupID: string, observe?: 'body', reportProgress?: boolean, options?: {
1182
1282
  httpHeaderAccept?: undefined;