@strapi/email 0.0.0-next.df0d99415fc543d9747f3946fd7d1a4c39052b95 → 0.0.0-next.e1a19b9e52cdcb526515883c8289522a64c9871a
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/server/routes/content-api.js +16 -18
- package/dist/server/routes/content-api.js.map +1 -1
- package/dist/server/routes/content-api.mjs +16 -18
- package/dist/server/routes/content-api.mjs.map +1 -1
- package/dist/server/routes/index.mjs +2 -2
- package/dist/server/src/index.d.ts +4 -1
- package/dist/server/src/index.d.ts.map +1 -1
- package/dist/server/src/routes/content-api.d.ts +5 -2
- package/dist/server/src/routes/content-api.d.ts.map +1 -1
- package/dist/server/src/routes/index.d.ts +4 -1
- package/dist/server/src/routes/index.d.ts.map +1 -1
- package/package.json +7 -7
|
@@ -1,26 +1,24 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var utils = require('@strapi/utils');
|
|
3
4
|
var email = require('./validation/email.js');
|
|
4
5
|
|
|
5
|
-
|
|
6
|
+
const createRoutes = utils.createContentApiRoutesFactory(()=>{
|
|
6
7
|
const validator = new email.EmailRouteValidator(strapi);
|
|
7
|
-
return
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
]
|
|
22
|
-
};
|
|
8
|
+
return [
|
|
9
|
+
{
|
|
10
|
+
method: 'POST',
|
|
11
|
+
path: '/',
|
|
12
|
+
handler: 'email.send',
|
|
13
|
+
request: {
|
|
14
|
+
body: {
|
|
15
|
+
'application/json': validator.sendEmailInput
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
response: validator.emailResponse
|
|
19
|
+
}
|
|
20
|
+
];
|
|
23
21
|
});
|
|
24
22
|
|
|
25
|
-
module.exports =
|
|
23
|
+
module.exports = createRoutes;
|
|
26
24
|
//# sourceMappingURL=content-api.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content-api.js","sources":["../../../server/src/routes/content-api.ts"],"sourcesContent":["import type { Core } from '@strapi/types';\nimport { EmailRouteValidator } from './validation';\n\
|
|
1
|
+
{"version":3,"file":"content-api.js","sources":["../../../server/src/routes/content-api.ts"],"sourcesContent":["import type { Core } from '@strapi/types';\nimport { createContentApiRoutesFactory } from '@strapi/utils';\nimport { EmailRouteValidator } from './validation';\n\nconst createRoutes = createContentApiRoutesFactory((): Core.RouterInput['routes'] => {\n const validator = new EmailRouteValidator(strapi);\n\n return [\n {\n method: 'POST',\n path: '/',\n handler: 'email.send',\n request: {\n body: { 'application/json': validator.sendEmailInput },\n },\n response: validator.emailResponse,\n },\n ];\n});\n\nexport default createRoutes;\n"],"names":["createRoutes","createContentApiRoutesFactory","validator","EmailRouteValidator","strapi","method","path","handler","request","body","sendEmailInput","response","emailResponse"],"mappings":";;;;;AAIA,MAAMA,eAAeC,mCAA8B,CAAA,IAAA;IACjD,MAAMC,SAAAA,GAAY,IAAIC,yBAAoBC,CAAAA,MAAAA,CAAAA;IAE1C,OAAO;AACL,QAAA;YACEC,MAAQ,EAAA,MAAA;YACRC,IAAM,EAAA,GAAA;YACNC,OAAS,EAAA,YAAA;YACTC,OAAS,EAAA;gBACPC,IAAM,EAAA;AAAE,oBAAA,kBAAA,EAAoBP,UAAUQ;AAAe;AACvD,aAAA;AACAC,YAAAA,QAAAA,EAAUT,UAAUU;AACtB;AACD,KAAA;AACH,CAAA;;;;"}
|
|
@@ -1,24 +1,22 @@
|
|
|
1
|
+
import { createContentApiRoutesFactory } from '@strapi/utils';
|
|
1
2
|
import { EmailRouteValidator } from './validation/email.mjs';
|
|
2
3
|
|
|
3
|
-
|
|
4
|
+
const createRoutes = createContentApiRoutesFactory(()=>{
|
|
4
5
|
const validator = new EmailRouteValidator(strapi);
|
|
5
|
-
return
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
]
|
|
20
|
-
};
|
|
6
|
+
return [
|
|
7
|
+
{
|
|
8
|
+
method: 'POST',
|
|
9
|
+
path: '/',
|
|
10
|
+
handler: 'email.send',
|
|
11
|
+
request: {
|
|
12
|
+
body: {
|
|
13
|
+
'application/json': validator.sendEmailInput
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
response: validator.emailResponse
|
|
17
|
+
}
|
|
18
|
+
];
|
|
21
19
|
});
|
|
22
20
|
|
|
23
|
-
export {
|
|
21
|
+
export { createRoutes as default };
|
|
24
22
|
//# sourceMappingURL=content-api.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content-api.mjs","sources":["../../../server/src/routes/content-api.ts"],"sourcesContent":["import type { Core } from '@strapi/types';\nimport { EmailRouteValidator } from './validation';\n\
|
|
1
|
+
{"version":3,"file":"content-api.mjs","sources":["../../../server/src/routes/content-api.ts"],"sourcesContent":["import type { Core } from '@strapi/types';\nimport { createContentApiRoutesFactory } from '@strapi/utils';\nimport { EmailRouteValidator } from './validation';\n\nconst createRoutes = createContentApiRoutesFactory((): Core.RouterInput['routes'] => {\n const validator = new EmailRouteValidator(strapi);\n\n return [\n {\n method: 'POST',\n path: '/',\n handler: 'email.send',\n request: {\n body: { 'application/json': validator.sendEmailInput },\n },\n response: validator.emailResponse,\n },\n ];\n});\n\nexport default createRoutes;\n"],"names":["createRoutes","createContentApiRoutesFactory","validator","EmailRouteValidator","strapi","method","path","handler","request","body","sendEmailInput","response","emailResponse"],"mappings":";;;AAIA,MAAMA,eAAeC,6BAA8B,CAAA,IAAA;IACjD,MAAMC,SAAAA,GAAY,IAAIC,mBAAoBC,CAAAA,MAAAA,CAAAA;IAE1C,OAAO;AACL,QAAA;YACEC,MAAQ,EAAA,MAAA;YACRC,IAAM,EAAA,GAAA;YACNC,OAAS,EAAA,YAAA;YACTC,OAAS,EAAA;gBACPC,IAAM,EAAA;AAAE,oBAAA,kBAAA,EAAoBP,UAAUQ;AAAe;AACvD,aAAA;AACAC,YAAAA,QAAAA,EAAUT,UAAUU;AACtB;AACD,KAAA;AACH,CAAA;;;;"}
|
|
@@ -27,7 +27,10 @@ declare const _default: {
|
|
|
27
27
|
};
|
|
28
28
|
}[];
|
|
29
29
|
};
|
|
30
|
-
'content-api': () =>
|
|
30
|
+
'content-api': () => {
|
|
31
|
+
type: "content-api";
|
|
32
|
+
routes: import("@strapi/types/dist/core").RouteInput[];
|
|
33
|
+
};
|
|
31
34
|
};
|
|
32
35
|
controllers: {
|
|
33
36
|
email: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../server/src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../server/src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,wBAOE"}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import type { Core } from '@strapi/types';
|
|
2
|
-
declare const
|
|
3
|
-
|
|
2
|
+
declare const createRoutes: () => {
|
|
3
|
+
type: "content-api";
|
|
4
|
+
routes: Core.RouteInput[];
|
|
5
|
+
};
|
|
6
|
+
export default createRoutes;
|
|
4
7
|
//# sourceMappingURL=content-api.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content-api.d.ts","sourceRoot":"","sources":["../../../../server/src/routes/content-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"content-api.d.ts","sourceRoot":"","sources":["../../../../server/src/routes/content-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAI1C,QAAA,MAAM,YAAY;;;CAchB,CAAC;AAEH,eAAe,YAAY,CAAC"}
|
|
@@ -15,6 +15,9 @@ export declare const routes: {
|
|
|
15
15
|
};
|
|
16
16
|
}[];
|
|
17
17
|
};
|
|
18
|
-
'content-api': () =>
|
|
18
|
+
'content-api': () => {
|
|
19
|
+
type: "content-api";
|
|
20
|
+
routes: import("@strapi/types/dist/core").RouteInput[];
|
|
21
|
+
};
|
|
19
22
|
};
|
|
20
23
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../server/src/routes/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../server/src/routes/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;CAGlB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@strapi/email",
|
|
3
|
-
"version": "0.0.0-next.
|
|
3
|
+
"version": "0.0.0-next.e1a19b9e52cdcb526515883c8289522a64c9871a",
|
|
4
4
|
"description": "Easily configure your Strapi application to send emails.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -56,10 +56,10 @@
|
|
|
56
56
|
"watch": "run -T rollup -c -w"
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"@strapi/design-system": "2.0.0-rc.
|
|
60
|
-
"@strapi/icons": "2.0.0-rc.
|
|
61
|
-
"@strapi/provider-email-sendmail": "0.0.0-next.
|
|
62
|
-
"@strapi/utils": "0.0.0-next.
|
|
59
|
+
"@strapi/design-system": "2.0.0-rc.30",
|
|
60
|
+
"@strapi/icons": "2.0.0-rc.30",
|
|
61
|
+
"@strapi/provider-email-sendmail": "0.0.0-next.e1a19b9e52cdcb526515883c8289522a64c9871a",
|
|
62
|
+
"@strapi/utils": "0.0.0-next.e1a19b9e52cdcb526515883c8289522a64c9871a",
|
|
63
63
|
"koa2-ratelimit": "^1.1.3",
|
|
64
64
|
"lodash": "4.17.21",
|
|
65
65
|
"react-intl": "6.6.2",
|
|
@@ -68,8 +68,8 @@
|
|
|
68
68
|
"zod": "3.25.67"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
|
-
"@strapi/admin": "0.0.0-next.
|
|
72
|
-
"@strapi/types": "0.0.0-next.
|
|
71
|
+
"@strapi/admin": "0.0.0-next.e1a19b9e52cdcb526515883c8289522a64c9871a",
|
|
72
|
+
"@strapi/types": "0.0.0-next.e1a19b9e52cdcb526515883c8289522a64c9871a",
|
|
73
73
|
"@testing-library/react": "15.0.7",
|
|
74
74
|
"@types/koa": "2.13.4",
|
|
75
75
|
"@types/lodash": "^4.14.191",
|