{
  "sourceFiles": {
    "mutualConfirmation": "src/service.ts:410-427",
    "nativeWcc": "src/service.ts:441-468",
    "ontologyDiscovery": "src/service.ts:300-384",
    "engagements": "src/conference.ts:199-242",
    "boothScans": "src/booths.ts:84-161"
  },
  "queries": {
    "attendance": "MATCH(a:Attendee)-[:HAS_ATTENDANCE]->(v:Attendance)-[:FOR_SESSION]->(s:Session) RETURN v.id AS id,a.id AS attendeeId,s.id AS sessionId,s.title AS sessionTitle,v.createdAt AS createdAt,v.source AS source,v.analyticsAllowed AS analyticsAllowed ORDER BY createdAt,id",
    "conferenceItems": "MATCH(c:ConferenceItem) RETURN c.id AS id,c.kind AS kind,c.title AS title,c.zoneId AS zoneId,c.startsAt AS startsAt,c.endsAt AS endsAt,c.topics AS topics ORDER BY id",
    "event": "MATCH(e:Event {id:'netcues'}) RETURN e.id AS id,e.name AS name,e.dataset AS dataset,e.resetAt AS resetAt,e.revision AS revision,e.schemaVersion AS schemaVersion,e.ready AS ready",
    "labelCounts": "MATCH(n) UNWIND labels(n) AS label RETURN label,count(*) AS count ORDER BY label",
    "relationshipCounts": "MATCH()-[r]->() RETURN type(r) AS type,count(*) AS count ORDER BY type",
    "consentAggregate": "MATCH(a:Attendee) RETURN count(a) AS registered,sum(CASE WHEN a.analytics=true THEN 1 ELSE 0 END) AS analyticsConsented,sum(CASE WHEN a.discovery=true THEN 1 ELSE 0 END) AS discoveryConsented,sum(CASE WHEN a.available=true THEN 1 ELSE 0 END) AS available,sum(CASE WHEN a.cohortConsent=true THEN 1 ELSE 0 END) AS cohortConsented",
    "nodes": "MATCH(n) WHERE NOT n:Request RETURN id(n) AS internalId,labels(n) AS labels,n.id AS id,n.name AS name,n.title AS title,n.kind AS kind,n.primarySpecialty AS primarySpecialty,n.company AS company,n.topicId AS topicId,n.category AS category,n.source AS source,n.sourceKind AS sourceKind,n.sourceReference AS sourceReference,n.timestamp AS timestamp,n.description AS description ORDER BY internalId",
    "edges": "MATCH(a)-[r]->(b) WHERE NOT a:Request AND NOT b:Request RETURN id(a) AS sourceNode,id(b) AS targetNode,a.id AS source,b.id AS target,type(r) AS type,r.evidenceId AS evidenceId,r.pairKey AS pairKey,r.createdAt AS createdAt,r.firstConfirmedAt AS firstConfirmedAt ORDER BY sourceNode,targetNode,type",
    "attendees": "MATCH(a:AnalyticsAttendee) RETURN a.id AS id,a.name AS name,a.primarySpecialty AS primarySpecialty ORDER BY a.id",
    "metEdges": "MATCH(a:AnalyticsAttendee)-[m:MET]->(b:AnalyticsAttendee) RETURN a.id AS source,b.id AS target,m.pairKey AS pairKey,m.firstConfirmedAt AS firstConfirmedAt ORDER BY source,target",
    "nativeWcc": "CALL algo.WCC({nodeLabels:['AnalyticsAttendee'],relationshipTypes:['MET']}) YIELD node,componentId RETURN node.id AS id,componentId ORDER BY id",
    "interactions": "MATCH(i:Interaction) RETURN i.id AS id,i.initiatorId AS initiatorId,i.recipientId AS recipientId,i.state AS state,i.requestedAt AS requestedAt,i.expiresAt AS expiresAt,i.confirmedAt AS confirmedAt,i.closedAt AS closedAt,i.zoneId AS zoneId,i.pairKey AS pairKey,i.opportunityId AS opportunityId,i.initiatorSpecialty AS initiatorSpecialty,i.recipientSpecialty AS recipientSpecialty ORDER BY requestedAt,id",
    "opportunities": "MATCH(o:Opportunity) RETURN o.id AS id,o.actorId AS actorId,o.candidateId AS candidateId,o.createdAt AS createdAt,o.expiresAt AS expiresAt,o.zoneId AS zoneId,o.sessionId AS sessionId,o.topicId AS topicId,o.nodeIds AS nodeIds,o.relationshipTypes AS relationshipTypes,o.actorSpecialty AS actorSpecialty,o.candidateSpecialty AS candidateSpecialty ORDER BY createdAt,id",
    "engagements": "MATCH(a:Attendee)-[:PERFORMED]->(e:Engagement) WHERE a.analytics=true AND e.analyticsAllowed=true AND e.analyticsConsentVersion=coalesce(a.analyticsConsentVersion,1) RETURN e.id AS id,a.id AS actorId,e.action AS action,e.targetId AS targetId,e.targetKind AS targetKind,e.createdAt AS createdAt ORDER BY createdAt,id",
    "saved": "MATCH(a:Attendee)-[r:SAVED]->(c:ConferenceItem) WHERE a.analytics=true AND r.analyticsAllowed=true AND r.analyticsConsentVersion=coalesce(a.analyticsConsentVersion,1) RETURN a.id AS actorId,c.id AS targetId,c.title AS title,r.createdAt AS createdAt ORDER BY actorId,targetId",
    "registered": "MATCH(a:Attendee)-[r:REGISTERED_FOR]->(c:ConferenceItem) WHERE a.analytics=true AND r.analyticsAllowed=true AND r.analyticsConsentVersion=coalesce(a.analyticsConsentVersion,1) RETURN a.id AS actorId,c.id AS targetId,c.title AS title,r.createdAt AS createdAt ORDER BY actorId,targetId",
    "boothVisits": "MATCH(a:Attendee)-[:MADE_VISIT]->(v:BoothVisit) WHERE a.analytics=true RETURN v.id AS id,a.id AS attendeeId,v.boothId AS boothId,v.zoneId AS zoneId,v.purpose AS purpose,v.source AS source,v.state AS state,v.startedAt AS startedAt,v.observationExpiresAt AS observationExpiresAt,v.endedAt AS endedAt,v.endSource AS endSource,v.durationKind AS durationKind,v.elapsedMs AS elapsedMs,v.upperBoundMs AS upperBoundMs,v.primarySpecialty AS primarySpecialty ORDER BY startedAt,id",
    "presence": "MATCH(a:Attendee)-[:HAS_PRESENCE]->(p:Presence) RETURN a.id AS attendeeId,p.source AS source,p.zoneId AS zoneId,p.sessionId AS sessionId,p.validFrom AS validFrom,p.expiresAt AS expiresAt,p.revoked AS revoked ORDER BY attendeeId",
    "specialtyTopics": "MATCH(s:Specialty)-[r:RELATES_TO]->(t:Topic) RETURN s.id AS specialtyId,s.name AS specialty,t.id AS topicId,t.name AS topic,r.evidenceId AS evidenceId ORDER BY specialtyId,topicId",
    "boothTargets": "MATCH(b:Booth)-[:IN_ZONE]->(z:Zone) OPTIONAL MATCH(b)-[:ABOUT]->(t:Topic) RETURN b.id AS id,b.name AS name,z.id AS zoneId,collect(t.id) AS topicIds ORDER BY id",
    "knownSharedTopic": "MATCH(a:Attendee {id:'person-01'})-[:DECLARES]->(s:Specialty)-[:RELATES_TO]->(t:Topic) MATCH(b:Attendee {id:'person-13'})-[:DECLARES]->(bs:Specialty)-[:RELATES_TO]->(t) RETURN a.id AS actor,s.id AS actorSpecialty,t.id AS topic,t.name AS topicName,bs.id AS candidateSpecialty,b.id AS candidate ORDER BY topic"
  }
}
