@jsonapi-serde/integration-taxum 1.2.1 → 1.3.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/dist/extract.d.ts +2 -2
- package/dist/extract.js.map +1 -1
- package/package.json +3 -3
package/dist/extract.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type AttributesSchema, type IncludedTypeSchemas, type ParseQueryResult, type ParseResourceRequestOptions, type ParseResourceRequestResult, type QueryParser, type RelationshipsSchema, type SparseFieldSets } from "@jsonapi-serde/server/request";
|
|
1
|
+
import { type AttributesSchema, type IncludedTypeSchemas, type MetaSchema, type ParseQueryResult, type ParseResourceRequestOptions, type ParseResourceRequestResult, type QueryParser, type RelationshipsSchema, type SparseFieldSets } from "@jsonapi-serde/server/request";
|
|
2
2
|
import type { Extractor } from "@taxum/core/extract";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import type { $ZodType } from "zod/v4/core";
|
|
@@ -13,7 +13,7 @@ export declare const jsonApiQuery: <TInclude extends readonly string[] | undefin
|
|
|
13
13
|
*
|
|
14
14
|
* @see {@link parseResourceRequest}
|
|
15
15
|
*/
|
|
16
|
-
export declare const jsonApiResource: <TIdSchema extends $ZodType<string> | undefined, TType extends string, TAttributesSchema extends AttributesSchema | undefined, TRelationshipsSchema extends RelationshipsSchema | undefined, TIncludedTypeSchemas extends IncludedTypeSchemas | undefined>(options: ParseResourceRequestOptions<TIdSchema, TType, TAttributesSchema, TRelationshipsSchema, TIncludedTypeSchemas>, idPathParam?: string) => Extractor<ParseResourceRequestResult<NoInfer<TIdSchema>, NoInfer<TType>, NoInfer<TAttributesSchema>, NoInfer<TRelationshipsSchema>, NoInfer<TIncludedTypeSchemas>>>;
|
|
16
|
+
export declare const jsonApiResource: <TIdSchema extends $ZodType<string> | undefined, TType extends string, TAttributesSchema extends AttributesSchema | undefined, TRelationshipsSchema extends RelationshipsSchema | undefined, TMetaSchema extends MetaSchema | undefined, TIncludedTypeSchemas extends IncludedTypeSchemas | undefined>(options: ParseResourceRequestOptions<TIdSchema, TType, TAttributesSchema, TRelationshipsSchema, TMetaSchema, TIncludedTypeSchemas>, idPathParam?: string) => Extractor<ParseResourceRequestResult<NoInfer<TIdSchema>, NoInfer<TType>, NoInfer<TAttributesSchema>, NoInfer<TRelationshipsSchema>, NoInfer<TMetaSchema>, NoInfer<TIncludedTypeSchemas>>>;
|
|
17
17
|
/**
|
|
18
18
|
* Extractor which extracts a to-one JSON:API relationship from the body.
|
|
19
19
|
*
|
package/dist/extract.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extract.js","sourceRoot":"","sources":["../src/extract.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,oBAAoB,CAAC;AACxC,OAAO,SAAS,MAAM,uBAAuB,CAAC;AAC9C,OAAO,
|
|
1
|
+
{"version":3,"file":"extract.js","sourceRoot":"","sources":["../src/extract.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,oBAAoB,CAAC;AACxC,OAAO,SAAS,MAAM,uBAAuB,CAAC;AAC9C,OAAO,EAQH,wBAAwB,EACxB,yBAAyB,EACzB,oBAAoB,GAIvB,MAAM,+BAA+B,CAAC;AAGvC,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;;GAIG;AACH,MAAM,CAAC,MAAM,YAAY,GACrB,CAOI,KAAuF,EAGzF,EAAE,CACJ,CACI,GAAgB,EACqE,EAAE;IACvF,OAAO,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;AACvC,CAAC,CAAC;AAEN;;;;GAIG;AACH,MAAM,CAAC,MAAM,eAAe,GACxB,CAQI,OAOC,EACD,WAAoB,EAUtB,EAAE,CACJ,KAAK,EACD,GAAgB,EAUlB,EAAE;IACA,IAAI,QAAQ,GAAG,OAAO,CAA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C,OAAO,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC9D,CAAC,CAAC;AAEN;;GAEG;AACH,MAAM,iBAAiB,GAAG,KAAK,EAAE,GAAgB,EAAwB,EAAE;IACvE,MAAM,IAAI,GAAG,MAAM,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAErD,OAAO;QACH,IAAI,EAAE,IAAI;QACV,+BAA+B;QAC/B,WAAW,EAAE,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,EAAE,KAAK,IAAI,SAAS;KACnE,CAAC;AACN,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsonapi-serde/integration-taxum",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "Taxum integration for @jsonapi-serde/server",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "Ben Scholzen 'DASPRiD'",
|
|
@@ -43,11 +43,11 @@
|
|
|
43
43
|
"@standard-schema/spec": "^1.0.0",
|
|
44
44
|
"@taxum/core": "^1.0.0",
|
|
45
45
|
"zod": "^4.1.8",
|
|
46
|
-
"@jsonapi-serde/server": "^1.
|
|
46
|
+
"@jsonapi-serde/server": "^1.5.0"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
49
|
"@taxum/core": "^1.0.0",
|
|
50
|
-
"@jsonapi-serde/server": "^1.
|
|
50
|
+
"@jsonapi-serde/server": "^1.5.0"
|
|
51
51
|
},
|
|
52
52
|
"scripts": {
|
|
53
53
|
"build": "tsc -p tsconfig.build.json",
|