@flowcore/pathways 0.17.1 → 0.17.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.
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.17.2](https://github.com/flowcore-io/flowcore-pathways/compare/v0.17.1...v0.17.2) (2026-03-20)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* use lightweight TenantTranslateNameToIdCommand instead of TenantFetchCommand ([466b040](https://github.com/flowcore-io/flowcore-pathways/commit/466b0400290644e9fb5c870c2fef04ec177f9719))
|
|
9
|
+
|
|
3
10
|
## [0.17.1](https://github.com/flowcore-io/flowcore-pathways/compare/v0.17.0...v0.17.1) (2026-03-19)
|
|
4
11
|
|
|
5
12
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DataCoreCreateCommand, DataCoreFetchCommand, DataCoreUpdateCommand, EventTypeCreateCommand, EventTypeListCommand, EventTypeUpdateCommand, FlowcoreClient, FlowTypeCreateCommand, FlowTypeListCommand, FlowTypeUpdateCommand, NotFoundException,
|
|
1
|
+
import { DataCoreCreateCommand, DataCoreFetchCommand, DataCoreUpdateCommand, EventTypeCreateCommand, EventTypeListCommand, EventTypeUpdateCommand, FlowcoreClient, FlowTypeCreateCommand, FlowTypeListCommand, FlowTypeUpdateCommand, NotFoundException, TenantTranslateNameToIdCommand, } from "@flowcore/sdk";
|
|
2
2
|
import { NoopLogger } from "./logger.js";
|
|
3
3
|
/**
|
|
4
4
|
* Provisions Flowcore infrastructure (data core, flow types, event types).
|
|
@@ -84,7 +84,7 @@ export class PathwayProvisioner {
|
|
|
84
84
|
const client = this.clientFactory(this.apiKey);
|
|
85
85
|
this.logger.info("Starting provisioning", { tenant: this.tenant, dataCore: this.dataCore });
|
|
86
86
|
// Step 1: Fetch tenant
|
|
87
|
-
const tenant = await client.execute(new
|
|
87
|
+
const tenant = await client.execute(new TenantTranslateNameToIdCommand({ tenant: this.tenant }));
|
|
88
88
|
const tenantId = tenant.id;
|
|
89
89
|
this.logger.info("Tenant resolved", { tenantId });
|
|
90
90
|
// Step 2: Provision data core
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flowcore/pathways",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.2",
|
|
4
4
|
"description": "A TypeScript Library for creating Flowcore Pathways, simplifying the integration with the flowcore platform",
|
|
5
5
|
"homepage": "https://github.com/flowcore-io/flowcore-pathways#readme",
|
|
6
6
|
"repository": {
|
|
@@ -87,7 +87,7 @@ class PathwayProvisioner {
|
|
|
87
87
|
const client = this.clientFactory(this.apiKey);
|
|
88
88
|
this.logger.info("Starting provisioning", { tenant: this.tenant, dataCore: this.dataCore });
|
|
89
89
|
// Step 1: Fetch tenant
|
|
90
|
-
const tenant = await client.execute(new sdk_1.
|
|
90
|
+
const tenant = await client.execute(new sdk_1.TenantTranslateNameToIdCommand({ tenant: this.tenant }));
|
|
91
91
|
const tenantId = tenant.id;
|
|
92
92
|
this.logger.info("Tenant resolved", { tenantId });
|
|
93
93
|
// Step 2: Provision data core
|