@munchi_oy/core 1.5.12 → 1.6.0

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/generated/api.ts CHANGED
@@ -2807,6 +2807,21 @@ export interface ConnectTerminalDto {
2807
2807
  */
2808
2808
  'terminalHardwareId': string;
2809
2809
  }
2810
+ /**
2811
+ *
2812
+ * @export
2813
+ * @enum {string}
2814
+ */
2815
+
2816
+ export const ConsumptionType = {
2817
+ Delivery: 'DELIVERY',
2818
+ Pickup: 'PICKUP',
2819
+ DineIn: 'DINE_IN'
2820
+ } as const;
2821
+
2822
+ export type ConsumptionType = typeof ConsumptionType[keyof typeof ConsumptionType];
2823
+
2824
+
2810
2825
  /**
2811
2826
  *
2812
2827
  * @export
@@ -3617,6 +3632,22 @@ export const DiscountScope = {
3617
3632
  export type DiscountScope = typeof DiscountScope[keyof typeof DiscountScope];
3618
3633
 
3619
3634
 
3635
+ /**
3636
+ *
3637
+ * @export
3638
+ * @enum {string}
3639
+ */
3640
+
3641
+ export const DiscountSourceType = {
3642
+ Manual: 'MANUAL',
3643
+ Promotion: 'PROMOTION',
3644
+ Loyalty: 'LOYALTY',
3645
+ Campaign: 'CAMPAIGN'
3646
+ } as const;
3647
+
3648
+ export type DiscountSourceType = typeof DiscountSourceType[keyof typeof DiscountSourceType];
3649
+
3650
+
3620
3651
  /**
3621
3652
  *
3622
3653
  * @export
@@ -5227,6 +5258,395 @@ export interface ItemPriceDto {
5227
5258
  */
5228
5259
  'priceBreakdown': ItemPriceBreakdownDto;
5229
5260
  }
5261
+ /**
5262
+ *
5263
+ * @export
5264
+ * @interface KdsOrderDto
5265
+ */
5266
+ export interface KdsOrderDto {
5267
+ /**
5268
+ *
5269
+ * @type {string}
5270
+ * @memberof KdsOrderDto
5271
+ */
5272
+ 'id': string;
5273
+ /**
5274
+ *
5275
+ * @type {string}
5276
+ * @memberof KdsOrderDto
5277
+ */
5278
+ 'parentOrderId': string;
5279
+ /**
5280
+ *
5281
+ * @type {number}
5282
+ * @memberof KdsOrderDto
5283
+ */
5284
+ 'businessId': number;
5285
+ /**
5286
+ *
5287
+ * @type {string}
5288
+ * @memberof KdsOrderDto
5289
+ */
5290
+ 'profileId': string;
5291
+ /**
5292
+ *
5293
+ * @type {string}
5294
+ * @memberof KdsOrderDto
5295
+ */
5296
+ 'profileName': string;
5297
+ /**
5298
+ *
5299
+ * @type {ProviderEnum}
5300
+ * @memberof KdsOrderDto
5301
+ */
5302
+ 'provider': ProviderEnum;
5303
+ /**
5304
+ *
5305
+ * @type {string}
5306
+ * @memberof KdsOrderDto
5307
+ */
5308
+ 'orderNumber': string;
5309
+ /**
5310
+ *
5311
+ * @type {string}
5312
+ * @memberof KdsOrderDto
5313
+ */
5314
+ 'comment': string | null;
5315
+ /**
5316
+ *
5317
+ * @type {number}
5318
+ * @memberof KdsOrderDto
5319
+ */
5320
+ 'preparedIn': number | null;
5321
+ /**
5322
+ *
5323
+ * @type {string}
5324
+ * @memberof KdsOrderDto
5325
+ */
5326
+ 'spotNumber': string | null;
5327
+ /**
5328
+ *
5329
+ * @type {string}
5330
+ * @memberof KdsOrderDto
5331
+ */
5332
+ 'acceptedAt': string | null;
5333
+ /**
5334
+ *
5335
+ * @type {string}
5336
+ * @memberof KdsOrderDto
5337
+ */
5338
+ 'pickupEta': string | null;
5339
+ /**
5340
+ *
5341
+ * @type {string}
5342
+ * @memberof KdsOrderDto
5343
+ */
5344
+ 'deliveryEta': string | null;
5345
+ /**
5346
+ *
5347
+ * @type {ConsumptionType}
5348
+ * @memberof KdsOrderDto
5349
+ */
5350
+ 'consumptionType': ConsumptionType;
5351
+ /**
5352
+ *
5353
+ * @type {string}
5354
+ * @memberof KdsOrderDto
5355
+ */
5356
+ 'orderCreatedAt': string;
5357
+ /**
5358
+ *
5359
+ * @type {string}
5360
+ * @memberof KdsOrderDto
5361
+ */
5362
+ 'orderUpdatedAt': string;
5363
+ /**
5364
+ *
5365
+ * @type {OrderType}
5366
+ * @memberof KdsOrderDto
5367
+ */
5368
+ 'type': OrderType;
5369
+ /**
5370
+ *
5371
+ * @type {OrderMode}
5372
+ * @memberof KdsOrderDto
5373
+ */
5374
+ 'orderMode': OrderMode;
5375
+ /**
5376
+ *
5377
+ * @type {SourceType}
5378
+ * @memberof KdsOrderDto
5379
+ */
5380
+ 'sourceType': SourceType;
5381
+ /**
5382
+ *
5383
+ * @type {OrderStatus}
5384
+ * @memberof KdsOrderDto
5385
+ */
5386
+ 'status': OrderStatus;
5387
+ /**
5388
+ *
5389
+ * @type {string}
5390
+ * @memberof KdsOrderDto
5391
+ */
5392
+ 'createdAt': string;
5393
+ /**
5394
+ *
5395
+ * @type {string}
5396
+ * @memberof KdsOrderDto
5397
+ */
5398
+ 'updatedAt': string;
5399
+ /**
5400
+ *
5401
+ * @type {Array<KdsOrderItemDto>}
5402
+ * @memberof KdsOrderDto
5403
+ */
5404
+ 'items': Array<KdsOrderItemDto>;
5405
+ }
5406
+
5407
+
5408
+ /**
5409
+ *
5410
+ * @export
5411
+ * @interface KdsOrderItemDto
5412
+ */
5413
+ export interface KdsOrderItemDto {
5414
+ /**
5415
+ *
5416
+ * @type {string}
5417
+ * @memberof KdsOrderItemDto
5418
+ */
5419
+ 'id': string;
5420
+ /**
5421
+ *
5422
+ * @type {string}
5423
+ * @memberof KdsOrderItemDto
5424
+ */
5425
+ 'orderId': string;
5426
+ /**
5427
+ *
5428
+ * @type {string}
5429
+ * @memberof KdsOrderItemDto
5430
+ */
5431
+ 'externalProductId': string;
5432
+ /**
5433
+ *
5434
+ * @type {string}
5435
+ * @memberof KdsOrderItemDto
5436
+ */
5437
+ 'name': string;
5438
+ /**
5439
+ *
5440
+ * @type {number}
5441
+ * @memberof KdsOrderItemDto
5442
+ */
5443
+ 'quantity': number;
5444
+ /**
5445
+ *
5446
+ * @type {number}
5447
+ * @memberof KdsOrderItemDto
5448
+ */
5449
+ 'unitPrice': number;
5450
+ /**
5451
+ *
5452
+ * @type {number}
5453
+ * @memberof KdsOrderItemDto
5454
+ */
5455
+ 'paidPrice': number;
5456
+ /**
5457
+ *
5458
+ * @type {string}
5459
+ * @memberof KdsOrderItemDto
5460
+ */
5461
+ 'comment': string | null;
5462
+ /**
5463
+ *
5464
+ * @type {KitchenItemStatus}
5465
+ * @memberof KdsOrderItemDto
5466
+ */
5467
+ 'kitchenStatus': KitchenItemStatus;
5468
+ /**
5469
+ *
5470
+ * @type {string}
5471
+ * @memberof KdsOrderItemDto
5472
+ */
5473
+ 'createdAt': string;
5474
+ /**
5475
+ *
5476
+ * @type {string}
5477
+ * @memberof KdsOrderItemDto
5478
+ */
5479
+ 'updatedAt': string;
5480
+ /**
5481
+ *
5482
+ * @type {Array<KdsOrderOptionDto>}
5483
+ * @memberof KdsOrderItemDto
5484
+ */
5485
+ 'options': Array<KdsOrderOptionDto>;
5486
+ }
5487
+
5488
+
5489
+ /**
5490
+ *
5491
+ * @export
5492
+ * @interface KdsOrderOptionDto
5493
+ */
5494
+ export interface KdsOrderOptionDto {
5495
+ /**
5496
+ *
5497
+ * @type {string}
5498
+ * @memberof KdsOrderOptionDto
5499
+ */
5500
+ 'id': string;
5501
+ /**
5502
+ *
5503
+ * @type {string}
5504
+ * @memberof KdsOrderOptionDto
5505
+ */
5506
+ 'orderItemId': string;
5507
+ /**
5508
+ *
5509
+ * @type {string}
5510
+ * @memberof KdsOrderOptionDto
5511
+ */
5512
+ 'externalId': string;
5513
+ /**
5514
+ *
5515
+ * @type {string}
5516
+ * @memberof KdsOrderOptionDto
5517
+ */
5518
+ 'name': string;
5519
+ /**
5520
+ *
5521
+ * @type {string}
5522
+ * @memberof KdsOrderOptionDto
5523
+ */
5524
+ 'image': string | null;
5525
+ /**
5526
+ *
5527
+ * @type {string}
5528
+ * @memberof KdsOrderOptionDto
5529
+ */
5530
+ 'createdAt': string;
5531
+ /**
5532
+ *
5533
+ * @type {string}
5534
+ * @memberof KdsOrderOptionDto
5535
+ */
5536
+ 'updatedAt': string;
5537
+ /**
5538
+ *
5539
+ * @type {Array<KdsOrderSubOptionDto>}
5540
+ * @memberof KdsOrderOptionDto
5541
+ */
5542
+ 'subOptions': Array<KdsOrderSubOptionDto>;
5543
+ }
5544
+ /**
5545
+ *
5546
+ * @export
5547
+ * @interface KdsOrderSubOptionDto
5548
+ */
5549
+ export interface KdsOrderSubOptionDto {
5550
+ /**
5551
+ *
5552
+ * @type {string}
5553
+ * @memberof KdsOrderSubOptionDto
5554
+ */
5555
+ 'id': string;
5556
+ /**
5557
+ *
5558
+ * @type {string}
5559
+ * @memberof KdsOrderSubOptionDto
5560
+ */
5561
+ 'orderOptionId': string;
5562
+ /**
5563
+ *
5564
+ * @type {string}
5565
+ * @memberof KdsOrderSubOptionDto
5566
+ */
5567
+ 'externalId': string;
5568
+ /**
5569
+ *
5570
+ * @type {string}
5571
+ * @memberof KdsOrderSubOptionDto
5572
+ */
5573
+ 'name': string;
5574
+ /**
5575
+ *
5576
+ * @type {number}
5577
+ * @memberof KdsOrderSubOptionDto
5578
+ */
5579
+ 'quantity': number;
5580
+ /**
5581
+ *
5582
+ * @type {number}
5583
+ * @memberof KdsOrderSubOptionDto
5584
+ */
5585
+ 'unitPrice': number;
5586
+ /**
5587
+ *
5588
+ * @type {number}
5589
+ * @memberof KdsOrderSubOptionDto
5590
+ */
5591
+ 'paidPrice': number;
5592
+ /**
5593
+ *
5594
+ * @type {string}
5595
+ * @memberof KdsOrderSubOptionDto
5596
+ */
5597
+ 'createdAt': string;
5598
+ /**
5599
+ *
5600
+ * @type {string}
5601
+ * @memberof KdsOrderSubOptionDto
5602
+ */
5603
+ 'updatedAt': string;
5604
+ }
5605
+ /**
5606
+ *
5607
+ * @export
5608
+ * @interface KdsPubSubPayloadDto
5609
+ */
5610
+ export interface KdsPubSubPayloadDto {
5611
+ /**
5612
+ *
5613
+ * @type {PubSubTarget}
5614
+ * @memberof KdsPubSubPayloadDto
5615
+ */
5616
+ 'target': PubSubTarget;
5617
+ /**
5618
+ *
5619
+ * @type {ProviderEnum}
5620
+ * @memberof KdsPubSubPayloadDto
5621
+ */
5622
+ 'provider': ProviderEnum;
5623
+ /**
5624
+ *
5625
+ * @type {number}
5626
+ * @memberof KdsPubSubPayloadDto
5627
+ */
5628
+ 'businessId': number;
5629
+ /**
5630
+ *
5631
+ * @type {PubSubAction}
5632
+ * @memberof KdsPubSubPayloadDto
5633
+ */
5634
+ 'action': PubSubAction;
5635
+ /**
5636
+ *
5637
+ * @type {string}
5638
+ * @memberof KdsPubSubPayloadDto
5639
+ */
5640
+ 'orderId': string;
5641
+ /**
5642
+ *
5643
+ * @type {SourceType}
5644
+ * @memberof KdsPubSubPayloadDto
5645
+ */
5646
+ 'type': SourceType;
5647
+ }
5648
+
5649
+
5230
5650
  /**
5231
5651
  *
5232
5652
  * @export
@@ -5288,6 +5708,26 @@ export interface KioskStatusDto {
5288
5708
  }
5289
5709
 
5290
5710
 
5711
+ /**
5712
+ *
5713
+ * @export
5714
+ * @enum {string}
5715
+ */
5716
+
5717
+ export const KitchenItemStatus = {
5718
+ NotApplicable: 'NOT_APPLICABLE',
5719
+ Pending: 'PENDING',
5720
+ OnHold: 'ON_HOLD',
5721
+ SentToOm: 'SENT_TO_OM',
5722
+ DispatchedToKitchen: 'DISPATCHED_TO_KITCHEN',
5723
+ Completed: 'COMPLETED',
5724
+ Cancelled: 'CANCELLED',
5725
+ Ready: 'READY'
5726
+ } as const;
5727
+
5728
+ export type KitchenItemStatus = typeof KitchenItemStatus[keyof typeof KitchenItemStatus];
5729
+
5730
+
5291
5731
  /**
5292
5732
  *
5293
5733
  * @export
@@ -7590,6 +8030,20 @@ export interface OrderHistoryResponseDtoSummary {
7590
8030
  */
7591
8031
  'totalTipAmount'?: number;
7592
8032
  }
8033
+ /**
8034
+ *
8035
+ * @export
8036
+ * @enum {string}
8037
+ */
8038
+
8039
+ export const OrderMode = {
8040
+ Instant: 'INSTANT',
8041
+ PreOrder: 'PRE_ORDER'
8042
+ } as const;
8043
+
8044
+ export type OrderMode = typeof OrderMode[keyof typeof OrderMode];
8045
+
8046
+
7593
8047
  /**
7594
8048
  *
7595
8049
  * @export
@@ -8015,6 +8469,22 @@ export const OrderSource = {
8015
8469
  export type OrderSource = typeof OrderSource[keyof typeof OrderSource];
8016
8470
 
8017
8471
 
8472
+ /**
8473
+ *
8474
+ * @export
8475
+ * @enum {string}
8476
+ */
8477
+
8478
+ export const OrderStatus = {
8479
+ InProgress: 'IN_PROGRESS',
8480
+ Ready: 'READY',
8481
+ Delivered: 'DELIVERED',
8482
+ Rejected: 'REJECTED'
8483
+ } as const;
8484
+
8485
+ export type OrderStatus = typeof OrderStatus[keyof typeof OrderStatus];
8486
+
8487
+
8018
8488
  /**
8019
8489
  *
8020
8490
  * @export
@@ -10202,19 +10672,37 @@ export interface PosDiscountDto {
10202
10672
  * @type {MoneyDto}
10203
10673
  * @memberof PosDiscountDto
10204
10674
  */
10205
- 'appliedAmount'?: MoneyDto;
10675
+ 'appliedAmount': MoneyDto | null;
10206
10676
  /**
10207
10677
  *
10208
10678
  * @type {PosDiscountTargetType}
10209
10679
  * @memberof PosDiscountDto
10210
10680
  */
10211
- 'targetType'?: PosDiscountTargetType | null;
10681
+ 'targetType': PosDiscountTargetType | null;
10682
+ /**
10683
+ *
10684
+ * @type {string}
10685
+ * @memberof PosDiscountDto
10686
+ */
10687
+ 'targetId': string | null;
10688
+ /**
10689
+ *
10690
+ * @type {DiscountSourceType}
10691
+ * @memberof PosDiscountDto
10692
+ */
10693
+ 'sourceType': DiscountSourceType;
10212
10694
  /**
10213
10695
  *
10214
10696
  * @type {string}
10215
10697
  * @memberof PosDiscountDto
10216
10698
  */
10217
- 'targetId'?: string | null;
10699
+ 'sourceId': string | null;
10700
+ /**
10701
+ *
10702
+ * @type {boolean}
10703
+ * @memberof PosDiscountDto
10704
+ */
10705
+ 'isAutomatic': boolean;
10218
10706
  }
10219
10707
 
10220
10708
 
@@ -12733,6 +13221,33 @@ export interface ProviderStatusResponseDto {
12733
13221
  }
12734
13222
 
12735
13223
 
13224
+ /**
13225
+ *
13226
+ * @export
13227
+ * @enum {string}
13228
+ */
13229
+
13230
+ export const PubSubAction = {
13231
+ Activity: 'ORDER_ACTIVITY',
13232
+ Deleted: 'ORDER_DELETED'
13233
+ } as const;
13234
+
13235
+ export type PubSubAction = typeof PubSubAction[keyof typeof PubSubAction];
13236
+
13237
+
13238
+ /**
13239
+ *
13240
+ * @export
13241
+ * @enum {string}
13242
+ */
13243
+
13244
+ export const PubSubTarget = {
13245
+ Kds: 'KDS'
13246
+ } as const;
13247
+
13248
+ export type PubSubTarget = typeof PubSubTarget[keyof typeof PubSubTarget];
13249
+
13250
+
12736
13251
  /**
12737
13252
  *
12738
13253
  * @export
@@ -13844,6 +14359,20 @@ export interface SingleProviderStatusResponseDtoActiveChannel {
13844
14359
  }
13845
14360
 
13846
14361
 
14362
+ /**
14363
+ *
14364
+ * @export
14365
+ * @enum {string}
14366
+ */
14367
+
14368
+ export const SourceType = {
14369
+ Order: 'ORDER',
14370
+ Ticket: 'TICKET'
14371
+ } as const;
14372
+
14373
+ export type SourceType = typeof SourceType[keyof typeof SourceType];
14374
+
14375
+
13847
14376
  /**
13848
14377
  *
13849
14378
  * @export
@@ -26120,6 +26649,144 @@ export class InvoiceCompaniesApi extends BaseAPI implements InvoiceCompaniesApiI
26120
26649
  }
26121
26650
 
26122
26651
 
26652
+ /**
26653
+ * KDSApi - axios parameter creator
26654
+ * @export
26655
+ */
26656
+ export const KDSApiAxiosParamCreator = function (configuration?: Configuration) {
26657
+ return {
26658
+ /**
26659
+ *
26660
+ * @summary Get KDS orders by status
26661
+ * @param {'IN_PROGRESS' | 'READY' | 'DELIVERED' | 'REJECTED'} status Order status filter
26662
+ * @param {string} profileId KDS Profile ID
26663
+ * @param {*} [options] Override http request option.
26664
+ * @throws {RequiredError}
26665
+ */
26666
+ kdsGetOrders: async (status: 'IN_PROGRESS' | 'READY' | 'DELIVERED' | 'REJECTED', profileId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
26667
+ // verify required parameter 'status' is not null or undefined
26668
+ assertParamExists('kdsGetOrders', 'status', status)
26669
+ // verify required parameter 'profileId' is not null or undefined
26670
+ assertParamExists('kdsGetOrders', 'profileId', profileId)
26671
+ const localVarPath = `/api/v1/kds/orders/{status}`
26672
+ .replace(`{${"status"}}`, encodeURIComponent(String(status)));
26673
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
26674
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
26675
+ let baseOptions;
26676
+ if (configuration) {
26677
+ baseOptions = configuration.baseOptions;
26678
+ }
26679
+
26680
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
26681
+ const localVarHeaderParameter = {} as any;
26682
+ const localVarQueryParameter = {} as any;
26683
+
26684
+ // authentication JWT-auth required
26685
+ // http bearer authentication required
26686
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
26687
+
26688
+ if (profileId !== undefined) {
26689
+ localVarQueryParameter['profileId'] = profileId;
26690
+ }
26691
+
26692
+
26693
+
26694
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
26695
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
26696
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
26697
+
26698
+ return {
26699
+ url: toPathString(localVarUrlObj),
26700
+ options: localVarRequestOptions,
26701
+ };
26702
+ },
26703
+ }
26704
+ };
26705
+
26706
+ /**
26707
+ * KDSApi - functional programming interface
26708
+ * @export
26709
+ */
26710
+ export const KDSApiFp = function(configuration?: Configuration) {
26711
+ const localVarAxiosParamCreator = KDSApiAxiosParamCreator(configuration)
26712
+ return {
26713
+ /**
26714
+ *
26715
+ * @summary Get KDS orders by status
26716
+ * @param {'IN_PROGRESS' | 'READY' | 'DELIVERED' | 'REJECTED'} status Order status filter
26717
+ * @param {string} profileId KDS Profile ID
26718
+ * @param {*} [options] Override http request option.
26719
+ * @throws {RequiredError}
26720
+ */
26721
+ async kdsGetOrders(status: 'IN_PROGRESS' | 'READY' | 'DELIVERED' | 'REJECTED', profileId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<KdsOrderDto>>> {
26722
+ const localVarAxiosArgs = await localVarAxiosParamCreator.kdsGetOrders(status, profileId, options);
26723
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
26724
+ },
26725
+ }
26726
+ };
26727
+
26728
+ /**
26729
+ * KDSApi - factory interface
26730
+ * @export
26731
+ */
26732
+ export const KDSApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
26733
+ const localVarFp = KDSApiFp(configuration)
26734
+ return {
26735
+ /**
26736
+ *
26737
+ * @summary Get KDS orders by status
26738
+ * @param {'IN_PROGRESS' | 'READY' | 'DELIVERED' | 'REJECTED'} status Order status filter
26739
+ * @param {string} profileId KDS Profile ID
26740
+ * @param {*} [options] Override http request option.
26741
+ * @throws {RequiredError}
26742
+ */
26743
+ kdsGetOrders(status: 'IN_PROGRESS' | 'READY' | 'DELIVERED' | 'REJECTED', profileId: string, options?: any): AxiosPromise<Array<KdsOrderDto>> {
26744
+ return localVarFp.kdsGetOrders(status, profileId, options).then((request) => request(axios, basePath));
26745
+ },
26746
+ };
26747
+ };
26748
+
26749
+ /**
26750
+ * KDSApi - interface
26751
+ * @export
26752
+ * @interface KDSApi
26753
+ */
26754
+ export interface KDSApiInterface {
26755
+ /**
26756
+ *
26757
+ * @summary Get KDS orders by status
26758
+ * @param {'IN_PROGRESS' | 'READY' | 'DELIVERED' | 'REJECTED'} status Order status filter
26759
+ * @param {string} profileId KDS Profile ID
26760
+ * @param {*} [options] Override http request option.
26761
+ * @throws {RequiredError}
26762
+ * @memberof KDSApiInterface
26763
+ */
26764
+ kdsGetOrders(status: 'IN_PROGRESS' | 'READY' | 'DELIVERED' | 'REJECTED', profileId: string, options?: AxiosRequestConfig): AxiosPromise<Array<KdsOrderDto>>;
26765
+
26766
+ }
26767
+
26768
+ /**
26769
+ * KDSApi - object-oriented interface
26770
+ * @export
26771
+ * @class KDSApi
26772
+ * @extends {BaseAPI}
26773
+ */
26774
+ export class KDSApi extends BaseAPI implements KDSApiInterface {
26775
+ /**
26776
+ *
26777
+ * @summary Get KDS orders by status
26778
+ * @param {'IN_PROGRESS' | 'READY' | 'DELIVERED' | 'REJECTED'} status Order status filter
26779
+ * @param {string} profileId KDS Profile ID
26780
+ * @param {*} [options] Override http request option.
26781
+ * @throws {RequiredError}
26782
+ * @memberof KDSApi
26783
+ */
26784
+ public kdsGetOrders(status: 'IN_PROGRESS' | 'READY' | 'DELIVERED' | 'REJECTED', profileId: string, options?: AxiosRequestConfig) {
26785
+ return KDSApiFp(this.configuration).kdsGetOrders(status, profileId, options).then((request) => request(this.axios, this.basePath));
26786
+ }
26787
+ }
26788
+
26789
+
26123
26790
  /**
26124
26791
  * KiosksApi - axios parameter creator
26125
26792
  * @export
@@ -27834,6 +28501,129 @@ export class NotificationApi extends BaseAPI implements NotificationApiInterface
27834
28501
  }
27835
28502
 
27836
28503
 
28504
+ /**
28505
+ * OrderInternalApi - axios parameter creator
28506
+ * @export
28507
+ */
28508
+ export const OrderInternalApiAxiosParamCreator = function (configuration?: Configuration) {
28509
+ return {
28510
+ /**
28511
+ *
28512
+ * @summary Get order data by external ID for internal microservice communication
28513
+ * @param {string} externalId
28514
+ * @param {*} [options] Override http request option.
28515
+ * @throws {RequiredError}
28516
+ */
28517
+ findOneByExternalId: async (externalId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
28518
+ // verify required parameter 'externalId' is not null or undefined
28519
+ assertParamExists('findOneByExternalId', 'externalId', externalId)
28520
+ const localVarPath = `/api/v1/orders/internal/{externalId}`
28521
+ .replace(`{${"externalId"}}`, encodeURIComponent(String(externalId)));
28522
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
28523
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
28524
+ let baseOptions;
28525
+ if (configuration) {
28526
+ baseOptions = configuration.baseOptions;
28527
+ }
28528
+
28529
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
28530
+ const localVarHeaderParameter = {} as any;
28531
+ const localVarQueryParameter = {} as any;
28532
+
28533
+
28534
+
28535
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
28536
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28537
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
28538
+
28539
+ return {
28540
+ url: toPathString(localVarUrlObj),
28541
+ options: localVarRequestOptions,
28542
+ };
28543
+ },
28544
+ }
28545
+ };
28546
+
28547
+ /**
28548
+ * OrderInternalApi - functional programming interface
28549
+ * @export
28550
+ */
28551
+ export const OrderInternalApiFp = function(configuration?: Configuration) {
28552
+ const localVarAxiosParamCreator = OrderInternalApiAxiosParamCreator(configuration)
28553
+ return {
28554
+ /**
28555
+ *
28556
+ * @summary Get order data by external ID for internal microservice communication
28557
+ * @param {string} externalId
28558
+ * @param {*} [options] Override http request option.
28559
+ * @throws {RequiredError}
28560
+ */
28561
+ async findOneByExternalId(externalId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
28562
+ const localVarAxiosArgs = await localVarAxiosParamCreator.findOneByExternalId(externalId, options);
28563
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
28564
+ },
28565
+ }
28566
+ };
28567
+
28568
+ /**
28569
+ * OrderInternalApi - factory interface
28570
+ * @export
28571
+ */
28572
+ export const OrderInternalApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
28573
+ const localVarFp = OrderInternalApiFp(configuration)
28574
+ return {
28575
+ /**
28576
+ *
28577
+ * @summary Get order data by external ID for internal microservice communication
28578
+ * @param {string} externalId
28579
+ * @param {*} [options] Override http request option.
28580
+ * @throws {RequiredError}
28581
+ */
28582
+ findOneByExternalId(externalId: string, options?: any): AxiosPromise<void> {
28583
+ return localVarFp.findOneByExternalId(externalId, options).then((request) => request(axios, basePath));
28584
+ },
28585
+ };
28586
+ };
28587
+
28588
+ /**
28589
+ * OrderInternalApi - interface
28590
+ * @export
28591
+ * @interface OrderInternalApi
28592
+ */
28593
+ export interface OrderInternalApiInterface {
28594
+ /**
28595
+ *
28596
+ * @summary Get order data by external ID for internal microservice communication
28597
+ * @param {string} externalId
28598
+ * @param {*} [options] Override http request option.
28599
+ * @throws {RequiredError}
28600
+ * @memberof OrderInternalApiInterface
28601
+ */
28602
+ findOneByExternalId(externalId: string, options?: AxiosRequestConfig): AxiosPromise<void>;
28603
+
28604
+ }
28605
+
28606
+ /**
28607
+ * OrderInternalApi - object-oriented interface
28608
+ * @export
28609
+ * @class OrderInternalApi
28610
+ * @extends {BaseAPI}
28611
+ */
28612
+ export class OrderInternalApi extends BaseAPI implements OrderInternalApiInterface {
28613
+ /**
28614
+ *
28615
+ * @summary Get order data by external ID for internal microservice communication
28616
+ * @param {string} externalId
28617
+ * @param {*} [options] Override http request option.
28618
+ * @throws {RequiredError}
28619
+ * @memberof OrderInternalApi
28620
+ */
28621
+ public findOneByExternalId(externalId: string, options?: AxiosRequestConfig) {
28622
+ return OrderInternalApiFp(this.configuration).findOneByExternalId(externalId, options).then((request) => request(this.axios, this.basePath));
28623
+ }
28624
+ }
28625
+
28626
+
27837
28627
  /**
27838
28628
  * OrderingCoApi - axios parameter creator
27839
28629
  * @export