@munchi_oy/core 1.7.3 → 1.7.5

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
@@ -5677,6 +5677,25 @@ export interface KdsOrderSubOptionDto {
5677
5677
  */
5678
5678
  'updatedAt': string;
5679
5679
  }
5680
+ /**
5681
+ *
5682
+ * @export
5683
+ * @interface KdsProfileDto
5684
+ */
5685
+ export interface KdsProfileDto {
5686
+ /**
5687
+ *
5688
+ * @type {string}
5689
+ * @memberof KdsProfileDto
5690
+ */
5691
+ 'id': string;
5692
+ /**
5693
+ *
5694
+ * @type {string}
5695
+ * @memberof KdsProfileDto
5696
+ */
5697
+ 'name': string;
5698
+ }
5680
5699
  /**
5681
5700
  *
5682
5701
  * @export
@@ -5741,6 +5760,350 @@ export interface KdsPubSubPayloadDto {
5741
5760
  }
5742
5761
 
5743
5762
 
5763
+ /**
5764
+ *
5765
+ * @export
5766
+ * @interface KdsReadyOrderResponseDto
5767
+ */
5768
+ export interface KdsReadyOrderResponseDto {
5769
+ /**
5770
+ * Indicates whether the KDS order ready update succeeded
5771
+ * @type {boolean}
5772
+ * @memberof KdsReadyOrderResponseDto
5773
+ */
5774
+ 'status': boolean;
5775
+ /**
5776
+ * Human-readable status message
5777
+ * @type {string}
5778
+ * @memberof KdsReadyOrderResponseDto
5779
+ */
5780
+ 'message': string;
5781
+ /**
5782
+ *
5783
+ * @type {KdsReadyOrderResponseDtoOrder}
5784
+ * @memberof KdsReadyOrderResponseDto
5785
+ */
5786
+ 'order': KdsReadyOrderResponseDtoOrder | null;
5787
+ }
5788
+ /**
5789
+ * Updated KDS order after the ready flow completes
5790
+ * @export
5791
+ * @interface KdsReadyOrderResponseDtoOrder
5792
+ */
5793
+ export interface KdsReadyOrderResponseDtoOrder {
5794
+ /**
5795
+ *
5796
+ * @type {string}
5797
+ * @memberof KdsReadyOrderResponseDtoOrder
5798
+ */
5799
+ 'id': string;
5800
+ /**
5801
+ *
5802
+ * @type {string}
5803
+ * @memberof KdsReadyOrderResponseDtoOrder
5804
+ */
5805
+ 'parentOrderId': string;
5806
+ /**
5807
+ *
5808
+ * @type {number}
5809
+ * @memberof KdsReadyOrderResponseDtoOrder
5810
+ */
5811
+ 'businessId': number;
5812
+ /**
5813
+ *
5814
+ * @type {string}
5815
+ * @memberof KdsReadyOrderResponseDtoOrder
5816
+ */
5817
+ 'profileId': string;
5818
+ /**
5819
+ *
5820
+ * @type {string}
5821
+ * @memberof KdsReadyOrderResponseDtoOrder
5822
+ */
5823
+ 'profileName': string;
5824
+ /**
5825
+ *
5826
+ * @type {ProviderEnum}
5827
+ * @memberof KdsReadyOrderResponseDtoOrder
5828
+ */
5829
+ 'provider': ProviderEnum;
5830
+ /**
5831
+ *
5832
+ * @type {string}
5833
+ * @memberof KdsReadyOrderResponseDtoOrder
5834
+ */
5835
+ 'orderNumber': string;
5836
+ /**
5837
+ *
5838
+ * @type {string}
5839
+ * @memberof KdsReadyOrderResponseDtoOrder
5840
+ */
5841
+ 'comment': string | null;
5842
+ /**
5843
+ *
5844
+ * @type {number}
5845
+ * @memberof KdsReadyOrderResponseDtoOrder
5846
+ */
5847
+ 'preparedIn': number | null;
5848
+ /**
5849
+ *
5850
+ * @type {string}
5851
+ * @memberof KdsReadyOrderResponseDtoOrder
5852
+ */
5853
+ 'spotNumber': string | null;
5854
+ /**
5855
+ *
5856
+ * @type {string}
5857
+ * @memberof KdsReadyOrderResponseDtoOrder
5858
+ */
5859
+ 'acceptedAt': string | null;
5860
+ /**
5861
+ *
5862
+ * @type {string}
5863
+ * @memberof KdsReadyOrderResponseDtoOrder
5864
+ */
5865
+ 'pickupEta': string | null;
5866
+ /**
5867
+ *
5868
+ * @type {string}
5869
+ * @memberof KdsReadyOrderResponseDtoOrder
5870
+ */
5871
+ 'deliveryEta': string | null;
5872
+ /**
5873
+ *
5874
+ * @type {ConsumptionType}
5875
+ * @memberof KdsReadyOrderResponseDtoOrder
5876
+ */
5877
+ 'consumptionType': ConsumptionType;
5878
+ /**
5879
+ *
5880
+ * @type {string}
5881
+ * @memberof KdsReadyOrderResponseDtoOrder
5882
+ */
5883
+ 'orderCreatedAt': string;
5884
+ /**
5885
+ *
5886
+ * @type {string}
5887
+ * @memberof KdsReadyOrderResponseDtoOrder
5888
+ */
5889
+ 'orderUpdatedAt': string;
5890
+ /**
5891
+ *
5892
+ * @type {OrderType}
5893
+ * @memberof KdsReadyOrderResponseDtoOrder
5894
+ */
5895
+ 'type': OrderType;
5896
+ /**
5897
+ *
5898
+ * @type {OrderMode}
5899
+ * @memberof KdsReadyOrderResponseDtoOrder
5900
+ */
5901
+ 'orderMode': OrderMode;
5902
+ /**
5903
+ *
5904
+ * @type {SourceType}
5905
+ * @memberof KdsReadyOrderResponseDtoOrder
5906
+ */
5907
+ 'sourceType': SourceType;
5908
+ /**
5909
+ *
5910
+ * @type {OrderStatus}
5911
+ * @memberof KdsReadyOrderResponseDtoOrder
5912
+ */
5913
+ 'status': OrderStatus;
5914
+ /**
5915
+ *
5916
+ * @type {string}
5917
+ * @memberof KdsReadyOrderResponseDtoOrder
5918
+ */
5919
+ 'createdAt': string;
5920
+ /**
5921
+ *
5922
+ * @type {string}
5923
+ * @memberof KdsReadyOrderResponseDtoOrder
5924
+ */
5925
+ 'updatedAt': string;
5926
+ /**
5927
+ *
5928
+ * @type {Array<KdsOrderItemDto>}
5929
+ * @memberof KdsReadyOrderResponseDtoOrder
5930
+ */
5931
+ 'items': Array<KdsOrderItemDto>;
5932
+ }
5933
+
5934
+
5935
+ /**
5936
+ *
5937
+ * @export
5938
+ * @interface KdsRevertOrderResponseDto
5939
+ */
5940
+ export interface KdsRevertOrderResponseDto {
5941
+ /**
5942
+ * Indicates whether the KDS order revert succeeded
5943
+ * @type {boolean}
5944
+ * @memberof KdsRevertOrderResponseDto
5945
+ */
5946
+ 'status': boolean;
5947
+ /**
5948
+ * Human-readable status message
5949
+ * @type {string}
5950
+ * @memberof KdsRevertOrderResponseDto
5951
+ */
5952
+ 'message': string;
5953
+ /**
5954
+ *
5955
+ * @type {KdsRevertOrderResponseDtoOrder}
5956
+ * @memberof KdsRevertOrderResponseDto
5957
+ */
5958
+ 'order': KdsRevertOrderResponseDtoOrder | null;
5959
+ }
5960
+ /**
5961
+ * Updated KDS order after the revert flow completes
5962
+ * @export
5963
+ * @interface KdsRevertOrderResponseDtoOrder
5964
+ */
5965
+ export interface KdsRevertOrderResponseDtoOrder {
5966
+ /**
5967
+ *
5968
+ * @type {string}
5969
+ * @memberof KdsRevertOrderResponseDtoOrder
5970
+ */
5971
+ 'id': string;
5972
+ /**
5973
+ *
5974
+ * @type {string}
5975
+ * @memberof KdsRevertOrderResponseDtoOrder
5976
+ */
5977
+ 'parentOrderId': string;
5978
+ /**
5979
+ *
5980
+ * @type {number}
5981
+ * @memberof KdsRevertOrderResponseDtoOrder
5982
+ */
5983
+ 'businessId': number;
5984
+ /**
5985
+ *
5986
+ * @type {string}
5987
+ * @memberof KdsRevertOrderResponseDtoOrder
5988
+ */
5989
+ 'profileId': string;
5990
+ /**
5991
+ *
5992
+ * @type {string}
5993
+ * @memberof KdsRevertOrderResponseDtoOrder
5994
+ */
5995
+ 'profileName': string;
5996
+ /**
5997
+ *
5998
+ * @type {ProviderEnum}
5999
+ * @memberof KdsRevertOrderResponseDtoOrder
6000
+ */
6001
+ 'provider': ProviderEnum;
6002
+ /**
6003
+ *
6004
+ * @type {string}
6005
+ * @memberof KdsRevertOrderResponseDtoOrder
6006
+ */
6007
+ 'orderNumber': string;
6008
+ /**
6009
+ *
6010
+ * @type {string}
6011
+ * @memberof KdsRevertOrderResponseDtoOrder
6012
+ */
6013
+ 'comment': string | null;
6014
+ /**
6015
+ *
6016
+ * @type {number}
6017
+ * @memberof KdsRevertOrderResponseDtoOrder
6018
+ */
6019
+ 'preparedIn': number | null;
6020
+ /**
6021
+ *
6022
+ * @type {string}
6023
+ * @memberof KdsRevertOrderResponseDtoOrder
6024
+ */
6025
+ 'spotNumber': string | null;
6026
+ /**
6027
+ *
6028
+ * @type {string}
6029
+ * @memberof KdsRevertOrderResponseDtoOrder
6030
+ */
6031
+ 'acceptedAt': string | null;
6032
+ /**
6033
+ *
6034
+ * @type {string}
6035
+ * @memberof KdsRevertOrderResponseDtoOrder
6036
+ */
6037
+ 'pickupEta': string | null;
6038
+ /**
6039
+ *
6040
+ * @type {string}
6041
+ * @memberof KdsRevertOrderResponseDtoOrder
6042
+ */
6043
+ 'deliveryEta': string | null;
6044
+ /**
6045
+ *
6046
+ * @type {ConsumptionType}
6047
+ * @memberof KdsRevertOrderResponseDtoOrder
6048
+ */
6049
+ 'consumptionType': ConsumptionType;
6050
+ /**
6051
+ *
6052
+ * @type {string}
6053
+ * @memberof KdsRevertOrderResponseDtoOrder
6054
+ */
6055
+ 'orderCreatedAt': string;
6056
+ /**
6057
+ *
6058
+ * @type {string}
6059
+ * @memberof KdsRevertOrderResponseDtoOrder
6060
+ */
6061
+ 'orderUpdatedAt': string;
6062
+ /**
6063
+ *
6064
+ * @type {OrderType}
6065
+ * @memberof KdsRevertOrderResponseDtoOrder
6066
+ */
6067
+ 'type': OrderType;
6068
+ /**
6069
+ *
6070
+ * @type {OrderMode}
6071
+ * @memberof KdsRevertOrderResponseDtoOrder
6072
+ */
6073
+ 'orderMode': OrderMode;
6074
+ /**
6075
+ *
6076
+ * @type {SourceType}
6077
+ * @memberof KdsRevertOrderResponseDtoOrder
6078
+ */
6079
+ 'sourceType': SourceType;
6080
+ /**
6081
+ *
6082
+ * @type {OrderStatus}
6083
+ * @memberof KdsRevertOrderResponseDtoOrder
6084
+ */
6085
+ 'status': OrderStatus;
6086
+ /**
6087
+ *
6088
+ * @type {string}
6089
+ * @memberof KdsRevertOrderResponseDtoOrder
6090
+ */
6091
+ 'createdAt': string;
6092
+ /**
6093
+ *
6094
+ * @type {string}
6095
+ * @memberof KdsRevertOrderResponseDtoOrder
6096
+ */
6097
+ 'updatedAt': string;
6098
+ /**
6099
+ *
6100
+ * @type {Array<KdsOrderItemDto>}
6101
+ * @memberof KdsRevertOrderResponseDtoOrder
6102
+ */
6103
+ 'items': Array<KdsOrderItemDto>;
6104
+ }
6105
+
6106
+
5744
6107
  /**
5745
6108
  *
5746
6109
  * @export
@@ -5832,6 +6195,7 @@ export const KitchenStatus = {
5832
6195
  NotApplicable: 'not_applicable',
5833
6196
  Pending: 'pending',
5834
6197
  OnHold: 'on_hold',
6198
+ Ready: 'ready',
5835
6199
  SentToOm: 'sent_to_om',
5836
6200
  DispatchedToKitchen: 'dispatched_to_kitchen',
5837
6201
  Completed: 'completed',
@@ -14193,7 +14557,8 @@ export const SYNCKEY = {
14193
14557
  PosSession: 'POS_SESSION',
14194
14558
  InvoiceCompanies: 'INVOICE_COMPANIES',
14195
14559
  BusinessTax: 'BUSINESS_TAX',
14196
- Transaction: 'TRANSACTION'
14560
+ Transaction: 'TRANSACTION',
14561
+ DiscountsV2: 'DISCOUNTS_V2'
14197
14562
  } as const;
14198
14563
 
14199
14564
  export type SYNCKEY = typeof SYNCKEY[keyof typeof SYNCKEY];
@@ -26855,13 +27220,16 @@ export const KDSApiAxiosParamCreator = function (configuration?: Configuration)
26855
27220
  *
26856
27221
  * @summary Get KDS orders by status
26857
27222
  * @param {'IN_PROGRESS' | 'READY' | 'DELIVERED' | 'REJECTED'} status Order status filter
27223
+ * @param {string} businessIds Comma-separated list of business IDs
26858
27224
  * @param {string} profileId KDS Profile ID
26859
27225
  * @param {*} [options] Override http request option.
26860
27226
  * @throws {RequiredError}
26861
27227
  */
26862
- kdsGetOrders: async (status: 'IN_PROGRESS' | 'READY' | 'DELIVERED' | 'REJECTED', profileId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
27228
+ kdsGetOrders: async (status: 'IN_PROGRESS' | 'READY' | 'DELIVERED' | 'REJECTED', businessIds: string, profileId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
26863
27229
  // verify required parameter 'status' is not null or undefined
26864
27230
  assertParamExists('kdsGetOrders', 'status', status)
27231
+ // verify required parameter 'businessIds' is not null or undefined
27232
+ assertParamExists('kdsGetOrders', 'businessIds', businessIds)
26865
27233
  // verify required parameter 'profileId' is not null or undefined
26866
27234
  assertParamExists('kdsGetOrders', 'profileId', profileId)
26867
27235
  const localVarPath = `/api/v1/kds/orders/{status}`
@@ -26881,12 +27249,133 @@ export const KDSApiAxiosParamCreator = function (configuration?: Configuration)
26881
27249
  // http bearer authentication required
26882
27250
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
26883
27251
 
27252
+ if (businessIds !== undefined) {
27253
+ localVarQueryParameter['businessIds'] = businessIds;
27254
+ }
27255
+
26884
27256
  if (profileId !== undefined) {
26885
27257
  localVarQueryParameter['profileId'] = profileId;
26886
27258
  }
26887
27259
 
26888
27260
 
26889
27261
 
27262
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
27263
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
27264
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
27265
+
27266
+ return {
27267
+ url: toPathString(localVarUrlObj),
27268
+ options: localVarRequestOptions,
27269
+ };
27270
+ },
27271
+ /**
27272
+ *
27273
+ * @summary Get KDS profiles for a business
27274
+ * @param {number} businessId Business ID
27275
+ * @param {*} [options] Override http request option.
27276
+ * @throws {RequiredError}
27277
+ */
27278
+ kdsGetProfiles: async (businessId: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
27279
+ // verify required parameter 'businessId' is not null or undefined
27280
+ assertParamExists('kdsGetProfiles', 'businessId', businessId)
27281
+ const localVarPath = `/api/v1/kds/profiles`;
27282
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
27283
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
27284
+ let baseOptions;
27285
+ if (configuration) {
27286
+ baseOptions = configuration.baseOptions;
27287
+ }
27288
+
27289
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
27290
+ const localVarHeaderParameter = {} as any;
27291
+ const localVarQueryParameter = {} as any;
27292
+
27293
+ // authentication JWT-auth required
27294
+ // http bearer authentication required
27295
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
27296
+
27297
+ if (businessId !== undefined) {
27298
+ localVarQueryParameter['businessId'] = businessId;
27299
+ }
27300
+
27301
+
27302
+
27303
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
27304
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
27305
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
27306
+
27307
+ return {
27308
+ url: toPathString(localVarUrlObj),
27309
+ options: localVarRequestOptions,
27310
+ };
27311
+ },
27312
+ /**
27313
+ *
27314
+ * @summary Mark a KDS order as ready
27315
+ * @param {string} id KDS order ID
27316
+ * @param {*} [options] Override http request option.
27317
+ * @throws {RequiredError}
27318
+ */
27319
+ kdsMarkOrderReady: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
27320
+ // verify required parameter 'id' is not null or undefined
27321
+ assertParamExists('kdsMarkOrderReady', 'id', id)
27322
+ const localVarPath = `/api/v1/kds/orders/{id}/ready`
27323
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
27324
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
27325
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
27326
+ let baseOptions;
27327
+ if (configuration) {
27328
+ baseOptions = configuration.baseOptions;
27329
+ }
27330
+
27331
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
27332
+ const localVarHeaderParameter = {} as any;
27333
+ const localVarQueryParameter = {} as any;
27334
+
27335
+ // authentication JWT-auth required
27336
+ // http bearer authentication required
27337
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
27338
+
27339
+
27340
+
27341
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
27342
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
27343
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
27344
+
27345
+ return {
27346
+ url: toPathString(localVarUrlObj),
27347
+ options: localVarRequestOptions,
27348
+ };
27349
+ },
27350
+ /**
27351
+ *
27352
+ * @summary Revert a KDS order back to in progress
27353
+ * @param {string} id KDS order ID
27354
+ * @param {*} [options] Override http request option.
27355
+ * @throws {RequiredError}
27356
+ */
27357
+ kdsRevertOrder: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
27358
+ // verify required parameter 'id' is not null or undefined
27359
+ assertParamExists('kdsRevertOrder', 'id', id)
27360
+ const localVarPath = `/api/v1/kds/orders/{id}/revert`
27361
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
27362
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
27363
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
27364
+ let baseOptions;
27365
+ if (configuration) {
27366
+ baseOptions = configuration.baseOptions;
27367
+ }
27368
+
27369
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
27370
+ const localVarHeaderParameter = {} as any;
27371
+ const localVarQueryParameter = {} as any;
27372
+
27373
+ // authentication JWT-auth required
27374
+ // http bearer authentication required
27375
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
27376
+
27377
+
27378
+
26890
27379
  setSearchParams(localVarUrlObj, localVarQueryParameter);
26891
27380
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
26892
27381
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -26910,12 +27399,46 @@ export const KDSApiFp = function(configuration?: Configuration) {
26910
27399
  *
26911
27400
  * @summary Get KDS orders by status
26912
27401
  * @param {'IN_PROGRESS' | 'READY' | 'DELIVERED' | 'REJECTED'} status Order status filter
27402
+ * @param {string} businessIds Comma-separated list of business IDs
26913
27403
  * @param {string} profileId KDS Profile ID
26914
27404
  * @param {*} [options] Override http request option.
26915
27405
  * @throws {RequiredError}
26916
27406
  */
26917
- async kdsGetOrders(status: 'IN_PROGRESS' | 'READY' | 'DELIVERED' | 'REJECTED', profileId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<KdsOrderDto>>> {
26918
- const localVarAxiosArgs = await localVarAxiosParamCreator.kdsGetOrders(status, profileId, options);
27407
+ async kdsGetOrders(status: 'IN_PROGRESS' | 'READY' | 'DELIVERED' | 'REJECTED', businessIds: string, profileId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<KdsOrderDto>>> {
27408
+ const localVarAxiosArgs = await localVarAxiosParamCreator.kdsGetOrders(status, businessIds, profileId, options);
27409
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
27410
+ },
27411
+ /**
27412
+ *
27413
+ * @summary Get KDS profiles for a business
27414
+ * @param {number} businessId Business ID
27415
+ * @param {*} [options] Override http request option.
27416
+ * @throws {RequiredError}
27417
+ */
27418
+ async kdsGetProfiles(businessId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<KdsProfileDto>>> {
27419
+ const localVarAxiosArgs = await localVarAxiosParamCreator.kdsGetProfiles(businessId, options);
27420
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
27421
+ },
27422
+ /**
27423
+ *
27424
+ * @summary Mark a KDS order as ready
27425
+ * @param {string} id KDS order ID
27426
+ * @param {*} [options] Override http request option.
27427
+ * @throws {RequiredError}
27428
+ */
27429
+ async kdsMarkOrderReady(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<KdsReadyOrderResponseDto>> {
27430
+ const localVarAxiosArgs = await localVarAxiosParamCreator.kdsMarkOrderReady(id, options);
27431
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
27432
+ },
27433
+ /**
27434
+ *
27435
+ * @summary Revert a KDS order back to in progress
27436
+ * @param {string} id KDS order ID
27437
+ * @param {*} [options] Override http request option.
27438
+ * @throws {RequiredError}
27439
+ */
27440
+ async kdsRevertOrder(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<KdsRevertOrderResponseDto>> {
27441
+ const localVarAxiosArgs = await localVarAxiosParamCreator.kdsRevertOrder(id, options);
26919
27442
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
26920
27443
  },
26921
27444
  }
@@ -26932,12 +27455,43 @@ export const KDSApiFactory = function (configuration?: Configuration, basePath?:
26932
27455
  *
26933
27456
  * @summary Get KDS orders by status
26934
27457
  * @param {'IN_PROGRESS' | 'READY' | 'DELIVERED' | 'REJECTED'} status Order status filter
27458
+ * @param {string} businessIds Comma-separated list of business IDs
26935
27459
  * @param {string} profileId KDS Profile ID
26936
27460
  * @param {*} [options] Override http request option.
26937
27461
  * @throws {RequiredError}
26938
27462
  */
26939
- kdsGetOrders(status: 'IN_PROGRESS' | 'READY' | 'DELIVERED' | 'REJECTED', profileId: string, options?: any): AxiosPromise<Array<KdsOrderDto>> {
26940
- return localVarFp.kdsGetOrders(status, profileId, options).then((request) => request(axios, basePath));
27463
+ kdsGetOrders(status: 'IN_PROGRESS' | 'READY' | 'DELIVERED' | 'REJECTED', businessIds: string, profileId: string, options?: any): AxiosPromise<Array<KdsOrderDto>> {
27464
+ return localVarFp.kdsGetOrders(status, businessIds, profileId, options).then((request) => request(axios, basePath));
27465
+ },
27466
+ /**
27467
+ *
27468
+ * @summary Get KDS profiles for a business
27469
+ * @param {number} businessId Business ID
27470
+ * @param {*} [options] Override http request option.
27471
+ * @throws {RequiredError}
27472
+ */
27473
+ kdsGetProfiles(businessId: number, options?: any): AxiosPromise<Array<KdsProfileDto>> {
27474
+ return localVarFp.kdsGetProfiles(businessId, options).then((request) => request(axios, basePath));
27475
+ },
27476
+ /**
27477
+ *
27478
+ * @summary Mark a KDS order as ready
27479
+ * @param {string} id KDS order ID
27480
+ * @param {*} [options] Override http request option.
27481
+ * @throws {RequiredError}
27482
+ */
27483
+ kdsMarkOrderReady(id: string, options?: any): AxiosPromise<KdsReadyOrderResponseDto> {
27484
+ return localVarFp.kdsMarkOrderReady(id, options).then((request) => request(axios, basePath));
27485
+ },
27486
+ /**
27487
+ *
27488
+ * @summary Revert a KDS order back to in progress
27489
+ * @param {string} id KDS order ID
27490
+ * @param {*} [options] Override http request option.
27491
+ * @throws {RequiredError}
27492
+ */
27493
+ kdsRevertOrder(id: string, options?: any): AxiosPromise<KdsRevertOrderResponseDto> {
27494
+ return localVarFp.kdsRevertOrder(id, options).then((request) => request(axios, basePath));
26941
27495
  },
26942
27496
  };
26943
27497
  };
@@ -26952,12 +27506,43 @@ export interface KDSApiInterface {
26952
27506
  *
26953
27507
  * @summary Get KDS orders by status
26954
27508
  * @param {'IN_PROGRESS' | 'READY' | 'DELIVERED' | 'REJECTED'} status Order status filter
27509
+ * @param {string} businessIds Comma-separated list of business IDs
26955
27510
  * @param {string} profileId KDS Profile ID
26956
27511
  * @param {*} [options] Override http request option.
26957
27512
  * @throws {RequiredError}
26958
27513
  * @memberof KDSApiInterface
26959
27514
  */
26960
- kdsGetOrders(status: 'IN_PROGRESS' | 'READY' | 'DELIVERED' | 'REJECTED', profileId: string, options?: AxiosRequestConfig): AxiosPromise<Array<KdsOrderDto>>;
27515
+ kdsGetOrders(status: 'IN_PROGRESS' | 'READY' | 'DELIVERED' | 'REJECTED', businessIds: string, profileId: string, options?: AxiosRequestConfig): AxiosPromise<Array<KdsOrderDto>>;
27516
+
27517
+ /**
27518
+ *
27519
+ * @summary Get KDS profiles for a business
27520
+ * @param {number} businessId Business ID
27521
+ * @param {*} [options] Override http request option.
27522
+ * @throws {RequiredError}
27523
+ * @memberof KDSApiInterface
27524
+ */
27525
+ kdsGetProfiles(businessId: number, options?: AxiosRequestConfig): AxiosPromise<Array<KdsProfileDto>>;
27526
+
27527
+ /**
27528
+ *
27529
+ * @summary Mark a KDS order as ready
27530
+ * @param {string} id KDS order ID
27531
+ * @param {*} [options] Override http request option.
27532
+ * @throws {RequiredError}
27533
+ * @memberof KDSApiInterface
27534
+ */
27535
+ kdsMarkOrderReady(id: string, options?: AxiosRequestConfig): AxiosPromise<KdsReadyOrderResponseDto>;
27536
+
27537
+ /**
27538
+ *
27539
+ * @summary Revert a KDS order back to in progress
27540
+ * @param {string} id KDS order ID
27541
+ * @param {*} [options] Override http request option.
27542
+ * @throws {RequiredError}
27543
+ * @memberof KDSApiInterface
27544
+ */
27545
+ kdsRevertOrder(id: string, options?: AxiosRequestConfig): AxiosPromise<KdsRevertOrderResponseDto>;
26961
27546
 
26962
27547
  }
26963
27548
 
@@ -26972,13 +27557,50 @@ export class KDSApi extends BaseAPI implements KDSApiInterface {
26972
27557
  *
26973
27558
  * @summary Get KDS orders by status
26974
27559
  * @param {'IN_PROGRESS' | 'READY' | 'DELIVERED' | 'REJECTED'} status Order status filter
27560
+ * @param {string} businessIds Comma-separated list of business IDs
26975
27561
  * @param {string} profileId KDS Profile ID
26976
27562
  * @param {*} [options] Override http request option.
26977
27563
  * @throws {RequiredError}
26978
27564
  * @memberof KDSApi
26979
27565
  */
26980
- public kdsGetOrders(status: 'IN_PROGRESS' | 'READY' | 'DELIVERED' | 'REJECTED', profileId: string, options?: AxiosRequestConfig) {
26981
- return KDSApiFp(this.configuration).kdsGetOrders(status, profileId, options).then((request) => request(this.axios, this.basePath));
27566
+ public kdsGetOrders(status: 'IN_PROGRESS' | 'READY' | 'DELIVERED' | 'REJECTED', businessIds: string, profileId: string, options?: AxiosRequestConfig) {
27567
+ return KDSApiFp(this.configuration).kdsGetOrders(status, businessIds, profileId, options).then((request) => request(this.axios, this.basePath));
27568
+ }
27569
+
27570
+ /**
27571
+ *
27572
+ * @summary Get KDS profiles for a business
27573
+ * @param {number} businessId Business ID
27574
+ * @param {*} [options] Override http request option.
27575
+ * @throws {RequiredError}
27576
+ * @memberof KDSApi
27577
+ */
27578
+ public kdsGetProfiles(businessId: number, options?: AxiosRequestConfig) {
27579
+ return KDSApiFp(this.configuration).kdsGetProfiles(businessId, options).then((request) => request(this.axios, this.basePath));
27580
+ }
27581
+
27582
+ /**
27583
+ *
27584
+ * @summary Mark a KDS order as ready
27585
+ * @param {string} id KDS order ID
27586
+ * @param {*} [options] Override http request option.
27587
+ * @throws {RequiredError}
27588
+ * @memberof KDSApi
27589
+ */
27590
+ public kdsMarkOrderReady(id: string, options?: AxiosRequestConfig) {
27591
+ return KDSApiFp(this.configuration).kdsMarkOrderReady(id, options).then((request) => request(this.axios, this.basePath));
27592
+ }
27593
+
27594
+ /**
27595
+ *
27596
+ * @summary Revert a KDS order back to in progress
27597
+ * @param {string} id KDS order ID
27598
+ * @param {*} [options] Override http request option.
27599
+ * @throws {RequiredError}
27600
+ * @memberof KDSApi
27601
+ */
27602
+ public kdsRevertOrder(id: string, options?: AxiosRequestConfig) {
27603
+ return KDSApiFp(this.configuration).kdsRevertOrder(id, options).then((request) => request(this.axios, this.basePath));
26982
27604
  }
26983
27605
  }
26984
27606
 
@@ -29160,6 +29782,10 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
29160
29782
  const localVarHeaderParameter = {} as any;
29161
29783
  const localVarQueryParameter = {} as any;
29162
29784
 
29785
+ if (businessIds !== undefined) {
29786
+ localVarQueryParameter['businessIds'] = businessIds;
29787
+ }
29788
+
29163
29789
  if (posBusinessId !== undefined) {
29164
29790
  localVarQueryParameter['posBusinessId'] = posBusinessId;
29165
29791
  }
@@ -29168,10 +29794,6 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
29168
29794
  localVarQueryParameter['extraProvider'] = extraProvider;
29169
29795
  }
29170
29796
 
29171
- if (businessIds !== undefined) {
29172
- localVarQueryParameter['businessIds'] = businessIds;
29173
- }
29174
-
29175
29797
 
29176
29798
 
29177
29799
  setSearchParams(localVarUrlObj, localVarQueryParameter);