@theconcurrent/simplified-entity
Advanced tools
Comparing version 0.0.24 to 0.0.25
@@ -29,3 +29,3 @@ import type { DocumentNode } from 'graphql'; | ||
fields: Array<SimplifiedField>; | ||
possibleTypes: Array<SimplifiedEntityTypeRef>; | ||
possibleTypes: Array<SimplifiedPossibleType>; | ||
} & TypeNameAndDescriptionAndDirective; | ||
@@ -61,9 +61,7 @@ export type UnionSimplifiedEntityType = { | ||
}; | ||
type SimplifiedPossibleType = { | ||
export type SimplifiedPossibleType = { | ||
kind: string; | ||
name: string; | ||
typeName: string; | ||
}; | ||
type SimplifiedEntityTypeRef = { | ||
kind: string; | ||
ofType?: SimplifiedEntityTypeRef; | ||
}; | ||
export type SimplifiedEntityType = ScalarSimplifiedEntityType | ObjectSimplifiedEntityType | InterfaceSimplifiedEntityType | UnionSimplifiedEntityType | EnumSimplifiedEntityType | InputObjectSimplifiedEntityType; | ||
@@ -74,35 +72,41 @@ type RawQuery = { | ||
}; | ||
type Field = { | ||
export type VariableDefinitionObject = { | ||
name: string; | ||
label: string; | ||
isList: boolean; | ||
isNonNull: boolean; | ||
variable: ScalarSimplifiedEntityType | InputObjectSimplifiedEntityType | EnumSimplifiedEntityType; | ||
}; | ||
type FieldCommon = { | ||
name: string; | ||
typeName: string; | ||
isScalar: boolean; | ||
isEnum: boolean; | ||
isSortable: boolean; | ||
isList: boolean; | ||
}; | ||
type ResourceActionField = FieldCommon & { | ||
label: string; | ||
possibleTypes: Array<{ | ||
name: string; | ||
typeName: string; | ||
label: string; | ||
}> | undefined; | ||
collection: { | ||
totalPath: string; | ||
}; | ||
isList: boolean; | ||
isSortable: boolean; | ||
representativeField?: FieldObject | undefined; | ||
}; | ||
export type VariableDefinitionObject = { | ||
name: string; | ||
isList: boolean; | ||
isNonNull: boolean; | ||
variable: ScalarSimplifiedEntityType | InputObjectSimplifiedEntityType | EnumSimplifiedEntityType; | ||
}; | ||
export type FieldObject = { | ||
name: string; | ||
typeName: string; | ||
export type FieldObject = FieldCommon & { | ||
label: string | undefined; | ||
possibleTypes: Array<{ | ||
name: string; | ||
typeName: string; | ||
}> | undefined; | ||
collection: any; | ||
description: string | undefined; | ||
kind: 'Scalar' | 'Object' | 'Enum'; | ||
isList: boolean; | ||
isNonNull: boolean; | ||
isScalar: boolean; | ||
enumValues: any; | ||
label: string | undefined; | ||
isEnum: boolean; | ||
fields?: FieldObject[]; | ||
schemaDirectives?: DirectiveInfo[]; | ||
collection: any; | ||
isUnion: boolean; | ||
@@ -121,3 +125,3 @@ }; | ||
}; | ||
fields: Array<Field>; | ||
fields: Array<ResourceActionField>; | ||
variableDefinitionObjects: VariableDefinitionObject[]; | ||
@@ -131,3 +135,3 @@ structure: FieldObject; | ||
}; | ||
fields: Array<Field>; | ||
fields: Array<ResourceActionField>; | ||
variableDefinitionObjects: VariableDefinitionObject[]; | ||
@@ -142,3 +146,3 @@ structure: FieldObject; | ||
}; | ||
fields: Array<Field>; | ||
fields: Array<ResourceActionField>; | ||
variablesStructure?: VariableDefinitionObject[]; | ||
@@ -154,3 +158,3 @@ structure: FieldObject; | ||
}; | ||
fields: Array<Field>; | ||
fields: Array<ResourceActionField>; | ||
variablesStructure?: VariableDefinitionObject[]; | ||
@@ -157,0 +161,0 @@ structure: FieldObject; |
import type { GraphQLSchema } from 'graphql'; | ||
import type { DirectiveInfo, EnumSimplifiedEntityType, InputObjectSimplifiedEntityType, InterfaceSimplifiedEntityType, ObjectSimplifiedEntityType, ScalarSimplifiedEntityType, SimplifiedDirectiveType, SimplifiedEntityType, SimplifiedField, TypeNameAndDescriptionAndDirective, UnionSimplifiedEntityType } from './shared/base_type'; | ||
import type { DirectiveInfo, EnumSimplifiedEntityType, InputObjectSimplifiedEntityType, InterfaceSimplifiedEntityType, ObjectSimplifiedEntityType, ScalarSimplifiedEntityType, SimplifiedDirectiveType, SimplifiedEntityType, SimplifiedField, SimplifiedPossibleType, TypeNameAndDescriptionAndDirective, UnionSimplifiedEntityType } from './shared/base_type'; | ||
export type SDL = string; | ||
@@ -9,3 +9,3 @@ export type InitialType = { | ||
}; | ||
export type { DirectiveInfo, EnumSimplifiedEntityType, InputObjectSimplifiedEntityType, InterfaceSimplifiedEntityType, ObjectSimplifiedEntityType, ScalarSimplifiedEntityType, SimplifiedDirectiveType, SimplifiedEntityType, SimplifiedField, TypeNameAndDescriptionAndDirective, UnionSimplifiedEntityType, }; | ||
export type { DirectiveInfo, EnumSimplifiedEntityType, InputObjectSimplifiedEntityType, InterfaceSimplifiedEntityType, ObjectSimplifiedEntityType, ScalarSimplifiedEntityType, SimplifiedDirectiveType, SimplifiedEntityType, SimplifiedField, SimplifiedPossibleType, TypeNameAndDescriptionAndDirective, UnionSimplifiedEntityType, }; | ||
//# sourceMappingURL=types.d.ts.map |
{ | ||
"name": "@theconcurrent/simplified-entity", | ||
"version": "0.0.24", | ||
"version": "0.0.25", | ||
"main": "./dist/index.umd.js", | ||
@@ -32,3 +32,3 @@ "module": "./dist/index.es.js", | ||
}, | ||
"gitHead": "b168c3ab44d2a756eb743804d13192ecd1e869d1" | ||
"gitHead": "ee18af36373b818c8918ddb36c5bcf81cb61df16" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
116958
774