Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

refactor(calls): consolidate call entity taxonomy on 'call' (#2895)

gbirman2055edb67a75
diff --git a/js/app/packages/app/component/next-soup/filters/query-filters.ts b/js/app/packages/app/component/next-soup/filters/query-filters.ts
index e95bed4814..d508e039a4 100644
--- a/js/app/packages/app/component/next-soup/filters/query-filters.ts
+++ b/js/app/packages/app/component/next-soup/filters/query-filters.ts
@@ -73,7 +73,7 @@ export function filterSoupItemByRequestBody(
!isIdFilteredOut(body.email_filters?.email_thread_ids, data.id)
)
.with(
- { tag: 'callRecord' },
+ { tag: 'call' },
({ data }) =>
!isIdFilteredOut(body.call_filters?.channel_ids, data.channelId) &&
!isAttendedFilteredOut(body.call_filters?.attended, data.attended)
diff --git a/js/app/packages/core/internal/trackBlockOpened.ts b/js/app/packages/core/internal/trackBlockOpened.ts
index 742238b21f..ceec6a4ecd 100644
--- a/js/app/packages/core/internal/trackBlockOpened.ts
+++ b/js/app/packages/core/internal/trackBlockOpened.ts
@@ -9,9 +9,20 @@ import {
import {
blockNameToItemType,
isCloudStorageItem,
+ type ItemType,
} from '@service-storage/client';
import type { QueryClient } from '@tanstack/solid-query';
import type { Accessor } from 'solid-js';
+import { match } from 'ts-pattern';
+
+function isSoupEntityTag(
+ itemType: ItemType
+): itemType is ItemType & SoupEntityTag {
+ return match(itemType)
+ .with('email', 'channel_message', 'automation', () => false)
+ .with('document', 'chat', 'project', 'channel', 'call', () => true)
+ .exhaustive();
+}
/**
* Tracks opening of a block and updates history accordingly.
@@ -30,8 +41,8 @@ export function track({
optimisticUpdateSoupItemViewedAt(itemId);
const inSoup = hasSoupEntity(itemId);
- if (!inSoup && itemType) {
- refetchSoupEntity(itemId, itemType as SoupEntityTag);
+ if (!inSoup && isSoupEntityTag(itemType)) {
+ refetchSoupEntity(itemId, itemType);
}
if (!isCloudStorageItem(itemType)) return;
diff --git a/js/app/packages/queries/properties/entity.ts b/js/app/packages/queries/properties/entity.ts
index bd760b2fd2..652e0c23b0 100644
--- a/js/app/packages/queries/properties/entity.ts
+++ b/js/app/packages/queries/properties/entity.ts
@@ -87,7 +87,7 @@ function optimisticUpdateSoupEntityProperty(
if (
!current ||
current.tag === 'channel' ||
- current.tag === 'callRecord' ||
+ current.tag === 'call' ||
!current.data.properties
) {
return undefined;
diff --git a/js/app/packages/queries/soup/normalized-cache/operations.ts b/js/app/packages/queries/soup/normalized-cache/operations.ts
index 90590c2f4f..c96a831063 100644
--- a/js/app/packages/queries/soup/normalized-cache/operations.ts
+++ b/js/app/packages/queries/soup/normalized-cache/operations.ts
@@ -93,7 +93,7 @@ export function getSoupItemId(item: SoupApiItem): string {
switch (item.tag) {
case 'channel':
return item.data.channel.id;
- case 'callRecord':
+ case 'call':
return item.data.callId;
default:
return item.data.id;
@@ -280,7 +280,7 @@ export function buildSingleEntityFilter(
...base,
email_filters: { email_thread_ids: [entityId] },
}))
- .with('callRecord', () => null)
+ .with('call', () => null)
.exhaustive();
}
@@ -305,7 +305,7 @@ export function optimisticUpdateSoupItemViewedAt(itemId: string) {
data: { channel: { id: itemId }, viewed_at: now },
frecency_score: current.frecency_score,
});
- } else if (current.tag === 'callRecord') {
+ } else if (current.tag === 'call') {
// Call records don't have viewedAt — skip.
return;
} else {
@@ -343,7 +343,7 @@ export function optimisticUpdateSoupItemUpdatedAt(
data: { channel: { id: itemId, updated_at: updatedAt } },
frecency_score: current.frecency_score,
});
- } else if (current.tag === 'callRecord') {
+ } else if (current.tag === 'call') {
// Call records use endedAt/startedAt, not updatedAt — skip optimistic timestamp updates.
return;
} else {
@@ -376,7 +376,7 @@ function getSearchResultId(result: UnifiedSearchResponseItem): string {
.with({ type: 'channel' }, (r) => r.channel_id)
.with({ type: 'email' }, (r) => r.thread_id)
.with({ type: 'project' }, (r) => r.id)
- .with({ type: 'callRecord' }, (r) => r.call_id)
+ .with({ type: 'call' }, (r) => r.call_id)
.exhaustive();
}
diff --git a/js/app/packages/queries/soup/normalized-cache/types.ts b/js/app/packages/queries/soup/normalized-cache/types.ts
index d1bf791dee..b573f5d9e5 100644
--- a/js/app/packages/queries/soup/normalized-cache/types.ts
+++ b/js/app/packages/queries/soup/normalized-cache/types.ts
@@ -20,8 +20,8 @@ type SoupPartialData<T extends SoupEntityTag> = T extends 'channel'
? { channel: Partial<ChannelInner> & Pick<ChannelInner, 'id'> } & Partial<
Omit<SoupItemData<'channel'>, 'channel'>
>
- : T extends 'callRecord'
- ? Partial<SoupItemData<'callRecord'>> & { callId: string }
+ : T extends 'call'
+ ? Partial<SoupItemData<'call'>> & { callId: string }
: Partial<SoupItemData<T>> & { id: string };
// A partial soup entity for optimistic updates.
diff --git a/js/app/packages/queries/soup/recently-viewed.ts b/js/app/packages/queries/soup/recently-viewed.ts
index b0a48b45c6..b8ac7eabff 100644
--- a/js/app/packages/queries/soup/recently-viewed.ts
+++ b/js/app/packages/queries/soup/recently-viewed.ts
@@ -42,7 +42,7 @@ export function useRecentlyViewedSoupQuery() {
})
);
return page.items
- .filter((item) => item.tag !== 'callRecord')
+ .filter((item) => item.tag !== 'call')
.map((item) => ({
id: item.tag === 'channel' ? item.data.channel.id : item.data.id,
viewedAt:
diff --git a/js/app/packages/queries/soup/transform-utils.ts b/js/app/packages/queries/soup/transform-utils.ts
index d140261f86..2eac5d07c8 100644
--- a/js/app/packages/queries/soup/transform-utils.ts
+++ b/js/app/packages/queries/soup/transform-utils.ts
@@ -358,7 +358,7 @@ export const useSearchResponseItemMapper = () => {
];
}
- case 'callRecord': {
+ case 'call': {
if (!result.metadata) return [];
const search = getSearchData({
type: 'call_record',
@@ -507,7 +507,7 @@ export const mapSoupPageToEntityList: (
};
}
- if (item.tag === 'callRecord') {
+ if (item.tag === 'call') {
return {
type: 'call',
id: item.data.callId,
diff --git a/js/app/packages/service-clients/service-cognition/generated/tools/schemas.ts b/js/app/packages/service-clients/service-cognition/generated/tools/schemas.ts
index 279dd403b2..9271a2a994 100644
--- a/js/app/packages/service-clients/service-cognition/generated/tools/schemas.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/tools/schemas.ts
@@ -354,7 +354,7 @@ export const SearchToolResponse = z.object({
name: z.union([z.string(), z.null()]).optional(),
owner_id: z.string(),
participant_ids: z.array(z.string()),
- type: z.literal('callRecord'),
+ type: z.literal('call'),
}),
];
const errors = schemas.reduce<z.ZodError[]>(
@@ -496,14 +496,7 @@ export const ListEntities = z
.object({
includeTypes: z.union([
z.array(
- z.enum([
- 'document',
- 'ai_chat',
- 'project',
- 'email',
- 'channel',
- 'call_record',
- ])
+ z.enum(['document', 'ai_chat', 'project', 'email', 'channel', 'call'])
),
z.null(),
]),
@@ -543,7 +536,7 @@ export const ListEntitiesResponse = z.object({
z.object({
createdBy: z.string(),
id: z.string().uuid(),
- type: z.literal('callRecord'),
+ type: z.literal('call'),
}),
];
const errors = schemas.reduce<z.ZodError[]>(
diff --git a/js/app/packages/service-clients/service-cognition/generated/tools/types.ts b/js/app/packages/service-clients/service-cognition/generated/tools/types.ts
index 7e3e511723..03bfa78a7e 100644
--- a/js/app/packages/service-clients/service-cognition/generated/tools/types.ts
+++ b/js/app/packages/service-clients/service-cognition/generated/tools/types.ts
@@ -637,7 +637,7 @@ export interface SearchToolResponse {
name?: string | null;
owner_id: string;
participant_ids: string[];
- type: 'callRecord';
+ type: 'call';
}
)[];
}
@@ -977,14 +977,7 @@ export interface ListEntities {
* Filter to specific item types. If not provided, returns all types. Example: ["document", "email"] returns only documents and emails.
*/
includeTypes:
- | (
- | 'document'
- | 'ai_chat'
- | 'project'
- | 'email'
- | 'channel'
- | 'call_record'
- )[]
+ | ('document' | 'ai_chat' | 'project' | 'email' | 'channel' | 'call')[]
| null;
/**
* How to sort results: recently_viewed (default), recently_updated, or recently_created.
@@ -1029,7 +1022,7 @@ export interface ListEntitiesResponse {
| {
createdBy: string;
id: string;
- type: 'callRecord';
+ type: 'call';
}
)[];
summary: string;
diff --git a/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemHumanReadableTimestampOneOfOnesixAllOfType.ts b/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemHumanReadableTimestampOneOfOnesixAllOfType.ts
index 0e1dbc35a7..ab0d1aa505 100644
--- a/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemHumanReadableTimestampOneOfOnesixAllOfType.ts
+++ b/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemHumanReadableTimestampOneOfOnesixAllOfType.ts
@@ -11,5 +11,5 @@ export type SimpleUnifiedSearchResponseBaseItemHumanReadableTimestampOneOfOnesix
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const SimpleUnifiedSearchResponseBaseItemHumanReadableTimestampOneOfOnesixAllOfType =
{
- callRecord: 'callRecord',
+ call: 'call',
} as const;
diff --git a/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemOneOfOnesixAllOfType.ts b/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemOneOfOnesixAllOfType.ts
index 3454e85b18..59c0774e73 100644
--- a/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemOneOfOnesixAllOfType.ts
+++ b/js/app/packages/service-clients/service-search/generated/models/simpleUnifiedSearchResponseBaseItemOneOfOnesixAllOfType.ts
@@ -10,5 +10,5 @@ export type SimpleUnifiedSearchResponseBaseItemOneOfOnesixAllOfType =
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const SimpleUnifiedSearchResponseBaseItemOneOfOnesixAllOfType = {
- callRecord: 'callRecord',
+ call: 'call',
} as const;
diff --git a/js/app/packages/service-clients/service-search/generated/models/unifiedSearchResponseItemOneOfOnesixAllOfType.ts b/js/app/packages/service-clients/service-search/generated/models/unifiedSearchResponseItemOneOfOnesixAllOfType.ts
index 3c6c44a574..4b2a0fba5a 100644
--- a/js/app/packages/service-clients/service-search/generated/models/unifiedSearchResponseItemOneOfOnesixAllOfType.ts
+++ b/js/app/packages/service-clients/service-search/generated/models/unifiedSearchResponseItemOneOfOnesixAllOfType.ts
@@ -10,5 +10,5 @@ export type UnifiedSearchResponseItemOneOfOnesixAllOfType =
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const UnifiedSearchResponseItemOneOfOnesixAllOfType = {
- callRecord: 'callRecord',
+ call: 'call',
} as const;
diff --git a/js/app/packages/service-clients/service-search/openapi.json b/js/app/packages/service-clients/service-search/openapi.json
index 45d3ccdf7f..e4add8a5f7 100644
--- a/js/app/packages/service-clients/service-search/openapi.json
+++ b/js/app/packages/service-clients/service-search/openapi.json
@@ -3315,7 +3315,7 @@
"properties": {
"type": {
"type": "string",
- "enum": ["callRecord"]
+ "enum": ["call"]
}
}
}
@@ -3421,7 +3421,7 @@
"properties": {
"type": {
"type": "string",
- "enum": ["callRecord"]
+ "enum": ["call"]
}
}
}
@@ -3601,7 +3601,7 @@
"properties": {
"type": {
"type": "string",
- "enum": ["callRecord"]
+ "enum": ["call"]
}
}
}
diff --git a/js/app/packages/service-clients/service-storage/generated/schemas/soupItemOneOfOneoneTag.ts b/js/app/packages/service-clients/service-storage/generated/schemas/soupItemOneOfOneoneTag.ts
index 1068ca2726..81a3b77f2a 100644
--- a/js/app/packages/service-clients/service-storage/generated/schemas/soupItemOneOfOneoneTag.ts
+++ b/js/app/packages/service-clients/service-storage/generated/schemas/soupItemOneOfOneoneTag.ts
@@ -10,5 +10,5 @@ export type SoupItemOneOfOneoneTag =
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const SoupItemOneOfOneoneTag = {
- callRecord: 'callRecord',
+ call: 'call',
} as const;
diff --git a/js/app/packages/service-clients/service-storage/generated/zod.ts b/js/app/packages/service-clients/service-storage/generated/zod.ts
index 3432d297a1..f739b66672 100644
--- a/js/app/packages/service-clients/service-storage/generated/zod.ts
+++ b/js/app/packages/service-clients/service-storage/generated/zod.ts
@@ -5184,7 +5184,7 @@ export const getItemsSoupResponse = zod.object({
.describe(
'A call record as displayed in Soup. Excludes room_name, egress_id,\nand transcript — fields that are irrelevant for the soup feed.'
),
- tag: zod.enum(['callRecord']),
+ tag: zod.enum(['call']),
}),
])
.and(
@@ -6887,7 +6887,7 @@ export const postItemsSoupResponse = zod.object({
.describe(
'A call record as displayed in Soup. Excludes room_name, egress_id,\nand transcript — fields that are irrelevant for the soup feed.'
),
- tag: zod.enum(['callRecord']),
+ tag: zod.enum(['call']),
}),
])
.and(
@@ -8234,7 +8234,7 @@ export const postItemsSoupAstResponse = zod.object({
.describe(
'A call record as displayed in Soup. Excludes room_name, egress_id,\nand transcript — fields that are irrelevant for the soup feed.'
),
- tag: zod.enum(['callRecord']),
+ tag: zod.enum(['call']),
}),
])
.and(
diff --git a/js/app/packages/service-clients/service-storage/openapi.json b/js/app/packages/service-clients/service-storage/openapi.json
index 8d6365bd62..75e96569c3 100644
--- a/js/app/packages/service-clients/service-storage/openapi.json
+++ b/js/app/packages/service-clients/service-storage/openapi.json
@@ -11464,7 +11464,7 @@
},
"tag": {
"type": "string",
- "enum": ["callRecord"]
+ "enum": ["call"]
}
}
}
diff --git a/rust/cloud-storage/models_search/src/unified.rs b/rust/cloud-storage/models_search/src/unified.rs
index 03c968cb40..874acba6e2 100644
--- a/rust/cloud-storage/models_search/src/unified.rs
+++ b/rust/cloud-storage/models_search/src/unified.rs
@@ -204,7 +204,7 @@ pub enum UnifiedSearchResponseItem {
Email(EmailSearchResponseItemWithMetadata),
Channel(ChannelSearchResponseItemWithMetadata),
Project(ProjectSearchResponseItemWithMetadata),
- CallRecord(CallRecordSearchResponseItemWithMetadata),
+ Call(CallRecordSearchResponseItemWithMetadata),
}
impl UnifiedSearchResponseItem {
@@ -215,7 +215,7 @@ impl UnifiedSearchResponseItem {
Self::Email(item) => item.extra.id,
Self::Channel(item) => item.extra.id,
Self::Project(item) => item.extra.id,
- Self::CallRecord(item) => item.extra.id,
+ Self::Call(item) => item.extra.id,
}
}
/// Get the updated_at timestamp for each item
@@ -237,7 +237,7 @@ impl UnifiedSearchResponseItem {
max_result_updated_at.or_else(|| item.metadata.as_ref().map(|m| m.updated_at))
}
Self::Project(item) => item.metadata.as_ref().map(|m| m.updated_at),
- Self::CallRecord(item) => item.metadata.as_ref().map(|m| m.updated_at),
+ Self::Call(item) => item.metadata.as_ref().map(|m| m.updated_at),
}
}
}
@@ -258,7 +258,7 @@ pub enum SimpleUnifiedSearchResponseBaseItem<T> {
Email(SimpleEmailSearchResponseBaseItem<T>),
Channel(SimpleChannelSearchReponseBaseItem<T>),
Project(SimpleProjectSearchResponseBaseItem<T>),
- CallRecord(SimpleCallRecordSearchResponseBaseItem<T>),
+ Call(SimpleCallRecordSearchResponseBaseItem<T>),
}
pub type SimpleUnifiedSearchResponseItem =
diff --git a/rust/cloud-storage/models_soup/src/item.rs b/rust/cloud-storage/models_soup/src/item.rs
index 92c00b06cd..743cfc2126 100644
--- a/rust/cloud-storage/models_soup/src/item.rs
+++ b/rust/cloud-storage/models_soup/src/item.rs
@@ -19,7 +19,7 @@ pub enum SoupItem {
Project(SoupProject),
EmailThread(SoupEnrichedEmailThreadPreview),
Channel(SoupChannel),
- CallRecord(SoupCallRecord),
+ Call(SoupCallRecord),
}
impl SoupItem {
@@ -41,7 +41,7 @@ impl SoupItem {
SoupItem::Channel(channel) => {
EntityType::Channel.with_entity_string(channel.channel.channel.id.0.to_string())
}
- SoupItem::CallRecord(record) => {
+ SoupItem::Call(record) => {
EntityType::Call.with_entity_string(record.call_id.to_string())
}
}
@@ -54,7 +54,7 @@ impl SoupItem {
SoupItem::Project(soup_project) => soup_project.updated_at,
SoupItem::EmailThread(soup_thread) => soup_thread.thread.updated_at,
SoupItem::Channel(soup_channel) => soup_channel.channel.channel.updated_at,
- SoupItem::CallRecord(record) => record.ended_at.unwrap_or(record.started_at),
+ SoupItem::Call(record) => record.ended_at.unwrap_or(record.started_at),
}
}
}
@@ -112,8 +112,8 @@ impl SoupItem {
(SoupItem::Channel(soup_channel), SimpleSortMethod::ViewedUpdated) => soup_channel
.viewed_at
.unwrap_or(soup_channel.channel.channel.updated_at),
- (SoupItem::CallRecord(record), SimpleSortMethod::CreatedAt) => record.started_at,
- (SoupItem::CallRecord(record), _) => record.ended_at.unwrap_or(record.started_at),
+ (SoupItem::Call(record), SimpleSortMethod::CreatedAt) => record.started_at,
+ (SoupItem::Call(record), _) => record.ended_at.unwrap_or(record.started_at),
}
}
}
@@ -128,7 +128,7 @@ impl Identify for SoupItem {
SoupItem::Project(soup_project) => soup_project.id,
SoupItem::EmailThread(thread) => thread.thread.id,
SoupItem::Channel(soup_channel) => soup_channel.channel.channel.id.0,
- SoupItem::CallRecord(record) => record.call_id,
+ SoupItem::Call(record) => record.call_id,
}
}
}
@@ -169,7 +169,7 @@ impl SoupItem {
PropertiesEntityType::Chat,
)),
SoupItem::Channel(_) => None,
- SoupItem::CallRecord(_) => None,
+ SoupItem::Call(_) => None,
}
}
}
diff --git a/rust/cloud-storage/search_service/src/api/search/enrich.rs b/rust/cloud-storage/search_service/src/api/search/enrich.rs
index 6ce608c814..f7b49faaec 100644
--- a/rust/cloud-storage/search_service/src/api/search/enrich.rs
+++ b/rust/cloud-storage/search_service/src/api/search/enrich.rs
@@ -62,7 +62,7 @@ pub async fn enrich_search_response(
let response = enrich_call_records(ctx, user_id, results).await?;
Ok(response
.into_iter()
- .map(UnifiedSearchResponseItem::CallRecord)
+ .map(UnifiedSearchResponseItem::Call)
.collect())
}
}
diff --git a/rust/cloud-storage/soup/src/domain/service.rs b/rust/cloud-storage/soup/src/domain/service.rs
index 656c3c1bd7..b859517aac 100644
--- a/rust/cloud-storage/soup/src/domain/service.rs
+++ b/rust/cloud-storage/soup/src/domain/service.rs
@@ -375,7 +375,7 @@ where
records.into_iter().map(move |record| {
let soup_record = SoupCallRecord::from_record_for_user(record, &user_id);
FrecencySoupItem {
- item: SoupItem::CallRecord(soup_record),
+ item: SoupItem::Call(soup_record),
frecency_score: None,
}
})
diff --git a/rust/cloud-storage/soup/src/inbound/toolset/list_entities.rs b/rust/cloud-storage/soup/src/inbound/toolset/list_entities.rs
index 6fdc5d8e79..85cb2cc8db 100644
--- a/rust/cloud-storage/soup/src/inbound/toolset/list_entities.rs
+++ b/rust/cloud-storage/soup/src/inbound/toolset/list_entities.rs
@@ -48,7 +48,7 @@ pub enum ItemType {
Project,
Email,
Channel,
- CallRecord,
+ Call,
}
#[derive(Debug, Serialize, JsonSchema)]
@@ -65,7 +65,7 @@ pub enum EntityItem {
#[serde(rename_all = "camelCase")]
Channel { id: Uuid, name: Option<String> },
#[serde(rename_all = "camelCase")]
- CallRecord { id: Uuid, created_by: String },
+ Call { id: Uuid, created_by: String },
}
impl EntityItem {
@@ -76,7 +76,7 @@ impl EntityItem {
EntityItem::Project { .. } => ItemType::Project,
EntityItem::Email { .. } => ItemType::Email,
EntityItem::Channel { .. } => ItemType::Channel,
- EntityItem::CallRecord { .. } => ItemType::CallRecord,
+ EntityItem::Call { .. } => ItemType::Call,
}
}
}
@@ -104,7 +104,7 @@ impl From<SoupItem> for EntityItem {
id: channel.channel.channel.id.0,
name: channel.channel.channel.name.clone(),
},
- SoupItem::CallRecord(record) => EntityItem::CallRecord {
+ SoupItem::Call(record) => EntityItem::Call {
id: record.call_id,
created_by: record.created_by,
},
@@ -237,7 +237,7 @@ pub(super) fn build_summary(
EntityItem::Project { .. } => projects += 1,
EntityItem::Email { .. } => emails += 1,
EntityItem::Channel { .. } => channels += 1,
- EntityItem::CallRecord { .. } => call_records += 1,
+ EntityItem::Call { .. } => call_records += 1,
}
}
diff --git a/rust/cloud-storage/soup/src/outbound/pg_soup_repo.rs b/rust/cloud-storage/soup/src/outbound/pg_soup_repo.rs
index e83d0aa79d..a226f4e17d 100644
--- a/rust/cloud-storage/soup/src/outbound/pg_soup_repo.rs
+++ b/rust/cloud-storage/soup/src/outbound/pg_soup_repo.rs
@@ -174,7 +174,7 @@ pub(crate) async fn populate_properties(
SoupItem::Project(x) => properties_map.remove(&x.id.to_string()),
SoupItem::EmailThread(x) => properties_map.remove(&x.thread.id.to_string()),
SoupItem::Chat(x) => properties_map.remove(&x.id.to_string()),
- SoupItem::Channel(_) | SoupItem::CallRecord(_) => None,
+ SoupItem::Channel(_) | SoupItem::Call(_) => None,
};
if let Some(props) = props {
let soup_props: Vec<SoupProperty> = props.into_iter().map(SoupProperty::from).collect();
@@ -183,7 +183,7 @@ pub(crate) async fn populate_properties(
SoupItem::Project(x) => x.properties = soup_props,
SoupItem::EmailThread(x) => x.properties = soup_props,
SoupItem::Chat(x) => x.properties = soup_props,
- SoupItem::Channel(_) | SoupItem::CallRecord(_) => {}
+ SoupItem::Channel(_) | SoupItem::Call(_) => {}
}
}
}
diff --git a/rust/cloud-storage/soup/src/outbound/pg_soup_repo/expanded/tests.rs b/rust/cloud-storage/soup/src/outbound/pg_soup_repo/expanded/tests.rs
index c0b7b0cc89..c3e6f52dc4 100644
--- a/rust/cloud-storage/soup/src/outbound/pg_soup_repo/expanded/tests.rs
+++ b/rust/cloud-storage/soup/src/outbound/pg_soup_repo/expanded/tests.rs
@@ -357,7 +357,7 @@ async fn test_expanded_soup_by_ids(pool: Pool<Postgres>) {
| SoupItem::Project(_)
| SoupItem::EmailThread(_)
| SoupItem::Channel(_)
- | SoupItem::CallRecord(_) => None,
+ | SoupItem::Call(_) => None,
})
.expect("The document should exist");
let expected_doc_id = Uuid::parse_str("11111111-aaaa-aaaa-aaaa-aaaaaaaaaaaa").unwrap(); // doc-in-A