@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.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,
|