@snowtop/ent 0.1.0-alpha15 → 0.1.0-alpha151
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/action/action.d.ts +27 -16
- package/action/action.js +22 -7
- package/action/executor.d.ts +16 -3
- package/action/executor.js +90 -23
- package/action/experimental_action.d.ts +25 -16
- package/action/experimental_action.js +35 -9
- package/action/index.d.ts +3 -1
- package/action/index.js +7 -1
- package/action/operations.d.ts +125 -0
- package/action/operations.js +684 -0
- package/action/orchestrator.d.ts +38 -12
- package/action/orchestrator.js +427 -102
- package/action/relative_value.d.ts +47 -0
- package/action/relative_value.js +125 -0
- package/action/transaction.d.ts +10 -0
- package/action/transaction.js +23 -0
- package/auth/auth.d.ts +1 -1
- package/core/base.d.ts +52 -21
- package/core/base.js +7 -1
- package/core/clause.d.ts +95 -40
- package/core/clause.js +395 -64
- package/core/config.d.ts +15 -1
- package/core/config.js +10 -1
- package/core/const.d.ts +3 -0
- package/core/const.js +6 -0
- package/core/context.d.ts +4 -2
- package/core/context.js +20 -2
- package/core/convert.d.ts +1 -1
- package/core/date.js +1 -5
- package/core/db.d.ts +12 -8
- package/core/db.js +18 -8
- package/core/ent.d.ts +68 -94
- package/core/ent.js +538 -587
- package/core/global_schema.d.ts +7 -0
- package/core/global_schema.js +51 -0
- package/core/loaders/assoc_count_loader.d.ts +1 -0
- package/core/loaders/assoc_count_loader.js +10 -2
- package/core/loaders/assoc_edge_loader.d.ts +1 -1
- package/core/loaders/assoc_edge_loader.js +10 -13
- package/core/loaders/index.d.ts +1 -1
- package/core/loaders/index.js +1 -3
- package/core/loaders/index_loader.d.ts +3 -3
- package/core/loaders/loader.d.ts +2 -2
- package/core/loaders/loader.js +5 -5
- package/core/loaders/object_loader.d.ts +30 -9
- package/core/loaders/object_loader.js +225 -78
- package/core/loaders/query_loader.d.ts +6 -12
- package/core/loaders/query_loader.js +54 -13
- package/core/loaders/raw_count_loader.d.ts +1 -0
- package/core/loaders/raw_count_loader.js +7 -2
- package/core/logger.d.ts +1 -1
- package/core/logger.js +1 -0
- package/core/privacy.d.ts +7 -6
- package/core/privacy.js +21 -25
- package/core/query/assoc_query.d.ts +3 -2
- package/core/query/assoc_query.js +9 -1
- package/core/query/custom_clause_query.d.ts +27 -0
- package/core/query/custom_clause_query.js +88 -0
- package/core/query/custom_query.d.ts +17 -2
- package/core/query/custom_query.js +88 -13
- package/core/query/index.d.ts +1 -0
- package/core/query/index.js +3 -1
- package/core/query/query.d.ts +15 -3
- package/core/query/query.js +128 -53
- package/core/query/shared_assoc_test.d.ts +2 -1
- package/core/query/shared_assoc_test.js +44 -54
- package/core/query/shared_test.d.ts +8 -1
- package/core/query/shared_test.js +532 -236
- package/core/viewer.d.ts +2 -0
- package/core/viewer.js +3 -1
- package/graphql/graphql.d.ts +52 -19
- package/graphql/graphql.js +174 -136
- package/graphql/graphql_field_helpers.d.ts +7 -1
- package/graphql/graphql_field_helpers.js +21 -1
- package/graphql/index.d.ts +2 -2
- package/graphql/index.js +3 -5
- package/graphql/query/connection_type.d.ts +9 -9
- package/graphql/query/shared_assoc_test.js +1 -1
- package/graphql/query/shared_edge_connection.js +1 -19
- package/graphql/scalars/orderby_direction.d.ts +2 -0
- package/graphql/scalars/orderby_direction.js +15 -0
- package/imports/dataz/example1/_auth.js +128 -47
- package/imports/dataz/example1/_viewer.js +87 -39
- package/imports/index.d.ts +7 -2
- package/imports/index.js +20 -5
- package/index.d.ts +18 -5
- package/index.js +30 -10
- package/package.json +18 -17
- package/parse_schema/parse.d.ts +31 -9
- package/parse_schema/parse.js +179 -32
- package/schema/base_schema.d.ts +13 -3
- package/schema/base_schema.js +13 -0
- package/schema/field.d.ts +78 -21
- package/schema/field.js +231 -71
- package/schema/index.d.ts +2 -2
- package/schema/index.js +7 -2
- package/schema/json_field.d.ts +16 -4
- package/schema/json_field.js +32 -2
- package/schema/schema.d.ts +109 -20
- package/schema/schema.js +42 -53
- package/schema/struct_field.d.ts +15 -3
- package/schema/struct_field.js +117 -22
- package/schema/union_field.d.ts +1 -1
- package/scripts/custom_compiler.js +12 -8
- package/scripts/custom_graphql.js +145 -34
- package/scripts/migrate_v0.1.js +36 -0
- package/scripts/move_types.js +120 -0
- package/scripts/read_schema.js +22 -7
- package/testutils/action/complex_schemas.d.ts +69 -0
- package/testutils/action/complex_schemas.js +405 -0
- package/testutils/builder.d.ts +39 -43
- package/testutils/builder.js +75 -49
- package/testutils/db/fixture.d.ts +10 -0
- package/testutils/db/fixture.js +26 -0
- package/testutils/db/{test_db.d.ts → temp_db.d.ts} +32 -8
- package/testutils/db/{test_db.js → temp_db.js} +244 -48
- package/testutils/db/value.d.ts +7 -0
- package/testutils/db/value.js +251 -0
- package/testutils/db_mock.d.ts +16 -4
- package/testutils/db_mock.js +52 -9
- package/testutils/db_time_zone.d.ts +4 -0
- package/testutils/db_time_zone.js +41 -0
- package/testutils/ent-graphql-tests/index.d.ts +7 -1
- package/testutils/ent-graphql-tests/index.js +56 -26
- package/testutils/fake_comms.js +1 -1
- package/testutils/fake_data/const.d.ts +2 -1
- package/testutils/fake_data/const.js +3 -0
- package/testutils/fake_data/fake_contact.d.ts +7 -3
- package/testutils/fake_data/fake_contact.js +13 -7
- package/testutils/fake_data/fake_event.d.ts +4 -1
- package/testutils/fake_data/fake_event.js +7 -6
- package/testutils/fake_data/fake_tag.d.ts +36 -0
- package/testutils/fake_data/fake_tag.js +89 -0
- package/testutils/fake_data/fake_user.d.ts +8 -5
- package/testutils/fake_data/fake_user.js +16 -15
- package/testutils/fake_data/index.js +5 -1
- package/testutils/fake_data/internal.d.ts +2 -0
- package/testutils/fake_data/internal.js +7 -1
- package/testutils/fake_data/tag_query.d.ts +13 -0
- package/testutils/fake_data/tag_query.js +43 -0
- package/testutils/fake_data/test_helpers.d.ts +11 -4
- package/testutils/fake_data/test_helpers.js +29 -13
- package/testutils/fake_data/user_query.d.ts +11 -4
- package/testutils/fake_data/user_query.js +54 -22
- package/testutils/fake_log.js +1 -1
- package/testutils/parse_sql.d.ts +6 -0
- package/testutils/parse_sql.js +16 -2
- package/testutils/test_edge_global_schema.d.ts +15 -0
- package/testutils/test_edge_global_schema.js +62 -0
- package/testutils/write.d.ts +2 -2
- package/testutils/write.js +33 -7
- package/tsc/ast.d.ts +25 -2
- package/tsc/ast.js +141 -17
- package/tsc/compilerOptions.js +5 -1
- package/tsc/move_generated.d.ts +1 -0
- package/tsc/move_generated.js +164 -0
- package/tsc/transform.d.ts +22 -0
- package/tsc/transform.js +182 -0
- package/tsc/transform_action.d.ts +22 -0
- package/tsc/transform_action.js +183 -0
- package/tsc/transform_ent.d.ts +17 -0
- package/tsc/transform_ent.js +60 -0
- package/tsc/transform_schema.d.ts +27 -0
- package/{scripts → tsc}/transform_schema.js +146 -117
- package/graphql/enums.d.ts +0 -3
- package/graphql/enums.js +0 -25
- package/scripts/move_generated.js +0 -142
- package/scripts/transform_code.js +0 -113
- package/scripts/transform_schema.d.ts +0 -1
- /package/scripts/{move_generated.d.ts → migrate_v0.1.d.ts} +0 -0
- /package/scripts/{transform_code.d.ts → move_types.d.ts} +0 -0
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.commonTests = void 0;
|
|
4
|
-
const pg_1 = require("pg");
|
|
5
4
|
const viewer_1 = require("../../core/viewer");
|
|
6
5
|
const ent_1 = require("../../core/ent");
|
|
7
|
-
const db_mock_1 = require("../../testutils/db_mock");
|
|
8
6
|
const edge_connection_1 = require("./edge_connection");
|
|
9
7
|
const test_helpers_1 = require("../../testutils/fake_data/test_helpers");
|
|
10
|
-
jest.mock("pg");
|
|
11
|
-
db_mock_1.QueryRecorder.mockPool(pg_1.Pool);
|
|
12
8
|
class TestConnection {
|
|
13
9
|
constructor(getQuery, ents, filter) {
|
|
14
10
|
this.getQuery = getQuery;
|
|
@@ -48,23 +44,9 @@ class TestConnection {
|
|
|
48
44
|
}
|
|
49
45
|
const commonTests = (opts) => {
|
|
50
46
|
function getCursorFrom(contacts, idx) {
|
|
51
|
-
// we depend on the fact that the same time is used for the edge and created_at
|
|
52
|
-
// based on getContactBuilder
|
|
53
|
-
// so regardless of if we're doing assoc or custom queries, we can get the time
|
|
54
|
-
// from the created_at field
|
|
55
47
|
return (0, ent_1.getCursor)({
|
|
56
48
|
row: contacts[idx],
|
|
57
|
-
col: "
|
|
58
|
-
conv: (t) => {
|
|
59
|
-
//sqlite
|
|
60
|
-
if (typeof t === "string") {
|
|
61
|
-
return Date.parse(t);
|
|
62
|
-
}
|
|
63
|
-
return t.getTime();
|
|
64
|
-
},
|
|
65
|
-
// we want the right column to be encoded in the cursor as opposed e.g. time for
|
|
66
|
-
// assoc queries, created_at for index/custom queries
|
|
67
|
-
cursorKey: opts.sortCol,
|
|
49
|
+
col: "id",
|
|
68
50
|
});
|
|
69
51
|
}
|
|
70
52
|
describe("no filters", () => {
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GraphQLOrderByDirection = void 0;
|
|
4
|
+
const graphql_1 = require("graphql");
|
|
5
|
+
exports.GraphQLOrderByDirection = new graphql_1.GraphQLEnumType({
|
|
6
|
+
name: "OrderByDirection",
|
|
7
|
+
values: {
|
|
8
|
+
ASC: {
|
|
9
|
+
value: "asc",
|
|
10
|
+
},
|
|
11
|
+
DESC: {
|
|
12
|
+
value: "desc",
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
});
|
|
@@ -1,54 +1,135 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
3
|
+
function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
|
|
4
|
+
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
5
|
+
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
6
|
+
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
7
|
+
var _, done = false;
|
|
8
|
+
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
9
|
+
var context = {};
|
|
10
|
+
for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
|
|
11
|
+
for (var p in contextIn.access) context.access[p] = contextIn.access[p];
|
|
12
|
+
context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
|
|
13
|
+
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
|
14
|
+
if (kind === "accessor") {
|
|
15
|
+
if (result === void 0) continue;
|
|
16
|
+
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
|
|
17
|
+
if (_ = accept(result.get)) descriptor.get = _;
|
|
18
|
+
if (_ = accept(result.set)) descriptor.set = _;
|
|
19
|
+
if (_ = accept(result.init)) initializers.push(_);
|
|
20
|
+
}
|
|
21
|
+
else if (_ = accept(result)) {
|
|
22
|
+
if (kind === "field") initializers.push(_);
|
|
23
|
+
else descriptor[key] = _;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
27
|
+
done = true;
|
|
7
28
|
};
|
|
8
|
-
var
|
|
9
|
-
|
|
29
|
+
var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) {
|
|
30
|
+
var useValue = arguments.length > 2;
|
|
31
|
+
for (var i = 0; i < initializers.length; i++) {
|
|
32
|
+
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
33
|
+
}
|
|
34
|
+
return useValue ? value : void 0;
|
|
10
35
|
};
|
|
11
|
-
var
|
|
12
|
-
|
|
36
|
+
var __setFunctionName = (this && this.__setFunctionName) || function (f, name, prefix) {
|
|
37
|
+
if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
|
|
38
|
+
return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
|
|
13
39
|
};
|
|
14
40
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
41
|
const graphql_1 = require("../../../graphql/graphql");
|
|
16
42
|
const graphql_2 = require("graphql");
|
|
17
|
-
let UserAuthInput =
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
UserAuthInput =
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
(
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
]
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
43
|
+
let UserAuthInput = (() => {
|
|
44
|
+
let _classDecorators = [(0, graphql_1.gqlInputObjectType)()];
|
|
45
|
+
let _classDescriptor;
|
|
46
|
+
let _classExtraInitializers = [];
|
|
47
|
+
let _classThis;
|
|
48
|
+
let _instanceExtraInitializers = [];
|
|
49
|
+
let _emailAddress_decorators;
|
|
50
|
+
let _emailAddress_initializers = [];
|
|
51
|
+
let _password_decorators;
|
|
52
|
+
let _password_initializers = [];
|
|
53
|
+
var UserAuthInput = _classThis = class {
|
|
54
|
+
constructor() {
|
|
55
|
+
this.emailAddress = (__runInitializers(this, _instanceExtraInitializers), __runInitializers(this, _emailAddress_initializers, void 0));
|
|
56
|
+
this.password = __runInitializers(this, _password_initializers, void 0);
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
__setFunctionName(_classThis, "UserAuthInput");
|
|
60
|
+
(() => {
|
|
61
|
+
_emailAddress_decorators = [(0, graphql_1.gqlField)({
|
|
62
|
+
class: "UserAuthInput",
|
|
63
|
+
type: graphql_2.GraphQLString,
|
|
64
|
+
})];
|
|
65
|
+
_password_decorators = [(0, graphql_1.gqlField)({
|
|
66
|
+
class: "UserAuthInput",
|
|
67
|
+
type: graphql_2.GraphQLString,
|
|
68
|
+
})];
|
|
69
|
+
__esDecorate(null, null, _emailAddress_decorators, { kind: "field", name: "emailAddress", static: false, private: false, access: { has: obj => "emailAddress" in obj, get: obj => obj.emailAddress, set: (obj, value) => { obj.emailAddress = value; } } }, _emailAddress_initializers, _instanceExtraInitializers);
|
|
70
|
+
__esDecorate(null, null, _password_decorators, { kind: "field", name: "password", static: false, private: false, access: { has: obj => "password" in obj, get: obj => obj.password, set: (obj, value) => { obj.password = value; } } }, _password_initializers, _instanceExtraInitializers);
|
|
71
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name }, null, _classExtraInitializers);
|
|
72
|
+
UserAuthInput = _classThis = _classDescriptor.value;
|
|
73
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
74
|
+
})();
|
|
75
|
+
return UserAuthInput = _classThis;
|
|
76
|
+
})();
|
|
77
|
+
let UserAuthResponse = (() => {
|
|
78
|
+
let _classDecorators_1 = [(0, graphql_1.gqlObjectType)()];
|
|
79
|
+
let _classDescriptor_1;
|
|
80
|
+
let _classExtraInitializers_1 = [];
|
|
81
|
+
let _classThis_1;
|
|
82
|
+
let _instanceExtraInitializers_1 = [];
|
|
83
|
+
let _token_decorators;
|
|
84
|
+
let _token_initializers = [];
|
|
85
|
+
let _viewerID_decorators;
|
|
86
|
+
let _viewerID_initializers = [];
|
|
87
|
+
var UserAuthResponse = _classThis_1 = class {
|
|
88
|
+
constructor() {
|
|
89
|
+
this.token = (__runInitializers(this, _instanceExtraInitializers_1), __runInitializers(this, _token_initializers, void 0));
|
|
90
|
+
this.viewerID = __runInitializers(this, _viewerID_initializers, void 0);
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
__setFunctionName(_classThis_1, "UserAuthResponse");
|
|
94
|
+
(() => {
|
|
95
|
+
_token_decorators = [(0, graphql_1.gqlField)({
|
|
96
|
+
class: "UserAuthResponse",
|
|
97
|
+
type: graphql_2.GraphQLString,
|
|
98
|
+
})];
|
|
99
|
+
_viewerID_decorators = [(0, graphql_1.gqlField)({ class: "UserAuthResponses", type: graphql_2.GraphQLID })];
|
|
100
|
+
__esDecorate(null, null, _token_decorators, { kind: "field", name: "token", static: false, private: false, access: { has: obj => "token" in obj, get: obj => obj.token, set: (obj, value) => { obj.token = value; } } }, _token_initializers, _instanceExtraInitializers_1);
|
|
101
|
+
__esDecorate(null, null, _viewerID_decorators, { kind: "field", name: "viewerID", static: false, private: false, access: { has: obj => "viewerID" in obj, get: obj => obj.viewerID, set: (obj, value) => { obj.viewerID = value; } } }, _viewerID_initializers, _instanceExtraInitializers_1);
|
|
102
|
+
__esDecorate(null, _classDescriptor_1 = { value: _classThis_1 }, _classDecorators_1, { kind: "class", name: _classThis_1.name }, null, _classExtraInitializers_1);
|
|
103
|
+
UserAuthResponse = _classThis_1 = _classDescriptor_1.value;
|
|
104
|
+
__runInitializers(_classThis_1, _classExtraInitializers_1);
|
|
105
|
+
})();
|
|
106
|
+
return UserAuthResponse = _classThis_1;
|
|
107
|
+
})();
|
|
108
|
+
let AuthResolver = (() => {
|
|
109
|
+
var _a;
|
|
110
|
+
let _instanceExtraInitializers_2 = [];
|
|
111
|
+
let _userAuth_decorators;
|
|
112
|
+
return _a = class AuthResolver {
|
|
113
|
+
async userAuth(input) {
|
|
114
|
+
throw new Error("not implemented");
|
|
115
|
+
}
|
|
116
|
+
constructor() {
|
|
117
|
+
__runInitializers(this, _instanceExtraInitializers_2);
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
(() => {
|
|
121
|
+
_userAuth_decorators = [(0, graphql_1.gqlMutation)({
|
|
122
|
+
class: "AuthResolver",
|
|
123
|
+
name: "userAuth",
|
|
124
|
+
type: UserAuthResponse,
|
|
125
|
+
args: [
|
|
126
|
+
{
|
|
127
|
+
name: "input",
|
|
128
|
+
type: UserAuthInput,
|
|
129
|
+
},
|
|
130
|
+
],
|
|
131
|
+
})];
|
|
132
|
+
__esDecorate(_a, null, _userAuth_decorators, { kind: "method", name: "userAuth", static: false, private: false, access: { has: obj => "userAuth" in obj, get: obj => obj.userAuth } }, null, _instanceExtraInitializers_2);
|
|
133
|
+
})(),
|
|
134
|
+
_a;
|
|
135
|
+
})();
|
|
@@ -1,46 +1,94 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) {
|
|
3
|
+
var useValue = arguments.length > 2;
|
|
4
|
+
for (var i = 0; i < initializers.length; i++) {
|
|
5
|
+
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
6
|
+
}
|
|
7
|
+
return useValue ? value : void 0;
|
|
7
8
|
};
|
|
8
|
-
var
|
|
9
|
-
if (
|
|
9
|
+
var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
10
|
+
function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
|
|
11
|
+
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
12
|
+
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
13
|
+
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
14
|
+
var _, done = false;
|
|
15
|
+
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
16
|
+
var context = {};
|
|
17
|
+
for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
|
|
18
|
+
for (var p in contextIn.access) context.access[p] = contextIn.access[p];
|
|
19
|
+
context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
|
|
20
|
+
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
|
21
|
+
if (kind === "accessor") {
|
|
22
|
+
if (result === void 0) continue;
|
|
23
|
+
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
|
|
24
|
+
if (_ = accept(result.get)) descriptor.get = _;
|
|
25
|
+
if (_ = accept(result.set)) descriptor.set = _;
|
|
26
|
+
if (_ = accept(result.init)) initializers.push(_);
|
|
27
|
+
}
|
|
28
|
+
else if (_ = accept(result)) {
|
|
29
|
+
if (kind === "field") initializers.push(_);
|
|
30
|
+
else descriptor[key] = _;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
34
|
+
done = true;
|
|
10
35
|
};
|
|
11
|
-
var
|
|
12
|
-
|
|
36
|
+
var __setFunctionName = (this && this.__setFunctionName) || function (f, name, prefix) {
|
|
37
|
+
if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
|
|
38
|
+
return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
|
|
13
39
|
};
|
|
14
40
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
41
|
const graphql_1 = require("../../../graphql/graphql");
|
|
16
42
|
const graphql_2 = require("graphql");
|
|
17
|
-
let ViewerType =
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
exports.default =
|
|
43
|
+
let ViewerType = (() => {
|
|
44
|
+
let _classDecorators = [(0, graphql_1.gqlObjectType)({ name: "Viewer" })];
|
|
45
|
+
let _classDescriptor;
|
|
46
|
+
let _classExtraInitializers = [];
|
|
47
|
+
let _classThis;
|
|
48
|
+
let _instanceExtraInitializers = [];
|
|
49
|
+
let _get_viewerID_decorators;
|
|
50
|
+
var ViewerType = _classThis = class {
|
|
51
|
+
constructor(viewer) {
|
|
52
|
+
this.viewer = (__runInitializers(this, _instanceExtraInitializers), viewer);
|
|
53
|
+
}
|
|
54
|
+
get viewerID() {
|
|
55
|
+
return this.viewer.viewerID;
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
__setFunctionName(_classThis, "ViewerType");
|
|
59
|
+
(() => {
|
|
60
|
+
_get_viewerID_decorators = [(0, graphql_1.gqlField)({
|
|
61
|
+
class: "ViewerType",
|
|
62
|
+
type: graphql_2.GraphQLID,
|
|
63
|
+
nullable: true,
|
|
64
|
+
})];
|
|
65
|
+
__esDecorate(_classThis, null, _get_viewerID_decorators, { kind: "getter", name: "viewerID", static: false, private: false, access: { has: obj => "viewerID" in obj, get: obj => obj.viewerID } }, null, _instanceExtraInitializers);
|
|
66
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name }, null, _classExtraInitializers);
|
|
67
|
+
ViewerType = _classThis = _classDescriptor.value;
|
|
68
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
69
|
+
})();
|
|
70
|
+
return ViewerType = _classThis;
|
|
71
|
+
})();
|
|
72
|
+
exports.default = (() => {
|
|
73
|
+
var _a;
|
|
74
|
+
let _instanceExtraInitializers_1 = [];
|
|
75
|
+
let _viewer_decorators;
|
|
76
|
+
return _a = class ViewerResolver {
|
|
77
|
+
viewer(context) {
|
|
78
|
+
return new ViewerType(context.getViewer());
|
|
79
|
+
}
|
|
80
|
+
constructor() {
|
|
81
|
+
__runInitializers(this, _instanceExtraInitializers_1);
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
(() => {
|
|
85
|
+
_viewer_decorators = [(0, graphql_1.gqlQuery)({
|
|
86
|
+
class: "ViewerResolver",
|
|
87
|
+
name: "viewer",
|
|
88
|
+
type: ViewerType,
|
|
89
|
+
args: [(0, graphql_1.gqlContextType)()],
|
|
90
|
+
})];
|
|
91
|
+
__esDecorate(_a, null, _viewer_decorators, { kind: "method", name: "viewer", static: false, private: false, access: { has: obj => "viewer" in obj, get: obj => obj.viewer } }, null, _instanceExtraInitializers_1);
|
|
92
|
+
})(),
|
|
93
|
+
_a;
|
|
94
|
+
})();
|
package/imports/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export interface Options {
|
|
2
2
|
filter?: (file: string, index: number, array: string[]) => boolean;
|
|
3
|
-
|
|
3
|
+
justCurrentDir?: boolean;
|
|
4
|
+
ignore?: string | string[] | undefined;
|
|
4
5
|
}
|
|
5
6
|
export interface PathResult {
|
|
6
7
|
m: Map<string, file[]>;
|
|
@@ -10,7 +11,11 @@ interface classResult {
|
|
|
10
11
|
class: classInfo;
|
|
11
12
|
file: file;
|
|
12
13
|
}
|
|
13
|
-
|
|
14
|
+
interface ParseInput {
|
|
15
|
+
root: string;
|
|
16
|
+
opts?: Options;
|
|
17
|
+
}
|
|
18
|
+
export declare function parseCustomImports(filePath: string, inputs: ParseInput[]): PathResult;
|
|
14
19
|
export interface importInfo {
|
|
15
20
|
name: string;
|
|
16
21
|
importPath: string;
|
package/imports/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -23,7 +27,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
23
27
|
};
|
|
24
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
29
|
exports.parseCustomImports = void 0;
|
|
26
|
-
const
|
|
30
|
+
const glob = __importStar(require("glob"));
|
|
27
31
|
const typescript_1 = __importDefault(require("typescript"));
|
|
28
32
|
const fs = __importStar(require("fs"));
|
|
29
33
|
const path = __importStar(require("path"));
|
|
@@ -34,7 +38,11 @@ function getFiles(filePath, opts) {
|
|
|
34
38
|
}
|
|
35
39
|
// graphql path should be passed to this
|
|
36
40
|
// this is more agnostic about what it expect here
|
|
37
|
-
let
|
|
41
|
+
let pattern = `${filePath}/**/*.ts`;
|
|
42
|
+
if (opts?.justCurrentDir) {
|
|
43
|
+
pattern = `${filePath}/**.ts`;
|
|
44
|
+
}
|
|
45
|
+
let files = glob.sync(pattern, {
|
|
38
46
|
ignore: opts?.ignore,
|
|
39
47
|
});
|
|
40
48
|
if (opts?.filter) {
|
|
@@ -42,8 +50,15 @@ function getFiles(filePath, opts) {
|
|
|
42
50
|
}
|
|
43
51
|
return files;
|
|
44
52
|
}
|
|
45
|
-
function parseCustomImports(filePath,
|
|
46
|
-
const files =
|
|
53
|
+
function parseCustomImports(filePath, inputs) {
|
|
54
|
+
const files = [];
|
|
55
|
+
// simplifies tests and other simple callsites
|
|
56
|
+
if (inputs.length === 0) {
|
|
57
|
+
inputs.push({ root: filePath });
|
|
58
|
+
}
|
|
59
|
+
for (const input of inputs) {
|
|
60
|
+
files.push(...getFiles(input.root, input.opts));
|
|
61
|
+
}
|
|
47
62
|
const options = (0, compilerOptions_1.readCompilerOptions)(filePath);
|
|
48
63
|
let classMap = new Map();
|
|
49
64
|
files.forEach((file) => {
|
package/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export * from "./core/base";
|
|
2
|
-
export { loadEnt, loadCustomData, loadCustomEnts, loadEntX, loadEnts, CustomQuery, loadDerivedEnt, loadDerivedEntX, loadEntViaKey, loadEntXViaKey, performRawQuery, loadRowX, loadRow, loadRows,
|
|
2
|
+
export { loadEnt, loadCustomData, loadCustomEnts, loadCustomCount, loadEntX, loadEnts, CustomQuery, loadDerivedEnt, loadDerivedEntX, loadEntViaKey, loadEntXViaKey, performRawQuery, loadRowX, loadRow, loadRows, AssocEdge, AssocEdgeData, loadEdgeData, loadEdgeDatas, loadEdges, loadUniqueEdge, loadUniqueNode, loadRawEdgeCountX, loadEdgeForID2, loadNodesByEdge, getEdgeTypeInGroup, } from "./core/ent";
|
|
3
|
+
export { DataOperation, EditNodeOptions, EditNodeOperation, RawQueryOperation, EdgeOperation, DeleteNodeOperation, AssocEdgeInputOptions, AssocEdgeInput, } from "./action/operations";
|
|
4
|
+
export { setGlobalSchema } from "./core/global_schema";
|
|
3
5
|
import DB from "./core/db";
|
|
4
6
|
export * from "./core/loaders";
|
|
5
7
|
export { DB };
|
|
@@ -7,23 +9,34 @@ export { EntPrivacyError, AlwaysAllowRule, AlwaysDenyRule, DenyIfLoggedInRule, D
|
|
|
7
9
|
export * from "./core/query";
|
|
8
10
|
export * from "./schema/";
|
|
9
11
|
import * as q from "./core/clause";
|
|
12
|
+
export { Clause } from "./core/clause";
|
|
10
13
|
declare const query: {
|
|
11
14
|
Eq: typeof q.Eq;
|
|
12
15
|
NotEq: typeof q.NotEq;
|
|
13
16
|
And: typeof q.And;
|
|
14
17
|
AndOptional: typeof q.AndOptional;
|
|
15
18
|
Or: typeof q.Or;
|
|
19
|
+
OrOptional: typeof q.OrOptional;
|
|
16
20
|
In: typeof q.In;
|
|
21
|
+
UuidIn: typeof q.UuidIn;
|
|
22
|
+
IntegerIn: typeof q.IntegerIn;
|
|
23
|
+
TextIn: typeof q.TextIn;
|
|
24
|
+
DBTypeIn: typeof q.DBTypeIn;
|
|
17
25
|
Greater: typeof q.Greater;
|
|
18
26
|
Less: typeof q.Less;
|
|
19
27
|
GreaterEq: typeof q.GreaterEq;
|
|
20
28
|
LessEq: typeof q.LessEq;
|
|
21
29
|
ArrayEq: typeof q.ArrayEq;
|
|
22
30
|
ArrayNotEq: typeof q.ArrayNotEq;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
31
|
+
PostgresArrayContainsValue: typeof q.PostgresArrayContainsValue;
|
|
32
|
+
PostgresArrayContains: typeof q.PostgresArrayContains;
|
|
33
|
+
PostgresArrayNotContainsValue: typeof q.PostgresArrayNotContainsValue;
|
|
34
|
+
PostgresArrayNotContains: typeof q.PostgresArrayNotContains;
|
|
35
|
+
PostgresArrayOverlaps: typeof q.PostgresArrayOverlaps;
|
|
36
|
+
PostgresArrayNotOverlaps: typeof q.PostgresArrayNotOverlaps;
|
|
37
|
+
JSONPathValuePredicate: typeof q.JSONPathValuePredicate;
|
|
38
|
+
JSONObjectFieldKeyASJSON: typeof q.JSONObjectFieldKeyASJSON;
|
|
39
|
+
JSONObjectFieldKeyAsText: typeof q.JSONObjectFieldKeyAsText;
|
|
27
40
|
TsQuery: typeof q.TsQuery;
|
|
28
41
|
PlainToTsQuery: typeof q.PlainToTsQuery;
|
|
29
42
|
PhraseToTsQuery: typeof q.PhraseToTsQuery;
|
package/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -25,13 +29,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
25
29
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26
30
|
};
|
|
27
31
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
-
exports.
|
|
29
|
-
exports.setLogLevels = exports.loadConfig = exports.LoggedOutViewer = exports.IDViewer = exports.ContextCache = exports.query = exports.AllowIfViewerHasIdentityPrivacyPolicy = exports.AllowIfViewerPrivacyPolicy = exports.AllowIfSubPolicyAllowsRule = exports.AllowIfConditionAppliesRule = exports.AlwaysDenyPrivacyPolicy = exports.AlwaysAllowPrivacyPolicy = exports.applyPrivacyPolicyX = exports.applyPrivacyPolicy = exports.DelayedResultRule = exports.DenyIfEntIsVisiblePolicy = exports.AllowIfEntIsVisiblePolicy = exports.DenyIfEntIsNotVisibleRule = exports.DenyIfEntIsVisibleRule = exports.AllowIfEntIsNotVisibleRule = exports.AllowIfEntIsVisibleRule = exports.DenyIfViewerOutboundEdgeDoesNotExistRule = void 0;
|
|
32
|
+
exports.DenyIfViewerInboundEdgeExistsRule = exports.DenyIfEdgeExistsRule = exports.AllowIfViewerOutboundEdgeExistsRule = exports.AllowIfViewerInboundEdgeExistsRule = exports.AllowIfEdgeExistsRule = exports.DenyIfViewerEqualsRule = exports.AllowIfViewerEqualsRule = exports.DenyIfEntPropertyIsRule = exports.AllowIfEntPropertyIsRule = exports.AllowIfViewerIsEntPropertyRule = exports.AllowIfViewerIsRule = exports.AllowIfFuncRule = exports.AllowIfViewerRule = exports.AllowIfHasIdentity = exports.DenyIfLoggedOutRule = exports.DenyIfLoggedInRule = exports.AlwaysDenyRule = exports.AlwaysAllowRule = exports.EntPrivacyError = exports.DB = exports.setGlobalSchema = exports.DeleteNodeOperation = exports.EdgeOperation = exports.RawQueryOperation = exports.EditNodeOperation = exports.getEdgeTypeInGroup = exports.loadNodesByEdge = exports.loadEdgeForID2 = exports.loadRawEdgeCountX = exports.loadUniqueNode = exports.loadUniqueEdge = exports.loadEdges = exports.loadEdgeDatas = exports.loadEdgeData = exports.AssocEdgeData = exports.AssocEdge = exports.loadRows = exports.loadRow = exports.loadRowX = exports.performRawQuery = exports.loadEntXViaKey = exports.loadEntViaKey = exports.loadDerivedEntX = exports.loadDerivedEnt = exports.loadEnts = exports.loadEntX = exports.loadCustomCount = exports.loadCustomEnts = exports.loadCustomData = exports.loadEnt = void 0;
|
|
33
|
+
exports.setLogLevels = exports.loadConfig = exports.LoggedOutViewer = exports.IDViewer = exports.ContextCache = exports.query = exports.AllowIfViewerHasIdentityPrivacyPolicy = exports.AllowIfViewerPrivacyPolicy = exports.AllowIfSubPolicyAllowsRule = exports.AllowIfConditionAppliesRule = exports.AlwaysDenyPrivacyPolicy = exports.AlwaysAllowPrivacyPolicy = exports.applyPrivacyPolicyX = exports.applyPrivacyPolicy = exports.DelayedResultRule = exports.DenyIfEntIsVisiblePolicy = exports.AllowIfEntIsVisiblePolicy = exports.DenyIfEntIsNotVisibleRule = exports.DenyIfEntIsVisibleRule = exports.AllowIfEntIsNotVisibleRule = exports.AllowIfEntIsVisibleRule = exports.DenyIfViewerOutboundEdgeDoesNotExistRule = exports.DenyIfViewerInboundEdgeDoesNotExistRule = exports.DenyIfEdgeDoesNotExistRule = exports.DenyIfViewerOutboundEdgeExistsRule = void 0;
|
|
30
34
|
__exportStar(require("./core/base"), exports);
|
|
31
35
|
var ent_1 = require("./core/ent");
|
|
32
36
|
Object.defineProperty(exports, "loadEnt", { enumerable: true, get: function () { return ent_1.loadEnt; } });
|
|
33
37
|
Object.defineProperty(exports, "loadCustomData", { enumerable: true, get: function () { return ent_1.loadCustomData; } });
|
|
34
38
|
Object.defineProperty(exports, "loadCustomEnts", { enumerable: true, get: function () { return ent_1.loadCustomEnts; } });
|
|
39
|
+
Object.defineProperty(exports, "loadCustomCount", { enumerable: true, get: function () { return ent_1.loadCustomCount; } });
|
|
35
40
|
Object.defineProperty(exports, "loadEntX", { enumerable: true, get: function () { return ent_1.loadEntX; } });
|
|
36
41
|
Object.defineProperty(exports, "loadEnts", { enumerable: true, get: function () { return ent_1.loadEnts; } });
|
|
37
42
|
Object.defineProperty(exports, "loadDerivedEnt", { enumerable: true, get: function () { return ent_1.loadDerivedEnt; } });
|
|
@@ -43,9 +48,6 @@ Object.defineProperty(exports, "performRawQuery", { enumerable: true, get: funct
|
|
|
43
48
|
Object.defineProperty(exports, "loadRowX", { enumerable: true, get: function () { return ent_1.loadRowX; } });
|
|
44
49
|
Object.defineProperty(exports, "loadRow", { enumerable: true, get: function () { return ent_1.loadRow; } });
|
|
45
50
|
Object.defineProperty(exports, "loadRows", { enumerable: true, get: function () { return ent_1.loadRows; } });
|
|
46
|
-
Object.defineProperty(exports, "EditNodeOperation", { enumerable: true, get: function () { return ent_1.EditNodeOperation; } });
|
|
47
|
-
Object.defineProperty(exports, "EdgeOperation", { enumerable: true, get: function () { return ent_1.EdgeOperation; } });
|
|
48
|
-
Object.defineProperty(exports, "DeleteNodeOperation", { enumerable: true, get: function () { return ent_1.DeleteNodeOperation; } });
|
|
49
51
|
Object.defineProperty(exports, "AssocEdge", { enumerable: true, get: function () { return ent_1.AssocEdge; } });
|
|
50
52
|
Object.defineProperty(exports, "AssocEdgeData", { enumerable: true, get: function () { return ent_1.AssocEdgeData; } });
|
|
51
53
|
Object.defineProperty(exports, "loadEdgeData", { enumerable: true, get: function () { return ent_1.loadEdgeData; } });
|
|
@@ -57,6 +59,14 @@ Object.defineProperty(exports, "loadRawEdgeCountX", { enumerable: true, get: fun
|
|
|
57
59
|
Object.defineProperty(exports, "loadEdgeForID2", { enumerable: true, get: function () { return ent_1.loadEdgeForID2; } });
|
|
58
60
|
Object.defineProperty(exports, "loadNodesByEdge", { enumerable: true, get: function () { return ent_1.loadNodesByEdge; } });
|
|
59
61
|
Object.defineProperty(exports, "getEdgeTypeInGroup", { enumerable: true, get: function () { return ent_1.getEdgeTypeInGroup; } });
|
|
62
|
+
// TODO should these even be exported from the root?
|
|
63
|
+
var operations_1 = require("./action/operations");
|
|
64
|
+
Object.defineProperty(exports, "EditNodeOperation", { enumerable: true, get: function () { return operations_1.EditNodeOperation; } });
|
|
65
|
+
Object.defineProperty(exports, "RawQueryOperation", { enumerable: true, get: function () { return operations_1.RawQueryOperation; } });
|
|
66
|
+
Object.defineProperty(exports, "EdgeOperation", { enumerable: true, get: function () { return operations_1.EdgeOperation; } });
|
|
67
|
+
Object.defineProperty(exports, "DeleteNodeOperation", { enumerable: true, get: function () { return operations_1.DeleteNodeOperation; } });
|
|
68
|
+
var global_schema_1 = require("./core/global_schema");
|
|
69
|
+
Object.defineProperty(exports, "setGlobalSchema", { enumerable: true, get: function () { return global_schema_1.setGlobalSchema; } });
|
|
60
70
|
const db_1 = __importDefault(require("./core/db"));
|
|
61
71
|
exports.DB = db_1.default;
|
|
62
72
|
__exportStar(require("./core/loaders"), exports);
|
|
@@ -109,17 +119,27 @@ const query = {
|
|
|
109
119
|
And: q.And,
|
|
110
120
|
AndOptional: q.AndOptional,
|
|
111
121
|
Or: q.Or,
|
|
122
|
+
OrOptional: q.OrOptional,
|
|
112
123
|
In: q.In,
|
|
124
|
+
UuidIn: q.UuidIn,
|
|
125
|
+
IntegerIn: q.IntegerIn,
|
|
126
|
+
TextIn: q.TextIn,
|
|
127
|
+
DBTypeIn: q.DBTypeIn,
|
|
113
128
|
Greater: q.Greater,
|
|
114
129
|
Less: q.Less,
|
|
115
130
|
GreaterEq: q.GreaterEq,
|
|
116
131
|
LessEq: q.LessEq,
|
|
117
132
|
ArrayEq: q.ArrayEq,
|
|
118
133
|
ArrayNotEq: q.ArrayNotEq,
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
134
|
+
PostgresArrayContainsValue: q.PostgresArrayContainsValue,
|
|
135
|
+
PostgresArrayContains: q.PostgresArrayContains,
|
|
136
|
+
PostgresArrayNotContainsValue: q.PostgresArrayNotContainsValue,
|
|
137
|
+
PostgresArrayNotContains: q.PostgresArrayNotContains,
|
|
138
|
+
PostgresArrayOverlaps: q.PostgresArrayOverlaps,
|
|
139
|
+
PostgresArrayNotOverlaps: q.PostgresArrayNotOverlaps,
|
|
140
|
+
JSONPathValuePredicate: q.JSONPathValuePredicate,
|
|
141
|
+
JSONObjectFieldKeyASJSON: q.JSONObjectFieldKeyASJSON,
|
|
142
|
+
JSONObjectFieldKeyAsText: q.JSONObjectFieldKeyAsText,
|
|
123
143
|
TsQuery: q.TsQuery,
|
|
124
144
|
PlainToTsQuery: q.PlainToTsQuery,
|
|
125
145
|
PhraseToTsQuery: q.PhraseToTsQuery,
|