@reactionary/provider-commercetools 0.3.9 → 0.3.10
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/providers/store.provider.js +1 -1
- package/schema/commercetools.schema.js +3 -3
- package/schema/configuration.schema.js +1 -1
- package/schema/session.schema.js +1 -1
- package/src/schema/capabilities.schema.d.ts +1 -1
- package/src/schema/commercetools.schema.d.ts +1 -1
- package/src/schema/configuration.schema.d.ts +1 -1
- package/src/schema/session.schema.d.ts +1 -1
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reactionary/provider-commercetools",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.10",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"types": "src/index.d.ts",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@reactionary/core": "0.3.
|
|
7
|
+
"@reactionary/core": "0.3.10",
|
|
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
|
|
25
|
+
import * as z from "zod";
|
|
26
26
|
class CommercetoolsCategoryProvider extends CategoryProvider {
|
|
27
27
|
constructor(config, cache, context, commercetools) {
|
|
28
28
|
super(cache, context);
|
|
@@ -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
|
|
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
|
|
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().
|
|
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().
|
|
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(),
|
package/schema/session.schema.js
CHANGED