@futdevpro/fsm-dynamo 1.10.12 → 1.10.14
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 +12 -9
- 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/build/_models/types/db-/304/221sort.type.d.ts +9 -3
- package/build/_models/types/db-/304/221sort.type.d.ts.map +1 -1
- package/{futdevpro-fsm-dynamo-01.10.12.tgz → futdevpro-fsm-dynamo-01.10.14.tgz} +0 -0
- package/package.json +1 -1
- package/src/_models/types/db-/304/221filter.type.ts +19 -17
- package/src/_models/types/db-/304/221sort.type.ts +10 -2
|
@@ -6,7 +6,7 @@ import { DyFM_RangeValue } from '../control-models/range-value.control-model';
|
|
|
6
6
|
* it should be the value, a range or an array of the searching values
|
|
7
7
|
*/
|
|
8
8
|
export type DyFM_DBĐFilter<T_RootProperty> = {
|
|
9
|
-
[K in keyof T_RootProperty]?: T_RootProperty[K] | T_RootProperty[K][] | DyFM_RangeValue<T_RootProperty[K]> | DyFM_SpecialSearch<T_RootProperty> | DyFM_SpecialNestSearch<any>;
|
|
9
|
+
[K in keyof T_RootProperty]?: T_RootProperty[K] | T_RootProperty[K][] | DyFM_RangeValue<T_RootProperty[K]> | DyFM_SpecialSearch<T_RootProperty[K]> | DyFM_SpecialNestSearch<any>;
|
|
10
10
|
};
|
|
11
11
|
export interface DyFM_SpecialSearch<T> {
|
|
12
12
|
isSpecialSearch: true;
|
|
@@ -14,17 +14,20 @@ export interface DyFM_SpecialSearch<T> {
|
|
|
14
14
|
type: DyFM_SpecialSearch_Type;
|
|
15
15
|
}
|
|
16
16
|
/**
|
|
17
|
-
* searches for a nested
|
|
18
|
-
* can search for nested properties in arrays as well with the following syntax used in key:
|
|
19
|
-
* nestKeys: [ 'arrayProperty', '*', 'nestedPropertySearch' ]
|
|
17
|
+
* searches for a nested properties in the object
|
|
20
18
|
*/
|
|
21
19
|
export interface DyFM_SpecialNestSearch<T_NestedProperty> {
|
|
22
20
|
isSpecialNestSearch: true;
|
|
23
|
-
nestedPropertySearches:
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
21
|
+
nestedPropertySearches: DyFM_NestPropertySearch<any>[];
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* can search for nested properties in arrays as well with the following syntax used in key:
|
|
25
|
+
* nestKeys: [ 'arrayProperty', '*', 'nestedPropertySearch' ]
|
|
26
|
+
*/
|
|
27
|
+
export interface DyFM_NestPropertySearch<T_NestedProperty> {
|
|
28
|
+
nestKeys: string[];
|
|
29
|
+
propertyType: DyFM_BasicProperty_Type;
|
|
30
|
+
search: T_NestedProperty | T_NestedProperty[] | DyFM_RangeValue<T_NestedProperty> | DyFM_SpecialSearch<T_NestedProperty>;
|
|
28
31
|
}
|
|
29
32
|
export declare enum DyFM_SpecialSearch_Type {
|
|
30
33
|
/**
|
|
@@ -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,cAAc,IAAI;KAC1C,CAAC,IAAI,MAAM,cAAc,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,IAAI;KAC1C,CAAC,IAAI,MAAM,cAAc,CAAC,CAAC,EAAE,cAAc,CAAC,CAAC,CAAC,GACjB,cAAc,CAAC,CAAC,CAAC,EAAE,GACnB,eAAe,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,GAClC,kBAAkB,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,GACrC,sBAAsB,CAAC,GAAG,CAAC;CAC1D,CAAC;AAEF,MAAM,WAAW,kBAAkB,CAAC,CAAC;IACnC,eAAe,EAAE,IAAI,CAAC;IACtB,WAAW,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC;IACrB,IAAI,EAAE,uBAAuB,CAAC;CAC/B;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB,CAAC,gBAAgB;IACtD,mBAAmB,EAAE,IAAI,CAAC;IAC1B,sBAAsB,EAAE,uBAAuB,CAAC,GAAG,CAAC,EAAE,CAAC;CACxD;AACD;;;GAGG;AACH,MAAM,WAAW,uBAAuB,CAAC,gBAAgB;IACvD,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,YAAY,EAAE,uBAAuB,CAAC;IACtC,MAAM,EAAE,gBAAgB,GAChB,gBAAgB,EAAE,GAClB,eAAe,CAAC,gBAAgB,CAAC,GACjC,kBAAkB,CAAC,gBAAgB,CAAC,CAAC;CAC9C;AAED,oBAAY,uBAAuB;IACjC;;SAEK;IACL,mBAAmB,wBAAwB;IAC3C;;SAEK;IACL,gBAAgB,qBAAqB;IACrC;;SAEK;IACL,uBAAuB,4BAA4B;CAOpD"}
|
|
@@ -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":";;;AA4CA,IAAY,uBAmBX;AAnBD,WAAY,uBAAuB;IACjC;;SAEK;IACL,sEAA2C,CAAA;IAC3C;;SAEK;IACL,gEAAqC,CAAA;IACrC;;SAEK;IACL,8EAAmD,CAAA;IACnD;;;;OAIG;IACH,oDAAoD;AACtD,CAAC,EAnBW,uBAAuB,uCAAvB,uBAAuB,QAmBlC"}
|
|
@@ -1,9 +1,15 @@
|
|
|
1
|
-
export type DyFM_DBĐSort =
|
|
1
|
+
export type DyFM_DBĐSort = DyFM_DBĐPropertySort | DyFM_DBĐNestedPropertySort;
|
|
2
|
+
export interface DyFM_DBĐPropertySort {
|
|
3
|
+
key: string;
|
|
4
|
+
order: 1 | -1 | 'asc' | 'desc' | 'ascending' | 'descending';
|
|
5
|
+
}
|
|
6
|
+
export interface DyFM_DBĐNestedPropertySort {
|
|
7
|
+
isNestedPropertySort: true;
|
|
2
8
|
/**
|
|
3
9
|
* the key to sort by
|
|
4
10
|
* (can be an array that is used for sorting by nested properties)
|
|
5
11
|
*/
|
|
6
|
-
|
|
12
|
+
nestKeys: string[];
|
|
7
13
|
order: 1 | -1 | 'asc' | 'desc' | 'ascending' | 'descending';
|
|
8
|
-
}
|
|
14
|
+
}
|
|
9
15
|
//# sourceMappingURL=db-%C4%91sort.type.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"db-đsort.type.d.ts","sourceRoot":"","sources":["../../../src/_models/types/db-đsort.type.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"db-đsort.type.d.ts","sourceRoot":"","sources":["../../../src/_models/types/db-đsort.type.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,YAAY,GAAG,oBAAoB,GAAG,0BAA0B,CAAC;AAC7E,MAAM,WAAW,oBAAoB;IACnC,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,CAAC,GAAG,CAAC,CAAC,GAAG,KAAK,GAAG,MAAM,GAAG,WAAW,GAAG,YAAY,CAAC;CAC7D;AAED,MAAM,WAAW,0BAA0B;IACzC,oBAAoB,EAAE,IAAI,CAAC;IAC3B;;;OAGG;IACH,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,KAAK,EAAE,CAAC,GAAG,CAAC,CAAC,GAAG,KAAK,GAAG,MAAM,GAAG,WAAW,GAAG,YAAY,CAAC;CAC7D"}
|
|
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.14",
|
|
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",
|
|
@@ -9,12 +9,11 @@ import { DyFM_RangeValue } from '../control-models/range-value.control-model';
|
|
|
9
9
|
* it should be the value, a range or an array of the searching values
|
|
10
10
|
*/
|
|
11
11
|
export type DyFM_DBĐFilter<T_RootProperty> = {
|
|
12
|
-
[K in keyof T_RootProperty]?:
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
DyFM_SpecialNestSearch<any>;
|
|
12
|
+
[K in keyof T_RootProperty]?: T_RootProperty[K] |
|
|
13
|
+
T_RootProperty[K][] |
|
|
14
|
+
DyFM_RangeValue<T_RootProperty[K]> |
|
|
15
|
+
DyFM_SpecialSearch<T_RootProperty[K]> |
|
|
16
|
+
DyFM_SpecialNestSearch<any>;
|
|
18
17
|
};
|
|
19
18
|
|
|
20
19
|
export interface DyFM_SpecialSearch<T> {
|
|
@@ -24,20 +23,23 @@ export interface DyFM_SpecialSearch<T> {
|
|
|
24
23
|
}
|
|
25
24
|
|
|
26
25
|
/**
|
|
27
|
-
* searches for a nested
|
|
28
|
-
* can search for nested properties in arrays as well with the following syntax used in key:
|
|
29
|
-
* nestKeys: [ 'arrayProperty', '*', 'nestedPropertySearch' ]
|
|
26
|
+
* searches for a nested properties in the object
|
|
30
27
|
*/
|
|
31
28
|
export interface DyFM_SpecialNestSearch<T_NestedProperty> {
|
|
32
29
|
isSpecialNestSearch: true;
|
|
33
|
-
nestedPropertySearches:
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
30
|
+
nestedPropertySearches: DyFM_NestPropertySearch<any>[];
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* can search for nested properties in arrays as well with the following syntax used in key:
|
|
34
|
+
* nestKeys: [ 'arrayProperty', '*', 'nestedPropertySearch' ]
|
|
35
|
+
*/
|
|
36
|
+
export interface DyFM_NestPropertySearch<T_NestedProperty> {
|
|
37
|
+
nestKeys: string[];
|
|
38
|
+
propertyType: DyFM_BasicProperty_Type;
|
|
39
|
+
search: T_NestedProperty |
|
|
40
|
+
T_NestedProperty[] |
|
|
41
|
+
DyFM_RangeValue<T_NestedProperty> |
|
|
42
|
+
DyFM_SpecialSearch<T_NestedProperty>;
|
|
41
43
|
}
|
|
42
44
|
|
|
43
45
|
export enum DyFM_SpecialSearch_Type {
|
|
@@ -1,11 +1,19 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
|
|
4
|
+
export type DyFM_DBĐSort = DyFM_DBĐPropertySort | DyFM_DBĐNestedPropertySort;
|
|
5
|
+
export interface DyFM_DBĐPropertySort {
|
|
6
|
+
key: string;
|
|
7
|
+
order: 1 | -1 | 'asc' | 'desc' | 'ascending' | 'descending';
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface DyFM_DBĐNestedPropertySort {
|
|
11
|
+
isNestedPropertySort: true;
|
|
4
12
|
/**
|
|
5
13
|
* the key to sort by
|
|
6
14
|
* (can be an array that is used for sorting by nested properties)
|
|
7
15
|
*/
|
|
8
|
-
|
|
16
|
+
nestKeys: string[];
|
|
9
17
|
order: 1 | -1 | 'asc' | 'desc' | 'ascending' | 'descending';
|
|
10
18
|
}
|
|
11
19
|
|