strapi-plugin-comments 3.0.0-beta.0 → 3.0.0-beta.1
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 +6 -5
- package/dist/_chunks/{index-h-TB6Qu2.mjs → index-BBcsmSTs.mjs} +6976 -6733
- package/dist/_chunks/{index-CTjupB9v.js → index-BFPteXuP.js} +2 -2
- package/dist/_chunks/{index-B6Q4U8YQ.js → index-BXEk5PWx.js} +9 -5
- package/dist/_chunks/{index-BVj8EXjI.js → index-Bcck91A8.js} +5 -10
- package/dist/_chunks/{index-fAgatqD0.js → index-CY_AVWS-.js} +6987 -6744
- package/dist/_chunks/{index-fSb-gYwg.mjs → index-D3iNqWZT.mjs} +2 -2
- package/dist/_chunks/{index-Bpbf7RON.mjs → index-D9MOkoQ2.mjs} +9 -5
- package/dist/_chunks/{index-BQERo8pN.mjs → index-DJ32APz-.mjs} +5 -10
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/admin/src/api/client.d.ts +3 -2
- package/dist/admin/src/api/schemas.d.ts +22 -8
- package/dist/admin/src/contexts/UserContext.d.ts +1 -1
- package/dist/admin/src/hooks/useAPI.d.ts +4 -3
- package/dist/admin/src/hooks/useCommentMutations.d.ts +1 -1
- package/dist/admin/src/hooks/useCommentsAll.d.ts +1 -0
- package/dist/admin/src/hooks/useUserContext.d.ts +1 -1
- package/dist/admin/src/pages/Settings/hooks/useSettingsAPI.d.ts +1 -1
- package/dist/server/index.js +9245 -2459
- package/dist/server/index.mjs +9245 -2459
- package/dist/server/src/config/index.d.ts +22 -0
- package/dist/server/src/controllers/admin.controller.d.ts +3 -1
- package/dist/server/src/controllers/client.controller.d.ts +36 -2
- package/dist/server/src/controllers/index.d.ts +213 -115
- package/dist/server/src/controllers/settings.controller.d.ts +25 -1
- package/dist/server/src/controllers/utils/parsers.d.ts +4 -1
- package/dist/server/src/graphql/getResolversConfig.d.ts +21 -0
- package/dist/server/src/graphql/index.d.ts +2 -0
- package/dist/server/src/graphql/mutations/getCreateAbuseReport.d.ts +89 -0
- package/dist/server/src/graphql/mutations/getCreateComment.d.ts +78 -0
- package/dist/server/src/graphql/mutations/getRemoveComment.d.ts +78 -0
- package/dist/server/src/graphql/mutations/getUpdateComment.d.ts +78 -0
- package/dist/server/src/graphql/mutations/index.d.ts +3 -0
- package/dist/server/src/graphql/queries/findAllFlat.d.ts +165 -0
- package/dist/server/src/graphql/queries/findAllInHierarchy.d.ts +81 -0
- package/dist/server/src/graphql/queries/findAllPerAuthor.d.ts +164 -0
- package/dist/server/src/graphql/queries/index.d.ts +3 -0
- package/dist/server/src/graphql/types/getComment.d.ts +2 -0
- package/dist/server/src/graphql/types/getCommentAuthor.d.ts +2 -0
- package/dist/server/src/graphql/types/getCommentAuthorType.d.ts +2 -0
- package/dist/server/src/graphql/types/getCommentNested.d.ts +2 -0
- package/dist/server/src/graphql/types/getCreateComment.d.ts +2 -0
- package/dist/server/src/graphql/types/getCreateCommentAuthor.d.ts +2 -0
- package/dist/server/src/graphql/types/getCreateReport.d.ts +2 -0
- package/dist/server/src/graphql/types/getId.d.ts +2 -0
- package/dist/server/src/graphql/types/getIdentityAuthor.d.ts +2 -0
- package/dist/server/src/graphql/types/getRemoveComment.d.ts +2 -0
- package/dist/server/src/graphql/types/getReport.d.ts +2 -0
- package/dist/server/src/graphql/types/getReportReason.d.ts +3 -0
- package/dist/server/src/graphql/types/getResponseFindAll.d.ts +2 -0
- package/dist/server/src/graphql/types/getResponseFindAllPerAuthor.d.ts +2 -0
- package/dist/server/src/graphql/types/getResponseMeta.d.ts +2 -0
- package/dist/server/src/graphql/types/getResponsePagination.d.ts +2 -0
- package/dist/server/src/graphql/types/getUpdateComment.d.ts +2 -0
- package/dist/server/src/graphql/types/index.d.ts +3 -0
- package/dist/server/src/index.d.ts +771 -471
- package/dist/server/src/repositories/store.repository.d.ts +17 -2
- package/dist/server/src/services/admin/admin.service.d.ts +174 -117
- package/dist/server/src/services/client.service.d.ts +173 -118
- package/dist/server/src/services/common.service.d.ts +8 -5
- package/dist/server/src/services/gql.service.d.ts +7 -0
- package/dist/server/src/services/index.d.ts +549 -356
- package/dist/server/src/services/settings.service.d.ts +19 -1
- package/dist/server/src/services/utils/functions.d.ts +9 -3
- package/dist/server/src/utils/getConfig.d.ts +1 -1
- package/dist/server/src/utils/getPluginService.d.ts +1 -1
- package/dist/server/src/validators/api/controllers/client.controller.validator.d.ts +112 -77
- package/dist/server/src/validators/api/controllers/settings.controller.validator.d.ts +3 -3
- package/dist/server/src/validators/repositories/comment.validator.d.ts +16 -0
- package/dist/server/src/validators/utils.d.ts +1 -1
- package/package.json +7 -6
|
@@ -17,6 +17,9 @@ declare const _default: {
|
|
|
17
17
|
OTHER?: import("./const").REPORT_REASON.OTHER;
|
|
18
18
|
};
|
|
19
19
|
isGQLPluginEnabled?: boolean;
|
|
20
|
+
gql?: {
|
|
21
|
+
auth?: boolean;
|
|
22
|
+
};
|
|
20
23
|
};
|
|
21
24
|
readonly validate: (config: unknown) => import("zod").SafeParseReturnType<{
|
|
22
25
|
enabledCollections?: string[];
|
|
@@ -32,6 +35,9 @@ declare const _default: {
|
|
|
32
35
|
OTHER?: import("./const").REPORT_REASON.OTHER;
|
|
33
36
|
};
|
|
34
37
|
isGQLPluginEnabled?: boolean;
|
|
38
|
+
gql?: {
|
|
39
|
+
auth?: boolean;
|
|
40
|
+
};
|
|
35
41
|
}, {
|
|
36
42
|
enabledCollections?: string[];
|
|
37
43
|
approvalFlow?: string[];
|
|
@@ -46,11 +52,14 @@ declare const _default: {
|
|
|
46
52
|
OTHER?: import("./const").REPORT_REASON.OTHER;
|
|
47
53
|
};
|
|
48
54
|
isGQLPluginEnabled?: boolean;
|
|
55
|
+
gql?: {
|
|
56
|
+
auth?: boolean;
|
|
57
|
+
};
|
|
49
58
|
}>;
|
|
50
59
|
};
|
|
51
60
|
controllers: {
|
|
52
61
|
admin: ({ strapi }: import("./@types-v5").StrapiContext) => {
|
|
53
|
-
getService<T extends "admin" | "client" | "common" | "settings">(name: T): import("./services").PluginServices[T];
|
|
62
|
+
getService<T extends "gql" | "admin" | "client" | "common" | "settings">(name: T): import("./services").PluginServices[T];
|
|
54
63
|
findAll(ctx: import("./@types-v5").RequestContext): Promise<{
|
|
55
64
|
pagination: {
|
|
56
65
|
page?: number;
|
|
@@ -70,6 +79,8 @@ declare const _default: {
|
|
|
70
79
|
approvalStatus?: string;
|
|
71
80
|
related?: {
|
|
72
81
|
id?: number;
|
|
82
|
+
documentId?: string;
|
|
83
|
+
locale?: string;
|
|
73
84
|
uid?: string;
|
|
74
85
|
requireCommentsApproval?: boolean;
|
|
75
86
|
};
|
|
@@ -1159,9 +1170,9 @@ declare const _default: {
|
|
|
1159
1170
|
}>;
|
|
1160
1171
|
};
|
|
1161
1172
|
client: ({ strapi }: import("./@types-v5").StrapiContext) => {
|
|
1162
|
-
getService<T_1 extends "admin" | "client" | "common" | "settings">(name: T_1): import("./services").PluginServices[T_1];
|
|
1173
|
+
getService<T_1 extends "gql" | "admin" | "client" | "common" | "settings">(name: T_1): import("./services").PluginServices[T_1];
|
|
1163
1174
|
getStoreRepository(): {
|
|
1164
|
-
getLocalConfig<P extends "enabledCollections" | "approvalFlow" | "entryLabel" | "moderatorRoles" | "badWords" | "blockedAuthorProps" | "isValidationEnabled" | "reportReasons" | "isGQLPluginEnabled">(prop?: P, defaultValue?: {
|
|
1175
|
+
getLocalConfig<P extends "enabledCollections" | "approvalFlow" | "entryLabel" | "moderatorRoles" | "badWords" | "blockedAuthorProps" | "isValidationEnabled" | "reportReasons" | "isGQLPluginEnabled" | "gql">(prop?: P, defaultValue?: {
|
|
1165
1176
|
enabledCollections?: string[];
|
|
1166
1177
|
approvalFlow?: string[];
|
|
1167
1178
|
entryLabel?: Record<string, string[]>;
|
|
@@ -1175,6 +1186,9 @@ declare const _default: {
|
|
|
1175
1186
|
OTHER?: import("./const").REPORT_REASON.OTHER;
|
|
1176
1187
|
};
|
|
1177
1188
|
isGQLPluginEnabled?: boolean;
|
|
1189
|
+
gql?: {
|
|
1190
|
+
auth?: boolean;
|
|
1191
|
+
};
|
|
1178
1192
|
}[P]): {
|
|
1179
1193
|
enabledCollections?: string[];
|
|
1180
1194
|
approvalFlow?: string[];
|
|
@@ -1189,6 +1203,9 @@ declare const _default: {
|
|
|
1189
1203
|
OTHER?: import("./const").REPORT_REASON.OTHER;
|
|
1190
1204
|
};
|
|
1191
1205
|
isGQLPluginEnabled?: boolean;
|
|
1206
|
+
gql?: {
|
|
1207
|
+
auth?: boolean;
|
|
1208
|
+
};
|
|
1192
1209
|
}[P];
|
|
1193
1210
|
getStore(): Promise<{
|
|
1194
1211
|
get(params?: Partial<{
|
|
@@ -1228,6 +1245,9 @@ declare const _default: {
|
|
|
1228
1245
|
OTHER?: import("./const").REPORT_REASON.OTHER;
|
|
1229
1246
|
};
|
|
1230
1247
|
isGQLPluginEnabled?: boolean;
|
|
1248
|
+
gql?: {
|
|
1249
|
+
auth?: boolean;
|
|
1250
|
+
};
|
|
1231
1251
|
}>>;
|
|
1232
1252
|
get<T_2 extends boolean>(viaSettingsPage?: T_2): Promise<import("./utils/Either").Either<unknown, T_2 extends true ? {
|
|
1233
1253
|
enabledCollections?: string[];
|
|
@@ -1243,6 +1263,9 @@ declare const _default: {
|
|
|
1243
1263
|
OTHER?: import("./const").REPORT_REASON.OTHER;
|
|
1244
1264
|
};
|
|
1245
1265
|
isGQLPluginEnabled?: boolean;
|
|
1266
|
+
gql?: {
|
|
1267
|
+
auth?: boolean;
|
|
1268
|
+
};
|
|
1246
1269
|
} : Omit<{
|
|
1247
1270
|
enabledCollections?: string[];
|
|
1248
1271
|
approvalFlow?: string[];
|
|
@@ -1257,6 +1280,9 @@ declare const _default: {
|
|
|
1257
1280
|
OTHER?: import("./const").REPORT_REASON.OTHER;
|
|
1258
1281
|
};
|
|
1259
1282
|
isGQLPluginEnabled?: boolean;
|
|
1283
|
+
gql?: {
|
|
1284
|
+
auth?: boolean;
|
|
1285
|
+
};
|
|
1260
1286
|
}, "enabledCollections" | "moderatorRoles" | "isGQLPluginEnabled">>>;
|
|
1261
1287
|
update(config: {
|
|
1262
1288
|
enabledCollections?: string[];
|
|
@@ -1272,6 +1298,9 @@ declare const _default: {
|
|
|
1272
1298
|
OTHER?: import("./const").REPORT_REASON.OTHER;
|
|
1273
1299
|
};
|
|
1274
1300
|
isGQLPluginEnabled?: boolean;
|
|
1301
|
+
gql?: {
|
|
1302
|
+
auth?: boolean;
|
|
1303
|
+
};
|
|
1275
1304
|
}): Promise<import("./utils/Either").Either<unknown, {
|
|
1276
1305
|
enabledCollections?: string[];
|
|
1277
1306
|
approvalFlow?: string[];
|
|
@@ -1286,6 +1315,9 @@ declare const _default: {
|
|
|
1286
1315
|
OTHER?: import("./const").REPORT_REASON.OTHER;
|
|
1287
1316
|
};
|
|
1288
1317
|
isGQLPluginEnabled?: boolean;
|
|
1318
|
+
gql?: {
|
|
1319
|
+
auth?: boolean;
|
|
1320
|
+
};
|
|
1289
1321
|
} | Omit<{
|
|
1290
1322
|
enabledCollections?: string[];
|
|
1291
1323
|
approvalFlow?: string[];
|
|
@@ -1300,6 +1332,9 @@ declare const _default: {
|
|
|
1300
1332
|
OTHER?: import("./const").REPORT_REASON.OTHER;
|
|
1301
1333
|
};
|
|
1302
1334
|
isGQLPluginEnabled?: boolean;
|
|
1335
|
+
gql?: {
|
|
1336
|
+
auth?: boolean;
|
|
1337
|
+
};
|
|
1303
1338
|
}, "enabledCollections" | "moderatorRoles" | "isGQLPluginEnabled">>>;
|
|
1304
1339
|
restore(): Promise<import("./utils/Either").Either<unknown, {
|
|
1305
1340
|
enabledCollections?: string[];
|
|
@@ -1315,6 +1350,9 @@ declare const _default: {
|
|
|
1315
1350
|
OTHER?: import("./const").REPORT_REASON.OTHER;
|
|
1316
1351
|
};
|
|
1317
1352
|
isGQLPluginEnabled?: boolean;
|
|
1353
|
+
gql?: {
|
|
1354
|
+
auth?: boolean;
|
|
1355
|
+
};
|
|
1318
1356
|
} | Omit<{
|
|
1319
1357
|
enabledCollections?: string[];
|
|
1320
1358
|
approvalFlow?: string[];
|
|
@@ -1329,11 +1367,15 @@ declare const _default: {
|
|
|
1329
1367
|
OTHER?: import("./const").REPORT_REASON.OTHER;
|
|
1330
1368
|
};
|
|
1331
1369
|
isGQLPluginEnabled?: boolean;
|
|
1370
|
+
gql?: {
|
|
1371
|
+
auth?: boolean;
|
|
1372
|
+
};
|
|
1332
1373
|
}, "enabledCollections" | "moderatorRoles" | "isGQLPluginEnabled">>>;
|
|
1333
1374
|
};
|
|
1334
1375
|
post(ctx: import("./@types-v5").RequestContext<object, Pick<{
|
|
1335
1376
|
content?: string;
|
|
1336
1377
|
approvalStatus?: import("./const").APPROVAL_STATUS;
|
|
1378
|
+
locale?: string;
|
|
1337
1379
|
author?: {
|
|
1338
1380
|
name?: string;
|
|
1339
1381
|
id?: number;
|
|
@@ -1341,7 +1383,7 @@ declare const _default: {
|
|
|
1341
1383
|
avatar?: string;
|
|
1342
1384
|
};
|
|
1343
1385
|
threadOf?: number;
|
|
1344
|
-
relation?: `{${string}::${string}.${
|
|
1386
|
+
relation?: `{${string}::${string}.${string}}`;
|
|
1345
1387
|
}, "relation">>): Promise<{
|
|
1346
1388
|
id?: number;
|
|
1347
1389
|
documentId?: string;
|
|
@@ -1413,43 +1455,19 @@ declare const _default: {
|
|
|
1413
1455
|
};
|
|
1414
1456
|
}>;
|
|
1415
1457
|
findAllFlat(ctx: import("./@types-v5").RequestContext<object, Pick<{
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
} | {
|
|
1430
|
-
$lt?: string;
|
|
1431
|
-
} | {
|
|
1432
|
-
$lte?: string;
|
|
1433
|
-
} | {
|
|
1434
|
-
$startsWith?: string;
|
|
1435
|
-
} | {
|
|
1436
|
-
$startsWithi?: string;
|
|
1437
|
-
} | {
|
|
1438
|
-
$endsWith?: string;
|
|
1439
|
-
} | {
|
|
1440
|
-
$endsWithi?: string;
|
|
1441
|
-
} | {
|
|
1442
|
-
$contains?: string;
|
|
1443
|
-
} | {
|
|
1444
|
-
$containsi?: string;
|
|
1445
|
-
} | {
|
|
1446
|
-
$notContains?: string;
|
|
1447
|
-
} | {
|
|
1448
|
-
$notContainsi?: string;
|
|
1449
|
-
} | {
|
|
1450
|
-
$notNull?: boolean;
|
|
1451
|
-
}>[];
|
|
1452
|
-
$or?: Record<string, string | number | {
|
|
1458
|
+
sort?: string;
|
|
1459
|
+
locale?: string;
|
|
1460
|
+
pagination?: {
|
|
1461
|
+
page?: number;
|
|
1462
|
+
pageSize?: number;
|
|
1463
|
+
withCount?: boolean;
|
|
1464
|
+
};
|
|
1465
|
+
relation?: `{${string}::${string}.${string}}`;
|
|
1466
|
+
populate?: Record<string, boolean | {
|
|
1467
|
+
populate?: boolean;
|
|
1468
|
+
}>;
|
|
1469
|
+
filters?: {
|
|
1470
|
+
id?: string | number | {
|
|
1453
1471
|
$eq?: string;
|
|
1454
1472
|
} | {
|
|
1455
1473
|
$eqi?: string;
|
|
@@ -1483,10 +1501,7 @@ declare const _default: {
|
|
|
1483
1501
|
$notContainsi?: string;
|
|
1484
1502
|
} | {
|
|
1485
1503
|
$notNull?: boolean;
|
|
1486
|
-
}
|
|
1487
|
-
} | Record<string, string | number | boolean | Record<string, string | number | boolean>>;
|
|
1488
|
-
sort?: string;
|
|
1489
|
-
filter?: {
|
|
1504
|
+
};
|
|
1490
1505
|
content?: string | number | {
|
|
1491
1506
|
$eq?: string;
|
|
1492
1507
|
} | {
|
|
@@ -1628,15 +1643,6 @@ declare const _default: {
|
|
|
1628
1643
|
$notNull?: boolean;
|
|
1629
1644
|
};
|
|
1630
1645
|
};
|
|
1631
|
-
pagination?: {
|
|
1632
|
-
page?: number;
|
|
1633
|
-
pageSize?: number;
|
|
1634
|
-
withCount?: boolean;
|
|
1635
|
-
};
|
|
1636
|
-
relation?: `{${string}::${string}.${number}}`;
|
|
1637
|
-
populate?: Record<string, boolean | {
|
|
1638
|
-
populate?: boolean;
|
|
1639
|
-
}>;
|
|
1640
1646
|
limit?: number;
|
|
1641
1647
|
fields?: string[];
|
|
1642
1648
|
omit?: string[];
|
|
@@ -1724,6 +1730,8 @@ declare const _default: {
|
|
|
1724
1730
|
approvalStatus?: string;
|
|
1725
1731
|
related?: {
|
|
1726
1732
|
id?: number;
|
|
1733
|
+
documentId?: string;
|
|
1734
|
+
locale?: string;
|
|
1727
1735
|
uid?: string;
|
|
1728
1736
|
requireCommentsApproval?: boolean;
|
|
1729
1737
|
};
|
|
@@ -1794,43 +1802,14 @@ declare const _default: {
|
|
|
1794
1802
|
};
|
|
1795
1803
|
}>;
|
|
1796
1804
|
findAllInHierarchy(ctx: import("./@types-v5").RequestContext<object, Pick<{
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
$nei?: string;
|
|
1806
|
-
} | {
|
|
1807
|
-
$gt?: string;
|
|
1808
|
-
} | {
|
|
1809
|
-
$gte?: string;
|
|
1810
|
-
} | {
|
|
1811
|
-
$lt?: string;
|
|
1812
|
-
} | {
|
|
1813
|
-
$lte?: string;
|
|
1814
|
-
} | {
|
|
1815
|
-
$startsWith?: string;
|
|
1816
|
-
} | {
|
|
1817
|
-
$startsWithi?: string;
|
|
1818
|
-
} | {
|
|
1819
|
-
$endsWith?: string;
|
|
1820
|
-
} | {
|
|
1821
|
-
$endsWithi?: string;
|
|
1822
|
-
} | {
|
|
1823
|
-
$contains?: string;
|
|
1824
|
-
} | {
|
|
1825
|
-
$containsi?: string;
|
|
1826
|
-
} | {
|
|
1827
|
-
$notContains?: string;
|
|
1828
|
-
} | {
|
|
1829
|
-
$notContainsi?: string;
|
|
1830
|
-
} | {
|
|
1831
|
-
$notNull?: boolean;
|
|
1832
|
-
}>[];
|
|
1833
|
-
$or?: Record<string, string | number | {
|
|
1805
|
+
sort?: string;
|
|
1806
|
+
locale?: string;
|
|
1807
|
+
relation?: `{${string}::${string}.${string}}`;
|
|
1808
|
+
populate?: Record<string, boolean | {
|
|
1809
|
+
populate?: boolean;
|
|
1810
|
+
}>;
|
|
1811
|
+
filters?: {
|
|
1812
|
+
id?: string | number | {
|
|
1834
1813
|
$eq?: string;
|
|
1835
1814
|
} | {
|
|
1836
1815
|
$eqi?: string;
|
|
@@ -1864,10 +1843,7 @@ declare const _default: {
|
|
|
1864
1843
|
$notContainsi?: string;
|
|
1865
1844
|
} | {
|
|
1866
1845
|
$notNull?: boolean;
|
|
1867
|
-
}
|
|
1868
|
-
} | Record<string, string | number | boolean | Record<string, string | number | boolean>>;
|
|
1869
|
-
sort?: string;
|
|
1870
|
-
filter?: {
|
|
1846
|
+
};
|
|
1871
1847
|
content?: string | number | {
|
|
1872
1848
|
$eq?: string;
|
|
1873
1849
|
} | {
|
|
@@ -2009,10 +1985,6 @@ declare const _default: {
|
|
|
2009
1985
|
$notNull?: boolean;
|
|
2010
1986
|
};
|
|
2011
1987
|
};
|
|
2012
|
-
relation?: `{${string}::${string}.${number}}`;
|
|
2013
|
-
populate?: Record<string, boolean | {
|
|
2014
|
-
populate?: boolean;
|
|
2015
|
-
}>;
|
|
2016
1988
|
limit?: number;
|
|
2017
1989
|
fields?: string[];
|
|
2018
1990
|
omit?: string[];
|
|
@@ -2091,8 +2063,55 @@ declare const _default: {
|
|
|
2091
2063
|
};
|
|
2092
2064
|
}[]>;
|
|
2093
2065
|
findAllPerAuthor(ctx: import("./@types-v5").RequestContext<object, Pick<{
|
|
2094
|
-
|
|
2095
|
-
|
|
2066
|
+
type?: string;
|
|
2067
|
+
sort?: string;
|
|
2068
|
+
authorId?: string | number;
|
|
2069
|
+
locale?: string;
|
|
2070
|
+
pagination?: {
|
|
2071
|
+
page?: number;
|
|
2072
|
+
pageSize?: number;
|
|
2073
|
+
withCount?: boolean;
|
|
2074
|
+
};
|
|
2075
|
+
populate?: Record<string, boolean | {
|
|
2076
|
+
populate?: boolean;
|
|
2077
|
+
}>;
|
|
2078
|
+
filters?: {
|
|
2079
|
+
id?: string | number | {
|
|
2080
|
+
$eq?: string;
|
|
2081
|
+
} | {
|
|
2082
|
+
$eqi?: string;
|
|
2083
|
+
} | {
|
|
2084
|
+
$ne?: string;
|
|
2085
|
+
} | {
|
|
2086
|
+
$nei?: string;
|
|
2087
|
+
} | {
|
|
2088
|
+
$gt?: string;
|
|
2089
|
+
} | {
|
|
2090
|
+
$gte?: string;
|
|
2091
|
+
} | {
|
|
2092
|
+
$lt?: string;
|
|
2093
|
+
} | {
|
|
2094
|
+
$lte?: string;
|
|
2095
|
+
} | {
|
|
2096
|
+
$startsWith?: string;
|
|
2097
|
+
} | {
|
|
2098
|
+
$startsWithi?: string;
|
|
2099
|
+
} | {
|
|
2100
|
+
$endsWith?: string;
|
|
2101
|
+
} | {
|
|
2102
|
+
$endsWithi?: string;
|
|
2103
|
+
} | {
|
|
2104
|
+
$contains?: string;
|
|
2105
|
+
} | {
|
|
2106
|
+
$containsi?: string;
|
|
2107
|
+
} | {
|
|
2108
|
+
$notContains?: string;
|
|
2109
|
+
} | {
|
|
2110
|
+
$notContainsi?: string;
|
|
2111
|
+
} | {
|
|
2112
|
+
$notNull?: boolean;
|
|
2113
|
+
};
|
|
2114
|
+
content?: string | number | {
|
|
2096
2115
|
$eq?: string;
|
|
2097
2116
|
} | {
|
|
2098
2117
|
$eqi?: string;
|
|
@@ -2126,8 +2145,8 @@ declare const _default: {
|
|
|
2126
2145
|
$notContainsi?: string;
|
|
2127
2146
|
} | {
|
|
2128
2147
|
$notNull?: boolean;
|
|
2129
|
-
}
|
|
2130
|
-
|
|
2148
|
+
};
|
|
2149
|
+
createdAt?: string | number | {
|
|
2131
2150
|
$eq?: string;
|
|
2132
2151
|
} | {
|
|
2133
2152
|
$eqi?: string;
|
|
@@ -2161,19 +2180,78 @@ declare const _default: {
|
|
|
2161
2180
|
$notContainsi?: string;
|
|
2162
2181
|
} | {
|
|
2163
2182
|
$notNull?: boolean;
|
|
2164
|
-
}
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2183
|
+
};
|
|
2184
|
+
updatedAt?: string | number | {
|
|
2185
|
+
$eq?: string;
|
|
2186
|
+
} | {
|
|
2187
|
+
$eqi?: string;
|
|
2188
|
+
} | {
|
|
2189
|
+
$ne?: string;
|
|
2190
|
+
} | {
|
|
2191
|
+
$nei?: string;
|
|
2192
|
+
} | {
|
|
2193
|
+
$gt?: string;
|
|
2194
|
+
} | {
|
|
2195
|
+
$gte?: string;
|
|
2196
|
+
} | {
|
|
2197
|
+
$lt?: string;
|
|
2198
|
+
} | {
|
|
2199
|
+
$lte?: string;
|
|
2200
|
+
} | {
|
|
2201
|
+
$startsWith?: string;
|
|
2202
|
+
} | {
|
|
2203
|
+
$startsWithi?: string;
|
|
2204
|
+
} | {
|
|
2205
|
+
$endsWith?: string;
|
|
2206
|
+
} | {
|
|
2207
|
+
$endsWithi?: string;
|
|
2208
|
+
} | {
|
|
2209
|
+
$contains?: string;
|
|
2210
|
+
} | {
|
|
2211
|
+
$containsi?: string;
|
|
2212
|
+
} | {
|
|
2213
|
+
$notContains?: string;
|
|
2214
|
+
} | {
|
|
2215
|
+
$notContainsi?: string;
|
|
2216
|
+
} | {
|
|
2217
|
+
$notNull?: boolean;
|
|
2218
|
+
};
|
|
2219
|
+
authorName?: string | number | {
|
|
2220
|
+
$eq?: string;
|
|
2221
|
+
} | {
|
|
2222
|
+
$eqi?: string;
|
|
2223
|
+
} | {
|
|
2224
|
+
$ne?: string;
|
|
2225
|
+
} | {
|
|
2226
|
+
$nei?: string;
|
|
2227
|
+
} | {
|
|
2228
|
+
$gt?: string;
|
|
2229
|
+
} | {
|
|
2230
|
+
$gte?: string;
|
|
2231
|
+
} | {
|
|
2232
|
+
$lt?: string;
|
|
2233
|
+
} | {
|
|
2234
|
+
$lte?: string;
|
|
2235
|
+
} | {
|
|
2236
|
+
$startsWith?: string;
|
|
2237
|
+
} | {
|
|
2238
|
+
$startsWithi?: string;
|
|
2239
|
+
} | {
|
|
2240
|
+
$endsWith?: string;
|
|
2241
|
+
} | {
|
|
2242
|
+
$endsWithi?: string;
|
|
2243
|
+
} | {
|
|
2244
|
+
$contains?: string;
|
|
2245
|
+
} | {
|
|
2246
|
+
$containsi?: string;
|
|
2247
|
+
} | {
|
|
2248
|
+
$notContains?: string;
|
|
2249
|
+
} | {
|
|
2250
|
+
$notContainsi?: string;
|
|
2251
|
+
} | {
|
|
2252
|
+
$notNull?: boolean;
|
|
2253
|
+
};
|
|
2173
2254
|
};
|
|
2174
|
-
populate?: Record<string, boolean | {
|
|
2175
|
-
populate?: boolean;
|
|
2176
|
-
}>;
|
|
2177
2255
|
limit?: number;
|
|
2178
2256
|
fields?: string[];
|
|
2179
2257
|
omit?: string[];
|
|
@@ -2260,6 +2338,8 @@ declare const _default: {
|
|
|
2260
2338
|
approvalStatus?: string;
|
|
2261
2339
|
related?: {
|
|
2262
2340
|
id?: number;
|
|
2341
|
+
documentId?: string;
|
|
2342
|
+
locale?: string;
|
|
2263
2343
|
uid?: string;
|
|
2264
2344
|
requireCommentsApproval?: boolean;
|
|
2265
2345
|
};
|
|
@@ -2565,6 +2645,9 @@ declare const _default: {
|
|
|
2565
2645
|
OTHER?: import("./const").REPORT_REASON.OTHER;
|
|
2566
2646
|
};
|
|
2567
2647
|
isGQLPluginEnabled?: boolean;
|
|
2648
|
+
gql?: {
|
|
2649
|
+
auth?: boolean;
|
|
2650
|
+
};
|
|
2568
2651
|
} | Omit<{
|
|
2569
2652
|
enabledCollections?: string[];
|
|
2570
2653
|
approvalFlow?: string[];
|
|
@@ -2579,6 +2662,9 @@ declare const _default: {
|
|
|
2579
2662
|
OTHER?: import("./const").REPORT_REASON.OTHER;
|
|
2580
2663
|
};
|
|
2581
2664
|
isGQLPluginEnabled?: boolean;
|
|
2665
|
+
gql?: {
|
|
2666
|
+
auth?: boolean;
|
|
2667
|
+
};
|
|
2582
2668
|
}, "enabledCollections" | "moderatorRoles" | "isGQLPluginEnabled">>;
|
|
2583
2669
|
getForSettingsPage(ctx: import("./@types-v5").RequestContext): Promise<{
|
|
2584
2670
|
enabledCollections?: string[];
|
|
@@ -2594,6 +2680,9 @@ declare const _default: {
|
|
|
2594
2680
|
OTHER?: import("./const").REPORT_REASON.OTHER;
|
|
2595
2681
|
};
|
|
2596
2682
|
isGQLPluginEnabled?: boolean;
|
|
2683
|
+
gql?: {
|
|
2684
|
+
auth?: boolean;
|
|
2685
|
+
};
|
|
2597
2686
|
} | Omit<{
|
|
2598
2687
|
enabledCollections?: string[];
|
|
2599
2688
|
approvalFlow?: string[];
|
|
@@ -2608,6 +2697,9 @@ declare const _default: {
|
|
|
2608
2697
|
OTHER?: import("./const").REPORT_REASON.OTHER;
|
|
2609
2698
|
};
|
|
2610
2699
|
isGQLPluginEnabled?: boolean;
|
|
2700
|
+
gql?: {
|
|
2701
|
+
auth?: boolean;
|
|
2702
|
+
};
|
|
2611
2703
|
}, "enabledCollections" | "moderatorRoles" | "isGQLPluginEnabled">>;
|
|
2612
2704
|
update(ctx: import("./@types-v5").RequestContext<{
|
|
2613
2705
|
enabledCollections?: string[];
|
|
@@ -2623,6 +2715,9 @@ declare const _default: {
|
|
|
2623
2715
|
OTHER?: import("./const").REPORT_REASON.OTHER;
|
|
2624
2716
|
};
|
|
2625
2717
|
isGQLPluginEnabled?: boolean;
|
|
2718
|
+
gql?: {
|
|
2719
|
+
auth?: boolean;
|
|
2720
|
+
};
|
|
2626
2721
|
}>): Promise<{
|
|
2627
2722
|
enabledCollections?: string[];
|
|
2628
2723
|
approvalFlow?: string[];
|
|
@@ -2637,6 +2732,9 @@ declare const _default: {
|
|
|
2637
2732
|
OTHER?: import("./const").REPORT_REASON.OTHER;
|
|
2638
2733
|
};
|
|
2639
2734
|
isGQLPluginEnabled?: boolean;
|
|
2735
|
+
gql?: {
|
|
2736
|
+
auth?: boolean;
|
|
2737
|
+
};
|
|
2640
2738
|
} | Omit<{
|
|
2641
2739
|
enabledCollections?: string[];
|
|
2642
2740
|
approvalFlow?: string[];
|
|
@@ -2651,6 +2749,9 @@ declare const _default: {
|
|
|
2651
2749
|
OTHER?: import("./const").REPORT_REASON.OTHER;
|
|
2652
2750
|
};
|
|
2653
2751
|
isGQLPluginEnabled?: boolean;
|
|
2752
|
+
gql?: {
|
|
2753
|
+
auth?: boolean;
|
|
2754
|
+
};
|
|
2654
2755
|
}, "enabledCollections" | "moderatorRoles" | "isGQLPluginEnabled">>;
|
|
2655
2756
|
restore(ctx: import("./@types-v5").RequestContext): Promise<{
|
|
2656
2757
|
enabledCollections?: string[];
|
|
@@ -2666,6 +2767,9 @@ declare const _default: {
|
|
|
2666
2767
|
OTHER?: import("./const").REPORT_REASON.OTHER;
|
|
2667
2768
|
};
|
|
2668
2769
|
isGQLPluginEnabled?: boolean;
|
|
2770
|
+
gql?: {
|
|
2771
|
+
auth?: boolean;
|
|
2772
|
+
};
|
|
2669
2773
|
} | Omit<{
|
|
2670
2774
|
enabledCollections?: string[];
|
|
2671
2775
|
approvalFlow?: string[];
|
|
@@ -2680,6 +2784,9 @@ declare const _default: {
|
|
|
2680
2784
|
OTHER?: import("./const").REPORT_REASON.OTHER;
|
|
2681
2785
|
};
|
|
2682
2786
|
isGQLPluginEnabled?: boolean;
|
|
2787
|
+
gql?: {
|
|
2788
|
+
auth?: boolean;
|
|
2789
|
+
};
|
|
2683
2790
|
}, "enabledCollections" | "moderatorRoles" | "isGQLPluginEnabled">>;
|
|
2684
2791
|
restart(ctx: import("./@types-v5").RequestContext): Promise<any>;
|
|
2685
2792
|
};
|
|
@@ -2697,7 +2804,7 @@ declare const _default: {
|
|
|
2697
2804
|
services: {
|
|
2698
2805
|
admin: ({ strapi }: import("./@types-v5").StrapiContext) => {
|
|
2699
2806
|
getCommonService(): {
|
|
2700
|
-
getConfig<T_3 extends "enabledCollections" | "approvalFlow" | "entryLabel" | "moderatorRoles" | "badWords" | "blockedAuthorProps" | "isValidationEnabled" | "reportReasons" | "isGQLPluginEnabled">(prop?: T_3, defaultValue?: {
|
|
2807
|
+
getConfig<T_3 extends "enabledCollections" | "approvalFlow" | "entryLabel" | "moderatorRoles" | "badWords" | "blockedAuthorProps" | "isValidationEnabled" | "reportReasons" | "isGQLPluginEnabled" | "gql">(prop?: T_3, defaultValue?: {
|
|
2701
2808
|
enabledCollections?: string[];
|
|
2702
2809
|
approvalFlow?: string[];
|
|
2703
2810
|
entryLabel?: Record<string, string[]>;
|
|
@@ -2711,7 +2818,10 @@ declare const _default: {
|
|
|
2711
2818
|
OTHER?: import("./const").REPORT_REASON.OTHER;
|
|
2712
2819
|
};
|
|
2713
2820
|
isGQLPluginEnabled?: boolean;
|
|
2714
|
-
|
|
2821
|
+
gql?: {
|
|
2822
|
+
auth?: boolean;
|
|
2823
|
+
};
|
|
2824
|
+
}[T_3], useLocal?: boolean): Promise<T_3 extends "enabledCollections" | "approvalFlow" | "entryLabel" | "moderatorRoles" | "badWords" | "blockedAuthorProps" | "isValidationEnabled" | "reportReasons" | "isGQLPluginEnabled" | "gql" ? {
|
|
2715
2825
|
enabledCollections?: string[];
|
|
2716
2826
|
approvalFlow?: string[];
|
|
2717
2827
|
entryLabel?: Record<string, string[]>;
|
|
@@ -2725,6 +2835,9 @@ declare const _default: {
|
|
|
2725
2835
|
OTHER?: import("./const").REPORT_REASON.OTHER;
|
|
2726
2836
|
};
|
|
2727
2837
|
isGQLPluginEnabled?: boolean;
|
|
2838
|
+
gql?: {
|
|
2839
|
+
auth?: boolean;
|
|
2840
|
+
};
|
|
2728
2841
|
}[T_3] : {
|
|
2729
2842
|
enabledCollections?: string[];
|
|
2730
2843
|
approvalFlow?: string[];
|
|
@@ -2739,10 +2852,13 @@ declare const _default: {
|
|
|
2739
2852
|
OTHER?: import("./const").REPORT_REASON.OTHER;
|
|
2740
2853
|
};
|
|
2741
2854
|
isGQLPluginEnabled?: boolean;
|
|
2855
|
+
gql?: {
|
|
2856
|
+
auth?: boolean;
|
|
2857
|
+
};
|
|
2742
2858
|
}>;
|
|
2743
2859
|
parseRelationString(relation: string): {
|
|
2744
2860
|
uid: import("@strapi/types/dist/uid").ContentType;
|
|
2745
|
-
relatedId: string
|
|
2861
|
+
relatedId: string;
|
|
2746
2862
|
};
|
|
2747
2863
|
isValidUserContext<T_4 extends {
|
|
2748
2864
|
id?: string | number;
|
|
@@ -2828,6 +2944,8 @@ declare const _default: {
|
|
|
2828
2944
|
approvalStatus?: string;
|
|
2829
2945
|
related?: {
|
|
2830
2946
|
id?: number;
|
|
2947
|
+
documentId?: string;
|
|
2948
|
+
locale?: string;
|
|
2831
2949
|
uid?: string;
|
|
2832
2950
|
requireCommentsApproval?: boolean;
|
|
2833
2951
|
};
|
|
@@ -2959,44 +3077,20 @@ declare const _default: {
|
|
|
2959
3077
|
author?: any;
|
|
2960
3078
|
};
|
|
2961
3079
|
};
|
|
2962
|
-
findAllFlat({ fields, limit, skip, sort,
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
} | {
|
|
2977
|
-
$lt?: string;
|
|
2978
|
-
} | {
|
|
2979
|
-
$lte?: string;
|
|
2980
|
-
} | {
|
|
2981
|
-
$startsWith?: string;
|
|
2982
|
-
} | {
|
|
2983
|
-
$startsWithi?: string;
|
|
2984
|
-
} | {
|
|
2985
|
-
$endsWith?: string;
|
|
2986
|
-
} | {
|
|
2987
|
-
$endsWithi?: string;
|
|
2988
|
-
} | {
|
|
2989
|
-
$contains?: string;
|
|
2990
|
-
} | {
|
|
2991
|
-
$containsi?: string;
|
|
2992
|
-
} | {
|
|
2993
|
-
$notContains?: string;
|
|
2994
|
-
} | {
|
|
2995
|
-
$notContainsi?: string;
|
|
2996
|
-
} | {
|
|
2997
|
-
$notNull?: boolean;
|
|
2998
|
-
}>[];
|
|
2999
|
-
$or?: Record<string, string | number | {
|
|
3080
|
+
findAllFlat({ fields, limit, skip, sort, populate, omit: baseOmit, isAdmin, pagination, filters, locale, }: {
|
|
3081
|
+
sort?: string;
|
|
3082
|
+
locale?: string;
|
|
3083
|
+
pagination?: {
|
|
3084
|
+
page?: number;
|
|
3085
|
+
pageSize?: number;
|
|
3086
|
+
withCount?: boolean;
|
|
3087
|
+
};
|
|
3088
|
+
relation?: `{${string}::${string}.${string}}`;
|
|
3089
|
+
populate?: Record<string, boolean | {
|
|
3090
|
+
populate?: boolean;
|
|
3091
|
+
}>;
|
|
3092
|
+
filters?: {
|
|
3093
|
+
id?: string | number | {
|
|
3000
3094
|
$eq?: string;
|
|
3001
3095
|
} | {
|
|
3002
3096
|
$eqi?: string;
|
|
@@ -3030,10 +3124,7 @@ declare const _default: {
|
|
|
3030
3124
|
$notContainsi?: string;
|
|
3031
3125
|
} | {
|
|
3032
3126
|
$notNull?: boolean;
|
|
3033
|
-
}
|
|
3034
|
-
} | Record<string, string | number | boolean | Record<string, string | number | boolean>>;
|
|
3035
|
-
sort?: string;
|
|
3036
|
-
filter?: {
|
|
3127
|
+
};
|
|
3037
3128
|
content?: string | number | {
|
|
3038
3129
|
$eq?: string;
|
|
3039
3130
|
} | {
|
|
@@ -3175,15 +3266,6 @@ declare const _default: {
|
|
|
3175
3266
|
$notNull?: boolean;
|
|
3176
3267
|
};
|
|
3177
3268
|
};
|
|
3178
|
-
pagination?: {
|
|
3179
|
-
page?: number;
|
|
3180
|
-
pageSize?: number;
|
|
3181
|
-
withCount?: boolean;
|
|
3182
|
-
};
|
|
3183
|
-
relation?: `{${string}::${string}.${number}}`;
|
|
3184
|
-
populate?: Record<string, boolean | {
|
|
3185
|
-
populate?: boolean;
|
|
3186
|
-
}>;
|
|
3187
3269
|
limit?: number;
|
|
3188
3270
|
fields?: string[];
|
|
3189
3271
|
omit?: string[];
|
|
@@ -3271,6 +3353,8 @@ declare const _default: {
|
|
|
3271
3353
|
approvalStatus?: string;
|
|
3272
3354
|
related?: {
|
|
3273
3355
|
id?: number;
|
|
3356
|
+
documentId?: string;
|
|
3357
|
+
locale?: string;
|
|
3274
3358
|
uid?: string;
|
|
3275
3359
|
requireCommentsApproval?: boolean;
|
|
3276
3360
|
};
|
|
@@ -3340,44 +3424,15 @@ declare const _default: {
|
|
|
3340
3424
|
total?: number;
|
|
3341
3425
|
};
|
|
3342
3426
|
}>;
|
|
3343
|
-
findAllInHierarchy({
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
$nei?: string;
|
|
3353
|
-
} | {
|
|
3354
|
-
$gt?: string;
|
|
3355
|
-
} | {
|
|
3356
|
-
$gte?: string;
|
|
3357
|
-
} | {
|
|
3358
|
-
$lt?: string;
|
|
3359
|
-
} | {
|
|
3360
|
-
$lte?: string;
|
|
3361
|
-
} | {
|
|
3362
|
-
$startsWith?: string;
|
|
3363
|
-
} | {
|
|
3364
|
-
$startsWithi?: string;
|
|
3365
|
-
} | {
|
|
3366
|
-
$endsWith?: string;
|
|
3367
|
-
} | {
|
|
3368
|
-
$endsWithi?: string;
|
|
3369
|
-
} | {
|
|
3370
|
-
$contains?: string;
|
|
3371
|
-
} | {
|
|
3372
|
-
$containsi?: string;
|
|
3373
|
-
} | {
|
|
3374
|
-
$notContains?: string;
|
|
3375
|
-
} | {
|
|
3376
|
-
$notContainsi?: string;
|
|
3377
|
-
} | {
|
|
3378
|
-
$notNull?: boolean;
|
|
3379
|
-
}>[];
|
|
3380
|
-
$or?: Record<string, string | number | {
|
|
3427
|
+
findAllInHierarchy({ filters, populate, sort, fields, startingFromId, dropBlockedThreads, isAdmin, omit, locale, }: {
|
|
3428
|
+
sort?: string;
|
|
3429
|
+
locale?: string;
|
|
3430
|
+
relation?: `{${string}::${string}.${string}}`;
|
|
3431
|
+
populate?: Record<string, boolean | {
|
|
3432
|
+
populate?: boolean;
|
|
3433
|
+
}>;
|
|
3434
|
+
filters?: {
|
|
3435
|
+
id?: string | number | {
|
|
3381
3436
|
$eq?: string;
|
|
3382
3437
|
} | {
|
|
3383
3438
|
$eqi?: string;
|
|
@@ -3411,10 +3466,7 @@ declare const _default: {
|
|
|
3411
3466
|
$notContainsi?: string;
|
|
3412
3467
|
} | {
|
|
3413
3468
|
$notNull?: boolean;
|
|
3414
|
-
}
|
|
3415
|
-
} | Record<string, string | number | boolean | Record<string, string | number | boolean>>;
|
|
3416
|
-
sort?: string;
|
|
3417
|
-
filter?: {
|
|
3469
|
+
};
|
|
3418
3470
|
content?: string | number | {
|
|
3419
3471
|
$eq?: string;
|
|
3420
3472
|
} | {
|
|
@@ -3556,10 +3608,6 @@ declare const _default: {
|
|
|
3556
3608
|
$notNull?: boolean;
|
|
3557
3609
|
};
|
|
3558
3610
|
};
|
|
3559
|
-
relation?: `{${string}::${string}.${number}}`;
|
|
3560
|
-
populate?: Record<string, boolean | {
|
|
3561
|
-
populate?: boolean;
|
|
3562
|
-
}>;
|
|
3563
3611
|
limit?: number;
|
|
3564
3612
|
fields?: string[];
|
|
3565
3613
|
omit?: string[];
|
|
@@ -3916,9 +3964,21 @@ declare const _default: {
|
|
|
3916
3964
|
author?: any;
|
|
3917
3965
|
};
|
|
3918
3966
|
}>;
|
|
3919
|
-
findAllPerAuthor({
|
|
3920
|
-
|
|
3921
|
-
|
|
3967
|
+
findAllPerAuthor({ filters, populate, pagination, sort, fields, isAdmin, authorId, }: {
|
|
3968
|
+
type?: string;
|
|
3969
|
+
sort?: string;
|
|
3970
|
+
authorId?: string | number;
|
|
3971
|
+
locale?: string;
|
|
3972
|
+
pagination?: {
|
|
3973
|
+
page?: number;
|
|
3974
|
+
pageSize?: number;
|
|
3975
|
+
withCount?: boolean;
|
|
3976
|
+
};
|
|
3977
|
+
populate?: Record<string, boolean | {
|
|
3978
|
+
populate?: boolean;
|
|
3979
|
+
}>;
|
|
3980
|
+
filters?: {
|
|
3981
|
+
id?: string | number | {
|
|
3922
3982
|
$eq?: string;
|
|
3923
3983
|
} | {
|
|
3924
3984
|
$eqi?: string;
|
|
@@ -3952,8 +4012,8 @@ declare const _default: {
|
|
|
3952
4012
|
$notContainsi?: string;
|
|
3953
4013
|
} | {
|
|
3954
4014
|
$notNull?: boolean;
|
|
3955
|
-
}
|
|
3956
|
-
|
|
4015
|
+
};
|
|
4016
|
+
content?: string | number | {
|
|
3957
4017
|
$eq?: string;
|
|
3958
4018
|
} | {
|
|
3959
4019
|
$eqi?: string;
|
|
@@ -3987,19 +4047,113 @@ declare const _default: {
|
|
|
3987
4047
|
$notContainsi?: string;
|
|
3988
4048
|
} | {
|
|
3989
4049
|
$notNull?: boolean;
|
|
3990
|
-
}
|
|
3991
|
-
|
|
3992
|
-
|
|
3993
|
-
|
|
3994
|
-
|
|
3995
|
-
|
|
3996
|
-
|
|
3997
|
-
|
|
3998
|
-
|
|
4050
|
+
};
|
|
4051
|
+
createdAt?: string | number | {
|
|
4052
|
+
$eq?: string;
|
|
4053
|
+
} | {
|
|
4054
|
+
$eqi?: string;
|
|
4055
|
+
} | {
|
|
4056
|
+
$ne?: string;
|
|
4057
|
+
} | {
|
|
4058
|
+
$nei?: string;
|
|
4059
|
+
} | {
|
|
4060
|
+
$gt?: string;
|
|
4061
|
+
} | {
|
|
4062
|
+
$gte?: string;
|
|
4063
|
+
} | {
|
|
4064
|
+
$lt?: string;
|
|
4065
|
+
} | {
|
|
4066
|
+
$lte?: string;
|
|
4067
|
+
} | {
|
|
4068
|
+
$startsWith?: string;
|
|
4069
|
+
} | {
|
|
4070
|
+
$startsWithi?: string;
|
|
4071
|
+
} | {
|
|
4072
|
+
$endsWith?: string;
|
|
4073
|
+
} | {
|
|
4074
|
+
$endsWithi?: string;
|
|
4075
|
+
} | {
|
|
4076
|
+
$contains?: string;
|
|
4077
|
+
} | {
|
|
4078
|
+
$containsi?: string;
|
|
4079
|
+
} | {
|
|
4080
|
+
$notContains?: string;
|
|
4081
|
+
} | {
|
|
4082
|
+
$notContainsi?: string;
|
|
4083
|
+
} | {
|
|
4084
|
+
$notNull?: boolean;
|
|
4085
|
+
};
|
|
4086
|
+
updatedAt?: string | number | {
|
|
4087
|
+
$eq?: string;
|
|
4088
|
+
} | {
|
|
4089
|
+
$eqi?: string;
|
|
4090
|
+
} | {
|
|
4091
|
+
$ne?: string;
|
|
4092
|
+
} | {
|
|
4093
|
+
$nei?: string;
|
|
4094
|
+
} | {
|
|
4095
|
+
$gt?: string;
|
|
4096
|
+
} | {
|
|
4097
|
+
$gte?: string;
|
|
4098
|
+
} | {
|
|
4099
|
+
$lt?: string;
|
|
4100
|
+
} | {
|
|
4101
|
+
$lte?: string;
|
|
4102
|
+
} | {
|
|
4103
|
+
$startsWith?: string;
|
|
4104
|
+
} | {
|
|
4105
|
+
$startsWithi?: string;
|
|
4106
|
+
} | {
|
|
4107
|
+
$endsWith?: string;
|
|
4108
|
+
} | {
|
|
4109
|
+
$endsWithi?: string;
|
|
4110
|
+
} | {
|
|
4111
|
+
$contains?: string;
|
|
4112
|
+
} | {
|
|
4113
|
+
$containsi?: string;
|
|
4114
|
+
} | {
|
|
4115
|
+
$notContains?: string;
|
|
4116
|
+
} | {
|
|
4117
|
+
$notContainsi?: string;
|
|
4118
|
+
} | {
|
|
4119
|
+
$notNull?: boolean;
|
|
4120
|
+
};
|
|
4121
|
+
authorName?: string | number | {
|
|
4122
|
+
$eq?: string;
|
|
4123
|
+
} | {
|
|
4124
|
+
$eqi?: string;
|
|
4125
|
+
} | {
|
|
4126
|
+
$ne?: string;
|
|
4127
|
+
} | {
|
|
4128
|
+
$nei?: string;
|
|
4129
|
+
} | {
|
|
4130
|
+
$gt?: string;
|
|
4131
|
+
} | {
|
|
4132
|
+
$gte?: string;
|
|
4133
|
+
} | {
|
|
4134
|
+
$lt?: string;
|
|
4135
|
+
} | {
|
|
4136
|
+
$lte?: string;
|
|
4137
|
+
} | {
|
|
4138
|
+
$startsWith?: string;
|
|
4139
|
+
} | {
|
|
4140
|
+
$startsWithi?: string;
|
|
4141
|
+
} | {
|
|
4142
|
+
$endsWith?: string;
|
|
4143
|
+
} | {
|
|
4144
|
+
$endsWithi?: string;
|
|
4145
|
+
} | {
|
|
4146
|
+
$contains?: string;
|
|
4147
|
+
} | {
|
|
4148
|
+
$containsi?: string;
|
|
4149
|
+
} | {
|
|
4150
|
+
$notContains?: string;
|
|
4151
|
+
} | {
|
|
4152
|
+
$notContainsi?: string;
|
|
4153
|
+
} | {
|
|
4154
|
+
$notNull?: boolean;
|
|
4155
|
+
};
|
|
3999
4156
|
};
|
|
4000
|
-
populate?: Record<string, boolean | {
|
|
4001
|
-
populate?: boolean;
|
|
4002
|
-
}>;
|
|
4003
4157
|
limit?: number;
|
|
4004
4158
|
fields?: string[];
|
|
4005
4159
|
omit?: string[];
|
|
@@ -4086,6 +4240,8 @@ declare const _default: {
|
|
|
4086
4240
|
approvalStatus?: string;
|
|
4087
4241
|
related?: {
|
|
4088
4242
|
id?: number;
|
|
4243
|
+
documentId?: string;
|
|
4244
|
+
locale?: string;
|
|
4089
4245
|
uid?: string;
|
|
4090
4246
|
requireCommentsApproval?: boolean;
|
|
4091
4247
|
};
|
|
@@ -4225,6 +4381,8 @@ declare const _default: {
|
|
|
4225
4381
|
};
|
|
4226
4382
|
}[]): Promise<{
|
|
4227
4383
|
id?: number;
|
|
4384
|
+
documentId?: string;
|
|
4385
|
+
locale?: string;
|
|
4228
4386
|
uid?: string;
|
|
4229
4387
|
requireCommentsApproval?: boolean;
|
|
4230
4388
|
}[]>;
|
|
@@ -4299,6 +4457,8 @@ declare const _default: {
|
|
|
4299
4457
|
};
|
|
4300
4458
|
}, relatedEntities?: {
|
|
4301
4459
|
id?: number;
|
|
4460
|
+
documentId?: string;
|
|
4461
|
+
locale?: string;
|
|
4302
4462
|
uid?: string;
|
|
4303
4463
|
requireCommentsApproval?: boolean;
|
|
4304
4464
|
}[]): {
|
|
@@ -4313,6 +4473,8 @@ declare const _default: {
|
|
|
4313
4473
|
approvalStatus?: string;
|
|
4314
4474
|
related?: {
|
|
4315
4475
|
id?: number;
|
|
4476
|
+
documentId?: string;
|
|
4477
|
+
locale?: string;
|
|
4316
4478
|
uid?: string;
|
|
4317
4479
|
requireCommentsApproval?: boolean;
|
|
4318
4480
|
};
|
|
@@ -4473,6 +4635,8 @@ declare const _default: {
|
|
|
4473
4635
|
approvalStatus?: string;
|
|
4474
4636
|
related?: {
|
|
4475
4637
|
id?: number;
|
|
4638
|
+
documentId?: string;
|
|
4639
|
+
locale?: string;
|
|
4476
4640
|
uid?: string;
|
|
4477
4641
|
requireCommentsApproval?: boolean;
|
|
4478
4642
|
};
|
|
@@ -5298,7 +5462,7 @@ declare const _default: {
|
|
|
5298
5462
|
};
|
|
5299
5463
|
client: ({ strapi }: import("./@types-v5").StrapiContext) => {
|
|
5300
5464
|
getCommonService(): {
|
|
5301
|
-
getConfig<T_3 extends "enabledCollections" | "approvalFlow" | "entryLabel" | "moderatorRoles" | "badWords" | "blockedAuthorProps" | "isValidationEnabled" | "reportReasons" | "isGQLPluginEnabled">(prop?: T_3, defaultValue?: {
|
|
5465
|
+
getConfig<T_3 extends "enabledCollections" | "approvalFlow" | "entryLabel" | "moderatorRoles" | "badWords" | "blockedAuthorProps" | "isValidationEnabled" | "reportReasons" | "isGQLPluginEnabled" | "gql">(prop?: T_3, defaultValue?: {
|
|
5302
5466
|
enabledCollections?: string[];
|
|
5303
5467
|
approvalFlow?: string[];
|
|
5304
5468
|
entryLabel?: Record<string, string[]>;
|
|
@@ -5312,7 +5476,10 @@ declare const _default: {
|
|
|
5312
5476
|
OTHER?: import("./const").REPORT_REASON.OTHER;
|
|
5313
5477
|
};
|
|
5314
5478
|
isGQLPluginEnabled?: boolean;
|
|
5315
|
-
|
|
5479
|
+
gql?: {
|
|
5480
|
+
auth?: boolean;
|
|
5481
|
+
};
|
|
5482
|
+
}[T_3], useLocal?: boolean): Promise<T_3 extends "enabledCollections" | "approvalFlow" | "entryLabel" | "moderatorRoles" | "badWords" | "blockedAuthorProps" | "isValidationEnabled" | "reportReasons" | "isGQLPluginEnabled" | "gql" ? {
|
|
5316
5483
|
enabledCollections?: string[];
|
|
5317
5484
|
approvalFlow?: string[];
|
|
5318
5485
|
entryLabel?: Record<string, string[]>;
|
|
@@ -5326,6 +5493,9 @@ declare const _default: {
|
|
|
5326
5493
|
OTHER?: import("./const").REPORT_REASON.OTHER;
|
|
5327
5494
|
};
|
|
5328
5495
|
isGQLPluginEnabled?: boolean;
|
|
5496
|
+
gql?: {
|
|
5497
|
+
auth?: boolean;
|
|
5498
|
+
};
|
|
5329
5499
|
}[T_3] : {
|
|
5330
5500
|
enabledCollections?: string[];
|
|
5331
5501
|
approvalFlow?: string[];
|
|
@@ -5340,10 +5510,13 @@ declare const _default: {
|
|
|
5340
5510
|
OTHER?: import("./const").REPORT_REASON.OTHER;
|
|
5341
5511
|
};
|
|
5342
5512
|
isGQLPluginEnabled?: boolean;
|
|
5513
|
+
gql?: {
|
|
5514
|
+
auth?: boolean;
|
|
5515
|
+
};
|
|
5343
5516
|
}>;
|
|
5344
5517
|
parseRelationString(relation: string): {
|
|
5345
5518
|
uid: import("@strapi/types/dist/uid").ContentType;
|
|
5346
|
-
relatedId: string
|
|
5519
|
+
relatedId: string;
|
|
5347
5520
|
};
|
|
5348
5521
|
isValidUserContext<T_4 extends {
|
|
5349
5522
|
id?: string | number;
|
|
@@ -5429,6 +5602,8 @@ declare const _default: {
|
|
|
5429
5602
|
approvalStatus?: string;
|
|
5430
5603
|
related?: {
|
|
5431
5604
|
id?: number;
|
|
5605
|
+
documentId?: string;
|
|
5606
|
+
locale?: string;
|
|
5432
5607
|
uid?: string;
|
|
5433
5608
|
requireCommentsApproval?: boolean;
|
|
5434
5609
|
};
|
|
@@ -5560,44 +5735,20 @@ declare const _default: {
|
|
|
5560
5735
|
author?: any;
|
|
5561
5736
|
};
|
|
5562
5737
|
};
|
|
5563
|
-
findAllFlat({ fields, limit, skip, sort,
|
|
5564
|
-
|
|
5565
|
-
|
|
5566
|
-
|
|
5567
|
-
|
|
5568
|
-
|
|
5569
|
-
|
|
5570
|
-
|
|
5571
|
-
|
|
5572
|
-
|
|
5573
|
-
|
|
5574
|
-
|
|
5575
|
-
|
|
5576
|
-
|
|
5577
|
-
} | {
|
|
5578
|
-
$lt?: string;
|
|
5579
|
-
} | {
|
|
5580
|
-
$lte?: string;
|
|
5581
|
-
} | {
|
|
5582
|
-
$startsWith?: string;
|
|
5583
|
-
} | {
|
|
5584
|
-
$startsWithi?: string;
|
|
5585
|
-
} | {
|
|
5586
|
-
$endsWith?: string;
|
|
5587
|
-
} | {
|
|
5588
|
-
$endsWithi?: string;
|
|
5589
|
-
} | {
|
|
5590
|
-
$contains?: string;
|
|
5591
|
-
} | {
|
|
5592
|
-
$containsi?: string;
|
|
5593
|
-
} | {
|
|
5594
|
-
$notContains?: string;
|
|
5595
|
-
} | {
|
|
5596
|
-
$notContainsi?: string;
|
|
5597
|
-
} | {
|
|
5598
|
-
$notNull?: boolean;
|
|
5599
|
-
}>[];
|
|
5600
|
-
$or?: Record<string, string | number | {
|
|
5738
|
+
findAllFlat({ fields, limit, skip, sort, populate, omit: baseOmit, isAdmin, pagination, filters, locale, }: {
|
|
5739
|
+
sort?: string;
|
|
5740
|
+
locale?: string;
|
|
5741
|
+
pagination?: {
|
|
5742
|
+
page?: number;
|
|
5743
|
+
pageSize?: number;
|
|
5744
|
+
withCount?: boolean;
|
|
5745
|
+
};
|
|
5746
|
+
relation?: `{${string}::${string}.${string}}`;
|
|
5747
|
+
populate?: Record<string, boolean | {
|
|
5748
|
+
populate?: boolean;
|
|
5749
|
+
}>;
|
|
5750
|
+
filters?: {
|
|
5751
|
+
id?: string | number | {
|
|
5601
5752
|
$eq?: string;
|
|
5602
5753
|
} | {
|
|
5603
5754
|
$eqi?: string;
|
|
@@ -5631,10 +5782,7 @@ declare const _default: {
|
|
|
5631
5782
|
$notContainsi?: string;
|
|
5632
5783
|
} | {
|
|
5633
5784
|
$notNull?: boolean;
|
|
5634
|
-
}
|
|
5635
|
-
} | Record<string, string | number | boolean | Record<string, string | number | boolean>>;
|
|
5636
|
-
sort?: string;
|
|
5637
|
-
filter?: {
|
|
5785
|
+
};
|
|
5638
5786
|
content?: string | number | {
|
|
5639
5787
|
$eq?: string;
|
|
5640
5788
|
} | {
|
|
@@ -5776,15 +5924,6 @@ declare const _default: {
|
|
|
5776
5924
|
$notNull?: boolean;
|
|
5777
5925
|
};
|
|
5778
5926
|
};
|
|
5779
|
-
pagination?: {
|
|
5780
|
-
page?: number;
|
|
5781
|
-
pageSize?: number;
|
|
5782
|
-
withCount?: boolean;
|
|
5783
|
-
};
|
|
5784
|
-
relation?: `{${string}::${string}.${number}}`;
|
|
5785
|
-
populate?: Record<string, boolean | {
|
|
5786
|
-
populate?: boolean;
|
|
5787
|
-
}>;
|
|
5788
5927
|
limit?: number;
|
|
5789
5928
|
fields?: string[];
|
|
5790
5929
|
omit?: string[];
|
|
@@ -5872,6 +6011,8 @@ declare const _default: {
|
|
|
5872
6011
|
approvalStatus?: string;
|
|
5873
6012
|
related?: {
|
|
5874
6013
|
id?: number;
|
|
6014
|
+
documentId?: string;
|
|
6015
|
+
locale?: string;
|
|
5875
6016
|
uid?: string;
|
|
5876
6017
|
requireCommentsApproval?: boolean;
|
|
5877
6018
|
};
|
|
@@ -5941,44 +6082,15 @@ declare const _default: {
|
|
|
5941
6082
|
total?: number;
|
|
5942
6083
|
};
|
|
5943
6084
|
}>;
|
|
5944
|
-
findAllInHierarchy({
|
|
5945
|
-
|
|
5946
|
-
|
|
5947
|
-
|
|
5948
|
-
|
|
5949
|
-
|
|
5950
|
-
|
|
5951
|
-
|
|
5952
|
-
|
|
5953
|
-
$nei?: string;
|
|
5954
|
-
} | {
|
|
5955
|
-
$gt?: string;
|
|
5956
|
-
} | {
|
|
5957
|
-
$gte?: string;
|
|
5958
|
-
} | {
|
|
5959
|
-
$lt?: string;
|
|
5960
|
-
} | {
|
|
5961
|
-
$lte?: string;
|
|
5962
|
-
} | {
|
|
5963
|
-
$startsWith?: string;
|
|
5964
|
-
} | {
|
|
5965
|
-
$startsWithi?: string;
|
|
5966
|
-
} | {
|
|
5967
|
-
$endsWith?: string;
|
|
5968
|
-
} | {
|
|
5969
|
-
$endsWithi?: string;
|
|
5970
|
-
} | {
|
|
5971
|
-
$contains?: string;
|
|
5972
|
-
} | {
|
|
5973
|
-
$containsi?: string;
|
|
5974
|
-
} | {
|
|
5975
|
-
$notContains?: string;
|
|
5976
|
-
} | {
|
|
5977
|
-
$notContainsi?: string;
|
|
5978
|
-
} | {
|
|
5979
|
-
$notNull?: boolean;
|
|
5980
|
-
}>[];
|
|
5981
|
-
$or?: Record<string, string | number | {
|
|
6085
|
+
findAllInHierarchy({ filters, populate, sort, fields, startingFromId, dropBlockedThreads, isAdmin, omit, locale, }: {
|
|
6086
|
+
sort?: string;
|
|
6087
|
+
locale?: string;
|
|
6088
|
+
relation?: `{${string}::${string}.${string}}`;
|
|
6089
|
+
populate?: Record<string, boolean | {
|
|
6090
|
+
populate?: boolean;
|
|
6091
|
+
}>;
|
|
6092
|
+
filters?: {
|
|
6093
|
+
id?: string | number | {
|
|
5982
6094
|
$eq?: string;
|
|
5983
6095
|
} | {
|
|
5984
6096
|
$eqi?: string;
|
|
@@ -6012,10 +6124,7 @@ declare const _default: {
|
|
|
6012
6124
|
$notContainsi?: string;
|
|
6013
6125
|
} | {
|
|
6014
6126
|
$notNull?: boolean;
|
|
6015
|
-
}
|
|
6016
|
-
} | Record<string, string | number | boolean | Record<string, string | number | boolean>>;
|
|
6017
|
-
sort?: string;
|
|
6018
|
-
filter?: {
|
|
6127
|
+
};
|
|
6019
6128
|
content?: string | number | {
|
|
6020
6129
|
$eq?: string;
|
|
6021
6130
|
} | {
|
|
@@ -6157,10 +6266,6 @@ declare const _default: {
|
|
|
6157
6266
|
$notNull?: boolean;
|
|
6158
6267
|
};
|
|
6159
6268
|
};
|
|
6160
|
-
relation?: `{${string}::${string}.${number}}`;
|
|
6161
|
-
populate?: Record<string, boolean | {
|
|
6162
|
-
populate?: boolean;
|
|
6163
|
-
}>;
|
|
6164
6269
|
limit?: number;
|
|
6165
6270
|
fields?: string[];
|
|
6166
6271
|
omit?: string[];
|
|
@@ -6517,9 +6622,21 @@ declare const _default: {
|
|
|
6517
6622
|
author?: any;
|
|
6518
6623
|
};
|
|
6519
6624
|
}>;
|
|
6520
|
-
findAllPerAuthor({
|
|
6521
|
-
|
|
6522
|
-
|
|
6625
|
+
findAllPerAuthor({ filters, populate, pagination, sort, fields, isAdmin, authorId, }: {
|
|
6626
|
+
type?: string;
|
|
6627
|
+
sort?: string;
|
|
6628
|
+
authorId?: string | number;
|
|
6629
|
+
locale?: string;
|
|
6630
|
+
pagination?: {
|
|
6631
|
+
page?: number;
|
|
6632
|
+
pageSize?: number;
|
|
6633
|
+
withCount?: boolean;
|
|
6634
|
+
};
|
|
6635
|
+
populate?: Record<string, boolean | {
|
|
6636
|
+
populate?: boolean;
|
|
6637
|
+
}>;
|
|
6638
|
+
filters?: {
|
|
6639
|
+
id?: string | number | {
|
|
6523
6640
|
$eq?: string;
|
|
6524
6641
|
} | {
|
|
6525
6642
|
$eqi?: string;
|
|
@@ -6553,8 +6670,8 @@ declare const _default: {
|
|
|
6553
6670
|
$notContainsi?: string;
|
|
6554
6671
|
} | {
|
|
6555
6672
|
$notNull?: boolean;
|
|
6556
|
-
}
|
|
6557
|
-
|
|
6673
|
+
};
|
|
6674
|
+
content?: string | number | {
|
|
6558
6675
|
$eq?: string;
|
|
6559
6676
|
} | {
|
|
6560
6677
|
$eqi?: string;
|
|
@@ -6588,19 +6705,113 @@ declare const _default: {
|
|
|
6588
6705
|
$notContainsi?: string;
|
|
6589
6706
|
} | {
|
|
6590
6707
|
$notNull?: boolean;
|
|
6591
|
-
}
|
|
6592
|
-
|
|
6593
|
-
|
|
6594
|
-
|
|
6595
|
-
|
|
6596
|
-
|
|
6597
|
-
|
|
6598
|
-
|
|
6599
|
-
|
|
6708
|
+
};
|
|
6709
|
+
createdAt?: string | number | {
|
|
6710
|
+
$eq?: string;
|
|
6711
|
+
} | {
|
|
6712
|
+
$eqi?: string;
|
|
6713
|
+
} | {
|
|
6714
|
+
$ne?: string;
|
|
6715
|
+
} | {
|
|
6716
|
+
$nei?: string;
|
|
6717
|
+
} | {
|
|
6718
|
+
$gt?: string;
|
|
6719
|
+
} | {
|
|
6720
|
+
$gte?: string;
|
|
6721
|
+
} | {
|
|
6722
|
+
$lt?: string;
|
|
6723
|
+
} | {
|
|
6724
|
+
$lte?: string;
|
|
6725
|
+
} | {
|
|
6726
|
+
$startsWith?: string;
|
|
6727
|
+
} | {
|
|
6728
|
+
$startsWithi?: string;
|
|
6729
|
+
} | {
|
|
6730
|
+
$endsWith?: string;
|
|
6731
|
+
} | {
|
|
6732
|
+
$endsWithi?: string;
|
|
6733
|
+
} | {
|
|
6734
|
+
$contains?: string;
|
|
6735
|
+
} | {
|
|
6736
|
+
$containsi?: string;
|
|
6737
|
+
} | {
|
|
6738
|
+
$notContains?: string;
|
|
6739
|
+
} | {
|
|
6740
|
+
$notContainsi?: string;
|
|
6741
|
+
} | {
|
|
6742
|
+
$notNull?: boolean;
|
|
6743
|
+
};
|
|
6744
|
+
updatedAt?: string | number | {
|
|
6745
|
+
$eq?: string;
|
|
6746
|
+
} | {
|
|
6747
|
+
$eqi?: string;
|
|
6748
|
+
} | {
|
|
6749
|
+
$ne?: string;
|
|
6750
|
+
} | {
|
|
6751
|
+
$nei?: string;
|
|
6752
|
+
} | {
|
|
6753
|
+
$gt?: string;
|
|
6754
|
+
} | {
|
|
6755
|
+
$gte?: string;
|
|
6756
|
+
} | {
|
|
6757
|
+
$lt?: string;
|
|
6758
|
+
} | {
|
|
6759
|
+
$lte?: string;
|
|
6760
|
+
} | {
|
|
6761
|
+
$startsWith?: string;
|
|
6762
|
+
} | {
|
|
6763
|
+
$startsWithi?: string;
|
|
6764
|
+
} | {
|
|
6765
|
+
$endsWith?: string;
|
|
6766
|
+
} | {
|
|
6767
|
+
$endsWithi?: string;
|
|
6768
|
+
} | {
|
|
6769
|
+
$contains?: string;
|
|
6770
|
+
} | {
|
|
6771
|
+
$containsi?: string;
|
|
6772
|
+
} | {
|
|
6773
|
+
$notContains?: string;
|
|
6774
|
+
} | {
|
|
6775
|
+
$notContainsi?: string;
|
|
6776
|
+
} | {
|
|
6777
|
+
$notNull?: boolean;
|
|
6778
|
+
};
|
|
6779
|
+
authorName?: string | number | {
|
|
6780
|
+
$eq?: string;
|
|
6781
|
+
} | {
|
|
6782
|
+
$eqi?: string;
|
|
6783
|
+
} | {
|
|
6784
|
+
$ne?: string;
|
|
6785
|
+
} | {
|
|
6786
|
+
$nei?: string;
|
|
6787
|
+
} | {
|
|
6788
|
+
$gt?: string;
|
|
6789
|
+
} | {
|
|
6790
|
+
$gte?: string;
|
|
6791
|
+
} | {
|
|
6792
|
+
$lt?: string;
|
|
6793
|
+
} | {
|
|
6794
|
+
$lte?: string;
|
|
6795
|
+
} | {
|
|
6796
|
+
$startsWith?: string;
|
|
6797
|
+
} | {
|
|
6798
|
+
$startsWithi?: string;
|
|
6799
|
+
} | {
|
|
6800
|
+
$endsWith?: string;
|
|
6801
|
+
} | {
|
|
6802
|
+
$endsWithi?: string;
|
|
6803
|
+
} | {
|
|
6804
|
+
$contains?: string;
|
|
6805
|
+
} | {
|
|
6806
|
+
$containsi?: string;
|
|
6807
|
+
} | {
|
|
6808
|
+
$notContains?: string;
|
|
6809
|
+
} | {
|
|
6810
|
+
$notContainsi?: string;
|
|
6811
|
+
} | {
|
|
6812
|
+
$notNull?: boolean;
|
|
6813
|
+
};
|
|
6600
6814
|
};
|
|
6601
|
-
populate?: Record<string, boolean | {
|
|
6602
|
-
populate?: boolean;
|
|
6603
|
-
}>;
|
|
6604
6815
|
limit?: number;
|
|
6605
6816
|
fields?: string[];
|
|
6606
6817
|
omit?: string[];
|
|
@@ -6687,6 +6898,8 @@ declare const _default: {
|
|
|
6687
6898
|
approvalStatus?: string;
|
|
6688
6899
|
related?: {
|
|
6689
6900
|
id?: number;
|
|
6901
|
+
documentId?: string;
|
|
6902
|
+
locale?: string;
|
|
6690
6903
|
uid?: string;
|
|
6691
6904
|
requireCommentsApproval?: boolean;
|
|
6692
6905
|
};
|
|
@@ -6826,6 +7039,8 @@ declare const _default: {
|
|
|
6826
7039
|
};
|
|
6827
7040
|
}[]): Promise<{
|
|
6828
7041
|
id?: number;
|
|
7042
|
+
documentId?: string;
|
|
7043
|
+
locale?: string;
|
|
6829
7044
|
uid?: string;
|
|
6830
7045
|
requireCommentsApproval?: boolean;
|
|
6831
7046
|
}[]>;
|
|
@@ -6900,6 +7115,8 @@ declare const _default: {
|
|
|
6900
7115
|
};
|
|
6901
7116
|
}, relatedEntities?: {
|
|
6902
7117
|
id?: number;
|
|
7118
|
+
documentId?: string;
|
|
7119
|
+
locale?: string;
|
|
6903
7120
|
uid?: string;
|
|
6904
7121
|
requireCommentsApproval?: boolean;
|
|
6905
7122
|
}[]): {
|
|
@@ -6914,6 +7131,8 @@ declare const _default: {
|
|
|
6914
7131
|
approvalStatus?: string;
|
|
6915
7132
|
related?: {
|
|
6916
7133
|
id?: number;
|
|
7134
|
+
documentId?: string;
|
|
7135
|
+
locale?: string;
|
|
6917
7136
|
uid?: string;
|
|
6918
7137
|
requireCommentsApproval?: boolean;
|
|
6919
7138
|
};
|
|
@@ -7050,9 +7269,10 @@ declare const _default: {
|
|
|
7050
7269
|
registerLifecycleHook(): void;
|
|
7051
7270
|
runLifecycleHook(): Promise<void>;
|
|
7052
7271
|
};
|
|
7053
|
-
create({ relation, content, threadOf, author, approvalStatus }: {
|
|
7272
|
+
create({ relation, content, threadOf, author, approvalStatus, locale }: {
|
|
7054
7273
|
content?: string;
|
|
7055
7274
|
approvalStatus?: import("./const").APPROVAL_STATUS;
|
|
7275
|
+
locale?: string;
|
|
7056
7276
|
author?: {
|
|
7057
7277
|
name?: string;
|
|
7058
7278
|
id?: number;
|
|
@@ -7060,7 +7280,7 @@ declare const _default: {
|
|
|
7060
7280
|
avatar?: string;
|
|
7061
7281
|
};
|
|
7062
7282
|
threadOf?: number;
|
|
7063
|
-
relation?: `{${string}::${string}.${
|
|
7283
|
+
relation?: `{${string}::${string}.${string}}`;
|
|
7064
7284
|
}, user?: import("./@types-v5").AdminUser): Promise<{
|
|
7065
7285
|
id?: number;
|
|
7066
7286
|
documentId?: string;
|
|
@@ -7133,7 +7353,7 @@ declare const _default: {
|
|
|
7133
7353
|
}>;
|
|
7134
7354
|
update({ commentId, content }: {
|
|
7135
7355
|
content?: string;
|
|
7136
|
-
relation?: `{${string}::${string}.${
|
|
7356
|
+
relation?: `{${string}::${string}.${string}}`;
|
|
7137
7357
|
commentId?: number;
|
|
7138
7358
|
}, user?: import("./@types-v5").AdminUser): Promise<{
|
|
7139
7359
|
id?: number;
|
|
@@ -7208,7 +7428,7 @@ declare const _default: {
|
|
|
7208
7428
|
reportAbuse({ commentId, relation, ...payload }: {
|
|
7209
7429
|
content?: string;
|
|
7210
7430
|
reason?: string;
|
|
7211
|
-
relation?: `{${string}::${string}.${
|
|
7431
|
+
relation?: `{${string}::${string}.${string}}`;
|
|
7212
7432
|
commentId?: number;
|
|
7213
7433
|
}, user?: import("./@types-v5").AdminUser): Promise<{
|
|
7214
7434
|
related: {
|
|
@@ -7293,7 +7513,7 @@ declare const _default: {
|
|
|
7293
7513
|
}>;
|
|
7294
7514
|
markAsRemoved({ commentId, relation, authorId }: {
|
|
7295
7515
|
authorId?: string | number;
|
|
7296
|
-
relation?: `{${string}::${string}.${
|
|
7516
|
+
relation?: `{${string}::${string}.${string}}`;
|
|
7297
7517
|
commentId?: number;
|
|
7298
7518
|
}, user: import("./@types-v5").AdminUser): Promise<{
|
|
7299
7519
|
id?: number;
|
|
@@ -7439,7 +7659,7 @@ declare const _default: {
|
|
|
7439
7659
|
}): Promise<void>;
|
|
7440
7660
|
};
|
|
7441
7661
|
common: ({ strapi }: import("./@types-v5").StrapiContext) => {
|
|
7442
|
-
getConfig<T_3 extends "enabledCollections" | "approvalFlow" | "entryLabel" | "moderatorRoles" | "badWords" | "blockedAuthorProps" | "isValidationEnabled" | "reportReasons" | "isGQLPluginEnabled">(prop?: T_3, defaultValue?: {
|
|
7662
|
+
getConfig<T_3 extends "enabledCollections" | "approvalFlow" | "entryLabel" | "moderatorRoles" | "badWords" | "blockedAuthorProps" | "isValidationEnabled" | "reportReasons" | "isGQLPluginEnabled" | "gql">(prop?: T_3, defaultValue?: {
|
|
7443
7663
|
enabledCollections?: string[];
|
|
7444
7664
|
approvalFlow?: string[];
|
|
7445
7665
|
entryLabel?: Record<string, string[]>;
|
|
@@ -7453,7 +7673,10 @@ declare const _default: {
|
|
|
7453
7673
|
OTHER?: import("./const").REPORT_REASON.OTHER;
|
|
7454
7674
|
};
|
|
7455
7675
|
isGQLPluginEnabled?: boolean;
|
|
7456
|
-
|
|
7676
|
+
gql?: {
|
|
7677
|
+
auth?: boolean;
|
|
7678
|
+
};
|
|
7679
|
+
}[T_3], useLocal?: boolean): Promise<T_3 extends "enabledCollections" | "approvalFlow" | "entryLabel" | "moderatorRoles" | "badWords" | "blockedAuthorProps" | "isValidationEnabled" | "reportReasons" | "isGQLPluginEnabled" | "gql" ? {
|
|
7457
7680
|
enabledCollections?: string[];
|
|
7458
7681
|
approvalFlow?: string[];
|
|
7459
7682
|
entryLabel?: Record<string, string[]>;
|
|
@@ -7467,6 +7690,9 @@ declare const _default: {
|
|
|
7467
7690
|
OTHER?: import("./const").REPORT_REASON.OTHER;
|
|
7468
7691
|
};
|
|
7469
7692
|
isGQLPluginEnabled?: boolean;
|
|
7693
|
+
gql?: {
|
|
7694
|
+
auth?: boolean;
|
|
7695
|
+
};
|
|
7470
7696
|
}[T_3] : {
|
|
7471
7697
|
enabledCollections?: string[];
|
|
7472
7698
|
approvalFlow?: string[];
|
|
@@ -7481,10 +7707,13 @@ declare const _default: {
|
|
|
7481
7707
|
OTHER?: import("./const").REPORT_REASON.OTHER;
|
|
7482
7708
|
};
|
|
7483
7709
|
isGQLPluginEnabled?: boolean;
|
|
7710
|
+
gql?: {
|
|
7711
|
+
auth?: boolean;
|
|
7712
|
+
};
|
|
7484
7713
|
}>;
|
|
7485
7714
|
parseRelationString(relation: string): {
|
|
7486
7715
|
uid: import("@strapi/types/dist/uid").ContentType;
|
|
7487
|
-
relatedId: string
|
|
7716
|
+
relatedId: string;
|
|
7488
7717
|
};
|
|
7489
7718
|
isValidUserContext<T_4 extends {
|
|
7490
7719
|
id?: string | number;
|
|
@@ -7570,6 +7799,8 @@ declare const _default: {
|
|
|
7570
7799
|
approvalStatus?: string;
|
|
7571
7800
|
related?: {
|
|
7572
7801
|
id?: number;
|
|
7802
|
+
documentId?: string;
|
|
7803
|
+
locale?: string;
|
|
7573
7804
|
uid?: string;
|
|
7574
7805
|
requireCommentsApproval?: boolean;
|
|
7575
7806
|
};
|
|
@@ -7701,44 +7932,20 @@ declare const _default: {
|
|
|
7701
7932
|
author?: any;
|
|
7702
7933
|
};
|
|
7703
7934
|
};
|
|
7704
|
-
findAllFlat({ fields, limit, skip, sort,
|
|
7705
|
-
|
|
7706
|
-
|
|
7707
|
-
|
|
7708
|
-
|
|
7709
|
-
|
|
7710
|
-
|
|
7711
|
-
|
|
7712
|
-
|
|
7713
|
-
|
|
7714
|
-
|
|
7715
|
-
|
|
7716
|
-
|
|
7717
|
-
|
|
7718
|
-
} | {
|
|
7719
|
-
$lt?: string;
|
|
7720
|
-
} | {
|
|
7721
|
-
$lte?: string;
|
|
7722
|
-
} | {
|
|
7723
|
-
$startsWith?: string;
|
|
7724
|
-
} | {
|
|
7725
|
-
$startsWithi?: string;
|
|
7726
|
-
} | {
|
|
7727
|
-
$endsWith?: string;
|
|
7728
|
-
} | {
|
|
7729
|
-
$endsWithi?: string;
|
|
7730
|
-
} | {
|
|
7731
|
-
$contains?: string;
|
|
7732
|
-
} | {
|
|
7733
|
-
$containsi?: string;
|
|
7734
|
-
} | {
|
|
7735
|
-
$notContains?: string;
|
|
7736
|
-
} | {
|
|
7737
|
-
$notContainsi?: string;
|
|
7738
|
-
} | {
|
|
7739
|
-
$notNull?: boolean;
|
|
7740
|
-
}>[];
|
|
7741
|
-
$or?: Record<string, string | number | {
|
|
7935
|
+
findAllFlat({ fields, limit, skip, sort, populate, omit: baseOmit, isAdmin, pagination, filters, locale, }: {
|
|
7936
|
+
sort?: string;
|
|
7937
|
+
locale?: string;
|
|
7938
|
+
pagination?: {
|
|
7939
|
+
page?: number;
|
|
7940
|
+
pageSize?: number;
|
|
7941
|
+
withCount?: boolean;
|
|
7942
|
+
};
|
|
7943
|
+
relation?: `{${string}::${string}.${string}}`;
|
|
7944
|
+
populate?: Record<string, boolean | {
|
|
7945
|
+
populate?: boolean;
|
|
7946
|
+
}>;
|
|
7947
|
+
filters?: {
|
|
7948
|
+
id?: string | number | {
|
|
7742
7949
|
$eq?: string;
|
|
7743
7950
|
} | {
|
|
7744
7951
|
$eqi?: string;
|
|
@@ -7772,10 +7979,7 @@ declare const _default: {
|
|
|
7772
7979
|
$notContainsi?: string;
|
|
7773
7980
|
} | {
|
|
7774
7981
|
$notNull?: boolean;
|
|
7775
|
-
}
|
|
7776
|
-
} | Record<string, string | number | boolean | Record<string, string | number | boolean>>;
|
|
7777
|
-
sort?: string;
|
|
7778
|
-
filter?: {
|
|
7982
|
+
};
|
|
7779
7983
|
content?: string | number | {
|
|
7780
7984
|
$eq?: string;
|
|
7781
7985
|
} | {
|
|
@@ -7917,15 +8121,6 @@ declare const _default: {
|
|
|
7917
8121
|
$notNull?: boolean;
|
|
7918
8122
|
};
|
|
7919
8123
|
};
|
|
7920
|
-
pagination?: {
|
|
7921
|
-
page?: number;
|
|
7922
|
-
pageSize?: number;
|
|
7923
|
-
withCount?: boolean;
|
|
7924
|
-
};
|
|
7925
|
-
relation?: `{${string}::${string}.${number}}`;
|
|
7926
|
-
populate?: Record<string, boolean | {
|
|
7927
|
-
populate?: boolean;
|
|
7928
|
-
}>;
|
|
7929
8124
|
limit?: number;
|
|
7930
8125
|
fields?: string[];
|
|
7931
8126
|
omit?: string[];
|
|
@@ -8013,6 +8208,8 @@ declare const _default: {
|
|
|
8013
8208
|
approvalStatus?: string;
|
|
8014
8209
|
related?: {
|
|
8015
8210
|
id?: number;
|
|
8211
|
+
documentId?: string;
|
|
8212
|
+
locale?: string;
|
|
8016
8213
|
uid?: string;
|
|
8017
8214
|
requireCommentsApproval?: boolean;
|
|
8018
8215
|
};
|
|
@@ -8082,44 +8279,15 @@ declare const _default: {
|
|
|
8082
8279
|
total?: number;
|
|
8083
8280
|
};
|
|
8084
8281
|
}>;
|
|
8085
|
-
findAllInHierarchy({
|
|
8086
|
-
|
|
8087
|
-
|
|
8088
|
-
|
|
8089
|
-
|
|
8090
|
-
|
|
8091
|
-
|
|
8092
|
-
|
|
8093
|
-
|
|
8094
|
-
$nei?: string;
|
|
8095
|
-
} | {
|
|
8096
|
-
$gt?: string;
|
|
8097
|
-
} | {
|
|
8098
|
-
$gte?: string;
|
|
8099
|
-
} | {
|
|
8100
|
-
$lt?: string;
|
|
8101
|
-
} | {
|
|
8102
|
-
$lte?: string;
|
|
8103
|
-
} | {
|
|
8104
|
-
$startsWith?: string;
|
|
8105
|
-
} | {
|
|
8106
|
-
$startsWithi?: string;
|
|
8107
|
-
} | {
|
|
8108
|
-
$endsWith?: string;
|
|
8109
|
-
} | {
|
|
8110
|
-
$endsWithi?: string;
|
|
8111
|
-
} | {
|
|
8112
|
-
$contains?: string;
|
|
8113
|
-
} | {
|
|
8114
|
-
$containsi?: string;
|
|
8115
|
-
} | {
|
|
8116
|
-
$notContains?: string;
|
|
8117
|
-
} | {
|
|
8118
|
-
$notContainsi?: string;
|
|
8119
|
-
} | {
|
|
8120
|
-
$notNull?: boolean;
|
|
8121
|
-
}>[];
|
|
8122
|
-
$or?: Record<string, string | number | {
|
|
8282
|
+
findAllInHierarchy({ filters, populate, sort, fields, startingFromId, dropBlockedThreads, isAdmin, omit, locale, }: {
|
|
8283
|
+
sort?: string;
|
|
8284
|
+
locale?: string;
|
|
8285
|
+
relation?: `{${string}::${string}.${string}}`;
|
|
8286
|
+
populate?: Record<string, boolean | {
|
|
8287
|
+
populate?: boolean;
|
|
8288
|
+
}>;
|
|
8289
|
+
filters?: {
|
|
8290
|
+
id?: string | number | {
|
|
8123
8291
|
$eq?: string;
|
|
8124
8292
|
} | {
|
|
8125
8293
|
$eqi?: string;
|
|
@@ -8153,10 +8321,7 @@ declare const _default: {
|
|
|
8153
8321
|
$notContainsi?: string;
|
|
8154
8322
|
} | {
|
|
8155
8323
|
$notNull?: boolean;
|
|
8156
|
-
}
|
|
8157
|
-
} | Record<string, string | number | boolean | Record<string, string | number | boolean>>;
|
|
8158
|
-
sort?: string;
|
|
8159
|
-
filter?: {
|
|
8324
|
+
};
|
|
8160
8325
|
content?: string | number | {
|
|
8161
8326
|
$eq?: string;
|
|
8162
8327
|
} | {
|
|
@@ -8298,10 +8463,6 @@ declare const _default: {
|
|
|
8298
8463
|
$notNull?: boolean;
|
|
8299
8464
|
};
|
|
8300
8465
|
};
|
|
8301
|
-
relation?: `{${string}::${string}.${number}}`;
|
|
8302
|
-
populate?: Record<string, boolean | {
|
|
8303
|
-
populate?: boolean;
|
|
8304
|
-
}>;
|
|
8305
8466
|
limit?: number;
|
|
8306
8467
|
fields?: string[];
|
|
8307
8468
|
omit?: string[];
|
|
@@ -8658,9 +8819,21 @@ declare const _default: {
|
|
|
8658
8819
|
author?: any;
|
|
8659
8820
|
};
|
|
8660
8821
|
}>;
|
|
8661
|
-
findAllPerAuthor({
|
|
8662
|
-
|
|
8663
|
-
|
|
8822
|
+
findAllPerAuthor({ filters, populate, pagination, sort, fields, isAdmin, authorId, }: {
|
|
8823
|
+
type?: string;
|
|
8824
|
+
sort?: string;
|
|
8825
|
+
authorId?: string | number;
|
|
8826
|
+
locale?: string;
|
|
8827
|
+
pagination?: {
|
|
8828
|
+
page?: number;
|
|
8829
|
+
pageSize?: number;
|
|
8830
|
+
withCount?: boolean;
|
|
8831
|
+
};
|
|
8832
|
+
populate?: Record<string, boolean | {
|
|
8833
|
+
populate?: boolean;
|
|
8834
|
+
}>;
|
|
8835
|
+
filters?: {
|
|
8836
|
+
id?: string | number | {
|
|
8664
8837
|
$eq?: string;
|
|
8665
8838
|
} | {
|
|
8666
8839
|
$eqi?: string;
|
|
@@ -8694,8 +8867,8 @@ declare const _default: {
|
|
|
8694
8867
|
$notContainsi?: string;
|
|
8695
8868
|
} | {
|
|
8696
8869
|
$notNull?: boolean;
|
|
8697
|
-
}
|
|
8698
|
-
|
|
8870
|
+
};
|
|
8871
|
+
content?: string | number | {
|
|
8699
8872
|
$eq?: string;
|
|
8700
8873
|
} | {
|
|
8701
8874
|
$eqi?: string;
|
|
@@ -8729,19 +8902,113 @@ declare const _default: {
|
|
|
8729
8902
|
$notContainsi?: string;
|
|
8730
8903
|
} | {
|
|
8731
8904
|
$notNull?: boolean;
|
|
8732
|
-
}
|
|
8733
|
-
|
|
8734
|
-
|
|
8735
|
-
|
|
8736
|
-
|
|
8737
|
-
|
|
8738
|
-
|
|
8739
|
-
|
|
8740
|
-
|
|
8905
|
+
};
|
|
8906
|
+
createdAt?: string | number | {
|
|
8907
|
+
$eq?: string;
|
|
8908
|
+
} | {
|
|
8909
|
+
$eqi?: string;
|
|
8910
|
+
} | {
|
|
8911
|
+
$ne?: string;
|
|
8912
|
+
} | {
|
|
8913
|
+
$nei?: string;
|
|
8914
|
+
} | {
|
|
8915
|
+
$gt?: string;
|
|
8916
|
+
} | {
|
|
8917
|
+
$gte?: string;
|
|
8918
|
+
} | {
|
|
8919
|
+
$lt?: string;
|
|
8920
|
+
} | {
|
|
8921
|
+
$lte?: string;
|
|
8922
|
+
} | {
|
|
8923
|
+
$startsWith?: string;
|
|
8924
|
+
} | {
|
|
8925
|
+
$startsWithi?: string;
|
|
8926
|
+
} | {
|
|
8927
|
+
$endsWith?: string;
|
|
8928
|
+
} | {
|
|
8929
|
+
$endsWithi?: string;
|
|
8930
|
+
} | {
|
|
8931
|
+
$contains?: string;
|
|
8932
|
+
} | {
|
|
8933
|
+
$containsi?: string;
|
|
8934
|
+
} | {
|
|
8935
|
+
$notContains?: string;
|
|
8936
|
+
} | {
|
|
8937
|
+
$notContainsi?: string;
|
|
8938
|
+
} | {
|
|
8939
|
+
$notNull?: boolean;
|
|
8940
|
+
};
|
|
8941
|
+
updatedAt?: string | number | {
|
|
8942
|
+
$eq?: string;
|
|
8943
|
+
} | {
|
|
8944
|
+
$eqi?: string;
|
|
8945
|
+
} | {
|
|
8946
|
+
$ne?: string;
|
|
8947
|
+
} | {
|
|
8948
|
+
$nei?: string;
|
|
8949
|
+
} | {
|
|
8950
|
+
$gt?: string;
|
|
8951
|
+
} | {
|
|
8952
|
+
$gte?: string;
|
|
8953
|
+
} | {
|
|
8954
|
+
$lt?: string;
|
|
8955
|
+
} | {
|
|
8956
|
+
$lte?: string;
|
|
8957
|
+
} | {
|
|
8958
|
+
$startsWith?: string;
|
|
8959
|
+
} | {
|
|
8960
|
+
$startsWithi?: string;
|
|
8961
|
+
} | {
|
|
8962
|
+
$endsWith?: string;
|
|
8963
|
+
} | {
|
|
8964
|
+
$endsWithi?: string;
|
|
8965
|
+
} | {
|
|
8966
|
+
$contains?: string;
|
|
8967
|
+
} | {
|
|
8968
|
+
$containsi?: string;
|
|
8969
|
+
} | {
|
|
8970
|
+
$notContains?: string;
|
|
8971
|
+
} | {
|
|
8972
|
+
$notContainsi?: string;
|
|
8973
|
+
} | {
|
|
8974
|
+
$notNull?: boolean;
|
|
8975
|
+
};
|
|
8976
|
+
authorName?: string | number | {
|
|
8977
|
+
$eq?: string;
|
|
8978
|
+
} | {
|
|
8979
|
+
$eqi?: string;
|
|
8980
|
+
} | {
|
|
8981
|
+
$ne?: string;
|
|
8982
|
+
} | {
|
|
8983
|
+
$nei?: string;
|
|
8984
|
+
} | {
|
|
8985
|
+
$gt?: string;
|
|
8986
|
+
} | {
|
|
8987
|
+
$gte?: string;
|
|
8988
|
+
} | {
|
|
8989
|
+
$lt?: string;
|
|
8990
|
+
} | {
|
|
8991
|
+
$lte?: string;
|
|
8992
|
+
} | {
|
|
8993
|
+
$startsWith?: string;
|
|
8994
|
+
} | {
|
|
8995
|
+
$startsWithi?: string;
|
|
8996
|
+
} | {
|
|
8997
|
+
$endsWith?: string;
|
|
8998
|
+
} | {
|
|
8999
|
+
$endsWithi?: string;
|
|
9000
|
+
} | {
|
|
9001
|
+
$contains?: string;
|
|
9002
|
+
} | {
|
|
9003
|
+
$containsi?: string;
|
|
9004
|
+
} | {
|
|
9005
|
+
$notContains?: string;
|
|
9006
|
+
} | {
|
|
9007
|
+
$notContainsi?: string;
|
|
9008
|
+
} | {
|
|
9009
|
+
$notNull?: boolean;
|
|
9010
|
+
};
|
|
8741
9011
|
};
|
|
8742
|
-
populate?: Record<string, boolean | {
|
|
8743
|
-
populate?: boolean;
|
|
8744
|
-
}>;
|
|
8745
9012
|
limit?: number;
|
|
8746
9013
|
fields?: string[];
|
|
8747
9014
|
omit?: string[];
|
|
@@ -8828,6 +9095,8 @@ declare const _default: {
|
|
|
8828
9095
|
approvalStatus?: string;
|
|
8829
9096
|
related?: {
|
|
8830
9097
|
id?: number;
|
|
9098
|
+
documentId?: string;
|
|
9099
|
+
locale?: string;
|
|
8831
9100
|
uid?: string;
|
|
8832
9101
|
requireCommentsApproval?: boolean;
|
|
8833
9102
|
};
|
|
@@ -8967,6 +9236,8 @@ declare const _default: {
|
|
|
8967
9236
|
};
|
|
8968
9237
|
}[]): Promise<{
|
|
8969
9238
|
id?: number;
|
|
9239
|
+
documentId?: string;
|
|
9240
|
+
locale?: string;
|
|
8970
9241
|
uid?: string;
|
|
8971
9242
|
requireCommentsApproval?: boolean;
|
|
8972
9243
|
}[]>;
|
|
@@ -9041,6 +9312,8 @@ declare const _default: {
|
|
|
9041
9312
|
};
|
|
9042
9313
|
}, relatedEntities?: {
|
|
9043
9314
|
id?: number;
|
|
9315
|
+
documentId?: string;
|
|
9316
|
+
locale?: string;
|
|
9044
9317
|
uid?: string;
|
|
9045
9318
|
requireCommentsApproval?: boolean;
|
|
9046
9319
|
}[]): {
|
|
@@ -9055,6 +9328,8 @@ declare const _default: {
|
|
|
9055
9328
|
approvalStatus?: string;
|
|
9056
9329
|
related?: {
|
|
9057
9330
|
id?: number;
|
|
9331
|
+
documentId?: string;
|
|
9332
|
+
locale?: string;
|
|
9058
9333
|
uid?: string;
|
|
9059
9334
|
requireCommentsApproval?: boolean;
|
|
9060
9335
|
};
|
|
@@ -9206,6 +9481,9 @@ declare const _default: {
|
|
|
9206
9481
|
OTHER?: import("./const").REPORT_REASON.OTHER;
|
|
9207
9482
|
};
|
|
9208
9483
|
isGQLPluginEnabled?: boolean;
|
|
9484
|
+
gql?: {
|
|
9485
|
+
auth?: boolean;
|
|
9486
|
+
};
|
|
9209
9487
|
} | Omit<{
|
|
9210
9488
|
enabledCollections?: string[];
|
|
9211
9489
|
approvalFlow?: string[];
|
|
@@ -9220,6 +9498,9 @@ declare const _default: {
|
|
|
9220
9498
|
OTHER?: import("./const").REPORT_REASON.OTHER;
|
|
9221
9499
|
};
|
|
9222
9500
|
isGQLPluginEnabled?: boolean;
|
|
9501
|
+
gql?: {
|
|
9502
|
+
auth?: boolean;
|
|
9503
|
+
};
|
|
9223
9504
|
}, "enabledCollections" | "moderatorRoles" | "isGQLPluginEnabled">>;
|
|
9224
9505
|
update: (config: {
|
|
9225
9506
|
enabledCollections?: string[];
|
|
@@ -9235,6 +9516,9 @@ declare const _default: {
|
|
|
9235
9516
|
OTHER?: import("./const").REPORT_REASON.OTHER;
|
|
9236
9517
|
};
|
|
9237
9518
|
isGQLPluginEnabled?: boolean;
|
|
9519
|
+
gql?: {
|
|
9520
|
+
auth?: boolean;
|
|
9521
|
+
};
|
|
9238
9522
|
}) => Promise<{
|
|
9239
9523
|
enabledCollections?: string[];
|
|
9240
9524
|
approvalFlow?: string[];
|
|
@@ -9249,6 +9533,9 @@ declare const _default: {
|
|
|
9249
9533
|
OTHER?: import("./const").REPORT_REASON.OTHER;
|
|
9250
9534
|
};
|
|
9251
9535
|
isGQLPluginEnabled?: boolean;
|
|
9536
|
+
gql?: {
|
|
9537
|
+
auth?: boolean;
|
|
9538
|
+
};
|
|
9252
9539
|
} | Omit<{
|
|
9253
9540
|
enabledCollections?: string[];
|
|
9254
9541
|
approvalFlow?: string[];
|
|
@@ -9263,6 +9550,9 @@ declare const _default: {
|
|
|
9263
9550
|
OTHER?: import("./const").REPORT_REASON.OTHER;
|
|
9264
9551
|
};
|
|
9265
9552
|
isGQLPluginEnabled?: boolean;
|
|
9553
|
+
gql?: {
|
|
9554
|
+
auth?: boolean;
|
|
9555
|
+
};
|
|
9266
9556
|
}, "enabledCollections" | "moderatorRoles" | "isGQLPluginEnabled">>;
|
|
9267
9557
|
restore: () => Promise<{
|
|
9268
9558
|
enabledCollections?: string[];
|
|
@@ -9278,6 +9568,9 @@ declare const _default: {
|
|
|
9278
9568
|
OTHER?: import("./const").REPORT_REASON.OTHER;
|
|
9279
9569
|
};
|
|
9280
9570
|
isGQLPluginEnabled?: boolean;
|
|
9571
|
+
gql?: {
|
|
9572
|
+
auth?: boolean;
|
|
9573
|
+
};
|
|
9281
9574
|
} | Omit<{
|
|
9282
9575
|
enabledCollections?: string[];
|
|
9283
9576
|
approvalFlow?: string[];
|
|
@@ -9292,9 +9585,16 @@ declare const _default: {
|
|
|
9292
9585
|
OTHER?: import("./const").REPORT_REASON.OTHER;
|
|
9293
9586
|
};
|
|
9294
9587
|
isGQLPluginEnabled?: boolean;
|
|
9588
|
+
gql?: {
|
|
9589
|
+
auth?: boolean;
|
|
9590
|
+
};
|
|
9295
9591
|
}, "enabledCollections" | "moderatorRoles" | "isGQLPluginEnabled">>;
|
|
9296
9592
|
restart: () => void;
|
|
9297
9593
|
};
|
|
9594
|
+
gql: ({ strapi }: import("./@types-v5").StrapiContext) => {
|
|
9595
|
+
graphQLFiltersToStrapiQuery: (queryFilters: any, contentType?: any) => any;
|
|
9596
|
+
buildContentTypeFilters<T_6 extends import("@strapi/types/dist/uid").ContentType>(contentType: import("@strapi/types/dist/schema").ContentType<T_6>): import("nexus/dist/core").NexusInputObjectTypeDef<any>;
|
|
9597
|
+
};
|
|
9298
9598
|
};
|
|
9299
9599
|
contentTypes: {
|
|
9300
9600
|
comment: {
|