@dcupl/common 0.0.80-beta.9 → 0.0.81-beta.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/lib-cjs/index.d.ts +1 -0
- package/dist/lib-cjs/index.js +1 -0
- package/dist/lib-cjs/index.js.map +1 -1
- package/dist/lib-cjs/queryData.d.ts +2 -0
- package/dist/lib-cjs/queryData.js +135 -0
- package/dist/lib-cjs/queryData.js.map +1 -0
- package/dist/lib-cjs/tsconfig-cjs.tsbuildinfo +1 -1
- package/dist/lib-cjs/types/dcupl.types.d.ts +26 -0
- package/dist/lib-esm/index.d.ts +1 -0
- package/dist/lib-esm/index.js +1 -0
- package/dist/lib-esm/index.js.map +1 -1
- package/dist/lib-esm/queryData.d.ts +2 -0
- package/dist/lib-esm/queryData.js +131 -0
- package/dist/lib-esm/queryData.js.map +1 -0
- package/dist/lib-esm/tsconfig.tsbuildinfo +1 -1
- package/dist/lib-esm/types/dcupl.types.d.ts +26 -0
- package/package.json +2 -2
|
@@ -50,3 +50,29 @@ export type DcuplGlobalQueryOptions<T> = DcuplItemsOptions<T> & {
|
|
|
50
50
|
listKey: string;
|
|
51
51
|
query: FilterOptions[];
|
|
52
52
|
};
|
|
53
|
+
type DcuplQueryTransformOptions = 'none' | 'lowercase' | 'uppercase' | 'trim' | 'removeWhitespace';
|
|
54
|
+
type DcuplQueryOptions = {
|
|
55
|
+
transform: DcuplQueryTransformOptions[];
|
|
56
|
+
};
|
|
57
|
+
type DcuplQueryArrayOperators = 'in' | 'nin';
|
|
58
|
+
type DcuplQueryStringOperators = 'startsWith' | 'endsWith' | 'includes' | 'notIncludes';
|
|
59
|
+
type DcuplQueryGeneralOperators = 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte';
|
|
60
|
+
type DcuplQueryFalsy = 'isUndefined' | 'isNotUndefined' | 'isNull' | 'isNotNull' | 'isFalsy' | 'isTruthy';
|
|
61
|
+
export type DcuplQueryOperator = DcuplQueryGeneralOperators | DcuplQueryArrayOperators | DcuplQueryFalsy | DcuplQueryStringOperators;
|
|
62
|
+
export type DcuplQueryType = 'and' | 'or';
|
|
63
|
+
export type DcuplQuery = {
|
|
64
|
+
attribute: string;
|
|
65
|
+
operator: DcuplQueryOperator;
|
|
66
|
+
value: any;
|
|
67
|
+
options?: DcuplQueryOptions;
|
|
68
|
+
};
|
|
69
|
+
export type DcuplQueryGroup = {
|
|
70
|
+
queryType?: DcuplQueryType;
|
|
71
|
+
queryKey?: string;
|
|
72
|
+
query: Array<DcuplQuery> | Array<DcuplQueryGroup>;
|
|
73
|
+
options?: DcuplQueryOptions;
|
|
74
|
+
};
|
|
75
|
+
export type DcuplGlobalQueryOptionsNew<T> = DcuplItemsOptions<T> & {
|
|
76
|
+
listKey: string;
|
|
77
|
+
} & DcuplQueryGroup;
|
|
78
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcupl/common",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.81-beta.1",
|
|
4
4
|
"description": "Dcupl Common Code",
|
|
5
5
|
"main": "dist/lib-cjs/index.js",
|
|
6
6
|
"module": "dist/lib-esm/index.js",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"author": "dcupl Team",
|
|
22
22
|
"license": "ISC",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"date-fns": "^2.
|
|
24
|
+
"date-fns": "^2.29.x",
|
|
25
25
|
"lodash": "4.17.x"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|