@famgia/omnify-laravel 0.0.58 → 0.0.60

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.
@@ -2102,7 +2102,7 @@ class {{CLASS_NAME}}Locales
2102
2102
  return stubs[stubName] ?? "";
2103
2103
  }
2104
2104
  function generateServiceProvider(schemas, options, stubContent) {
2105
- const morphMap = Object.values(schemas).filter((s) => s.kind !== "enum").map((s) => {
2105
+ const morphMap = Object.values(schemas).filter((s) => s.kind !== "enum" && s.options?.hidden !== true).map((s) => {
2106
2106
  const className = toPascalCase(s.name);
2107
2107
  return ` '${s.name}' => \\${options.modelNamespace}\\${className}::class,`;
2108
2108
  }).join("\n");
@@ -2151,6 +2151,9 @@ function generateModels(schemas, options) {
2151
2151
  if (schema.kind === "enum") {
2152
2152
  continue;
2153
2153
  }
2154
+ if (schema.options?.hidden === true) {
2155
+ continue;
2156
+ }
2154
2157
  models.push(generateLocalesClass(schema, resolved, getStubContent("locales")));
2155
2158
  models.push(generateEntityBaseModel(
2156
2159
  schema,
@@ -2830,6 +2833,8 @@ export {
2830
2833
  generateModels,
2831
2834
  getModelPath,
2832
2835
  generateProviderRegistration,
2836
+ generateFactories,
2837
+ getFactoryPath,
2833
2838
  laravelPlugin
2834
2839
  };
2835
- //# sourceMappingURL=chunk-TIMQTRAC.js.map
2840
+ //# sourceMappingURL=chunk-VDTFK4UL.js.map