@soda-gql/core 0.9.1 → 0.10.0
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/adapter.cjs +2 -2
- package/dist/adapter.d.cts +2 -2
- package/dist/adapter.d.ts +2 -2
- package/dist/adapter.js +1 -1
- package/dist/{index-_6fYTfcA.d.cts → index-CHshzPrG.d.cts} +335 -65
- package/dist/index-CHshzPrG.d.cts.map +1 -0
- package/dist/{index-zCOsREx0.d.cts → index-CnQ5XVCf.d.ts} +2 -2
- package/dist/{index-BlVgxrXb.d.ts.map → index-CnQ5XVCf.d.ts.map} +1 -1
- package/dist/{index-BlVgxrXb.d.ts → index-DnLzk2bC.d.cts} +2 -2
- package/dist/index-DnLzk2bC.d.cts.map +1 -0
- package/dist/{index-B_TU5U2U.d.ts → index-J050RXPw.d.ts} +335 -65
- package/dist/index-J050RXPw.d.ts.map +1 -0
- package/dist/index.cjs +378 -52
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -125
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts +4 -125
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +361 -46
- package/dist/index.js.map +1 -1
- package/dist/runtime.cjs +4 -0
- package/dist/runtime.cjs.map +1 -1
- package/dist/runtime.d.cts +13 -3
- package/dist/runtime.d.cts.map +1 -1
- package/dist/runtime.d.ts +13 -3
- package/dist/runtime.d.ts.map +1 -1
- package/dist/runtime.js +4 -0
- package/dist/runtime.js.map +1 -1
- package/dist/schema-builder-C9Qj5zQg.js +58 -0
- package/dist/schema-builder-C9Qj5zQg.js.map +1 -0
- package/dist/schema-builder-CJe30s_R.d.ts +63 -0
- package/dist/schema-builder-CJe30s_R.d.ts.map +1 -0
- package/dist/schema-builder-CwRmtxHx.d.cts +63 -0
- package/dist/schema-builder-CwRmtxHx.d.cts.map +1 -0
- package/dist/schema-builder-D2ay11cE.cjs +82 -0
- package/dist/schema-builder-D2ay11cE.cjs.map +1 -0
- package/package.json +1 -1
- package/dist/index-B_TU5U2U.d.ts.map +0 -1
- package/dist/index-_6fYTfcA.d.cts.map +0 -1
- package/dist/index-zCOsREx0.d.cts.map +0 -1
- package/dist/schema-BiYcVVvm.js +0 -171
- package/dist/schema-BiYcVVvm.js.map +0 -1
- package/dist/schema-D2MW4DOF.cjs +0 -207
- package/dist/schema-D2MW4DOF.cjs.map +0 -1
- package/dist/schema-builder-BI5PQkH7.d.cts +0 -97
- package/dist/schema-builder-BI5PQkH7.d.cts.map +0 -1
- package/dist/schema-builder-CF_AwsOM.d.ts +0 -97
- package/dist/schema-builder-CF_AwsOM.d.ts.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { $ as InputInferrableTypeSpecifier, A as InputDefinition, At as ConstValue, B as UnionMemberName, C as AnyFieldName, Ct as DecrementDepth, D as InferInputKind, Dt as InputDepthOverrides, E as EnumDefinition, Et as GetInputTypeDepth, F as OperationType, Ft as getCurrentFieldPath, G as NestedValueElement, H as AnyVarRef, I as PickTypeSpecifierByFieldName, It as isListType, J as createVarRefFromNestedValue, K as VarRef, L as ResolveInputProfileFromMeta, Lt as withFieldPath, M as ObjectDefinition, Mt as FieldPath, N as ObjectFieldRecord, Nt as FieldPathSegment, O as InferInputProfile, Ot as IsDepthExhausted, P as OperationRoots, Pt as appendToPath, Q as InputEnumSpecifier, R as ScalarDefinition, S as AllInputTypeNames, St as ValidTypeModifier, T as AnyTypeName, Tt as DepthCounter, U as AnyVarRefBrand, V as UnionTypeRecord, W as NestedValue, X as AnyDefaultValue, Y as createVarRefFromVariable, Z as AnyTypeSpecifier, _ as FragmentMetadataBuilder, _t as PrimitiveTypeProfile, a as DefaultMetadataAdapter, at as OutputEnumSpecifier, b as MetadataBuilderTools, bt as GetSignature, c as ExtractAdapterTypes, ct as OutputScalarSpecifier, d as MetadataAdapter, dt as OutputTypeSpecifiers, et as InputInputObjectSpecifier, f as OperationDocumentTransformArgs, ft as OutputTypenameSpecifier, g as ExtractMetadata, gt as ObjectTypeProfile, h as defaultMetadataAdapter, ht as GetModifiedType, i as DefaultAdapter, it as InputTypeSpecifiers, j as InputFieldRecord, jt as ConstValues, k as InferOutputProfile, kt as NumberToDepth, l as ExtractUnifiedAdapterTypes, lt as OutputTypeKind, m as createDefaultAdapter, mt as GetConstAssignableType, n as AnyAdapter, nt as InputTypeKind, o as DocumentTransformArgs, ot as OutputInferrableTypeSpecifier, p as OperationDocumentTransformer, pt as OutputUnionSpecifier, q as VarRefInner, r as AnyMetadataAdapter, rt as InputTypeSpecifier, s as DocumentTransformer, st as OutputObjectSpecifier, t as Adapter, tt as InputScalarSpecifier, u as FragmentMetaInfo, ut as OutputTypeSpecifier, v as FragmentMetadataBuilderTools, vt as TypeProfile, w as AnyGraphqlSchema, wt as DefaultDepth, x as OperationMetadata, xt as TypeModifier, y as MetadataBuilder, yt as ApplyTypeModifier, z as UnionDefinition } from "./index-
|
|
2
|
-
import { $ as
|
|
3
|
-
import { n as defineOperationRoots, r as defineScalar, t as
|
|
1
|
+
import { $ as InputInferrableTypeSpecifier, A as InputDefinition, At as ConstValue, B as UnionMemberName, C as AnyFieldName, Ct as DecrementDepth, D as InferInputKind, Dt as InputDepthOverrides, E as EnumDefinition, Et as GetInputTypeDepth, F as OperationType, Ft as getCurrentFieldPath, G as NestedValueElement, H as AnyVarRef, I as PickTypeSpecifierByFieldName, It as isListType, J as createVarRefFromNestedValue, K as VarRef, L as ResolveInputProfileFromMeta, Lt as withFieldPath, M as ObjectDefinition, Mt as FieldPath, N as ObjectFieldRecord, Nt as FieldPathSegment, O as InferInputProfile, Ot as IsDepthExhausted, P as OperationRoots, Pt as appendToPath, Q as InputEnumSpecifier, R as ScalarDefinition, S as AllInputTypeNames, St as ValidTypeModifier, T as AnyTypeName, Tt as DepthCounter, U as AnyVarRefBrand, V as UnionTypeRecord, W as NestedValue, X as AnyDefaultValue, Y as createVarRefFromVariable, Z as AnyTypeSpecifier, _ as FragmentMetadataBuilder, _t as PrimitiveTypeProfile, a as DefaultMetadataAdapter, at as OutputEnumSpecifier, b as MetadataBuilderTools, bt as GetSignature, c as ExtractAdapterTypes, ct as OutputScalarSpecifier, d as MetadataAdapter, dt as OutputTypeSpecifiers, et as InputInputObjectSpecifier, f as OperationDocumentTransformArgs, ft as OutputTypenameSpecifier, g as ExtractMetadata, gt as ObjectTypeProfile, h as defaultMetadataAdapter, ht as GetModifiedType, i as DefaultAdapter, it as InputTypeSpecifiers, j as InputFieldRecord, jt as ConstValues, k as InferOutputProfile, kt as NumberToDepth, l as ExtractUnifiedAdapterTypes, lt as OutputTypeKind, m as createDefaultAdapter, mt as GetConstAssignableType, n as AnyAdapter, nt as InputTypeKind, o as DocumentTransformArgs, ot as OutputInferrableTypeSpecifier, p as OperationDocumentTransformer, pt as OutputUnionSpecifier, q as VarRefInner, r as AnyMetadataAdapter, rt as InputTypeSpecifier, s as DocumentTransformer, st as OutputObjectSpecifier, t as Adapter, tt as InputScalarSpecifier, u as FragmentMetaInfo, ut as OutputTypeSpecifier, v as FragmentMetadataBuilderTools, vt as TypeProfile, w as AnyGraphqlSchema, wt as DefaultDepth, x as OperationMetadata, xt as TypeModifier, y as MetadataBuilder, yt as ApplyTypeModifier, z as UnionDefinition } from "./index-DnLzk2bC.cjs";
|
|
2
|
+
import { $ as AnyOperationOf, $t as AbstractFieldSelection, A as GqlElementComposer, At as AttachmentsTupleToIntersection, B as VarSpecifier, Bt as ColocateHelper, C as PrebuiltFragmentOutput, Cn as DirectiveLocation, Ct as EmptyObject, D as createOperationComposerFactory, Dt as empty, E as PrebuiltTypeRegistry, Et as SwitchIfOmittable, F as ResolveTypeFromMeta, Ft as StandardDirectives, G as recordFragmentUsage, Gt as StripSymbols, H as createVarMethod, Ht as ColocatedFields, I as SchemaAwareGetNameAt, It as createDirectiveBuilder, J as createGqlFragmentComposers, Jt as buildArgumentValue, K as withFragmentUsageCollection, Kt as Tuple, L as SchemaAwareGetValueAt, Lt as createDirectiveMethod, M as createGqlElementComposer, Mt as DirectiveArgValue, N as InputTypeMethod, Nt as DirectiveBuilder, O as ExtractMetadataAdapter, Ot as AttachmentShape, P as InputTypeMethods, Pt as DirectiveMethod, Q as AnyOperation, Qt as buildWithTypeModifier, R as VarBuilder, Rt as createStandardDirectives, S as PrebuiltFragmentInput, Sn as AnyDirectiveRefBrand, St as NestedUnionFieldsBuilder, T as PrebuiltOperationOutput, Tn as DirectiveRefInner, Tt as OptionalArg, U as createVarMethodFactory, Ut as createColocateHelper, V as createVarBuilder, Vt as ColocatedEntries, W as FragmentUsageRecord, Wt as StripFunctions, X as createVarRefs, Xt as buildDocument, Y as createVarAssignments, Yt as buildConstValueNode, Z as createFieldFactories, Zt as buildOperationTypeNode, _ as ResolvePrebuiltElement, _n as AnyConstAssignableInputValue, _t as FieldSelectionFactoryUnionReturn, a as TypeFormatters, an as InferField, at as GqlElement, b as HasPrebuiltFragment, bn as GetAssignableType, bt as NestedObjectFieldsBuilder, c as calculateFieldsType, cn as AnyAssignableInput, ct as GqlElementDefinitionFactory, d as generateInputTypeFromSpecifiers, dn as AssignableInput, dt as FieldSelectionFactories, en as AnyFieldSelection, et as Operation, f as getEnumType, fn as AssignableInputByFieldName, ft as FieldSelectionFactory, g as PrebuiltGqlElementComposer, gn as AnyConstAssignableInput, gt as FieldSelectionFactoryReturn, h as graphqlTypeToTypeScript, hn as AnyConstDirectiveAttachments, ht as FieldSelectionFactoryPrimitiveReturn, i as GenerateInputObjectTypeOptions, in as FieldSelectionTemplateOf, it as FragmentInferMeta, j as GqlElementComposerOptions, jt as AnyDirectiveMethod, k as FragmentBuildersAll, kt as AttachmentToProperty, l as generateInputObjectType, ln as AnyAssignableInputValue, lt as AnyFieldSelectionFactory, m as getScalarOutputType, mn as FieldArgumentValue, mt as FieldSelectionFactoryObjectReturn, n as Hidden, nn as AnyNestedObject, nt as AnyFragment, o as applyTypeModifier, on as InferFields, ot as GqlElementAttachment, p as getScalarInputType, pn as DeclaredVariables, pt as FieldSelectionFactoryFieldArguments, q as FragmentBuilderFor, qt as UnionToIntersection, r as hidden, rn as AnyNestedUnion, rt as Fragment, s as calculateFieldType, sn as AnyDirectiveAttachments, st as GqlElementContext, t as wrapByKey, tn as AnyFields, tt as OperationInferMeta, u as generateInputType, un as AnyAssigningInput, ut as AnyFieldSelectionFactoryReturn, v as createPrebuiltGqlElementComposer, vn as ConstAssignableInput, vt as FieldsBuilder, w as PrebuiltOperationInput, wn as DirectiveRef, wt as IfOmittable, x as HasPrebuiltOperation, xn as AnyDirectiveRef, xt as NestedObjectFieldsBuilderTools, y as EmptyPrebuiltTypeRegistry, yn as ConstAssignableInputValue, yt as FieldsBuilderTools, z as VarBuilderMethods, zt as isDirectiveRef } from "./index-CHshzPrG.cjs";
|
|
3
|
+
import { n as defineOperationRoots, r as defineScalar, t as defineEnum } from "./schema-builder-CwRmtxHx.cjs";
|
|
4
4
|
|
|
5
5
|
//#region packages/core/src/types/type-foundation/modified-type-name.d.ts
|
|
6
6
|
type ModifiedTypeName<TNameCandidate extends [string], TName extends TNameCandidate[0], TModifier extends TypeModifier> = [string] extends TNameCandidate ? `${TName}:${TModifier}` : TNameCandidate extends [TName] ?
|
|
@@ -11,126 +11,5 @@ declare function parseModifiedTypeName<TNameCandidate extends [string], TName ex
|
|
|
11
11
|
modifier: TModifier;
|
|
12
12
|
};
|
|
13
13
|
//#endregion
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Creates input type specifiers for schema definitions.
|
|
17
|
-
*
|
|
18
|
-
* Type format: `"TypeName:modifier"` where modifier is `!`, `?`, `![]!`, etc.
|
|
19
|
-
*
|
|
20
|
-
* @example
|
|
21
|
-
* ```typescript
|
|
22
|
-
* const input = {
|
|
23
|
-
* CreateUserInput: define("CreateUserInput").input({
|
|
24
|
-
* name: unsafeInputType.scalar("String:!", {}),
|
|
25
|
-
* age: unsafeInputType.scalar("Int:?", { default: () => 0 }),
|
|
26
|
-
* }),
|
|
27
|
-
* };
|
|
28
|
-
* ```
|
|
29
|
-
*/
|
|
30
|
-
declare const unsafeInputType: {
|
|
31
|
-
/** Creates a scalar input type specifier. */
|
|
32
|
-
scalar: <const TName extends string, const TModifier extends TypeModifier, const TDefaultFactory extends (() => ConstValue) | null = null, const TDirectives extends AnyConstDirectiveAttachments = {}>(type: `${TName}:${TModifier}`, extras: {
|
|
33
|
-
default?: TDefaultFactory | undefined;
|
|
34
|
-
directives?: TDirectives | undefined;
|
|
35
|
-
}) => {
|
|
36
|
-
kind: "scalar";
|
|
37
|
-
name: TName;
|
|
38
|
-
modifier: TModifier;
|
|
39
|
-
defaultValue: TDefaultFactory extends null ? null : {
|
|
40
|
-
default: ReturnType<NonNullable<TDefaultFactory>>;
|
|
41
|
-
};
|
|
42
|
-
directives: TDirectives;
|
|
43
|
-
};
|
|
44
|
-
/** Creates an enum input type specifier. */
|
|
45
|
-
enum: <const TName extends string, const TModifier extends TypeModifier, const TDefaultFactory extends (() => ConstValue) | null = null, const TDirectives extends AnyConstDirectiveAttachments = {}>(type: `${TName}:${TModifier}`, extras: {
|
|
46
|
-
default?: TDefaultFactory | undefined;
|
|
47
|
-
directives?: TDirectives | undefined;
|
|
48
|
-
}) => {
|
|
49
|
-
kind: "enum";
|
|
50
|
-
name: TName;
|
|
51
|
-
modifier: TModifier;
|
|
52
|
-
defaultValue: TDefaultFactory extends null ? null : {
|
|
53
|
-
default: ReturnType<NonNullable<TDefaultFactory>>;
|
|
54
|
-
};
|
|
55
|
-
directives: TDirectives;
|
|
56
|
-
};
|
|
57
|
-
/** Creates an input object type specifier. */
|
|
58
|
-
input: <const TName extends string, const TModifier extends TypeModifier, const TDefaultFactory extends (() => ConstValue) | null = null, const TDirectives extends AnyConstDirectiveAttachments = {}>(type: `${TName}:${TModifier}`, extras: {
|
|
59
|
-
default?: TDefaultFactory | undefined;
|
|
60
|
-
directives?: TDirectives | undefined;
|
|
61
|
-
}) => {
|
|
62
|
-
kind: "input";
|
|
63
|
-
name: TName;
|
|
64
|
-
modifier: TModifier;
|
|
65
|
-
defaultValue: TDefaultFactory extends null ? null : {
|
|
66
|
-
default: ReturnType<NonNullable<TDefaultFactory>>;
|
|
67
|
-
};
|
|
68
|
-
directives: TDirectives;
|
|
69
|
-
};
|
|
70
|
-
};
|
|
71
|
-
/**
|
|
72
|
-
* Creates output type specifiers for schema definitions.
|
|
73
|
-
*
|
|
74
|
-
* Type format: `"TypeName:modifier"` where modifier is `!`, `?`, `![]!`, etc.
|
|
75
|
-
*
|
|
76
|
-
* @example
|
|
77
|
-
* ```typescript
|
|
78
|
-
* const object = {
|
|
79
|
-
* User: define("User").object({
|
|
80
|
-
* id: unsafeOutputType.scalar("ID:!", {}),
|
|
81
|
-
* name: unsafeOutputType.scalar("String:!", {}),
|
|
82
|
-
* posts: unsafeOutputType.object("Post:![]!", { arguments: { limit: ... } }),
|
|
83
|
-
* }),
|
|
84
|
-
* };
|
|
85
|
-
* ```
|
|
86
|
-
*/
|
|
87
|
-
declare const unsafeOutputType: {
|
|
88
|
-
/** Creates a scalar output type specifier. */
|
|
89
|
-
scalar: <const TName extends string, const TModifier extends TypeModifier, const TArguments extends InputTypeSpecifiers = {}>(type: `${TName}:${TModifier}`, extras: {
|
|
90
|
-
arguments?: TArguments | undefined;
|
|
91
|
-
}) => {
|
|
92
|
-
kind: "scalar";
|
|
93
|
-
name: TName;
|
|
94
|
-
modifier: TModifier;
|
|
95
|
-
arguments: InputTypeSpecifiers extends TArguments ? {} : TArguments;
|
|
96
|
-
};
|
|
97
|
-
/** Creates an enum output type specifier. */
|
|
98
|
-
enum: <const TName extends string, const TModifier extends TypeModifier, const TArguments extends InputTypeSpecifiers = {}>(type: `${TName}:${TModifier}`, extras: {
|
|
99
|
-
arguments?: TArguments | undefined;
|
|
100
|
-
}) => {
|
|
101
|
-
kind: "enum";
|
|
102
|
-
name: TName;
|
|
103
|
-
modifier: TModifier;
|
|
104
|
-
arguments: InputTypeSpecifiers extends TArguments ? {} : TArguments;
|
|
105
|
-
};
|
|
106
|
-
/** Creates an object output type specifier. */
|
|
107
|
-
object: <const TName extends string, const TModifier extends TypeModifier, const TArguments extends InputTypeSpecifiers = {}>(type: `${TName}:${TModifier}`, extras: {
|
|
108
|
-
arguments?: TArguments | undefined;
|
|
109
|
-
}) => {
|
|
110
|
-
kind: "object";
|
|
111
|
-
name: TName;
|
|
112
|
-
modifier: TModifier;
|
|
113
|
-
arguments: InputTypeSpecifiers extends TArguments ? {} : TArguments;
|
|
114
|
-
};
|
|
115
|
-
/** Creates a union output type specifier. */
|
|
116
|
-
union: <const TName extends string, const TModifier extends TypeModifier, const TArguments extends InputTypeSpecifiers = {}>(type: `${TName}:${TModifier}`, extras: {
|
|
117
|
-
arguments?: TArguments | undefined;
|
|
118
|
-
}) => {
|
|
119
|
-
kind: "union";
|
|
120
|
-
name: TName;
|
|
121
|
-
modifier: TModifier;
|
|
122
|
-
arguments: InputTypeSpecifiers extends TArguments ? {} : TArguments;
|
|
123
|
-
};
|
|
124
|
-
/** Creates a __typename output type specifier. */
|
|
125
|
-
typename: <const TName extends string, const TModifier extends TypeModifier, const TArguments extends InputTypeSpecifiers = {}>(type: `${TName}:${TModifier}`, extras: {
|
|
126
|
-
arguments?: TArguments | undefined;
|
|
127
|
-
}) => {
|
|
128
|
-
kind: "typename";
|
|
129
|
-
name: TName;
|
|
130
|
-
modifier: TModifier;
|
|
131
|
-
arguments: InputTypeSpecifiers extends TArguments ? {} : TArguments;
|
|
132
|
-
};
|
|
133
|
-
};
|
|
134
|
-
//#endregion
|
|
135
|
-
export { AbstractFieldSelection, Adapter, AllInputTypeNames, AnyAdapter, AnyAssignableInput, AnyAssignableInputValue, AnyAssigningInput, AnyConstAssignableInput, AnyConstAssignableInputValue, AnyConstDirectiveAttachments, AnyDefaultValue, AnyDirectiveAttachments, AnyDirectiveMethod, AnyDirectiveRef, AnyDirectiveRefBrand, AnyFieldName, AnyFieldSelection, AnyFieldSelectionFactory, AnyFieldSelectionFactoryReturn, AnyFields, AnyFragment, AnyGraphqlSchema, AnyMetadataAdapter, AnyNestedObject, AnyNestedUnion, AnyOperation, AnyOperationOf, AnyTypeName, AnyTypeSpecifier, AnyVarRef, AnyVarRefBrand, ApplyTypeModifier, AssignableInput, AssignableInputByFieldName, AttachmentShape, AttachmentToProperty, AttachmentsTupleToIntersection, ColocateHelper, ColocatedEntries, ColocatedFields, ConstAssignableInput, ConstAssignableInputValue, ConstValue, ConstValues, DeclaredVariables, DecrementDepth, DefaultAdapter, DefaultDepth, DefaultMetadataAdapter, DepthCounter, DirectiveArgValue, DirectiveBuilder, DirectiveLocation, DirectiveMethod, DirectiveRef, DirectiveRefInner, DocumentTransformArgs, DocumentTransformer, EmptyObject, EnumDefinition, ExtractAdapterTypes, ExtractMetadata, ExtractMetadataAdapter, ExtractUnifiedAdapterTypes, FieldArgumentValue, FieldPath, FieldPathSegment, FieldSelectionFactories, FieldSelectionFactory, FieldSelectionFactoryFieldArguments, FieldSelectionFactoryObjectReturn, FieldSelectionFactoryPrimitiveReturn, FieldSelectionFactoryReturn, FieldSelectionFactoryUnionReturn, FieldSelectionTemplateOf, FieldsBuilder, FieldsBuilderTools, Fragment, FragmentBuilderFor, FragmentBuildersAll, FragmentInferMeta, FragmentMetaInfo, FragmentMetadataBuilder, FragmentMetadataBuilderTools, FragmentUsageRecord, GetAssignableType, GetConstAssignableType, GetInputTypeDepth, GetModifiedType, GetSignature, GqlElement, GqlElementAttachment, GqlElementComposer, GqlElementComposerOptions, GqlElementContext, GqlElementDefinitionFactory, Hidden, IfOmittable, InferField, InferFields, InferInputKind, InferInputProfile, InferOutputProfile, InputDefinition, InputDepthOverrides, InputEnumSpecifier, InputFieldRecord, InputInferrableTypeSpecifier, InputInputObjectSpecifier, InputScalarSpecifier, InputTypeKind, InputTypeMethod, InputTypeMethods, InputTypeSpecifier, InputTypeSpecifiers, IsDepthExhausted, MetadataAdapter, MetadataBuilder, MetadataBuilderTools, ModifiedTypeName, NestedObjectFieldsBuilder, NestedObjectFieldsBuilderTools, NestedUnionFieldsBuilder, NestedValue, NestedValueElement, NumberToDepth, ObjectDefinition, ObjectFieldRecord, ObjectTypeProfile, Operation, OperationDocumentTransformArgs, OperationDocumentTransformer, OperationInferMeta, OperationMetadata, OperationRoots, OperationType, OptionalArg, OutputEnumSpecifier, OutputInferrableTypeSpecifier, OutputObjectSpecifier, OutputScalarSpecifier, OutputTypeKind, OutputTypeSpecifier, OutputTypeSpecifiers, OutputTypenameSpecifier, OutputUnionSpecifier, PickTypeSpecifierByFieldName, PrimitiveTypeProfile, ResolveInputProfileFromMeta, ResolveTypeFromMeta, ScalarDefinition, SchemaAwareGetNameAt, SchemaAwareGetValueAt, StandardDirectives, StripFunctions, StripSymbols, SwitchIfOmittable, Tuple, TypeModifier, TypeProfile, UnionDefinition, UnionMemberName, UnionToIntersection, UnionTypeRecord, ValidTypeModifier, VarBuilder, VarBuilderMethods, VarRef, VarRefInner, VarSpecifier, appendToPath, buildArgumentValue, buildConstValueNode, buildDocument, buildOperationTypeNode, buildWithTypeModifier, createColocateHelper, createDefaultAdapter, createDirectiveBuilder, createDirectiveMethod, createFieldFactories, createGqlElementComposer, createGqlFragmentComposers, createOperationComposerFactory, createStandardDirectives, createVarAssignments, createVarBuilder, createVarMethod, createVarMethodFactory, createVarRefFromNestedValue, createVarRefFromVariable, createVarRefs, defaultMetadataAdapter, define, defineOperationRoots, defineScalar, empty, getCurrentFieldPath, hidden, isDirectiveRef, isListType, parseModifiedTypeName, recordFragmentUsage, unsafeInputType, unsafeOutputType, withFieldPath, withFragmentUsageCollection, wrapByKey };
|
|
14
|
+
export { AbstractFieldSelection, Adapter, AllInputTypeNames, AnyAdapter, AnyAssignableInput, AnyAssignableInputValue, AnyAssigningInput, AnyConstAssignableInput, AnyConstAssignableInputValue, AnyConstDirectiveAttachments, AnyDefaultValue, AnyDirectiveAttachments, AnyDirectiveMethod, AnyDirectiveRef, AnyDirectiveRefBrand, AnyFieldName, AnyFieldSelection, AnyFieldSelectionFactory, AnyFieldSelectionFactoryReturn, AnyFields, AnyFragment, AnyGraphqlSchema, AnyMetadataAdapter, AnyNestedObject, AnyNestedUnion, AnyOperation, AnyOperationOf, AnyTypeName, AnyTypeSpecifier, AnyVarRef, AnyVarRefBrand, ApplyTypeModifier, AssignableInput, AssignableInputByFieldName, AttachmentShape, AttachmentToProperty, AttachmentsTupleToIntersection, ColocateHelper, ColocatedEntries, ColocatedFields, ConstAssignableInput, ConstAssignableInputValue, ConstValue, ConstValues, DeclaredVariables, DecrementDepth, DefaultAdapter, DefaultDepth, DefaultMetadataAdapter, DepthCounter, DirectiveArgValue, DirectiveBuilder, DirectiveLocation, DirectiveMethod, DirectiveRef, DirectiveRefInner, DocumentTransformArgs, DocumentTransformer, EmptyObject, EmptyPrebuiltTypeRegistry, EnumDefinition, ExtractAdapterTypes, ExtractMetadata, ExtractMetadataAdapter, ExtractUnifiedAdapterTypes, FieldArgumentValue, FieldPath, FieldPathSegment, FieldSelectionFactories, FieldSelectionFactory, FieldSelectionFactoryFieldArguments, FieldSelectionFactoryObjectReturn, FieldSelectionFactoryPrimitiveReturn, FieldSelectionFactoryReturn, FieldSelectionFactoryUnionReturn, FieldSelectionTemplateOf, FieldsBuilder, FieldsBuilderTools, Fragment, FragmentBuilderFor, FragmentBuildersAll, FragmentInferMeta, FragmentMetaInfo, FragmentMetadataBuilder, FragmentMetadataBuilderTools, FragmentUsageRecord, GenerateInputObjectTypeOptions, GetAssignableType, GetConstAssignableType, GetInputTypeDepth, GetModifiedType, GetSignature, GqlElement, GqlElementAttachment, GqlElementComposer, GqlElementComposerOptions, GqlElementContext, GqlElementDefinitionFactory, HasPrebuiltFragment, HasPrebuiltOperation, Hidden, IfOmittable, InferField, InferFields, InferInputKind, InferInputProfile, InferOutputProfile, InputDefinition, InputDepthOverrides, InputEnumSpecifier, InputFieldRecord, InputInferrableTypeSpecifier, InputInputObjectSpecifier, InputScalarSpecifier, InputTypeKind, InputTypeMethod, InputTypeMethods, InputTypeSpecifier, InputTypeSpecifiers, IsDepthExhausted, MetadataAdapter, MetadataBuilder, MetadataBuilderTools, ModifiedTypeName, NestedObjectFieldsBuilder, NestedObjectFieldsBuilderTools, NestedUnionFieldsBuilder, NestedValue, NestedValueElement, NumberToDepth, ObjectDefinition, ObjectFieldRecord, ObjectTypeProfile, Operation, OperationDocumentTransformArgs, OperationDocumentTransformer, OperationInferMeta, OperationMetadata, OperationRoots, OperationType, OptionalArg, OutputEnumSpecifier, OutputInferrableTypeSpecifier, OutputObjectSpecifier, OutputScalarSpecifier, OutputTypeKind, OutputTypeSpecifier, OutputTypeSpecifiers, OutputTypenameSpecifier, OutputUnionSpecifier, PickTypeSpecifierByFieldName, PrebuiltFragmentInput, PrebuiltFragmentOutput, PrebuiltGqlElementComposer, PrebuiltOperationInput, PrebuiltOperationOutput, PrebuiltTypeRegistry, PrimitiveTypeProfile, ResolveInputProfileFromMeta, ResolvePrebuiltElement, ResolveTypeFromMeta, ScalarDefinition, SchemaAwareGetNameAt, SchemaAwareGetValueAt, StandardDirectives, StripFunctions, StripSymbols, SwitchIfOmittable, Tuple, TypeFormatters, TypeModifier, TypeProfile, UnionDefinition, UnionMemberName, UnionToIntersection, UnionTypeRecord, ValidTypeModifier, VarBuilder, VarBuilderMethods, VarRef, VarRefInner, VarSpecifier, appendToPath, applyTypeModifier, buildArgumentValue, buildConstValueNode, buildDocument, buildOperationTypeNode, buildWithTypeModifier, calculateFieldType, calculateFieldsType, createColocateHelper, createDefaultAdapter, createDirectiveBuilder, createDirectiveMethod, createFieldFactories, createGqlElementComposer, createGqlFragmentComposers, createOperationComposerFactory, createPrebuiltGqlElementComposer, createStandardDirectives, createVarAssignments, createVarBuilder, createVarMethod, createVarMethodFactory, createVarRefFromNestedValue, createVarRefFromVariable, createVarRefs, defaultMetadataAdapter, defineEnum, defineOperationRoots, defineScalar, empty, generateInputObjectType, generateInputType, generateInputTypeFromSpecifiers, getCurrentFieldPath, getEnumType, getScalarInputType, getScalarOutputType, graphqlTypeToTypeScript, hidden, isDirectiveRef, isListType, parseModifiedTypeName, recordFragmentUsage, withFieldPath, withFragmentUsageCollection, wrapByKey };
|
|
136
15
|
//# sourceMappingURL=index.d.cts.map
|
package/dist/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/types/type-foundation/modified-type-name.ts"
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/types/type-foundation/modified-type-name.ts"],"sourcesContent":[],"mappings":";;;;;KAEY,gEAGI,qCACI,iCACC,oBACd,SAAS,cACZ,wBAAwB;;AAEtB,WAAW,wBAAwB,QAAQ,QAAQ,qBAAqB,kCAErE,SAAS,YAAY;iBAEd,+FAA+F,+BAC5F,iBAAiB,gBAAgB,OAAO;;EAd/C,QAAA,WAAgB;CAGZ"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { $ as InputInferrableTypeSpecifier, A as InputDefinition, At as ConstValue, B as UnionMemberName, C as AnyFieldName, Ct as DecrementDepth, D as InferInputKind, Dt as InputDepthOverrides, E as EnumDefinition, Et as GetInputTypeDepth, F as OperationType, Ft as getCurrentFieldPath, G as NestedValueElement, H as AnyVarRef, I as PickTypeSpecifierByFieldName, It as isListType, J as createVarRefFromNestedValue, K as VarRef, L as ResolveInputProfileFromMeta, Lt as withFieldPath, M as ObjectDefinition, Mt as FieldPath, N as ObjectFieldRecord, Nt as FieldPathSegment, O as InferInputProfile, Ot as IsDepthExhausted, P as OperationRoots, Pt as appendToPath, Q as InputEnumSpecifier, R as ScalarDefinition, S as AllInputTypeNames, St as ValidTypeModifier, T as AnyTypeName, Tt as DepthCounter, U as AnyVarRefBrand, V as UnionTypeRecord, W as NestedValue, X as AnyDefaultValue, Y as createVarRefFromVariable, Z as AnyTypeSpecifier, _ as FragmentMetadataBuilder, _t as PrimitiveTypeProfile, a as DefaultMetadataAdapter, at as OutputEnumSpecifier, b as MetadataBuilderTools, bt as GetSignature, c as ExtractAdapterTypes, ct as OutputScalarSpecifier, d as MetadataAdapter, dt as OutputTypeSpecifiers, et as InputInputObjectSpecifier, f as OperationDocumentTransformArgs, ft as OutputTypenameSpecifier, g as ExtractMetadata, gt as ObjectTypeProfile, h as defaultMetadataAdapter, ht as GetModifiedType, i as DefaultAdapter, it as InputTypeSpecifiers, j as InputFieldRecord, jt as ConstValues, k as InferOutputProfile, kt as NumberToDepth, l as ExtractUnifiedAdapterTypes, lt as OutputTypeKind, m as createDefaultAdapter, mt as GetConstAssignableType, n as AnyAdapter, nt as InputTypeKind, o as DocumentTransformArgs, ot as OutputInferrableTypeSpecifier, p as OperationDocumentTransformer, pt as OutputUnionSpecifier, q as VarRefInner, r as AnyMetadataAdapter, rt as InputTypeSpecifier, s as DocumentTransformer, st as OutputObjectSpecifier, t as Adapter, tt as InputScalarSpecifier, u as FragmentMetaInfo, ut as OutputTypeSpecifier, v as FragmentMetadataBuilderTools, vt as TypeProfile, w as AnyGraphqlSchema, wt as DefaultDepth, x as OperationMetadata, xt as TypeModifier, y as MetadataBuilder, yt as ApplyTypeModifier, z as UnionDefinition } from "./index-
|
|
2
|
-
import { $ as
|
|
3
|
-
import { n as defineOperationRoots, r as defineScalar, t as
|
|
1
|
+
import { $ as InputInferrableTypeSpecifier, A as InputDefinition, At as ConstValue, B as UnionMemberName, C as AnyFieldName, Ct as DecrementDepth, D as InferInputKind, Dt as InputDepthOverrides, E as EnumDefinition, Et as GetInputTypeDepth, F as OperationType, Ft as getCurrentFieldPath, G as NestedValueElement, H as AnyVarRef, I as PickTypeSpecifierByFieldName, It as isListType, J as createVarRefFromNestedValue, K as VarRef, L as ResolveInputProfileFromMeta, Lt as withFieldPath, M as ObjectDefinition, Mt as FieldPath, N as ObjectFieldRecord, Nt as FieldPathSegment, O as InferInputProfile, Ot as IsDepthExhausted, P as OperationRoots, Pt as appendToPath, Q as InputEnumSpecifier, R as ScalarDefinition, S as AllInputTypeNames, St as ValidTypeModifier, T as AnyTypeName, Tt as DepthCounter, U as AnyVarRefBrand, V as UnionTypeRecord, W as NestedValue, X as AnyDefaultValue, Y as createVarRefFromVariable, Z as AnyTypeSpecifier, _ as FragmentMetadataBuilder, _t as PrimitiveTypeProfile, a as DefaultMetadataAdapter, at as OutputEnumSpecifier, b as MetadataBuilderTools, bt as GetSignature, c as ExtractAdapterTypes, ct as OutputScalarSpecifier, d as MetadataAdapter, dt as OutputTypeSpecifiers, et as InputInputObjectSpecifier, f as OperationDocumentTransformArgs, ft as OutputTypenameSpecifier, g as ExtractMetadata, gt as ObjectTypeProfile, h as defaultMetadataAdapter, ht as GetModifiedType, i as DefaultAdapter, it as InputTypeSpecifiers, j as InputFieldRecord, jt as ConstValues, k as InferOutputProfile, kt as NumberToDepth, l as ExtractUnifiedAdapterTypes, lt as OutputTypeKind, m as createDefaultAdapter, mt as GetConstAssignableType, n as AnyAdapter, nt as InputTypeKind, o as DocumentTransformArgs, ot as OutputInferrableTypeSpecifier, p as OperationDocumentTransformer, pt as OutputUnionSpecifier, q as VarRefInner, r as AnyMetadataAdapter, rt as InputTypeSpecifier, s as DocumentTransformer, st as OutputObjectSpecifier, t as Adapter, tt as InputScalarSpecifier, u as FragmentMetaInfo, ut as OutputTypeSpecifier, v as FragmentMetadataBuilderTools, vt as TypeProfile, w as AnyGraphqlSchema, wt as DefaultDepth, x as OperationMetadata, xt as TypeModifier, y as MetadataBuilder, yt as ApplyTypeModifier, z as UnionDefinition } from "./index-CnQ5XVCf.js";
|
|
2
|
+
import { $ as AnyOperationOf, $t as AbstractFieldSelection, A as GqlElementComposer, At as AttachmentsTupleToIntersection, B as VarSpecifier, Bt as ColocateHelper, C as PrebuiltFragmentOutput, Cn as DirectiveLocation, Ct as EmptyObject, D as createOperationComposerFactory, Dt as empty, E as PrebuiltTypeRegistry, Et as SwitchIfOmittable, F as ResolveTypeFromMeta, Ft as StandardDirectives, G as recordFragmentUsage, Gt as StripSymbols, H as createVarMethod, Ht as ColocatedFields, I as SchemaAwareGetNameAt, It as createDirectiveBuilder, J as createGqlFragmentComposers, Jt as buildArgumentValue, K as withFragmentUsageCollection, Kt as Tuple, L as SchemaAwareGetValueAt, Lt as createDirectiveMethod, M as createGqlElementComposer, Mt as DirectiveArgValue, N as InputTypeMethod, Nt as DirectiveBuilder, O as ExtractMetadataAdapter, Ot as AttachmentShape, P as InputTypeMethods, Pt as DirectiveMethod, Q as AnyOperation, Qt as buildWithTypeModifier, R as VarBuilder, Rt as createStandardDirectives, S as PrebuiltFragmentInput, Sn as AnyDirectiveRefBrand, St as NestedUnionFieldsBuilder, T as PrebuiltOperationOutput, Tn as DirectiveRefInner, Tt as OptionalArg, U as createVarMethodFactory, Ut as createColocateHelper, V as createVarBuilder, Vt as ColocatedEntries, W as FragmentUsageRecord, Wt as StripFunctions, X as createVarRefs, Xt as buildDocument, Y as createVarAssignments, Yt as buildConstValueNode, Z as createFieldFactories, Zt as buildOperationTypeNode, _ as ResolvePrebuiltElement, _n as AnyConstAssignableInputValue, _t as FieldSelectionFactoryUnionReturn, a as TypeFormatters, an as InferField, at as GqlElement, b as HasPrebuiltFragment, bn as GetAssignableType, bt as NestedObjectFieldsBuilder, c as calculateFieldsType, cn as AnyAssignableInput, ct as GqlElementDefinitionFactory, d as generateInputTypeFromSpecifiers, dn as AssignableInput, dt as FieldSelectionFactories, en as AnyFieldSelection, et as Operation, f as getEnumType, fn as AssignableInputByFieldName, ft as FieldSelectionFactory, g as PrebuiltGqlElementComposer, gn as AnyConstAssignableInput, gt as FieldSelectionFactoryReturn, h as graphqlTypeToTypeScript, hn as AnyConstDirectiveAttachments, ht as FieldSelectionFactoryPrimitiveReturn, i as GenerateInputObjectTypeOptions, in as FieldSelectionTemplateOf, it as FragmentInferMeta, j as GqlElementComposerOptions, jt as AnyDirectiveMethod, k as FragmentBuildersAll, kt as AttachmentToProperty, l as generateInputObjectType, ln as AnyAssignableInputValue, lt as AnyFieldSelectionFactory, m as getScalarOutputType, mn as FieldArgumentValue, mt as FieldSelectionFactoryObjectReturn, n as Hidden, nn as AnyNestedObject, nt as AnyFragment, o as applyTypeModifier, on as InferFields, ot as GqlElementAttachment, p as getScalarInputType, pn as DeclaredVariables, pt as FieldSelectionFactoryFieldArguments, q as FragmentBuilderFor, qt as UnionToIntersection, r as hidden, rn as AnyNestedUnion, rt as Fragment, s as calculateFieldType, sn as AnyDirectiveAttachments, st as GqlElementContext, t as wrapByKey, tn as AnyFields, tt as OperationInferMeta, u as generateInputType, un as AnyAssigningInput, ut as AnyFieldSelectionFactoryReturn, v as createPrebuiltGqlElementComposer, vn as ConstAssignableInput, vt as FieldsBuilder, w as PrebuiltOperationInput, wn as DirectiveRef, wt as IfOmittable, x as HasPrebuiltOperation, xn as AnyDirectiveRef, xt as NestedObjectFieldsBuilderTools, y as EmptyPrebuiltTypeRegistry, yn as ConstAssignableInputValue, yt as FieldsBuilderTools, z as VarBuilderMethods, zt as isDirectiveRef } from "./index-J050RXPw.js";
|
|
3
|
+
import { n as defineOperationRoots, r as defineScalar, t as defineEnum } from "./schema-builder-CJe30s_R.js";
|
|
4
4
|
|
|
5
5
|
//#region packages/core/src/types/type-foundation/modified-type-name.d.ts
|
|
6
6
|
type ModifiedTypeName<TNameCandidate extends [string], TName extends TNameCandidate[0], TModifier extends TypeModifier> = [string] extends TNameCandidate ? `${TName}:${TModifier}` : TNameCandidate extends [TName] ?
|
|
@@ -11,126 +11,5 @@ declare function parseModifiedTypeName<TNameCandidate extends [string], TName ex
|
|
|
11
11
|
modifier: TModifier;
|
|
12
12
|
};
|
|
13
13
|
//#endregion
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Creates input type specifiers for schema definitions.
|
|
17
|
-
*
|
|
18
|
-
* Type format: `"TypeName:modifier"` where modifier is `!`, `?`, `![]!`, etc.
|
|
19
|
-
*
|
|
20
|
-
* @example
|
|
21
|
-
* ```typescript
|
|
22
|
-
* const input = {
|
|
23
|
-
* CreateUserInput: define("CreateUserInput").input({
|
|
24
|
-
* name: unsafeInputType.scalar("String:!", {}),
|
|
25
|
-
* age: unsafeInputType.scalar("Int:?", { default: () => 0 }),
|
|
26
|
-
* }),
|
|
27
|
-
* };
|
|
28
|
-
* ```
|
|
29
|
-
*/
|
|
30
|
-
declare const unsafeInputType: {
|
|
31
|
-
/** Creates a scalar input type specifier. */
|
|
32
|
-
scalar: <const TName extends string, const TModifier extends TypeModifier, const TDefaultFactory extends (() => ConstValue) | null = null, const TDirectives extends AnyConstDirectiveAttachments = {}>(type: `${TName}:${TModifier}`, extras: {
|
|
33
|
-
default?: TDefaultFactory | undefined;
|
|
34
|
-
directives?: TDirectives | undefined;
|
|
35
|
-
}) => {
|
|
36
|
-
kind: "scalar";
|
|
37
|
-
name: TName;
|
|
38
|
-
modifier: TModifier;
|
|
39
|
-
defaultValue: TDefaultFactory extends null ? null : {
|
|
40
|
-
default: ReturnType<NonNullable<TDefaultFactory>>;
|
|
41
|
-
};
|
|
42
|
-
directives: TDirectives;
|
|
43
|
-
};
|
|
44
|
-
/** Creates an enum input type specifier. */
|
|
45
|
-
enum: <const TName extends string, const TModifier extends TypeModifier, const TDefaultFactory extends (() => ConstValue) | null = null, const TDirectives extends AnyConstDirectiveAttachments = {}>(type: `${TName}:${TModifier}`, extras: {
|
|
46
|
-
default?: TDefaultFactory | undefined;
|
|
47
|
-
directives?: TDirectives | undefined;
|
|
48
|
-
}) => {
|
|
49
|
-
kind: "enum";
|
|
50
|
-
name: TName;
|
|
51
|
-
modifier: TModifier;
|
|
52
|
-
defaultValue: TDefaultFactory extends null ? null : {
|
|
53
|
-
default: ReturnType<NonNullable<TDefaultFactory>>;
|
|
54
|
-
};
|
|
55
|
-
directives: TDirectives;
|
|
56
|
-
};
|
|
57
|
-
/** Creates an input object type specifier. */
|
|
58
|
-
input: <const TName extends string, const TModifier extends TypeModifier, const TDefaultFactory extends (() => ConstValue) | null = null, const TDirectives extends AnyConstDirectiveAttachments = {}>(type: `${TName}:${TModifier}`, extras: {
|
|
59
|
-
default?: TDefaultFactory | undefined;
|
|
60
|
-
directives?: TDirectives | undefined;
|
|
61
|
-
}) => {
|
|
62
|
-
kind: "input";
|
|
63
|
-
name: TName;
|
|
64
|
-
modifier: TModifier;
|
|
65
|
-
defaultValue: TDefaultFactory extends null ? null : {
|
|
66
|
-
default: ReturnType<NonNullable<TDefaultFactory>>;
|
|
67
|
-
};
|
|
68
|
-
directives: TDirectives;
|
|
69
|
-
};
|
|
70
|
-
};
|
|
71
|
-
/**
|
|
72
|
-
* Creates output type specifiers for schema definitions.
|
|
73
|
-
*
|
|
74
|
-
* Type format: `"TypeName:modifier"` where modifier is `!`, `?`, `![]!`, etc.
|
|
75
|
-
*
|
|
76
|
-
* @example
|
|
77
|
-
* ```typescript
|
|
78
|
-
* const object = {
|
|
79
|
-
* User: define("User").object({
|
|
80
|
-
* id: unsafeOutputType.scalar("ID:!", {}),
|
|
81
|
-
* name: unsafeOutputType.scalar("String:!", {}),
|
|
82
|
-
* posts: unsafeOutputType.object("Post:![]!", { arguments: { limit: ... } }),
|
|
83
|
-
* }),
|
|
84
|
-
* };
|
|
85
|
-
* ```
|
|
86
|
-
*/
|
|
87
|
-
declare const unsafeOutputType: {
|
|
88
|
-
/** Creates a scalar output type specifier. */
|
|
89
|
-
scalar: <const TName extends string, const TModifier extends TypeModifier, const TArguments extends InputTypeSpecifiers = {}>(type: `${TName}:${TModifier}`, extras: {
|
|
90
|
-
arguments?: TArguments | undefined;
|
|
91
|
-
}) => {
|
|
92
|
-
kind: "scalar";
|
|
93
|
-
name: TName;
|
|
94
|
-
modifier: TModifier;
|
|
95
|
-
arguments: InputTypeSpecifiers extends TArguments ? {} : TArguments;
|
|
96
|
-
};
|
|
97
|
-
/** Creates an enum output type specifier. */
|
|
98
|
-
enum: <const TName extends string, const TModifier extends TypeModifier, const TArguments extends InputTypeSpecifiers = {}>(type: `${TName}:${TModifier}`, extras: {
|
|
99
|
-
arguments?: TArguments | undefined;
|
|
100
|
-
}) => {
|
|
101
|
-
kind: "enum";
|
|
102
|
-
name: TName;
|
|
103
|
-
modifier: TModifier;
|
|
104
|
-
arguments: InputTypeSpecifiers extends TArguments ? {} : TArguments;
|
|
105
|
-
};
|
|
106
|
-
/** Creates an object output type specifier. */
|
|
107
|
-
object: <const TName extends string, const TModifier extends TypeModifier, const TArguments extends InputTypeSpecifiers = {}>(type: `${TName}:${TModifier}`, extras: {
|
|
108
|
-
arguments?: TArguments | undefined;
|
|
109
|
-
}) => {
|
|
110
|
-
kind: "object";
|
|
111
|
-
name: TName;
|
|
112
|
-
modifier: TModifier;
|
|
113
|
-
arguments: InputTypeSpecifiers extends TArguments ? {} : TArguments;
|
|
114
|
-
};
|
|
115
|
-
/** Creates a union output type specifier. */
|
|
116
|
-
union: <const TName extends string, const TModifier extends TypeModifier, const TArguments extends InputTypeSpecifiers = {}>(type: `${TName}:${TModifier}`, extras: {
|
|
117
|
-
arguments?: TArguments | undefined;
|
|
118
|
-
}) => {
|
|
119
|
-
kind: "union";
|
|
120
|
-
name: TName;
|
|
121
|
-
modifier: TModifier;
|
|
122
|
-
arguments: InputTypeSpecifiers extends TArguments ? {} : TArguments;
|
|
123
|
-
};
|
|
124
|
-
/** Creates a __typename output type specifier. */
|
|
125
|
-
typename: <const TName extends string, const TModifier extends TypeModifier, const TArguments extends InputTypeSpecifiers = {}>(type: `${TName}:${TModifier}`, extras: {
|
|
126
|
-
arguments?: TArguments | undefined;
|
|
127
|
-
}) => {
|
|
128
|
-
kind: "typename";
|
|
129
|
-
name: TName;
|
|
130
|
-
modifier: TModifier;
|
|
131
|
-
arguments: InputTypeSpecifiers extends TArguments ? {} : TArguments;
|
|
132
|
-
};
|
|
133
|
-
};
|
|
134
|
-
//#endregion
|
|
135
|
-
export { AbstractFieldSelection, Adapter, AllInputTypeNames, AnyAdapter, AnyAssignableInput, AnyAssignableInputValue, AnyAssigningInput, AnyConstAssignableInput, AnyConstAssignableInputValue, AnyConstDirectiveAttachments, AnyDefaultValue, AnyDirectiveAttachments, AnyDirectiveMethod, AnyDirectiveRef, AnyDirectiveRefBrand, AnyFieldName, AnyFieldSelection, AnyFieldSelectionFactory, AnyFieldSelectionFactoryReturn, AnyFields, AnyFragment, AnyGraphqlSchema, AnyMetadataAdapter, AnyNestedObject, AnyNestedUnion, AnyOperation, AnyOperationOf, AnyTypeName, AnyTypeSpecifier, AnyVarRef, AnyVarRefBrand, ApplyTypeModifier, AssignableInput, AssignableInputByFieldName, AttachmentShape, AttachmentToProperty, AttachmentsTupleToIntersection, ColocateHelper, ColocatedEntries, ColocatedFields, ConstAssignableInput, ConstAssignableInputValue, ConstValue, ConstValues, DeclaredVariables, DecrementDepth, DefaultAdapter, DefaultDepth, DefaultMetadataAdapter, DepthCounter, DirectiveArgValue, DirectiveBuilder, DirectiveLocation, DirectiveMethod, DirectiveRef, DirectiveRefInner, DocumentTransformArgs, DocumentTransformer, EmptyObject, EnumDefinition, ExtractAdapterTypes, ExtractMetadata, ExtractMetadataAdapter, ExtractUnifiedAdapterTypes, FieldArgumentValue, FieldPath, FieldPathSegment, FieldSelectionFactories, FieldSelectionFactory, FieldSelectionFactoryFieldArguments, FieldSelectionFactoryObjectReturn, FieldSelectionFactoryPrimitiveReturn, FieldSelectionFactoryReturn, FieldSelectionFactoryUnionReturn, FieldSelectionTemplateOf, FieldsBuilder, FieldsBuilderTools, Fragment, FragmentBuilderFor, FragmentBuildersAll, FragmentInferMeta, FragmentMetaInfo, FragmentMetadataBuilder, FragmentMetadataBuilderTools, FragmentUsageRecord, GetAssignableType, GetConstAssignableType, GetInputTypeDepth, GetModifiedType, GetSignature, GqlElement, GqlElementAttachment, GqlElementComposer, GqlElementComposerOptions, GqlElementContext, GqlElementDefinitionFactory, Hidden, IfOmittable, InferField, InferFields, InferInputKind, InferInputProfile, InferOutputProfile, InputDefinition, InputDepthOverrides, InputEnumSpecifier, InputFieldRecord, InputInferrableTypeSpecifier, InputInputObjectSpecifier, InputScalarSpecifier, InputTypeKind, InputTypeMethod, InputTypeMethods, InputTypeSpecifier, InputTypeSpecifiers, IsDepthExhausted, MetadataAdapter, MetadataBuilder, MetadataBuilderTools, ModifiedTypeName, NestedObjectFieldsBuilder, NestedObjectFieldsBuilderTools, NestedUnionFieldsBuilder, NestedValue, NestedValueElement, NumberToDepth, ObjectDefinition, ObjectFieldRecord, ObjectTypeProfile, Operation, OperationDocumentTransformArgs, OperationDocumentTransformer, OperationInferMeta, OperationMetadata, OperationRoots, OperationType, OptionalArg, OutputEnumSpecifier, OutputInferrableTypeSpecifier, OutputObjectSpecifier, OutputScalarSpecifier, OutputTypeKind, OutputTypeSpecifier, OutputTypeSpecifiers, OutputTypenameSpecifier, OutputUnionSpecifier, PickTypeSpecifierByFieldName, PrimitiveTypeProfile, ResolveInputProfileFromMeta, ResolveTypeFromMeta, ScalarDefinition, SchemaAwareGetNameAt, SchemaAwareGetValueAt, StandardDirectives, StripFunctions, StripSymbols, SwitchIfOmittable, Tuple, TypeModifier, TypeProfile, UnionDefinition, UnionMemberName, UnionToIntersection, UnionTypeRecord, ValidTypeModifier, VarBuilder, VarBuilderMethods, VarRef, VarRefInner, VarSpecifier, appendToPath, buildArgumentValue, buildConstValueNode, buildDocument, buildOperationTypeNode, buildWithTypeModifier, createColocateHelper, createDefaultAdapter, createDirectiveBuilder, createDirectiveMethod, createFieldFactories, createGqlElementComposer, createGqlFragmentComposers, createOperationComposerFactory, createStandardDirectives, createVarAssignments, createVarBuilder, createVarMethod, createVarMethodFactory, createVarRefFromNestedValue, createVarRefFromVariable, createVarRefs, defaultMetadataAdapter, define, defineOperationRoots, defineScalar, empty, getCurrentFieldPath, hidden, isDirectiveRef, isListType, parseModifiedTypeName, recordFragmentUsage, unsafeInputType, unsafeOutputType, withFieldPath, withFragmentUsageCollection, wrapByKey };
|
|
14
|
+
export { AbstractFieldSelection, Adapter, AllInputTypeNames, AnyAdapter, AnyAssignableInput, AnyAssignableInputValue, AnyAssigningInput, AnyConstAssignableInput, AnyConstAssignableInputValue, AnyConstDirectiveAttachments, AnyDefaultValue, AnyDirectiveAttachments, AnyDirectiveMethod, AnyDirectiveRef, AnyDirectiveRefBrand, AnyFieldName, AnyFieldSelection, AnyFieldSelectionFactory, AnyFieldSelectionFactoryReturn, AnyFields, AnyFragment, AnyGraphqlSchema, AnyMetadataAdapter, AnyNestedObject, AnyNestedUnion, AnyOperation, AnyOperationOf, AnyTypeName, AnyTypeSpecifier, AnyVarRef, AnyVarRefBrand, ApplyTypeModifier, AssignableInput, AssignableInputByFieldName, AttachmentShape, AttachmentToProperty, AttachmentsTupleToIntersection, ColocateHelper, ColocatedEntries, ColocatedFields, ConstAssignableInput, ConstAssignableInputValue, ConstValue, ConstValues, DeclaredVariables, DecrementDepth, DefaultAdapter, DefaultDepth, DefaultMetadataAdapter, DepthCounter, DirectiveArgValue, DirectiveBuilder, DirectiveLocation, DirectiveMethod, DirectiveRef, DirectiveRefInner, DocumentTransformArgs, DocumentTransformer, EmptyObject, EmptyPrebuiltTypeRegistry, EnumDefinition, ExtractAdapterTypes, ExtractMetadata, ExtractMetadataAdapter, ExtractUnifiedAdapterTypes, FieldArgumentValue, FieldPath, FieldPathSegment, FieldSelectionFactories, FieldSelectionFactory, FieldSelectionFactoryFieldArguments, FieldSelectionFactoryObjectReturn, FieldSelectionFactoryPrimitiveReturn, FieldSelectionFactoryReturn, FieldSelectionFactoryUnionReturn, FieldSelectionTemplateOf, FieldsBuilder, FieldsBuilderTools, Fragment, FragmentBuilderFor, FragmentBuildersAll, FragmentInferMeta, FragmentMetaInfo, FragmentMetadataBuilder, FragmentMetadataBuilderTools, FragmentUsageRecord, GenerateInputObjectTypeOptions, GetAssignableType, GetConstAssignableType, GetInputTypeDepth, GetModifiedType, GetSignature, GqlElement, GqlElementAttachment, GqlElementComposer, GqlElementComposerOptions, GqlElementContext, GqlElementDefinitionFactory, HasPrebuiltFragment, HasPrebuiltOperation, Hidden, IfOmittable, InferField, InferFields, InferInputKind, InferInputProfile, InferOutputProfile, InputDefinition, InputDepthOverrides, InputEnumSpecifier, InputFieldRecord, InputInferrableTypeSpecifier, InputInputObjectSpecifier, InputScalarSpecifier, InputTypeKind, InputTypeMethod, InputTypeMethods, InputTypeSpecifier, InputTypeSpecifiers, IsDepthExhausted, MetadataAdapter, MetadataBuilder, MetadataBuilderTools, ModifiedTypeName, NestedObjectFieldsBuilder, NestedObjectFieldsBuilderTools, NestedUnionFieldsBuilder, NestedValue, NestedValueElement, NumberToDepth, ObjectDefinition, ObjectFieldRecord, ObjectTypeProfile, Operation, OperationDocumentTransformArgs, OperationDocumentTransformer, OperationInferMeta, OperationMetadata, OperationRoots, OperationType, OptionalArg, OutputEnumSpecifier, OutputInferrableTypeSpecifier, OutputObjectSpecifier, OutputScalarSpecifier, OutputTypeKind, OutputTypeSpecifier, OutputTypeSpecifiers, OutputTypenameSpecifier, OutputUnionSpecifier, PickTypeSpecifierByFieldName, PrebuiltFragmentInput, PrebuiltFragmentOutput, PrebuiltGqlElementComposer, PrebuiltOperationInput, PrebuiltOperationOutput, PrebuiltTypeRegistry, PrimitiveTypeProfile, ResolveInputProfileFromMeta, ResolvePrebuiltElement, ResolveTypeFromMeta, ScalarDefinition, SchemaAwareGetNameAt, SchemaAwareGetValueAt, StandardDirectives, StripFunctions, StripSymbols, SwitchIfOmittable, Tuple, TypeFormatters, TypeModifier, TypeProfile, UnionDefinition, UnionMemberName, UnionToIntersection, UnionTypeRecord, ValidTypeModifier, VarBuilder, VarBuilderMethods, VarRef, VarRefInner, VarSpecifier, appendToPath, applyTypeModifier, buildArgumentValue, buildConstValueNode, buildDocument, buildOperationTypeNode, buildWithTypeModifier, calculateFieldType, calculateFieldsType, createColocateHelper, createDefaultAdapter, createDirectiveBuilder, createDirectiveMethod, createFieldFactories, createGqlElementComposer, createGqlFragmentComposers, createOperationComposerFactory, createPrebuiltGqlElementComposer, createStandardDirectives, createVarAssignments, createVarBuilder, createVarMethod, createVarMethodFactory, createVarRefFromNestedValue, createVarRefFromVariable, createVarRefs, defaultMetadataAdapter, defineEnum, defineOperationRoots, defineScalar, empty, generateInputObjectType, generateInputType, generateInputTypeFromSpecifiers, getCurrentFieldPath, getEnumType, getScalarInputType, getScalarOutputType, graphqlTypeToTypeScript, hidden, isDirectiveRef, isListType, parseModifiedTypeName, recordFragmentUsage, withFieldPath, withFragmentUsageCollection, wrapByKey };
|
|
136
15
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/types/type-foundation/modified-type-name.ts"
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/types/type-foundation/modified-type-name.ts"],"sourcesContent":[],"mappings":";;;;;KAEY,gEAGI,qCACI,iCACC,oBACd,SAAS,cACZ,wBAAwB;;AAEtB,WAAW,wBAAwB,QAAQ,QAAQ,qBAAqB,kCAErE,SAAS,YAAY;iBAEd,+FAA+F,+BAC5F,iBAAiB,gBAAgB,OAAO;;EAd/C,QAAA,WAAgB;CAGZ"}
|