@constructive-io/sdk 0.30.0 → 0.30.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/agent/orm/input-types.d.ts +96 -8
- package/api/orm/index.d.ts +5 -15
- package/api/orm/index.js +2 -2
- package/api/orm/input-types.d.ts +250 -231
- package/api/orm/models/index.d.ts +1 -1
- package/api/orm/models/index.js +3 -3
- package/api/orm/mutation/index.d.ts +11 -36
- package/api/orm/mutation/index.js +6 -30
- package/auth/orm/index.d.ts +10 -5
- package/auth/orm/input-types.d.ts +54 -45
- package/auth/orm/models/principal.d.ts +1 -10
- package/auth/orm/models/principal.js +0 -13
- package/auth/orm/mutation/index.d.ts +17 -9
- package/auth/orm/mutation/index.js +24 -12
- package/compute/orm/index.d.ts +76 -17
- package/compute/orm/index.js +56 -12
- package/compute/orm/input-types.d.ts +5893 -1343
- package/compute/orm/input-types.js +17 -3
- package/compute/orm/models/dbPreset.d.ts +54 -0
- package/compute/orm/models/dbPreset.js +104 -0
- package/compute/orm/models/functionGraphCommit.d.ts +2 -2
- package/compute/orm/models/functionGraphCommit.js +2 -2
- package/compute/orm/models/functionGraphObject.d.ts +2 -2
- package/compute/orm/models/functionGraphObject.js +2 -2
- package/compute/orm/models/functionGraphRef.d.ts +2 -2
- package/compute/orm/models/functionGraphRef.js +2 -2
- package/compute/orm/models/index.d.ts +28 -6
- package/compute/orm/models/index.js +57 -13
- package/compute/orm/models/infraCommit.d.ts +56 -0
- package/compute/orm/models/infraCommit.js +107 -0
- package/compute/orm/models/infraGetAllRecord.d.ts +30 -0
- package/compute/orm/models/infraGetAllRecord.js +59 -0
- package/compute/orm/models/infraObject.d.ts +56 -0
- package/compute/orm/models/infraObject.js +97 -0
- package/compute/orm/models/infraRef.d.ts +56 -0
- package/compute/orm/models/infraRef.js +107 -0
- package/compute/orm/models/infraStore.d.ts +54 -0
- package/compute/orm/models/infraStore.js +104 -0
- package/compute/orm/models/integrationProvider.d.ts +54 -0
- package/{modules/orm/models/configSecretsModule.js → compute/orm/models/integrationProvider.js} +27 -27
- package/compute/orm/models/namespace.d.ts +54 -0
- package/compute/orm/models/namespace.js +104 -0
- package/compute/orm/models/namespaceEvent.d.ts +56 -0
- package/compute/orm/models/{orgFunctionExecutionLog.js → namespaceEvent.js} +27 -27
- package/compute/orm/models/platformFunctionApiBinding.d.ts +54 -0
- package/compute/orm/models/platformFunctionApiBinding.js +104 -0
- package/compute/orm/models/platformFunctionDefinition.d.ts +54 -0
- package/compute/orm/models/platformFunctionDefinition.js +104 -0
- package/compute/orm/models/platformFunctionDeployment.d.ts +54 -0
- package/compute/orm/models/platformFunctionDeployment.js +104 -0
- package/compute/orm/models/platformFunctionDeploymentEvent.d.ts +56 -0
- package/compute/orm/models/platformFunctionDeploymentEvent.js +107 -0
- package/compute/orm/models/platformFunctionExecutionLog.d.ts +56 -0
- package/compute/orm/models/platformFunctionExecutionLog.js +107 -0
- package/compute/orm/models/platformFunctionInvocation.d.ts +56 -0
- package/compute/orm/models/platformFunctionInvocation.js +107 -0
- package/compute/orm/models/platformResource.d.ts +54 -0
- package/compute/orm/models/{secretDefinition.js → platformResource.js} +27 -27
- package/compute/orm/models/platformResourceDefinition.d.ts +54 -0
- package/compute/orm/models/platformResourceDefinition.js +104 -0
- package/compute/orm/models/platformResourceEvent.d.ts +56 -0
- package/compute/orm/models/{orgFunctionInvocation.js → platformResourceEvent.js} +27 -27
- package/compute/orm/models/platformResourceStatusCheck.d.ts +54 -0
- package/compute/orm/models/platformResourceStatusCheck.js +104 -0
- package/compute/orm/models/platformResourcesRequirementsState.d.ts +30 -0
- package/compute/orm/models/platformResourcesRequirementsState.js +59 -0
- package/compute/orm/models/platformResourcesResolvedRequirement.d.ts +30 -0
- package/compute/orm/models/platformResourcesResolvedRequirement.js +59 -0
- package/compute/orm/models/resourceDefinition.d.ts +54 -0
- package/compute/orm/models/resourceDefinition.js +104 -0
- package/compute/orm/models/resourceStatusCheck.d.ts +54 -0
- package/compute/orm/models/resourceStatusCheck.js +104 -0
- package/compute/orm/models/resourcesRequirementsState.d.ts +30 -0
- package/compute/orm/models/resourcesRequirementsState.js +59 -0
- package/compute/orm/models/resourcesResolvedRequirement.d.ts +30 -0
- package/compute/orm/models/resourcesResolvedRequirement.js +59 -0
- package/compute/orm/mutation/index.d.ts +33 -9
- package/compute/orm/mutation/index.js +48 -12
- package/config/orm/index.d.ts +42 -16
- package/config/orm/index.js +8 -2
- package/config/orm/input-types.d.ts +595 -154
- package/config/orm/models/config.d.ts +54 -0
- package/{modules/orm/models/configSecretsOrgModule.js → config/orm/models/config.js} +27 -27
- package/config/orm/models/index.d.ts +4 -1
- package/config/orm/models/index.js +9 -3
- package/config/orm/models/platformInternalSecret.d.ts +36 -0
- package/config/orm/models/platformInternalSecret.js +80 -0
- package/config/orm/models/platformSecret.d.ts +36 -0
- package/config/orm/models/platformSecret.js +80 -0
- package/config/orm/models/secret.d.ts +36 -0
- package/config/orm/models/secret.js +80 -0
- package/config/orm/mutation/index.d.ts +56 -24
- package/config/orm/mutation/index.js +78 -30
- package/esm/agent/orm/input-types.d.ts +96 -8
- package/esm/api/orm/index.d.ts +5 -15
- package/esm/api/orm/index.js +2 -2
- package/esm/api/orm/input-types.d.ts +250 -231
- package/esm/api/orm/models/index.d.ts +1 -1
- package/esm/api/orm/models/index.js +1 -1
- package/esm/api/orm/mutation/index.d.ts +11 -36
- package/esm/api/orm/mutation/index.js +6 -30
- package/esm/auth/orm/index.d.ts +10 -5
- package/esm/auth/orm/input-types.d.ts +54 -45
- package/esm/auth/orm/models/principal.d.ts +1 -10
- package/esm/auth/orm/models/principal.js +1 -14
- package/esm/auth/orm/mutation/index.d.ts +17 -9
- package/esm/auth/orm/mutation/index.js +24 -12
- package/esm/compute/orm/index.d.ts +76 -17
- package/esm/compute/orm/index.js +56 -12
- package/esm/compute/orm/input-types.d.ts +5893 -1343
- package/esm/compute/orm/input-types.js +17 -3
- package/esm/compute/orm/models/dbPreset.d.ts +54 -0
- package/esm/compute/orm/models/dbPreset.js +100 -0
- package/esm/compute/orm/models/functionGraphCommit.d.ts +2 -2
- package/esm/compute/orm/models/functionGraphCommit.js +2 -2
- package/esm/compute/orm/models/functionGraphObject.d.ts +2 -2
- package/esm/compute/orm/models/functionGraphObject.js +2 -2
- package/esm/compute/orm/models/functionGraphRef.d.ts +2 -2
- package/esm/compute/orm/models/functionGraphRef.js +2 -2
- package/esm/compute/orm/models/index.d.ts +28 -6
- package/esm/compute/orm/models/index.js +28 -6
- package/esm/compute/orm/models/infraCommit.d.ts +56 -0
- package/esm/compute/orm/models/infraCommit.js +103 -0
- package/esm/compute/orm/models/infraGetAllRecord.d.ts +30 -0
- package/esm/compute/orm/models/infraGetAllRecord.js +55 -0
- package/esm/compute/orm/models/infraObject.d.ts +56 -0
- package/esm/compute/orm/models/infraObject.js +93 -0
- package/esm/compute/orm/models/infraRef.d.ts +56 -0
- package/esm/compute/orm/models/infraRef.js +103 -0
- package/esm/compute/orm/models/infraStore.d.ts +54 -0
- package/esm/compute/orm/models/infraStore.js +100 -0
- package/esm/compute/orm/models/integrationProvider.d.ts +54 -0
- package/esm/compute/orm/models/integrationProvider.js +100 -0
- package/esm/compute/orm/models/namespace.d.ts +54 -0
- package/esm/compute/orm/models/namespace.js +100 -0
- package/esm/compute/orm/models/namespaceEvent.d.ts +56 -0
- package/esm/compute/orm/models/{orgFunctionExecutionLog.js → namespaceEvent.js} +25 -25
- package/esm/compute/orm/models/platformFunctionApiBinding.d.ts +54 -0
- package/esm/compute/orm/models/platformFunctionApiBinding.js +100 -0
- package/esm/compute/orm/models/platformFunctionDefinition.d.ts +54 -0
- package/esm/compute/orm/models/platformFunctionDefinition.js +100 -0
- package/esm/compute/orm/models/platformFunctionDeployment.d.ts +54 -0
- package/esm/compute/orm/models/platformFunctionDeployment.js +100 -0
- package/esm/compute/orm/models/platformFunctionDeploymentEvent.d.ts +56 -0
- package/esm/compute/orm/models/platformFunctionDeploymentEvent.js +103 -0
- package/esm/compute/orm/models/platformFunctionExecutionLog.d.ts +56 -0
- package/esm/compute/orm/models/platformFunctionExecutionLog.js +103 -0
- package/esm/compute/orm/models/platformFunctionInvocation.d.ts +56 -0
- package/esm/compute/orm/models/platformFunctionInvocation.js +103 -0
- package/esm/compute/orm/models/platformResource.d.ts +54 -0
- package/esm/compute/orm/models/{secretDefinition.js → platformResource.js} +25 -25
- package/esm/compute/orm/models/platformResourceDefinition.d.ts +54 -0
- package/esm/compute/orm/models/platformResourceDefinition.js +100 -0
- package/esm/compute/orm/models/platformResourceEvent.d.ts +56 -0
- package/esm/compute/orm/models/{orgFunctionInvocation.js → platformResourceEvent.js} +25 -25
- package/esm/compute/orm/models/platformResourceStatusCheck.d.ts +54 -0
- package/esm/compute/orm/models/platformResourceStatusCheck.js +100 -0
- package/esm/compute/orm/models/platformResourcesRequirementsState.d.ts +30 -0
- package/esm/compute/orm/models/platformResourcesRequirementsState.js +55 -0
- package/esm/compute/orm/models/platformResourcesResolvedRequirement.d.ts +30 -0
- package/esm/compute/orm/models/platformResourcesResolvedRequirement.js +55 -0
- package/esm/compute/orm/models/resourceDefinition.d.ts +54 -0
- package/esm/{modules/orm/models/configSecretsOrgModule.js → compute/orm/models/resourceDefinition.js} +25 -25
- package/esm/compute/orm/models/resourceStatusCheck.d.ts +54 -0
- package/esm/compute/orm/models/resourceStatusCheck.js +100 -0
- package/esm/compute/orm/models/resourcesRequirementsState.d.ts +30 -0
- package/esm/compute/orm/models/resourcesRequirementsState.js +55 -0
- package/esm/compute/orm/models/resourcesResolvedRequirement.d.ts +30 -0
- package/esm/compute/orm/models/resourcesResolvedRequirement.js +55 -0
- package/esm/compute/orm/mutation/index.d.ts +33 -9
- package/esm/compute/orm/mutation/index.js +48 -12
- package/esm/config/orm/index.d.ts +42 -16
- package/esm/config/orm/index.js +8 -2
- package/esm/config/orm/input-types.d.ts +595 -154
- package/esm/config/orm/models/config.d.ts +54 -0
- package/esm/{modules/orm/models/configSecretsModule.js → config/orm/models/config.js} +25 -25
- package/esm/config/orm/models/index.d.ts +4 -1
- package/esm/config/orm/models/index.js +4 -1
- package/esm/config/orm/models/platformInternalSecret.d.ts +36 -0
- package/esm/config/orm/models/platformInternalSecret.js +76 -0
- package/esm/config/orm/models/platformSecret.d.ts +36 -0
- package/esm/config/orm/models/platformSecret.js +76 -0
- package/esm/config/orm/models/secret.d.ts +36 -0
- package/esm/config/orm/models/secret.js +76 -0
- package/esm/config/orm/mutation/index.d.ts +56 -24
- package/esm/config/orm/mutation/index.js +78 -30
- package/esm/index.d.ts +1 -0
- package/esm/index.js +1 -0
- package/esm/infra/index.d.ts +5 -0
- package/esm/infra/index.js +5 -0
- package/esm/infra/orm/client.d.ts +97 -0
- package/esm/infra/orm/client.js +145 -0
- package/esm/infra/orm/index.d.ts +74 -0
- package/esm/infra/orm/index.js +61 -0
- package/esm/infra/orm/input-types.d.ts +1953 -0
- package/esm/infra/orm/input-types.js +2 -0
- package/esm/infra/orm/models/dbPreset.d.ts +54 -0
- package/esm/infra/orm/models/dbPreset.js +100 -0
- package/esm/infra/orm/models/index.d.ts +15 -0
- package/esm/infra/orm/models/index.js +15 -0
- package/esm/infra/orm/models/infraCommit.d.ts +56 -0
- package/esm/infra/orm/models/infraCommit.js +103 -0
- package/esm/infra/orm/models/infraGetAllRecord.d.ts +30 -0
- package/esm/infra/orm/models/infraGetAllRecord.js +55 -0
- package/esm/infra/orm/models/infraObject.d.ts +56 -0
- package/esm/infra/orm/models/infraObject.js +93 -0
- package/esm/infra/orm/models/infraRef.d.ts +56 -0
- package/esm/infra/orm/models/infraRef.js +103 -0
- package/esm/infra/orm/models/infraStore.d.ts +54 -0
- package/esm/infra/orm/models/infraStore.js +100 -0
- package/esm/infra/orm/models/namespace.d.ts +54 -0
- package/esm/infra/orm/models/namespace.js +100 -0
- package/esm/infra/orm/models/namespaceEvent.d.ts +56 -0
- package/esm/infra/orm/models/namespaceEvent.js +103 -0
- package/esm/infra/orm/models/platformNamespace.d.ts +54 -0
- package/esm/{config/orm/models/platformConfigDefinition.js → infra/orm/models/platformNamespace.js} +25 -25
- package/esm/infra/orm/models/platformNamespaceEvent.d.ts +56 -0
- package/esm/infra/orm/models/platformNamespaceEvent.js +103 -0
- package/esm/infra/orm/mutation/index.d.ts +50 -0
- package/esm/infra/orm/mutation/index.js +54 -0
- package/esm/infra/orm/query-builder.d.ts +110 -0
- package/esm/infra/orm/query-builder.js +705 -0
- package/esm/infra/orm/realtime.d.ts +142 -0
- package/esm/infra/orm/realtime.js +100 -0
- package/esm/infra/orm/select-types.d.ts +125 -0
- package/esm/infra/orm/select-types.js +1 -0
- package/esm/infra/orm/types.d.ts +6 -0
- package/esm/infra/orm/types.js +7 -0
- package/esm/modules/orm/index.d.ts +48 -38
- package/esm/modules/orm/index.js +48 -38
- package/esm/modules/orm/input-types.d.ts +5378 -4022
- package/esm/modules/orm/input-types.js +1 -0
- package/esm/modules/orm/models/dbPool.d.ts +54 -0
- package/esm/modules/orm/models/dbPool.js +100 -0
- package/esm/modules/orm/models/dbPoolConfig.d.ts +54 -0
- package/esm/modules/orm/models/dbPoolConfig.js +100 -0
- package/esm/modules/orm/models/dbPresetModule.d.ts +54 -0
- package/esm/modules/orm/models/dbPresetModule.js +100 -0
- package/esm/modules/orm/models/index.d.ts +24 -19
- package/esm/modules/orm/models/index.js +24 -19
- package/esm/modules/orm/models/infraConfigModule.d.ts +54 -0
- package/esm/modules/orm/models/infraConfigModule.js +100 -0
- package/esm/modules/orm/models/infraSecretsModule.d.ts +54 -0
- package/esm/modules/orm/models/infraSecretsModule.js +100 -0
- package/esm/modules/orm/models/integrationProvidersModule.d.ts +54 -0
- package/esm/modules/orm/models/integrationProvidersModule.js +100 -0
- package/esm/modules/orm/models/internalSecretsModule.d.ts +54 -0
- package/esm/modules/orm/models/internalSecretsModule.js +100 -0
- package/index.d.ts +1 -0
- package/index.js +2 -1
- package/infra/index.d.ts +5 -0
- package/infra/index.js +21 -0
- package/infra/orm/client.d.ts +97 -0
- package/infra/orm/client.js +152 -0
- package/infra/orm/index.d.ts +74 -0
- package/infra/orm/index.js +83 -0
- package/infra/orm/input-types.d.ts +1953 -0
- package/infra/orm/input-types.js +5 -0
- package/infra/orm/models/dbPreset.d.ts +54 -0
- package/infra/orm/models/dbPreset.js +104 -0
- package/infra/orm/models/index.d.ts +15 -0
- package/infra/orm/models/index.js +28 -0
- package/infra/orm/models/infraCommit.d.ts +56 -0
- package/infra/orm/models/infraCommit.js +107 -0
- package/infra/orm/models/infraGetAllRecord.d.ts +30 -0
- package/infra/orm/models/infraGetAllRecord.js +59 -0
- package/infra/orm/models/infraObject.d.ts +56 -0
- package/infra/orm/models/infraObject.js +97 -0
- package/infra/orm/models/infraRef.d.ts +56 -0
- package/infra/orm/models/infraRef.js +107 -0
- package/infra/orm/models/infraStore.d.ts +54 -0
- package/infra/orm/models/infraStore.js +104 -0
- package/infra/orm/models/namespace.d.ts +54 -0
- package/infra/orm/models/namespace.js +104 -0
- package/infra/orm/models/namespaceEvent.d.ts +56 -0
- package/infra/orm/models/namespaceEvent.js +107 -0
- package/infra/orm/models/platformNamespace.d.ts +54 -0
- package/infra/orm/models/platformNamespace.js +104 -0
- package/infra/orm/models/platformNamespaceEvent.d.ts +56 -0
- package/{config/orm/models/platformConfigDefinition.js → infra/orm/models/platformNamespaceEvent.js} +30 -27
- package/infra/orm/mutation/index.d.ts +50 -0
- package/infra/orm/mutation/index.js +57 -0
- package/infra/orm/query-builder.d.ts +110 -0
- package/infra/orm/query-builder.js +757 -0
- package/infra/orm/realtime.d.ts +142 -0
- package/infra/orm/realtime.js +104 -0
- package/infra/orm/select-types.d.ts +125 -0
- package/infra/orm/select-types.js +2 -0
- package/infra/orm/types.d.ts +6 -0
- package/infra/orm/types.js +23 -0
- package/modules/orm/index.d.ts +48 -38
- package/modules/orm/index.js +48 -38
- package/modules/orm/input-types.d.ts +5378 -4022
- package/modules/orm/input-types.js +1 -0
- package/modules/orm/models/dbPool.d.ts +54 -0
- package/modules/orm/models/dbPool.js +104 -0
- package/modules/orm/models/dbPoolConfig.d.ts +54 -0
- package/modules/orm/models/dbPoolConfig.js +104 -0
- package/modules/orm/models/dbPresetModule.d.ts +54 -0
- package/modules/orm/models/dbPresetModule.js +104 -0
- package/modules/orm/models/index.d.ts +24 -19
- package/modules/orm/models/index.js +50 -40
- package/modules/orm/models/infraConfigModule.d.ts +54 -0
- package/modules/orm/models/infraConfigModule.js +104 -0
- package/modules/orm/models/infraSecretsModule.d.ts +54 -0
- package/modules/orm/models/infraSecretsModule.js +104 -0
- package/modules/orm/models/integrationProvidersModule.d.ts +54 -0
- package/modules/orm/models/integrationProvidersModule.js +104 -0
- package/modules/orm/models/internalSecretsModule.d.ts +54 -0
- package/modules/orm/models/internalSecretsModule.js +104 -0
- package/package.json +4 -4
- package/compute/orm/models/orgFunctionExecutionLog.d.ts +0 -56
- package/compute/orm/models/orgFunctionInvocation.d.ts +0 -56
- package/compute/orm/models/secretDefinition.d.ts +0 -54
- package/config/orm/models/platformConfigDefinition.d.ts +0 -54
- package/esm/compute/orm/models/orgFunctionExecutionLog.d.ts +0 -56
- package/esm/compute/orm/models/orgFunctionInvocation.d.ts +0 -56
- package/esm/compute/orm/models/secretDefinition.d.ts +0 -54
- package/esm/config/orm/models/platformConfigDefinition.d.ts +0 -54
- package/esm/modules/orm/models/configSecretsModule.d.ts +0 -54
- package/esm/modules/orm/models/configSecretsOrgModule.d.ts +0 -54
- package/modules/orm/models/configSecretsModule.d.ts +0 -54
- package/modules/orm/models/configSecretsOrgModule.d.ts +0 -54
|
@@ -1,11 +1,25 @@
|
|
|
1
1
|
// ============ Connection Fields Map ============
|
|
2
2
|
export const connectionFieldsMap = {
|
|
3
|
+
PlatformResource: {
|
|
4
|
+
platformResourceStatusChecksByResourceId: 'PlatformResourceStatusCheck',
|
|
5
|
+
},
|
|
6
|
+
Resource: {
|
|
7
|
+
resourceStatusChecks: 'ResourceStatusCheck',
|
|
8
|
+
},
|
|
3
9
|
PlatformNamespace: {
|
|
4
|
-
|
|
5
|
-
|
|
10
|
+
platformFunctionDeploymentsByNamespaceId: 'PlatformFunctionDeployment',
|
|
11
|
+
platformResourcesByNamespaceId: 'PlatformResource',
|
|
12
|
+
platformResourceDefinitionsByNamespaceId: 'PlatformResourceDefinition',
|
|
13
|
+
},
|
|
14
|
+
Namespace: {
|
|
15
|
+
functionDeployments: 'FunctionDeployment',
|
|
16
|
+
resources: 'Resource',
|
|
17
|
+
resourceDefinitions: 'ResourceDefinition',
|
|
18
|
+
},
|
|
19
|
+
PlatformFunctionDefinition: {
|
|
20
|
+
platformFunctionApiBindingsByFunctionDefinitionId: 'PlatformFunctionApiBinding',
|
|
6
21
|
},
|
|
7
22
|
FunctionDefinition: {
|
|
8
23
|
functionApiBindings: 'FunctionApiBinding',
|
|
9
|
-
functionDeployments: 'FunctionDeployment',
|
|
10
24
|
},
|
|
11
25
|
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DbPreset model for ORM client
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import { OrmClient } from '../client';
|
|
7
|
+
import { QueryBuilder } from '../query-builder';
|
|
8
|
+
import type { ConnectionResult, FindManyArgs, FindFirstArgs, CreateArgs, UpdateArgs, DeleteArgs, InferSelectResult, StrictSelect } from '../select-types';
|
|
9
|
+
import type { DbPresetWithRelations, DbPresetSelect, DbPresetFilter, DbPresetOrderBy, CreateDbPresetInput, DbPresetPatch } from '../input-types';
|
|
10
|
+
export declare class DbPresetModel {
|
|
11
|
+
private client;
|
|
12
|
+
constructor(client: OrmClient);
|
|
13
|
+
findMany<S extends DbPresetSelect>(args: FindManyArgs<S, DbPresetFilter, DbPresetOrderBy> & {
|
|
14
|
+
select: S;
|
|
15
|
+
} & StrictSelect<S, DbPresetSelect>): QueryBuilder<{
|
|
16
|
+
dbPresets: ConnectionResult<InferSelectResult<DbPresetWithRelations, S>>;
|
|
17
|
+
}>;
|
|
18
|
+
findFirst<S extends DbPresetSelect>(args: FindFirstArgs<S, DbPresetFilter, DbPresetOrderBy> & {
|
|
19
|
+
select: S;
|
|
20
|
+
} & StrictSelect<S, DbPresetSelect>): QueryBuilder<{
|
|
21
|
+
dbPreset: InferSelectResult<DbPresetWithRelations, S> | null;
|
|
22
|
+
}>;
|
|
23
|
+
findOne<S extends DbPresetSelect>(args: {
|
|
24
|
+
id: string;
|
|
25
|
+
select: S;
|
|
26
|
+
} & StrictSelect<S, DbPresetSelect>): QueryBuilder<{
|
|
27
|
+
dbPreset: InferSelectResult<DbPresetWithRelations, S> | null;
|
|
28
|
+
}>;
|
|
29
|
+
create<S extends DbPresetSelect>(args: CreateArgs<S, CreateDbPresetInput['dbPreset']> & {
|
|
30
|
+
select: S;
|
|
31
|
+
} & StrictSelect<S, DbPresetSelect>): QueryBuilder<{
|
|
32
|
+
createDbPreset: {
|
|
33
|
+
dbPreset: InferSelectResult<DbPresetWithRelations, S>;
|
|
34
|
+
};
|
|
35
|
+
}>;
|
|
36
|
+
update<S extends DbPresetSelect>(args: UpdateArgs<S, {
|
|
37
|
+
id: string;
|
|
38
|
+
}, DbPresetPatch> & {
|
|
39
|
+
select: S;
|
|
40
|
+
} & StrictSelect<S, DbPresetSelect>): QueryBuilder<{
|
|
41
|
+
updateDbPreset: {
|
|
42
|
+
dbPreset: InferSelectResult<DbPresetWithRelations, S>;
|
|
43
|
+
};
|
|
44
|
+
}>;
|
|
45
|
+
delete<S extends DbPresetSelect>(args: DeleteArgs<{
|
|
46
|
+
id: string;
|
|
47
|
+
}, S> & {
|
|
48
|
+
select: S;
|
|
49
|
+
} & StrictSelect<S, DbPresetSelect>): QueryBuilder<{
|
|
50
|
+
deleteDbPreset: {
|
|
51
|
+
dbPreset: InferSelectResult<DbPresetWithRelations, S>;
|
|
52
|
+
};
|
|
53
|
+
}>;
|
|
54
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, buildUpdateByPkDocument, buildDeleteByPkDocument, } from '../query-builder';
|
|
2
|
+
import { connectionFieldsMap } from '../input-types';
|
|
3
|
+
export class DbPresetModel {
|
|
4
|
+
client;
|
|
5
|
+
constructor(client) {
|
|
6
|
+
this.client = client;
|
|
7
|
+
}
|
|
8
|
+
findMany(args) {
|
|
9
|
+
const { document, variables } = buildFindManyDocument('DbPreset', 'dbPresets', args.select, {
|
|
10
|
+
where: args?.where,
|
|
11
|
+
orderBy: args?.orderBy,
|
|
12
|
+
first: args?.first,
|
|
13
|
+
last: args?.last,
|
|
14
|
+
after: args?.after,
|
|
15
|
+
before: args?.before,
|
|
16
|
+
offset: args?.offset,
|
|
17
|
+
}, 'DbPresetFilter', 'DbPresetOrderBy', connectionFieldsMap);
|
|
18
|
+
return new QueryBuilder({
|
|
19
|
+
client: this.client,
|
|
20
|
+
operation: 'query',
|
|
21
|
+
operationName: 'DbPreset',
|
|
22
|
+
fieldName: 'dbPresets',
|
|
23
|
+
document,
|
|
24
|
+
variables,
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
findFirst(args) {
|
|
28
|
+
const { document, variables } = buildFindFirstDocument('DbPreset', 'dbPresets', args.select, {
|
|
29
|
+
where: args?.where,
|
|
30
|
+
orderBy: args?.orderBy,
|
|
31
|
+
}, 'DbPresetFilter', 'DbPresetOrderBy', connectionFieldsMap);
|
|
32
|
+
return new QueryBuilder({
|
|
33
|
+
client: this.client,
|
|
34
|
+
operation: 'query',
|
|
35
|
+
operationName: 'DbPreset',
|
|
36
|
+
fieldName: 'dbPreset',
|
|
37
|
+
document,
|
|
38
|
+
variables,
|
|
39
|
+
transform: (data) => ({
|
|
40
|
+
dbPreset: data.dbPresets?.nodes?.[0] ?? null,
|
|
41
|
+
}),
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
findOne(args) {
|
|
45
|
+
const { document, variables } = buildFindManyDocument('DbPreset', 'dbPresets', args.select, {
|
|
46
|
+
where: {
|
|
47
|
+
id: {
|
|
48
|
+
equalTo: args.id,
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
first: 1,
|
|
52
|
+
}, 'DbPresetFilter', 'DbPresetOrderBy', connectionFieldsMap);
|
|
53
|
+
return new QueryBuilder({
|
|
54
|
+
client: this.client,
|
|
55
|
+
operation: 'query',
|
|
56
|
+
operationName: 'DbPreset',
|
|
57
|
+
fieldName: 'dbPreset',
|
|
58
|
+
document,
|
|
59
|
+
variables,
|
|
60
|
+
transform: (data) => ({
|
|
61
|
+
dbPreset: data.dbPresets?.nodes?.[0] ?? null,
|
|
62
|
+
}),
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
create(args) {
|
|
66
|
+
const { document, variables } = buildCreateDocument('DbPreset', 'createDbPreset', 'dbPreset', args.select, args.data, 'CreateDbPresetInput', connectionFieldsMap);
|
|
67
|
+
return new QueryBuilder({
|
|
68
|
+
client: this.client,
|
|
69
|
+
operation: 'mutation',
|
|
70
|
+
operationName: 'DbPreset',
|
|
71
|
+
fieldName: 'createDbPreset',
|
|
72
|
+
document,
|
|
73
|
+
variables,
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
update(args) {
|
|
77
|
+
const { document, variables } = buildUpdateByPkDocument('DbPreset', 'updateDbPreset', 'dbPreset', args.select, args.where.id, args.data, 'UpdateDbPresetInput', 'id', 'dbPresetPatch', connectionFieldsMap, undefined);
|
|
78
|
+
return new QueryBuilder({
|
|
79
|
+
client: this.client,
|
|
80
|
+
operation: 'mutation',
|
|
81
|
+
operationName: 'DbPreset',
|
|
82
|
+
fieldName: 'updateDbPreset',
|
|
83
|
+
document,
|
|
84
|
+
variables,
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
delete(args) {
|
|
88
|
+
const { document, variables } = buildDeleteByPkDocument('DbPreset', 'deleteDbPreset', 'dbPreset', {
|
|
89
|
+
id: args.where.id,
|
|
90
|
+
}, 'DeleteDbPresetInput', args.select, connectionFieldsMap);
|
|
91
|
+
return new QueryBuilder({
|
|
92
|
+
client: this.client,
|
|
93
|
+
operation: 'mutation',
|
|
94
|
+
operationName: 'DbPreset',
|
|
95
|
+
fieldName: 'deleteDbPreset',
|
|
96
|
+
document,
|
|
97
|
+
variables,
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
}
|
|
@@ -35,7 +35,7 @@ export declare class FunctionGraphCommitModel {
|
|
|
35
35
|
}>;
|
|
36
36
|
update<S extends FunctionGraphCommitSelect>(args: UpdateArgs<S, {
|
|
37
37
|
id: string;
|
|
38
|
-
|
|
38
|
+
scopeId: string;
|
|
39
39
|
}, FunctionGraphCommitPatch> & {
|
|
40
40
|
select: S;
|
|
41
41
|
} & StrictSelect<S, FunctionGraphCommitSelect>): QueryBuilder<{
|
|
@@ -45,7 +45,7 @@ export declare class FunctionGraphCommitModel {
|
|
|
45
45
|
}>;
|
|
46
46
|
delete<S extends FunctionGraphCommitSelect>(args: DeleteArgs<{
|
|
47
47
|
id: string;
|
|
48
|
-
|
|
48
|
+
scopeId: string;
|
|
49
49
|
}, S> & {
|
|
50
50
|
select: S;
|
|
51
51
|
} & StrictSelect<S, FunctionGraphCommitSelect>): QueryBuilder<{
|
|
@@ -75,7 +75,7 @@ export class FunctionGraphCommitModel {
|
|
|
75
75
|
}
|
|
76
76
|
update(args) {
|
|
77
77
|
const { document, variables } = buildUpdateByPkDocument('FunctionGraphCommit', 'updateFunctionGraphCommit', 'functionGraphCommit', args.select, args.where.id, args.data, 'UpdateFunctionGraphCommitInput', 'id', 'functionGraphCommitPatch', connectionFieldsMap, {
|
|
78
|
-
|
|
78
|
+
scopeId: args.where.scopeId,
|
|
79
79
|
});
|
|
80
80
|
return new QueryBuilder({
|
|
81
81
|
client: this.client,
|
|
@@ -89,7 +89,7 @@ export class FunctionGraphCommitModel {
|
|
|
89
89
|
delete(args) {
|
|
90
90
|
const { document, variables } = buildDeleteByPkDocument('FunctionGraphCommit', 'deleteFunctionGraphCommit', 'functionGraphCommit', {
|
|
91
91
|
id: args.where.id,
|
|
92
|
-
|
|
92
|
+
scopeId: args.where.scopeId,
|
|
93
93
|
}, 'DeleteFunctionGraphCommitInput', args.select, connectionFieldsMap);
|
|
94
94
|
return new QueryBuilder({
|
|
95
95
|
client: this.client,
|
|
@@ -35,7 +35,7 @@ export declare class FunctionGraphObjectModel {
|
|
|
35
35
|
}>;
|
|
36
36
|
update<S extends FunctionGraphObjectSelect>(args: UpdateArgs<S, {
|
|
37
37
|
id: string;
|
|
38
|
-
|
|
38
|
+
scopeId: string;
|
|
39
39
|
}, FunctionGraphObjectPatch> & {
|
|
40
40
|
select: S;
|
|
41
41
|
} & StrictSelect<S, FunctionGraphObjectSelect>): QueryBuilder<{
|
|
@@ -45,7 +45,7 @@ export declare class FunctionGraphObjectModel {
|
|
|
45
45
|
}>;
|
|
46
46
|
delete<S extends FunctionGraphObjectSelect>(args: DeleteArgs<{
|
|
47
47
|
id: string;
|
|
48
|
-
|
|
48
|
+
scopeId: string;
|
|
49
49
|
}, S> & {
|
|
50
50
|
select: S;
|
|
51
51
|
} & StrictSelect<S, FunctionGraphObjectSelect>): QueryBuilder<{
|
|
@@ -65,7 +65,7 @@ export class FunctionGraphObjectModel {
|
|
|
65
65
|
}
|
|
66
66
|
update(args) {
|
|
67
67
|
const { document, variables } = buildUpdateByPkDocument('FunctionGraphObject', 'updateFunctionGraphObject', 'functionGraphObject', args.select, args.where.id, args.data, 'UpdateFunctionGraphObjectInput', 'id', 'functionGraphObjectPatch', connectionFieldsMap, {
|
|
68
|
-
|
|
68
|
+
scopeId: args.where.scopeId,
|
|
69
69
|
});
|
|
70
70
|
return new QueryBuilder({
|
|
71
71
|
client: this.client,
|
|
@@ -79,7 +79,7 @@ export class FunctionGraphObjectModel {
|
|
|
79
79
|
delete(args) {
|
|
80
80
|
const { document, variables } = buildDeleteByPkDocument('FunctionGraphObject', 'deleteFunctionGraphObject', 'functionGraphObject', {
|
|
81
81
|
id: args.where.id,
|
|
82
|
-
|
|
82
|
+
scopeId: args.where.scopeId,
|
|
83
83
|
}, 'DeleteFunctionGraphObjectInput', args.select, connectionFieldsMap);
|
|
84
84
|
return new QueryBuilder({
|
|
85
85
|
client: this.client,
|
|
@@ -35,7 +35,7 @@ export declare class FunctionGraphRefModel {
|
|
|
35
35
|
}>;
|
|
36
36
|
update<S extends FunctionGraphRefSelect>(args: UpdateArgs<S, {
|
|
37
37
|
id: string;
|
|
38
|
-
|
|
38
|
+
scopeId: string;
|
|
39
39
|
}, FunctionGraphRefPatch> & {
|
|
40
40
|
select: S;
|
|
41
41
|
} & StrictSelect<S, FunctionGraphRefSelect>): QueryBuilder<{
|
|
@@ -45,7 +45,7 @@ export declare class FunctionGraphRefModel {
|
|
|
45
45
|
}>;
|
|
46
46
|
delete<S extends FunctionGraphRefSelect>(args: DeleteArgs<{
|
|
47
47
|
id: string;
|
|
48
|
-
|
|
48
|
+
scopeId: string;
|
|
49
49
|
}, S> & {
|
|
50
50
|
select: S;
|
|
51
51
|
} & StrictSelect<S, FunctionGraphRefSelect>): QueryBuilder<{
|
|
@@ -75,7 +75,7 @@ export class FunctionGraphRefModel {
|
|
|
75
75
|
}
|
|
76
76
|
update(args) {
|
|
77
77
|
const { document, variables } = buildUpdateByPkDocument('FunctionGraphRef', 'updateFunctionGraphRef', 'functionGraphRef', args.select, args.where.id, args.data, 'UpdateFunctionGraphRefInput', 'id', 'functionGraphRefPatch', connectionFieldsMap, {
|
|
78
|
-
|
|
78
|
+
scopeId: args.where.scopeId,
|
|
79
79
|
});
|
|
80
80
|
return new QueryBuilder({
|
|
81
81
|
client: this.client,
|
|
@@ -89,7 +89,7 @@ export class FunctionGraphRefModel {
|
|
|
89
89
|
delete(args) {
|
|
90
90
|
const { document, variables } = buildDeleteByPkDocument('FunctionGraphRef', 'deleteFunctionGraphRef', 'functionGraphRef', {
|
|
91
91
|
id: args.where.id,
|
|
92
|
-
|
|
92
|
+
scopeId: args.where.scopeId,
|
|
93
93
|
}, 'DeleteFunctionGraphRefInput', args.select, connectionFieldsMap);
|
|
94
94
|
return new QueryBuilder({
|
|
95
95
|
client: this.client,
|
|
@@ -3,25 +3,47 @@
|
|
|
3
3
|
* @generated by @constructive-io/graphql-codegen
|
|
4
4
|
* DO NOT EDIT - changes will be overwritten
|
|
5
5
|
*/
|
|
6
|
+
export { InfraGetAllRecordModel } from './infraGetAllRecord';
|
|
6
7
|
export { GetAllRecordModel } from './getAllRecord';
|
|
8
|
+
export { InfraRefModel } from './infraRef';
|
|
9
|
+
export { InfraStoreModel } from './infraStore';
|
|
7
10
|
export { FunctionApiBindingModel } from './functionApiBinding';
|
|
8
|
-
export { FunctionDeploymentModel } from './functionDeployment';
|
|
9
|
-
export { ResourceModel } from './resource';
|
|
10
11
|
export { FunctionGraphRefModel } from './functionGraphRef';
|
|
11
12
|
export { FunctionGraphStoreModel } from './functionGraphStore';
|
|
13
|
+
export { PlatformFunctionApiBindingModel } from './platformFunctionApiBinding';
|
|
14
|
+
export { PlatformResourcesRequirementsStateModel } from './platformResourcesRequirementsState';
|
|
15
|
+
export { ResourcesRequirementsStateModel } from './resourcesRequirementsState';
|
|
16
|
+
export { PlatformResourceStatusCheckModel } from './platformResourceStatusCheck';
|
|
17
|
+
export { PlatformFunctionDeploymentModel } from './platformFunctionDeployment';
|
|
18
|
+
export { PlatformResourceModel } from './platformResource';
|
|
19
|
+
export { PlatformResourceDefinitionModel } from './platformResourceDefinition';
|
|
20
|
+
export { InfraObjectModel } from './infraObject';
|
|
12
21
|
export { FunctionGraphObjectModel } from './functionGraphObject';
|
|
22
|
+
export { PlatformFunctionDeploymentEventModel } from './platformFunctionDeploymentEvent';
|
|
23
|
+
export { PlatformResourceEventModel } from './platformResourceEvent';
|
|
24
|
+
export { ResourceStatusCheckModel } from './resourceStatusCheck';
|
|
25
|
+
export { FunctionDeploymentModel } from './functionDeployment';
|
|
26
|
+
export { ResourceModel } from './resource';
|
|
27
|
+
export { ResourceDefinitionModel } from './resourceDefinition';
|
|
13
28
|
export { FunctionDeploymentEventModel } from './functionDeploymentEvent';
|
|
14
|
-
export {
|
|
29
|
+
export { PlatformFunctionExecutionLogModel } from './platformFunctionExecutionLog';
|
|
15
30
|
export { ResourceEventModel } from './resourceEvent';
|
|
16
31
|
export { FunctionGraphExecutionOutputModel } from './functionGraphExecutionOutput';
|
|
32
|
+
export { InfraCommitModel } from './infraCommit';
|
|
17
33
|
export { FunctionGraphCommitModel } from './functionGraphCommit';
|
|
18
|
-
export { SecretDefinitionModel } from './secretDefinition';
|
|
19
34
|
export { FunctionExecutionLogModel } from './functionExecutionLog';
|
|
35
|
+
export { PlatformResourcesResolvedRequirementModel } from './platformResourcesResolvedRequirement';
|
|
36
|
+
export { ResourcesResolvedRequirementModel } from './resourcesResolvedRequirement';
|
|
37
|
+
export { DbPresetModel } from './dbPreset';
|
|
38
|
+
export { PlatformNamespaceModel } from './platformNamespace';
|
|
20
39
|
export { FunctionGraphModel } from './functionGraph';
|
|
21
40
|
export { FunctionGraphExecutionNodeStateModel } from './functionGraphExecutionNodeState';
|
|
22
|
-
export {
|
|
23
|
-
export {
|
|
41
|
+
export { NamespaceModel } from './namespace';
|
|
42
|
+
export { PlatformFunctionInvocationModel } from './platformFunctionInvocation';
|
|
24
43
|
export { FunctionInvocationModel } from './functionInvocation';
|
|
25
44
|
export { PlatformNamespaceEventModel } from './platformNamespaceEvent';
|
|
45
|
+
export { IntegrationProviderModel } from './integrationProvider';
|
|
46
|
+
export { NamespaceEventModel } from './namespaceEvent';
|
|
26
47
|
export { FunctionGraphExecutionModel } from './functionGraphExecution';
|
|
48
|
+
export { PlatformFunctionDefinitionModel } from './platformFunctionDefinition';
|
|
27
49
|
export { FunctionDefinitionModel } from './functionDefinition';
|
|
@@ -3,25 +3,47 @@
|
|
|
3
3
|
* @generated by @constructive-io/graphql-codegen
|
|
4
4
|
* DO NOT EDIT - changes will be overwritten
|
|
5
5
|
*/
|
|
6
|
+
export { InfraGetAllRecordModel } from './infraGetAllRecord';
|
|
6
7
|
export { GetAllRecordModel } from './getAllRecord';
|
|
8
|
+
export { InfraRefModel } from './infraRef';
|
|
9
|
+
export { InfraStoreModel } from './infraStore';
|
|
7
10
|
export { FunctionApiBindingModel } from './functionApiBinding';
|
|
8
|
-
export { FunctionDeploymentModel } from './functionDeployment';
|
|
9
|
-
export { ResourceModel } from './resource';
|
|
10
11
|
export { FunctionGraphRefModel } from './functionGraphRef';
|
|
11
12
|
export { FunctionGraphStoreModel } from './functionGraphStore';
|
|
13
|
+
export { PlatformFunctionApiBindingModel } from './platformFunctionApiBinding';
|
|
14
|
+
export { PlatformResourcesRequirementsStateModel } from './platformResourcesRequirementsState';
|
|
15
|
+
export { ResourcesRequirementsStateModel } from './resourcesRequirementsState';
|
|
16
|
+
export { PlatformResourceStatusCheckModel } from './platformResourceStatusCheck';
|
|
17
|
+
export { PlatformFunctionDeploymentModel } from './platformFunctionDeployment';
|
|
18
|
+
export { PlatformResourceModel } from './platformResource';
|
|
19
|
+
export { PlatformResourceDefinitionModel } from './platformResourceDefinition';
|
|
20
|
+
export { InfraObjectModel } from './infraObject';
|
|
12
21
|
export { FunctionGraphObjectModel } from './functionGraphObject';
|
|
22
|
+
export { PlatformFunctionDeploymentEventModel } from './platformFunctionDeploymentEvent';
|
|
23
|
+
export { PlatformResourceEventModel } from './platformResourceEvent';
|
|
24
|
+
export { ResourceStatusCheckModel } from './resourceStatusCheck';
|
|
25
|
+
export { FunctionDeploymentModel } from './functionDeployment';
|
|
26
|
+
export { ResourceModel } from './resource';
|
|
27
|
+
export { ResourceDefinitionModel } from './resourceDefinition';
|
|
13
28
|
export { FunctionDeploymentEventModel } from './functionDeploymentEvent';
|
|
14
|
-
export {
|
|
29
|
+
export { PlatformFunctionExecutionLogModel } from './platformFunctionExecutionLog';
|
|
15
30
|
export { ResourceEventModel } from './resourceEvent';
|
|
16
31
|
export { FunctionGraphExecutionOutputModel } from './functionGraphExecutionOutput';
|
|
32
|
+
export { InfraCommitModel } from './infraCommit';
|
|
17
33
|
export { FunctionGraphCommitModel } from './functionGraphCommit';
|
|
18
|
-
export { SecretDefinitionModel } from './secretDefinition';
|
|
19
34
|
export { FunctionExecutionLogModel } from './functionExecutionLog';
|
|
35
|
+
export { PlatformResourcesResolvedRequirementModel } from './platformResourcesResolvedRequirement';
|
|
36
|
+
export { ResourcesResolvedRequirementModel } from './resourcesResolvedRequirement';
|
|
37
|
+
export { DbPresetModel } from './dbPreset';
|
|
38
|
+
export { PlatformNamespaceModel } from './platformNamespace';
|
|
20
39
|
export { FunctionGraphModel } from './functionGraph';
|
|
21
40
|
export { FunctionGraphExecutionNodeStateModel } from './functionGraphExecutionNodeState';
|
|
22
|
-
export {
|
|
23
|
-
export {
|
|
41
|
+
export { NamespaceModel } from './namespace';
|
|
42
|
+
export { PlatformFunctionInvocationModel } from './platformFunctionInvocation';
|
|
24
43
|
export { FunctionInvocationModel } from './functionInvocation';
|
|
25
44
|
export { PlatformNamespaceEventModel } from './platformNamespaceEvent';
|
|
45
|
+
export { IntegrationProviderModel } from './integrationProvider';
|
|
46
|
+
export { NamespaceEventModel } from './namespaceEvent';
|
|
26
47
|
export { FunctionGraphExecutionModel } from './functionGraphExecution';
|
|
48
|
+
export { PlatformFunctionDefinitionModel } from './platformFunctionDefinition';
|
|
27
49
|
export { FunctionDefinitionModel } from './functionDefinition';
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* InfraCommit model for ORM client
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import { OrmClient } from '../client';
|
|
7
|
+
import { QueryBuilder } from '../query-builder';
|
|
8
|
+
import type { ConnectionResult, FindManyArgs, FindFirstArgs, CreateArgs, UpdateArgs, DeleteArgs, InferSelectResult, StrictSelect } from '../select-types';
|
|
9
|
+
import type { InfraCommitWithRelations, InfraCommitSelect, InfraCommitFilter, InfraCommitOrderBy, CreateInfraCommitInput, InfraCommitPatch } from '../input-types';
|
|
10
|
+
export declare class InfraCommitModel {
|
|
11
|
+
private client;
|
|
12
|
+
constructor(client: OrmClient);
|
|
13
|
+
findMany<S extends InfraCommitSelect>(args: FindManyArgs<S, InfraCommitFilter, InfraCommitOrderBy> & {
|
|
14
|
+
select: S;
|
|
15
|
+
} & StrictSelect<S, InfraCommitSelect>): QueryBuilder<{
|
|
16
|
+
infraCommits: ConnectionResult<InferSelectResult<InfraCommitWithRelations, S>>;
|
|
17
|
+
}>;
|
|
18
|
+
findFirst<S extends InfraCommitSelect>(args: FindFirstArgs<S, InfraCommitFilter, InfraCommitOrderBy> & {
|
|
19
|
+
select: S;
|
|
20
|
+
} & StrictSelect<S, InfraCommitSelect>): QueryBuilder<{
|
|
21
|
+
infraCommit: InferSelectResult<InfraCommitWithRelations, S> | null;
|
|
22
|
+
}>;
|
|
23
|
+
findOne<S extends InfraCommitSelect>(args: {
|
|
24
|
+
id: string;
|
|
25
|
+
select: S;
|
|
26
|
+
} & StrictSelect<S, InfraCommitSelect>): QueryBuilder<{
|
|
27
|
+
infraCommit: InferSelectResult<InfraCommitWithRelations, S> | null;
|
|
28
|
+
}>;
|
|
29
|
+
create<S extends InfraCommitSelect>(args: CreateArgs<S, CreateInfraCommitInput['infraCommit']> & {
|
|
30
|
+
select: S;
|
|
31
|
+
} & StrictSelect<S, InfraCommitSelect>): QueryBuilder<{
|
|
32
|
+
createInfraCommit: {
|
|
33
|
+
infraCommit: InferSelectResult<InfraCommitWithRelations, S>;
|
|
34
|
+
};
|
|
35
|
+
}>;
|
|
36
|
+
update<S extends InfraCommitSelect>(args: UpdateArgs<S, {
|
|
37
|
+
id: string;
|
|
38
|
+
scopeId: string;
|
|
39
|
+
}, InfraCommitPatch> & {
|
|
40
|
+
select: S;
|
|
41
|
+
} & StrictSelect<S, InfraCommitSelect>): QueryBuilder<{
|
|
42
|
+
updateInfraCommit: {
|
|
43
|
+
infraCommit: InferSelectResult<InfraCommitWithRelations, S>;
|
|
44
|
+
};
|
|
45
|
+
}>;
|
|
46
|
+
delete<S extends InfraCommitSelect>(args: DeleteArgs<{
|
|
47
|
+
id: string;
|
|
48
|
+
scopeId: string;
|
|
49
|
+
}, S> & {
|
|
50
|
+
select: S;
|
|
51
|
+
} & StrictSelect<S, InfraCommitSelect>): QueryBuilder<{
|
|
52
|
+
deleteInfraCommit: {
|
|
53
|
+
infraCommit: InferSelectResult<InfraCommitWithRelations, S>;
|
|
54
|
+
};
|
|
55
|
+
}>;
|
|
56
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, buildUpdateByPkDocument, buildDeleteByPkDocument, } from '../query-builder';
|
|
2
|
+
import { connectionFieldsMap } from '../input-types';
|
|
3
|
+
export class InfraCommitModel {
|
|
4
|
+
client;
|
|
5
|
+
constructor(client) {
|
|
6
|
+
this.client = client;
|
|
7
|
+
}
|
|
8
|
+
findMany(args) {
|
|
9
|
+
const { document, variables } = buildFindManyDocument('InfraCommit', 'infraCommits', args.select, {
|
|
10
|
+
where: args?.where,
|
|
11
|
+
orderBy: args?.orderBy,
|
|
12
|
+
first: args?.first,
|
|
13
|
+
last: args?.last,
|
|
14
|
+
after: args?.after,
|
|
15
|
+
before: args?.before,
|
|
16
|
+
offset: args?.offset,
|
|
17
|
+
}, 'InfraCommitFilter', 'InfraCommitOrderBy', connectionFieldsMap);
|
|
18
|
+
return new QueryBuilder({
|
|
19
|
+
client: this.client,
|
|
20
|
+
operation: 'query',
|
|
21
|
+
operationName: 'InfraCommit',
|
|
22
|
+
fieldName: 'infraCommits',
|
|
23
|
+
document,
|
|
24
|
+
variables,
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
findFirst(args) {
|
|
28
|
+
const { document, variables } = buildFindFirstDocument('InfraCommit', 'infraCommits', args.select, {
|
|
29
|
+
where: args?.where,
|
|
30
|
+
orderBy: args?.orderBy,
|
|
31
|
+
}, 'InfraCommitFilter', 'InfraCommitOrderBy', connectionFieldsMap);
|
|
32
|
+
return new QueryBuilder({
|
|
33
|
+
client: this.client,
|
|
34
|
+
operation: 'query',
|
|
35
|
+
operationName: 'InfraCommit',
|
|
36
|
+
fieldName: 'infraCommit',
|
|
37
|
+
document,
|
|
38
|
+
variables,
|
|
39
|
+
transform: (data) => ({
|
|
40
|
+
infraCommit: data.infraCommits?.nodes?.[0] ?? null,
|
|
41
|
+
}),
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
findOne(args) {
|
|
45
|
+
const { document, variables } = buildFindManyDocument('InfraCommit', 'infraCommits', args.select, {
|
|
46
|
+
where: {
|
|
47
|
+
id: {
|
|
48
|
+
equalTo: args.id,
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
first: 1,
|
|
52
|
+
}, 'InfraCommitFilter', 'InfraCommitOrderBy', connectionFieldsMap);
|
|
53
|
+
return new QueryBuilder({
|
|
54
|
+
client: this.client,
|
|
55
|
+
operation: 'query',
|
|
56
|
+
operationName: 'InfraCommit',
|
|
57
|
+
fieldName: 'infraCommit',
|
|
58
|
+
document,
|
|
59
|
+
variables,
|
|
60
|
+
transform: (data) => ({
|
|
61
|
+
infraCommit: data.infraCommits?.nodes?.[0] ?? null,
|
|
62
|
+
}),
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
create(args) {
|
|
66
|
+
const { document, variables } = buildCreateDocument('InfraCommit', 'createInfraCommit', 'infraCommit', args.select, args.data, 'CreateInfraCommitInput', connectionFieldsMap);
|
|
67
|
+
return new QueryBuilder({
|
|
68
|
+
client: this.client,
|
|
69
|
+
operation: 'mutation',
|
|
70
|
+
operationName: 'InfraCommit',
|
|
71
|
+
fieldName: 'createInfraCommit',
|
|
72
|
+
document,
|
|
73
|
+
variables,
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
update(args) {
|
|
77
|
+
const { document, variables } = buildUpdateByPkDocument('InfraCommit', 'updateInfraCommit', 'infraCommit', args.select, args.where.id, args.data, 'UpdateInfraCommitInput', 'id', 'infraCommitPatch', connectionFieldsMap, {
|
|
78
|
+
scopeId: args.where.scopeId,
|
|
79
|
+
});
|
|
80
|
+
return new QueryBuilder({
|
|
81
|
+
client: this.client,
|
|
82
|
+
operation: 'mutation',
|
|
83
|
+
operationName: 'InfraCommit',
|
|
84
|
+
fieldName: 'updateInfraCommit',
|
|
85
|
+
document,
|
|
86
|
+
variables,
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
delete(args) {
|
|
90
|
+
const { document, variables } = buildDeleteByPkDocument('InfraCommit', 'deleteInfraCommit', 'infraCommit', {
|
|
91
|
+
id: args.where.id,
|
|
92
|
+
scopeId: args.where.scopeId,
|
|
93
|
+
}, 'DeleteInfraCommitInput', args.select, connectionFieldsMap);
|
|
94
|
+
return new QueryBuilder({
|
|
95
|
+
client: this.client,
|
|
96
|
+
operation: 'mutation',
|
|
97
|
+
operationName: 'InfraCommit',
|
|
98
|
+
fieldName: 'deleteInfraCommit',
|
|
99
|
+
document,
|
|
100
|
+
variables,
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* InfraGetAllRecord model for ORM client
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import { OrmClient } from '../client';
|
|
7
|
+
import { QueryBuilder } from '../query-builder';
|
|
8
|
+
import type { ConnectionResult, FindManyArgs, FindFirstArgs, CreateArgs, InferSelectResult, StrictSelect } from '../select-types';
|
|
9
|
+
import type { InfraGetAllRecordWithRelations, InfraGetAllRecordSelect, InfraGetAllRecordFilter, InfraGetAllRecordsOrderBy, CreateInfraGetAllRecordInput } from '../input-types';
|
|
10
|
+
export declare class InfraGetAllRecordModel {
|
|
11
|
+
private client;
|
|
12
|
+
constructor(client: OrmClient);
|
|
13
|
+
findMany<S extends InfraGetAllRecordSelect>(args: FindManyArgs<S, InfraGetAllRecordFilter, InfraGetAllRecordsOrderBy> & {
|
|
14
|
+
select: S;
|
|
15
|
+
} & StrictSelect<S, InfraGetAllRecordSelect>): QueryBuilder<{
|
|
16
|
+
infraGetAll: ConnectionResult<InferSelectResult<InfraGetAllRecordWithRelations, S>>;
|
|
17
|
+
}>;
|
|
18
|
+
findFirst<S extends InfraGetAllRecordSelect>(args: FindFirstArgs<S, InfraGetAllRecordFilter, InfraGetAllRecordsOrderBy> & {
|
|
19
|
+
select: S;
|
|
20
|
+
} & StrictSelect<S, InfraGetAllRecordSelect>): QueryBuilder<{
|
|
21
|
+
infraGetAllRecord: InferSelectResult<InfraGetAllRecordWithRelations, S> | null;
|
|
22
|
+
}>;
|
|
23
|
+
create<S extends InfraGetAllRecordSelect>(args: CreateArgs<S, CreateInfraGetAllRecordInput['infraGetAllRecord']> & {
|
|
24
|
+
select: S;
|
|
25
|
+
} & StrictSelect<S, InfraGetAllRecordSelect>): QueryBuilder<{
|
|
26
|
+
createInfraGetAllRecord: {
|
|
27
|
+
infraGetAllRecord: InferSelectResult<InfraGetAllRecordWithRelations, S>;
|
|
28
|
+
};
|
|
29
|
+
}>;
|
|
30
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, } from '../query-builder';
|
|
2
|
+
import { connectionFieldsMap } from '../input-types';
|
|
3
|
+
export class InfraGetAllRecordModel {
|
|
4
|
+
client;
|
|
5
|
+
constructor(client) {
|
|
6
|
+
this.client = client;
|
|
7
|
+
}
|
|
8
|
+
findMany(args) {
|
|
9
|
+
const { document, variables } = buildFindManyDocument('InfraGetAllRecord', 'infraGetAll', args.select, {
|
|
10
|
+
where: args?.where,
|
|
11
|
+
orderBy: args?.orderBy,
|
|
12
|
+
first: args?.first,
|
|
13
|
+
last: args?.last,
|
|
14
|
+
after: args?.after,
|
|
15
|
+
before: args?.before,
|
|
16
|
+
offset: args?.offset,
|
|
17
|
+
}, 'InfraGetAllRecordFilter', 'InfraGetAllRecordsOrderBy', connectionFieldsMap);
|
|
18
|
+
return new QueryBuilder({
|
|
19
|
+
client: this.client,
|
|
20
|
+
operation: 'query',
|
|
21
|
+
operationName: 'InfraGetAllRecord',
|
|
22
|
+
fieldName: 'infraGetAll',
|
|
23
|
+
document,
|
|
24
|
+
variables,
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
findFirst(args) {
|
|
28
|
+
const { document, variables } = buildFindFirstDocument('InfraGetAllRecord', 'infraGetAll', args.select, {
|
|
29
|
+
where: args?.where,
|
|
30
|
+
orderBy: args?.orderBy,
|
|
31
|
+
}, 'InfraGetAllRecordFilter', 'InfraGetAllRecordsOrderBy', connectionFieldsMap);
|
|
32
|
+
return new QueryBuilder({
|
|
33
|
+
client: this.client,
|
|
34
|
+
operation: 'query',
|
|
35
|
+
operationName: 'InfraGetAllRecord',
|
|
36
|
+
fieldName: 'infraGetAllRecord',
|
|
37
|
+
document,
|
|
38
|
+
variables,
|
|
39
|
+
transform: (data) => ({
|
|
40
|
+
infraGetAllRecord: data.infraGetAll?.nodes?.[0] ?? null,
|
|
41
|
+
}),
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
create(args) {
|
|
45
|
+
const { document, variables } = buildCreateDocument('InfraGetAllRecord', 'createInfraGetAllRecord', 'infraGetAllRecord', args.select, args.data, 'CreateInfraGetAllRecordInput', connectionFieldsMap);
|
|
46
|
+
return new QueryBuilder({
|
|
47
|
+
client: this.client,
|
|
48
|
+
operation: 'mutation',
|
|
49
|
+
operationName: 'InfraGetAllRecord',
|
|
50
|
+
fieldName: 'createInfraGetAllRecord',
|
|
51
|
+
document,
|
|
52
|
+
variables,
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
}
|