Skip to content

Commit 247b609

Browse files
committed
Replace inconsistent references to cross-package schema types with local schema types
1 parent fdc0aae commit 247b609

4 files changed

Lines changed: 6 additions & 7 deletions

File tree

packages/services/api/src/modules/organization/providers/organization-manager.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { Inject, Injectable, Scope } from 'graphql-modules';
2-
import { OrganizationReferenceInput } from 'packages/libraries/core/src/client/__generated__/types';
32
import { z } from 'zod';
43
import { TaskScheduler } from '@hive/workflows/kit';
54
import { OrganizationInvitationTask } from '@hive/workflows/tasks/organization-invitation';
@@ -56,7 +55,9 @@ export class OrganizationManager {
5655
this.logger = logger.child({ source: 'OrganizationManager' });
5756
}
5857

59-
async getOrganizationByReference(reference: OrganizationReferenceInput): Promise<Organization> {
58+
async getOrganizationByReference(
59+
reference: GraphQLSchema.OrganizationReferenceInput,
60+
): Promise<Organization> {
6061
const selector = await this.idTranslator.resolveOrganizationReference({
6162
reference,
6263
onError: () => {

packages/services/api/src/modules/project/providers/project-manager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Injectable, Scope } from 'graphql-modules';
2-
import * as GraphQLSchema from 'packages/libraries/core/src/client/__generated__/types';
32
import { z } from 'zod';
3+
import * as GraphQLSchema from '../../../__generated__/types';
44
import type { ProjectReferenceInput } from '../../../__generated__/types';
55
import type { Organization, Project, ProjectType, Target } from '../../../shared/entities';
66
import { cache } from '../../../shared/helpers';

packages/services/api/src/modules/proposals/providers/schema-proposal-manager.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
* This wraps the higher level logic with schema proposals.
33
*/
44
import { Inject, Injectable, Scope } from 'graphql-modules';
5-
import { TargetReferenceInput } from 'packages/libraries/core/src/client/__generated__/types';
6-
import type { SchemaProposalStage } from '../../../__generated__/types';
5+
import type { SchemaProposalStage, TargetReferenceInput } from '../../../__generated__/types';
76
import { HiveError } from '../../../shared/errors';
87
import { Session } from '../../auth/lib/authz';
98
import { IdTranslator } from '../../shared/providers/id-translator';

packages/services/api/src/modules/target/providers/target-manager.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { Injectable, Scope } from 'graphql-modules';
2-
import { TargetReferenceInput } from 'packages/libraries/core/src/client/__generated__/types';
32
import * as zod from 'zod';
43
import { z } from 'zod';
54
import * as GraphQLSchema from '../../../__generated__/types';
@@ -226,7 +225,7 @@ export class TargetManager {
226225
return this.storage.getTarget(selector);
227226
}
228227

229-
async getTargetByReferenceInput(reference: TargetReferenceInput) {
228+
async getTargetByReferenceInput(reference: GraphQLSchema.TargetReferenceInput) {
230229
const selector = await this.idTranslator.resolveTargetReference({ reference });
231230

232231
if (!selector) {

0 commit comments

Comments
 (0)