@stonecrop/graphql-middleware 0.10.15 → 0.11.0
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/README.md +124 -107
- package/dist/graphql-middleware.d.ts +0 -23
- package/dist/index.cjs +86 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.js +150 -161
- package/dist/index.js.map +1 -1
- package/dist/plugin/postgraphile.js +1 -3
- package/dist/registry/actions.js +19 -12
- package/dist/registry/doctypes.js +0 -14
- package/dist/src/index.d.ts +1 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +8 -0
- package/dist/src/plugin/postgraphile.d.ts.map +1 -1
- package/dist/src/plugin/postgraphile.js +381 -0
- package/dist/src/registry/actions.d.ts.map +1 -1
- package/dist/src/registry/actions.js +156 -0
- package/dist/src/registry/doctypes.d.ts.map +1 -1
- package/dist/src/registry/doctypes.js +167 -0
- package/dist/src/tsdoc-metadata.json +11 -0
- package/dist/src/types/index.js +3 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,189 +1,182 @@
|
|
|
1
|
-
import { readdirSync as B, statSync as
|
|
2
|
-
import { join as
|
|
3
|
-
import { validateDoctype as
|
|
4
|
-
import { loadOne as b, object as w, constant as
|
|
1
|
+
import { readdirSync as B, statSync as M, readFileSync as x } from "node:fs";
|
|
2
|
+
import { join as E } from "node:path";
|
|
3
|
+
import { validateDoctype as k, parseDoctype as O, toPascalCase as D, snakeToCamel as j } from "@stonecrop/schema";
|
|
4
|
+
import { loadOne as b, object as w, constant as F, lambda as q } from "postgraphile/grafast";
|
|
5
5
|
import { extendSchema as I, gql as T } from "postgraphile/utils";
|
|
6
6
|
import J from "pluralize";
|
|
7
7
|
const u = /* @__PURE__ */ new Map();
|
|
8
|
-
class
|
|
9
|
-
constructor(
|
|
10
|
-
const
|
|
8
|
+
class R extends Error {
|
|
9
|
+
constructor(t, r) {
|
|
10
|
+
const i = r.map((n) => ` ${n.path.join(".")}: ${n.message}`).join(`
|
|
11
11
|
`);
|
|
12
|
-
super(`Invalid doctype definition in ${
|
|
13
|
-
${
|
|
12
|
+
super(`Invalid doctype definition in ${t}:
|
|
13
|
+
${i}`), this.file = t, this.errors = r, this.name = "DoctypeValidationError";
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
|
-
function L(
|
|
17
|
-
const r = B(
|
|
18
|
-
for (const
|
|
19
|
-
const n =
|
|
20
|
-
|
|
16
|
+
function L(e, t = {}) {
|
|
17
|
+
const r = B(e);
|
|
18
|
+
for (const i of r) {
|
|
19
|
+
const n = E(e, i);
|
|
20
|
+
M(n).isDirectory() ? L(n, t) : i.endsWith(".json") && C(n, t);
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
|
-
function C(
|
|
24
|
-
const r =
|
|
25
|
-
let
|
|
23
|
+
function C(e, t) {
|
|
24
|
+
const r = x(e, "utf-8");
|
|
25
|
+
let i;
|
|
26
26
|
try {
|
|
27
|
-
|
|
28
|
-
} catch (
|
|
29
|
-
const
|
|
27
|
+
i = JSON.parse(r);
|
|
28
|
+
} catch (c) {
|
|
29
|
+
const o = {
|
|
30
30
|
path: [],
|
|
31
|
-
message: `Invalid JSON: ${
|
|
31
|
+
message: `Invalid JSON: ${c instanceof Error ? c.message : String(c)}`
|
|
32
32
|
};
|
|
33
|
-
if (
|
|
34
|
-
|
|
33
|
+
if (t.continueOnError) {
|
|
34
|
+
t.onError?.(e, [o]);
|
|
35
35
|
return;
|
|
36
36
|
}
|
|
37
|
-
throw new
|
|
37
|
+
throw new R(e, [o]);
|
|
38
38
|
}
|
|
39
|
-
const n =
|
|
39
|
+
const n = k(i);
|
|
40
40
|
if (!n.success) {
|
|
41
|
-
if (
|
|
42
|
-
|
|
41
|
+
if (t.continueOnError) {
|
|
42
|
+
t.onError?.(e, n.errors);
|
|
43
43
|
return;
|
|
44
44
|
}
|
|
45
|
-
throw new
|
|
45
|
+
throw new R(e, n.errors);
|
|
46
46
|
}
|
|
47
|
-
const
|
|
48
|
-
u.set(
|
|
47
|
+
const a = O(i);
|
|
48
|
+
u.set(a.name, a);
|
|
49
49
|
}
|
|
50
|
-
function
|
|
51
|
-
for (const [r,
|
|
52
|
-
const n = { ...
|
|
53
|
-
if (!
|
|
54
|
-
if (
|
|
55
|
-
|
|
50
|
+
function de(e, t = {}) {
|
|
51
|
+
for (const [r, i] of Object.entries(e)) {
|
|
52
|
+
const n = { ...i, name: r }, a = k(n);
|
|
53
|
+
if (!a.success) {
|
|
54
|
+
if (t.continueOnError) {
|
|
55
|
+
t.onError?.(r, a.errors);
|
|
56
56
|
continue;
|
|
57
57
|
}
|
|
58
|
-
throw new
|
|
58
|
+
throw new R(r, a.errors);
|
|
59
59
|
}
|
|
60
|
-
const
|
|
61
|
-
u.set(
|
|
60
|
+
const c = O(n);
|
|
61
|
+
u.set(c.name, c);
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
function h(
|
|
65
|
-
return u.get(
|
|
64
|
+
function h(e) {
|
|
65
|
+
return u.get(e);
|
|
66
66
|
}
|
|
67
67
|
function H() {
|
|
68
68
|
return Array.from(u.values());
|
|
69
69
|
}
|
|
70
|
-
function fe(
|
|
71
|
-
return u.has(
|
|
70
|
+
function fe(e) {
|
|
71
|
+
return u.has(e);
|
|
72
72
|
}
|
|
73
73
|
function ue() {
|
|
74
74
|
u.clear();
|
|
75
75
|
}
|
|
76
76
|
function ye() {
|
|
77
|
-
const
|
|
78
|
-
for (const
|
|
79
|
-
|
|
80
|
-
path: [
|
|
81
|
-
message: `References unknown doctype: ${
|
|
82
|
-
}), e.listDoctype && !u.has(e.listDoctype) && t.push({
|
|
83
|
-
path: [e.name, "listDoctype"],
|
|
84
|
-
message: `References unknown doctype: ${e.listDoctype}`
|
|
85
|
-
}), e.parentDoctype && !u.has(e.parentDoctype) && t.push({
|
|
86
|
-
path: [e.name, "parentDoctype"],
|
|
87
|
-
message: `References unknown doctype: ${e.parentDoctype}`
|
|
77
|
+
const e = [];
|
|
78
|
+
for (const t of u.values()) {
|
|
79
|
+
t.inherits && !u.has(t.inherits) && e.push({
|
|
80
|
+
path: [t.name, "inherits"],
|
|
81
|
+
message: `References unknown doctype: ${t.inherits}`
|
|
88
82
|
});
|
|
89
|
-
for (const r of
|
|
90
|
-
r.fieldtype === "Link" && typeof r.options == "string" && (u.has(r.options) ||
|
|
91
|
-
path: [
|
|
83
|
+
for (const r of t.fields)
|
|
84
|
+
r.fieldtype === "Link" && typeof r.options == "string" && (u.has(r.options) || e.push({
|
|
85
|
+
path: [t.name, "fields", r.fieldname, "options"],
|
|
92
86
|
message: `Link references unknown doctype: ${r.options}`
|
|
93
87
|
}));
|
|
94
88
|
}
|
|
95
|
-
return
|
|
89
|
+
return e;
|
|
96
90
|
}
|
|
97
91
|
const $ = /* @__PURE__ */ new Map();
|
|
98
|
-
function _(
|
|
99
|
-
$.set(
|
|
92
|
+
function _(e, t) {
|
|
93
|
+
$.set(e, t);
|
|
100
94
|
}
|
|
101
|
-
function
|
|
102
|
-
return $.get(
|
|
95
|
+
function v(e) {
|
|
96
|
+
return $.get(e);
|
|
103
97
|
}
|
|
104
|
-
function pe(
|
|
105
|
-
return $.has(
|
|
98
|
+
function pe(e) {
|
|
99
|
+
return $.has(e);
|
|
106
100
|
}
|
|
107
101
|
function me() {
|
|
108
102
|
$.clear();
|
|
109
103
|
}
|
|
110
|
-
const
|
|
111
|
-
const [r] =
|
|
112
|
-
for (const
|
|
113
|
-
|
|
104
|
+
const U = async (e, t) => {
|
|
105
|
+
const [r] = e, { doctype: i } = t, n = [];
|
|
106
|
+
for (const a of i.fields)
|
|
107
|
+
a.required && (r[a.fieldname] === void 0 || r[a.fieldname] === null) && n.push(a.label ?? a.fieldname);
|
|
114
108
|
if (n.length > 0)
|
|
115
109
|
throw new Error(`Missing required fields: ${n.join(", ")}`);
|
|
116
110
|
return { valid: !0 };
|
|
117
|
-
},
|
|
118
|
-
const [r] =
|
|
119
|
-
for (const
|
|
120
|
-
const
|
|
121
|
-
if (
|
|
122
|
-
const
|
|
123
|
-
|
|
111
|
+
}, Q = async (e, t) => {
|
|
112
|
+
const [r] = e, { doctype: i } = t, n = [];
|
|
113
|
+
for (const a of i.fields) {
|
|
114
|
+
const c = r[a.fieldname];
|
|
115
|
+
if (c == null) continue;
|
|
116
|
+
const o = P(a, c);
|
|
117
|
+
o && n.push(o);
|
|
124
118
|
}
|
|
119
|
+
if (i.links)
|
|
120
|
+
for (const [a, c] of Object.entries(i.links)) {
|
|
121
|
+
const o = r[a];
|
|
122
|
+
if (o == null) continue;
|
|
123
|
+
c.cardinality === "noneOrMany" || c.cardinality === "atLeastOne" ? Array.isArray(o) || n.push(`${a}: expected array, got ${typeof o}`) : (typeof o != "object" || Array.isArray(o)) && n.push(`${a}: expected object, got ${typeof o}`);
|
|
124
|
+
}
|
|
125
125
|
if (n.length > 0)
|
|
126
126
|
throw new Error(`Field type validation failed:
|
|
127
127
|
${n.join(`
|
|
128
128
|
`)}`);
|
|
129
129
|
return { valid: !0 };
|
|
130
130
|
};
|
|
131
|
-
function
|
|
132
|
-
const { fieldname: r, fieldtype:
|
|
133
|
-
switch (
|
|
131
|
+
function P(e, t) {
|
|
132
|
+
const { fieldname: r, fieldtype: i, cardinality: n } = e;
|
|
133
|
+
switch (i) {
|
|
134
134
|
case "Int":
|
|
135
|
-
if (typeof
|
|
136
|
-
return `${r}: expected integer, got ${typeof
|
|
135
|
+
if (typeof t != "number" || !Number.isInteger(t))
|
|
136
|
+
return `${r}: expected integer, got ${typeof t}`;
|
|
137
137
|
break;
|
|
138
138
|
case "Float":
|
|
139
139
|
case "Decimal":
|
|
140
140
|
case "Currency":
|
|
141
141
|
case "Quantity":
|
|
142
|
-
if (typeof
|
|
143
|
-
return `${r}: expected number, got ${typeof
|
|
142
|
+
if (typeof t != "number" && typeof t != "string")
|
|
143
|
+
return `${r}: expected number, got ${typeof t}`;
|
|
144
144
|
break;
|
|
145
145
|
case "Check":
|
|
146
|
-
if (typeof
|
|
147
|
-
return `${r}: expected boolean, got ${typeof
|
|
146
|
+
if (typeof t != "boolean")
|
|
147
|
+
return `${r}: expected boolean, got ${typeof t}`;
|
|
148
148
|
break;
|
|
149
149
|
case "Data":
|
|
150
150
|
case "Text":
|
|
151
151
|
case "Code":
|
|
152
152
|
case "Link":
|
|
153
|
-
if (typeof
|
|
154
|
-
return `${r}: expected string, got ${typeof
|
|
153
|
+
if (typeof t != "string")
|
|
154
|
+
return `${r}: expected string, got ${typeof t}`;
|
|
155
155
|
break;
|
|
156
156
|
case "Date":
|
|
157
157
|
case "Time":
|
|
158
158
|
case "Datetime":
|
|
159
|
-
if (typeof
|
|
160
|
-
return `${r}: expected date string or Date, got ${typeof
|
|
159
|
+
if (typeof t != "string" && !(t instanceof Date))
|
|
160
|
+
return `${r}: expected date string or Date, got ${typeof t}`;
|
|
161
161
|
break;
|
|
162
162
|
case "JSON":
|
|
163
|
-
if (typeof
|
|
164
|
-
return `${r}: expected object, got ${typeof
|
|
165
|
-
break;
|
|
166
|
-
case "Doctype":
|
|
167
|
-
if (n === "many") {
|
|
168
|
-
if (!Array.isArray(e))
|
|
169
|
-
return `${r}: expected array, got ${typeof e}`;
|
|
170
|
-
} else if (typeof e != "object" || Array.isArray(e))
|
|
171
|
-
return `${r}: expected object, got ${typeof e}`;
|
|
163
|
+
if (typeof t != "object")
|
|
164
|
+
return `${r}: expected object, got ${typeof t}`;
|
|
172
165
|
break;
|
|
173
166
|
}
|
|
174
167
|
return null;
|
|
175
168
|
}
|
|
176
|
-
const
|
|
177
|
-
validateRequiredFields:
|
|
178
|
-
validateFieldTypes:
|
|
179
|
-
noop:
|
|
169
|
+
const V = async () => ({ ok: !0 }), W = {
|
|
170
|
+
validateRequiredFields: U,
|
|
171
|
+
validateFieldTypes: Q,
|
|
172
|
+
noop: V
|
|
180
173
|
};
|
|
181
174
|
function ge() {
|
|
182
|
-
for (const [
|
|
183
|
-
_(
|
|
175
|
+
for (const [e, t] of Object.entries(W))
|
|
176
|
+
_(e, t);
|
|
184
177
|
}
|
|
185
|
-
const Se = (
|
|
186
|
-
const
|
|
178
|
+
const Se = (e) => {
|
|
179
|
+
const t = e.inflection?.recordFieldName ?? G, r = e.inflection?.connectionFieldName ?? z, i = e.inflection?.orderByTypeName ?? Y, n = e.inflection?.recordArgName ?? K, a = e.inflection?.recordArgType ?? X;
|
|
187
180
|
return I(() => ({
|
|
188
181
|
typeDefs: T`
|
|
189
182
|
type StonecropFieldMeta {
|
|
@@ -227,8 +220,6 @@ const Se = (t) => {
|
|
|
227
220
|
fields: [StonecropFieldMeta!]!
|
|
228
221
|
workflow: StonecropWorkflowMeta
|
|
229
222
|
inherits: String
|
|
230
|
-
listDoctype: String
|
|
231
|
-
parentDoctype: String
|
|
232
223
|
}
|
|
233
224
|
|
|
234
225
|
type StonecropRecordResult {
|
|
@@ -268,34 +259,34 @@ const Se = (t) => {
|
|
|
268
259
|
objects: {
|
|
269
260
|
Query: {
|
|
270
261
|
plans: {
|
|
271
|
-
stonecropMeta(
|
|
272
|
-
return q(
|
|
262
|
+
stonecropMeta(c, { $doctype: o }) {
|
|
263
|
+
return q(o, (l) => h(l) ?? null);
|
|
273
264
|
},
|
|
274
265
|
stonecropAllMeta() {
|
|
275
|
-
return
|
|
266
|
+
return F(H());
|
|
276
267
|
},
|
|
277
|
-
stonecropRecord(
|
|
278
|
-
return b(w({ doctype:
|
|
268
|
+
stonecropRecord(c, { $doctype: o, $id: l }) {
|
|
269
|
+
return b(w({ doctype: o, id: l }), async (y) => await Promise.all(
|
|
279
270
|
y.map(async (f) => {
|
|
280
271
|
const d = h(f.doctype);
|
|
281
272
|
if (!d)
|
|
282
273
|
throw new Error(`Unknown doctype: ${f.doctype}`);
|
|
283
274
|
if (!d.tableName)
|
|
284
275
|
throw new Error(`Doctype ${f.doctype} has no table mapping`);
|
|
285
|
-
const p = ee(d,
|
|
276
|
+
const p = ee(d, t, n, a), s = await e.executor.query(p, {
|
|
286
277
|
[n(d.tableName)]: f.id
|
|
287
278
|
});
|
|
288
279
|
return {
|
|
289
|
-
data: re(s, d,
|
|
280
|
+
data: re(s, d, t),
|
|
290
281
|
doctype: f.doctype
|
|
291
282
|
};
|
|
292
283
|
})
|
|
293
284
|
));
|
|
294
285
|
},
|
|
295
|
-
stonecropRecords(
|
|
286
|
+
stonecropRecords(c, { $doctype: o, $filters: l, $orderBy: y, $limit: f, $offset: d }) {
|
|
296
287
|
return b(
|
|
297
288
|
w({
|
|
298
|
-
doctype:
|
|
289
|
+
doctype: o,
|
|
299
290
|
filters: l,
|
|
300
291
|
orderBy: y,
|
|
301
292
|
limit: f,
|
|
@@ -316,8 +307,8 @@ const Se = (t) => {
|
|
|
316
307
|
orderBy: s.orderBy
|
|
317
308
|
},
|
|
318
309
|
r,
|
|
319
|
-
|
|
320
|
-
), N = await
|
|
310
|
+
i
|
|
311
|
+
), N = await e.executor.query(S, {
|
|
321
312
|
limit: s.limit,
|
|
322
313
|
offset: s.offset,
|
|
323
314
|
orderBy: s.orderBy
|
|
@@ -335,10 +326,10 @@ const Se = (t) => {
|
|
|
335
326
|
},
|
|
336
327
|
Mutation: {
|
|
337
328
|
plans: {
|
|
338
|
-
stonecropAction(
|
|
329
|
+
stonecropAction(c, { $doctype: o, $action: l, $args: y }) {
|
|
339
330
|
return b(
|
|
340
331
|
w({
|
|
341
|
-
doctype:
|
|
332
|
+
doctype: o,
|
|
342
333
|
action: l,
|
|
343
334
|
actionArgs: y
|
|
344
335
|
}),
|
|
@@ -358,7 +349,7 @@ const Se = (t) => {
|
|
|
358
349
|
data: null,
|
|
359
350
|
error: `Unknown action: ${d.action} on ${d.doctype}`
|
|
360
351
|
};
|
|
361
|
-
const m = s.handler, S =
|
|
352
|
+
const m = s.handler, S = v(m);
|
|
362
353
|
if (!S)
|
|
363
354
|
return {
|
|
364
355
|
success: !1,
|
|
@@ -367,7 +358,7 @@ const Se = (t) => {
|
|
|
367
358
|
};
|
|
368
359
|
const N = {
|
|
369
360
|
doctype: p,
|
|
370
|
-
executor:
|
|
361
|
+
executor: e.executor
|
|
371
362
|
};
|
|
372
363
|
try {
|
|
373
364
|
return {
|
|
@@ -391,44 +382,44 @@ const Se = (t) => {
|
|
|
391
382
|
}
|
|
392
383
|
}));
|
|
393
384
|
};
|
|
394
|
-
function
|
|
395
|
-
const
|
|
396
|
-
return `${
|
|
385
|
+
function G(e) {
|
|
386
|
+
const t = J.singular(e);
|
|
387
|
+
return `${j(t)}ById`;
|
|
397
388
|
}
|
|
398
|
-
function
|
|
399
|
-
return `all${
|
|
389
|
+
function z(e) {
|
|
390
|
+
return `all${D(e)}`;
|
|
400
391
|
}
|
|
401
|
-
function
|
|
402
|
-
return `${
|
|
392
|
+
function Y(e) {
|
|
393
|
+
return `${D(e)}OrderBy`;
|
|
403
394
|
}
|
|
404
|
-
function
|
|
395
|
+
function K(e) {
|
|
405
396
|
return "id";
|
|
406
397
|
}
|
|
407
|
-
function
|
|
398
|
+
function X(e) {
|
|
408
399
|
return "UUID!";
|
|
409
400
|
}
|
|
410
|
-
const
|
|
411
|
-
function A(
|
|
412
|
-
return
|
|
401
|
+
const Z = /* @__PURE__ */ new Set(["Link"]);
|
|
402
|
+
function A(e) {
|
|
403
|
+
return e.fields.filter((t) => !Z.has(t.fieldtype)).map((t) => t.fieldname).join(`
|
|
413
404
|
`);
|
|
414
405
|
}
|
|
415
|
-
function ee(
|
|
416
|
-
const n = A(
|
|
406
|
+
function ee(e, t, r, i) {
|
|
407
|
+
const n = A(e), a = t(e.tableName), c = r(e.tableName), o = i(e.tableName);
|
|
417
408
|
return `
|
|
418
|
-
query GetRecord($${
|
|
419
|
-
${
|
|
409
|
+
query GetRecord($${c}: ${o}) {
|
|
410
|
+
${a}(${c}: $${c}) {
|
|
420
411
|
${n}
|
|
421
412
|
}
|
|
422
413
|
}
|
|
423
414
|
`;
|
|
424
415
|
}
|
|
425
|
-
function te(
|
|
426
|
-
const n = A(
|
|
427
|
-
|
|
428
|
-
const y =
|
|
416
|
+
function te(e, t, r, i) {
|
|
417
|
+
const n = A(e), a = r(e.tableName), c = i(e.tableName), o = [], l = [];
|
|
418
|
+
t.limit && (o.push("$limit: Int"), l.push("first: $limit")), t.offset && (o.push("$offset: Int"), l.push("offset: $offset")), t.orderBy && (o.push(`$orderBy: [${c}!]`), l.push("orderBy: $orderBy"));
|
|
419
|
+
const y = o.length > 0 ? `(${o.join(", ")})` : "", f = l.length > 0 ? `(${l.join(", ")})` : "";
|
|
429
420
|
return `
|
|
430
421
|
query GetRecords${y} {
|
|
431
|
-
${
|
|
422
|
+
${a}${f} {
|
|
432
423
|
nodes {
|
|
433
424
|
${n}
|
|
434
425
|
}
|
|
@@ -436,35 +427,33 @@ function te(t, e, r, o) {
|
|
|
436
427
|
}
|
|
437
428
|
`;
|
|
438
429
|
}
|
|
439
|
-
function re(
|
|
440
|
-
const
|
|
441
|
-
return
|
|
430
|
+
function re(e, t, r) {
|
|
431
|
+
const i = r(t.tableName);
|
|
432
|
+
return e[i];
|
|
442
433
|
}
|
|
443
|
-
function ne(
|
|
444
|
-
const
|
|
445
|
-
return
|
|
434
|
+
function ne(e, t, r) {
|
|
435
|
+
const i = r(t.tableName);
|
|
436
|
+
return e[i]?.nodes ?? [];
|
|
446
437
|
}
|
|
447
438
|
export {
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
ee as buildRecordQuery,
|
|
452
|
-
G as builtinHandlers,
|
|
439
|
+
R as DoctypeValidationError,
|
|
440
|
+
Z as RELATION_FIELDTYPES,
|
|
441
|
+
W as builtinHandlers,
|
|
453
442
|
me as clearHandlers,
|
|
454
443
|
ue as clearRegistry,
|
|
455
444
|
Se as createStonecropPlugin,
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
445
|
+
z as defaultConnectionFieldName,
|
|
446
|
+
Y as defaultOrderByTypeName,
|
|
447
|
+
K as defaultRecordArgName,
|
|
448
|
+
X as defaultRecordArgType,
|
|
449
|
+
G as defaultRecordFieldName,
|
|
461
450
|
H as getAllMeta,
|
|
462
|
-
|
|
451
|
+
v as getHandler,
|
|
463
452
|
h as getMeta,
|
|
464
453
|
pe as hasHandler,
|
|
465
454
|
fe as hasMeta,
|
|
466
455
|
L as loadDoctypes,
|
|
467
|
-
|
|
456
|
+
de as loadDoctypesFromObject,
|
|
468
457
|
A as queryableFieldNames,
|
|
469
458
|
ge as registerBuiltinHandlers,
|
|
470
459
|
_ as registerHandler,
|