@ama-sdk/schematics 12.3.0-prerelease.48 → 12.3.0-prerelease.49
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/package.json +10 -10
- package/schematics/api-extension/index.d.ts +1 -1
- package/schematics/api-extension/index.d.ts.map +1 -1
- package/schematics/api-extension/index.js +2 -4
- package/schematics/migrate/index.d.ts +1 -1
- package/schematics/migrate/index.d.ts.map +1 -1
- package/schematics/migrate/index.js +2 -4
- package/schematics/ng-add/index.d.ts.map +1 -1
- package/schematics/ng-add/index.js +3 -8
- package/schematics/typescript/core/index.d.ts +1 -1
- package/schematics/typescript/core/index.d.ts.map +1 -1
- package/schematics/typescript/core/index.js +2 -4
- package/schematics/typescript/core/openapi-codegen-typescript/target/typescriptFetch-openapi-generator-tests.jar +0 -0
- package/schematics/typescript/core/openapi-codegen-typescript/target/typescriptFetch-openapi-generator.jar +0 -0
- package/schematics/typescript/mock/index.d.ts +1 -1
- package/schematics/typescript/mock/index.d.ts.map +1 -1
- package/schematics/typescript/mock/index.js +2 -4
- package/schematics/typescript/shell/index.d.ts +1 -1
- package/schematics/typescript/shell/index.d.ts.map +1 -1
- package/schematics/typescript/shell/index.js +3 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ama-sdk/schematics",
|
|
3
|
-
"version": "12.3.0-prerelease.
|
|
3
|
+
"version": "12.3.0-prerelease.49",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -62,12 +62,12 @@
|
|
|
62
62
|
}
|
|
63
63
|
},
|
|
64
64
|
"peerDependencies": {
|
|
65
|
-
"@ama-sdk/core": "^12.3.0-prerelease.
|
|
65
|
+
"@ama-sdk/core": "^12.3.0-prerelease.49",
|
|
66
66
|
"@angular-devkit/core": "^19.0.0",
|
|
67
67
|
"@angular-devkit/schematics-cli": "^19.0.0",
|
|
68
68
|
"@angular/cli": "^19.0.0",
|
|
69
|
-
"@o3r/schematics": "^12.3.0-prerelease.
|
|
70
|
-
"@o3r/telemetry": "^12.3.0-prerelease.
|
|
69
|
+
"@o3r/schematics": "^12.3.0-prerelease.49",
|
|
70
|
+
"@o3r/telemetry": "^12.3.0-prerelease.49",
|
|
71
71
|
"@openapitools/openapi-generator-cli": "^2.15.0",
|
|
72
72
|
"openapi-types": "^12.0.0",
|
|
73
73
|
"ts-node": "~10.9.2",
|
|
@@ -76,6 +76,7 @@
|
|
|
76
76
|
"dependencies": {
|
|
77
77
|
"@angular-devkit/core": "~19.2.0",
|
|
78
78
|
"@angular-devkit/schematics": "~19.2.0",
|
|
79
|
+
"@o3r/schematics": "^12.3.0-prerelease.49",
|
|
79
80
|
"chokidar": "^4.0.3",
|
|
80
81
|
"globby": "^11.1.0",
|
|
81
82
|
"js-yaml": "^4.1.0",
|
|
@@ -86,17 +87,16 @@
|
|
|
86
87
|
"tslib": "^2.6.2"
|
|
87
88
|
},
|
|
88
89
|
"devDependencies": {
|
|
89
|
-
"@ama-sdk/core": "^12.3.0-prerelease.
|
|
90
|
+
"@ama-sdk/core": "^12.3.0-prerelease.49",
|
|
90
91
|
"@angular-devkit/schematics-cli": "~19.2.0",
|
|
91
92
|
"@angular/cli": "~19.2.0",
|
|
92
93
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.4.0",
|
|
93
94
|
"@nx/eslint-plugin": "~20.8.0",
|
|
94
95
|
"@nx/jest": "~20.8.0",
|
|
95
|
-
"@o3r/build-helpers": "^12.3.0-prerelease.
|
|
96
|
-
"@o3r/eslint-plugin": "^12.3.0-prerelease.
|
|
97
|
-
"@o3r/
|
|
98
|
-
"@o3r/
|
|
99
|
-
"@o3r/test-helpers": "^12.3.0-prerelease.48",
|
|
96
|
+
"@o3r/build-helpers": "^12.3.0-prerelease.49",
|
|
97
|
+
"@o3r/eslint-plugin": "^12.3.0-prerelease.49",
|
|
98
|
+
"@o3r/telemetry": "^12.3.0-prerelease.49",
|
|
99
|
+
"@o3r/test-helpers": "^12.3.0-prerelease.49",
|
|
100
100
|
"@openapitools/openapi-generator-cli": "~2.19.0",
|
|
101
101
|
"@schematics/angular": "~19.2.0",
|
|
102
102
|
"@stylistic/eslint-plugin": "~3.1.0",
|
|
@@ -4,5 +4,5 @@ import { NgGenerateApiExtensionSchematicsSchema } from './schema';
|
|
|
4
4
|
* Generate a Extension of a API core definition
|
|
5
5
|
* @param options
|
|
6
6
|
*/
|
|
7
|
-
export declare const ngGenerateApiExtension: (options: NgGenerateApiExtensionSchematicsSchema) =>
|
|
7
|
+
export declare const ngGenerateApiExtension: (options: NgGenerateApiExtensionSchematicsSchema) => Rule;
|
|
8
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/api-extension/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAML,IAAI,EAIL,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/api-extension/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAML,IAAI,EAIL,MAAM,4BAA4B,CAAC;AAIpC,OAAO,EACL,sCAAsC,EACvC,MAAM,UAAU,CAAC;AAiBlB;;;GAGG;AACH,eAAO,MAAM,sBAAsB,GAAI,SAAS,sCAAsC,SAA4D,CAAC"}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ngGenerateApiExtension = void 0;
|
|
4
4
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
5
|
+
const schematics_2 = require("@o3r/schematics");
|
|
5
6
|
/**
|
|
6
7
|
* Generate a Extension of a API core definition
|
|
7
8
|
* @param options
|
|
@@ -20,9 +21,6 @@ function ngGenerateApiExtensionFn(options) {
|
|
|
20
21
|
* Generate a Extension of a API core definition
|
|
21
22
|
* @param options
|
|
22
23
|
*/
|
|
23
|
-
const ngGenerateApiExtension = (options) =>
|
|
24
|
-
const { createOtterSchematic } = await Promise.resolve().then(() => require('@o3r/schematics'));
|
|
25
|
-
return createOtterSchematic(ngGenerateApiExtensionFn)(options);
|
|
26
|
-
};
|
|
24
|
+
const ngGenerateApiExtension = (options) => (0, schematics_2.createOtterSchematic)(ngGenerateApiExtensionFn)(options);
|
|
27
25
|
exports.ngGenerateApiExtension = ngGenerateApiExtension;
|
|
28
26
|
//# sourceMappingURL=index.js.map
|
|
@@ -4,5 +4,5 @@ import { MigrateSchematicsSchemaOptions } from './schema';
|
|
|
4
4
|
* Facilitate the migration of a version to another by the run of migration rules
|
|
5
5
|
* @param options
|
|
6
6
|
*/
|
|
7
|
-
export declare const migrate: (options: MigrateSchematicsSchemaOptions) =>
|
|
7
|
+
export declare const migrate: (options: MigrateSchematicsSchemaOptions) => Rule;
|
|
8
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/migrate/index.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EACV,IAAI,EACL,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/migrate/index.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EACV,IAAI,EACL,MAAM,4BAA4B,CAAC;AAyBpC,OAAO,EACL,8BAA8B,EAC/B,MAAM,UAAU,CAAC;AAgClB;;;GAGG;AACH,eAAO,MAAM,OAAO,GAAI,SAAS,8BAA8B,SAA6C,CAAC"}
|
|
@@ -4,6 +4,7 @@ exports.migrate = void 0;
|
|
|
4
4
|
const node_fs_1 = require("node:fs");
|
|
5
5
|
const node_path_1 = require("node:path");
|
|
6
6
|
const schematics_1 = require("@o3r/schematics");
|
|
7
|
+
const schematics_2 = require("@o3r/schematics");
|
|
7
8
|
const semver_1 = require("semver");
|
|
8
9
|
const is_typescript_project_1 = require("../helpers/is-typescript-project");
|
|
9
10
|
const typescript_1 = require("../ng-update/typescript");
|
|
@@ -40,9 +41,6 @@ function migrateFn(options) {
|
|
|
40
41
|
* Facilitate the migration of a version to another by the run of migration rules
|
|
41
42
|
* @param options
|
|
42
43
|
*/
|
|
43
|
-
const migrate = (options) =>
|
|
44
|
-
const { createOtterSchematic } = await Promise.resolve().then(() => require('@o3r/schematics'));
|
|
45
|
-
return createOtterSchematic(migrateFn)(options);
|
|
46
|
-
};
|
|
44
|
+
const migrate = (options) => (0, schematics_2.createOtterSchematic)(migrateFn)(options);
|
|
47
45
|
exports.migrate = migrate;
|
|
48
46
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":"AAOA,OAAO,EAGL,IAAI,EAGL,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":"AAOA,OAAO,EAGL,IAAI,EAGL,MAAM,4BAA4B,CAAC;AAkBpC,OAAO,KAAK,EACV,qBAAqB,EACtB,MAAM,UAAU,CAAC;AAOlB;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,EAAE,IAwCtC,CAAC;AAoGF;;;GAGG;AACH,eAAO,MAAM,KAAK,GAAI,MAAM,qBAAqB,SAAwC,CAAC"}
|
|
@@ -5,6 +5,7 @@ const node_fs_1 = require("node:fs");
|
|
|
5
5
|
const path = require("node:path");
|
|
6
6
|
const core_1 = require("@angular-devkit/core");
|
|
7
7
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
8
|
+
const schematics_2 = require("@o3r/schematics");
|
|
8
9
|
const rxjs_1 = require("rxjs");
|
|
9
10
|
const node_install_1 = require("../helpers/node-install");
|
|
10
11
|
const packageJsonPath = '/package.json';
|
|
@@ -122,10 +123,7 @@ const registerPackageSchematics = async (tree, context) => {
|
|
|
122
123
|
}
|
|
123
124
|
return () => (0, schematics_1.chain)([
|
|
124
125
|
...schematicsDependencies.map((dep) => (0, schematics_1.externalSchematic)(dep, 'ng-add', {})),
|
|
125
|
-
|
|
126
|
-
const { registerPackageCollectionSchematics } = await Promise.resolve().then(() => require('@o3r/schematics'));
|
|
127
|
-
return () => registerPackageCollectionSchematics(amaSdkSchematicsPackageJsonContent)(t, c);
|
|
128
|
-
}
|
|
126
|
+
(0, schematics_2.registerPackageCollectionSchematics)(amaSdkSchematicsPackageJsonContent)
|
|
129
127
|
]);
|
|
130
128
|
};
|
|
131
129
|
/**
|
|
@@ -146,9 +144,6 @@ function ngAddFn() {
|
|
|
146
144
|
* Add Otter ama-sdk-schematics to a Project
|
|
147
145
|
* @param opts
|
|
148
146
|
*/
|
|
149
|
-
const ngAdd = (opts) =>
|
|
150
|
-
const { createOtterSchematic } = await Promise.resolve().then(() => require('@o3r/schematics'));
|
|
151
|
-
return createOtterSchematic(ngAddFn)(opts);
|
|
152
|
-
};
|
|
147
|
+
const ngAdd = (opts) => (0, schematics_2.createOtterSchematic)(ngAddFn)(opts);
|
|
153
148
|
exports.ngAdd = ngAdd;
|
|
154
149
|
//# sourceMappingURL=index.js.map
|
|
@@ -4,5 +4,5 @@ import { NgGenerateTypescriptSDKCoreSchematicsSchema } from './schema';
|
|
|
4
4
|
* Generate a typescript SDK source code base on swagger specification
|
|
5
5
|
* @param options
|
|
6
6
|
*/
|
|
7
|
-
export declare const ngGenerateTypescriptSDK: (options: NgGenerateTypescriptSDKCoreSchematicsSchema) =>
|
|
7
|
+
export declare const ngGenerateTypescriptSDK: (options: NgGenerateTypescriptSDKCoreSchematicsSchema) => Rule;
|
|
8
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../schematics/typescript/core/index.ts"],"names":[],"mappings":"AAWA,OAAO,EAOL,IAAI,EAKL,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../schematics/typescript/core/index.ts"],"names":[],"mappings":"AAWA,OAAO,EAOL,IAAI,EAKL,MAAM,4BAA4B,CAAC;AAiCpC,OAAO,EACL,2CAA2C,EAC5C,MAAM,UAAU,CAAC;AAoQlB;;;GAGG;AACH,eAAO,MAAM,uBAAuB,GAAI,SAAS,2CAA2C,SAA6D,CAAC"}
|
|
@@ -5,6 +5,7 @@ const node_fs_1 = require("node:fs");
|
|
|
5
5
|
const path = require("node:path");
|
|
6
6
|
const node_url_1 = require("node:url");
|
|
7
7
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
8
|
+
const schematics_2 = require("@o3r/schematics");
|
|
8
9
|
const semver = require("semver");
|
|
9
10
|
const open_api_cli_generator_1 = require("../../code-generator/open-api-cli-generator/open-api-cli.generator");
|
|
10
11
|
const generators_1 = require("../../helpers/generators");
|
|
@@ -245,9 +246,6 @@ function ngGenerateTypescriptSDKFn(options) {
|
|
|
245
246
|
* Generate a typescript SDK source code base on swagger specification
|
|
246
247
|
* @param options
|
|
247
248
|
*/
|
|
248
|
-
const ngGenerateTypescriptSDK = (options) =>
|
|
249
|
-
const { createOtterSchematic } = await Promise.resolve().then(() => require('@o3r/schematics'));
|
|
250
|
-
return createOtterSchematic(ngGenerateTypescriptSDKFn)(options);
|
|
251
|
-
};
|
|
249
|
+
const ngGenerateTypescriptSDK = (options) => (0, schematics_2.createOtterSchematic)(ngGenerateTypescriptSDKFn)(options);
|
|
252
250
|
exports.ngGenerateTypescriptSDK = ngGenerateTypescriptSDK;
|
|
253
251
|
//# sourceMappingURL=index.js.map
|
|
Binary file
|
|
Binary file
|
|
@@ -9,5 +9,5 @@ export declare function getDasherizeModelName(modelName: string): string;
|
|
|
9
9
|
* Add mock
|
|
10
10
|
* @param options
|
|
11
11
|
*/
|
|
12
|
-
export declare const ngGenerateMock: (options: NgGenerateMockSchematicsSchema) =>
|
|
12
|
+
export declare const ngGenerateMock: (options: NgGenerateMockSchematicsSchema) => Rule;
|
|
13
13
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../schematics/typescript/mock/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAOL,IAAI,EAKL,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../schematics/typescript/mock/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAOL,IAAI,EAKL,MAAM,4BAA4B,CAAC;AAIpC,OAAO,EACL,8BAA8B,EAC/B,MAAM,UAAU,CAAC;AAsBlB;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAE/D;AAgDD;;;GAGG;AACH,eAAO,MAAM,cAAc,GAAI,SAAS,8BAA8B,SAAoD,CAAC"}
|
|
@@ -5,6 +5,7 @@ exports.getDasherizeModelName = getDasherizeModelName;
|
|
|
5
5
|
const path = require("node:path");
|
|
6
6
|
const core_1 = require("@angular-devkit/core");
|
|
7
7
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
8
|
+
const schematics_2 = require("@o3r/schematics");
|
|
8
9
|
function endsWith(singular, matches, excludes = []) {
|
|
9
10
|
return matches.some((match) => singular.endsWith(match)
|
|
10
11
|
&& excludes.every((exclude) => !singular.endsWith(exclude)));
|
|
@@ -75,9 +76,6 @@ function ngGenerateMockFn(options) {
|
|
|
75
76
|
* Add mock
|
|
76
77
|
* @param options
|
|
77
78
|
*/
|
|
78
|
-
const ngGenerateMock = (options) =>
|
|
79
|
-
const { createOtterSchematic } = await Promise.resolve().then(() => require('@o3r/schematics'));
|
|
80
|
-
return createOtterSchematic(ngGenerateMockFn)(options);
|
|
81
|
-
};
|
|
79
|
+
const ngGenerateMock = (options) => (0, schematics_2.createOtterSchematic)(ngGenerateMockFn)(options);
|
|
82
80
|
exports.ngGenerateMock = ngGenerateMock;
|
|
83
81
|
//# sourceMappingURL=index.js.map
|
|
@@ -4,5 +4,5 @@ import type { NgGenerateTypescriptSDKShellSchematicsSchema } from './schema';
|
|
|
4
4
|
* Generate Typescript SDK shell
|
|
5
5
|
* @param options
|
|
6
6
|
*/
|
|
7
|
-
export declare const ngGenerateTypescriptSDK: (options: NgGenerateTypescriptSDKShellSchematicsSchema) =>
|
|
7
|
+
export declare const ngGenerateTypescriptSDK: (options: NgGenerateTypescriptSDKShellSchematicsSchema) => Rule;
|
|
8
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../schematics/typescript/shell/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAOL,IAAI,EAKL,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../schematics/typescript/shell/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAOL,IAAI,EAKL,MAAM,4BAA4B,CAAC;AAgBpC,OAAO,KAAK,EACV,4CAA4C,EAC7C,MAAM,UAAU,CAAC;AAkJlB;;;GAGG;AACH,eAAO,MAAM,uBAAuB,GAAI,SAAS,4CAA4C,SAA6D,CAAC"}
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ngGenerateTypescriptSDK = void 0;
|
|
4
4
|
const node_path_1 = require("node:path");
|
|
5
5
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
6
|
+
const schematics_2 = require("@o3r/schematics");
|
|
6
7
|
const js_yaml_1 = require("js-yaml");
|
|
7
8
|
const node_install_1 = require("../../helpers/node-install");
|
|
8
9
|
const read_package_1 = require("../../helpers/read-package");
|
|
@@ -18,7 +19,6 @@ function ngGenerateTypescriptSDKFn(options) {
|
|
|
18
19
|
};
|
|
19
20
|
const setupRule = async (tree, context) => {
|
|
20
21
|
const amaSdkSchematicsPackageJson = await (0, read_package_1.readPackageJson)();
|
|
21
|
-
const { enforceTildeRange } = await Promise.resolve().then(() => require('@o3r/schematics'));
|
|
22
22
|
const versions = Object.fromEntries(Object.entries({
|
|
23
23
|
tslib: amaSdkSchematicsPackageJson.dependencies.tslib,
|
|
24
24
|
'@commitlint/cli': amaSdkSchematicsPackageJson.generatorDependencies['@commitlint/cli'],
|
|
@@ -53,7 +53,7 @@ function ngGenerateTypescriptSDKFn(options) {
|
|
|
53
53
|
'tsc-watch': amaSdkSchematicsPackageJson.generatorDependencies['tsc-watch'],
|
|
54
54
|
'yaml-eslint-parser': amaSdkSchematicsPackageJson.generatorDependencies['yaml-eslint-parser'],
|
|
55
55
|
typedoc: amaSdkSchematicsPackageJson.generatorDependencies.typedoc
|
|
56
|
-
}).map(([key, range]) => ([key, enforceTildeRange(range)])));
|
|
56
|
+
}).map(([key, range]) => ([key, (0, schematics_2.enforceTildeRange)(range)])));
|
|
57
57
|
const openApiSupportedVersion = typeof amaSdkSchematicsPackageJson.openApiSupportedVersion === 'string'
|
|
58
58
|
&& amaSdkSchematicsPackageJson.openApiSupportedVersion.replace(/\^|~/, '');
|
|
59
59
|
context.logger.warn(JSON.stringify(openApiSupportedVersion));
|
|
@@ -146,9 +146,6 @@ function ngGenerateTypescriptSDKFn(options) {
|
|
|
146
146
|
* Generate Typescript SDK shell
|
|
147
147
|
* @param options
|
|
148
148
|
*/
|
|
149
|
-
const ngGenerateTypescriptSDK = (options) =>
|
|
150
|
-
const { createOtterSchematic } = await Promise.resolve().then(() => require('@o3r/schematics'));
|
|
151
|
-
return createOtterSchematic(ngGenerateTypescriptSDKFn)(options);
|
|
152
|
-
};
|
|
149
|
+
const ngGenerateTypescriptSDK = (options) => (0, schematics_2.createOtterSchematic)(ngGenerateTypescriptSDKFn)(options);
|
|
153
150
|
exports.ngGenerateTypescriptSDK = ngGenerateTypescriptSDK;
|
|
154
151
|
//# sourceMappingURL=index.js.map
|