@cmflow/atlas 3.4.0-beta.5 → 3.4.0-beta.6
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/README.md +4 -2
- package/dist/bin/atlas.mjs +3 -6
- package/dist/index.d.mts +1 -1
- package/dist/rules/cleanObjectRule.d.mts +1 -1
- package/dist/rules/cmsI18nFieldRule.d.mts +1 -1
- package/dist/rules/dateConversionRule.d.mts +1 -1
- package/dist/rules/lodashGetRule.d.mts +1 -1
- package/dist/rules/mappingUtilityRule.d.mts +1 -1
- package/dist/rules/memberGetFieldRule.d.mts +1 -1
- package/dist/rules/quableI18nFieldRule.d.mts +1 -1
- package/dist/{types-DcvdOZ2j.d.mts → types-3y34Gf8R.d.mts} +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -50,10 +50,12 @@ The configuration imports `defineConfig` from Atlas:
|
|
|
50
50
|
import { defineConfig } from "@cmflow/atlas";
|
|
51
51
|
|
|
52
52
|
export default defineConfig({
|
|
53
|
-
backends: ["ICC", "CMS", "CMS_B2C"],
|
|
54
53
|
openapiUrl: "https://api.example.com/openapi.json",
|
|
55
54
|
openapiTimeoutMs: 60_000,
|
|
56
|
-
directusUrl: "https://cms.api.clubmed"
|
|
55
|
+
directusUrl: "https://cms.api.clubmed",
|
|
56
|
+
analysis: {
|
|
57
|
+
backends: ["ICC", "CMS", "CMS_B2C"]
|
|
58
|
+
}
|
|
57
59
|
});
|
|
58
60
|
```
|
|
59
61
|
|
package/dist/bin/atlas.mjs
CHANGED
|
@@ -391,12 +391,9 @@ function extractOpenApiOutputProperties(operation, swagger) {
|
|
|
391
391
|
return [...map.values()];
|
|
392
392
|
}
|
|
393
393
|
//#endregion
|
|
394
|
-
//#region src/
|
|
395
|
-
function getBackendTypes() {
|
|
396
|
-
return Object.fromEntries(getUserConfig().backends.map((backend) => [backend, backend]));
|
|
397
|
-
}
|
|
394
|
+
//#region src/utils/isKnowBackendType.ts
|
|
398
395
|
function isKnownBackendType(value) {
|
|
399
|
-
return
|
|
396
|
+
return getUserConfig().analysis.backends.includes(value);
|
|
400
397
|
}
|
|
401
398
|
//#endregion
|
|
402
399
|
//#region src/services/backendSourceService.ts
|
|
@@ -4169,7 +4166,6 @@ const configTemplate = `import { defineConfig } from "@cmflow/atlas";
|
|
|
4169
4166
|
|
|
4170
4167
|
export default defineConfig({
|
|
4171
4168
|
repoRoot: process.cwd(),
|
|
4172
|
-
backends: [],
|
|
4173
4169
|
openapiUrl: "https://api.example.com/openapi.json",
|
|
4174
4170
|
openapiTimeoutMs: 60_000,
|
|
4175
4171
|
directusUrl: "https://cms.api.clubmed",
|
|
@@ -4181,6 +4177,7 @@ export default defineConfig({
|
|
|
4181
4177
|
workers: 2
|
|
4182
4178
|
},
|
|
4183
4179
|
analysis: {
|
|
4180
|
+
backends: [],
|
|
4184
4181
|
excluded: [],
|
|
4185
4182
|
transversalInputs: [],
|
|
4186
4183
|
ignoredOutputs: [],
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as defineExpressionRule, t as UserConfig } from "./types-
|
|
1
|
+
import { r as defineExpressionRule, t as UserConfig } from "./types-3y34Gf8R.mjs";
|
|
2
2
|
//#region src/utils/defineConfig.d.ts
|
|
3
3
|
declare function defineConfig(config: UserConfig): UserConfig;
|
|
4
4
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as FieldExtractionRule } from "../types-
|
|
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
|
|
@@ -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-
|
|
102
|
+
//# sourceMappingURL=types-3y34Gf8R.d.mts.map
|