@compassdigital/sdk.typescript 4.551.0 → 4.553.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 +8 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +9 -0
- package/lib/index.js.map +1 -1
- package/lib/interface/centricos.d.ts +14 -9
- package/lib/interface/centricos.d.ts.map +1 -1
- package/lib/interface/menu.d.ts +18 -8
- package/lib/interface/menu.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +22 -0
- package/src/interface/centricos.ts +21 -14
- package/src/interface/menu.ts +24 -9
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -542,6 +542,8 @@ import {
|
|
|
542
542
|
GetMenuV3LocalMenuGroupsCountQuery,
|
|
543
543
|
GetMenuV3LocalMenuGroupsCountResponse,
|
|
544
544
|
PostMenuV3LocalMenuGroupRecoverResponse,
|
|
545
|
+
PostMenuV3LocalMenuGroupFetchBySitesBody,
|
|
546
|
+
PostMenuV3LocalMenuGroupFetchBySitesResponse,
|
|
545
547
|
GetMenuV3DraftLocalMenuGroupBrandsQuery,
|
|
546
548
|
GetMenuV3DraftLocalMenuGroupBrandsResponse,
|
|
547
549
|
GetMenuV3DraftLocalMenuGroupItemsQuery,
|
|
@@ -6485,6 +6487,26 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
6485
6487
|
);
|
|
6486
6488
|
}
|
|
6487
6489
|
|
|
6490
|
+
/**
|
|
6491
|
+
* POST /menu/v3/local-menu-group/fetch-by-sites
|
|
6492
|
+
*
|
|
6493
|
+
* @param body
|
|
6494
|
+
* @param options - additional request options
|
|
6495
|
+
*/
|
|
6496
|
+
post_menu_v3_local_menu_group_fetch_by_sites(
|
|
6497
|
+
body: PostMenuV3LocalMenuGroupFetchBySitesBody,
|
|
6498
|
+
options?: RequestOptions,
|
|
6499
|
+
): ResponsePromise<PostMenuV3LocalMenuGroupFetchBySitesResponse> {
|
|
6500
|
+
return this.request(
|
|
6501
|
+
'menu',
|
|
6502
|
+
'/menu/v3/local-menu-group/fetch-by-sites',
|
|
6503
|
+
'POST',
|
|
6504
|
+
`/menu/v3/local-menu-group/fetch-by-sites`,
|
|
6505
|
+
body,
|
|
6506
|
+
options,
|
|
6507
|
+
);
|
|
6508
|
+
}
|
|
6509
|
+
|
|
6488
6510
|
/**
|
|
6489
6511
|
* GET /menu/v3/draft/local-menu-group/{id}/brands
|
|
6490
6512
|
*
|
|
@@ -150,6 +150,7 @@ export interface Site {
|
|
|
150
150
|
| 'grubhub'
|
|
151
151
|
| 'ryst'
|
|
152
152
|
)[];
|
|
153
|
+
status?: 'active' | 'inactive' | 'archived';
|
|
153
154
|
}
|
|
154
155
|
|
|
155
156
|
export interface GetSitesResponse {
|
|
@@ -237,6 +238,7 @@ export interface CreateSiteResponse {
|
|
|
237
238
|
id?: string;
|
|
238
239
|
name?: string;
|
|
239
240
|
locations?: CentricLocation[];
|
|
241
|
+
status?: 'active' | 'inactive' | 'archived';
|
|
240
242
|
// Localized labels
|
|
241
243
|
label?: LabelDto;
|
|
242
244
|
// Site address
|
|
@@ -253,6 +255,7 @@ export interface CentricGroup {
|
|
|
253
255
|
id?: string;
|
|
254
256
|
name?: string;
|
|
255
257
|
locations?: CentricLocation[];
|
|
258
|
+
status?: 'active' | 'inactive' | 'archived';
|
|
256
259
|
}
|
|
257
260
|
|
|
258
261
|
export interface PostSitesBatchResponse {
|
|
@@ -263,6 +266,7 @@ export interface GetSiteResponse {
|
|
|
263
266
|
id?: string;
|
|
264
267
|
name?: string;
|
|
265
268
|
locations?: CentricLocation[];
|
|
269
|
+
status?: 'active' | 'inactive' | 'archived';
|
|
266
270
|
}
|
|
267
271
|
|
|
268
272
|
export interface ReviewOrderItem {
|
|
@@ -446,46 +450,47 @@ export interface CentricDiscountMenu {
|
|
|
446
450
|
categories: CentricDiscountMenuCategory[];
|
|
447
451
|
}
|
|
448
452
|
|
|
449
|
-
export interface
|
|
453
|
+
export interface CentricDiscountMenuBrand {
|
|
450
454
|
// The id of the entity
|
|
451
455
|
id: string;
|
|
452
456
|
// The name of the entity
|
|
453
457
|
name: string;
|
|
454
|
-
menus
|
|
458
|
+
menus: CentricDiscountMenu[];
|
|
455
459
|
}
|
|
456
460
|
|
|
457
|
-
export interface
|
|
458
|
-
//
|
|
461
|
+
export interface CentricDiscountGlobalMenuGroup {
|
|
462
|
+
// Global menu group id
|
|
459
463
|
id: string;
|
|
460
|
-
//
|
|
464
|
+
// Global menu group name
|
|
461
465
|
name: string;
|
|
462
|
-
|
|
466
|
+
// Menu brands scoped under this global menu group
|
|
467
|
+
menuBrands: CentricDiscountMenuBrand[];
|
|
463
468
|
}
|
|
464
469
|
|
|
465
|
-
export interface
|
|
470
|
+
export interface CentricDiscountItemConfigStation {
|
|
466
471
|
// The id of the entity
|
|
467
472
|
id: string;
|
|
468
473
|
// The name of the entity
|
|
469
474
|
name: string;
|
|
470
|
-
menus
|
|
475
|
+
menus?: CentricDiscountMenu[];
|
|
471
476
|
}
|
|
472
477
|
|
|
473
|
-
export interface
|
|
474
|
-
//
|
|
478
|
+
export interface CentricDiscountItemConfigSite {
|
|
479
|
+
// The id of the entity
|
|
475
480
|
id: string;
|
|
476
|
-
//
|
|
481
|
+
// The name of the entity
|
|
477
482
|
name: string;
|
|
478
|
-
|
|
483
|
+
stations: CentricDiscountItemConfigStation[];
|
|
479
484
|
}
|
|
480
485
|
|
|
481
486
|
export interface CentricDiscountItemLevelConfigDetails {
|
|
482
487
|
// minimum number of items to satisfy the bundle
|
|
483
488
|
minimum: number;
|
|
489
|
+
// Global menu groups for bundle / single-item scope; menu brands are nested per group
|
|
490
|
+
globalMenuGroups?: CentricDiscountGlobalMenuGroup[];
|
|
484
491
|
bundleGroupName?: string;
|
|
485
492
|
bundleGroupId?: string;
|
|
486
493
|
sites?: CentricDiscountItemConfigSite[];
|
|
487
|
-
// Global menu groups for bundle / single-item scope; menu brands are nested per group (replaces top-level menuBrands and item-level globalMenuGroupId/globalMenuGroupName)
|
|
488
|
-
globalMenuGroups?: CentricDiscountGlobalMenuGroup[];
|
|
489
494
|
}
|
|
490
495
|
|
|
491
496
|
export interface CentricDiscountItemLevelConfig {
|
|
@@ -1268,6 +1273,8 @@ export interface GetCentricosSitesQuery {
|
|
|
1268
1273
|
sortOrder: 'ASC' | 'DESC';
|
|
1269
1274
|
sortBy?: string;
|
|
1270
1275
|
sector_name?: string;
|
|
1276
|
+
// Site statuses. Use repeated query params. Allowed values: active, inactive, archived.
|
|
1277
|
+
status?: string[];
|
|
1271
1278
|
}
|
|
1272
1279
|
|
|
1273
1280
|
export type GetCentricosSitesResponse = GetSitesResponse;
|
package/src/interface/menu.ts
CHANGED
|
@@ -730,6 +730,15 @@ export interface LocalMenuGroupDTO {
|
|
|
730
730
|
[index: string]: any;
|
|
731
731
|
}
|
|
732
732
|
|
|
733
|
+
export interface SiteGroupWithMenuGroupNameResponseDTO {
|
|
734
|
+
site_id: string;
|
|
735
|
+
local_menu_group_id: string;
|
|
736
|
+
local_menu_group_name: string;
|
|
737
|
+
created_at?: string;
|
|
738
|
+
updated_at?: string;
|
|
739
|
+
[index: string]: any;
|
|
740
|
+
}
|
|
741
|
+
|
|
733
742
|
export interface BrandChangeDTO {
|
|
734
743
|
id?: string;
|
|
735
744
|
created_at?: string;
|
|
@@ -1279,15 +1288,6 @@ export interface AuditDTO {
|
|
|
1279
1288
|
[index: string]: any;
|
|
1280
1289
|
}
|
|
1281
1290
|
|
|
1282
|
-
export interface SiteGroupWithMenuGroupNameResponseDTO {
|
|
1283
|
-
site_id: string;
|
|
1284
|
-
local_menu_group_id: string;
|
|
1285
|
-
local_menu_group_name: string;
|
|
1286
|
-
created_at?: string;
|
|
1287
|
-
updated_at?: string;
|
|
1288
|
-
[index: string]: any;
|
|
1289
|
-
}
|
|
1290
|
-
|
|
1291
1291
|
export interface SiteGroupDTO {
|
|
1292
1292
|
site_id: string;
|
|
1293
1293
|
local_menu_group_id: string;
|
|
@@ -2995,6 +2995,21 @@ export interface PostMenuV3LocalMenuGroupRecoverRequest
|
|
|
2995
2995
|
extends BaseRequest,
|
|
2996
2996
|
PostMenuV3LocalMenuGroupRecoverPath {}
|
|
2997
2997
|
|
|
2998
|
+
// POST /menu/v3/local-menu-group/fetch-by-sites
|
|
2999
|
+
|
|
3000
|
+
export interface PostMenuV3LocalMenuGroupFetchBySitesBody {
|
|
3001
|
+
site_ids: string[];
|
|
3002
|
+
[index: string]: any;
|
|
3003
|
+
}
|
|
3004
|
+
|
|
3005
|
+
export interface PostMenuV3LocalMenuGroupFetchBySitesResponse {
|
|
3006
|
+
results?: SiteGroupWithMenuGroupNameResponseDTO[];
|
|
3007
|
+
}
|
|
3008
|
+
|
|
3009
|
+
export interface PostMenuV3LocalMenuGroupFetchBySitesRequest extends BaseRequest {
|
|
3010
|
+
body: PostMenuV3LocalMenuGroupFetchBySitesBody;
|
|
3011
|
+
}
|
|
3012
|
+
|
|
2998
3013
|
// GET /menu/v3/draft/local-menu-group/{id}/brands
|
|
2999
3014
|
|
|
3000
3015
|
export interface GetMenuV3DraftLocalMenuGroupBrandsPath {
|