@interware/content-generator 0.1.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/LICENSE +21 -0
- package/README.md +3 -0
- package/dist/_chunks/App-6ntGE8c-.js +702 -0
- package/dist/_chunks/App-CUBxywy1.mjs +684 -0
- package/dist/_chunks/Settings-CwPVYHgw.js +218 -0
- package/dist/_chunks/Settings-DTPXHARn.mjs +200 -0
- package/dist/_chunks/en-B4KWt_jN.js +4 -0
- package/dist/_chunks/en-Byx4XI2L.mjs +4 -0
- package/dist/_chunks/es-Cb6O-nM6.js +4 -0
- package/dist/_chunks/es-DlGQb34u.mjs +4 -0
- package/dist/_chunks/getTranslation-AfxwBFKN.js +4 -0
- package/dist/_chunks/getTranslation-Di36t3DD.mjs +5 -0
- package/dist/_chunks/index-CkkBgYlg.mjs +126 -0
- package/dist/_chunks/index-Dcpjhvs5.js +125 -0
- package/dist/admin/index.js +3 -0
- package/dist/admin/index.mjs +4 -0
- package/dist/admin/src/components/Initializer.d.ts +5 -0
- package/dist/admin/src/components/PluginIcon.d.ts +2 -0
- package/dist/admin/src/components/commons/dialog/index.d.ts +12 -0
- package/dist/admin/src/components/commons/generate-image-dialog/index.d.ts +5 -0
- package/dist/admin/src/components/generate-content/Form.d.ts +15 -0
- package/dist/admin/src/components/home/table.d.ts +12 -0
- package/dist/admin/src/components/index.d.ts +12 -0
- package/dist/admin/src/components/settings/Form.d.ts +8 -0
- package/dist/admin/src/containers/generate-content/index.d.ts +2 -0
- package/dist/admin/src/containers/home/index.d.ts +2 -0
- package/dist/admin/src/containers/settings/index.d.ts +7 -0
- package/dist/admin/src/hooks/useDialog.d.ts +11 -0
- package/dist/admin/src/index.d.ts +10 -0
- package/dist/admin/src/lib/use-cases/articles/index.d.ts +5 -0
- package/dist/admin/src/lib/use-cases/categories/index.d.ts +5 -0
- package/dist/admin/src/lib/use-cases/generate-content/index.d.ts +6 -0
- package/dist/admin/src/lib/use-cases/linkedin/index.d.ts +5 -0
- package/dist/admin/src/lib/use-cases/settings/index.d.ts +6 -0
- package/dist/admin/src/lib/use-cases/users/index.d.ts +5 -0
- package/dist/admin/src/pages/App.d.ts +2 -0
- package/dist/admin/src/pages/GenerateContent.d.ts +2 -0
- package/dist/admin/src/pages/HomePage.d.ts +2 -0
- package/dist/admin/src/pages/Settings.d.ts +2 -0
- package/dist/admin/src/permissions.d.ts +7 -0
- package/dist/admin/src/pluginId.d.ts +1 -0
- package/dist/admin/src/reducers/dialog/index.d.ts +6 -0
- package/dist/admin/src/types/reducers.d.ts +4 -0
- package/dist/admin/src/utils/getTranslation.d.ts +2 -0
- package/dist/server/index.js +3149 -0
- package/dist/server/index.mjs +3130 -0
- package/dist/server/src/bootstrap.d.ts +5 -0
- package/dist/server/src/config/index.d.ts +5 -0
- package/dist/server/src/content-types/index.d.ts +2 -0
- package/dist/server/src/controllers/config.d.ts +8 -0
- package/dist/server/src/controllers/controller.d.ts +15 -0
- package/dist/server/src/controllers/index.d.ts +22 -0
- package/dist/server/src/destroy.d.ts +5 -0
- package/dist/server/src/index.d.ts +148 -0
- package/dist/server/src/middlewares/index.d.ts +2 -0
- package/dist/server/src/policies/index.d.ts +2 -0
- package/dist/server/src/register.d.ts +5 -0
- package/dist/server/src/routes/admin.d.ts +10 -0
- package/dist/server/src/routes/content-api.d.ts +10 -0
- package/dist/server/src/routes/index.d.ts +27 -0
- package/dist/server/src/services/index.d.ts +83 -0
- package/dist/server/src/services/service.d.ts +86 -0
- package/package.json +98 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Core } from '@strapi/strapi';
|
|
2
|
+
declare const controller: ({ strapi }: {
|
|
3
|
+
strapi: Core.Strapi;
|
|
4
|
+
}) => {
|
|
5
|
+
getArticles(ctx: any): Promise<unknown>;
|
|
6
|
+
getCategories(ctx: any): Promise<unknown>;
|
|
7
|
+
getUsers(ctx: any): Promise<unknown>;
|
|
8
|
+
generateArticle(ctx: any): Promise<void>;
|
|
9
|
+
generateImageForArticle(ctx: any): Promise<void>;
|
|
10
|
+
publishToLinkedIn(ctx: any): Promise<void>;
|
|
11
|
+
publishToFacebook(ctx: any): Promise<void>;
|
|
12
|
+
get(ctx: any): Promise<void>;
|
|
13
|
+
set(ctx: any): Promise<void>;
|
|
14
|
+
};
|
|
15
|
+
export default controller;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
controller: ({ strapi }: {
|
|
3
|
+
strapi: import("@strapi/types/dist/core").Strapi;
|
|
4
|
+
}) => {
|
|
5
|
+
getArticles(ctx: any): Promise<unknown>;
|
|
6
|
+
getCategories(ctx: any): Promise<unknown>;
|
|
7
|
+
getUsers(ctx: any): Promise<unknown>;
|
|
8
|
+
generateArticle(ctx: any): Promise<void>;
|
|
9
|
+
generateImageForArticle(ctx: any): Promise<void>;
|
|
10
|
+
publishToLinkedIn(ctx: any): Promise<void>;
|
|
11
|
+
publishToFacebook(ctx: any): Promise<void>;
|
|
12
|
+
get(ctx: any): Promise<void>;
|
|
13
|
+
set(ctx: any): Promise<void>;
|
|
14
|
+
};
|
|
15
|
+
config: ({ strapi }: {
|
|
16
|
+
strapi: import("@strapi/types/dist/core").Strapi;
|
|
17
|
+
}) => {
|
|
18
|
+
get(ctx: any): Promise<void>;
|
|
19
|
+
set(ctx: any): Promise<void>;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export default _default;
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
register: ({ strapi }: {
|
|
3
|
+
strapi: import("@strapi/types/dist/core").Strapi;
|
|
4
|
+
}) => void;
|
|
5
|
+
bootstrap: ({ strapi }: {
|
|
6
|
+
strapi: import("@strapi/types/dist/core").Strapi;
|
|
7
|
+
}) => void;
|
|
8
|
+
destroy: ({ strapi }: {
|
|
9
|
+
strapi: import("@strapi/types/dist/core").Strapi;
|
|
10
|
+
}) => void;
|
|
11
|
+
config: {
|
|
12
|
+
default: {};
|
|
13
|
+
validator(): void;
|
|
14
|
+
};
|
|
15
|
+
controllers: {
|
|
16
|
+
controller: ({ strapi }: {
|
|
17
|
+
strapi: import("@strapi/types/dist/core").Strapi;
|
|
18
|
+
}) => {
|
|
19
|
+
getArticles(ctx: any): Promise<unknown>;
|
|
20
|
+
getCategories(ctx: any): Promise<unknown>;
|
|
21
|
+
getUsers(ctx: any): Promise<unknown>;
|
|
22
|
+
generateArticle(ctx: any): Promise<void>;
|
|
23
|
+
generateImageForArticle(ctx: any): Promise<void>;
|
|
24
|
+
publishToLinkedIn(ctx: any): Promise<void>;
|
|
25
|
+
publishToFacebook(ctx: any): Promise<void>;
|
|
26
|
+
get(ctx: any): Promise<void>;
|
|
27
|
+
set(ctx: any): Promise<void>;
|
|
28
|
+
};
|
|
29
|
+
config: ({ strapi }: {
|
|
30
|
+
strapi: import("@strapi/types/dist/core").Strapi;
|
|
31
|
+
}) => {
|
|
32
|
+
get(ctx: any): Promise<void>;
|
|
33
|
+
set(ctx: any): Promise<void>;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
routes: {
|
|
37
|
+
'content-api': {
|
|
38
|
+
type: string;
|
|
39
|
+
routes: {
|
|
40
|
+
method: string;
|
|
41
|
+
path: string;
|
|
42
|
+
handler: string;
|
|
43
|
+
config: {
|
|
44
|
+
policies: any[];
|
|
45
|
+
auth: boolean;
|
|
46
|
+
};
|
|
47
|
+
}[];
|
|
48
|
+
};
|
|
49
|
+
admin: {
|
|
50
|
+
type: string;
|
|
51
|
+
routes: {
|
|
52
|
+
method: string;
|
|
53
|
+
path: string;
|
|
54
|
+
handler: string;
|
|
55
|
+
config: {
|
|
56
|
+
policies: any[];
|
|
57
|
+
auth: boolean;
|
|
58
|
+
};
|
|
59
|
+
}[];
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
services: {
|
|
63
|
+
service: ({ strapi }: {
|
|
64
|
+
strapi: import("@strapi/types/dist/core").Strapi;
|
|
65
|
+
}) => {
|
|
66
|
+
geminiConfig(): Promise<import("@google/genai").GoogleGenAI>;
|
|
67
|
+
getArticulos(sanitizedQueryParams: any): Promise<{
|
|
68
|
+
id: import("@strapi/types/dist/data").ID;
|
|
69
|
+
documentId: string;
|
|
70
|
+
locale?: string;
|
|
71
|
+
content?: string;
|
|
72
|
+
createdAt?: import("@strapi/types/dist/schema/attribute").DateTimeValue;
|
|
73
|
+
descripcion?: string;
|
|
74
|
+
fecha_publicacion?: import("@strapi/types/dist/schema/attribute").DateValue;
|
|
75
|
+
linkedInPostId?: string;
|
|
76
|
+
minute_read?: number;
|
|
77
|
+
publishedAt?: import("@strapi/types/dist/schema/attribute").DateTimeValue;
|
|
78
|
+
slug?: string;
|
|
79
|
+
titulo?: string;
|
|
80
|
+
updatedAt?: import("@strapi/types/dist/schema/attribute").DateTimeValue;
|
|
81
|
+
}[]>;
|
|
82
|
+
getCategorias(sanitizedQueryParams: any): Promise<{
|
|
83
|
+
id: import("@strapi/types/dist/data").ID;
|
|
84
|
+
documentId: string;
|
|
85
|
+
categoria?: string;
|
|
86
|
+
locale?: string;
|
|
87
|
+
createdAt?: import("@strapi/types/dist/schema/attribute").DateTimeValue;
|
|
88
|
+
descripcion?: string;
|
|
89
|
+
publishedAt?: import("@strapi/types/dist/schema/attribute").DateTimeValue;
|
|
90
|
+
updatedAt?: import("@strapi/types/dist/schema/attribute").DateTimeValue;
|
|
91
|
+
}[]>;
|
|
92
|
+
getUsuarios(sanitizedQueryParams: any): Promise<{
|
|
93
|
+
id: import("@strapi/types/dist/data").ID;
|
|
94
|
+
documentId: string;
|
|
95
|
+
locale?: string;
|
|
96
|
+
password?: string;
|
|
97
|
+
email?: string;
|
|
98
|
+
createdAt?: import("@strapi/types/dist/schema/attribute").DateTimeValue;
|
|
99
|
+
publishedAt?: import("@strapi/types/dist/schema/attribute").DateTimeValue;
|
|
100
|
+
updatedAt?: import("@strapi/types/dist/schema/attribute").DateTimeValue;
|
|
101
|
+
apellidos?: string;
|
|
102
|
+
blocked?: boolean;
|
|
103
|
+
confirmationToken?: string;
|
|
104
|
+
confirmed?: boolean;
|
|
105
|
+
fecha_baja?: import("@strapi/types/dist/schema/attribute").DateValue;
|
|
106
|
+
fecha_ingreso?: import("@strapi/types/dist/schema/attribute").DateValue;
|
|
107
|
+
fecha_nacimiento?: import("@strapi/types/dist/schema/attribute").DateValue;
|
|
108
|
+
nombre?: string;
|
|
109
|
+
nombre_completo?: string;
|
|
110
|
+
numero_empleado?: string;
|
|
111
|
+
provider?: string;
|
|
112
|
+
resetPasswordToken?: string;
|
|
113
|
+
sfid?: string;
|
|
114
|
+
username?: string;
|
|
115
|
+
}[]>;
|
|
116
|
+
generateArticle(ctx: any): Promise<{
|
|
117
|
+
id: import("@strapi/types/dist/data").ID;
|
|
118
|
+
documentId: string;
|
|
119
|
+
locale?: string;
|
|
120
|
+
content?: string;
|
|
121
|
+
createdAt?: import("@strapi/types/dist/schema/attribute").DateTimeValue;
|
|
122
|
+
descripcion?: string;
|
|
123
|
+
fecha_publicacion?: import("@strapi/types/dist/schema/attribute").DateValue;
|
|
124
|
+
linkedInPostId?: string;
|
|
125
|
+
minute_read?: number;
|
|
126
|
+
publishedAt?: import("@strapi/types/dist/schema/attribute").DateTimeValue;
|
|
127
|
+
slug?: string;
|
|
128
|
+
titulo?: string;
|
|
129
|
+
updatedAt?: import("@strapi/types/dist/schema/attribute").DateTimeValue;
|
|
130
|
+
}>;
|
|
131
|
+
generateImageForArticle(ctx: any): Promise<{
|
|
132
|
+
message: string;
|
|
133
|
+
image: any;
|
|
134
|
+
}>;
|
|
135
|
+
publishToLinkedIn(ctx: any): Promise<{
|
|
136
|
+
message: string;
|
|
137
|
+
linkedinResponse: any;
|
|
138
|
+
}>;
|
|
139
|
+
publishToFacebook(ctx: any): Promise<{
|
|
140
|
+
message: string;
|
|
141
|
+
}>;
|
|
142
|
+
};
|
|
143
|
+
};
|
|
144
|
+
contentTypes: {};
|
|
145
|
+
policies: {};
|
|
146
|
+
middlewares: {};
|
|
147
|
+
};
|
|
148
|
+
export default _default;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
'content-api': {
|
|
3
|
+
type: string;
|
|
4
|
+
routes: {
|
|
5
|
+
method: string;
|
|
6
|
+
path: string;
|
|
7
|
+
handler: string;
|
|
8
|
+
config: {
|
|
9
|
+
policies: any[];
|
|
10
|
+
auth: boolean;
|
|
11
|
+
};
|
|
12
|
+
}[];
|
|
13
|
+
};
|
|
14
|
+
admin: {
|
|
15
|
+
type: string;
|
|
16
|
+
routes: {
|
|
17
|
+
method: string;
|
|
18
|
+
path: string;
|
|
19
|
+
handler: string;
|
|
20
|
+
config: {
|
|
21
|
+
policies: any[];
|
|
22
|
+
auth: boolean;
|
|
23
|
+
};
|
|
24
|
+
}[];
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export default _default;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
service: ({ strapi }: {
|
|
3
|
+
strapi: import("@strapi/types/dist/core").Strapi;
|
|
4
|
+
}) => {
|
|
5
|
+
geminiConfig(): Promise<import("@google/genai").GoogleGenAI>;
|
|
6
|
+
getArticulos(sanitizedQueryParams: any): Promise<{
|
|
7
|
+
id: import("@strapi/types/dist/data").ID;
|
|
8
|
+
documentId: string;
|
|
9
|
+
locale?: string;
|
|
10
|
+
content?: string;
|
|
11
|
+
createdAt?: import("@strapi/types/dist/schema/attribute").DateTimeValue;
|
|
12
|
+
descripcion?: string;
|
|
13
|
+
fecha_publicacion?: import("@strapi/types/dist/schema/attribute").DateValue;
|
|
14
|
+
linkedInPostId?: string;
|
|
15
|
+
minute_read?: number;
|
|
16
|
+
publishedAt?: import("@strapi/types/dist/schema/attribute").DateTimeValue;
|
|
17
|
+
slug?: string;
|
|
18
|
+
titulo?: string;
|
|
19
|
+
updatedAt?: import("@strapi/types/dist/schema/attribute").DateTimeValue;
|
|
20
|
+
}[]>;
|
|
21
|
+
getCategorias(sanitizedQueryParams: any): Promise<{
|
|
22
|
+
id: import("@strapi/types/dist/data").ID;
|
|
23
|
+
documentId: string;
|
|
24
|
+
categoria?: string;
|
|
25
|
+
locale?: string;
|
|
26
|
+
createdAt?: import("@strapi/types/dist/schema/attribute").DateTimeValue;
|
|
27
|
+
descripcion?: string;
|
|
28
|
+
publishedAt?: import("@strapi/types/dist/schema/attribute").DateTimeValue;
|
|
29
|
+
updatedAt?: import("@strapi/types/dist/schema/attribute").DateTimeValue;
|
|
30
|
+
}[]>;
|
|
31
|
+
getUsuarios(sanitizedQueryParams: any): Promise<{
|
|
32
|
+
id: import("@strapi/types/dist/data").ID;
|
|
33
|
+
documentId: string;
|
|
34
|
+
locale?: string;
|
|
35
|
+
password?: string;
|
|
36
|
+
email?: string;
|
|
37
|
+
createdAt?: import("@strapi/types/dist/schema/attribute").DateTimeValue;
|
|
38
|
+
publishedAt?: import("@strapi/types/dist/schema/attribute").DateTimeValue;
|
|
39
|
+
updatedAt?: import("@strapi/types/dist/schema/attribute").DateTimeValue;
|
|
40
|
+
apellidos?: string;
|
|
41
|
+
blocked?: boolean;
|
|
42
|
+
confirmationToken?: string;
|
|
43
|
+
confirmed?: boolean;
|
|
44
|
+
fecha_baja?: import("@strapi/types/dist/schema/attribute").DateValue;
|
|
45
|
+
fecha_ingreso?: import("@strapi/types/dist/schema/attribute").DateValue;
|
|
46
|
+
fecha_nacimiento?: import("@strapi/types/dist/schema/attribute").DateValue;
|
|
47
|
+
nombre?: string;
|
|
48
|
+
nombre_completo?: string;
|
|
49
|
+
numero_empleado?: string;
|
|
50
|
+
provider?: string;
|
|
51
|
+
resetPasswordToken?: string;
|
|
52
|
+
sfid?: string;
|
|
53
|
+
username?: string;
|
|
54
|
+
}[]>;
|
|
55
|
+
generateArticle(ctx: any): Promise<{
|
|
56
|
+
id: import("@strapi/types/dist/data").ID;
|
|
57
|
+
documentId: string;
|
|
58
|
+
locale?: string;
|
|
59
|
+
content?: string;
|
|
60
|
+
createdAt?: import("@strapi/types/dist/schema/attribute").DateTimeValue;
|
|
61
|
+
descripcion?: string;
|
|
62
|
+
fecha_publicacion?: import("@strapi/types/dist/schema/attribute").DateValue;
|
|
63
|
+
linkedInPostId?: string;
|
|
64
|
+
minute_read?: number;
|
|
65
|
+
publishedAt?: import("@strapi/types/dist/schema/attribute").DateTimeValue;
|
|
66
|
+
slug?: string;
|
|
67
|
+
titulo?: string;
|
|
68
|
+
updatedAt?: import("@strapi/types/dist/schema/attribute").DateTimeValue;
|
|
69
|
+
}>;
|
|
70
|
+
generateImageForArticle(ctx: any): Promise<{
|
|
71
|
+
message: string;
|
|
72
|
+
image: any;
|
|
73
|
+
}>;
|
|
74
|
+
publishToLinkedIn(ctx: any): Promise<{
|
|
75
|
+
message: string;
|
|
76
|
+
linkedinResponse: any;
|
|
77
|
+
}>;
|
|
78
|
+
publishToFacebook(ctx: any): Promise<{
|
|
79
|
+
message: string;
|
|
80
|
+
}>;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
export default _default;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import type { Core } from '@strapi/strapi';
|
|
2
|
+
import { GoogleGenAI } from '@google/genai';
|
|
3
|
+
declare const service: ({ strapi }: {
|
|
4
|
+
strapi: Core.Strapi;
|
|
5
|
+
}) => {
|
|
6
|
+
geminiConfig(): Promise<GoogleGenAI>;
|
|
7
|
+
/**
|
|
8
|
+
* Fetches articles.
|
|
9
|
+
*/
|
|
10
|
+
getArticulos(sanitizedQueryParams: any): Promise<{
|
|
11
|
+
id: import("@strapi/types/dist/data").ID;
|
|
12
|
+
documentId: string;
|
|
13
|
+
locale?: string;
|
|
14
|
+
content?: string;
|
|
15
|
+
createdAt?: import("@strapi/types/dist/schema/attribute").DateTimeValue;
|
|
16
|
+
descripcion?: string;
|
|
17
|
+
fecha_publicacion?: import("@strapi/types/dist/schema/attribute").DateValue;
|
|
18
|
+
linkedInPostId?: string;
|
|
19
|
+
minute_read?: number;
|
|
20
|
+
publishedAt?: import("@strapi/types/dist/schema/attribute").DateTimeValue;
|
|
21
|
+
slug?: string;
|
|
22
|
+
titulo?: string;
|
|
23
|
+
updatedAt?: import("@strapi/types/dist/schema/attribute").DateTimeValue;
|
|
24
|
+
}[]>;
|
|
25
|
+
getCategorias(sanitizedQueryParams: any): Promise<{
|
|
26
|
+
id: import("@strapi/types/dist/data").ID;
|
|
27
|
+
documentId: string;
|
|
28
|
+
categoria?: string;
|
|
29
|
+
locale?: string;
|
|
30
|
+
createdAt?: import("@strapi/types/dist/schema/attribute").DateTimeValue;
|
|
31
|
+
descripcion?: string;
|
|
32
|
+
publishedAt?: import("@strapi/types/dist/schema/attribute").DateTimeValue;
|
|
33
|
+
updatedAt?: import("@strapi/types/dist/schema/attribute").DateTimeValue;
|
|
34
|
+
}[]>;
|
|
35
|
+
getUsuarios(sanitizedQueryParams: any): Promise<{
|
|
36
|
+
id: import("@strapi/types/dist/data").ID;
|
|
37
|
+
documentId: string;
|
|
38
|
+
locale?: string;
|
|
39
|
+
password?: string;
|
|
40
|
+
email?: string;
|
|
41
|
+
createdAt?: import("@strapi/types/dist/schema/attribute").DateTimeValue;
|
|
42
|
+
publishedAt?: import("@strapi/types/dist/schema/attribute").DateTimeValue;
|
|
43
|
+
updatedAt?: import("@strapi/types/dist/schema/attribute").DateTimeValue;
|
|
44
|
+
apellidos?: string;
|
|
45
|
+
blocked?: boolean;
|
|
46
|
+
confirmationToken?: string;
|
|
47
|
+
confirmed?: boolean;
|
|
48
|
+
fecha_baja?: import("@strapi/types/dist/schema/attribute").DateValue;
|
|
49
|
+
fecha_ingreso?: import("@strapi/types/dist/schema/attribute").DateValue;
|
|
50
|
+
fecha_nacimiento?: import("@strapi/types/dist/schema/attribute").DateValue;
|
|
51
|
+
nombre?: string;
|
|
52
|
+
nombre_completo?: string;
|
|
53
|
+
numero_empleado?: string;
|
|
54
|
+
provider?: string;
|
|
55
|
+
resetPasswordToken?: string;
|
|
56
|
+
sfid?: string;
|
|
57
|
+
username?: string;
|
|
58
|
+
}[]>;
|
|
59
|
+
generateArticle(ctx: any): Promise<{
|
|
60
|
+
id: import("@strapi/types/dist/data").ID;
|
|
61
|
+
documentId: string;
|
|
62
|
+
locale?: string;
|
|
63
|
+
content?: string;
|
|
64
|
+
createdAt?: import("@strapi/types/dist/schema/attribute").DateTimeValue;
|
|
65
|
+
descripcion?: string;
|
|
66
|
+
fecha_publicacion?: import("@strapi/types/dist/schema/attribute").DateValue;
|
|
67
|
+
linkedInPostId?: string;
|
|
68
|
+
minute_read?: number;
|
|
69
|
+
publishedAt?: import("@strapi/types/dist/schema/attribute").DateTimeValue;
|
|
70
|
+
slug?: string;
|
|
71
|
+
titulo?: string;
|
|
72
|
+
updatedAt?: import("@strapi/types/dist/schema/attribute").DateTimeValue;
|
|
73
|
+
}>;
|
|
74
|
+
generateImageForArticle(ctx: any): Promise<{
|
|
75
|
+
message: string;
|
|
76
|
+
image: any;
|
|
77
|
+
}>;
|
|
78
|
+
publishToLinkedIn(ctx: any): Promise<{
|
|
79
|
+
message: string;
|
|
80
|
+
linkedinResponse: any;
|
|
81
|
+
}>;
|
|
82
|
+
publishToFacebook(ctx: any): Promise<{
|
|
83
|
+
message: string;
|
|
84
|
+
}>;
|
|
85
|
+
};
|
|
86
|
+
export default service;
|
package/package.json
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "0.1.1",
|
|
3
|
+
"keywords": [],
|
|
4
|
+
"type": "commonjs",
|
|
5
|
+
"publishConfig": {
|
|
6
|
+
"access": "public"
|
|
7
|
+
},
|
|
8
|
+
"exports": {
|
|
9
|
+
"./package.json": "./package.json",
|
|
10
|
+
"./strapi-admin": {
|
|
11
|
+
"types": "./dist/admin/src/index.d.ts",
|
|
12
|
+
"source": "./admin/src/index.ts",
|
|
13
|
+
"import": "./dist/admin/index.mjs",
|
|
14
|
+
"require": "./dist/admin/index.js",
|
|
15
|
+
"default": "./dist/admin/index.js"
|
|
16
|
+
},
|
|
17
|
+
"./strapi-server": {
|
|
18
|
+
"types": "./dist/server/src/index.d.ts",
|
|
19
|
+
"source": "./server/src/index.ts",
|
|
20
|
+
"import": "./dist/server/index.mjs",
|
|
21
|
+
"require": "./dist/server/index.js",
|
|
22
|
+
"default": "./dist/server/index.js"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"files": [
|
|
26
|
+
"dist"
|
|
27
|
+
],
|
|
28
|
+
"scripts": {
|
|
29
|
+
"build": "strapi-plugin build",
|
|
30
|
+
"watch": "strapi-plugin watch",
|
|
31
|
+
"watch:link": "strapi-plugin watch:link",
|
|
32
|
+
"verify": "strapi-plugin verify",
|
|
33
|
+
"changeset": "changeset",
|
|
34
|
+
"publish:packages": "changeset publish",
|
|
35
|
+
"version:packages": "changeset version",
|
|
36
|
+
"release": "npm run build && changeset publish",
|
|
37
|
+
"test:ts:front": "run -T tsc -p admin/tsconfig.json",
|
|
38
|
+
"test:ts:back": "run -T tsc -p server/tsconfig.json",
|
|
39
|
+
"prepare": "husky"
|
|
40
|
+
},
|
|
41
|
+
"dependencies": {
|
|
42
|
+
"@google/genai": "^1.30.0",
|
|
43
|
+
"@reduxjs/toolkit": "^1.9.7",
|
|
44
|
+
"@strapi/design-system": "^2.0.0-rc.30",
|
|
45
|
+
"@strapi/icons": "^2.0.0-rc.30",
|
|
46
|
+
"formik": "^2.4.9",
|
|
47
|
+
"react-intl": "^7.1.14",
|
|
48
|
+
"react-redux": "^8.1.3",
|
|
49
|
+
"slugify": "^1.6.6",
|
|
50
|
+
"yup": "^1.7.1"
|
|
51
|
+
},
|
|
52
|
+
"devDependencies": {
|
|
53
|
+
"@changesets/changelog-github": "^0.5.2",
|
|
54
|
+
"@changesets/cli": "^2.29.8",
|
|
55
|
+
"@commitlint/cli": "^20.3.1",
|
|
56
|
+
"@commitlint/config-conventional": "^20.3.1",
|
|
57
|
+
"@strapi/sdk-plugin": "^5.4.0",
|
|
58
|
+
"@strapi/strapi": "^5.33.3",
|
|
59
|
+
"@strapi/typescript-utils": "^5.33.3",
|
|
60
|
+
"@types/react": "^18",
|
|
61
|
+
"@types/react-dom": "^18",
|
|
62
|
+
"cz-conventional-changelog": "^3.3.0",
|
|
63
|
+
"husky": "^9.1.7",
|
|
64
|
+
"prettier": "^3.6.2",
|
|
65
|
+
"react": "^18",
|
|
66
|
+
"react-dom": "^18",
|
|
67
|
+
"react-router-dom": "^6.30.2",
|
|
68
|
+
"styled-components": "^6.1.19",
|
|
69
|
+
"typescript": "^5.9.3"
|
|
70
|
+
},
|
|
71
|
+
"peerDependencies": {
|
|
72
|
+
"@strapi/sdk-plugin": "^5.3.2",
|
|
73
|
+
"@strapi/strapi": "^5.31.0",
|
|
74
|
+
"react": "^18.3.1",
|
|
75
|
+
"react-dom": "^18.3.1",
|
|
76
|
+
"react-router-dom": "^6.30.2",
|
|
77
|
+
"styled-components": "^6.1.19"
|
|
78
|
+
},
|
|
79
|
+
"strapi": {
|
|
80
|
+
"kind": "plugin",
|
|
81
|
+
"name": "strapi-content-generator-gemini",
|
|
82
|
+
"displayName": "Content generator Gemini AI",
|
|
83
|
+
"description": "Plugin to generate content with Gemini AI"
|
|
84
|
+
},
|
|
85
|
+
"name": "@interware/content-generator",
|
|
86
|
+
"description": "Plugin to generate content with Gemini AI",
|
|
87
|
+
"license": "MIT",
|
|
88
|
+
"author": "Israel López Tiscareño <63254555+israellopeztiscareno@users.noreply.github.com>",
|
|
89
|
+
"repository": {
|
|
90
|
+
"type": "git",
|
|
91
|
+
"url": "git+https://github.com/InterWareMexico/content-generator.git"
|
|
92
|
+
},
|
|
93
|
+
"config": {
|
|
94
|
+
"commitizen": {
|
|
95
|
+
"path": "./node_modules/cz-conventional-changelog"
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|