@@ -96,7 +96,10 @@ import { ConnectionArguments } from 'graphql-relay';
9696import { ProfileResponse , snotraClient } from '../integrations/snotra' ;
9797import { slackClient } from '../common/slack' ;
9898import { fileTypeFromBuffer } from 'file-type' ;
99- import { acceptedOpportunityFileTypes } from '../types' ;
99+ import {
100+ acceptedOpportunityFileTypes ,
101+ opportunityMatchBatchSize ,
102+ } from '../types' ;
100103import { getBrokkrClient } from '../common/brokkr' ;
101104import { garmScraperService } from '../common/scraper' ;
102105import { Storage } from '@google-cloud/storage' ;
@@ -110,7 +113,14 @@ import type { GQLSource } from './sources';
110113export interface GQLOpportunity
111114 extends Pick <
112115 Opportunity ,
113- 'id' | 'type' | 'state' | 'title' | 'tldr' | 'content' | 'keywords'
116+ | 'id'
117+ | 'type'
118+ | 'state'
119+ | 'title'
120+ | 'tldr'
121+ | 'content'
122+ | 'keywords'
123+ | 'flags'
114124 > {
115125 createdAt : Date ;
116126 updatedAt : Date ;
@@ -273,6 +283,13 @@ export const typeDefs = /* GraphQL */ `
273283 edges: [OpportunityEdge!]!
274284 }
275285
286+ """
287+ Flags for the opportunity
288+ """
289+ type OpportunityFlagsPublic {
290+ batchSize: Int
291+ }
292+
276293 type Opportunity {
277294 id: ID!
278295 type: ProtoEnumValue!
@@ -288,6 +305,7 @@ export const typeDefs = /* GraphQL */ `
288305 questions: [OpportunityScreeningQuestion]!
289306 feedbackQuestions: [OpportunityFeedbackQuestion]!
290307 subscriptionStatus: SubscriptionStatus!
308+ flags: OpportunityFlagsPublic
291309 }
292310
293311 type OpportunityMatchDescription {
@@ -2349,6 +2367,8 @@ export const resolvers: IResolvers<unknown, BaseContext> = traceResolvers<
23492367 flags . anonUserId = ctx . trackingId ; // save tracking id to attribute later
23502368 }
23512369
2370+ flags . batchSize = opportunityMatchBatchSize ;
2371+
23522372 const opportunity = await entityManager
23532373 . getRepository ( OpportunityJob )
23542374 . save (
0 commit comments