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
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { CoreStrapi } from '../@types-v5';
|
|
2
|
+
import { CommentsPluginConfig } from '../config';
|
|
2
3
|
import { REPORT_REASON } from '../const';
|
|
3
4
|
import { Either } from '../utils/Either';
|
|
4
|
-
import { CommentsPluginConfig } from '../validators/api/controllers/settings.controller.validator';
|
|
5
5
|
export declare const getStoreRepository: (strapi: CoreStrapi) => {
|
|
6
|
-
getLocalConfig<P extends "enabledCollections" | "approvalFlow" | "entryLabel" | "moderatorRoles" | "badWords" | "blockedAuthorProps" | "isValidationEnabled" | "reportReasons" | "isGQLPluginEnabled">(prop?: P, defaultValue?: CommentsPluginConfig[P]): {
|
|
6
|
+
getLocalConfig<P extends "enabledCollections" | "approvalFlow" | "entryLabel" | "moderatorRoles" | "badWords" | "blockedAuthorProps" | "isValidationEnabled" | "reportReasons" | "isGQLPluginEnabled" | "gql">(prop?: P, defaultValue?: CommentsPluginConfig[P]): {
|
|
7
7
|
enabledCollections?: string[];
|
|
8
8
|
approvalFlow?: string[];
|
|
9
9
|
entryLabel?: Record<string, string[]>;
|
|
@@ -17,6 +17,9 @@ export declare const getStoreRepository: (strapi: CoreStrapi) => {
|
|
|
17
17
|
OTHER?: REPORT_REASON.OTHER;
|
|
18
18
|
};
|
|
19
19
|
isGQLPluginEnabled?: boolean;
|
|
20
|
+
gql?: {
|
|
21
|
+
auth?: boolean;
|
|
22
|
+
};
|
|
20
23
|
}[P];
|
|
21
24
|
getStore(): Promise<{
|
|
22
25
|
get(params?: Partial<{
|
|
@@ -58,6 +61,9 @@ export declare const getStoreRepository: (strapi: CoreStrapi) => {
|
|
|
58
61
|
OTHER?: REPORT_REASON.OTHER;
|
|
59
62
|
};
|
|
60
63
|
isGQLPluginEnabled?: boolean;
|
|
64
|
+
gql?: {
|
|
65
|
+
auth?: boolean;
|
|
66
|
+
};
|
|
61
67
|
} | Omit<{
|
|
62
68
|
enabledCollections?: string[];
|
|
63
69
|
approvalFlow?: string[];
|
|
@@ -72,6 +78,9 @@ export declare const getStoreRepository: (strapi: CoreStrapi) => {
|
|
|
72
78
|
OTHER?: REPORT_REASON.OTHER;
|
|
73
79
|
};
|
|
74
80
|
isGQLPluginEnabled?: boolean;
|
|
81
|
+
gql?: {
|
|
82
|
+
auth?: boolean;
|
|
83
|
+
};
|
|
75
84
|
}, "enabledCollections" | "moderatorRoles" | "isGQLPluginEnabled">>>;
|
|
76
85
|
restore(): Promise<Either<unknown, {
|
|
77
86
|
enabledCollections?: string[];
|
|
@@ -87,6 +96,9 @@ export declare const getStoreRepository: (strapi: CoreStrapi) => {
|
|
|
87
96
|
OTHER?: REPORT_REASON.OTHER;
|
|
88
97
|
};
|
|
89
98
|
isGQLPluginEnabled?: boolean;
|
|
99
|
+
gql?: {
|
|
100
|
+
auth?: boolean;
|
|
101
|
+
};
|
|
90
102
|
} | Omit<{
|
|
91
103
|
enabledCollections?: string[];
|
|
92
104
|
approvalFlow?: string[];
|
|
@@ -101,6 +113,9 @@ export declare const getStoreRepository: (strapi: CoreStrapi) => {
|
|
|
101
113
|
OTHER?: REPORT_REASON.OTHER;
|
|
102
114
|
};
|
|
103
115
|
isGQLPluginEnabled?: boolean;
|
|
116
|
+
gql?: {
|
|
117
|
+
auth?: boolean;
|
|
118
|
+
};
|
|
104
119
|
}, "enabledCollections" | "moderatorRoles" | "isGQLPluginEnabled">>>;
|
|
105
120
|
};
|
|
106
121
|
export type StoreRepository = ReturnType<typeof getStoreRepository>;
|
|
@@ -2,7 +2,7 @@ import { Id, StrapiContext } from '../../@types-v5';
|
|
|
2
2
|
import { admin as adminValidator } from '../../validators/api';
|
|
3
3
|
declare const _default: ({ strapi }: StrapiContext) => {
|
|
4
4
|
getCommonService(): {
|
|
5
|
-
getConfig<T extends "enabledCollections" | "approvalFlow" | "entryLabel" | "moderatorRoles" | "badWords" | "blockedAuthorProps" | "isValidationEnabled" | "reportReasons" | "isGQLPluginEnabled">(prop?: T, defaultValue?: {
|
|
5
|
+
getConfig<T extends "enabledCollections" | "approvalFlow" | "entryLabel" | "moderatorRoles" | "badWords" | "blockedAuthorProps" | "isValidationEnabled" | "reportReasons" | "isGQLPluginEnabled" | "gql">(prop?: T, defaultValue?: {
|
|
6
6
|
enabledCollections?: string[];
|
|
7
7
|
approvalFlow?: string[];
|
|
8
8
|
entryLabel?: Record<string, string[]>;
|
|
@@ -16,7 +16,10 @@ declare const _default: ({ strapi }: StrapiContext) => {
|
|
|
16
16
|
OTHER?: import("../../const").REPORT_REASON.OTHER;
|
|
17
17
|
};
|
|
18
18
|
isGQLPluginEnabled?: boolean;
|
|
19
|
-
|
|
19
|
+
gql?: {
|
|
20
|
+
auth?: boolean;
|
|
21
|
+
};
|
|
22
|
+
}[T], useLocal?: boolean): Promise<T extends "enabledCollections" | "approvalFlow" | "entryLabel" | "moderatorRoles" | "badWords" | "blockedAuthorProps" | "isValidationEnabled" | "reportReasons" | "isGQLPluginEnabled" | "gql" ? {
|
|
20
23
|
enabledCollections?: string[];
|
|
21
24
|
approvalFlow?: string[];
|
|
22
25
|
entryLabel?: Record<string, string[]>;
|
|
@@ -30,6 +33,9 @@ declare const _default: ({ strapi }: StrapiContext) => {
|
|
|
30
33
|
OTHER?: import("../../const").REPORT_REASON.OTHER;
|
|
31
34
|
};
|
|
32
35
|
isGQLPluginEnabled?: boolean;
|
|
36
|
+
gql?: {
|
|
37
|
+
auth?: boolean;
|
|
38
|
+
};
|
|
33
39
|
}[T] : {
|
|
34
40
|
enabledCollections?: string[];
|
|
35
41
|
approvalFlow?: string[];
|
|
@@ -44,10 +50,13 @@ declare const _default: ({ strapi }: StrapiContext) => {
|
|
|
44
50
|
OTHER?: import("../../const").REPORT_REASON.OTHER;
|
|
45
51
|
};
|
|
46
52
|
isGQLPluginEnabled?: boolean;
|
|
53
|
+
gql?: {
|
|
54
|
+
auth?: boolean;
|
|
55
|
+
};
|
|
47
56
|
}>;
|
|
48
57
|
parseRelationString(relation: string): {
|
|
49
58
|
uid: import("@strapi/types/dist/uid").ContentType;
|
|
50
|
-
relatedId: string
|
|
59
|
+
relatedId: string;
|
|
51
60
|
};
|
|
52
61
|
isValidUserContext<T_1 extends {
|
|
53
62
|
id?: string | number;
|
|
@@ -133,6 +142,8 @@ declare const _default: ({ strapi }: StrapiContext) => {
|
|
|
133
142
|
approvalStatus?: string;
|
|
134
143
|
related?: {
|
|
135
144
|
id?: number;
|
|
145
|
+
documentId?: string;
|
|
146
|
+
locale?: string;
|
|
136
147
|
uid?: string;
|
|
137
148
|
requireCommentsApproval?: boolean;
|
|
138
149
|
};
|
|
@@ -264,44 +275,20 @@ declare const _default: ({ strapi }: StrapiContext) => {
|
|
|
264
275
|
author?: any;
|
|
265
276
|
};
|
|
266
277
|
};
|
|
267
|
-
findAllFlat({ fields, limit, skip, sort,
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
} | {
|
|
282
|
-
$lt?: string;
|
|
283
|
-
} | {
|
|
284
|
-
$lte?: string;
|
|
285
|
-
} | {
|
|
286
|
-
$startsWith?: string;
|
|
287
|
-
} | {
|
|
288
|
-
$startsWithi?: string;
|
|
289
|
-
} | {
|
|
290
|
-
$endsWith?: string;
|
|
291
|
-
} | {
|
|
292
|
-
$endsWithi?: string;
|
|
293
|
-
} | {
|
|
294
|
-
$contains?: string;
|
|
295
|
-
} | {
|
|
296
|
-
$containsi?: string;
|
|
297
|
-
} | {
|
|
298
|
-
$notContains?: string;
|
|
299
|
-
} | {
|
|
300
|
-
$notContainsi?: string;
|
|
301
|
-
} | {
|
|
302
|
-
$notNull?: boolean;
|
|
303
|
-
}>[];
|
|
304
|
-
$or?: Record<string, string | number | {
|
|
278
|
+
findAllFlat({ fields, limit, skip, sort, populate, omit: baseOmit, isAdmin, pagination, filters, locale, }: {
|
|
279
|
+
sort?: string;
|
|
280
|
+
locale?: string;
|
|
281
|
+
pagination?: {
|
|
282
|
+
page?: number;
|
|
283
|
+
pageSize?: number;
|
|
284
|
+
withCount?: boolean;
|
|
285
|
+
};
|
|
286
|
+
relation?: `{${string}::${string}.${string}}`;
|
|
287
|
+
populate?: Record<string, boolean | {
|
|
288
|
+
populate?: boolean;
|
|
289
|
+
}>;
|
|
290
|
+
filters?: {
|
|
291
|
+
id?: string | number | {
|
|
305
292
|
$eq?: string;
|
|
306
293
|
} | {
|
|
307
294
|
$eqi?: string;
|
|
@@ -335,10 +322,7 @@ declare const _default: ({ strapi }: StrapiContext) => {
|
|
|
335
322
|
$notContainsi?: string;
|
|
336
323
|
} | {
|
|
337
324
|
$notNull?: boolean;
|
|
338
|
-
}
|
|
339
|
-
} | Record<string, string | number | boolean | Record<string, string | number | boolean>>;
|
|
340
|
-
sort?: string;
|
|
341
|
-
filter?: {
|
|
325
|
+
};
|
|
342
326
|
content?: string | number | {
|
|
343
327
|
$eq?: string;
|
|
344
328
|
} | {
|
|
@@ -480,15 +464,6 @@ declare const _default: ({ strapi }: StrapiContext) => {
|
|
|
480
464
|
$notNull?: boolean;
|
|
481
465
|
};
|
|
482
466
|
};
|
|
483
|
-
pagination?: {
|
|
484
|
-
page?: number;
|
|
485
|
-
pageSize?: number;
|
|
486
|
-
withCount?: boolean;
|
|
487
|
-
};
|
|
488
|
-
relation?: `{${string}::${string}.${number}}`;
|
|
489
|
-
populate?: Record<string, boolean | {
|
|
490
|
-
populate?: boolean;
|
|
491
|
-
}>;
|
|
492
467
|
limit?: number;
|
|
493
468
|
fields?: string[];
|
|
494
469
|
omit?: string[];
|
|
@@ -576,6 +551,8 @@ declare const _default: ({ strapi }: StrapiContext) => {
|
|
|
576
551
|
approvalStatus?: string;
|
|
577
552
|
related?: {
|
|
578
553
|
id?: number;
|
|
554
|
+
documentId?: string;
|
|
555
|
+
locale?: string;
|
|
579
556
|
uid?: string;
|
|
580
557
|
requireCommentsApproval?: boolean;
|
|
581
558
|
};
|
|
@@ -645,44 +622,15 @@ declare const _default: ({ strapi }: StrapiContext) => {
|
|
|
645
622
|
total?: number;
|
|
646
623
|
};
|
|
647
624
|
}>;
|
|
648
|
-
findAllInHierarchy({
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
$nei?: string;
|
|
658
|
-
} | {
|
|
659
|
-
$gt?: string;
|
|
660
|
-
} | {
|
|
661
|
-
$gte?: string;
|
|
662
|
-
} | {
|
|
663
|
-
$lt?: string;
|
|
664
|
-
} | {
|
|
665
|
-
$lte?: string;
|
|
666
|
-
} | {
|
|
667
|
-
$startsWith?: string;
|
|
668
|
-
} | {
|
|
669
|
-
$startsWithi?: string;
|
|
670
|
-
} | {
|
|
671
|
-
$endsWith?: string;
|
|
672
|
-
} | {
|
|
673
|
-
$endsWithi?: string;
|
|
674
|
-
} | {
|
|
675
|
-
$contains?: string;
|
|
676
|
-
} | {
|
|
677
|
-
$containsi?: string;
|
|
678
|
-
} | {
|
|
679
|
-
$notContains?: string;
|
|
680
|
-
} | {
|
|
681
|
-
$notContainsi?: string;
|
|
682
|
-
} | {
|
|
683
|
-
$notNull?: boolean;
|
|
684
|
-
}>[];
|
|
685
|
-
$or?: Record<string, string | number | {
|
|
625
|
+
findAllInHierarchy({ filters, populate, sort, fields, startingFromId, dropBlockedThreads, isAdmin, omit, locale, }: {
|
|
626
|
+
sort?: string;
|
|
627
|
+
locale?: string;
|
|
628
|
+
relation?: `{${string}::${string}.${string}}`;
|
|
629
|
+
populate?: Record<string, boolean | {
|
|
630
|
+
populate?: boolean;
|
|
631
|
+
}>;
|
|
632
|
+
filters?: {
|
|
633
|
+
id?: string | number | {
|
|
686
634
|
$eq?: string;
|
|
687
635
|
} | {
|
|
688
636
|
$eqi?: string;
|
|
@@ -716,10 +664,7 @@ declare const _default: ({ strapi }: StrapiContext) => {
|
|
|
716
664
|
$notContainsi?: string;
|
|
717
665
|
} | {
|
|
718
666
|
$notNull?: boolean;
|
|
719
|
-
}
|
|
720
|
-
} | Record<string, string | number | boolean | Record<string, string | number | boolean>>;
|
|
721
|
-
sort?: string;
|
|
722
|
-
filter?: {
|
|
667
|
+
};
|
|
723
668
|
content?: string | number | {
|
|
724
669
|
$eq?: string;
|
|
725
670
|
} | {
|
|
@@ -861,10 +806,6 @@ declare const _default: ({ strapi }: StrapiContext) => {
|
|
|
861
806
|
$notNull?: boolean;
|
|
862
807
|
};
|
|
863
808
|
};
|
|
864
|
-
relation?: `{${string}::${string}.${number}}`;
|
|
865
|
-
populate?: Record<string, boolean | {
|
|
866
|
-
populate?: boolean;
|
|
867
|
-
}>;
|
|
868
809
|
limit?: number;
|
|
869
810
|
fields?: string[];
|
|
870
811
|
omit?: string[];
|
|
@@ -1221,9 +1162,21 @@ declare const _default: ({ strapi }: StrapiContext) => {
|
|
|
1221
1162
|
author?: any;
|
|
1222
1163
|
};
|
|
1223
1164
|
}>;
|
|
1224
|
-
findAllPerAuthor({
|
|
1225
|
-
|
|
1226
|
-
|
|
1165
|
+
findAllPerAuthor({ filters, populate, pagination, sort, fields, isAdmin, authorId, }: {
|
|
1166
|
+
type?: string;
|
|
1167
|
+
sort?: string;
|
|
1168
|
+
authorId?: string | number;
|
|
1169
|
+
locale?: string;
|
|
1170
|
+
pagination?: {
|
|
1171
|
+
page?: number;
|
|
1172
|
+
pageSize?: number;
|
|
1173
|
+
withCount?: boolean;
|
|
1174
|
+
};
|
|
1175
|
+
populate?: Record<string, boolean | {
|
|
1176
|
+
populate?: boolean;
|
|
1177
|
+
}>;
|
|
1178
|
+
filters?: {
|
|
1179
|
+
id?: string | number | {
|
|
1227
1180
|
$eq?: string;
|
|
1228
1181
|
} | {
|
|
1229
1182
|
$eqi?: string;
|
|
@@ -1257,8 +1210,8 @@ declare const _default: ({ strapi }: StrapiContext) => {
|
|
|
1257
1210
|
$notContainsi?: string;
|
|
1258
1211
|
} | {
|
|
1259
1212
|
$notNull?: boolean;
|
|
1260
|
-
}
|
|
1261
|
-
|
|
1213
|
+
};
|
|
1214
|
+
content?: string | number | {
|
|
1262
1215
|
$eq?: string;
|
|
1263
1216
|
} | {
|
|
1264
1217
|
$eqi?: string;
|
|
@@ -1292,19 +1245,113 @@ declare const _default: ({ strapi }: StrapiContext) => {
|
|
|
1292
1245
|
$notContainsi?: string;
|
|
1293
1246
|
} | {
|
|
1294
1247
|
$notNull?: boolean;
|
|
1295
|
-
}
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1248
|
+
};
|
|
1249
|
+
createdAt?: string | number | {
|
|
1250
|
+
$eq?: string;
|
|
1251
|
+
} | {
|
|
1252
|
+
$eqi?: string;
|
|
1253
|
+
} | {
|
|
1254
|
+
$ne?: string;
|
|
1255
|
+
} | {
|
|
1256
|
+
$nei?: string;
|
|
1257
|
+
} | {
|
|
1258
|
+
$gt?: string;
|
|
1259
|
+
} | {
|
|
1260
|
+
$gte?: string;
|
|
1261
|
+
} | {
|
|
1262
|
+
$lt?: string;
|
|
1263
|
+
} | {
|
|
1264
|
+
$lte?: string;
|
|
1265
|
+
} | {
|
|
1266
|
+
$startsWith?: string;
|
|
1267
|
+
} | {
|
|
1268
|
+
$startsWithi?: string;
|
|
1269
|
+
} | {
|
|
1270
|
+
$endsWith?: string;
|
|
1271
|
+
} | {
|
|
1272
|
+
$endsWithi?: string;
|
|
1273
|
+
} | {
|
|
1274
|
+
$contains?: string;
|
|
1275
|
+
} | {
|
|
1276
|
+
$containsi?: string;
|
|
1277
|
+
} | {
|
|
1278
|
+
$notContains?: string;
|
|
1279
|
+
} | {
|
|
1280
|
+
$notContainsi?: string;
|
|
1281
|
+
} | {
|
|
1282
|
+
$notNull?: boolean;
|
|
1283
|
+
};
|
|
1284
|
+
updatedAt?: string | number | {
|
|
1285
|
+
$eq?: string;
|
|
1286
|
+
} | {
|
|
1287
|
+
$eqi?: string;
|
|
1288
|
+
} | {
|
|
1289
|
+
$ne?: string;
|
|
1290
|
+
} | {
|
|
1291
|
+
$nei?: string;
|
|
1292
|
+
} | {
|
|
1293
|
+
$gt?: string;
|
|
1294
|
+
} | {
|
|
1295
|
+
$gte?: string;
|
|
1296
|
+
} | {
|
|
1297
|
+
$lt?: string;
|
|
1298
|
+
} | {
|
|
1299
|
+
$lte?: string;
|
|
1300
|
+
} | {
|
|
1301
|
+
$startsWith?: string;
|
|
1302
|
+
} | {
|
|
1303
|
+
$startsWithi?: string;
|
|
1304
|
+
} | {
|
|
1305
|
+
$endsWith?: string;
|
|
1306
|
+
} | {
|
|
1307
|
+
$endsWithi?: string;
|
|
1308
|
+
} | {
|
|
1309
|
+
$contains?: string;
|
|
1310
|
+
} | {
|
|
1311
|
+
$containsi?: string;
|
|
1312
|
+
} | {
|
|
1313
|
+
$notContains?: string;
|
|
1314
|
+
} | {
|
|
1315
|
+
$notContainsi?: string;
|
|
1316
|
+
} | {
|
|
1317
|
+
$notNull?: boolean;
|
|
1318
|
+
};
|
|
1319
|
+
authorName?: string | number | {
|
|
1320
|
+
$eq?: string;
|
|
1321
|
+
} | {
|
|
1322
|
+
$eqi?: string;
|
|
1323
|
+
} | {
|
|
1324
|
+
$ne?: string;
|
|
1325
|
+
} | {
|
|
1326
|
+
$nei?: string;
|
|
1327
|
+
} | {
|
|
1328
|
+
$gt?: string;
|
|
1329
|
+
} | {
|
|
1330
|
+
$gte?: string;
|
|
1331
|
+
} | {
|
|
1332
|
+
$lt?: string;
|
|
1333
|
+
} | {
|
|
1334
|
+
$lte?: string;
|
|
1335
|
+
} | {
|
|
1336
|
+
$startsWith?: string;
|
|
1337
|
+
} | {
|
|
1338
|
+
$startsWithi?: string;
|
|
1339
|
+
} | {
|
|
1340
|
+
$endsWith?: string;
|
|
1341
|
+
} | {
|
|
1342
|
+
$endsWithi?: string;
|
|
1343
|
+
} | {
|
|
1344
|
+
$contains?: string;
|
|
1345
|
+
} | {
|
|
1346
|
+
$containsi?: string;
|
|
1347
|
+
} | {
|
|
1348
|
+
$notContains?: string;
|
|
1349
|
+
} | {
|
|
1350
|
+
$notContainsi?: string;
|
|
1351
|
+
} | {
|
|
1352
|
+
$notNull?: boolean;
|
|
1353
|
+
};
|
|
1304
1354
|
};
|
|
1305
|
-
populate?: Record<string, boolean | {
|
|
1306
|
-
populate?: boolean;
|
|
1307
|
-
}>;
|
|
1308
1355
|
limit?: number;
|
|
1309
1356
|
fields?: string[];
|
|
1310
1357
|
omit?: string[];
|
|
@@ -1391,6 +1438,8 @@ declare const _default: ({ strapi }: StrapiContext) => {
|
|
|
1391
1438
|
approvalStatus?: string;
|
|
1392
1439
|
related?: {
|
|
1393
1440
|
id?: number;
|
|
1441
|
+
documentId?: string;
|
|
1442
|
+
locale?: string;
|
|
1394
1443
|
uid?: string;
|
|
1395
1444
|
requireCommentsApproval?: boolean;
|
|
1396
1445
|
};
|
|
@@ -1530,6 +1579,8 @@ declare const _default: ({ strapi }: StrapiContext) => {
|
|
|
1530
1579
|
};
|
|
1531
1580
|
}[]): Promise<{
|
|
1532
1581
|
id?: number;
|
|
1582
|
+
documentId?: string;
|
|
1583
|
+
locale?: string;
|
|
1533
1584
|
uid?: string;
|
|
1534
1585
|
requireCommentsApproval?: boolean;
|
|
1535
1586
|
}[]>;
|
|
@@ -1604,6 +1655,8 @@ declare const _default: ({ strapi }: StrapiContext) => {
|
|
|
1604
1655
|
};
|
|
1605
1656
|
}, relatedEntities?: {
|
|
1606
1657
|
id?: number;
|
|
1658
|
+
documentId?: string;
|
|
1659
|
+
locale?: string;
|
|
1607
1660
|
uid?: string;
|
|
1608
1661
|
requireCommentsApproval?: boolean;
|
|
1609
1662
|
}[]): {
|
|
@@ -1618,6 +1671,8 @@ declare const _default: ({ strapi }: StrapiContext) => {
|
|
|
1618
1671
|
approvalStatus?: string;
|
|
1619
1672
|
related?: {
|
|
1620
1673
|
id?: number;
|
|
1674
|
+
documentId?: string;
|
|
1675
|
+
locale?: string;
|
|
1621
1676
|
uid?: string;
|
|
1622
1677
|
requireCommentsApproval?: boolean;
|
|
1623
1678
|
};
|
|
@@ -1773,6 +1828,8 @@ declare const _default: ({ strapi }: StrapiContext) => {
|
|
|
1773
1828
|
approvalStatus?: string;
|
|
1774
1829
|
related?: {
|
|
1775
1830
|
id?: number;
|
|
1831
|
+
documentId?: string;
|
|
1832
|
+
locale?: string;
|
|
1776
1833
|
uid?: string;
|
|
1777
1834
|
requireCommentsApproval?: boolean;
|
|
1778
1835
|
};
|