@clipboard-health/json-api-nestjs 0.13.0 → 0.13.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/package.json CHANGED
@@ -1,22 +1,36 @@
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.13.0",
4
+ "version": "0.13.1",
5
+ "bugs": "https://github.com/ClipboardHealth/core-utils/issues",
5
6
  "dependencies": {
6
7
  "@clipboard-health/contract-core": "0.3.0",
7
8
  "tslib": "2.8.0",
8
- "type-fest": "4.26.1",
9
+ "type-fest": "4.27.0",
9
10
  "zod": "3.23.8"
10
11
  },
11
12
  "devDependencies": {
12
- "@clipboard-health/testing-core": "0.9.0"
13
+ "@clipboard-health/testing-core": "0.9.1"
13
14
  },
14
- "keywords": [],
15
+ "keywords": [
16
+ "api",
17
+ "json-api",
18
+ "json:api",
19
+ "jsonapi",
20
+ "nestjs",
21
+ "rest",
22
+ "typescript"
23
+ ],
15
24
  "license": "MIT",
16
25
  "main": "./src/index.js",
17
26
  "publishConfig": {
18
27
  "access": "public"
19
28
  },
29
+ "repository": {
30
+ "directory": "packages/json-api-nestjs",
31
+ "type": "git",
32
+ "url": "git+https://github.com/ClipboardHealth/core-utils.git"
33
+ },
20
34
  "scripts": {
21
35
  "embed": "embedme README.md"
22
36
  },
@@ -6,7 +6,7 @@ export interface FilterValue {
6
6
  filters: FilterTuple;
7
7
  schema: z.ZodTypeAny;
8
8
  }
9
- type InternalFilterMap<FieldT extends Field = Field> = Record<FieldT, FilterValue>;
9
+ export type InternalFilterMap<FieldT extends Field = Field> = Record<FieldT, FilterValue>;
10
10
  export type FilterMap<FieldT extends Field = Field> = Partial<InternalFilterMap<FieldT>>;
11
11
  export type FilterSchema<MapT extends InternalFilterMap> = {
12
12
  [K in keyof MapT]: z.ZodOptional<z.ZodEffects<z.ZodOptional<z.ZodObject<{
@@ -75,4 +75,3 @@ export type FilterSchema<MapT extends InternalFilterMap> = {
75
75
  export declare function filterQuery<const MapT extends InternalFilterMap>(parameters: Readonly<MapT>): {
76
76
  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]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<FilterSchema<MapT>>, any>[k]; } : never, z.baseObjectInputType<FilterSchema<MapT>> extends infer T_1 ? { [k_1 in keyof T_1]: z.baseObjectInputType<FilterSchema<MapT>>[k_1]; } : never>>;
77
77
  };
78
- export {};