@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
|
@@ -3,6 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.connectionFieldsMap = void 0;
|
|
4
4
|
// ============ Connection Fields Map ============
|
|
5
5
|
exports.connectionFieldsMap = {
|
|
6
|
+
PlatformNamespace: {
|
|
7
|
+
functionDeploymentsByNamespaceId: 'FunctionDeployment',
|
|
8
|
+
resourcesByNamespaceId: 'Resource',
|
|
9
|
+
},
|
|
6
10
|
FunctionDefinition: {
|
|
7
11
|
functionApiBindings: 'FunctionApiBinding',
|
|
8
12
|
functionDeployments: 'FunctionDeployment',
|
|
@@ -6,18 +6,22 @@
|
|
|
6
6
|
export { GetAllRecordModel } from './getAllRecord';
|
|
7
7
|
export { FunctionApiBindingModel } from './functionApiBinding';
|
|
8
8
|
export { FunctionDeploymentModel } from './functionDeployment';
|
|
9
|
+
export { ResourceModel } from './resource';
|
|
9
10
|
export { FunctionGraphRefModel } from './functionGraphRef';
|
|
10
11
|
export { FunctionGraphStoreModel } from './functionGraphStore';
|
|
11
12
|
export { FunctionGraphObjectModel } from './functionGraphObject';
|
|
12
13
|
export { FunctionDeploymentEventModel } from './functionDeploymentEvent';
|
|
13
14
|
export { OrgFunctionExecutionLogModel } from './orgFunctionExecutionLog';
|
|
15
|
+
export { ResourceEventModel } from './resourceEvent';
|
|
14
16
|
export { FunctionGraphExecutionOutputModel } from './functionGraphExecutionOutput';
|
|
15
17
|
export { FunctionGraphCommitModel } from './functionGraphCommit';
|
|
16
18
|
export { SecretDefinitionModel } from './secretDefinition';
|
|
17
19
|
export { FunctionExecutionLogModel } from './functionExecutionLog';
|
|
18
|
-
export { FunctionGraphExecutionNodeStateModel } from './functionGraphExecutionNodeState';
|
|
19
20
|
export { FunctionGraphModel } from './functionGraph';
|
|
21
|
+
export { FunctionGraphExecutionNodeStateModel } from './functionGraphExecutionNodeState';
|
|
22
|
+
export { PlatformNamespaceModel } from './platformNamespace';
|
|
20
23
|
export { OrgFunctionInvocationModel } from './orgFunctionInvocation';
|
|
21
24
|
export { FunctionInvocationModel } from './functionInvocation';
|
|
25
|
+
export { PlatformNamespaceEventModel } from './platformNamespaceEvent';
|
|
22
26
|
export { FunctionGraphExecutionModel } from './functionGraphExecution';
|
|
23
27
|
export { FunctionDefinitionModel } from './functionDefinition';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FunctionDefinitionModel = exports.FunctionGraphExecutionModel = exports.FunctionInvocationModel = exports.OrgFunctionInvocationModel = exports.
|
|
3
|
+
exports.FunctionDefinitionModel = exports.FunctionGraphExecutionModel = exports.PlatformNamespaceEventModel = exports.FunctionInvocationModel = exports.OrgFunctionInvocationModel = exports.PlatformNamespaceModel = exports.FunctionGraphExecutionNodeStateModel = exports.FunctionGraphModel = exports.FunctionExecutionLogModel = exports.SecretDefinitionModel = exports.FunctionGraphCommitModel = exports.FunctionGraphExecutionOutputModel = exports.ResourceEventModel = exports.OrgFunctionExecutionLogModel = exports.FunctionDeploymentEventModel = exports.FunctionGraphObjectModel = exports.FunctionGraphStoreModel = exports.FunctionGraphRefModel = exports.ResourceModel = exports.FunctionDeploymentModel = exports.FunctionApiBindingModel = exports.GetAllRecordModel = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* Models barrel export
|
|
6
6
|
* @generated by @constructive-io/graphql-codegen
|
|
@@ -12,6 +12,8 @@ var functionApiBinding_1 = require("./functionApiBinding");
|
|
|
12
12
|
Object.defineProperty(exports, "FunctionApiBindingModel", { enumerable: true, get: function () { return functionApiBinding_1.FunctionApiBindingModel; } });
|
|
13
13
|
var functionDeployment_1 = require("./functionDeployment");
|
|
14
14
|
Object.defineProperty(exports, "FunctionDeploymentModel", { enumerable: true, get: function () { return functionDeployment_1.FunctionDeploymentModel; } });
|
|
15
|
+
var resource_1 = require("./resource");
|
|
16
|
+
Object.defineProperty(exports, "ResourceModel", { enumerable: true, get: function () { return resource_1.ResourceModel; } });
|
|
15
17
|
var functionGraphRef_1 = require("./functionGraphRef");
|
|
16
18
|
Object.defineProperty(exports, "FunctionGraphRefModel", { enumerable: true, get: function () { return functionGraphRef_1.FunctionGraphRefModel; } });
|
|
17
19
|
var functionGraphStore_1 = require("./functionGraphStore");
|
|
@@ -22,6 +24,8 @@ var functionDeploymentEvent_1 = require("./functionDeploymentEvent");
|
|
|
22
24
|
Object.defineProperty(exports, "FunctionDeploymentEventModel", { enumerable: true, get: function () { return functionDeploymentEvent_1.FunctionDeploymentEventModel; } });
|
|
23
25
|
var orgFunctionExecutionLog_1 = require("./orgFunctionExecutionLog");
|
|
24
26
|
Object.defineProperty(exports, "OrgFunctionExecutionLogModel", { enumerable: true, get: function () { return orgFunctionExecutionLog_1.OrgFunctionExecutionLogModel; } });
|
|
27
|
+
var resourceEvent_1 = require("./resourceEvent");
|
|
28
|
+
Object.defineProperty(exports, "ResourceEventModel", { enumerable: true, get: function () { return resourceEvent_1.ResourceEventModel; } });
|
|
25
29
|
var functionGraphExecutionOutput_1 = require("./functionGraphExecutionOutput");
|
|
26
30
|
Object.defineProperty(exports, "FunctionGraphExecutionOutputModel", { enumerable: true, get: function () { return functionGraphExecutionOutput_1.FunctionGraphExecutionOutputModel; } });
|
|
27
31
|
var functionGraphCommit_1 = require("./functionGraphCommit");
|
|
@@ -30,14 +34,18 @@ var secretDefinition_1 = require("./secretDefinition");
|
|
|
30
34
|
Object.defineProperty(exports, "SecretDefinitionModel", { enumerable: true, get: function () { return secretDefinition_1.SecretDefinitionModel; } });
|
|
31
35
|
var functionExecutionLog_1 = require("./functionExecutionLog");
|
|
32
36
|
Object.defineProperty(exports, "FunctionExecutionLogModel", { enumerable: true, get: function () { return functionExecutionLog_1.FunctionExecutionLogModel; } });
|
|
33
|
-
var functionGraphExecutionNodeState_1 = require("./functionGraphExecutionNodeState");
|
|
34
|
-
Object.defineProperty(exports, "FunctionGraphExecutionNodeStateModel", { enumerable: true, get: function () { return functionGraphExecutionNodeState_1.FunctionGraphExecutionNodeStateModel; } });
|
|
35
37
|
var functionGraph_1 = require("./functionGraph");
|
|
36
38
|
Object.defineProperty(exports, "FunctionGraphModel", { enumerable: true, get: function () { return functionGraph_1.FunctionGraphModel; } });
|
|
39
|
+
var functionGraphExecutionNodeState_1 = require("./functionGraphExecutionNodeState");
|
|
40
|
+
Object.defineProperty(exports, "FunctionGraphExecutionNodeStateModel", { enumerable: true, get: function () { return functionGraphExecutionNodeState_1.FunctionGraphExecutionNodeStateModel; } });
|
|
41
|
+
var platformNamespace_1 = require("./platformNamespace");
|
|
42
|
+
Object.defineProperty(exports, "PlatformNamespaceModel", { enumerable: true, get: function () { return platformNamespace_1.PlatformNamespaceModel; } });
|
|
37
43
|
var orgFunctionInvocation_1 = require("./orgFunctionInvocation");
|
|
38
44
|
Object.defineProperty(exports, "OrgFunctionInvocationModel", { enumerable: true, get: function () { return orgFunctionInvocation_1.OrgFunctionInvocationModel; } });
|
|
39
45
|
var functionInvocation_1 = require("./functionInvocation");
|
|
40
46
|
Object.defineProperty(exports, "FunctionInvocationModel", { enumerable: true, get: function () { return functionInvocation_1.FunctionInvocationModel; } });
|
|
47
|
+
var platformNamespaceEvent_1 = require("./platformNamespaceEvent");
|
|
48
|
+
Object.defineProperty(exports, "PlatformNamespaceEventModel", { enumerable: true, get: function () { return platformNamespaceEvent_1.PlatformNamespaceEventModel; } });
|
|
41
49
|
var functionGraphExecution_1 = require("./functionGraphExecution");
|
|
42
50
|
Object.defineProperty(exports, "FunctionGraphExecutionModel", { enumerable: true, get: function () { return functionGraphExecution_1.FunctionGraphExecutionModel; } });
|
|
43
51
|
var functionDefinition_1 = require("./functionDefinition");
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PlatformNamespace model for ORM client
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import { OrmClient } from '../client';
|
|
7
|
+
import { QueryBuilder } from '../query-builder';
|
|
8
|
+
import type { ConnectionResult, FindManyArgs, FindFirstArgs, CreateArgs, UpdateArgs, DeleteArgs, InferSelectResult, StrictSelect } from '../select-types';
|
|
9
|
+
import type { PlatformNamespaceWithRelations, PlatformNamespaceSelect, PlatformNamespaceFilter, PlatformNamespaceOrderBy, CreatePlatformNamespaceInput, PlatformNamespacePatch } from '../input-types';
|
|
10
|
+
export declare class PlatformNamespaceModel {
|
|
11
|
+
private client;
|
|
12
|
+
constructor(client: OrmClient);
|
|
13
|
+
findMany<S extends PlatformNamespaceSelect>(args: FindManyArgs<S, PlatformNamespaceFilter, PlatformNamespaceOrderBy> & {
|
|
14
|
+
select: S;
|
|
15
|
+
} & StrictSelect<S, PlatformNamespaceSelect>): QueryBuilder<{
|
|
16
|
+
platformNamespaces: ConnectionResult<InferSelectResult<PlatformNamespaceWithRelations, S>>;
|
|
17
|
+
}>;
|
|
18
|
+
findFirst<S extends PlatformNamespaceSelect>(args: FindFirstArgs<S, PlatformNamespaceFilter, PlatformNamespaceOrderBy> & {
|
|
19
|
+
select: S;
|
|
20
|
+
} & StrictSelect<S, PlatformNamespaceSelect>): QueryBuilder<{
|
|
21
|
+
platformNamespace: InferSelectResult<PlatformNamespaceWithRelations, S> | null;
|
|
22
|
+
}>;
|
|
23
|
+
findOne<S extends PlatformNamespaceSelect>(args: {
|
|
24
|
+
id: string;
|
|
25
|
+
select: S;
|
|
26
|
+
} & StrictSelect<S, PlatformNamespaceSelect>): QueryBuilder<{
|
|
27
|
+
platformNamespace: InferSelectResult<PlatformNamespaceWithRelations, S> | null;
|
|
28
|
+
}>;
|
|
29
|
+
create<S extends PlatformNamespaceSelect>(args: CreateArgs<S, CreatePlatformNamespaceInput['platformNamespace']> & {
|
|
30
|
+
select: S;
|
|
31
|
+
} & StrictSelect<S, PlatformNamespaceSelect>): QueryBuilder<{
|
|
32
|
+
createPlatformNamespace: {
|
|
33
|
+
platformNamespace: InferSelectResult<PlatformNamespaceWithRelations, S>;
|
|
34
|
+
};
|
|
35
|
+
}>;
|
|
36
|
+
update<S extends PlatformNamespaceSelect>(args: UpdateArgs<S, {
|
|
37
|
+
id: string;
|
|
38
|
+
}, PlatformNamespacePatch> & {
|
|
39
|
+
select: S;
|
|
40
|
+
} & StrictSelect<S, PlatformNamespaceSelect>): QueryBuilder<{
|
|
41
|
+
updatePlatformNamespace: {
|
|
42
|
+
platformNamespace: InferSelectResult<PlatformNamespaceWithRelations, S>;
|
|
43
|
+
};
|
|
44
|
+
}>;
|
|
45
|
+
delete<S extends PlatformNamespaceSelect>(args: DeleteArgs<{
|
|
46
|
+
id: string;
|
|
47
|
+
}, S> & {
|
|
48
|
+
select: S;
|
|
49
|
+
} & StrictSelect<S, PlatformNamespaceSelect>): QueryBuilder<{
|
|
50
|
+
deletePlatformNamespace: {
|
|
51
|
+
platformNamespace: InferSelectResult<PlatformNamespaceWithRelations, S>;
|
|
52
|
+
};
|
|
53
|
+
}>;
|
|
54
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PlatformNamespaceModel = void 0;
|
|
4
|
+
const query_builder_1 = require("../query-builder");
|
|
5
|
+
const input_types_1 = require("../input-types");
|
|
6
|
+
class PlatformNamespaceModel {
|
|
7
|
+
client;
|
|
8
|
+
constructor(client) {
|
|
9
|
+
this.client = client;
|
|
10
|
+
}
|
|
11
|
+
findMany(args) {
|
|
12
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('PlatformNamespace', 'platformNamespaces', args.select, {
|
|
13
|
+
where: args?.where,
|
|
14
|
+
orderBy: args?.orderBy,
|
|
15
|
+
first: args?.first,
|
|
16
|
+
last: args?.last,
|
|
17
|
+
after: args?.after,
|
|
18
|
+
before: args?.before,
|
|
19
|
+
offset: args?.offset,
|
|
20
|
+
}, 'PlatformNamespaceFilter', 'PlatformNamespaceOrderBy', input_types_1.connectionFieldsMap);
|
|
21
|
+
return new query_builder_1.QueryBuilder({
|
|
22
|
+
client: this.client,
|
|
23
|
+
operation: 'query',
|
|
24
|
+
operationName: 'PlatformNamespace',
|
|
25
|
+
fieldName: 'platformNamespaces',
|
|
26
|
+
document,
|
|
27
|
+
variables,
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
findFirst(args) {
|
|
31
|
+
const { document, variables } = (0, query_builder_1.buildFindFirstDocument)('PlatformNamespace', 'platformNamespaces', args.select, {
|
|
32
|
+
where: args?.where,
|
|
33
|
+
orderBy: args?.orderBy,
|
|
34
|
+
}, 'PlatformNamespaceFilter', 'PlatformNamespaceOrderBy', input_types_1.connectionFieldsMap);
|
|
35
|
+
return new query_builder_1.QueryBuilder({
|
|
36
|
+
client: this.client,
|
|
37
|
+
operation: 'query',
|
|
38
|
+
operationName: 'PlatformNamespace',
|
|
39
|
+
fieldName: 'platformNamespace',
|
|
40
|
+
document,
|
|
41
|
+
variables,
|
|
42
|
+
transform: (data) => ({
|
|
43
|
+
platformNamespace: data.platformNamespaces?.nodes?.[0] ?? null,
|
|
44
|
+
}),
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
findOne(args) {
|
|
48
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('PlatformNamespace', 'platformNamespaces', args.select, {
|
|
49
|
+
where: {
|
|
50
|
+
id: {
|
|
51
|
+
equalTo: args.id,
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
first: 1,
|
|
55
|
+
}, 'PlatformNamespaceFilter', 'PlatformNamespaceOrderBy', input_types_1.connectionFieldsMap);
|
|
56
|
+
return new query_builder_1.QueryBuilder({
|
|
57
|
+
client: this.client,
|
|
58
|
+
operation: 'query',
|
|
59
|
+
operationName: 'PlatformNamespace',
|
|
60
|
+
fieldName: 'platformNamespace',
|
|
61
|
+
document,
|
|
62
|
+
variables,
|
|
63
|
+
transform: (data) => ({
|
|
64
|
+
platformNamespace: data.platformNamespaces?.nodes?.[0] ?? null,
|
|
65
|
+
}),
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
create(args) {
|
|
69
|
+
const { document, variables } = (0, query_builder_1.buildCreateDocument)('PlatformNamespace', 'createPlatformNamespace', 'platformNamespace', args.select, args.data, 'CreatePlatformNamespaceInput', input_types_1.connectionFieldsMap);
|
|
70
|
+
return new query_builder_1.QueryBuilder({
|
|
71
|
+
client: this.client,
|
|
72
|
+
operation: 'mutation',
|
|
73
|
+
operationName: 'PlatformNamespace',
|
|
74
|
+
fieldName: 'createPlatformNamespace',
|
|
75
|
+
document,
|
|
76
|
+
variables,
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
update(args) {
|
|
80
|
+
const { document, variables } = (0, query_builder_1.buildUpdateByPkDocument)('PlatformNamespace', 'updatePlatformNamespace', 'platformNamespace', args.select, args.where.id, args.data, 'UpdatePlatformNamespaceInput', 'id', 'platformNamespacePatch', input_types_1.connectionFieldsMap, undefined);
|
|
81
|
+
return new query_builder_1.QueryBuilder({
|
|
82
|
+
client: this.client,
|
|
83
|
+
operation: 'mutation',
|
|
84
|
+
operationName: 'PlatformNamespace',
|
|
85
|
+
fieldName: 'updatePlatformNamespace',
|
|
86
|
+
document,
|
|
87
|
+
variables,
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
delete(args) {
|
|
91
|
+
const { document, variables } = (0, query_builder_1.buildDeleteByPkDocument)('PlatformNamespace', 'deletePlatformNamespace', 'platformNamespace', {
|
|
92
|
+
id: args.where.id,
|
|
93
|
+
}, 'DeletePlatformNamespaceInput', args.select, input_types_1.connectionFieldsMap);
|
|
94
|
+
return new query_builder_1.QueryBuilder({
|
|
95
|
+
client: this.client,
|
|
96
|
+
operation: 'mutation',
|
|
97
|
+
operationName: 'PlatformNamespace',
|
|
98
|
+
fieldName: 'deletePlatformNamespace',
|
|
99
|
+
document,
|
|
100
|
+
variables,
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
exports.PlatformNamespaceModel = PlatformNamespaceModel;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PlatformNamespaceEvent model for ORM client
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import { OrmClient } from '../client';
|
|
7
|
+
import { QueryBuilder } from '../query-builder';
|
|
8
|
+
import type { ConnectionResult, FindManyArgs, FindFirstArgs, CreateArgs, UpdateArgs, DeleteArgs, InferSelectResult, StrictSelect } from '../select-types';
|
|
9
|
+
import type { PlatformNamespaceEventWithRelations, PlatformNamespaceEventSelect, PlatformNamespaceEventFilter, PlatformNamespaceEventOrderBy, CreatePlatformNamespaceEventInput, PlatformNamespaceEventPatch } from '../input-types';
|
|
10
|
+
export declare class PlatformNamespaceEventModel {
|
|
11
|
+
private client;
|
|
12
|
+
constructor(client: OrmClient);
|
|
13
|
+
findMany<S extends PlatformNamespaceEventSelect>(args: FindManyArgs<S, PlatformNamespaceEventFilter, PlatformNamespaceEventOrderBy> & {
|
|
14
|
+
select: S;
|
|
15
|
+
} & StrictSelect<S, PlatformNamespaceEventSelect>): QueryBuilder<{
|
|
16
|
+
platformNamespaceEvents: ConnectionResult<InferSelectResult<PlatformNamespaceEventWithRelations, S>>;
|
|
17
|
+
}>;
|
|
18
|
+
findFirst<S extends PlatformNamespaceEventSelect>(args: FindFirstArgs<S, PlatformNamespaceEventFilter, PlatformNamespaceEventOrderBy> & {
|
|
19
|
+
select: S;
|
|
20
|
+
} & StrictSelect<S, PlatformNamespaceEventSelect>): QueryBuilder<{
|
|
21
|
+
platformNamespaceEvent: InferSelectResult<PlatformNamespaceEventWithRelations, S> | null;
|
|
22
|
+
}>;
|
|
23
|
+
findOne<S extends PlatformNamespaceEventSelect>(args: {
|
|
24
|
+
id: string;
|
|
25
|
+
select: S;
|
|
26
|
+
} & StrictSelect<S, PlatformNamespaceEventSelect>): QueryBuilder<{
|
|
27
|
+
platformNamespaceEvent: InferSelectResult<PlatformNamespaceEventWithRelations, S> | null;
|
|
28
|
+
}>;
|
|
29
|
+
create<S extends PlatformNamespaceEventSelect>(args: CreateArgs<S, CreatePlatformNamespaceEventInput['platformNamespaceEvent']> & {
|
|
30
|
+
select: S;
|
|
31
|
+
} & StrictSelect<S, PlatformNamespaceEventSelect>): QueryBuilder<{
|
|
32
|
+
createPlatformNamespaceEvent: {
|
|
33
|
+
platformNamespaceEvent: InferSelectResult<PlatformNamespaceEventWithRelations, S>;
|
|
34
|
+
};
|
|
35
|
+
}>;
|
|
36
|
+
update<S extends PlatformNamespaceEventSelect>(args: UpdateArgs<S, {
|
|
37
|
+
id: string;
|
|
38
|
+
createdAt: string;
|
|
39
|
+
}, PlatformNamespaceEventPatch> & {
|
|
40
|
+
select: S;
|
|
41
|
+
} & StrictSelect<S, PlatformNamespaceEventSelect>): QueryBuilder<{
|
|
42
|
+
updatePlatformNamespaceEvent: {
|
|
43
|
+
platformNamespaceEvent: InferSelectResult<PlatformNamespaceEventWithRelations, S>;
|
|
44
|
+
};
|
|
45
|
+
}>;
|
|
46
|
+
delete<S extends PlatformNamespaceEventSelect>(args: DeleteArgs<{
|
|
47
|
+
id: string;
|
|
48
|
+
createdAt: string;
|
|
49
|
+
}, S> & {
|
|
50
|
+
select: S;
|
|
51
|
+
} & StrictSelect<S, PlatformNamespaceEventSelect>): QueryBuilder<{
|
|
52
|
+
deletePlatformNamespaceEvent: {
|
|
53
|
+
platformNamespaceEvent: InferSelectResult<PlatformNamespaceEventWithRelations, S>;
|
|
54
|
+
};
|
|
55
|
+
}>;
|
|
56
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PlatformNamespaceEventModel = void 0;
|
|
4
|
+
const query_builder_1 = require("../query-builder");
|
|
5
|
+
const input_types_1 = require("../input-types");
|
|
6
|
+
class PlatformNamespaceEventModel {
|
|
7
|
+
client;
|
|
8
|
+
constructor(client) {
|
|
9
|
+
this.client = client;
|
|
10
|
+
}
|
|
11
|
+
findMany(args) {
|
|
12
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('PlatformNamespaceEvent', 'platformNamespaceEvents', args.select, {
|
|
13
|
+
where: args?.where,
|
|
14
|
+
orderBy: args?.orderBy,
|
|
15
|
+
first: args?.first,
|
|
16
|
+
last: args?.last,
|
|
17
|
+
after: args?.after,
|
|
18
|
+
before: args?.before,
|
|
19
|
+
offset: args?.offset,
|
|
20
|
+
}, 'PlatformNamespaceEventFilter', 'PlatformNamespaceEventOrderBy', input_types_1.connectionFieldsMap);
|
|
21
|
+
return new query_builder_1.QueryBuilder({
|
|
22
|
+
client: this.client,
|
|
23
|
+
operation: 'query',
|
|
24
|
+
operationName: 'PlatformNamespaceEvent',
|
|
25
|
+
fieldName: 'platformNamespaceEvents',
|
|
26
|
+
document,
|
|
27
|
+
variables,
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
findFirst(args) {
|
|
31
|
+
const { document, variables } = (0, query_builder_1.buildFindFirstDocument)('PlatformNamespaceEvent', 'platformNamespaceEvents', args.select, {
|
|
32
|
+
where: args?.where,
|
|
33
|
+
orderBy: args?.orderBy,
|
|
34
|
+
}, 'PlatformNamespaceEventFilter', 'PlatformNamespaceEventOrderBy', input_types_1.connectionFieldsMap);
|
|
35
|
+
return new query_builder_1.QueryBuilder({
|
|
36
|
+
client: this.client,
|
|
37
|
+
operation: 'query',
|
|
38
|
+
operationName: 'PlatformNamespaceEvent',
|
|
39
|
+
fieldName: 'platformNamespaceEvent',
|
|
40
|
+
document,
|
|
41
|
+
variables,
|
|
42
|
+
transform: (data) => ({
|
|
43
|
+
platformNamespaceEvent: data.platformNamespaceEvents?.nodes?.[0] ?? null,
|
|
44
|
+
}),
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
findOne(args) {
|
|
48
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('PlatformNamespaceEvent', 'platformNamespaceEvents', args.select, {
|
|
49
|
+
where: {
|
|
50
|
+
id: {
|
|
51
|
+
equalTo: args.id,
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
first: 1,
|
|
55
|
+
}, 'PlatformNamespaceEventFilter', 'PlatformNamespaceEventOrderBy', input_types_1.connectionFieldsMap);
|
|
56
|
+
return new query_builder_1.QueryBuilder({
|
|
57
|
+
client: this.client,
|
|
58
|
+
operation: 'query',
|
|
59
|
+
operationName: 'PlatformNamespaceEvent',
|
|
60
|
+
fieldName: 'platformNamespaceEvent',
|
|
61
|
+
document,
|
|
62
|
+
variables,
|
|
63
|
+
transform: (data) => ({
|
|
64
|
+
platformNamespaceEvent: data.platformNamespaceEvents?.nodes?.[0] ?? null,
|
|
65
|
+
}),
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
create(args) {
|
|
69
|
+
const { document, variables } = (0, query_builder_1.buildCreateDocument)('PlatformNamespaceEvent', 'createPlatformNamespaceEvent', 'platformNamespaceEvent', args.select, args.data, 'CreatePlatformNamespaceEventInput', input_types_1.connectionFieldsMap);
|
|
70
|
+
return new query_builder_1.QueryBuilder({
|
|
71
|
+
client: this.client,
|
|
72
|
+
operation: 'mutation',
|
|
73
|
+
operationName: 'PlatformNamespaceEvent',
|
|
74
|
+
fieldName: 'createPlatformNamespaceEvent',
|
|
75
|
+
document,
|
|
76
|
+
variables,
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
update(args) {
|
|
80
|
+
const { document, variables } = (0, query_builder_1.buildUpdateByPkDocument)('PlatformNamespaceEvent', 'updatePlatformNamespaceEvent', 'platformNamespaceEvent', args.select, args.where.id, args.data, 'UpdatePlatformNamespaceEventInput', 'id', 'platformNamespaceEventPatch', input_types_1.connectionFieldsMap, {
|
|
81
|
+
createdAt: args.where.createdAt,
|
|
82
|
+
});
|
|
83
|
+
return new query_builder_1.QueryBuilder({
|
|
84
|
+
client: this.client,
|
|
85
|
+
operation: 'mutation',
|
|
86
|
+
operationName: 'PlatformNamespaceEvent',
|
|
87
|
+
fieldName: 'updatePlatformNamespaceEvent',
|
|
88
|
+
document,
|
|
89
|
+
variables,
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
delete(args) {
|
|
93
|
+
const { document, variables } = (0, query_builder_1.buildDeleteByPkDocument)('PlatformNamespaceEvent', 'deletePlatformNamespaceEvent', 'platformNamespaceEvent', {
|
|
94
|
+
id: args.where.id,
|
|
95
|
+
createdAt: args.where.createdAt,
|
|
96
|
+
}, 'DeletePlatformNamespaceEventInput', args.select, input_types_1.connectionFieldsMap);
|
|
97
|
+
return new query_builder_1.QueryBuilder({
|
|
98
|
+
client: this.client,
|
|
99
|
+
operation: 'mutation',
|
|
100
|
+
operationName: 'PlatformNamespaceEvent',
|
|
101
|
+
fieldName: 'deletePlatformNamespaceEvent',
|
|
102
|
+
document,
|
|
103
|
+
variables,
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
exports.PlatformNamespaceEventModel = PlatformNamespaceEventModel;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resource model for ORM client
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import { OrmClient } from '../client';
|
|
7
|
+
import { QueryBuilder } from '../query-builder';
|
|
8
|
+
import type { ConnectionResult, FindManyArgs, FindFirstArgs, CreateArgs, UpdateArgs, DeleteArgs, InferSelectResult, StrictSelect } from '../select-types';
|
|
9
|
+
import type { ResourceWithRelations, ResourceSelect, ResourceFilter, ResourceOrderBy, CreateResourceInput, ResourcePatch } from '../input-types';
|
|
10
|
+
export declare class ResourceModel {
|
|
11
|
+
private client;
|
|
12
|
+
constructor(client: OrmClient);
|
|
13
|
+
findMany<S extends ResourceSelect>(args: FindManyArgs<S, ResourceFilter, ResourceOrderBy> & {
|
|
14
|
+
select: S;
|
|
15
|
+
} & StrictSelect<S, ResourceSelect>): QueryBuilder<{
|
|
16
|
+
resources: ConnectionResult<InferSelectResult<ResourceWithRelations, S>>;
|
|
17
|
+
}>;
|
|
18
|
+
findFirst<S extends ResourceSelect>(args: FindFirstArgs<S, ResourceFilter, ResourceOrderBy> & {
|
|
19
|
+
select: S;
|
|
20
|
+
} & StrictSelect<S, ResourceSelect>): QueryBuilder<{
|
|
21
|
+
resource: InferSelectResult<ResourceWithRelations, S> | null;
|
|
22
|
+
}>;
|
|
23
|
+
findOne<S extends ResourceSelect>(args: {
|
|
24
|
+
id: string;
|
|
25
|
+
select: S;
|
|
26
|
+
} & StrictSelect<S, ResourceSelect>): QueryBuilder<{
|
|
27
|
+
resource: InferSelectResult<ResourceWithRelations, S> | null;
|
|
28
|
+
}>;
|
|
29
|
+
create<S extends ResourceSelect>(args: CreateArgs<S, CreateResourceInput['resource']> & {
|
|
30
|
+
select: S;
|
|
31
|
+
} & StrictSelect<S, ResourceSelect>): QueryBuilder<{
|
|
32
|
+
createResource: {
|
|
33
|
+
resource: InferSelectResult<ResourceWithRelations, S>;
|
|
34
|
+
};
|
|
35
|
+
}>;
|
|
36
|
+
update<S extends ResourceSelect>(args: UpdateArgs<S, {
|
|
37
|
+
id: string;
|
|
38
|
+
}, ResourcePatch> & {
|
|
39
|
+
select: S;
|
|
40
|
+
} & StrictSelect<S, ResourceSelect>): QueryBuilder<{
|
|
41
|
+
updateResource: {
|
|
42
|
+
resource: InferSelectResult<ResourceWithRelations, S>;
|
|
43
|
+
};
|
|
44
|
+
}>;
|
|
45
|
+
delete<S extends ResourceSelect>(args: DeleteArgs<{
|
|
46
|
+
id: string;
|
|
47
|
+
}, S> & {
|
|
48
|
+
select: S;
|
|
49
|
+
} & StrictSelect<S, ResourceSelect>): QueryBuilder<{
|
|
50
|
+
deleteResource: {
|
|
51
|
+
resource: InferSelectResult<ResourceWithRelations, S>;
|
|
52
|
+
};
|
|
53
|
+
}>;
|
|
54
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ResourceModel = void 0;
|
|
4
|
+
const query_builder_1 = require("../query-builder");
|
|
5
|
+
const input_types_1 = require("../input-types");
|
|
6
|
+
class ResourceModel {
|
|
7
|
+
client;
|
|
8
|
+
constructor(client) {
|
|
9
|
+
this.client = client;
|
|
10
|
+
}
|
|
11
|
+
findMany(args) {
|
|
12
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('Resource', 'resources', args.select, {
|
|
13
|
+
where: args?.where,
|
|
14
|
+
orderBy: args?.orderBy,
|
|
15
|
+
first: args?.first,
|
|
16
|
+
last: args?.last,
|
|
17
|
+
after: args?.after,
|
|
18
|
+
before: args?.before,
|
|
19
|
+
offset: args?.offset,
|
|
20
|
+
}, 'ResourceFilter', 'ResourceOrderBy', input_types_1.connectionFieldsMap);
|
|
21
|
+
return new query_builder_1.QueryBuilder({
|
|
22
|
+
client: this.client,
|
|
23
|
+
operation: 'query',
|
|
24
|
+
operationName: 'Resource',
|
|
25
|
+
fieldName: 'resources',
|
|
26
|
+
document,
|
|
27
|
+
variables,
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
findFirst(args) {
|
|
31
|
+
const { document, variables } = (0, query_builder_1.buildFindFirstDocument)('Resource', 'resources', args.select, {
|
|
32
|
+
where: args?.where,
|
|
33
|
+
orderBy: args?.orderBy,
|
|
34
|
+
}, 'ResourceFilter', 'ResourceOrderBy', input_types_1.connectionFieldsMap);
|
|
35
|
+
return new query_builder_1.QueryBuilder({
|
|
36
|
+
client: this.client,
|
|
37
|
+
operation: 'query',
|
|
38
|
+
operationName: 'Resource',
|
|
39
|
+
fieldName: 'resource',
|
|
40
|
+
document,
|
|
41
|
+
variables,
|
|
42
|
+
transform: (data) => ({
|
|
43
|
+
resource: data.resources?.nodes?.[0] ?? null,
|
|
44
|
+
}),
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
findOne(args) {
|
|
48
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('Resource', 'resources', args.select, {
|
|
49
|
+
where: {
|
|
50
|
+
id: {
|
|
51
|
+
equalTo: args.id,
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
first: 1,
|
|
55
|
+
}, 'ResourceFilter', 'ResourceOrderBy', input_types_1.connectionFieldsMap);
|
|
56
|
+
return new query_builder_1.QueryBuilder({
|
|
57
|
+
client: this.client,
|
|
58
|
+
operation: 'query',
|
|
59
|
+
operationName: 'Resource',
|
|
60
|
+
fieldName: 'resource',
|
|
61
|
+
document,
|
|
62
|
+
variables,
|
|
63
|
+
transform: (data) => ({
|
|
64
|
+
resource: data.resources?.nodes?.[0] ?? null,
|
|
65
|
+
}),
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
create(args) {
|
|
69
|
+
const { document, variables } = (0, query_builder_1.buildCreateDocument)('Resource', 'createResource', 'resource', args.select, args.data, 'CreateResourceInput', input_types_1.connectionFieldsMap);
|
|
70
|
+
return new query_builder_1.QueryBuilder({
|
|
71
|
+
client: this.client,
|
|
72
|
+
operation: 'mutation',
|
|
73
|
+
operationName: 'Resource',
|
|
74
|
+
fieldName: 'createResource',
|
|
75
|
+
document,
|
|
76
|
+
variables,
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
update(args) {
|
|
80
|
+
const { document, variables } = (0, query_builder_1.buildUpdateByPkDocument)('Resource', 'updateResource', 'resource', args.select, args.where.id, args.data, 'UpdateResourceInput', 'id', 'resourcePatch', input_types_1.connectionFieldsMap, undefined);
|
|
81
|
+
return new query_builder_1.QueryBuilder({
|
|
82
|
+
client: this.client,
|
|
83
|
+
operation: 'mutation',
|
|
84
|
+
operationName: 'Resource',
|
|
85
|
+
fieldName: 'updateResource',
|
|
86
|
+
document,
|
|
87
|
+
variables,
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
delete(args) {
|
|
91
|
+
const { document, variables } = (0, query_builder_1.buildDeleteByPkDocument)('Resource', 'deleteResource', 'resource', {
|
|
92
|
+
id: args.where.id,
|
|
93
|
+
}, 'DeleteResourceInput', args.select, input_types_1.connectionFieldsMap);
|
|
94
|
+
return new query_builder_1.QueryBuilder({
|
|
95
|
+
client: this.client,
|
|
96
|
+
operation: 'mutation',
|
|
97
|
+
operationName: 'Resource',
|
|
98
|
+
fieldName: 'deleteResource',
|
|
99
|
+
document,
|
|
100
|
+
variables,
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
exports.ResourceModel = ResourceModel;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ResourceEvent model for ORM client
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import { OrmClient } from '../client';
|
|
7
|
+
import { QueryBuilder } from '../query-builder';
|
|
8
|
+
import type { ConnectionResult, FindManyArgs, FindFirstArgs, CreateArgs, UpdateArgs, DeleteArgs, InferSelectResult, StrictSelect } from '../select-types';
|
|
9
|
+
import type { ResourceEventWithRelations, ResourceEventSelect, ResourceEventFilter, ResourceEventOrderBy, CreateResourceEventInput, ResourceEventPatch } from '../input-types';
|
|
10
|
+
export declare class ResourceEventModel {
|
|
11
|
+
private client;
|
|
12
|
+
constructor(client: OrmClient);
|
|
13
|
+
findMany<S extends ResourceEventSelect>(args: FindManyArgs<S, ResourceEventFilter, ResourceEventOrderBy> & {
|
|
14
|
+
select: S;
|
|
15
|
+
} & StrictSelect<S, ResourceEventSelect>): QueryBuilder<{
|
|
16
|
+
resourceEvents: ConnectionResult<InferSelectResult<ResourceEventWithRelations, S>>;
|
|
17
|
+
}>;
|
|
18
|
+
findFirst<S extends ResourceEventSelect>(args: FindFirstArgs<S, ResourceEventFilter, ResourceEventOrderBy> & {
|
|
19
|
+
select: S;
|
|
20
|
+
} & StrictSelect<S, ResourceEventSelect>): QueryBuilder<{
|
|
21
|
+
resourceEvent: InferSelectResult<ResourceEventWithRelations, S> | null;
|
|
22
|
+
}>;
|
|
23
|
+
findOne<S extends ResourceEventSelect>(args: {
|
|
24
|
+
id: string;
|
|
25
|
+
select: S;
|
|
26
|
+
} & StrictSelect<S, ResourceEventSelect>): QueryBuilder<{
|
|
27
|
+
resourceEvent: InferSelectResult<ResourceEventWithRelations, S> | null;
|
|
28
|
+
}>;
|
|
29
|
+
create<S extends ResourceEventSelect>(args: CreateArgs<S, CreateResourceEventInput['resourceEvent']> & {
|
|
30
|
+
select: S;
|
|
31
|
+
} & StrictSelect<S, ResourceEventSelect>): QueryBuilder<{
|
|
32
|
+
createResourceEvent: {
|
|
33
|
+
resourceEvent: InferSelectResult<ResourceEventWithRelations, S>;
|
|
34
|
+
};
|
|
35
|
+
}>;
|
|
36
|
+
update<S extends ResourceEventSelect>(args: UpdateArgs<S, {
|
|
37
|
+
id: string;
|
|
38
|
+
createdAt: string;
|
|
39
|
+
}, ResourceEventPatch> & {
|
|
40
|
+
select: S;
|
|
41
|
+
} & StrictSelect<S, ResourceEventSelect>): QueryBuilder<{
|
|
42
|
+
updateResourceEvent: {
|
|
43
|
+
resourceEvent: InferSelectResult<ResourceEventWithRelations, S>;
|
|
44
|
+
};
|
|
45
|
+
}>;
|
|
46
|
+
delete<S extends ResourceEventSelect>(args: DeleteArgs<{
|
|
47
|
+
id: string;
|
|
48
|
+
createdAt: string;
|
|
49
|
+
}, S> & {
|
|
50
|
+
select: S;
|
|
51
|
+
} & StrictSelect<S, ResourceEventSelect>): QueryBuilder<{
|
|
52
|
+
deleteResourceEvent: {
|
|
53
|
+
resourceEvent: InferSelectResult<ResourceEventWithRelations, S>;
|
|
54
|
+
};
|
|
55
|
+
}>;
|
|
56
|
+
}
|