@griddo/core 11.9.9-rc.0 → 11.9.9-rc.1

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 +1 @@
1
- {"version":3,"file":"autotypes.js","sources":["../../../node_modules/tslib/tslib.es6.js","../../../node_modules/kleur/index.js","../src/bin-tools/autotypes/misc/ascii.ts","../node_modules/pkg-dir/node_modules/locate-path/index.js","../node_modules/pkg-dir/node_modules/find-up/index.js","../node_modules/pkg-dir/index.js","../src/bin-tools/autotypes/misc/utils.ts","../src/bin-tools/autotypes/parser/index.ts","../src/bin-tools/autotypes/parsers-list/index.ts","../src/bin-tools/autotypes/parsers-list/components-name.ts","../src/bin-tools/autotypes/parsers-list/datapacks.ts","../src/bin-tools/autotypes/parsers-list/data-templates-names.ts","../src/bin-tools/autotypes/parsers-list/form-categories-name.ts","../src/bin-tools/autotypes/parsers-list/form-fields.ts","../src/bin-tools/autotypes/parsers-list/form-templates.ts","../src/bin-tools/autotypes/parsers-list/languages.ts","../src/bin-tools/autotypes/parsers-list/menu-items.ts","../src/bin-tools/autotypes/parsers-list/module-categories.ts","../src/bin-tools/autotypes/parsers-list/modules-name.ts","../src/bin-tools/autotypes/parsers-list/page-data.ts","../src/bin-tools/autotypes/parsers-list/page-data-props.ts","../src/bin-tools/autotypes/parsers-list/simple-data.ts","../src/bin-tools/autotypes/parsers-list/simple-data-props.ts","../src/bin-tools/autotypes/parsers-list/themes.ts","../src/bin-tools/autotypes/parsers-list/taxonomy.ts","../src/bin-tools/autotypes/parsers-list/taxonomy-props.ts","../src/bin-tools/autotypes/parsers-list/template-section-list.ts","../src/bin-tools/autotypes/parsers-list/templates-name.ts","../src/bin-tools/autotypes/parsers-list/ui-data-props.ts","../src/bin-tools/autotypes/index.ts"],"sourcesContent":["/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise, SuppressedError, Symbol, Iterator */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\r\n function accept(f) { if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\"); return f; }\r\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\r\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\r\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\r\n var _, done = false;\r\n for (var i = decorators.length - 1; i >= 0; i--) {\r\n var context = {};\r\n for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\r\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\r\n context.addInitializer = function (f) { if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\"); extraInitializers.push(accept(f || null)); };\r\n var result = (0, decorators[i])(kind === \"accessor\" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\r\n if (kind === \"accessor\") {\r\n if (result === void 0) continue;\r\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\r\n if (_ = accept(result.get)) descriptor.get = _;\r\n if (_ = accept(result.set)) descriptor.set = _;\r\n if (_ = accept(result.init)) initializers.unshift(_);\r\n }\r\n else if (_ = accept(result)) {\r\n if (kind === \"field\") initializers.unshift(_);\r\n else descriptor[key] = _;\r\n }\r\n }\r\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\r\n done = true;\r\n};\r\n\r\nexport function __runInitializers(thisArg, initializers, value) {\r\n var useValue = arguments.length > 2;\r\n for (var i = 0; i < initializers.length; i++) {\r\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\r\n }\r\n return useValue ? value : void 0;\r\n};\r\n\r\nexport function __propKey(x) {\r\n return typeof x === \"symbol\" ? x : \"\".concat(x);\r\n};\r\n\r\nexport function __setFunctionName(f, name, prefix) {\r\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\r\n return Object.defineProperty(f, \"name\", { configurable: true, value: prefix ? \"\".concat(prefix, \" \", name) : name });\r\n};\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === \"function\" ? Iterator : Object).prototype);\r\n return g.next = verb(0), g[\"throw\"] = verb(1), g[\"return\"] = verb(2), typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n var desc = Object.getOwnPropertyDescriptor(m, k);\r\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\r\n desc = { enumerable: true, get: function() { return m[k]; } };\r\n }\r\n Object.defineProperty(o, k2, desc);\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = Object.create((typeof AsyncIterator === \"function\" ? AsyncIterator : Object).prototype), verb(\"next\"), verb(\"throw\"), verb(\"return\", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }\r\n function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nvar ownKeys = function(o) {\r\n ownKeys = Object.getOwnPropertyNames || function (o) {\r\n var ar = [];\r\n for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;\r\n return ar;\r\n };\r\n return ownKeys(o);\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== \"default\") __createBinding(result, mod, k[i]);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n\r\nexport function __classPrivateFieldIn(state, receiver) {\r\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\r\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\r\n}\r\n\r\nexport function __addDisposableResource(env, value, async) {\r\n if (value !== null && value !== void 0) {\r\n if (typeof value !== \"object\" && typeof value !== \"function\") throw new TypeError(\"Object expected.\");\r\n var dispose, inner;\r\n if (async) {\r\n if (!Symbol.asyncDispose) throw new TypeError(\"Symbol.asyncDispose is not defined.\");\r\n dispose = value[Symbol.asyncDispose];\r\n }\r\n if (dispose === void 0) {\r\n if (!Symbol.dispose) throw new TypeError(\"Symbol.dispose is not defined.\");\r\n dispose = value[Symbol.dispose];\r\n if (async) inner = dispose;\r\n }\r\n if (typeof dispose !== \"function\") throw new TypeError(\"Object not disposable.\");\r\n if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };\r\n env.stack.push({ value: value, dispose: dispose, async: async });\r\n }\r\n else if (async) {\r\n env.stack.push({ async: true });\r\n }\r\n return value;\r\n\r\n}\r\n\r\nvar _SuppressedError = typeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\r\n var e = new Error(message);\r\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\r\n};\r\n\r\nexport function __disposeResources(env) {\r\n function fail(e) {\r\n env.error = env.hasError ? new _SuppressedError(e, env.error, \"An error was suppressed during disposal.\") : e;\r\n env.hasError = true;\r\n }\r\n var r, s = 0;\r\n function next() {\r\n while (r = env.stack.pop()) {\r\n try {\r\n if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);\r\n if (r.dispose) {\r\n var result = r.dispose.call(r.value);\r\n if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\r\n }\r\n else s |= 1;\r\n }\r\n catch (e) {\r\n fail(e);\r\n }\r\n }\r\n if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();\r\n if (env.hasError) throw env.error;\r\n }\r\n return next();\r\n}\r\n\r\nexport function __rewriteRelativeImportExtension(path, preserveJsx) {\r\n if (typeof path === \"string\" && /^\\.\\.?\\//.test(path)) {\r\n return path.replace(/\\.(tsx)$|((?:\\.d)?)((?:\\.[^./]+?)?)\\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {\r\n return tsx ? preserveJsx ? \".jsx\" : \".js\" : d && (!ext || !cm) ? m : (d + ext + \".\" + cm.toLowerCase() + \"js\");\r\n });\r\n }\r\n return path;\r\n}\r\n\r\nexport default {\r\n __extends: __extends,\r\n __assign: __assign,\r\n __rest: __rest,\r\n __decorate: __decorate,\r\n __param: __param,\r\n __esDecorate: __esDecorate,\r\n __runInitializers: __runInitializers,\r\n __propKey: __propKey,\r\n __setFunctionName: __setFunctionName,\r\n __metadata: __metadata,\r\n __awaiter: __awaiter,\r\n __generator: __generator,\r\n __createBinding: __createBinding,\r\n __exportStar: __exportStar,\r\n __values: __values,\r\n __read: __read,\r\n __spread: __spread,\r\n __spreadArrays: __spreadArrays,\r\n __spreadArray: __spreadArray,\r\n __await: __await,\r\n __asyncGenerator: __asyncGenerator,\r\n __asyncDelegator: __asyncDelegator,\r\n __asyncValues: __asyncValues,\r\n __makeTemplateObject: __makeTemplateObject,\r\n __importStar: __importStar,\r\n __importDefault: __importDefault,\r\n __classPrivateFieldGet: __classPrivateFieldGet,\r\n __classPrivateFieldSet: __classPrivateFieldSet,\r\n __classPrivateFieldIn: __classPrivateFieldIn,\r\n __addDisposableResource: __addDisposableResource,\r\n __disposeResources: __disposeResources,\r\n __rewriteRelativeImportExtension: __rewriteRelativeImportExtension,\r\n};\r\n","'use strict';\n\nconst { FORCE_COLOR, NODE_DISABLE_COLORS, TERM } = process.env;\n\nconst $ = {\n\tenabled: !NODE_DISABLE_COLORS && TERM !== 'dumb' && FORCE_COLOR !== '0',\n\n\t// modifiers\n\treset: init(0, 0),\n\tbold: init(1, 22),\n\tdim: init(2, 22),\n\titalic: init(3, 23),\n\tunderline: init(4, 24),\n\tinverse: init(7, 27),\n\thidden: init(8, 28),\n\tstrikethrough: init(9, 29),\n\n\t// colors\n\tblack: init(30, 39),\n\tred: init(31, 39),\n\tgreen: init(32, 39),\n\tyellow: init(33, 39),\n\tblue: init(34, 39),\n\tmagenta: init(35, 39),\n\tcyan: init(36, 39),\n\twhite: init(37, 39),\n\tgray: init(90, 39),\n\tgrey: init(90, 39),\n\n\t// background colors\n\tbgBlack: init(40, 49),\n\tbgRed: init(41, 49),\n\tbgGreen: init(42, 49),\n\tbgYellow: init(43, 49),\n\tbgBlue: init(44, 49),\n\tbgMagenta: init(45, 49),\n\tbgCyan: init(46, 49),\n\tbgWhite: init(47, 49)\n};\n\nfunction run(arr, str) {\n\tlet i=0, tmp, beg='', end='';\n\tfor (; i < arr.length; i++) {\n\t\ttmp = arr[i];\n\t\tbeg += tmp.open;\n\t\tend += tmp.close;\n\t\tif (str.includes(tmp.close)) {\n\t\t\tstr = str.replace(tmp.rgx, tmp.close + tmp.open);\n\t\t}\n\t}\n\treturn beg + str + end;\n}\n\nfunction chain(has, keys) {\n\tlet ctx = { has, keys };\n\n\tctx.reset = $.reset.bind(ctx);\n\tctx.bold = $.bold.bind(ctx);\n\tctx.dim = $.dim.bind(ctx);\n\tctx.italic = $.italic.bind(ctx);\n\tctx.underline = $.underline.bind(ctx);\n\tctx.inverse = $.inverse.bind(ctx);\n\tctx.hidden = $.hidden.bind(ctx);\n\tctx.strikethrough = $.strikethrough.bind(ctx);\n\n\tctx.black = $.black.bind(ctx);\n\tctx.red = $.red.bind(ctx);\n\tctx.green = $.green.bind(ctx);\n\tctx.yellow = $.yellow.bind(ctx);\n\tctx.blue = $.blue.bind(ctx);\n\tctx.magenta = $.magenta.bind(ctx);\n\tctx.cyan = $.cyan.bind(ctx);\n\tctx.white = $.white.bind(ctx);\n\tctx.gray = $.gray.bind(ctx);\n\tctx.grey = $.grey.bind(ctx);\n\n\tctx.bgBlack = $.bgBlack.bind(ctx);\n\tctx.bgRed = $.bgRed.bind(ctx);\n\tctx.bgGreen = $.bgGreen.bind(ctx);\n\tctx.bgYellow = $.bgYellow.bind(ctx);\n\tctx.bgBlue = $.bgBlue.bind(ctx);\n\tctx.bgMagenta = $.bgMagenta.bind(ctx);\n\tctx.bgCyan = $.bgCyan.bind(ctx);\n\tctx.bgWhite = $.bgWhite.bind(ctx);\n\n\treturn ctx;\n}\n\nfunction init(open, close) {\n\tlet blk = {\n\t\topen: `\\x1b[${open}m`,\n\t\tclose: `\\x1b[${close}m`,\n\t\trgx: new RegExp(`\\\\x1b\\\\[${close}m`, 'g')\n\t};\n\treturn function (txt) {\n\t\tif (this !== void 0 && this.has !== void 0) {\n\t\t\tthis.has.includes(open) || (this.has.push(open),this.keys.push(blk));\n\t\t\treturn txt === void 0 ? this : $.enabled ? run(this.keys, txt+'') : txt+'';\n\t\t}\n\t\treturn txt === void 0 ? chain([open], [blk]) : $.enabled ? run([blk], txt+'') : txt+'';\n\t};\n}\n\nmodule.exports = $;\n","const head = `/* eslint-disable @typescript-eslint/ban-types */\n/* eslint-disable @typescript-eslint/no-unused-vars */\n/* eslint-disable no-use-before-define */\n//\n//\n// ' ____\n// /\\\\ \\\\\n// º / /\\\\ \\\\\n// ' / / \\\\ _>\n// ' _\\\\ \\\\__> \\\\__\n// ' O ( __;·;______ ) AutoTypes\n// O º, | , , \\\\ \\\\\\\\ ·..~~.·~.·\n// ,,, /| , , /\\\\ <\\\\\\\\\n// \\\\''\\\\-' ⎩, <\\\\/\\\\ \\\\ \\\\\n// \\\\_/ /\\\\_____⎩/ > > >\n// '___' <_(_)__> / \\\\ <\n// / / ´ \\\\ | \\\\___//\\\\\\\\\n// / / | / > > \\\\\\\\\n// · ··~~~~·~·~~~~~~~·~··~~~~~·~·~~·~~~~·~~~~~·· · ·\n//\n// Embrace the beauty of effortless typing by indulging in the benefits of them\n// sans the actual typing!\n//\n// Behold! These dynamically generated types were conjured from the schemas\n// nestled within this repository. However, should you yearn to expand upon\n// these types, kindly abstain from doing so in this file, lest AutoTypes'\n// magic shall smite your changes with each schema modification.\n//\n// Check out the details of Griddo AutoTypes in:\n// https://griddoio.notion.site/Griddo-AutoTypes-e7420867dd2e489c8da34a493b763cd8>\n//\n// Happy magic types!\n//\nimport { Core, Fields, Hideable, NonEmptyArray } from \"@griddo/core\"\n//\n`;\n\nexport { head };\n","import process from 'node:process';\nimport path from 'node:path';\nimport fs, {promises as fsPromises} from 'node:fs';\nimport {fileURLToPath} from 'node:url';\nimport pLocate from 'p-locate';\n\nconst typeMappings = {\n\tdirectory: 'isDirectory',\n\tfile: 'isFile',\n};\n\nfunction checkType(type) {\n\tif (Object.hasOwnProperty.call(typeMappings, type)) {\n\t\treturn;\n\t}\n\n\tthrow new Error(`Invalid type specified: ${type}`);\n}\n\nconst matchType = (type, stat) => stat[typeMappings[type]]();\n\nconst toPath = urlOrPath => urlOrPath instanceof URL ? fileURLToPath(urlOrPath) : urlOrPath;\n\nexport async function locatePath(\n\tpaths,\n\t{\n\t\tcwd = process.cwd(),\n\t\ttype = 'file',\n\t\tallowSymlinks = true,\n\t\tconcurrency,\n\t\tpreserveOrder,\n\t} = {},\n) {\n\tcheckType(type);\n\tcwd = toPath(cwd);\n\n\tconst statFunction = allowSymlinks ? fsPromises.stat : fsPromises.lstat;\n\n\treturn pLocate(paths, async path_ => {\n\t\ttry {\n\t\t\tconst stat = await statFunction(path.resolve(cwd, path_));\n\t\t\treturn matchType(type, stat);\n\t\t} catch {\n\t\t\treturn false;\n\t\t}\n\t}, {concurrency, preserveOrder});\n}\n\nexport function locatePathSync(\n\tpaths,\n\t{\n\t\tcwd = process.cwd(),\n\t\ttype = 'file',\n\t\tallowSymlinks = true,\n\t} = {},\n) {\n\tcheckType(type);\n\tcwd = toPath(cwd);\n\n\tconst statFunction = allowSymlinks ? fs.statSync : fs.lstatSync;\n\n\tfor (const path_ of paths) {\n\t\ttry {\n\t\t\tconst stat = statFunction(path.resolve(cwd, path_), {\n\t\t\t\tthrowIfNoEntry: false,\n\t\t\t});\n\n\t\t\tif (!stat) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif (matchType(type, stat)) {\n\t\t\t\treturn path_;\n\t\t\t}\n\t\t} catch {}\n\t}\n}\n","import path from 'node:path';\nimport {fileURLToPath} from 'node:url';\nimport {locatePath, locatePathSync} from 'locate-path';\n\nconst toPath = urlOrPath => urlOrPath instanceof URL ? fileURLToPath(urlOrPath) : urlOrPath;\n\nexport const findUpStop = Symbol('findUpStop');\n\nexport async function findUpMultiple(name, options = {}) {\n\tlet directory = path.resolve(toPath(options.cwd) || '');\n\tconst {root} = path.parse(directory);\n\tconst stopAt = path.resolve(directory, options.stopAt || root);\n\tconst limit = options.limit || Number.POSITIVE_INFINITY;\n\tconst paths = [name].flat();\n\n\tconst runMatcher = async locateOptions => {\n\t\tif (typeof name !== 'function') {\n\t\t\treturn locatePath(paths, locateOptions);\n\t\t}\n\n\t\tconst foundPath = await name(locateOptions.cwd);\n\t\tif (typeof foundPath === 'string') {\n\t\t\treturn locatePath([foundPath], locateOptions);\n\t\t}\n\n\t\treturn foundPath;\n\t};\n\n\tconst matches = [];\n\t// eslint-disable-next-line no-constant-condition\n\twhile (true) {\n\t\t// eslint-disable-next-line no-await-in-loop\n\t\tconst foundPath = await runMatcher({...options, cwd: directory});\n\n\t\tif (foundPath === findUpStop) {\n\t\t\tbreak;\n\t\t}\n\n\t\tif (foundPath) {\n\t\t\tmatches.push(path.resolve(directory, foundPath));\n\t\t}\n\n\t\tif (directory === stopAt || matches.length >= limit) {\n\t\t\tbreak;\n\t\t}\n\n\t\tdirectory = path.dirname(directory);\n\t}\n\n\treturn matches;\n}\n\nexport function findUpMultipleSync(name, options = {}) {\n\tlet directory = path.resolve(toPath(options.cwd) || '');\n\tconst {root} = path.parse(directory);\n\tconst stopAt = options.stopAt || root;\n\tconst limit = options.limit || Number.POSITIVE_INFINITY;\n\tconst paths = [name].flat();\n\n\tconst runMatcher = locateOptions => {\n\t\tif (typeof name !== 'function') {\n\t\t\treturn locatePathSync(paths, locateOptions);\n\t\t}\n\n\t\tconst foundPath = name(locateOptions.cwd);\n\t\tif (typeof foundPath === 'string') {\n\t\t\treturn locatePathSync([foundPath], locateOptions);\n\t\t}\n\n\t\treturn foundPath;\n\t};\n\n\tconst matches = [];\n\t// eslint-disable-next-line no-constant-condition\n\twhile (true) {\n\t\tconst foundPath = runMatcher({...options, cwd: directory});\n\n\t\tif (foundPath === findUpStop) {\n\t\t\tbreak;\n\t\t}\n\n\t\tif (foundPath) {\n\t\t\tmatches.push(path.resolve(directory, foundPath));\n\t\t}\n\n\t\tif (directory === stopAt || matches.length >= limit) {\n\t\t\tbreak;\n\t\t}\n\n\t\tdirectory = path.dirname(directory);\n\t}\n\n\treturn matches;\n}\n\nexport async function findUp(name, options = {}) {\n\tconst matches = await findUpMultiple(name, {...options, limit: 1});\n\treturn matches[0];\n}\n\nexport function findUpSync(name, options = {}) {\n\tconst matches = findUpMultipleSync(name, {...options, limit: 1});\n\treturn matches[0];\n}\n\nexport {\n\tpathExists,\n\tpathExistsSync,\n} from 'path-exists';\n","import path from 'node:path';\nimport {findUp, findUpSync} from 'find-up';\n\nexport async function packageDirectory({cwd} = {}) {\n\tconst filePath = await findUp('package.json', {cwd});\n\treturn filePath && path.dirname(filePath);\n}\n\nexport function packageDirectorySync({cwd} = {}) {\n\tconst filePath = findUpSync('package.json', {cwd});\n\treturn filePath && path.dirname(filePath);\n}\n","import type {\n\tFieldReturnTypes,\n\tFields,\n\tKindSchema,\n\tSchemaFieldTypes,\n\tSchemaTypeWithComponentProp,\n} from \"./types\";\nimport type { Schema } from \"../../..\";\nimport type * as PageContentType_Fields from \"../../../types/schema-fields/page-content-type-fields\";\nimport type { PageContentTypeFields } from \"../../../types/schema-fields/page-content-type-fields\";\nimport type {\n\tThemeVisualUniqueSelection,\n\tThumbnailOption,\n} from \"../../../types/schema-fields/props\";\nimport type { SimpleContentTypeFields } from \"../../../types/schema-fields/simple-content-type-fields\";\nimport type * as UI_Fields from \"../../../types/schema-fields/ui-fields\";\nimport type { UIFields } from \"../../../types/schema-fields/ui-fields\";\nimport type { UIFormFields } from \"../../../types/schema-fields/ui-form-fields\";\nimport type { UIFormTemplateFields } from \"../../../types/schema-fields/ui-form-template-fields\";\nimport type { UITemplateFields } from \"../../../types/schema-fields/ui-template-fields\";\nimport type { AutoTypesConfig, Module } from \"../../../types/schemas\";\n\nimport path from \"node:path\";\n\nimport { packageDirectorySync } from \"pkg-dir\";\nimport prettier from \"prettier\";\n\n/**\n * Return a string separated by the pipe char \"|\" using the `value` from object array.\n */\nfunction getGenericFromOptions<T = unknown>(options: Array<{ value: T }>) {\n\treturn options\n\t\t.map(({ value }) => (typeof value === \"string\" ? `\"${value}\"` : value))\n\t\t.join(\"|\");\n}\n\n/**\n * Return a string separated by the pipe char \"|\" using the `name` from object array.\n */\nfunction getGenericFromCheckBoxOptions<T>(options: Array<{ name: T }>) {\n\treturn options\n\t\t.map(({ name }) => (typeof name === \"string\" ? `\"${name}\"` : name))\n\t\t.join(\"|\");\n}\n\n// for components containers\n// whitelist.length = 1\n// whitelist.length > 1\nfunction getGenericFromWhitelist(whiteList: Array<string>) {\n\tconst { interfaceSuffix } = readConfig();\n\n\tif (whiteList.length > 1) {\n\t\treturn `Record<string, \n\t\t\t${whiteList\n\t\t\t\t.map((whiteListItem) => `${whiteListItem}${interfaceSuffix}`)\n\t\t\t\t.join(\"|\")}\n\t\t\t>`;\n\t}\n\n\t// Si solo hay un elemento\n\treturn whiteList.map((item) => `${item}${interfaceSuffix}`).join(\"\");\n}\n\nfunction returnType(type: SchemaFieldTypes) {\n\tconst typeObj: Record<SchemaFieldTypes, FieldReturnTypes> = {\n\t\tAIReferenceField: \"Fields.AIReference\",\n\t\tFormCategorySelect: \"Fields.FormCategorySelect\",\n\t\tFormContainer: \"Fields.FormContainer\",\n\t\tFormFieldArray: \"Fields.FormFieldArray\",\n\t\tArrayFieldGroup: \"Fields.ArrayFieldGroup\",\n\t\tAsyncCheckGroup: \"Fields.AsyncCheckGroup\",\n\t\tAsyncSelect: \"Fields.AsyncSelect\",\n\t\tCheckGroup: \"Fields.CheckGroup\",\n\t\tColorPicker: \"Fields.ColorPicker\",\n\t\tComponentArray: \"Fields.ComponentArray\",\n\t\tComponentContainer: \"Fields.ComponentContainer\",\n\t\tConditionalField: \"Fields.Conditional\",\n\t\tDateField: \"Fields.Date\",\n\t\tFieldGroup: \"Fields.FieldGroup\",\n\t\tFieldsDivider: \"Fields.FieldsDivider\",\n\t\tFileField: \"Fields.File\",\n\t\tHeadingField: \"Fields.Heading\",\n\t\tImageField: \"Fields.Image\",\n\t\tLinkField: \"Fields.Link\",\n\t\tMultiCheckSelect: \"Fields.MultiCheckSelect\",\n\t\tMultiCheckSelectGroup: \"Fields.MultiCheckSelectGroup\",\n\t\tNoteField: \"Fields.Note\",\n\t\tNumberField: \"Fields.Number\",\n\t\tRadioGroup: \"Fields.RadioGroup\",\n\t\tReferenceField: \"Fields.Reference\",\n\t\tRichText: \"Fields.RichText\",\n\t\tSelect: \"Fields.Select\",\n\t\tSliderField: \"Fields.Slider\",\n\t\tTagsField: \"Fields.Tags\",\n\t\tTextArea: \"Fields.TextArea\",\n\t\tTextField: \"Fields.Text\",\n\t\tTimeField: \"Fields.Time\",\n\t\tToggleField: \"Fields.Toggle\",\n\t\tUniqueCheck: \"Fields.UniqueCheck\",\n\t\tUrlField: \"Fields.Url\",\n\t\tVisualUniqueSelection: \"Fields.VisualUniqueSelection\",\n\t\tWysiwyg: \"Fields.Wysiwyg\",\n\t};\n\treturn typeObj[type];\n}\n\n/** Build a interface prop based on the field from the schema.\n * Optionally it can receives a custom value for the type and a generic string to use as generic value\n *\n * @example\n * getGriddoFieldPropType(TextFieldObjectFromSchema)\n * // -> TextFieldObjectFromSchema.key: Fields.TextField\n * getGriddoFieldPropType(TextFieldObjectFromSchema, 'MyCustomValue', 'foo')\n * // -> TextFieldObjectFromSchema.key: MyCustomValue<foo>\n */\ntype GetInterfacePropTypeOptions = {\n\treturnTypeName?: FieldReturnTypes;\n\tgeneric?: string;\n};\n\n/**\n * Return a serialized type from a Griddo schema field.\n *\n * @param Fields A Griddo field object\n * @param options An options object\n * @returns A string that represent a interface prop type.\n * @example\n * interface SomeInterface {\n * \tprop: boolean; // this function returns a string for this: `prop: boolean`\n * }\n */\nfunction getGriddoFieldPropType(\n\tfield: Fields,\n\toptions?: GetInterfacePropTypeOptions,\n) {\n\tconst { returnTypeName, generic } = options || {};\n\n\t// The field has `hideable: true`\n\tconst hasHideable = \"hideable\" in field ? Boolean(field.hideable) : false;\n\t// Generic part\n\tconst genericStr = generic ? `<${generic}>` : \"\";\n\t// The field type is from field.type prop or custom\n\tconst returnTypeNameStr = returnTypeName || returnType(field.type);\n\t// Field type with generic: field<generic>\n\tconst returnTypeNameWithGeneriStr = `${returnTypeNameStr}${genericStr}`;\n\t// Field type wrapped in Hideable helper type: Hideable<field<generic>>\n\tconst typeWrappedWithHideable = hasHideable\n\t\t? `Hideable<${returnTypeNameWithGeneriStr}>`\n\t\t: `${returnTypeNameWithGeneriStr}`;\n\n\t// JSDoc\n\tconst jsDocString = field._autoType?.doc || \"\";\n\t// prop?: Type\n\tconst typeString = `${field.key}?: ${typeWrappedWithHideable}`;\n\n\treturn `\n\t\t${jsDocString}\n\t\t${typeString}\n\t`;\n}\n\nasync function prettify(input: string) {\n\tconst localConfFile = await prettier.resolveConfigFile();\n\tconst localConf = await prettier.resolveConfig(localConfFile as string);\n\tconst autoTypesConfig = { useTabs: true };\n\tconst prettierConfig = localConf || autoTypesConfig;\n\n\tconst prettierConfigProps = {\n\t\t...prettierConfig,\n\t\tparser: \"typescript\",\n\t};\n\n\t// Prettier and white space clearing...\n\treturn (await prettier.format(input, prettierConfigProps)).replace(\n\t\t/^\\s*\\n/gm,\n\t\t\"\",\n\t);\n}\n\nconst IS_COMPONENT_LIBRARY = __dirname.includes(\"node_modules\");\n\n/**\n * Returns the instance or monorepo paths.\n *\n * @param customPath The path for the instance components\n */\nfunction resolveInstancePath() {\n\tconst cwd = __dirname;\n\tconst componentsPath = IS_COMPONENT_LIBRARY\n\t\t? \"../../../\"\n\t\t: \"../griddo-components\";\n\n\treturn path.resolve(packageDirectorySync({ cwd }), componentsPath);\n}\n\nfunction extractMergedSchemas(structuredData: any) {\n\t// Preprocesing some schemas\n\t// These variables will be get directly from the griddo.config.ts in the\n\t// future. Now we need to extract them from\n\t// `configFile.schemas.structuredData` and `configFile.schemas.all`\n\tconst categoryContentTypes = extractCategoryContentTypes(structuredData);\n\tconst pageContentTypes = extractPageContentTypes(structuredData);\n\tconst simpleContentTypes = extractSimpleContentTypes(structuredData);\n\n\treturn {\n\t\tcategoryContentTypes,\n\t\tpageContentTypes,\n\t\tsimpleContentTypes,\n\t};\n}\n\nfunction extractCategoryContentTypes(\n\tcategoryContentTypeSchemas: Record<string, Schema.CategoryContentType>,\n) {\n\tconst objs: Record<string, Schema.CategoryContentType> = {};\n\tfor (const key in categoryContentTypeSchemas) {\n\t\tconst schema = categoryContentTypeSchemas[key];\n\t\tif (!schema.fromPage && schema.taxonomy) {\n\t\t\tobjs[key] = schema;\n\t\t}\n\t}\n\n\treturn objs;\n}\n\nfunction extractPageContentTypes(\n\tpageContentTypeSchemas: Record<string, Schema.PageContentType>,\n) {\n\tconst objs: Record<string, Schema.PageContentType> = {};\n\tfor (const key in pageContentTypeSchemas) {\n\t\tconst schema = pageContentTypeSchemas[key];\n\t\tif (schema.fromPage) {\n\t\t\tobjs[key] = schema;\n\t\t}\n\t}\n\n\treturn objs;\n}\n\nfunction extractSimpleContentTypes(\n\tsimpleContentTypeSchemas: Record<string, Schema.SimpleContentType>,\n) {\n\tconst objs: Record<string, Schema.SimpleContentType> = {};\n\tfor (const key in simpleContentTypeSchemas) {\n\t\tconst schema = simpleContentTypeSchemas[key];\n\t\tif (!schema.fromPage && !schema.taxonomy) {\n\t\t\tobjs[key] = schema;\n\t\t}\n\t}\n\n\treturn objs;\n}\n\nfunction readConfig(): AutoTypesConfig {\n\tconst configPath = path.join(resolveInstancePath(), \"griddo.config.ts\");\n\tconst config = require(configPath);\n\tconst configWithFallbacks = {\n\t\tinterfaceSuffix: config.autotypes?.interfaceSuffix || \"Props\",\n\t\tcontentTypeSuffix: config.autotypes?.contentTypeSuffix || \"ContentType\",\n\t\tpublicApiSuffix: config.autotypes?.publicApiSuffix || \"List\",\n\t};\n\n\treturn configWithFallbacks;\n}\n\n/**\n * Return an optional property (the key in some Griddo field) and its value\n * (some Griddo field type) serialized based on a schema field.\n *\n * @param field A Griddo field object\n * @param kind Schema type in order to later do some operations with fields\n * @param options Object options\n * @example\n * getTypeFromField({ type: 'TextField', key: 'cardTitle', ... }, \"component\")\n * // returns -> \"cardTitle?: Fields.Text\"\n */\nfunction getTypeFromField(\n\tfield:\n\t\t| UIFields\n\t\t| UIFormFields\n\t\t| UITemplateFields\n\t\t| UIFormTemplateFields\n\t\t| SimpleContentTypeFields\n\t\t| PageContentTypeFields,\n\tkind: KindSchema,\n\toptions: {\n\t\thasDistributorData: boolean;\n\t\tgetStaticData: boolean;\n\t\tmoduleSchemas: Array<Module | undefined>;\n\t\tschema: SchemaTypeWithComponentProp;\n\t\tallSchemas: any;\n\t},\n): string | undefined {\n\t// Config\n\tconst { contentTypeSuffix, interfaceSuffix } = readConfig();\n\n\t//\n\t// Ignore - Bypass\n\t//\n\t// Empezamos ignorando ciertos fields que no necesitamos que generen types\n\t// aunque estén en los schemas. De esta manera los quitamos del proceso en\n\t// primera instancia y evitamos errores en los types de esta función.\n\tif (field.type === \"FieldsDivider\") {\n\t\treturn \"// FieldsDivider\";\n\t}\n\n\t// Ignore type generation from schema _autoType prop\n\tif (field._autoType?.ignore) {\n\t\treturn \"// Ignored by AutoType.ignore\";\n\t}\n\n\t//\n\t// Go!\n\t//\n\tconst { type, _autoType, key } = field;\n\tconst { hasDistributorData, getStaticData } = options;\n\n\t// If the field is missing the prop key or type, return an \"error\" string.\n\tif (!type || !key) {\n\t\treturn `\n\t\t\t/** · (ノ-_-)ノ ミ ┴┴ You forgot to write the \\`type\\` | \\`key\\` or some mandatory prop */\n\t\t`;\n\t}\n\n\t// Simple fields\n\t// { type: \"TextField\", key: \"foo\" } --> \"foo?: Fields.Text\"\n\tif (\n\t\ttype === \"DateField\" ||\n\t\ttype === \"FileField\" ||\n\t\ttype === \"ImageField\" ||\n\t\ttype === \"NoteField\" ||\n\t\ttype === \"NumberField\" ||\n\t\ttype === \"RichText\" ||\n\t\ttype === \"SliderField\" ||\n\t\ttype === \"TagsField\" ||\n\t\ttype === \"TextArea\" ||\n\t\ttype === \"TextField\" ||\n\t\ttype === \"TimeField\" ||\n\t\ttype === \"ToggleField\" ||\n\t\ttype === \"UniqueCheck\" ||\n\t\ttype === \"UrlField\" ||\n\t\ttype === \"Wysiwyg\"\n\t) {\n\t\treturn getGriddoFieldPropType(field);\n\t}\n\n\t// MultiCheckSelect\n\t// { type: \"MultiCheckSelect\", key: \"foo\" } --> \"foo?: Fields.MultiCheckSelectGroup<Relations, true>\"\n\tif (type === \"MultiCheckSelect\") {\n\t\t// - MultiCheckSelect in a ContentType schema (page or simple)\n\t\t//\n\t\t// Cuando está dentro de un ContentType el field devuelve cosas\n\t\t// distintas a cuando está dentro de un schema de UI y tiene en cuenta:\n\t\t// - Si está siendo requerido por API pública (useList)\n\t\t// - Si tiene relations\n\t\t// - Se añade el contentType relacionado para poder hacera autocomplete\n\t\tif (kind === \"pageContentType\" || kind === \"simpleContentType\") {\n\t\t\tconst relationData = `${field.source}${contentTypeSuffix}${interfaceSuffix}`;\n\t\t\treturn getGriddoFieldPropType(field, {\n\t\t\t\tgeneric: `Relations, FromList, ${relationData}<false, false>, FromDistributor`,\n\t\t\t});\n\t\t}\n\n\t\t// - Rest of schemas\n\t\t//\n\t\t// { type: \"MultiCheckSelect\", key: \"foo\" } --> \"foo?: Fields.MultiCheckSelectGroup<Relations>\"\n\t\treturn getGriddoFieldPropType(field, {\n\t\t\tgeneric: \"true\",\n\t\t});\n\t}\n\n\t// AsyncCheckGroup\n\t// Duplicate from MultiCheckSelect\n\tif (type === \"AsyncCheckGroup\") {\n\t\tif (kind === \"pageContentType\" || kind === \"simpleContentType\") {\n\t\t\tconst relationData = `${field.source}${contentTypeSuffix}${interfaceSuffix}`;\n\t\t\treturn getGriddoFieldPropType(field, {\n\t\t\t\tgeneric: `Relations, FromList, ${relationData}<false, false>, FromDistributor`,\n\t\t\t});\n\t\t}\n\n\t\treturn getGriddoFieldPropType(field, {\n\t\t\tgeneric: \"true\",\n\t\t});\n\t}\n\n\t// MultiCheckSelectGroup\n\t// { type: \"MultiCheckSelectGroup\", key: \"foo\" } --> \"foo?: Fields.MultiCheckSelectGroup<>\"\n\tif (type === \"MultiCheckSelectGroup\") {\n\t\tconst keys = field.elements.map((element) => `\"${element.key}\"`).join(\"|\");\n\t\tconst relations = field._autoType?.relations;\n\t\tconst generic = [keys, relations].join(\",\");\n\n\t\treturn getGriddoFieldPropType(field, { generic });\n\t}\n\n\t// ColorPicker\n\t// { type: \"ColorPickerFixed\", key: \"foo\" } --> \"foo?: Fields.ColorPickerFixed<>\"\n\tif (type === \"ColorPicker\") {\n\t\tif (field.isThemePalette) {\n\t\t\treturn getGriddoFieldPropType(field, {\n\t\t\t\treturnTypeName: \"Fields.ColorPickerFixed\",\n\t\t\t});\n\t\t}\n\n\t\treturn getGriddoFieldPropType(field);\n\t}\n\n\t// HeadingField, RadioGroup, Select\n\t// Generic from options.values\n\t// { type: \"HeadingField\", key: \"foo\" } --> \"foo?: Fields.Heading<>\"\n\tif (type === \"HeadingField\" || type === \"RadioGroup\" || type === \"Select\") {\n\t\tconst { options } = field;\n\t\tconst generic = getGenericFromOptions(options);\n\n\t\treturn getGriddoFieldPropType(field, { generic });\n\t}\n\n\t// CheckGroup\n\t// Generic from options.name\n\t// { type: \"CheckGroup\", key: \"foo\" } --> \"Fields.CheckGroup<>\n\tif (type === \"CheckGroup\") {\n\t\tconst { options } = field;\n\t\tconst generic = getGenericFromCheckBoxOptions(options);\n\n\t\treturn getGriddoFieldPropType(field, { generic });\n\t}\n\n\t// LinkField\n\t// Generic from whitelist\n\t// type === \"LinkField\" --> key: Fields.Link<{video:Video, image:Image}>\n\tif (type === \"LinkField\") {\n\t\tconst { whiteList } = field;\n\n\t\tlet generic = \"\";\n\t\t// getGenericFromWhiteListAndModalDefaultValues\n\t\tif (whiteList.length > 1 && \"default\" in options.schema) {\n\t\t\tconst defVal = options.schema.default[field.key].modal;\n\t\t\tconst genericStr = Object.keys(defVal)\n\t\t\t\t.map((key) => `${key}?: ${defVal[key].component}${interfaceSuffix}`)\n\t\t\t\t.join(\",\");\n\t\t\tgeneric = `{${genericStr}}`;\n\t\t} else {\n\t\t\tgeneric = `${whiteList[0]}${interfaceSuffix}`;\n\t\t}\n\n\t\treturn getGriddoFieldPropType(field, { generic });\n\t}\n\n\t// AsyncSelect\n\t// { type: \"AsyncSelect\", key: \"foo\" } --> \"foo?: Fields.{AsyncSelectType}\"\n\t// TODO: waiting for the field documentation\n\tif (type === \"AsyncSelect\") {\n\t\t// Entities\n\t\tif (\"entity\" in field) {\n\t\t\t// Menu\n\t\t\tif (field.entity === \"menu_containers\") {\n\t\t\t\treturn `\\n${key}?: Menu`;\n\t\t\t}\n\t\t\t// // Pages\n\t\t\t// if (field.entity === \"sites\") {\n\t\t\t// \treturn `${key}?: Fields.Menu;`;\n\t\t\t// }\n\t\t\t// // Sites\n\t\t\t// if (field.entity === \"pages\") {\n\t\t\t// \treturn `${key}?: Fields.Menu;`;\n\t\t\t// }\n\t\t}\n\n\t\tif (kind === \"pageContentType\" || kind === \"simpleContentType\") {\n\t\t\tconst relationData = `${field.source}${contentTypeSuffix}${interfaceSuffix}`;\n\t\t\treturn getGriddoFieldPropType(field, {\n\t\t\t\tgeneric: `Relations, FromList, ${relationData}<false, false>, FromDistributor`,\n\t\t\t});\n\t\t}\n\n\t\treturn `\\n${key}?: Fields.AsyncSelect;`;\n\t}\n\n\t// FieldGroup\n\t// { type: \"FieldGroup\", key: \"foo\" } --> \"foo?: Fields.???\"\n\t// <Recursive>\n\tif (type === \"FieldGroup\") {\n\t\treturn `\n\t\t\t// << ${type}\n\t\t\t${field.fields.map((field) => getTypeFromField(field, kind, options)).join(\"\")}\n\t\t\t// end >>\n\t\t`;\n\t}\n\n\t// ArrayFieldGroup\n\tif (type === \"ArrayFieldGroup\") {\n\t\tconst doc = _autoType?.doc || \"\";\n\n\t\treturn `\n\t\t\t\\n${doc}\\n${key}?: Fields.ArrayFieldGroup<{${field.fields\n\t\t\t\t.map((childField) => getTypeFromField(childField, kind, options))\n\t\t\t\t.join(\",\")}}>\n\t\t`;\n\t}\n\n\t// ConditionalField\n\t// <Recursive>\n\tif (type === \"ConditionalField\") {\n\t\tconst conditionalChildrenFields = field.fields.map((field) => {\n\t\t\treturn getTypeFromField(field, kind, options);\n\t\t});\n\t\tconst doc = _autoType?.doc || \"\";\n\t\tconst conditionalHasHideable = \"hideable\" in field ? field.hideable : false;\n\t\tconst startHideable = conditionalHasHideable ? \"Hideable<\" : \"\";\n\t\tconst endHideable = conditionalHasHideable ? \">\" : \"\";\n\n\t\treturn `\n\t\t\t// << ${type}\n\t\t\t\\n${doc}\\n${key}?: ${startHideable}${returnType(type)}<${field.options\n\t\t\t\t.map((option) => {\n\t\t\t\t\treturn typeof option.value === \"string\"\n\t\t\t\t\t\t? `\"${option.value}\"`\n\t\t\t\t\t\t: option.value;\n\t\t\t\t})\n\t\t\t\t.join(\"|\")}>${endHideable};\n\t\t\t${conditionalChildrenFields.join(\"\")}\n\t\t\t// end >>\n\t\t`;\n\t}\n\n\tif (type === \"FormFieldArray\") {\n\t\t// El type de Griddo es dinstinto para un ComponentArray si este está\n\t\t// dentro de un template.\n\t\tconst returnTypeName =\n\t\t\tkind === \"template\" || kind === \"pageContentType\"\n\t\t\t\t? \"TemplateSection\"\n\t\t\t\t: kind === \"formTemplate\"\n\t\t\t\t\t? \"FormFieldArray\"\n\t\t\t\t\t: \"ComponentArray\";\n\n\t\tconst optional = kind === \"template\" ? \"\" : \"?\";\n\n\t\tconst { key, _autoType, whiteList } = field;\n\t\tconst doc = _autoType?.doc || \"\";\n\n\t\t// TODO: Research to compute this with type itself.\n\t\t// SHAME: Remove anys!!\n\t\tconst getModulesFromTemplateSectionList = (\n\t\t\tmodules: Array<Module | undefined>,\n\t\t\ttemplateName: string,\n\t\t\ttemplateSection: string,\n\t\t): Array<Module | undefined> => {\n\t\t\treturn modules\n\t\t\t\t.filter((entry: any) => {\n\t\t\t\t\tif (\n\t\t\t\t\t\tentry &&\n\t\t\t\t\t\t\"schemaType\" in entry &&\n\t\t\t\t\t\tentry?.schemaType === \"module\"\n\t\t\t\t\t) {\n\t\t\t\t\t\treturn entry?.sectionList && !!entry?.sectionList[templateName];\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn undefined;\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t\t.map((entry: any) => {\n\t\t\t\t\treturn {\n\t\t\t\t\t\tt: entry?.sectionList[templateName].filter(\n\t\t\t\t\t\t\t(s: any) => s === templateSection,\n\t\t\t\t\t\t),\n\t\t\t\t\t\tm: entry?.component,\n\t\t\t\t\t};\n\t\t\t\t})\n\t\t\t\t.filter((entry: any) => entry?.t?.length)\n\t\t\t\t.map((entry: any) => entry?.m)\n\t\t\t\t.filter(Boolean);\n\t\t};\n\n\t\t// BasicTemplate -> mainSection\n\t\tlet modulesInSectionLists = \"\";\n\t\tif (kind === \"template\") {\n\t\t\tmodulesInSectionLists = getModulesFromTemplateSectionList(\n\t\t\t\toptions.moduleSchemas,\n\t\t\t\toptions.schema.component,\n\t\t\t\tkey,\n\t\t\t).join(\"|\");\n\t\t}\n\n\t\t// 1 - Mix whitelist and sectionList\n\t\t// 2 - Remove duplicate modules due to mixing between sectionList and whiteList\n\t\tconst everyModuleInTemplateSection = [\n\t\t\t...new Set([...modulesInSectionLists.split(\"|\"), ...whiteList]),\n\t\t].filter(Boolean);\n\n\t\treturn `\\n${doc}\\n${key}${optional}: Fields.${returnTypeName}<${everyModuleInTemplateSection\n\t\t\t.map((component) => `${component}${interfaceSuffix}`)\n\t\t\t.join(\"|\")}>;`;\n\t}\n\n\t// ComponentArray\n\t// <Complex>\n\tif (type === \"ComponentArray\") {\n\t\t// El type de Griddo es dinstinto para un ComponentArray si este está\n\t\t// dentro de un template.\n\t\tconst returnTypeName =\n\t\t\tkind === \"template\" || kind === \"pageContentType\"\n\t\t\t\t? \"TemplateSection\"\n\t\t\t\t: \"ComponentArray\";\n\n\t\tconst optional = kind === \"template\" ? \"\" : \"?\";\n\n\t\t// Type assertion, el field ComponentArray solo puede ser UI o Page\n\t\tconst fieldCasted = field as\n\t\t\t| UI_Fields.ComponentArray\n\t\t\t| PageContentType_Fields.ComponentArray;\n\n\t\tconst { key, _autoType, whiteList } = fieldCasted;\n\t\tconst doc = _autoType?.doc || \"\";\n\n\t\t// TODO: Research to compute this with type itself.\n\t\t// SHAME: Remove anys!!\n\t\tconst getModulesFromTemplateSectionList = (\n\t\t\tmodules: Array<Module | undefined>,\n\t\t\ttemplateName: string,\n\t\t\ttemplateSection: string,\n\t\t): Array<Module | undefined> => {\n\t\t\treturn modules\n\t\t\t\t.filter((entry: any) => {\n\t\t\t\t\tif (\n\t\t\t\t\t\tentry &&\n\t\t\t\t\t\t\"schemaType\" in entry &&\n\t\t\t\t\t\tentry?.schemaType === \"module\"\n\t\t\t\t\t) {\n\t\t\t\t\t\treturn entry?.sectionList && !!entry?.sectionList[templateName];\n\t\t\t\t\t}\n\n\t\t\t\t\treturn undefined;\n\t\t\t\t})\n\t\t\t\t.map((entry: any) => {\n\t\t\t\t\treturn {\n\t\t\t\t\t\tt: entry?.sectionList[templateName].filter(\n\t\t\t\t\t\t\t(s: any) => s === templateSection,\n\t\t\t\t\t\t),\n\t\t\t\t\t\tm: entry?.component,\n\t\t\t\t\t};\n\t\t\t\t})\n\t\t\t\t.filter((entry: any) => entry?.t?.length)\n\t\t\t\t.map((entry: any) => entry?.m)\n\t\t\t\t.filter(Boolean);\n\t\t};\n\n\t\t// BasicTemplate -> mainSection\n\t\tlet modulesInSectionLists = \"\";\n\t\tif (kind === \"template\") {\n\t\t\tmodulesInSectionLists = getModulesFromTemplateSectionList(\n\t\t\t\toptions.moduleSchemas,\n\t\t\t\toptions.schema.component,\n\t\t\t\tkey,\n\t\t\t).join(\"|\");\n\t\t}\n\n\t\t// 1 - Mix whitelist and sectionList\n\t\t// 2 - Remove duplicate modules due to mixing between sectionList and whiteList\n\t\tconst everyModuleInTemplateSection = [\n\t\t\t...new Set([...modulesInSectionLists.split(\"|\"), ...whiteList]),\n\t\t].filter(Boolean);\n\n\t\treturn `\\n${doc}\\n${key}${optional}: Fields.${returnTypeName}<${everyModuleInTemplateSection\n\t\t\t.map((component) => `${component}${interfaceSuffix}`)\n\t\t\t.join(\"|\")}>;`;\n\t}\n\n\t// ComponentContainer\n\t// <Complex>\n\tif (type === \"ComponentContainer\") {\n\t\t// UI\n\t\tif (\n\t\t\tkind === \"object\" ||\n\t\t\tkind === \"component\" ||\n\t\t\tkind === \"module\" ||\n\t\t\tkind === \"template\" ||\n\t\t\tkind === \"pageContentType\"\n\t\t) {\n\t\t\tconst FieldCasted = field as UI_Fields.ComponentContainer;\n\t\t\tconst { whiteList } = FieldCasted;\n\n\t\t\tlet generic = \"\";\n\t\t\t// getGenericFromWhiteListAndDefaultValues\n\t\t\tif (whiteList.length > 1 && \"default\" in options.schema) {\n\t\t\t\tconst defVal = options.schema.default[field.key];\n\t\t\t\tconst genericStr = Object.keys(defVal)\n\t\t\t\t\t.map((key) => `${key}?: ${defVal[key].component}${interfaceSuffix};`)\n\t\t\t\t\t.join(\"\");\n\t\t\t\tgeneric = `{${genericStr}}`;\n\t\t\t} else {\n\t\t\t\tgeneric = `${whiteList[0]}${interfaceSuffix}`;\n\t\t\t}\n\n\t\t\treturn getGriddoFieldPropType(field, { generic });\n\t\t}\n\t}\n\n\t// FormContainer\n\t// <Complex>\n\tif (type === \"FormContainer\") {\n\t\t// UI\n\t\tif (\n\t\t\tkind === \"object\" ||\n\t\t\tkind === \"component\" ||\n\t\t\tkind === \"module\" ||\n\t\t\tkind === \"template\" ||\n\t\t\tkind === \"pageContentType\"\n\t\t) {\n\t\t\tconst doc = _autoType?.doc || \"\";\n\n\t\t\treturn `\\n${doc}\\n${key}?: Fields.FormContainer<FormTemplates${interfaceSuffix}>;`;\n\t\t}\n\t}\n\n\t// ReferenceField\n\t// TODO: Create correct generic using from/key values\n\tif (type === \"ReferenceField\") {\n\t\tconst sources = field.sources || [{ structuredData: undefined }];\n\t\tconst generic =\n\t\t\t(Array.isArray(sources) &&\n\t\t\t\tsources\n\t\t\t\t\t.map((item) =>\n\t\t\t\t\t\titem.structuredData\n\t\t\t\t\t\t\t? `${item.structuredData}${contentTypeSuffix}${interfaceSuffix}`\n\t\t\t\t\t\t\t: \"unknown\",\n\t\t\t\t\t)\n\t\t\t\t\t.join(\"|\")) ||\n\t\t\t\"\";\n\t\tconst referenceField = getGriddoFieldPropType(field, { generic });\n\t\tconst queriedItems =\n\t\t\thasDistributorData || getStaticData\n\t\t\t\t? `queriedItems?: Fields.QueriedData<${generic}>;`\n\t\t\t\t: \"\";\n\n\t\treturn `\n\t\t \t${referenceField}\n\t\t \t${queriedItems}\n\t\t `;\n\n\t\t// const { source } = field;\n\t\t// const generic = source\n\t\t// \t.map((item) => `${item}ContentType${interfaceSuffix}`)\n\t\t// \t.join(\"|\");\n\t\t// const referenceField = getGriddoFieldPropType(field, { generic });\n\t\t// const queriedItems = hasDistributorData\n\t\t// \t? `queriedItems?: Fields.QueriedData<${generic}>;`\n\t\t// \t: \"\";\n\n\t\t// return `\n\t\t// \t${referenceField}\n\t\t// \t${queriedItems}\n\t\t// `;\n\t}\n\n\t// VisualUniqueSelection\n\tif (type === \"VisualUniqueSelection\") {\n\t\tconst withValue = field.options[0] as ThumbnailOption;\n\t\tconst withTheme = field.options[0] as ThemeVisualUniqueSelection;\n\t\tlet generic = \"\";\n\n\t\t// ThumbnailOption\n\t\tif (withValue.value) {\n\t\t\tconst all = field.options as Array<ThumbnailOption>;\n\t\t\tgeneric = all.map((item) => `\"${item.value}\"`).join(\"|\");\n\t\t}\n\n\t\t// ThemeVisualUniqueSelection\n\t\tif (withTheme.theme) {\n\t\t\tconst all = field.options as Array<ThemeVisualUniqueSelection>;\n\t\t\tgeneric = all[0].options.map((i) => `\"${i.value}\"`).join(\"|\");\n\t\t}\n\n\t\treturn getGriddoFieldPropType(field, { generic });\n\t}\n\n\tif (type === \"FormCategorySelect\") {\n\t\treturn `${key}?: Fields.FormCategorySelect<FormCategoryLabels>`;\n\t}\n\n\tif (type === \"AIReferenceField\") {\n\t\treturn `${key}?: Fields.AIReference`;\n\t}\n\n\tconsole.warn(`The field ${field.type} has not been implemented yet ㅠ.ㅠ`);\n\n\treturn \"\";\n\n\t// throw new Error(`Wrong schema field! ${JSON.stringify(field, null, 2)}`);\n}\n\nexport {\n\textractMergedSchemas,\n\tgetGenericFromCheckBoxOptions,\n\tgetGenericFromOptions,\n\tgetGenericFromWhitelist,\n\tgetGriddoFieldPropType,\n\tgetTypeFromField,\n\tprettify,\n\treadConfig,\n\tresolveInstancePath,\n\treturnType,\n};\n","interface Parser {\n\tparse(schema: unknown): string;\n}\n\nclass AutoTypes {\n\tprivate parser?: Parser;\n\n\tsetParser(parser: Parser) {\n\t\tthis.parser = parser;\n\t}\n\n\tparse(schema: unknown) {\n\t\treturn this.parser?.parse(schema) || \"\";\n\t}\n}\n\n/**\n * Parse a list of schemas with their corresponding parsers and return an array\n * with each parsed schema as string.\n * @example\n * const output = parseSchemas([\n * { schema: languages, parser: parsers.LanguagesParser },\n * { schema: menuItems, parser: parsers.MenuItemsParser },\n * ])\n * // returns [\"language-schema-parsed\", \"menu-items-schema-parsed\"]\n */\nfunction parseSchemas(\n\tschemaParserMap: Array<{ schema: unknown; parser: new () => Parser }>,\n) {\n\tconst AutoTypesParser = new AutoTypes();\n\treturn schemaParserMap.map((entry) => {\n\t\tAutoTypesParser.setParser(new entry.parser());\n\t\treturn AutoTypesParser.parse(entry.schema);\n\t});\n}\n\nexport { AutoTypes, Parser, parseSchemas };\n","import { ComponentsNameParser } from \"./components-name\";\nimport { DataTemplatesNameParser } from \"./data-templates-names\";\nimport { DataPacksCategoryParser, DataPacksParser } from \"./datapacks\";\nimport { FormCategoryNamesParser } from \"./form-categories-name\";\nimport { FormFieldsParser } from \"./form-fields\";\nimport { FormTemplatesParser } from \"./form-templates\";\nimport { LanguagesParser } from \"./languages\";\nimport { MenuItemsParser } from \"./menu-items\";\nimport { ModuleCateogiresParser } from \"./module-categories\";\nimport { ModulesNameParser } from \"./modules-name\";\nimport { PageContentTypeParser } from \"./page-data\";\nimport { PageDataPropsParser } from \"./page-data-props\";\nimport { SimpleContentTypeParser } from \"./simple-data\";\nimport { SimpleDataPropsParser } from \"./simple-data-props\";\nimport { TaxonomyParser } from \"./taxonomy\";\nimport { TaxonomyPropsParser } from \"./taxonomy-props\";\nimport { TemplateSectionListParser } from \"./template-section-list\";\nimport { TemplatesNameParser } from \"./templates-name\";\nimport { SubthemesParser, ThemesParser } from \"./themes\";\nimport { UIAndDataPropsParser } from \"./ui-data-props\";\n\nexport const parsers = {\n\tComponentsNameParser,\n\tDataPacksCategoryParser,\n\tDataPacksParser,\n\tDataTemplatesNameParser,\n\tFormCategoryNamesParser,\n\tFormFieldsParser,\n\tFormTemplatesParser,\n\tLanguagesParser,\n\tMenuItemsParser,\n\tModuleCateogiresParser,\n\tModulesNameParser,\n\tPageContentTypeParser,\n\tPageDataPropsParser,\n\tSimpleContentTypeParser,\n\tSimpleDataPropsParser,\n\tSubthemesParser,\n\tTaxonomyParser,\n\tTaxonomyPropsParser,\n\tTemplateSectionListParser,\n\tTemplatesNameParser,\n\tThemesParser,\n\tUIAndDataPropsParser,\n};\n","import type { Schema } from \"../../..\";\nimport type { Parser } from \"../parser\";\n\nexport class ComponentsNameParser implements Parser {\n\tparse(schema: Record<string, Schema.Component>) {\n\t\tconst names = Object.keys(schema).map((name) => `\"${name}\"`);\n\n\t\treturn names.length ? `export type Components = ${names.join(\"|\")}` : \"\";\n\t}\n}\n","import type { Schema } from \"../../..\";\nimport type { Parser } from \"../parser\";\n\nexport class DataPacksParser implements Parser {\n\tparse(schema: Record<string, Schema.DataPack>) {\n\t\treturn schema\n\t\t\t? `export type Datapacks = ${Object.keys(schema)\n\t\t\t\t\t.map((entry) => `\"${entry}\"`)\n\t\t\t\t\t.join(\"|\")}`\n\t\t\t: \"\";\n\t}\n}\n\nexport class DataPacksCategoryParser implements Parser {\n\tparse(schema: Record<string, Schema.DataPackCategory>) {\n\t\treturn schema\n\t\t\t? `export type DatapacksCategories = ${Object.keys(schema)\n\t\t\t\t\t.map((entry) => `\"${entry}\"`)\n\t\t\t\t\t.join(\"|\")}`\n\t\t\t: \"\";\n\t}\n}\n","import type { Schema } from \"../../..\";\nimport type { Parser } from \"../parser\";\n\nexport class DataTemplatesNameParser implements Parser {\n\tparse(\n\t\tschema: Record<\n\t\t\tstring,\n\t\t\tSchema.Template | Schema.ListTemplate | Schema.PaginatedDataTemplate\n\t\t>,\n\t) {\n\t\tconst names = Object.keys(schema)\n\t\t\t.map((name) => {\n\t\t\t\tif (schema[name].type.mode === \"detail\") {\n\t\t\t\t\treturn `\"${name}\"`;\n\t\t\t\t}\n\t\t\t\treturn \"\";\n\t\t\t})\n\t\t\t.filter(Boolean);\n\n\t\treturn names.length\n\t\t\t? `export type DetailTemplates = ${names.join(\"|\")}`\n\t\t\t: \"\";\n\t}\n}\n","import type { Schema } from \"../../..\";\nimport type { Parser } from \"../parser\";\n\nexport class FormCategoryNamesParser implements Parser {\n\tparse(schema: Schema.FormCategories) {\n\t\tconst names = schema.map(({ value }) => `\"${value}\"`);\n\n\t\treturn names.length\n\t\t\t? `export type FormCategoryLabels = ${names.join(\"|\")}`\n\t\t\t: \"\";\n\t}\n}\n","import type { Schema } from \"../../..\";\nimport type { Parser } from \"../parser\";\n\nimport { readConfig } from \"../misc/utils\";\n\nexport class FormFieldsParser implements Parser {\n\tparse(schema: Record<string, Schema.FormTemplate>) {\n\t\tconst { interfaceSuffix } = readConfig();\n\n\t\tconst names = Object.keys(schema).map((name) => `\"${name}\"`);\n\t\tconst namesWithProp = Object.keys(schema).map(\n\t\t\t(name) => `${name}${interfaceSuffix}`,\n\t\t);\n\n\t\treturn names.length\n\t\t\t? `export type FormFields = ${names.join(\"|\")}\nexport type FormFields${interfaceSuffix} = ${namesWithProp.join(\"|\")}\n`\n\t\t\t: \"\";\n\t}\n}\n","import type { Schema } from \"../../..\";\nimport type { Parser } from \"../parser\";\n\nimport { readConfig } from \"../misc/utils\";\n\nexport class FormTemplatesParser implements Parser {\n\tparse(schema: Record<string, Schema.FormTemplate>) {\n\t\tconst { interfaceSuffix } = readConfig();\n\n\t\tconst names = Object.keys(schema).map((name) => `\"${name}\"`);\n\t\tconst namesWithProp = Object.keys(schema).map(\n\t\t\t(name) => `${name}${interfaceSuffix}`,\n\t\t);\n\n\t\treturn names.length\n\t\t\t? `export type FormTemplates = ${names.join(\"|\")}\nexport type FormTemplates${interfaceSuffix} = ${namesWithProp.join(\"|\")}\n`\n\t\t\t: \"\";\n\t}\n}\n","import type { Schema } from \"../../..\";\nimport type { Parser } from \"../parser\";\n\nexport class LanguagesParser implements Parser {\n\tparse(schema: Schema.Languages) {\n\t\tconst langKeys = Object.keys(schema) as Array<keyof typeof schema>;\n\t\tconst label = langKeys.map((loc) => `\"${schema[loc]?.label}\"`).join(\"|\");\n\t\tconst language = langKeys.map((loc) => `\"${schema[loc]?.name}\"`).join(\"|\");\n\t\tconst locale = langKeys.map((loc) => `\"${loc}\"`).join(\"|\");\n\n\t\treturn `\n\t\texport interface SiteLanguage {\n\t\t\tdomain: { id: number; url: string; slug: string };\n\t\t\thome: string;\n\t\t\tid: number;\n\t\t\tisDefault: boolean;\n\t\t\tlabel: ${label};\n\t\t\tlanguage: ${language};\n\t\t\tlocale: ${locale}\n\t\t\tpath: string;\n\t\t}\n\t`;\n\t}\n}\n","import type {\n\tFields,\n\tMenuItemsSchema,\n\tSchemaTypeWithComponentProp,\n} from \"../misc/types\";\nimport type { Parser } from \"../parser\";\n\nimport { getTypeFromField } from \"../misc/utils\";\n\nexport class MenuItemsParser implements Parser {\n\tprivate getMenuItemsProps(fields?: Array<Fields>) {\n\t\tif (!fields) {\n\t\t\treturn \"\";\n\t\t}\n\n\t\treturn fields\n\t\t\t.map((field) =>\n\t\t\t\tgetTypeFromField(field, \"object\", {\n\t\t\t\t\thasDistributorData: false,\n\t\t\t\t\tgetStaticData: false,\n\t\t\t\t\tmoduleSchemas: [],\n\t\t\t\t\tschema: {} as SchemaTypeWithComponentProp,\n\t\t\t\t\tallSchemas: {},\n\t\t\t\t}),\n\t\t\t)\n\t\t\t.join(\"\");\n\t}\n\n\tparse(schema: MenuItemsSchema): string {\n\t\tconst linkFields = schema?.link?.fields as any;\n\t\tconst groupFields = schema?.group?.fields as any;\n\t\tconst menuItemsLinksProps = this.getMenuItemsProps(linkFields);\n\t\tconst menuItemsGroupProps = this.getMenuItemsProps(groupFields);\n\n\t\treturn `\n\t\texport interface InstanceMenuItems {\n\t\t\tlink:{\n\t\t\t\t${menuItemsLinksProps}\n\t\t\t\tconfig?: {\n\t\t\t\t\theaderStyle?: string;\n\t\t\t\t\tfooterStyle?: string;\n\t\t\t\t\ttype?: \"link\";\n\t\t\t\t};\n\t\t\t};\n\t\t\tgroup: {\n\t\t\t\turl?: null;\n\t\t\t\t${menuItemsGroupProps}\n\t\t\t\tconfig?: {\n\t\t\t\t\theaderStyle?: string;\n\t\t\t\t\tfooterStyle?: string;\n\t\t\t\t\ttype?: \"group\";\n\t\t\t\t};\n\t\t\t};\n\t\t}\n\t\texport type LinkMenuElement = Fields.BaseLinkElement<InstanceMenuItems> & InstanceMenuItems[\"link\"];\n\t\texport type GroupMenuElement = Fields.BaseLinkElement<InstanceMenuItems> & InstanceMenuItems[\"group\"];\n\t\texport type MenuElement = LinkMenuElement | GroupMenuElement;\n\t\texport type Menu = Fields.Menu<InstanceMenuItems>;\n\t`;\n\t}\n}\n","import type { Schema } from \"../../..\";\nimport type { Parser } from \"../parser\";\n\nexport class ModuleCateogiresParser implements Parser {\n\tparse(schema: Schema.ModuleCategories) {\n\t\treturn schema\n\t\t\t? `export type ModuleCategories = ${schema\n\t\t\t\t\t.map((entry) => `\"${entry.value}\"`)\n\t\t\t\t\t.join(\"|\")}`\n\t\t\t: \"\";\n\t}\n}\n","import type { Schema } from \"../../..\";\nimport type { Parser } from \"../parser\";\n\nexport class ModulesNameParser implements Parser {\n\tparse(schema: Record<string, Schema.Module>) {\n\t\tconst names = Object.keys(schema).map((name) => `\"${name}\"`);\n\n\t\treturn names.length ? `export type Modules = ${names.join(\"|\")}` : \"\";\n\t}\n}\n","import type { Schema } from \"../../..\";\nimport type { Parser } from \"../parser\";\n\nexport class PageContentTypeParser implements Parser {\n\tparse(schema: Record<string, Schema.PageContentType>) {\n\t\tconst names = Object.keys(schema).map((name) => `\"${name}\"`);\n\n\t\treturn names.length\n\t\t\t? `export type PageContentTypes = ${names.join(\"|\")}`\n\t\t\t: \"\";\n\t}\n}\n","import type { Schema } from \"../../..\";\nimport type { Parser } from \"../parser\";\n\nimport { readConfig } from \"../misc/utils\";\n\nexport class PageDataPropsParser implements Parser {\n\tparse(schema: Record<string, Schema.PageContentType>) {\n\t\tconst { contentTypeSuffix, interfaceSuffix } = readConfig();\n\n\t\tconst names = Object.keys(schema).map(\n\t\t\t(name) => `${name}${contentTypeSuffix}${interfaceSuffix}`,\n\t\t);\n\n\t\treturn names.length\n\t\t\t? `export type Page${contentTypeSuffix}${interfaceSuffix} = ${names.join(\"|\")}`\n\t\t\t: \"\";\n\t}\n}\n","import type { Schema } from \"../../..\";\nimport type { Parser } from \"../parser\";\n\nexport class SimpleContentTypeParser implements Parser {\n\tparse(schema: Record<string, Schema.SimpleContentType>) {\n\t\tconst names = Object.keys(schema).map((name) => `\"${name}\"`);\n\n\t\treturn names.length\n\t\t\t? `export type SimpleContentTypes = ${names.join(\"|\")}`\n\t\t\t: \"\";\n\t}\n}\n","import type { Schema } from \"../../..\";\nimport type { Parser } from \"../parser\";\n\nimport { readConfig } from \"../misc/utils\";\n\nexport class SimpleDataPropsParser implements Parser {\n\tparse(schema: Record<string, Schema.SimpleContentType>) {\n\t\tconst { contentTypeSuffix, interfaceSuffix } = readConfig();\n\n\t\tconst names = Object.keys(schema).map(\n\t\t\t(name) => `${name}${contentTypeSuffix}${interfaceSuffix}`,\n\t\t);\n\n\t\treturn names.length\n\t\t\t? `export type Simple${contentTypeSuffix}${interfaceSuffix} = ${names.join(\"|\")}`\n\t\t\t: \"\";\n\t}\n}\n","import type { Schema } from \"../../..\";\nimport type { Parser } from \"../parser\";\n\nexport class ThemesParser implements Parser {\n\tparse(schema: Array<Schema.ThemeEntry>) {\n\t\treturn Array.isArray(schema) && !!schema.length\n\t\t\t? `export type Themes = ${schema\n\t\t\t\t\t.map((entry) => `\"${entry.value}\"`)\n\t\t\t\t\t.join(\"|\")}`\n\t\t\t: \"\";\n\t}\n}\n\nexport class SubthemesParser implements Parser {\n\tparse(schema: Array<string>) {\n\t\treturn Array.isArray(schema) && !!schema.length\n\t\t\t? `export type Subthemes = ${schema\n\t\t\t\t\t.map((entry) => `\"${entry}\"`)\n\t\t\t\t\t.join(\"|\")}`\n\t\t\t: \"\";\n\t}\n}\n","import type { Schema } from \"../../..\";\nimport type { Parser } from \"../parser\";\n\nexport class TaxonomyParser implements Parser {\n\tparse(schema: Record<string, Schema.CategoryContentType>) {\n\t\tconst names = Object.keys(schema).map((name) => `\"${name}\"`);\n\n\t\treturn names.length\n\t\t\t? `export type TaxonomyContentTypes = ${names.join(\"|\")}`\n\t\t\t: \"\";\n\t}\n}\n","import type { Schema } from \"../../..\";\nimport type { Parser } from \"../parser\";\n\nimport { readConfig } from \"../misc/utils\";\n\nexport class TaxonomyPropsParser implements Parser {\n\tparse(schema: Record<string, Schema.CategoryContentType>) {\n\t\tconst { contentTypeSuffix, interfaceSuffix } = readConfig();\n\n\t\tconst names = Object.keys(schema).map(\n\t\t\t(name) => `${name}${contentTypeSuffix}${interfaceSuffix}`,\n\t\t);\n\n\t\treturn names.length\n\t\t\t? `export type Taxonomy${contentTypeSuffix}${interfaceSuffix} = ${names.join(\"|\")}`\n\t\t\t: \"\";\n\t}\n}\n","import type { Schema } from \"../../..\";\nimport type { Parser } from \"../parser\";\n\nexport class TemplateSectionListParser implements Parser {\n\tparse(\n\t\tschema: Record<\n\t\t\tstring,\n\t\t\tSchema.Template | Schema.ListTemplate | Schema.PaginatedDataTemplate\n\t\t>,\n\t) {\n\t\tconst names: Array<string> = [];\n\n\t\tfor (const name in schema) {\n\t\t\tconst templateSchema = schema[name];\n\t\t\tconst sectionNames = templateSchema.content\n\t\t\t\t.filter((field) => field.type === \"ComponentArray\")\n\t\t\t\t.map(({ key }) => `\"${key}\"`)\n\t\t\t\t.filter(Boolean);\n\t\t\tconst sectionNameProp =\n\t\t\t\tsectionNames && sectionNames?.length > 0\n\t\t\t\t\t? `${templateSchema.component}?: NonEmptyArray<${sectionNames.join(\"|\")}>;`\n\t\t\t\t\t: \"\";\n\n\t\t\tnames.push(sectionNameProp);\n\t\t}\n\n\t\treturn `\n\t\t\texport type SectionList = { ${names.join(\"\")} }\n\t\t`;\n\t}\n}\n","import type { Schema } from \"../../..\";\nimport type { Parser } from \"../parser\";\n\nexport class TemplatesNameParser implements Parser {\n\tparse(schema: Record<string, Schema.Template>) {\n\t\tconst names = Object.keys(schema).map((name) => `\"${name}\"`);\n\n\t\treturn names.length ? `export type Templates = ${names.join(\"|\")}` : \"\";\n\t}\n}\n","import type { Schema } from \"../../..\";\nimport type { UITemplateFields } from \"../../../types/schema-fields/ui-template-fields\";\nimport type {\n\tGlobalState,\n\tSchemaType,\n\tSchemaTypeWithComponentProp,\n} from \"../misc/types\";\nimport type { Parser } from \"../parser\";\n\nimport { getTypeFromField, readConfig } from \"../misc/utils\";\n\nexport class UIAndDataPropsParser implements Parser {\n\tparse(schema: Record<string, SchemaType>) {\n\t\tconst schemasArray = convertSchemasObjectsToArray(schema);\n\n\t\tconst { interfaceSuffix } = readConfig();\n\n\t\tconst { ARRAY_OF_MODULE_SCHEMAS } = getModuleSchemas(schemasArray);\n\n\t\treturn schemasArray\n\t\t\t.map((schema) => {\n\t\t\t\tlet GS: GlobalState = {\n\t\t\t\t\tkind: \"component\",\n\t\t\t\t\tcontentTypeSuffixStr: \"\",\n\t\t\t\t\tcontentTypeName: \"\",\n\t\t\t\t\tcontentTypeKind: \"\",\n\t\t\t\t\trelatedContentTypeNames: \"\",\n\t\t\t\t\tcomponentName: \"\",\n\t\t\t\t\thasDistributorData: false,\n\t\t\t\t\tgetStaticData: false,\n\t\t\t\t\tinterfaceForPublicAPI: \"\",\n\t\t\t\t\t// to deprecate...\n\t\t\t\t\trelationsGeneric:\n\t\t\t\t\t\tschema._autoType?.relations || false\n\t\t\t\t\t\t\t? \"<Relations = unknown, FromList = unknown, FromDistributor = true>\"\n\t\t\t\t\t\t\t: \"\",\n\t\t\t\t};\n\n\t\t\t\t// -----------------------------------------------------------------\n\t\t\t\t// CONTENT TYPE SCHEMA\n\t\t\t\t// -----------------------------------------------------------------\n\t\t\t\tif (isContentTypeSchema(schema)) {\n\t\t\t\t\tconst localState = processContentTypeSchema(schema);\n\t\t\t\t\tGS = { ...GS, ...localState };\n\t\t\t\t}\n\n\t\t\t\t// -----------------------------------------------------------------\n\t\t\t\t// UI SCHEMA\n\t\t\t\t// -----------------------------------------------------------------\n\t\t\t\tif (isUISchema(schema)) {\n\t\t\t\t\tconst localState = processUISchema(schema);\n\t\t\t\t\tGS = { ...GS, ...localState };\n\t\t\t\t}\n\n\t\t\t\t// -----------------------------------------------------------------\n\t\t\t\t// EVERY FIELDS IN SCHEMAS\n\t\t\t\t// -----------------------------------------------------------------\n\t\t\t\tconst griddoFieldProps = getPropsFromFields(\n\t\t\t\t\tschema,\n\t\t\t\t\tARRAY_OF_MODULE_SCHEMAS,\n\t\t\t\t\tschema,\n\t\t\t\t\tGS,\n\t\t\t\t);\n\n\t\t\t\treturn `\n\t\t\t\texport interface ${schema.component}${GS.contentTypeSuffixStr}${interfaceSuffix}${GS.relationsGeneric} ${getExtra(schema)} {\n\t\t\t\t\t${GS.contentTypeName}\n\t\t\t\t\t${GS.contentTypeKind}\n\t\t\t\t\t${GS.relatedContentTypeNames}\n\t\t\t\t\t${GS.componentName}\n\t\t\t\t\t${griddoFieldProps}\n\t\t\t\t\t${isCategoryInterface(schema) ? \"title?: string; code?: string\" : \"\"}\n\t\t\t\t}\n\t\t\t\t${GS.interfaceForPublicAPI}\n\t\t\t`;\n\t\t\t})\n\t\t\t.join(\"\");\n\t}\n}\n\nfunction extendsType(types: Array<string>) {\n\treturn types.filter((typeStr) => typeStr.length).length < 1\n\t\t? \"\"\n\t\t: `extends ${types.join(\", \")}`;\n}\n\nfunction getExtra(schema: SchemaTypeWithComponentProp) {\n\tconst extraListTemplateProps = isListTemplate(schema)\n\t\t? \"Fields.ExtraListTemplateProps\"\n\t\t: \"\";\n\treturn extendsType([extraListTemplateProps]);\n}\n\nfunction isUISchema(\n\tschema: SchemaTypeWithComponentProp,\n): schema is\n\t| Schema.Component\n\t| Schema.ContentTypeModule\n\t| Schema.MultiPageModule\n\t| Schema.Module\n\t| Schema.Template\n\t| Schema.ListTemplate {\n\treturn \"schemaType\" in schema;\n}\n\nfunction isContentTypeSchema(\n\tschema: SchemaTypeWithComponentProp,\n): schema is\n\t| (Schema.SimpleContentType & { component: string })\n\t| (Schema.PageContentType & { component: string }) {\n\treturn \"fromPage\" in schema;\n}\n\nfunction isCategoryInterface(schema: SchemaTypeWithComponentProp) {\n\treturn \"fromPage\" in schema && !schema.fromPage && schema.taxonomy === true;\n}\n\nfunction isListTemplate(schema: SchemaTypeWithComponentProp) {\n\treturn (\n\t\t\"schemaType\" in schema &&\n\t\tschema.schemaType === \"template\" &&\n\t\t(schema.type.mode === \"list\" || schema.type.mode === \"paginated-data\")\n\t);\n}\n\n/**\n * Convert an object of schemas into an array of objects of these schemas.\n *\n * @example\n * input:\n * `schemas` is an object of schemas like so:\n *\t{\n *\t\tBasicContent: {\n *\t\t\tcomponent: \"BasicContent\",\n *\t\t\t...\n *\t\t},\n *\t\t...\n *\t}\n *\n * output:\n * [ {component: \"BasicContent\"}, {component: \"NewsTemplate\"}, ... ]\n */\nfunction convertSchemasObjectsToArray(\n\tobjectSchemas: Record<string, SchemaType>,\n): Array<SchemaTypeWithComponentProp> {\n\treturn (Object.keys(objectSchemas) as Array<string>).map((componentName) => {\n\t\treturn {\n\t\t\t// This component prop is for the ContentType schemas,\n\t\t\t// ui schemas have already one.\n\t\t\t...objectSchemas[componentName],\n\t\t\tcomponent: componentName,\n\t\t};\n\t});\n}\n\nfunction processContentTypeSchema(\n\tschema:\n\t\t| (Schema.SimpleContentType & { component: string })\n\t\t| (Schema.PageContentType & { component: string }),\n): GlobalState {\n\tconst { contentTypeSuffix, interfaceSuffix, publicApiSuffix } = readConfig();\n\n\t// ContentType names list\n\tconst contentTypePageListNames: Array<string> = [];\n\tconst contentTypeSimpleListNames: Array<string> = [];\n\tconst contentTypeTaxonomyListNames: Array<string> = [];\n\n\tconst kind = schema.fromPage ? \"pageContentType\" : \"simpleContentType\";\n\n\t// Add page ContentType name to the array\n\tif (kind === \"pageContentType\") {\n\t\tcontentTypePageListNames.push(`\"${schema.component}\"`);\n\t}\n\t// Add simple ContentType name to the array\n\tif (kind === \"simpleContentType\" && !schema.taxonomy) {\n\t\tcontentTypeSimpleListNames.push(`\"${schema.component}\"`);\n\t}\n\t// Add taxonomy (category) simple ContentType name to the array\n\tif (kind === \"simpleContentType\" && schema.taxonomy) {\n\t\tcontentTypeTaxonomyListNames.push(`\"${schema.component}\"`);\n\t}\n\n\tlet relatedContentTypeNames: any = \"\";\n\tif (\"schema\" in schema) {\n\t\tconst relatedContentTypeNamesValues = schema.schema.fields\n\t\t\t.map((field) => {\n\t\t\t\tif (\"source\" in field) {\n\t\t\t\t\treturn field?.source;\n\t\t\t\t}\n\n\t\t\t\treturn false;\n\t\t\t})\n\t\t\t.filter(Boolean);\n\n\t\trelatedContentTypeNames = relatedContentTypeNamesValues.length\n\t\t\t? `__relatedContentTypeNames: ${JSON.stringify(\n\t\t\t\t\trelatedContentTypeNamesValues,\n\t\t\t\t)}`\n\t\t\t: \"\";\n\t}\n\n\t// En el caso de los schemas de ContentType se pondrá siempre el\n\t// genérico a unknown para así poder pasarle el relations en el\n\t// componente de React, por ejemplo cuando se utilice el Type en\n\t// un hook como `useContentType`\n\t// `useList<AutoTypes.MEMBERContentType<true>>()`\n\t// ^\n\t// relations\n\tconst relationsGeneric =\n\t\t\"<Relations = unknown, FromList = unknown, FromDistributor = true>\";\n\n\tconst interfaceForPublicAPI = `\n\t\t\t\t/** Type to be consumed by public API: useList(), etc.. */\n\t\t\t\texport type ${schema.component}${contentTypeSuffix}${publicApiSuffix}${interfaceSuffix}<R extends Core.ContentTypeRelations = false> = ${schema.component}${contentTypeSuffix}${interfaceSuffix}<R, true>;\n\t\t\t\t`;\n\n\treturn {\n\t\tkind,\n\t\tcomponentName: \"\",\n\t\tcontentTypeName: `__contentTypeName: \"${schema.component}\";`,\n\t\tcontentTypeKind: `__contentTypeKind: \"${kind}\";`,\n\t\tcontentTypeSuffixStr: contentTypeSuffix,\n\t\tgetStaticData: false,\n\t\thasDistributorData: false,\n\t\trelatedContentTypeNames,\n\t\trelationsGeneric,\n\t\tinterfaceForPublicAPI,\n\t};\n}\n\nfunction processUISchema(\n\tschema:\n\t\t| Schema.Component\n\t\t| Schema.ContentTypeModule\n\t\t| Schema.MultiPageModule\n\t\t| Schema.Module\n\t\t| Schema.Template\n\t\t| Schema.ListTemplate\n\t\t| Schema.FormTemplate,\n): GlobalState {\n\treturn {\n\t\tkind: schema.schemaType,\n\t\tcomponentName: `component: \"${schema.component}\"`,\n\t\tcontentTypeName: \"\",\n\t\tcontentTypeKind: \"\",\n\t\tcontentTypeSuffixStr: \"\",\n\t\trelatedContentTypeNames: \"\",\n\t\trelationsGeneric: \"\",\n\t\tinterfaceForPublicAPI: \"\",\n\t\thasDistributorData: !!schema.default.hasDistributorData,\n\t\tgetStaticData: !!schema.default.getStaticData,\n\t};\n}\n\nfunction getPropsFromFields(\n\tschema: SchemaTypeWithComponentProp,\n\tarrayOfSchemaModules: Array<Schema.Module | undefined>,\n\tallSchemas: any,\n\tGS: GlobalState,\n) {\n\treturn getAllFields(schema)\n\t\t.map((field) => {\n\t\t\treturn getTypeFromField(field, GS.kind, {\n\t\t\t\thasDistributorData: GS.hasDistributorData,\n\t\t\t\tgetStaticData: GS.getStaticData,\n\t\t\t\tmoduleSchemas: arrayOfSchemaModules,\n\t\t\t\tschema,\n\t\t\t\tallSchemas,\n\t\t\t});\n\t\t})\n\t\t.filter(Boolean)\n\t\t.join(\"\");\n}\n\nfunction getModuleSchemas(schemas: Array<SchemaTypeWithComponentProp>) {\n\tconst ARRAY_OF_MODULE_SCHEMAS = schemas\n\t\t.map((schema) => {\n\t\t\tif (\"schemaType\" in schema && schema.schemaType === \"module\") {\n\t\t\t\treturn schema;\n\t\t\t}\n\t\t\treturn undefined;\n\t\t})\n\t\t.filter(Boolean);\n\n\treturn {\n\t\tARRAY_OF_MODULE_SCHEMAS,\n\t};\n}\n\n/** Get all fields from one schema */\nfunction getAllFields(schema: SchemaType) {\n\t// ContentType\n\t// Simple, Page\n\tif (\"fromPage\" in schema) {\n\t\t// AutoTypes doesn't generate types from categories\n\t\tif (!schema.taxonomy) {\n\t\t\treturn schema.schema.fields;\n\t\t}\n\t\t// hack???\n\t\treturn [];\n\t}\n\n\t// Templates\n\tif (schema.schemaType === \"template\") {\n\t\tconst content = (schema.content as Array<UITemplateFields>) || [];\n\t\tconst config = (schema.config as Array<UITemplateFields>) || [];\n\t\treturn [...content, ...config];\n\t}\n\n\tif (schema.schemaType === \"formTemplate\") {\n\t\tconst content = (schema.content as Array<UITemplateFields>) || [];\n\t\tconst config = (schema.config as Array<UITemplateFields>) || [];\n\t\treturn [...content, ...config];\n\t}\n\n\t// Objects, components and modules\n\tif (\n\t\tschema.schemaType === \"component\" ||\n\t\tschema.schemaType === \"module\" ||\n\t\tschema.schemaType === \"formComponent\"\n\t) {\n\t\treturn schema.configTabs.flatMap((tab) => tab.fields);\n\t}\n\n\tthrow new Error(`Wrong schema ${JSON.stringify(schema, null, 2)}`);\n}\n\nexport {\n\tconvertSchemasObjectsToArray,\n\tgetExtra,\n\tgetModuleSchemas,\n\tgetPropsFromFields,\n\tisCategoryInterface,\n\tisContentTypeSchema,\n\tisUISchema,\n\tprocessContentTypeSchema,\n\tprocessUISchema,\n};\n","import type { Core } from \"../..\";\nimport type { SchemaType } from \"./misc/types\";\n\nimport fs from \"node:fs\";\nimport path from \"node:path\";\n\nimport kleur from \"kleur\";\n\nimport { head } from \"./misc/ascii\";\nimport {\n\textractMergedSchemas,\n\tprettify,\n\tresolveInstancePath,\n} from \"./misc/utils\";\nimport { parseSchemas } from \"./parser\";\nimport { parsers } from \"./parsers-list\";\n\n/**\n * Generates the `autotypes.d.ts` file in the root of the instance project using\n * the instance schemas exported in `griddo.config.file`\n * The main usage of this file is for intellisense and autocompletion in the\n * instance when they work with the React components and schemas.\n * @documentation https://www.notion.so/griddoio/AutoTypes-e7420867dd2e489c8da34a493b763cd8?pvs=4\n */\n(async () => {\n\ttry {\n\t\tconst instancePath = resolveInstancePath();\n\t\tconst configFile = path.join(instancePath, \"griddo.config.ts\");\n\t\tconst config = require(configFile).default as Core.Config;\n\n\t\tconst {\n\t\t\tschemas: {\n\t\t\t\tconfig: { languages, menuItems, themes, subthemes, moduleCategories },\n\t\t\t\tcontentTypes: { dataPacks, dataPacksCategories, structuredData },\n\t\t\t\tui: { components, modules, templates },\n\t\t\t\tforms,\n\t\t\t},\n\t\t} = config;\n\n\t\t// These schemas are \"merged\" in the\n\t\t// `configFile.schemas.contentTypes.structuredData` props and we need to\n\t\t// get them separately.\n\t\tconst { categoryContentTypes, pageContentTypes, simpleContentTypes } =\n\t\t\textractMergedSchemas(config.schemas.contentTypes.structuredData);\n\n\t\t// In this case we merged some schemas in a `usSchemas` entity.\n\t\tconst uiSchemas = {\n\t\t\t...components,\n\t\t\t...modules,\n\t\t\t...templates,\n\t\t\t...structuredData,\n\t\t\t...(forms?.templates || {}),\n\t\t\t...(forms?.fields || {}),\n\t\t} as Record<string, SchemaType>;\n\n\t\tconst autotypes = parseSchemas([\n\t\t\t{ schema: menuItems, parser: parsers.MenuItemsParser },\n\t\t\t{ schema: languages, parser: parsers.LanguagesParser },\n\t\t\t{ schema: uiSchemas, parser: parsers.UIAndDataPropsParser },\n\t\t\t{ schema: subthemes || {}, parser: parsers.SubthemesParser },\n\t\t\t{ schema: pageContentTypes, parser: parsers.PageContentTypeParser },\n\t\t\t{ schema: simpleContentTypes, parser: parsers.SimpleContentTypeParser },\n\t\t\t{ schema: categoryContentTypes, parser: parsers.TaxonomyParser },\n\t\t\t{ schema: components, parser: parsers.ComponentsNameParser },\n\t\t\t{ schema: modules, parser: parsers.ModulesNameParser },\n\t\t\t{ schema: forms?.templates || {}, parser: parsers.FormTemplatesParser },\n\t\t\t{ schema: forms?.fields || {}, parser: parsers.FormFieldsParser },\n\t\t\t{\n\t\t\t\tschema: forms?.categories || [],\n\t\t\t\tparser: parsers.FormCategoryNamesParser,\n\t\t\t},\n\t\t\t{ schema: templates, parser: parsers.TemplatesNameParser },\n\t\t\t{ schema: templates, parser: parsers.DataTemplatesNameParser },\n\t\t\t{ schema: templates, parser: parsers.TemplateSectionListParser },\n\t\t\t{ schema: moduleCategories, parser: parsers.ModuleCateogiresParser },\n\t\t\t{ schema: dataPacks, parser: parsers.DataPacksParser },\n\t\t\t{ schema: dataPacksCategories, parser: parsers.DataPacksCategoryParser },\n\t\t\t{ schema: categoryContentTypes, parser: parsers.TaxonomyPropsParser },\n\t\t\t{ schema: simpleContentTypes, parser: parsers.SimpleDataPropsParser },\n\t\t\t{ schema: pageContentTypes, parser: parsers.PageDataPropsParser },\n\t\t\t{ schema: themes, parser: parsers.ThemesParser },\n\t\t]);\n\n\t\tconst outputContent = await prettify(`\n\t\t\t${head}\n\t\t\t${autotypes.join(\"\\n\")}\n\t\t`);\n\n\t\tconst outputFile = path.join(instancePath, \"autotypes.d.ts\");\n\t\tfs.writeFileSync(outputFile, outputContent);\n\n\t\tconsole.log(`${kleur.green(\" ✔\")} AutoTypes`);\n\t} catch (e) {\n\t\tconsole.log(`${kleur.red(\" ✘\")} AutoTypes`);\n\t\tconsole.log(e);\n\t}\n})();\n"],"names":["__awaiter","thisArg","_arguments","P","generator","Promise","resolve","reject","fulfilled","value","step","next","e","rejected","result","done","then","apply","SuppressedError","FORCE_COLOR","NODE_DISABLE_COLORS","TERM","process","env","$","enabled","reset","init","bold","dim","italic","underline","inverse","hidden","strikethrough","black","red","green","yellow","blue","magenta","cyan","white","gray","grey","bgBlack","bgRed","bgGreen","bgYellow","bgBlue","bgMagenta","bgCyan","bgWhite","run","arr","str","tmp","i","beg","end","length","open","close","includes","replace","rgx","blk","RegExp","txt","this","has","push","keys","ctx","bind","chain","module","typeMappings","directory","file","matchType","type","stat","locatePathSync","paths","cwd","allowSymlinks","urlOrPath","Object","hasOwnProperty","call","Error","checkType","URL","fileURLToPath","statFunction","fs","statSync","lstatSync","path_","path","throwIfNoEntry","findUpStop","Symbol","findUpMultipleSync","name","options","root","parse","stopAt","limit","Number","POSITIVE_INFINITY","flat","runMatcher","locateOptions","foundPath","matches","dirname","packageDirectorySync","filePath","findUpSync","returnType","AIReferenceField","FormCategorySelect","FormContainer","FormFieldArray","ArrayFieldGroup","AsyncCheckGroup","AsyncSelect","CheckGroup","ColorPicker","ComponentArray","ComponentContainer","ConditionalField","DateField","FieldGroup","FieldsDivider","FileField","HeadingField","ImageField","LinkField","MultiCheckSelect","MultiCheckSelectGroup","NoteField","NumberField","RadioGroup","ReferenceField","RichText","Select","SliderField","TagsField","TextArea","TextField","TimeField","ToggleField","UniqueCheck","UrlField","VisualUniqueSelection","Wysiwyg","getGriddoFieldPropType","field","returnTypeName","generic","hasHideable","Boolean","hideable","genericStr","returnTypeNameWithGeneriStr","typeWrappedWithHideable","_a","_autoType","doc","key","IS_COMPONENT_LIBRARY","__dirname","resolveInstancePath","componentsPath","readConfig","configPath","join","config","require","interfaceSuffix","autotypes","contentTypeSuffix","_b","publicApiSuffix","_c","getTypeFromField","kind","ignore","hasDistributorData","getStaticData","source","elements","map","element","relations","isThemePalette","getGenericFromOptions","getGenericFromCheckBoxOptions","whiteList","schema","defVal","default","modal","component","entity","fields","childField","conditionalChildrenFields","conditionalHasHideable","endHideable","option","optional","getModulesFromTemplateSectionList","modules","templateName","templateSection","filter","entry","schemaType","sectionList","t","s","m","modulesInSectionLists","moduleSchemas","Set","split","fieldCasted","FieldCasted","sources","structuredData","undefined","Array","isArray","item","withValue","withTheme","theme","console","warn","AutoTypes","setParser","parser","parsers","ComponentsNameParser","names","DataPacksCategoryParser","DataPacksParser","DataTemplatesNameParser","mode","FormCategoryNamesParser","FormFieldsParser","namesWithProp","FormTemplatesParser","LanguagesParser","langKeys","loc","label","MenuItemsParser","getMenuItemsProps","allSchemas","linkFields","link","groupFields","group","ModuleCateogiresParser","ModulesNameParser","PageContentTypeParser","PageDataPropsParser","SimpleContentTypeParser","SimpleDataPropsParser","SubthemesParser","TaxonomyParser","TaxonomyPropsParser","TemplateSectionListParser","templateSchema","sectionNames","content","sectionNameProp","TemplatesNameParser","ThemesParser","UIAndDataPropsParser","schemasArray","objectSchemas","componentName","assign","ARRAY_OF_MODULE_SCHEMAS","schemas","getModuleSchemas","GS","contentTypeSuffixStr","contentTypeName","contentTypeKind","relatedContentTypeNames","interfaceForPublicAPI","relationsGeneric","isContentTypeSchema","localState","contentTypePageListNames","contentTypeSimpleListNames","contentTypeTaxonomyListNames","fromPage","taxonomy","relatedContentTypeNamesValues","JSON","stringify","processContentTypeSchema","isUISchema","processUISchema","griddoFieldProps","arrayOfSchemaModules","configTabs","flatMap","tab","getAllFields","getPropsFromFields","extraListTemplateProps","isListTemplate","types","typeStr","getExtra","isCategoryInterface","instancePath","configFile","languages","menuItems","themes","subthemes","moduleCategories","contentTypes","dataPacks","dataPacksCategories","ui","components","templates","forms","categoryContentTypes","pageContentTypes","simpleContentTypes","categoryContentTypeSchemas","objs","extractCategoryContentTypes","pageContentTypeSchemas","extractPageContentTypes","simpleContentTypeSchemas","extractSimpleContentTypes","extractMergedSchemas","uiSchemas","schemaParserMap","AutoTypesParser","parseSchemas","categories","outputContent","input","localConfFile","prettier","resolveConfigFile","prettierConfig","resolveConfig","useTabs","prettierConfigProps","format","prettify","outputFile","writeFileSync","log","kleur"],"mappings":"6IAkHO,SAASA,EAAUC,EAASC,EAAYC,EAAGC,GAE9C,OAAO,IAAKD,IAAMA,EAAIE,UAAU,SAAUC,EAASC,GAC/C,SAASC,EAAUC,GAAS,IAAMC,EAAKN,EAAUO,KAAKF,GAAU,CAAC,MAAOG,GAAKL,EAAOK,EAAI,CAAE,CAC1F,SAASC,EAASJ,GAAS,IAAMC,EAAKN,EAAiB,MAAEK,GAAU,CAAC,MAAOG,GAAKL,EAAOK,EAAI,CAAE,CAC7F,SAASF,EAAKI,GAJlB,IAAeL,EAIaK,EAAOC,KAAOT,EAAQQ,EAAOL,QAJ1CA,EAIyDK,EAAOL,MAJhDA,aAAiBN,EAAIM,EAAQ,IAAIN,EAAE,SAAUG,GAAWA,EAAQG,EAAQ,IAIjBO,KAAKR,EAAWK,EAAW,CAC7GH,GAAMN,EAAYA,EAAUa,MAAMhB,EAASC,GAAc,KAAKS,OAClE,EACJ,6GA8MkD,mBAApBO,iBAAiCA,qDCtU/D,MAAMC,YAAEA,EAAWC,oBAAEA,EAAmBC,KAAEA,GAASC,QAAQC,IAErDC,EAAI,CACTC,SAAUL,GAAgC,SAATC,GAAmC,MAAhBF,EAGpDO,MAAOC,EAAK,EAAG,GACfC,KAAMD,EAAK,EAAG,IACdE,IAAKF,EAAK,EAAG,IACbG,OAAQH,EAAK,EAAG,IAChBI,UAAWJ,EAAK,EAAG,IACnBK,QAASL,EAAK,EAAG,IACjBM,OAAQN,EAAK,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8B,qBAChD,CAAE1E,OAAQ2I,EAAoBhG,OAAQC,EAAQ2B,uBAC9C,CAAEvE,OAAQ0I,EAAkB/F,OAAQC,EAAQyB,qBAC5C,CAAErE,OAAQ+H,EAAQpF,OAAQC,EAAQqC,gBAG7BwE,QvB8ER,SAAwBC,2CACvB,MAAMC,QAAsBC,EAASC,oBAG/BC,SAFkBF,EAASG,cAAcJ,KACvB,CAAEK,SAAS,GAG7BC,iCACFH,GAAc,CACjBnH,OAAQ,eAIT,aAAciH,EAASM,OAAOR,EAAOO,IAAsB5S,QAC1D,WACA,KAED,CuB9F6B8S,CAAS,23CAElCtL,EAAUJ,KAAK,eAGZ2L,EAAa3Q,EAAKgF,KAAKkJ,EAAc,kBAC3CtO,EAAGgR,cAAcD,EAAYX,GAE7BlH,QAAQ+H,IAAI,GAAGC,EAAM7U,MAAM,kBAC3B,CAAC,MAAOzB,GACRsO,QAAQ+H,IAAI,GAAGC,EAAM9U,IAAI,mBACzB8M,QAAQ+H,IAAIrW,EACZ,CACF","x_google_ignoreList":[0,1,3,4,5]}
1
+ {"version":3,"file":"autotypes.js","sources":["../../../node_modules/tslib/tslib.es6.js","../../../node_modules/kleur/index.js","../src/bin-tools/autotypes/misc/ascii.ts","../node_modules/locate-path/index.js","../node_modules/pkg-dir/node_modules/find-up/index.js","../node_modules/pkg-dir/index.js","../src/bin-tools/autotypes/misc/utils.ts","../src/bin-tools/autotypes/parser/index.ts","../src/bin-tools/autotypes/parsers-list/index.ts","../src/bin-tools/autotypes/parsers-list/components-name.ts","../src/bin-tools/autotypes/parsers-list/datapacks.ts","../src/bin-tools/autotypes/parsers-list/data-templates-names.ts","../src/bin-tools/autotypes/parsers-list/form-categories-name.ts","../src/bin-tools/autotypes/parsers-list/form-fields.ts","../src/bin-tools/autotypes/parsers-list/form-templates.ts","../src/bin-tools/autotypes/parsers-list/languages.ts","../src/bin-tools/autotypes/parsers-list/menu-items.ts","../src/bin-tools/autotypes/parsers-list/module-categories.ts","../src/bin-tools/autotypes/parsers-list/modules-name.ts","../src/bin-tools/autotypes/parsers-list/page-data.ts","../src/bin-tools/autotypes/parsers-list/page-data-props.ts","../src/bin-tools/autotypes/parsers-list/simple-data.ts","../src/bin-tools/autotypes/parsers-list/simple-data-props.ts","../src/bin-tools/autotypes/parsers-list/themes.ts","../src/bin-tools/autotypes/parsers-list/taxonomy.ts","../src/bin-tools/autotypes/parsers-list/taxonomy-props.ts","../src/bin-tools/autotypes/parsers-list/template-section-list.ts","../src/bin-tools/autotypes/parsers-list/templates-name.ts","../src/bin-tools/autotypes/parsers-list/ui-data-props.ts","../src/bin-tools/autotypes/index.ts"],"sourcesContent":["/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise, SuppressedError, Symbol, Iterator */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\r\n function accept(f) { if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\"); return f; }\r\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\r\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\r\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\r\n var _, done = false;\r\n for (var i = decorators.length - 1; i >= 0; i--) {\r\n var context = {};\r\n for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\r\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\r\n context.addInitializer = function (f) { if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\"); extraInitializers.push(accept(f || null)); };\r\n var result = (0, decorators[i])(kind === \"accessor\" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\r\n if (kind === \"accessor\") {\r\n if (result === void 0) continue;\r\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\r\n if (_ = accept(result.get)) descriptor.get = _;\r\n if (_ = accept(result.set)) descriptor.set = _;\r\n if (_ = accept(result.init)) initializers.unshift(_);\r\n }\r\n else if (_ = accept(result)) {\r\n if (kind === \"field\") initializers.unshift(_);\r\n else descriptor[key] = _;\r\n }\r\n }\r\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\r\n done = true;\r\n};\r\n\r\nexport function __runInitializers(thisArg, initializers, value) {\r\n var useValue = arguments.length > 2;\r\n for (var i = 0; i < initializers.length; i++) {\r\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\r\n }\r\n return useValue ? value : void 0;\r\n};\r\n\r\nexport function __propKey(x) {\r\n return typeof x === \"symbol\" ? x : \"\".concat(x);\r\n};\r\n\r\nexport function __setFunctionName(f, name, prefix) {\r\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\r\n return Object.defineProperty(f, \"name\", { configurable: true, value: prefix ? \"\".concat(prefix, \" \", name) : name });\r\n};\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === \"function\" ? Iterator : Object).prototype);\r\n return g.next = verb(0), g[\"throw\"] = verb(1), g[\"return\"] = verb(2), typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n var desc = Object.getOwnPropertyDescriptor(m, k);\r\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\r\n desc = { enumerable: true, get: function() { return m[k]; } };\r\n }\r\n Object.defineProperty(o, k2, desc);\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = Object.create((typeof AsyncIterator === \"function\" ? AsyncIterator : Object).prototype), verb(\"next\"), verb(\"throw\"), verb(\"return\", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }\r\n function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nvar ownKeys = function(o) {\r\n ownKeys = Object.getOwnPropertyNames || function (o) {\r\n var ar = [];\r\n for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;\r\n return ar;\r\n };\r\n return ownKeys(o);\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== \"default\") __createBinding(result, mod, k[i]);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n\r\nexport function __classPrivateFieldIn(state, receiver) {\r\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\r\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\r\n}\r\n\r\nexport function __addDisposableResource(env, value, async) {\r\n if (value !== null && value !== void 0) {\r\n if (typeof value !== \"object\" && typeof value !== \"function\") throw new TypeError(\"Object expected.\");\r\n var dispose, inner;\r\n if (async) {\r\n if (!Symbol.asyncDispose) throw new TypeError(\"Symbol.asyncDispose is not defined.\");\r\n dispose = value[Symbol.asyncDispose];\r\n }\r\n if (dispose === void 0) {\r\n if (!Symbol.dispose) throw new TypeError(\"Symbol.dispose is not defined.\");\r\n dispose = value[Symbol.dispose];\r\n if (async) inner = dispose;\r\n }\r\n if (typeof dispose !== \"function\") throw new TypeError(\"Object not disposable.\");\r\n if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };\r\n env.stack.push({ value: value, dispose: dispose, async: async });\r\n }\r\n else if (async) {\r\n env.stack.push({ async: true });\r\n }\r\n return value;\r\n\r\n}\r\n\r\nvar _SuppressedError = typeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\r\n var e = new Error(message);\r\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\r\n};\r\n\r\nexport function __disposeResources(env) {\r\n function fail(e) {\r\n env.error = env.hasError ? new _SuppressedError(e, env.error, \"An error was suppressed during disposal.\") : e;\r\n env.hasError = true;\r\n }\r\n var r, s = 0;\r\n function next() {\r\n while (r = env.stack.pop()) {\r\n try {\r\n if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);\r\n if (r.dispose) {\r\n var result = r.dispose.call(r.value);\r\n if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\r\n }\r\n else s |= 1;\r\n }\r\n catch (e) {\r\n fail(e);\r\n }\r\n }\r\n if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();\r\n if (env.hasError) throw env.error;\r\n }\r\n return next();\r\n}\r\n\r\nexport function __rewriteRelativeImportExtension(path, preserveJsx) {\r\n if (typeof path === \"string\" && /^\\.\\.?\\//.test(path)) {\r\n return path.replace(/\\.(tsx)$|((?:\\.d)?)((?:\\.[^./]+?)?)\\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {\r\n return tsx ? preserveJsx ? \".jsx\" : \".js\" : d && (!ext || !cm) ? m : (d + ext + \".\" + cm.toLowerCase() + \"js\");\r\n });\r\n }\r\n return path;\r\n}\r\n\r\nexport default {\r\n __extends: __extends,\r\n __assign: __assign,\r\n __rest: __rest,\r\n __decorate: __decorate,\r\n __param: __param,\r\n __esDecorate: __esDecorate,\r\n __runInitializers: __runInitializers,\r\n __propKey: __propKey,\r\n __setFunctionName: __setFunctionName,\r\n __metadata: __metadata,\r\n __awaiter: __awaiter,\r\n __generator: __generator,\r\n __createBinding: __createBinding,\r\n __exportStar: __exportStar,\r\n __values: __values,\r\n __read: __read,\r\n __spread: __spread,\r\n __spreadArrays: __spreadArrays,\r\n __spreadArray: __spreadArray,\r\n __await: __await,\r\n __asyncGenerator: __asyncGenerator,\r\n __asyncDelegator: __asyncDelegator,\r\n __asyncValues: __asyncValues,\r\n __makeTemplateObject: __makeTemplateObject,\r\n __importStar: __importStar,\r\n __importDefault: __importDefault,\r\n __classPrivateFieldGet: __classPrivateFieldGet,\r\n __classPrivateFieldSet: __classPrivateFieldSet,\r\n __classPrivateFieldIn: __classPrivateFieldIn,\r\n __addDisposableResource: __addDisposableResource,\r\n __disposeResources: __disposeResources,\r\n __rewriteRelativeImportExtension: __rewriteRelativeImportExtension,\r\n};\r\n","'use strict';\n\nconst { FORCE_COLOR, NODE_DISABLE_COLORS, TERM } = process.env;\n\nconst $ = {\n\tenabled: !NODE_DISABLE_COLORS && TERM !== 'dumb' && FORCE_COLOR !== '0',\n\n\t// modifiers\n\treset: init(0, 0),\n\tbold: init(1, 22),\n\tdim: init(2, 22),\n\titalic: init(3, 23),\n\tunderline: init(4, 24),\n\tinverse: init(7, 27),\n\thidden: init(8, 28),\n\tstrikethrough: init(9, 29),\n\n\t// colors\n\tblack: init(30, 39),\n\tred: init(31, 39),\n\tgreen: init(32, 39),\n\tyellow: init(33, 39),\n\tblue: init(34, 39),\n\tmagenta: init(35, 39),\n\tcyan: init(36, 39),\n\twhite: init(37, 39),\n\tgray: init(90, 39),\n\tgrey: init(90, 39),\n\n\t// background colors\n\tbgBlack: init(40, 49),\n\tbgRed: init(41, 49),\n\tbgGreen: init(42, 49),\n\tbgYellow: init(43, 49),\n\tbgBlue: init(44, 49),\n\tbgMagenta: init(45, 49),\n\tbgCyan: init(46, 49),\n\tbgWhite: init(47, 49)\n};\n\nfunction run(arr, str) {\n\tlet i=0, tmp, beg='', end='';\n\tfor (; i < arr.length; i++) {\n\t\ttmp = arr[i];\n\t\tbeg += tmp.open;\n\t\tend += tmp.close;\n\t\tif (str.includes(tmp.close)) {\n\t\t\tstr = str.replace(tmp.rgx, tmp.close + tmp.open);\n\t\t}\n\t}\n\treturn beg + str + end;\n}\n\nfunction chain(has, keys) {\n\tlet ctx = { has, keys };\n\n\tctx.reset = $.reset.bind(ctx);\n\tctx.bold = $.bold.bind(ctx);\n\tctx.dim = $.dim.bind(ctx);\n\tctx.italic = $.italic.bind(ctx);\n\tctx.underline = $.underline.bind(ctx);\n\tctx.inverse = $.inverse.bind(ctx);\n\tctx.hidden = $.hidden.bind(ctx);\n\tctx.strikethrough = $.strikethrough.bind(ctx);\n\n\tctx.black = $.black.bind(ctx);\n\tctx.red = $.red.bind(ctx);\n\tctx.green = $.green.bind(ctx);\n\tctx.yellow = $.yellow.bind(ctx);\n\tctx.blue = $.blue.bind(ctx);\n\tctx.magenta = $.magenta.bind(ctx);\n\tctx.cyan = $.cyan.bind(ctx);\n\tctx.white = $.white.bind(ctx);\n\tctx.gray = $.gray.bind(ctx);\n\tctx.grey = $.grey.bind(ctx);\n\n\tctx.bgBlack = $.bgBlack.bind(ctx);\n\tctx.bgRed = $.bgRed.bind(ctx);\n\tctx.bgGreen = $.bgGreen.bind(ctx);\n\tctx.bgYellow = $.bgYellow.bind(ctx);\n\tctx.bgBlue = $.bgBlue.bind(ctx);\n\tctx.bgMagenta = $.bgMagenta.bind(ctx);\n\tctx.bgCyan = $.bgCyan.bind(ctx);\n\tctx.bgWhite = $.bgWhite.bind(ctx);\n\n\treturn ctx;\n}\n\nfunction init(open, close) {\n\tlet blk = {\n\t\topen: `\\x1b[${open}m`,\n\t\tclose: `\\x1b[${close}m`,\n\t\trgx: new RegExp(`\\\\x1b\\\\[${close}m`, 'g')\n\t};\n\treturn function (txt) {\n\t\tif (this !== void 0 && this.has !== void 0) {\n\t\t\tthis.has.includes(open) || (this.has.push(open),this.keys.push(blk));\n\t\t\treturn txt === void 0 ? this : $.enabled ? run(this.keys, txt+'') : txt+'';\n\t\t}\n\t\treturn txt === void 0 ? chain([open], [blk]) : $.enabled ? run([blk], txt+'') : txt+'';\n\t};\n}\n\nmodule.exports = $;\n","const head = `/* eslint-disable @typescript-eslint/ban-types */\n/* eslint-disable @typescript-eslint/no-unused-vars */\n/* eslint-disable no-use-before-define */\n//\n//\n// ' ____\n// /\\\\ \\\\\n// º / /\\\\ \\\\\n// ' / / \\\\ _>\n// ' _\\\\ \\\\__> \\\\__\n// ' O ( __;·;______ ) AutoTypes\n// O º, | , , \\\\ \\\\\\\\ ·..~~.·~.·\n// ,,, /| , , /\\\\ <\\\\\\\\\n// \\\\''\\\\-' ⎩, <\\\\/\\\\ \\\\ \\\\\n// \\\\_/ /\\\\_____⎩/ > > >\n// '___' <_(_)__> / \\\\ <\n// / / ´ \\\\ | \\\\___//\\\\\\\\\n// / / | / > > \\\\\\\\\n// · ··~~~~·~·~~~~~~~·~··~~~~~·~·~~·~~~~·~~~~~·· · ·\n//\n// Embrace the beauty of effortless typing by indulging in the benefits of them\n// sans the actual typing!\n//\n// Behold! These dynamically generated types were conjured from the schemas\n// nestled within this repository. However, should you yearn to expand upon\n// these types, kindly abstain from doing so in this file, lest AutoTypes'\n// magic shall smite your changes with each schema modification.\n//\n// Check out the details of Griddo AutoTypes in:\n// https://griddoio.notion.site/Griddo-AutoTypes-e7420867dd2e489c8da34a493b763cd8>\n//\n// Happy magic types!\n//\nimport { Core, Fields, Hideable, NonEmptyArray } from \"@griddo/core\"\n//\n`;\n\nexport { head };\n","import process from 'node:process';\nimport path from 'node:path';\nimport fs, {promises as fsPromises} from 'node:fs';\nimport {fileURLToPath} from 'node:url';\nimport pLocate from 'p-locate';\n\nconst typeMappings = {\n\tdirectory: 'isDirectory',\n\tfile: 'isFile',\n};\n\nfunction checkType(type) {\n\tif (Object.hasOwnProperty.call(typeMappings, type)) {\n\t\treturn;\n\t}\n\n\tthrow new Error(`Invalid type specified: ${type}`);\n}\n\nconst matchType = (type, stat) => stat[typeMappings[type]]();\n\nconst toPath = urlOrPath => urlOrPath instanceof URL ? fileURLToPath(urlOrPath) : urlOrPath;\n\nexport async function locatePath(\n\tpaths,\n\t{\n\t\tcwd = process.cwd(),\n\t\ttype = 'file',\n\t\tallowSymlinks = true,\n\t\tconcurrency,\n\t\tpreserveOrder,\n\t} = {},\n) {\n\tcheckType(type);\n\tcwd = toPath(cwd);\n\n\tconst statFunction = allowSymlinks ? fsPromises.stat : fsPromises.lstat;\n\n\treturn pLocate(paths, async path_ => {\n\t\ttry {\n\t\t\tconst stat = await statFunction(path.resolve(cwd, path_));\n\t\t\treturn matchType(type, stat);\n\t\t} catch {\n\t\t\treturn false;\n\t\t}\n\t}, {concurrency, preserveOrder});\n}\n\nexport function locatePathSync(\n\tpaths,\n\t{\n\t\tcwd = process.cwd(),\n\t\ttype = 'file',\n\t\tallowSymlinks = true,\n\t} = {},\n) {\n\tcheckType(type);\n\tcwd = toPath(cwd);\n\n\tconst statFunction = allowSymlinks ? fs.statSync : fs.lstatSync;\n\n\tfor (const path_ of paths) {\n\t\ttry {\n\t\t\tconst stat = statFunction(path.resolve(cwd, path_), {\n\t\t\t\tthrowIfNoEntry: false,\n\t\t\t});\n\n\t\t\tif (!stat) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif (matchType(type, stat)) {\n\t\t\t\treturn path_;\n\t\t\t}\n\t\t} catch {}\n\t}\n}\n","import path from 'node:path';\nimport {fileURLToPath} from 'node:url';\nimport {locatePath, locatePathSync} from 'locate-path';\n\nconst toPath = urlOrPath => urlOrPath instanceof URL ? fileURLToPath(urlOrPath) : urlOrPath;\n\nexport const findUpStop = Symbol('findUpStop');\n\nexport async function findUpMultiple(name, options = {}) {\n\tlet directory = path.resolve(toPath(options.cwd) || '');\n\tconst {root} = path.parse(directory);\n\tconst stopAt = path.resolve(directory, options.stopAt || root);\n\tconst limit = options.limit || Number.POSITIVE_INFINITY;\n\tconst paths = [name].flat();\n\n\tconst runMatcher = async locateOptions => {\n\t\tif (typeof name !== 'function') {\n\t\t\treturn locatePath(paths, locateOptions);\n\t\t}\n\n\t\tconst foundPath = await name(locateOptions.cwd);\n\t\tif (typeof foundPath === 'string') {\n\t\t\treturn locatePath([foundPath], locateOptions);\n\t\t}\n\n\t\treturn foundPath;\n\t};\n\n\tconst matches = [];\n\t// eslint-disable-next-line no-constant-condition\n\twhile (true) {\n\t\t// eslint-disable-next-line no-await-in-loop\n\t\tconst foundPath = await runMatcher({...options, cwd: directory});\n\n\t\tif (foundPath === findUpStop) {\n\t\t\tbreak;\n\t\t}\n\n\t\tif (foundPath) {\n\t\t\tmatches.push(path.resolve(directory, foundPath));\n\t\t}\n\n\t\tif (directory === stopAt || matches.length >= limit) {\n\t\t\tbreak;\n\t\t}\n\n\t\tdirectory = path.dirname(directory);\n\t}\n\n\treturn matches;\n}\n\nexport function findUpMultipleSync(name, options = {}) {\n\tlet directory = path.resolve(toPath(options.cwd) || '');\n\tconst {root} = path.parse(directory);\n\tconst stopAt = options.stopAt || root;\n\tconst limit = options.limit || Number.POSITIVE_INFINITY;\n\tconst paths = [name].flat();\n\n\tconst runMatcher = locateOptions => {\n\t\tif (typeof name !== 'function') {\n\t\t\treturn locatePathSync(paths, locateOptions);\n\t\t}\n\n\t\tconst foundPath = name(locateOptions.cwd);\n\t\tif (typeof foundPath === 'string') {\n\t\t\treturn locatePathSync([foundPath], locateOptions);\n\t\t}\n\n\t\treturn foundPath;\n\t};\n\n\tconst matches = [];\n\t// eslint-disable-next-line no-constant-condition\n\twhile (true) {\n\t\tconst foundPath = runMatcher({...options, cwd: directory});\n\n\t\tif (foundPath === findUpStop) {\n\t\t\tbreak;\n\t\t}\n\n\t\tif (foundPath) {\n\t\t\tmatches.push(path.resolve(directory, foundPath));\n\t\t}\n\n\t\tif (directory === stopAt || matches.length >= limit) {\n\t\t\tbreak;\n\t\t}\n\n\t\tdirectory = path.dirname(directory);\n\t}\n\n\treturn matches;\n}\n\nexport async function findUp(name, options = {}) {\n\tconst matches = await findUpMultiple(name, {...options, limit: 1});\n\treturn matches[0];\n}\n\nexport function findUpSync(name, options = {}) {\n\tconst matches = findUpMultipleSync(name, {...options, limit: 1});\n\treturn matches[0];\n}\n\nexport {\n\tpathExists,\n\tpathExistsSync,\n} from 'path-exists';\n","import path from 'node:path';\nimport {findUp, findUpSync} from 'find-up';\n\nexport async function packageDirectory({cwd} = {}) {\n\tconst filePath = await findUp('package.json', {cwd});\n\treturn filePath && path.dirname(filePath);\n}\n\nexport function packageDirectorySync({cwd} = {}) {\n\tconst filePath = findUpSync('package.json', {cwd});\n\treturn filePath && path.dirname(filePath);\n}\n","import type {\n\tFieldReturnTypes,\n\tFields,\n\tKindSchema,\n\tSchemaFieldTypes,\n\tSchemaTypeWithComponentProp,\n} from \"./types\";\nimport type { Schema } from \"../../..\";\nimport type * as PageContentType_Fields from \"../../../types/schema-fields/page-content-type-fields\";\nimport type { PageContentTypeFields } from \"../../../types/schema-fields/page-content-type-fields\";\nimport type {\n\tThemeVisualUniqueSelection,\n\tThumbnailOption,\n} from \"../../../types/schema-fields/props\";\nimport type { SimpleContentTypeFields } from \"../../../types/schema-fields/simple-content-type-fields\";\nimport type * as UI_Fields from \"../../../types/schema-fields/ui-fields\";\nimport type { UIFields } from \"../../../types/schema-fields/ui-fields\";\nimport type { UIFormFields } from \"../../../types/schema-fields/ui-form-fields\";\nimport type { UIFormTemplateFields } from \"../../../types/schema-fields/ui-form-template-fields\";\nimport type { UITemplateFields } from \"../../../types/schema-fields/ui-template-fields\";\nimport type { AutoTypesConfig, Module } from \"../../../types/schemas\";\n\nimport path from \"node:path\";\n\nimport { packageDirectorySync } from \"pkg-dir\";\nimport prettier from \"prettier\";\n\n/**\n * Return a string separated by the pipe char \"|\" using the `value` from object array.\n */\nfunction getGenericFromOptions<T = unknown>(options: Array<{ value: T }>) {\n\treturn options\n\t\t.map(({ value }) => (typeof value === \"string\" ? `\"${value}\"` : value))\n\t\t.join(\"|\");\n}\n\n/**\n * Return a string separated by the pipe char \"|\" using the `name` from object array.\n */\nfunction getGenericFromCheckBoxOptions<T>(options: Array<{ name: T }>) {\n\treturn options\n\t\t.map(({ name }) => (typeof name === \"string\" ? `\"${name}\"` : name))\n\t\t.join(\"|\");\n}\n\n// for components containers\n// whitelist.length = 1\n// whitelist.length > 1\nfunction getGenericFromWhitelist(whiteList: Array<string>) {\n\tconst { interfaceSuffix } = readConfig();\n\n\tif (whiteList.length > 1) {\n\t\treturn `Record<string, \n\t\t\t${whiteList\n\t\t\t\t.map((whiteListItem) => `${whiteListItem}${interfaceSuffix}`)\n\t\t\t\t.join(\"|\")}\n\t\t\t>`;\n\t}\n\n\t// Si solo hay un elemento\n\treturn whiteList.map((item) => `${item}${interfaceSuffix}`).join(\"\");\n}\n\nfunction returnType(type: SchemaFieldTypes) {\n\tconst typeObj: Record<SchemaFieldTypes, FieldReturnTypes> = {\n\t\tAIReferenceField: \"Fields.AIReference\",\n\t\tFormCategorySelect: \"Fields.FormCategorySelect\",\n\t\tFormContainer: \"Fields.FormContainer\",\n\t\tFormFieldArray: \"Fields.FormFieldArray\",\n\t\tArrayFieldGroup: \"Fields.ArrayFieldGroup\",\n\t\tAsyncCheckGroup: \"Fields.AsyncCheckGroup\",\n\t\tAsyncSelect: \"Fields.AsyncSelect\",\n\t\tCheckGroup: \"Fields.CheckGroup\",\n\t\tColorPicker: \"Fields.ColorPicker\",\n\t\tComponentArray: \"Fields.ComponentArray\",\n\t\tComponentContainer: \"Fields.ComponentContainer\",\n\t\tConditionalField: \"Fields.Conditional\",\n\t\tDateField: \"Fields.Date\",\n\t\tFieldGroup: \"Fields.FieldGroup\",\n\t\tFieldsDivider: \"Fields.FieldsDivider\",\n\t\tFileField: \"Fields.File\",\n\t\tHeadingField: \"Fields.Heading\",\n\t\tImageField: \"Fields.Image\",\n\t\tLinkField: \"Fields.Link\",\n\t\tMultiCheckSelect: \"Fields.MultiCheckSelect\",\n\t\tMultiCheckSelectGroup: \"Fields.MultiCheckSelectGroup\",\n\t\tNoteField: \"Fields.Note\",\n\t\tNumberField: \"Fields.Number\",\n\t\tRadioGroup: \"Fields.RadioGroup\",\n\t\tReferenceField: \"Fields.Reference\",\n\t\tRichText: \"Fields.RichText\",\n\t\tSelect: \"Fields.Select\",\n\t\tSliderField: \"Fields.Slider\",\n\t\tTagsField: \"Fields.Tags\",\n\t\tTextArea: \"Fields.TextArea\",\n\t\tTextField: \"Fields.Text\",\n\t\tTimeField: \"Fields.Time\",\n\t\tToggleField: \"Fields.Toggle\",\n\t\tUniqueCheck: \"Fields.UniqueCheck\",\n\t\tUrlField: \"Fields.Url\",\n\t\tVisualUniqueSelection: \"Fields.VisualUniqueSelection\",\n\t\tWysiwyg: \"Fields.Wysiwyg\",\n\t};\n\treturn typeObj[type];\n}\n\n/** Build a interface prop based on the field from the schema.\n * Optionally it can receives a custom value for the type and a generic string to use as generic value\n *\n * @example\n * getGriddoFieldPropType(TextFieldObjectFromSchema)\n * // -> TextFieldObjectFromSchema.key: Fields.TextField\n * getGriddoFieldPropType(TextFieldObjectFromSchema, 'MyCustomValue', 'foo')\n * // -> TextFieldObjectFromSchema.key: MyCustomValue<foo>\n */\ntype GetInterfacePropTypeOptions = {\n\treturnTypeName?: FieldReturnTypes;\n\tgeneric?: string;\n};\n\n/**\n * Return a serialized type from a Griddo schema field.\n *\n * @param Fields A Griddo field object\n * @param options An options object\n * @returns A string that represent a interface prop type.\n * @example\n * interface SomeInterface {\n * \tprop: boolean; // this function returns a string for this: `prop: boolean`\n * }\n */\nfunction getGriddoFieldPropType(\n\tfield: Fields,\n\toptions?: GetInterfacePropTypeOptions,\n) {\n\tconst { returnTypeName, generic } = options || {};\n\n\t// The field has `hideable: true`\n\tconst hasHideable = \"hideable\" in field ? Boolean(field.hideable) : false;\n\t// Generic part\n\tconst genericStr = generic ? `<${generic}>` : \"\";\n\t// The field type is from field.type prop or custom\n\tconst returnTypeNameStr = returnTypeName || returnType(field.type);\n\t// Field type with generic: field<generic>\n\tconst returnTypeNameWithGeneriStr = `${returnTypeNameStr}${genericStr}`;\n\t// Field type wrapped in Hideable helper type: Hideable<field<generic>>\n\tconst typeWrappedWithHideable = hasHideable\n\t\t? `Hideable<${returnTypeNameWithGeneriStr}>`\n\t\t: `${returnTypeNameWithGeneriStr}`;\n\n\t// JSDoc\n\tconst jsDocString = field._autoType?.doc || \"\";\n\t// prop?: Type\n\tconst typeString = `${field.key}?: ${typeWrappedWithHideable}`;\n\n\treturn `\n\t\t${jsDocString}\n\t\t${typeString}\n\t`;\n}\n\nasync function prettify(input: string) {\n\tconst localConfFile = await prettier.resolveConfigFile();\n\tconst localConf = await prettier.resolveConfig(localConfFile as string);\n\tconst autoTypesConfig = { useTabs: true };\n\tconst prettierConfig = localConf || autoTypesConfig;\n\n\tconst prettierConfigProps = {\n\t\t...prettierConfig,\n\t\tparser: \"typescript\",\n\t};\n\n\t// Prettier and white space clearing...\n\treturn (await prettier.format(input, prettierConfigProps)).replace(\n\t\t/^\\s*\\n/gm,\n\t\t\"\",\n\t);\n}\n\nconst IS_COMPONENT_LIBRARY = __dirname.includes(\"node_modules\");\n\n/**\n * Returns the instance or monorepo paths.\n *\n * @param customPath The path for the instance components\n */\nfunction resolveInstancePath() {\n\tconst cwd = __dirname;\n\tconst componentsPath = IS_COMPONENT_LIBRARY\n\t\t? \"../../../\"\n\t\t: \"../griddo-components\";\n\n\treturn path.resolve(packageDirectorySync({ cwd }), componentsPath);\n}\n\nfunction extractMergedSchemas(structuredData: any) {\n\t// Preprocesing some schemas\n\t// These variables will be get directly from the griddo.config.ts in the\n\t// future. Now we need to extract them from\n\t// `configFile.schemas.structuredData` and `configFile.schemas.all`\n\tconst categoryContentTypes = extractCategoryContentTypes(structuredData);\n\tconst pageContentTypes = extractPageContentTypes(structuredData);\n\tconst simpleContentTypes = extractSimpleContentTypes(structuredData);\n\n\treturn {\n\t\tcategoryContentTypes,\n\t\tpageContentTypes,\n\t\tsimpleContentTypes,\n\t};\n}\n\nfunction extractCategoryContentTypes(\n\tcategoryContentTypeSchemas: Record<string, Schema.CategoryContentType>,\n) {\n\tconst objs: Record<string, Schema.CategoryContentType> = {};\n\tfor (const key in categoryContentTypeSchemas) {\n\t\tconst schema = categoryContentTypeSchemas[key];\n\t\tif (!schema.fromPage && schema.taxonomy) {\n\t\t\tobjs[key] = schema;\n\t\t}\n\t}\n\n\treturn objs;\n}\n\nfunction extractPageContentTypes(\n\tpageContentTypeSchemas: Record<string, Schema.PageContentType>,\n) {\n\tconst objs: Record<string, Schema.PageContentType> = {};\n\tfor (const key in pageContentTypeSchemas) {\n\t\tconst schema = pageContentTypeSchemas[key];\n\t\tif (schema.fromPage) {\n\t\t\tobjs[key] = schema;\n\t\t}\n\t}\n\n\treturn objs;\n}\n\nfunction extractSimpleContentTypes(\n\tsimpleContentTypeSchemas: Record<string, Schema.SimpleContentType>,\n) {\n\tconst objs: Record<string, Schema.SimpleContentType> = {};\n\tfor (const key in simpleContentTypeSchemas) {\n\t\tconst schema = simpleContentTypeSchemas[key];\n\t\tif (!schema.fromPage && !schema.taxonomy) {\n\t\t\tobjs[key] = schema;\n\t\t}\n\t}\n\n\treturn objs;\n}\n\nfunction readConfig(): AutoTypesConfig {\n\tconst configPath = path.join(resolveInstancePath(), \"griddo.config.ts\");\n\tconst config = require(configPath);\n\tconst configWithFallbacks = {\n\t\tinterfaceSuffix: config.autotypes?.interfaceSuffix || \"Props\",\n\t\tcontentTypeSuffix: config.autotypes?.contentTypeSuffix || \"ContentType\",\n\t\tpublicApiSuffix: config.autotypes?.publicApiSuffix || \"List\",\n\t};\n\n\treturn configWithFallbacks;\n}\n\n/**\n * Return an optional property (the key in some Griddo field) and its value\n * (some Griddo field type) serialized based on a schema field.\n *\n * @param field A Griddo field object\n * @param kind Schema type in order to later do some operations with fields\n * @param options Object options\n * @example\n * getTypeFromField({ type: 'TextField', key: 'cardTitle', ... }, \"component\")\n * // returns -> \"cardTitle?: Fields.Text\"\n */\nfunction getTypeFromField(\n\tfield:\n\t\t| UIFields\n\t\t| UIFormFields\n\t\t| UITemplateFields\n\t\t| UIFormTemplateFields\n\t\t| SimpleContentTypeFields\n\t\t| PageContentTypeFields,\n\tkind: KindSchema,\n\toptions: {\n\t\thasDistributorData: boolean;\n\t\tgetStaticData: boolean;\n\t\tmoduleSchemas: Array<Module | undefined>;\n\t\tschema: SchemaTypeWithComponentProp;\n\t\tallSchemas: any;\n\t},\n): string | undefined {\n\t// Config\n\tconst { contentTypeSuffix, interfaceSuffix } = readConfig();\n\n\t//\n\t// Ignore - Bypass\n\t//\n\t// Empezamos ignorando ciertos fields que no necesitamos que generen types\n\t// aunque estén en los schemas. De esta manera los quitamos del proceso en\n\t// primera instancia y evitamos errores en los types de esta función.\n\tif (field.type === \"FieldsDivider\") {\n\t\treturn \"// FieldsDivider\";\n\t}\n\n\t// Ignore type generation from schema _autoType prop\n\tif (field._autoType?.ignore) {\n\t\treturn \"// Ignored by AutoType.ignore\";\n\t}\n\n\t//\n\t// Go!\n\t//\n\tconst { type, _autoType, key } = field;\n\tconst { hasDistributorData, getStaticData } = options;\n\n\t// If the field is missing the prop key or type, return an \"error\" string.\n\tif (!type || !key) {\n\t\treturn `\n\t\t\t/** · (ノ-_-)ノ ミ ┴┴ You forgot to write the \\`type\\` | \\`key\\` or some mandatory prop */\n\t\t`;\n\t}\n\n\t// Simple fields\n\t// { type: \"TextField\", key: \"foo\" } --> \"foo?: Fields.Text\"\n\tif (\n\t\ttype === \"DateField\" ||\n\t\ttype === \"FileField\" ||\n\t\ttype === \"ImageField\" ||\n\t\ttype === \"NoteField\" ||\n\t\ttype === \"NumberField\" ||\n\t\ttype === \"RichText\" ||\n\t\ttype === \"SliderField\" ||\n\t\ttype === \"TagsField\" ||\n\t\ttype === \"TextArea\" ||\n\t\ttype === \"TextField\" ||\n\t\ttype === \"TimeField\" ||\n\t\ttype === \"ToggleField\" ||\n\t\ttype === \"UniqueCheck\" ||\n\t\ttype === \"UrlField\" ||\n\t\ttype === \"Wysiwyg\"\n\t) {\n\t\treturn getGriddoFieldPropType(field);\n\t}\n\n\t// MultiCheckSelect\n\t// { type: \"MultiCheckSelect\", key: \"foo\" } --> \"foo?: Fields.MultiCheckSelectGroup<Relations, true>\"\n\tif (type === \"MultiCheckSelect\") {\n\t\t// - MultiCheckSelect in a ContentType schema (page or simple)\n\t\t//\n\t\t// Cuando está dentro de un ContentType el field devuelve cosas\n\t\t// distintas a cuando está dentro de un schema de UI y tiene en cuenta:\n\t\t// - Si está siendo requerido por API pública (useList)\n\t\t// - Si tiene relations\n\t\t// - Se añade el contentType relacionado para poder hacera autocomplete\n\t\tif (kind === \"pageContentType\" || kind === \"simpleContentType\") {\n\t\t\tconst relationData = `${field.source}${contentTypeSuffix}${interfaceSuffix}`;\n\t\t\treturn getGriddoFieldPropType(field, {\n\t\t\t\tgeneric: `Relations, FromList, ${relationData}<false, false>, FromDistributor`,\n\t\t\t});\n\t\t}\n\n\t\t// - Rest of schemas\n\t\t//\n\t\t// { type: \"MultiCheckSelect\", key: \"foo\" } --> \"foo?: Fields.MultiCheckSelectGroup<Relations>\"\n\t\treturn getGriddoFieldPropType(field, {\n\t\t\tgeneric: \"true\",\n\t\t});\n\t}\n\n\t// AsyncCheckGroup\n\t// Duplicate from MultiCheckSelect\n\tif (type === \"AsyncCheckGroup\") {\n\t\tif (kind === \"pageContentType\" || kind === \"simpleContentType\") {\n\t\t\tconst relationData = `${field.source}${contentTypeSuffix}${interfaceSuffix}`;\n\t\t\treturn getGriddoFieldPropType(field, {\n\t\t\t\tgeneric: `Relations, FromList, ${relationData}<false, false>, FromDistributor`,\n\t\t\t});\n\t\t}\n\n\t\treturn getGriddoFieldPropType(field, {\n\t\t\tgeneric: \"true\",\n\t\t});\n\t}\n\n\t// MultiCheckSelectGroup\n\t// { type: \"MultiCheckSelectGroup\", key: \"foo\" } --> \"foo?: Fields.MultiCheckSelectGroup<>\"\n\tif (type === \"MultiCheckSelectGroup\") {\n\t\tconst keys = field.elements.map((element) => `\"${element.key}\"`).join(\"|\");\n\t\tconst relations = field._autoType?.relations;\n\t\tconst generic = [keys, relations].join(\",\");\n\n\t\treturn getGriddoFieldPropType(field, { generic });\n\t}\n\n\t// ColorPicker\n\t// { type: \"ColorPickerFixed\", key: \"foo\" } --> \"foo?: Fields.ColorPickerFixed<>\"\n\tif (type === \"ColorPicker\") {\n\t\tif (field.isThemePalette) {\n\t\t\treturn getGriddoFieldPropType(field, {\n\t\t\t\treturnTypeName: \"Fields.ColorPickerFixed\",\n\t\t\t});\n\t\t}\n\n\t\treturn getGriddoFieldPropType(field);\n\t}\n\n\t// HeadingField, RadioGroup, Select\n\t// Generic from options.values\n\t// { type: \"HeadingField\", key: \"foo\" } --> \"foo?: Fields.Heading<>\"\n\tif (type === \"HeadingField\" || type === \"RadioGroup\" || type === \"Select\") {\n\t\tconst { options } = field;\n\t\tconst generic = getGenericFromOptions(options);\n\n\t\treturn getGriddoFieldPropType(field, { generic });\n\t}\n\n\t// CheckGroup\n\t// Generic from options.name\n\t// { type: \"CheckGroup\", key: \"foo\" } --> \"Fields.CheckGroup<>\n\tif (type === \"CheckGroup\") {\n\t\tconst { options } = field;\n\t\tconst generic = getGenericFromCheckBoxOptions(options);\n\n\t\treturn getGriddoFieldPropType(field, { generic });\n\t}\n\n\t// LinkField\n\t// Generic from whitelist\n\t// type === \"LinkField\" --> key: Fields.Link<{video:Video, image:Image}>\n\tif (type === \"LinkField\") {\n\t\tconst { whiteList } = field;\n\n\t\tlet generic = \"\";\n\t\t// getGenericFromWhiteListAndModalDefaultValues\n\t\tif (whiteList.length > 1 && \"default\" in options.schema) {\n\t\t\tconst defVal = options.schema.default[field.key].modal;\n\t\t\tconst genericStr = Object.keys(defVal)\n\t\t\t\t.map((key) => `${key}?: ${defVal[key].component}${interfaceSuffix}`)\n\t\t\t\t.join(\",\");\n\t\t\tgeneric = `{${genericStr}}`;\n\t\t} else {\n\t\t\tgeneric = `${whiteList[0]}${interfaceSuffix}`;\n\t\t}\n\n\t\treturn getGriddoFieldPropType(field, { generic });\n\t}\n\n\t// AsyncSelect\n\t// { type: \"AsyncSelect\", key: \"foo\" } --> \"foo?: Fields.{AsyncSelectType}\"\n\t// TODO: waiting for the field documentation\n\tif (type === \"AsyncSelect\") {\n\t\t// Entities\n\t\tif (\"entity\" in field) {\n\t\t\t// Menu\n\t\t\tif (field.entity === \"menu_containers\") {\n\t\t\t\treturn `\\n${key}?: Menu`;\n\t\t\t}\n\t\t\t// // Pages\n\t\t\t// if (field.entity === \"sites\") {\n\t\t\t// \treturn `${key}?: Fields.Menu;`;\n\t\t\t// }\n\t\t\t// // Sites\n\t\t\t// if (field.entity === \"pages\") {\n\t\t\t// \treturn `${key}?: Fields.Menu;`;\n\t\t\t// }\n\t\t}\n\n\t\tif (kind === \"pageContentType\" || kind === \"simpleContentType\") {\n\t\t\tconst relationData = `${field.source}${contentTypeSuffix}${interfaceSuffix}`;\n\t\t\treturn getGriddoFieldPropType(field, {\n\t\t\t\tgeneric: `Relations, FromList, ${relationData}<false, false>, FromDistributor`,\n\t\t\t});\n\t\t}\n\n\t\treturn `\\n${key}?: Fields.AsyncSelect;`;\n\t}\n\n\t// FieldGroup\n\t// { type: \"FieldGroup\", key: \"foo\" } --> \"foo?: Fields.???\"\n\t// <Recursive>\n\tif (type === \"FieldGroup\") {\n\t\treturn `\n\t\t\t// << ${type}\n\t\t\t${field.fields.map((field) => getTypeFromField(field, kind, options)).join(\"\")}\n\t\t\t// end >>\n\t\t`;\n\t}\n\n\t// ArrayFieldGroup\n\tif (type === \"ArrayFieldGroup\") {\n\t\tconst doc = _autoType?.doc || \"\";\n\n\t\treturn `\n\t\t\t\\n${doc}\\n${key}?: Fields.ArrayFieldGroup<{${field.fields\n\t\t\t\t.map((childField) => getTypeFromField(childField, kind, options))\n\t\t\t\t.join(\",\")}}>\n\t\t`;\n\t}\n\n\t// ConditionalField\n\t// <Recursive>\n\tif (type === \"ConditionalField\") {\n\t\tconst conditionalChildrenFields = field.fields.map((field) => {\n\t\t\treturn getTypeFromField(field, kind, options);\n\t\t});\n\t\tconst doc = _autoType?.doc || \"\";\n\t\tconst conditionalHasHideable = \"hideable\" in field ? field.hideable : false;\n\t\tconst startHideable = conditionalHasHideable ? \"Hideable<\" : \"\";\n\t\tconst endHideable = conditionalHasHideable ? \">\" : \"\";\n\n\t\treturn `\n\t\t\t// << ${type}\n\t\t\t\\n${doc}\\n${key}?: ${startHideable}${returnType(type)}<${field.options\n\t\t\t\t.map((option) => {\n\t\t\t\t\treturn typeof option.value === \"string\"\n\t\t\t\t\t\t? `\"${option.value}\"`\n\t\t\t\t\t\t: option.value;\n\t\t\t\t})\n\t\t\t\t.join(\"|\")}>${endHideable};\n\t\t\t${conditionalChildrenFields.join(\"\")}\n\t\t\t// end >>\n\t\t`;\n\t}\n\n\tif (type === \"FormFieldArray\") {\n\t\t// El type de Griddo es dinstinto para un ComponentArray si este está\n\t\t// dentro de un template.\n\t\tconst returnTypeName =\n\t\t\tkind === \"template\" || kind === \"pageContentType\"\n\t\t\t\t? \"TemplateSection\"\n\t\t\t\t: kind === \"formTemplate\"\n\t\t\t\t\t? \"FormFieldArray\"\n\t\t\t\t\t: \"ComponentArray\";\n\n\t\tconst optional = kind === \"template\" ? \"\" : \"?\";\n\n\t\tconst { key, _autoType, whiteList } = field;\n\t\tconst doc = _autoType?.doc || \"\";\n\n\t\t// TODO: Research to compute this with type itself.\n\t\t// SHAME: Remove anys!!\n\t\tconst getModulesFromTemplateSectionList = (\n\t\t\tmodules: Array<Module | undefined>,\n\t\t\ttemplateName: string,\n\t\t\ttemplateSection: string,\n\t\t): Array<Module | undefined> => {\n\t\t\treturn modules\n\t\t\t\t.filter((entry: any) => {\n\t\t\t\t\tif (\n\t\t\t\t\t\tentry &&\n\t\t\t\t\t\t\"schemaType\" in entry &&\n\t\t\t\t\t\tentry?.schemaType === \"module\"\n\t\t\t\t\t) {\n\t\t\t\t\t\treturn entry?.sectionList && !!entry?.sectionList[templateName];\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn undefined;\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t\t.map((entry: any) => {\n\t\t\t\t\treturn {\n\t\t\t\t\t\tt: entry?.sectionList[templateName].filter(\n\t\t\t\t\t\t\t(s: any) => s === templateSection,\n\t\t\t\t\t\t),\n\t\t\t\t\t\tm: entry?.component,\n\t\t\t\t\t};\n\t\t\t\t})\n\t\t\t\t.filter((entry: any) => entry?.t?.length)\n\t\t\t\t.map((entry: any) => entry?.m)\n\t\t\t\t.filter(Boolean);\n\t\t};\n\n\t\t// BasicTemplate -> mainSection\n\t\tlet modulesInSectionLists = \"\";\n\t\tif (kind === \"template\") {\n\t\t\tmodulesInSectionLists = getModulesFromTemplateSectionList(\n\t\t\t\toptions.moduleSchemas,\n\t\t\t\toptions.schema.component,\n\t\t\t\tkey,\n\t\t\t).join(\"|\");\n\t\t}\n\n\t\t// 1 - Mix whitelist and sectionList\n\t\t// 2 - Remove duplicate modules due to mixing between sectionList and whiteList\n\t\tconst everyModuleInTemplateSection = [\n\t\t\t...new Set([...modulesInSectionLists.split(\"|\"), ...whiteList]),\n\t\t].filter(Boolean);\n\n\t\treturn `\\n${doc}\\n${key}${optional}: Fields.${returnTypeName}<${everyModuleInTemplateSection\n\t\t\t.map((component) => `${component}${interfaceSuffix}`)\n\t\t\t.join(\"|\")}>;`;\n\t}\n\n\t// ComponentArray\n\t// <Complex>\n\tif (type === \"ComponentArray\") {\n\t\t// El type de Griddo es dinstinto para un ComponentArray si este está\n\t\t// dentro de un template.\n\t\tconst returnTypeName =\n\t\t\tkind === \"template\" || kind === \"pageContentType\"\n\t\t\t\t? \"TemplateSection\"\n\t\t\t\t: \"ComponentArray\";\n\n\t\tconst optional = kind === \"template\" ? \"\" : \"?\";\n\n\t\t// Type assertion, el field ComponentArray solo puede ser UI o Page\n\t\tconst fieldCasted = field as\n\t\t\t| UI_Fields.ComponentArray\n\t\t\t| PageContentType_Fields.ComponentArray;\n\n\t\tconst { key, _autoType, whiteList } = fieldCasted;\n\t\tconst doc = _autoType?.doc || \"\";\n\n\t\t// TODO: Research to compute this with type itself.\n\t\t// SHAME: Remove anys!!\n\t\tconst getModulesFromTemplateSectionList = (\n\t\t\tmodules: Array<Module | undefined>,\n\t\t\ttemplateName: string,\n\t\t\ttemplateSection: string,\n\t\t): Array<Module | undefined> => {\n\t\t\treturn modules\n\t\t\t\t.filter((entry: any) => {\n\t\t\t\t\tif (\n\t\t\t\t\t\tentry &&\n\t\t\t\t\t\t\"schemaType\" in entry &&\n\t\t\t\t\t\tentry?.schemaType === \"module\"\n\t\t\t\t\t) {\n\t\t\t\t\t\treturn entry?.sectionList && !!entry?.sectionList[templateName];\n\t\t\t\t\t}\n\n\t\t\t\t\treturn undefined;\n\t\t\t\t})\n\t\t\t\t.map((entry: any) => {\n\t\t\t\t\treturn {\n\t\t\t\t\t\tt: entry?.sectionList[templateName].filter(\n\t\t\t\t\t\t\t(s: any) => s === templateSection,\n\t\t\t\t\t\t),\n\t\t\t\t\t\tm: entry?.component,\n\t\t\t\t\t};\n\t\t\t\t})\n\t\t\t\t.filter((entry: any) => entry?.t?.length)\n\t\t\t\t.map((entry: any) => entry?.m)\n\t\t\t\t.filter(Boolean);\n\t\t};\n\n\t\t// BasicTemplate -> mainSection\n\t\tlet modulesInSectionLists = \"\";\n\t\tif (kind === \"template\") {\n\t\t\tmodulesInSectionLists = getModulesFromTemplateSectionList(\n\t\t\t\toptions.moduleSchemas,\n\t\t\t\toptions.schema.component,\n\t\t\t\tkey,\n\t\t\t).join(\"|\");\n\t\t}\n\n\t\t// 1 - Mix whitelist and sectionList\n\t\t// 2 - Remove duplicate modules due to mixing between sectionList and whiteList\n\t\tconst everyModuleInTemplateSection = [\n\t\t\t...new Set([...modulesInSectionLists.split(\"|\"), ...whiteList]),\n\t\t].filter(Boolean);\n\n\t\treturn `\\n${doc}\\n${key}${optional}: Fields.${returnTypeName}<${everyModuleInTemplateSection\n\t\t\t.map((component) => `${component}${interfaceSuffix}`)\n\t\t\t.join(\"|\")}>;`;\n\t}\n\n\t// ComponentContainer\n\t// <Complex>\n\tif (type === \"ComponentContainer\") {\n\t\t// UI\n\t\tif (\n\t\t\tkind === \"object\" ||\n\t\t\tkind === \"component\" ||\n\t\t\tkind === \"module\" ||\n\t\t\tkind === \"template\" ||\n\t\t\tkind === \"pageContentType\"\n\t\t) {\n\t\t\tconst FieldCasted = field as UI_Fields.ComponentContainer;\n\t\t\tconst { whiteList } = FieldCasted;\n\n\t\t\tlet generic = \"\";\n\t\t\t// getGenericFromWhiteListAndDefaultValues\n\t\t\tif (whiteList.length > 1 && \"default\" in options.schema) {\n\t\t\t\tconst defVal = options.schema.default[field.key];\n\t\t\t\tconst genericStr = Object.keys(defVal)\n\t\t\t\t\t.map((key) => `${key}?: ${defVal[key].component}${interfaceSuffix};`)\n\t\t\t\t\t.join(\"\");\n\t\t\t\tgeneric = `{${genericStr}}`;\n\t\t\t} else {\n\t\t\t\tgeneric = `${whiteList[0]}${interfaceSuffix}`;\n\t\t\t}\n\n\t\t\treturn getGriddoFieldPropType(field, { generic });\n\t\t}\n\t}\n\n\t// FormContainer\n\t// <Complex>\n\tif (type === \"FormContainer\") {\n\t\t// UI\n\t\tif (\n\t\t\tkind === \"object\" ||\n\t\t\tkind === \"component\" ||\n\t\t\tkind === \"module\" ||\n\t\t\tkind === \"template\" ||\n\t\t\tkind === \"pageContentType\"\n\t\t) {\n\t\t\tconst doc = _autoType?.doc || \"\";\n\n\t\t\treturn `\\n${doc}\\n${key}?: Fields.FormContainer<FormTemplates${interfaceSuffix}>;`;\n\t\t}\n\t}\n\n\t// ReferenceField\n\t// TODO: Create correct generic using from/key values\n\tif (type === \"ReferenceField\") {\n\t\tconst sources = field.sources || [{ structuredData: undefined }];\n\t\tconst generic =\n\t\t\t(Array.isArray(sources) &&\n\t\t\t\tsources\n\t\t\t\t\t.map((item) =>\n\t\t\t\t\t\titem.structuredData\n\t\t\t\t\t\t\t? `${item.structuredData}${contentTypeSuffix}${interfaceSuffix}`\n\t\t\t\t\t\t\t: \"unknown\",\n\t\t\t\t\t)\n\t\t\t\t\t.join(\"|\")) ||\n\t\t\t\"\";\n\t\tconst referenceField = getGriddoFieldPropType(field, { generic });\n\t\tconst queriedItems =\n\t\t\thasDistributorData || getStaticData\n\t\t\t\t? `queriedItems?: Fields.QueriedData<${generic}>;`\n\t\t\t\t: \"\";\n\n\t\treturn `\n\t\t \t${referenceField}\n\t\t \t${queriedItems}\n\t\t `;\n\n\t\t// const { source } = field;\n\t\t// const generic = source\n\t\t// \t.map((item) => `${item}ContentType${interfaceSuffix}`)\n\t\t// \t.join(\"|\");\n\t\t// const referenceField = getGriddoFieldPropType(field, { generic });\n\t\t// const queriedItems = hasDistributorData\n\t\t// \t? `queriedItems?: Fields.QueriedData<${generic}>;`\n\t\t// \t: \"\";\n\n\t\t// return `\n\t\t// \t${referenceField}\n\t\t// \t${queriedItems}\n\t\t// `;\n\t}\n\n\t// VisualUniqueSelection\n\tif (type === \"VisualUniqueSelection\") {\n\t\tconst withValue = field.options[0] as ThumbnailOption;\n\t\tconst withTheme = field.options[0] as ThemeVisualUniqueSelection;\n\t\tlet generic = \"\";\n\n\t\t// ThumbnailOption\n\t\tif (withValue.value) {\n\t\t\tconst all = field.options as Array<ThumbnailOption>;\n\t\t\tgeneric = all.map((item) => `\"${item.value}\"`).join(\"|\");\n\t\t}\n\n\t\t// ThemeVisualUniqueSelection\n\t\tif (withTheme.theme) {\n\t\t\tconst all = field.options as Array<ThemeVisualUniqueSelection>;\n\t\t\tgeneric = all[0].options.map((i) => `\"${i.value}\"`).join(\"|\");\n\t\t}\n\n\t\treturn getGriddoFieldPropType(field, { generic });\n\t}\n\n\tif (type === \"FormCategorySelect\") {\n\t\treturn `${key}?: Fields.FormCategorySelect<FormCategoryLabels>`;\n\t}\n\n\tif (type === \"AIReferenceField\") {\n\t\treturn `${key}?: Fields.AIReference`;\n\t}\n\n\tconsole.warn(`The field ${field.type} has not been implemented yet ㅠ.ㅠ`);\n\n\treturn \"\";\n\n\t// throw new Error(`Wrong schema field! ${JSON.stringify(field, null, 2)}`);\n}\n\nexport {\n\textractMergedSchemas,\n\tgetGenericFromCheckBoxOptions,\n\tgetGenericFromOptions,\n\tgetGenericFromWhitelist,\n\tgetGriddoFieldPropType,\n\tgetTypeFromField,\n\tprettify,\n\treadConfig,\n\tresolveInstancePath,\n\treturnType,\n};\n","interface Parser {\n\tparse(schema: unknown): string;\n}\n\nclass AutoTypes {\n\tprivate parser?: Parser;\n\n\tsetParser(parser: Parser) {\n\t\tthis.parser = parser;\n\t}\n\n\tparse(schema: unknown) {\n\t\treturn this.parser?.parse(schema) || \"\";\n\t}\n}\n\n/**\n * Parse a list of schemas with their corresponding parsers and return an array\n * with each parsed schema as string.\n * @example\n * const output = parseSchemas([\n * { schema: languages, parser: parsers.LanguagesParser },\n * { schema: menuItems, parser: parsers.MenuItemsParser },\n * ])\n * // returns [\"language-schema-parsed\", \"menu-items-schema-parsed\"]\n */\nfunction parseSchemas(\n\tschemaParserMap: Array<{ schema: unknown; parser: new () => Parser }>,\n) {\n\tconst AutoTypesParser = new AutoTypes();\n\treturn schemaParserMap.map((entry) => {\n\t\tAutoTypesParser.setParser(new entry.parser());\n\t\treturn AutoTypesParser.parse(entry.schema);\n\t});\n}\n\nexport { AutoTypes, Parser, parseSchemas };\n","import { ComponentsNameParser } from \"./components-name\";\nimport { DataTemplatesNameParser } from \"./data-templates-names\";\nimport { DataPacksCategoryParser, DataPacksParser } from \"./datapacks\";\nimport { FormCategoryNamesParser } from \"./form-categories-name\";\nimport { FormFieldsParser } from \"./form-fields\";\nimport { FormTemplatesParser } from \"./form-templates\";\nimport { LanguagesParser } from \"./languages\";\nimport { MenuItemsParser } from \"./menu-items\";\nimport { ModuleCateogiresParser } from \"./module-categories\";\nimport { ModulesNameParser } from \"./modules-name\";\nimport { PageContentTypeParser } from \"./page-data\";\nimport { PageDataPropsParser } from \"./page-data-props\";\nimport { SimpleContentTypeParser } from \"./simple-data\";\nimport { SimpleDataPropsParser } from \"./simple-data-props\";\nimport { TaxonomyParser } from \"./taxonomy\";\nimport { TaxonomyPropsParser } from \"./taxonomy-props\";\nimport { TemplateSectionListParser } from \"./template-section-list\";\nimport { TemplatesNameParser } from \"./templates-name\";\nimport { SubthemesParser, ThemesParser } from \"./themes\";\nimport { UIAndDataPropsParser } from \"./ui-data-props\";\n\nexport const parsers = {\n\tComponentsNameParser,\n\tDataPacksCategoryParser,\n\tDataPacksParser,\n\tDataTemplatesNameParser,\n\tFormCategoryNamesParser,\n\tFormFieldsParser,\n\tFormTemplatesParser,\n\tLanguagesParser,\n\tMenuItemsParser,\n\tModuleCateogiresParser,\n\tModulesNameParser,\n\tPageContentTypeParser,\n\tPageDataPropsParser,\n\tSimpleContentTypeParser,\n\tSimpleDataPropsParser,\n\tSubthemesParser,\n\tTaxonomyParser,\n\tTaxonomyPropsParser,\n\tTemplateSectionListParser,\n\tTemplatesNameParser,\n\tThemesParser,\n\tUIAndDataPropsParser,\n};\n","import type { Schema } from \"../../..\";\nimport type { Parser } from \"../parser\";\n\nexport class ComponentsNameParser implements Parser {\n\tparse(schema: Record<string, Schema.Component>) {\n\t\tconst names = Object.keys(schema).map((name) => `\"${name}\"`);\n\n\t\treturn names.length ? `export type Components = ${names.join(\"|\")}` : \"\";\n\t}\n}\n","import type { Schema } from \"../../..\";\nimport type { Parser } from \"../parser\";\n\nexport class DataPacksParser implements Parser {\n\tparse(schema: Record<string, Schema.DataPack>) {\n\t\treturn schema\n\t\t\t? `export type Datapacks = ${Object.keys(schema)\n\t\t\t\t\t.map((entry) => `\"${entry}\"`)\n\t\t\t\t\t.join(\"|\")}`\n\t\t\t: \"\";\n\t}\n}\n\nexport class DataPacksCategoryParser implements Parser {\n\tparse(schema: Record<string, Schema.DataPackCategory>) {\n\t\treturn schema\n\t\t\t? `export type DatapacksCategories = ${Object.keys(schema)\n\t\t\t\t\t.map((entry) => `\"${entry}\"`)\n\t\t\t\t\t.join(\"|\")}`\n\t\t\t: \"\";\n\t}\n}\n","import type { Schema } from \"../../..\";\nimport type { Parser } from \"../parser\";\n\nexport class DataTemplatesNameParser implements Parser {\n\tparse(\n\t\tschema: Record<\n\t\t\tstring,\n\t\t\tSchema.Template | Schema.ListTemplate | Schema.PaginatedDataTemplate\n\t\t>,\n\t) {\n\t\tconst names = Object.keys(schema)\n\t\t\t.map((name) => {\n\t\t\t\tif (schema[name].type.mode === \"detail\") {\n\t\t\t\t\treturn `\"${name}\"`;\n\t\t\t\t}\n\t\t\t\treturn \"\";\n\t\t\t})\n\t\t\t.filter(Boolean);\n\n\t\treturn names.length\n\t\t\t? `export type DetailTemplates = ${names.join(\"|\")}`\n\t\t\t: \"\";\n\t}\n}\n","import type { Schema } from \"../../..\";\nimport type { Parser } from \"../parser\";\n\nexport class FormCategoryNamesParser implements Parser {\n\tparse(schema: Schema.FormCategories) {\n\t\tconst names = schema.map(({ value }) => `\"${value}\"`);\n\n\t\treturn names.length\n\t\t\t? `export type FormCategoryLabels = ${names.join(\"|\")}`\n\t\t\t: \"\";\n\t}\n}\n","import type { Schema } from \"../../..\";\nimport type { Parser } from \"../parser\";\n\nimport { readConfig } from \"../misc/utils\";\n\nexport class FormFieldsParser implements Parser {\n\tparse(schema: Record<string, Schema.FormTemplate>) {\n\t\tconst { interfaceSuffix } = readConfig();\n\n\t\tconst names = Object.keys(schema).map((name) => `\"${name}\"`);\n\t\tconst namesWithProp = Object.keys(schema).map(\n\t\t\t(name) => `${name}${interfaceSuffix}`,\n\t\t);\n\n\t\treturn names.length\n\t\t\t? `export type FormFields = ${names.join(\"|\")}\nexport type FormFields${interfaceSuffix} = ${namesWithProp.join(\"|\")}\n`\n\t\t\t: \"\";\n\t}\n}\n","import type { Schema } from \"../../..\";\nimport type { Parser } from \"../parser\";\n\nimport { readConfig } from \"../misc/utils\";\n\nexport class FormTemplatesParser implements Parser {\n\tparse(schema: Record<string, Schema.FormTemplate>) {\n\t\tconst { interfaceSuffix } = readConfig();\n\n\t\tconst names = Object.keys(schema).map((name) => `\"${name}\"`);\n\t\tconst namesWithProp = Object.keys(schema).map(\n\t\t\t(name) => `${name}${interfaceSuffix}`,\n\t\t);\n\n\t\treturn names.length\n\t\t\t? `export type FormTemplates = ${names.join(\"|\")}\nexport type FormTemplates${interfaceSuffix} = ${namesWithProp.join(\"|\")}\n`\n\t\t\t: \"\";\n\t}\n}\n","import type { Schema } from \"../../..\";\nimport type { Parser } from \"../parser\";\n\nexport class LanguagesParser implements Parser {\n\tparse(schema: Schema.Languages) {\n\t\tconst langKeys = Object.keys(schema) as Array<keyof typeof schema>;\n\t\tconst label = langKeys.map((loc) => `\"${schema[loc]?.label}\"`).join(\"|\");\n\t\tconst language = langKeys.map((loc) => `\"${schema[loc]?.name}\"`).join(\"|\");\n\t\tconst locale = langKeys.map((loc) => `\"${loc}\"`).join(\"|\");\n\n\t\treturn `\n\t\texport interface SiteLanguage {\n\t\t\tdomain: { id: number; url: string; slug: string };\n\t\t\thome: string;\n\t\t\tid: number;\n\t\t\tisDefault: boolean;\n\t\t\tlabel: ${label};\n\t\t\tlanguage: ${language};\n\t\t\tlocale: ${locale}\n\t\t\tpath: string;\n\t\t}\n\t`;\n\t}\n}\n","import type {\n\tFields,\n\tMenuItemsSchema,\n\tSchemaTypeWithComponentProp,\n} from \"../misc/types\";\nimport type { Parser } from \"../parser\";\n\nimport { getTypeFromField } from \"../misc/utils\";\n\nexport class MenuItemsParser implements Parser {\n\tprivate getMenuItemsProps(fields?: Array<Fields>) {\n\t\tif (!fields) {\n\t\t\treturn \"\";\n\t\t}\n\n\t\treturn fields\n\t\t\t.map((field) =>\n\t\t\t\tgetTypeFromField(field, \"object\", {\n\t\t\t\t\thasDistributorData: false,\n\t\t\t\t\tgetStaticData: false,\n\t\t\t\t\tmoduleSchemas: [],\n\t\t\t\t\tschema: {} as SchemaTypeWithComponentProp,\n\t\t\t\t\tallSchemas: {},\n\t\t\t\t}),\n\t\t\t)\n\t\t\t.join(\"\");\n\t}\n\n\tparse(schema: MenuItemsSchema): string {\n\t\tconst linkFields = schema?.link?.fields as any;\n\t\tconst groupFields = schema?.group?.fields as any;\n\t\tconst menuItemsLinksProps = this.getMenuItemsProps(linkFields);\n\t\tconst menuItemsGroupProps = this.getMenuItemsProps(groupFields);\n\n\t\treturn `\n\t\texport interface InstanceMenuItems {\n\t\t\tlink:{\n\t\t\t\t${menuItemsLinksProps}\n\t\t\t\tconfig?: {\n\t\t\t\t\theaderStyle?: string;\n\t\t\t\t\tfooterStyle?: string;\n\t\t\t\t\ttype?: \"link\";\n\t\t\t\t};\n\t\t\t};\n\t\t\tgroup: {\n\t\t\t\turl?: null;\n\t\t\t\t${menuItemsGroupProps}\n\t\t\t\tconfig?: {\n\t\t\t\t\theaderStyle?: string;\n\t\t\t\t\tfooterStyle?: string;\n\t\t\t\t\ttype?: \"group\";\n\t\t\t\t};\n\t\t\t};\n\t\t}\n\t\texport type LinkMenuElement = Fields.BaseLinkElement<InstanceMenuItems> & InstanceMenuItems[\"link\"];\n\t\texport type GroupMenuElement = Fields.BaseLinkElement<InstanceMenuItems> & InstanceMenuItems[\"group\"];\n\t\texport type MenuElement = LinkMenuElement | GroupMenuElement;\n\t\texport type Menu = Fields.Menu<InstanceMenuItems>;\n\t`;\n\t}\n}\n","import type { Schema } from \"../../..\";\nimport type { Parser } from \"../parser\";\n\nexport class ModuleCateogiresParser implements Parser {\n\tparse(schema: Schema.ModuleCategories) {\n\t\treturn schema\n\t\t\t? `export type ModuleCategories = ${schema\n\t\t\t\t\t.map((entry) => `\"${entry.value}\"`)\n\t\t\t\t\t.join(\"|\")}`\n\t\t\t: \"\";\n\t}\n}\n","import type { Schema } from \"../../..\";\nimport type { Parser } from \"../parser\";\n\nexport class ModulesNameParser implements Parser {\n\tparse(schema: Record<string, Schema.Module>) {\n\t\tconst names = Object.keys(schema).map((name) => `\"${name}\"`);\n\n\t\treturn names.length ? `export type Modules = ${names.join(\"|\")}` : \"\";\n\t}\n}\n","import type { Schema } from \"../../..\";\nimport type { Parser } from \"../parser\";\n\nexport class PageContentTypeParser implements Parser {\n\tparse(schema: Record<string, Schema.PageContentType>) {\n\t\tconst names = Object.keys(schema).map((name) => `\"${name}\"`);\n\n\t\treturn names.length\n\t\t\t? `export type PageContentTypes = ${names.join(\"|\")}`\n\t\t\t: \"\";\n\t}\n}\n","import type { Schema } from \"../../..\";\nimport type { Parser } from \"../parser\";\n\nimport { readConfig } from \"../misc/utils\";\n\nexport class PageDataPropsParser implements Parser {\n\tparse(schema: Record<string, Schema.PageContentType>) {\n\t\tconst { contentTypeSuffix, interfaceSuffix } = readConfig();\n\n\t\tconst names = Object.keys(schema).map(\n\t\t\t(name) => `${name}${contentTypeSuffix}${interfaceSuffix}`,\n\t\t);\n\n\t\treturn names.length\n\t\t\t? `export type Page${contentTypeSuffix}${interfaceSuffix} = ${names.join(\"|\")}`\n\t\t\t: \"\";\n\t}\n}\n","import type { Schema } from \"../../..\";\nimport type { Parser } from \"../parser\";\n\nexport class SimpleContentTypeParser implements Parser {\n\tparse(schema: Record<string, Schema.SimpleContentType>) {\n\t\tconst names = Object.keys(schema).map((name) => `\"${name}\"`);\n\n\t\treturn names.length\n\t\t\t? `export type SimpleContentTypes = ${names.join(\"|\")}`\n\t\t\t: \"\";\n\t}\n}\n","import type { Schema } from \"../../..\";\nimport type { Parser } from \"../parser\";\n\nimport { readConfig } from \"../misc/utils\";\n\nexport class SimpleDataPropsParser implements Parser {\n\tparse(schema: Record<string, Schema.SimpleContentType>) {\n\t\tconst { contentTypeSuffix, interfaceSuffix } = readConfig();\n\n\t\tconst names = Object.keys(schema).map(\n\t\t\t(name) => `${name}${contentTypeSuffix}${interfaceSuffix}`,\n\t\t);\n\n\t\treturn names.length\n\t\t\t? `export type Simple${contentTypeSuffix}${interfaceSuffix} = ${names.join(\"|\")}`\n\t\t\t: \"\";\n\t}\n}\n","import type { Schema } from \"../../..\";\nimport type { Parser } from \"../parser\";\n\nexport class ThemesParser implements Parser {\n\tparse(schema: Array<Schema.ThemeEntry>) {\n\t\treturn Array.isArray(schema) && !!schema.length\n\t\t\t? `export type Themes = ${schema\n\t\t\t\t\t.map((entry) => `\"${entry.value}\"`)\n\t\t\t\t\t.join(\"|\")}`\n\t\t\t: \"\";\n\t}\n}\n\nexport class SubthemesParser implements Parser {\n\tparse(schema: Array<string>) {\n\t\treturn Array.isArray(schema) && !!schema.length\n\t\t\t? `export type Subthemes = ${schema\n\t\t\t\t\t.map((entry) => `\"${entry}\"`)\n\t\t\t\t\t.join(\"|\")}`\n\t\t\t: \"\";\n\t}\n}\n","import type { Schema } from \"../../..\";\nimport type { Parser } from \"../parser\";\n\nexport class TaxonomyParser implements Parser {\n\tparse(schema: Record<string, Schema.CategoryContentType>) {\n\t\tconst names = Object.keys(schema).map((name) => `\"${name}\"`);\n\n\t\treturn names.length\n\t\t\t? `export type TaxonomyContentTypes = ${names.join(\"|\")}`\n\t\t\t: \"\";\n\t}\n}\n","import type { Schema } from \"../../..\";\nimport type { Parser } from \"../parser\";\n\nimport { readConfig } from \"../misc/utils\";\n\nexport class TaxonomyPropsParser implements Parser {\n\tparse(schema: Record<string, Schema.CategoryContentType>) {\n\t\tconst { contentTypeSuffix, interfaceSuffix } = readConfig();\n\n\t\tconst names = Object.keys(schema).map(\n\t\t\t(name) => `${name}${contentTypeSuffix}${interfaceSuffix}`,\n\t\t);\n\n\t\treturn names.length\n\t\t\t? `export type Taxonomy${contentTypeSuffix}${interfaceSuffix} = ${names.join(\"|\")}`\n\t\t\t: \"\";\n\t}\n}\n","import type { Schema } from \"../../..\";\nimport type { Parser } from \"../parser\";\n\nexport class TemplateSectionListParser implements Parser {\n\tparse(\n\t\tschema: Record<\n\t\t\tstring,\n\t\t\tSchema.Template | Schema.ListTemplate | Schema.PaginatedDataTemplate\n\t\t>,\n\t) {\n\t\tconst names: Array<string> = [];\n\n\t\tfor (const name in schema) {\n\t\t\tconst templateSchema = schema[name];\n\t\t\tconst sectionNames = templateSchema.content\n\t\t\t\t.filter((field) => field.type === \"ComponentArray\")\n\t\t\t\t.map(({ key }) => `\"${key}\"`)\n\t\t\t\t.filter(Boolean);\n\t\t\tconst sectionNameProp =\n\t\t\t\tsectionNames && sectionNames?.length > 0\n\t\t\t\t\t? `${templateSchema.component}?: NonEmptyArray<${sectionNames.join(\"|\")}>;`\n\t\t\t\t\t: \"\";\n\n\t\t\tnames.push(sectionNameProp);\n\t\t}\n\n\t\treturn `\n\t\t\texport type SectionList = { ${names.join(\"\")} }\n\t\t`;\n\t}\n}\n","import type { Schema } from \"../../..\";\nimport type { Parser } from \"../parser\";\n\nexport class TemplatesNameParser implements Parser {\n\tparse(schema: Record<string, Schema.Template>) {\n\t\tconst names = Object.keys(schema).map((name) => `\"${name}\"`);\n\n\t\treturn names.length ? `export type Templates = ${names.join(\"|\")}` : \"\";\n\t}\n}\n","import type { Schema } from \"../../..\";\nimport type { UITemplateFields } from \"../../../types/schema-fields/ui-template-fields\";\nimport type {\n\tGlobalState,\n\tSchemaType,\n\tSchemaTypeWithComponentProp,\n} from \"../misc/types\";\nimport type { Parser } from \"../parser\";\n\nimport { getTypeFromField, readConfig } from \"../misc/utils\";\n\nexport class UIAndDataPropsParser implements Parser {\n\tparse(schema: Record<string, SchemaType>) {\n\t\tconst schemasArray = convertSchemasObjectsToArray(schema);\n\n\t\tconst { interfaceSuffix } = readConfig();\n\n\t\tconst { ARRAY_OF_MODULE_SCHEMAS } = getModuleSchemas(schemasArray);\n\n\t\treturn schemasArray\n\t\t\t.map((schema) => {\n\t\t\t\tlet GS: GlobalState = {\n\t\t\t\t\tkind: \"component\",\n\t\t\t\t\tcontentTypeSuffixStr: \"\",\n\t\t\t\t\tcontentTypeName: \"\",\n\t\t\t\t\tcontentTypeKind: \"\",\n\t\t\t\t\trelatedContentTypeNames: \"\",\n\t\t\t\t\tcomponentName: \"\",\n\t\t\t\t\thasDistributorData: false,\n\t\t\t\t\tgetStaticData: false,\n\t\t\t\t\tinterfaceForPublicAPI: \"\",\n\t\t\t\t\t// to deprecate...\n\t\t\t\t\trelationsGeneric:\n\t\t\t\t\t\tschema._autoType?.relations || false\n\t\t\t\t\t\t\t? \"<Relations = unknown, FromList = unknown, FromDistributor = true>\"\n\t\t\t\t\t\t\t: \"\",\n\t\t\t\t};\n\n\t\t\t\t// -----------------------------------------------------------------\n\t\t\t\t// CONTENT TYPE SCHEMA\n\t\t\t\t// -----------------------------------------------------------------\n\t\t\t\tif (isContentTypeSchema(schema)) {\n\t\t\t\t\tconst localState = processContentTypeSchema(schema);\n\t\t\t\t\tGS = { ...GS, ...localState };\n\t\t\t\t}\n\n\t\t\t\t// -----------------------------------------------------------------\n\t\t\t\t// UI SCHEMA\n\t\t\t\t// -----------------------------------------------------------------\n\t\t\t\tif (isUISchema(schema)) {\n\t\t\t\t\tconst localState = processUISchema(schema);\n\t\t\t\t\tGS = { ...GS, ...localState };\n\t\t\t\t}\n\n\t\t\t\t// -----------------------------------------------------------------\n\t\t\t\t// EVERY FIELDS IN SCHEMAS\n\t\t\t\t// -----------------------------------------------------------------\n\t\t\t\tconst griddoFieldProps = getPropsFromFields(\n\t\t\t\t\tschema,\n\t\t\t\t\tARRAY_OF_MODULE_SCHEMAS,\n\t\t\t\t\tschema,\n\t\t\t\t\tGS,\n\t\t\t\t);\n\n\t\t\t\treturn `\n\t\t\t\texport interface ${schema.component}${GS.contentTypeSuffixStr}${interfaceSuffix}${GS.relationsGeneric} ${getExtra(schema)} {\n\t\t\t\t\t${GS.contentTypeName}\n\t\t\t\t\t${GS.contentTypeKind}\n\t\t\t\t\t${GS.relatedContentTypeNames}\n\t\t\t\t\t${GS.componentName}\n\t\t\t\t\t${griddoFieldProps}\n\t\t\t\t\t${isCategoryInterface(schema) ? \"title?: string; code?: string\" : \"\"}\n\t\t\t\t}\n\t\t\t\t${GS.interfaceForPublicAPI}\n\t\t\t`;\n\t\t\t})\n\t\t\t.join(\"\");\n\t}\n}\n\nfunction extendsType(types: Array<string>) {\n\treturn types.filter((typeStr) => typeStr.length).length < 1\n\t\t? \"\"\n\t\t: `extends ${types.join(\", \")}`;\n}\n\nfunction getExtra(schema: SchemaTypeWithComponentProp) {\n\tconst extraListTemplateProps = isListTemplate(schema)\n\t\t? \"Fields.ExtraListTemplateProps\"\n\t\t: \"\";\n\treturn extendsType([extraListTemplateProps]);\n}\n\nfunction isUISchema(\n\tschema: SchemaTypeWithComponentProp,\n): schema is\n\t| Schema.Component\n\t| Schema.ContentTypeModule\n\t| Schema.MultiPageModule\n\t| Schema.Module\n\t| Schema.Template\n\t| Schema.ListTemplate {\n\treturn \"schemaType\" in schema;\n}\n\nfunction isContentTypeSchema(\n\tschema: SchemaTypeWithComponentProp,\n): schema is\n\t| (Schema.SimpleContentType & { component: string })\n\t| (Schema.PageContentType & { component: string }) {\n\treturn \"fromPage\" in schema;\n}\n\nfunction isCategoryInterface(schema: SchemaTypeWithComponentProp) {\n\treturn \"fromPage\" in schema && !schema.fromPage && schema.taxonomy === true;\n}\n\nfunction isListTemplate(schema: SchemaTypeWithComponentProp) {\n\treturn (\n\t\t\"schemaType\" in schema &&\n\t\tschema.schemaType === \"template\" &&\n\t\t(schema.type.mode === \"list\" || schema.type.mode === \"paginated-data\")\n\t);\n}\n\n/**\n * Convert an object of schemas into an array of objects of these schemas.\n *\n * @example\n * input:\n * `schemas` is an object of schemas like so:\n *\t{\n *\t\tBasicContent: {\n *\t\t\tcomponent: \"BasicContent\",\n *\t\t\t...\n *\t\t},\n *\t\t...\n *\t}\n *\n * output:\n * [ {component: \"BasicContent\"}, {component: \"NewsTemplate\"}, ... ]\n */\nfunction convertSchemasObjectsToArray(\n\tobjectSchemas: Record<string, SchemaType>,\n): Array<SchemaTypeWithComponentProp> {\n\treturn (Object.keys(objectSchemas) as Array<string>).map((componentName) => {\n\t\treturn {\n\t\t\t// This component prop is for the ContentType schemas,\n\t\t\t// ui schemas have already one.\n\t\t\t...objectSchemas[componentName],\n\t\t\tcomponent: componentName,\n\t\t};\n\t});\n}\n\nfunction processContentTypeSchema(\n\tschema:\n\t\t| (Schema.SimpleContentType & { component: string })\n\t\t| (Schema.PageContentType & { component: string }),\n): GlobalState {\n\tconst { contentTypeSuffix, interfaceSuffix, publicApiSuffix } = readConfig();\n\n\t// ContentType names list\n\tconst contentTypePageListNames: Array<string> = [];\n\tconst contentTypeSimpleListNames: Array<string> = [];\n\tconst contentTypeTaxonomyListNames: Array<string> = [];\n\n\tconst kind = schema.fromPage ? \"pageContentType\" : \"simpleContentType\";\n\n\t// Add page ContentType name to the array\n\tif (kind === \"pageContentType\") {\n\t\tcontentTypePageListNames.push(`\"${schema.component}\"`);\n\t}\n\t// Add simple ContentType name to the array\n\tif (kind === \"simpleContentType\" && !schema.taxonomy) {\n\t\tcontentTypeSimpleListNames.push(`\"${schema.component}\"`);\n\t}\n\t// Add taxonomy (category) simple ContentType name to the array\n\tif (kind === \"simpleContentType\" && schema.taxonomy) {\n\t\tcontentTypeTaxonomyListNames.push(`\"${schema.component}\"`);\n\t}\n\n\tlet relatedContentTypeNames: any = \"\";\n\tif (\"schema\" in schema) {\n\t\tconst relatedContentTypeNamesValues = schema.schema.fields\n\t\t\t.map((field) => {\n\t\t\t\tif (\"source\" in field) {\n\t\t\t\t\treturn field?.source;\n\t\t\t\t}\n\n\t\t\t\treturn false;\n\t\t\t})\n\t\t\t.filter(Boolean);\n\n\t\trelatedContentTypeNames = relatedContentTypeNamesValues.length\n\t\t\t? `__relatedContentTypeNames: ${JSON.stringify(\n\t\t\t\t\trelatedContentTypeNamesValues,\n\t\t\t\t)}`\n\t\t\t: \"\";\n\t}\n\n\t// En el caso de los schemas de ContentType se pondrá siempre el\n\t// genérico a unknown para así poder pasarle el relations en el\n\t// componente de React, por ejemplo cuando se utilice el Type en\n\t// un hook como `useContentType`\n\t// `useList<AutoTypes.MEMBERContentType<true>>()`\n\t// ^\n\t// relations\n\tconst relationsGeneric =\n\t\t\"<Relations = unknown, FromList = unknown, FromDistributor = true>\";\n\n\tconst interfaceForPublicAPI = `\n\t\t\t\t/** Type to be consumed by public API: useList(), etc.. */\n\t\t\t\texport type ${schema.component}${contentTypeSuffix}${publicApiSuffix}${interfaceSuffix}<R extends Core.ContentTypeRelations = false> = ${schema.component}${contentTypeSuffix}${interfaceSuffix}<R, true>;\n\t\t\t\t`;\n\n\treturn {\n\t\tkind,\n\t\tcomponentName: \"\",\n\t\tcontentTypeName: `__contentTypeName: \"${schema.component}\";`,\n\t\tcontentTypeKind: `__contentTypeKind: \"${kind}\";`,\n\t\tcontentTypeSuffixStr: contentTypeSuffix,\n\t\tgetStaticData: false,\n\t\thasDistributorData: false,\n\t\trelatedContentTypeNames,\n\t\trelationsGeneric,\n\t\tinterfaceForPublicAPI,\n\t};\n}\n\nfunction processUISchema(\n\tschema:\n\t\t| Schema.Component\n\t\t| Schema.ContentTypeModule\n\t\t| Schema.MultiPageModule\n\t\t| Schema.Module\n\t\t| Schema.Template\n\t\t| Schema.ListTemplate\n\t\t| Schema.FormTemplate,\n): GlobalState {\n\treturn {\n\t\tkind: schema.schemaType,\n\t\tcomponentName: `component: \"${schema.component}\"`,\n\t\tcontentTypeName: \"\",\n\t\tcontentTypeKind: \"\",\n\t\tcontentTypeSuffixStr: \"\",\n\t\trelatedContentTypeNames: \"\",\n\t\trelationsGeneric: \"\",\n\t\tinterfaceForPublicAPI: \"\",\n\t\thasDistributorData: !!schema.default.hasDistributorData,\n\t\tgetStaticData: !!schema.default.getStaticData,\n\t};\n}\n\nfunction getPropsFromFields(\n\tschema: SchemaTypeWithComponentProp,\n\tarrayOfSchemaModules: Array<Schema.Module | undefined>,\n\tallSchemas: any,\n\tGS: GlobalState,\n) {\n\treturn getAllFields(schema)\n\t\t.map((field) => {\n\t\t\treturn getTypeFromField(field, GS.kind, {\n\t\t\t\thasDistributorData: GS.hasDistributorData,\n\t\t\t\tgetStaticData: GS.getStaticData,\n\t\t\t\tmoduleSchemas: arrayOfSchemaModules,\n\t\t\t\tschema,\n\t\t\t\tallSchemas,\n\t\t\t});\n\t\t})\n\t\t.filter(Boolean)\n\t\t.join(\"\");\n}\n\nfunction getModuleSchemas(schemas: Array<SchemaTypeWithComponentProp>) {\n\tconst ARRAY_OF_MODULE_SCHEMAS = schemas\n\t\t.map((schema) => {\n\t\t\tif (\"schemaType\" in schema && schema.schemaType === \"module\") {\n\t\t\t\treturn schema;\n\t\t\t}\n\t\t\treturn undefined;\n\t\t})\n\t\t.filter(Boolean);\n\n\treturn {\n\t\tARRAY_OF_MODULE_SCHEMAS,\n\t};\n}\n\n/** Get all fields from one schema */\nfunction getAllFields(schema: SchemaType) {\n\t// ContentType\n\t// Simple, Page\n\tif (\"fromPage\" in schema) {\n\t\t// AutoTypes doesn't generate types from categories\n\t\tif (!schema.taxonomy) {\n\t\t\treturn schema.schema.fields;\n\t\t}\n\t\t// hack???\n\t\treturn [];\n\t}\n\n\t// Templates\n\tif (schema.schemaType === \"template\") {\n\t\tconst content = (schema.content as Array<UITemplateFields>) || [];\n\t\tconst config = (schema.config as Array<UITemplateFields>) || [];\n\t\treturn [...content, ...config];\n\t}\n\n\tif (schema.schemaType === \"formTemplate\") {\n\t\tconst content = (schema.content as Array<UITemplateFields>) || [];\n\t\tconst config = (schema.config as Array<UITemplateFields>) || [];\n\t\treturn [...content, ...config];\n\t}\n\n\t// Objects, components and modules\n\tif (\n\t\tschema.schemaType === \"component\" ||\n\t\tschema.schemaType === \"module\" ||\n\t\tschema.schemaType === \"formComponent\"\n\t) {\n\t\treturn schema.configTabs.flatMap((tab) => tab.fields);\n\t}\n\n\tthrow new Error(`Wrong schema ${JSON.stringify(schema, null, 2)}`);\n}\n\nexport {\n\tconvertSchemasObjectsToArray,\n\tgetExtra,\n\tgetModuleSchemas,\n\tgetPropsFromFields,\n\tisCategoryInterface,\n\tisContentTypeSchema,\n\tisUISchema,\n\tprocessContentTypeSchema,\n\tprocessUISchema,\n};\n","import type { Core } from \"../..\";\nimport type { SchemaType } from \"./misc/types\";\n\nimport fs from \"node:fs\";\nimport path from \"node:path\";\n\nimport kleur from \"kleur\";\n\nimport { head } from \"./misc/ascii\";\nimport {\n\textractMergedSchemas,\n\tprettify,\n\tresolveInstancePath,\n} from \"./misc/utils\";\nimport { parseSchemas } from \"./parser\";\nimport { parsers } from \"./parsers-list\";\n\n/**\n * Generates the `autotypes.d.ts` file in the root of the instance project using\n * the instance schemas exported in `griddo.config.file`\n * The main usage of this file is for intellisense and autocompletion in the\n * instance when they work with the React components and schemas.\n * @documentation https://www.notion.so/griddoio/AutoTypes-e7420867dd2e489c8da34a493b763cd8?pvs=4\n */\n(async () => {\n\ttry {\n\t\tconst instancePath = resolveInstancePath();\n\t\tconst configFile = path.join(instancePath, \"griddo.config.ts\");\n\t\tconst config = require(configFile).default as Core.Config;\n\n\t\tconst {\n\t\t\tschemas: {\n\t\t\t\tconfig: { languages, menuItems, themes, subthemes, moduleCategories },\n\t\t\t\tcontentTypes: { dataPacks, dataPacksCategories, structuredData },\n\t\t\t\tui: { components, modules, templates },\n\t\t\t\tforms,\n\t\t\t},\n\t\t} = config;\n\n\t\t// These schemas are \"merged\" in the\n\t\t// `configFile.schemas.contentTypes.structuredData` props and we need to\n\t\t// get them separately.\n\t\tconst { categoryContentTypes, pageContentTypes, simpleContentTypes } =\n\t\t\textractMergedSchemas(config.schemas.contentTypes.structuredData);\n\n\t\t// In this case we merged some schemas in a `usSchemas` entity.\n\t\tconst uiSchemas = {\n\t\t\t...components,\n\t\t\t...modules,\n\t\t\t...templates,\n\t\t\t...structuredData,\n\t\t\t...(forms?.templates || {}),\n\t\t\t...(forms?.fields || {}),\n\t\t} as Record<string, SchemaType>;\n\n\t\tconst autotypes = parseSchemas([\n\t\t\t{ schema: menuItems, parser: parsers.MenuItemsParser },\n\t\t\t{ schema: languages, parser: parsers.LanguagesParser },\n\t\t\t{ schema: uiSchemas, parser: parsers.UIAndDataPropsParser },\n\t\t\t{ schema: subthemes || {}, parser: parsers.SubthemesParser },\n\t\t\t{ schema: pageContentTypes, parser: parsers.PageContentTypeParser },\n\t\t\t{ schema: simpleContentTypes, parser: parsers.SimpleContentTypeParser },\n\t\t\t{ schema: categoryContentTypes, parser: parsers.TaxonomyParser },\n\t\t\t{ schema: components, parser: parsers.ComponentsNameParser },\n\t\t\t{ schema: modules, parser: parsers.ModulesNameParser },\n\t\t\t{ schema: forms?.templates || {}, parser: parsers.FormTemplatesParser },\n\t\t\t{ schema: forms?.fields || {}, parser: parsers.FormFieldsParser },\n\t\t\t{\n\t\t\t\tschema: forms?.categories || [],\n\t\t\t\tparser: parsers.FormCategoryNamesParser,\n\t\t\t},\n\t\t\t{ schema: templates, parser: parsers.TemplatesNameParser },\n\t\t\t{ schema: templates, parser: parsers.DataTemplatesNameParser },\n\t\t\t{ schema: templates, parser: parsers.TemplateSectionListParser },\n\t\t\t{ schema: moduleCategories, parser: parsers.ModuleCateogiresParser },\n\t\t\t{ schema: dataPacks, parser: parsers.DataPacksParser },\n\t\t\t{ schema: dataPacksCategories, parser: parsers.DataPacksCategoryParser },\n\t\t\t{ schema: categoryContentTypes, parser: parsers.TaxonomyPropsParser },\n\t\t\t{ schema: simpleContentTypes, parser: parsers.SimpleDataPropsParser },\n\t\t\t{ schema: pageContentTypes, parser: parsers.PageDataPropsParser },\n\t\t\t{ schema: themes, parser: parsers.ThemesParser },\n\t\t]);\n\n\t\tconst outputContent = await prettify(`\n\t\t\t${head}\n\t\t\t${autotypes.join(\"\\n\")}\n\t\t`);\n\n\t\tconst outputFile = path.join(instancePath, \"autotypes.d.ts\");\n\t\tfs.writeFileSync(outputFile, outputContent);\n\n\t\tconsole.log(`${kleur.green(\" ✔\")} AutoTypes`);\n\t} catch (e) {\n\t\tconsole.log(`${kleur.red(\" ✘\")} AutoTypes`);\n\t\tconsole.log(e);\n\t}\n})();\n"],"names":["__awaiter","thisArg","_arguments","P","generator","Promise","resolve","reject","fulfilled","value","step","next","e","rejected","result","done","then","apply","SuppressedError","FORCE_COLOR","NODE_DISABLE_COLORS","TERM","process","env","$","enabled","reset","init","bold","dim","italic","underline","inverse","hidden","strikethrough","black","red","green","yellow","blue","magenta","cyan","white","gray","grey","bgBlack","bgRed","bgGreen","bgYellow","bgBlue","bgMagenta","bgCyan","bgWhite","run","arr","str","tmp","i","beg","end","length","open","close","includes","replace","rgx","blk","RegExp","txt","this","has","push","keys","ctx","bind","chain","module","typeMappings","directory","file","matchType","type","stat","locatePathSync","paths","cwd","allowSymlinks","urlOrPath","Object","hasOwnProperty","call","Error","checkType","URL","fileURLToPath","statFunction","fs","statSync","lstatSync","path_","path","throwIfNoEntry","findUpStop","Symbol","findUpMultipleSync","name","options","root","parse","stopAt","limit","Number","POSITIVE_INFINITY","flat","runMatcher","locateOptions","foundPath","matches","dirname","packageDirectorySync","filePath","findUpSync","returnType","AIReferenceField","FormCategorySelect","FormContainer","FormFieldArray","ArrayFieldGroup","AsyncCheckGroup","AsyncSelect","CheckGroup","ColorPicker","ComponentArray","ComponentContainer","ConditionalField","DateField","FieldGroup","FieldsDivider","FileField","HeadingField","ImageField","LinkField","MultiCheckSelect","MultiCheckSelectGroup","NoteField","NumberField","RadioGroup","ReferenceField","RichText","Select","SliderField","TagsField","TextArea","TextField","TimeField","ToggleField","UniqueCheck","UrlField","VisualUniqueSelection","Wysiwyg","getGriddoFieldPropType","field","returnTypeName","generic","hasHideable","Boolean","hideable","genericStr","returnTypeNameWithGeneriStr","typeWrappedWithHideable","_a","_autoType","doc","key","IS_COMPONENT_LIBRARY","__dirname","resolveInstancePath","componentsPath","readConfig","configPath","join","config","require","interfaceSuffix","autotypes","contentTypeSuffix","_b","publicApiSuffix","_c","getTypeFromField","kind","ignore","hasDistributorData","getStaticData","source","elements","map","element","relations","isThemePalette","getGenericFromOptions","getGenericFromCheckBoxOptions","whiteList","schema","defVal","default","modal","component","entity","fields","childField","conditionalChildrenFields","conditionalHasHideable","endHideable","option","optional","getModulesFromTemplateSectionList","modules","templateName","templateSection","filter","entry","schemaType","sectionList","t","s","m","modulesInSectionLists","moduleSchemas","Set","split","fieldCasted","FieldCasted","sources","structuredData","undefined","Array","isArray","item","withValue","withTheme","theme","console","warn","AutoTypes","setParser","parser","parsers","ComponentsNameParser","names","DataPacksCategoryParser","DataPacksParser","DataTemplatesNameParser","mode","FormCategoryNamesParser","FormFieldsParser","namesWithProp","FormTemplatesParser","LanguagesParser","langKeys","loc","label","MenuItemsParser","getMenuItemsProps","allSchemas","linkFields","link","groupFields","group","ModuleCateogiresParser","ModulesNameParser","PageContentTypeParser","PageDataPropsParser","SimpleContentTypeParser","SimpleDataPropsParser","SubthemesParser","TaxonomyParser","TaxonomyPropsParser","TemplateSectionListParser","templateSchema","sectionNames","content","sectionNameProp","TemplatesNameParser","ThemesParser","UIAndDataPropsParser","schemasArray","objectSchemas","componentName","assign","ARRAY_OF_MODULE_SCHEMAS","schemas","getModuleSchemas","GS","contentTypeSuffixStr","contentTypeName","contentTypeKind","relatedContentTypeNames","interfaceForPublicAPI","relationsGeneric","isContentTypeSchema","localState","contentTypePageListNames","contentTypeSimpleListNames","contentTypeTaxonomyListNames","fromPage","taxonomy","relatedContentTypeNamesValues","JSON","stringify","processContentTypeSchema","isUISchema","processUISchema","griddoFieldProps","arrayOfSchemaModules","configTabs","flatMap","tab","getAllFields","getPropsFromFields","extraListTemplateProps","isListTemplate","types","typeStr","getExtra","isCategoryInterface","instancePath","configFile","languages","menuItems","themes","subthemes","moduleCategories","contentTypes","dataPacks","dataPacksCategories","ui","components","templates","forms","categoryContentTypes","pageContentTypes","simpleContentTypes","categoryContentTypeSchemas","objs","extractCategoryContentTypes","pageContentTypeSchemas","extractPageContentTypes","simpleContentTypeSchemas","extractSimpleContentTypes","extractMergedSchemas","uiSchemas","schemaParserMap","AutoTypesParser","parseSchemas","categories","outputContent","input","localConfFile","prettier","resolveConfigFile","prettierConfig","resolveConfig","useTabs","prettierConfigProps","format","prettify","outputFile","writeFileSync","log","kleur"],"mappings":"6IAkHO,SAASA,EAAUC,EAASC,EAAYC,EAAGC,GAE9C,OAAO,IAAKD,IAAMA,EAAIE,UAAU,SAAUC,EAASC,GAC/C,SAASC,EAAUC,GAAS,IAAMC,EAAKN,EAAUO,KAAKF,GAAU,CAAC,MAAOG,GAAKL,EAAOK,EAAI,CAAE,CAC1F,SAASC,EAASJ,GAAS,IAAMC,EAAKN,EAAiB,MAAEK,GAAU,CAAC,MAAOG,GAAKL,EAAOK,EAAI,CAAE,CAC7F,SAASF,EAAKI,GAJlB,IAAeL,EAIaK,EAAOC,KAAOT,EAAQQ,EAAOL,QAJ1CA,E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
3
  "description": "Reload version of Griddo Core",
4
4
  "license": "UNLICENSED",
5
- "version": "11.9.9-rc.0",
5
+ "version": "11.9.9-rc.1",
6
6
  "authors": [
7
7
  "Álvaro Sánchez' <alvaro.sanches@secuoyas.com>",
8
8
  "Diego M. Béjar <diego.bejar@secuoyas.com>",
@@ -116,5 +116,5 @@
116
116
  "publishConfig": {
117
117
  "access": "public"
118
118
  },
119
- "gitHead": "df9f9d683ad5f84b7f209c28b352c1b43d6d684f"
119
+ "gitHead": "ed703e17bdb7cb4eb08f3ccabbaab85026609156"
120
120
  }