@constructive-io/react 0.15.2 → 0.15.3
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
|
@@ -0,0 +1,40 @@
|
|
|
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, AgentThreadPatch } from '../../orm/input-types';
|
|
8
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
+
export type { AgentThreadSelect, AgentThreadWithRelations, AgentThreadPatch, } 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 } = useUpdateAgentThreadMutation({
|
|
16
|
+
* selection: { fields: { id: true, name: true } },
|
|
17
|
+
* });
|
|
18
|
+
*
|
|
19
|
+
* mutate({ id: 'value-here', agentThreadPatch: { name: 'Updated' } });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare function useUpdateAgentThreadMutation<S extends AgentThreadSelect>(params: {
|
|
23
|
+
selection: {
|
|
24
|
+
fields: S & AgentThreadSelect;
|
|
25
|
+
} & HookStrictSelect<NoInfer<S>, AgentThreadSelect>;
|
|
26
|
+
} & Omit<UseMutationOptions<{
|
|
27
|
+
updateAgentThread: {
|
|
28
|
+
agentThread: InferSelectResult<AgentThreadWithRelations, S>;
|
|
29
|
+
};
|
|
30
|
+
}, Error, {
|
|
31
|
+
id: string;
|
|
32
|
+
agentThreadPatch: AgentThreadPatch;
|
|
33
|
+
}>, 'mutationFn'>): UseMutationResult<{
|
|
34
|
+
updateAgentThread: {
|
|
35
|
+
agentThread: InferSelectResult<AgentThreadWithRelations, S>;
|
|
36
|
+
};
|
|
37
|
+
}, Error, {
|
|
38
|
+
id: string;
|
|
39
|
+
agentThreadPatch: AgentThreadPatch;
|
|
40
|
+
}>;
|
|
@@ -0,0 +1,37 @@
|
|
|
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 { useMutation, useQueryClient } from '@tanstack/react-query';
|
|
7
|
+
import { getClient } from '../client';
|
|
8
|
+
import { buildSelectionArgs } from '../selection';
|
|
9
|
+
import { agentThreadKeys } from '../query-keys';
|
|
10
|
+
import { agentThreadMutationKeys } from '../mutation-keys';
|
|
11
|
+
export function useUpdateAgentThreadMutation(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: agentThreadMutationKeys.all,
|
|
18
|
+
mutationFn: ({ id, agentThreadPatch }) => getClient()
|
|
19
|
+
.agentThread.update({
|
|
20
|
+
where: {
|
|
21
|
+
id,
|
|
22
|
+
},
|
|
23
|
+
data: agentThreadPatch,
|
|
24
|
+
select: args.select,
|
|
25
|
+
})
|
|
26
|
+
.unwrap(),
|
|
27
|
+
onSuccess: (_, variables) => {
|
|
28
|
+
queryClient.invalidateQueries({
|
|
29
|
+
queryKey: agentThreadKeys.detail(variables.id),
|
|
30
|
+
});
|
|
31
|
+
queryClient.invalidateQueries({
|
|
32
|
+
queryKey: agentThreadKeys.lists(),
|
|
33
|
+
});
|
|
34
|
+
},
|
|
35
|
+
...mutationOptions,
|
|
36
|
+
});
|
|
37
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Update 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, BillingModulePatch } from '../../orm/input-types';
|
|
8
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
+
export type { BillingModuleSelect, BillingModuleWithRelations, BillingModulePatch, } from '../../orm/input-types';
|
|
10
|
+
/**
|
|
11
|
+
* Mutation hook for updating a BillingModule
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* const { mutate, isPending } = useUpdateBillingModuleMutation({
|
|
16
|
+
* selection: { fields: { id: true, name: true } },
|
|
17
|
+
* });
|
|
18
|
+
*
|
|
19
|
+
* mutate({ id: 'value-here', billingModulePatch: { name: 'Updated' } });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare function useUpdateBillingModuleMutation<S extends BillingModuleSelect>(params: {
|
|
23
|
+
selection: {
|
|
24
|
+
fields: S & BillingModuleSelect;
|
|
25
|
+
} & HookStrictSelect<NoInfer<S>, BillingModuleSelect>;
|
|
26
|
+
} & Omit<UseMutationOptions<{
|
|
27
|
+
updateBillingModule: {
|
|
28
|
+
billingModule: InferSelectResult<BillingModuleWithRelations, S>;
|
|
29
|
+
};
|
|
30
|
+
}, Error, {
|
|
31
|
+
id: string;
|
|
32
|
+
billingModulePatch: BillingModulePatch;
|
|
33
|
+
}>, 'mutationFn'>): UseMutationResult<{
|
|
34
|
+
updateBillingModule: {
|
|
35
|
+
billingModule: InferSelectResult<BillingModuleWithRelations, S>;
|
|
36
|
+
};
|
|
37
|
+
}, Error, {
|
|
38
|
+
id: string;
|
|
39
|
+
billingModulePatch: BillingModulePatch;
|
|
40
|
+
}>;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Update mutation hook for BillingModule
|
|
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 { billingModuleKeys } from '../query-keys';
|
|
10
|
+
import { billingModuleMutationKeys } from '../mutation-keys';
|
|
11
|
+
export function useUpdateBillingModuleMutation(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: billingModuleMutationKeys.all,
|
|
18
|
+
mutationFn: ({ id, billingModulePatch, }) => getClient()
|
|
19
|
+
.billingModule.update({
|
|
20
|
+
where: {
|
|
21
|
+
id,
|
|
22
|
+
},
|
|
23
|
+
data: billingModulePatch,
|
|
24
|
+
select: args.select,
|
|
25
|
+
})
|
|
26
|
+
.unwrap(),
|
|
27
|
+
onSuccess: (_, variables) => {
|
|
28
|
+
queryClient.invalidateQueries({
|
|
29
|
+
queryKey: billingModuleKeys.detail(variables.id),
|
|
30
|
+
});
|
|
31
|
+
queryClient.invalidateQueries({
|
|
32
|
+
queryKey: billingModuleKeys.lists(),
|
|
33
|
+
});
|
|
34
|
+
},
|
|
35
|
+
...mutationOptions,
|
|
36
|
+
});
|
|
37
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Update 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, NodeTypeRegistryPatch } from '../../orm/input-types';
|
|
8
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
+
export type { NodeTypeRegistrySelect, NodeTypeRegistryWithRelations, NodeTypeRegistryPatch, } from '../../orm/input-types';
|
|
10
|
+
/**
|
|
11
|
+
* Mutation hook for updating a NodeTypeRegistry
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* const { mutate, isPending } = useUpdateNodeTypeRegistryMutation({
|
|
16
|
+
* selection: { fields: { id: true, name: true } },
|
|
17
|
+
* });
|
|
18
|
+
*
|
|
19
|
+
* mutate({ name: 'value-here', nodeTypeRegistryPatch: { name: 'Updated' } });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare function useUpdateNodeTypeRegistryMutation<S extends NodeTypeRegistrySelect>(params: {
|
|
23
|
+
selection: {
|
|
24
|
+
fields: S & NodeTypeRegistrySelect;
|
|
25
|
+
} & HookStrictSelect<NoInfer<S>, NodeTypeRegistrySelect>;
|
|
26
|
+
} & Omit<UseMutationOptions<{
|
|
27
|
+
updateNodeTypeRegistry: {
|
|
28
|
+
nodeTypeRegistry: InferSelectResult<NodeTypeRegistryWithRelations, S>;
|
|
29
|
+
};
|
|
30
|
+
}, Error, {
|
|
31
|
+
name: string;
|
|
32
|
+
nodeTypeRegistryPatch: NodeTypeRegistryPatch;
|
|
33
|
+
}>, 'mutationFn'>): UseMutationResult<{
|
|
34
|
+
updateNodeTypeRegistry: {
|
|
35
|
+
nodeTypeRegistry: InferSelectResult<NodeTypeRegistryWithRelations, S>;
|
|
36
|
+
};
|
|
37
|
+
}, Error, {
|
|
38
|
+
name: string;
|
|
39
|
+
nodeTypeRegistryPatch: NodeTypeRegistryPatch;
|
|
40
|
+
}>;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Update mutation hook for NodeTypeRegistry
|
|
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 { nodeTypeRegistryKeys } from '../query-keys';
|
|
10
|
+
import { nodeTypeRegistryMutationKeys } from '../mutation-keys';
|
|
11
|
+
export function useUpdateNodeTypeRegistryMutation(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: nodeTypeRegistryMutationKeys.all,
|
|
18
|
+
mutationFn: ({ name, nodeTypeRegistryPatch, }) => getClient()
|
|
19
|
+
.nodeTypeRegistry.update({
|
|
20
|
+
where: {
|
|
21
|
+
name,
|
|
22
|
+
},
|
|
23
|
+
data: nodeTypeRegistryPatch,
|
|
24
|
+
select: args.select,
|
|
25
|
+
})
|
|
26
|
+
.unwrap(),
|
|
27
|
+
onSuccess: (_, variables) => {
|
|
28
|
+
queryClient.invalidateQueries({
|
|
29
|
+
queryKey: nodeTypeRegistryKeys.detail(variables.name),
|
|
30
|
+
});
|
|
31
|
+
queryClient.invalidateQueries({
|
|
32
|
+
queryKey: nodeTypeRegistryKeys.lists(),
|
|
33
|
+
});
|
|
34
|
+
},
|
|
35
|
+
...mutationOptions,
|
|
36
|
+
});
|
|
37
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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, OrgLimitAggregatePatch } from '../../orm/input-types';
|
|
8
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
+
export type { OrgLimitAggregateSelect, OrgLimitAggregateWithRelations, OrgLimitAggregatePatch, } 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 } = useUpdateOrgLimitAggregateMutation({
|
|
16
|
+
* selection: { fields: { id: true, name: true } },
|
|
17
|
+
* });
|
|
18
|
+
*
|
|
19
|
+
* mutate({ id: 'value-here', orgLimitAggregatePatch: { name: 'Updated' } });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare function useUpdateOrgLimitAggregateMutation<S extends OrgLimitAggregateSelect>(params: {
|
|
23
|
+
selection: {
|
|
24
|
+
fields: S & OrgLimitAggregateSelect;
|
|
25
|
+
} & HookStrictSelect<NoInfer<S>, OrgLimitAggregateSelect>;
|
|
26
|
+
} & Omit<UseMutationOptions<{
|
|
27
|
+
updateOrgLimitAggregate: {
|
|
28
|
+
orgLimitAggregate: InferSelectResult<OrgLimitAggregateWithRelations, S>;
|
|
29
|
+
};
|
|
30
|
+
}, Error, {
|
|
31
|
+
id: string;
|
|
32
|
+
orgLimitAggregatePatch: OrgLimitAggregatePatch;
|
|
33
|
+
}>, 'mutationFn'>): UseMutationResult<{
|
|
34
|
+
updateOrgLimitAggregate: {
|
|
35
|
+
orgLimitAggregate: InferSelectResult<OrgLimitAggregateWithRelations, S>;
|
|
36
|
+
};
|
|
37
|
+
}, Error, {
|
|
38
|
+
id: string;
|
|
39
|
+
orgLimitAggregatePatch: OrgLimitAggregatePatch;
|
|
40
|
+
}>;
|
|
@@ -0,0 +1,37 @@
|
|
|
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 { useMutation, useQueryClient } from '@tanstack/react-query';
|
|
7
|
+
import { getClient } from '../client';
|
|
8
|
+
import { buildSelectionArgs } from '../selection';
|
|
9
|
+
import { orgLimitAggregateKeys } from '../query-keys';
|
|
10
|
+
import { orgLimitAggregateMutationKeys } from '../mutation-keys';
|
|
11
|
+
export function useUpdateOrgLimitAggregateMutation(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: orgLimitAggregateMutationKeys.all,
|
|
18
|
+
mutationFn: ({ id, orgLimitAggregatePatch, }) => getClient()
|
|
19
|
+
.orgLimitAggregate.update({
|
|
20
|
+
where: {
|
|
21
|
+
id,
|
|
22
|
+
},
|
|
23
|
+
data: orgLimitAggregatePatch,
|
|
24
|
+
select: args.select,
|
|
25
|
+
})
|
|
26
|
+
.unwrap(),
|
|
27
|
+
onSuccess: (_, variables) => {
|
|
28
|
+
queryClient.invalidateQueries({
|
|
29
|
+
queryKey: orgLimitAggregateKeys.detail(variables.id),
|
|
30
|
+
});
|
|
31
|
+
queryClient.invalidateQueries({
|
|
32
|
+
queryKey: orgLimitAggregateKeys.lists(),
|
|
33
|
+
});
|
|
34
|
+
},
|
|
35
|
+
...mutationOptions,
|
|
36
|
+
});
|
|
37
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Update mutation hook for PlansModule
|
|
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 { PlansModuleSelect, PlansModuleWithRelations, PlansModulePatch } from '../../orm/input-types';
|
|
8
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
+
export type { PlansModuleSelect, PlansModuleWithRelations, PlansModulePatch, } from '../../orm/input-types';
|
|
10
|
+
/**
|
|
11
|
+
* Mutation hook for updating a PlansModule
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* const { mutate, isPending } = useUpdatePlansModuleMutation({
|
|
16
|
+
* selection: { fields: { id: true, name: true } },
|
|
17
|
+
* });
|
|
18
|
+
*
|
|
19
|
+
* mutate({ id: 'value-here', plansModulePatch: { name: 'Updated' } });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare function useUpdatePlansModuleMutation<S extends PlansModuleSelect>(params: {
|
|
23
|
+
selection: {
|
|
24
|
+
fields: S & PlansModuleSelect;
|
|
25
|
+
} & HookStrictSelect<NoInfer<S>, PlansModuleSelect>;
|
|
26
|
+
} & Omit<UseMutationOptions<{
|
|
27
|
+
updatePlansModule: {
|
|
28
|
+
plansModule: InferSelectResult<PlansModuleWithRelations, S>;
|
|
29
|
+
};
|
|
30
|
+
}, Error, {
|
|
31
|
+
id: string;
|
|
32
|
+
plansModulePatch: PlansModulePatch;
|
|
33
|
+
}>, 'mutationFn'>): UseMutationResult<{
|
|
34
|
+
updatePlansModule: {
|
|
35
|
+
plansModule: InferSelectResult<PlansModuleWithRelations, S>;
|
|
36
|
+
};
|
|
37
|
+
}, Error, {
|
|
38
|
+
id: string;
|
|
39
|
+
plansModulePatch: PlansModulePatch;
|
|
40
|
+
}>;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Update mutation hook for PlansModule
|
|
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 { plansModuleKeys } from '../query-keys';
|
|
10
|
+
import { plansModuleMutationKeys } from '../mutation-keys';
|
|
11
|
+
export function useUpdatePlansModuleMutation(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: plansModuleMutationKeys.all,
|
|
18
|
+
mutationFn: ({ id, plansModulePatch }) => getClient()
|
|
19
|
+
.plansModule.update({
|
|
20
|
+
where: {
|
|
21
|
+
id,
|
|
22
|
+
},
|
|
23
|
+
data: plansModulePatch,
|
|
24
|
+
select: args.select,
|
|
25
|
+
})
|
|
26
|
+
.unwrap(),
|
|
27
|
+
onSuccess: (_, variables) => {
|
|
28
|
+
queryClient.invalidateQueries({
|
|
29
|
+
queryKey: plansModuleKeys.detail(variables.id),
|
|
30
|
+
});
|
|
31
|
+
queryClient.invalidateQueries({
|
|
32
|
+
queryKey: plansModuleKeys.lists(),
|
|
33
|
+
});
|
|
34
|
+
},
|
|
35
|
+
...mutationOptions,
|
|
36
|
+
});
|
|
37
|
+
}
|
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
export * from './useOrgGetManagersQuery';
|
|
7
7
|
export * from './useOrgGetSubordinatesQuery';
|
|
8
8
|
export * from './useGetAllQuery';
|
|
9
|
-
export * from './useObjectsQuery';
|
|
10
|
-
export * from './useObjectQuery';
|
|
11
9
|
export * from './useAppPermissionsQuery';
|
|
12
10
|
export * from './useAppPermissionQuery';
|
|
13
11
|
export * from './useOrgPermissionsQuery';
|
|
14
12
|
export * from './useOrgPermissionQuery';
|
|
13
|
+
export * from './useObjectsQuery';
|
|
14
|
+
export * from './useObjectQuery';
|
|
15
15
|
export * from './useAppLevelRequirementsQuery';
|
|
16
16
|
export * from './useAppLevelRequirementQuery';
|
|
17
17
|
export * from './useDatabasesQuery';
|
|
@@ -172,6 +172,8 @@ export * from './useAppLimitsQuery';
|
|
|
172
172
|
export * from './useAppLimitQuery';
|
|
173
173
|
export * from './useOrgLimitsQuery';
|
|
174
174
|
export * from './useOrgLimitQuery';
|
|
175
|
+
export * from './useOrgLimitAggregatesQuery';
|
|
176
|
+
export * from './useOrgLimitAggregateQuery';
|
|
175
177
|
export * from './useAppStepsQuery';
|
|
176
178
|
export * from './useAppStepQuery';
|
|
177
179
|
export * from './useAppAchievementsQuery';
|
|
@@ -196,45 +198,59 @@ export * from './useOrgClaimedInvitesQuery';
|
|
|
196
198
|
export * from './useOrgClaimedInviteQuery';
|
|
197
199
|
export * from './useAuditLogsQuery';
|
|
198
200
|
export * from './useAuditLogQuery';
|
|
199
|
-
export * from './
|
|
200
|
-
export * from './
|
|
201
|
+
export * from './useAgentThreadsQuery';
|
|
202
|
+
export * from './useAgentThreadQuery';
|
|
203
|
+
export * from './useAgentMessagesQuery';
|
|
204
|
+
export * from './useAgentMessageQuery';
|
|
205
|
+
export * from './useAgentTasksQuery';
|
|
206
|
+
export * from './useAgentTaskQuery';
|
|
207
|
+
export * from './useRoleTypesQuery';
|
|
208
|
+
export * from './useRoleTypeQuery';
|
|
201
209
|
export * from './useIdentityProvidersQuery';
|
|
202
210
|
export * from './useRefsQuery';
|
|
203
211
|
export * from './useRefQuery';
|
|
204
212
|
export * from './useStoresQuery';
|
|
205
213
|
export * from './useStoreQuery';
|
|
206
|
-
export * from './
|
|
207
|
-
export * from './
|
|
214
|
+
export * from './useAppPermissionDefaultsQuery';
|
|
215
|
+
export * from './useAppPermissionDefaultQuery';
|
|
216
|
+
export * from './useMembershipTypesQuery';
|
|
217
|
+
export * from './useMembershipTypeQuery';
|
|
208
218
|
export * from './useMigrateFilesQuery';
|
|
209
219
|
export * from './useMigrateFileQuery';
|
|
220
|
+
export * from './useDevicesModulesQuery';
|
|
221
|
+
export * from './useDevicesModuleQuery';
|
|
222
|
+
export * from './useNodeTypeRegistriesQuery';
|
|
223
|
+
export * from './useNodeTypeRegistryQuery';
|
|
210
224
|
export * from './useAppLimitDefaultsQuery';
|
|
211
225
|
export * from './useAppLimitDefaultQuery';
|
|
212
226
|
export * from './useOrgLimitDefaultsQuery';
|
|
213
227
|
export * from './useOrgLimitDefaultQuery';
|
|
214
|
-
export * from './useDevicesModulesQuery';
|
|
215
|
-
export * from './useDevicesModuleQuery';
|
|
216
228
|
export * from './useUserConnectedAccountsQuery';
|
|
217
229
|
export * from './useUserConnectedAccountQuery';
|
|
218
|
-
export * from './useAppMembershipDefaultsQuery';
|
|
219
|
-
export * from './useAppMembershipDefaultQuery';
|
|
220
|
-
export * from './useOrgMembershipDefaultsQuery';
|
|
221
|
-
export * from './useOrgMembershipDefaultQuery';
|
|
222
230
|
export * from './useCommitsQuery';
|
|
223
231
|
export * from './useCommitQuery';
|
|
224
232
|
export * from './useRateLimitsModulesQuery';
|
|
225
233
|
export * from './useRateLimitsModuleQuery';
|
|
226
|
-
export * from './
|
|
227
|
-
export * from './
|
|
234
|
+
export * from './useAppMembershipDefaultsQuery';
|
|
235
|
+
export * from './useAppMembershipDefaultQuery';
|
|
236
|
+
export * from './useOrgMembershipDefaultsQuery';
|
|
237
|
+
export * from './useOrgMembershipDefaultQuery';
|
|
238
|
+
export * from './useAppLimitEventsQuery';
|
|
239
|
+
export * from './useOrgLimitEventsQuery';
|
|
240
|
+
export * from './usePlansModulesQuery';
|
|
241
|
+
export * from './usePlansModuleQuery';
|
|
228
242
|
export * from './useRlsModulesQuery';
|
|
229
243
|
export * from './useRlsModuleQuery';
|
|
230
244
|
export * from './useSqlActionsQuery';
|
|
231
245
|
export * from './useSqlActionQuery';
|
|
232
|
-
export * from './
|
|
233
|
-
export * from './
|
|
234
|
-
export * from './useUsersQuery';
|
|
235
|
-
export * from './useUserQuery';
|
|
246
|
+
export * from './useBillingModulesQuery';
|
|
247
|
+
export * from './useBillingModuleQuery';
|
|
236
248
|
export * from './useAstMigrationsQuery';
|
|
237
249
|
export * from './useAstMigrationQuery';
|
|
250
|
+
export * from './useUsersQuery';
|
|
251
|
+
export * from './useUserQuery';
|
|
252
|
+
export * from './useOrgMembershipSettingsQuery';
|
|
253
|
+
export * from './useOrgMembershipSettingQuery';
|
|
238
254
|
export * from './useAppMembershipsQuery';
|
|
239
255
|
export * from './useAppMembershipQuery';
|
|
240
256
|
export * from './useHierarchyModulesQuery';
|
|
@@ -254,10 +270,10 @@ export * from './useOrgPermissionsGetMaskQuery';
|
|
|
254
270
|
export * from './useResolveBlueprintTableQuery';
|
|
255
271
|
export * from './useAppPermissionsGetMaskByNamesQuery';
|
|
256
272
|
export * from './useOrgPermissionsGetMaskByNamesQuery';
|
|
273
|
+
export * from './useAppPermissionsGetByMaskQuery';
|
|
274
|
+
export * from './useOrgPermissionsGetByMaskQuery';
|
|
257
275
|
export * from './useGetAllObjectsFromRootQuery';
|
|
258
276
|
export * from './useGetPathObjectsFromRootQuery';
|
|
259
277
|
export * from './useGetObjectAtPathQuery';
|
|
260
|
-
export * from './useAppPermissionsGetByMaskQuery';
|
|
261
|
-
export * from './useOrgPermissionsGetByMaskQuery';
|
|
262
278
|
export * from './useStepsRequiredQuery';
|
|
263
279
|
export * from './useCurrentUserQuery';
|
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
export * from './useOrgGetManagersQuery';
|
|
7
7
|
export * from './useOrgGetSubordinatesQuery';
|
|
8
8
|
export * from './useGetAllQuery';
|
|
9
|
-
export * from './useObjectsQuery';
|
|
10
|
-
export * from './useObjectQuery';
|
|
11
9
|
export * from './useAppPermissionsQuery';
|
|
12
10
|
export * from './useAppPermissionQuery';
|
|
13
11
|
export * from './useOrgPermissionsQuery';
|
|
14
12
|
export * from './useOrgPermissionQuery';
|
|
13
|
+
export * from './useObjectsQuery';
|
|
14
|
+
export * from './useObjectQuery';
|
|
15
15
|
export * from './useAppLevelRequirementsQuery';
|
|
16
16
|
export * from './useAppLevelRequirementQuery';
|
|
17
17
|
export * from './useDatabasesQuery';
|
|
@@ -172,6 +172,8 @@ export * from './useAppLimitsQuery';
|
|
|
172
172
|
export * from './useAppLimitQuery';
|
|
173
173
|
export * from './useOrgLimitsQuery';
|
|
174
174
|
export * from './useOrgLimitQuery';
|
|
175
|
+
export * from './useOrgLimitAggregatesQuery';
|
|
176
|
+
export * from './useOrgLimitAggregateQuery';
|
|
175
177
|
export * from './useAppStepsQuery';
|
|
176
178
|
export * from './useAppStepQuery';
|
|
177
179
|
export * from './useAppAchievementsQuery';
|
|
@@ -196,45 +198,59 @@ export * from './useOrgClaimedInvitesQuery';
|
|
|
196
198
|
export * from './useOrgClaimedInviteQuery';
|
|
197
199
|
export * from './useAuditLogsQuery';
|
|
198
200
|
export * from './useAuditLogQuery';
|
|
199
|
-
export * from './
|
|
200
|
-
export * from './
|
|
201
|
+
export * from './useAgentThreadsQuery';
|
|
202
|
+
export * from './useAgentThreadQuery';
|
|
203
|
+
export * from './useAgentMessagesQuery';
|
|
204
|
+
export * from './useAgentMessageQuery';
|
|
205
|
+
export * from './useAgentTasksQuery';
|
|
206
|
+
export * from './useAgentTaskQuery';
|
|
207
|
+
export * from './useRoleTypesQuery';
|
|
208
|
+
export * from './useRoleTypeQuery';
|
|
201
209
|
export * from './useIdentityProvidersQuery';
|
|
202
210
|
export * from './useRefsQuery';
|
|
203
211
|
export * from './useRefQuery';
|
|
204
212
|
export * from './useStoresQuery';
|
|
205
213
|
export * from './useStoreQuery';
|
|
206
|
-
export * from './
|
|
207
|
-
export * from './
|
|
214
|
+
export * from './useAppPermissionDefaultsQuery';
|
|
215
|
+
export * from './useAppPermissionDefaultQuery';
|
|
216
|
+
export * from './useMembershipTypesQuery';
|
|
217
|
+
export * from './useMembershipTypeQuery';
|
|
208
218
|
export * from './useMigrateFilesQuery';
|
|
209
219
|
export * from './useMigrateFileQuery';
|
|
220
|
+
export * from './useDevicesModulesQuery';
|
|
221
|
+
export * from './useDevicesModuleQuery';
|
|
222
|
+
export * from './useNodeTypeRegistriesQuery';
|
|
223
|
+
export * from './useNodeTypeRegistryQuery';
|
|
210
224
|
export * from './useAppLimitDefaultsQuery';
|
|
211
225
|
export * from './useAppLimitDefaultQuery';
|
|
212
226
|
export * from './useOrgLimitDefaultsQuery';
|
|
213
227
|
export * from './useOrgLimitDefaultQuery';
|
|
214
|
-
export * from './useDevicesModulesQuery';
|
|
215
|
-
export * from './useDevicesModuleQuery';
|
|
216
228
|
export * from './useUserConnectedAccountsQuery';
|
|
217
229
|
export * from './useUserConnectedAccountQuery';
|
|
218
|
-
export * from './useAppMembershipDefaultsQuery';
|
|
219
|
-
export * from './useAppMembershipDefaultQuery';
|
|
220
|
-
export * from './useOrgMembershipDefaultsQuery';
|
|
221
|
-
export * from './useOrgMembershipDefaultQuery';
|
|
222
230
|
export * from './useCommitsQuery';
|
|
223
231
|
export * from './useCommitQuery';
|
|
224
232
|
export * from './useRateLimitsModulesQuery';
|
|
225
233
|
export * from './useRateLimitsModuleQuery';
|
|
226
|
-
export * from './
|
|
227
|
-
export * from './
|
|
234
|
+
export * from './useAppMembershipDefaultsQuery';
|
|
235
|
+
export * from './useAppMembershipDefaultQuery';
|
|
236
|
+
export * from './useOrgMembershipDefaultsQuery';
|
|
237
|
+
export * from './useOrgMembershipDefaultQuery';
|
|
238
|
+
export * from './useAppLimitEventsQuery';
|
|
239
|
+
export * from './useOrgLimitEventsQuery';
|
|
240
|
+
export * from './usePlansModulesQuery';
|
|
241
|
+
export * from './usePlansModuleQuery';
|
|
228
242
|
export * from './useRlsModulesQuery';
|
|
229
243
|
export * from './useRlsModuleQuery';
|
|
230
244
|
export * from './useSqlActionsQuery';
|
|
231
245
|
export * from './useSqlActionQuery';
|
|
232
|
-
export * from './
|
|
233
|
-
export * from './
|
|
234
|
-
export * from './useUsersQuery';
|
|
235
|
-
export * from './useUserQuery';
|
|
246
|
+
export * from './useBillingModulesQuery';
|
|
247
|
+
export * from './useBillingModuleQuery';
|
|
236
248
|
export * from './useAstMigrationsQuery';
|
|
237
249
|
export * from './useAstMigrationQuery';
|
|
250
|
+
export * from './useUsersQuery';
|
|
251
|
+
export * from './useUserQuery';
|
|
252
|
+
export * from './useOrgMembershipSettingsQuery';
|
|
253
|
+
export * from './useOrgMembershipSettingQuery';
|
|
238
254
|
export * from './useAppMembershipsQuery';
|
|
239
255
|
export * from './useAppMembershipQuery';
|
|
240
256
|
export * from './useHierarchyModulesQuery';
|
|
@@ -254,10 +270,10 @@ export * from './useOrgPermissionsGetMaskQuery';
|
|
|
254
270
|
export * from './useResolveBlueprintTableQuery';
|
|
255
271
|
export * from './useAppPermissionsGetMaskByNamesQuery';
|
|
256
272
|
export * from './useOrgPermissionsGetMaskByNamesQuery';
|
|
273
|
+
export * from './useAppPermissionsGetByMaskQuery';
|
|
274
|
+
export * from './useOrgPermissionsGetByMaskQuery';
|
|
257
275
|
export * from './useGetAllObjectsFromRootQuery';
|
|
258
276
|
export * from './useGetPathObjectsFromRootQuery';
|
|
259
277
|
export * from './useGetObjectAtPathQuery';
|
|
260
|
-
export * from './useAppPermissionsGetByMaskQuery';
|
|
261
|
-
export * from './useOrgPermissionsGetByMaskQuery';
|
|
262
278
|
export * from './useStepsRequiredQuery';
|
|
263
279
|
export * from './useCurrentUserQuery';
|