@famgia/omnify-laravel 0.0.57 → 0.0.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-TIMQTRAC.js → chunk-GZFL44AY.js} +5 -2
- package/dist/{chunk-TIMQTRAC.js.map → chunk-GZFL44AY.js.map} +1 -1
- package/dist/index.cjs +4 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/plugin.cjs +4 -1
- package/dist/plugin.cjs.map +1 -1
- package/dist/plugin.js +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
package/dist/plugin.cjs
CHANGED
|
@@ -2077,7 +2077,7 @@ class {{CLASS_NAME}}Locales
|
|
|
2077
2077
|
return stubs[stubName] ?? "";
|
|
2078
2078
|
}
|
|
2079
2079
|
function generateServiceProvider(schemas, options, stubContent) {
|
|
2080
|
-
const morphMap = Object.values(schemas).filter((s) => s.kind !== "enum").map((s) => {
|
|
2080
|
+
const morphMap = Object.values(schemas).filter((s) => s.kind !== "enum" && s.options?.hidden !== true).map((s) => {
|
|
2081
2081
|
const className = toPascalCase(s.name);
|
|
2082
2082
|
return ` '${s.name}' => \\${options.modelNamespace}\\${className}::class,`;
|
|
2083
2083
|
}).join("\n");
|
|
@@ -2126,6 +2126,9 @@ function generateModels(schemas, options) {
|
|
|
2126
2126
|
if (schema.kind === "enum") {
|
|
2127
2127
|
continue;
|
|
2128
2128
|
}
|
|
2129
|
+
if (schema.options?.hidden === true) {
|
|
2130
|
+
continue;
|
|
2131
|
+
}
|
|
2129
2132
|
models.push(generateLocalesClass(schema, resolved, getStubContent("locales")));
|
|
2130
2133
|
models.push(generateEntityBaseModel(
|
|
2131
2134
|
schema,
|