-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsearch.interface.ts
More file actions
103 lines (98 loc) · 2.95 KB
/
search.interface.ts
File metadata and controls
103 lines (98 loc) · 2.95 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
// Copyright The Linux Foundation and each contributor to LFX.
// SPDX-License-Identifier: MIT
/**
* Project search result with summary information
* @description Lightweight project data optimized for search results and listings
*/
export interface ProjectSearchResult {
/** Unique project identifier */
project_uid: string;
/** Project display name */
project_name: string;
/** URL-friendly project identifier */
project_slug: string;
/** Project description text */
project_description: string;
/** Project lifecycle status */
status: string;
/** URL to project logo image */
logo_url: string;
/** Number of meetings associated with project */
meetings_count: number;
/** Number of mailing lists for the project */
mailing_list_count: number;
/** Names of committees within this project */
committee_names?: string[];
/** Recent meeting topics for context */
meeting_topics?: string[];
}
/**
* Parameters for project search queries
* @description Configuration for searching projects with pagination
*/
export interface ProjectSearchParams {
/** Search query string */
query: string;
/** Maximum number of results to return */
limit?: number;
/** Number of results to skip (for pagination) */
offset?: number;
}
/**
* User search result combining MeetingRegistrant and CommitteeMember
* @description Common user information from either meeting registrants or committee members
*/
export interface UserSearchResult {
/** Unique identifier for the user record */
uid: string;
/** User's email address */
email: string;
/** User's first name */
first_name: string;
/** User's last name */
last_name: string;
/** User's job title */
job_title: string | null;
/** User's organization information */
organization: {
/** Organization name */
name: string;
/** Organization website URL */
website?: string | null;
} | null;
/** Committee information (if user is a committee member) */
committee?: {
/** Committee unique identifier */
uid: string;
/** Committee name */
name: string;
} | null;
/** Source type of the user record */
type: 'meeting_registrant' | 'committee_member';
/** User's LFID username (optional) */
username?: string | null;
}
/**
* Parameters for user search queries
* @description Query parameters for searching users across meeting registrants and committee members
*/
export interface UserSearchParams {
/** Search query string (user name) */
name?: string;
/** Search query string (user email) */
tags?: string;
/** Type of resource to search */
type: 'committee_member' | 'meeting_registrant';
}
/**
* Response structure for user search API
* @description Container for user search results with metadata
*/
export interface UserSearchResponse {
/** Array of user search results */
results: UserSearchResult[];
/** Total number of matching users */
total?: number;
/** Whether there are more results available */
has_more?: boolean;
}