@thisisagile/easy 12.4.1 → 12.4.2
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/types/PageList.d.ts +2 -2
- package/dist/utils/View.js +1 -1
- package/package.json +2 -2
- package/src/types/PageList.ts +2 -2
- package/src/utils/View.ts +1 -1
package/dist/types/PageList.d.ts
CHANGED
|
@@ -5,11 +5,11 @@ export declare type Sort = {
|
|
|
5
5
|
value: -1 | 1;
|
|
6
6
|
};
|
|
7
7
|
export declare type FilterValue = {
|
|
8
|
-
label
|
|
8
|
+
label?: string;
|
|
9
9
|
value: any;
|
|
10
10
|
};
|
|
11
11
|
export declare type Filter = {
|
|
12
|
-
label
|
|
12
|
+
label?: string;
|
|
13
13
|
field: string;
|
|
14
14
|
values: FilterValue[];
|
|
15
15
|
};
|
package/dist/utils/View.js
CHANGED
|
@@ -46,6 +46,6 @@ exports.views = {
|
|
|
46
46
|
keepOr: (alt) => (a, key) => (0, Traverse_1.traverse)(a, key) ?? alt,
|
|
47
47
|
or: (key, alt = '') => (a) => (0, Traverse_1.traverse)(a, key) ?? alt,
|
|
48
48
|
value: (value) => () => value,
|
|
49
|
-
to: (ctor) => (a) => new ctor(a)
|
|
49
|
+
to: (ctor) => (a) => new ctor(a),
|
|
50
50
|
};
|
|
51
51
|
//# sourceMappingURL=View.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thisisagile/easy",
|
|
3
|
-
"version": "12.4.
|
|
3
|
+
"version": "12.4.2",
|
|
4
4
|
"description": "Straightforward library for building domain-driven microservice architectures",
|
|
5
5
|
"author": "Sander Hoogendoorn",
|
|
6
6
|
"license": "MIT",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"access": "public"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@thisisagile/easy-test": "12.4.
|
|
34
|
+
"@thisisagile/easy-test": "12.4.2",
|
|
35
35
|
"@types/form-urlencoded": "^4.4.0",
|
|
36
36
|
"@types/jsonwebtoken": "^8.5.9",
|
|
37
37
|
"@types/luxon": "3.0.0",
|
package/src/types/PageList.ts
CHANGED
|
@@ -4,8 +4,8 @@ import { isA } from './IsA';
|
|
|
4
4
|
|
|
5
5
|
export type Sort = { key: string; value: -1 | 1 };
|
|
6
6
|
|
|
7
|
-
export type FilterValue = { label
|
|
8
|
-
export type Filter = { label
|
|
7
|
+
export type FilterValue = { label?: string, value: any };
|
|
8
|
+
export type Filter = { label?: string, field: string, values: FilterValue[] };
|
|
9
9
|
|
|
10
10
|
export type PageOptions = { take?: number; skip?: number; sort?: Sort[]; filters?: Filter[] };
|
|
11
11
|
export type PageList<T> = List<T> & Omit<PageOptions, 'sort'> & { total?: number };
|
package/src/utils/View.ts
CHANGED