@clipboard-health/json-api-nestjs 0.20.0 → 0.21.0
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/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clipboard-health/json-api-nestjs",
|
|
3
3
|
"description": "TypeScript-friendly utilities for adhering to the JSON:API specification with NestJS.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.21.0",
|
|
5
5
|
"bugs": "https://github.com/ClipboardHealth/core-utils/issues",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@clipboard-health/contract-core": "0.
|
|
7
|
+
"@clipboard-health/contract-core": "0.19.0",
|
|
8
8
|
"tslib": "2.8.1"
|
|
9
9
|
},
|
|
10
10
|
"devDependencies": {
|
|
11
|
-
"@clipboard-health/testing-core": "0.
|
|
11
|
+
"@clipboard-health/testing-core": "0.17.0",
|
|
12
12
|
"type-fest": "4.41.0",
|
|
13
13
|
"zod": "3.25.65"
|
|
14
14
|
},
|
|
@@ -79,5 +79,5 @@ export type AttributeFields<DocumentT extends JsonApiDocument> = DocumentT["data
|
|
|
79
79
|
* @see {@link https://jsonapi.org/format/#fetching-sparse-fieldsets JSON:API sparse fieldsets}
|
|
80
80
|
*/
|
|
81
81
|
export declare function fieldsQuery<const MapT extends FieldsMap>(parameters: Readonly<MapT>): {
|
|
82
|
-
fields: z.ZodOptional<z.ZodObject<FieldsSchema<MapT>, "strict", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<FieldsSchema<MapT>>, any> extends infer T ? { [k in keyof T]:
|
|
82
|
+
fields: z.ZodOptional<z.ZodObject<FieldsSchema<MapT>, "strict", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<FieldsSchema<MapT>>, any> extends infer T ? { [k in keyof T]: T[k]; } : never, z.baseObjectInputType<FieldsSchema<MapT>> extends infer T_1 ? { [k_1 in keyof T_1]: T_1[k_1]; } : never>>;
|
|
83
83
|
};
|
|
@@ -83,5 +83,5 @@ export type FilterSchema<MapT extends InternalFilterMap> = {
|
|
|
83
83
|
* @see {@link https://discuss.jsonapi.org/t/share-propose-a-filtering-strategy/257 JSON:API filtering strategy}
|
|
84
84
|
*/
|
|
85
85
|
export declare function filterQuery<const MapT extends InternalFilterMap>(parameters: Readonly<MapT>): {
|
|
86
|
-
filter: z.ZodOptional<z.ZodObject<FilterSchema<MapT>, "strict", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<FilterSchema<MapT>>, any> extends infer T ? { [k in keyof T]:
|
|
86
|
+
filter: z.ZodOptional<z.ZodObject<FilterSchema<MapT>, "strict", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<FilterSchema<MapT>>, any> extends infer T ? { [k in keyof T]: T[k]; } : never, z.baseObjectInputType<FilterSchema<MapT>> extends infer T_1 ? { [k_1 in keyof T_1]: T_1[k_1]; } : never>>;
|
|
87
87
|
};
|