@compassdigital/sdk.typescript 4.826.0 → 4.828.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.826.0",
3
+ "version": "4.828.0",
4
4
  "description": "Compass Digital Labs TypeScript SDK",
5
5
  "type": "commonjs",
6
6
  "main": "./lib/index.js",
@@ -92,6 +92,13 @@ export interface UpdateBundleDto {
92
92
  groups?: BundleGroupDto[];
93
93
  }
94
94
 
95
+ export interface CampaignVoucherCountsResponseDto {
96
+ // Active, non-deleted shareable codes on the campaign
97
+ open: number;
98
+ // Active, non-deleted personal codes on the campaign
99
+ personal: number;
100
+ }
101
+
95
102
  export interface CampaignResponseDto {
96
103
  id: string;
97
104
  createdAt: string;
@@ -124,6 +131,8 @@ export interface CampaignResponseDto {
124
131
  minOrderValueCents?: number | null;
125
132
  maxOrderValueCents?: number | null;
126
133
  bundleId?: string | null;
134
+ // Which distribution streams the campaign actually has, counted from its vouchers rather than read off codeType
135
+ voucherCounts: CampaignVoucherCountsResponseDto;
127
136
  }
128
137
 
129
138
  export interface CampaignPaginationDto {
@@ -233,6 +242,8 @@ export interface CampaignDetailResponseDto {
233
242
  minOrderValueCents?: number | null;
234
243
  maxOrderValueCents?: number | null;
235
244
  bundleId?: string | null;
245
+ // Which distribution streams the campaign actually has, counted from its vouchers rather than read off codeType
246
+ voucherCounts: CampaignVoucherCountsResponseDto;
236
247
  dailySchedule: CampaignDailyScheduleResponseDto[];
237
248
  eligibility: CampaignEligibilityResponseDto[];
238
249
  siteScopes: CampaignSiteScopeResponseDto[];
@@ -2390,6 +2390,29 @@ export interface BulkDeletedModifierResultDTO {
2390
2390
  [index: string]: any;
2391
2391
  }
2392
2392
 
2393
+ export interface BusinessUnitStockDTO {
2394
+ item_name?: string;
2395
+ brand_name?: string;
2396
+ stock_updated_by_name?: string;
2397
+ is_in_stock: boolean;
2398
+ draft_is_in_stock: boolean;
2399
+ item_id: string;
2400
+ menu_id: string;
2401
+ brand_id: string;
2402
+ id: string;
2403
+ created_at?: string;
2404
+ updated_at?: string;
2405
+ deleted_at?: string;
2406
+ business_unit_id?: string;
2407
+ stock_updated_at?: string;
2408
+ stock_updated_by?: string;
2409
+ version?: number;
2410
+ menu?: DraftMenuDTO;
2411
+ brand?: DraftBrandDTO;
2412
+ permissions?: Record<string, any>;
2413
+ [index: string]: any;
2414
+ }
2415
+
2393
2416
  export interface MenuSizeDTO {
2394
2417
  format: string;
2395
2418
  raw: number;
@@ -11152,7 +11175,7 @@ export interface PatchMenuV4StockBusinessUnitBody {
11152
11175
  }
11153
11176
 
11154
11177
  export interface PatchMenuV4StockBusinessUnitResponse {
11155
- results?: StockDTO[];
11178
+ results?: BusinessUnitStockDTO[];
11156
11179
  }
11157
11180
 
11158
11181
  export interface PatchMenuV4StockBusinessUnitRequest extends BaseRequest {
@@ -11216,7 +11239,7 @@ export interface GetMenuV4StockBusinessUnitQuery {
11216
11239
  }
11217
11240
 
11218
11241
  export interface GetMenuV4StockBusinessUnitResponse {
11219
- results: StockDTO[];
11242
+ results: BusinessUnitStockDTO[];
11220
11243
  meta?: ListResponseMetadataDTO;
11221
11244
  [index: string]: any;
11222
11245
  }
@@ -11249,7 +11272,7 @@ export interface GetMenuV4StockBusinessUnitUnpublishedChangesQuery {
11249
11272
  }
11250
11273
 
11251
11274
  export interface GetMenuV4StockBusinessUnitUnpublishedChangesResponse {
11252
- results: StockDTO[];
11275
+ results: BusinessUnitStockDTO[];
11253
11276
  meta?: ListResponseMetadataDTO;
11254
11277
  [index: string]: any;
11255
11278
  }