@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 CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@reactionary/provider-medusa",
3
- "version": "0.3.9",
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",
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 { z } from "zod";
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 { z } from "zod";
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 { z } from "zod";
1
+ import * as z from "zod";
2
2
  const MedusaConfigurationSchema = z.looseObject({
3
- publishable_key: z.string().describe("The publishable API key for the Medusa store. Used for all storefront operations."),
4
- adminApiKey: z.string().describe("The API key for Medusa admin operations. Needed for the few tasks that require admin access."),
5
- apiUrl: z.string().describe("The base URL for the Medusa API."),
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.string().array().default([])
7
+ allCurrencies: z.array(z.string()).default(() => [])
8
8
  });
9
9
  export {
10
10
  MedusaConfigurationSchema
@@ -1,5 +1,5 @@
1
1
  import { CartIdentifierSchema, OrderIdentifierSchema } from "@reactionary/core";
2
- import { z } from "zod";
2
+ import * as z from "zod";
3
3
  const MedusaCartIdentifierSchema = CartIdentifierSchema.extend({
4
4
  region_id: z.string().optional()
5
5
  });
@@ -1,4 +1,4 @@
1
- import type { z } from 'zod';
1
+ import type * as z from 'zod';
2
2
  export declare const MedusaCapabilitiesSchema: z.ZodObject<{
3
3
  price: z.ZodOptional<z.ZodBoolean>;
4
4
  product: z.ZodOptional<z.ZodBoolean>;
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import * as z from 'zod';
2
2
  export declare const MedusaConfigurationSchema: z.ZodObject<{
3
3
  publishable_key: z.ZodString;
4
4
  adminApiKey: z.ZodString;
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import * as z from 'zod';
2
2
  export declare const MedusaCartIdentifierSchema: z.ZodObject<{
3
3
  key: z.ZodString;
4
4
  region_id: z.ZodOptional<z.ZodString>;