@voyant-travel/commerce 0.2.0 → 0.2.2
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.
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
* bridge reindexes inline on the in-process EventBus subscriber.
|
|
7
7
|
* - `{ kind: "all" }` — every owned product (global / market / audience-
|
|
8
8
|
* scoped offers). Inline enumeration would burn the request handler's
|
|
9
|
-
*
|
|
9
|
+
* request budget on a sizeable catalog, so this branch routes through a
|
|
10
10
|
* workflow that breaks the work into one step per product. The
|
|
11
11
|
* orchestrator schedules them in parallel so each individual step stays
|
|
12
|
-
*
|
|
12
|
+
* bounded.
|
|
13
13
|
*
|
|
14
14
|
* The workflow body delegates catalog access to a service the operator
|
|
15
15
|
* template registers under `BULK_REINDEX_SERVICE_KEY`. The promotions
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
* bridge reindexes inline on the in-process EventBus subscriber.
|
|
7
7
|
* - `{ kind: "all" }` — every owned product (global / market / audience-
|
|
8
8
|
* scoped offers). Inline enumeration would burn the request handler's
|
|
9
|
-
*
|
|
9
|
+
* request budget on a sizeable catalog, so this branch routes through a
|
|
10
10
|
* workflow that breaks the work into one step per product. The
|
|
11
11
|
* orchestrator schedules them in parallel so each individual step stays
|
|
12
|
-
*
|
|
12
|
+
* bounded.
|
|
13
13
|
*
|
|
14
14
|
* The workflow body delegates catalog access to a service the operator
|
|
15
15
|
* template registers under `BULK_REINDEX_SERVICE_KEY`. The promotions
|
|
@@ -24,7 +24,7 @@ import { BULK_REINDEX_SERVICE_KEY } from "./workflow-runtime.js";
|
|
|
24
24
|
const REINDEX_CONCURRENCY = 8;
|
|
25
25
|
export const bulkReindexProductsWorkflow = workflow({
|
|
26
26
|
id: "promotions.reindex-all-products",
|
|
27
|
-
defaultRuntime: "
|
|
27
|
+
defaultRuntime: "node",
|
|
28
28
|
async run(_input, ctx) {
|
|
29
29
|
const svc = ctx.services.resolve(BULK_REINDEX_SERVICE_KEY);
|
|
30
30
|
const ids = await ctx.step("list-product-ids", async () => svc.listAllProductIds());
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voyant-travel/commerce",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -22,11 +22,11 @@
|
|
|
22
22
|
"zod": "^4.3.6",
|
|
23
23
|
"@voyant-travel/catalog": "^0.118.0",
|
|
24
24
|
"@voyant-travel/core": "^0.109.0",
|
|
25
|
-
"@voyant-travel/db": "^0.108.
|
|
26
|
-
"@voyant-travel/distribution": "^0.110.
|
|
27
|
-
"@voyant-travel/hono": "^0.110.
|
|
25
|
+
"@voyant-travel/db": "^0.108.1",
|
|
26
|
+
"@voyant-travel/distribution": "^0.110.2",
|
|
27
|
+
"@voyant-travel/hono": "^0.110.2",
|
|
28
28
|
"@voyant-travel/products-contracts": "^0.105.4",
|
|
29
|
-
"@voyant-travel/workflows": "^0.
|
|
29
|
+
"@voyant-travel/workflows": "^0.109.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"typescript": "^6.0.2",
|