grafast 0.0.0 → 0.0.1-0.2
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/LICENSE.md +26 -0
- package/README.md +3 -1
- package/dist/LICENSES.txt +273 -0
- package/dist/args.d.ts +3 -0
- package/dist/assert.d.ts +3 -0
- package/dist/bucket.d.ts +24 -0
- package/dist/config.d.ts +9 -0
- package/dist/constraints.d.ts +30 -0
- package/dist/deferred.d.ts +6 -0
- package/dist/dev.d.ts +3 -0
- package/dist/engine/LayerPlan.d.ts +80 -0
- package/dist/engine/OperationPlan.d.ts +120 -0
- package/dist/engine/OutputPlan.d.ts +84 -0
- package/dist/engine/StepTracker.d.ts +35 -0
- package/dist/engine/executeBucket.d.ts +5 -0
- package/dist/engine/executeOutputPlan.d.ts +42 -0
- package/dist/engine/lib/withGlobalLayerPlan.d.ts +5 -0
- package/dist/envelop.d.ts +7 -0
- package/dist/envelop.js +1 -0
- package/dist/error.d.ts +13 -0
- package/dist/establishOperationPlan.d.ts +9 -0
- package/dist/execute.d.ts +5 -0
- package/dist/exportAs.d.ts +5 -0
- package/dist/global.d.ts +3 -0
- package/dist/grafastGraphql.d.ts +5 -0
- package/dist/grafastPrint.d.ts +5 -0
- package/dist/graphqlCollectFields.d.ts +12 -0
- package/dist/graphqlMergeSelectionSets.d.ts +4 -0
- package/dist/index.d.ts +23 -0
- package/dist/index.js +169 -0
- package/dist/input.d.ts +11 -0
- package/dist/inspect.d.ts +4 -0
- package/dist/interfaces.d.ts +261 -0
- package/dist/makeGrafastSchema.d.ts +52 -0
- package/dist/mermaid.d.ts +15 -0
- package/dist/opPlan-input.d.ts +6 -0
- package/dist/polymorphic.d.ts +6 -0
- package/dist/prepare.d.ts +11 -0
- package/dist/step.d.ts +104 -0
- package/dist/steps/__inputDynamicScalar.d.ts +18 -0
- package/dist/steps/__inputList.d.ts +23 -0
- package/dist/steps/__inputObject.d.ts +24 -0
- package/dist/steps/__inputStaticLeaf.d.ts +15 -0
- package/dist/steps/__item.d.ts +19 -0
- package/dist/steps/__trackedObject.d.ts +28 -0
- package/dist/steps/__value.d.ts +16 -0
- package/dist/steps/access.d.ts +24 -0
- package/dist/steps/connection.d.ts +84 -0
- package/dist/steps/constant.d.ts +20 -0
- package/dist/steps/deepEval.d.ts +19 -0
- package/dist/steps/each.d.ts +5 -0
- package/dist/steps/error.d.ts +15 -0
- package/dist/steps/filter.d.ts +6 -0
- package/dist/steps/first.d.ts +18 -0
- package/dist/steps/graphqlResolver.d.ts +65 -0
- package/dist/steps/groupBy.d.ts +5 -0
- package/dist/steps/index.d.ts +37 -0
- package/dist/steps/lambda.d.ts +23 -0
- package/dist/steps/last.d.ts +17 -0
- package/dist/steps/list.d.ts +24 -0
- package/dist/steps/listTransform.d.ts +45 -0
- package/dist/steps/listen.d.ts +26 -0
- package/dist/steps/loadMany.d.ts +46 -0
- package/dist/steps/loadOne.d.ts +30 -0
- package/dist/steps/map.d.ts +26 -0
- package/dist/steps/node.d.ts +30 -0
- package/dist/steps/object.d.ts +49 -0
- package/dist/steps/partitionByIndex.d.ts +4 -0
- package/dist/steps/proxy.d.ts +22 -0
- package/dist/steps/reverse.d.ts +18 -0
- package/dist/steps/setter.d.ts +27 -0
- package/dist/stringifyPayload.d.ts +3 -0
- package/dist/stripAnsi.d.ts +3 -0
- package/dist/subscribe.d.ts +4 -0
- package/dist/utils.d.ts +60 -0
- package/package.json +60 -9
- package/index.js +0 -1
package/LICENSE.md
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Graphile Sponsors-only Software
|
|
2
|
+
|
|
3
|
+
Copyright © 2022 Benjie Gillam. All rights reserved.
|
|
4
|
+
|
|
5
|
+
This package is _not_ (yet) open source software, it may only be used by
|
|
6
|
+
graphile sponsors. for more information, please see https://grafast.org
|
|
7
|
+
|
|
8
|
+
This is explicitly pre-release software, it has not yet gone through rigorous
|
|
9
|
+
testing and probably includes security and stability issues both known and
|
|
10
|
+
unknown. Usage of this software is entirely at your own risk.
|
|
11
|
+
|
|
12
|
+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
13
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
14
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
15
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
16
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
17
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
|
+
SOFTWARE.
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
The contents of the `node_modules` directory are produced from external
|
|
23
|
+
libraries; their license terms will likely differ from the terms above - you
|
|
24
|
+
should review them also.
|
|
25
|
+
|
|
26
|
+
Licenses of bundled dependencies (if any) are detailed in dist/LICENSES.txt
|
package/README.md
CHANGED
|
@@ -0,0 +1,273 @@
|
|
|
1
|
+
THIRD PARTY SOFTWARE NOTICES AND INFORMATION
|
|
2
|
+
Do Not Translate or Localize
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
--------------------------------------------------------------------------------
|
|
6
|
+
ansi-styles v4.3.0 - Sindre Sorhus
|
|
7
|
+
chalk/ansi-styles
|
|
8
|
+
--------------------------------------------------------------------------------
|
|
9
|
+
|
|
10
|
+
MIT License
|
|
11
|
+
|
|
12
|
+
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
|
|
13
|
+
|
|
14
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
15
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
16
|
+
the Software without restriction, including without limitation the rights to
|
|
17
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
18
|
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
|
19
|
+
subject to the following conditions:
|
|
20
|
+
|
|
21
|
+
The above copyright notice and this permission notice shall be included in all
|
|
22
|
+
copies or substantial portions of the Software.
|
|
23
|
+
|
|
24
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
25
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
26
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
27
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
28
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
29
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
--------------------------------------------------------------------------------
|
|
33
|
+
chalk v4.1.2
|
|
34
|
+
chalk/chalk
|
|
35
|
+
--------------------------------------------------------------------------------
|
|
36
|
+
|
|
37
|
+
MIT License
|
|
38
|
+
|
|
39
|
+
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
|
|
40
|
+
|
|
41
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
42
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
43
|
+
the Software without restriction, including without limitation the rights to
|
|
44
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
45
|
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
|
46
|
+
subject to the following conditions:
|
|
47
|
+
|
|
48
|
+
The above copyright notice and this permission notice shall be included in all
|
|
49
|
+
copies or substantial portions of the Software.
|
|
50
|
+
|
|
51
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
52
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
53
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
54
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
55
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
56
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
--------------------------------------------------------------------------------
|
|
60
|
+
color-convert v2.0.1 - Heather Arthur <fayearthur@gmail.com>
|
|
61
|
+
Qix-/color-convert
|
|
62
|
+
--------------------------------------------------------------------------------
|
|
63
|
+
|
|
64
|
+
Copyright (c) 2011-2016 Heather Arthur <fayearthur@gmail.com>
|
|
65
|
+
|
|
66
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
67
|
+
a copy of this software and associated documentation files (the
|
|
68
|
+
"Software"), to deal in the Software without restriction, including
|
|
69
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
70
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
71
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
72
|
+
the following conditions:
|
|
73
|
+
|
|
74
|
+
The above copyright notice and this permission notice shall be
|
|
75
|
+
included in all copies or substantial portions of the Software.
|
|
76
|
+
|
|
77
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
78
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
79
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
80
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
81
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
82
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
83
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
--------------------------------------------------------------------------------
|
|
88
|
+
color-name v1.1.4 - DY <dfcreative@gmail.com>
|
|
89
|
+
git@github.com:colorjs/color-name.git
|
|
90
|
+
--------------------------------------------------------------------------------
|
|
91
|
+
|
|
92
|
+
The MIT License (MIT)
|
|
93
|
+
Copyright (c) 2015 Dmitry Ivanov
|
|
94
|
+
|
|
95
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
96
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
97
|
+
the Software without restriction, including without limitation the rights to
|
|
98
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
99
|
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
|
100
|
+
subject to the following conditions:
|
|
101
|
+
|
|
102
|
+
The above copyright notice and this permission notice shall be included in all
|
|
103
|
+
copies or substantial portions of the Software.
|
|
104
|
+
|
|
105
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
106
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
107
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
108
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
109
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
110
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
111
|
+
|
|
112
|
+
--------------------------------------------------------------------------------
|
|
113
|
+
debug v4.3.3 - Josh Junon <josh.junon@protonmail.com>
|
|
114
|
+
git://github.com/debug-js/debug.git
|
|
115
|
+
--------------------------------------------------------------------------------
|
|
116
|
+
|
|
117
|
+
(The MIT License)
|
|
118
|
+
|
|
119
|
+
Copyright (c) 2014-2017 TJ Holowaychuk <tj@vision-media.ca>
|
|
120
|
+
Copyright (c) 2018-2021 Josh Junon
|
|
121
|
+
|
|
122
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
123
|
+
this software
|
|
124
|
+
and associated documentation files (the 'Software'), to deal in the Software
|
|
125
|
+
without restriction,
|
|
126
|
+
including without limitation the rights to use, copy, modify, merge, publish,
|
|
127
|
+
distribute, sublicense,
|
|
128
|
+
and/or sell copies of the Software, and to permit persons to whom the Software
|
|
129
|
+
is furnished to do so,
|
|
130
|
+
subject to the following conditions:
|
|
131
|
+
|
|
132
|
+
The above copyright notice and this permission notice shall be included in all
|
|
133
|
+
copies or substantial
|
|
134
|
+
portions of the Software.
|
|
135
|
+
|
|
136
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
137
|
+
IMPLIED, INCLUDING BUT NOT
|
|
138
|
+
LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
|
|
139
|
+
AND NONINFRINGEMENT.
|
|
140
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
|
141
|
+
DAMAGES OR OTHER LIABILITY,
|
|
142
|
+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
143
|
+
CONNECTION WITH THE
|
|
144
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
--------------------------------------------------------------------------------
|
|
149
|
+
eventemitter3 v4.0.7 - Arnout Kazemier
|
|
150
|
+
git://github.com/primus/eventemitter3.git
|
|
151
|
+
--------------------------------------------------------------------------------
|
|
152
|
+
|
|
153
|
+
The MIT License (MIT)
|
|
154
|
+
|
|
155
|
+
Copyright (c) 2014 Arnout Kazemier
|
|
156
|
+
|
|
157
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
158
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
159
|
+
in the Software without restriction, including without limitation the rights
|
|
160
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
161
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
162
|
+
furnished to do so, subject to the following conditions:
|
|
163
|
+
|
|
164
|
+
The above copyright notice and this permission notice shall be included in all
|
|
165
|
+
copies or substantial portions of the Software.
|
|
166
|
+
|
|
167
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
168
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
169
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
170
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
171
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
172
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
173
|
+
SOFTWARE.
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
--------------------------------------------------------------------------------
|
|
177
|
+
iterall v1.3.0 - Lee Byron <lee@leebyron.com> (http://leebyron.com/)
|
|
178
|
+
github:leebyron/iterall
|
|
179
|
+
--------------------------------------------------------------------------------
|
|
180
|
+
|
|
181
|
+
Copyright (c) 2016 Lee Byron
|
|
182
|
+
|
|
183
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
184
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
185
|
+
the Software without restriction, including without limitation the rights to
|
|
186
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
187
|
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
|
188
|
+
subject to the following conditions:
|
|
189
|
+
|
|
190
|
+
The above copyright notice and this permission notice shall be included in all
|
|
191
|
+
copies or substantial portions of the Software.
|
|
192
|
+
|
|
193
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
194
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
195
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
196
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
197
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
198
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
--------------------------------------------------------------------------------
|
|
202
|
+
ms v2.1.2
|
|
203
|
+
zeit/ms
|
|
204
|
+
--------------------------------------------------------------------------------
|
|
205
|
+
|
|
206
|
+
The MIT License (MIT)
|
|
207
|
+
|
|
208
|
+
Copyright (c) 2016 Zeit, Inc.
|
|
209
|
+
|
|
210
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
211
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
212
|
+
in the Software without restriction, including without limitation the rights
|
|
213
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
214
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
215
|
+
furnished to do so, subject to the following conditions:
|
|
216
|
+
|
|
217
|
+
The above copyright notice and this permission notice shall be included in all
|
|
218
|
+
copies or substantial portions of the Software.
|
|
219
|
+
|
|
220
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
221
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
222
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
223
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
224
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
225
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
226
|
+
SOFTWARE.
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
--------------------------------------------------------------------------------
|
|
230
|
+
supports-color v7.2.0 - Sindre Sorhus
|
|
231
|
+
chalk/supports-color
|
|
232
|
+
--------------------------------------------------------------------------------
|
|
233
|
+
|
|
234
|
+
MIT License
|
|
235
|
+
|
|
236
|
+
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
|
|
237
|
+
|
|
238
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
239
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
240
|
+
the Software without restriction, including without limitation the rights to
|
|
241
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
242
|
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
|
243
|
+
subject to the following conditions:
|
|
244
|
+
|
|
245
|
+
The above copyright notice and this permission notice shall be included in all
|
|
246
|
+
copies or substantial portions of the Software.
|
|
247
|
+
|
|
248
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
249
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
250
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
251
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
252
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
253
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
--------------------------------------------------------------------------------
|
|
257
|
+
tslib v2.4.0 - Microsoft Corp.
|
|
258
|
+
https://github.com/Microsoft/tslib.git
|
|
259
|
+
--------------------------------------------------------------------------------
|
|
260
|
+
|
|
261
|
+
Copyright (c) Microsoft Corporation.
|
|
262
|
+
|
|
263
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
264
|
+
purpose with or without fee is hereby granted.
|
|
265
|
+
|
|
266
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
267
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
268
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
269
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
270
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
271
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
272
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
273
|
+
|
package/dist/args.d.ts
ADDED
package/dist/assert.d.ts
ADDED
package/dist/bucket.d.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { LayerPlan } from "./engine/LayerPlan";
|
|
2
|
+
import type { MetaByMetaKey } from "./engine/OperationPlan";
|
|
3
|
+
import type { ExecutionEventEmitter } from "./interfaces.js";
|
|
4
|
+
export interface RequestContext {
|
|
5
|
+
readonly eventEmitter: ExecutionEventEmitter | undefined;
|
|
6
|
+
metaByMetaKey: MetaByMetaKey;
|
|
7
|
+
insideGraphQL: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface Bucket {
|
|
10
|
+
layerPlan: LayerPlan;
|
|
11
|
+
size: number;
|
|
12
|
+
noDepsList: readonly undefined[];
|
|
13
|
+
polymorphicPathList: readonly string[];
|
|
14
|
+
store: Map<number, any[]>;
|
|
15
|
+
isComplete: boolean;
|
|
16
|
+
hasErrors: boolean;
|
|
17
|
+
children: {
|
|
18
|
+
[layerPlanId: number]: {
|
|
19
|
+
bucket: Bucket;
|
|
20
|
+
map: Map<number, number | number[]>;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=bucket.d.ts.map
|
package/dist/config.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { AsyncHooks, PluginHook } from "graphile-config";
|
|
2
|
+
export declare const NULL_PRESET: GraphileConfig.ResolvedPreset;
|
|
3
|
+
declare type GraphileConfigModule = typeof import("graphile-config");
|
|
4
|
+
declare type PromiseOrValue<T> = T | Promise<T>;
|
|
5
|
+
export declare function withGraphileConfig<T>(callback: (graphileConfig: GraphileConfigModule | null) => PromiseOrValue<T>): PromiseOrValue<T>;
|
|
6
|
+
export declare function withHooks<TResult>(resolvedPreset: GraphileConfig.ResolvedPreset, callback: (hooks: AsyncHooks<GraphileConfig.GrafastHooks> | null) => PromiseOrValue<TResult>): PromiseOrValue<TResult>;
|
|
7
|
+
export declare function hook<THookName extends keyof GraphileConfig.GrafastHooks>(resolvedPreset: GraphileConfig.ResolvedPreset, hookName: THookName, ...args: Parameters<GraphileConfig.GrafastHooks[THookName] extends PluginHook<infer U> ? U : never>): PromiseOrValue<void>;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=config.d.ts.map
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
interface ValueConstraint {
|
|
2
|
+
type: "value";
|
|
3
|
+
path: (string | number)[];
|
|
4
|
+
value: unknown;
|
|
5
|
+
}
|
|
6
|
+
interface EqualityConstraint {
|
|
7
|
+
type: "equal";
|
|
8
|
+
path: (string | number)[];
|
|
9
|
+
expectedValue: unknown;
|
|
10
|
+
pass: boolean;
|
|
11
|
+
}
|
|
12
|
+
interface ExistsConstraint {
|
|
13
|
+
type: "exists";
|
|
14
|
+
path: (string | number)[];
|
|
15
|
+
exists: boolean;
|
|
16
|
+
}
|
|
17
|
+
interface LengthConstraint {
|
|
18
|
+
type: "length";
|
|
19
|
+
path: (string | number)[];
|
|
20
|
+
expectedLength: number | null;
|
|
21
|
+
}
|
|
22
|
+
interface IsEmptyConstraint {
|
|
23
|
+
type: "isEmpty";
|
|
24
|
+
path: (string | number)[];
|
|
25
|
+
isEmpty: boolean;
|
|
26
|
+
}
|
|
27
|
+
export declare type Constraint = ValueConstraint | EqualityConstraint | ExistsConstraint | LengthConstraint | IsEmptyConstraint;
|
|
28
|
+
export declare function matchesConstraints(constraints: Constraint[], object: unknown): boolean;
|
|
29
|
+
export {};
|
|
30
|
+
//# sourceMappingURL=constraints.d.ts.map
|
package/dist/dev.d.ts
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import type { Bucket } from "../bucket.js";
|
|
2
|
+
import type { ExecutableStep, ModifierStep, UnbatchedExecutableStep } from "../step";
|
|
3
|
+
import type { OperationPlan } from "./OperationPlan";
|
|
4
|
+
export interface LayerPlanReasonRoot {
|
|
5
|
+
type: "root";
|
|
6
|
+
}
|
|
7
|
+
export interface LayerPlanReasonNullableField {
|
|
8
|
+
type: "nullableBoundary";
|
|
9
|
+
parentStep: ExecutableStep;
|
|
10
|
+
}
|
|
11
|
+
export interface LayerPlanReasonListItem {
|
|
12
|
+
type: "listItem";
|
|
13
|
+
parentStep: ExecutableStep;
|
|
14
|
+
stream?: {
|
|
15
|
+
initialCount: number;
|
|
16
|
+
label?: string;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
export interface LayerPlanReasonSubscription {
|
|
20
|
+
type: "subscription";
|
|
21
|
+
}
|
|
22
|
+
export interface LayerPlanReasonMutationField {
|
|
23
|
+
type: "mutationField";
|
|
24
|
+
}
|
|
25
|
+
export interface LayerPlanReasonDefer {
|
|
26
|
+
type: "defer";
|
|
27
|
+
label?: string;
|
|
28
|
+
}
|
|
29
|
+
export interface LayerPlanReasonPolymorphic {
|
|
30
|
+
type: "polymorphic";
|
|
31
|
+
typeNames: string[];
|
|
32
|
+
parentStep: ExecutableStep;
|
|
33
|
+
}
|
|
34
|
+
export interface LayerPlanReasonSubroutine {
|
|
35
|
+
type: "subroutine";
|
|
36
|
+
parentStep: ExecutableStep;
|
|
37
|
+
}
|
|
38
|
+
export declare function isBranchingLayerPlan(layerPlan: LayerPlan<any>): boolean;
|
|
39
|
+
export declare function isDeferredLayerPlan(layerPlan: LayerPlan<any>): boolean;
|
|
40
|
+
export declare function isPolymorphicLayerPlan(layerPlan: LayerPlan<any>): boolean;
|
|
41
|
+
export declare type LayerPlanReason = LayerPlanReasonRoot | LayerPlanReasonNullableField | LayerPlanReasonListItem | LayerPlanReasonSubscription | LayerPlanReasonMutationField | LayerPlanReasonDefer | LayerPlanReasonPolymorphic | LayerPlanReasonSubroutine;
|
|
42
|
+
export declare type HasParent<A extends LayerPlanReason> = A extends any ? A extends {
|
|
43
|
+
parentStep: ExecutableStep;
|
|
44
|
+
} ? A : never : never;
|
|
45
|
+
export declare type LayerPlanReasonsWithParentStep = HasParent<LayerPlanReason>;
|
|
46
|
+
export interface LayerPlanPhase {
|
|
47
|
+
normalSteps?: Array<{
|
|
48
|
+
step: ExecutableStep;
|
|
49
|
+
}>;
|
|
50
|
+
unbatchedSyncAndSafeSteps?: Array<{
|
|
51
|
+
step: UnbatchedExecutableStep;
|
|
52
|
+
scratchpad: any;
|
|
53
|
+
}>;
|
|
54
|
+
_allSteps: ExecutableStep[];
|
|
55
|
+
}
|
|
56
|
+
export declare class LayerPlan<TReason extends LayerPlanReason = LayerPlanReason> {
|
|
57
|
+
readonly operationPlan: OperationPlan;
|
|
58
|
+
parentLayerPlan: LayerPlan | null;
|
|
59
|
+
readonly reason: TReason;
|
|
60
|
+
polymorphicPaths: ReadonlySet<string>;
|
|
61
|
+
id: number;
|
|
62
|
+
readonly rootStep: ExecutableStep | null;
|
|
63
|
+
copyPlanIds: number[];
|
|
64
|
+
children: LayerPlan[];
|
|
65
|
+
steps: ExecutableStep[];
|
|
66
|
+
pendingSteps: ExecutableStep[];
|
|
67
|
+
phases: Array<LayerPlanPhase>;
|
|
68
|
+
ancestry: LayerPlan[];
|
|
69
|
+
constructor(operationPlan: OperationPlan, parentLayerPlan: LayerPlan | null, reason: TReason, polymorphicPaths: ReadonlySet<string>);
|
|
70
|
+
toString(): string;
|
|
71
|
+
print(depth?: number): string;
|
|
72
|
+
setRootStep($root: ExecutableStep): void;
|
|
73
|
+
getStep(id: number, requestingStep: ExecutableStep): ExecutableStep;
|
|
74
|
+
_addStep(step: ExecutableStep): number;
|
|
75
|
+
_addModifierStep(step: ModifierStep<any>): string;
|
|
76
|
+
makeNewBucketCallback(inner: string): typeof this.newBucket;
|
|
77
|
+
finalize(): void;
|
|
78
|
+
newBucket(parentBucket: Bucket): Bucket | null;
|
|
79
|
+
}
|
|
80
|
+
//# sourceMappingURL=LayerPlan.d.ts.map
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import type { FragmentDefinitionNode, GraphQLObjectType, GraphQLSchema, GraphQLUnionType, OperationDefinitionNode } from "graphql";
|
|
2
|
+
import type { Constraint } from "../constraints.js";
|
|
3
|
+
import type { ModifierStep } from "../index.js";
|
|
4
|
+
import { __TrackedObjectStep, __ValueStep, ExecutableStep } from "../index.js";
|
|
5
|
+
import type { PrintPlanGraphOptions } from "../mermaid.js";
|
|
6
|
+
import type { LayerPlanReasonSubroutine } from "./LayerPlan.js";
|
|
7
|
+
import { LayerPlan } from "./LayerPlan.js";
|
|
8
|
+
import { OutputPlan } from "./OutputPlan.js";
|
|
9
|
+
import { StepTracker } from "./StepTracker.js";
|
|
10
|
+
export declare const POLYMORPHIC_ROOT_PATH = "";
|
|
11
|
+
export declare type OperationPlanPhase = "init" | "plan" | "validate" | "optimize" | "finalize" | "ready";
|
|
12
|
+
export interface MetaByMetaKey {
|
|
13
|
+
[metaKey: string | number | symbol]: Record<string, any>;
|
|
14
|
+
}
|
|
15
|
+
export declare class OperationPlan {
|
|
16
|
+
readonly schema: GraphQLSchema;
|
|
17
|
+
readonly operation: OperationDefinitionNode;
|
|
18
|
+
readonly fragments: {
|
|
19
|
+
[fragmentName: string]: FragmentDefinitionNode;
|
|
20
|
+
};
|
|
21
|
+
readonly variableValues: {
|
|
22
|
+
[key: string]: any;
|
|
23
|
+
};
|
|
24
|
+
readonly context: {
|
|
25
|
+
[key: string]: any;
|
|
26
|
+
};
|
|
27
|
+
readonly rootValue: any;
|
|
28
|
+
readonly queryType: GraphQLObjectType;
|
|
29
|
+
readonly mutationType: GraphQLObjectType | null;
|
|
30
|
+
readonly subscriptionType: GraphQLObjectType | null;
|
|
31
|
+
readonly unionsContainingObjectType: {
|
|
32
|
+
[objectTypeName: string]: ReadonlyArray<GraphQLUnionType>;
|
|
33
|
+
};
|
|
34
|
+
private operationType;
|
|
35
|
+
phase: OperationPlanPhase;
|
|
36
|
+
loc: string[] | null;
|
|
37
|
+
rootLayerPlan: LayerPlan;
|
|
38
|
+
rootOutputPlan: OutputPlan;
|
|
39
|
+
private modifierStepCount;
|
|
40
|
+
private modifierDepthCount;
|
|
41
|
+
private modifierSteps;
|
|
42
|
+
readonly stepTracker: StepTracker;
|
|
43
|
+
private maxDeduplicatedStepId;
|
|
44
|
+
private maxValidatedStepId;
|
|
45
|
+
readonly variableValuesConstraints: Constraint[];
|
|
46
|
+
readonly variableValuesStep: __ValueStep<{
|
|
47
|
+
[key: string]: any;
|
|
48
|
+
}>;
|
|
49
|
+
readonly trackedVariableValuesStep: __TrackedObjectStep<{
|
|
50
|
+
[key: string]: any;
|
|
51
|
+
}>;
|
|
52
|
+
readonly contextConstraints: Constraint[];
|
|
53
|
+
readonly contextStep: __ValueStep<{
|
|
54
|
+
[key: string]: any;
|
|
55
|
+
}>;
|
|
56
|
+
readonly trackedContextStep: __TrackedObjectStep<{
|
|
57
|
+
[key: string]: any;
|
|
58
|
+
}>;
|
|
59
|
+
readonly rootValueConstraints: Constraint[];
|
|
60
|
+
readonly rootValueStep: __ValueStep<any>;
|
|
61
|
+
readonly trackedRootValueStep: __TrackedObjectStep<any>;
|
|
62
|
+
makeMetaByMetaKey: () => MetaByMetaKey;
|
|
63
|
+
readonly itemStepIdByListStepId: {
|
|
64
|
+
[listStepId: number]: number | undefined;
|
|
65
|
+
};
|
|
66
|
+
pure: boolean;
|
|
67
|
+
constructor(schema: GraphQLSchema, operation: OperationDefinitionNode, fragments: {
|
|
68
|
+
[fragmentName: string]: FragmentDefinitionNode;
|
|
69
|
+
}, variableValues: {
|
|
70
|
+
[key: string]: any;
|
|
71
|
+
}, context: {
|
|
72
|
+
[key: string]: any;
|
|
73
|
+
}, rootValue: any);
|
|
74
|
+
addLayerPlan(layerPlan: LayerPlan): number;
|
|
75
|
+
_addStep(plan: ExecutableStep): number;
|
|
76
|
+
_addModifierStep(step: ModifierStep<any>): string;
|
|
77
|
+
getStep: (id: number, requestingStep: ExecutableStep) => ExecutableStep;
|
|
78
|
+
dangerouslyGetStep(id: number): ExecutableStep;
|
|
79
|
+
private planOperation;
|
|
80
|
+
private planQuery;
|
|
81
|
+
private planMutation;
|
|
82
|
+
private planSubscription;
|
|
83
|
+
private itemStepForListStep;
|
|
84
|
+
private planSelectionSet;
|
|
85
|
+
private planIntoOutputPlan;
|
|
86
|
+
private polymorphicLayerPlanByPathByLayerPlan;
|
|
87
|
+
private getPolymorphicLayerPlan;
|
|
88
|
+
private planField;
|
|
89
|
+
private getTrackedArguments;
|
|
90
|
+
withModifiers<T>(cb: () => T): T;
|
|
91
|
+
private track;
|
|
92
|
+
private validateSteps;
|
|
93
|
+
private replaceStep;
|
|
94
|
+
processSteps(actionDescription: string, fromStepId: number, order: "dependents-first" | "dependencies-first", callback: (plan: ExecutableStep<any>) => ExecutableStep<any>): void;
|
|
95
|
+
private getPeers;
|
|
96
|
+
private isImmoveable;
|
|
97
|
+
private hoistStep;
|
|
98
|
+
private pushDown;
|
|
99
|
+
private _deduplicateInnerLogic;
|
|
100
|
+
private deduplicateStep;
|
|
101
|
+
private deduplicateSteps;
|
|
102
|
+
private hoistSteps;
|
|
103
|
+
private pushDownSteps;
|
|
104
|
+
private getStepOptionsForStep;
|
|
105
|
+
private optimizeStep;
|
|
106
|
+
private optimizeSteps;
|
|
107
|
+
private finalizeSteps;
|
|
108
|
+
private finalizeLayerPlans;
|
|
109
|
+
private optimizeOutputPlans;
|
|
110
|
+
private finalizeOutputPlans;
|
|
111
|
+
private walkOutputPlans;
|
|
112
|
+
printPlanGraph(options?: PrintPlanGraphOptions): string;
|
|
113
|
+
finishSubroutine(subroutineStep: ExecutableStep, layerPlan: LayerPlan<LayerPlanReasonSubroutine>): void;
|
|
114
|
+
deleteLayerPlan(layerPlan: LayerPlan): void;
|
|
115
|
+
getStepsByMetaKey(metaKey: string | number | symbol): ExecutableStep[];
|
|
116
|
+
getStepsByStepClass<TClass extends ExecutableStep>(klass: {
|
|
117
|
+
new (...args: any[]): TClass;
|
|
118
|
+
}): TClass[];
|
|
119
|
+
}
|
|
120
|
+
//# sourceMappingURL=OperationPlan.d.ts.map
|