From 8e6699611c79b9c5a3f5a99f212bed0caf6dfc3f Mon Sep 17 00:00:00 2001 From: Dan Lynch Date: Mon, 15 Jun 2026 06:10:35 +0000 Subject: [PATCH 1/3] feat: worker dynamic secret/resource resolution for resource association - Add SecretsLoader to @constructive-io/module-loader that queries config_secrets_module from metaschema and resolves secrets by name within a namespace scope (TTL-cached, multi-database aware) - Extend FunctionContext with namespace, buckets, and apis fields for resource association (secrets go into env, not a new field) - Add resolveAndInjectSecrets to ComputeWorker (compute-worker): reads required_secrets/required_configs from the function definition, resolves values from DB, injects into process.env before dispatch - Add secret resolution to legacy Worker (job/worker) for backward compatibility with the new secret resolution flow - Create stub function handlers: - namespace-provision: validates namespace_name, inserts created event - function-provision: validates service_url, checks required secrets - function-sync-resources: resolves all declared resources, logs warnings Ref: constructive-io/constructive-planning#1062 --- functions/function-provision/handler.json | 67 +++++++++ functions/function-provision/handler.ts | 92 +++++++++++++ .../function-sync-resources/handler.json | 86 ++++++++++++ functions/function-sync-resources/handler.ts | 122 +++++++++++++++++ functions/namespace-provision/handler.json | 49 +++++++ functions/namespace-provision/handler.ts | 75 ++++++++++ job/compute-worker/src/discovery.ts | 2 +- job/compute-worker/src/index.ts | 60 +++++++- job/compute-worker/src/module-loader.ts | 2 +- job/worker/src/compute-meter.ts | 4 +- job/worker/src/graph-complete.ts | 2 +- job/worker/src/index.ts | 29 +++- job/worker/src/storage-meter.ts | 4 +- job/worker/src/usage-client.ts | 21 ++- packages/fn-types/src/index.ts | 2 + packages/fn-types/src/runtime.ts | 22 +++ packages/module-loader/src/index.ts | 3 + packages/module-loader/src/module-loader.ts | 21 +++ packages/module-loader/src/secrets-loader.ts | 128 ++++++++++++++++++ packages/module-loader/src/types.ts | 14 ++ pnpm-lock.yaml | 48 +++++++ .../cli/commands.ts | 87 ++++++------ .../cli/commands/api/org-secrets-del.ts | 7 +- .../commands/api/org-secrets-remove-array.ts | 7 +- .../cli/commands/api/org-secrets-set.ts | 7 +- .../cli/commands/api/platform-bucket.ts | 15 +- .../api/platform-config-definition.ts | 15 +- .../cli/commands/api/platform-config.ts | 15 +- .../cli/commands/api/platform-file.ts | 15 +- .../cli/commands/api/platform-files-rename.ts | 7 +- .../commands/api/platform-namespace-event.ts | 15 +- .../cli/commands/api/platform-namespace.ts | 15 +- .../cli/commands/api/platform-secrets-del.ts | 7 +- .../cli/commands/api/platform-secrets-set.ts | 7 +- .../cli/commands/api/provision-bucket.ts | 7 +- .../cli/commands/api/role-type.ts | 15 +- .../cli/commands/api/upload-platform-file.ts | 7 +- .../cli/commands/api/upload-platform-files.ts | 7 +- .../cli/commands/api/user.ts | 15 +- .../cli/commands/auth.ts | 3 +- .../cli/commands/compute/get-all-record.ts | 14 +- .../cli/commands/compute/init-empty-repo.ts | 7 +- .../commands/compute/insert-node-at-path.ts | 7 +- .../compute/org-function-execution-log.ts | 15 +- .../compute/org-function-invocation.ts | 15 +- .../compute/platform-add-edge-and-save.ts | 7 +- .../cli/commands/compute/platform-add-edge.ts | 7 +- .../compute/platform-add-node-and-save.ts | 7 +- .../cli/commands/compute/platform-add-node.ts | 7 +- .../commands/compute/platform-compute-log.ts | 15 +- .../commands/compute/platform-copy-graph.ts | 7 +- .../compute/platform-create-function-graph.ts | 7 +- .../compute/platform-function-definition.ts | 15 +- .../platform-function-execution-log.ts | 15 +- .../compute/platform-function-graph-commit.ts | 15 +- ...orm-function-graph-execution-node-state.ts | 15 +- ...latform-function-graph-execution-output.ts | 15 +- .../platform-function-graph-execution.ts | 15 +- .../compute/platform-function-graph-object.ts | 15 +- .../compute/platform-function-graph-ref.ts | 15 +- .../compute/platform-function-graph-store.ts | 15 +- .../compute/platform-function-graph.ts | 15 +- .../compute/platform-function-invocation.ts | 15 +- .../compute/platform-import-definitions.ts | 7 +- .../compute/platform-import-graph-json.ts | 7 +- .../compute/platform-read-function-graph.ts | 3 +- .../commands/compute/platform-save-graph.ts | 7 +- .../compute/platform-secret-definition.ts | 15 +- .../compute/platform-start-execution.ts | 7 +- .../commands/compute/platform-usage-daily.ts | 15 +- .../platform-validate-function-graph.ts | 7 +- .../cli/commands/compute/provision-bucket.ts | 7 +- .../cli/commands/compute/set-data-at-path.ts | 7 +- .../cli/commands/config.ts | 3 +- .../cli/commands/context.ts | 3 +- .../cli/commands/objects/commit.ts | 17 +-- .../cli/commands/objects/get-all-record.ts | 14 +- .../cli/commands/objects/init-empty-repo.ts | 7 +- .../commands/objects/insert-node-at-path.ts | 7 +- .../cli/commands/objects/object.ts | 15 +- .../cli/commands/objects/provision-bucket.ts | 7 +- .../cli/commands/objects/ref.ts | 15 +- .../cli/commands/objects/set-data-at-path.ts | 7 +- .../cli/commands/objects/store.ts | 15 +- .../cli/executor.ts | 1 + sdk/constructive-functions-cli/cli/helpers.ts | 3 +- sdk/constructive-functions-cli/cli/index.ts | 1 + .../src/api/hooks/index.ts | 6 +- .../src/api/hooks/invalidation.ts | 9 +- .../src/api/hooks/mutations/index.ts | 46 +++---- .../useCreatePlatformBucketMutation.ts | 19 +-- ...eCreatePlatformConfigDefinitionMutation.ts | 19 +-- .../useCreatePlatformConfigMutation.ts | 19 +-- .../useCreatePlatformFileMutation.ts | 19 +-- ...useCreatePlatformNamespaceEventMutation.ts | 19 +-- .../useCreatePlatformNamespaceMutation.ts | 19 +-- .../mutations/useCreateRoleTypeMutation.ts | 19 +-- .../hooks/mutations/useCreateUserMutation.ts | 15 +- .../useDeletePlatformBucketMutation.ts | 13 +- ...eDeletePlatformConfigDefinitionMutation.ts | 15 +- .../useDeletePlatformConfigMutation.ts | 13 +- .../useDeletePlatformFileMutation.ts | 13 +- ...useDeletePlatformNamespaceEventMutation.ts | 15 +- .../useDeletePlatformNamespaceMutation.ts | 15 +- .../mutations/useDeleteRoleTypeMutation.ts | 13 +- .../hooks/mutations/useDeleteUserMutation.ts | 13 +- .../mutations/useOrgSecretsDelMutation.ts | 14 +- .../useOrgSecretsRemoveArrayMutation.ts | 18 +-- .../mutations/useOrgSecretsSetMutation.ts | 14 +- .../usePlatformFilesRenameMutation.ts | 18 +-- .../usePlatformSecretsDelMutation.ts | 18 +-- .../usePlatformSecretsSetMutation.ts | 18 +-- .../mutations/useProvisionBucketMutation.ts | 14 +- .../useUpdatePlatformBucketMutation.ts | 19 +-- ...eUpdatePlatformConfigDefinitionMutation.ts | 19 +-- .../useUpdatePlatformConfigMutation.ts | 19 +-- .../useUpdatePlatformFileMutation.ts | 19 +-- ...useUpdatePlatformNamespaceEventMutation.ts | 19 +-- .../useUpdatePlatformNamespaceMutation.ts | 19 +-- .../mutations/useUpdateRoleTypeMutation.ts | 15 +- .../hooks/mutations/useUpdateUserMutation.ts | 15 +- .../useUploadPlatformFileMutation.ts | 18 +-- .../useUploadPlatformFilesMutation.ts | 18 +-- .../src/api/hooks/queries/index.ts | 24 ++-- .../hooks/queries/usePlatformBucketQuery.ts | 11 +- .../hooks/queries/usePlatformBucketsQuery.ts | 22 +-- .../usePlatformConfigDefinitionQuery.ts | 13 +- .../usePlatformConfigDefinitionsQuery.ts | 22 +-- .../hooks/queries/usePlatformConfigQuery.ts | 11 +- .../hooks/queries/usePlatformConfigsQuery.ts | 22 +-- .../api/hooks/queries/usePlatformFileQuery.ts | 11 +- .../hooks/queries/usePlatformFilesQuery.ts | 22 +-- .../queries/usePlatformNamespaceEventQuery.ts | 13 +- .../usePlatformNamespaceEventsQuery.ts | 22 +-- .../queries/usePlatformNamespaceQuery.ts | 13 +- .../queries/usePlatformNamespacesQuery.ts | 22 +-- .../src/api/hooks/queries/useRoleTypeQuery.ts | 11 +- .../api/hooks/queries/useRoleTypesQuery.ts | 22 +-- .../src/api/hooks/queries/useUserQuery.ts | 11 +- .../src/api/hooks/queries/useUsersQuery.ts | 18 +-- .../src/api/index.ts | 2 +- .../src/api/orm/client.ts | 12 +- .../src/api/orm/index.ts | 20 +-- .../src/api/orm/models/index.ts | 10 +- .../src/api/orm/models/platformBucket.ts | 35 +++-- .../src/api/orm/models/platformConfig.ts | 35 +++-- .../orm/models/platformConfigDefinition.ts | 35 +++-- .../src/api/orm/models/platformFile.ts | 35 +++-- .../src/api/orm/models/platformNamespace.ts | 35 +++-- .../api/orm/models/platformNamespaceEvent.ts | 35 +++-- .../src/api/orm/models/roleType.ts | 35 +++-- .../src/api/orm/models/user.ts | 35 +++-- .../src/api/orm/mutation/index.ts | 44 +++--- .../src/api/schema-types.ts | 22 +-- .../src/compute/hooks/index.ts | 6 +- .../src/compute/hooks/invalidation.ts | 23 ++-- .../src/compute/hooks/mutations/index.ts | 98 +++++++------- .../useCreateGetAllRecordMutation.ts | 19 +-- ...seCreateOrgFunctionExecutionLogMutation.ts | 19 +-- .../useCreateOrgFunctionInvocationMutation.ts | 19 +-- .../useCreatePlatformComputeLogMutation.ts | 19 +-- ...reatePlatformFunctionDefinitionMutation.ts | 19 +-- ...atePlatformFunctionExecutionLogMutation.ts | 19 +-- ...eatePlatformFunctionGraphCommitMutation.ts | 19 +-- ...ePlatformFunctionGraphExecutionMutation.ts | 19 +-- ...FunctionGraphExecutionNodeStateMutation.ts | 19 +-- ...ormFunctionGraphExecutionOutputMutation.ts | 19 +-- .../useCreatePlatformFunctionGraphMutation.ts | 19 +-- ...eatePlatformFunctionGraphObjectMutation.ts | 19 +-- ...eCreatePlatformFunctionGraphRefMutation.ts | 19 +-- ...reatePlatformFunctionGraphStoreMutation.ts | 19 +-- ...reatePlatformFunctionInvocationMutation.ts | 19 +-- ...eCreatePlatformSecretDefinitionMutation.ts | 19 +-- .../useCreatePlatformUsageDailyMutation.ts | 19 +-- ...seDeleteOrgFunctionExecutionLogMutation.ts | 15 +- .../useDeleteOrgFunctionInvocationMutation.ts | 15 +- .../useDeletePlatformComputeLogMutation.ts | 15 +- ...eletePlatformFunctionDefinitionMutation.ts | 15 +- ...etePlatformFunctionExecutionLogMutation.ts | 15 +- ...letePlatformFunctionGraphCommitMutation.ts | 15 +- ...ePlatformFunctionGraphExecutionMutation.ts | 15 +- ...FunctionGraphExecutionNodeStateMutation.ts | 15 +- ...ormFunctionGraphExecutionOutputMutation.ts | 15 +- .../useDeletePlatformFunctionGraphMutation.ts | 15 +- ...letePlatformFunctionGraphObjectMutation.ts | 15 +- ...eDeletePlatformFunctionGraphRefMutation.ts | 15 +- ...eletePlatformFunctionGraphStoreMutation.ts | 15 +- ...eletePlatformFunctionInvocationMutation.ts | 15 +- ...eDeletePlatformSecretDefinitionMutation.ts | 15 +- .../useDeletePlatformUsageDailyMutation.ts | 15 +- .../mutations/useInitEmptyRepoMutation.ts | 14 +- .../mutations/useInsertNodeAtPathMutation.ts | 14 +- .../usePlatformAddEdgeAndSaveMutation.ts | 18 +-- .../mutations/usePlatformAddEdgeMutation.ts | 14 +- .../usePlatformAddNodeAndSaveMutation.ts | 18 +-- .../mutations/usePlatformAddNodeMutation.ts | 14 +- .../mutations/usePlatformCopyGraphMutation.ts | 18 +-- .../usePlatformCreateFunctionGraphMutation.ts | 18 +-- .../usePlatformImportDefinitionsMutation.ts | 18 +-- .../usePlatformImportGraphJsonMutation.ts | 18 +-- .../mutations/usePlatformSaveGraphMutation.ts | 18 +-- .../usePlatformStartExecutionMutation.ts | 18 +-- ...sePlatformValidateFunctionGraphMutation.ts | 18 +-- .../mutations/useProvisionBucketMutation.ts | 14 +- .../mutations/useSetDataAtPathMutation.ts | 14 +- ...seUpdateOrgFunctionExecutionLogMutation.ts | 19 +-- .../useUpdateOrgFunctionInvocationMutation.ts | 19 +-- .../useUpdatePlatformComputeLogMutation.ts | 19 +-- ...pdatePlatformFunctionDefinitionMutation.ts | 19 +-- ...atePlatformFunctionExecutionLogMutation.ts | 19 +-- ...datePlatformFunctionGraphCommitMutation.ts | 19 +-- ...ePlatformFunctionGraphExecutionMutation.ts | 19 +-- ...FunctionGraphExecutionNodeStateMutation.ts | 19 +-- ...ormFunctionGraphExecutionOutputMutation.ts | 19 +-- .../useUpdatePlatformFunctionGraphMutation.ts | 19 +-- ...datePlatformFunctionGraphObjectMutation.ts | 19 +-- ...eUpdatePlatformFunctionGraphRefMutation.ts | 19 +-- ...pdatePlatformFunctionGraphStoreMutation.ts | 19 +-- ...pdatePlatformFunctionInvocationMutation.ts | 19 +-- ...eUpdatePlatformSecretDefinitionMutation.ts | 19 +-- .../useUpdatePlatformUsageDailyMutation.ts | 19 +-- .../src/compute/hooks/queries/index.ts | 54 ++++---- .../compute/hooks/queries/useGetAllQuery.ts | 22 +-- .../useOrgFunctionExecutionLogQuery.ts | 13 +- .../useOrgFunctionExecutionLogsQuery.ts | 22 +-- .../queries/useOrgFunctionInvocationQuery.ts | 13 +- .../queries/useOrgFunctionInvocationsQuery.ts | 22 +-- .../queries/usePlatformComputeLogQuery.ts | 13 +- .../queries/usePlatformComputeLogsQuery.ts | 22 +-- .../usePlatformFunctionDefinitionQuery.ts | 13 +- .../usePlatformFunctionDefinitionsQuery.ts | 22 +-- .../usePlatformFunctionExecutionLogQuery.ts | 13 +- .../usePlatformFunctionExecutionLogsQuery.ts | 22 +-- .../usePlatformFunctionGraphCommitQuery.ts | 13 +- .../usePlatformFunctionGraphCommitsQuery.ts | 22 +-- ...ormFunctionGraphExecutionNodeStateQuery.ts | 13 +- ...rmFunctionGraphExecutionNodeStatesQuery.ts | 22 +-- ...atformFunctionGraphExecutionOutputQuery.ts | 13 +- ...tformFunctionGraphExecutionOutputsQuery.ts | 22 +-- .../usePlatformFunctionGraphExecutionQuery.ts | 13 +- ...usePlatformFunctionGraphExecutionsQuery.ts | 22 +-- .../usePlatformFunctionGraphObjectQuery.ts | 13 +- .../usePlatformFunctionGraphObjectsQuery.ts | 22 +-- .../queries/usePlatformFunctionGraphQuery.ts | 13 +- .../usePlatformFunctionGraphRefQuery.ts | 13 +- .../usePlatformFunctionGraphRefsQuery.ts | 22 +-- .../usePlatformFunctionGraphStoreQuery.ts | 13 +- .../usePlatformFunctionGraphStoresQuery.ts | 22 +-- .../queries/usePlatformFunctionGraphsQuery.ts | 22 +-- .../usePlatformFunctionInvocationQuery.ts | 13 +- .../usePlatformFunctionInvocationsQuery.ts | 22 +-- .../usePlatformReadFunctionGraphQuery.ts | 7 +- .../usePlatformSecretDefinitionQuery.ts | 13 +- .../usePlatformSecretDefinitionsQuery.ts | 22 +-- .../queries/usePlatformUsageDailiesQuery.ts | 22 +-- .../queries/usePlatformUsageDailyQuery.ts | 13 +- .../src/compute/index.ts | 2 +- .../src/compute/orm/client.ts | 12 +- .../src/compute/orm/index.ts | 38 +++--- .../src/compute/orm/models/getAllRecord.ts | 34 ++--- .../src/compute/orm/models/index.ts | 24 ++-- .../orm/models/orgFunctionExecutionLog.ts | 35 +++-- .../orm/models/orgFunctionInvocation.ts | 35 +++-- .../compute/orm/models/platformComputeLog.ts | 35 +++-- .../orm/models/platformFunctionDefinition.ts | 35 +++-- .../models/platformFunctionExecutionLog.ts | 35 +++-- .../orm/models/platformFunctionGraph.ts | 35 +++-- .../orm/models/platformFunctionGraphCommit.ts | 35 +++-- .../models/platformFunctionGraphExecution.ts | 35 +++-- ...platformFunctionGraphExecutionNodeState.ts | 35 +++-- .../platformFunctionGraphExecutionOutput.ts | 35 +++-- .../orm/models/platformFunctionGraphObject.ts | 34 +++-- .../orm/models/platformFunctionGraphRef.ts | 35 +++-- .../orm/models/platformFunctionGraphStore.ts | 35 +++-- .../orm/models/platformFunctionInvocation.ts | 35 +++-- .../orm/models/platformSecretDefinition.ts | 35 +++-- .../compute/orm/models/platformUsageDaily.ts | 35 +++-- .../src/compute/orm/mutation/index.ts | 74 +++++----- .../src/compute/orm/query/index.ts | 3 +- .../src/compute/schema-types.ts | 19 +-- .../src/objects/hooks/index.ts | 6 +- .../src/objects/hooks/invalidation.ts | 3 +- .../src/objects/hooks/mutations/index.ts | 22 +-- .../mutations/useCreateCommitMutation.ts | 13 +- .../useCreateGetAllRecordMutation.ts | 19 +-- .../mutations/useCreateObjectMutation.ts | 15 +- .../hooks/mutations/useCreateRefMutation.ts | 15 +- .../hooks/mutations/useCreateStoreMutation.ts | 15 +- .../mutations/useDeleteCommitMutation.ts | 13 +- .../mutations/useDeleteObjectMutation.ts | 13 +- .../hooks/mutations/useDeleteRefMutation.ts | 13 +- .../hooks/mutations/useDeleteStoreMutation.ts | 13 +- .../mutations/useInitEmptyRepoMutation.ts | 14 +- .../mutations/useInsertNodeAtPathMutation.ts | 14 +- .../mutations/useProvisionBucketMutation.ts | 14 +- .../mutations/useSetDataAtPathMutation.ts | 14 +- .../mutations/useUpdateCommitMutation.ts | 15 +- .../mutations/useUpdateObjectMutation.ts | 15 +- .../hooks/mutations/useUpdateRefMutation.ts | 15 +- .../hooks/mutations/useUpdateStoreMutation.ts | 15 +- .../src/objects/hooks/queries/index.ts | 14 +- .../objects/hooks/queries/useCommitQuery.ts | 11 +- .../objects/hooks/queries/useCommitsQuery.ts | 22 +-- .../objects/hooks/queries/useGetAllQuery.ts | 22 +-- .../objects/hooks/queries/useObjectQuery.ts | 11 +- .../objects/hooks/queries/useObjectsQuery.ts | 22 +-- .../src/objects/hooks/queries/useRefQuery.ts | 11 +- .../src/objects/hooks/queries/useRefsQuery.ts | 18 +-- .../objects/hooks/queries/useStoreQuery.ts | 11 +- .../objects/hooks/queries/useStoresQuery.ts | 22 +-- .../src/objects/index.ts | 2 +- .../src/objects/orm/client.ts | 12 +- .../src/objects/orm/index.ts | 16 +-- .../src/objects/orm/models/commit.ts | 35 +++-- .../src/objects/orm/models/getAllRecord.ts | 34 ++--- .../src/objects/orm/models/index.ts | 6 +- .../src/objects/orm/models/object.ts | 34 +++-- .../src/objects/orm/models/ref.ts | 35 +++-- .../src/objects/orm/models/store.ts | 35 +++-- .../src/objects/orm/mutation/index.ts | 18 +-- .../src/objects/schema-types.ts | 15 +- .../src/api/orm/client.ts | 12 +- .../src/api/orm/index.ts | 20 +-- .../src/api/orm/models/index.ts | 10 +- .../src/api/orm/models/platformBucket.ts | 35 +++-- .../src/api/orm/models/platformConfig.ts | 35 +++-- .../orm/models/platformConfigDefinition.ts | 35 +++-- .../src/api/orm/models/platformFile.ts | 35 +++-- .../src/api/orm/models/platformNamespace.ts | 35 +++-- .../api/orm/models/platformNamespaceEvent.ts | 35 +++-- .../src/api/orm/models/roleType.ts | 35 +++-- .../src/api/orm/models/user.ts | 35 +++-- .../src/api/orm/mutation/index.ts | 44 +++--- .../src/compute/orm/client.ts | 12 +- .../src/compute/orm/index.ts | 38 +++--- .../src/compute/orm/models/getAllRecord.ts | 34 ++--- .../src/compute/orm/models/index.ts | 24 ++-- .../orm/models/orgFunctionExecutionLog.ts | 35 +++-- .../orm/models/orgFunctionInvocation.ts | 35 +++-- .../compute/orm/models/platformComputeLog.ts | 35 +++-- .../orm/models/platformFunctionDefinition.ts | 35 +++-- .../models/platformFunctionExecutionLog.ts | 35 +++-- .../orm/models/platformFunctionGraph.ts | 35 +++-- .../orm/models/platformFunctionGraphCommit.ts | 35 +++-- .../models/platformFunctionGraphExecution.ts | 35 +++-- ...platformFunctionGraphExecutionNodeState.ts | 35 +++-- .../platformFunctionGraphExecutionOutput.ts | 35 +++-- .../orm/models/platformFunctionGraphObject.ts | 34 +++-- .../orm/models/platformFunctionGraphRef.ts | 35 +++-- .../orm/models/platformFunctionGraphStore.ts | 35 +++-- .../orm/models/platformFunctionInvocation.ts | 35 +++-- .../orm/models/platformSecretDefinition.ts | 35 +++-- .../compute/orm/models/platformUsageDaily.ts | 35 +++-- .../src/compute/orm/mutation/index.ts | 74 +++++----- .../src/compute/orm/query/index.ts | 3 +- .../src/objects/orm/client.ts | 12 +- .../src/objects/orm/index.ts | 16 +-- .../src/objects/orm/models/commit.ts | 35 +++-- .../src/objects/orm/models/getAllRecord.ts | 34 ++--- .../src/objects/orm/models/index.ts | 6 +- .../src/objects/orm/models/object.ts | 34 +++-- .../src/objects/orm/models/ref.ts | 35 +++-- .../src/objects/orm/models/store.ts | 35 +++-- .../src/objects/orm/mutation/index.ts | 18 +-- 364 files changed, 4159 insertions(+), 3402 deletions(-) create mode 100644 functions/function-provision/handler.json create mode 100644 functions/function-provision/handler.ts create mode 100644 functions/function-sync-resources/handler.json create mode 100644 functions/function-sync-resources/handler.ts create mode 100644 functions/namespace-provision/handler.json create mode 100644 functions/namespace-provision/handler.ts create mode 100644 packages/module-loader/src/secrets-loader.ts diff --git a/functions/function-provision/handler.json b/functions/function-provision/handler.json new file mode 100644 index 000000000..534cf959a --- /dev/null +++ b/functions/function-provision/handler.json @@ -0,0 +1,67 @@ +{ + "name": "function-provision", + "version": "0.1.0", + "type": "node-graphql", + "port": 8091, + "taskIdentifier": "function-provision", + "scope": "platform", + "description": "Provisions a cloud function — validates service_url or generates gateway URL, validates required secrets exist in the function's namespace", + "requiredSecrets": [], + "requiredConfigs": [], + "payloadSchema": { + "type": "object", + "required": ["function_id"], + "properties": { + "function_id": { + "type": "string", + "format": "uuid", + "description": "UUID of the function definition to provision" + }, + "name": { + "type": "string", + "description": "Function name / task_identifier" + }, + "service_url": { + "type": "string", + "description": "Explicit service URL (if already known)" + }, + "namespace_name": { + "type": "string", + "description": "Namespace the function belongs to" + }, + "required_secrets": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { "type": "string" }, + "required": { "type": "boolean" } + } + }, + "description": "Secrets this function requires" + }, + "database_id": { + "type": "string", + "format": "uuid", + "description": "Database ID for the owning tenant/platform" + } + }, + "additionalProperties": true + }, + "inputs": [ + { "name": "function_id", "type": "string", "description": "UUID of the function definition" }, + { "name": "name", "type": "string", "description": "Function name", "optional": true }, + { "name": "service_url", "type": "string", "description": "Explicit service URL", "optional": true }, + { "name": "namespace_name", "type": "string", "description": "Namespace name", "optional": true }, + { "name": "required_secrets", "type": "json", "description": "Required secrets array", "optional": true }, + { "name": "database_id", "type": "string", "description": "Owning database ID", "optional": true } + ], + "outputs": [ + { "name": "status", "type": "string", "description": "Provisioning result status" }, + { "name": "service_url", "type": "string", "description": "Resolved service URL" }, + { "name": "missing_secrets", "type": "json", "description": "List of missing required secrets (if any)" } + ], + "icon": "cloud", + "category": "infrastructure", + "dependencies": {} +} diff --git a/functions/function-provision/handler.ts b/functions/function-provision/handler.ts new file mode 100644 index 000000000..d53726e2d --- /dev/null +++ b/functions/function-provision/handler.ts @@ -0,0 +1,92 @@ +import type { FunctionHandler } from '@constructive-io/fn-runtime'; + +type SecretRequirement = { + name: string; + required: boolean; +}; + +type FunctionProvisionPayload = { + function_id: string; + name?: string; + service_url?: string; + namespace_name?: string; + required_secrets?: SecretRequirement[]; + database_id?: string; +}; + +/** + * Phase 1 stub: function-provision + * + * Receives a function definition from the job payload, validates + * service_url exists or generates a gateway URL, and if required_secrets + * is non-empty, validates those secrets exist in the function's namespace. + * + * In later phases this will actually deploy the function, configure + * Knative services, set up ingress routes, etc. + */ +const handler: FunctionHandler = async (params, context) => { + const { log, env } = context; + const { + function_id, + name, + service_url, + namespace_name, + required_secrets, + } = params; + + if (!function_id) { + throw new Error('function_id is required'); + } + + log.info('function-provision: starting', { + function_id, + name, + namespace_name, + has_service_url: Boolean(service_url), + required_secrets_count: required_secrets?.length ?? 0, + }); + + // Step 1: Validate or generate service_url + let resolvedUrl = service_url; + if (!resolvedUrl) { + const gatewayUrl = env.COMPUTE_GATEWAY_URL || env.INTERNAL_GATEWAY_URL; + if (gatewayUrl && name) { + resolvedUrl = `${gatewayUrl.replace(/\/$/, '')}/${name}`; + log.info('function-provision: generated gateway URL', { resolvedUrl }); + } else { + log.warn('function-provision: no service_url and no gateway configured'); + } + } + + // Step 2: Validate required secrets exist (by checking env — after secret injection) + const missingSecrets: string[] = []; + if (required_secrets && required_secrets.length > 0) { + for (const secret of required_secrets) { + if (secret.required && !env[secret.name]) { + missingSecrets.push(secret.name); + } + } + + if (missingSecrets.length > 0) { + log.warn('function-provision: missing required secrets', { + function_id, + name, + namespace_name, + missing: missingSecrets, + }); + } else { + log.info('function-provision: all required secrets present', { + function_id, + count: required_secrets.filter(s => s.required).length, + }); + } + } + + return { + status: missingSecrets.length > 0 ? 'missing_secrets' : 'provisioned', + service_url: resolvedUrl ?? null, + missing_secrets: missingSecrets, + }; +}; + +export default handler; diff --git a/functions/function-sync-resources/handler.json b/functions/function-sync-resources/handler.json new file mode 100644 index 000000000..5b6746a7d --- /dev/null +++ b/functions/function-sync-resources/handler.json @@ -0,0 +1,86 @@ +{ + "name": "function-sync-resources", + "version": "0.1.0", + "type": "node-graphql", + "port": 8092, + "taskIdentifier": "function-sync-resources", + "scope": "platform", + "description": "Resolves and validates all declared resources for a function's scope — secrets, configs, buckets, API bindings", + "requiredSecrets": [], + "requiredConfigs": [], + "payloadSchema": { + "type": "object", + "required": ["function_id"], + "properties": { + "function_id": { + "type": "string", + "format": "uuid", + "description": "UUID of the function definition to sync" + }, + "name": { + "type": "string", + "description": "Function name / task_identifier" + }, + "namespace_name": { + "type": "string", + "description": "Namespace the function belongs to" + }, + "required_secrets": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { "type": "string" }, + "required": { "type": "boolean" } + } + }, + "description": "Declared secret requirements" + }, + "required_configs": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { "type": "string" }, + "required": { "type": "boolean" } + } + }, + "description": "Declared config requirements" + }, + "required_buckets": { + "type": "array", + "items": { "type": "string" }, + "description": "Declared bucket names" + }, + "required_models": { + "type": "array", + "items": { "type": "string" }, + "description": "Declared AI model identifiers" + }, + "database_id": { + "type": "string", + "format": "uuid", + "description": "Database ID for the owning tenant/platform" + } + }, + "additionalProperties": true + }, + "inputs": [ + { "name": "function_id", "type": "string", "description": "UUID of the function definition" }, + { "name": "name", "type": "string", "description": "Function name", "optional": true }, + { "name": "namespace_name", "type": "string", "description": "Namespace name", "optional": true }, + { "name": "required_secrets", "type": "json", "description": "Declared secret requirements", "optional": true }, + { "name": "required_configs", "type": "json", "description": "Declared config requirements", "optional": true }, + { "name": "required_buckets", "type": "json", "description": "Declared bucket names", "optional": true }, + { "name": "required_models", "type": "json", "description": "Declared model identifiers", "optional": true }, + { "name": "database_id", "type": "string", "description": "Owning database ID", "optional": true } + ], + "outputs": [ + { "name": "status", "type": "string", "description": "Sync result status" }, + { "name": "resolved_count", "type": "number", "description": "Number of resources resolved" }, + { "name": "warnings", "type": "json", "description": "Warnings for missing resources" } + ], + "icon": "refresh-cw", + "category": "infrastructure", + "dependencies": {} +} diff --git a/functions/function-sync-resources/handler.ts b/functions/function-sync-resources/handler.ts new file mode 100644 index 000000000..02ab6cf6e --- /dev/null +++ b/functions/function-sync-resources/handler.ts @@ -0,0 +1,122 @@ +import type { FunctionHandler } from '@constructive-io/fn-runtime'; + +type ResourceRequirement = { + name: string; + required: boolean; +}; + +type FunctionSyncResourcesPayload = { + function_id: string; + name?: string; + namespace_name?: string; + required_secrets?: ResourceRequirement[]; + required_configs?: ResourceRequirement[]; + required_buckets?: string[]; + required_models?: string[]; + database_id?: string; +}; + +/** + * Phase 1 stub: function-sync-resources + * + * Resolves all declared resources for the function's scope, + * validates they exist, and logs warnings for missing resources. + * + * In later phases this will actually reconcile resource bindings, + * ensure bucket policies are configured, and validate model access. + */ +const handler: FunctionHandler = async (params, context) => { + const { log, env } = context; + const { + function_id, + name, + namespace_name, + required_secrets, + required_configs, + required_buckets, + required_models, + } = params; + + if (!function_id) { + throw new Error('function_id is required'); + } + + log.info('function-sync-resources: starting', { + function_id, + name, + namespace_name, + secrets: required_secrets?.length ?? 0, + configs: required_configs?.length ?? 0, + buckets: required_buckets?.length ?? 0, + models: required_models?.length ?? 0, + }); + + const warnings: string[] = []; + let resolvedCount = 0; + + // Check secrets — already injected into env by the compute worker + if (required_secrets) { + for (const secret of required_secrets) { + if (env[secret.name]) { + resolvedCount++; + } else if (secret.required) { + warnings.push(`missing required secret: ${secret.name}`); + } else { + log.info(`optional secret not present: ${secret.name}`); + } + } + } + + // Check configs — also in env + if (required_configs) { + for (const config of required_configs) { + if (env[config.name]) { + resolvedCount++; + } else if (config.required) { + warnings.push(`missing required config: ${config.name}`); + } else { + log.info(`optional config not present: ${config.name}`); + } + } + } + + // Check buckets — phase 1 stub: just validate the names are declared + if (required_buckets) { + for (const bucket of required_buckets) { + // In later phases we'd verify the bucket exists in S3/MinIO + log.info(`declared bucket: ${bucket} (validation deferred to phase 2)`); + resolvedCount++; + } + } + + // Check models — phase 1 stub: just validate the names are declared + if (required_models) { + for (const model of required_models) { + // In later phases we'd verify model access via the agentic server + log.info(`declared model: ${model} (validation deferred to phase 2)`); + resolvedCount++; + } + } + + if (warnings.length > 0) { + log.warn('function-sync-resources: missing resources', { + function_id, + name, + warnings, + }); + } + + log.info('function-sync-resources: complete', { + function_id, + resolved: resolvedCount, + warnings: warnings.length, + }); + + return { + status: warnings.length > 0 ? 'warnings' : 'ok', + resolved_count: resolvedCount, + warnings, + }; +}; + +export default handler; diff --git a/functions/namespace-provision/handler.json b/functions/namespace-provision/handler.json new file mode 100644 index 000000000..e91297d91 --- /dev/null +++ b/functions/namespace-provision/handler.json @@ -0,0 +1,49 @@ +{ + "name": "namespace-provision", + "version": "0.1.0", + "type": "node-graphql", + "port": 8090, + "taskIdentifier": "namespace-provision", + "scope": "platform", + "description": "Provisions a namespace for function isolation — validates namespace_name, logs provisioning event, inserts created event into namespace_events", + "requiredSecrets": [], + "requiredConfigs": [], + "payloadSchema": { + "type": "object", + "required": ["namespace_id", "namespace_name"], + "properties": { + "namespace_id": { + "type": "string", + "format": "uuid", + "description": "UUID of the namespace row to provision" + }, + "namespace_name": { + "type": "string", + "description": "Short namespace name (e.g. 'email')" + }, + "global_name": { + "type": "string", + "description": "K8s-safe global namespace name (e.g. 'abc123_email')" + }, + "database_id": { + "type": "string", + "format": "uuid", + "description": "Database ID for the owning tenant/platform" + } + }, + "additionalProperties": true + }, + "inputs": [ + { "name": "namespace_id", "type": "string", "description": "UUID of the namespace row" }, + { "name": "namespace_name", "type": "string", "description": "Short namespace name" }, + { "name": "global_name", "type": "string", "description": "K8s-safe global namespace name", "optional": true }, + { "name": "database_id", "type": "string", "description": "Owning database ID", "optional": true } + ], + "outputs": [ + { "name": "status", "type": "string", "description": "Provisioning result status" }, + { "name": "event_type", "type": "string", "description": "Event type inserted into namespace_events" } + ], + "icon": "box", + "category": "infrastructure", + "dependencies": {} +} diff --git a/functions/namespace-provision/handler.ts b/functions/namespace-provision/handler.ts new file mode 100644 index 000000000..2bbdc410f --- /dev/null +++ b/functions/namespace-provision/handler.ts @@ -0,0 +1,75 @@ +import type { FunctionHandler } from '@constructive-io/fn-runtime'; + +type NamespaceProvisionPayload = { + namespace_id: string; + namespace_name: string; + global_name?: string; + database_id?: string; +}; + +/** + * Phase 1 stub: namespace-provision + * + * Receives a namespace row from the job payload, validates that + * namespace_name is computed, logs the provisioning event, and + * inserts a 'created' event into namespace_events. + * + * In later phases this will actually create K8s namespaces, + * configure network policies, etc. + */ +const handler: FunctionHandler = async (params, context) => { + const { log, client } = context; + const { namespace_id, namespace_name, global_name } = params; + + if (!namespace_id || !namespace_name) { + throw new Error('namespace_id and namespace_name are required'); + } + + log.info('namespace-provision: starting', { + namespace_id, + namespace_name, + global_name, + }); + + // Validate namespace_name is a non-empty, lowercase slug + if (!/^[a-z][a-z0-9-]*$/.test(namespace_name)) { + throw new Error( + `Invalid namespace_name "${namespace_name}" — must be lowercase alphanumeric with hyphens` + ); + } + + // Phase 1: insert a 'created' event into namespace_events via GraphQL + // This is a stub — the actual mutation will depend on the DB schema from constructive-db + const eventType = 'created'; + try { + await client.request( + `mutation InsertNamespaceEvent($input: NamespaceEventInput!) { + createNamespaceEvent(input: $input) { event { id } } + }`, + { + input: { + namespaceEvent: { + namespaceId: namespace_id, + eventType, + metadata: JSON.stringify({ + namespace_name, + global_name: global_name ?? null, + provisioned_at: new Date().toISOString(), + }), + }, + }, + } + ); + log.info('namespace-provision: event inserted', { namespace_id, eventType }); + } catch (err: unknown) { + const msg = err instanceof Error ? err.message : String(err); + log.warn(`namespace-provision: event insertion failed (phase 1 stub): ${msg}`); + } + + return { + status: 'provisioned', + event_type: eventType, + }; +}; + +export default handler; diff --git a/job/compute-worker/src/discovery.ts b/job/compute-worker/src/discovery.ts index 936bab0ad..c25f07561 100644 --- a/job/compute-worker/src/discovery.ts +++ b/job/compute-worker/src/discovery.ts @@ -8,8 +8,8 @@ * fetches the function definition and caches it for `ttlMs` (default 60 s). */ -import { TtlCache } from '@constructive-io/module-loader'; import type { ComputeModuleLoader } from '@constructive-io/module-loader'; +import { TtlCache } from '@constructive-io/module-loader'; import { Logger } from '@pgpmjs/logger'; import type { Pool } from 'pg'; diff --git a/job/compute-worker/src/index.ts b/job/compute-worker/src/index.ts index a6ef430c0..f371c5afe 100644 --- a/job/compute-worker/src/index.ts +++ b/job/compute-worker/src/index.ts @@ -15,8 +15,8 @@ import poolManager from '@constructive-io/job-pg'; import type { PgClientLike } from '@constructive-io/job-utils'; import * as jobs from '@constructive-io/job-utils'; -import { ComputeModuleLoader } from '@constructive-io/module-loader'; import type { GraphExecutionModuleConfig } from '@constructive-io/module-loader'; +import { ComputeModuleLoader, SecretsLoader } from '@constructive-io/module-loader'; import { Logger } from '@pgpmjs/logger'; import type { Pool, PoolClient } from 'pg'; @@ -79,6 +79,7 @@ export default class ComputeWorker { readonly tracker: InvocationTracker; readonly billing: BillingTracker; readonly computeLog: ComputeLogTracker; + readonly secrets: SecretsLoader; private callbackUrl?: string; private gatewayUrl?: string; @@ -95,6 +96,7 @@ export default class ComputeWorker { this.tracker = new InvocationTracker(this.pgPool, this.loader, this.platformDatabaseId); this.billing = new BillingTracker(this.pgPool, this.platformDatabaseId, opts.cacheTtlMs); this.computeLog = new ComputeLogTracker(this.pgPool, this.loader, this.platformDatabaseId); + this.secrets = new SecretsLoader(this.pgPool, this.platformDatabaseId, opts.cacheTtlMs); this.callbackUrl = process.env.COMPUTE_CALLBACK_URL || process.env.INTERNAL_JOBS_CALLBACK_URL; @@ -278,6 +280,58 @@ export default class ComputeWorker { } } + // ─── Secret resolution ────────────────────────────────────────────── + + /** + * Resolve required_secrets and required_configs from the config_secrets_module + * and inject them into process.env before dispatch. + * + * Secrets are looked up by name within the function's namespace scope. + * Only declared secrets/configs are resolved — no wildcard injection. + */ + private async resolveAndInjectSecrets( + fn: PlatformFunctionDefinition, + databaseId?: string + ): Promise { + const secretNames = (fn.required_secrets ?? []).map(s => s.name); + const configNames = (fn.required_configs ?? []).map(c => c.name); + const allNames = [...secretNames, ...configNames]; + + if (allNames.length === 0) return; + + const dbId = databaseId || this.platformDatabaseId; + // namespace_id may be present on the function definition; we pass undefined + // for global-scoped functions (secrets stored without a namespace) + const namespaceName = fn.namespace_id ?? undefined; + + const resolved = await this.secrets.resolveSecrets(allNames, namespaceName, dbId); + + let injected = 0; + for (const secret of resolved) { + if (secret.value !== undefined && secret.value !== null) { + process.env[secret.name] = secret.value; + injected++; + } + } + + if (injected > 0) { + log.info(`injected ${injected} secret(s) for function "${fn.name}"`); + } + + // Log warnings for missing required secrets + const resolvedNames = new Set(resolved.map(s => s.name)); + for (const req of fn.required_secrets ?? []) { + if (req.required && !resolvedNames.has(req.name)) { + log.warn(`missing required secret "${req.name}" for function "${fn.name}"`); + } + } + for (const req of fn.required_configs ?? []) { + if (req.required && !resolvedNames.has(req.name)) { + log.warn(`missing required config "${req.name}" for function "${fn.name}"`); + } + } + } + // ─── Work dispatch ─────────────────────────────────────────────────── async doWork(job: ComputeJobRow): Promise { @@ -317,6 +371,10 @@ export default class ComputeWorker { await this.markNodeRunning(payload.execution_id, payload.node_name); } + // Resolve required_secrets and required_configs from the secrets module + // and inject them into process.env before dispatch + await this.resolveAndInjectSecrets(fn, job.database_id); + // Determine dispatch mode: inline (in-process) vs HTTP const isInline = fn.runtime === 'inline' || getInlineImpl(functionName) !== null; diff --git a/job/compute-worker/src/module-loader.ts b/job/compute-worker/src/module-loader.ts index 4236122a6..792c425b1 100644 --- a/job/compute-worker/src/module-loader.ts +++ b/job/compute-worker/src/module-loader.ts @@ -1,5 +1,5 @@ /** * Re-export ComputeModuleLoader from @constructive-io/module-loader. */ -export { ComputeModuleLoader } from '@constructive-io/module-loader'; export type { ComputeModuleConfigExtended } from '@constructive-io/module-loader'; +export { ComputeModuleLoader } from '@constructive-io/module-loader'; diff --git a/job/worker/src/compute-meter.ts b/job/worker/src/compute-meter.ts index 3f23db856..7d652f912 100644 --- a/job/worker/src/compute-meter.ts +++ b/job/worker/src/compute-meter.ts @@ -8,9 +8,9 @@ * metering never affects job throughput or latency. */ -import type { Pool } from 'pg'; -import { UsageLoader } from '@constructive-io/module-loader'; import type { MeterEntry } from '@constructive-io/module-loader'; +import { UsageLoader } from '@constructive-io/module-loader'; +import type { Pool } from 'pg'; export type { MeterEntry }; diff --git a/job/worker/src/graph-complete.ts b/job/worker/src/graph-complete.ts index 466d6c122..fa7cef48a 100644 --- a/job/worker/src/graph-complete.ts +++ b/job/worker/src/graph-complete.ts @@ -8,8 +8,8 @@ * Schema/function names are resolved dynamically via ModuleLoader * (graph_execution_module) instead of hardcoding. */ -import { ComputeModuleLoader, DEFAULT_DATABASE_ID } from '@constructive-io/module-loader'; import type { GraphExecutionModuleConfig } from '@constructive-io/module-loader'; +import { ComputeModuleLoader, DEFAULT_DATABASE_ID } from '@constructive-io/module-loader'; import type { Pool } from 'pg'; let _loader: ComputeModuleLoader | null = null; diff --git a/job/worker/src/index.ts b/job/worker/src/index.ts index 1f6918439..14d702289 100644 --- a/job/worker/src/index.ts +++ b/job/worker/src/index.ts @@ -1,6 +1,7 @@ import poolManager from '@constructive-io/job-pg'; import type { PgClientLike } from '@constructive-io/job-utils'; import * as jobs from '@constructive-io/job-utils'; +import { SecretsLoader } from '@constructive-io/module-loader'; import { Logger } from '@pgpmjs/logger'; import type { Pool, PoolClient } from 'pg'; @@ -27,6 +28,7 @@ export default class Worker { doNextTimer?: NodeJS.Timeout; pgPool: Pool; usageClient: UsageClient; + secretsLoader: SecretsLoader; _initialized?: boolean; listenClient?: PoolClient; listenRelease?: () => void; @@ -57,6 +59,7 @@ export default class Worker { this.doNextTimer = undefined; this.pgPool = pgPool; this.usageClient = new UsageClient(pgPool); + this.secretsLoader = new SecretsLoader(pgPool); poolManager.onClose(async () => { await jobs.releaseJobs(pgPool, { workerId: this.workerId }); }); @@ -108,6 +111,27 @@ export default class Worker { `Async task ${job.id} (${job.task_identifier}) to be processed` ); } + /** + * Resolve secrets/configs from the config_secrets_module and inject into process.env. + * Used by the legacy worker for backward compatibility with the new secret resolution flow. + */ + private async resolveAndInjectSecrets(job: JobRow): Promise { + try { + const resolved = await this.secretsLoader.resolveSecrets( + [], // Legacy worker doesn't have function definitions with required_secrets + undefined, + job.database_id + ); + for (const secret of resolved) { + if (secret.value !== undefined && secret.value !== null) { + process.env[secret.name] = secret.value; + } + } + } catch { + log.debug('secret resolution unavailable (non-fatal)'); + } + } + async doWork(job: JobRow) { const { payload, task_identifier } = job; log.debug('starting work on job', { @@ -122,6 +146,9 @@ export default class Worker { throw new Error('Unsupported task'); } + // Resolve secrets from DB before dispatch (no-op if secrets module not provisioned) + await this.resolveAndInjectSecrets(job); + const startTime = process.hrtime.bigint(); // Inline execution path: native FBP nodes with graph job payloads @@ -354,4 +381,4 @@ export default class Worker { export { Worker }; export type { InferenceEntry, MeterEntry, StorageEntry, UsageModuleConfig, UsageTableConfig } from './usage-client'; -export { UsageClient, UsageLoader, getLoader, _resetLoaderCache } from './usage-client'; +export { _resetLoaderCache,getLoader, UsageClient, UsageLoader } from './usage-client'; diff --git a/job/worker/src/storage-meter.ts b/job/worker/src/storage-meter.ts index 9176bc442..cb608b630 100644 --- a/job/worker/src/storage-meter.ts +++ b/job/worker/src/storage-meter.ts @@ -8,9 +8,9 @@ * metering never affects function execution or storage latency. */ -import type { Pool } from 'pg'; -import { UsageLoader } from '@constructive-io/module-loader'; import type { StorageEntry } from '@constructive-io/module-loader'; +import { UsageLoader } from '@constructive-io/module-loader'; +import type { Pool } from 'pg'; export type { StorageEntry }; diff --git a/job/worker/src/usage-client.ts b/job/worker/src/usage-client.ts index 8c017eca1..5bee66992 100644 --- a/job/worker/src/usage-client.ts +++ b/job/worker/src/usage-client.ts @@ -5,18 +5,17 @@ * This file exists so existing imports from within job/worker/ continue working. */ -export { - UsageLoader as UsageClient, - UsageLoader, - getModuleLoader as getLoader, - _resetModuleLoaderCache as _resetLoaderCache, - USAGE_DEFAULTS as DEFAULTS, -} from '@constructive-io/module-loader'; - export type { - UsageTableConfig as UsageModuleConfig, - UsageTableConfig, - MeterEntry, InferenceEntry, + MeterEntry, StorageEntry, + UsageTableConfig as UsageModuleConfig, + UsageTableConfig, +} from '@constructive-io/module-loader'; +export { + _resetModuleLoaderCache as _resetLoaderCache, + USAGE_DEFAULTS as DEFAULTS, + getModuleLoader as getLoader, + UsageLoader as UsageClient, + UsageLoader, } from '@constructive-io/module-loader'; diff --git a/packages/fn-types/src/index.ts b/packages/fn-types/src/index.ts index 85d591da4..88511a374 100644 --- a/packages/fn-types/src/index.ts +++ b/packages/fn-types/src/index.ts @@ -12,12 +12,14 @@ export { toNodeDefinition } from './manifest'; export type { FnRegistry, FnRegistryEntry } from './registry'; export type { AgentContext, + BucketHandle, EmbedResult, FunctionContext, FunctionHandler, FunctionLogger, InferenceOptions, InferenceResult, + NamespaceInfo, ServerOptions, StorageContext } from './runtime'; diff --git a/packages/fn-types/src/runtime.ts b/packages/fn-types/src/runtime.ts index a351d41df..253af6f9d 100644 --- a/packages/fn-types/src/runtime.ts +++ b/packages/fn-types/src/runtime.ts @@ -66,6 +66,19 @@ export type StorageContext = { delete(bucket: string, key: string): Promise; }; +// ─── Resource Types ─────────────────────────────────────────────────────── + +export type NamespaceInfo = { + name: string; + globalName: string; + id: string; +}; + +export type BucketHandle = { + name: string; + region?: string; +}; + // ─── Function Context ───────────────────────────────────────────────────── export type FunctionContext = { @@ -86,6 +99,15 @@ export type FunctionContext = { storage: StorageContext; log: FunctionLogger; env: Record; + + /** Resolved namespace info (populated when namespace_name is set on the function definition) */ + namespace?: NamespaceInfo; + + /** Scoped bucket handles (only declared buckets from required_buckets) */ + buckets?: Record; + + /** Bound API clients (from function_api_bindings) */ + apis?: Record; }; export type ServerOptions = { diff --git a/packages/module-loader/src/index.ts b/packages/module-loader/src/index.ts index 307645487..f09f73e98 100644 --- a/packages/module-loader/src/index.ts +++ b/packages/module-loader/src/index.ts @@ -23,18 +23,21 @@ export { ComputeModuleLoader } from './compute-loader'; export type { ComputeModuleConfigExtended } from './compute-loader'; export { UsageLoader, USAGE_DEFAULTS } from './usage-loader'; export { BillingLoader } from './billing-loader'; +export { SecretsLoader } from './secrets-loader'; // Types export type { BillingModuleConfig, ComputeLogModuleConfig, ComputeModuleConfig, + ConfigSecretsModuleConfig, FunctionModuleConfig, GraphExecutionModuleConfig, InferenceEntry, InvocationModuleConfig, MeterEntry, ModuleLoaderOptions, + ResolvedSecret, StorageEntry, UsageTableConfig, } from './types'; diff --git a/packages/module-loader/src/module-loader.ts b/packages/module-loader/src/module-loader.ts index b5c086cd7..e43e29600 100644 --- a/packages/module-loader/src/module-loader.ts +++ b/packages/module-loader/src/module-loader.ts @@ -23,11 +23,14 @@ import type { Pool } from 'pg'; import { BillingLoader } from './billing-loader'; import { ComputeModuleLoader } from './compute-loader'; import type { ComputeModuleConfigExtended } from './compute-loader'; +import { SecretsLoader } from './secrets-loader'; import type { BillingModuleConfig, + ConfigSecretsModuleConfig, InferenceEntry, MeterEntry, ModuleLoaderOptions, + ResolvedSecret, StorageEntry, UsageTableConfig, } from './types'; @@ -38,6 +41,7 @@ export class ModuleLoader { readonly computeLoader: ComputeModuleLoader; readonly usageLoader: UsageLoader; readonly billingLoader: BillingLoader; + readonly secretsLoader: SecretsLoader; private pool: Pool; private defaultDatabaseId: string; @@ -50,6 +54,7 @@ export class ModuleLoader { this.computeLoader = new ComputeModuleLoader(this.pool, ttl); this.usageLoader = new UsageLoader(this.pool, this.defaultDatabaseId, ttl); this.billingLoader = new BillingLoader(this.pool, this.defaultDatabaseId, ttl); + this.secretsLoader = new SecretsLoader(this.pool, this.defaultDatabaseId, ttl); } // ─── Compute Resolution ───────────────────────────────────────────────── @@ -70,6 +75,20 @@ export class ModuleLoader { return this.billingLoader.load(databaseId); } + // ─── Secrets Resolution ───────────────────────────────────────────────── + + secrets(databaseId?: string): Promise { + return this.secretsLoader.load(databaseId); + } + + resolveSecrets( + secretNames: string[], + namespaceName: string | undefined, + databaseId?: string + ): Promise { + return this.secretsLoader.resolveSecrets(secretNames, namespaceName, databaseId); + } + // ─── Fire-and-forget Metering ─────────────────────────────────────────── logCompute(entry: MeterEntry): string { @@ -101,10 +120,12 @@ export class ModuleLoader { this.computeLoader.invalidate(databaseId); this.usageLoader.invalidate(databaseId); this.billingLoader.invalidate(databaseId); + this.secretsLoader.invalidate(databaseId); } else { this.computeLoader.invalidateAll(); this.usageLoader.invalidate(); this.billingLoader.invalidate(); + this.secretsLoader.invalidate(); } } } diff --git a/packages/module-loader/src/secrets-loader.ts b/packages/module-loader/src/secrets-loader.ts new file mode 100644 index 000000000..154399b28 --- /dev/null +++ b/packages/module-loader/src/secrets-loader.ts @@ -0,0 +1,128 @@ +/** + * SecretsLoader -- resolves config_secrets_module schema/table names + * from MetaSchema, then queries the resolved secrets table for name+namespace + * matches. + * + * Used by the compute worker to dynamically inject secrets into a function's + * env before dispatch. + * + * Multi-database: pass different databaseId to resolve secrets for + * platform scope vs tenant scope. + */ + +import { Logger } from '@pgpmjs/logger'; +import type { Pool } from 'pg'; + +import { TtlCache } from './cache'; +import type { ConfigSecretsModuleConfig, ResolvedSecret } from './types'; +import { DEFAULT_DATABASE_ID, DEFAULT_TTL_MS } from './types'; + +const log = new Logger('module-loader:secrets'); + +// ─── MetaSchema Resolution ──────────────────────────────────────────────────── + +const CONFIG_SECRETS_MODULE_SQL = ` + SELECT + s.schema_name AS public_schema, + ps.schema_name AS private_schema, + csm.secrets_table_name, + csm.scope + FROM metaschema_modules_public.config_secrets_module csm + JOIN metaschema_public.schema s ON csm.schema_id = s.id + JOIN metaschema_public.schema ps ON csm.private_schema_id = ps.id + WHERE csm.database_id = $1 + LIMIT 1 +`; + +// ─── SecretsLoader Class ────────────────────────────────────────────────────── + +export class SecretsLoader { + private pool: Pool; + private cache: TtlCache; + private defaultDatabaseId: string; + + constructor(pool: Pool, databaseId: string = DEFAULT_DATABASE_ID, ttlMs: number = DEFAULT_TTL_MS) { + this.pool = pool; + this.defaultDatabaseId = databaseId; + this.cache = new TtlCache(ttlMs); + } + + /** + * Load config_secrets_module config for a database. + * Returns null if the module is not provisioned. + */ + async load(databaseId?: string): Promise { + const dbId = databaseId ?? this.defaultDatabaseId; + const cached = this.cache.get(dbId); + if (cached !== undefined) return cached; + + try { + const { rows } = await this.pool.query(CONFIG_SECRETS_MODULE_SQL, [dbId]); + if (!rows.length) { + this.cache.set(dbId, null); + return null; + } + const config: ConfigSecretsModuleConfig = { + publicSchema: rows[0].public_schema, + privateSchema: rows[0].private_schema, + secretsTable: rows[0].secrets_table_name, + scope: rows[0].scope, + }; + log.debug(`loaded config_secrets_module: ${config.privateSchema}.${config.secretsTable}`); + this.cache.set(dbId, config); + return config; + } catch { + log.debug(`config_secrets_module not available for database ${dbId}`); + this.cache.set(dbId, null); + return null; + } + } + + /** + * Resolve secrets by name for a given namespace. + * Returns an array of { name, value } pairs for all matching secret names. + * Missing secrets are silently skipped (callers decide if that's an error). + */ + async resolveSecrets( + secretNames: string[], + namespaceName: string | undefined, + databaseId?: string + ): Promise { + if (secretNames.length === 0) return []; + + const config = await this.load(databaseId); + if (!config) { + log.debug('config_secrets_module not provisioned — returning empty secrets'); + return []; + } + + try { + const sql = namespaceName + ? `SELECT name, decrypted_value AS value + FROM "${config.privateSchema}"."${config.secretsTable}" + WHERE name = ANY($1) AND namespace_name = $2` + : `SELECT name, decrypted_value AS value + FROM "${config.privateSchema}"."${config.secretsTable}" + WHERE name = ANY($1) AND namespace_name IS NULL`; + + const params: unknown[] = [secretNames]; + if (namespaceName) params.push(namespaceName); + + const { rows } = await this.pool.query(sql, params); + log.debug(`resolved ${rows.length}/${secretNames.length} secrets for namespace=${namespaceName ?? '(global)'}`); + return rows as ResolvedSecret[]; + } catch (err: unknown) { + const msg = err instanceof Error ? err.message : String(err); + log.warn(`secret resolution failed (non-fatal): ${msg}`); + return []; + } + } + + invalidate(databaseId?: string): void { + if (databaseId) { + this.cache.delete(databaseId); + } else { + this.cache.clear(); + } + } +} diff --git a/packages/module-loader/src/types.ts b/packages/module-loader/src/types.ts index 3e209ff2a..9d1e9d667 100644 --- a/packages/module-loader/src/types.ts +++ b/packages/module-loader/src/types.ts @@ -48,6 +48,20 @@ export interface UsageTableConfig { storageUsageTable: string; } +// ─── Config Secrets Module ──────────────────────────────────────────────────── + +export interface ConfigSecretsModuleConfig { + publicSchema: string; + privateSchema: string; + secretsTable: string; + scope: string; +} + +export interface ResolvedSecret { + name: string; + value: string; +} + // ─── Billing Module ────────────────────────────────────────────────────────── export interface BillingModuleConfig { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4a828d203..c6be49d36 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -86,6 +86,54 @@ importers: specifier: ^5.1.6 version: 5.9.3 + generated/function-provision: + dependencies: + '@constructive-io/fn-runtime': + specifier: workspace:^ + version: link:../../packages/fn-runtime + devDependencies: + '@types/node': + specifier: ^22.10.4 + version: 22.19.3 + makage: + specifier: ^0.1.10 + version: 0.1.12 + typescript: + specifier: ^5.1.6 + version: 5.9.3 + + generated/function-sync-resources: + dependencies: + '@constructive-io/fn-runtime': + specifier: workspace:^ + version: link:../../packages/fn-runtime + devDependencies: + '@types/node': + specifier: ^22.10.4 + version: 22.19.3 + makage: + specifier: ^0.1.10 + version: 0.1.12 + typescript: + specifier: ^5.1.6 + version: 5.9.3 + + generated/namespace-provision: + dependencies: + '@constructive-io/fn-runtime': + specifier: workspace:^ + version: link:../../packages/fn-runtime + devDependencies: + '@types/node': + specifier: ^22.10.4 + version: 22.19.3 + makage: + specifier: ^0.1.10 + version: 0.1.12 + typescript: + specifier: ^5.1.6 + version: 5.9.3 + generated/send-email: dependencies: '@constructive-io/fn-runtime': diff --git a/sdk/constructive-functions-cli/cli/commands.ts b/sdk/constructive-functions-cli/cli/commands.ts index 7be149ee0..7084f97ce 100644 --- a/sdk/constructive-functions-cli/cli/commands.ts +++ b/sdk/constructive-functions-cli/cli/commands.ts @@ -3,69 +3,70 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; -import contextCmd from './commands/context'; -import authCmd from './commands/auth'; -import configCmd from './commands/config'; -import apiRoleTypeCmd from './commands/api/role-type'; -import apiPlatformConfigDefinitionCmd from './commands/api/platform-config-definition'; -import apiPlatformNamespaceCmd from './commands/api/platform-namespace'; -import apiPlatformConfigCmd from './commands/api/platform-config'; +import { CLIOptions, extractFirst,Inquirerer } from 'inquirerer'; + +import apiOrgSecretsDelCmd from './commands/api/org-secrets-del'; +import apiOrgSecretsRemoveArrayCmd from './commands/api/org-secrets-remove-array'; +import apiOrgSecretsSetCmd from './commands/api/org-secrets-set'; import apiPlatformBucketCmd from './commands/api/platform-bucket'; +import apiPlatformConfigCmd from './commands/api/platform-config'; +import apiPlatformConfigDefinitionCmd from './commands/api/platform-config-definition'; import apiPlatformFileCmd from './commands/api/platform-file'; -import apiUserCmd from './commands/api/user'; +import apiPlatformFilesRenameCmd from './commands/api/platform-files-rename'; +import apiPlatformNamespaceCmd from './commands/api/platform-namespace'; import apiPlatformNamespaceEventCmd from './commands/api/platform-namespace-event'; import apiPlatformSecretsDelCmd from './commands/api/platform-secrets-del'; import apiPlatformSecretsSetCmd from './commands/api/platform-secrets-set'; -import apiOrgSecretsDelCmd from './commands/api/org-secrets-del'; -import apiOrgSecretsSetCmd from './commands/api/org-secrets-set'; -import apiOrgSecretsRemoveArrayCmd from './commands/api/org-secrets-remove-array'; -import apiPlatformFilesRenameCmd from './commands/api/platform-files-rename'; +import apiProvisionBucketCmd from './commands/api/provision-bucket'; +import apiRoleTypeCmd from './commands/api/role-type'; import apiUploadPlatformFileCmd from './commands/api/upload-platform-file'; import apiUploadPlatformFilesCmd from './commands/api/upload-platform-files'; -import apiProvisionBucketCmd from './commands/api/provision-bucket'; +import apiUserCmd from './commands/api/user'; +import authCmd from './commands/auth'; import computeGetAllRecordCmd from './commands/compute/get-all-record'; -import computePlatformFunctionGraphRefCmd from './commands/compute/platform-function-graph-ref'; -import computePlatformFunctionGraphStoreCmd from './commands/compute/platform-function-graph-store'; -import computePlatformFunctionGraphObjectCmd from './commands/compute/platform-function-graph-object'; +import computeInitEmptyRepoCmd from './commands/compute/init-empty-repo'; +import computeInsertNodeAtPathCmd from './commands/compute/insert-node-at-path'; import computeOrgFunctionExecutionLogCmd from './commands/compute/org-function-execution-log'; -import computePlatformFunctionGraphExecutionOutputCmd from './commands/compute/platform-function-graph-execution-output'; -import computePlatformFunctionGraphCommitCmd from './commands/compute/platform-function-graph-commit'; -import computePlatformSecretDefinitionCmd from './commands/compute/platform-secret-definition'; -import computePlatformFunctionExecutionLogCmd from './commands/compute/platform-function-execution-log'; -import computePlatformFunctionGraphExecutionNodeStateCmd from './commands/compute/platform-function-graph-execution-node-state'; -import computePlatformFunctionGraphCmd from './commands/compute/platform-function-graph'; -import computePlatformComputeLogCmd from './commands/compute/platform-compute-log'; -import computePlatformUsageDailyCmd from './commands/compute/platform-usage-daily'; import computeOrgFunctionInvocationCmd from './commands/compute/org-function-invocation'; -import computePlatformFunctionInvocationCmd from './commands/compute/platform-function-invocation'; -import computePlatformFunctionGraphExecutionCmd from './commands/compute/platform-function-graph-execution'; -import computePlatformFunctionDefinitionCmd from './commands/compute/platform-function-definition'; -import computePlatformReadFunctionGraphCmd from './commands/compute/platform-read-function-graph'; -import computePlatformValidateFunctionGraphCmd from './commands/compute/platform-validate-function-graph'; -import computeInitEmptyRepoCmd from './commands/compute/init-empty-repo'; -import computePlatformImportDefinitionsCmd from './commands/compute/platform-import-definitions'; -import computeSetDataAtPathCmd from './commands/compute/set-data-at-path'; -import computePlatformCopyGraphCmd from './commands/compute/platform-copy-graph'; -import computePlatformSaveGraphCmd from './commands/compute/platform-save-graph'; +import computePlatformAddEdgeCmd from './commands/compute/platform-add-edge'; import computePlatformAddEdgeAndSaveCmd from './commands/compute/platform-add-edge-and-save'; +import computePlatformAddNodeCmd from './commands/compute/platform-add-node'; import computePlatformAddNodeAndSaveCmd from './commands/compute/platform-add-node-and-save'; +import computePlatformComputeLogCmd from './commands/compute/platform-compute-log'; +import computePlatformCopyGraphCmd from './commands/compute/platform-copy-graph'; import computePlatformCreateFunctionGraphCmd from './commands/compute/platform-create-function-graph'; -import computePlatformAddEdgeCmd from './commands/compute/platform-add-edge'; -import computePlatformAddNodeCmd from './commands/compute/platform-add-node'; +import computePlatformFunctionDefinitionCmd from './commands/compute/platform-function-definition'; +import computePlatformFunctionExecutionLogCmd from './commands/compute/platform-function-execution-log'; +import computePlatformFunctionGraphCmd from './commands/compute/platform-function-graph'; +import computePlatformFunctionGraphCommitCmd from './commands/compute/platform-function-graph-commit'; +import computePlatformFunctionGraphExecutionCmd from './commands/compute/platform-function-graph-execution'; +import computePlatformFunctionGraphExecutionNodeStateCmd from './commands/compute/platform-function-graph-execution-node-state'; +import computePlatformFunctionGraphExecutionOutputCmd from './commands/compute/platform-function-graph-execution-output'; +import computePlatformFunctionGraphObjectCmd from './commands/compute/platform-function-graph-object'; +import computePlatformFunctionGraphRefCmd from './commands/compute/platform-function-graph-ref'; +import computePlatformFunctionGraphStoreCmd from './commands/compute/platform-function-graph-store'; +import computePlatformFunctionInvocationCmd from './commands/compute/platform-function-invocation'; +import computePlatformImportDefinitionsCmd from './commands/compute/platform-import-definitions'; import computePlatformImportGraphJsonCmd from './commands/compute/platform-import-graph-json'; -import computeInsertNodeAtPathCmd from './commands/compute/insert-node-at-path'; +import computePlatformReadFunctionGraphCmd from './commands/compute/platform-read-function-graph'; +import computePlatformSaveGraphCmd from './commands/compute/platform-save-graph'; +import computePlatformSecretDefinitionCmd from './commands/compute/platform-secret-definition'; import computePlatformStartExecutionCmd from './commands/compute/platform-start-execution'; +import computePlatformUsageDailyCmd from './commands/compute/platform-usage-daily'; +import computePlatformValidateFunctionGraphCmd from './commands/compute/platform-validate-function-graph'; import computeProvisionBucketCmd from './commands/compute/provision-bucket'; -import objectsGetAllRecordCmd from './commands/objects/get-all-record'; -import objectsStoreCmd from './commands/objects/store'; -import objectsRefCmd from './commands/objects/ref'; -import objectsObjectCmd from './commands/objects/object'; +import computeSetDataAtPathCmd from './commands/compute/set-data-at-path'; +import configCmd from './commands/config'; +import contextCmd from './commands/context'; import objectsCommitCmd from './commands/objects/commit'; +import objectsGetAllRecordCmd from './commands/objects/get-all-record'; import objectsInitEmptyRepoCmd from './commands/objects/init-empty-repo'; -import objectsSetDataAtPathCmd from './commands/objects/set-data-at-path'; import objectsInsertNodeAtPathCmd from './commands/objects/insert-node-at-path'; +import objectsObjectCmd from './commands/objects/object'; import objectsProvisionBucketCmd from './commands/objects/provision-bucket'; +import objectsRefCmd from './commands/objects/ref'; +import objectsSetDataAtPathCmd from './commands/objects/set-data-at-path'; +import objectsStoreCmd from './commands/objects/store'; const createCommandMap: () => Record< string, ( diff --git a/sdk/constructive-functions-cli/cli/commands/api/org-secrets-del.ts b/sdk/constructive-functions-cli/cli/commands/api/org-secrets-del.ts index d3b4f5706..cc01baa18 100644 --- a/sdk/constructive-functions-cli/cli/commands/api/org-secrets-del.ts +++ b/sdk/constructive-functions-cli/cli/commands/api/org-secrets-del.ts @@ -4,10 +4,11 @@ * DO NOT EDIT - changes will be overwritten */ import { CLIOptions, Inquirerer } from 'inquirerer'; -import { getClient } from '../../executor'; -import { unflattenDotNotation, buildSelectFromPaths } from '../../utils'; -import type { OrgSecretsDelVariables } from '../../../orm/mutation'; + import type { OrgSecretsDelPayloadSelect } from '../../../orm/input-types'; +import type { OrgSecretsDelVariables } from '../../../orm/mutation'; +import { getClient } from '../../executor'; +import { buildSelectFromPaths,unflattenDotNotation } from '../../utils'; export default async ( argv: Partial>, prompter: Inquirerer, diff --git a/sdk/constructive-functions-cli/cli/commands/api/org-secrets-remove-array.ts b/sdk/constructive-functions-cli/cli/commands/api/org-secrets-remove-array.ts index d5f9210ca..7150f460f 100644 --- a/sdk/constructive-functions-cli/cli/commands/api/org-secrets-remove-array.ts +++ b/sdk/constructive-functions-cli/cli/commands/api/org-secrets-remove-array.ts @@ -4,10 +4,11 @@ * DO NOT EDIT - changes will be overwritten */ import { CLIOptions, Inquirerer } from 'inquirerer'; -import { getClient } from '../../executor'; -import { unflattenDotNotation, buildSelectFromPaths } from '../../utils'; -import type { OrgSecretsRemoveArrayVariables } from '../../../orm/mutation'; + import type { OrgSecretsRemoveArrayPayloadSelect } from '../../../orm/input-types'; +import type { OrgSecretsRemoveArrayVariables } from '../../../orm/mutation'; +import { getClient } from '../../executor'; +import { buildSelectFromPaths,unflattenDotNotation } from '../../utils'; export default async ( argv: Partial>, prompter: Inquirerer, diff --git a/sdk/constructive-functions-cli/cli/commands/api/org-secrets-set.ts b/sdk/constructive-functions-cli/cli/commands/api/org-secrets-set.ts index 4f1888cda..8b3846ca7 100644 --- a/sdk/constructive-functions-cli/cli/commands/api/org-secrets-set.ts +++ b/sdk/constructive-functions-cli/cli/commands/api/org-secrets-set.ts @@ -4,10 +4,11 @@ * DO NOT EDIT - changes will be overwritten */ import { CLIOptions, Inquirerer } from 'inquirerer'; -import { getClient } from '../../executor'; -import { unflattenDotNotation, buildSelectFromPaths } from '../../utils'; -import type { OrgSecretsSetVariables } from '../../../orm/mutation'; + import type { OrgSecretsSetPayloadSelect } from '../../../orm/input-types'; +import type { OrgSecretsSetVariables } from '../../../orm/mutation'; +import { getClient } from '../../executor'; +import { buildSelectFromPaths,unflattenDotNotation } from '../../utils'; export default async ( argv: Partial>, prompter: Inquirerer, diff --git a/sdk/constructive-functions-cli/cli/commands/api/platform-bucket.ts b/sdk/constructive-functions-cli/cli/commands/api/platform-bucket.ts index a187a16ef..d0314a3dc 100644 --- a/sdk/constructive-functions-cli/cli/commands/api/platform-bucket.ts +++ b/sdk/constructive-functions-cli/cli/commands/api/platform-bucket.ts @@ -3,18 +3,19 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; -import { getClient } from '../../executor'; -import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../../utils'; -import type { FieldSchema } from '../../utils'; +import { CLIOptions, extractFirst,Inquirerer } from 'inquirerer'; + import type { CreatePlatformBucketInput, - PlatformBucketPatch, - PlatformBucketSelect, PlatformBucketFilter, PlatformBucketOrderBy, + PlatformBucketPatch, + PlatformBucketSelect, } from '../../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../../orm/select-types'; +import type { FindFirstArgs,FindManyArgs } from '../../../orm/select-types'; +import { getClient } from '../../executor'; +import type { FieldSchema } from '../../utils'; +import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../../utils'; const fieldSchema: FieldSchema = { actorId: 'uuid', allowCustomKeys: 'boolean', diff --git a/sdk/constructive-functions-cli/cli/commands/api/platform-config-definition.ts b/sdk/constructive-functions-cli/cli/commands/api/platform-config-definition.ts index a769ec209..d2dcbbdc7 100644 --- a/sdk/constructive-functions-cli/cli/commands/api/platform-config-definition.ts +++ b/sdk/constructive-functions-cli/cli/commands/api/platform-config-definition.ts @@ -3,18 +3,19 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; -import { getClient } from '../../executor'; -import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../../utils'; -import type { FieldSchema } from '../../utils'; +import { CLIOptions, extractFirst,Inquirerer } from 'inquirerer'; + import type { CreatePlatformConfigDefinitionInput, - PlatformConfigDefinitionPatch, - PlatformConfigDefinitionSelect, PlatformConfigDefinitionFilter, PlatformConfigDefinitionOrderBy, + PlatformConfigDefinitionPatch, + PlatformConfigDefinitionSelect, } from '../../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../../orm/select-types'; +import type { FindFirstArgs,FindManyArgs } from '../../../orm/select-types'; +import { getClient } from '../../executor'; +import type { FieldSchema } from '../../utils'; +import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../../utils'; const fieldSchema: FieldSchema = { annotations: 'json', createdAt: 'string', diff --git a/sdk/constructive-functions-cli/cli/commands/api/platform-config.ts b/sdk/constructive-functions-cli/cli/commands/api/platform-config.ts index 44d73f533..e47c02582 100644 --- a/sdk/constructive-functions-cli/cli/commands/api/platform-config.ts +++ b/sdk/constructive-functions-cli/cli/commands/api/platform-config.ts @@ -3,18 +3,19 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; -import { getClient } from '../../executor'; -import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../../utils'; -import type { FieldSchema } from '../../utils'; +import { CLIOptions, extractFirst,Inquirerer } from 'inquirerer'; + import type { CreatePlatformConfigInput, - PlatformConfigPatch, - PlatformConfigSelect, PlatformConfigFilter, PlatformConfigOrderBy, + PlatformConfigPatch, + PlatformConfigSelect, } from '../../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../../orm/select-types'; +import type { FindFirstArgs,FindManyArgs } from '../../../orm/select-types'; +import { getClient } from '../../executor'; +import type { FieldSchema } from '../../utils'; +import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../../utils'; const fieldSchema: FieldSchema = { annotations: 'json', createdAt: 'string', diff --git a/sdk/constructive-functions-cli/cli/commands/api/platform-file.ts b/sdk/constructive-functions-cli/cli/commands/api/platform-file.ts index 6e5fd36c0..bf66bb4f0 100644 --- a/sdk/constructive-functions-cli/cli/commands/api/platform-file.ts +++ b/sdk/constructive-functions-cli/cli/commands/api/platform-file.ts @@ -3,18 +3,19 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; -import { getClient } from '../../executor'; -import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../../utils'; -import type { FieldSchema } from '../../utils'; +import { CLIOptions, extractFirst,Inquirerer } from 'inquirerer'; + import type { CreatePlatformFileInput, - PlatformFilePatch, - PlatformFileSelect, PlatformFileFilter, PlatformFileOrderBy, + PlatformFilePatch, + PlatformFileSelect, } from '../../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../../orm/select-types'; +import type { FindFirstArgs,FindManyArgs } from '../../../orm/select-types'; +import { getClient } from '../../executor'; +import type { FieldSchema } from '../../utils'; +import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../../utils'; const fieldSchema: FieldSchema = { filePath: 'string', actorId: 'uuid', diff --git a/sdk/constructive-functions-cli/cli/commands/api/platform-files-rename.ts b/sdk/constructive-functions-cli/cli/commands/api/platform-files-rename.ts index 9e0b12e02..245a32028 100644 --- a/sdk/constructive-functions-cli/cli/commands/api/platform-files-rename.ts +++ b/sdk/constructive-functions-cli/cli/commands/api/platform-files-rename.ts @@ -4,10 +4,11 @@ * DO NOT EDIT - changes will be overwritten */ import { CLIOptions, Inquirerer } from 'inquirerer'; -import { getClient } from '../../executor'; -import { unflattenDotNotation, buildSelectFromPaths } from '../../utils'; -import type { PlatformFilesRenameVariables } from '../../../orm/mutation'; + import type { PlatformFilesRenamePayloadSelect } from '../../../orm/input-types'; +import type { PlatformFilesRenameVariables } from '../../../orm/mutation'; +import { getClient } from '../../executor'; +import { buildSelectFromPaths,unflattenDotNotation } from '../../utils'; export default async ( argv: Partial>, prompter: Inquirerer, diff --git a/sdk/constructive-functions-cli/cli/commands/api/platform-namespace-event.ts b/sdk/constructive-functions-cli/cli/commands/api/platform-namespace-event.ts index 7534ffce2..e82ffe125 100644 --- a/sdk/constructive-functions-cli/cli/commands/api/platform-namespace-event.ts +++ b/sdk/constructive-functions-cli/cli/commands/api/platform-namespace-event.ts @@ -3,18 +3,19 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; -import { getClient } from '../../executor'; -import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../../utils'; -import type { FieldSchema } from '../../utils'; +import { CLIOptions, extractFirst,Inquirerer } from 'inquirerer'; + import type { CreatePlatformNamespaceEventInput, - PlatformNamespaceEventPatch, - PlatformNamespaceEventSelect, PlatformNamespaceEventFilter, PlatformNamespaceEventOrderBy, + PlatformNamespaceEventPatch, + PlatformNamespaceEventSelect, } from '../../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../../orm/select-types'; +import type { FindFirstArgs,FindManyArgs } from '../../../orm/select-types'; +import { getClient } from '../../executor'; +import type { FieldSchema } from '../../utils'; +import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../../utils'; const fieldSchema: FieldSchema = { createdAt: 'string', actorId: 'uuid', diff --git a/sdk/constructive-functions-cli/cli/commands/api/platform-namespace.ts b/sdk/constructive-functions-cli/cli/commands/api/platform-namespace.ts index ae1d04fbc..f34a695d9 100644 --- a/sdk/constructive-functions-cli/cli/commands/api/platform-namespace.ts +++ b/sdk/constructive-functions-cli/cli/commands/api/platform-namespace.ts @@ -3,18 +3,19 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; -import { getClient } from '../../executor'; -import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../../utils'; -import type { FieldSchema } from '../../utils'; +import { CLIOptions, extractFirst,Inquirerer } from 'inquirerer'; + import type { CreatePlatformNamespaceInput, - PlatformNamespacePatch, - PlatformNamespaceSelect, PlatformNamespaceFilter, PlatformNamespaceOrderBy, + PlatformNamespacePatch, + PlatformNamespaceSelect, } from '../../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../../orm/select-types'; +import type { FindFirstArgs,FindManyArgs } from '../../../orm/select-types'; +import { getClient } from '../../executor'; +import type { FieldSchema } from '../../utils'; +import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../../utils'; const fieldSchema: FieldSchema = { annotations: 'json', createdAt: 'string', diff --git a/sdk/constructive-functions-cli/cli/commands/api/platform-secrets-del.ts b/sdk/constructive-functions-cli/cli/commands/api/platform-secrets-del.ts index 0ba7e4549..607af6df6 100644 --- a/sdk/constructive-functions-cli/cli/commands/api/platform-secrets-del.ts +++ b/sdk/constructive-functions-cli/cli/commands/api/platform-secrets-del.ts @@ -4,10 +4,11 @@ * DO NOT EDIT - changes will be overwritten */ import { CLIOptions, Inquirerer } from 'inquirerer'; -import { getClient } from '../../executor'; -import { unflattenDotNotation, buildSelectFromPaths } from '../../utils'; -import type { PlatformSecretsDelVariables } from '../../../orm/mutation'; + import type { PlatformSecretsDelPayloadSelect } from '../../../orm/input-types'; +import type { PlatformSecretsDelVariables } from '../../../orm/mutation'; +import { getClient } from '../../executor'; +import { buildSelectFromPaths,unflattenDotNotation } from '../../utils'; export default async ( argv: Partial>, prompter: Inquirerer, diff --git a/sdk/constructive-functions-cli/cli/commands/api/platform-secrets-set.ts b/sdk/constructive-functions-cli/cli/commands/api/platform-secrets-set.ts index 16152ba56..658f8f3ec 100644 --- a/sdk/constructive-functions-cli/cli/commands/api/platform-secrets-set.ts +++ b/sdk/constructive-functions-cli/cli/commands/api/platform-secrets-set.ts @@ -4,10 +4,11 @@ * DO NOT EDIT - changes will be overwritten */ import { CLIOptions, Inquirerer } from 'inquirerer'; -import { getClient } from '../../executor'; -import { unflattenDotNotation, buildSelectFromPaths } from '../../utils'; -import type { PlatformSecretsSetVariables } from '../../../orm/mutation'; + import type { PlatformSecretsSetPayloadSelect } from '../../../orm/input-types'; +import type { PlatformSecretsSetVariables } from '../../../orm/mutation'; +import { getClient } from '../../executor'; +import { buildSelectFromPaths,unflattenDotNotation } from '../../utils'; export default async ( argv: Partial>, prompter: Inquirerer, diff --git a/sdk/constructive-functions-cli/cli/commands/api/provision-bucket.ts b/sdk/constructive-functions-cli/cli/commands/api/provision-bucket.ts index ed94c8307..7b235fad8 100644 --- a/sdk/constructive-functions-cli/cli/commands/api/provision-bucket.ts +++ b/sdk/constructive-functions-cli/cli/commands/api/provision-bucket.ts @@ -4,10 +4,11 @@ * DO NOT EDIT - changes will be overwritten */ import { CLIOptions, Inquirerer } from 'inquirerer'; -import { getClient } from '../../executor'; -import { unflattenDotNotation, buildSelectFromPaths } from '../../utils'; -import type { ProvisionBucketVariables } from '../../../orm/mutation'; + import type { ProvisionBucketPayloadSelect } from '../../../orm/input-types'; +import type { ProvisionBucketVariables } from '../../../orm/mutation'; +import { getClient } from '../../executor'; +import { buildSelectFromPaths,unflattenDotNotation } from '../../utils'; export default async ( argv: Partial>, prompter: Inquirerer, diff --git a/sdk/constructive-functions-cli/cli/commands/api/role-type.ts b/sdk/constructive-functions-cli/cli/commands/api/role-type.ts index 58d7e6007..b4a7d2d61 100644 --- a/sdk/constructive-functions-cli/cli/commands/api/role-type.ts +++ b/sdk/constructive-functions-cli/cli/commands/api/role-type.ts @@ -3,18 +3,19 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; -import { getClient } from '../../executor'; -import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../../utils'; -import type { FieldSchema } from '../../utils'; +import { CLIOptions, extractFirst,Inquirerer } from 'inquirerer'; + import type { CreateRoleTypeInput, - RoleTypePatch, - RoleTypeSelect, RoleTypeFilter, RoleTypeOrderBy, + RoleTypePatch, + RoleTypeSelect, } from '../../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../../orm/select-types'; +import type { FindFirstArgs,FindManyArgs } from '../../../orm/select-types'; +import { getClient } from '../../executor'; +import type { FieldSchema } from '../../utils'; +import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../../utils'; const fieldSchema: FieldSchema = { id: 'int', name: 'string', diff --git a/sdk/constructive-functions-cli/cli/commands/api/upload-platform-file.ts b/sdk/constructive-functions-cli/cli/commands/api/upload-platform-file.ts index 88d9853d1..be597fca4 100644 --- a/sdk/constructive-functions-cli/cli/commands/api/upload-platform-file.ts +++ b/sdk/constructive-functions-cli/cli/commands/api/upload-platform-file.ts @@ -4,10 +4,11 @@ * DO NOT EDIT - changes will be overwritten */ import { CLIOptions, Inquirerer } from 'inquirerer'; -import { getClient } from '../../executor'; -import { unflattenDotNotation, buildSelectFromPaths } from '../../utils'; -import type { UploadPlatformFileVariables } from '../../../orm/mutation'; + import type { UploadPlatformFilePayloadSelect } from '../../../orm/input-types'; +import type { UploadPlatformFileVariables } from '../../../orm/mutation'; +import { getClient } from '../../executor'; +import { buildSelectFromPaths,unflattenDotNotation } from '../../utils'; export default async ( argv: Partial>, prompter: Inquirerer, diff --git a/sdk/constructive-functions-cli/cli/commands/api/upload-platform-files.ts b/sdk/constructive-functions-cli/cli/commands/api/upload-platform-files.ts index f0fa47799..897fccd6f 100644 --- a/sdk/constructive-functions-cli/cli/commands/api/upload-platform-files.ts +++ b/sdk/constructive-functions-cli/cli/commands/api/upload-platform-files.ts @@ -4,10 +4,11 @@ * DO NOT EDIT - changes will be overwritten */ import { CLIOptions, Inquirerer } from 'inquirerer'; -import { getClient } from '../../executor'; -import { unflattenDotNotation, buildSelectFromPaths } from '../../utils'; -import type { UploadPlatformFilesVariables } from '../../../orm/mutation'; + import type { UploadPlatformFileBulkPayloadSelect } from '../../../orm/input-types'; +import type { UploadPlatformFilesVariables } from '../../../orm/mutation'; +import { getClient } from '../../executor'; +import { buildSelectFromPaths,unflattenDotNotation } from '../../utils'; export default async ( argv: Partial>, prompter: Inquirerer, diff --git a/sdk/constructive-functions-cli/cli/commands/api/user.ts b/sdk/constructive-functions-cli/cli/commands/api/user.ts index ccee3c4e6..e4aebe73c 100644 --- a/sdk/constructive-functions-cli/cli/commands/api/user.ts +++ b/sdk/constructive-functions-cli/cli/commands/api/user.ts @@ -3,18 +3,19 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; -import { getClient } from '../../executor'; -import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../../utils'; -import type { FieldSchema } from '../../utils'; +import { CLIOptions, extractFirst,Inquirerer } from 'inquirerer'; + import type { CreateUserInput, - UserPatch, - UserSelect, UserFilter, UserOrderBy, + UserPatch, + UserSelect, } from '../../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../../orm/select-types'; +import type { FindFirstArgs,FindManyArgs } from '../../../orm/select-types'; +import { getClient } from '../../executor'; +import type { FieldSchema } from '../../utils'; +import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../../utils'; const fieldSchema: FieldSchema = { createdAt: 'string', displayName: 'string', diff --git a/sdk/constructive-functions-cli/cli/commands/auth.ts b/sdk/constructive-functions-cli/cli/commands/auth.ts index 78073370c..8a53a829b 100644 --- a/sdk/constructive-functions-cli/cli/commands/auth.ts +++ b/sdk/constructive-functions-cli/cli/commands/auth.ts @@ -3,7 +3,8 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; +import { CLIOptions, extractFirst,Inquirerer } from 'inquirerer'; + import { getStore } from '../executor'; const usage = '\nconstructive-functions auth \n\nCommands:\n set-token Set API token for the current context\n status Show authentication status\n logout Remove credentials for the current context\n\nOptions:\n --context Specify context (defaults to current context)\n\n --help, -h Show this help message\n'; diff --git a/sdk/constructive-functions-cli/cli/commands/compute/get-all-record.ts b/sdk/constructive-functions-cli/cli/commands/compute/get-all-record.ts index cbb184a51..6a428594a 100644 --- a/sdk/constructive-functions-cli/cli/commands/compute/get-all-record.ts +++ b/sdk/constructive-functions-cli/cli/commands/compute/get-all-record.ts @@ -3,18 +3,18 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; -import { getClient } from '../../executor'; -import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../../utils'; -import type { FieldSchema } from '../../utils'; +import { CLIOptions, extractFirst,Inquirerer } from 'inquirerer'; + import type { CreateGetAllRecordInput, - GetAllRecordPatch, - GetAllRecordSelect, GetAllRecordFilter, + GetAllRecordSelect, GetAllRecordsOrderBy, } from '../../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../../orm/select-types'; +import type { FindFirstArgs,FindManyArgs } from '../../../orm/select-types'; +import { getClient } from '../../executor'; +import type { FieldSchema } from '../../utils'; +import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../../utils'; const fieldSchema: FieldSchema = { path: 'string', data: 'json', diff --git a/sdk/constructive-functions-cli/cli/commands/compute/init-empty-repo.ts b/sdk/constructive-functions-cli/cli/commands/compute/init-empty-repo.ts index c9bc28452..7e875efc5 100644 --- a/sdk/constructive-functions-cli/cli/commands/compute/init-empty-repo.ts +++ b/sdk/constructive-functions-cli/cli/commands/compute/init-empty-repo.ts @@ -4,10 +4,11 @@ * DO NOT EDIT - changes will be overwritten */ import { CLIOptions, Inquirerer } from 'inquirerer'; -import { getClient } from '../../executor'; -import { unflattenDotNotation, buildSelectFromPaths } from '../../utils'; -import type { InitEmptyRepoVariables } from '../../../orm/mutation'; + import type { InitEmptyRepoPayloadSelect } from '../../../orm/input-types'; +import type { InitEmptyRepoVariables } from '../../../orm/mutation'; +import { getClient } from '../../executor'; +import { buildSelectFromPaths,unflattenDotNotation } from '../../utils'; export default async ( argv: Partial>, prompter: Inquirerer, diff --git a/sdk/constructive-functions-cli/cli/commands/compute/insert-node-at-path.ts b/sdk/constructive-functions-cli/cli/commands/compute/insert-node-at-path.ts index 560a98169..76ddef3ba 100644 --- a/sdk/constructive-functions-cli/cli/commands/compute/insert-node-at-path.ts +++ b/sdk/constructive-functions-cli/cli/commands/compute/insert-node-at-path.ts @@ -4,10 +4,11 @@ * DO NOT EDIT - changes will be overwritten */ import { CLIOptions, Inquirerer } from 'inquirerer'; -import { getClient } from '../../executor'; -import { unflattenDotNotation, buildSelectFromPaths } from '../../utils'; -import type { InsertNodeAtPathVariables } from '../../../orm/mutation'; + import type { InsertNodeAtPathPayloadSelect } from '../../../orm/input-types'; +import type { InsertNodeAtPathVariables } from '../../../orm/mutation'; +import { getClient } from '../../executor'; +import { buildSelectFromPaths,unflattenDotNotation } from '../../utils'; export default async ( argv: Partial>, prompter: Inquirerer, diff --git a/sdk/constructive-functions-cli/cli/commands/compute/org-function-execution-log.ts b/sdk/constructive-functions-cli/cli/commands/compute/org-function-execution-log.ts index 85a596cf9..3994ecfad 100644 --- a/sdk/constructive-functions-cli/cli/commands/compute/org-function-execution-log.ts +++ b/sdk/constructive-functions-cli/cli/commands/compute/org-function-execution-log.ts @@ -3,18 +3,19 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; -import { getClient } from '../../executor'; -import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../../utils'; -import type { FieldSchema } from '../../utils'; +import { CLIOptions, extractFirst,Inquirerer } from 'inquirerer'; + import type { CreateOrgFunctionExecutionLogInput, - OrgFunctionExecutionLogPatch, - OrgFunctionExecutionLogSelect, OrgFunctionExecutionLogFilter, OrgFunctionExecutionLogOrderBy, + OrgFunctionExecutionLogPatch, + OrgFunctionExecutionLogSelect, } from '../../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../../orm/select-types'; +import type { FindFirstArgs,FindManyArgs } from '../../../orm/select-types'; +import { getClient } from '../../executor'; +import type { FieldSchema } from '../../utils'; +import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../../utils'; const fieldSchema: FieldSchema = { createdAt: 'string', actorId: 'uuid', diff --git a/sdk/constructive-functions-cli/cli/commands/compute/org-function-invocation.ts b/sdk/constructive-functions-cli/cli/commands/compute/org-function-invocation.ts index 2f7cd2df9..b60b8dfc4 100644 --- a/sdk/constructive-functions-cli/cli/commands/compute/org-function-invocation.ts +++ b/sdk/constructive-functions-cli/cli/commands/compute/org-function-invocation.ts @@ -3,18 +3,19 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; -import { getClient } from '../../executor'; -import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../../utils'; -import type { FieldSchema } from '../../utils'; +import { CLIOptions, extractFirst,Inquirerer } from 'inquirerer'; + import type { CreateOrgFunctionInvocationInput, - OrgFunctionInvocationPatch, - OrgFunctionInvocationSelect, OrgFunctionInvocationFilter, OrgFunctionInvocationOrderBy, + OrgFunctionInvocationPatch, + OrgFunctionInvocationSelect, } from '../../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../../orm/select-types'; +import type { FindFirstArgs,FindManyArgs } from '../../../orm/select-types'; +import { getClient } from '../../executor'; +import type { FieldSchema } from '../../utils'; +import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../../utils'; const fieldSchema: FieldSchema = { createdAt: 'string', actorId: 'uuid', diff --git a/sdk/constructive-functions-cli/cli/commands/compute/platform-add-edge-and-save.ts b/sdk/constructive-functions-cli/cli/commands/compute/platform-add-edge-and-save.ts index cd70b159b..1084b373d 100644 --- a/sdk/constructive-functions-cli/cli/commands/compute/platform-add-edge-and-save.ts +++ b/sdk/constructive-functions-cli/cli/commands/compute/platform-add-edge-and-save.ts @@ -4,10 +4,11 @@ * DO NOT EDIT - changes will be overwritten */ import { CLIOptions, Inquirerer } from 'inquirerer'; -import { getClient } from '../../executor'; -import { unflattenDotNotation, buildSelectFromPaths } from '../../utils'; -import type { PlatformAddEdgeAndSaveVariables } from '../../../orm/mutation'; + import type { PlatformAddEdgeAndSavePayloadSelect } from '../../../orm/input-types'; +import type { PlatformAddEdgeAndSaveVariables } from '../../../orm/mutation'; +import { getClient } from '../../executor'; +import { buildSelectFromPaths,unflattenDotNotation } from '../../utils'; export default async ( argv: Partial>, prompter: Inquirerer, diff --git a/sdk/constructive-functions-cli/cli/commands/compute/platform-add-edge.ts b/sdk/constructive-functions-cli/cli/commands/compute/platform-add-edge.ts index cf172cca2..d2a1da205 100644 --- a/sdk/constructive-functions-cli/cli/commands/compute/platform-add-edge.ts +++ b/sdk/constructive-functions-cli/cli/commands/compute/platform-add-edge.ts @@ -4,10 +4,11 @@ * DO NOT EDIT - changes will be overwritten */ import { CLIOptions, Inquirerer } from 'inquirerer'; -import { getClient } from '../../executor'; -import { unflattenDotNotation, buildSelectFromPaths } from '../../utils'; -import type { PlatformAddEdgeVariables } from '../../../orm/mutation'; + import type { PlatformAddEdgePayloadSelect } from '../../../orm/input-types'; +import type { PlatformAddEdgeVariables } from '../../../orm/mutation'; +import { getClient } from '../../executor'; +import { buildSelectFromPaths,unflattenDotNotation } from '../../utils'; export default async ( argv: Partial>, prompter: Inquirerer, diff --git a/sdk/constructive-functions-cli/cli/commands/compute/platform-add-node-and-save.ts b/sdk/constructive-functions-cli/cli/commands/compute/platform-add-node-and-save.ts index a1f18f25b..fb44f28be 100644 --- a/sdk/constructive-functions-cli/cli/commands/compute/platform-add-node-and-save.ts +++ b/sdk/constructive-functions-cli/cli/commands/compute/platform-add-node-and-save.ts @@ -4,10 +4,11 @@ * DO NOT EDIT - changes will be overwritten */ import { CLIOptions, Inquirerer } from 'inquirerer'; -import { getClient } from '../../executor'; -import { unflattenDotNotation, buildSelectFromPaths } from '../../utils'; -import type { PlatformAddNodeAndSaveVariables } from '../../../orm/mutation'; + import type { PlatformAddNodeAndSavePayloadSelect } from '../../../orm/input-types'; +import type { PlatformAddNodeAndSaveVariables } from '../../../orm/mutation'; +import { getClient } from '../../executor'; +import { buildSelectFromPaths,unflattenDotNotation } from '../../utils'; export default async ( argv: Partial>, prompter: Inquirerer, diff --git a/sdk/constructive-functions-cli/cli/commands/compute/platform-add-node.ts b/sdk/constructive-functions-cli/cli/commands/compute/platform-add-node.ts index 918e929b8..7de30dda9 100644 --- a/sdk/constructive-functions-cli/cli/commands/compute/platform-add-node.ts +++ b/sdk/constructive-functions-cli/cli/commands/compute/platform-add-node.ts @@ -4,10 +4,11 @@ * DO NOT EDIT - changes will be overwritten */ import { CLIOptions, Inquirerer } from 'inquirerer'; -import { getClient } from '../../executor'; -import { unflattenDotNotation, buildSelectFromPaths } from '../../utils'; -import type { PlatformAddNodeVariables } from '../../../orm/mutation'; + import type { PlatformAddNodePayloadSelect } from '../../../orm/input-types'; +import type { PlatformAddNodeVariables } from '../../../orm/mutation'; +import { getClient } from '../../executor'; +import { buildSelectFromPaths,unflattenDotNotation } from '../../utils'; export default async ( argv: Partial>, prompter: Inquirerer, diff --git a/sdk/constructive-functions-cli/cli/commands/compute/platform-compute-log.ts b/sdk/constructive-functions-cli/cli/commands/compute/platform-compute-log.ts index 90b3e4815..dfccb355e 100644 --- a/sdk/constructive-functions-cli/cli/commands/compute/platform-compute-log.ts +++ b/sdk/constructive-functions-cli/cli/commands/compute/platform-compute-log.ts @@ -3,18 +3,19 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; -import { getClient } from '../../executor'; -import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../../utils'; -import type { FieldSchema } from '../../utils'; +import { CLIOptions, extractFirst,Inquirerer } from 'inquirerer'; + import type { CreatePlatformComputeLogInput, - PlatformComputeLogPatch, - PlatformComputeLogSelect, PlatformComputeLogFilter, PlatformComputeLogOrderBy, + PlatformComputeLogPatch, + PlatformComputeLogSelect, } from '../../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../../orm/select-types'; +import type { FindFirstArgs,FindManyArgs } from '../../../orm/select-types'; +import { getClient } from '../../executor'; +import type { FieldSchema } from '../../utils'; +import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../../utils'; const fieldSchema: FieldSchema = { completedAt: 'string', id: 'uuid', diff --git a/sdk/constructive-functions-cli/cli/commands/compute/platform-copy-graph.ts b/sdk/constructive-functions-cli/cli/commands/compute/platform-copy-graph.ts index 79f566bbc..db04155a6 100644 --- a/sdk/constructive-functions-cli/cli/commands/compute/platform-copy-graph.ts +++ b/sdk/constructive-functions-cli/cli/commands/compute/platform-copy-graph.ts @@ -4,10 +4,11 @@ * DO NOT EDIT - changes will be overwritten */ import { CLIOptions, Inquirerer } from 'inquirerer'; -import { getClient } from '../../executor'; -import { unflattenDotNotation, buildSelectFromPaths } from '../../utils'; -import type { PlatformCopyGraphVariables } from '../../../orm/mutation'; + import type { PlatformCopyGraphPayloadSelect } from '../../../orm/input-types'; +import type { PlatformCopyGraphVariables } from '../../../orm/mutation'; +import { getClient } from '../../executor'; +import { buildSelectFromPaths,unflattenDotNotation } from '../../utils'; export default async ( argv: Partial>, prompter: Inquirerer, diff --git a/sdk/constructive-functions-cli/cli/commands/compute/platform-create-function-graph.ts b/sdk/constructive-functions-cli/cli/commands/compute/platform-create-function-graph.ts index fd91afd6c..966b155ec 100644 --- a/sdk/constructive-functions-cli/cli/commands/compute/platform-create-function-graph.ts +++ b/sdk/constructive-functions-cli/cli/commands/compute/platform-create-function-graph.ts @@ -4,10 +4,11 @@ * DO NOT EDIT - changes will be overwritten */ import { CLIOptions, Inquirerer } from 'inquirerer'; -import { getClient } from '../../executor'; -import { unflattenDotNotation, buildSelectFromPaths } from '../../utils'; -import type { PlatformCreateFunctionGraphVariables } from '../../../orm/mutation'; + import type { PlatformCreateFunctionGraphPayloadSelect } from '../../../orm/input-types'; +import type { PlatformCreateFunctionGraphVariables } from '../../../orm/mutation'; +import { getClient } from '../../executor'; +import { buildSelectFromPaths,unflattenDotNotation } from '../../utils'; export default async ( argv: Partial>, prompter: Inquirerer, diff --git a/sdk/constructive-functions-cli/cli/commands/compute/platform-function-definition.ts b/sdk/constructive-functions-cli/cli/commands/compute/platform-function-definition.ts index a136ab46a..ceea635a1 100644 --- a/sdk/constructive-functions-cli/cli/commands/compute/platform-function-definition.ts +++ b/sdk/constructive-functions-cli/cli/commands/compute/platform-function-definition.ts @@ -3,18 +3,19 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; -import { getClient } from '../../executor'; -import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../../utils'; -import type { FieldSchema } from '../../utils'; +import { CLIOptions, extractFirst,Inquirerer } from 'inquirerer'; + import type { CreatePlatformFunctionDefinitionInput, - PlatformFunctionDefinitionPatch, - PlatformFunctionDefinitionSelect, PlatformFunctionDefinitionFilter, PlatformFunctionDefinitionOrderBy, + PlatformFunctionDefinitionPatch, + PlatformFunctionDefinitionSelect, } from '../../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../../orm/select-types'; +import type { FindFirstArgs,FindManyArgs } from '../../../orm/select-types'; +import { getClient } from '../../executor'; +import type { FieldSchema } from '../../utils'; +import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../../utils'; const fieldSchema: FieldSchema = { createdAt: 'string', description: 'string', diff --git a/sdk/constructive-functions-cli/cli/commands/compute/platform-function-execution-log.ts b/sdk/constructive-functions-cli/cli/commands/compute/platform-function-execution-log.ts index f81569a64..97e54e421 100644 --- a/sdk/constructive-functions-cli/cli/commands/compute/platform-function-execution-log.ts +++ b/sdk/constructive-functions-cli/cli/commands/compute/platform-function-execution-log.ts @@ -3,18 +3,19 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; -import { getClient } from '../../executor'; -import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../../utils'; -import type { FieldSchema } from '../../utils'; +import { CLIOptions, extractFirst,Inquirerer } from 'inquirerer'; + import type { CreatePlatformFunctionExecutionLogInput, - PlatformFunctionExecutionLogPatch, - PlatformFunctionExecutionLogSelect, PlatformFunctionExecutionLogFilter, PlatformFunctionExecutionLogOrderBy, + PlatformFunctionExecutionLogPatch, + PlatformFunctionExecutionLogSelect, } from '../../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../../orm/select-types'; +import type { FindFirstArgs,FindManyArgs } from '../../../orm/select-types'; +import { getClient } from '../../executor'; +import type { FieldSchema } from '../../utils'; +import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../../utils'; const fieldSchema: FieldSchema = { createdAt: 'string', actorId: 'uuid', diff --git a/sdk/constructive-functions-cli/cli/commands/compute/platform-function-graph-commit.ts b/sdk/constructive-functions-cli/cli/commands/compute/platform-function-graph-commit.ts index e6327fb22..73a4111eb 100644 --- a/sdk/constructive-functions-cli/cli/commands/compute/platform-function-graph-commit.ts +++ b/sdk/constructive-functions-cli/cli/commands/compute/platform-function-graph-commit.ts @@ -3,18 +3,19 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; -import { getClient } from '../../executor'; -import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../../utils'; -import type { FieldSchema } from '../../utils'; +import { CLIOptions, extractFirst,Inquirerer } from 'inquirerer'; + import type { CreatePlatformFunctionGraphCommitInput, - PlatformFunctionGraphCommitPatch, - PlatformFunctionGraphCommitSelect, PlatformFunctionGraphCommitFilter, PlatformFunctionGraphCommitOrderBy, + PlatformFunctionGraphCommitPatch, + PlatformFunctionGraphCommitSelect, } from '../../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../../orm/select-types'; +import type { FindFirstArgs,FindManyArgs } from '../../../orm/select-types'; +import { getClient } from '../../executor'; +import type { FieldSchema } from '../../utils'; +import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../../utils'; const fieldSchema: FieldSchema = { authorId: 'uuid', committerId: 'uuid', diff --git a/sdk/constructive-functions-cli/cli/commands/compute/platform-function-graph-execution-node-state.ts b/sdk/constructive-functions-cli/cli/commands/compute/platform-function-graph-execution-node-state.ts index 1793a2693..8be74b1e1 100644 --- a/sdk/constructive-functions-cli/cli/commands/compute/platform-function-graph-execution-node-state.ts +++ b/sdk/constructive-functions-cli/cli/commands/compute/platform-function-graph-execution-node-state.ts @@ -3,18 +3,19 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; -import { getClient } from '../../executor'; -import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../../utils'; -import type { FieldSchema } from '../../utils'; +import { CLIOptions, extractFirst,Inquirerer } from 'inquirerer'; + import type { CreatePlatformFunctionGraphExecutionNodeStateInput, - PlatformFunctionGraphExecutionNodeStatePatch, - PlatformFunctionGraphExecutionNodeStateSelect, PlatformFunctionGraphExecutionNodeStateFilter, PlatformFunctionGraphExecutionNodeStateOrderBy, + PlatformFunctionGraphExecutionNodeStatePatch, + PlatformFunctionGraphExecutionNodeStateSelect, } from '../../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../../orm/select-types'; +import type { FindFirstArgs,FindManyArgs } from '../../../orm/select-types'; +import { getClient } from '../../executor'; +import type { FieldSchema } from '../../utils'; +import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../../utils'; const fieldSchema: FieldSchema = { createdAt: 'string', completedAt: 'string', diff --git a/sdk/constructive-functions-cli/cli/commands/compute/platform-function-graph-execution-output.ts b/sdk/constructive-functions-cli/cli/commands/compute/platform-function-graph-execution-output.ts index aa03a78c3..52effa22a 100644 --- a/sdk/constructive-functions-cli/cli/commands/compute/platform-function-graph-execution-output.ts +++ b/sdk/constructive-functions-cli/cli/commands/compute/platform-function-graph-execution-output.ts @@ -3,18 +3,19 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; -import { getClient } from '../../executor'; -import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../../utils'; -import type { FieldSchema } from '../../utils'; +import { CLIOptions, extractFirst,Inquirerer } from 'inquirerer'; + import type { CreatePlatformFunctionGraphExecutionOutputInput, - PlatformFunctionGraphExecutionOutputPatch, - PlatformFunctionGraphExecutionOutputSelect, PlatformFunctionGraphExecutionOutputFilter, PlatformFunctionGraphExecutionOutputOrderBy, + PlatformFunctionGraphExecutionOutputPatch, + PlatformFunctionGraphExecutionOutputSelect, } from '../../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../../orm/select-types'; +import type { FindFirstArgs,FindManyArgs } from '../../../orm/select-types'; +import { getClient } from '../../executor'; +import type { FieldSchema } from '../../utils'; +import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../../utils'; const fieldSchema: FieldSchema = { createdAt: 'string', data: 'json', diff --git a/sdk/constructive-functions-cli/cli/commands/compute/platform-function-graph-execution.ts b/sdk/constructive-functions-cli/cli/commands/compute/platform-function-graph-execution.ts index e5f0e8049..48c5a2ef5 100644 --- a/sdk/constructive-functions-cli/cli/commands/compute/platform-function-graph-execution.ts +++ b/sdk/constructive-functions-cli/cli/commands/compute/platform-function-graph-execution.ts @@ -3,18 +3,19 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; -import { getClient } from '../../executor'; -import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../../utils'; -import type { FieldSchema } from '../../utils'; +import { CLIOptions, extractFirst,Inquirerer } from 'inquirerer'; + import type { CreatePlatformFunctionGraphExecutionInput, - PlatformFunctionGraphExecutionPatch, - PlatformFunctionGraphExecutionSelect, PlatformFunctionGraphExecutionFilter, PlatformFunctionGraphExecutionOrderBy, + PlatformFunctionGraphExecutionPatch, + PlatformFunctionGraphExecutionSelect, } from '../../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../../orm/select-types'; +import type { FindFirstArgs,FindManyArgs } from '../../../orm/select-types'; +import { getClient } from '../../executor'; +import type { FieldSchema } from '../../utils'; +import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../../utils'; const fieldSchema: FieldSchema = { startedAt: 'string', completedAt: 'string', diff --git a/sdk/constructive-functions-cli/cli/commands/compute/platform-function-graph-object.ts b/sdk/constructive-functions-cli/cli/commands/compute/platform-function-graph-object.ts index 5a3210a39..5f9d26090 100644 --- a/sdk/constructive-functions-cli/cli/commands/compute/platform-function-graph-object.ts +++ b/sdk/constructive-functions-cli/cli/commands/compute/platform-function-graph-object.ts @@ -3,18 +3,19 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; -import { getClient } from '../../executor'; -import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../../utils'; -import type { FieldSchema } from '../../utils'; +import { CLIOptions, extractFirst,Inquirerer } from 'inquirerer'; + import type { CreatePlatformFunctionGraphObjectInput, - PlatformFunctionGraphObjectPatch, - PlatformFunctionGraphObjectSelect, PlatformFunctionGraphObjectFilter, PlatformFunctionGraphObjectOrderBy, + PlatformFunctionGraphObjectPatch, + PlatformFunctionGraphObjectSelect, } from '../../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../../orm/select-types'; +import type { FindFirstArgs,FindManyArgs } from '../../../orm/select-types'; +import { getClient } from '../../executor'; +import type { FieldSchema } from '../../utils'; +import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../../utils'; const fieldSchema: FieldSchema = { createdAt: 'string', data: 'json', diff --git a/sdk/constructive-functions-cli/cli/commands/compute/platform-function-graph-ref.ts b/sdk/constructive-functions-cli/cli/commands/compute/platform-function-graph-ref.ts index 825bf8b73..a81bf2a6a 100644 --- a/sdk/constructive-functions-cli/cli/commands/compute/platform-function-graph-ref.ts +++ b/sdk/constructive-functions-cli/cli/commands/compute/platform-function-graph-ref.ts @@ -3,18 +3,19 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; -import { getClient } from '../../executor'; -import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../../utils'; -import type { FieldSchema } from '../../utils'; +import { CLIOptions, extractFirst,Inquirerer } from 'inquirerer'; + import type { CreatePlatformFunctionGraphRefInput, - PlatformFunctionGraphRefPatch, - PlatformFunctionGraphRefSelect, PlatformFunctionGraphRefFilter, PlatformFunctionGraphRefOrderBy, + PlatformFunctionGraphRefPatch, + PlatformFunctionGraphRefSelect, } from '../../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../../orm/select-types'; +import type { FindFirstArgs,FindManyArgs } from '../../../orm/select-types'; +import { getClient } from '../../executor'; +import type { FieldSchema } from '../../utils'; +import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../../utils'; const fieldSchema: FieldSchema = { commitId: 'uuid', databaseId: 'uuid', diff --git a/sdk/constructive-functions-cli/cli/commands/compute/platform-function-graph-store.ts b/sdk/constructive-functions-cli/cli/commands/compute/platform-function-graph-store.ts index 99cabf725..5ada1a7cd 100644 --- a/sdk/constructive-functions-cli/cli/commands/compute/platform-function-graph-store.ts +++ b/sdk/constructive-functions-cli/cli/commands/compute/platform-function-graph-store.ts @@ -3,18 +3,19 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; -import { getClient } from '../../executor'; -import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../../utils'; -import type { FieldSchema } from '../../utils'; +import { CLIOptions, extractFirst,Inquirerer } from 'inquirerer'; + import type { CreatePlatformFunctionGraphStoreInput, - PlatformFunctionGraphStorePatch, - PlatformFunctionGraphStoreSelect, PlatformFunctionGraphStoreFilter, PlatformFunctionGraphStoreOrderBy, + PlatformFunctionGraphStorePatch, + PlatformFunctionGraphStoreSelect, } from '../../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../../orm/select-types'; +import type { FindFirstArgs,FindManyArgs } from '../../../orm/select-types'; +import { getClient } from '../../executor'; +import type { FieldSchema } from '../../utils'; +import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../../utils'; const fieldSchema: FieldSchema = { createdAt: 'string', databaseId: 'uuid', diff --git a/sdk/constructive-functions-cli/cli/commands/compute/platform-function-graph.ts b/sdk/constructive-functions-cli/cli/commands/compute/platform-function-graph.ts index c6463812e..c03fccb8a 100644 --- a/sdk/constructive-functions-cli/cli/commands/compute/platform-function-graph.ts +++ b/sdk/constructive-functions-cli/cli/commands/compute/platform-function-graph.ts @@ -3,18 +3,19 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; -import { getClient } from '../../executor'; -import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../../utils'; -import type { FieldSchema } from '../../utils'; +import { CLIOptions, extractFirst,Inquirerer } from 'inquirerer'; + import type { CreatePlatformFunctionGraphInput, - PlatformFunctionGraphPatch, - PlatformFunctionGraphSelect, PlatformFunctionGraphFilter, PlatformFunctionGraphOrderBy, + PlatformFunctionGraphPatch, + PlatformFunctionGraphSelect, } from '../../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../../orm/select-types'; +import type { FindFirstArgs,FindManyArgs } from '../../../orm/select-types'; +import { getClient } from '../../executor'; +import type { FieldSchema } from '../../utils'; +import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../../utils'; const fieldSchema: FieldSchema = { context: 'string', createdAt: 'string', diff --git a/sdk/constructive-functions-cli/cli/commands/compute/platform-function-invocation.ts b/sdk/constructive-functions-cli/cli/commands/compute/platform-function-invocation.ts index 6e18c9f3b..dbaf0daca 100644 --- a/sdk/constructive-functions-cli/cli/commands/compute/platform-function-invocation.ts +++ b/sdk/constructive-functions-cli/cli/commands/compute/platform-function-invocation.ts @@ -3,18 +3,19 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; -import { getClient } from '../../executor'; -import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../../utils'; -import type { FieldSchema } from '../../utils'; +import { CLIOptions, extractFirst,Inquirerer } from 'inquirerer'; + import type { CreatePlatformFunctionInvocationInput, - PlatformFunctionInvocationPatch, - PlatformFunctionInvocationSelect, PlatformFunctionInvocationFilter, PlatformFunctionInvocationOrderBy, + PlatformFunctionInvocationPatch, + PlatformFunctionInvocationSelect, } from '../../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../../orm/select-types'; +import type { FindFirstArgs,FindManyArgs } from '../../../orm/select-types'; +import { getClient } from '../../executor'; +import type { FieldSchema } from '../../utils'; +import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../../utils'; const fieldSchema: FieldSchema = { createdAt: 'string', actorId: 'uuid', diff --git a/sdk/constructive-functions-cli/cli/commands/compute/platform-import-definitions.ts b/sdk/constructive-functions-cli/cli/commands/compute/platform-import-definitions.ts index c3715648e..7cf595a03 100644 --- a/sdk/constructive-functions-cli/cli/commands/compute/platform-import-definitions.ts +++ b/sdk/constructive-functions-cli/cli/commands/compute/platform-import-definitions.ts @@ -4,10 +4,11 @@ * DO NOT EDIT - changes will be overwritten */ import { CLIOptions, Inquirerer } from 'inquirerer'; -import { getClient } from '../../executor'; -import { unflattenDotNotation, buildSelectFromPaths } from '../../utils'; -import type { PlatformImportDefinitionsVariables } from '../../../orm/mutation'; + import type { PlatformImportDefinitionsPayloadSelect } from '../../../orm/input-types'; +import type { PlatformImportDefinitionsVariables } from '../../../orm/mutation'; +import { getClient } from '../../executor'; +import { buildSelectFromPaths,unflattenDotNotation } from '../../utils'; export default async ( argv: Partial>, prompter: Inquirerer, diff --git a/sdk/constructive-functions-cli/cli/commands/compute/platform-import-graph-json.ts b/sdk/constructive-functions-cli/cli/commands/compute/platform-import-graph-json.ts index 30d568712..8fe174369 100644 --- a/sdk/constructive-functions-cli/cli/commands/compute/platform-import-graph-json.ts +++ b/sdk/constructive-functions-cli/cli/commands/compute/platform-import-graph-json.ts @@ -4,10 +4,11 @@ * DO NOT EDIT - changes will be overwritten */ import { CLIOptions, Inquirerer } from 'inquirerer'; -import { getClient } from '../../executor'; -import { unflattenDotNotation, buildSelectFromPaths } from '../../utils'; -import type { PlatformImportGraphJsonVariables } from '../../../orm/mutation'; + import type { PlatformImportGraphJsonPayloadSelect } from '../../../orm/input-types'; +import type { PlatformImportGraphJsonVariables } from '../../../orm/mutation'; +import { getClient } from '../../executor'; +import { buildSelectFromPaths,unflattenDotNotation } from '../../utils'; export default async ( argv: Partial>, prompter: Inquirerer, diff --git a/sdk/constructive-functions-cli/cli/commands/compute/platform-read-function-graph.ts b/sdk/constructive-functions-cli/cli/commands/compute/platform-read-function-graph.ts index 279610c44..347f983c3 100644 --- a/sdk/constructive-functions-cli/cli/commands/compute/platform-read-function-graph.ts +++ b/sdk/constructive-functions-cli/cli/commands/compute/platform-read-function-graph.ts @@ -4,8 +4,9 @@ * DO NOT EDIT - changes will be overwritten */ import { CLIOptions, Inquirerer } from 'inquirerer'; -import { getClient } from '../../executor'; + import type { PlatformReadFunctionGraphVariables } from '../../../orm/query'; +import { getClient } from '../../executor'; export default async ( argv: Partial>, prompter: Inquirerer, diff --git a/sdk/constructive-functions-cli/cli/commands/compute/platform-save-graph.ts b/sdk/constructive-functions-cli/cli/commands/compute/platform-save-graph.ts index df721f3d5..6e7480002 100644 --- a/sdk/constructive-functions-cli/cli/commands/compute/platform-save-graph.ts +++ b/sdk/constructive-functions-cli/cli/commands/compute/platform-save-graph.ts @@ -4,10 +4,11 @@ * DO NOT EDIT - changes will be overwritten */ import { CLIOptions, Inquirerer } from 'inquirerer'; -import { getClient } from '../../executor'; -import { unflattenDotNotation, buildSelectFromPaths } from '../../utils'; -import type { PlatformSaveGraphVariables } from '../../../orm/mutation'; + import type { PlatformSaveGraphPayloadSelect } from '../../../orm/input-types'; +import type { PlatformSaveGraphVariables } from '../../../orm/mutation'; +import { getClient } from '../../executor'; +import { buildSelectFromPaths,unflattenDotNotation } from '../../utils'; export default async ( argv: Partial>, prompter: Inquirerer, diff --git a/sdk/constructive-functions-cli/cli/commands/compute/platform-secret-definition.ts b/sdk/constructive-functions-cli/cli/commands/compute/platform-secret-definition.ts index 44032c9c7..f5fe4125c 100644 --- a/sdk/constructive-functions-cli/cli/commands/compute/platform-secret-definition.ts +++ b/sdk/constructive-functions-cli/cli/commands/compute/platform-secret-definition.ts @@ -3,18 +3,19 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; -import { getClient } from '../../executor'; -import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../../utils'; -import type { FieldSchema } from '../../utils'; +import { CLIOptions, extractFirst,Inquirerer } from 'inquirerer'; + import type { CreatePlatformSecretDefinitionInput, - PlatformSecretDefinitionPatch, - PlatformSecretDefinitionSelect, PlatformSecretDefinitionFilter, PlatformSecretDefinitionOrderBy, + PlatformSecretDefinitionPatch, + PlatformSecretDefinitionSelect, } from '../../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../../orm/select-types'; +import type { FindFirstArgs,FindManyArgs } from '../../../orm/select-types'; +import { getClient } from '../../executor'; +import type { FieldSchema } from '../../utils'; +import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../../utils'; const fieldSchema: FieldSchema = { annotations: 'json', createdAt: 'string', diff --git a/sdk/constructive-functions-cli/cli/commands/compute/platform-start-execution.ts b/sdk/constructive-functions-cli/cli/commands/compute/platform-start-execution.ts index 00ad580b3..d96bd71d7 100644 --- a/sdk/constructive-functions-cli/cli/commands/compute/platform-start-execution.ts +++ b/sdk/constructive-functions-cli/cli/commands/compute/platform-start-execution.ts @@ -4,10 +4,11 @@ * DO NOT EDIT - changes will be overwritten */ import { CLIOptions, Inquirerer } from 'inquirerer'; -import { getClient } from '../../executor'; -import { unflattenDotNotation, buildSelectFromPaths } from '../../utils'; -import type { PlatformStartExecutionVariables } from '../../../orm/mutation'; + import type { PlatformStartExecutionPayloadSelect } from '../../../orm/input-types'; +import type { PlatformStartExecutionVariables } from '../../../orm/mutation'; +import { getClient } from '../../executor'; +import { buildSelectFromPaths,unflattenDotNotation } from '../../utils'; export default async ( argv: Partial>, prompter: Inquirerer, diff --git a/sdk/constructive-functions-cli/cli/commands/compute/platform-usage-daily.ts b/sdk/constructive-functions-cli/cli/commands/compute/platform-usage-daily.ts index aece72e41..5466a9d5d 100644 --- a/sdk/constructive-functions-cli/cli/commands/compute/platform-usage-daily.ts +++ b/sdk/constructive-functions-cli/cli/commands/compute/platform-usage-daily.ts @@ -3,18 +3,19 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; -import { getClient } from '../../executor'; -import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../../utils'; -import type { FieldSchema } from '../../utils'; +import { CLIOptions, extractFirst,Inquirerer } from 'inquirerer'; + import type { CreatePlatformUsageDailyInput, - PlatformUsageDailyPatch, - PlatformUsageDailySelect, PlatformUsageDailyFilter, PlatformUsageDailyOrderBy, + PlatformUsageDailyPatch, + PlatformUsageDailySelect, } from '../../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../../orm/select-types'; +import type { FindFirstArgs,FindManyArgs } from '../../../orm/select-types'; +import { getClient } from '../../executor'; +import type { FieldSchema } from '../../utils'; +import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../../utils'; const fieldSchema: FieldSchema = { id: 'uuid', databaseId: 'uuid', diff --git a/sdk/constructive-functions-cli/cli/commands/compute/platform-validate-function-graph.ts b/sdk/constructive-functions-cli/cli/commands/compute/platform-validate-function-graph.ts index c282a137a..cf32ff34d 100644 --- a/sdk/constructive-functions-cli/cli/commands/compute/platform-validate-function-graph.ts +++ b/sdk/constructive-functions-cli/cli/commands/compute/platform-validate-function-graph.ts @@ -4,10 +4,11 @@ * DO NOT EDIT - changes will be overwritten */ import { CLIOptions, Inquirerer } from 'inquirerer'; -import { getClient } from '../../executor'; -import { unflattenDotNotation, buildSelectFromPaths } from '../../utils'; -import type { PlatformValidateFunctionGraphVariables } from '../../../orm/mutation'; + import type { PlatformValidateFunctionGraphPayloadSelect } from '../../../orm/input-types'; +import type { PlatformValidateFunctionGraphVariables } from '../../../orm/mutation'; +import { getClient } from '../../executor'; +import { buildSelectFromPaths,unflattenDotNotation } from '../../utils'; export default async ( argv: Partial>, prompter: Inquirerer, diff --git a/sdk/constructive-functions-cli/cli/commands/compute/provision-bucket.ts b/sdk/constructive-functions-cli/cli/commands/compute/provision-bucket.ts index c4f043191..981565da8 100644 --- a/sdk/constructive-functions-cli/cli/commands/compute/provision-bucket.ts +++ b/sdk/constructive-functions-cli/cli/commands/compute/provision-bucket.ts @@ -4,10 +4,11 @@ * DO NOT EDIT - changes will be overwritten */ import { CLIOptions, Inquirerer } from 'inquirerer'; -import { getClient } from '../../executor'; -import { unflattenDotNotation, buildSelectFromPaths } from '../../utils'; -import type { ProvisionBucketVariables } from '../../../orm/mutation'; + import type { ProvisionBucketPayloadSelect } from '../../../orm/input-types'; +import type { ProvisionBucketVariables } from '../../../orm/mutation'; +import { getClient } from '../../executor'; +import { buildSelectFromPaths,unflattenDotNotation } from '../../utils'; export default async ( argv: Partial>, prompter: Inquirerer, diff --git a/sdk/constructive-functions-cli/cli/commands/compute/set-data-at-path.ts b/sdk/constructive-functions-cli/cli/commands/compute/set-data-at-path.ts index 727611331..da8b8b31b 100644 --- a/sdk/constructive-functions-cli/cli/commands/compute/set-data-at-path.ts +++ b/sdk/constructive-functions-cli/cli/commands/compute/set-data-at-path.ts @@ -4,10 +4,11 @@ * DO NOT EDIT - changes will be overwritten */ import { CLIOptions, Inquirerer } from 'inquirerer'; -import { getClient } from '../../executor'; -import { unflattenDotNotation, buildSelectFromPaths } from '../../utils'; -import type { SetDataAtPathVariables } from '../../../orm/mutation'; + import type { SetDataAtPathPayloadSelect } from '../../../orm/input-types'; +import type { SetDataAtPathVariables } from '../../../orm/mutation'; +import { getClient } from '../../executor'; +import { buildSelectFromPaths,unflattenDotNotation } from '../../utils'; export default async ( argv: Partial>, prompter: Inquirerer, diff --git a/sdk/constructive-functions-cli/cli/commands/config.ts b/sdk/constructive-functions-cli/cli/commands/config.ts index ba805d479..26e4612f6 100644 --- a/sdk/constructive-functions-cli/cli/commands/config.ts +++ b/sdk/constructive-functions-cli/cli/commands/config.ts @@ -3,7 +3,8 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; +import { CLIOptions, extractFirst,Inquirerer } from 'inquirerer'; + import { getStore } from '../executor'; const usage = '\nconstructive-functions config \n\nCommands:\n get Get a config value\n set Set a config value\n list List all config values\n delete Delete a config value\n\n --help, -h Show this help message\n'; diff --git a/sdk/constructive-functions-cli/cli/commands/context.ts b/sdk/constructive-functions-cli/cli/commands/context.ts index fadee6242..226586d51 100644 --- a/sdk/constructive-functions-cli/cli/commands/context.ts +++ b/sdk/constructive-functions-cli/cli/commands/context.ts @@ -3,7 +3,8 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; +import { CLIOptions, extractFirst,Inquirerer } from 'inquirerer'; + import { getStore } from '../executor'; const usage = '\nconstructive-functions context \n\nCommands:\n create Create a new context\n list List all contexts\n use Set the active context\n current Show current context\n delete Delete a context\n\nCreate Options:\n --api-endpoint api endpoint (default: )\n --compute-endpoint compute endpoint (default: )\n --objects-endpoint objects endpoint (default: )\n\n --help, -h Show this help message\n'; diff --git a/sdk/constructive-functions-cli/cli/commands/objects/commit.ts b/sdk/constructive-functions-cli/cli/commands/objects/commit.ts index ef6ec90ed..905597330 100644 --- a/sdk/constructive-functions-cli/cli/commands/objects/commit.ts +++ b/sdk/constructive-functions-cli/cli/commands/objects/commit.ts @@ -3,18 +3,19 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; -import { getClient } from '../../executor'; -import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../../utils'; -import type { FieldSchema } from '../../utils'; +import { CLIOptions, extractFirst,Inquirerer } from 'inquirerer'; + import type { - CreateCommitInput, - CommitPatch, - CommitSelect, CommitFilter, CommitOrderBy, + CommitPatch, + CommitSelect, + CreateCommitInput, } from '../../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../../orm/select-types'; +import type { FindFirstArgs,FindManyArgs } from '../../../orm/select-types'; +import { getClient } from '../../executor'; +import type { FieldSchema } from '../../utils'; +import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../../utils'; const fieldSchema: FieldSchema = { authorId: 'uuid', committerId: 'uuid', diff --git a/sdk/constructive-functions-cli/cli/commands/objects/get-all-record.ts b/sdk/constructive-functions-cli/cli/commands/objects/get-all-record.ts index acad21f27..e9b4540c5 100644 --- a/sdk/constructive-functions-cli/cli/commands/objects/get-all-record.ts +++ b/sdk/constructive-functions-cli/cli/commands/objects/get-all-record.ts @@ -3,18 +3,18 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; -import { getClient } from '../../executor'; -import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../../utils'; -import type { FieldSchema } from '../../utils'; +import { CLIOptions, extractFirst,Inquirerer } from 'inquirerer'; + import type { CreateGetAllRecordInput, - GetAllRecordPatch, - GetAllRecordSelect, GetAllRecordFilter, + GetAllRecordSelect, GetAllRecordsOrderBy, } from '../../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../../orm/select-types'; +import type { FindFirstArgs,FindManyArgs } from '../../../orm/select-types'; +import { getClient } from '../../executor'; +import type { FieldSchema } from '../../utils'; +import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../../utils'; const fieldSchema: FieldSchema = { path: 'string', data: 'json', diff --git a/sdk/constructive-functions-cli/cli/commands/objects/init-empty-repo.ts b/sdk/constructive-functions-cli/cli/commands/objects/init-empty-repo.ts index dea9cd04f..23cb10a8e 100644 --- a/sdk/constructive-functions-cli/cli/commands/objects/init-empty-repo.ts +++ b/sdk/constructive-functions-cli/cli/commands/objects/init-empty-repo.ts @@ -4,10 +4,11 @@ * DO NOT EDIT - changes will be overwritten */ import { CLIOptions, Inquirerer } from 'inquirerer'; -import { getClient } from '../../executor'; -import { unflattenDotNotation, buildSelectFromPaths } from '../../utils'; -import type { InitEmptyRepoVariables } from '../../../orm/mutation'; + import type { InitEmptyRepoPayloadSelect } from '../../../orm/input-types'; +import type { InitEmptyRepoVariables } from '../../../orm/mutation'; +import { getClient } from '../../executor'; +import { buildSelectFromPaths,unflattenDotNotation } from '../../utils'; export default async ( argv: Partial>, prompter: Inquirerer, diff --git a/sdk/constructive-functions-cli/cli/commands/objects/insert-node-at-path.ts b/sdk/constructive-functions-cli/cli/commands/objects/insert-node-at-path.ts index 1c0c83c4d..9a7785371 100644 --- a/sdk/constructive-functions-cli/cli/commands/objects/insert-node-at-path.ts +++ b/sdk/constructive-functions-cli/cli/commands/objects/insert-node-at-path.ts @@ -4,10 +4,11 @@ * DO NOT EDIT - changes will be overwritten */ import { CLIOptions, Inquirerer } from 'inquirerer'; -import { getClient } from '../../executor'; -import { unflattenDotNotation, buildSelectFromPaths } from '../../utils'; -import type { InsertNodeAtPathVariables } from '../../../orm/mutation'; + import type { InsertNodeAtPathPayloadSelect } from '../../../orm/input-types'; +import type { InsertNodeAtPathVariables } from '../../../orm/mutation'; +import { getClient } from '../../executor'; +import { buildSelectFromPaths,unflattenDotNotation } from '../../utils'; export default async ( argv: Partial>, prompter: Inquirerer, diff --git a/sdk/constructive-functions-cli/cli/commands/objects/object.ts b/sdk/constructive-functions-cli/cli/commands/objects/object.ts index ac64c5516..be4d6e532 100644 --- a/sdk/constructive-functions-cli/cli/commands/objects/object.ts +++ b/sdk/constructive-functions-cli/cli/commands/objects/object.ts @@ -3,18 +3,19 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; -import { getClient } from '../../executor'; -import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../../utils'; -import type { FieldSchema } from '../../utils'; +import { CLIOptions, extractFirst,Inquirerer } from 'inquirerer'; + import type { CreateObjectInput, - ObjectPatch, - ObjectSelect, ObjectFilter, ObjectOrderBy, + ObjectPatch, + ObjectSelect, } from '../../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../../orm/select-types'; +import type { FindFirstArgs,FindManyArgs } from '../../../orm/select-types'; +import { getClient } from '../../executor'; +import type { FieldSchema } from '../../utils'; +import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../../utils'; const fieldSchema: FieldSchema = { createdAt: 'string', data: 'json', diff --git a/sdk/constructive-functions-cli/cli/commands/objects/provision-bucket.ts b/sdk/constructive-functions-cli/cli/commands/objects/provision-bucket.ts index fb382c5f3..e978e26ea 100644 --- a/sdk/constructive-functions-cli/cli/commands/objects/provision-bucket.ts +++ b/sdk/constructive-functions-cli/cli/commands/objects/provision-bucket.ts @@ -4,10 +4,11 @@ * DO NOT EDIT - changes will be overwritten */ import { CLIOptions, Inquirerer } from 'inquirerer'; -import { getClient } from '../../executor'; -import { unflattenDotNotation, buildSelectFromPaths } from '../../utils'; -import type { ProvisionBucketVariables } from '../../../orm/mutation'; + import type { ProvisionBucketPayloadSelect } from '../../../orm/input-types'; +import type { ProvisionBucketVariables } from '../../../orm/mutation'; +import { getClient } from '../../executor'; +import { buildSelectFromPaths,unflattenDotNotation } from '../../utils'; export default async ( argv: Partial>, prompter: Inquirerer, diff --git a/sdk/constructive-functions-cli/cli/commands/objects/ref.ts b/sdk/constructive-functions-cli/cli/commands/objects/ref.ts index 8f8cdb292..f54099909 100644 --- a/sdk/constructive-functions-cli/cli/commands/objects/ref.ts +++ b/sdk/constructive-functions-cli/cli/commands/objects/ref.ts @@ -3,18 +3,19 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; -import { getClient } from '../../executor'; -import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../../utils'; -import type { FieldSchema } from '../../utils'; +import { CLIOptions, extractFirst,Inquirerer } from 'inquirerer'; + import type { CreateRefInput, - RefPatch, - RefSelect, RefFilter, RefOrderBy, + RefPatch, + RefSelect, } from '../../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../../orm/select-types'; +import type { FindFirstArgs,FindManyArgs } from '../../../orm/select-types'; +import { getClient } from '../../executor'; +import type { FieldSchema } from '../../utils'; +import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../../utils'; const fieldSchema: FieldSchema = { commitId: 'uuid', databaseId: 'uuid', diff --git a/sdk/constructive-functions-cli/cli/commands/objects/set-data-at-path.ts b/sdk/constructive-functions-cli/cli/commands/objects/set-data-at-path.ts index 62ceea09f..73f8359cc 100644 --- a/sdk/constructive-functions-cli/cli/commands/objects/set-data-at-path.ts +++ b/sdk/constructive-functions-cli/cli/commands/objects/set-data-at-path.ts @@ -4,10 +4,11 @@ * DO NOT EDIT - changes will be overwritten */ import { CLIOptions, Inquirerer } from 'inquirerer'; -import { getClient } from '../../executor'; -import { unflattenDotNotation, buildSelectFromPaths } from '../../utils'; -import type { SetDataAtPathVariables } from '../../../orm/mutation'; + import type { SetDataAtPathPayloadSelect } from '../../../orm/input-types'; +import type { SetDataAtPathVariables } from '../../../orm/mutation'; +import { getClient } from '../../executor'; +import { buildSelectFromPaths,unflattenDotNotation } from '../../utils'; export default async ( argv: Partial>, prompter: Inquirerer, diff --git a/sdk/constructive-functions-cli/cli/commands/objects/store.ts b/sdk/constructive-functions-cli/cli/commands/objects/store.ts index 763e69793..ea3eb01cb 100644 --- a/sdk/constructive-functions-cli/cli/commands/objects/store.ts +++ b/sdk/constructive-functions-cli/cli/commands/objects/store.ts @@ -3,18 +3,19 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ -import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; -import { getClient } from '../../executor'; -import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../../utils'; -import type { FieldSchema } from '../../utils'; +import { CLIOptions, extractFirst,Inquirerer } from 'inquirerer'; + import type { CreateStoreInput, - StorePatch, - StoreSelect, StoreFilter, StoreOrderBy, + StorePatch, + StoreSelect, } from '../../../orm/input-types'; -import type { FindManyArgs, FindFirstArgs } from '../../../orm/select-types'; +import type { FindFirstArgs,FindManyArgs } from '../../../orm/select-types'; +import { getClient } from '../../executor'; +import type { FieldSchema } from '../../utils'; +import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../../utils'; const fieldSchema: FieldSchema = { createdAt: 'string', databaseId: 'uuid', diff --git a/sdk/constructive-functions-cli/cli/executor.ts b/sdk/constructive-functions-cli/cli/executor.ts index 6b2b98d00..720bcf89c 100644 --- a/sdk/constructive-functions-cli/cli/executor.ts +++ b/sdk/constructive-functions-cli/cli/executor.ts @@ -4,6 +4,7 @@ * DO NOT EDIT - changes will be overwritten */ import { createConfigStore } from 'appstash'; + import { createClient as createApiClient } from '../src/api/orm'; import { createClient as createComputeClient } from '../src/compute/orm'; import { createClient as createObjectsClient } from '../src/objects/orm'; diff --git a/sdk/constructive-functions-cli/cli/helpers.ts b/sdk/constructive-functions-cli/cli/helpers.ts index ea775f8d0..16820d615 100644 --- a/sdk/constructive-functions-cli/cli/helpers.ts +++ b/sdk/constructive-functions-cli/cli/helpers.ts @@ -3,8 +3,9 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ -import { createConfigStore } from 'appstash'; import type { ClientConfig } from 'appstash'; +import { createConfigStore } from 'appstash'; + import { createClient as createApiOrmClient } from '../src/api/orm'; import { createClient as createComputeOrmClient } from '../src/compute/orm'; import { createClient as createObjectsOrmClient } from '../src/objects/orm'; diff --git a/sdk/constructive-functions-cli/cli/index.ts b/sdk/constructive-functions-cli/cli/index.ts index 9ca839a9e..82e1bf89c 100644 --- a/sdk/constructive-functions-cli/cli/index.ts +++ b/sdk/constructive-functions-cli/cli/index.ts @@ -4,6 +4,7 @@ * DO NOT EDIT - changes will be overwritten */ import { CLI, CLIOptions, getPackageJson } from 'inquirerer'; + import { commands } from './commands'; if (process.argv.includes('--version') || process.argv.includes('-v')) { diff --git a/sdk/constructive-functions-hooks/src/api/hooks/index.ts b/sdk/constructive-functions-hooks/src/api/hooks/index.ts index 3f6de2775..3ff5afa2c 100644 --- a/sdk/constructive-functions-hooks/src/api/hooks/index.ts +++ b/sdk/constructive-functions-hooks/src/api/hooks/index.ts @@ -32,8 +32,8 @@ * ``` */ export * from './client'; -export * from './query-keys'; -export * from './mutation-keys'; export * from './invalidation'; -export * from './queries'; +export * from './mutation-keys'; export * from './mutations'; +export * from './queries'; +export * from './query-keys'; diff --git a/sdk/constructive-functions-hooks/src/api/hooks/invalidation.ts b/sdk/constructive-functions-hooks/src/api/hooks/invalidation.ts index ddbd598c9..c97672e85 100644 --- a/sdk/constructive-functions-hooks/src/api/hooks/invalidation.ts +++ b/sdk/constructive-functions-hooks/src/api/hooks/invalidation.ts @@ -14,15 +14,16 @@ // ============================================================================ import type { QueryClient } from '@tanstack/react-query'; + import { - roleTypeKeys, + platformBucketKeys, platformConfigDefinitionKeys, - platformNamespaceKeys, platformConfigKeys, - platformBucketKeys, platformFileKeys, - userKeys, platformNamespaceEventKeys, + platformNamespaceKeys, + roleTypeKeys, + userKeys, } from './query-keys'; /** // ============================================================================ diff --git a/sdk/constructive-functions-hooks/src/api/hooks/mutations/index.ts b/sdk/constructive-functions-hooks/src/api/hooks/mutations/index.ts index 734e4af46..fb1d593f5 100644 --- a/sdk/constructive-functions-hooks/src/api/hooks/mutations/index.ts +++ b/sdk/constructive-functions-hooks/src/api/hooks/mutations/index.ts @@ -3,36 +3,36 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ -export * from './useCreateRoleTypeMutation'; -export * from './useUpdateRoleTypeMutation'; -export * from './useDeleteRoleTypeMutation'; +export * from './useCreatePlatformBucketMutation'; export * from './useCreatePlatformConfigDefinitionMutation'; -export * from './useUpdatePlatformConfigDefinitionMutation'; -export * from './useDeletePlatformConfigDefinitionMutation'; -export * from './useCreatePlatformNamespaceMutation'; -export * from './useUpdatePlatformNamespaceMutation'; -export * from './useDeletePlatformNamespaceMutation'; export * from './useCreatePlatformConfigMutation'; -export * from './useUpdatePlatformConfigMutation'; -export * from './useDeletePlatformConfigMutation'; -export * from './useCreatePlatformBucketMutation'; -export * from './useUpdatePlatformBucketMutation'; -export * from './useDeletePlatformBucketMutation'; export * from './useCreatePlatformFileMutation'; -export * from './useUpdatePlatformFileMutation'; -export * from './useDeletePlatformFileMutation'; -export * from './useCreateUserMutation'; -export * from './useUpdateUserMutation'; -export * from './useDeleteUserMutation'; export * from './useCreatePlatformNamespaceEventMutation'; -export * from './useUpdatePlatformNamespaceEventMutation'; +export * from './useCreatePlatformNamespaceMutation'; +export * from './useCreateRoleTypeMutation'; +export * from './useCreateUserMutation'; +export * from './useDeletePlatformBucketMutation'; +export * from './useDeletePlatformConfigDefinitionMutation'; +export * from './useDeletePlatformConfigMutation'; +export * from './useDeletePlatformFileMutation'; export * from './useDeletePlatformNamespaceEventMutation'; -export * from './usePlatformSecretsDelMutation'; -export * from './usePlatformSecretsSetMutation'; +export * from './useDeletePlatformNamespaceMutation'; +export * from './useDeleteRoleTypeMutation'; +export * from './useDeleteUserMutation'; export * from './useOrgSecretsDelMutation'; -export * from './useOrgSecretsSetMutation'; export * from './useOrgSecretsRemoveArrayMutation'; +export * from './useOrgSecretsSetMutation'; export * from './usePlatformFilesRenameMutation'; +export * from './usePlatformSecretsDelMutation'; +export * from './usePlatformSecretsSetMutation'; +export * from './useProvisionBucketMutation'; +export * from './useUpdatePlatformBucketMutation'; +export * from './useUpdatePlatformConfigDefinitionMutation'; +export * from './useUpdatePlatformConfigMutation'; +export * from './useUpdatePlatformFileMutation'; +export * from './useUpdatePlatformNamespaceEventMutation'; +export * from './useUpdatePlatformNamespaceMutation'; +export * from './useUpdateRoleTypeMutation'; +export * from './useUpdateUserMutation'; export * from './useUploadPlatformFileMutation'; export * from './useUploadPlatformFilesMutation'; -export * from './useProvisionBucketMutation'; diff --git a/sdk/constructive-functions-hooks/src/api/hooks/mutations/useCreatePlatformBucketMutation.ts b/sdk/constructive-functions-hooks/src/api/hooks/mutations/useCreatePlatformBucketMutation.ts index 532424f1c..6e7c96597 100644 --- a/sdk/constructive-functions-hooks/src/api/hooks/mutations/useCreatePlatformBucketMutation.ts +++ b/sdk/constructive-functions-hooks/src/api/hooks/mutations/useCreatePlatformBucketMutation.ts @@ -4,23 +4,24 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformBucketKeys } from '../query-keys'; -import { platformBucketMutationKeys } from '../mutation-keys'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; + import type { + CreatePlatformBucketInput, PlatformBucketSelect, PlatformBucketWithRelations, - CreatePlatformBucketInput, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformBucketMutationKeys } from '../mutation-keys'; +import { platformBucketKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { + CreatePlatformBucketInput, PlatformBucketSelect, PlatformBucketWithRelations, - CreatePlatformBucketInput, } from '../../orm/input-types'; /** * Logical storage containers that group files with shared access policies and CDN behavior diff --git a/sdk/constructive-functions-hooks/src/api/hooks/mutations/useCreatePlatformConfigDefinitionMutation.ts b/sdk/constructive-functions-hooks/src/api/hooks/mutations/useCreatePlatformConfigDefinitionMutation.ts index d4d968334..418624c59 100644 --- a/sdk/constructive-functions-hooks/src/api/hooks/mutations/useCreatePlatformConfigDefinitionMutation.ts +++ b/sdk/constructive-functions-hooks/src/api/hooks/mutations/useCreatePlatformConfigDefinitionMutation.ts @@ -4,23 +4,24 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformConfigDefinitionKeys } from '../query-keys'; -import { platformConfigDefinitionMutationKeys } from '../mutation-keys'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; + import type { + CreatePlatformConfigDefinitionInput, PlatformConfigDefinitionSelect, PlatformConfigDefinitionWithRelations, - CreatePlatformConfigDefinitionInput, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformConfigDefinitionMutationKeys } from '../mutation-keys'; +import { platformConfigDefinitionKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { + CreatePlatformConfigDefinitionInput, PlatformConfigDefinitionSelect, PlatformConfigDefinitionWithRelations, - CreatePlatformConfigDefinitionInput, } from '../../orm/input-types'; /** * Registry of valid config keys — declares which config entries the platform recognizes diff --git a/sdk/constructive-functions-hooks/src/api/hooks/mutations/useCreatePlatformConfigMutation.ts b/sdk/constructive-functions-hooks/src/api/hooks/mutations/useCreatePlatformConfigMutation.ts index 2a3c3f743..8f98ed92c 100644 --- a/sdk/constructive-functions-hooks/src/api/hooks/mutations/useCreatePlatformConfigMutation.ts +++ b/sdk/constructive-functions-hooks/src/api/hooks/mutations/useCreatePlatformConfigMutation.ts @@ -4,23 +4,24 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformConfigKeys } from '../query-keys'; -import { platformConfigMutationKeys } from '../mutation-keys'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; + import type { + CreatePlatformConfigInput, PlatformConfigSelect, PlatformConfigWithRelations, - CreatePlatformConfigInput, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformConfigMutationKeys } from '../mutation-keys'; +import { platformConfigKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { + CreatePlatformConfigInput, PlatformConfigSelect, PlatformConfigWithRelations, - CreatePlatformConfigInput, } from '../../orm/input-types'; /** * App-level plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed diff --git a/sdk/constructive-functions-hooks/src/api/hooks/mutations/useCreatePlatformFileMutation.ts b/sdk/constructive-functions-hooks/src/api/hooks/mutations/useCreatePlatformFileMutation.ts index cb39e8a53..ae0baa583 100644 --- a/sdk/constructive-functions-hooks/src/api/hooks/mutations/useCreatePlatformFileMutation.ts +++ b/sdk/constructive-functions-hooks/src/api/hooks/mutations/useCreatePlatformFileMutation.ts @@ -4,23 +4,24 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformFileKeys } from '../query-keys'; -import { platformFileMutationKeys } from '../mutation-keys'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; + import type { + CreatePlatformFileInput, PlatformFileSelect, PlatformFileWithRelations, - CreatePlatformFileInput, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformFileMutationKeys } from '../mutation-keys'; +import { platformFileKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { + CreatePlatformFileInput, PlatformFileSelect, PlatformFileWithRelations, - CreatePlatformFileInput, } from '../../orm/input-types'; /** * Individual file records within buckets, with immutable identity fields and mutable metadata diff --git a/sdk/constructive-functions-hooks/src/api/hooks/mutations/useCreatePlatformNamespaceEventMutation.ts b/sdk/constructive-functions-hooks/src/api/hooks/mutations/useCreatePlatformNamespaceEventMutation.ts index 28d55d5bf..57ec3f9e8 100644 --- a/sdk/constructive-functions-hooks/src/api/hooks/mutations/useCreatePlatformNamespaceEventMutation.ts +++ b/sdk/constructive-functions-hooks/src/api/hooks/mutations/useCreatePlatformNamespaceEventMutation.ts @@ -4,23 +4,24 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformNamespaceEventKeys } from '../query-keys'; -import { platformNamespaceEventMutationKeys } from '../mutation-keys'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; + import type { + CreatePlatformNamespaceEventInput, PlatformNamespaceEventSelect, PlatformNamespaceEventWithRelations, - CreatePlatformNamespaceEventInput, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformNamespaceEventMutationKeys } from '../mutation-keys'; +import { platformNamespaceEventKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { + CreatePlatformNamespaceEventInput, PlatformNamespaceEventSelect, PlatformNamespaceEventWithRelations, - CreatePlatformNamespaceEventInput, } from '../../orm/input-types'; /** * Namespace lifecycle events — audit log of creation, activation, deactivation, label changes diff --git a/sdk/constructive-functions-hooks/src/api/hooks/mutations/useCreatePlatformNamespaceMutation.ts b/sdk/constructive-functions-hooks/src/api/hooks/mutations/useCreatePlatformNamespaceMutation.ts index ffd9d3433..875005adb 100644 --- a/sdk/constructive-functions-hooks/src/api/hooks/mutations/useCreatePlatformNamespaceMutation.ts +++ b/sdk/constructive-functions-hooks/src/api/hooks/mutations/useCreatePlatformNamespaceMutation.ts @@ -4,23 +4,24 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformNamespaceKeys } from '../query-keys'; -import { platformNamespaceMutationKeys } from '../mutation-keys'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; + import type { + CreatePlatformNamespaceInput, PlatformNamespaceSelect, PlatformNamespaceWithRelations, - CreatePlatformNamespaceInput, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformNamespaceMutationKeys } from '../mutation-keys'; +import { platformNamespaceKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { + CreatePlatformNamespaceInput, PlatformNamespaceSelect, PlatformNamespaceWithRelations, - CreatePlatformNamespaceInput, } from '../../orm/input-types'; /** * Logical namespace containers for grouping secrets, config, functions, and other resources diff --git a/sdk/constructive-functions-hooks/src/api/hooks/mutations/useCreateRoleTypeMutation.ts b/sdk/constructive-functions-hooks/src/api/hooks/mutations/useCreateRoleTypeMutation.ts index 212be3f45..1c2c2b96c 100644 --- a/sdk/constructive-functions-hooks/src/api/hooks/mutations/useCreateRoleTypeMutation.ts +++ b/sdk/constructive-functions-hooks/src/api/hooks/mutations/useCreateRoleTypeMutation.ts @@ -4,23 +4,24 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { roleTypeKeys } from '../query-keys'; -import { roleTypeMutationKeys } from '../mutation-keys'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; + import type { + CreateRoleTypeInput, RoleTypeSelect, RoleTypeWithRelations, - CreateRoleTypeInput, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; +import { getClient } from '../client'; +import { roleTypeMutationKeys } from '../mutation-keys'; +import { roleTypeKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { + CreateRoleTypeInput, RoleTypeSelect, RoleTypeWithRelations, - CreateRoleTypeInput, } from '../../orm/input-types'; /** * Mutation hook for creating a RoleType diff --git a/sdk/constructive-functions-hooks/src/api/hooks/mutations/useCreateUserMutation.ts b/sdk/constructive-functions-hooks/src/api/hooks/mutations/useCreateUserMutation.ts index 0d5bfff47..a857d5a2a 100644 --- a/sdk/constructive-functions-hooks/src/api/hooks/mutations/useCreateUserMutation.ts +++ b/sdk/constructive-functions-hooks/src/api/hooks/mutations/useCreateUserMutation.ts @@ -4,16 +4,17 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; + +import type { CreateUserInput,UserSelect, UserWithRelations } from '../../orm/input-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { userKeys } from '../query-keys'; import { userMutationKeys } from '../mutation-keys'; -import type { UserSelect, UserWithRelations, CreateUserInput } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { UserSelect, UserWithRelations, CreateUserInput } from '../../orm/input-types'; +import { userKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; +export type { CreateUserInput,UserSelect, UserWithRelations } from '../../orm/input-types'; /** * Mutation hook for creating a User * diff --git a/sdk/constructive-functions-hooks/src/api/hooks/mutations/useDeletePlatformBucketMutation.ts b/sdk/constructive-functions-hooks/src/api/hooks/mutations/useDeletePlatformBucketMutation.ts index 56e9ecd21..7a6719b44 100644 --- a/sdk/constructive-functions-hooks/src/api/hooks/mutations/useDeletePlatformBucketMutation.ts +++ b/sdk/constructive-functions-hooks/src/api/hooks/mutations/useDeletePlatformBucketMutation.ts @@ -4,15 +4,16 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; + +import type { PlatformBucketSelect, PlatformBucketWithRelations } from '../../orm/input-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformBucketKeys } from '../query-keys'; import { platformBucketMutationKeys } from '../mutation-keys'; -import type { PlatformBucketSelect, PlatformBucketWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import { platformBucketKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { PlatformBucketSelect, PlatformBucketWithRelations } from '../../orm/input-types'; /** * Logical storage containers that group files with shared access policies and CDN behavior diff --git a/sdk/constructive-functions-hooks/src/api/hooks/mutations/useDeletePlatformConfigDefinitionMutation.ts b/sdk/constructive-functions-hooks/src/api/hooks/mutations/useDeletePlatformConfigDefinitionMutation.ts index 4cd5b7b9a..357d88f3d 100644 --- a/sdk/constructive-functions-hooks/src/api/hooks/mutations/useDeletePlatformConfigDefinitionMutation.ts +++ b/sdk/constructive-functions-hooks/src/api/hooks/mutations/useDeletePlatformConfigDefinitionMutation.ts @@ -4,18 +4,19 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformConfigDefinitionKeys } from '../query-keys'; -import { platformConfigDefinitionMutationKeys } from '../mutation-keys'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; + import type { PlatformConfigDefinitionSelect, PlatformConfigDefinitionWithRelations, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformConfigDefinitionMutationKeys } from '../mutation-keys'; +import { platformConfigDefinitionKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { PlatformConfigDefinitionSelect, PlatformConfigDefinitionWithRelations, diff --git a/sdk/constructive-functions-hooks/src/api/hooks/mutations/useDeletePlatformConfigMutation.ts b/sdk/constructive-functions-hooks/src/api/hooks/mutations/useDeletePlatformConfigMutation.ts index ec92e5af4..595a58b54 100644 --- a/sdk/constructive-functions-hooks/src/api/hooks/mutations/useDeletePlatformConfigMutation.ts +++ b/sdk/constructive-functions-hooks/src/api/hooks/mutations/useDeletePlatformConfigMutation.ts @@ -4,15 +4,16 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; + +import type { PlatformConfigSelect, PlatformConfigWithRelations } from '../../orm/input-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformConfigKeys } from '../query-keys'; import { platformConfigMutationKeys } from '../mutation-keys'; -import type { PlatformConfigSelect, PlatformConfigWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import { platformConfigKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { PlatformConfigSelect, PlatformConfigWithRelations } from '../../orm/input-types'; /** * App-level plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed diff --git a/sdk/constructive-functions-hooks/src/api/hooks/mutations/useDeletePlatformFileMutation.ts b/sdk/constructive-functions-hooks/src/api/hooks/mutations/useDeletePlatformFileMutation.ts index 3a8ce60ca..d4d1a2cad 100644 --- a/sdk/constructive-functions-hooks/src/api/hooks/mutations/useDeletePlatformFileMutation.ts +++ b/sdk/constructive-functions-hooks/src/api/hooks/mutations/useDeletePlatformFileMutation.ts @@ -4,15 +4,16 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; + +import type { PlatformFileSelect, PlatformFileWithRelations } from '../../orm/input-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformFileKeys } from '../query-keys'; import { platformFileMutationKeys } from '../mutation-keys'; -import type { PlatformFileSelect, PlatformFileWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import { platformFileKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { PlatformFileSelect, PlatformFileWithRelations } from '../../orm/input-types'; /** * Individual file records within buckets, with immutable identity fields and mutable metadata diff --git a/sdk/constructive-functions-hooks/src/api/hooks/mutations/useDeletePlatformNamespaceEventMutation.ts b/sdk/constructive-functions-hooks/src/api/hooks/mutations/useDeletePlatformNamespaceEventMutation.ts index c248e1eaa..de2c1c0e5 100644 --- a/sdk/constructive-functions-hooks/src/api/hooks/mutations/useDeletePlatformNamespaceEventMutation.ts +++ b/sdk/constructive-functions-hooks/src/api/hooks/mutations/useDeletePlatformNamespaceEventMutation.ts @@ -4,18 +4,19 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformNamespaceEventKeys } from '../query-keys'; -import { platformNamespaceEventMutationKeys } from '../mutation-keys'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; + import type { PlatformNamespaceEventSelect, PlatformNamespaceEventWithRelations, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformNamespaceEventMutationKeys } from '../mutation-keys'; +import { platformNamespaceEventKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { PlatformNamespaceEventSelect, PlatformNamespaceEventWithRelations, diff --git a/sdk/constructive-functions-hooks/src/api/hooks/mutations/useDeletePlatformNamespaceMutation.ts b/sdk/constructive-functions-hooks/src/api/hooks/mutations/useDeletePlatformNamespaceMutation.ts index 86ca139c3..8f945b145 100644 --- a/sdk/constructive-functions-hooks/src/api/hooks/mutations/useDeletePlatformNamespaceMutation.ts +++ b/sdk/constructive-functions-hooks/src/api/hooks/mutations/useDeletePlatformNamespaceMutation.ts @@ -4,18 +4,19 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformNamespaceKeys } from '../query-keys'; -import { platformNamespaceMutationKeys } from '../mutation-keys'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; + import type { PlatformNamespaceSelect, PlatformNamespaceWithRelations, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformNamespaceMutationKeys } from '../mutation-keys'; +import { platformNamespaceKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { PlatformNamespaceSelect, PlatformNamespaceWithRelations, diff --git a/sdk/constructive-functions-hooks/src/api/hooks/mutations/useDeleteRoleTypeMutation.ts b/sdk/constructive-functions-hooks/src/api/hooks/mutations/useDeleteRoleTypeMutation.ts index 34495fa52..bd495b07d 100644 --- a/sdk/constructive-functions-hooks/src/api/hooks/mutations/useDeleteRoleTypeMutation.ts +++ b/sdk/constructive-functions-hooks/src/api/hooks/mutations/useDeleteRoleTypeMutation.ts @@ -4,15 +4,16 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; + +import type { RoleTypeSelect, RoleTypeWithRelations } from '../../orm/input-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { roleTypeKeys } from '../query-keys'; import { roleTypeMutationKeys } from '../mutation-keys'; -import type { RoleTypeSelect, RoleTypeWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import { roleTypeKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { RoleTypeSelect, RoleTypeWithRelations } from '../../orm/input-types'; /** * Mutation hook for deleting a RoleType with typed selection diff --git a/sdk/constructive-functions-hooks/src/api/hooks/mutations/useDeleteUserMutation.ts b/sdk/constructive-functions-hooks/src/api/hooks/mutations/useDeleteUserMutation.ts index 77880ad09..0ea889f64 100644 --- a/sdk/constructive-functions-hooks/src/api/hooks/mutations/useDeleteUserMutation.ts +++ b/sdk/constructive-functions-hooks/src/api/hooks/mutations/useDeleteUserMutation.ts @@ -4,15 +4,16 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; + +import type { UserSelect, UserWithRelations } from '../../orm/input-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { userKeys } from '../query-keys'; import { userMutationKeys } from '../mutation-keys'; -import type { UserSelect, UserWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import { userKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { UserSelect, UserWithRelations } from '../../orm/input-types'; /** * Mutation hook for deleting a User with typed selection diff --git a/sdk/constructive-functions-hooks/src/api/hooks/mutations/useOrgSecretsDelMutation.ts b/sdk/constructive-functions-hooks/src/api/hooks/mutations/useOrgSecretsDelMutation.ts index 5fb077850..bc94d9f91 100644 --- a/sdk/constructive-functions-hooks/src/api/hooks/mutations/useOrgSecretsDelMutation.ts +++ b/sdk/constructive-functions-hooks/src/api/hooks/mutations/useOrgSecretsDelMutation.ts @@ -4,17 +4,17 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { useMutation } from '@tanstack/react-query'; + +import type { OrgSecretsDelPayload,OrgSecretsDelPayloadSelect } from '../../orm/input-types'; +import type { OrgSecretsDelVariables } from '../../orm/mutation'; +import type { HookStrictSelect, InferSelectResult, StrictSelect } from '../../orm/select-types'; import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; import { customMutationKeys } from '../mutation-keys'; -import type { OrgSecretsDelVariables } from '../../orm/mutation'; -import type { OrgSecretsDelPayloadSelect, OrgSecretsDelPayload } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; -export type { OrgSecretsDelVariables } from '../../orm/mutation'; +import { buildSelectionArgs } from '../selection'; export type { OrgSecretsDelPayloadSelect } from '../../orm/input-types'; +export type { OrgSecretsDelVariables } from '../../orm/mutation'; export function useOrgSecretsDelMutation( params: { selection: { diff --git a/sdk/constructive-functions-hooks/src/api/hooks/mutations/useOrgSecretsRemoveArrayMutation.ts b/sdk/constructive-functions-hooks/src/api/hooks/mutations/useOrgSecretsRemoveArrayMutation.ts index 1e0d83620..ce63a2b6b 100644 --- a/sdk/constructive-functions-hooks/src/api/hooks/mutations/useOrgSecretsRemoveArrayMutation.ts +++ b/sdk/constructive-functions-hooks/src/api/hooks/mutations/useOrgSecretsRemoveArrayMutation.ts @@ -4,20 +4,20 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { customMutationKeys } from '../mutation-keys'; -import type { OrgSecretsRemoveArrayVariables } from '../../orm/mutation'; +import { useMutation } from '@tanstack/react-query'; + import type { - OrgSecretsRemoveArrayPayloadSelect, OrgSecretsRemoveArrayPayload, + OrgSecretsRemoveArrayPayloadSelect, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; -export type { OrgSecretsRemoveArrayVariables } from '../../orm/mutation'; +import type { OrgSecretsRemoveArrayVariables } from '../../orm/mutation'; +import type { HookStrictSelect, InferSelectResult, StrictSelect } from '../../orm/select-types'; +import { getClient } from '../client'; +import { customMutationKeys } from '../mutation-keys'; +import { buildSelectionArgs } from '../selection'; export type { OrgSecretsRemoveArrayPayloadSelect } from '../../orm/input-types'; +export type { OrgSecretsRemoveArrayVariables } from '../../orm/mutation'; export function useOrgSecretsRemoveArrayMutation( params: { selection: { diff --git a/sdk/constructive-functions-hooks/src/api/hooks/mutations/useOrgSecretsSetMutation.ts b/sdk/constructive-functions-hooks/src/api/hooks/mutations/useOrgSecretsSetMutation.ts index 730c4171a..b1a3dc0a2 100644 --- a/sdk/constructive-functions-hooks/src/api/hooks/mutations/useOrgSecretsSetMutation.ts +++ b/sdk/constructive-functions-hooks/src/api/hooks/mutations/useOrgSecretsSetMutation.ts @@ -4,17 +4,17 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { useMutation } from '@tanstack/react-query'; + +import type { OrgSecretsSetPayload,OrgSecretsSetPayloadSelect } from '../../orm/input-types'; +import type { OrgSecretsSetVariables } from '../../orm/mutation'; +import type { HookStrictSelect, InferSelectResult, StrictSelect } from '../../orm/select-types'; import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; import { customMutationKeys } from '../mutation-keys'; -import type { OrgSecretsSetVariables } from '../../orm/mutation'; -import type { OrgSecretsSetPayloadSelect, OrgSecretsSetPayload } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; -export type { OrgSecretsSetVariables } from '../../orm/mutation'; +import { buildSelectionArgs } from '../selection'; export type { OrgSecretsSetPayloadSelect } from '../../orm/input-types'; +export type { OrgSecretsSetVariables } from '../../orm/mutation'; export function useOrgSecretsSetMutation( params: { selection: { diff --git a/sdk/constructive-functions-hooks/src/api/hooks/mutations/usePlatformFilesRenameMutation.ts b/sdk/constructive-functions-hooks/src/api/hooks/mutations/usePlatformFilesRenameMutation.ts index 8e0bfbd79..1fa77e9c6 100644 --- a/sdk/constructive-functions-hooks/src/api/hooks/mutations/usePlatformFilesRenameMutation.ts +++ b/sdk/constructive-functions-hooks/src/api/hooks/mutations/usePlatformFilesRenameMutation.ts @@ -4,20 +4,20 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { customMutationKeys } from '../mutation-keys'; -import type { PlatformFilesRenameVariables } from '../../orm/mutation'; +import { useMutation } from '@tanstack/react-query'; + import type { - PlatformFilesRenamePayloadSelect, PlatformFilesRenamePayload, + PlatformFilesRenamePayloadSelect, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; -export type { PlatformFilesRenameVariables } from '../../orm/mutation'; +import type { PlatformFilesRenameVariables } from '../../orm/mutation'; +import type { HookStrictSelect, InferSelectResult, StrictSelect } from '../../orm/select-types'; +import { getClient } from '../client'; +import { customMutationKeys } from '../mutation-keys'; +import { buildSelectionArgs } from '../selection'; export type { PlatformFilesRenamePayloadSelect } from '../../orm/input-types'; +export type { PlatformFilesRenameVariables } from '../../orm/mutation'; export function usePlatformFilesRenameMutation( params: { selection: { diff --git a/sdk/constructive-functions-hooks/src/api/hooks/mutations/usePlatformSecretsDelMutation.ts b/sdk/constructive-functions-hooks/src/api/hooks/mutations/usePlatformSecretsDelMutation.ts index d55783e12..7c422ea68 100644 --- a/sdk/constructive-functions-hooks/src/api/hooks/mutations/usePlatformSecretsDelMutation.ts +++ b/sdk/constructive-functions-hooks/src/api/hooks/mutations/usePlatformSecretsDelMutation.ts @@ -4,20 +4,20 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { customMutationKeys } from '../mutation-keys'; -import type { PlatformSecretsDelVariables } from '../../orm/mutation'; +import { useMutation } from '@tanstack/react-query'; + import type { - PlatformSecretsDelPayloadSelect, PlatformSecretsDelPayload, + PlatformSecretsDelPayloadSelect, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; -export type { PlatformSecretsDelVariables } from '../../orm/mutation'; +import type { PlatformSecretsDelVariables } from '../../orm/mutation'; +import type { HookStrictSelect, InferSelectResult, StrictSelect } from '../../orm/select-types'; +import { getClient } from '../client'; +import { customMutationKeys } from '../mutation-keys'; +import { buildSelectionArgs } from '../selection'; export type { PlatformSecretsDelPayloadSelect } from '../../orm/input-types'; +export type { PlatformSecretsDelVariables } from '../../orm/mutation'; export function usePlatformSecretsDelMutation( params: { selection: { diff --git a/sdk/constructive-functions-hooks/src/api/hooks/mutations/usePlatformSecretsSetMutation.ts b/sdk/constructive-functions-hooks/src/api/hooks/mutations/usePlatformSecretsSetMutation.ts index a1bb3d2ba..0446e12bf 100644 --- a/sdk/constructive-functions-hooks/src/api/hooks/mutations/usePlatformSecretsSetMutation.ts +++ b/sdk/constructive-functions-hooks/src/api/hooks/mutations/usePlatformSecretsSetMutation.ts @@ -4,20 +4,20 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { customMutationKeys } from '../mutation-keys'; -import type { PlatformSecretsSetVariables } from '../../orm/mutation'; +import { useMutation } from '@tanstack/react-query'; + import type { - PlatformSecretsSetPayloadSelect, PlatformSecretsSetPayload, + PlatformSecretsSetPayloadSelect, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; -export type { PlatformSecretsSetVariables } from '../../orm/mutation'; +import type { PlatformSecretsSetVariables } from '../../orm/mutation'; +import type { HookStrictSelect, InferSelectResult, StrictSelect } from '../../orm/select-types'; +import { getClient } from '../client'; +import { customMutationKeys } from '../mutation-keys'; +import { buildSelectionArgs } from '../selection'; export type { PlatformSecretsSetPayloadSelect } from '../../orm/input-types'; +export type { PlatformSecretsSetVariables } from '../../orm/mutation'; export function usePlatformSecretsSetMutation( params: { selection: { diff --git a/sdk/constructive-functions-hooks/src/api/hooks/mutations/useProvisionBucketMutation.ts b/sdk/constructive-functions-hooks/src/api/hooks/mutations/useProvisionBucketMutation.ts index 2613680e6..140fef986 100644 --- a/sdk/constructive-functions-hooks/src/api/hooks/mutations/useProvisionBucketMutation.ts +++ b/sdk/constructive-functions-hooks/src/api/hooks/mutations/useProvisionBucketMutation.ts @@ -4,17 +4,17 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { useMutation } from '@tanstack/react-query'; + +import type { ProvisionBucketPayload,ProvisionBucketPayloadSelect } from '../../orm/input-types'; +import type { ProvisionBucketVariables } from '../../orm/mutation'; +import type { HookStrictSelect, InferSelectResult, StrictSelect } from '../../orm/select-types'; import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; import { customMutationKeys } from '../mutation-keys'; -import type { ProvisionBucketVariables } from '../../orm/mutation'; -import type { ProvisionBucketPayloadSelect, ProvisionBucketPayload } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; -export type { ProvisionBucketVariables } from '../../orm/mutation'; +import { buildSelectionArgs } from '../selection'; export type { ProvisionBucketPayloadSelect } from '../../orm/input-types'; +export type { ProvisionBucketVariables } from '../../orm/mutation'; export function useProvisionBucketMutation( params: { selection: { diff --git a/sdk/constructive-functions-hooks/src/api/hooks/mutations/useUpdatePlatformBucketMutation.ts b/sdk/constructive-functions-hooks/src/api/hooks/mutations/useUpdatePlatformBucketMutation.ts index 927af8f0d..13c7b2ec1 100644 --- a/sdk/constructive-functions-hooks/src/api/hooks/mutations/useUpdatePlatformBucketMutation.ts +++ b/sdk/constructive-functions-hooks/src/api/hooks/mutations/useUpdatePlatformBucketMutation.ts @@ -4,23 +4,24 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformBucketKeys } from '../query-keys'; -import { platformBucketMutationKeys } from '../mutation-keys'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; + import type { + PlatformBucketPatch, PlatformBucketSelect, PlatformBucketWithRelations, - PlatformBucketPatch, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformBucketMutationKeys } from '../mutation-keys'; +import { platformBucketKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { + PlatformBucketPatch, PlatformBucketSelect, PlatformBucketWithRelations, - PlatformBucketPatch, } from '../../orm/input-types'; /** * Logical storage containers that group files with shared access policies and CDN behavior diff --git a/sdk/constructive-functions-hooks/src/api/hooks/mutations/useUpdatePlatformConfigDefinitionMutation.ts b/sdk/constructive-functions-hooks/src/api/hooks/mutations/useUpdatePlatformConfigDefinitionMutation.ts index c8dcb167e..3692f0905 100644 --- a/sdk/constructive-functions-hooks/src/api/hooks/mutations/useUpdatePlatformConfigDefinitionMutation.ts +++ b/sdk/constructive-functions-hooks/src/api/hooks/mutations/useUpdatePlatformConfigDefinitionMutation.ts @@ -4,23 +4,24 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformConfigDefinitionKeys } from '../query-keys'; -import { platformConfigDefinitionMutationKeys } from '../mutation-keys'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; + import type { + PlatformConfigDefinitionPatch, PlatformConfigDefinitionSelect, PlatformConfigDefinitionWithRelations, - PlatformConfigDefinitionPatch, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformConfigDefinitionMutationKeys } from '../mutation-keys'; +import { platformConfigDefinitionKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { + PlatformConfigDefinitionPatch, PlatformConfigDefinitionSelect, PlatformConfigDefinitionWithRelations, - PlatformConfigDefinitionPatch, } from '../../orm/input-types'; /** * Registry of valid config keys — declares which config entries the platform recognizes diff --git a/sdk/constructive-functions-hooks/src/api/hooks/mutations/useUpdatePlatformConfigMutation.ts b/sdk/constructive-functions-hooks/src/api/hooks/mutations/useUpdatePlatformConfigMutation.ts index a21a509ce..f6012258d 100644 --- a/sdk/constructive-functions-hooks/src/api/hooks/mutations/useUpdatePlatformConfigMutation.ts +++ b/sdk/constructive-functions-hooks/src/api/hooks/mutations/useUpdatePlatformConfigMutation.ts @@ -4,23 +4,24 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformConfigKeys } from '../query-keys'; -import { platformConfigMutationKeys } from '../mutation-keys'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; + import type { + PlatformConfigPatch, PlatformConfigSelect, PlatformConfigWithRelations, - PlatformConfigPatch, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformConfigMutationKeys } from '../mutation-keys'; +import { platformConfigKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { + PlatformConfigPatch, PlatformConfigSelect, PlatformConfigWithRelations, - PlatformConfigPatch, } from '../../orm/input-types'; /** * App-level plaintext key-value config store (like a k8s ConfigMap); admin-only, fully CRUD-exposed diff --git a/sdk/constructive-functions-hooks/src/api/hooks/mutations/useUpdatePlatformFileMutation.ts b/sdk/constructive-functions-hooks/src/api/hooks/mutations/useUpdatePlatformFileMutation.ts index c2604c6f8..bb04c1641 100644 --- a/sdk/constructive-functions-hooks/src/api/hooks/mutations/useUpdatePlatformFileMutation.ts +++ b/sdk/constructive-functions-hooks/src/api/hooks/mutations/useUpdatePlatformFileMutation.ts @@ -4,23 +4,24 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformFileKeys } from '../query-keys'; -import { platformFileMutationKeys } from '../mutation-keys'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; + import type { + PlatformFilePatch, PlatformFileSelect, PlatformFileWithRelations, - PlatformFilePatch, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformFileMutationKeys } from '../mutation-keys'; +import { platformFileKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { + PlatformFilePatch, PlatformFileSelect, PlatformFileWithRelations, - PlatformFilePatch, } from '../../orm/input-types'; /** * Individual file records within buckets, with immutable identity fields and mutable metadata diff --git a/sdk/constructive-functions-hooks/src/api/hooks/mutations/useUpdatePlatformNamespaceEventMutation.ts b/sdk/constructive-functions-hooks/src/api/hooks/mutations/useUpdatePlatformNamespaceEventMutation.ts index 9ca416fd9..9b2bad994 100644 --- a/sdk/constructive-functions-hooks/src/api/hooks/mutations/useUpdatePlatformNamespaceEventMutation.ts +++ b/sdk/constructive-functions-hooks/src/api/hooks/mutations/useUpdatePlatformNamespaceEventMutation.ts @@ -4,23 +4,24 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformNamespaceEventKeys } from '../query-keys'; -import { platformNamespaceEventMutationKeys } from '../mutation-keys'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; + import type { + PlatformNamespaceEventPatch, PlatformNamespaceEventSelect, PlatformNamespaceEventWithRelations, - PlatformNamespaceEventPatch, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformNamespaceEventMutationKeys } from '../mutation-keys'; +import { platformNamespaceEventKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { + PlatformNamespaceEventPatch, PlatformNamespaceEventSelect, PlatformNamespaceEventWithRelations, - PlatformNamespaceEventPatch, } from '../../orm/input-types'; /** * Namespace lifecycle events — audit log of creation, activation, deactivation, label changes diff --git a/sdk/constructive-functions-hooks/src/api/hooks/mutations/useUpdatePlatformNamespaceMutation.ts b/sdk/constructive-functions-hooks/src/api/hooks/mutations/useUpdatePlatformNamespaceMutation.ts index de626ae08..8bb9b282f 100644 --- a/sdk/constructive-functions-hooks/src/api/hooks/mutations/useUpdatePlatformNamespaceMutation.ts +++ b/sdk/constructive-functions-hooks/src/api/hooks/mutations/useUpdatePlatformNamespaceMutation.ts @@ -4,23 +4,24 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformNamespaceKeys } from '../query-keys'; -import { platformNamespaceMutationKeys } from '../mutation-keys'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; + import type { + PlatformNamespacePatch, PlatformNamespaceSelect, PlatformNamespaceWithRelations, - PlatformNamespacePatch, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformNamespaceMutationKeys } from '../mutation-keys'; +import { platformNamespaceKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { + PlatformNamespacePatch, PlatformNamespaceSelect, PlatformNamespaceWithRelations, - PlatformNamespacePatch, } from '../../orm/input-types'; /** * Logical namespace containers for grouping secrets, config, functions, and other resources diff --git a/sdk/constructive-functions-hooks/src/api/hooks/mutations/useUpdateRoleTypeMutation.ts b/sdk/constructive-functions-hooks/src/api/hooks/mutations/useUpdateRoleTypeMutation.ts index b25b4efcb..b691782e3 100644 --- a/sdk/constructive-functions-hooks/src/api/hooks/mutations/useUpdateRoleTypeMutation.ts +++ b/sdk/constructive-functions-hooks/src/api/hooks/mutations/useUpdateRoleTypeMutation.ts @@ -4,16 +4,17 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; + +import type { RoleTypePatch,RoleTypeSelect, RoleTypeWithRelations } from '../../orm/input-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { roleTypeKeys } from '../query-keys'; import { roleTypeMutationKeys } from '../mutation-keys'; -import type { RoleTypeSelect, RoleTypeWithRelations, RoleTypePatch } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { RoleTypeSelect, RoleTypeWithRelations, RoleTypePatch } from '../../orm/input-types'; +import { roleTypeKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; +export type { RoleTypePatch,RoleTypeSelect, RoleTypeWithRelations } from '../../orm/input-types'; /** * Mutation hook for updating a RoleType * diff --git a/sdk/constructive-functions-hooks/src/api/hooks/mutations/useUpdateUserMutation.ts b/sdk/constructive-functions-hooks/src/api/hooks/mutations/useUpdateUserMutation.ts index d1ab02501..524f04907 100644 --- a/sdk/constructive-functions-hooks/src/api/hooks/mutations/useUpdateUserMutation.ts +++ b/sdk/constructive-functions-hooks/src/api/hooks/mutations/useUpdateUserMutation.ts @@ -4,16 +4,17 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; + +import type { UserPatch,UserSelect, UserWithRelations } from '../../orm/input-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { userKeys } from '../query-keys'; import { userMutationKeys } from '../mutation-keys'; -import type { UserSelect, UserWithRelations, UserPatch } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { UserSelect, UserWithRelations, UserPatch } from '../../orm/input-types'; +import { userKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; +export type { UserPatch,UserSelect, UserWithRelations } from '../../orm/input-types'; /** * Mutation hook for updating a User * diff --git a/sdk/constructive-functions-hooks/src/api/hooks/mutations/useUploadPlatformFileMutation.ts b/sdk/constructive-functions-hooks/src/api/hooks/mutations/useUploadPlatformFileMutation.ts index 30d24a3e0..347c3f5ce 100644 --- a/sdk/constructive-functions-hooks/src/api/hooks/mutations/useUploadPlatformFileMutation.ts +++ b/sdk/constructive-functions-hooks/src/api/hooks/mutations/useUploadPlatformFileMutation.ts @@ -4,20 +4,20 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { customMutationKeys } from '../mutation-keys'; -import type { UploadPlatformFileVariables } from '../../orm/mutation'; +import { useMutation } from '@tanstack/react-query'; + import type { - UploadPlatformFilePayloadSelect, UploadPlatformFilePayload, + UploadPlatformFilePayloadSelect, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; -export type { UploadPlatformFileVariables } from '../../orm/mutation'; +import type { UploadPlatformFileVariables } from '../../orm/mutation'; +import type { HookStrictSelect, InferSelectResult, StrictSelect } from '../../orm/select-types'; +import { getClient } from '../client'; +import { customMutationKeys } from '../mutation-keys'; +import { buildSelectionArgs } from '../selection'; export type { UploadPlatformFilePayloadSelect } from '../../orm/input-types'; +export type { UploadPlatformFileVariables } from '../../orm/mutation'; export function useUploadPlatformFileMutation( params: { selection: { diff --git a/sdk/constructive-functions-hooks/src/api/hooks/mutations/useUploadPlatformFilesMutation.ts b/sdk/constructive-functions-hooks/src/api/hooks/mutations/useUploadPlatformFilesMutation.ts index d64d712ca..7855f2723 100644 --- a/sdk/constructive-functions-hooks/src/api/hooks/mutations/useUploadPlatformFilesMutation.ts +++ b/sdk/constructive-functions-hooks/src/api/hooks/mutations/useUploadPlatformFilesMutation.ts @@ -4,20 +4,20 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { customMutationKeys } from '../mutation-keys'; -import type { UploadPlatformFilesVariables } from '../../orm/mutation'; +import { useMutation } from '@tanstack/react-query'; + import type { - UploadPlatformFileBulkPayloadSelect, UploadPlatformFileBulkPayload, + UploadPlatformFileBulkPayloadSelect, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; -export type { UploadPlatformFilesVariables } from '../../orm/mutation'; +import type { UploadPlatformFilesVariables } from '../../orm/mutation'; +import type { HookStrictSelect, InferSelectResult, StrictSelect } from '../../orm/select-types'; +import { getClient } from '../client'; +import { customMutationKeys } from '../mutation-keys'; +import { buildSelectionArgs } from '../selection'; export type { UploadPlatformFileBulkPayloadSelect } from '../../orm/input-types'; +export type { UploadPlatformFilesVariables } from '../../orm/mutation'; export function useUploadPlatformFilesMutation( params: { selection: { diff --git a/sdk/constructive-functions-hooks/src/api/hooks/queries/index.ts b/sdk/constructive-functions-hooks/src/api/hooks/queries/index.ts index 5d5c6d022..e95c13b4a 100644 --- a/sdk/constructive-functions-hooks/src/api/hooks/queries/index.ts +++ b/sdk/constructive-functions-hooks/src/api/hooks/queries/index.ts @@ -3,19 +3,19 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ -export * from './useRoleTypesQuery'; -export * from './useRoleTypeQuery'; -export * from './usePlatformConfigDefinitionsQuery'; +export * from './usePlatformBucketQuery'; +export * from './usePlatformBucketsQuery'; export * from './usePlatformConfigDefinitionQuery'; -export * from './usePlatformNamespacesQuery'; -export * from './usePlatformNamespaceQuery'; -export * from './usePlatformConfigsQuery'; +export * from './usePlatformConfigDefinitionsQuery'; export * from './usePlatformConfigQuery'; -export * from './usePlatformBucketsQuery'; -export * from './usePlatformBucketQuery'; -export * from './usePlatformFilesQuery'; +export * from './usePlatformConfigsQuery'; export * from './usePlatformFileQuery'; -export * from './useUsersQuery'; -export * from './useUserQuery'; -export * from './usePlatformNamespaceEventsQuery'; +export * from './usePlatformFilesQuery'; export * from './usePlatformNamespaceEventQuery'; +export * from './usePlatformNamespaceEventsQuery'; +export * from './usePlatformNamespaceQuery'; +export * from './usePlatformNamespacesQuery'; +export * from './useRoleTypeQuery'; +export * from './useRoleTypesQuery'; +export * from './useUserQuery'; +export * from './useUsersQuery'; diff --git a/sdk/constructive-functions-hooks/src/api/hooks/queries/usePlatformBucketQuery.ts b/sdk/constructive-functions-hooks/src/api/hooks/queries/usePlatformBucketQuery.ts index 4d58b9421..c3acf8993 100644 --- a/sdk/constructive-functions-hooks/src/api/hooks/queries/usePlatformBucketQuery.ts +++ b/sdk/constructive-functions-hooks/src/api/hooks/queries/usePlatformBucketQuery.ts @@ -4,14 +4,15 @@ * DO NOT EDIT - changes will be overwritten */ +import type { QueryClient,UseQueryOptions, UseQueryResult } from '@tanstack/react-query'; import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; + +import type { PlatformBucketSelect, PlatformBucketWithRelations } from '../../orm/input-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; import { platformBucketKeys } from '../query-keys'; -import type { PlatformBucketSelect, PlatformBucketWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { PlatformBucketSelect, PlatformBucketWithRelations } from '../../orm/input-types'; /** Query key factory - re-exported from query-keys.ts */ export const platformBucketQueryKey = platformBucketKeys.detail; diff --git a/sdk/constructive-functions-hooks/src/api/hooks/queries/usePlatformBucketsQuery.ts b/sdk/constructive-functions-hooks/src/api/hooks/queries/usePlatformBucketsQuery.ts index 9a3f3e5f9..94bb6c456 100644 --- a/sdk/constructive-functions-hooks/src/api/hooks/queries/usePlatformBucketsQuery.ts +++ b/sdk/constructive-functions-hooks/src/api/hooks/queries/usePlatformBucketsQuery.ts @@ -4,29 +4,29 @@ * DO NOT EDIT - changes will be overwritten */ +import type { QueryClient,UseQueryOptions, UseQueryResult } from '@tanstack/react-query'; import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { platformBucketKeys } from '../query-keys'; + import type { - PlatformBucketSelect, - PlatformBucketWithRelations, PlatformBucketFilter, PlatformBucketOrderBy, + PlatformBucketSelect, + PlatformBucketWithRelations, } from '../../orm/input-types'; import type { - FindManyArgs, - InferSelectResult, ConnectionResult, HookStrictSelect, + InferSelectResult, } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformBucketKeys } from '../query-keys'; +import type { ListSelectionConfig } from '../selection'; +import { buildListSelectionArgs } from '../selection'; export type { - PlatformBucketSelect, - PlatformBucketWithRelations, PlatformBucketFilter, PlatformBucketOrderBy, + PlatformBucketSelect, + PlatformBucketWithRelations, } from '../../orm/input-types'; /** Query key factory - re-exported from query-keys.ts */ export const platformBucketsQueryKey = platformBucketKeys.list; diff --git a/sdk/constructive-functions-hooks/src/api/hooks/queries/usePlatformConfigDefinitionQuery.ts b/sdk/constructive-functions-hooks/src/api/hooks/queries/usePlatformConfigDefinitionQuery.ts index 0a1560fb3..0d70c91b6 100644 --- a/sdk/constructive-functions-hooks/src/api/hooks/queries/usePlatformConfigDefinitionQuery.ts +++ b/sdk/constructive-functions-hooks/src/api/hooks/queries/usePlatformConfigDefinitionQuery.ts @@ -4,17 +4,18 @@ * DO NOT EDIT - changes will be overwritten */ +import type { QueryClient,UseQueryOptions, UseQueryResult } from '@tanstack/react-query'; import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformConfigDefinitionKeys } from '../query-keys'; + import type { PlatformConfigDefinitionSelect, PlatformConfigDefinitionWithRelations, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformConfigDefinitionKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { PlatformConfigDefinitionSelect, PlatformConfigDefinitionWithRelations, diff --git a/sdk/constructive-functions-hooks/src/api/hooks/queries/usePlatformConfigDefinitionsQuery.ts b/sdk/constructive-functions-hooks/src/api/hooks/queries/usePlatformConfigDefinitionsQuery.ts index 0e07fa0f1..e645fca80 100644 --- a/sdk/constructive-functions-hooks/src/api/hooks/queries/usePlatformConfigDefinitionsQuery.ts +++ b/sdk/constructive-functions-hooks/src/api/hooks/queries/usePlatformConfigDefinitionsQuery.ts @@ -4,29 +4,29 @@ * DO NOT EDIT - changes will be overwritten */ +import type { QueryClient,UseQueryOptions, UseQueryResult } from '@tanstack/react-query'; import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { platformConfigDefinitionKeys } from '../query-keys'; + import type { - PlatformConfigDefinitionSelect, - PlatformConfigDefinitionWithRelations, PlatformConfigDefinitionFilter, PlatformConfigDefinitionOrderBy, + PlatformConfigDefinitionSelect, + PlatformConfigDefinitionWithRelations, } from '../../orm/input-types'; import type { - FindManyArgs, - InferSelectResult, ConnectionResult, HookStrictSelect, + InferSelectResult, } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformConfigDefinitionKeys } from '../query-keys'; +import type { ListSelectionConfig } from '../selection'; +import { buildListSelectionArgs } from '../selection'; export type { - PlatformConfigDefinitionSelect, - PlatformConfigDefinitionWithRelations, PlatformConfigDefinitionFilter, PlatformConfigDefinitionOrderBy, + PlatformConfigDefinitionSelect, + PlatformConfigDefinitionWithRelations, } from '../../orm/input-types'; /** Query key factory - re-exported from query-keys.ts */ export const platformConfigDefinitionsQueryKey = platformConfigDefinitionKeys.list; diff --git a/sdk/constructive-functions-hooks/src/api/hooks/queries/usePlatformConfigQuery.ts b/sdk/constructive-functions-hooks/src/api/hooks/queries/usePlatformConfigQuery.ts index a995879ed..5b21d2836 100644 --- a/sdk/constructive-functions-hooks/src/api/hooks/queries/usePlatformConfigQuery.ts +++ b/sdk/constructive-functions-hooks/src/api/hooks/queries/usePlatformConfigQuery.ts @@ -4,14 +4,15 @@ * DO NOT EDIT - changes will be overwritten */ +import type { QueryClient,UseQueryOptions, UseQueryResult } from '@tanstack/react-query'; import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; + +import type { PlatformConfigSelect, PlatformConfigWithRelations } from '../../orm/input-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; import { platformConfigKeys } from '../query-keys'; -import type { PlatformConfigSelect, PlatformConfigWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { PlatformConfigSelect, PlatformConfigWithRelations } from '../../orm/input-types'; /** Query key factory - re-exported from query-keys.ts */ export const platformConfigQueryKey = platformConfigKeys.detail; diff --git a/sdk/constructive-functions-hooks/src/api/hooks/queries/usePlatformConfigsQuery.ts b/sdk/constructive-functions-hooks/src/api/hooks/queries/usePlatformConfigsQuery.ts index 369aa1f17..8992e3cbb 100644 --- a/sdk/constructive-functions-hooks/src/api/hooks/queries/usePlatformConfigsQuery.ts +++ b/sdk/constructive-functions-hooks/src/api/hooks/queries/usePlatformConfigsQuery.ts @@ -4,29 +4,29 @@ * DO NOT EDIT - changes will be overwritten */ +import type { QueryClient,UseQueryOptions, UseQueryResult } from '@tanstack/react-query'; import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { platformConfigKeys } from '../query-keys'; + import type { - PlatformConfigSelect, - PlatformConfigWithRelations, PlatformConfigFilter, PlatformConfigOrderBy, + PlatformConfigSelect, + PlatformConfigWithRelations, } from '../../orm/input-types'; import type { - FindManyArgs, - InferSelectResult, ConnectionResult, HookStrictSelect, + InferSelectResult, } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformConfigKeys } from '../query-keys'; +import type { ListSelectionConfig } from '../selection'; +import { buildListSelectionArgs } from '../selection'; export type { - PlatformConfigSelect, - PlatformConfigWithRelations, PlatformConfigFilter, PlatformConfigOrderBy, + PlatformConfigSelect, + PlatformConfigWithRelations, } from '../../orm/input-types'; /** Query key factory - re-exported from query-keys.ts */ export const platformConfigsQueryKey = platformConfigKeys.list; diff --git a/sdk/constructive-functions-hooks/src/api/hooks/queries/usePlatformFileQuery.ts b/sdk/constructive-functions-hooks/src/api/hooks/queries/usePlatformFileQuery.ts index c56c1addf..25e3c0abc 100644 --- a/sdk/constructive-functions-hooks/src/api/hooks/queries/usePlatformFileQuery.ts +++ b/sdk/constructive-functions-hooks/src/api/hooks/queries/usePlatformFileQuery.ts @@ -4,14 +4,15 @@ * DO NOT EDIT - changes will be overwritten */ +import type { QueryClient,UseQueryOptions, UseQueryResult } from '@tanstack/react-query'; import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; + +import type { PlatformFileSelect, PlatformFileWithRelations } from '../../orm/input-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; import { platformFileKeys } from '../query-keys'; -import type { PlatformFileSelect, PlatformFileWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { PlatformFileSelect, PlatformFileWithRelations } from '../../orm/input-types'; /** Query key factory - re-exported from query-keys.ts */ export const platformFileQueryKey = platformFileKeys.detail; diff --git a/sdk/constructive-functions-hooks/src/api/hooks/queries/usePlatformFilesQuery.ts b/sdk/constructive-functions-hooks/src/api/hooks/queries/usePlatformFilesQuery.ts index 316e435f6..956347208 100644 --- a/sdk/constructive-functions-hooks/src/api/hooks/queries/usePlatformFilesQuery.ts +++ b/sdk/constructive-functions-hooks/src/api/hooks/queries/usePlatformFilesQuery.ts @@ -4,29 +4,29 @@ * DO NOT EDIT - changes will be overwritten */ +import type { QueryClient,UseQueryOptions, UseQueryResult } from '@tanstack/react-query'; import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { platformFileKeys } from '../query-keys'; + import type { - PlatformFileSelect, - PlatformFileWithRelations, PlatformFileFilter, PlatformFileOrderBy, + PlatformFileSelect, + PlatformFileWithRelations, } from '../../orm/input-types'; import type { - FindManyArgs, - InferSelectResult, ConnectionResult, HookStrictSelect, + InferSelectResult, } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformFileKeys } from '../query-keys'; +import type { ListSelectionConfig } from '../selection'; +import { buildListSelectionArgs } from '../selection'; export type { - PlatformFileSelect, - PlatformFileWithRelations, PlatformFileFilter, PlatformFileOrderBy, + PlatformFileSelect, + PlatformFileWithRelations, } from '../../orm/input-types'; /** Query key factory - re-exported from query-keys.ts */ export const platformFilesQueryKey = platformFileKeys.list; diff --git a/sdk/constructive-functions-hooks/src/api/hooks/queries/usePlatformNamespaceEventQuery.ts b/sdk/constructive-functions-hooks/src/api/hooks/queries/usePlatformNamespaceEventQuery.ts index 7801c80b9..fa1708273 100644 --- a/sdk/constructive-functions-hooks/src/api/hooks/queries/usePlatformNamespaceEventQuery.ts +++ b/sdk/constructive-functions-hooks/src/api/hooks/queries/usePlatformNamespaceEventQuery.ts @@ -4,17 +4,18 @@ * DO NOT EDIT - changes will be overwritten */ +import type { QueryClient,UseQueryOptions, UseQueryResult } from '@tanstack/react-query'; import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformNamespaceEventKeys } from '../query-keys'; + import type { PlatformNamespaceEventSelect, PlatformNamespaceEventWithRelations, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformNamespaceEventKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { PlatformNamespaceEventSelect, PlatformNamespaceEventWithRelations, diff --git a/sdk/constructive-functions-hooks/src/api/hooks/queries/usePlatformNamespaceEventsQuery.ts b/sdk/constructive-functions-hooks/src/api/hooks/queries/usePlatformNamespaceEventsQuery.ts index 1d906fbe6..27a9bc071 100644 --- a/sdk/constructive-functions-hooks/src/api/hooks/queries/usePlatformNamespaceEventsQuery.ts +++ b/sdk/constructive-functions-hooks/src/api/hooks/queries/usePlatformNamespaceEventsQuery.ts @@ -4,29 +4,29 @@ * DO NOT EDIT - changes will be overwritten */ +import type { QueryClient,UseQueryOptions, UseQueryResult } from '@tanstack/react-query'; import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { platformNamespaceEventKeys } from '../query-keys'; + import type { - PlatformNamespaceEventSelect, - PlatformNamespaceEventWithRelations, PlatformNamespaceEventFilter, PlatformNamespaceEventOrderBy, + PlatformNamespaceEventSelect, + PlatformNamespaceEventWithRelations, } from '../../orm/input-types'; import type { - FindManyArgs, - InferSelectResult, ConnectionResult, HookStrictSelect, + InferSelectResult, } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformNamespaceEventKeys } from '../query-keys'; +import type { ListSelectionConfig } from '../selection'; +import { buildListSelectionArgs } from '../selection'; export type { - PlatformNamespaceEventSelect, - PlatformNamespaceEventWithRelations, PlatformNamespaceEventFilter, PlatformNamespaceEventOrderBy, + PlatformNamespaceEventSelect, + PlatformNamespaceEventWithRelations, } from '../../orm/input-types'; /** Query key factory - re-exported from query-keys.ts */ export const platformNamespaceEventsQueryKey = platformNamespaceEventKeys.list; diff --git a/sdk/constructive-functions-hooks/src/api/hooks/queries/usePlatformNamespaceQuery.ts b/sdk/constructive-functions-hooks/src/api/hooks/queries/usePlatformNamespaceQuery.ts index 962f42695..d42e96d8b 100644 --- a/sdk/constructive-functions-hooks/src/api/hooks/queries/usePlatformNamespaceQuery.ts +++ b/sdk/constructive-functions-hooks/src/api/hooks/queries/usePlatformNamespaceQuery.ts @@ -4,17 +4,18 @@ * DO NOT EDIT - changes will be overwritten */ +import type { QueryClient,UseQueryOptions, UseQueryResult } from '@tanstack/react-query'; import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformNamespaceKeys } from '../query-keys'; + import type { PlatformNamespaceSelect, PlatformNamespaceWithRelations, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformNamespaceKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { PlatformNamespaceSelect, PlatformNamespaceWithRelations, diff --git a/sdk/constructive-functions-hooks/src/api/hooks/queries/usePlatformNamespacesQuery.ts b/sdk/constructive-functions-hooks/src/api/hooks/queries/usePlatformNamespacesQuery.ts index 08c0cd485..51ec4b5e2 100644 --- a/sdk/constructive-functions-hooks/src/api/hooks/queries/usePlatformNamespacesQuery.ts +++ b/sdk/constructive-functions-hooks/src/api/hooks/queries/usePlatformNamespacesQuery.ts @@ -4,29 +4,29 @@ * DO NOT EDIT - changes will be overwritten */ +import type { QueryClient,UseQueryOptions, UseQueryResult } from '@tanstack/react-query'; import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { platformNamespaceKeys } from '../query-keys'; + import type { - PlatformNamespaceSelect, - PlatformNamespaceWithRelations, PlatformNamespaceFilter, PlatformNamespaceOrderBy, + PlatformNamespaceSelect, + PlatformNamespaceWithRelations, } from '../../orm/input-types'; import type { - FindManyArgs, - InferSelectResult, ConnectionResult, HookStrictSelect, + InferSelectResult, } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformNamespaceKeys } from '../query-keys'; +import type { ListSelectionConfig } from '../selection'; +import { buildListSelectionArgs } from '../selection'; export type { - PlatformNamespaceSelect, - PlatformNamespaceWithRelations, PlatformNamespaceFilter, PlatformNamespaceOrderBy, + PlatformNamespaceSelect, + PlatformNamespaceWithRelations, } from '../../orm/input-types'; /** Query key factory - re-exported from query-keys.ts */ export const platformNamespacesQueryKey = platformNamespaceKeys.list; diff --git a/sdk/constructive-functions-hooks/src/api/hooks/queries/useRoleTypeQuery.ts b/sdk/constructive-functions-hooks/src/api/hooks/queries/useRoleTypeQuery.ts index 314085b87..6096c9d84 100644 --- a/sdk/constructive-functions-hooks/src/api/hooks/queries/useRoleTypeQuery.ts +++ b/sdk/constructive-functions-hooks/src/api/hooks/queries/useRoleTypeQuery.ts @@ -4,14 +4,15 @@ * DO NOT EDIT - changes will be overwritten */ +import type { QueryClient,UseQueryOptions, UseQueryResult } from '@tanstack/react-query'; import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; + +import type { RoleTypeSelect, RoleTypeWithRelations } from '../../orm/input-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; import { roleTypeKeys } from '../query-keys'; -import type { RoleTypeSelect, RoleTypeWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { RoleTypeSelect, RoleTypeWithRelations } from '../../orm/input-types'; /** Query key factory - re-exported from query-keys.ts */ export const roleTypeQueryKey = roleTypeKeys.detail; diff --git a/sdk/constructive-functions-hooks/src/api/hooks/queries/useRoleTypesQuery.ts b/sdk/constructive-functions-hooks/src/api/hooks/queries/useRoleTypesQuery.ts index 9819ceed5..211bb3a51 100644 --- a/sdk/constructive-functions-hooks/src/api/hooks/queries/useRoleTypesQuery.ts +++ b/sdk/constructive-functions-hooks/src/api/hooks/queries/useRoleTypesQuery.ts @@ -4,29 +4,29 @@ * DO NOT EDIT - changes will be overwritten */ +import type { QueryClient,UseQueryOptions, UseQueryResult } from '@tanstack/react-query'; import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { roleTypeKeys } from '../query-keys'; + import type { - RoleTypeSelect, - RoleTypeWithRelations, RoleTypeFilter, RoleTypeOrderBy, + RoleTypeSelect, + RoleTypeWithRelations, } from '../../orm/input-types'; import type { - FindManyArgs, - InferSelectResult, ConnectionResult, HookStrictSelect, + InferSelectResult, } from '../../orm/select-types'; +import { getClient } from '../client'; +import { roleTypeKeys } from '../query-keys'; +import type { ListSelectionConfig } from '../selection'; +import { buildListSelectionArgs } from '../selection'; export type { - RoleTypeSelect, - RoleTypeWithRelations, RoleTypeFilter, RoleTypeOrderBy, + RoleTypeSelect, + RoleTypeWithRelations, } from '../../orm/input-types'; /** Query key factory - re-exported from query-keys.ts */ export const roleTypesQueryKey = roleTypeKeys.list; diff --git a/sdk/constructive-functions-hooks/src/api/hooks/queries/useUserQuery.ts b/sdk/constructive-functions-hooks/src/api/hooks/queries/useUserQuery.ts index 03a7bb6bc..ce5158ebd 100644 --- a/sdk/constructive-functions-hooks/src/api/hooks/queries/useUserQuery.ts +++ b/sdk/constructive-functions-hooks/src/api/hooks/queries/useUserQuery.ts @@ -4,14 +4,15 @@ * DO NOT EDIT - changes will be overwritten */ +import type { QueryClient,UseQueryOptions, UseQueryResult } from '@tanstack/react-query'; import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; + +import type { UserSelect, UserWithRelations } from '../../orm/input-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; import { userKeys } from '../query-keys'; -import type { UserSelect, UserWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { UserSelect, UserWithRelations } from '../../orm/input-types'; /** Query key factory - re-exported from query-keys.ts */ export const userQueryKey = userKeys.detail; diff --git a/sdk/constructive-functions-hooks/src/api/hooks/queries/useUsersQuery.ts b/sdk/constructive-functions-hooks/src/api/hooks/queries/useUsersQuery.ts index 478d3eab4..53eeab52b 100644 --- a/sdk/constructive-functions-hooks/src/api/hooks/queries/useUsersQuery.ts +++ b/sdk/constructive-functions-hooks/src/api/hooks/queries/useUsersQuery.ts @@ -4,20 +4,20 @@ * DO NOT EDIT - changes will be overwritten */ +import type { QueryClient,UseQueryOptions, UseQueryResult } from '@tanstack/react-query'; import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { userKeys } from '../query-keys'; -import type { UserSelect, UserWithRelations, UserFilter, UserOrderBy } from '../../orm/input-types'; + +import type { UserFilter, UserOrderBy,UserSelect, UserWithRelations } from '../../orm/input-types'; import type { - FindManyArgs, - InferSelectResult, ConnectionResult, HookStrictSelect, + InferSelectResult, } from '../../orm/select-types'; -export type { UserSelect, UserWithRelations, UserFilter, UserOrderBy } from '../../orm/input-types'; +import { getClient } from '../client'; +import { userKeys } from '../query-keys'; +import type { ListSelectionConfig } from '../selection'; +import { buildListSelectionArgs } from '../selection'; +export type { UserFilter, UserOrderBy,UserSelect, UserWithRelations } from '../../orm/input-types'; /** Query key factory - re-exported from query-keys.ts */ export const usersQueryKey = userKeys.list; /** diff --git a/sdk/constructive-functions-hooks/src/api/index.ts b/sdk/constructive-functions-hooks/src/api/index.ts index 2b8402539..86f77a82b 100644 --- a/sdk/constructive-functions-hooks/src/api/index.ts +++ b/sdk/constructive-functions-hooks/src/api/index.ts @@ -2,6 +2,6 @@ * GraphQL SDK - auto-generated, do not edit * @generated by @constructive-io/graphql-codegen */ -export * from './types'; export * from './hooks'; export * from './orm'; +export * from './types'; diff --git a/sdk/constructive-functions-hooks/src/api/orm/client.ts b/sdk/constructive-functions-hooks/src/api/orm/client.ts index 16e683c71..d3006224b 100644 --- a/sdk/constructive-functions-hooks/src/api/orm/client.ts +++ b/sdk/constructive-functions-hooks/src/api/orm/client.ts @@ -14,19 +14,12 @@ import type { ConnectionState, ConnectionStateListener, RealtimeConfig, - SubscribeOptions, SubscriptionEvent, SubscriptionFieldMeta, Unsubscribe, } from './realtime'; import { RealtimeManager } from './realtime'; -export type { - GraphQLAdapter, - GraphQLError, - QueryResult, -} from '@constructive-io/graphql-query/runtime'; - export type { ConnectionState, ConnectionStateListener, @@ -39,6 +32,11 @@ export type { WsClient, } from './realtime'; export { RealtimeManager } from './realtime'; +export type { + GraphQLAdapter, + GraphQLError, + QueryResult, +} from '@constructive-io/graphql-query/runtime'; /** * Default adapter that uses fetch for HTTP requests. diff --git a/sdk/constructive-functions-hooks/src/api/orm/index.ts b/sdk/constructive-functions-hooks/src/api/orm/index.ts index a8e91bab0..1cadb2168 100644 --- a/sdk/constructive-functions-hooks/src/api/orm/index.ts +++ b/sdk/constructive-functions-hooks/src/api/orm/index.ts @@ -3,23 +3,23 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ -import { OrmClient } from './client'; import type { OrmClientConfig } from './client'; -import { RoleTypeModel } from './models/roleType'; -import { PlatformConfigDefinitionModel } from './models/platformConfigDefinition'; -import { PlatformNamespaceModel } from './models/platformNamespace'; -import { PlatformConfigModel } from './models/platformConfig'; +import { OrmClient } from './client'; import { PlatformBucketModel } from './models/platformBucket'; +import { PlatformConfigModel } from './models/platformConfig'; +import { PlatformConfigDefinitionModel } from './models/platformConfigDefinition'; import { PlatformFileModel } from './models/platformFile'; -import { UserModel } from './models/user'; +import { PlatformNamespaceModel } from './models/platformNamespace'; import { PlatformNamespaceEventModel } from './models/platformNamespaceEvent'; +import { RoleTypeModel } from './models/roleType'; +import { UserModel } from './models/user'; import { createMutationOperations } from './mutation'; -export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client'; -export { GraphQLRequestError, FetchAdapter } from './client'; -export { QueryBuilder } from './query-builder'; -export * from './select-types'; +export type { GraphQLAdapter,GraphQLError, OrmClientConfig, QueryResult } from './client'; +export { FetchAdapter,GraphQLRequestError } from './client'; export * from './models'; export { createMutationOperations } from './mutation'; +export { QueryBuilder } from './query-builder'; +export * from './select-types'; /** * Create an ORM client instance * diff --git a/sdk/constructive-functions-hooks/src/api/orm/models/index.ts b/sdk/constructive-functions-hooks/src/api/orm/models/index.ts index ac1d17704..e85e97cdd 100644 --- a/sdk/constructive-functions-hooks/src/api/orm/models/index.ts +++ b/sdk/constructive-functions-hooks/src/api/orm/models/index.ts @@ -3,11 +3,11 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ -export { RoleTypeModel } from './roleType'; -export { PlatformConfigDefinitionModel } from './platformConfigDefinition'; -export { PlatformNamespaceModel } from './platformNamespace'; -export { PlatformConfigModel } from './platformConfig'; export { PlatformBucketModel } from './platformBucket'; +export { PlatformConfigModel } from './platformConfig'; +export { PlatformConfigDefinitionModel } from './platformConfigDefinition'; export { PlatformFileModel } from './platformFile'; -export { UserModel } from './user'; +export { PlatformNamespaceModel } from './platformNamespace'; export { PlatformNamespaceEventModel } from './platformNamespaceEvent'; +export { RoleTypeModel } from './roleType'; +export { UserModel } from './user'; diff --git a/sdk/constructive-functions-hooks/src/api/orm/models/platformBucket.ts b/sdk/constructive-functions-hooks/src/api/orm/models/platformBucket.ts index 3ffe7d5bd..9e6c2c034 100644 --- a/sdk/constructive-functions-hooks/src/api/orm/models/platformBucket.ts +++ b/sdk/constructive-functions-hooks/src/api/orm/models/platformBucket.ts @@ -4,36 +4,33 @@ * DO NOT EDIT - changes will be overwritten */ import { OrmClient } from '../client'; +import type { + CreatePlatformBucketInput, + PlatformBucketFilter, + PlatformBucketOrderBy, + PlatformBucketPatch, + PlatformBucketSelect, + PlatformBucketWithRelations, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, buildCreateDocument, - buildUpdateByPkDocument, buildDeleteByPkDocument, + buildFindFirstDocument, + buildFindManyDocument, + buildUpdateByPkDocument, + QueryBuilder, } from '../query-builder'; import type { ConnectionResult, - FindManyArgs, - FindFirstArgs, CreateArgs, - UpdateArgs, DeleteArgs, + FindFirstArgs, + FindManyArgs, InferSelectResult, StrictSelect, + UpdateArgs, } from '../select-types'; -import type { - PlatformBucket, - PlatformBucketWithRelations, - PlatformBucketSelect, - PlatformBucketFilter, - PlatformBucketOrderBy, - CreatePlatformBucketInput, - UpdatePlatformBucketInput, - PlatformBucketPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; export class PlatformBucketModel { constructor(private client: OrmClient) {} findMany( diff --git a/sdk/constructive-functions-hooks/src/api/orm/models/platformConfig.ts b/sdk/constructive-functions-hooks/src/api/orm/models/platformConfig.ts index 43634e7a8..c98c43e80 100644 --- a/sdk/constructive-functions-hooks/src/api/orm/models/platformConfig.ts +++ b/sdk/constructive-functions-hooks/src/api/orm/models/platformConfig.ts @@ -4,36 +4,33 @@ * DO NOT EDIT - changes will be overwritten */ import { OrmClient } from '../client'; +import type { + CreatePlatformConfigInput, + PlatformConfigFilter, + PlatformConfigOrderBy, + PlatformConfigPatch, + PlatformConfigSelect, + PlatformConfigWithRelations, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, buildCreateDocument, - buildUpdateByPkDocument, buildDeleteByPkDocument, + buildFindFirstDocument, + buildFindManyDocument, + buildUpdateByPkDocument, + QueryBuilder, } from '../query-builder'; import type { ConnectionResult, - FindManyArgs, - FindFirstArgs, CreateArgs, - UpdateArgs, DeleteArgs, + FindFirstArgs, + FindManyArgs, InferSelectResult, StrictSelect, + UpdateArgs, } from '../select-types'; -import type { - PlatformConfig, - PlatformConfigWithRelations, - PlatformConfigSelect, - PlatformConfigFilter, - PlatformConfigOrderBy, - CreatePlatformConfigInput, - UpdatePlatformConfigInput, - PlatformConfigPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; export class PlatformConfigModel { constructor(private client: OrmClient) {} findMany( diff --git a/sdk/constructive-functions-hooks/src/api/orm/models/platformConfigDefinition.ts b/sdk/constructive-functions-hooks/src/api/orm/models/platformConfigDefinition.ts index c28ff1566..6174d9660 100644 --- a/sdk/constructive-functions-hooks/src/api/orm/models/platformConfigDefinition.ts +++ b/sdk/constructive-functions-hooks/src/api/orm/models/platformConfigDefinition.ts @@ -4,36 +4,33 @@ * DO NOT EDIT - changes will be overwritten */ import { OrmClient } from '../client'; +import type { + CreatePlatformConfigDefinitionInput, + PlatformConfigDefinitionFilter, + PlatformConfigDefinitionOrderBy, + PlatformConfigDefinitionPatch, + PlatformConfigDefinitionSelect, + PlatformConfigDefinitionWithRelations, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, buildCreateDocument, - buildUpdateByPkDocument, buildDeleteByPkDocument, + buildFindFirstDocument, + buildFindManyDocument, + buildUpdateByPkDocument, + QueryBuilder, } from '../query-builder'; import type { ConnectionResult, - FindManyArgs, - FindFirstArgs, CreateArgs, - UpdateArgs, DeleteArgs, + FindFirstArgs, + FindManyArgs, InferSelectResult, StrictSelect, + UpdateArgs, } from '../select-types'; -import type { - PlatformConfigDefinition, - PlatformConfigDefinitionWithRelations, - PlatformConfigDefinitionSelect, - PlatformConfigDefinitionFilter, - PlatformConfigDefinitionOrderBy, - CreatePlatformConfigDefinitionInput, - UpdatePlatformConfigDefinitionInput, - PlatformConfigDefinitionPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; export class PlatformConfigDefinitionModel { constructor(private client: OrmClient) {} findMany( diff --git a/sdk/constructive-functions-hooks/src/api/orm/models/platformFile.ts b/sdk/constructive-functions-hooks/src/api/orm/models/platformFile.ts index bfc7890e9..d7bc628d5 100644 --- a/sdk/constructive-functions-hooks/src/api/orm/models/platformFile.ts +++ b/sdk/constructive-functions-hooks/src/api/orm/models/platformFile.ts @@ -4,36 +4,33 @@ * DO NOT EDIT - changes will be overwritten */ import { OrmClient } from '../client'; +import type { + CreatePlatformFileInput, + PlatformFileFilter, + PlatformFileOrderBy, + PlatformFilePatch, + PlatformFileSelect, + PlatformFileWithRelations, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, buildCreateDocument, - buildUpdateByPkDocument, buildDeleteByPkDocument, + buildFindFirstDocument, + buildFindManyDocument, + buildUpdateByPkDocument, + QueryBuilder, } from '../query-builder'; import type { ConnectionResult, - FindManyArgs, - FindFirstArgs, CreateArgs, - UpdateArgs, DeleteArgs, + FindFirstArgs, + FindManyArgs, InferSelectResult, StrictSelect, + UpdateArgs, } from '../select-types'; -import type { - PlatformFile, - PlatformFileWithRelations, - PlatformFileSelect, - PlatformFileFilter, - PlatformFileOrderBy, - CreatePlatformFileInput, - UpdatePlatformFileInput, - PlatformFilePatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; export class PlatformFileModel { constructor(private client: OrmClient) {} findMany( diff --git a/sdk/constructive-functions-hooks/src/api/orm/models/platformNamespace.ts b/sdk/constructive-functions-hooks/src/api/orm/models/platformNamespace.ts index c4dff9495..95a81de8b 100644 --- a/sdk/constructive-functions-hooks/src/api/orm/models/platformNamespace.ts +++ b/sdk/constructive-functions-hooks/src/api/orm/models/platformNamespace.ts @@ -4,36 +4,33 @@ * DO NOT EDIT - changes will be overwritten */ import { OrmClient } from '../client'; +import type { + CreatePlatformNamespaceInput, + PlatformNamespaceFilter, + PlatformNamespaceOrderBy, + PlatformNamespacePatch, + PlatformNamespaceSelect, + PlatformNamespaceWithRelations, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, buildCreateDocument, - buildUpdateByPkDocument, buildDeleteByPkDocument, + buildFindFirstDocument, + buildFindManyDocument, + buildUpdateByPkDocument, + QueryBuilder, } from '../query-builder'; import type { ConnectionResult, - FindManyArgs, - FindFirstArgs, CreateArgs, - UpdateArgs, DeleteArgs, + FindFirstArgs, + FindManyArgs, InferSelectResult, StrictSelect, + UpdateArgs, } from '../select-types'; -import type { - PlatformNamespace, - PlatformNamespaceWithRelations, - PlatformNamespaceSelect, - PlatformNamespaceFilter, - PlatformNamespaceOrderBy, - CreatePlatformNamespaceInput, - UpdatePlatformNamespaceInput, - PlatformNamespacePatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; export class PlatformNamespaceModel { constructor(private client: OrmClient) {} findMany( diff --git a/sdk/constructive-functions-hooks/src/api/orm/models/platformNamespaceEvent.ts b/sdk/constructive-functions-hooks/src/api/orm/models/platformNamespaceEvent.ts index 198afe79a..bdf1a737d 100644 --- a/sdk/constructive-functions-hooks/src/api/orm/models/platformNamespaceEvent.ts +++ b/sdk/constructive-functions-hooks/src/api/orm/models/platformNamespaceEvent.ts @@ -4,36 +4,33 @@ * DO NOT EDIT - changes will be overwritten */ import { OrmClient } from '../client'; +import type { + CreatePlatformNamespaceEventInput, + PlatformNamespaceEventFilter, + PlatformNamespaceEventOrderBy, + PlatformNamespaceEventPatch, + PlatformNamespaceEventSelect, + PlatformNamespaceEventWithRelations, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, buildCreateDocument, - buildUpdateByPkDocument, buildDeleteByPkDocument, + buildFindFirstDocument, + buildFindManyDocument, + buildUpdateByPkDocument, + QueryBuilder, } from '../query-builder'; import type { ConnectionResult, - FindManyArgs, - FindFirstArgs, CreateArgs, - UpdateArgs, DeleteArgs, + FindFirstArgs, + FindManyArgs, InferSelectResult, StrictSelect, + UpdateArgs, } from '../select-types'; -import type { - PlatformNamespaceEvent, - PlatformNamespaceEventWithRelations, - PlatformNamespaceEventSelect, - PlatformNamespaceEventFilter, - PlatformNamespaceEventOrderBy, - CreatePlatformNamespaceEventInput, - UpdatePlatformNamespaceEventInput, - PlatformNamespaceEventPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; export class PlatformNamespaceEventModel { constructor(private client: OrmClient) {} findMany( diff --git a/sdk/constructive-functions-hooks/src/api/orm/models/roleType.ts b/sdk/constructive-functions-hooks/src/api/orm/models/roleType.ts index e8df4924b..d54341e3f 100644 --- a/sdk/constructive-functions-hooks/src/api/orm/models/roleType.ts +++ b/sdk/constructive-functions-hooks/src/api/orm/models/roleType.ts @@ -4,36 +4,33 @@ * DO NOT EDIT - changes will be overwritten */ import { OrmClient } from '../client'; +import type { + CreateRoleTypeInput, + RoleTypeFilter, + RoleTypeOrderBy, + RoleTypePatch, + RoleTypeSelect, + RoleTypeWithRelations, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, buildCreateDocument, - buildUpdateByPkDocument, buildDeleteByPkDocument, + buildFindFirstDocument, + buildFindManyDocument, + buildUpdateByPkDocument, + QueryBuilder, } from '../query-builder'; import type { ConnectionResult, - FindManyArgs, - FindFirstArgs, CreateArgs, - UpdateArgs, DeleteArgs, + FindFirstArgs, + FindManyArgs, InferSelectResult, StrictSelect, + UpdateArgs, } from '../select-types'; -import type { - RoleType, - RoleTypeWithRelations, - RoleTypeSelect, - RoleTypeFilter, - RoleTypeOrderBy, - CreateRoleTypeInput, - UpdateRoleTypeInput, - RoleTypePatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; export class RoleTypeModel { constructor(private client: OrmClient) {} findMany( diff --git a/sdk/constructive-functions-hooks/src/api/orm/models/user.ts b/sdk/constructive-functions-hooks/src/api/orm/models/user.ts index a35147a5a..582cecf2e 100644 --- a/sdk/constructive-functions-hooks/src/api/orm/models/user.ts +++ b/sdk/constructive-functions-hooks/src/api/orm/models/user.ts @@ -4,36 +4,33 @@ * DO NOT EDIT - changes will be overwritten */ import { OrmClient } from '../client'; +import type { + CreateUserInput, + UserFilter, + UserOrderBy, + UserPatch, + UserSelect, + UserWithRelations, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, buildCreateDocument, - buildUpdateByPkDocument, buildDeleteByPkDocument, + buildFindFirstDocument, + buildFindManyDocument, + buildUpdateByPkDocument, + QueryBuilder, } from '../query-builder'; import type { ConnectionResult, - FindManyArgs, - FindFirstArgs, CreateArgs, - UpdateArgs, DeleteArgs, + FindFirstArgs, + FindManyArgs, InferSelectResult, StrictSelect, + UpdateArgs, } from '../select-types'; -import type { - User, - UserWithRelations, - UserSelect, - UserFilter, - UserOrderBy, - CreateUserInput, - UpdateUserInput, - UserPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; export class UserModel { constructor(private client: OrmClient) {} findMany( diff --git a/sdk/constructive-functions-hooks/src/api/orm/mutation/index.ts b/sdk/constructive-functions-hooks/src/api/orm/mutation/index.ts index a2949e23d..49cae5f1f 100644 --- a/sdk/constructive-functions-hooks/src/api/orm/mutation/index.ts +++ b/sdk/constructive-functions-hooks/src/api/orm/mutation/index.ts @@ -4,38 +4,38 @@ * DO NOT EDIT - changes will be overwritten */ import { OrmClient } from '../client'; -import { QueryBuilder, buildCustomDocument } from '../query-builder'; -import type { InferSelectResult, StrictSelect } from '../select-types'; import type { - PlatformSecretsDelInput, - PlatformSecretsSetInput, OrgSecretsDelInput, - OrgSecretsSetInput, - OrgSecretsRemoveArrayInput, - PlatformFilesRenameInput, - UploadPlatformFileInput, - UploadPlatformFileBulkInput, - ProvisionBucketInput, - PlatformSecretsDelPayload, - PlatformSecretsSetPayload, OrgSecretsDelPayload, - OrgSecretsSetPayload, + OrgSecretsDelPayloadSelect, + OrgSecretsRemoveArrayInput, OrgSecretsRemoveArrayPayload, + OrgSecretsRemoveArrayPayloadSelect, + OrgSecretsSetInput, + OrgSecretsSetPayload, + OrgSecretsSetPayloadSelect, + PlatformFilesRenameInput, PlatformFilesRenamePayload, - UploadPlatformFilePayload, - UploadPlatformFileBulkPayload, - ProvisionBucketPayload, + PlatformFilesRenamePayloadSelect, + PlatformSecretsDelInput, + PlatformSecretsDelPayload, PlatformSecretsDelPayloadSelect, + PlatformSecretsSetInput, + PlatformSecretsSetPayload, PlatformSecretsSetPayloadSelect, - OrgSecretsDelPayloadSelect, - OrgSecretsSetPayloadSelect, - OrgSecretsRemoveArrayPayloadSelect, - PlatformFilesRenamePayloadSelect, - UploadPlatformFilePayloadSelect, - UploadPlatformFileBulkPayloadSelect, + ProvisionBucketInput, + ProvisionBucketPayload, ProvisionBucketPayloadSelect, + UploadPlatformFileBulkInput, + UploadPlatformFileBulkPayload, + UploadPlatformFileBulkPayloadSelect, + UploadPlatformFileInput, + UploadPlatformFilePayload, + UploadPlatformFilePayloadSelect, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; +import { buildCustomDocument,QueryBuilder } from '../query-builder'; +import type { InferSelectResult, StrictSelect } from '../select-types'; export interface PlatformSecretsDelVariables { input: PlatformSecretsDelInput; } diff --git a/sdk/constructive-functions-hooks/src/api/schema-types.ts b/sdk/constructive-functions-hooks/src/api/schema-types.ts index 212a972ba..acf8e8caa 100644 --- a/sdk/constructive-functions-hooks/src/api/schema-types.ts +++ b/sdk/constructive-functions-hooks/src/api/schema-types.ts @@ -5,6 +5,12 @@ */ import type { + BigIntFilter, + BooleanFilter, + DatetimeFilter, + FullTextFilter, + IntFilter, + JSONFilter, PlatformBucket, PlatformConfig, PlatformConfigDefinition, @@ -12,24 +18,10 @@ import type { PlatformNamespace, PlatformNamespaceEvent, RoleType, - User, - BigFloatFilter, - BigIntFilter, - BitStringFilter, - BooleanFilter, - DateFilter, - DatetimeFilter, - FloatFilter, - FullTextFilter, - IntFilter, - IntListFilter, - InternetAddressFilter, - JSONFilter, StringFilter, StringListFilter, + User, UUIDFilter, - UUIDListFilter, - VectorFilter, } from './types'; export type ConstructiveInternalTypeImage = unknown; export type ConstructiveInternalTypeUpload = unknown; diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/index.ts b/sdk/constructive-functions-hooks/src/compute/hooks/index.ts index 2e2fd9226..3f5570cdc 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/index.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/index.ts @@ -32,8 +32,8 @@ * ``` */ export * from './client'; -export * from './query-keys'; -export * from './mutation-keys'; export * from './invalidation'; -export * from './queries'; +export * from './mutation-keys'; export * from './mutations'; +export * from './queries'; +export * from './query-keys'; diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/invalidation.ts b/sdk/constructive-functions-hooks/src/compute/hooks/invalidation.ts index 63d73b5e8..40c563010 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/invalidation.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/invalidation.ts @@ -14,24 +14,25 @@ // ============================================================================ import type { QueryClient } from '@tanstack/react-query'; + import { getAllRecordKeys, - platformFunctionGraphRefKeys, - platformFunctionGraphStoreKeys, - platformFunctionGraphObjectKeys, orgFunctionExecutionLogKeys, - platformFunctionGraphExecutionOutputKeys, - platformFunctionGraphCommitKeys, - platformSecretDefinitionKeys, + orgFunctionInvocationKeys, + platformComputeLogKeys, + platformFunctionDefinitionKeys, platformFunctionExecutionLogKeys, + platformFunctionGraphCommitKeys, + platformFunctionGraphExecutionKeys, platformFunctionGraphExecutionNodeStateKeys, + platformFunctionGraphExecutionOutputKeys, platformFunctionGraphKeys, - platformComputeLogKeys, - platformUsageDailyKeys, - orgFunctionInvocationKeys, + platformFunctionGraphObjectKeys, + platformFunctionGraphRefKeys, + platformFunctionGraphStoreKeys, platformFunctionInvocationKeys, - platformFunctionGraphExecutionKeys, - platformFunctionDefinitionKeys, + platformSecretDefinitionKeys, + platformUsageDailyKeys, } from './query-keys'; /** // ============================================================================ diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/index.ts b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/index.ts index 56112d662..966e9bc10 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/index.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/index.ts @@ -4,66 +4,66 @@ * DO NOT EDIT - changes will be overwritten */ export * from './useCreateGetAllRecordMutation'; -export * from './useCreatePlatformFunctionGraphRefMutation'; -export * from './useUpdatePlatformFunctionGraphRefMutation'; -export * from './useDeletePlatformFunctionGraphRefMutation'; -export * from './useCreatePlatformFunctionGraphStoreMutation'; -export * from './useUpdatePlatformFunctionGraphStoreMutation'; -export * from './useDeletePlatformFunctionGraphStoreMutation'; -export * from './useCreatePlatformFunctionGraphObjectMutation'; -export * from './useUpdatePlatformFunctionGraphObjectMutation'; -export * from './useDeletePlatformFunctionGraphObjectMutation'; export * from './useCreateOrgFunctionExecutionLogMutation'; -export * from './useUpdateOrgFunctionExecutionLogMutation'; -export * from './useDeleteOrgFunctionExecutionLogMutation'; -export * from './useCreatePlatformFunctionGraphExecutionOutputMutation'; -export * from './useUpdatePlatformFunctionGraphExecutionOutputMutation'; -export * from './useDeletePlatformFunctionGraphExecutionOutputMutation'; -export * from './useCreatePlatformFunctionGraphCommitMutation'; -export * from './useUpdatePlatformFunctionGraphCommitMutation'; -export * from './useDeletePlatformFunctionGraphCommitMutation'; -export * from './useCreatePlatformSecretDefinitionMutation'; -export * from './useUpdatePlatformSecretDefinitionMutation'; -export * from './useDeletePlatformSecretDefinitionMutation'; +export * from './useCreateOrgFunctionInvocationMutation'; +export * from './useCreatePlatformComputeLogMutation'; +export * from './useCreatePlatformFunctionDefinitionMutation'; export * from './useCreatePlatformFunctionExecutionLogMutation'; -export * from './useUpdatePlatformFunctionExecutionLogMutation'; -export * from './useDeletePlatformFunctionExecutionLogMutation'; +export * from './useCreatePlatformFunctionGraphCommitMutation'; +export * from './useCreatePlatformFunctionGraphExecutionMutation'; export * from './useCreatePlatformFunctionGraphExecutionNodeStateMutation'; -export * from './useUpdatePlatformFunctionGraphExecutionNodeStateMutation'; -export * from './useDeletePlatformFunctionGraphExecutionNodeStateMutation'; +export * from './useCreatePlatformFunctionGraphExecutionOutputMutation'; export * from './useCreatePlatformFunctionGraphMutation'; -export * from './useUpdatePlatformFunctionGraphMutation'; -export * from './useDeletePlatformFunctionGraphMutation'; -export * from './useCreatePlatformComputeLogMutation'; -export * from './useUpdatePlatformComputeLogMutation'; -export * from './useDeletePlatformComputeLogMutation'; +export * from './useCreatePlatformFunctionGraphObjectMutation'; +export * from './useCreatePlatformFunctionGraphRefMutation'; +export * from './useCreatePlatformFunctionGraphStoreMutation'; +export * from './useCreatePlatformFunctionInvocationMutation'; +export * from './useCreatePlatformSecretDefinitionMutation'; export * from './useCreatePlatformUsageDailyMutation'; -export * from './useUpdatePlatformUsageDailyMutation'; -export * from './useDeletePlatformUsageDailyMutation'; -export * from './useCreateOrgFunctionInvocationMutation'; -export * from './useUpdateOrgFunctionInvocationMutation'; +export * from './useDeleteOrgFunctionExecutionLogMutation'; export * from './useDeleteOrgFunctionInvocationMutation'; -export * from './useCreatePlatformFunctionInvocationMutation'; -export * from './useUpdatePlatformFunctionInvocationMutation'; -export * from './useDeletePlatformFunctionInvocationMutation'; -export * from './useCreatePlatformFunctionGraphExecutionMutation'; -export * from './useUpdatePlatformFunctionGraphExecutionMutation'; -export * from './useDeletePlatformFunctionGraphExecutionMutation'; -export * from './useCreatePlatformFunctionDefinitionMutation'; -export * from './useUpdatePlatformFunctionDefinitionMutation'; +export * from './useDeletePlatformComputeLogMutation'; export * from './useDeletePlatformFunctionDefinitionMutation'; -export * from './usePlatformValidateFunctionGraphMutation'; +export * from './useDeletePlatformFunctionExecutionLogMutation'; +export * from './useDeletePlatformFunctionGraphCommitMutation'; +export * from './useDeletePlatformFunctionGraphExecutionMutation'; +export * from './useDeletePlatformFunctionGraphExecutionNodeStateMutation'; +export * from './useDeletePlatformFunctionGraphExecutionOutputMutation'; +export * from './useDeletePlatformFunctionGraphMutation'; +export * from './useDeletePlatformFunctionGraphObjectMutation'; +export * from './useDeletePlatformFunctionGraphRefMutation'; +export * from './useDeletePlatformFunctionGraphStoreMutation'; +export * from './useDeletePlatformFunctionInvocationMutation'; +export * from './useDeletePlatformSecretDefinitionMutation'; +export * from './useDeletePlatformUsageDailyMutation'; export * from './useInitEmptyRepoMutation'; -export * from './usePlatformImportDefinitionsMutation'; -export * from './useSetDataAtPathMutation'; -export * from './usePlatformCopyGraphMutation'; -export * from './usePlatformSaveGraphMutation'; +export * from './useInsertNodeAtPathMutation'; export * from './usePlatformAddEdgeAndSaveMutation'; -export * from './usePlatformAddNodeAndSaveMutation'; -export * from './usePlatformCreateFunctionGraphMutation'; export * from './usePlatformAddEdgeMutation'; +export * from './usePlatformAddNodeAndSaveMutation'; export * from './usePlatformAddNodeMutation'; +export * from './usePlatformCopyGraphMutation'; +export * from './usePlatformCreateFunctionGraphMutation'; +export * from './usePlatformImportDefinitionsMutation'; export * from './usePlatformImportGraphJsonMutation'; -export * from './useInsertNodeAtPathMutation'; +export * from './usePlatformSaveGraphMutation'; export * from './usePlatformStartExecutionMutation'; +export * from './usePlatformValidateFunctionGraphMutation'; export * from './useProvisionBucketMutation'; +export * from './useSetDataAtPathMutation'; +export * from './useUpdateOrgFunctionExecutionLogMutation'; +export * from './useUpdateOrgFunctionInvocationMutation'; +export * from './useUpdatePlatformComputeLogMutation'; +export * from './useUpdatePlatformFunctionDefinitionMutation'; +export * from './useUpdatePlatformFunctionExecutionLogMutation'; +export * from './useUpdatePlatformFunctionGraphCommitMutation'; +export * from './useUpdatePlatformFunctionGraphExecutionMutation'; +export * from './useUpdatePlatformFunctionGraphExecutionNodeStateMutation'; +export * from './useUpdatePlatformFunctionGraphExecutionOutputMutation'; +export * from './useUpdatePlatformFunctionGraphMutation'; +export * from './useUpdatePlatformFunctionGraphObjectMutation'; +export * from './useUpdatePlatformFunctionGraphRefMutation'; +export * from './useUpdatePlatformFunctionGraphStoreMutation'; +export * from './useUpdatePlatformFunctionInvocationMutation'; +export * from './useUpdatePlatformSecretDefinitionMutation'; +export * from './useUpdatePlatformUsageDailyMutation'; diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useCreateGetAllRecordMutation.ts b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useCreateGetAllRecordMutation.ts index d7761690b..599b0b62d 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useCreateGetAllRecordMutation.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useCreateGetAllRecordMutation.ts @@ -4,23 +4,24 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { getAllRecordKeys } from '../query-keys'; -import { getAllRecordMutationKeys } from '../mutation-keys'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; + import type { + CreateGetAllRecordInput, GetAllRecordSelect, GetAllRecordWithRelations, - CreateGetAllRecordInput, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; +import { getClient } from '../client'; +import { getAllRecordMutationKeys } from '../mutation-keys'; +import { getAllRecordKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { + CreateGetAllRecordInput, GetAllRecordSelect, GetAllRecordWithRelations, - CreateGetAllRecordInput, } from '../../orm/input-types'; /** * Mutation hook for creating a GetAllRecord diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useCreateOrgFunctionExecutionLogMutation.ts b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useCreateOrgFunctionExecutionLogMutation.ts index f93b6596d..b2a5e9c98 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useCreateOrgFunctionExecutionLogMutation.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useCreateOrgFunctionExecutionLogMutation.ts @@ -4,23 +4,24 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgFunctionExecutionLogKeys } from '../query-keys'; -import { orgFunctionExecutionLogMutationKeys } from '../mutation-keys'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; + import type { + CreateOrgFunctionExecutionLogInput, OrgFunctionExecutionLogSelect, OrgFunctionExecutionLogWithRelations, - CreateOrgFunctionExecutionLogInput, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; +import { getClient } from '../client'; +import { orgFunctionExecutionLogMutationKeys } from '../mutation-keys'; +import { orgFunctionExecutionLogKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { + CreateOrgFunctionExecutionLogInput, OrgFunctionExecutionLogSelect, OrgFunctionExecutionLogWithRelations, - CreateOrgFunctionExecutionLogInput, } from '../../orm/input-types'; /** * Function execution logs — structured console output per invocation diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useCreateOrgFunctionInvocationMutation.ts b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useCreateOrgFunctionInvocationMutation.ts index 0ddaa5089..53996f350 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useCreateOrgFunctionInvocationMutation.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useCreateOrgFunctionInvocationMutation.ts @@ -4,23 +4,24 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgFunctionInvocationKeys } from '../query-keys'; -import { orgFunctionInvocationMutationKeys } from '../mutation-keys'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; + import type { + CreateOrgFunctionInvocationInput, OrgFunctionInvocationSelect, OrgFunctionInvocationWithRelations, - CreateOrgFunctionInvocationInput, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; +import { getClient } from '../client'; +import { orgFunctionInvocationMutationKeys } from '../mutation-keys'; +import { orgFunctionInvocationKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { + CreateOrgFunctionInvocationInput, OrgFunctionInvocationSelect, OrgFunctionInvocationWithRelations, - CreateOrgFunctionInvocationInput, } from '../../orm/input-types'; /** * Function invocation log — INSERT to call a function (business-layer, metered). Linked to definitions by task_identifier string. diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useCreatePlatformComputeLogMutation.ts b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useCreatePlatformComputeLogMutation.ts index 86e0cd93b..31cf8149a 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useCreatePlatformComputeLogMutation.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useCreatePlatformComputeLogMutation.ts @@ -4,23 +4,24 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformComputeLogKeys } from '../query-keys'; -import { platformComputeLogMutationKeys } from '../mutation-keys'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; + import type { + CreatePlatformComputeLogInput, PlatformComputeLogSelect, PlatformComputeLogWithRelations, - CreatePlatformComputeLogInput, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformComputeLogMutationKeys } from '../mutation-keys'; +import { platformComputeLogKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { + CreatePlatformComputeLogInput, PlatformComputeLogSelect, PlatformComputeLogWithRelations, - CreatePlatformComputeLogInput, } from '../../orm/input-types'; /** * Mutation hook for creating a PlatformComputeLog diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useCreatePlatformFunctionDefinitionMutation.ts b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useCreatePlatformFunctionDefinitionMutation.ts index 0baf283c1..f9211497c 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useCreatePlatformFunctionDefinitionMutation.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useCreatePlatformFunctionDefinitionMutation.ts @@ -4,23 +4,24 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformFunctionDefinitionKeys } from '../query-keys'; -import { platformFunctionDefinitionMutationKeys } from '../mutation-keys'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; + import type { + CreatePlatformFunctionDefinitionInput, PlatformFunctionDefinitionSelect, PlatformFunctionDefinitionWithRelations, - CreatePlatformFunctionDefinitionInput, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformFunctionDefinitionMutationKeys } from '../mutation-keys'; +import { platformFunctionDefinitionKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { + CreatePlatformFunctionDefinitionInput, PlatformFunctionDefinitionSelect, PlatformFunctionDefinitionWithRelations, - CreatePlatformFunctionDefinitionInput, } from '../../orm/input-types'; /** * Function definitions — registered cloud functions with routing, queue, and retry configuration diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useCreatePlatformFunctionExecutionLogMutation.ts b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useCreatePlatformFunctionExecutionLogMutation.ts index e2aae4e31..e29d1f2c6 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useCreatePlatformFunctionExecutionLogMutation.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useCreatePlatformFunctionExecutionLogMutation.ts @@ -4,23 +4,24 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformFunctionExecutionLogKeys } from '../query-keys'; -import { platformFunctionExecutionLogMutationKeys } from '../mutation-keys'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; + import type { + CreatePlatformFunctionExecutionLogInput, PlatformFunctionExecutionLogSelect, PlatformFunctionExecutionLogWithRelations, - CreatePlatformFunctionExecutionLogInput, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformFunctionExecutionLogMutationKeys } from '../mutation-keys'; +import { platformFunctionExecutionLogKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { + CreatePlatformFunctionExecutionLogInput, PlatformFunctionExecutionLogSelect, PlatformFunctionExecutionLogWithRelations, - CreatePlatformFunctionExecutionLogInput, } from '../../orm/input-types'; /** * Function execution logs — structured console output per invocation diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useCreatePlatformFunctionGraphCommitMutation.ts b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useCreatePlatformFunctionGraphCommitMutation.ts index 0b7f5209f..01714b02d 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useCreatePlatformFunctionGraphCommitMutation.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useCreatePlatformFunctionGraphCommitMutation.ts @@ -4,23 +4,24 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformFunctionGraphCommitKeys } from '../query-keys'; -import { platformFunctionGraphCommitMutationKeys } from '../mutation-keys'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; + import type { + CreatePlatformFunctionGraphCommitInput, PlatformFunctionGraphCommitSelect, PlatformFunctionGraphCommitWithRelations, - CreatePlatformFunctionGraphCommitInput, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformFunctionGraphCommitMutationKeys } from '../mutation-keys'; +import { platformFunctionGraphCommitKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { + CreatePlatformFunctionGraphCommitInput, PlatformFunctionGraphCommitSelect, PlatformFunctionGraphCommitWithRelations, - CreatePlatformFunctionGraphCommitInput, } from '../../orm/input-types'; /** * Commit history — each commit snapshots a tree root for a store diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useCreatePlatformFunctionGraphExecutionMutation.ts b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useCreatePlatformFunctionGraphExecutionMutation.ts index c3f538143..5bb4d5d98 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useCreatePlatformFunctionGraphExecutionMutation.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useCreatePlatformFunctionGraphExecutionMutation.ts @@ -4,23 +4,24 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformFunctionGraphExecutionKeys } from '../query-keys'; -import { platformFunctionGraphExecutionMutationKeys } from '../mutation-keys'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; + import type { + CreatePlatformFunctionGraphExecutionInput, PlatformFunctionGraphExecutionSelect, PlatformFunctionGraphExecutionWithRelations, - CreatePlatformFunctionGraphExecutionInput, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformFunctionGraphExecutionMutationKeys } from '../mutation-keys'; +import { platformFunctionGraphExecutionKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { + CreatePlatformFunctionGraphExecutionInput, PlatformFunctionGraphExecutionSelect, PlatformFunctionGraphExecutionWithRelations, - CreatePlatformFunctionGraphExecutionInput, } from '../../orm/input-types'; /** * Ephemeral execution state for flow graph evaluation diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useCreatePlatformFunctionGraphExecutionNodeStateMutation.ts b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useCreatePlatformFunctionGraphExecutionNodeStateMutation.ts index 017dbfc06..4f43fa50b 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useCreatePlatformFunctionGraphExecutionNodeStateMutation.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useCreatePlatformFunctionGraphExecutionNodeStateMutation.ts @@ -4,23 +4,24 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformFunctionGraphExecutionNodeStateKeys } from '../query-keys'; -import { platformFunctionGraphExecutionNodeStateMutationKeys } from '../mutation-keys'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; + import type { + CreatePlatformFunctionGraphExecutionNodeStateInput, PlatformFunctionGraphExecutionNodeStateSelect, PlatformFunctionGraphExecutionNodeStateWithRelations, - CreatePlatformFunctionGraphExecutionNodeStateInput, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformFunctionGraphExecutionNodeStateMutationKeys } from '../mutation-keys'; +import { platformFunctionGraphExecutionNodeStateKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { + CreatePlatformFunctionGraphExecutionNodeStateInput, PlatformFunctionGraphExecutionNodeStateSelect, PlatformFunctionGraphExecutionNodeStateWithRelations, - CreatePlatformFunctionGraphExecutionNodeStateInput, } from '../../orm/input-types'; /** * Per-node execution state — tracks individual node lifecycle for debugging diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useCreatePlatformFunctionGraphExecutionOutputMutation.ts b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useCreatePlatformFunctionGraphExecutionOutputMutation.ts index bdbfd8f57..d66926df9 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useCreatePlatformFunctionGraphExecutionOutputMutation.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useCreatePlatformFunctionGraphExecutionOutputMutation.ts @@ -4,23 +4,24 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformFunctionGraphExecutionOutputKeys } from '../query-keys'; -import { platformFunctionGraphExecutionOutputMutationKeys } from '../mutation-keys'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; + import type { + CreatePlatformFunctionGraphExecutionOutputInput, PlatformFunctionGraphExecutionOutputSelect, PlatformFunctionGraphExecutionOutputWithRelations, - CreatePlatformFunctionGraphExecutionOutputInput, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformFunctionGraphExecutionOutputMutationKeys } from '../mutation-keys'; +import { platformFunctionGraphExecutionOutputKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { + CreatePlatformFunctionGraphExecutionOutputInput, PlatformFunctionGraphExecutionOutputSelect, PlatformFunctionGraphExecutionOutputWithRelations, - CreatePlatformFunctionGraphExecutionOutputInput, } from '../../orm/input-types'; /** * Content-addressed store for execution outputs — hash-referenced from node_outputs diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useCreatePlatformFunctionGraphMutation.ts b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useCreatePlatformFunctionGraphMutation.ts index f057ae25f..f5888b060 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useCreatePlatformFunctionGraphMutation.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useCreatePlatformFunctionGraphMutation.ts @@ -4,23 +4,24 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformFunctionGraphKeys } from '../query-keys'; -import { platformFunctionGraphMutationKeys } from '../mutation-keys'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; + import type { + CreatePlatformFunctionGraphInput, PlatformFunctionGraphSelect, PlatformFunctionGraphWithRelations, - CreatePlatformFunctionGraphInput, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformFunctionGraphMutationKeys } from '../mutation-keys'; +import { platformFunctionGraphKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { + CreatePlatformFunctionGraphInput, PlatformFunctionGraphSelect, PlatformFunctionGraphWithRelations, - CreatePlatformFunctionGraphInput, } from '../../orm/input-types'; /** * Flow graph definitions — FBP graphs stored in the dedicated graph Merkle store diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useCreatePlatformFunctionGraphObjectMutation.ts b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useCreatePlatformFunctionGraphObjectMutation.ts index e8486e4bd..92787ba58 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useCreatePlatformFunctionGraphObjectMutation.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useCreatePlatformFunctionGraphObjectMutation.ts @@ -4,23 +4,24 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformFunctionGraphObjectKeys } from '../query-keys'; -import { platformFunctionGraphObjectMutationKeys } from '../mutation-keys'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; + import type { + CreatePlatformFunctionGraphObjectInput, PlatformFunctionGraphObjectSelect, PlatformFunctionGraphObjectWithRelations, - CreatePlatformFunctionGraphObjectInput, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformFunctionGraphObjectMutationKeys } from '../mutation-keys'; +import { platformFunctionGraphObjectKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { + CreatePlatformFunctionGraphObjectInput, PlatformFunctionGraphObjectSelect, PlatformFunctionGraphObjectWithRelations, - CreatePlatformFunctionGraphObjectInput, } from '../../orm/input-types'; /** * Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useCreatePlatformFunctionGraphRefMutation.ts b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useCreatePlatformFunctionGraphRefMutation.ts index 9e0e12a00..db0cc4978 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useCreatePlatformFunctionGraphRefMutation.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useCreatePlatformFunctionGraphRefMutation.ts @@ -4,23 +4,24 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformFunctionGraphRefKeys } from '../query-keys'; -import { platformFunctionGraphRefMutationKeys } from '../mutation-keys'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; + import type { + CreatePlatformFunctionGraphRefInput, PlatformFunctionGraphRefSelect, PlatformFunctionGraphRefWithRelations, - CreatePlatformFunctionGraphRefInput, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformFunctionGraphRefMutationKeys } from '../mutation-keys'; +import { platformFunctionGraphRefKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { + CreatePlatformFunctionGraphRefInput, PlatformFunctionGraphRefSelect, PlatformFunctionGraphRefWithRelations, - CreatePlatformFunctionGraphRefInput, } from '../../orm/input-types'; /** * Branch heads — mutable pointers into the commit chain diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useCreatePlatformFunctionGraphStoreMutation.ts b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useCreatePlatformFunctionGraphStoreMutation.ts index 3aebede95..058a267cf 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useCreatePlatformFunctionGraphStoreMutation.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useCreatePlatformFunctionGraphStoreMutation.ts @@ -4,23 +4,24 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformFunctionGraphStoreKeys } from '../query-keys'; -import { platformFunctionGraphStoreMutationKeys } from '../mutation-keys'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; + import type { + CreatePlatformFunctionGraphStoreInput, PlatformFunctionGraphStoreSelect, PlatformFunctionGraphStoreWithRelations, - CreatePlatformFunctionGraphStoreInput, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformFunctionGraphStoreMutationKeys } from '../mutation-keys'; +import { platformFunctionGraphStoreKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { + CreatePlatformFunctionGraphStoreInput, PlatformFunctionGraphStoreSelect, PlatformFunctionGraphStoreWithRelations, - CreatePlatformFunctionGraphStoreInput, } from '../../orm/input-types'; /** * Named stores — one per version-controlled tree (e.g. one graph, one definition set) diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useCreatePlatformFunctionInvocationMutation.ts b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useCreatePlatformFunctionInvocationMutation.ts index 25ba42c2b..6251be4f5 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useCreatePlatformFunctionInvocationMutation.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useCreatePlatformFunctionInvocationMutation.ts @@ -4,23 +4,24 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformFunctionInvocationKeys } from '../query-keys'; -import { platformFunctionInvocationMutationKeys } from '../mutation-keys'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; + import type { + CreatePlatformFunctionInvocationInput, PlatformFunctionInvocationSelect, PlatformFunctionInvocationWithRelations, - CreatePlatformFunctionInvocationInput, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformFunctionInvocationMutationKeys } from '../mutation-keys'; +import { platformFunctionInvocationKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { + CreatePlatformFunctionInvocationInput, PlatformFunctionInvocationSelect, PlatformFunctionInvocationWithRelations, - CreatePlatformFunctionInvocationInput, } from '../../orm/input-types'; /** * Function invocation log — INSERT to call a function (business-layer, metered). Linked to definitions by task_identifier string. diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useCreatePlatformSecretDefinitionMutation.ts b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useCreatePlatformSecretDefinitionMutation.ts index 1b6666c9e..ca6a6f116 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useCreatePlatformSecretDefinitionMutation.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useCreatePlatformSecretDefinitionMutation.ts @@ -4,23 +4,24 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformSecretDefinitionKeys } from '../query-keys'; -import { platformSecretDefinitionMutationKeys } from '../mutation-keys'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; + import type { + CreatePlatformSecretDefinitionInput, PlatformSecretDefinitionSelect, PlatformSecretDefinitionWithRelations, - CreatePlatformSecretDefinitionInput, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformSecretDefinitionMutationKeys } from '../mutation-keys'; +import { platformSecretDefinitionKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { + CreatePlatformSecretDefinitionInput, PlatformSecretDefinitionSelect, PlatformSecretDefinitionWithRelations, - CreatePlatformSecretDefinitionInput, } from '../../orm/input-types'; /** * Global secret name registry — declares which secrets the platform recognizes. Actual values live in app_secrets. diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useCreatePlatformUsageDailyMutation.ts b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useCreatePlatformUsageDailyMutation.ts index a62dc331e..b9c07ddd6 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useCreatePlatformUsageDailyMutation.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useCreatePlatformUsageDailyMutation.ts @@ -4,23 +4,24 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformUsageDailyKeys } from '../query-keys'; -import { platformUsageDailyMutationKeys } from '../mutation-keys'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; + import type { + CreatePlatformUsageDailyInput, PlatformUsageDailySelect, PlatformUsageDailyWithRelations, - CreatePlatformUsageDailyInput, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformUsageDailyMutationKeys } from '../mutation-keys'; +import { platformUsageDailyKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { + CreatePlatformUsageDailyInput, PlatformUsageDailySelect, PlatformUsageDailyWithRelations, - CreatePlatformUsageDailyInput, } from '../../orm/input-types'; /** * Mutation hook for creating a PlatformUsageDaily diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useDeleteOrgFunctionExecutionLogMutation.ts b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useDeleteOrgFunctionExecutionLogMutation.ts index 4189cba72..edcff6c6d 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useDeleteOrgFunctionExecutionLogMutation.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useDeleteOrgFunctionExecutionLogMutation.ts @@ -4,18 +4,19 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgFunctionExecutionLogKeys } from '../query-keys'; -import { orgFunctionExecutionLogMutationKeys } from '../mutation-keys'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; + import type { OrgFunctionExecutionLogSelect, OrgFunctionExecutionLogWithRelations, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; +import { getClient } from '../client'; +import { orgFunctionExecutionLogMutationKeys } from '../mutation-keys'; +import { orgFunctionExecutionLogKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { OrgFunctionExecutionLogSelect, OrgFunctionExecutionLogWithRelations, diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useDeleteOrgFunctionInvocationMutation.ts b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useDeleteOrgFunctionInvocationMutation.ts index be33dd742..2b69ece25 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useDeleteOrgFunctionInvocationMutation.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useDeleteOrgFunctionInvocationMutation.ts @@ -4,18 +4,19 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgFunctionInvocationKeys } from '../query-keys'; -import { orgFunctionInvocationMutationKeys } from '../mutation-keys'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; + import type { OrgFunctionInvocationSelect, OrgFunctionInvocationWithRelations, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; +import { getClient } from '../client'; +import { orgFunctionInvocationMutationKeys } from '../mutation-keys'; +import { orgFunctionInvocationKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { OrgFunctionInvocationSelect, OrgFunctionInvocationWithRelations, diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useDeletePlatformComputeLogMutation.ts b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useDeletePlatformComputeLogMutation.ts index c98f4325e..6a370c7e4 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useDeletePlatformComputeLogMutation.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useDeletePlatformComputeLogMutation.ts @@ -4,18 +4,19 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformComputeLogKeys } from '../query-keys'; -import { platformComputeLogMutationKeys } from '../mutation-keys'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; + import type { PlatformComputeLogSelect, PlatformComputeLogWithRelations, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformComputeLogMutationKeys } from '../mutation-keys'; +import { platformComputeLogKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { PlatformComputeLogSelect, PlatformComputeLogWithRelations, diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useDeletePlatformFunctionDefinitionMutation.ts b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useDeletePlatformFunctionDefinitionMutation.ts index 7dc79a9a3..50956132d 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useDeletePlatformFunctionDefinitionMutation.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useDeletePlatformFunctionDefinitionMutation.ts @@ -4,18 +4,19 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformFunctionDefinitionKeys } from '../query-keys'; -import { platformFunctionDefinitionMutationKeys } from '../mutation-keys'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; + import type { PlatformFunctionDefinitionSelect, PlatformFunctionDefinitionWithRelations, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformFunctionDefinitionMutationKeys } from '../mutation-keys'; +import { platformFunctionDefinitionKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { PlatformFunctionDefinitionSelect, PlatformFunctionDefinitionWithRelations, diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useDeletePlatformFunctionExecutionLogMutation.ts b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useDeletePlatformFunctionExecutionLogMutation.ts index c39000ca0..d14efec99 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useDeletePlatformFunctionExecutionLogMutation.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useDeletePlatformFunctionExecutionLogMutation.ts @@ -4,18 +4,19 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformFunctionExecutionLogKeys } from '../query-keys'; -import { platformFunctionExecutionLogMutationKeys } from '../mutation-keys'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; + import type { PlatformFunctionExecutionLogSelect, PlatformFunctionExecutionLogWithRelations, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformFunctionExecutionLogMutationKeys } from '../mutation-keys'; +import { platformFunctionExecutionLogKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { PlatformFunctionExecutionLogSelect, PlatformFunctionExecutionLogWithRelations, diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useDeletePlatformFunctionGraphCommitMutation.ts b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useDeletePlatformFunctionGraphCommitMutation.ts index 1767cc645..338d00052 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useDeletePlatformFunctionGraphCommitMutation.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useDeletePlatformFunctionGraphCommitMutation.ts @@ -4,18 +4,19 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformFunctionGraphCommitKeys } from '../query-keys'; -import { platformFunctionGraphCommitMutationKeys } from '../mutation-keys'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; + import type { PlatformFunctionGraphCommitSelect, PlatformFunctionGraphCommitWithRelations, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformFunctionGraphCommitMutationKeys } from '../mutation-keys'; +import { platformFunctionGraphCommitKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { PlatformFunctionGraphCommitSelect, PlatformFunctionGraphCommitWithRelations, diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useDeletePlatformFunctionGraphExecutionMutation.ts b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useDeletePlatformFunctionGraphExecutionMutation.ts index ca31e3b89..28579c7cb 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useDeletePlatformFunctionGraphExecutionMutation.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useDeletePlatformFunctionGraphExecutionMutation.ts @@ -4,18 +4,19 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformFunctionGraphExecutionKeys } from '../query-keys'; -import { platformFunctionGraphExecutionMutationKeys } from '../mutation-keys'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; + import type { PlatformFunctionGraphExecutionSelect, PlatformFunctionGraphExecutionWithRelations, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformFunctionGraphExecutionMutationKeys } from '../mutation-keys'; +import { platformFunctionGraphExecutionKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { PlatformFunctionGraphExecutionSelect, PlatformFunctionGraphExecutionWithRelations, diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useDeletePlatformFunctionGraphExecutionNodeStateMutation.ts b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useDeletePlatformFunctionGraphExecutionNodeStateMutation.ts index 35ef60896..9a04fe628 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useDeletePlatformFunctionGraphExecutionNodeStateMutation.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useDeletePlatformFunctionGraphExecutionNodeStateMutation.ts @@ -4,18 +4,19 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformFunctionGraphExecutionNodeStateKeys } from '../query-keys'; -import { platformFunctionGraphExecutionNodeStateMutationKeys } from '../mutation-keys'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; + import type { PlatformFunctionGraphExecutionNodeStateSelect, PlatformFunctionGraphExecutionNodeStateWithRelations, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformFunctionGraphExecutionNodeStateMutationKeys } from '../mutation-keys'; +import { platformFunctionGraphExecutionNodeStateKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { PlatformFunctionGraphExecutionNodeStateSelect, PlatformFunctionGraphExecutionNodeStateWithRelations, diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useDeletePlatformFunctionGraphExecutionOutputMutation.ts b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useDeletePlatformFunctionGraphExecutionOutputMutation.ts index e35f1f107..ea8373d62 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useDeletePlatformFunctionGraphExecutionOutputMutation.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useDeletePlatformFunctionGraphExecutionOutputMutation.ts @@ -4,18 +4,19 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformFunctionGraphExecutionOutputKeys } from '../query-keys'; -import { platformFunctionGraphExecutionOutputMutationKeys } from '../mutation-keys'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; + import type { PlatformFunctionGraphExecutionOutputSelect, PlatformFunctionGraphExecutionOutputWithRelations, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformFunctionGraphExecutionOutputMutationKeys } from '../mutation-keys'; +import { platformFunctionGraphExecutionOutputKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { PlatformFunctionGraphExecutionOutputSelect, PlatformFunctionGraphExecutionOutputWithRelations, diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useDeletePlatformFunctionGraphMutation.ts b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useDeletePlatformFunctionGraphMutation.ts index 0e3008d4e..a9a60d995 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useDeletePlatformFunctionGraphMutation.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useDeletePlatformFunctionGraphMutation.ts @@ -4,18 +4,19 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformFunctionGraphKeys } from '../query-keys'; -import { platformFunctionGraphMutationKeys } from '../mutation-keys'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; + import type { PlatformFunctionGraphSelect, PlatformFunctionGraphWithRelations, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformFunctionGraphMutationKeys } from '../mutation-keys'; +import { platformFunctionGraphKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { PlatformFunctionGraphSelect, PlatformFunctionGraphWithRelations, diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useDeletePlatformFunctionGraphObjectMutation.ts b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useDeletePlatformFunctionGraphObjectMutation.ts index 3d13a51ab..9d082661c 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useDeletePlatformFunctionGraphObjectMutation.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useDeletePlatformFunctionGraphObjectMutation.ts @@ -4,18 +4,19 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformFunctionGraphObjectKeys } from '../query-keys'; -import { platformFunctionGraphObjectMutationKeys } from '../mutation-keys'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; + import type { PlatformFunctionGraphObjectSelect, PlatformFunctionGraphObjectWithRelations, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformFunctionGraphObjectMutationKeys } from '../mutation-keys'; +import { platformFunctionGraphObjectKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { PlatformFunctionGraphObjectSelect, PlatformFunctionGraphObjectWithRelations, diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useDeletePlatformFunctionGraphRefMutation.ts b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useDeletePlatformFunctionGraphRefMutation.ts index 620bbb7e7..fb5caad6f 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useDeletePlatformFunctionGraphRefMutation.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useDeletePlatformFunctionGraphRefMutation.ts @@ -4,18 +4,19 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformFunctionGraphRefKeys } from '../query-keys'; -import { platformFunctionGraphRefMutationKeys } from '../mutation-keys'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; + import type { PlatformFunctionGraphRefSelect, PlatformFunctionGraphRefWithRelations, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformFunctionGraphRefMutationKeys } from '../mutation-keys'; +import { platformFunctionGraphRefKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { PlatformFunctionGraphRefSelect, PlatformFunctionGraphRefWithRelations, diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useDeletePlatformFunctionGraphStoreMutation.ts b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useDeletePlatformFunctionGraphStoreMutation.ts index 6d796ddb8..f56234208 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useDeletePlatformFunctionGraphStoreMutation.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useDeletePlatformFunctionGraphStoreMutation.ts @@ -4,18 +4,19 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformFunctionGraphStoreKeys } from '../query-keys'; -import { platformFunctionGraphStoreMutationKeys } from '../mutation-keys'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; + import type { PlatformFunctionGraphStoreSelect, PlatformFunctionGraphStoreWithRelations, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformFunctionGraphStoreMutationKeys } from '../mutation-keys'; +import { platformFunctionGraphStoreKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { PlatformFunctionGraphStoreSelect, PlatformFunctionGraphStoreWithRelations, diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useDeletePlatformFunctionInvocationMutation.ts b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useDeletePlatformFunctionInvocationMutation.ts index 58735fa72..c3c958210 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useDeletePlatformFunctionInvocationMutation.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useDeletePlatformFunctionInvocationMutation.ts @@ -4,18 +4,19 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformFunctionInvocationKeys } from '../query-keys'; -import { platformFunctionInvocationMutationKeys } from '../mutation-keys'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; + import type { PlatformFunctionInvocationSelect, PlatformFunctionInvocationWithRelations, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformFunctionInvocationMutationKeys } from '../mutation-keys'; +import { platformFunctionInvocationKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { PlatformFunctionInvocationSelect, PlatformFunctionInvocationWithRelations, diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useDeletePlatformSecretDefinitionMutation.ts b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useDeletePlatformSecretDefinitionMutation.ts index 5ffa334e0..0f4aed8ef 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useDeletePlatformSecretDefinitionMutation.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useDeletePlatformSecretDefinitionMutation.ts @@ -4,18 +4,19 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformSecretDefinitionKeys } from '../query-keys'; -import { platformSecretDefinitionMutationKeys } from '../mutation-keys'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; + import type { PlatformSecretDefinitionSelect, PlatformSecretDefinitionWithRelations, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformSecretDefinitionMutationKeys } from '../mutation-keys'; +import { platformSecretDefinitionKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { PlatformSecretDefinitionSelect, PlatformSecretDefinitionWithRelations, diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useDeletePlatformUsageDailyMutation.ts b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useDeletePlatformUsageDailyMutation.ts index 1f57ae9ae..7fbea855c 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useDeletePlatformUsageDailyMutation.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useDeletePlatformUsageDailyMutation.ts @@ -4,18 +4,19 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformUsageDailyKeys } from '../query-keys'; -import { platformUsageDailyMutationKeys } from '../mutation-keys'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; + import type { PlatformUsageDailySelect, PlatformUsageDailyWithRelations, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformUsageDailyMutationKeys } from '../mutation-keys'; +import { platformUsageDailyKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { PlatformUsageDailySelect, PlatformUsageDailyWithRelations, diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useInitEmptyRepoMutation.ts b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useInitEmptyRepoMutation.ts index f82dc9e02..b5c4e6359 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useInitEmptyRepoMutation.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useInitEmptyRepoMutation.ts @@ -4,17 +4,17 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { useMutation } from '@tanstack/react-query'; + +import type { InitEmptyRepoPayload,InitEmptyRepoPayloadSelect } from '../../orm/input-types'; +import type { InitEmptyRepoVariables } from '../../orm/mutation'; +import type { HookStrictSelect, InferSelectResult, StrictSelect } from '../../orm/select-types'; import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; import { customMutationKeys } from '../mutation-keys'; -import type { InitEmptyRepoVariables } from '../../orm/mutation'; -import type { InitEmptyRepoPayloadSelect, InitEmptyRepoPayload } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; -export type { InitEmptyRepoVariables } from '../../orm/mutation'; +import { buildSelectionArgs } from '../selection'; export type { InitEmptyRepoPayloadSelect } from '../../orm/input-types'; +export type { InitEmptyRepoVariables } from '../../orm/mutation'; export function useInitEmptyRepoMutation( params: { selection: { diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useInsertNodeAtPathMutation.ts b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useInsertNodeAtPathMutation.ts index 9da7a1bd5..1336ffc71 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useInsertNodeAtPathMutation.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useInsertNodeAtPathMutation.ts @@ -4,17 +4,17 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { useMutation } from '@tanstack/react-query'; + +import type { InsertNodeAtPathPayload,InsertNodeAtPathPayloadSelect } from '../../orm/input-types'; +import type { InsertNodeAtPathVariables } from '../../orm/mutation'; +import type { HookStrictSelect, InferSelectResult, StrictSelect } from '../../orm/select-types'; import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; import { customMutationKeys } from '../mutation-keys'; -import type { InsertNodeAtPathVariables } from '../../orm/mutation'; -import type { InsertNodeAtPathPayloadSelect, InsertNodeAtPathPayload } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; -export type { InsertNodeAtPathVariables } from '../../orm/mutation'; +import { buildSelectionArgs } from '../selection'; export type { InsertNodeAtPathPayloadSelect } from '../../orm/input-types'; +export type { InsertNodeAtPathVariables } from '../../orm/mutation'; export function useInsertNodeAtPathMutation( params: { selection: { diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/usePlatformAddEdgeAndSaveMutation.ts b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/usePlatformAddEdgeAndSaveMutation.ts index 66cf4a8cc..6564bcde4 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/usePlatformAddEdgeAndSaveMutation.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/usePlatformAddEdgeAndSaveMutation.ts @@ -4,20 +4,20 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { customMutationKeys } from '../mutation-keys'; -import type { PlatformAddEdgeAndSaveVariables } from '../../orm/mutation'; +import { useMutation } from '@tanstack/react-query'; + import type { - PlatformAddEdgeAndSavePayloadSelect, PlatformAddEdgeAndSavePayload, + PlatformAddEdgeAndSavePayloadSelect, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; -export type { PlatformAddEdgeAndSaveVariables } from '../../orm/mutation'; +import type { PlatformAddEdgeAndSaveVariables } from '../../orm/mutation'; +import type { HookStrictSelect, InferSelectResult, StrictSelect } from '../../orm/select-types'; +import { getClient } from '../client'; +import { customMutationKeys } from '../mutation-keys'; +import { buildSelectionArgs } from '../selection'; export type { PlatformAddEdgeAndSavePayloadSelect } from '../../orm/input-types'; +export type { PlatformAddEdgeAndSaveVariables } from '../../orm/mutation'; export function usePlatformAddEdgeAndSaveMutation( params: { selection: { diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/usePlatformAddEdgeMutation.ts b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/usePlatformAddEdgeMutation.ts index d89dc81d1..29609f1f1 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/usePlatformAddEdgeMutation.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/usePlatformAddEdgeMutation.ts @@ -4,17 +4,17 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { useMutation } from '@tanstack/react-query'; + +import type { PlatformAddEdgePayload,PlatformAddEdgePayloadSelect } from '../../orm/input-types'; +import type { PlatformAddEdgeVariables } from '../../orm/mutation'; +import type { HookStrictSelect, InferSelectResult, StrictSelect } from '../../orm/select-types'; import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; import { customMutationKeys } from '../mutation-keys'; -import type { PlatformAddEdgeVariables } from '../../orm/mutation'; -import type { PlatformAddEdgePayloadSelect, PlatformAddEdgePayload } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; -export type { PlatformAddEdgeVariables } from '../../orm/mutation'; +import { buildSelectionArgs } from '../selection'; export type { PlatformAddEdgePayloadSelect } from '../../orm/input-types'; +export type { PlatformAddEdgeVariables } from '../../orm/mutation'; export function usePlatformAddEdgeMutation( params: { selection: { diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/usePlatformAddNodeAndSaveMutation.ts b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/usePlatformAddNodeAndSaveMutation.ts index ce5924758..6c34d5b6e 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/usePlatformAddNodeAndSaveMutation.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/usePlatformAddNodeAndSaveMutation.ts @@ -4,20 +4,20 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { customMutationKeys } from '../mutation-keys'; -import type { PlatformAddNodeAndSaveVariables } from '../../orm/mutation'; +import { useMutation } from '@tanstack/react-query'; + import type { - PlatformAddNodeAndSavePayloadSelect, PlatformAddNodeAndSavePayload, + PlatformAddNodeAndSavePayloadSelect, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; -export type { PlatformAddNodeAndSaveVariables } from '../../orm/mutation'; +import type { PlatformAddNodeAndSaveVariables } from '../../orm/mutation'; +import type { HookStrictSelect, InferSelectResult, StrictSelect } from '../../orm/select-types'; +import { getClient } from '../client'; +import { customMutationKeys } from '../mutation-keys'; +import { buildSelectionArgs } from '../selection'; export type { PlatformAddNodeAndSavePayloadSelect } from '../../orm/input-types'; +export type { PlatformAddNodeAndSaveVariables } from '../../orm/mutation'; export function usePlatformAddNodeAndSaveMutation( params: { selection: { diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/usePlatformAddNodeMutation.ts b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/usePlatformAddNodeMutation.ts index c3953fc10..bd980c6fd 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/usePlatformAddNodeMutation.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/usePlatformAddNodeMutation.ts @@ -4,17 +4,17 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { useMutation } from '@tanstack/react-query'; + +import type { PlatformAddNodePayload,PlatformAddNodePayloadSelect } from '../../orm/input-types'; +import type { PlatformAddNodeVariables } from '../../orm/mutation'; +import type { HookStrictSelect, InferSelectResult, StrictSelect } from '../../orm/select-types'; import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; import { customMutationKeys } from '../mutation-keys'; -import type { PlatformAddNodeVariables } from '../../orm/mutation'; -import type { PlatformAddNodePayloadSelect, PlatformAddNodePayload } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; -export type { PlatformAddNodeVariables } from '../../orm/mutation'; +import { buildSelectionArgs } from '../selection'; export type { PlatformAddNodePayloadSelect } from '../../orm/input-types'; +export type { PlatformAddNodeVariables } from '../../orm/mutation'; export function usePlatformAddNodeMutation( params: { selection: { diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/usePlatformCopyGraphMutation.ts b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/usePlatformCopyGraphMutation.ts index a91b6a89e..45daef499 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/usePlatformCopyGraphMutation.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/usePlatformCopyGraphMutation.ts @@ -4,20 +4,20 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { customMutationKeys } from '../mutation-keys'; -import type { PlatformCopyGraphVariables } from '../../orm/mutation'; +import { useMutation } from '@tanstack/react-query'; + import type { - PlatformCopyGraphPayloadSelect, PlatformCopyGraphPayload, + PlatformCopyGraphPayloadSelect, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; -export type { PlatformCopyGraphVariables } from '../../orm/mutation'; +import type { PlatformCopyGraphVariables } from '../../orm/mutation'; +import type { HookStrictSelect, InferSelectResult, StrictSelect } from '../../orm/select-types'; +import { getClient } from '../client'; +import { customMutationKeys } from '../mutation-keys'; +import { buildSelectionArgs } from '../selection'; export type { PlatformCopyGraphPayloadSelect } from '../../orm/input-types'; +export type { PlatformCopyGraphVariables } from '../../orm/mutation'; export function usePlatformCopyGraphMutation( params: { selection: { diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/usePlatformCreateFunctionGraphMutation.ts b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/usePlatformCreateFunctionGraphMutation.ts index bdb58c4fe..3b94e5ebb 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/usePlatformCreateFunctionGraphMutation.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/usePlatformCreateFunctionGraphMutation.ts @@ -4,20 +4,20 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { customMutationKeys } from '../mutation-keys'; -import type { PlatformCreateFunctionGraphVariables } from '../../orm/mutation'; +import { useMutation } from '@tanstack/react-query'; + import type { - PlatformCreateFunctionGraphPayloadSelect, PlatformCreateFunctionGraphPayload, + PlatformCreateFunctionGraphPayloadSelect, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; -export type { PlatformCreateFunctionGraphVariables } from '../../orm/mutation'; +import type { PlatformCreateFunctionGraphVariables } from '../../orm/mutation'; +import type { HookStrictSelect, InferSelectResult, StrictSelect } from '../../orm/select-types'; +import { getClient } from '../client'; +import { customMutationKeys } from '../mutation-keys'; +import { buildSelectionArgs } from '../selection'; export type { PlatformCreateFunctionGraphPayloadSelect } from '../../orm/input-types'; +export type { PlatformCreateFunctionGraphVariables } from '../../orm/mutation'; export function usePlatformCreateFunctionGraphMutation< S extends PlatformCreateFunctionGraphPayloadSelect, >( diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/usePlatformImportDefinitionsMutation.ts b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/usePlatformImportDefinitionsMutation.ts index ce856c5de..a4b24f6e6 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/usePlatformImportDefinitionsMutation.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/usePlatformImportDefinitionsMutation.ts @@ -4,20 +4,20 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { customMutationKeys } from '../mutation-keys'; -import type { PlatformImportDefinitionsVariables } from '../../orm/mutation'; +import { useMutation } from '@tanstack/react-query'; + import type { - PlatformImportDefinitionsPayloadSelect, PlatformImportDefinitionsPayload, + PlatformImportDefinitionsPayloadSelect, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; -export type { PlatformImportDefinitionsVariables } from '../../orm/mutation'; +import type { PlatformImportDefinitionsVariables } from '../../orm/mutation'; +import type { HookStrictSelect, InferSelectResult, StrictSelect } from '../../orm/select-types'; +import { getClient } from '../client'; +import { customMutationKeys } from '../mutation-keys'; +import { buildSelectionArgs } from '../selection'; export type { PlatformImportDefinitionsPayloadSelect } from '../../orm/input-types'; +export type { PlatformImportDefinitionsVariables } from '../../orm/mutation'; export function usePlatformImportDefinitionsMutation< S extends PlatformImportDefinitionsPayloadSelect, >( diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/usePlatformImportGraphJsonMutation.ts b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/usePlatformImportGraphJsonMutation.ts index 9ec6c60d6..cdffdbf79 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/usePlatformImportGraphJsonMutation.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/usePlatformImportGraphJsonMutation.ts @@ -4,20 +4,20 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { customMutationKeys } from '../mutation-keys'; -import type { PlatformImportGraphJsonVariables } from '../../orm/mutation'; +import { useMutation } from '@tanstack/react-query'; + import type { - PlatformImportGraphJsonPayloadSelect, PlatformImportGraphJsonPayload, + PlatformImportGraphJsonPayloadSelect, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; -export type { PlatformImportGraphJsonVariables } from '../../orm/mutation'; +import type { PlatformImportGraphJsonVariables } from '../../orm/mutation'; +import type { HookStrictSelect, InferSelectResult, StrictSelect } from '../../orm/select-types'; +import { getClient } from '../client'; +import { customMutationKeys } from '../mutation-keys'; +import { buildSelectionArgs } from '../selection'; export type { PlatformImportGraphJsonPayloadSelect } from '../../orm/input-types'; +export type { PlatformImportGraphJsonVariables } from '../../orm/mutation'; export function usePlatformImportGraphJsonMutation( params: { selection: { diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/usePlatformSaveGraphMutation.ts b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/usePlatformSaveGraphMutation.ts index dd522876c..d762a9f1e 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/usePlatformSaveGraphMutation.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/usePlatformSaveGraphMutation.ts @@ -4,20 +4,20 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { customMutationKeys } from '../mutation-keys'; -import type { PlatformSaveGraphVariables } from '../../orm/mutation'; +import { useMutation } from '@tanstack/react-query'; + import type { - PlatformSaveGraphPayloadSelect, PlatformSaveGraphPayload, + PlatformSaveGraphPayloadSelect, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; -export type { PlatformSaveGraphVariables } from '../../orm/mutation'; +import type { PlatformSaveGraphVariables } from '../../orm/mutation'; +import type { HookStrictSelect, InferSelectResult, StrictSelect } from '../../orm/select-types'; +import { getClient } from '../client'; +import { customMutationKeys } from '../mutation-keys'; +import { buildSelectionArgs } from '../selection'; export type { PlatformSaveGraphPayloadSelect } from '../../orm/input-types'; +export type { PlatformSaveGraphVariables } from '../../orm/mutation'; export function usePlatformSaveGraphMutation( params: { selection: { diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/usePlatformStartExecutionMutation.ts b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/usePlatformStartExecutionMutation.ts index 9ebcd0946..3d4278420 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/usePlatformStartExecutionMutation.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/usePlatformStartExecutionMutation.ts @@ -4,20 +4,20 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { customMutationKeys } from '../mutation-keys'; -import type { PlatformStartExecutionVariables } from '../../orm/mutation'; +import { useMutation } from '@tanstack/react-query'; + import type { - PlatformStartExecutionPayloadSelect, PlatformStartExecutionPayload, + PlatformStartExecutionPayloadSelect, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; -export type { PlatformStartExecutionVariables } from '../../orm/mutation'; +import type { PlatformStartExecutionVariables } from '../../orm/mutation'; +import type { HookStrictSelect, InferSelectResult, StrictSelect } from '../../orm/select-types'; +import { getClient } from '../client'; +import { customMutationKeys } from '../mutation-keys'; +import { buildSelectionArgs } from '../selection'; export type { PlatformStartExecutionPayloadSelect } from '../../orm/input-types'; +export type { PlatformStartExecutionVariables } from '../../orm/mutation'; export function usePlatformStartExecutionMutation( params: { selection: { diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/usePlatformValidateFunctionGraphMutation.ts b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/usePlatformValidateFunctionGraphMutation.ts index 92d22f377..3926e676f 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/usePlatformValidateFunctionGraphMutation.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/usePlatformValidateFunctionGraphMutation.ts @@ -4,20 +4,20 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { customMutationKeys } from '../mutation-keys'; -import type { PlatformValidateFunctionGraphVariables } from '../../orm/mutation'; +import { useMutation } from '@tanstack/react-query'; + import type { - PlatformValidateFunctionGraphPayloadSelect, PlatformValidateFunctionGraphPayload, + PlatformValidateFunctionGraphPayloadSelect, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; -export type { PlatformValidateFunctionGraphVariables } from '../../orm/mutation'; +import type { PlatformValidateFunctionGraphVariables } from '../../orm/mutation'; +import type { HookStrictSelect, InferSelectResult, StrictSelect } from '../../orm/select-types'; +import { getClient } from '../client'; +import { customMutationKeys } from '../mutation-keys'; +import { buildSelectionArgs } from '../selection'; export type { PlatformValidateFunctionGraphPayloadSelect } from '../../orm/input-types'; +export type { PlatformValidateFunctionGraphVariables } from '../../orm/mutation'; export function usePlatformValidateFunctionGraphMutation< S extends PlatformValidateFunctionGraphPayloadSelect, >( diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useProvisionBucketMutation.ts b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useProvisionBucketMutation.ts index 2613680e6..140fef986 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useProvisionBucketMutation.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useProvisionBucketMutation.ts @@ -4,17 +4,17 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { useMutation } from '@tanstack/react-query'; + +import type { ProvisionBucketPayload,ProvisionBucketPayloadSelect } from '../../orm/input-types'; +import type { ProvisionBucketVariables } from '../../orm/mutation'; +import type { HookStrictSelect, InferSelectResult, StrictSelect } from '../../orm/select-types'; import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; import { customMutationKeys } from '../mutation-keys'; -import type { ProvisionBucketVariables } from '../../orm/mutation'; -import type { ProvisionBucketPayloadSelect, ProvisionBucketPayload } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; -export type { ProvisionBucketVariables } from '../../orm/mutation'; +import { buildSelectionArgs } from '../selection'; export type { ProvisionBucketPayloadSelect } from '../../orm/input-types'; +export type { ProvisionBucketVariables } from '../../orm/mutation'; export function useProvisionBucketMutation( params: { selection: { diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useSetDataAtPathMutation.ts b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useSetDataAtPathMutation.ts index 63f39667a..03fd1da2d 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useSetDataAtPathMutation.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useSetDataAtPathMutation.ts @@ -4,17 +4,17 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { useMutation } from '@tanstack/react-query'; + +import type { SetDataAtPathPayload,SetDataAtPathPayloadSelect } from '../../orm/input-types'; +import type { SetDataAtPathVariables } from '../../orm/mutation'; +import type { HookStrictSelect, InferSelectResult, StrictSelect } from '../../orm/select-types'; import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; import { customMutationKeys } from '../mutation-keys'; -import type { SetDataAtPathVariables } from '../../orm/mutation'; -import type { SetDataAtPathPayloadSelect, SetDataAtPathPayload } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; -export type { SetDataAtPathVariables } from '../../orm/mutation'; +import { buildSelectionArgs } from '../selection'; export type { SetDataAtPathPayloadSelect } from '../../orm/input-types'; +export type { SetDataAtPathVariables } from '../../orm/mutation'; export function useSetDataAtPathMutation( params: { selection: { diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useUpdateOrgFunctionExecutionLogMutation.ts b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useUpdateOrgFunctionExecutionLogMutation.ts index a4efcd6ad..76ca21233 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useUpdateOrgFunctionExecutionLogMutation.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useUpdateOrgFunctionExecutionLogMutation.ts @@ -4,23 +4,24 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgFunctionExecutionLogKeys } from '../query-keys'; -import { orgFunctionExecutionLogMutationKeys } from '../mutation-keys'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; + import type { + OrgFunctionExecutionLogPatch, OrgFunctionExecutionLogSelect, OrgFunctionExecutionLogWithRelations, - OrgFunctionExecutionLogPatch, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; +import { getClient } from '../client'; +import { orgFunctionExecutionLogMutationKeys } from '../mutation-keys'; +import { orgFunctionExecutionLogKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { + OrgFunctionExecutionLogPatch, OrgFunctionExecutionLogSelect, OrgFunctionExecutionLogWithRelations, - OrgFunctionExecutionLogPatch, } from '../../orm/input-types'; /** * Function execution logs — structured console output per invocation diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useUpdateOrgFunctionInvocationMutation.ts b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useUpdateOrgFunctionInvocationMutation.ts index 2a1bd3ff2..f2824f8a3 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useUpdateOrgFunctionInvocationMutation.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useUpdateOrgFunctionInvocationMutation.ts @@ -4,23 +4,24 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgFunctionInvocationKeys } from '../query-keys'; -import { orgFunctionInvocationMutationKeys } from '../mutation-keys'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; + import type { + OrgFunctionInvocationPatch, OrgFunctionInvocationSelect, OrgFunctionInvocationWithRelations, - OrgFunctionInvocationPatch, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; +import { getClient } from '../client'; +import { orgFunctionInvocationMutationKeys } from '../mutation-keys'; +import { orgFunctionInvocationKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { + OrgFunctionInvocationPatch, OrgFunctionInvocationSelect, OrgFunctionInvocationWithRelations, - OrgFunctionInvocationPatch, } from '../../orm/input-types'; /** * Function invocation log — INSERT to call a function (business-layer, metered). Linked to definitions by task_identifier string. diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useUpdatePlatformComputeLogMutation.ts b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useUpdatePlatformComputeLogMutation.ts index 9b7b18c58..76f3bb3c2 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useUpdatePlatformComputeLogMutation.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useUpdatePlatformComputeLogMutation.ts @@ -4,23 +4,24 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformComputeLogKeys } from '../query-keys'; -import { platformComputeLogMutationKeys } from '../mutation-keys'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; + import type { + PlatformComputeLogPatch, PlatformComputeLogSelect, PlatformComputeLogWithRelations, - PlatformComputeLogPatch, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformComputeLogMutationKeys } from '../mutation-keys'; +import { platformComputeLogKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { + PlatformComputeLogPatch, PlatformComputeLogSelect, PlatformComputeLogWithRelations, - PlatformComputeLogPatch, } from '../../orm/input-types'; /** * Mutation hook for updating a PlatformComputeLog diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useUpdatePlatformFunctionDefinitionMutation.ts b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useUpdatePlatformFunctionDefinitionMutation.ts index 6d56a3b1b..88be176aa 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useUpdatePlatformFunctionDefinitionMutation.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useUpdatePlatformFunctionDefinitionMutation.ts @@ -4,23 +4,24 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformFunctionDefinitionKeys } from '../query-keys'; -import { platformFunctionDefinitionMutationKeys } from '../mutation-keys'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; + import type { + PlatformFunctionDefinitionPatch, PlatformFunctionDefinitionSelect, PlatformFunctionDefinitionWithRelations, - PlatformFunctionDefinitionPatch, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformFunctionDefinitionMutationKeys } from '../mutation-keys'; +import { platformFunctionDefinitionKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { + PlatformFunctionDefinitionPatch, PlatformFunctionDefinitionSelect, PlatformFunctionDefinitionWithRelations, - PlatformFunctionDefinitionPatch, } from '../../orm/input-types'; /** * Function definitions — registered cloud functions with routing, queue, and retry configuration diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useUpdatePlatformFunctionExecutionLogMutation.ts b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useUpdatePlatformFunctionExecutionLogMutation.ts index 0e89a8804..787aef4bf 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useUpdatePlatformFunctionExecutionLogMutation.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useUpdatePlatformFunctionExecutionLogMutation.ts @@ -4,23 +4,24 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformFunctionExecutionLogKeys } from '../query-keys'; -import { platformFunctionExecutionLogMutationKeys } from '../mutation-keys'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; + import type { + PlatformFunctionExecutionLogPatch, PlatformFunctionExecutionLogSelect, PlatformFunctionExecutionLogWithRelations, - PlatformFunctionExecutionLogPatch, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformFunctionExecutionLogMutationKeys } from '../mutation-keys'; +import { platformFunctionExecutionLogKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { + PlatformFunctionExecutionLogPatch, PlatformFunctionExecutionLogSelect, PlatformFunctionExecutionLogWithRelations, - PlatformFunctionExecutionLogPatch, } from '../../orm/input-types'; /** * Function execution logs — structured console output per invocation diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useUpdatePlatformFunctionGraphCommitMutation.ts b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useUpdatePlatformFunctionGraphCommitMutation.ts index 7f77b0ff1..094084392 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useUpdatePlatformFunctionGraphCommitMutation.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useUpdatePlatformFunctionGraphCommitMutation.ts @@ -4,23 +4,24 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformFunctionGraphCommitKeys } from '../query-keys'; -import { platformFunctionGraphCommitMutationKeys } from '../mutation-keys'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; + import type { + PlatformFunctionGraphCommitPatch, PlatformFunctionGraphCommitSelect, PlatformFunctionGraphCommitWithRelations, - PlatformFunctionGraphCommitPatch, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformFunctionGraphCommitMutationKeys } from '../mutation-keys'; +import { platformFunctionGraphCommitKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { + PlatformFunctionGraphCommitPatch, PlatformFunctionGraphCommitSelect, PlatformFunctionGraphCommitWithRelations, - PlatformFunctionGraphCommitPatch, } from '../../orm/input-types'; /** * Commit history — each commit snapshots a tree root for a store diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useUpdatePlatformFunctionGraphExecutionMutation.ts b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useUpdatePlatformFunctionGraphExecutionMutation.ts index 501376d2b..923b3942a 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useUpdatePlatformFunctionGraphExecutionMutation.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useUpdatePlatformFunctionGraphExecutionMutation.ts @@ -4,23 +4,24 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformFunctionGraphExecutionKeys } from '../query-keys'; -import { platformFunctionGraphExecutionMutationKeys } from '../mutation-keys'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; + import type { + PlatformFunctionGraphExecutionPatch, PlatformFunctionGraphExecutionSelect, PlatformFunctionGraphExecutionWithRelations, - PlatformFunctionGraphExecutionPatch, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformFunctionGraphExecutionMutationKeys } from '../mutation-keys'; +import { platformFunctionGraphExecutionKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { + PlatformFunctionGraphExecutionPatch, PlatformFunctionGraphExecutionSelect, PlatformFunctionGraphExecutionWithRelations, - PlatformFunctionGraphExecutionPatch, } from '../../orm/input-types'; /** * Ephemeral execution state for flow graph evaluation diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useUpdatePlatformFunctionGraphExecutionNodeStateMutation.ts b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useUpdatePlatformFunctionGraphExecutionNodeStateMutation.ts index 1b241bc01..cdf2960b6 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useUpdatePlatformFunctionGraphExecutionNodeStateMutation.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useUpdatePlatformFunctionGraphExecutionNodeStateMutation.ts @@ -4,23 +4,24 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformFunctionGraphExecutionNodeStateKeys } from '../query-keys'; -import { platformFunctionGraphExecutionNodeStateMutationKeys } from '../mutation-keys'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; + import type { + PlatformFunctionGraphExecutionNodeStatePatch, PlatformFunctionGraphExecutionNodeStateSelect, PlatformFunctionGraphExecutionNodeStateWithRelations, - PlatformFunctionGraphExecutionNodeStatePatch, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformFunctionGraphExecutionNodeStateMutationKeys } from '../mutation-keys'; +import { platformFunctionGraphExecutionNodeStateKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { + PlatformFunctionGraphExecutionNodeStatePatch, PlatformFunctionGraphExecutionNodeStateSelect, PlatformFunctionGraphExecutionNodeStateWithRelations, - PlatformFunctionGraphExecutionNodeStatePatch, } from '../../orm/input-types'; /** * Per-node execution state — tracks individual node lifecycle for debugging diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useUpdatePlatformFunctionGraphExecutionOutputMutation.ts b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useUpdatePlatformFunctionGraphExecutionOutputMutation.ts index 5540f7ecd..b8a312d65 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useUpdatePlatformFunctionGraphExecutionOutputMutation.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useUpdatePlatformFunctionGraphExecutionOutputMutation.ts @@ -4,23 +4,24 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformFunctionGraphExecutionOutputKeys } from '../query-keys'; -import { platformFunctionGraphExecutionOutputMutationKeys } from '../mutation-keys'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; + import type { + PlatformFunctionGraphExecutionOutputPatch, PlatformFunctionGraphExecutionOutputSelect, PlatformFunctionGraphExecutionOutputWithRelations, - PlatformFunctionGraphExecutionOutputPatch, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformFunctionGraphExecutionOutputMutationKeys } from '../mutation-keys'; +import { platformFunctionGraphExecutionOutputKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { + PlatformFunctionGraphExecutionOutputPatch, PlatformFunctionGraphExecutionOutputSelect, PlatformFunctionGraphExecutionOutputWithRelations, - PlatformFunctionGraphExecutionOutputPatch, } from '../../orm/input-types'; /** * Content-addressed store for execution outputs — hash-referenced from node_outputs diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useUpdatePlatformFunctionGraphMutation.ts b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useUpdatePlatformFunctionGraphMutation.ts index 243a49de6..daeb15389 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useUpdatePlatformFunctionGraphMutation.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useUpdatePlatformFunctionGraphMutation.ts @@ -4,23 +4,24 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformFunctionGraphKeys } from '../query-keys'; -import { platformFunctionGraphMutationKeys } from '../mutation-keys'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; + import type { + PlatformFunctionGraphPatch, PlatformFunctionGraphSelect, PlatformFunctionGraphWithRelations, - PlatformFunctionGraphPatch, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformFunctionGraphMutationKeys } from '../mutation-keys'; +import { platformFunctionGraphKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { + PlatformFunctionGraphPatch, PlatformFunctionGraphSelect, PlatformFunctionGraphWithRelations, - PlatformFunctionGraphPatch, } from '../../orm/input-types'; /** * Flow graph definitions — FBP graphs stored in the dedicated graph Merkle store diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useUpdatePlatformFunctionGraphObjectMutation.ts b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useUpdatePlatformFunctionGraphObjectMutation.ts index bcb3552af..b929c9414 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useUpdatePlatformFunctionGraphObjectMutation.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useUpdatePlatformFunctionGraphObjectMutation.ts @@ -4,23 +4,24 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformFunctionGraphObjectKeys } from '../query-keys'; -import { platformFunctionGraphObjectMutationKeys } from '../mutation-keys'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; + import type { + PlatformFunctionGraphObjectPatch, PlatformFunctionGraphObjectSelect, PlatformFunctionGraphObjectWithRelations, - PlatformFunctionGraphObjectPatch, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformFunctionGraphObjectMutationKeys } from '../mutation-keys'; +import { platformFunctionGraphObjectKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { + PlatformFunctionGraphObjectPatch, PlatformFunctionGraphObjectSelect, PlatformFunctionGraphObjectWithRelations, - PlatformFunctionGraphObjectPatch, } from '../../orm/input-types'; /** * Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useUpdatePlatformFunctionGraphRefMutation.ts b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useUpdatePlatformFunctionGraphRefMutation.ts index 6e6283f4d..8fe9b4de9 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useUpdatePlatformFunctionGraphRefMutation.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useUpdatePlatformFunctionGraphRefMutation.ts @@ -4,23 +4,24 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformFunctionGraphRefKeys } from '../query-keys'; -import { platformFunctionGraphRefMutationKeys } from '../mutation-keys'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; + import type { + PlatformFunctionGraphRefPatch, PlatformFunctionGraphRefSelect, PlatformFunctionGraphRefWithRelations, - PlatformFunctionGraphRefPatch, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformFunctionGraphRefMutationKeys } from '../mutation-keys'; +import { platformFunctionGraphRefKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { + PlatformFunctionGraphRefPatch, PlatformFunctionGraphRefSelect, PlatformFunctionGraphRefWithRelations, - PlatformFunctionGraphRefPatch, } from '../../orm/input-types'; /** * Branch heads — mutable pointers into the commit chain diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useUpdatePlatformFunctionGraphStoreMutation.ts b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useUpdatePlatformFunctionGraphStoreMutation.ts index 1fa1c4fe7..d670ae37a 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useUpdatePlatformFunctionGraphStoreMutation.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useUpdatePlatformFunctionGraphStoreMutation.ts @@ -4,23 +4,24 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformFunctionGraphStoreKeys } from '../query-keys'; -import { platformFunctionGraphStoreMutationKeys } from '../mutation-keys'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; + import type { + PlatformFunctionGraphStorePatch, PlatformFunctionGraphStoreSelect, PlatformFunctionGraphStoreWithRelations, - PlatformFunctionGraphStorePatch, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformFunctionGraphStoreMutationKeys } from '../mutation-keys'; +import { platformFunctionGraphStoreKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { + PlatformFunctionGraphStorePatch, PlatformFunctionGraphStoreSelect, PlatformFunctionGraphStoreWithRelations, - PlatformFunctionGraphStorePatch, } from '../../orm/input-types'; /** * Named stores — one per version-controlled tree (e.g. one graph, one definition set) diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useUpdatePlatformFunctionInvocationMutation.ts b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useUpdatePlatformFunctionInvocationMutation.ts index 690afb10e..36e536f03 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useUpdatePlatformFunctionInvocationMutation.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useUpdatePlatformFunctionInvocationMutation.ts @@ -4,23 +4,24 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformFunctionInvocationKeys } from '../query-keys'; -import { platformFunctionInvocationMutationKeys } from '../mutation-keys'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; + import type { + PlatformFunctionInvocationPatch, PlatformFunctionInvocationSelect, PlatformFunctionInvocationWithRelations, - PlatformFunctionInvocationPatch, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformFunctionInvocationMutationKeys } from '../mutation-keys'; +import { platformFunctionInvocationKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { + PlatformFunctionInvocationPatch, PlatformFunctionInvocationSelect, PlatformFunctionInvocationWithRelations, - PlatformFunctionInvocationPatch, } from '../../orm/input-types'; /** * Function invocation log — INSERT to call a function (business-layer, metered). Linked to definitions by task_identifier string. diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useUpdatePlatformSecretDefinitionMutation.ts b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useUpdatePlatformSecretDefinitionMutation.ts index ec998f2f9..77ab373bd 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useUpdatePlatformSecretDefinitionMutation.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useUpdatePlatformSecretDefinitionMutation.ts @@ -4,23 +4,24 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformSecretDefinitionKeys } from '../query-keys'; -import { platformSecretDefinitionMutationKeys } from '../mutation-keys'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; + import type { + PlatformSecretDefinitionPatch, PlatformSecretDefinitionSelect, PlatformSecretDefinitionWithRelations, - PlatformSecretDefinitionPatch, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformSecretDefinitionMutationKeys } from '../mutation-keys'; +import { platformSecretDefinitionKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { + PlatformSecretDefinitionPatch, PlatformSecretDefinitionSelect, PlatformSecretDefinitionWithRelations, - PlatformSecretDefinitionPatch, } from '../../orm/input-types'; /** * Global secret name registry — declares which secrets the platform recognizes. Actual values live in app_secrets. diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useUpdatePlatformUsageDailyMutation.ts b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useUpdatePlatformUsageDailyMutation.ts index 2ba5839a2..e00323904 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useUpdatePlatformUsageDailyMutation.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/mutations/useUpdatePlatformUsageDailyMutation.ts @@ -4,23 +4,24 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformUsageDailyKeys } from '../query-keys'; -import { platformUsageDailyMutationKeys } from '../mutation-keys'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; + import type { + PlatformUsageDailyPatch, PlatformUsageDailySelect, PlatformUsageDailyWithRelations, - PlatformUsageDailyPatch, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformUsageDailyMutationKeys } from '../mutation-keys'; +import { platformUsageDailyKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { + PlatformUsageDailyPatch, PlatformUsageDailySelect, PlatformUsageDailyWithRelations, - PlatformUsageDailyPatch, } from '../../orm/input-types'; /** * Mutation hook for updating a PlatformUsageDaily diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/queries/index.ts b/sdk/constructive-functions-hooks/src/compute/hooks/queries/index.ts index 8c435a729..12a2d5d0a 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/queries/index.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/queries/index.ts @@ -4,36 +4,36 @@ * DO NOT EDIT - changes will be overwritten */ export * from './useGetAllQuery'; -export * from './usePlatformFunctionGraphRefsQuery'; -export * from './usePlatformFunctionGraphRefQuery'; -export * from './usePlatformFunctionGraphStoresQuery'; -export * from './usePlatformFunctionGraphStoreQuery'; -export * from './usePlatformFunctionGraphObjectsQuery'; -export * from './usePlatformFunctionGraphObjectQuery'; -export * from './useOrgFunctionExecutionLogsQuery'; export * from './useOrgFunctionExecutionLogQuery'; -export * from './usePlatformFunctionGraphExecutionOutputsQuery'; -export * from './usePlatformFunctionGraphExecutionOutputQuery'; -export * from './usePlatformFunctionGraphCommitsQuery'; -export * from './usePlatformFunctionGraphCommitQuery'; -export * from './usePlatformSecretDefinitionsQuery'; -export * from './usePlatformSecretDefinitionQuery'; -export * from './usePlatformFunctionExecutionLogsQuery'; +export * from './useOrgFunctionExecutionLogsQuery'; +export * from './useOrgFunctionInvocationQuery'; +export * from './useOrgFunctionInvocationsQuery'; +export * from './usePlatformComputeLogQuery'; +export * from './usePlatformComputeLogsQuery'; +export * from './usePlatformFunctionDefinitionQuery'; +export * from './usePlatformFunctionDefinitionsQuery'; export * from './usePlatformFunctionExecutionLogQuery'; -export * from './usePlatformFunctionGraphExecutionNodeStatesQuery'; +export * from './usePlatformFunctionExecutionLogsQuery'; +export * from './usePlatformFunctionGraphCommitQuery'; +export * from './usePlatformFunctionGraphCommitsQuery'; export * from './usePlatformFunctionGraphExecutionNodeStateQuery'; -export * from './usePlatformFunctionGraphsQuery'; +export * from './usePlatformFunctionGraphExecutionNodeStatesQuery'; +export * from './usePlatformFunctionGraphExecutionOutputQuery'; +export * from './usePlatformFunctionGraphExecutionOutputsQuery'; +export * from './usePlatformFunctionGraphExecutionQuery'; +export * from './usePlatformFunctionGraphExecutionsQuery'; +export * from './usePlatformFunctionGraphObjectQuery'; +export * from './usePlatformFunctionGraphObjectsQuery'; export * from './usePlatformFunctionGraphQuery'; -export * from './usePlatformComputeLogsQuery'; -export * from './usePlatformComputeLogQuery'; -export * from './usePlatformUsageDailiesQuery'; -export * from './usePlatformUsageDailyQuery'; -export * from './useOrgFunctionInvocationsQuery'; -export * from './useOrgFunctionInvocationQuery'; -export * from './usePlatformFunctionInvocationsQuery'; +export * from './usePlatformFunctionGraphRefQuery'; +export * from './usePlatformFunctionGraphRefsQuery'; +export * from './usePlatformFunctionGraphsQuery'; +export * from './usePlatformFunctionGraphStoreQuery'; +export * from './usePlatformFunctionGraphStoresQuery'; export * from './usePlatformFunctionInvocationQuery'; -export * from './usePlatformFunctionGraphExecutionsQuery'; -export * from './usePlatformFunctionGraphExecutionQuery'; -export * from './usePlatformFunctionDefinitionsQuery'; -export * from './usePlatformFunctionDefinitionQuery'; +export * from './usePlatformFunctionInvocationsQuery'; export * from './usePlatformReadFunctionGraphQuery'; +export * from './usePlatformSecretDefinitionQuery'; +export * from './usePlatformSecretDefinitionsQuery'; +export * from './usePlatformUsageDailiesQuery'; +export * from './usePlatformUsageDailyQuery'; diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/queries/useGetAllQuery.ts b/sdk/constructive-functions-hooks/src/compute/hooks/queries/useGetAllQuery.ts index fa74ed4aa..0ccd70a03 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/queries/useGetAllQuery.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/queries/useGetAllQuery.ts @@ -4,29 +4,29 @@ * DO NOT EDIT - changes will be overwritten */ +import type { QueryClient,UseQueryOptions, UseQueryResult } from '@tanstack/react-query'; import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { getAllRecordKeys } from '../query-keys'; + import type { - GetAllRecordSelect, - GetAllRecordWithRelations, GetAllRecordFilter, + GetAllRecordSelect, GetAllRecordsOrderBy, + GetAllRecordWithRelations, } from '../../orm/input-types'; import type { - FindManyArgs, - InferSelectResult, ConnectionResult, HookStrictSelect, + InferSelectResult, } from '../../orm/select-types'; +import { getClient } from '../client'; +import { getAllRecordKeys } from '../query-keys'; +import type { ListSelectionConfig } from '../selection'; +import { buildListSelectionArgs } from '../selection'; export type { - GetAllRecordSelect, - GetAllRecordWithRelations, GetAllRecordFilter, + GetAllRecordSelect, GetAllRecordsOrderBy, + GetAllRecordWithRelations, } from '../../orm/input-types'; /** Query key factory - re-exported from query-keys.ts */ export const getAllQueryKey = getAllRecordKeys.list; diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/queries/useOrgFunctionExecutionLogQuery.ts b/sdk/constructive-functions-hooks/src/compute/hooks/queries/useOrgFunctionExecutionLogQuery.ts index 9cd794f92..18968e95f 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/queries/useOrgFunctionExecutionLogQuery.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/queries/useOrgFunctionExecutionLogQuery.ts @@ -4,17 +4,18 @@ * DO NOT EDIT - changes will be overwritten */ +import type { QueryClient,UseQueryOptions, UseQueryResult } from '@tanstack/react-query'; import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgFunctionExecutionLogKeys } from '../query-keys'; + import type { OrgFunctionExecutionLogSelect, OrgFunctionExecutionLogWithRelations, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; +import { getClient } from '../client'; +import { orgFunctionExecutionLogKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { OrgFunctionExecutionLogSelect, OrgFunctionExecutionLogWithRelations, diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/queries/useOrgFunctionExecutionLogsQuery.ts b/sdk/constructive-functions-hooks/src/compute/hooks/queries/useOrgFunctionExecutionLogsQuery.ts index d2fafbc29..5b4699080 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/queries/useOrgFunctionExecutionLogsQuery.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/queries/useOrgFunctionExecutionLogsQuery.ts @@ -4,29 +4,29 @@ * DO NOT EDIT - changes will be overwritten */ +import type { QueryClient,UseQueryOptions, UseQueryResult } from '@tanstack/react-query'; import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { orgFunctionExecutionLogKeys } from '../query-keys'; + import type { - OrgFunctionExecutionLogSelect, - OrgFunctionExecutionLogWithRelations, OrgFunctionExecutionLogFilter, OrgFunctionExecutionLogOrderBy, + OrgFunctionExecutionLogSelect, + OrgFunctionExecutionLogWithRelations, } from '../../orm/input-types'; import type { - FindManyArgs, - InferSelectResult, ConnectionResult, HookStrictSelect, + InferSelectResult, } from '../../orm/select-types'; +import { getClient } from '../client'; +import { orgFunctionExecutionLogKeys } from '../query-keys'; +import type { ListSelectionConfig } from '../selection'; +import { buildListSelectionArgs } from '../selection'; export type { - OrgFunctionExecutionLogSelect, - OrgFunctionExecutionLogWithRelations, OrgFunctionExecutionLogFilter, OrgFunctionExecutionLogOrderBy, + OrgFunctionExecutionLogSelect, + OrgFunctionExecutionLogWithRelations, } from '../../orm/input-types'; /** Query key factory - re-exported from query-keys.ts */ export const orgFunctionExecutionLogsQueryKey = orgFunctionExecutionLogKeys.list; diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/queries/useOrgFunctionInvocationQuery.ts b/sdk/constructive-functions-hooks/src/compute/hooks/queries/useOrgFunctionInvocationQuery.ts index 1268c6f36..8fc4c042d 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/queries/useOrgFunctionInvocationQuery.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/queries/useOrgFunctionInvocationQuery.ts @@ -4,17 +4,18 @@ * DO NOT EDIT - changes will be overwritten */ +import type { QueryClient,UseQueryOptions, UseQueryResult } from '@tanstack/react-query'; import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { orgFunctionInvocationKeys } from '../query-keys'; + import type { OrgFunctionInvocationSelect, OrgFunctionInvocationWithRelations, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; +import { getClient } from '../client'; +import { orgFunctionInvocationKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { OrgFunctionInvocationSelect, OrgFunctionInvocationWithRelations, diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/queries/useOrgFunctionInvocationsQuery.ts b/sdk/constructive-functions-hooks/src/compute/hooks/queries/useOrgFunctionInvocationsQuery.ts index 66c2a9314..3a20c5ac7 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/queries/useOrgFunctionInvocationsQuery.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/queries/useOrgFunctionInvocationsQuery.ts @@ -4,29 +4,29 @@ * DO NOT EDIT - changes will be overwritten */ +import type { QueryClient,UseQueryOptions, UseQueryResult } from '@tanstack/react-query'; import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { orgFunctionInvocationKeys } from '../query-keys'; + import type { - OrgFunctionInvocationSelect, - OrgFunctionInvocationWithRelations, OrgFunctionInvocationFilter, OrgFunctionInvocationOrderBy, + OrgFunctionInvocationSelect, + OrgFunctionInvocationWithRelations, } from '../../orm/input-types'; import type { - FindManyArgs, - InferSelectResult, ConnectionResult, HookStrictSelect, + InferSelectResult, } from '../../orm/select-types'; +import { getClient } from '../client'; +import { orgFunctionInvocationKeys } from '../query-keys'; +import type { ListSelectionConfig } from '../selection'; +import { buildListSelectionArgs } from '../selection'; export type { - OrgFunctionInvocationSelect, - OrgFunctionInvocationWithRelations, OrgFunctionInvocationFilter, OrgFunctionInvocationOrderBy, + OrgFunctionInvocationSelect, + OrgFunctionInvocationWithRelations, } from '../../orm/input-types'; /** Query key factory - re-exported from query-keys.ts */ export const orgFunctionInvocationsQueryKey = orgFunctionInvocationKeys.list; diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformComputeLogQuery.ts b/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformComputeLogQuery.ts index 7d74f33a3..c728c47f7 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformComputeLogQuery.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformComputeLogQuery.ts @@ -4,17 +4,18 @@ * DO NOT EDIT - changes will be overwritten */ +import type { QueryClient,UseQueryOptions, UseQueryResult } from '@tanstack/react-query'; import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformComputeLogKeys } from '../query-keys'; + import type { PlatformComputeLogSelect, PlatformComputeLogWithRelations, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformComputeLogKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { PlatformComputeLogSelect, PlatformComputeLogWithRelations, diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformComputeLogsQuery.ts b/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformComputeLogsQuery.ts index 75e948d83..e031c59de 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformComputeLogsQuery.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformComputeLogsQuery.ts @@ -4,29 +4,29 @@ * DO NOT EDIT - changes will be overwritten */ +import type { QueryClient,UseQueryOptions, UseQueryResult } from '@tanstack/react-query'; import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { platformComputeLogKeys } from '../query-keys'; + import type { - PlatformComputeLogSelect, - PlatformComputeLogWithRelations, PlatformComputeLogFilter, PlatformComputeLogOrderBy, + PlatformComputeLogSelect, + PlatformComputeLogWithRelations, } from '../../orm/input-types'; import type { - FindManyArgs, - InferSelectResult, ConnectionResult, HookStrictSelect, + InferSelectResult, } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformComputeLogKeys } from '../query-keys'; +import type { ListSelectionConfig } from '../selection'; +import { buildListSelectionArgs } from '../selection'; export type { - PlatformComputeLogSelect, - PlatformComputeLogWithRelations, PlatformComputeLogFilter, PlatformComputeLogOrderBy, + PlatformComputeLogSelect, + PlatformComputeLogWithRelations, } from '../../orm/input-types'; /** Query key factory - re-exported from query-keys.ts */ export const platformComputeLogsQueryKey = platformComputeLogKeys.list; diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformFunctionDefinitionQuery.ts b/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformFunctionDefinitionQuery.ts index 0837645bb..0e706d85f 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformFunctionDefinitionQuery.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformFunctionDefinitionQuery.ts @@ -4,17 +4,18 @@ * DO NOT EDIT - changes will be overwritten */ +import type { QueryClient,UseQueryOptions, UseQueryResult } from '@tanstack/react-query'; import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformFunctionDefinitionKeys } from '../query-keys'; + import type { PlatformFunctionDefinitionSelect, PlatformFunctionDefinitionWithRelations, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformFunctionDefinitionKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { PlatformFunctionDefinitionSelect, PlatformFunctionDefinitionWithRelations, diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformFunctionDefinitionsQuery.ts b/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformFunctionDefinitionsQuery.ts index 0861333a0..f02becb00 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformFunctionDefinitionsQuery.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformFunctionDefinitionsQuery.ts @@ -4,29 +4,29 @@ * DO NOT EDIT - changes will be overwritten */ +import type { QueryClient,UseQueryOptions, UseQueryResult } from '@tanstack/react-query'; import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { platformFunctionDefinitionKeys } from '../query-keys'; + import type { - PlatformFunctionDefinitionSelect, - PlatformFunctionDefinitionWithRelations, PlatformFunctionDefinitionFilter, PlatformFunctionDefinitionOrderBy, + PlatformFunctionDefinitionSelect, + PlatformFunctionDefinitionWithRelations, } from '../../orm/input-types'; import type { - FindManyArgs, - InferSelectResult, ConnectionResult, HookStrictSelect, + InferSelectResult, } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformFunctionDefinitionKeys } from '../query-keys'; +import type { ListSelectionConfig } from '../selection'; +import { buildListSelectionArgs } from '../selection'; export type { - PlatformFunctionDefinitionSelect, - PlatformFunctionDefinitionWithRelations, PlatformFunctionDefinitionFilter, PlatformFunctionDefinitionOrderBy, + PlatformFunctionDefinitionSelect, + PlatformFunctionDefinitionWithRelations, } from '../../orm/input-types'; /** Query key factory - re-exported from query-keys.ts */ export const platformFunctionDefinitionsQueryKey = platformFunctionDefinitionKeys.list; diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformFunctionExecutionLogQuery.ts b/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformFunctionExecutionLogQuery.ts index 728063f3e..eb1541f92 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformFunctionExecutionLogQuery.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformFunctionExecutionLogQuery.ts @@ -4,17 +4,18 @@ * DO NOT EDIT - changes will be overwritten */ +import type { QueryClient,UseQueryOptions, UseQueryResult } from '@tanstack/react-query'; import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformFunctionExecutionLogKeys } from '../query-keys'; + import type { PlatformFunctionExecutionLogSelect, PlatformFunctionExecutionLogWithRelations, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformFunctionExecutionLogKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { PlatformFunctionExecutionLogSelect, PlatformFunctionExecutionLogWithRelations, diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformFunctionExecutionLogsQuery.ts b/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformFunctionExecutionLogsQuery.ts index 4f8fa917e..60dd55b9b 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformFunctionExecutionLogsQuery.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformFunctionExecutionLogsQuery.ts @@ -4,29 +4,29 @@ * DO NOT EDIT - changes will be overwritten */ +import type { QueryClient,UseQueryOptions, UseQueryResult } from '@tanstack/react-query'; import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { platformFunctionExecutionLogKeys } from '../query-keys'; + import type { - PlatformFunctionExecutionLogSelect, - PlatformFunctionExecutionLogWithRelations, PlatformFunctionExecutionLogFilter, PlatformFunctionExecutionLogOrderBy, + PlatformFunctionExecutionLogSelect, + PlatformFunctionExecutionLogWithRelations, } from '../../orm/input-types'; import type { - FindManyArgs, - InferSelectResult, ConnectionResult, HookStrictSelect, + InferSelectResult, } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformFunctionExecutionLogKeys } from '../query-keys'; +import type { ListSelectionConfig } from '../selection'; +import { buildListSelectionArgs } from '../selection'; export type { - PlatformFunctionExecutionLogSelect, - PlatformFunctionExecutionLogWithRelations, PlatformFunctionExecutionLogFilter, PlatformFunctionExecutionLogOrderBy, + PlatformFunctionExecutionLogSelect, + PlatformFunctionExecutionLogWithRelations, } from '../../orm/input-types'; /** Query key factory - re-exported from query-keys.ts */ export const platformFunctionExecutionLogsQueryKey = platformFunctionExecutionLogKeys.list; diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformFunctionGraphCommitQuery.ts b/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformFunctionGraphCommitQuery.ts index d3a011bf3..36e04e15a 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformFunctionGraphCommitQuery.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformFunctionGraphCommitQuery.ts @@ -4,17 +4,18 @@ * DO NOT EDIT - changes will be overwritten */ +import type { QueryClient,UseQueryOptions, UseQueryResult } from '@tanstack/react-query'; import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformFunctionGraphCommitKeys } from '../query-keys'; + import type { PlatformFunctionGraphCommitSelect, PlatformFunctionGraphCommitWithRelations, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformFunctionGraphCommitKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { PlatformFunctionGraphCommitSelect, PlatformFunctionGraphCommitWithRelations, diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformFunctionGraphCommitsQuery.ts b/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformFunctionGraphCommitsQuery.ts index 6d5cea5ad..63abc3b8a 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformFunctionGraphCommitsQuery.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformFunctionGraphCommitsQuery.ts @@ -4,29 +4,29 @@ * DO NOT EDIT - changes will be overwritten */ +import type { QueryClient,UseQueryOptions, UseQueryResult } from '@tanstack/react-query'; import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { platformFunctionGraphCommitKeys } from '../query-keys'; + import type { - PlatformFunctionGraphCommitSelect, - PlatformFunctionGraphCommitWithRelations, PlatformFunctionGraphCommitFilter, PlatformFunctionGraphCommitOrderBy, + PlatformFunctionGraphCommitSelect, + PlatformFunctionGraphCommitWithRelations, } from '../../orm/input-types'; import type { - FindManyArgs, - InferSelectResult, ConnectionResult, HookStrictSelect, + InferSelectResult, } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformFunctionGraphCommitKeys } from '../query-keys'; +import type { ListSelectionConfig } from '../selection'; +import { buildListSelectionArgs } from '../selection'; export type { - PlatformFunctionGraphCommitSelect, - PlatformFunctionGraphCommitWithRelations, PlatformFunctionGraphCommitFilter, PlatformFunctionGraphCommitOrderBy, + PlatformFunctionGraphCommitSelect, + PlatformFunctionGraphCommitWithRelations, } from '../../orm/input-types'; /** Query key factory - re-exported from query-keys.ts */ export const platformFunctionGraphCommitsQueryKey = platformFunctionGraphCommitKeys.list; diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformFunctionGraphExecutionNodeStateQuery.ts b/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformFunctionGraphExecutionNodeStateQuery.ts index 497af0aa1..5cdd64ab5 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformFunctionGraphExecutionNodeStateQuery.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformFunctionGraphExecutionNodeStateQuery.ts @@ -4,17 +4,18 @@ * DO NOT EDIT - changes will be overwritten */ +import type { QueryClient,UseQueryOptions, UseQueryResult } from '@tanstack/react-query'; import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformFunctionGraphExecutionNodeStateKeys } from '../query-keys'; + import type { PlatformFunctionGraphExecutionNodeStateSelect, PlatformFunctionGraphExecutionNodeStateWithRelations, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformFunctionGraphExecutionNodeStateKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { PlatformFunctionGraphExecutionNodeStateSelect, PlatformFunctionGraphExecutionNodeStateWithRelations, diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformFunctionGraphExecutionNodeStatesQuery.ts b/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformFunctionGraphExecutionNodeStatesQuery.ts index 15aecdcce..d01ae9339 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformFunctionGraphExecutionNodeStatesQuery.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformFunctionGraphExecutionNodeStatesQuery.ts @@ -4,29 +4,29 @@ * DO NOT EDIT - changes will be overwritten */ +import type { QueryClient,UseQueryOptions, UseQueryResult } from '@tanstack/react-query'; import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { platformFunctionGraphExecutionNodeStateKeys } from '../query-keys'; + import type { - PlatformFunctionGraphExecutionNodeStateSelect, - PlatformFunctionGraphExecutionNodeStateWithRelations, PlatformFunctionGraphExecutionNodeStateFilter, PlatformFunctionGraphExecutionNodeStateOrderBy, + PlatformFunctionGraphExecutionNodeStateSelect, + PlatformFunctionGraphExecutionNodeStateWithRelations, } from '../../orm/input-types'; import type { - FindManyArgs, - InferSelectResult, ConnectionResult, HookStrictSelect, + InferSelectResult, } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformFunctionGraphExecutionNodeStateKeys } from '../query-keys'; +import type { ListSelectionConfig } from '../selection'; +import { buildListSelectionArgs } from '../selection'; export type { - PlatformFunctionGraphExecutionNodeStateSelect, - PlatformFunctionGraphExecutionNodeStateWithRelations, PlatformFunctionGraphExecutionNodeStateFilter, PlatformFunctionGraphExecutionNodeStateOrderBy, + PlatformFunctionGraphExecutionNodeStateSelect, + PlatformFunctionGraphExecutionNodeStateWithRelations, } from '../../orm/input-types'; /** Query key factory - re-exported from query-keys.ts */ export const platformFunctionGraphExecutionNodeStatesQueryKey = diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformFunctionGraphExecutionOutputQuery.ts b/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformFunctionGraphExecutionOutputQuery.ts index fe697762f..140e39656 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformFunctionGraphExecutionOutputQuery.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformFunctionGraphExecutionOutputQuery.ts @@ -4,17 +4,18 @@ * DO NOT EDIT - changes will be overwritten */ +import type { QueryClient,UseQueryOptions, UseQueryResult } from '@tanstack/react-query'; import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformFunctionGraphExecutionOutputKeys } from '../query-keys'; + import type { PlatformFunctionGraphExecutionOutputSelect, PlatformFunctionGraphExecutionOutputWithRelations, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformFunctionGraphExecutionOutputKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { PlatformFunctionGraphExecutionOutputSelect, PlatformFunctionGraphExecutionOutputWithRelations, diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformFunctionGraphExecutionOutputsQuery.ts b/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformFunctionGraphExecutionOutputsQuery.ts index 06b50118e..0f76b95d1 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformFunctionGraphExecutionOutputsQuery.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformFunctionGraphExecutionOutputsQuery.ts @@ -4,29 +4,29 @@ * DO NOT EDIT - changes will be overwritten */ +import type { QueryClient,UseQueryOptions, UseQueryResult } from '@tanstack/react-query'; import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { platformFunctionGraphExecutionOutputKeys } from '../query-keys'; + import type { - PlatformFunctionGraphExecutionOutputSelect, - PlatformFunctionGraphExecutionOutputWithRelations, PlatformFunctionGraphExecutionOutputFilter, PlatformFunctionGraphExecutionOutputOrderBy, + PlatformFunctionGraphExecutionOutputSelect, + PlatformFunctionGraphExecutionOutputWithRelations, } from '../../orm/input-types'; import type { - FindManyArgs, - InferSelectResult, ConnectionResult, HookStrictSelect, + InferSelectResult, } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformFunctionGraphExecutionOutputKeys } from '../query-keys'; +import type { ListSelectionConfig } from '../selection'; +import { buildListSelectionArgs } from '../selection'; export type { - PlatformFunctionGraphExecutionOutputSelect, - PlatformFunctionGraphExecutionOutputWithRelations, PlatformFunctionGraphExecutionOutputFilter, PlatformFunctionGraphExecutionOutputOrderBy, + PlatformFunctionGraphExecutionOutputSelect, + PlatformFunctionGraphExecutionOutputWithRelations, } from '../../orm/input-types'; /** Query key factory - re-exported from query-keys.ts */ export const platformFunctionGraphExecutionOutputsQueryKey = diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformFunctionGraphExecutionQuery.ts b/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformFunctionGraphExecutionQuery.ts index d559f3d30..457ffd702 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformFunctionGraphExecutionQuery.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformFunctionGraphExecutionQuery.ts @@ -4,17 +4,18 @@ * DO NOT EDIT - changes will be overwritten */ +import type { QueryClient,UseQueryOptions, UseQueryResult } from '@tanstack/react-query'; import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformFunctionGraphExecutionKeys } from '../query-keys'; + import type { PlatformFunctionGraphExecutionSelect, PlatformFunctionGraphExecutionWithRelations, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformFunctionGraphExecutionKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { PlatformFunctionGraphExecutionSelect, PlatformFunctionGraphExecutionWithRelations, diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformFunctionGraphExecutionsQuery.ts b/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformFunctionGraphExecutionsQuery.ts index 0222ee3be..32c5f156a 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformFunctionGraphExecutionsQuery.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformFunctionGraphExecutionsQuery.ts @@ -4,29 +4,29 @@ * DO NOT EDIT - changes will be overwritten */ +import type { QueryClient,UseQueryOptions, UseQueryResult } from '@tanstack/react-query'; import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { platformFunctionGraphExecutionKeys } from '../query-keys'; + import type { - PlatformFunctionGraphExecutionSelect, - PlatformFunctionGraphExecutionWithRelations, PlatformFunctionGraphExecutionFilter, PlatformFunctionGraphExecutionOrderBy, + PlatformFunctionGraphExecutionSelect, + PlatformFunctionGraphExecutionWithRelations, } from '../../orm/input-types'; import type { - FindManyArgs, - InferSelectResult, ConnectionResult, HookStrictSelect, + InferSelectResult, } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformFunctionGraphExecutionKeys } from '../query-keys'; +import type { ListSelectionConfig } from '../selection'; +import { buildListSelectionArgs } from '../selection'; export type { - PlatformFunctionGraphExecutionSelect, - PlatformFunctionGraphExecutionWithRelations, PlatformFunctionGraphExecutionFilter, PlatformFunctionGraphExecutionOrderBy, + PlatformFunctionGraphExecutionSelect, + PlatformFunctionGraphExecutionWithRelations, } from '../../orm/input-types'; /** Query key factory - re-exported from query-keys.ts */ export const platformFunctionGraphExecutionsQueryKey = platformFunctionGraphExecutionKeys.list; diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformFunctionGraphObjectQuery.ts b/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformFunctionGraphObjectQuery.ts index a052f7a1c..ab48d6a0f 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformFunctionGraphObjectQuery.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformFunctionGraphObjectQuery.ts @@ -4,17 +4,18 @@ * DO NOT EDIT - changes will be overwritten */ +import type { QueryClient,UseQueryOptions, UseQueryResult } from '@tanstack/react-query'; import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformFunctionGraphObjectKeys } from '../query-keys'; + import type { PlatformFunctionGraphObjectSelect, PlatformFunctionGraphObjectWithRelations, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformFunctionGraphObjectKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { PlatformFunctionGraphObjectSelect, PlatformFunctionGraphObjectWithRelations, diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformFunctionGraphObjectsQuery.ts b/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformFunctionGraphObjectsQuery.ts index a3ebcd6a9..fc55c9920 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformFunctionGraphObjectsQuery.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformFunctionGraphObjectsQuery.ts @@ -4,29 +4,29 @@ * DO NOT EDIT - changes will be overwritten */ +import type { QueryClient,UseQueryOptions, UseQueryResult } from '@tanstack/react-query'; import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { platformFunctionGraphObjectKeys } from '../query-keys'; + import type { - PlatformFunctionGraphObjectSelect, - PlatformFunctionGraphObjectWithRelations, PlatformFunctionGraphObjectFilter, PlatformFunctionGraphObjectOrderBy, + PlatformFunctionGraphObjectSelect, + PlatformFunctionGraphObjectWithRelations, } from '../../orm/input-types'; import type { - FindManyArgs, - InferSelectResult, ConnectionResult, HookStrictSelect, + InferSelectResult, } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformFunctionGraphObjectKeys } from '../query-keys'; +import type { ListSelectionConfig } from '../selection'; +import { buildListSelectionArgs } from '../selection'; export type { - PlatformFunctionGraphObjectSelect, - PlatformFunctionGraphObjectWithRelations, PlatformFunctionGraphObjectFilter, PlatformFunctionGraphObjectOrderBy, + PlatformFunctionGraphObjectSelect, + PlatformFunctionGraphObjectWithRelations, } from '../../orm/input-types'; /** Query key factory - re-exported from query-keys.ts */ export const platformFunctionGraphObjectsQueryKey = platformFunctionGraphObjectKeys.list; diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformFunctionGraphQuery.ts b/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformFunctionGraphQuery.ts index 9e698dff8..ab95d4ecb 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformFunctionGraphQuery.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformFunctionGraphQuery.ts @@ -4,17 +4,18 @@ * DO NOT EDIT - changes will be overwritten */ +import type { QueryClient,UseQueryOptions, UseQueryResult } from '@tanstack/react-query'; import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformFunctionGraphKeys } from '../query-keys'; + import type { PlatformFunctionGraphSelect, PlatformFunctionGraphWithRelations, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformFunctionGraphKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { PlatformFunctionGraphSelect, PlatformFunctionGraphWithRelations, diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformFunctionGraphRefQuery.ts b/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformFunctionGraphRefQuery.ts index 0e5f30b6f..222983ccc 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformFunctionGraphRefQuery.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformFunctionGraphRefQuery.ts @@ -4,17 +4,18 @@ * DO NOT EDIT - changes will be overwritten */ +import type { QueryClient,UseQueryOptions, UseQueryResult } from '@tanstack/react-query'; import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformFunctionGraphRefKeys } from '../query-keys'; + import type { PlatformFunctionGraphRefSelect, PlatformFunctionGraphRefWithRelations, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformFunctionGraphRefKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { PlatformFunctionGraphRefSelect, PlatformFunctionGraphRefWithRelations, diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformFunctionGraphRefsQuery.ts b/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformFunctionGraphRefsQuery.ts index 50b65c55f..f8aab05a1 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformFunctionGraphRefsQuery.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformFunctionGraphRefsQuery.ts @@ -4,29 +4,29 @@ * DO NOT EDIT - changes will be overwritten */ +import type { QueryClient,UseQueryOptions, UseQueryResult } from '@tanstack/react-query'; import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { platformFunctionGraphRefKeys } from '../query-keys'; + import type { - PlatformFunctionGraphRefSelect, - PlatformFunctionGraphRefWithRelations, PlatformFunctionGraphRefFilter, PlatformFunctionGraphRefOrderBy, + PlatformFunctionGraphRefSelect, + PlatformFunctionGraphRefWithRelations, } from '../../orm/input-types'; import type { - FindManyArgs, - InferSelectResult, ConnectionResult, HookStrictSelect, + InferSelectResult, } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformFunctionGraphRefKeys } from '../query-keys'; +import type { ListSelectionConfig } from '../selection'; +import { buildListSelectionArgs } from '../selection'; export type { - PlatformFunctionGraphRefSelect, - PlatformFunctionGraphRefWithRelations, PlatformFunctionGraphRefFilter, PlatformFunctionGraphRefOrderBy, + PlatformFunctionGraphRefSelect, + PlatformFunctionGraphRefWithRelations, } from '../../orm/input-types'; /** Query key factory - re-exported from query-keys.ts */ export const platformFunctionGraphRefsQueryKey = platformFunctionGraphRefKeys.list; diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformFunctionGraphStoreQuery.ts b/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformFunctionGraphStoreQuery.ts index 13ba57ebf..d72227688 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformFunctionGraphStoreQuery.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformFunctionGraphStoreQuery.ts @@ -4,17 +4,18 @@ * DO NOT EDIT - changes will be overwritten */ +import type { QueryClient,UseQueryOptions, UseQueryResult } from '@tanstack/react-query'; import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformFunctionGraphStoreKeys } from '../query-keys'; + import type { PlatformFunctionGraphStoreSelect, PlatformFunctionGraphStoreWithRelations, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformFunctionGraphStoreKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { PlatformFunctionGraphStoreSelect, PlatformFunctionGraphStoreWithRelations, diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformFunctionGraphStoresQuery.ts b/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformFunctionGraphStoresQuery.ts index ee25844fb..9a6c6172d 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformFunctionGraphStoresQuery.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformFunctionGraphStoresQuery.ts @@ -4,29 +4,29 @@ * DO NOT EDIT - changes will be overwritten */ +import type { QueryClient,UseQueryOptions, UseQueryResult } from '@tanstack/react-query'; import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { platformFunctionGraphStoreKeys } from '../query-keys'; + import type { - PlatformFunctionGraphStoreSelect, - PlatformFunctionGraphStoreWithRelations, PlatformFunctionGraphStoreFilter, PlatformFunctionGraphStoreOrderBy, + PlatformFunctionGraphStoreSelect, + PlatformFunctionGraphStoreWithRelations, } from '../../orm/input-types'; import type { - FindManyArgs, - InferSelectResult, ConnectionResult, HookStrictSelect, + InferSelectResult, } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformFunctionGraphStoreKeys } from '../query-keys'; +import type { ListSelectionConfig } from '../selection'; +import { buildListSelectionArgs } from '../selection'; export type { - PlatformFunctionGraphStoreSelect, - PlatformFunctionGraphStoreWithRelations, PlatformFunctionGraphStoreFilter, PlatformFunctionGraphStoreOrderBy, + PlatformFunctionGraphStoreSelect, + PlatformFunctionGraphStoreWithRelations, } from '../../orm/input-types'; /** Query key factory - re-exported from query-keys.ts */ export const platformFunctionGraphStoresQueryKey = platformFunctionGraphStoreKeys.list; diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformFunctionGraphsQuery.ts b/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformFunctionGraphsQuery.ts index ab791d3e2..c3531e027 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformFunctionGraphsQuery.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformFunctionGraphsQuery.ts @@ -4,29 +4,29 @@ * DO NOT EDIT - changes will be overwritten */ +import type { QueryClient,UseQueryOptions, UseQueryResult } from '@tanstack/react-query'; import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { platformFunctionGraphKeys } from '../query-keys'; + import type { - PlatformFunctionGraphSelect, - PlatformFunctionGraphWithRelations, PlatformFunctionGraphFilter, PlatformFunctionGraphOrderBy, + PlatformFunctionGraphSelect, + PlatformFunctionGraphWithRelations, } from '../../orm/input-types'; import type { - FindManyArgs, - InferSelectResult, ConnectionResult, HookStrictSelect, + InferSelectResult, } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformFunctionGraphKeys } from '../query-keys'; +import type { ListSelectionConfig } from '../selection'; +import { buildListSelectionArgs } from '../selection'; export type { - PlatformFunctionGraphSelect, - PlatformFunctionGraphWithRelations, PlatformFunctionGraphFilter, PlatformFunctionGraphOrderBy, + PlatformFunctionGraphSelect, + PlatformFunctionGraphWithRelations, } from '../../orm/input-types'; /** Query key factory - re-exported from query-keys.ts */ export const platformFunctionGraphsQueryKey = platformFunctionGraphKeys.list; diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformFunctionInvocationQuery.ts b/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformFunctionInvocationQuery.ts index 985e4e6f9..3ad743c1c 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformFunctionInvocationQuery.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformFunctionInvocationQuery.ts @@ -4,17 +4,18 @@ * DO NOT EDIT - changes will be overwritten */ +import type { QueryClient,UseQueryOptions, UseQueryResult } from '@tanstack/react-query'; import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformFunctionInvocationKeys } from '../query-keys'; + import type { PlatformFunctionInvocationSelect, PlatformFunctionInvocationWithRelations, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformFunctionInvocationKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { PlatformFunctionInvocationSelect, PlatformFunctionInvocationWithRelations, diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformFunctionInvocationsQuery.ts b/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformFunctionInvocationsQuery.ts index 1dee167ac..e8fa8734e 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformFunctionInvocationsQuery.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformFunctionInvocationsQuery.ts @@ -4,29 +4,29 @@ * DO NOT EDIT - changes will be overwritten */ +import type { QueryClient,UseQueryOptions, UseQueryResult } from '@tanstack/react-query'; import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { platformFunctionInvocationKeys } from '../query-keys'; + import type { - PlatformFunctionInvocationSelect, - PlatformFunctionInvocationWithRelations, PlatformFunctionInvocationFilter, PlatformFunctionInvocationOrderBy, + PlatformFunctionInvocationSelect, + PlatformFunctionInvocationWithRelations, } from '../../orm/input-types'; import type { - FindManyArgs, - InferSelectResult, ConnectionResult, HookStrictSelect, + InferSelectResult, } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformFunctionInvocationKeys } from '../query-keys'; +import type { ListSelectionConfig } from '../selection'; +import { buildListSelectionArgs } from '../selection'; export type { - PlatformFunctionInvocationSelect, - PlatformFunctionInvocationWithRelations, PlatformFunctionInvocationFilter, PlatformFunctionInvocationOrderBy, + PlatformFunctionInvocationSelect, + PlatformFunctionInvocationWithRelations, } from '../../orm/input-types'; /** Query key factory - re-exported from query-keys.ts */ export const platformFunctionInvocationsQueryKey = platformFunctionInvocationKeys.list; diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformReadFunctionGraphQuery.ts b/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformReadFunctionGraphQuery.ts index ee582816b..dcbdeef42 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformReadFunctionGraphQuery.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformReadFunctionGraphQuery.ts @@ -4,13 +4,12 @@ * DO NOT EDIT - changes will be overwritten */ +import type { QueryClient,UseQueryOptions, UseQueryResult } from '@tanstack/react-query'; import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; + +import type { PlatformReadFunctionGraphVariables } from '../../orm/query'; import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; import { customQueryKeys } from '../query-keys'; -import type { PlatformReadFunctionGraphVariables } from '../../orm/query'; export type { PlatformReadFunctionGraphVariables } from '../../orm/query'; /** Query key factory - re-exported from query-keys.ts */ export const platformReadFunctionGraphQueryKey = customQueryKeys.platformReadFunctionGraph; diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformSecretDefinitionQuery.ts b/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformSecretDefinitionQuery.ts index d7a3f19f7..40539aee6 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformSecretDefinitionQuery.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformSecretDefinitionQuery.ts @@ -4,17 +4,18 @@ * DO NOT EDIT - changes will be overwritten */ +import type { QueryClient,UseQueryOptions, UseQueryResult } from '@tanstack/react-query'; import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformSecretDefinitionKeys } from '../query-keys'; + import type { PlatformSecretDefinitionSelect, PlatformSecretDefinitionWithRelations, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformSecretDefinitionKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { PlatformSecretDefinitionSelect, PlatformSecretDefinitionWithRelations, diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformSecretDefinitionsQuery.ts b/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformSecretDefinitionsQuery.ts index 5627159fd..d309a8d6c 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformSecretDefinitionsQuery.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformSecretDefinitionsQuery.ts @@ -4,29 +4,29 @@ * DO NOT EDIT - changes will be overwritten */ +import type { QueryClient,UseQueryOptions, UseQueryResult } from '@tanstack/react-query'; import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { platformSecretDefinitionKeys } from '../query-keys'; + import type { - PlatformSecretDefinitionSelect, - PlatformSecretDefinitionWithRelations, PlatformSecretDefinitionFilter, PlatformSecretDefinitionOrderBy, + PlatformSecretDefinitionSelect, + PlatformSecretDefinitionWithRelations, } from '../../orm/input-types'; import type { - FindManyArgs, - InferSelectResult, ConnectionResult, HookStrictSelect, + InferSelectResult, } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformSecretDefinitionKeys } from '../query-keys'; +import type { ListSelectionConfig } from '../selection'; +import { buildListSelectionArgs } from '../selection'; export type { - PlatformSecretDefinitionSelect, - PlatformSecretDefinitionWithRelations, PlatformSecretDefinitionFilter, PlatformSecretDefinitionOrderBy, + PlatformSecretDefinitionSelect, + PlatformSecretDefinitionWithRelations, } from '../../orm/input-types'; /** Query key factory - re-exported from query-keys.ts */ export const platformSecretDefinitionsQueryKey = platformSecretDefinitionKeys.list; diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformUsageDailiesQuery.ts b/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformUsageDailiesQuery.ts index 9a00e6942..29005069a 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformUsageDailiesQuery.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformUsageDailiesQuery.ts @@ -4,29 +4,29 @@ * DO NOT EDIT - changes will be overwritten */ +import type { QueryClient,UseQueryOptions, UseQueryResult } from '@tanstack/react-query'; import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { platformUsageDailyKeys } from '../query-keys'; + import type { - PlatformUsageDailySelect, - PlatformUsageDailyWithRelations, PlatformUsageDailyFilter, PlatformUsageDailyOrderBy, + PlatformUsageDailySelect, + PlatformUsageDailyWithRelations, } from '../../orm/input-types'; import type { - FindManyArgs, - InferSelectResult, ConnectionResult, HookStrictSelect, + InferSelectResult, } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformUsageDailyKeys } from '../query-keys'; +import type { ListSelectionConfig } from '../selection'; +import { buildListSelectionArgs } from '../selection'; export type { - PlatformUsageDailySelect, - PlatformUsageDailyWithRelations, PlatformUsageDailyFilter, PlatformUsageDailyOrderBy, + PlatformUsageDailySelect, + PlatformUsageDailyWithRelations, } from '../../orm/input-types'; /** Query key factory - re-exported from query-keys.ts */ export const platformUsageDailiesQueryKey = platformUsageDailyKeys.list; diff --git a/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformUsageDailyQuery.ts b/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformUsageDailyQuery.ts index f831d0f51..c25853c80 100644 --- a/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformUsageDailyQuery.ts +++ b/sdk/constructive-functions-hooks/src/compute/hooks/queries/usePlatformUsageDailyQuery.ts @@ -4,17 +4,18 @@ * DO NOT EDIT - changes will be overwritten */ +import type { QueryClient,UseQueryOptions, UseQueryResult } from '@tanstack/react-query'; import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { platformUsageDailyKeys } from '../query-keys'; + import type { PlatformUsageDailySelect, PlatformUsageDailyWithRelations, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; +import { getClient } from '../client'; +import { platformUsageDailyKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { PlatformUsageDailySelect, PlatformUsageDailyWithRelations, diff --git a/sdk/constructive-functions-hooks/src/compute/index.ts b/sdk/constructive-functions-hooks/src/compute/index.ts index 2b8402539..86f77a82b 100644 --- a/sdk/constructive-functions-hooks/src/compute/index.ts +++ b/sdk/constructive-functions-hooks/src/compute/index.ts @@ -2,6 +2,6 @@ * GraphQL SDK - auto-generated, do not edit * @generated by @constructive-io/graphql-codegen */ -export * from './types'; export * from './hooks'; export * from './orm'; +export * from './types'; diff --git a/sdk/constructive-functions-hooks/src/compute/orm/client.ts b/sdk/constructive-functions-hooks/src/compute/orm/client.ts index 16e683c71..d3006224b 100644 --- a/sdk/constructive-functions-hooks/src/compute/orm/client.ts +++ b/sdk/constructive-functions-hooks/src/compute/orm/client.ts @@ -14,19 +14,12 @@ import type { ConnectionState, ConnectionStateListener, RealtimeConfig, - SubscribeOptions, SubscriptionEvent, SubscriptionFieldMeta, Unsubscribe, } from './realtime'; import { RealtimeManager } from './realtime'; -export type { - GraphQLAdapter, - GraphQLError, - QueryResult, -} from '@constructive-io/graphql-query/runtime'; - export type { ConnectionState, ConnectionStateListener, @@ -39,6 +32,11 @@ export type { WsClient, } from './realtime'; export { RealtimeManager } from './realtime'; +export type { + GraphQLAdapter, + GraphQLError, + QueryResult, +} from '@constructive-io/graphql-query/runtime'; /** * Default adapter that uses fetch for HTTP requests. diff --git a/sdk/constructive-functions-hooks/src/compute/orm/index.ts b/sdk/constructive-functions-hooks/src/compute/orm/index.ts index 8f775ef57..48cd1bf03 100644 --- a/sdk/constructive-functions-hooks/src/compute/orm/index.ts +++ b/sdk/constructive-functions-hooks/src/compute/orm/index.ts @@ -3,34 +3,34 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ -import { OrmClient } from './client'; import type { OrmClientConfig } from './client'; +import { OrmClient } from './client'; import { GetAllRecordModel } from './models/getAllRecord'; -import { PlatformFunctionGraphRefModel } from './models/platformFunctionGraphRef'; -import { PlatformFunctionGraphStoreModel } from './models/platformFunctionGraphStore'; -import { PlatformFunctionGraphObjectModel } from './models/platformFunctionGraphObject'; import { OrgFunctionExecutionLogModel } from './models/orgFunctionExecutionLog'; -import { PlatformFunctionGraphExecutionOutputModel } from './models/platformFunctionGraphExecutionOutput'; -import { PlatformFunctionGraphCommitModel } from './models/platformFunctionGraphCommit'; -import { PlatformSecretDefinitionModel } from './models/platformSecretDefinition'; +import { OrgFunctionInvocationModel } from './models/orgFunctionInvocation'; +import { PlatformComputeLogModel } from './models/platformComputeLog'; +import { PlatformFunctionDefinitionModel } from './models/platformFunctionDefinition'; import { PlatformFunctionExecutionLogModel } from './models/platformFunctionExecutionLog'; -import { PlatformFunctionGraphExecutionNodeStateModel } from './models/platformFunctionGraphExecutionNodeState'; import { PlatformFunctionGraphModel } from './models/platformFunctionGraph'; -import { PlatformComputeLogModel } from './models/platformComputeLog'; -import { PlatformUsageDailyModel } from './models/platformUsageDaily'; -import { OrgFunctionInvocationModel } from './models/orgFunctionInvocation'; -import { PlatformFunctionInvocationModel } from './models/platformFunctionInvocation'; +import { PlatformFunctionGraphCommitModel } from './models/platformFunctionGraphCommit'; import { PlatformFunctionGraphExecutionModel } from './models/platformFunctionGraphExecution'; -import { PlatformFunctionDefinitionModel } from './models/platformFunctionDefinition'; -import { createQueryOperations } from './query'; +import { PlatformFunctionGraphExecutionNodeStateModel } from './models/platformFunctionGraphExecutionNodeState'; +import { PlatformFunctionGraphExecutionOutputModel } from './models/platformFunctionGraphExecutionOutput'; +import { PlatformFunctionGraphObjectModel } from './models/platformFunctionGraphObject'; +import { PlatformFunctionGraphRefModel } from './models/platformFunctionGraphRef'; +import { PlatformFunctionGraphStoreModel } from './models/platformFunctionGraphStore'; +import { PlatformFunctionInvocationModel } from './models/platformFunctionInvocation'; +import { PlatformSecretDefinitionModel } from './models/platformSecretDefinition'; +import { PlatformUsageDailyModel } from './models/platformUsageDaily'; import { createMutationOperations } from './mutation'; -export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client'; -export { GraphQLRequestError, FetchAdapter } from './client'; -export { QueryBuilder } from './query-builder'; -export * from './select-types'; +import { createQueryOperations } from './query'; +export type { GraphQLAdapter,GraphQLError, OrmClientConfig, QueryResult } from './client'; +export { FetchAdapter,GraphQLRequestError } from './client'; export * from './models'; -export { createQueryOperations } from './query'; export { createMutationOperations } from './mutation'; +export { createQueryOperations } from './query'; +export { QueryBuilder } from './query-builder'; +export * from './select-types'; /** * Create an ORM client instance * diff --git a/sdk/constructive-functions-hooks/src/compute/orm/models/getAllRecord.ts b/sdk/constructive-functions-hooks/src/compute/orm/models/getAllRecord.ts index 39a82fbbb..6da0fa693 100644 --- a/sdk/constructive-functions-hooks/src/compute/orm/models/getAllRecord.ts +++ b/sdk/constructive-functions-hooks/src/compute/orm/models/getAllRecord.ts @@ -4,36 +4,28 @@ * DO NOT EDIT - changes will be overwritten */ import { OrmClient } from '../client'; +import type { + CreateGetAllRecordInput, + GetAllRecordFilter, + GetAllRecordSelect, + GetAllRecordsOrderBy, + GetAllRecordWithRelations, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, + buildFindFirstDocument, + buildFindManyDocument, + QueryBuilder, } from '../query-builder'; import type { ConnectionResult, - FindManyArgs, - FindFirstArgs, CreateArgs, - UpdateArgs, - DeleteArgs, + FindFirstArgs, + FindManyArgs, InferSelectResult, StrictSelect, } from '../select-types'; -import type { - GetAllRecord, - GetAllRecordWithRelations, - GetAllRecordSelect, - GetAllRecordFilter, - GetAllRecordsOrderBy, - CreateGetAllRecordInput, - UpdateGetAllRecordInput, - GetAllRecordPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; export class GetAllRecordModel { constructor(private client: OrmClient) {} findMany( diff --git a/sdk/constructive-functions-hooks/src/compute/orm/models/index.ts b/sdk/constructive-functions-hooks/src/compute/orm/models/index.ts index 02af82f0a..c255ab9c3 100644 --- a/sdk/constructive-functions-hooks/src/compute/orm/models/index.ts +++ b/sdk/constructive-functions-hooks/src/compute/orm/models/index.ts @@ -4,19 +4,19 @@ * DO NOT EDIT - changes will be overwritten */ export { GetAllRecordModel } from './getAllRecord'; -export { PlatformFunctionGraphRefModel } from './platformFunctionGraphRef'; -export { PlatformFunctionGraphStoreModel } from './platformFunctionGraphStore'; -export { PlatformFunctionGraphObjectModel } from './platformFunctionGraphObject'; export { OrgFunctionExecutionLogModel } from './orgFunctionExecutionLog'; -export { PlatformFunctionGraphExecutionOutputModel } from './platformFunctionGraphExecutionOutput'; -export { PlatformFunctionGraphCommitModel } from './platformFunctionGraphCommit'; -export { PlatformSecretDefinitionModel } from './platformSecretDefinition'; +export { OrgFunctionInvocationModel } from './orgFunctionInvocation'; +export { PlatformComputeLogModel } from './platformComputeLog'; +export { PlatformFunctionDefinitionModel } from './platformFunctionDefinition'; export { PlatformFunctionExecutionLogModel } from './platformFunctionExecutionLog'; -export { PlatformFunctionGraphExecutionNodeStateModel } from './platformFunctionGraphExecutionNodeState'; export { PlatformFunctionGraphModel } from './platformFunctionGraph'; -export { PlatformComputeLogModel } from './platformComputeLog'; -export { PlatformUsageDailyModel } from './platformUsageDaily'; -export { OrgFunctionInvocationModel } from './orgFunctionInvocation'; -export { PlatformFunctionInvocationModel } from './platformFunctionInvocation'; +export { PlatformFunctionGraphCommitModel } from './platformFunctionGraphCommit'; export { PlatformFunctionGraphExecutionModel } from './platformFunctionGraphExecution'; -export { PlatformFunctionDefinitionModel } from './platformFunctionDefinition'; +export { PlatformFunctionGraphExecutionNodeStateModel } from './platformFunctionGraphExecutionNodeState'; +export { PlatformFunctionGraphExecutionOutputModel } from './platformFunctionGraphExecutionOutput'; +export { PlatformFunctionGraphObjectModel } from './platformFunctionGraphObject'; +export { PlatformFunctionGraphRefModel } from './platformFunctionGraphRef'; +export { PlatformFunctionGraphStoreModel } from './platformFunctionGraphStore'; +export { PlatformFunctionInvocationModel } from './platformFunctionInvocation'; +export { PlatformSecretDefinitionModel } from './platformSecretDefinition'; +export { PlatformUsageDailyModel } from './platformUsageDaily'; diff --git a/sdk/constructive-functions-hooks/src/compute/orm/models/orgFunctionExecutionLog.ts b/sdk/constructive-functions-hooks/src/compute/orm/models/orgFunctionExecutionLog.ts index 95b37a939..1058d7717 100644 --- a/sdk/constructive-functions-hooks/src/compute/orm/models/orgFunctionExecutionLog.ts +++ b/sdk/constructive-functions-hooks/src/compute/orm/models/orgFunctionExecutionLog.ts @@ -4,36 +4,33 @@ * DO NOT EDIT - changes will be overwritten */ import { OrmClient } from '../client'; +import type { + CreateOrgFunctionExecutionLogInput, + OrgFunctionExecutionLogFilter, + OrgFunctionExecutionLogOrderBy, + OrgFunctionExecutionLogPatch, + OrgFunctionExecutionLogSelect, + OrgFunctionExecutionLogWithRelations, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, buildCreateDocument, - buildUpdateByPkDocument, buildDeleteByPkDocument, + buildFindFirstDocument, + buildFindManyDocument, + buildUpdateByPkDocument, + QueryBuilder, } from '../query-builder'; import type { ConnectionResult, - FindManyArgs, - FindFirstArgs, CreateArgs, - UpdateArgs, DeleteArgs, + FindFirstArgs, + FindManyArgs, InferSelectResult, StrictSelect, + UpdateArgs, } from '../select-types'; -import type { - OrgFunctionExecutionLog, - OrgFunctionExecutionLogWithRelations, - OrgFunctionExecutionLogSelect, - OrgFunctionExecutionLogFilter, - OrgFunctionExecutionLogOrderBy, - CreateOrgFunctionExecutionLogInput, - UpdateOrgFunctionExecutionLogInput, - OrgFunctionExecutionLogPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; export class OrgFunctionExecutionLogModel { constructor(private client: OrmClient) {} findMany( diff --git a/sdk/constructive-functions-hooks/src/compute/orm/models/orgFunctionInvocation.ts b/sdk/constructive-functions-hooks/src/compute/orm/models/orgFunctionInvocation.ts index 3f3eaab55..59684987b 100644 --- a/sdk/constructive-functions-hooks/src/compute/orm/models/orgFunctionInvocation.ts +++ b/sdk/constructive-functions-hooks/src/compute/orm/models/orgFunctionInvocation.ts @@ -4,36 +4,33 @@ * DO NOT EDIT - changes will be overwritten */ import { OrmClient } from '../client'; +import type { + CreateOrgFunctionInvocationInput, + OrgFunctionInvocationFilter, + OrgFunctionInvocationOrderBy, + OrgFunctionInvocationPatch, + OrgFunctionInvocationSelect, + OrgFunctionInvocationWithRelations, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, buildCreateDocument, - buildUpdateByPkDocument, buildDeleteByPkDocument, + buildFindFirstDocument, + buildFindManyDocument, + buildUpdateByPkDocument, + QueryBuilder, } from '../query-builder'; import type { ConnectionResult, - FindManyArgs, - FindFirstArgs, CreateArgs, - UpdateArgs, DeleteArgs, + FindFirstArgs, + FindManyArgs, InferSelectResult, StrictSelect, + UpdateArgs, } from '../select-types'; -import type { - OrgFunctionInvocation, - OrgFunctionInvocationWithRelations, - OrgFunctionInvocationSelect, - OrgFunctionInvocationFilter, - OrgFunctionInvocationOrderBy, - CreateOrgFunctionInvocationInput, - UpdateOrgFunctionInvocationInput, - OrgFunctionInvocationPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; export class OrgFunctionInvocationModel { constructor(private client: OrmClient) {} findMany( diff --git a/sdk/constructive-functions-hooks/src/compute/orm/models/platformComputeLog.ts b/sdk/constructive-functions-hooks/src/compute/orm/models/platformComputeLog.ts index 1ddb18923..47724c07a 100644 --- a/sdk/constructive-functions-hooks/src/compute/orm/models/platformComputeLog.ts +++ b/sdk/constructive-functions-hooks/src/compute/orm/models/platformComputeLog.ts @@ -4,36 +4,33 @@ * DO NOT EDIT - changes will be overwritten */ import { OrmClient } from '../client'; +import type { + CreatePlatformComputeLogInput, + PlatformComputeLogFilter, + PlatformComputeLogOrderBy, + PlatformComputeLogPatch, + PlatformComputeLogSelect, + PlatformComputeLogWithRelations, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, buildCreateDocument, - buildUpdateByPkDocument, buildDeleteByPkDocument, + buildFindFirstDocument, + buildFindManyDocument, + buildUpdateByPkDocument, + QueryBuilder, } from '../query-builder'; import type { ConnectionResult, - FindManyArgs, - FindFirstArgs, CreateArgs, - UpdateArgs, DeleteArgs, + FindFirstArgs, + FindManyArgs, InferSelectResult, StrictSelect, + UpdateArgs, } from '../select-types'; -import type { - PlatformComputeLog, - PlatformComputeLogWithRelations, - PlatformComputeLogSelect, - PlatformComputeLogFilter, - PlatformComputeLogOrderBy, - CreatePlatformComputeLogInput, - UpdatePlatformComputeLogInput, - PlatformComputeLogPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; export class PlatformComputeLogModel { constructor(private client: OrmClient) {} findMany( diff --git a/sdk/constructive-functions-hooks/src/compute/orm/models/platformFunctionDefinition.ts b/sdk/constructive-functions-hooks/src/compute/orm/models/platformFunctionDefinition.ts index 742274378..ee5897fa7 100644 --- a/sdk/constructive-functions-hooks/src/compute/orm/models/platformFunctionDefinition.ts +++ b/sdk/constructive-functions-hooks/src/compute/orm/models/platformFunctionDefinition.ts @@ -4,36 +4,33 @@ * DO NOT EDIT - changes will be overwritten */ import { OrmClient } from '../client'; +import type { + CreatePlatformFunctionDefinitionInput, + PlatformFunctionDefinitionFilter, + PlatformFunctionDefinitionOrderBy, + PlatformFunctionDefinitionPatch, + PlatformFunctionDefinitionSelect, + PlatformFunctionDefinitionWithRelations, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, buildCreateDocument, - buildUpdateByPkDocument, buildDeleteByPkDocument, + buildFindFirstDocument, + buildFindManyDocument, + buildUpdateByPkDocument, + QueryBuilder, } from '../query-builder'; import type { ConnectionResult, - FindManyArgs, - FindFirstArgs, CreateArgs, - UpdateArgs, DeleteArgs, + FindFirstArgs, + FindManyArgs, InferSelectResult, StrictSelect, + UpdateArgs, } from '../select-types'; -import type { - PlatformFunctionDefinition, - PlatformFunctionDefinitionWithRelations, - PlatformFunctionDefinitionSelect, - PlatformFunctionDefinitionFilter, - PlatformFunctionDefinitionOrderBy, - CreatePlatformFunctionDefinitionInput, - UpdatePlatformFunctionDefinitionInput, - PlatformFunctionDefinitionPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; export class PlatformFunctionDefinitionModel { constructor(private client: OrmClient) {} findMany( diff --git a/sdk/constructive-functions-hooks/src/compute/orm/models/platformFunctionExecutionLog.ts b/sdk/constructive-functions-hooks/src/compute/orm/models/platformFunctionExecutionLog.ts index 1fe6df0cf..6baeb8fd1 100644 --- a/sdk/constructive-functions-hooks/src/compute/orm/models/platformFunctionExecutionLog.ts +++ b/sdk/constructive-functions-hooks/src/compute/orm/models/platformFunctionExecutionLog.ts @@ -4,36 +4,33 @@ * DO NOT EDIT - changes will be overwritten */ import { OrmClient } from '../client'; +import type { + CreatePlatformFunctionExecutionLogInput, + PlatformFunctionExecutionLogFilter, + PlatformFunctionExecutionLogOrderBy, + PlatformFunctionExecutionLogPatch, + PlatformFunctionExecutionLogSelect, + PlatformFunctionExecutionLogWithRelations, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, buildCreateDocument, - buildUpdateByPkDocument, buildDeleteByPkDocument, + buildFindFirstDocument, + buildFindManyDocument, + buildUpdateByPkDocument, + QueryBuilder, } from '../query-builder'; import type { ConnectionResult, - FindManyArgs, - FindFirstArgs, CreateArgs, - UpdateArgs, DeleteArgs, + FindFirstArgs, + FindManyArgs, InferSelectResult, StrictSelect, + UpdateArgs, } from '../select-types'; -import type { - PlatformFunctionExecutionLog, - PlatformFunctionExecutionLogWithRelations, - PlatformFunctionExecutionLogSelect, - PlatformFunctionExecutionLogFilter, - PlatformFunctionExecutionLogOrderBy, - CreatePlatformFunctionExecutionLogInput, - UpdatePlatformFunctionExecutionLogInput, - PlatformFunctionExecutionLogPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; export class PlatformFunctionExecutionLogModel { constructor(private client: OrmClient) {} findMany( diff --git a/sdk/constructive-functions-hooks/src/compute/orm/models/platformFunctionGraph.ts b/sdk/constructive-functions-hooks/src/compute/orm/models/platformFunctionGraph.ts index 1d00255d3..34c528461 100644 --- a/sdk/constructive-functions-hooks/src/compute/orm/models/platformFunctionGraph.ts +++ b/sdk/constructive-functions-hooks/src/compute/orm/models/platformFunctionGraph.ts @@ -4,36 +4,33 @@ * DO NOT EDIT - changes will be overwritten */ import { OrmClient } from '../client'; +import type { + CreatePlatformFunctionGraphInput, + PlatformFunctionGraphFilter, + PlatformFunctionGraphOrderBy, + PlatformFunctionGraphPatch, + PlatformFunctionGraphSelect, + PlatformFunctionGraphWithRelations, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, buildCreateDocument, - buildUpdateByPkDocument, buildDeleteByPkDocument, + buildFindFirstDocument, + buildFindManyDocument, + buildUpdateByPkDocument, + QueryBuilder, } from '../query-builder'; import type { ConnectionResult, - FindManyArgs, - FindFirstArgs, CreateArgs, - UpdateArgs, DeleteArgs, + FindFirstArgs, + FindManyArgs, InferSelectResult, StrictSelect, + UpdateArgs, } from '../select-types'; -import type { - PlatformFunctionGraph, - PlatformFunctionGraphWithRelations, - PlatformFunctionGraphSelect, - PlatformFunctionGraphFilter, - PlatformFunctionGraphOrderBy, - CreatePlatformFunctionGraphInput, - UpdatePlatformFunctionGraphInput, - PlatformFunctionGraphPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; export class PlatformFunctionGraphModel { constructor(private client: OrmClient) {} findMany( diff --git a/sdk/constructive-functions-hooks/src/compute/orm/models/platformFunctionGraphCommit.ts b/sdk/constructive-functions-hooks/src/compute/orm/models/platformFunctionGraphCommit.ts index 9f651659f..a5a2e64a6 100644 --- a/sdk/constructive-functions-hooks/src/compute/orm/models/platformFunctionGraphCommit.ts +++ b/sdk/constructive-functions-hooks/src/compute/orm/models/platformFunctionGraphCommit.ts @@ -4,36 +4,33 @@ * DO NOT EDIT - changes will be overwritten */ import { OrmClient } from '../client'; +import type { + CreatePlatformFunctionGraphCommitInput, + PlatformFunctionGraphCommitFilter, + PlatformFunctionGraphCommitOrderBy, + PlatformFunctionGraphCommitPatch, + PlatformFunctionGraphCommitSelect, + PlatformFunctionGraphCommitWithRelations, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, buildCreateDocument, - buildUpdateByPkDocument, buildDeleteByPkDocument, + buildFindFirstDocument, + buildFindManyDocument, + buildUpdateByPkDocument, + QueryBuilder, } from '../query-builder'; import type { ConnectionResult, - FindManyArgs, - FindFirstArgs, CreateArgs, - UpdateArgs, DeleteArgs, + FindFirstArgs, + FindManyArgs, InferSelectResult, StrictSelect, + UpdateArgs, } from '../select-types'; -import type { - PlatformFunctionGraphCommit, - PlatformFunctionGraphCommitWithRelations, - PlatformFunctionGraphCommitSelect, - PlatformFunctionGraphCommitFilter, - PlatformFunctionGraphCommitOrderBy, - CreatePlatformFunctionGraphCommitInput, - UpdatePlatformFunctionGraphCommitInput, - PlatformFunctionGraphCommitPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; export class PlatformFunctionGraphCommitModel { constructor(private client: OrmClient) {} findMany( diff --git a/sdk/constructive-functions-hooks/src/compute/orm/models/platformFunctionGraphExecution.ts b/sdk/constructive-functions-hooks/src/compute/orm/models/platformFunctionGraphExecution.ts index 37811bfdf..8d27c9a13 100644 --- a/sdk/constructive-functions-hooks/src/compute/orm/models/platformFunctionGraphExecution.ts +++ b/sdk/constructive-functions-hooks/src/compute/orm/models/platformFunctionGraphExecution.ts @@ -4,36 +4,33 @@ * DO NOT EDIT - changes will be overwritten */ import { OrmClient } from '../client'; +import type { + CreatePlatformFunctionGraphExecutionInput, + PlatformFunctionGraphExecutionFilter, + PlatformFunctionGraphExecutionOrderBy, + PlatformFunctionGraphExecutionPatch, + PlatformFunctionGraphExecutionSelect, + PlatformFunctionGraphExecutionWithRelations, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, buildCreateDocument, - buildUpdateByPkDocument, buildDeleteByPkDocument, + buildFindFirstDocument, + buildFindManyDocument, + buildUpdateByPkDocument, + QueryBuilder, } from '../query-builder'; import type { ConnectionResult, - FindManyArgs, - FindFirstArgs, CreateArgs, - UpdateArgs, DeleteArgs, + FindFirstArgs, + FindManyArgs, InferSelectResult, StrictSelect, + UpdateArgs, } from '../select-types'; -import type { - PlatformFunctionGraphExecution, - PlatformFunctionGraphExecutionWithRelations, - PlatformFunctionGraphExecutionSelect, - PlatformFunctionGraphExecutionFilter, - PlatformFunctionGraphExecutionOrderBy, - CreatePlatformFunctionGraphExecutionInput, - UpdatePlatformFunctionGraphExecutionInput, - PlatformFunctionGraphExecutionPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; export class PlatformFunctionGraphExecutionModel { constructor(private client: OrmClient) {} findMany( diff --git a/sdk/constructive-functions-hooks/src/compute/orm/models/platformFunctionGraphExecutionNodeState.ts b/sdk/constructive-functions-hooks/src/compute/orm/models/platformFunctionGraphExecutionNodeState.ts index d276f9fb1..27d16cd55 100644 --- a/sdk/constructive-functions-hooks/src/compute/orm/models/platformFunctionGraphExecutionNodeState.ts +++ b/sdk/constructive-functions-hooks/src/compute/orm/models/platformFunctionGraphExecutionNodeState.ts @@ -4,36 +4,33 @@ * DO NOT EDIT - changes will be overwritten */ import { OrmClient } from '../client'; +import type { + CreatePlatformFunctionGraphExecutionNodeStateInput, + PlatformFunctionGraphExecutionNodeStateFilter, + PlatformFunctionGraphExecutionNodeStateOrderBy, + PlatformFunctionGraphExecutionNodeStatePatch, + PlatformFunctionGraphExecutionNodeStateSelect, + PlatformFunctionGraphExecutionNodeStateWithRelations, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, buildCreateDocument, - buildUpdateByPkDocument, buildDeleteByPkDocument, + buildFindFirstDocument, + buildFindManyDocument, + buildUpdateByPkDocument, + QueryBuilder, } from '../query-builder'; import type { ConnectionResult, - FindManyArgs, - FindFirstArgs, CreateArgs, - UpdateArgs, DeleteArgs, + FindFirstArgs, + FindManyArgs, InferSelectResult, StrictSelect, + UpdateArgs, } from '../select-types'; -import type { - PlatformFunctionGraphExecutionNodeState, - PlatformFunctionGraphExecutionNodeStateWithRelations, - PlatformFunctionGraphExecutionNodeStateSelect, - PlatformFunctionGraphExecutionNodeStateFilter, - PlatformFunctionGraphExecutionNodeStateOrderBy, - CreatePlatformFunctionGraphExecutionNodeStateInput, - UpdatePlatformFunctionGraphExecutionNodeStateInput, - PlatformFunctionGraphExecutionNodeStatePatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; export class PlatformFunctionGraphExecutionNodeStateModel { constructor(private client: OrmClient) {} findMany( diff --git a/sdk/constructive-functions-hooks/src/compute/orm/models/platformFunctionGraphExecutionOutput.ts b/sdk/constructive-functions-hooks/src/compute/orm/models/platformFunctionGraphExecutionOutput.ts index ef2d4bc4d..2e6d28de6 100644 --- a/sdk/constructive-functions-hooks/src/compute/orm/models/platformFunctionGraphExecutionOutput.ts +++ b/sdk/constructive-functions-hooks/src/compute/orm/models/platformFunctionGraphExecutionOutput.ts @@ -4,36 +4,33 @@ * DO NOT EDIT - changes will be overwritten */ import { OrmClient } from '../client'; +import type { + CreatePlatformFunctionGraphExecutionOutputInput, + PlatformFunctionGraphExecutionOutputFilter, + PlatformFunctionGraphExecutionOutputOrderBy, + PlatformFunctionGraphExecutionOutputPatch, + PlatformFunctionGraphExecutionOutputSelect, + PlatformFunctionGraphExecutionOutputWithRelations, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, buildCreateDocument, - buildUpdateByPkDocument, buildDeleteByPkDocument, + buildFindFirstDocument, + buildFindManyDocument, + buildUpdateByPkDocument, + QueryBuilder, } from '../query-builder'; import type { ConnectionResult, - FindManyArgs, - FindFirstArgs, CreateArgs, - UpdateArgs, DeleteArgs, + FindFirstArgs, + FindManyArgs, InferSelectResult, StrictSelect, + UpdateArgs, } from '../select-types'; -import type { - PlatformFunctionGraphExecutionOutput, - PlatformFunctionGraphExecutionOutputWithRelations, - PlatformFunctionGraphExecutionOutputSelect, - PlatformFunctionGraphExecutionOutputFilter, - PlatformFunctionGraphExecutionOutputOrderBy, - CreatePlatformFunctionGraphExecutionOutputInput, - UpdatePlatformFunctionGraphExecutionOutputInput, - PlatformFunctionGraphExecutionOutputPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; export class PlatformFunctionGraphExecutionOutputModel { constructor(private client: OrmClient) {} findMany( diff --git a/sdk/constructive-functions-hooks/src/compute/orm/models/platformFunctionGraphObject.ts b/sdk/constructive-functions-hooks/src/compute/orm/models/platformFunctionGraphObject.ts index 65b88689b..09867fbcd 100644 --- a/sdk/constructive-functions-hooks/src/compute/orm/models/platformFunctionGraphObject.ts +++ b/sdk/constructive-functions-hooks/src/compute/orm/models/platformFunctionGraphObject.ts @@ -4,36 +4,34 @@ * DO NOT EDIT - changes will be overwritten */ import { OrmClient } from '../client'; +import type { + CreatePlatformFunctionGraphObjectInput, + PlatformFunctionGraphObjectFilter, + PlatformFunctionGraphObjectOrderBy, + PlatformFunctionGraphObjectPatch, + PlatformFunctionGraphObjectSelect, + PlatformFunctionGraphObjectWithRelations, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; import { - QueryBuilder, - buildFindManyDocument, + buildCreateDocument, + buildDeleteByPkDocument, buildFindFirstDocument, + buildFindManyDocument, buildFindOneDocument, - buildCreateDocument, buildUpdateByPkDocument, - buildDeleteByPkDocument, + QueryBuilder, } from '../query-builder'; import type { ConnectionResult, - FindManyArgs, - FindFirstArgs, CreateArgs, - UpdateArgs, DeleteArgs, + FindFirstArgs, + FindManyArgs, InferSelectResult, StrictSelect, + UpdateArgs, } from '../select-types'; -import type { - PlatformFunctionGraphObject, - PlatformFunctionGraphObjectWithRelations, - PlatformFunctionGraphObjectSelect, - PlatformFunctionGraphObjectFilter, - PlatformFunctionGraphObjectOrderBy, - CreatePlatformFunctionGraphObjectInput, - UpdatePlatformFunctionGraphObjectInput, - PlatformFunctionGraphObjectPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; export class PlatformFunctionGraphObjectModel { constructor(private client: OrmClient) {} findMany( diff --git a/sdk/constructive-functions-hooks/src/compute/orm/models/platformFunctionGraphRef.ts b/sdk/constructive-functions-hooks/src/compute/orm/models/platformFunctionGraphRef.ts index 6990d8913..cbcdf7b66 100644 --- a/sdk/constructive-functions-hooks/src/compute/orm/models/platformFunctionGraphRef.ts +++ b/sdk/constructive-functions-hooks/src/compute/orm/models/platformFunctionGraphRef.ts @@ -4,36 +4,33 @@ * DO NOT EDIT - changes will be overwritten */ import { OrmClient } from '../client'; +import type { + CreatePlatformFunctionGraphRefInput, + PlatformFunctionGraphRefFilter, + PlatformFunctionGraphRefOrderBy, + PlatformFunctionGraphRefPatch, + PlatformFunctionGraphRefSelect, + PlatformFunctionGraphRefWithRelations, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, buildCreateDocument, - buildUpdateByPkDocument, buildDeleteByPkDocument, + buildFindFirstDocument, + buildFindManyDocument, + buildUpdateByPkDocument, + QueryBuilder, } from '../query-builder'; import type { ConnectionResult, - FindManyArgs, - FindFirstArgs, CreateArgs, - UpdateArgs, DeleteArgs, + FindFirstArgs, + FindManyArgs, InferSelectResult, StrictSelect, + UpdateArgs, } from '../select-types'; -import type { - PlatformFunctionGraphRef, - PlatformFunctionGraphRefWithRelations, - PlatformFunctionGraphRefSelect, - PlatformFunctionGraphRefFilter, - PlatformFunctionGraphRefOrderBy, - CreatePlatformFunctionGraphRefInput, - UpdatePlatformFunctionGraphRefInput, - PlatformFunctionGraphRefPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; export class PlatformFunctionGraphRefModel { constructor(private client: OrmClient) {} findMany( diff --git a/sdk/constructive-functions-hooks/src/compute/orm/models/platformFunctionGraphStore.ts b/sdk/constructive-functions-hooks/src/compute/orm/models/platformFunctionGraphStore.ts index 0b91e0897..f7a880cda 100644 --- a/sdk/constructive-functions-hooks/src/compute/orm/models/platformFunctionGraphStore.ts +++ b/sdk/constructive-functions-hooks/src/compute/orm/models/platformFunctionGraphStore.ts @@ -4,36 +4,33 @@ * DO NOT EDIT - changes will be overwritten */ import { OrmClient } from '../client'; +import type { + CreatePlatformFunctionGraphStoreInput, + PlatformFunctionGraphStoreFilter, + PlatformFunctionGraphStoreOrderBy, + PlatformFunctionGraphStorePatch, + PlatformFunctionGraphStoreSelect, + PlatformFunctionGraphStoreWithRelations, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, buildCreateDocument, - buildUpdateByPkDocument, buildDeleteByPkDocument, + buildFindFirstDocument, + buildFindManyDocument, + buildUpdateByPkDocument, + QueryBuilder, } from '../query-builder'; import type { ConnectionResult, - FindManyArgs, - FindFirstArgs, CreateArgs, - UpdateArgs, DeleteArgs, + FindFirstArgs, + FindManyArgs, InferSelectResult, StrictSelect, + UpdateArgs, } from '../select-types'; -import type { - PlatformFunctionGraphStore, - PlatformFunctionGraphStoreWithRelations, - PlatformFunctionGraphStoreSelect, - PlatformFunctionGraphStoreFilter, - PlatformFunctionGraphStoreOrderBy, - CreatePlatformFunctionGraphStoreInput, - UpdatePlatformFunctionGraphStoreInput, - PlatformFunctionGraphStorePatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; export class PlatformFunctionGraphStoreModel { constructor(private client: OrmClient) {} findMany( diff --git a/sdk/constructive-functions-hooks/src/compute/orm/models/platformFunctionInvocation.ts b/sdk/constructive-functions-hooks/src/compute/orm/models/platformFunctionInvocation.ts index f52ba9df3..293023ded 100644 --- a/sdk/constructive-functions-hooks/src/compute/orm/models/platformFunctionInvocation.ts +++ b/sdk/constructive-functions-hooks/src/compute/orm/models/platformFunctionInvocation.ts @@ -4,36 +4,33 @@ * DO NOT EDIT - changes will be overwritten */ import { OrmClient } from '../client'; +import type { + CreatePlatformFunctionInvocationInput, + PlatformFunctionInvocationFilter, + PlatformFunctionInvocationOrderBy, + PlatformFunctionInvocationPatch, + PlatformFunctionInvocationSelect, + PlatformFunctionInvocationWithRelations, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, buildCreateDocument, - buildUpdateByPkDocument, buildDeleteByPkDocument, + buildFindFirstDocument, + buildFindManyDocument, + buildUpdateByPkDocument, + QueryBuilder, } from '../query-builder'; import type { ConnectionResult, - FindManyArgs, - FindFirstArgs, CreateArgs, - UpdateArgs, DeleteArgs, + FindFirstArgs, + FindManyArgs, InferSelectResult, StrictSelect, + UpdateArgs, } from '../select-types'; -import type { - PlatformFunctionInvocation, - PlatformFunctionInvocationWithRelations, - PlatformFunctionInvocationSelect, - PlatformFunctionInvocationFilter, - PlatformFunctionInvocationOrderBy, - CreatePlatformFunctionInvocationInput, - UpdatePlatformFunctionInvocationInput, - PlatformFunctionInvocationPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; export class PlatformFunctionInvocationModel { constructor(private client: OrmClient) {} findMany( diff --git a/sdk/constructive-functions-hooks/src/compute/orm/models/platformSecretDefinition.ts b/sdk/constructive-functions-hooks/src/compute/orm/models/platformSecretDefinition.ts index f4aed0f9d..69877f510 100644 --- a/sdk/constructive-functions-hooks/src/compute/orm/models/platformSecretDefinition.ts +++ b/sdk/constructive-functions-hooks/src/compute/orm/models/platformSecretDefinition.ts @@ -4,36 +4,33 @@ * DO NOT EDIT - changes will be overwritten */ import { OrmClient } from '../client'; +import type { + CreatePlatformSecretDefinitionInput, + PlatformSecretDefinitionFilter, + PlatformSecretDefinitionOrderBy, + PlatformSecretDefinitionPatch, + PlatformSecretDefinitionSelect, + PlatformSecretDefinitionWithRelations, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, buildCreateDocument, - buildUpdateByPkDocument, buildDeleteByPkDocument, + buildFindFirstDocument, + buildFindManyDocument, + buildUpdateByPkDocument, + QueryBuilder, } from '../query-builder'; import type { ConnectionResult, - FindManyArgs, - FindFirstArgs, CreateArgs, - UpdateArgs, DeleteArgs, + FindFirstArgs, + FindManyArgs, InferSelectResult, StrictSelect, + UpdateArgs, } from '../select-types'; -import type { - PlatformSecretDefinition, - PlatformSecretDefinitionWithRelations, - PlatformSecretDefinitionSelect, - PlatformSecretDefinitionFilter, - PlatformSecretDefinitionOrderBy, - CreatePlatformSecretDefinitionInput, - UpdatePlatformSecretDefinitionInput, - PlatformSecretDefinitionPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; export class PlatformSecretDefinitionModel { constructor(private client: OrmClient) {} findMany( diff --git a/sdk/constructive-functions-hooks/src/compute/orm/models/platformUsageDaily.ts b/sdk/constructive-functions-hooks/src/compute/orm/models/platformUsageDaily.ts index ab946c293..a565a6561 100644 --- a/sdk/constructive-functions-hooks/src/compute/orm/models/platformUsageDaily.ts +++ b/sdk/constructive-functions-hooks/src/compute/orm/models/platformUsageDaily.ts @@ -4,36 +4,33 @@ * DO NOT EDIT - changes will be overwritten */ import { OrmClient } from '../client'; +import type { + CreatePlatformUsageDailyInput, + PlatformUsageDailyFilter, + PlatformUsageDailyOrderBy, + PlatformUsageDailyPatch, + PlatformUsageDailySelect, + PlatformUsageDailyWithRelations, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, buildCreateDocument, - buildUpdateByPkDocument, buildDeleteByPkDocument, + buildFindFirstDocument, + buildFindManyDocument, + buildUpdateByPkDocument, + QueryBuilder, } from '../query-builder'; import type { ConnectionResult, - FindManyArgs, - FindFirstArgs, CreateArgs, - UpdateArgs, DeleteArgs, + FindFirstArgs, + FindManyArgs, InferSelectResult, StrictSelect, + UpdateArgs, } from '../select-types'; -import type { - PlatformUsageDaily, - PlatformUsageDailyWithRelations, - PlatformUsageDailySelect, - PlatformUsageDailyFilter, - PlatformUsageDailyOrderBy, - CreatePlatformUsageDailyInput, - UpdatePlatformUsageDailyInput, - PlatformUsageDailyPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; export class PlatformUsageDailyModel { constructor(private client: OrmClient) {} findMany( diff --git a/sdk/constructive-functions-hooks/src/compute/orm/mutation/index.ts b/sdk/constructive-functions-hooks/src/compute/orm/mutation/index.ts index 614085f5b..a74bbb65c 100644 --- a/sdk/constructive-functions-hooks/src/compute/orm/mutation/index.ts +++ b/sdk/constructive-functions-hooks/src/compute/orm/mutation/index.ts @@ -4,56 +4,56 @@ * DO NOT EDIT - changes will be overwritten */ import { OrmClient } from '../client'; -import { QueryBuilder, buildCustomDocument } from '../query-builder'; -import type { InferSelectResult, StrictSelect } from '../select-types'; import type { - PlatformValidateFunctionGraphInput, InitEmptyRepoInput, - PlatformImportDefinitionsInput, - SetDataAtPathInput, - PlatformCopyGraphInput, - PlatformSaveGraphInput, - PlatformAddEdgeAndSaveInput, - PlatformAddNodeAndSaveInput, - PlatformCreateFunctionGraphInput, - PlatformAddEdgeInput, - PlatformAddNodeInput, - PlatformImportGraphJsonInput, - InsertNodeAtPathInput, - PlatformStartExecutionInput, - ProvisionBucketInput, - PlatformValidateFunctionGraphPayload, InitEmptyRepoPayload, - PlatformImportDefinitionsPayload, - SetDataAtPathPayload, - PlatformCopyGraphPayload, - PlatformSaveGraphPayload, + InitEmptyRepoPayloadSelect, + InsertNodeAtPathInput, + InsertNodeAtPathPayload, + InsertNodeAtPathPayloadSelect, + PlatformAddEdgeAndSaveInput, PlatformAddEdgeAndSavePayload, - PlatformAddNodeAndSavePayload, - PlatformCreateFunctionGraphPayload, + PlatformAddEdgeAndSavePayloadSelect, + PlatformAddEdgeInput, PlatformAddEdgePayload, + PlatformAddEdgePayloadSelect, + PlatformAddNodeAndSaveInput, + PlatformAddNodeAndSavePayload, + PlatformAddNodeAndSavePayloadSelect, + PlatformAddNodeInput, PlatformAddNodePayload, - PlatformImportGraphJsonPayload, - InsertNodeAtPathPayload, - PlatformStartExecutionPayload, - ProvisionBucketPayload, - PlatformValidateFunctionGraphPayloadSelect, - InitEmptyRepoPayloadSelect, - PlatformImportDefinitionsPayloadSelect, - SetDataAtPathPayloadSelect, + PlatformAddNodePayloadSelect, + PlatformCopyGraphInput, + PlatformCopyGraphPayload, PlatformCopyGraphPayloadSelect, - PlatformSaveGraphPayloadSelect, - PlatformAddEdgeAndSavePayloadSelect, - PlatformAddNodeAndSavePayloadSelect, + PlatformCreateFunctionGraphInput, + PlatformCreateFunctionGraphPayload, PlatformCreateFunctionGraphPayloadSelect, - PlatformAddEdgePayloadSelect, - PlatformAddNodePayloadSelect, + PlatformImportDefinitionsInput, + PlatformImportDefinitionsPayload, + PlatformImportDefinitionsPayloadSelect, + PlatformImportGraphJsonInput, + PlatformImportGraphJsonPayload, PlatformImportGraphJsonPayloadSelect, - InsertNodeAtPathPayloadSelect, + PlatformSaveGraphInput, + PlatformSaveGraphPayload, + PlatformSaveGraphPayloadSelect, + PlatformStartExecutionInput, + PlatformStartExecutionPayload, PlatformStartExecutionPayloadSelect, + PlatformValidateFunctionGraphInput, + PlatformValidateFunctionGraphPayload, + PlatformValidateFunctionGraphPayloadSelect, + ProvisionBucketInput, + ProvisionBucketPayload, ProvisionBucketPayloadSelect, + SetDataAtPathInput, + SetDataAtPathPayload, + SetDataAtPathPayloadSelect, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; +import { buildCustomDocument,QueryBuilder } from '../query-builder'; +import type { InferSelectResult, StrictSelect } from '../select-types'; export interface PlatformValidateFunctionGraphVariables { input: PlatformValidateFunctionGraphInput; } diff --git a/sdk/constructive-functions-hooks/src/compute/orm/query/index.ts b/sdk/constructive-functions-hooks/src/compute/orm/query/index.ts index 7cf9d02bd..dc937e1c6 100644 --- a/sdk/constructive-functions-hooks/src/compute/orm/query/index.ts +++ b/sdk/constructive-functions-hooks/src/compute/orm/query/index.ts @@ -4,9 +4,8 @@ * DO NOT EDIT - changes will be overwritten */ import { OrmClient } from '../client'; -import { QueryBuilder, buildCustomDocument } from '../query-builder'; -import type { InferSelectResult, StrictSelect } from '../select-types'; import { connectionFieldsMap } from '../input-types'; +import { buildCustomDocument,QueryBuilder } from '../query-builder'; export interface PlatformReadFunctionGraphVariables { graphId?: string; } diff --git a/sdk/constructive-functions-hooks/src/compute/schema-types.ts b/sdk/constructive-functions-hooks/src/compute/schema-types.ts index 96bda972c..5620a9455 100644 --- a/sdk/constructive-functions-hooks/src/compute/schema-types.ts +++ b/sdk/constructive-functions-hooks/src/compute/schema-types.ts @@ -5,7 +5,13 @@ */ import type { + BigIntFilter, + BooleanFilter, + DateFilter, + DatetimeFilter, GetAllRecord, + IntFilter, + JSONFilter, OrgFunctionExecutionLog, OrgFunctionInvocation, PlatformComputeLog, @@ -22,23 +28,10 @@ import type { PlatformFunctionInvocation, PlatformSecretDefinition, PlatformUsageDaily, - BigFloatFilter, - BigIntFilter, - BitStringFilter, - BooleanFilter, - DateFilter, - DatetimeFilter, - FloatFilter, - FullTextFilter, - IntFilter, - IntListFilter, - InternetAddressFilter, - JSONFilter, StringFilter, StringListFilter, UUIDFilter, UUIDListFilter, - VectorFilter, } from './types'; export type Base64EncodedBinary = unknown; /** Methods to use when ordering `PlatformFunctionGraphRef`. */ diff --git a/sdk/constructive-functions-hooks/src/objects/hooks/index.ts b/sdk/constructive-functions-hooks/src/objects/hooks/index.ts index 68446e318..219a63475 100644 --- a/sdk/constructive-functions-hooks/src/objects/hooks/index.ts +++ b/sdk/constructive-functions-hooks/src/objects/hooks/index.ts @@ -32,8 +32,8 @@ * ``` */ export * from './client'; -export * from './query-keys'; -export * from './mutation-keys'; export * from './invalidation'; -export * from './queries'; +export * from './mutation-keys'; export * from './mutations'; +export * from './queries'; +export * from './query-keys'; diff --git a/sdk/constructive-functions-hooks/src/objects/hooks/invalidation.ts b/sdk/constructive-functions-hooks/src/objects/hooks/invalidation.ts index 27a27cd2e..166042ae7 100644 --- a/sdk/constructive-functions-hooks/src/objects/hooks/invalidation.ts +++ b/sdk/constructive-functions-hooks/src/objects/hooks/invalidation.ts @@ -14,7 +14,8 @@ // ============================================================================ import type { QueryClient } from '@tanstack/react-query'; -import { getAllRecordKeys, storeKeys, refKeys, objectKeys, commitKeys } from './query-keys'; + +import { commitKeys,getAllRecordKeys, objectKeys, refKeys, storeKeys } from './query-keys'; /** // ============================================================================ // Invalidation Helpers diff --git a/sdk/constructive-functions-hooks/src/objects/hooks/mutations/index.ts b/sdk/constructive-functions-hooks/src/objects/hooks/mutations/index.ts index 27882a851..1b0f0b7fe 100644 --- a/sdk/constructive-functions-hooks/src/objects/hooks/mutations/index.ts +++ b/sdk/constructive-functions-hooks/src/objects/hooks/mutations/index.ts @@ -3,20 +3,20 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ +export * from './useCreateCommitMutation'; export * from './useCreateGetAllRecordMutation'; -export * from './useCreateStoreMutation'; -export * from './useUpdateStoreMutation'; -export * from './useDeleteStoreMutation'; -export * from './useCreateRefMutation'; -export * from './useUpdateRefMutation'; -export * from './useDeleteRefMutation'; export * from './useCreateObjectMutation'; -export * from './useUpdateObjectMutation'; -export * from './useDeleteObjectMutation'; -export * from './useCreateCommitMutation'; -export * from './useUpdateCommitMutation'; +export * from './useCreateRefMutation'; +export * from './useCreateStoreMutation'; export * from './useDeleteCommitMutation'; +export * from './useDeleteObjectMutation'; +export * from './useDeleteRefMutation'; +export * from './useDeleteStoreMutation'; export * from './useInitEmptyRepoMutation'; -export * from './useSetDataAtPathMutation'; export * from './useInsertNodeAtPathMutation'; export * from './useProvisionBucketMutation'; +export * from './useSetDataAtPathMutation'; +export * from './useUpdateCommitMutation'; +export * from './useUpdateObjectMutation'; +export * from './useUpdateRefMutation'; +export * from './useUpdateStoreMutation'; diff --git a/sdk/constructive-functions-hooks/src/objects/hooks/mutations/useCreateCommitMutation.ts b/sdk/constructive-functions-hooks/src/objects/hooks/mutations/useCreateCommitMutation.ts index c35be0512..04c37d74e 100644 --- a/sdk/constructive-functions-hooks/src/objects/hooks/mutations/useCreateCommitMutation.ts +++ b/sdk/constructive-functions-hooks/src/objects/hooks/mutations/useCreateCommitMutation.ts @@ -4,15 +4,16 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; + +import type { CommitSelect, CommitWithRelations, CreateCommitInput } from '../../orm/input-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { commitKeys } from '../query-keys'; import { commitMutationKeys } from '../mutation-keys'; -import type { CommitSelect, CommitWithRelations, CreateCommitInput } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import { commitKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { CommitSelect, CommitWithRelations, CreateCommitInput } from '../../orm/input-types'; /** * Commit history — each commit snapshots a tree root for a store diff --git a/sdk/constructive-functions-hooks/src/objects/hooks/mutations/useCreateGetAllRecordMutation.ts b/sdk/constructive-functions-hooks/src/objects/hooks/mutations/useCreateGetAllRecordMutation.ts index d7761690b..599b0b62d 100644 --- a/sdk/constructive-functions-hooks/src/objects/hooks/mutations/useCreateGetAllRecordMutation.ts +++ b/sdk/constructive-functions-hooks/src/objects/hooks/mutations/useCreateGetAllRecordMutation.ts @@ -4,23 +4,24 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { getAllRecordKeys } from '../query-keys'; -import { getAllRecordMutationKeys } from '../mutation-keys'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; + import type { + CreateGetAllRecordInput, GetAllRecordSelect, GetAllRecordWithRelations, - CreateGetAllRecordInput, } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; +import { getClient } from '../client'; +import { getAllRecordMutationKeys } from '../mutation-keys'; +import { getAllRecordKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { + CreateGetAllRecordInput, GetAllRecordSelect, GetAllRecordWithRelations, - CreateGetAllRecordInput, } from '../../orm/input-types'; /** * Mutation hook for creating a GetAllRecord diff --git a/sdk/constructive-functions-hooks/src/objects/hooks/mutations/useCreateObjectMutation.ts b/sdk/constructive-functions-hooks/src/objects/hooks/mutations/useCreateObjectMutation.ts index ad92e1f7c..5e5d01b12 100644 --- a/sdk/constructive-functions-hooks/src/objects/hooks/mutations/useCreateObjectMutation.ts +++ b/sdk/constructive-functions-hooks/src/objects/hooks/mutations/useCreateObjectMutation.ts @@ -4,16 +4,17 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; + +import type { CreateObjectInput,ObjectSelect, ObjectWithRelations } from '../../orm/input-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { objectKeys } from '../query-keys'; import { objectMutationKeys } from '../mutation-keys'; -import type { ObjectSelect, ObjectWithRelations, CreateObjectInput } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { ObjectSelect, ObjectWithRelations, CreateObjectInput } from '../../orm/input-types'; +import { objectKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; +export type { CreateObjectInput,ObjectSelect, ObjectWithRelations } from '../../orm/input-types'; /** * Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children * diff --git a/sdk/constructive-functions-hooks/src/objects/hooks/mutations/useCreateRefMutation.ts b/sdk/constructive-functions-hooks/src/objects/hooks/mutations/useCreateRefMutation.ts index 93cda72e8..cd0d1200e 100644 --- a/sdk/constructive-functions-hooks/src/objects/hooks/mutations/useCreateRefMutation.ts +++ b/sdk/constructive-functions-hooks/src/objects/hooks/mutations/useCreateRefMutation.ts @@ -4,16 +4,17 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; + +import type { CreateRefInput,RefSelect, RefWithRelations } from '../../orm/input-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { refKeys } from '../query-keys'; import { refMutationKeys } from '../mutation-keys'; -import type { RefSelect, RefWithRelations, CreateRefInput } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { RefSelect, RefWithRelations, CreateRefInput } from '../../orm/input-types'; +import { refKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; +export type { CreateRefInput,RefSelect, RefWithRelations } from '../../orm/input-types'; /** * Branch heads — mutable pointers into the commit chain * diff --git a/sdk/constructive-functions-hooks/src/objects/hooks/mutations/useCreateStoreMutation.ts b/sdk/constructive-functions-hooks/src/objects/hooks/mutations/useCreateStoreMutation.ts index 6f37fd67d..4bfa49bac 100644 --- a/sdk/constructive-functions-hooks/src/objects/hooks/mutations/useCreateStoreMutation.ts +++ b/sdk/constructive-functions-hooks/src/objects/hooks/mutations/useCreateStoreMutation.ts @@ -4,16 +4,17 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; + +import type { CreateStoreInput,StoreSelect, StoreWithRelations } from '../../orm/input-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { storeKeys } from '../query-keys'; import { storeMutationKeys } from '../mutation-keys'; -import type { StoreSelect, StoreWithRelations, CreateStoreInput } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { StoreSelect, StoreWithRelations, CreateStoreInput } from '../../orm/input-types'; +import { storeKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; +export type { CreateStoreInput,StoreSelect, StoreWithRelations } from '../../orm/input-types'; /** * Named stores — one per version-controlled tree (e.g. one graph, one definition set) * diff --git a/sdk/constructive-functions-hooks/src/objects/hooks/mutations/useDeleteCommitMutation.ts b/sdk/constructive-functions-hooks/src/objects/hooks/mutations/useDeleteCommitMutation.ts index 4b3a5ed45..6eb58eab3 100644 --- a/sdk/constructive-functions-hooks/src/objects/hooks/mutations/useDeleteCommitMutation.ts +++ b/sdk/constructive-functions-hooks/src/objects/hooks/mutations/useDeleteCommitMutation.ts @@ -4,15 +4,16 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; + +import type { CommitSelect, CommitWithRelations } from '../../orm/input-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { commitKeys } from '../query-keys'; import { commitMutationKeys } from '../mutation-keys'; -import type { CommitSelect, CommitWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import { commitKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { CommitSelect, CommitWithRelations } from '../../orm/input-types'; /** * Commit history — each commit snapshots a tree root for a store diff --git a/sdk/constructive-functions-hooks/src/objects/hooks/mutations/useDeleteObjectMutation.ts b/sdk/constructive-functions-hooks/src/objects/hooks/mutations/useDeleteObjectMutation.ts index 773c2456e..5abe308a5 100644 --- a/sdk/constructive-functions-hooks/src/objects/hooks/mutations/useDeleteObjectMutation.ts +++ b/sdk/constructive-functions-hooks/src/objects/hooks/mutations/useDeleteObjectMutation.ts @@ -4,15 +4,16 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; + +import type { ObjectSelect, ObjectWithRelations } from '../../orm/input-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { objectKeys } from '../query-keys'; import { objectMutationKeys } from '../mutation-keys'; -import type { ObjectSelect, ObjectWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import { objectKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { ObjectSelect, ObjectWithRelations } from '../../orm/input-types'; /** * Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children diff --git a/sdk/constructive-functions-hooks/src/objects/hooks/mutations/useDeleteRefMutation.ts b/sdk/constructive-functions-hooks/src/objects/hooks/mutations/useDeleteRefMutation.ts index 32cfb9b2e..b09bfcca0 100644 --- a/sdk/constructive-functions-hooks/src/objects/hooks/mutations/useDeleteRefMutation.ts +++ b/sdk/constructive-functions-hooks/src/objects/hooks/mutations/useDeleteRefMutation.ts @@ -4,15 +4,16 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; + +import type { RefSelect, RefWithRelations } from '../../orm/input-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { refKeys } from '../query-keys'; import { refMutationKeys } from '../mutation-keys'; -import type { RefSelect, RefWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import { refKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { RefSelect, RefWithRelations } from '../../orm/input-types'; /** * Branch heads — mutable pointers into the commit chain diff --git a/sdk/constructive-functions-hooks/src/objects/hooks/mutations/useDeleteStoreMutation.ts b/sdk/constructive-functions-hooks/src/objects/hooks/mutations/useDeleteStoreMutation.ts index b3f8aa912..6bc3013f8 100644 --- a/sdk/constructive-functions-hooks/src/objects/hooks/mutations/useDeleteStoreMutation.ts +++ b/sdk/constructive-functions-hooks/src/objects/hooks/mutations/useDeleteStoreMutation.ts @@ -4,15 +4,16 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; + +import type { StoreSelect, StoreWithRelations } from '../../orm/input-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { storeKeys } from '../query-keys'; import { storeMutationKeys } from '../mutation-keys'; -import type { StoreSelect, StoreWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import { storeKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { StoreSelect, StoreWithRelations } from '../../orm/input-types'; /** * Named stores — one per version-controlled tree (e.g. one graph, one definition set) diff --git a/sdk/constructive-functions-hooks/src/objects/hooks/mutations/useInitEmptyRepoMutation.ts b/sdk/constructive-functions-hooks/src/objects/hooks/mutations/useInitEmptyRepoMutation.ts index f82dc9e02..b5c4e6359 100644 --- a/sdk/constructive-functions-hooks/src/objects/hooks/mutations/useInitEmptyRepoMutation.ts +++ b/sdk/constructive-functions-hooks/src/objects/hooks/mutations/useInitEmptyRepoMutation.ts @@ -4,17 +4,17 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { useMutation } from '@tanstack/react-query'; + +import type { InitEmptyRepoPayload,InitEmptyRepoPayloadSelect } from '../../orm/input-types'; +import type { InitEmptyRepoVariables } from '../../orm/mutation'; +import type { HookStrictSelect, InferSelectResult, StrictSelect } from '../../orm/select-types'; import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; import { customMutationKeys } from '../mutation-keys'; -import type { InitEmptyRepoVariables } from '../../orm/mutation'; -import type { InitEmptyRepoPayloadSelect, InitEmptyRepoPayload } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; -export type { InitEmptyRepoVariables } from '../../orm/mutation'; +import { buildSelectionArgs } from '../selection'; export type { InitEmptyRepoPayloadSelect } from '../../orm/input-types'; +export type { InitEmptyRepoVariables } from '../../orm/mutation'; export function useInitEmptyRepoMutation( params: { selection: { diff --git a/sdk/constructive-functions-hooks/src/objects/hooks/mutations/useInsertNodeAtPathMutation.ts b/sdk/constructive-functions-hooks/src/objects/hooks/mutations/useInsertNodeAtPathMutation.ts index 9da7a1bd5..1336ffc71 100644 --- a/sdk/constructive-functions-hooks/src/objects/hooks/mutations/useInsertNodeAtPathMutation.ts +++ b/sdk/constructive-functions-hooks/src/objects/hooks/mutations/useInsertNodeAtPathMutation.ts @@ -4,17 +4,17 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { useMutation } from '@tanstack/react-query'; + +import type { InsertNodeAtPathPayload,InsertNodeAtPathPayloadSelect } from '../../orm/input-types'; +import type { InsertNodeAtPathVariables } from '../../orm/mutation'; +import type { HookStrictSelect, InferSelectResult, StrictSelect } from '../../orm/select-types'; import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; import { customMutationKeys } from '../mutation-keys'; -import type { InsertNodeAtPathVariables } from '../../orm/mutation'; -import type { InsertNodeAtPathPayloadSelect, InsertNodeAtPathPayload } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; -export type { InsertNodeAtPathVariables } from '../../orm/mutation'; +import { buildSelectionArgs } from '../selection'; export type { InsertNodeAtPathPayloadSelect } from '../../orm/input-types'; +export type { InsertNodeAtPathVariables } from '../../orm/mutation'; export function useInsertNodeAtPathMutation( params: { selection: { diff --git a/sdk/constructive-functions-hooks/src/objects/hooks/mutations/useProvisionBucketMutation.ts b/sdk/constructive-functions-hooks/src/objects/hooks/mutations/useProvisionBucketMutation.ts index 2613680e6..140fef986 100644 --- a/sdk/constructive-functions-hooks/src/objects/hooks/mutations/useProvisionBucketMutation.ts +++ b/sdk/constructive-functions-hooks/src/objects/hooks/mutations/useProvisionBucketMutation.ts @@ -4,17 +4,17 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { useMutation } from '@tanstack/react-query'; + +import type { ProvisionBucketPayload,ProvisionBucketPayloadSelect } from '../../orm/input-types'; +import type { ProvisionBucketVariables } from '../../orm/mutation'; +import type { HookStrictSelect, InferSelectResult, StrictSelect } from '../../orm/select-types'; import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; import { customMutationKeys } from '../mutation-keys'; -import type { ProvisionBucketVariables } from '../../orm/mutation'; -import type { ProvisionBucketPayloadSelect, ProvisionBucketPayload } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; -export type { ProvisionBucketVariables } from '../../orm/mutation'; +import { buildSelectionArgs } from '../selection'; export type { ProvisionBucketPayloadSelect } from '../../orm/input-types'; +export type { ProvisionBucketVariables } from '../../orm/mutation'; export function useProvisionBucketMutation( params: { selection: { diff --git a/sdk/constructive-functions-hooks/src/objects/hooks/mutations/useSetDataAtPathMutation.ts b/sdk/constructive-functions-hooks/src/objects/hooks/mutations/useSetDataAtPathMutation.ts index 63f39667a..03fd1da2d 100644 --- a/sdk/constructive-functions-hooks/src/objects/hooks/mutations/useSetDataAtPathMutation.ts +++ b/sdk/constructive-functions-hooks/src/objects/hooks/mutations/useSetDataAtPathMutation.ts @@ -4,17 +4,17 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { useMutation } from '@tanstack/react-query'; + +import type { SetDataAtPathPayload,SetDataAtPathPayloadSelect } from '../../orm/input-types'; +import type { SetDataAtPathVariables } from '../../orm/mutation'; +import type { HookStrictSelect, InferSelectResult, StrictSelect } from '../../orm/select-types'; import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; import { customMutationKeys } from '../mutation-keys'; -import type { SetDataAtPathVariables } from '../../orm/mutation'; -import type { SetDataAtPathPayloadSelect, SetDataAtPathPayload } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; -export type { SetDataAtPathVariables } from '../../orm/mutation'; +import { buildSelectionArgs } from '../selection'; export type { SetDataAtPathPayloadSelect } from '../../orm/input-types'; +export type { SetDataAtPathVariables } from '../../orm/mutation'; export function useSetDataAtPathMutation( params: { selection: { diff --git a/sdk/constructive-functions-hooks/src/objects/hooks/mutations/useUpdateCommitMutation.ts b/sdk/constructive-functions-hooks/src/objects/hooks/mutations/useUpdateCommitMutation.ts index b431e603f..9ab6366f5 100644 --- a/sdk/constructive-functions-hooks/src/objects/hooks/mutations/useUpdateCommitMutation.ts +++ b/sdk/constructive-functions-hooks/src/objects/hooks/mutations/useUpdateCommitMutation.ts @@ -4,16 +4,17 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; + +import type { CommitPatch,CommitSelect, CommitWithRelations } from '../../orm/input-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { commitKeys } from '../query-keys'; import { commitMutationKeys } from '../mutation-keys'; -import type { CommitSelect, CommitWithRelations, CommitPatch } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { CommitSelect, CommitWithRelations, CommitPatch } from '../../orm/input-types'; +import { commitKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; +export type { CommitPatch,CommitSelect, CommitWithRelations } from '../../orm/input-types'; /** * Commit history — each commit snapshots a tree root for a store * diff --git a/sdk/constructive-functions-hooks/src/objects/hooks/mutations/useUpdateObjectMutation.ts b/sdk/constructive-functions-hooks/src/objects/hooks/mutations/useUpdateObjectMutation.ts index 1fcacaaf2..158e0f967 100644 --- a/sdk/constructive-functions-hooks/src/objects/hooks/mutations/useUpdateObjectMutation.ts +++ b/sdk/constructive-functions-hooks/src/objects/hooks/mutations/useUpdateObjectMutation.ts @@ -4,16 +4,17 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; + +import type { ObjectPatch,ObjectSelect, ObjectWithRelations } from '../../orm/input-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { objectKeys } from '../query-keys'; import { objectMutationKeys } from '../mutation-keys'; -import type { ObjectSelect, ObjectWithRelations, ObjectPatch } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { ObjectSelect, ObjectWithRelations, ObjectPatch } from '../../orm/input-types'; +import { objectKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; +export type { ObjectPatch,ObjectSelect, ObjectWithRelations } from '../../orm/input-types'; /** * Content-addressed Merkle tree objects keyed by UUID v5 hash of data + children * diff --git a/sdk/constructive-functions-hooks/src/objects/hooks/mutations/useUpdateRefMutation.ts b/sdk/constructive-functions-hooks/src/objects/hooks/mutations/useUpdateRefMutation.ts index 6246f1531..037912740 100644 --- a/sdk/constructive-functions-hooks/src/objects/hooks/mutations/useUpdateRefMutation.ts +++ b/sdk/constructive-functions-hooks/src/objects/hooks/mutations/useUpdateRefMutation.ts @@ -4,16 +4,17 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; + +import type { RefPatch,RefSelect, RefWithRelations } from '../../orm/input-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { refKeys } from '../query-keys'; import { refMutationKeys } from '../mutation-keys'; -import type { RefSelect, RefWithRelations, RefPatch } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { RefSelect, RefWithRelations, RefPatch } from '../../orm/input-types'; +import { refKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; +export type { RefPatch,RefSelect, RefWithRelations } from '../../orm/input-types'; /** * Branch heads — mutable pointers into the commit chain * diff --git a/sdk/constructive-functions-hooks/src/objects/hooks/mutations/useUpdateStoreMutation.ts b/sdk/constructive-functions-hooks/src/objects/hooks/mutations/useUpdateStoreMutation.ts index 79e5989ec..f83e2c67a 100644 --- a/sdk/constructive-functions-hooks/src/objects/hooks/mutations/useUpdateStoreMutation.ts +++ b/sdk/constructive-functions-hooks/src/objects/hooks/mutations/useUpdateStoreMutation.ts @@ -4,16 +4,17 @@ * DO NOT EDIT - changes will be overwritten */ -import { useMutation, useQueryClient } from '@tanstack/react-query'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { useMutation, useQueryClient } from '@tanstack/react-query'; + +import type { StorePatch,StoreSelect, StoreWithRelations } from '../../orm/input-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { storeKeys } from '../query-keys'; import { storeMutationKeys } from '../mutation-keys'; -import type { StoreSelect, StoreWithRelations, StorePatch } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; -export type { StoreSelect, StoreWithRelations, StorePatch } from '../../orm/input-types'; +import { storeKeys } from '../query-keys'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; +export type { StorePatch,StoreSelect, StoreWithRelations } from '../../orm/input-types'; /** * Named stores — one per version-controlled tree (e.g. one graph, one definition set) * diff --git a/sdk/constructive-functions-hooks/src/objects/hooks/queries/index.ts b/sdk/constructive-functions-hooks/src/objects/hooks/queries/index.ts index e9c4d2c25..45758a71c 100644 --- a/sdk/constructive-functions-hooks/src/objects/hooks/queries/index.ts +++ b/sdk/constructive-functions-hooks/src/objects/hooks/queries/index.ts @@ -3,12 +3,12 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ +export * from './useCommitQuery'; +export * from './useCommitsQuery'; export * from './useGetAllQuery'; -export * from './useStoresQuery'; -export * from './useStoreQuery'; -export * from './useRefsQuery'; -export * from './useRefQuery'; -export * from './useObjectsQuery'; export * from './useObjectQuery'; -export * from './useCommitsQuery'; -export * from './useCommitQuery'; +export * from './useObjectsQuery'; +export * from './useRefQuery'; +export * from './useRefsQuery'; +export * from './useStoreQuery'; +export * from './useStoresQuery'; diff --git a/sdk/constructive-functions-hooks/src/objects/hooks/queries/useCommitQuery.ts b/sdk/constructive-functions-hooks/src/objects/hooks/queries/useCommitQuery.ts index cc1f20df4..570291c55 100644 --- a/sdk/constructive-functions-hooks/src/objects/hooks/queries/useCommitQuery.ts +++ b/sdk/constructive-functions-hooks/src/objects/hooks/queries/useCommitQuery.ts @@ -4,14 +4,15 @@ * DO NOT EDIT - changes will be overwritten */ +import type { QueryClient,UseQueryOptions, UseQueryResult } from '@tanstack/react-query'; import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; + +import type { CommitSelect, CommitWithRelations } from '../../orm/input-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; import { commitKeys } from '../query-keys'; -import type { CommitSelect, CommitWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { CommitSelect, CommitWithRelations } from '../../orm/input-types'; /** Query key factory - re-exported from query-keys.ts */ export const commitQueryKey = commitKeys.detail; diff --git a/sdk/constructive-functions-hooks/src/objects/hooks/queries/useCommitsQuery.ts b/sdk/constructive-functions-hooks/src/objects/hooks/queries/useCommitsQuery.ts index 55ce979e2..1a5c9cfd2 100644 --- a/sdk/constructive-functions-hooks/src/objects/hooks/queries/useCommitsQuery.ts +++ b/sdk/constructive-functions-hooks/src/objects/hooks/queries/useCommitsQuery.ts @@ -4,29 +4,29 @@ * DO NOT EDIT - changes will be overwritten */ +import type { QueryClient,UseQueryOptions, UseQueryResult } from '@tanstack/react-query'; import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { commitKeys } from '../query-keys'; + import type { - CommitSelect, - CommitWithRelations, CommitFilter, CommitOrderBy, + CommitSelect, + CommitWithRelations, } from '../../orm/input-types'; import type { - FindManyArgs, - InferSelectResult, ConnectionResult, HookStrictSelect, + InferSelectResult, } from '../../orm/select-types'; +import { getClient } from '../client'; +import { commitKeys } from '../query-keys'; +import type { ListSelectionConfig } from '../selection'; +import { buildListSelectionArgs } from '../selection'; export type { - CommitSelect, - CommitWithRelations, CommitFilter, CommitOrderBy, + CommitSelect, + CommitWithRelations, } from '../../orm/input-types'; /** Query key factory - re-exported from query-keys.ts */ export const commitsQueryKey = commitKeys.list; diff --git a/sdk/constructive-functions-hooks/src/objects/hooks/queries/useGetAllQuery.ts b/sdk/constructive-functions-hooks/src/objects/hooks/queries/useGetAllQuery.ts index fa74ed4aa..0ccd70a03 100644 --- a/sdk/constructive-functions-hooks/src/objects/hooks/queries/useGetAllQuery.ts +++ b/sdk/constructive-functions-hooks/src/objects/hooks/queries/useGetAllQuery.ts @@ -4,29 +4,29 @@ * DO NOT EDIT - changes will be overwritten */ +import type { QueryClient,UseQueryOptions, UseQueryResult } from '@tanstack/react-query'; import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { getAllRecordKeys } from '../query-keys'; + import type { - GetAllRecordSelect, - GetAllRecordWithRelations, GetAllRecordFilter, + GetAllRecordSelect, GetAllRecordsOrderBy, + GetAllRecordWithRelations, } from '../../orm/input-types'; import type { - FindManyArgs, - InferSelectResult, ConnectionResult, HookStrictSelect, + InferSelectResult, } from '../../orm/select-types'; +import { getClient } from '../client'; +import { getAllRecordKeys } from '../query-keys'; +import type { ListSelectionConfig } from '../selection'; +import { buildListSelectionArgs } from '../selection'; export type { - GetAllRecordSelect, - GetAllRecordWithRelations, GetAllRecordFilter, + GetAllRecordSelect, GetAllRecordsOrderBy, + GetAllRecordWithRelations, } from '../../orm/input-types'; /** Query key factory - re-exported from query-keys.ts */ export const getAllQueryKey = getAllRecordKeys.list; diff --git a/sdk/constructive-functions-hooks/src/objects/hooks/queries/useObjectQuery.ts b/sdk/constructive-functions-hooks/src/objects/hooks/queries/useObjectQuery.ts index e396c5832..b5e30e070 100644 --- a/sdk/constructive-functions-hooks/src/objects/hooks/queries/useObjectQuery.ts +++ b/sdk/constructive-functions-hooks/src/objects/hooks/queries/useObjectQuery.ts @@ -4,14 +4,15 @@ * DO NOT EDIT - changes will be overwritten */ +import type { QueryClient,UseQueryOptions, UseQueryResult } from '@tanstack/react-query'; import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; + +import type { ObjectSelect, ObjectWithRelations } from '../../orm/input-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; import { objectKeys } from '../query-keys'; -import type { ObjectSelect, ObjectWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { ObjectSelect, ObjectWithRelations } from '../../orm/input-types'; /** Query key factory - re-exported from query-keys.ts */ export const getNodeAtPathQueryKey = objectKeys.detail; diff --git a/sdk/constructive-functions-hooks/src/objects/hooks/queries/useObjectsQuery.ts b/sdk/constructive-functions-hooks/src/objects/hooks/queries/useObjectsQuery.ts index 64d260b53..469b82f03 100644 --- a/sdk/constructive-functions-hooks/src/objects/hooks/queries/useObjectsQuery.ts +++ b/sdk/constructive-functions-hooks/src/objects/hooks/queries/useObjectsQuery.ts @@ -4,29 +4,29 @@ * DO NOT EDIT - changes will be overwritten */ +import type { QueryClient,UseQueryOptions, UseQueryResult } from '@tanstack/react-query'; import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { objectKeys } from '../query-keys'; + import type { - ObjectSelect, - ObjectWithRelations, ObjectFilter, ObjectOrderBy, + ObjectSelect, + ObjectWithRelations, } from '../../orm/input-types'; import type { - FindManyArgs, - InferSelectResult, ConnectionResult, HookStrictSelect, + InferSelectResult, } from '../../orm/select-types'; +import { getClient } from '../client'; +import { objectKeys } from '../query-keys'; +import type { ListSelectionConfig } from '../selection'; +import { buildListSelectionArgs } from '../selection'; export type { - ObjectSelect, - ObjectWithRelations, ObjectFilter, ObjectOrderBy, + ObjectSelect, + ObjectWithRelations, } from '../../orm/input-types'; /** Query key factory - re-exported from query-keys.ts */ export const objectsQueryKey = objectKeys.list; diff --git a/sdk/constructive-functions-hooks/src/objects/hooks/queries/useRefQuery.ts b/sdk/constructive-functions-hooks/src/objects/hooks/queries/useRefQuery.ts index 6ec9182b5..a90b6e970 100644 --- a/sdk/constructive-functions-hooks/src/objects/hooks/queries/useRefQuery.ts +++ b/sdk/constructive-functions-hooks/src/objects/hooks/queries/useRefQuery.ts @@ -4,14 +4,15 @@ * DO NOT EDIT - changes will be overwritten */ +import type { QueryClient,UseQueryOptions, UseQueryResult } from '@tanstack/react-query'; import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; + +import type { RefSelect, RefWithRelations } from '../../orm/input-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; import { refKeys } from '../query-keys'; -import type { RefSelect, RefWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { RefSelect, RefWithRelations } from '../../orm/input-types'; /** Query key factory - re-exported from query-keys.ts */ export const refQueryKey = refKeys.detail; diff --git a/sdk/constructive-functions-hooks/src/objects/hooks/queries/useRefsQuery.ts b/sdk/constructive-functions-hooks/src/objects/hooks/queries/useRefsQuery.ts index b0aff9df3..11215017d 100644 --- a/sdk/constructive-functions-hooks/src/objects/hooks/queries/useRefsQuery.ts +++ b/sdk/constructive-functions-hooks/src/objects/hooks/queries/useRefsQuery.ts @@ -4,20 +4,20 @@ * DO NOT EDIT - changes will be overwritten */ +import type { QueryClient,UseQueryOptions, UseQueryResult } from '@tanstack/react-query'; import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { refKeys } from '../query-keys'; -import type { RefSelect, RefWithRelations, RefFilter, RefOrderBy } from '../../orm/input-types'; + +import type { RefFilter, RefOrderBy,RefSelect, RefWithRelations } from '../../orm/input-types'; import type { - FindManyArgs, - InferSelectResult, ConnectionResult, HookStrictSelect, + InferSelectResult, } from '../../orm/select-types'; -export type { RefSelect, RefWithRelations, RefFilter, RefOrderBy } from '../../orm/input-types'; +import { getClient } from '../client'; +import { refKeys } from '../query-keys'; +import type { ListSelectionConfig } from '../selection'; +import { buildListSelectionArgs } from '../selection'; +export type { RefFilter, RefOrderBy,RefSelect, RefWithRelations } from '../../orm/input-types'; /** Query key factory - re-exported from query-keys.ts */ export const refsQueryKey = refKeys.list; /** diff --git a/sdk/constructive-functions-hooks/src/objects/hooks/queries/useStoreQuery.ts b/sdk/constructive-functions-hooks/src/objects/hooks/queries/useStoreQuery.ts index 5a0e159c0..b651bd1ef 100644 --- a/sdk/constructive-functions-hooks/src/objects/hooks/queries/useStoreQuery.ts +++ b/sdk/constructive-functions-hooks/src/objects/hooks/queries/useStoreQuery.ts @@ -4,14 +4,15 @@ * DO NOT EDIT - changes will be overwritten */ +import type { QueryClient,UseQueryOptions, UseQueryResult } from '@tanstack/react-query'; import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; + +import type { StoreSelect, StoreWithRelations } from '../../orm/input-types'; +import type { HookStrictSelect,InferSelectResult } from '../../orm/select-types'; import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; import { storeKeys } from '../query-keys'; -import type { StoreSelect, StoreWithRelations } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +import type { SelectionConfig } from '../selection'; +import { buildSelectionArgs } from '../selection'; export type { StoreSelect, StoreWithRelations } from '../../orm/input-types'; /** Query key factory - re-exported from query-keys.ts */ export const storeQueryKey = storeKeys.detail; diff --git a/sdk/constructive-functions-hooks/src/objects/hooks/queries/useStoresQuery.ts b/sdk/constructive-functions-hooks/src/objects/hooks/queries/useStoresQuery.ts index 579205fe4..8c76d34f6 100644 --- a/sdk/constructive-functions-hooks/src/objects/hooks/queries/useStoresQuery.ts +++ b/sdk/constructive-functions-hooks/src/objects/hooks/queries/useStoresQuery.ts @@ -4,29 +4,29 @@ * DO NOT EDIT - changes will be overwritten */ +import type { QueryClient,UseQueryOptions, UseQueryResult } from '@tanstack/react-query'; import { useQuery } from '@tanstack/react-query'; -import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildListSelectionArgs } from '../selection'; -import type { ListSelectionConfig } from '../selection'; -import { storeKeys } from '../query-keys'; + import type { - StoreSelect, - StoreWithRelations, StoreFilter, StoreOrderBy, + StoreSelect, + StoreWithRelations, } from '../../orm/input-types'; import type { - FindManyArgs, - InferSelectResult, ConnectionResult, HookStrictSelect, + InferSelectResult, } from '../../orm/select-types'; +import { getClient } from '../client'; +import { storeKeys } from '../query-keys'; +import type { ListSelectionConfig } from '../selection'; +import { buildListSelectionArgs } from '../selection'; export type { - StoreSelect, - StoreWithRelations, StoreFilter, StoreOrderBy, + StoreSelect, + StoreWithRelations, } from '../../orm/input-types'; /** Query key factory - re-exported from query-keys.ts */ export const storesQueryKey = storeKeys.list; diff --git a/sdk/constructive-functions-hooks/src/objects/index.ts b/sdk/constructive-functions-hooks/src/objects/index.ts index 2b8402539..86f77a82b 100644 --- a/sdk/constructive-functions-hooks/src/objects/index.ts +++ b/sdk/constructive-functions-hooks/src/objects/index.ts @@ -2,6 +2,6 @@ * GraphQL SDK - auto-generated, do not edit * @generated by @constructive-io/graphql-codegen */ -export * from './types'; export * from './hooks'; export * from './orm'; +export * from './types'; diff --git a/sdk/constructive-functions-hooks/src/objects/orm/client.ts b/sdk/constructive-functions-hooks/src/objects/orm/client.ts index 16e683c71..d3006224b 100644 --- a/sdk/constructive-functions-hooks/src/objects/orm/client.ts +++ b/sdk/constructive-functions-hooks/src/objects/orm/client.ts @@ -14,19 +14,12 @@ import type { ConnectionState, ConnectionStateListener, RealtimeConfig, - SubscribeOptions, SubscriptionEvent, SubscriptionFieldMeta, Unsubscribe, } from './realtime'; import { RealtimeManager } from './realtime'; -export type { - GraphQLAdapter, - GraphQLError, - QueryResult, -} from '@constructive-io/graphql-query/runtime'; - export type { ConnectionState, ConnectionStateListener, @@ -39,6 +32,11 @@ export type { WsClient, } from './realtime'; export { RealtimeManager } from './realtime'; +export type { + GraphQLAdapter, + GraphQLError, + QueryResult, +} from '@constructive-io/graphql-query/runtime'; /** * Default adapter that uses fetch for HTTP requests. diff --git a/sdk/constructive-functions-hooks/src/objects/orm/index.ts b/sdk/constructive-functions-hooks/src/objects/orm/index.ts index e9d82bf8c..1265f59b3 100644 --- a/sdk/constructive-functions-hooks/src/objects/orm/index.ts +++ b/sdk/constructive-functions-hooks/src/objects/orm/index.ts @@ -3,20 +3,20 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ -import { OrmClient } from './client'; import type { OrmClientConfig } from './client'; +import { OrmClient } from './client'; +import { CommitModel } from './models/commit'; import { GetAllRecordModel } from './models/getAllRecord'; -import { StoreModel } from './models/store'; -import { RefModel } from './models/ref'; import { ObjectModel } from './models/object'; -import { CommitModel } from './models/commit'; +import { RefModel } from './models/ref'; +import { StoreModel } from './models/store'; import { createMutationOperations } from './mutation'; -export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client'; -export { GraphQLRequestError, FetchAdapter } from './client'; -export { QueryBuilder } from './query-builder'; -export * from './select-types'; +export type { GraphQLAdapter,GraphQLError, OrmClientConfig, QueryResult } from './client'; +export { FetchAdapter,GraphQLRequestError } from './client'; export * from './models'; export { createMutationOperations } from './mutation'; +export { QueryBuilder } from './query-builder'; +export * from './select-types'; /** * Create an ORM client instance * diff --git a/sdk/constructive-functions-hooks/src/objects/orm/models/commit.ts b/sdk/constructive-functions-hooks/src/objects/orm/models/commit.ts index 9f20aeeef..600cea8df 100644 --- a/sdk/constructive-functions-hooks/src/objects/orm/models/commit.ts +++ b/sdk/constructive-functions-hooks/src/objects/orm/models/commit.ts @@ -4,36 +4,33 @@ * DO NOT EDIT - changes will be overwritten */ import { OrmClient } from '../client'; +import type { + CommitFilter, + CommitOrderBy, + CommitPatch, + CommitSelect, + CommitWithRelations, + CreateCommitInput, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, buildCreateDocument, - buildUpdateByPkDocument, buildDeleteByPkDocument, + buildFindFirstDocument, + buildFindManyDocument, + buildUpdateByPkDocument, + QueryBuilder, } from '../query-builder'; import type { ConnectionResult, - FindManyArgs, - FindFirstArgs, CreateArgs, - UpdateArgs, DeleteArgs, + FindFirstArgs, + FindManyArgs, InferSelectResult, StrictSelect, + UpdateArgs, } from '../select-types'; -import type { - Commit, - CommitWithRelations, - CommitSelect, - CommitFilter, - CommitOrderBy, - CreateCommitInput, - UpdateCommitInput, - CommitPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; export class CommitModel { constructor(private client: OrmClient) {} findMany( diff --git a/sdk/constructive-functions-hooks/src/objects/orm/models/getAllRecord.ts b/sdk/constructive-functions-hooks/src/objects/orm/models/getAllRecord.ts index 39a82fbbb..6da0fa693 100644 --- a/sdk/constructive-functions-hooks/src/objects/orm/models/getAllRecord.ts +++ b/sdk/constructive-functions-hooks/src/objects/orm/models/getAllRecord.ts @@ -4,36 +4,28 @@ * DO NOT EDIT - changes will be overwritten */ import { OrmClient } from '../client'; +import type { + CreateGetAllRecordInput, + GetAllRecordFilter, + GetAllRecordSelect, + GetAllRecordsOrderBy, + GetAllRecordWithRelations, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, + buildFindFirstDocument, + buildFindManyDocument, + QueryBuilder, } from '../query-builder'; import type { ConnectionResult, - FindManyArgs, - FindFirstArgs, CreateArgs, - UpdateArgs, - DeleteArgs, + FindFirstArgs, + FindManyArgs, InferSelectResult, StrictSelect, } from '../select-types'; -import type { - GetAllRecord, - GetAllRecordWithRelations, - GetAllRecordSelect, - GetAllRecordFilter, - GetAllRecordsOrderBy, - CreateGetAllRecordInput, - UpdateGetAllRecordInput, - GetAllRecordPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; export class GetAllRecordModel { constructor(private client: OrmClient) {} findMany( diff --git a/sdk/constructive-functions-hooks/src/objects/orm/models/index.ts b/sdk/constructive-functions-hooks/src/objects/orm/models/index.ts index 4ae09e158..8158942de 100644 --- a/sdk/constructive-functions-hooks/src/objects/orm/models/index.ts +++ b/sdk/constructive-functions-hooks/src/objects/orm/models/index.ts @@ -3,8 +3,8 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ +export { CommitModel } from './commit'; export { GetAllRecordModel } from './getAllRecord'; -export { StoreModel } from './store'; -export { RefModel } from './ref'; export { ObjectModel } from './object'; -export { CommitModel } from './commit'; +export { RefModel } from './ref'; +export { StoreModel } from './store'; diff --git a/sdk/constructive-functions-hooks/src/objects/orm/models/object.ts b/sdk/constructive-functions-hooks/src/objects/orm/models/object.ts index 9470d460f..3dda873e6 100644 --- a/sdk/constructive-functions-hooks/src/objects/orm/models/object.ts +++ b/sdk/constructive-functions-hooks/src/objects/orm/models/object.ts @@ -4,36 +4,34 @@ * DO NOT EDIT - changes will be overwritten */ import { OrmClient } from '../client'; +import type { + CreateObjectInput, + ObjectFilter, + ObjectOrderBy, + ObjectPatch, + ObjectSelect, + ObjectWithRelations, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; import { - QueryBuilder, - buildFindManyDocument, + buildCreateDocument, + buildDeleteByPkDocument, buildFindFirstDocument, + buildFindManyDocument, buildFindOneDocument, - buildCreateDocument, buildUpdateByPkDocument, - buildDeleteByPkDocument, + QueryBuilder, } from '../query-builder'; import type { ConnectionResult, - FindManyArgs, - FindFirstArgs, CreateArgs, - UpdateArgs, DeleteArgs, + FindFirstArgs, + FindManyArgs, InferSelectResult, StrictSelect, + UpdateArgs, } from '../select-types'; -import type { - Object, - ObjectWithRelations, - ObjectSelect, - ObjectFilter, - ObjectOrderBy, - CreateObjectInput, - UpdateObjectInput, - ObjectPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; export class ObjectModel { constructor(private client: OrmClient) {} findMany( diff --git a/sdk/constructive-functions-hooks/src/objects/orm/models/ref.ts b/sdk/constructive-functions-hooks/src/objects/orm/models/ref.ts index d29b2308a..d1e66355e 100644 --- a/sdk/constructive-functions-hooks/src/objects/orm/models/ref.ts +++ b/sdk/constructive-functions-hooks/src/objects/orm/models/ref.ts @@ -4,36 +4,33 @@ * DO NOT EDIT - changes will be overwritten */ import { OrmClient } from '../client'; +import type { + CreateRefInput, + RefFilter, + RefOrderBy, + RefPatch, + RefSelect, + RefWithRelations, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, buildCreateDocument, - buildUpdateByPkDocument, buildDeleteByPkDocument, + buildFindFirstDocument, + buildFindManyDocument, + buildUpdateByPkDocument, + QueryBuilder, } from '../query-builder'; import type { ConnectionResult, - FindManyArgs, - FindFirstArgs, CreateArgs, - UpdateArgs, DeleteArgs, + FindFirstArgs, + FindManyArgs, InferSelectResult, StrictSelect, + UpdateArgs, } from '../select-types'; -import type { - Ref, - RefWithRelations, - RefSelect, - RefFilter, - RefOrderBy, - CreateRefInput, - UpdateRefInput, - RefPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; export class RefModel { constructor(private client: OrmClient) {} findMany( diff --git a/sdk/constructive-functions-hooks/src/objects/orm/models/store.ts b/sdk/constructive-functions-hooks/src/objects/orm/models/store.ts index 3e81e5f9c..90640d315 100644 --- a/sdk/constructive-functions-hooks/src/objects/orm/models/store.ts +++ b/sdk/constructive-functions-hooks/src/objects/orm/models/store.ts @@ -4,36 +4,33 @@ * DO NOT EDIT - changes will be overwritten */ import { OrmClient } from '../client'; +import type { + CreateStoreInput, + StoreFilter, + StoreOrderBy, + StorePatch, + StoreSelect, + StoreWithRelations, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, buildCreateDocument, - buildUpdateByPkDocument, buildDeleteByPkDocument, + buildFindFirstDocument, + buildFindManyDocument, + buildUpdateByPkDocument, + QueryBuilder, } from '../query-builder'; import type { ConnectionResult, - FindManyArgs, - FindFirstArgs, CreateArgs, - UpdateArgs, DeleteArgs, + FindFirstArgs, + FindManyArgs, InferSelectResult, StrictSelect, + UpdateArgs, } from '../select-types'; -import type { - Store, - StoreWithRelations, - StoreSelect, - StoreFilter, - StoreOrderBy, - CreateStoreInput, - UpdateStoreInput, - StorePatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; export class StoreModel { constructor(private client: OrmClient) {} findMany( diff --git a/sdk/constructive-functions-hooks/src/objects/orm/mutation/index.ts b/sdk/constructive-functions-hooks/src/objects/orm/mutation/index.ts index 60faf5871..ce46438ef 100644 --- a/sdk/constructive-functions-hooks/src/objects/orm/mutation/index.ts +++ b/sdk/constructive-functions-hooks/src/objects/orm/mutation/index.ts @@ -4,23 +4,23 @@ * DO NOT EDIT - changes will be overwritten */ import { OrmClient } from '../client'; -import { QueryBuilder, buildCustomDocument } from '../query-builder'; -import type { InferSelectResult, StrictSelect } from '../select-types'; import type { InitEmptyRepoInput, - SetDataAtPathInput, - InsertNodeAtPathInput, - ProvisionBucketInput, InitEmptyRepoPayload, - SetDataAtPathPayload, - InsertNodeAtPathPayload, - ProvisionBucketPayload, InitEmptyRepoPayloadSelect, - SetDataAtPathPayloadSelect, + InsertNodeAtPathInput, + InsertNodeAtPathPayload, InsertNodeAtPathPayloadSelect, + ProvisionBucketInput, + ProvisionBucketPayload, ProvisionBucketPayloadSelect, + SetDataAtPathInput, + SetDataAtPathPayload, + SetDataAtPathPayloadSelect, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; +import { buildCustomDocument,QueryBuilder } from '../query-builder'; +import type { InferSelectResult, StrictSelect } from '../select-types'; export interface InitEmptyRepoVariables { input: InitEmptyRepoInput; } diff --git a/sdk/constructive-functions-hooks/src/objects/schema-types.ts b/sdk/constructive-functions-hooks/src/objects/schema-types.ts index 0b04f68a1..581ea5d08 100644 --- a/sdk/constructive-functions-hooks/src/objects/schema-types.ts +++ b/sdk/constructive-functions-hooks/src/objects/schema-types.ts @@ -6,27 +6,16 @@ import type { Commit, + DatetimeFilter, GetAllRecord, + JSONFilter, Object, Ref, Store, - BigFloatFilter, - BigIntFilter, - BitStringFilter, - BooleanFilter, - DateFilter, - DatetimeFilter, - FloatFilter, - FullTextFilter, - IntFilter, - IntListFilter, - InternetAddressFilter, - JSONFilter, StringFilter, StringListFilter, UUIDFilter, UUIDListFilter, - VectorFilter, } from './types'; /** Methods to use when ordering `Store`. */ export type StoreOrderBy = diff --git a/sdk/constructive-functions-sdk/src/api/orm/client.ts b/sdk/constructive-functions-sdk/src/api/orm/client.ts index 16e683c71..d3006224b 100644 --- a/sdk/constructive-functions-sdk/src/api/orm/client.ts +++ b/sdk/constructive-functions-sdk/src/api/orm/client.ts @@ -14,19 +14,12 @@ import type { ConnectionState, ConnectionStateListener, RealtimeConfig, - SubscribeOptions, SubscriptionEvent, SubscriptionFieldMeta, Unsubscribe, } from './realtime'; import { RealtimeManager } from './realtime'; -export type { - GraphQLAdapter, - GraphQLError, - QueryResult, -} from '@constructive-io/graphql-query/runtime'; - export type { ConnectionState, ConnectionStateListener, @@ -39,6 +32,11 @@ export type { WsClient, } from './realtime'; export { RealtimeManager } from './realtime'; +export type { + GraphQLAdapter, + GraphQLError, + QueryResult, +} from '@constructive-io/graphql-query/runtime'; /** * Default adapter that uses fetch for HTTP requests. diff --git a/sdk/constructive-functions-sdk/src/api/orm/index.ts b/sdk/constructive-functions-sdk/src/api/orm/index.ts index a8e91bab0..1cadb2168 100644 --- a/sdk/constructive-functions-sdk/src/api/orm/index.ts +++ b/sdk/constructive-functions-sdk/src/api/orm/index.ts @@ -3,23 +3,23 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ -import { OrmClient } from './client'; import type { OrmClientConfig } from './client'; -import { RoleTypeModel } from './models/roleType'; -import { PlatformConfigDefinitionModel } from './models/platformConfigDefinition'; -import { PlatformNamespaceModel } from './models/platformNamespace'; -import { PlatformConfigModel } from './models/platformConfig'; +import { OrmClient } from './client'; import { PlatformBucketModel } from './models/platformBucket'; +import { PlatformConfigModel } from './models/platformConfig'; +import { PlatformConfigDefinitionModel } from './models/platformConfigDefinition'; import { PlatformFileModel } from './models/platformFile'; -import { UserModel } from './models/user'; +import { PlatformNamespaceModel } from './models/platformNamespace'; import { PlatformNamespaceEventModel } from './models/platformNamespaceEvent'; +import { RoleTypeModel } from './models/roleType'; +import { UserModel } from './models/user'; import { createMutationOperations } from './mutation'; -export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client'; -export { GraphQLRequestError, FetchAdapter } from './client'; -export { QueryBuilder } from './query-builder'; -export * from './select-types'; +export type { GraphQLAdapter,GraphQLError, OrmClientConfig, QueryResult } from './client'; +export { FetchAdapter,GraphQLRequestError } from './client'; export * from './models'; export { createMutationOperations } from './mutation'; +export { QueryBuilder } from './query-builder'; +export * from './select-types'; /** * Create an ORM client instance * diff --git a/sdk/constructive-functions-sdk/src/api/orm/models/index.ts b/sdk/constructive-functions-sdk/src/api/orm/models/index.ts index ac1d17704..e85e97cdd 100644 --- a/sdk/constructive-functions-sdk/src/api/orm/models/index.ts +++ b/sdk/constructive-functions-sdk/src/api/orm/models/index.ts @@ -3,11 +3,11 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ -export { RoleTypeModel } from './roleType'; -export { PlatformConfigDefinitionModel } from './platformConfigDefinition'; -export { PlatformNamespaceModel } from './platformNamespace'; -export { PlatformConfigModel } from './platformConfig'; export { PlatformBucketModel } from './platformBucket'; +export { PlatformConfigModel } from './platformConfig'; +export { PlatformConfigDefinitionModel } from './platformConfigDefinition'; export { PlatformFileModel } from './platformFile'; -export { UserModel } from './user'; +export { PlatformNamespaceModel } from './platformNamespace'; export { PlatformNamespaceEventModel } from './platformNamespaceEvent'; +export { RoleTypeModel } from './roleType'; +export { UserModel } from './user'; diff --git a/sdk/constructive-functions-sdk/src/api/orm/models/platformBucket.ts b/sdk/constructive-functions-sdk/src/api/orm/models/platformBucket.ts index 3ffe7d5bd..9e6c2c034 100644 --- a/sdk/constructive-functions-sdk/src/api/orm/models/platformBucket.ts +++ b/sdk/constructive-functions-sdk/src/api/orm/models/platformBucket.ts @@ -4,36 +4,33 @@ * DO NOT EDIT - changes will be overwritten */ import { OrmClient } from '../client'; +import type { + CreatePlatformBucketInput, + PlatformBucketFilter, + PlatformBucketOrderBy, + PlatformBucketPatch, + PlatformBucketSelect, + PlatformBucketWithRelations, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, buildCreateDocument, - buildUpdateByPkDocument, buildDeleteByPkDocument, + buildFindFirstDocument, + buildFindManyDocument, + buildUpdateByPkDocument, + QueryBuilder, } from '../query-builder'; import type { ConnectionResult, - FindManyArgs, - FindFirstArgs, CreateArgs, - UpdateArgs, DeleteArgs, + FindFirstArgs, + FindManyArgs, InferSelectResult, StrictSelect, + UpdateArgs, } from '../select-types'; -import type { - PlatformBucket, - PlatformBucketWithRelations, - PlatformBucketSelect, - PlatformBucketFilter, - PlatformBucketOrderBy, - CreatePlatformBucketInput, - UpdatePlatformBucketInput, - PlatformBucketPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; export class PlatformBucketModel { constructor(private client: OrmClient) {} findMany( diff --git a/sdk/constructive-functions-sdk/src/api/orm/models/platformConfig.ts b/sdk/constructive-functions-sdk/src/api/orm/models/platformConfig.ts index 43634e7a8..c98c43e80 100644 --- a/sdk/constructive-functions-sdk/src/api/orm/models/platformConfig.ts +++ b/sdk/constructive-functions-sdk/src/api/orm/models/platformConfig.ts @@ -4,36 +4,33 @@ * DO NOT EDIT - changes will be overwritten */ import { OrmClient } from '../client'; +import type { + CreatePlatformConfigInput, + PlatformConfigFilter, + PlatformConfigOrderBy, + PlatformConfigPatch, + PlatformConfigSelect, + PlatformConfigWithRelations, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, buildCreateDocument, - buildUpdateByPkDocument, buildDeleteByPkDocument, + buildFindFirstDocument, + buildFindManyDocument, + buildUpdateByPkDocument, + QueryBuilder, } from '../query-builder'; import type { ConnectionResult, - FindManyArgs, - FindFirstArgs, CreateArgs, - UpdateArgs, DeleteArgs, + FindFirstArgs, + FindManyArgs, InferSelectResult, StrictSelect, + UpdateArgs, } from '../select-types'; -import type { - PlatformConfig, - PlatformConfigWithRelations, - PlatformConfigSelect, - PlatformConfigFilter, - PlatformConfigOrderBy, - CreatePlatformConfigInput, - UpdatePlatformConfigInput, - PlatformConfigPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; export class PlatformConfigModel { constructor(private client: OrmClient) {} findMany( diff --git a/sdk/constructive-functions-sdk/src/api/orm/models/platformConfigDefinition.ts b/sdk/constructive-functions-sdk/src/api/orm/models/platformConfigDefinition.ts index c28ff1566..6174d9660 100644 --- a/sdk/constructive-functions-sdk/src/api/orm/models/platformConfigDefinition.ts +++ b/sdk/constructive-functions-sdk/src/api/orm/models/platformConfigDefinition.ts @@ -4,36 +4,33 @@ * DO NOT EDIT - changes will be overwritten */ import { OrmClient } from '../client'; +import type { + CreatePlatformConfigDefinitionInput, + PlatformConfigDefinitionFilter, + PlatformConfigDefinitionOrderBy, + PlatformConfigDefinitionPatch, + PlatformConfigDefinitionSelect, + PlatformConfigDefinitionWithRelations, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, buildCreateDocument, - buildUpdateByPkDocument, buildDeleteByPkDocument, + buildFindFirstDocument, + buildFindManyDocument, + buildUpdateByPkDocument, + QueryBuilder, } from '../query-builder'; import type { ConnectionResult, - FindManyArgs, - FindFirstArgs, CreateArgs, - UpdateArgs, DeleteArgs, + FindFirstArgs, + FindManyArgs, InferSelectResult, StrictSelect, + UpdateArgs, } from '../select-types'; -import type { - PlatformConfigDefinition, - PlatformConfigDefinitionWithRelations, - PlatformConfigDefinitionSelect, - PlatformConfigDefinitionFilter, - PlatformConfigDefinitionOrderBy, - CreatePlatformConfigDefinitionInput, - UpdatePlatformConfigDefinitionInput, - PlatformConfigDefinitionPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; export class PlatformConfigDefinitionModel { constructor(private client: OrmClient) {} findMany( diff --git a/sdk/constructive-functions-sdk/src/api/orm/models/platformFile.ts b/sdk/constructive-functions-sdk/src/api/orm/models/platformFile.ts index bfc7890e9..d7bc628d5 100644 --- a/sdk/constructive-functions-sdk/src/api/orm/models/platformFile.ts +++ b/sdk/constructive-functions-sdk/src/api/orm/models/platformFile.ts @@ -4,36 +4,33 @@ * DO NOT EDIT - changes will be overwritten */ import { OrmClient } from '../client'; +import type { + CreatePlatformFileInput, + PlatformFileFilter, + PlatformFileOrderBy, + PlatformFilePatch, + PlatformFileSelect, + PlatformFileWithRelations, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, buildCreateDocument, - buildUpdateByPkDocument, buildDeleteByPkDocument, + buildFindFirstDocument, + buildFindManyDocument, + buildUpdateByPkDocument, + QueryBuilder, } from '../query-builder'; import type { ConnectionResult, - FindManyArgs, - FindFirstArgs, CreateArgs, - UpdateArgs, DeleteArgs, + FindFirstArgs, + FindManyArgs, InferSelectResult, StrictSelect, + UpdateArgs, } from '../select-types'; -import type { - PlatformFile, - PlatformFileWithRelations, - PlatformFileSelect, - PlatformFileFilter, - PlatformFileOrderBy, - CreatePlatformFileInput, - UpdatePlatformFileInput, - PlatformFilePatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; export class PlatformFileModel { constructor(private client: OrmClient) {} findMany( diff --git a/sdk/constructive-functions-sdk/src/api/orm/models/platformNamespace.ts b/sdk/constructive-functions-sdk/src/api/orm/models/platformNamespace.ts index c4dff9495..95a81de8b 100644 --- a/sdk/constructive-functions-sdk/src/api/orm/models/platformNamespace.ts +++ b/sdk/constructive-functions-sdk/src/api/orm/models/platformNamespace.ts @@ -4,36 +4,33 @@ * DO NOT EDIT - changes will be overwritten */ import { OrmClient } from '../client'; +import type { + CreatePlatformNamespaceInput, + PlatformNamespaceFilter, + PlatformNamespaceOrderBy, + PlatformNamespacePatch, + PlatformNamespaceSelect, + PlatformNamespaceWithRelations, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, buildCreateDocument, - buildUpdateByPkDocument, buildDeleteByPkDocument, + buildFindFirstDocument, + buildFindManyDocument, + buildUpdateByPkDocument, + QueryBuilder, } from '../query-builder'; import type { ConnectionResult, - FindManyArgs, - FindFirstArgs, CreateArgs, - UpdateArgs, DeleteArgs, + FindFirstArgs, + FindManyArgs, InferSelectResult, StrictSelect, + UpdateArgs, } from '../select-types'; -import type { - PlatformNamespace, - PlatformNamespaceWithRelations, - PlatformNamespaceSelect, - PlatformNamespaceFilter, - PlatformNamespaceOrderBy, - CreatePlatformNamespaceInput, - UpdatePlatformNamespaceInput, - PlatformNamespacePatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; export class PlatformNamespaceModel { constructor(private client: OrmClient) {} findMany( diff --git a/sdk/constructive-functions-sdk/src/api/orm/models/platformNamespaceEvent.ts b/sdk/constructive-functions-sdk/src/api/orm/models/platformNamespaceEvent.ts index 198afe79a..bdf1a737d 100644 --- a/sdk/constructive-functions-sdk/src/api/orm/models/platformNamespaceEvent.ts +++ b/sdk/constructive-functions-sdk/src/api/orm/models/platformNamespaceEvent.ts @@ -4,36 +4,33 @@ * DO NOT EDIT - changes will be overwritten */ import { OrmClient } from '../client'; +import type { + CreatePlatformNamespaceEventInput, + PlatformNamespaceEventFilter, + PlatformNamespaceEventOrderBy, + PlatformNamespaceEventPatch, + PlatformNamespaceEventSelect, + PlatformNamespaceEventWithRelations, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, buildCreateDocument, - buildUpdateByPkDocument, buildDeleteByPkDocument, + buildFindFirstDocument, + buildFindManyDocument, + buildUpdateByPkDocument, + QueryBuilder, } from '../query-builder'; import type { ConnectionResult, - FindManyArgs, - FindFirstArgs, CreateArgs, - UpdateArgs, DeleteArgs, + FindFirstArgs, + FindManyArgs, InferSelectResult, StrictSelect, + UpdateArgs, } from '../select-types'; -import type { - PlatformNamespaceEvent, - PlatformNamespaceEventWithRelations, - PlatformNamespaceEventSelect, - PlatformNamespaceEventFilter, - PlatformNamespaceEventOrderBy, - CreatePlatformNamespaceEventInput, - UpdatePlatformNamespaceEventInput, - PlatformNamespaceEventPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; export class PlatformNamespaceEventModel { constructor(private client: OrmClient) {} findMany( diff --git a/sdk/constructive-functions-sdk/src/api/orm/models/roleType.ts b/sdk/constructive-functions-sdk/src/api/orm/models/roleType.ts index e8df4924b..d54341e3f 100644 --- a/sdk/constructive-functions-sdk/src/api/orm/models/roleType.ts +++ b/sdk/constructive-functions-sdk/src/api/orm/models/roleType.ts @@ -4,36 +4,33 @@ * DO NOT EDIT - changes will be overwritten */ import { OrmClient } from '../client'; +import type { + CreateRoleTypeInput, + RoleTypeFilter, + RoleTypeOrderBy, + RoleTypePatch, + RoleTypeSelect, + RoleTypeWithRelations, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, buildCreateDocument, - buildUpdateByPkDocument, buildDeleteByPkDocument, + buildFindFirstDocument, + buildFindManyDocument, + buildUpdateByPkDocument, + QueryBuilder, } from '../query-builder'; import type { ConnectionResult, - FindManyArgs, - FindFirstArgs, CreateArgs, - UpdateArgs, DeleteArgs, + FindFirstArgs, + FindManyArgs, InferSelectResult, StrictSelect, + UpdateArgs, } from '../select-types'; -import type { - RoleType, - RoleTypeWithRelations, - RoleTypeSelect, - RoleTypeFilter, - RoleTypeOrderBy, - CreateRoleTypeInput, - UpdateRoleTypeInput, - RoleTypePatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; export class RoleTypeModel { constructor(private client: OrmClient) {} findMany( diff --git a/sdk/constructive-functions-sdk/src/api/orm/models/user.ts b/sdk/constructive-functions-sdk/src/api/orm/models/user.ts index a35147a5a..582cecf2e 100644 --- a/sdk/constructive-functions-sdk/src/api/orm/models/user.ts +++ b/sdk/constructive-functions-sdk/src/api/orm/models/user.ts @@ -4,36 +4,33 @@ * DO NOT EDIT - changes will be overwritten */ import { OrmClient } from '../client'; +import type { + CreateUserInput, + UserFilter, + UserOrderBy, + UserPatch, + UserSelect, + UserWithRelations, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, buildCreateDocument, - buildUpdateByPkDocument, buildDeleteByPkDocument, + buildFindFirstDocument, + buildFindManyDocument, + buildUpdateByPkDocument, + QueryBuilder, } from '../query-builder'; import type { ConnectionResult, - FindManyArgs, - FindFirstArgs, CreateArgs, - UpdateArgs, DeleteArgs, + FindFirstArgs, + FindManyArgs, InferSelectResult, StrictSelect, + UpdateArgs, } from '../select-types'; -import type { - User, - UserWithRelations, - UserSelect, - UserFilter, - UserOrderBy, - CreateUserInput, - UpdateUserInput, - UserPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; export class UserModel { constructor(private client: OrmClient) {} findMany( diff --git a/sdk/constructive-functions-sdk/src/api/orm/mutation/index.ts b/sdk/constructive-functions-sdk/src/api/orm/mutation/index.ts index a2949e23d..49cae5f1f 100644 --- a/sdk/constructive-functions-sdk/src/api/orm/mutation/index.ts +++ b/sdk/constructive-functions-sdk/src/api/orm/mutation/index.ts @@ -4,38 +4,38 @@ * DO NOT EDIT - changes will be overwritten */ import { OrmClient } from '../client'; -import { QueryBuilder, buildCustomDocument } from '../query-builder'; -import type { InferSelectResult, StrictSelect } from '../select-types'; import type { - PlatformSecretsDelInput, - PlatformSecretsSetInput, OrgSecretsDelInput, - OrgSecretsSetInput, - OrgSecretsRemoveArrayInput, - PlatformFilesRenameInput, - UploadPlatformFileInput, - UploadPlatformFileBulkInput, - ProvisionBucketInput, - PlatformSecretsDelPayload, - PlatformSecretsSetPayload, OrgSecretsDelPayload, - OrgSecretsSetPayload, + OrgSecretsDelPayloadSelect, + OrgSecretsRemoveArrayInput, OrgSecretsRemoveArrayPayload, + OrgSecretsRemoveArrayPayloadSelect, + OrgSecretsSetInput, + OrgSecretsSetPayload, + OrgSecretsSetPayloadSelect, + PlatformFilesRenameInput, PlatformFilesRenamePayload, - UploadPlatformFilePayload, - UploadPlatformFileBulkPayload, - ProvisionBucketPayload, + PlatformFilesRenamePayloadSelect, + PlatformSecretsDelInput, + PlatformSecretsDelPayload, PlatformSecretsDelPayloadSelect, + PlatformSecretsSetInput, + PlatformSecretsSetPayload, PlatformSecretsSetPayloadSelect, - OrgSecretsDelPayloadSelect, - OrgSecretsSetPayloadSelect, - OrgSecretsRemoveArrayPayloadSelect, - PlatformFilesRenamePayloadSelect, - UploadPlatformFilePayloadSelect, - UploadPlatformFileBulkPayloadSelect, + ProvisionBucketInput, + ProvisionBucketPayload, ProvisionBucketPayloadSelect, + UploadPlatformFileBulkInput, + UploadPlatformFileBulkPayload, + UploadPlatformFileBulkPayloadSelect, + UploadPlatformFileInput, + UploadPlatformFilePayload, + UploadPlatformFilePayloadSelect, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; +import { buildCustomDocument,QueryBuilder } from '../query-builder'; +import type { InferSelectResult, StrictSelect } from '../select-types'; export interface PlatformSecretsDelVariables { input: PlatformSecretsDelInput; } diff --git a/sdk/constructive-functions-sdk/src/compute/orm/client.ts b/sdk/constructive-functions-sdk/src/compute/orm/client.ts index 16e683c71..d3006224b 100644 --- a/sdk/constructive-functions-sdk/src/compute/orm/client.ts +++ b/sdk/constructive-functions-sdk/src/compute/orm/client.ts @@ -14,19 +14,12 @@ import type { ConnectionState, ConnectionStateListener, RealtimeConfig, - SubscribeOptions, SubscriptionEvent, SubscriptionFieldMeta, Unsubscribe, } from './realtime'; import { RealtimeManager } from './realtime'; -export type { - GraphQLAdapter, - GraphQLError, - QueryResult, -} from '@constructive-io/graphql-query/runtime'; - export type { ConnectionState, ConnectionStateListener, @@ -39,6 +32,11 @@ export type { WsClient, } from './realtime'; export { RealtimeManager } from './realtime'; +export type { + GraphQLAdapter, + GraphQLError, + QueryResult, +} from '@constructive-io/graphql-query/runtime'; /** * Default adapter that uses fetch for HTTP requests. diff --git a/sdk/constructive-functions-sdk/src/compute/orm/index.ts b/sdk/constructive-functions-sdk/src/compute/orm/index.ts index 8f775ef57..48cd1bf03 100644 --- a/sdk/constructive-functions-sdk/src/compute/orm/index.ts +++ b/sdk/constructive-functions-sdk/src/compute/orm/index.ts @@ -3,34 +3,34 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ -import { OrmClient } from './client'; import type { OrmClientConfig } from './client'; +import { OrmClient } from './client'; import { GetAllRecordModel } from './models/getAllRecord'; -import { PlatformFunctionGraphRefModel } from './models/platformFunctionGraphRef'; -import { PlatformFunctionGraphStoreModel } from './models/platformFunctionGraphStore'; -import { PlatformFunctionGraphObjectModel } from './models/platformFunctionGraphObject'; import { OrgFunctionExecutionLogModel } from './models/orgFunctionExecutionLog'; -import { PlatformFunctionGraphExecutionOutputModel } from './models/platformFunctionGraphExecutionOutput'; -import { PlatformFunctionGraphCommitModel } from './models/platformFunctionGraphCommit'; -import { PlatformSecretDefinitionModel } from './models/platformSecretDefinition'; +import { OrgFunctionInvocationModel } from './models/orgFunctionInvocation'; +import { PlatformComputeLogModel } from './models/platformComputeLog'; +import { PlatformFunctionDefinitionModel } from './models/platformFunctionDefinition'; import { PlatformFunctionExecutionLogModel } from './models/platformFunctionExecutionLog'; -import { PlatformFunctionGraphExecutionNodeStateModel } from './models/platformFunctionGraphExecutionNodeState'; import { PlatformFunctionGraphModel } from './models/platformFunctionGraph'; -import { PlatformComputeLogModel } from './models/platformComputeLog'; -import { PlatformUsageDailyModel } from './models/platformUsageDaily'; -import { OrgFunctionInvocationModel } from './models/orgFunctionInvocation'; -import { PlatformFunctionInvocationModel } from './models/platformFunctionInvocation'; +import { PlatformFunctionGraphCommitModel } from './models/platformFunctionGraphCommit'; import { PlatformFunctionGraphExecutionModel } from './models/platformFunctionGraphExecution'; -import { PlatformFunctionDefinitionModel } from './models/platformFunctionDefinition'; -import { createQueryOperations } from './query'; +import { PlatformFunctionGraphExecutionNodeStateModel } from './models/platformFunctionGraphExecutionNodeState'; +import { PlatformFunctionGraphExecutionOutputModel } from './models/platformFunctionGraphExecutionOutput'; +import { PlatformFunctionGraphObjectModel } from './models/platformFunctionGraphObject'; +import { PlatformFunctionGraphRefModel } from './models/platformFunctionGraphRef'; +import { PlatformFunctionGraphStoreModel } from './models/platformFunctionGraphStore'; +import { PlatformFunctionInvocationModel } from './models/platformFunctionInvocation'; +import { PlatformSecretDefinitionModel } from './models/platformSecretDefinition'; +import { PlatformUsageDailyModel } from './models/platformUsageDaily'; import { createMutationOperations } from './mutation'; -export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client'; -export { GraphQLRequestError, FetchAdapter } from './client'; -export { QueryBuilder } from './query-builder'; -export * from './select-types'; +import { createQueryOperations } from './query'; +export type { GraphQLAdapter,GraphQLError, OrmClientConfig, QueryResult } from './client'; +export { FetchAdapter,GraphQLRequestError } from './client'; export * from './models'; -export { createQueryOperations } from './query'; export { createMutationOperations } from './mutation'; +export { createQueryOperations } from './query'; +export { QueryBuilder } from './query-builder'; +export * from './select-types'; /** * Create an ORM client instance * diff --git a/sdk/constructive-functions-sdk/src/compute/orm/models/getAllRecord.ts b/sdk/constructive-functions-sdk/src/compute/orm/models/getAllRecord.ts index 39a82fbbb..6da0fa693 100644 --- a/sdk/constructive-functions-sdk/src/compute/orm/models/getAllRecord.ts +++ b/sdk/constructive-functions-sdk/src/compute/orm/models/getAllRecord.ts @@ -4,36 +4,28 @@ * DO NOT EDIT - changes will be overwritten */ import { OrmClient } from '../client'; +import type { + CreateGetAllRecordInput, + GetAllRecordFilter, + GetAllRecordSelect, + GetAllRecordsOrderBy, + GetAllRecordWithRelations, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, + buildFindFirstDocument, + buildFindManyDocument, + QueryBuilder, } from '../query-builder'; import type { ConnectionResult, - FindManyArgs, - FindFirstArgs, CreateArgs, - UpdateArgs, - DeleteArgs, + FindFirstArgs, + FindManyArgs, InferSelectResult, StrictSelect, } from '../select-types'; -import type { - GetAllRecord, - GetAllRecordWithRelations, - GetAllRecordSelect, - GetAllRecordFilter, - GetAllRecordsOrderBy, - CreateGetAllRecordInput, - UpdateGetAllRecordInput, - GetAllRecordPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; export class GetAllRecordModel { constructor(private client: OrmClient) {} findMany( diff --git a/sdk/constructive-functions-sdk/src/compute/orm/models/index.ts b/sdk/constructive-functions-sdk/src/compute/orm/models/index.ts index 02af82f0a..c255ab9c3 100644 --- a/sdk/constructive-functions-sdk/src/compute/orm/models/index.ts +++ b/sdk/constructive-functions-sdk/src/compute/orm/models/index.ts @@ -4,19 +4,19 @@ * DO NOT EDIT - changes will be overwritten */ export { GetAllRecordModel } from './getAllRecord'; -export { PlatformFunctionGraphRefModel } from './platformFunctionGraphRef'; -export { PlatformFunctionGraphStoreModel } from './platformFunctionGraphStore'; -export { PlatformFunctionGraphObjectModel } from './platformFunctionGraphObject'; export { OrgFunctionExecutionLogModel } from './orgFunctionExecutionLog'; -export { PlatformFunctionGraphExecutionOutputModel } from './platformFunctionGraphExecutionOutput'; -export { PlatformFunctionGraphCommitModel } from './platformFunctionGraphCommit'; -export { PlatformSecretDefinitionModel } from './platformSecretDefinition'; +export { OrgFunctionInvocationModel } from './orgFunctionInvocation'; +export { PlatformComputeLogModel } from './platformComputeLog'; +export { PlatformFunctionDefinitionModel } from './platformFunctionDefinition'; export { PlatformFunctionExecutionLogModel } from './platformFunctionExecutionLog'; -export { PlatformFunctionGraphExecutionNodeStateModel } from './platformFunctionGraphExecutionNodeState'; export { PlatformFunctionGraphModel } from './platformFunctionGraph'; -export { PlatformComputeLogModel } from './platformComputeLog'; -export { PlatformUsageDailyModel } from './platformUsageDaily'; -export { OrgFunctionInvocationModel } from './orgFunctionInvocation'; -export { PlatformFunctionInvocationModel } from './platformFunctionInvocation'; +export { PlatformFunctionGraphCommitModel } from './platformFunctionGraphCommit'; export { PlatformFunctionGraphExecutionModel } from './platformFunctionGraphExecution'; -export { PlatformFunctionDefinitionModel } from './platformFunctionDefinition'; +export { PlatformFunctionGraphExecutionNodeStateModel } from './platformFunctionGraphExecutionNodeState'; +export { PlatformFunctionGraphExecutionOutputModel } from './platformFunctionGraphExecutionOutput'; +export { PlatformFunctionGraphObjectModel } from './platformFunctionGraphObject'; +export { PlatformFunctionGraphRefModel } from './platformFunctionGraphRef'; +export { PlatformFunctionGraphStoreModel } from './platformFunctionGraphStore'; +export { PlatformFunctionInvocationModel } from './platformFunctionInvocation'; +export { PlatformSecretDefinitionModel } from './platformSecretDefinition'; +export { PlatformUsageDailyModel } from './platformUsageDaily'; diff --git a/sdk/constructive-functions-sdk/src/compute/orm/models/orgFunctionExecutionLog.ts b/sdk/constructive-functions-sdk/src/compute/orm/models/orgFunctionExecutionLog.ts index 95b37a939..1058d7717 100644 --- a/sdk/constructive-functions-sdk/src/compute/orm/models/orgFunctionExecutionLog.ts +++ b/sdk/constructive-functions-sdk/src/compute/orm/models/orgFunctionExecutionLog.ts @@ -4,36 +4,33 @@ * DO NOT EDIT - changes will be overwritten */ import { OrmClient } from '../client'; +import type { + CreateOrgFunctionExecutionLogInput, + OrgFunctionExecutionLogFilter, + OrgFunctionExecutionLogOrderBy, + OrgFunctionExecutionLogPatch, + OrgFunctionExecutionLogSelect, + OrgFunctionExecutionLogWithRelations, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, buildCreateDocument, - buildUpdateByPkDocument, buildDeleteByPkDocument, + buildFindFirstDocument, + buildFindManyDocument, + buildUpdateByPkDocument, + QueryBuilder, } from '../query-builder'; import type { ConnectionResult, - FindManyArgs, - FindFirstArgs, CreateArgs, - UpdateArgs, DeleteArgs, + FindFirstArgs, + FindManyArgs, InferSelectResult, StrictSelect, + UpdateArgs, } from '../select-types'; -import type { - OrgFunctionExecutionLog, - OrgFunctionExecutionLogWithRelations, - OrgFunctionExecutionLogSelect, - OrgFunctionExecutionLogFilter, - OrgFunctionExecutionLogOrderBy, - CreateOrgFunctionExecutionLogInput, - UpdateOrgFunctionExecutionLogInput, - OrgFunctionExecutionLogPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; export class OrgFunctionExecutionLogModel { constructor(private client: OrmClient) {} findMany( diff --git a/sdk/constructive-functions-sdk/src/compute/orm/models/orgFunctionInvocation.ts b/sdk/constructive-functions-sdk/src/compute/orm/models/orgFunctionInvocation.ts index 3f3eaab55..59684987b 100644 --- a/sdk/constructive-functions-sdk/src/compute/orm/models/orgFunctionInvocation.ts +++ b/sdk/constructive-functions-sdk/src/compute/orm/models/orgFunctionInvocation.ts @@ -4,36 +4,33 @@ * DO NOT EDIT - changes will be overwritten */ import { OrmClient } from '../client'; +import type { + CreateOrgFunctionInvocationInput, + OrgFunctionInvocationFilter, + OrgFunctionInvocationOrderBy, + OrgFunctionInvocationPatch, + OrgFunctionInvocationSelect, + OrgFunctionInvocationWithRelations, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, buildCreateDocument, - buildUpdateByPkDocument, buildDeleteByPkDocument, + buildFindFirstDocument, + buildFindManyDocument, + buildUpdateByPkDocument, + QueryBuilder, } from '../query-builder'; import type { ConnectionResult, - FindManyArgs, - FindFirstArgs, CreateArgs, - UpdateArgs, DeleteArgs, + FindFirstArgs, + FindManyArgs, InferSelectResult, StrictSelect, + UpdateArgs, } from '../select-types'; -import type { - OrgFunctionInvocation, - OrgFunctionInvocationWithRelations, - OrgFunctionInvocationSelect, - OrgFunctionInvocationFilter, - OrgFunctionInvocationOrderBy, - CreateOrgFunctionInvocationInput, - UpdateOrgFunctionInvocationInput, - OrgFunctionInvocationPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; export class OrgFunctionInvocationModel { constructor(private client: OrmClient) {} findMany( diff --git a/sdk/constructive-functions-sdk/src/compute/orm/models/platformComputeLog.ts b/sdk/constructive-functions-sdk/src/compute/orm/models/platformComputeLog.ts index 1ddb18923..47724c07a 100644 --- a/sdk/constructive-functions-sdk/src/compute/orm/models/platformComputeLog.ts +++ b/sdk/constructive-functions-sdk/src/compute/orm/models/platformComputeLog.ts @@ -4,36 +4,33 @@ * DO NOT EDIT - changes will be overwritten */ import { OrmClient } from '../client'; +import type { + CreatePlatformComputeLogInput, + PlatformComputeLogFilter, + PlatformComputeLogOrderBy, + PlatformComputeLogPatch, + PlatformComputeLogSelect, + PlatformComputeLogWithRelations, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, buildCreateDocument, - buildUpdateByPkDocument, buildDeleteByPkDocument, + buildFindFirstDocument, + buildFindManyDocument, + buildUpdateByPkDocument, + QueryBuilder, } from '../query-builder'; import type { ConnectionResult, - FindManyArgs, - FindFirstArgs, CreateArgs, - UpdateArgs, DeleteArgs, + FindFirstArgs, + FindManyArgs, InferSelectResult, StrictSelect, + UpdateArgs, } from '../select-types'; -import type { - PlatformComputeLog, - PlatformComputeLogWithRelations, - PlatformComputeLogSelect, - PlatformComputeLogFilter, - PlatformComputeLogOrderBy, - CreatePlatformComputeLogInput, - UpdatePlatformComputeLogInput, - PlatformComputeLogPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; export class PlatformComputeLogModel { constructor(private client: OrmClient) {} findMany( diff --git a/sdk/constructive-functions-sdk/src/compute/orm/models/platformFunctionDefinition.ts b/sdk/constructive-functions-sdk/src/compute/orm/models/platformFunctionDefinition.ts index 742274378..ee5897fa7 100644 --- a/sdk/constructive-functions-sdk/src/compute/orm/models/platformFunctionDefinition.ts +++ b/sdk/constructive-functions-sdk/src/compute/orm/models/platformFunctionDefinition.ts @@ -4,36 +4,33 @@ * DO NOT EDIT - changes will be overwritten */ import { OrmClient } from '../client'; +import type { + CreatePlatformFunctionDefinitionInput, + PlatformFunctionDefinitionFilter, + PlatformFunctionDefinitionOrderBy, + PlatformFunctionDefinitionPatch, + PlatformFunctionDefinitionSelect, + PlatformFunctionDefinitionWithRelations, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, buildCreateDocument, - buildUpdateByPkDocument, buildDeleteByPkDocument, + buildFindFirstDocument, + buildFindManyDocument, + buildUpdateByPkDocument, + QueryBuilder, } from '../query-builder'; import type { ConnectionResult, - FindManyArgs, - FindFirstArgs, CreateArgs, - UpdateArgs, DeleteArgs, + FindFirstArgs, + FindManyArgs, InferSelectResult, StrictSelect, + UpdateArgs, } from '../select-types'; -import type { - PlatformFunctionDefinition, - PlatformFunctionDefinitionWithRelations, - PlatformFunctionDefinitionSelect, - PlatformFunctionDefinitionFilter, - PlatformFunctionDefinitionOrderBy, - CreatePlatformFunctionDefinitionInput, - UpdatePlatformFunctionDefinitionInput, - PlatformFunctionDefinitionPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; export class PlatformFunctionDefinitionModel { constructor(private client: OrmClient) {} findMany( diff --git a/sdk/constructive-functions-sdk/src/compute/orm/models/platformFunctionExecutionLog.ts b/sdk/constructive-functions-sdk/src/compute/orm/models/platformFunctionExecutionLog.ts index 1fe6df0cf..6baeb8fd1 100644 --- a/sdk/constructive-functions-sdk/src/compute/orm/models/platformFunctionExecutionLog.ts +++ b/sdk/constructive-functions-sdk/src/compute/orm/models/platformFunctionExecutionLog.ts @@ -4,36 +4,33 @@ * DO NOT EDIT - changes will be overwritten */ import { OrmClient } from '../client'; +import type { + CreatePlatformFunctionExecutionLogInput, + PlatformFunctionExecutionLogFilter, + PlatformFunctionExecutionLogOrderBy, + PlatformFunctionExecutionLogPatch, + PlatformFunctionExecutionLogSelect, + PlatformFunctionExecutionLogWithRelations, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, buildCreateDocument, - buildUpdateByPkDocument, buildDeleteByPkDocument, + buildFindFirstDocument, + buildFindManyDocument, + buildUpdateByPkDocument, + QueryBuilder, } from '../query-builder'; import type { ConnectionResult, - FindManyArgs, - FindFirstArgs, CreateArgs, - UpdateArgs, DeleteArgs, + FindFirstArgs, + FindManyArgs, InferSelectResult, StrictSelect, + UpdateArgs, } from '../select-types'; -import type { - PlatformFunctionExecutionLog, - PlatformFunctionExecutionLogWithRelations, - PlatformFunctionExecutionLogSelect, - PlatformFunctionExecutionLogFilter, - PlatformFunctionExecutionLogOrderBy, - CreatePlatformFunctionExecutionLogInput, - UpdatePlatformFunctionExecutionLogInput, - PlatformFunctionExecutionLogPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; export class PlatformFunctionExecutionLogModel { constructor(private client: OrmClient) {} findMany( diff --git a/sdk/constructive-functions-sdk/src/compute/orm/models/platformFunctionGraph.ts b/sdk/constructive-functions-sdk/src/compute/orm/models/platformFunctionGraph.ts index 1d00255d3..34c528461 100644 --- a/sdk/constructive-functions-sdk/src/compute/orm/models/platformFunctionGraph.ts +++ b/sdk/constructive-functions-sdk/src/compute/orm/models/platformFunctionGraph.ts @@ -4,36 +4,33 @@ * DO NOT EDIT - changes will be overwritten */ import { OrmClient } from '../client'; +import type { + CreatePlatformFunctionGraphInput, + PlatformFunctionGraphFilter, + PlatformFunctionGraphOrderBy, + PlatformFunctionGraphPatch, + PlatformFunctionGraphSelect, + PlatformFunctionGraphWithRelations, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, buildCreateDocument, - buildUpdateByPkDocument, buildDeleteByPkDocument, + buildFindFirstDocument, + buildFindManyDocument, + buildUpdateByPkDocument, + QueryBuilder, } from '../query-builder'; import type { ConnectionResult, - FindManyArgs, - FindFirstArgs, CreateArgs, - UpdateArgs, DeleteArgs, + FindFirstArgs, + FindManyArgs, InferSelectResult, StrictSelect, + UpdateArgs, } from '../select-types'; -import type { - PlatformFunctionGraph, - PlatformFunctionGraphWithRelations, - PlatformFunctionGraphSelect, - PlatformFunctionGraphFilter, - PlatformFunctionGraphOrderBy, - CreatePlatformFunctionGraphInput, - UpdatePlatformFunctionGraphInput, - PlatformFunctionGraphPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; export class PlatformFunctionGraphModel { constructor(private client: OrmClient) {} findMany( diff --git a/sdk/constructive-functions-sdk/src/compute/orm/models/platformFunctionGraphCommit.ts b/sdk/constructive-functions-sdk/src/compute/orm/models/platformFunctionGraphCommit.ts index 9f651659f..a5a2e64a6 100644 --- a/sdk/constructive-functions-sdk/src/compute/orm/models/platformFunctionGraphCommit.ts +++ b/sdk/constructive-functions-sdk/src/compute/orm/models/platformFunctionGraphCommit.ts @@ -4,36 +4,33 @@ * DO NOT EDIT - changes will be overwritten */ import { OrmClient } from '../client'; +import type { + CreatePlatformFunctionGraphCommitInput, + PlatformFunctionGraphCommitFilter, + PlatformFunctionGraphCommitOrderBy, + PlatformFunctionGraphCommitPatch, + PlatformFunctionGraphCommitSelect, + PlatformFunctionGraphCommitWithRelations, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, buildCreateDocument, - buildUpdateByPkDocument, buildDeleteByPkDocument, + buildFindFirstDocument, + buildFindManyDocument, + buildUpdateByPkDocument, + QueryBuilder, } from '../query-builder'; import type { ConnectionResult, - FindManyArgs, - FindFirstArgs, CreateArgs, - UpdateArgs, DeleteArgs, + FindFirstArgs, + FindManyArgs, InferSelectResult, StrictSelect, + UpdateArgs, } from '../select-types'; -import type { - PlatformFunctionGraphCommit, - PlatformFunctionGraphCommitWithRelations, - PlatformFunctionGraphCommitSelect, - PlatformFunctionGraphCommitFilter, - PlatformFunctionGraphCommitOrderBy, - CreatePlatformFunctionGraphCommitInput, - UpdatePlatformFunctionGraphCommitInput, - PlatformFunctionGraphCommitPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; export class PlatformFunctionGraphCommitModel { constructor(private client: OrmClient) {} findMany( diff --git a/sdk/constructive-functions-sdk/src/compute/orm/models/platformFunctionGraphExecution.ts b/sdk/constructive-functions-sdk/src/compute/orm/models/platformFunctionGraphExecution.ts index 37811bfdf..8d27c9a13 100644 --- a/sdk/constructive-functions-sdk/src/compute/orm/models/platformFunctionGraphExecution.ts +++ b/sdk/constructive-functions-sdk/src/compute/orm/models/platformFunctionGraphExecution.ts @@ -4,36 +4,33 @@ * DO NOT EDIT - changes will be overwritten */ import { OrmClient } from '../client'; +import type { + CreatePlatformFunctionGraphExecutionInput, + PlatformFunctionGraphExecutionFilter, + PlatformFunctionGraphExecutionOrderBy, + PlatformFunctionGraphExecutionPatch, + PlatformFunctionGraphExecutionSelect, + PlatformFunctionGraphExecutionWithRelations, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, buildCreateDocument, - buildUpdateByPkDocument, buildDeleteByPkDocument, + buildFindFirstDocument, + buildFindManyDocument, + buildUpdateByPkDocument, + QueryBuilder, } from '../query-builder'; import type { ConnectionResult, - FindManyArgs, - FindFirstArgs, CreateArgs, - UpdateArgs, DeleteArgs, + FindFirstArgs, + FindManyArgs, InferSelectResult, StrictSelect, + UpdateArgs, } from '../select-types'; -import type { - PlatformFunctionGraphExecution, - PlatformFunctionGraphExecutionWithRelations, - PlatformFunctionGraphExecutionSelect, - PlatformFunctionGraphExecutionFilter, - PlatformFunctionGraphExecutionOrderBy, - CreatePlatformFunctionGraphExecutionInput, - UpdatePlatformFunctionGraphExecutionInput, - PlatformFunctionGraphExecutionPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; export class PlatformFunctionGraphExecutionModel { constructor(private client: OrmClient) {} findMany( diff --git a/sdk/constructive-functions-sdk/src/compute/orm/models/platformFunctionGraphExecutionNodeState.ts b/sdk/constructive-functions-sdk/src/compute/orm/models/platformFunctionGraphExecutionNodeState.ts index d276f9fb1..27d16cd55 100644 --- a/sdk/constructive-functions-sdk/src/compute/orm/models/platformFunctionGraphExecutionNodeState.ts +++ b/sdk/constructive-functions-sdk/src/compute/orm/models/platformFunctionGraphExecutionNodeState.ts @@ -4,36 +4,33 @@ * DO NOT EDIT - changes will be overwritten */ import { OrmClient } from '../client'; +import type { + CreatePlatformFunctionGraphExecutionNodeStateInput, + PlatformFunctionGraphExecutionNodeStateFilter, + PlatformFunctionGraphExecutionNodeStateOrderBy, + PlatformFunctionGraphExecutionNodeStatePatch, + PlatformFunctionGraphExecutionNodeStateSelect, + PlatformFunctionGraphExecutionNodeStateWithRelations, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, buildCreateDocument, - buildUpdateByPkDocument, buildDeleteByPkDocument, + buildFindFirstDocument, + buildFindManyDocument, + buildUpdateByPkDocument, + QueryBuilder, } from '../query-builder'; import type { ConnectionResult, - FindManyArgs, - FindFirstArgs, CreateArgs, - UpdateArgs, DeleteArgs, + FindFirstArgs, + FindManyArgs, InferSelectResult, StrictSelect, + UpdateArgs, } from '../select-types'; -import type { - PlatformFunctionGraphExecutionNodeState, - PlatformFunctionGraphExecutionNodeStateWithRelations, - PlatformFunctionGraphExecutionNodeStateSelect, - PlatformFunctionGraphExecutionNodeStateFilter, - PlatformFunctionGraphExecutionNodeStateOrderBy, - CreatePlatformFunctionGraphExecutionNodeStateInput, - UpdatePlatformFunctionGraphExecutionNodeStateInput, - PlatformFunctionGraphExecutionNodeStatePatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; export class PlatformFunctionGraphExecutionNodeStateModel { constructor(private client: OrmClient) {} findMany( diff --git a/sdk/constructive-functions-sdk/src/compute/orm/models/platformFunctionGraphExecutionOutput.ts b/sdk/constructive-functions-sdk/src/compute/orm/models/platformFunctionGraphExecutionOutput.ts index ef2d4bc4d..2e6d28de6 100644 --- a/sdk/constructive-functions-sdk/src/compute/orm/models/platformFunctionGraphExecutionOutput.ts +++ b/sdk/constructive-functions-sdk/src/compute/orm/models/platformFunctionGraphExecutionOutput.ts @@ -4,36 +4,33 @@ * DO NOT EDIT - changes will be overwritten */ import { OrmClient } from '../client'; +import type { + CreatePlatformFunctionGraphExecutionOutputInput, + PlatformFunctionGraphExecutionOutputFilter, + PlatformFunctionGraphExecutionOutputOrderBy, + PlatformFunctionGraphExecutionOutputPatch, + PlatformFunctionGraphExecutionOutputSelect, + PlatformFunctionGraphExecutionOutputWithRelations, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, buildCreateDocument, - buildUpdateByPkDocument, buildDeleteByPkDocument, + buildFindFirstDocument, + buildFindManyDocument, + buildUpdateByPkDocument, + QueryBuilder, } from '../query-builder'; import type { ConnectionResult, - FindManyArgs, - FindFirstArgs, CreateArgs, - UpdateArgs, DeleteArgs, + FindFirstArgs, + FindManyArgs, InferSelectResult, StrictSelect, + UpdateArgs, } from '../select-types'; -import type { - PlatformFunctionGraphExecutionOutput, - PlatformFunctionGraphExecutionOutputWithRelations, - PlatformFunctionGraphExecutionOutputSelect, - PlatformFunctionGraphExecutionOutputFilter, - PlatformFunctionGraphExecutionOutputOrderBy, - CreatePlatformFunctionGraphExecutionOutputInput, - UpdatePlatformFunctionGraphExecutionOutputInput, - PlatformFunctionGraphExecutionOutputPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; export class PlatformFunctionGraphExecutionOutputModel { constructor(private client: OrmClient) {} findMany( diff --git a/sdk/constructive-functions-sdk/src/compute/orm/models/platformFunctionGraphObject.ts b/sdk/constructive-functions-sdk/src/compute/orm/models/platformFunctionGraphObject.ts index 65b88689b..09867fbcd 100644 --- a/sdk/constructive-functions-sdk/src/compute/orm/models/platformFunctionGraphObject.ts +++ b/sdk/constructive-functions-sdk/src/compute/orm/models/platformFunctionGraphObject.ts @@ -4,36 +4,34 @@ * DO NOT EDIT - changes will be overwritten */ import { OrmClient } from '../client'; +import type { + CreatePlatformFunctionGraphObjectInput, + PlatformFunctionGraphObjectFilter, + PlatformFunctionGraphObjectOrderBy, + PlatformFunctionGraphObjectPatch, + PlatformFunctionGraphObjectSelect, + PlatformFunctionGraphObjectWithRelations, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; import { - QueryBuilder, - buildFindManyDocument, + buildCreateDocument, + buildDeleteByPkDocument, buildFindFirstDocument, + buildFindManyDocument, buildFindOneDocument, - buildCreateDocument, buildUpdateByPkDocument, - buildDeleteByPkDocument, + QueryBuilder, } from '../query-builder'; import type { ConnectionResult, - FindManyArgs, - FindFirstArgs, CreateArgs, - UpdateArgs, DeleteArgs, + FindFirstArgs, + FindManyArgs, InferSelectResult, StrictSelect, + UpdateArgs, } from '../select-types'; -import type { - PlatformFunctionGraphObject, - PlatformFunctionGraphObjectWithRelations, - PlatformFunctionGraphObjectSelect, - PlatformFunctionGraphObjectFilter, - PlatformFunctionGraphObjectOrderBy, - CreatePlatformFunctionGraphObjectInput, - UpdatePlatformFunctionGraphObjectInput, - PlatformFunctionGraphObjectPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; export class PlatformFunctionGraphObjectModel { constructor(private client: OrmClient) {} findMany( diff --git a/sdk/constructive-functions-sdk/src/compute/orm/models/platformFunctionGraphRef.ts b/sdk/constructive-functions-sdk/src/compute/orm/models/platformFunctionGraphRef.ts index 6990d8913..cbcdf7b66 100644 --- a/sdk/constructive-functions-sdk/src/compute/orm/models/platformFunctionGraphRef.ts +++ b/sdk/constructive-functions-sdk/src/compute/orm/models/platformFunctionGraphRef.ts @@ -4,36 +4,33 @@ * DO NOT EDIT - changes will be overwritten */ import { OrmClient } from '../client'; +import type { + CreatePlatformFunctionGraphRefInput, + PlatformFunctionGraphRefFilter, + PlatformFunctionGraphRefOrderBy, + PlatformFunctionGraphRefPatch, + PlatformFunctionGraphRefSelect, + PlatformFunctionGraphRefWithRelations, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, buildCreateDocument, - buildUpdateByPkDocument, buildDeleteByPkDocument, + buildFindFirstDocument, + buildFindManyDocument, + buildUpdateByPkDocument, + QueryBuilder, } from '../query-builder'; import type { ConnectionResult, - FindManyArgs, - FindFirstArgs, CreateArgs, - UpdateArgs, DeleteArgs, + FindFirstArgs, + FindManyArgs, InferSelectResult, StrictSelect, + UpdateArgs, } from '../select-types'; -import type { - PlatformFunctionGraphRef, - PlatformFunctionGraphRefWithRelations, - PlatformFunctionGraphRefSelect, - PlatformFunctionGraphRefFilter, - PlatformFunctionGraphRefOrderBy, - CreatePlatformFunctionGraphRefInput, - UpdatePlatformFunctionGraphRefInput, - PlatformFunctionGraphRefPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; export class PlatformFunctionGraphRefModel { constructor(private client: OrmClient) {} findMany( diff --git a/sdk/constructive-functions-sdk/src/compute/orm/models/platformFunctionGraphStore.ts b/sdk/constructive-functions-sdk/src/compute/orm/models/platformFunctionGraphStore.ts index 0b91e0897..f7a880cda 100644 --- a/sdk/constructive-functions-sdk/src/compute/orm/models/platformFunctionGraphStore.ts +++ b/sdk/constructive-functions-sdk/src/compute/orm/models/platformFunctionGraphStore.ts @@ -4,36 +4,33 @@ * DO NOT EDIT - changes will be overwritten */ import { OrmClient } from '../client'; +import type { + CreatePlatformFunctionGraphStoreInput, + PlatformFunctionGraphStoreFilter, + PlatformFunctionGraphStoreOrderBy, + PlatformFunctionGraphStorePatch, + PlatformFunctionGraphStoreSelect, + PlatformFunctionGraphStoreWithRelations, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, buildCreateDocument, - buildUpdateByPkDocument, buildDeleteByPkDocument, + buildFindFirstDocument, + buildFindManyDocument, + buildUpdateByPkDocument, + QueryBuilder, } from '../query-builder'; import type { ConnectionResult, - FindManyArgs, - FindFirstArgs, CreateArgs, - UpdateArgs, DeleteArgs, + FindFirstArgs, + FindManyArgs, InferSelectResult, StrictSelect, + UpdateArgs, } from '../select-types'; -import type { - PlatformFunctionGraphStore, - PlatformFunctionGraphStoreWithRelations, - PlatformFunctionGraphStoreSelect, - PlatformFunctionGraphStoreFilter, - PlatformFunctionGraphStoreOrderBy, - CreatePlatformFunctionGraphStoreInput, - UpdatePlatformFunctionGraphStoreInput, - PlatformFunctionGraphStorePatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; export class PlatformFunctionGraphStoreModel { constructor(private client: OrmClient) {} findMany( diff --git a/sdk/constructive-functions-sdk/src/compute/orm/models/platformFunctionInvocation.ts b/sdk/constructive-functions-sdk/src/compute/orm/models/platformFunctionInvocation.ts index f52ba9df3..293023ded 100644 --- a/sdk/constructive-functions-sdk/src/compute/orm/models/platformFunctionInvocation.ts +++ b/sdk/constructive-functions-sdk/src/compute/orm/models/platformFunctionInvocation.ts @@ -4,36 +4,33 @@ * DO NOT EDIT - changes will be overwritten */ import { OrmClient } from '../client'; +import type { + CreatePlatformFunctionInvocationInput, + PlatformFunctionInvocationFilter, + PlatformFunctionInvocationOrderBy, + PlatformFunctionInvocationPatch, + PlatformFunctionInvocationSelect, + PlatformFunctionInvocationWithRelations, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, buildCreateDocument, - buildUpdateByPkDocument, buildDeleteByPkDocument, + buildFindFirstDocument, + buildFindManyDocument, + buildUpdateByPkDocument, + QueryBuilder, } from '../query-builder'; import type { ConnectionResult, - FindManyArgs, - FindFirstArgs, CreateArgs, - UpdateArgs, DeleteArgs, + FindFirstArgs, + FindManyArgs, InferSelectResult, StrictSelect, + UpdateArgs, } from '../select-types'; -import type { - PlatformFunctionInvocation, - PlatformFunctionInvocationWithRelations, - PlatformFunctionInvocationSelect, - PlatformFunctionInvocationFilter, - PlatformFunctionInvocationOrderBy, - CreatePlatformFunctionInvocationInput, - UpdatePlatformFunctionInvocationInput, - PlatformFunctionInvocationPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; export class PlatformFunctionInvocationModel { constructor(private client: OrmClient) {} findMany( diff --git a/sdk/constructive-functions-sdk/src/compute/orm/models/platformSecretDefinition.ts b/sdk/constructive-functions-sdk/src/compute/orm/models/platformSecretDefinition.ts index f4aed0f9d..69877f510 100644 --- a/sdk/constructive-functions-sdk/src/compute/orm/models/platformSecretDefinition.ts +++ b/sdk/constructive-functions-sdk/src/compute/orm/models/platformSecretDefinition.ts @@ -4,36 +4,33 @@ * DO NOT EDIT - changes will be overwritten */ import { OrmClient } from '../client'; +import type { + CreatePlatformSecretDefinitionInput, + PlatformSecretDefinitionFilter, + PlatformSecretDefinitionOrderBy, + PlatformSecretDefinitionPatch, + PlatformSecretDefinitionSelect, + PlatformSecretDefinitionWithRelations, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, buildCreateDocument, - buildUpdateByPkDocument, buildDeleteByPkDocument, + buildFindFirstDocument, + buildFindManyDocument, + buildUpdateByPkDocument, + QueryBuilder, } from '../query-builder'; import type { ConnectionResult, - FindManyArgs, - FindFirstArgs, CreateArgs, - UpdateArgs, DeleteArgs, + FindFirstArgs, + FindManyArgs, InferSelectResult, StrictSelect, + UpdateArgs, } from '../select-types'; -import type { - PlatformSecretDefinition, - PlatformSecretDefinitionWithRelations, - PlatformSecretDefinitionSelect, - PlatformSecretDefinitionFilter, - PlatformSecretDefinitionOrderBy, - CreatePlatformSecretDefinitionInput, - UpdatePlatformSecretDefinitionInput, - PlatformSecretDefinitionPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; export class PlatformSecretDefinitionModel { constructor(private client: OrmClient) {} findMany( diff --git a/sdk/constructive-functions-sdk/src/compute/orm/models/platformUsageDaily.ts b/sdk/constructive-functions-sdk/src/compute/orm/models/platformUsageDaily.ts index ab946c293..a565a6561 100644 --- a/sdk/constructive-functions-sdk/src/compute/orm/models/platformUsageDaily.ts +++ b/sdk/constructive-functions-sdk/src/compute/orm/models/platformUsageDaily.ts @@ -4,36 +4,33 @@ * DO NOT EDIT - changes will be overwritten */ import { OrmClient } from '../client'; +import type { + CreatePlatformUsageDailyInput, + PlatformUsageDailyFilter, + PlatformUsageDailyOrderBy, + PlatformUsageDailyPatch, + PlatformUsageDailySelect, + PlatformUsageDailyWithRelations, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, buildCreateDocument, - buildUpdateByPkDocument, buildDeleteByPkDocument, + buildFindFirstDocument, + buildFindManyDocument, + buildUpdateByPkDocument, + QueryBuilder, } from '../query-builder'; import type { ConnectionResult, - FindManyArgs, - FindFirstArgs, CreateArgs, - UpdateArgs, DeleteArgs, + FindFirstArgs, + FindManyArgs, InferSelectResult, StrictSelect, + UpdateArgs, } from '../select-types'; -import type { - PlatformUsageDaily, - PlatformUsageDailyWithRelations, - PlatformUsageDailySelect, - PlatformUsageDailyFilter, - PlatformUsageDailyOrderBy, - CreatePlatformUsageDailyInput, - UpdatePlatformUsageDailyInput, - PlatformUsageDailyPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; export class PlatformUsageDailyModel { constructor(private client: OrmClient) {} findMany( diff --git a/sdk/constructive-functions-sdk/src/compute/orm/mutation/index.ts b/sdk/constructive-functions-sdk/src/compute/orm/mutation/index.ts index 614085f5b..a74bbb65c 100644 --- a/sdk/constructive-functions-sdk/src/compute/orm/mutation/index.ts +++ b/sdk/constructive-functions-sdk/src/compute/orm/mutation/index.ts @@ -4,56 +4,56 @@ * DO NOT EDIT - changes will be overwritten */ import { OrmClient } from '../client'; -import { QueryBuilder, buildCustomDocument } from '../query-builder'; -import type { InferSelectResult, StrictSelect } from '../select-types'; import type { - PlatformValidateFunctionGraphInput, InitEmptyRepoInput, - PlatformImportDefinitionsInput, - SetDataAtPathInput, - PlatformCopyGraphInput, - PlatformSaveGraphInput, - PlatformAddEdgeAndSaveInput, - PlatformAddNodeAndSaveInput, - PlatformCreateFunctionGraphInput, - PlatformAddEdgeInput, - PlatformAddNodeInput, - PlatformImportGraphJsonInput, - InsertNodeAtPathInput, - PlatformStartExecutionInput, - ProvisionBucketInput, - PlatformValidateFunctionGraphPayload, InitEmptyRepoPayload, - PlatformImportDefinitionsPayload, - SetDataAtPathPayload, - PlatformCopyGraphPayload, - PlatformSaveGraphPayload, + InitEmptyRepoPayloadSelect, + InsertNodeAtPathInput, + InsertNodeAtPathPayload, + InsertNodeAtPathPayloadSelect, + PlatformAddEdgeAndSaveInput, PlatformAddEdgeAndSavePayload, - PlatformAddNodeAndSavePayload, - PlatformCreateFunctionGraphPayload, + PlatformAddEdgeAndSavePayloadSelect, + PlatformAddEdgeInput, PlatformAddEdgePayload, + PlatformAddEdgePayloadSelect, + PlatformAddNodeAndSaveInput, + PlatformAddNodeAndSavePayload, + PlatformAddNodeAndSavePayloadSelect, + PlatformAddNodeInput, PlatformAddNodePayload, - PlatformImportGraphJsonPayload, - InsertNodeAtPathPayload, - PlatformStartExecutionPayload, - ProvisionBucketPayload, - PlatformValidateFunctionGraphPayloadSelect, - InitEmptyRepoPayloadSelect, - PlatformImportDefinitionsPayloadSelect, - SetDataAtPathPayloadSelect, + PlatformAddNodePayloadSelect, + PlatformCopyGraphInput, + PlatformCopyGraphPayload, PlatformCopyGraphPayloadSelect, - PlatformSaveGraphPayloadSelect, - PlatformAddEdgeAndSavePayloadSelect, - PlatformAddNodeAndSavePayloadSelect, + PlatformCreateFunctionGraphInput, + PlatformCreateFunctionGraphPayload, PlatformCreateFunctionGraphPayloadSelect, - PlatformAddEdgePayloadSelect, - PlatformAddNodePayloadSelect, + PlatformImportDefinitionsInput, + PlatformImportDefinitionsPayload, + PlatformImportDefinitionsPayloadSelect, + PlatformImportGraphJsonInput, + PlatformImportGraphJsonPayload, PlatformImportGraphJsonPayloadSelect, - InsertNodeAtPathPayloadSelect, + PlatformSaveGraphInput, + PlatformSaveGraphPayload, + PlatformSaveGraphPayloadSelect, + PlatformStartExecutionInput, + PlatformStartExecutionPayload, PlatformStartExecutionPayloadSelect, + PlatformValidateFunctionGraphInput, + PlatformValidateFunctionGraphPayload, + PlatformValidateFunctionGraphPayloadSelect, + ProvisionBucketInput, + ProvisionBucketPayload, ProvisionBucketPayloadSelect, + SetDataAtPathInput, + SetDataAtPathPayload, + SetDataAtPathPayloadSelect, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; +import { buildCustomDocument,QueryBuilder } from '../query-builder'; +import type { InferSelectResult, StrictSelect } from '../select-types'; export interface PlatformValidateFunctionGraphVariables { input: PlatformValidateFunctionGraphInput; } diff --git a/sdk/constructive-functions-sdk/src/compute/orm/query/index.ts b/sdk/constructive-functions-sdk/src/compute/orm/query/index.ts index 7cf9d02bd..dc937e1c6 100644 --- a/sdk/constructive-functions-sdk/src/compute/orm/query/index.ts +++ b/sdk/constructive-functions-sdk/src/compute/orm/query/index.ts @@ -4,9 +4,8 @@ * DO NOT EDIT - changes will be overwritten */ import { OrmClient } from '../client'; -import { QueryBuilder, buildCustomDocument } from '../query-builder'; -import type { InferSelectResult, StrictSelect } from '../select-types'; import { connectionFieldsMap } from '../input-types'; +import { buildCustomDocument,QueryBuilder } from '../query-builder'; export interface PlatformReadFunctionGraphVariables { graphId?: string; } diff --git a/sdk/constructive-functions-sdk/src/objects/orm/client.ts b/sdk/constructive-functions-sdk/src/objects/orm/client.ts index 16e683c71..d3006224b 100644 --- a/sdk/constructive-functions-sdk/src/objects/orm/client.ts +++ b/sdk/constructive-functions-sdk/src/objects/orm/client.ts @@ -14,19 +14,12 @@ import type { ConnectionState, ConnectionStateListener, RealtimeConfig, - SubscribeOptions, SubscriptionEvent, SubscriptionFieldMeta, Unsubscribe, } from './realtime'; import { RealtimeManager } from './realtime'; -export type { - GraphQLAdapter, - GraphQLError, - QueryResult, -} from '@constructive-io/graphql-query/runtime'; - export type { ConnectionState, ConnectionStateListener, @@ -39,6 +32,11 @@ export type { WsClient, } from './realtime'; export { RealtimeManager } from './realtime'; +export type { + GraphQLAdapter, + GraphQLError, + QueryResult, +} from '@constructive-io/graphql-query/runtime'; /** * Default adapter that uses fetch for HTTP requests. diff --git a/sdk/constructive-functions-sdk/src/objects/orm/index.ts b/sdk/constructive-functions-sdk/src/objects/orm/index.ts index e9d82bf8c..1265f59b3 100644 --- a/sdk/constructive-functions-sdk/src/objects/orm/index.ts +++ b/sdk/constructive-functions-sdk/src/objects/orm/index.ts @@ -3,20 +3,20 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ -import { OrmClient } from './client'; import type { OrmClientConfig } from './client'; +import { OrmClient } from './client'; +import { CommitModel } from './models/commit'; import { GetAllRecordModel } from './models/getAllRecord'; -import { StoreModel } from './models/store'; -import { RefModel } from './models/ref'; import { ObjectModel } from './models/object'; -import { CommitModel } from './models/commit'; +import { RefModel } from './models/ref'; +import { StoreModel } from './models/store'; import { createMutationOperations } from './mutation'; -export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client'; -export { GraphQLRequestError, FetchAdapter } from './client'; -export { QueryBuilder } from './query-builder'; -export * from './select-types'; +export type { GraphQLAdapter,GraphQLError, OrmClientConfig, QueryResult } from './client'; +export { FetchAdapter,GraphQLRequestError } from './client'; export * from './models'; export { createMutationOperations } from './mutation'; +export { QueryBuilder } from './query-builder'; +export * from './select-types'; /** * Create an ORM client instance * diff --git a/sdk/constructive-functions-sdk/src/objects/orm/models/commit.ts b/sdk/constructive-functions-sdk/src/objects/orm/models/commit.ts index 9f20aeeef..600cea8df 100644 --- a/sdk/constructive-functions-sdk/src/objects/orm/models/commit.ts +++ b/sdk/constructive-functions-sdk/src/objects/orm/models/commit.ts @@ -4,36 +4,33 @@ * DO NOT EDIT - changes will be overwritten */ import { OrmClient } from '../client'; +import type { + CommitFilter, + CommitOrderBy, + CommitPatch, + CommitSelect, + CommitWithRelations, + CreateCommitInput, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, buildCreateDocument, - buildUpdateByPkDocument, buildDeleteByPkDocument, + buildFindFirstDocument, + buildFindManyDocument, + buildUpdateByPkDocument, + QueryBuilder, } from '../query-builder'; import type { ConnectionResult, - FindManyArgs, - FindFirstArgs, CreateArgs, - UpdateArgs, DeleteArgs, + FindFirstArgs, + FindManyArgs, InferSelectResult, StrictSelect, + UpdateArgs, } from '../select-types'; -import type { - Commit, - CommitWithRelations, - CommitSelect, - CommitFilter, - CommitOrderBy, - CreateCommitInput, - UpdateCommitInput, - CommitPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; export class CommitModel { constructor(private client: OrmClient) {} findMany( diff --git a/sdk/constructive-functions-sdk/src/objects/orm/models/getAllRecord.ts b/sdk/constructive-functions-sdk/src/objects/orm/models/getAllRecord.ts index 39a82fbbb..6da0fa693 100644 --- a/sdk/constructive-functions-sdk/src/objects/orm/models/getAllRecord.ts +++ b/sdk/constructive-functions-sdk/src/objects/orm/models/getAllRecord.ts @@ -4,36 +4,28 @@ * DO NOT EDIT - changes will be overwritten */ import { OrmClient } from '../client'; +import type { + CreateGetAllRecordInput, + GetAllRecordFilter, + GetAllRecordSelect, + GetAllRecordsOrderBy, + GetAllRecordWithRelations, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, buildCreateDocument, - buildUpdateByPkDocument, - buildDeleteByPkDocument, + buildFindFirstDocument, + buildFindManyDocument, + QueryBuilder, } from '../query-builder'; import type { ConnectionResult, - FindManyArgs, - FindFirstArgs, CreateArgs, - UpdateArgs, - DeleteArgs, + FindFirstArgs, + FindManyArgs, InferSelectResult, StrictSelect, } from '../select-types'; -import type { - GetAllRecord, - GetAllRecordWithRelations, - GetAllRecordSelect, - GetAllRecordFilter, - GetAllRecordsOrderBy, - CreateGetAllRecordInput, - UpdateGetAllRecordInput, - GetAllRecordPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; export class GetAllRecordModel { constructor(private client: OrmClient) {} findMany( diff --git a/sdk/constructive-functions-sdk/src/objects/orm/models/index.ts b/sdk/constructive-functions-sdk/src/objects/orm/models/index.ts index 4ae09e158..8158942de 100644 --- a/sdk/constructive-functions-sdk/src/objects/orm/models/index.ts +++ b/sdk/constructive-functions-sdk/src/objects/orm/models/index.ts @@ -3,8 +3,8 @@ * @generated by @constructive-io/graphql-codegen * DO NOT EDIT - changes will be overwritten */ +export { CommitModel } from './commit'; export { GetAllRecordModel } from './getAllRecord'; -export { StoreModel } from './store'; -export { RefModel } from './ref'; export { ObjectModel } from './object'; -export { CommitModel } from './commit'; +export { RefModel } from './ref'; +export { StoreModel } from './store'; diff --git a/sdk/constructive-functions-sdk/src/objects/orm/models/object.ts b/sdk/constructive-functions-sdk/src/objects/orm/models/object.ts index 9470d460f..3dda873e6 100644 --- a/sdk/constructive-functions-sdk/src/objects/orm/models/object.ts +++ b/sdk/constructive-functions-sdk/src/objects/orm/models/object.ts @@ -4,36 +4,34 @@ * DO NOT EDIT - changes will be overwritten */ import { OrmClient } from '../client'; +import type { + CreateObjectInput, + ObjectFilter, + ObjectOrderBy, + ObjectPatch, + ObjectSelect, + ObjectWithRelations, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; import { - QueryBuilder, - buildFindManyDocument, + buildCreateDocument, + buildDeleteByPkDocument, buildFindFirstDocument, + buildFindManyDocument, buildFindOneDocument, - buildCreateDocument, buildUpdateByPkDocument, - buildDeleteByPkDocument, + QueryBuilder, } from '../query-builder'; import type { ConnectionResult, - FindManyArgs, - FindFirstArgs, CreateArgs, - UpdateArgs, DeleteArgs, + FindFirstArgs, + FindManyArgs, InferSelectResult, StrictSelect, + UpdateArgs, } from '../select-types'; -import type { - Object, - ObjectWithRelations, - ObjectSelect, - ObjectFilter, - ObjectOrderBy, - CreateObjectInput, - UpdateObjectInput, - ObjectPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; export class ObjectModel { constructor(private client: OrmClient) {} findMany( diff --git a/sdk/constructive-functions-sdk/src/objects/orm/models/ref.ts b/sdk/constructive-functions-sdk/src/objects/orm/models/ref.ts index d29b2308a..d1e66355e 100644 --- a/sdk/constructive-functions-sdk/src/objects/orm/models/ref.ts +++ b/sdk/constructive-functions-sdk/src/objects/orm/models/ref.ts @@ -4,36 +4,33 @@ * DO NOT EDIT - changes will be overwritten */ import { OrmClient } from '../client'; +import type { + CreateRefInput, + RefFilter, + RefOrderBy, + RefPatch, + RefSelect, + RefWithRelations, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, buildCreateDocument, - buildUpdateByPkDocument, buildDeleteByPkDocument, + buildFindFirstDocument, + buildFindManyDocument, + buildUpdateByPkDocument, + QueryBuilder, } from '../query-builder'; import type { ConnectionResult, - FindManyArgs, - FindFirstArgs, CreateArgs, - UpdateArgs, DeleteArgs, + FindFirstArgs, + FindManyArgs, InferSelectResult, StrictSelect, + UpdateArgs, } from '../select-types'; -import type { - Ref, - RefWithRelations, - RefSelect, - RefFilter, - RefOrderBy, - CreateRefInput, - UpdateRefInput, - RefPatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; export class RefModel { constructor(private client: OrmClient) {} findMany( diff --git a/sdk/constructive-functions-sdk/src/objects/orm/models/store.ts b/sdk/constructive-functions-sdk/src/objects/orm/models/store.ts index 3e81e5f9c..90640d315 100644 --- a/sdk/constructive-functions-sdk/src/objects/orm/models/store.ts +++ b/sdk/constructive-functions-sdk/src/objects/orm/models/store.ts @@ -4,36 +4,33 @@ * DO NOT EDIT - changes will be overwritten */ import { OrmClient } from '../client'; +import type { + CreateStoreInput, + StoreFilter, + StoreOrderBy, + StorePatch, + StoreSelect, + StoreWithRelations, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; import { - QueryBuilder, - buildFindManyDocument, - buildFindFirstDocument, - buildFindOneDocument, buildCreateDocument, - buildUpdateByPkDocument, buildDeleteByPkDocument, + buildFindFirstDocument, + buildFindManyDocument, + buildUpdateByPkDocument, + QueryBuilder, } from '../query-builder'; import type { ConnectionResult, - FindManyArgs, - FindFirstArgs, CreateArgs, - UpdateArgs, DeleteArgs, + FindFirstArgs, + FindManyArgs, InferSelectResult, StrictSelect, + UpdateArgs, } from '../select-types'; -import type { - Store, - StoreWithRelations, - StoreSelect, - StoreFilter, - StoreOrderBy, - CreateStoreInput, - UpdateStoreInput, - StorePatch, -} from '../input-types'; -import { connectionFieldsMap } from '../input-types'; export class StoreModel { constructor(private client: OrmClient) {} findMany( diff --git a/sdk/constructive-functions-sdk/src/objects/orm/mutation/index.ts b/sdk/constructive-functions-sdk/src/objects/orm/mutation/index.ts index 60faf5871..ce46438ef 100644 --- a/sdk/constructive-functions-sdk/src/objects/orm/mutation/index.ts +++ b/sdk/constructive-functions-sdk/src/objects/orm/mutation/index.ts @@ -4,23 +4,23 @@ * DO NOT EDIT - changes will be overwritten */ import { OrmClient } from '../client'; -import { QueryBuilder, buildCustomDocument } from '../query-builder'; -import type { InferSelectResult, StrictSelect } from '../select-types'; import type { InitEmptyRepoInput, - SetDataAtPathInput, - InsertNodeAtPathInput, - ProvisionBucketInput, InitEmptyRepoPayload, - SetDataAtPathPayload, - InsertNodeAtPathPayload, - ProvisionBucketPayload, InitEmptyRepoPayloadSelect, - SetDataAtPathPayloadSelect, + InsertNodeAtPathInput, + InsertNodeAtPathPayload, InsertNodeAtPathPayloadSelect, + ProvisionBucketInput, + ProvisionBucketPayload, ProvisionBucketPayloadSelect, + SetDataAtPathInput, + SetDataAtPathPayload, + SetDataAtPathPayloadSelect, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; +import { buildCustomDocument,QueryBuilder } from '../query-builder'; +import type { InferSelectResult, StrictSelect } from '../select-types'; export interface InitEmptyRepoVariables { input: InitEmptyRepoInput; } From 4add224d8b1e29afcdfa79194906cecf37b6b98a Mon Sep 17 00:00:00 2001 From: Dan Lynch Date: Mon, 15 Jun 2026 06:26:28 +0000 Subject: [PATCH 2/3] fix: strip fabricated GraphQL calls from stubs, change worker to validate-only MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Remove fake InsertNamespaceEvent mutation from namespace-provision - Simplify all three stubs to validate + log + return (no DB calls) - Change ComputeWorker from resolveAndInjectSecrets → validateSecrets: checks existence only, does not inject into process.env - Remove unused SecretsLoader from legacy worker (no function defs) --- functions/function-provision/handler.ts | 68 +++------------- functions/function-sync-resources/handler.ts | 85 +++----------------- functions/namespace-provision/handler.ts | 55 +++---------- job/compute-worker/src/index.ts | 36 +++------ job/worker/src/index.ts | 27 ------- 5 files changed, 49 insertions(+), 222 deletions(-) diff --git a/functions/function-provision/handler.ts b/functions/function-provision/handler.ts index d53726e2d..c3e21f4ce 100644 --- a/functions/function-provision/handler.ts +++ b/functions/function-provision/handler.ts @@ -17,75 +17,31 @@ type FunctionProvisionPayload = { /** * Phase 1 stub: function-provision * - * Receives a function definition from the job payload, validates - * service_url exists or generates a gateway URL, and if required_secrets - * is non-empty, validates those secrets exist in the function's namespace. - * - * In later phases this will actually deploy the function, configure - * Knative services, set up ingress routes, etc. + * Validates the incoming function definition payload and logs the + * provisioning request. Later phases will deploy the function to Knative, + * reconcile K8s secrets from the config_secrets_module, and configure + * ingress routes. */ const handler: FunctionHandler = async (params, context) => { - const { log, env } = context; - const { - function_id, - name, - service_url, - namespace_name, - required_secrets, - } = params; + const { log } = context; + const { function_id, name, service_url, namespace_name, required_secrets } = params; if (!function_id) { throw new Error('function_id is required'); } - log.info('function-provision: starting', { + log.info('function-provision: validated', { function_id, - name, - namespace_name, + name: name ?? null, has_service_url: Boolean(service_url), + namespace_name: namespace_name ?? null, required_secrets_count: required_secrets?.length ?? 0, }); - // Step 1: Validate or generate service_url - let resolvedUrl = service_url; - if (!resolvedUrl) { - const gatewayUrl = env.COMPUTE_GATEWAY_URL || env.INTERNAL_GATEWAY_URL; - if (gatewayUrl && name) { - resolvedUrl = `${gatewayUrl.replace(/\/$/, '')}/${name}`; - log.info('function-provision: generated gateway URL', { resolvedUrl }); - } else { - log.warn('function-provision: no service_url and no gateway configured'); - } - } - - // Step 2: Validate required secrets exist (by checking env — after secret injection) - const missingSecrets: string[] = []; - if (required_secrets && required_secrets.length > 0) { - for (const secret of required_secrets) { - if (secret.required && !env[secret.name]) { - missingSecrets.push(secret.name); - } - } - - if (missingSecrets.length > 0) { - log.warn('function-provision: missing required secrets', { - function_id, - name, - namespace_name, - missing: missingSecrets, - }); - } else { - log.info('function-provision: all required secrets present', { - function_id, - count: required_secrets.filter(s => s.required).length, - }); - } - } - return { - status: missingSecrets.length > 0 ? 'missing_secrets' : 'provisioned', - service_url: resolvedUrl ?? null, - missing_secrets: missingSecrets, + status: 'validated', + function_id, + service_url: service_url ?? null, }; }; diff --git a/functions/function-sync-resources/handler.ts b/functions/function-sync-resources/handler.ts index 02ab6cf6e..7aaa1a957 100644 --- a/functions/function-sync-resources/handler.ts +++ b/functions/function-sync-resources/handler.ts @@ -19,14 +19,12 @@ type FunctionSyncResourcesPayload = { /** * Phase 1 stub: function-sync-resources * - * Resolves all declared resources for the function's scope, - * validates they exist, and logs warnings for missing resources. - * - * In later phases this will actually reconcile resource bindings, - * ensure bucket policies are configured, and validate model access. + * Validates the incoming resource declarations and logs a summary. + * Later phases will reconcile K8s secrets, verify bucket existence, + * check model access, and report drift. */ const handler: FunctionHandler = async (params, context) => { - const { log, env } = context; + const { log } = context; const { function_id, name, @@ -41,81 +39,24 @@ const handler: FunctionHandler = async (params, co throw new Error('function_id is required'); } - log.info('function-sync-resources: starting', { - function_id, - name, - namespace_name, + const declared = { secrets: required_secrets?.length ?? 0, configs: required_configs?.length ?? 0, buckets: required_buckets?.length ?? 0, models: required_models?.length ?? 0, - }); - - const warnings: string[] = []; - let resolvedCount = 0; - - // Check secrets — already injected into env by the compute worker - if (required_secrets) { - for (const secret of required_secrets) { - if (env[secret.name]) { - resolvedCount++; - } else if (secret.required) { - warnings.push(`missing required secret: ${secret.name}`); - } else { - log.info(`optional secret not present: ${secret.name}`); - } - } - } - - // Check configs — also in env - if (required_configs) { - for (const config of required_configs) { - if (env[config.name]) { - resolvedCount++; - } else if (config.required) { - warnings.push(`missing required config: ${config.name}`); - } else { - log.info(`optional config not present: ${config.name}`); - } - } - } - - // Check buckets — phase 1 stub: just validate the names are declared - if (required_buckets) { - for (const bucket of required_buckets) { - // In later phases we'd verify the bucket exists in S3/MinIO - log.info(`declared bucket: ${bucket} (validation deferred to phase 2)`); - resolvedCount++; - } - } - - // Check models — phase 1 stub: just validate the names are declared - if (required_models) { - for (const model of required_models) { - // In later phases we'd verify model access via the agentic server - log.info(`declared model: ${model} (validation deferred to phase 2)`); - resolvedCount++; - } - } - - if (warnings.length > 0) { - log.warn('function-sync-resources: missing resources', { - function_id, - name, - warnings, - }); - } + }; - log.info('function-sync-resources: complete', { + log.info('function-sync-resources: validated', { function_id, - resolved: resolvedCount, - warnings: warnings.length, + name: name ?? null, + namespace_name: namespace_name ?? null, + ...declared, }); return { - status: warnings.length > 0 ? 'warnings' : 'ok', - resolved_count: resolvedCount, - warnings, + status: 'validated', + function_id, + declared, }; }; diff --git a/functions/namespace-provision/handler.ts b/functions/namespace-provision/handler.ts index 2bbdc410f..9a7ee3a2b 100644 --- a/functions/namespace-provision/handler.ts +++ b/functions/namespace-provision/handler.ts @@ -10,65 +10,34 @@ type NamespaceProvisionPayload = { /** * Phase 1 stub: namespace-provision * - * Receives a namespace row from the job payload, validates that - * namespace_name is computed, logs the provisioning event, and - * inserts a 'created' event into namespace_events. - * - * In later phases this will actually create K8s namespaces, - * configure network policies, etc. + * Validates the incoming namespace payload and logs the provisioning request. + * Later phases will create K8s namespaces, configure network policies, + * and write events to the namespace_events table once the DB schema is ready. */ const handler: FunctionHandler = async (params, context) => { - const { log, client } = context; + const { log } = context; const { namespace_id, namespace_name, global_name } = params; if (!namespace_id || !namespace_name) { throw new Error('namespace_id and namespace_name are required'); } - log.info('namespace-provision: starting', { - namespace_id, - namespace_name, - global_name, - }); - - // Validate namespace_name is a non-empty, lowercase slug if (!/^[a-z][a-z0-9-]*$/.test(namespace_name)) { throw new Error( `Invalid namespace_name "${namespace_name}" — must be lowercase alphanumeric with hyphens` ); } - // Phase 1: insert a 'created' event into namespace_events via GraphQL - // This is a stub — the actual mutation will depend on the DB schema from constructive-db - const eventType = 'created'; - try { - await client.request( - `mutation InsertNamespaceEvent($input: NamespaceEventInput!) { - createNamespaceEvent(input: $input) { event { id } } - }`, - { - input: { - namespaceEvent: { - namespaceId: namespace_id, - eventType, - metadata: JSON.stringify({ - namespace_name, - global_name: global_name ?? null, - provisioned_at: new Date().toISOString(), - }), - }, - }, - } - ); - log.info('namespace-provision: event inserted', { namespace_id, eventType }); - } catch (err: unknown) { - const msg = err instanceof Error ? err.message : String(err); - log.warn(`namespace-provision: event insertion failed (phase 1 stub): ${msg}`); - } + log.info('namespace-provision: validated', { + namespace_id, + namespace_name, + global_name: global_name ?? null, + }); return { - status: 'provisioned', - event_type: eventType, + status: 'validated', + namespace_id, + namespace_name, }; }; diff --git a/job/compute-worker/src/index.ts b/job/compute-worker/src/index.ts index f371c5afe..dea563166 100644 --- a/job/compute-worker/src/index.ts +++ b/job/compute-worker/src/index.ts @@ -280,16 +280,18 @@ export default class ComputeWorker { } } - // ─── Secret resolution ────────────────────────────────────────────── + // ─── Secret validation ───────────────────────────────────────────── /** - * Resolve required_secrets and required_configs from the config_secrets_module - * and inject them into process.env before dispatch. + * Validate that required_secrets and required_configs exist in the + * config_secrets_module before dispatch. * - * Secrets are looked up by name within the function's namespace scope. - * Only declared secrets/configs are resolved — no wildcard injection. + * Does NOT inject values into process.env — secrets are provisioned + * into Knative service env vars via K8s secrets by the provisioning + * pipeline. This method only checks existence and logs warnings for + * missing required entries. */ - private async resolveAndInjectSecrets( + private async validateSecrets( fn: PlatformFunctionDefinition, databaseId?: string ): Promise { @@ -300,26 +302,13 @@ export default class ComputeWorker { if (allNames.length === 0) return; const dbId = databaseId || this.platformDatabaseId; - // namespace_id may be present on the function definition; we pass undefined - // for global-scoped functions (secrets stored without a namespace) const namespaceName = fn.namespace_id ?? undefined; const resolved = await this.secrets.resolveSecrets(allNames, namespaceName, dbId); + const resolvedNames = new Set(resolved.map(s => s.name)); - let injected = 0; - for (const secret of resolved) { - if (secret.value !== undefined && secret.value !== null) { - process.env[secret.name] = secret.value; - injected++; - } - } - - if (injected > 0) { - log.info(`injected ${injected} secret(s) for function "${fn.name}"`); - } + log.info(`validated ${resolvedNames.size}/${allNames.length} secret(s) for function "${fn.name}"`); - // Log warnings for missing required secrets - const resolvedNames = new Set(resolved.map(s => s.name)); for (const req of fn.required_secrets ?? []) { if (req.required && !resolvedNames.has(req.name)) { log.warn(`missing required secret "${req.name}" for function "${fn.name}"`); @@ -371,9 +360,8 @@ export default class ComputeWorker { await this.markNodeRunning(payload.execution_id, payload.node_name); } - // Resolve required_secrets and required_configs from the secrets module - // and inject them into process.env before dispatch - await this.resolveAndInjectSecrets(fn, job.database_id); + // Validate that required secrets/configs exist in the secrets module + await this.validateSecrets(fn, job.database_id); // Determine dispatch mode: inline (in-process) vs HTTP const isInline = fn.runtime === 'inline' || getInlineImpl(functionName) !== null; diff --git a/job/worker/src/index.ts b/job/worker/src/index.ts index 14d702289..601780596 100644 --- a/job/worker/src/index.ts +++ b/job/worker/src/index.ts @@ -1,7 +1,6 @@ import poolManager from '@constructive-io/job-pg'; import type { PgClientLike } from '@constructive-io/job-utils'; import * as jobs from '@constructive-io/job-utils'; -import { SecretsLoader } from '@constructive-io/module-loader'; import { Logger } from '@pgpmjs/logger'; import type { Pool, PoolClient } from 'pg'; @@ -28,7 +27,6 @@ export default class Worker { doNextTimer?: NodeJS.Timeout; pgPool: Pool; usageClient: UsageClient; - secretsLoader: SecretsLoader; _initialized?: boolean; listenClient?: PoolClient; listenRelease?: () => void; @@ -59,7 +57,6 @@ export default class Worker { this.doNextTimer = undefined; this.pgPool = pgPool; this.usageClient = new UsageClient(pgPool); - this.secretsLoader = new SecretsLoader(pgPool); poolManager.onClose(async () => { await jobs.releaseJobs(pgPool, { workerId: this.workerId }); }); @@ -111,27 +108,6 @@ export default class Worker { `Async task ${job.id} (${job.task_identifier}) to be processed` ); } - /** - * Resolve secrets/configs from the config_secrets_module and inject into process.env. - * Used by the legacy worker for backward compatibility with the new secret resolution flow. - */ - private async resolveAndInjectSecrets(job: JobRow): Promise { - try { - const resolved = await this.secretsLoader.resolveSecrets( - [], // Legacy worker doesn't have function definitions with required_secrets - undefined, - job.database_id - ); - for (const secret of resolved) { - if (secret.value !== undefined && secret.value !== null) { - process.env[secret.name] = secret.value; - } - } - } catch { - log.debug('secret resolution unavailable (non-fatal)'); - } - } - async doWork(job: JobRow) { const { payload, task_identifier } = job; log.debug('starting work on job', { @@ -146,9 +122,6 @@ export default class Worker { throw new Error('Unsupported task'); } - // Resolve secrets from DB before dispatch (no-op if secrets module not provisioned) - await this.resolveAndInjectSecrets(job); - const startTime = process.hrtime.bigint(); // Inline execution path: native FBP nodes with graph job payloads From 681e1b6f4e4bfe79655af88799310df7c154e383 Mon Sep 17 00:00:00 2001 From: Dan Lynch Date: Mon, 15 Jun 2026 06:40:05 +0000 Subject: [PATCH 3/3] fix(secrets): correct metaschema queries, PGP decrypt, namespace resolution MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Use metaschema.schema_and_table() for correct schema/table name resolution - Replace fabricated secrets_table_name/decrypted_value with real columns - Add two-step namespace resolution: name → UUID via namespace_module - Query secrets by namespace_id (UUID FK), not namespace_name (doesn't exist) - Decrypt secrets via pgp_sym_decrypt(value, key_id::text) - Add namespace_name to PlatformFunctionDefinition type and discovery COLUMNS - Use fn.namespace_name instead of fn.namespace_id in validateSecrets --- job/compute-worker/src/discovery.ts | 2 +- job/compute-worker/src/index.ts | 2 +- job/compute-worker/src/types.ts | 1 + packages/module-loader/src/secrets-loader.ts | 95 +++++++++++++++----- 4 files changed, 77 insertions(+), 23 deletions(-) diff --git a/job/compute-worker/src/discovery.ts b/job/compute-worker/src/discovery.ts index c25f07561..e5050eaf6 100644 --- a/job/compute-worker/src/discovery.ts +++ b/job/compute-worker/src/discovery.ts @@ -20,7 +20,7 @@ const log = new Logger('compute:discovery'); const COLUMNS = ` id, name, task_identifier, service_url, is_invocable, is_built_in, max_attempts, - priority, queue_name, scope, namespace_id, + priority, queue_name, scope, namespace_id, namespace_name, required_configs, required_secrets, description, runtime, inputs, outputs`; diff --git a/job/compute-worker/src/index.ts b/job/compute-worker/src/index.ts index dea563166..ec5961965 100644 --- a/job/compute-worker/src/index.ts +++ b/job/compute-worker/src/index.ts @@ -302,7 +302,7 @@ export default class ComputeWorker { if (allNames.length === 0) return; const dbId = databaseId || this.platformDatabaseId; - const namespaceName = fn.namespace_id ?? undefined; + const namespaceName = fn.namespace_name ?? undefined; const resolved = await this.secrets.resolveSecrets(allNames, namespaceName, dbId); const resolvedNames = new Set(resolved.map(s => s.name)); diff --git a/job/compute-worker/src/types.ts b/job/compute-worker/src/types.ts index b62cf5ddb..e14cafc44 100644 --- a/job/compute-worker/src/types.ts +++ b/job/compute-worker/src/types.ts @@ -38,6 +38,7 @@ export interface PlatformFunctionDefinition { queue_name: string | null; scope: string | null; namespace_id: string | null; + namespace_name: string | null; required_configs: FunctionRequirement[] | null; required_secrets: FunctionRequirement[] | null; description: string | null; diff --git a/packages/module-loader/src/secrets-loader.ts b/packages/module-loader/src/secrets-loader.ts index 154399b28..f5eba40e1 100644 --- a/packages/module-loader/src/secrets-loader.ts +++ b/packages/module-loader/src/secrets-loader.ts @@ -3,11 +3,15 @@ * from MetaSchema, then queries the resolved secrets table for name+namespace * matches. * - * Used by the compute worker to dynamically inject secrets into a function's - * env before dispatch. + * Secrets are PGP-encrypted (bytea column `value`). Decryption uses + * pgp_sym_decrypt(value, key_id::text) where key_id is the per-secret + * encryption key stored alongside each row. * - * Multi-database: pass different databaseId to resolve secrets for - * platform scope vs tenant scope. + * Resolution flow: + * 1. Query config_secrets_module for table_id → resolve via schema_and_table() + * 2. If namespace_name provided: resolve to namespace UUID via namespace_module + * 3. Query secrets table: WHERE namespace_id = $ns_uuid AND name = ANY($names) + * 4. Decrypt via pgp_sym_decrypt(value, key_id::text) */ import { Logger } from '@pgpmjs/logger'; @@ -23,14 +27,23 @@ const log = new Logger('module-loader:secrets'); const CONFIG_SECRETS_MODULE_SQL = ` SELECT - s.schema_name AS public_schema, - ps.schema_name AS private_schema, - csm.secrets_table_name, + st.schema_name AS secrets_schema, + st.table_name AS secrets_table, csm.scope FROM metaschema_modules_public.config_secrets_module csm - JOIN metaschema_public.schema s ON csm.schema_id = s.id - JOIN metaschema_public.schema ps ON csm.private_schema_id = ps.id + CROSS JOIN LATERAL metaschema.schema_and_table(csm.table_id) st WHERE csm.database_id = $1 + ORDER BY csm.scope ASC + LIMIT 1 +`; + +const NAMESPACE_MODULE_SQL = ` + SELECT + st.schema_name AS ns_schema, + st.table_name AS ns_table + FROM metaschema_modules_public.namespace_module nm + CROSS JOIN LATERAL metaschema.schema_and_table(nm.namespaces_table_id) st + WHERE nm.database_id = $1 LIMIT 1 `; @@ -63,9 +76,9 @@ export class SecretsLoader { return null; } const config: ConfigSecretsModuleConfig = { - publicSchema: rows[0].public_schema, - privateSchema: rows[0].private_schema, - secretsTable: rows[0].secrets_table_name, + publicSchema: rows[0].secrets_schema, + privateSchema: rows[0].secrets_schema, + secretsTable: rows[0].secrets_table, scope: rows[0].scope, }; log.debug(`loaded config_secrets_module: ${config.privateSchema}.${config.secretsTable}`); @@ -78,10 +91,39 @@ export class SecretsLoader { } } + /** + * Resolve namespace_name → namespace UUID via the namespace_module table. + * Returns null if namespace not found or namespace_module not provisioned. + */ + private async resolveNamespaceId( + namespaceName: string, + databaseId: string + ): Promise { + try { + const { rows: nsModRows } = await this.pool.query(NAMESPACE_MODULE_SQL, [databaseId]); + if (!nsModRows.length) return null; + + const { ns_schema, ns_table } = nsModRows[0]; + const { rows } = await this.pool.query( + `SELECT id FROM "${ns_schema}"."${ns_table}" WHERE name = $1 LIMIT 1`, + [namespaceName] + ); + return rows[0]?.id ?? null; + } catch { + log.debug(`namespace resolution failed for "${namespaceName}"`); + return null; + } + } + /** * Resolve secrets by name for a given namespace. - * Returns an array of { name, value } pairs for all matching secret names. - * Missing secrets are silently skipped (callers decide if that's an error). + * + * Flow: + * 1. Load config_secrets_module config (schema + table names) + * 2. If namespaceName provided, resolve it to a UUID via namespace table + * 3. Query secrets table by namespace_id + name, decrypt values + * + * Returns { name, value } pairs. Missing secrets are silently skipped. */ async resolveSecrets( secretNames: string[], @@ -96,20 +138,31 @@ export class SecretsLoader { return []; } + const dbId = databaseId ?? this.defaultDatabaseId; + try { - const sql = namespaceName - ? `SELECT name, decrypted_value AS value + let namespaceId: string | null = null; + if (namespaceName) { + namespaceId = await this.resolveNamespaceId(namespaceName, dbId); + if (!namespaceId) { + log.warn(`namespace "${namespaceName}" not found — cannot resolve secrets`); + return []; + } + } + + const sql = namespaceId + ? `SELECT name, pgp_sym_decrypt(value, key_id::text) AS value FROM "${config.privateSchema}"."${config.secretsTable}" - WHERE name = ANY($1) AND namespace_name = $2` - : `SELECT name, decrypted_value AS value + WHERE name = ANY($1) AND namespace_id = $2` + : `SELECT name, pgp_sym_decrypt(value, key_id::text) AS value FROM "${config.privateSchema}"."${config.secretsTable}" - WHERE name = ANY($1) AND namespace_name IS NULL`; + WHERE name = ANY($1)`; const params: unknown[] = [secretNames]; - if (namespaceName) params.push(namespaceName); + if (namespaceId) params.push(namespaceId); const { rows } = await this.pool.query(sql, params); - log.debug(`resolved ${rows.length}/${secretNames.length} secrets for namespace=${namespaceName ?? '(global)'}`); + log.debug(`resolved ${rows.length}/${secretNames.length} secrets for namespace=${namespaceName ?? '(default)'}`); return rows as ResolvedSecret[]; } catch (err: unknown) { const msg = err instanceof Error ? err.message : String(err);