-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathaccount.interface.ts
More file actions
22 lines (21 loc) · 1.3 KB
/
Copy pathaccount.interface.ts
File metadata and controls
22 lines (21 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright The Linux Foundation and each contributor to LFX.
// SPDX-License-Identifier: MIT
/** Organization / account record used by persona detection, the org selector, and any org-scoped header. */
export interface Account {
/** Salesforce account_id — primary join key */
accountId: string;
/** Organization display name */
accountName: string;
/** Crowd.dev organization id — Org-Lens enrichment, resolved from accountId in Snowflake */
cdevOrgId?: string | null;
/** URL-friendly slug derived from the account name — Org-Lens enrichment */
accountSlug?: string | null;
/** Logo URL for the organization — Org-Lens enrichment */
logoUrl?: string | null;
/** Highest active corporate membership tier display name (e.g. "Platinum Membership"). NULL/empty → no badge. */
membershipTier?: string | null;
/** Org account id (18-char SFID) from member-service — the primary org identifier (spec 002). Persisted in the `lfx-selected-account` cookie and sent to every `/api/orgs/:orgUid/lens/*` route. NULL only for not-yet-resolved persona seeds on a fresh load; the canonical fetch hydrates display fields once it is present. */
uid?: string | null;
/** Parent org account id (SFID); NULL for top-level orgs. Populated from canonical record fetch. */
parentUid?: string | null;
}