@constructive-io/react 0.27.0 → 0.27.2
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/api/orm/input-types.d.ts +144 -171
- package/api/schema-types.d.ts +676 -678
- package/api/types.d.ts +9 -14
- package/auth/hooks/index.d.ts +1 -1
- package/auth/hooks/index.js +1 -1
- package/auth/hooks/invalidation.d.ts +24 -0
- package/auth/hooks/invalidation.js +64 -0
- package/auth/hooks/mutation-keys.d.ts +56 -0
- package/auth/hooks/mutation-keys.js +44 -1
- package/auth/hooks/mutations/index.d.ts +11 -0
- package/auth/hooks/mutations/index.js +11 -0
- package/auth/hooks/mutations/useCreateOrgApiKeyListMutation.d.ts +34 -0
- package/auth/hooks/mutations/useCreateOrgApiKeyListMutation.js +34 -0
- package/auth/hooks/mutations/useCreateOrgApiKeyMutation.d.ts +20 -0
- package/auth/hooks/mutations/useCreateOrgApiKeyMutation.js +26 -0
- package/auth/hooks/mutations/useCreateOrgPrincipalMutation.d.ts +20 -0
- package/auth/hooks/mutations/useCreateOrgPrincipalMutation.js +26 -0
- package/auth/hooks/mutations/useCreatePrincipalEntityMutation.d.ts +34 -0
- package/auth/hooks/mutations/useCreatePrincipalEntityMutation.js +34 -0
- package/auth/hooks/mutations/useCreatePrincipalMutation.d.ts +34 -0
- package/auth/hooks/mutations/useCreatePrincipalMutation.js +34 -0
- package/auth/hooks/mutations/useCreatePrincipalScopeOverrideMutation.d.ts +34 -0
- package/auth/hooks/mutations/useCreatePrincipalScopeOverrideMutation.js +34 -0
- package/auth/hooks/mutations/useDeleteOrgPrincipalMutation.d.ts +20 -0
- package/auth/hooks/mutations/useDeleteOrgPrincipalMutation.js +26 -0
- package/auth/hooks/mutations/useDeletePrincipalEntityMutation.d.ts +38 -0
- package/auth/hooks/mutations/useDeletePrincipalEntityMutation.js +39 -0
- package/auth/hooks/mutations/useDeletePrincipalMutation.d.ts +38 -0
- package/auth/hooks/mutations/useDeletePrincipalMutation.js +39 -0
- package/auth/hooks/mutations/useRevokeOrgApiKeyMutation.d.ts +20 -0
- package/auth/hooks/mutations/useRevokeOrgApiKeyMutation.js +26 -0
- package/auth/hooks/mutations/useUpdatePrincipalEntityMutation.d.ts +40 -0
- package/auth/hooks/mutations/useUpdatePrincipalEntityMutation.js +40 -0
- package/auth/hooks/queries/index.d.ts +9 -1
- package/auth/hooks/queries/index.js +9 -1
- package/auth/hooks/queries/useOrgApiKeyListQuery.d.ts +65 -0
- package/auth/hooks/queries/useOrgApiKeyListQuery.js +53 -0
- package/auth/hooks/queries/useOrgApiKeyListsQuery.d.ts +69 -0
- package/auth/hooks/queries/useOrgApiKeyListsQuery.js +38 -0
- package/auth/hooks/queries/usePrincipalEntitiesQuery.d.ts +69 -0
- package/auth/hooks/queries/usePrincipalEntitiesQuery.js +38 -0
- package/auth/hooks/queries/usePrincipalEntityQuery.d.ts +65 -0
- package/auth/hooks/queries/usePrincipalEntityQuery.js +53 -0
- package/auth/hooks/queries/usePrincipalQuery.d.ts +65 -0
- package/auth/hooks/queries/usePrincipalQuery.js +53 -0
- package/auth/hooks/queries/usePrincipalScopeOverrideQuery.d.ts +65 -0
- package/auth/hooks/queries/usePrincipalScopeOverrideQuery.js +53 -0
- package/auth/hooks/queries/usePrincipalScopeOverridesQuery.d.ts +69 -0
- package/auth/hooks/queries/usePrincipalScopeOverridesQuery.js +38 -0
- package/auth/hooks/queries/usePrincipalsQuery.d.ts +69 -0
- package/auth/hooks/queries/usePrincipalsQuery.js +38 -0
- package/auth/hooks/query-keys.d.ts +58 -2
- package/auth/hooks/query-keys.js +34 -2
- package/auth/orm/index.d.ts +32 -4
- package/auth/orm/index.js +8 -0
- package/auth/orm/input-types.d.ts +915 -145
- package/auth/orm/input-types.js +7 -0
- package/auth/orm/models/index.d.ts +4 -0
- package/auth/orm/models/index.js +9 -1
- package/auth/orm/models/orgApiKeyList.d.ts +36 -0
- package/auth/orm/models/orgApiKeyList.js +80 -0
- package/auth/orm/models/principal.d.ts +45 -0
- package/auth/orm/models/principal.js +93 -0
- package/auth/orm/models/principalEntity.d.ts +54 -0
- package/auth/orm/models/principalEntity.js +104 -0
- package/auth/orm/models/principalScopeOverride.d.ts +36 -0
- package/auth/orm/models/principalScopeOverride.js +80 -0
- package/auth/orm/mutation/index.d.ts +33 -1
- package/auth/orm/mutation/index.js +48 -0
- package/auth/orm/query/index.d.ts +4 -4
- package/auth/orm/query/index.js +7 -7
- package/auth/schema-types.d.ts +477 -93
- package/auth/types.d.ts +43 -0
- package/compute/hooks/index.d.ts +1 -1
- package/compute/hooks/index.js +1 -1
- package/compute/hooks/invalidation.d.ts +29 -5
- package/compute/hooks/invalidation.js +73 -9
- package/compute/hooks/mutation-keys.d.ts +60 -12
- package/compute/hooks/mutation-keys.js +41 -10
- package/compute/hooks/mutations/index.d.ts +16 -4
- package/compute/hooks/mutations/index.js +16 -4
- package/compute/hooks/mutations/useCreatePlatformNamespaceEventMutation.d.ts +34 -0
- package/compute/hooks/mutations/useCreatePlatformNamespaceEventMutation.js +34 -0
- package/compute/hooks/mutations/useCreatePlatformNamespaceMutation.d.ts +34 -0
- package/compute/hooks/mutations/useCreatePlatformNamespaceMutation.js +34 -0
- package/compute/hooks/mutations/useCreateResourceEventMutation.d.ts +34 -0
- package/compute/hooks/mutations/useCreateResourceEventMutation.js +34 -0
- package/compute/hooks/mutations/useCreateResourceMutation.d.ts +34 -0
- package/compute/hooks/mutations/useCreateResourceMutation.js +34 -0
- package/compute/hooks/mutations/useDeletePlatformNamespaceEventMutation.d.ts +40 -0
- package/compute/hooks/mutations/useDeletePlatformNamespaceEventMutation.js +40 -0
- package/compute/hooks/mutations/useDeletePlatformNamespaceMutation.d.ts +38 -0
- package/compute/hooks/mutations/useDeletePlatformNamespaceMutation.js +39 -0
- package/compute/hooks/mutations/useDeleteResourceEventMutation.d.ts +40 -0
- package/compute/hooks/mutations/useDeleteResourceEventMutation.js +40 -0
- package/compute/hooks/mutations/useDeleteResourceMutation.d.ts +38 -0
- package/compute/hooks/mutations/useDeleteResourceMutation.js +39 -0
- package/compute/hooks/mutations/useUpdatePlatformNamespaceEventMutation.d.ts +42 -0
- package/compute/hooks/mutations/useUpdatePlatformNamespaceEventMutation.js +41 -0
- package/compute/hooks/mutations/useUpdatePlatformNamespaceMutation.d.ts +40 -0
- package/compute/hooks/mutations/useUpdatePlatformNamespaceMutation.js +40 -0
- package/compute/hooks/mutations/useUpdateResourceEventMutation.d.ts +42 -0
- package/compute/hooks/mutations/useUpdateResourceEventMutation.js +41 -0
- package/compute/hooks/mutations/useUpdateResourceMutation.d.ts +40 -0
- package/compute/hooks/mutations/useUpdateResourceMutation.js +40 -0
- package/compute/hooks/queries/index.d.ts +10 -2
- package/compute/hooks/queries/index.js +10 -2
- package/compute/hooks/queries/usePlatformNamespaceEventQuery.d.ts +65 -0
- package/compute/hooks/queries/usePlatformNamespaceEventQuery.js +53 -0
- package/compute/hooks/queries/usePlatformNamespaceEventsQuery.d.ts +69 -0
- package/compute/hooks/queries/usePlatformNamespaceEventsQuery.js +38 -0
- package/compute/hooks/queries/usePlatformNamespaceQuery.d.ts +65 -0
- package/compute/hooks/queries/usePlatformNamespaceQuery.js +53 -0
- package/compute/hooks/queries/usePlatformNamespacesQuery.d.ts +69 -0
- package/compute/hooks/queries/usePlatformNamespacesQuery.js +38 -0
- package/compute/hooks/queries/useResourceEventQuery.d.ts +65 -0
- package/compute/hooks/queries/useResourceEventQuery.js +53 -0
- package/compute/hooks/queries/useResourceEventsQuery.d.ts +69 -0
- package/compute/hooks/queries/useResourceEventsQuery.js +38 -0
- package/compute/hooks/queries/useResourceQuery.d.ts +65 -0
- package/compute/hooks/queries/useResourceQuery.js +53 -0
- package/compute/hooks/queries/useResourcesQuery.d.ts +69 -0
- package/compute/hooks/queries/useResourcesQuery.js +38 -0
- package/compute/hooks/query-keys.d.ts +68 -12
- package/compute/hooks/query-keys.js +40 -8
- package/compute/orm/index.d.ts +15 -7
- package/compute/orm/index.js +10 -2
- package/compute/orm/input-types.d.ts +1159 -221
- package/compute/orm/input-types.js +4 -0
- package/compute/orm/models/index.d.ts +5 -1
- package/compute/orm/models/index.js +11 -3
- package/compute/orm/models/platformNamespace.d.ts +54 -0
- package/compute/orm/models/platformNamespace.js +104 -0
- package/compute/orm/models/platformNamespaceEvent.d.ts +56 -0
- package/compute/orm/models/platformNamespaceEvent.js +107 -0
- package/compute/orm/models/resource.d.ts +54 -0
- package/compute/orm/models/resource.js +104 -0
- package/compute/orm/models/resourceEvent.d.ts +56 -0
- package/compute/orm/models/resourceEvent.js +107 -0
- package/compute/orm/mutation/index.d.ts +9 -9
- package/compute/orm/mutation/index.js +12 -12
- package/compute/schema-types.d.ts +691 -107
- package/compute/types.d.ts +71 -12
- package/esm/api/orm/input-types.d.ts +144 -171
- package/esm/api/schema-types.d.ts +676 -678
- package/esm/api/types.d.ts +9 -14
- package/esm/auth/hooks/index.d.ts +1 -1
- package/esm/auth/hooks/index.js +1 -1
- package/esm/auth/hooks/invalidation.d.ts +24 -0
- package/esm/auth/hooks/invalidation.js +65 -1
- package/esm/auth/hooks/mutation-keys.d.ts +56 -0
- package/esm/auth/hooks/mutation-keys.js +43 -0
- package/esm/auth/hooks/mutations/index.d.ts +11 -0
- package/esm/auth/hooks/mutations/index.js +11 -0
- package/esm/auth/hooks/mutations/useCreateOrgApiKeyListMutation.d.ts +34 -0
- package/esm/auth/hooks/mutations/useCreateOrgApiKeyListMutation.js +31 -0
- package/esm/auth/hooks/mutations/useCreateOrgApiKeyMutation.d.ts +20 -0
- package/esm/auth/hooks/mutations/useCreateOrgApiKeyMutation.js +23 -0
- package/esm/auth/hooks/mutations/useCreateOrgPrincipalMutation.d.ts +20 -0
- package/esm/auth/hooks/mutations/useCreateOrgPrincipalMutation.js +23 -0
- package/esm/auth/hooks/mutations/useCreatePrincipalEntityMutation.d.ts +34 -0
- package/esm/auth/hooks/mutations/useCreatePrincipalEntityMutation.js +31 -0
- package/esm/auth/hooks/mutations/useCreatePrincipalMutation.d.ts +34 -0
- package/esm/auth/hooks/mutations/useCreatePrincipalMutation.js +31 -0
- package/esm/auth/hooks/mutations/useCreatePrincipalScopeOverrideMutation.d.ts +34 -0
- package/esm/auth/hooks/mutations/useCreatePrincipalScopeOverrideMutation.js +31 -0
- package/esm/auth/hooks/mutations/useDeleteOrgPrincipalMutation.d.ts +20 -0
- package/esm/auth/hooks/mutations/useDeleteOrgPrincipalMutation.js +23 -0
- package/esm/auth/hooks/mutations/useDeletePrincipalEntityMutation.d.ts +38 -0
- package/esm/auth/hooks/mutations/useDeletePrincipalEntityMutation.js +36 -0
- package/esm/auth/hooks/mutations/useDeletePrincipalMutation.d.ts +38 -0
- package/esm/auth/hooks/mutations/useDeletePrincipalMutation.js +36 -0
- package/esm/auth/hooks/mutations/useRevokeOrgApiKeyMutation.d.ts +20 -0
- package/esm/auth/hooks/mutations/useRevokeOrgApiKeyMutation.js +23 -0
- package/esm/auth/hooks/mutations/useUpdatePrincipalEntityMutation.d.ts +40 -0
- package/esm/auth/hooks/mutations/useUpdatePrincipalEntityMutation.js +37 -0
- package/esm/auth/hooks/queries/index.d.ts +9 -1
- package/esm/auth/hooks/queries/index.js +9 -1
- package/esm/auth/hooks/queries/useOrgApiKeyListQuery.d.ts +65 -0
- package/esm/auth/hooks/queries/useOrgApiKeyListQuery.js +47 -0
- package/esm/auth/hooks/queries/useOrgApiKeyListsQuery.d.ts +69 -0
- package/esm/auth/hooks/queries/useOrgApiKeyListsQuery.js +32 -0
- package/esm/auth/hooks/queries/usePrincipalEntitiesQuery.d.ts +69 -0
- package/esm/auth/hooks/queries/usePrincipalEntitiesQuery.js +32 -0
- package/esm/auth/hooks/queries/usePrincipalEntityQuery.d.ts +65 -0
- package/esm/auth/hooks/queries/usePrincipalEntityQuery.js +47 -0
- package/esm/auth/hooks/queries/usePrincipalQuery.d.ts +65 -0
- package/esm/auth/hooks/queries/usePrincipalQuery.js +47 -0
- package/esm/auth/hooks/queries/usePrincipalScopeOverrideQuery.d.ts +65 -0
- package/esm/auth/hooks/queries/usePrincipalScopeOverrideQuery.js +47 -0
- package/esm/auth/hooks/queries/usePrincipalScopeOverridesQuery.d.ts +69 -0
- package/esm/auth/hooks/queries/usePrincipalScopeOverridesQuery.js +32 -0
- package/esm/auth/hooks/queries/usePrincipalsQuery.d.ts +69 -0
- package/esm/auth/hooks/queries/usePrincipalsQuery.js +32 -0
- package/esm/auth/hooks/query-keys.d.ts +58 -2
- package/esm/auth/hooks/query-keys.js +33 -1
- package/esm/auth/orm/index.d.ts +32 -4
- package/esm/auth/orm/index.js +8 -0
- package/esm/auth/orm/input-types.d.ts +915 -145
- package/esm/auth/orm/input-types.js +7 -0
- package/esm/auth/orm/models/index.d.ts +4 -0
- package/esm/auth/orm/models/index.js +4 -0
- package/esm/auth/orm/models/orgApiKeyList.d.ts +36 -0
- package/esm/auth/orm/models/orgApiKeyList.js +76 -0
- package/esm/auth/orm/models/principal.d.ts +45 -0
- package/esm/auth/orm/models/principal.js +89 -0
- package/esm/auth/orm/models/principalEntity.d.ts +54 -0
- package/esm/auth/orm/models/principalEntity.js +100 -0
- package/esm/auth/orm/models/principalScopeOverride.d.ts +36 -0
- package/esm/auth/orm/models/principalScopeOverride.js +76 -0
- package/esm/auth/orm/mutation/index.d.ts +33 -1
- package/esm/auth/orm/mutation/index.js +48 -0
- package/esm/auth/orm/query/index.d.ts +4 -4
- package/esm/auth/orm/query/index.js +7 -7
- package/esm/auth/schema-types.d.ts +477 -93
- package/esm/auth/types.d.ts +43 -0
- package/esm/compute/hooks/index.d.ts +1 -1
- package/esm/compute/hooks/index.js +1 -1
- package/esm/compute/hooks/invalidation.d.ts +29 -5
- package/esm/compute/hooks/invalidation.js +74 -10
- package/esm/compute/hooks/mutation-keys.d.ts +60 -12
- package/esm/compute/hooks/mutation-keys.js +40 -9
- package/esm/compute/hooks/mutations/index.d.ts +16 -4
- package/esm/compute/hooks/mutations/index.js +16 -4
- package/esm/compute/hooks/mutations/useCreatePlatformNamespaceEventMutation.d.ts +34 -0
- package/esm/compute/hooks/mutations/useCreatePlatformNamespaceEventMutation.js +31 -0
- package/esm/compute/hooks/mutations/useCreatePlatformNamespaceMutation.d.ts +34 -0
- package/esm/compute/hooks/mutations/useCreatePlatformNamespaceMutation.js +31 -0
- package/esm/compute/hooks/mutations/useCreateResourceEventMutation.d.ts +34 -0
- package/esm/compute/hooks/mutations/useCreateResourceEventMutation.js +31 -0
- package/esm/compute/hooks/mutations/useCreateResourceMutation.d.ts +34 -0
- package/esm/compute/hooks/mutations/useCreateResourceMutation.js +31 -0
- package/esm/compute/hooks/mutations/useDeletePlatformNamespaceEventMutation.d.ts +40 -0
- package/esm/compute/hooks/mutations/useDeletePlatformNamespaceEventMutation.js +37 -0
- package/esm/compute/hooks/mutations/useDeletePlatformNamespaceMutation.d.ts +38 -0
- package/esm/compute/hooks/mutations/useDeletePlatformNamespaceMutation.js +36 -0
- package/esm/compute/hooks/mutations/useDeleteResourceEventMutation.d.ts +40 -0
- package/esm/compute/hooks/mutations/useDeleteResourceEventMutation.js +37 -0
- package/esm/compute/hooks/mutations/useDeleteResourceMutation.d.ts +38 -0
- package/esm/compute/hooks/mutations/useDeleteResourceMutation.js +36 -0
- package/esm/compute/hooks/mutations/useUpdatePlatformNamespaceEventMutation.d.ts +42 -0
- package/esm/compute/hooks/mutations/useUpdatePlatformNamespaceEventMutation.js +38 -0
- package/esm/compute/hooks/mutations/useUpdatePlatformNamespaceMutation.d.ts +40 -0
- package/esm/compute/hooks/mutations/useUpdatePlatformNamespaceMutation.js +37 -0
- package/esm/compute/hooks/mutations/useUpdateResourceEventMutation.d.ts +42 -0
- package/esm/compute/hooks/mutations/useUpdateResourceEventMutation.js +38 -0
- package/esm/compute/hooks/mutations/useUpdateResourceMutation.d.ts +40 -0
- package/esm/compute/hooks/mutations/useUpdateResourceMutation.js +37 -0
- package/esm/compute/hooks/queries/index.d.ts +10 -2
- package/esm/compute/hooks/queries/index.js +10 -2
- package/esm/compute/hooks/queries/usePlatformNamespaceEventQuery.d.ts +65 -0
- package/esm/compute/hooks/queries/usePlatformNamespaceEventQuery.js +47 -0
- package/esm/compute/hooks/queries/usePlatformNamespaceEventsQuery.d.ts +69 -0
- package/esm/compute/hooks/queries/usePlatformNamespaceEventsQuery.js +32 -0
- package/esm/compute/hooks/queries/usePlatformNamespaceQuery.d.ts +65 -0
- package/esm/compute/hooks/queries/usePlatformNamespaceQuery.js +47 -0
- package/esm/compute/hooks/queries/usePlatformNamespacesQuery.d.ts +69 -0
- package/esm/compute/hooks/queries/usePlatformNamespacesQuery.js +32 -0
- package/esm/compute/hooks/queries/useResourceEventQuery.d.ts +65 -0
- package/esm/compute/hooks/queries/useResourceEventQuery.js +47 -0
- package/esm/compute/hooks/queries/useResourceEventsQuery.d.ts +69 -0
- package/esm/compute/hooks/queries/useResourceEventsQuery.js +32 -0
- package/esm/compute/hooks/queries/useResourceQuery.d.ts +65 -0
- package/esm/compute/hooks/queries/useResourceQuery.js +47 -0
- package/esm/compute/hooks/queries/useResourcesQuery.d.ts +69 -0
- package/esm/compute/hooks/queries/useResourcesQuery.js +32 -0
- package/esm/compute/hooks/query-keys.d.ts +68 -12
- package/esm/compute/hooks/query-keys.js +39 -7
- package/esm/compute/orm/index.d.ts +15 -7
- package/esm/compute/orm/index.js +10 -2
- package/esm/compute/orm/input-types.d.ts +1159 -221
- package/esm/compute/orm/input-types.js +4 -0
- package/esm/compute/orm/models/index.d.ts +5 -1
- package/esm/compute/orm/models/index.js +5 -1
- package/esm/compute/orm/models/platformNamespace.d.ts +54 -0
- package/esm/compute/orm/models/platformNamespace.js +100 -0
- package/esm/compute/orm/models/platformNamespaceEvent.d.ts +56 -0
- package/esm/compute/orm/models/platformNamespaceEvent.js +103 -0
- package/esm/compute/orm/models/resource.d.ts +54 -0
- package/esm/compute/orm/models/resource.js +100 -0
- package/esm/compute/orm/models/resourceEvent.d.ts +56 -0
- package/esm/compute/orm/models/resourceEvent.js +103 -0
- package/esm/compute/orm/mutation/index.d.ts +9 -9
- package/esm/compute/orm/mutation/index.js +12 -12
- package/esm/compute/schema-types.d.ts +691 -107
- package/esm/compute/types.d.ts +71 -12
- package/esm/modules/hooks/index.d.ts +1 -1
- package/esm/modules/hooks/index.js +1 -1
- package/esm/modules/hooks/invalidation.d.ts +24 -12
- package/esm/modules/hooks/invalidation.js +63 -31
- package/esm/modules/hooks/mutation-keys.d.ts +48 -24
- package/esm/modules/hooks/mutation-keys.js +28 -14
- package/esm/modules/hooks/mutations/index.d.ts +12 -6
- package/esm/modules/hooks/mutations/index.js +12 -6
- package/esm/modules/hooks/mutations/useCreatePrincipalAuthModuleMutation.d.ts +34 -0
- package/esm/modules/hooks/mutations/useCreatePrincipalAuthModuleMutation.js +31 -0
- package/esm/modules/hooks/mutations/useCreateResourceModuleMutation.d.ts +34 -0
- package/esm/modules/hooks/mutations/useCreateResourceModuleMutation.js +31 -0
- package/esm/modules/hooks/mutations/useDeletePrincipalAuthModuleMutation.d.ts +38 -0
- package/esm/modules/hooks/mutations/useDeletePrincipalAuthModuleMutation.js +36 -0
- package/esm/modules/hooks/mutations/useDeleteResourceModuleMutation.d.ts +38 -0
- package/esm/modules/hooks/mutations/useDeleteResourceModuleMutation.js +36 -0
- package/esm/modules/hooks/mutations/useUpdatePrincipalAuthModuleMutation.d.ts +40 -0
- package/esm/modules/hooks/mutations/useUpdatePrincipalAuthModuleMutation.js +37 -0
- package/esm/modules/hooks/mutations/useUpdateResourceModuleMutation.d.ts +40 -0
- package/esm/modules/hooks/mutations/useUpdateResourceModuleMutation.js +37 -0
- package/esm/modules/hooks/queries/index.d.ts +8 -4
- package/esm/modules/hooks/queries/index.js +8 -4
- package/esm/modules/hooks/queries/usePrincipalAuthModuleQuery.d.ts +65 -0
- package/esm/modules/hooks/queries/usePrincipalAuthModuleQuery.js +47 -0
- package/esm/modules/hooks/queries/usePrincipalAuthModulesQuery.d.ts +69 -0
- package/esm/modules/hooks/queries/usePrincipalAuthModulesQuery.js +32 -0
- package/esm/modules/hooks/queries/useResourceModuleQuery.d.ts +65 -0
- package/esm/modules/hooks/queries/useResourceModuleQuery.js +47 -0
- package/esm/modules/hooks/queries/useResourceModulesQuery.d.ts +69 -0
- package/esm/modules/hooks/queries/useResourceModulesQuery.js +32 -0
- package/esm/modules/hooks/query-keys.d.ts +56 -28
- package/esm/modules/hooks/query-keys.js +32 -16
- package/esm/modules/orm/index.d.ts +8 -4
- package/esm/modules/orm/index.js +8 -4
- package/esm/modules/orm/input-types.d.ts +868 -411
- package/esm/modules/orm/models/index.d.ts +4 -2
- package/esm/modules/orm/models/index.js +4 -2
- package/esm/modules/orm/models/principalAuthModule.d.ts +54 -0
- package/esm/modules/orm/models/principalAuthModule.js +100 -0
- package/esm/modules/orm/models/resourceModule.d.ts +54 -0
- package/esm/modules/orm/models/resourceModule.js +100 -0
- package/esm/modules/schema-types.d.ts +451 -169
- package/esm/modules/types.d.ts +75 -33
- package/modules/hooks/index.d.ts +1 -1
- package/modules/hooks/index.js +1 -1
- package/modules/hooks/invalidation.d.ts +24 -12
- package/modules/hooks/invalidation.js +62 -30
- package/modules/hooks/mutation-keys.d.ts +48 -24
- package/modules/hooks/mutation-keys.js +30 -16
- package/modules/hooks/mutations/index.d.ts +12 -6
- package/modules/hooks/mutations/index.js +12 -6
- package/modules/hooks/mutations/useCreatePrincipalAuthModuleMutation.d.ts +34 -0
- package/modules/hooks/mutations/useCreatePrincipalAuthModuleMutation.js +34 -0
- package/modules/hooks/mutations/useCreateResourceModuleMutation.d.ts +34 -0
- package/modules/hooks/mutations/useCreateResourceModuleMutation.js +34 -0
- package/modules/hooks/mutations/useDeletePrincipalAuthModuleMutation.d.ts +38 -0
- package/modules/hooks/mutations/useDeletePrincipalAuthModuleMutation.js +39 -0
- package/modules/hooks/mutations/useDeleteResourceModuleMutation.d.ts +38 -0
- package/modules/hooks/mutations/useDeleteResourceModuleMutation.js +39 -0
- package/modules/hooks/mutations/useUpdatePrincipalAuthModuleMutation.d.ts +40 -0
- package/modules/hooks/mutations/useUpdatePrincipalAuthModuleMutation.js +40 -0
- package/modules/hooks/mutations/useUpdateResourceModuleMutation.d.ts +40 -0
- package/modules/hooks/mutations/useUpdateResourceModuleMutation.js +40 -0
- package/modules/hooks/queries/index.d.ts +8 -4
- package/modules/hooks/queries/index.js +8 -4
- package/modules/hooks/queries/usePrincipalAuthModuleQuery.d.ts +65 -0
- package/modules/hooks/queries/usePrincipalAuthModuleQuery.js +53 -0
- package/modules/hooks/queries/usePrincipalAuthModulesQuery.d.ts +69 -0
- package/modules/hooks/queries/usePrincipalAuthModulesQuery.js +38 -0
- package/modules/hooks/queries/useResourceModuleQuery.d.ts +65 -0
- package/modules/hooks/queries/useResourceModuleQuery.js +53 -0
- package/modules/hooks/queries/useResourceModulesQuery.d.ts +69 -0
- package/modules/hooks/queries/useResourceModulesQuery.js +38 -0
- package/modules/hooks/query-keys.d.ts +56 -28
- package/modules/hooks/query-keys.js +34 -18
- package/modules/orm/index.d.ts +8 -4
- package/modules/orm/index.js +8 -4
- package/modules/orm/input-types.d.ts +868 -411
- package/modules/orm/models/index.d.ts +4 -2
- package/modules/orm/models/index.js +10 -6
- package/modules/orm/models/principalAuthModule.d.ts +54 -0
- package/modules/orm/models/principalAuthModule.js +104 -0
- package/modules/orm/models/resourceModule.d.ts +54 -0
- package/modules/orm/models/resourceModule.js +104 -0
- package/modules/schema-types.d.ts +451 -169
- package/modules/types.d.ts +75 -33
- package/package.json +4 -4
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Unified K8s resource declarations — stores desired state (spec) and observed state (status) for all resource kinds within a namespace
|
|
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 { ResourceSelect, ResourceWithRelations } from '../../orm/input-types';
|
|
8
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
+
export type { ResourceSelect, ResourceWithRelations } from '../../orm/input-types';
|
|
10
|
+
/**
|
|
11
|
+
* Unified K8s resource declarations — stores desired state (spec) and observed state (status) for all resource kinds within a namespace
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* const { mutate, isPending } = useDeleteResourceMutation({
|
|
16
|
+
* selection: { fields: { id: true } },
|
|
17
|
+
* });
|
|
18
|
+
*
|
|
19
|
+
* mutate({ id: 'value-to-delete' });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare function useDeleteResourceMutation<S extends ResourceSelect>(params: {
|
|
23
|
+
selection: {
|
|
24
|
+
fields: S & ResourceSelect;
|
|
25
|
+
} & HookStrictSelect<NoInfer<S>, ResourceSelect>;
|
|
26
|
+
} & Omit<UseMutationOptions<{
|
|
27
|
+
deleteResource: {
|
|
28
|
+
resource: InferSelectResult<ResourceWithRelations, S>;
|
|
29
|
+
};
|
|
30
|
+
}, Error, {
|
|
31
|
+
id: string;
|
|
32
|
+
}>, 'mutationFn'>): UseMutationResult<{
|
|
33
|
+
deleteResource: {
|
|
34
|
+
resource: InferSelectResult<ResourceWithRelations, S>;
|
|
35
|
+
};
|
|
36
|
+
}, Error, {
|
|
37
|
+
id: string;
|
|
38
|
+
}>;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Unified K8s resource declarations — stores desired state (spec) and observed state (status) for all resource kinds within a namespace
|
|
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.useDeleteResourceMutation = useDeleteResourceMutation;
|
|
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 useDeleteResourceMutation(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.resourceMutationKeys.all,
|
|
21
|
+
mutationFn: ({ id }) => (0, client_1.getClient)()
|
|
22
|
+
.resource.delete({
|
|
23
|
+
where: {
|
|
24
|
+
id,
|
|
25
|
+
},
|
|
26
|
+
select: args.select,
|
|
27
|
+
})
|
|
28
|
+
.unwrap(),
|
|
29
|
+
onSuccess: (_, variables) => {
|
|
30
|
+
queryClient.removeQueries({
|
|
31
|
+
queryKey: query_keys_1.resourceKeys.detail(variables.id),
|
|
32
|
+
});
|
|
33
|
+
queryClient.invalidateQueries({
|
|
34
|
+
queryKey: query_keys_1.resourceKeys.lists(),
|
|
35
|
+
});
|
|
36
|
+
},
|
|
37
|
+
...mutationOptions,
|
|
38
|
+
});
|
|
39
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Namespace lifecycle events — audit log of creation, activation, deactivation, label changes
|
|
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 { PlatformNamespaceEventSelect, PlatformNamespaceEventWithRelations, PlatformNamespaceEventPatch } from '../../orm/input-types';
|
|
8
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
+
export type { PlatformNamespaceEventSelect, PlatformNamespaceEventWithRelations, PlatformNamespaceEventPatch, } from '../../orm/input-types';
|
|
10
|
+
/**
|
|
11
|
+
* Namespace lifecycle events — audit log of creation, activation, deactivation, label changes
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* const { mutate, isPending } = useUpdatePlatformNamespaceEventMutation({
|
|
16
|
+
* selection: { fields: { id: true, name: true } },
|
|
17
|
+
* });
|
|
18
|
+
*
|
|
19
|
+
* mutate({ id: 'value-here', platformNamespaceEventPatch: { name: 'Updated' } });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare function useUpdatePlatformNamespaceEventMutation<S extends PlatformNamespaceEventSelect>(params: {
|
|
23
|
+
selection: {
|
|
24
|
+
fields: S & PlatformNamespaceEventSelect;
|
|
25
|
+
} & HookStrictSelect<NoInfer<S>, PlatformNamespaceEventSelect>;
|
|
26
|
+
} & Omit<UseMutationOptions<{
|
|
27
|
+
updatePlatformNamespaceEvent: {
|
|
28
|
+
platformNamespaceEvent: InferSelectResult<PlatformNamespaceEventWithRelations, S>;
|
|
29
|
+
};
|
|
30
|
+
}, Error, {
|
|
31
|
+
id: string;
|
|
32
|
+
createdAt: string;
|
|
33
|
+
platformNamespaceEventPatch: PlatformNamespaceEventPatch;
|
|
34
|
+
}>, 'mutationFn'>): UseMutationResult<{
|
|
35
|
+
updatePlatformNamespaceEvent: {
|
|
36
|
+
platformNamespaceEvent: InferSelectResult<PlatformNamespaceEventWithRelations, S>;
|
|
37
|
+
};
|
|
38
|
+
}, Error, {
|
|
39
|
+
id: string;
|
|
40
|
+
createdAt: string;
|
|
41
|
+
platformNamespaceEventPatch: PlatformNamespaceEventPatch;
|
|
42
|
+
}>;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Namespace lifecycle events — audit log of creation, activation, deactivation, label changes
|
|
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.useUpdatePlatformNamespaceEventMutation = useUpdatePlatformNamespaceEventMutation;
|
|
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 useUpdatePlatformNamespaceEventMutation(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.platformNamespaceEventMutationKeys.all,
|
|
21
|
+
mutationFn: ({ id, createdAt, platformNamespaceEventPatch, }) => (0, client_1.getClient)()
|
|
22
|
+
.platformNamespaceEvent.update({
|
|
23
|
+
where: {
|
|
24
|
+
id,
|
|
25
|
+
createdAt,
|
|
26
|
+
},
|
|
27
|
+
data: platformNamespaceEventPatch,
|
|
28
|
+
select: args.select,
|
|
29
|
+
})
|
|
30
|
+
.unwrap(),
|
|
31
|
+
onSuccess: (_, variables) => {
|
|
32
|
+
queryClient.invalidateQueries({
|
|
33
|
+
queryKey: query_keys_1.platformNamespaceEventKeys.detail(variables.id),
|
|
34
|
+
});
|
|
35
|
+
queryClient.invalidateQueries({
|
|
36
|
+
queryKey: query_keys_1.platformNamespaceEventKeys.lists(),
|
|
37
|
+
});
|
|
38
|
+
},
|
|
39
|
+
...mutationOptions,
|
|
40
|
+
});
|
|
41
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Logical namespace containers for grouping secrets, config, functions, and other resources
|
|
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 { PlatformNamespaceSelect, PlatformNamespaceWithRelations, PlatformNamespacePatch } from '../../orm/input-types';
|
|
8
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
+
export type { PlatformNamespaceSelect, PlatformNamespaceWithRelations, PlatformNamespacePatch, } from '../../orm/input-types';
|
|
10
|
+
/**
|
|
11
|
+
* Logical namespace containers for grouping secrets, config, functions, and other resources
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* const { mutate, isPending } = useUpdatePlatformNamespaceMutation({
|
|
16
|
+
* selection: { fields: { id: true, name: true } },
|
|
17
|
+
* });
|
|
18
|
+
*
|
|
19
|
+
* mutate({ id: 'value-here', platformNamespacePatch: { name: 'Updated' } });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare function useUpdatePlatformNamespaceMutation<S extends PlatformNamespaceSelect>(params: {
|
|
23
|
+
selection: {
|
|
24
|
+
fields: S & PlatformNamespaceSelect;
|
|
25
|
+
} & HookStrictSelect<NoInfer<S>, PlatformNamespaceSelect>;
|
|
26
|
+
} & Omit<UseMutationOptions<{
|
|
27
|
+
updatePlatformNamespace: {
|
|
28
|
+
platformNamespace: InferSelectResult<PlatformNamespaceWithRelations, S>;
|
|
29
|
+
};
|
|
30
|
+
}, Error, {
|
|
31
|
+
id: string;
|
|
32
|
+
platformNamespacePatch: PlatformNamespacePatch;
|
|
33
|
+
}>, 'mutationFn'>): UseMutationResult<{
|
|
34
|
+
updatePlatformNamespace: {
|
|
35
|
+
platformNamespace: InferSelectResult<PlatformNamespaceWithRelations, S>;
|
|
36
|
+
};
|
|
37
|
+
}, Error, {
|
|
38
|
+
id: string;
|
|
39
|
+
platformNamespacePatch: PlatformNamespacePatch;
|
|
40
|
+
}>;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Logical namespace containers for grouping secrets, config, functions, and other resources
|
|
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.useUpdatePlatformNamespaceMutation = useUpdatePlatformNamespaceMutation;
|
|
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 useUpdatePlatformNamespaceMutation(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.platformNamespaceMutationKeys.all,
|
|
21
|
+
mutationFn: ({ id, platformNamespacePatch, }) => (0, client_1.getClient)()
|
|
22
|
+
.platformNamespace.update({
|
|
23
|
+
where: {
|
|
24
|
+
id,
|
|
25
|
+
},
|
|
26
|
+
data: platformNamespacePatch,
|
|
27
|
+
select: args.select,
|
|
28
|
+
})
|
|
29
|
+
.unwrap(),
|
|
30
|
+
onSuccess: (_, variables) => {
|
|
31
|
+
queryClient.invalidateQueries({
|
|
32
|
+
queryKey: query_keys_1.platformNamespaceKeys.detail(variables.id),
|
|
33
|
+
});
|
|
34
|
+
queryClient.invalidateQueries({
|
|
35
|
+
queryKey: query_keys_1.platformNamespaceKeys.lists(),
|
|
36
|
+
});
|
|
37
|
+
},
|
|
38
|
+
...mutationOptions,
|
|
39
|
+
});
|
|
40
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resource lifecycle events — audit log of provisioning, updates, and failure events
|
|
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 { ResourceEventSelect, ResourceEventWithRelations, ResourceEventPatch } from '../../orm/input-types';
|
|
8
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
+
export type { ResourceEventSelect, ResourceEventWithRelations, ResourceEventPatch, } from '../../orm/input-types';
|
|
10
|
+
/**
|
|
11
|
+
* Resource lifecycle events — audit log of provisioning, updates, and failure events
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* const { mutate, isPending } = useUpdateResourceEventMutation({
|
|
16
|
+
* selection: { fields: { id: true, name: true } },
|
|
17
|
+
* });
|
|
18
|
+
*
|
|
19
|
+
* mutate({ id: 'value-here', resourceEventPatch: { name: 'Updated' } });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare function useUpdateResourceEventMutation<S extends ResourceEventSelect>(params: {
|
|
23
|
+
selection: {
|
|
24
|
+
fields: S & ResourceEventSelect;
|
|
25
|
+
} & HookStrictSelect<NoInfer<S>, ResourceEventSelect>;
|
|
26
|
+
} & Omit<UseMutationOptions<{
|
|
27
|
+
updateResourceEvent: {
|
|
28
|
+
resourceEvent: InferSelectResult<ResourceEventWithRelations, S>;
|
|
29
|
+
};
|
|
30
|
+
}, Error, {
|
|
31
|
+
id: string;
|
|
32
|
+
createdAt: string;
|
|
33
|
+
resourceEventPatch: ResourceEventPatch;
|
|
34
|
+
}>, 'mutationFn'>): UseMutationResult<{
|
|
35
|
+
updateResourceEvent: {
|
|
36
|
+
resourceEvent: InferSelectResult<ResourceEventWithRelations, S>;
|
|
37
|
+
};
|
|
38
|
+
}, Error, {
|
|
39
|
+
id: string;
|
|
40
|
+
createdAt: string;
|
|
41
|
+
resourceEventPatch: ResourceEventPatch;
|
|
42
|
+
}>;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Resource lifecycle events — audit log of provisioning, updates, and failure events
|
|
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.useUpdateResourceEventMutation = useUpdateResourceEventMutation;
|
|
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 useUpdateResourceEventMutation(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.resourceEventMutationKeys.all,
|
|
21
|
+
mutationFn: ({ id, createdAt, resourceEventPatch, }) => (0, client_1.getClient)()
|
|
22
|
+
.resourceEvent.update({
|
|
23
|
+
where: {
|
|
24
|
+
id,
|
|
25
|
+
createdAt,
|
|
26
|
+
},
|
|
27
|
+
data: resourceEventPatch,
|
|
28
|
+
select: args.select,
|
|
29
|
+
})
|
|
30
|
+
.unwrap(),
|
|
31
|
+
onSuccess: (_, variables) => {
|
|
32
|
+
queryClient.invalidateQueries({
|
|
33
|
+
queryKey: query_keys_1.resourceEventKeys.detail(variables.id),
|
|
34
|
+
});
|
|
35
|
+
queryClient.invalidateQueries({
|
|
36
|
+
queryKey: query_keys_1.resourceEventKeys.lists(),
|
|
37
|
+
});
|
|
38
|
+
},
|
|
39
|
+
...mutationOptions,
|
|
40
|
+
});
|
|
41
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Unified K8s resource declarations — stores desired state (spec) and observed state (status) for all resource kinds within a namespace
|
|
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 { ResourceSelect, ResourceWithRelations, ResourcePatch } from '../../orm/input-types';
|
|
8
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
+
export type { ResourceSelect, ResourceWithRelations, ResourcePatch } from '../../orm/input-types';
|
|
10
|
+
/**
|
|
11
|
+
* Unified K8s resource declarations — stores desired state (spec) and observed state (status) for all resource kinds within a namespace
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* const { mutate, isPending } = useUpdateResourceMutation({
|
|
16
|
+
* selection: { fields: { id: true, name: true } },
|
|
17
|
+
* });
|
|
18
|
+
*
|
|
19
|
+
* mutate({ id: 'value-here', resourcePatch: { name: 'Updated' } });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare function useUpdateResourceMutation<S extends ResourceSelect>(params: {
|
|
23
|
+
selection: {
|
|
24
|
+
fields: S & ResourceSelect;
|
|
25
|
+
} & HookStrictSelect<NoInfer<S>, ResourceSelect>;
|
|
26
|
+
} & Omit<UseMutationOptions<{
|
|
27
|
+
updateResource: {
|
|
28
|
+
resource: InferSelectResult<ResourceWithRelations, S>;
|
|
29
|
+
};
|
|
30
|
+
}, Error, {
|
|
31
|
+
id: string;
|
|
32
|
+
resourcePatch: ResourcePatch;
|
|
33
|
+
}>, 'mutationFn'>): UseMutationResult<{
|
|
34
|
+
updateResource: {
|
|
35
|
+
resource: InferSelectResult<ResourceWithRelations, S>;
|
|
36
|
+
};
|
|
37
|
+
}, Error, {
|
|
38
|
+
id: string;
|
|
39
|
+
resourcePatch: ResourcePatch;
|
|
40
|
+
}>;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Unified K8s resource declarations — stores desired state (spec) and observed state (status) for all resource kinds within a namespace
|
|
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.useUpdateResourceMutation = useUpdateResourceMutation;
|
|
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 useUpdateResourceMutation(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.resourceMutationKeys.all,
|
|
21
|
+
mutationFn: ({ id, resourcePatch }) => (0, client_1.getClient)()
|
|
22
|
+
.resource.update({
|
|
23
|
+
where: {
|
|
24
|
+
id,
|
|
25
|
+
},
|
|
26
|
+
data: resourcePatch,
|
|
27
|
+
select: args.select,
|
|
28
|
+
})
|
|
29
|
+
.unwrap(),
|
|
30
|
+
onSuccess: (_, variables) => {
|
|
31
|
+
queryClient.invalidateQueries({
|
|
32
|
+
queryKey: query_keys_1.resourceKeys.detail(variables.id),
|
|
33
|
+
});
|
|
34
|
+
queryClient.invalidateQueries({
|
|
35
|
+
queryKey: query_keys_1.resourceKeys.lists(),
|
|
36
|
+
});
|
|
37
|
+
},
|
|
38
|
+
...mutationOptions,
|
|
39
|
+
});
|
|
40
|
+
}
|
|
@@ -8,6 +8,8 @@ export * from './useFunctionApiBindingsQuery';
|
|
|
8
8
|
export * from './useFunctionApiBindingQuery';
|
|
9
9
|
export * from './useFunctionDeploymentsQuery';
|
|
10
10
|
export * from './useFunctionDeploymentQuery';
|
|
11
|
+
export * from './useResourcesQuery';
|
|
12
|
+
export * from './useResourceQuery';
|
|
11
13
|
export * from './useFunctionGraphRefsQuery';
|
|
12
14
|
export * from './useFunctionGraphRefQuery';
|
|
13
15
|
export * from './useFunctionGraphStoresQuery';
|
|
@@ -18,6 +20,8 @@ export * from './useFunctionDeploymentEventsQuery';
|
|
|
18
20
|
export * from './useFunctionDeploymentEventQuery';
|
|
19
21
|
export * from './useOrgFunctionExecutionLogsQuery';
|
|
20
22
|
export * from './useOrgFunctionExecutionLogQuery';
|
|
23
|
+
export * from './useResourceEventsQuery';
|
|
24
|
+
export * from './useResourceEventQuery';
|
|
21
25
|
export * from './useFunctionGraphExecutionOutputsQuery';
|
|
22
26
|
export * from './useFunctionGraphExecutionOutputQuery';
|
|
23
27
|
export * from './useFunctionGraphCommitsQuery';
|
|
@@ -26,14 +30,18 @@ export * from './useSecretDefinitionsQuery';
|
|
|
26
30
|
export * from './useSecretDefinitionQuery';
|
|
27
31
|
export * from './useFunctionExecutionLogsQuery';
|
|
28
32
|
export * from './useFunctionExecutionLogQuery';
|
|
29
|
-
export * from './useFunctionGraphExecutionNodeStatesQuery';
|
|
30
|
-
export * from './useFunctionGraphExecutionNodeStateQuery';
|
|
31
33
|
export * from './useFunctionGraphsQuery';
|
|
32
34
|
export * from './useFunctionGraphQuery';
|
|
35
|
+
export * from './useFunctionGraphExecutionNodeStatesQuery';
|
|
36
|
+
export * from './useFunctionGraphExecutionNodeStateQuery';
|
|
37
|
+
export * from './usePlatformNamespacesQuery';
|
|
38
|
+
export * from './usePlatformNamespaceQuery';
|
|
33
39
|
export * from './useOrgFunctionInvocationsQuery';
|
|
34
40
|
export * from './useOrgFunctionInvocationQuery';
|
|
35
41
|
export * from './useFunctionInvocationsQuery';
|
|
36
42
|
export * from './useFunctionInvocationQuery';
|
|
43
|
+
export * from './usePlatformNamespaceEventsQuery';
|
|
44
|
+
export * from './usePlatformNamespaceEventQuery';
|
|
37
45
|
export * from './useFunctionGraphExecutionsQuery';
|
|
38
46
|
export * from './useFunctionGraphExecutionQuery';
|
|
39
47
|
export * from './useFunctionDefinitionsQuery';
|
|
@@ -24,6 +24,8 @@ __exportStar(require("./useFunctionApiBindingsQuery"), exports);
|
|
|
24
24
|
__exportStar(require("./useFunctionApiBindingQuery"), exports);
|
|
25
25
|
__exportStar(require("./useFunctionDeploymentsQuery"), exports);
|
|
26
26
|
__exportStar(require("./useFunctionDeploymentQuery"), exports);
|
|
27
|
+
__exportStar(require("./useResourcesQuery"), exports);
|
|
28
|
+
__exportStar(require("./useResourceQuery"), exports);
|
|
27
29
|
__exportStar(require("./useFunctionGraphRefsQuery"), exports);
|
|
28
30
|
__exportStar(require("./useFunctionGraphRefQuery"), exports);
|
|
29
31
|
__exportStar(require("./useFunctionGraphStoresQuery"), exports);
|
|
@@ -34,6 +36,8 @@ __exportStar(require("./useFunctionDeploymentEventsQuery"), exports);
|
|
|
34
36
|
__exportStar(require("./useFunctionDeploymentEventQuery"), exports);
|
|
35
37
|
__exportStar(require("./useOrgFunctionExecutionLogsQuery"), exports);
|
|
36
38
|
__exportStar(require("./useOrgFunctionExecutionLogQuery"), exports);
|
|
39
|
+
__exportStar(require("./useResourceEventsQuery"), exports);
|
|
40
|
+
__exportStar(require("./useResourceEventQuery"), exports);
|
|
37
41
|
__exportStar(require("./useFunctionGraphExecutionOutputsQuery"), exports);
|
|
38
42
|
__exportStar(require("./useFunctionGraphExecutionOutputQuery"), exports);
|
|
39
43
|
__exportStar(require("./useFunctionGraphCommitsQuery"), exports);
|
|
@@ -42,14 +46,18 @@ __exportStar(require("./useSecretDefinitionsQuery"), exports);
|
|
|
42
46
|
__exportStar(require("./useSecretDefinitionQuery"), exports);
|
|
43
47
|
__exportStar(require("./useFunctionExecutionLogsQuery"), exports);
|
|
44
48
|
__exportStar(require("./useFunctionExecutionLogQuery"), exports);
|
|
45
|
-
__exportStar(require("./useFunctionGraphExecutionNodeStatesQuery"), exports);
|
|
46
|
-
__exportStar(require("./useFunctionGraphExecutionNodeStateQuery"), exports);
|
|
47
49
|
__exportStar(require("./useFunctionGraphsQuery"), exports);
|
|
48
50
|
__exportStar(require("./useFunctionGraphQuery"), exports);
|
|
51
|
+
__exportStar(require("./useFunctionGraphExecutionNodeStatesQuery"), exports);
|
|
52
|
+
__exportStar(require("./useFunctionGraphExecutionNodeStateQuery"), exports);
|
|
53
|
+
__exportStar(require("./usePlatformNamespacesQuery"), exports);
|
|
54
|
+
__exportStar(require("./usePlatformNamespaceQuery"), exports);
|
|
49
55
|
__exportStar(require("./useOrgFunctionInvocationsQuery"), exports);
|
|
50
56
|
__exportStar(require("./useOrgFunctionInvocationQuery"), exports);
|
|
51
57
|
__exportStar(require("./useFunctionInvocationsQuery"), exports);
|
|
52
58
|
__exportStar(require("./useFunctionInvocationQuery"), exports);
|
|
59
|
+
__exportStar(require("./usePlatformNamespaceEventsQuery"), exports);
|
|
60
|
+
__exportStar(require("./usePlatformNamespaceEventQuery"), exports);
|
|
53
61
|
__exportStar(require("./useFunctionGraphExecutionsQuery"), exports);
|
|
54
62
|
__exportStar(require("./useFunctionGraphExecutionQuery"), exports);
|
|
55
63
|
__exportStar(require("./useFunctionDefinitionsQuery"), exports);
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Namespace lifecycle events — audit log of creation, activation, deactivation, label changes
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query';
|
|
7
|
+
import type { PlatformNamespaceEventSelect, PlatformNamespaceEventWithRelations } from '../../orm/input-types';
|
|
8
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
+
export type { PlatformNamespaceEventSelect, PlatformNamespaceEventWithRelations, } from '../../orm/input-types';
|
|
10
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
11
|
+
export declare const platformNamespaceEventQueryKey: (id: string | number) => readonly ["platformnamespaceevent", "detail", string | number];
|
|
12
|
+
/**
|
|
13
|
+
* Namespace lifecycle events — audit log of creation, activation, deactivation, label changes
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* const { data, isLoading } = usePlatformNamespaceEventQuery({
|
|
18
|
+
* id: 'some-id',
|
|
19
|
+
* selection: { fields: { id: true, name: true } },
|
|
20
|
+
* });
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
export declare function usePlatformNamespaceEventQuery<S extends PlatformNamespaceEventSelect, TData = {
|
|
24
|
+
platformNamespaceEvent: InferSelectResult<PlatformNamespaceEventWithRelations, S> | null;
|
|
25
|
+
}>(params: {
|
|
26
|
+
id: string;
|
|
27
|
+
selection: {
|
|
28
|
+
fields: S;
|
|
29
|
+
} & HookStrictSelect<NoInfer<S>, PlatformNamespaceEventSelect>;
|
|
30
|
+
} & Omit<UseQueryOptions<{
|
|
31
|
+
platformNamespaceEvent: InferSelectResult<PlatformNamespaceEventWithRelations, S> | null;
|
|
32
|
+
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
|
|
33
|
+
/**
|
|
34
|
+
* Namespace lifecycle events — audit log of creation, activation, deactivation, label changes
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```ts
|
|
38
|
+
* const data = await fetchPlatformNamespaceEventQuery({
|
|
39
|
+
* id: 'some-id',
|
|
40
|
+
* selection: { fields: { id: true } },
|
|
41
|
+
* });
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
export declare function fetchPlatformNamespaceEventQuery<S extends PlatformNamespaceEventSelect>(params: {
|
|
45
|
+
id: string;
|
|
46
|
+
selection: {
|
|
47
|
+
fields: S;
|
|
48
|
+
} & HookStrictSelect<NoInfer<S>, PlatformNamespaceEventSelect>;
|
|
49
|
+
}): Promise<{
|
|
50
|
+
platformNamespaceEvent: InferSelectResult<PlatformNamespaceEventWithRelations, S> | null;
|
|
51
|
+
}>;
|
|
52
|
+
/**
|
|
53
|
+
* Namespace lifecycle events — audit log of creation, activation, deactivation, label changes
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* ```ts
|
|
57
|
+
* await prefetchPlatformNamespaceEventQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
export declare function prefetchPlatformNamespaceEventQuery<S extends PlatformNamespaceEventSelect>(queryClient: QueryClient, params: {
|
|
61
|
+
id: string;
|
|
62
|
+
selection: {
|
|
63
|
+
fields: S;
|
|
64
|
+
} & HookStrictSelect<NoInfer<S>, PlatformNamespaceEventSelect>;
|
|
65
|
+
}): Promise<void>;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Namespace lifecycle events — audit log of creation, activation, deactivation, label changes
|
|
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.platformNamespaceEventQueryKey = void 0;
|
|
9
|
+
exports.usePlatformNamespaceEventQuery = usePlatformNamespaceEventQuery;
|
|
10
|
+
exports.fetchPlatformNamespaceEventQuery = fetchPlatformNamespaceEventQuery;
|
|
11
|
+
exports.prefetchPlatformNamespaceEventQuery = prefetchPlatformNamespaceEventQuery;
|
|
12
|
+
const react_query_1 = require("@tanstack/react-query");
|
|
13
|
+
const client_1 = require("../client");
|
|
14
|
+
const selection_1 = require("../selection");
|
|
15
|
+
const query_keys_1 = require("../query-keys");
|
|
16
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
17
|
+
exports.platformNamespaceEventQueryKey = query_keys_1.platformNamespaceEventKeys.detail;
|
|
18
|
+
function usePlatformNamespaceEventQuery(params) {
|
|
19
|
+
const args = (0, selection_1.buildSelectionArgs)(params.selection);
|
|
20
|
+
const { selection: _selection, ...queryOptions } = params ?? {};
|
|
21
|
+
void _selection;
|
|
22
|
+
return (0, react_query_1.useQuery)({
|
|
23
|
+
queryKey: query_keys_1.platformNamespaceEventKeys.detail(params.id),
|
|
24
|
+
queryFn: () => (0, client_1.getClient)()
|
|
25
|
+
.platformNamespaceEvent.findOne({
|
|
26
|
+
id: params.id,
|
|
27
|
+
select: args.select,
|
|
28
|
+
})
|
|
29
|
+
.unwrap(),
|
|
30
|
+
...queryOptions,
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
async function fetchPlatformNamespaceEventQuery(params) {
|
|
34
|
+
const args = (0, selection_1.buildSelectionArgs)(params.selection);
|
|
35
|
+
return (0, client_1.getClient)()
|
|
36
|
+
.platformNamespaceEvent.findOne({
|
|
37
|
+
id: params.id,
|
|
38
|
+
select: args.select,
|
|
39
|
+
})
|
|
40
|
+
.unwrap();
|
|
41
|
+
}
|
|
42
|
+
async function prefetchPlatformNamespaceEventQuery(queryClient, params) {
|
|
43
|
+
const args = (0, selection_1.buildSelectionArgs)(params.selection);
|
|
44
|
+
await queryClient.prefetchQuery({
|
|
45
|
+
queryKey: query_keys_1.platformNamespaceEventKeys.detail(params.id),
|
|
46
|
+
queryFn: () => (0, client_1.getClient)()
|
|
47
|
+
.platformNamespaceEvent.findOne({
|
|
48
|
+
id: params.id,
|
|
49
|
+
select: args.select,
|
|
50
|
+
})
|
|
51
|
+
.unwrap(),
|
|
52
|
+
});
|
|
53
|
+
}
|