@compassdigital/sdk.typescript 4.436.0 → 4.438.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.436.0",
3
+ "version": "4.438.0",
4
4
  "description": "Compass Digital Labs TypeScript SDK",
5
5
  "type": "commonjs",
6
6
  "main": "./lib/index.js",
package/src/index.ts CHANGED
@@ -887,6 +887,7 @@ import {
887
887
  PostMenuV3GlobalDiffRecoverResponse,
888
888
  GetMenuV3MenuworksQuery,
889
889
  GetMenuV3MenuworksResponse,
890
+ GetMenuV3MenuworksBusinessUnitsResponse,
890
891
  GetMenuV3UniversalItemsQuery,
891
892
  GetMenuV3UniversalItemsResponse,
892
893
  PutMenuV3UniversalItemsBody,
@@ -10238,6 +10239,24 @@ export class ServiceClient extends BaseServiceClient {
10238
10239
  );
10239
10240
  }
10240
10241
 
10242
+ /**
10243
+ * GET /menu/v3/menuworks/business_units
10244
+ *
10245
+ * @param options - additional request options
10246
+ */
10247
+ get_menu_v3_menuworks_business_units(
10248
+ options?: RequestOptions,
10249
+ ): ResponsePromise<GetMenuV3MenuworksBusinessUnitsResponse> {
10250
+ return this.request(
10251
+ 'menu',
10252
+ '/menu/v3/menuworks/business_units',
10253
+ 'GET',
10254
+ `/menu/v3/menuworks/business_units`,
10255
+ null,
10256
+ options,
10257
+ );
10258
+ }
10259
+
10241
10260
  /**
10242
10261
  * GET /menu/v3/universal-items
10243
10262
  *
@@ -94,7 +94,7 @@ export interface Brand {
94
94
  longitude?: number;
95
95
  address?: Address;
96
96
  menus?: MenuHours[];
97
- date?: DateInfo;
97
+ date?: BrandDateInfo;
98
98
  hours?: Hours[];
99
99
  deliveryHours?: DeliveryHours[];
100
100
  style?: {
@@ -542,6 +542,13 @@ export interface DateInfo {
542
542
  modified?: string;
543
543
  }
544
544
 
545
+ export interface BrandDateInfo {
546
+ deleted?: string;
547
+ created?: string;
548
+ modified?: string;
549
+ next_calendar_sync?: string;
550
+ }
551
+
545
552
  export interface Pagination {
546
553
  last_key?: string;
547
554
  count?: number;
@@ -1905,6 +1905,13 @@ export interface DraftModifierEntityDTO {
1905
1905
  [index: string]: any;
1906
1906
  }
1907
1907
 
1908
+ export interface BusinessUnitDTO {
1909
+ id: string;
1910
+ name: string;
1911
+ sector_name: string;
1912
+ [index: string]: any;
1913
+ }
1914
+
1908
1915
  export interface UniversalItemWithoutIdDTO {
1909
1916
  barcode: string;
1910
1917
  name: string;
@@ -7557,6 +7564,16 @@ export interface GetMenuV3MenuworksRequest
7557
7564
  extends BaseRequest,
7558
7565
  RequestQuery<GetMenuV3MenuworksQuery> {}
7559
7566
 
7567
+ // GET /menu/v3/menuworks/business_units
7568
+
7569
+ export interface GetMenuV3MenuworksBusinessUnitsResponse {
7570
+ results: BusinessUnitDTO[];
7571
+ meta?: ListResponseMetadataDTO;
7572
+ [index: string]: any;
7573
+ }
7574
+
7575
+ export interface GetMenuV3MenuworksBusinessUnitsRequest extends BaseRequest {}
7576
+
7560
7577
  // GET /menu/v3/universal-items
7561
7578
 
7562
7579
  export interface GetMenuV3UniversalItemsQuery {