@compassdigital/sdk.typescript 4.106.0 → 4.107.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.106.0",
3
+ "version": "4.107.0",
4
4
  "description": "Compass Digital Labs TypeScript SDK",
5
5
  "type": "commonjs",
6
6
  "main": "./lib/index.js",
package/src/index.ts CHANGED
@@ -967,6 +967,8 @@ import {
967
967
  DeleteMenuV4StockMenuBusinessUnitResponse,
968
968
  GetMenuV4StockBusinessUnitQuery,
969
969
  GetMenuV4StockBusinessUnitResponse,
970
+ GetMenuV4StockBusinessUnitUnpublishedChangesQuery,
971
+ GetMenuV4StockBusinessUnitUnpublishedChangesResponse,
970
972
  PostMenuV4StockPublishBody,
971
973
  PostMenuV4StockPublishResponse,
972
974
  PostMenuV4ScheduleMenuBody,
@@ -1148,7 +1150,6 @@ import {
1148
1150
  GetDiscountResponse,
1149
1151
  PutDiscountBody,
1150
1152
  PutDiscountResponse,
1151
- DeleteDiscountBody,
1152
1153
  DeleteDiscountResponse,
1153
1154
  GetDiscountsQuery,
1154
1155
  GetDiscountsResponse,
@@ -10435,6 +10436,28 @@ export class ServiceClient extends BaseServiceClient {
10435
10436
  );
10436
10437
  }
10437
10438
 
10439
+ /**
10440
+ * GET /menu/v4/stock/business-unit/{business_unit_id}/unpublished-changes
10441
+ *
10442
+ * @param business_unit_id
10443
+ * @param options - additional request options
10444
+ */
10445
+ get_menu_v4_stock_business_unit_unpublished_changes(
10446
+ business_unit_id: string,
10447
+ options?: {
10448
+ query?: GetMenuV4StockBusinessUnitUnpublishedChangesQuery;
10449
+ } & RequestOptions,
10450
+ ): ResponsePromise<GetMenuV4StockBusinessUnitUnpublishedChangesResponse> {
10451
+ return this.request(
10452
+ 'menu',
10453
+ '/menu/v4/stock/business-unit/{business_unit_id}/unpublished-changes',
10454
+ 'get',
10455
+ `/menu/v4/stock/business-unit/${business_unit_id}/unpublished-changes`,
10456
+ null,
10457
+ options,
10458
+ );
10459
+ }
10460
+
10438
10461
  /**
10439
10462
  * POST /menu/v4/stock/publish
10440
10463
  *
@@ -11802,15 +11825,10 @@ export class ServiceClient extends BaseServiceClient {
11802
11825
  * DELETE /discount/{id} - delete a discount
11803
11826
  *
11804
11827
  * @param id - Discount id
11805
- * @param body
11806
11828
  * @param options - additional request options
11807
11829
  */
11808
- delete_discount(
11809
- id: string,
11810
- body: DeleteDiscountBody,
11811
- options?: RequestOptions,
11812
- ): ResponsePromise<DeleteDiscountResponse> {
11813
- return this.request('discount', '/discount/{id}', 'delete', `/discount/${id}`, body, options);
11830
+ delete_discount(id: string, options?: RequestOptions): ResponsePromise<DeleteDiscountResponse> {
11831
+ return this.request('discount', '/discount/{id}', 'delete', `/discount/${id}`, null, options);
11814
11832
  }
11815
11833
 
11816
11834
  /**
@@ -150,11 +150,6 @@ export interface PutDiscountPublishResponseDTO {
150
150
  meta?: DiscountMeta;
151
151
  }
152
152
 
153
- export interface DeleteDiscountRequestDTO {
154
- id: string;
155
- meta?: DiscountMeta;
156
- }
157
-
158
153
  export interface DeleteDiscountResponseDTO {
159
154
  success: boolean;
160
155
  }
@@ -199,13 +194,9 @@ export interface DeleteDiscountPath {
199
194
  id: string;
200
195
  }
201
196
 
202
- export type DeleteDiscountBody = DeleteDiscountRequestDTO;
203
-
204
197
  export type DeleteDiscountResponse = DeleteDiscountResponseDTO;
205
198
 
206
- export interface DeleteDiscountRequest extends BaseRequest, DeleteDiscountPath {
207
- body: DeleteDiscountBody;
208
- }
199
+ export interface DeleteDiscountRequest extends BaseRequest, DeleteDiscountPath {}
209
200
 
210
201
  // GET /discount - Get discounts by taxonomy
211
202
 
@@ -217,6 +217,7 @@ export interface DeleteMealplanTenderBody {
217
217
  type?: string;
218
218
  conversion_amount?: number;
219
219
  terminal_id?: string;
220
+ card_data?: string;
220
221
  drain_order_type?: {
221
222
  taxable?: boolean;
222
223
  tax_exempt?: boolean;
@@ -921,7 +921,6 @@ export interface StockDTO {
921
921
  brand_id?: string;
922
922
  id?: string;
923
923
  business_unit_id?: string;
924
- item?: Record<string, any>;
925
924
  menu?: Record<string, any>;
926
925
  brand?: DraftBrandDTO;
927
926
  permissions?: Record<string, any>;
@@ -9406,7 +9405,6 @@ export interface PatchMenuV4StockResponse {
9406
9405
  deleted_at?: string;
9407
9406
  business_unit_id?: string;
9408
9407
  version?: number;
9409
- item?: DraftItemDTO;
9410
9408
  menu?: DraftMenuDTO;
9411
9409
  brand?: DraftBrandDTO;
9412
9410
  permissions?: Record<string, any>;
@@ -9482,6 +9480,41 @@ export interface GetMenuV4StockBusinessUnitRequest
9482
9480
  RequestQuery<GetMenuV4StockBusinessUnitQuery>,
9483
9481
  GetMenuV4StockBusinessUnitPath {}
9484
9482
 
9483
+ // GET /menu/v4/stock/business-unit/{business_unit_id}/unpublished-changes
9484
+
9485
+ export interface GetMenuV4StockBusinessUnitUnpublishedChangesPath {
9486
+ business_unit_id: string;
9487
+ }
9488
+
9489
+ export interface GetMenuV4StockBusinessUnitUnpublishedChangesQuery {
9490
+ filter?: string;
9491
+ // If specified, only the selected fields will be returned
9492
+ select?: string[];
9493
+ // List of relationships to load alongside this entity. Can load nested relationships using the pattern 'children.grand_children.foo'
9494
+ relationships?: string[];
9495
+ // Number of records to load per page
9496
+ limit?: number;
9497
+ page?: number;
9498
+ // A field to sort the results based on
9499
+ sort_by?: string;
9500
+ sort_order?: 'DESC' | 'ASC';
9501
+ // How soft deleted records should be shown in the list
9502
+ soft_deleted?: 'include' | 'exclude' | 'only';
9503
+ // Graphql query string
9504
+ _query?: string;
9505
+ }
9506
+
9507
+ export interface GetMenuV4StockBusinessUnitUnpublishedChangesResponse {
9508
+ results: StockDTO[];
9509
+ meta?: ListResponseMetadataDTO;
9510
+ [index: string]: any;
9511
+ }
9512
+
9513
+ export interface GetMenuV4StockBusinessUnitUnpublishedChangesRequest
9514
+ extends BaseRequest,
9515
+ RequestQuery<GetMenuV4StockBusinessUnitUnpublishedChangesQuery>,
9516
+ GetMenuV4StockBusinessUnitUnpublishedChangesPath {}
9517
+
9485
9518
  // POST /menu/v4/stock/publish
9486
9519
 
9487
9520
  export interface PostMenuV4StockPublishBody {