@griddo/core 10.1.55 → 10.1.56
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/global.d.ts
CHANGED
|
@@ -16,8 +16,10 @@ export interface SetQueryProps<ContentType> {
|
|
|
16
16
|
site?: number;
|
|
17
17
|
/** String array of the keys/properties in order to restrict the query. */
|
|
18
18
|
fields?: Array<keyof ListContentType<ContentType>>;
|
|
19
|
-
/** Array of content type ids to filter the query */
|
|
20
|
-
filterIds?:
|
|
19
|
+
/** Array of filterIds or Object of arrays of content type ids to filter the query */
|
|
20
|
+
filterIds?: ContentType extends {
|
|
21
|
+
__contentTypeName: string;
|
|
22
|
+
} ? Array<number> | Record<ContentType["__contentTypeName"], FilterItemFromFilterEndPoint> : never;
|
|
21
23
|
/** String as HASH to cache the query (Mostly interal use) */
|
|
22
24
|
cached?: string | number | undefined;
|
|
23
25
|
/** Search string, the spaces will be removed */
|
|
@@ -82,4 +84,11 @@ export type Hideable<T> = T | null;
|
|
|
82
84
|
export type Pretty<T> = {
|
|
83
85
|
[K in keyof T]: T[K];
|
|
84
86
|
} & {};
|
|
87
|
+
export interface FilterItemFromFilterEndPoint {
|
|
88
|
+
label: string;
|
|
89
|
+
items: Array<{
|
|
90
|
+
id: number;
|
|
91
|
+
label: string;
|
|
92
|
+
}>;
|
|
93
|
+
}
|
|
85
94
|
export {};
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@griddo/core",
|
|
3
3
|
"description": "Reload version of Griddo Core",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
|
-
"version": "10.1.
|
|
5
|
+
"version": "10.1.56",
|
|
6
6
|
"authors": [
|
|
7
7
|
"Álvaro Sánchez' <alvaro.sanches@secuoyas.com>",
|
|
8
8
|
"Diego M. Béjar <diego.bejar@secuoyas.com>",
|
|
@@ -78,5 +78,5 @@
|
|
|
78
78
|
"resolutions": {
|
|
79
79
|
"colors": "1.4.0"
|
|
80
80
|
},
|
|
81
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "3722410167d3e7ea849b2652636384e3b32ad471"
|
|
82
82
|
}
|