@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.
@@ -206,6 +206,9 @@ class Attributes {
206
206
  // console.log(relationsString);
207
207
  str += `Array<${relationsString}>`;
208
208
  break;
209
+ case 'blocks':
210
+ str += 'any[]' + requiredString;
211
+ break;
209
212
  case 'string':
210
213
  case 'text':
211
214
  case 'richtext':
@@ -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.getApiSchemas = exports.getComponentSchemas = exports.getComponentCategoryFolders = exports.getApiFolders = exports.readSchema = void 0;
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;