@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 +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/server/api/models/[model]/[id].get.d.ts +4 -1
- package/dist/runtime/server/api/models/[model]/index.get.d.ts +4 -1
- package/dist/runtime/server/utils/operations/findMany.d.ts +6 -6
- package/dist/runtime/server/utils/operations/findUnique.d.ts +5 -5
- package/package.json +1 -1
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -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,
|
|
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,
|
|
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
|
|
2
|
+
type FindManyArgs<Zmodel, Zinclude, ZorderBy, Zwhere> = {
|
|
3
3
|
client: $Zclient;
|
|
4
4
|
model: Zmodel;
|
|
5
|
-
include?:
|
|
6
|
-
orderBy?:
|
|
7
|
-
where?:
|
|
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
|
|
12
|
-
data:
|
|
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
|
|
2
|
+
type FindUniqueArgs<Zmodel, Zinclude, Zid> = {
|
|
3
3
|
client: $Zclient;
|
|
4
4
|
model: Zmodel;
|
|
5
|
-
id:
|
|
6
|
-
include?:
|
|
5
|
+
id: Zid;
|
|
6
|
+
include?: Zinclude;
|
|
7
7
|
};
|
|
8
|
-
export declare function findUnique<Zmodel extends $Zmodel
|
|
9
|
-
data:
|
|
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 {};
|