@compassdigital/sdk.typescript 4.173.0 → 4.175.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 +9 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +10 -0
- package/lib/index.js.map +1 -1
- package/lib/interface/catalog.d.ts +26 -0
- package/lib/interface/catalog.d.ts.map +1 -1
- package/lib/interface/menu.d.ts +1 -0
- package/lib/interface/menu.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +24 -0
- package/src/interface/catalog.ts +32 -0
- package/src/interface/menu.ts +2 -0
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -1041,6 +1041,8 @@ import {
|
|
|
1041
1041
|
PostCatalogItemResponse,
|
|
1042
1042
|
PostCatalogItemsBulkBody,
|
|
1043
1043
|
PostCatalogItemsBulkResponse,
|
|
1044
|
+
PatchCatalogItemsBulkBody,
|
|
1045
|
+
PatchCatalogItemsBulkResponse,
|
|
1044
1046
|
PatchCatalogItemBody,
|
|
1045
1047
|
PatchCatalogItemResponse,
|
|
1046
1048
|
DeleteCatalogItemResponse,
|
|
@@ -11341,6 +11343,28 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
11341
11343
|
);
|
|
11342
11344
|
}
|
|
11343
11345
|
|
|
11346
|
+
/**
|
|
11347
|
+
* PATCH /catalog/v1/catalog/{id}/items/bulk - Bulk update catalog items
|
|
11348
|
+
*
|
|
11349
|
+
* @param id
|
|
11350
|
+
* @param body
|
|
11351
|
+
* @param options - additional request options
|
|
11352
|
+
*/
|
|
11353
|
+
patch_catalog_items_bulk(
|
|
11354
|
+
id: number,
|
|
11355
|
+
body: PatchCatalogItemsBulkBody,
|
|
11356
|
+
options?: RequestOptions,
|
|
11357
|
+
): ResponsePromise<PatchCatalogItemsBulkResponse> {
|
|
11358
|
+
return this.request(
|
|
11359
|
+
'catalog',
|
|
11360
|
+
'/catalog/v1/catalog/{id}/items/bulk',
|
|
11361
|
+
'PATCH',
|
|
11362
|
+
`/catalog/v1/catalog/${id}/items/bulk`,
|
|
11363
|
+
body,
|
|
11364
|
+
options,
|
|
11365
|
+
);
|
|
11366
|
+
}
|
|
11367
|
+
|
|
11344
11368
|
/**
|
|
11345
11369
|
* PATCH /catalog/v1/catalog/{catalog_id}/item/{id} - Update a catalog item
|
|
11346
11370
|
*
|
package/src/interface/catalog.ts
CHANGED
|
@@ -286,6 +286,38 @@ export interface PostCatalogItemsBulkRequest extends BaseRequest, PostCatalogIte
|
|
|
286
286
|
body: PostCatalogItemsBulkBody;
|
|
287
287
|
}
|
|
288
288
|
|
|
289
|
+
// PATCH /catalog/v1/catalog/{id}/items/bulk - Bulk update catalog items
|
|
290
|
+
|
|
291
|
+
export interface PatchCatalogItemsBulkPath {
|
|
292
|
+
id: number;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
export type PatchCatalogItemsBulkBody = {
|
|
296
|
+
id?: number;
|
|
297
|
+
catalog_id?: number;
|
|
298
|
+
item_id?: number | null;
|
|
299
|
+
name?: string | null;
|
|
300
|
+
label?: string | null;
|
|
301
|
+
description?: string | null;
|
|
302
|
+
price?: number | null;
|
|
303
|
+
overrides?: Record<string, any> | null;
|
|
304
|
+
options?: Record<string, any> | null;
|
|
305
|
+
barcode?: string | null;
|
|
306
|
+
reporting?: Record<string, any> | null;
|
|
307
|
+
tax?: Record<string, any> | null;
|
|
308
|
+
is_visible?: boolean | null;
|
|
309
|
+
is_out_of_stock?: boolean | null;
|
|
310
|
+
meta?: Record<string, any> | null;
|
|
311
|
+
created_at?: string | null;
|
|
312
|
+
updated_at?: string | null;
|
|
313
|
+
}[];
|
|
314
|
+
|
|
315
|
+
export type PatchCatalogItemsBulkResponse = CatalogItemResponseDTO[];
|
|
316
|
+
|
|
317
|
+
export interface PatchCatalogItemsBulkRequest extends BaseRequest, PatchCatalogItemsBulkPath {
|
|
318
|
+
body: PatchCatalogItemsBulkBody;
|
|
319
|
+
}
|
|
320
|
+
|
|
289
321
|
// PATCH /catalog/v1/catalog/{catalog_id}/item/{id} - Update a catalog item
|
|
290
322
|
|
|
291
323
|
export interface PatchCatalogItemPath {
|
package/src/interface/menu.ts
CHANGED
|
@@ -2305,6 +2305,8 @@ export interface GetMenuV3LocalMenuGroupQuery {
|
|
|
2305
2305
|
}
|
|
2306
2306
|
|
|
2307
2307
|
export interface GetMenuV3LocalMenuGroupResponse {
|
|
2308
|
+
// GMG IDs currently in use by child brands
|
|
2309
|
+
global_menu_groups_in_use?: string[];
|
|
2308
2310
|
name: string;
|
|
2309
2311
|
is_active?: boolean;
|
|
2310
2312
|
allowed_global_menu_groups?: GlobalMenuGroupDTO[];
|