@munchi_oy/core 1.9.27 → 1.9.29
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 +1210 -8
- 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 +1738 -24
- package/package.json +2 -2
- package/src/version.ts +1 -1
package/generated/api.ts
CHANGED
|
@@ -3218,6 +3218,99 @@ export interface CreateActionPasscodeDto {
|
|
|
3218
3218
|
*/
|
|
3219
3219
|
'permissionRules': Array<PermissionRuleDto>;
|
|
3220
3220
|
}
|
|
3221
|
+
/**
|
|
3222
|
+
*
|
|
3223
|
+
* @export
|
|
3224
|
+
* @interface CreateDiningTableDto
|
|
3225
|
+
*/
|
|
3226
|
+
export interface CreateDiningTableDto {
|
|
3227
|
+
/**
|
|
3228
|
+
*
|
|
3229
|
+
* @type {number}
|
|
3230
|
+
* @memberof CreateDiningTableDto
|
|
3231
|
+
*/
|
|
3232
|
+
'businessId': number;
|
|
3233
|
+
/**
|
|
3234
|
+
*
|
|
3235
|
+
* @type {string}
|
|
3236
|
+
* @memberof CreateDiningTableDto
|
|
3237
|
+
*/
|
|
3238
|
+
'sectionId': string;
|
|
3239
|
+
/**
|
|
3240
|
+
*
|
|
3241
|
+
* @type {string}
|
|
3242
|
+
* @memberof CreateDiningTableDto
|
|
3243
|
+
*/
|
|
3244
|
+
'label': string;
|
|
3245
|
+
/**
|
|
3246
|
+
*
|
|
3247
|
+
* @type {number}
|
|
3248
|
+
* @memberof CreateDiningTableDto
|
|
3249
|
+
*/
|
|
3250
|
+
'minCapacity'?: number;
|
|
3251
|
+
/**
|
|
3252
|
+
*
|
|
3253
|
+
* @type {number}
|
|
3254
|
+
* @memberof CreateDiningTableDto
|
|
3255
|
+
*/
|
|
3256
|
+
'maxCapacity'?: number;
|
|
3257
|
+
/**
|
|
3258
|
+
*
|
|
3259
|
+
* @type {TableShape}
|
|
3260
|
+
* @memberof CreateDiningTableDto
|
|
3261
|
+
*/
|
|
3262
|
+
'shape'?: TableShape;
|
|
3263
|
+
/**
|
|
3264
|
+
*
|
|
3265
|
+
* @type {number}
|
|
3266
|
+
* @memberof CreateDiningTableDto
|
|
3267
|
+
*/
|
|
3268
|
+
'posX'?: number;
|
|
3269
|
+
/**
|
|
3270
|
+
*
|
|
3271
|
+
* @type {number}
|
|
3272
|
+
* @memberof CreateDiningTableDto
|
|
3273
|
+
*/
|
|
3274
|
+
'posY'?: number;
|
|
3275
|
+
/**
|
|
3276
|
+
*
|
|
3277
|
+
* @type {number}
|
|
3278
|
+
* @memberof CreateDiningTableDto
|
|
3279
|
+
*/
|
|
3280
|
+
'width'?: number;
|
|
3281
|
+
/**
|
|
3282
|
+
*
|
|
3283
|
+
* @type {number}
|
|
3284
|
+
* @memberof CreateDiningTableDto
|
|
3285
|
+
*/
|
|
3286
|
+
'height'?: number;
|
|
3287
|
+
/**
|
|
3288
|
+
*
|
|
3289
|
+
* @type {number}
|
|
3290
|
+
* @memberof CreateDiningTableDto
|
|
3291
|
+
*/
|
|
3292
|
+
'rotation'?: number;
|
|
3293
|
+
/**
|
|
3294
|
+
*
|
|
3295
|
+
* @type {boolean}
|
|
3296
|
+
* @memberof CreateDiningTableDto
|
|
3297
|
+
*/
|
|
3298
|
+
'bookableOnline'?: boolean;
|
|
3299
|
+
/**
|
|
3300
|
+
*
|
|
3301
|
+
* @type {boolean}
|
|
3302
|
+
* @memberof CreateDiningTableDto
|
|
3303
|
+
*/
|
|
3304
|
+
'joinable'?: boolean;
|
|
3305
|
+
/**
|
|
3306
|
+
*
|
|
3307
|
+
* @type {string}
|
|
3308
|
+
* @memberof CreateDiningTableDto
|
|
3309
|
+
*/
|
|
3310
|
+
'externalTableId'?: string;
|
|
3311
|
+
}
|
|
3312
|
+
|
|
3313
|
+
|
|
3221
3314
|
/**
|
|
3222
3315
|
*
|
|
3223
3316
|
* @export
|
|
@@ -3237,6 +3330,31 @@ export interface CreateEmployeeAssignmentDto {
|
|
|
3237
3330
|
*/
|
|
3238
3331
|
'roleId': string;
|
|
3239
3332
|
}
|
|
3333
|
+
/**
|
|
3334
|
+
*
|
|
3335
|
+
* @export
|
|
3336
|
+
* @interface CreateFloorSectionDto
|
|
3337
|
+
*/
|
|
3338
|
+
export interface CreateFloorSectionDto {
|
|
3339
|
+
/**
|
|
3340
|
+
*
|
|
3341
|
+
* @type {number}
|
|
3342
|
+
* @memberof CreateFloorSectionDto
|
|
3343
|
+
*/
|
|
3344
|
+
'businessId': number;
|
|
3345
|
+
/**
|
|
3346
|
+
*
|
|
3347
|
+
* @type {string}
|
|
3348
|
+
* @memberof CreateFloorSectionDto
|
|
3349
|
+
*/
|
|
3350
|
+
'name': string;
|
|
3351
|
+
/**
|
|
3352
|
+
*
|
|
3353
|
+
* @type {number}
|
|
3354
|
+
* @memberof CreateFloorSectionDto
|
|
3355
|
+
*/
|
|
3356
|
+
'sortOrder'?: number;
|
|
3357
|
+
}
|
|
3240
3358
|
/**
|
|
3241
3359
|
*
|
|
3242
3360
|
* @export
|
|
@@ -3885,6 +4003,25 @@ export interface CustomerDto {
|
|
|
3885
4003
|
*/
|
|
3886
4004
|
'phone': string | null;
|
|
3887
4005
|
}
|
|
4006
|
+
/**
|
|
4007
|
+
*
|
|
4008
|
+
* @export
|
|
4009
|
+
* @enum {string}
|
|
4010
|
+
*/
|
|
4011
|
+
|
|
4012
|
+
export const DayOfWeek = {
|
|
4013
|
+
Sunday: 'SUNDAY',
|
|
4014
|
+
Monday: 'MONDAY',
|
|
4015
|
+
Tuesday: 'TUESDAY',
|
|
4016
|
+
Wednesday: 'WEDNESDAY',
|
|
4017
|
+
Thursday: 'THURSDAY',
|
|
4018
|
+
Friday: 'FRIDAY',
|
|
4019
|
+
Saturday: 'SATURDAY'
|
|
4020
|
+
} as const;
|
|
4021
|
+
|
|
4022
|
+
export type DayOfWeek = typeof DayOfWeek[keyof typeof DayOfWeek];
|
|
4023
|
+
|
|
4024
|
+
|
|
3888
4025
|
/**
|
|
3889
4026
|
*
|
|
3890
4027
|
* @export
|
|
@@ -4124,6 +4261,123 @@ export const DeviceType = {
|
|
|
4124
4261
|
export type DeviceType = typeof DeviceType[keyof typeof DeviceType];
|
|
4125
4262
|
|
|
4126
4263
|
|
|
4264
|
+
/**
|
|
4265
|
+
*
|
|
4266
|
+
* @export
|
|
4267
|
+
* @interface DiningTableResponseDto
|
|
4268
|
+
*/
|
|
4269
|
+
export interface DiningTableResponseDto {
|
|
4270
|
+
/**
|
|
4271
|
+
*
|
|
4272
|
+
* @type {string}
|
|
4273
|
+
* @memberof DiningTableResponseDto
|
|
4274
|
+
*/
|
|
4275
|
+
'id': string;
|
|
4276
|
+
/**
|
|
4277
|
+
*
|
|
4278
|
+
* @type {number}
|
|
4279
|
+
* @memberof DiningTableResponseDto
|
|
4280
|
+
*/
|
|
4281
|
+
'orderingBusinessId': number;
|
|
4282
|
+
/**
|
|
4283
|
+
*
|
|
4284
|
+
* @type {string}
|
|
4285
|
+
* @memberof DiningTableResponseDto
|
|
4286
|
+
*/
|
|
4287
|
+
'sectionId': string;
|
|
4288
|
+
/**
|
|
4289
|
+
*
|
|
4290
|
+
* @type {string}
|
|
4291
|
+
* @memberof DiningTableResponseDto
|
|
4292
|
+
*/
|
|
4293
|
+
'label': string;
|
|
4294
|
+
/**
|
|
4295
|
+
*
|
|
4296
|
+
* @type {number}
|
|
4297
|
+
* @memberof DiningTableResponseDto
|
|
4298
|
+
*/
|
|
4299
|
+
'minCapacity': number;
|
|
4300
|
+
/**
|
|
4301
|
+
*
|
|
4302
|
+
* @type {number}
|
|
4303
|
+
* @memberof DiningTableResponseDto
|
|
4304
|
+
*/
|
|
4305
|
+
'maxCapacity': number;
|
|
4306
|
+
/**
|
|
4307
|
+
*
|
|
4308
|
+
* @type {TableShape}
|
|
4309
|
+
* @memberof DiningTableResponseDto
|
|
4310
|
+
*/
|
|
4311
|
+
'shape': TableShape;
|
|
4312
|
+
/**
|
|
4313
|
+
*
|
|
4314
|
+
* @type {number}
|
|
4315
|
+
* @memberof DiningTableResponseDto
|
|
4316
|
+
*/
|
|
4317
|
+
'posX': number;
|
|
4318
|
+
/**
|
|
4319
|
+
*
|
|
4320
|
+
* @type {number}
|
|
4321
|
+
* @memberof DiningTableResponseDto
|
|
4322
|
+
*/
|
|
4323
|
+
'posY': number;
|
|
4324
|
+
/**
|
|
4325
|
+
*
|
|
4326
|
+
* @type {number}
|
|
4327
|
+
* @memberof DiningTableResponseDto
|
|
4328
|
+
*/
|
|
4329
|
+
'width': number;
|
|
4330
|
+
/**
|
|
4331
|
+
*
|
|
4332
|
+
* @type {number}
|
|
4333
|
+
* @memberof DiningTableResponseDto
|
|
4334
|
+
*/
|
|
4335
|
+
'height': number;
|
|
4336
|
+
/**
|
|
4337
|
+
*
|
|
4338
|
+
* @type {number}
|
|
4339
|
+
* @memberof DiningTableResponseDto
|
|
4340
|
+
*/
|
|
4341
|
+
'rotation': number;
|
|
4342
|
+
/**
|
|
4343
|
+
*
|
|
4344
|
+
* @type {TableStatus}
|
|
4345
|
+
* @memberof DiningTableResponseDto
|
|
4346
|
+
*/
|
|
4347
|
+
'status': TableStatus;
|
|
4348
|
+
/**
|
|
4349
|
+
*
|
|
4350
|
+
* @type {boolean}
|
|
4351
|
+
* @memberof DiningTableResponseDto
|
|
4352
|
+
*/
|
|
4353
|
+
'bookableOnline': boolean;
|
|
4354
|
+
/**
|
|
4355
|
+
*
|
|
4356
|
+
* @type {boolean}
|
|
4357
|
+
* @memberof DiningTableResponseDto
|
|
4358
|
+
*/
|
|
4359
|
+
'joinable': boolean;
|
|
4360
|
+
/**
|
|
4361
|
+
*
|
|
4362
|
+
* @type {object}
|
|
4363
|
+
* @memberof DiningTableResponseDto
|
|
4364
|
+
*/
|
|
4365
|
+
'externalTableId'?: object | null;
|
|
4366
|
+
/**
|
|
4367
|
+
*
|
|
4368
|
+
* @type {string}
|
|
4369
|
+
* @memberof DiningTableResponseDto
|
|
4370
|
+
*/
|
|
4371
|
+
'createdAt': string;
|
|
4372
|
+
/**
|
|
4373
|
+
*
|
|
4374
|
+
* @type {string}
|
|
4375
|
+
* @memberof DiningTableResponseDto
|
|
4376
|
+
*/
|
|
4377
|
+
'updatedAt': string;
|
|
4378
|
+
}
|
|
4379
|
+
|
|
4380
|
+
|
|
4127
4381
|
/**
|
|
4128
4382
|
*
|
|
4129
4383
|
* @export
|
|
@@ -5013,6 +5267,12 @@ export interface ExtendedProductDto {
|
|
|
5013
5267
|
* @memberof ExtendedProductDto
|
|
5014
5268
|
*/
|
|
5015
5269
|
'printer_type'?: PrinterTypeEnum;
|
|
5270
|
+
/**
|
|
5271
|
+
*
|
|
5272
|
+
* @type {PriceType}
|
|
5273
|
+
* @memberof ExtendedProductDto
|
|
5274
|
+
*/
|
|
5275
|
+
'price_type': PriceType;
|
|
5016
5276
|
/**
|
|
5017
5277
|
* Custom UI override color in hex, e.g., #RRGGBB
|
|
5018
5278
|
* @type {string}
|
|
@@ -5376,6 +5636,55 @@ export interface FirebaseTokenDto {
|
|
|
5376
5636
|
*/
|
|
5377
5637
|
'customToken': string;
|
|
5378
5638
|
}
|
|
5639
|
+
/**
|
|
5640
|
+
*
|
|
5641
|
+
* @export
|
|
5642
|
+
* @interface FloorSectionResponseDto
|
|
5643
|
+
*/
|
|
5644
|
+
export interface FloorSectionResponseDto {
|
|
5645
|
+
/**
|
|
5646
|
+
*
|
|
5647
|
+
* @type {string}
|
|
5648
|
+
* @memberof FloorSectionResponseDto
|
|
5649
|
+
*/
|
|
5650
|
+
'id': string;
|
|
5651
|
+
/**
|
|
5652
|
+
*
|
|
5653
|
+
* @type {number}
|
|
5654
|
+
* @memberof FloorSectionResponseDto
|
|
5655
|
+
*/
|
|
5656
|
+
'orderingBusinessId': number;
|
|
5657
|
+
/**
|
|
5658
|
+
*
|
|
5659
|
+
* @type {string}
|
|
5660
|
+
* @memberof FloorSectionResponseDto
|
|
5661
|
+
*/
|
|
5662
|
+
'name': string;
|
|
5663
|
+
/**
|
|
5664
|
+
*
|
|
5665
|
+
* @type {number}
|
|
5666
|
+
* @memberof FloorSectionResponseDto
|
|
5667
|
+
*/
|
|
5668
|
+
'sortOrder': number;
|
|
5669
|
+
/**
|
|
5670
|
+
*
|
|
5671
|
+
* @type {Array<DiningTableResponseDto>}
|
|
5672
|
+
* @memberof FloorSectionResponseDto
|
|
5673
|
+
*/
|
|
5674
|
+
'tables': Array<DiningTableResponseDto>;
|
|
5675
|
+
/**
|
|
5676
|
+
*
|
|
5677
|
+
* @type {string}
|
|
5678
|
+
* @memberof FloorSectionResponseDto
|
|
5679
|
+
*/
|
|
5680
|
+
'createdAt': string;
|
|
5681
|
+
/**
|
|
5682
|
+
*
|
|
5683
|
+
* @type {string}
|
|
5684
|
+
* @memberof FloorSectionResponseDto
|
|
5685
|
+
*/
|
|
5686
|
+
'updatedAt': string;
|
|
5687
|
+
}
|
|
5379
5688
|
/**
|
|
5380
5689
|
*
|
|
5381
5690
|
* @export
|
|
@@ -7351,6 +7660,37 @@ export interface LapseDtoOpen {
|
|
|
7351
7660
|
*/
|
|
7352
7661
|
'minute': number;
|
|
7353
7662
|
}
|
|
7663
|
+
/**
|
|
7664
|
+
*
|
|
7665
|
+
* @export
|
|
7666
|
+
* @interface LapseResponseDto
|
|
7667
|
+
*/
|
|
7668
|
+
export interface LapseResponseDto {
|
|
7669
|
+
/**
|
|
7670
|
+
*
|
|
7671
|
+
* @type {string}
|
|
7672
|
+
* @memberof LapseResponseDto
|
|
7673
|
+
*/
|
|
7674
|
+
'id': string;
|
|
7675
|
+
/**
|
|
7676
|
+
*
|
|
7677
|
+
* @type {string}
|
|
7678
|
+
* @memberof LapseResponseDto
|
|
7679
|
+
*/
|
|
7680
|
+
'opening_time': string;
|
|
7681
|
+
/**
|
|
7682
|
+
*
|
|
7683
|
+
* @type {string}
|
|
7684
|
+
* @memberof LapseResponseDto
|
|
7685
|
+
*/
|
|
7686
|
+
'closing_time': string;
|
|
7687
|
+
/**
|
|
7688
|
+
*
|
|
7689
|
+
* @type {number}
|
|
7690
|
+
* @memberof LapseResponseDto
|
|
7691
|
+
*/
|
|
7692
|
+
'closing_day_offset': number;
|
|
7693
|
+
}
|
|
7354
7694
|
/**
|
|
7355
7695
|
*
|
|
7356
7696
|
* @export
|
|
@@ -12715,6 +13055,12 @@ export interface PosItemDto {
|
|
|
12715
13055
|
* @memberof PosItemDto
|
|
12716
13056
|
*/
|
|
12717
13057
|
'printer_type'?: PrinterTypeEnum;
|
|
13058
|
+
/**
|
|
13059
|
+
*
|
|
13060
|
+
* @type {PriceType}
|
|
13061
|
+
* @memberof PosItemDto
|
|
13062
|
+
*/
|
|
13063
|
+
'price_type': PriceType;
|
|
12718
13064
|
/**
|
|
12719
13065
|
* Custom UI override color in hex, e.g., #RRGGBB
|
|
12720
13066
|
* @type {string}
|
|
@@ -14244,6 +14590,20 @@ export interface PriceSummaryDto {
|
|
|
14244
14590
|
*/
|
|
14245
14591
|
'totalNet': number;
|
|
14246
14592
|
}
|
|
14593
|
+
/**
|
|
14594
|
+
*
|
|
14595
|
+
* @export
|
|
14596
|
+
* @enum {string}
|
|
14597
|
+
*/
|
|
14598
|
+
|
|
14599
|
+
export const PriceType = {
|
|
14600
|
+
Preset: 'PRESET',
|
|
14601
|
+
Open: 'OPEN'
|
|
14602
|
+
} as const;
|
|
14603
|
+
|
|
14604
|
+
export type PriceType = typeof PriceType[keyof typeof PriceType];
|
|
14605
|
+
|
|
14606
|
+
|
|
14247
14607
|
/**
|
|
14248
14608
|
*
|
|
14249
14609
|
* @export
|
|
@@ -16321,12 +16681,57 @@ export interface SalesSummaryDtoV2 {
|
|
|
16321
16681
|
/**
|
|
16322
16682
|
*
|
|
16323
16683
|
* @export
|
|
16324
|
-
* @interface
|
|
16684
|
+
* @interface ScheduleDayResponseDto
|
|
16325
16685
|
*/
|
|
16326
|
-
export interface
|
|
16686
|
+
export interface ScheduleDayResponseDto {
|
|
16327
16687
|
/**
|
|
16328
|
-
*
|
|
16329
|
-
* @type {
|
|
16688
|
+
*
|
|
16689
|
+
* @type {string}
|
|
16690
|
+
* @memberof ScheduleDayResponseDto
|
|
16691
|
+
*/
|
|
16692
|
+
'id': string;
|
|
16693
|
+
/**
|
|
16694
|
+
*
|
|
16695
|
+
* @type {DayOfWeek}
|
|
16696
|
+
* @memberof ScheduleDayResponseDto
|
|
16697
|
+
*/
|
|
16698
|
+
'day': DayOfWeek;
|
|
16699
|
+
/**
|
|
16700
|
+
*
|
|
16701
|
+
* @type {boolean}
|
|
16702
|
+
* @memberof ScheduleDayResponseDto
|
|
16703
|
+
*/
|
|
16704
|
+
'enabled': boolean;
|
|
16705
|
+
/**
|
|
16706
|
+
*
|
|
16707
|
+
* @type {ScheduleType}
|
|
16708
|
+
* @memberof ScheduleDayResponseDto
|
|
16709
|
+
*/
|
|
16710
|
+
'type': ScheduleType;
|
|
16711
|
+
/**
|
|
16712
|
+
* Business cuid
|
|
16713
|
+
* @type {string}
|
|
16714
|
+
* @memberof ScheduleDayResponseDto
|
|
16715
|
+
*/
|
|
16716
|
+
'businessId': string;
|
|
16717
|
+
/**
|
|
16718
|
+
*
|
|
16719
|
+
* @type {Array<LapseResponseDto>}
|
|
16720
|
+
* @memberof ScheduleDayResponseDto
|
|
16721
|
+
*/
|
|
16722
|
+
'lapses': Array<LapseResponseDto>;
|
|
16723
|
+
}
|
|
16724
|
+
|
|
16725
|
+
|
|
16726
|
+
/**
|
|
16727
|
+
*
|
|
16728
|
+
* @export
|
|
16729
|
+
* @interface ScheduleDto
|
|
16730
|
+
*/
|
|
16731
|
+
export interface ScheduleDto {
|
|
16732
|
+
/**
|
|
16733
|
+
* Array of time lapses for a specific day of the week
|
|
16734
|
+
* @type {Array<LapseDto>}
|
|
16330
16735
|
* @memberof ScheduleDto
|
|
16331
16736
|
*/
|
|
16332
16737
|
'lapses': Array<LapseDto>;
|
|
@@ -16337,6 +16742,19 @@ export interface ScheduleDto {
|
|
|
16337
16742
|
*/
|
|
16338
16743
|
'enabled': boolean;
|
|
16339
16744
|
}
|
|
16745
|
+
/**
|
|
16746
|
+
*
|
|
16747
|
+
* @export
|
|
16748
|
+
* @enum {string}
|
|
16749
|
+
*/
|
|
16750
|
+
|
|
16751
|
+
export const ScheduleType = {
|
|
16752
|
+
Physical: 'PHYSICAL'
|
|
16753
|
+
} as const;
|
|
16754
|
+
|
|
16755
|
+
export type ScheduleType = typeof ScheduleType[keyof typeof ScheduleType];
|
|
16756
|
+
|
|
16757
|
+
|
|
16340
16758
|
/**
|
|
16341
16759
|
*
|
|
16342
16760
|
* @export
|
|
@@ -17149,6 +17567,38 @@ export const SystemProfileType = {
|
|
|
17149
17567
|
export type SystemProfileType = typeof SystemProfileType[keyof typeof SystemProfileType];
|
|
17150
17568
|
|
|
17151
17569
|
|
|
17570
|
+
/**
|
|
17571
|
+
*
|
|
17572
|
+
* @export
|
|
17573
|
+
* @enum {string}
|
|
17574
|
+
*/
|
|
17575
|
+
|
|
17576
|
+
export const TableShape = {
|
|
17577
|
+
Round: 'ROUND',
|
|
17578
|
+
Square: 'SQUARE',
|
|
17579
|
+
Rectangle: 'RECTANGLE',
|
|
17580
|
+
Booth: 'BOOTH'
|
|
17581
|
+
} as const;
|
|
17582
|
+
|
|
17583
|
+
export type TableShape = typeof TableShape[keyof typeof TableShape];
|
|
17584
|
+
|
|
17585
|
+
|
|
17586
|
+
/**
|
|
17587
|
+
*
|
|
17588
|
+
* @export
|
|
17589
|
+
* @enum {string}
|
|
17590
|
+
*/
|
|
17591
|
+
|
|
17592
|
+
export const TableStatus = {
|
|
17593
|
+
Available: 'AVAILABLE',
|
|
17594
|
+
Dirty: 'DIRTY',
|
|
17595
|
+
Blocked: 'BLOCKED',
|
|
17596
|
+
OutOfService: 'OUT_OF_SERVICE'
|
|
17597
|
+
} as const;
|
|
17598
|
+
|
|
17599
|
+
export type TableStatus = typeof TableStatus[keyof typeof TableStatus];
|
|
17600
|
+
|
|
17601
|
+
|
|
17152
17602
|
/**
|
|
17153
17603
|
*
|
|
17154
17604
|
* @export
|
|
@@ -19048,6 +19498,112 @@ export interface UpdateChannelInventoryDto {
|
|
|
19048
19498
|
*/
|
|
19049
19499
|
'channels': Array<ChannelInventoryUpdateDto>;
|
|
19050
19500
|
}
|
|
19501
|
+
/**
|
|
19502
|
+
*
|
|
19503
|
+
* @export
|
|
19504
|
+
* @interface UpdateDiningTableDto
|
|
19505
|
+
*/
|
|
19506
|
+
export interface UpdateDiningTableDto {
|
|
19507
|
+
/**
|
|
19508
|
+
*
|
|
19509
|
+
* @type {string}
|
|
19510
|
+
* @memberof UpdateDiningTableDto
|
|
19511
|
+
*/
|
|
19512
|
+
'sectionId'?: string;
|
|
19513
|
+
/**
|
|
19514
|
+
*
|
|
19515
|
+
* @type {string}
|
|
19516
|
+
* @memberof UpdateDiningTableDto
|
|
19517
|
+
*/
|
|
19518
|
+
'label'?: string;
|
|
19519
|
+
/**
|
|
19520
|
+
*
|
|
19521
|
+
* @type {number}
|
|
19522
|
+
* @memberof UpdateDiningTableDto
|
|
19523
|
+
*/
|
|
19524
|
+
'minCapacity'?: number;
|
|
19525
|
+
/**
|
|
19526
|
+
*
|
|
19527
|
+
* @type {number}
|
|
19528
|
+
* @memberof UpdateDiningTableDto
|
|
19529
|
+
*/
|
|
19530
|
+
'maxCapacity'?: number;
|
|
19531
|
+
/**
|
|
19532
|
+
*
|
|
19533
|
+
* @type {TableShape}
|
|
19534
|
+
* @memberof UpdateDiningTableDto
|
|
19535
|
+
*/
|
|
19536
|
+
'shape'?: TableShape;
|
|
19537
|
+
/**
|
|
19538
|
+
*
|
|
19539
|
+
* @type {number}
|
|
19540
|
+
* @memberof UpdateDiningTableDto
|
|
19541
|
+
*/
|
|
19542
|
+
'posX'?: number;
|
|
19543
|
+
/**
|
|
19544
|
+
*
|
|
19545
|
+
* @type {number}
|
|
19546
|
+
* @memberof UpdateDiningTableDto
|
|
19547
|
+
*/
|
|
19548
|
+
'posY'?: number;
|
|
19549
|
+
/**
|
|
19550
|
+
*
|
|
19551
|
+
* @type {number}
|
|
19552
|
+
* @memberof UpdateDiningTableDto
|
|
19553
|
+
*/
|
|
19554
|
+
'width'?: number;
|
|
19555
|
+
/**
|
|
19556
|
+
*
|
|
19557
|
+
* @type {number}
|
|
19558
|
+
* @memberof UpdateDiningTableDto
|
|
19559
|
+
*/
|
|
19560
|
+
'height'?: number;
|
|
19561
|
+
/**
|
|
19562
|
+
*
|
|
19563
|
+
* @type {number}
|
|
19564
|
+
* @memberof UpdateDiningTableDto
|
|
19565
|
+
*/
|
|
19566
|
+
'rotation'?: number;
|
|
19567
|
+
/**
|
|
19568
|
+
*
|
|
19569
|
+
* @type {boolean}
|
|
19570
|
+
* @memberof UpdateDiningTableDto
|
|
19571
|
+
*/
|
|
19572
|
+
'bookableOnline'?: boolean;
|
|
19573
|
+
/**
|
|
19574
|
+
*
|
|
19575
|
+
* @type {boolean}
|
|
19576
|
+
* @memberof UpdateDiningTableDto
|
|
19577
|
+
*/
|
|
19578
|
+
'joinable'?: boolean;
|
|
19579
|
+
/**
|
|
19580
|
+
*
|
|
19581
|
+
* @type {string}
|
|
19582
|
+
* @memberof UpdateDiningTableDto
|
|
19583
|
+
*/
|
|
19584
|
+
'externalTableId'?: string;
|
|
19585
|
+
}
|
|
19586
|
+
|
|
19587
|
+
|
|
19588
|
+
/**
|
|
19589
|
+
*
|
|
19590
|
+
* @export
|
|
19591
|
+
* @interface UpdateFloorSectionDto
|
|
19592
|
+
*/
|
|
19593
|
+
export interface UpdateFloorSectionDto {
|
|
19594
|
+
/**
|
|
19595
|
+
*
|
|
19596
|
+
* @type {string}
|
|
19597
|
+
* @memberof UpdateFloorSectionDto
|
|
19598
|
+
*/
|
|
19599
|
+
'name'?: string;
|
|
19600
|
+
/**
|
|
19601
|
+
*
|
|
19602
|
+
* @type {number}
|
|
19603
|
+
* @memberof UpdateFloorSectionDto
|
|
19604
|
+
*/
|
|
19605
|
+
'sortOrder'?: number;
|
|
19606
|
+
}
|
|
19051
19607
|
/**
|
|
19052
19608
|
*
|
|
19053
19609
|
* @export
|
|
@@ -19157,6 +19713,58 @@ export interface UpdateStatusResponseDto {
|
|
|
19157
19713
|
}
|
|
19158
19714
|
|
|
19159
19715
|
|
|
19716
|
+
/**
|
|
19717
|
+
*
|
|
19718
|
+
* @export
|
|
19719
|
+
* @interface UpdateTablePositionDto
|
|
19720
|
+
*/
|
|
19721
|
+
export interface UpdateTablePositionDto {
|
|
19722
|
+
/**
|
|
19723
|
+
*
|
|
19724
|
+
* @type {number}
|
|
19725
|
+
* @memberof UpdateTablePositionDto
|
|
19726
|
+
*/
|
|
19727
|
+
'posX': number;
|
|
19728
|
+
/**
|
|
19729
|
+
*
|
|
19730
|
+
* @type {number}
|
|
19731
|
+
* @memberof UpdateTablePositionDto
|
|
19732
|
+
*/
|
|
19733
|
+
'posY': number;
|
|
19734
|
+
/**
|
|
19735
|
+
*
|
|
19736
|
+
* @type {number}
|
|
19737
|
+
* @memberof UpdateTablePositionDto
|
|
19738
|
+
*/
|
|
19739
|
+
'rotation'?: number;
|
|
19740
|
+
/**
|
|
19741
|
+
*
|
|
19742
|
+
* @type {number}
|
|
19743
|
+
* @memberof UpdateTablePositionDto
|
|
19744
|
+
*/
|
|
19745
|
+
'width'?: number;
|
|
19746
|
+
/**
|
|
19747
|
+
*
|
|
19748
|
+
* @type {number}
|
|
19749
|
+
* @memberof UpdateTablePositionDto
|
|
19750
|
+
*/
|
|
19751
|
+
'height'?: number;
|
|
19752
|
+
}
|
|
19753
|
+
/**
|
|
19754
|
+
*
|
|
19755
|
+
* @export
|
|
19756
|
+
* @interface UpdateTableStatusDto
|
|
19757
|
+
*/
|
|
19758
|
+
export interface UpdateTableStatusDto {
|
|
19759
|
+
/**
|
|
19760
|
+
*
|
|
19761
|
+
* @type {TableStatus}
|
|
19762
|
+
* @memberof UpdateTableStatusDto
|
|
19763
|
+
*/
|
|
19764
|
+
'status': TableStatus;
|
|
19765
|
+
}
|
|
19766
|
+
|
|
19767
|
+
|
|
19160
19768
|
/**
|
|
19161
19769
|
*
|
|
19162
19770
|
* @export
|
|
@@ -19247,6 +19855,38 @@ export interface UpsertBusinessDto {
|
|
|
19247
19855
|
}
|
|
19248
19856
|
|
|
19249
19857
|
|
|
19858
|
+
/**
|
|
19859
|
+
*
|
|
19860
|
+
* @export
|
|
19861
|
+
* @interface UpsertBusinessScheduleDto
|
|
19862
|
+
*/
|
|
19863
|
+
export interface UpsertBusinessScheduleDto {
|
|
19864
|
+
/**
|
|
19865
|
+
* Days to upsert. Each provided day is replaced; other days are left untouched.
|
|
19866
|
+
* @type {Array<UpsertScheduleDayDto>}
|
|
19867
|
+
* @memberof UpsertBusinessScheduleDto
|
|
19868
|
+
*/
|
|
19869
|
+
'schedule': Array<UpsertScheduleDayDto>;
|
|
19870
|
+
}
|
|
19871
|
+
/**
|
|
19872
|
+
*
|
|
19873
|
+
* @export
|
|
19874
|
+
* @interface UpsertBusinessScheduleResponseDto
|
|
19875
|
+
*/
|
|
19876
|
+
export interface UpsertBusinessScheduleResponseDto {
|
|
19877
|
+
/**
|
|
19878
|
+
* Ordering business ID
|
|
19879
|
+
* @type {number}
|
|
19880
|
+
* @memberof UpsertBusinessScheduleResponseDto
|
|
19881
|
+
*/
|
|
19882
|
+
'orderingBusinessId': number;
|
|
19883
|
+
/**
|
|
19884
|
+
*
|
|
19885
|
+
* @type {Array<ScheduleDayResponseDto>}
|
|
19886
|
+
* @memberof UpsertBusinessScheduleResponseDto
|
|
19887
|
+
*/
|
|
19888
|
+
'schedule': Array<ScheduleDayResponseDto>;
|
|
19889
|
+
}
|
|
19250
19890
|
/**
|
|
19251
19891
|
*
|
|
19252
19892
|
* @export
|
|
@@ -19393,6 +20033,31 @@ export interface UpsertGiftCardDto {
|
|
|
19393
20033
|
*/
|
|
19394
20034
|
'credentials'?: GiftCardCredentialsDto;
|
|
19395
20035
|
}
|
|
20036
|
+
/**
|
|
20037
|
+
*
|
|
20038
|
+
* @export
|
|
20039
|
+
* @interface UpsertLapseDto
|
|
20040
|
+
*/
|
|
20041
|
+
export interface UpsertLapseDto {
|
|
20042
|
+
/**
|
|
20043
|
+
* Opening time (HH:mm)
|
|
20044
|
+
* @type {string}
|
|
20045
|
+
* @memberof UpsertLapseDto
|
|
20046
|
+
*/
|
|
20047
|
+
'opening_time': string;
|
|
20048
|
+
/**
|
|
20049
|
+
* Closing time (HH:mm)
|
|
20050
|
+
* @type {string}
|
|
20051
|
+
* @memberof UpsertLapseDto
|
|
20052
|
+
*/
|
|
20053
|
+
'closing_time': string;
|
|
20054
|
+
/**
|
|
20055
|
+
* Number of days the closing time spills over into (e.g. 1 = closes next day)
|
|
20056
|
+
* @type {number}
|
|
20057
|
+
* @memberof UpsertLapseDto
|
|
20058
|
+
*/
|
|
20059
|
+
'closing_day_offset'?: number;
|
|
20060
|
+
}
|
|
19396
20061
|
/**
|
|
19397
20062
|
*
|
|
19398
20063
|
* @export
|
|
@@ -19668,6 +20333,39 @@ export interface UpsertProductPrintPolicyDto {
|
|
|
19668
20333
|
*/
|
|
19669
20334
|
'printerId': number;
|
|
19670
20335
|
}
|
|
20336
|
+
/**
|
|
20337
|
+
*
|
|
20338
|
+
* @export
|
|
20339
|
+
* @interface UpsertScheduleDayDto
|
|
20340
|
+
*/
|
|
20341
|
+
export interface UpsertScheduleDayDto {
|
|
20342
|
+
/**
|
|
20343
|
+
*
|
|
20344
|
+
* @type {DayOfWeek}
|
|
20345
|
+
* @memberof UpsertScheduleDayDto
|
|
20346
|
+
*/
|
|
20347
|
+
'day': DayOfWeek;
|
|
20348
|
+
/**
|
|
20349
|
+
* Whether the business is open on this day
|
|
20350
|
+
* @type {boolean}
|
|
20351
|
+
* @memberof UpsertScheduleDayDto
|
|
20352
|
+
*/
|
|
20353
|
+
'enabled': boolean;
|
|
20354
|
+
/**
|
|
20355
|
+
*
|
|
20356
|
+
* @type {ScheduleType}
|
|
20357
|
+
* @memberof UpsertScheduleDayDto
|
|
20358
|
+
*/
|
|
20359
|
+
'type'?: ScheduleType;
|
|
20360
|
+
/**
|
|
20361
|
+
* Opening time ranges for this day
|
|
20362
|
+
* @type {Array<UpsertLapseDto>}
|
|
20363
|
+
* @memberof UpsertScheduleDayDto
|
|
20364
|
+
*/
|
|
20365
|
+
'lapses': Array<UpsertLapseDto>;
|
|
20366
|
+
}
|
|
20367
|
+
|
|
20368
|
+
|
|
19671
20369
|
/**
|
|
19672
20370
|
*
|
|
19673
20371
|
* @export
|
|
@@ -25992,24 +26690,24 @@ export class BusinessProviderPolicyApi extends BaseAPI implements BusinessProvid
|
|
|
25992
26690
|
|
|
25993
26691
|
|
|
25994
26692
|
/**
|
|
25995
|
-
*
|
|
26693
|
+
* BusinessScheduleApi - axios parameter creator
|
|
25996
26694
|
* @export
|
|
25997
26695
|
*/
|
|
25998
|
-
export const
|
|
26696
|
+
export const BusinessScheduleApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
25999
26697
|
return {
|
|
26000
26698
|
/**
|
|
26001
26699
|
*
|
|
26002
|
-
* @param {
|
|
26003
|
-
* @param {
|
|
26700
|
+
* @param {number} businessId
|
|
26701
|
+
* @param {UpsertBusinessScheduleDto} upsertBusinessScheduleDto
|
|
26004
26702
|
* @param {*} [options] Override http request option.
|
|
26005
26703
|
* @throws {RequiredError}
|
|
26006
26704
|
*/
|
|
26007
|
-
|
|
26705
|
+
upsertSchedule: async (businessId: number, upsertBusinessScheduleDto: UpsertBusinessScheduleDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
26008
26706
|
// verify required parameter 'businessId' is not null or undefined
|
|
26009
|
-
assertParamExists('
|
|
26010
|
-
// verify required parameter '
|
|
26011
|
-
assertParamExists('
|
|
26012
|
-
const localVarPath = `/api/v1/
|
|
26707
|
+
assertParamExists('upsertSchedule', 'businessId', businessId)
|
|
26708
|
+
// verify required parameter 'upsertBusinessScheduleDto' is not null or undefined
|
|
26709
|
+
assertParamExists('upsertSchedule', 'upsertBusinessScheduleDto', upsertBusinessScheduleDto)
|
|
26710
|
+
const localVarPath = `/api/v1/businesses/{businessId}/schedule`
|
|
26013
26711
|
.replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)));
|
|
26014
26712
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
26015
26713
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -26018,7 +26716,7 @@ export const CashManagementApiAxiosParamCreator = function (configuration?: Conf
|
|
|
26018
26716
|
baseOptions = configuration.baseOptions;
|
|
26019
26717
|
}
|
|
26020
26718
|
|
|
26021
|
-
const localVarRequestOptions = { method: '
|
|
26719
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
26022
26720
|
const localVarHeaderParameter = {} as any;
|
|
26023
26721
|
const localVarQueryParameter = {} as any;
|
|
26024
26722
|
|
|
@@ -26029,27 +26727,155 @@ export const CashManagementApiAxiosParamCreator = function (configuration?: Conf
|
|
|
26029
26727
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
26030
26728
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
26031
26729
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
26032
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
26730
|
+
localVarRequestOptions.data = serializeDataIfNeeded(upsertBusinessScheduleDto, localVarRequestOptions, configuration)
|
|
26033
26731
|
|
|
26034
26732
|
return {
|
|
26035
26733
|
url: toPathString(localVarUrlObj),
|
|
26036
26734
|
options: localVarRequestOptions,
|
|
26037
26735
|
};
|
|
26038
26736
|
},
|
|
26737
|
+
}
|
|
26738
|
+
};
|
|
26739
|
+
|
|
26740
|
+
/**
|
|
26741
|
+
* BusinessScheduleApi - functional programming interface
|
|
26742
|
+
* @export
|
|
26743
|
+
*/
|
|
26744
|
+
export const BusinessScheduleApiFp = function(configuration?: Configuration) {
|
|
26745
|
+
const localVarAxiosParamCreator = BusinessScheduleApiAxiosParamCreator(configuration)
|
|
26746
|
+
return {
|
|
26039
26747
|
/**
|
|
26040
26748
|
*
|
|
26041
|
-
* @
|
|
26042
|
-
* @param {
|
|
26043
|
-
* @param {string} timezone
|
|
26044
|
-
* @param {TimeSpan} [timeSpan] Time span
|
|
26045
|
-
* @param {string} [start] Start date
|
|
26046
|
-
* @param {string} [end] End date
|
|
26047
|
-
* @param {number} [page] Page number
|
|
26048
|
-
* @param {number} [rowPerPage] Rows per page
|
|
26749
|
+
* @param {number} businessId
|
|
26750
|
+
* @param {UpsertBusinessScheduleDto} upsertBusinessScheduleDto
|
|
26049
26751
|
* @param {*} [options] Override http request option.
|
|
26050
26752
|
* @throws {RequiredError}
|
|
26051
26753
|
*/
|
|
26052
|
-
|
|
26754
|
+
async upsertSchedule(businessId: number, upsertBusinessScheduleDto: UpsertBusinessScheduleDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpsertBusinessScheduleResponseDto>> {
|
|
26755
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.upsertSchedule(businessId, upsertBusinessScheduleDto, options);
|
|
26756
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
26757
|
+
},
|
|
26758
|
+
}
|
|
26759
|
+
};
|
|
26760
|
+
|
|
26761
|
+
/**
|
|
26762
|
+
* BusinessScheduleApi - factory interface
|
|
26763
|
+
* @export
|
|
26764
|
+
*/
|
|
26765
|
+
export const BusinessScheduleApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
26766
|
+
const localVarFp = BusinessScheduleApiFp(configuration)
|
|
26767
|
+
return {
|
|
26768
|
+
/**
|
|
26769
|
+
*
|
|
26770
|
+
* @param {number} businessId
|
|
26771
|
+
* @param {UpsertBusinessScheduleDto} upsertBusinessScheduleDto
|
|
26772
|
+
* @param {*} [options] Override http request option.
|
|
26773
|
+
* @throws {RequiredError}
|
|
26774
|
+
*/
|
|
26775
|
+
upsertSchedule(businessId: number, upsertBusinessScheduleDto: UpsertBusinessScheduleDto, options?: any): AxiosPromise<UpsertBusinessScheduleResponseDto> {
|
|
26776
|
+
return localVarFp.upsertSchedule(businessId, upsertBusinessScheduleDto, options).then((request) => request(axios, basePath));
|
|
26777
|
+
},
|
|
26778
|
+
};
|
|
26779
|
+
};
|
|
26780
|
+
|
|
26781
|
+
/**
|
|
26782
|
+
* BusinessScheduleApi - interface
|
|
26783
|
+
* @export
|
|
26784
|
+
* @interface BusinessScheduleApi
|
|
26785
|
+
*/
|
|
26786
|
+
export interface BusinessScheduleApiInterface {
|
|
26787
|
+
/**
|
|
26788
|
+
*
|
|
26789
|
+
* @param {number} businessId
|
|
26790
|
+
* @param {UpsertBusinessScheduleDto} upsertBusinessScheduleDto
|
|
26791
|
+
* @param {*} [options] Override http request option.
|
|
26792
|
+
* @throws {RequiredError}
|
|
26793
|
+
* @memberof BusinessScheduleApiInterface
|
|
26794
|
+
*/
|
|
26795
|
+
upsertSchedule(businessId: number, upsertBusinessScheduleDto: UpsertBusinessScheduleDto, options?: AxiosRequestConfig): AxiosPromise<UpsertBusinessScheduleResponseDto>;
|
|
26796
|
+
|
|
26797
|
+
}
|
|
26798
|
+
|
|
26799
|
+
/**
|
|
26800
|
+
* BusinessScheduleApi - object-oriented interface
|
|
26801
|
+
* @export
|
|
26802
|
+
* @class BusinessScheduleApi
|
|
26803
|
+
* @extends {BaseAPI}
|
|
26804
|
+
*/
|
|
26805
|
+
export class BusinessScheduleApi extends BaseAPI implements BusinessScheduleApiInterface {
|
|
26806
|
+
/**
|
|
26807
|
+
*
|
|
26808
|
+
* @param {number} businessId
|
|
26809
|
+
* @param {UpsertBusinessScheduleDto} upsertBusinessScheduleDto
|
|
26810
|
+
* @param {*} [options] Override http request option.
|
|
26811
|
+
* @throws {RequiredError}
|
|
26812
|
+
* @memberof BusinessScheduleApi
|
|
26813
|
+
*/
|
|
26814
|
+
public upsertSchedule(businessId: number, upsertBusinessScheduleDto: UpsertBusinessScheduleDto, options?: AxiosRequestConfig) {
|
|
26815
|
+
return BusinessScheduleApiFp(this.configuration).upsertSchedule(businessId, upsertBusinessScheduleDto, options).then((request) => request(this.axios, this.basePath));
|
|
26816
|
+
}
|
|
26817
|
+
}
|
|
26818
|
+
|
|
26819
|
+
|
|
26820
|
+
/**
|
|
26821
|
+
* CashManagementApi - axios parameter creator
|
|
26822
|
+
* @export
|
|
26823
|
+
*/
|
|
26824
|
+
export const CashManagementApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
26825
|
+
return {
|
|
26826
|
+
/**
|
|
26827
|
+
*
|
|
26828
|
+
* @param {string} businessId
|
|
26829
|
+
* @param {CashSessionDto} cashSessionDto
|
|
26830
|
+
* @param {*} [options] Override http request option.
|
|
26831
|
+
* @throws {RequiredError}
|
|
26832
|
+
*/
|
|
26833
|
+
create: async (businessId: string, cashSessionDto: CashSessionDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
26834
|
+
// verify required parameter 'businessId' is not null or undefined
|
|
26835
|
+
assertParamExists('create', 'businessId', businessId)
|
|
26836
|
+
// verify required parameter 'cashSessionDto' is not null or undefined
|
|
26837
|
+
assertParamExists('create', 'cashSessionDto', cashSessionDto)
|
|
26838
|
+
const localVarPath = `/api/v1/cash-management/{businessId}/create`
|
|
26839
|
+
.replace(`{${"businessId"}}`, encodeURIComponent(String(businessId)));
|
|
26840
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
26841
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
26842
|
+
let baseOptions;
|
|
26843
|
+
if (configuration) {
|
|
26844
|
+
baseOptions = configuration.baseOptions;
|
|
26845
|
+
}
|
|
26846
|
+
|
|
26847
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
26848
|
+
const localVarHeaderParameter = {} as any;
|
|
26849
|
+
const localVarQueryParameter = {} as any;
|
|
26850
|
+
|
|
26851
|
+
|
|
26852
|
+
|
|
26853
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
26854
|
+
|
|
26855
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
26856
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
26857
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
26858
|
+
localVarRequestOptions.data = serializeDataIfNeeded(cashSessionDto, localVarRequestOptions, configuration)
|
|
26859
|
+
|
|
26860
|
+
return {
|
|
26861
|
+
url: toPathString(localVarUrlObj),
|
|
26862
|
+
options: localVarRequestOptions,
|
|
26863
|
+
};
|
|
26864
|
+
},
|
|
26865
|
+
/**
|
|
26866
|
+
*
|
|
26867
|
+
* @summary
|
|
26868
|
+
* @param {string} businessId
|
|
26869
|
+
* @param {string} timezone
|
|
26870
|
+
* @param {TimeSpan} [timeSpan] Time span
|
|
26871
|
+
* @param {string} [start] Start date
|
|
26872
|
+
* @param {string} [end] End date
|
|
26873
|
+
* @param {number} [page] Page number
|
|
26874
|
+
* @param {number} [rowPerPage] Rows per page
|
|
26875
|
+
* @param {*} [options] Override http request option.
|
|
26876
|
+
* @throws {RequiredError}
|
|
26877
|
+
*/
|
|
26878
|
+
getCashLogs: async (businessId: string, timezone: string, timeSpan?: TimeSpan, start?: string, end?: string, page?: number, rowPerPage?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
26053
26879
|
// verify required parameter 'businessId' is not null or undefined
|
|
26054
26880
|
assertParamExists('getCashLogs', 'businessId', businessId)
|
|
26055
26881
|
// verify required parameter 'timezone' is not null or undefined
|
|
@@ -27964,6 +28790,894 @@ export class EmployeesApi extends BaseAPI implements EmployeesApiInterface {
|
|
|
27964
28790
|
}
|
|
27965
28791
|
|
|
27966
28792
|
|
|
28793
|
+
/**
|
|
28794
|
+
* FloorPlanApi - axios parameter creator
|
|
28795
|
+
* @export
|
|
28796
|
+
*/
|
|
28797
|
+
export const FloorPlanApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
28798
|
+
return {
|
|
28799
|
+
/**
|
|
28800
|
+
*
|
|
28801
|
+
* @summary Create a dining table
|
|
28802
|
+
* @param {CreateDiningTableDto} createDiningTableDto
|
|
28803
|
+
* @param {*} [options] Override http request option.
|
|
28804
|
+
* @throws {RequiredError}
|
|
28805
|
+
*/
|
|
28806
|
+
createDiningTable: async (createDiningTableDto: CreateDiningTableDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
28807
|
+
// verify required parameter 'createDiningTableDto' is not null or undefined
|
|
28808
|
+
assertParamExists('createDiningTable', 'createDiningTableDto', createDiningTableDto)
|
|
28809
|
+
const localVarPath = `/api/v1/floor-plan/tables`;
|
|
28810
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
28811
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
28812
|
+
let baseOptions;
|
|
28813
|
+
if (configuration) {
|
|
28814
|
+
baseOptions = configuration.baseOptions;
|
|
28815
|
+
}
|
|
28816
|
+
|
|
28817
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
28818
|
+
const localVarHeaderParameter = {} as any;
|
|
28819
|
+
const localVarQueryParameter = {} as any;
|
|
28820
|
+
|
|
28821
|
+
// authentication JWT-auth required
|
|
28822
|
+
// http bearer authentication required
|
|
28823
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
28824
|
+
|
|
28825
|
+
|
|
28826
|
+
|
|
28827
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
28828
|
+
|
|
28829
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
28830
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
28831
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
28832
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createDiningTableDto, localVarRequestOptions, configuration)
|
|
28833
|
+
|
|
28834
|
+
return {
|
|
28835
|
+
url: toPathString(localVarUrlObj),
|
|
28836
|
+
options: localVarRequestOptions,
|
|
28837
|
+
};
|
|
28838
|
+
},
|
|
28839
|
+
/**
|
|
28840
|
+
*
|
|
28841
|
+
* @summary Create a floor section
|
|
28842
|
+
* @param {CreateFloorSectionDto} createFloorSectionDto
|
|
28843
|
+
* @param {*} [options] Override http request option.
|
|
28844
|
+
* @throws {RequiredError}
|
|
28845
|
+
*/
|
|
28846
|
+
createFloorSection: async (createFloorSectionDto: CreateFloorSectionDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
28847
|
+
// verify required parameter 'createFloorSectionDto' is not null or undefined
|
|
28848
|
+
assertParamExists('createFloorSection', 'createFloorSectionDto', createFloorSectionDto)
|
|
28849
|
+
const localVarPath = `/api/v1/floor-plan/sections`;
|
|
28850
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
28851
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
28852
|
+
let baseOptions;
|
|
28853
|
+
if (configuration) {
|
|
28854
|
+
baseOptions = configuration.baseOptions;
|
|
28855
|
+
}
|
|
28856
|
+
|
|
28857
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
28858
|
+
const localVarHeaderParameter = {} as any;
|
|
28859
|
+
const localVarQueryParameter = {} as any;
|
|
28860
|
+
|
|
28861
|
+
// authentication JWT-auth required
|
|
28862
|
+
// http bearer authentication required
|
|
28863
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
28864
|
+
|
|
28865
|
+
|
|
28866
|
+
|
|
28867
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
28868
|
+
|
|
28869
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
28870
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
28871
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
28872
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createFloorSectionDto, localVarRequestOptions, configuration)
|
|
28873
|
+
|
|
28874
|
+
return {
|
|
28875
|
+
url: toPathString(localVarUrlObj),
|
|
28876
|
+
options: localVarRequestOptions,
|
|
28877
|
+
};
|
|
28878
|
+
},
|
|
28879
|
+
/**
|
|
28880
|
+
*
|
|
28881
|
+
* @summary Delete a dining table
|
|
28882
|
+
* @param {string} id
|
|
28883
|
+
* @param {number} businessId
|
|
28884
|
+
* @param {*} [options] Override http request option.
|
|
28885
|
+
* @throws {RequiredError}
|
|
28886
|
+
*/
|
|
28887
|
+
deleteDiningTable: async (id: string, businessId: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
28888
|
+
// verify required parameter 'id' is not null or undefined
|
|
28889
|
+
assertParamExists('deleteDiningTable', 'id', id)
|
|
28890
|
+
// verify required parameter 'businessId' is not null or undefined
|
|
28891
|
+
assertParamExists('deleteDiningTable', 'businessId', businessId)
|
|
28892
|
+
const localVarPath = `/api/v1/floor-plan/tables/{id}`
|
|
28893
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
28894
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
28895
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
28896
|
+
let baseOptions;
|
|
28897
|
+
if (configuration) {
|
|
28898
|
+
baseOptions = configuration.baseOptions;
|
|
28899
|
+
}
|
|
28900
|
+
|
|
28901
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
28902
|
+
const localVarHeaderParameter = {} as any;
|
|
28903
|
+
const localVarQueryParameter = {} as any;
|
|
28904
|
+
|
|
28905
|
+
// authentication JWT-auth required
|
|
28906
|
+
// http bearer authentication required
|
|
28907
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
28908
|
+
|
|
28909
|
+
if (businessId !== undefined) {
|
|
28910
|
+
localVarQueryParameter['businessId'] = businessId;
|
|
28911
|
+
}
|
|
28912
|
+
|
|
28913
|
+
|
|
28914
|
+
|
|
28915
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
28916
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
28917
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
28918
|
+
|
|
28919
|
+
return {
|
|
28920
|
+
url: toPathString(localVarUrlObj),
|
|
28921
|
+
options: localVarRequestOptions,
|
|
28922
|
+
};
|
|
28923
|
+
},
|
|
28924
|
+
/**
|
|
28925
|
+
*
|
|
28926
|
+
* @summary Delete a floor section
|
|
28927
|
+
* @param {string} id
|
|
28928
|
+
* @param {number} businessId
|
|
28929
|
+
* @param {*} [options] Override http request option.
|
|
28930
|
+
* @throws {RequiredError}
|
|
28931
|
+
*/
|
|
28932
|
+
deleteFloorSection: async (id: string, businessId: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
28933
|
+
// verify required parameter 'id' is not null or undefined
|
|
28934
|
+
assertParamExists('deleteFloorSection', 'id', id)
|
|
28935
|
+
// verify required parameter 'businessId' is not null or undefined
|
|
28936
|
+
assertParamExists('deleteFloorSection', 'businessId', businessId)
|
|
28937
|
+
const localVarPath = `/api/v1/floor-plan/sections/{id}`
|
|
28938
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
28939
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
28940
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
28941
|
+
let baseOptions;
|
|
28942
|
+
if (configuration) {
|
|
28943
|
+
baseOptions = configuration.baseOptions;
|
|
28944
|
+
}
|
|
28945
|
+
|
|
28946
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
28947
|
+
const localVarHeaderParameter = {} as any;
|
|
28948
|
+
const localVarQueryParameter = {} as any;
|
|
28949
|
+
|
|
28950
|
+
// authentication JWT-auth required
|
|
28951
|
+
// http bearer authentication required
|
|
28952
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
28953
|
+
|
|
28954
|
+
if (businessId !== undefined) {
|
|
28955
|
+
localVarQueryParameter['businessId'] = businessId;
|
|
28956
|
+
}
|
|
28957
|
+
|
|
28958
|
+
|
|
28959
|
+
|
|
28960
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
28961
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
28962
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
28963
|
+
|
|
28964
|
+
return {
|
|
28965
|
+
url: toPathString(localVarUrlObj),
|
|
28966
|
+
options: localVarRequestOptions,
|
|
28967
|
+
};
|
|
28968
|
+
},
|
|
28969
|
+
/**
|
|
28970
|
+
*
|
|
28971
|
+
* @summary Get the full floor plan for a business
|
|
28972
|
+
* @param {number} businessId
|
|
28973
|
+
* @param {*} [options] Override http request option.
|
|
28974
|
+
* @throws {RequiredError}
|
|
28975
|
+
*/
|
|
28976
|
+
getFloorPlan: async (businessId: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
28977
|
+
// verify required parameter 'businessId' is not null or undefined
|
|
28978
|
+
assertParamExists('getFloorPlan', 'businessId', businessId)
|
|
28979
|
+
const localVarPath = `/api/v1/floor-plan`;
|
|
28980
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
28981
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
28982
|
+
let baseOptions;
|
|
28983
|
+
if (configuration) {
|
|
28984
|
+
baseOptions = configuration.baseOptions;
|
|
28985
|
+
}
|
|
28986
|
+
|
|
28987
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
28988
|
+
const localVarHeaderParameter = {} as any;
|
|
28989
|
+
const localVarQueryParameter = {} as any;
|
|
28990
|
+
|
|
28991
|
+
// authentication JWT-auth required
|
|
28992
|
+
// http bearer authentication required
|
|
28993
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
28994
|
+
|
|
28995
|
+
if (businessId !== undefined) {
|
|
28996
|
+
localVarQueryParameter['businessId'] = businessId;
|
|
28997
|
+
}
|
|
28998
|
+
|
|
28999
|
+
|
|
29000
|
+
|
|
29001
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
29002
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
29003
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
29004
|
+
|
|
29005
|
+
return {
|
|
29006
|
+
url: toPathString(localVarUrlObj),
|
|
29007
|
+
options: localVarRequestOptions,
|
|
29008
|
+
};
|
|
29009
|
+
},
|
|
29010
|
+
/**
|
|
29011
|
+
*
|
|
29012
|
+
* @summary Update a dining table
|
|
29013
|
+
* @param {string} id
|
|
29014
|
+
* @param {number} businessId
|
|
29015
|
+
* @param {UpdateDiningTableDto} updateDiningTableDto
|
|
29016
|
+
* @param {*} [options] Override http request option.
|
|
29017
|
+
* @throws {RequiredError}
|
|
29018
|
+
*/
|
|
29019
|
+
updateDiningTable: async (id: string, businessId: number, updateDiningTableDto: UpdateDiningTableDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
29020
|
+
// verify required parameter 'id' is not null or undefined
|
|
29021
|
+
assertParamExists('updateDiningTable', 'id', id)
|
|
29022
|
+
// verify required parameter 'businessId' is not null or undefined
|
|
29023
|
+
assertParamExists('updateDiningTable', 'businessId', businessId)
|
|
29024
|
+
// verify required parameter 'updateDiningTableDto' is not null or undefined
|
|
29025
|
+
assertParamExists('updateDiningTable', 'updateDiningTableDto', updateDiningTableDto)
|
|
29026
|
+
const localVarPath = `/api/v1/floor-plan/tables/{id}`
|
|
29027
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
29028
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
29029
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
29030
|
+
let baseOptions;
|
|
29031
|
+
if (configuration) {
|
|
29032
|
+
baseOptions = configuration.baseOptions;
|
|
29033
|
+
}
|
|
29034
|
+
|
|
29035
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
29036
|
+
const localVarHeaderParameter = {} as any;
|
|
29037
|
+
const localVarQueryParameter = {} as any;
|
|
29038
|
+
|
|
29039
|
+
// authentication JWT-auth required
|
|
29040
|
+
// http bearer authentication required
|
|
29041
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
29042
|
+
|
|
29043
|
+
if (businessId !== undefined) {
|
|
29044
|
+
localVarQueryParameter['businessId'] = businessId;
|
|
29045
|
+
}
|
|
29046
|
+
|
|
29047
|
+
|
|
29048
|
+
|
|
29049
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
29050
|
+
|
|
29051
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
29052
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
29053
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
29054
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateDiningTableDto, localVarRequestOptions, configuration)
|
|
29055
|
+
|
|
29056
|
+
return {
|
|
29057
|
+
url: toPathString(localVarUrlObj),
|
|
29058
|
+
options: localVarRequestOptions,
|
|
29059
|
+
};
|
|
29060
|
+
},
|
|
29061
|
+
/**
|
|
29062
|
+
*
|
|
29063
|
+
* @summary Update a floor section
|
|
29064
|
+
* @param {string} id
|
|
29065
|
+
* @param {number} businessId
|
|
29066
|
+
* @param {UpdateFloorSectionDto} updateFloorSectionDto
|
|
29067
|
+
* @param {*} [options] Override http request option.
|
|
29068
|
+
* @throws {RequiredError}
|
|
29069
|
+
*/
|
|
29070
|
+
updateFloorSection: async (id: string, businessId: number, updateFloorSectionDto: UpdateFloorSectionDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
29071
|
+
// verify required parameter 'id' is not null or undefined
|
|
29072
|
+
assertParamExists('updateFloorSection', 'id', id)
|
|
29073
|
+
// verify required parameter 'businessId' is not null or undefined
|
|
29074
|
+
assertParamExists('updateFloorSection', 'businessId', businessId)
|
|
29075
|
+
// verify required parameter 'updateFloorSectionDto' is not null or undefined
|
|
29076
|
+
assertParamExists('updateFloorSection', 'updateFloorSectionDto', updateFloorSectionDto)
|
|
29077
|
+
const localVarPath = `/api/v1/floor-plan/sections/{id}`
|
|
29078
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
29079
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
29080
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
29081
|
+
let baseOptions;
|
|
29082
|
+
if (configuration) {
|
|
29083
|
+
baseOptions = configuration.baseOptions;
|
|
29084
|
+
}
|
|
29085
|
+
|
|
29086
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
29087
|
+
const localVarHeaderParameter = {} as any;
|
|
29088
|
+
const localVarQueryParameter = {} as any;
|
|
29089
|
+
|
|
29090
|
+
// authentication JWT-auth required
|
|
29091
|
+
// http bearer authentication required
|
|
29092
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
29093
|
+
|
|
29094
|
+
if (businessId !== undefined) {
|
|
29095
|
+
localVarQueryParameter['businessId'] = businessId;
|
|
29096
|
+
}
|
|
29097
|
+
|
|
29098
|
+
|
|
29099
|
+
|
|
29100
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
29101
|
+
|
|
29102
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
29103
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
29104
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
29105
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateFloorSectionDto, localVarRequestOptions, configuration)
|
|
29106
|
+
|
|
29107
|
+
return {
|
|
29108
|
+
url: toPathString(localVarUrlObj),
|
|
29109
|
+
options: localVarRequestOptions,
|
|
29110
|
+
};
|
|
29111
|
+
},
|
|
29112
|
+
/**
|
|
29113
|
+
*
|
|
29114
|
+
* @summary Update a dining table position
|
|
29115
|
+
* @param {string} id
|
|
29116
|
+
* @param {number} businessId
|
|
29117
|
+
* @param {UpdateTablePositionDto} updateTablePositionDto
|
|
29118
|
+
* @param {*} [options] Override http request option.
|
|
29119
|
+
* @throws {RequiredError}
|
|
29120
|
+
*/
|
|
29121
|
+
updateTablePosition: async (id: string, businessId: number, updateTablePositionDto: UpdateTablePositionDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
29122
|
+
// verify required parameter 'id' is not null or undefined
|
|
29123
|
+
assertParamExists('updateTablePosition', 'id', id)
|
|
29124
|
+
// verify required parameter 'businessId' is not null or undefined
|
|
29125
|
+
assertParamExists('updateTablePosition', 'businessId', businessId)
|
|
29126
|
+
// verify required parameter 'updateTablePositionDto' is not null or undefined
|
|
29127
|
+
assertParamExists('updateTablePosition', 'updateTablePositionDto', updateTablePositionDto)
|
|
29128
|
+
const localVarPath = `/api/v1/floor-plan/tables/{id}/position`
|
|
29129
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
29130
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
29131
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
29132
|
+
let baseOptions;
|
|
29133
|
+
if (configuration) {
|
|
29134
|
+
baseOptions = configuration.baseOptions;
|
|
29135
|
+
}
|
|
29136
|
+
|
|
29137
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
29138
|
+
const localVarHeaderParameter = {} as any;
|
|
29139
|
+
const localVarQueryParameter = {} as any;
|
|
29140
|
+
|
|
29141
|
+
// authentication JWT-auth required
|
|
29142
|
+
// http bearer authentication required
|
|
29143
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
29144
|
+
|
|
29145
|
+
if (businessId !== undefined) {
|
|
29146
|
+
localVarQueryParameter['businessId'] = businessId;
|
|
29147
|
+
}
|
|
29148
|
+
|
|
29149
|
+
|
|
29150
|
+
|
|
29151
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
29152
|
+
|
|
29153
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
29154
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
29155
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
29156
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateTablePositionDto, localVarRequestOptions, configuration)
|
|
29157
|
+
|
|
29158
|
+
return {
|
|
29159
|
+
url: toPathString(localVarUrlObj),
|
|
29160
|
+
options: localVarRequestOptions,
|
|
29161
|
+
};
|
|
29162
|
+
},
|
|
29163
|
+
/**
|
|
29164
|
+
*
|
|
29165
|
+
* @summary Update a dining table status
|
|
29166
|
+
* @param {string} id
|
|
29167
|
+
* @param {number} businessId
|
|
29168
|
+
* @param {UpdateTableStatusDto} updateTableStatusDto
|
|
29169
|
+
* @param {*} [options] Override http request option.
|
|
29170
|
+
* @throws {RequiredError}
|
|
29171
|
+
*/
|
|
29172
|
+
updateTableStatus: async (id: string, businessId: number, updateTableStatusDto: UpdateTableStatusDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
29173
|
+
// verify required parameter 'id' is not null or undefined
|
|
29174
|
+
assertParamExists('updateTableStatus', 'id', id)
|
|
29175
|
+
// verify required parameter 'businessId' is not null or undefined
|
|
29176
|
+
assertParamExists('updateTableStatus', 'businessId', businessId)
|
|
29177
|
+
// verify required parameter 'updateTableStatusDto' is not null or undefined
|
|
29178
|
+
assertParamExists('updateTableStatus', 'updateTableStatusDto', updateTableStatusDto)
|
|
29179
|
+
const localVarPath = `/api/v1/floor-plan/tables/{id}/status`
|
|
29180
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
29181
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
29182
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
29183
|
+
let baseOptions;
|
|
29184
|
+
if (configuration) {
|
|
29185
|
+
baseOptions = configuration.baseOptions;
|
|
29186
|
+
}
|
|
29187
|
+
|
|
29188
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
29189
|
+
const localVarHeaderParameter = {} as any;
|
|
29190
|
+
const localVarQueryParameter = {} as any;
|
|
29191
|
+
|
|
29192
|
+
// authentication JWT-auth required
|
|
29193
|
+
// http bearer authentication required
|
|
29194
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
29195
|
+
|
|
29196
|
+
if (businessId !== undefined) {
|
|
29197
|
+
localVarQueryParameter['businessId'] = businessId;
|
|
29198
|
+
}
|
|
29199
|
+
|
|
29200
|
+
|
|
29201
|
+
|
|
29202
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
29203
|
+
|
|
29204
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
29205
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
29206
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
29207
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateTableStatusDto, localVarRequestOptions, configuration)
|
|
29208
|
+
|
|
29209
|
+
return {
|
|
29210
|
+
url: toPathString(localVarUrlObj),
|
|
29211
|
+
options: localVarRequestOptions,
|
|
29212
|
+
};
|
|
29213
|
+
},
|
|
29214
|
+
}
|
|
29215
|
+
};
|
|
29216
|
+
|
|
29217
|
+
/**
|
|
29218
|
+
* FloorPlanApi - functional programming interface
|
|
29219
|
+
* @export
|
|
29220
|
+
*/
|
|
29221
|
+
export const FloorPlanApiFp = function(configuration?: Configuration) {
|
|
29222
|
+
const localVarAxiosParamCreator = FloorPlanApiAxiosParamCreator(configuration)
|
|
29223
|
+
return {
|
|
29224
|
+
/**
|
|
29225
|
+
*
|
|
29226
|
+
* @summary Create a dining table
|
|
29227
|
+
* @param {CreateDiningTableDto} createDiningTableDto
|
|
29228
|
+
* @param {*} [options] Override http request option.
|
|
29229
|
+
* @throws {RequiredError}
|
|
29230
|
+
*/
|
|
29231
|
+
async createDiningTable(createDiningTableDto: CreateDiningTableDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DiningTableResponseDto>> {
|
|
29232
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createDiningTable(createDiningTableDto, options);
|
|
29233
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
29234
|
+
},
|
|
29235
|
+
/**
|
|
29236
|
+
*
|
|
29237
|
+
* @summary Create a floor section
|
|
29238
|
+
* @param {CreateFloorSectionDto} createFloorSectionDto
|
|
29239
|
+
* @param {*} [options] Override http request option.
|
|
29240
|
+
* @throws {RequiredError}
|
|
29241
|
+
*/
|
|
29242
|
+
async createFloorSection(createFloorSectionDto: CreateFloorSectionDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FloorSectionResponseDto>> {
|
|
29243
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createFloorSection(createFloorSectionDto, options);
|
|
29244
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
29245
|
+
},
|
|
29246
|
+
/**
|
|
29247
|
+
*
|
|
29248
|
+
* @summary Delete a dining table
|
|
29249
|
+
* @param {string} id
|
|
29250
|
+
* @param {number} businessId
|
|
29251
|
+
* @param {*} [options] Override http request option.
|
|
29252
|
+
* @throws {RequiredError}
|
|
29253
|
+
*/
|
|
29254
|
+
async deleteDiningTable(id: string, businessId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
29255
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteDiningTable(id, businessId, options);
|
|
29256
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
29257
|
+
},
|
|
29258
|
+
/**
|
|
29259
|
+
*
|
|
29260
|
+
* @summary Delete a floor section
|
|
29261
|
+
* @param {string} id
|
|
29262
|
+
* @param {number} businessId
|
|
29263
|
+
* @param {*} [options] Override http request option.
|
|
29264
|
+
* @throws {RequiredError}
|
|
29265
|
+
*/
|
|
29266
|
+
async deleteFloorSection(id: string, businessId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
29267
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteFloorSection(id, businessId, options);
|
|
29268
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
29269
|
+
},
|
|
29270
|
+
/**
|
|
29271
|
+
*
|
|
29272
|
+
* @summary Get the full floor plan for a business
|
|
29273
|
+
* @param {number} businessId
|
|
29274
|
+
* @param {*} [options] Override http request option.
|
|
29275
|
+
* @throws {RequiredError}
|
|
29276
|
+
*/
|
|
29277
|
+
async getFloorPlan(businessId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<FloorSectionResponseDto>>> {
|
|
29278
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getFloorPlan(businessId, options);
|
|
29279
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
29280
|
+
},
|
|
29281
|
+
/**
|
|
29282
|
+
*
|
|
29283
|
+
* @summary Update a dining table
|
|
29284
|
+
* @param {string} id
|
|
29285
|
+
* @param {number} businessId
|
|
29286
|
+
* @param {UpdateDiningTableDto} updateDiningTableDto
|
|
29287
|
+
* @param {*} [options] Override http request option.
|
|
29288
|
+
* @throws {RequiredError}
|
|
29289
|
+
*/
|
|
29290
|
+
async updateDiningTable(id: string, businessId: number, updateDiningTableDto: UpdateDiningTableDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DiningTableResponseDto>> {
|
|
29291
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateDiningTable(id, businessId, updateDiningTableDto, options);
|
|
29292
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
29293
|
+
},
|
|
29294
|
+
/**
|
|
29295
|
+
*
|
|
29296
|
+
* @summary Update a floor section
|
|
29297
|
+
* @param {string} id
|
|
29298
|
+
* @param {number} businessId
|
|
29299
|
+
* @param {UpdateFloorSectionDto} updateFloorSectionDto
|
|
29300
|
+
* @param {*} [options] Override http request option.
|
|
29301
|
+
* @throws {RequiredError}
|
|
29302
|
+
*/
|
|
29303
|
+
async updateFloorSection(id: string, businessId: number, updateFloorSectionDto: UpdateFloorSectionDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FloorSectionResponseDto>> {
|
|
29304
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateFloorSection(id, businessId, updateFloorSectionDto, options);
|
|
29305
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
29306
|
+
},
|
|
29307
|
+
/**
|
|
29308
|
+
*
|
|
29309
|
+
* @summary Update a dining table position
|
|
29310
|
+
* @param {string} id
|
|
29311
|
+
* @param {number} businessId
|
|
29312
|
+
* @param {UpdateTablePositionDto} updateTablePositionDto
|
|
29313
|
+
* @param {*} [options] Override http request option.
|
|
29314
|
+
* @throws {RequiredError}
|
|
29315
|
+
*/
|
|
29316
|
+
async updateTablePosition(id: string, businessId: number, updateTablePositionDto: UpdateTablePositionDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DiningTableResponseDto>> {
|
|
29317
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateTablePosition(id, businessId, updateTablePositionDto, options);
|
|
29318
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
29319
|
+
},
|
|
29320
|
+
/**
|
|
29321
|
+
*
|
|
29322
|
+
* @summary Update a dining table status
|
|
29323
|
+
* @param {string} id
|
|
29324
|
+
* @param {number} businessId
|
|
29325
|
+
* @param {UpdateTableStatusDto} updateTableStatusDto
|
|
29326
|
+
* @param {*} [options] Override http request option.
|
|
29327
|
+
* @throws {RequiredError}
|
|
29328
|
+
*/
|
|
29329
|
+
async updateTableStatus(id: string, businessId: number, updateTableStatusDto: UpdateTableStatusDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DiningTableResponseDto>> {
|
|
29330
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateTableStatus(id, businessId, updateTableStatusDto, options);
|
|
29331
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
29332
|
+
},
|
|
29333
|
+
}
|
|
29334
|
+
};
|
|
29335
|
+
|
|
29336
|
+
/**
|
|
29337
|
+
* FloorPlanApi - factory interface
|
|
29338
|
+
* @export
|
|
29339
|
+
*/
|
|
29340
|
+
export const FloorPlanApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
29341
|
+
const localVarFp = FloorPlanApiFp(configuration)
|
|
29342
|
+
return {
|
|
29343
|
+
/**
|
|
29344
|
+
*
|
|
29345
|
+
* @summary Create a dining table
|
|
29346
|
+
* @param {CreateDiningTableDto} createDiningTableDto
|
|
29347
|
+
* @param {*} [options] Override http request option.
|
|
29348
|
+
* @throws {RequiredError}
|
|
29349
|
+
*/
|
|
29350
|
+
createDiningTable(createDiningTableDto: CreateDiningTableDto, options?: any): AxiosPromise<DiningTableResponseDto> {
|
|
29351
|
+
return localVarFp.createDiningTable(createDiningTableDto, options).then((request) => request(axios, basePath));
|
|
29352
|
+
},
|
|
29353
|
+
/**
|
|
29354
|
+
*
|
|
29355
|
+
* @summary Create a floor section
|
|
29356
|
+
* @param {CreateFloorSectionDto} createFloorSectionDto
|
|
29357
|
+
* @param {*} [options] Override http request option.
|
|
29358
|
+
* @throws {RequiredError}
|
|
29359
|
+
*/
|
|
29360
|
+
createFloorSection(createFloorSectionDto: CreateFloorSectionDto, options?: any): AxiosPromise<FloorSectionResponseDto> {
|
|
29361
|
+
return localVarFp.createFloorSection(createFloorSectionDto, options).then((request) => request(axios, basePath));
|
|
29362
|
+
},
|
|
29363
|
+
/**
|
|
29364
|
+
*
|
|
29365
|
+
* @summary Delete a dining table
|
|
29366
|
+
* @param {string} id
|
|
29367
|
+
* @param {number} businessId
|
|
29368
|
+
* @param {*} [options] Override http request option.
|
|
29369
|
+
* @throws {RequiredError}
|
|
29370
|
+
*/
|
|
29371
|
+
deleteDiningTable(id: string, businessId: number, options?: any): AxiosPromise<void> {
|
|
29372
|
+
return localVarFp.deleteDiningTable(id, businessId, options).then((request) => request(axios, basePath));
|
|
29373
|
+
},
|
|
29374
|
+
/**
|
|
29375
|
+
*
|
|
29376
|
+
* @summary Delete a floor section
|
|
29377
|
+
* @param {string} id
|
|
29378
|
+
* @param {number} businessId
|
|
29379
|
+
* @param {*} [options] Override http request option.
|
|
29380
|
+
* @throws {RequiredError}
|
|
29381
|
+
*/
|
|
29382
|
+
deleteFloorSection(id: string, businessId: number, options?: any): AxiosPromise<void> {
|
|
29383
|
+
return localVarFp.deleteFloorSection(id, businessId, options).then((request) => request(axios, basePath));
|
|
29384
|
+
},
|
|
29385
|
+
/**
|
|
29386
|
+
*
|
|
29387
|
+
* @summary Get the full floor plan for a business
|
|
29388
|
+
* @param {number} businessId
|
|
29389
|
+
* @param {*} [options] Override http request option.
|
|
29390
|
+
* @throws {RequiredError}
|
|
29391
|
+
*/
|
|
29392
|
+
getFloorPlan(businessId: number, options?: any): AxiosPromise<Array<FloorSectionResponseDto>> {
|
|
29393
|
+
return localVarFp.getFloorPlan(businessId, options).then((request) => request(axios, basePath));
|
|
29394
|
+
},
|
|
29395
|
+
/**
|
|
29396
|
+
*
|
|
29397
|
+
* @summary Update a dining table
|
|
29398
|
+
* @param {string} id
|
|
29399
|
+
* @param {number} businessId
|
|
29400
|
+
* @param {UpdateDiningTableDto} updateDiningTableDto
|
|
29401
|
+
* @param {*} [options] Override http request option.
|
|
29402
|
+
* @throws {RequiredError}
|
|
29403
|
+
*/
|
|
29404
|
+
updateDiningTable(id: string, businessId: number, updateDiningTableDto: UpdateDiningTableDto, options?: any): AxiosPromise<DiningTableResponseDto> {
|
|
29405
|
+
return localVarFp.updateDiningTable(id, businessId, updateDiningTableDto, options).then((request) => request(axios, basePath));
|
|
29406
|
+
},
|
|
29407
|
+
/**
|
|
29408
|
+
*
|
|
29409
|
+
* @summary Update a floor section
|
|
29410
|
+
* @param {string} id
|
|
29411
|
+
* @param {number} businessId
|
|
29412
|
+
* @param {UpdateFloorSectionDto} updateFloorSectionDto
|
|
29413
|
+
* @param {*} [options] Override http request option.
|
|
29414
|
+
* @throws {RequiredError}
|
|
29415
|
+
*/
|
|
29416
|
+
updateFloorSection(id: string, businessId: number, updateFloorSectionDto: UpdateFloorSectionDto, options?: any): AxiosPromise<FloorSectionResponseDto> {
|
|
29417
|
+
return localVarFp.updateFloorSection(id, businessId, updateFloorSectionDto, options).then((request) => request(axios, basePath));
|
|
29418
|
+
},
|
|
29419
|
+
/**
|
|
29420
|
+
*
|
|
29421
|
+
* @summary Update a dining table position
|
|
29422
|
+
* @param {string} id
|
|
29423
|
+
* @param {number} businessId
|
|
29424
|
+
* @param {UpdateTablePositionDto} updateTablePositionDto
|
|
29425
|
+
* @param {*} [options] Override http request option.
|
|
29426
|
+
* @throws {RequiredError}
|
|
29427
|
+
*/
|
|
29428
|
+
updateTablePosition(id: string, businessId: number, updateTablePositionDto: UpdateTablePositionDto, options?: any): AxiosPromise<DiningTableResponseDto> {
|
|
29429
|
+
return localVarFp.updateTablePosition(id, businessId, updateTablePositionDto, options).then((request) => request(axios, basePath));
|
|
29430
|
+
},
|
|
29431
|
+
/**
|
|
29432
|
+
*
|
|
29433
|
+
* @summary Update a dining table status
|
|
29434
|
+
* @param {string} id
|
|
29435
|
+
* @param {number} businessId
|
|
29436
|
+
* @param {UpdateTableStatusDto} updateTableStatusDto
|
|
29437
|
+
* @param {*} [options] Override http request option.
|
|
29438
|
+
* @throws {RequiredError}
|
|
29439
|
+
*/
|
|
29440
|
+
updateTableStatus(id: string, businessId: number, updateTableStatusDto: UpdateTableStatusDto, options?: any): AxiosPromise<DiningTableResponseDto> {
|
|
29441
|
+
return localVarFp.updateTableStatus(id, businessId, updateTableStatusDto, options).then((request) => request(axios, basePath));
|
|
29442
|
+
},
|
|
29443
|
+
};
|
|
29444
|
+
};
|
|
29445
|
+
|
|
29446
|
+
/**
|
|
29447
|
+
* FloorPlanApi - interface
|
|
29448
|
+
* @export
|
|
29449
|
+
* @interface FloorPlanApi
|
|
29450
|
+
*/
|
|
29451
|
+
export interface FloorPlanApiInterface {
|
|
29452
|
+
/**
|
|
29453
|
+
*
|
|
29454
|
+
* @summary Create a dining table
|
|
29455
|
+
* @param {CreateDiningTableDto} createDiningTableDto
|
|
29456
|
+
* @param {*} [options] Override http request option.
|
|
29457
|
+
* @throws {RequiredError}
|
|
29458
|
+
* @memberof FloorPlanApiInterface
|
|
29459
|
+
*/
|
|
29460
|
+
createDiningTable(createDiningTableDto: CreateDiningTableDto, options?: AxiosRequestConfig): AxiosPromise<DiningTableResponseDto>;
|
|
29461
|
+
|
|
29462
|
+
/**
|
|
29463
|
+
*
|
|
29464
|
+
* @summary Create a floor section
|
|
29465
|
+
* @param {CreateFloorSectionDto} createFloorSectionDto
|
|
29466
|
+
* @param {*} [options] Override http request option.
|
|
29467
|
+
* @throws {RequiredError}
|
|
29468
|
+
* @memberof FloorPlanApiInterface
|
|
29469
|
+
*/
|
|
29470
|
+
createFloorSection(createFloorSectionDto: CreateFloorSectionDto, options?: AxiosRequestConfig): AxiosPromise<FloorSectionResponseDto>;
|
|
29471
|
+
|
|
29472
|
+
/**
|
|
29473
|
+
*
|
|
29474
|
+
* @summary Delete a dining table
|
|
29475
|
+
* @param {string} id
|
|
29476
|
+
* @param {number} businessId
|
|
29477
|
+
* @param {*} [options] Override http request option.
|
|
29478
|
+
* @throws {RequiredError}
|
|
29479
|
+
* @memberof FloorPlanApiInterface
|
|
29480
|
+
*/
|
|
29481
|
+
deleteDiningTable(id: string, businessId: number, options?: AxiosRequestConfig): AxiosPromise<void>;
|
|
29482
|
+
|
|
29483
|
+
/**
|
|
29484
|
+
*
|
|
29485
|
+
* @summary Delete a floor section
|
|
29486
|
+
* @param {string} id
|
|
29487
|
+
* @param {number} businessId
|
|
29488
|
+
* @param {*} [options] Override http request option.
|
|
29489
|
+
* @throws {RequiredError}
|
|
29490
|
+
* @memberof FloorPlanApiInterface
|
|
29491
|
+
*/
|
|
29492
|
+
deleteFloorSection(id: string, businessId: number, options?: AxiosRequestConfig): AxiosPromise<void>;
|
|
29493
|
+
|
|
29494
|
+
/**
|
|
29495
|
+
*
|
|
29496
|
+
* @summary Get the full floor plan for a business
|
|
29497
|
+
* @param {number} businessId
|
|
29498
|
+
* @param {*} [options] Override http request option.
|
|
29499
|
+
* @throws {RequiredError}
|
|
29500
|
+
* @memberof FloorPlanApiInterface
|
|
29501
|
+
*/
|
|
29502
|
+
getFloorPlan(businessId: number, options?: AxiosRequestConfig): AxiosPromise<Array<FloorSectionResponseDto>>;
|
|
29503
|
+
|
|
29504
|
+
/**
|
|
29505
|
+
*
|
|
29506
|
+
* @summary Update a dining table
|
|
29507
|
+
* @param {string} id
|
|
29508
|
+
* @param {number} businessId
|
|
29509
|
+
* @param {UpdateDiningTableDto} updateDiningTableDto
|
|
29510
|
+
* @param {*} [options] Override http request option.
|
|
29511
|
+
* @throws {RequiredError}
|
|
29512
|
+
* @memberof FloorPlanApiInterface
|
|
29513
|
+
*/
|
|
29514
|
+
updateDiningTable(id: string, businessId: number, updateDiningTableDto: UpdateDiningTableDto, options?: AxiosRequestConfig): AxiosPromise<DiningTableResponseDto>;
|
|
29515
|
+
|
|
29516
|
+
/**
|
|
29517
|
+
*
|
|
29518
|
+
* @summary Update a floor section
|
|
29519
|
+
* @param {string} id
|
|
29520
|
+
* @param {number} businessId
|
|
29521
|
+
* @param {UpdateFloorSectionDto} updateFloorSectionDto
|
|
29522
|
+
* @param {*} [options] Override http request option.
|
|
29523
|
+
* @throws {RequiredError}
|
|
29524
|
+
* @memberof FloorPlanApiInterface
|
|
29525
|
+
*/
|
|
29526
|
+
updateFloorSection(id: string, businessId: number, updateFloorSectionDto: UpdateFloorSectionDto, options?: AxiosRequestConfig): AxiosPromise<FloorSectionResponseDto>;
|
|
29527
|
+
|
|
29528
|
+
/**
|
|
29529
|
+
*
|
|
29530
|
+
* @summary Update a dining table position
|
|
29531
|
+
* @param {string} id
|
|
29532
|
+
* @param {number} businessId
|
|
29533
|
+
* @param {UpdateTablePositionDto} updateTablePositionDto
|
|
29534
|
+
* @param {*} [options] Override http request option.
|
|
29535
|
+
* @throws {RequiredError}
|
|
29536
|
+
* @memberof FloorPlanApiInterface
|
|
29537
|
+
*/
|
|
29538
|
+
updateTablePosition(id: string, businessId: number, updateTablePositionDto: UpdateTablePositionDto, options?: AxiosRequestConfig): AxiosPromise<DiningTableResponseDto>;
|
|
29539
|
+
|
|
29540
|
+
/**
|
|
29541
|
+
*
|
|
29542
|
+
* @summary Update a dining table status
|
|
29543
|
+
* @param {string} id
|
|
29544
|
+
* @param {number} businessId
|
|
29545
|
+
* @param {UpdateTableStatusDto} updateTableStatusDto
|
|
29546
|
+
* @param {*} [options] Override http request option.
|
|
29547
|
+
* @throws {RequiredError}
|
|
29548
|
+
* @memberof FloorPlanApiInterface
|
|
29549
|
+
*/
|
|
29550
|
+
updateTableStatus(id: string, businessId: number, updateTableStatusDto: UpdateTableStatusDto, options?: AxiosRequestConfig): AxiosPromise<DiningTableResponseDto>;
|
|
29551
|
+
|
|
29552
|
+
}
|
|
29553
|
+
|
|
29554
|
+
/**
|
|
29555
|
+
* FloorPlanApi - object-oriented interface
|
|
29556
|
+
* @export
|
|
29557
|
+
* @class FloorPlanApi
|
|
29558
|
+
* @extends {BaseAPI}
|
|
29559
|
+
*/
|
|
29560
|
+
export class FloorPlanApi extends BaseAPI implements FloorPlanApiInterface {
|
|
29561
|
+
/**
|
|
29562
|
+
*
|
|
29563
|
+
* @summary Create a dining table
|
|
29564
|
+
* @param {CreateDiningTableDto} createDiningTableDto
|
|
29565
|
+
* @param {*} [options] Override http request option.
|
|
29566
|
+
* @throws {RequiredError}
|
|
29567
|
+
* @memberof FloorPlanApi
|
|
29568
|
+
*/
|
|
29569
|
+
public createDiningTable(createDiningTableDto: CreateDiningTableDto, options?: AxiosRequestConfig) {
|
|
29570
|
+
return FloorPlanApiFp(this.configuration).createDiningTable(createDiningTableDto, options).then((request) => request(this.axios, this.basePath));
|
|
29571
|
+
}
|
|
29572
|
+
|
|
29573
|
+
/**
|
|
29574
|
+
*
|
|
29575
|
+
* @summary Create a floor section
|
|
29576
|
+
* @param {CreateFloorSectionDto} createFloorSectionDto
|
|
29577
|
+
* @param {*} [options] Override http request option.
|
|
29578
|
+
* @throws {RequiredError}
|
|
29579
|
+
* @memberof FloorPlanApi
|
|
29580
|
+
*/
|
|
29581
|
+
public createFloorSection(createFloorSectionDto: CreateFloorSectionDto, options?: AxiosRequestConfig) {
|
|
29582
|
+
return FloorPlanApiFp(this.configuration).createFloorSection(createFloorSectionDto, options).then((request) => request(this.axios, this.basePath));
|
|
29583
|
+
}
|
|
29584
|
+
|
|
29585
|
+
/**
|
|
29586
|
+
*
|
|
29587
|
+
* @summary Delete a dining table
|
|
29588
|
+
* @param {string} id
|
|
29589
|
+
* @param {number} businessId
|
|
29590
|
+
* @param {*} [options] Override http request option.
|
|
29591
|
+
* @throws {RequiredError}
|
|
29592
|
+
* @memberof FloorPlanApi
|
|
29593
|
+
*/
|
|
29594
|
+
public deleteDiningTable(id: string, businessId: number, options?: AxiosRequestConfig) {
|
|
29595
|
+
return FloorPlanApiFp(this.configuration).deleteDiningTable(id, businessId, options).then((request) => request(this.axios, this.basePath));
|
|
29596
|
+
}
|
|
29597
|
+
|
|
29598
|
+
/**
|
|
29599
|
+
*
|
|
29600
|
+
* @summary Delete a floor section
|
|
29601
|
+
* @param {string} id
|
|
29602
|
+
* @param {number} businessId
|
|
29603
|
+
* @param {*} [options] Override http request option.
|
|
29604
|
+
* @throws {RequiredError}
|
|
29605
|
+
* @memberof FloorPlanApi
|
|
29606
|
+
*/
|
|
29607
|
+
public deleteFloorSection(id: string, businessId: number, options?: AxiosRequestConfig) {
|
|
29608
|
+
return FloorPlanApiFp(this.configuration).deleteFloorSection(id, businessId, options).then((request) => request(this.axios, this.basePath));
|
|
29609
|
+
}
|
|
29610
|
+
|
|
29611
|
+
/**
|
|
29612
|
+
*
|
|
29613
|
+
* @summary Get the full floor plan for a business
|
|
29614
|
+
* @param {number} businessId
|
|
29615
|
+
* @param {*} [options] Override http request option.
|
|
29616
|
+
* @throws {RequiredError}
|
|
29617
|
+
* @memberof FloorPlanApi
|
|
29618
|
+
*/
|
|
29619
|
+
public getFloorPlan(businessId: number, options?: AxiosRequestConfig) {
|
|
29620
|
+
return FloorPlanApiFp(this.configuration).getFloorPlan(businessId, options).then((request) => request(this.axios, this.basePath));
|
|
29621
|
+
}
|
|
29622
|
+
|
|
29623
|
+
/**
|
|
29624
|
+
*
|
|
29625
|
+
* @summary Update a dining table
|
|
29626
|
+
* @param {string} id
|
|
29627
|
+
* @param {number} businessId
|
|
29628
|
+
* @param {UpdateDiningTableDto} updateDiningTableDto
|
|
29629
|
+
* @param {*} [options] Override http request option.
|
|
29630
|
+
* @throws {RequiredError}
|
|
29631
|
+
* @memberof FloorPlanApi
|
|
29632
|
+
*/
|
|
29633
|
+
public updateDiningTable(id: string, businessId: number, updateDiningTableDto: UpdateDiningTableDto, options?: AxiosRequestConfig) {
|
|
29634
|
+
return FloorPlanApiFp(this.configuration).updateDiningTable(id, businessId, updateDiningTableDto, options).then((request) => request(this.axios, this.basePath));
|
|
29635
|
+
}
|
|
29636
|
+
|
|
29637
|
+
/**
|
|
29638
|
+
*
|
|
29639
|
+
* @summary Update a floor section
|
|
29640
|
+
* @param {string} id
|
|
29641
|
+
* @param {number} businessId
|
|
29642
|
+
* @param {UpdateFloorSectionDto} updateFloorSectionDto
|
|
29643
|
+
* @param {*} [options] Override http request option.
|
|
29644
|
+
* @throws {RequiredError}
|
|
29645
|
+
* @memberof FloorPlanApi
|
|
29646
|
+
*/
|
|
29647
|
+
public updateFloorSection(id: string, businessId: number, updateFloorSectionDto: UpdateFloorSectionDto, options?: AxiosRequestConfig) {
|
|
29648
|
+
return FloorPlanApiFp(this.configuration).updateFloorSection(id, businessId, updateFloorSectionDto, options).then((request) => request(this.axios, this.basePath));
|
|
29649
|
+
}
|
|
29650
|
+
|
|
29651
|
+
/**
|
|
29652
|
+
*
|
|
29653
|
+
* @summary Update a dining table position
|
|
29654
|
+
* @param {string} id
|
|
29655
|
+
* @param {number} businessId
|
|
29656
|
+
* @param {UpdateTablePositionDto} updateTablePositionDto
|
|
29657
|
+
* @param {*} [options] Override http request option.
|
|
29658
|
+
* @throws {RequiredError}
|
|
29659
|
+
* @memberof FloorPlanApi
|
|
29660
|
+
*/
|
|
29661
|
+
public updateTablePosition(id: string, businessId: number, updateTablePositionDto: UpdateTablePositionDto, options?: AxiosRequestConfig) {
|
|
29662
|
+
return FloorPlanApiFp(this.configuration).updateTablePosition(id, businessId, updateTablePositionDto, options).then((request) => request(this.axios, this.basePath));
|
|
29663
|
+
}
|
|
29664
|
+
|
|
29665
|
+
/**
|
|
29666
|
+
*
|
|
29667
|
+
* @summary Update a dining table status
|
|
29668
|
+
* @param {string} id
|
|
29669
|
+
* @param {number} businessId
|
|
29670
|
+
* @param {UpdateTableStatusDto} updateTableStatusDto
|
|
29671
|
+
* @param {*} [options] Override http request option.
|
|
29672
|
+
* @throws {RequiredError}
|
|
29673
|
+
* @memberof FloorPlanApi
|
|
29674
|
+
*/
|
|
29675
|
+
public updateTableStatus(id: string, businessId: number, updateTableStatusDto: UpdateTableStatusDto, options?: AxiosRequestConfig) {
|
|
29676
|
+
return FloorPlanApiFp(this.configuration).updateTableStatus(id, businessId, updateTableStatusDto, options).then((request) => request(this.axios, this.basePath));
|
|
29677
|
+
}
|
|
29678
|
+
}
|
|
29679
|
+
|
|
29680
|
+
|
|
27967
29681
|
/**
|
|
27968
29682
|
* GiftcardApi - axios parameter creator
|
|
27969
29683
|
* @export
|