@compassdigital/sdk.typescript 3.66.0 → 3.68.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.d.ts +23 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +26 -0
- package/lib/index.js.map +1 -1
- package/lib/interface/calendar.js +1 -1
- package/lib/interface/calendar.js.map +1 -1
- package/lib/interface/compassconnect.js +1 -1
- package/lib/interface/compassconnect.js.map +1 -1
- package/lib/interface/delivery.js +1 -1
- package/lib/interface/delivery.js.map +1 -1
- package/lib/interface/file.js +1 -1
- package/lib/interface/file.js.map +1 -1
- package/lib/interface/menu.d.ts +171 -39
- package/lib/interface/menu.d.ts.map +1 -1
- package/lib/interface/menu.js +1 -1
- package/lib/interface/menu.js.map +1 -1
- package/lib/interface/notification.js +1 -1
- package/lib/interface/notification.js.map +1 -1
- package/lib/interface/payment.d.ts +1 -0
- package/lib/interface/payment.d.ts.map +1 -1
- package/lib/interface/promo.d.ts +8 -10
- package/lib/interface/promo.d.ts.map +1 -1
- package/lib/interface/shoppingcart.d.ts +7 -0
- package/lib/interface/shoppingcart.d.ts.map +1 -1
- package/lib/interface/user.d.ts +10 -1
- package/lib/interface/user.d.ts.map +1 -1
- package/lib/interface/user.js +1 -1
- package/lib/interface/user.js.map +1 -1
- package/lib/interface/vendor.js +1 -1
- package/lib/interface/vendor.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +66 -0
- package/src/interface/calendar.ts +1 -1
- package/src/interface/compassconnect.ts +1 -1
- package/src/interface/delivery.ts +1 -1
- package/src/interface/file.ts +1 -1
- package/src/interface/menu.ts +196 -41
- package/src/interface/notification.ts +1 -1
- package/src/interface/payment.ts +1 -0
- package/src/interface/promo.ts +9 -10
- package/src/interface/shoppingcart.ts +8 -0
- package/src/interface/user.ts +12 -2
- package/src/interface/vendor.ts +1 -1
package/src/interface/menu.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/* eslint-disable */
|
|
2
2
|
// THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
|
|
3
3
|
|
|
4
4
|
import { RequestQuery, BaseRequest } from "./util";
|
|
@@ -501,7 +501,7 @@ export interface BrandChangeDTO {
|
|
|
501
501
|
}
|
|
502
502
|
|
|
503
503
|
export interface POSIDSegmentDTO {
|
|
504
|
-
value?:
|
|
504
|
+
value?: FilterFieldDTO;
|
|
505
505
|
modifier_id?: string;
|
|
506
506
|
published_modifier?: PublishedModifierDTO;
|
|
507
507
|
draft_modifier?: DraftModifierDTO;
|
|
@@ -533,9 +533,9 @@ export interface PublishedModifierDTO {
|
|
|
533
533
|
tax_tags?: FilterFieldDTO[];
|
|
534
534
|
is_active?: boolean;
|
|
535
535
|
posid?: FilterFieldDTO;
|
|
536
|
+
reporting?: any;
|
|
536
537
|
brand_id?: string;
|
|
537
538
|
brand?: PublishedBrandDTO;
|
|
538
|
-
reporting?: any;
|
|
539
539
|
weight?: any;
|
|
540
540
|
permissions?: FilterFieldDTO;
|
|
541
541
|
[index: string]: any;
|
|
@@ -601,6 +601,7 @@ export interface PublishedItemDTO {
|
|
|
601
601
|
name?: string;
|
|
602
602
|
label?: string;
|
|
603
603
|
description?: string;
|
|
604
|
+
reporting?: ReportingMetadataDTO;
|
|
604
605
|
price?: number;
|
|
605
606
|
barcode?: string;
|
|
606
607
|
calories?: number;
|
|
@@ -608,9 +609,9 @@ export interface PublishedItemDTO {
|
|
|
608
609
|
posid?: FilterFieldDTO;
|
|
609
610
|
tax_tags?: FilterFieldDTO[];
|
|
610
611
|
brand_id?: string;
|
|
612
|
+
line_route?: FilterFieldDTO;
|
|
611
613
|
brand?: PublishedBrandDTO;
|
|
612
614
|
categories?: PublishedCategoryToItemRelationshipDTO[];
|
|
613
|
-
reporting?: ReportingMetadataDTO;
|
|
614
615
|
attachments?: FileAttachmentsDTO;
|
|
615
616
|
weight?: WeightDTO;
|
|
616
617
|
permissions?: FilterFieldDTO;
|
|
@@ -705,11 +706,11 @@ export interface DraftModifierDTO {
|
|
|
705
706
|
tax_tags?: FilterFieldDTO[];
|
|
706
707
|
is_active?: boolean;
|
|
707
708
|
posid?: FilterFieldDTO;
|
|
709
|
+
reporting?: any;
|
|
708
710
|
brand_id?: string;
|
|
709
711
|
brand?: any;
|
|
710
712
|
changes?: ModifierChangeDTO[];
|
|
711
713
|
vendor_metadata?: VendorMetadataDTO[];
|
|
712
|
-
reporting?: any;
|
|
713
714
|
weight?: any;
|
|
714
715
|
permissions?: FilterFieldDTO;
|
|
715
716
|
[index: string]: any;
|
|
@@ -781,6 +782,7 @@ export interface DraftItemDTO {
|
|
|
781
782
|
name?: string;
|
|
782
783
|
label?: string;
|
|
783
784
|
description?: string;
|
|
785
|
+
reporting?: any;
|
|
784
786
|
price?: number;
|
|
785
787
|
barcode?: string;
|
|
786
788
|
calories?: number;
|
|
@@ -788,11 +790,11 @@ export interface DraftItemDTO {
|
|
|
788
790
|
posid?: FilterFieldDTO;
|
|
789
791
|
tax_tags?: FilterFieldDTO[];
|
|
790
792
|
brand_id?: string;
|
|
793
|
+
line_route?: FilterFieldDTO;
|
|
791
794
|
brand?: any;
|
|
792
795
|
categories?: DraftCategoryToItemRelationshipDTO[];
|
|
793
796
|
changes?: ItemChangeDTO[];
|
|
794
797
|
vendor_metadata?: VendorMetadataDTO[];
|
|
795
|
-
reporting?: any;
|
|
796
798
|
attachments?: any;
|
|
797
799
|
weight?: any;
|
|
798
800
|
permissions?: FilterFieldDTO;
|
|
@@ -1026,6 +1028,7 @@ export interface DraftItemDraftItemDTO {
|
|
|
1026
1028
|
posid?: FilterFieldDTO;
|
|
1027
1029
|
tax_tags?: FilterFieldDTO[];
|
|
1028
1030
|
brand_id?: FilterFieldDTO;
|
|
1031
|
+
line_route?: FilterFieldDTO;
|
|
1029
1032
|
id?: FilterFieldDTO;
|
|
1030
1033
|
version?: FilterFieldDTO;
|
|
1031
1034
|
created_at?: FilterFieldDTO;
|
|
@@ -1051,45 +1054,45 @@ export interface ReportingCategorySuggestion {
|
|
|
1051
1054
|
occurrences?: number;
|
|
1052
1055
|
}
|
|
1053
1056
|
|
|
1054
|
-
export interface DiffDTO {
|
|
1055
|
-
action: string;
|
|
1056
|
-
id?: string;
|
|
1057
|
-
created_at?: string;
|
|
1058
|
-
updated_at?: string;
|
|
1059
|
-
deleted_at?: string;
|
|
1060
|
-
child_nodes?: any[];
|
|
1061
|
-
name?: string;
|
|
1062
|
-
entity_type?: string;
|
|
1063
|
-
local_id?: string;
|
|
1064
|
-
changes?: any;
|
|
1065
|
-
local_snapshot?: any;
|
|
1066
|
-
global_id?: string;
|
|
1067
|
-
global_snapshot?: any;
|
|
1068
|
-
brand_id?: string;
|
|
1069
|
-
version?: number;
|
|
1070
|
-
depends_on?: GlobalDiffDependencyDTO[];
|
|
1071
|
-
is_depended_by?: any[];
|
|
1072
|
-
brand?: DraftBrandDTO;
|
|
1073
|
-
permissions?: any;
|
|
1074
|
-
[index: string]: any;
|
|
1075
|
-
}
|
|
1076
|
-
|
|
1077
1057
|
export interface GlobalDiffDependencyDTO {
|
|
1078
1058
|
depends_on_id?: string;
|
|
1079
1059
|
is_depended_by_id?: string;
|
|
1080
1060
|
id?: string;
|
|
1081
|
-
depends_on?:
|
|
1061
|
+
depends_on?: GlobalDiffGlobalDiffDTO;
|
|
1082
1062
|
is_depended_by?: any;
|
|
1083
|
-
permissions?:
|
|
1063
|
+
permissions?: FilterFieldDTO;
|
|
1084
1064
|
[index: string]: any;
|
|
1085
1065
|
}
|
|
1086
1066
|
|
|
1087
|
-
export interface
|
|
1067
|
+
export interface GlobalDiffGlobalDiffDTO {
|
|
1068
|
+
action?: FilterFieldDTO;
|
|
1069
|
+
entity_type?: FilterFieldDTO;
|
|
1070
|
+
local_id?: FilterFieldDTO;
|
|
1071
|
+
changes?: FilterFieldDTO;
|
|
1072
|
+
local_snapshot?: FilterFieldDTO;
|
|
1073
|
+
global_id?: FilterFieldDTO;
|
|
1074
|
+
global_snapshot?: FilterFieldDTO;
|
|
1075
|
+
brand_id?: FilterFieldDTO;
|
|
1076
|
+
id?: FilterFieldDTO;
|
|
1077
|
+
version?: FilterFieldDTO;
|
|
1078
|
+
created_at?: FilterFieldDTO;
|
|
1079
|
+
updated_at?: FilterFieldDTO;
|
|
1080
|
+
deleted_at?: FilterFieldDTO;
|
|
1081
|
+
depends_on?: any[];
|
|
1082
|
+
is_depended_by?: any[];
|
|
1083
|
+
brand?: DraftBrandDTO;
|
|
1084
|
+
permissions?: FilterFieldDTO;
|
|
1085
|
+
[index: string]: any;
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1088
|
+
export interface DiffDTO {
|
|
1088
1089
|
action: string;
|
|
1089
1090
|
id?: string;
|
|
1090
1091
|
created_at?: string;
|
|
1091
1092
|
updated_at?: string;
|
|
1092
1093
|
deleted_at?: string;
|
|
1094
|
+
child_nodes?: any[];
|
|
1095
|
+
name?: string;
|
|
1093
1096
|
entity_type?: string;
|
|
1094
1097
|
local_id?: string;
|
|
1095
1098
|
changes?: any;
|
|
@@ -1098,8 +1101,8 @@ export interface GlobalDiffDTO {
|
|
|
1098
1101
|
global_snapshot?: any;
|
|
1099
1102
|
brand_id?: string;
|
|
1100
1103
|
version?: number;
|
|
1101
|
-
depends_on?:
|
|
1102
|
-
is_depended_by?:
|
|
1104
|
+
depends_on?: GlobalDiffDependencyDTO[];
|
|
1105
|
+
is_depended_by?: GlobalDiffDependencyDTO[];
|
|
1103
1106
|
brand?: DraftBrandDTO;
|
|
1104
1107
|
permissions?: any;
|
|
1105
1108
|
[index: string]: any;
|
|
@@ -1253,6 +1256,7 @@ export interface PublishedItemPublishedItemDTO {
|
|
|
1253
1256
|
posid?: FilterFieldDTO;
|
|
1254
1257
|
tax_tags?: FilterFieldDTO[];
|
|
1255
1258
|
brand_id?: FilterFieldDTO;
|
|
1259
|
+
line_route?: FilterFieldDTO;
|
|
1256
1260
|
id?: FilterFieldDTO;
|
|
1257
1261
|
version?: FilterFieldDTO;
|
|
1258
1262
|
created_at?: FilterFieldDTO;
|
|
@@ -1404,6 +1408,27 @@ export interface PublishedModifierPublishedModifierDTO {
|
|
|
1404
1408
|
[index: string]: any;
|
|
1405
1409
|
}
|
|
1406
1410
|
|
|
1411
|
+
export interface GlobalDiffDTO {
|
|
1412
|
+
action: string;
|
|
1413
|
+
id?: string;
|
|
1414
|
+
created_at?: string;
|
|
1415
|
+
updated_at?: string;
|
|
1416
|
+
deleted_at?: string;
|
|
1417
|
+
entity_type?: string;
|
|
1418
|
+
local_id?: string;
|
|
1419
|
+
changes?: any;
|
|
1420
|
+
local_snapshot?: any;
|
|
1421
|
+
global_id?: string;
|
|
1422
|
+
global_snapshot?: any;
|
|
1423
|
+
brand_id?: string;
|
|
1424
|
+
version?: number;
|
|
1425
|
+
depends_on?: GlobalDiffDependencyDTO[];
|
|
1426
|
+
is_depended_by?: GlobalDiffDependencyDTO[];
|
|
1427
|
+
brand?: DraftBrandDTO;
|
|
1428
|
+
permissions?: any;
|
|
1429
|
+
[index: string]: any;
|
|
1430
|
+
}
|
|
1431
|
+
|
|
1407
1432
|
// GET /menu/client/{client_id} - Get menu client
|
|
1408
1433
|
|
|
1409
1434
|
export interface GetMenuClientPath {
|
|
@@ -2939,6 +2964,20 @@ export interface GetMenuV3DraftBrandDiffsPath {
|
|
|
2939
2964
|
}
|
|
2940
2965
|
|
|
2941
2966
|
export interface GetMenuV3DraftBrandDiffsQuery {
|
|
2967
|
+
// If specified, only the selected fields will be returned
|
|
2968
|
+
select?: string[];
|
|
2969
|
+
// List of relationships to load alongside this entity. Can load nested relationships using the pattern 'children.grand_children.foo'
|
|
2970
|
+
relationships?: string[];
|
|
2971
|
+
// The fields that filtering is allowed on
|
|
2972
|
+
filter?: any;
|
|
2973
|
+
// Number of records to load per page
|
|
2974
|
+
limit?: number;
|
|
2975
|
+
page?: number;
|
|
2976
|
+
// A field to sort the results based on
|
|
2977
|
+
sort_by?: string;
|
|
2978
|
+
sort_order?: string;
|
|
2979
|
+
// How soft deleted records should be shown in the list
|
|
2980
|
+
soft_deleted?: string;
|
|
2942
2981
|
// Graphql query string
|
|
2943
2982
|
_query?: string;
|
|
2944
2983
|
}
|
|
@@ -4165,6 +4204,7 @@ export interface PostMenuV3DraftItemBody {
|
|
|
4165
4204
|
name: string;
|
|
4166
4205
|
label?: string;
|
|
4167
4206
|
description?: string;
|
|
4207
|
+
reporting: ReportingMetadataDTO;
|
|
4168
4208
|
price: number;
|
|
4169
4209
|
barcode?: string;
|
|
4170
4210
|
calories?: number;
|
|
@@ -4172,12 +4212,12 @@ export interface PostMenuV3DraftItemBody {
|
|
|
4172
4212
|
posid?: string;
|
|
4173
4213
|
tax_tags?: any[];
|
|
4174
4214
|
brand_id: string;
|
|
4215
|
+
line_route?: string;
|
|
4175
4216
|
id?: any;
|
|
4176
4217
|
brand?: DraftBrandDTO;
|
|
4177
4218
|
categories?: DraftCategoryToItemRelationshipDTO[];
|
|
4178
4219
|
changes?: ItemChangeDTO[];
|
|
4179
4220
|
vendor_metadata?: VendorMetadataDTO[];
|
|
4180
|
-
reporting?: ReportingMetadataDTO;
|
|
4181
4221
|
attachments?: FileAttachmentsDTO;
|
|
4182
4222
|
weight?: WeightDTO;
|
|
4183
4223
|
permissions?: any;
|
|
@@ -4228,6 +4268,7 @@ export interface PatchMenuV3DraftItemBody {
|
|
|
4228
4268
|
name?: string;
|
|
4229
4269
|
label?: string;
|
|
4230
4270
|
description?: string;
|
|
4271
|
+
reporting?: ReportingMetadataDTO;
|
|
4231
4272
|
price?: number;
|
|
4232
4273
|
barcode?: string;
|
|
4233
4274
|
calories?: number;
|
|
@@ -4235,11 +4276,11 @@ export interface PatchMenuV3DraftItemBody {
|
|
|
4235
4276
|
posid?: string;
|
|
4236
4277
|
tax_tags?: any[];
|
|
4237
4278
|
brand_id?: string;
|
|
4279
|
+
line_route?: string;
|
|
4238
4280
|
brand?: DraftBrandDTO;
|
|
4239
4281
|
categories?: DraftCategoryToItemRelationshipDTO[];
|
|
4240
4282
|
changes?: ItemChangeDTO[];
|
|
4241
4283
|
vendor_metadata?: VendorMetadataDTO[];
|
|
4242
|
-
reporting?: ReportingMetadataDTO;
|
|
4243
4284
|
attachments?: FileAttachmentsDTO;
|
|
4244
4285
|
weight?: WeightDTO;
|
|
4245
4286
|
permissions?: any;
|
|
@@ -4304,6 +4345,7 @@ export type PostMenuV3DraftItemsBody = {
|
|
|
4304
4345
|
name: string;
|
|
4305
4346
|
label?: string;
|
|
4306
4347
|
description?: string;
|
|
4348
|
+
reporting: ReportingMetadataDTO;
|
|
4307
4349
|
price: number;
|
|
4308
4350
|
barcode?: string;
|
|
4309
4351
|
calories?: number;
|
|
@@ -4311,12 +4353,12 @@ export type PostMenuV3DraftItemsBody = {
|
|
|
4311
4353
|
posid?: string;
|
|
4312
4354
|
tax_tags?: any[];
|
|
4313
4355
|
brand_id: string;
|
|
4356
|
+
line_route?: string;
|
|
4314
4357
|
id?: any;
|
|
4315
4358
|
brand?: DraftBrandDTO;
|
|
4316
4359
|
categories?: DraftCategoryToItemRelationshipDTO[];
|
|
4317
4360
|
changes?: ItemChangeDTO[];
|
|
4318
4361
|
vendor_metadata?: VendorMetadataDTO[];
|
|
4319
|
-
reporting?: ReportingMetadataDTO;
|
|
4320
4362
|
attachments?: FileAttachmentsDTO;
|
|
4321
4363
|
weight?: WeightDTO;
|
|
4322
4364
|
permissions?: any;
|
|
@@ -4351,6 +4393,47 @@ export interface GetMenuV3DraftItemsCountRequest
|
|
|
4351
4393
|
extends BaseRequest,
|
|
4352
4394
|
RequestQuery<GetMenuV3DraftItemsCountQuery> {}
|
|
4353
4395
|
|
|
4396
|
+
// PATCH /menu/v3/draft/items/bulk-update
|
|
4397
|
+
|
|
4398
|
+
export interface PatchMenuV3DraftItemsBulkUpdateBody {
|
|
4399
|
+
id_list: any[];
|
|
4400
|
+
parent?: DraftItemDTO;
|
|
4401
|
+
children?: DraftItemDTO[];
|
|
4402
|
+
posid_segment?: POSIDSegmentDTO;
|
|
4403
|
+
modifier_groups?: DraftItemToModifierGroupRelationshipDTO[];
|
|
4404
|
+
id?: string;
|
|
4405
|
+
parent_id?: string;
|
|
4406
|
+
name?: string;
|
|
4407
|
+
label?: string;
|
|
4408
|
+
description?: string;
|
|
4409
|
+
reporting?: ReportingMetadataDTO;
|
|
4410
|
+
price?: number;
|
|
4411
|
+
barcode?: string;
|
|
4412
|
+
calories?: number;
|
|
4413
|
+
is_active?: boolean;
|
|
4414
|
+
posid?: string;
|
|
4415
|
+
tax_tags?: any[];
|
|
4416
|
+
brand_id?: string;
|
|
4417
|
+
line_route?: string;
|
|
4418
|
+
brand?: DraftBrandDTO;
|
|
4419
|
+
categories?: DraftCategoryToItemRelationshipDTO[];
|
|
4420
|
+
changes?: ItemChangeDTO[];
|
|
4421
|
+
vendor_metadata?: VendorMetadataDTO[];
|
|
4422
|
+
attachments?: FileAttachmentsDTO;
|
|
4423
|
+
weight?: WeightDTO;
|
|
4424
|
+
permissions?: any;
|
|
4425
|
+
[index: string]: any;
|
|
4426
|
+
}
|
|
4427
|
+
|
|
4428
|
+
export interface PatchMenuV3DraftItemsBulkUpdateResponse {
|
|
4429
|
+
results: any[];
|
|
4430
|
+
[index: string]: any;
|
|
4431
|
+
}
|
|
4432
|
+
|
|
4433
|
+
export interface PatchMenuV3DraftItemsBulkUpdateRequest extends BaseRequest {
|
|
4434
|
+
body: PatchMenuV3DraftItemsBulkUpdateBody;
|
|
4435
|
+
}
|
|
4436
|
+
|
|
4354
4437
|
// POST /menu/v3/item/{id}/attachment/{name}
|
|
4355
4438
|
|
|
4356
4439
|
export interface PostMenuV3ItemAttachmentPath {
|
|
@@ -4371,6 +4454,22 @@ export interface PostMenuV3ItemAttachmentRequest
|
|
|
4371
4454
|
RequestQuery<PostMenuV3ItemAttachmentQuery>,
|
|
4372
4455
|
PostMenuV3ItemAttachmentPath {}
|
|
4373
4456
|
|
|
4457
|
+
// POST /menu/v3/items/import
|
|
4458
|
+
|
|
4459
|
+
export interface PostMenuV3ItemsImportQuery {
|
|
4460
|
+
"body.brand_id"?: string;
|
|
4461
|
+
"body.data"?: string;
|
|
4462
|
+
}
|
|
4463
|
+
|
|
4464
|
+
export interface PostMenuV3ItemsImportResponse {
|
|
4465
|
+
results: any[];
|
|
4466
|
+
[index: string]: any;
|
|
4467
|
+
}
|
|
4468
|
+
|
|
4469
|
+
export interface PostMenuV3ItemsImportRequest
|
|
4470
|
+
extends BaseRequest,
|
|
4471
|
+
RequestQuery<PostMenuV3ItemsImportQuery> {}
|
|
4472
|
+
|
|
4374
4473
|
// GET /menu/v3/item/{id}
|
|
4375
4474
|
|
|
4376
4475
|
export interface GetMenuV3ItemPath {
|
|
@@ -5210,12 +5309,12 @@ export interface PostMenuV3DraftModifierBody {
|
|
|
5210
5309
|
tax_tags?: any[];
|
|
5211
5310
|
is_active?: boolean;
|
|
5212
5311
|
posid?: string;
|
|
5312
|
+
reporting: ReportingMetadataDTO;
|
|
5213
5313
|
brand_id: string;
|
|
5214
5314
|
id?: any;
|
|
5215
5315
|
brand?: DraftBrandDTO;
|
|
5216
5316
|
changes?: ModifierChangeDTO[];
|
|
5217
5317
|
vendor_metadata?: VendorMetadataDTO[];
|
|
5218
|
-
reporting?: ReportingMetadataDTO;
|
|
5219
5318
|
weight?: WeightDTO;
|
|
5220
5319
|
permissions?: any;
|
|
5221
5320
|
[index: string]: any;
|
|
@@ -5270,11 +5369,11 @@ export interface PatchMenuV3DraftModifierBody {
|
|
|
5270
5369
|
tax_tags?: any[];
|
|
5271
5370
|
is_active?: boolean;
|
|
5272
5371
|
posid?: string;
|
|
5372
|
+
reporting?: ReportingMetadataDTO;
|
|
5273
5373
|
brand_id?: string;
|
|
5274
5374
|
brand?: DraftBrandDTO;
|
|
5275
5375
|
changes?: ModifierChangeDTO[];
|
|
5276
5376
|
vendor_metadata?: VendorMetadataDTO[];
|
|
5277
|
-
reporting?: ReportingMetadataDTO;
|
|
5278
5377
|
weight?: WeightDTO;
|
|
5279
5378
|
permissions?: any;
|
|
5280
5379
|
[index: string]: any;
|
|
@@ -5345,12 +5444,12 @@ export type PostMenuV3DraftModifiersBody = {
|
|
|
5345
5444
|
tax_tags?: any[];
|
|
5346
5445
|
is_active?: boolean;
|
|
5347
5446
|
posid?: string;
|
|
5447
|
+
reporting: ReportingMetadataDTO;
|
|
5348
5448
|
brand_id: string;
|
|
5349
5449
|
id?: any;
|
|
5350
5450
|
brand?: DraftBrandDTO;
|
|
5351
5451
|
changes?: ModifierChangeDTO[];
|
|
5352
5452
|
vendor_metadata?: VendorMetadataDTO[];
|
|
5353
|
-
reporting?: ReportingMetadataDTO;
|
|
5354
5453
|
weight?: WeightDTO;
|
|
5355
5454
|
permissions?: any;
|
|
5356
5455
|
[index: string]: any;
|
|
@@ -5384,6 +5483,43 @@ export interface GetMenuV3DraftModifiersCountRequest
|
|
|
5384
5483
|
extends BaseRequest,
|
|
5385
5484
|
RequestQuery<GetMenuV3DraftModifiersCountQuery> {}
|
|
5386
5485
|
|
|
5486
|
+
// PATCH /menu/v3/draft/modifiers/bulk-update
|
|
5487
|
+
|
|
5488
|
+
export interface PatchMenuV3DraftModifiersBulkUpdateBody {
|
|
5489
|
+
id_list: any[];
|
|
5490
|
+
parent?: DraftModifierDTO;
|
|
5491
|
+
children?: DraftModifierDTO[];
|
|
5492
|
+
posid_segment?: POSIDSegmentDTO;
|
|
5493
|
+
modifier_groups?: DraftModifierGroupToModifierRelationshipDTO[];
|
|
5494
|
+
id?: string;
|
|
5495
|
+
parent_id?: string;
|
|
5496
|
+
name?: string;
|
|
5497
|
+
label?: string;
|
|
5498
|
+
description?: string;
|
|
5499
|
+
price?: number;
|
|
5500
|
+
calories?: number;
|
|
5501
|
+
tax_tags?: any[];
|
|
5502
|
+
is_active?: boolean;
|
|
5503
|
+
posid?: string;
|
|
5504
|
+
reporting?: ReportingMetadataDTO;
|
|
5505
|
+
brand_id?: string;
|
|
5506
|
+
brand?: DraftBrandDTO;
|
|
5507
|
+
changes?: ModifierChangeDTO[];
|
|
5508
|
+
vendor_metadata?: VendorMetadataDTO[];
|
|
5509
|
+
weight?: WeightDTO;
|
|
5510
|
+
permissions?: any;
|
|
5511
|
+
[index: string]: any;
|
|
5512
|
+
}
|
|
5513
|
+
|
|
5514
|
+
export interface PatchMenuV3DraftModifiersBulkUpdateResponse {
|
|
5515
|
+
results: any[];
|
|
5516
|
+
[index: string]: any;
|
|
5517
|
+
}
|
|
5518
|
+
|
|
5519
|
+
export interface PatchMenuV3DraftModifiersBulkUpdateRequest extends BaseRequest {
|
|
5520
|
+
body: PatchMenuV3DraftModifiersBulkUpdateBody;
|
|
5521
|
+
}
|
|
5522
|
+
|
|
5387
5523
|
// GET /menu/v3/modifier/{id}
|
|
5388
5524
|
|
|
5389
5525
|
export interface GetMenuV3ModifierPath {
|
|
@@ -5488,7 +5624,26 @@ export interface GetMenuV3GlobalDiffQuery {
|
|
|
5488
5624
|
_query?: string;
|
|
5489
5625
|
}
|
|
5490
5626
|
|
|
5491
|
-
export
|
|
5627
|
+
export interface GetMenuV3GlobalDiffResponse {
|
|
5628
|
+
action: string;
|
|
5629
|
+
id?: string;
|
|
5630
|
+
created_at?: string;
|
|
5631
|
+
updated_at?: string;
|
|
5632
|
+
deleted_at?: string;
|
|
5633
|
+
entity_type?: string;
|
|
5634
|
+
local_id?: string;
|
|
5635
|
+
changes?: any;
|
|
5636
|
+
local_snapshot?: any;
|
|
5637
|
+
global_id?: string;
|
|
5638
|
+
global_snapshot?: any;
|
|
5639
|
+
brand_id?: string;
|
|
5640
|
+
version?: number;
|
|
5641
|
+
depends_on?: GlobalDiffDependencyDTO[];
|
|
5642
|
+
is_depended_by?: GlobalDiffDependencyDTO[];
|
|
5643
|
+
brand?: DraftBrandDTO;
|
|
5644
|
+
permissions?: any;
|
|
5645
|
+
[index: string]: any;
|
|
5646
|
+
}
|
|
5492
5647
|
|
|
5493
5648
|
export interface GetMenuV3GlobalDiffRequest
|
|
5494
5649
|
extends BaseRequest,
|
package/src/interface/payment.ts
CHANGED
package/src/interface/promo.ts
CHANGED
|
@@ -186,11 +186,7 @@ export interface UpdateVoucher {
|
|
|
186
186
|
export interface Voucher {
|
|
187
187
|
code?: string;
|
|
188
188
|
valid?: boolean;
|
|
189
|
-
discount?:
|
|
190
|
-
amount_off?: number;
|
|
191
|
-
percent_off?: number;
|
|
192
|
-
amount_limit?: number;
|
|
193
|
-
};
|
|
189
|
+
discount?: AppliedDiscount;
|
|
194
190
|
app?: string;
|
|
195
191
|
provider_data?: FPValidationData;
|
|
196
192
|
[index: string]: any;
|
|
@@ -202,11 +198,7 @@ export interface Redemption {
|
|
|
202
198
|
id?: string;
|
|
203
199
|
date?: string;
|
|
204
200
|
result?: boolean;
|
|
205
|
-
discount?:
|
|
206
|
-
amount_off?: number;
|
|
207
|
-
percent_off?: number;
|
|
208
|
-
amount_limit?: number;
|
|
209
|
-
};
|
|
201
|
+
discount?: AppliedDiscount;
|
|
210
202
|
type?: string;
|
|
211
203
|
app?: string;
|
|
212
204
|
[index: string]: any;
|
|
@@ -281,6 +273,13 @@ export interface FPValidationData {
|
|
|
281
273
|
[index: string]: any;
|
|
282
274
|
}
|
|
283
275
|
|
|
276
|
+
export interface AppliedDiscount {
|
|
277
|
+
type?: string;
|
|
278
|
+
amount_off?: number;
|
|
279
|
+
percent_off?: number;
|
|
280
|
+
amount_limit?: number;
|
|
281
|
+
}
|
|
282
|
+
|
|
284
283
|
export type VoucherCode = PromoValidateRequest;
|
|
285
284
|
|
|
286
285
|
// POST /promo - Create a new promotion
|
|
@@ -154,23 +154,27 @@ export interface CashlessTender {
|
|
|
154
154
|
total?: MonetaryValue;
|
|
155
155
|
tender?: string;
|
|
156
156
|
name?: string;
|
|
157
|
+
type?: PaymentType;
|
|
157
158
|
}
|
|
158
159
|
|
|
159
160
|
export interface Mealplan {
|
|
160
161
|
id?: string;
|
|
161
162
|
tender?: string;
|
|
162
163
|
total?: MonetaryValue;
|
|
164
|
+
type?: PaymentType;
|
|
163
165
|
}
|
|
164
166
|
|
|
165
167
|
export interface CreditCard {
|
|
166
168
|
card_type?: string;
|
|
167
169
|
last4?: string;
|
|
168
170
|
total?: MonetaryValue;
|
|
171
|
+
type?: PaymentType;
|
|
169
172
|
}
|
|
170
173
|
|
|
171
174
|
export interface DigitalWalletPay {
|
|
172
175
|
wallet_type?: string;
|
|
173
176
|
total?: MonetaryValue;
|
|
177
|
+
type?: PaymentType;
|
|
174
178
|
}
|
|
175
179
|
|
|
176
180
|
export interface MealSwipes {
|
|
@@ -181,11 +185,13 @@ export interface MealSwipes {
|
|
|
181
185
|
swipes?: MonetaryValue;
|
|
182
186
|
rate?: MonetaryValue;
|
|
183
187
|
total?: MonetaryValue;
|
|
188
|
+
type?: PaymentType;
|
|
184
189
|
}
|
|
185
190
|
|
|
186
191
|
export interface MealExchange {
|
|
187
192
|
id?: string;
|
|
188
193
|
tender?: string;
|
|
194
|
+
type?: PaymentType;
|
|
189
195
|
}
|
|
190
196
|
|
|
191
197
|
export interface Payment {
|
|
@@ -405,6 +411,8 @@ export type IntegerValue = number;
|
|
|
405
411
|
|
|
406
412
|
export type Quantity = IntegerValue;
|
|
407
413
|
|
|
414
|
+
export type PaymentType = string;
|
|
415
|
+
|
|
408
416
|
// POST /shoppingcart/ - Create a new ShoppingCart
|
|
409
417
|
|
|
410
418
|
export type PostShoppingcartCartBody = ShoppingCartRequest;
|
package/src/interface/user.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/* eslint-disable */
|
|
2
2
|
// THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
|
|
3
3
|
|
|
4
4
|
import { RequestQuery, BaseRequest } from "./util";
|
|
@@ -57,6 +57,12 @@ export interface User {
|
|
|
57
57
|
failed_attempts?: number;
|
|
58
58
|
consecutive_failed_attempts?: number;
|
|
59
59
|
};
|
|
60
|
+
cashless?: {
|
|
61
|
+
stipend?: CashlessLog;
|
|
62
|
+
voucher?: CashlessLog;
|
|
63
|
+
badge_pay?: CashlessLog;
|
|
64
|
+
coupon_voucher?: CashlessLog;
|
|
65
|
+
};
|
|
60
66
|
[index: string]: any;
|
|
61
67
|
};
|
|
62
68
|
is?: {
|
|
@@ -73,6 +79,11 @@ export interface User {
|
|
|
73
79
|
location_group?: string;
|
|
74
80
|
}
|
|
75
81
|
|
|
82
|
+
export interface CashlessLog {
|
|
83
|
+
added?: string;
|
|
84
|
+
deleted?: string;
|
|
85
|
+
}
|
|
86
|
+
|
|
76
87
|
export interface GuestUserCreate {
|
|
77
88
|
email?: string;
|
|
78
89
|
name?: {
|
|
@@ -784,7 +795,6 @@ export type PostUserEmbedurlBody = any;
|
|
|
784
795
|
export interface PostUserEmbedurlResponse {
|
|
785
796
|
// Embed url
|
|
786
797
|
embed_url?: string;
|
|
787
|
-
oauth?: string;
|
|
788
798
|
}
|
|
789
799
|
|
|
790
800
|
export interface PostUserEmbedurlRequest extends BaseRequest {
|
package/src/interface/vendor.ts
CHANGED