@interware/content-generator 0.1.4 → 0.2.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/dist/_chunks/{App-KtJGFVFQ.mjs → App-Cbkccs2K.mjs} +552 -55
- package/dist/_chunks/{App-Bt1yydY9.js → App-DCuBRwX8.js} +545 -48
- package/dist/_chunks/{Settings-CFag78zw.mjs → Settings-B60QGKK4.mjs} +48 -4
- package/dist/_chunks/{Settings-BbIpY74m.js → Settings-DuGbtyWC.js} +48 -4
- package/dist/_chunks/{getTranslation-BcuPOeW7.mjs → getTranslation-B97xbmEl.mjs} +1 -1
- package/dist/_chunks/{getTranslation-DA3AxQPb.js → getTranslation-CacX7ZX5.js} +1 -1
- package/dist/_chunks/{index-B6aEv34B.mjs → index-B2RuvYul.mjs} +2 -2
- package/dist/_chunks/{index-JZA3FSFH.js → index-BVGbP3E-.js} +2 -2
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/admin/src/components/Navigation.d.ts +2 -0
- package/dist/admin/src/components/generate-content/Form.d.ts +1 -1
- package/dist/admin/src/components/generate-images/Image.d.ts +5 -0
- package/dist/admin/src/components/generate-images/Images.d.ts +2 -0
- package/dist/admin/src/components/generate-images/Modal.d.ts +9 -0
- package/dist/admin/src/components/home/table.d.ts +2 -1
- package/dist/admin/src/containers/generate-images/index.d.ts +2 -0
- package/dist/admin/src/containers/settings/index.d.ts +2 -0
- package/dist/admin/src/hooks/generate-images/useImages.d.ts +11 -0
- package/dist/admin/src/lib/use-cases/facebook/index.d.ts +5 -0
- package/dist/admin/src/lib/use-cases/images/index.d.ts +6 -0
- package/dist/admin/src/pages/GenerateImages.d.ts +2 -0
- package/dist/server/index.js +309 -147
- package/dist/server/index.mjs +309 -127
- package/dist/server/src/controllers/controller.d.ts +2 -0
- package/dist/server/src/controllers/index.d.ts +2 -0
- package/dist/server/src/index.d.ts +56 -1
- package/dist/server/src/services/index.d.ts +54 -1
- package/dist/server/src/services/service.d.ts +54 -1
- package/package.json +1 -2
|
@@ -19,6 +19,8 @@ declare const _default: {
|
|
|
19
19
|
getArticles(ctx: any): Promise<unknown>;
|
|
20
20
|
getCategories(ctx: any): Promise<unknown>;
|
|
21
21
|
getUsers(ctx: any): Promise<unknown>;
|
|
22
|
+
getImages(ctx: any): Promise<unknown>;
|
|
23
|
+
deleteImage(ctx: any): Promise<unknown>;
|
|
22
24
|
generateArticle(ctx: any): Promise<void>;
|
|
23
25
|
generateImageForArticle(ctx: any): Promise<void>;
|
|
24
26
|
publishToLinkedIn(ctx: any): Promise<void>;
|
|
@@ -71,6 +73,7 @@ declare const _default: {
|
|
|
71
73
|
content?: string;
|
|
72
74
|
createdAt?: import("@strapi/types/dist/schema/attribute").DateTimeValue;
|
|
73
75
|
descripcion?: string;
|
|
76
|
+
facebookPostId?: string;
|
|
74
77
|
fecha_publicacion?: import("@strapi/types/dist/schema/attribute").DateValue;
|
|
75
78
|
linkedInPostId?: string;
|
|
76
79
|
minute_read?: number;
|
|
@@ -99,6 +102,7 @@ declare const _default: {
|
|
|
99
102
|
publishedAt?: import("@strapi/types/dist/schema/attribute").DateTimeValue;
|
|
100
103
|
updatedAt?: import("@strapi/types/dist/schema/attribute").DateTimeValue;
|
|
101
104
|
apellidos?: string;
|
|
105
|
+
bio?: string;
|
|
102
106
|
blocked?: boolean;
|
|
103
107
|
confirmationToken?: string;
|
|
104
108
|
confirmed?: boolean;
|
|
@@ -113,6 +117,55 @@ declare const _default: {
|
|
|
113
117
|
sfid?: string;
|
|
114
118
|
username?: string;
|
|
115
119
|
}[]>;
|
|
120
|
+
getImagenes(): Promise<{
|
|
121
|
+
id: import("@strapi/types/dist/data").ID;
|
|
122
|
+
documentId: string;
|
|
123
|
+
locale?: string;
|
|
124
|
+
createdAt?: import("@strapi/types/dist/schema/attribute").DateTimeValue;
|
|
125
|
+
publishedAt?: import("@strapi/types/dist/schema/attribute").DateTimeValue;
|
|
126
|
+
updatedAt?: import("@strapi/types/dist/schema/attribute").DateTimeValue;
|
|
127
|
+
provider?: string;
|
|
128
|
+
alternativeText?: string;
|
|
129
|
+
caption?: string;
|
|
130
|
+
ext?: string;
|
|
131
|
+
folderPath?: string;
|
|
132
|
+
formats?: import("@strapi/types/dist/utils").JSONValue;
|
|
133
|
+
hash?: string;
|
|
134
|
+
height?: number;
|
|
135
|
+
mime?: string;
|
|
136
|
+
name?: string;
|
|
137
|
+
previewUrl?: string;
|
|
138
|
+
provider_metadata?: import("@strapi/types/dist/utils").JSONValue;
|
|
139
|
+
size?: number;
|
|
140
|
+
url?: string;
|
|
141
|
+
width?: number;
|
|
142
|
+
}[]>;
|
|
143
|
+
eliminarImagen(sanitizedQueryParams: any): Promise<{
|
|
144
|
+
documentId: string;
|
|
145
|
+
entries: {
|
|
146
|
+
id: import("@strapi/types/dist/data").ID;
|
|
147
|
+
documentId: string;
|
|
148
|
+
locale?: string;
|
|
149
|
+
createdAt?: import("@strapi/types/dist/schema/attribute").DateTimeValue;
|
|
150
|
+
publishedAt?: import("@strapi/types/dist/schema/attribute").DateTimeValue;
|
|
151
|
+
updatedAt?: import("@strapi/types/dist/schema/attribute").DateTimeValue;
|
|
152
|
+
provider?: string;
|
|
153
|
+
alternativeText?: string;
|
|
154
|
+
caption?: string;
|
|
155
|
+
ext?: string;
|
|
156
|
+
folderPath?: string;
|
|
157
|
+
formats?: import("@strapi/types/dist/utils").JSONValue;
|
|
158
|
+
hash?: string;
|
|
159
|
+
height?: number;
|
|
160
|
+
mime?: string;
|
|
161
|
+
name?: string;
|
|
162
|
+
previewUrl?: string;
|
|
163
|
+
provider_metadata?: import("@strapi/types/dist/utils").JSONValue;
|
|
164
|
+
size?: number;
|
|
165
|
+
url?: string;
|
|
166
|
+
width?: number;
|
|
167
|
+
}[];
|
|
168
|
+
}>;
|
|
116
169
|
generateArticle(ctx: any): Promise<{
|
|
117
170
|
id: import("@strapi/types/dist/data").ID;
|
|
118
171
|
documentId: string;
|
|
@@ -120,6 +173,7 @@ declare const _default: {
|
|
|
120
173
|
content?: string;
|
|
121
174
|
createdAt?: import("@strapi/types/dist/schema/attribute").DateTimeValue;
|
|
122
175
|
descripcion?: string;
|
|
176
|
+
facebookPostId?: string;
|
|
123
177
|
fecha_publicacion?: import("@strapi/types/dist/schema/attribute").DateValue;
|
|
124
178
|
linkedInPostId?: string;
|
|
125
179
|
minute_read?: number;
|
|
@@ -132,12 +186,13 @@ declare const _default: {
|
|
|
132
186
|
message: string;
|
|
133
187
|
image: any;
|
|
134
188
|
}>;
|
|
135
|
-
publishToLinkedIn(ctx: any): Promise<{
|
|
189
|
+
publishToLinkedIn(ctx: any): Promise<true | {
|
|
136
190
|
message: string;
|
|
137
191
|
linkedinResponse: any;
|
|
138
192
|
}>;
|
|
139
193
|
publishToFacebook(ctx: any): Promise<{
|
|
140
194
|
message: string;
|
|
195
|
+
facebookResponse: any;
|
|
141
196
|
}>;
|
|
142
197
|
};
|
|
143
198
|
};
|
|
@@ -10,6 +10,7 @@ declare const _default: {
|
|
|
10
10
|
content?: string;
|
|
11
11
|
createdAt?: import("@strapi/types/dist/schema/attribute").DateTimeValue;
|
|
12
12
|
descripcion?: string;
|
|
13
|
+
facebookPostId?: string;
|
|
13
14
|
fecha_publicacion?: import("@strapi/types/dist/schema/attribute").DateValue;
|
|
14
15
|
linkedInPostId?: string;
|
|
15
16
|
minute_read?: number;
|
|
@@ -38,6 +39,7 @@ declare const _default: {
|
|
|
38
39
|
publishedAt?: import("@strapi/types/dist/schema/attribute").DateTimeValue;
|
|
39
40
|
updatedAt?: import("@strapi/types/dist/schema/attribute").DateTimeValue;
|
|
40
41
|
apellidos?: string;
|
|
42
|
+
bio?: string;
|
|
41
43
|
blocked?: boolean;
|
|
42
44
|
confirmationToken?: string;
|
|
43
45
|
confirmed?: boolean;
|
|
@@ -52,6 +54,55 @@ declare const _default: {
|
|
|
52
54
|
sfid?: string;
|
|
53
55
|
username?: string;
|
|
54
56
|
}[]>;
|
|
57
|
+
getImagenes(): Promise<{
|
|
58
|
+
id: import("@strapi/types/dist/data").ID;
|
|
59
|
+
documentId: string;
|
|
60
|
+
locale?: string;
|
|
61
|
+
createdAt?: import("@strapi/types/dist/schema/attribute").DateTimeValue;
|
|
62
|
+
publishedAt?: import("@strapi/types/dist/schema/attribute").DateTimeValue;
|
|
63
|
+
updatedAt?: import("@strapi/types/dist/schema/attribute").DateTimeValue;
|
|
64
|
+
provider?: string;
|
|
65
|
+
alternativeText?: string;
|
|
66
|
+
caption?: string;
|
|
67
|
+
ext?: string;
|
|
68
|
+
folderPath?: string;
|
|
69
|
+
formats?: import("@strapi/types/dist/utils").JSONValue;
|
|
70
|
+
hash?: string;
|
|
71
|
+
height?: number;
|
|
72
|
+
mime?: string;
|
|
73
|
+
name?: string;
|
|
74
|
+
previewUrl?: string;
|
|
75
|
+
provider_metadata?: import("@strapi/types/dist/utils").JSONValue;
|
|
76
|
+
size?: number;
|
|
77
|
+
url?: string;
|
|
78
|
+
width?: number;
|
|
79
|
+
}[]>;
|
|
80
|
+
eliminarImagen(sanitizedQueryParams: any): Promise<{
|
|
81
|
+
documentId: string;
|
|
82
|
+
entries: {
|
|
83
|
+
id: import("@strapi/types/dist/data").ID;
|
|
84
|
+
documentId: string;
|
|
85
|
+
locale?: string;
|
|
86
|
+
createdAt?: import("@strapi/types/dist/schema/attribute").DateTimeValue;
|
|
87
|
+
publishedAt?: import("@strapi/types/dist/schema/attribute").DateTimeValue;
|
|
88
|
+
updatedAt?: import("@strapi/types/dist/schema/attribute").DateTimeValue;
|
|
89
|
+
provider?: string;
|
|
90
|
+
alternativeText?: string;
|
|
91
|
+
caption?: string;
|
|
92
|
+
ext?: string;
|
|
93
|
+
folderPath?: string;
|
|
94
|
+
formats?: import("@strapi/types/dist/utils").JSONValue;
|
|
95
|
+
hash?: string;
|
|
96
|
+
height?: number;
|
|
97
|
+
mime?: string;
|
|
98
|
+
name?: string;
|
|
99
|
+
previewUrl?: string;
|
|
100
|
+
provider_metadata?: import("@strapi/types/dist/utils").JSONValue;
|
|
101
|
+
size?: number;
|
|
102
|
+
url?: string;
|
|
103
|
+
width?: number;
|
|
104
|
+
}[];
|
|
105
|
+
}>;
|
|
55
106
|
generateArticle(ctx: any): Promise<{
|
|
56
107
|
id: import("@strapi/types/dist/data").ID;
|
|
57
108
|
documentId: string;
|
|
@@ -59,6 +110,7 @@ declare const _default: {
|
|
|
59
110
|
content?: string;
|
|
60
111
|
createdAt?: import("@strapi/types/dist/schema/attribute").DateTimeValue;
|
|
61
112
|
descripcion?: string;
|
|
113
|
+
facebookPostId?: string;
|
|
62
114
|
fecha_publicacion?: import("@strapi/types/dist/schema/attribute").DateValue;
|
|
63
115
|
linkedInPostId?: string;
|
|
64
116
|
minute_read?: number;
|
|
@@ -71,12 +123,13 @@ declare const _default: {
|
|
|
71
123
|
message: string;
|
|
72
124
|
image: any;
|
|
73
125
|
}>;
|
|
74
|
-
publishToLinkedIn(ctx: any): Promise<{
|
|
126
|
+
publishToLinkedIn(ctx: any): Promise<true | {
|
|
75
127
|
message: string;
|
|
76
128
|
linkedinResponse: any;
|
|
77
129
|
}>;
|
|
78
130
|
publishToFacebook(ctx: any): Promise<{
|
|
79
131
|
message: string;
|
|
132
|
+
facebookResponse: any;
|
|
80
133
|
}>;
|
|
81
134
|
};
|
|
82
135
|
};
|
|
@@ -14,6 +14,7 @@ declare const service: ({ strapi }: {
|
|
|
14
14
|
content?: string;
|
|
15
15
|
createdAt?: import("@strapi/types/dist/schema/attribute").DateTimeValue;
|
|
16
16
|
descripcion?: string;
|
|
17
|
+
facebookPostId?: string;
|
|
17
18
|
fecha_publicacion?: import("@strapi/types/dist/schema/attribute").DateValue;
|
|
18
19
|
linkedInPostId?: string;
|
|
19
20
|
minute_read?: number;
|
|
@@ -42,6 +43,7 @@ declare const service: ({ strapi }: {
|
|
|
42
43
|
publishedAt?: import("@strapi/types/dist/schema/attribute").DateTimeValue;
|
|
43
44
|
updatedAt?: import("@strapi/types/dist/schema/attribute").DateTimeValue;
|
|
44
45
|
apellidos?: string;
|
|
46
|
+
bio?: string;
|
|
45
47
|
blocked?: boolean;
|
|
46
48
|
confirmationToken?: string;
|
|
47
49
|
confirmed?: boolean;
|
|
@@ -56,6 +58,55 @@ declare const service: ({ strapi }: {
|
|
|
56
58
|
sfid?: string;
|
|
57
59
|
username?: string;
|
|
58
60
|
}[]>;
|
|
61
|
+
getImagenes(): Promise<{
|
|
62
|
+
id: import("@strapi/types/dist/data").ID;
|
|
63
|
+
documentId: string;
|
|
64
|
+
locale?: string;
|
|
65
|
+
createdAt?: import("@strapi/types/dist/schema/attribute").DateTimeValue;
|
|
66
|
+
publishedAt?: import("@strapi/types/dist/schema/attribute").DateTimeValue;
|
|
67
|
+
updatedAt?: import("@strapi/types/dist/schema/attribute").DateTimeValue;
|
|
68
|
+
provider?: string;
|
|
69
|
+
alternativeText?: string;
|
|
70
|
+
caption?: string;
|
|
71
|
+
ext?: string;
|
|
72
|
+
folderPath?: string;
|
|
73
|
+
formats?: import("@strapi/types/dist/utils").JSONValue;
|
|
74
|
+
hash?: string;
|
|
75
|
+
height?: number;
|
|
76
|
+
mime?: string;
|
|
77
|
+
name?: string;
|
|
78
|
+
previewUrl?: string;
|
|
79
|
+
provider_metadata?: import("@strapi/types/dist/utils").JSONValue;
|
|
80
|
+
size?: number;
|
|
81
|
+
url?: string;
|
|
82
|
+
width?: number;
|
|
83
|
+
}[]>;
|
|
84
|
+
eliminarImagen(sanitizedQueryParams: any): Promise<{
|
|
85
|
+
documentId: string;
|
|
86
|
+
entries: {
|
|
87
|
+
id: import("@strapi/types/dist/data").ID;
|
|
88
|
+
documentId: string;
|
|
89
|
+
locale?: string;
|
|
90
|
+
createdAt?: import("@strapi/types/dist/schema/attribute").DateTimeValue;
|
|
91
|
+
publishedAt?: import("@strapi/types/dist/schema/attribute").DateTimeValue;
|
|
92
|
+
updatedAt?: import("@strapi/types/dist/schema/attribute").DateTimeValue;
|
|
93
|
+
provider?: string;
|
|
94
|
+
alternativeText?: string;
|
|
95
|
+
caption?: string;
|
|
96
|
+
ext?: string;
|
|
97
|
+
folderPath?: string;
|
|
98
|
+
formats?: import("@strapi/types/dist/utils").JSONValue;
|
|
99
|
+
hash?: string;
|
|
100
|
+
height?: number;
|
|
101
|
+
mime?: string;
|
|
102
|
+
name?: string;
|
|
103
|
+
previewUrl?: string;
|
|
104
|
+
provider_metadata?: import("@strapi/types/dist/utils").JSONValue;
|
|
105
|
+
size?: number;
|
|
106
|
+
url?: string;
|
|
107
|
+
width?: number;
|
|
108
|
+
}[];
|
|
109
|
+
}>;
|
|
59
110
|
generateArticle(ctx: any): Promise<{
|
|
60
111
|
id: import("@strapi/types/dist/data").ID;
|
|
61
112
|
documentId: string;
|
|
@@ -63,6 +114,7 @@ declare const service: ({ strapi }: {
|
|
|
63
114
|
content?: string;
|
|
64
115
|
createdAt?: import("@strapi/types/dist/schema/attribute").DateTimeValue;
|
|
65
116
|
descripcion?: string;
|
|
117
|
+
facebookPostId?: string;
|
|
66
118
|
fecha_publicacion?: import("@strapi/types/dist/schema/attribute").DateValue;
|
|
67
119
|
linkedInPostId?: string;
|
|
68
120
|
minute_read?: number;
|
|
@@ -75,12 +127,13 @@ declare const service: ({ strapi }: {
|
|
|
75
127
|
message: string;
|
|
76
128
|
image: any;
|
|
77
129
|
}>;
|
|
78
|
-
publishToLinkedIn(ctx: any): Promise<{
|
|
130
|
+
publishToLinkedIn(ctx: any): Promise<true | {
|
|
79
131
|
message: string;
|
|
80
132
|
linkedinResponse: any;
|
|
81
133
|
}>;
|
|
82
134
|
publishToFacebook(ctx: any): Promise<{
|
|
83
135
|
message: string;
|
|
136
|
+
facebookResponse: any;
|
|
84
137
|
}>;
|
|
85
138
|
};
|
|
86
139
|
export default service;
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.1
|
|
2
|
+
"version": "0.2.1",
|
|
3
3
|
"keywords": [],
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"publishConfig": {
|
|
@@ -46,7 +46,6 @@
|
|
|
46
46
|
"formik": "^2.4.9",
|
|
47
47
|
"react-intl": "^7.1.14",
|
|
48
48
|
"react-redux": "^8.1.3",
|
|
49
|
-
"slugify": "^1.6.6",
|
|
50
49
|
"yup": "^1.7.1"
|
|
51
50
|
},
|
|
52
51
|
"devDependencies": {
|