@reactionary/provider-commercetools 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,10 +1,10 @@
1
1
  {
2
2
  "name": "@reactionary/provider-commercetools",
3
- "version": "0.3.9",
3
+ "version": "0.3.11",
4
4
  "main": "index.js",
5
5
  "types": "src/index.d.ts",
6
6
  "dependencies": {
7
- "@reactionary/core": "0.3.9",
7
+ "@reactionary/core": "0.3.11",
8
8
  "debug": "^4.4.3",
9
9
  "zod": "4.1.9",
10
10
  "@commercetools/ts-client": "^4.2.1",
@@ -22,7 +22,7 @@ import {
22
22
  success,
23
23
  error
24
24
  } from "@reactionary/core";
25
- import { z } from "zod";
25
+ import * as z from "zod";
26
26
  class CommercetoolsCategoryProvider extends CategoryProvider {
27
27
  constructor(config, cache, context, commercetools) {
28
28
  super(cache, context);
@@ -29,7 +29,7 @@ import {
29
29
  error,
30
30
  unwrapValue
31
31
  } from "@reactionary/core";
32
- import { z } from "zod";
32
+ import * as z from "zod";
33
33
  import {
34
34
  } from "../schema/commercetools.schema.js";
35
35
  class CheckoutNotReadyForFinalizationError extends Error {
@@ -10,7 +10,7 @@ var __decorateClass = (decorators, target, key, kind) => {
10
10
  return result;
11
11
  };
12
12
  import { Reactionary, StoreProvider, StoreQueryByProximitySchema, StoreSchema, success, error } from "@reactionary/core";
13
- import { z } from "zod";
13
+ import * as z from "zod";
14
14
  class CommercetoolsStoreProvider extends StoreProvider {
15
15
  constructor(config, cache, context, commercetools) {
16
16
  super(cache, context);
@@ -1,5 +1,5 @@
1
1
  import { BaseModelSchema, CartIdentifierSchema, CategoryIdentifierSchema, CheckoutIdentifierSchema, OrderIdentifierSchema } from "@reactionary/core";
2
- import { keyof, z } from "zod";
2
+ import * as z from "zod";
3
3
  const CommercetoolsCartIdentifierSchema = CartIdentifierSchema.extend({
4
4
  version: z.number().default(0)
5
5
  });
@@ -10,10 +10,10 @@ const CommercetoolsCheckoutIdentifierSchema = CheckoutIdentifierSchema.extend({
10
10
  version: z.number().default(0)
11
11
  });
12
12
  const CommercetoolsResolveCategoryQueryByKeySchema = z.object({
13
- key: z.string().describe("The key of the category to resolve.")
13
+ key: z.string().meta({ description: "The key of the category to resolve." })
14
14
  });
15
15
  const CommercetoolsResolveCategoryQueryByIdSchema = z.object({
16
- id: z.string().describe("The ID of the category to resolve.")
16
+ id: z.string().meta({ description: "The ID of the category to resolve." })
17
17
  });
18
18
  const CommercetoolsCategoryLookupSchema = BaseModelSchema.extend({
19
19
  id: z.string(),
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import * as z from "zod";
2
2
  import { PaymentMethodSchema } from "@reactionary/core";
3
3
  const CommercetoolsConfigurationSchema = z.looseObject({
4
4
  projectKey: z.string(),
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import * as z from "zod";
2
2
  const CommercetoolsSessionSchema = z.looseObject({
3
3
  token: z.string().default(""),
4
4
  refreshToken: z.string().optional(),
@@ -1,4 +1,4 @@
1
- import type { z } from 'zod';
1
+ import type * as z from 'zod';
2
2
  export declare const CommercetoolsCapabilitiesSchema: 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 CommercetoolsCartIdentifierSchema: z.ZodObject<{
3
3
  key: z.ZodString;
4
4
  version: z.ZodDefault<z.ZodNumber>;
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import * as z from 'zod';
2
2
  export declare const CommercetoolsConfigurationSchema: z.ZodObject<{
3
3
  projectKey: z.ZodString;
4
4
  authUrl: z.ZodString;
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import * as z from 'zod';
2
2
  export declare const CommercetoolsSessionSchema: z.ZodObject<{
3
3
  token: z.ZodDefault<z.ZodString>;
4
4
  refreshToken: z.ZodOptional<z.ZodString>;