UNPKG

graphql

Version:

A Query Language and Runtime which can target any service.

1 lines 3.29 kB
{"version":3,"file":"directiveLocation.js","sourceRoot":"","sources":["../../src/language/directiveLocation.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAG/B,KAAK,EAAE,OAAgB;IAEvB,QAAQ,EAAE,UAAmB;IAE7B,YAAY,EAAE,cAAuB;IAErC,KAAK,EAAE,OAAgB;IAEvB,mBAAmB,EAAE,qBAA8B;IAEnD,eAAe,EAAE,iBAA0B;IAE3C,eAAe,EAAE,iBAA0B;IAE3C,mBAAmB,EAAE,qBAA8B;IAEnD,4BAA4B,EAAE,8BAAuC;IAGrE,MAAM,EAAE,QAAiB;IAEzB,MAAM,EAAE,QAAiB;IAEzB,MAAM,EAAE,QAAiB;IAEzB,gBAAgB,EAAE,kBAA2B;IAE7C,mBAAmB,EAAE,qBAA8B;IAEnD,SAAS,EAAE,WAAoB;IAE/B,KAAK,EAAE,OAAgB;IAEvB,IAAI,EAAE,MAAe;IAErB,UAAU,EAAE,YAAqB;IAEjC,YAAY,EAAE,cAAuB;IAErC,sBAAsB,EAAE,wBAAiC;IAEzD,oBAAoB,EAAE,sBAA+B;CAC7C,CAAC","sourcesContent":["/** @category Kinds */\n\n/** The set of allowed directive location values. */\nexport const DirectiveLocation = {\n // Request Definitions\n /** Directive location for query operations. */\n QUERY: 'QUERY' as const,\n /** Directive location for mutation operations. */\n MUTATION: 'MUTATION' as const,\n /** Directive location for subscription operations. */\n SUBSCRIPTION: 'SUBSCRIPTION' as const,\n /** Directive location for field selections. */\n FIELD: 'FIELD' as const,\n /** Directive location for fragment definitions. */\n FRAGMENT_DEFINITION: 'FRAGMENT_DEFINITION' as const,\n /** Directive location for fragment spreads. */\n FRAGMENT_SPREAD: 'FRAGMENT_SPREAD' as const,\n /** Directive location for inline fragments. */\n INLINE_FRAGMENT: 'INLINE_FRAGMENT' as const,\n /** Directive location for variable definitions. */\n VARIABLE_DEFINITION: 'VARIABLE_DEFINITION' as const,\n /** Directive location for fragment variable definitions. */\n FRAGMENT_VARIABLE_DEFINITION: 'FRAGMENT_VARIABLE_DEFINITION' as const,\n // Type System Definitions\n /** Directive location for schema definitions and extensions. */\n SCHEMA: 'SCHEMA' as const,\n /** Directive location for scalar type definitions and extensions. */\n SCALAR: 'SCALAR' as const,\n /** Directive location for object type definitions and extensions. */\n OBJECT: 'OBJECT' as const,\n /** Directive location for field definitions. */\n FIELD_DEFINITION: 'FIELD_DEFINITION' as const,\n /** Directive location for argument definitions. */\n ARGUMENT_DEFINITION: 'ARGUMENT_DEFINITION' as const,\n /** Directive location for interface type definitions and extensions. */\n INTERFACE: 'INTERFACE' as const,\n /** Directive location for union type definitions and extensions. */\n UNION: 'UNION' as const,\n /** Directive location for enum type definitions and extensions. */\n ENUM: 'ENUM' as const,\n /** Directive location for enum value definitions. */\n ENUM_VALUE: 'ENUM_VALUE' as const,\n /** Directive location for input object type definitions and extensions. */\n INPUT_OBJECT: 'INPUT_OBJECT' as const,\n /** Directive location for input object field definitions. */\n INPUT_FIELD_DEFINITION: 'INPUT_FIELD_DEFINITION' as const,\n /** Directive location for directive definitions and extensions. */\n DIRECTIVE_DEFINITION: 'DIRECTIVE_DEFINITION' as const,\n} as const;\n\n/** The set of allowed directive location values. */\n// eslint-disable-next-line @typescript-eslint/no-redeclare\nexport type DirectiveLocation =\n (typeof DirectiveLocation)[keyof typeof DirectiveLocation];\n"]}