@constructive-io/react 0.15.2 → 0.15.4
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/admin/hooks/index.d.ts +1 -1
- package/admin/hooks/index.js +1 -1
- package/admin/hooks/invalidation.d.ts +65 -47
- package/admin/hooks/invalidation.js +143 -95
- package/admin/hooks/mutation-keys.d.ts +130 -96
- package/admin/hooks/mutation-keys.js +78 -60
- package/admin/hooks/mutations/index.d.ts +32 -28
- package/admin/hooks/mutations/index.js +32 -28
- package/admin/hooks/mutations/useCreateAppLimitEventMutation.d.ts +34 -0
- package/{auth/hooks/mutations/useConfirmUploadMutation.js → admin/hooks/mutations/useCreateAppLimitEventMutation.js} +14 -6
- package/admin/hooks/mutations/useCreateOrgLimitAggregateMutation.d.ts +34 -0
- package/admin/hooks/mutations/useCreateOrgLimitAggregateMutation.js +34 -0
- package/admin/hooks/mutations/useCreateOrgLimitEventMutation.d.ts +34 -0
- package/admin/hooks/mutations/useCreateOrgLimitEventMutation.js +34 -0
- package/admin/hooks/mutations/useDeleteOrgLimitAggregateMutation.d.ts +38 -0
- package/admin/hooks/mutations/useDeleteOrgLimitAggregateMutation.js +39 -0
- package/admin/hooks/mutations/useUpdateOrgLimitAggregateMutation.d.ts +40 -0
- package/admin/hooks/mutations/useUpdateOrgLimitAggregateMutation.js +40 -0
- package/admin/hooks/queries/index.d.ts +22 -18
- package/admin/hooks/queries/index.js +22 -18
- package/admin/hooks/queries/useAppLimitEventsQuery.d.ts +69 -0
- package/admin/hooks/queries/useAppLimitEventsQuery.js +38 -0
- package/admin/hooks/queries/useOrgLimitAggregateQuery.d.ts +65 -0
- package/admin/hooks/queries/useOrgLimitAggregateQuery.js +53 -0
- package/admin/hooks/queries/useOrgLimitAggregatesQuery.d.ts +69 -0
- package/admin/hooks/queries/useOrgLimitAggregatesQuery.js +38 -0
- package/admin/hooks/queries/useOrgLimitEventsQuery.d.ts +69 -0
- package/admin/hooks/queries/useOrgLimitEventsQuery.js +38 -0
- package/admin/hooks/query-keys.d.ts +154 -112
- package/admin/hooks/query-keys.js +90 -66
- package/admin/orm/index.d.ts +24 -23
- package/admin/orm/index.js +24 -18
- package/admin/orm/input-types.d.ts +1297 -839
- package/admin/orm/models/appLimitEvent.d.ts +32 -0
- package/admin/orm/models/appLimitEvent.js +55 -0
- package/admin/orm/models/index.d.ts +12 -9
- package/admin/orm/models/index.js +25 -19
- package/admin/orm/models/orgLimitAggregate.d.ts +56 -0
- package/admin/orm/models/orgLimitAggregate.js +100 -0
- package/admin/orm/models/orgLimitEvent.d.ts +32 -0
- package/admin/orm/models/orgLimitEvent.js +55 -0
- package/admin/orm/mutation/index.d.ts +1 -15
- package/admin/orm/mutation/index.js +0 -12
- package/admin/schema-types.d.ts +1207 -856
- package/admin/types.d.ts +96 -53
- package/auth/hooks/mutation-keys.d.ts +0 -2
- package/auth/hooks/mutation-keys.js +0 -3
- package/auth/hooks/mutations/index.d.ts +0 -1
- package/auth/hooks/mutations/index.js +0 -1
- package/auth/orm/index.d.ts +0 -5
- package/auth/orm/input-types.d.ts +0 -20
- package/auth/orm/mutation/index.d.ts +1 -15
- package/auth/orm/mutation/index.js +0 -12
- package/auth/schema-types.d.ts +0 -14
- package/esm/admin/hooks/index.d.ts +1 -1
- package/esm/admin/hooks/index.js +1 -1
- package/esm/admin/hooks/invalidation.d.ts +65 -47
- package/esm/admin/hooks/invalidation.js +144 -96
- package/esm/admin/hooks/mutation-keys.d.ts +130 -96
- package/esm/admin/hooks/mutation-keys.js +77 -59
- package/esm/admin/hooks/mutations/index.d.ts +32 -28
- package/esm/admin/hooks/mutations/index.js +32 -28
- package/esm/admin/hooks/mutations/useCreateAppLimitEventMutation.d.ts +34 -0
- package/esm/admin/hooks/mutations/useCreateAppLimitEventMutation.js +31 -0
- package/esm/admin/hooks/mutations/useCreateOrgLimitAggregateMutation.d.ts +34 -0
- package/esm/admin/hooks/mutations/useCreateOrgLimitAggregateMutation.js +31 -0
- package/esm/admin/hooks/mutations/useCreateOrgLimitEventMutation.d.ts +34 -0
- package/esm/admin/hooks/mutations/useCreateOrgLimitEventMutation.js +31 -0
- package/esm/admin/hooks/mutations/useDeleteOrgLimitAggregateMutation.d.ts +38 -0
- package/esm/admin/hooks/mutations/useDeleteOrgLimitAggregateMutation.js +36 -0
- package/esm/admin/hooks/mutations/useUpdateOrgLimitAggregateMutation.d.ts +40 -0
- package/esm/admin/hooks/mutations/useUpdateOrgLimitAggregateMutation.js +37 -0
- package/esm/admin/hooks/queries/index.d.ts +22 -18
- package/esm/admin/hooks/queries/index.js +22 -18
- package/esm/admin/hooks/queries/useAppLimitEventsQuery.d.ts +69 -0
- package/esm/admin/hooks/queries/useAppLimitEventsQuery.js +32 -0
- package/esm/admin/hooks/queries/useOrgLimitAggregateQuery.d.ts +65 -0
- package/esm/admin/hooks/queries/useOrgLimitAggregateQuery.js +47 -0
- package/esm/admin/hooks/queries/useOrgLimitAggregatesQuery.d.ts +69 -0
- package/esm/admin/hooks/queries/useOrgLimitAggregatesQuery.js +32 -0
- package/esm/admin/hooks/queries/useOrgLimitEventsQuery.d.ts +69 -0
- package/esm/admin/hooks/queries/useOrgLimitEventsQuery.js +32 -0
- package/esm/admin/hooks/query-keys.d.ts +154 -112
- package/esm/admin/hooks/query-keys.js +89 -65
- package/esm/admin/orm/index.d.ts +24 -23
- package/esm/admin/orm/index.js +24 -18
- package/esm/admin/orm/input-types.d.ts +1297 -839
- package/esm/admin/orm/models/appLimitEvent.d.ts +32 -0
- package/esm/admin/orm/models/appLimitEvent.js +51 -0
- package/esm/admin/orm/models/index.d.ts +12 -9
- package/esm/admin/orm/models/index.js +12 -9
- package/esm/admin/orm/models/orgLimitAggregate.d.ts +56 -0
- package/esm/admin/orm/models/orgLimitAggregate.js +96 -0
- package/esm/admin/orm/models/orgLimitEvent.d.ts +32 -0
- package/esm/admin/orm/models/orgLimitEvent.js +51 -0
- package/esm/admin/orm/mutation/index.d.ts +1 -15
- package/esm/admin/orm/mutation/index.js +0 -12
- package/esm/admin/schema-types.d.ts +1207 -856
- package/esm/admin/types.d.ts +96 -53
- package/esm/auth/hooks/mutation-keys.d.ts +0 -2
- package/esm/auth/hooks/mutation-keys.js +0 -3
- package/esm/auth/hooks/mutations/index.d.ts +0 -1
- package/esm/auth/hooks/mutations/index.js +0 -1
- package/esm/auth/orm/index.d.ts +0 -5
- package/esm/auth/orm/input-types.d.ts +0 -20
- package/esm/auth/orm/mutation/index.d.ts +1 -15
- package/esm/auth/orm/mutation/index.js +0 -12
- package/esm/auth/schema-types.d.ts +0 -14
- package/esm/objects/hooks/mutation-keys.d.ts +0 -2
- package/esm/objects/hooks/mutation-keys.js +0 -3
- package/esm/objects/hooks/mutations/index.d.ts +0 -1
- package/esm/objects/hooks/mutations/index.js +0 -1
- package/esm/objects/orm/index.d.ts +0 -5
- package/esm/objects/orm/input-types.d.ts +0 -20
- package/esm/objects/orm/mutation/index.d.ts +1 -15
- package/esm/objects/orm/mutation/index.js +0 -12
- package/esm/objects/schema-types.d.ts +0 -14
- package/esm/public/hooks/index.d.ts +1 -1
- package/esm/public/hooks/index.js +1 -1
- package/esm/public/hooks/invalidation.d.ts +101 -47
- package/esm/public/hooks/invalidation.js +239 -95
- package/esm/public/hooks/mutation-keys.d.ts +206 -100
- package/esm/public/hooks/mutation-keys.js +125 -65
- package/esm/public/hooks/mutations/index.d.ts +50 -28
- package/esm/public/hooks/mutations/index.js +50 -28
- package/esm/public/hooks/mutations/useCreateAgentMessageMutation.d.ts +34 -0
- package/esm/public/hooks/mutations/useCreateAgentMessageMutation.js +31 -0
- package/esm/public/hooks/mutations/useCreateAgentTaskMutation.d.ts +34 -0
- package/esm/public/hooks/mutations/useCreateAgentTaskMutation.js +31 -0
- package/esm/public/hooks/mutations/useCreateAgentThreadMutation.d.ts +34 -0
- package/esm/public/hooks/mutations/useCreateAgentThreadMutation.js +31 -0
- package/esm/public/hooks/mutations/useCreateAppLimitEventMutation.d.ts +34 -0
- package/esm/public/hooks/mutations/useCreateAppLimitEventMutation.js +31 -0
- package/esm/public/hooks/mutations/useCreateBillingModuleMutation.d.ts +34 -0
- package/esm/public/hooks/mutations/useCreateBillingModuleMutation.js +31 -0
- package/esm/public/hooks/mutations/useCreateNodeTypeRegistryMutation.d.ts +34 -0
- package/esm/public/hooks/mutations/useCreateNodeTypeRegistryMutation.js +31 -0
- package/esm/public/hooks/mutations/useCreateOrgLimitAggregateMutation.d.ts +34 -0
- package/esm/public/hooks/mutations/useCreateOrgLimitAggregateMutation.js +31 -0
- package/esm/public/hooks/mutations/useCreateOrgLimitEventMutation.d.ts +34 -0
- package/esm/public/hooks/mutations/useCreateOrgLimitEventMutation.js +31 -0
- package/esm/public/hooks/mutations/useCreatePlansModuleMutation.d.ts +34 -0
- package/esm/public/hooks/mutations/useCreatePlansModuleMutation.js +31 -0
- package/esm/public/hooks/mutations/useDeleteAgentMessageMutation.d.ts +38 -0
- package/esm/public/hooks/mutations/useDeleteAgentMessageMutation.js +36 -0
- package/esm/public/hooks/mutations/useDeleteAgentTaskMutation.d.ts +38 -0
- package/esm/public/hooks/mutations/useDeleteAgentTaskMutation.js +36 -0
- package/esm/public/hooks/mutations/useDeleteAgentThreadMutation.d.ts +38 -0
- package/esm/public/hooks/mutations/useDeleteAgentThreadMutation.js +36 -0
- package/esm/public/hooks/mutations/useDeleteBillingModuleMutation.d.ts +38 -0
- package/esm/public/hooks/mutations/useDeleteBillingModuleMutation.js +36 -0
- package/esm/public/hooks/mutations/useDeleteNodeTypeRegistryMutation.d.ts +38 -0
- package/esm/public/hooks/mutations/useDeleteNodeTypeRegistryMutation.js +36 -0
- package/esm/public/hooks/mutations/useDeleteOrgLimitAggregateMutation.d.ts +38 -0
- package/esm/public/hooks/mutations/useDeleteOrgLimitAggregateMutation.js +36 -0
- package/esm/public/hooks/mutations/useDeletePlansModuleMutation.d.ts +38 -0
- package/esm/public/hooks/mutations/useDeletePlansModuleMutation.js +36 -0
- package/esm/public/hooks/mutations/useUpdateAgentMessageMutation.d.ts +40 -0
- package/esm/public/hooks/mutations/useUpdateAgentMessageMutation.js +37 -0
- package/esm/public/hooks/mutations/useUpdateAgentTaskMutation.d.ts +40 -0
- package/esm/public/hooks/mutations/useUpdateAgentTaskMutation.js +37 -0
- package/esm/public/hooks/mutations/useUpdateAgentThreadMutation.d.ts +40 -0
- package/esm/public/hooks/mutations/useUpdateAgentThreadMutation.js +37 -0
- package/esm/public/hooks/mutations/useUpdateBillingModuleMutation.d.ts +40 -0
- package/esm/public/hooks/mutations/useUpdateBillingModuleMutation.js +37 -0
- package/esm/public/hooks/mutations/useUpdateNodeTypeRegistryMutation.d.ts +40 -0
- package/esm/public/hooks/mutations/useUpdateNodeTypeRegistryMutation.js +37 -0
- package/esm/public/hooks/mutations/useUpdateOrgLimitAggregateMutation.d.ts +40 -0
- package/esm/public/hooks/mutations/useUpdateOrgLimitAggregateMutation.js +37 -0
- package/esm/public/hooks/mutations/useUpdatePlansModuleMutation.d.ts +40 -0
- package/esm/public/hooks/mutations/useUpdatePlansModuleMutation.js +37 -0
- package/esm/public/hooks/queries/index.d.ts +36 -20
- package/esm/public/hooks/queries/index.js +36 -20
- package/esm/public/hooks/queries/useAgentMessageQuery.d.ts +65 -0
- package/esm/public/hooks/queries/useAgentMessageQuery.js +47 -0
- package/esm/public/hooks/queries/useAgentMessagesQuery.d.ts +69 -0
- package/esm/public/hooks/queries/useAgentMessagesQuery.js +32 -0
- package/esm/public/hooks/queries/useAgentTaskQuery.d.ts +65 -0
- package/esm/public/hooks/queries/useAgentTaskQuery.js +47 -0
- package/esm/public/hooks/queries/useAgentTasksQuery.d.ts +69 -0
- package/esm/public/hooks/queries/useAgentTasksQuery.js +32 -0
- package/esm/public/hooks/queries/useAgentThreadQuery.d.ts +65 -0
- package/esm/public/hooks/queries/useAgentThreadQuery.js +47 -0
- package/esm/public/hooks/queries/useAgentThreadsQuery.d.ts +69 -0
- package/esm/public/hooks/queries/useAgentThreadsQuery.js +32 -0
- package/esm/public/hooks/queries/useAppLimitEventsQuery.d.ts +69 -0
- package/esm/public/hooks/queries/useAppLimitEventsQuery.js +32 -0
- package/esm/public/hooks/queries/useBillingModuleQuery.d.ts +65 -0
- package/esm/public/hooks/queries/useBillingModuleQuery.js +47 -0
- package/esm/public/hooks/queries/useBillingModulesQuery.d.ts +69 -0
- package/esm/public/hooks/queries/useBillingModulesQuery.js +32 -0
- package/esm/public/hooks/queries/useNodeTypeRegistriesQuery.d.ts +69 -0
- package/esm/public/hooks/queries/useNodeTypeRegistriesQuery.js +32 -0
- package/esm/public/hooks/queries/useNodeTypeRegistryQuery.d.ts +65 -0
- package/esm/public/hooks/queries/useNodeTypeRegistryQuery.js +47 -0
- package/esm/public/hooks/queries/useOrgLimitAggregateQuery.d.ts +65 -0
- package/esm/public/hooks/queries/useOrgLimitAggregateQuery.js +47 -0
- package/esm/public/hooks/queries/useOrgLimitAggregatesQuery.d.ts +69 -0
- package/esm/public/hooks/queries/useOrgLimitAggregatesQuery.js +32 -0
- package/esm/public/hooks/queries/useOrgLimitEventsQuery.d.ts +69 -0
- package/esm/public/hooks/queries/useOrgLimitEventsQuery.js +32 -0
- package/esm/public/hooks/queries/usePlansModuleQuery.d.ts +65 -0
- package/esm/public/hooks/queries/usePlansModuleQuery.js +47 -0
- package/esm/public/hooks/queries/usePlansModulesQuery.d.ts +69 -0
- package/esm/public/hooks/queries/usePlansModulesQuery.js +32 -0
- package/esm/public/hooks/query-keys.d.ts +246 -120
- package/esm/public/hooks/query-keys.js +141 -69
- package/esm/public/orm/index.d.ts +56 -43
- package/esm/public/orm/index.js +36 -18
- package/esm/public/orm/input-types.d.ts +2983 -1112
- package/esm/public/orm/input-types.js +9 -0
- package/esm/public/orm/models/agentMessage.d.ts +56 -0
- package/esm/public/orm/models/agentMessage.js +96 -0
- package/esm/public/orm/models/agentTask.d.ts +56 -0
- package/esm/public/orm/models/agentTask.js +96 -0
- package/esm/public/orm/models/agentThread.d.ts +56 -0
- package/esm/public/orm/models/agentThread.js +96 -0
- package/esm/public/orm/models/appLimitEvent.d.ts +32 -0
- package/esm/public/orm/models/appLimitEvent.js +51 -0
- package/esm/public/orm/models/billingModule.d.ts +56 -0
- package/esm/public/orm/models/billingModule.js +96 -0
- package/esm/public/orm/models/index.d.ts +18 -9
- package/esm/public/orm/models/index.js +18 -9
- package/esm/public/orm/models/nodeTypeRegistry.d.ts +56 -0
- package/esm/public/orm/models/nodeTypeRegistry.js +96 -0
- package/esm/public/orm/models/orgLimitAggregate.d.ts +56 -0
- package/esm/public/orm/models/orgLimitAggregate.js +96 -0
- package/esm/public/orm/models/orgLimitEvent.d.ts +32 -0
- package/esm/public/orm/models/orgLimitEvent.js +51 -0
- package/esm/public/orm/models/plansModule.d.ts +56 -0
- package/esm/public/orm/models/plansModule.js +96 -0
- package/esm/public/orm/mutation/index.d.ts +17 -31
- package/esm/public/orm/mutation/index.js +24 -36
- package/esm/public/orm/query/index.d.ts +28 -28
- package/esm/public/orm/query/index.js +48 -48
- package/esm/public/schema-types.d.ts +3948 -2833
- package/esm/public/types.d.ts +194 -77
- package/objects/hooks/mutation-keys.d.ts +0 -2
- package/objects/hooks/mutation-keys.js +0 -3
- package/objects/hooks/mutations/index.d.ts +0 -1
- package/objects/hooks/mutations/index.js +0 -1
- package/objects/orm/index.d.ts +0 -5
- package/objects/orm/input-types.d.ts +0 -20
- package/objects/orm/mutation/index.d.ts +1 -15
- package/objects/orm/mutation/index.js +0 -12
- package/objects/schema-types.d.ts +0 -14
- package/package.json +4 -4
- package/public/hooks/index.d.ts +1 -1
- package/public/hooks/index.js +1 -1
- package/public/hooks/invalidation.d.ts +101 -47
- package/public/hooks/invalidation.js +238 -94
- package/public/hooks/mutation-keys.d.ts +206 -100
- package/public/hooks/mutation-keys.js +128 -68
- package/public/hooks/mutations/index.d.ts +50 -28
- package/public/hooks/mutations/index.js +50 -28
- package/public/hooks/mutations/useCreateAgentMessageMutation.d.ts +34 -0
- package/public/hooks/mutations/useCreateAgentMessageMutation.js +34 -0
- package/public/hooks/mutations/useCreateAgentTaskMutation.d.ts +34 -0
- package/public/hooks/mutations/useCreateAgentTaskMutation.js +34 -0
- package/public/hooks/mutations/useCreateAgentThreadMutation.d.ts +34 -0
- package/public/hooks/mutations/useCreateAgentThreadMutation.js +34 -0
- package/public/hooks/mutations/useCreateAppLimitEventMutation.d.ts +34 -0
- package/public/hooks/mutations/useCreateAppLimitEventMutation.js +34 -0
- package/public/hooks/mutations/useCreateBillingModuleMutation.d.ts +34 -0
- package/{admin/hooks/mutations/useConfirmUploadMutation.js → public/hooks/mutations/useCreateBillingModuleMutation.js} +14 -6
- package/public/hooks/mutations/useCreateNodeTypeRegistryMutation.d.ts +34 -0
- package/public/hooks/mutations/{useConfirmUploadMutation.js → useCreateNodeTypeRegistryMutation.js} +14 -6
- package/public/hooks/mutations/useCreateOrgLimitAggregateMutation.d.ts +34 -0
- package/public/hooks/mutations/useCreateOrgLimitAggregateMutation.js +34 -0
- package/public/hooks/mutations/useCreateOrgLimitEventMutation.d.ts +34 -0
- package/public/hooks/mutations/useCreateOrgLimitEventMutation.js +34 -0
- package/public/hooks/mutations/useCreatePlansModuleMutation.d.ts +34 -0
- package/{objects/hooks/mutations/useConfirmUploadMutation.js → public/hooks/mutations/useCreatePlansModuleMutation.js} +14 -6
- package/public/hooks/mutations/useDeleteAgentMessageMutation.d.ts +38 -0
- package/public/hooks/mutations/useDeleteAgentMessageMutation.js +39 -0
- package/public/hooks/mutations/useDeleteAgentTaskMutation.d.ts +38 -0
- package/public/hooks/mutations/useDeleteAgentTaskMutation.js +39 -0
- package/public/hooks/mutations/useDeleteAgentThreadMutation.d.ts +38 -0
- package/public/hooks/mutations/useDeleteAgentThreadMutation.js +39 -0
- package/public/hooks/mutations/useDeleteBillingModuleMutation.d.ts +38 -0
- package/public/hooks/mutations/useDeleteBillingModuleMutation.js +39 -0
- package/public/hooks/mutations/useDeleteNodeTypeRegistryMutation.d.ts +38 -0
- package/public/hooks/mutations/useDeleteNodeTypeRegistryMutation.js +39 -0
- package/public/hooks/mutations/useDeleteOrgLimitAggregateMutation.d.ts +38 -0
- package/public/hooks/mutations/useDeleteOrgLimitAggregateMutation.js +39 -0
- package/public/hooks/mutations/useDeletePlansModuleMutation.d.ts +38 -0
- package/public/hooks/mutations/useDeletePlansModuleMutation.js +39 -0
- package/public/hooks/mutations/useUpdateAgentMessageMutation.d.ts +40 -0
- package/public/hooks/mutations/useUpdateAgentMessageMutation.js +40 -0
- package/public/hooks/mutations/useUpdateAgentTaskMutation.d.ts +40 -0
- package/public/hooks/mutations/useUpdateAgentTaskMutation.js +40 -0
- package/public/hooks/mutations/useUpdateAgentThreadMutation.d.ts +40 -0
- package/public/hooks/mutations/useUpdateAgentThreadMutation.js +40 -0
- package/public/hooks/mutations/useUpdateBillingModuleMutation.d.ts +40 -0
- package/public/hooks/mutations/useUpdateBillingModuleMutation.js +40 -0
- package/public/hooks/mutations/useUpdateNodeTypeRegistryMutation.d.ts +40 -0
- package/public/hooks/mutations/useUpdateNodeTypeRegistryMutation.js +40 -0
- package/public/hooks/mutations/useUpdateOrgLimitAggregateMutation.d.ts +40 -0
- package/public/hooks/mutations/useUpdateOrgLimitAggregateMutation.js +40 -0
- package/public/hooks/mutations/useUpdatePlansModuleMutation.d.ts +40 -0
- package/public/hooks/mutations/useUpdatePlansModuleMutation.js +40 -0
- package/public/hooks/queries/index.d.ts +36 -20
- package/public/hooks/queries/index.js +36 -20
- package/public/hooks/queries/useAgentMessageQuery.d.ts +65 -0
- package/public/hooks/queries/useAgentMessageQuery.js +53 -0
- package/public/hooks/queries/useAgentMessagesQuery.d.ts +69 -0
- package/public/hooks/queries/useAgentMessagesQuery.js +38 -0
- package/public/hooks/queries/useAgentTaskQuery.d.ts +65 -0
- package/public/hooks/queries/useAgentTaskQuery.js +53 -0
- package/public/hooks/queries/useAgentTasksQuery.d.ts +69 -0
- package/public/hooks/queries/useAgentTasksQuery.js +38 -0
- package/public/hooks/queries/useAgentThreadQuery.d.ts +65 -0
- package/public/hooks/queries/useAgentThreadQuery.js +53 -0
- package/public/hooks/queries/useAgentThreadsQuery.d.ts +69 -0
- package/public/hooks/queries/useAgentThreadsQuery.js +38 -0
- package/public/hooks/queries/useAppLimitEventsQuery.d.ts +69 -0
- package/public/hooks/queries/useAppLimitEventsQuery.js +38 -0
- package/public/hooks/queries/useBillingModuleQuery.d.ts +65 -0
- package/public/hooks/queries/useBillingModuleQuery.js +53 -0
- package/public/hooks/queries/useBillingModulesQuery.d.ts +69 -0
- package/public/hooks/queries/useBillingModulesQuery.js +38 -0
- package/public/hooks/queries/useNodeTypeRegistriesQuery.d.ts +69 -0
- package/public/hooks/queries/useNodeTypeRegistriesQuery.js +38 -0
- package/public/hooks/queries/useNodeTypeRegistryQuery.d.ts +65 -0
- package/public/hooks/queries/useNodeTypeRegistryQuery.js +53 -0
- package/public/hooks/queries/useOrgLimitAggregateQuery.d.ts +65 -0
- package/public/hooks/queries/useOrgLimitAggregateQuery.js +53 -0
- package/public/hooks/queries/useOrgLimitAggregatesQuery.d.ts +69 -0
- package/public/hooks/queries/useOrgLimitAggregatesQuery.js +38 -0
- package/public/hooks/queries/useOrgLimitEventsQuery.d.ts +69 -0
- package/public/hooks/queries/useOrgLimitEventsQuery.js +38 -0
- package/public/hooks/queries/usePlansModuleQuery.d.ts +65 -0
- package/public/hooks/queries/usePlansModuleQuery.js +53 -0
- package/public/hooks/queries/usePlansModulesQuery.d.ts +69 -0
- package/public/hooks/queries/usePlansModulesQuery.js +38 -0
- package/public/hooks/query-keys.d.ts +246 -120
- package/public/hooks/query-keys.js +144 -72
- package/public/orm/index.d.ts +56 -43
- package/public/orm/index.js +36 -18
- package/public/orm/input-types.d.ts +2983 -1112
- package/public/orm/input-types.js +9 -0
- package/public/orm/models/agentMessage.d.ts +56 -0
- package/public/orm/models/agentMessage.js +100 -0
- package/public/orm/models/agentTask.d.ts +56 -0
- package/public/orm/models/agentTask.js +100 -0
- package/public/orm/models/agentThread.d.ts +56 -0
- package/public/orm/models/agentThread.js +100 -0
- package/public/orm/models/appLimitEvent.d.ts +32 -0
- package/public/orm/models/appLimitEvent.js +55 -0
- package/public/orm/models/billingModule.d.ts +56 -0
- package/public/orm/models/billingModule.js +100 -0
- package/public/orm/models/index.d.ts +18 -9
- package/public/orm/models/index.js +39 -21
- package/public/orm/models/nodeTypeRegistry.d.ts +56 -0
- package/public/orm/models/nodeTypeRegistry.js +100 -0
- package/public/orm/models/orgLimitAggregate.d.ts +56 -0
- package/public/orm/models/orgLimitAggregate.js +100 -0
- package/public/orm/models/orgLimitEvent.d.ts +32 -0
- package/public/orm/models/orgLimitEvent.js +55 -0
- package/public/orm/models/plansModule.d.ts +56 -0
- package/public/orm/models/plansModule.js +100 -0
- package/public/orm/mutation/index.d.ts +17 -31
- package/public/orm/mutation/index.js +24 -36
- package/public/orm/query/index.d.ts +28 -28
- package/public/orm/query/index.js +48 -48
- package/public/schema-types.d.ts +3948 -2833
- package/public/types.d.ts +194 -77
- package/admin/hooks/mutations/useConfirmUploadMutation.d.ts +0 -20
- package/auth/hooks/mutations/useConfirmUploadMutation.d.ts +0 -20
- package/esm/admin/hooks/mutations/useConfirmUploadMutation.d.ts +0 -20
- package/esm/admin/hooks/mutations/useConfirmUploadMutation.js +0 -23
- package/esm/auth/hooks/mutations/useConfirmUploadMutation.d.ts +0 -20
- package/esm/auth/hooks/mutations/useConfirmUploadMutation.js +0 -23
- package/esm/objects/hooks/mutations/useConfirmUploadMutation.d.ts +0 -20
- package/esm/objects/hooks/mutations/useConfirmUploadMutation.js +0 -23
- package/esm/public/hooks/mutations/useConfirmUploadMutation.d.ts +0 -20
- package/esm/public/hooks/mutations/useConfirmUploadMutation.js +0 -23
- package/objects/hooks/mutations/useConfirmUploadMutation.d.ts +0 -20
- package/public/hooks/mutations/useConfirmUploadMutation.d.ts +0 -20
|
@@ -22,15 +22,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
22
22
|
__exportStar(require("./useCreateOrgGetManagersRecordMutation"), exports);
|
|
23
23
|
__exportStar(require("./useCreateOrgGetSubordinatesRecordMutation"), exports);
|
|
24
24
|
__exportStar(require("./useCreateGetAllRecordMutation"), exports);
|
|
25
|
-
__exportStar(require("./useCreateObjectMutation"), exports);
|
|
26
|
-
__exportStar(require("./useUpdateObjectMutation"), exports);
|
|
27
|
-
__exportStar(require("./useDeleteObjectMutation"), exports);
|
|
28
25
|
__exportStar(require("./useCreateAppPermissionMutation"), exports);
|
|
29
26
|
__exportStar(require("./useUpdateAppPermissionMutation"), exports);
|
|
30
27
|
__exportStar(require("./useDeleteAppPermissionMutation"), exports);
|
|
31
28
|
__exportStar(require("./useCreateOrgPermissionMutation"), exports);
|
|
32
29
|
__exportStar(require("./useUpdateOrgPermissionMutation"), exports);
|
|
33
30
|
__exportStar(require("./useDeleteOrgPermissionMutation"), exports);
|
|
31
|
+
__exportStar(require("./useCreateObjectMutation"), exports);
|
|
32
|
+
__exportStar(require("./useUpdateObjectMutation"), exports);
|
|
33
|
+
__exportStar(require("./useDeleteObjectMutation"), exports);
|
|
34
34
|
__exportStar(require("./useCreateAppLevelRequirementMutation"), exports);
|
|
35
35
|
__exportStar(require("./useUpdateAppLevelRequirementMutation"), exports);
|
|
36
36
|
__exportStar(require("./useDeleteAppLevelRequirementMutation"), exports);
|
|
@@ -271,6 +271,9 @@ __exportStar(require("./useDeleteAppLimitMutation"), exports);
|
|
|
271
271
|
__exportStar(require("./useCreateOrgLimitMutation"), exports);
|
|
272
272
|
__exportStar(require("./useUpdateOrgLimitMutation"), exports);
|
|
273
273
|
__exportStar(require("./useDeleteOrgLimitMutation"), exports);
|
|
274
|
+
__exportStar(require("./useCreateOrgLimitAggregateMutation"), exports);
|
|
275
|
+
__exportStar(require("./useUpdateOrgLimitAggregateMutation"), exports);
|
|
276
|
+
__exportStar(require("./useDeleteOrgLimitAggregateMutation"), exports);
|
|
274
277
|
__exportStar(require("./useCreateAppStepMutation"), exports);
|
|
275
278
|
__exportStar(require("./useUpdateAppStepMutation"), exports);
|
|
276
279
|
__exportStar(require("./useDeleteAppStepMutation"), exports);
|
|
@@ -307,9 +310,18 @@ __exportStar(require("./useDeleteOrgClaimedInviteMutation"), exports);
|
|
|
307
310
|
__exportStar(require("./useCreateAuditLogMutation"), exports);
|
|
308
311
|
__exportStar(require("./useUpdateAuditLogMutation"), exports);
|
|
309
312
|
__exportStar(require("./useDeleteAuditLogMutation"), exports);
|
|
310
|
-
__exportStar(require("./
|
|
311
|
-
__exportStar(require("./
|
|
312
|
-
__exportStar(require("./
|
|
313
|
+
__exportStar(require("./useCreateAgentThreadMutation"), exports);
|
|
314
|
+
__exportStar(require("./useUpdateAgentThreadMutation"), exports);
|
|
315
|
+
__exportStar(require("./useDeleteAgentThreadMutation"), exports);
|
|
316
|
+
__exportStar(require("./useCreateAgentMessageMutation"), exports);
|
|
317
|
+
__exportStar(require("./useUpdateAgentMessageMutation"), exports);
|
|
318
|
+
__exportStar(require("./useDeleteAgentMessageMutation"), exports);
|
|
319
|
+
__exportStar(require("./useCreateAgentTaskMutation"), exports);
|
|
320
|
+
__exportStar(require("./useUpdateAgentTaskMutation"), exports);
|
|
321
|
+
__exportStar(require("./useDeleteAgentTaskMutation"), exports);
|
|
322
|
+
__exportStar(require("./useCreateRoleTypeMutation"), exports);
|
|
323
|
+
__exportStar(require("./useUpdateRoleTypeMutation"), exports);
|
|
324
|
+
__exportStar(require("./useDeleteRoleTypeMutation"), exports);
|
|
313
325
|
__exportStar(require("./useCreateIdentityProviderMutation"), exports);
|
|
314
326
|
__exportStar(require("./useCreateRefMutation"), exports);
|
|
315
327
|
__exportStar(require("./useUpdateRefMutation"), exports);
|
|
@@ -317,46 +329,57 @@ __exportStar(require("./useDeleteRefMutation"), exports);
|
|
|
317
329
|
__exportStar(require("./useCreateStoreMutation"), exports);
|
|
318
330
|
__exportStar(require("./useUpdateStoreMutation"), exports);
|
|
319
331
|
__exportStar(require("./useDeleteStoreMutation"), exports);
|
|
320
|
-
__exportStar(require("./
|
|
321
|
-
__exportStar(require("./
|
|
322
|
-
__exportStar(require("./
|
|
332
|
+
__exportStar(require("./useCreateAppPermissionDefaultMutation"), exports);
|
|
333
|
+
__exportStar(require("./useUpdateAppPermissionDefaultMutation"), exports);
|
|
334
|
+
__exportStar(require("./useDeleteAppPermissionDefaultMutation"), exports);
|
|
335
|
+
__exportStar(require("./useCreateMembershipTypeMutation"), exports);
|
|
336
|
+
__exportStar(require("./useUpdateMembershipTypeMutation"), exports);
|
|
337
|
+
__exportStar(require("./useDeleteMembershipTypeMutation"), exports);
|
|
323
338
|
__exportStar(require("./useCreateMigrateFileMutation"), exports);
|
|
339
|
+
__exportStar(require("./useCreateDevicesModuleMutation"), exports);
|
|
340
|
+
__exportStar(require("./useUpdateDevicesModuleMutation"), exports);
|
|
341
|
+
__exportStar(require("./useDeleteDevicesModuleMutation"), exports);
|
|
342
|
+
__exportStar(require("./useCreateNodeTypeRegistryMutation"), exports);
|
|
343
|
+
__exportStar(require("./useUpdateNodeTypeRegistryMutation"), exports);
|
|
344
|
+
__exportStar(require("./useDeleteNodeTypeRegistryMutation"), exports);
|
|
324
345
|
__exportStar(require("./useCreateAppLimitDefaultMutation"), exports);
|
|
325
346
|
__exportStar(require("./useUpdateAppLimitDefaultMutation"), exports);
|
|
326
347
|
__exportStar(require("./useDeleteAppLimitDefaultMutation"), exports);
|
|
327
348
|
__exportStar(require("./useCreateOrgLimitDefaultMutation"), exports);
|
|
328
349
|
__exportStar(require("./useUpdateOrgLimitDefaultMutation"), exports);
|
|
329
350
|
__exportStar(require("./useDeleteOrgLimitDefaultMutation"), exports);
|
|
330
|
-
__exportStar(require("./useCreateDevicesModuleMutation"), exports);
|
|
331
|
-
__exportStar(require("./useUpdateDevicesModuleMutation"), exports);
|
|
332
|
-
__exportStar(require("./useDeleteDevicesModuleMutation"), exports);
|
|
333
351
|
__exportStar(require("./useCreateUserConnectedAccountMutation"), exports);
|
|
334
|
-
__exportStar(require("./useCreateAppMembershipDefaultMutation"), exports);
|
|
335
|
-
__exportStar(require("./useUpdateAppMembershipDefaultMutation"), exports);
|
|
336
|
-
__exportStar(require("./useDeleteAppMembershipDefaultMutation"), exports);
|
|
337
|
-
__exportStar(require("./useCreateOrgMembershipDefaultMutation"), exports);
|
|
338
|
-
__exportStar(require("./useUpdateOrgMembershipDefaultMutation"), exports);
|
|
339
|
-
__exportStar(require("./useDeleteOrgMembershipDefaultMutation"), exports);
|
|
340
352
|
__exportStar(require("./useCreateCommitMutation"), exports);
|
|
341
353
|
__exportStar(require("./useUpdateCommitMutation"), exports);
|
|
342
354
|
__exportStar(require("./useDeleteCommitMutation"), exports);
|
|
343
355
|
__exportStar(require("./useCreateRateLimitsModuleMutation"), exports);
|
|
344
356
|
__exportStar(require("./useUpdateRateLimitsModuleMutation"), exports);
|
|
345
357
|
__exportStar(require("./useDeleteRateLimitsModuleMutation"), exports);
|
|
346
|
-
__exportStar(require("./
|
|
347
|
-
__exportStar(require("./
|
|
348
|
-
__exportStar(require("./
|
|
358
|
+
__exportStar(require("./useCreateAppMembershipDefaultMutation"), exports);
|
|
359
|
+
__exportStar(require("./useUpdateAppMembershipDefaultMutation"), exports);
|
|
360
|
+
__exportStar(require("./useDeleteAppMembershipDefaultMutation"), exports);
|
|
361
|
+
__exportStar(require("./useCreateOrgMembershipDefaultMutation"), exports);
|
|
362
|
+
__exportStar(require("./useUpdateOrgMembershipDefaultMutation"), exports);
|
|
363
|
+
__exportStar(require("./useDeleteOrgMembershipDefaultMutation"), exports);
|
|
364
|
+
__exportStar(require("./useCreateAppLimitEventMutation"), exports);
|
|
365
|
+
__exportStar(require("./useCreateOrgLimitEventMutation"), exports);
|
|
366
|
+
__exportStar(require("./useCreatePlansModuleMutation"), exports);
|
|
367
|
+
__exportStar(require("./useUpdatePlansModuleMutation"), exports);
|
|
368
|
+
__exportStar(require("./useDeletePlansModuleMutation"), exports);
|
|
349
369
|
__exportStar(require("./useCreateRlsModuleMutation"), exports);
|
|
350
370
|
__exportStar(require("./useUpdateRlsModuleMutation"), exports);
|
|
351
371
|
__exportStar(require("./useDeleteRlsModuleMutation"), exports);
|
|
352
372
|
__exportStar(require("./useCreateSqlActionMutation"), exports);
|
|
353
|
-
__exportStar(require("./
|
|
354
|
-
__exportStar(require("./
|
|
355
|
-
__exportStar(require("./
|
|
373
|
+
__exportStar(require("./useCreateBillingModuleMutation"), exports);
|
|
374
|
+
__exportStar(require("./useUpdateBillingModuleMutation"), exports);
|
|
375
|
+
__exportStar(require("./useDeleteBillingModuleMutation"), exports);
|
|
376
|
+
__exportStar(require("./useCreateAstMigrationMutation"), exports);
|
|
356
377
|
__exportStar(require("./useCreateUserMutation"), exports);
|
|
357
378
|
__exportStar(require("./useUpdateUserMutation"), exports);
|
|
358
379
|
__exportStar(require("./useDeleteUserMutation"), exports);
|
|
359
|
-
__exportStar(require("./
|
|
380
|
+
__exportStar(require("./useCreateOrgMembershipSettingMutation"), exports);
|
|
381
|
+
__exportStar(require("./useUpdateOrgMembershipSettingMutation"), exports);
|
|
382
|
+
__exportStar(require("./useDeleteOrgMembershipSettingMutation"), exports);
|
|
360
383
|
__exportStar(require("./useCreateAppMembershipMutation"), exports);
|
|
361
384
|
__exportStar(require("./useUpdateAppMembershipMutation"), exports);
|
|
362
385
|
__exportStar(require("./useDeleteAppMembershipMutation"), exports);
|
|
@@ -404,12 +427,11 @@ __exportStar(require("./useSignInCrossOriginMutation"), exports);
|
|
|
404
427
|
__exportStar(require("./useCreateUserDatabaseMutation"), exports);
|
|
405
428
|
__exportStar(require("./useExtendTokenExpiresMutation"), exports);
|
|
406
429
|
__exportStar(require("./useCreateApiKeyMutation"), exports);
|
|
430
|
+
__exportStar(require("./useSendVerificationEmailMutation"), exports);
|
|
431
|
+
__exportStar(require("./useForgotPasswordMutation"), exports);
|
|
407
432
|
__exportStar(require("./useSignUpMutation"), exports);
|
|
408
433
|
__exportStar(require("./useRequestCrossOriginTokenMutation"), exports);
|
|
409
434
|
__exportStar(require("./useSignInMutation"), exports);
|
|
410
435
|
__exportStar(require("./useProvisionTableMutation"), exports);
|
|
411
|
-
__exportStar(require("./useSendVerificationEmailMutation"), exports);
|
|
412
|
-
__exportStar(require("./useForgotPasswordMutation"), exports);
|
|
413
436
|
__exportStar(require("./useRequestUploadUrlMutation"), exports);
|
|
414
|
-
__exportStar(require("./useConfirmUploadMutation"), exports);
|
|
415
437
|
__exportStar(require("./useProvisionBucketMutation"), exports);
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A single message in an agent_thread. The full client-rendered content (TextPart and ToolPart, including the ToolPart state machine and inline approval object) lives in the `parts` jsonb column — there is no separate agent_tool_call or agent_tool_approval table in v1. Cascade-deleted with the parent thread; RLS is owner-only.
|
|
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 { AgentMessageSelect, AgentMessageWithRelations, CreateAgentMessageInput } from '../../orm/input-types';
|
|
8
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
+
export type { AgentMessageSelect, AgentMessageWithRelations, CreateAgentMessageInput, } from '../../orm/input-types';
|
|
10
|
+
/**
|
|
11
|
+
* A single message in an agent_thread. The full client-rendered content (TextPart and ToolPart, including the ToolPart state machine and inline approval object) lives in the `parts` jsonb column — there is no separate agent_tool_call or agent_tool_approval table in v1. Cascade-deleted with the parent thread; RLS is owner-only.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* const { mutate, isPending } = useCreateAgentMessageMutation({
|
|
16
|
+
* selection: { fields: { id: true, name: true } },
|
|
17
|
+
* });
|
|
18
|
+
*
|
|
19
|
+
* mutate({ name: 'New item' });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare function useCreateAgentMessageMutation<S extends AgentMessageSelect>(params: {
|
|
23
|
+
selection: {
|
|
24
|
+
fields: S & AgentMessageSelect;
|
|
25
|
+
} & HookStrictSelect<NoInfer<S>, AgentMessageSelect>;
|
|
26
|
+
} & Omit<UseMutationOptions<{
|
|
27
|
+
createAgentMessage: {
|
|
28
|
+
agentMessage: InferSelectResult<AgentMessageWithRelations, S>;
|
|
29
|
+
};
|
|
30
|
+
}, Error, CreateAgentMessageInput['agentMessage']>, 'mutationFn'>): UseMutationResult<{
|
|
31
|
+
createAgentMessage: {
|
|
32
|
+
agentMessage: InferSelectResult<AgentMessageWithRelations, S>;
|
|
33
|
+
};
|
|
34
|
+
}, Error, CreateAgentMessageInput['agentMessage']>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* A single message in an agent_thread. The full client-rendered content (TextPart and ToolPart, including the ToolPart state machine and inline approval object) lives in the `parts` jsonb column — there is no separate agent_tool_call or agent_tool_approval table in v1. Cascade-deleted with the parent thread; RLS is owner-only.
|
|
4
|
+
* @generated by @constructive-io/graphql-codegen
|
|
5
|
+
* DO NOT EDIT - changes will be overwritten
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.useCreateAgentMessageMutation = useCreateAgentMessageMutation;
|
|
9
|
+
const react_query_1 = require("@tanstack/react-query");
|
|
10
|
+
const client_1 = require("../client");
|
|
11
|
+
const selection_1 = require("../selection");
|
|
12
|
+
const query_keys_1 = require("../query-keys");
|
|
13
|
+
const mutation_keys_1 = require("../mutation-keys");
|
|
14
|
+
function useCreateAgentMessageMutation(params) {
|
|
15
|
+
const args = (0, selection_1.buildSelectionArgs)(params.selection);
|
|
16
|
+
const { selection: _selection, ...mutationOptions } = params ?? {};
|
|
17
|
+
void _selection;
|
|
18
|
+
const queryClient = (0, react_query_1.useQueryClient)();
|
|
19
|
+
return (0, react_query_1.useMutation)({
|
|
20
|
+
mutationKey: mutation_keys_1.agentMessageMutationKeys.create(),
|
|
21
|
+
mutationFn: (data) => (0, client_1.getClient)()
|
|
22
|
+
.agentMessage.create({
|
|
23
|
+
data,
|
|
24
|
+
select: args.select,
|
|
25
|
+
})
|
|
26
|
+
.unwrap(),
|
|
27
|
+
onSuccess: () => {
|
|
28
|
+
queryClient.invalidateQueries({
|
|
29
|
+
queryKey: query_keys_1.agentMessageKeys.lists(),
|
|
30
|
+
});
|
|
31
|
+
},
|
|
32
|
+
...mutationOptions,
|
|
33
|
+
});
|
|
34
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An agent- or user-authored todo item attached to an agent_thread. Captures the planning surface for agent-mode conversations: each row is a single discrete unit of work with a status lifecycle (pending → in-progress → done|failed). Cascade-deleted with the parent thread; RLS is owner-only.
|
|
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 { AgentTaskSelect, AgentTaskWithRelations, CreateAgentTaskInput } from '../../orm/input-types';
|
|
8
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
+
export type { AgentTaskSelect, AgentTaskWithRelations, CreateAgentTaskInput, } from '../../orm/input-types';
|
|
10
|
+
/**
|
|
11
|
+
* An agent- or user-authored todo item attached to an agent_thread. Captures the planning surface for agent-mode conversations: each row is a single discrete unit of work with a status lifecycle (pending → in-progress → done|failed). Cascade-deleted with the parent thread; RLS is owner-only.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* const { mutate, isPending } = useCreateAgentTaskMutation({
|
|
16
|
+
* selection: { fields: { id: true, name: true } },
|
|
17
|
+
* });
|
|
18
|
+
*
|
|
19
|
+
* mutate({ name: 'New item' });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare function useCreateAgentTaskMutation<S extends AgentTaskSelect>(params: {
|
|
23
|
+
selection: {
|
|
24
|
+
fields: S & AgentTaskSelect;
|
|
25
|
+
} & HookStrictSelect<NoInfer<S>, AgentTaskSelect>;
|
|
26
|
+
} & Omit<UseMutationOptions<{
|
|
27
|
+
createAgentTask: {
|
|
28
|
+
agentTask: InferSelectResult<AgentTaskWithRelations, S>;
|
|
29
|
+
};
|
|
30
|
+
}, Error, CreateAgentTaskInput['agentTask']>, 'mutationFn'>): UseMutationResult<{
|
|
31
|
+
createAgentTask: {
|
|
32
|
+
agentTask: InferSelectResult<AgentTaskWithRelations, S>;
|
|
33
|
+
};
|
|
34
|
+
}, Error, CreateAgentTaskInput['agentTask']>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* An agent- or user-authored todo item attached to an agent_thread. Captures the planning surface for agent-mode conversations: each row is a single discrete unit of work with a status lifecycle (pending → in-progress → done|failed). Cascade-deleted with the parent thread; RLS is owner-only.
|
|
4
|
+
* @generated by @constructive-io/graphql-codegen
|
|
5
|
+
* DO NOT EDIT - changes will be overwritten
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.useCreateAgentTaskMutation = useCreateAgentTaskMutation;
|
|
9
|
+
const react_query_1 = require("@tanstack/react-query");
|
|
10
|
+
const client_1 = require("../client");
|
|
11
|
+
const selection_1 = require("../selection");
|
|
12
|
+
const query_keys_1 = require("../query-keys");
|
|
13
|
+
const mutation_keys_1 = require("../mutation-keys");
|
|
14
|
+
function useCreateAgentTaskMutation(params) {
|
|
15
|
+
const args = (0, selection_1.buildSelectionArgs)(params.selection);
|
|
16
|
+
const { selection: _selection, ...mutationOptions } = params ?? {};
|
|
17
|
+
void _selection;
|
|
18
|
+
const queryClient = (0, react_query_1.useQueryClient)();
|
|
19
|
+
return (0, react_query_1.useMutation)({
|
|
20
|
+
mutationKey: mutation_keys_1.agentTaskMutationKeys.create(),
|
|
21
|
+
mutationFn: (data) => (0, client_1.getClient)()
|
|
22
|
+
.agentTask.create({
|
|
23
|
+
data,
|
|
24
|
+
select: args.select,
|
|
25
|
+
})
|
|
26
|
+
.unwrap(),
|
|
27
|
+
onSuccess: () => {
|
|
28
|
+
queryClient.invalidateQueries({
|
|
29
|
+
queryKey: query_keys_1.agentTaskKeys.lists(),
|
|
30
|
+
});
|
|
31
|
+
},
|
|
32
|
+
...mutationOptions,
|
|
33
|
+
});
|
|
34
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Top-level AI/LLM conversation. Owns the chat-mode + model + system-prompt snapshot for the lifetime of the conversation, and is the entity-scoping anchor — descendants (agent_message, agent_task) inherit entity_id from this row via DataInheritFromParent. RLS is owner-only (AuthzDirectOwner); entity_id is a grouping dimension, not a security dimension.
|
|
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 { AgentThreadSelect, AgentThreadWithRelations, CreateAgentThreadInput } from '../../orm/input-types';
|
|
8
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
+
export type { AgentThreadSelect, AgentThreadWithRelations, CreateAgentThreadInput, } from '../../orm/input-types';
|
|
10
|
+
/**
|
|
11
|
+
* Top-level AI/LLM conversation. Owns the chat-mode + model + system-prompt snapshot for the lifetime of the conversation, and is the entity-scoping anchor — descendants (agent_message, agent_task) inherit entity_id from this row via DataInheritFromParent. RLS is owner-only (AuthzDirectOwner); entity_id is a grouping dimension, not a security dimension.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* const { mutate, isPending } = useCreateAgentThreadMutation({
|
|
16
|
+
* selection: { fields: { id: true, name: true } },
|
|
17
|
+
* });
|
|
18
|
+
*
|
|
19
|
+
* mutate({ name: 'New item' });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare function useCreateAgentThreadMutation<S extends AgentThreadSelect>(params: {
|
|
23
|
+
selection: {
|
|
24
|
+
fields: S & AgentThreadSelect;
|
|
25
|
+
} & HookStrictSelect<NoInfer<S>, AgentThreadSelect>;
|
|
26
|
+
} & Omit<UseMutationOptions<{
|
|
27
|
+
createAgentThread: {
|
|
28
|
+
agentThread: InferSelectResult<AgentThreadWithRelations, S>;
|
|
29
|
+
};
|
|
30
|
+
}, Error, CreateAgentThreadInput['agentThread']>, 'mutationFn'>): UseMutationResult<{
|
|
31
|
+
createAgentThread: {
|
|
32
|
+
agentThread: InferSelectResult<AgentThreadWithRelations, S>;
|
|
33
|
+
};
|
|
34
|
+
}, Error, CreateAgentThreadInput['agentThread']>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Top-level AI/LLM conversation. Owns the chat-mode + model + system-prompt snapshot for the lifetime of the conversation, and is the entity-scoping anchor — descendants (agent_message, agent_task) inherit entity_id from this row via DataInheritFromParent. RLS is owner-only (AuthzDirectOwner); entity_id is a grouping dimension, not a security dimension.
|
|
4
|
+
* @generated by @constructive-io/graphql-codegen
|
|
5
|
+
* DO NOT EDIT - changes will be overwritten
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.useCreateAgentThreadMutation = useCreateAgentThreadMutation;
|
|
9
|
+
const react_query_1 = require("@tanstack/react-query");
|
|
10
|
+
const client_1 = require("../client");
|
|
11
|
+
const selection_1 = require("../selection");
|
|
12
|
+
const query_keys_1 = require("../query-keys");
|
|
13
|
+
const mutation_keys_1 = require("../mutation-keys");
|
|
14
|
+
function useCreateAgentThreadMutation(params) {
|
|
15
|
+
const args = (0, selection_1.buildSelectionArgs)(params.selection);
|
|
16
|
+
const { selection: _selection, ...mutationOptions } = params ?? {};
|
|
17
|
+
void _selection;
|
|
18
|
+
const queryClient = (0, react_query_1.useQueryClient)();
|
|
19
|
+
return (0, react_query_1.useMutation)({
|
|
20
|
+
mutationKey: mutation_keys_1.agentThreadMutationKeys.create(),
|
|
21
|
+
mutationFn: (data) => (0, client_1.getClient)()
|
|
22
|
+
.agentThread.create({
|
|
23
|
+
data,
|
|
24
|
+
select: args.select,
|
|
25
|
+
})
|
|
26
|
+
.unwrap(),
|
|
27
|
+
onSuccess: () => {
|
|
28
|
+
queryClient.invalidateQueries({
|
|
29
|
+
queryKey: query_keys_1.agentThreadKeys.lists(),
|
|
30
|
+
});
|
|
31
|
+
},
|
|
32
|
+
...mutationOptions,
|
|
33
|
+
});
|
|
34
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Append-only log of limit events for historical reporting and audit
|
|
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 { AppLimitEventSelect, AppLimitEventWithRelations, CreateAppLimitEventInput } from '../../orm/input-types';
|
|
8
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
+
export type { AppLimitEventSelect, AppLimitEventWithRelations, CreateAppLimitEventInput, } from '../../orm/input-types';
|
|
10
|
+
/**
|
|
11
|
+
* Append-only log of limit events for historical reporting and audit
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* const { mutate, isPending } = useCreateAppLimitEventMutation({
|
|
16
|
+
* selection: { fields: { id: true, name: true } },
|
|
17
|
+
* });
|
|
18
|
+
*
|
|
19
|
+
* mutate({ name: 'New item' });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare function useCreateAppLimitEventMutation<S extends AppLimitEventSelect>(params: {
|
|
23
|
+
selection: {
|
|
24
|
+
fields: S & AppLimitEventSelect;
|
|
25
|
+
} & HookStrictSelect<NoInfer<S>, AppLimitEventSelect>;
|
|
26
|
+
} & Omit<UseMutationOptions<{
|
|
27
|
+
createAppLimitEvent: {
|
|
28
|
+
appLimitEvent: InferSelectResult<AppLimitEventWithRelations, S>;
|
|
29
|
+
};
|
|
30
|
+
}, Error, CreateAppLimitEventInput['appLimitEvent']>, 'mutationFn'>): UseMutationResult<{
|
|
31
|
+
createAppLimitEvent: {
|
|
32
|
+
appLimitEvent: InferSelectResult<AppLimitEventWithRelations, S>;
|
|
33
|
+
};
|
|
34
|
+
}, Error, CreateAppLimitEventInput['appLimitEvent']>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Append-only log of limit events for historical reporting and audit
|
|
4
|
+
* @generated by @constructive-io/graphql-codegen
|
|
5
|
+
* DO NOT EDIT - changes will be overwritten
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.useCreateAppLimitEventMutation = useCreateAppLimitEventMutation;
|
|
9
|
+
const react_query_1 = require("@tanstack/react-query");
|
|
10
|
+
const client_1 = require("../client");
|
|
11
|
+
const selection_1 = require("../selection");
|
|
12
|
+
const query_keys_1 = require("../query-keys");
|
|
13
|
+
const mutation_keys_1 = require("../mutation-keys");
|
|
14
|
+
function useCreateAppLimitEventMutation(params) {
|
|
15
|
+
const args = (0, selection_1.buildSelectionArgs)(params.selection);
|
|
16
|
+
const { selection: _selection, ...mutationOptions } = params ?? {};
|
|
17
|
+
void _selection;
|
|
18
|
+
const queryClient = (0, react_query_1.useQueryClient)();
|
|
19
|
+
return (0, react_query_1.useMutation)({
|
|
20
|
+
mutationKey: mutation_keys_1.appLimitEventMutationKeys.create(),
|
|
21
|
+
mutationFn: (data) => (0, client_1.getClient)()
|
|
22
|
+
.appLimitEvent.create({
|
|
23
|
+
data,
|
|
24
|
+
select: args.select,
|
|
25
|
+
})
|
|
26
|
+
.unwrap(),
|
|
27
|
+
onSuccess: () => {
|
|
28
|
+
queryClient.invalidateQueries({
|
|
29
|
+
queryKey: query_keys_1.appLimitEventKeys.lists(),
|
|
30
|
+
});
|
|
31
|
+
},
|
|
32
|
+
...mutationOptions,
|
|
33
|
+
});
|
|
34
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Create mutation hook for BillingModule
|
|
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 { BillingModuleSelect, BillingModuleWithRelations, CreateBillingModuleInput } from '../../orm/input-types';
|
|
8
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
+
export type { BillingModuleSelect, BillingModuleWithRelations, CreateBillingModuleInput, } from '../../orm/input-types';
|
|
10
|
+
/**
|
|
11
|
+
* Mutation hook for creating a BillingModule
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* const { mutate, isPending } = useCreateBillingModuleMutation({
|
|
16
|
+
* selection: { fields: { id: true, name: true } },
|
|
17
|
+
* });
|
|
18
|
+
*
|
|
19
|
+
* mutate({ name: 'New item' });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare function useCreateBillingModuleMutation<S extends BillingModuleSelect>(params: {
|
|
23
|
+
selection: {
|
|
24
|
+
fields: S & BillingModuleSelect;
|
|
25
|
+
} & HookStrictSelect<NoInfer<S>, BillingModuleSelect>;
|
|
26
|
+
} & Omit<UseMutationOptions<{
|
|
27
|
+
createBillingModule: {
|
|
28
|
+
billingModule: InferSelectResult<BillingModuleWithRelations, S>;
|
|
29
|
+
};
|
|
30
|
+
}, Error, CreateBillingModuleInput['billingModule']>, 'mutationFn'>): UseMutationResult<{
|
|
31
|
+
createBillingModule: {
|
|
32
|
+
billingModule: InferSelectResult<BillingModuleWithRelations, S>;
|
|
33
|
+
};
|
|
34
|
+
}, Error, CreateBillingModuleInput['billingModule']>;
|
|
@@ -1,26 +1,34 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Create mutation hook for BillingModule
|
|
4
4
|
* @generated by @constructive-io/graphql-codegen
|
|
5
5
|
* DO NOT EDIT - changes will be overwritten
|
|
6
6
|
*/
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.
|
|
8
|
+
exports.useCreateBillingModuleMutation = useCreateBillingModuleMutation;
|
|
9
9
|
const react_query_1 = require("@tanstack/react-query");
|
|
10
10
|
const client_1 = require("../client");
|
|
11
11
|
const selection_1 = require("../selection");
|
|
12
|
+
const query_keys_1 = require("../query-keys");
|
|
12
13
|
const mutation_keys_1 = require("../mutation-keys");
|
|
13
|
-
function
|
|
14
|
+
function useCreateBillingModuleMutation(params) {
|
|
14
15
|
const args = (0, selection_1.buildSelectionArgs)(params.selection);
|
|
15
16
|
const { selection: _selection, ...mutationOptions } = params ?? {};
|
|
16
17
|
void _selection;
|
|
18
|
+
const queryClient = (0, react_query_1.useQueryClient)();
|
|
17
19
|
return (0, react_query_1.useMutation)({
|
|
18
|
-
mutationKey: mutation_keys_1.
|
|
19
|
-
mutationFn: (
|
|
20
|
-
.
|
|
20
|
+
mutationKey: mutation_keys_1.billingModuleMutationKeys.create(),
|
|
21
|
+
mutationFn: (data) => (0, client_1.getClient)()
|
|
22
|
+
.billingModule.create({
|
|
23
|
+
data,
|
|
21
24
|
select: args.select,
|
|
22
25
|
})
|
|
23
26
|
.unwrap(),
|
|
27
|
+
onSuccess: () => {
|
|
28
|
+
queryClient.invalidateQueries({
|
|
29
|
+
queryKey: query_keys_1.billingModuleKeys.lists(),
|
|
30
|
+
});
|
|
31
|
+
},
|
|
24
32
|
...mutationOptions,
|
|
25
33
|
});
|
|
26
34
|
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Create mutation hook for NodeTypeRegistry
|
|
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 { NodeTypeRegistrySelect, NodeTypeRegistryWithRelations, CreateNodeTypeRegistryInput } from '../../orm/input-types';
|
|
8
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
+
export type { NodeTypeRegistrySelect, NodeTypeRegistryWithRelations, CreateNodeTypeRegistryInput, } from '../../orm/input-types';
|
|
10
|
+
/**
|
|
11
|
+
* Mutation hook for creating a NodeTypeRegistry
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* const { mutate, isPending } = useCreateNodeTypeRegistryMutation({
|
|
16
|
+
* selection: { fields: { id: true, name: true } },
|
|
17
|
+
* });
|
|
18
|
+
*
|
|
19
|
+
* mutate({ name: 'New item' });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare function useCreateNodeTypeRegistryMutation<S extends NodeTypeRegistrySelect>(params: {
|
|
23
|
+
selection: {
|
|
24
|
+
fields: S & NodeTypeRegistrySelect;
|
|
25
|
+
} & HookStrictSelect<NoInfer<S>, NodeTypeRegistrySelect>;
|
|
26
|
+
} & Omit<UseMutationOptions<{
|
|
27
|
+
createNodeTypeRegistry: {
|
|
28
|
+
nodeTypeRegistry: InferSelectResult<NodeTypeRegistryWithRelations, S>;
|
|
29
|
+
};
|
|
30
|
+
}, Error, CreateNodeTypeRegistryInput['nodeTypeRegistry']>, 'mutationFn'>): UseMutationResult<{
|
|
31
|
+
createNodeTypeRegistry: {
|
|
32
|
+
nodeTypeRegistry: InferSelectResult<NodeTypeRegistryWithRelations, S>;
|
|
33
|
+
};
|
|
34
|
+
}, Error, CreateNodeTypeRegistryInput['nodeTypeRegistry']>;
|
package/public/hooks/mutations/{useConfirmUploadMutation.js → useCreateNodeTypeRegistryMutation.js}
RENAMED
|
@@ -1,26 +1,34 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Create mutation hook for NodeTypeRegistry
|
|
4
4
|
* @generated by @constructive-io/graphql-codegen
|
|
5
5
|
* DO NOT EDIT - changes will be overwritten
|
|
6
6
|
*/
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.
|
|
8
|
+
exports.useCreateNodeTypeRegistryMutation = useCreateNodeTypeRegistryMutation;
|
|
9
9
|
const react_query_1 = require("@tanstack/react-query");
|
|
10
10
|
const client_1 = require("../client");
|
|
11
11
|
const selection_1 = require("../selection");
|
|
12
|
+
const query_keys_1 = require("../query-keys");
|
|
12
13
|
const mutation_keys_1 = require("../mutation-keys");
|
|
13
|
-
function
|
|
14
|
+
function useCreateNodeTypeRegistryMutation(params) {
|
|
14
15
|
const args = (0, selection_1.buildSelectionArgs)(params.selection);
|
|
15
16
|
const { selection: _selection, ...mutationOptions } = params ?? {};
|
|
16
17
|
void _selection;
|
|
18
|
+
const queryClient = (0, react_query_1.useQueryClient)();
|
|
17
19
|
return (0, react_query_1.useMutation)({
|
|
18
|
-
mutationKey: mutation_keys_1.
|
|
19
|
-
mutationFn: (
|
|
20
|
-
.
|
|
20
|
+
mutationKey: mutation_keys_1.nodeTypeRegistryMutationKeys.create(),
|
|
21
|
+
mutationFn: (data) => (0, client_1.getClient)()
|
|
22
|
+
.nodeTypeRegistry.create({
|
|
23
|
+
data,
|
|
21
24
|
select: args.select,
|
|
22
25
|
})
|
|
23
26
|
.unwrap(),
|
|
27
|
+
onSuccess: () => {
|
|
28
|
+
queryClient.invalidateQueries({
|
|
29
|
+
queryKey: query_keys_1.nodeTypeRegistryKeys.lists(),
|
|
30
|
+
});
|
|
31
|
+
},
|
|
24
32
|
...mutationOptions,
|
|
25
33
|
});
|
|
26
34
|
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown)
|
|
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 { OrgLimitAggregateSelect, OrgLimitAggregateWithRelations, CreateOrgLimitAggregateInput } from '../../orm/input-types';
|
|
8
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
+
export type { OrgLimitAggregateSelect, OrgLimitAggregateWithRelations, CreateOrgLimitAggregateInput, } from '../../orm/input-types';
|
|
10
|
+
/**
|
|
11
|
+
* Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown)
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* const { mutate, isPending } = useCreateOrgLimitAggregateMutation({
|
|
16
|
+
* selection: { fields: { id: true, name: true } },
|
|
17
|
+
* });
|
|
18
|
+
*
|
|
19
|
+
* mutate({ name: 'New item' });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare function useCreateOrgLimitAggregateMutation<S extends OrgLimitAggregateSelect>(params: {
|
|
23
|
+
selection: {
|
|
24
|
+
fields: S & OrgLimitAggregateSelect;
|
|
25
|
+
} & HookStrictSelect<NoInfer<S>, OrgLimitAggregateSelect>;
|
|
26
|
+
} & Omit<UseMutationOptions<{
|
|
27
|
+
createOrgLimitAggregate: {
|
|
28
|
+
orgLimitAggregate: InferSelectResult<OrgLimitAggregateWithRelations, S>;
|
|
29
|
+
};
|
|
30
|
+
}, Error, CreateOrgLimitAggregateInput['orgLimitAggregate']>, 'mutationFn'>): UseMutationResult<{
|
|
31
|
+
createOrgLimitAggregate: {
|
|
32
|
+
orgLimitAggregate: InferSelectResult<OrgLimitAggregateWithRelations, S>;
|
|
33
|
+
};
|
|
34
|
+
}, Error, CreateOrgLimitAggregateInput['orgLimitAggregate']>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown)
|
|
4
|
+
* @generated by @constructive-io/graphql-codegen
|
|
5
|
+
* DO NOT EDIT - changes will be overwritten
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.useCreateOrgLimitAggregateMutation = useCreateOrgLimitAggregateMutation;
|
|
9
|
+
const react_query_1 = require("@tanstack/react-query");
|
|
10
|
+
const client_1 = require("../client");
|
|
11
|
+
const selection_1 = require("../selection");
|
|
12
|
+
const query_keys_1 = require("../query-keys");
|
|
13
|
+
const mutation_keys_1 = require("../mutation-keys");
|
|
14
|
+
function useCreateOrgLimitAggregateMutation(params) {
|
|
15
|
+
const args = (0, selection_1.buildSelectionArgs)(params.selection);
|
|
16
|
+
const { selection: _selection, ...mutationOptions } = params ?? {};
|
|
17
|
+
void _selection;
|
|
18
|
+
const queryClient = (0, react_query_1.useQueryClient)();
|
|
19
|
+
return (0, react_query_1.useMutation)({
|
|
20
|
+
mutationKey: mutation_keys_1.orgLimitAggregateMutationKeys.create(),
|
|
21
|
+
mutationFn: (data) => (0, client_1.getClient)()
|
|
22
|
+
.orgLimitAggregate.create({
|
|
23
|
+
data,
|
|
24
|
+
select: args.select,
|
|
25
|
+
})
|
|
26
|
+
.unwrap(),
|
|
27
|
+
onSuccess: () => {
|
|
28
|
+
queryClient.invalidateQueries({
|
|
29
|
+
queryKey: query_keys_1.orgLimitAggregateKeys.lists(),
|
|
30
|
+
});
|
|
31
|
+
},
|
|
32
|
+
...mutationOptions,
|
|
33
|
+
});
|
|
34
|
+
}
|