medusa-plugin-automation 0.1.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/.medusa/server/medusa-config.d.ts +1 -0
- package/.medusa/server/medusa-config.js +23 -0
- package/.medusa/server/src/admin/index.js +9920 -0
- package/.medusa/server/src/admin/index.mjs +9918 -0
- package/.medusa/server/src/admin/lib/medusa-events.d.ts +16 -0
- package/.medusa/server/src/admin/lib/medusa-events.js +131 -0
- package/.medusa/server/src/api/admin/automations/[id]/actions/[actionId]/deliveries/retry/route.d.ts +3 -0
- package/.medusa/server/src/api/admin/automations/[id]/actions/[actionId]/deliveries/retry/route.js +56 -0
- package/.medusa/server/src/api/admin/automations/[id]/actions/[actionId]/deliveries/route.d.ts +2 -0
- package/.medusa/server/src/api/admin/automations/[id]/actions/[actionId]/deliveries/route.js +26 -0
- package/.medusa/server/src/api/admin/automations/[id]/actions/[actionId]/query/route.d.ts +5 -0
- package/.medusa/server/src/api/admin/automations/[id]/actions/[actionId]/query/route.js +46 -0
- package/.medusa/server/src/api/admin/automations/[id]/actions/[actionId]/route.d.ts +5 -0
- package/.medusa/server/src/api/admin/automations/[id]/actions/[actionId]/route.js +37 -0
- package/.medusa/server/src/api/admin/automations/[id]/actions/route.d.ts +5 -0
- package/.medusa/server/src/api/admin/automations/[id]/actions/route.js +44 -0
- package/.medusa/server/src/api/admin/automations/[id]/receipts/route.d.ts +2 -0
- package/.medusa/server/src/api/admin/automations/[id]/receipts/route.js +17 -0
- package/.medusa/server/src/api/admin/automations/[id]/route.d.ts +5 -0
- package/.medusa/server/src/api/admin/automations/[id]/route.js +37 -0
- package/.medusa/server/src/api/admin/automations/route.d.ts +5 -0
- package/.medusa/server/src/api/admin/automations/route.js +36 -0
- package/.medusa/server/src/api/admin/automations/secrets/[id]/route.d.ts +2 -0
- package/.medusa/server/src/api/admin/automations/secrets/[id]/route.js +13 -0
- package/.medusa/server/src/api/admin/automations/secrets/route.d.ts +4 -0
- package/.medusa/server/src/api/admin/automations/secrets/route.js +38 -0
- package/.medusa/server/src/api/middlewares.d.ts +2 -0
- package/.medusa/server/src/api/middlewares.js +169 -0
- package/.medusa/server/src/api/validators.d.ts +470 -0
- package/.medusa/server/src/api/validators.js +123 -0
- package/.medusa/server/src/api/webhooks/[id]/route.d.ts +2 -0
- package/.medusa/server/src/api/webhooks/[id]/route.js +78 -0
- package/.medusa/server/src/lib/dispatch.d.ts +43 -0
- package/.medusa/server/src/lib/dispatch.js +400 -0
- package/.medusa/server/src/modules/automation/index.d.ts +92 -0
- package/.medusa/server/src/modules/automation/index.js +25 -0
- package/.medusa/server/src/modules/automation/migrations/Migration20260409171930.d.ts +5 -0
- package/.medusa/server/src/modules/automation/migrations/Migration20260409171930.js +47 -0
- package/.medusa/server/src/modules/automation/models/automation-action.d.ts +75 -0
- package/.medusa/server/src/modules/automation/models/automation-action.js +41 -0
- package/.medusa/server/src/modules/automation/models/automation-delivery.d.ts +57 -0
- package/.medusa/server/src/modules/automation/models/automation-delivery.js +23 -0
- package/.medusa/server/src/modules/automation/models/automation-query.d.ts +52 -0
- package/.medusa/server/src/modules/automation/models/automation-query.js +14 -0
- package/.medusa/server/src/modules/automation/models/automation-receipt.d.ts +53 -0
- package/.medusa/server/src/modules/automation/models/automation-receipt.js +29 -0
- package/.medusa/server/src/modules/automation/models/automation-secret.d.ts +5 -0
- package/.medusa/server/src/modules/automation/models/automation-secret.js +10 -0
- package/.medusa/server/src/modules/automation/models/automation-trigger.d.ts +56 -0
- package/.medusa/server/src/modules/automation/models/automation-trigger.js +27 -0
- package/.medusa/server/src/modules/automation/service.d.ts +274 -0
- package/.medusa/server/src/modules/automation/service.js +21 -0
- package/.medusa/server/src/modules/automation/types.d.ts +13 -0
- package/.medusa/server/src/modules/automation/types.js +3 -0
- package/.medusa/server/src/subscribers/automation-dispatcher.d.ts +3 -0
- package/.medusa/server/src/subscribers/automation-dispatcher.js +51 -0
- package/LICENSE.md +73 -0
- package/README.md +53 -0
- package/package.json +91 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const utils_1 = require("@medusajs/framework/utils");
|
|
4
|
+
(0, utils_1.loadEnv)(process.env.NODE_ENV || 'development', process.cwd());
|
|
5
|
+
module.exports = (0, utils_1.defineConfig)({
|
|
6
|
+
projectConfig: {
|
|
7
|
+
redisUrl: process.env.REDIS_URL,
|
|
8
|
+
databaseUrl: process.env.DATABASE_URL,
|
|
9
|
+
http: {
|
|
10
|
+
storeCors: process.env.STORE_CORS || 'http://localhost:5173',
|
|
11
|
+
adminCors: process.env.ADMIN_CORS || 'http://localhost:5173,http://localhost:9000',
|
|
12
|
+
authCors: process.env.AUTH_CORS || 'http://localhost:5173,http://localhost:9000',
|
|
13
|
+
jwtSecret: process.env.JWT_SECRET || 'supersecret',
|
|
14
|
+
cookieSecret: process.env.COOKIE_SECRET || 'supersecret'
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
modules: [
|
|
18
|
+
{
|
|
19
|
+
resolve: './src/modules/automation'
|
|
20
|
+
}
|
|
21
|
+
]
|
|
22
|
+
});
|
|
23
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWVkdXNhLWNvbmZpZy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL21lZHVzYS1jb25maWcudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxxREFBaUU7QUFFakUsSUFBQSxlQUFPLEVBQUMsT0FBTyxDQUFDLEdBQUcsQ0FBQyxRQUFRLElBQUksYUFBYSxFQUFFLE9BQU8sQ0FBQyxHQUFHLEVBQUUsQ0FBQyxDQUFBO0FBRTdELE1BQU0sQ0FBQyxPQUFPLEdBQUcsSUFBQSxvQkFBWSxFQUFDO0lBQ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