@munchi_oy/core 1.9.61 → 1.9.65
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/dist/generated/api.d.ts +205 -27
- package/dist/generated/api.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/src/version.d.ts +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/generated/api.ts +304 -28
- package/package.json +15 -13
- package/src/version.ts +1 -1
package/generated/api.ts
CHANGED
|
@@ -3734,6 +3734,12 @@ export interface CreateManualSessionDtoOrder {
|
|
|
3734
3734
|
* @memberof CreateManualSessionDtoOrder
|
|
3735
3735
|
*/
|
|
3736
3736
|
'targetUserId'?: number;
|
|
3737
|
+
/**
|
|
3738
|
+
* ID of the table group this order belongs to
|
|
3739
|
+
* @type {string}
|
|
3740
|
+
* @memberof CreateManualSessionDtoOrder
|
|
3741
|
+
*/
|
|
3742
|
+
'tableGroupId'?: string | null;
|
|
3737
3743
|
}
|
|
3738
3744
|
|
|
3739
3745
|
|
|
@@ -4646,6 +4652,12 @@ export interface DiningTableResponseDto {
|
|
|
4646
4652
|
* @memberof DiningTableResponseDto
|
|
4647
4653
|
*/
|
|
4648
4654
|
'updatedAt': string;
|
|
4655
|
+
/**
|
|
4656
|
+
* ID of the table group this table belongs to
|
|
4657
|
+
* @type {string}
|
|
4658
|
+
* @memberof DiningTableResponseDto
|
|
4659
|
+
*/
|
|
4660
|
+
'tableGroupId'?: string | null;
|
|
4649
4661
|
}
|
|
4650
4662
|
|
|
4651
4663
|
|
|
@@ -6925,6 +6937,19 @@ export interface ItemPriceDto {
|
|
|
6925
6937
|
*/
|
|
6926
6938
|
'priceBreakdown': ItemPriceBreakdownDto;
|
|
6927
6939
|
}
|
|
6940
|
+
/**
|
|
6941
|
+
*
|
|
6942
|
+
* @export
|
|
6943
|
+
* @interface JoinTablesDto
|
|
6944
|
+
*/
|
|
6945
|
+
export interface JoinTablesDto {
|
|
6946
|
+
/**
|
|
6947
|
+
*
|
|
6948
|
+
* @type {Array<string>}
|
|
6949
|
+
* @memberof JoinTablesDto
|
|
6950
|
+
*/
|
|
6951
|
+
'tableIds': Array<string>;
|
|
6952
|
+
}
|
|
6928
6953
|
/**
|
|
6929
6954
|
*
|
|
6930
6955
|
* @export
|
|
@@ -12029,10 +12054,7 @@ export const PaymentMethod = {
|
|
|
12029
12054
|
Kiinteisto: 'Kiinteisto',
|
|
12030
12055
|
Jpn: 'JPN',
|
|
12031
12056
|
NineLives: 'NineLives',
|
|
12032
|
-
Trade: 'Trade'
|
|
12033
|
-
Exchange: 'Exchange',
|
|
12034
|
-
Tilisiirto: 'Tilisiirto',
|
|
12035
|
-
LoyaltyPoints: 'LoyaltyPoints'
|
|
12057
|
+
Trade: 'Trade'
|
|
12036
12058
|
} as const;
|
|
12037
12059
|
|
|
12038
12060
|
export type PaymentMethod = typeof PaymentMethod[keyof typeof PaymentMethod];
|
|
@@ -14071,6 +14093,12 @@ export interface PosOrderDto {
|
|
|
14071
14093
|
* @memberof PosOrderDto
|
|
14072
14094
|
*/
|
|
14073
14095
|
'targetUserId'?: number;
|
|
14096
|
+
/**
|
|
14097
|
+
* ID of the table group this order belongs to
|
|
14098
|
+
* @type {string}
|
|
14099
|
+
* @memberof PosOrderDto
|
|
14100
|
+
*/
|
|
14101
|
+
'tableGroupId'?: string | null;
|
|
14074
14102
|
}
|
|
14075
14103
|
|
|
14076
14104
|
|
|
@@ -14406,11 +14434,11 @@ export interface PosOrderItemDto {
|
|
|
14406
14434
|
*/
|
|
14407
14435
|
'printerType'?: PrinterTypeEnum;
|
|
14408
14436
|
/**
|
|
14409
|
-
* Resolved target printer
|
|
14410
|
-
* @type {
|
|
14437
|
+
* Resolved target printer address; null/undefined means print on all kitchen printers
|
|
14438
|
+
* @type {string}
|
|
14411
14439
|
* @memberof PosOrderItemDto
|
|
14412
14440
|
*/
|
|
14413
|
-
'
|
|
14441
|
+
'printerId'?: string | null;
|
|
14414
14442
|
/**
|
|
14415
14443
|
*
|
|
14416
14444
|
* @type {Array<PosOrderOptionDto>}
|
|
@@ -14875,6 +14903,12 @@ export interface PosOrderPayloadDtoOrder {
|
|
|
14875
14903
|
* @memberof PosOrderPayloadDtoOrder
|
|
14876
14904
|
*/
|
|
14877
14905
|
'targetUserId'?: number;
|
|
14906
|
+
/**
|
|
14907
|
+
* ID of the table group this order belongs to
|
|
14908
|
+
* @type {string}
|
|
14909
|
+
* @memberof PosOrderPayloadDtoOrder
|
|
14910
|
+
*/
|
|
14911
|
+
'tableGroupId'?: string | null;
|
|
14878
14912
|
}
|
|
14879
14913
|
|
|
14880
14914
|
|
|
@@ -15823,6 +15857,12 @@ export interface ProcessOrderActionsResponseDtoOrder {
|
|
|
15823
15857
|
* @memberof ProcessOrderActionsResponseDtoOrder
|
|
15824
15858
|
*/
|
|
15825
15859
|
'targetUserId'?: number;
|
|
15860
|
+
/**
|
|
15861
|
+
* ID of the table group this order belongs to
|
|
15862
|
+
* @type {string}
|
|
15863
|
+
* @memberof ProcessOrderActionsResponseDtoOrder
|
|
15864
|
+
*/
|
|
15865
|
+
'tableGroupId'?: string | null;
|
|
15826
15866
|
}
|
|
15827
15867
|
|
|
15828
15868
|
|
|
@@ -17033,6 +17073,12 @@ export interface RecordManualPaymentResultDtoOrder {
|
|
|
17033
17073
|
* @memberof RecordManualPaymentResultDtoOrder
|
|
17034
17074
|
*/
|
|
17035
17075
|
'targetUserId'?: number;
|
|
17076
|
+
/**
|
|
17077
|
+
* ID of the table group this order belongs to
|
|
17078
|
+
* @type {string}
|
|
17079
|
+
* @memberof RecordManualPaymentResultDtoOrder
|
|
17080
|
+
*/
|
|
17081
|
+
'tableGroupId'?: string | null;
|
|
17036
17082
|
}
|
|
17037
17083
|
|
|
17038
17084
|
|
|
@@ -18915,6 +18961,53 @@ export const SystemProfileType = {
|
|
|
18915
18961
|
export type SystemProfileType = typeof SystemProfileType[keyof typeof SystemProfileType];
|
|
18916
18962
|
|
|
18917
18963
|
|
|
18964
|
+
/**
|
|
18965
|
+
*
|
|
18966
|
+
* @export
|
|
18967
|
+
* @interface TableGroupResponseDto
|
|
18968
|
+
*/
|
|
18969
|
+
export interface TableGroupResponseDto {
|
|
18970
|
+
/**
|
|
18971
|
+
*
|
|
18972
|
+
* @type {string}
|
|
18973
|
+
* @memberof TableGroupResponseDto
|
|
18974
|
+
*/
|
|
18975
|
+
'id': string;
|
|
18976
|
+
/**
|
|
18977
|
+
*
|
|
18978
|
+
* @type {TableGroupType}
|
|
18979
|
+
* @memberof TableGroupResponseDto
|
|
18980
|
+
*/
|
|
18981
|
+
'type': TableGroupType;
|
|
18982
|
+
/**
|
|
18983
|
+
*
|
|
18984
|
+
* @type {Array<string>}
|
|
18985
|
+
* @memberof TableGroupResponseDto
|
|
18986
|
+
*/
|
|
18987
|
+
'tableIds': Array<string>;
|
|
18988
|
+
/**
|
|
18989
|
+
*
|
|
18990
|
+
* @type {string}
|
|
18991
|
+
* @memberof TableGroupResponseDto
|
|
18992
|
+
*/
|
|
18993
|
+
'createdAt': string;
|
|
18994
|
+
}
|
|
18995
|
+
|
|
18996
|
+
|
|
18997
|
+
/**
|
|
18998
|
+
*
|
|
18999
|
+
* @export
|
|
19000
|
+
* @enum {string}
|
|
19001
|
+
*/
|
|
19002
|
+
|
|
19003
|
+
export const TableGroupType = {
|
|
19004
|
+
AdHoc: 'AD_HOC',
|
|
19005
|
+
Predefined: 'PREDEFINED'
|
|
19006
|
+
} as const;
|
|
19007
|
+
|
|
19008
|
+
export type TableGroupType = typeof TableGroupType[keyof typeof TableGroupType];
|
|
19009
|
+
|
|
19010
|
+
|
|
18918
19011
|
/**
|
|
18919
19012
|
*
|
|
18920
19013
|
* @export
|
|
@@ -18939,10 +19032,10 @@ export type TableShape = typeof TableShape[keyof typeof TableShape];
|
|
|
18939
19032
|
|
|
18940
19033
|
export const TableStatus = {
|
|
18941
19034
|
Available: 'AVAILABLE',
|
|
19035
|
+
Occupied: 'OCCUPIED',
|
|
18942
19036
|
Dirty: 'DIRTY',
|
|
18943
19037
|
Blocked: 'BLOCKED',
|
|
18944
|
-
OutOfService: 'OUT_OF_SERVICE'
|
|
18945
|
-
Occupied: 'OCCUPIED'
|
|
19038
|
+
OutOfService: 'OUT_OF_SERVICE'
|
|
18946
19039
|
} as const;
|
|
18947
19040
|
|
|
18948
19041
|
export type TableStatus = typeof TableStatus[keyof typeof TableStatus];
|
|
@@ -20634,11 +20727,11 @@ export interface UnifiedProductDto {
|
|
|
20634
20727
|
*/
|
|
20635
20728
|
'comment'?: string | null;
|
|
20636
20729
|
/**
|
|
20637
|
-
* Resolved target printer
|
|
20638
|
-
* @type {
|
|
20730
|
+
* Resolved target printer address; null/undefined means print on all kitchen printers
|
|
20731
|
+
* @type {string}
|
|
20639
20732
|
* @memberof UnifiedProductDto
|
|
20640
20733
|
*/
|
|
20641
|
-
'
|
|
20734
|
+
'printerId'?: string | null;
|
|
20642
20735
|
/**
|
|
20643
20736
|
*
|
|
20644
20737
|
* @type {KitchenItemStatus}
|
|
@@ -21293,11 +21386,11 @@ export interface UpsertCategoryPrintPolicyDto {
|
|
|
21293
21386
|
*/
|
|
21294
21387
|
'categoryId': number;
|
|
21295
21388
|
/**
|
|
21296
|
-
*
|
|
21297
|
-
* @type {
|
|
21389
|
+
* Target printer row ID
|
|
21390
|
+
* @type {number}
|
|
21298
21391
|
* @memberof UpsertCategoryPrintPolicyDto
|
|
21299
21392
|
*/
|
|
21300
|
-
'
|
|
21393
|
+
'printerId': number;
|
|
21301
21394
|
}
|
|
21302
21395
|
/**
|
|
21303
21396
|
*
|
|
@@ -21638,10 +21731,7 @@ export const NameEnum = {
|
|
|
21638
21731
|
Kiinteisto: 'Kiinteisto',
|
|
21639
21732
|
Jpn: 'JPN',
|
|
21640
21733
|
NineLives: 'NineLives',
|
|
21641
|
-
Trade: 'Trade'
|
|
21642
|
-
Exchange: 'Exchange',
|
|
21643
|
-
Tilisiirto: 'Tilisiirto',
|
|
21644
|
-
LoyaltyPoints: 'LoyaltyPoints'
|
|
21734
|
+
Trade: 'Trade'
|
|
21645
21735
|
} as const;
|
|
21646
21736
|
|
|
21647
21737
|
export type NameEnum = typeof NameEnum[keyof typeof NameEnum];
|
|
@@ -21717,11 +21807,11 @@ export interface UpsertProductPrintPolicyDto {
|
|
|
21717
21807
|
*/
|
|
21718
21808
|
'productId': number;
|
|
21719
21809
|
/**
|
|
21720
|
-
*
|
|
21721
|
-
* @type {
|
|
21810
|
+
* Target printer row ID
|
|
21811
|
+
* @type {number}
|
|
21722
21812
|
* @memberof UpsertProductPrintPolicyDto
|
|
21723
21813
|
*/
|
|
21724
|
-
'
|
|
21814
|
+
'printerId': number;
|
|
21725
21815
|
}
|
|
21726
21816
|
/**
|
|
21727
21817
|
*
|
|
@@ -29635,6 +29725,51 @@ export const FloorPlanApiAxiosParamCreator = function (configuration?: Configura
|
|
|
29635
29725
|
|
|
29636
29726
|
|
|
29637
29727
|
|
|
29728
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
29729
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
29730
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
29731
|
+
|
|
29732
|
+
return {
|
|
29733
|
+
url: toPathString(localVarUrlObj),
|
|
29734
|
+
options: localVarRequestOptions,
|
|
29735
|
+
};
|
|
29736
|
+
},
|
|
29737
|
+
/**
|
|
29738
|
+
*
|
|
29739
|
+
* @summary Dissolve a table group
|
|
29740
|
+
* @param {string} id
|
|
29741
|
+
* @param {number} businessId
|
|
29742
|
+
* @param {*} [options] Override http request option.
|
|
29743
|
+
* @throws {RequiredError}
|
|
29744
|
+
*/
|
|
29745
|
+
dissolveTableGroup: async (id: string, businessId: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
29746
|
+
// verify required parameter 'id' is not null or undefined
|
|
29747
|
+
assertParamExists('dissolveTableGroup', 'id', id)
|
|
29748
|
+
// verify required parameter 'businessId' is not null or undefined
|
|
29749
|
+
assertParamExists('dissolveTableGroup', 'businessId', businessId)
|
|
29750
|
+
const localVarPath = `/api/v1/floor-plan/table-groups/{id}/dissolve`
|
|
29751
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
29752
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
29753
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
29754
|
+
let baseOptions;
|
|
29755
|
+
if (configuration) {
|
|
29756
|
+
baseOptions = configuration.baseOptions;
|
|
29757
|
+
}
|
|
29758
|
+
|
|
29759
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
29760
|
+
const localVarHeaderParameter = {} as any;
|
|
29761
|
+
const localVarQueryParameter = {} as any;
|
|
29762
|
+
|
|
29763
|
+
// authentication JWT-auth required
|
|
29764
|
+
// http bearer authentication required
|
|
29765
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
29766
|
+
|
|
29767
|
+
if (businessId !== undefined) {
|
|
29768
|
+
localVarQueryParameter['businessId'] = businessId;
|
|
29769
|
+
}
|
|
29770
|
+
|
|
29771
|
+
|
|
29772
|
+
|
|
29638
29773
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
29639
29774
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
29640
29775
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -29685,6 +29820,53 @@ export const FloorPlanApiAxiosParamCreator = function (configuration?: Configura
|
|
|
29685
29820
|
options: localVarRequestOptions,
|
|
29686
29821
|
};
|
|
29687
29822
|
},
|
|
29823
|
+
/**
|
|
29824
|
+
*
|
|
29825
|
+
* @summary Join tables into an AD_HOC group
|
|
29826
|
+
* @param {number} businessId
|
|
29827
|
+
* @param {JoinTablesDto} joinTablesDto
|
|
29828
|
+
* @param {*} [options] Override http request option.
|
|
29829
|
+
* @throws {RequiredError}
|
|
29830
|
+
*/
|
|
29831
|
+
joinTables: async (businessId: number, joinTablesDto: JoinTablesDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
29832
|
+
// verify required parameter 'businessId' is not null or undefined
|
|
29833
|
+
assertParamExists('joinTables', 'businessId', businessId)
|
|
29834
|
+
// verify required parameter 'joinTablesDto' is not null or undefined
|
|
29835
|
+
assertParamExists('joinTables', 'joinTablesDto', joinTablesDto)
|
|
29836
|
+
const localVarPath = `/api/v1/floor-plan/table-groups/join`;
|
|
29837
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
29838
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
29839
|
+
let baseOptions;
|
|
29840
|
+
if (configuration) {
|
|
29841
|
+
baseOptions = configuration.baseOptions;
|
|
29842
|
+
}
|
|
29843
|
+
|
|
29844
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
29845
|
+
const localVarHeaderParameter = {} as any;
|
|
29846
|
+
const localVarQueryParameter = {} as any;
|
|
29847
|
+
|
|
29848
|
+
// authentication JWT-auth required
|
|
29849
|
+
// http bearer authentication required
|
|
29850
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
29851
|
+
|
|
29852
|
+
if (businessId !== undefined) {
|
|
29853
|
+
localVarQueryParameter['businessId'] = businessId;
|
|
29854
|
+
}
|
|
29855
|
+
|
|
29856
|
+
|
|
29857
|
+
|
|
29858
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
29859
|
+
|
|
29860
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
29861
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
29862
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
29863
|
+
localVarRequestOptions.data = serializeDataIfNeeded(joinTablesDto, localVarRequestOptions, configuration)
|
|
29864
|
+
|
|
29865
|
+
return {
|
|
29866
|
+
url: toPathString(localVarUrlObj),
|
|
29867
|
+
options: localVarRequestOptions,
|
|
29868
|
+
};
|
|
29869
|
+
},
|
|
29688
29870
|
/**
|
|
29689
29871
|
*
|
|
29690
29872
|
* @summary Transfer an occupied table to an available table
|
|
@@ -29996,6 +30178,18 @@ export const FloorPlanApiFp = function(configuration?: Configuration) {
|
|
|
29996
30178
|
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteFloorSection(id, businessId, options);
|
|
29997
30179
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
29998
30180
|
},
|
|
30181
|
+
/**
|
|
30182
|
+
*
|
|
30183
|
+
* @summary Dissolve a table group
|
|
30184
|
+
* @param {string} id
|
|
30185
|
+
* @param {number} businessId
|
|
30186
|
+
* @param {*} [options] Override http request option.
|
|
30187
|
+
* @throws {RequiredError}
|
|
30188
|
+
*/
|
|
30189
|
+
async dissolveTableGroup(id: string, businessId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
30190
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.dissolveTableGroup(id, businessId, options);
|
|
30191
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
30192
|
+
},
|
|
29999
30193
|
/**
|
|
30000
30194
|
*
|
|
30001
30195
|
* @summary Get the full floor plan for a business
|
|
@@ -30007,6 +30201,18 @@ export const FloorPlanApiFp = function(configuration?: Configuration) {
|
|
|
30007
30201
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getFloorPlan(businessId, options);
|
|
30008
30202
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
30009
30203
|
},
|
|
30204
|
+
/**
|
|
30205
|
+
*
|
|
30206
|
+
* @summary Join tables into an AD_HOC group
|
|
30207
|
+
* @param {number} businessId
|
|
30208
|
+
* @param {JoinTablesDto} joinTablesDto
|
|
30209
|
+
* @param {*} [options] Override http request option.
|
|
30210
|
+
* @throws {RequiredError}
|
|
30211
|
+
*/
|
|
30212
|
+
async joinTables(businessId: number, joinTablesDto: JoinTablesDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TableGroupResponseDto>> {
|
|
30213
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.joinTables(businessId, joinTablesDto, options);
|
|
30214
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
30215
|
+
},
|
|
30010
30216
|
/**
|
|
30011
30217
|
*
|
|
30012
30218
|
* @summary Transfer an occupied table to an available table
|
|
@@ -30124,6 +30330,17 @@ export const FloorPlanApiFactory = function (configuration?: Configuration, base
|
|
|
30124
30330
|
deleteFloorSection(id: string, businessId: number, options?: any): AxiosPromise<void> {
|
|
30125
30331
|
return localVarFp.deleteFloorSection(id, businessId, options).then((request) => request(axios, basePath));
|
|
30126
30332
|
},
|
|
30333
|
+
/**
|
|
30334
|
+
*
|
|
30335
|
+
* @summary Dissolve a table group
|
|
30336
|
+
* @param {string} id
|
|
30337
|
+
* @param {number} businessId
|
|
30338
|
+
* @param {*} [options] Override http request option.
|
|
30339
|
+
* @throws {RequiredError}
|
|
30340
|
+
*/
|
|
30341
|
+
dissolveTableGroup(id: string, businessId: number, options?: any): AxiosPromise<void> {
|
|
30342
|
+
return localVarFp.dissolveTableGroup(id, businessId, options).then((request) => request(axios, basePath));
|
|
30343
|
+
},
|
|
30127
30344
|
/**
|
|
30128
30345
|
*
|
|
30129
30346
|
* @summary Get the full floor plan for a business
|
|
@@ -30134,6 +30351,17 @@ export const FloorPlanApiFactory = function (configuration?: Configuration, base
|
|
|
30134
30351
|
getFloorPlan(businessId: number, options?: any): AxiosPromise<Array<FloorSectionResponseDto>> {
|
|
30135
30352
|
return localVarFp.getFloorPlan(businessId, options).then((request) => request(axios, basePath));
|
|
30136
30353
|
},
|
|
30354
|
+
/**
|
|
30355
|
+
*
|
|
30356
|
+
* @summary Join tables into an AD_HOC group
|
|
30357
|
+
* @param {number} businessId
|
|
30358
|
+
* @param {JoinTablesDto} joinTablesDto
|
|
30359
|
+
* @param {*} [options] Override http request option.
|
|
30360
|
+
* @throws {RequiredError}
|
|
30361
|
+
*/
|
|
30362
|
+
joinTables(businessId: number, joinTablesDto: JoinTablesDto, options?: any): AxiosPromise<TableGroupResponseDto> {
|
|
30363
|
+
return localVarFp.joinTables(businessId, joinTablesDto, options).then((request) => request(axios, basePath));
|
|
30364
|
+
},
|
|
30137
30365
|
/**
|
|
30138
30366
|
*
|
|
30139
30367
|
* @summary Transfer an occupied table to an available table
|
|
@@ -30245,6 +30473,17 @@ export interface FloorPlanApiInterface {
|
|
|
30245
30473
|
*/
|
|
30246
30474
|
deleteFloorSection(id: string, businessId: number, options?: AxiosRequestConfig): AxiosPromise<void>;
|
|
30247
30475
|
|
|
30476
|
+
/**
|
|
30477
|
+
*
|
|
30478
|
+
* @summary Dissolve a table group
|
|
30479
|
+
* @param {string} id
|
|
30480
|
+
* @param {number} businessId
|
|
30481
|
+
* @param {*} [options] Override http request option.
|
|
30482
|
+
* @throws {RequiredError}
|
|
30483
|
+
* @memberof FloorPlanApiInterface
|
|
30484
|
+
*/
|
|
30485
|
+
dissolveTableGroup(id: string, businessId: number, options?: AxiosRequestConfig): AxiosPromise<void>;
|
|
30486
|
+
|
|
30248
30487
|
/**
|
|
30249
30488
|
*
|
|
30250
30489
|
* @summary Get the full floor plan for a business
|
|
@@ -30255,6 +30494,17 @@ export interface FloorPlanApiInterface {
|
|
|
30255
30494
|
*/
|
|
30256
30495
|
getFloorPlan(businessId: number, options?: AxiosRequestConfig): AxiosPromise<Array<FloorSectionResponseDto>>;
|
|
30257
30496
|
|
|
30497
|
+
/**
|
|
30498
|
+
*
|
|
30499
|
+
* @summary Join tables into an AD_HOC group
|
|
30500
|
+
* @param {number} businessId
|
|
30501
|
+
* @param {JoinTablesDto} joinTablesDto
|
|
30502
|
+
* @param {*} [options] Override http request option.
|
|
30503
|
+
* @throws {RequiredError}
|
|
30504
|
+
* @memberof FloorPlanApiInterface
|
|
30505
|
+
*/
|
|
30506
|
+
joinTables(businessId: number, joinTablesDto: JoinTablesDto, options?: AxiosRequestConfig): AxiosPromise<TableGroupResponseDto>;
|
|
30507
|
+
|
|
30258
30508
|
/**
|
|
30259
30509
|
*
|
|
30260
30510
|
* @summary Transfer an occupied table to an available table
|
|
@@ -30374,6 +30624,19 @@ export class FloorPlanApi extends BaseAPI implements FloorPlanApiInterface {
|
|
|
30374
30624
|
return FloorPlanApiFp(this.configuration).deleteFloorSection(id, businessId, options).then((request) => request(this.axios, this.basePath));
|
|
30375
30625
|
}
|
|
30376
30626
|
|
|
30627
|
+
/**
|
|
30628
|
+
*
|
|
30629
|
+
* @summary Dissolve a table group
|
|
30630
|
+
* @param {string} id
|
|
30631
|
+
* @param {number} businessId
|
|
30632
|
+
* @param {*} [options] Override http request option.
|
|
30633
|
+
* @throws {RequiredError}
|
|
30634
|
+
* @memberof FloorPlanApi
|
|
30635
|
+
*/
|
|
30636
|
+
public dissolveTableGroup(id: string, businessId: number, options?: AxiosRequestConfig) {
|
|
30637
|
+
return FloorPlanApiFp(this.configuration).dissolveTableGroup(id, businessId, options).then((request) => request(this.axios, this.basePath));
|
|
30638
|
+
}
|
|
30639
|
+
|
|
30377
30640
|
/**
|
|
30378
30641
|
*
|
|
30379
30642
|
* @summary Get the full floor plan for a business
|
|
@@ -30386,6 +30649,19 @@ export class FloorPlanApi extends BaseAPI implements FloorPlanApiInterface {
|
|
|
30386
30649
|
return FloorPlanApiFp(this.configuration).getFloorPlan(businessId, options).then((request) => request(this.axios, this.basePath));
|
|
30387
30650
|
}
|
|
30388
30651
|
|
|
30652
|
+
/**
|
|
30653
|
+
*
|
|
30654
|
+
* @summary Join tables into an AD_HOC group
|
|
30655
|
+
* @param {number} businessId
|
|
30656
|
+
* @param {JoinTablesDto} joinTablesDto
|
|
30657
|
+
* @param {*} [options] Override http request option.
|
|
30658
|
+
* @throws {RequiredError}
|
|
30659
|
+
* @memberof FloorPlanApi
|
|
30660
|
+
*/
|
|
30661
|
+
public joinTables(businessId: number, joinTablesDto: JoinTablesDto, options?: AxiosRequestConfig) {
|
|
30662
|
+
return FloorPlanApiFp(this.configuration).joinTables(businessId, joinTablesDto, options).then((request) => request(this.axios, this.basePath));
|
|
30663
|
+
}
|
|
30664
|
+
|
|
30389
30665
|
/**
|
|
30390
30666
|
*
|
|
30391
30667
|
* @summary Transfer an occupied table to an available table
|
|
@@ -39164,7 +39440,7 @@ export const PrintersApiFp = function(configuration?: Configuration) {
|
|
|
39164
39440
|
* @param {*} [options] Override http request option.
|
|
39165
39441
|
* @throws {RequiredError}
|
|
39166
39442
|
*/
|
|
39167
|
-
async upsertCategoryPolicy(upsertCategoryPrintPolicyDto: UpsertCategoryPrintPolicyDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
39443
|
+
async upsertCategoryPolicy(upsertCategoryPrintPolicyDto: UpsertCategoryPrintPolicyDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PrintPolicyDto>> {
|
|
39168
39444
|
const localVarAxiosArgs = await localVarAxiosParamCreator.upsertCategoryPolicy(upsertCategoryPrintPolicyDto, options);
|
|
39169
39445
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
39170
39446
|
},
|
|
@@ -39184,7 +39460,7 @@ export const PrintersApiFp = function(configuration?: Configuration) {
|
|
|
39184
39460
|
* @param {*} [options] Override http request option.
|
|
39185
39461
|
* @throws {RequiredError}
|
|
39186
39462
|
*/
|
|
39187
|
-
async upsertProductPolicy(upsertProductPrintPolicyDto: UpsertProductPrintPolicyDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
39463
|
+
async upsertProductPolicy(upsertProductPrintPolicyDto: UpsertProductPrintPolicyDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PrintPolicyDto>> {
|
|
39188
39464
|
const localVarAxiosArgs = await localVarAxiosParamCreator.upsertProductPolicy(upsertProductPrintPolicyDto, options);
|
|
39189
39465
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
39190
39466
|
},
|
|
@@ -39271,7 +39547,7 @@ export const PrintersApiFactory = function (configuration?: Configuration, baseP
|
|
|
39271
39547
|
* @param {*} [options] Override http request option.
|
|
39272
39548
|
* @throws {RequiredError}
|
|
39273
39549
|
*/
|
|
39274
|
-
upsertCategoryPolicy(upsertCategoryPrintPolicyDto: UpsertCategoryPrintPolicyDto, options?: any): AxiosPromise<
|
|
39550
|
+
upsertCategoryPolicy(upsertCategoryPrintPolicyDto: UpsertCategoryPrintPolicyDto, options?: any): AxiosPromise<PrintPolicyDto> {
|
|
39275
39551
|
return localVarFp.upsertCategoryPolicy(upsertCategoryPrintPolicyDto, options).then((request) => request(axios, basePath));
|
|
39276
39552
|
},
|
|
39277
39553
|
/**
|
|
@@ -39289,7 +39565,7 @@ export const PrintersApiFactory = function (configuration?: Configuration, baseP
|
|
|
39289
39565
|
* @param {*} [options] Override http request option.
|
|
39290
39566
|
* @throws {RequiredError}
|
|
39291
39567
|
*/
|
|
39292
|
-
upsertProductPolicy(upsertProductPrintPolicyDto: UpsertProductPrintPolicyDto, options?: any): AxiosPromise<
|
|
39568
|
+
upsertProductPolicy(upsertProductPrintPolicyDto: UpsertProductPrintPolicyDto, options?: any): AxiosPromise<PrintPolicyDto> {
|
|
39293
39569
|
return localVarFp.upsertProductPolicy(upsertProductPrintPolicyDto, options).then((request) => request(axios, basePath));
|
|
39294
39570
|
},
|
|
39295
39571
|
};
|
|
@@ -39375,7 +39651,7 @@ export interface PrintersApiInterface {
|
|
|
39375
39651
|
* @throws {RequiredError}
|
|
39376
39652
|
* @memberof PrintersApiInterface
|
|
39377
39653
|
*/
|
|
39378
|
-
upsertCategoryPolicy(upsertCategoryPrintPolicyDto: UpsertCategoryPrintPolicyDto, options?: AxiosRequestConfig): AxiosPromise<
|
|
39654
|
+
upsertCategoryPolicy(upsertCategoryPrintPolicyDto: UpsertCategoryPrintPolicyDto, options?: AxiosRequestConfig): AxiosPromise<PrintPolicyDto>;
|
|
39379
39655
|
|
|
39380
39656
|
/**
|
|
39381
39657
|
*
|
|
@@ -39393,7 +39669,7 @@ export interface PrintersApiInterface {
|
|
|
39393
39669
|
* @throws {RequiredError}
|
|
39394
39670
|
* @memberof PrintersApiInterface
|
|
39395
39671
|
*/
|
|
39396
|
-
upsertProductPolicy(upsertProductPrintPolicyDto: UpsertProductPrintPolicyDto, options?: AxiosRequestConfig): AxiosPromise<
|
|
39672
|
+
upsertProductPolicy(upsertProductPrintPolicyDto: UpsertProductPrintPolicyDto, options?: AxiosRequestConfig): AxiosPromise<PrintPolicyDto>;
|
|
39397
39673
|
|
|
39398
39674
|
}
|
|
39399
39675
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@munchi_oy/core",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.65",
|
|
4
4
|
"description": "Munchi Core SDK - Core utilities and types",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"publishConfig": {
|
|
@@ -25,16 +25,6 @@
|
|
|
25
25
|
"react-native": "./index.ts"
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
|
-
"devDependencies": {
|
|
29
|
-
"lodash": "^4.17.21",
|
|
30
|
-
"@types/lodash": "^4.17.16",
|
|
31
|
-
"tsup": "^8.0.0",
|
|
32
|
-
"typescript": "^5.0.0"
|
|
33
|
-
},
|
|
34
|
-
"peerDependencies": {
|
|
35
|
-
"lodash": "^4.17.21",
|
|
36
|
-
"axios": ">=1.0.0"
|
|
37
|
-
},
|
|
38
28
|
"scripts": {
|
|
39
29
|
"test": "jest",
|
|
40
30
|
"test:watch": "jest --watch",
|
|
@@ -45,6 +35,18 @@
|
|
|
45
35
|
"build:types": "tsc -p tsconfig.build.json",
|
|
46
36
|
"build": "pnpm run build:runtime && pnpm run build:types",
|
|
47
37
|
"yalc:publish": "pnpm build && yalc publish --push",
|
|
48
|
-
"dev": "tsup --watch"
|
|
38
|
+
"dev": "tsup --watch",
|
|
39
|
+
"prepare": "npm run build",
|
|
40
|
+
"prepublishOnly": "pnpm build"
|
|
41
|
+
},
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"lodash": "^4.17.21",
|
|
44
|
+
"@types/lodash": "^4.17.16",
|
|
45
|
+
"tsup": "^8.0.0",
|
|
46
|
+
"typescript": "^5.0.0"
|
|
47
|
+
},
|
|
48
|
+
"peerDependencies": {
|
|
49
|
+
"lodash": "^4.17.21",
|
|
50
|
+
"axios": ">=1.0.0"
|
|
49
51
|
}
|
|
50
|
-
}
|
|
52
|
+
}
|
package/src/version.ts
CHANGED