@clipboard-health/json-api-nestjs 2.3.25 → 2.3.26

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/README.md CHANGED
@@ -35,10 +35,10 @@ import {
35
35
  } from "@clipboard-health/json-api-nestjs";
36
36
  import { z } from "zod";
37
37
 
38
- import {
39
- type ArticleAttributeFields,
40
- type UserAttributeFields,
41
- type UserIncludeFields,
38
+ import type {
39
+ ArticleAttributeFields,
40
+ UserAttributeFields,
41
+ UserIncludeFields,
42
42
  } from "../src/contract";
43
43
 
44
44
  const articleFields = ["title"] as const satisfies readonly ArticleAttributeFields[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clipboard-health/json-api-nestjs",
3
- "version": "2.3.25",
3
+ "version": "2.3.26",
4
4
  "description": "TypeScript-friendly utilities for adhering to the JSON:API specification with NestJS.",
5
5
  "keywords": [
6
6
  "api",
@@ -29,7 +29,7 @@
29
29
  "tslib": "2.8.1"
30
30
  },
31
31
  "devDependencies": {
32
- "@clipboard-health/testing-core": "2.2.89",
32
+ "@clipboard-health/testing-core": "2.2.90",
33
33
  "type-fest": "5.5.0",
34
34
  "zod": "3.25.76"
35
35
  },
@@ -23,10 +23,10 @@ export declare const PAGINATION: {
23
23
  * } from "@clipboard-health/json-api-nestjs";
24
24
  * import { z } from "zod";
25
25
  *
26
- * import {
27
- * type ArticleAttributeFields,
28
- * type UserAttributeFields,
29
- * type UserIncludeFields,
26
+ * import type {
27
+ * ArticleAttributeFields,
28
+ * UserAttributeFields,
29
+ * UserIncludeFields,
30
30
  * } from "../src/contract";
31
31
  *
32
32
  * const articleFields = ["title"] as const satisfies readonly ArticleAttributeFields[];
@@ -28,10 +28,10 @@ exports.PAGINATION = {
28
28
  * } from "@clipboard-health/json-api-nestjs";
29
29
  * import { z } from "zod";
30
30
  *
31
- * import {
32
- * type ArticleAttributeFields,
33
- * type UserAttributeFields,
34
- * type UserIncludeFields,
31
+ * import type {
32
+ * ArticleAttributeFields,
33
+ * UserAttributeFields,
34
+ * UserIncludeFields,
35
35
  * } from "../src/contract";
36
36
  *
37
37
  * const articleFields = ["title"] as const satisfies readonly ArticleAttributeFields[];
@@ -1,15 +1,15 @@
1
1
  import { z } from "zod";
2
- import { type ApiType, type Data, type Field, type JsonApiDocument } from "../types";
2
+ import type { ApiType, Data, Field, JsonApiDocument } from "../types";
3
3
  export type FieldsMap = Record<ApiType, readonly [Field, ...Field[]]>;
4
4
  export type FieldsSchema<MapT extends FieldsMap> = {
5
- [K in keyof MapT]: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEnum<z.Writeable<MapT[K]>>>>, Array<MapT[K][number]> | undefined, unknown>;
5
+ [K in keyof MapT]: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEnum<z.Writeable<MapT[K]>>>>>;
6
6
  };
7
7
  /**
8
8
  * JSON:API attribute fields for use in fields queries.
9
9
  *
10
10
  * @template DocumentT - The JSON:API document.
11
11
  */
12
- export type AttributeFields<DocumentT extends JsonApiDocument> = DocumentT["data"] extends Array<infer R extends Data> ? keyof R["attributes"] : DocumentT["data"] extends Data ? keyof DocumentT["data"]["attributes"] : never;
12
+ export type AttributeFields<DocumentT extends JsonApiDocument> = DocumentT["data"] extends (infer R extends Data)[] ? keyof R["attributes"] : DocumentT["data"] extends Data ? keyof DocumentT["data"]["attributes"] : never;
13
13
  /**
14
14
  * Creates a Zod schema for JSON:API sparse fieldsets.
15
15
  *
@@ -28,10 +28,10 @@ export type AttributeFields<DocumentT extends JsonApiDocument> = DocumentT["data
28
28
  * } from "@clipboard-health/json-api-nestjs";
29
29
  * import { z } from "zod";
30
30
  *
31
- * import {
32
- * type ArticleAttributeFields,
33
- * type UserAttributeFields,
34
- * type UserIncludeFields,
31
+ * import type {
32
+ * ArticleAttributeFields,
33
+ * UserAttributeFields,
34
+ * UserIncludeFields,
35
35
  * } from "../src/contract";
36
36
  *
37
37
  * const articleFields = ["title"] as const satisfies readonly ArticleAttributeFields[];
@@ -21,10 +21,10 @@ const splitString_1 = require("../internal/splitString");
21
21
  * } from "@clipboard-health/json-api-nestjs";
22
22
  * import { z } from "zod";
23
23
  *
24
- * import {
25
- * type ArticleAttributeFields,
26
- * type UserAttributeFields,
27
- * type UserIncludeFields,
24
+ * import type {
25
+ * ArticleAttributeFields,
26
+ * UserAttributeFields,
27
+ * UserIncludeFields,
28
28
  * } from "../src/contract";
29
29
  *
30
30
  * const articleFields = ["title"] as const satisfies readonly ArticleAttributeFields[];
@@ -1 +1 @@
1
- {"version":3,"file":"fieldsQuery.js","sourceRoot":"","sources":["../../../../../../packages/json-api-nestjs/src/lib/query/fieldsQuery.ts"],"names":[],"mappings":";;AA+FA,kCAYC;AA3GD,6BAAwB;AAExB,yDAAsD;AAyBtD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmEG;AACH,SAAgB,WAAW,CAA+B,UAA0B;IAClF,MAAM,YAAY,GAAG,MAAM,CAAC,WAAW,CACrC,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,OAAO,EAAE,MAAM,CAAiC,EAAE,EAAE,CAAC;QACpF,OAAO;QACP,OAAC,CAAC,UAAU,CAAC,yBAAW,EAAE,OAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,CAAC;KAC7E,CAAC,CAEmB,CAAC;IAExB,OAAO;QACL,MAAM,EAAE,OAAC,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KACnD,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"fieldsQuery.js","sourceRoot":"","sources":["../../../../../../packages/json-api-nestjs/src/lib/query/fieldsQuery.ts"],"names":[],"mappings":";;AA2FA,kCAYC;AAvGD,6BAAwB;AAExB,yDAAsD;AAqBtD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmEG;AACH,SAAgB,WAAW,CAA+B,UAA0B;IAClF,MAAM,YAAY,GAAG,MAAM,CAAC,WAAW,CACrC,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,OAAO,EAAE,MAAM,CAAiC,EAAE,EAAE,CAAC;QACpF,OAAO;QACP,OAAC,CAAC,UAAU,CAAC,yBAAW,EAAE,OAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,CAAC;KAC7E,CAAC,CAEmB,CAAC;IAExB,OAAO;QACL,MAAM,EAAE,OAAC,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KACnD,CAAC;AACJ,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { z } from "zod";
2
- import { type Field } from "../types";
2
+ import type { Field } from "../types";
3
3
  export type Filter = "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "search";
4
4
  export type FilterTuple = readonly [Filter, ...Filter[]];
5
5
  export interface FilterValue {
@@ -29,10 +29,10 @@ export type FilterSchema<MapT extends InternalFilterMap> = {
29
29
  * } from "@clipboard-health/json-api-nestjs";
30
30
  * import { z } from "zod";
31
31
  *
32
- * import {
33
- * type ArticleAttributeFields,
34
- * type UserAttributeFields,
35
- * type UserIncludeFields,
32
+ * import type {
33
+ * ArticleAttributeFields,
34
+ * UserAttributeFields,
35
+ * UserIncludeFields,
36
36
  * } from "../src/contract";
37
37
  *
38
38
  * const articleFields = ["title"] as const satisfies readonly ArticleAttributeFields[];
@@ -22,10 +22,10 @@ const splitString_1 = require("../internal/splitString");
22
22
  * } from "@clipboard-health/json-api-nestjs";
23
23
  * import { z } from "zod";
24
24
  *
25
- * import {
26
- * type ArticleAttributeFields,
27
- * type UserAttributeFields,
28
- * type UserIncludeFields,
25
+ * import type {
26
+ * ArticleAttributeFields,
27
+ * UserAttributeFields,
28
+ * UserIncludeFields,
29
29
  * } from "../src/contract";
30
30
  *
31
31
  * const articleFields = ["title"] as const satisfies readonly ArticleAttributeFields[];
@@ -1,6 +1,6 @@
1
- import { type GreaterThan, type Subtract } from "type-fest";
1
+ import type { GreaterThan, Subtract } from "type-fest";
2
2
  import { z } from "zod";
3
- import { type JsonApiDocument, type Relationship, type Relationships } from "../types";
3
+ import type { JsonApiDocument, Relationship, Relationships } from "../types";
4
4
  /**
5
5
  * Recursively traverse the JSON:API document to build a list of all possible relationship paths up
6
6
  * to the specified depth, which prevents stack overflow for circular relationships. Use the result
@@ -11,14 +11,14 @@ import { type JsonApiDocument, type Relationship, type Relationships } from "../
11
11
  * @template Depth - The maximum depth for recursive relationship traversal.
12
12
  * @template Prefix - The prefix for nested relationship paths.
13
13
  */
14
- export type RelationshipPaths<MapT extends Record<string, z.ZodTypeAny>, DocumentT extends JsonApiDocument, Depth extends number = 5, Prefix extends string = ""> = GreaterThan<Depth, 0> extends true ? DocumentT["data"] extends Array<infer Data> | (infer Data) ? Data extends {
14
+ export type RelationshipPaths<MapT extends Record<string, z.ZodTypeAny>, DocumentT extends JsonApiDocument, Depth extends number = 5, Prefix extends string = ""> = GreaterThan<Depth, 0> extends true ? DocumentT["data"] extends (infer Data)[] | (infer Data) ? Data extends {
15
15
  relationships?: infer Relation;
16
16
  } ? Relation extends Relationships ? {
17
17
  [K in keyof Relation]: K extends string ? NonNullable<Relation[K]> extends Relationship ? NonNullable<Relation[K]>["data"] extends {
18
18
  type?: infer RelationT;
19
- } | Array<{
19
+ } | {
20
20
  type?: infer RelationT;
21
- }> ? RelationT extends keyof MapT ? `${Prefix}${K}` | RelationshipPaths<MapT, z.infer<MapT[RelationT]>, Subtract<Depth, 1>, `${Prefix}${K}.`> : never : never : never : never;
21
+ }[] ? RelationT extends keyof MapT ? `${Prefix}${K}` | RelationshipPaths<MapT, z.infer<MapT[RelationT]>, Subtract<Depth, 1>, `${Prefix}${K}.`> : never : never : never : never;
22
22
  }[keyof Relation] : never : never : never : never;
23
23
  /**
24
24
  * Creates a Zod schema for JSON:API include parameters.
@@ -38,10 +38,10 @@ export type RelationshipPaths<MapT extends Record<string, z.ZodTypeAny>, Documen
38
38
  * } from "@clipboard-health/json-api-nestjs";
39
39
  * import { z } from "zod";
40
40
  *
41
- * import {
42
- * type ArticleAttributeFields,
43
- * type UserAttributeFields,
44
- * type UserIncludeFields,
41
+ * import type {
42
+ * ArticleAttributeFields,
43
+ * UserAttributeFields,
44
+ * UserIncludeFields,
45
45
  * } from "../src/contract";
46
46
  *
47
47
  * const articleFields = ["title"] as const satisfies readonly ArticleAttributeFields[];
@@ -21,10 +21,10 @@ const splitString_1 = require("../internal/splitString");
21
21
  * } from "@clipboard-health/json-api-nestjs";
22
22
  * import { z } from "zod";
23
23
  *
24
- * import {
25
- * type ArticleAttributeFields,
26
- * type UserAttributeFields,
27
- * type UserIncludeFields,
24
+ * import type {
25
+ * ArticleAttributeFields,
26
+ * UserAttributeFields,
27
+ * UserIncludeFields,
28
28
  * } from "../src/contract";
29
29
  *
30
30
  * const articleFields = ["title"] as const satisfies readonly ArticleAttributeFields[];
@@ -1 +1 @@
1
- {"version":3,"file":"includeQuery.js","sourceRoot":"","sources":["../../../../../../packages/json-api-nestjs/src/lib/query/includeQuery.ts"],"names":[],"mappings":";;AAuHA,oCAuBC;AA7ID,6BAAwB;AAExB,yDAAsD;AAgDtD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmEG;AACH,SAAgB,YAAY,CAAyC,MAAc;IACjF,MAAM,QAAQ,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC;IAEjC,OAAO;QACL,OA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Q,EAAE,CAAC;aACtE,WAAW,CAAC,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE;YAC9B,IAAI,CAAC,KAAK,EAAE,CAAC;gBACX,OAAO;YACT,CAAC;YAED,KAAK,MAAM,KAAK,IAAI,KAAK,EAAE,CAAC;gBAC1B,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC;oBACzB,OAAO,CAAC,QAAQ,CAAC;wBACf,IAAI,EAAE,OAAC,CAAC,YAAY,CAAC,MAAM;wBAC3B,OAAO,EAAE,2BAA2B,KAAK,GAAG;wBAC5C,IAAI,EAAE,CAAC,SAAS,EAAE,KAAK,CAAC;qBACzB,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;QACH,CAAC,CAAC;aACD,SAAS,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAqC,CAAC;KAC/D,CAAC;AACJ,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { z } from "zod";
2
- import { type Field } from "../types";
2
+ import type { Field } from "../types";
3
3
  /**
4
4
  * Creates a Zod schema for JSON:API sort parameters.
5
5
  *
@@ -17,10 +17,10 @@ import { type Field } from "../types";
17
17
  * } from "@clipboard-health/json-api-nestjs";
18
18
  * import { z } from "zod";
19
19
  *
20
- * import {
21
- * type ArticleAttributeFields,
22
- * type UserAttributeFields,
23
- * type UserIncludeFields,
20
+ * import type {
21
+ * ArticleAttributeFields,
22
+ * UserAttributeFields,
23
+ * UserIncludeFields,
24
24
  * } from "../src/contract";
25
25
  *
26
26
  * const articleFields = ["title"] as const satisfies readonly ArticleAttributeFields[];
@@ -20,10 +20,10 @@ const splitString_1 = require("../internal/splitString");
20
20
  * } from "@clipboard-health/json-api-nestjs";
21
21
  * import { z } from "zod";
22
22
  *
23
- * import {
24
- * type ArticleAttributeFields,
25
- * type UserAttributeFields,
26
- * type UserIncludeFields,
23
+ * import type {
24
+ * ArticleAttributeFields,
25
+ * UserAttributeFields,
26
+ * UserIncludeFields,
27
27
  * } from "../src/contract";
28
28
  *
29
29
  * const articleFields = ["title"] as const satisfies readonly ArticleAttributeFields[];
@@ -1 +1 @@
1
- {"version":3,"file":"sortQuery.js","sourceRoot":"","sources":["../../../../../../packages/json-api-nestjs/src/lib/query/sortQuery.ts"],"names":[],"mappings":";;AAwEA,8BAsBC;AA9FD,6BAAwB;AAExB,yDAAsD;AAGtD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkEG;AACH,SAAgB,SAAS,CAAoD,MAAc;IACzF,MAAM,QAAQ,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC;IACjC,OAAO;QACL,IAAI,EAAE,OAAC;aACJ,UAAU,CAAC,yBAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,CAAC;aACtE,WAAW,CAAC,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE;YAC9B,IAAI,CAAC,KAAK,EAAE,CAAC;gBACX,OAAO;YACT,CAAC;YAED,KAAK,MAAM,KAAK,IAAI,KAAK,EAAE,CAAC;gBAC1B,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC;oBAClE,OAAO,CAAC,QAAQ,CAAC;wBACf,IAAI,EAAE,OAAC,CAAC,YAAY,CAAC,MAAM;wBAC3B,OAAO,EAAE,wBAAwB,KAAK,GAAG;wBACzC,IAAI,EAAE,CAAC,MAAM,EAAE,KAAK,CAAC;qBACtB,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;QACH,CAAC,CAAC;aACD,SAAS,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAiE,CA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- import { type Arrayable } from "type-fest";
1
+ import type { Arrayable } from "type-fest";
2
2
  export type ApiType = string;
3
3
  export type Field = string;
4
4
  export type Meta = Record<string, unknown>;