medusa-plugin-ratings 0.2.0 → 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.
|
@@ -10,8 +10,8 @@ module.exports = (0, utils_1.defineConfig)({
|
|
|
10
10
|
storeCors: process.env.STORE_CORS || 'http://localhost:5173',
|
|
11
11
|
adminCors: process.env.ADMIN_CORS || 'http://localhost:5173,http://localhost:9000',
|
|
12
12
|
authCors: process.env.AUTH_CORS || 'http://localhost:5173,http://localhost:9000',
|
|
13
|
-
jwtSecret: process.env.JWT_SECRET
|
|
14
|
-
cookieSecret: process.env.COOKIE_SECRET
|
|
13
|
+
jwtSecret: process.env.JWT_SECRET,
|
|
14
|
+
cookieSecret: process.env.COOKIE_SECRET
|
|
15
15
|
}
|
|
16
16
|
},
|
|
17
17
|
modules: [
|
|
@@ -20,4 +20,4 @@ module.exports = (0, utils_1.defineConfig)({
|
|
|
20
20
|
}
|
|
21
21
|
]
|
|
22
22
|
});
|
|
23
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
23
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWVkdXNhLWNvbmZpZy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL21lZHVzYS1jb25maWcudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxxREFBaUU7QUFFakUsSUFBQSxlQUFPLEVBQUMsT0FBTyxDQUFDLEdBQUcsQ0FBQyxRQUFRLElBQUksYUFBYSxFQUFFLE9BQU8sQ0FBQyxHQUFHLEVBQUUsQ0FBQyxDQUFBO0FBRTdELE1BQU0sQ0FBQyxPQUFPLEdBQUcsSUFBQSxvQkFBWSxFQUFDO0lBQzdCLGFBQWEsRUFBRTtRQUNkLFFBQVEsRUFBRSxPQUFPLENBQUMsR0FBRyxDQUFDLFNBQVM7UUFDL0IsV0FBVyxFQUFFLE9BQU8sQ0FBQyxHQUFHLENBQUMsWUFBWTtRQUNyQyxJQUFJLEVBQUU7WUFDTCxTQUFTLEVBQUUsT0FBTyxDQUFDLEdBQUcsQ0FBQyxVQUFVLElBQUksdUJBQXVCO1lBQzVELFNBQVMsRUFBRSxPQUFPLENBQUMsR0FBRyxDQUFDLFVBQVUsSUFBSSw2Q0FBNkM7WUFDbEYsUUFBUSxFQUFFLE9BQU8sQ0FBQyxHQUFHLENBQUMsU0FBUyxJQUFJLDZDQUE2QztZQUNoRixTQUFTLEVBQUUsT0FBTyxDQUFDLEdBQUcsQ0FBQyxVQUFVO1lBQ2pDLFlBQVksRUFBRSxPQUFPLENBQUMsR0FBRyxDQUFDLGFBQWE7U0FDdkM7S0FDRDtJQUNELE9BQU8sRUFBRTtRQUNSO1lBQ0MsT0FBTyxFQUFFLHNCQUFzQjtTQUMvQjtLQUNEO0NBQ0QsQ0FBQyxDQUFBIn0=
|
|
@@ -22,6 +22,6 @@ export declare const ReviewActivity: import("@medusajs/framework/utils").DmlEnti
|
|
|
22
22
|
order_id: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
23
23
|
customer_id: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
24
24
|
metadata: import("@medusajs/framework/utils").NullableModifier<Record<string, unknown>, import("@medusajs/framework/utils").JSONProperty>;
|
|
25
|
-
activity: import("@medusajs/framework/utils").HasMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder
|
|
25
|
+
activity: import("@medusajs/framework/utils").HasMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, "review_activity">>;
|
|
26
26
|
}>, "review">, undefined>;
|
|
27
27
|
}>, "review_activity">;
|
|
@@ -21,6 +21,6 @@ export declare const Review: import("@medusajs/framework/utils").DmlEntity<impor
|
|
|
21
21
|
user_id: import("@medusajs/framework/utils").TextProperty;
|
|
22
22
|
note: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
23
23
|
metadata: import("@medusajs/framework/utils").NullableModifier<Record<string, unknown>, import("@medusajs/framework/utils").JSONProperty>;
|
|
24
|
-
review: import("@medusajs/framework/utils").BelongsTo<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder
|
|
24
|
+
review: import("@medusajs/framework/utils").BelongsTo<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, "review">, undefined>;
|
|
25
25
|
}>, "review_activity">>;
|
|
26
26
|
}>, "review">;
|
|
@@ -22,7 +22,7 @@ declare const ReviewService_base: import("@medusajs/framework/utils").MedusaServ
|
|
|
22
22
|
user_id: import("@medusajs/framework/utils").TextProperty;
|
|
23
23
|
note: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
24
24
|
metadata: import("@medusajs/framework/utils").NullableModifier<Record<string, unknown>, import("@medusajs/framework/utils").JSONProperty>;
|
|
25
|
-
review: import("@medusajs/framework/utils").BelongsTo<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder
|
|
25
|
+
review: import("@medusajs/framework/utils").BelongsTo<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, "review">, undefined>;
|
|
26
26
|
}>, "review_activity">>;
|
|
27
27
|
}>, "review">;
|
|
28
28
|
readonly ReviewActivity: import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder<{
|
|
@@ -31,7 +31,20 @@ declare const ReviewService_base: import("@medusajs/framework/utils").MedusaServ
|
|
|
31
31
|
user_id: import("@medusajs/framework/utils").TextProperty;
|
|
32
32
|
note: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
33
33
|
metadata: import("@medusajs/framework/utils").NullableModifier<Record<string, unknown>, import("@medusajs/framework/utils").JSONProperty>;
|
|
34
|
-
review: import("@medusajs/framework/utils").BelongsTo<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder<
|
|
34
|
+
review: import("@medusajs/framework/utils").BelongsTo<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder<{
|
|
35
|
+
id: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").IdProperty>;
|
|
36
|
+
status: import("@medusajs/framework/utils").EnumProperty<typeof ReviewStatus>;
|
|
37
|
+
rating: import("@medusajs/framework/utils").NumberProperty;
|
|
38
|
+
title: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
39
|
+
body: import("@medusajs/framework/utils").TextProperty;
|
|
40
|
+
author_name: import("@medusajs/framework/utils").TextProperty;
|
|
41
|
+
author_email: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
42
|
+
product_id: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
43
|
+
order_id: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
44
|
+
customer_id: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
45
|
+
metadata: import("@medusajs/framework/utils").NullableModifier<Record<string, unknown>, import("@medusajs/framework/utils").JSONProperty>;
|
|
46
|
+
activity: import("@medusajs/framework/utils").HasMany<() => import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder</*elided*/ any>, "review_activity">>;
|
|
47
|
+
}>, "review">, undefined>;
|
|
35
48
|
}>, "review_activity">;
|
|
36
49
|
}>>;
|
|
37
50
|
export declare class ReviewService extends ReviewService_base {
|
|
@@ -56,7 +69,7 @@ export declare class ReviewService extends ReviewService_base {
|
|
|
56
69
|
user_id: string;
|
|
57
70
|
note: string | null;
|
|
58
71
|
metadata: Record<string, unknown> | null;
|
|
59
|
-
review: any;
|
|
72
|
+
review: /*elided*/ any;
|
|
60
73
|
created_at: Date;
|
|
61
74
|
updated_at: Date;
|
|
62
75
|
deleted_at: Date | null;
|
|
@@ -84,7 +97,7 @@ export declare class ReviewService extends ReviewService_base {
|
|
|
84
97
|
user_id: string;
|
|
85
98
|
note: string | null;
|
|
86
99
|
metadata: Record<string, unknown> | null;
|
|
87
|
-
review: any;
|
|
100
|
+
review: /*elided*/ any;
|
|
88
101
|
created_at: Date;
|
|
89
102
|
updated_at: Date;
|
|
90
103
|
deleted_at: Date | null;
|
|
@@ -112,7 +125,7 @@ export declare class ReviewService extends ReviewService_base {
|
|
|
112
125
|
order_id: string | null;
|
|
113
126
|
customer_id: string | null;
|
|
114
127
|
metadata: Record<string, unknown> | null;
|
|
115
|
-
activity: any[];
|
|
128
|
+
activity: /*elided*/ any[];
|
|
116
129
|
created_at: Date;
|
|
117
130
|
updated_at: Date;
|
|
118
131
|
deleted_at: Date | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "medusa-plugin-ratings",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Product review and rating plugin for Medusa v2 with moderation workflow",
|
|
5
5
|
"author": "Lacey Pevey",
|
|
6
6
|
"license": "MIT",
|
|
@@ -57,12 +57,12 @@
|
|
|
57
57
|
"test:integration:http": "TEST_TYPE=integration:http NODE_OPTIONS=--experimental-vm-modules jest --silent=false --runInBand --detectOpenHandles --forceExit"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
|
-
"@medusajs/admin-sdk": "2.
|
|
61
|
-
"@medusajs/cli": "2.
|
|
62
|
-
"@medusajs/framework": "2.
|
|
63
|
-
"@medusajs/icons": "2.
|
|
64
|
-
"@medusajs/ui": "4.1.
|
|
65
|
-
"@swc/core": "1.
|
|
60
|
+
"@medusajs/admin-sdk": "2.16.0",
|
|
61
|
+
"@medusajs/cli": "2.16.0",
|
|
62
|
+
"@medusajs/framework": "2.16.0",
|
|
63
|
+
"@medusajs/icons": "2.16.0",
|
|
64
|
+
"@medusajs/ui": "4.1.16",
|
|
65
|
+
"@swc/core": "1.15.33",
|
|
66
66
|
"@swc/jest": "0.2.39",
|
|
67
67
|
"@types/jest": "30.0.0",
|
|
68
68
|
"@types/node": "20.0.0",
|
|
@@ -73,17 +73,17 @@
|
|
|
73
73
|
"react": "18.3.1",
|
|
74
74
|
"react-dom": "18.3.1",
|
|
75
75
|
"ts-node": "10.9.2",
|
|
76
|
-
"typescript": "
|
|
77
|
-
"vite": "
|
|
76
|
+
"typescript": "6.0.3",
|
|
77
|
+
"vite": "8.0.8",
|
|
78
78
|
"yalc": "1.0.0-pre.53"
|
|
79
79
|
},
|
|
80
80
|
"peerDependencies": {
|
|
81
|
-
"@medusajs/framework": "2.
|
|
82
|
-
"@medusajs/js-sdk": "2.
|
|
83
|
-
"@medusajs/medusa": "2.
|
|
81
|
+
"@medusajs/framework": "2.16.0",
|
|
82
|
+
"@medusajs/js-sdk": "2.16.0",
|
|
83
|
+
"@medusajs/medusa": "2.16.0"
|
|
84
84
|
},
|
|
85
85
|
"engines": {
|
|
86
86
|
"node": ">=20"
|
|
87
87
|
},
|
|
88
|
-
"gitHead": "
|
|
88
|
+
"gitHead": "e09c71de0e01897fa9441b40b67315b5a7b6d5bf"
|
|
89
89
|
}
|