@constructive-io/sdk 0.32.2 → 0.32.3
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/agent/orm/input-types.d.ts +24 -0
- package/agent/orm/input-types.js +3 -0
- package/api/orm/index.d.ts +9 -2
- package/api/orm/index.js +4 -2
- package/api/orm/input-types.d.ts +498 -143
- package/api/orm/input-types.js +4 -0
- package/api/orm/models/httpRoute.d.ts +54 -0
- package/{infra/orm/models/infraRef.js → api/orm/models/httpRoute.js} +27 -30
- package/api/orm/models/index.d.ts +2 -1
- package/api/orm/models/index.js +5 -3
- package/api/orm/models/managedDomain.d.ts +54 -0
- package/{infra/orm/models/infraCommit.js → api/orm/models/managedDomain.js} +27 -30
- package/api/orm/query/index.d.ts +12 -0
- package/api/orm/query/index.js +20 -0
- package/auth/orm/input-types.d.ts +155 -182
- package/auth/orm/input-types.js +4 -0
- package/compute/orm/index.d.ts +101 -4
- package/compute/orm/index.js +46 -4
- package/compute/orm/input-types.d.ts +5356 -772
- package/compute/orm/input-types.js +34 -2
- package/compute/orm/models/declaredCapacity.d.ts +30 -0
- package/compute/orm/models/{infraGetAllRecord.js → declaredCapacity.js} +15 -15
- package/compute/orm/models/getAllTreeNodesRecord.d.ts +30 -0
- package/{objects/orm/models/getAllRecord.js → compute/orm/models/getAllTreeNodesRecord.js} +15 -15
- package/compute/orm/models/index.d.ts +23 -2
- package/compute/orm/models/index.js +48 -5
- package/compute/orm/models/infraCommit.d.ts +2 -2
- package/compute/orm/models/infraCommit.js +2 -2
- package/compute/orm/models/infraGetAllTreeNodesRecord.d.ts +30 -0
- package/compute/orm/models/infraGetAllTreeNodesRecord.js +59 -0
- package/compute/orm/models/infraObject.d.ts +2 -2
- package/compute/orm/models/infraObject.js +2 -2
- package/compute/orm/models/infraRef.d.ts +2 -2
- package/compute/orm/models/infraRef.js +2 -2
- package/compute/orm/models/platformDeclaredCapacity.d.ts +30 -0
- package/compute/orm/models/{getAllRecord.js → platformDeclaredCapacity.js} +15 -15
- package/compute/orm/models/platformInfraCommit.d.ts +56 -0
- package/compute/orm/models/platformInfraCommit.js +107 -0
- package/compute/orm/models/platformInfraGetAllTreeNodesRecord.d.ts +30 -0
- package/compute/orm/models/platformInfraGetAllTreeNodesRecord.js +59 -0
- package/compute/orm/models/platformInfraObject.d.ts +56 -0
- package/{infra/orm/models/infraObject.js → compute/orm/models/platformInfraObject.js} +25 -25
- package/compute/orm/models/platformInfraRef.d.ts +56 -0
- package/compute/orm/models/platformInfraRef.js +107 -0
- package/compute/orm/models/platformInfraStore.d.ts +54 -0
- package/compute/orm/models/platformInfraStore.js +104 -0
- package/compute/orm/models/platformResourceInstallation.d.ts +54 -0
- package/compute/orm/models/platformResourceInstallation.js +104 -0
- package/compute/orm/models/platformResourceUsageLog.d.ts +56 -0
- package/compute/orm/models/platformResourceUsageLog.js +107 -0
- package/compute/orm/models/platformResourceUsageSummary.d.ts +56 -0
- package/compute/orm/models/platformResourceUsageSummary.js +107 -0
- package/compute/orm/models/platformResourceUtilizationDaily.d.ts +30 -0
- package/compute/orm/models/platformResourceUtilizationDaily.js +59 -0
- package/compute/orm/models/platformResourcesHealth.d.ts +36 -0
- package/compute/orm/models/platformResourcesHealth.js +80 -0
- package/compute/orm/models/platformWebhookEndpoint.d.ts +54 -0
- package/compute/orm/models/platformWebhookEndpoint.js +104 -0
- package/compute/orm/models/platformWebhookEvent.d.ts +54 -0
- package/compute/orm/models/platformWebhookEvent.js +104 -0
- package/compute/orm/models/resourceInstallation.d.ts +54 -0
- package/compute/orm/models/resourceInstallation.js +104 -0
- package/compute/orm/models/resourceUsageLog.d.ts +56 -0
- package/compute/orm/models/resourceUsageLog.js +107 -0
- package/compute/orm/models/resourceUsageSummary.d.ts +56 -0
- package/compute/orm/models/resourceUsageSummary.js +107 -0
- package/compute/orm/models/resourceUtilizationDaily.d.ts +30 -0
- package/compute/orm/models/resourceUtilizationDaily.js +59 -0
- package/compute/orm/models/resourcesHealth.d.ts +36 -0
- package/{api/orm/models/migrateFile.js → compute/orm/models/resourcesHealth.js} +20 -20
- package/compute/orm/models/webhookEndpoint.d.ts +54 -0
- package/compute/orm/models/webhookEndpoint.js +104 -0
- package/compute/orm/models/webhookEvent.d.ts +54 -0
- package/{infra/orm/models/infraStore.js → compute/orm/models/webhookEvent.js} +27 -27
- package/compute/orm/mutation/index.d.ts +89 -1
- package/compute/orm/mutation/index.js +132 -0
- package/config/orm/input-types.d.ts +4 -79
- package/esm/agent/orm/input-types.d.ts +24 -0
- package/esm/agent/orm/input-types.js +3 -0
- package/esm/api/orm/index.d.ts +9 -2
- package/esm/api/orm/index.js +4 -2
- package/esm/api/orm/input-types.d.ts +498 -143
- package/esm/api/orm/input-types.js +4 -0
- package/esm/api/orm/models/httpRoute.d.ts +54 -0
- package/esm/{infra/orm/models/infraRef.js → api/orm/models/httpRoute.js} +25 -28
- package/esm/api/orm/models/index.d.ts +2 -1
- package/esm/api/orm/models/index.js +2 -1
- package/esm/api/orm/models/managedDomain.d.ts +54 -0
- package/esm/{infra/orm/models/infraCommit.js → api/orm/models/managedDomain.js} +25 -28
- package/esm/api/orm/query/index.d.ts +12 -0
- package/esm/api/orm/query/index.js +20 -0
- package/esm/auth/orm/input-types.d.ts +155 -182
- package/esm/auth/orm/input-types.js +4 -0
- package/esm/compute/orm/index.d.ts +101 -4
- package/esm/compute/orm/index.js +46 -4
- package/esm/compute/orm/input-types.d.ts +5356 -772
- package/esm/compute/orm/input-types.js +34 -2
- package/esm/compute/orm/models/declaredCapacity.d.ts +30 -0
- package/esm/{infra/orm/models/infraGetAllRecord.js → compute/orm/models/declaredCapacity.js} +13 -13
- package/esm/compute/orm/models/getAllTreeNodesRecord.d.ts +30 -0
- package/esm/compute/orm/models/{getAllRecord.js → getAllTreeNodesRecord.js} +13 -13
- package/esm/compute/orm/models/index.d.ts +23 -2
- package/esm/compute/orm/models/index.js +23 -2
- package/esm/compute/orm/models/infraCommit.d.ts +2 -2
- package/esm/compute/orm/models/infraCommit.js +2 -2
- package/esm/compute/orm/models/infraGetAllTreeNodesRecord.d.ts +30 -0
- package/esm/compute/orm/models/{infraGetAllRecord.js → infraGetAllTreeNodesRecord.js} +13 -13
- package/esm/compute/orm/models/infraObject.d.ts +2 -2
- package/esm/compute/orm/models/infraObject.js +2 -2
- package/esm/compute/orm/models/infraRef.d.ts +2 -2
- package/esm/compute/orm/models/infraRef.js +2 -2
- package/esm/compute/orm/models/platformDeclaredCapacity.d.ts +30 -0
- package/esm/compute/orm/models/platformDeclaredCapacity.js +55 -0
- package/esm/compute/orm/models/platformInfraCommit.d.ts +56 -0
- package/esm/compute/orm/models/platformInfraCommit.js +103 -0
- package/esm/compute/orm/models/platformInfraGetAllTreeNodesRecord.d.ts +30 -0
- package/esm/compute/orm/models/platformInfraGetAllTreeNodesRecord.js +55 -0
- package/esm/compute/orm/models/platformInfraObject.d.ts +56 -0
- package/esm/{infra/orm/models/infraObject.js → compute/orm/models/platformInfraObject.js} +23 -23
- package/esm/compute/orm/models/platformInfraRef.d.ts +56 -0
- package/esm/compute/orm/models/platformInfraRef.js +103 -0
- package/esm/compute/orm/models/platformInfraStore.d.ts +54 -0
- package/esm/compute/orm/models/platformInfraStore.js +100 -0
- package/esm/compute/orm/models/platformResourceInstallation.d.ts +54 -0
- package/esm/compute/orm/models/platformResourceInstallation.js +100 -0
- package/esm/compute/orm/models/platformResourceUsageLog.d.ts +56 -0
- package/esm/compute/orm/models/platformResourceUsageLog.js +103 -0
- package/esm/compute/orm/models/platformResourceUsageSummary.d.ts +56 -0
- package/esm/compute/orm/models/platformResourceUsageSummary.js +103 -0
- package/esm/compute/orm/models/platformResourceUtilizationDaily.d.ts +30 -0
- package/esm/compute/orm/models/platformResourceUtilizationDaily.js +55 -0
- package/esm/compute/orm/models/platformResourcesHealth.d.ts +36 -0
- package/esm/compute/orm/models/platformResourcesHealth.js +76 -0
- package/esm/compute/orm/models/platformWebhookEndpoint.d.ts +54 -0
- package/esm/compute/orm/models/platformWebhookEndpoint.js +100 -0
- package/esm/compute/orm/models/platformWebhookEvent.d.ts +54 -0
- package/esm/compute/orm/models/platformWebhookEvent.js +100 -0
- package/esm/compute/orm/models/resourceInstallation.d.ts +54 -0
- package/esm/compute/orm/models/resourceInstallation.js +100 -0
- package/esm/compute/orm/models/resourceUsageLog.d.ts +56 -0
- package/esm/compute/orm/models/resourceUsageLog.js +103 -0
- package/esm/compute/orm/models/resourceUsageSummary.d.ts +56 -0
- package/esm/compute/orm/models/resourceUsageSummary.js +103 -0
- package/esm/compute/orm/models/resourceUtilizationDaily.d.ts +30 -0
- package/esm/compute/orm/models/resourceUtilizationDaily.js +55 -0
- package/esm/compute/orm/models/resourcesHealth.d.ts +36 -0
- package/esm/{api/orm/models/migrateFile.js → compute/orm/models/resourcesHealth.js} +18 -18
- package/esm/compute/orm/models/webhookEndpoint.d.ts +54 -0
- package/esm/compute/orm/models/webhookEndpoint.js +100 -0
- package/esm/compute/orm/models/webhookEvent.d.ts +54 -0
- package/esm/{infra/orm/models/infraStore.js → compute/orm/models/webhookEvent.js} +25 -25
- package/esm/compute/orm/mutation/index.d.ts +89 -1
- package/esm/compute/orm/mutation/index.js +132 -0
- package/esm/config/orm/input-types.d.ts +4 -79
- package/esm/infra/orm/index.d.ts +19 -19
- package/esm/infra/orm/index.js +10 -10
- package/esm/infra/orm/input-types.d.ts +542 -668
- package/esm/infra/orm/models/index.d.ts +5 -5
- package/esm/infra/orm/models/index.js +5 -5
- package/esm/infra/orm/models/platformInfraCommit.d.ts +56 -0
- package/esm/infra/orm/models/platformInfraCommit.js +103 -0
- package/esm/infra/orm/models/platformInfraGetAllTreeNodesRecord.d.ts +30 -0
- package/esm/infra/orm/models/platformInfraGetAllTreeNodesRecord.js +55 -0
- package/esm/infra/orm/models/platformInfraObject.d.ts +56 -0
- package/esm/infra/orm/models/platformInfraObject.js +93 -0
- package/esm/infra/orm/models/platformInfraRef.d.ts +56 -0
- package/esm/infra/orm/models/platformInfraRef.js +103 -0
- package/esm/infra/orm/models/platformInfraStore.d.ts +54 -0
- package/esm/infra/orm/models/platformInfraStore.js +100 -0
- package/esm/infra/orm/mutation/index.d.ts +16 -16
- package/esm/infra/orm/mutation/index.js +18 -18
- package/esm/modules/orm/index.d.ts +4 -0
- package/esm/modules/orm/index.js +4 -0
- package/esm/modules/orm/input-types.d.ts +802 -166
- package/esm/modules/orm/models/httpRouteModule.d.ts +54 -0
- package/esm/modules/orm/models/httpRouteModule.js +100 -0
- package/esm/modules/orm/models/index.d.ts +2 -0
- package/esm/modules/orm/models/index.js +2 -0
- package/esm/modules/orm/models/webhookModule.d.ts +54 -0
- package/esm/modules/orm/models/webhookModule.js +100 -0
- package/esm/objects/orm/index.d.ts +2 -2
- package/esm/objects/orm/index.js +2 -2
- package/esm/objects/orm/input-types.d.ts +15 -15
- package/esm/objects/orm/models/getAllTreeNodesRecord.d.ts +30 -0
- package/esm/objects/orm/models/{getAllRecord.js → getAllTreeNodesRecord.js} +13 -13
- package/esm/objects/orm/models/index.d.ts +1 -1
- package/esm/objects/orm/models/index.js +1 -1
- package/infra/orm/index.d.ts +19 -19
- package/infra/orm/index.js +10 -10
- package/infra/orm/input-types.d.ts +542 -668
- package/infra/orm/models/index.d.ts +5 -5
- package/infra/orm/models/index.js +11 -11
- package/infra/orm/models/platformInfraCommit.d.ts +56 -0
- package/infra/orm/models/platformInfraCommit.js +107 -0
- package/infra/orm/models/platformInfraGetAllTreeNodesRecord.d.ts +30 -0
- package/infra/orm/models/platformInfraGetAllTreeNodesRecord.js +59 -0
- package/infra/orm/models/platformInfraObject.d.ts +56 -0
- package/infra/orm/models/platformInfraObject.js +97 -0
- package/infra/orm/models/platformInfraRef.d.ts +56 -0
- package/infra/orm/models/platformInfraRef.js +107 -0
- package/infra/orm/models/platformInfraStore.d.ts +54 -0
- package/infra/orm/models/platformInfraStore.js +104 -0
- package/infra/orm/mutation/index.d.ts +16 -16
- package/infra/orm/mutation/index.js +18 -18
- package/modules/orm/index.d.ts +4 -0
- package/modules/orm/index.js +4 -0
- package/modules/orm/input-types.d.ts +802 -166
- package/modules/orm/models/httpRouteModule.d.ts +54 -0
- package/modules/orm/models/httpRouteModule.js +104 -0
- package/modules/orm/models/index.d.ts +2 -0
- package/modules/orm/models/index.js +6 -2
- package/modules/orm/models/webhookModule.d.ts +54 -0
- package/modules/orm/models/webhookModule.js +104 -0
- package/objects/orm/index.d.ts +2 -2
- package/objects/orm/index.js +2 -2
- package/objects/orm/input-types.d.ts +15 -15
- package/objects/orm/models/getAllTreeNodesRecord.d.ts +30 -0
- package/{infra/orm/models/infraGetAllRecord.js → objects/orm/models/getAllTreeNodesRecord.js} +15 -15
- package/objects/orm/models/index.d.ts +1 -1
- package/objects/orm/models/index.js +3 -3
- package/package.json +2 -2
- package/api/orm/models/migrateFile.d.ts +0 -36
- package/compute/orm/models/getAllRecord.d.ts +0 -30
- package/compute/orm/models/infraGetAllRecord.d.ts +0 -30
- package/esm/api/orm/models/migrateFile.d.ts +0 -36
- package/esm/compute/orm/models/getAllRecord.d.ts +0 -30
- package/esm/compute/orm/models/infraGetAllRecord.d.ts +0 -30
- package/esm/infra/orm/models/infraCommit.d.ts +0 -56
- package/esm/infra/orm/models/infraGetAllRecord.d.ts +0 -30
- package/esm/infra/orm/models/infraObject.d.ts +0 -56
- package/esm/infra/orm/models/infraRef.d.ts +0 -56
- package/esm/infra/orm/models/infraStore.d.ts +0 -54
- package/esm/objects/orm/models/getAllRecord.d.ts +0 -30
- package/infra/orm/models/infraCommit.d.ts +0 -56
- package/infra/orm/models/infraGetAllRecord.d.ts +0 -30
- package/infra/orm/models/infraObject.d.ts +0 -56
- package/infra/orm/models/infraRef.d.ts +0 -56
- package/infra/orm/models/infraStore.d.ts +0 -54
- package/objects/orm/models/getAllRecord.d.ts +0 -30
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ResourceInstallation 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 { ResourceInstallationWithRelations, ResourceInstallationSelect, ResourceInstallationFilter, ResourceInstallationOrderBy, CreateResourceInstallationInput, ResourceInstallationPatch } from '../input-types';
|
|
10
|
+
export declare class ResourceInstallationModel {
|
|
11
|
+
private client;
|
|
12
|
+
constructor(client: OrmClient);
|
|
13
|
+
findMany<S extends ResourceInstallationSelect>(args: FindManyArgs<S, ResourceInstallationFilter, ResourceInstallationOrderBy> & {
|
|
14
|
+
select: S;
|
|
15
|
+
} & StrictSelect<S, ResourceInstallationSelect>): QueryBuilder<{
|
|
16
|
+
resourceInstallations: ConnectionResult<InferSelectResult<ResourceInstallationWithRelations, S>>;
|
|
17
|
+
}>;
|
|
18
|
+
findFirst<S extends ResourceInstallationSelect>(args: FindFirstArgs<S, ResourceInstallationFilter, ResourceInstallationOrderBy> & {
|
|
19
|
+
select: S;
|
|
20
|
+
} & StrictSelect<S, ResourceInstallationSelect>): QueryBuilder<{
|
|
21
|
+
resourceInstallation: InferSelectResult<ResourceInstallationWithRelations, S> | null;
|
|
22
|
+
}>;
|
|
23
|
+
findOne<S extends ResourceInstallationSelect>(args: {
|
|
24
|
+
id: string;
|
|
25
|
+
select: S;
|
|
26
|
+
} & StrictSelect<S, ResourceInstallationSelect>): QueryBuilder<{
|
|
27
|
+
resourceInstallation: InferSelectResult<ResourceInstallationWithRelations, S> | null;
|
|
28
|
+
}>;
|
|
29
|
+
create<S extends ResourceInstallationSelect>(args: CreateArgs<S, CreateResourceInstallationInput['resourceInstallation']> & {
|
|
30
|
+
select: S;
|
|
31
|
+
} & StrictSelect<S, ResourceInstallationSelect>): QueryBuilder<{
|
|
32
|
+
createResourceInstallation: {
|
|
33
|
+
resourceInstallation: InferSelectResult<ResourceInstallationWithRelations, S>;
|
|
34
|
+
};
|
|
35
|
+
}>;
|
|
36
|
+
update<S extends ResourceInstallationSelect>(args: UpdateArgs<S, {
|
|
37
|
+
id: string;
|
|
38
|
+
}, ResourceInstallationPatch> & {
|
|
39
|
+
select: S;
|
|
40
|
+
} & StrictSelect<S, ResourceInstallationSelect>): QueryBuilder<{
|
|
41
|
+
updateResourceInstallation: {
|
|
42
|
+
resourceInstallation: InferSelectResult<ResourceInstallationWithRelations, S>;
|
|
43
|
+
};
|
|
44
|
+
}>;
|
|
45
|
+
delete<S extends ResourceInstallationSelect>(args: DeleteArgs<{
|
|
46
|
+
id: string;
|
|
47
|
+
}, S> & {
|
|
48
|
+
select: S;
|
|
49
|
+
} & StrictSelect<S, ResourceInstallationSelect>): QueryBuilder<{
|
|
50
|
+
deleteResourceInstallation: {
|
|
51
|
+
resourceInstallation: InferSelectResult<ResourceInstallationWithRelations, S>;
|
|
52
|
+
};
|
|
53
|
+
}>;
|
|
54
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ResourceInstallationModel = void 0;
|
|
4
|
+
const query_builder_1 = require("../query-builder");
|
|
5
|
+
const input_types_1 = require("../input-types");
|
|
6
|
+
class ResourceInstallationModel {
|
|
7
|
+
client;
|
|
8
|
+
constructor(client) {
|
|
9
|
+
this.client = client;
|
|
10
|
+
}
|
|
11
|
+
findMany(args) {
|
|
12
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('ResourceInstallation', 'resourceInstallations', 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
|
+
}, 'ResourceInstallationFilter', 'ResourceInstallationOrderBy', input_types_1.connectionFieldsMap);
|
|
21
|
+
return new query_builder_1.QueryBuilder({
|
|
22
|
+
client: this.client,
|
|
23
|
+
operation: 'query',
|
|
24
|
+
operationName: 'ResourceInstallation',
|
|
25
|
+
fieldName: 'resourceInstallations',
|
|
26
|
+
document,
|
|
27
|
+
variables,
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
findFirst(args) {
|
|
31
|
+
const { document, variables } = (0, query_builder_1.buildFindFirstDocument)('ResourceInstallation', 'resourceInstallations', args.select, {
|
|
32
|
+
where: args?.where,
|
|
33
|
+
orderBy: args?.orderBy,
|
|
34
|
+
}, 'ResourceInstallationFilter', 'ResourceInstallationOrderBy', input_types_1.connectionFieldsMap);
|
|
35
|
+
return new query_builder_1.QueryBuilder({
|
|
36
|
+
client: this.client,
|
|
37
|
+
operation: 'query',
|
|
38
|
+
operationName: 'ResourceInstallation',
|
|
39
|
+
fieldName: 'resourceInstallation',
|
|
40
|
+
document,
|
|
41
|
+
variables,
|
|
42
|
+
transform: (data) => ({
|
|
43
|
+
resourceInstallation: data.resourceInstallations?.nodes?.[0] ?? null,
|
|
44
|
+
}),
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
findOne(args) {
|
|
48
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('ResourceInstallation', 'resourceInstallations', args.select, {
|
|
49
|
+
where: {
|
|
50
|
+
id: {
|
|
51
|
+
equalTo: args.id,
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
first: 1,
|
|
55
|
+
}, 'ResourceInstallationFilter', 'ResourceInstallationOrderBy', input_types_1.connectionFieldsMap);
|
|
56
|
+
return new query_builder_1.QueryBuilder({
|
|
57
|
+
client: this.client,
|
|
58
|
+
operation: 'query',
|
|
59
|
+
operationName: 'ResourceInstallation',
|
|
60
|
+
fieldName: 'resourceInstallation',
|
|
61
|
+
document,
|
|
62
|
+
variables,
|
|
63
|
+
transform: (data) => ({
|
|
64
|
+
resourceInstallation: data.resourceInstallations?.nodes?.[0] ?? null,
|
|
65
|
+
}),
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
create(args) {
|
|
69
|
+
const { document, variables } = (0, query_builder_1.buildCreateDocument)('ResourceInstallation', 'createResourceInstallation', 'resourceInstallation', args.select, args.data, 'CreateResourceInstallationInput', input_types_1.connectionFieldsMap);
|
|
70
|
+
return new query_builder_1.QueryBuilder({
|
|
71
|
+
client: this.client,
|
|
72
|
+
operation: 'mutation',
|
|
73
|
+
operationName: 'ResourceInstallation',
|
|
74
|
+
fieldName: 'createResourceInstallation',
|
|
75
|
+
document,
|
|
76
|
+
variables,
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
update(args) {
|
|
80
|
+
const { document, variables } = (0, query_builder_1.buildUpdateByPkDocument)('ResourceInstallation', 'updateResourceInstallation', 'resourceInstallation', args.select, args.where.id, args.data, 'UpdateResourceInstallationInput', 'id', 'resourceInstallationPatch', input_types_1.connectionFieldsMap, undefined);
|
|
81
|
+
return new query_builder_1.QueryBuilder({
|
|
82
|
+
client: this.client,
|
|
83
|
+
operation: 'mutation',
|
|
84
|
+
operationName: 'ResourceInstallation',
|
|
85
|
+
fieldName: 'updateResourceInstallation',
|
|
86
|
+
document,
|
|
87
|
+
variables,
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
delete(args) {
|
|
91
|
+
const { document, variables } = (0, query_builder_1.buildDeleteByPkDocument)('ResourceInstallation', 'deleteResourceInstallation', 'resourceInstallation', {
|
|
92
|
+
id: args.where.id,
|
|
93
|
+
}, 'DeleteResourceInstallationInput', args.select, input_types_1.connectionFieldsMap);
|
|
94
|
+
return new query_builder_1.QueryBuilder({
|
|
95
|
+
client: this.client,
|
|
96
|
+
operation: 'mutation',
|
|
97
|
+
operationName: 'ResourceInstallation',
|
|
98
|
+
fieldName: 'deleteResourceInstallation',
|
|
99
|
+
document,
|
|
100
|
+
variables,
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
exports.ResourceInstallationModel = ResourceInstallationModel;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ResourceUsageLog 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 { ResourceUsageLogWithRelations, ResourceUsageLogSelect, ResourceUsageLogFilter, ResourceUsageLogOrderBy, CreateResourceUsageLogInput, ResourceUsageLogPatch } from '../input-types';
|
|
10
|
+
export declare class ResourceUsageLogModel {
|
|
11
|
+
private client;
|
|
12
|
+
constructor(client: OrmClient);
|
|
13
|
+
findMany<S extends ResourceUsageLogSelect>(args: FindManyArgs<S, ResourceUsageLogFilter, ResourceUsageLogOrderBy> & {
|
|
14
|
+
select: S;
|
|
15
|
+
} & StrictSelect<S, ResourceUsageLogSelect>): QueryBuilder<{
|
|
16
|
+
resourceUsageLogs: ConnectionResult<InferSelectResult<ResourceUsageLogWithRelations, S>>;
|
|
17
|
+
}>;
|
|
18
|
+
findFirst<S extends ResourceUsageLogSelect>(args: FindFirstArgs<S, ResourceUsageLogFilter, ResourceUsageLogOrderBy> & {
|
|
19
|
+
select: S;
|
|
20
|
+
} & StrictSelect<S, ResourceUsageLogSelect>): QueryBuilder<{
|
|
21
|
+
resourceUsageLog: InferSelectResult<ResourceUsageLogWithRelations, S> | null;
|
|
22
|
+
}>;
|
|
23
|
+
findOne<S extends ResourceUsageLogSelect>(args: {
|
|
24
|
+
id: string;
|
|
25
|
+
select: S;
|
|
26
|
+
} & StrictSelect<S, ResourceUsageLogSelect>): QueryBuilder<{
|
|
27
|
+
resourceUsageLog: InferSelectResult<ResourceUsageLogWithRelations, S> | null;
|
|
28
|
+
}>;
|
|
29
|
+
create<S extends ResourceUsageLogSelect>(args: CreateArgs<S, CreateResourceUsageLogInput['resourceUsageLog']> & {
|
|
30
|
+
select: S;
|
|
31
|
+
} & StrictSelect<S, ResourceUsageLogSelect>): QueryBuilder<{
|
|
32
|
+
createResourceUsageLog: {
|
|
33
|
+
resourceUsageLog: InferSelectResult<ResourceUsageLogWithRelations, S>;
|
|
34
|
+
};
|
|
35
|
+
}>;
|
|
36
|
+
update<S extends ResourceUsageLogSelect>(args: UpdateArgs<S, {
|
|
37
|
+
id: string;
|
|
38
|
+
sampledAt: string;
|
|
39
|
+
}, ResourceUsageLogPatch> & {
|
|
40
|
+
select: S;
|
|
41
|
+
} & StrictSelect<S, ResourceUsageLogSelect>): QueryBuilder<{
|
|
42
|
+
updateResourceUsageLog: {
|
|
43
|
+
resourceUsageLog: InferSelectResult<ResourceUsageLogWithRelations, S>;
|
|
44
|
+
};
|
|
45
|
+
}>;
|
|
46
|
+
delete<S extends ResourceUsageLogSelect>(args: DeleteArgs<{
|
|
47
|
+
id: string;
|
|
48
|
+
sampledAt: string;
|
|
49
|
+
}, S> & {
|
|
50
|
+
select: S;
|
|
51
|
+
} & StrictSelect<S, ResourceUsageLogSelect>): QueryBuilder<{
|
|
52
|
+
deleteResourceUsageLog: {
|
|
53
|
+
resourceUsageLog: InferSelectResult<ResourceUsageLogWithRelations, S>;
|
|
54
|
+
};
|
|
55
|
+
}>;
|
|
56
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ResourceUsageLogModel = void 0;
|
|
4
|
+
const query_builder_1 = require("../query-builder");
|
|
5
|
+
const input_types_1 = require("../input-types");
|
|
6
|
+
class ResourceUsageLogModel {
|
|
7
|
+
client;
|
|
8
|
+
constructor(client) {
|
|
9
|
+
this.client = client;
|
|
10
|
+
}
|
|
11
|
+
findMany(args) {
|
|
12
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('ResourceUsageLog', 'resourceUsageLogs', 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
|
+
}, 'ResourceUsageLogFilter', 'ResourceUsageLogOrderBy', input_types_1.connectionFieldsMap);
|
|
21
|
+
return new query_builder_1.QueryBuilder({
|
|
22
|
+
client: this.client,
|
|
23
|
+
operation: 'query',
|
|
24
|
+
operationName: 'ResourceUsageLog',
|
|
25
|
+
fieldName: 'resourceUsageLogs',
|
|
26
|
+
document,
|
|
27
|
+
variables,
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
findFirst(args) {
|
|
31
|
+
const { document, variables } = (0, query_builder_1.buildFindFirstDocument)('ResourceUsageLog', 'resourceUsageLogs', args.select, {
|
|
32
|
+
where: args?.where,
|
|
33
|
+
orderBy: args?.orderBy,
|
|
34
|
+
}, 'ResourceUsageLogFilter', 'ResourceUsageLogOrderBy', input_types_1.connectionFieldsMap);
|
|
35
|
+
return new query_builder_1.QueryBuilder({
|
|
36
|
+
client: this.client,
|
|
37
|
+
operation: 'query',
|
|
38
|
+
operationName: 'ResourceUsageLog',
|
|
39
|
+
fieldName: 'resourceUsageLog',
|
|
40
|
+
document,
|
|
41
|
+
variables,
|
|
42
|
+
transform: (data) => ({
|
|
43
|
+
resourceUsageLog: data.resourceUsageLogs?.nodes?.[0] ?? null,
|
|
44
|
+
}),
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
findOne(args) {
|
|
48
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('ResourceUsageLog', 'resourceUsageLogs', args.select, {
|
|
49
|
+
where: {
|
|
50
|
+
id: {
|
|
51
|
+
equalTo: args.id,
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
first: 1,
|
|
55
|
+
}, 'ResourceUsageLogFilter', 'ResourceUsageLogOrderBy', input_types_1.connectionFieldsMap);
|
|
56
|
+
return new query_builder_1.QueryBuilder({
|
|
57
|
+
client: this.client,
|
|
58
|
+
operation: 'query',
|
|
59
|
+
operationName: 'ResourceUsageLog',
|
|
60
|
+
fieldName: 'resourceUsageLog',
|
|
61
|
+
document,
|
|
62
|
+
variables,
|
|
63
|
+
transform: (data) => ({
|
|
64
|
+
resourceUsageLog: data.resourceUsageLogs?.nodes?.[0] ?? null,
|
|
65
|
+
}),
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
create(args) {
|
|
69
|
+
const { document, variables } = (0, query_builder_1.buildCreateDocument)('ResourceUsageLog', 'createResourceUsageLog', 'resourceUsageLog', args.select, args.data, 'CreateResourceUsageLogInput', input_types_1.connectionFieldsMap);
|
|
70
|
+
return new query_builder_1.QueryBuilder({
|
|
71
|
+
client: this.client,
|
|
72
|
+
operation: 'mutation',
|
|
73
|
+
operationName: 'ResourceUsageLog',
|
|
74
|
+
fieldName: 'createResourceUsageLog',
|
|
75
|
+
document,
|
|
76
|
+
variables,
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
update(args) {
|
|
80
|
+
const { document, variables } = (0, query_builder_1.buildUpdateByPkDocument)('ResourceUsageLog', 'updateResourceUsageLog', 'resourceUsageLog', args.select, args.where.id, args.data, 'UpdateResourceUsageLogInput', 'id', 'resourceUsageLogPatch', input_types_1.connectionFieldsMap, {
|
|
81
|
+
sampledAt: args.where.sampledAt,
|
|
82
|
+
});
|
|
83
|
+
return new query_builder_1.QueryBuilder({
|
|
84
|
+
client: this.client,
|
|
85
|
+
operation: 'mutation',
|
|
86
|
+
operationName: 'ResourceUsageLog',
|
|
87
|
+
fieldName: 'updateResourceUsageLog',
|
|
88
|
+
document,
|
|
89
|
+
variables,
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
delete(args) {
|
|
93
|
+
const { document, variables } = (0, query_builder_1.buildDeleteByPkDocument)('ResourceUsageLog', 'deleteResourceUsageLog', 'resourceUsageLog', {
|
|
94
|
+
id: args.where.id,
|
|
95
|
+
sampledAt: args.where.sampledAt,
|
|
96
|
+
}, 'DeleteResourceUsageLogInput', args.select, input_types_1.connectionFieldsMap);
|
|
97
|
+
return new query_builder_1.QueryBuilder({
|
|
98
|
+
client: this.client,
|
|
99
|
+
operation: 'mutation',
|
|
100
|
+
operationName: 'ResourceUsageLog',
|
|
101
|
+
fieldName: 'deleteResourceUsageLog',
|
|
102
|
+
document,
|
|
103
|
+
variables,
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
exports.ResourceUsageLogModel = ResourceUsageLogModel;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ResourceUsageSummary 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 { ResourceUsageSummaryWithRelations, ResourceUsageSummarySelect, ResourceUsageSummaryFilter, ResourceUsageSummaryOrderBy, CreateResourceUsageSummaryInput, ResourceUsageSummaryPatch } from '../input-types';
|
|
10
|
+
export declare class ResourceUsageSummaryModel {
|
|
11
|
+
private client;
|
|
12
|
+
constructor(client: OrmClient);
|
|
13
|
+
findMany<S extends ResourceUsageSummarySelect>(args: FindManyArgs<S, ResourceUsageSummaryFilter, ResourceUsageSummaryOrderBy> & {
|
|
14
|
+
select: S;
|
|
15
|
+
} & StrictSelect<S, ResourceUsageSummarySelect>): QueryBuilder<{
|
|
16
|
+
resourceUsageSummaries: ConnectionResult<InferSelectResult<ResourceUsageSummaryWithRelations, S>>;
|
|
17
|
+
}>;
|
|
18
|
+
findFirst<S extends ResourceUsageSummarySelect>(args: FindFirstArgs<S, ResourceUsageSummaryFilter, ResourceUsageSummaryOrderBy> & {
|
|
19
|
+
select: S;
|
|
20
|
+
} & StrictSelect<S, ResourceUsageSummarySelect>): QueryBuilder<{
|
|
21
|
+
resourceUsageSummary: InferSelectResult<ResourceUsageSummaryWithRelations, S> | null;
|
|
22
|
+
}>;
|
|
23
|
+
findOne<S extends ResourceUsageSummarySelect>(args: {
|
|
24
|
+
id: string;
|
|
25
|
+
select: S;
|
|
26
|
+
} & StrictSelect<S, ResourceUsageSummarySelect>): QueryBuilder<{
|
|
27
|
+
resourceUsageSummary: InferSelectResult<ResourceUsageSummaryWithRelations, S> | null;
|
|
28
|
+
}>;
|
|
29
|
+
create<S extends ResourceUsageSummarySelect>(args: CreateArgs<S, CreateResourceUsageSummaryInput['resourceUsageSummary']> & {
|
|
30
|
+
select: S;
|
|
31
|
+
} & StrictSelect<S, ResourceUsageSummarySelect>): QueryBuilder<{
|
|
32
|
+
createResourceUsageSummary: {
|
|
33
|
+
resourceUsageSummary: InferSelectResult<ResourceUsageSummaryWithRelations, S>;
|
|
34
|
+
};
|
|
35
|
+
}>;
|
|
36
|
+
update<S extends ResourceUsageSummarySelect>(args: UpdateArgs<S, {
|
|
37
|
+
id: string;
|
|
38
|
+
date: string;
|
|
39
|
+
}, ResourceUsageSummaryPatch> & {
|
|
40
|
+
select: S;
|
|
41
|
+
} & StrictSelect<S, ResourceUsageSummarySelect>): QueryBuilder<{
|
|
42
|
+
updateResourceUsageSummary: {
|
|
43
|
+
resourceUsageSummary: InferSelectResult<ResourceUsageSummaryWithRelations, S>;
|
|
44
|
+
};
|
|
45
|
+
}>;
|
|
46
|
+
delete<S extends ResourceUsageSummarySelect>(args: DeleteArgs<{
|
|
47
|
+
id: string;
|
|
48
|
+
date: string;
|
|
49
|
+
}, S> & {
|
|
50
|
+
select: S;
|
|
51
|
+
} & StrictSelect<S, ResourceUsageSummarySelect>): QueryBuilder<{
|
|
52
|
+
deleteResourceUsageSummary: {
|
|
53
|
+
resourceUsageSummary: InferSelectResult<ResourceUsageSummaryWithRelations, S>;
|
|
54
|
+
};
|
|
55
|
+
}>;
|
|
56
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ResourceUsageSummaryModel = void 0;
|
|
4
|
+
const query_builder_1 = require("../query-builder");
|
|
5
|
+
const input_types_1 = require("../input-types");
|
|
6
|
+
class ResourceUsageSummaryModel {
|
|
7
|
+
client;
|
|
8
|
+
constructor(client) {
|
|
9
|
+
this.client = client;
|
|
10
|
+
}
|
|
11
|
+
findMany(args) {
|
|
12
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('ResourceUsageSummary', 'resourceUsageSummaries', 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
|
+
}, 'ResourceUsageSummaryFilter', 'ResourceUsageSummaryOrderBy', input_types_1.connectionFieldsMap);
|
|
21
|
+
return new query_builder_1.QueryBuilder({
|
|
22
|
+
client: this.client,
|
|
23
|
+
operation: 'query',
|
|
24
|
+
operationName: 'ResourceUsageSummary',
|
|
25
|
+
fieldName: 'resourceUsageSummaries',
|
|
26
|
+
document,
|
|
27
|
+
variables,
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
findFirst(args) {
|
|
31
|
+
const { document, variables } = (0, query_builder_1.buildFindFirstDocument)('ResourceUsageSummary', 'resourceUsageSummaries', args.select, {
|
|
32
|
+
where: args?.where,
|
|
33
|
+
orderBy: args?.orderBy,
|
|
34
|
+
}, 'ResourceUsageSummaryFilter', 'ResourceUsageSummaryOrderBy', input_types_1.connectionFieldsMap);
|
|
35
|
+
return new query_builder_1.QueryBuilder({
|
|
36
|
+
client: this.client,
|
|
37
|
+
operation: 'query',
|
|
38
|
+
operationName: 'ResourceUsageSummary',
|
|
39
|
+
fieldName: 'resourceUsageSummary',
|
|
40
|
+
document,
|
|
41
|
+
variables,
|
|
42
|
+
transform: (data) => ({
|
|
43
|
+
resourceUsageSummary: data.resourceUsageSummaries?.nodes?.[0] ?? null,
|
|
44
|
+
}),
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
findOne(args) {
|
|
48
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('ResourceUsageSummary', 'resourceUsageSummaries', args.select, {
|
|
49
|
+
where: {
|
|
50
|
+
id: {
|
|
51
|
+
equalTo: args.id,
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
first: 1,
|
|
55
|
+
}, 'ResourceUsageSummaryFilter', 'ResourceUsageSummaryOrderBy', input_types_1.connectionFieldsMap);
|
|
56
|
+
return new query_builder_1.QueryBuilder({
|
|
57
|
+
client: this.client,
|
|
58
|
+
operation: 'query',
|
|
59
|
+
operationName: 'ResourceUsageSummary',
|
|
60
|
+
fieldName: 'resourceUsageSummary',
|
|
61
|
+
document,
|
|
62
|
+
variables,
|
|
63
|
+
transform: (data) => ({
|
|
64
|
+
resourceUsageSummary: data.resourceUsageSummaries?.nodes?.[0] ?? null,
|
|
65
|
+
}),
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
create(args) {
|
|
69
|
+
const { document, variables } = (0, query_builder_1.buildCreateDocument)('ResourceUsageSummary', 'createResourceUsageSummary', 'resourceUsageSummary', args.select, args.data, 'CreateResourceUsageSummaryInput', input_types_1.connectionFieldsMap);
|
|
70
|
+
return new query_builder_1.QueryBuilder({
|
|
71
|
+
client: this.client,
|
|
72
|
+
operation: 'mutation',
|
|
73
|
+
operationName: 'ResourceUsageSummary',
|
|
74
|
+
fieldName: 'createResourceUsageSummary',
|
|
75
|
+
document,
|
|
76
|
+
variables,
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
update(args) {
|
|
80
|
+
const { document, variables } = (0, query_builder_1.buildUpdateByPkDocument)('ResourceUsageSummary', 'updateResourceUsageSummary', 'resourceUsageSummary', args.select, args.where.id, args.data, 'UpdateResourceUsageSummaryInput', 'id', 'resourceUsageSummaryPatch', input_types_1.connectionFieldsMap, {
|
|
81
|
+
date: args.where.date,
|
|
82
|
+
});
|
|
83
|
+
return new query_builder_1.QueryBuilder({
|
|
84
|
+
client: this.client,
|
|
85
|
+
operation: 'mutation',
|
|
86
|
+
operationName: 'ResourceUsageSummary',
|
|
87
|
+
fieldName: 'updateResourceUsageSummary',
|
|
88
|
+
document,
|
|
89
|
+
variables,
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
delete(args) {
|
|
93
|
+
const { document, variables } = (0, query_builder_1.buildDeleteByPkDocument)('ResourceUsageSummary', 'deleteResourceUsageSummary', 'resourceUsageSummary', {
|
|
94
|
+
id: args.where.id,
|
|
95
|
+
date: args.where.date,
|
|
96
|
+
}, 'DeleteResourceUsageSummaryInput', args.select, input_types_1.connectionFieldsMap);
|
|
97
|
+
return new query_builder_1.QueryBuilder({
|
|
98
|
+
client: this.client,
|
|
99
|
+
operation: 'mutation',
|
|
100
|
+
operationName: 'ResourceUsageSummary',
|
|
101
|
+
fieldName: 'deleteResourceUsageSummary',
|
|
102
|
+
document,
|
|
103
|
+
variables,
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
exports.ResourceUsageSummaryModel = ResourceUsageSummaryModel;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ResourceUtilizationDaily 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 { ResourceUtilizationDailyWithRelations, ResourceUtilizationDailySelect, ResourceUtilizationDailyFilter, ResourceUtilizationDailyOrderBy, CreateResourceUtilizationDailyInput } from '../input-types';
|
|
10
|
+
export declare class ResourceUtilizationDailyModel {
|
|
11
|
+
private client;
|
|
12
|
+
constructor(client: OrmClient);
|
|
13
|
+
findMany<S extends ResourceUtilizationDailySelect>(args: FindManyArgs<S, ResourceUtilizationDailyFilter, ResourceUtilizationDailyOrderBy> & {
|
|
14
|
+
select: S;
|
|
15
|
+
} & StrictSelect<S, ResourceUtilizationDailySelect>): QueryBuilder<{
|
|
16
|
+
resourceUtilizationDailies: ConnectionResult<InferSelectResult<ResourceUtilizationDailyWithRelations, S>>;
|
|
17
|
+
}>;
|
|
18
|
+
findFirst<S extends ResourceUtilizationDailySelect>(args: FindFirstArgs<S, ResourceUtilizationDailyFilter, ResourceUtilizationDailyOrderBy> & {
|
|
19
|
+
select: S;
|
|
20
|
+
} & StrictSelect<S, ResourceUtilizationDailySelect>): QueryBuilder<{
|
|
21
|
+
resourceUtilizationDaily: InferSelectResult<ResourceUtilizationDailyWithRelations, S> | null;
|
|
22
|
+
}>;
|
|
23
|
+
create<S extends ResourceUtilizationDailySelect>(args: CreateArgs<S, CreateResourceUtilizationDailyInput['resourceUtilizationDaily']> & {
|
|
24
|
+
select: S;
|
|
25
|
+
} & StrictSelect<S, ResourceUtilizationDailySelect>): QueryBuilder<{
|
|
26
|
+
createResourceUtilizationDaily: {
|
|
27
|
+
resourceUtilizationDaily: InferSelectResult<ResourceUtilizationDailyWithRelations, S>;
|
|
28
|
+
};
|
|
29
|
+
}>;
|
|
30
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ResourceUtilizationDailyModel = void 0;
|
|
4
|
+
const query_builder_1 = require("../query-builder");
|
|
5
|
+
const input_types_1 = require("../input-types");
|
|
6
|
+
class ResourceUtilizationDailyModel {
|
|
7
|
+
client;
|
|
8
|
+
constructor(client) {
|
|
9
|
+
this.client = client;
|
|
10
|
+
}
|
|
11
|
+
findMany(args) {
|
|
12
|
+
const { document, variables } = (0, query_builder_1.buildFindManyDocument)('ResourceUtilizationDaily', 'resourceUtilizationDailies', 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
|
+
}, 'ResourceUtilizationDailyFilter', 'ResourceUtilizationDailyOrderBy', input_types_1.connectionFieldsMap);
|
|
21
|
+
return new query_builder_1.QueryBuilder({
|
|
22
|
+
client: this.client,
|
|
23
|
+
operation: 'query',
|
|
24
|
+
operationName: 'ResourceUtilizationDaily',
|
|
25
|
+
fieldName: 'resourceUtilizationDailies',
|
|
26
|
+
document,
|
|
27
|
+
variables,
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
findFirst(args) {
|
|
31
|
+
const { document, variables } = (0, query_builder_1.buildFindFirstDocument)('ResourceUtilizationDaily', 'resourceUtilizationDailies', args.select, {
|
|
32
|
+
where: args?.where,
|
|
33
|
+
orderBy: args?.orderBy,
|
|
34
|
+
}, 'ResourceUtilizationDailyFilter', 'ResourceUtilizationDailyOrderBy', input_types_1.connectionFieldsMap);
|
|
35
|
+
return new query_builder_1.QueryBuilder({
|
|
36
|
+
client: this.client,
|
|
37
|
+
operation: 'query',
|
|
38
|
+
operationName: 'ResourceUtilizationDaily',
|
|
39
|
+
fieldName: 'resourceUtilizationDaily',
|
|
40
|
+
document,
|
|
41
|
+
variables,
|
|
42
|
+
transform: (data) => ({
|
|
43
|
+
resourceUtilizationDaily: data.resourceUtilizationDailies?.nodes?.[0] ?? null,
|
|
44
|
+
}),
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
create(args) {
|
|
48
|
+
const { document, variables } = (0, query_builder_1.buildCreateDocument)('ResourceUtilizationDaily', 'createResourceUtilizationDaily', 'resourceUtilizationDaily', args.select, args.data, 'CreateResourceUtilizationDailyInput', input_types_1.connectionFieldsMap);
|
|
49
|
+
return new query_builder_1.QueryBuilder({
|
|
50
|
+
client: this.client,
|
|
51
|
+
operation: 'mutation',
|
|
52
|
+
operationName: 'ResourceUtilizationDaily',
|
|
53
|
+
fieldName: 'createResourceUtilizationDaily',
|
|
54
|
+
document,
|
|
55
|
+
variables,
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
exports.ResourceUtilizationDailyModel = ResourceUtilizationDailyModel;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ResourcesHealth 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 { ResourcesHealthWithRelations, ResourcesHealthSelect, ResourcesHealthFilter, ResourcesHealthOrderBy, CreateResourcesHealthInput } from '../input-types';
|
|
10
|
+
export declare class ResourcesHealthModel {
|
|
11
|
+
private client;
|
|
12
|
+
constructor(client: OrmClient);
|
|
13
|
+
findMany<S extends ResourcesHealthSelect>(args: FindManyArgs<S, ResourcesHealthFilter, ResourcesHealthOrderBy> & {
|
|
14
|
+
select: S;
|
|
15
|
+
} & StrictSelect<S, ResourcesHealthSelect>): QueryBuilder<{
|
|
16
|
+
resourcesHealths: ConnectionResult<InferSelectResult<ResourcesHealthWithRelations, S>>;
|
|
17
|
+
}>;
|
|
18
|
+
findFirst<S extends ResourcesHealthSelect>(args: FindFirstArgs<S, ResourcesHealthFilter, ResourcesHealthOrderBy> & {
|
|
19
|
+
select: S;
|
|
20
|
+
} & StrictSelect<S, ResourcesHealthSelect>): QueryBuilder<{
|
|
21
|
+
resourcesHealth: InferSelectResult<ResourcesHealthWithRelations, S> | null;
|
|
22
|
+
}>;
|
|
23
|
+
findOne<S extends ResourcesHealthSelect>(args: {
|
|
24
|
+
id: string;
|
|
25
|
+
select: S;
|
|
26
|
+
} & StrictSelect<S, ResourcesHealthSelect>): QueryBuilder<{
|
|
27
|
+
resourcesHealth: InferSelectResult<ResourcesHealthWithRelations, S> | null;
|
|
28
|
+
}>;
|
|
29
|
+
create<S extends ResourcesHealthSelect>(args: CreateArgs<S, CreateResourcesHealthInput['resourcesHealth']> & {
|
|
30
|
+
select: S;
|
|
31
|
+
} & StrictSelect<S, ResourcesHealthSelect>): QueryBuilder<{
|
|
32
|
+
createResourcesHealth: {
|
|
33
|
+
resourcesHealth: InferSelectResult<ResourcesHealthWithRelations, S>;
|
|
34
|
+
};
|
|
35
|
+
}>;
|
|
36
|
+
}
|