@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,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Per-scope permission overrides for principals. No row = full access; row exists = apply restrictions.
|
|
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 { PrincipalScopeOverrideSelect, PrincipalScopeOverrideWithRelations } from '../../orm/input-types';
|
|
8
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
+
export type { PrincipalScopeOverrideSelect, PrincipalScopeOverrideWithRelations, } from '../../orm/input-types';
|
|
10
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
11
|
+
export declare const principalScopeOverrideQueryKey: (id: string | number) => readonly ["principalscopeoverride", "detail", string | number];
|
|
12
|
+
/**
|
|
13
|
+
* Per-scope permission overrides for principals. No row = full access; row exists = apply restrictions.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* const { data, isLoading } = usePrincipalScopeOverrideQuery({
|
|
18
|
+
* id: 'some-id',
|
|
19
|
+
* selection: { fields: { id: true, name: true } },
|
|
20
|
+
* });
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
export declare function usePrincipalScopeOverrideQuery<S extends PrincipalScopeOverrideSelect, TData = {
|
|
24
|
+
principalScopeOverride: InferSelectResult<PrincipalScopeOverrideWithRelations, S> | null;
|
|
25
|
+
}>(params: {
|
|
26
|
+
id: string;
|
|
27
|
+
selection: {
|
|
28
|
+
fields: S;
|
|
29
|
+
} & HookStrictSelect<NoInfer<S>, PrincipalScopeOverrideSelect>;
|
|
30
|
+
} & Omit<UseQueryOptions<{
|
|
31
|
+
principalScopeOverride: InferSelectResult<PrincipalScopeOverrideWithRelations, S> | null;
|
|
32
|
+
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
|
|
33
|
+
/**
|
|
34
|
+
* Per-scope permission overrides for principals. No row = full access; row exists = apply restrictions.
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```ts
|
|
38
|
+
* const data = await fetchPrincipalScopeOverrideQuery({
|
|
39
|
+
* id: 'some-id',
|
|
40
|
+
* selection: { fields: { id: true } },
|
|
41
|
+
* });
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
export declare function fetchPrincipalScopeOverrideQuery<S extends PrincipalScopeOverrideSelect>(params: {
|
|
45
|
+
id: string;
|
|
46
|
+
selection: {
|
|
47
|
+
fields: S;
|
|
48
|
+
} & HookStrictSelect<NoInfer<S>, PrincipalScopeOverrideSelect>;
|
|
49
|
+
}): Promise<{
|
|
50
|
+
principalScopeOverride: InferSelectResult<PrincipalScopeOverrideWithRelations, S> | null;
|
|
51
|
+
}>;
|
|
52
|
+
/**
|
|
53
|
+
* Per-scope permission overrides for principals. No row = full access; row exists = apply restrictions.
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* ```ts
|
|
57
|
+
* await prefetchPrincipalScopeOverrideQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
export declare function prefetchPrincipalScopeOverrideQuery<S extends PrincipalScopeOverrideSelect>(queryClient: QueryClient, params: {
|
|
61
|
+
id: string;
|
|
62
|
+
selection: {
|
|
63
|
+
fields: S;
|
|
64
|
+
} & HookStrictSelect<NoInfer<S>, PrincipalScopeOverrideSelect>;
|
|
65
|
+
}): Promise<void>;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Per-scope permission overrides for principals. No row = full access; row exists = apply restrictions.
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import { useQuery } from '@tanstack/react-query';
|
|
7
|
+
import { getClient } from '../client';
|
|
8
|
+
import { buildSelectionArgs } from '../selection';
|
|
9
|
+
import { principalScopeOverrideKeys } from '../query-keys';
|
|
10
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
11
|
+
export const principalScopeOverrideQueryKey = principalScopeOverrideKeys.detail;
|
|
12
|
+
export function usePrincipalScopeOverrideQuery(params) {
|
|
13
|
+
const args = buildSelectionArgs(params.selection);
|
|
14
|
+
const { selection: _selection, ...queryOptions } = params ?? {};
|
|
15
|
+
void _selection;
|
|
16
|
+
return useQuery({
|
|
17
|
+
queryKey: principalScopeOverrideKeys.detail(params.id),
|
|
18
|
+
queryFn: () => getClient()
|
|
19
|
+
.principalScopeOverride.findOne({
|
|
20
|
+
id: params.id,
|
|
21
|
+
select: args.select,
|
|
22
|
+
})
|
|
23
|
+
.unwrap(),
|
|
24
|
+
...queryOptions,
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
export async function fetchPrincipalScopeOverrideQuery(params) {
|
|
28
|
+
const args = buildSelectionArgs(params.selection);
|
|
29
|
+
return getClient()
|
|
30
|
+
.principalScopeOverride.findOne({
|
|
31
|
+
id: params.id,
|
|
32
|
+
select: args.select,
|
|
33
|
+
})
|
|
34
|
+
.unwrap();
|
|
35
|
+
}
|
|
36
|
+
export async function prefetchPrincipalScopeOverrideQuery(queryClient, params) {
|
|
37
|
+
const args = buildSelectionArgs(params.selection);
|
|
38
|
+
await queryClient.prefetchQuery({
|
|
39
|
+
queryKey: principalScopeOverrideKeys.detail(params.id),
|
|
40
|
+
queryFn: () => getClient()
|
|
41
|
+
.principalScopeOverride.findOne({
|
|
42
|
+
id: params.id,
|
|
43
|
+
select: args.select,
|
|
44
|
+
})
|
|
45
|
+
.unwrap(),
|
|
46
|
+
});
|
|
47
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Per-scope permission overrides for principals. No row = full access; row exists = apply restrictions.
|
|
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 { ListSelectionConfig } from '../selection';
|
|
8
|
+
import type { PrincipalScopeOverrideSelect, PrincipalScopeOverrideWithRelations, PrincipalScopeOverrideFilter, PrincipalScopeOverrideOrderBy } from '../../orm/input-types';
|
|
9
|
+
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
|
|
10
|
+
export type { PrincipalScopeOverrideSelect, PrincipalScopeOverrideWithRelations, PrincipalScopeOverrideFilter, PrincipalScopeOverrideOrderBy, } from '../../orm/input-types';
|
|
11
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
12
|
+
export declare const principalScopeOverridesQueryKey: (variables?: object) => readonly ["principalscopeoverride", "list", object];
|
|
13
|
+
/**
|
|
14
|
+
* Per-scope permission overrides for principals. No row = full access; row exists = apply restrictions.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```tsx
|
|
18
|
+
* const { data, isLoading } = usePrincipalScopeOverridesQuery({
|
|
19
|
+
* selection: {
|
|
20
|
+
* fields: { id: true, name: true },
|
|
21
|
+
* where: { name: { equalTo: "example" } },
|
|
22
|
+
* orderBy: ['CREATED_AT_DESC'],
|
|
23
|
+
* first: 10,
|
|
24
|
+
* },
|
|
25
|
+
* });
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
export declare function usePrincipalScopeOverridesQuery<S extends PrincipalScopeOverrideSelect, TData = {
|
|
29
|
+
principalScopeOverrides: ConnectionResult<InferSelectResult<PrincipalScopeOverrideWithRelations, S>>;
|
|
30
|
+
}>(params: {
|
|
31
|
+
selection: {
|
|
32
|
+
fields: S;
|
|
33
|
+
} & Omit<ListSelectionConfig<S, PrincipalScopeOverrideFilter, PrincipalScopeOverrideOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, PrincipalScopeOverrideSelect>;
|
|
34
|
+
} & Omit<UseQueryOptions<{
|
|
35
|
+
principalScopeOverrides: ConnectionResult<InferSelectResult<PrincipalScopeOverrideWithRelations, S>>;
|
|
36
|
+
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
|
|
37
|
+
/**
|
|
38
|
+
* Per-scope permission overrides for principals. No row = full access; row exists = apply restrictions.
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```ts
|
|
42
|
+
* const data = await fetchPrincipalScopeOverridesQuery({
|
|
43
|
+
* selection: {
|
|
44
|
+
* fields: { id: true },
|
|
45
|
+
* first: 10,
|
|
46
|
+
* },
|
|
47
|
+
* });
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
export declare function fetchPrincipalScopeOverridesQuery<S extends PrincipalScopeOverrideSelect>(params: {
|
|
51
|
+
selection: {
|
|
52
|
+
fields: S;
|
|
53
|
+
} & Omit<ListSelectionConfig<S, PrincipalScopeOverrideFilter, PrincipalScopeOverrideOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, PrincipalScopeOverrideSelect>;
|
|
54
|
+
}): Promise<{
|
|
55
|
+
principalScopeOverrides: ConnectionResult<InferSelectResult<PrincipalScopeOverrideWithRelations, S>>;
|
|
56
|
+
}>;
|
|
57
|
+
/**
|
|
58
|
+
* Per-scope permission overrides for principals. No row = full access; row exists = apply restrictions.
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* ```ts
|
|
62
|
+
* await prefetchPrincipalScopeOverridesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
|
|
63
|
+
* ```
|
|
64
|
+
*/
|
|
65
|
+
export declare function prefetchPrincipalScopeOverridesQuery<S extends PrincipalScopeOverrideSelect>(queryClient: QueryClient, params: {
|
|
66
|
+
selection: {
|
|
67
|
+
fields: S;
|
|
68
|
+
} & Omit<ListSelectionConfig<S, PrincipalScopeOverrideFilter, PrincipalScopeOverrideOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, PrincipalScopeOverrideSelect>;
|
|
69
|
+
}): Promise<void>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Per-scope permission overrides for principals. No row = full access; row exists = apply restrictions.
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import { useQuery } from '@tanstack/react-query';
|
|
7
|
+
import { getClient } from '../client';
|
|
8
|
+
import { buildListSelectionArgs } from '../selection';
|
|
9
|
+
import { principalScopeOverrideKeys } from '../query-keys';
|
|
10
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
11
|
+
export const principalScopeOverridesQueryKey = principalScopeOverrideKeys.list;
|
|
12
|
+
export function usePrincipalScopeOverridesQuery(params) {
|
|
13
|
+
const args = buildListSelectionArgs(params.selection);
|
|
14
|
+
const { selection: _selection, ...queryOptions } = params ?? {};
|
|
15
|
+
void _selection;
|
|
16
|
+
return useQuery({
|
|
17
|
+
queryKey: principalScopeOverrideKeys.list(args),
|
|
18
|
+
queryFn: () => getClient().principalScopeOverride.findMany(args).unwrap(),
|
|
19
|
+
...queryOptions,
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
export async function fetchPrincipalScopeOverridesQuery(params) {
|
|
23
|
+
const args = buildListSelectionArgs(params.selection);
|
|
24
|
+
return getClient().principalScopeOverride.findMany(args).unwrap();
|
|
25
|
+
}
|
|
26
|
+
export async function prefetchPrincipalScopeOverridesQuery(queryClient, params) {
|
|
27
|
+
const args = buildListSelectionArgs(params.selection);
|
|
28
|
+
await queryClient.prefetchQuery({
|
|
29
|
+
queryKey: principalScopeOverrideKeys.list(args),
|
|
30
|
+
queryFn: () => getClient().principalScopeOverride.findMany(args).unwrap(),
|
|
31
|
+
});
|
|
32
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Scoped sub-identities (API keys and agents) with precomputed SPRT
|
|
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 { ListSelectionConfig } from '../selection';
|
|
8
|
+
import type { PrincipalSelect, PrincipalWithRelations, PrincipalFilter, PrincipalOrderBy } from '../../orm/input-types';
|
|
9
|
+
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
|
|
10
|
+
export type { PrincipalSelect, PrincipalWithRelations, PrincipalFilter, PrincipalOrderBy, } from '../../orm/input-types';
|
|
11
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
12
|
+
export declare const principalsQueryKey: (variables?: object) => readonly ["principal", "list", object];
|
|
13
|
+
/**
|
|
14
|
+
* Scoped sub-identities (API keys and agents) with precomputed SPRT
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```tsx
|
|
18
|
+
* const { data, isLoading } = usePrincipalsQuery({
|
|
19
|
+
* selection: {
|
|
20
|
+
* fields: { id: true, name: true },
|
|
21
|
+
* where: { name: { equalTo: "example" } },
|
|
22
|
+
* orderBy: ['CREATED_AT_DESC'],
|
|
23
|
+
* first: 10,
|
|
24
|
+
* },
|
|
25
|
+
* });
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
export declare function usePrincipalsQuery<S extends PrincipalSelect, TData = {
|
|
29
|
+
principals: ConnectionResult<InferSelectResult<PrincipalWithRelations, S>>;
|
|
30
|
+
}>(params: {
|
|
31
|
+
selection: {
|
|
32
|
+
fields: S;
|
|
33
|
+
} & Omit<ListSelectionConfig<S, PrincipalFilter, PrincipalOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, PrincipalSelect>;
|
|
34
|
+
} & Omit<UseQueryOptions<{
|
|
35
|
+
principals: ConnectionResult<InferSelectResult<PrincipalWithRelations, S>>;
|
|
36
|
+
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
|
|
37
|
+
/**
|
|
38
|
+
* Scoped sub-identities (API keys and agents) with precomputed SPRT
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```ts
|
|
42
|
+
* const data = await fetchPrincipalsQuery({
|
|
43
|
+
* selection: {
|
|
44
|
+
* fields: { id: true },
|
|
45
|
+
* first: 10,
|
|
46
|
+
* },
|
|
47
|
+
* });
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
export declare function fetchPrincipalsQuery<S extends PrincipalSelect>(params: {
|
|
51
|
+
selection: {
|
|
52
|
+
fields: S;
|
|
53
|
+
} & Omit<ListSelectionConfig<S, PrincipalFilter, PrincipalOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, PrincipalSelect>;
|
|
54
|
+
}): Promise<{
|
|
55
|
+
principals: ConnectionResult<InferSelectResult<PrincipalWithRelations, S>>;
|
|
56
|
+
}>;
|
|
57
|
+
/**
|
|
58
|
+
* Scoped sub-identities (API keys and agents) with precomputed SPRT
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* ```ts
|
|
62
|
+
* await prefetchPrincipalsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
|
|
63
|
+
* ```
|
|
64
|
+
*/
|
|
65
|
+
export declare function prefetchPrincipalsQuery<S extends PrincipalSelect>(queryClient: QueryClient, params: {
|
|
66
|
+
selection: {
|
|
67
|
+
fields: S;
|
|
68
|
+
} & Omit<ListSelectionConfig<S, PrincipalFilter, PrincipalOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, PrincipalSelect>;
|
|
69
|
+
}): Promise<void>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Scoped sub-identities (API keys and agents) with precomputed SPRT
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import { useQuery } from '@tanstack/react-query';
|
|
7
|
+
import { getClient } from '../client';
|
|
8
|
+
import { buildListSelectionArgs } from '../selection';
|
|
9
|
+
import { principalKeys } from '../query-keys';
|
|
10
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
11
|
+
export const principalsQueryKey = principalKeys.list;
|
|
12
|
+
export function usePrincipalsQuery(params) {
|
|
13
|
+
const args = buildListSelectionArgs(params.selection);
|
|
14
|
+
const { selection: _selection, ...queryOptions } = params ?? {};
|
|
15
|
+
void _selection;
|
|
16
|
+
return useQuery({
|
|
17
|
+
queryKey: principalKeys.list(args),
|
|
18
|
+
queryFn: () => getClient().principal.findMany(args).unwrap(),
|
|
19
|
+
...queryOptions,
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
export async function fetchPrincipalsQuery(params) {
|
|
23
|
+
const args = buildListSelectionArgs(params.selection);
|
|
24
|
+
return getClient().principal.findMany(args).unwrap();
|
|
25
|
+
}
|
|
26
|
+
export async function prefetchPrincipalsQuery(queryClient, params) {
|
|
27
|
+
const args = buildListSelectionArgs(params.selection);
|
|
28
|
+
await queryClient.prefetchQuery({
|
|
29
|
+
queryKey: principalKeys.list(args),
|
|
30
|
+
queryFn: () => getClient().principal.findMany(args).unwrap(),
|
|
31
|
+
});
|
|
32
|
+
}
|
|
@@ -3,6 +3,27 @@
|
|
|
3
3
|
* @generated by @constructive-io/graphql-codegen
|
|
4
4
|
* DO NOT EDIT - changes will be overwritten
|
|
5
5
|
*/
|
|
6
|
+
export declare const principalKeys: {
|
|
7
|
+
/** All principal queries */ readonly all: readonly ["principal"];
|
|
8
|
+
/** List query keys */ readonly lists: () => readonly ["principal", "list"];
|
|
9
|
+
/** List query key with variables */ readonly list: (variables?: object) => readonly ["principal", "list", object];
|
|
10
|
+
/** Detail query keys */ readonly details: () => readonly ["principal", "detail"];
|
|
11
|
+
/** Detail query key for specific item */ readonly detail: (id: string | number) => readonly ["principal", "detail", string | number];
|
|
12
|
+
};
|
|
13
|
+
export declare const principalEntityKeys: {
|
|
14
|
+
/** All principalEntity queries */ readonly all: readonly ["principalentity"];
|
|
15
|
+
/** List query keys */ readonly lists: () => readonly ["principalentity", "list"];
|
|
16
|
+
/** List query key with variables */ readonly list: (variables?: object) => readonly ["principalentity", "list", object];
|
|
17
|
+
/** Detail query keys */ readonly details: () => readonly ["principalentity", "detail"];
|
|
18
|
+
/** Detail query key for specific item */ readonly detail: (id: string | number) => readonly ["principalentity", "detail", string | number];
|
|
19
|
+
};
|
|
20
|
+
export declare const principalScopeOverrideKeys: {
|
|
21
|
+
/** All principalScopeOverride queries */ readonly all: readonly ["principalscopeoverride"];
|
|
22
|
+
/** List query keys */ readonly lists: () => readonly ["principalscopeoverride", "list"];
|
|
23
|
+
/** List query key with variables */ readonly list: (variables?: object) => readonly ["principalscopeoverride", "list", object];
|
|
24
|
+
/** Detail query keys */ readonly details: () => readonly ["principalscopeoverride", "detail"];
|
|
25
|
+
/** Detail query key for specific item */ readonly detail: (id: string | number) => readonly ["principalscopeoverride", "detail", string | number];
|
|
26
|
+
};
|
|
6
27
|
export declare const emailKeys: {
|
|
7
28
|
/** All email queries */ readonly all: readonly ["email"];
|
|
8
29
|
/** List query keys */ readonly lists: () => readonly ["email", "list"];
|
|
@@ -59,6 +80,13 @@ export declare const userConnectedAccountKeys: {
|
|
|
59
80
|
/** Detail query keys */ readonly details: () => readonly ["userconnectedaccount", "detail"];
|
|
60
81
|
/** Detail query key for specific item */ readonly detail: (id: string | number) => readonly ["userconnectedaccount", "detail", string | number];
|
|
61
82
|
};
|
|
83
|
+
export declare const orgApiKeyListKeys: {
|
|
84
|
+
/** All orgApiKeyList queries */ readonly all: readonly ["orgapikeylist"];
|
|
85
|
+
/** List query keys */ readonly lists: () => readonly ["orgapikeylist", "list"];
|
|
86
|
+
/** List query key with variables */ readonly list: (variables?: object) => readonly ["orgapikeylist", "list", object];
|
|
87
|
+
/** Detail query keys */ readonly details: () => readonly ["orgapikeylist", "detail"];
|
|
88
|
+
/** Detail query key for specific item */ readonly detail: (id: string | number) => readonly ["orgapikeylist", "detail", string | number];
|
|
89
|
+
};
|
|
62
90
|
export declare const userKeys: {
|
|
63
91
|
/** All user queries */ readonly all: readonly ["user"];
|
|
64
92
|
/** List query keys */ readonly lists: () => readonly ["user", "list"];
|
|
@@ -68,8 +96,8 @@ export declare const userKeys: {
|
|
|
68
96
|
};
|
|
69
97
|
export declare const customQueryKeys: {
|
|
70
98
|
/** Query key for currentUserAgent */ readonly currentUserAgent: () => readonly ["currentUserAgent"];
|
|
71
|
-
/** Query key for currentIpAddress */ readonly currentIpAddress: () => readonly ["currentIpAddress"];
|
|
72
99
|
/** Query key for currentUserId */ readonly currentUserId: () => readonly ["currentUserId"];
|
|
100
|
+
/** Query key for currentIpAddress */ readonly currentIpAddress: () => readonly ["currentIpAddress"];
|
|
73
101
|
/** Query key for requireStepUp */ readonly requireStepUp: (variables?: object) => readonly ["requireStepUp", object];
|
|
74
102
|
/** Query key for currentUser */ readonly currentUser: () => readonly ["currentUser"];
|
|
75
103
|
};
|
|
@@ -96,6 +124,27 @@ export declare const customQueryKeys: {
|
|
|
96
124
|
* ```
|
|
97
125
|
*/
|
|
98
126
|
export declare const queryKeys: {
|
|
127
|
+
readonly principal: {
|
|
128
|
+
/** All principal queries */ readonly all: readonly ["principal"];
|
|
129
|
+
/** List query keys */ readonly lists: () => readonly ["principal", "list"];
|
|
130
|
+
/** List query key with variables */ readonly list: (variables?: object) => readonly ["principal", "list", object];
|
|
131
|
+
/** Detail query keys */ readonly details: () => readonly ["principal", "detail"];
|
|
132
|
+
/** Detail query key for specific item */ readonly detail: (id: string | number) => readonly ["principal", "detail", string | number];
|
|
133
|
+
};
|
|
134
|
+
readonly principalEntity: {
|
|
135
|
+
/** All principalEntity queries */ readonly all: readonly ["principalentity"];
|
|
136
|
+
/** List query keys */ readonly lists: () => readonly ["principalentity", "list"];
|
|
137
|
+
/** List query key with variables */ readonly list: (variables?: object) => readonly ["principalentity", "list", object];
|
|
138
|
+
/** Detail query keys */ readonly details: () => readonly ["principalentity", "detail"];
|
|
139
|
+
/** Detail query key for specific item */ readonly detail: (id: string | number) => readonly ["principalentity", "detail", string | number];
|
|
140
|
+
};
|
|
141
|
+
readonly principalScopeOverride: {
|
|
142
|
+
/** All principalScopeOverride queries */ readonly all: readonly ["principalscopeoverride"];
|
|
143
|
+
/** List query keys */ readonly lists: () => readonly ["principalscopeoverride", "list"];
|
|
144
|
+
/** List query key with variables */ readonly list: (variables?: object) => readonly ["principalscopeoverride", "list", object];
|
|
145
|
+
/** Detail query keys */ readonly details: () => readonly ["principalscopeoverride", "detail"];
|
|
146
|
+
/** Detail query key for specific item */ readonly detail: (id: string | number) => readonly ["principalscopeoverride", "detail", string | number];
|
|
147
|
+
};
|
|
99
148
|
readonly email: {
|
|
100
149
|
/** All email queries */ readonly all: readonly ["email"];
|
|
101
150
|
/** List query keys */ readonly lists: () => readonly ["email", "list"];
|
|
@@ -152,6 +201,13 @@ export declare const queryKeys: {
|
|
|
152
201
|
/** Detail query keys */ readonly details: () => readonly ["userconnectedaccount", "detail"];
|
|
153
202
|
/** Detail query key for specific item */ readonly detail: (id: string | number) => readonly ["userconnectedaccount", "detail", string | number];
|
|
154
203
|
};
|
|
204
|
+
readonly orgApiKeyList: {
|
|
205
|
+
/** All orgApiKeyList queries */ readonly all: readonly ["orgapikeylist"];
|
|
206
|
+
/** List query keys */ readonly lists: () => readonly ["orgapikeylist", "list"];
|
|
207
|
+
/** List query key with variables */ readonly list: (variables?: object) => readonly ["orgapikeylist", "list", object];
|
|
208
|
+
/** Detail query keys */ readonly details: () => readonly ["orgapikeylist", "detail"];
|
|
209
|
+
/** Detail query key for specific item */ readonly detail: (id: string | number) => readonly ["orgapikeylist", "detail", string | number];
|
|
210
|
+
};
|
|
155
211
|
readonly user: {
|
|
156
212
|
/** All user queries */ readonly all: readonly ["user"];
|
|
157
213
|
/** List query keys */ readonly lists: () => readonly ["user", "list"];
|
|
@@ -161,8 +217,8 @@ export declare const queryKeys: {
|
|
|
161
217
|
};
|
|
162
218
|
readonly custom: {
|
|
163
219
|
/** Query key for currentUserAgent */ readonly currentUserAgent: () => readonly ["currentUserAgent"];
|
|
164
|
-
/** Query key for currentIpAddress */ readonly currentIpAddress: () => readonly ["currentIpAddress"];
|
|
165
220
|
/** Query key for currentUserId */ readonly currentUserId: () => readonly ["currentUserId"];
|
|
221
|
+
/** Query key for currentIpAddress */ readonly currentIpAddress: () => readonly ["currentIpAddress"];
|
|
166
222
|
/** Query key for requireStepUp */ readonly requireStepUp: (variables?: object) => readonly ["requireStepUp", object];
|
|
167
223
|
/** Query key for currentUser */ readonly currentUser: () => readonly ["currentUser"];
|
|
168
224
|
};
|
|
@@ -16,6 +16,27 @@
|
|
|
16
16
|
// ============================================================================
|
|
17
17
|
// Entity Query Keys
|
|
18
18
|
// ============================================================================
|
|
19
|
+
export const principalKeys = {
|
|
20
|
+
/** All principal queries */ all: ['principal'],
|
|
21
|
+
/** List query keys */ lists: () => [...principalKeys.all, 'list'],
|
|
22
|
+
/** List query key with variables */ list: (variables) => [...principalKeys.lists(), variables],
|
|
23
|
+
/** Detail query keys */ details: () => [...principalKeys.all, 'detail'],
|
|
24
|
+
/** Detail query key for specific item */ detail: (id) => [...principalKeys.details(), id],
|
|
25
|
+
};
|
|
26
|
+
export const principalEntityKeys = {
|
|
27
|
+
/** All principalEntity queries */ all: ['principalentity'],
|
|
28
|
+
/** List query keys */ lists: () => [...principalEntityKeys.all, 'list'],
|
|
29
|
+
/** List query key with variables */ list: (variables) => [...principalEntityKeys.lists(), variables],
|
|
30
|
+
/** Detail query keys */ details: () => [...principalEntityKeys.all, 'detail'],
|
|
31
|
+
/** Detail query key for specific item */ detail: (id) => [...principalEntityKeys.details(), id],
|
|
32
|
+
};
|
|
33
|
+
export const principalScopeOverrideKeys = {
|
|
34
|
+
/** All principalScopeOverride queries */ all: ['principalscopeoverride'],
|
|
35
|
+
/** List query keys */ lists: () => [...principalScopeOverrideKeys.all, 'list'],
|
|
36
|
+
/** List query key with variables */ list: (variables) => [...principalScopeOverrideKeys.lists(), variables],
|
|
37
|
+
/** Detail query keys */ details: () => [...principalScopeOverrideKeys.all, 'detail'],
|
|
38
|
+
/** Detail query key for specific item */ detail: (id) => [...principalScopeOverrideKeys.details(), id],
|
|
39
|
+
};
|
|
19
40
|
export const emailKeys = {
|
|
20
41
|
/** All email queries */ all: ['email'],
|
|
21
42
|
/** List query keys */ lists: () => [...emailKeys.all, 'list'],
|
|
@@ -72,6 +93,13 @@ export const userConnectedAccountKeys = {
|
|
|
72
93
|
/** Detail query keys */ details: () => [...userConnectedAccountKeys.all, 'detail'],
|
|
73
94
|
/** Detail query key for specific item */ detail: (id) => [...userConnectedAccountKeys.details(), id],
|
|
74
95
|
};
|
|
96
|
+
export const orgApiKeyListKeys = {
|
|
97
|
+
/** All orgApiKeyList queries */ all: ['orgapikeylist'],
|
|
98
|
+
/** List query keys */ lists: () => [...orgApiKeyListKeys.all, 'list'],
|
|
99
|
+
/** List query key with variables */ list: (variables) => [...orgApiKeyListKeys.lists(), variables],
|
|
100
|
+
/** Detail query keys */ details: () => [...orgApiKeyListKeys.all, 'detail'],
|
|
101
|
+
/** Detail query key for specific item */ detail: (id) => [...orgApiKeyListKeys.details(), id],
|
|
102
|
+
};
|
|
75
103
|
export const userKeys = {
|
|
76
104
|
/** All user queries */ all: ['user'],
|
|
77
105
|
/** List query keys */ lists: () => [...userKeys.all, 'list'],
|
|
@@ -84,8 +112,8 @@ export const userKeys = {
|
|
|
84
112
|
// ============================================================================
|
|
85
113
|
export const customQueryKeys = {
|
|
86
114
|
/** Query key for currentUserAgent */ currentUserAgent: () => ['currentUserAgent'],
|
|
87
|
-
/** Query key for currentIpAddress */ currentIpAddress: () => ['currentIpAddress'],
|
|
88
115
|
/** Query key for currentUserId */ currentUserId: () => ['currentUserId'],
|
|
116
|
+
/** Query key for currentIpAddress */ currentIpAddress: () => ['currentIpAddress'],
|
|
89
117
|
/** Query key for requireStepUp */ requireStepUp: (variables) => ['requireStepUp', variables],
|
|
90
118
|
/** Query key for currentUser */ currentUser: () => ['currentUser'],
|
|
91
119
|
};
|
|
@@ -112,6 +140,9 @@ export const customQueryKeys = {
|
|
|
112
140
|
* ```
|
|
113
141
|
*/
|
|
114
142
|
export const queryKeys = {
|
|
143
|
+
principal: principalKeys,
|
|
144
|
+
principalEntity: principalEntityKeys,
|
|
145
|
+
principalScopeOverride: principalScopeOverrideKeys,
|
|
115
146
|
email: emailKeys,
|
|
116
147
|
phoneNumber: phoneNumberKeys,
|
|
117
148
|
cryptoAddress: cryptoAddressKeys,
|
|
@@ -120,6 +151,7 @@ export const queryKeys = {
|
|
|
120
151
|
identityProvider: identityProviderKeys,
|
|
121
152
|
roleType: roleTypeKeys,
|
|
122
153
|
userConnectedAccount: userConnectedAccountKeys,
|
|
154
|
+
orgApiKeyList: orgApiKeyListKeys,
|
|
123
155
|
user: userKeys,
|
|
124
156
|
custom: customQueryKeys,
|
|
125
157
|
};
|
package/esm/auth/orm/index.d.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import type { OrmClientConfig } from './client';
|
|
2
|
+
import { PrincipalModel } from './models/principal';
|
|
3
|
+
import { PrincipalEntityModel } from './models/principalEntity';
|
|
4
|
+
import { PrincipalScopeOverrideModel } from './models/principalScopeOverride';
|
|
2
5
|
import { EmailModel } from './models/email';
|
|
3
6
|
import { PhoneNumberModel } from './models/phoneNumber';
|
|
4
7
|
import { CryptoAddressModel } from './models/cryptoAddress';
|
|
@@ -7,6 +10,7 @@ import { AuditLogAuthModel } from './models/auditLogAuth';
|
|
|
7
10
|
import { IdentityProviderModel } from './models/identityProvider';
|
|
8
11
|
import { RoleTypeModel } from './models/roleType';
|
|
9
12
|
import { UserConnectedAccountModel } from './models/userConnectedAccount';
|
|
13
|
+
import { OrgApiKeyListModel } from './models/orgApiKeyList';
|
|
10
14
|
import { UserModel } from './models/user';
|
|
11
15
|
export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client';
|
|
12
16
|
export { GraphQLRequestError, FetchAdapter } from './client';
|
|
@@ -39,6 +43,9 @@ export { createMutationOperations } from './mutation';
|
|
|
39
43
|
* ```
|
|
40
44
|
*/
|
|
41
45
|
export declare function createClient(config: OrmClientConfig): {
|
|
46
|
+
principal: PrincipalModel;
|
|
47
|
+
principalEntity: PrincipalEntityModel;
|
|
48
|
+
principalScopeOverride: PrincipalScopeOverrideModel;
|
|
42
49
|
email: EmailModel;
|
|
43
50
|
phoneNumber: PhoneNumberModel;
|
|
44
51
|
cryptoAddress: CryptoAddressModel;
|
|
@@ -47,6 +54,7 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
47
54
|
identityProvider: IdentityProviderModel;
|
|
48
55
|
roleType: RoleTypeModel;
|
|
49
56
|
userConnectedAccount: UserConnectedAccountModel;
|
|
57
|
+
orgApiKeyList: OrgApiKeyListModel;
|
|
50
58
|
user: UserModel;
|
|
51
59
|
query: {
|
|
52
60
|
currentUserAgent: (options?: {
|
|
@@ -54,15 +62,15 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
54
62
|
}) => import("./query-builder").QueryBuilder<{
|
|
55
63
|
currentUserAgent: string | null;
|
|
56
64
|
}>;
|
|
57
|
-
|
|
65
|
+
currentUserId: (options?: {
|
|
58
66
|
select?: Record<string, unknown>;
|
|
59
67
|
}) => import("./query-builder").QueryBuilder<{
|
|
60
|
-
|
|
68
|
+
currentUserId: string | null;
|
|
61
69
|
}>;
|
|
62
|
-
|
|
70
|
+
currentIpAddress: (options?: {
|
|
63
71
|
select?: Record<string, unknown>;
|
|
64
72
|
}) => import("./query-builder").QueryBuilder<{
|
|
65
|
-
|
|
73
|
+
currentIpAddress: string | null;
|
|
66
74
|
}>;
|
|
67
75
|
requireStepUp: (args: import("./query").RequireStepUpVariables, options?: {
|
|
68
76
|
select?: Record<string, unknown>;
|
|
@@ -91,6 +99,11 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
91
99
|
} & import("./select-types").StrictSelect<S, import("./input-types").CheckPasswordPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
92
100
|
checkPassword: import("./select-types").InferSelectResult<import("./input-types").CheckPasswordPayload, S> | null;
|
|
93
101
|
}>;
|
|
102
|
+
deleteOrgPrincipal: <S extends import("./input-types").DeleteOrgPrincipalPayloadSelect>(args: import("./mutation").DeleteOrgPrincipalVariables, options: {
|
|
103
|
+
select: S;
|
|
104
|
+
} & import("./select-types").StrictSelect<S, import("./input-types").DeleteOrgPrincipalPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
105
|
+
deleteOrgPrincipal: import("./select-types").InferSelectResult<import("./input-types").DeleteOrgPrincipalPayload, S> | null;
|
|
106
|
+
}>;
|
|
94
107
|
disconnectAccount: <S extends import("./input-types").DisconnectAccountPayloadSelect>(args: import("./mutation").DisconnectAccountVariables, options: {
|
|
95
108
|
select: S;
|
|
96
109
|
} & import("./select-types").StrictSelect<S, import("./input-types").DisconnectAccountPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
@@ -121,6 +134,11 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
121
134
|
} & import("./select-types").StrictSelect<S, import("./input-types").ConfirmDeleteAccountPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
122
135
|
confirmDeleteAccount: import("./select-types").InferSelectResult<import("./input-types").ConfirmDeleteAccountPayload, S> | null;
|
|
123
136
|
}>;
|
|
137
|
+
revokeOrgApiKey: <S extends import("./input-types").RevokeOrgApiKeyPayloadSelect>(args: import("./mutation").RevokeOrgApiKeyVariables, options: {
|
|
138
|
+
select: S;
|
|
139
|
+
} & import("./select-types").StrictSelect<S, import("./input-types").RevokeOrgApiKeyPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
140
|
+
revokeOrgApiKey: import("./select-types").InferSelectResult<import("./input-types").RevokeOrgApiKeyPayload, S> | null;
|
|
141
|
+
}>;
|
|
124
142
|
setPassword: <S extends import("./input-types").SetPasswordPayloadSelect>(args: import("./mutation").SetPasswordVariables, options: {
|
|
125
143
|
select: S;
|
|
126
144
|
} & import("./select-types").StrictSelect<S, import("./input-types").SetPasswordPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
@@ -171,11 +189,21 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
171
189
|
} & import("./select-types").StrictSelect<S, import("./input-types").LinkIdentityPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
172
190
|
linkIdentity: import("./select-types").InferSelectResult<import("./input-types").LinkIdentityPayload, S> | null;
|
|
173
191
|
}>;
|
|
192
|
+
createOrgPrincipal: <S extends import("./input-types").CreateOrgPrincipalPayloadSelect>(args: import("./mutation").CreateOrgPrincipalVariables, options: {
|
|
193
|
+
select: S;
|
|
194
|
+
} & import("./select-types").StrictSelect<S, import("./input-types").CreateOrgPrincipalPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
195
|
+
createOrgPrincipal: import("./select-types").InferSelectResult<import("./input-types").CreateOrgPrincipalPayload, S> | null;
|
|
196
|
+
}>;
|
|
174
197
|
extendTokenExpires: <S extends import("./input-types").ExtendTokenExpiresPayloadSelect>(args: import("./mutation").ExtendTokenExpiresVariables, options: {
|
|
175
198
|
select: S;
|
|
176
199
|
} & import("./select-types").StrictSelect<S, import("./input-types").ExtendTokenExpiresPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
177
200
|
extendTokenExpires: import("./select-types").InferSelectResult<import("./input-types").ExtendTokenExpiresPayload, S> | null;
|
|
178
201
|
}>;
|
|
202
|
+
createOrgApiKey: <S extends import("./input-types").CreateOrgApiKeyPayloadSelect>(args: import("./mutation").CreateOrgApiKeyVariables, options: {
|
|
203
|
+
select: S;
|
|
204
|
+
} & import("./select-types").StrictSelect<S, import("./input-types").CreateOrgApiKeyPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
|
205
|
+
createOrgApiKey: import("./select-types").InferSelectResult<import("./input-types").CreateOrgApiKeyPayload, S> | null;
|
|
206
|
+
}>;
|
|
179
207
|
createApiKey: <S extends import("./input-types").CreateApiKeyPayloadSelect>(args: import("./mutation").CreateApiKeyVariables, options: {
|
|
180
208
|
select: S;
|
|
181
209
|
} & import("./select-types").StrictSelect<S, import("./input-types").CreateApiKeyPayloadSelect>) => import("./query-builder").QueryBuilder<{
|
package/esm/auth/orm/index.js
CHANGED
|
@@ -4,6 +4,9 @@
|
|
|
4
4
|
* DO NOT EDIT - changes will be overwritten
|
|
5
5
|
*/
|
|
6
6
|
import { OrmClient } from './client';
|
|
7
|
+
import { PrincipalModel } from './models/principal';
|
|
8
|
+
import { PrincipalEntityModel } from './models/principalEntity';
|
|
9
|
+
import { PrincipalScopeOverrideModel } from './models/principalScopeOverride';
|
|
7
10
|
import { EmailModel } from './models/email';
|
|
8
11
|
import { PhoneNumberModel } from './models/phoneNumber';
|
|
9
12
|
import { CryptoAddressModel } from './models/cryptoAddress';
|
|
@@ -12,6 +15,7 @@ import { AuditLogAuthModel } from './models/auditLogAuth';
|
|
|
12
15
|
import { IdentityProviderModel } from './models/identityProvider';
|
|
13
16
|
import { RoleTypeModel } from './models/roleType';
|
|
14
17
|
import { UserConnectedAccountModel } from './models/userConnectedAccount';
|
|
18
|
+
import { OrgApiKeyListModel } from './models/orgApiKeyList';
|
|
15
19
|
import { UserModel } from './models/user';
|
|
16
20
|
import { createQueryOperations } from './query';
|
|
17
21
|
import { createMutationOperations } from './mutation';
|
|
@@ -47,6 +51,9 @@ export { createMutationOperations } from './mutation';
|
|
|
47
51
|
export function createClient(config) {
|
|
48
52
|
const client = new OrmClient(config);
|
|
49
53
|
return {
|
|
54
|
+
principal: new PrincipalModel(client),
|
|
55
|
+
principalEntity: new PrincipalEntityModel(client),
|
|
56
|
+
principalScopeOverride: new PrincipalScopeOverrideModel(client),
|
|
50
57
|
email: new EmailModel(client),
|
|
51
58
|
phoneNumber: new PhoneNumberModel(client),
|
|
52
59
|
cryptoAddress: new CryptoAddressModel(client),
|
|
@@ -55,6 +62,7 @@ export function createClient(config) {
|
|
|
55
62
|
identityProvider: new IdentityProviderModel(client),
|
|
56
63
|
roleType: new RoleTypeModel(client),
|
|
57
64
|
userConnectedAccount: new UserConnectedAccountModel(client),
|
|
65
|
+
orgApiKeyList: new OrgApiKeyListModel(client),
|
|
58
66
|
user: new UserModel(client),
|
|
59
67
|
query: createQueryOperations(client),
|
|
60
68
|
mutation: createMutationOperations(client),
|