@munchi_oy/core 2.10.0 → 2.11.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
@@ -2890,6 +2890,25 @@ export interface ChangeShiftDto {
2890
2890
  */
2891
2891
  'clockOutTime'?: string;
2892
2892
  }
2893
+ /**
2894
+ *
2895
+ * @export
2896
+ * @interface ChangeStoreAppDto
2897
+ */
2898
+ export interface ChangeStoreAppDto {
2899
+ /**
2900
+ * true adds the app to the store\'s list (kept once, at the end); false removes it
2901
+ * @type {boolean}
2902
+ * @memberof ChangeStoreAppDto
2903
+ */
2904
+ 'added': boolean;
2905
+ /**
2906
+ * The list the store shows today, saved as the store\'s list when it has none yet, with this change applied on top; ignored once the store has a list. Each app at most once; an empty list is a store that shows none.
2907
+ * @type {Set<StoreApp>}
2908
+ * @memberof ChangeStoreAppDto
2909
+ */
2910
+ 'startWith': Set<StoreApp>;
2911
+ }
2893
2912
  /**
2894
2913
  *
2895
2914
  * @export
@@ -30393,6 +30412,19 @@ export const SavedReportVisibility = {
30393
30412
  export type SavedReportVisibility = typeof SavedReportVisibility[keyof typeof SavedReportVisibility];
30394
30413
 
30395
30414
 
30415
+ /**
30416
+ *
30417
+ * @export
30418
+ * @interface SavedStoreAppsDto
30419
+ */
30420
+ export interface SavedStoreAppsDto {
30421
+ /**
30422
+ * The store\'s list as saved now, in the order the apps were added
30423
+ * @type {Array<StoreApp>}
30424
+ * @memberof SavedStoreAppsDto
30425
+ */
30426
+ 'apps': Array<StoreApp>;
30427
+ }
30396
30428
  /**
30397
30429
  *
30398
30430
  * @export
@@ -31270,6 +31302,19 @@ export interface StaffShiftDto {
31270
31302
  }
31271
31303
 
31272
31304
 
31305
+ /**
31306
+ *
31307
+ * @export
31308
+ * @interface StartStoreAppsDto
31309
+ */
31310
+ export interface StartStoreAppsDto {
31311
+ /**
31312
+ * The apps the store shows today, saved as its list only when it has none yet; a list already saved is kept as it is. Each app at most once; an empty list is a store that shows none.
31313
+ * @type {Set<StoreApp>}
31314
+ * @memberof StartStoreAppsDto
31315
+ */
31316
+ 'apps': Set<StoreApp>;
31317
+ }
31273
31318
  /**
31274
31319
  *
31275
31320
  * @export
@@ -31548,6 +31593,40 @@ export const Status = {
31548
31593
  export type Status = typeof Status[keyof typeof Status];
31549
31594
 
31550
31595
 
31596
+ /**
31597
+ *
31598
+ * @export
31599
+ * @enum {string}
31600
+ */
31601
+
31602
+ export const StoreApp = {
31603
+ OnlineStore: 'online_store',
31604
+ Kiosk: 'kiosk',
31605
+ Kitchen: 'kitchen',
31606
+ Loyalty: 'loyalty',
31607
+ OrderStatus: 'order_status',
31608
+ Reservation: 'reservation',
31609
+ GiftCard: 'gift_card',
31610
+ AriCalls: 'ari_calls',
31611
+ AriOrders: 'ari_orders'
31612
+ } as const;
31613
+
31614
+ export type StoreApp = typeof StoreApp[keyof typeof StoreApp];
31615
+
31616
+
31617
+ /**
31618
+ *
31619
+ * @export
31620
+ * @interface StoreAppsDto
31621
+ */
31622
+ export interface StoreAppsDto {
31623
+ /**
31624
+ * The store\'s saved list, in the order the apps were added; null while nobody has saved one for the store yet, when the dashboard shows the apps the store uses.
31625
+ * @type {Array<StoreApp>}
31626
+ * @memberof StoreAppsDto
31627
+ */
31628
+ 'apps': Array<StoreApp> | null;
31629
+ }
31551
31630
  /**
31552
31631
  *
31553
31632
  * @export
@@ -43660,7 +43739,7 @@ export const CashManagementApiAxiosParamCreator = function (configuration?: Conf
43660
43739
  };
43661
43740
  },
43662
43741
  /**
43663
- * Every entry of the venue in the period, oldest first, without the closing counts (CLOSING entries).
43742
+ * Every entry of the venue in the period, oldest first, without the closing counts (CLOSING entries). A Munchi-internal Clerk API key reads every venue; a partner\'s key is refused.
43664
43743
  * @summary One page of the venue\'s cash entries in a period
43665
43744
  * @param {string} businessId The venue\&#39;s id (its orderingBusinessId), as text
43666
43745
  * @param {TimeSpan} [timeSpan] The period to read; with no time span, today from midnight until now
@@ -43927,7 +44006,7 @@ export const CashManagementApiFp = function(configuration?: Configuration) {
43927
44006
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
43928
44007
  },
43929
44008
  /**
43930
- * Every entry of the venue in the period, oldest first, without the closing counts (CLOSING entries).
44009
+ * Every entry of the venue in the period, oldest first, without the closing counts (CLOSING entries). A Munchi-internal Clerk API key reads every venue; a partner\'s key is refused.
43931
44010
  * @summary One page of the venue\'s cash entries in a period
43932
44011
  * @param {string} businessId The venue\&#39;s id (its orderingBusinessId), as text
43933
44012
  * @param {TimeSpan} [timeSpan] The period to read; with no time span, today from midnight until now
@@ -44014,7 +44093,7 @@ export const CashManagementApiFactory = function (configuration?: Configuration,
44014
44093
  return localVarFp.create(businessId, cashSessionDto, options).then((request) => request(axios, basePath));
44015
44094
  },
44016
44095
  /**
44017
- * Every entry of the venue in the period, oldest first, without the closing counts (CLOSING entries).
44096
+ * Every entry of the venue in the period, oldest first, without the closing counts (CLOSING entries). A Munchi-internal Clerk API key reads every venue; a partner\'s key is refused.
44018
44097
  * @summary One page of the venue\'s cash entries in a period
44019
44098
  * @param {string} businessId The venue\&#39;s id (its orderingBusinessId), as text
44020
44099
  * @param {TimeSpan} [timeSpan] The period to read; with no time span, today from midnight until now
@@ -44095,7 +44174,7 @@ export interface CashManagementApiInterface {
44095
44174
  create(businessId: string, cashSessionDto: CashSessionDto, options?: AxiosRequestConfig): AxiosPromise<CashSessionDto>;
44096
44175
 
44097
44176
  /**
44098
- * Every entry of the venue in the period, oldest first, without the closing counts (CLOSING entries).
44177
+ * Every entry of the venue in the period, oldest first, without the closing counts (CLOSING entries). A Munchi-internal Clerk API key reads every venue; a partner\'s key is refused.
44099
44178
  * @summary One page of the venue\'s cash entries in a period
44100
44179
  * @param {string} businessId The venue\&#39;s id (its orderingBusinessId), as text
44101
44180
  * @param {TimeSpan} [timeSpan] The period to read; with no time span, today from midnight until now
@@ -44178,7 +44257,7 @@ export class CashManagementApi extends BaseAPI implements CashManagementApiInter
44178
44257
  }
44179
44258
 
44180
44259
  /**
44181
- * Every entry of the venue in the period, oldest first, without the closing counts (CLOSING entries).
44260
+ * Every entry of the venue in the period, oldest first, without the closing counts (CLOSING entries). A Munchi-internal Clerk API key reads every venue; a partner\'s key is refused.
44182
44261
  * @summary One page of the venue\'s cash entries in a period
44183
44262
  * @param {string} businessId The venue\&#39;s id (its orderingBusinessId), as text
44184
44263
  * @param {TimeSpan} [timeSpan] The period to read; with no time span, today from midnight until now
@@ -47475,7 +47554,7 @@ export const EmployeeRolesApiAxiosParamCreator = function (configuration?: Confi
47475
47554
  };
47476
47555
  },
47477
47556
  /**
47478
- * What each role lets the person at the till do, for the back office (D144). Read from the database every time, ordered by name; a venue keeps at most 100 roles.
47557
+ * What each role lets the person at the till do, for the back office (D144). Read from the database every time, ordered by name; a venue keeps at most 100 roles. A Munchi-internal Clerk API key reads every venue; a partner\'s key is refused.
47479
47558
  * @summary List the venue\'s employee roles
47480
47559
  * @param {number} businessId The venue\&#39;s orderingBusinessId
47481
47560
  * @param {*} [options] Override http request option.
@@ -47601,7 +47680,7 @@ export const EmployeeRolesApiFp = function(configuration?: Configuration) {
47601
47680
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
47602
47681
  },
47603
47682
  /**
47604
- * What each role lets the person at the till do, for the back office (D144). Read from the database every time, ordered by name; a venue keeps at most 100 roles.
47683
+ * What each role lets the person at the till do, for the back office (D144). Read from the database every time, ordered by name; a venue keeps at most 100 roles. A Munchi-internal Clerk API key reads every venue; a partner\'s key is refused.
47605
47684
  * @summary List the venue\'s employee roles
47606
47685
  * @param {number} businessId The venue\&#39;s orderingBusinessId
47607
47686
  * @param {*} [options] Override http request option.
@@ -47667,7 +47746,7 @@ export const EmployeeRolesApiFactory = function (configuration?: Configuration,
47667
47746
  return localVarFp.changeEmployeeRole(businessId, roleId, changeEmployeeRoleDto, options).then((request) => request(axios, basePath));
47668
47747
  },
47669
47748
  /**
47670
- * What each role lets the person at the till do, for the back office (D144). Read from the database every time, ordered by name; a venue keeps at most 100 roles.
47749
+ * What each role lets the person at the till do, for the back office (D144). Read from the database every time, ordered by name; a venue keeps at most 100 roles. A Munchi-internal Clerk API key reads every venue; a partner\'s key is refused.
47671
47750
  * @summary List the venue\'s employee roles
47672
47751
  * @param {number} businessId The venue\&#39;s orderingBusinessId
47673
47752
  * @param {*} [options] Override http request option.
@@ -47730,7 +47809,7 @@ export interface EmployeeRolesApiInterface {
47730
47809
  changeEmployeeRole(businessId: number, roleId: string, changeEmployeeRoleDto: ChangeEmployeeRoleDto, options?: AxiosRequestConfig): AxiosPromise<EmployeeRoleResponseDto>;
47731
47810
 
47732
47811
  /**
47733
- * What each role lets the person at the till do, for the back office (D144). Read from the database every time, ordered by name; a venue keeps at most 100 roles.
47812
+ * What each role lets the person at the till do, for the back office (D144). Read from the database every time, ordered by name; a venue keeps at most 100 roles. A Munchi-internal Clerk API key reads every venue; a partner\'s key is refused.
47734
47813
  * @summary List the venue\'s employee roles
47735
47814
  * @param {number} businessId The venue\&#39;s orderingBusinessId
47736
47815
  * @param {*} [options] Override http request option.
@@ -47799,7 +47878,7 @@ export class EmployeeRolesApi extends BaseAPI implements EmployeeRolesApiInterfa
47799
47878
  }
47800
47879
 
47801
47880
  /**
47802
- * What each role lets the person at the till do, for the back office (D144). Read from the database every time, ordered by name; a venue keeps at most 100 roles.
47881
+ * What each role lets the person at the till do, for the back office (D144). Read from the database every time, ordered by name; a venue keeps at most 100 roles. A Munchi-internal Clerk API key reads every venue; a partner\'s key is refused.
47803
47882
  * @summary List the venue\'s employee roles
47804
47883
  * @param {number} businessId The venue\&#39;s orderingBusinessId
47805
47884
  * @param {*} [options] Override http request option.
@@ -47924,7 +48003,7 @@ export const EmployeesApiAxiosParamCreator = function (configuration?: Configura
47924
48003
  };
47925
48004
  },
47926
48005
  /**
47927
- * The employees who work at the venue, and those added there with no role yet, ordered by name, a page at a time (D144). No PIN is answered, in any form. Read from the database every time.
48006
+ * The employees who work at the venue, and those added there with no role yet, ordered by name, a page at a time (D144). No PIN is answered, in any form. Read from the database every time. A Munchi-internal Clerk API key reads every venue; a partner\'s key is refused.
47928
48007
  * @summary List the venue\'s employees
47929
48008
  * @param {number} businessId The venue\&#39;s orderingBusinessId
47930
48009
  * @param {string} [cursor] The nextCursor of the page before; absent for the first page
@@ -48097,7 +48176,7 @@ export const EmployeesApiFp = function(configuration?: Configuration) {
48097
48176
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
48098
48177
  },
48099
48178
  /**
48100
- * The employees who work at the venue, and those added there with no role yet, ordered by name, a page at a time (D144). No PIN is answered, in any form. Read from the database every time.
48179
+ * The employees who work at the venue, and those added there with no role yet, ordered by name, a page at a time (D144). No PIN is answered, in any form. Read from the database every time. A Munchi-internal Clerk API key reads every venue; a partner\'s key is refused.
48101
48180
  * @summary List the venue\'s employees
48102
48181
  * @param {number} businessId The venue\&#39;s orderingBusinessId
48103
48182
  * @param {string} [cursor] The nextCursor of the page before; absent for the first page
@@ -48168,7 +48247,7 @@ export const EmployeesApiFactory = function (configuration?: Configuration, base
48168
48247
  return localVarFp.changeEmployee(businessId, employeeId, changeEmployeeDto, options).then((request) => request(axios, basePath));
48169
48248
  },
48170
48249
  /**
48171
- * The employees who work at the venue, and those added there with no role yet, ordered by name, a page at a time (D144). No PIN is answered, in any form. Read from the database every time.
48250
+ * The employees who work at the venue, and those added there with no role yet, ordered by name, a page at a time (D144). No PIN is answered, in any form. Read from the database every time. A Munchi-internal Clerk API key reads every venue; a partner\'s key is refused.
48172
48251
  * @summary List the venue\'s employees
48173
48252
  * @param {number} businessId The venue\&#39;s orderingBusinessId
48174
48253
  * @param {string} [cursor] The nextCursor of the page before; absent for the first page
@@ -48235,7 +48314,7 @@ export interface EmployeesApiInterface {
48235
48314
  changeEmployee(businessId: number, employeeId: string, changeEmployeeDto: ChangeEmployeeDto, options?: AxiosRequestConfig): AxiosPromise<EmployeeResponseDto>;
48236
48315
 
48237
48316
  /**
48238
- * The employees who work at the venue, and those added there with no role yet, ordered by name, a page at a time (D144). No PIN is answered, in any form. Read from the database every time.
48317
+ * The employees who work at the venue, and those added there with no role yet, ordered by name, a page at a time (D144). No PIN is answered, in any form. Read from the database every time. A Munchi-internal Clerk API key reads every venue; a partner\'s key is refused.
48239
48318
  * @summary List the venue\'s employees
48240
48319
  * @param {number} businessId The venue\&#39;s orderingBusinessId
48241
48320
  * @param {string} [cursor] The nextCursor of the page before; absent for the first page
@@ -48306,7 +48385,7 @@ export class EmployeesApi extends BaseAPI implements EmployeesApiInterface {
48306
48385
  }
48307
48386
 
48308
48387
  /**
48309
- * The employees who work at the venue, and those added there with no role yet, ordered by name, a page at a time (D144). No PIN is answered, in any form. Read from the database every time.
48388
+ * The employees who work at the venue, and those added there with no role yet, ordered by name, a page at a time (D144). No PIN is answered, in any form. Read from the database every time. A Munchi-internal Clerk API key reads every venue; a partner\'s key is refused.
48310
48389
  * @summary List the venue\'s employees
48311
48390
  * @param {number} businessId The venue\&#39;s orderingBusinessId
48312
48391
  * @param {string} [cursor] The nextCursor of the page before; absent for the first page
@@ -50390,7 +50469,7 @@ export const HistoryV6ApiAxiosParamCreator = function (configuration?: Configura
50390
50469
  };
50391
50470
  },
50392
50471
  /**
50393
- * One page of the venues\' online orders, newest first, with the order counts and sales totals of the period. Online orders span venues and are not staff\'s, so they are answered whole whoever is unlocked on the till.
50472
+ * One page of the venues\' online orders, newest first, with the order counts and sales totals of the period. Online orders span venues and are not staff\'s, so they are answered whole whoever is unlocked on the till. A Munchi-internal Clerk API key reads every venue; a partner\'s key is refused.
50394
50473
  * @summary Online order history of the venues, every order and total
50395
50474
  * @param {Array<number>} businessIds The venues asked about, by business id
50396
50475
  * @param {TimeSpan} [timeSpan] The period asked for: DAY, WEEK, MONTH, YEAR, or CUSTOM between start and end
@@ -50496,7 +50575,7 @@ export const HistoryV6ApiAxiosParamCreator = function (configuration?: Configura
50496
50575
  };
50497
50576
  },
50498
50577
  /**
50499
- * The same answer as v5. In team mode, what the role of the person unlocked on the till may not see is returned as zero or an empty list, and without Transaction::ViewAll only that person\'s orders are listed and counted. A till with nobody unlocked on the server gets the v5 answer unchanged.
50578
+ * The same answer as v5. In team mode, what the role of the person unlocked on the till may not see is returned as zero or an empty list, and without Transaction::ViewAll only that person\'s orders are listed and counted. A till with nobody unlocked on the server, or a Munchi-internal Clerk API key, gets the v5 answer unchanged; a partner\'s key is refused.
50500
50579
  * @summary POS order history, narrowed to the person working on the till
50501
50580
  * @param {Array<number>} businessIds The venues asked about, by business id
50502
50581
  * @param {TimeSpan} [timeSpan] The period asked for: DAY, WEEK, MONTH, YEAR, or CUSTOM between start and end
@@ -50636,7 +50715,7 @@ export const HistoryV6ApiFp = function(configuration?: Configuration) {
50636
50715
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
50637
50716
  },
50638
50717
  /**
50639
- * One page of the venues\' online orders, newest first, with the order counts and sales totals of the period. Online orders span venues and are not staff\'s, so they are answered whole whoever is unlocked on the till.
50718
+ * One page of the venues\' online orders, newest first, with the order counts and sales totals of the period. Online orders span venues and are not staff\'s, so they are answered whole whoever is unlocked on the till. A Munchi-internal Clerk API key reads every venue; a partner\'s key is refused.
50640
50719
  * @summary Online order history of the venues, every order and total
50641
50720
  * @param {Array<number>} businessIds The venues asked about, by business id
50642
50721
  * @param {TimeSpan} [timeSpan] The period asked for: DAY, WEEK, MONTH, YEAR, or CUSTOM between start and end
@@ -50660,7 +50739,7 @@ export const HistoryV6ApiFp = function(configuration?: Configuration) {
50660
50739
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
50661
50740
  },
50662
50741
  /**
50663
- * The same answer as v5. In team mode, what the role of the person unlocked on the till may not see is returned as zero or an empty list, and without Transaction::ViewAll only that person\'s orders are listed and counted. A till with nobody unlocked on the server gets the v5 answer unchanged.
50742
+ * The same answer as v5. In team mode, what the role of the person unlocked on the till may not see is returned as zero or an empty list, and without Transaction::ViewAll only that person\'s orders are listed and counted. A till with nobody unlocked on the server, or a Munchi-internal Clerk API key, gets the v5 answer unchanged; a partner\'s key is refused.
50664
50743
  * @summary POS order history, narrowed to the person working on the till
50665
50744
  * @param {Array<number>} businessIds The venues asked about, by business id
50666
50745
  * @param {TimeSpan} [timeSpan] The period asked for: DAY, WEEK, MONTH, YEAR, or CUSTOM between start and end
@@ -50717,7 +50796,7 @@ export const HistoryV6ApiFactory = function (configuration?: Configuration, base
50717
50796
  return localVarFp.listOnlineOrderHistoryForServices(businessIds, timeSpan, start, end, page, rowPerPage, provider, paymentType, orderStatus, paymentStatus, orderType, paymentTypePos, invoiceCompanyId, timezone, options).then((request) => request(axios, basePath));
50718
50797
  },
50719
50798
  /**
50720
- * One page of the venues\' online orders, newest first, with the order counts and sales totals of the period. Online orders span venues and are not staff\'s, so they are answered whole whoever is unlocked on the till.
50799
+ * One page of the venues\' online orders, newest first, with the order counts and sales totals of the period. Online orders span venues and are not staff\'s, so they are answered whole whoever is unlocked on the till. A Munchi-internal Clerk API key reads every venue; a partner\'s key is refused.
50721
50800
  * @summary Online order history of the venues, every order and total
50722
50801
  * @param {Array<number>} businessIds The venues asked about, by business id
50723
50802
  * @param {TimeSpan} [timeSpan] The period asked for: DAY, WEEK, MONTH, YEAR, or CUSTOM between start and end
@@ -50740,7 +50819,7 @@ export const HistoryV6ApiFactory = function (configuration?: Configuration, base
50740
50819
  return localVarFp.listOnlineOrderHistoryForTill(businessIds, timeSpan, start, end, page, rowPerPage, provider, paymentType, orderStatus, paymentStatus, orderType, paymentTypePos, invoiceCompanyId, timezone, options).then((request) => request(axios, basePath));
50741
50820
  },
50742
50821
  /**
50743
- * The same answer as v5. In team mode, what the role of the person unlocked on the till may not see is returned as zero or an empty list, and without Transaction::ViewAll only that person\'s orders are listed and counted. A till with nobody unlocked on the server gets the v5 answer unchanged.
50822
+ * The same answer as v5. In team mode, what the role of the person unlocked on the till may not see is returned as zero or an empty list, and without Transaction::ViewAll only that person\'s orders are listed and counted. A till with nobody unlocked on the server, or a Munchi-internal Clerk API key, gets the v5 answer unchanged; a partner\'s key is refused.
50744
50823
  * @summary POS order history, narrowed to the person working on the till
50745
50824
  * @param {Array<number>} businessIds The venues asked about, by business id
50746
50825
  * @param {TimeSpan} [timeSpan] The period asked for: DAY, WEEK, MONTH, YEAR, or CUSTOM between start and end
@@ -50795,7 +50874,7 @@ export interface HistoryV6ApiInterface {
50795
50874
  listOnlineOrderHistoryForServices(businessIds: Array<number>, timeSpan?: TimeSpan, start?: string, end?: string, page?: number, rowPerPage?: number, provider?: Array<ProviderEnum>, paymentType?: Array<PaymentTypeEnum>, orderStatus?: Array<OrderStatusEnum>, paymentStatus?: Array<PaymentStatus>, orderType?: Array<OrderType>, paymentTypePos?: Array<PaymentMethod>, invoiceCompanyId?: string, timezone?: string, options?: AxiosRequestConfig): AxiosPromise<OrderHistoryResponseDto>;
50796
50875
 
50797
50876
  /**
50798
- * One page of the venues\' online orders, newest first, with the order counts and sales totals of the period. Online orders span venues and are not staff\'s, so they are answered whole whoever is unlocked on the till.
50877
+ * One page of the venues\' online orders, newest first, with the order counts and sales totals of the period. Online orders span venues and are not staff\'s, so they are answered whole whoever is unlocked on the till. A Munchi-internal Clerk API key reads every venue; a partner\'s key is refused.
50799
50878
  * @summary Online order history of the venues, every order and total
50800
50879
  * @param {Array<number>} businessIds The venues asked about, by business id
50801
50880
  * @param {TimeSpan} [timeSpan] The period asked for: DAY, WEEK, MONTH, YEAR, or CUSTOM between start and end
@@ -50818,7 +50897,7 @@ export interface HistoryV6ApiInterface {
50818
50897
  listOnlineOrderHistoryForTill(businessIds: Array<number>, timeSpan?: TimeSpan, start?: string, end?: string, page?: number, rowPerPage?: number, provider?: Array<ProviderEnum>, paymentType?: Array<PaymentTypeEnum>, orderStatus?: Array<OrderStatusEnum>, paymentStatus?: Array<PaymentStatus>, orderType?: Array<OrderType>, paymentTypePos?: Array<PaymentMethod>, invoiceCompanyId?: string, timezone?: string, options?: AxiosRequestConfig): AxiosPromise<OrderHistoryResponseDto>;
50819
50898
 
50820
50899
  /**
50821
- * The same answer as v5. In team mode, what the role of the person unlocked on the till may not see is returned as zero or an empty list, and without Transaction::ViewAll only that person\'s orders are listed and counted. A till with nobody unlocked on the server gets the v5 answer unchanged.
50900
+ * The same answer as v5. In team mode, what the role of the person unlocked on the till may not see is returned as zero or an empty list, and without Transaction::ViewAll only that person\'s orders are listed and counted. A till with nobody unlocked on the server, or a Munchi-internal Clerk API key, gets the v5 answer unchanged; a partner\'s key is refused.
50822
50901
  * @summary POS order history, narrowed to the person working on the till
50823
50902
  * @param {Array<number>} businessIds The venues asked about, by business id
50824
50903
  * @param {TimeSpan} [timeSpan] The period asked for: DAY, WEEK, MONTH, YEAR, or CUSTOM between start and end
@@ -50875,7 +50954,7 @@ export class HistoryV6Api extends BaseAPI implements HistoryV6ApiInterface {
50875
50954
  }
50876
50955
 
50877
50956
  /**
50878
- * One page of the venues\' online orders, newest first, with the order counts and sales totals of the period. Online orders span venues and are not staff\'s, so they are answered whole whoever is unlocked on the till.
50957
+ * One page of the venues\' online orders, newest first, with the order counts and sales totals of the period. Online orders span venues and are not staff\'s, so they are answered whole whoever is unlocked on the till. A Munchi-internal Clerk API key reads every venue; a partner\'s key is refused.
50879
50958
  * @summary Online order history of the venues, every order and total
50880
50959
  * @param {Array<number>} businessIds The venues asked about, by business id
50881
50960
  * @param {TimeSpan} [timeSpan] The period asked for: DAY, WEEK, MONTH, YEAR, or CUSTOM between start and end
@@ -50900,7 +50979,7 @@ export class HistoryV6Api extends BaseAPI implements HistoryV6ApiInterface {
50900
50979
  }
50901
50980
 
50902
50981
  /**
50903
- * The same answer as v5. In team mode, what the role of the person unlocked on the till may not see is returned as zero or an empty list, and without Transaction::ViewAll only that person\'s orders are listed and counted. A till with nobody unlocked on the server gets the v5 answer unchanged.
50982
+ * The same answer as v5. In team mode, what the role of the person unlocked on the till may not see is returned as zero or an empty list, and without Transaction::ViewAll only that person\'s orders are listed and counted. A till with nobody unlocked on the server, or a Munchi-internal Clerk API key, gets the v5 answer unchanged; a partner\'s key is refused.
50904
50983
  * @summary POS order history, narrowed to the person working on the till
50905
50984
  * @param {Array<number>} businessIds The venues asked about, by business id
50906
50985
  * @param {TimeSpan} [timeSpan] The period asked for: DAY, WEEK, MONTH, YEAR, or CUSTOM between start and end
@@ -65071,7 +65150,7 @@ export const ReportApiAxiosParamCreator = function (configuration?: Configuratio
65071
65150
  };
65072
65151
  },
65073
65152
  /**
65074
- * The same report, rendered by the same generator, as the PDF the report e-mail (POST /api/v6/report/email) attaches, answered as the file itself instead of e-mailed. The period is the e-mail\'s: timeSpan DAY (the venue\'s business day), WEEK, MONTH, YEAR, or CUSTOM between start and end. A till\'s ticket gets it narrowed to the person on the till, as the e-mail is. Answers application/pdf with Content-Disposition attachment and the file\'s name.
65153
+ * The same report, rendered by the same generator, as the PDF the report e-mail (POST /api/v6/report/email) attaches, answered as the file itself instead of e-mailed. The period is the e-mail\'s: timeSpan DAY (the venue\'s business day), WEEK, MONTH, YEAR, or CUSTOM between start and end. A till\'s ticket gets it narrowed to the person on the till, as the e-mail is; a Munchi-internal Clerk API key gets the venue\'s whole report, and a partner\'s key is refused. Answers application/pdf with Content-Disposition attachment and the file\'s name.
65075
65154
  * @summary End-of-day sales report of a venue as a PDF file to download, for a day, week, month, year or custom period
65076
65155
  * @param {number} businessId The venue the file is of, by business id
65077
65156
  * @param {TimeSpan} [timeSpan] The period asked for: DAY, WEEK, MONTH, YEAR, or CUSTOM between start and end
@@ -65805,7 +65884,7 @@ export const ReportApiFp = function(configuration?: Configuration) {
65805
65884
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
65806
65885
  },
65807
65886
  /**
65808
- * The same report, rendered by the same generator, as the PDF the report e-mail (POST /api/v6/report/email) attaches, answered as the file itself instead of e-mailed. The period is the e-mail\'s: timeSpan DAY (the venue\'s business day), WEEK, MONTH, YEAR, or CUSTOM between start and end. A till\'s ticket gets it narrowed to the person on the till, as the e-mail is. Answers application/pdf with Content-Disposition attachment and the file\'s name.
65887
+ * The same report, rendered by the same generator, as the PDF the report e-mail (POST /api/v6/report/email) attaches, answered as the file itself instead of e-mailed. The period is the e-mail\'s: timeSpan DAY (the venue\'s business day), WEEK, MONTH, YEAR, or CUSTOM between start and end. A till\'s ticket gets it narrowed to the person on the till, as the e-mail is; a Munchi-internal Clerk API key gets the venue\'s whole report, and a partner\'s key is refused. Answers application/pdf with Content-Disposition attachment and the file\'s name.
65809
65888
  * @summary End-of-day sales report of a venue as a PDF file to download, for a day, week, month, year or custom period
65810
65889
  * @param {number} businessId The venue the file is of, by business id
65811
65890
  * @param {TimeSpan} [timeSpan] The period asked for: DAY, WEEK, MONTH, YEAR, or CUSTOM between start and end
@@ -66001,7 +66080,7 @@ export const ReportApiFactory = function (configuration?: Configuration, basePat
66001
66080
  return localVarFp.getBoughtTogether(businessIds, timeSpan, start, end, timezone, apps, breakdown, language, itemKey, limit, options).then((request) => request(axios, basePath));
66002
66081
  },
66003
66082
  /**
66004
- * The same report, rendered by the same generator, as the PDF the report e-mail (POST /api/v6/report/email) attaches, answered as the file itself instead of e-mailed. The period is the e-mail\'s: timeSpan DAY (the venue\'s business day), WEEK, MONTH, YEAR, or CUSTOM between start and end. A till\'s ticket gets it narrowed to the person on the till, as the e-mail is. Answers application/pdf with Content-Disposition attachment and the file\'s name.
66083
+ * The same report, rendered by the same generator, as the PDF the report e-mail (POST /api/v6/report/email) attaches, answered as the file itself instead of e-mailed. The period is the e-mail\'s: timeSpan DAY (the venue\'s business day), WEEK, MONTH, YEAR, or CUSTOM between start and end. A till\'s ticket gets it narrowed to the person on the till, as the e-mail is; a Munchi-internal Clerk API key gets the venue\'s whole report, and a partner\'s key is refused. Answers application/pdf with Content-Disposition attachment and the file\'s name.
66005
66084
  * @summary End-of-day sales report of a venue as a PDF file to download, for a day, week, month, year or custom period
66006
66085
  * @param {number} businessId The venue the file is of, by business id
66007
66086
  * @param {TimeSpan} [timeSpan] The period asked for: DAY, WEEK, MONTH, YEAR, or CUSTOM between start and end
@@ -66187,7 +66266,7 @@ export interface ReportApiInterface {
66187
66266
  getBoughtTogether(businessIds: Array<number>, timeSpan?: TimeSpan, start?: string, end?: string, timezone?: string, apps?: Array<ReportApp>, breakdown?: ReportBreakdown, language?: string, itemKey?: string, limit?: number, options?: AxiosRequestConfig): AxiosPromise<SalesReportBoughtTogetherResponseDto>;
66188
66267
 
66189
66268
  /**
66190
- * The same report, rendered by the same generator, as the PDF the report e-mail (POST /api/v6/report/email) attaches, answered as the file itself instead of e-mailed. The period is the e-mail\'s: timeSpan DAY (the venue\'s business day), WEEK, MONTH, YEAR, or CUSTOM between start and end. A till\'s ticket gets it narrowed to the person on the till, as the e-mail is. Answers application/pdf with Content-Disposition attachment and the file\'s name.
66269
+ * The same report, rendered by the same generator, as the PDF the report e-mail (POST /api/v6/report/email) attaches, answered as the file itself instead of e-mailed. The period is the e-mail\'s: timeSpan DAY (the venue\'s business day), WEEK, MONTH, YEAR, or CUSTOM between start and end. A till\'s ticket gets it narrowed to the person on the till, as the e-mail is; a Munchi-internal Clerk API key gets the venue\'s whole report, and a partner\'s key is refused. Answers application/pdf with Content-Disposition attachment and the file\'s name.
66191
66270
  * @summary End-of-day sales report of a venue as a PDF file to download, for a day, week, month, year or custom period
66192
66271
  * @param {number} businessId The venue the file is of, by business id
66193
66272
  * @param {TimeSpan} [timeSpan] The period asked for: DAY, WEEK, MONTH, YEAR, or CUSTOM between start and end
@@ -66375,7 +66454,7 @@ export class ReportApi extends BaseAPI implements ReportApiInterface {
66375
66454
  }
66376
66455
 
66377
66456
  /**
66378
- * The same report, rendered by the same generator, as the PDF the report e-mail (POST /api/v6/report/email) attaches, answered as the file itself instead of e-mailed. The period is the e-mail\'s: timeSpan DAY (the venue\'s business day), WEEK, MONTH, YEAR, or CUSTOM between start and end. A till\'s ticket gets it narrowed to the person on the till, as the e-mail is. Answers application/pdf with Content-Disposition attachment and the file\'s name.
66457
+ * The same report, rendered by the same generator, as the PDF the report e-mail (POST /api/v6/report/email) attaches, answered as the file itself instead of e-mailed. The period is the e-mail\'s: timeSpan DAY (the venue\'s business day), WEEK, MONTH, YEAR, or CUSTOM between start and end. A till\'s ticket gets it narrowed to the person on the till, as the e-mail is; a Munchi-internal Clerk API key gets the venue\'s whole report, and a partner\'s key is refused. Answers application/pdf with Content-Disposition attachment and the file\'s name.
66379
66458
  * @summary End-of-day sales report of a venue as a PDF file to download, for a day, week, month, year or custom period
66380
66459
  * @param {number} businessId The venue the file is of, by business id
66381
66460
  * @param {TimeSpan} [timeSpan] The period asked for: DAY, WEEK, MONTH, YEAR, or CUSTOM between start and end
@@ -71117,7 +71196,7 @@ export class SavedReportsApi extends BaseAPI implements SavedReportsApiInterface
71117
71196
  export const ShiftTrackingApiAxiosParamCreator = function (configuration?: Configuration) {
71118
71197
  return {
71119
71198
  /**
71120
- * A shift added in the back office: its clock-in, and its clock-out unless the staff member is still working. It counts in the hours report like a shift clocked on the till. It is refused while it would be the staff member\'s second open shift at the venue (SHIFT_ALREADY_OPEN), or overlap another of their shifts there (SHIFTS_OVERLAP); an open shift runs on with no end, and shifts that only touch do not overlap. Access: the staff write (org:staff:write) at the venue, refused without it; a till\'s own ticket is always refused, so the person on the till never changes their own hours.
71199
+ * A shift added in the back office: its clock-in, and its clock-out unless the staff member is still working. It counts in the hours report like a shift clocked on the till. It is refused while it would be the staff member\'s second open shift at the venue (SHIFT_ALREADY_OPEN), or overlap another of their shifts there (SHIFTS_OVERLAP); an open shift runs on with no end, and shifts that only touch do not overlap. Access: the staff write (org:staff:write) at the venue, refused without it, on a person or on a Munchi-internal Clerk API key\'s scopes; a till\'s own ticket is always refused, so the person on the till never changes their own hours, and a partner\'s key is refused.
71121
71200
  * @summary Record a shift the till missed, for a staff member who works at the venue
71122
71201
  * @param {number} businessId The venue\&#39;s orderingBusinessId
71123
71202
  * @param {AddShiftDto} addShiftDto
@@ -71161,7 +71240,7 @@ export const ShiftTrackingApiAxiosParamCreator = function (configuration?: Confi
71161
71240
  };
71162
71241
  },
71163
71242
  /**
71164
- * Sets the times sent and keeps the others; a clock-out is never taken away, so a shift closed here stays closed, and it forgets the till session it was clocked in on, as a clock-out on the till does. The change is saved only while the shift is as it was read, so a clock-out the till writes at the same moment is never overwritten unseen, and never so that the shift overlaps another of the staff member\'s shifts at the venue (SHIFTS_OVERLAP). Access: the staff write (org:staff:write) at the venue, refused without it; a till\'s own ticket is always refused, so the person on the till never changes their own hours.
71243
+ * Sets the times sent and keeps the others; a clock-out is never taken away, so a shift closed here stays closed, and it forgets the till session it was clocked in on, as a clock-out on the till does. The change is saved only while the shift is as it was read, so a clock-out the till writes at the same moment is never overwritten unseen, and never so that the shift overlaps another of the staff member\'s shifts at the venue (SHIFTS_OVERLAP). Access: the staff write (org:staff:write) at the venue, refused without it, on a person or on a Munchi-internal Clerk API key\'s scopes; a till\'s own ticket is always refused, so the person on the till never changes their own hours, and a partner\'s key is refused.
71165
71244
  * @summary Correct a shift\'s clock-in or clock-out, a forgotten clock-out among them
71166
71245
  * @param {number} businessId The venue\&#39;s orderingBusinessId
71167
71246
  * @param {string} shiftId The shift\&#39;s id
@@ -71368,7 +71447,7 @@ export const ShiftTrackingApiAxiosParamCreator = function (configuration?: Confi
71368
71447
  };
71369
71448
  },
71370
71449
  /**
71371
- * The shift no longer counts in the hours report. A shift still open is not removed (SHIFT_STILL_OPEN): its clock-out is set first, so the till\'s next clock-out is not recorded as a shift with no clock-in. Access: the staff write (org:staff:write) at the venue, refused without it; a till\'s own ticket is always refused, so the person on the till never changes their own hours.
71450
+ * The shift no longer counts in the hours report. A shift still open is not removed (SHIFT_STILL_OPEN): its clock-out is set first, so the till\'s next clock-out is not recorded as a shift with no clock-in. Access: the staff write (org:staff:write) at the venue, refused without it, on a person or on a Munchi-internal Clerk API key\'s scopes; a till\'s own ticket is always refused, so the person on the till never changes their own hours, and a partner\'s key is refused.
71372
71451
  * @summary Remove a shift recorded by mistake
71373
71452
  * @param {number} businessId The venue\&#39;s orderingBusinessId
71374
71453
  * @param {string} shiftId The shift\&#39;s id
@@ -71410,7 +71489,7 @@ export const ShiftTrackingApiAxiosParamCreator = function (configuration?: Confi
71410
71489
  };
71411
71490
  },
71412
71491
  /**
71413
- * The shifts staff clocked on the POS (clock-in on unlock, clock-out on lock), for the days from to to in the venue\'s time zone: per staff member and per day the shift began, with each shift\'s times and worked minutes, and totals. A shift still open, with only a clock-out, or clocked out before it clocked in, counts 0 minutes; openShifts counts the open ones, so a forgotten clock-out shows. Each day\'s shifts are oldest first, each with its id and status (open or closed). employeeIds keeps only those staff members\' shifts, and status only the open or the closed ones; every total counts the shifts kept. At most 93 days counting both ends (to at most 92 days after from). Only reads. Access: a person signed in for Ari is refused without the reports read (org:reports:read) at the venue today; for every other caller that permission, and on a till ticket the Page::Reports key of the person on the till, are only logged (Access would refuse) until the shifts module refuses all (R30).
71492
+ * The shifts staff clocked on the POS (clock-in on unlock, clock-out on lock), for the days from to to in the venue\'s time zone: per staff member and per day the shift began, with each shift\'s times and worked minutes, and totals. A shift still open, with only a clock-out, or clocked out before it clocked in, counts 0 minutes; openShifts counts the open ones, so a forgotten clock-out shows. Each day\'s shifts are oldest first, each with its id and status (open or closed). employeeIds keeps only those staff members\' shifts, and status only the open or the closed ones; every total counts the shifts kept. At most 93 days counting both ends (to at most 92 days after from). Only reads. Access: a Munchi-internal Clerk API key reads every venue; a partner\'s key is refused; a person signed in for Ari is refused without the reports read (org:reports:read) at the venue today; for every other caller that permission, and on a till ticket the Page::Reports key of the person on the till, are only logged (Access would refuse) until the shifts module refuses all (R30).
71414
71493
  * @summary Each staff member\'s clocked hours at the venue over a period
71415
71494
  * @param {number} businessId The venue\&#39;s orderingBusinessId
71416
71495
  * @param {string} from The first day, YYYY-MM-DD, in the venue\&#39;s time zone
@@ -71639,7 +71718,7 @@ export const ShiftTrackingApiFp = function(configuration?: Configuration) {
71639
71718
  const localVarAxiosParamCreator = ShiftTrackingApiAxiosParamCreator(configuration)
71640
71719
  return {
71641
71720
  /**
71642
- * A shift added in the back office: its clock-in, and its clock-out unless the staff member is still working. It counts in the hours report like a shift clocked on the till. It is refused while it would be the staff member\'s second open shift at the venue (SHIFT_ALREADY_OPEN), or overlap another of their shifts there (SHIFTS_OVERLAP); an open shift runs on with no end, and shifts that only touch do not overlap. Access: the staff write (org:staff:write) at the venue, refused without it; a till\'s own ticket is always refused, so the person on the till never changes their own hours.
71721
+ * A shift added in the back office: its clock-in, and its clock-out unless the staff member is still working. It counts in the hours report like a shift clocked on the till. It is refused while it would be the staff member\'s second open shift at the venue (SHIFT_ALREADY_OPEN), or overlap another of their shifts there (SHIFTS_OVERLAP); an open shift runs on with no end, and shifts that only touch do not overlap. Access: the staff write (org:staff:write) at the venue, refused without it, on a person or on a Munchi-internal Clerk API key\'s scopes; a till\'s own ticket is always refused, so the person on the till never changes their own hours, and a partner\'s key is refused.
71643
71722
  * @summary Record a shift the till missed, for a staff member who works at the venue
71644
71723
  * @param {number} businessId The venue\&#39;s orderingBusinessId
71645
71724
  * @param {AddShiftDto} addShiftDto
@@ -71651,7 +71730,7 @@ export const ShiftTrackingApiFp = function(configuration?: Configuration) {
71651
71730
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
71652
71731
  },
71653
71732
  /**
71654
- * Sets the times sent and keeps the others; a clock-out is never taken away, so a shift closed here stays closed, and it forgets the till session it was clocked in on, as a clock-out on the till does. The change is saved only while the shift is as it was read, so a clock-out the till writes at the same moment is never overwritten unseen, and never so that the shift overlaps another of the staff member\'s shifts at the venue (SHIFTS_OVERLAP). Access: the staff write (org:staff:write) at the venue, refused without it; a till\'s own ticket is always refused, so the person on the till never changes their own hours.
71733
+ * Sets the times sent and keeps the others; a clock-out is never taken away, so a shift closed here stays closed, and it forgets the till session it was clocked in on, as a clock-out on the till does. The change is saved only while the shift is as it was read, so a clock-out the till writes at the same moment is never overwritten unseen, and never so that the shift overlaps another of the staff member\'s shifts at the venue (SHIFTS_OVERLAP). Access: the staff write (org:staff:write) at the venue, refused without it, on a person or on a Munchi-internal Clerk API key\'s scopes; a till\'s own ticket is always refused, so the person on the till never changes their own hours, and a partner\'s key is refused.
71655
71734
  * @summary Correct a shift\'s clock-in or clock-out, a forgotten clock-out among them
71656
71735
  * @param {number} businessId The venue\&#39;s orderingBusinessId
71657
71736
  * @param {string} shiftId The shift\&#39;s id
@@ -71711,7 +71790,7 @@ export const ShiftTrackingApiFp = function(configuration?: Configuration) {
71711
71790
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
71712
71791
  },
71713
71792
  /**
71714
- * The shift no longer counts in the hours report. A shift still open is not removed (SHIFT_STILL_OPEN): its clock-out is set first, so the till\'s next clock-out is not recorded as a shift with no clock-in. Access: the staff write (org:staff:write) at the venue, refused without it; a till\'s own ticket is always refused, so the person on the till never changes their own hours.
71793
+ * The shift no longer counts in the hours report. A shift still open is not removed (SHIFT_STILL_OPEN): its clock-out is set first, so the till\'s next clock-out is not recorded as a shift with no clock-in. Access: the staff write (org:staff:write) at the venue, refused without it, on a person or on a Munchi-internal Clerk API key\'s scopes; a till\'s own ticket is always refused, so the person on the till never changes their own hours, and a partner\'s key is refused.
71715
71794
  * @summary Remove a shift recorded by mistake
71716
71795
  * @param {number} businessId The venue\&#39;s orderingBusinessId
71717
71796
  * @param {string} shiftId The shift\&#39;s id
@@ -71723,7 +71802,7 @@ export const ShiftTrackingApiFp = function(configuration?: Configuration) {
71723
71802
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
71724
71803
  },
71725
71804
  /**
71726
- * The shifts staff clocked on the POS (clock-in on unlock, clock-out on lock), for the days from to to in the venue\'s time zone: per staff member and per day the shift began, with each shift\'s times and worked minutes, and totals. A shift still open, with only a clock-out, or clocked out before it clocked in, counts 0 minutes; openShifts counts the open ones, so a forgotten clock-out shows. Each day\'s shifts are oldest first, each with its id and status (open or closed). employeeIds keeps only those staff members\' shifts, and status only the open or the closed ones; every total counts the shifts kept. At most 93 days counting both ends (to at most 92 days after from). Only reads. Access: a person signed in for Ari is refused without the reports read (org:reports:read) at the venue today; for every other caller that permission, and on a till ticket the Page::Reports key of the person on the till, are only logged (Access would refuse) until the shifts module refuses all (R30).
71805
+ * The shifts staff clocked on the POS (clock-in on unlock, clock-out on lock), for the days from to to in the venue\'s time zone: per staff member and per day the shift began, with each shift\'s times and worked minutes, and totals. A shift still open, with only a clock-out, or clocked out before it clocked in, counts 0 minutes; openShifts counts the open ones, so a forgotten clock-out shows. Each day\'s shifts are oldest first, each with its id and status (open or closed). employeeIds keeps only those staff members\' shifts, and status only the open or the closed ones; every total counts the shifts kept. At most 93 days counting both ends (to at most 92 days after from). Only reads. Access: a Munchi-internal Clerk API key reads every venue; a partner\'s key is refused; a person signed in for Ari is refused without the reports read (org:reports:read) at the venue today; for every other caller that permission, and on a till ticket the Page::Reports key of the person on the till, are only logged (Access would refuse) until the shifts module refuses all (R30).
71727
71806
  * @summary Each staff member\'s clocked hours at the venue over a period
71728
71807
  * @param {number} businessId The venue\&#39;s orderingBusinessId
71729
71808
  * @param {string} from The first day, YYYY-MM-DD, in the venue\&#39;s time zone
@@ -71789,7 +71868,7 @@ export const ShiftTrackingApiFactory = function (configuration?: Configuration,
71789
71868
  const localVarFp = ShiftTrackingApiFp(configuration)
71790
71869
  return {
71791
71870
  /**
71792
- * A shift added in the back office: its clock-in, and its clock-out unless the staff member is still working. It counts in the hours report like a shift clocked on the till. It is refused while it would be the staff member\'s second open shift at the venue (SHIFT_ALREADY_OPEN), or overlap another of their shifts there (SHIFTS_OVERLAP); an open shift runs on with no end, and shifts that only touch do not overlap. Access: the staff write (org:staff:write) at the venue, refused without it; a till\'s own ticket is always refused, so the person on the till never changes their own hours.
71871
+ * A shift added in the back office: its clock-in, and its clock-out unless the staff member is still working. It counts in the hours report like a shift clocked on the till. It is refused while it would be the staff member\'s second open shift at the venue (SHIFT_ALREADY_OPEN), or overlap another of their shifts there (SHIFTS_OVERLAP); an open shift runs on with no end, and shifts that only touch do not overlap. Access: the staff write (org:staff:write) at the venue, refused without it, on a person or on a Munchi-internal Clerk API key\'s scopes; a till\'s own ticket is always refused, so the person on the till never changes their own hours, and a partner\'s key is refused.
71793
71872
  * @summary Record a shift the till missed, for a staff member who works at the venue
71794
71873
  * @param {number} businessId The venue\&#39;s orderingBusinessId
71795
71874
  * @param {AddShiftDto} addShiftDto
@@ -71800,7 +71879,7 @@ export const ShiftTrackingApiFactory = function (configuration?: Configuration,
71800
71879
  return localVarFp.addShiftAtVenue(businessId, addShiftDto, options).then((request) => request(axios, basePath));
71801
71880
  },
71802
71881
  /**
71803
- * Sets the times sent and keeps the others; a clock-out is never taken away, so a shift closed here stays closed, and it forgets the till session it was clocked in on, as a clock-out on the till does. The change is saved only while the shift is as it was read, so a clock-out the till writes at the same moment is never overwritten unseen, and never so that the shift overlaps another of the staff member\'s shifts at the venue (SHIFTS_OVERLAP). Access: the staff write (org:staff:write) at the venue, refused without it; a till\'s own ticket is always refused, so the person on the till never changes their own hours.
71882
+ * Sets the times sent and keeps the others; a clock-out is never taken away, so a shift closed here stays closed, and it forgets the till session it was clocked in on, as a clock-out on the till does. The change is saved only while the shift is as it was read, so a clock-out the till writes at the same moment is never overwritten unseen, and never so that the shift overlaps another of the staff member\'s shifts at the venue (SHIFTS_OVERLAP). Access: the staff write (org:staff:write) at the venue, refused without it, on a person or on a Munchi-internal Clerk API key\'s scopes; a till\'s own ticket is always refused, so the person on the till never changes their own hours, and a partner\'s key is refused.
71804
71883
  * @summary Correct a shift\'s clock-in or clock-out, a forgotten clock-out among them
71805
71884
  * @param {number} businessId The venue\&#39;s orderingBusinessId
71806
71885
  * @param {string} shiftId The shift\&#39;s id
@@ -71855,7 +71934,7 @@ export const ShiftTrackingApiFactory = function (configuration?: Configuration,
71855
71934
  return localVarFp.lockTill(businessId, options).then((request) => request(axios, basePath));
71856
71935
  },
71857
71936
  /**
71858
- * The shift no longer counts in the hours report. A shift still open is not removed (SHIFT_STILL_OPEN): its clock-out is set first, so the till\'s next clock-out is not recorded as a shift with no clock-in. Access: the staff write (org:staff:write) at the venue, refused without it; a till\'s own ticket is always refused, so the person on the till never changes their own hours.
71937
+ * The shift no longer counts in the hours report. A shift still open is not removed (SHIFT_STILL_OPEN): its clock-out is set first, so the till\'s next clock-out is not recorded as a shift with no clock-in. Access: the staff write (org:staff:write) at the venue, refused without it, on a person or on a Munchi-internal Clerk API key\'s scopes; a till\'s own ticket is always refused, so the person on the till never changes their own hours, and a partner\'s key is refused.
71859
71938
  * @summary Remove a shift recorded by mistake
71860
71939
  * @param {number} businessId The venue\&#39;s orderingBusinessId
71861
71940
  * @param {string} shiftId The shift\&#39;s id
@@ -71866,7 +71945,7 @@ export const ShiftTrackingApiFactory = function (configuration?: Configuration,
71866
71945
  return localVarFp.removeShiftAtVenue(businessId, shiftId, options).then((request) => request(axios, basePath));
71867
71946
  },
71868
71947
  /**
71869
- * The shifts staff clocked on the POS (clock-in on unlock, clock-out on lock), for the days from to to in the venue\'s time zone: per staff member and per day the shift began, with each shift\'s times and worked minutes, and totals. A shift still open, with only a clock-out, or clocked out before it clocked in, counts 0 minutes; openShifts counts the open ones, so a forgotten clock-out shows. Each day\'s shifts are oldest first, each with its id and status (open or closed). employeeIds keeps only those staff members\' shifts, and status only the open or the closed ones; every total counts the shifts kept. At most 93 days counting both ends (to at most 92 days after from). Only reads. Access: a person signed in for Ari is refused without the reports read (org:reports:read) at the venue today; for every other caller that permission, and on a till ticket the Page::Reports key of the person on the till, are only logged (Access would refuse) until the shifts module refuses all (R30).
71948
+ * The shifts staff clocked on the POS (clock-in on unlock, clock-out on lock), for the days from to to in the venue\'s time zone: per staff member and per day the shift began, with each shift\'s times and worked minutes, and totals. A shift still open, with only a clock-out, or clocked out before it clocked in, counts 0 minutes; openShifts counts the open ones, so a forgotten clock-out shows. Each day\'s shifts are oldest first, each with its id and status (open or closed). employeeIds keeps only those staff members\' shifts, and status only the open or the closed ones; every total counts the shifts kept. At most 93 days counting both ends (to at most 92 days after from). Only reads. Access: a Munchi-internal Clerk API key reads every venue; a partner\'s key is refused; a person signed in for Ari is refused without the reports read (org:reports:read) at the venue today; for every other caller that permission, and on a till ticket the Page::Reports key of the person on the till, are only logged (Access would refuse) until the shifts module refuses all (R30).
71870
71949
  * @summary Each staff member\'s clocked hours at the venue over a period
71871
71950
  * @param {number} businessId The venue\&#39;s orderingBusinessId
71872
71951
  * @param {string} from The first day, YYYY-MM-DD, in the venue\&#39;s time zone
@@ -71927,7 +72006,7 @@ export const ShiftTrackingApiFactory = function (configuration?: Configuration,
71927
72006
  */
71928
72007
  export interface ShiftTrackingApiInterface {
71929
72008
  /**
71930
- * A shift added in the back office: its clock-in, and its clock-out unless the staff member is still working. It counts in the hours report like a shift clocked on the till. It is refused while it would be the staff member\'s second open shift at the venue (SHIFT_ALREADY_OPEN), or overlap another of their shifts there (SHIFTS_OVERLAP); an open shift runs on with no end, and shifts that only touch do not overlap. Access: the staff write (org:staff:write) at the venue, refused without it; a till\'s own ticket is always refused, so the person on the till never changes their own hours.
72009
+ * A shift added in the back office: its clock-in, and its clock-out unless the staff member is still working. It counts in the hours report like a shift clocked on the till. It is refused while it would be the staff member\'s second open shift at the venue (SHIFT_ALREADY_OPEN), or overlap another of their shifts there (SHIFTS_OVERLAP); an open shift runs on with no end, and shifts that only touch do not overlap. Access: the staff write (org:staff:write) at the venue, refused without it, on a person or on a Munchi-internal Clerk API key\'s scopes; a till\'s own ticket is always refused, so the person on the till never changes their own hours, and a partner\'s key is refused.
71931
72010
  * @summary Record a shift the till missed, for a staff member who works at the venue
71932
72011
  * @param {number} businessId The venue\&#39;s orderingBusinessId
71933
72012
  * @param {AddShiftDto} addShiftDto
@@ -71938,7 +72017,7 @@ export interface ShiftTrackingApiInterface {
71938
72017
  addShiftAtVenue(businessId: number, addShiftDto: AddShiftDto, options?: AxiosRequestConfig): AxiosPromise<StaffShiftDto>;
71939
72018
 
71940
72019
  /**
71941
- * Sets the times sent and keeps the others; a clock-out is never taken away, so a shift closed here stays closed, and it forgets the till session it was clocked in on, as a clock-out on the till does. The change is saved only while the shift is as it was read, so a clock-out the till writes at the same moment is never overwritten unseen, and never so that the shift overlaps another of the staff member\'s shifts at the venue (SHIFTS_OVERLAP). Access: the staff write (org:staff:write) at the venue, refused without it; a till\'s own ticket is always refused, so the person on the till never changes their own hours.
72020
+ * Sets the times sent and keeps the others; a clock-out is never taken away, so a shift closed here stays closed, and it forgets the till session it was clocked in on, as a clock-out on the till does. The change is saved only while the shift is as it was read, so a clock-out the till writes at the same moment is never overwritten unseen, and never so that the shift overlaps another of the staff member\'s shifts at the venue (SHIFTS_OVERLAP). Access: the staff write (org:staff:write) at the venue, refused without it, on a person or on a Munchi-internal Clerk API key\'s scopes; a till\'s own ticket is always refused, so the person on the till never changes their own hours, and a partner\'s key is refused.
71942
72021
  * @summary Correct a shift\'s clock-in or clock-out, a forgotten clock-out among them
71943
72022
  * @param {number} businessId The venue\&#39;s orderingBusinessId
71944
72023
  * @param {string} shiftId The shift\&#39;s id
@@ -71993,7 +72072,7 @@ export interface ShiftTrackingApiInterface {
71993
72072
  lockTill(businessId: number, options?: AxiosRequestConfig): AxiosPromise<void>;
71994
72073
 
71995
72074
  /**
71996
- * The shift no longer counts in the hours report. A shift still open is not removed (SHIFT_STILL_OPEN): its clock-out is set first, so the till\'s next clock-out is not recorded as a shift with no clock-in. Access: the staff write (org:staff:write) at the venue, refused without it; a till\'s own ticket is always refused, so the person on the till never changes their own hours.
72075
+ * The shift no longer counts in the hours report. A shift still open is not removed (SHIFT_STILL_OPEN): its clock-out is set first, so the till\'s next clock-out is not recorded as a shift with no clock-in. Access: the staff write (org:staff:write) at the venue, refused without it, on a person or on a Munchi-internal Clerk API key\'s scopes; a till\'s own ticket is always refused, so the person on the till never changes their own hours, and a partner\'s key is refused.
71997
72076
  * @summary Remove a shift recorded by mistake
71998
72077
  * @param {number} businessId The venue\&#39;s orderingBusinessId
71999
72078
  * @param {string} shiftId The shift\&#39;s id
@@ -72004,7 +72083,7 @@ export interface ShiftTrackingApiInterface {
72004
72083
  removeShiftAtVenue(businessId: number, shiftId: string, options?: AxiosRequestConfig): AxiosPromise<void>;
72005
72084
 
72006
72085
  /**
72007
- * The shifts staff clocked on the POS (clock-in on unlock, clock-out on lock), for the days from to to in the venue\'s time zone: per staff member and per day the shift began, with each shift\'s times and worked minutes, and totals. A shift still open, with only a clock-out, or clocked out before it clocked in, counts 0 minutes; openShifts counts the open ones, so a forgotten clock-out shows. Each day\'s shifts are oldest first, each with its id and status (open or closed). employeeIds keeps only those staff members\' shifts, and status only the open or the closed ones; every total counts the shifts kept. At most 93 days counting both ends (to at most 92 days after from). Only reads. Access: a person signed in for Ari is refused without the reports read (org:reports:read) at the venue today; for every other caller that permission, and on a till ticket the Page::Reports key of the person on the till, are only logged (Access would refuse) until the shifts module refuses all (R30).
72086
+ * The shifts staff clocked on the POS (clock-in on unlock, clock-out on lock), for the days from to to in the venue\'s time zone: per staff member and per day the shift began, with each shift\'s times and worked minutes, and totals. A shift still open, with only a clock-out, or clocked out before it clocked in, counts 0 minutes; openShifts counts the open ones, so a forgotten clock-out shows. Each day\'s shifts are oldest first, each with its id and status (open or closed). employeeIds keeps only those staff members\' shifts, and status only the open or the closed ones; every total counts the shifts kept. At most 93 days counting both ends (to at most 92 days after from). Only reads. Access: a Munchi-internal Clerk API key reads every venue; a partner\'s key is refused; a person signed in for Ari is refused without the reports read (org:reports:read) at the venue today; for every other caller that permission, and on a till ticket the Page::Reports key of the person on the till, are only logged (Access would refuse) until the shifts module refuses all (R30).
72008
72087
  * @summary Each staff member\'s clocked hours at the venue over a period
72009
72088
  * @param {number} businessId The venue\&#39;s orderingBusinessId
72010
72089
  * @param {string} from The first day, YYYY-MM-DD, in the venue\&#39;s time zone
@@ -72065,7 +72144,7 @@ export interface ShiftTrackingApiInterface {
72065
72144
  */
72066
72145
  export class ShiftTrackingApi extends BaseAPI implements ShiftTrackingApiInterface {
72067
72146
  /**
72068
- * A shift added in the back office: its clock-in, and its clock-out unless the staff member is still working. It counts in the hours report like a shift clocked on the till. It is refused while it would be the staff member\'s second open shift at the venue (SHIFT_ALREADY_OPEN), or overlap another of their shifts there (SHIFTS_OVERLAP); an open shift runs on with no end, and shifts that only touch do not overlap. Access: the staff write (org:staff:write) at the venue, refused without it; a till\'s own ticket is always refused, so the person on the till never changes their own hours.
72147
+ * A shift added in the back office: its clock-in, and its clock-out unless the staff member is still working. It counts in the hours report like a shift clocked on the till. It is refused while it would be the staff member\'s second open shift at the venue (SHIFT_ALREADY_OPEN), or overlap another of their shifts there (SHIFTS_OVERLAP); an open shift runs on with no end, and shifts that only touch do not overlap. Access: the staff write (org:staff:write) at the venue, refused without it, on a person or on a Munchi-internal Clerk API key\'s scopes; a till\'s own ticket is always refused, so the person on the till never changes their own hours, and a partner\'s key is refused.
72069
72148
  * @summary Record a shift the till missed, for a staff member who works at the venue
72070
72149
  * @param {number} businessId The venue\&#39;s orderingBusinessId
72071
72150
  * @param {AddShiftDto} addShiftDto
@@ -72078,7 +72157,7 @@ export class ShiftTrackingApi extends BaseAPI implements ShiftTrackingApiInterfa
72078
72157
  }
72079
72158
 
72080
72159
  /**
72081
- * Sets the times sent and keeps the others; a clock-out is never taken away, so a shift closed here stays closed, and it forgets the till session it was clocked in on, as a clock-out on the till does. The change is saved only while the shift is as it was read, so a clock-out the till writes at the same moment is never overwritten unseen, and never so that the shift overlaps another of the staff member\'s shifts at the venue (SHIFTS_OVERLAP). Access: the staff write (org:staff:write) at the venue, refused without it; a till\'s own ticket is always refused, so the person on the till never changes their own hours.
72160
+ * Sets the times sent and keeps the others; a clock-out is never taken away, so a shift closed here stays closed, and it forgets the till session it was clocked in on, as a clock-out on the till does. The change is saved only while the shift is as it was read, so a clock-out the till writes at the same moment is never overwritten unseen, and never so that the shift overlaps another of the staff member\'s shifts at the venue (SHIFTS_OVERLAP). Access: the staff write (org:staff:write) at the venue, refused without it, on a person or on a Munchi-internal Clerk API key\'s scopes; a till\'s own ticket is always refused, so the person on the till never changes their own hours, and a partner\'s key is refused.
72082
72161
  * @summary Correct a shift\'s clock-in or clock-out, a forgotten clock-out among them
72083
72162
  * @param {number} businessId The venue\&#39;s orderingBusinessId
72084
72163
  * @param {string} shiftId The shift\&#39;s id
@@ -72143,7 +72222,7 @@ export class ShiftTrackingApi extends BaseAPI implements ShiftTrackingApiInterfa
72143
72222
  }
72144
72223
 
72145
72224
  /**
72146
- * The shift no longer counts in the hours report. A shift still open is not removed (SHIFT_STILL_OPEN): its clock-out is set first, so the till\'s next clock-out is not recorded as a shift with no clock-in. Access: the staff write (org:staff:write) at the venue, refused without it; a till\'s own ticket is always refused, so the person on the till never changes their own hours.
72225
+ * The shift no longer counts in the hours report. A shift still open is not removed (SHIFT_STILL_OPEN): its clock-out is set first, so the till\'s next clock-out is not recorded as a shift with no clock-in. Access: the staff write (org:staff:write) at the venue, refused without it, on a person or on a Munchi-internal Clerk API key\'s scopes; a till\'s own ticket is always refused, so the person on the till never changes their own hours, and a partner\'s key is refused.
72147
72226
  * @summary Remove a shift recorded by mistake
72148
72227
  * @param {number} businessId The venue\&#39;s orderingBusinessId
72149
72228
  * @param {string} shiftId The shift\&#39;s id
@@ -72156,7 +72235,7 @@ export class ShiftTrackingApi extends BaseAPI implements ShiftTrackingApiInterfa
72156
72235
  }
72157
72236
 
72158
72237
  /**
72159
- * The shifts staff clocked on the POS (clock-in on unlock, clock-out on lock), for the days from to to in the venue\'s time zone: per staff member and per day the shift began, with each shift\'s times and worked minutes, and totals. A shift still open, with only a clock-out, or clocked out before it clocked in, counts 0 minutes; openShifts counts the open ones, so a forgotten clock-out shows. Each day\'s shifts are oldest first, each with its id and status (open or closed). employeeIds keeps only those staff members\' shifts, and status only the open or the closed ones; every total counts the shifts kept. At most 93 days counting both ends (to at most 92 days after from). Only reads. Access: a person signed in for Ari is refused without the reports read (org:reports:read) at the venue today; for every other caller that permission, and on a till ticket the Page::Reports key of the person on the till, are only logged (Access would refuse) until the shifts module refuses all (R30).
72238
+ * The shifts staff clocked on the POS (clock-in on unlock, clock-out on lock), for the days from to to in the venue\'s time zone: per staff member and per day the shift began, with each shift\'s times and worked minutes, and totals. A shift still open, with only a clock-out, or clocked out before it clocked in, counts 0 minutes; openShifts counts the open ones, so a forgotten clock-out shows. Each day\'s shifts are oldest first, each with its id and status (open or closed). employeeIds keeps only those staff members\' shifts, and status only the open or the closed ones; every total counts the shifts kept. At most 93 days counting both ends (to at most 92 days after from). Only reads. Access: a Munchi-internal Clerk API key reads every venue; a partner\'s key is refused; a person signed in for Ari is refused without the reports read (org:reports:read) at the venue today; for every other caller that permission, and on a till ticket the Page::Reports key of the person on the till, are only logged (Access would refuse) until the shifts module refuses all (R30).
72160
72239
  * @summary Each staff member\'s clocked hours at the venue over a period
72161
72240
  * @param {number} businessId The venue\&#39;s orderingBusinessId
72162
72241
  * @param {string} from The first day, YYYY-MM-DD, in the venue\&#39;s time zone
@@ -72480,6 +72559,323 @@ export class StationsApi extends BaseAPI implements StationsApiInterface {
72480
72559
  }
72481
72560
 
72482
72561
 
72562
+ /**
72563
+ * StoreAppsApi - axios parameter creator
72564
+ * @export
72565
+ */
72566
+ export const StoreAppsApiAxiosParamCreator = function (configuration?: Configuration) {
72567
+ return {
72568
+ /**
72569
+ * Adds the app at the end of the store\'s list (once) or removes it, in one statement on the saved list, so two people changing the store at once both land. A store with no list yet gets startWith with the change applied. Only the store\'s managers and its organisation\'s management may.
72570
+ * @summary Add one app to a store\'s Your apps, or remove it
72571
+ * @param {number} businessId The store\&#39;s orderingBusinessId
72572
+ * @param {StoreApp} app The app added to the store\&#39;s Your apps, or removed from it
72573
+ * @param {ChangeStoreAppDto} changeStoreAppDto
72574
+ * @param {*} [options] Override http request option.
72575
+ * @throws {RequiredError}
72576
+ */
72577
+ changeStoreApp: async (businessId: number, app: StoreApp, changeStoreAppDto: ChangeStoreAppDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
72578
+ // verify required parameter 'businessId' is not null or undefined
72579
+ assertParamExists('changeStoreApp', 'businessId', businessId)
72580
+ // verify required parameter 'app' is not null or undefined
72581
+ assertParamExists('changeStoreApp', 'app', app)
72582
+ // verify required parameter 'changeStoreAppDto' is not null or undefined
72583
+ assertParamExists('changeStoreApp', 'changeStoreAppDto', changeStoreAppDto)
72584
+ const localVarPath = `/api/v6/businesses/{businessId}/apps/{app}`
72585
+ .replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)))
72586
+ .replace(`{${"app"}}`, encodeURIComponent(String(app)));
72587
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
72588
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
72589
+ let baseOptions;
72590
+ if (configuration) {
72591
+ baseOptions = configuration.baseOptions;
72592
+ }
72593
+
72594
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
72595
+ const localVarHeaderParameter = {} as any;
72596
+ const localVarQueryParameter = {} as any;
72597
+
72598
+ // authentication JWT-auth required
72599
+ // http bearer authentication required
72600
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
72601
+
72602
+
72603
+
72604
+ localVarHeaderParameter['Content-Type'] = 'application/json';
72605
+
72606
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
72607
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
72608
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
72609
+ localVarRequestOptions.data = serializeDataIfNeeded(changeStoreAppDto, localVarRequestOptions, configuration)
72610
+
72611
+ return {
72612
+ url: toPathString(localVarUrlObj),
72613
+ options: localVarRequestOptions,
72614
+ };
72615
+ },
72616
+ /**
72617
+ * The store\'s saved list, shared by everyone working at the store; null while nobody has saved one yet. Read from the database every time.
72618
+ * @summary Read the apps a store added to Your apps
72619
+ * @param {number} businessId The store\&#39;s orderingBusinessId
72620
+ * @param {*} [options] Override http request option.
72621
+ * @throws {RequiredError}
72622
+ */
72623
+ getStoreApps: async (businessId: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
72624
+ // verify required parameter 'businessId' is not null or undefined
72625
+ assertParamExists('getStoreApps', 'businessId', businessId)
72626
+ const localVarPath = `/api/v6/businesses/{businessId}/apps`
72627
+ .replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)));
72628
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
72629
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
72630
+ let baseOptions;
72631
+ if (configuration) {
72632
+ baseOptions = configuration.baseOptions;
72633
+ }
72634
+
72635
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
72636
+ const localVarHeaderParameter = {} as any;
72637
+ const localVarQueryParameter = {} as any;
72638
+
72639
+ // authentication JWT-auth required
72640
+ // http bearer authentication required
72641
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
72642
+
72643
+
72644
+
72645
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
72646
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
72647
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
72648
+
72649
+ return {
72650
+ url: toPathString(localVarUrlObj),
72651
+ options: localVarRequestOptions,
72652
+ };
72653
+ },
72654
+ /**
72655
+ * Saves the apps sent as the store\'s list only while the store has none, in one statement; a list already saved is kept as it is and answered, so it never overwrites anyone\'s change. Everyone working at the store may.
72656
+ * @summary Record the apps a store shows today as its list, unless it has one
72657
+ * @param {number} businessId The store\&#39;s orderingBusinessId
72658
+ * @param {StartStoreAppsDto} startStoreAppsDto
72659
+ * @param {*} [options] Override http request option.
72660
+ * @throws {RequiredError}
72661
+ */
72662
+ startStoreApps: async (businessId: number, startStoreAppsDto: StartStoreAppsDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
72663
+ // verify required parameter 'businessId' is not null or undefined
72664
+ assertParamExists('startStoreApps', 'businessId', businessId)
72665
+ // verify required parameter 'startStoreAppsDto' is not null or undefined
72666
+ assertParamExists('startStoreApps', 'startStoreAppsDto', startStoreAppsDto)
72667
+ const localVarPath = `/api/v6/businesses/{businessId}/apps`
72668
+ .replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)));
72669
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
72670
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
72671
+ let baseOptions;
72672
+ if (configuration) {
72673
+ baseOptions = configuration.baseOptions;
72674
+ }
72675
+
72676
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
72677
+ const localVarHeaderParameter = {} as any;
72678
+ const localVarQueryParameter = {} as any;
72679
+
72680
+ // authentication JWT-auth required
72681
+ // http bearer authentication required
72682
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
72683
+
72684
+
72685
+
72686
+ localVarHeaderParameter['Content-Type'] = 'application/json';
72687
+
72688
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
72689
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
72690
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
72691
+ localVarRequestOptions.data = serializeDataIfNeeded(startStoreAppsDto, localVarRequestOptions, configuration)
72692
+
72693
+ return {
72694
+ url: toPathString(localVarUrlObj),
72695
+ options: localVarRequestOptions,
72696
+ };
72697
+ },
72698
+ }
72699
+ };
72700
+
72701
+ /**
72702
+ * StoreAppsApi - functional programming interface
72703
+ * @export
72704
+ */
72705
+ export const StoreAppsApiFp = function(configuration?: Configuration) {
72706
+ const localVarAxiosParamCreator = StoreAppsApiAxiosParamCreator(configuration)
72707
+ return {
72708
+ /**
72709
+ * Adds the app at the end of the store\'s list (once) or removes it, in one statement on the saved list, so two people changing the store at once both land. A store with no list yet gets startWith with the change applied. Only the store\'s managers and its organisation\'s management may.
72710
+ * @summary Add one app to a store\'s Your apps, or remove it
72711
+ * @param {number} businessId The store\&#39;s orderingBusinessId
72712
+ * @param {StoreApp} app The app added to the store\&#39;s Your apps, or removed from it
72713
+ * @param {ChangeStoreAppDto} changeStoreAppDto
72714
+ * @param {*} [options] Override http request option.
72715
+ * @throws {RequiredError}
72716
+ */
72717
+ async changeStoreApp(businessId: number, app: StoreApp, changeStoreAppDto: ChangeStoreAppDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SavedStoreAppsDto>> {
72718
+ const localVarAxiosArgs = await localVarAxiosParamCreator.changeStoreApp(businessId, app, changeStoreAppDto, options);
72719
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
72720
+ },
72721
+ /**
72722
+ * The store\'s saved list, shared by everyone working at the store; null while nobody has saved one yet. Read from the database every time.
72723
+ * @summary Read the apps a store added to Your apps
72724
+ * @param {number} businessId The store\&#39;s orderingBusinessId
72725
+ * @param {*} [options] Override http request option.
72726
+ * @throws {RequiredError}
72727
+ */
72728
+ async getStoreApps(businessId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StoreAppsDto>> {
72729
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getStoreApps(businessId, options);
72730
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
72731
+ },
72732
+ /**
72733
+ * Saves the apps sent as the store\'s list only while the store has none, in one statement; a list already saved is kept as it is and answered, so it never overwrites anyone\'s change. Everyone working at the store may.
72734
+ * @summary Record the apps a store shows today as its list, unless it has one
72735
+ * @param {number} businessId The store\&#39;s orderingBusinessId
72736
+ * @param {StartStoreAppsDto} startStoreAppsDto
72737
+ * @param {*} [options] Override http request option.
72738
+ * @throws {RequiredError}
72739
+ */
72740
+ async startStoreApps(businessId: number, startStoreAppsDto: StartStoreAppsDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SavedStoreAppsDto>> {
72741
+ const localVarAxiosArgs = await localVarAxiosParamCreator.startStoreApps(businessId, startStoreAppsDto, options);
72742
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
72743
+ },
72744
+ }
72745
+ };
72746
+
72747
+ /**
72748
+ * StoreAppsApi - factory interface
72749
+ * @export
72750
+ */
72751
+ export const StoreAppsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
72752
+ const localVarFp = StoreAppsApiFp(configuration)
72753
+ return {
72754
+ /**
72755
+ * Adds the app at the end of the store\'s list (once) or removes it, in one statement on the saved list, so two people changing the store at once both land. A store with no list yet gets startWith with the change applied. Only the store\'s managers and its organisation\'s management may.
72756
+ * @summary Add one app to a store\'s Your apps, or remove it
72757
+ * @param {number} businessId The store\&#39;s orderingBusinessId
72758
+ * @param {StoreApp} app The app added to the store\&#39;s Your apps, or removed from it
72759
+ * @param {ChangeStoreAppDto} changeStoreAppDto
72760
+ * @param {*} [options] Override http request option.
72761
+ * @throws {RequiredError}
72762
+ */
72763
+ changeStoreApp(businessId: number, app: StoreApp, changeStoreAppDto: ChangeStoreAppDto, options?: any): AxiosPromise<SavedStoreAppsDto> {
72764
+ return localVarFp.changeStoreApp(businessId, app, changeStoreAppDto, options).then((request) => request(axios, basePath));
72765
+ },
72766
+ /**
72767
+ * The store\'s saved list, shared by everyone working at the store; null while nobody has saved one yet. Read from the database every time.
72768
+ * @summary Read the apps a store added to Your apps
72769
+ * @param {number} businessId The store\&#39;s orderingBusinessId
72770
+ * @param {*} [options] Override http request option.
72771
+ * @throws {RequiredError}
72772
+ */
72773
+ getStoreApps(businessId: number, options?: any): AxiosPromise<StoreAppsDto> {
72774
+ return localVarFp.getStoreApps(businessId, options).then((request) => request(axios, basePath));
72775
+ },
72776
+ /**
72777
+ * Saves the apps sent as the store\'s list only while the store has none, in one statement; a list already saved is kept as it is and answered, so it never overwrites anyone\'s change. Everyone working at the store may.
72778
+ * @summary Record the apps a store shows today as its list, unless it has one
72779
+ * @param {number} businessId The store\&#39;s orderingBusinessId
72780
+ * @param {StartStoreAppsDto} startStoreAppsDto
72781
+ * @param {*} [options] Override http request option.
72782
+ * @throws {RequiredError}
72783
+ */
72784
+ startStoreApps(businessId: number, startStoreAppsDto: StartStoreAppsDto, options?: any): AxiosPromise<SavedStoreAppsDto> {
72785
+ return localVarFp.startStoreApps(businessId, startStoreAppsDto, options).then((request) => request(axios, basePath));
72786
+ },
72787
+ };
72788
+ };
72789
+
72790
+ /**
72791
+ * StoreAppsApi - interface
72792
+ * @export
72793
+ * @interface StoreAppsApi
72794
+ */
72795
+ export interface StoreAppsApiInterface {
72796
+ /**
72797
+ * Adds the app at the end of the store\'s list (once) or removes it, in one statement on the saved list, so two people changing the store at once both land. A store with no list yet gets startWith with the change applied. Only the store\'s managers and its organisation\'s management may.
72798
+ * @summary Add one app to a store\'s Your apps, or remove it
72799
+ * @param {number} businessId The store\&#39;s orderingBusinessId
72800
+ * @param {StoreApp} app The app added to the store\&#39;s Your apps, or removed from it
72801
+ * @param {ChangeStoreAppDto} changeStoreAppDto
72802
+ * @param {*} [options] Override http request option.
72803
+ * @throws {RequiredError}
72804
+ * @memberof StoreAppsApiInterface
72805
+ */
72806
+ changeStoreApp(businessId: number, app: StoreApp, changeStoreAppDto: ChangeStoreAppDto, options?: AxiosRequestConfig): AxiosPromise<SavedStoreAppsDto>;
72807
+
72808
+ /**
72809
+ * The store\'s saved list, shared by everyone working at the store; null while nobody has saved one yet. Read from the database every time.
72810
+ * @summary Read the apps a store added to Your apps
72811
+ * @param {number} businessId The store\&#39;s orderingBusinessId
72812
+ * @param {*} [options] Override http request option.
72813
+ * @throws {RequiredError}
72814
+ * @memberof StoreAppsApiInterface
72815
+ */
72816
+ getStoreApps(businessId: number, options?: AxiosRequestConfig): AxiosPromise<StoreAppsDto>;
72817
+
72818
+ /**
72819
+ * Saves the apps sent as the store\'s list only while the store has none, in one statement; a list already saved is kept as it is and answered, so it never overwrites anyone\'s change. Everyone working at the store may.
72820
+ * @summary Record the apps a store shows today as its list, unless it has one
72821
+ * @param {number} businessId The store\&#39;s orderingBusinessId
72822
+ * @param {StartStoreAppsDto} startStoreAppsDto
72823
+ * @param {*} [options] Override http request option.
72824
+ * @throws {RequiredError}
72825
+ * @memberof StoreAppsApiInterface
72826
+ */
72827
+ startStoreApps(businessId: number, startStoreAppsDto: StartStoreAppsDto, options?: AxiosRequestConfig): AxiosPromise<SavedStoreAppsDto>;
72828
+
72829
+ }
72830
+
72831
+ /**
72832
+ * StoreAppsApi - object-oriented interface
72833
+ * @export
72834
+ * @class StoreAppsApi
72835
+ * @extends {BaseAPI}
72836
+ */
72837
+ export class StoreAppsApi extends BaseAPI implements StoreAppsApiInterface {
72838
+ /**
72839
+ * Adds the app at the end of the store\'s list (once) or removes it, in one statement on the saved list, so two people changing the store at once both land. A store with no list yet gets startWith with the change applied. Only the store\'s managers and its organisation\'s management may.
72840
+ * @summary Add one app to a store\'s Your apps, or remove it
72841
+ * @param {number} businessId The store\&#39;s orderingBusinessId
72842
+ * @param {StoreApp} app The app added to the store\&#39;s Your apps, or removed from it
72843
+ * @param {ChangeStoreAppDto} changeStoreAppDto
72844
+ * @param {*} [options] Override http request option.
72845
+ * @throws {RequiredError}
72846
+ * @memberof StoreAppsApi
72847
+ */
72848
+ public changeStoreApp(businessId: number, app: StoreApp, changeStoreAppDto: ChangeStoreAppDto, options?: AxiosRequestConfig) {
72849
+ return StoreAppsApiFp(this.configuration).changeStoreApp(businessId, app, changeStoreAppDto, options).then((request) => request(this.axios, this.basePath));
72850
+ }
72851
+
72852
+ /**
72853
+ * The store\'s saved list, shared by everyone working at the store; null while nobody has saved one yet. Read from the database every time.
72854
+ * @summary Read the apps a store added to Your apps
72855
+ * @param {number} businessId The store\&#39;s orderingBusinessId
72856
+ * @param {*} [options] Override http request option.
72857
+ * @throws {RequiredError}
72858
+ * @memberof StoreAppsApi
72859
+ */
72860
+ public getStoreApps(businessId: number, options?: AxiosRequestConfig) {
72861
+ return StoreAppsApiFp(this.configuration).getStoreApps(businessId, options).then((request) => request(this.axios, this.basePath));
72862
+ }
72863
+
72864
+ /**
72865
+ * Saves the apps sent as the store\'s list only while the store has none, in one statement; a list already saved is kept as it is and answered, so it never overwrites anyone\'s change. Everyone working at the store may.
72866
+ * @summary Record the apps a store shows today as its list, unless it has one
72867
+ * @param {number} businessId The store\&#39;s orderingBusinessId
72868
+ * @param {StartStoreAppsDto} startStoreAppsDto
72869
+ * @param {*} [options] Override http request option.
72870
+ * @throws {RequiredError}
72871
+ * @memberof StoreAppsApi
72872
+ */
72873
+ public startStoreApps(businessId: number, startStoreAppsDto: StartStoreAppsDto, options?: AxiosRequestConfig) {
72874
+ return StoreAppsApiFp(this.configuration).startStoreApps(businessId, startStoreAppsDto, options).then((request) => request(this.axios, this.basePath));
72875
+ }
72876
+ }
72877
+
72878
+
72483
72879
  /**
72484
72880
  * TerminalApi - axios parameter creator
72485
72881
  * @export