@munchi_oy/core 1.5.12 → 1.7.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
@@ -956,6 +956,61 @@ export interface BusinessInfoResponseDtoLoyaltyPlan {
956
956
  */
957
957
  'expire_after_minutes': number | null;
958
958
  }
959
+ /**
960
+ *
961
+ * @export
962
+ * @interface BusinessInfoV2ResponseDto
963
+ */
964
+ export interface BusinessInfoV2ResponseDto {
965
+ /**
966
+ * The ID of the business
967
+ * @type {number}
968
+ * @memberof BusinessInfoV2ResponseDto
969
+ */
970
+ 'businessId': number;
971
+ /**
972
+ * The name of the business
973
+ * @type {string}
974
+ * @memberof BusinessInfoV2ResponseDto
975
+ */
976
+ 'businessName': string;
977
+ /**
978
+ * The URL of the business logo
979
+ * @type {string}
980
+ * @memberof BusinessInfoV2ResponseDto
981
+ */
982
+ 'logoUrl': string | null;
983
+ /**
984
+ * The phone of the business
985
+ * @type {string}
986
+ * @memberof BusinessInfoV2ResponseDto
987
+ */
988
+ 'phone'?: string | null;
989
+ /**
990
+ *
991
+ * @type {BusinessInfoResponseDtoLoyaltyPlan}
992
+ * @memberof BusinessInfoV2ResponseDto
993
+ */
994
+ 'loyaltyPlan': BusinessInfoResponseDtoLoyaltyPlan | null;
995
+ /**
996
+ *
997
+ * @type {BusinessInfoResponseDtoDetail}
998
+ * @memberof BusinessInfoV2ResponseDto
999
+ */
1000
+ 'detail': BusinessInfoResponseDtoDetail;
1001
+ /**
1002
+ * Email address of the business
1003
+ * @type {string}
1004
+ * @memberof BusinessInfoV2ResponseDto
1005
+ */
1006
+ 'businessEmail': string | null;
1007
+ /**
1008
+ * KDS profiles linked to the business
1009
+ * @type {Array<KdsProfileResponseDto>}
1010
+ * @memberof BusinessInfoV2ResponseDto
1011
+ */
1012
+ 'kdsProfiles': Array<KdsProfileResponseDto>;
1013
+ }
959
1014
  /**
960
1015
  *
961
1016
  * @export
@@ -2807,6 +2862,21 @@ export interface ConnectTerminalDto {
2807
2862
  */
2808
2863
  'terminalHardwareId': string;
2809
2864
  }
2865
+ /**
2866
+ *
2867
+ * @export
2868
+ * @enum {string}
2869
+ */
2870
+
2871
+ export const ConsumptionType = {
2872
+ Delivery: 'DELIVERY',
2873
+ Pickup: 'PICKUP',
2874
+ DineIn: 'DINE_IN'
2875
+ } as const;
2876
+
2877
+ export type ConsumptionType = typeof ConsumptionType[keyof typeof ConsumptionType];
2878
+
2879
+
2810
2880
  /**
2811
2881
  *
2812
2882
  * @export
@@ -3617,6 +3687,22 @@ export const DiscountScope = {
3617
3687
  export type DiscountScope = typeof DiscountScope[keyof typeof DiscountScope];
3618
3688
 
3619
3689
 
3690
+ /**
3691
+ *
3692
+ * @export
3693
+ * @enum {string}
3694
+ */
3695
+
3696
+ export const DiscountSourceType = {
3697
+ Manual: 'MANUAL',
3698
+ Promotion: 'PROMOTION',
3699
+ Loyalty: 'LOYALTY',
3700
+ Campaign: 'CAMPAIGN'
3701
+ } as const;
3702
+
3703
+ export type DiscountSourceType = typeof DiscountSourceType[keyof typeof DiscountSourceType];
3704
+
3705
+
3620
3706
  /**
3621
3707
  *
3622
3708
  * @export
@@ -5227,6 +5313,414 @@ export interface ItemPriceDto {
5227
5313
  */
5228
5314
  'priceBreakdown': ItemPriceBreakdownDto;
5229
5315
  }
5316
+ /**
5317
+ *
5318
+ * @export
5319
+ * @interface KdsOrderDto
5320
+ */
5321
+ export interface KdsOrderDto {
5322
+ /**
5323
+ *
5324
+ * @type {string}
5325
+ * @memberof KdsOrderDto
5326
+ */
5327
+ 'id': string;
5328
+ /**
5329
+ *
5330
+ * @type {string}
5331
+ * @memberof KdsOrderDto
5332
+ */
5333
+ 'parentOrderId': string;
5334
+ /**
5335
+ *
5336
+ * @type {number}
5337
+ * @memberof KdsOrderDto
5338
+ */
5339
+ 'businessId': number;
5340
+ /**
5341
+ *
5342
+ * @type {string}
5343
+ * @memberof KdsOrderDto
5344
+ */
5345
+ 'profileId': string;
5346
+ /**
5347
+ *
5348
+ * @type {string}
5349
+ * @memberof KdsOrderDto
5350
+ */
5351
+ 'profileName': string;
5352
+ /**
5353
+ *
5354
+ * @type {ProviderEnum}
5355
+ * @memberof KdsOrderDto
5356
+ */
5357
+ 'provider': ProviderEnum;
5358
+ /**
5359
+ *
5360
+ * @type {string}
5361
+ * @memberof KdsOrderDto
5362
+ */
5363
+ 'orderNumber': string;
5364
+ /**
5365
+ *
5366
+ * @type {string}
5367
+ * @memberof KdsOrderDto
5368
+ */
5369
+ 'comment': string | null;
5370
+ /**
5371
+ *
5372
+ * @type {number}
5373
+ * @memberof KdsOrderDto
5374
+ */
5375
+ 'preparedIn': number | null;
5376
+ /**
5377
+ *
5378
+ * @type {string}
5379
+ * @memberof KdsOrderDto
5380
+ */
5381
+ 'spotNumber': string | null;
5382
+ /**
5383
+ *
5384
+ * @type {string}
5385
+ * @memberof KdsOrderDto
5386
+ */
5387
+ 'acceptedAt': string | null;
5388
+ /**
5389
+ *
5390
+ * @type {string}
5391
+ * @memberof KdsOrderDto
5392
+ */
5393
+ 'pickupEta': string | null;
5394
+ /**
5395
+ *
5396
+ * @type {string}
5397
+ * @memberof KdsOrderDto
5398
+ */
5399
+ 'deliveryEta': string | null;
5400
+ /**
5401
+ *
5402
+ * @type {ConsumptionType}
5403
+ * @memberof KdsOrderDto
5404
+ */
5405
+ 'consumptionType': ConsumptionType;
5406
+ /**
5407
+ *
5408
+ * @type {string}
5409
+ * @memberof KdsOrderDto
5410
+ */
5411
+ 'orderCreatedAt': string;
5412
+ /**
5413
+ *
5414
+ * @type {string}
5415
+ * @memberof KdsOrderDto
5416
+ */
5417
+ 'orderUpdatedAt': string;
5418
+ /**
5419
+ *
5420
+ * @type {OrderType}
5421
+ * @memberof KdsOrderDto
5422
+ */
5423
+ 'type': OrderType;
5424
+ /**
5425
+ *
5426
+ * @type {OrderMode}
5427
+ * @memberof KdsOrderDto
5428
+ */
5429
+ 'orderMode': OrderMode;
5430
+ /**
5431
+ *
5432
+ * @type {SourceType}
5433
+ * @memberof KdsOrderDto
5434
+ */
5435
+ 'sourceType': SourceType;
5436
+ /**
5437
+ *
5438
+ * @type {OrderStatus}
5439
+ * @memberof KdsOrderDto
5440
+ */
5441
+ 'status': OrderStatus;
5442
+ /**
5443
+ *
5444
+ * @type {string}
5445
+ * @memberof KdsOrderDto
5446
+ */
5447
+ 'createdAt': string;
5448
+ /**
5449
+ *
5450
+ * @type {string}
5451
+ * @memberof KdsOrderDto
5452
+ */
5453
+ 'updatedAt': string;
5454
+ /**
5455
+ *
5456
+ * @type {Array<KdsOrderItemDto>}
5457
+ * @memberof KdsOrderDto
5458
+ */
5459
+ 'items': Array<KdsOrderItemDto>;
5460
+ }
5461
+
5462
+
5463
+ /**
5464
+ *
5465
+ * @export
5466
+ * @interface KdsOrderItemDto
5467
+ */
5468
+ export interface KdsOrderItemDto {
5469
+ /**
5470
+ *
5471
+ * @type {string}
5472
+ * @memberof KdsOrderItemDto
5473
+ */
5474
+ 'id': string;
5475
+ /**
5476
+ *
5477
+ * @type {string}
5478
+ * @memberof KdsOrderItemDto
5479
+ */
5480
+ 'orderId': string;
5481
+ /**
5482
+ *
5483
+ * @type {string}
5484
+ * @memberof KdsOrderItemDto
5485
+ */
5486
+ 'externalProductId': string;
5487
+ /**
5488
+ *
5489
+ * @type {string}
5490
+ * @memberof KdsOrderItemDto
5491
+ */
5492
+ 'name': string;
5493
+ /**
5494
+ *
5495
+ * @type {number}
5496
+ * @memberof KdsOrderItemDto
5497
+ */
5498
+ 'quantity': number;
5499
+ /**
5500
+ *
5501
+ * @type {number}
5502
+ * @memberof KdsOrderItemDto
5503
+ */
5504
+ 'unitPrice': number;
5505
+ /**
5506
+ *
5507
+ * @type {number}
5508
+ * @memberof KdsOrderItemDto
5509
+ */
5510
+ 'paidPrice': number;
5511
+ /**
5512
+ *
5513
+ * @type {string}
5514
+ * @memberof KdsOrderItemDto
5515
+ */
5516
+ 'comment': string | null;
5517
+ /**
5518
+ *
5519
+ * @type {KitchenItemStatus}
5520
+ * @memberof KdsOrderItemDto
5521
+ */
5522
+ 'kitchenStatus': KitchenItemStatus;
5523
+ /**
5524
+ *
5525
+ * @type {string}
5526
+ * @memberof KdsOrderItemDto
5527
+ */
5528
+ 'createdAt': string;
5529
+ /**
5530
+ *
5531
+ * @type {string}
5532
+ * @memberof KdsOrderItemDto
5533
+ */
5534
+ 'updatedAt': string;
5535
+ /**
5536
+ *
5537
+ * @type {Array<KdsOrderOptionDto>}
5538
+ * @memberof KdsOrderItemDto
5539
+ */
5540
+ 'options': Array<KdsOrderOptionDto>;
5541
+ }
5542
+
5543
+
5544
+ /**
5545
+ *
5546
+ * @export
5547
+ * @interface KdsOrderOptionDto
5548
+ */
5549
+ export interface KdsOrderOptionDto {
5550
+ /**
5551
+ *
5552
+ * @type {string}
5553
+ * @memberof KdsOrderOptionDto
5554
+ */
5555
+ 'id': string;
5556
+ /**
5557
+ *
5558
+ * @type {string}
5559
+ * @memberof KdsOrderOptionDto
5560
+ */
5561
+ 'orderItemId': string;
5562
+ /**
5563
+ *
5564
+ * @type {string}
5565
+ * @memberof KdsOrderOptionDto
5566
+ */
5567
+ 'externalId': string;
5568
+ /**
5569
+ *
5570
+ * @type {string}
5571
+ * @memberof KdsOrderOptionDto
5572
+ */
5573
+ 'name': string;
5574
+ /**
5575
+ *
5576
+ * @type {string}
5577
+ * @memberof KdsOrderOptionDto
5578
+ */
5579
+ 'image': string | null;
5580
+ /**
5581
+ *
5582
+ * @type {string}
5583
+ * @memberof KdsOrderOptionDto
5584
+ */
5585
+ 'createdAt': string;
5586
+ /**
5587
+ *
5588
+ * @type {string}
5589
+ * @memberof KdsOrderOptionDto
5590
+ */
5591
+ 'updatedAt': string;
5592
+ /**
5593
+ *
5594
+ * @type {Array<KdsOrderSubOptionDto>}
5595
+ * @memberof KdsOrderOptionDto
5596
+ */
5597
+ 'subOptions': Array<KdsOrderSubOptionDto>;
5598
+ }
5599
+ /**
5600
+ *
5601
+ * @export
5602
+ * @interface KdsOrderSubOptionDto
5603
+ */
5604
+ export interface KdsOrderSubOptionDto {
5605
+ /**
5606
+ *
5607
+ * @type {string}
5608
+ * @memberof KdsOrderSubOptionDto
5609
+ */
5610
+ 'id': string;
5611
+ /**
5612
+ *
5613
+ * @type {string}
5614
+ * @memberof KdsOrderSubOptionDto
5615
+ */
5616
+ 'orderOptionId': string;
5617
+ /**
5618
+ *
5619
+ * @type {string}
5620
+ * @memberof KdsOrderSubOptionDto
5621
+ */
5622
+ 'externalId': string;
5623
+ /**
5624
+ *
5625
+ * @type {string}
5626
+ * @memberof KdsOrderSubOptionDto
5627
+ */
5628
+ 'name': string;
5629
+ /**
5630
+ *
5631
+ * @type {number}
5632
+ * @memberof KdsOrderSubOptionDto
5633
+ */
5634
+ 'quantity': number;
5635
+ /**
5636
+ *
5637
+ * @type {number}
5638
+ * @memberof KdsOrderSubOptionDto
5639
+ */
5640
+ 'unitPrice': number;
5641
+ /**
5642
+ *
5643
+ * @type {number}
5644
+ * @memberof KdsOrderSubOptionDto
5645
+ */
5646
+ 'paidPrice': number;
5647
+ /**
5648
+ *
5649
+ * @type {string}
5650
+ * @memberof KdsOrderSubOptionDto
5651
+ */
5652
+ 'createdAt': string;
5653
+ /**
5654
+ *
5655
+ * @type {string}
5656
+ * @memberof KdsOrderSubOptionDto
5657
+ */
5658
+ 'updatedAt': string;
5659
+ }
5660
+ /**
5661
+ *
5662
+ * @export
5663
+ * @interface KdsProfileResponseDto
5664
+ */
5665
+ export interface KdsProfileResponseDto {
5666
+ /**
5667
+ * The KDS profile identifier
5668
+ * @type {string}
5669
+ * @memberof KdsProfileResponseDto
5670
+ */
5671
+ 'id': string;
5672
+ /**
5673
+ * The KDS profile name
5674
+ * @type {string}
5675
+ * @memberof KdsProfileResponseDto
5676
+ */
5677
+ 'name': string;
5678
+ }
5679
+ /**
5680
+ *
5681
+ * @export
5682
+ * @interface KdsPubSubPayloadDto
5683
+ */
5684
+ export interface KdsPubSubPayloadDto {
5685
+ /**
5686
+ *
5687
+ * @type {PubSubTarget}
5688
+ * @memberof KdsPubSubPayloadDto
5689
+ */
5690
+ 'target': PubSubTarget;
5691
+ /**
5692
+ *
5693
+ * @type {ProviderEnum}
5694
+ * @memberof KdsPubSubPayloadDto
5695
+ */
5696
+ 'provider': ProviderEnum;
5697
+ /**
5698
+ *
5699
+ * @type {number}
5700
+ * @memberof KdsPubSubPayloadDto
5701
+ */
5702
+ 'businessId': number;
5703
+ /**
5704
+ *
5705
+ * @type {PubSubAction}
5706
+ * @memberof KdsPubSubPayloadDto
5707
+ */
5708
+ 'action': PubSubAction;
5709
+ /**
5710
+ *
5711
+ * @type {string}
5712
+ * @memberof KdsPubSubPayloadDto
5713
+ */
5714
+ 'orderId': string;
5715
+ /**
5716
+ *
5717
+ * @type {SourceType}
5718
+ * @memberof KdsPubSubPayloadDto
5719
+ */
5720
+ 'type': SourceType;
5721
+ }
5722
+
5723
+
5230
5724
  /**
5231
5725
  *
5232
5726
  * @export
@@ -5288,6 +5782,26 @@ export interface KioskStatusDto {
5288
5782
  }
5289
5783
 
5290
5784
 
5785
+ /**
5786
+ *
5787
+ * @export
5788
+ * @enum {string}
5789
+ */
5790
+
5791
+ export const KitchenItemStatus = {
5792
+ NotApplicable: 'NOT_APPLICABLE',
5793
+ Pending: 'PENDING',
5794
+ OnHold: 'ON_HOLD',
5795
+ SentToOm: 'SENT_TO_OM',
5796
+ DispatchedToKitchen: 'DISPATCHED_TO_KITCHEN',
5797
+ Completed: 'COMPLETED',
5798
+ Cancelled: 'CANCELLED',
5799
+ Ready: 'READY'
5800
+ } as const;
5801
+
5802
+ export type KitchenItemStatus = typeof KitchenItemStatus[keyof typeof KitchenItemStatus];
5803
+
5804
+
5291
5805
  /**
5292
5806
  *
5293
5807
  * @export
@@ -7590,6 +8104,20 @@ export interface OrderHistoryResponseDtoSummary {
7590
8104
  */
7591
8105
  'totalTipAmount'?: number;
7592
8106
  }
8107
+ /**
8108
+ *
8109
+ * @export
8110
+ * @enum {string}
8111
+ */
8112
+
8113
+ export const OrderMode = {
8114
+ Instant: 'INSTANT',
8115
+ PreOrder: 'PRE_ORDER'
8116
+ } as const;
8117
+
8118
+ export type OrderMode = typeof OrderMode[keyof typeof OrderMode];
8119
+
8120
+
7593
8121
  /**
7594
8122
  *
7595
8123
  * @export
@@ -8015,6 +8543,22 @@ export const OrderSource = {
8015
8543
  export type OrderSource = typeof OrderSource[keyof typeof OrderSource];
8016
8544
 
8017
8545
 
8546
+ /**
8547
+ *
8548
+ * @export
8549
+ * @enum {string}
8550
+ */
8551
+
8552
+ export const OrderStatus = {
8553
+ InProgress: 'IN_PROGRESS',
8554
+ Ready: 'READY',
8555
+ Delivered: 'DELIVERED',
8556
+ Rejected: 'REJECTED'
8557
+ } as const;
8558
+
8559
+ export type OrderStatus = typeof OrderStatus[keyof typeof OrderStatus];
8560
+
8561
+
8018
8562
  /**
8019
8563
  *
8020
8564
  * @export
@@ -10202,19 +10746,37 @@ export interface PosDiscountDto {
10202
10746
  * @type {MoneyDto}
10203
10747
  * @memberof PosDiscountDto
10204
10748
  */
10205
- 'appliedAmount'?: MoneyDto;
10749
+ 'appliedAmount': MoneyDto | null;
10206
10750
  /**
10207
10751
  *
10208
10752
  * @type {PosDiscountTargetType}
10209
10753
  * @memberof PosDiscountDto
10210
10754
  */
10211
- 'targetType'?: PosDiscountTargetType | null;
10755
+ 'targetType': PosDiscountTargetType | null;
10212
10756
  /**
10213
10757
  *
10214
10758
  * @type {string}
10215
10759
  * @memberof PosDiscountDto
10216
10760
  */
10217
- 'targetId'?: string | null;
10761
+ 'targetId': string | null;
10762
+ /**
10763
+ *
10764
+ * @type {DiscountSourceType}
10765
+ * @memberof PosDiscountDto
10766
+ */
10767
+ 'sourceType': DiscountSourceType;
10768
+ /**
10769
+ *
10770
+ * @type {string}
10771
+ * @memberof PosDiscountDto
10772
+ */
10773
+ 'sourceId': string | null;
10774
+ /**
10775
+ *
10776
+ * @type {boolean}
10777
+ * @memberof PosDiscountDto
10778
+ */
10779
+ 'isAutomatic': boolean;
10218
10780
  }
10219
10781
 
10220
10782
 
@@ -12733,6 +13295,33 @@ export interface ProviderStatusResponseDto {
12733
13295
  }
12734
13296
 
12735
13297
 
13298
+ /**
13299
+ *
13300
+ * @export
13301
+ * @enum {string}
13302
+ */
13303
+
13304
+ export const PubSubAction = {
13305
+ Activity: 'ORDER_ACTIVITY',
13306
+ Deleted: 'ORDER_DELETED'
13307
+ } as const;
13308
+
13309
+ export type PubSubAction = typeof PubSubAction[keyof typeof PubSubAction];
13310
+
13311
+
13312
+ /**
13313
+ *
13314
+ * @export
13315
+ * @enum {string}
13316
+ */
13317
+
13318
+ export const PubSubTarget = {
13319
+ Kds: 'KDS'
13320
+ } as const;
13321
+
13322
+ export type PubSubTarget = typeof PubSubTarget[keyof typeof PubSubTarget];
13323
+
13324
+
12736
13325
  /**
12737
13326
  *
12738
13327
  * @export
@@ -13844,6 +14433,20 @@ export interface SingleProviderStatusResponseDtoActiveChannel {
13844
14433
  }
13845
14434
 
13846
14435
 
14436
+ /**
14437
+ *
14438
+ * @export
14439
+ * @enum {string}
14440
+ */
14441
+
14442
+ export const SourceType = {
14443
+ Order: 'ORDER',
14444
+ Ticket: 'TICKET'
14445
+ } as const;
14446
+
14447
+ export type SourceType = typeof SourceType[keyof typeof SourceType];
14448
+
14449
+
13847
14450
  /**
13848
14451
  *
13849
14452
  * @export
@@ -16064,11 +16667,11 @@ export interface UnifiedProductDto {
16064
16667
  */
16065
16668
  'comment'?: string | null;
16066
16669
  /**
16067
- * Current kitchen preparation status of the product
16068
- * @type {string}
16670
+ *
16671
+ * @type {KitchenItemStatus}
16069
16672
  * @memberof UnifiedProductDto
16070
16673
  */
16071
- 'kitchenStatus'?: string | null;
16674
+ 'kitchenStatus': KitchenItemStatus;
16072
16675
  /**
16073
16676
  * List of options selected for this product
16074
16677
  * @type {Array<UnifiedOptionDto>}
@@ -16076,6 +16679,8 @@ export interface UnifiedProductDto {
16076
16679
  */
16077
16680
  'options': Array<UnifiedOptionDto>;
16078
16681
  }
16682
+
16683
+
16079
16684
  /**
16080
16685
  *
16081
16686
  * @export
@@ -26120,6 +26725,144 @@ export class InvoiceCompaniesApi extends BaseAPI implements InvoiceCompaniesApiI
26120
26725
  }
26121
26726
 
26122
26727
 
26728
+ /**
26729
+ * KDSApi - axios parameter creator
26730
+ * @export
26731
+ */
26732
+ export const KDSApiAxiosParamCreator = function (configuration?: Configuration) {
26733
+ return {
26734
+ /**
26735
+ *
26736
+ * @summary Get KDS orders by status
26737
+ * @param {'IN_PROGRESS' | 'READY' | 'DELIVERED' | 'REJECTED'} status Order status filter
26738
+ * @param {string} profileId KDS Profile ID
26739
+ * @param {*} [options] Override http request option.
26740
+ * @throws {RequiredError}
26741
+ */
26742
+ kdsGetOrders: async (status: 'IN_PROGRESS' | 'READY' | 'DELIVERED' | 'REJECTED', profileId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
26743
+ // verify required parameter 'status' is not null or undefined
26744
+ assertParamExists('kdsGetOrders', 'status', status)
26745
+ // verify required parameter 'profileId' is not null or undefined
26746
+ assertParamExists('kdsGetOrders', 'profileId', profileId)
26747
+ const localVarPath = `/api/v1/kds/orders/{status}`
26748
+ .replace(`{${"status"}}`, encodeURIComponent(String(status)));
26749
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
26750
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
26751
+ let baseOptions;
26752
+ if (configuration) {
26753
+ baseOptions = configuration.baseOptions;
26754
+ }
26755
+
26756
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
26757
+ const localVarHeaderParameter = {} as any;
26758
+ const localVarQueryParameter = {} as any;
26759
+
26760
+ // authentication JWT-auth required
26761
+ // http bearer authentication required
26762
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
26763
+
26764
+ if (profileId !== undefined) {
26765
+ localVarQueryParameter['profileId'] = profileId;
26766
+ }
26767
+
26768
+
26769
+
26770
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
26771
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
26772
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
26773
+
26774
+ return {
26775
+ url: toPathString(localVarUrlObj),
26776
+ options: localVarRequestOptions,
26777
+ };
26778
+ },
26779
+ }
26780
+ };
26781
+
26782
+ /**
26783
+ * KDSApi - functional programming interface
26784
+ * @export
26785
+ */
26786
+ export const KDSApiFp = function(configuration?: Configuration) {
26787
+ const localVarAxiosParamCreator = KDSApiAxiosParamCreator(configuration)
26788
+ return {
26789
+ /**
26790
+ *
26791
+ * @summary Get KDS orders by status
26792
+ * @param {'IN_PROGRESS' | 'READY' | 'DELIVERED' | 'REJECTED'} status Order status filter
26793
+ * @param {string} profileId KDS Profile ID
26794
+ * @param {*} [options] Override http request option.
26795
+ * @throws {RequiredError}
26796
+ */
26797
+ async kdsGetOrders(status: 'IN_PROGRESS' | 'READY' | 'DELIVERED' | 'REJECTED', profileId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<KdsOrderDto>>> {
26798
+ const localVarAxiosArgs = await localVarAxiosParamCreator.kdsGetOrders(status, profileId, options);
26799
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
26800
+ },
26801
+ }
26802
+ };
26803
+
26804
+ /**
26805
+ * KDSApi - factory interface
26806
+ * @export
26807
+ */
26808
+ export const KDSApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
26809
+ const localVarFp = KDSApiFp(configuration)
26810
+ return {
26811
+ /**
26812
+ *
26813
+ * @summary Get KDS orders by status
26814
+ * @param {'IN_PROGRESS' | 'READY' | 'DELIVERED' | 'REJECTED'} status Order status filter
26815
+ * @param {string} profileId KDS Profile ID
26816
+ * @param {*} [options] Override http request option.
26817
+ * @throws {RequiredError}
26818
+ */
26819
+ kdsGetOrders(status: 'IN_PROGRESS' | 'READY' | 'DELIVERED' | 'REJECTED', profileId: string, options?: any): AxiosPromise<Array<KdsOrderDto>> {
26820
+ return localVarFp.kdsGetOrders(status, profileId, options).then((request) => request(axios, basePath));
26821
+ },
26822
+ };
26823
+ };
26824
+
26825
+ /**
26826
+ * KDSApi - interface
26827
+ * @export
26828
+ * @interface KDSApi
26829
+ */
26830
+ export interface KDSApiInterface {
26831
+ /**
26832
+ *
26833
+ * @summary Get KDS orders by status
26834
+ * @param {'IN_PROGRESS' | 'READY' | 'DELIVERED' | 'REJECTED'} status Order status filter
26835
+ * @param {string} profileId KDS Profile ID
26836
+ * @param {*} [options] Override http request option.
26837
+ * @throws {RequiredError}
26838
+ * @memberof KDSApiInterface
26839
+ */
26840
+ kdsGetOrders(status: 'IN_PROGRESS' | 'READY' | 'DELIVERED' | 'REJECTED', profileId: string, options?: AxiosRequestConfig): AxiosPromise<Array<KdsOrderDto>>;
26841
+
26842
+ }
26843
+
26844
+ /**
26845
+ * KDSApi - object-oriented interface
26846
+ * @export
26847
+ * @class KDSApi
26848
+ * @extends {BaseAPI}
26849
+ */
26850
+ export class KDSApi extends BaseAPI implements KDSApiInterface {
26851
+ /**
26852
+ *
26853
+ * @summary Get KDS orders by status
26854
+ * @param {'IN_PROGRESS' | 'READY' | 'DELIVERED' | 'REJECTED'} status Order status filter
26855
+ * @param {string} profileId KDS Profile ID
26856
+ * @param {*} [options] Override http request option.
26857
+ * @throws {RequiredError}
26858
+ * @memberof KDSApi
26859
+ */
26860
+ public kdsGetOrders(status: 'IN_PROGRESS' | 'READY' | 'DELIVERED' | 'REJECTED', profileId: string, options?: AxiosRequestConfig) {
26861
+ return KDSApiFp(this.configuration).kdsGetOrders(status, profileId, options).then((request) => request(this.axios, this.basePath));
26862
+ }
26863
+ }
26864
+
26865
+
26123
26866
  /**
26124
26867
  * KiosksApi - axios parameter creator
26125
26868
  * @export
@@ -27834,6 +28577,129 @@ export class NotificationApi extends BaseAPI implements NotificationApiInterface
27834
28577
  }
27835
28578
 
27836
28579
 
28580
+ /**
28581
+ * OrderInternalApi - axios parameter creator
28582
+ * @export
28583
+ */
28584
+ export const OrderInternalApiAxiosParamCreator = function (configuration?: Configuration) {
28585
+ return {
28586
+ /**
28587
+ *
28588
+ * @summary Get order data by external ID for internal microservice communication
28589
+ * @param {string} externalId
28590
+ * @param {*} [options] Override http request option.
28591
+ * @throws {RequiredError}
28592
+ */
28593
+ findOneByExternalId: async (externalId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
28594
+ // verify required parameter 'externalId' is not null or undefined
28595
+ assertParamExists('findOneByExternalId', 'externalId', externalId)
28596
+ const localVarPath = `/api/v1/orders/internal/{externalId}`
28597
+ .replace(`{${"externalId"}}`, encodeURIComponent(String(externalId)));
28598
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
28599
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
28600
+ let baseOptions;
28601
+ if (configuration) {
28602
+ baseOptions = configuration.baseOptions;
28603
+ }
28604
+
28605
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
28606
+ const localVarHeaderParameter = {} as any;
28607
+ const localVarQueryParameter = {} as any;
28608
+
28609
+
28610
+
28611
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
28612
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28613
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
28614
+
28615
+ return {
28616
+ url: toPathString(localVarUrlObj),
28617
+ options: localVarRequestOptions,
28618
+ };
28619
+ },
28620
+ }
28621
+ };
28622
+
28623
+ /**
28624
+ * OrderInternalApi - functional programming interface
28625
+ * @export
28626
+ */
28627
+ export const OrderInternalApiFp = function(configuration?: Configuration) {
28628
+ const localVarAxiosParamCreator = OrderInternalApiAxiosParamCreator(configuration)
28629
+ return {
28630
+ /**
28631
+ *
28632
+ * @summary Get order data by external ID for internal microservice communication
28633
+ * @param {string} externalId
28634
+ * @param {*} [options] Override http request option.
28635
+ * @throws {RequiredError}
28636
+ */
28637
+ async findOneByExternalId(externalId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
28638
+ const localVarAxiosArgs = await localVarAxiosParamCreator.findOneByExternalId(externalId, options);
28639
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
28640
+ },
28641
+ }
28642
+ };
28643
+
28644
+ /**
28645
+ * OrderInternalApi - factory interface
28646
+ * @export
28647
+ */
28648
+ export const OrderInternalApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
28649
+ const localVarFp = OrderInternalApiFp(configuration)
28650
+ return {
28651
+ /**
28652
+ *
28653
+ * @summary Get order data by external ID for internal microservice communication
28654
+ * @param {string} externalId
28655
+ * @param {*} [options] Override http request option.
28656
+ * @throws {RequiredError}
28657
+ */
28658
+ findOneByExternalId(externalId: string, options?: any): AxiosPromise<void> {
28659
+ return localVarFp.findOneByExternalId(externalId, options).then((request) => request(axios, basePath));
28660
+ },
28661
+ };
28662
+ };
28663
+
28664
+ /**
28665
+ * OrderInternalApi - interface
28666
+ * @export
28667
+ * @interface OrderInternalApi
28668
+ */
28669
+ export interface OrderInternalApiInterface {
28670
+ /**
28671
+ *
28672
+ * @summary Get order data by external ID for internal microservice communication
28673
+ * @param {string} externalId
28674
+ * @param {*} [options] Override http request option.
28675
+ * @throws {RequiredError}
28676
+ * @memberof OrderInternalApiInterface
28677
+ */
28678
+ findOneByExternalId(externalId: string, options?: AxiosRequestConfig): AxiosPromise<void>;
28679
+
28680
+ }
28681
+
28682
+ /**
28683
+ * OrderInternalApi - object-oriented interface
28684
+ * @export
28685
+ * @class OrderInternalApi
28686
+ * @extends {BaseAPI}
28687
+ */
28688
+ export class OrderInternalApi extends BaseAPI implements OrderInternalApiInterface {
28689
+ /**
28690
+ *
28691
+ * @summary Get order data by external ID for internal microservice communication
28692
+ * @param {string} externalId
28693
+ * @param {*} [options] Override http request option.
28694
+ * @throws {RequiredError}
28695
+ * @memberof OrderInternalApi
28696
+ */
28697
+ public findOneByExternalId(externalId: string, options?: AxiosRequestConfig) {
28698
+ return OrderInternalApiFp(this.configuration).findOneByExternalId(externalId, options).then((request) => request(this.axios, this.basePath));
28699
+ }
28700
+ }
28701
+
28702
+
27837
28703
  /**
27838
28704
  * OrderingCoApi - axios parameter creator
27839
28705
  * @export
@@ -33241,7 +34107,7 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
33241
34107
  * @param {*} [options] Override http request option.
33242
34108
  * @throws {RequiredError}
33243
34109
  */
33244
- getUserBusiness: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
34110
+ getUserBusinessV1: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
33245
34111
  const localVarPath = `/api/v1/user/business`;
33246
34112
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
33247
34113
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -33260,6 +34126,40 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
33260
34126
 
33261
34127
 
33262
34128
 
34129
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
34130
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
34131
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
34132
+
34133
+ return {
34134
+ url: toPathString(localVarUrlObj),
34135
+ options: localVarRequestOptions,
34136
+ };
34137
+ },
34138
+ /**
34139
+ *
34140
+ * @summary Retrieve user Business information with KDS profiles
34141
+ * @param {*} [options] Override http request option.
34142
+ * @throws {RequiredError}
34143
+ */
34144
+ getUserBusinessV2: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
34145
+ const localVarPath = `/api/v2/user/business`;
34146
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
34147
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
34148
+ let baseOptions;
34149
+ if (configuration) {
34150
+ baseOptions = configuration.baseOptions;
34151
+ }
34152
+
34153
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
34154
+ const localVarHeaderParameter = {} as any;
34155
+ const localVarQueryParameter = {} as any;
34156
+
34157
+ // authentication JWT-auth required
34158
+ // http bearer authentication required
34159
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
34160
+
34161
+
34162
+
33263
34163
  setSearchParams(localVarUrlObj, localVarQueryParameter);
33264
34164
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
33265
34165
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -33275,7 +34175,7 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
33275
34175
  * @param {*} [options] Override http request option.
33276
34176
  * @throws {RequiredError}
33277
34177
  */
33278
- getUserInfo: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
34178
+ getUserInfoV1: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
33279
34179
  const localVarPath = `/api/v1/user`;
33280
34180
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
33281
34181
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -33319,8 +34219,18 @@ export const UserApiFp = function(configuration?: Configuration) {
33319
34219
  * @param {*} [options] Override http request option.
33320
34220
  * @throws {RequiredError}
33321
34221
  */
33322
- async getUserBusiness(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BusinessInfoResponseDto>>> {
33323
- const localVarAxiosArgs = await localVarAxiosParamCreator.getUserBusiness(options);
34222
+ async getUserBusinessV1(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BusinessInfoResponseDto>>> {
34223
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getUserBusinessV1(options);
34224
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
34225
+ },
34226
+ /**
34227
+ *
34228
+ * @summary Retrieve user Business information with KDS profiles
34229
+ * @param {*} [options] Override http request option.
34230
+ * @throws {RequiredError}
34231
+ */
34232
+ async getUserBusinessV2(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BusinessInfoV2ResponseDto>>> {
34233
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getUserBusinessV2(options);
33324
34234
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
33325
34235
  },
33326
34236
  /**
@@ -33329,8 +34239,8 @@ export const UserApiFp = function(configuration?: Configuration) {
33329
34239
  * @param {*} [options] Override http request option.
33330
34240
  * @throws {RequiredError}
33331
34241
  */
33332
- async getUserInfo(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetUserInfoResponseDto>> {
33333
- const localVarAxiosArgs = await localVarAxiosParamCreator.getUserInfo(options);
34242
+ async getUserInfoV1(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetUserInfoResponseDto>> {
34243
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getUserInfoV1(options);
33334
34244
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
33335
34245
  },
33336
34246
  }
@@ -33349,8 +34259,17 @@ export const UserApiFactory = function (configuration?: Configuration, basePath?
33349
34259
  * @param {*} [options] Override http request option.
33350
34260
  * @throws {RequiredError}
33351
34261
  */
33352
- getUserBusiness(options?: any): AxiosPromise<Array<BusinessInfoResponseDto>> {
33353
- return localVarFp.getUserBusiness(options).then((request) => request(axios, basePath));
34262
+ getUserBusinessV1(options?: any): AxiosPromise<Array<BusinessInfoResponseDto>> {
34263
+ return localVarFp.getUserBusinessV1(options).then((request) => request(axios, basePath));
34264
+ },
34265
+ /**
34266
+ *
34267
+ * @summary Retrieve user Business information with KDS profiles
34268
+ * @param {*} [options] Override http request option.
34269
+ * @throws {RequiredError}
34270
+ */
34271
+ getUserBusinessV2(options?: any): AxiosPromise<Array<BusinessInfoV2ResponseDto>> {
34272
+ return localVarFp.getUserBusinessV2(options).then((request) => request(axios, basePath));
33354
34273
  },
33355
34274
  /**
33356
34275
  *
@@ -33358,8 +34277,8 @@ export const UserApiFactory = function (configuration?: Configuration, basePath?
33358
34277
  * @param {*} [options] Override http request option.
33359
34278
  * @throws {RequiredError}
33360
34279
  */
33361
- getUserInfo(options?: any): AxiosPromise<GetUserInfoResponseDto> {
33362
- return localVarFp.getUserInfo(options).then((request) => request(axios, basePath));
34280
+ getUserInfoV1(options?: any): AxiosPromise<GetUserInfoResponseDto> {
34281
+ return localVarFp.getUserInfoV1(options).then((request) => request(axios, basePath));
33363
34282
  },
33364
34283
  };
33365
34284
  };
@@ -33377,7 +34296,16 @@ export interface UserApiInterface {
33377
34296
  * @throws {RequiredError}
33378
34297
  * @memberof UserApiInterface
33379
34298
  */
33380
- getUserBusiness(options?: AxiosRequestConfig): AxiosPromise<Array<BusinessInfoResponseDto>>;
34299
+ getUserBusinessV1(options?: AxiosRequestConfig): AxiosPromise<Array<BusinessInfoResponseDto>>;
34300
+
34301
+ /**
34302
+ *
34303
+ * @summary Retrieve user Business information with KDS profiles
34304
+ * @param {*} [options] Override http request option.
34305
+ * @throws {RequiredError}
34306
+ * @memberof UserApiInterface
34307
+ */
34308
+ getUserBusinessV2(options?: AxiosRequestConfig): AxiosPromise<Array<BusinessInfoV2ResponseDto>>;
33381
34309
 
33382
34310
  /**
33383
34311
  *
@@ -33386,7 +34314,7 @@ export interface UserApiInterface {
33386
34314
  * @throws {RequiredError}
33387
34315
  * @memberof UserApiInterface
33388
34316
  */
33389
- getUserInfo(options?: AxiosRequestConfig): AxiosPromise<GetUserInfoResponseDto>;
34317
+ getUserInfoV1(options?: AxiosRequestConfig): AxiosPromise<GetUserInfoResponseDto>;
33390
34318
 
33391
34319
  }
33392
34320
 
@@ -33404,8 +34332,19 @@ export class UserApi extends BaseAPI implements UserApiInterface {
33404
34332
  * @throws {RequiredError}
33405
34333
  * @memberof UserApi
33406
34334
  */
33407
- public getUserBusiness(options?: AxiosRequestConfig) {
33408
- return UserApiFp(this.configuration).getUserBusiness(options).then((request) => request(this.axios, this.basePath));
34335
+ public getUserBusinessV1(options?: AxiosRequestConfig) {
34336
+ return UserApiFp(this.configuration).getUserBusinessV1(options).then((request) => request(this.axios, this.basePath));
34337
+ }
34338
+
34339
+ /**
34340
+ *
34341
+ * @summary Retrieve user Business information with KDS profiles
34342
+ * @param {*} [options] Override http request option.
34343
+ * @throws {RequiredError}
34344
+ * @memberof UserApi
34345
+ */
34346
+ public getUserBusinessV2(options?: AxiosRequestConfig) {
34347
+ return UserApiFp(this.configuration).getUserBusinessV2(options).then((request) => request(this.axios, this.basePath));
33409
34348
  }
33410
34349
 
33411
34350
  /**
@@ -33415,8 +34354,8 @@ export class UserApi extends BaseAPI implements UserApiInterface {
33415
34354
  * @throws {RequiredError}
33416
34355
  * @memberof UserApi
33417
34356
  */
33418
- public getUserInfo(options?: AxiosRequestConfig) {
33419
- return UserApiFp(this.configuration).getUserInfo(options).then((request) => request(this.axios, this.basePath));
34357
+ public getUserInfoV1(options?: AxiosRequestConfig) {
34358
+ return UserApiFp(this.configuration).getUserInfoV1(options).then((request) => request(this.axios, this.basePath));
33420
34359
  }
33421
34360
  }
33422
34361