directus 9.11.0 → 9.11.1
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/dist/database/index.js +5 -0
- package/dist/database/system-data/fields/activity.yaml +3 -0
- package/dist/database/system-data/fields/dashboards.yaml +3 -1
- package/dist/database/system-data/fields/notifications.yaml +3 -1
- package/dist/database/system-data/fields/panels.yaml +3 -1
- package/dist/database/system-data/fields/shares.yaml +3 -1
- package/dist/env.js +188 -10
- package/dist/services/items.js +16 -0
- package/dist/utils/{apply-query/index.d.ts → apply-query.d.ts} +0 -0
- package/dist/utils/{apply-query/index.js → apply-query.js} +147 -48
- package/dist/utils/validate-keys.d.ts +6 -0
- package/dist/utils/validate-keys.js +28 -0
- package/dist/utils/validate-query.js +1 -1
- package/package.json +12 -12
- package/dist/utils/apply-query/operators/between.operator.d.ts +0 -2
- package/dist/utils/apply-query/operators/between.operator.js +0 -16
- package/dist/utils/apply-query/operators/contains.operator.d.ts +0 -2
- package/dist/utils/apply-query/operators/contains.operator.js +0 -9
- package/dist/utils/apply-query/operators/ends-with.operator.d.ts +0 -2
- package/dist/utils/apply-query/operators/ends-with.operator.js +0 -9
- package/dist/utils/apply-query/operators/equals.operator.d.ts +0 -2
- package/dist/utils/apply-query/operators/equals.operator.js +0 -9
- package/dist/utils/apply-query/operators/greather-than-equals.operator.d.ts +0 -2
- package/dist/utils/apply-query/operators/greather-than-equals.operator.js +0 -9
- package/dist/utils/apply-query/operators/greather-than.operator.d.ts +0 -2
- package/dist/utils/apply-query/operators/greather-than.operator.js +0 -9
- package/dist/utils/apply-query/operators/in.operator.d.ts +0 -2
- package/dist/utils/apply-query/operators/in.operator.js +0 -14
- package/dist/utils/apply-query/operators/index.d.ts +0 -3
- package/dist/utils/apply-query/operators/index.js +0 -72
- package/dist/utils/apply-query/operators/insensitive-contains.operator.d.ts +0 -2
- package/dist/utils/apply-query/operators/insensitive-contains.operator.js +0 -9
- package/dist/utils/apply-query/operators/insensitive-ends-with.operator.d.ts +0 -2
- package/dist/utils/apply-query/operators/insensitive-ends-with.operator.js +0 -9
- package/dist/utils/apply-query/operators/insensitive-equals.operator.d.ts +0 -2
- package/dist/utils/apply-query/operators/insensitive-equals.operator.js +0 -9
- package/dist/utils/apply-query/operators/insensitive-not-contains.operator.d.ts +0 -2
- package/dist/utils/apply-query/operators/insensitive-not-contains.operator.js +0 -9
- package/dist/utils/apply-query/operators/insensitive-not-ends-with.operator.d.ts +0 -2
- package/dist/utils/apply-query/operators/insensitive-not-ends-with.operator.js +0 -9
- package/dist/utils/apply-query/operators/insensitive-not-equals.operator.d.ts +0 -2
- package/dist/utils/apply-query/operators/insensitive-not-equals.operator.js +0 -9
- package/dist/utils/apply-query/operators/insensitive-not-starts-with.operator.d.ts +0 -2
- package/dist/utils/apply-query/operators/insensitive-not-starts-with.operator.js +0 -9
- package/dist/utils/apply-query/operators/insensitive-starts-with.operator.d.ts +0 -2
- package/dist/utils/apply-query/operators/insensitive-starts-with.operator.js +0 -9
- package/dist/utils/apply-query/operators/intersects-bbox.operator.d.ts +0 -2
- package/dist/utils/apply-query/operators/intersects-bbox.operator.js +0 -9
- package/dist/utils/apply-query/operators/intersects.operator.d.ts +0 -2
- package/dist/utils/apply-query/operators/intersects.operator.js +0 -9
- package/dist/utils/apply-query/operators/is-empty.operator.d.ts +0 -2
- package/dist/utils/apply-query/operators/is-empty.operator.js +0 -14
- package/dist/utils/apply-query/operators/is-not-empty.operator.d.ts +0 -2
- package/dist/utils/apply-query/operators/is-not-empty.operator.js +0 -14
- package/dist/utils/apply-query/operators/is-not-null.operator.d.ts +0 -2
- package/dist/utils/apply-query/operators/is-not-null.operator.js +0 -14
- package/dist/utils/apply-query/operators/is-null.operator.d.ts +0 -2
- package/dist/utils/apply-query/operators/is-null.operator.js +0 -14
- package/dist/utils/apply-query/operators/less-than-equals.operator.d.ts +0 -2
- package/dist/utils/apply-query/operators/less-than-equals.operator.js +0 -9
- package/dist/utils/apply-query/operators/less-than.operator.d.ts +0 -2
- package/dist/utils/apply-query/operators/less-than.operator.js +0 -9
- package/dist/utils/apply-query/operators/not-between.operator.d.ts +0 -2
- package/dist/utils/apply-query/operators/not-between.operator.js +0 -16
- package/dist/utils/apply-query/operators/not-contains.operator.d.ts +0 -2
- package/dist/utils/apply-query/operators/not-contains.operator.js +0 -9
- package/dist/utils/apply-query/operators/not-ends-with.operator.d.ts +0 -2
- package/dist/utils/apply-query/operators/not-ends-with.operator.js +0 -9
- package/dist/utils/apply-query/operators/not-equals.operator.d.ts +0 -2
- package/dist/utils/apply-query/operators/not-equals.operator.js +0 -9
- package/dist/utils/apply-query/operators/not-in.operator.d.ts +0 -2
- package/dist/utils/apply-query/operators/not-in.operator.js +0 -14
- package/dist/utils/apply-query/operators/not-intersects-bbox.operator.d.ts +0 -2
- package/dist/utils/apply-query/operators/not-intersects-bbox.operator.js +0 -9
- package/dist/utils/apply-query/operators/not-intersects.operator.d.ts +0 -2
- package/dist/utils/apply-query/operators/not-intersects.operator.js +0 -9
- package/dist/utils/apply-query/operators/not-starts-with.operator.d.ts +0 -2
- package/dist/utils/apply-query/operators/not-starts-with.operator.js +0 -9
- package/dist/utils/apply-query/operators/operator-register.d.ts +0 -13
- package/dist/utils/apply-query/operators/operator-register.js +0 -7
- package/dist/utils/apply-query/operators/starts-with.operator.d.ts +0 -2
- package/dist/utils/apply-query/operators/starts-with.operator.js +0 -9
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "directus",
|
|
3
|
-
"version": "9.11.
|
|
3
|
+
"version": "9.11.1",
|
|
4
4
|
"license": "GPL-3.0-only",
|
|
5
5
|
"homepage": "https://github.com/directus/directus#readme",
|
|
6
6
|
"description": "Directus is a real-time API and App dashboard for managing SQL database content.",
|
|
@@ -78,16 +78,16 @@
|
|
|
78
78
|
],
|
|
79
79
|
"dependencies": {
|
|
80
80
|
"@aws-sdk/client-ses": "^3.40.0",
|
|
81
|
-
"@directus/app": "9.11.
|
|
82
|
-
"@directus/drive": "9.11.
|
|
83
|
-
"@directus/drive-azure": "9.11.
|
|
84
|
-
"@directus/drive-gcs": "9.11.
|
|
85
|
-
"@directus/drive-s3": "9.11.
|
|
86
|
-
"@directus/extensions-sdk": "9.11.
|
|
87
|
-
"@directus/format-title": "9.11.
|
|
88
|
-
"@directus/schema": "9.11.
|
|
89
|
-
"@directus/shared": "9.11.
|
|
90
|
-
"@directus/specs": "9.11.
|
|
81
|
+
"@directus/app": "9.11.1",
|
|
82
|
+
"@directus/drive": "9.11.1",
|
|
83
|
+
"@directus/drive-azure": "9.11.1",
|
|
84
|
+
"@directus/drive-gcs": "9.11.1",
|
|
85
|
+
"@directus/drive-s3": "9.11.1",
|
|
86
|
+
"@directus/extensions-sdk": "9.11.1",
|
|
87
|
+
"@directus/format-title": "9.11.1",
|
|
88
|
+
"@directus/schema": "9.11.1",
|
|
89
|
+
"@directus/shared": "9.11.1",
|
|
90
|
+
"@directus/specs": "9.11.1",
|
|
91
91
|
"@godaddy/terminus": "^4.9.0",
|
|
92
92
|
"@rollup/plugin-alias": "^3.1.9",
|
|
93
93
|
"@rollup/plugin-virtual": "^2.0.3",
|
|
@@ -171,7 +171,7 @@
|
|
|
171
171
|
"sqlite3": "^5.0.6",
|
|
172
172
|
"tedious": "^13.0.0"
|
|
173
173
|
},
|
|
174
|
-
"gitHead": "
|
|
174
|
+
"gitHead": "7e9812d04a95272720180d1cd60cfe9ee8075027",
|
|
175
175
|
"devDependencies": {
|
|
176
176
|
"@types/async": "3.2.10",
|
|
177
177
|
"@types/body-parser": "1.19.2",
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const operator_register_1 = require("./operator-register");
|
|
4
|
-
exports.default = (0, operator_register_1.registerOperator)({
|
|
5
|
-
operator: '_between',
|
|
6
|
-
apply: ({ query, selectionRaw, compareValue }) => {
|
|
7
|
-
let value = compareValue;
|
|
8
|
-
if (typeof value === 'string')
|
|
9
|
-
value = value.split(',');
|
|
10
|
-
if (!(value instanceof Array))
|
|
11
|
-
throw new Error('Invalid value for between operator');
|
|
12
|
-
if (value.length !== 2)
|
|
13
|
-
throw new Error('Expected two values for between operator');
|
|
14
|
-
query.whereBetween(selectionRaw, value);
|
|
15
|
-
},
|
|
16
|
-
});
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const operator_register_1 = require("./operator-register");
|
|
4
|
-
exports.default = (0, operator_register_1.registerOperator)({
|
|
5
|
-
operator: '_contains',
|
|
6
|
-
apply: ({ query, selectionRaw, compareValue }) => {
|
|
7
|
-
query.where(selectionRaw, 'like', `%${compareValue}%`);
|
|
8
|
-
},
|
|
9
|
-
});
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const operator_register_1 = require("./operator-register");
|
|
4
|
-
exports.default = (0, operator_register_1.registerOperator)({
|
|
5
|
-
operator: '_ends_with',
|
|
6
|
-
apply: ({ query, selectionRaw, compareValue }) => {
|
|
7
|
-
query.where(selectionRaw, 'like', `%${compareValue}`);
|
|
8
|
-
},
|
|
9
|
-
});
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const operator_register_1 = require("./operator-register");
|
|
4
|
-
exports.default = (0, operator_register_1.registerOperator)({
|
|
5
|
-
operator: '_eq',
|
|
6
|
-
apply: ({ query, selectionRaw, compareValue }) => {
|
|
7
|
-
query.where(selectionRaw, '=', compareValue);
|
|
8
|
-
},
|
|
9
|
-
});
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const operator_register_1 = require("./operator-register");
|
|
4
|
-
exports.default = (0, operator_register_1.registerOperator)({
|
|
5
|
-
operator: '_gte',
|
|
6
|
-
apply: ({ query, selectionRaw, compareValue }) => {
|
|
7
|
-
query.where(selectionRaw, '>=', compareValue);
|
|
8
|
-
},
|
|
9
|
-
});
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const operator_register_1 = require("./operator-register");
|
|
4
|
-
exports.default = (0, operator_register_1.registerOperator)({
|
|
5
|
-
operator: '_gt',
|
|
6
|
-
apply: ({ query, selectionRaw, compareValue }) => {
|
|
7
|
-
query.where(selectionRaw, '>', compareValue);
|
|
8
|
-
},
|
|
9
|
-
});
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const operator_register_1 = require("./operator-register");
|
|
4
|
-
exports.default = (0, operator_register_1.registerOperator)({
|
|
5
|
-
operator: '_in',
|
|
6
|
-
apply: ({ query, selectionRaw, compareValue }) => {
|
|
7
|
-
let value = compareValue;
|
|
8
|
-
if (typeof value === 'string')
|
|
9
|
-
value = value.split(',');
|
|
10
|
-
if (!(value instanceof Array))
|
|
11
|
-
throw new Error('Invalid value for in operator');
|
|
12
|
-
query.whereIn(selectionRaw, value);
|
|
13
|
-
},
|
|
14
|
-
});
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const between_operator_1 = __importDefault(require("./between.operator"));
|
|
7
|
-
const contains_operator_1 = __importDefault(require("./contains.operator"));
|
|
8
|
-
const ends_with_operator_1 = __importDefault(require("./ends-with.operator"));
|
|
9
|
-
const equals_operator_1 = __importDefault(require("./equals.operator"));
|
|
10
|
-
const greather_than_equals_operator_1 = __importDefault(require("./greather-than-equals.operator"));
|
|
11
|
-
const greather_than_operator_1 = __importDefault(require("./greather-than.operator"));
|
|
12
|
-
const in_operator_1 = __importDefault(require("./in.operator"));
|
|
13
|
-
const insensitive_contains_operator_1 = __importDefault(require("./insensitive-contains.operator"));
|
|
14
|
-
const insensitive_ends_with_operator_1 = __importDefault(require("./insensitive-ends-with.operator"));
|
|
15
|
-
const insensitive_equals_operator_1 = __importDefault(require("./insensitive-equals.operator"));
|
|
16
|
-
const insensitive_not_contains_operator_1 = __importDefault(require("./insensitive-not-contains.operator"));
|
|
17
|
-
const insensitive_not_ends_with_operator_1 = __importDefault(require("./insensitive-not-ends-with.operator"));
|
|
18
|
-
const insensitive_not_equals_operator_1 = __importDefault(require("./insensitive-not-equals.operator"));
|
|
19
|
-
const insensitive_not_starts_with_operator_1 = __importDefault(require("./insensitive-not-starts-with.operator"));
|
|
20
|
-
const insensitive_starts_with_operator_1 = __importDefault(require("./insensitive-starts-with.operator"));
|
|
21
|
-
const intersects_bbox_operator_1 = __importDefault(require("./intersects-bbox.operator"));
|
|
22
|
-
const intersects_operator_1 = __importDefault(require("./intersects.operator"));
|
|
23
|
-
const is_empty_operator_1 = __importDefault(require("./is-empty.operator"));
|
|
24
|
-
const is_not_empty_operator_1 = __importDefault(require("./is-not-empty.operator"));
|
|
25
|
-
const is_not_null_operator_1 = __importDefault(require("./is-not-null.operator"));
|
|
26
|
-
const is_null_operator_1 = __importDefault(require("./is-null.operator"));
|
|
27
|
-
const less_than_equals_operator_1 = __importDefault(require("./less-than-equals.operator"));
|
|
28
|
-
const less_than_operator_1 = __importDefault(require("./less-than.operator"));
|
|
29
|
-
const not_between_operator_1 = __importDefault(require("./not-between.operator"));
|
|
30
|
-
const not_contains_operator_1 = __importDefault(require("./not-contains.operator"));
|
|
31
|
-
const not_ends_with_operator_1 = __importDefault(require("./not-ends-with.operator"));
|
|
32
|
-
const not_equals_operator_1 = __importDefault(require("./not-equals.operator"));
|
|
33
|
-
const not_in_operator_1 = __importDefault(require("./not-in.operator"));
|
|
34
|
-
const not_intersects_bbox_operator_1 = __importDefault(require("./not-intersects-bbox.operator"));
|
|
35
|
-
const not_intersects_operator_1 = __importDefault(require("./not-intersects.operator"));
|
|
36
|
-
const not_starts_with_operator_1 = __importDefault(require("./not-starts-with.operator"));
|
|
37
|
-
const starts_with_operator_1 = __importDefault(require("./starts-with.operator"));
|
|
38
|
-
const operators = [
|
|
39
|
-
is_null_operator_1.default,
|
|
40
|
-
is_not_null_operator_1.default,
|
|
41
|
-
is_empty_operator_1.default,
|
|
42
|
-
is_not_empty_operator_1.default,
|
|
43
|
-
equals_operator_1.default,
|
|
44
|
-
not_equals_operator_1.default,
|
|
45
|
-
contains_operator_1.default,
|
|
46
|
-
not_contains_operator_1.default,
|
|
47
|
-
starts_with_operator_1.default,
|
|
48
|
-
not_starts_with_operator_1.default,
|
|
49
|
-
ends_with_operator_1.default,
|
|
50
|
-
not_ends_with_operator_1.default,
|
|
51
|
-
greather_than_operator_1.default,
|
|
52
|
-
greather_than_equals_operator_1.default,
|
|
53
|
-
less_than_operator_1.default,
|
|
54
|
-
less_than_equals_operator_1.default,
|
|
55
|
-
in_operator_1.default,
|
|
56
|
-
not_in_operator_1.default,
|
|
57
|
-
between_operator_1.default,
|
|
58
|
-
not_between_operator_1.default,
|
|
59
|
-
intersects_operator_1.default,
|
|
60
|
-
not_intersects_operator_1.default,
|
|
61
|
-
intersects_bbox_operator_1.default,
|
|
62
|
-
not_intersects_bbox_operator_1.default,
|
|
63
|
-
insensitive_contains_operator_1.default,
|
|
64
|
-
insensitive_not_contains_operator_1.default,
|
|
65
|
-
insensitive_equals_operator_1.default,
|
|
66
|
-
insensitive_not_equals_operator_1.default,
|
|
67
|
-
insensitive_starts_with_operator_1.default,
|
|
68
|
-
insensitive_not_starts_with_operator_1.default,
|
|
69
|
-
insensitive_ends_with_operator_1.default,
|
|
70
|
-
insensitive_not_ends_with_operator_1.default,
|
|
71
|
-
];
|
|
72
|
-
exports.default = operators.reduce((a, b) => ({ ...a, [b.operator]: b }), {});
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const operator_register_1 = require("./operator-register");
|
|
4
|
-
exports.default = (0, operator_register_1.registerOperator)({
|
|
5
|
-
operator: '_icontains',
|
|
6
|
-
apply: ({ query, selectionRaw, compareValue }) => {
|
|
7
|
-
query.whereRaw(`LOWER(??) LIKE ?`, [selectionRaw, `%${compareValue === null || compareValue === void 0 ? void 0 : compareValue.toLowerCase()}%`]);
|
|
8
|
-
},
|
|
9
|
-
});
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const operator_register_1 = require("./operator-register");
|
|
4
|
-
exports.default = (0, operator_register_1.registerOperator)({
|
|
5
|
-
operator: '_iends_with',
|
|
6
|
-
apply: ({ query, selectionRaw, compareValue }) => {
|
|
7
|
-
query.whereRaw(`LOWER(??) LIKE ?`, [selectionRaw, `%${compareValue === null || compareValue === void 0 ? void 0 : compareValue.toLowerCase()}`]);
|
|
8
|
-
},
|
|
9
|
-
});
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const operator_register_1 = require("./operator-register");
|
|
4
|
-
exports.default = (0, operator_register_1.registerOperator)({
|
|
5
|
-
operator: '_ieq',
|
|
6
|
-
apply: ({ query, selectionRaw, compareValue }) => {
|
|
7
|
-
query.whereRaw(`LOWER(??) = ?`, [selectionRaw, `${compareValue === null || compareValue === void 0 ? void 0 : compareValue.toLowerCase()}`]);
|
|
8
|
-
},
|
|
9
|
-
});
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const operator_register_1 = require("./operator-register");
|
|
4
|
-
exports.default = (0, operator_register_1.registerOperator)({
|
|
5
|
-
operator: '_nicontains',
|
|
6
|
-
apply: ({ query, selectionRaw, compareValue }) => {
|
|
7
|
-
query.whereRaw(`LOWER(??) NOT LIKE ?`, [selectionRaw, `%${compareValue === null || compareValue === void 0 ? void 0 : compareValue.toLowerCase()}%`]);
|
|
8
|
-
},
|
|
9
|
-
});
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const operator_register_1 = require("./operator-register");
|
|
4
|
-
exports.default = (0, operator_register_1.registerOperator)({
|
|
5
|
-
operator: '_niends_with',
|
|
6
|
-
apply: ({ query, selectionRaw, compareValue }) => {
|
|
7
|
-
query.whereRaw(`LOWER(??) NOT LIKE ?`, [selectionRaw, `%${compareValue === null || compareValue === void 0 ? void 0 : compareValue.toLowerCase()}`]);
|
|
8
|
-
},
|
|
9
|
-
});
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const operator_register_1 = require("./operator-register");
|
|
4
|
-
exports.default = (0, operator_register_1.registerOperator)({
|
|
5
|
-
operator: '_nieq',
|
|
6
|
-
apply: ({ query, selectionRaw, compareValue }) => {
|
|
7
|
-
query.whereRaw(`LOWER(??) != ?`, [selectionRaw, `${compareValue === null || compareValue === void 0 ? void 0 : compareValue.toLowerCase()}`]);
|
|
8
|
-
},
|
|
9
|
-
});
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const operator_register_1 = require("./operator-register");
|
|
4
|
-
exports.default = (0, operator_register_1.registerOperator)({
|
|
5
|
-
operator: '_nistarts_with',
|
|
6
|
-
apply: ({ query, selectionRaw, compareValue }) => {
|
|
7
|
-
query.whereRaw(`LOWER(??) NOT LIKE ?`, [selectionRaw, `${compareValue === null || compareValue === void 0 ? void 0 : compareValue.toLowerCase()}%`]);
|
|
8
|
-
},
|
|
9
|
-
});
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const operator_register_1 = require("./operator-register");
|
|
4
|
-
exports.default = (0, operator_register_1.registerOperator)({
|
|
5
|
-
operator: '_istarts_with',
|
|
6
|
-
apply: ({ query, selectionRaw, compareValue }) => {
|
|
7
|
-
query.whereRaw(`LOWER(??) LIKE ?`, [selectionRaw, `${compareValue === null || compareValue === void 0 ? void 0 : compareValue.toLowerCase()}%`]);
|
|
8
|
-
},
|
|
9
|
-
});
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const operator_register_1 = require("./operator-register");
|
|
4
|
-
exports.default = (0, operator_register_1.registerOperator)({
|
|
5
|
-
operator: '_intersects_bbox',
|
|
6
|
-
apply: ({ helpers, query, selectionRaw, compareValue }) => {
|
|
7
|
-
query.whereRaw(helpers.st.intersects_bbox(selectionRaw, compareValue));
|
|
8
|
-
},
|
|
9
|
-
});
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const operator_register_1 = require("./operator-register");
|
|
4
|
-
exports.default = (0, operator_register_1.registerOperator)({
|
|
5
|
-
operator: '_intersects',
|
|
6
|
-
apply: ({ helpers, query, selectionRaw, compareValue }) => {
|
|
7
|
-
query.whereRaw(helpers.st.intersects(selectionRaw, compareValue));
|
|
8
|
-
},
|
|
9
|
-
});
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const operator_register_1 = require("./operator-register");
|
|
4
|
-
exports.default = (0, operator_register_1.registerOperator)({
|
|
5
|
-
operator: '_empty',
|
|
6
|
-
apply: ({ query, selectionRaw, compareValue }) => {
|
|
7
|
-
if (compareValue) {
|
|
8
|
-
query.where(selectionRaw, '=', '');
|
|
9
|
-
}
|
|
10
|
-
else {
|
|
11
|
-
query.where(selectionRaw, '!=', '');
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
});
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const operator_register_1 = require("./operator-register");
|
|
4
|
-
exports.default = (0, operator_register_1.registerOperator)({
|
|
5
|
-
operator: '_nempty',
|
|
6
|
-
apply: ({ query, selectionRaw, compareValue }) => {
|
|
7
|
-
if (compareValue) {
|
|
8
|
-
query.where(selectionRaw, '!=', '');
|
|
9
|
-
}
|
|
10
|
-
else {
|
|
11
|
-
query.where(selectionRaw, '=', '');
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
});
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const operator_register_1 = require("./operator-register");
|
|
4
|
-
exports.default = (0, operator_register_1.registerOperator)({
|
|
5
|
-
operator: '_nnull',
|
|
6
|
-
apply: ({ query, selectionRaw, compareValue }) => {
|
|
7
|
-
if (compareValue) {
|
|
8
|
-
query.whereNotNull(selectionRaw);
|
|
9
|
-
}
|
|
10
|
-
else {
|
|
11
|
-
query.whereNull(selectionRaw);
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
});
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const operator_register_1 = require("./operator-register");
|
|
4
|
-
exports.default = (0, operator_register_1.registerOperator)({
|
|
5
|
-
operator: '_null',
|
|
6
|
-
apply: ({ query, selectionRaw, compareValue }) => {
|
|
7
|
-
if (compareValue) {
|
|
8
|
-
query.whereNull(selectionRaw);
|
|
9
|
-
}
|
|
10
|
-
else {
|
|
11
|
-
query.whereNotNull(selectionRaw);
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
});
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const operator_register_1 = require("./operator-register");
|
|
4
|
-
exports.default = (0, operator_register_1.registerOperator)({
|
|
5
|
-
operator: '_lte',
|
|
6
|
-
apply: ({ query, selectionRaw, compareValue }) => {
|
|
7
|
-
query.where(selectionRaw, '<=', compareValue);
|
|
8
|
-
},
|
|
9
|
-
});
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const operator_register_1 = require("./operator-register");
|
|
4
|
-
exports.default = (0, operator_register_1.registerOperator)({
|
|
5
|
-
operator: '_lt',
|
|
6
|
-
apply: ({ query, selectionRaw, compareValue }) => {
|
|
7
|
-
query.where(selectionRaw, '<', compareValue);
|
|
8
|
-
},
|
|
9
|
-
});
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const operator_register_1 = require("./operator-register");
|
|
4
|
-
exports.default = (0, operator_register_1.registerOperator)({
|
|
5
|
-
operator: '_nbetween',
|
|
6
|
-
apply: ({ query, selectionRaw, compareValue }) => {
|
|
7
|
-
let value = compareValue;
|
|
8
|
-
if (typeof value === 'string')
|
|
9
|
-
value = value.split(',');
|
|
10
|
-
if (!(value instanceof Array))
|
|
11
|
-
throw new Error('Invalid value for between operator');
|
|
12
|
-
if (value.length !== 2)
|
|
13
|
-
throw new Error('Expected two values for between operator');
|
|
14
|
-
query.whereNotBetween(selectionRaw, value);
|
|
15
|
-
},
|
|
16
|
-
});
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const operator_register_1 = require("./operator-register");
|
|
4
|
-
exports.default = (0, operator_register_1.registerOperator)({
|
|
5
|
-
operator: '_ncontains',
|
|
6
|
-
apply: ({ query, selectionRaw, compareValue }) => {
|
|
7
|
-
query.whereNot(selectionRaw, 'like', `%${compareValue}%`);
|
|
8
|
-
},
|
|
9
|
-
});
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const operator_register_1 = require("./operator-register");
|
|
4
|
-
exports.default = (0, operator_register_1.registerOperator)({
|
|
5
|
-
operator: '_nends_with',
|
|
6
|
-
apply: ({ query, selectionRaw, compareValue }) => {
|
|
7
|
-
query.whereNot(selectionRaw, 'like', `%${compareValue}`);
|
|
8
|
-
},
|
|
9
|
-
});
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const operator_register_1 = require("./operator-register");
|
|
4
|
-
exports.default = (0, operator_register_1.registerOperator)({
|
|
5
|
-
operator: '_neq',
|
|
6
|
-
apply: ({ query, selectionRaw, compareValue }) => {
|
|
7
|
-
query.whereNot(selectionRaw, compareValue);
|
|
8
|
-
},
|
|
9
|
-
});
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const operator_register_1 = require("./operator-register");
|
|
4
|
-
exports.default = (0, operator_register_1.registerOperator)({
|
|
5
|
-
operator: '_nin',
|
|
6
|
-
apply: ({ query, selectionRaw, compareValue }) => {
|
|
7
|
-
let value = compareValue;
|
|
8
|
-
if (typeof value === 'string')
|
|
9
|
-
value = value.split(',');
|
|
10
|
-
if (!(value instanceof Array))
|
|
11
|
-
throw new Error('Invalid value for in operator');
|
|
12
|
-
query.whereNotIn(selectionRaw, value);
|
|
13
|
-
},
|
|
14
|
-
});
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const operator_register_1 = require("./operator-register");
|
|
4
|
-
exports.default = (0, operator_register_1.registerOperator)({
|
|
5
|
-
operator: '_nintersects_bbox',
|
|
6
|
-
apply: ({ helpers, query, selectionRaw, compareValue }) => {
|
|
7
|
-
query.whereRaw(helpers.st.nintersects_bbox(selectionRaw, compareValue));
|
|
8
|
-
},
|
|
9
|
-
});
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const operator_register_1 = require("./operator-register");
|
|
4
|
-
exports.default = (0, operator_register_1.registerOperator)({
|
|
5
|
-
operator: '_nintersects',
|
|
6
|
-
apply: ({ helpers, query, selectionRaw, compareValue }) => {
|
|
7
|
-
query.whereRaw(helpers.st.nintersects(selectionRaw, compareValue));
|
|
8
|
-
},
|
|
9
|
-
});
|