querier-ts 2.2.0 → 2.3.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/CHANGELOG.md +136 -0
- package/README.md +27 -4
- package/dist/index.cjs +1 -0
- package/{lib/query.d.ts → dist/index.d.cts} +80 -36
- package/dist/index.d.ts +292 -0
- package/dist/index.js +1 -0
- package/package.json +38 -27
- package/lib/core/errors/index.d.ts +0 -2
- package/lib/core/errors/index.d.ts.map +0 -1
- package/lib/core/errors/index.js +0 -2
- package/lib/core/errors/index.js.map +0 -1
- package/lib/core/errors/invalid-argument-error.d.ts +0 -4
- package/lib/core/errors/invalid-argument-error.d.ts.map +0 -1
- package/lib/core/errors/invalid-argument-error.js +0 -7
- package/lib/core/errors/invalid-argument-error.js.map +0 -1
- package/lib/core/types/attribute-validation-function.d.ts +0 -2
- package/lib/core/types/attribute-validation-function.d.ts.map +0 -1
- package/lib/core/types/attribute-validation-function.js +0 -2
- package/lib/core/types/attribute-validation-function.js.map +0 -1
- package/lib/core/types/column-condition.d.ts +0 -7
- package/lib/core/types/column-condition.d.ts.map +0 -1
- package/lib/core/types/column-condition.js +0 -2
- package/lib/core/types/column-condition.js.map +0 -1
- package/lib/core/types/index.d.ts +0 -5
- package/lib/core/types/index.d.ts.map +0 -1
- package/lib/core/types/index.js +0 -5
- package/lib/core/types/index.js.map +0 -1
- package/lib/core/types/nullable-condition.d.ts +0 -2
- package/lib/core/types/nullable-condition.d.ts.map +0 -1
- package/lib/core/types/nullable-condition.js +0 -2
- package/lib/core/types/nullable-condition.js.map +0 -1
- package/lib/core/types/ordering-column.d.ts +0 -3
- package/lib/core/types/ordering-column.d.ts.map +0 -1
- package/lib/core/types/ordering-column.js +0 -2
- package/lib/core/types/ordering-column.js.map +0 -1
- package/lib/core/types/query-conditions-group-nullable.d.ts +0 -6
- package/lib/core/types/query-conditions-group-nullable.d.ts.map +0 -1
- package/lib/core/types/query-conditions-group-nullable.js +0 -2
- package/lib/core/types/query-conditions-group-nullable.js.map +0 -1
- package/lib/core/types/query-conditions-group.d.ts +0 -5
- package/lib/core/types/query-conditions-group.d.ts.map +0 -1
- package/lib/core/types/query-conditions-group.js +0 -2
- package/lib/core/types/query-conditions-group.js.map +0 -1
- package/lib/core/types/query-row-validator-initializer.d.ts +0 -9
- package/lib/core/types/query-row-validator-initializer.d.ts.map +0 -1
- package/lib/core/types/query-row-validator-initializer.js +0 -2
- package/lib/core/types/query-row-validator-initializer.js.map +0 -1
- package/lib/core/types/validation-options.d.ts +0 -4
- package/lib/core/types/validation-options.d.ts.map +0 -1
- package/lib/core/types/validation-options.js +0 -2
- package/lib/core/types/validation-options.js.map +0 -1
- package/lib/core/validation/decorators/index.d.ts +0 -2
- package/lib/core/validation/decorators/index.d.ts.map +0 -1
- package/lib/core/validation/decorators/index.js +0 -2
- package/lib/core/validation/decorators/index.js.map +0 -1
- package/lib/core/validation/decorators/number-validaton.d.ts +0 -5
- package/lib/core/validation/decorators/number-validaton.d.ts.map +0 -1
- package/lib/core/validation/decorators/number-validaton.js +0 -84
- package/lib/core/validation/decorators/number-validaton.js.map +0 -1
- package/lib/core/validation/index.d.ts +0 -2
- package/lib/core/validation/index.d.ts.map +0 -1
- package/lib/core/validation/index.js +0 -2
- package/lib/core/validation/index.js.map +0 -1
- package/lib/core/validation/query-row-validator.d.ts +0 -24
- package/lib/core/validation/query-row-validator.d.ts.map +0 -1
- package/lib/core/validation/query-row-validator.js +0 -59
- package/lib/core/validation/query-row-validator.js.map +0 -1
- package/lib/index.d.ts +0 -2
- package/lib/index.d.ts.map +0 -1
- package/lib/index.js +0 -2
- package/lib/index.js.map +0 -1
- package/lib/query.d.ts.map +0 -1
- package/lib/query.js +0 -392
- package/lib/query.js.map +0 -1
- package/lib/utils/functions/generic/compare-arrays.d.ts +0 -2
- package/lib/utils/functions/generic/compare-arrays.d.ts.map +0 -1
- package/lib/utils/functions/generic/compare-arrays.js +0 -3
- package/lib/utils/functions/generic/compare-arrays.js.map +0 -1
- package/lib/utils/functions/generic/deep-equal.d.ts +0 -2
- package/lib/utils/functions/generic/deep-equal.d.ts.map +0 -1
- package/lib/utils/functions/generic/deep-equal.js +0 -20
- package/lib/utils/functions/generic/deep-equal.js.map +0 -1
- package/lib/utils/functions/generic/get-entries.d.ts +0 -2
- package/lib/utils/functions/generic/get-entries.d.ts.map +0 -1
- package/lib/utils/functions/generic/get-entries.js +0 -4
- package/lib/utils/functions/generic/get-entries.js.map +0 -1
- package/lib/utils/functions/generic/get-object-property-names.d.ts +0 -3
- package/lib/utils/functions/generic/get-object-property-names.d.ts.map +0 -1
- package/lib/utils/functions/generic/get-object-property-names.js +0 -4
- package/lib/utils/functions/generic/get-object-property-names.js.map +0 -1
- package/lib/utils/functions/generic/index.d.ts +0 -4
- package/lib/utils/functions/generic/index.d.ts.map +0 -1
- package/lib/utils/functions/generic/index.js +0 -4
- package/lib/utils/functions/generic/index.js.map +0 -1
- package/lib/utils/functions/sort/index.d.ts +0 -3
- package/lib/utils/functions/sort/index.d.ts.map +0 -1
- package/lib/utils/functions/sort/index.js +0 -3
- package/lib/utils/functions/sort/index.js.map +0 -1
- package/lib/utils/functions/sort/sort-by-properties.d.ts +0 -3
- package/lib/utils/functions/sort/sort-by-properties.d.ts.map +0 -1
- package/lib/utils/functions/sort/sort-by-properties.js +0 -16
- package/lib/utils/functions/sort/sort-by-properties.js.map +0 -1
- package/lib/utils/functions/sort/sort-by-property.d.ts +0 -3
- package/lib/utils/functions/sort/sort-by-property.d.ts.map +0 -1
- package/lib/utils/functions/sort/sort-by-property.js +0 -25
- package/lib/utils/functions/sort/sort-by-property.js.map +0 -1
- package/lib/utils/functions/type-guards/index.d.ts +0 -4
- package/lib/utils/functions/type-guards/index.d.ts.map +0 -1
- package/lib/utils/functions/type-guards/index.js +0 -4
- package/lib/utils/functions/type-guards/index.js.map +0 -1
- package/lib/utils/functions/type-guards/is-function.d.ts +0 -10
- package/lib/utils/functions/type-guards/is-function.d.ts.map +0 -1
- package/lib/utils/functions/type-guards/is-function.js +0 -11
- package/lib/utils/functions/type-guards/is-function.js.map +0 -1
- package/lib/utils/functions/type-guards/is-number.d.ts +0 -9
- package/lib/utils/functions/type-guards/is-number.d.ts.map +0 -1
- package/lib/utils/functions/type-guards/is-number.js +0 -9
- package/lib/utils/functions/type-guards/is-number.js.map +0 -1
- package/lib/utils/functions/type-guards/is-object.d.ts +0 -9
- package/lib/utils/functions/type-guards/is-object.d.ts.map +0 -1
- package/lib/utils/functions/type-guards/is-object.js +0 -9
- package/lib/utils/functions/type-guards/is-object.js.map +0 -1
- package/lib/utils/types/add-prefix-to-object.d.ts +0 -4
- package/lib/utils/types/add-prefix-to-object.d.ts.map +0 -1
- package/lib/utils/types/add-prefix-to-object.js +0 -2
- package/lib/utils/types/add-prefix-to-object.js.map +0 -1
- package/lib/utils/types/allowed-names.d.ts +0 -6
- package/lib/utils/types/allowed-names.d.ts.map +0 -1
- package/lib/utils/types/allowed-names.js +0 -2
- package/lib/utils/types/allowed-names.js.map +0 -1
- package/lib/utils/types/flag-excluded-type.d.ts +0 -7
- package/lib/utils/types/flag-excluded-type.d.ts.map +0 -1
- package/lib/utils/types/flag-excluded-type.js +0 -2
- package/lib/utils/types/flag-excluded-type.js.map +0 -1
- package/lib/utils/types/generic-object.d.ts +0 -4
- package/lib/utils/types/generic-object.d.ts.map +0 -1
- package/lib/utils/types/generic-object.js +0 -2
- package/lib/utils/types/generic-object.js.map +0 -1
- package/lib/utils/types/index.d.ts +0 -11
- package/lib/utils/types/index.d.ts.map +0 -1
- package/lib/utils/types/index.js +0 -11
- package/lib/utils/types/index.js.map +0 -1
- package/lib/utils/types/omit-type.d.ts +0 -6
- package/lib/utils/types/omit-type.d.ts.map +0 -1
- package/lib/utils/types/omit-type.js +0 -2
- package/lib/utils/types/omit-type.js.map +0 -1
- package/lib/utils/types/partial-of-properties.d.ts +0 -3
- package/lib/utils/types/partial-of-properties.d.ts.map +0 -1
- package/lib/utils/types/partial-of-properties.js +0 -2
- package/lib/utils/types/partial-of-properties.js.map +0 -1
- package/lib/utils/types/prop-of.d.ts +0 -6
- package/lib/utils/types/prop-of.d.ts.map +0 -1
- package/lib/utils/types/prop-of.js +0 -2
- package/lib/utils/types/prop-of.js.map +0 -1
- package/lib/utils/types/property-only.d.ts +0 -5
- package/lib/utils/types/property-only.d.ts.map +0 -1
- package/lib/utils/types/property-only.js +0 -2
- package/lib/utils/types/property-only.js.map +0 -1
- package/lib/utils/types/recursive-partial.d.ts +0 -4
- package/lib/utils/types/recursive-partial.d.ts.map +0 -1
- package/lib/utils/types/recursive-partial.js +0 -2
- package/lib/utils/types/recursive-partial.js.map +0 -1
- package/lib/utils/types/sort-function.d.ts +0 -2
- package/lib/utils/types/sort-function.d.ts.map +0 -1
- package/lib/utils/types/sort-function.js +0 -2
- package/lib/utils/types/sort-function.js.map +0 -1
- package/lib/utils/types/type.d.ts +0 -5
- package/lib/utils/types/type.d.ts.map +0 -1
- package/lib/utils/types/type.js +0 -2
- package/lib/utils/types/type.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,16 +1,47 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "querier-ts",
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "2.3.1",
|
|
5
|
+
"description": "A lightweight, type-safe in-memory query engine for JavaScript and TypeScript",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/luizfilipezs/query-ts.git"
|
|
9
|
+
},
|
|
10
|
+
"keywords": [
|
|
11
|
+
"query",
|
|
12
|
+
"data filtering",
|
|
13
|
+
"in-memory"
|
|
14
|
+
],
|
|
15
|
+
"author": {
|
|
16
|
+
"name": "Luiz Filipe da Silva",
|
|
17
|
+
"email": "luizfilipezs@proton.me",
|
|
18
|
+
"url": "https://github.com/luizfilipezs"
|
|
19
|
+
},
|
|
20
|
+
"license": "MIT",
|
|
21
|
+
"bugs": {
|
|
22
|
+
"url": "https://github.com/luizfilipezs/query-ts/issues"
|
|
23
|
+
},
|
|
24
|
+
"homepage": "https://github.com/luizfilipezs/query-ts#readme",
|
|
7
25
|
"files": [
|
|
8
|
-
"
|
|
26
|
+
"dist",
|
|
27
|
+
"README.md",
|
|
28
|
+
"LICENSE",
|
|
29
|
+
"CHANGELOG.md"
|
|
9
30
|
],
|
|
31
|
+
"main": "./dist/index.cjs",
|
|
32
|
+
"module": "./dist/index.js",
|
|
33
|
+
"types": "./dist/index.d.ts",
|
|
34
|
+
"exports": {
|
|
35
|
+
".": {
|
|
36
|
+
"import": "./dist/index.js",
|
|
37
|
+
"require": "./dist/index.cjs"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"sideEffects": false,
|
|
10
41
|
"scripts": {
|
|
11
42
|
"test": "vitest",
|
|
12
43
|
"test:cov": "vitest --coverage",
|
|
13
|
-
"build": "
|
|
44
|
+
"build": "tsup",
|
|
14
45
|
"type-check": "tsc --noEmit",
|
|
15
46
|
"format": "prettier --write \"src/**/*.ts\"",
|
|
16
47
|
"lint": "eslint \"src/**/*.ts\" --fix",
|
|
@@ -26,27 +57,6 @@
|
|
|
26
57
|
"eslint --fix"
|
|
27
58
|
]
|
|
28
59
|
},
|
|
29
|
-
"repository": {
|
|
30
|
-
"type": "git",
|
|
31
|
-
"url": "git+https://github.com/luizfilipezs/query-ts.git"
|
|
32
|
-
},
|
|
33
|
-
"keywords": [
|
|
34
|
-
"query",
|
|
35
|
-
"data filtering"
|
|
36
|
-
],
|
|
37
|
-
"author": {
|
|
38
|
-
"name": "Luiz Filipe da Silva",
|
|
39
|
-
"email": "filipeluiz.bs@gmail.com",
|
|
40
|
-
"url": "https://blogdolipe.com.br"
|
|
41
|
-
},
|
|
42
|
-
"license": "MIT",
|
|
43
|
-
"bugs": {
|
|
44
|
-
"url": "https://github.com/luizfilipezs/query-ts/issues"
|
|
45
|
-
},
|
|
46
|
-
"homepage": "https://github.com/luizfilipezs/query-ts#readme",
|
|
47
|
-
"dependencies": {
|
|
48
|
-
"utility-types": "^3.11.0"
|
|
49
|
-
},
|
|
50
60
|
"devDependencies": {
|
|
51
61
|
"@eslint/js": "^10.0.1",
|
|
52
62
|
"@vitest/coverage-v8": "^4.1.2",
|
|
@@ -59,6 +69,7 @@
|
|
|
59
69
|
"lint-staged": "^16.4.0",
|
|
60
70
|
"prettier": "^3.8.1",
|
|
61
71
|
"prettier-plugin-organize-imports": "^4.3.0",
|
|
72
|
+
"tsup": "^8.5.1",
|
|
62
73
|
"typescript": "~5.9.3",
|
|
63
74
|
"typescript-eslint": "^8.57.1",
|
|
64
75
|
"vitest": "^4.1.2"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/errors/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC"}
|
package/lib/core/errors/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/errors/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"invalid-argument-error.d.ts","sourceRoot":"","sources":["../../../src/core/errors/invalid-argument-error.ts"],"names":[],"mappings":"AAAA,qBAAa,oBAAqB,SAAQ,KAAK;gBACjC,OAAO,EAAE,MAAM;CAI5B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"invalid-argument-error.js","sourceRoot":"","sources":["../../../src/core/errors/invalid-argument-error.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,oBAAqB,SAAQ,KAAK;IAC7C,YAAY,OAAe;QACzB,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,sBAAsB,CAAC;IACrC,CAAC;CACF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"attribute-validation-function.d.ts","sourceRoot":"","sources":["../../../src/core/types/attribute-validation-function.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,2BAA2B,CACrC,CAAC,SAAS,MAAM,EAChB,CAAC,SAAS,MAAM,CAAC,GAAG,MAAM,CAAC,IACzB,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"attribute-validation-function.js","sourceRoot":"","sources":["../../../src/core/types/attribute-validation-function.ts"],"names":[],"mappings":""}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { AttributeValidationFunction } from './attribute-validation-function';
|
|
2
|
-
import type { QueryConditionsGroupNullable } from './query-conditions-group-nullable';
|
|
3
|
-
/**
|
|
4
|
-
* Condition to apply to a row column.
|
|
5
|
-
*/
|
|
6
|
-
export type ColumnCondition<T extends object, P extends keyof T> = T[P] extends object ? QueryConditionsGroupNullable<T[P]> | undefined : T[P] | AttributeValidationFunction<T, P> | null | undefined;
|
|
7
|
-
//# sourceMappingURL=column-condition.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"column-condition.d.ts","sourceRoot":"","sources":["../../../src/core/types/column-condition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,iCAAiC,CAAC;AACnF,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AAEtF;;GAEG;AACH,MAAM,MAAM,eAAe,CACzB,CAAC,SAAS,MAAM,EAChB,CAAC,SAAS,MAAM,CAAC,IACf,CAAC,CAAC,CAAC,CAAC,SAAS,MAAM,GACnB,4BAA4B,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,SAAS,GAC9C,CAAC,CAAC,CAAC,CAAC,GAAG,2BAA2B,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"column-condition.js","sourceRoot":"","sources":["../../../src/core/types/column-condition.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC;AAChD,cAAc,0BAA0B,CAAC;AACzC,cAAc,mCAAmC,CAAC;AAClD,cAAc,mCAAmC,CAAC"}
|
package/lib/core/types/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC;AAChD,cAAc,0BAA0B,CAAC;AACzC,cAAc,mCAAmC,CAAC;AAClD,cAAc,mCAAmC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"nullable-condition.d.ts","sourceRoot":"","sources":["../../../src/core/types/nullable-condition.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,iBAAiB,CAAC,CAAC,IAC3B,CAAC,GACD,CAAC,CAAC,KAAK,EAAE,CAAC,KAAK,OAAO,CAAC,GACvB,IAAI,GACJ,SAAS,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"nullable-condition.js","sourceRoot":"","sources":["../../../src/core/types/nullable-condition.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ordering-column.d.ts","sourceRoot":"","sources":["../../../src/core/types/ordering-column.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,YAAY,EACZ,MAAM,EACP,MAAM,mBAAmB,CAAC;AAE3B,MAAM,MAAM,cAAc,CAAC,CAAC,SAAS,MAAM,IACvC,MAAM,CAAC,CAAC,CAAC,GACT,MAAM,iBAAiB,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ordering-column.js","sourceRoot":"","sources":["../../../src/core/types/ordering-column.ts"],"names":[],"mappings":""}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { PropertyOnly } from '../../utils/types';
|
|
2
|
-
import type { NullableCondition } from './nullable-condition';
|
|
3
|
-
export type QueryConditionsGroupNullable<T extends object> = {
|
|
4
|
-
[P in keyof PropertyOnly<T>]?: T[P] extends object ? QueryConditionsGroupNullable<T[P]> : NullableCondition<T[P]>;
|
|
5
|
-
};
|
|
6
|
-
//# sourceMappingURL=query-conditions-group-nullable.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"query-conditions-group-nullable.d.ts","sourceRoot":"","sources":["../../../src/core/types/query-conditions-group-nullable.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAE9D,MAAM,MAAM,4BAA4B,CAAC,CAAC,SAAS,MAAM,IAAI;KAC1D,CAAC,IAAI,MAAM,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,MAAM,GAC9C,4BAA4B,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAClC,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAC5B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"query-conditions-group-nullable.js","sourceRoot":"","sources":["../../../src/core/types/query-conditions-group-nullable.ts"],"names":[],"mappings":""}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { PropertyOnly } from '../../utils/types';
|
|
2
|
-
export type QueryConditionsGroup<T extends object> = {
|
|
3
|
-
[P in keyof PropertyOnly<T>]?: T[P] extends object ? QueryConditionsGroup<T[P]> : T[P] | ((value: T[P]) => boolean);
|
|
4
|
-
};
|
|
5
|
-
//# sourceMappingURL=query-conditions-group.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"query-conditions-group.d.ts","sourceRoot":"","sources":["../../../src/core/types/query-conditions-group.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEtD,MAAM,MAAM,oBAAoB,CAAC,CAAC,SAAS,MAAM,IAAI;KAClD,CAAC,IAAI,MAAM,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,MAAM,GAC9C,oBAAoB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAC1B,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC;CACtC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"query-conditions-group.js","sourceRoot":"","sources":["../../../src/core/types/query-conditions-group.ts"],"names":[],"mappings":""}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { QueryConditionsGroupNullable } from './query-conditions-group-nullable';
|
|
2
|
-
/**
|
|
3
|
-
* Validator configuration.
|
|
4
|
-
*/
|
|
5
|
-
export interface QueryRowValidatorInitializer<T extends object> {
|
|
6
|
-
conditionsObject: QueryConditionsGroupNullable<T>;
|
|
7
|
-
ignoreNullValues: boolean;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=query-row-validator-initializer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"query-row-validator-initializer.d.ts","sourceRoot":"","sources":["../../../src/core/types/query-row-validator-initializer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AAEtF;;GAEG;AACH,MAAM,WAAW,4BAA4B,CAAC,CAAC,SAAS,MAAM;IAC5D,gBAAgB,EAAE,4BAA4B,CAAC,CAAC,CAAC,CAAC;IAClD,gBAAgB,EAAE,OAAO,CAAC;CAC3B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"query-row-validator-initializer.js","sourceRoot":"","sources":["../../../src/core/types/query-row-validator-initializer.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"validation-options.d.ts","sourceRoot":"","sources":["../../../src/core/types/validation-options.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IAChC,gBAAgB,EAAE,OAAO,CAAC;CAC3B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"validation-options.js","sourceRoot":"","sources":["../../../src/core/types/validation-options.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/validation/decorators/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/core/validation/decorators/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export declare function min(value: number): (target: object, propertyKey: string | symbol, index: number) => void;
|
|
2
|
-
export declare function max(value: number): (target: object, propertyKey: string | symbol, index: number) => void;
|
|
3
|
-
export declare function integer(target: object, propertyKey: string | symbol, index: number): void;
|
|
4
|
-
export declare function validateNumbers(target: object, propertyKey: string, descriptor: TypedPropertyDescriptor<any>): void;
|
|
5
|
-
//# sourceMappingURL=number-validaton.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"number-validaton.d.ts","sourceRoot":"","sources":["../../../../src/core/validation/decorators/number-validaton.ts"],"names":[],"mappings":"AAiCA,wBAAgB,GAAG,CAAC,KAAK,EAAE,MAAM,IAE7B,QAAQ,MAAM,EACd,aAAa,MAAM,GAAG,MAAM,EAC5B,OAAO,MAAM,KACZ,IAAI,CAWR;AAED,wBAAgB,GAAG,CAAC,KAAK,EAAE,MAAM,IAE7B,QAAQ,MAAM,EACd,aAAa,MAAM,GAAG,MAAM,EAC5B,OAAO,MAAM,KACZ,IAAI,CAWR;AAED,wBAAgB,OAAO,CACrB,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,MAAM,GAAG,MAAM,EAC5B,KAAK,EAAE,MAAM,GACZ,IAAI,CAUN;AAED,wBAAgB,eAAe,CAC7B,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,MAAM,EAEnB,UAAU,EAAE,uBAAuB,CAAC,GAAG,CAAC,GACvC,IAAI,CA0CN"}
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import { isNumber } from '../../../utils/functions/type-guards';
|
|
2
|
-
import { InvalidArgumentError } from '../../errors';
|
|
3
|
-
const metadata = new WeakMap();
|
|
4
|
-
function getParams(target, propertyKey) {
|
|
5
|
-
let methods = metadata.get(target);
|
|
6
|
-
if (!methods) {
|
|
7
|
-
methods = new Map();
|
|
8
|
-
metadata.set(target, methods);
|
|
9
|
-
}
|
|
10
|
-
let params = methods.get(propertyKey);
|
|
11
|
-
if (!params) {
|
|
12
|
-
params = [];
|
|
13
|
-
methods.set(propertyKey, params);
|
|
14
|
-
}
|
|
15
|
-
return params;
|
|
16
|
-
}
|
|
17
|
-
export function min(value) {
|
|
18
|
-
return function (target, propertyKey, index) {
|
|
19
|
-
const params = getParams(target, propertyKey);
|
|
20
|
-
const existing = params.find((p) => p.index === index);
|
|
21
|
-
if (existing) {
|
|
22
|
-
existing.min = value;
|
|
23
|
-
}
|
|
24
|
-
else {
|
|
25
|
-
params.push({ index, min: value });
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
export function max(value) {
|
|
30
|
-
return function (target, propertyKey, index) {
|
|
31
|
-
const params = getParams(target, propertyKey);
|
|
32
|
-
const existing = params.find((p) => p.index === index);
|
|
33
|
-
if (existing) {
|
|
34
|
-
existing.max = value;
|
|
35
|
-
}
|
|
36
|
-
else {
|
|
37
|
-
params.push({ index, max: value });
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
export function integer(target, propertyKey, index) {
|
|
42
|
-
const params = getParams(target, propertyKey);
|
|
43
|
-
const existing = params.find((p) => p.index === index);
|
|
44
|
-
if (existing) {
|
|
45
|
-
existing.integer = true;
|
|
46
|
-
}
|
|
47
|
-
else {
|
|
48
|
-
params.push({ index, integer: true });
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
export function validateNumbers(target, propertyKey,
|
|
52
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
53
|
-
descriptor) {
|
|
54
|
-
const original = descriptor.value;
|
|
55
|
-
descriptor.value = function (...args) {
|
|
56
|
-
const params = metadata.get(target)?.get(propertyKey) ?? [];
|
|
57
|
-
for (const rule of params) {
|
|
58
|
-
const value = args[rule.index];
|
|
59
|
-
// MIN
|
|
60
|
-
if (rule.min !== undefined) {
|
|
61
|
-
if (!isNumber(value) || value < rule.min) {
|
|
62
|
-
throw new InvalidArgumentError(`${String(value)} is not a valid argument to param ${rule.index} on ${propertyKey}(). ` +
|
|
63
|
-
`Expected value to be equal or greater than ${rule.min}.`);
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
// MAX
|
|
67
|
-
if (rule.max !== undefined) {
|
|
68
|
-
if (!isNumber(value) || value > rule.max) {
|
|
69
|
-
throw new InvalidArgumentError(`${String(value)} is not a valid argument to param ${rule.index} on ${propertyKey}(). ` +
|
|
70
|
-
`Expected value to be equal or less than ${rule.max}.`);
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
// INTEGER
|
|
74
|
-
if (rule.integer) {
|
|
75
|
-
if (!Number.isSafeInteger(value)) {
|
|
76
|
-
throw new InvalidArgumentError(`${String(value)} is not a valid argument to param ${rule.index} on ${propertyKey}(). ` +
|
|
77
|
-
`Expected value to be an integer.`);
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
return original.apply(this, args);
|
|
82
|
-
};
|
|
83
|
-
}
|
|
84
|
-
//# sourceMappingURL=number-validaton.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"number-validaton.js","sourceRoot":"","sources":["../../../../src/core/validation/decorators/number-validaton.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,sCAAsC,CAAC;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AASpD,MAAM,QAAQ,GAAG,IAAI,OAAO,EAAmD,CAAC;AAEhF,SAAS,SAAS,CAChB,MAAc,EACd,WAA4B;IAE5B,IAAI,OAAO,GAAG,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IAEnC,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,OAAO,GAAG,IAAI,GAAG,EAAE,CAAC;QACpB,QAAQ,CAAC,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,CAAC;IAED,IAAI,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;IAEtC,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,MAAM,GAAG,EAAE,CAAC;QACZ,OAAO,CAAC,GAAG,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC;IACnC,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,MAAM,UAAU,GAAG,CAAC,KAAa;IAC/B,OAAO,UACL,MAAc,EACd,WAA4B,EAC5B,KAAa;QAEb,MAAM,MAAM,GAAG,SAAS,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;QAE9C,MAAM,QAAQ,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,C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5B,GAAG,MAAM,CAAC,KAAK,CAAC,qCAAqC,IAAI,CAAC,KAAK,OAAO,WAAW,MAAM;wBACrF,kCAAkC,CACrC,CAAC;gBACJ,CAAC;YACH,CAAC;QACH,CAAC;QAED,OAAO,QAAQ,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IACpC,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/validation/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/validation/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import type { QueryConditionsGroupNullable } from '../types';
|
|
2
|
-
import type { ValidationOptions } from '../types/validation-options';
|
|
3
|
-
/**
|
|
4
|
-
* Validates a row in the query.
|
|
5
|
-
*/
|
|
6
|
-
export declare class QueryRowValidator {
|
|
7
|
-
#private;
|
|
8
|
-
/**
|
|
9
|
-
* Validates all conditions of the row.
|
|
10
|
-
*
|
|
11
|
-
* @returns Validation result.
|
|
12
|
-
*/
|
|
13
|
-
static validate<T extends object>(row: T, condition: QueryConditionsGroupNullable<T>, options?: ValidationOptions): boolean;
|
|
14
|
-
/**
|
|
15
|
-
* Validate a condition to a specific column.
|
|
16
|
-
*
|
|
17
|
-
* @param columnName Column name.
|
|
18
|
-
* @param condition Condition to be validated.
|
|
19
|
-
*
|
|
20
|
-
* @returns Validation result.
|
|
21
|
-
*/
|
|
22
|
-
private static validateColumnCondition;
|
|
23
|
-
}
|
|
24
|
-
//# sourceMappingURL=query-row-validator.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"query-row-validator.d.ts","sourceRoot":"","sources":["../../../src/core/validation/query-row-validator.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAEV,4BAA4B,EAC7B,MAAM,UAAU,CAAC;AAElB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAErE;;GAEG;AACH,qBAAa,iBAAiB;;IAK5B;;;;OAIG;IACH,MAAM,CAAC,QAAQ,CAAC,CAAC,SAAS,MAAM,EAC9B,GAAG,EAAE,CAAC,EACN,SAAS,EAAE,4BAA4B,CAAC,CAAC,CAAC,EAC1C,OAAO,CAAC,EAAE,iBAAiB,GAC1B,OAAO;IAiBV;;;;;;;OAOG;IACH,OAAO,CAAC,MAAM,CAAC,uBAAuB;CAkCvC"}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
2
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
3
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
4
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
|
-
};
|
|
6
|
-
var _a, _QueryRowValidator_defaultOptions;
|
|
7
|
-
import { compareArrays, getEntries } from '../../utils/functions/generic';
|
|
8
|
-
import { isFunction, isObject } from '../../utils/functions/type-guards';
|
|
9
|
-
/**
|
|
10
|
-
* Validates a row in the query.
|
|
11
|
-
*/
|
|
12
|
-
export class QueryRowValidator {
|
|
13
|
-
/**
|
|
14
|
-
* Validates all conditions of the row.
|
|
15
|
-
*
|
|
16
|
-
* @returns Validation result.
|
|
17
|
-
*/
|
|
18
|
-
static validate(row, condition, options) {
|
|
19
|
-
for (const [column, columnCondition] of getEntries(condition)) {
|
|
20
|
-
const validated = this.validateColumnCondition(row, column, columnCondition, options ?? __classPrivateFieldGet(this, _a, "f", _QueryRowValidator_defaultOptions));
|
|
21
|
-
if (!validated) {
|
|
22
|
-
return false;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
return true;
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Validate a condition to a specific column.
|
|
29
|
-
*
|
|
30
|
-
* @param columnName Column name.
|
|
31
|
-
* @param condition Condition to be validated.
|
|
32
|
-
*
|
|
33
|
-
* @returns Validation result.
|
|
34
|
-
*/
|
|
35
|
-
static validateColumnCondition(row, column, condition, options) {
|
|
36
|
-
if (options.ignoreNullValues &&
|
|
37
|
-
(condition === null || condition === undefined)) {
|
|
38
|
-
return true;
|
|
39
|
-
}
|
|
40
|
-
const cellValue = row[column];
|
|
41
|
-
if (isFunction(condition)) {
|
|
42
|
-
return condition(cellValue);
|
|
43
|
-
}
|
|
44
|
-
if (Array.isArray(condition)) {
|
|
45
|
-
return Array.isArray(cellValue)
|
|
46
|
-
? compareArrays(cellValue, condition)
|
|
47
|
-
: false;
|
|
48
|
-
}
|
|
49
|
-
if (isObject(condition)) {
|
|
50
|
-
return isObject(cellValue) ? this.validate(cellValue, condition) : false;
|
|
51
|
-
}
|
|
52
|
-
return cellValue === condition;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
_a = QueryRowValidator;
|
|
56
|
-
_QueryRowValidator_defaultOptions = { value: {
|
|
57
|
-
ignoreNullValues: false,
|
|
58
|
-
} };
|
|
59
|
-
//# sourceMappingURL=query-row-validator.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"query-row-validator.js","sourceRoot":"","sources":["../../../src/core/validation/query-row-validator.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC1E,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,mCAAmC,CAAC;AAQzE;;GAEG;AACH,MAAM,OAAO,iBAAiB;IAK5B;;;;OAIG;IACH,MAAM,CAAC,QAAQ,CACb,GAAM,EACN,SAA0C,EAC1C,OAA2B;QAE3B,K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,CAEpB"}
|
package/lib/index.d.ts
DELETED
package/lib/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
|
package/lib/index.js
DELETED
package/lib/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
|
package/lib/query.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../src/query.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EACpB,4BAA4B,EAC7B,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAOnE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAE5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,qBAAa,KAAK,CAAC,CAAC,SAAS,MAAM;;IAgBjC;;;;OAIG;IACH,OAAO;IAIP;;;;;;OAMG;IACH,MAAM,CAAC,IAAI,CAAC,CAAC,SAAS,MAAM,EAAE,IAAI,EAAE,CAAC,EAAE,GAAG,KAAK,CAAC,CAAC,CAAC;IAIlD;;;;;;OAMG;IACH,MAAM,CAAC,QAAQ,SAAS,MAAM,CAAC,CAAC,CAAC,EAAE,EACjC,GAAG,OAAO,EAAE,QAAQ,GACnB,KAAK,CAAC;SAAG,CAAC,IAAI,QAAQ,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;KAAE,CAAC;IAuB3C;;;;;OAKG;IACH,GAAG,CAAC,OAAO,SAAS,MAAM,EAAE,QAAQ,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,OAAO,GAAG,KAA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