@compassdigital/sdk.typescript 4.876.0 → 4.878.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.876.0",
3
+ "version": "4.878.0",
4
4
  "description": "Compass Digital Labs TypeScript SDK",
5
5
  "type": "commonjs",
6
6
  "main": "./lib/index.js",
package/src/index.ts CHANGED
@@ -1407,6 +1407,8 @@ import {
1407
1407
  PostCentricosAiItemImageResponse,
1408
1408
  PostCentricosAiLanguageGenerateOrderSearchParamsBody,
1409
1409
  PostCentricosAiLanguageGenerateOrderSearchParamsResponse,
1410
+ GetCentricosAnnouncementsSitesQuery,
1411
+ GetCentricosAnnouncementsSitesResponse,
1410
1412
  PostCentricosOrdersExportQuery,
1411
1413
  PostCentricosOrdersExportResponse,
1412
1414
  GetCentricosReportGroupConfigResponse,
@@ -16434,6 +16436,26 @@ export class ServiceClient extends BaseServiceClient {
16434
16436
  );
16435
16437
  }
16436
16438
 
16439
+ /**
16440
+ * GET /centricos/announcements/sites - Get sites (id and name only) for the announcement site picker
16441
+ *
16442
+ * @param options - additional request options
16443
+ */
16444
+ get_centricos_announcements_sites(
16445
+ options: {
16446
+ query: GetCentricosAnnouncementsSitesQuery;
16447
+ } & RequestOptions,
16448
+ ): ResponsePromise<GetCentricosAnnouncementsSitesResponse> {
16449
+ return this.request(
16450
+ 'centricos',
16451
+ '/centricos/announcements/sites',
16452
+ 'GET',
16453
+ `/centricos/announcements/sites`,
16454
+ null,
16455
+ options,
16456
+ );
16457
+ }
16458
+
16437
16459
  /**
16438
16460
  * GET /centricos/orders/export - Get orders in csv format
16439
16461
  *
@@ -72,6 +72,26 @@ export interface OrderSearchParamsResponse {
72
72
  params: Record<string, any>;
73
73
  }
74
74
 
75
+ export interface PageMetadata {
76
+ page: number;
77
+ limit: number;
78
+ totalResults: number;
79
+ totalPages: number;
80
+ resultsCount: number;
81
+ sortOrder: 'ASC' | 'DESC';
82
+ sortBy: string;
83
+ }
84
+
85
+ export interface AnnouncementSiteDTO {
86
+ id: string;
87
+ name: string;
88
+ }
89
+
90
+ export interface GetAnnouncementSitesResponseDTO {
91
+ meta: PageMetadata;
92
+ results: AnnouncementSiteDTO[];
93
+ }
94
+
75
95
  export interface OrdersExportResponse {
76
96
  // Order data in CSV
77
97
  csv: string;
@@ -111,16 +131,6 @@ export interface SiteDevicesResponse {
111
131
  site_devices: Record<string, any>;
112
132
  }
113
133
 
114
- export interface PageMetadata {
115
- page: number;
116
- limit: number;
117
- totalResults: number;
118
- totalPages: number;
119
- resultsCount: number;
120
- sortOrder: 'ASC' | 'DESC';
121
- sortBy: string;
122
- }
123
-
124
134
  export interface LocalMenuGroup {
125
135
  id: string;
126
136
  name: string;
@@ -1554,6 +1564,22 @@ export type PostCentricosAiLanguageGenerateOrderSearchParamsBody = OrderSearchPa
1554
1564
 
1555
1565
  export type PostCentricosAiLanguageGenerateOrderSearchParamsResponse = OrderSearchParamsResponse;
1556
1566
 
1567
+ // GET /centricos/announcements/sites - Get sites (id and name only) for the announcement site picker
1568
+
1569
+ export interface GetCentricosAnnouncementsSitesQuery {
1570
+ id_multigroups?: string[];
1571
+ filter?: string;
1572
+ limit: number;
1573
+ page: number;
1574
+ sortOrder: string;
1575
+ sortBy?: string;
1576
+ sector_name?: string;
1577
+ // Site statuses. Use repeated query params. Allowed values: active, inactive, archived.
1578
+ status?: string[];
1579
+ }
1580
+
1581
+ export type GetCentricosAnnouncementsSitesResponse = GetAnnouncementSitesResponseDTO;
1582
+
1557
1583
  // GET /centricos/orders/export - Get orders in csv format
1558
1584
 
1559
1585
  export interface PostCentricosOrdersExportQuery {
@@ -2384,6 +2384,7 @@ export interface BusinessUnitStockDTO {
2384
2384
  item_name?: string;
2385
2385
  brand_name?: string;
2386
2386
  stock_updated_by_name?: string;
2387
+ attached_items?: StockAttachedItemDTO[];
2387
2388
  is_in_stock: boolean;
2388
2389
  draft_is_in_stock: boolean;
2389
2390
  item_id: string;
@@ -2403,6 +2404,11 @@ export interface BusinessUnitStockDTO {
2403
2404
  [index: string]: any;
2404
2405
  }
2405
2406
 
2407
+ export interface StockAttachedItemDTO {
2408
+ id?: string;
2409
+ name?: string;
2410
+ }
2411
+
2406
2412
  export interface MenuSizeDTO {
2407
2413
  format: string;
2408
2414
  raw: number;