@compassdigital/sdk.typescript 4.564.0 → 4.566.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/discount.d.ts +8 -8
- package/lib/interface/discount.d.ts.map +1 -1
- package/lib/interface/menu.d.ts +8 -0
- package/lib/interface/menu.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +21 -0
- package/src/interface/discount.ts +8 -8
- package/src/interface/menu.ts +14 -0
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -952,6 +952,7 @@ import {
|
|
|
952
952
|
PostMenuV4BrandCatalogBackupRestoreBody,
|
|
953
953
|
PostMenuV4BrandCatalogBackupRestoreResponse,
|
|
954
954
|
PostMenuV4BrandPublishResponse,
|
|
955
|
+
PostMenuV4BrandIntegrationSyncResponse,
|
|
955
956
|
PostMenuV4BrandV3ToV4Query,
|
|
956
957
|
PostMenuV4BrandV3ToV4Response,
|
|
957
958
|
PostMenuV4BrandCategoryDuplicateBody,
|
|
@@ -11066,6 +11067,26 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
11066
11067
|
);
|
|
11067
11068
|
}
|
|
11068
11069
|
|
|
11070
|
+
/**
|
|
11071
|
+
* POST /menu/v4/brand/{id}/integration-sync
|
|
11072
|
+
*
|
|
11073
|
+
* @param id
|
|
11074
|
+
* @param options - additional request options
|
|
11075
|
+
*/
|
|
11076
|
+
post_menu_v4_brand_integration_sync(
|
|
11077
|
+
id: string,
|
|
11078
|
+
options?: RequestOptions,
|
|
11079
|
+
): ResponsePromise<PostMenuV4BrandIntegrationSyncResponse> {
|
|
11080
|
+
return this.request(
|
|
11081
|
+
'menu',
|
|
11082
|
+
'/menu/v4/brand/{id}/integration-sync',
|
|
11083
|
+
'POST',
|
|
11084
|
+
`/menu/v4/brand/${id}/integration-sync`,
|
|
11085
|
+
null,
|
|
11086
|
+
options,
|
|
11087
|
+
);
|
|
11088
|
+
}
|
|
11089
|
+
|
|
11069
11090
|
/**
|
|
11070
11091
|
* POST /menu/v4/brand/{id}/v3-to-v4
|
|
11071
11092
|
*
|
|
@@ -259,7 +259,6 @@ export interface DiscountTaxonomy {
|
|
|
259
259
|
export interface PostDiscountRequestDTO {
|
|
260
260
|
// What the discount type is
|
|
261
261
|
type: 'Total Order' | 'Single Items' | 'Bundle';
|
|
262
|
-
createdBy: string;
|
|
263
262
|
name: string;
|
|
264
263
|
is?: DiscountIs;
|
|
265
264
|
meta?: DiscountMeta;
|
|
@@ -268,6 +267,7 @@ export interface PostDiscountRequestDTO {
|
|
|
268
267
|
itemLevelConfig?: ItemLevelConfig;
|
|
269
268
|
taxonomy?: DiscountTaxonomy;
|
|
270
269
|
status?: DiscountStatus;
|
|
270
|
+
createdBy: string;
|
|
271
271
|
}
|
|
272
272
|
|
|
273
273
|
export interface PostDiscountResponseDTO {
|
|
@@ -396,15 +396,15 @@ export interface PostRewardsResponseDTO {
|
|
|
396
396
|
export interface PutDiscountRequestDTO {
|
|
397
397
|
// What the discount type is
|
|
398
398
|
type: 'Total Order' | 'Single Items' | 'Bundle';
|
|
399
|
-
updatedBy: string;
|
|
400
|
-
taxonomy?: DiscountTaxonomy;
|
|
401
|
-
status?: DiscountStatus;
|
|
402
399
|
name: string;
|
|
403
400
|
is?: DiscountIs;
|
|
404
401
|
meta?: DiscountMeta;
|
|
405
402
|
schedule?: DiscountSchedule;
|
|
406
403
|
channelConfig: DiscountChannelConfig;
|
|
407
404
|
itemLevelConfig?: ItemLevelConfig;
|
|
405
|
+
updatedBy: string;
|
|
406
|
+
taxonomy?: DiscountTaxonomy;
|
|
407
|
+
status?: DiscountStatus;
|
|
408
408
|
}
|
|
409
409
|
|
|
410
410
|
export interface PutDiscountResponseDTO {
|
|
@@ -441,15 +441,15 @@ export interface PutDiscountPublishResponseDTO {
|
|
|
441
441
|
updatedBy: string;
|
|
442
442
|
// What the discount type is
|
|
443
443
|
type: 'Total Order' | 'Single Items' | 'Bundle';
|
|
444
|
-
is: DiscountIs;
|
|
445
|
-
meta: DiscountMeta;
|
|
446
|
-
schedule: DiscountSchedule;
|
|
447
|
-
channelConfig: DiscountChannelConfig;
|
|
448
444
|
createdAt: string;
|
|
449
445
|
updatedAt: string;
|
|
450
446
|
name: string;
|
|
451
447
|
status: DiscountStatus;
|
|
452
448
|
itemLevelConfig?: ItemLevelConfig;
|
|
449
|
+
is: DiscountIs;
|
|
450
|
+
meta: DiscountMeta;
|
|
451
|
+
schedule: DiscountSchedule;
|
|
452
|
+
channelConfig: DiscountChannelConfig;
|
|
453
453
|
}
|
|
454
454
|
|
|
455
455
|
// DELETE /discount/{id} - Delete a discount
|
package/src/interface/menu.ts
CHANGED
|
@@ -8946,6 +8946,20 @@ export interface PostMenuV4BrandPublishResponse {
|
|
|
8946
8946
|
|
|
8947
8947
|
export interface PostMenuV4BrandPublishRequest extends BaseRequest, PostMenuV4BrandPublishPath {}
|
|
8948
8948
|
|
|
8949
|
+
// POST /menu/v4/brand/{id}/integration-sync
|
|
8950
|
+
|
|
8951
|
+
export interface PostMenuV4BrandIntegrationSyncPath {
|
|
8952
|
+
id: string;
|
|
8953
|
+
}
|
|
8954
|
+
|
|
8955
|
+
export interface PostMenuV4BrandIntegrationSyncResponse {
|
|
8956
|
+
status?: string;
|
|
8957
|
+
}
|
|
8958
|
+
|
|
8959
|
+
export interface PostMenuV4BrandIntegrationSyncRequest
|
|
8960
|
+
extends BaseRequest,
|
|
8961
|
+
PostMenuV4BrandIntegrationSyncPath {}
|
|
8962
|
+
|
|
8949
8963
|
// POST /menu/v4/brand/{id}/v3-to-v4
|
|
8950
8964
|
|
|
8951
8965
|
export interface PostMenuV4BrandV3ToV4Path {
|