@compassdigital/sdk.typescript 4.471.0 → 4.473.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.471.0",
3
+ "version": "4.473.0",
4
4
  "description": "Compass Digital Labs TypeScript SDK",
5
5
  "type": "commonjs",
6
6
  "main": "./lib/index.js",
package/src/index.ts CHANGED
@@ -1303,6 +1303,8 @@ import {
1303
1303
  GetRecommendationsBySiteV2Response,
1304
1304
  PostCentricosBusinessUnitValidateVertexResponse,
1305
1305
  GetCentricosMenuGlobalMenuGroupsResponse,
1306
+ PostCentricosMenuBrandsFetchBody,
1307
+ PostCentricosMenuBrandsFetchResponse,
1306
1308
  } from './interface/centricos';
1307
1309
 
1308
1310
  import { TaxHealthCheckResponse, PostQuoteTaxBody, PostQuoteTaxResponse } from './interface/tax';
@@ -14877,6 +14879,26 @@ export class ServiceClient extends BaseServiceClient {
14877
14879
  );
14878
14880
  }
14879
14881
 
14882
+ /**
14883
+ * POST /centricos/menu/brands/fetch - Fetch menu brands to receive an expanded menu > category > item hierarchy
14884
+ *
14885
+ * @param body
14886
+ * @param options - additional request options
14887
+ */
14888
+ post_centricos_menu_brands_fetch(
14889
+ body: PostCentricosMenuBrandsFetchBody,
14890
+ options?: RequestOptions,
14891
+ ): ResponsePromise<PostCentricosMenuBrandsFetchResponse> {
14892
+ return this.request(
14893
+ 'centricos',
14894
+ '/centricos/menu/brands/fetch',
14895
+ 'POST',
14896
+ `/centricos/menu/brands/fetch`,
14897
+ body,
14898
+ options,
14899
+ );
14900
+ }
14901
+
14880
14902
  /**
14881
14903
  * GET /tax/v1/health-check - Health Check
14882
14904
  *
@@ -341,52 +341,64 @@ export interface CentricDiscountChannelConfig {
341
341
  volante: boolean;
342
342
  }
343
343
 
344
- export interface CentricItem {
344
+ export interface CentricDiscountEntityBase {
345
+ // The id of the entity
345
346
  id: string;
347
+ // The name of the entity
346
348
  name: string;
347
349
  }
348
350
 
349
- export interface CentricCategory {
351
+ export interface CentricDiscountMenuCategory {
352
+ // The id of the entity
350
353
  id: string;
354
+ // The name of the entity
351
355
  name: string;
352
- items: CentricItem[];
356
+ items: CentricDiscountEntityBase[];
353
357
  }
354
358
 
355
- export interface CentricMenu {
359
+ export interface CentricDiscountMenu {
360
+ // The id of the entity
356
361
  id: string;
362
+ // The name of the entity
357
363
  name: string;
358
- categories: CentricCategory[];
364
+ categories: CentricDiscountMenuCategory[];
359
365
  }
360
366
 
361
- export interface CentricStation {
367
+ export interface CentricDiscountItemConfigStation {
368
+ // The id of the entity
362
369
  id: string;
370
+ // The name of the entity
363
371
  name: string;
364
- menus?: CentricMenu[];
372
+ menus?: CentricDiscountMenu[];
365
373
  }
366
374
 
367
- export interface CentricSite {
375
+ export interface CentricDiscountItemConfigSite {
376
+ // The id of the entity
368
377
  id: string;
378
+ // The name of the entity
369
379
  name: string;
370
- stations: CentricStation[];
380
+ stations: CentricDiscountItemConfigStation[];
371
381
  }
372
382
 
373
- export interface CentricMenuBrand {
383
+ export interface CentricDiscountMenuBrand {
384
+ // The id of the entity
374
385
  id: string;
386
+ // The name of the entity
375
387
  name: string;
376
- menus: CentricMenu[];
388
+ menus: CentricDiscountMenu[];
377
389
  }
378
390
 
379
- export interface CentricItemLevelConfigDetails {
391
+ export interface CentricDiscountItemLevelConfigDetails {
380
392
  // minimum number of items to satisfy the bundle
381
393
  minimum: number;
382
394
  bundleGroupName?: string;
383
- sites?: CentricSite[];
384
- menuBrands?: CentricMenuBrand[];
395
+ sites?: CentricDiscountItemConfigSite[];
396
+ menuBrands?: CentricDiscountMenuBrand[];
385
397
  }
386
398
 
387
- export interface CentricItemLevelConfig {
399
+ export interface CentricDiscountItemLevelConfig {
388
400
  // details of the item level config
389
- details: CentricItemLevelConfigDetails[];
401
+ details: CentricDiscountItemLevelConfigDetails[];
390
402
  globalMenuGroupId?: string;
391
403
  globalMenuGroupName?: string;
392
404
  sectorName?: string;
@@ -423,7 +435,7 @@ export interface PutDiscountVoucherifyRequestDiscount {
423
435
  // what the discount applies to
424
436
  appliesTo: 'order' | 'items';
425
437
  // item level config of the discount
426
- itemLevelConfig?: CentricItemLevelConfig;
438
+ itemLevelConfig?: CentricDiscountItemLevelConfig;
427
439
  // Voucherify metadata
428
440
  meta?: CentricVoucherifyMetaDataDiscount;
429
441
  // discount schedule
@@ -522,7 +534,7 @@ export interface DiscountResponseDTO {
522
534
  // type of the discount
523
535
  type: 'Total Order' | 'Single Items' | 'Bundle';
524
536
  // item level config of the discount
525
- itemLevelConfig?: CentricItemLevelConfig;
537
+ itemLevelConfig?: CentricDiscountItemLevelConfig;
526
538
  // number of sites associated with the discount
527
539
  siteCount: number;
528
540
  // number of brands associated with the discount
@@ -560,13 +572,6 @@ export interface CentricDiscountMeta {
560
572
  provider: CentricMetaProvider;
561
573
  }
562
574
 
563
- export interface DiscountEntityDTO {
564
- // The ID of the site
565
- id: string;
566
- // The name of the site
567
- name: string;
568
- }
569
-
570
575
  export interface PutDiscountVoucherifyPublishResponseDTO {
571
576
  // user is of discount creator
572
577
  createdBy: string;
@@ -583,7 +588,7 @@ export interface PutDiscountVoucherifyPublishResponseDTO {
583
588
  // type of the discount
584
589
  type: 'Total Order' | 'Single Items' | 'Bundle';
585
590
  // item level config of the discount
586
- itemLevelConfig?: CentricItemLevelConfig;
591
+ itemLevelConfig?: CentricDiscountItemLevelConfig;
587
592
  // number of sites associated with the discount
588
593
  siteCount: number;
589
594
  // number of brands associated with the discount
@@ -591,7 +596,7 @@ export interface PutDiscountVoucherifyPublishResponseDTO {
591
596
  // Voucherify metadata
592
597
  meta?: CentricDiscountMeta;
593
598
  // List of sites where discount is published
594
- sites?: DiscountEntityDTO[];
599
+ sites?: CentricDiscountEntityBase[];
595
600
  id: string;
596
601
  createdAt: string;
597
602
  updatedAt: string;
@@ -619,7 +624,7 @@ export interface DiscountDTO {
619
624
  // type of the discount
620
625
  type: 'Total Order' | 'Single Items' | 'Bundle';
621
626
  // item level config of the discount
622
- itemLevelConfig?: CentricItemLevelConfig;
627
+ itemLevelConfig?: CentricDiscountItemLevelConfig;
623
628
  // number of sites associated with the discount
624
629
  siteCount: number;
625
630
  // number of brands associated with the discount
@@ -636,9 +641,9 @@ export interface GetDiscountResponseDTO {
636
641
  // The discount information
637
642
  discount: DiscountDTO;
638
643
  // The sites associated with the discount
639
- sites: DiscountEntityDTO[];
644
+ sites: CentricDiscountEntityBase[];
640
645
  // The brands associated with the discount
641
- brands: DiscountEntityDTO[];
646
+ brands: CentricDiscountEntityBase[];
642
647
  }
643
648
 
644
649
  export interface PostDiscountActiveRequestDTO {
@@ -662,7 +667,7 @@ export interface PostDiscountActiveResponseDTO {
662
667
  // type of the discount
663
668
  type: 'Total Order' | 'Single Items' | 'Bundle';
664
669
  // item level config of the discount
665
- itemLevelConfig?: CentricItemLevelConfig;
670
+ itemLevelConfig?: CentricDiscountItemLevelConfig;
666
671
  // number of sites associated with the discount
667
672
  siteCount: number;
668
673
  // number of brands associated with the discount
@@ -691,7 +696,7 @@ export interface GetDiscountsDiscountResponseDTO {
691
696
  // type of the discount
692
697
  type: 'Total Order' | 'Single Items' | 'Bundle';
693
698
  // item level config of the discount
694
- itemLevelConfig?: CentricItemLevelConfig;
699
+ itemLevelConfig?: CentricDiscountItemLevelConfig;
695
700
  // number of sites associated with the discount
696
701
  siteCount: number;
697
702
  // number of brands associated with the discount
@@ -851,6 +856,52 @@ export interface GetGlobalMenuGroupsResponse {
851
856
  meta?: MenuListMetadata;
852
857
  }
853
858
 
859
+ export interface PostMenuBrandsFetchRequestDTO {
860
+ // Array of menu brand ids to fetch
861
+ brand_ids: string[];
862
+ }
863
+
864
+ export interface PostMenuBrandsFetchMeta {
865
+ // Number of brands returned
866
+ result_count?: number;
867
+ }
868
+
869
+ export interface CentricMenuEntityBaseDTO {
870
+ // The id of the entity
871
+ id: string;
872
+ // The name of the entity
873
+ name: string;
874
+ }
875
+
876
+ export interface CentricMenuCategoryDTO {
877
+ // The id of the entity
878
+ id: string;
879
+ // The name of the entity
880
+ name: string;
881
+ items: CentricMenuEntityBaseDTO[];
882
+ }
883
+
884
+ export interface CentricMenuDTO {
885
+ // The id of the entity
886
+ id: string;
887
+ // The name of the entity
888
+ name: string;
889
+ categories: CentricMenuCategoryDTO[];
890
+ }
891
+
892
+ export interface MenuBrandResultDTO {
893
+ // The id of the entity
894
+ id: string;
895
+ // The name of the entity
896
+ name: string;
897
+ menus: CentricMenuDTO[];
898
+ }
899
+
900
+ export interface PostMenuBrandsFetchResponseDTO {
901
+ meta?: PostMenuBrandsFetchMeta;
902
+ results: MenuBrandResultDTO[];
903
+ }
904
+
854
905
  // POST /centricos/ai/item/description - Generate item description
855
906
 
856
907
  export type PostCentricosAiItemDescriptionBody = AIItemDescriptionRequest;
@@ -1161,3 +1212,9 @@ export type PostCentricosBusinessUnitValidateVertexResponse = ValidateVertexResp
1161
1212
  // GET /centricos/menu/global-menu-groups - Get a paginated list of global menu groups with filtering, sorting, and relationships
1162
1213
 
1163
1214
  export type GetCentricosMenuGlobalMenuGroupsResponse = GetGlobalMenuGroupsResponse;
1215
+
1216
+ // POST /centricos/menu/brands/fetch - Fetch menu brands to receive an expanded menu > category > item hierarchy
1217
+
1218
+ export type PostCentricosMenuBrandsFetchBody = PostMenuBrandsFetchRequestDTO;
1219
+
1220
+ export type PostCentricosMenuBrandsFetchResponse = PostMenuBrandsFetchResponseDTO;
@@ -2058,20 +2058,23 @@ export interface FetchMetaDTO {
2058
2058
  }
2059
2059
 
2060
2060
  export interface FetchEntityWithMenusDTO {
2061
- id?: string;
2062
- name?: string;
2063
- menus?: FetchMenuDTO[];
2061
+ id: string;
2062
+ name: string;
2063
+ menus: FetchMenuDTO[];
2064
+ [index: string]: any;
2064
2065
  }
2065
2066
 
2066
2067
  export interface FetchMenuDTO {
2067
- id?: string;
2068
- name?: string;
2069
- categories?: FetchCategoryDTO[];
2068
+ id: string;
2069
+ name: string;
2070
+ categories: FetchCategoryDTO[];
2071
+ [index: string]: any;
2070
2072
  }
2071
2073
 
2072
2074
  export interface FetchCategoryDTO {
2073
- id?: string;
2074
- name?: string;
2075
+ id: string;
2076
+ name: string;
2077
+ [index: string]: any;
2075
2078
  }
2076
2079
 
2077
2080
  export interface FetchBrandItemsMenuBrandRequestDTO {
@@ -2095,26 +2098,30 @@ export interface FetchBrandItemsCategoryRequestDTO {
2095
2098
  }
2096
2099
 
2097
2100
  export interface FetchEntityWithMenusAndItemsDTO {
2098
- id?: string;
2099
- name?: string;
2100
- menus?: FetchMenuWithItemsDTO[];
2101
+ id: string;
2102
+ name: string;
2103
+ menus: FetchMenuWithItemsDTO[];
2104
+ [index: string]: any;
2101
2105
  }
2102
2106
 
2103
2107
  export interface FetchMenuWithItemsDTO {
2104
- id?: string;
2105
- name?: string;
2106
- categories?: FetchCategoryWithItemsDTO[];
2108
+ id: string;
2109
+ name: string;
2110
+ categories: FetchCategoryWithItemsDTO[];
2111
+ [index: string]: any;
2107
2112
  }
2108
2113
 
2109
2114
  export interface FetchCategoryWithItemsDTO {
2110
- id?: string;
2111
- name?: string;
2112
- items?: FetchItemDTO[];
2115
+ id: string;
2116
+ name: string;
2117
+ items: FetchItemDTO[];
2118
+ [index: string]: any;
2113
2119
  }
2114
2120
 
2115
2121
  export interface FetchItemDTO {
2116
- id?: string;
2117
- name?: string;
2122
+ id: string;
2123
+ name: string;
2124
+ [index: string]: any;
2118
2125
  }
2119
2126
 
2120
2127
  export interface PartialItemDTO {
@@ -2221,21 +2228,23 @@ export interface MenuSizeDTO {
2221
2228
  }
2222
2229
 
2223
2230
  export interface FetchStationWithMenusDTO {
2224
- id?: string;
2225
- name?: string;
2226
- menus?: FetchStationMenuDTO[];
2231
+ id: string;
2232
+ name: string;
2233
+ menus: FetchStationMenuDTO[];
2234
+ [index: string]: any;
2227
2235
  }
2228
2236
 
2229
2237
  export interface FetchStationMenuDTO {
2230
- id?: string;
2231
- name?: string;
2232
- categories?: FetchStationCategoryDTO[];
2238
+ id: string;
2239
+ name: string;
2240
+ categories: FetchStationCategoryDTO[];
2241
+ [index: string]: any;
2233
2242
  }
2234
2243
 
2235
2244
  export interface FetchStationCategoryDTO {
2236
- items?: FetchItemDTO[];
2237
- id?: string;
2238
- name?: string;
2245
+ id: string;
2246
+ name: string;
2247
+ items: FetchItemDTO[];
2239
2248
  [index: string]: any;
2240
2249
  }
2241
2250
 
@@ -2267,21 +2276,24 @@ export interface FetchStationItemsSearchCategoryRequestDTO {
2267
2276
  }
2268
2277
 
2269
2278
  export interface FetchSiteWithStationsDTO {
2270
- id?: string;
2271
- name?: string;
2272
- stations?: FetchStationDTO[];
2279
+ id: string;
2280
+ name: string;
2281
+ stations: FetchStationDTO[];
2282
+ [index: string]: any;
2273
2283
  }
2274
2284
 
2275
2285
  export interface FetchStationDTO {
2276
- id?: string;
2277
- name?: string;
2278
- menus?: FetchStationItemStationMenuDTO[];
2286
+ id: string;
2287
+ name: string;
2288
+ menus: FetchStationItemStationMenuDTO[];
2289
+ [index: string]: any;
2279
2290
  }
2280
2291
 
2281
2292
  export interface FetchStationItemStationMenuDTO {
2282
- id?: string;
2283
- name?: string;
2284
- categories?: FetchCategoryWithItemsDTO[];
2293
+ id: string;
2294
+ name: string;
2295
+ categories: FetchCategoryWithItemsDTO[];
2296
+ [index: string]: any;
2285
2297
  }
2286
2298
 
2287
2299
  export interface HealthDependencyDTO {
@@ -8946,8 +8958,9 @@ export interface PostMenuV4BrandsFetchBody {
8946
8958
  }
8947
8959
 
8948
8960
  export interface PostMenuV4BrandsFetchResponse {
8949
- meta?: FetchMetaDTO;
8950
- results?: FetchEntityWithMenusDTO[];
8961
+ meta: FetchMetaDTO;
8962
+ results: FetchEntityWithMenusDTO[];
8963
+ [index: string]: any;
8951
8964
  }
8952
8965
 
8953
8966
  export interface PostMenuV4BrandsFetchRequest extends BaseRequest {
@@ -8963,8 +8976,9 @@ export interface PostMenuV4BrandItemsSearchBody {
8963
8976
  }
8964
8977
 
8965
8978
  export interface PostMenuV4BrandItemsSearchResponse {
8966
- meta?: FetchMetaDTO;
8967
- results?: FetchEntityWithMenusAndItemsDTO[];
8979
+ meta: FetchMetaDTO;
8980
+ results: FetchEntityWithMenusAndItemsDTO[];
8981
+ [index: string]: any;
8968
8982
  }
8969
8983
 
8970
8984
  export interface PostMenuV4BrandItemsSearchRequest extends BaseRequest {
@@ -11066,8 +11080,9 @@ export interface PostMenuV4StationsMenusFetchBody {
11066
11080
  }
11067
11081
 
11068
11082
  export interface PostMenuV4StationsMenusFetchResponse {
11069
- meta?: FetchMetaDTO;
11070
- results?: FetchStationWithMenusDTO[];
11083
+ meta: FetchMetaDTO;
11084
+ results: FetchStationWithMenusDTO[];
11085
+ [index: string]: any;
11071
11086
  }
11072
11087
 
11073
11088
  export interface PostMenuV4StationsMenusFetchRequest extends BaseRequest {
@@ -11083,8 +11098,9 @@ export interface PostMenuV4StationItemsSearchBody {
11083
11098
  }
11084
11099
 
11085
11100
  export interface PostMenuV4StationItemsSearchResponse {
11086
- meta?: FetchMetaDTO;
11087
- results?: FetchSiteWithStationsDTO[];
11101
+ meta: FetchMetaDTO;
11102
+ results: FetchSiteWithStationsDTO[];
11103
+ [index: string]: any;
11088
11104
  }
11089
11105
 
11090
11106
  export interface PostMenuV4StationItemsSearchRequest extends BaseRequest {