1 | import { AdjacentSchema } from './decorators/AdjacentSchema'
|
2 | import { Deferred, joinLines, promisify, getLatticePrefs, LatticeLogs } from './utils'
|
3 | import { FileSchema } from './decorators/FileSchema'
|
4 | import { Getters, Setters, Properties, DirectTypeManager } from './decorators/ModelProperties'
|
5 | import { resolver, mutator, subscriptor } from './decorators/Resolvers'
|
6 | import { IDLFileHandler } from './IDLFileHandler'
|
7 | import { GQLBase, MODEL_KEY, META_KEY, AUTO_PROPS, GETTERS, SETTERS, PROPS } from './GQLBase'
|
8 | import { GQLEnum } from './GQLEnum'
|
9 | import { GQLExpressMiddleware } from './GQLExpressMiddleware'
|
10 | import { GQLInterface } from './GQLInterface'
|
11 | import { GQLJSON } from './types/GQLJSON'
|
12 | import { GQLScalar } from './GQLScalar'
|
13 | import { LatticeFactory } from './LatticeFactory'
|
14 | import { ModuleParser, walkSync } from './ModuleParser'
|
15 | import { Schema } from './decorators/Schema'
|
16 | import { SchemaUtils } from './SchemaUtils'
|
17 | import { SyntaxTree } from './SyntaxTree'
|
18 | import * as types from 'ne-types'
|
19 | import { customDedent } from 'ne-tag-fns'
|
20 |
|
21 | const { typeOf } = types;
|
22 | const {
|
23 | DOC_CLASS, DOC_FIELDS, DOC_QUERIES, DOC_MUTATORS, DOC_SUBSCRIPTIONS,
|
24 | DOC_QUERY, DOC_MUTATION, DOC_SUBSCRIPTION
|
25 | } = GQLBase;
|
26 |
|
27 | const gql = customDedent({ dropLowest: true })
|
28 |
|
29 |
|
30 | const defaultPackage = {
|
31 | AdjacentSchema,
|
32 | Deferred,
|
33 | DirectTypeManager,
|
34 | FileSchema,
|
35 | getLatticePrefs,
|
36 | Getters,
|
37 | GQLBase,
|
38 | GQLEnum,
|
39 | GQLExpressMiddleware,
|
40 | GQLInterface,
|
41 | GQLJSON,
|
42 | GQLScalar,
|
43 | IDLFileHandler,
|
44 | LatticeFactory,
|
45 | LatticeLogs,
|
46 | ModuleParser,
|
47 | gql,
|
48 | mutator,
|
49 | joinLines,
|
50 | promisify,
|
51 | Properties,
|
52 | resolver,
|
53 | Schema,
|
54 | SchemaUtils,
|
55 | Setters,
|
56 | subscriptor,
|
57 | SyntaxTree,
|
58 | typeOf,
|
59 | types,
|
60 |
|
61 | AUTO_PROPS,
|
62 | DOC_CLASS,
|
63 | DOC_FIELDS,
|
64 | DOC_MUTATION,
|
65 | DOC_MUTATORS,
|
66 | DOC_QUERIES,
|
67 | DOC_QUERY,
|
68 | DOC_SUBSCRIPTION,
|
69 | DOC_SUBSCRIPTIONS,
|
70 | GETTERS,
|
71 | META_KEY,
|
72 | MODEL_KEY,
|
73 | PROPS,
|
74 | SETTERS
|
75 | };
|
76 |
|
77 |
|
78 | export {
|
79 | AdjacentSchema,
|
80 | Deferred,
|
81 | DirectTypeManager,
|
82 | FileSchema,
|
83 | getLatticePrefs,
|
84 | Getters,
|
85 | GQLBase,
|
86 | GQLEnum,
|
87 | GQLExpressMiddleware,
|
88 | GQLInterface,
|
89 | GQLJSON,
|
90 | GQLScalar,
|
91 | IDLFileHandler,
|
92 | LatticeFactory,
|
93 | LatticeLogs,
|
94 | ModuleParser,
|
95 | gql,
|
96 | mutator,
|
97 | joinLines,
|
98 | promisify,
|
99 | Properties,
|
100 | resolver,
|
101 | Schema,
|
102 | SchemaUtils,
|
103 | Setters,
|
104 | subscriptor,
|
105 | SyntaxTree,
|
106 | typeOf,
|
107 | types,
|
108 |
|
109 | AUTO_PROPS,
|
110 | DOC_CLASS,
|
111 | DOC_FIELDS,
|
112 | DOC_MUTATION,
|
113 | DOC_MUTATORS,
|
114 | DOC_QUERIES,
|
115 | DOC_QUERY,
|
116 | DOC_SUBSCRIPTION,
|
117 | DOC_SUBSCRIPTIONS,
|
118 | GETTERS,
|
119 | META_KEY,
|
120 | MODEL_KEY,
|
121 | PROPS,
|
122 | SETTERS
|
123 | }
|
124 |
|
125 | export default defaultPackage
|