mattermost-mobile-upstream/types/api
Guillermo Vayá 354e956f43 feat(drafts): Phase 1 synchronized-drafts storage foundation
Adds the durable storage foundation for synchronized drafts (mobile-only,
no network behavior yet):

- Fix draft batch dedup in handleDraft to key by the composite
  (channel_id, root_id) instead of channel_id alone, so a channel draft
  and its thread reply drafts in the same batch no longer collapse.
- Add Draft columns: server_update_at (nullable ancestry hint, not a
  revision), props (JSON), file_ids (JSON portable server attachment IDs).
- Add the DraftOutbox table (one durable pending op per draft key) with
  operation/status const objects, generation, keep_local, retry fields,
  and a deleted_fingerprint column for delete-vs-newer-write disambiguation.
- Add buildDraftOutboxId, the serialized mutateDraftAndOutbox writer
  primitive (enters database.write before querying both tables, commits one
  batch), and deterministic repairDuplicateDrafts.
- Bump server schema 20 -> 21 with addColumns + createTable migration;
  register schema/model in the database managers, mocks, types, and docs.

Tests: composite-key survival, concurrent-mutation serialization, batch
failure atomicity, duplicate repair winner, model round-trip / migration
compatibility, and migration definition.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-23 16:18:48 +02:00
..
apps.d.ts Add date/datetime field support with timezone features for Apps Forms (#9521) 2026-07-16 08:09:47 -06:00
bots.d.ts MM-35115 [Gekidou] Login flow - Email and Password (#5402) 2021-06-18 00:57:40 -04:00
category.d.ts [Gekidou] Sidebar Categories (Database only) (#5909) 2022-01-31 10:30:10 -03:00
channels.d.ts Add BoardView, PropertyField, PropertyValue WatermelonDB tables (#9708) 2026-06-01 12:46:40 +02:00
client.d.ts [MM-68315] Add autorecovery for database corruptions (#9900) 2026-07-13 18:02:35 +02:00
commands.d.ts [Gekidou] Post input (#5844) 2022-02-03 08:59:15 -03:00
config.d.ts MM-68208 Implementing global and channel-level banners on mobile (#9752) 2026-07-08 12:47:01 +03:00
custom_profile_attributes.d.ts [MM-64358] don't save unneeded custom profile attributes (#8971) 2025-07-02 17:49:55 +02:00
drafts.d.ts feat(drafts): Phase 1 synchronized-drafts storage foundation 2026-07-23 16:18:48 +02:00
emojis.d.ts [Gekidou] Typings & PostMetadata structure (#5542) 2021-07-15 11:49:02 -04:00
error.d.ts MM-35115 [Gekidou] Login flow - Email and Password (#5402) 2021-06-18 00:57:40 -04:00
files.d.ts feat: support fillewillbedownloaded and sendtoastmessage pluginapi (#9416) 2026-02-16 17:10:25 +01:00
groups.d.ts [Gekidou] Saves groups + group-channel for constrained channels (#6358) 2022-08-01 08:02:15 +10:00
integrations.d.ts Add date/datetime field support with timezone features for Apps Forms (#9521) 2026-07-16 08:09:47 -06:00
license.d.ts MM-68200 About modal updates to show correct SKU and align with web (#9662) 2026-04-16 09:10:41 -04:00
mm_blocks.d.ts Mattermost Blocks (#9764) 2026-06-29 18:42:16 +02:00
plugins.d.ts MM-43300: Calls v2 first cut (#6475) 2022-07-22 15:57:12 -04:00
posts.d.ts [MM-66230] Add AI-generated sparkle indicator to post headers (#9835) 2026-07-14 19:31:02 +00:00
preferences.d.ts Replace lottie loading spinner for activity indicator (#6266) 2022-05-12 12:54:43 -04:00
properties.d.ts MM-68208 Implementing global and channel-level banners on mobile (#9752) 2026-07-08 12:47:01 +03:00
reactions.d.ts [Gekidou] Typings & PostMetadata structure (#5542) 2021-07-15 11:49:02 -04:00
roles.d.ts [Gekidou] Typings & PostMetadata structure (#5542) 2021-07-15 11:49:02 -04:00
scheduled_post.d.ts Feature schedule posts (#8509) 2025-04-14 22:08:59 +05:30
search.d.ts match desktop search and highlight results (#7445) 2023-07-18 12:17:19 -04:00
session.d.ts Refactor errors around the app (#7306) 2023-05-03 13:08:55 +02:00
slash_command.d.ts [Gekidou] Typings & PostMetadata structure (#5542) 2021-07-15 11:49:02 -04:00
teams.d.ts Add guest invites (#9288) 2025-12-11 17:21:18 +01:00
terms_of_service.d.ts Add terms of service (#6777) 2022-11-24 19:58:56 +01:00
threads.d.ts Ensure no unresolved types in the definition files (#6521) 2022-08-05 14:36:19 +02:00
users.d.ts Update the value for login type (#9329) 2025-12-12 16:26:22 +01:00
websocket.d.ts [MM-67563] Change websocket format for translation update events (#9515) 2026-02-18 16:16:13 +01:00