@compassdigital/sdk.typescript 4.134.0 → 4.136.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.
@@ -427,6 +427,10 @@ export interface GlobalMenuGroupDTO {
427
427
  price_levels?: Record<string, any>;
428
428
  show_v4?: boolean;
429
429
  id?: string;
430
+ created_at?: string;
431
+ updated_at?: string;
432
+ deleted_at?: string;
433
+ version?: number;
430
434
  permissions?: Record<string, any>;
431
435
  [index: string]: any;
432
436
  }
@@ -435,6 +439,9 @@ export interface DraftBrandDTO {
435
439
  catalog_id?: number;
436
440
  published_catalog_id?: number;
437
441
  id?: string;
442
+ created_at?: string;
443
+ updated_at?: string;
444
+ deleted_at?: string;
438
445
  name?: string;
439
446
  description?: string;
440
447
  is_active?: boolean;
@@ -448,6 +455,7 @@ export interface DraftBrandDTO {
448
455
  frictionless_partner?: string;
449
456
  meta?: BrandMeta;
450
457
  applied_diff_snapshot?: Record<string, any>;
458
+ version?: number;
451
459
  permissions?: Record<string, any>;
452
460
  [index: string]: any;
453
461
  }
@@ -459,6 +467,9 @@ export interface BrandMeta {
459
467
  export interface PublishedBrandDTO {
460
468
  published_catalog_id?: number;
461
469
  id?: string;
470
+ created_at?: string;
471
+ updated_at?: string;
472
+ deleted_at?: string;
462
473
  name?: string;
463
474
  description?: string;
464
475
  is_active?: boolean;
@@ -471,12 +482,16 @@ export interface PublishedBrandDTO {
471
482
  auto_push_to_local?: boolean;
472
483
  frictionless_partner?: string;
473
484
  meta?: Record<string, any>;
485
+ version?: number;
474
486
  permissions?: Record<string, any>;
475
487
  [index: string]: any;
476
488
  }
477
489
 
478
490
  export interface VendorMetadataDTO {
479
491
  id?: string;
492
+ created_at?: string;
493
+ updated_at?: string;
494
+ deleted_at?: string;
480
495
  vendor_name?: string;
481
496
  name?: string;
482
497
  value?: string;
@@ -491,6 +506,7 @@ export interface VendorMetadataDTO {
491
506
  modifier_group_id?: string;
492
507
  modifier_group_to_modifier_relationship_id?: string;
493
508
  modifier_id?: string;
509
+ version?: number;
494
510
  permissions?: Record<string, any>;
495
511
  [index: string]: any;
496
512
  }
@@ -599,9 +615,13 @@ export interface LocalMenuGroupDTO {
599
615
 
600
616
  export interface BrandChangeDTO {
601
617
  id?: string;
618
+ created_at?: string;
619
+ updated_at?: string;
620
+ deleted_at?: string;
602
621
  insert?: Record<string, any>;
603
622
  delete?: Record<string, any>;
604
623
  snapshot_entity_id?: string;
624
+ version?: number;
605
625
  snapshot_entity?: DraftBrandDTO;
606
626
  permissions?: Record<string, any>;
607
627
  [index: string]: any;
@@ -615,10 +635,14 @@ export interface DraftMenuDTO {
615
635
  station_id?: string;
616
636
  price_level_id?: string;
617
637
  id?: string;
638
+ created_at?: string;
639
+ updated_at?: string;
640
+ deleted_at?: string;
618
641
  parent_id?: string;
619
642
  name?: string;
620
643
  brand_id?: string;
621
644
  applied_diff_snapshot?: Record<string, any>;
645
+ version?: number;
622
646
  brand?: DraftBrandDTO;
623
647
  changes?: MenuChangeDTO[];
624
648
  vendor_metadata?: VendorMetadataDTO[];
@@ -630,6 +654,9 @@ export interface DraftCategoryDTO {
630
654
  parent?: Record<string, any>;
631
655
  children?: Record<string, any>[];
632
656
  id?: string;
657
+ created_at?: string;
658
+ updated_at?: string;
659
+ deleted_at?: string;
633
660
  parent_id?: string;
634
661
  name?: string;
635
662
  label?: string;
@@ -638,6 +665,7 @@ export interface DraftCategoryDTO {
638
665
  brand_id?: string;
639
666
  menu_id?: string;
640
667
  applied_diff_snapshot?: Record<string, any>;
668
+ version?: number;
641
669
  menu?: Record<string, any>;
642
670
  items?: DraftCategoryToItemRelationshipDTO[];
643
671
  brand?: DraftBrandDTO;
@@ -652,12 +680,16 @@ export interface DraftCategoryToItemRelationshipDTO {
652
680
  parent?: Record<string, any>;
653
681
  children?: Record<string, any>[];
654
682
  id?: string;
683
+ created_at?: string;
684
+ updated_at?: string;
685
+ deleted_at?: string;
655
686
  parent_id?: string;
656
687
  item_id?: string;
657
688
  category_id?: string;
658
689
  brand_id?: string;
659
690
  sequence?: number;
660
691
  applied_diff_snapshot?: Record<string, any>;
692
+ version?: number;
661
693
  category?: Record<string, any>;
662
694
  item?: DraftItemDTO;
663
695
  brand?: DraftBrandDTO;
@@ -675,6 +707,9 @@ export interface DraftItemDTO {
675
707
  cpg_item?: UniversalItemDTO;
676
708
  stocks?: StockDTO[];
677
709
  id?: string;
710
+ created_at?: string;
711
+ updated_at?: string;
712
+ deleted_at?: string;
678
713
  parent_id?: string;
679
714
  name?: string;
680
715
  name_on_receipt?: string;
@@ -702,6 +737,7 @@ export interface DraftItemDTO {
702
737
  cpg_item_id?: string;
703
738
  price_levels?: Record<string, any>;
704
739
  applied_diff_snapshot?: Record<string, any>;
740
+ version?: number;
705
741
  brand?: DraftBrandDTO;
706
742
  categories?: Record<string, any>[];
707
743
  changes?: ItemChangeDTO[];
@@ -716,12 +752,16 @@ export interface DraftItemToModifierGroupRelationshipDTO {
716
752
  parent?: Record<string, any>;
717
753
  children?: Record<string, any>[];
718
754
  id?: string;
755
+ created_at?: string;
756
+ updated_at?: string;
757
+ deleted_at?: string;
719
758
  parent_id?: string;
720
759
  modifier_group_id?: string;
721
760
  item_id?: string;
722
761
  brand_id?: string;
723
762
  sequence?: number;
724
763
  applied_diff_snapshot?: Record<string, any>;
764
+ version?: number;
725
765
  item?: Record<string, any>;
726
766
  modifier_group?: DraftModifierGroupDTO;
727
767
  brand?: DraftBrandDTO;
@@ -737,6 +777,9 @@ export interface DraftModifierGroupDTO {
737
777
  modifiers?: DraftModifierGroupToModifierRelationshipDTO[];
738
778
  items?: Record<string, any>[];
739
779
  id?: string;
780
+ created_at?: string;
781
+ updated_at?: string;
782
+ deleted_at?: string;
740
783
  parent_id?: string;
741
784
  name?: string;
742
785
  label?: string;
@@ -750,6 +793,7 @@ export interface DraftModifierGroupDTO {
750
793
  is_out_of_stock?: boolean;
751
794
  is_incremental?: boolean;
752
795
  applied_diff_snapshot?: Record<string, any>;
796
+ version?: number;
753
797
  brand?: DraftBrandDTO;
754
798
  changes?: ModifierGroupChangeDTO[];
755
799
  vendor_metadata?: VendorMetadataDTO[];
@@ -761,12 +805,16 @@ export interface DraftModifierGroupToModifierRelationshipDTO {
761
805
  parent?: Record<string, any>;
762
806
  children?: Record<string, any>[];
763
807
  id?: string;
808
+ created_at?: string;
809
+ updated_at?: string;
810
+ deleted_at?: string;
764
811
  parent_id?: string;
765
812
  modifier_id?: string;
766
813
  modifier_group_id?: string;
767
814
  brand_id?: string;
768
815
  sequence?: number;
769
816
  applied_diff_snapshot?: Record<string, any>;
817
+ version?: number;
770
818
  modifier?: DraftModifierDTO;
771
819
  modifier_group?: Record<string, any>;
772
820
  brand?: DraftBrandDTO;
@@ -781,6 +829,9 @@ export interface DraftModifierDTO {
781
829
  children?: Record<string, any>[];
782
830
  modifier_groups?: Record<string, any>[];
783
831
  id?: string;
832
+ created_at?: string;
833
+ updated_at?: string;
834
+ deleted_at?: string;
784
835
  parent_id?: string;
785
836
  name?: string;
786
837
  name_on_receipt?: string;
@@ -808,6 +859,7 @@ export interface DraftModifierDTO {
808
859
  unique_id?: number;
809
860
  price_levels?: Record<string, any>;
810
861
  applied_diff_snapshot?: Record<string, any>;
862
+ version?: number;
811
863
  brand?: DraftBrandDTO;
812
864
  changes?: ModifierChangeDTO[];
813
865
  vendor_metadata?: VendorMetadataDTO[];
@@ -819,9 +871,13 @@ export interface DraftModifierDTO {
819
871
 
820
872
  export interface ModifierChangeDTO {
821
873
  id?: string;
874
+ created_at?: string;
875
+ updated_at?: string;
876
+ deleted_at?: string;
822
877
  insert?: Record<string, any>;
823
878
  delete?: Record<string, any>;
824
879
  snapshot_entity_id?: string;
880
+ version?: number;
825
881
  snapshot_entity?: Record<string, any>;
826
882
  permissions?: Record<string, any>;
827
883
  [index: string]: any;
@@ -864,9 +920,13 @@ export interface MenuWorksDTO {
864
920
 
865
921
  export interface ModifierGroupToModifierRelationshipChangeDTO {
866
922
  id?: string;
923
+ created_at?: string;
924
+ updated_at?: string;
925
+ deleted_at?: string;
867
926
  insert?: Record<string, any>;
868
927
  delete?: Record<string, any>;
869
928
  snapshot_entity_id?: string;
929
+ version?: number;
870
930
  snapshot_entity?: Record<string, any>;
871
931
  permissions?: Record<string, any>;
872
932
  [index: string]: any;
@@ -874,9 +934,13 @@ export interface ModifierGroupToModifierRelationshipChangeDTO {
874
934
 
875
935
  export interface ModifierGroupChangeDTO {
876
936
  id?: string;
937
+ created_at?: string;
938
+ updated_at?: string;
939
+ deleted_at?: string;
877
940
  insert?: Record<string, any>;
878
941
  delete?: Record<string, any>;
879
942
  snapshot_entity_id?: string;
943
+ version?: number;
880
944
  snapshot_entity?: Record<string, any>;
881
945
  permissions?: Record<string, any>;
882
946
  [index: string]: any;
@@ -884,9 +948,13 @@ export interface ModifierGroupChangeDTO {
884
948
 
885
949
  export interface ItemToModifierGroupRelationshipChangeDTO {
886
950
  id?: string;
951
+ created_at?: string;
952
+ updated_at?: string;
953
+ deleted_at?: string;
887
954
  insert?: Record<string, any>;
888
955
  delete?: Record<string, any>;
889
956
  snapshot_entity_id?: string;
957
+ version?: number;
890
958
  snapshot_entity?: Record<string, any>;
891
959
  permissions?: Record<string, any>;
892
960
  [index: string]: any;
@@ -894,9 +962,13 @@ export interface ItemToModifierGroupRelationshipChangeDTO {
894
962
 
895
963
  export interface ItemChangeDTO {
896
964
  id?: string;
965
+ created_at?: string;
966
+ updated_at?: string;
967
+ deleted_at?: string;
897
968
  insert?: Record<string, any>;
898
969
  delete?: Record<string, any>;
899
970
  snapshot_entity_id?: string;
971
+ version?: number;
900
972
  snapshot_entity?: Record<string, any>;
901
973
  permissions?: Record<string, any>;
902
974
  [index: string]: any;
@@ -907,6 +979,8 @@ export interface UniversalItemDTO {
907
979
  barcode?: string;
908
980
  name?: string;
909
981
  description?: string;
982
+ created_at?: string;
983
+ updated_at?: string;
910
984
  is_verified?: boolean;
911
985
  verified_at?: string;
912
986
  verified_by?: string;
@@ -924,7 +998,11 @@ export interface StockDTO {
924
998
  menu_id?: string;
925
999
  brand_id?: string;
926
1000
  id?: string;
1001
+ created_at?: string;
1002
+ updated_at?: string;
1003
+ deleted_at?: string;
927
1004
  business_unit_id?: string;
1005
+ version?: number;
928
1006
  menu?: Record<string, any>;
929
1007
  brand?: DraftBrandDTO;
930
1008
  permissions?: Record<string, any>;
@@ -933,9 +1011,13 @@ export interface StockDTO {
933
1011
 
934
1012
  export interface CategoryToItemRelationshipChangeDTO {
935
1013
  id?: string;
1014
+ created_at?: string;
1015
+ updated_at?: string;
1016
+ deleted_at?: string;
936
1017
  insert?: Record<string, any>;
937
1018
  delete?: Record<string, any>;
938
1019
  snapshot_entity_id?: string;
1020
+ version?: number;
939
1021
  snapshot_entity?: Record<string, any>;
940
1022
  permissions?: Record<string, any>;
941
1023
  [index: string]: any;
@@ -943,9 +1025,13 @@ export interface CategoryToItemRelationshipChangeDTO {
943
1025
 
944
1026
  export interface CategoryChangeDTO {
945
1027
  id?: string;
1028
+ created_at?: string;
1029
+ updated_at?: string;
1030
+ deleted_at?: string;
946
1031
  insert?: Record<string, any>;
947
1032
  delete?: Record<string, any>;
948
1033
  snapshot_entity_id?: string;
1034
+ version?: number;
949
1035
  snapshot_entity?: Record<string, any>;
950
1036
  permissions?: Record<string, any>;
951
1037
  [index: string]: any;
@@ -953,9 +1039,13 @@ export interface CategoryChangeDTO {
953
1039
 
954
1040
  export interface MenuChangeDTO {
955
1041
  id?: string;
1042
+ created_at?: string;
1043
+ updated_at?: string;
1044
+ deleted_at?: string;
956
1045
  insert?: Record<string, any>;
957
1046
  delete?: Record<string, any>;
958
1047
  snapshot_entity_id?: string;
1048
+ version?: number;
959
1049
  snapshot_entity?: Record<string, any>;
960
1050
  permissions?: Record<string, any>;
961
1051
  [index: string]: any;
@@ -967,6 +1057,10 @@ export interface BrandStatusDTO {
967
1057
  status?: string;
968
1058
  metadata?: Record<string, any>;
969
1059
  id?: string;
1060
+ created_at?: string;
1061
+ updated_at?: string;
1062
+ deleted_at?: string;
1063
+ version?: number;
970
1064
  brand?: DraftBrandDTO;
971
1065
  permissions?: Record<string, any>;
972
1066
  [index: string]: any;
@@ -979,9 +1073,13 @@ export interface AuditDTO {
979
1073
  status?: string;
980
1074
  message?: string;
981
1075
  id?: string;
1076
+ created_at?: string;
1077
+ updated_at?: string;
1078
+ deleted_at?: string;
982
1079
  data?: Record<string, any>;
983
1080
  s3_link?: string;
984
1081
  email?: string;
1082
+ version?: number;
985
1083
  brand?: DraftBrandDTO;
986
1084
  permissions?: Record<string, any>;
987
1085
  [index: string]: any;
@@ -1042,6 +1140,10 @@ export interface GlobalDiffDependencyDTO {
1042
1140
  depends_on_id?: string;
1043
1141
  is_depended_by_id?: string;
1044
1142
  id?: string;
1143
+ created_at?: string;
1144
+ updated_at?: string;
1145
+ deleted_at?: string;
1146
+ version?: number;
1045
1147
  depends_on?: GlobalDiffDTO;
1046
1148
  is_depended_by?: Record<string, any>;
1047
1149
  permissions?: Record<string, any>;
@@ -1051,6 +1153,9 @@ export interface GlobalDiffDependencyDTO {
1051
1153
  export interface GlobalDiffDTO {
1052
1154
  action?: 'create' | 'update' | 'delete';
1053
1155
  id?: string;
1156
+ created_at?: string;
1157
+ updated_at?: string;
1158
+ deleted_at?: string;
1054
1159
  entity_type?: string;
1055
1160
  local_id?: string;
1056
1161
  changes?: Record<string, any>;
@@ -1059,6 +1164,7 @@ export interface GlobalDiffDTO {
1059
1164
  global_id?: string;
1060
1165
  global_snapshot?: Record<string, any>;
1061
1166
  brand_id?: string;
1167
+ version?: number;
1062
1168
  depends_on?: Record<string, any>[];
1063
1169
  is_depended_by?: Record<string, any>[];
1064
1170
  brand?: DraftBrandDTO;
@@ -1112,15 +1218,22 @@ export interface WarningItemDTO {
1112
1218
 
1113
1219
  export interface PublishedMenuDTO {
1114
1220
  id?: string;
1221
+ created_at?: string;
1222
+ updated_at?: string;
1223
+ deleted_at?: string;
1115
1224
  parent_id?: string;
1116
1225
  name?: string;
1117
1226
  brand_id?: string;
1227
+ version?: number;
1118
1228
  permissions?: Record<string, any>;
1119
1229
  [index: string]: any;
1120
1230
  }
1121
1231
 
1122
1232
  export interface PublishedCategoryDTO {
1123
1233
  id?: string;
1234
+ created_at?: string;
1235
+ updated_at?: string;
1236
+ deleted_at?: string;
1124
1237
  parent_id?: string;
1125
1238
  name?: string;
1126
1239
  label?: string;
@@ -1128,17 +1241,22 @@ export interface PublishedCategoryDTO {
1128
1241
  is_active?: boolean;
1129
1242
  brand_id?: string;
1130
1243
  menu_id?: string;
1244
+ version?: number;
1131
1245
  permissions?: Record<string, any>;
1132
1246
  [index: string]: any;
1133
1247
  }
1134
1248
 
1135
1249
  export interface PublishedCategoryToItemRelationshipDTO {
1136
1250
  id?: string;
1251
+ created_at?: string;
1252
+ updated_at?: string;
1253
+ deleted_at?: string;
1137
1254
  parent_id?: string;
1138
1255
  item_id?: string;
1139
1256
  category_id?: string;
1140
1257
  brand_id?: string;
1141
1258
  sequence?: number;
1259
+ version?: number;
1142
1260
  permissions?: Record<string, any>;
1143
1261
  [index: string]: any;
1144
1262
  }
@@ -1146,6 +1264,9 @@ export interface PublishedCategoryToItemRelationshipDTO {
1146
1264
  export interface PublishedItemDTO {
1147
1265
  unique_id?: number;
1148
1266
  id?: string;
1267
+ created_at?: string;
1268
+ updated_at?: string;
1269
+ deleted_at?: string;
1149
1270
  parent_id?: string;
1150
1271
  name?: string;
1151
1272
  name_on_receipt?: string;
@@ -1169,23 +1290,31 @@ export interface PublishedItemDTO {
1169
1290
  tax_jwo_code?: string;
1170
1291
  cpg_item_id?: string;
1171
1292
  price_levels?: Record<string, any>;
1293
+ version?: number;
1172
1294
  permissions?: Record<string, any>;
1173
1295
  [index: string]: any;
1174
1296
  }
1175
1297
 
1176
1298
  export interface PublishedItemToModifierGroupRelationshipDTO {
1177
1299
  id?: string;
1300
+ created_at?: string;
1301
+ updated_at?: string;
1302
+ deleted_at?: string;
1178
1303
  parent_id?: string;
1179
1304
  modifier_group_id?: string;
1180
1305
  item_id?: string;
1181
1306
  brand_id?: string;
1182
1307
  sequence?: number;
1308
+ version?: number;
1183
1309
  permissions?: Record<string, any>;
1184
1310
  [index: string]: any;
1185
1311
  }
1186
1312
 
1187
1313
  export interface PublishedModifierGroupDTO {
1188
1314
  id?: string;
1315
+ created_at?: string;
1316
+ updated_at?: string;
1317
+ deleted_at?: string;
1189
1318
  parent_id?: string;
1190
1319
  name?: string;
1191
1320
  label?: string;
@@ -1198,17 +1327,22 @@ export interface PublishedModifierGroupDTO {
1198
1327
  sizing?: string;
1199
1328
  is_out_of_stock?: boolean;
1200
1329
  is_incremental?: boolean;
1330
+ version?: number;
1201
1331
  permissions?: Record<string, any>;
1202
1332
  [index: string]: any;
1203
1333
  }
1204
1334
 
1205
1335
  export interface PublishedModifierGroupToModifierRelationshipDTO {
1206
1336
  id?: string;
1337
+ created_at?: string;
1338
+ updated_at?: string;
1339
+ deleted_at?: string;
1207
1340
  parent_id?: string;
1208
1341
  modifier_id?: string;
1209
1342
  modifier_group_id?: string;
1210
1343
  brand_id?: string;
1211
1344
  sequence?: number;
1345
+ version?: number;
1212
1346
  permissions?: Record<string, any>;
1213
1347
  [index: string]: any;
1214
1348
  }
@@ -1216,6 +1350,9 @@ export interface PublishedModifierGroupToModifierRelationshipDTO {
1216
1350
  export interface PublishedModifierDTO {
1217
1351
  unique_id?: number;
1218
1352
  id?: string;
1353
+ created_at?: string;
1354
+ updated_at?: string;
1355
+ deleted_at?: string;
1219
1356
  parent_id?: string;
1220
1357
  name?: string;
1221
1358
  name_on_receipt?: string;
@@ -1239,6 +1376,7 @@ export interface PublishedModifierDTO {
1239
1376
  tax_tag_code?: string;
1240
1377
  tags?: string[];
1241
1378
  price_levels?: Record<string, any>;
1379
+ version?: number;
1242
1380
  permissions?: Record<string, any>;
1243
1381
  [index: string]: any;
1244
1382
  }
@@ -7916,11 +8054,18 @@ export interface PostMenuV4BrandV3ToV4Path {
7916
8054
  id: string;
7917
8055
  }
7918
8056
 
8057
+ export interface PostMenuV4BrandV3ToV4Query {
8058
+ migrate_schedule?: boolean;
8059
+ }
8060
+
7919
8061
  export interface PostMenuV4BrandV3ToV4Response {
7920
8062
  status?: string;
7921
8063
  }
7922
8064
 
7923
- export interface PostMenuV4BrandV3ToV4Request extends BaseRequest, PostMenuV4BrandV3ToV4Path {}
8065
+ export interface PostMenuV4BrandV3ToV4Request
8066
+ extends BaseRequest,
8067
+ RequestQuery<PostMenuV4BrandV3ToV4Query>,
8068
+ PostMenuV4BrandV3ToV4Path {}
7924
8069
 
7925
8070
  // POST /menu/v4/brand/{brand_id}/category/{category_id}/duplicate
7926
8071
 
@@ -244,6 +244,10 @@ export interface Redeemable {
244
244
  discount?: AppliedDiscount;
245
245
  [index: string]: any;
246
246
  };
247
+ order?: {
248
+ total_applied_discount_amount?: number;
249
+ [index: string]: any;
250
+ };
247
251
  [index: string]: any;
248
252
  }
249
253
 
@@ -99,14 +99,12 @@ export interface Vendor {
99
99
  reset_token?: string;
100
100
  [index: string]: any;
101
101
  };
102
- domain?: string;
103
102
  }
104
103
 
105
104
  export interface VendorPostBody {
106
105
  name: string;
107
106
  description?: string;
108
107
  email: string;
109
- domain?: string;
110
108
  phone?: string;
111
109
  // Property to store any additional data
112
110
  meta?: {
@@ -141,18 +139,15 @@ export interface Key {
141
139
  client_password?: string;
142
140
  // Date the key becomes expired
143
141
  date_expires?: string;
144
- environment?: 'dev' | 'staging' | 'v1';
145
142
  permissions?: string[];
146
143
  // Flag identifying if the key is latest
147
144
  active?: boolean;
148
- domain?: string;
149
145
  }
150
146
 
151
147
  export interface KeyPostBody {
152
148
  vendor_id: string;
153
149
  // Date the key becomes expired
154
150
  date_expires: string;
155
- environment: 'dev' | 'staging' | 'v1';
156
151
  permissions: string[];
157
152
  }
158
153
 
@@ -176,15 +171,6 @@ export interface Auth {
176
171
  token?: string;
177
172
  expires?: string;
178
173
  };
179
- refresh: {
180
- token?: string;
181
- expires?: string;
182
- };
183
- }
184
-
185
- export interface RefreshPayload {
186
- access_token: string;
187
- refresh_token: string;
188
174
  }
189
175
 
190
176
  export interface ResetPassword {
@@ -250,10 +236,20 @@ export interface PatchVendorApplicationRequest extends BaseRequest, PatchVendorA
250
236
  body: PatchVendorApplicationBody;
251
237
  }
252
238
 
239
+ // DELETE /vendor/application/{id} - Delete an application by ID
240
+
241
+ export interface DeleteVendorApplicationPath {
242
+ id: string;
243
+ }
244
+
245
+ export type DeleteVendorApplicationResponse = Success;
246
+
247
+ export interface DeleteVendorApplicationRequest extends BaseRequest, DeleteVendorApplicationPath {}
248
+
253
249
  // POST /vendor - Create new vendor
254
250
 
255
251
  export interface PostVendorQuery {
256
- // Send email notification to vendor (default true)
252
+ // Send email notification to vendor
257
253
  email?: boolean;
258
254
  }
259
255
 
@@ -310,7 +306,18 @@ export interface PatchVendorRequest extends BaseRequest, PatchVendorPath {
310
306
  body: PatchVendorBody;
311
307
  }
312
308
 
313
- // GET /vendor/auth - Get access/refresh tokens for accessing our APIs
309
+ // DELETE /vendor/{id} - Delete a vendor and its keys
310
+
311
+ export interface DeleteVendorPath {
312
+ // vendor
313
+ id: string;
314
+ }
315
+
316
+ export type DeleteVendorResponse = Success;
317
+
318
+ export interface DeleteVendorRequest extends BaseRequest, DeleteVendorPath {}
319
+
320
+ // GET /vendor/auth - Get access token for accessing our APIs
314
321
 
315
322
  export interface GetVendorAuthQuery {
316
323
  // Graphql query string
@@ -321,16 +328,6 @@ export type GetVendorAuthResponse = Auth;
321
328
 
322
329
  export interface GetVendorAuthRequest extends BaseRequest, RequestQuery<GetVendorAuthQuery> {}
323
330
 
324
- // POST /vendor/auth - Get new access token using refresh token and previous token
325
-
326
- export type PostVendorAuthBody = RefreshPayload;
327
-
328
- export type PostVendorAuthResponse = Auth;
329
-
330
- export interface PostVendorAuthRequest extends BaseRequest {
331
- body: PostVendorAuthBody;
332
- }
333
-
334
331
  // GET /vendor/{id}/key - Get list of Vendor keys
335
332
 
336
333
  export interface GetVendorKeysPath {
@@ -414,17 +411,9 @@ export interface DeleteVendorKeyPath {
414
411
  key: string;
415
412
  }
416
413
 
417
- export interface DeleteVendorKeyQuery {
418
- // If true, performs a hard delete instead of marking as expired
419
- hard?: boolean;
420
- }
421
-
422
- export type DeleteVendorKeyResponse = Key;
414
+ export type DeleteVendorKeyResponse = Success;
423
415
 
424
- export interface DeleteVendorKeyRequest
425
- extends BaseRequest,
426
- RequestQuery<DeleteVendorKeyQuery>,
427
- DeleteVendorKeyPath {}
416
+ export interface DeleteVendorKeyRequest extends BaseRequest, DeleteVendorKeyPath {}
428
417
 
429
418
  // POST /vendor/{id}/key/{key}/rotate - Rotate vendor key
430
419