@contember/client-content 1.3.0-alpha.10
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/development/ContentClient.cjs +27 -0
- package/dist/development/ContentClient.cjs.map +1 -0
- package/dist/development/ContentClient.js +27 -0
- package/dist/development/ContentClient.js.map +1 -0
- package/dist/development/ContentQueryBuilder.cjs +147 -0
- package/dist/development/ContentQueryBuilder.cjs.map +1 -0
- package/dist/development/ContentQueryBuilder.js +147 -0
- package/dist/development/ContentQueryBuilder.js.map +1 -0
- package/dist/development/index.cjs +11 -0
- package/dist/development/index.cjs.map +1 -0
- package/dist/development/index.js +11 -0
- package/dist/development/index.js.map +1 -0
- package/dist/development/nodes/ContentEntitySelection.cjs +161 -0
- package/dist/development/nodes/ContentEntitySelection.cjs.map +1 -0
- package/dist/development/nodes/ContentEntitySelection.js +161 -0
- package/dist/development/nodes/ContentEntitySelection.js.map +1 -0
- package/dist/development/nodes/ContentOperation.cjs +16 -0
- package/dist/development/nodes/ContentOperation.cjs.map +1 -0
- package/dist/development/nodes/ContentOperation.js +16 -0
- package/dist/development/nodes/ContentOperation.js.map +1 -0
- package/dist/development/utils/ContentOperationSet.cjs +10 -0
- package/dist/development/utils/ContentOperationSet.cjs.map +1 -0
- package/dist/development/utils/ContentOperationSet.js +10 -0
- package/dist/development/utils/ContentOperationSet.js.map +1 -0
- package/dist/development/utils/createListArgs.cjs +24 -0
- package/dist/development/utils/createListArgs.cjs.map +1 -0
- package/dist/development/utils/createListArgs.js +24 -0
- package/dist/development/utils/createListArgs.js.map +1 -0
- package/dist/development/utils/createMutationOperationSet.cjs +37 -0
- package/dist/development/utils/createMutationOperationSet.cjs.map +1 -0
- package/dist/development/utils/createMutationOperationSet.js +37 -0
- package/dist/development/utils/createMutationOperationSet.js.map +1 -0
- package/dist/development/utils/createQueryOperationSet.cjs +19 -0
- package/dist/development/utils/createQueryOperationSet.cjs.map +1 -0
- package/dist/development/utils/createQueryOperationSet.js +19 -0
- package/dist/development/utils/createQueryOperationSet.js.map +1 -0
- package/dist/development/utils/createTypedArgs.cjs +14 -0
- package/dist/development/utils/createTypedArgs.cjs.map +1 -0
- package/dist/development/utils/createTypedArgs.js +14 -0
- package/dist/development/utils/createTypedArgs.js.map +1 -0
- package/dist/development/utils/mutationFragments.cjs +55 -0
- package/dist/development/utils/mutationFragments.cjs.map +1 -0
- package/dist/development/utils/mutationFragments.js +55 -0
- package/dist/development/utils/mutationFragments.js.map +1 -0
- package/dist/production/ContentClient.cjs +27 -0
- package/dist/production/ContentClient.cjs.map +1 -0
- package/dist/production/ContentClient.js +27 -0
- package/dist/production/ContentClient.js.map +1 -0
- package/dist/production/ContentQueryBuilder.cjs +147 -0
- package/dist/production/ContentQueryBuilder.cjs.map +1 -0
- package/dist/production/ContentQueryBuilder.js +147 -0
- package/dist/production/ContentQueryBuilder.js.map +1 -0
- package/dist/production/index.cjs +11 -0
- package/dist/production/index.cjs.map +1 -0
- package/dist/production/index.js +11 -0
- package/dist/production/index.js.map +1 -0
- package/dist/production/nodes/ContentEntitySelection.cjs +161 -0
- package/dist/production/nodes/ContentEntitySelection.cjs.map +1 -0
- package/dist/production/nodes/ContentEntitySelection.js +161 -0
- package/dist/production/nodes/ContentEntitySelection.js.map +1 -0
- package/dist/production/nodes/ContentOperation.cjs +16 -0
- package/dist/production/nodes/ContentOperation.cjs.map +1 -0
- package/dist/production/nodes/ContentOperation.js +16 -0
- package/dist/production/nodes/ContentOperation.js.map +1 -0
- package/dist/production/utils/ContentOperationSet.cjs +10 -0
- package/dist/production/utils/ContentOperationSet.cjs.map +1 -0
- package/dist/production/utils/ContentOperationSet.js +10 -0
- package/dist/production/utils/ContentOperationSet.js.map +1 -0
- package/dist/production/utils/createListArgs.cjs +24 -0
- package/dist/production/utils/createListArgs.cjs.map +1 -0
- package/dist/production/utils/createListArgs.js +24 -0
- package/dist/production/utils/createListArgs.js.map +1 -0
- package/dist/production/utils/createMutationOperationSet.cjs +37 -0
- package/dist/production/utils/createMutationOperationSet.cjs.map +1 -0
- package/dist/production/utils/createMutationOperationSet.js +37 -0
- package/dist/production/utils/createMutationOperationSet.js.map +1 -0
- package/dist/production/utils/createQueryOperationSet.cjs +19 -0
- package/dist/production/utils/createQueryOperationSet.cjs.map +1 -0
- package/dist/production/utils/createQueryOperationSet.js +19 -0
- package/dist/production/utils/createQueryOperationSet.js.map +1 -0
- package/dist/production/utils/createTypedArgs.cjs +14 -0
- package/dist/production/utils/createTypedArgs.cjs.map +1 -0
- package/dist/production/utils/createTypedArgs.js +14 -0
- package/dist/production/utils/createTypedArgs.js.map +1 -0
- package/dist/production/utils/mutationFragments.cjs +55 -0
- package/dist/production/utils/mutationFragments.cjs.map +1 -0
- package/dist/production/utils/mutationFragments.js +55 -0
- package/dist/production/utils/mutationFragments.js.map +1 -0
- package/dist/types/ContentClient.d.ts +17 -0
- package/dist/types/ContentClient.d.ts.map +1 -0
- package/dist/types/ContentQueryBuilder.d.ts +25 -0
- package/dist/types/ContentQueryBuilder.d.ts.map +1 -0
- package/dist/types/TypedContentQueryBuilder.d.ts +21 -0
- package/dist/types/TypedContentQueryBuilder.d.ts.map +1 -0
- package/dist/types/index.d.ts +6 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/nodes/ContentEntitySelection.d.ts +51 -0
- package/dist/types/nodes/ContentEntitySelection.d.ts.map +1 -0
- package/dist/types/nodes/ContentOperation.d.ts +30 -0
- package/dist/types/nodes/ContentOperation.d.ts.map +1 -0
- package/dist/types/nodes/TypedEntitySelection.d.ts +45 -0
- package/dist/types/nodes/TypedEntitySelection.d.ts.map +1 -0
- package/dist/types/nodes/index.d.ts +4 -0
- package/dist/types/nodes/index.d.ts.map +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -0
- package/dist/types/types/Input.d.ts +203 -0
- package/dist/types/types/Input.d.ts.map +1 -0
- package/dist/types/types/Result.d.ts +39 -0
- package/dist/types/types/Result.d.ts.map +1 -0
- package/dist/types/types/Schema.d.ts +43 -0
- package/dist/types/types/Schema.d.ts.map +1 -0
- package/dist/types/types/index.d.ts +4 -0
- package/dist/types/types/index.d.ts.map +1 -0
- package/dist/types/utils/ContentOperationSet.d.ts +13 -0
- package/dist/types/utils/ContentOperationSet.d.ts.map +1 -0
- package/dist/types/utils/createListArgs.d.ts +9 -0
- package/dist/types/utils/createListArgs.d.ts.map +1 -0
- package/dist/types/utils/createMutationOperationSet.d.ts +4 -0
- package/dist/types/utils/createMutationOperationSet.d.ts.map +1 -0
- package/dist/types/utils/createQueryOperationSet.d.ts +4 -0
- package/dist/types/utils/createQueryOperationSet.d.ts.map +1 -0
- package/dist/types/utils/createTypedArgs.d.ts +3 -0
- package/dist/types/utils/createTypedArgs.d.ts.map +1 -0
- package/dist/types/utils/mutationFragments.d.ts +3 -0
- package/dist/types/utils/mutationFragments.d.ts.map +1 -0
- package/package.json +48 -0
- package/src/ContentClient.ts +41 -0
- package/src/ContentQueryBuilder.ts +204 -0
- package/src/TypedContentQueryBuilder.ts +76 -0
- package/src/index.ts +5 -0
- package/src/nodes/ContentEntitySelection.ts +240 -0
- package/src/nodes/ContentOperation.ts +23 -0
- package/src/nodes/TypedEntitySelection.ts +111 -0
- package/src/nodes/index.ts +3 -0
- package/src/tsconfig.json +14 -0
- package/src/types/Input.ts +281 -0
- package/src/types/Result.ts +43 -0
- package/src/types/Schema.ts +49 -0
- package/src/types/index.ts +3 -0
- package/src/utils/ContentOperationSet.ts +11 -0
- package/src/utils/createListArgs.ts +23 -0
- package/src/utils/createMutationOperationSet.ts +42 -0
- package/src/utils/createQueryOperationSet.ts +20 -0
- package/src/utils/createTypedArgs.ts +15 -0
- package/src/utils/mutationFragments.ts +52 -0
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { GraphQlFragment, GraphQlField, GraphQlInlineFragment, GraphQlFragmentSpread } from "@contember/graphql-builder";
|
|
2
|
+
const mutationFragments = {
|
|
3
|
+
MutationError: new GraphQlFragment("MutationError", "_MutationError", [
|
|
4
|
+
new GraphQlField(null, "paths", {}, [
|
|
5
|
+
new GraphQlInlineFragment("_FieldPathFragment", [
|
|
6
|
+
new GraphQlField(null, "field")
|
|
7
|
+
]),
|
|
8
|
+
new GraphQlInlineFragment("_IndexPathFragment", [
|
|
9
|
+
new GraphQlField(null, "index"),
|
|
10
|
+
new GraphQlField(null, "alias")
|
|
11
|
+
])
|
|
12
|
+
]),
|
|
13
|
+
new GraphQlField(null, "message"),
|
|
14
|
+
new GraphQlField(null, "type")
|
|
15
|
+
]),
|
|
16
|
+
TransactionResult: new GraphQlFragment("TransactionResult", "TransactionResult", [
|
|
17
|
+
new GraphQlField(null, "ok"),
|
|
18
|
+
new GraphQlField(null, "errorMessage"),
|
|
19
|
+
new GraphQlField(null, "errors", {}, [
|
|
20
|
+
new GraphQlField(null, "paths", {}, [
|
|
21
|
+
new GraphQlInlineFragment("_FieldPathFragment", [
|
|
22
|
+
new GraphQlField(null, "field")
|
|
23
|
+
]),
|
|
24
|
+
new GraphQlInlineFragment("_IndexPathFragment", [
|
|
25
|
+
new GraphQlField(null, "index"),
|
|
26
|
+
new GraphQlField(null, "alias")
|
|
27
|
+
])
|
|
28
|
+
])
|
|
29
|
+
]),
|
|
30
|
+
new GraphQlField(null, "validation", {}, [
|
|
31
|
+
new GraphQlFragmentSpread("ValidationResult")
|
|
32
|
+
])
|
|
33
|
+
]),
|
|
34
|
+
ValidationResult: new GraphQlFragment("ValidationResult", "_ValidationResult", [
|
|
35
|
+
new GraphQlField(null, "valid"),
|
|
36
|
+
new GraphQlField(null, "errors", {}, [
|
|
37
|
+
new GraphQlField(null, "path", {}, [
|
|
38
|
+
new GraphQlInlineFragment("_FieldPathFragment", [
|
|
39
|
+
new GraphQlField(null, "field")
|
|
40
|
+
]),
|
|
41
|
+
new GraphQlInlineFragment("_IndexPathFragment", [
|
|
42
|
+
new GraphQlField(null, "index"),
|
|
43
|
+
new GraphQlField(null, "alias")
|
|
44
|
+
])
|
|
45
|
+
]),
|
|
46
|
+
new GraphQlField(null, "message", {}, [
|
|
47
|
+
new GraphQlField(null, "text")
|
|
48
|
+
])
|
|
49
|
+
])
|
|
50
|
+
])
|
|
51
|
+
};
|
|
52
|
+
export {
|
|
53
|
+
mutationFragments
|
|
54
|
+
};
|
|
55
|
+
//# sourceMappingURL=mutationFragments.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mutationFragments.js","sources":["../../../src/utils/mutationFragments.ts"],"sourcesContent":["import { GraphQlField, GraphQlFragment, GraphQlFragmentSpread, GraphQlInlineFragment } from '@contember/graphql-builder'\n\nexport const mutationFragments: Record<string, GraphQlFragment> = {\n\tMutationError: new GraphQlFragment('MutationError', '_MutationError', [\n\t\tnew GraphQlField(null, 'paths', {}, [\n\t\t\tnew GraphQlInlineFragment('_FieldPathFragment', [\n\t\t\t\tnew GraphQlField(null, 'field'),\n\t\t\t]),\n\t\t\tnew GraphQlInlineFragment('_IndexPathFragment', [\n\t\t\t\tnew GraphQlField(null, 'index'),\n\t\t\t\tnew GraphQlField(null, 'alias'),\n\t\t\t]),\n\t\t]),\n\t\tnew GraphQlField(null, 'message'),\n\t\tnew GraphQlField(null, 'type'),\n\t]),\n\tTransactionResult: new GraphQlFragment('TransactionResult', 'TransactionResult', [\n\t\tnew GraphQlField(null, 'ok'),\n\t\tnew GraphQlField(null, 'errorMessage'),\n\t\tnew GraphQlField(null, 'errors', {}, [\n\t\t\tnew GraphQlField(null, 'paths', {}, [\n\t\t\t\tnew GraphQlInlineFragment('_FieldPathFragment', [\n\t\t\t\t\tnew GraphQlField(null, 'field'),\n\t\t\t\t]),\n\t\t\t\tnew GraphQlInlineFragment('_IndexPathFragment', [\n\t\t\t\t\tnew GraphQlField(null, 'index'),\n\t\t\t\t\tnew GraphQlField(null, 'alias'),\n\t\t\t\t]),\n\t\t\t]),\n\t\t]),\n\t\tnew GraphQlField(null, 'validation', {}, [\n\t\t\tnew GraphQlFragmentSpread('ValidationResult'),\n\t\t]),\n\t]),\n\tValidationResult: new GraphQlFragment('ValidationResult', '_ValidationResult', [\n\t\tnew GraphQlField(null, 'valid'),\n\t\tnew GraphQlField(null, 'errors', {}, [\n\t\t\tnew GraphQlField(null, 'path', {}, [\n\t\t\t\tnew GraphQlInlineFragment('_FieldPathFragment', [\n\t\t\t\t\tnew GraphQlField(null, 'field'),\n\t\t\t\t]),\n\t\t\t\tnew GraphQlInlineFragment('_IndexPathFragment', [\n\t\t\t\t\tnew GraphQlField(null, 'index'),\n\t\t\t\t\tnew GraphQlField(null, 'alias'),\n\t\t\t\t]),\n\t\t\t]),\n\t\t\tnew GraphQlField(null, 'message', {}, [\n\t\t\t\tnew GraphQlField(null, 'text'),\n\t\t\t]),\n\t\t]),\n\t]),\n}\n"],"names":[],"mappings":";AAEO,MAAM,oBAAqD;AAAA,EACjE,eAAe,IAAI,gBAAgB,iBAAiB,kBAAkB;AAAA,IACrE,IAAI,aAAa,MAAM,SAAS,IAAI;AAAA,MACnC,IAAI,sBAAsB,sBAAsB;AAAA,QAC/C,IAAI,aAAa,MAAM,OAAO;AAAA,MAAA,CAC9B;AAAA,MACD,IAAI,sBAAsB,sBAAsB;AAAA,QAC/C,IAAI,aAAa,MAAM,OAAO;AAAA,QAC9B,IAAI,aAAa,MAAM,OAAO;AAAA,MAAA,CAC9B;AAAA,IAAA,CACD;AAAA,IACD,IAAI,aAAa,MAAM,SAAS;AAAA,IAChC,IAAI,aAAa,MAAM,MAAM;AAAA,EAAA,CAC7B;AAAA,EACD,mBAAmB,IAAI,gBAAgB,qBAAqB,qBAAqB;AAAA,IAChF,IAAI,aAAa,MAAM,IAAI;AAAA,IAC3B,IAAI,aAAa,MAAM,cAAc;AAAA,IACrC,IAAI,aAAa,MAAM,UAAU,IAAI;AAAA,MACpC,IAAI,aAAa,MAAM,SAAS,IAAI;AAAA,QACnC,IAAI,sBAAsB,sBAAsB;AAAA,UAC/C,IAAI,aAAa,MAAM,OAAO;AAAA,QAAA,CAC9B;AAAA,QACD,IAAI,sBAAsB,sBAAsB;AAAA,UAC/C,IAAI,aAAa,MAAM,OAAO;AAAA,UAC9B,IAAI,aAAa,MAAM,OAAO;AAAA,QAAA,CAC9B;AAAA,MAAA,CACD;AAAA,IAAA,CACD;AAAA,IACD,IAAI,aAAa,MAAM,cAAc,IAAI;AAAA,MACxC,IAAI,sBAAsB,kBAAkB;AAAA,IAAA,CAC5C;AAAA,EAAA,CACD;AAAA,EACD,kBAAkB,IAAI,gBAAgB,oBAAoB,qBAAqB;AAAA,IAC9E,IAAI,aAAa,MAAM,OAAO;AAAA,IAC9B,IAAI,aAAa,MAAM,UAAU,IAAI;AAAA,MACpC,IAAI,aAAa,MAAM,QAAQ,IAAI;AAAA,QAClC,IAAI,sBAAsB,sBAAsB;AAAA,UAC/C,IAAI,aAAa,MAAM,OAAO;AAAA,QAAA,CAC9B;AAAA,QACD,IAAI,sBAAsB,sBAAsB;AAAA,UAC/C,IAAI,aAAa,MAAM,OAAO;AAAA,UAC9B,IAAI,aAAa,MAAM,OAAO;AAAA,QAAA,CAC9B;AAAA,MAAA,CACD;AAAA,MACD,IAAI,aAAa,MAAM,WAAW,IAAI;AAAA,QACrC,IAAI,aAAa,MAAM,MAAM;AAAA,MAAA,CAC7B;AAAA,IAAA,CACD;AAAA,EAAA,CACD;AACF;"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { GraphQlClient, GraphQlClientRequestOptions } from '@contember/graphql-client';
|
|
2
|
+
import { ContentMutation, ContentQuery } from './nodes';
|
|
3
|
+
export type QueryExecutorOptions = GraphQlClientRequestOptions;
|
|
4
|
+
export declare class ContentClient {
|
|
5
|
+
private readonly client;
|
|
6
|
+
constructor(client: Pick<GraphQlClient, 'execute'>);
|
|
7
|
+
query<Value>(query: ContentQuery<Value>, options?: QueryExecutorOptions): Promise<Value>;
|
|
8
|
+
query<Values extends Record<string, any>>(queries: {
|
|
9
|
+
[K in keyof Values]: ContentQuery<Values[K]>;
|
|
10
|
+
}, options?: QueryExecutorOptions): Promise<Values>;
|
|
11
|
+
mutate<Value>(mutation: ContentMutation<Value>, options?: QueryExecutorOptions): Promise<Value>;
|
|
12
|
+
mutate<Value>(mutations: ContentMutation<Value>[], options?: QueryExecutorOptions): Promise<Value[]>;
|
|
13
|
+
mutate<Values extends Record<string, any>>(mutations: {
|
|
14
|
+
[K in keyof Values]: ContentMutation<Values[K]> | ContentQuery<Values[K]>;
|
|
15
|
+
}, options?: QueryExecutorOptions): Promise<Values>;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=ContentClient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContentClient.d.ts","sourceRoot":"","sources":["../../src/ContentClient.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,2BAA2B,EAAE,MAAM,2BAA2B,CAAA;AAEtF,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAKvD,MAAM,MAAM,oBAAoB,GAC7B,2BAA2B,CAAA;AAE9B,qBAAa,aAAa;IAExB,OAAO,CAAC,QAAQ,CAAC,MAAM;gBAAN,MAAM,EAAE,IAAI,CAAC,aAAa,EAAE,SAAS,CAAC;IAK3C,KAAK,CAAC,KAAK,EAAE,KAAK,EAAE,YAAY,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC,EAAE,oBAAoB,GAAG,OAAO,CAAC,KAAK,CAAC;IACxF,KAAK,CAAC,MAAM,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,OAAO,EAAE;SAAE,CAAC,IAAI,MAAM,MAAM,GAAG,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;KAAC,EAAE,OAAO,CAAC,EAAE,oBAAoB,GAAG,OAAO,CAAC,MAAM,CAAC;IASnJ,MAAM,CAAC,KAAK,EAAE,QAAQ,EAAE,eAAe,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC,EAAE,oBAAoB,GAAI,OAAO,CAAC,KAAK,CAAC;IAChG,MAAM,CAAC,KAAK,EAAE,SAAS,EAAE,eAAe,CAAC,KAAK,CAAC,EAAE,EAAE,OAAO,CAAC,EAAE,oBAAoB,GAAI,OAAO,CAAC,KAAK,EAAE,CAAC;IACrG,MAAM,CAAC,MAAM,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,SAAS,EAAE;SAAG,CAAC,IAAI,MAAM,MAAM,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,GAAG,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;KAAE,EAAE,OAAO,CAAC,EAAE,oBAAoB,GAAG,OAAO,CAAC,MAAM,CAAC;CAUlM"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ContentClientInput, MutationResult, SchemaNames, TransactionResult } from './types';
|
|
2
|
+
import { ContentEntitySelection, ContentEntitySelectionCallback, ContentMutation, ContentQuery } from './nodes';
|
|
3
|
+
import { Input } from '@contember/schema';
|
|
4
|
+
export type EntitySelectionOrCallback = ContentEntitySelection | ContentEntitySelectionCallback;
|
|
5
|
+
export type MutationTransactionOptions = {
|
|
6
|
+
deferForeignKeyConstraints?: boolean;
|
|
7
|
+
deferUniqueConstraints?: boolean;
|
|
8
|
+
};
|
|
9
|
+
export declare class ContentQueryBuilder {
|
|
10
|
+
private readonly schema;
|
|
11
|
+
constructor(schema: SchemaNames);
|
|
12
|
+
fragment(name: string, fieldsCallback?: ContentEntitySelectionCallback): ContentEntitySelection;
|
|
13
|
+
count(name: string, args: Pick<ContentClientInput.AnyListQueryInput, 'filter'>): ContentQuery<number>;
|
|
14
|
+
list(name: string, args: ContentClientInput.AnyListQueryInput, fields: EntitySelectionOrCallback): ContentQuery<any[]>;
|
|
15
|
+
get(name: string, args: Input.UniqueQueryInput, fields: EntitySelectionOrCallback): ContentQuery<Record<string, unknown> | null>;
|
|
16
|
+
create(name: string, args: Input.CreateInput, fields?: EntitySelectionOrCallback): ContentMutation<MutationResult>;
|
|
17
|
+
update(name: string, args: Input.UpdateInput, fields?: EntitySelectionOrCallback): ContentMutation<MutationResult>;
|
|
18
|
+
upsert(name: string, args: Input.UpsertInput, fields?: EntitySelectionOrCallback): ContentMutation<MutationResult>;
|
|
19
|
+
delete(name: string, args: Input.UniqueQueryInput, fields?: EntitySelectionOrCallback): ContentMutation<MutationResult>;
|
|
20
|
+
transaction(input: Record<string, ContentMutation<any> | ContentQuery<any>> | ContentMutation<any> | ContentMutation<any>[], options?: MutationTransactionOptions): ContentMutation<TransactionResult<any>>;
|
|
21
|
+
private createMutationSelection;
|
|
22
|
+
private resolveSelectionSet;
|
|
23
|
+
private createContext;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=ContentQueryBuilder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContentQueryBuilder.d.ts","sourceRoot":"","sources":["../../src/ContentQueryBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,cAAc,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAC5F,OAAO,EACN,sBAAsB,EACtB,8BAA8B,EAE9B,eAAe,EAEf,YAAY,EACZ,MAAM,SAAS,CAAA;AAGhB,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AAIzC,MAAM,MAAM,yBAAyB,GAClC,sBAAsB,GACtB,8BAA8B,CAAA;AAEjC,MAAM,MAAM,0BAA0B,GAAG;IACxC,0BAA0B,CAAC,EAAE,OAAO,CAAA;IACpC,sBAAsB,CAAC,EAAE,OAAO,CAAA;CAChC,CAAA;AAED,qBAAa,mBAAmB;IACnB,OAAO,CAAC,QAAQ,CAAC,MAAM;gBAAN,MAAM,EAAE,WAAW;IAIzC,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,cAAc,CAAC,EAAE,8BAA8B,GAAG,sBAAsB;IAY/F,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE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;IAoB/B,OAAO,CAAC,mBAAmB;IAO3B,OAAO,CAAC,aAAa;CAYrB"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ContentClientInput, MutationResult, SchemaTypeLike, TransactionResult } from './types';
|
|
2
|
+
import { ContentMutation, ContentQuery, TypedEntitySelection, TypedEntitySelectionCallback } from './nodes';
|
|
3
|
+
import { MutationTransactionOptions } from './ContentQueryBuilder';
|
|
4
|
+
export type TypedContentEntitySelectionOrCallback<TSchema extends SchemaTypeLike, TEntityName extends keyof TSchema['entities'] & string, TValue> = TypedEntitySelection<TSchema, TEntityName, TSchema['entities'][TEntityName], TValue> | TypedEntitySelectionCallback<TSchema, TEntityName, TSchema['entities'][TEntityName], TValue>;
|
|
5
|
+
export interface TypedContentQueryBuilder<TSchema extends SchemaTypeLike> {
|
|
6
|
+
fragment<EntityName extends keyof TSchema['entities'] & string>(name: EntityName): TypedEntitySelection<TSchema, EntityName, TSchema['entities'][EntityName], {}>;
|
|
7
|
+
fragment<EntityName extends keyof TSchema['entities'] & string, TFields>(name: EntityName, fieldsCallback: TypedEntitySelectionCallback<TSchema, EntityName, TSchema['entities'][EntityName], TFields>): TypedEntitySelection<TSchema, EntityName, TSchema['entities'][EntityName], TFields>;
|
|
8
|
+
count<EntityName extends keyof TSchema['entities'] & string>(name: EntityName, args: Pick<ContentClientInput.ListQueryInput<TSchema['entities'][EntityName]>, 'filter'>): ContentQuery<number>;
|
|
9
|
+
list<EntityName extends keyof TSchema['entities'] & string, TValue>(name: EntityName, args: ContentClientInput.ListQueryInput<TSchema['entities'][EntityName]>, fields: TypedContentEntitySelectionOrCallback<TSchema, EntityName, TValue>): ContentQuery<TValue[]>;
|
|
10
|
+
get<EntityName extends keyof TSchema['entities'] & string, TValue>(name: EntityName, args: ContentClientInput.UniqueQueryInput<TSchema['entities'][EntityName]>, fields: TypedContentEntitySelectionOrCallback<TSchema, EntityName, TValue>): ContentQuery<TValue | null>;
|
|
11
|
+
create<EntityName extends keyof TSchema['entities'] & string, TValue>(name: EntityName, args: ContentClientInput.CreateInput<TSchema['entities'][EntityName]>, fields?: TypedContentEntitySelectionOrCallback<TSchema, EntityName, TValue>): ContentMutation<MutationResult<TValue>>;
|
|
12
|
+
update<EntityName extends keyof TSchema['entities'] & string, TValue>(name: EntityName, args: ContentClientInput.UpdateInput<TSchema['entities'][EntityName]>, fields?: TypedContentEntitySelectionOrCallback<TSchema, EntityName, TValue>): ContentMutation<MutationResult<TValue>>;
|
|
13
|
+
upsert<EntityName extends keyof TSchema['entities'] & string, TValue>(name: EntityName, args: ContentClientInput.UpsertInput<TSchema['entities'][EntityName]>, fields?: TypedContentEntitySelectionOrCallback<TSchema, EntityName, TValue>): ContentMutation<MutationResult<TValue>>;
|
|
14
|
+
delete<EntityName extends keyof TSchema['entities'] & string, TValue>(name: EntityName, args: ContentClientInput.UniqueQueryInput<TSchema['entities'][EntityName]>, fields?: TypedContentEntitySelectionOrCallback<TSchema, EntityName, TValue>): ContentMutation<MutationResult<TValue>>;
|
|
15
|
+
transaction<Value>(mutation: ContentMutation<Value>, options?: MutationTransactionOptions): ContentMutation<TransactionResult<Value>>;
|
|
16
|
+
transaction<Value>(mutations: ContentMutation<Value>[], options?: MutationTransactionOptions): ContentMutation<TransactionResult<Value[]>>;
|
|
17
|
+
transaction<Values extends Record<string, any>>(mutations: {
|
|
18
|
+
[K in keyof Values]: ContentMutation<Values[K]> | ContentQuery<Values[K]>;
|
|
19
|
+
}, options?: MutationTransactionOptions): ContentMutation<TransactionResult<Values>>;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=TypedContentQueryBuilder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TypedContentQueryBuilder.d.ts","sourceRoot":"","sources":["../../src/TypedContentQueryBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,cAAc,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAC/F,O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SAAS,EAAE;SAAG,CAAC,IAAI,MAAM,MAAM,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,GAAG,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;KAAE,EACxF,OAAO,CAAC,EAAE,0BAA0B,GAClC,eAAe,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,CAAA;CAC7C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,4BAA4B,CAAA;AAC1C,cAAc,uBAAuB,CAAA;AACrC,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { ContentClientInput, SchemaEntityNames, SchemaNames } from '../types';
|
|
2
|
+
import { Input } from '@contember/schema';
|
|
3
|
+
import { GraphQlSelectionSet } from '@contember/graphql-builder';
|
|
4
|
+
/**
|
|
5
|
+
* @internal
|
|
6
|
+
*/
|
|
7
|
+
export type ContentEntitySelectionContext<Name extends string> = {
|
|
8
|
+
entity: SchemaEntityNames<Name>;
|
|
9
|
+
schema: SchemaNames;
|
|
10
|
+
};
|
|
11
|
+
export type ContentEntitySelectionCallback = (select: ContentEntitySelection) => ContentEntitySelection;
|
|
12
|
+
export type EntitySelectionCommonInput<Alias extends string | null = string | null> = {
|
|
13
|
+
as?: Alias;
|
|
14
|
+
};
|
|
15
|
+
export type EntitySelectionManyArgs<Alias extends string | null = string | null> = ContentClientInput.AnyListQueryInput & EntitySelectionCommonInput<Alias>;
|
|
16
|
+
export type EntitySelectionManyByArgs<Alias extends string | null = string | null> = {
|
|
17
|
+
by: Input.UniqueWhere;
|
|
18
|
+
filter?: Input.Where;
|
|
19
|
+
} & EntitySelectionCommonInput<Alias>;
|
|
20
|
+
export type EntitySelectionOneArgs<Alias extends string | null = string | null> = {
|
|
21
|
+
filter?: Input.Where;
|
|
22
|
+
} & EntitySelectionCommonInput<Alias>;
|
|
23
|
+
export type EntitySelectionColumnArgs<Alias extends string | null = string | null> = EntitySelectionCommonInput<Alias>;
|
|
24
|
+
export type EntitySelectionAnyArgs = EntitySelectionColumnArgs | EntitySelectionManyArgs | EntitySelectionManyByArgs | EntitySelectionOneArgs;
|
|
25
|
+
export type ContentEntitySelectionOrCallback = ContentEntitySelectionCallback | ContentEntitySelection;
|
|
26
|
+
export declare class ContentEntitySelection {
|
|
27
|
+
/** @internal */
|
|
28
|
+
readonly context: ContentEntitySelectionContext<string>;
|
|
29
|
+
/** @internal */
|
|
30
|
+
readonly selectionSet: GraphQlSelectionSet;
|
|
31
|
+
/**
|
|
32
|
+
* @internal
|
|
33
|
+
*/
|
|
34
|
+
constructor(
|
|
35
|
+
/** @internal */
|
|
36
|
+
context: ContentEntitySelectionContext<string>,
|
|
37
|
+
/** @internal */
|
|
38
|
+
selectionSet: GraphQlSelectionSet);
|
|
39
|
+
$(field: string, args?: EntitySelectionColumnArgs): ContentEntitySelection;
|
|
40
|
+
$(field: string, args: EntitySelectionManyArgs, selection: ContentEntitySelectionOrCallback): ContentEntitySelection;
|
|
41
|
+
$(field: string, args: EntitySelectionManyByArgs, selection: ContentEntitySelectionOrCallback): ContentEntitySelection;
|
|
42
|
+
$(field: string, args: EntitySelectionOneArgs, selection: ContentEntitySelectionOrCallback): ContentEntitySelection;
|
|
43
|
+
$(field: string, selection: ContentEntitySelectionOrCallback): ContentEntitySelection;
|
|
44
|
+
$$(): ContentEntitySelection;
|
|
45
|
+
private _column;
|
|
46
|
+
private _many;
|
|
47
|
+
private _manyBy;
|
|
48
|
+
private _one;
|
|
49
|
+
private withField;
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=ContentEntitySelection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContentEntitySelection.d.ts","sourceRoot":"","sources":["../../../src/nodes/ContentEntitySelection.ts"],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,IAAI,0BAA0B,CAAC,KAAK,CAAC,CAAA;AAEtH,MAAM,MAAM,sBAAsB,GAC/B,yBAAyB,GACzB,uBAAuB,GACvB,yBAAyB,GACzB,sBAAsB,CAAA;AAEzB,MAAM,MAAM,gCAAgC,GAAG,8BAA8B,GAAG,sBAAsB,CAAA;AAGtG,qBAAa,sBAAsB;IAMjC,gBAAgB;aACA,OAAO,EAAE,6BAA6B,CAAC,MAAM,CAAC;IAC9D,gBAAgB;aACA,YAAY,EAAE,mBAAmB;IAPlD;;OAEG;;IAEF,gBAAgB;IACA,OAAO,EAAE,6BAA6B,CAAC,MAAM,CAAC;IAC9D,gBAAgB;IACA,YAAY,EAAE,mBAAmB;IAKlD,CAAC,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,yBAAyB,GAAG,sBAAsB;IAC1E,CAAC,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,uBAAuB,EAAE,SAAS,EAAE,gCAAgC,GAAG,sBAAsB;IACpH,CAAC,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,yBAAyB,EAAE,SAAS,EAAE,gCAAgC,GAAG,sBAAsB;IACtH,CAAC,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,sBAAsB,EAAE,SAAS,EAAE,gCAAgC,GAAG,sBAAsB;IACnH,CAAC,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,gCAAgC,GAAG,sBAAsB;IAsCrF,EAAE,IAAI,sBAAsB;IAS5B,OAAO,CAAC,OAAO;IAmBf,OAAO,CAAC,KAAK;IAiCb,OAAO,CAAC,OAAO;IA8Cf,OAAO,CAAC,IAAI;IAwCZ,OAAO,CAAC,SAAS;CAMjB"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { GraphQlFieldTypedArgs, GraphQlSelectionSet } from '@contember/graphql-builder';
|
|
2
|
+
export declare class ContentOperation<TValue, TType extends 'query' | 'mutation'> {
|
|
3
|
+
/** @internal */
|
|
4
|
+
readonly type: TType;
|
|
5
|
+
/** @internal */
|
|
6
|
+
readonly fieldName: string;
|
|
7
|
+
/** @internal */
|
|
8
|
+
readonly args: GraphQlFieldTypedArgs;
|
|
9
|
+
/** @internal */
|
|
10
|
+
readonly selection?: GraphQlSelectionSet | undefined;
|
|
11
|
+
/** @internal */
|
|
12
|
+
readonly parse: (value: any) => TValue;
|
|
13
|
+
/**
|
|
14
|
+
* @internal
|
|
15
|
+
*/
|
|
16
|
+
constructor(
|
|
17
|
+
/** @internal */
|
|
18
|
+
type: TType,
|
|
19
|
+
/** @internal */
|
|
20
|
+
fieldName: string,
|
|
21
|
+
/** @internal */
|
|
22
|
+
args?: GraphQlFieldTypedArgs,
|
|
23
|
+
/** @internal */
|
|
24
|
+
selection?: GraphQlSelectionSet | undefined,
|
|
25
|
+
/** @internal */
|
|
26
|
+
parse?: (value: any) => TValue);
|
|
27
|
+
}
|
|
28
|
+
export type ContentQuery<TValue> = ContentOperation<TValue, 'query'>;
|
|
29
|
+
export type ContentMutation<TValue> = ContentOperation<TValue, 'mutation'>;
|
|
30
|
+
//# sourceMappingURL=ContentOperation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContentOperation.d.ts","sourceRoot":"","sources":["../../../src/nodes/ContentOperation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAA;AAEvF,qBAAa,gBAAgB,CAAC,MAAM,EAAE,KAAK,SAAS,OAAO,GAAG,UAAU;IAKtE,gBAAgB;aACA,IAAI,EAAE,KAAK;IAC3B,gBAAgB;aACA,SAAS,EAAE,MAAM;IACjC,gBAAgB;aACA,IAAI,EAAE,qBAAqB;IAC3C,gBAAgB;aACA,SAAS,CAAC;IAC1B,gBAAgB;aACA,KAAK,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,MAAM;IAb9C;;OAEG;;IAEF,gBAAgB;IACA,IAAI,EAAE,KAAK;IAC3B,gBAAgB;IACA,SAAS,EAAE,MAAM;IACjC,gBAAgB;IACA,IAAI,GAAE,qBAA0B;IAChD,gBAAgB;IACA,SAAS,CAAC,iCAAqB;IAC/C,gBAAgB;IACA,KAAK,GAAE,CAAC,KAAK,EAAE,GAAG,KAAK,MAA2B;CAGnE;AAED,MAAM,MAAM,YAAY,CAAC,MAAM,IAAI,gBAAgB,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;AACpE,MAAM,MAAM,eAAe,CAAC,MAAM,IAAI,gBAAgB,CAAC,MAAM,EAAE,UAAU,CAAC,CAAA"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { EntityTypeLike, SchemaTypeLike } from '../types/Schema';
|
|
2
|
+
import { ContentClientInput } from '../types';
|
|
3
|
+
import { ContentEntitySelectionContext } from './ContentEntitySelection';
|
|
4
|
+
export type TypedEntitySelectionCallback<TSchema extends SchemaTypeLike, EntityName extends string, TEntity extends EntityTypeLike, TValue> = (select: TypedEntitySelection<TSchema, EntityName, TEntity, {}>) => TypedEntitySelection<TSchema, EntityName, TEntity, TValue>;
|
|
5
|
+
export interface TypedEntitySelection<TSchema extends SchemaTypeLike, TEntityName extends string, TEntity extends EntityTypeLike, TValue> {
|
|
6
|
+
/** @internal */
|
|
7
|
+
readonly context: ContentEntitySelectionContext<TEntityName>;
|
|
8
|
+
$$(): TypedEntitySelection<TSchema, TEntityName, TEntity, TValue & {
|
|
9
|
+
[key in keyof TEntity['columns']]: TEntity['columns'][key];
|
|
10
|
+
}>;
|
|
11
|
+
$<TKey extends (keyof TEntity['columns']) & string, TAlias extends string | null = null>(name: TKey, args?: {
|
|
12
|
+
as?: TAlias;
|
|
13
|
+
}): TypedEntitySelection<TSchema, TEntityName, TEntity, TValue & {
|
|
14
|
+
[key in TAlias extends null ? TKey : TAlias]: TEntity['columns'][key];
|
|
15
|
+
}>;
|
|
16
|
+
$<TNestedValue, TNestedKey extends keyof TEntity['hasMany'] & string, TAlias extends string | null = null>(name: TNestedKey, args: ContentClientInput.HasManyRelationInput<TEntity['hasMany'][TNestedKey]> & {
|
|
17
|
+
as?: TAlias;
|
|
18
|
+
}, fields: TypedEntitySelectionCallback<TSchema, TEntity['hasMany'][TNestedKey]['name'], TEntity['hasMany'][TNestedKey], TNestedValue> | TypedEntitySelection<TSchema, TEntity['hasMany'][TNestedKey]['name'], TEntity['hasMany'][TNestedKey], TNestedValue>): TypedEntitySelection<TSchema, TEntityName, TEntity, TValue & {
|
|
19
|
+
[key in TAlias extends null ? TNestedKey : TAlias]: TNestedValue[];
|
|
20
|
+
}>;
|
|
21
|
+
$<TNestedValue, TNestedKey extends keyof TEntity['hasMany'] & string, TAlias extends string | null = null>(name: TNestedKey, fields: TypedEntitySelectionCallback<TSchema, TEntity['hasMany'][TNestedKey]['name'], TEntity['hasMany'][TNestedKey], TNestedValue> | TypedEntitySelection<TSchema, TEntity['hasMany'][TNestedKey]['name'], TEntity['hasMany'][TNestedKey], TNestedValue>): TypedEntitySelection<TSchema, TEntityName, TEntity, TValue & {
|
|
22
|
+
[key in TAlias extends null ? TNestedKey : TAlias]: TNestedValue[];
|
|
23
|
+
}>;
|
|
24
|
+
$<TNestedValue, TNestedKey extends keyof TEntity['hasManyBy'] & string, TAlias extends string | null = null>(name: TNestedKey, args: ContentClientInput.HasManyByRelationInput<TEntity['hasManyBy'][TNestedKey]['entity'], TEntity['hasManyBy'][TNestedKey]['by']> & {
|
|
25
|
+
as?: TAlias;
|
|
26
|
+
}, fields: TypedEntitySelectionCallback<TSchema, TEntity['hasManyBy'][TNestedKey]['entity']['name'], TEntity['hasManyBy'][TNestedKey]['entity'], TNestedValue> | TypedEntitySelection<TSchema, TEntity['hasManyBy'][TNestedKey]['entity']['name'], TEntity['hasManyBy'][TNestedKey]['entity'], TNestedValue>): TypedEntitySelection<TSchema, TEntityName, TEntity, TValue & {
|
|
27
|
+
[key in TAlias extends null ? TNestedKey : TAlias]: null | TNestedValue;
|
|
28
|
+
}>;
|
|
29
|
+
$<TNestedValue, TNestedKey extends keyof TEntity['hasManyBy'] & string, TAlias extends string | null = null>(name: TNestedKey, fields: TypedEntitySelectionCallback<TSchema, TEntity['hasManyBy'][TNestedKey]['entity']['name'], TEntity['hasManyBy'][TNestedKey]['entity'], TNestedValue> | TypedEntitySelection<TSchema, TEntity['hasManyBy'][TNestedKey]['entity']['name'], TEntity['hasManyBy'][TNestedKey]['entity'], TNestedValue>): TypedEntitySelection<TSchema, TEntityName, TEntity, TValue & {
|
|
30
|
+
[key in TAlias extends null ? TNestedKey : TAlias]: null | TNestedValue;
|
|
31
|
+
}>;
|
|
32
|
+
$<TNestedValue extends {
|
|
33
|
+
[K in string]: unknown;
|
|
34
|
+
}, TNestedKey extends keyof TEntity['hasOne'] & string, TAlias extends string | null = null>(name: TNestedKey, args: ContentClientInput.HasOneRelationInput<TEntity['hasOne'][TNestedKey]> & {
|
|
35
|
+
as?: TAlias;
|
|
36
|
+
}, fields: TypedEntitySelectionCallback<TSchema, TEntity['hasOne'][TNestedKey]['name'], TEntity['hasOne'][TNestedKey], TNestedValue> | TypedEntitySelection<TSchema, TEntity['hasOne'][TNestedKey]['name'], TEntity['hasOne'][TNestedKey], TNestedValue>): TypedEntitySelection<TSchema, TEntityName, TEntity, TValue & {
|
|
37
|
+
[key in TAlias extends null ? TNestedKey : TAlias]: TNestedValue | null;
|
|
38
|
+
}>;
|
|
39
|
+
$<TNestedValue extends {
|
|
40
|
+
[K in string]: unknown;
|
|
41
|
+
}, TNestedKey extends keyof TEntity['hasOne'] & string, TAlias extends string | null = null>(name: TNestedKey, fields: TypedEntitySelectionCallback<TSchema, TEntity['hasOne'][TNestedKey]['name'], TEntity['hasOne'][TNestedKey], TNestedValue> | TypedEntitySelection<TSchema, TEntity['hasOne'][TNestedKey]['name'], TEntity['hasOne'][TNestedKey], TNestedValue>): TypedEntitySelection<TSchema, TEntityName, TEntity, TValue & {
|
|
42
|
+
[key in TAlias extends null ? TNestedKey : TAlias]: TNestedValue | null;
|
|
43
|
+
}>;
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=TypedEntitySelection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TypedEntitySelection.d.ts","sourceRoot":"","sources":["../../../src/nodes/TypedEntitySelection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAChE,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAA;AAC7C,OAAO,EAAE,6BAA6B,EAAE,MAAM,0BAA0B,CAAA;AAExE,MAAM,MAAM,4BAA4B,CACvC,OAAO,SAAS,cAAc,EAC9B,UAAU,SAAS,MAAM,EACzB,OAAO,SAAS,cAAc,EAC9B,MAAM,IACH,CAAC,MAAM,EAAE,oBAAoB,CAAC,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,EAAE,CAAC,KAAK,oBAAoB,CAAC,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,CAAC,CAAA;AAElI,MAAM,WAAW,oBAAoB,CAAC,OAAO,SAAS,cAAc,EAAE,WAAW,SAAS,MAAM,EAAE,OAAO,SAAS,cAAc,EAAE,MAAM;IAEvI,gBAAgB;IAChB,QAAQ,CAAC,OAAO,EAAE,6BAA6B,CAAC,WAAW,CAAC,CAAC;IAE7D,EAAE,IAAI,oBAAoB,CAAC,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,GAAG;SACjE,GAAG,IAAI,MAAM,OAAO,CAAC,SAAS,CAAC,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC;KAC1D,CAAC,CAAA;IAEF,CAAC,CACA,IAAI,SAAS,CAAC,MAAM,OAAO,CAAC,SAAS,CAAC,CAAC,GAAG,MAAM,EAChD,MAAM,SAAS,MAAM,GAAG,IAAI,GAAG,IAAI,EAEnC,IAAI,EAAE,IAAI,EACV,IAAI,CAAC,EAAE;QAAC,EAAE,CAAC,EAA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AC,CAAA;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/nodes/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAA;AACxC,cAAc,oBAAoB,CAAA;AAClC,cAAc,wBAAwB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"program":{"fileNames":["../../../../node_modules/typescript/lib/lib.es5.d.ts","../../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../../node_modules/typescript/lib/lib.es2021.d.ts","../../../../node_modules/typescript/lib/lib.es2022.d.ts","../../../../node_modules/typescript/lib/lib.es2023.d.ts","../../../../node_modules/typescript/lib/lib.esnext.d.ts","../../../../node_modules/typescript/lib/lib.dom.d.ts","../../../../node_modules/typescript/lib/lib.dom.iterable.d.ts","../../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../../node_modules/typescript/lib/lib.es2017.date.d.ts","../../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../../../node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2021.string.d.ts","../../../../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../../node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2022.array.d.ts","../../../../node_modules/typescript/lib/lib.es2022.error.d.ts","../../../../node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2022.object.d.ts","../../../../node_modules/typescript/lib/lib.es2022.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2022.string.d.ts","../../../../node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../../node_modules/typescript/lib/lib.es2023.array.d.ts","../../../../node_modules/typescript/lib/lib.es2023.collection.d.ts","../../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../../node_modules/typescript/lib/lib.esnext.disposable.d.ts","../../../../node_modules/typescript/lib/lib.esnext.decorators.d.ts","../../../../node_modules/typescript/lib/lib.decorators.d.ts","../../../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../../node_modules/@types/react/global.d.ts","../../../../node_modules/csstype/index.d.ts","../../../../node_modules/@types/prop-types/index.d.ts","../../../../node_modules/@types/scheduler/tracing.d.ts","../../../../node_modules/@types/react/index.d.ts","../../../../node_modules/@types/react/jsx-runtime.d.ts","../../../graphql-builder/dist/types/nodes/GraphQlFragmentSpread.d.ts","../../../graphql-builder/dist/types/nodes/GraphQlInlineFragment.d.ts","../../../../node_modules/@contember/schema/dist/src/schema/value.d.ts","../../../../node_modules/@contember/schema/dist/src/schema/input.d.ts","../../../../node_modules/@contember/schema/dist/src/schema/json.d.ts","../../../../node_modules/@contember/schema/dist/src/schema/acl.d.ts","../../../../node_modules/@contember/schema/dist/src/schema/actions.d.ts","../../../../node_modules/@contember/schema/dist/src/schema/model.d.ts","../../../../node_modules/@contember/schema/dist/src/schema/result.d.ts","../../../../node_modules/@contember/schema/dist/src/schema/validation.d.ts","../../../../node_modules/@contember/schema/dist/src/schema/settings.d.ts","../../../../node_modules/@contember/schema/dist/src/ProjectRole.d.ts","../../../../node_modules/@contember/schema/dist/src/index.d.ts","../../../graphql-builder/dist/types/nodes/GraphQlField.d.ts","../../../graphql-builder/dist/types/nodes/GraphQlFragment.d.ts","../../../graphql-builder/dist/types/nodes/index.d.ts","../../../graphql-builder/dist/types/GraphQlQueryPrinter.d.ts","../../../graphql-builder/dist/types/index.d.ts","../../src/utils/mutationFragments.ts","../../../graphql-client/dist/types/GraphQlClientRequestOptions.d.ts","../../../graphql-client/dist/types/GraphQlClient.d.ts","../../../graphql-client/dist/types/GraphQlClientError.d.ts","../../../graphql-client/dist/types/index.d.ts","../../src/types/Schema.ts","../../src/types/Input.ts","../../src/types/Result.ts","../../src/types/index.ts","../../src/utils/createListArgs.ts","../../src/nodes/ContentEntitySelection.ts","../../src/nodes/ContentOperation.ts","../../src/nodes/TypedEntitySelection.ts","../../src/nodes/index.ts","../../src/utils/ContentOperationSet.ts","../../src/utils/createMutationOperationSet.ts","../../src/utils/createQueryOperationSet.ts","../../src/ContentClient.ts","../../src/utils/createTypedArgs.ts","../../src/ContentQueryBuilder.ts","../../src/TypedContentQueryBuilder.ts","../../src/index.ts","../../../../node_modules/vite/types/hmrPayload.d.ts","../../../../node_modules/vite/types/customEvent.d.ts","../../../../node_modules/vite/types/hot.d.ts","../../../../node_modules/vite/types/importGlob.d.ts","../../../../node_modules/vite/types/importMeta.d.ts","../../../../node_modules/vite/client.d.ts"],"fileInfos":[{"version":"f33e5332b24c3773e930e212cbb8b6867c8ba3ec4492064ea78e55a524d57450","affectsGlobalScope":true},"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","26f2f787e82c4222710f3b676b4d83eb5ad0a72fa7b746f03449e7a026ce5073","9a68c0c07ae2fa71b44384a839b7b8d81662a236d4b9ac30916718f7510b1b2d","5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","5514e54f17d6d74ecefedc73c504eadffdeda79c7ea205cf9febead32d45c4bc","1c0cdb8dc619bc549c3e5020643e7cf7ae7940058e8c7e5aefa5871b6d86f44b","bed7b7ba0eb5a160b69af72814b4dde371968e40b6c5e73d3a9f7bee407d158c",{"version":"21e41a76098aa7a191028256e52a726baafd45a925ea5cf0222eb430c96c1d83","affectsGlobalScope":true},{"version":"35299ae4a62086698444a5aaee27fc7aa377c68cbb90b441c9ace246ffd05c97","affectsGlobalScope":true},{"version":"138fb588d26538783b78d1e3b2c2cc12d55840b97bf5e08bca7f7a174fbe2f17","affectsGlobalScope":true},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true},{"version":"4443e68b35f3332f753eacc66a04ac1d2053b8b035a0e0ac1d455392b5e243b3","affectsGlobalScope":true},{"version":"bc47685641087c015972a3f072480889f0d6c65515f12bd85222f49a98952ed7","affectsGlobalScope":true},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true},{"version":"93495ff27b8746f55d19fcbcdbaccc99fd95f19d057aed1bd2c0cafe1335fbf0","affectsGlobalScope":true},{"version":"6fc23bb8c3965964be8c597310a2878b53a0306edb71d4b5a4dfe760186bcc01","affectsGlobalScope":true},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true},{"version":"bb42a7797d996412ecdc5b2787720de477103a0b2e53058569069a0e2bae6c7e","affectsGlobalScope":true},{"version":"4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","affectsGlobalScope":true},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true},{"version":"9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","affectsGlobalScope":true},{"version":"61c37c1de663cf4171e1192466e52c7a382afa58da01b1dc75058f032ddf0839","affectsGlobalScope":true},{"version":"b541a838a13f9234aba650a825393ffc2292dc0fc87681a5d81ef0c96d281e7a","affectsGlobalScope":true},{"version":"e0275cd0e42990dc3a16f0b7c8bca3efe87f1c8ad404f80c6db1c7c0b828c59f","affectsGlobalScope":true},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true},{"version":"49ed889be54031e1044af0ad2c603d627b8bda8b50c1a68435fe85583901d072","affectsGlobalScope":true},{"version":"e93d098658ce4f0c8a0779e6cab91d0259efb88a318137f686ad76f8410ca270","affectsGlobalScope":true},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true},{"version":"bf14a426dbbf1022d11bd08d6b8e709a2e9d246f0c6c1032f3b2edb9a902adbe","affectsGlobalScope":true},{"version":"ec0104fee478075cb5171e5f4e3f23add8e02d845ae0165bfa3f1099241fa2aa","affectsGlobalScope":true},{"version":"2b72d528b2e2fe3c57889ca7baef5e13a56c957b946906d03767c642f386bbc3","affectsGlobalScope":true},{"version":"acae90d417bee324b1372813b5a00829d31c7eb670d299cd7f8f9a648ac05688","affectsGlobalScope":true},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true},{"version":"51e547984877a62227042850456de71a5c45e7fe86b7c975c6e68896c86fa23b","affectsGlobalScope":true},{"version":"62a4966981264d1f04c44eb0f4b5bdc3d81c1a54725608861e44755aa24ad6a5","affectsGlobalScope":true},{"version":"4fa6ed14e98aa80b91f61b9805c653ee82af3502dc21c9da5268d3857772ca05","affectsGlobalScope":true},{"version":"e6633e05da3ff36e6da2ec170d0d03ccf33de50ca4dc6f5aeecb572cedd162fb","affectsGlobalScope":true},{"version":"86a34c7a13de9cabc43161348f663624b56871ed80986e41d214932ddd8d6719","affectsGlobalScope":true},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true},{"version":"caccc56c72713969e1cfe5c3d44e5bab151544d9d2b373d7dbe5a1e4166652be","affectsGlobalScope":true},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true},{"version":"50d53ccd31f6667aff66e3d62adf948879a3a16f05d89882d1188084ee415bbc","affectsGlobalScope":true},{"version":"08a58483392df5fcc1db57d782e87734f77ae9eab42516028acbfe46f29a3ef7","affectsGlobalScope":true},{"version":"436aaf437562f276ec2ddbee2f2cdedac7664c1e4c1d2c36839ddd582eeb3d0a","affectsGlobalScope":true},{"version":"13f6e6380c78e15e140243dc4be2fa546c287c6d61f4729bc2dd7cf449605471","affectsGlobalScope":true},{"version":"4350e5922fecd4bedda2964d69c213a1436349d0b8d260dd902795f5b94dc74b","affectsGlobalScope":true},{"version":"d4b1d2c51d058fc21ec2629fff7a76249dec2e36e12960ea056e3ef89174080f","affectsGlobalScope":true},{"version":"33358442698bb565130f52ba79bfd3d4d484ac85fe33f3cb1759c54d18201393","affectsGlobalScope":true},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true},{"version":"0bd5e7096c7bc02bf70b2cc017fc45ef489cb19bd2f32a71af39ff5787f1b56a","affectsGlobalScope":true},"8a8eb4ebffd85e589a1cc7c178e291626c359543403d58c9cd22b81fab5b1fb9","6a386ff939f180ae8ef064699d8b7b6e62bc2731a62d7fbf5e02589383838dea","f5a8b384f182b3851cec3596ccc96cb7464f8d3469f48c74bf2befb782a19de5",{"version":"369b91cb44fdb8a8fa15de2bd6c28a7abfe6cc16d483ea42291cc7b1efff88d4","affectsGlobalScope":true},"2879a055439b6c0c0132a1467120a0f85b56b5d735c973ad235acd958b1b5345","34e5c5b2be8aa1b3f75ccd21529ae8b9163f510dbdabae4caae3fec3010cc33b","45fb3525f5c652416e54f91bd8378464d41e22b0ccc108de7db918cf8e92ffd3","3ae62be455efcb1874e7fd1f30f2bb83144757d2f349ceb0c6523bb9f7f7a860","be0f711ade459d8e51739f8544a565bc7d2ea56a9dda7ef6d5edd9d864737276","b1296831e111197bd9ebd73f0d15ad0fe2e11fcc51a6302edb23ffd93794db36","5610e8177b34fa50394973f3faba06fd5268b1264a2f4f7daaa71fee1194a94d","4dc29833bfcaa8597097a99fd486d72a0de9c38bb7a6dcd1dadb70e1b9c17282","9869fe612661e4bb3a63b339b3a0d0cdbb6c9e85dd4a59209c86383179e3fbd9","f42116e2e8ad600dc90bdf8ceade9dcf593c35812d8aaba9c03a3f1dbb87330e","dff2fee737ebe5174f549c9f28e114c0cabac4b5fe4e364654465ba528979ba4","86c9954d4c0c270f2952a8695b90fbf4a58210deae10911be98b6c31b84cc8db","466df547af9cf3861658b08baf3ecbd41c0eaad2101378fadfa54ab24db103e6","66b37de2f4b108cf4467570730a30cac8aa7d9ec94a0e335825c9192c1188094","e2402a646d4471b0985495b6bfca6c9c731d335195bf206e8c982d8ca362692f","08d34fcbf615950f6d3dd6858437159f0c0af08d5af645ec415ebfeaeacf3bd0","13ce162c8088b92a985e41a2ddf61cbb191101c280214a74dd9e8d2fd3c9c905","d2689735d2498972d6f02fbaff989b1fa500b5a140af7e7c08a15fbc36c1d3d3","4b47e095287cc1351b5fa9c5112d1d2d255bd8916ce76347225837b244e97ed5",{"version":"455a08fab96b932e98609df4cdf283f4e73267a61649f586f2ecd3daa6fd9467","signature":"016e695348eb662b9adead21973e3da689bbff9c65811491644e2ed594fca800"},"8c56ed339fb7ea09a933aae91daa038e669730da6b6d422275d0a7e5293b46a7","711255f9dda18a35389ec1e3fa8ebe6e906e67902550afad96b0ac6c5a5de327","4d023a0827a63ad5e6b498f92830d79e40e6fd487ed6b7c6fc2528eb9b3c0937","e17fbde86ef68adc663fff12c63cce11175482b3f108afd90fa3c11754afe6c6",{"version":"67b72bf4a4743058cd6cd80c632d8d918bd70d72cb4f6a02ac99e5ed9c4ff9e8","signature":"aae8862b104ce076ea1b097bc886c37b33a338efeb9960157f4725fdb5a5862b"},{"version":"52747cf238564eeaefa7a41ba901e635098ef00dedaa7d799250765fcdd1b8ec","signature":"89cffe3ee77d68a50629ee5997ce20ec2cc2cb1991549b64aa793aa8465ad622"},{"version":"48efacca2f03c964cafd13eabcd5ca0e61c06cbdf2aa02f7bf1cbdea4a9a0dc6","signature":"f289c5204b0819632486cefeec845a20a7a9c769180fb6bede63b0d7f24839d2"},{"version":"e094ee9f701b35c8089fa4bf0708ca687f9a98d8a3b04ace0769ec76b6e06d68","signature":"feaceef383869ce3addd7d620c89fa6ff1d5753f7b451cffb1e926998df2b5e4"},{"version":"1ce34a0f5a33f3ec3d13879fa6a2c573eba987beef0c44dedd271e1f6127d038","signature":"072aa9647706bfec733119a60c7c6c1184ef8bedd0f11a32d0553b2b939c9f2d"},{"version":"aa2a2bc669516f05a7c0fbb47d0f67bd25f18140b5cbdcbfbcb2fc1d390844cf","signature":"f104ff2c22b3c0919c63450b8b77fa227d183a47eed6ef54203ec40678674cb5"},{"version":"acb7dbfa3ccf09b7f56bcfc1c027f5a774fe6454d2089d39e789c8e251885a06","signature":"06c1e22ce1921cfd383c800f9e191972c5dfaca8996cca54d85c4b4cb41db49d"},{"version":"6af8bd014c2500e4618e447fe08245a6306be223821adf3d54290689be1b0a4a","signature":"1a80b95a8d69b24fa553fd598aeeffbdeebd8d87b70df2ce757d8240cb36fa99"},{"version":"af5f7c439c7cf5c91cc7b734dd5994c187f853e8ce4d5e37fc193625099418c5","signature":"6c7327831239ec38e57c18eb15c5b191aa258ada0528de8dc93092efcba20896"},{"version":"a6481312c14c551004515f78ecb8b766ef32d74f1db6e5961875e419e937453d","signature":"0cd8eca2ce06522c71d3b9eb3ca87f6641f1ca48ee143c424eb0a6ca5946e444"},{"version":"2f8ef76dcd86e19af088905c3c014c898804e216db510091784717474db2dcee","signature":"d29f4556a53aa2660b9bbfe2d93770781740b6e9274e16ea13b38dcec35ce42e"},{"version":"5d0650fd8b5826f32bd9d97bb9e31fa62738ec20bb673fffd1fc8e34e9700375","signature":"b8373beeb8e2f6ffb2ed25801fa5366661bac945fc2e3b43c40a22b609992b8a"},{"version":"5a1711ac5f47090722b7160cfadbd77c4c8bb4aed84b64c4923d0c29ce0c1d6a","signature":"3c4de8d194c64b484827151ff14582884166268c345cbb13f9c19e4be3912f54"},{"version":"4aae859123123ed6d4745fe16fb27f13192735eb12952cbabfe9fbc8f1eddc6b","signature":"5f64acae0d67819d1fccb6663c89df4ef8b38461ebfbe45824d780ab928cdb47"},{"version":"734dd3ee55d31527b178af5907d6af3a846f9a19558ca23939d8ff909d53c3e6","signature":"ea924fbabda99a62bb4cde7f6a01048597027815366db11bff03c08ed576fed8"},{"version":"9edc6523ce772fcf5ed7af49675b623982c113473c6884c85487f41546da9185","signature":"5e8c7ad4619cc15007aa5bc3f4e1a30cb01540c14beaa609fb8d17d21acaceba"},{"version":"ebc1c42c3c87594615b879a8dd9503908a09023b2f11e0876f489b46f34509cb","signature":"f202558a35a4093e2eb6a5a2aa9f517f883dc3b949a350c9b36906f8c1a3e20a"},"bcb6ea18f23dae2c48459d7b86d3adccd6898f824fcbf9da08b935f559896580","1363ba7d52f2353d0c4306d0ecdaf171bf4509c0148842f9fd8d3986c098a2eb","cbe726263ae9a7bf32352380f7e8ab66ee25b3457137e316929269c19e18a2be","21092de52736dc30f478fe5f1e88ad1b545ce4b276062999302aa65b30a6787a",{"version":"4025a454b1ca489b179ee8c684bdd70ff8c1967e382076ade53e7e4653e1daec","affectsGlobalScope":true},{"version":"84d68135178bf014e5cdc27e88c9148fc22f82e1a733dc6e1869a5263e58d5db","affectsGlobalScope":true}],"root":[90,[95,111]],"options":{"allowSyntheticDefaultImports":true,"composite":true,"declaration":true,"declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":true,"experimentalDecorators":true,"jsx":4,"module":99,"noEmitOnError":true,"noImplicitOverride":true,"outDir":"./","skipLibCheck":true,"sourceMap":true,"strict":true,"target":7,"useDefineForClassFields":true},"fileIdsList":[[74,75,76,77,78,79,80,81,82,83],[75,76],[76],[74],[75],[66,67,68,69],[70],[116],[112],[113],[114,115],[71,89,90,94,103,105,106],[71,84,89,98,99,103,105,108],[71,98,103,109],[71,98,103,107,109,110],[71,84,89,98,99],[71,89],[71,95,98,100],[71,100,101,102],[71,84,95],[71,84],[71,95,96,97],[71,89,98],[71,89,103,104],[84,87],[87,88],[72,73,84],[85],[72,73,85,86],[91],[91,92,93],[94,103],[84,98,103],[98,103,109],[98,103,107,109,110],[84,89,98],[89],[95,98,100],[100,101,102],[84,95],[84],[95,96,97],[89,98],[103,104]],"referencedMap":[[84,1],[77,2],[78,3],[75,4],[79,5],[80,4],[81,3],[70,6],[71,7],[117,8],[113,9],[114,10],[116,11],[107,12],[109,13],[110,14],[111,15],[100,16],[101,17],[102,18],[103,19],[96,20],[97,21],[95,21],[98,22],[104,17],[99,23],[105,24],[106,24],[108,17],[90,17],[88,25],[89,26],[85,27],[86,28],[73,28],[87,29],[92,30],[94,31]],"exportedModulesMap":[[84,1],[77,2],[78,3],[75,4],[79,5],[80,4],[81,3],[70,6],[71,7],[117,8],[113,9],[114,10],[116,11],[107,32],[109,33],[110,34],[111,35],[100,36],[101,37],[102,38],[103,39],[96,40],[97,41],[95,41],[98,42],[104,37],[99,43],[105,44],[106,44],[108,37],[90,37],[88,25],[89,26],[85,27],[86,28],[73,28],[87,29],[92,30],[94,31]],"semanticDiagnosticsPerFile":[83,84,77,78,75,76,79,80,82,81,74,68,66,70,71,69,67,64,65,12,13,15,14,2,16,17,18,19,20,21,22,23,3,4,24,28,25,26,27,29,30,31,5,32,33,34,35,6,39,36,37,38,40,7,41,46,47,42,43,44,45,8,51,48,49,50,52,9,53,54,55,58,56,57,59,60,10,1,11,63,62,61,117,113,112,114,115,116,107,109,110,111,100,101,102,103,96,97,95,98,104,99,105,106,108,90,88,89,85,86,72,73,87,92,93,91,94],"latestChangedDtsFile":"./index.d.ts"},"version":"5.3.3"}
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
import { Input, JSONObject } from '@contember/schema';
|
|
2
|
+
import { EntityTypeLike } from './Schema';
|
|
3
|
+
export declare namespace ContentClientInput {
|
|
4
|
+
type ConnectRelationInput<TEntity extends EntityTypeLike> = {
|
|
5
|
+
/** @internal */
|
|
6
|
+
readonly __typeGuard?: TEntity['name'];
|
|
7
|
+
readonly connect: UniqueWhere<TEntity>;
|
|
8
|
+
};
|
|
9
|
+
type CreateRelationInput<TEntity extends EntityTypeLike> = {
|
|
10
|
+
/** @internal */
|
|
11
|
+
readonly __typeGuard?: TEntity['name'];
|
|
12
|
+
readonly create: CreateDataInput<TEntity>;
|
|
13
|
+
};
|
|
14
|
+
type ConnectOrCreateInput<TEntity extends EntityTypeLike> = {
|
|
15
|
+
/** @internal */
|
|
16
|
+
readonly __typeGuard?: TEntity['name'];
|
|
17
|
+
readonly connect: UniqueWhere<TEntity>;
|
|
18
|
+
readonly create: CreateDataInput<TEntity>;
|
|
19
|
+
};
|
|
20
|
+
type ConnectOrCreateRelationInput<TEntity extends EntityTypeLike> = {
|
|
21
|
+
/** @internal */
|
|
22
|
+
readonly __typeGuard?: TEntity['name'];
|
|
23
|
+
readonly connectOrCreate: ConnectOrCreateInput<TEntity>;
|
|
24
|
+
};
|
|
25
|
+
type DisconnectSpecifiedRelationInput<TEntity extends EntityTypeLike> = {
|
|
26
|
+
/** @internal */
|
|
27
|
+
readonly __typeGuard?: TEntity['name'];
|
|
28
|
+
readonly disconnect: UniqueWhere<TEntity>;
|
|
29
|
+
};
|
|
30
|
+
type DeleteSpecifiedRelationInput<TEntity extends EntityTypeLike> = {
|
|
31
|
+
/** @internal */
|
|
32
|
+
readonly __typeGuard?: TEntity['name'];
|
|
33
|
+
readonly delete: UniqueWhere<TEntity>;
|
|
34
|
+
};
|
|
35
|
+
type UpdateSpecifiedRelationInput<TEntity extends EntityTypeLike> = {
|
|
36
|
+
/** @internal */
|
|
37
|
+
readonly __typeGuard?: TEntity['name'];
|
|
38
|
+
readonly update: {
|
|
39
|
+
readonly by: UniqueWhere<TEntity>;
|
|
40
|
+
readonly data: UpdateDataInput<TEntity>;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
type UpsertSpecifiedRelationInput<TEntity extends EntityTypeLike> = {
|
|
44
|
+
/** @internal */
|
|
45
|
+
readonly __typeGuard?: TEntity['name'];
|
|
46
|
+
readonly upsert: {
|
|
47
|
+
readonly by: UniqueWhere<TEntity>;
|
|
48
|
+
readonly update: UpdateDataInput<TEntity>;
|
|
49
|
+
readonly create: CreateDataInput<TEntity>;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
type DisconnectRelationInput<TEntity extends EntityTypeLike> = {
|
|
53
|
+
/** @internal */
|
|
54
|
+
readonly __typeGuard?: TEntity['name'];
|
|
55
|
+
readonly disconnect: true;
|
|
56
|
+
};
|
|
57
|
+
type UpdateRelationInput<TEntity extends EntityTypeLike> = {
|
|
58
|
+
/** @internal */
|
|
59
|
+
readonly __typeGuard?: TEntity['name'];
|
|
60
|
+
readonly update: UpdateDataInput<TEntity>;
|
|
61
|
+
};
|
|
62
|
+
type DeleteRelationInput<TEntity extends EntityTypeLike> = {
|
|
63
|
+
/** @internal */
|
|
64
|
+
readonly __typeGuard?: TEntity['name'];
|
|
65
|
+
readonly delete: true;
|
|
66
|
+
};
|
|
67
|
+
type UpsertRelationInput<TEntity extends EntityTypeLike> = {
|
|
68
|
+
/** @internal */
|
|
69
|
+
readonly __typeGuard?: TEntity['name'];
|
|
70
|
+
readonly upsert: {
|
|
71
|
+
readonly update: UpdateDataInput<TEntity>;
|
|
72
|
+
readonly create: CreateDataInput<TEntity>;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
type CreateDataInput<TEntity extends EntityTypeLike> = {
|
|
76
|
+
/** @internal */
|
|
77
|
+
readonly __typeGuard?: TEntity['name'];
|
|
78
|
+
} & {
|
|
79
|
+
readonly [key in keyof TEntity['columns']]?: TEntity['columns'][key];
|
|
80
|
+
} & {
|
|
81
|
+
readonly [key in keyof TEntity['hasMany']]?: CreateManyRelationInput<TEntity['hasMany'][key]>;
|
|
82
|
+
} & {
|
|
83
|
+
readonly [key in keyof TEntity['hasOne']]?: CreateOneRelationInput<TEntity['hasOne'][key]>;
|
|
84
|
+
};
|
|
85
|
+
type CreateOneRelationInput<TEntity extends EntityTypeLike> = ConnectRelationInput<TEntity> | CreateRelationInput<TEntity> | ConnectOrCreateRelationInput<TEntity>;
|
|
86
|
+
type CreateManyRelationInput<TEntity extends EntityTypeLike> = readonly CreateOneRelationInput<TEntity>[];
|
|
87
|
+
type UpdateDataInput<TEntity extends EntityTypeLike> = {
|
|
88
|
+
/**
|
|
89
|
+
* @internal
|
|
90
|
+
*/
|
|
91
|
+
readonly __typeGuard?: TEntity['name'];
|
|
92
|
+
} & {
|
|
93
|
+
readonly [key in keyof TEntity['columns']]?: TEntity['columns'][key];
|
|
94
|
+
} & {
|
|
95
|
+
readonly [key in keyof TEntity['hasMany']]?: UpdateManyRelationInput<TEntity['hasMany'][key]>;
|
|
96
|
+
} & {
|
|
97
|
+
readonly [key in keyof TEntity['hasOne']]?: UpdateOneRelationInput<TEntity['hasOne'][key]>;
|
|
98
|
+
};
|
|
99
|
+
type UpdateInput<TEntity extends EntityTypeLike> = {
|
|
100
|
+
/** @internal */
|
|
101
|
+
readonly __typeGuard?: TEntity['name'];
|
|
102
|
+
readonly by: UniqueWhere<TEntity>;
|
|
103
|
+
readonly filter?: Where<TEntity>;
|
|
104
|
+
readonly data: UpdateDataInput<TEntity>;
|
|
105
|
+
};
|
|
106
|
+
type UpsertInput<TEntity extends EntityTypeLike> = {
|
|
107
|
+
/** @internal */
|
|
108
|
+
readonly __typeGuard?: TEntity['name'];
|
|
109
|
+
readonly by: UniqueWhere<TEntity>;
|
|
110
|
+
readonly filter?: Where<TEntity>;
|
|
111
|
+
readonly update: UpdateDataInput<TEntity>;
|
|
112
|
+
readonly create: CreateDataInput<TEntity>;
|
|
113
|
+
};
|
|
114
|
+
type CreateInput<TEntity extends EntityTypeLike> = {
|
|
115
|
+
/** @internal */
|
|
116
|
+
readonly __typeGuard?: TEntity['name'];
|
|
117
|
+
readonly data: CreateDataInput<TEntity>;
|
|
118
|
+
};
|
|
119
|
+
type DeleteInput<TEntity extends EntityTypeLike> = {
|
|
120
|
+
/** @internal */
|
|
121
|
+
readonly __typeGuard?: TEntity['name'];
|
|
122
|
+
readonly by: UniqueWhere<TEntity>;
|
|
123
|
+
readonly filter?: Where<TEntity>;
|
|
124
|
+
};
|
|
125
|
+
type UniqueQueryInput<TEntity extends EntityTypeLike> = {
|
|
126
|
+
/** @internal */
|
|
127
|
+
readonly __typeGuard?: TEntity['name'];
|
|
128
|
+
readonly by: UniqueWhere<TEntity>;
|
|
129
|
+
readonly filter?: Where<TEntity>;
|
|
130
|
+
};
|
|
131
|
+
type ListQueryInput<TEntity extends EntityTypeLike> = {
|
|
132
|
+
/** @internal */
|
|
133
|
+
readonly __typeGuard?: TEntity['name'];
|
|
134
|
+
readonly filter?: Where<TEntity>;
|
|
135
|
+
readonly orderBy?: readonly OrderBy<TEntity>[];
|
|
136
|
+
readonly offset?: number;
|
|
137
|
+
readonly limit?: number;
|
|
138
|
+
};
|
|
139
|
+
type PaginationQueryInput<TEntity extends EntityTypeLike> = {
|
|
140
|
+
/** @internal */
|
|
141
|
+
readonly __typeGuard?: TEntity['name'];
|
|
142
|
+
readonly filter?: Where<TEntity>;
|
|
143
|
+
readonly orderBy?: readonly OrderBy<TEntity>[];
|
|
144
|
+
readonly skip?: number;
|
|
145
|
+
readonly first?: number;
|
|
146
|
+
};
|
|
147
|
+
type HasOneRelationInput<TEntity extends EntityTypeLike> = {
|
|
148
|
+
/** @internal */
|
|
149
|
+
readonly __typeGuard?: TEntity['name'];
|
|
150
|
+
readonly filter?: Where<TEntity>;
|
|
151
|
+
};
|
|
152
|
+
type HasManyByRelationInput<TEntity extends EntityTypeLike, TUnique extends JSONObject> = {
|
|
153
|
+
/** @internal */
|
|
154
|
+
readonly __typeGuard?: TEntity['name'];
|
|
155
|
+
readonly by: TUnique;
|
|
156
|
+
readonly filter?: Where<TEntity>;
|
|
157
|
+
};
|
|
158
|
+
type HasManyRelationInput<TEntity extends EntityTypeLike> = ListQueryInput<TEntity>;
|
|
159
|
+
type HasManyRelationPaginateInput<TEntity extends EntityTypeLike> = PaginationQueryInput<TEntity>;
|
|
160
|
+
type UpdateOneRelationInput<TEntity extends EntityTypeLike> = CreateRelationInput<TEntity> | ConnectRelationInput<TEntity> | ConnectOrCreateRelationInput<TEntity> | DeleteRelationInput<TEntity> | DisconnectRelationInput<TEntity> | UpdateRelationInput<TEntity> | UpsertRelationInput<TEntity>;
|
|
161
|
+
type UpdateManyRelationInputItem<TEntity extends EntityTypeLike> = CreateRelationInput<TEntity> | ConnectRelationInput<TEntity> | ConnectOrCreateRelationInput<TEntity> | DeleteSpecifiedRelationInput<TEntity> | DisconnectSpecifiedRelationInput<TEntity> | UpdateSpecifiedRelationInput<TEntity> | UpsertSpecifiedRelationInput<TEntity>;
|
|
162
|
+
type UpdateManyRelationInput<TEntity extends EntityTypeLike> = Array<UpdateManyRelationInputItem<TEntity>>;
|
|
163
|
+
type FieldOrderBy<TEntity extends EntityTypeLike> = {
|
|
164
|
+
/** @internal */
|
|
165
|
+
readonly __typeGuard?: TEntity['name'];
|
|
166
|
+
} & {
|
|
167
|
+
readonly [key in keyof TEntity['columns']]?: `${Input.OrderDirection}` | null;
|
|
168
|
+
} & {
|
|
169
|
+
readonly [key in keyof TEntity['hasMany']]?: FieldOrderBy<TEntity['hasMany'][key]> | null;
|
|
170
|
+
} & {
|
|
171
|
+
readonly [key in keyof TEntity['hasOne']]?: FieldOrderBy<TEntity['hasOne'][key]> | null;
|
|
172
|
+
};
|
|
173
|
+
type OrderBy<TEntity extends EntityTypeLike> = {
|
|
174
|
+
/** @internal */
|
|
175
|
+
readonly __typeGuard?: TEntity['name'];
|
|
176
|
+
readonly _random?: boolean;
|
|
177
|
+
readonly _randomSeeded?: number;
|
|
178
|
+
} & FieldOrderBy<TEntity>;
|
|
179
|
+
type UniqueWhere<TEntity extends EntityTypeLike> = {
|
|
180
|
+
/**
|
|
181
|
+
* @internal
|
|
182
|
+
*/
|
|
183
|
+
readonly __typeGuard?: TEntity['name'];
|
|
184
|
+
} & TEntity['unique'];
|
|
185
|
+
type Where<TEntity extends EntityTypeLike> = {
|
|
186
|
+
/** @internal */
|
|
187
|
+
readonly __typeGuard?: TEntity['name'];
|
|
188
|
+
readonly and?: (readonly (Where<TEntity>)[]) | null;
|
|
189
|
+
readonly or?: (readonly (Where<TEntity>)[]) | null;
|
|
190
|
+
readonly not?: Where<TEntity> | null;
|
|
191
|
+
} & {
|
|
192
|
+
readonly [key in keyof TEntity['columns']]?: Input.Condition<TEntity['columns'][key]> | null;
|
|
193
|
+
} & {
|
|
194
|
+
readonly [key in keyof TEntity['hasMany']]?: Where<TEntity['hasMany'][key]> | null;
|
|
195
|
+
} & {
|
|
196
|
+
readonly [key in keyof TEntity['hasOne']]?: Where<TEntity['hasOne'][key]> | null;
|
|
197
|
+
};
|
|
198
|
+
type AnyOrderBy = Input.OrderBy<`${Input.OrderDirection}`>[];
|
|
199
|
+
type AnyListQueryInput = Omit<Input.ListQueryInput, 'orderBy'> & {
|
|
200
|
+
readonly orderBy?: AnyOrderBy;
|
|
201
|
+
};
|
|
202
|
+
}
|
|
203
|
+
//# sourceMappingURL=Input.d.ts.map
|