@constructive-io/sdk 0.30.0 → 0.30.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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
|
@@ -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,104 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DbPresetModel = void 0;
|
|
4
|
+
const query_builder_1 = require("../query-builder");
|
|
5
|
+
const input_types_1 = require("../input-types");
|
|
6
|
+
class DbPresetModel {
|
|
7
|
+
client;
|
|
8
|
+
constructor(client) {
|
|
9
|
+
this.client = client;
|
|
10
|
+
}
|
|
11
|
+
findMany(args) {
|
|
12
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('DbPreset', 'dbPresets', args.select, {
|
|
13
|
+
where: args?.where,
|
|
14
|
+
orderBy: args?.orderBy,
|
|
15
|
+
first: args?.first,
|
|
16
|
+
last: args?.last,
|
|
17
|
+
after: args?.after,
|
|
18
|
+
before: args?.before,
|
|
19
|
+
offset: args?.offset,
|
|
20
|
+
}, 'DbPresetFilter', 'DbPresetOrderBy', input_types_1.connectionFieldsMap);
|
|
21
|
+
return new query_builder_1.QueryBuilder({
|
|
22
|
+
client: this.client,
|
|
23
|
+
operation: 'query',
|
|
24
|
+
operationName: 'DbPreset',
|
|
25
|
+
fieldName: 'dbPresets',
|
|
26
|
+
document,
|
|
27
|
+
variables,
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
findFirst(args) {
|
|
31
|
+
const { document, variables } = (0, query_builder_1.buildFindFirstDocument)('DbPreset', 'dbPresets', args.select, {
|
|
32
|
+
where: args?.where,
|
|
33
|
+
orderBy: args?.orderBy,
|
|
34
|
+
}, 'DbPresetFilter', 'DbPresetOrderBy', input_types_1.connectionFieldsMap);
|
|
35
|
+
return new query_builder_1.QueryBuilder({
|
|
36
|
+
client: this.client,
|
|
37
|
+
operation: 'query',
|
|
38
|
+
operationName: 'DbPreset',
|
|
39
|
+
fieldName: 'dbPreset',
|
|
40
|
+
document,
|
|
41
|
+
variables,
|
|
42
|
+
transform: (data) => ({
|
|
43
|
+
dbPreset: data.dbPresets?.nodes?.[0] ?? null,
|
|
44
|
+
}),
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
findOne(args) {
|
|
48
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('DbPreset', 'dbPresets', args.select, {
|
|
49
|
+
where: {
|
|
50
|
+
id: {
|
|
51
|
+
equalTo: args.id,
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
first: 1,
|
|
55
|
+
}, 'DbPresetFilter', 'DbPresetOrderBy', input_types_1.connectionFieldsMap);
|
|
56
|
+
return new query_builder_1.QueryBuilder({
|
|
57
|
+
client: this.client,
|
|
58
|
+
operation: 'query',
|
|
59
|
+
operationName: 'DbPreset',
|
|
60
|
+
fieldName: 'dbPreset',
|
|
61
|
+
document,
|
|
62
|
+
variables,
|
|
63
|
+
transform: (data) => ({
|
|
64
|
+
dbPreset: data.dbPresets?.nodes?.[0] ?? null,
|
|
65
|
+
}),
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
create(args) {
|
|
69
|
+
const { document, variables } = (0, query_builder_1.buildCreateDocument)('DbPreset', 'createDbPreset', 'dbPreset', args.select, args.data, 'CreateDbPresetInput', input_types_1.connectionFieldsMap);
|
|
70
|
+
return new query_builder_1.QueryBuilder({
|
|
71
|
+
client: this.client,
|
|
72
|
+
operation: 'mutation',
|
|
73
|
+
operationName: 'DbPreset',
|
|
74
|
+
fieldName: 'createDbPreset',
|
|
75
|
+
document,
|
|
76
|
+
variables,
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
update(args) {
|
|
80
|
+
const { document, variables } = (0, query_builder_1.buildUpdateByPkDocument)('DbPreset', 'updateDbPreset', 'dbPreset', args.select, args.where.id, args.data, 'UpdateDbPresetInput', 'id', 'dbPresetPatch', input_types_1.connectionFieldsMap, undefined);
|
|
81
|
+
return new query_builder_1.QueryBuilder({
|
|
82
|
+
client: this.client,
|
|
83
|
+
operation: 'mutation',
|
|
84
|
+
operationName: 'DbPreset',
|
|
85
|
+
fieldName: 'updateDbPreset',
|
|
86
|
+
document,
|
|
87
|
+
variables,
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
delete(args) {
|
|
91
|
+
const { document, variables } = (0, query_builder_1.buildDeleteByPkDocument)('DbPreset', 'deleteDbPreset', 'dbPreset', {
|
|
92
|
+
id: args.where.id,
|
|
93
|
+
}, 'DeleteDbPresetInput', args.select, input_types_1.connectionFieldsMap);
|
|
94
|
+
return new query_builder_1.QueryBuilder({
|
|
95
|
+
client: this.client,
|
|
96
|
+
operation: 'mutation',
|
|
97
|
+
operationName: 'DbPreset',
|
|
98
|
+
fieldName: 'deleteDbPreset',
|
|
99
|
+
document,
|
|
100
|
+
variables,
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
exports.DbPresetModel = DbPresetModel;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Models barrel export
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
export { InfraGetAllRecordModel } from './infraGetAllRecord';
|
|
7
|
+
export { InfraRefModel } from './infraRef';
|
|
8
|
+
export { InfraStoreModel } from './infraStore';
|
|
9
|
+
export { InfraObjectModel } from './infraObject';
|
|
10
|
+
export { InfraCommitModel } from './infraCommit';
|
|
11
|
+
export { DbPresetModel } from './dbPreset';
|
|
12
|
+
export { PlatformNamespaceModel } from './platformNamespace';
|
|
13
|
+
export { NamespaceModel } from './namespace';
|
|
14
|
+
export { PlatformNamespaceEventModel } from './platformNamespaceEvent';
|
|
15
|
+
export { NamespaceEventModel } from './namespaceEvent';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NamespaceEventModel = exports.PlatformNamespaceEventModel = exports.NamespaceModel = exports.PlatformNamespaceModel = exports.DbPresetModel = exports.InfraCommitModel = exports.InfraObjectModel = exports.InfraStoreModel = exports.InfraRefModel = exports.InfraGetAllRecordModel = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Models barrel export
|
|
6
|
+
* @generated by @constructive-io/graphql-codegen
|
|
7
|
+
* DO NOT EDIT - changes will be overwritten
|
|
8
|
+
*/
|
|
9
|
+
var infraGetAllRecord_1 = require("./infraGetAllRecord");
|
|
10
|
+
Object.defineProperty(exports, "InfraGetAllRecordModel", { enumerable: true, get: function () { return infraGetAllRecord_1.InfraGetAllRecordModel; } });
|
|
11
|
+
var infraRef_1 = require("./infraRef");
|
|
12
|
+
Object.defineProperty(exports, "InfraRefModel", { enumerable: true, get: function () { return infraRef_1.InfraRefModel; } });
|
|
13
|
+
var infraStore_1 = require("./infraStore");
|
|
14
|
+
Object.defineProperty(exports, "InfraStoreModel", { enumerable: true, get: function () { return infraStore_1.InfraStoreModel; } });
|
|
15
|
+
var infraObject_1 = require("./infraObject");
|
|
16
|
+
Object.defineProperty(exports, "InfraObjectModel", { enumerable: true, get: function () { return infraObject_1.InfraObjectModel; } });
|
|
17
|
+
var infraCommit_1 = require("./infraCommit");
|
|
18
|
+
Object.defineProperty(exports, "InfraCommitModel", { enumerable: true, get: function () { return infraCommit_1.InfraCommitModel; } });
|
|
19
|
+
var dbPreset_1 = require("./dbPreset");
|
|
20
|
+
Object.defineProperty(exports, "DbPresetModel", { enumerable: true, get: function () { return dbPreset_1.DbPresetModel; } });
|
|
21
|
+
var platformNamespace_1 = require("./platformNamespace");
|
|
22
|
+
Object.defineProperty(exports, "PlatformNamespaceModel", { enumerable: true, get: function () { return platformNamespace_1.PlatformNamespaceModel; } });
|
|
23
|
+
var namespace_1 = require("./namespace");
|
|
24
|
+
Object.defineProperty(exports, "NamespaceModel", { enumerable: true, get: function () { return namespace_1.NamespaceModel; } });
|
|
25
|
+
var platformNamespaceEvent_1 = require("./platformNamespaceEvent");
|
|
26
|
+
Object.defineProperty(exports, "PlatformNamespaceEventModel", { enumerable: true, get: function () { return platformNamespaceEvent_1.PlatformNamespaceEventModel; } });
|
|
27
|
+
var namespaceEvent_1 = require("./namespaceEvent");
|
|
28
|
+
Object.defineProperty(exports, "NamespaceEventModel", { enumerable: true, get: function () { return namespaceEvent_1.NamespaceEventModel; } });
|
|
@@ -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,107 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InfraCommitModel = void 0;
|
|
4
|
+
const query_builder_1 = require("../query-builder");
|
|
5
|
+
const input_types_1 = require("../input-types");
|
|
6
|
+
class InfraCommitModel {
|
|
7
|
+
client;
|
|
8
|
+
constructor(client) {
|
|
9
|
+
this.client = client;
|
|
10
|
+
}
|
|
11
|
+
findMany(args) {
|
|
12
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('InfraCommit', 'infraCommits', args.select, {
|
|
13
|
+
where: args?.where,
|
|
14
|
+
orderBy: args?.orderBy,
|
|
15
|
+
first: args?.first,
|
|
16
|
+
last: args?.last,
|
|
17
|
+
after: args?.after,
|
|
18
|
+
before: args?.before,
|
|
19
|
+
offset: args?.offset,
|
|
20
|
+
}, 'InfraCommitFilter', 'InfraCommitOrderBy', input_types_1.connectionFieldsMap);
|
|
21
|
+
return new query_builder_1.QueryBuilder({
|
|
22
|
+
client: this.client,
|
|
23
|
+
operation: 'query',
|
|
24
|
+
operationName: 'InfraCommit',
|
|
25
|
+
fieldName: 'infraCommits',
|
|
26
|
+
document,
|
|
27
|
+
variables,
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
findFirst(args) {
|
|
31
|
+
const { document, variables } = (0, query_builder_1.buildFindFirstDocument)('InfraCommit', 'infraCommits', args.select, {
|
|
32
|
+
where: args?.where,
|
|
33
|
+
orderBy: args?.orderBy,
|
|
34
|
+
}, 'InfraCommitFilter', 'InfraCommitOrderBy', input_types_1.connectionFieldsMap);
|
|
35
|
+
return new query_builder_1.QueryBuilder({
|
|
36
|
+
client: this.client,
|
|
37
|
+
operation: 'query',
|
|
38
|
+
operationName: 'InfraCommit',
|
|
39
|
+
fieldName: 'infraCommit',
|
|
40
|
+
document,
|
|
41
|
+
variables,
|
|
42
|
+
transform: (data) => ({
|
|
43
|
+
infraCommit: data.infraCommits?.nodes?.[0] ?? null,
|
|
44
|
+
}),
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
findOne(args) {
|
|
48
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('InfraCommit', 'infraCommits', args.select, {
|
|
49
|
+
where: {
|
|
50
|
+
id: {
|
|
51
|
+
equalTo: args.id,
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
first: 1,
|
|
55
|
+
}, 'InfraCommitFilter', 'InfraCommitOrderBy', input_types_1.connectionFieldsMap);
|
|
56
|
+
return new query_builder_1.QueryBuilder({
|
|
57
|
+
client: this.client,
|
|
58
|
+
operation: 'query',
|
|
59
|
+
operationName: 'InfraCommit',
|
|
60
|
+
fieldName: 'infraCommit',
|
|
61
|
+
document,
|
|
62
|
+
variables,
|
|
63
|
+
transform: (data) => ({
|
|
64
|
+
infraCommit: data.infraCommits?.nodes?.[0] ?? null,
|
|
65
|
+
}),
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
create(args) {
|
|
69
|
+
const { document, variables } = (0, query_builder_1.buildCreateDocument)('InfraCommit', 'createInfraCommit', 'infraCommit', args.select, args.data, 'CreateInfraCommitInput', input_types_1.connectionFieldsMap);
|
|
70
|
+
return new query_builder_1.QueryBuilder({
|
|
71
|
+
client: this.client,
|
|
72
|
+
operation: 'mutation',
|
|
73
|
+
operationName: 'InfraCommit',
|
|
74
|
+
fieldName: 'createInfraCommit',
|
|
75
|
+
document,
|
|
76
|
+
variables,
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
update(args) {
|
|
80
|
+
const { document, variables } = (0, query_builder_1.buildUpdateByPkDocument)('InfraCommit', 'updateInfraCommit', 'infraCommit', args.select, args.where.id, args.data, 'UpdateInfraCommitInput', 'id', 'infraCommitPatch', input_types_1.connectionFieldsMap, {
|
|
81
|
+
scopeId: args.where.scopeId,
|
|
82
|
+
});
|
|
83
|
+
return new query_builder_1.QueryBuilder({
|
|
84
|
+
client: this.client,
|
|
85
|
+
operation: 'mutation',
|
|
86
|
+
operationName: 'InfraCommit',
|
|
87
|
+
fieldName: 'updateInfraCommit',
|
|
88
|
+
document,
|
|
89
|
+
variables,
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
delete(args) {
|
|
93
|
+
const { document, variables } = (0, query_builder_1.buildDeleteByPkDocument)('InfraCommit', 'deleteInfraCommit', 'infraCommit', {
|
|
94
|
+
id: args.where.id,
|
|
95
|
+
scopeId: args.where.scopeId,
|
|
96
|
+
}, 'DeleteInfraCommitInput', args.select, input_types_1.connectionFieldsMap);
|
|
97
|
+
return new query_builder_1.QueryBuilder({
|
|
98
|
+
client: this.client,
|
|
99
|
+
operation: 'mutation',
|
|
100
|
+
operationName: 'InfraCommit',
|
|
101
|
+
fieldName: 'deleteInfraCommit',
|
|
102
|
+
document,
|
|
103
|
+
variables,
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
exports.InfraCommitModel = InfraCommitModel;
|
|
@@ -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,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InfraGetAllRecordModel = void 0;
|
|
4
|
+
const query_builder_1 = require("../query-builder");
|
|
5
|
+
const input_types_1 = require("../input-types");
|
|
6
|
+
class InfraGetAllRecordModel {
|
|
7
|
+
client;
|
|
8
|
+
constructor(client) {
|
|
9
|
+
this.client = client;
|
|
10
|
+
}
|
|
11
|
+
findMany(args) {
|
|
12
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('InfraGetAllRecord', 'infraGetAll', args.select, {
|
|
13
|
+
where: args?.where,
|
|
14
|
+
orderBy: args?.orderBy,
|
|
15
|
+
first: args?.first,
|
|
16
|
+
last: args?.last,
|
|
17
|
+
after: args?.after,
|
|
18
|
+
before: args?.before,
|
|
19
|
+
offset: args?.offset,
|
|
20
|
+
}, 'InfraGetAllRecordFilter', 'InfraGetAllRecordsOrderBy', input_types_1.connectionFieldsMap);
|
|
21
|
+
return new query_builder_1.QueryBuilder({
|
|
22
|
+
client: this.client,
|
|
23
|
+
operation: 'query',
|
|
24
|
+
operationName: 'InfraGetAllRecord',
|
|
25
|
+
fieldName: 'infraGetAll',
|
|
26
|
+
document,
|
|
27
|
+
variables,
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
findFirst(args) {
|
|
31
|
+
const { document, variables } = (0, query_builder_1.buildFindFirstDocument)('InfraGetAllRecord', 'infraGetAll', args.select, {
|
|
32
|
+
where: args?.where,
|
|
33
|
+
orderBy: args?.orderBy,
|
|
34
|
+
}, 'InfraGetAllRecordFilter', 'InfraGetAllRecordsOrderBy', input_types_1.connectionFieldsMap);
|
|
35
|
+
return new query_builder_1.QueryBuilder({
|
|
36
|
+
client: this.client,
|
|
37
|
+
operation: 'query',
|
|
38
|
+
operationName: 'InfraGetAllRecord',
|
|
39
|
+
fieldName: 'infraGetAllRecord',
|
|
40
|
+
document,
|
|
41
|
+
variables,
|
|
42
|
+
transform: (data) => ({
|
|
43
|
+
infraGetAllRecord: data.infraGetAll?.nodes?.[0] ?? null,
|
|
44
|
+
}),
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
create(args) {
|
|
48
|
+
const { document, variables } = (0, query_builder_1.buildCreateDocument)('InfraGetAllRecord', 'createInfraGetAllRecord', 'infraGetAllRecord', args.select, args.data, 'CreateInfraGetAllRecordInput', input_types_1.connectionFieldsMap);
|
|
49
|
+
return new query_builder_1.QueryBuilder({
|
|
50
|
+
client: this.client,
|
|
51
|
+
operation: 'mutation',
|
|
52
|
+
operationName: 'InfraGetAllRecord',
|
|
53
|
+
fieldName: 'createInfraGetAllRecord',
|
|
54
|
+
document,
|
|
55
|
+
variables,
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
exports.InfraGetAllRecordModel = InfraGetAllRecordModel;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* InfraObject 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 { InfraObjectWithRelations, InfraObjectSelect, InfraObjectFilter, InfraObjectOrderBy, CreateInfraObjectInput, InfraObjectPatch } from '../input-types';
|
|
10
|
+
export declare class InfraObjectModel {
|
|
11
|
+
private client;
|
|
12
|
+
constructor(client: OrmClient);
|
|
13
|
+
findMany<S extends InfraObjectSelect>(args: FindManyArgs<S, InfraObjectFilter, InfraObjectOrderBy> & {
|
|
14
|
+
select: S;
|
|
15
|
+
} & StrictSelect<S, InfraObjectSelect>): QueryBuilder<{
|
|
16
|
+
infraObjects: ConnectionResult<InferSelectResult<InfraObjectWithRelations, S>>;
|
|
17
|
+
}>;
|
|
18
|
+
findFirst<S extends InfraObjectSelect>(args: FindFirstArgs<S, InfraObjectFilter, InfraObjectOrderBy> & {
|
|
19
|
+
select: S;
|
|
20
|
+
} & StrictSelect<S, InfraObjectSelect>): QueryBuilder<{
|
|
21
|
+
infraObject: InferSelectResult<InfraObjectWithRelations, S> | null;
|
|
22
|
+
}>;
|
|
23
|
+
findOne<S extends InfraObjectSelect>(args: {
|
|
24
|
+
id: string;
|
|
25
|
+
select: S;
|
|
26
|
+
} & StrictSelect<S, InfraObjectSelect>): QueryBuilder<{
|
|
27
|
+
infraObject: InferSelectResult<InfraObjectWithRelations, S> | null;
|
|
28
|
+
}>;
|
|
29
|
+
create<S extends InfraObjectSelect>(args: CreateArgs<S, CreateInfraObjectInput['infraObject']> & {
|
|
30
|
+
select: S;
|
|
31
|
+
} & StrictSelect<S, InfraObjectSelect>): QueryBuilder<{
|
|
32
|
+
createInfraObject: {
|
|
33
|
+
infraObject: InferSelectResult<InfraObjectWithRelations, S>;
|
|
34
|
+
};
|
|
35
|
+
}>;
|
|
36
|
+
update<S extends InfraObjectSelect>(args: UpdateArgs<S, {
|
|
37
|
+
id: string;
|
|
38
|
+
scopeId: string;
|
|
39
|
+
}, InfraObjectPatch> & {
|
|
40
|
+
select: S;
|
|
41
|
+
} & StrictSelect<S, InfraObjectSelect>): QueryBuilder<{
|
|
42
|
+
updateInfraObject: {
|
|
43
|
+
infraObject: InferSelectResult<InfraObjectWithRelations, S>;
|
|
44
|
+
};
|
|
45
|
+
}>;
|
|
46
|
+
delete<S extends InfraObjectSelect>(args: DeleteArgs<{
|
|
47
|
+
id: string;
|
|
48
|
+
scopeId: string;
|
|
49
|
+
}, S> & {
|
|
50
|
+
select: S;
|
|
51
|
+
} & StrictSelect<S, InfraObjectSelect>): QueryBuilder<{
|
|
52
|
+
deleteInfraObject: {
|
|
53
|
+
infraObject: InferSelectResult<InfraObjectWithRelations, S>;
|
|
54
|
+
};
|
|
55
|
+
}>;
|
|
56
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InfraObjectModel = void 0;
|
|
4
|
+
const query_builder_1 = require("../query-builder");
|
|
5
|
+
const input_types_1 = require("../input-types");
|
|
6
|
+
class InfraObjectModel {
|
|
7
|
+
client;
|
|
8
|
+
constructor(client) {
|
|
9
|
+
this.client = client;
|
|
10
|
+
}
|
|
11
|
+
findMany(args) {
|
|
12
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('InfraObject', 'infraObjects', args.select, {
|
|
13
|
+
where: args?.where,
|
|
14
|
+
orderBy: args?.orderBy,
|
|
15
|
+
first: args?.first,
|
|
16
|
+
last: args?.last,
|
|
17
|
+
after: args?.after,
|
|
18
|
+
before: args?.before,
|
|
19
|
+
offset: args?.offset,
|
|
20
|
+
}, 'InfraObjectFilter', 'InfraObjectOrderBy', input_types_1.connectionFieldsMap);
|
|
21
|
+
return new query_builder_1.QueryBuilder({
|
|
22
|
+
client: this.client,
|
|
23
|
+
operation: 'query',
|
|
24
|
+
operationName: 'InfraObject',
|
|
25
|
+
fieldName: 'infraObjects',
|
|
26
|
+
document,
|
|
27
|
+
variables,
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
findFirst(args) {
|
|
31
|
+
const { document, variables } = (0, query_builder_1.buildFindFirstDocument)('InfraObject', 'infraObjects', args.select, {
|
|
32
|
+
where: args?.where,
|
|
33
|
+
orderBy: args?.orderBy,
|
|
34
|
+
}, 'InfraObjectFilter', 'InfraObjectOrderBy', input_types_1.connectionFieldsMap);
|
|
35
|
+
return new query_builder_1.QueryBuilder({
|
|
36
|
+
client: this.client,
|
|
37
|
+
operation: 'query',
|
|
38
|
+
operationName: 'InfraObject',
|
|
39
|
+
fieldName: 'infraObject',
|
|
40
|
+
document,
|
|
41
|
+
variables,
|
|
42
|
+
transform: (data) => ({
|
|
43
|
+
infraObject: data.infraObjects?.nodes?.[0] ?? null,
|
|
44
|
+
}),
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
findOne(args) {
|
|
48
|
+
const { document, variables } = (0, query_builder_1.buildFindOneDocument)('InfraObject', 'infraGetNodeAtPath', args.id, args.select, 'id', 'UUID!', input_types_1.connectionFieldsMap);
|
|
49
|
+
return new query_builder_1.QueryBuilder({
|
|
50
|
+
client: this.client,
|
|
51
|
+
operation: 'query',
|
|
52
|
+
operationName: 'InfraObject',
|
|
53
|
+
fieldName: 'infraObject',
|
|
54
|
+
document,
|
|
55
|
+
variables,
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
create(args) {
|
|
59
|
+
const { document, variables } = (0, query_builder_1.buildCreateDocument)('InfraObject', 'createInfraObject', 'infraObject', args.select, args.data, 'CreateInfraObjectInput', input_types_1.connectionFieldsMap);
|
|
60
|
+
return new query_builder_1.QueryBuilder({
|
|
61
|
+
client: this.client,
|
|
62
|
+
operation: 'mutation',
|
|
63
|
+
operationName: 'InfraObject',
|
|
64
|
+
fieldName: 'createInfraObject',
|
|
65
|
+
document,
|
|
66
|
+
variables,
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
update(args) {
|
|
70
|
+
const { document, variables } = (0, query_builder_1.buildUpdateByPkDocument)('InfraObject', 'updateInfraObject', 'infraObject', args.select, args.where.id, args.data, 'UpdateInfraObjectInput', 'id', 'infraObjectPatch', input_types_1.connectionFieldsMap, {
|
|
71
|
+
scopeId: args.where.scopeId,
|
|
72
|
+
});
|
|
73
|
+
return new query_builder_1.QueryBuilder({
|
|
74
|
+
client: this.client,
|
|
75
|
+
operation: 'mutation',
|
|
76
|
+
operationName: 'InfraObject',
|
|
77
|
+
fieldName: 'updateInfraObject',
|
|
78
|
+
document,
|
|
79
|
+
variables,
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
delete(args) {
|
|
83
|
+
const { document, variables } = (0, query_builder_1.buildDeleteByPkDocument)('InfraObject', 'deleteInfraObject', 'infraObject', {
|
|
84
|
+
id: args.where.id,
|
|
85
|
+
scopeId: args.where.scopeId,
|
|
86
|
+
}, 'DeleteInfraObjectInput', args.select, input_types_1.connectionFieldsMap);
|
|
87
|
+
return new query_builder_1.QueryBuilder({
|
|
88
|
+
client: this.client,
|
|
89
|
+
operation: 'mutation',
|
|
90
|
+
operationName: 'InfraObject',
|
|
91
|
+
fieldName: 'deleteInfraObject',
|
|
92
|
+
document,
|
|
93
|
+
variables,
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
exports.InfraObjectModel = InfraObjectModel;
|