Socket
Socket
Sign inDemoInstall

simple-graphql

Package Overview
Dependencies
24
Maintainers
1
Versions
300
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.1.0 to 4.1.1

4

dist/build/applyPluginsToModels.d.ts

@@ -1,5 +0,5 @@

import { PluginConfig, PluginOptionsMap, SGModelCtrl } from '../index';
declare const _default: (models: Array<SGModelCtrl>, plugins: Array<PluginConfig>, defaultOptions: PluginOptionsMap) => {
import { SGPluginConfig, SGPluginOptionsMap, SGModelCtrl } from '../index';
declare const _default: (models: Array<SGModelCtrl>, plugins: Array<SGPluginConfig>, defaultOptions: SGPluginOptionsMap) => {
[key: string]: SGModelCtrl<import("..").SGModel<any>>;
};
export default _default;
import { SGSchema } from '../definition/SGSchema';
import { PluginConfig, PluginOptionsMap } from '../index';
declare const _default: (schemas: Array<SGSchema>, plugins: Array<PluginConfig>, defaultOptions: PluginOptionsMap) => {
import { SGPluginConfig, SGPluginOptionsMap } from '../index';
declare const _default: (schemas: Array<SGSchema>, plugins: Array<SGPluginConfig>, defaultOptions: SGPluginOptionsMap) => {
[key: string]: SGSchema;
};
export default _default;
import { SGSchema } from '../definition/SGSchema';
import { DataTypeConfig, InterfaceContext, ResolverContext, TypeConfig, TypeContext } from '../index';
declare type Context = ResolverContext & InterfaceContext;
export default function (types: Array<TypeConfig>, dataTypes: Array<DataTypeConfig>, schemas: Array<SGSchema>, context: Context): TypeContext;
import { SGDataTypeConfig, SGInterfaceContext, SGResolverContext, SGTypeConfig, SGTypeContext } from '../index';
declare type Context = SGResolverContext & SGInterfaceContext;
export default function (types: Array<SGTypeConfig>, dataTypes: Array<SGDataTypeConfig>, schemas: Array<SGSchema>, context: Context): SGTypeContext;
export {};

@@ -1,3 +0,3 @@

import { InterfaceContext, SGContext } from '../index';
declare const _default: (context: SGContext) => InterfaceContext;
import { SGInterfaceContext, SGContext } from '../index';
declare const _default: (context: SGContext) => SGInterfaceContext;
export default _default;

@@ -1,3 +0,3 @@

import { PluginConfig } from '../index';
declare const _default: (plugins: Array<PluginConfig>) => Array<PluginConfig>;
import { SGPluginConfig } from '../index';
declare const _default: (plugins: Array<SGPluginConfig>) => Array<SGPluginConfig>;
export default _default;

@@ -1,3 +0,3 @@

import { HookConfig, ResolverContext, SGContext } from '../index';
declare const _default: (hooks: Array<HookConfig>, sgContext: SGContext) => ResolverContext;
import { SGHookConfig, SGResolverContext, SGContext } from '../index';
declare const _default: (hooks: Array<SGHookConfig>, sgContext: SGContext) => SGResolverContext;
export default _default;
import * as graphql from 'graphql';
import { MutationConfigMap, ResolverContext, TypeContext } from '../index';
declare const _default: (mutationConfigMaps: Array<MutationConfigMap>, payloadFields: {
import { SGMutationConfigMap, SGResolverContext, SGTypeContext } from '../index';
declare const _default: (mutationConfigMaps: Array<SGMutationConfigMap>, payloadFields: {
[key: string]: graphql.GraphQLFieldConfig<any, any, {
[argName: string]: any;
}>;
}, context: ResolverContext & TypeContext) => {
}, context: SGResolverContext & SGTypeContext) => {
[key: string]: graphql.GraphQLFieldConfig<any, any, {

@@ -9,0 +9,0 @@ [argName: string]: any;

import * as graphql from 'graphql';
import { InterfaceContext, QueryConfigMap, ResolverContext, TypeContext } from '../index';
declare const _default: (queryConfigMaps: Array<QueryConfigMap>, context: ResolverContext & TypeContext & InterfaceContext) => {
import { SGInterfaceContext, SGQueryConfigMap, SGResolverContext, SGTypeContext } from '../index';
declare const _default: (queryConfigMaps: Array<SGQueryConfigMap>, context: SGResolverContext & SGTypeContext & SGInterfaceContext) => {
[key: string]: graphql.GraphQLFieldConfig<any, any, {

@@ -5,0 +5,0 @@ [argName: string]: any;

@@ -1,3 +0,3 @@

import { DataTypeConfig } from '../../index';
declare const _default: DataTypeConfig[];
import { SGDataTypeConfig } from '../../index';
declare const _default: SGDataTypeConfig[];
export default _default;
import { Sequelize } from 'sequelize';
import { GraphQLSchema } from 'graphql';
import { BuildConfig, BuildOptions, SGContext } from '../index';
export declare function buildGraphQLContext(sequelize: Sequelize, config: BuildConfig, buildOptions: BuildOptions): {
import { SGBuildConfig, SGBuildOptions, SGContext } from '../index';
export declare function buildGraphQLContext(sequelize: Sequelize, config: SGBuildConfig, buildOptions: SGBuildOptions): {
graphQLSchema: GraphQLSchema;
sgContext: SGContext;
};

@@ -1,3 +0,3 @@

import { TypeConfig } from '../../index';
declare const _default: TypeConfig;
import { SGTypeConfig } from '../../index';
declare const _default: SGTypeConfig;
export default _default;

@@ -1,3 +0,3 @@

import { TypeConfig } from '../../index';
declare const _default: TypeConfig;
import { SGTypeConfig } from '../../index';
declare const _default: SGTypeConfig;
export default _default;

@@ -1,3 +0,3 @@

import { TypeConfig } from '../../index';
declare const _default: TypeConfig;
import { SGTypeConfig } from '../../index';
declare const _default: SGTypeConfig;
export default _default;

@@ -1,3 +0,3 @@

import { TypeConfig } from '../../index';
declare const _default: TypeConfig[];
import { SGTypeConfig } from '../../index';
declare const _default: SGTypeConfig[];
export default _default;

@@ -1,3 +0,3 @@

import { TypeConfig } from '../../index';
declare const _default: TypeConfig;
import { SGTypeConfig } from '../../index';
declare const _default: SGTypeConfig;
export default _default;

@@ -1,3 +0,3 @@

import { TypeConfig } from '../../index';
declare const _default: TypeConfig;
import { SGTypeConfig } from '../../index';
declare const _default: SGTypeConfig;
export default _default;

@@ -1,3 +0,3 @@

import { TypeConfig } from '../../index';
declare const _default: TypeConfig;
import { SGTypeConfig } from '../../index';
declare const _default: SGTypeConfig;
export default _default;

@@ -1,3 +0,3 @@

import { TypeConfig } from '../../index';
declare const _default: TypeConfig;
import { SGTypeConfig } from '../../index';
declare const _default: SGTypeConfig;
export default _default;
import Sequelize, { BelongsToManyOptions, BelongsToOptions, HasManyOptions, HasOneOptions, OrderItem } from 'sequelize';
import { ColumnFieldConfigMap, HookOptionsMap, InputFieldConfigMap, LinkedFieldConfigMap, MutationConfigMap, QueryConfigMap, SchemaOptions } from '../index';
import { SGColumnFieldConfigMap, SGHookOptionsMap, SGInputFieldConfigMap, SGLinkedFieldConfigMap, SGMutationConfigMap, SGQueryConfigMap, SGSchemaOptions } from '../index';
/**

@@ -8,3 +8,3 @@ * @public

[key: string]: {
hookOptions?: HookOptionsMap;
hookOptions?: SGHookOptionsMap;
hidden?: boolean;

@@ -29,3 +29,3 @@ target: string;

[key: string]: {
hookOptions?: HookOptionsMap;
hookOptions?: SGHookOptionsMap;
target: string;

@@ -35,3 +35,3 @@ description?: string;

hidden?: boolean;
conditionFields?: InputFieldConfigMap;
conditionFields?: SGInputFieldConfigMap;
order?: OrderItem[];

@@ -65,7 +65,7 @@ outputStructure?: 'Connection' | 'Array';

config: {
fields: ColumnFieldConfigMap;
links: LinkedFieldConfigMap;
fields: SGColumnFieldConfigMap;
links: SGLinkedFieldConfigMap;
associations: AssociationConfig;
queries: QueryConfigMap;
mutations: MutationConfigMap;
queries: SGQueryConfigMap;
mutations: SGMutationConfigMap;
methods: {

@@ -78,4 +78,4 @@ [id: string]: any;

};
options: SchemaOptions;
constructor(name: string, options?: SchemaOptions);
options: SGSchemaOptions;
constructor(name: string, options?: SGSchemaOptions);
/**

@@ -85,15 +85,15 @@ * Add the model base fields, and each field has a corresponding database column.

*/
fields(fields: ColumnFieldConfigMap): SGSchema;
fields(fields: SGColumnFieldConfigMap): SGSchema;
/**
* Add the model link fields, and each link generate a GraphQL field but no corresponding database column.
*/
links(links: LinkedFieldConfigMap): SGSchema;
links(links: SGLinkedFieldConfigMap): SGSchema;
/**
* Add the GraphQL query methods.
*/
queries(queries: QueryConfigMap): SGSchema;
queries(queries: SGQueryConfigMap): SGSchema;
/**
* Add the GraphQL mutataion methods.
*/
mutations(mutations: MutationConfigMap): SGSchema;
mutations(mutations: SGMutationConfigMap): SGSchema;
/**

@@ -100,0 +100,0 @@ * Add instance method to current Schema.

@@ -53,56 +53,56 @@ import { GraphQLFieldResolver, GraphQLInputType, GraphQLInterfaceType, GraphQLOutputType, GraphQLResolveInfo } from 'graphql';

services: SGServiceMap;
} & TypeContext;
export declare type ResolverContext = {
hookFieldResolve: (path: string, config: LinkedFieldConfig) => GraphQLFieldResolver<any, any>;
hookQueryResolve: (path: string, config: QueryConfig) => GraphQLFieldResolver<any, any>;
hookMutationResolve: (path: string, config: MutationConfig) => GraphQLFieldResolver<any, any>;
} & SGTypeContext;
export declare type SGResolverContext = {
hookFieldResolve: (path: string, config: SGLinkedFieldConfig) => GraphQLFieldResolver<any, any>;
hookQueryResolve: (path: string, config: SGQueryConfig) => GraphQLFieldResolver<any, any>;
hookMutationResolve: (path: string, config: SGMutationConfig) => GraphQLFieldResolver<any, any>;
};
export declare type InterfaceContext = {
export declare type SGInterfaceContext = {
interface: (name: string) => GraphQLInterfaceType;
registerInterface: (name: string, interfaceType: GraphQLInterfaceType) => void;
};
export declare type TypeContext = {
typeConfig: (name: string) => TypeConfig | null;
export declare type SGTypeContext = {
typeConfig: (name: string) => SGTypeConfig | null;
};
export interface ResolveContext {
export interface SGResolveContext {
}
export declare type FieldResolve<T = any> = (source: T, args: {
export declare type SGFieldResolve<T = any> = (source: T, args: {
[key: string]: any;
}, context: ResolveContext, info: GraphQLResolveInfo, sgContext: SGContext) => any;
export declare type RootResolve = (args: {
}, context: SGResolveContext, info: GraphQLResolveInfo, sgContext: SGContext) => any;
export declare type SGRootResolve = (args: {
[key: string]: any;
}, context: ResolveContext, info: GraphQLResolveInfo, sgContext: SGContext) => any;
export declare type TypeConfig = {
}, context: SGResolveContext, info: GraphQLResolveInfo, sgContext: SGContext) => any;
export declare type SGTypeConfig = {
name: string;
description?: string;
inputType?: GraphQLInputType | null;
additionalInput?: InputFieldConfigMap;
additionalInput?: SGInputFieldConfigMap;
outputType?: GraphQLOutputType | null;
outputResolve?: FieldResolve;
columnOptions?: ModelAttributeColumnOptions | ((schema: SGSchema, fieldName: string, options: ColumnFieldConfig) => ModelAttributeColumnOptions | null);
outputResolve?: SGFieldResolve;
columnOptions?: ModelAttributeColumnOptions | ((schema: SGSchema, fieldName: string, options: SGColumnFieldConfig) => ModelAttributeColumnOptions | null);
};
export declare type FieldTypeMetadata = {
export declare type SGFieldTypeMetadata = {
description?: string;
};
export declare type OutputFieldTypeMetadata = FieldTypeMetadata & {
hookOptions?: HookOptionsMap;
export declare type SGOutputFieldTypeMetadata = SGFieldTypeMetadata & {
hookOptions?: SGHookOptionsMap;
graphql?: {
hidden?: boolean;
resolve?: FieldResolve;
resolve?: SGFieldResolve;
dependentFields?: Array<string>;
input?: InputFieldConfigMap;
input?: SGInputFieldConfigMap;
};
};
export declare type ConditionFieldMapper = (option: {
export declare type SGConditionFieldMapper = (option: {
where: any;
attributes: Array<string>;
}, argValue: any, context: SGContext) => void;
export declare type InputFieldTypeMetadata = FieldTypeMetadata & {
export declare type SGInputFieldTypeMetadata = SGFieldTypeMetadata & {
graphql?: {
hidden?: boolean;
defaultValue?: any;
mapper?: ConditionFieldMapper;
mapper?: SGConditionFieldMapper;
};
};
export declare type FieldTypeDefinition<T extends FieldTypeMetadata = FieldTypeMetadata> = ({
export declare type SGFieldTypeDefinition<T extends SGFieldTypeMetadata = SGFieldTypeMetadata> = ({
type: 'String' | 'Number' | 'Integer' | 'Date' | 'JSON' | 'Boolean' | string;

@@ -124,3 +124,3 @@ enum?: undefined;

} | {
elements: FieldTypeDefinition<T>;
elements: SGFieldTypeDefinition<T>;
type?: undefined;

@@ -134,3 +134,3 @@ enum?: undefined;

properties: {
[key: string]: FieldTypeDefinition<T>;
[key: string]: SGFieldTypeDefinition<T>;
};

@@ -144,3 +144,3 @@ type?: undefined;

} | {
values: FieldTypeDefinition<T>;
values: SGFieldTypeDefinition<T>;
type?: undefined;

@@ -155,3 +155,3 @@ enum?: undefined;

mapping: {
[key: string]: FieldTypeDefinition<T>;
[key: string]: SGFieldTypeDefinition<T>;
};

@@ -165,3 +165,3 @@ type?: undefined;

definitions?: {
[key: string]: FieldTypeDefinition<T>;
[key: string]: SGFieldTypeDefinition<T>;
};

@@ -171,22 +171,22 @@ nullable?: boolean;

};
export declare type InputFieldConfig = FieldTypeDefinition<InputFieldTypeMetadata>;
export declare type InputFieldConfigMap = {
[key: string]: InputFieldConfig;
export declare type SGInputFieldConfig = SGFieldTypeDefinition<SGInputFieldTypeMetadata>;
export declare type SGInputFieldConfigMap = {
[key: string]: SGInputFieldConfig;
};
export declare type OutputFieldConfig = FieldTypeDefinition<OutputFieldTypeMetadata>;
export declare type OutputFieldConfigMap = {
[key: string]: OutputFieldConfig;
export declare type SGOutputFieldConfig = SGFieldTypeDefinition<SGOutputFieldTypeMetadata>;
export declare type SGOutputFieldConfigMap = {
[key: string]: SGOutputFieldConfig;
};
export declare type LinkedFieldConfig = {
export declare type SGLinkedFieldConfig = {
description?: string;
hookOptions?: HookOptionsMap;
input?: InputFieldConfigMap;
hookOptions?: SGHookOptionsMap;
input?: SGInputFieldConfigMap;
dependentFields?: Array<string>;
output: OutputFieldConfig;
resolve: FieldResolve;
output: SGOutputFieldConfig;
resolve: SGFieldResolve;
};
export declare type LinkedFieldConfigMap = {
[key: string]: LinkedFieldConfig;
export declare type SGLinkedFieldConfigMap = {
[key: string]: SGLinkedFieldConfig;
};
export declare type ColumnFieldConfig = FieldTypeDefinition<OutputFieldTypeMetadata & InputFieldTypeMetadata> & {
export declare type SGColumnFieldConfig = SGFieldTypeDefinition<SGOutputFieldTypeMetadata & SGInputFieldTypeMetadata> & {
metadata?: {

@@ -204,44 +204,44 @@ graphql?: {

};
export declare type ColumnFieldConfigMap = {
[key: string]: ColumnFieldConfig;
export declare type SGColumnFieldConfigMap = {
[key: string]: SGColumnFieldConfig;
};
export declare type DataTypeConfig = {
export declare type SGDataTypeConfig = {
name: string;
description?: string;
definition: FieldTypeDefinition<OutputFieldTypeMetadata & InputFieldTypeMetadata>;
definition: SGFieldTypeDefinition<SGOutputFieldTypeMetadata & SGInputFieldTypeMetadata>;
columnOptions?: ModelAttributeColumnOptions;
};
export declare type QueryConfig = {
export declare type SGQueryConfig = {
description?: string;
hookOptions?: HookOptionsMap;
input?: InputFieldConfigMap;
output: OutputFieldConfig;
resolve: RootResolve;
hookOptions?: SGHookOptionsMap;
input?: SGInputFieldConfigMap;
output: SGOutputFieldConfig;
resolve: SGRootResolve;
};
export declare type QueryConfigMap = {
[key: string]: QueryConfig;
export declare type SGQueryConfigMap = {
[key: string]: SGQueryConfig;
};
export declare type MutationConfig = {
export declare type SGMutationConfig = {
description?: string;
hookOptions?: HookOptionsMap;
input: InputFieldConfigMap;
output: OutputFieldConfigMap;
mutateAndGetPayload: RootResolve;
hookOptions?: SGHookOptionsMap;
input: SGInputFieldConfigMap;
output: SGOutputFieldConfigMap;
mutateAndGetPayload: SGRootResolve;
};
export declare type MutationConfigMap = {
[key: string]: MutationConfig;
export declare type SGMutationConfigMap = {
[key: string]: SGMutationConfig;
};
export interface PluginOptions {
export interface SGPluginOptions {
enable: boolean;
}
export interface PluginOptionsMap {
export interface SGPluginOptionsMap {
}
export declare type SchemaOptions = {
export declare type SGSchemaOptions = {
description?: string;
plugin?: PluginOptionsMap;
plugin?: SGPluginOptionsMap;
tableOptions?: ModelOptions<any>;
};
export interface HookOptionsMap {
export interface SGHookOptionsMap {
}
export declare type HookTarget<T = any> = {
export declare type SGHookTarget<T = any> = {
name: string;

@@ -251,11 +251,11 @@ options?: T;

type: 'field';
targetConfig: LinkedFieldConfig;
targetConfig: SGLinkedFieldConfig;
} | {
type: 'query';
targetConfig: QueryConfig;
targetConfig: SGQueryConfig;
} | {
type: 'mutation';
targetConfig: MutationConfig;
targetConfig: SGMutationConfig;
});
export declare type HookFunc<T = any> = (target: HookTarget<T>, invokeInfo: {
export declare type SGHookFunc<T = any> = (target: SGHookTarget<T>, invokeInfo: {
source?: any;

@@ -265,14 +265,14 @@ args: {

};
context: ResolveContext;
context: SGResolveContext;
info: GraphQLResolveInfo;
sgContext: SGContext;
}, next: () => Promise<any>) => Promise<any>;
export declare type HookConfig<T = any> = {
export declare type SGHookConfig<T = any> = {
name: string;
description?: string;
priority?: number;
filter?: (target: HookTarget<T>) => boolean;
hook: HookFunc<T>;
filter?: (target: SGHookTarget<T>) => boolean;
hook: SGHookFunc<T>;
};
export declare type PluginConfig<T = PluginOptions> = {
export declare type SGPluginConfig<T = SGPluginOptions> = {
name: string;

@@ -285,8 +285,8 @@ description?: string;

};
export declare type BuildOptions = {
plugin?: PluginOptionsMap;
export declare type SGBuildOptions = {
plugin?: SGPluginOptionsMap;
};
export declare type BuildConfig = {
dataTypes?: Array<DataTypeConfig>;
types?: Array<TypeConfig>;
export declare type SGBuildConfig = {
dataTypes?: Array<SGDataTypeConfig>;
types?: Array<SGTypeConfig>;
schemas?: Array<SGSchema>;

@@ -296,8 +296,8 @@ services?: Array<typeof SGService & {

}>;
hooks?: Array<HookConfig>;
plugins?: Array<PluginConfig>;
queries?: QueryConfigMap;
mutations?: MutationConfigMap;
hooks?: Array<SGHookConfig>;
plugins?: Array<SGPluginConfig>;
queries?: SGQueryConfigMap;
mutations?: SGMutationConfigMap;
};
export interface CacheManager {
export interface SGCacheManager {
get: (key: string) => Promise<any>;

@@ -304,0 +304,0 @@ set: (key: string, value: any, expire?: number) => Promise<void>;

@@ -1,5 +0,5 @@

import { HookOptionsMap, PluginConfig, PluginOptions } from '../index';
declare type AddMutationOptions = PluginOptions & {
import { SGHookOptionsMap, SGPluginConfig, SGPluginOptions } from '../index';
declare type AddMutationOptions = SGPluginOptions & {
name?: string;
hookOptions?: HookOptionsMap;
hookOptions?: SGHookOptionsMap;
};

@@ -11,3 +11,3 @@ declare module '../index' {

}
declare const _default: PluginConfig<AddMutationOptions>;
declare const _default: SGPluginConfig<AddMutationOptions>;
export default _default;

@@ -1,5 +0,5 @@

import { HookOptionsMap, PluginConfig, PluginOptions } from '../index';
declare type BulkAddMutationOptions = PluginOptions & {
import { SGHookOptionsMap, SGPluginConfig, SGPluginOptions } from '../index';
declare type BulkAddMutationOptions = SGPluginOptions & {
name?: string;
hookOptions?: HookOptionsMap;
hookOptions?: SGHookOptionsMap;
};

@@ -11,3 +11,3 @@ declare module '../index' {

}
declare const _default: PluginConfig<BulkAddMutationOptions>;
declare const _default: SGPluginConfig<BulkAddMutationOptions>;
export default _default;

@@ -1,6 +0,6 @@

import { CacheManager, SGModel, SGModelCtrl } from '../../index';
import { SGCacheManager, SGModel, SGModelCtrl } from '../../index';
import { CountOptions, FindOptions } from 'sequelize';
export default class Cache<M extends SGModel> {
prefix: string;
cacheManger: CacheManager;
cacheManger: SGCacheManager;
model: SGModelCtrl;

@@ -10,3 +10,3 @@ expire?: number;

prefix: string;
cacheManger: CacheManager;
cacheManger: SGCacheManager;
model: SGModelCtrl;

@@ -13,0 +13,0 @@ expire?: number;

@@ -1,4 +0,4 @@

import { CacheManager } from '../../index';
import { SGCacheManager } from '../../index';
import { LRUMap } from 'lru_map';
export default class LruCacheManager implements CacheManager {
export default class LruCacheManager implements SGCacheManager {
cacheMap: LRUMap<string, any>;

@@ -5,0 +5,0 @@ constructor(limit?: number);

@@ -1,5 +0,5 @@

import { CacheManager, PluginConfig, PluginOptions } from '../index';
declare type CacheOptions = PluginOptions & {
import { SGCacheManager, SGPluginConfig, SGPluginOptions } from '../index';
declare type CacheOptions = SGPluginOptions & {
prefix?: string;
cacheManager?: CacheManager;
cacheManager?: SGCacheManager;
expire?: number;

@@ -12,3 +12,3 @@ };

}
declare const _default: PluginConfig<CacheOptions>;
declare const _default: SGPluginConfig<CacheOptions>;
export default _default;

@@ -1,5 +0,5 @@

import { HookOptionsMap, PluginConfig, PluginOptions } from '../index';
declare type DeleteMutationOptions = PluginOptions & {
import { SGHookOptionsMap, SGPluginConfig, SGPluginOptions } from '../index';
declare type DeleteMutationOptions = SGPluginOptions & {
name?: string;
hookOptions?: HookOptionsMap;
hookOptions?: SGHookOptionsMap;
};

@@ -11,3 +11,3 @@ declare module '../index' {

}
declare const _default: PluginConfig<DeleteMutationOptions>;
declare const _default: SGPluginConfig<DeleteMutationOptions>;
export default _default;

@@ -1,3 +0,3 @@

import { PluginConfig } from '../index';
declare const _default: PluginConfig<import("..").PluginOptions>;
import { SGPluginConfig } from '../index';
declare const _default: SGPluginConfig<import("..").SGPluginOptions>;
export default _default;

@@ -1,3 +0,3 @@

import { PluginConfig } from '../index';
declare const _default: PluginConfig<import("..").PluginOptions>;
import { SGPluginConfig } from '../index';
declare const _default: SGPluginConfig<import("..").SGPluginOptions>;
export default _default;

@@ -13,3 +13,3 @@ export * as addMutationPlugin from './addMutationPlugin';

export * as versionPlugin from './versionPlugin';
declare const _default: import("..").PluginConfig<import("..").PluginOptions>[];
declare const _default: import("..").SGPluginConfig<import("..").SGPluginOptions>[];
export default _default;

@@ -1,6 +0,6 @@

import { HookOptionsMap, InputFieldConfigMap, PluginConfig, PluginOptions } from '../index';
declare type PluralQueryOptions = PluginOptions & {
import { SGHookOptionsMap, SGInputFieldConfigMap, SGPluginConfig, SGPluginOptions } from '../index';
declare type PluralQueryOptions = SGPluginOptions & {
name?: string;
conditionFields?: InputFieldConfigMap;
hookOptions?: HookOptionsMap;
conditionFields?: SGInputFieldConfigMap;
hookOptions?: SGHookOptionsMap;
};

@@ -12,3 +12,3 @@ declare module '../index' {

}
declare const _default: PluginConfig<PluralQueryOptions>;
declare const _default: SGPluginConfig<PluralQueryOptions>;
export default _default;

@@ -1,5 +0,5 @@

import { HookOptionsMap, PluginConfig, PluginOptions } from '../index';
declare type SaveMutationOptions = PluginOptions & {
import { SGHookOptionsMap, SGPluginConfig, SGPluginOptions } from '../index';
declare type SaveMutationOptions = SGPluginOptions & {
name?: string;
hookOptions?: HookOptionsMap;
hookOptions?: SGHookOptionsMap;
};

@@ -11,3 +11,3 @@ declare module '../index' {

}
declare const _default: PluginConfig<SaveMutationOptions>;
declare const _default: SGPluginConfig<SaveMutationOptions>;
export default _default;

@@ -1,5 +0,5 @@

import { HookOptionsMap, PluginConfig, PluginOptions } from '../index';
declare type SingularQueryOptions = PluginOptions & {
import { SGHookOptionsMap, SGPluginConfig, SGPluginOptions } from '../index';
declare type SingularQueryOptions = SGPluginOptions & {
name?: string;
hookOptions?: HookOptionsMap;
hookOptions?: SGHookOptionsMap;
};

@@ -11,3 +11,3 @@ declare module '../index' {

}
declare const _default: PluginConfig<SingularQueryOptions>;
declare const _default: SGPluginConfig<SingularQueryOptions>;
export default _default;

@@ -1,8 +0,8 @@

import { PluginConfig, PluginOptions } from '../index';
import { SGPluginConfig, SGPluginOptions } from '../index';
declare module '../index' {
interface PluginOptionsMap {
timestamp?: PluginOptions;
timestamp?: SGPluginOptions;
}
}
declare const _default: PluginConfig<PluginOptions>;
declare const _default: SGPluginConfig<SGPluginOptions>;
export default _default;

@@ -1,5 +0,5 @@

import { HookOptionsMap, PluginConfig, PluginOptions } from '../index';
declare type UpdateMutationOptions = PluginOptions & {
import { SGHookOptionsMap, SGPluginConfig, SGPluginOptions } from '../index';
declare type UpdateMutationOptions = SGPluginOptions & {
name?: string;
hookOptions?: HookOptionsMap;
hookOptions?: SGHookOptionsMap;
};

@@ -11,3 +11,3 @@ declare module '../index' {

}
declare const _default: PluginConfig<UpdateMutationOptions>;
declare const _default: SGPluginConfig<UpdateMutationOptions>;
export default _default;

@@ -1,8 +0,8 @@

import { PluginConfig, PluginOptions } from '../index';
import { SGPluginConfig, SGPluginOptions } from '../index';
declare module '../index' {
interface PluginOptionsMap {
version?: PluginOptions;
version?: SGPluginOptions;
}
}
declare const _default: PluginConfig<PluginOptions>;
declare const _default: SGPluginConfig<SGPluginOptions>;
export default _default;
import { GraphQLFieldConfigMap } from 'graphql';
import { OutputFieldConfig, ResolverContext, TypeContext } from '../index';
declare type Context = ResolverContext & TypeContext;
import { SGOutputFieldConfig, SGResolverContext, SGTypeContext } from '../index';
declare type Context = SGResolverContext & SGTypeContext;
declare const toGraphQLFieldConfigMap: (name: string, postfix: string, fields: {
[id: string]: import("..").FieldTypeDefinition<import("..").OutputFieldTypeMetadata>;
[id: string]: import("..").SGFieldTypeDefinition<import("..").SGOutputFieldTypeMetadata>;
}, context: Context) => GraphQLFieldConfigMap<any, any>;
export default toGraphQLFieldConfigMap;
import { GraphQLInputFieldConfigMap } from 'graphql';
import { InputFieldConfig, TypeContext } from '../index';
import { SGInputFieldConfig, SGTypeContext } from '../index';
declare const toGraphQLInputFieldConfigMap: (name: string, fields: {
[id: string]: import("..").FieldTypeDefinition<import("..").InputFieldTypeMetadata>;
}, context: TypeContext) => GraphQLInputFieldConfigMap;
[id: string]: import("..").SGFieldTypeDefinition<import("..").SGInputFieldTypeMetadata>;
}, context: SGTypeContext) => GraphQLInputFieldConfigMap;
export default toGraphQLInputFieldConfigMap;
{
"name": "simple-graphql",
"version": "4.1.0",
"version": "4.1.1",
"description": "The simple way to generates GraphQL schemas and Sequelize models from your models definition.",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

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

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

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

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

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

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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc