@compassdigital/sdk.typescript 4.473.0 → 4.475.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 +16 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +19 -0
- package/lib/index.js.map +1 -1
- package/lib/interface/menu.d.ts +68 -2
- package/lib/interface/menu.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +45 -0
- package/src/interface/menu.ts +83 -2
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -929,6 +929,9 @@ import {
|
|
|
929
929
|
PostMenuV4BrandCategoryAttachItemsResponse,
|
|
930
930
|
PostMenuV4BrandSwapCategoryItemsBody,
|
|
931
931
|
PostMenuV4BrandSwapCategoryItemsResponse,
|
|
932
|
+
GetMenuV4BrandCatalogBackupVersionsResponse,
|
|
933
|
+
PostMenuV4BrandCatalogBackupRestoreBody,
|
|
934
|
+
PostMenuV4BrandCatalogBackupRestoreResponse,
|
|
932
935
|
PostMenuV4BrandPublishResponse,
|
|
933
936
|
PostMenuV4BrandV3ToV4Query,
|
|
934
937
|
PostMenuV4BrandV3ToV4Response,
|
|
@@ -10764,6 +10767,48 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
10764
10767
|
);
|
|
10765
10768
|
}
|
|
10766
10769
|
|
|
10770
|
+
/**
|
|
10771
|
+
* GET /menu/v4/brand/{id}/catalog-backup/versions
|
|
10772
|
+
*
|
|
10773
|
+
* @param id
|
|
10774
|
+
* @param options - additional request options
|
|
10775
|
+
*/
|
|
10776
|
+
get_menu_v4_brand_catalog_backup_versions(
|
|
10777
|
+
id: string,
|
|
10778
|
+
options?: RequestOptions,
|
|
10779
|
+
): ResponsePromise<GetMenuV4BrandCatalogBackupVersionsResponse> {
|
|
10780
|
+
return this.request(
|
|
10781
|
+
'menu',
|
|
10782
|
+
'/menu/v4/brand/{id}/catalog-backup/versions',
|
|
10783
|
+
'GET',
|
|
10784
|
+
`/menu/v4/brand/${id}/catalog-backup/versions`,
|
|
10785
|
+
null,
|
|
10786
|
+
options,
|
|
10787
|
+
);
|
|
10788
|
+
}
|
|
10789
|
+
|
|
10790
|
+
/**
|
|
10791
|
+
* POST /menu/v4/brand/{id}/catalog-backup/restore
|
|
10792
|
+
*
|
|
10793
|
+
* @param id
|
|
10794
|
+
* @param body
|
|
10795
|
+
* @param options - additional request options
|
|
10796
|
+
*/
|
|
10797
|
+
post_menu_v4_brand_catalog_backup_restore(
|
|
10798
|
+
id: string,
|
|
10799
|
+
body: PostMenuV4BrandCatalogBackupRestoreBody,
|
|
10800
|
+
options?: RequestOptions,
|
|
10801
|
+
): ResponsePromise<PostMenuV4BrandCatalogBackupRestoreResponse> {
|
|
10802
|
+
return this.request(
|
|
10803
|
+
'menu',
|
|
10804
|
+
'/menu/v4/brand/{id}/catalog-backup/restore',
|
|
10805
|
+
'POST',
|
|
10806
|
+
`/menu/v4/brand/${id}/catalog-backup/restore`,
|
|
10807
|
+
body,
|
|
10808
|
+
options,
|
|
10809
|
+
);
|
|
10810
|
+
}
|
|
10811
|
+
|
|
10767
10812
|
/**
|
|
10768
10813
|
* POST /menu/v4/brand/{id}/publish
|
|
10769
10814
|
*
|
package/src/interface/menu.ts
CHANGED
|
@@ -2053,8 +2053,14 @@ export interface SwappedCategoryDTO {
|
|
|
2053
2053
|
sequence?: number;
|
|
2054
2054
|
}
|
|
2055
2055
|
|
|
2056
|
+
export interface CatalogBackupVersionDTO {
|
|
2057
|
+
version_id?: string;
|
|
2058
|
+
last_modified?: string;
|
|
2059
|
+
}
|
|
2060
|
+
|
|
2056
2061
|
export interface FetchMetaDTO {
|
|
2057
|
-
result_count
|
|
2062
|
+
result_count: number;
|
|
2063
|
+
[index: string]: any;
|
|
2058
2064
|
}
|
|
2059
2065
|
|
|
2060
2066
|
export interface FetchEntityWithMenusDTO {
|
|
@@ -2244,7 +2250,6 @@ export interface FetchStationMenuDTO {
|
|
|
2244
2250
|
export interface FetchStationCategoryDTO {
|
|
2245
2251
|
id: string;
|
|
2246
2252
|
name: string;
|
|
2247
|
-
items: FetchItemDTO[];
|
|
2248
2253
|
[index: string]: any;
|
|
2249
2254
|
}
|
|
2250
2255
|
|
|
@@ -8767,6 +8772,82 @@ export interface PostMenuV4BrandSwapCategoryItemsRequest
|
|
|
8767
8772
|
body: PostMenuV4BrandSwapCategoryItemsBody;
|
|
8768
8773
|
}
|
|
8769
8774
|
|
|
8775
|
+
// GET /menu/v4/brand/{id}/catalog-backup/versions
|
|
8776
|
+
|
|
8777
|
+
export interface GetMenuV4BrandCatalogBackupVersionsPath {
|
|
8778
|
+
id: string;
|
|
8779
|
+
}
|
|
8780
|
+
|
|
8781
|
+
export interface GetMenuV4BrandCatalogBackupVersionsResponse {
|
|
8782
|
+
versions?: CatalogBackupVersionDTO[];
|
|
8783
|
+
}
|
|
8784
|
+
|
|
8785
|
+
export interface GetMenuV4BrandCatalogBackupVersionsRequest
|
|
8786
|
+
extends BaseRequest,
|
|
8787
|
+
GetMenuV4BrandCatalogBackupVersionsPath {}
|
|
8788
|
+
|
|
8789
|
+
// POST /menu/v4/brand/{id}/catalog-backup/restore
|
|
8790
|
+
|
|
8791
|
+
export interface PostMenuV4BrandCatalogBackupRestorePath {
|
|
8792
|
+
id: string;
|
|
8793
|
+
}
|
|
8794
|
+
|
|
8795
|
+
export interface PostMenuV4BrandCatalogBackupRestoreBody {
|
|
8796
|
+
version_id: string;
|
|
8797
|
+
[index: string]: any;
|
|
8798
|
+
}
|
|
8799
|
+
|
|
8800
|
+
export interface PostMenuV4BrandCatalogBackupRestoreResponse {
|
|
8801
|
+
parent?: DraftBrandDTO;
|
|
8802
|
+
children?: DraftBrandDTO[];
|
|
8803
|
+
menus?: DraftMenuDTO[];
|
|
8804
|
+
categories?: DraftCategoryDTO[];
|
|
8805
|
+
category_to_item_relationships?: DraftCategoryToItemRelationshipDTO[];
|
|
8806
|
+
items?: DraftItemDTO[];
|
|
8807
|
+
item_to_modifier_group_relationships?: DraftItemToModifierGroupRelationshipDTO[];
|
|
8808
|
+
modifier_groups?: DraftModifierGroupDTO[];
|
|
8809
|
+
modifier_group_to_modifier_relationships?: DraftModifierGroupToModifierRelationshipDTO[];
|
|
8810
|
+
modifiers?: DraftModifierDTO[];
|
|
8811
|
+
statuses?: BrandStatusDTO[];
|
|
8812
|
+
audit_logs?: AuditDTO[];
|
|
8813
|
+
catalog_id?: number;
|
|
8814
|
+
published_catalog_id?: number;
|
|
8815
|
+
stocks?: StockDTO[];
|
|
8816
|
+
id: string;
|
|
8817
|
+
created_at?: string;
|
|
8818
|
+
updated_at?: string;
|
|
8819
|
+
deleted_at?: string;
|
|
8820
|
+
name: string;
|
|
8821
|
+
description?: string;
|
|
8822
|
+
is_active?: boolean;
|
|
8823
|
+
type?: 'global' | 'local';
|
|
8824
|
+
parent_id?: string;
|
|
8825
|
+
local_menu_group_id?: string;
|
|
8826
|
+
global_menu_group_id?: string;
|
|
8827
|
+
posid_segment?: string;
|
|
8828
|
+
auto_push_to_local?: boolean;
|
|
8829
|
+
frictionless_partner?: string;
|
|
8830
|
+
meta?: BrandMeta;
|
|
8831
|
+
supported_languages?: SupportedLanguages;
|
|
8832
|
+
archived_at?: string;
|
|
8833
|
+
applied_diff_snapshot?: Record<string, any>;
|
|
8834
|
+
version?: number;
|
|
8835
|
+
changes?: BrandChangeDTO[];
|
|
8836
|
+
local_menu_group?: LocalMenuGroupDTO;
|
|
8837
|
+
global_menu_group?: GlobalMenuGroupDTO;
|
|
8838
|
+
vendor_metadata?: VendorMetadataDTO[];
|
|
8839
|
+
menu_category_items?: MenuCategoryItemsDTO[];
|
|
8840
|
+
attachments?: FileAttachmentsDTO;
|
|
8841
|
+
permissions?: Record<string, any>;
|
|
8842
|
+
[index: string]: any;
|
|
8843
|
+
}
|
|
8844
|
+
|
|
8845
|
+
export interface PostMenuV4BrandCatalogBackupRestoreRequest
|
|
8846
|
+
extends BaseRequest,
|
|
8847
|
+
PostMenuV4BrandCatalogBackupRestorePath {
|
|
8848
|
+
body: PostMenuV4BrandCatalogBackupRestoreBody;
|
|
8849
|
+
}
|
|
8850
|
+
|
|
8770
8851
|
// POST /menu/v4/brand/{id}/publish
|
|
8771
8852
|
|
|
8772
8853
|
export interface PostMenuV4BrandPublishPath {
|