-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathorganization.interface.ts
More file actions
68 lines (63 loc) · 1.84 KB
/
organization.interface.ts
File metadata and controls
68 lines (63 loc) · 1.84 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
// Copyright The Linux Foundation and each contributor to LFX.
// SPDX-License-Identifier: MIT
/**
* Organization suggestion from search results
* @description Individual organization entry returned from typeahead search
*/
export interface OrganizationSuggestion {
/** Organization display name */
name: string;
/** Organization domain name */
domain: string;
/** Organization logo URL */
logo?: string;
}
/**
* Response containing organization suggestions
* @description API response format for organization typeahead search
*/
export interface OrganizationSuggestionsResponse {
/** Array of organization suggestions */
suggestions: OrganizationSuggestion[];
}
/**
* Organization record from the CDP (Community Data Platform)
* @description Returned when finding or creating an organization via CDP API
*/
export interface CdpOrganization {
/** CDP organization ID */
id: string;
/** Organization display name */
name: string;
/** Organization logo URL */
logo: string;
}
/**
* Result of resolving an organization through CDP
* @description Contains the resolved organization details and whether the display name changed
*/
export interface OrganizationResolveResult {
/** CDP organization ID */
id: string;
/** CDP display name (may differ from what the user searched) */
name: string;
/** Organization logo URL */
logo: string;
/** The name the user originally searched/selected */
originalName: string;
/** Whether the CDP display name differs from the original search name */
nameChanged: boolean;
}
/**
* Request body for creating an organization in CDP
*/
export interface CdpOrganizationCreateRequest {
/** Organization name */
name: string;
/** Organization domain */
domain: string;
/** Source system that created this record */
source: string;
/** Organization logo URL */
logo?: string;
}