kapix-graphql-prisma-client
Advanced tools
Comparing version 1.0.95 to 1.0.96
@@ -1,9 +0,10 @@ | ||
import { G as o, y as i, z as s, A as t, B as d } from "./index-ed7be980.js"; | ||
import { G as r, C as s, E as i, H as t, F as l, I as d } from "./index-88292d37.js"; | ||
import "lodash-es"; | ||
export { | ||
o as GraphqlRequestQueryMode, | ||
i as defineModel, | ||
s as formatValue, | ||
t as lazyLoad, | ||
r as GraphqlRequestQueryMode, | ||
s as defineModel, | ||
i as formatValue, | ||
t as lazyCount, | ||
l as lazyLoad, | ||
d as primitiveService | ||
}; |
@@ -65,4 +65,5 @@ | ||
export type WhereFilterDebug = Array<string[] | WhereFilterDebug> | ||
export interface IQueryInfo { | ||
query: string | ||
export interface IQueryInfo<T = any> { | ||
query?: string | ||
data?: ListResult<T> | T | number | ||
whereFilterDebug?: Nullable<WhereFilterDebug> | ||
@@ -437,3 +438,3 @@ } | ||
interface IGraphqlRequestQueryOptions<T extends IEntityModel> extends ICommonGraphqlRequestQueryOptions { | ||
queryName: string | ||
queryName: keyof T['$prototype']['endpointModelType'] | ||
select?: string | SelectQuery<T['$prototype']['entityType']> | ISelectQueryOptions<T> | ||
@@ -704,2 +705,3 @@ orderBy?: string | OrderByQuery<T['$prototype']['entityType']> | IOrderByQueryOptions<T> | ||
where?: Nullable<WhereUniqueInput>, | ||
onQuery?: (info: IQueryInfo<FullEntityType>) => void | ||
) => Promise<Nullable<FullEntityType>> | ||
@@ -710,3 +712,4 @@ mockItems: ( | ||
where?: Nullable<WhereQuery<EntityType> | IWhereQueryOptions<IEntityModel<EntityType, FullEntityType, EndpointModelType, CalculatedProperties, ModelType, WhereUniqueInput, CreateInput, UpdateInput>>>, | ||
options?: IRandNumberOptions | ||
options?: IRandNumberOptions, | ||
onQuery?: (info: IQueryInfo<FullEntityType>) => void | ||
) => Promise<Array<FullEntityType>> | ||
@@ -877,2 +880,3 @@ } | ||
export function lazyLoad<T> (action: () => T): T | ||
export function lazyCount<T> (action: () => T): T | ||
@@ -879,0 +883,0 @@ export function defineModel<T> ( |
@@ -7,3 +7,3 @@ { | ||
"type": "module", | ||
"version": "1.0.95", | ||
"version": "1.0.96", | ||
"author": "Sparda", | ||
@@ -10,0 +10,0 @@ "license": "LicenseRef-LICENSE", |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
3347430
17831