@compassdigital/sdk.typescript 3.58.0 → 3.59.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/README.md +7 -1
- package/lib/base.d.ts +2 -1
- package/lib/base.d.ts.map +1 -1
- package/lib/base.js +22 -7
- package/lib/base.js.map +1 -1
- package/lib/index.d.ts +38 -38
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +34 -34
- package/lib/index.js.map +1 -1
- package/lib/interface/menu.d.ts +64 -64
- package/lib/interface/menu.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/base.ts +24 -9
- package/src/index.ts +87 -87
- package/src/interface/menu.ts +87 -87
package/lib/interface/menu.d.ts
CHANGED
|
@@ -306,7 +306,7 @@ export interface DraftBrandDTO {
|
|
|
306
306
|
is_active?: boolean;
|
|
307
307
|
type?: string;
|
|
308
308
|
parent_id?: string;
|
|
309
|
-
|
|
309
|
+
local_menu_group_id?: string;
|
|
310
310
|
brand_group_id?: string;
|
|
311
311
|
[index: string]: any;
|
|
312
312
|
}
|
|
@@ -520,11 +520,11 @@ export interface PublishedBrandDTO {
|
|
|
520
520
|
is_active?: boolean;
|
|
521
521
|
type?: string;
|
|
522
522
|
parent_id?: string;
|
|
523
|
-
|
|
523
|
+
local_menu_group_id?: string;
|
|
524
524
|
brand_group_id?: string;
|
|
525
525
|
[index: string]: any;
|
|
526
526
|
}
|
|
527
|
-
export interface
|
|
527
|
+
export interface LocalMenuGroupDTO {
|
|
528
528
|
name: string;
|
|
529
529
|
is_active?: boolean;
|
|
530
530
|
allowed_brand_groups?: BrandGroupDTO[];
|
|
@@ -1096,7 +1096,7 @@ export interface GetMenuV3DraftSiteLayoutsResponse {
|
|
|
1096
1096
|
}
|
|
1097
1097
|
export interface GetMenuV3DraftSiteLayoutsRequest extends BaseRequest, RequestQuery<GetMenuV3DraftSiteLayoutsQuery>, GetMenuV3DraftSiteLayoutsPath {
|
|
1098
1098
|
}
|
|
1099
|
-
export interface
|
|
1099
|
+
export interface PostMenuV3LocalMenuGroupBody {
|
|
1100
1100
|
name: string;
|
|
1101
1101
|
is_active?: boolean;
|
|
1102
1102
|
allowed_brand_groups?: BrandGroupDTO[];
|
|
@@ -1104,7 +1104,7 @@ export interface PostMenuV3LocalMenuBody {
|
|
|
1104
1104
|
published_brands?: PublishedBrandDTO[];
|
|
1105
1105
|
[index: string]: any;
|
|
1106
1106
|
}
|
|
1107
|
-
export interface
|
|
1107
|
+
export interface PostMenuV3LocalMenuGroupResponse {
|
|
1108
1108
|
name: string;
|
|
1109
1109
|
is_active?: boolean;
|
|
1110
1110
|
allowed_brand_groups?: BrandGroupDTO[];
|
|
@@ -1117,18 +1117,18 @@ export interface PostMenuV3LocalMenuResponse {
|
|
|
1117
1117
|
version?: number;
|
|
1118
1118
|
[index: string]: any;
|
|
1119
1119
|
}
|
|
1120
|
-
export interface
|
|
1121
|
-
body:
|
|
1120
|
+
export interface PostMenuV3LocalMenuGroupRequest extends BaseRequest {
|
|
1121
|
+
body: PostMenuV3LocalMenuGroupBody;
|
|
1122
1122
|
}
|
|
1123
|
-
export interface
|
|
1123
|
+
export interface GetMenuV3LocalMenuGroupPath {
|
|
1124
1124
|
id: string;
|
|
1125
1125
|
}
|
|
1126
|
-
export interface
|
|
1126
|
+
export interface GetMenuV3LocalMenuGroupQuery {
|
|
1127
1127
|
select?: string[];
|
|
1128
1128
|
relationships?: string[];
|
|
1129
1129
|
_query?: string;
|
|
1130
1130
|
}
|
|
1131
|
-
export interface
|
|
1131
|
+
export interface GetMenuV3LocalMenuGroupResponse {
|
|
1132
1132
|
name: string;
|
|
1133
1133
|
is_active?: boolean;
|
|
1134
1134
|
allowed_brand_groups?: BrandGroupDTO[];
|
|
@@ -1141,12 +1141,12 @@ export interface GetMenuV3LocalMenuResponse {
|
|
|
1141
1141
|
version?: number;
|
|
1142
1142
|
[index: string]: any;
|
|
1143
1143
|
}
|
|
1144
|
-
export interface
|
|
1144
|
+
export interface GetMenuV3LocalMenuGroupRequest extends BaseRequest, RequestQuery<GetMenuV3LocalMenuGroupQuery>, GetMenuV3LocalMenuGroupPath {
|
|
1145
1145
|
}
|
|
1146
|
-
export interface
|
|
1146
|
+
export interface PatchMenuV3LocalMenuGroupPath {
|
|
1147
1147
|
id: string;
|
|
1148
1148
|
}
|
|
1149
|
-
export interface
|
|
1149
|
+
export interface PatchMenuV3LocalMenuGroupBody {
|
|
1150
1150
|
name?: string;
|
|
1151
1151
|
is_active?: boolean;
|
|
1152
1152
|
allowed_brand_groups?: BrandGroupDTO[];
|
|
@@ -1155,7 +1155,7 @@ export interface PatchMenuV3LocalMenuBody {
|
|
|
1155
1155
|
id?: string;
|
|
1156
1156
|
[index: string]: any;
|
|
1157
1157
|
}
|
|
1158
|
-
export interface
|
|
1158
|
+
export interface PatchMenuV3LocalMenuGroupResponse {
|
|
1159
1159
|
name: string;
|
|
1160
1160
|
is_active?: boolean;
|
|
1161
1161
|
allowed_brand_groups?: BrandGroupDTO[];
|
|
@@ -1168,13 +1168,13 @@ export interface PatchMenuV3LocalMenuResponse {
|
|
|
1168
1168
|
version?: number;
|
|
1169
1169
|
[index: string]: any;
|
|
1170
1170
|
}
|
|
1171
|
-
export interface
|
|
1172
|
-
body:
|
|
1171
|
+
export interface PatchMenuV3LocalMenuGroupRequest extends BaseRequest, PatchMenuV3LocalMenuGroupPath {
|
|
1172
|
+
body: PatchMenuV3LocalMenuGroupBody;
|
|
1173
1173
|
}
|
|
1174
|
-
export interface
|
|
1174
|
+
export interface DeleteMenuV3LocalMenuGroupPath {
|
|
1175
1175
|
id: string;
|
|
1176
1176
|
}
|
|
1177
|
-
export interface
|
|
1177
|
+
export interface DeleteMenuV3LocalMenuGroupResponse {
|
|
1178
1178
|
name: string;
|
|
1179
1179
|
is_active?: boolean;
|
|
1180
1180
|
allowed_brand_groups?: BrandGroupDTO[];
|
|
@@ -1187,9 +1187,9 @@ export interface DeleteMenuV3LocalMenuResponse {
|
|
|
1187
1187
|
version?: number;
|
|
1188
1188
|
[index: string]: any;
|
|
1189
1189
|
}
|
|
1190
|
-
export interface
|
|
1190
|
+
export interface DeleteMenuV3LocalMenuGroupRequest extends BaseRequest, DeleteMenuV3LocalMenuGroupPath {
|
|
1191
1191
|
}
|
|
1192
|
-
export interface
|
|
1192
|
+
export interface GetMenuV3LocalMenuGroupsQuery {
|
|
1193
1193
|
select?: string[];
|
|
1194
1194
|
relationships?: string[];
|
|
1195
1195
|
filter?: any;
|
|
@@ -1200,14 +1200,14 @@ export interface GetMenuV3LocalMenusQuery {
|
|
|
1200
1200
|
soft_deleted?: string;
|
|
1201
1201
|
_query?: string;
|
|
1202
1202
|
}
|
|
1203
|
-
export interface
|
|
1204
|
-
results:
|
|
1203
|
+
export interface GetMenuV3LocalMenuGroupsResponse {
|
|
1204
|
+
results: LocalMenuGroupDTO[];
|
|
1205
1205
|
meta?: ListResponseMetadataDTO;
|
|
1206
1206
|
[index: string]: any;
|
|
1207
1207
|
}
|
|
1208
|
-
export interface
|
|
1208
|
+
export interface GetMenuV3LocalMenuGroupsRequest extends BaseRequest, RequestQuery<GetMenuV3LocalMenuGroupsQuery> {
|
|
1209
1209
|
}
|
|
1210
|
-
export type
|
|
1210
|
+
export type PostMenuV3LocalMenuGroupsBody = {
|
|
1211
1211
|
name: string;
|
|
1212
1212
|
is_active?: boolean;
|
|
1213
1213
|
allowed_brand_groups?: BrandGroupDTO[];
|
|
@@ -1215,28 +1215,28 @@ export type PostMenuV3LocalMenusBody = {
|
|
|
1215
1215
|
published_brands?: PublishedBrandDTO[];
|
|
1216
1216
|
[index: string]: any;
|
|
1217
1217
|
}[];
|
|
1218
|
-
export interface
|
|
1219
|
-
results:
|
|
1218
|
+
export interface PostMenuV3LocalMenuGroupsResponse {
|
|
1219
|
+
results: LocalMenuGroupDTO[];
|
|
1220
1220
|
meta?: ListResponseMetadataDTO;
|
|
1221
1221
|
[index: string]: any;
|
|
1222
1222
|
}
|
|
1223
|
-
export interface
|
|
1224
|
-
body:
|
|
1223
|
+
export interface PostMenuV3LocalMenuGroupsRequest extends BaseRequest {
|
|
1224
|
+
body: PostMenuV3LocalMenuGroupsBody;
|
|
1225
1225
|
}
|
|
1226
|
-
export interface
|
|
1226
|
+
export interface GetMenuV3LocalMenuGroupsCountQuery {
|
|
1227
1227
|
filter?: any;
|
|
1228
1228
|
_query?: string;
|
|
1229
1229
|
}
|
|
1230
|
-
export interface
|
|
1230
|
+
export interface GetMenuV3LocalMenuGroupsCountResponse {
|
|
1231
1231
|
count: number;
|
|
1232
1232
|
[index: string]: any;
|
|
1233
1233
|
}
|
|
1234
|
-
export interface
|
|
1234
|
+
export interface GetMenuV3LocalMenuGroupsCountRequest extends BaseRequest, RequestQuery<GetMenuV3LocalMenuGroupsCountQuery> {
|
|
1235
1235
|
}
|
|
1236
|
-
export interface
|
|
1236
|
+
export interface GetMenuV3DraftLocalMenuGroupBrandsPath {
|
|
1237
1237
|
id: string;
|
|
1238
1238
|
}
|
|
1239
|
-
export interface
|
|
1239
|
+
export interface GetMenuV3DraftLocalMenuGroupBrandsQuery {
|
|
1240
1240
|
select?: string[];
|
|
1241
1241
|
relationships?: string[];
|
|
1242
1242
|
filter?: any;
|
|
@@ -1247,17 +1247,17 @@ export interface GetMenuV3DraftLocalMenuBrandsQuery {
|
|
|
1247
1247
|
soft_deleted?: string;
|
|
1248
1248
|
_query?: string;
|
|
1249
1249
|
}
|
|
1250
|
-
export interface
|
|
1250
|
+
export interface GetMenuV3DraftLocalMenuGroupBrandsResponse {
|
|
1251
1251
|
results: DraftBrandDTO[];
|
|
1252
1252
|
meta?: ListResponseMetadataDTO;
|
|
1253
1253
|
[index: string]: any;
|
|
1254
1254
|
}
|
|
1255
|
-
export interface
|
|
1255
|
+
export interface GetMenuV3DraftLocalMenuGroupBrandsRequest extends BaseRequest, RequestQuery<GetMenuV3DraftLocalMenuGroupBrandsQuery>, GetMenuV3DraftLocalMenuGroupBrandsPath {
|
|
1256
1256
|
}
|
|
1257
|
-
export interface
|
|
1257
|
+
export interface GetMenuV3LocalMenuGroupBrandsPath {
|
|
1258
1258
|
id: string;
|
|
1259
1259
|
}
|
|
1260
|
-
export interface
|
|
1260
|
+
export interface GetMenuV3LocalMenuGroupBrandsQuery {
|
|
1261
1261
|
select?: string[];
|
|
1262
1262
|
relationships?: string[];
|
|
1263
1263
|
filter?: any;
|
|
@@ -1268,17 +1268,17 @@ export interface GetMenuV3LocalMenuBrandsQuery {
|
|
|
1268
1268
|
soft_deleted?: string;
|
|
1269
1269
|
_query?: string;
|
|
1270
1270
|
}
|
|
1271
|
-
export interface
|
|
1271
|
+
export interface GetMenuV3LocalMenuGroupBrandsResponse {
|
|
1272
1272
|
results: DraftBrandDTO[];
|
|
1273
1273
|
meta?: ListResponseMetadataDTO;
|
|
1274
1274
|
[index: string]: any;
|
|
1275
1275
|
}
|
|
1276
|
-
export interface
|
|
1276
|
+
export interface GetMenuV3LocalMenuGroupBrandsRequest extends BaseRequest, RequestQuery<GetMenuV3LocalMenuGroupBrandsQuery>, GetMenuV3LocalMenuGroupBrandsPath {
|
|
1277
1277
|
}
|
|
1278
|
-
export interface
|
|
1278
|
+
export interface GetMenuV3LocalMenuGroupAllowedGlobalBrandsPath {
|
|
1279
1279
|
id: string;
|
|
1280
1280
|
}
|
|
1281
|
-
export interface
|
|
1281
|
+
export interface GetMenuV3LocalMenuGroupAllowedGlobalBrandsQuery {
|
|
1282
1282
|
select?: string[];
|
|
1283
1283
|
relationships?: string[];
|
|
1284
1284
|
filter?: any;
|
|
@@ -1289,17 +1289,17 @@ export interface GetMenuV3LocalMenuAllowedGlobalBrandsQuery {
|
|
|
1289
1289
|
soft_deleted?: string;
|
|
1290
1290
|
_query?: string;
|
|
1291
1291
|
}
|
|
1292
|
-
export interface
|
|
1292
|
+
export interface GetMenuV3LocalMenuGroupAllowedGlobalBrandsResponse {
|
|
1293
1293
|
results: DraftBrandDTO[];
|
|
1294
1294
|
meta?: ListResponseMetadataDTO;
|
|
1295
1295
|
[index: string]: any;
|
|
1296
1296
|
}
|
|
1297
|
-
export interface
|
|
1297
|
+
export interface GetMenuV3LocalMenuGroupAllowedGlobalBrandsRequest extends BaseRequest, RequestQuery<GetMenuV3LocalMenuGroupAllowedGlobalBrandsQuery>, GetMenuV3LocalMenuGroupAllowedGlobalBrandsPath {
|
|
1298
1298
|
}
|
|
1299
|
-
export interface
|
|
1299
|
+
export interface PostMenuV3LocalMenuGroupImportBrandsPath {
|
|
1300
1300
|
id: string;
|
|
1301
1301
|
}
|
|
1302
|
-
export interface
|
|
1302
|
+
export interface PostMenuV3LocalMenuGroupImportBrandsQuery {
|
|
1303
1303
|
select?: string[];
|
|
1304
1304
|
relationships?: string[];
|
|
1305
1305
|
"body.brand_ids"?: string[];
|
|
@@ -1310,15 +1310,15 @@ export interface PostMenuV3LocalMenuImportBrandsQuery {
|
|
|
1310
1310
|
sort_order?: string;
|
|
1311
1311
|
soft_deleted?: string;
|
|
1312
1312
|
}
|
|
1313
|
-
export interface
|
|
1313
|
+
export interface PostMenuV3LocalMenuGroupImportBrandsResponse {
|
|
1314
1314
|
status?: string;
|
|
1315
1315
|
}
|
|
1316
|
-
export interface
|
|
1316
|
+
export interface PostMenuV3LocalMenuGroupImportBrandsRequest extends BaseRequest, RequestQuery<PostMenuV3LocalMenuGroupImportBrandsQuery>, PostMenuV3LocalMenuGroupImportBrandsPath {
|
|
1317
1317
|
}
|
|
1318
1318
|
export interface PostMenuV3BrandGroupBody {
|
|
1319
1319
|
name: string;
|
|
1320
1320
|
is_active?: boolean;
|
|
1321
|
-
|
|
1321
|
+
allowed_local_menu_groups?: LocalMenuGroupDTO[];
|
|
1322
1322
|
draft_brands?: DraftBrandDTO[];
|
|
1323
1323
|
published_brands?: PublishedBrandDTO[];
|
|
1324
1324
|
posid_segment?: POSIDSegmentDTO;
|
|
@@ -1345,7 +1345,7 @@ export interface PatchMenuV3BrandGroupPath {
|
|
|
1345
1345
|
export interface PatchMenuV3BrandGroupBody {
|
|
1346
1346
|
name?: string;
|
|
1347
1347
|
is_active?: boolean;
|
|
1348
|
-
|
|
1348
|
+
allowed_local_menu_groups?: LocalMenuGroupDTO[];
|
|
1349
1349
|
draft_brands?: DraftBrandDTO[];
|
|
1350
1350
|
published_brands?: PublishedBrandDTO[];
|
|
1351
1351
|
posid_segment?: POSIDSegmentDTO;
|
|
@@ -1383,7 +1383,7 @@ export interface GetMenuV3BrandGroupsRequest extends BaseRequest, RequestQuery<G
|
|
|
1383
1383
|
export type PostMenuV3BrandGroupsBody = {
|
|
1384
1384
|
name: string;
|
|
1385
1385
|
is_active?: boolean;
|
|
1386
|
-
|
|
1386
|
+
allowed_local_menu_groups?: LocalMenuGroupDTO[];
|
|
1387
1387
|
draft_brands?: DraftBrandDTO[];
|
|
1388
1388
|
published_brands?: PublishedBrandDTO[];
|
|
1389
1389
|
posid_segment?: POSIDSegmentDTO;
|
|
@@ -1467,10 +1467,10 @@ export interface PostMenuV3DraftBrandBody {
|
|
|
1467
1467
|
is_active?: boolean;
|
|
1468
1468
|
type?: string;
|
|
1469
1469
|
parent_id?: string;
|
|
1470
|
-
|
|
1470
|
+
local_menu_group_id?: string;
|
|
1471
1471
|
brand_group_id?: string;
|
|
1472
1472
|
changes?: BrandChangeDTO[];
|
|
1473
|
-
|
|
1473
|
+
local_menu_group?: LocalMenuGroupDTO;
|
|
1474
1474
|
brand_group?: BrandGroupDTO;
|
|
1475
1475
|
attachments?: FileAttachmentsDTO;
|
|
1476
1476
|
[index: string]: any;
|
|
@@ -1512,10 +1512,10 @@ export interface PatchMenuV3DraftBrandBody {
|
|
|
1512
1512
|
is_active?: boolean;
|
|
1513
1513
|
type?: string;
|
|
1514
1514
|
parent_id?: string;
|
|
1515
|
-
|
|
1515
|
+
local_menu_group_id?: string;
|
|
1516
1516
|
brand_group_id?: string;
|
|
1517
1517
|
changes?: BrandChangeDTO[];
|
|
1518
|
-
|
|
1518
|
+
local_menu_group?: LocalMenuGroupDTO;
|
|
1519
1519
|
brand_group?: BrandGroupDTO;
|
|
1520
1520
|
attachments?: FileAttachmentsDTO;
|
|
1521
1521
|
[index: string]: any;
|
|
@@ -1566,10 +1566,10 @@ export type PostMenuV3DraftBrandsBody = {
|
|
|
1566
1566
|
is_active?: boolean;
|
|
1567
1567
|
type?: string;
|
|
1568
1568
|
parent_id?: string;
|
|
1569
|
-
|
|
1569
|
+
local_menu_group_id?: string;
|
|
1570
1570
|
brand_group_id?: string;
|
|
1571
1571
|
changes?: BrandChangeDTO[];
|
|
1572
|
-
|
|
1572
|
+
local_menu_group?: LocalMenuGroupDTO;
|
|
1573
1573
|
brand_group?: BrandGroupDTO;
|
|
1574
1574
|
attachments?: FileAttachmentsDTO;
|
|
1575
1575
|
[index: string]: any;
|
|
@@ -1716,9 +1716,9 @@ export interface PostMenuV3BrandBody {
|
|
|
1716
1716
|
is_active?: boolean;
|
|
1717
1717
|
type?: string;
|
|
1718
1718
|
parent_id?: string;
|
|
1719
|
-
|
|
1719
|
+
local_menu_group_id?: string;
|
|
1720
1720
|
brand_group_id?: string;
|
|
1721
|
-
|
|
1721
|
+
local_menu_group?: LocalMenuGroupDTO;
|
|
1722
1722
|
brand_group?: BrandGroupDTO;
|
|
1723
1723
|
attachments?: FileAttachmentsDTO;
|
|
1724
1724
|
[index: string]: any;
|
|
@@ -1763,9 +1763,9 @@ export interface PatchMenuV3BrandBody {
|
|
|
1763
1763
|
is_active?: boolean;
|
|
1764
1764
|
type?: string;
|
|
1765
1765
|
parent_id?: string;
|
|
1766
|
-
|
|
1766
|
+
local_menu_group_id?: string;
|
|
1767
1767
|
brand_group_id?: string;
|
|
1768
|
-
|
|
1768
|
+
local_menu_group?: LocalMenuGroupDTO;
|
|
1769
1769
|
brand_group?: BrandGroupDTO;
|
|
1770
1770
|
attachments?: FileAttachmentsDTO;
|
|
1771
1771
|
[index: string]: any;
|
|
@@ -1822,9 +1822,9 @@ export type PostMenuV3BrandsBody = {
|
|
|
1822
1822
|
is_active?: boolean;
|
|
1823
1823
|
type?: string;
|
|
1824
1824
|
parent_id?: string;
|
|
1825
|
-
|
|
1825
|
+
local_menu_group_id?: string;
|
|
1826
1826
|
brand_group_id?: string;
|
|
1827
|
-
|
|
1827
|
+
local_menu_group?: LocalMenuGroupDTO;
|
|
1828
1828
|
brand_group?: BrandGroupDTO;
|
|
1829
1829
|
attachments?: FileAttachmentsDTO;
|
|
1830
1830
|
[index: string]: any;
|
|
@@ -1964,11 +1964,11 @@ export interface PostMenuV3BrandLocalResponse {
|
|
|
1964
1964
|
is_active?: boolean;
|
|
1965
1965
|
type?: string;
|
|
1966
1966
|
parent_id?: string;
|
|
1967
|
-
|
|
1967
|
+
local_menu_group_id?: string;
|
|
1968
1968
|
brand_group_id?: string;
|
|
1969
1969
|
version?: number;
|
|
1970
1970
|
changes?: BrandChangeDTO[];
|
|
1971
|
-
|
|
1971
|
+
local_menu_group?: LocalMenuGroupDTO;
|
|
1972
1972
|
brand_group?: BrandGroupDTO;
|
|
1973
1973
|
attachments?: FileAttachmentsDTO;
|
|
1974
1974
|
[index: string]: any;
|