@munchi_oy/core 2.0.6 → 2.0.7

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
@@ -3602,6 +3602,25 @@ export interface CreateInvoiceCompanyDto {
3602
3602
  */
3603
3603
  'address'?: string;
3604
3604
  }
3605
+ /**
3606
+ *
3607
+ * @export
3608
+ * @interface CreateKdsStationsDto
3609
+ */
3610
+ export interface CreateKdsStationsDto {
3611
+ /**
3612
+ * The Munchi venue id (orderingBusinessId) the stations are created at
3613
+ * @type {number}
3614
+ * @memberof CreateKdsStationsDto
3615
+ */
3616
+ 'businessId': number;
3617
+ /**
3618
+ * The stations to create, at least one; all are created, or none
3619
+ * @type {Array<NewKdsStationDto>}
3620
+ * @memberof CreateKdsStationsDto
3621
+ */
3622
+ 'stations': Array<NewKdsStationDto>;
3623
+ }
3605
3624
  /**
3606
3625
  *
3607
3626
  * @export
@@ -5878,7 +5897,7 @@ export interface DisconnectedDeliveryPlatformDto {
5878
5897
  */
5879
5898
  'channel': DeliveryPlatformOpsConnect;
5880
5899
  /**
5881
- * The store ids of the rows made inactive: one, unless rows were written by hand under several. Kept, so a connect with the same store id reactivates its row
5900
+ * The store ids of the rows deleted: one, unless rows were written by hand under several
5882
5901
  * @type {Array<string>}
5883
5902
  * @memberof DisconnectedDeliveryPlatformDto
5884
5903
  */
@@ -10634,6 +10653,45 @@ export interface KdsRevertOrderResponseDtoOrder {
10634
10653
  }
10635
10654
 
10636
10655
 
10656
+ /**
10657
+ *
10658
+ * @export
10659
+ * @interface KdsStationDto
10660
+ */
10661
+ export interface KdsStationDto {
10662
+ /**
10663
+ * The station\'s id in kds-service (its KDS profile id)
10664
+ * @type {string}
10665
+ * @memberof KdsStationDto
10666
+ */
10667
+ 'id': string;
10668
+ /**
10669
+ * The venue the station belongs to (orderingBusinessId)
10670
+ * @type {number}
10671
+ * @memberof KdsStationDto
10672
+ */
10673
+ 'businessId': number;
10674
+ /**
10675
+ * The station\'s name, as the venue set it
10676
+ * @type {string}
10677
+ * @memberof KdsStationDto
10678
+ */
10679
+ 'name': string;
10680
+ /**
10681
+ *
10682
+ * @type {SystemProfileType}
10683
+ * @memberof KdsStationDto
10684
+ */
10685
+ 'systemType': SystemProfileType | null;
10686
+ /**
10687
+ * The ids of the venue\'s menu categories whose items this station shows, as text; an item of a subcategory goes to the station of its nearest category listed here. A category is on one station only: listing it here takes it off the station that had it. An empty list makes the station show the items no station lists
10688
+ * @type {Array<string>}
10689
+ * @memberof KdsStationDto
10690
+ */
10691
+ 'categoryIds': Array<string>;
10692
+ }
10693
+
10694
+
10637
10695
  /**
10638
10696
  *
10639
10697
  * @export
@@ -13447,6 +13505,25 @@ export interface NetsTransactionSuccessResponseDto {
13447
13505
  */
13448
13506
  'result': Array<NetsTransactionResultDto>;
13449
13507
  }
13508
+ /**
13509
+ *
13510
+ * @export
13511
+ * @interface NewKdsStationDto
13512
+ */
13513
+ export interface NewKdsStationDto {
13514
+ /**
13515
+ * The new station\'s name
13516
+ * @type {string}
13517
+ * @memberof NewKdsStationDto
13518
+ */
13519
+ 'name': string;
13520
+ /**
13521
+ * The ids of the venue\'s menu categories whose items this station shows, as text; an item of a subcategory goes to the station of its nearest category listed here. A category is on one station only: listing it here takes it off the station that had it. An empty list makes the station show the items no station lists
13522
+ * @type {Array<string>}
13523
+ * @memberof NewKdsStationDto
13524
+ */
13525
+ 'categoryIds': Array<string>;
13526
+ }
13450
13527
  /**
13451
13528
  *
13452
13529
  * @export
@@ -24371,6 +24448,12 @@ export interface ReservationAvailabilitySlotDto {
24371
24448
  * @memberof ReservationAvailabilitySlotDto
24372
24449
  */
24373
24450
  'availableTables': number;
24451
+ /**
24452
+ * Minutes left until closing when the turn (turnTimeMins) would run past it, the duration to book so the booking ends at closing under the venue\'s last seating; absent when the whole turn fits. The tables are still checked free for the whole turn
24453
+ * @type {number}
24454
+ * @memberof ReservationAvailabilitySlotDto
24455
+ */
24456
+ 'durationMins'?: number;
24374
24457
  }
24375
24458
  /**
24376
24459
  *
@@ -30995,6 +31078,31 @@ export interface UpdateInvoiceCompanyDto {
30995
31078
  */
30996
31079
  'address'?: string;
30997
31080
  }
31081
+ /**
31082
+ *
31083
+ * @export
31084
+ * @interface UpdateKdsStationDto
31085
+ */
31086
+ export interface UpdateKdsStationDto {
31087
+ /**
31088
+ * The Munchi venue id (orderingBusinessId) the station belongs to
31089
+ * @type {number}
31090
+ * @memberof UpdateKdsStationDto
31091
+ */
31092
+ 'businessId': number;
31093
+ /**
31094
+ * The station\'s new name; absent keeps its name
31095
+ * @type {string}
31096
+ * @memberof UpdateKdsStationDto
31097
+ */
31098
+ 'name'?: string;
31099
+ /**
31100
+ * The station\'s complete new list of categories: it replaces the list it had. The ids of the venue\'s menu categories whose items this station shows, as text; an item of a subcategory goes to the station of its nearest category listed here. A category is on one station only: listing it here takes it off the station that had it. An empty list makes the station show the items no station lists
31101
+ * @type {Array<string>}
31102
+ * @memberof UpdateKdsStationDto
31103
+ */
31104
+ 'categoryIds': Array<string>;
31105
+ }
30998
31106
  /**
30999
31107
  *
31000
31108
  * @export
@@ -31238,7 +31346,7 @@ export interface UpdateReservationPolicyDto {
31238
31346
  */
31239
31347
  'maxHorizonDays'?: number;
31240
31348
  /**
31241
- * The last seating: no slot starts later than this many minutes before each opening closes; 0 (only the turn must fit) on create when absent
31349
+ * The last seating: slots start until this many minutes before each opening closes, and a slot whose turn would run past closing answers durationMins, the minutes left until closing; 0 (no last seating: the turn and its buffer must fit before closing) on create when absent
31242
31350
  * @type {number}
31243
31351
  * @memberof UpdateReservationPolicyDto
31244
31352
  */
@@ -31350,6 +31458,32 @@ export interface UpdateTableStatusDto {
31350
31458
  }
31351
31459
 
31352
31460
 
31461
+ /**
31462
+ *
31463
+ * @export
31464
+ * @interface UpdateVenueProvidersDto
31465
+ */
31466
+ export interface UpdateVenueProvidersDto {
31467
+ /**
31468
+ * One entry per channel to change, each asking at least one change. A channel named twice is refused. Every row of the venue on the channel changes, active or not, except that isActive true on a platform (Wolt, WoltStorefront, UberEats, Foodora, Bolt, ResQ) turns on only its newest row
31469
+ * @type {Array<VenueProviderChangeDto>}
31470
+ * @memberof UpdateVenueProvidersDto
31471
+ */
31472
+ 'providers': Array<VenueProviderChangeDto>;
31473
+ }
31474
+ /**
31475
+ *
31476
+ * @export
31477
+ * @interface UpdatedVenueProvidersDto
31478
+ */
31479
+ export interface UpdatedVenueProvidersDto {
31480
+ /**
31481
+ * One entry per channel sent, in the order sent
31482
+ * @type {Array<VenueProviderOutcomeDto>}
31483
+ * @memberof UpdatedVenueProvidersDto
31484
+ */
31485
+ 'providers': Array<VenueProviderOutcomeDto>;
31486
+ }
31353
31487
  /**
31354
31488
  *
31355
31489
  * @export
@@ -32455,6 +32589,136 @@ export interface VenueListEntryDto {
32455
32589
  */
32456
32590
  'businessName': string;
32457
32591
  }
32592
+ /**
32593
+ *
32594
+ * @export
32595
+ * @interface VenueProviderChangeDto
32596
+ */
32597
+ export interface VenueProviderChangeDto {
32598
+ /**
32599
+ *
32600
+ * @type {ProviderEnum}
32601
+ * @memberof VenueProviderChangeDto
32602
+ */
32603
+ 'channel': ProviderEnum;
32604
+ /**
32605
+ *
32606
+ * @type {VenueProviderChangeDtoIntegrations}
32607
+ * @memberof VenueProviderChangeDto
32608
+ */
32609
+ 'integrations'?: VenueProviderChangeDtoIntegrations;
32610
+ /**
32611
+ * false turns the channel off at the venue (its rows stay, never deleted); true turns it on. Absent: left as it is
32612
+ * @type {boolean}
32613
+ * @memberof VenueProviderChangeDto
32614
+ */
32615
+ 'isActive'?: boolean;
32616
+ /**
32617
+ * Whether the channel\'s orders are accepted without the till. Absent: left as it is
32618
+ * @type {boolean}
32619
+ * @memberof VenueProviderChangeDto
32620
+ */
32621
+ 'autoAccept'?: boolean;
32622
+ }
32623
+
32624
+
32625
+ /**
32626
+ * Integrations to switch on (true) or off (false) on the channel\'s rows, by IntegrationType. An integration left out keeps its state; absent: none changes
32627
+ * @export
32628
+ * @interface VenueProviderChangeDtoIntegrations
32629
+ */
32630
+ export interface VenueProviderChangeDtoIntegrations {
32631
+ /**
32632
+ *
32633
+ * @type {boolean}
32634
+ * @memberof VenueProviderChangeDtoIntegrations
32635
+ */
32636
+ 'ORDERS'?: boolean;
32637
+ /**
32638
+ *
32639
+ * @type {boolean}
32640
+ * @memberof VenueProviderChangeDtoIntegrations
32641
+ */
32642
+ 'MENU'?: boolean;
32643
+ /**
32644
+ *
32645
+ * @type {boolean}
32646
+ * @memberof VenueProviderChangeDtoIntegrations
32647
+ */
32648
+ 'VENUE'?: boolean;
32649
+ /**
32650
+ *
32651
+ * @type {boolean}
32652
+ * @memberof VenueProviderChangeDtoIntegrations
32653
+ */
32654
+ 'KDS'?: boolean;
32655
+ /**
32656
+ *
32657
+ * @type {boolean}
32658
+ * @memberof VenueProviderChangeDtoIntegrations
32659
+ */
32660
+ 'AYCE'?: boolean;
32661
+ }
32662
+ /**
32663
+ *
32664
+ * @export
32665
+ * @enum {string}
32666
+ */
32667
+
32668
+ export const VenueProviderOutcome = {
32669
+ Created: 'created',
32670
+ Updated: 'updated',
32671
+ Unchanged: 'unchanged'
32672
+ } as const;
32673
+
32674
+ export type VenueProviderOutcome = typeof VenueProviderOutcome[keyof typeof VenueProviderOutcome];
32675
+
32676
+
32677
+ /**
32678
+ *
32679
+ * @export
32680
+ * @interface VenueProviderOutcomeDto
32681
+ */
32682
+ export interface VenueProviderOutcomeDto {
32683
+ /**
32684
+ *
32685
+ * @type {ProviderEnum}
32686
+ * @memberof VenueProviderOutcomeDto
32687
+ */
32688
+ 'channel': ProviderEnum;
32689
+ /**
32690
+ *
32691
+ * @type {VenueProviderOutcome}
32692
+ * @memberof VenueProviderOutcomeDto
32693
+ */
32694
+ 'outcome': VenueProviderOutcome;
32695
+ /**
32696
+ * How many of the venue\'s rows on the channel changed or were added; a venue may have several rows on one channel
32697
+ * @type {number}
32698
+ * @memberof VenueProviderOutcomeDto
32699
+ */
32700
+ 'rowsChanged': number;
32701
+ /**
32702
+ * Whether the channel is on, as its row reads after the change: the first active row, else the first row, by store id
32703
+ * @type {boolean}
32704
+ * @memberof VenueProviderOutcomeDto
32705
+ */
32706
+ 'isActive': boolean;
32707
+ /**
32708
+ * Whether the channel\'s orders are accepted without the till, as the same row reads after the change
32709
+ * @type {boolean}
32710
+ * @memberof VenueProviderOutcomeDto
32711
+ */
32712
+ 'autoAccept': boolean;
32713
+ /**
32714
+ * The integrations the same row takes after the change
32715
+ * @type {Array<IntegrationType>}
32716
+ * @memberof VenueProviderOutcomeDto
32717
+ */
32718
+ 'integrations': Array<IntegrationType>;
32719
+ }
32720
+
32721
+
32458
32722
  /**
32459
32723
  *
32460
32724
  * @export
@@ -45301,6 +45565,91 @@ export class InvoiceCompaniesApi extends BaseAPI implements InvoiceCompaniesApiI
45301
45565
  */
45302
45566
  export const KDSApiAxiosParamCreator = function (configuration?: Configuration) {
45303
45567
  return {
45568
+ /**
45569
+ * Written in kds-service in one transaction: every station is created, or none is. It admits a signed-in ticket, whose venue must be on its account, or a Clerk API key; never the shared service key.
45570
+ * @summary Create several kitchen stations at once, each with its categories
45571
+ * @param {CreateKdsStationsDto} createKdsStationsDto The venue and the stations to create
45572
+ * @param {*} [options] Override http request option.
45573
+ * @throws {RequiredError}
45574
+ */
45575
+ createKdsStations: async (createKdsStationsDto: CreateKdsStationsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
45576
+ // verify required parameter 'createKdsStationsDto' is not null or undefined
45577
+ assertParamExists('createKdsStations', 'createKdsStationsDto', createKdsStationsDto)
45578
+ const localVarPath = `/api/v2/kds/stations`;
45579
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
45580
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
45581
+ let baseOptions;
45582
+ if (configuration) {
45583
+ baseOptions = configuration.baseOptions;
45584
+ }
45585
+
45586
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
45587
+ const localVarHeaderParameter = {} as any;
45588
+ const localVarQueryParameter = {} as any;
45589
+
45590
+ // authentication JWT-auth required
45591
+ // http bearer authentication required
45592
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
45593
+
45594
+
45595
+
45596
+ localVarHeaderParameter['Content-Type'] = 'application/json';
45597
+
45598
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
45599
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
45600
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
45601
+ localVarRequestOptions.data = serializeDataIfNeeded(createKdsStationsDto, localVarRequestOptions, configuration)
45602
+
45603
+ return {
45604
+ url: toPathString(localVarUrlObj),
45605
+ options: localVarRequestOptions,
45606
+ };
45607
+ },
45608
+ /**
45609
+ * kds-service soft-deletes the station: it receives no more tickets and leaves every list. The station must be one of the venue\'s active stations. It admits a signed-in ticket, whose venue must be on its account, or a Clerk API key; never the shared service key.
45610
+ * @summary Delete a kitchen station
45611
+ * @param {string} stationId The station\&#39;s id in kds-service (its KDS profile id)
45612
+ * @param {number} businessId The Munchi venue id (orderingBusinessId)
45613
+ * @param {*} [options] Override http request option.
45614
+ * @throws {RequiredError}
45615
+ */
45616
+ deleteKdsStation: async (stationId: string, businessId: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
45617
+ // verify required parameter 'stationId' is not null or undefined
45618
+ assertParamExists('deleteKdsStation', 'stationId', stationId)
45619
+ // verify required parameter 'businessId' is not null or undefined
45620
+ assertParamExists('deleteKdsStation', 'businessId', businessId)
45621
+ const localVarPath = `/api/v2/kds/stations/{stationId}`
45622
+ .replace(`{${"stationId"}}`, encodeURIComponent(String(stationId)));
45623
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
45624
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
45625
+ let baseOptions;
45626
+ if (configuration) {
45627
+ baseOptions = configuration.baseOptions;
45628
+ }
45629
+
45630
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
45631
+ const localVarHeaderParameter = {} as any;
45632
+ const localVarQueryParameter = {} as any;
45633
+
45634
+ // authentication JWT-auth required
45635
+ // http bearer authentication required
45636
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
45637
+
45638
+ if (businessId !== undefined) {
45639
+ localVarQueryParameter['businessId'] = businessId;
45640
+ }
45641
+
45642
+
45643
+
45644
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
45645
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
45646
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
45647
+
45648
+ return {
45649
+ url: toPathString(localVarUrlObj),
45650
+ options: localVarRequestOptions,
45651
+ };
45652
+ },
45304
45653
  /**
45305
45654
  * Read from kds-service. The status is passed on as sent: the kitchen screen asks for IN_PROGRESS and READY.
45306
45655
  * @summary List one station\'s kitchen orders in one state, a page at a time
@@ -45545,6 +45894,91 @@ export const KDSApiAxiosParamCreator = function (configuration?: Configuration)
45545
45894
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
45546
45895
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
45547
45896
 
45897
+ return {
45898
+ url: toPathString(localVarUrlObj),
45899
+ options: localVarRequestOptions,
45900
+ };
45901
+ },
45902
+ /**
45903
+ * Read from kds-service: the venue\'s active stations, each with the menu categories it shows. It admits a signed-in ticket, whose venue must be on its account, or a Clerk API key; never the shared service key.
45904
+ * @summary List the venue\'s kitchen stations with their categories
45905
+ * @param {number} businessId The Munchi venue id (orderingBusinessId)
45906
+ * @param {*} [options] Override http request option.
45907
+ * @throws {RequiredError}
45908
+ */
45909
+ listKdsStations: async (businessId: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
45910
+ // verify required parameter 'businessId' is not null or undefined
45911
+ assertParamExists('listKdsStations', 'businessId', businessId)
45912
+ const localVarPath = `/api/v2/kds/stations`;
45913
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
45914
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
45915
+ let baseOptions;
45916
+ if (configuration) {
45917
+ baseOptions = configuration.baseOptions;
45918
+ }
45919
+
45920
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
45921
+ const localVarHeaderParameter = {} as any;
45922
+ const localVarQueryParameter = {} as any;
45923
+
45924
+ // authentication JWT-auth required
45925
+ // http bearer authentication required
45926
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
45927
+
45928
+ if (businessId !== undefined) {
45929
+ localVarQueryParameter['businessId'] = businessId;
45930
+ }
45931
+
45932
+
45933
+
45934
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
45935
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
45936
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
45937
+
45938
+ return {
45939
+ url: toPathString(localVarUrlObj),
45940
+ options: localVarRequestOptions,
45941
+ };
45942
+ },
45943
+ /**
45944
+ * The station\'s categories become exactly the list sent, in one kds-service transaction; its name changes only when one is sent. The station must be one of the venue\'s active stations. It admits a signed-in ticket, whose venue must be on its account, or a Clerk API key; never the shared service key.
45945
+ * @summary Rename a kitchen station and replace its categories
45946
+ * @param {string} stationId The station\&#39;s id in kds-service (its KDS profile id)
45947
+ * @param {UpdateKdsStationDto} updateKdsStationDto The venue, and the station\&#39;s new name and categories
45948
+ * @param {*} [options] Override http request option.
45949
+ * @throws {RequiredError}
45950
+ */
45951
+ updateKdsStation: async (stationId: string, updateKdsStationDto: UpdateKdsStationDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
45952
+ // verify required parameter 'stationId' is not null or undefined
45953
+ assertParamExists('updateKdsStation', 'stationId', stationId)
45954
+ // verify required parameter 'updateKdsStationDto' is not null or undefined
45955
+ assertParamExists('updateKdsStation', 'updateKdsStationDto', updateKdsStationDto)
45956
+ const localVarPath = `/api/v2/kds/stations/{stationId}`
45957
+ .replace(`{${"stationId"}}`, encodeURIComponent(String(stationId)));
45958
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
45959
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
45960
+ let baseOptions;
45961
+ if (configuration) {
45962
+ baseOptions = configuration.baseOptions;
45963
+ }
45964
+
45965
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
45966
+ const localVarHeaderParameter = {} as any;
45967
+ const localVarQueryParameter = {} as any;
45968
+
45969
+ // authentication JWT-auth required
45970
+ // http bearer authentication required
45971
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
45972
+
45973
+
45974
+
45975
+ localVarHeaderParameter['Content-Type'] = 'application/json';
45976
+
45977
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
45978
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
45979
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
45980
+ localVarRequestOptions.data = serializeDataIfNeeded(updateKdsStationDto, localVarRequestOptions, configuration)
45981
+
45548
45982
  return {
45549
45983
  url: toPathString(localVarUrlObj),
45550
45984
  options: localVarRequestOptions,
@@ -45560,6 +45994,29 @@ export const KDSApiAxiosParamCreator = function (configuration?: Configuration)
45560
45994
  export const KDSApiFp = function(configuration?: Configuration) {
45561
45995
  const localVarAxiosParamCreator = KDSApiAxiosParamCreator(configuration)
45562
45996
  return {
45997
+ /**
45998
+ * Written in kds-service in one transaction: every station is created, or none is. It admits a signed-in ticket, whose venue must be on its account, or a Clerk API key; never the shared service key.
45999
+ * @summary Create several kitchen stations at once, each with its categories
46000
+ * @param {CreateKdsStationsDto} createKdsStationsDto The venue and the stations to create
46001
+ * @param {*} [options] Override http request option.
46002
+ * @throws {RequiredError}
46003
+ */
46004
+ async createKdsStations(createKdsStationsDto: CreateKdsStationsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<KdsStationDto>>> {
46005
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createKdsStations(createKdsStationsDto, options);
46006
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
46007
+ },
46008
+ /**
46009
+ * kds-service soft-deletes the station: it receives no more tickets and leaves every list. The station must be one of the venue\'s active stations. It admits a signed-in ticket, whose venue must be on its account, or a Clerk API key; never the shared service key.
46010
+ * @summary Delete a kitchen station
46011
+ * @param {string} stationId The station\&#39;s id in kds-service (its KDS profile id)
46012
+ * @param {number} businessId The Munchi venue id (orderingBusinessId)
46013
+ * @param {*} [options] Override http request option.
46014
+ * @throws {RequiredError}
46015
+ */
46016
+ async deleteKdsStation(stationId: string, businessId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<KdsStationDto>> {
46017
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteKdsStation(stationId, businessId, options);
46018
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
46019
+ },
45563
46020
  /**
45564
46021
  * Read from kds-service. The status is passed on as sent: the kitchen screen asks for IN_PROGRESS and READY.
45565
46022
  * @summary List one station\'s kitchen orders in one state, a page at a time
@@ -45625,6 +46082,29 @@ export const KDSApiFp = function(configuration?: Configuration) {
45625
46082
  const localVarAxiosArgs = await localVarAxiosParamCreator.kdsRevertOrder(id, options);
45626
46083
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
45627
46084
  },
46085
+ /**
46086
+ * Read from kds-service: the venue\'s active stations, each with the menu categories it shows. It admits a signed-in ticket, whose venue must be on its account, or a Clerk API key; never the shared service key.
46087
+ * @summary List the venue\'s kitchen stations with their categories
46088
+ * @param {number} businessId The Munchi venue id (orderingBusinessId)
46089
+ * @param {*} [options] Override http request option.
46090
+ * @throws {RequiredError}
46091
+ */
46092
+ async listKdsStations(businessId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<KdsStationDto>>> {
46093
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listKdsStations(businessId, options);
46094
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
46095
+ },
46096
+ /**
46097
+ * The station\'s categories become exactly the list sent, in one kds-service transaction; its name changes only when one is sent. The station must be one of the venue\'s active stations. It admits a signed-in ticket, whose venue must be on its account, or a Clerk API key; never the shared service key.
46098
+ * @summary Rename a kitchen station and replace its categories
46099
+ * @param {string} stationId The station\&#39;s id in kds-service (its KDS profile id)
46100
+ * @param {UpdateKdsStationDto} updateKdsStationDto The venue, and the station\&#39;s new name and categories
46101
+ * @param {*} [options] Override http request option.
46102
+ * @throws {RequiredError}
46103
+ */
46104
+ async updateKdsStation(stationId: string, updateKdsStationDto: UpdateKdsStationDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<KdsStationDto>> {
46105
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateKdsStation(stationId, updateKdsStationDto, options);
46106
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
46107
+ },
45628
46108
  }
45629
46109
  };
45630
46110
 
@@ -45635,6 +46115,27 @@ export const KDSApiFp = function(configuration?: Configuration) {
45635
46115
  export const KDSApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
45636
46116
  const localVarFp = KDSApiFp(configuration)
45637
46117
  return {
46118
+ /**
46119
+ * Written in kds-service in one transaction: every station is created, or none is. It admits a signed-in ticket, whose venue must be on its account, or a Clerk API key; never the shared service key.
46120
+ * @summary Create several kitchen stations at once, each with its categories
46121
+ * @param {CreateKdsStationsDto} createKdsStationsDto The venue and the stations to create
46122
+ * @param {*} [options] Override http request option.
46123
+ * @throws {RequiredError}
46124
+ */
46125
+ createKdsStations(createKdsStationsDto: CreateKdsStationsDto, options?: any): AxiosPromise<Array<KdsStationDto>> {
46126
+ return localVarFp.createKdsStations(createKdsStationsDto, options).then((request) => request(axios, basePath));
46127
+ },
46128
+ /**
46129
+ * kds-service soft-deletes the station: it receives no more tickets and leaves every list. The station must be one of the venue\'s active stations. It admits a signed-in ticket, whose venue must be on its account, or a Clerk API key; never the shared service key.
46130
+ * @summary Delete a kitchen station
46131
+ * @param {string} stationId The station\&#39;s id in kds-service (its KDS profile id)
46132
+ * @param {number} businessId The Munchi venue id (orderingBusinessId)
46133
+ * @param {*} [options] Override http request option.
46134
+ * @throws {RequiredError}
46135
+ */
46136
+ deleteKdsStation(stationId: string, businessId: number, options?: any): AxiosPromise<KdsStationDto> {
46137
+ return localVarFp.deleteKdsStation(stationId, businessId, options).then((request) => request(axios, basePath));
46138
+ },
45638
46139
  /**
45639
46140
  * Read from kds-service. The status is passed on as sent: the kitchen screen asks for IN_PROGRESS and READY.
45640
46141
  * @summary List one station\'s kitchen orders in one state, a page at a time
@@ -45695,6 +46196,27 @@ export const KDSApiFactory = function (configuration?: Configuration, basePath?:
45695
46196
  kdsRevertOrder(id: string, options?: any): AxiosPromise<KdsRevertOrderResponseDto> {
45696
46197
  return localVarFp.kdsRevertOrder(id, options).then((request) => request(axios, basePath));
45697
46198
  },
46199
+ /**
46200
+ * Read from kds-service: the venue\'s active stations, each with the menu categories it shows. It admits a signed-in ticket, whose venue must be on its account, or a Clerk API key; never the shared service key.
46201
+ * @summary List the venue\'s kitchen stations with their categories
46202
+ * @param {number} businessId The Munchi venue id (orderingBusinessId)
46203
+ * @param {*} [options] Override http request option.
46204
+ * @throws {RequiredError}
46205
+ */
46206
+ listKdsStations(businessId: number, options?: any): AxiosPromise<Array<KdsStationDto>> {
46207
+ return localVarFp.listKdsStations(businessId, options).then((request) => request(axios, basePath));
46208
+ },
46209
+ /**
46210
+ * The station\'s categories become exactly the list sent, in one kds-service transaction; its name changes only when one is sent. The station must be one of the venue\'s active stations. It admits a signed-in ticket, whose venue must be on its account, or a Clerk API key; never the shared service key.
46211
+ * @summary Rename a kitchen station and replace its categories
46212
+ * @param {string} stationId The station\&#39;s id in kds-service (its KDS profile id)
46213
+ * @param {UpdateKdsStationDto} updateKdsStationDto The venue, and the station\&#39;s new name and categories
46214
+ * @param {*} [options] Override http request option.
46215
+ * @throws {RequiredError}
46216
+ */
46217
+ updateKdsStation(stationId: string, updateKdsStationDto: UpdateKdsStationDto, options?: any): AxiosPromise<KdsStationDto> {
46218
+ return localVarFp.updateKdsStation(stationId, updateKdsStationDto, options).then((request) => request(axios, basePath));
46219
+ },
45698
46220
  };
45699
46221
  };
45700
46222
 
@@ -45704,6 +46226,27 @@ export const KDSApiFactory = function (configuration?: Configuration, basePath?:
45704
46226
  * @interface KDSApi
45705
46227
  */
45706
46228
  export interface KDSApiInterface {
46229
+ /**
46230
+ * Written in kds-service in one transaction: every station is created, or none is. It admits a signed-in ticket, whose venue must be on its account, or a Clerk API key; never the shared service key.
46231
+ * @summary Create several kitchen stations at once, each with its categories
46232
+ * @param {CreateKdsStationsDto} createKdsStationsDto The venue and the stations to create
46233
+ * @param {*} [options] Override http request option.
46234
+ * @throws {RequiredError}
46235
+ * @memberof KDSApiInterface
46236
+ */
46237
+ createKdsStations(createKdsStationsDto: CreateKdsStationsDto, options?: AxiosRequestConfig): AxiosPromise<Array<KdsStationDto>>;
46238
+
46239
+ /**
46240
+ * kds-service soft-deletes the station: it receives no more tickets and leaves every list. The station must be one of the venue\'s active stations. It admits a signed-in ticket, whose venue must be on its account, or a Clerk API key; never the shared service key.
46241
+ * @summary Delete a kitchen station
46242
+ * @param {string} stationId The station\&#39;s id in kds-service (its KDS profile id)
46243
+ * @param {number} businessId The Munchi venue id (orderingBusinessId)
46244
+ * @param {*} [options] Override http request option.
46245
+ * @throws {RequiredError}
46246
+ * @memberof KDSApiInterface
46247
+ */
46248
+ deleteKdsStation(stationId: string, businessId: number, options?: AxiosRequestConfig): AxiosPromise<KdsStationDto>;
46249
+
45707
46250
  /**
45708
46251
  * Read from kds-service. The status is passed on as sent: the kitchen screen asks for IN_PROGRESS and READY.
45709
46252
  * @summary List one station\'s kitchen orders in one state, a page at a time
@@ -45764,6 +46307,27 @@ export interface KDSApiInterface {
45764
46307
  */
45765
46308
  kdsRevertOrder(id: string, options?: AxiosRequestConfig): AxiosPromise<KdsRevertOrderResponseDto>;
45766
46309
 
46310
+ /**
46311
+ * Read from kds-service: the venue\'s active stations, each with the menu categories it shows. It admits a signed-in ticket, whose venue must be on its account, or a Clerk API key; never the shared service key.
46312
+ * @summary List the venue\'s kitchen stations with their categories
46313
+ * @param {number} businessId The Munchi venue id (orderingBusinessId)
46314
+ * @param {*} [options] Override http request option.
46315
+ * @throws {RequiredError}
46316
+ * @memberof KDSApiInterface
46317
+ */
46318
+ listKdsStations(businessId: number, options?: AxiosRequestConfig): AxiosPromise<Array<KdsStationDto>>;
46319
+
46320
+ /**
46321
+ * The station\'s categories become exactly the list sent, in one kds-service transaction; its name changes only when one is sent. The station must be one of the venue\'s active stations. It admits a signed-in ticket, whose venue must be on its account, or a Clerk API key; never the shared service key.
46322
+ * @summary Rename a kitchen station and replace its categories
46323
+ * @param {string} stationId The station\&#39;s id in kds-service (its KDS profile id)
46324
+ * @param {UpdateKdsStationDto} updateKdsStationDto The venue, and the station\&#39;s new name and categories
46325
+ * @param {*} [options] Override http request option.
46326
+ * @throws {RequiredError}
46327
+ * @memberof KDSApiInterface
46328
+ */
46329
+ updateKdsStation(stationId: string, updateKdsStationDto: UpdateKdsStationDto, options?: AxiosRequestConfig): AxiosPromise<KdsStationDto>;
46330
+
45767
46331
  }
45768
46332
 
45769
46333
  /**
@@ -45773,6 +46337,31 @@ export interface KDSApiInterface {
45773
46337
  * @extends {BaseAPI}
45774
46338
  */
45775
46339
  export class KDSApi extends BaseAPI implements KDSApiInterface {
46340
+ /**
46341
+ * Written in kds-service in one transaction: every station is created, or none is. It admits a signed-in ticket, whose venue must be on its account, or a Clerk API key; never the shared service key.
46342
+ * @summary Create several kitchen stations at once, each with its categories
46343
+ * @param {CreateKdsStationsDto} createKdsStationsDto The venue and the stations to create
46344
+ * @param {*} [options] Override http request option.
46345
+ * @throws {RequiredError}
46346
+ * @memberof KDSApi
46347
+ */
46348
+ public createKdsStations(createKdsStationsDto: CreateKdsStationsDto, options?: AxiosRequestConfig) {
46349
+ return KDSApiFp(this.configuration).createKdsStations(createKdsStationsDto, options).then((request) => request(this.axios, this.basePath));
46350
+ }
46351
+
46352
+ /**
46353
+ * kds-service soft-deletes the station: it receives no more tickets and leaves every list. The station must be one of the venue\'s active stations. It admits a signed-in ticket, whose venue must be on its account, or a Clerk API key; never the shared service key.
46354
+ * @summary Delete a kitchen station
46355
+ * @param {string} stationId The station\&#39;s id in kds-service (its KDS profile id)
46356
+ * @param {number} businessId The Munchi venue id (orderingBusinessId)
46357
+ * @param {*} [options] Override http request option.
46358
+ * @throws {RequiredError}
46359
+ * @memberof KDSApi
46360
+ */
46361
+ public deleteKdsStation(stationId: string, businessId: number, options?: AxiosRequestConfig) {
46362
+ return KDSApiFp(this.configuration).deleteKdsStation(stationId, businessId, options).then((request) => request(this.axios, this.basePath));
46363
+ }
46364
+
45776
46365
  /**
45777
46366
  * Read from kds-service. The status is passed on as sent: the kitchen screen asks for IN_PROGRESS and READY.
45778
46367
  * @summary List one station\'s kitchen orders in one state, a page at a time
@@ -45842,6 +46431,31 @@ export class KDSApi extends BaseAPI implements KDSApiInterface {
45842
46431
  public kdsRevertOrder(id: string, options?: AxiosRequestConfig) {
45843
46432
  return KDSApiFp(this.configuration).kdsRevertOrder(id, options).then((request) => request(this.axios, this.basePath));
45844
46433
  }
46434
+
46435
+ /**
46436
+ * Read from kds-service: the venue\'s active stations, each with the menu categories it shows. It admits a signed-in ticket, whose venue must be on its account, or a Clerk API key; never the shared service key.
46437
+ * @summary List the venue\'s kitchen stations with their categories
46438
+ * @param {number} businessId The Munchi venue id (orderingBusinessId)
46439
+ * @param {*} [options] Override http request option.
46440
+ * @throws {RequiredError}
46441
+ * @memberof KDSApi
46442
+ */
46443
+ public listKdsStations(businessId: number, options?: AxiosRequestConfig) {
46444
+ return KDSApiFp(this.configuration).listKdsStations(businessId, options).then((request) => request(this.axios, this.basePath));
46445
+ }
46446
+
46447
+ /**
46448
+ * The station\'s categories become exactly the list sent, in one kds-service transaction; its name changes only when one is sent. The station must be one of the venue\'s active stations. It admits a signed-in ticket, whose venue must be on its account, or a Clerk API key; never the shared service key.
46449
+ * @summary Rename a kitchen station and replace its categories
46450
+ * @param {string} stationId The station\&#39;s id in kds-service (its KDS profile id)
46451
+ * @param {UpdateKdsStationDto} updateKdsStationDto The venue, and the station\&#39;s new name and categories
46452
+ * @param {*} [options] Override http request option.
46453
+ * @throws {RequiredError}
46454
+ * @memberof KDSApi
46455
+ */
46456
+ public updateKdsStation(stationId: string, updateKdsStationDto: UpdateKdsStationDto, options?: AxiosRequestConfig) {
46457
+ return KDSApiFp(this.configuration).updateKdsStation(stationId, updateKdsStationDto, options).then((request) => request(this.axios, this.basePath));
46458
+ }
45845
46459
  }
45846
46460
 
45847
46461
 
@@ -48426,7 +49040,7 @@ export const OpsApiAxiosParamCreator = function (configuration?: Configuration)
48426
49040
  };
48427
49041
  },
48428
49042
  /**
48429
- * Makes the venue\'s active rows of the platform inactive; they are kept, so connecting the same store id again brings the row back. The venue\'s cached providers are cleared after the commit. Uber Eats, Wolt and ResQ are disconnected through their onboarding (DELETE provider/onboarding/{channel}/{businessId}).
49043
+ * Deletes the venue\'s active rows of the platform. The venue\'s cached providers are cleared after the commit. Uber Eats, Wolt and ResQ are disconnected through their onboarding (DELETE provider/onboarding/{channel}/{businessId}).
48430
49044
  * @summary Disconnect a venue from Foodora or Bolt
48431
49045
  * @param {number} venueId The Munchi venue id
48432
49046
  * @param {DeliveryPlatformOpsConnect} channel Foodora or Bolt
@@ -48547,7 +49161,7 @@ export const OpsApiFp = function(configuration?: Configuration) {
48547
49161
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
48548
49162
  },
48549
49163
  /**
48550
- * Makes the venue\'s active rows of the platform inactive; they are kept, so connecting the same store id again brings the row back. The venue\'s cached providers are cleared after the commit. Uber Eats, Wolt and ResQ are disconnected through their onboarding (DELETE provider/onboarding/{channel}/{businessId}).
49164
+ * Deletes the venue\'s active rows of the platform. The venue\'s cached providers are cleared after the commit. Uber Eats, Wolt and ResQ are disconnected through their onboarding (DELETE provider/onboarding/{channel}/{businessId}).
48551
49165
  * @summary Disconnect a venue from Foodora or Bolt
48552
49166
  * @param {number} venueId The Munchi venue id
48553
49167
  * @param {DeliveryPlatformOpsConnect} channel Foodora or Bolt
@@ -48602,7 +49216,7 @@ export const OpsApiFactory = function (configuration?: Configuration, basePath?:
48602
49216
  return localVarFp.devicesOfVenue(venueId, options).then((request) => request(axios, basePath));
48603
49217
  },
48604
49218
  /**
48605
- * Makes the venue\'s active rows of the platform inactive; they are kept, so connecting the same store id again brings the row back. The venue\'s cached providers are cleared after the commit. Uber Eats, Wolt and ResQ are disconnected through their onboarding (DELETE provider/onboarding/{channel}/{businessId}).
49219
+ * Deletes the venue\'s active rows of the platform. The venue\'s cached providers are cleared after the commit. Uber Eats, Wolt and ResQ are disconnected through their onboarding (DELETE provider/onboarding/{channel}/{businessId}).
48606
49220
  * @summary Disconnect a venue from Foodora or Bolt
48607
49221
  * @param {number} venueId The Munchi venue id
48608
49222
  * @param {DeliveryPlatformOpsConnect} channel Foodora or Bolt
@@ -48654,7 +49268,7 @@ export interface OpsApiInterface {
48654
49268
  devicesOfVenue(venueId: number, options?: AxiosRequestConfig): AxiosPromise<VenueDevicesDto>;
48655
49269
 
48656
49270
  /**
48657
- * Makes the venue\'s active rows of the platform inactive; they are kept, so connecting the same store id again brings the row back. The venue\'s cached providers are cleared after the commit. Uber Eats, Wolt and ResQ are disconnected through their onboarding (DELETE provider/onboarding/{channel}/{businessId}).
49271
+ * Deletes the venue\'s active rows of the platform. The venue\'s cached providers are cleared after the commit. Uber Eats, Wolt and ResQ are disconnected through their onboarding (DELETE provider/onboarding/{channel}/{businessId}).
48658
49272
  * @summary Disconnect a venue from Foodora or Bolt
48659
49273
  * @param {number} venueId The Munchi venue id
48660
49274
  * @param {DeliveryPlatformOpsConnect} channel Foodora or Bolt
@@ -48710,7 +49324,7 @@ export class OpsApi extends BaseAPI implements OpsApiInterface {
48710
49324
  }
48711
49325
 
48712
49326
  /**
48713
- * Makes the venue\'s active rows of the platform inactive; they are kept, so connecting the same store id again brings the row back. The venue\'s cached providers are cleared after the commit. Uber Eats, Wolt and ResQ are disconnected through their onboarding (DELETE provider/onboarding/{channel}/{businessId}).
49327
+ * Deletes the venue\'s active rows of the platform. The venue\'s cached providers are cleared after the commit. Uber Eats, Wolt and ResQ are disconnected through their onboarding (DELETE provider/onboarding/{channel}/{businessId}).
48714
49328
  * @summary Disconnect a venue from Foodora or Bolt
48715
49329
  * @param {number} venueId The Munchi venue id
48716
49330
  * @param {DeliveryPlatformOpsConnect} channel Foodora or Bolt
@@ -56013,6 +56627,50 @@ export const ProviderApiAxiosParamCreator = function (configuration?: Configurat
56013
56627
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
56014
56628
  localVarRequestOptions.data = serializeDataIfNeeded(updateProviderSettingsDto, localVarRequestOptions, configuration)
56015
56629
 
56630
+ return {
56631
+ url: toPathString(localVarUrlObj),
56632
+ options: localVarRequestOptions,
56633
+ };
56634
+ },
56635
+ /**
56636
+ * Each entry changes one channel: only the fields it sends. Every row of the venue on the channel changes, active or not, except that isActive true on Wolt, WoltStorefront, UberEats, Foodora, Bolt or ResQ turns on only the channel\'s newest row; none is deleted. MunchiPos, MunchiKiosk and Storefront get a row when the venue has none (open, active, integrations ORDERS, VENUE and MENU, then the entry\'s changes). Wolt, WoltStorefront, UberEats, Foodora, Bolt and ResQ change only a row their own connection added. Whether a channel is open is not changed here. Every change commits together, or none does; the venue\'s cached providers are cleared after the commit.
56637
+ * @summary Turn a venue\'s channels on or off, and change their auto-accept and integrations
56638
+ * @param {number} businessId The venue\&#39;s orderingBusinessId
56639
+ * @param {UpdateVenueProvidersDto} updateVenueProvidersDto
56640
+ * @param {*} [options] Override http request option.
56641
+ * @throws {RequiredError}
56642
+ */
56643
+ updateVenueProviders: async (businessId: number, updateVenueProvidersDto: UpdateVenueProvidersDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
56644
+ // verify required parameter 'businessId' is not null or undefined
56645
+ assertParamExists('updateVenueProviders', 'businessId', businessId)
56646
+ // verify required parameter 'updateVenueProvidersDto' is not null or undefined
56647
+ assertParamExists('updateVenueProviders', 'updateVenueProvidersDto', updateVenueProvidersDto)
56648
+ const localVarPath = `/api/v2/venues/{businessId}/providers`
56649
+ .replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)));
56650
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
56651
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
56652
+ let baseOptions;
56653
+ if (configuration) {
56654
+ baseOptions = configuration.baseOptions;
56655
+ }
56656
+
56657
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
56658
+ const localVarHeaderParameter = {} as any;
56659
+ const localVarQueryParameter = {} as any;
56660
+
56661
+ // authentication JWT-auth required
56662
+ // http bearer authentication required
56663
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
56664
+
56665
+
56666
+
56667
+ localVarHeaderParameter['Content-Type'] = 'application/json';
56668
+
56669
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
56670
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
56671
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
56672
+ localVarRequestOptions.data = serializeDataIfNeeded(updateVenueProvidersDto, localVarRequestOptions, configuration)
56673
+
56016
56674
  return {
56017
56675
  url: toPathString(localVarUrlObj),
56018
56676
  options: localVarRequestOptions,
@@ -56112,6 +56770,18 @@ export const ProviderApiFp = function(configuration?: Configuration) {
56112
56770
  const localVarAxiosArgs = await localVarAxiosParamCreator.updateProviderSettings(businessId, updateProviderSettingsDto, options);
56113
56771
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
56114
56772
  },
56773
+ /**
56774
+ * Each entry changes one channel: only the fields it sends. Every row of the venue on the channel changes, active or not, except that isActive true on Wolt, WoltStorefront, UberEats, Foodora, Bolt or ResQ turns on only the channel\'s newest row; none is deleted. MunchiPos, MunchiKiosk and Storefront get a row when the venue has none (open, active, integrations ORDERS, VENUE and MENU, then the entry\'s changes). Wolt, WoltStorefront, UberEats, Foodora, Bolt and ResQ change only a row their own connection added. Whether a channel is open is not changed here. Every change commits together, or none does; the venue\'s cached providers are cleared after the commit.
56775
+ * @summary Turn a venue\'s channels on or off, and change their auto-accept and integrations
56776
+ * @param {number} businessId The venue\&#39;s orderingBusinessId
56777
+ * @param {UpdateVenueProvidersDto} updateVenueProvidersDto
56778
+ * @param {*} [options] Override http request option.
56779
+ * @throws {RequiredError}
56780
+ */
56781
+ async updateVenueProviders(businessId: number, updateVenueProvidersDto: UpdateVenueProvidersDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdatedVenueProvidersDto>> {
56782
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateVenueProviders(businessId, updateVenueProvidersDto, options);
56783
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
56784
+ },
56115
56785
  }
56116
56786
  };
56117
56787
 
@@ -56199,6 +56869,17 @@ export const ProviderApiFactory = function (configuration?: Configuration, baseP
56199
56869
  updateProviderSettings(businessId: number, updateProviderSettingsDto: UpdateProviderSettingsDto, options?: any): AxiosPromise<UpdateProviderSettingsDto> {
56200
56870
  return localVarFp.updateProviderSettings(businessId, updateProviderSettingsDto, options).then((request) => request(axios, basePath));
56201
56871
  },
56872
+ /**
56873
+ * Each entry changes one channel: only the fields it sends. Every row of the venue on the channel changes, active or not, except that isActive true on Wolt, WoltStorefront, UberEats, Foodora, Bolt or ResQ turns on only the channel\'s newest row; none is deleted. MunchiPos, MunchiKiosk and Storefront get a row when the venue has none (open, active, integrations ORDERS, VENUE and MENU, then the entry\'s changes). Wolt, WoltStorefront, UberEats, Foodora, Bolt and ResQ change only a row their own connection added. Whether a channel is open is not changed here. Every change commits together, or none does; the venue\'s cached providers are cleared after the commit.
56874
+ * @summary Turn a venue\'s channels on or off, and change their auto-accept and integrations
56875
+ * @param {number} businessId The venue\&#39;s orderingBusinessId
56876
+ * @param {UpdateVenueProvidersDto} updateVenueProvidersDto
56877
+ * @param {*} [options] Override http request option.
56878
+ * @throws {RequiredError}
56879
+ */
56880
+ updateVenueProviders(businessId: number, updateVenueProvidersDto: UpdateVenueProvidersDto, options?: any): AxiosPromise<UpdatedVenueProvidersDto> {
56881
+ return localVarFp.updateVenueProviders(businessId, updateVenueProvidersDto, options).then((request) => request(axios, basePath));
56882
+ },
56202
56883
  };
56203
56884
  };
56204
56885
 
@@ -56285,6 +56966,17 @@ export interface ProviderApiInterface {
56285
56966
  */
56286
56967
  updateProviderSettings(businessId: number, updateProviderSettingsDto: UpdateProviderSettingsDto, options?: AxiosRequestConfig): AxiosPromise<UpdateProviderSettingsDto>;
56287
56968
 
56969
+ /**
56970
+ * Each entry changes one channel: only the fields it sends. Every row of the venue on the channel changes, active or not, except that isActive true on Wolt, WoltStorefront, UberEats, Foodora, Bolt or ResQ turns on only the channel\'s newest row; none is deleted. MunchiPos, MunchiKiosk and Storefront get a row when the venue has none (open, active, integrations ORDERS, VENUE and MENU, then the entry\'s changes). Wolt, WoltStorefront, UberEats, Foodora, Bolt and ResQ change only a row their own connection added. Whether a channel is open is not changed here. Every change commits together, or none does; the venue\'s cached providers are cleared after the commit.
56971
+ * @summary Turn a venue\'s channels on or off, and change their auto-accept and integrations
56972
+ * @param {number} businessId The venue\&#39;s orderingBusinessId
56973
+ * @param {UpdateVenueProvidersDto} updateVenueProvidersDto
56974
+ * @param {*} [options] Override http request option.
56975
+ * @throws {RequiredError}
56976
+ * @memberof ProviderApiInterface
56977
+ */
56978
+ updateVenueProviders(businessId: number, updateVenueProvidersDto: UpdateVenueProvidersDto, options?: AxiosRequestConfig): AxiosPromise<UpdatedVenueProvidersDto>;
56979
+
56288
56980
  }
56289
56981
 
56290
56982
  /**
@@ -56384,6 +57076,19 @@ export class ProviderApi extends BaseAPI implements ProviderApiInterface {
56384
57076
  public updateProviderSettings(businessId: number, updateProviderSettingsDto: UpdateProviderSettingsDto, options?: AxiosRequestConfig) {
56385
57077
  return ProviderApiFp(this.configuration).updateProviderSettings(businessId, updateProviderSettingsDto, options).then((request) => request(this.axios, this.basePath));
56386
57078
  }
57079
+
57080
+ /**
57081
+ * Each entry changes one channel: only the fields it sends. Every row of the venue on the channel changes, active or not, except that isActive true on Wolt, WoltStorefront, UberEats, Foodora, Bolt or ResQ turns on only the channel\'s newest row; none is deleted. MunchiPos, MunchiKiosk and Storefront get a row when the venue has none (open, active, integrations ORDERS, VENUE and MENU, then the entry\'s changes). Wolt, WoltStorefront, UberEats, Foodora, Bolt and ResQ change only a row their own connection added. Whether a channel is open is not changed here. Every change commits together, or none does; the venue\'s cached providers are cleared after the commit.
57082
+ * @summary Turn a venue\'s channels on or off, and change their auto-accept and integrations
57083
+ * @param {number} businessId The venue\&#39;s orderingBusinessId
57084
+ * @param {UpdateVenueProvidersDto} updateVenueProvidersDto
57085
+ * @param {*} [options] Override http request option.
57086
+ * @throws {RequiredError}
57087
+ * @memberof ProviderApi
57088
+ */
57089
+ public updateVenueProviders(businessId: number, updateVenueProvidersDto: UpdateVenueProvidersDto, options?: AxiosRequestConfig) {
57090
+ return ProviderApiFp(this.configuration).updateVenueProviders(businessId, updateVenueProvidersDto, options).then((request) => request(this.axios, this.basePath));
57091
+ }
56387
57092
  }
56388
57093
 
56389
57094