@famgia/omnify-laravel 0.0.58 → 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
|
@@ -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,
|
|
@@ -2832,4 +2835,4 @@ export {
|
|
|
2832
2835
|
generateProviderRegistration,
|
|
2833
2836
|
laravelPlugin
|
|
2834
2837
|
};
|
|
2835
|
-
//# sourceMappingURL=chunk-
|
|
2838
|
+
//# sourceMappingURL=chunk-GZFL44AY.js.map
|