@oak-digital/types-4-strapi-2 1.0.5 → 1.0.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.
- package/lib/attributes/Attributes.js +3 -0
- package/lib/content-types/reader.js +5 -6
- package/lib/interface/builtinInterfaces.d.ts +389 -212
- package/lib/interface/builtinInterfaces.js +3 -3
- package/lib/program/InterfaceManager.d.ts +18 -181
- package/lib/readers/by-file.d.ts +18 -181
- package/lib/readers/load-strapi/index.d.ts +19 -181
- package/lib/utils/casing/index.js +3 -3
- package/lib/utils/index.js +2 -3
- package/package.json +50 -49
- package/lib/readers/types/attributes.d.ts +0 -2569
- package/lib/readers/types/attributes.js +0 -158
- package/lib/readers/types/component.d.ts +0 -793
- package/lib/readers/types/component.js +0 -11
- package/lib/readers/types/content-type-reader.d.ts +0 -16
- package/lib/readers/types/content-type-reader.js +0 -2
- package/lib/readers/types/content-type.d.ts +0 -836
- package/lib/readers/types/content-type.js +0 -16
- package/lib/writers/types/writer.d.ts +0 -4
- package/lib/writers/types/writer.js +0 -2
|
@@ -9,7 +9,11 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.readSchema = readSchema;
|
|
13
|
+
exports.getApiFolders = getApiFolders;
|
|
14
|
+
exports.getComponentCategoryFolders = getComponentCategoryFolders;
|
|
15
|
+
exports.getComponentSchemas = getComponentSchemas;
|
|
16
|
+
exports.getApiSchemas = getApiSchemas;
|
|
13
17
|
const node_fs_1 = require("node:fs");
|
|
14
18
|
const promises_1 = require("node:fs/promises");
|
|
15
19
|
const posix_1 = require("node:path/posix");
|
|
@@ -25,7 +29,6 @@ function readSchema(schemaPath) {
|
|
|
25
29
|
}
|
|
26
30
|
});
|
|
27
31
|
}
|
|
28
|
-
exports.readSchema = readSchema;
|
|
29
32
|
function getApiFolders(strapiSrcRoot) {
|
|
30
33
|
return __awaiter(this, void 0, void 0, function* () {
|
|
31
34
|
const path = (0, posix_1.join)(strapiSrcRoot, 'api');
|
|
@@ -33,7 +36,6 @@ function getApiFolders(strapiSrcRoot) {
|
|
|
33
36
|
return folders;
|
|
34
37
|
});
|
|
35
38
|
}
|
|
36
|
-
exports.getApiFolders = getApiFolders;
|
|
37
39
|
function getComponentCategoryFolders(strapiSrcRoot) {
|
|
38
40
|
return __awaiter(this, void 0, void 0, function* () {
|
|
39
41
|
const path = (0, posix_1.join)(strapiSrcRoot, 'components');
|
|
@@ -45,7 +47,6 @@ function getComponentCategoryFolders(strapiSrcRoot) {
|
|
|
45
47
|
return folders;
|
|
46
48
|
});
|
|
47
49
|
}
|
|
48
|
-
exports.getComponentCategoryFolders = getComponentCategoryFolders;
|
|
49
50
|
function getComponentSchemas(strapiSrcRoot) {
|
|
50
51
|
return __awaiter(this, void 0, void 0, function* () {
|
|
51
52
|
const categories = yield getComponentCategoryFolders(strapiSrcRoot);
|
|
@@ -65,7 +66,6 @@ function getComponentSchemas(strapiSrcRoot) {
|
|
|
65
66
|
return nestedSchemasArr;
|
|
66
67
|
});
|
|
67
68
|
}
|
|
68
|
-
exports.getComponentSchemas = getComponentSchemas;
|
|
69
69
|
function getApiSchemas(strapiSrcRoot) {
|
|
70
70
|
return __awaiter(this, void 0, void 0, function* () {
|
|
71
71
|
const apiFolders = yield getApiFolders(strapiSrcRoot);
|
|
@@ -78,4 +78,3 @@ function getApiSchemas(strapiSrcRoot) {
|
|
|
78
78
|
return schemasWithAttributes;
|
|
79
79
|
});
|
|
80
80
|
}
|
|
81
|
-
exports.getApiSchemas = getApiSchemas;
|