@reactionary/provider-medusa 0.3.9 → 0.3.11
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/package.json +2 -2
- package/providers/category.provider.js +1 -1
- package/providers/checkout.provider.js +1 -1
- package/schema/configuration.schema.js +5 -5
- package/schema/medusa.schema.js +1 -1
- package/src/schema/capabilities.schema.d.ts +1 -1
- package/src/schema/configuration.schema.d.ts +1 -1
- package/src/schema/medusa.schema.d.ts +1 -1
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reactionary/provider-medusa",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.11",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "src/index.d.ts",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@medusajs/js-sdk": "^2.13.0",
|
|
9
|
-
"@reactionary/core": "0.3.
|
|
9
|
+
"@reactionary/core": "0.3.11",
|
|
10
10
|
"debug": "^4.4.3",
|
|
11
11
|
"@medusajs/types": "^2.11.0",
|
|
12
12
|
"zod": "4.1.9"
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
error,
|
|
25
25
|
CategoryPaginatedResultSchema
|
|
26
26
|
} from "@reactionary/core";
|
|
27
|
-
import
|
|
27
|
+
import * as z from "zod";
|
|
28
28
|
class MedusaCategoryProvider extends CategoryProvider {
|
|
29
29
|
constructor(config, cache, context, medusaApi) {
|
|
30
30
|
super(cache, context);
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
error
|
|
32
32
|
} from "@reactionary/core";
|
|
33
33
|
import createDebug from "debug";
|
|
34
|
-
import
|
|
34
|
+
import * as z from "zod";
|
|
35
35
|
import { handleProviderError, parseMedusaCostBreakdown, parseMedusaItemPrice } from "../utils/medusa-helpers.js";
|
|
36
36
|
import {
|
|
37
37
|
} from "../schema/medusa.schema.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as z from "zod";
|
|
2
2
|
const MedusaConfigurationSchema = z.looseObject({
|
|
3
|
-
publishable_key: z.string().
|
|
4
|
-
adminApiKey: z.string().
|
|
5
|
-
apiUrl: z.string().
|
|
3
|
+
publishable_key: z.string().meta({ description: "The publishable API key for the Medusa store. Used for all storefront operations." }),
|
|
4
|
+
adminApiKey: z.string().meta({ description: "The API key for Medusa admin operations. Needed for the few tasks that require admin access." }),
|
|
5
|
+
apiUrl: z.string().meta({ description: "The base URL for the Medusa API." }),
|
|
6
6
|
defaultCurrency: z.string().default(""),
|
|
7
|
-
allCurrencies: z.
|
|
7
|
+
allCurrencies: z.array(z.string()).default(() => [])
|
|
8
8
|
});
|
|
9
9
|
export {
|
|
10
10
|
MedusaConfigurationSchema
|
package/schema/medusa.schema.js
CHANGED