@bg-dev/nuxt-zenstack 0.0.8 → 0.0.9

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/module.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bg-dev/nuxt-zenstack",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
4
4
  "configKey": "zenstack",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
package/dist/module.mjs CHANGED
@@ -3,7 +3,7 @@ import { joinURL } from 'ufo';
3
3
  import { defu } from 'defu';
4
4
 
5
5
  const name = "@bg-dev/nuxt-zenstack";
6
- const version = "0.0.8";
6
+ const version = "0.0.9";
7
7
 
8
8
  const module$1 = defineNuxtModule({
9
9
  meta: {
@@ -1,4 +1,7 @@
1
1
  declare const _default: import("h3").EventHandler<import("h3").EventHandlerRequest, Promise<{
2
- data: import("../../../../../../.nuxt/types/nuxt-zenstack.js").$Zitem<string, import("../../../../../../.nuxt/types/nuxt-zenstack.js").$Zinclude<string>>;
2
+ data: import("../../../../../../.nuxt/types/nuxt-zenstack.js").$Zitem<string, {
3
+ [x: string]: boolean | import("@zenstackhq/orm").FindArgs<SchemaType, any, boolean, false> | undefined;
4
+ [x: number]: boolean | import("@zenstackhq/orm").FindArgs<SchemaType, any, boolean, false> | undefined;
5
+ }>;
3
6
  }>>;
4
7
  export default _default;
@@ -1,4 +1,7 @@
1
1
  declare const _default: import("h3").EventHandler<import("h3").EventHandlerRequest, Promise<{
2
- data: import("../../../../../../.nuxt/types/nuxt-zenstack.js").$Zitem<string, import("../../../../../../.nuxt/types/nuxt-zenstack.js").$Zinclude<string>>[];
2
+ data: import("../../../../../../.nuxt/types/nuxt-zenstack.js").$Zitem<string, {
3
+ [x: string]: boolean | import("@zenstackhq/orm").FindArgs<SchemaType, any, boolean, false> | undefined;
4
+ [x: number]: boolean | import("@zenstackhq/orm").FindArgs<SchemaType, any, boolean, false> | undefined;
5
+ }>[];
3
6
  }>>;
4
7
  export default _default;
@@ -1,14 +1,14 @@
1
1
  import type { $Zclient, $Zmodel, $Zinclude, $ZorderBy, $Zwhere, $Zitem } from '#build/types/nuxt-zenstack';
2
- type FindManyArgs<Zmodel extends $Zmodel> = {
2
+ type FindManyArgs<Zmodel, Zinclude, ZorderBy, Zwhere> = {
3
3
  client: $Zclient;
4
4
  model: Zmodel;
5
- include?: $Zinclude<Zmodel>;
6
- orderBy?: $ZorderBy<Zmodel>;
7
- where?: $Zwhere<Zmodel>;
5
+ include?: Zinclude;
6
+ orderBy?: ZorderBy;
7
+ where?: Zwhere;
8
8
  skip?: number;
9
9
  take?: number;
10
10
  };
11
- export declare function findMany<Zmodel extends $Zmodel>(args: FindManyArgs<Zmodel>): Promise<{
12
- data: $Zitem<Zmodel, $Zinclude<Zmodel>>[];
11
+ export declare function findMany<Zmodel extends $Zmodel, Zinclude extends $Zinclude<Zmodel>, Zitem extends $Zitem<Zmodel, Zinclude>, ZorderBy extends $ZorderBy<Zmodel>, Zwhere extends $Zwhere<Zmodel>>(args: FindManyArgs<Zmodel, Zinclude, ZorderBy, Zwhere>): Promise<{
12
+ data: Zitem[];
13
13
  }>;
14
14
  export {};
@@ -1,11 +1,11 @@
1
1
  import type { $Zclient, $Zmodel, $Zinclude, $Zid, $Zitem } from '#build/types/nuxt-zenstack';
2
- type FindUniqueArgs<Zmodel extends $Zmodel> = {
2
+ type FindUniqueArgs<Zmodel, Zinclude, Zid> = {
3
3
  client: $Zclient;
4
4
  model: Zmodel;
5
- id: $Zid<Zmodel>;
6
- include?: $Zinclude<Zmodel>;
5
+ id: Zid;
6
+ include?: Zinclude;
7
7
  };
8
- export declare function findUnique<Zmodel extends $Zmodel>(args: FindUniqueArgs<Zmodel>): Promise<{
9
- data: $Zitem<Zmodel, $Zinclude<Zmodel>>;
8
+ export declare function findUnique<Zmodel extends $Zmodel, Zinclude extends $Zinclude<Zmodel>, Zitem extends $Zitem<Zmodel, Zinclude>, Zid extends $Zid<Zmodel>>(args: FindUniqueArgs<Zmodel, Zinclude, Zid>): Promise<{
9
+ data: Zitem;
10
10
  }>;
11
11
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bg-dev/nuxt-zenstack",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
4
4
  "description": "ZenStack integration for Nuxt",
5
5
  "repository": {
6
6
  "url": "https://github.com/becem-gharbi/nuxt-zenstack"