@devx-commerce/plugin-form-responses 0.0.2-beta.3 → 0.0.2-beta.30

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.
Files changed (44) hide show
  1. package/.medusa/server/src/admin/index.js +22 -0
  2. package/.medusa/server/src/admin/index.mjs +23 -0
  3. package/.medusa/server/src/api/admin/form-response/[id]/route.js +19 -1
  4. package/.medusa/server/src/api/admin/form-response/query-config.js +4 -1
  5. package/.medusa/server/src/api/admin/form-response/route.js +38 -2
  6. package/.medusa/server/src/api/admin/form-response/validators.js +2 -2
  7. package/.medusa/server/src/api/admin/newsletter-signup/query-config.js +34 -0
  8. package/.medusa/server/src/api/admin/newsletter-signup/route.js +22 -0
  9. package/.medusa/server/src/api/middlewares.js +19 -1
  10. package/.medusa/server/src/api/store/form-response/route.js +2 -2
  11. package/.medusa/server/src/api/store/form-response/validators.js +86 -10
  12. package/.medusa/server/src/api/store/newsletter-signup/index.js +3 -0
  13. package/.medusa/server/src/api/store/newsletter-signup/route.js +18 -0
  14. package/.medusa/server/src/api/store/newsletter-signup/validators.js +9 -0
  15. package/.medusa/server/src/api/store/slot-listing/index.js +3 -0
  16. package/.medusa/server/src/api/store/slot-listing/query-config.js +14 -0
  17. package/.medusa/server/src/api/store/slot-listing/route.js +120 -0
  18. package/.medusa/server/src/api/store/slot-listing/validators.js +12 -0
  19. package/.medusa/server/src/lib/helper.js +12 -0
  20. package/.medusa/server/src/modules/form-response/migrations/Migration20250818070635.js +18 -0
  21. package/.medusa/server/src/modules/form-response/migrations/Migration20250919163957.js +14 -0
  22. package/.medusa/server/src/modules/form-response/migrations/Migration20250922081216.js +16 -0
  23. package/.medusa/server/src/modules/form-response/migrations/Migration20251007111245.js +16 -0
  24. package/.medusa/server/src/modules/form-response/migrations/Migration20260205061020.js +14 -0
  25. package/.medusa/server/src/modules/form-response/migrations/Migration20260309121238.js +14 -0
  26. package/.medusa/server/src/modules/form-response/models/form-responses.js +11 -1
  27. package/.medusa/server/src/modules/form-response/models/index.js +2 -1
  28. package/.medusa/server/src/modules/form-response/models/newsletter-subscriptions.js +10 -0
  29. package/.medusa/server/src/modules/form-response/service.js +2 -1
  30. package/.medusa/server/src/workflows/form-response/steps/create-form-response-step.js +71 -3
  31. package/.medusa/server/src/workflows/form-response/types/index.js +21 -2
  32. package/.medusa/server/src/workflows/form-response/workflows/create-form-response.js +18 -1
  33. package/.medusa/server/src/workflows/form-response/workflows/delete-form-response.js +8 -1
  34. package/.medusa/server/src/workflows/form-response/workflows/update-form-response.js +8 -1
  35. package/.medusa/server/src/workflows/newsletter-signup/steps/create-newsletter-signup-step.js +14 -0
  36. package/.medusa/server/src/workflows/newsletter-signup/types/newsletter-submission.js +3 -0
  37. package/.medusa/server/src/workflows/newsletter-signup/workflows/create-newsletter-signup.js +16 -0
  38. package/README.md +2 -2
  39. package/package.json +13 -32
  40. package/.medusa/server/src/admin/vite-env.d.js +0 -1
  41. package/.medusa/server/src/api/admin/plugin/route.js +0 -7
  42. package/.medusa/server/src/api/store/plugin/route.js +0 -7
  43. package/.medusa/server/src/modules/form-response/migrations/Migration20250604165354.js +0 -15
  44. package/.medusa/server/src/modules/form-response/migrations/Migration20250605072305.js +0 -16
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devx-commerce/plugin-form-responses",
3
- "version": "0.0.2-beta.3",
3
+ "version": "0.0.2-beta.30",
4
4
  "description": "A starter for Medusa plugins.",
5
5
  "author": "Medusa (https://medusajs.com)",
6
6
  "license": "MIT",
@@ -29,27 +29,20 @@
29
29
  "release": "yarn standard-version"
30
30
  },
31
31
  "devDependencies": {
32
- "@medusajs/admin-sdk": "2.4.0",
33
- "@medusajs/cli": "2.4.0",
34
- "@medusajs/framework": "2.4.0",
35
- "@medusajs/icons": "2.4.0",
36
- "@medusajs/medusa": "2.4.0",
37
- "@medusajs/test-utils": "2.4.0",
38
- "@medusajs/ui": "4.0.4",
39
- "@mikro-orm/cli": "6.4.3",
40
- "@mikro-orm/core": "6.4.3",
41
- "@mikro-orm/knex": "6.4.3",
42
- "@mikro-orm/migrations": "6.4.3",
43
- "@mikro-orm/postgresql": "6.4.3",
44
- "@swc/core": "1.5.7",
32
+ "@medusajs/admin-sdk": "2.13.1",
33
+ "@medusajs/cli": "2.13.1",
34
+ "@medusajs/framework": "2.13.1",
35
+ "@medusajs/icons": "2.13.1",
36
+ "@medusajs/medusa": "2.13.1",
37
+ "@medusajs/test-utils": "2.13.1",
38
+ "@medusajs/ui": "4.1.1",
39
+ "@swc/core": "^1.7.28",
45
40
  "@types/node": "^20.0.0",
46
41
  "@types/react": "^18.3.2",
47
42
  "@types/react-dom": "^18.2.25",
48
- "awilix": "^8.0.1",
49
- "pg": "^8.13.0",
50
43
  "prop-types": "^15.8.1",
51
- "react": "^18.2.0",
52
- "react-dom": "^18.2.0",
44
+ "react": "^18.3.1",
45
+ "react-dom": "^18.3.1",
53
46
  "standard-version": "^9.5.0",
54
47
  "ts-node": "^10.9.2",
55
48
  "typescript": "^5.6.2",
@@ -57,20 +50,8 @@
57
50
  "yalc": "^1.0.0-pre.53"
58
51
  },
59
52
  "peerDependencies": {
60
- "@medusajs/admin-sdk": "2.4.0",
61
- "@medusajs/cli": "2.4.0",
62
- "@medusajs/framework": "2.4.0",
63
- "@medusajs/icons": "2.4.0",
64
- "@medusajs/medusa": "2.4.0",
65
- "@medusajs/test-utils": "2.4.0",
66
- "@medusajs/ui": "4.0.3",
67
- "@mikro-orm/cli": "6.4.3",
68
- "@mikro-orm/core": "6.4.3",
69
- "@mikro-orm/knex": "6.4.3",
70
- "@mikro-orm/migrations": "6.4.3",
71
- "@mikro-orm/postgresql": "6.4.3",
72
- "awilix": "^8.0.1",
73
- "pg": "^8.13.0"
53
+ "@medusajs/framework": "^2.13.1",
54
+ "@medusajs/medusa": "^2.13.1"
74
55
  },
75
56
  "engines": {
76
57
  "node": ">=20"
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GET = GET;
4
- async function GET(req, res) {
5
- res.sendStatus(200);
6
- }
7
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicm91dGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9zcmMvYXBpL2FkbWluL3BsdWdpbi9yb3V0ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUVBLGtCQUtDO0FBTE0sS0FBSyxVQUFVLEdBQUcsQ0FDdkIsR0FBa0IsRUFDbEIsR0FBbUI7SUFFbkIsR0FBRyxDQUFDLFVBQVUsQ0FBQyxHQUFHLENBQUMsQ0FBQztBQUN0QixDQUFDIn0=
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GET = GET;
4
- async function GET(req, res) {
5
- res.sendStatus(200);
6
- }
7
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicm91dGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9zcmMvYXBpL3N0b3JlL3BsdWdpbi9yb3V0ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUVBLGtCQUtDO0FBTE0sS0FBSyxVQUFVLEdBQUcsQ0FDdkIsR0FBa0IsRUFDbEIsR0FBbUI7SUFFbkIsR0FBRyxDQUFDLFVBQVUsQ0FBQyxHQUFHLENBQUMsQ0FBQztBQUN0QixDQUFDIn0=
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Migration20250604165354 = void 0;
4
- const migrations_1 = require("@mikro-orm/migrations");
5
- class Migration20250604165354 extends migrations_1.Migration {
6
- async up() {
7
- this.addSql(`create table if not exists "form_responses" ("id" text not null, "type" text check ("type" in ('VIRTUAL_CALL', 'STORE_VISIT', 'BOOK_YOUR_TRIAL', 'NEED_EXPERT_ASSISTANT', 'GET_IN_TOUCH', 'TAKE_THE_FIRST_STEP', 'ENTER_YOUR_DETAILS', 'REQUEST_A_SERVICE')) null, "full_name" text null, "mobile_number" text null, "email" text null, "city" text null, "viratual_call_date_time" text null, "store_id" text null, "message" text null, "resume_url" text null, "state" text null, "current_business_details" text null, "business_budget" text null, "created_at" timestamptz not null default now(), "updated_at" timestamptz not null default now(), "deleted_at" timestamptz null, constraint "form_responses_pkey" primary key ("id"));`);
8
- this.addSql(`CREATE INDEX IF NOT EXISTS "IDX_form_responses_deleted_at" ON "form_responses" (deleted_at) WHERE deleted_at IS NULL;`);
9
- }
10
- async down() {
11
- this.addSql(`drop table if exists "form_responses" cascade;`);
12
- }
13
- }
14
- exports.Migration20250604165354 = Migration20250604165354;
15
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTWlncmF0aW9uMjAyNTA2MDQxNjUzNTQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9zcmMvbW9kdWxlcy9mb3JtLXJlc3BvbnNlL21pZ3JhdGlvbnMvTWlncmF0aW9uMjAyNTA2MDQxNjUzNTQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsc0RBQWtEO0FBRWxELE1BQWEsdUJBQXdCLFNBQVEsc0JBQVM7SUFFM0MsS0FBSyxDQUFDLEVBQUU7UUFDZixJQUFJLENBQUMsTUFBTSxDQUFDLGd0QkFBZ3RCLENBQUMsQ0FBQztRQUM5dEIsSUFBSSxDQUFDLE1BQU0sQ0FBQyx1SEFBdUgsQ0FBQyxDQUFDO0lBQ3ZJLENBQUM7SUFFUSxLQUFLLENBQUMsSUFBSTtRQUNqQixJQUFJLENBQUMsTUFBTSxDQUFDLGdEQUFnRCxDQUFDLENBQUM7SUFDaEUsQ0FBQztDQUVGO0FBWEQsMERBV0MifQ==
@@ -1,16 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Migration20250605072305 = void 0;
4
- const migrations_1 = require("@mikro-orm/migrations");
5
- class Migration20250605072305 extends migrations_1.Migration {
6
- async up() {
7
- this.addSql(`alter table if exists "form_responses" add column if not exists "scheduled_date_time" text null, add column if not exists "status" text check ("status" in ('PENDING', 'RESOLVED')) not null default 'PENDING';`);
8
- this.addSql(`alter table if exists "form_responses" rename column "viratual_call_date_time" to "page";`);
9
- }
10
- async down() {
11
- this.addSql(`alter table if exists "form_responses" drop column if exists "scheduled_date_time", drop column if exists "status";`);
12
- this.addSql(`alter table if exists "form_responses" rename column "page" to "viratual_call_date_time";`);
13
- }
14
- }
15
- exports.Migration20250605072305 = Migration20250605072305;
16
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTWlncmF0aW9uMjAyNTA2MDUwNzIzMDUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9zcmMvbW9kdWxlcy9mb3JtLXJlc3BvbnNlL21pZ3JhdGlvbnMvTWlncmF0aW9uMjAyNTA2MDUwNzIzMDUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsc0RBQWtEO0FBRWxELE1BQWEsdUJBQXdCLFNBQVEsc0JBQVM7SUFFM0MsS0FBSyxDQUFDLEVBQUU7UUFDZixJQUFJLENBQUMsTUFBTSxDQUFDLGlOQUFpTixDQUFDLENBQUM7UUFDL04sSUFBSSxDQUFDLE1BQU0sQ0FBQywyRkFBMkYsQ0FBQyxDQUFDO0lBQzNHLENBQUM7SUFFUSxLQUFLLENBQUMsSUFBSTtRQUNqQixJQUFJLENBQUMsTUFBTSxDQUFDLHFIQUFxSCxDQUFDLENBQUM7UUFFbkksSUFBSSxDQUFDLE1BQU0sQ0FBQywyRkFBMkYsQ0FBQyxDQUFDO0lBQzNHLENBQUM7Q0FFRjtBQWJELDBEQWFDIn0=