Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
soup: add emailView request body param (#569)
Caleb Taylordb19b8c7aaf7
diff --git a/js/app/packages/app/component/UnifiedListView.tsx b/js/app/packages/app/component/UnifiedListView.tsxindex 257a3b3f73..b48a348296 100644--- a/js/app/packages/app/component/UnifiedListView.tsx+++ b/js/app/packages/app/component/UnifiedListView.tsx@@ -139,6 +139,7 @@ import {type SystemSortOption,VIEWCONFIG_BASE,VIEWCONFIG_DEFAULTS_IDS,+ VIEWCONFIG_DEFAULTS_IDS_ENUM,type ViewConfigBase,type ViewData,} from './ViewConfig';@@ -844,6 +845,12 @@ export function UnifiedListView(props: UnifiedListViewProps) {: [GARBAGE_UUID],},limit: props.defaultDisplayOptions?.limit ?? 100,+ emailView: importantFilter()+ ? 'important'+ : view().id === VIEWCONFIG_DEFAULTS_IDS_ENUM.all+ ? 'all'+ : undefined,+sort_method: sortType(),}));diff --git a/js/app/packages/macro-entity/src/components/UnifiedInfiniteList.tsx b/js/app/packages/macro-entity/src/components/UnifiedInfiniteList.tsxindex 7ba28b6a99..3b7683311d 100644--- a/js/app/packages/macro-entity/src/components/UnifiedInfiniteList.tsx+++ b/js/app/packages/macro-entity/src/components/UnifiedInfiniteList.tsx@@ -508,10 +508,11 @@ export function createUnifiedInfiniteList<T extends EntityData>({>{(entity, index) => {if (- untrack(index) ===+ untrack(index) >=Math.floor(untrack(sortedEntities).length * 0.9)- )+ ) {debouncedFetchMore();+ }return <EntityRenderer entity={entity} index={index()} />;}}</VList>diff --git a/js/app/packages/macro-entity/src/queries/dss.ts b/js/app/packages/macro-entity/src/queries/dss.tsindex 3b6d12c955..073de2db8d 100644--- a/js/app/packages/macro-entity/src/queries/dss.ts+++ b/js/app/packages/macro-entity/src/queries/dss.ts@@ -112,6 +112,7 @@ export function createDssInfiniteQuery(const argParams = _params?.();let limit = 100;let sort_method;+ let emailView;const requestBody = options?.requestBody;if (requestBody) {@@ -122,12 +123,16 @@ export function createDssInfiniteQuery(if (body?.sort_method) {sort_method = body.sort_method;}+ if (body?.emailView) {+ emailView = body.emailView;+ }}return {...argParams,limit,sort_method,+ emailView,};};diff --git a/js/app/packages/service-clients/service-auth/generated/client.ts b/js/app/packages/service-clients/service-auth/generated/client.tsindex 78b5ccc588..9e9b6165a5 100644--- a/js/app/packages/service-clients/service-auth/generated/client.ts+++ b/js/app/packages/service-clients/service-auth/generated/client.ts@@ -15,6 +15,7 @@ import type {GenerateEmailLinkRequest,GenericSuccessResponse,GetLegacyUserPermissionsResponse,+ GetNamesWithEmailRequestBody,GetProfilePicturesRequestBody,GetUserInfo,GetUserLinkExistsParams,@@ -2166,6 +2167,66 @@ export const getUserNames = async (postGetNamesRequestBody: PostGetNamesRequestB+/**+ * @summary Gets names for passed user profile ids, falling back to the requesting user's email contact names+ */+export type getUserNamesWithEmailResponse200 = {+ data: UserNames+ status: 200+}++export type getUserNamesWithEmailResponse400 = {+ data: string+ status: 400+}++export type getUserNamesWithEmailResponse401 = {+ data: string+ status: 401+}++export type getUserNamesWithEmailResponse500 = {+ data: ErrorResponse+ status: 500+}++export type getUserNamesWithEmailResponseSuccess = (getUserNamesWithEmailResponse200) & {+ headers: Headers;+};+export type getUserNamesWithEmailResponseError = (getUserNamesWithEmailResponse400 | getUserNamesWithEmailResponse401 | getUserNamesWithEmailResponse500) & {+ headers: Headers;+};++export type getUserNamesWithEmailResponse = (getUserNamesWithEmailResponseSuccess | getUserNamesWithEmailResponseError)++export const getGetUserNamesWithEmailUrl = () => {+++++ return `/user/get_names_with_email`+}++export const getUserNamesWithEmail = async (getNamesWithEmailRequestBody: GetNamesWithEmailRequestBody, options?: RequestInit): Promise<getUserNamesWithEmailResponse> => {++ const res = await fetch(getGetUserNamesWithEmailUrl(),+ {+ ...options,+ method: 'POST',+ headers: { 'Content-Type': 'application/json', ...options?.headers },+ body: JSON.stringify(+ getNamesWithEmailRequestBody,)+ }+)++ const body = [204, 205, 304].includes(res.status) ? null : await res.text();++ const data: getUserNamesWithEmailResponse['data'] = body ? JSON.parse(body) : {}+ return { data, status: res.status, headers: res.headers } as getUserNamesWithEmailResponse+}+++/*** @summary Updates the user's group.*/diff --git a/js/app/packages/service-clients/service-auth/generated/schemas/aBGroup.ts b/js/app/packages/service-clients/service-auth/generated/schemas/aBGroup.tsnew file mode 100644index 0000000000..c1c32967df--- /dev/null+++ b/js/app/packages/service-clients/service-auth/generated/schemas/aBGroup.ts@@ -0,0 +1,15 @@+/**+ * Generated by orval v7.13.0 🍺+ * Do not edit manually.+ * authentication_service+ * OpenAPI spec version: 0.1.0+ */++export type ABGroup = typeof ABGroup[keyof typeof ABGroup];+++// eslint-disable-next-line @typescript-eslint/no-redeclare+export const ABGroup = {+ A: 'A',+ B: 'B',+} as const;diff --git a/js/app/packages/service-clients/service-auth/generated/schemas/getLegacyUserPermissionsResponse.ts b/js/app/packages/service-clients/service-auth/generated/schemas/getLegacyUserPermissionsResponse.tsindex 9f77fe8563..59e384e486 100644--- a/js/app/packages/service-clients/service-auth/generated/schemas/getLegacyUserPermissionsResponse.ts+++ b/js/app/packages/service-clients/service-auth/generated/schemas/getLegacyUserPermissionsResponse.ts@@ -10,7 +10,6 @@ import type { GetLegacyUserPermissionsResponseName } from './getLegacyUserPermisexport interface GetLegacyUserPermissionsResponse {/** The user's email */email: string;- /** The user's group */group?: GetLegacyUserPermissionsResponseGroup;/** Whether the user has the chrome extension */hasChromeExt: boolean;diff --git a/js/app/packages/service-clients/service-auth/generated/schemas/getLegacyUserPermissionsResponseGroup.ts b/js/app/packages/service-clients/service-auth/generated/schemas/getLegacyUserPermissionsResponseGroup.tsindex 5b155f414e..1228c44987 100644--- a/js/app/packages/service-clients/service-auth/generated/schemas/getLegacyUserPermissionsResponseGroup.ts+++ b/js/app/packages/service-clients/service-auth/generated/schemas/getLegacyUserPermissionsResponseGroup.ts@@ -4,8 +4,6 @@* authentication_service* OpenAPI spec version: 0.1.0*/+import type { ABGroup } from './aBGroup';-/**- * The user's group- */-export type GetLegacyUserPermissionsResponseGroup = string | null;+export type GetLegacyUserPermissionsResponseGroup = null | ABGroup;diff --git a/js/app/packages/service-clients/service-auth/generated/schemas/getNamesWithEmailRequestBody.ts b/js/app/packages/service-clients/service-auth/generated/schemas/getNamesWithEmailRequestBody.tsnew file mode 100644index 0000000000..2da2e3369f--- /dev/null+++ b/js/app/packages/service-clients/service-auth/generated/schemas/getNamesWithEmailRequestBody.ts@@ -0,0 +1,10 @@+/**+ * Generated by orval v7.13.0 🍺+ * Do not edit manually.+ * authentication_service+ * OpenAPI spec version: 0.1.0+ */++export interface GetNamesWithEmailRequestBody {+ user_ids: string[];+}diff --git a/js/app/packages/service-clients/service-auth/generated/schemas/index.ts b/js/app/packages/service-clients/service-auth/generated/schemas/index.tsindex f9171e95da..d5646ad11c 100644--- a/js/app/packages/service-clients/service-auth/generated/schemas/index.ts+++ b/js/app/packages/service-clients/service-auth/generated/schemas/index.ts@@ -5,6 +5,7 @@* OpenAPI spec version: 0.1.0*/+export * from './aBGroup';export * from './appleLoginRequest';export * from './createAccountMergeRequest';export * from './createInProgressLinkResponse';@@ -17,6 +18,7 @@ export * from './genericSuccessResponse';export * from './getLegacyUserPermissionsResponse';export * from './getLegacyUserPermissionsResponseGroup';export * from './getLegacyUserPermissionsResponseName';+export * from './getNamesWithEmailRequestBody';export * from './getProfilePicturesRequestBody';export * from './getUserInfo';export * from './getUserInfoOrganizationId';diff --git a/js/app/packages/service-clients/service-auth/openapi.json b/js/app/packages/service-clients/service-auth/openapi.jsonindex 445ee59a52..99a6b9adbf 100644--- a/js/app/packages/service-clients/service-auth/openapi.json+++ b/js/app/packages/service-clients/service-auth/openapi.json@@ -1572,6 +1572,49 @@}}},+ "/user/get_names_with_email": {+ "post": {+ "tags": ["user::post_get_names_with_email"],+ "summary": "Gets names for passed user profile ids, falling back to the requesting user's email contact names",+ "operationId": "get_user_names_with_email",+ "requestBody": {+ "content": {+ "application/json": {+ "schema": {+ "$ref": "#/components/schemas/GetNamesWithEmailRequestBody"+ }+ }+ },+ "required": true+ },+ "responses": {+ "200": {+ "description": "",+ "content": {+ "application/json": {+ "schema": { "$ref": "#/components/schemas/UserNames" }+ }+ }+ },+ "400": {+ "description": "",+ "content": { "text/plain": { "schema": { "type": "string" } } }+ },+ "401": {+ "description": "",+ "content": { "text/plain": { "schema": { "type": "string" } } }+ },+ "500": {+ "description": "",+ "content": {+ "application/json": {+ "schema": { "$ref": "#/components/schemas/ErrorResponse" }+ }+ }+ }+ }+ }+ },"/user/group": {"patch": {"tags": ["user::patch_user_group"],@@ -2059,6 +2102,7 @@},"components": {"schemas": {+ "ABGroup": { "type": "string", "enum": ["A", "B"] },"AppleLoginRequest": {"type": "object","required": ["id_token", "code"],@@ -2160,8 +2204,13 @@"properties": {"email": { "type": "string", "description": "The user's email" },"group": {- "type": ["string", "null"],- "description": "The user's group"+ "oneOf": [+ { "type": "null" },+ {+ "$ref": "#/components/schemas/ABGroup",+ "description": "The user's group"+ }+ ]},"hasChromeExt": {"type": "boolean",@@ -2191,6 +2240,13 @@"userId": { "type": "string", "description": "The user id" }}},+ "GetNamesWithEmailRequestBody": {+ "type": "object",+ "required": ["user_ids"],+ "properties": {+ "user_ids": { "type": "array", "items": { "type": "string" } }+ }+ },"GetProfilePicturesRequestBody": {"type": "object","required": ["user_id_list"],diff --git a/js/app/packages/service-clients/service-cognition/generated/schemas/chat.ts b/js/app/packages/service-clients/service-cognition/generated/schemas/chat.tsindex 2bd6e31338..0253ec8581 100644--- a/js/app/packages/service-clients/service-cognition/generated/schemas/chat.ts+++ b/js/app/packages/service-clients/service-cognition/generated/schemas/chat.ts@@ -13,7 +13,7 @@ export interface Chat {/** The time the chat was created */createdAt: number;/** The time the chat was deleted */- deletedAt?: ChatDeletedAt;+ deletedAt: ChatDeletedAt;/** The chat uuid */id: string;isPersistent: boolean;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.tsindex 2b2bb881fe..cbbc9f31b3 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@@ -808,3 +808,4 @@ export interface WebSearchOutput {url: string;}[];}+diff --git a/js/app/packages/service-clients/service-cognition/openapi.json b/js/app/packages/service-clients/service-cognition/openapi.jsonindex c51ebdd3ac..bd3c107dfc 100644--- a/js/app/packages/service-clients/service-cognition/openapi.json+++ b/js/app/packages/service-clients/service-cognition/openapi.json@@ -1094,7 +1094,8 @@"userId","createdAt","updatedAt",- "isPersistent"+ "isPersistent",+ "deletedAt"],"properties": {"createdAt": {diff --git a/js/app/packages/service-clients/service-comms/generated/models/attachment.ts b/js/app/packages/service-clients/service-comms/generated/models/attachment.tsindex bc3beb5a51..f61c6a280a 100644--- a/js/app/packages/service-clients/service-comms/generated/models/attachment.ts+++ b/js/app/packages/service-clients/service-comms/generated/models/attachment.ts@@ -4,12 +4,17 @@* comms_service* OpenAPI spec version: 0.1.0*/+import type { AttachmentHeight } from './attachmentHeight';+import type { AttachmentWidth } from './attachmentWidth';export interface Attachment {channel_id: string;created_at: string;entity_id: string;entity_type: string;+ height?: AttachmentHeight;id: string;message_id: string;+ /** dimensions of image/video */+ width?: AttachmentWidth;}diff --git a/js/app/packages/service-clients/service-comms/generated/models/attachmentHeight.ts b/js/app/packages/service-clients/service-comms/generated/models/attachmentHeight.tsnew file mode 100644index 0000000000..0d3efa26d4--- /dev/null+++ b/js/app/packages/service-clients/service-comms/generated/models/attachmentHeight.ts@@ -0,0 +1,8 @@+/**+ * Generated by orval v7.13.0 🍺+ * Do not edit manually.+ * comms_service+ * OpenAPI spec version: 0.1.0+ */++export type AttachmentHeight = number | null;diff --git a/js/app/packages/service-clients/service-comms/generated/models/attachmentWidth.ts b/js/app/packages/service-clients/service-comms/generated/models/attachmentWidth.tsnew file mode 100644index 0000000000..79a95d7ed4--- /dev/null+++ b/js/app/packages/service-clients/service-comms/generated/models/attachmentWidth.ts@@ -0,0 +1,11 @@+/**+ * Generated by orval v7.13.0 🍺+ * Do not edit manually.+ * comms_service+ * OpenAPI spec version: 0.1.0+ */++/**+ * dimensions of image/video+ */+export type AttachmentWidth = number | null;diff --git a/js/app/packages/service-clients/service-comms/generated/models/index.ts b/js/app/packages/service-clients/service-comms/generated/models/index.tsindex 6dea52e3ec..321f3d8c4f 100644--- a/js/app/packages/service-clients/service-comms/generated/models/index.ts+++ b/js/app/packages/service-clients/service-comms/generated/models/index.ts@@ -11,6 +11,8 @@ export * from './activityType';export * from './activityViewedAt';export * from './addParticipantsRequest';export * from './attachment';+export * from './attachmentHeight';+export * from './attachmentWidth';export * from './channel';export * from './channelMessage';export * from './channelMessageDeletedAt';@@ -89,6 +91,8 @@ export * from './messageEditedAt';export * from './messageMention';export * from './messageThreadId';export * from './newAttachment';+export * from './newAttachmentHeight';+export * from './newAttachmentWidth';export * from './participantAccess';export * from './participantAccessOneOf';export * from './participantAccessOneOfAccess';diff --git a/js/app/packages/service-clients/service-comms/generated/models/newAttachment.ts b/js/app/packages/service-clients/service-comms/generated/models/newAttachment.tsindex 94b9f6b45d..b5b0eb8fec 100644--- a/js/app/packages/service-clients/service-comms/generated/models/newAttachment.ts+++ b/js/app/packages/service-clients/service-comms/generated/models/newAttachment.ts@@ -4,8 +4,13 @@* comms_service* OpenAPI spec version: 0.1.0*/+import type { NewAttachmentHeight } from './newAttachmentHeight';+import type { NewAttachmentWidth } from './newAttachmentWidth';export interface NewAttachment {entity_id: string;entity_type: string;+ /** dimensions of image/video */+ height?: NewAttachmentHeight;+ width?: NewAttachmentWidth;}diff --git a/js/app/packages/service-clients/service-comms/generated/models/newAttachmentHeight.ts b/js/app/packages/service-clients/service-comms/generated/models/newAttachmentHeight.tsnew file mode 100644index 0000000000..e3ab8bf2de--- /dev/null+++ b/js/app/packages/service-clients/service-comms/generated/models/newAttachmentHeight.ts@@ -0,0 +1,11 @@+/**+ * Generated by orval v7.13.0 🍺+ * Do not edit manually.+ * comms_service+ * OpenAPI spec version: 0.1.0+ */++/**+ * dimensions of image/video+ */+export type NewAttachmentHeight = number | null;diff --git a/js/app/packages/service-clients/service-comms/generated/models/newAttachmentWidth.ts b/js/app/packages/service-clients/service-comms/generated/models/newAttachmentWidth.tsnew file mode 100644index 0000000000..982cc1f4a8--- /dev/null+++ b/js/app/packages/service-clients/service-comms/generated/models/newAttachmentWidth.ts@@ -0,0 +1,8 @@+/**+ * Generated by orval v7.13.0 🍺+ * Do not edit manually.+ * comms_service+ * OpenAPI spec version: 0.1.0+ */++export type NewAttachmentWidth = number | null;diff --git a/js/app/packages/service-clients/service-comms/openapi.json b/js/app/packages/service-clients/service-comms/openapi.jsonindex 681debdab7..698b597c5b 100644--- a/js/app/packages/service-clients/service-comms/openapi.json+++ b/js/app/packages/service-clients/service-comms/openapi.json@@ -997,8 +997,14 @@"created_at": { "type": "string", "format": "date-time" },"entity_id": { "type": "string" },"entity_type": { "type": "string" },+ "height": { "type": ["integer", "null"], "format": "int32" },"id": { "type": "string", "format": "uuid" },- "message_id": { "type": "string", "format": "uuid" }+ "message_id": { "type": "string", "format": "uuid" },+ "width": {+ "type": ["integer", "null"],+ "format": "int32",+ "description": "dimensions of image/video"+ }}},"Channel": {@@ -1634,7 +1640,13 @@"required": ["entity_type", "entity_id"],"properties": {"entity_id": { "type": "string" },- "entity_type": { "type": "string" }+ "entity_type": { "type": "string" },+ "height": {+ "type": ["integer", "null"],+ "format": "int32",+ "description": "dimensions of image/video"+ },+ "width": { "type": ["integer", "null"], "format": "int32" }}},"ParticipantAccess": {diff --git a/js/app/packages/service-clients/service-connection/generated/schemas/entityType.ts b/js/app/packages/service-clients/service-connection/generated/schemas/entityType.tsindex ef91c08920..231ff97941 100644--- a/js/app/packages/service-clients/service-connection/generated/schemas/entityType.ts+++ b/js/app/packages/service-clients/service-connection/generated/schemas/entityType.ts@@ -19,5 +19,6 @@ export const EntityType = {document: 'document',project: 'project',email: 'email',+ email_thread: 'email_thread',team: 'team',} as const;diff --git a/js/app/packages/service-clients/service-connection/openapi.json b/js/app/packages/service-clients/service-connection/openapi.jsonindex f608c1b020..cdfe6465e3 100644--- a/js/app/packages/service-clients/service-connection/openapi.json+++ b/js/app/packages/service-clients/service-connection/openapi.json@@ -172,6 +172,7 @@"document","project","email",+ "email_thread","team"]},diff --git a/js/app/packages/service-clients/service-email/generated/schemas/attachment.ts b/js/app/packages/service-clients/service-email/generated/schemas/attachment.tsindex e59faca742..1671cb0612 100644--- a/js/app/packages/service-clients/service-email/generated/schemas/attachment.ts+++ b/js/app/packages/service-clients/service-email/generated/schemas/attachment.ts@@ -10,6 +10,7 @@ import type { AttachmentDbId } from './attachmentDbId';import type { AttachmentFilename } from './attachmentFilename';import type { AttachmentMimeType } from './attachmentMimeType';import type { AttachmentProviderId } from './attachmentProviderId';+import type { AttachmentSfsId } from './attachmentSfsId';import type { AttachmentSizeBytes } from './attachmentSizeBytes';/**@@ -22,5 +23,6 @@ export interface Attachment {filename?: AttachmentFilename;mime_type?: AttachmentMimeType;provider_id?: AttachmentProviderId;+ sfs_id?: AttachmentSfsId;size_bytes?: AttachmentSizeBytes;}diff --git a/js/app/packages/service-clients/service-email/generated/schemas/attachmentSfsId.ts b/js/app/packages/service-clients/service-email/generated/schemas/attachmentSfsId.tsnew file mode 100644index 0000000000..c1b891130d--- /dev/null+++ b/js/app/packages/service-clients/service-email/generated/schemas/attachmentSfsId.ts@@ -0,0 +1,8 @@+/**+ * Generated by orval v7.13.0 🍺+ * Do not edit manually.+ * email_service+ * OpenAPI spec version: 0.1.0+ */++export type AttachmentSfsId = string | null;diff --git a/js/app/packages/service-clients/service-email/generated/schemas/index.ts b/js/app/packages/service-clients/service-email/generated/schemas/index.tsindex 8ec6fc6fd1..32eaab0dac 100644--- a/js/app/packages/service-clients/service-email/generated/schemas/index.ts+++ b/js/app/packages/service-clients/service-email/generated/schemas/index.ts@@ -53,6 +53,7 @@ export * from './attachmentMacroDbId';export * from './attachmentMacroMessageId';export * from './attachmentMimeType';export * from './attachmentProviderId';+export * from './attachmentSfsId';export * from './attachmentSizeBytes';export * from './backfillJob';export * from './backfillJobLinkId';diff --git a/js/app/packages/service-clients/service-email/openapi.json b/js/app/packages/service-clients/service-email/openapi.jsonindex 0eb20b0533..670134f598 100644--- a/js/app/packages/service-clients/service-email/openapi.json+++ b/js/app/packages/service-clients/service-email/openapi.json@@ -1610,6 +1610,7 @@"filename": { "type": ["string", "null"] },"mime_type": { "type": ["string", "null"] },"provider_id": { "type": ["string", "null"] },+ "sfs_id": { "type": ["string", "null"], "format": "uuid" },"size_bytes": { "type": ["integer", "null"], "format": "int64" }}},diff --git a/js/app/packages/service-clients/service-notification/generated/client.ts b/js/app/packages/service-clients/service-notification/generated/client.tsindex 3b03185c69..8f15d599d2 100644--- a/js/app/packages/service-clients/service-notification/generated/client.ts+++ b/js/app/packages/service-clients/service-notification/generated/client.ts@@ -745,6 +745,49 @@ export const bulkMarkUserNotificationSeen = async (notificationBulkRequest: Noti+/**+ * @summary Marks the user's notifications as undone.+ */+export type bulkMarkUserNotificationUndoneResponse200 = {+ data: EmptyResponse+ status: 200+}++export type bulkMarkUserNotificationUndoneResponseSuccess = (bulkMarkUserNotificationUndoneResponse200) & {+ headers: Headers;+};+;++export type bulkMarkUserNotificationUndoneResponse = (bulkMarkUserNotificationUndoneResponseSuccess)++export const getBulkMarkUserNotificationUndoneUrl = () => {+++++ return `/user_notifications/bulk/undone`+}++export const bulkMarkUserNotificationUndone = async (notificationBulkRequest: NotificationBulkRequest, options?: RequestInit): Promise<bulkMarkUserNotificationUndoneResponse> => {++ const res = await fetch(getBulkMarkUserNotificationUndoneUrl(),+ {+ ...options,+ method: 'PATCH',+ headers: { 'Content-Type': 'application/json', ...options?.headers },+ body: JSON.stringify(+ notificationBulkRequest,)+ }+)++ const body = [204, 205, 304].includes(res.status) ? null : await res.text();++ const data: bulkMarkUserNotificationUndoneResponse['data'] = body ? JSON.parse(body) : {}+ return { data, status: res.status, headers: res.headers } as bulkMarkUserNotificationUndoneResponse+}+++/*** @summary Gets the user's notifications for a provided event item ids in a paginated format.This will only return unseen notifications.diff --git a/js/app/packages/service-clients/service-notification/generated/schemas/entityType.ts b/js/app/packages/service-clients/service-notification/generated/schemas/entityType.tsindex 0f8cf8e3ed..32873e70cb 100644--- a/js/app/packages/service-clients/service-notification/generated/schemas/entityType.ts+++ b/js/app/packages/service-clients/service-notification/generated/schemas/entityType.ts@@ -19,5 +19,6 @@ export const EntityType = {document: 'document',project: 'project',email: 'email',+ email_thread: 'email_thread',team: 'team',} as const;diff --git a/js/app/packages/service-clients/service-notification/openapi.json b/js/app/packages/service-clients/service-notification/openapi.jsonindex 6fd395da64..2b84aece96 100644--- a/js/app/packages/service-clients/service-notification/openapi.json+++ b/js/app/packages/service-clients/service-notification/openapi.json@@ -485,6 +485,33 @@}}},+ "/user_notifications/bulk/undone": {+ "patch": {+ "tags": ["user_notification::bulk_mark_user_notification_undone"],+ "summary": "Marks the user's notifications as undone.",+ "operationId": "bulk_mark_user_notification_undone",+ "requestBody": {+ "content": {+ "application/json": {+ "schema": {+ "$ref": "#/components/schemas/NotificationBulkRequest"+ }+ }+ },+ "required": true+ },+ "responses": {+ "200": {+ "description": "",+ "content": {+ "application/json": {+ "schema": { "$ref": "#/components/schemas/EmptyResponse" }+ }+ }+ }+ }+ }+ },"/user_notifications/item/bulk": {"post": {"tags": [@@ -889,6 +916,7 @@"document","project","email",+ "email_thread","team"]},@@ -1030,7 +1058,7 @@"properties": {"notificationIds": {"type": "array",- "items": { "type": "string" },+ "items": { "type": "string", "format": "uuid" },"description": "The ids of the notifications to handle"}}