@constructive-io/react 1.20.5 → 1.20.6

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.
Files changed (178) hide show
  1. package/admin/orm/input-types.d.ts +4 -4
  2. package/admin/orm/mutation/index.d.ts +5 -4
  3. package/admin/schema-types.d.ts +3 -3
  4. package/agent/orm/input-types.d.ts +4 -4
  5. package/agent/orm/mutation/index.d.ts +5 -4
  6. package/agent/schema-types.d.ts +3 -3
  7. package/api/hooks/index.d.ts +1 -1
  8. package/api/hooks/index.js +1 -1
  9. package/api/hooks/invalidation.d.ts +0 -12
  10. package/api/hooks/invalidation.js +0 -32
  11. package/api/hooks/mutation-keys.d.ts +4 -24
  12. package/api/hooks/mutation-keys.js +8 -16
  13. package/api/hooks/mutations/index.d.ts +2 -6
  14. package/api/hooks/mutations/index.js +2 -6
  15. package/api/hooks/mutations/useCreateFunctionFromSourceMutation.d.ts +20 -0
  16. package/api/hooks/mutations/{useCreateHostnameBindingMutation.js → useCreateFunctionFromSourceMutation.js} +6 -14
  17. package/api/hooks/mutations/useUpdateFunctionFromSourceMutation.d.ts +20 -0
  18. package/api/hooks/mutations/useUpdateFunctionFromSourceMutation.js +26 -0
  19. package/api/hooks/queries/index.d.ts +1 -4
  20. package/api/hooks/queries/index.js +1 -4
  21. package/api/hooks/queries/useEmailSharedAccountQuery.d.ts +45 -0
  22. package/api/hooks/queries/useEmailSharedAccountQuery.js +49 -0
  23. package/api/hooks/query-keys.d.ts +2 -28
  24. package/api/hooks/query-keys.js +3 -18
  25. package/api/orm/index.d.ts +15 -4
  26. package/api/orm/index.js +0 -4
  27. package/api/orm/input-types.d.ts +96 -439
  28. package/api/orm/models/index.d.ts +0 -2
  29. package/api/orm/models/index.js +2 -6
  30. package/api/orm/mutation/index.d.ts +30 -5
  31. package/api/orm/mutation/index.js +24 -0
  32. package/api/orm/query/index.d.ts +5 -0
  33. package/api/orm/query/index.js +7 -0
  34. package/api/schema-types.d.ts +39 -273
  35. package/api/types.d.ts +3 -28
  36. package/auth/orm/input-types.d.ts +5 -29
  37. package/auth/orm/mutation/index.d.ts +5 -4
  38. package/auth/schema-types.d.ts +4 -16
  39. package/compute/orm/input-types.d.ts +50 -6
  40. package/compute/orm/mutation/index.d.ts +5 -4
  41. package/compute/schema-types.d.ts +29 -5
  42. package/compute/types.d.ts +4 -0
  43. package/config/orm/input-types.d.ts +4 -4
  44. package/config/orm/mutation/index.d.ts +5 -4
  45. package/config/schema-types.d.ts +3 -3
  46. package/esm/admin/orm/input-types.d.ts +4 -4
  47. package/esm/admin/orm/mutation/index.d.ts +5 -4
  48. package/esm/admin/schema-types.d.ts +3 -3
  49. package/esm/agent/orm/input-types.d.ts +4 -4
  50. package/esm/agent/orm/mutation/index.d.ts +5 -4
  51. package/esm/agent/schema-types.d.ts +3 -3
  52. package/esm/api/hooks/index.d.ts +1 -1
  53. package/esm/api/hooks/index.js +1 -1
  54. package/esm/api/hooks/invalidation.d.ts +0 -12
  55. package/esm/api/hooks/invalidation.js +1 -33
  56. package/esm/api/hooks/mutation-keys.d.ts +4 -24
  57. package/esm/api/hooks/mutation-keys.js +6 -14
  58. package/esm/api/hooks/mutations/index.d.ts +2 -6
  59. package/esm/api/hooks/mutations/index.js +2 -6
  60. package/esm/api/hooks/mutations/useCreateFunctionFromSourceMutation.d.ts +20 -0
  61. package/esm/api/hooks/mutations/useCreateFunctionFromSourceMutation.js +23 -0
  62. package/esm/api/hooks/mutations/useUpdateFunctionFromSourceMutation.d.ts +20 -0
  63. package/esm/api/hooks/mutations/useUpdateFunctionFromSourceMutation.js +23 -0
  64. package/esm/api/hooks/queries/index.d.ts +1 -4
  65. package/esm/api/hooks/queries/index.js +1 -4
  66. package/esm/api/hooks/queries/useEmailSharedAccountQuery.d.ts +45 -0
  67. package/esm/api/hooks/queries/useEmailSharedAccountQuery.js +43 -0
  68. package/esm/api/hooks/query-keys.d.ts +2 -28
  69. package/esm/api/hooks/query-keys.js +1 -16
  70. package/esm/api/orm/index.d.ts +15 -4
  71. package/esm/api/orm/index.js +0 -4
  72. package/esm/api/orm/input-types.d.ts +96 -439
  73. package/esm/api/orm/models/index.d.ts +0 -2
  74. package/esm/api/orm/models/index.js +0 -2
  75. package/esm/api/orm/mutation/index.d.ts +30 -5
  76. package/esm/api/orm/mutation/index.js +24 -0
  77. package/esm/api/orm/query/index.d.ts +5 -0
  78. package/esm/api/orm/query/index.js +7 -0
  79. package/esm/api/schema-types.d.ts +39 -273
  80. package/esm/api/types.d.ts +3 -28
  81. package/esm/auth/orm/input-types.d.ts +5 -29
  82. package/esm/auth/orm/mutation/index.d.ts +5 -4
  83. package/esm/auth/schema-types.d.ts +4 -16
  84. package/esm/compute/orm/input-types.d.ts +50 -6
  85. package/esm/compute/orm/mutation/index.d.ts +5 -4
  86. package/esm/compute/schema-types.d.ts +29 -5
  87. package/esm/compute/types.d.ts +4 -0
  88. package/esm/config/orm/input-types.d.ts +4 -4
  89. package/esm/config/orm/mutation/index.d.ts +5 -4
  90. package/esm/config/schema-types.d.ts +3 -3
  91. package/esm/infra/orm/input-types.d.ts +4 -4
  92. package/esm/infra/orm/mutation/index.d.ts +5 -4
  93. package/esm/infra/schema-types.d.ts +3 -3
  94. package/esm/modules/orm/input-types.d.ts +72 -21
  95. package/esm/modules/orm/mutation/index.d.ts +6 -5
  96. package/esm/modules/schema-types.d.ts +41 -15
  97. package/esm/modules/types.d.ts +8 -1
  98. package/esm/objects/orm/input-types.d.ts +4 -4
  99. package/esm/objects/orm/mutation/index.d.ts +5 -4
  100. package/esm/objects/schema-types.d.ts +3 -3
  101. package/esm/remote/orm/input-types.d.ts +4 -4
  102. package/esm/remote/orm/mutation/index.d.ts +5 -4
  103. package/esm/remote/schema-types.d.ts +3 -3
  104. package/esm/storage/orm/input-types.d.ts +34 -6
  105. package/esm/storage/orm/mutation/index.d.ts +7 -6
  106. package/esm/storage/schema-types.d.ts +17 -5
  107. package/esm/storage/types.d.ts +4 -0
  108. package/esm/usage/orm/input-types.d.ts +4 -4
  109. package/esm/usage/orm/mutation/index.d.ts +5 -4
  110. package/esm/usage/schema-types.d.ts +3 -3
  111. package/infra/orm/input-types.d.ts +4 -4
  112. package/infra/orm/mutation/index.d.ts +5 -4
  113. package/infra/schema-types.d.ts +3 -3
  114. package/modules/orm/input-types.d.ts +72 -21
  115. package/modules/orm/mutation/index.d.ts +6 -5
  116. package/modules/schema-types.d.ts +41 -15
  117. package/modules/types.d.ts +8 -1
  118. package/objects/orm/input-types.d.ts +4 -4
  119. package/objects/orm/mutation/index.d.ts +5 -4
  120. package/objects/schema-types.d.ts +3 -3
  121. package/package.json +2 -2
  122. package/remote/orm/input-types.d.ts +4 -4
  123. package/remote/orm/mutation/index.d.ts +5 -4
  124. package/remote/schema-types.d.ts +3 -3
  125. package/storage/orm/input-types.d.ts +34 -6
  126. package/storage/orm/mutation/index.d.ts +7 -6
  127. package/storage/schema-types.d.ts +17 -5
  128. package/storage/types.d.ts +4 -0
  129. package/usage/orm/input-types.d.ts +4 -4
  130. package/usage/orm/mutation/index.d.ts +5 -4
  131. package/usage/schema-types.d.ts +3 -3
  132. package/api/hooks/mutations/useCreateHostnameBindingMutation.d.ts +0 -34
  133. package/api/hooks/mutations/useCreateRouteBindingMutation.d.ts +0 -34
  134. package/api/hooks/mutations/useCreateRouteBindingMutation.js +0 -34
  135. package/api/hooks/mutations/useDeleteHostnameBindingMutation.d.ts +0 -38
  136. package/api/hooks/mutations/useDeleteHostnameBindingMutation.js +0 -39
  137. package/api/hooks/mutations/useDeleteRouteBindingMutation.d.ts +0 -38
  138. package/api/hooks/mutations/useDeleteRouteBindingMutation.js +0 -39
  139. package/api/hooks/mutations/useUpdateHostnameBindingMutation.d.ts +0 -40
  140. package/api/hooks/mutations/useUpdateHostnameBindingMutation.js +0 -40
  141. package/api/hooks/mutations/useUpdateRouteBindingMutation.d.ts +0 -40
  142. package/api/hooks/mutations/useUpdateRouteBindingMutation.js +0 -40
  143. package/api/hooks/queries/useHostnameBindingQuery.d.ts +0 -65
  144. package/api/hooks/queries/useHostnameBindingQuery.js +0 -53
  145. package/api/hooks/queries/useHostnameBindingsQuery.d.ts +0 -69
  146. package/api/hooks/queries/useHostnameBindingsQuery.js +0 -38
  147. package/api/hooks/queries/useRouteBindingQuery.d.ts +0 -65
  148. package/api/hooks/queries/useRouteBindingQuery.js +0 -53
  149. package/api/hooks/queries/useRouteBindingsQuery.d.ts +0 -69
  150. package/api/hooks/queries/useRouteBindingsQuery.js +0 -38
  151. package/api/orm/models/hostnameBinding.d.ts +0 -54
  152. package/api/orm/models/hostnameBinding.js +0 -104
  153. package/api/orm/models/routeBinding.d.ts +0 -54
  154. package/api/orm/models/routeBinding.js +0 -104
  155. package/esm/api/hooks/mutations/useCreateHostnameBindingMutation.d.ts +0 -34
  156. package/esm/api/hooks/mutations/useCreateHostnameBindingMutation.js +0 -31
  157. package/esm/api/hooks/mutations/useCreateRouteBindingMutation.d.ts +0 -34
  158. package/esm/api/hooks/mutations/useCreateRouteBindingMutation.js +0 -31
  159. package/esm/api/hooks/mutations/useDeleteHostnameBindingMutation.d.ts +0 -38
  160. package/esm/api/hooks/mutations/useDeleteHostnameBindingMutation.js +0 -36
  161. package/esm/api/hooks/mutations/useDeleteRouteBindingMutation.d.ts +0 -38
  162. package/esm/api/hooks/mutations/useDeleteRouteBindingMutation.js +0 -36
  163. package/esm/api/hooks/mutations/useUpdateHostnameBindingMutation.d.ts +0 -40
  164. package/esm/api/hooks/mutations/useUpdateHostnameBindingMutation.js +0 -37
  165. package/esm/api/hooks/mutations/useUpdateRouteBindingMutation.d.ts +0 -40
  166. package/esm/api/hooks/mutations/useUpdateRouteBindingMutation.js +0 -37
  167. package/esm/api/hooks/queries/useHostnameBindingQuery.d.ts +0 -65
  168. package/esm/api/hooks/queries/useHostnameBindingQuery.js +0 -47
  169. package/esm/api/hooks/queries/useHostnameBindingsQuery.d.ts +0 -69
  170. package/esm/api/hooks/queries/useHostnameBindingsQuery.js +0 -32
  171. package/esm/api/hooks/queries/useRouteBindingQuery.d.ts +0 -65
  172. package/esm/api/hooks/queries/useRouteBindingQuery.js +0 -47
  173. package/esm/api/hooks/queries/useRouteBindingsQuery.d.ts +0 -69
  174. package/esm/api/hooks/queries/useRouteBindingsQuery.js +0 -32
  175. package/esm/api/orm/models/hostnameBinding.d.ts +0 -54
  176. package/esm/api/orm/models/hostnameBinding.js +0 -100
  177. package/esm/api/orm/models/routeBinding.d.ts +0 -54
  178. package/esm/api/orm/models/routeBinding.js +0 -100
@@ -1,54 +0,0 @@
1
- /**
2
- * HostnameBinding model for ORM client
3
- * @generated by @constructive-io/graphql-codegen
4
- * DO NOT EDIT - changes will be overwritten
5
- */
6
- import { OrmClient } from '../client';
7
- import { QueryBuilder } from '../query-builder';
8
- import type { ConnectionResult, FindManyArgs, FindFirstArgs, CreateArgs, UpdateArgs, DeleteArgs, InferSelectResult, StrictSelect } from '../select-types';
9
- import type { HostnameBindingWithRelations, HostnameBindingSelect, HostnameBindingFilter, HostnameBindingOrderBy, CreateHostnameBindingInput, HostnameBindingPatch } from '../input-types';
10
- export declare class HostnameBindingModel {
11
- private client;
12
- constructor(client: OrmClient);
13
- findMany<S extends HostnameBindingSelect>(args: FindManyArgs<S, HostnameBindingFilter, HostnameBindingOrderBy> & {
14
- select: S;
15
- } & StrictSelect<S, HostnameBindingSelect>): QueryBuilder<{
16
- hostnameBindings: ConnectionResult<InferSelectResult<HostnameBindingWithRelations, S>>;
17
- }>;
18
- findFirst<S extends HostnameBindingSelect>(args: FindFirstArgs<S, HostnameBindingFilter, HostnameBindingOrderBy> & {
19
- select: S;
20
- } & StrictSelect<S, HostnameBindingSelect>): QueryBuilder<{
21
- hostnameBinding: InferSelectResult<HostnameBindingWithRelations, S> | null;
22
- }>;
23
- findOne<S extends HostnameBindingSelect>(args: {
24
- id: string;
25
- select: S;
26
- } & StrictSelect<S, HostnameBindingSelect>): QueryBuilder<{
27
- hostnameBinding: InferSelectResult<HostnameBindingWithRelations, S> | null;
28
- }>;
29
- create<S extends HostnameBindingSelect>(args: CreateArgs<S, CreateHostnameBindingInput['hostnameBinding']> & {
30
- select: S;
31
- } & StrictSelect<S, HostnameBindingSelect>): QueryBuilder<{
32
- createHostnameBinding: {
33
- hostnameBinding: InferSelectResult<HostnameBindingWithRelations, S>;
34
- };
35
- }>;
36
- update<S extends HostnameBindingSelect>(args: UpdateArgs<S, {
37
- id: string;
38
- }, HostnameBindingPatch> & {
39
- select: S;
40
- } & StrictSelect<S, HostnameBindingSelect>): QueryBuilder<{
41
- updateHostnameBinding: {
42
- hostnameBinding: InferSelectResult<HostnameBindingWithRelations, S>;
43
- };
44
- }>;
45
- delete<S extends HostnameBindingSelect>(args: DeleteArgs<{
46
- id: string;
47
- }, S> & {
48
- select: S;
49
- } & StrictSelect<S, HostnameBindingSelect>): QueryBuilder<{
50
- deleteHostnameBinding: {
51
- hostnameBinding: InferSelectResult<HostnameBindingWithRelations, S>;
52
- };
53
- }>;
54
- }
@@ -1,104 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.HostnameBindingModel = void 0;
4
- const query_builder_1 = require("../query-builder");
5
- const input_types_1 = require("../input-types");
6
- class HostnameBindingModel {
7
- client;
8
- constructor(client) {
9
- this.client = client;
10
- }
11
- findMany(args) {
12
- const { document, variables } = (0, query_builder_1.buildFindManyDocument)('HostnameBinding', 'hostnameBindings', args.select, {
13
- where: args?.where,
14
- orderBy: args?.orderBy,
15
- first: args?.first,
16
- last: args?.last,
17
- after: args?.after,
18
- before: args?.before,
19
- offset: args?.offset,
20
- }, 'HostnameBindingFilter', 'HostnameBindingOrderBy', input_types_1.connectionFieldsMap);
21
- return new query_builder_1.QueryBuilder({
22
- client: this.client,
23
- operation: 'query',
24
- operationName: 'HostnameBinding',
25
- fieldName: 'hostnameBindings',
26
- document,
27
- variables,
28
- });
29
- }
30
- findFirst(args) {
31
- const { document, variables } = (0, query_builder_1.buildFindFirstDocument)('HostnameBinding', 'hostnameBindings', args.select, {
32
- where: args?.where,
33
- orderBy: args?.orderBy,
34
- }, 'HostnameBindingFilter', 'HostnameBindingOrderBy', input_types_1.connectionFieldsMap);
35
- return new query_builder_1.QueryBuilder({
36
- client: this.client,
37
- operation: 'query',
38
- operationName: 'HostnameBinding',
39
- fieldName: 'hostnameBinding',
40
- document,
41
- variables,
42
- transform: (data) => ({
43
- hostnameBinding: data.hostnameBindings?.nodes?.[0] ?? null,
44
- }),
45
- });
46
- }
47
- findOne(args) {
48
- const { document, variables } = (0, query_builder_1.buildFindManyDocument)('HostnameBinding', 'hostnameBindings', args.select, {
49
- where: {
50
- id: {
51
- equalTo: args.id,
52
- },
53
- },
54
- first: 1,
55
- }, 'HostnameBindingFilter', 'HostnameBindingOrderBy', input_types_1.connectionFieldsMap);
56
- return new query_builder_1.QueryBuilder({
57
- client: this.client,
58
- operation: 'query',
59
- operationName: 'HostnameBinding',
60
- fieldName: 'hostnameBinding',
61
- document,
62
- variables,
63
- transform: (data) => ({
64
- hostnameBinding: data.hostnameBindings?.nodes?.[0] ?? null,
65
- }),
66
- });
67
- }
68
- create(args) {
69
- const { document, variables } = (0, query_builder_1.buildCreateDocument)('HostnameBinding', 'createHostnameBinding', 'hostnameBinding', args.select, args.data, 'CreateHostnameBindingInput', input_types_1.connectionFieldsMap);
70
- return new query_builder_1.QueryBuilder({
71
- client: this.client,
72
- operation: 'mutation',
73
- operationName: 'HostnameBinding',
74
- fieldName: 'createHostnameBinding',
75
- document,
76
- variables,
77
- });
78
- }
79
- update(args) {
80
- const { document, variables } = (0, query_builder_1.buildUpdateByPkDocument)('HostnameBinding', 'updateHostnameBinding', 'hostnameBinding', args.select, args.where.id, args.data, 'UpdateHostnameBindingInput', 'id', 'hostnameBindingPatch', input_types_1.connectionFieldsMap, undefined);
81
- return new query_builder_1.QueryBuilder({
82
- client: this.client,
83
- operation: 'mutation',
84
- operationName: 'HostnameBinding',
85
- fieldName: 'updateHostnameBinding',
86
- document,
87
- variables,
88
- });
89
- }
90
- delete(args) {
91
- const { document, variables } = (0, query_builder_1.buildDeleteByPkDocument)('HostnameBinding', 'deleteHostnameBinding', 'hostnameBinding', {
92
- id: args.where.id,
93
- }, 'DeleteHostnameBindingInput', args.select, input_types_1.connectionFieldsMap);
94
- return new query_builder_1.QueryBuilder({
95
- client: this.client,
96
- operation: 'mutation',
97
- operationName: 'HostnameBinding',
98
- fieldName: 'deleteHostnameBinding',
99
- document,
100
- variables,
101
- });
102
- }
103
- }
104
- exports.HostnameBindingModel = HostnameBindingModel;
@@ -1,54 +0,0 @@
1
- /**
2
- * RouteBinding model for ORM client
3
- * @generated by @constructive-io/graphql-codegen
4
- * DO NOT EDIT - changes will be overwritten
5
- */
6
- import { OrmClient } from '../client';
7
- import { QueryBuilder } from '../query-builder';
8
- import type { ConnectionResult, FindManyArgs, FindFirstArgs, CreateArgs, UpdateArgs, DeleteArgs, InferSelectResult, StrictSelect } from '../select-types';
9
- import type { RouteBindingWithRelations, RouteBindingSelect, RouteBindingFilter, RouteBindingOrderBy, CreateRouteBindingInput, RouteBindingPatch } from '../input-types';
10
- export declare class RouteBindingModel {
11
- private client;
12
- constructor(client: OrmClient);
13
- findMany<S extends RouteBindingSelect>(args: FindManyArgs<S, RouteBindingFilter, RouteBindingOrderBy> & {
14
- select: S;
15
- } & StrictSelect<S, RouteBindingSelect>): QueryBuilder<{
16
- routeBindings: ConnectionResult<InferSelectResult<RouteBindingWithRelations, S>>;
17
- }>;
18
- findFirst<S extends RouteBindingSelect>(args: FindFirstArgs<S, RouteBindingFilter, RouteBindingOrderBy> & {
19
- select: S;
20
- } & StrictSelect<S, RouteBindingSelect>): QueryBuilder<{
21
- routeBinding: InferSelectResult<RouteBindingWithRelations, S> | null;
22
- }>;
23
- findOne<S extends RouteBindingSelect>(args: {
24
- id: string;
25
- select: S;
26
- } & StrictSelect<S, RouteBindingSelect>): QueryBuilder<{
27
- routeBinding: InferSelectResult<RouteBindingWithRelations, S> | null;
28
- }>;
29
- create<S extends RouteBindingSelect>(args: CreateArgs<S, CreateRouteBindingInput['routeBinding']> & {
30
- select: S;
31
- } & StrictSelect<S, RouteBindingSelect>): QueryBuilder<{
32
- createRouteBinding: {
33
- routeBinding: InferSelectResult<RouteBindingWithRelations, S>;
34
- };
35
- }>;
36
- update<S extends RouteBindingSelect>(args: UpdateArgs<S, {
37
- id: string;
38
- }, RouteBindingPatch> & {
39
- select: S;
40
- } & StrictSelect<S, RouteBindingSelect>): QueryBuilder<{
41
- updateRouteBinding: {
42
- routeBinding: InferSelectResult<RouteBindingWithRelations, S>;
43
- };
44
- }>;
45
- delete<S extends RouteBindingSelect>(args: DeleteArgs<{
46
- id: string;
47
- }, S> & {
48
- select: S;
49
- } & StrictSelect<S, RouteBindingSelect>): QueryBuilder<{
50
- deleteRouteBinding: {
51
- routeBinding: InferSelectResult<RouteBindingWithRelations, S>;
52
- };
53
- }>;
54
- }
@@ -1,104 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RouteBindingModel = void 0;
4
- const query_builder_1 = require("../query-builder");
5
- const input_types_1 = require("../input-types");
6
- class RouteBindingModel {
7
- client;
8
- constructor(client) {
9
- this.client = client;
10
- }
11
- findMany(args) {
12
- const { document, variables } = (0, query_builder_1.buildFindManyDocument)('RouteBinding', 'routeBindings', args.select, {
13
- where: args?.where,
14
- orderBy: args?.orderBy,
15
- first: args?.first,
16
- last: args?.last,
17
- after: args?.after,
18
- before: args?.before,
19
- offset: args?.offset,
20
- }, 'RouteBindingFilter', 'RouteBindingOrderBy', input_types_1.connectionFieldsMap);
21
- return new query_builder_1.QueryBuilder({
22
- client: this.client,
23
- operation: 'query',
24
- operationName: 'RouteBinding',
25
- fieldName: 'routeBindings',
26
- document,
27
- variables,
28
- });
29
- }
30
- findFirst(args) {
31
- const { document, variables } = (0, query_builder_1.buildFindFirstDocument)('RouteBinding', 'routeBindings', args.select, {
32
- where: args?.where,
33
- orderBy: args?.orderBy,
34
- }, 'RouteBindingFilter', 'RouteBindingOrderBy', input_types_1.connectionFieldsMap);
35
- return new query_builder_1.QueryBuilder({
36
- client: this.client,
37
- operation: 'query',
38
- operationName: 'RouteBinding',
39
- fieldName: 'routeBinding',
40
- document,
41
- variables,
42
- transform: (data) => ({
43
- routeBinding: data.routeBindings?.nodes?.[0] ?? null,
44
- }),
45
- });
46
- }
47
- findOne(args) {
48
- const { document, variables } = (0, query_builder_1.buildFindManyDocument)('RouteBinding', 'routeBindings', args.select, {
49
- where: {
50
- id: {
51
- equalTo: args.id,
52
- },
53
- },
54
- first: 1,
55
- }, 'RouteBindingFilter', 'RouteBindingOrderBy', input_types_1.connectionFieldsMap);
56
- return new query_builder_1.QueryBuilder({
57
- client: this.client,
58
- operation: 'query',
59
- operationName: 'RouteBinding',
60
- fieldName: 'routeBinding',
61
- document,
62
- variables,
63
- transform: (data) => ({
64
- routeBinding: data.routeBindings?.nodes?.[0] ?? null,
65
- }),
66
- });
67
- }
68
- create(args) {
69
- const { document, variables } = (0, query_builder_1.buildCreateDocument)('RouteBinding', 'createRouteBinding', 'routeBinding', args.select, args.data, 'CreateRouteBindingInput', input_types_1.connectionFieldsMap);
70
- return new query_builder_1.QueryBuilder({
71
- client: this.client,
72
- operation: 'mutation',
73
- operationName: 'RouteBinding',
74
- fieldName: 'createRouteBinding',
75
- document,
76
- variables,
77
- });
78
- }
79
- update(args) {
80
- const { document, variables } = (0, query_builder_1.buildUpdateByPkDocument)('RouteBinding', 'updateRouteBinding', 'routeBinding', args.select, args.where.id, args.data, 'UpdateRouteBindingInput', 'id', 'routeBindingPatch', input_types_1.connectionFieldsMap, undefined);
81
- return new query_builder_1.QueryBuilder({
82
- client: this.client,
83
- operation: 'mutation',
84
- operationName: 'RouteBinding',
85
- fieldName: 'updateRouteBinding',
86
- document,
87
- variables,
88
- });
89
- }
90
- delete(args) {
91
- const { document, variables } = (0, query_builder_1.buildDeleteByPkDocument)('RouteBinding', 'deleteRouteBinding', 'routeBinding', {
92
- id: args.where.id,
93
- }, 'DeleteRouteBindingInput', args.select, input_types_1.connectionFieldsMap);
94
- return new query_builder_1.QueryBuilder({
95
- client: this.client,
96
- operation: 'mutation',
97
- operationName: 'RouteBinding',
98
- fieldName: 'deleteRouteBinding',
99
- document,
100
- variables,
101
- });
102
- }
103
- }
104
- exports.RouteBindingModel = RouteBindingModel;
@@ -1,34 +0,0 @@
1
- /**
2
- * Compiled hostname index maintained by domain sync triggers; read only through the resolver
3
- * @generated by @constructive-io/graphql-codegen
4
- * DO NOT EDIT - changes will be overwritten
5
- */
6
- import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query';
7
- import type { HostnameBindingSelect, HostnameBindingWithRelations, CreateHostnameBindingInput } from '../../orm/input-types';
8
- import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
9
- export type { HostnameBindingSelect, HostnameBindingWithRelations, CreateHostnameBindingInput, } from '../../orm/input-types';
10
- /**
11
- * Compiled hostname index maintained by domain sync triggers; read only through the resolver
12
- *
13
- * @example
14
- * ```tsx
15
- * const { mutate, isPending } = useCreateHostnameBindingMutation({
16
- * selection: { fields: { id: true, name: true } },
17
- * });
18
- *
19
- * mutate({ name: 'New item' });
20
- * ```
21
- */
22
- export declare function useCreateHostnameBindingMutation<S extends HostnameBindingSelect>(params: {
23
- selection: {
24
- fields: S & HostnameBindingSelect;
25
- } & HookStrictSelect<NoInfer<S>, HostnameBindingSelect>;
26
- } & Omit<UseMutationOptions<{
27
- createHostnameBinding: {
28
- hostnameBinding: InferSelectResult<HostnameBindingWithRelations, S>;
29
- };
30
- }, Error, CreateHostnameBindingInput['hostnameBinding']>, 'mutationFn'>): UseMutationResult<{
31
- createHostnameBinding: {
32
- hostnameBinding: InferSelectResult<HostnameBindingWithRelations, S>;
33
- };
34
- }, Error, CreateHostnameBindingInput['hostnameBinding']>;
@@ -1,31 +0,0 @@
1
- /**
2
- * Compiled hostname index maintained by domain sync triggers; read only through the resolver
3
- * @generated by @constructive-io/graphql-codegen
4
- * DO NOT EDIT - changes will be overwritten
5
- */
6
- import { useMutation, useQueryClient } from '@tanstack/react-query';
7
- import { getClient } from '../client';
8
- import { buildSelectionArgs } from '../selection';
9
- import { hostnameBindingKeys } from '../query-keys';
10
- import { hostnameBindingMutationKeys } from '../mutation-keys';
11
- export function useCreateHostnameBindingMutation(params) {
12
- const args = buildSelectionArgs(params.selection);
13
- const { selection: _selection, ...mutationOptions } = params ?? {};
14
- void _selection;
15
- const queryClient = useQueryClient();
16
- return useMutation({
17
- mutationKey: hostnameBindingMutationKeys.create(),
18
- mutationFn: (data) => getClient()
19
- .hostnameBinding.create({
20
- data,
21
- select: args.select,
22
- })
23
- .unwrap(),
24
- onSuccess: () => {
25
- queryClient.invalidateQueries({
26
- queryKey: hostnameBindingKeys.lists(),
27
- });
28
- },
29
- ...mutationOptions,
30
- });
31
- }
@@ -1,34 +0,0 @@
1
- /**
2
- * Compiled route precedence index maintained by route sync triggers; carries typed target ids only, read through the resolver
3
- * @generated by @constructive-io/graphql-codegen
4
- * DO NOT EDIT - changes will be overwritten
5
- */
6
- import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query';
7
- import type { RouteBindingSelect, RouteBindingWithRelations, CreateRouteBindingInput } from '../../orm/input-types';
8
- import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
9
- export type { RouteBindingSelect, RouteBindingWithRelations, CreateRouteBindingInput, } from '../../orm/input-types';
10
- /**
11
- * Compiled route precedence index maintained by route sync triggers; carries typed target ids only, read through the resolver
12
- *
13
- * @example
14
- * ```tsx
15
- * const { mutate, isPending } = useCreateRouteBindingMutation({
16
- * selection: { fields: { id: true, name: true } },
17
- * });
18
- *
19
- * mutate({ name: 'New item' });
20
- * ```
21
- */
22
- export declare function useCreateRouteBindingMutation<S extends RouteBindingSelect>(params: {
23
- selection: {
24
- fields: S & RouteBindingSelect;
25
- } & HookStrictSelect<NoInfer<S>, RouteBindingSelect>;
26
- } & Omit<UseMutationOptions<{
27
- createRouteBinding: {
28
- routeBinding: InferSelectResult<RouteBindingWithRelations, S>;
29
- };
30
- }, Error, CreateRouteBindingInput['routeBinding']>, 'mutationFn'>): UseMutationResult<{
31
- createRouteBinding: {
32
- routeBinding: InferSelectResult<RouteBindingWithRelations, S>;
33
- };
34
- }, Error, CreateRouteBindingInput['routeBinding']>;
@@ -1,31 +0,0 @@
1
- /**
2
- * Compiled route precedence index maintained by route sync triggers; carries typed target ids only, read through the resolver
3
- * @generated by @constructive-io/graphql-codegen
4
- * DO NOT EDIT - changes will be overwritten
5
- */
6
- import { useMutation, useQueryClient } from '@tanstack/react-query';
7
- import { getClient } from '../client';
8
- import { buildSelectionArgs } from '../selection';
9
- import { routeBindingKeys } from '../query-keys';
10
- import { routeBindingMutationKeys } from '../mutation-keys';
11
- export function useCreateRouteBindingMutation(params) {
12
- const args = buildSelectionArgs(params.selection);
13
- const { selection: _selection, ...mutationOptions } = params ?? {};
14
- void _selection;
15
- const queryClient = useQueryClient();
16
- return useMutation({
17
- mutationKey: routeBindingMutationKeys.create(),
18
- mutationFn: (data) => getClient()
19
- .routeBinding.create({
20
- data,
21
- select: args.select,
22
- })
23
- .unwrap(),
24
- onSuccess: () => {
25
- queryClient.invalidateQueries({
26
- queryKey: routeBindingKeys.lists(),
27
- });
28
- },
29
- ...mutationOptions,
30
- });
31
- }
@@ -1,38 +0,0 @@
1
- /**
2
- * Compiled hostname index maintained by domain sync triggers; read only through the resolver
3
- * @generated by @constructive-io/graphql-codegen
4
- * DO NOT EDIT - changes will be overwritten
5
- */
6
- import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query';
7
- import type { HostnameBindingSelect, HostnameBindingWithRelations } from '../../orm/input-types';
8
- import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
9
- export type { HostnameBindingSelect, HostnameBindingWithRelations } from '../../orm/input-types';
10
- /**
11
- * Compiled hostname index maintained by domain sync triggers; read only through the resolver
12
- *
13
- * @example
14
- * ```tsx
15
- * const { mutate, isPending } = useDeleteHostnameBindingMutation({
16
- * selection: { fields: { id: true } },
17
- * });
18
- *
19
- * mutate({ id: 'value-to-delete' });
20
- * ```
21
- */
22
- export declare function useDeleteHostnameBindingMutation<S extends HostnameBindingSelect>(params: {
23
- selection: {
24
- fields: S & HostnameBindingSelect;
25
- } & HookStrictSelect<NoInfer<S>, HostnameBindingSelect>;
26
- } & Omit<UseMutationOptions<{
27
- deleteHostnameBinding: {
28
- hostnameBinding: InferSelectResult<HostnameBindingWithRelations, S>;
29
- };
30
- }, Error, {
31
- id: string;
32
- }>, 'mutationFn'>): UseMutationResult<{
33
- deleteHostnameBinding: {
34
- hostnameBinding: InferSelectResult<HostnameBindingWithRelations, S>;
35
- };
36
- }, Error, {
37
- id: string;
38
- }>;
@@ -1,36 +0,0 @@
1
- /**
2
- * Compiled hostname index maintained by domain sync triggers; read only through the resolver
3
- * @generated by @constructive-io/graphql-codegen
4
- * DO NOT EDIT - changes will be overwritten
5
- */
6
- import { useMutation, useQueryClient } from '@tanstack/react-query';
7
- import { getClient } from '../client';
8
- import { buildSelectionArgs } from '../selection';
9
- import { hostnameBindingKeys } from '../query-keys';
10
- import { hostnameBindingMutationKeys } from '../mutation-keys';
11
- export function useDeleteHostnameBindingMutation(params) {
12
- const args = buildSelectionArgs(params.selection);
13
- const { selection: _selection, ...mutationOptions } = params ?? {};
14
- void _selection;
15
- const queryClient = useQueryClient();
16
- return useMutation({
17
- mutationKey: hostnameBindingMutationKeys.all,
18
- mutationFn: ({ id }) => getClient()
19
- .hostnameBinding.delete({
20
- where: {
21
- id,
22
- },
23
- select: args.select,
24
- })
25
- .unwrap(),
26
- onSuccess: (_, variables) => {
27
- queryClient.removeQueries({
28
- queryKey: hostnameBindingKeys.detail(variables.id),
29
- });
30
- queryClient.invalidateQueries({
31
- queryKey: hostnameBindingKeys.lists(),
32
- });
33
- },
34
- ...mutationOptions,
35
- });
36
- }
@@ -1,38 +0,0 @@
1
- /**
2
- * Compiled route precedence index maintained by route sync triggers; carries typed target ids only, read through the resolver
3
- * @generated by @constructive-io/graphql-codegen
4
- * DO NOT EDIT - changes will be overwritten
5
- */
6
- import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query';
7
- import type { RouteBindingSelect, RouteBindingWithRelations } from '../../orm/input-types';
8
- import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
9
- export type { RouteBindingSelect, RouteBindingWithRelations } from '../../orm/input-types';
10
- /**
11
- * Compiled route precedence index maintained by route sync triggers; carries typed target ids only, read through the resolver
12
- *
13
- * @example
14
- * ```tsx
15
- * const { mutate, isPending } = useDeleteRouteBindingMutation({
16
- * selection: { fields: { id: true } },
17
- * });
18
- *
19
- * mutate({ id: 'value-to-delete' });
20
- * ```
21
- */
22
- export declare function useDeleteRouteBindingMutation<S extends RouteBindingSelect>(params: {
23
- selection: {
24
- fields: S & RouteBindingSelect;
25
- } & HookStrictSelect<NoInfer<S>, RouteBindingSelect>;
26
- } & Omit<UseMutationOptions<{
27
- deleteRouteBinding: {
28
- routeBinding: InferSelectResult<RouteBindingWithRelations, S>;
29
- };
30
- }, Error, {
31
- id: string;
32
- }>, 'mutationFn'>): UseMutationResult<{
33
- deleteRouteBinding: {
34
- routeBinding: InferSelectResult<RouteBindingWithRelations, S>;
35
- };
36
- }, Error, {
37
- id: string;
38
- }>;
@@ -1,36 +0,0 @@
1
- /**
2
- * Compiled route precedence index maintained by route sync triggers; carries typed target ids only, read through the resolver
3
- * @generated by @constructive-io/graphql-codegen
4
- * DO NOT EDIT - changes will be overwritten
5
- */
6
- import { useMutation, useQueryClient } from '@tanstack/react-query';
7
- import { getClient } from '../client';
8
- import { buildSelectionArgs } from '../selection';
9
- import { routeBindingKeys } from '../query-keys';
10
- import { routeBindingMutationKeys } from '../mutation-keys';
11
- export function useDeleteRouteBindingMutation(params) {
12
- const args = buildSelectionArgs(params.selection);
13
- const { selection: _selection, ...mutationOptions } = params ?? {};
14
- void _selection;
15
- const queryClient = useQueryClient();
16
- return useMutation({
17
- mutationKey: routeBindingMutationKeys.all,
18
- mutationFn: ({ id }) => getClient()
19
- .routeBinding.delete({
20
- where: {
21
- id,
22
- },
23
- select: args.select,
24
- })
25
- .unwrap(),
26
- onSuccess: (_, variables) => {
27
- queryClient.removeQueries({
28
- queryKey: routeBindingKeys.detail(variables.id),
29
- });
30
- queryClient.invalidateQueries({
31
- queryKey: routeBindingKeys.lists(),
32
- });
33
- },
34
- ...mutationOptions,
35
- });
36
- }
@@ -1,40 +0,0 @@
1
- /**
2
- * Compiled hostname index maintained by domain sync triggers; read only through the resolver
3
- * @generated by @constructive-io/graphql-codegen
4
- * DO NOT EDIT - changes will be overwritten
5
- */
6
- import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query';
7
- import type { HostnameBindingSelect, HostnameBindingWithRelations, HostnameBindingPatch } from '../../orm/input-types';
8
- import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
9
- export type { HostnameBindingSelect, HostnameBindingWithRelations, HostnameBindingPatch, } from '../../orm/input-types';
10
- /**
11
- * Compiled hostname index maintained by domain sync triggers; read only through the resolver
12
- *
13
- * @example
14
- * ```tsx
15
- * const { mutate, isPending } = useUpdateHostnameBindingMutation({
16
- * selection: { fields: { id: true, name: true } },
17
- * });
18
- *
19
- * mutate({ id: 'value-here', hostnameBindingPatch: { name: 'Updated' } });
20
- * ```
21
- */
22
- export declare function useUpdateHostnameBindingMutation<S extends HostnameBindingSelect>(params: {
23
- selection: {
24
- fields: S & HostnameBindingSelect;
25
- } & HookStrictSelect<NoInfer<S>, HostnameBindingSelect>;
26
- } & Omit<UseMutationOptions<{
27
- updateHostnameBinding: {
28
- hostnameBinding: InferSelectResult<HostnameBindingWithRelations, S>;
29
- };
30
- }, Error, {
31
- id: string;
32
- hostnameBindingPatch: HostnameBindingPatch;
33
- }>, 'mutationFn'>): UseMutationResult<{
34
- updateHostnameBinding: {
35
- hostnameBinding: InferSelectResult<HostnameBindingWithRelations, S>;
36
- };
37
- }, Error, {
38
- id: string;
39
- hostnameBindingPatch: HostnameBindingPatch;
40
- }>;