@compassdigital/sdk.typescript 4.683.0 → 4.684.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compassdigital/sdk.typescript",
3
- "version": "4.683.0",
3
+ "version": "4.684.0",
4
4
  "description": "Compass Digital Labs TypeScript SDK",
5
5
  "type": "commonjs",
6
6
  "main": "./lib/index.js",
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,
@@ -11132,6 +11134,28 @@ export class ServiceClient extends BaseServiceClient {
11132
11134
  );
11133
11135
  }
11134
11136
 
11137
+ /**
11138
+ * PATCH /menu/v4/brand/{brand_id}/menus/reorder
11139
+ *
11140
+ * @param brand_id
11141
+ * @param body
11142
+ * @param options - additional request options
11143
+ */
11144
+ patch_menu_v4_brand_menus_reorder(
11145
+ brand_id: string,
11146
+ body: PatchMenuV4BrandMenusReorderBody,
11147
+ options?: RequestOptions,
11148
+ ): ResponsePromise<PatchMenuV4BrandMenusReorderResponse> {
11149
+ return this.request(
11150
+ 'menu',
11151
+ '/menu/v4/brand/{brand_id}/menus/reorder',
11152
+ 'PATCH',
11153
+ `/menu/v4/brand/${brand_id}/menus/reorder`,
11154
+ body,
11155
+ options,
11156
+ );
11157
+ }
11158
+
11135
11159
  /**
11136
11160
  * GET /menu/v4/brand/{id}/items
11137
11161
  *
@@ -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>;