@compassdigital/sdk.typescript 4.674.0 → 4.676.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.674.0",
3
+ "version": "4.676.0",
4
4
  "description": "Compass Digital Labs TypeScript SDK",
5
5
  "type": "commonjs",
6
6
  "main": "./lib/index.js",
@@ -109,9 +109,6 @@ export interface SoftwareIntegrations {
109
109
  transact?: {
110
110
  enabled?: boolean;
111
111
  };
112
- starship?: {
113
- enabled?: boolean;
114
- };
115
112
  grubhub?: {
116
113
  enabled?: boolean;
117
114
  };
@@ -575,8 +575,8 @@ export interface PublishedBrandDTO {
575
575
  posid_segment?: string;
576
576
  auto_push_to_local?: boolean;
577
577
  frictionless_partner?: string;
578
- meta?: Record<string, any>;
579
- supported_languages?: Record<string, any>;
578
+ meta?: BrandMeta;
579
+ supported_languages?: SupportedLanguages;
580
580
  archived_at?: string;
581
581
  version?: number;
582
582
  permissions?: Record<string, any>;
@@ -679,7 +679,7 @@ export interface FilterFieldDTO {
679
679
  // Can be combined with other operators (such as '{ key : { $not : { $more_than: 2 } } }')
680
680
  $not?: string;
681
681
  $in?: string[];
682
- $and?: Record<string, any>[];
682
+ $and?: FilterFieldDTO[];
683
683
  $array_contains?: string[];
684
684
  $contains?: string;
685
685
  }
@@ -758,10 +758,10 @@ export interface BrandChangeDTO {
758
758
  }
759
759
 
760
760
  export interface DraftMenuDTO {
761
- parent?: Record<string, any>;
762
- children?: Record<string, any>[];
761
+ parent?: DraftMenuDTO;
762
+ children?: DraftMenuDTO[];
763
763
  categories?: DraftCategoryDTO[];
764
- stocks?: Record<string, any>[];
764
+ stocks?: StockDTO[];
765
765
  station_id?: string;
766
766
  price_level_id?: string;
767
767
  id?: string;
@@ -777,8 +777,8 @@ export interface DraftMenuDTO {
777
777
  brand?: DraftBrandDTO;
778
778
  changes?: MenuChangeDTO[];
779
779
  vendor_metadata?: VendorMetadataDTO[];
780
- menu_category_items?: Record<string, any>[];
781
- attachments?: Record<string, any>;
780
+ menu_category_items?: MenuCategoryItemsDTO[];
781
+ attachments?: FileAttachmentsDTO;
782
782
  permissions?: Record<string, any>;
783
783
  [index: string]: any;
784
784
  }
@@ -788,8 +788,8 @@ export interface NameTranslation {
788
788
  }
789
789
 
790
790
  export interface DraftCategoryDTO {
791
- parent?: Record<string, any>;
792
- children?: Record<string, any>[];
791
+ parent?: DraftCategoryDTO;
792
+ children?: DraftCategoryDTO[];
793
793
  id?: string;
794
794
  created_at?: string;
795
795
  updated_at?: string;
@@ -801,23 +801,23 @@ export interface DraftCategoryDTO {
801
801
  is_active?: boolean;
802
802
  brand_id?: string;
803
803
  menu_id?: string;
804
- translation?: Record<string, any>;
804
+ translation?: NameTranslation;
805
805
  applied_diff_snapshot?: Record<string, any>;
806
806
  version?: number;
807
- menu?: Record<string, any>;
807
+ menu?: DraftMenuDTO;
808
808
  items?: DraftCategoryToItemRelationshipDTO[];
809
809
  brand?: DraftBrandDTO;
810
810
  changes?: CategoryChangeDTO[];
811
811
  vendor_metadata?: VendorMetadataDTO[];
812
- menu_category_items?: Record<string, any>[];
813
- attachments?: Record<string, any>;
812
+ menu_category_items?: MenuCategoryItemsDTO[];
813
+ attachments?: FileAttachmentsDTO;
814
814
  permissions?: Record<string, any>;
815
815
  [index: string]: any;
816
816
  }
817
817
 
818
818
  export interface DraftCategoryToItemRelationshipDTO {
819
- parent?: Record<string, any>;
820
- children?: Record<string, any>[];
819
+ parent?: DraftCategoryToItemRelationshipDTO;
820
+ children?: DraftCategoryToItemRelationshipDTO[];
821
821
  id?: string;
822
822
  created_at?: string;
823
823
  updated_at?: string;
@@ -829,7 +829,7 @@ export interface DraftCategoryToItemRelationshipDTO {
829
829
  sequence?: number;
830
830
  applied_diff_snapshot?: Record<string, any>;
831
831
  version?: number;
832
- category?: Record<string, any>;
832
+ category?: DraftCategoryDTO;
833
833
  item?: DraftItemDTO;
834
834
  brand?: DraftBrandDTO;
835
835
  changes?: CategoryToItemRelationshipChangeDTO[];
@@ -840,8 +840,8 @@ export interface DraftCategoryToItemRelationshipDTO {
840
840
 
841
841
  export interface DraftItemDTO {
842
842
  is_published?: boolean;
843
- parent?: Record<string, any>;
844
- children?: Record<string, any>[];
843
+ parent?: DraftItemDTO;
844
+ children?: DraftItemDTO[];
845
845
  modifier_groups?: DraftItemToModifierGroupRelationshipDTO[];
846
846
  cpg_item?: UniversalItemDTO;
847
847
  stocks?: StockDTO[];
@@ -856,7 +856,7 @@ export interface DraftItemDTO {
856
856
  name_on_pos?: string;
857
857
  label?: string;
858
858
  description?: string;
859
- reporting?: Record<string, any>;
859
+ reporting?: ReportingMetadataDTO;
860
860
  price?: number;
861
861
  barcode?: string;
862
862
  calories?: number;
@@ -869,7 +869,7 @@ export interface DraftItemDTO {
869
869
  brand_id?: string;
870
870
  line_route?: string;
871
871
  posid_segment?: number;
872
- menu_works?: Record<string, any>;
872
+ menu_works?: MenuWorksDTO;
873
873
  is_out_of_stock?: boolean;
874
874
  tax_tag_code?: string;
875
875
  tags?: string[];
@@ -883,19 +883,19 @@ export interface DraftItemDTO {
883
883
  applied_diff_snapshot?: Record<string, any>;
884
884
  version?: number;
885
885
  brand?: DraftBrandDTO;
886
- categories?: Record<string, any>[];
886
+ categories?: DraftCategoryToItemRelationshipDTO[];
887
887
  changes?: ItemChangeDTO[];
888
888
  vendor_metadata?: VendorMetadataDTO[];
889
889
  menu_category_items?: MenuCategoryItemsDTO[];
890
- attachments?: Record<string, any>;
891
- weight?: Record<string, any>;
890
+ attachments?: FileAttachmentsDTO;
891
+ weight?: WeightDTO;
892
892
  permissions?: Record<string, any>;
893
893
  [index: string]: any;
894
894
  }
895
895
 
896
896
  export interface DraftItemToModifierGroupRelationshipDTO {
897
- parent?: Record<string, any>;
898
- children?: Record<string, any>[];
897
+ parent?: DraftItemToModifierGroupRelationshipDTO;
898
+ children?: DraftItemToModifierGroupRelationshipDTO[];
899
899
  id?: string;
900
900
  created_at?: string;
901
901
  updated_at?: string;
@@ -907,7 +907,7 @@ export interface DraftItemToModifierGroupRelationshipDTO {
907
907
  sequence?: number;
908
908
  applied_diff_snapshot?: Record<string, any>;
909
909
  version?: number;
910
- item?: Record<string, any>;
910
+ item?: DraftItemDTO;
911
911
  modifier_group?: DraftModifierGroupDTO;
912
912
  brand?: DraftBrandDTO;
913
913
  changes?: ItemToModifierGroupRelationshipChangeDTO[];
@@ -917,10 +917,10 @@ export interface DraftItemToModifierGroupRelationshipDTO {
917
917
  }
918
918
 
919
919
  export interface DraftModifierGroupDTO {
920
- parent?: Record<string, any>;
921
- children?: Record<string, any>[];
920
+ parent?: DraftModifierGroupDTO;
921
+ children?: DraftModifierGroupDTO[];
922
922
  modifiers?: DraftModifierGroupToModifierRelationshipDTO[];
923
- items?: Record<string, any>[];
923
+ items?: DraftItemToModifierGroupRelationshipDTO[];
924
924
  id?: string;
925
925
  created_at?: string;
926
926
  updated_at?: string;
@@ -937,7 +937,7 @@ export interface DraftModifierGroupDTO {
937
937
  sizing?: string;
938
938
  is_out_of_stock?: boolean;
939
939
  is_incremental?: boolean;
940
- translation?: Record<string, any>;
940
+ translation?: NameTranslation;
941
941
  applied_diff_snapshot?: Record<string, any>;
942
942
  version?: number;
943
943
  brand?: DraftBrandDTO;
@@ -948,8 +948,8 @@ export interface DraftModifierGroupDTO {
948
948
  }
949
949
 
950
950
  export interface DraftModifierGroupToModifierRelationshipDTO {
951
- parent?: Record<string, any>;
952
- children?: Record<string, any>[];
951
+ parent?: DraftModifierGroupToModifierRelationshipDTO;
952
+ children?: DraftModifierGroupToModifierRelationshipDTO[];
953
953
  id?: string;
954
954
  created_at?: string;
955
955
  updated_at?: string;
@@ -962,7 +962,7 @@ export interface DraftModifierGroupToModifierRelationshipDTO {
962
962
  applied_diff_snapshot?: Record<string, any>;
963
963
  version?: number;
964
964
  modifier?: DraftModifierDTO;
965
- modifier_group?: Record<string, any>;
965
+ modifier_group?: DraftModifierGroupDTO;
966
966
  brand?: DraftBrandDTO;
967
967
  changes?: ModifierGroupToModifierRelationshipChangeDTO[];
968
968
  vendor_metadata?: VendorMetadataDTO[];
@@ -971,9 +971,9 @@ export interface DraftModifierGroupToModifierRelationshipDTO {
971
971
  }
972
972
 
973
973
  export interface DraftModifierDTO {
974
- parent?: Record<string, any>;
975
- children?: Record<string, any>[];
976
- modifier_groups?: Record<string, any>[];
974
+ parent?: DraftModifierDTO;
975
+ children?: DraftModifierDTO[];
976
+ modifier_groups?: DraftModifierGroupToModifierRelationshipDTO[];
977
977
  id?: string;
978
978
  created_at?: string;
979
979
  updated_at?: string;
@@ -1029,7 +1029,7 @@ export interface ModifierChangeDTO {
1029
1029
  delete?: Record<string, any>;
1030
1030
  snapshot_entity_id?: string;
1031
1031
  version?: number;
1032
- snapshot_entity?: Record<string, any>;
1032
+ snapshot_entity?: DraftModifierDTO;
1033
1033
  permissions?: Record<string, any>;
1034
1034
  [index: string]: any;
1035
1035
  }
@@ -1082,16 +1082,16 @@ export interface AllergenDTO {
1082
1082
 
1083
1083
  export interface NutritionDTO {
1084
1084
  calories?: NutritionValueDTO;
1085
- total_fat?: Record<string, any>;
1086
- saturated_fat?: Record<string, any>;
1087
- total_carbohydrate?: Record<string, any>;
1088
- total_sugars?: Record<string, any>;
1089
- protein?: Record<string, any>;
1090
- dietary_fiber?: Record<string, any>;
1091
- sodium?: Record<string, any>;
1092
- trans_fat?: Record<string, any>;
1093
- cholesterol?: Record<string, any>;
1094
- added_sugars?: Record<string, any>;
1085
+ total_fat?: NutritionValueDTO;
1086
+ saturated_fat?: NutritionValueDTO;
1087
+ total_carbohydrate?: NutritionValueDTO;
1088
+ total_sugars?: NutritionValueDTO;
1089
+ protein?: NutritionValueDTO;
1090
+ dietary_fiber?: NutritionValueDTO;
1091
+ sodium?: NutritionValueDTO;
1092
+ trans_fat?: NutritionValueDTO;
1093
+ cholesterol?: NutritionValueDTO;
1094
+ added_sugars?: NutritionValueDTO;
1095
1095
  [index: string]: any;
1096
1096
  }
1097
1097
 
@@ -1118,7 +1118,7 @@ export interface ModifierGroupToModifierRelationshipChangeDTO {
1118
1118
  delete?: Record<string, any>;
1119
1119
  snapshot_entity_id?: string;
1120
1120
  version?: number;
1121
- snapshot_entity?: Record<string, any>;
1121
+ snapshot_entity?: DraftModifierGroupToModifierRelationshipDTO;
1122
1122
  permissions?: Record<string, any>;
1123
1123
  [index: string]: any;
1124
1124
  }
@@ -1132,7 +1132,7 @@ export interface ModifierGroupChangeDTO {
1132
1132
  delete?: Record<string, any>;
1133
1133
  snapshot_entity_id?: string;
1134
1134
  version?: number;
1135
- snapshot_entity?: Record<string, any>;
1135
+ snapshot_entity?: DraftModifierGroupDTO;
1136
1136
  permissions?: Record<string, any>;
1137
1137
  [index: string]: any;
1138
1138
  }
@@ -1146,7 +1146,7 @@ export interface ItemToModifierGroupRelationshipChangeDTO {
1146
1146
  delete?: Record<string, any>;
1147
1147
  snapshot_entity_id?: string;
1148
1148
  version?: number;
1149
- snapshot_entity?: Record<string, any>;
1149
+ snapshot_entity?: DraftItemToModifierGroupRelationshipDTO;
1150
1150
  permissions?: Record<string, any>;
1151
1151
  [index: string]: any;
1152
1152
  }
@@ -1160,7 +1160,7 @@ export interface ItemChangeDTO {
1160
1160
  delete?: Record<string, any>;
1161
1161
  snapshot_entity_id?: string;
1162
1162
  version?: number;
1163
- snapshot_entity?: Record<string, any>;
1163
+ snapshot_entity?: DraftItemDTO;
1164
1164
  permissions?: Record<string, any>;
1165
1165
  [index: string]: any;
1166
1166
  }
@@ -1194,7 +1194,7 @@ export interface StockDTO {
1194
1194
  deleted_at?: string;
1195
1195
  business_unit_id?: string;
1196
1196
  version?: number;
1197
- menu?: Record<string, any>;
1197
+ menu?: DraftMenuDTO;
1198
1198
  brand?: DraftBrandDTO;
1199
1199
  permissions?: Record<string, any>;
1200
1200
  [index: string]: any;
@@ -1210,9 +1210,9 @@ export interface MenuCategoryItemsDTO {
1210
1210
  updated_at?: string;
1211
1211
  deleted_at?: string;
1212
1212
  version?: number;
1213
- item?: Record<string, any>;
1214
- menu?: Record<string, any>;
1215
- category?: Record<string, any>;
1213
+ item?: DraftItemDTO;
1214
+ menu?: DraftMenuDTO;
1215
+ category?: DraftCategoryDTO;
1216
1216
  brand?: DraftBrandDTO;
1217
1217
  permissions?: Record<string, any>;
1218
1218
  [index: string]: any;
@@ -1227,7 +1227,7 @@ export interface CategoryToItemRelationshipChangeDTO {
1227
1227
  delete?: Record<string, any>;
1228
1228
  snapshot_entity_id?: string;
1229
1229
  version?: number;
1230
- snapshot_entity?: Record<string, any>;
1230
+ snapshot_entity?: DraftCategoryToItemRelationshipDTO;
1231
1231
  permissions?: Record<string, any>;
1232
1232
  [index: string]: any;
1233
1233
  }
@@ -1241,7 +1241,7 @@ export interface CategoryChangeDTO {
1241
1241
  delete?: Record<string, any>;
1242
1242
  snapshot_entity_id?: string;
1243
1243
  version?: number;
1244
- snapshot_entity?: Record<string, any>;
1244
+ snapshot_entity?: DraftCategoryDTO;
1245
1245
  permissions?: Record<string, any>;
1246
1246
  [index: string]: any;
1247
1247
  }
@@ -1255,7 +1255,7 @@ export interface MenuChangeDTO {
1255
1255
  delete?: Record<string, any>;
1256
1256
  snapshot_entity_id?: string;
1257
1257
  version?: number;
1258
- snapshot_entity?: Record<string, any>;
1258
+ snapshot_entity?: DraftMenuDTO;
1259
1259
  permissions?: Record<string, any>;
1260
1260
  [index: string]: any;
1261
1261
  }
@@ -1351,7 +1351,7 @@ export interface GlobalDiffDependencyDTO {
1351
1351
  deleted_at?: string;
1352
1352
  version?: number;
1353
1353
  depends_on?: GlobalDiffDTO;
1354
- is_depended_by?: Record<string, any>;
1354
+ is_depended_by?: GlobalDiffDTO;
1355
1355
  permissions?: Record<string, any>;
1356
1356
  [index: string]: any;
1357
1357
  }
@@ -1371,8 +1371,8 @@ export interface GlobalDiffDTO {
1371
1371
  global_snapshot?: Record<string, any>;
1372
1372
  brand_id?: string;
1373
1373
  version?: number;
1374
- depends_on?: Record<string, any>[];
1375
- is_depended_by?: Record<string, any>[];
1374
+ depends_on?: GlobalDiffDependencyDTO[];
1375
+ is_depended_by?: GlobalDiffDependencyDTO[];
1376
1376
  brand?: DraftBrandDTO;
1377
1377
  permissions?: Record<string, any>;
1378
1378
  [index: string]: any;
@@ -1384,7 +1384,7 @@ export interface DiffDTO {
1384
1384
  created_at?: string;
1385
1385
  updated_at?: string;
1386
1386
  deleted_at?: string;
1387
- child_nodes?: Record<string, any>[];
1387
+ child_nodes?: DiffDTO[];
1388
1388
  name?: string;
1389
1389
  entity_type?: string;
1390
1390
  local_id?: string;
@@ -1619,14 +1619,14 @@ export interface IsStockUpdate {
1619
1619
 
1620
1620
  export interface ModifierGroupStockUpdate {
1621
1621
  id: string;
1622
- is?: Record<string, any>;
1622
+ is?: IsStockUpdate;
1623
1623
  items?: ModifierStockUpdate[];
1624
1624
  [index: string]: any;
1625
1625
  }
1626
1626
 
1627
1627
  export interface ModifierStockUpdate {
1628
1628
  id: string;
1629
- is?: Record<string, any>;
1629
+ is?: IsStockUpdate;
1630
1630
  [index: string]: any;
1631
1631
  }
1632
1632
 
@@ -1657,11 +1657,11 @@ export interface V2CategoryLabelDTO {
1657
1657
 
1658
1658
  export interface V2ItemDTO {
1659
1659
  id?: string;
1660
- label?: Record<string, any>;
1661
- description?: Record<string, any>;
1660
+ label?: V2MenuLabelDTO;
1661
+ description?: V2MenuLabelDTO;
1662
1662
  price?: V2PriceDTO;
1663
1663
  meal_value?: number;
1664
- sale_price?: Record<string, any>;
1664
+ sale_price?: V2PriceDTO;
1665
1665
  unit?: number;
1666
1666
  ingredients?: Record<string, any>;
1667
1667
  amount_off_exclusions?: string[];
@@ -1671,12 +1671,12 @@ export interface V2ItemDTO {
1671
1671
  options?: V2ModifierGroupDTO[];
1672
1672
  required?: boolean;
1673
1673
  special?: boolean;
1674
- category?: Record<string, any>;
1674
+ category?: V2MenuLabelDTO;
1675
1675
  location?: string;
1676
1676
  sku?: number;
1677
1677
  item_number?: number;
1678
1678
  image?: V2ItemImageDTO;
1679
- weight?: Record<string, any>;
1679
+ weight?: V2AmountDTO;
1680
1680
  is_deleted?: boolean;
1681
1681
  is?: V2ItemIsDTO;
1682
1682
  }
@@ -1747,20 +1747,20 @@ export interface V2AmountDTO {
1747
1747
 
1748
1748
  export interface V2ModifierGroupDTO {
1749
1749
  id?: string;
1750
- label?: Record<string, any>;
1750
+ label?: V2MenuLabelDTO;
1751
1751
  unique_name?: string;
1752
1752
  items?: V2ModifierDTO[];
1753
1753
  min?: number;
1754
1754
  max?: number;
1755
- is?: Record<string, any>;
1756
- meta?: Record<string, any>;
1755
+ is?: V2ModifierIsDTO;
1756
+ meta?: V2ModifierMetaDTO;
1757
1757
  }
1758
1758
 
1759
1759
  export interface V2ModifierDTO {
1760
1760
  id?: string;
1761
- label?: Record<string, any>;
1762
- price?: Record<string, any>;
1763
- weight?: Record<string, any>;
1761
+ label?: V2MenuLabelDTO;
1762
+ price?: V2PriceDTO;
1763
+ weight?: V2AmountDTO;
1764
1764
  sku?: string;
1765
1765
  nutrition?: V2ModifierNutritionDTO;
1766
1766
  certified?: V2CertifiedDTO;
@@ -1772,7 +1772,7 @@ export interface V2ModifierDTO {
1772
1772
 
1773
1773
  export interface V2ModifierNutritionDTO {
1774
1774
  kcal?: number;
1775
- calories?: Record<string, any>;
1775
+ calories?: V2AmountDTO;
1776
1776
  }
1777
1777
 
1778
1778
  export interface V2CertifiedDTO {
@@ -1786,7 +1786,7 @@ export interface V2ModifierSetsDTO {
1786
1786
 
1787
1787
  export interface V2ModifierMetaDTO {
1788
1788
  sort_number?: number;
1789
- menu_sort_number?: Record<string, any>;
1789
+ menu_sort_number?: V2AmountDTO;
1790
1790
  }
1791
1791
 
1792
1792
  export interface V2ModifierIsDTO {
@@ -1815,9 +1815,9 @@ export interface V2CategoryIsDTO {
1815
1815
  }
1816
1816
 
1817
1817
  export interface V2CategoryMetaDTO {
1818
- original_label?: Record<string, any>;
1818
+ original_label?: V2MenuLabelDTO;
1819
1819
  sort_number?: number;
1820
- menu_sort_number?: Record<string, any>;
1820
+ menu_sort_number?: V2AmountDTO;
1821
1821
  }
1822
1822
 
1823
1823
  export interface V2MenuIsDTO {