@cmflow/atlas 3.4.0-beta.5 → 3.4.0-beta.7

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.
@@ -1,4 +1,4 @@
1
- import { n as FieldExtractionRule } from "../types-DcvdOZ2j.mjs";
1
+ import { n as FieldExtractionRule } from "../types-3y34Gf8R.mjs";
2
2
  //#region src/rules/cleanObjectRule.d.ts
3
3
  declare const cleanObjectRule: FieldExtractionRule;
4
4
  //#endregion
@@ -1,4 +1,4 @@
1
- import { n as FieldExtractionRule } from "../types-DcvdOZ2j.mjs";
1
+ import { n as FieldExtractionRule } from "../types-3y34Gf8R.mjs";
2
2
  //#region src/rules/cmsI18nFieldRule.d.ts
3
3
  /**
4
4
  * `CmsI18n#get`/`getAll` reads a localized field off the translations array passed to the
@@ -1,4 +1,4 @@
1
- import { n as FieldExtractionRule } from "../types-DcvdOZ2j.mjs";
1
+ import { n as FieldExtractionRule } from "../types-3y34Gf8R.mjs";
2
2
  //#region src/rules/dateConversionRule.d.ts
3
3
  declare const dateConversionRule: FieldExtractionRule;
4
4
  //#endregion
@@ -1,4 +1,4 @@
1
- import { n as FieldExtractionRule } from "../types-DcvdOZ2j.mjs";
1
+ import { n as FieldExtractionRule } from "../types-3y34Gf8R.mjs";
2
2
  //#region src/rules/lodashGetRule.d.ts
3
3
  declare const lodashGetRule: FieldExtractionRule;
4
4
  //#endregion
@@ -1,4 +1,4 @@
1
- import { n as FieldExtractionRule } from "../types-DcvdOZ2j.mjs";
1
+ import { n as FieldExtractionRule } from "../types-3y34Gf8R.mjs";
2
2
  //#region src/rules/mappingUtilityRule.d.ts
3
3
  declare const mappingUtilityRule: FieldExtractionRule;
4
4
  //#endregion
@@ -1,4 +1,4 @@
1
- import { n as FieldExtractionRule } from "../types-DcvdOZ2j.mjs";
1
+ import { n as FieldExtractionRule } from "../types-3y34Gf8R.mjs";
2
2
  //#region src/rules/memberGetFieldRule.d.ts
3
3
  declare const memberGetFieldRule: FieldExtractionRule;
4
4
  //#endregion
@@ -1,4 +1,4 @@
1
- import { n as FieldExtractionRule } from "../types-DcvdOZ2j.mjs";
1
+ import { n as FieldExtractionRule } from "../types-3y34Gf8R.mjs";
2
2
  //#region src/rules/quableI18nFieldRule.d.ts
3
3
  declare const quableI18nFieldRule: FieldExtractionRule;
4
4
  //#endregion
@@ -24,8 +24,6 @@ interface UserConfig {
24
24
  * Can be set via the ATLAS_CWD environment variable.
25
25
  */
26
26
  repoRoot?: string;
27
- /** Backend identifiers used by the API project. */
28
- backends: string[];
29
27
  /**
30
28
  * Default OpenAPI document URL used to extract the public contract exposed by the API.
31
29
  * The CLI can still override this value with `--openapi-url`.
@@ -60,6 +58,8 @@ interface UserConfig {
60
58
  * Static analysis options used to keep generated artifacts focused on business-relevant files and fields.
61
59
  */
62
60
  analysis: {
61
+ /** Backend identifiers used by the API project. */
62
+ backends: string[];
63
63
  /**
64
64
  * Glob patterns excluded from `analysis_files`.
65
65
  * Use this to hide technical plumbing files that add noise to route review documents.
@@ -99,4 +99,4 @@ interface UserConfig {
99
99
  }
100
100
  //#endregion
101
101
  export { FieldExtractionRule as n, defineExpressionRule as r, UserConfig as t };
102
- //# sourceMappingURL=types-DcvdOZ2j.d.mts.map
102
+ //# sourceMappingURL=types-3y34Gf8R.d.mts.map
@@ -0,0 +1,29 @@
1
+ import { t as generateBackendTopologyArtifacts } from "../routeBackendTopologyService-D_aIIBbX.mjs";
2
+ import { parentPort, workerData } from "node:worker_threads";
3
+ //#region src/workers/routeBackendTopologyWorker.ts
4
+ const data = workerData;
5
+ generateBackendTopologyArtifacts({
6
+ cwd: data.cwd,
7
+ routeSelectors: data.routeSelectors,
8
+ onRouteProgress: ({ route, stage }) => {
9
+ if (stage !== "completed") return;
10
+ parentPort?.postMessage({
11
+ type: "progress",
12
+ route
13
+ });
14
+ },
15
+ onArtifact: async (artifact) => {
16
+ parentPort?.postMessage({
17
+ type: "artifact",
18
+ artifact
19
+ });
20
+ }
21
+ }).catch((error) => {
22
+ parentPort?.postMessage({
23
+ type: "error",
24
+ message: error instanceof Error ? error.message : String(error)
25
+ });
26
+ process.exitCode = 1;
27
+ });
28
+ //#endregion
29
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cmflow/atlas",
3
- "version": "3.4.0-beta.5",
3
+ "version": "3.4.0-beta.7",
4
4
  "description": "API-to-backend mapping catalogue for Club Med Flow",
5
5
  "license": "MIT",
6
6
  "author": "romakita",