@reactionary/hcl 0.9.20 → 0.9.21
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.
|
@@ -130,8 +130,8 @@ class HclProductCapability extends ProductCapability {
|
|
|
130
130
|
}
|
|
131
131
|
getByIdPayload(payload) {
|
|
132
132
|
return this.productsParams({
|
|
133
|
-
|
|
134
|
-
profileName: this.config.profiles.
|
|
133
|
+
id: [payload.identifier.key],
|
|
134
|
+
profileName: this.config.profiles.productById
|
|
135
135
|
});
|
|
136
136
|
}
|
|
137
137
|
getBySlugPayload(token) {
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reactionary/hcl",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.21",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"types": "./src/index.d.ts",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@reactionary/core": "0.9.
|
|
8
|
+
"@reactionary/core": "0.9.21",
|
|
9
9
|
"debug": "^4.4.3",
|
|
10
10
|
"zod": "4.1.9"
|
|
11
11
|
},
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
2
|
const HclProfilesSchema = z.looseObject({
|
|
3
3
|
product: z.string().default("HCL_V2_findProductByPartNumber_Details").meta({
|
|
4
|
-
description: "Profile name for product detail lookups (
|
|
4
|
+
description: "Profile name for product detail lookups ( getBySlug, getBySKU)."
|
|
5
|
+
}),
|
|
6
|
+
productById: z.string().default("HCL_V2_findProductByIds_Details").meta({
|
|
7
|
+
description: "Profile name for product detail lookups (getById)."
|
|
5
8
|
}),
|
|
6
9
|
productSearch: z.string().default("HCL_V2_findProductsBySearchTermWithPrice").meta({ description: "Profile name for product search by term." }),
|
|
7
10
|
categoryBrowse: z.string().default("HCL_V2_findProductsByCategoryWithPriceRange").meta({
|
|
@@ -9,6 +12,7 @@ const HclProfilesSchema = z.looseObject({
|
|
|
9
12
|
})
|
|
10
13
|
}).default(() => ({
|
|
11
14
|
product: "HCL_V2_findProductByPartNumber_Details",
|
|
15
|
+
productById: "HCL_V2_findProductByIds_Details",
|
|
12
16
|
productSearch: "HCL_V2_findProductsBySearchTermWithPrice",
|
|
13
17
|
categoryBrowse: "HCL_V2_findProductsByCategoryWithPriceRange"
|
|
14
18
|
}));
|
|
@@ -12,6 +12,7 @@ export declare const HclConfigurationSchema: z.ZodObject<{
|
|
|
12
12
|
localeMap: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
13
13
|
profiles: z.ZodDefault<z.ZodObject<{
|
|
14
14
|
product: z.ZodDefault<z.ZodString>;
|
|
15
|
+
productById: z.ZodDefault<z.ZodString>;
|
|
15
16
|
productSearch: z.ZodDefault<z.ZodString>;
|
|
16
17
|
categoryBrowse: z.ZodDefault<z.ZodString>;
|
|
17
18
|
}, z.core.$loose>>;
|