@kavo/graphql 0.4.0 → 0.7.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/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing
141
+ the origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file name and description of purpose be included on the same
186
+ "printed page" as the copyright notice for easier identification
187
+ within third-party archives.
188
+
189
+ Copyright 2026 Hossein Saleminejad
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -1,8 +1,8 @@
1
1
  import type { ClassRef, EntityId } from "@kavo/core";
2
2
  import type { GraphQLSchema } from "graphql";
3
- import type { BoundCrudService } from "./schema.js";
4
- /** The minimum a host framework needs to hand this package about one `@Crud` entity. */
5
- export interface CrudEntityRef {
3
+ import type { BoundKavoService } from "./schema.js";
4
+ /** The minimum a host framework needs to hand this package about one `@Kavo` entity. */
5
+ export interface KavoEntityRef {
6
6
  readonly entity: ClassRef;
7
7
  }
8
8
  /**
@@ -10,18 +10,18 @@ export interface CrudEntityRef {
10
10
  * GraphQL types and put them all on one schema." Two things stay
11
11
  * deliberately outside this package, supplied by the caller instead:
12
12
  *
13
- * - **How to enumerate `@Crud` entities** — `@kavo/nest`'s `getCrudEntities()`,
13
+ * - **How to enumerate `@Kavo` entities** — `@kavo/nest`'s `getKavoEntities()`,
14
14
  * a plain array an Express/Fastify/Next.js app builds by hand, or any
15
15
  * other host's own registry.
16
16
  * - **How to resolve a bound service for one entity** — `@kavo/nest`'s
17
- * `ModuleRef` + `getCrudServiceToken`, a plain `Map`, or whatever DI
17
+ * `ModuleRef` + `getKavoServiceToken`, a plain `Map`, or whatever DI
18
18
  * container that host uses.
19
19
  *
20
20
  * This function only ever touches `@kavo/core` shapes and this package's
21
21
  * own type registry — never a host framework — so the same call works
22
- * from `@kavo/nest`'s `BaseCrudGraphQLController` today and from a future
22
+ * from `@kavo/nest`'s `BaseKavoGraphQLController` today and from a future
23
23
  * `@kavo/express`/`@kavo/fastify`/`@kavo/nextjs` binding without either
24
24
  * package importing the other (ADR-0016).
25
25
  */
26
- export declare function resolveCrudGraphQLSchema(entities: readonly CrudEntityRef[], resolveService: (entity: ClassRef) => BoundCrudService<object, EntityId, unknown, unknown, unknown, unknown, unknown>): GraphQLSchema;
26
+ export declare function resolveKavoGraphQLSchema(entities: readonly KavoEntityRef[], resolveService: (entity: ClassRef) => BoundKavoService<object, EntityId, unknown, unknown, unknown, unknown, unknown>): GraphQLSchema;
27
27
  //# sourceMappingURL=discovery.d.ts.map
package/dist/discovery.js CHANGED
@@ -1,32 +1,32 @@
1
- import { mergeCrudGraphQLSchemas } from "./schema.js";
2
- import { getCrudGraphQLTypes } from "./registry.js";
1
+ import { mergeKavoGraphQLSchemas } from "./schema.js";
2
+ import { getKavoGraphQLTypes } from "./registry.js";
3
3
  /**
4
4
  * The host-agnostic half of "discover every entity that registered
5
5
  * GraphQL types and put them all on one schema." Two things stay
6
6
  * deliberately outside this package, supplied by the caller instead:
7
7
  *
8
- * - **How to enumerate `@Crud` entities** — `@kavo/nest`'s `getCrudEntities()`,
8
+ * - **How to enumerate `@Kavo` entities** — `@kavo/nest`'s `getKavoEntities()`,
9
9
  * a plain array an Express/Fastify/Next.js app builds by hand, or any
10
10
  * other host's own registry.
11
11
  * - **How to resolve a bound service for one entity** — `@kavo/nest`'s
12
- * `ModuleRef` + `getCrudServiceToken`, a plain `Map`, or whatever DI
12
+ * `ModuleRef` + `getKavoServiceToken`, a plain `Map`, or whatever DI
13
13
  * container that host uses.
14
14
  *
15
15
  * This function only ever touches `@kavo/core` shapes and this package's
16
16
  * own type registry — never a host framework — so the same call works
17
- * from `@kavo/nest`'s `BaseCrudGraphQLController` today and from a future
17
+ * from `@kavo/nest`'s `BaseKavoGraphQLController` today and from a future
18
18
  * `@kavo/express`/`@kavo/fastify`/`@kavo/nextjs` binding without either
19
19
  * package importing the other (ADR-0016).
20
20
  */
21
- export function resolveCrudGraphQLSchema(entities, resolveService) {
21
+ export function resolveKavoGraphQLSchema(entities, resolveService) {
22
22
  const bindings = [];
23
23
  for (const { entity } of entities) {
24
- const types = getCrudGraphQLTypes(entity);
24
+ const types = getKavoGraphQLTypes(entity);
25
25
  if (types === undefined) {
26
26
  continue;
27
27
  }
28
28
  bindings.push({ name: entity.name, service: resolveService(entity), ...types });
29
29
  }
30
- return mergeCrudGraphQLSchemas(bindings);
30
+ return mergeKavoGraphQLSchemas(bindings);
31
31
  }
32
32
  //# sourceMappingURL=discovery.js.map
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- export { createCrudGraphQLSchema, mergeCrudGraphQLSchemas, type CrudGraphQLOptions, type BoundCrudService, } from "./schema.js";
2
- export { registerCrudGraphQLTypes, getCrudGraphQLTypes, type CrudGraphQLTypes } from "./registry.js";
3
- export { resolveCrudGraphQLSchema, type CrudEntityRef } from "./discovery.js";
1
+ export { createKavoGraphQLSchema, mergeKavoGraphQLSchemas, type KavoGraphQLOptions, type BoundKavoService, } from "./schema.js";
2
+ export { registerKavoGraphQLTypes, getKavoGraphQLTypes, type KavoGraphQLTypes } from "./registry.js";
3
+ export { resolveKavoGraphQLSchema, type KavoEntityRef } from "./discovery.js";
4
4
  export { GraphQLJSON } from "./json-scalar.js";
5
5
  //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- export { createCrudGraphQLSchema, mergeCrudGraphQLSchemas, } from "./schema.js";
2
- export { registerCrudGraphQLTypes, getCrudGraphQLTypes } from "./registry.js";
3
- export { resolveCrudGraphQLSchema } from "./discovery.js";
1
+ export { createKavoGraphQLSchema, mergeKavoGraphQLSchemas, } from "./schema.js";
2
+ export { registerKavoGraphQLTypes, getKavoGraphQLTypes } from "./registry.js";
3
+ export { resolveKavoGraphQLSchema } from "./discovery.js";
4
4
  export { GraphQLJSON } from "./json-scalar.js";
5
5
  //# sourceMappingURL=index.js.map
@@ -2,13 +2,13 @@ import type { ClassRef } from "@kavo/core";
2
2
  import type { GraphQLInputObjectType, GraphQLObjectType } from "graphql";
3
3
  /**
4
4
  * GraphQL object/input types (and which mutations to expose) for one
5
- * entity — the hand-written part `registerCrudGraphQLTypes` attaches to a
6
- * class. Each mutation flag/input mirrors `CrudGraphQLOptions` in
5
+ * entity — the hand-written part `registerKavoGraphQLTypes` attaches to a
6
+ * class. Each mutation flag/input mirrors `KavoGraphQLOptions` in
7
7
  * `schema.ts` one for one — omit any of them to leave that mutation off
8
- * the schema for this entity, same opt-in shape `@Crud`'s own `operations`
8
+ * the schema for this entity, same opt-in shape `@Kavo`'s own `operations`
9
9
  * config uses on the REST side.
10
10
  */
11
- export interface CrudGraphQLTypes {
11
+ export interface KavoGraphQLTypes {
12
12
  readonly itemType: GraphQLObjectType;
13
13
  /** Omit to leave the `create<Name>` mutation off the schema for this entity. */
14
14
  readonly createInputType?: GraphQLInputObjectType;
@@ -25,14 +25,14 @@ export interface CrudGraphQLTypes {
25
25
  }
26
26
  /**
27
27
  * Attaches GraphQL types to an entity once, next to its DTOs — the
28
- * counterpart of `@kavo/nest`'s `getCrudEntities()`: a consumer can walk
29
- * every `@Crud` entity and look up its GraphQL types here, wiring a merged
30
- * schema with no per-entity list of its own (see `resolveCrudGraphQLSchema`
28
+ * counterpart of `@kavo/nest`'s `getKavoEntities()`: a consumer can walk
29
+ * every `@Kavo` entity and look up its GraphQL types here, wiring a merged
30
+ * schema with no per-entity list of its own (see `resolveKavoGraphQLSchema`
31
31
  * in `discovery.ts`, which does exactly that). An entity with no
32
32
  * registration here simply has no GraphQL surface — opt-in, not implied by
33
- * `@Crud` alone. Process-wide, same scope as `@kavo/nest`'s own registry.
33
+ * `@Kavo` alone. Process-wide, same scope as `@kavo/nest`'s own registry.
34
34
  */
35
- export declare function registerCrudGraphQLTypes(entity: ClassRef, types: CrudGraphQLTypes): void;
36
- /** The types `registerCrudGraphQLTypes` attached to `entity`, or `undefined` if it never registered any. */
37
- export declare function getCrudGraphQLTypes(entity: ClassRef): CrudGraphQLTypes | undefined;
35
+ export declare function registerKavoGraphQLTypes(entity: ClassRef, types: KavoGraphQLTypes): void;
36
+ /** The types `registerKavoGraphQLTypes` attached to `entity`, or `undefined` if it never registered any. */
37
+ export declare function getKavoGraphQLTypes(entity: ClassRef): KavoGraphQLTypes | undefined;
38
38
  //# sourceMappingURL=registry.d.ts.map
package/dist/registry.js CHANGED
@@ -1,18 +1,18 @@
1
1
  const typeRegistry = new Map();
2
2
  /**
3
3
  * Attaches GraphQL types to an entity once, next to its DTOs — the
4
- * counterpart of `@kavo/nest`'s `getCrudEntities()`: a consumer can walk
5
- * every `@Crud` entity and look up its GraphQL types here, wiring a merged
6
- * schema with no per-entity list of its own (see `resolveCrudGraphQLSchema`
4
+ * counterpart of `@kavo/nest`'s `getKavoEntities()`: a consumer can walk
5
+ * every `@Kavo` entity and look up its GraphQL types here, wiring a merged
6
+ * schema with no per-entity list of its own (see `resolveKavoGraphQLSchema`
7
7
  * in `discovery.ts`, which does exactly that). An entity with no
8
8
  * registration here simply has no GraphQL surface — opt-in, not implied by
9
- * `@Crud` alone. Process-wide, same scope as `@kavo/nest`'s own registry.
9
+ * `@Kavo` alone. Process-wide, same scope as `@kavo/nest`'s own registry.
10
10
  */
11
- export function registerCrudGraphQLTypes(entity, types) {
11
+ export function registerKavoGraphQLTypes(entity, types) {
12
12
  typeRegistry.set(entity, types);
13
13
  }
14
- /** The types `registerCrudGraphQLTypes` attached to `entity`, or `undefined` if it never registered any. */
15
- export function getCrudGraphQLTypes(entity) {
14
+ /** The types `registerKavoGraphQLTypes` attached to `entity`, or `undefined` if it never registered any. */
15
+ export function getKavoGraphQLTypes(entity) {
16
16
  return typeRegistry.get(entity);
17
17
  }
18
18
  //# sourceMappingURL=registry.js.map
package/dist/schema.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  import { GraphQLObjectType, GraphQLSchema, type GraphQLFieldConfig, type GraphQLInputObjectType } from "graphql";
2
- import type { DefaultCrudService, EntityId } from "@kavo/core";
2
+ import type { DefaultKavoService, EntityId } from "@kavo/core";
3
3
  /**
4
4
  * What a query/mutation resolver in this binding actually calls — the
5
5
  * transport-agnostic programmatic surface `createCrud` returns. Kept as a
6
- * structural type (not `DefaultCrudService` itself) so a caller only has to
6
+ * structural type (not `DefaultKavoService` itself) so a caller only has to
7
7
  * satisfy the handful of methods a schema actually wires up, the same way
8
8
  * `@kavo/nest`'s standard-operation routes bind to it. Exported (not just
9
9
  * internal) so `discovery.ts`'s host-agnostic resolver callback can name it.
@@ -11,12 +11,12 @@ import type { DefaultCrudService, EntityId } from "@kavo/core";
11
11
  * Every standard operation is picked unconditionally — whether a given
12
12
  * field actually reaches the schema is decided per entity by which
13
13
  * `*InputType`/`include*` options `crudFields` receives, mirroring how
14
- * `@Crud`'s own `operations` config opts entities in or out on the REST
14
+ * `@Kavo`'s own `operations` config opts entities in or out on the REST
15
15
  * side. Calling `restoreOne`/`purgeOne` against an entity that never
16
16
  * declared soft delete still raises `OperationDisabledException` from the
17
17
  * engine itself — this binding does not re-check that, same as REST.
18
18
  */
19
- export type BoundCrudService<Entity extends object, Id extends EntityId, CreateDto, UpdateDto, PatchDto, ItemDto, ListDto> = Pick<DefaultCrudService<Entity, Id, CreateDto, UpdateDto, PatchDto, unknown, ItemDto, ListDto>, "findOne" | "findMany" | "createOne" | "updateOne" | "patchOne" | "deleteOne" | "restoreOne" | "purgeOne">;
19
+ export type BoundKavoService<Entity extends object, Id extends EntityId, CreateDto, UpdateDto, PatchDto, ItemDto, ListDto> = Pick<DefaultKavoService<Entity, Id, CreateDto, UpdateDto, PatchDto, unknown, ItemDto, ListDto>, "findOne" | "findMany" | "createOne" | "updateOne" | "patchOne" | "deleteOne" | "restoreOne" | "purgeOne">;
20
20
  /**
21
21
  * One entity's GraphQL binding: a query root (`<name>`/`<name>s`) plus
22
22
  * whichever mutations its options ask for — every resolver a direct call
@@ -25,10 +25,10 @@ export type BoundCrudService<Entity extends object, Id extends EntityId, CreateD
25
25
  * that field never reaches the schema, the same "declare what you want"
26
26
  * shape `createInputType` already had.
27
27
  */
28
- export interface CrudGraphQLOptions<Entity extends object, Id extends EntityId, CreateDto, UpdateDto, PatchDto, ItemDto, ListDto> {
28
+ export interface KavoGraphQLOptions<Entity extends object, Id extends EntityId, CreateDto, UpdateDto, PatchDto, ItemDto, ListDto> {
29
29
  /** Singular, capitalized entity name — becomes `Query.<lowerName>` / `<Name>List` / `createName` / etc. */
30
30
  readonly name: string;
31
- readonly service: BoundCrudService<Entity, Id, CreateDto, UpdateDto, PatchDto, ItemDto, ListDto>;
31
+ readonly service: BoundKavoService<Entity, Id, CreateDto, UpdateDto, PatchDto, ItemDto, ListDto>;
32
32
  readonly itemType: GraphQLObjectType;
33
33
  /** Omit to leave the `create<Name>` mutation off the schema. */
34
34
  readonly createInputType?: GraphQLInputObjectType;
@@ -44,12 +44,12 @@ export interface CrudGraphQLOptions<Entity extends object, Id extends EntityId,
44
44
  readonly purgeOne?: boolean;
45
45
  }
46
46
  /**
47
- * Field maps for one entity's binding — the unit `createCrudGraphQLSchema`
48
- * wraps and `mergeCrudGraphQLSchemas`/`resolveCrudGraphQLSchema` combine.
47
+ * Field maps for one entity's binding — the unit `createKavoGraphQLSchema`
48
+ * wraps and `mergeKavoGraphQLSchemas`/`resolveKavoGraphQLSchema` combine.
49
49
  * Not exported from the barrel: an internal building block, same status as
50
50
  * `lowerFirst`.
51
51
  */
52
- export declare function crudFields<Entity extends object, Id extends EntityId, CreateDto, UpdateDto, PatchDto, ItemDto, ListDto>(options: CrudGraphQLOptions<Entity, Id, CreateDto, UpdateDto, PatchDto, ItemDto, ListDto>): {
52
+ export declare function crudFields<Entity extends object, Id extends EntityId, CreateDto, UpdateDto, PatchDto, ItemDto, ListDto>(options: KavoGraphQLOptions<Entity, Id, CreateDto, UpdateDto, PatchDto, ItemDto, ListDto>): {
53
53
  query: Record<string, GraphQLFieldConfig<unknown, unknown>>;
54
54
  mutation: Record<string, GraphQLFieldConfig<unknown, unknown>>;
55
55
  };
@@ -61,18 +61,18 @@ export declare function crudFields<Entity extends object, Id extends EntityId, C
61
61
  * resolver delegates straight to the bound service, which itself is sugar
62
62
  * over `engine.execute` — the identical pipeline REST runs.
63
63
  *
64
- * For an app with more than one entity, prefer `mergeCrudGraphQLSchemas` (or
65
- * `resolveCrudGraphQLSchema` for a framework-driven registry) — they put
64
+ * For an app with more than one entity, prefer `mergeKavoGraphQLSchemas` (or
65
+ * `resolveKavoGraphQLSchema` for a framework-driven registry) — they put
66
66
  * every entity's fields on one `Query`/`Mutation` root instead of one
67
67
  * schema (and one mounted endpoint) per entity.
68
68
  */
69
- export declare function createCrudGraphQLSchema<Entity extends object, Id extends EntityId, CreateDto, UpdateDto, PatchDto, ItemDto, ListDto>(options: CrudGraphQLOptions<Entity, Id, CreateDto, UpdateDto, PatchDto, ItemDto, ListDto>): GraphQLSchema;
69
+ export declare function createKavoGraphQLSchema<Entity extends object, Id extends EntityId, CreateDto, UpdateDto, PatchDto, ItemDto, ListDto>(options: KavoGraphQLOptions<Entity, Id, CreateDto, UpdateDto, PatchDto, ItemDto, ListDto>): GraphQLSchema;
70
70
  /**
71
71
  * Combines several entities' bindings onto one `Query`/`Mutation` root —
72
72
  * the shape an app actually wants: one `/graphql` endpoint for every
73
- * `@Crud` entity, not one per entity. Each entry is the same options shape
74
- * `createCrudGraphQLSchema` takes; field names are namespaced by each
73
+ * `@Kavo` entity, not one per entity. Each entry is the same options shape
74
+ * `createKavoGraphQLSchema` takes; field names are namespaced by each
75
75
  * entity's own `name`, so entries never collide with each other.
76
76
  */
77
- export declare function mergeCrudGraphQLSchemas(bindings: readonly CrudGraphQLOptions<object, EntityId, unknown, unknown, unknown, unknown, unknown>[]): GraphQLSchema;
77
+ export declare function mergeKavoGraphQLSchemas(bindings: readonly KavoGraphQLOptions<object, EntityId, unknown, unknown, unknown, unknown, unknown>[]): GraphQLSchema;
78
78
  //# sourceMappingURL=schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../src/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,iBAAiB,EACjB,aAAa,EAEb,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,EAC5B,MA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AAU,CACxB,MAAM,SAAS,MAAM,EACrB,EAAE,SAAS,QAAQ,EACnB,SAAS,EACT,SAAS,EACT,QAAQ,EACR,OAAO,EACP,OAAO,EAEP,OAAO,EAAE,kBAAkB,CAAC,MAAM,EAAE,EAAE,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,CAAC,GACxF;IACD,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;IAC5D,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;CAChE,CAqGA;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,uBAAuB,CACrC,MAAM,SAAS,MAAM,EACrB,EAAE,SAAS,QAAQ,EACnB,SAAS,EACT,SAAS,EACT,QAAQ,EACR,OAAO,EACP,OAAO,EACP,OAAO,EAAE,kBAAkB,CAAC,MAAM,EAAE,EAAE,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,CAAC,GAAG,aAAa,CAO1G;AAED;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CACrC,QAAQ,EAAE,SAAS,kBAAkB,CAAC,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,GACrG,aAAa,CA8Bf"}
package/dist/schema.js CHANGED
@@ -1,6 +1,54 @@
1
1
  import { GraphQLBoolean, GraphQLInt, GraphQLList, GraphQLNonNull, GraphQLObjectType, GraphQLSchema, GraphQLString, } from "graphql";
2
2
  import { ConfigurationException } from "@kavo/core";
3
3
  import { GraphQLJSON } from "./json-scalar.js";
4
+ /**
5
+ * Refuse to bind an entity this protocol cannot page (ADR-0021 §7,
6
+ * extended to `since` by ADR-0022).
7
+ *
8
+ * The list field takes `limit`/`offset` only, and `QueryNormalizer` ignores
9
+ * `offset` under both keyset strategies — so `todos(limit: 20, offset: 40)`
10
+ * against a cursor- or since-configured entity returns rows 1–20 (or
11
+ * everything from the beginning) with no error and no way for the client to
12
+ * tell. `nextCursor`/`nextSince` live in `meta`, which this binding's
13
+ * `<Name>List` type does not carry, so page 2 (or the next poll) is
14
+ * unreachable either way. `pagination.strategy` is entity-scope, so a single
15
+ * `defaults: { pagination: { strategy: "cursor" } }` (or `"since"`) would
16
+ * silently degrade every bound entity to page-one-with-wrong-answers.
17
+ *
18
+ * This check is name-gated on `"cursor"`/`"since"` rather than structural —
19
+ * unlike `QueryNormalizer`, which can probe a strategy's *output* shape,
20
+ * this runs at schema-build time with no request to normalize, so it cannot
21
+ * ask a strategy what it would produce. A third-party keyset strategy under
22
+ * another name is not caught here, the same limitation ADR-0021 §7 already
23
+ * records for cursor.
24
+ *
25
+ * Adding `cursor`/`since`/`meta` to the schema is the eventual fix; failing
26
+ * at bootstrap is the correct behavior until then, and stays correct after.
27
+ * `@kavo/mcp` carries the same guard for the same reason — the two packages
28
+ * may not import each other, so the check is duplicated rather than shared.
29
+ */
30
+ /**
31
+ * The bound entity's configured `pagination.strategy`, read structurally.
32
+ *
33
+ * `BoundKavoService` is a `Pick` of the *methods* a schema wires up, and
34
+ * adding `engine` to it would drag `ResolvedEntityConfig<Entity>` — whose
35
+ * allowlists are `FieldPath<Entity>[]` — into an invariant position, so
36
+ * `discovery.ts`'s erased `BoundKavoService<object, …>` would stop accepting
37
+ * any real service. A real `DefaultKavoService` always has the engine;
38
+ * `undefined` here means a hand-rolled stand-in with nothing to check.
39
+ */
40
+ function paginationStrategyOf(service) {
41
+ const engine = service.engine;
42
+ return engine?.config?.settings?.pagination?.strategy;
43
+ }
44
+ function requireOffsetPageable(entityName, strategy, protocolName) {
45
+ if (strategy !== "cursor" && strategy !== "since")
46
+ return;
47
+ throw new ConfigurationException(entityName, "pagination.strategy", `'${strategy}' is not supported by the ${protocolName} binding: its list field exposes 'limit'/'offset' only, ` +
48
+ `and a keyset page ignores 'offset' — a paged query would silently return the first page (or everything ` +
49
+ `from the beginning) every time. Either page this entity over REST, or give it an entity-scope ` +
50
+ `'pagination.strategy' of 'offset'/'page'`);
51
+ }
4
52
  /**
5
53
  * `sort: ["-createdAt", "name"]` → `[{ field: "createdAt", direction: "desc" }, { field: "name", direction: "asc" }]`
6
54
  * — the same leading-`-` convention REST's `?sort=` wire param uses, translated here instead of through core's
@@ -18,13 +66,14 @@ function lowerFirst(value) {
18
66
  return value.charAt(0).toLowerCase() + value.slice(1);
19
67
  }
20
68
  /**
21
- * Field maps for one entity's binding — the unit `createCrudGraphQLSchema`
22
- * wraps and `mergeCrudGraphQLSchemas`/`resolveCrudGraphQLSchema` combine.
69
+ * Field maps for one entity's binding — the unit `createKavoGraphQLSchema`
70
+ * wraps and `mergeKavoGraphQLSchemas`/`resolveKavoGraphQLSchema` combine.
23
71
  * Not exported from the barrel: an internal building block, same status as
24
72
  * `lowerFirst`.
25
73
  */
26
74
  export function crudFields(options) {
27
75
  const { name, service, itemType, createInputType, updateInputType, patchInputType, deleteOne, restoreOne, purgeOne } = options;
76
+ requireOffsetPageable(name, paginationStrategyOf(service), "GraphQL");
28
77
  const fieldName = lowerFirst(name);
29
78
  const idArgs = { id: { type: new GraphQLNonNull(GraphQLInt) } };
30
79
  const listType = new GraphQLObjectType({
@@ -117,12 +166,12 @@ export function crudFields(options) {
117
166
  * resolver delegates straight to the bound service, which itself is sugar
118
167
  * over `engine.execute` — the identical pipeline REST runs.
119
168
  *
120
- * For an app with more than one entity, prefer `mergeCrudGraphQLSchemas` (or
121
- * `resolveCrudGraphQLSchema` for a framework-driven registry) — they put
169
+ * For an app with more than one entity, prefer `mergeKavoGraphQLSchemas` (or
170
+ * `resolveKavoGraphQLSchema` for a framework-driven registry) — they put
122
171
  * every entity's fields on one `Query`/`Mutation` root instead of one
123
172
  * schema (and one mounted endpoint) per entity.
124
173
  */
125
- export function createCrudGraphQLSchema(options) {
174
+ export function createKavoGraphQLSchema(options) {
126
175
  const { query, mutation } = crudFields(options);
127
176
  return new GraphQLSchema({
128
177
  query: new GraphQLObjectType({ name: "Query", fields: query }),
@@ -132,11 +181,11 @@ export function createCrudGraphQLSchema(options) {
132
181
  /**
133
182
  * Combines several entities' bindings onto one `Query`/`Mutation` root —
134
183
  * the shape an app actually wants: one `/graphql` endpoint for every
135
- * `@Crud` entity, not one per entity. Each entry is the same options shape
136
- * `createCrudGraphQLSchema` takes; field names are namespaced by each
184
+ * `@Kavo` entity, not one per entity. Each entry is the same options shape
185
+ * `createKavoGraphQLSchema` takes; field names are namespaced by each
137
186
  * entity's own `name`, so entries never collide with each other.
138
187
  */
139
- export function mergeCrudGraphQLSchemas(bindings) {
188
+ export function mergeKavoGraphQLSchemas(bindings) {
140
189
  const query = {};
141
190
  const mutation = {};
142
191
  for (const binding of bindings) {
@@ -149,10 +198,10 @@ export function mergeCrudGraphQLSchemas(bindings) {
149
198
  // or more fields.`) — graphql-js would only report that cryptically, on
150
199
  // the first request, deep inside `graphql()`'s own schema validation.
151
200
  // Failing fast here, at schema-build time, with a message that names the
152
- // actual fix, is what `resolveCrudGraphQLSchema` (zero entities
201
+ // actual fix, is what `resolveKavoGraphQLSchema` (zero entities
153
202
  // discovered) relies on to fail at boot instead of at request time.
154
- throw new ConfigurationException("GraphQLSchema", "bindings", "no entity registered any GraphQL types — call registerCrudGraphQLTypes(Entity, {...}) " +
155
- "for at least one @Crud entity before enabling a GraphQL endpoint");
203
+ throw new ConfigurationException("GraphQLSchema", "bindings", "no entity registered any GraphQL types — call registerKavoGraphQLTypes(Entity, {...}) " +
204
+ "for at least one @Kavo entity before enabling a GraphQL endpoint");
156
205
  }
157
206
  return new GraphQLSchema({
158
207
  query: new GraphQLObjectType({ name: "Query", fields: query }),
@@ -1 +1 @@
1
- {"version":3,"file":"schema.js","sourceRoot":"","sources":["../src/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,UAAU,EACV,WAAW,EACX,cAAc,EAC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,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE,CAAC;QAC/B,MAAM,MAAM,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC;QACnC,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;QACnC,MAAM,CAAC,MAAM,CAAC,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC;IAC3C,CAAC;IAED,IAAI,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACpC,wEAAwE;QACxE,wEAAwE;QACxE,sEAAsE;QACtE,yEAAyE;QACzE,gEAAgE;QAChE,oEAAoE;QACpE,MAAM,IAAI,sBAAsB,CAC9B,eAAe,EACf,UAAU,EACV,wFAAwF;YACtF,kEAAkE,CACrE,CAAC;IACJ,CAAC;IAED,OAAO,IAAI,aAAa,CAAC;QACvB,KAAK,EAAE,IAAI,iBAAiB,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;QAC9D,QAAQ,EACN,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,iBAAiB,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS;KAC/G,CAAC,CAAC;AACL,CAAC"}
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@kavo/graphql",
3
- "version": "0.4.0",
3
+ "version": "0.7.1",
4
4
  "description": "Kavo GraphQL binding — builds a GraphQL schema over a createCrud service, delegating every resolver to the same engine REST uses.",
5
- "license": "MIT",
5
+ "license": "Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "git+https://github.com/kavo-labs/kavo.git",
@@ -23,16 +23,16 @@
23
23
  "files": [
24
24
  "dist"
25
25
  ],
26
- "scripts": {
27
- "build": "tsc -b"
28
- },
29
26
  "dependencies": {
30
- "@kavo/core": "workspace:^"
27
+ "@kavo/core": "^0.7.1"
31
28
  },
32
29
  "peerDependencies": {
33
30
  "graphql": "^17.0.0"
34
31
  },
35
32
  "devDependencies": {
36
33
  "graphql": "^17.0.0"
34
+ },
35
+ "scripts": {
36
+ "build": "tsc -b"
37
37
  }
38
- }
38
+ }