@compassdigital/sdk.typescript 4.683.0 → 4.686.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 +25 -2
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +26 -0
- package/lib/index.js.map +1 -1
- package/lib/interface/centricos.d.ts +19 -0
- package/lib/interface/centricos.d.ts.map +1 -1
- package/lib/interface/delivery.d.ts +30 -0
- package/lib/interface/delivery.d.ts.map +1 -0
- package/lib/interface/delivery.js +5 -0
- package/lib/interface/delivery.js.map +1 -0
- package/lib/interface/menu.d.ts +32 -0
- package/lib/interface/menu.d.ts.map +1 -1
- package/manifest.json +4 -0
- package/package.json +1 -1
- package/src/index.ts +64 -0
- package/src/interface/centricos.ts +26 -0
- package/src/interface/delivery.ts +53 -0
- package/src/interface/menu.ts +41 -0
package/manifest.json
CHANGED
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -948,6 +948,8 @@ import {
|
|
|
948
948
|
PatchMenuV4BrandMenuBody,
|
|
949
949
|
PatchMenuV4BrandMenuResponse,
|
|
950
950
|
DeleteMenuV4BrandMenuResponse,
|
|
951
|
+
PatchMenuV4BrandMenusReorderBody,
|
|
952
|
+
PatchMenuV4BrandMenusReorderResponse,
|
|
951
953
|
GetMenuV4BrandItemsQuery,
|
|
952
954
|
GetMenuV4BrandItemsResponse,
|
|
953
955
|
GetMenuV4BrandModifierGroupsQuery,
|
|
@@ -1378,6 +1380,8 @@ import {
|
|
|
1378
1380
|
GetCentricosDiscountResponse,
|
|
1379
1381
|
GetCentricosDiscountsQuery,
|
|
1380
1382
|
GetCentricosDiscountsResponse,
|
|
1383
|
+
GetCentricosDiscountsSitesQuery,
|
|
1384
|
+
GetCentricosDiscountsSitesResponse,
|
|
1381
1385
|
GetRecommendationsBySiteResponse,
|
|
1382
1386
|
GetDescriptionRecommendationsQuery,
|
|
1383
1387
|
GetDescriptionRecommendationsResponse,
|
|
@@ -1580,6 +1584,8 @@ import {
|
|
|
1580
1584
|
GetForecastingHealthResponse,
|
|
1581
1585
|
} from './interface/forecasting';
|
|
1582
1586
|
|
|
1587
|
+
import { GetDeliveryHealthResponse } from './interface/delivery';
|
|
1588
|
+
|
|
1583
1589
|
import { BaseServiceClient, RequestOptions, ResponsePromise } from './base';
|
|
1584
1590
|
export * from './base';
|
|
1585
1591
|
|
|
@@ -11132,6 +11138,28 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
11132
11138
|
);
|
|
11133
11139
|
}
|
|
11134
11140
|
|
|
11141
|
+
/**
|
|
11142
|
+
* PATCH /menu/v4/brand/{brand_id}/menus/reorder
|
|
11143
|
+
*
|
|
11144
|
+
* @param brand_id
|
|
11145
|
+
* @param body
|
|
11146
|
+
* @param options - additional request options
|
|
11147
|
+
*/
|
|
11148
|
+
patch_menu_v4_brand_menus_reorder(
|
|
11149
|
+
brand_id: string,
|
|
11150
|
+
body: PatchMenuV4BrandMenusReorderBody,
|
|
11151
|
+
options?: RequestOptions,
|
|
11152
|
+
): ResponsePromise<PatchMenuV4BrandMenusReorderResponse> {
|
|
11153
|
+
return this.request(
|
|
11154
|
+
'menu',
|
|
11155
|
+
'/menu/v4/brand/{brand_id}/menus/reorder',
|
|
11156
|
+
'PATCH',
|
|
11157
|
+
`/menu/v4/brand/${brand_id}/menus/reorder`,
|
|
11158
|
+
body,
|
|
11159
|
+
options,
|
|
11160
|
+
);
|
|
11161
|
+
}
|
|
11162
|
+
|
|
11135
11163
|
/**
|
|
11136
11164
|
* GET /menu/v4/brand/{id}/items
|
|
11137
11165
|
*
|
|
@@ -15953,6 +15981,26 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
15953
15981
|
);
|
|
15954
15982
|
}
|
|
15955
15983
|
|
|
15984
|
+
/**
|
|
15985
|
+
* GET /centricos/discounts/sites - Get sites (id and name only) for the discount site picker
|
|
15986
|
+
*
|
|
15987
|
+
* @param options - additional request options
|
|
15988
|
+
*/
|
|
15989
|
+
get_centricos_discounts_sites(
|
|
15990
|
+
options: {
|
|
15991
|
+
query: GetCentricosDiscountsSitesQuery;
|
|
15992
|
+
} & RequestOptions,
|
|
15993
|
+
): ResponsePromise<GetCentricosDiscountsSitesResponse> {
|
|
15994
|
+
return this.request(
|
|
15995
|
+
'centricos',
|
|
15996
|
+
'/centricos/discounts/sites',
|
|
15997
|
+
'GET',
|
|
15998
|
+
`/centricos/discounts/sites`,
|
|
15999
|
+
null,
|
|
16000
|
+
options,
|
|
16001
|
+
);
|
|
16002
|
+
}
|
|
16003
|
+
|
|
15956
16004
|
/**
|
|
15957
16005
|
* GET /centricos/recommendations/{siteId} - Get recommendations by site
|
|
15958
16006
|
*
|
|
@@ -17930,4 +17978,20 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
17930
17978
|
options,
|
|
17931
17979
|
);
|
|
17932
17980
|
}
|
|
17981
|
+
|
|
17982
|
+
/**
|
|
17983
|
+
* GET /delivery/health - Delivery service readiness check
|
|
17984
|
+
*
|
|
17985
|
+
* @param options - additional request options
|
|
17986
|
+
*/
|
|
17987
|
+
get_delivery_health(options?: RequestOptions): ResponsePromise<GetDeliveryHealthResponse> {
|
|
17988
|
+
return this.request(
|
|
17989
|
+
'delivery',
|
|
17990
|
+
'/delivery/health',
|
|
17991
|
+
'GET',
|
|
17992
|
+
`/delivery/health`,
|
|
17993
|
+
null,
|
|
17994
|
+
options,
|
|
17995
|
+
);
|
|
17996
|
+
}
|
|
17933
17997
|
}
|
|
@@ -816,6 +816,16 @@ export interface GetDiscountsResponseDTO {
|
|
|
816
816
|
meta: MetaResultsDTO;
|
|
817
817
|
}
|
|
818
818
|
|
|
819
|
+
export interface DiscountSiteDTO {
|
|
820
|
+
id: string;
|
|
821
|
+
name: string;
|
|
822
|
+
}
|
|
823
|
+
|
|
824
|
+
export interface GetDiscountSitesResponseDTO {
|
|
825
|
+
meta: PageMetadata;
|
|
826
|
+
results: DiscountSiteDTO[];
|
|
827
|
+
}
|
|
828
|
+
|
|
819
829
|
export interface VisualDataset {
|
|
820
830
|
// Label for the dataset
|
|
821
831
|
label: string;
|
|
@@ -1528,6 +1538,22 @@ export interface GetCentricosDiscountsQuery {
|
|
|
1528
1538
|
|
|
1529
1539
|
export type GetCentricosDiscountsResponse = GetDiscountsResponseDTO;
|
|
1530
1540
|
|
|
1541
|
+
// GET /centricos/discounts/sites - Get sites (id and name only) for the discount site picker
|
|
1542
|
+
|
|
1543
|
+
export interface GetCentricosDiscountsSitesQuery {
|
|
1544
|
+
id_multigroups?: string[];
|
|
1545
|
+
filter?: string;
|
|
1546
|
+
limit: number;
|
|
1547
|
+
page: number;
|
|
1548
|
+
sortOrder: string;
|
|
1549
|
+
sortBy?: string;
|
|
1550
|
+
sector_name?: string;
|
|
1551
|
+
// Site statuses. Use repeated query params. Allowed values: active, inactive, archived.
|
|
1552
|
+
status?: string[];
|
|
1553
|
+
}
|
|
1554
|
+
|
|
1555
|
+
export type GetCentricosDiscountsSitesResponse = GetDiscountSitesResponseDTO;
|
|
1556
|
+
|
|
1531
1557
|
// GET /centricos/recommendations/{siteId} - Get recommendations by site
|
|
1532
1558
|
|
|
1533
1559
|
export interface GetRecommendationsBySitePath {
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
|
|
3
|
+
|
|
4
|
+
import { RequestQuery, BaseRequest } from './util';
|
|
5
|
+
|
|
6
|
+
export interface HealthMetadataDto {
|
|
7
|
+
// Service name
|
|
8
|
+
service: string;
|
|
9
|
+
// AWS region
|
|
10
|
+
region?: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface HealthResponseDto {
|
|
14
|
+
// Health status
|
|
15
|
+
status: string;
|
|
16
|
+
// ISO timestamp of the health check
|
|
17
|
+
timestamp: string;
|
|
18
|
+
// Deployed git SHA or service version
|
|
19
|
+
version: string;
|
|
20
|
+
metadata: HealthMetadataDto;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export interface ErrorDisplayMessage {
|
|
24
|
+
// user message title
|
|
25
|
+
title: string;
|
|
26
|
+
// user message description
|
|
27
|
+
description: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export interface ErrorData {
|
|
31
|
+
// http status code
|
|
32
|
+
statusCode: number;
|
|
33
|
+
// http status text
|
|
34
|
+
statusText: string;
|
|
35
|
+
timestamp: string;
|
|
36
|
+
// user friendly error message
|
|
37
|
+
displayMessage: ErrorDisplayMessage;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export interface Error {
|
|
41
|
+
// business error code
|
|
42
|
+
code: number;
|
|
43
|
+
// business error description
|
|
44
|
+
message: string;
|
|
45
|
+
// additional error data
|
|
46
|
+
data: ErrorData;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
// GET /delivery/health - Delivery service readiness check
|
|
50
|
+
|
|
51
|
+
export type GetDeliveryHealthResponse = HealthResponseDto;
|
|
52
|
+
|
|
53
|
+
export interface GetDeliveryHealthRequest extends BaseRequest {}
|
package/src/interface/menu.ts
CHANGED
|
@@ -770,6 +770,7 @@ export interface DraftMenuDTO {
|
|
|
770
770
|
deleted_at?: string;
|
|
771
771
|
parent_id?: string;
|
|
772
772
|
name?: string;
|
|
773
|
+
sequence?: number;
|
|
773
774
|
brand_id?: string;
|
|
774
775
|
translation?: NameTranslation;
|
|
775
776
|
applied_diff_snapshot?: Record<string, any>;
|
|
@@ -1429,6 +1430,7 @@ export interface PublishedMenuDTO {
|
|
|
1429
1430
|
deleted_at?: string;
|
|
1430
1431
|
parent_id?: string;
|
|
1431
1432
|
name?: string;
|
|
1433
|
+
sequence?: number;
|
|
1432
1434
|
brand_id?: string;
|
|
1433
1435
|
translation?: NameTranslation;
|
|
1434
1436
|
version?: number;
|
|
@@ -2075,6 +2077,12 @@ export interface BrandStatusEntityDTO {
|
|
|
2075
2077
|
[index: string]: any;
|
|
2076
2078
|
}
|
|
2077
2079
|
|
|
2080
|
+
export interface ReorderMenuItemDTO {
|
|
2081
|
+
id: string;
|
|
2082
|
+
sequence: number;
|
|
2083
|
+
[index: string]: any;
|
|
2084
|
+
}
|
|
2085
|
+
|
|
2078
2086
|
export interface DraftModifierGroupEntityDTO {
|
|
2079
2087
|
parent?: DraftModifierGroupDTO;
|
|
2080
2088
|
children?: DraftModifierGroupDTO[];
|
|
@@ -4860,6 +4868,7 @@ export interface PostMenuV3DraftMenuBody {
|
|
|
4860
4868
|
price_level_id?: string;
|
|
4861
4869
|
parent_id?: string;
|
|
4862
4870
|
name: string;
|
|
4871
|
+
sequence?: number;
|
|
4863
4872
|
brand_id: string;
|
|
4864
4873
|
translation?: NameTranslation;
|
|
4865
4874
|
applied_diff_snapshot?: Record<string, any>;
|
|
@@ -4914,6 +4923,7 @@ export interface PatchMenuV3DraftMenuBody {
|
|
|
4914
4923
|
id?: string;
|
|
4915
4924
|
parent_id?: string;
|
|
4916
4925
|
name?: string;
|
|
4926
|
+
sequence?: number;
|
|
4917
4927
|
brand_id?: string;
|
|
4918
4928
|
translation?: NameTranslation;
|
|
4919
4929
|
applied_diff_snapshot?: Record<string, any>;
|
|
@@ -4990,6 +5000,7 @@ export type PostMenuV3DraftMenusBody = {
|
|
|
4990
5000
|
price_level_id?: string;
|
|
4991
5001
|
parent_id?: string;
|
|
4992
5002
|
name: string;
|
|
5003
|
+
sequence?: number;
|
|
4993
5004
|
brand_id: string;
|
|
4994
5005
|
translation?: NameTranslation;
|
|
4995
5006
|
applied_diff_snapshot?: Record<string, any>;
|
|
@@ -5127,6 +5138,7 @@ export interface PostMenuV3DraftMenuDuplicateResponse {
|
|
|
5127
5138
|
deleted_at?: string;
|
|
5128
5139
|
parent_id?: string;
|
|
5129
5140
|
name: string;
|
|
5141
|
+
sequence?: number;
|
|
5130
5142
|
brand_id: string;
|
|
5131
5143
|
translation?: NameTranslation;
|
|
5132
5144
|
applied_diff_snapshot?: Record<string, any>;
|
|
@@ -8512,6 +8524,7 @@ export interface PostMenuV4BrandMenuResponse {
|
|
|
8512
8524
|
deleted_at?: string;
|
|
8513
8525
|
parent_id?: string;
|
|
8514
8526
|
name: string;
|
|
8527
|
+
sequence?: number;
|
|
8515
8528
|
brand_id: string;
|
|
8516
8529
|
translation?: NameTranslation;
|
|
8517
8530
|
applied_diff_snapshot?: Record<string, any>;
|
|
@@ -8572,6 +8585,7 @@ export interface PatchMenuV4BrandMenuResponse {
|
|
|
8572
8585
|
deleted_at?: string;
|
|
8573
8586
|
parent_id?: string;
|
|
8574
8587
|
name: string;
|
|
8588
|
+
sequence?: number;
|
|
8575
8589
|
brand_id: string;
|
|
8576
8590
|
translation?: NameTranslation;
|
|
8577
8591
|
applied_diff_snapshot?: Record<string, any>;
|
|
@@ -8609,6 +8623,7 @@ export interface DeleteMenuV4BrandMenuResponse {
|
|
|
8609
8623
|
deleted_at?: string;
|
|
8610
8624
|
parent_id?: string;
|
|
8611
8625
|
name: string;
|
|
8626
|
+
sequence?: number;
|
|
8612
8627
|
brand_id: string;
|
|
8613
8628
|
translation?: NameTranslation;
|
|
8614
8629
|
applied_diff_snapshot?: Record<string, any>;
|
|
@@ -8624,6 +8639,28 @@ export interface DeleteMenuV4BrandMenuResponse {
|
|
|
8624
8639
|
|
|
8625
8640
|
export interface DeleteMenuV4BrandMenuRequest extends BaseRequest, DeleteMenuV4BrandMenuPath {}
|
|
8626
8641
|
|
|
8642
|
+
// PATCH /menu/v4/brand/{brand_id}/menus/reorder
|
|
8643
|
+
|
|
8644
|
+
export interface PatchMenuV4BrandMenusReorderPath {
|
|
8645
|
+
brand_id: string;
|
|
8646
|
+
}
|
|
8647
|
+
|
|
8648
|
+
export interface PatchMenuV4BrandMenusReorderBody {
|
|
8649
|
+
menus: ReorderMenuItemDTO[];
|
|
8650
|
+
[index: string]: any;
|
|
8651
|
+
}
|
|
8652
|
+
|
|
8653
|
+
export interface PatchMenuV4BrandMenusReorderResponse {
|
|
8654
|
+
status: string;
|
|
8655
|
+
[index: string]: any;
|
|
8656
|
+
}
|
|
8657
|
+
|
|
8658
|
+
export interface PatchMenuV4BrandMenusReorderRequest
|
|
8659
|
+
extends BaseRequest,
|
|
8660
|
+
PatchMenuV4BrandMenusReorderPath {
|
|
8661
|
+
body: PatchMenuV4BrandMenusReorderBody;
|
|
8662
|
+
}
|
|
8663
|
+
|
|
8627
8664
|
// GET /menu/v4/brand/{id}/items
|
|
8628
8665
|
|
|
8629
8666
|
export interface GetMenuV4BrandItemsPath {
|
|
@@ -9268,6 +9305,7 @@ export interface PostMenuV4BrandMenuDuplicateResponse {
|
|
|
9268
9305
|
deleted_at?: string;
|
|
9269
9306
|
parent_id?: string;
|
|
9270
9307
|
name: string;
|
|
9308
|
+
sequence?: number;
|
|
9271
9309
|
brand_id: string;
|
|
9272
9310
|
translation?: NameTranslation;
|
|
9273
9311
|
applied_diff_snapshot?: Record<string, any>;
|
|
@@ -11175,6 +11213,7 @@ export interface PostMenuV4ScheduleMenuResponse {
|
|
|
11175
11213
|
deleted_at?: string;
|
|
11176
11214
|
parent_id?: string;
|
|
11177
11215
|
name: string;
|
|
11216
|
+
sequence?: number;
|
|
11178
11217
|
brand_id: string;
|
|
11179
11218
|
translation?: NameTranslation;
|
|
11180
11219
|
applied_diff_snapshot?: Record<string, any>;
|
|
@@ -11213,6 +11252,7 @@ export interface PostMenuV4UnscheduleMenuResponse {
|
|
|
11213
11252
|
deleted_at?: string;
|
|
11214
11253
|
parent_id?: string;
|
|
11215
11254
|
name: string;
|
|
11255
|
+
sequence?: number;
|
|
11216
11256
|
brand_id: string;
|
|
11217
11257
|
translation?: NameTranslation;
|
|
11218
11258
|
applied_diff_snapshot?: Record<string, any>;
|
|
@@ -11253,6 +11293,7 @@ export interface GetMenuV4MenuResponse {
|
|
|
11253
11293
|
deleted_at?: string;
|
|
11254
11294
|
parent_id?: string;
|
|
11255
11295
|
name: string;
|
|
11296
|
+
sequence?: number;
|
|
11256
11297
|
brand_id?: string;
|
|
11257
11298
|
translation?: NameTranslation;
|
|
11258
11299
|
applied_diff_snapshot?: Record<string, any>;
|