@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.cjs CHANGED
@@ -2146,7 +2146,7 @@ class {{CLASS_NAME}}Locales
2146
2146
  return stubs[stubName] ?? "";
2147
2147
  }
2148
2148
  function generateServiceProvider(schemas, options, stubContent) {
2149
- const morphMap = Object.values(schemas).filter((s) => s.kind !== "enum").map((s) => {
2149
+ const morphMap = Object.values(schemas).filter((s) => s.kind !== "enum" && s.options?.hidden !== true).map((s) => {
2150
2150
  const className = toPascalCase(s.name);
2151
2151
  return ` '${s.name}' => \\${options.modelNamespace}\\${className}::class,`;
2152
2152
  }).join("\n");
@@ -2195,6 +2195,9 @@ function generateModels(schemas, options) {
2195
2195
  if (schema.kind === "enum") {
2196
2196
  continue;
2197
2197
  }
2198
+ if (schema.options?.hidden === true) {
2199
+ continue;
2200
+ }
2198
2201
  models.push(generateLocalesClass(schema, resolved, getStubContent("locales")));
2199
2202
  models.push(generateEntityBaseModel(
2200
2203
  schema,