@futdevpro/fsm-dynamo 1.10.8 → 1.10.9
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/build/_models/types/db-/304/221filter.type.d.ts +4 -2
- package/build/_models/types/db-/304/221filter.type.d.ts.map +1 -1
- package/build/_models/types/db-/304/221filter.type.js.map +1 -1
- package/{futdevpro-fsm-dynamo-01.10.08.tgz → futdevpro-fsm-dynamo-01.10.09.tgz} +0 -0
- package/package.json +1 -1
- package/src/_models/types/db-/304/221filter.type.ts +9 -2
|
@@ -5,14 +5,16 @@ import { DyFM_RangeValue } from '../control-models/range-value.control-model';
|
|
|
5
5
|
*
|
|
6
6
|
* it should be the value, a range or an array of the searching values
|
|
7
7
|
*/
|
|
8
|
-
export type DyFM_DBĐFilter<
|
|
9
|
-
[K in keyof
|
|
8
|
+
export type DyFM_DBĐFilter<T_RootProperty, T_NestedProperty = any> = {
|
|
9
|
+
[K in keyof T_RootProperty]?: T_RootProperty[K] | T_RootProperty[K][] | DyFM_RangeValue<T_RootProperty[K]> | DyFM_SpecialSearch<T_NestedProperty> | DyFM_SpecialSearch<T_NestedProperty>[];
|
|
10
10
|
};
|
|
11
11
|
export interface DyFM_SpecialSearch<T> {
|
|
12
12
|
specialSearchConfig: true;
|
|
13
13
|
searchValue: T;
|
|
14
14
|
type: DyFM_SpecialSearch_Type;
|
|
15
15
|
/** only required when searching nested property */
|
|
16
|
+
nestKeys?: string[];
|
|
17
|
+
/** only required when searching nested property */
|
|
16
18
|
propertyType?: DyFM_BasicProperty_Type;
|
|
17
19
|
}
|
|
18
20
|
export declare enum DyFM_SpecialSearch_Type {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"db-đfilter.type.d.ts","sourceRoot":"","sources":["../../../src/_models/types/db-đfilter.type.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAChF,OAAO,EAAE,eAAe,EAAE,MAAM,6CAA6C,CAAC;AAE9E;;;;GAIG;AACH,MAAM,MAAM,cAAc,CAAC,
|
|
1
|
+
{"version":3,"file":"db-đfilter.type.d.ts","sourceRoot":"","sources":["../../../src/_models/types/db-đfilter.type.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAChF,OAAO,EAAE,eAAe,EAAE,MAAM,6CAA6C,CAAC;AAE9E;;;;GAIG;AACH,MAAM,MAAM,cAAc,CAAC,cAAc,EAAE,gBAAgB,GAAG,GAAG,IAAI;KAClE,CAAC,IAAI,MAAM,cAAc,CAAC,CAAC,EAC1B,cAAc,CAAC,CAAC,CAAC,GACjB,cAAc,CAAC,CAAC,CAAC,EAAE,GACnB,eAAe,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,GAClC,kBAAkB,CAAC,gBAAgB,CAAC,GACpC,kBAAkB,CAAC,gBAAgB,CAAC,EAAE;CACzC,CAAC;AAEF,MAAM,WAAW,kBAAkB,CAAC,CAAC;IACnC,mBAAmB,EAAE,IAAI,CAAC;IAC1B,WAAW,EAAE,CAAC,CAAC;IACf,IAAI,EAAE,uBAAuB,CAAC;IAC9B,mDAAmD;IACnD,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,mDAAmD;IACnD,YAAY,CAAC,EAAE,uBAAuB,CAAC;CACxC;AAED,oBAAY,uBAAuB;IACjC;;SAEK;IACL,mBAAmB,wBAAwB;IAC3C;;SAEK;IACL,gBAAgB,qBAAqB;IACrC;;SAEK;IACL,uBAAuB,4BAA4B;IACnD;;;;OAIG;IACH,oBAAoB,yBAAyB;CAC9C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"db-đfilter.type.js","sourceRoot":"","sources":["../../../src/_models/types/db-đfilter.type.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"db-đfilter.type.js","sourceRoot":"","sources":["../../../src/_models/types/db-đfilter.type.ts"],"names":[],"mappings":";;;AA6BA,IAAY,uBAmBX;AAnBD,WAAY,uBAAuB;IACjC;;SAEK;IACL,sEAA2C,CAAA;IAC3C;;SAEK;IACL,gEAAqC,CAAA;IACrC;;SAEK;IACL,8EAAmD,CAAA;IACnD;;;;OAIG;IACH,wEAA6C,CAAA;AAC/C,CAAC,EAnBW,uBAAuB,uCAAvB,uBAAuB,QAmBlC"}
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@futdevpro/fsm-dynamo",
|
|
3
|
-
"version": "01.10.
|
|
3
|
+
"version": "01.10.09",
|
|
4
4
|
"description": "Full Stack Model Collection for Dynamic (NodeJS-Typescript) Framework called Dynamo, by Future Development Ltd.",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"prep": "npm i pnpm -g && npm i rimraf nodemon -g",
|
|
@@ -8,8 +8,13 @@ import { DyFM_RangeValue } from '../control-models/range-value.control-model';
|
|
|
8
8
|
*
|
|
9
9
|
* it should be the value, a range or an array of the searching values
|
|
10
10
|
*/
|
|
11
|
-
export type DyFM_DBĐFilter<
|
|
12
|
-
[K in keyof
|
|
11
|
+
export type DyFM_DBĐFilter<T_RootProperty, T_NestedProperty = any> = {
|
|
12
|
+
[K in keyof T_RootProperty]?:
|
|
13
|
+
T_RootProperty[K] |
|
|
14
|
+
T_RootProperty[K][] |
|
|
15
|
+
DyFM_RangeValue<T_RootProperty[K]> |
|
|
16
|
+
DyFM_SpecialSearch<T_NestedProperty> |
|
|
17
|
+
DyFM_SpecialSearch<T_NestedProperty>[];
|
|
13
18
|
};
|
|
14
19
|
|
|
15
20
|
export interface DyFM_SpecialSearch<T> {
|
|
@@ -17,6 +22,8 @@ export interface DyFM_SpecialSearch<T> {
|
|
|
17
22
|
searchValue: T;
|
|
18
23
|
type: DyFM_SpecialSearch_Type;
|
|
19
24
|
/** only required when searching nested property */
|
|
25
|
+
nestKeys?: string[];
|
|
26
|
+
/** only required when searching nested property */
|
|
20
27
|
propertyType?: DyFM_BasicProperty_Type;
|
|
21
28
|
}
|
|
22
29
|
|