@griddo/core 1.75.120 → 1.75.122
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/autotypes.cjs.js +1 -1
- package/dist/autotypes.cjs.js.map +1 -1
- package/dist/autotypes.js +1 -1
- package/dist/autotypes.js.map +1 -1
- package/dist/functions/autotypes/types.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/types/api-response-fields/index.d.ts +8 -3
- package/dist/types/global.d.ts +2 -0
- package/package.json +2 -2
|
@@ -90,11 +90,16 @@ interface LinkModal<ModalComponents> extends LinkCommon {
|
|
|
90
90
|
}
|
|
91
91
|
/** Field of type link in which a whitelist of modules can be added, for example to open them in a modal. */
|
|
92
92
|
export declare type Link<ModalComponents> = LinkUrl | LinkModal<ModalComponents>;
|
|
93
|
-
declare type
|
|
93
|
+
export declare type SourceReturnComplex<FromData> = FromData extends false ? {
|
|
94
|
+
name?: number;
|
|
95
|
+
value?: number;
|
|
96
|
+
title?: string;
|
|
97
|
+
} : {
|
|
94
98
|
id?: number;
|
|
95
99
|
label?: string;
|
|
96
|
-
}
|
|
97
|
-
|
|
100
|
+
};
|
|
101
|
+
declare type SourceReturn<Relations, FromData> = Relations extends true ? SourceReturnComplex<FromData> : number;
|
|
102
|
+
export declare type MultiCheckSelect<Relations = unknown, FromData = false> = Relations extends false ? Array<SourceReturn<false, FromData>> : Array<SourceReturn<true, FromData>>;
|
|
98
103
|
export declare type MultiCheckSelectGroup<T extends string, Relations = unknown> = {
|
|
99
104
|
[K in T]: MultiCheckSelect<Relations>;
|
|
100
105
|
};
|
package/dist/types/global.d.ts
CHANGED
|
@@ -33,5 +33,7 @@ export interface SetQueryProps<ContentType> {
|
|
|
33
33
|
relations?: boolean;
|
|
34
34
|
/** Indicates if we could use pending publishing items */
|
|
35
35
|
includePending?: boolean;
|
|
36
|
+
/** Indicates if we should limit results to one language */
|
|
37
|
+
allLanguages?: boolean;
|
|
36
38
|
}
|
|
37
39
|
export declare type Hideable<T> = T | null;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@griddo/core",
|
|
3
3
|
"description": "Reload version of Griddo Core",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"version": "1.75.
|
|
5
|
+
"version": "1.75.122",
|
|
6
6
|
"authors": [
|
|
7
7
|
"Álvaro Sánchez' <alvaro.sanches@secuoyas.com>",
|
|
8
8
|
"Carlos Torres <carlos.torres@secuoyas.com>",
|
|
@@ -78,5 +78,5 @@
|
|
|
78
78
|
"resolutions": {
|
|
79
79
|
"colors": "1.4.0"
|
|
80
80
|
},
|
|
81
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "4605d0e1cb850a09316816acdfbd5afb63844e85"
|
|
82
82
|
}
|