@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/index.js CHANGED
@@ -22,7 +22,7 @@ import {
22
22
  schemaToBlueprint,
23
23
  toColumnName,
24
24
  toTableName
25
- } from "./chunk-TIMQTRAC.js";
25
+ } from "./chunk-GZFL44AY.js";
26
26
  export {
27
27
  formatColumnMethod,
28
28
  formatForeignKey,
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,