strapi-plugin-comments 3.0.0-beta.1 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +81 -122
- package/dist/_chunks/{index-CY_AVWS-.js → index-B-ygLKrb.js} +417 -242
- package/dist/_chunks/{index-D3iNqWZT.mjs → index-BgN4aUMA.mjs} +5 -5
- package/dist/_chunks/{index-BBcsmSTs.mjs → index-Bx2boY6h.mjs} +420 -245
- package/dist/_chunks/{index-DJ32APz-.mjs → index-CIqMAf50.mjs} +1277 -1152
- package/dist/_chunks/{index-BXEk5PWx.js → index-CWfr5ejx.js} +20 -26
- package/dist/_chunks/{index-BFPteXuP.js → index-D8uskGzQ.js} +5 -5
- package/dist/_chunks/{index-Bcck91A8.js → index-DFAPx7Bl.js} +1290 -1144
- package/dist/_chunks/{index-D9MOkoQ2.mjs → index-Db2zwbpe.mjs} +20 -26
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/admin/src/api/client.d.ts +30 -50
- package/dist/admin/src/api/schemas.d.ts +432 -756
- package/dist/admin/src/components/UserAvatar/index.d.ts +1 -1
- package/dist/admin/src/hooks/useAPI.d.ts +30 -50
- package/dist/admin/src/hooks/useCommentsAll.d.ts +6 -10
- package/dist/admin/src/hooks/useReports.d.ts +6 -10
- package/dist/server/index.js +198 -144
- package/dist/server/index.mjs +198 -144
- package/dist/server/src/{@types-v5 → @types}/utils.d.ts +4 -0
- package/dist/server/src/bootstrap.d.ts +1 -1
- package/dist/server/src/config/index.d.ts +30 -0
- package/dist/server/src/content-types/index.d.ts +1 -1
- package/dist/server/src/controllers/admin.controller.d.ts +108 -29
- package/dist/server/src/controllers/client.controller.d.ts +117 -23
- package/dist/server/src/controllers/index.d.ts +297 -88
- package/dist/server/src/controllers/settings.controller.d.ts +33 -1
- package/dist/server/src/graphql/index.d.ts +1 -1
- package/dist/server/src/graphql/mutations/getCreateAbuseReport.d.ts +10 -4
- package/dist/server/src/graphql/mutations/getCreateComment.d.ts +10 -4
- package/dist/server/src/graphql/mutations/getRemoveComment.d.ts +10 -4
- package/dist/server/src/graphql/mutations/getUpdateComment.d.ts +10 -4
- package/dist/server/src/graphql/mutations/index.d.ts +2 -2
- package/dist/server/src/graphql/queries/findAllFlat.d.ts +18 -6
- package/dist/server/src/graphql/queries/findAllInHierarchy.d.ts +10 -4
- package/dist/server/src/graphql/queries/findAllPerAuthor.d.ts +18 -6
- package/dist/server/src/graphql/queries/index.d.ts +2 -2
- package/dist/server/src/graphql/types/getComment.d.ts +1 -1
- package/dist/server/src/graphql/types/getCommentAuthor.d.ts +1 -1
- package/dist/server/src/graphql/types/getCommentAuthorType.d.ts +1 -1
- package/dist/server/src/graphql/types/getCommentNested.d.ts +1 -1
- package/dist/server/src/graphql/types/getCreateComment.d.ts +1 -1
- package/dist/server/src/graphql/types/getCreateCommentAuthor.d.ts +1 -1
- package/dist/server/src/graphql/types/getCreateReport.d.ts +1 -1
- package/dist/server/src/graphql/types/getId.d.ts +1 -1
- package/dist/server/src/graphql/types/getIdentityAuthor.d.ts +1 -1
- package/dist/server/src/graphql/types/getRemoveComment.d.ts +1 -1
- package/dist/server/src/graphql/types/getReport.d.ts +1 -1
- package/dist/server/src/graphql/types/getReportReason.d.ts +1 -1
- package/dist/server/src/graphql/types/getResponseFindAll.d.ts +1 -1
- package/dist/server/src/graphql/types/getResponseFindAllPerAuthor.d.ts +1 -1
- package/dist/server/src/graphql/types/getResponseMeta.d.ts +1 -1
- package/dist/server/src/graphql/types/getResponsePagination.d.ts +1 -1
- package/dist/server/src/graphql/types/getUpdateComment.d.ts +1 -1
- package/dist/server/src/graphql/types/index.d.ts +1 -1
- package/dist/server/src/index.d.ts +921 -314
- package/dist/server/src/register/custom-fields/index.d.ts +1 -1
- package/dist/server/src/register/index.d.ts +1 -1
- package/dist/server/src/repositories/comment.repository.d.ts +10 -1
- package/dist/server/src/repositories/index.d.ts +0 -2
- package/dist/server/src/repositories/report.comment.repository.d.ts +38 -1
- package/dist/server/src/repositories/store.repository.d.ts +159 -3
- package/dist/server/src/repositories/utils.d.ts +1 -3
- package/dist/server/src/routes/admin.routes.d.ts +1 -1
- package/dist/server/src/routes/client.routes.d.ts +1 -1
- package/dist/server/src/routes/index.d.ts +2 -2
- package/dist/server/src/services/admin/admin.service.d.ts +232 -78
- package/dist/server/src/services/admin/utils.d.ts +1 -1
- package/dist/server/src/services/client.service.d.ts +177 -66
- package/dist/server/src/services/common.service.d.ts +60 -19
- package/dist/server/src/services/gql.service.d.ts +1 -1
- package/dist/server/src/services/index.d.ts +608 -222
- package/dist/server/src/services/settings.service.d.ts +25 -1
- package/dist/server/src/services/utils/functions.d.ts +1 -3
- package/dist/server/src/test/utils.d.ts +1 -0
- package/dist/server/src/utils/constants.d.ts +1 -1
- package/dist/server/src/utils/getConfig.d.ts +2 -2
- package/dist/server/src/utils/getPluginService.d.ts +2 -2
- package/dist/server/src/utils/throwError.d.ts +1 -1
- package/dist/server/src/validators/api/controllers/client.controller.validator.d.ts +10 -9
- package/dist/server/src/validators/api/controllers/settings.controller.validator.d.ts +4 -0
- package/dist/server/src/validators/repositories/comment.schema.d.ts +18 -3
- package/dist/server/src/validators/repositories/comment.validator.d.ts +384 -72
- package/dist/server/src/validators/repositories/reports.validator.d.ts +60 -18
- package/dist/server/src/validators/utils.d.ts +1 -1
- package/package.json +18 -12
- /package/dist/server/src/{@types-v5 → @types}/controllers.d.ts +0 -0
- /package/dist/server/src/{@types-v5 → @types}/index.d.ts +0 -0
- /package/dist/server/src/{@types-v5 → @types}/repositories.d.ts +0 -0
- /package/dist/server/src/{@types-v5 → @types}/routes.d.ts +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RequestContext, StrapiContext } from '../@types
|
|
1
|
+
import { RequestContext, StrapiContext } from '../@types';
|
|
2
2
|
import { CommentsPluginConfig } from '../config';
|
|
3
3
|
declare const settingsController: ({ strapi }: StrapiContext) => {
|
|
4
4
|
get(ctx: RequestContext): Promise<{
|
|
@@ -18,6 +18,10 @@ declare const settingsController: ({ strapi }: StrapiContext) => {
|
|
|
18
18
|
gql?: {
|
|
19
19
|
auth?: boolean;
|
|
20
20
|
};
|
|
21
|
+
client?: {
|
|
22
|
+
url?: string;
|
|
23
|
+
contactEmail?: string;
|
|
24
|
+
};
|
|
21
25
|
} | Omit<{
|
|
22
26
|
enabledCollections?: string[];
|
|
23
27
|
approvalFlow?: string[];
|
|
@@ -35,6 +39,10 @@ declare const settingsController: ({ strapi }: StrapiContext) => {
|
|
|
35
39
|
gql?: {
|
|
36
40
|
auth?: boolean;
|
|
37
41
|
};
|
|
42
|
+
client?: {
|
|
43
|
+
url?: string;
|
|
44
|
+
contactEmail?: string;
|
|
45
|
+
};
|
|
38
46
|
}, "enabledCollections" | "moderatorRoles" | "isGQLPluginEnabled">>;
|
|
39
47
|
getForSettingsPage(ctx: RequestContext): Promise<{
|
|
40
48
|
enabledCollections?: string[];
|
|
@@ -53,6 +61,10 @@ declare const settingsController: ({ strapi }: StrapiContext) => {
|
|
|
53
61
|
gql?: {
|
|
54
62
|
auth?: boolean;
|
|
55
63
|
};
|
|
64
|
+
client?: {
|
|
65
|
+
url?: string;
|
|
66
|
+
contactEmail?: string;
|
|
67
|
+
};
|
|
56
68
|
} | Omit<{
|
|
57
69
|
enabledCollections?: string[];
|
|
58
70
|
approvalFlow?: string[];
|
|
@@ -70,6 +82,10 @@ declare const settingsController: ({ strapi }: StrapiContext) => {
|
|
|
70
82
|
gql?: {
|
|
71
83
|
auth?: boolean;
|
|
72
84
|
};
|
|
85
|
+
client?: {
|
|
86
|
+
url?: string;
|
|
87
|
+
contactEmail?: string;
|
|
88
|
+
};
|
|
73
89
|
}, "enabledCollections" | "moderatorRoles" | "isGQLPluginEnabled">>;
|
|
74
90
|
update(ctx: RequestContext<CommentsPluginConfig>): Promise<{
|
|
75
91
|
enabledCollections?: string[];
|
|
@@ -88,6 +104,10 @@ declare const settingsController: ({ strapi }: StrapiContext) => {
|
|
|
88
104
|
gql?: {
|
|
89
105
|
auth?: boolean;
|
|
90
106
|
};
|
|
107
|
+
client?: {
|
|
108
|
+
url?: string;
|
|
109
|
+
contactEmail?: string;
|
|
110
|
+
};
|
|
91
111
|
} | Omit<{
|
|
92
112
|
enabledCollections?: string[];
|
|
93
113
|
approvalFlow?: string[];
|
|
@@ -105,6 +125,10 @@ declare const settingsController: ({ strapi }: StrapiContext) => {
|
|
|
105
125
|
gql?: {
|
|
106
126
|
auth?: boolean;
|
|
107
127
|
};
|
|
128
|
+
client?: {
|
|
129
|
+
url?: string;
|
|
130
|
+
contactEmail?: string;
|
|
131
|
+
};
|
|
108
132
|
}, "enabledCollections" | "moderatorRoles" | "isGQLPluginEnabled">>;
|
|
109
133
|
restore(ctx: RequestContext): Promise<{
|
|
110
134
|
enabledCollections?: string[];
|
|
@@ -123,6 +147,10 @@ declare const settingsController: ({ strapi }: StrapiContext) => {
|
|
|
123
147
|
gql?: {
|
|
124
148
|
auth?: boolean;
|
|
125
149
|
};
|
|
150
|
+
client?: {
|
|
151
|
+
url?: string;
|
|
152
|
+
contactEmail?: string;
|
|
153
|
+
};
|
|
126
154
|
} | Omit<{
|
|
127
155
|
enabledCollections?: string[];
|
|
128
156
|
approvalFlow?: string[];
|
|
@@ -140,6 +168,10 @@ declare const settingsController: ({ strapi }: StrapiContext) => {
|
|
|
140
168
|
gql?: {
|
|
141
169
|
auth?: boolean;
|
|
142
170
|
};
|
|
171
|
+
client?: {
|
|
172
|
+
url?: string;
|
|
173
|
+
contactEmail?: string;
|
|
174
|
+
};
|
|
143
175
|
}, "enabledCollections" | "moderatorRoles" | "isGQLPluginEnabled">>;
|
|
144
176
|
restart(ctx: RequestContext): Promise<any>;
|
|
145
177
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { StrapiContext } from '../@types
|
|
1
|
+
import { StrapiContext } from '../@types';
|
|
2
2
|
export declare const setupGQL: ({ strapi }: StrapiContext) => Promise<void>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CoreStrapi } from '../../@types
|
|
2
|
-
import { Nexus } from '../../@types
|
|
1
|
+
import { CoreStrapi } from '../../@types';
|
|
2
|
+
import { Nexus } from '../../@types/graphql';
|
|
3
3
|
export declare const getCreateAbuseReport: (strapi: CoreStrapi, nexus: Nexus) => {
|
|
4
4
|
type: import("nexus/dist/core").NexusNonNullDef<any>;
|
|
5
5
|
args: {
|
|
@@ -24,7 +24,10 @@ export declare const getCreateAbuseReport: (strapi: CoreStrapi, nexus: Nexus) =>
|
|
|
24
24
|
authorName?: string;
|
|
25
25
|
authorEmail?: string;
|
|
26
26
|
authorAvatar?: string;
|
|
27
|
-
authorUser?: string
|
|
27
|
+
authorUser?: string | {
|
|
28
|
+
id?: number;
|
|
29
|
+
email?: string;
|
|
30
|
+
};
|
|
28
31
|
locale?: string;
|
|
29
32
|
gotThread?: boolean;
|
|
30
33
|
threadFirstItemId?: number;
|
|
@@ -58,7 +61,10 @@ export declare const getCreateAbuseReport: (strapi: CoreStrapi, nexus: Nexus) =>
|
|
|
58
61
|
authorName?: string;
|
|
59
62
|
authorEmail?: string;
|
|
60
63
|
authorAvatar?: string;
|
|
61
|
-
authorUser?: string
|
|
64
|
+
authorUser?: string | {
|
|
65
|
+
id?: number;
|
|
66
|
+
email?: string;
|
|
67
|
+
};
|
|
62
68
|
locale?: string;
|
|
63
69
|
gotThread?: boolean;
|
|
64
70
|
threadFirstItemId?: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CoreStrapi } from '../../@types
|
|
2
|
-
import { Nexus } from '../../@types
|
|
1
|
+
import { CoreStrapi } from '../../@types';
|
|
2
|
+
import { Nexus } from '../../@types/graphql';
|
|
3
3
|
export declare const getCreateComment: (strapi: CoreStrapi, nexus: Nexus) => {
|
|
4
4
|
type: import("nexus/dist/core").NexusNonNullDef<any>;
|
|
5
5
|
args: {
|
|
@@ -23,7 +23,10 @@ export declare const getCreateComment: (strapi: CoreStrapi, nexus: Nexus) => {
|
|
|
23
23
|
authorName?: string;
|
|
24
24
|
authorEmail?: string;
|
|
25
25
|
authorAvatar?: string;
|
|
26
|
-
authorUser?: string
|
|
26
|
+
authorUser?: string | {
|
|
27
|
+
id?: number;
|
|
28
|
+
email?: string;
|
|
29
|
+
};
|
|
27
30
|
locale?: string;
|
|
28
31
|
gotThread?: boolean;
|
|
29
32
|
threadFirstItemId?: number;
|
|
@@ -57,7 +60,10 @@ export declare const getCreateComment: (strapi: CoreStrapi, nexus: Nexus) => {
|
|
|
57
60
|
authorName?: string;
|
|
58
61
|
authorEmail?: string;
|
|
59
62
|
authorAvatar?: string;
|
|
60
|
-
authorUser?: string
|
|
63
|
+
authorUser?: string | {
|
|
64
|
+
id?: number;
|
|
65
|
+
email?: string;
|
|
66
|
+
};
|
|
61
67
|
locale?: string;
|
|
62
68
|
gotThread?: boolean;
|
|
63
69
|
threadFirstItemId?: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CoreStrapi } from '../../@types
|
|
2
|
-
import { Nexus } from '../../@types
|
|
1
|
+
import { CoreStrapi } from '../../@types';
|
|
2
|
+
import { Nexus } from '../../@types/graphql';
|
|
3
3
|
export declare const getRemoveComment: (strapi: CoreStrapi, nexus: Nexus) => {
|
|
4
4
|
type: import("nexus/dist/core").NexusNonNullDef<any>;
|
|
5
5
|
args: {
|
|
@@ -23,7 +23,10 @@ export declare const getRemoveComment: (strapi: CoreStrapi, nexus: Nexus) => {
|
|
|
23
23
|
authorName?: string;
|
|
24
24
|
authorEmail?: string;
|
|
25
25
|
authorAvatar?: string;
|
|
26
|
-
authorUser?: string
|
|
26
|
+
authorUser?: string | {
|
|
27
|
+
id?: number;
|
|
28
|
+
email?: string;
|
|
29
|
+
};
|
|
27
30
|
locale?: string;
|
|
28
31
|
gotThread?: boolean;
|
|
29
32
|
threadFirstItemId?: number;
|
|
@@ -57,7 +60,10 @@ export declare const getRemoveComment: (strapi: CoreStrapi, nexus: Nexus) => {
|
|
|
57
60
|
authorName?: string;
|
|
58
61
|
authorEmail?: string;
|
|
59
62
|
authorAvatar?: string;
|
|
60
|
-
authorUser?: string
|
|
63
|
+
authorUser?: string | {
|
|
64
|
+
id?: number;
|
|
65
|
+
email?: string;
|
|
66
|
+
};
|
|
61
67
|
locale?: string;
|
|
62
68
|
gotThread?: boolean;
|
|
63
69
|
threadFirstItemId?: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CoreStrapi } from '../../@types
|
|
2
|
-
import { Nexus } from '../../@types
|
|
1
|
+
import { CoreStrapi } from '../../@types';
|
|
2
|
+
import { Nexus } from '../../@types/graphql';
|
|
3
3
|
export declare const getUpdateComment: (strapi: CoreStrapi, nexus: Nexus) => {
|
|
4
4
|
type: import("nexus/dist/core").NexusNonNullDef<any>;
|
|
5
5
|
args: {
|
|
@@ -23,7 +23,10 @@ export declare const getUpdateComment: (strapi: CoreStrapi, nexus: Nexus) => {
|
|
|
23
23
|
authorName?: string;
|
|
24
24
|
authorEmail?: string;
|
|
25
25
|
authorAvatar?: string;
|
|
26
|
-
authorUser?: string
|
|
26
|
+
authorUser?: string | {
|
|
27
|
+
id?: number;
|
|
28
|
+
email?: string;
|
|
29
|
+
};
|
|
27
30
|
locale?: string;
|
|
28
31
|
gotThread?: boolean;
|
|
29
32
|
threadFirstItemId?: number;
|
|
@@ -57,7 +60,10 @@ export declare const getUpdateComment: (strapi: CoreStrapi, nexus: Nexus) => {
|
|
|
57
60
|
authorName?: string;
|
|
58
61
|
authorEmail?: string;
|
|
59
62
|
authorAvatar?: string;
|
|
60
|
-
authorUser?: string
|
|
63
|
+
authorUser?: string | {
|
|
64
|
+
id?: number;
|
|
65
|
+
email?: string;
|
|
66
|
+
};
|
|
61
67
|
locale?: string;
|
|
62
68
|
gotThread?: boolean;
|
|
63
69
|
threadFirstItemId?: number;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { CoreStrapi } from '../../@types
|
|
2
|
-
import { Nexus } from '../../@types
|
|
1
|
+
import { CoreStrapi } from '../../@types';
|
|
2
|
+
import { Nexus } from '../../@types/graphql';
|
|
3
3
|
export declare const getMutations: (strapi: CoreStrapi, nexus: Nexus) => import("nexus/dist/core").NexusExtendTypeDef<any>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CoreStrapi } from '../../@types
|
|
2
|
-
import { Nexus } from '../../@types
|
|
1
|
+
import { CoreStrapi } from '../../@types';
|
|
2
|
+
import { Nexus } from '../../@types/graphql';
|
|
3
3
|
declare const _default: (strapi: CoreStrapi, nexus: Nexus) => {
|
|
4
4
|
type: string;
|
|
5
5
|
args: {
|
|
@@ -27,7 +27,10 @@ declare const _default: (strapi: CoreStrapi, nexus: Nexus) => {
|
|
|
27
27
|
authorName?: string;
|
|
28
28
|
authorEmail?: string;
|
|
29
29
|
authorAvatar?: string;
|
|
30
|
-
authorUser?: string
|
|
30
|
+
authorUser?: string | {
|
|
31
|
+
id?: number;
|
|
32
|
+
email?: string;
|
|
33
|
+
};
|
|
31
34
|
locale?: string;
|
|
32
35
|
gotThread?: boolean;
|
|
33
36
|
threadFirstItemId?: number;
|
|
@@ -61,7 +64,10 @@ declare const _default: (strapi: CoreStrapi, nexus: Nexus) => {
|
|
|
61
64
|
authorName?: string;
|
|
62
65
|
authorEmail?: string;
|
|
63
66
|
authorAvatar?: string;
|
|
64
|
-
authorUser?: string
|
|
67
|
+
authorUser?: string | {
|
|
68
|
+
id?: number;
|
|
69
|
+
email?: string;
|
|
70
|
+
};
|
|
65
71
|
locale?: string;
|
|
66
72
|
gotThread?: boolean;
|
|
67
73
|
threadFirstItemId?: number;
|
|
@@ -102,7 +108,10 @@ declare const _default: (strapi: CoreStrapi, nexus: Nexus) => {
|
|
|
102
108
|
authorName?: string;
|
|
103
109
|
authorEmail?: string;
|
|
104
110
|
authorAvatar?: string;
|
|
105
|
-
authorUser?: string
|
|
111
|
+
authorUser?: string | {
|
|
112
|
+
id?: number;
|
|
113
|
+
email?: string;
|
|
114
|
+
};
|
|
106
115
|
locale?: string;
|
|
107
116
|
gotThread?: boolean;
|
|
108
117
|
threadFirstItemId?: number;
|
|
@@ -136,7 +145,10 @@ declare const _default: (strapi: CoreStrapi, nexus: Nexus) => {
|
|
|
136
145
|
authorName?: string;
|
|
137
146
|
authorEmail?: string;
|
|
138
147
|
authorAvatar?: string;
|
|
139
|
-
authorUser?: string
|
|
148
|
+
authorUser?: string | {
|
|
149
|
+
id?: number;
|
|
150
|
+
email?: string;
|
|
151
|
+
};
|
|
140
152
|
locale?: string;
|
|
141
153
|
gotThread?: boolean;
|
|
142
154
|
threadFirstItemId?: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CoreStrapi } from '../../@types
|
|
2
|
-
import { Nexus } from '../../@types
|
|
1
|
+
import { CoreStrapi } from '../../@types';
|
|
2
|
+
import { Nexus } from '../../@types/graphql';
|
|
3
3
|
declare const _default: (strapi: CoreStrapi, nexus: Nexus) => {
|
|
4
4
|
type: import("nexus/dist/core").NexusNonNullDef<any>;
|
|
5
5
|
args: {
|
|
@@ -25,7 +25,10 @@ declare const _default: (strapi: CoreStrapi, nexus: Nexus) => {
|
|
|
25
25
|
authorName?: string;
|
|
26
26
|
authorEmail?: string;
|
|
27
27
|
authorAvatar?: string;
|
|
28
|
-
authorUser?: string
|
|
28
|
+
authorUser?: string | {
|
|
29
|
+
id?: number;
|
|
30
|
+
email?: string;
|
|
31
|
+
};
|
|
29
32
|
locale?: string;
|
|
30
33
|
gotThread?: boolean;
|
|
31
34
|
threadFirstItemId?: number;
|
|
@@ -59,7 +62,10 @@ declare const _default: (strapi: CoreStrapi, nexus: Nexus) => {
|
|
|
59
62
|
authorName?: string;
|
|
60
63
|
authorEmail?: string;
|
|
61
64
|
authorAvatar?: string;
|
|
62
|
-
authorUser?: string
|
|
65
|
+
authorUser?: string | {
|
|
66
|
+
id?: number;
|
|
67
|
+
email?: string;
|
|
68
|
+
};
|
|
63
69
|
locale?: string;
|
|
64
70
|
gotThread?: boolean;
|
|
65
71
|
threadFirstItemId?: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CoreStrapi } from '../../@types
|
|
2
|
-
import { Nexus } from '../../@types
|
|
1
|
+
import { CoreStrapi } from '../../@types';
|
|
2
|
+
import { Nexus } from '../../@types/graphql';
|
|
3
3
|
declare const _default: (strapi: CoreStrapi, nexus: Nexus) => {
|
|
4
4
|
type: string;
|
|
5
5
|
args: {
|
|
@@ -28,7 +28,10 @@ declare const _default: (strapi: CoreStrapi, nexus: Nexus) => {
|
|
|
28
28
|
authorName?: string;
|
|
29
29
|
authorEmail?: string;
|
|
30
30
|
authorAvatar?: string;
|
|
31
|
-
authorUser?: string
|
|
31
|
+
authorUser?: string | {
|
|
32
|
+
id?: number;
|
|
33
|
+
email?: string;
|
|
34
|
+
};
|
|
32
35
|
locale?: string;
|
|
33
36
|
gotThread?: boolean;
|
|
34
37
|
threadFirstItemId?: number;
|
|
@@ -61,7 +64,10 @@ declare const _default: (strapi: CoreStrapi, nexus: Nexus) => {
|
|
|
61
64
|
authorName?: string;
|
|
62
65
|
authorEmail?: string;
|
|
63
66
|
authorAvatar?: string;
|
|
64
|
-
authorUser?: string
|
|
67
|
+
authorUser?: string | {
|
|
68
|
+
id?: number;
|
|
69
|
+
email?: string;
|
|
70
|
+
};
|
|
65
71
|
locale?: string;
|
|
66
72
|
gotThread?: boolean;
|
|
67
73
|
threadFirstItemId?: number;
|
|
@@ -102,7 +108,10 @@ declare const _default: (strapi: CoreStrapi, nexus: Nexus) => {
|
|
|
102
108
|
authorName?: string;
|
|
103
109
|
authorEmail?: string;
|
|
104
110
|
authorAvatar?: string;
|
|
105
|
-
authorUser?: string
|
|
111
|
+
authorUser?: string | {
|
|
112
|
+
id?: number;
|
|
113
|
+
email?: string;
|
|
114
|
+
};
|
|
106
115
|
locale?: string;
|
|
107
116
|
gotThread?: boolean;
|
|
108
117
|
threadFirstItemId?: number;
|
|
@@ -135,7 +144,10 @@ declare const _default: (strapi: CoreStrapi, nexus: Nexus) => {
|
|
|
135
144
|
authorName?: string;
|
|
136
145
|
authorEmail?: string;
|
|
137
146
|
authorAvatar?: string;
|
|
138
|
-
authorUser?: string
|
|
147
|
+
authorUser?: string | {
|
|
148
|
+
id?: number;
|
|
149
|
+
email?: string;
|
|
150
|
+
};
|
|
139
151
|
locale?: string;
|
|
140
152
|
gotThread?: boolean;
|
|
141
153
|
threadFirstItemId?: number;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { CoreStrapi } from '../../@types
|
|
2
|
-
import { Nexus } from '../../@types
|
|
1
|
+
import { CoreStrapi } from '../../@types';
|
|
2
|
+
import { Nexus } from '../../@types/graphql';
|
|
3
3
|
export declare const getQueries: (strapi: CoreStrapi, nexus: Nexus) => import("nexus/dist/core").NexusExtendTypeDef<any>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Nexus } from '../../@types
|
|
1
|
+
import { Nexus } from '../../@types/graphql';
|
|
2
2
|
export declare const getComment: (nexus: Nexus) => import("nexus/dist/core").NexusObjectTypeDef<"CommentSingle">;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Nexus } from '../../@types
|
|
1
|
+
import { Nexus } from '../../@types/graphql';
|
|
2
2
|
export declare const getCommentAuthor: (nexus: Nexus) => import("nexus/dist/core").NexusObjectTypeDef<"CommentAuthor">;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Nexus } from '../../@types
|
|
1
|
+
import { Nexus } from '../../@types/graphql';
|
|
2
2
|
export declare const getCommentAuthorType: (nexus: Nexus) => import("nexus/dist/core").NexusEnumTypeDef<"CommentAuthorType">;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Nexus } from
|
|
1
|
+
import { Nexus } from '../../@types/graphql';
|
|
2
2
|
export declare const getCommentNested: (nexus: Nexus) => import("nexus/dist/core").NexusObjectTypeDef<"CommentNested">;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Nexus } from
|
|
1
|
+
import { Nexus } from '../../@types/graphql';
|
|
2
2
|
export declare const getCreateComment: (nexus: Nexus) => import("nexus/dist/core").NexusInputObjectTypeDef<"CreateComment">;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Nexus } from
|
|
1
|
+
import { Nexus } from '../../@types/graphql';
|
|
2
2
|
export declare const getCreateCommentAuthor: (nexus: Nexus) => import("nexus/dist/core").NexusInputObjectTypeDef<"CreateCommentAuthor">;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Nexus } from
|
|
1
|
+
import { Nexus } from '../../@types/graphql';
|
|
2
2
|
export declare const getCreateReport: (nexus: Nexus) => import("nexus/dist/core").NexusInputObjectTypeDef<"CreateReport">;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Nexus } from '../../@types
|
|
1
|
+
import { Nexus } from '../../@types/graphql';
|
|
2
2
|
export declare const getIdType: (nexus: Nexus) => import("nexus/dist/core").NexusScalarTypeDef<"ID">;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Nexus } from
|
|
1
|
+
import { Nexus } from '../../@types/graphql';
|
|
2
2
|
export declare const getIdentityAuthor: (nexus: Nexus) => import("nexus/dist/core").NexusInputObjectTypeDef<"IdentifyCommentAuthor">;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Nexus } from
|
|
1
|
+
import { Nexus } from '../../@types/graphql';
|
|
2
2
|
export declare const getRemoveComment: (nexus: Nexus) => import("nexus/dist/core").NexusInputObjectTypeDef<"RemoveComment">;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Nexus } from
|
|
1
|
+
import { Nexus } from '../../@types/graphql';
|
|
2
2
|
export declare const getReport: (nexus: Nexus) => import("nexus/dist/core").NexusObjectTypeDef<"Report">;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Nexus } from '../../@types
|
|
1
|
+
import { Nexus } from '../../@types/graphql';
|
|
2
2
|
import { CommentsPluginConfig } from '../../config';
|
|
3
3
|
export declare const getReportReason: (nexus: Nexus, { reportReasons }: CommentsPluginConfig) => import("nexus/dist/core").NexusEnumTypeDef<"ReportReason">;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Nexus } from
|
|
1
|
+
import { Nexus } from '../../@types/graphql';
|
|
2
2
|
export declare const getResponseFindAll: (nexus: Nexus) => import("nexus/dist/core").NexusObjectTypeDef<"ResponseFindAll">;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Nexus } from
|
|
1
|
+
import { Nexus } from '../../@types/graphql';
|
|
2
2
|
export declare const getResponseFindAllPerAuthor: (nexus: Nexus) => import("nexus/dist/core").NexusObjectTypeDef<"ResponseFindAllPerAuthor">;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Nexus } from
|
|
1
|
+
import { Nexus } from '../../@types/graphql';
|
|
2
2
|
export declare const getResponseMeta: (nexus: Nexus) => import("nexus/dist/core").NexusObjectTypeDef<"ResponseMeta">;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Nexus } from
|
|
1
|
+
import { Nexus } from '../../@types/graphql';
|
|
2
2
|
export declare const getResponsePagination: (nexus: Nexus) => import("nexus/dist/core").NexusObjectTypeDef<"ResponsePagination">;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Nexus } from
|
|
1
|
+
import { Nexus } from '../../@types/graphql';
|
|
2
2
|
export declare const getUpdateComment: (nexus: Nexus) => import("nexus/dist/core").NexusInputObjectTypeDef<"UpdateComment">;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Nexus } from '../../@types
|
|
1
|
+
import { Nexus } from '../../@types/graphql';
|
|
2
2
|
import { CommentsPluginConfig } from '../../config';
|
|
3
3
|
export declare const getTypes: (config: CommentsPluginConfig, nexus: Nexus) => (import("nexus/dist/core").NexusEnumTypeDef<"CommentAuthorType"> | import("nexus/dist/core").NexusObjectTypeDef<"CommentSingle"> | import("nexus/dist/core").NexusObjectTypeDef<"CommentAuthor"> | import("nexus/dist/core").NexusObjectTypeDef<"CommentNested"> | import("nexus/dist/core").NexusInputObjectTypeDef<"CreateComment"> | import("nexus/dist/core").NexusInputObjectTypeDef<"CreateCommentAuthor"> | import("nexus/dist/core").NexusInputObjectTypeDef<"CreateReport"> | import("nexus/dist/core").NexusScalarTypeDef<"ID"> | import("nexus/dist/core").NexusInputObjectTypeDef<"IdentifyCommentAuthor"> | import("nexus/dist/core").NexusInputObjectTypeDef<"RemoveComment"> | import("nexus/dist/core").NexusObjectTypeDef<"Report"> | import("nexus/dist/core").NexusEnumTypeDef<"ReportReason"> | import("nexus/dist/core").NexusObjectTypeDef<"ResponseFindAll"> | import("nexus/dist/core").NexusObjectTypeDef<"ResponseFindAllPerAuthor"> | import("nexus/dist/core").NexusObjectTypeDef<"ResponseMeta"> | import("nexus/dist/core").NexusObjectTypeDef<"ResponsePagination"> | import("nexus/dist/core").NexusInputObjectTypeDef<"UpdateComment">)[];
|