@constructive-io/react 1.21.34 → 1.21.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/admin/hooks/mutations/index.d.ts +0 -4
- package/admin/hooks/mutations/index.js +0 -4
- package/admin/orm/input-types.d.ts +32 -32
- package/admin/orm/models/myPendingAppInvitesRecord.d.ts +2 -9
- package/admin/orm/models/myPendingAppInvitesRecord.js +0 -11
- package/admin/orm/models/myPendingOrgInvitesRecord.d.ts +2 -9
- package/admin/orm/models/myPendingOrgInvitesRecord.js +0 -11
- package/admin/orm/models/orgGetManagersRecord.d.ts +2 -9
- package/admin/orm/models/orgGetManagersRecord.js +0 -11
- package/admin/orm/models/orgGetSubordinatesRecord.d.ts +2 -9
- package/admin/orm/models/orgGetSubordinatesRecord.js +0 -11
- package/admin/orm/query-builder.js +1 -3
- package/admin/orm/select-types.d.ts +1 -1
- package/admin/schema-types.d.ts +54 -19
- package/admin/types.d.ts +3 -0
- package/agent/orm/input-types.d.ts +36 -8
- package/agent/orm/query-builder.js +1 -3
- package/agent/orm/select-types.d.ts +1 -1
- package/agent/schema-types.d.ts +76 -29
- package/agent/types.d.ts +4 -0
- package/api/hooks/index.d.ts +1 -1
- package/api/hooks/index.js +1 -1
- package/api/hooks/invalidation.d.ts +6 -0
- package/api/hooks/invalidation.js +16 -0
- package/api/hooks/mutation-keys.d.ts +12 -0
- package/api/hooks/mutation-keys.js +12 -2
- package/api/hooks/mutations/index.d.ts +3 -5
- package/api/hooks/mutations/index.js +3 -5
- package/api/hooks/mutations/useCreatePlatformReservedSubdomainMutation.d.ts +34 -0
- package/{admin/hooks/mutations/useCreateMyPendingAppInvitesRecordMutation.js → api/hooks/mutations/useCreatePlatformReservedSubdomainMutation.js} +6 -6
- package/api/hooks/mutations/useDeletePlatformReservedSubdomainMutation.d.ts +38 -0
- package/api/hooks/mutations/useDeletePlatformReservedSubdomainMutation.js +39 -0
- package/api/hooks/mutations/useUpdatePlatformReservedSubdomainMutation.d.ts +40 -0
- package/api/hooks/mutations/useUpdatePlatformReservedSubdomainMutation.js +40 -0
- package/api/hooks/queries/index.d.ts +2 -4
- package/api/hooks/queries/index.js +2 -4
- package/api/hooks/queries/usePlatformReservedSubdomainQuery.d.ts +65 -0
- package/api/hooks/queries/usePlatformReservedSubdomainQuery.js +53 -0
- package/api/hooks/queries/usePlatformReservedSubdomainsQuery.d.ts +69 -0
- package/api/hooks/queries/usePlatformReservedSubdomainsQuery.js +38 -0
- package/api/hooks/query-keys.d.ts +14 -8
- package/api/hooks/query-keys.js +10 -6
- package/api/orm/index.d.ts +2 -20
- package/api/orm/index.js +2 -0
- package/api/orm/input-types.d.ts +281 -159
- package/api/orm/models/astMigration.d.ts +2 -9
- package/api/orm/models/astMigration.js +0 -11
- package/api/orm/models/getSitePreviewsRecord.d.ts +2 -9
- package/api/orm/models/getSitePreviewsRecord.js +0 -11
- package/api/orm/models/index.d.ts +1 -0
- package/api/orm/models/index.js +4 -2
- package/api/orm/models/listSuspendedDatabasesRecord.d.ts +2 -9
- package/api/orm/models/listSuspendedDatabasesRecord.js +0 -11
- package/api/orm/models/platformGetSitePreviewsRecord.d.ts +2 -9
- package/api/orm/models/platformGetSitePreviewsRecord.js +0 -11
- package/api/orm/models/platformReservedSubdomain.d.ts +54 -0
- package/api/orm/models/platformReservedSubdomain.js +104 -0
- package/api/orm/models/sqlAction.d.ts +2 -9
- package/api/orm/models/sqlAction.js +0 -11
- package/api/orm/query/index.d.ts +0 -37
- package/api/orm/query/index.js +0 -60
- package/api/orm/query-builder.js +1 -3
- package/api/orm/select-types.d.ts +1 -1
- package/api/schema-types.d.ts +161 -88
- package/api/types.d.ts +29 -5
- package/auth/hooks/mutation-keys.d.ts +8 -0
- package/auth/hooks/mutation-keys.js +12 -0
- package/auth/hooks/mutations/index.d.ts +4 -6
- package/auth/hooks/mutations/index.js +4 -6
- package/auth/hooks/mutations/useCreatePrincipalMutation.d.ts +12 -26
- package/auth/hooks/mutations/useCreatePrincipalMutation.js +4 -12
- package/auth/hooks/mutations/useEnsureAuthCsrfMutation.d.ts +20 -0
- package/{config/hooks/mutations/useCreateSecretMutation.js → auth/hooks/mutations/useEnsureAuthCsrfMutation.js} +6 -14
- package/auth/hooks/mutations/useExchangeNativeHandoffMutation.d.ts +20 -0
- package/{api/hooks/mutations/useCreateSqlActionMutation.js → auth/hooks/mutations/useExchangeNativeHandoffMutation.js} +6 -14
- package/auth/hooks/mutations/useRequestDeviceApprovalMutation.d.ts +20 -0
- package/{api/hooks/mutations/useCreateAstMigrationMutation.js → auth/hooks/mutations/useRequestDeviceApprovalMutation.js} +6 -14
- package/auth/hooks/queries/index.d.ts +1 -0
- package/auth/hooks/queries/index.js +1 -0
- package/auth/hooks/queries/useSignInOptionsQuery.d.ts +60 -0
- package/{api/hooks/queries/useResolveRouteQuery.js → auth/hooks/queries/useSignInOptionsQuery.js} +15 -19
- package/auth/hooks/query-keys.d.ts +2 -0
- package/auth/hooks/query-keys.js +1 -0
- package/auth/orm/index.d.ts +25 -0
- package/auth/orm/input-types.d.ts +159 -78
- package/auth/orm/models/identityProvider.d.ts +2 -9
- package/auth/orm/models/identityProvider.js +0 -11
- package/auth/orm/models/orgApiKeyList.d.ts +2 -9
- package/auth/orm/models/orgApiKeyList.js +0 -11
- package/auth/orm/models/principal.d.ts +2 -9
- package/auth/orm/models/principal.js +0 -11
- package/auth/orm/models/principalEntity.d.ts +2 -9
- package/auth/orm/models/principalEntity.js +0 -11
- package/auth/orm/models/principalScopeOverride.d.ts +2 -9
- package/auth/orm/models/principalScopeOverride.js +0 -11
- package/auth/orm/models/userConnectedAccount.d.ts +2 -9
- package/auth/orm/models/userConnectedAccount.js +0 -11
- package/auth/orm/mutation/index.d.ts +37 -1
- package/auth/orm/mutation/index.js +48 -0
- package/auth/orm/query/index.d.ts +6 -1
- package/auth/orm/query/index.js +7 -0
- package/auth/orm/query-builder.js +1 -3
- package/auth/orm/select-types.d.ts +1 -1
- package/auth/schema-types.d.ts +119 -20
- package/auth/types.d.ts +3 -0
- package/compute/hooks/index.d.ts +1 -1
- package/compute/hooks/index.js +1 -1
- package/compute/hooks/invalidation.d.ts +12 -12
- package/compute/hooks/invalidation.js +32 -32
- package/compute/hooks/mutation-keys.d.ts +26 -24
- package/compute/hooks/mutation-keys.js +23 -20
- package/compute/hooks/mutations/index.d.ts +7 -24
- package/compute/hooks/mutations/index.js +7 -24
- package/compute/hooks/mutations/useCreateFunctionGraphMutation.d.ts +12 -26
- package/compute/hooks/mutations/useCreateFunctionGraphMutation.js +4 -12
- package/compute/hooks/mutations/useCreatePlatformServiceBindingMutation.d.ts +34 -0
- package/{auth/hooks/mutations/useCreatePrincipalScopeOverrideMutation.js → compute/hooks/mutations/useCreatePlatformServiceBindingMutation.js} +6 -6
- package/compute/hooks/mutations/useCreateServiceBindingMutation.d.ts +34 -0
- package/compute/hooks/mutations/{useCreateBuilderBindingMutation.js → useCreateServiceBindingMutation.js} +6 -6
- package/compute/hooks/mutations/useDeletePlatformServiceBindingMutation.d.ts +38 -0
- package/compute/hooks/mutations/{useDeletePlatformBuilderBindingMutation.js → useDeletePlatformServiceBindingMutation.js} +7 -7
- package/compute/hooks/mutations/useDeleteServiceBindingMutation.d.ts +38 -0
- package/compute/hooks/mutations/{useDeleteBuilderBindingMutation.js → useDeleteServiceBindingMutation.js} +7 -7
- package/compute/hooks/mutations/useUpdatePlatformServiceBindingMutation.d.ts +40 -0
- package/compute/hooks/mutations/{useUpdatePlatformBuilderBindingMutation.js → useUpdatePlatformServiceBindingMutation.js} +9 -9
- package/compute/hooks/mutations/useUpdateServiceBindingMutation.d.ts +40 -0
- package/compute/hooks/mutations/{useUpdateBuilderBindingMutation.js → useUpdateServiceBindingMutation.js} +9 -9
- package/compute/hooks/queries/index.d.ts +4 -4
- package/compute/hooks/queries/index.js +4 -4
- package/compute/hooks/queries/usePlatformServiceBindingQuery.d.ts +65 -0
- package/compute/hooks/queries/{usePlatformBuilderBindingQuery.js → usePlatformServiceBindingQuery.js} +14 -14
- package/compute/hooks/queries/usePlatformServiceBindingsQuery.d.ts +69 -0
- package/compute/hooks/queries/usePlatformServiceBindingsQuery.js +38 -0
- package/compute/hooks/queries/useServiceBindingQuery.d.ts +65 -0
- package/compute/hooks/queries/{useBuilderBindingQuery.js → useServiceBindingQuery.js} +14 -14
- package/compute/hooks/queries/useServiceBindingsQuery.d.ts +69 -0
- package/compute/hooks/queries/{useBuilderBindingsQuery.js → useServiceBindingsQuery.js} +14 -14
- package/compute/hooks/query-keys.d.ts +28 -28
- package/compute/hooks/query-keys.js +19 -19
- package/compute/orm/index.d.ts +9 -4
- package/compute/orm/index.js +4 -4
- package/compute/orm/input-types.d.ts +965 -1025
- package/compute/orm/input-types.js +8 -8
- package/compute/orm/models/databaseFunctionGraph.d.ts +2 -9
- package/compute/orm/models/databaseFunctionGraph.js +0 -11
- package/compute/orm/models/databaseGraphGetAllTreeNodesRecord.d.ts +2 -9
- package/compute/orm/models/databaseGraphGetAllTreeNodesRecord.js +0 -11
- package/compute/orm/models/functionGraph.d.ts +2 -9
- package/compute/orm/models/functionGraph.js +0 -11
- package/compute/orm/models/getAllTreeNodesRecord.d.ts +2 -9
- package/compute/orm/models/getAllTreeNodesRecord.js +0 -11
- package/compute/orm/models/index.d.ts +2 -2
- package/compute/orm/models/index.js +7 -7
- package/compute/orm/models/infraGetAllTreeNodesRecord.d.ts +2 -9
- package/compute/orm/models/infraGetAllTreeNodesRecord.js +0 -11
- package/compute/orm/models/platformInfraGetAllTreeNodesRecord.d.ts +2 -9
- package/compute/orm/models/platformInfraGetAllTreeNodesRecord.js +0 -11
- package/compute/orm/models/platformResourceDeclaredCapacity.d.ts +2 -9
- package/compute/orm/models/platformResourceDeclaredCapacity.js +0 -11
- package/compute/orm/models/platformResourceObservedStorage.d.ts +2 -9
- package/compute/orm/models/platformResourceObservedStorage.js +0 -11
- package/compute/orm/models/platformResourceUtilization.d.ts +2 -9
- package/compute/orm/models/platformResourceUtilization.js +0 -11
- package/compute/orm/models/platformResourcesHealth.d.ts +2 -9
- package/compute/orm/models/platformResourcesHealth.js +0 -11
- package/compute/orm/models/platformResourcesRequirementsState.d.ts +2 -9
- package/compute/orm/models/platformResourcesRequirementsState.js +0 -11
- package/compute/orm/models/platformResourcesResolvedRequirement.d.ts +2 -9
- package/compute/orm/models/platformResourcesResolvedRequirement.js +0 -11
- package/compute/orm/models/platformServiceBinding.d.ts +54 -0
- package/compute/orm/models/{platformBuilderBinding.js → platformServiceBinding.js} +27 -27
- package/compute/orm/models/resourceDeclaredCapacity.d.ts +2 -9
- package/compute/orm/models/resourceDeclaredCapacity.js +0 -11
- package/compute/orm/models/resourceObservedStorage.d.ts +2 -9
- package/compute/orm/models/resourceObservedStorage.js +0 -11
- package/compute/orm/models/resourceUtilization.d.ts +2 -9
- package/compute/orm/models/resourceUtilization.js +0 -11
- package/compute/orm/models/resourcesHealth.d.ts +2 -9
- package/compute/orm/models/resourcesHealth.js +0 -11
- package/compute/orm/models/resourcesRequirementsState.d.ts +2 -9
- package/compute/orm/models/resourcesRequirementsState.js +0 -11
- package/compute/orm/models/resourcesResolvedRequirement.d.ts +2 -9
- package/compute/orm/models/resourcesResolvedRequirement.js +0 -11
- package/compute/orm/models/serviceBinding.d.ts +54 -0
- package/compute/orm/models/{builderBinding.js → serviceBinding.js} +27 -27
- package/compute/orm/mutation/index.d.ts +9 -1
- package/compute/orm/mutation/index.js +12 -0
- package/compute/orm/query-builder.js +1 -3
- package/compute/orm/select-types.d.ts +1 -1
- package/compute/schema-types.d.ts +467 -386
- package/compute/types.d.ts +60 -33
- package/config/hooks/mutations/index.d.ts +0 -5
- package/config/hooks/mutations/index.js +0 -5
- package/config/orm/input-types.d.ts +0 -66
- package/config/orm/models/appInternalSecret.d.ts +2 -9
- package/config/orm/models/appInternalSecret.js +0 -11
- package/config/orm/models/internalSecret.d.ts +2 -9
- package/config/orm/models/internalSecret.js +0 -11
- package/config/orm/models/platformInternalSecret.d.ts +2 -9
- package/config/orm/models/platformInternalSecret.js +0 -11
- package/config/orm/models/platformSecret.d.ts +2 -9
- package/config/orm/models/platformSecret.js +0 -11
- package/config/orm/models/secret.d.ts +2 -9
- package/config/orm/models/secret.js +0 -11
- package/config/orm/query-builder.js +1 -3
- package/config/orm/select-types.d.ts +1 -1
- package/config/schema-types.d.ts +54 -17
- package/esm/admin/hooks/mutations/index.d.ts +0 -4
- package/esm/admin/hooks/mutations/index.js +0 -4
- package/esm/admin/orm/input-types.d.ts +32 -32
- package/esm/admin/orm/models/myPendingAppInvitesRecord.d.ts +2 -9
- package/esm/admin/orm/models/myPendingAppInvitesRecord.js +1 -12
- package/esm/admin/orm/models/myPendingOrgInvitesRecord.d.ts +2 -9
- package/esm/admin/orm/models/myPendingOrgInvitesRecord.js +1 -12
- package/esm/admin/orm/models/orgGetManagersRecord.d.ts +2 -9
- package/esm/admin/orm/models/orgGetManagersRecord.js +1 -12
- package/esm/admin/orm/models/orgGetSubordinatesRecord.d.ts +2 -9
- package/esm/admin/orm/models/orgGetSubordinatesRecord.js +1 -12
- package/esm/admin/orm/query-builder.js +1 -3
- package/esm/admin/orm/select-types.d.ts +1 -1
- package/esm/admin/schema-types.d.ts +54 -19
- package/esm/admin/types.d.ts +3 -0
- package/esm/agent/orm/input-types.d.ts +36 -8
- package/esm/agent/orm/query-builder.js +1 -3
- package/esm/agent/orm/select-types.d.ts +1 -1
- package/esm/agent/schema-types.d.ts +76 -29
- package/esm/agent/types.d.ts +4 -0
- package/esm/api/hooks/index.d.ts +1 -1
- package/esm/api/hooks/index.js +1 -1
- package/esm/api/hooks/invalidation.d.ts +6 -0
- package/esm/api/hooks/invalidation.js +17 -1
- package/esm/api/hooks/mutation-keys.d.ts +12 -0
- package/esm/api/hooks/mutation-keys.js +10 -0
- package/esm/api/hooks/mutations/index.d.ts +3 -5
- package/esm/api/hooks/mutations/index.js +3 -5
- package/esm/api/hooks/mutations/useCreatePlatformReservedSubdomainMutation.d.ts +34 -0
- package/esm/{admin/hooks/mutations/useCreateMyPendingOrgInvitesRecordMutation.js → api/hooks/mutations/useCreatePlatformReservedSubdomainMutation.js} +7 -7
- package/esm/api/hooks/mutations/useDeletePlatformReservedSubdomainMutation.d.ts +38 -0
- package/esm/{compute/hooks/mutations/useDeleteBuilderBindingMutation.js → api/hooks/mutations/useDeletePlatformReservedSubdomainMutation.js} +8 -8
- package/esm/api/hooks/mutations/useUpdatePlatformReservedSubdomainMutation.d.ts +40 -0
- package/esm/{compute/hooks/mutations/useUpdateBuilderBindingMutation.js → api/hooks/mutations/useUpdatePlatformReservedSubdomainMutation.js} +10 -10
- package/esm/api/hooks/queries/index.d.ts +2 -4
- package/esm/api/hooks/queries/index.js +2 -4
- package/esm/api/hooks/queries/usePlatformReservedSubdomainQuery.d.ts +65 -0
- package/esm/api/hooks/queries/usePlatformReservedSubdomainQuery.js +47 -0
- package/esm/api/hooks/queries/usePlatformReservedSubdomainsQuery.d.ts +69 -0
- package/esm/api/hooks/queries/usePlatformReservedSubdomainsQuery.js +32 -0
- package/esm/api/hooks/query-keys.d.ts +14 -8
- package/esm/api/hooks/query-keys.js +8 -4
- package/esm/api/orm/index.d.ts +2 -20
- package/esm/api/orm/index.js +2 -0
- package/esm/api/orm/input-types.d.ts +281 -159
- package/esm/api/orm/models/astMigration.d.ts +2 -9
- package/esm/api/orm/models/astMigration.js +1 -12
- package/esm/api/orm/models/getSitePreviewsRecord.d.ts +2 -9
- package/esm/api/orm/models/getSitePreviewsRecord.js +1 -12
- package/esm/api/orm/models/index.d.ts +1 -0
- package/esm/api/orm/models/index.js +1 -0
- package/esm/api/orm/models/listSuspendedDatabasesRecord.d.ts +2 -9
- package/esm/api/orm/models/listSuspendedDatabasesRecord.js +1 -12
- package/esm/api/orm/models/platformGetSitePreviewsRecord.d.ts +2 -9
- package/esm/api/orm/models/platformGetSitePreviewsRecord.js +1 -12
- package/esm/api/orm/models/platformReservedSubdomain.d.ts +54 -0
- package/esm/api/orm/models/platformReservedSubdomain.js +100 -0
- package/esm/api/orm/models/sqlAction.d.ts +2 -9
- package/esm/api/orm/models/sqlAction.js +1 -12
- package/esm/api/orm/query/index.d.ts +0 -37
- package/esm/api/orm/query/index.js +0 -60
- package/esm/api/orm/query-builder.js +1 -3
- package/esm/api/orm/select-types.d.ts +1 -1
- package/esm/api/schema-types.d.ts +161 -88
- package/esm/api/types.d.ts +29 -5
- package/esm/auth/hooks/mutation-keys.d.ts +8 -0
- package/esm/auth/hooks/mutation-keys.js +12 -0
- package/esm/auth/hooks/mutations/index.d.ts +4 -6
- package/esm/auth/hooks/mutations/index.js +4 -6
- package/esm/auth/hooks/mutations/useCreatePrincipalMutation.d.ts +12 -26
- package/esm/auth/hooks/mutations/useCreatePrincipalMutation.js +6 -14
- package/esm/auth/hooks/mutations/useEnsureAuthCsrfMutation.d.ts +20 -0
- package/esm/auth/hooks/mutations/useEnsureAuthCsrfMutation.js +23 -0
- package/esm/auth/hooks/mutations/useExchangeNativeHandoffMutation.d.ts +20 -0
- package/esm/auth/hooks/mutations/useExchangeNativeHandoffMutation.js +23 -0
- package/esm/auth/hooks/mutations/useRequestDeviceApprovalMutation.d.ts +20 -0
- package/esm/auth/hooks/mutations/useRequestDeviceApprovalMutation.js +23 -0
- package/esm/auth/hooks/queries/index.d.ts +1 -0
- package/esm/auth/hooks/queries/index.js +1 -0
- package/esm/auth/hooks/queries/useSignInOptionsQuery.d.ts +60 -0
- package/esm/{api/hooks/queries/useResolveRouteQuery.js → auth/hooks/queries/useSignInOptionsQuery.js} +11 -15
- package/esm/auth/hooks/query-keys.d.ts +2 -0
- package/esm/auth/hooks/query-keys.js +1 -0
- package/esm/auth/orm/index.d.ts +25 -0
- package/esm/auth/orm/input-types.d.ts +159 -78
- package/esm/auth/orm/models/identityProvider.d.ts +2 -9
- package/esm/auth/orm/models/identityProvider.js +1 -12
- package/esm/auth/orm/models/orgApiKeyList.d.ts +2 -9
- package/esm/auth/orm/models/orgApiKeyList.js +1 -12
- package/esm/auth/orm/models/principal.d.ts +2 -9
- package/esm/auth/orm/models/principal.js +1 -12
- package/esm/auth/orm/models/principalEntity.d.ts +2 -9
- package/esm/auth/orm/models/principalEntity.js +1 -12
- package/esm/auth/orm/models/principalScopeOverride.d.ts +2 -9
- package/esm/auth/orm/models/principalScopeOverride.js +1 -12
- package/esm/auth/orm/models/userConnectedAccount.d.ts +2 -9
- package/esm/auth/orm/models/userConnectedAccount.js +1 -12
- package/esm/auth/orm/mutation/index.d.ts +37 -1
- package/esm/auth/orm/mutation/index.js +48 -0
- package/esm/auth/orm/query/index.d.ts +6 -1
- package/esm/auth/orm/query/index.js +7 -0
- package/esm/auth/orm/query-builder.js +1 -3
- package/esm/auth/orm/select-types.d.ts +1 -1
- package/esm/auth/schema-types.d.ts +119 -20
- package/esm/auth/types.d.ts +3 -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 +12 -12
- package/esm/compute/hooks/invalidation.js +33 -33
- package/esm/compute/hooks/mutation-keys.d.ts +26 -24
- package/esm/compute/hooks/mutation-keys.js +20 -17
- package/esm/compute/hooks/mutations/index.d.ts +7 -24
- package/esm/compute/hooks/mutations/index.js +7 -24
- package/esm/compute/hooks/mutations/useCreateFunctionGraphMutation.d.ts +12 -26
- package/esm/compute/hooks/mutations/useCreateFunctionGraphMutation.js +6 -14
- package/esm/compute/hooks/mutations/useCreatePlatformServiceBindingMutation.d.ts +34 -0
- package/esm/{auth/hooks/mutations/useCreatePrincipalScopeOverrideMutation.js → compute/hooks/mutations/useCreatePlatformServiceBindingMutation.js} +7 -7
- package/esm/compute/hooks/mutations/useCreateServiceBindingMutation.d.ts +34 -0
- package/esm/{api/hooks/mutations/useCreateSqlActionMutation.js → compute/hooks/mutations/useCreateServiceBindingMutation.js} +7 -7
- package/esm/compute/hooks/mutations/useDeletePlatformServiceBindingMutation.d.ts +38 -0
- package/esm/compute/hooks/mutations/{useDeletePlatformBuilderBindingMutation.js → useDeletePlatformServiceBindingMutation.js} +8 -8
- package/esm/compute/hooks/mutations/useDeleteServiceBindingMutation.d.ts +38 -0
- package/esm/compute/hooks/mutations/useDeleteServiceBindingMutation.js +36 -0
- package/esm/compute/hooks/mutations/useUpdatePlatformServiceBindingMutation.d.ts +40 -0
- package/esm/compute/hooks/mutations/{useUpdatePlatformBuilderBindingMutation.js → useUpdatePlatformServiceBindingMutation.js} +10 -10
- package/esm/compute/hooks/mutations/useUpdateServiceBindingMutation.d.ts +40 -0
- package/esm/compute/hooks/mutations/useUpdateServiceBindingMutation.js +37 -0
- package/esm/compute/hooks/queries/index.d.ts +4 -4
- package/esm/compute/hooks/queries/index.js +4 -4
- package/esm/compute/hooks/queries/usePlatformServiceBindingQuery.d.ts +65 -0
- package/esm/compute/hooks/queries/{usePlatformBuilderBindingQuery.js → usePlatformServiceBindingQuery.js} +11 -11
- package/esm/compute/hooks/queries/usePlatformServiceBindingsQuery.d.ts +69 -0
- package/esm/compute/hooks/queries/usePlatformServiceBindingsQuery.js +32 -0
- package/esm/compute/hooks/queries/useServiceBindingQuery.d.ts +65 -0
- package/esm/compute/hooks/queries/{useBuilderBindingQuery.js → useServiceBindingQuery.js} +11 -11
- package/esm/compute/hooks/queries/useServiceBindingsQuery.d.ts +69 -0
- package/esm/compute/hooks/queries/useServiceBindingsQuery.js +32 -0
- package/esm/compute/hooks/query-keys.d.ts +28 -28
- package/esm/compute/hooks/query-keys.js +16 -16
- package/esm/compute/orm/index.d.ts +9 -4
- package/esm/compute/orm/index.js +4 -4
- package/esm/compute/orm/input-types.d.ts +965 -1025
- package/esm/compute/orm/input-types.js +8 -8
- package/esm/compute/orm/models/databaseFunctionGraph.d.ts +2 -9
- package/esm/compute/orm/models/databaseFunctionGraph.js +1 -12
- package/esm/compute/orm/models/databaseGraphGetAllTreeNodesRecord.d.ts +2 -9
- package/esm/compute/orm/models/databaseGraphGetAllTreeNodesRecord.js +1 -12
- package/esm/compute/orm/models/functionGraph.d.ts +2 -9
- package/esm/compute/orm/models/functionGraph.js +1 -12
- package/esm/compute/orm/models/getAllTreeNodesRecord.d.ts +2 -9
- package/esm/compute/orm/models/getAllTreeNodesRecord.js +1 -12
- package/esm/compute/orm/models/index.d.ts +2 -2
- package/esm/compute/orm/models/index.js +2 -2
- package/esm/compute/orm/models/infraGetAllTreeNodesRecord.d.ts +2 -9
- package/esm/compute/orm/models/infraGetAllTreeNodesRecord.js +1 -12
- package/esm/compute/orm/models/platformInfraGetAllTreeNodesRecord.d.ts +2 -9
- package/esm/compute/orm/models/platformInfraGetAllTreeNodesRecord.js +1 -12
- package/esm/compute/orm/models/platformResourceDeclaredCapacity.d.ts +2 -9
- package/esm/compute/orm/models/platformResourceDeclaredCapacity.js +1 -12
- package/esm/compute/orm/models/platformResourceObservedStorage.d.ts +2 -9
- package/esm/compute/orm/models/platformResourceObservedStorage.js +1 -12
- package/esm/compute/orm/models/platformResourceUtilization.d.ts +2 -9
- package/esm/compute/orm/models/platformResourceUtilization.js +1 -12
- package/esm/compute/orm/models/platformResourcesHealth.d.ts +2 -9
- package/esm/compute/orm/models/platformResourcesHealth.js +1 -12
- package/esm/compute/orm/models/platformResourcesRequirementsState.d.ts +2 -9
- package/esm/compute/orm/models/platformResourcesRequirementsState.js +1 -12
- package/esm/compute/orm/models/platformResourcesResolvedRequirement.d.ts +2 -9
- package/esm/compute/orm/models/platformResourcesResolvedRequirement.js +1 -12
- package/esm/compute/orm/models/platformServiceBinding.d.ts +54 -0
- package/esm/compute/orm/models/{platformBuilderBinding.js → platformServiceBinding.js} +25 -25
- package/esm/compute/orm/models/resourceDeclaredCapacity.d.ts +2 -9
- package/esm/compute/orm/models/resourceDeclaredCapacity.js +1 -12
- package/esm/compute/orm/models/resourceObservedStorage.d.ts +2 -9
- package/esm/compute/orm/models/resourceObservedStorage.js +1 -12
- package/esm/compute/orm/models/resourceUtilization.d.ts +2 -9
- package/esm/compute/orm/models/resourceUtilization.js +1 -12
- package/esm/compute/orm/models/resourcesHealth.d.ts +2 -9
- package/esm/compute/orm/models/resourcesHealth.js +1 -12
- package/esm/compute/orm/models/resourcesRequirementsState.d.ts +2 -9
- package/esm/compute/orm/models/resourcesRequirementsState.js +1 -12
- package/esm/compute/orm/models/resourcesResolvedRequirement.d.ts +2 -9
- package/esm/compute/orm/models/resourcesResolvedRequirement.js +1 -12
- package/esm/compute/orm/models/serviceBinding.d.ts +54 -0
- package/esm/compute/orm/models/{builderBinding.js → serviceBinding.js} +25 -25
- package/esm/compute/orm/mutation/index.d.ts +9 -1
- package/esm/compute/orm/mutation/index.js +12 -0
- package/esm/compute/orm/query-builder.js +1 -3
- package/esm/compute/orm/select-types.d.ts +1 -1
- package/esm/compute/schema-types.d.ts +467 -386
- package/esm/compute/types.d.ts +60 -33
- package/esm/config/hooks/mutations/index.d.ts +0 -5
- package/esm/config/hooks/mutations/index.js +0 -5
- package/esm/config/orm/input-types.d.ts +0 -66
- package/esm/config/orm/models/appInternalSecret.d.ts +2 -9
- package/esm/config/orm/models/appInternalSecret.js +1 -12
- package/esm/config/orm/models/internalSecret.d.ts +2 -9
- package/esm/config/orm/models/internalSecret.js +1 -12
- package/esm/config/orm/models/platformInternalSecret.d.ts +2 -9
- package/esm/config/orm/models/platformInternalSecret.js +1 -12
- package/esm/config/orm/models/platformSecret.d.ts +2 -9
- package/esm/config/orm/models/platformSecret.js +1 -12
- package/esm/config/orm/models/secret.d.ts +2 -9
- package/esm/config/orm/models/secret.js +1 -12
- package/esm/config/orm/query-builder.js +1 -3
- package/esm/config/orm/select-types.d.ts +1 -1
- package/esm/config/schema-types.d.ts +54 -17
- package/esm/infra/hooks/mutations/index.d.ts +0 -1
- package/esm/infra/hooks/mutations/index.js +0 -1
- package/esm/infra/orm/input-types.d.ts +0 -7
- package/esm/infra/orm/models/platformInfraGetAllTreeNodesRecord.d.ts +2 -9
- package/esm/infra/orm/models/platformInfraGetAllTreeNodesRecord.js +1 -12
- package/esm/infra/orm/query-builder.js +1 -3
- package/esm/infra/orm/select-types.d.ts +1 -1
- package/esm/infra/schema-types.d.ts +54 -17
- package/esm/modules/hooks/mutations/useCreateBlueprintConstructionMutation.d.ts +2 -2
- package/esm/modules/hooks/mutations/useCreateBlueprintConstructionMutation.js +1 -1
- package/esm/modules/hooks/mutations/useDeleteBlueprintConstructionMutation.d.ts +2 -2
- package/esm/modules/hooks/mutations/useDeleteBlueprintConstructionMutation.js +1 -1
- package/esm/modules/hooks/mutations/useUpdateBlueprintConstructionMutation.d.ts +2 -2
- package/esm/modules/hooks/mutations/useUpdateBlueprintConstructionMutation.js +1 -1
- package/esm/modules/hooks/queries/useBlueprintConstructionQuery.d.ts +4 -4
- package/esm/modules/hooks/queries/useBlueprintConstructionQuery.js +1 -1
- package/esm/modules/hooks/queries/useBlueprintConstructionsQuery.d.ts +4 -4
- package/esm/modules/hooks/queries/useBlueprintConstructionsQuery.js +1 -1
- package/esm/modules/orm/input-types.d.ts +95 -38
- package/esm/modules/orm/mutation/index.d.ts +1 -1
- package/esm/modules/orm/query-builder.js +1 -3
- package/esm/modules/orm/select-types.d.ts +1 -1
- package/esm/modules/schema-types.d.ts +104 -39
- package/esm/modules/types.d.ts +10 -3
- package/esm/objects/hooks/mutations/index.d.ts +0 -1
- package/esm/objects/hooks/mutations/index.js +0 -1
- package/esm/objects/orm/input-types.d.ts +0 -7
- package/esm/objects/orm/models/getAllTreeNodesRecord.d.ts +2 -9
- package/esm/objects/orm/models/getAllTreeNodesRecord.js +1 -12
- package/esm/objects/orm/query-builder.js +1 -3
- package/esm/objects/orm/select-types.d.ts +1 -1
- package/esm/objects/schema-types.d.ts +54 -17
- package/esm/remote/hooks/queries/index.d.ts +1 -0
- package/esm/remote/hooks/queries/index.js +1 -0
- package/esm/remote/hooks/queries/useCurrentDatabaseIdQuery.d.ts +45 -0
- package/esm/remote/hooks/queries/useCurrentDatabaseIdQuery.js +43 -0
- package/esm/remote/hooks/query-keys.d.ts +6 -0
- package/esm/remote/hooks/query-keys.js +7 -0
- package/esm/remote/orm/index.d.ts +8 -0
- package/esm/remote/orm/index.js +3 -0
- package/esm/remote/orm/query/index.d.ts +14 -0
- package/esm/remote/orm/query/index.js +13 -0
- package/esm/remote/orm/query-builder.js +1 -3
- package/esm/remote/orm/select-types.d.ts +1 -1
- package/esm/remote/schema-types.d.ts +54 -17
- package/esm/storage/hooks/mutations/index.d.ts +0 -2
- package/esm/storage/hooks/mutations/index.js +0 -2
- package/esm/storage/orm/input-types.d.ts +84 -139
- package/esm/storage/orm/models/file.d.ts +2 -9
- package/esm/storage/orm/models/file.js +1 -12
- package/esm/storage/orm/models/platformFile.d.ts +2 -9
- package/esm/storage/orm/models/platformFile.js +1 -12
- package/esm/storage/orm/query-builder.js +1 -3
- package/esm/storage/orm/select-types.d.ts +1 -1
- package/esm/storage/schema-types.d.ts +79 -112
- package/esm/storage/types.d.ts +7 -0
- package/esm/usage/orm/query-builder.js +1 -3
- package/esm/usage/orm/select-types.d.ts +1 -1
- package/esm/usage/schema-types.d.ts +54 -17
- package/infra/hooks/mutations/index.d.ts +0 -1
- package/infra/hooks/mutations/index.js +0 -1
- package/infra/orm/input-types.d.ts +0 -7
- package/infra/orm/models/platformInfraGetAllTreeNodesRecord.d.ts +2 -9
- package/infra/orm/models/platformInfraGetAllTreeNodesRecord.js +0 -11
- package/infra/orm/query-builder.js +1 -3
- package/infra/orm/select-types.d.ts +1 -1
- package/infra/schema-types.d.ts +54 -17
- package/modules/hooks/mutations/useCreateBlueprintConstructionMutation.d.ts +2 -2
- package/modules/hooks/mutations/useCreateBlueprintConstructionMutation.js +1 -1
- package/modules/hooks/mutations/useDeleteBlueprintConstructionMutation.d.ts +2 -2
- package/modules/hooks/mutations/useDeleteBlueprintConstructionMutation.js +1 -1
- package/modules/hooks/mutations/useUpdateBlueprintConstructionMutation.d.ts +2 -2
- package/modules/hooks/mutations/useUpdateBlueprintConstructionMutation.js +1 -1
- package/modules/hooks/queries/useBlueprintConstructionQuery.d.ts +4 -4
- package/modules/hooks/queries/useBlueprintConstructionQuery.js +1 -1
- package/modules/hooks/queries/useBlueprintConstructionsQuery.d.ts +4 -4
- package/modules/hooks/queries/useBlueprintConstructionsQuery.js +1 -1
- package/modules/orm/input-types.d.ts +95 -38
- package/modules/orm/mutation/index.d.ts +1 -1
- package/modules/orm/query-builder.js +1 -3
- package/modules/orm/select-types.d.ts +1 -1
- package/modules/schema-types.d.ts +104 -39
- package/modules/types.d.ts +10 -3
- package/objects/hooks/mutations/index.d.ts +0 -1
- package/objects/hooks/mutations/index.js +0 -1
- package/objects/orm/input-types.d.ts +0 -7
- package/objects/orm/models/getAllTreeNodesRecord.d.ts +2 -9
- package/objects/orm/models/getAllTreeNodesRecord.js +0 -11
- package/objects/orm/query-builder.js +1 -3
- package/objects/orm/select-types.d.ts +1 -1
- package/objects/schema-types.d.ts +54 -17
- package/package.json +5 -5
- package/remote/hooks/queries/index.d.ts +1 -0
- package/remote/hooks/queries/index.js +1 -0
- package/remote/hooks/queries/useCurrentDatabaseIdQuery.d.ts +45 -0
- package/remote/hooks/queries/useCurrentDatabaseIdQuery.js +49 -0
- package/remote/hooks/query-keys.d.ts +6 -0
- package/remote/hooks/query-keys.js +8 -1
- package/remote/orm/index.d.ts +8 -0
- package/remote/orm/index.js +5 -1
- package/remote/orm/query/index.d.ts +14 -0
- package/remote/orm/query/index.js +16 -0
- package/remote/orm/query-builder.js +1 -3
- package/remote/orm/select-types.d.ts +1 -1
- package/remote/schema-types.d.ts +54 -17
- package/storage/hooks/mutations/index.d.ts +0 -2
- package/storage/hooks/mutations/index.js +0 -2
- package/storage/orm/input-types.d.ts +84 -139
- package/storage/orm/models/file.d.ts +2 -9
- package/storage/orm/models/file.js +0 -11
- package/storage/orm/models/platformFile.d.ts +2 -9
- package/storage/orm/models/platformFile.js +0 -11
- package/storage/orm/query-builder.js +1 -3
- package/storage/orm/select-types.d.ts +1 -1
- package/storage/schema-types.d.ts +79 -112
- package/storage/types.d.ts +7 -0
- package/usage/orm/query-builder.js +1 -3
- package/usage/orm/select-types.d.ts +1 -1
- package/usage/schema-types.d.ts +54 -17
- package/admin/hooks/mutations/useCreateMyPendingAppInvitesRecordMutation.d.ts +0 -34
- package/admin/hooks/mutations/useCreateMyPendingOrgInvitesRecordMutation.d.ts +0 -34
- package/admin/hooks/mutations/useCreateMyPendingOrgInvitesRecordMutation.js +0 -34
- package/admin/hooks/mutations/useCreateOrgGetManagersRecordMutation.d.ts +0 -34
- package/admin/hooks/mutations/useCreateOrgGetManagersRecordMutation.js +0 -34
- package/admin/hooks/mutations/useCreateOrgGetSubordinatesRecordMutation.d.ts +0 -34
- package/admin/hooks/mutations/useCreateOrgGetSubordinatesRecordMutation.js +0 -34
- package/api/hooks/mutations/useCreateAstMigrationMutation.d.ts +0 -34
- package/api/hooks/mutations/useCreateGetSitePreviewsRecordMutation.d.ts +0 -34
- package/api/hooks/mutations/useCreateGetSitePreviewsRecordMutation.js +0 -34
- package/api/hooks/mutations/useCreateListSuspendedDatabasesRecordMutation.d.ts +0 -34
- package/api/hooks/mutations/useCreateListSuspendedDatabasesRecordMutation.js +0 -34
- package/api/hooks/mutations/useCreatePlatformGetSitePreviewsRecordMutation.d.ts +0 -34
- package/api/hooks/mutations/useCreatePlatformGetSitePreviewsRecordMutation.js +0 -34
- package/api/hooks/mutations/useCreateSqlActionMutation.d.ts +0 -34
- package/api/hooks/queries/useApiSchemaNamesQuery.d.ts +0 -53
- package/api/hooks/queries/useApiSchemaNamesQuery.js +0 -53
- package/api/hooks/queries/useResolveDeepLinkQuery.d.ts +0 -53
- package/api/hooks/queries/useResolveDeepLinkQuery.js +0 -53
- package/api/hooks/queries/useResolveRouteQuery.d.ts +0 -65
- package/api/hooks/queries/useResolveSiteAppLinksQuery.d.ts +0 -53
- package/api/hooks/queries/useResolveSiteAppLinksQuery.js +0 -53
- package/auth/hooks/mutations/useCreateIdentityProviderMutation.d.ts +0 -34
- package/auth/hooks/mutations/useCreateIdentityProviderMutation.js +0 -34
- package/auth/hooks/mutations/useCreateOrgApiKeyListMutation.d.ts +0 -34
- package/auth/hooks/mutations/useCreateOrgApiKeyListMutation.js +0 -34
- package/auth/hooks/mutations/useCreatePrincipalEntityMutation.d.ts +0 -34
- package/auth/hooks/mutations/useCreatePrincipalEntityMutation.js +0 -34
- package/auth/hooks/mutations/useCreatePrincipalScopeOverrideMutation.d.ts +0 -34
- package/auth/hooks/mutations/useCreateUserConnectedAccountMutation.d.ts +0 -34
- package/auth/hooks/mutations/useCreateUserConnectedAccountMutation.js +0 -34
- package/compute/hooks/mutations/useCreateBuilderBindingMutation.d.ts +0 -34
- package/compute/hooks/mutations/useCreateDatabaseFunctionGraphMutation.d.ts +0 -34
- package/compute/hooks/mutations/useCreateDatabaseFunctionGraphMutation.js +0 -34
- package/compute/hooks/mutations/useCreateDatabaseGraphGetAllTreeNodesRecordMutation.d.ts +0 -34
- package/compute/hooks/mutations/useCreateDatabaseGraphGetAllTreeNodesRecordMutation.js +0 -34
- package/compute/hooks/mutations/useCreateGetAllTreeNodesRecordMutation.d.ts +0 -34
- package/compute/hooks/mutations/useCreateGetAllTreeNodesRecordMutation.js +0 -34
- package/compute/hooks/mutations/useCreateInfraGetAllTreeNodesRecordMutation.d.ts +0 -34
- package/compute/hooks/mutations/useCreateInfraGetAllTreeNodesRecordMutation.js +0 -34
- package/compute/hooks/mutations/useCreatePlatformBuilderBindingMutation.d.ts +0 -34
- package/compute/hooks/mutations/useCreatePlatformBuilderBindingMutation.js +0 -34
- package/compute/hooks/mutations/useCreatePlatformInfraGetAllTreeNodesRecordMutation.d.ts +0 -34
- package/compute/hooks/mutations/useCreatePlatformInfraGetAllTreeNodesRecordMutation.js +0 -34
- package/compute/hooks/mutations/useCreatePlatformResourceDeclaredCapacityMutation.d.ts +0 -34
- package/compute/hooks/mutations/useCreatePlatformResourceDeclaredCapacityMutation.js +0 -34
- package/compute/hooks/mutations/useCreatePlatformResourceObservedStorageMutation.d.ts +0 -34
- package/compute/hooks/mutations/useCreatePlatformResourceObservedStorageMutation.js +0 -34
- package/compute/hooks/mutations/useCreatePlatformResourceUtilizationMutation.d.ts +0 -34
- package/compute/hooks/mutations/useCreatePlatformResourceUtilizationMutation.js +0 -34
- package/compute/hooks/mutations/useCreatePlatformResourcesHealthMutation.d.ts +0 -34
- package/compute/hooks/mutations/useCreatePlatformResourcesHealthMutation.js +0 -34
- package/compute/hooks/mutations/useCreatePlatformResourcesRequirementsStateMutation.d.ts +0 -34
- package/compute/hooks/mutations/useCreatePlatformResourcesRequirementsStateMutation.js +0 -34
- package/compute/hooks/mutations/useCreatePlatformResourcesResolvedRequirementMutation.d.ts +0 -34
- package/compute/hooks/mutations/useCreatePlatformResourcesResolvedRequirementMutation.js +0 -34
- package/compute/hooks/mutations/useCreateResourceDeclaredCapacityMutation.d.ts +0 -34
- package/compute/hooks/mutations/useCreateResourceDeclaredCapacityMutation.js +0 -34
- package/compute/hooks/mutations/useCreateResourceObservedStorageMutation.d.ts +0 -34
- package/compute/hooks/mutations/useCreateResourceObservedStorageMutation.js +0 -34
- package/compute/hooks/mutations/useCreateResourceUtilizationMutation.d.ts +0 -34
- package/compute/hooks/mutations/useCreateResourceUtilizationMutation.js +0 -34
- package/compute/hooks/mutations/useCreateResourcesHealthMutation.d.ts +0 -34
- package/compute/hooks/mutations/useCreateResourcesHealthMutation.js +0 -34
- package/compute/hooks/mutations/useCreateResourcesRequirementsStateMutation.d.ts +0 -34
- package/compute/hooks/mutations/useCreateResourcesRequirementsStateMutation.js +0 -34
- package/compute/hooks/mutations/useCreateResourcesResolvedRequirementMutation.d.ts +0 -34
- package/compute/hooks/mutations/useCreateResourcesResolvedRequirementMutation.js +0 -34
- package/compute/hooks/mutations/useDeleteBuilderBindingMutation.d.ts +0 -38
- package/compute/hooks/mutations/useDeletePlatformBuilderBindingMutation.d.ts +0 -38
- package/compute/hooks/mutations/useUpdateBuilderBindingMutation.d.ts +0 -40
- package/compute/hooks/mutations/useUpdatePlatformBuilderBindingMutation.d.ts +0 -40
- package/compute/hooks/queries/useBuilderBindingQuery.d.ts +0 -65
- package/compute/hooks/queries/useBuilderBindingsQuery.d.ts +0 -69
- package/compute/hooks/queries/usePlatformBuilderBindingQuery.d.ts +0 -65
- package/compute/hooks/queries/usePlatformBuilderBindingsQuery.d.ts +0 -69
- package/compute/hooks/queries/usePlatformBuilderBindingsQuery.js +0 -38
- package/compute/orm/models/builderBinding.d.ts +0 -54
- package/compute/orm/models/platformBuilderBinding.d.ts +0 -54
- package/config/hooks/mutations/useCreateAppInternalSecretMutation.d.ts +0 -34
- package/config/hooks/mutations/useCreateAppInternalSecretMutation.js +0 -34
- package/config/hooks/mutations/useCreateInternalSecretMutation.d.ts +0 -34
- package/config/hooks/mutations/useCreateInternalSecretMutation.js +0 -34
- package/config/hooks/mutations/useCreatePlatformInternalSecretMutation.d.ts +0 -34
- package/config/hooks/mutations/useCreatePlatformInternalSecretMutation.js +0 -34
- package/config/hooks/mutations/useCreatePlatformSecretMutation.d.ts +0 -34
- package/config/hooks/mutations/useCreatePlatformSecretMutation.js +0 -34
- package/config/hooks/mutations/useCreateSecretMutation.d.ts +0 -34
- package/esm/admin/hooks/mutations/useCreateMyPendingAppInvitesRecordMutation.d.ts +0 -34
- package/esm/admin/hooks/mutations/useCreateMyPendingAppInvitesRecordMutation.js +0 -31
- package/esm/admin/hooks/mutations/useCreateMyPendingOrgInvitesRecordMutation.d.ts +0 -34
- package/esm/admin/hooks/mutations/useCreateOrgGetManagersRecordMutation.d.ts +0 -34
- package/esm/admin/hooks/mutations/useCreateOrgGetManagersRecordMutation.js +0 -31
- package/esm/admin/hooks/mutations/useCreateOrgGetSubordinatesRecordMutation.d.ts +0 -34
- package/esm/admin/hooks/mutations/useCreateOrgGetSubordinatesRecordMutation.js +0 -31
- package/esm/api/hooks/mutations/useCreateAstMigrationMutation.d.ts +0 -34
- package/esm/api/hooks/mutations/useCreateAstMigrationMutation.js +0 -31
- package/esm/api/hooks/mutations/useCreateGetSitePreviewsRecordMutation.d.ts +0 -34
- package/esm/api/hooks/mutations/useCreateGetSitePreviewsRecordMutation.js +0 -31
- package/esm/api/hooks/mutations/useCreateListSuspendedDatabasesRecordMutation.d.ts +0 -34
- package/esm/api/hooks/mutations/useCreateListSuspendedDatabasesRecordMutation.js +0 -31
- package/esm/api/hooks/mutations/useCreatePlatformGetSitePreviewsRecordMutation.d.ts +0 -34
- package/esm/api/hooks/mutations/useCreatePlatformGetSitePreviewsRecordMutation.js +0 -31
- package/esm/api/hooks/mutations/useCreateSqlActionMutation.d.ts +0 -34
- package/esm/api/hooks/queries/useApiSchemaNamesQuery.d.ts +0 -53
- package/esm/api/hooks/queries/useApiSchemaNamesQuery.js +0 -47
- package/esm/api/hooks/queries/useResolveDeepLinkQuery.d.ts +0 -53
- package/esm/api/hooks/queries/useResolveDeepLinkQuery.js +0 -47
- package/esm/api/hooks/queries/useResolveRouteQuery.d.ts +0 -65
- package/esm/api/hooks/queries/useResolveSiteAppLinksQuery.d.ts +0 -53
- package/esm/api/hooks/queries/useResolveSiteAppLinksQuery.js +0 -47
- package/esm/auth/hooks/mutations/useCreateIdentityProviderMutation.d.ts +0 -34
- package/esm/auth/hooks/mutations/useCreateIdentityProviderMutation.js +0 -31
- package/esm/auth/hooks/mutations/useCreateOrgApiKeyListMutation.d.ts +0 -34
- package/esm/auth/hooks/mutations/useCreateOrgApiKeyListMutation.js +0 -31
- package/esm/auth/hooks/mutations/useCreatePrincipalEntityMutation.d.ts +0 -34
- package/esm/auth/hooks/mutations/useCreatePrincipalEntityMutation.js +0 -31
- package/esm/auth/hooks/mutations/useCreatePrincipalScopeOverrideMutation.d.ts +0 -34
- package/esm/auth/hooks/mutations/useCreateUserConnectedAccountMutation.d.ts +0 -34
- package/esm/auth/hooks/mutations/useCreateUserConnectedAccountMutation.js +0 -31
- package/esm/compute/hooks/mutations/useCreateBuilderBindingMutation.d.ts +0 -34
- package/esm/compute/hooks/mutations/useCreateBuilderBindingMutation.js +0 -31
- package/esm/compute/hooks/mutations/useCreateDatabaseFunctionGraphMutation.d.ts +0 -34
- package/esm/compute/hooks/mutations/useCreateDatabaseFunctionGraphMutation.js +0 -31
- package/esm/compute/hooks/mutations/useCreateDatabaseGraphGetAllTreeNodesRecordMutation.d.ts +0 -34
- package/esm/compute/hooks/mutations/useCreateDatabaseGraphGetAllTreeNodesRecordMutation.js +0 -31
- package/esm/compute/hooks/mutations/useCreateGetAllTreeNodesRecordMutation.d.ts +0 -34
- package/esm/compute/hooks/mutations/useCreateGetAllTreeNodesRecordMutation.js +0 -31
- package/esm/compute/hooks/mutations/useCreateInfraGetAllTreeNodesRecordMutation.d.ts +0 -34
- package/esm/compute/hooks/mutations/useCreateInfraGetAllTreeNodesRecordMutation.js +0 -31
- package/esm/compute/hooks/mutations/useCreatePlatformBuilderBindingMutation.d.ts +0 -34
- package/esm/compute/hooks/mutations/useCreatePlatformBuilderBindingMutation.js +0 -31
- package/esm/compute/hooks/mutations/useCreatePlatformInfraGetAllTreeNodesRecordMutation.d.ts +0 -34
- package/esm/compute/hooks/mutations/useCreatePlatformInfraGetAllTreeNodesRecordMutation.js +0 -31
- package/esm/compute/hooks/mutations/useCreatePlatformResourceDeclaredCapacityMutation.d.ts +0 -34
- package/esm/compute/hooks/mutations/useCreatePlatformResourceDeclaredCapacityMutation.js +0 -31
- package/esm/compute/hooks/mutations/useCreatePlatformResourceObservedStorageMutation.d.ts +0 -34
- package/esm/compute/hooks/mutations/useCreatePlatformResourceObservedStorageMutation.js +0 -31
- package/esm/compute/hooks/mutations/useCreatePlatformResourceUtilizationMutation.d.ts +0 -34
- package/esm/compute/hooks/mutations/useCreatePlatformResourceUtilizationMutation.js +0 -31
- package/esm/compute/hooks/mutations/useCreatePlatformResourcesHealthMutation.d.ts +0 -34
- package/esm/compute/hooks/mutations/useCreatePlatformResourcesHealthMutation.js +0 -31
- package/esm/compute/hooks/mutations/useCreatePlatformResourcesRequirementsStateMutation.d.ts +0 -34
- package/esm/compute/hooks/mutations/useCreatePlatformResourcesRequirementsStateMutation.js +0 -31
- package/esm/compute/hooks/mutations/useCreatePlatformResourcesResolvedRequirementMutation.d.ts +0 -34
- package/esm/compute/hooks/mutations/useCreatePlatformResourcesResolvedRequirementMutation.js +0 -31
- package/esm/compute/hooks/mutations/useCreateResourceDeclaredCapacityMutation.d.ts +0 -34
- package/esm/compute/hooks/mutations/useCreateResourceDeclaredCapacityMutation.js +0 -31
- package/esm/compute/hooks/mutations/useCreateResourceObservedStorageMutation.d.ts +0 -34
- package/esm/compute/hooks/mutations/useCreateResourceObservedStorageMutation.js +0 -31
- package/esm/compute/hooks/mutations/useCreateResourceUtilizationMutation.d.ts +0 -34
- package/esm/compute/hooks/mutations/useCreateResourceUtilizationMutation.js +0 -31
- package/esm/compute/hooks/mutations/useCreateResourcesHealthMutation.d.ts +0 -34
- package/esm/compute/hooks/mutations/useCreateResourcesHealthMutation.js +0 -31
- package/esm/compute/hooks/mutations/useCreateResourcesRequirementsStateMutation.d.ts +0 -34
- package/esm/compute/hooks/mutations/useCreateResourcesRequirementsStateMutation.js +0 -31
- package/esm/compute/hooks/mutations/useCreateResourcesResolvedRequirementMutation.d.ts +0 -34
- package/esm/compute/hooks/mutations/useCreateResourcesResolvedRequirementMutation.js +0 -31
- package/esm/compute/hooks/mutations/useDeleteBuilderBindingMutation.d.ts +0 -38
- package/esm/compute/hooks/mutations/useDeletePlatformBuilderBindingMutation.d.ts +0 -38
- package/esm/compute/hooks/mutations/useUpdateBuilderBindingMutation.d.ts +0 -40
- package/esm/compute/hooks/mutations/useUpdatePlatformBuilderBindingMutation.d.ts +0 -40
- package/esm/compute/hooks/queries/useBuilderBindingQuery.d.ts +0 -65
- package/esm/compute/hooks/queries/useBuilderBindingsQuery.d.ts +0 -69
- package/esm/compute/hooks/queries/useBuilderBindingsQuery.js +0 -32
- package/esm/compute/hooks/queries/usePlatformBuilderBindingQuery.d.ts +0 -65
- package/esm/compute/hooks/queries/usePlatformBuilderBindingsQuery.d.ts +0 -69
- package/esm/compute/hooks/queries/usePlatformBuilderBindingsQuery.js +0 -32
- package/esm/compute/orm/models/builderBinding.d.ts +0 -54
- package/esm/compute/orm/models/platformBuilderBinding.d.ts +0 -54
- package/esm/config/hooks/mutations/useCreateAppInternalSecretMutation.d.ts +0 -34
- package/esm/config/hooks/mutations/useCreateAppInternalSecretMutation.js +0 -31
- package/esm/config/hooks/mutations/useCreateInternalSecretMutation.d.ts +0 -34
- package/esm/config/hooks/mutations/useCreateInternalSecretMutation.js +0 -31
- package/esm/config/hooks/mutations/useCreatePlatformInternalSecretMutation.d.ts +0 -34
- package/esm/config/hooks/mutations/useCreatePlatformInternalSecretMutation.js +0 -31
- package/esm/config/hooks/mutations/useCreatePlatformSecretMutation.d.ts +0 -34
- package/esm/config/hooks/mutations/useCreatePlatformSecretMutation.js +0 -31
- package/esm/config/hooks/mutations/useCreateSecretMutation.d.ts +0 -34
- package/esm/config/hooks/mutations/useCreateSecretMutation.js +0 -31
- package/esm/infra/hooks/mutations/useCreatePlatformInfraGetAllTreeNodesRecordMutation.d.ts +0 -34
- package/esm/infra/hooks/mutations/useCreatePlatformInfraGetAllTreeNodesRecordMutation.js +0 -31
- package/esm/objects/hooks/mutations/useCreateGetAllTreeNodesRecordMutation.d.ts +0 -34
- package/esm/objects/hooks/mutations/useCreateGetAllTreeNodesRecordMutation.js +0 -31
- package/esm/storage/hooks/mutations/useCreateFileMutation.d.ts +0 -34
- package/esm/storage/hooks/mutations/useCreateFileMutation.js +0 -31
- package/esm/storage/hooks/mutations/useCreatePlatformFileMutation.d.ts +0 -34
- package/esm/storage/hooks/mutations/useCreatePlatformFileMutation.js +0 -31
- package/infra/hooks/mutations/useCreatePlatformInfraGetAllTreeNodesRecordMutation.d.ts +0 -34
- package/infra/hooks/mutations/useCreatePlatformInfraGetAllTreeNodesRecordMutation.js +0 -34
- package/objects/hooks/mutations/useCreateGetAllTreeNodesRecordMutation.d.ts +0 -34
- package/objects/hooks/mutations/useCreateGetAllTreeNodesRecordMutation.js +0 -34
- package/storage/hooks/mutations/useCreateFileMutation.d.ts +0 -34
- package/storage/hooks/mutations/useCreateFileMutation.js +0 -34
- package/storage/hooks/mutations/useCreatePlatformFileMutation.d.ts +0 -34
- package/storage/hooks/mutations/useCreatePlatformFileMutation.js +0 -34
package/modules/types.d.ts
CHANGED
|
@@ -226,6 +226,7 @@ export interface BlueprintConstruction {
|
|
|
226
226
|
constructedDefinition: unknown | null;
|
|
227
227
|
createdAt: string | null;
|
|
228
228
|
databaseId: string | null;
|
|
229
|
+
error: unknown | null;
|
|
229
230
|
id: string | null;
|
|
230
231
|
schemaId: string | null;
|
|
231
232
|
status: string | null;
|
|
@@ -562,6 +563,8 @@ export interface DbUsageModule {
|
|
|
562
563
|
queryStatsLogTableName: string | null;
|
|
563
564
|
queryStatsSummaryTableId: string | null;
|
|
564
565
|
queryStatsSummaryTableName: string | null;
|
|
566
|
+
readDbQueryStatsUsagePeriodFunction: string | null;
|
|
567
|
+
readDbTableStatsUsagePeriodFunction: string | null;
|
|
565
568
|
retention: string | null;
|
|
566
569
|
rollupDbQueryStatsUsageSummaryFunction: string | null;
|
|
567
570
|
rollupDbTableStatsUsageSummaryFunction: string | null;
|
|
@@ -604,6 +607,7 @@ export interface DomainModule {
|
|
|
604
607
|
catalogModuleId: string | null;
|
|
605
608
|
databaseId: string | null;
|
|
606
609
|
defaultCapabilities: string[] | null;
|
|
610
|
+
defaultReservedSubdomains: unknown | null;
|
|
607
611
|
domainEventsTableId: string | null;
|
|
608
612
|
domainEventsTableName: string | null;
|
|
609
613
|
domainVerificationsTableId: string | null;
|
|
@@ -622,8 +626,11 @@ export interface DomainModule {
|
|
|
622
626
|
privateSchemaName: string | null;
|
|
623
627
|
provisions: unknown | null;
|
|
624
628
|
publicSchemaName: string | null;
|
|
629
|
+
reservedSubdomainsTableId: string | null;
|
|
630
|
+
reservedSubdomainsTableName: string | null;
|
|
625
631
|
schemaId: string | null;
|
|
626
632
|
scope: string | null;
|
|
633
|
+
sweepUnverifiedDomainsFunction: string | null;
|
|
627
634
|
}
|
|
628
635
|
export interface EmailSenderModule {
|
|
629
636
|
apiName: string | null;
|
|
@@ -1551,8 +1558,6 @@ export interface RepositoryModule {
|
|
|
1551
1558
|
}
|
|
1552
1559
|
export interface ResourceModule {
|
|
1553
1560
|
apiName: string | null;
|
|
1554
|
-
builderBindingsTableId: string | null;
|
|
1555
|
-
builderBindingsTableName: string | null;
|
|
1556
1561
|
databaseId: string | null;
|
|
1557
1562
|
defaultCapabilities: string[] | null;
|
|
1558
1563
|
entityField: string | null;
|
|
@@ -1590,6 +1595,8 @@ export interface ResourceModule {
|
|
|
1590
1595
|
rollupResourceUsageSummaryFunction: string | null;
|
|
1591
1596
|
schemaId: string | null;
|
|
1592
1597
|
scope: string | null;
|
|
1598
|
+
serviceBindingsTableId: string | null;
|
|
1599
|
+
serviceBindingsTableName: string | null;
|
|
1593
1600
|
}
|
|
1594
1601
|
export interface RlsModule {
|
|
1595
1602
|
apiName: string | null;
|
|
@@ -1730,6 +1737,7 @@ export interface StorageLogModule {
|
|
|
1730
1737
|
privateSchemaId: string | null;
|
|
1731
1738
|
privateSchemaName: string | null;
|
|
1732
1739
|
publicSchemaName: string | null;
|
|
1740
|
+
readStorageUsagePeriodFunction: string | null;
|
|
1733
1741
|
retention: string | null;
|
|
1734
1742
|
rollupFunctionName: string | null;
|
|
1735
1743
|
schemaId: string | null;
|
|
@@ -1758,7 +1766,6 @@ export interface StorageModule {
|
|
|
1758
1766
|
filesTableId: string | null;
|
|
1759
1767
|
filesTableName: string | null;
|
|
1760
1768
|
hasAuditLog: boolean | null;
|
|
1761
|
-
hasConfirmUpload: boolean | null;
|
|
1762
1769
|
hasContentHash: boolean | null;
|
|
1763
1770
|
hasCustomKeys: boolean | null;
|
|
1764
1771
|
hasPathShares: boolean | null;
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
export * from './useCreateCommitMutation';
|
|
7
7
|
export * from './useUpdateCommitMutation';
|
|
8
8
|
export * from './useDeleteCommitMutation';
|
|
9
|
-
export * from './useCreateGetAllTreeNodesRecordMutation';
|
|
10
9
|
export * from './useCreateObjectMutation';
|
|
11
10
|
export * from './useUpdateObjectMutation';
|
|
12
11
|
export * from './useDeleteObjectMutation';
|
|
@@ -22,7 +22,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
22
22
|
__exportStar(require("./useCreateCommitMutation"), exports);
|
|
23
23
|
__exportStar(require("./useUpdateCommitMutation"), exports);
|
|
24
24
|
__exportStar(require("./useDeleteCommitMutation"), exports);
|
|
25
|
-
__exportStar(require("./useCreateGetAllTreeNodesRecordMutation"), exports);
|
|
26
25
|
__exportStar(require("./useCreateObjectMutation"), exports);
|
|
27
26
|
__exportStar(require("./useUpdateObjectMutation"), exports);
|
|
28
27
|
__exportStar(require("./useDeleteObjectMutation"), exports);
|
|
@@ -484,13 +484,6 @@ export interface DeleteCommitInput {
|
|
|
484
484
|
clientMutationId?: string;
|
|
485
485
|
id: string;
|
|
486
486
|
}
|
|
487
|
-
export interface CreateGetAllTreeNodesRecordInput {
|
|
488
|
-
clientMutationId?: string;
|
|
489
|
-
getAllTreeNodesRecord: {
|
|
490
|
-
data?: Record<string, unknown>;
|
|
491
|
-
path?: string[];
|
|
492
|
-
};
|
|
493
|
-
}
|
|
494
487
|
export interface GetAllTreeNodesRecordPatch {
|
|
495
488
|
data?: Record<string, unknown> | null;
|
|
496
489
|
path?: string[] | null;
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { OrmClient } from '../client';
|
|
7
7
|
import { QueryBuilder } from '../query-builder';
|
|
8
|
-
import type { ConnectionResult, FindManyArgs, FindFirstArgs,
|
|
9
|
-
import type { GetAllTreeNodesRecordWithRelations, GetAllTreeNodesRecordSelect, GetAllTreeNodesRecordFilter, GetAllTreeNodesRecordsOrderBy
|
|
8
|
+
import type { ConnectionResult, FindManyArgs, FindFirstArgs, InferSelectResult, StrictSelect } from '../select-types';
|
|
9
|
+
import type { GetAllTreeNodesRecordWithRelations, GetAllTreeNodesRecordSelect, GetAllTreeNodesRecordFilter, GetAllTreeNodesRecordsOrderBy } from '../input-types';
|
|
10
10
|
export declare class GetAllTreeNodesRecordModel {
|
|
11
11
|
private client;
|
|
12
12
|
constructor(client: OrmClient);
|
|
@@ -20,11 +20,4 @@ export declare class GetAllTreeNodesRecordModel {
|
|
|
20
20
|
} & StrictSelect<S, GetAllTreeNodesRecordSelect>): QueryBuilder<{
|
|
21
21
|
getAllTreeNodesRecord: InferSelectResult<GetAllTreeNodesRecordWithRelations, S> | null;
|
|
22
22
|
}>;
|
|
23
|
-
create<S extends GetAllTreeNodesRecordSelect>(args: CreateArgs<S, CreateGetAllTreeNodesRecordInput['getAllTreeNodesRecord']> & {
|
|
24
|
-
select: S;
|
|
25
|
-
} & StrictSelect<S, GetAllTreeNodesRecordSelect>): QueryBuilder<{
|
|
26
|
-
createGetAllTreeNodesRecord: {
|
|
27
|
-
getAllTreeNodesRecord: InferSelectResult<GetAllTreeNodesRecordWithRelations, S>;
|
|
28
|
-
};
|
|
29
|
-
}>;
|
|
30
23
|
}
|
|
@@ -44,16 +44,5 @@ class GetAllTreeNodesRecordModel {
|
|
|
44
44
|
}),
|
|
45
45
|
});
|
|
46
46
|
}
|
|
47
|
-
create(args) {
|
|
48
|
-
const { document, variables } = (0, query_builder_1.buildCreateDocument)('GetAllTreeNodesRecord', 'createGetAllTreeNodesRecord', 'getAllTreeNodesRecord', args.select, args.data, 'CreateGetAllTreeNodesRecordInput', input_types_1.connectionFieldsMap);
|
|
49
|
-
return new query_builder_1.QueryBuilder({
|
|
50
|
-
client: this.client,
|
|
51
|
-
operation: 'mutation',
|
|
52
|
-
operationName: 'GetAllTreeNodesRecord',
|
|
53
|
-
fieldName: 'createGetAllTreeNodesRecord',
|
|
54
|
-
document,
|
|
55
|
-
variables,
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
47
|
}
|
|
59
48
|
exports.GetAllTreeNodesRecordModel = GetAllTreeNodesRecordModel;
|
|
@@ -146,9 +146,7 @@ function buildSelections(select, connectionFieldsMap, entityType) {
|
|
|
146
146
|
const fieldArgs = Object.entries(nested.args).map(([argName, argValue]) => t.argument({ name: argName, value: buildValueAst(argValue) }));
|
|
147
147
|
const nestedSelect = nested.select;
|
|
148
148
|
if (nestedSelect && typeof nestedSelect === 'object') {
|
|
149
|
-
const subSelections =
|
|
150
|
-
.filter(([, v]) => v)
|
|
151
|
-
.map(([name]) => t.field({ name }));
|
|
149
|
+
const subSelections = buildSelections(nestedSelect, connectionFieldsMap);
|
|
152
150
|
fields.push(t.field({
|
|
153
151
|
name: key,
|
|
154
152
|
args: fieldArgs.length ? fieldArgs : undefined,
|
|
@@ -120,6 +120,6 @@ export type HookStrictSelect<S, Shape> = S extends DeepExact<S, Shape, 5> ? {} :
|
|
|
120
120
|
export type InferSelectResult<TEntity, TSelect> = TSelect extends undefined ? TEntity : {
|
|
121
121
|
[K in keyof TSelect as TSelect[K] extends false | undefined ? never : K]: TSelect[K] extends true ? K extends keyof TEntity ? TEntity[K] : never : TSelect[K] extends {
|
|
122
122
|
select: infer NestedSelect;
|
|
123
|
-
} ? K extends keyof TEntity ? NonNullable<TEntity[K]> extends ConnectionResult<infer NodeType> ? ConnectionResult<InferSelectResult<NodeType, NestedSelect>> : InferSelectResult<NonNullable<TEntity[K]>, NestedSelect> | (null extends TEntity[K] ? null : never) : never : K extends keyof TEntity ? TEntity[K] : never;
|
|
123
|
+
} ? K extends keyof TEntity ? NonNullable<TEntity[K]> extends ConnectionResult<infer NodeType> ? ConnectionResult<InferSelectResult<NodeType, NestedSelect>> : NonNullable<TEntity[K]> extends readonly (infer Item)[] ? InferSelectResult<NonNullable<Item>, NestedSelect>[] | (null extends TEntity[K] ? null : never) : InferSelectResult<NonNullable<TEntity[K]>, NestedSelect> | (null extends TEntity[K] ? null : never) : never : K extends keyof TEntity ? TEntity[K] : never;
|
|
124
124
|
};
|
|
125
125
|
export {};
|
|
@@ -508,21 +508,27 @@ export interface UpdateStorePayload {
|
|
|
508
508
|
/** Information about a database table */
|
|
509
509
|
export interface MetaTable {
|
|
510
510
|
constraints: MetaConstraints;
|
|
511
|
+
/** Description written for this table, or null */
|
|
512
|
+
description?: string | null;
|
|
511
513
|
fields: MetaField[];
|
|
512
514
|
foreignKeyConstraints: MetaForeignKeyConstraint[];
|
|
513
|
-
/** i18n metadata (null if
|
|
515
|
+
/** i18n metadata (null if the table is not translatable) */
|
|
514
516
|
i18n?: MetaI18n | null;
|
|
515
517
|
indexes: MetaIndex[];
|
|
516
518
|
inflection: MetaInflection;
|
|
519
|
+
/** Whether this table only links rows of two other tables; the link appears in their manyToMany relations */
|
|
520
|
+
isJunction: boolean;
|
|
521
|
+
/** 'table' when rows are stored in this table, 'view' when they come from a view of other tables */
|
|
522
|
+
kind: string;
|
|
517
523
|
/** Final GraphQL output type name */
|
|
518
524
|
name: string;
|
|
519
525
|
primaryKeyConstraints: MetaPrimaryKeyConstraint[];
|
|
520
526
|
query: MetaQuery;
|
|
521
|
-
/** Realtime metadata (null if no
|
|
527
|
+
/** Realtime metadata (null if the table has no change subscriptions) */
|
|
522
528
|
realtime?: MetaRealtime | null;
|
|
523
529
|
relations: MetaRelations;
|
|
524
530
|
schemaName: string;
|
|
525
|
-
/** Provisioning scope metadata (null if no
|
|
531
|
+
/** Provisioning scope metadata (null if the table has no scope) */
|
|
526
532
|
scope?: MetaScope | null;
|
|
527
533
|
/** Search metadata (null if no search configured) */
|
|
528
534
|
search?: MetaSearch | null;
|
|
@@ -581,15 +587,27 @@ export interface MetaConstraints {
|
|
|
581
587
|
}
|
|
582
588
|
/** Information about a table field/column */
|
|
583
589
|
export interface MetaField {
|
|
590
|
+
/** Values this field accepts, when the set is fixed; null otherwise. Set on a table's own fields only. */
|
|
591
|
+
allowedValues?: string[] | null;
|
|
584
592
|
/** PostgreSQL column name */
|
|
585
593
|
columnName: string;
|
|
586
594
|
description?: string | null;
|
|
587
595
|
/** Enum metadata if this field has an enum type */
|
|
588
596
|
enumValues?: MetaEnum | null;
|
|
597
|
+
/** Set when the field holds files; null otherwise. Set on a table's own fields only. */
|
|
598
|
+
file?: MetaFileField | null;
|
|
589
599
|
hasDefault: boolean;
|
|
600
|
+
/** Whether the value is always computed and cannot be written, even when a create or update input offers the field. Set on a table's own fields only. */
|
|
601
|
+
isComputed?: boolean | null;
|
|
590
602
|
isForeignKey: boolean;
|
|
591
603
|
isNotNull: boolean;
|
|
592
604
|
isPrimaryKey: boolean;
|
|
605
|
+
/** Whether a create must provide this field. Set on a table's own fields only. */
|
|
606
|
+
isRequiredOnCreate?: boolean | null;
|
|
607
|
+
/** Whether a create may set this field. Set on a table's own fields only. */
|
|
608
|
+
isWritableOnCreate?: boolean | null;
|
|
609
|
+
/** Whether an update may change this field. Set on a table's own fields only. */
|
|
610
|
+
isWritableOnUpdate?: boolean | null;
|
|
593
611
|
/** Final GraphQL field name */
|
|
594
612
|
name: string;
|
|
595
613
|
type: MetaType;
|
|
@@ -603,7 +621,7 @@ export interface MetaForeignKeyConstraint {
|
|
|
603
621
|
referencedFields: string[];
|
|
604
622
|
referencedTable: string;
|
|
605
623
|
}
|
|
606
|
-
/** i18n metadata for a table
|
|
624
|
+
/** i18n metadata for a translatable table */
|
|
607
625
|
export interface MetaI18n {
|
|
608
626
|
/** Fields that are translatable */
|
|
609
627
|
translatableFields: MetaI18nField[];
|
|
@@ -618,7 +636,7 @@ export interface MetaIndex {
|
|
|
618
636
|
isUnique: boolean;
|
|
619
637
|
name: string;
|
|
620
638
|
}
|
|
621
|
-
/**
|
|
639
|
+
/** Type and field names generated for this table */
|
|
622
640
|
export interface MetaInflection {
|
|
623
641
|
allRows: string;
|
|
624
642
|
conditionType: string;
|
|
@@ -646,7 +664,7 @@ export interface MetaQuery {
|
|
|
646
664
|
one?: string | null;
|
|
647
665
|
update?: string | null;
|
|
648
666
|
}
|
|
649
|
-
/** Realtime metadata for a table with
|
|
667
|
+
/** Realtime metadata for a table with change subscriptions */
|
|
650
668
|
export interface MetaRealtime {
|
|
651
669
|
/** The generated subscription field name (e.g. onPostChanged) */
|
|
652
670
|
subscriptionFieldName: string;
|
|
@@ -661,13 +679,13 @@ export interface MetaRelations {
|
|
|
661
679
|
}
|
|
662
680
|
/** Provisioning scope metadata for a table */
|
|
663
681
|
export interface MetaScope {
|
|
664
|
-
/**
|
|
682
|
+
/** Name of the entity table for entity scopes, else null */
|
|
665
683
|
entityTable?: string | null;
|
|
666
|
-
/**
|
|
684
|
+
/** Field name of the scope key (e.g. databaseId, orgId), null for global tiers */
|
|
667
685
|
keyColumn?: string | null;
|
|
668
686
|
/** Provisioning scope: 'platform', 'app', 'database', or an entity scope (e.g. 'org') */
|
|
669
687
|
scope: string;
|
|
670
|
-
/**
|
|
688
|
+
/** Where this scope metadata comes from */
|
|
671
689
|
source: string;
|
|
672
690
|
/** Coarse bucket: 'global', 'database', or 'entity' */
|
|
673
691
|
tier: string;
|
|
@@ -685,17 +703,17 @@ export interface MetaSearch {
|
|
|
685
703
|
}
|
|
686
704
|
/** Storage metadata for a table */
|
|
687
705
|
export interface MetaStorage {
|
|
688
|
-
/** GraphQL type name of the
|
|
706
|
+
/** GraphQL type name of the paired buckets table */
|
|
689
707
|
bucketsType: string;
|
|
690
708
|
/** Computed download-URL field on the files type; null on the buckets side */
|
|
691
709
|
downloadUrlField?: string | null;
|
|
692
|
-
/** GraphQL type name of the
|
|
710
|
+
/** GraphQL type name of the paired files table */
|
|
693
711
|
filesType: string;
|
|
694
712
|
/** Whether this table is a storage buckets table */
|
|
695
713
|
isBucketsTable: boolean;
|
|
696
714
|
/** Whether this table is a storage files table */
|
|
697
715
|
isFilesTable: boolean;
|
|
698
|
-
/**
|
|
716
|
+
/** Upload mutations and types for this storage */
|
|
699
717
|
upload: MetaStorageUpload;
|
|
700
718
|
}
|
|
701
719
|
/** Information about a unique constraint */
|
|
@@ -710,6 +728,15 @@ export interface MetaEnum {
|
|
|
710
728
|
/** Allowed values for this enum */
|
|
711
729
|
values: string[];
|
|
712
730
|
}
|
|
731
|
+
/** How a field holds files */
|
|
732
|
+
export interface MetaFileField {
|
|
733
|
+
/** GraphQL type name of the files table uploads are recorded in, when this API has exactly one; null otherwise */
|
|
734
|
+
filesType?: string | null;
|
|
735
|
+
/** Whether the field holds a list of files */
|
|
736
|
+
isMultiple: boolean;
|
|
737
|
+
/** image, upload, or attachment. An image or upload holds a file document; an attachment holds a link to a file. */
|
|
738
|
+
kind: string;
|
|
739
|
+
}
|
|
713
740
|
/** Information about a PostgreSQL type */
|
|
714
741
|
export interface MetaType {
|
|
715
742
|
/** Scalar serialization contract (null for plain scalars) */
|
|
@@ -718,7 +745,13 @@ export interface MetaType {
|
|
|
718
745
|
hasDefault?: boolean | null;
|
|
719
746
|
isArray: boolean;
|
|
720
747
|
isNotNull?: boolean | null;
|
|
748
|
+
/** Most characters a text value may hold, or most bits a bit string may hold; for a list, each item. Null when unbounded. */
|
|
749
|
+
maxLength?: number | null;
|
|
721
750
|
pgType: string;
|
|
751
|
+
/** Most significant digits a decimal number may hold. Null when unbounded. */
|
|
752
|
+
precision?: number | null;
|
|
753
|
+
/** Digits a decimal number keeps after the decimal point. Null when unbounded. */
|
|
754
|
+
scale?: number | null;
|
|
722
755
|
subtype?: string | null;
|
|
723
756
|
}
|
|
724
757
|
/** Reference to a related table */
|
|
@@ -737,6 +770,8 @@ export interface MetaBelongsToRelation {
|
|
|
737
770
|
fieldName?: string | null;
|
|
738
771
|
isUnique: boolean;
|
|
739
772
|
keys: MetaField[];
|
|
773
|
+
/** Fields on the referenced table that keys point at, in the same order as keys */
|
|
774
|
+
refKeys: MetaField[];
|
|
740
775
|
references: MetaRefTable;
|
|
741
776
|
type?: string | null;
|
|
742
777
|
}
|
|
@@ -746,6 +781,8 @@ export interface MetaHasRelation {
|
|
|
746
781
|
isUnique: boolean;
|
|
747
782
|
keys: MetaField[];
|
|
748
783
|
referencedBy: MetaRefTable;
|
|
784
|
+
/** Fields on the related table that point at this table, in the same order as keys */
|
|
785
|
+
remoteKeys: MetaField[];
|
|
749
786
|
type?: string | null;
|
|
750
787
|
}
|
|
751
788
|
/** A many-to-many relation via junction table */
|
|
@@ -768,7 +805,7 @@ export interface MetaSearchColumn {
|
|
|
768
805
|
/** Column name (camelCase) */
|
|
769
806
|
name: string;
|
|
770
807
|
}
|
|
771
|
-
/** Per-table search configuration
|
|
808
|
+
/** Per-table search configuration */
|
|
772
809
|
export interface MetaSearchConfig {
|
|
773
810
|
/** Exponential decay factor per day */
|
|
774
811
|
boostRecencyDecay?: number | null;
|
|
@@ -779,7 +816,7 @@ export interface MetaSearchConfig {
|
|
|
779
816
|
/** JSON-encoded per-adapter score weights */
|
|
780
817
|
weights?: string | null;
|
|
781
818
|
}
|
|
782
|
-
/** The
|
|
819
|
+
/** The upload mutations and types for a storage table pair */
|
|
783
820
|
export interface MetaStorageUpload {
|
|
784
821
|
/** Per-file input type inside the bulk input */
|
|
785
822
|
bulkFileInputType: string;
|
|
@@ -797,14 +834,14 @@ export interface MetaStorageUpload {
|
|
|
797
834
|
mutation: string;
|
|
798
835
|
/** Payload type of the single upload mutation */
|
|
799
836
|
payloadType: string;
|
|
800
|
-
/** Whether the upload input requires ownerId
|
|
837
|
+
/** Whether the upload input requires ownerId */
|
|
801
838
|
requiresOwnerId: boolean;
|
|
802
839
|
}
|
|
803
|
-
/** How a client must serialize
|
|
840
|
+
/** How a client must serialize and parse a scalar whose wire format gqlType alone does not settle. Null for plain scalars whose wire format is obvious from gqlType. */
|
|
804
841
|
export interface MetaScalarEncoding {
|
|
805
842
|
/** For 'vector': declared length, else null. */
|
|
806
843
|
dimensions?: number | null;
|
|
807
|
-
/** For 'ltree': values are dot-separated
|
|
844
|
+
/** For 'ltree': true when values are dot-separated paths ('a.b.c'), false when they are slash-separated paths ('/a/b/c'). */
|
|
808
845
|
dotPath?: boolean | null;
|
|
809
846
|
/** For 'vector': element scalar (e.g. 'float'). */
|
|
810
847
|
elementType?: string | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@constructive-io/react",
|
|
3
|
-
"version": "1.21.
|
|
3
|
+
"version": "1.21.35",
|
|
4
4
|
"author": "Constructive <developers@constructive.io>",
|
|
5
5
|
"description": "Constructive React - Auto-generated React Query hooks and ORM client",
|
|
6
6
|
"main": "index.js",
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
],
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@0no-co/graphql.web": "^1.3.3",
|
|
44
|
-
"@constructive-io/graphql-query": "^4.24.
|
|
45
|
-
"@constructive-io/graphql-types": "^3.36.
|
|
44
|
+
"@constructive-io/graphql-query": "^4.24.9",
|
|
45
|
+
"@constructive-io/graphql-types": "^3.36.3",
|
|
46
46
|
"@tanstack/react-query": "^5.90.21",
|
|
47
47
|
"gql-ast": "^3.26.0",
|
|
48
48
|
"graphql": "16.13.0"
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"react": "^18.0.0 || ^19.0.0"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@constructive-io/graphql-codegen": "^5.25.
|
|
54
|
+
"@constructive-io/graphql-codegen": "^5.25.35",
|
|
55
55
|
"@types/node": "^22.19.11",
|
|
56
56
|
"@types/react": "^19.2.18",
|
|
57
57
|
"makage": "^0.8.0",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"tsx": "^4.19.0",
|
|
60
60
|
"typescript": "^6.0.3"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "25a9854fe2554cadb6562192d762fba3bcee6914"
|
|
63
63
|
}
|
|
@@ -25,3 +25,4 @@ __exportStar(require("./useMachineMessagesQuery"), exports);
|
|
|
25
25
|
__exportStar(require("./useMachineMessageQuery"), exports);
|
|
26
26
|
__exportStar(require("./useMachineSessionsQuery"), exports);
|
|
27
27
|
__exportStar(require("./useMachineSessionQuery"), exports);
|
|
28
|
+
__exportStar(require("./useCurrentDatabaseIdQuery"), exports);
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Custom query hook for currentDatabaseId
|
|
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
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
8
|
+
export declare const currentDatabaseIdQueryKey: () => readonly ["currentDatabaseId"];
|
|
9
|
+
/**
|
|
10
|
+
* Query hook for currentDatabaseId
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```tsx
|
|
14
|
+
* const { data, isLoading } = useCurrentDatabaseIdQuery();
|
|
15
|
+
*
|
|
16
|
+
* if (data?.currentDatabaseId) {
|
|
17
|
+
* console.log(data.currentDatabaseId);
|
|
18
|
+
* }
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
export declare function useCurrentDatabaseIdQuery<TData = {
|
|
22
|
+
currentDatabaseId: string | null;
|
|
23
|
+
}>(params?: Omit<UseQueryOptions<{
|
|
24
|
+
currentDatabaseId: string | null;
|
|
25
|
+
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
|
|
26
|
+
/**
|
|
27
|
+
* Fetch currentDatabaseId without React hooks
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```ts
|
|
31
|
+
* const data = await fetchCurrentDatabaseIdQuery();
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
export declare function fetchCurrentDatabaseIdQuery(): Promise<{
|
|
35
|
+
currentDatabaseId: string | null;
|
|
36
|
+
}>;
|
|
37
|
+
/**
|
|
38
|
+
* Prefetch currentDatabaseId for SSR or cache warming
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```ts
|
|
42
|
+
* await prefetchCurrentDatabaseIdQuery(queryClient);
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
export declare function prefetchCurrentDatabaseIdQuery(queryClient: QueryClient): Promise<void>;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Custom query hook for currentDatabaseId
|
|
4
|
+
* @generated by @constructive-io/graphql-codegen
|
|
5
|
+
* DO NOT EDIT - changes will be overwritten
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.currentDatabaseIdQueryKey = void 0;
|
|
9
|
+
exports.useCurrentDatabaseIdQuery = useCurrentDatabaseIdQuery;
|
|
10
|
+
exports.fetchCurrentDatabaseIdQuery = fetchCurrentDatabaseIdQuery;
|
|
11
|
+
exports.prefetchCurrentDatabaseIdQuery = prefetchCurrentDatabaseIdQuery;
|
|
12
|
+
const react_query_1 = require("@tanstack/react-query");
|
|
13
|
+
const client_1 = require("../client");
|
|
14
|
+
const query_keys_1 = require("../query-keys");
|
|
15
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
16
|
+
exports.currentDatabaseIdQueryKey = query_keys_1.customQueryKeys.currentDatabaseId;
|
|
17
|
+
function useCurrentDatabaseIdQuery(params) {
|
|
18
|
+
const queryOptions = params ?? {};
|
|
19
|
+
return (0, react_query_1.useQuery)({
|
|
20
|
+
queryKey: (0, exports.currentDatabaseIdQueryKey)(),
|
|
21
|
+
queryFn: () => (0, client_1.getClient)().query.currentDatabaseId().unwrap(),
|
|
22
|
+
...queryOptions,
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Fetch currentDatabaseId without React hooks
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```ts
|
|
30
|
+
* const data = await fetchCurrentDatabaseIdQuery();
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
async function fetchCurrentDatabaseIdQuery() {
|
|
34
|
+
return (0, client_1.getClient)().query.currentDatabaseId().unwrap();
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Prefetch currentDatabaseId for SSR or cache warming
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* ```ts
|
|
41
|
+
* await prefetchCurrentDatabaseIdQuery(queryClient);
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
async function prefetchCurrentDatabaseIdQuery(queryClient) {
|
|
45
|
+
await queryClient.prefetchQuery({
|
|
46
|
+
queryKey: (0, exports.currentDatabaseIdQueryKey)(),
|
|
47
|
+
queryFn: () => (0, client_1.getClient)().query.currentDatabaseId().unwrap(),
|
|
48
|
+
});
|
|
49
|
+
}
|
|
@@ -24,6 +24,9 @@ export declare const machineSessionKeys: {
|
|
|
24
24
|
/** Detail query keys */ readonly details: () => readonly ["machinesession", "detail"];
|
|
25
25
|
/** Detail query key for specific item */ readonly detail: (id: string | number) => readonly ["machinesession", "detail", string | number];
|
|
26
26
|
};
|
|
27
|
+
export declare const customQueryKeys: {
|
|
28
|
+
/** Query key for currentDatabaseId */ readonly currentDatabaseId: () => readonly ["currentDatabaseId"];
|
|
29
|
+
};
|
|
27
30
|
/**
|
|
28
31
|
|
|
29
32
|
// ============================================================================
|
|
@@ -68,6 +71,9 @@ export declare const queryKeys: {
|
|
|
68
71
|
/** Detail query keys */ readonly details: () => readonly ["machinesession", "detail"];
|
|
69
72
|
/** Detail query key for specific item */ readonly detail: (id: string | number) => readonly ["machinesession", "detail", string | number];
|
|
70
73
|
};
|
|
74
|
+
readonly custom: {
|
|
75
|
+
/** Query key for currentDatabaseId */ readonly currentDatabaseId: () => readonly ["currentDatabaseId"];
|
|
76
|
+
};
|
|
71
77
|
};
|
|
72
78
|
/** Type representing all available query key scopes */
|
|
73
79
|
export type QueryKeyScope = keyof typeof queryKeys;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* DO NOT EDIT - changes will be overwritten
|
|
6
6
|
*/
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.queryKeys = exports.machineSessionKeys = exports.machineMessageKeys = exports.machineKeys = void 0;
|
|
8
|
+
exports.queryKeys = exports.customQueryKeys = exports.machineSessionKeys = exports.machineMessageKeys = exports.machineKeys = void 0;
|
|
9
9
|
// ============================================================================
|
|
10
10
|
// This file provides a centralized, type-safe query key factory following
|
|
11
11
|
// the lukemorales query-key-factory pattern for React Query.
|
|
@@ -40,6 +40,12 @@ exports.machineSessionKeys = {
|
|
|
40
40
|
/** Detail query keys */ details: () => [...exports.machineSessionKeys.all, 'detail'],
|
|
41
41
|
/** Detail query key for specific item */ detail: (id) => [...exports.machineSessionKeys.details(), id],
|
|
42
42
|
};
|
|
43
|
+
// ============================================================================
|
|
44
|
+
// Custom Query Keys
|
|
45
|
+
// ============================================================================
|
|
46
|
+
exports.customQueryKeys = {
|
|
47
|
+
/** Query key for currentDatabaseId */ currentDatabaseId: () => ['currentDatabaseId'],
|
|
48
|
+
};
|
|
43
49
|
/**
|
|
44
50
|
|
|
45
51
|
// ============================================================================
|
|
@@ -66,4 +72,5 @@ exports.queryKeys = {
|
|
|
66
72
|
machine: exports.machineKeys,
|
|
67
73
|
machineMessage: exports.machineMessageKeys,
|
|
68
74
|
machineSession: exports.machineSessionKeys,
|
|
75
|
+
custom: exports.customQueryKeys,
|
|
69
76
|
};
|
package/remote/orm/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export { GraphQLRequestError, FetchAdapter } from './client';
|
|
|
7
7
|
export { QueryBuilder } from './query-builder';
|
|
8
8
|
export * from './select-types';
|
|
9
9
|
export * from './models';
|
|
10
|
+
export { createQueryOperations } from './query';
|
|
10
11
|
export { createMutationOperations } from './mutation';
|
|
11
12
|
/**
|
|
12
13
|
* Create an ORM client instance
|
|
@@ -35,6 +36,13 @@ export declare function createClient(config: OrmClientConfig): {
|
|
|
35
36
|
machine: MachineModel;
|
|
36
37
|
machineMessage: MachineMessageModel;
|
|
37
38
|
machineSession: MachineSessionModel;
|
|
39
|
+
query: {
|
|
40
|
+
currentDatabaseId: (options?: {
|
|
41
|
+
select?: Record<string, unknown>;
|
|
42
|
+
}) => import("./query-builder").QueryBuilder<{
|
|
43
|
+
currentDatabaseId: string | null;
|
|
44
|
+
}>;
|
|
45
|
+
};
|
|
38
46
|
mutation: {
|
|
39
47
|
machinesEnroll: <S extends import("./input-types").MachinesEnrollPayloadSelect>(args: import("./mutation").MachinesEnrollVariables, options: {
|
|
40
48
|
select: S;
|
package/remote/orm/index.js
CHANGED
|
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.createMutationOperations = exports.QueryBuilder = exports.FetchAdapter = exports.GraphQLRequestError = void 0;
|
|
17
|
+
exports.createMutationOperations = exports.createQueryOperations = exports.QueryBuilder = exports.FetchAdapter = exports.GraphQLRequestError = void 0;
|
|
18
18
|
exports.createClient = createClient;
|
|
19
19
|
/**
|
|
20
20
|
* ORM Client - createClient factory
|
|
@@ -25,6 +25,7 @@ const client_1 = require("./client");
|
|
|
25
25
|
const machine_1 = require("./models/machine");
|
|
26
26
|
const machineMessage_1 = require("./models/machineMessage");
|
|
27
27
|
const machineSession_1 = require("./models/machineSession");
|
|
28
|
+
const query_1 = require("./query");
|
|
28
29
|
const mutation_1 = require("./mutation");
|
|
29
30
|
var client_2 = require("./client");
|
|
30
31
|
Object.defineProperty(exports, "GraphQLRequestError", { enumerable: true, get: function () { return client_2.GraphQLRequestError; } });
|
|
@@ -33,6 +34,8 @@ var query_builder_1 = require("./query-builder");
|
|
|
33
34
|
Object.defineProperty(exports, "QueryBuilder", { enumerable: true, get: function () { return query_builder_1.QueryBuilder; } });
|
|
34
35
|
__exportStar(require("./select-types"), exports);
|
|
35
36
|
__exportStar(require("./models"), exports);
|
|
37
|
+
var query_2 = require("./query");
|
|
38
|
+
Object.defineProperty(exports, "createQueryOperations", { enumerable: true, get: function () { return query_2.createQueryOperations; } });
|
|
36
39
|
var mutation_2 = require("./mutation");
|
|
37
40
|
Object.defineProperty(exports, "createMutationOperations", { enumerable: true, get: function () { return mutation_2.createMutationOperations; } });
|
|
38
41
|
/**
|
|
@@ -64,6 +67,7 @@ function createClient(config) {
|
|
|
64
67
|
machine: new machine_1.MachineModel(client),
|
|
65
68
|
machineMessage: new machineMessage_1.MachineMessageModel(client),
|
|
66
69
|
machineSession: new machineSession_1.MachineSessionModel(client),
|
|
70
|
+
query: (0, query_1.createQueryOperations)(client),
|
|
67
71
|
mutation: (0, mutation_1.createMutationOperations)(client),
|
|
68
72
|
};
|
|
69
73
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Custom query operations
|
|
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
|
+
export declare function createQueryOperations(client: OrmClient): {
|
|
9
|
+
currentDatabaseId: (options?: {
|
|
10
|
+
select?: Record<string, unknown>;
|
|
11
|
+
}) => QueryBuilder<{
|
|
12
|
+
currentDatabaseId: string | null;
|
|
13
|
+
}>;
|
|
14
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createQueryOperations = createQueryOperations;
|
|
4
|
+
const query_builder_1 = require("../query-builder");
|
|
5
|
+
const input_types_1 = require("../input-types");
|
|
6
|
+
function createQueryOperations(client) {
|
|
7
|
+
return {
|
|
8
|
+
currentDatabaseId: (options) => new query_builder_1.QueryBuilder({
|
|
9
|
+
client,
|
|
10
|
+
operation: 'query',
|
|
11
|
+
operationName: 'CurrentDatabaseId',
|
|
12
|
+
fieldName: 'currentDatabaseId',
|
|
13
|
+
...(0, query_builder_1.buildCustomDocument)('query', 'CurrentDatabaseId', 'currentDatabaseId', options?.select, undefined, [], input_types_1.connectionFieldsMap, undefined),
|
|
14
|
+
}),
|
|
15
|
+
};
|
|
16
|
+
}
|