@compassdigital/sdk.typescript 4.633.0 → 4.635.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 +24 -2
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +28 -0
- package/lib/index.js.map +1 -1
- package/lib/interface/centricos.d.ts +10 -0
- package/lib/interface/centricos.d.ts.map +1 -1
- package/lib/interface/menu.d.ts +29 -0
- package/lib/interface/menu.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +67 -0
- package/src/interface/centricos.ts +20 -0
- package/src/interface/menu.ts +43 -0
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -963,6 +963,9 @@ import {
|
|
|
963
963
|
PostMenuV4BrandCatalogBackupRestoreResponse,
|
|
964
964
|
PostMenuV4BrandPublishResponse,
|
|
965
965
|
PostMenuV4BrandIntegrationSyncResponse,
|
|
966
|
+
PostMenuV4BrandSyncMenuworksResponse,
|
|
967
|
+
PostMenuV4BrandImportMenuworksCycleBody,
|
|
968
|
+
PostMenuV4BrandImportMenuworksCycleResponse,
|
|
966
969
|
PostMenuV4BrandV3ToV4Query,
|
|
967
970
|
PostMenuV4BrandV3ToV4Response,
|
|
968
971
|
PostMenuV4BrandCategoryDuplicateBody,
|
|
@@ -1366,6 +1369,8 @@ import {
|
|
|
1366
1369
|
GetRecommendationsBySiteResponse,
|
|
1367
1370
|
GetDescriptionRecommendationsQuery,
|
|
1368
1371
|
GetDescriptionRecommendationsResponse,
|
|
1372
|
+
UpsertDescriptionRecommendationBody,
|
|
1373
|
+
UpsertDescriptionRecommendationResponse,
|
|
1369
1374
|
PostCentricosBusinessUnitValidateVertexResponse,
|
|
1370
1375
|
DeleteCentricosBusinessUnitResponse,
|
|
1371
1376
|
GetCentricosMenuGlobalMenuGroupsQuery,
|
|
@@ -11339,6 +11344,48 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
11339
11344
|
);
|
|
11340
11345
|
}
|
|
11341
11346
|
|
|
11347
|
+
/**
|
|
11348
|
+
* POST /menu/v4/brand/{id}/sync-menuworks
|
|
11349
|
+
*
|
|
11350
|
+
* @param id
|
|
11351
|
+
* @param options - additional request options
|
|
11352
|
+
*/
|
|
11353
|
+
post_menu_v4_brand_sync_menuworks(
|
|
11354
|
+
id: string,
|
|
11355
|
+
options?: RequestOptions,
|
|
11356
|
+
): ResponsePromise<PostMenuV4BrandSyncMenuworksResponse> {
|
|
11357
|
+
return this.request(
|
|
11358
|
+
'menu',
|
|
11359
|
+
'/menu/v4/brand/{id}/sync-menuworks',
|
|
11360
|
+
'POST',
|
|
11361
|
+
`/menu/v4/brand/${id}/sync-menuworks`,
|
|
11362
|
+
null,
|
|
11363
|
+
options,
|
|
11364
|
+
);
|
|
11365
|
+
}
|
|
11366
|
+
|
|
11367
|
+
/**
|
|
11368
|
+
* POST /menu/v4/brand/{id}/import-menuworks-cycle
|
|
11369
|
+
*
|
|
11370
|
+
* @param id
|
|
11371
|
+
* @param body
|
|
11372
|
+
* @param options - additional request options
|
|
11373
|
+
*/
|
|
11374
|
+
post_menu_v4_brand_import_menuworks_cycle(
|
|
11375
|
+
id: string,
|
|
11376
|
+
body: PostMenuV4BrandImportMenuworksCycleBody,
|
|
11377
|
+
options?: RequestOptions,
|
|
11378
|
+
): ResponsePromise<PostMenuV4BrandImportMenuworksCycleResponse> {
|
|
11379
|
+
return this.request(
|
|
11380
|
+
'menu',
|
|
11381
|
+
'/menu/v4/brand/{id}/import-menuworks-cycle',
|
|
11382
|
+
'POST',
|
|
11383
|
+
`/menu/v4/brand/${id}/import-menuworks-cycle`,
|
|
11384
|
+
body,
|
|
11385
|
+
options,
|
|
11386
|
+
);
|
|
11387
|
+
}
|
|
11388
|
+
|
|
11342
11389
|
/**
|
|
11343
11390
|
* POST /menu/v4/brand/{id}/v3-to-v4
|
|
11344
11391
|
*
|
|
@@ -15796,6 +15843,26 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
15796
15843
|
);
|
|
15797
15844
|
}
|
|
15798
15845
|
|
|
15846
|
+
/**
|
|
15847
|
+
* POST /centricos/recommendations/descriptions/upsert - Upsert an item description-recommendation status in Centric Insights
|
|
15848
|
+
*
|
|
15849
|
+
* @param body
|
|
15850
|
+
* @param options - additional request options
|
|
15851
|
+
*/
|
|
15852
|
+
upsert_description_recommendation(
|
|
15853
|
+
body: UpsertDescriptionRecommendationBody,
|
|
15854
|
+
options?: RequestOptions,
|
|
15855
|
+
): ResponsePromise<UpsertDescriptionRecommendationResponse> {
|
|
15856
|
+
return this.request(
|
|
15857
|
+
'centricos',
|
|
15858
|
+
'/centricos/recommendations/descriptions/upsert',
|
|
15859
|
+
'POST',
|
|
15860
|
+
`/centricos/recommendations/descriptions/upsert`,
|
|
15861
|
+
body,
|
|
15862
|
+
options,
|
|
15863
|
+
);
|
|
15864
|
+
}
|
|
15865
|
+
|
|
15799
15866
|
/**
|
|
15800
15867
|
* POST /centricos/business-unit/{bu_id}/validate-vertex - Validate vertex for business unit
|
|
15801
15868
|
*
|
|
@@ -846,6 +846,18 @@ export interface GetDescriptionRecommendationsResponseDto {
|
|
|
846
846
|
generated_description: string;
|
|
847
847
|
}
|
|
848
848
|
|
|
849
|
+
export interface UpsertDescriptionRecommendationBodyDto {
|
|
850
|
+
// Item ID whose recommendation status is being set.
|
|
851
|
+
item_id: string;
|
|
852
|
+
// When true, the item is excluded from future /list/descriptions responses.
|
|
853
|
+
status: boolean;
|
|
854
|
+
}
|
|
855
|
+
|
|
856
|
+
export interface UpsertDescriptionRecommendationResponseDto {
|
|
857
|
+
// Result message from the upstream upsert.
|
|
858
|
+
message: string;
|
|
859
|
+
}
|
|
860
|
+
|
|
849
861
|
export interface ValidateVertexResponse {
|
|
850
862
|
// Whether the vertex validation was successful
|
|
851
863
|
valid: boolean;
|
|
@@ -1147,6 +1159,8 @@ export interface RystEmbedConfigResponse {
|
|
|
1147
1159
|
accessToken: string;
|
|
1148
1160
|
workspaceId: string;
|
|
1149
1161
|
templateId: string;
|
|
1162
|
+
// Omniplatform realm ID for the Ryst iframe context
|
|
1163
|
+
realmId: string;
|
|
1150
1164
|
promoId?: string;
|
|
1151
1165
|
}
|
|
1152
1166
|
|
|
@@ -1503,6 +1517,12 @@ export interface GetDescriptionRecommendationsQuery {
|
|
|
1503
1517
|
|
|
1504
1518
|
export type GetDescriptionRecommendationsResponse = GetDescriptionRecommendationsResponseDto[];
|
|
1505
1519
|
|
|
1520
|
+
// POST /centricos/recommendations/descriptions/upsert - Upsert an item description-recommendation status in Centric Insights
|
|
1521
|
+
|
|
1522
|
+
export type UpsertDescriptionRecommendationBody = UpsertDescriptionRecommendationBodyDto;
|
|
1523
|
+
|
|
1524
|
+
export type UpsertDescriptionRecommendationResponse = UpsertDescriptionRecommendationResponseDto;
|
|
1525
|
+
|
|
1506
1526
|
// POST /centricos/business-unit/{bu_id}/validate-vertex - Validate vertex for business unit
|
|
1507
1527
|
|
|
1508
1528
|
export interface PostCentricosBusinessUnitValidateVertexPath {
|
package/src/interface/menu.ts
CHANGED
|
@@ -9095,6 +9095,49 @@ export interface PostMenuV4BrandIntegrationSyncRequest
|
|
|
9095
9095
|
extends BaseRequest,
|
|
9096
9096
|
PostMenuV4BrandIntegrationSyncPath {}
|
|
9097
9097
|
|
|
9098
|
+
// POST /menu/v4/brand/{id}/sync-menuworks
|
|
9099
|
+
|
|
9100
|
+
export interface PostMenuV4BrandSyncMenuworksPath {
|
|
9101
|
+
id: string;
|
|
9102
|
+
}
|
|
9103
|
+
|
|
9104
|
+
export interface PostMenuV4BrandSyncMenuworksResponse {
|
|
9105
|
+
process_id: string;
|
|
9106
|
+
status: string;
|
|
9107
|
+
[index: string]: any;
|
|
9108
|
+
}
|
|
9109
|
+
|
|
9110
|
+
export interface PostMenuV4BrandSyncMenuworksRequest
|
|
9111
|
+
extends BaseRequest,
|
|
9112
|
+
PostMenuV4BrandSyncMenuworksPath {}
|
|
9113
|
+
|
|
9114
|
+
// POST /menu/v4/brand/{id}/import-menuworks-cycle
|
|
9115
|
+
|
|
9116
|
+
export interface PostMenuV4BrandImportMenuworksCyclePath {
|
|
9117
|
+
id: string;
|
|
9118
|
+
}
|
|
9119
|
+
|
|
9120
|
+
export interface PostMenuV4BrandImportMenuworksCycleBody {
|
|
9121
|
+
menuworks_unit_id: string;
|
|
9122
|
+
menu_collection_id: number;
|
|
9123
|
+
menu_collection_start_date?: string;
|
|
9124
|
+
import_selections?: ImportMenuWorksSelectionDTO[];
|
|
9125
|
+
[index: string]: any;
|
|
9126
|
+
}
|
|
9127
|
+
|
|
9128
|
+
export interface PostMenuV4BrandImportMenuworksCycleResponse {
|
|
9129
|
+
process_id: string;
|
|
9130
|
+
status: string;
|
|
9131
|
+
message?: string;
|
|
9132
|
+
[index: string]: any;
|
|
9133
|
+
}
|
|
9134
|
+
|
|
9135
|
+
export interface PostMenuV4BrandImportMenuworksCycleRequest
|
|
9136
|
+
extends BaseRequest,
|
|
9137
|
+
PostMenuV4BrandImportMenuworksCyclePath {
|
|
9138
|
+
body: PostMenuV4BrandImportMenuworksCycleBody;
|
|
9139
|
+
}
|
|
9140
|
+
|
|
9098
9141
|
// POST /menu/v4/brand/{id}/v3-to-v4
|
|
9099
9142
|
|
|
9100
9143
|
export interface PostMenuV4BrandV3ToV4Path {
|