@remit/api-http-client 0.0.78 → 0.0.80
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@tanstack/react-query.gen.d.ts +1363 -0
- package/{@tanstack/react-query.gen.ts → dist/@tanstack/react-query.gen.js} +298 -300
- package/dist/client/client.gen.d.ts +2 -0
- package/dist/client/client.gen.js +216 -0
- package/{client/index.ts → dist/client/index.d.ts} +2 -19
- package/dist/client/index.js +6 -0
- package/dist/client/types.gen.d.ts +120 -0
- package/dist/client/types.gen.js +2 -0
- package/dist/client/utils.gen.d.ts +37 -0
- package/dist/client/utils.gen.js +228 -0
- package/{client.gen.ts → dist/client.gen.d.ts} +2 -6
- package/dist/client.gen.js +3 -0
- package/dist/core/auth.gen.d.ts +25 -0
- package/dist/core/auth.gen.js +14 -0
- package/dist/core/bodySerializer.gen.d.ts +25 -0
- package/dist/core/bodySerializer.gen.js +57 -0
- package/dist/core/params.gen.d.ts +43 -0
- package/dist/core/params.gen.js +109 -0
- package/dist/core/pathSerializer.gen.d.ts +33 -0
- package/dist/core/pathSerializer.gen.js +106 -0
- package/dist/core/queryKeySerializer.gen.d.ts +18 -0
- package/dist/core/queryKeySerializer.gen.js +92 -0
- package/dist/core/serverSentEvents.gen.d.ts +71 -0
- package/dist/core/serverSentEvents.gen.js +132 -0
- package/dist/core/types.gen.d.ts +83 -0
- package/dist/core/types.gen.js +2 -0
- package/dist/core/utils.gen.d.ts +19 -0
- package/dist/core/utils.gen.js +87 -0
- package/{index.ts → dist/index.d.ts} +2 -4
- package/dist/index.js +2 -0
- package/dist/sdk.gen.d.ts +444 -0
- package/dist/sdk.gen.js +935 -0
- package/{types.gen.ts → dist/types.gen.d.ts} +602 -634
- package/dist/types.gen.js +2 -0
- package/package.json +19 -3
- package/client/client.gen.ts +0 -277
- package/client/types.gen.ts +0 -218
- package/client/utils.gen.ts +0 -316
- package/core/auth.gen.ts +0 -48
- package/core/bodySerializer.gen.ts +0 -82
- package/core/params.gen.ts +0 -178
- package/core/pathSerializer.gen.ts +0 -171
- package/core/queryKeySerializer.gen.ts +0 -117
- package/core/serverSentEvents.gen.ts +0 -242
- package/core/types.gen.ts +0 -110
- package/core/utils.gen.ts +0 -140
- package/sdk.gen.ts +0 -959
|
@@ -1,16 +1,12 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
-
|
|
3
|
-
import { type DefaultError, queryOptions, type UseMutationOptions } from '@tanstack/react-query';
|
|
4
|
-
|
|
2
|
+
import { queryOptions } from '@tanstack/react-query';
|
|
5
3
|
import { client } from '../client.gen.js';
|
|
6
|
-
import { accountDetailOperationsDeleteAccount, accountDetailOperationsUpdateAccount, accountOperationsCreateAccount, accountOperationsTestConnection, addressDetailOperationsUpdateAddress, addressOperationsSearchAddresses, calendarDetailOperationsDeleteCalendar, calendarDetailOperationsGetCalendar, calendarDetailOperationsGetCalendarFeed, calendarDetailOperationsPutCalendarFeed, calendarDetailOperationsRevokeCalendarFeed, calendarDetailOperationsUpdateCalendar, calendarEventDetailOperationsDeleteCalendarEvent, calendarEventDetailOperationsGetCalendarEvent, calendarEventDetailOperationsUpdateCalendarEvent, calendarEventOperationsCreateCalendarEvent, calendarEventOperationsListCalendarEvents, calendarFeedOperationsGetCalendarFeedIcal, calendarFreeBusyOperationsListCalendarFreeBusy, calendarOperationsCreateCalendar, calendarOperationsListCalendars, calendarSuggestionActionOperationsAcceptCalendarSuggestion, calendarSuggestionActionOperationsDeclineCalendarSuggestion, calendarSuggestionActionOperationsDismissCalendarSuggestion, calendarSuggestionActionOperationsReopenCalendarSuggestion, calendarSuggestionOperationsListCalendarSuggestions, configOperationsExportConfig, configOperationsGetConfig, configOperationsImportConfig, filterDetailOperationsDeleteFilter, filterDetailOperationsGetFilter, filterDetailOperationsUpdateFilter, filterOperationsCreateFilter, filterOperationsListFilters, folderRoleOperationsAppointFolderRole, labelDetailOperationsDeleteLabel, labelDetailOperationsGetLabel, labelDetailOperationsUpdateLabel, labelOperationsCreateLabel, labelOperationsListLabels, mailboxDetailOperationsDeleteMailbox, mailboxDetailOperationsGetMailbox, mailboxDetailOperationsRenameMailbox, mailboxOperationsCreateMailbox, mailboxOperationsListMailboxes, meOperationsCreateExport, meOperationsDeleteMe, meOperationsGetExport, meOperationsListQuarantine, meOperationsListVipSuggestions, messageBulkOperationsCopyMessages, messageBulkOperationsDeleteMessages, messageBulkOperationsMoveMessages, messageBulkOperationsNotSpam, messageBulkOperationsReportSpam, messageBulkOperationsUpdateFlags, messageBulkOperationsUpdateMessageLabels, messageCalendarSuggestionOperationsListMessageCalendarSuggestions, messageOperationsDescribeMessage, messageOperationsGetRawMessage, messageOperationsUpdateMessageFlags, microsoftOAuthOperationsMicrosoftOAuthCallback, microsoftOAuthOperationsMicrosoftOAuthStart,
|
|
7
|
-
import type { AccountDetailOperationsDeleteAccountData, AccountDetailOperationsDeleteAccountError, AccountDetailOperationsDeleteAccountResponse, AccountDetailOperationsUpdateAccountData, AccountDetailOperationsUpdateAccountError, AccountDetailOperationsUpdateAccountResponse, AccountOperationsCreateAccountData, AccountOperationsCreateAccountError, AccountOperationsCreateAccountResponse, AccountOperationsTestConnectionData, AccountOperationsTestConnectionError, AccountOperationsTestConnectionResponse, AddressDetailOperationsUpdateAddressData, AddressDetailOperationsUpdateAddressError, AddressDetailOperationsUpdateAddressResponse, AddressOperationsSearchAddressesData, AddressOperationsSearchAddressesError, AddressOperationsSearchAddressesResponse, CalendarDetailOperationsDeleteCalendarData, CalendarDetailOperationsDeleteCalendarError, CalendarDetailOperationsDeleteCalendarResponse, CalendarDetailOperationsGetCalendarData, CalendarDetailOperationsGetCalendarError, CalendarDetailOperationsGetCalendarFeedData, CalendarDetailOperationsGetCalendarFeedError, CalendarDetailOperationsGetCalendarFeedResponse, CalendarDetailOperationsGetCalendarResponse, CalendarDetailOperationsPutCalendarFeedData, CalendarDetailOperationsPutCalendarFeedError, CalendarDetailOperationsPutCalendarFeedResponse, CalendarDetailOperationsRevokeCalendarFeedData, CalendarDetailOperationsRevokeCalendarFeedError, CalendarDetailOperationsRevokeCalendarFeedResponse, CalendarDetailOperationsUpdateCalendarData, CalendarDetailOperationsUpdateCalendarError, CalendarDetailOperationsUpdateCalendarResponse, CalendarEventDetailOperationsDeleteCalendarEventData, CalendarEventDetailOperationsDeleteCalendarEventError, CalendarEventDetailOperationsDeleteCalendarEventResponse, CalendarEventDetailOperationsGetCalendarEventData, CalendarEventDetailOperationsGetCalendarEventError, CalendarEventDetailOperationsGetCalendarEventResponse, CalendarEventDetailOperationsUpdateCalendarEventData, CalendarEventDetailOperationsUpdateCalendarEventError, CalendarEventDetailOperationsUpdateCalendarEventResponse, CalendarEventOperationsCreateCalendarEventData, CalendarEventOperationsCreateCalendarEventError, CalendarEventOperationsCreateCalendarEventResponse, CalendarEventOperationsListCalendarEventsData, CalendarEventOperationsListCalendarEventsError, CalendarEventOperationsListCalendarEventsResponse, CalendarFeedOperationsGetCalendarFeedIcalData, CalendarFeedOperationsGetCalendarFeedIcalError, CalendarFeedOperationsGetCalendarFeedIcalResponse, CalendarFreeBusyOperationsListCalendarFreeBusyData, CalendarFreeBusyOperationsListCalendarFreeBusyError, CalendarFreeBusyOperationsListCalendarFreeBusyResponse, CalendarOperationsCreateCalendarData, CalendarOperationsCreateCalendarError, CalendarOperationsCreateCalendarResponse, CalendarOperationsListCalendarsData, CalendarOperationsListCalendarsError, CalendarOperationsListCalendarsResponse, CalendarSuggestionActionOperationsAcceptCalendarSuggestionData, CalendarSuggestionActionOperationsAcceptCalendarSuggestionError, CalendarSuggestionActionOperationsAcceptCalendarSuggestionResponse, CalendarSuggestionActionOperationsDeclineCalendarSuggestionData, CalendarSuggestionActionOperationsDeclineCalendarSuggestionError, CalendarSuggestionActionOperationsDeclineCalendarSuggestionResponse, CalendarSuggestionActionOperationsDismissCalendarSuggestionData, CalendarSuggestionActionOperationsDismissCalendarSuggestionError, CalendarSuggestionActionOperationsDismissCalendarSuggestionResponse, CalendarSuggestionActionOperationsReopenCalendarSuggestionData, CalendarSuggestionActionOperationsReopenCalendarSuggestionError, CalendarSuggestionActionOperationsReopenCalendarSuggestionResponse, CalendarSuggestionOperationsListCalendarSuggestionsData, CalendarSuggestionOperationsListCalendarSuggestionsError, CalendarSuggestionOperationsListCalendarSuggestionsResponse, ConfigOperationsExportConfigData, ConfigOperationsExportConfigError, ConfigOperationsExportConfigResponse, ConfigOperationsGetConfigData, ConfigOperationsGetConfigError, ConfigOperationsGetConfigResponse, ConfigOperationsImportConfigData, ConfigOperationsImportConfigError, ConfigOperationsImportConfigResponse, FilterDetailOperationsDeleteFilterData, FilterDetailOperationsDeleteFilterError, FilterDetailOperationsDeleteFilterResponse, FilterDetailOperationsGetFilterData, FilterDetailOperationsGetFilterError, FilterDetailOperationsGetFilterResponse, FilterDetailOperationsUpdateFilterData, FilterDetailOperationsUpdateFilterError, FilterDetailOperationsUpdateFilterResponse, FilterOperationsCreateFilterData, FilterOperationsCreateFilterError, FilterOperationsCreateFilterResponse, FilterOperationsListFiltersData, FilterOperationsListFiltersError, FilterOperationsListFiltersResponse, FolderRoleOperationsAppointFolderRoleData, FolderRoleOperationsAppointFolderRoleError, FolderRoleOperationsAppointFolderRoleResponse, LabelDetailOperationsDeleteLabelData, LabelDetailOperationsDeleteLabelError, LabelDetailOperationsDeleteLabelResponse, LabelDetailOperationsGetLabelData, LabelDetailOperationsGetLabelError, LabelDetailOperationsGetLabelResponse, LabelDetailOperationsUpdateLabelData, LabelDetailOperationsUpdateLabelError, LabelDetailOperationsUpdateLabelResponse, LabelOperationsCreateLabelData, LabelOperationsCreateLabelError, LabelOperationsCreateLabelResponse, LabelOperationsListLabelsData, LabelOperationsListLabelsError, LabelOperationsListLabelsResponse, MailboxDetailOperationsDeleteMailboxData, MailboxDetailOperationsDeleteMailboxError, MailboxDetailOperationsDeleteMailboxResponse, MailboxDetailOperationsGetMailboxData, MailboxDetailOperationsGetMailboxError, MailboxDetailOperationsGetMailboxResponse, MailboxDetailOperationsRenameMailboxData, MailboxDetailOperationsRenameMailboxError, MailboxDetailOperationsRenameMailboxResponse, MailboxOperationsCreateMailboxData, MailboxOperationsCreateMailboxError, MailboxOperationsCreateMailboxResponse, MailboxOperationsListMailboxesData, MailboxOperationsListMailboxesError, MailboxOperationsListMailboxesResponse, MeOperationsCreateExportData, MeOperationsCreateExportError, MeOperationsCreateExportResponse, MeOperationsDeleteMeData, MeOperationsDeleteMeError, MeOperationsDeleteMeResponse, MeOperationsGetExportData, MeOperationsGetExportError, MeOperationsGetExportResponse, MeOperationsListQuarantineData, MeOperationsListQuarantineError, MeOperationsListQuarantineResponse, MeOperationsListVipSuggestionsData, MeOperationsListVipSuggestionsError, MeOperationsListVipSuggestionsResponse, MessageBulkOperationsCopyMessagesData, MessageBulkOperationsCopyMessagesError, MessageBulkOperationsCopyMessagesResponse, MessageBulkOperationsDeleteMessagesData, MessageBulkOperationsDeleteMessagesError, MessageBulkOperationsDeleteMessagesResponse, MessageBulkOperationsMoveMessagesData, MessageBulkOperationsMoveMessagesError, MessageBulkOperationsMoveMessagesResponse, MessageBulkOperationsNotSpamData, MessageBulkOperationsNotSpamError, MessageBulkOperationsNotSpamResponse, MessageBulkOperationsReportSpamData, MessageBulkOperationsReportSpamError, MessageBulkOperationsReportSpamResponse, MessageBulkOperationsUpdateFlagsData, MessageBulkOperationsUpdateFlagsError, MessageBulkOperationsUpdateFlagsResponse, MessageBulkOperationsUpdateMessageLabelsData, MessageBulkOperationsUpdateMessageLabelsError, MessageBulkOperationsUpdateMessageLabelsResponse, MessageCalendarSuggestionOperationsListMessageCalendarSuggestionsData, MessageCalendarSuggestionOperationsListMessageCalendarSuggestionsError, MessageCalendarSuggestionOperationsListMessageCalendarSuggestionsResponse, MessageOperationsDescribeMessageData, MessageOperationsDescribeMessageError, MessageOperationsDescribeMessageResponse, MessageOperationsGetRawMessageData, MessageOperationsGetRawMessageError, MessageOperationsGetRawMessageResponse, MessageOperationsUpdateMessageFlagsData, MessageOperationsUpdateMessageFlagsError, MessageOperationsUpdateMessageFlagsResponse, MicrosoftOAuthOperationsMicrosoftOAuthCallbackData, MicrosoftOAuthOperationsMicrosoftOAuthStartData, MicrosoftOAuthOperationsMicrosoftOAuthStartError, MicrosoftOAuthOperationsMicrosoftOAuthStartResponse, OrganizeJobDetailOperationsGetOrganizeJobData, OrganizeJobDetailOperationsGetOrganizeJobError, OrganizeJobDetailOperationsGetOrganizeJobResponse, OrganizeOperationsCreateOrganizeJobData, OrganizeOperationsCreateOrganizeJobError, OrganizeOperationsCreateOrganizeJobResponse, OrganizeOperationsPreviewOrganizeData, OrganizeOperationsPreviewOrganizeError, OrganizeOperationsPreviewOrganizeResponse, OutboxAttachmentOperationsCompleteOutboxAttachmentData, OutboxAttachmentOperationsCompleteOutboxAttachmentError, OutboxAttachmentOperationsCompleteOutboxAttachmentResponse, OutboxDetailOperationsDeleteOutboxMessageData, OutboxDetailOperationsDeleteOutboxMessageError, OutboxDetailOperationsDeleteOutboxMessageResponse, OutboxDetailOperationsGetOutboxMessageData, OutboxDetailOperationsGetOutboxMessageError, OutboxDetailOperationsGetOutboxMessageResponse, OutboxDetailOperationsMintOutboxAttachmentData, OutboxDetailOperationsMintOutboxAttachmentError, OutboxDetailOperationsMintOutboxAttachmentResponse, OutboxDetailOperationsSendOutboxMessageData, OutboxDetailOperationsSendOutboxMessageError, OutboxDetailOperationsSendOutboxMessageResponse, OutboxDetailOperationsUpdateOutboxMessageData, OutboxDetailOperationsUpdateOutboxMessageError, OutboxDetailOperationsUpdateOutboxMessageResponse, OutboxOperationsCreateOutboxMessageData, OutboxOperationsCreateOutboxMessageError, OutboxOperationsCreateOutboxMessageResponse, OutboxOperationsListOutboxMessagesData, OutboxOperationsListOutboxMessagesError, OutboxOperationsListOutboxMessagesResponse, SyncOperationsGetSyncStatusData, SyncOperationsGetSyncStatusError, SyncOperationsGetSyncStatusResponse, SyncOperationsTriggerSyncData, SyncOperationsTriggerSyncError, SyncOperationsTriggerSyncResponse, SystemOperationsApplySystemUpdateData, SystemOperationsApplySystemUpdateError, SystemOperationsApplySystemUpdateResponse, SystemOperationsGetSystemUpdateData, SystemOperationsGetSystemUpdateError, SystemOperationsGetSystemUpdateResponse, ThreadDetailOperationsListThreadMessagesData, ThreadDetailOperationsListThreadMessagesError, ThreadDetailOperationsListThreadMessagesResponse, ThreadOperationsListThreadsData, ThreadOperationsListThreadsError, ThreadOperationsListThreadsResponse, ThreadOperationsSearchThreadsData, ThreadOperationsSearchThreadsError, ThreadOperationsSearchThreadsResponse, TrashOperationsEmptyTrashData, TrashOperationsEmptyTrashError, TrashOperationsEmptyTrashResponse, UnifiedThreadOperationsListAllThreadsData, UnifiedThreadOperationsListAllThreadsError, UnifiedThreadOperationsListAllThreadsResponse } from '../types.gen.js';
|
|
8
|
-
|
|
4
|
+
import { accountDetailOperationsDeleteAccount, accountDetailOperationsUpdateAccount, accountOperationsCreateAccount, accountOperationsTestConnection, addressDetailOperationsUpdateAddress, addressOperationsSearchAddresses, calendarDetailOperationsDeleteCalendar, calendarDetailOperationsGetCalendar, calendarDetailOperationsGetCalendarFeed, calendarDetailOperationsPutCalendarFeed, calendarDetailOperationsRevokeCalendarFeed, calendarDetailOperationsUpdateCalendar, calendarEventDetailOperationsDeleteCalendarEvent, calendarEventDetailOperationsGetCalendarEvent, calendarEventDetailOperationsUpdateCalendarEvent, calendarEventOperationsCreateCalendarEvent, calendarEventOperationsListCalendarEvents, calendarFeedOperationsGetCalendarFeedIcal, calendarFreeBusyOperationsListCalendarFreeBusy, calendarOperationsCreateCalendar, calendarOperationsListCalendars, calendarSuggestionActionOperationsAcceptCalendarSuggestion, calendarSuggestionActionOperationsDeclineCalendarSuggestion, calendarSuggestionActionOperationsDismissCalendarSuggestion, calendarSuggestionActionOperationsReopenCalendarSuggestion, calendarSuggestionOperationsListCalendarSuggestions, calendarTaskDetailOperationsDeleteCalendarTask, calendarTaskDetailOperationsGetCalendarTask, calendarTaskDetailOperationsUpdateCalendarTask, calendarTaskOperationsCreateCalendarTask, calendarTaskOperationsListCalendarTasks, configOperationsExportConfig, configOperationsGetConfig, configOperationsImportConfig, filterDetailOperationsDeleteFilter, filterDetailOperationsGetFilter, filterDetailOperationsUpdateFilter, filterOperationsCreateFilter, filterOperationsListFilters, folderRoleOperationsAppointFolderRole, labelDetailOperationsDeleteLabel, labelDetailOperationsGetLabel, labelDetailOperationsUpdateLabel, labelOperationsCreateLabel, labelOperationsListLabels, mailboxDetailOperationsDeleteMailbox, mailboxDetailOperationsGetMailbox, mailboxDetailOperationsRenameMailbox, mailboxOperationsCreateMailbox, mailboxOperationsListMailboxes, meOperationsCreateExport, meOperationsDeleteMe, meOperationsGetExport, meOperationsListQuarantine, meOperationsListVipSuggestions, messageBulkOperationsCopyMessages, messageBulkOperationsDeleteMessages, messageBulkOperationsMoveMessages, messageBulkOperationsNotSpam, messageBulkOperationsReportSpam, messageBulkOperationsUpdateFlags, messageBulkOperationsUpdateMessageLabels, messageCalendarSuggestionOperationsListMessageCalendarSuggestions, messageOperationsDescribeMessage, messageOperationsGetRawMessage, messageOperationsUpdateMessageFlags, microsoftOAuthOperationsMicrosoftOAuthCallback, microsoftOAuthOperationsMicrosoftOAuthStart, organizeJobDetailOperationsGetOrganizeJob, organizeOperationsCreateOrganizeJob, organizeOperationsPreviewOrganize, outboxAttachmentOperationsCompleteOutboxAttachment, outboxDetailOperationsDeleteOutboxMessage, outboxDetailOperationsGetOutboxMessage, outboxDetailOperationsMintOutboxAttachment, outboxDetailOperationsSendOutboxMessage, outboxDetailOperationsUpdateOutboxMessage, outboxOperationsCreateOutboxMessage, outboxOperationsListOutboxMessages, syncOperationsGetSyncStatus, syncOperationsTriggerSync, systemOperationsApplySystemUpdate, systemOperationsGetSystemUpdate, threadDetailOperationsListThreadMessages, threadOperationsListThreads, threadOperationsSearchThreads, trashOperationsEmptyTrash, unifiedThreadOperationsListAllThreads, userSettingsOperationsClearDefaultInvitationSender, userSettingsOperationsGetUserSettings, userSettingsOperationsUpdateUserSettings } from '../sdk.gen.js';
|
|
9
5
|
/**
|
|
10
6
|
* Create a new email account
|
|
11
7
|
*/
|
|
12
|
-
export const accountOperationsCreateAccountMutation = (options
|
|
13
|
-
const mutationOptions
|
|
8
|
+
export const accountOperationsCreateAccountMutation = (options) => {
|
|
9
|
+
const mutationOptions = {
|
|
14
10
|
mutationFn: async (fnOptions) => {
|
|
15
11
|
const { data } = await accountOperationsCreateAccount({
|
|
16
12
|
...options,
|
|
@@ -22,19 +18,8 @@ export const accountOperationsCreateAccountMutation = (options?: Partial<Options
|
|
|
22
18
|
};
|
|
23
19
|
return mutationOptions;
|
|
24
20
|
};
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
Pick<TOptions, 'baseUrl' | 'body' | 'headers' | 'path' | 'query'> & {
|
|
28
|
-
_id: string;
|
|
29
|
-
_infinite?: boolean;
|
|
30
|
-
tags?: ReadonlyArray<string>;
|
|
31
|
-
}
|
|
32
|
-
];
|
|
33
|
-
|
|
34
|
-
const createQueryKey = <TOptions extends Options>(id: string, options?: TOptions, infinite?: boolean, tags?: ReadonlyArray<string>): [
|
|
35
|
-
QueryKey<TOptions>[0]
|
|
36
|
-
] => {
|
|
37
|
-
const params: QueryKey<TOptions>[0] = { _id: id, baseUrl: options?.baseUrl || (options?.client ?? client).getConfig().baseUrl } as QueryKey<TOptions>[0];
|
|
21
|
+
const createQueryKey = (id, options, infinite, tags) => {
|
|
22
|
+
const params = { _id: id, baseUrl: options?.baseUrl || (options?.client ?? client).getConfig().baseUrl };
|
|
38
23
|
if (infinite) {
|
|
39
24
|
params._infinite = infinite;
|
|
40
25
|
}
|
|
@@ -55,13 +40,11 @@ const createQueryKey = <TOptions extends Options>(id: string, options?: TOptions
|
|
|
55
40
|
}
|
|
56
41
|
return [params];
|
|
57
42
|
};
|
|
58
|
-
|
|
59
|
-
export const microsoftOAuthOperationsMicrosoftOAuthCallbackQueryKey = (options?: Options<MicrosoftOAuthOperationsMicrosoftOAuthCallbackData>) => createQueryKey('microsoftOAuthOperationsMicrosoftOAuthCallback', options);
|
|
60
|
-
|
|
43
|
+
export const microsoftOAuthOperationsMicrosoftOAuthCallbackQueryKey = (options) => createQueryKey('microsoftOAuthOperationsMicrosoftOAuthCallback', options);
|
|
61
44
|
/**
|
|
62
45
|
* Microsoft OAuth2 callback endpoint — receives the authorization code from Microsoft and exchanges it for tokens. This endpoint is intentionally unauthenticated: the browser is redirected here by Microsoft after the user grants consent, before any Cognito session is available. CSRF is prevented by an HMAC-signed state parameter.
|
|
63
46
|
*/
|
|
64
|
-
export const microsoftOAuthOperationsMicrosoftOAuthCallbackOptions = (options
|
|
47
|
+
export const microsoftOAuthOperationsMicrosoftOAuthCallbackOptions = (options) => queryOptions({
|
|
65
48
|
queryFn: async ({ queryKey, signal }) => {
|
|
66
49
|
const { data } = await microsoftOAuthOperationsMicrosoftOAuthCallback({
|
|
67
50
|
...options,
|
|
@@ -73,12 +56,11 @@ export const microsoftOAuthOperationsMicrosoftOAuthCallbackOptions = (options?:
|
|
|
73
56
|
},
|
|
74
57
|
queryKey: microsoftOAuthOperationsMicrosoftOAuthCallbackQueryKey(options)
|
|
75
58
|
});
|
|
76
|
-
|
|
77
59
|
/**
|
|
78
60
|
* Start Microsoft OAuth2 authorization flow
|
|
79
61
|
*/
|
|
80
|
-
export const microsoftOAuthOperationsMicrosoftOAuthStartMutation = (options
|
|
81
|
-
const mutationOptions
|
|
62
|
+
export const microsoftOAuthOperationsMicrosoftOAuthStartMutation = (options) => {
|
|
63
|
+
const mutationOptions = {
|
|
82
64
|
mutationFn: async (fnOptions) => {
|
|
83
65
|
const { data } = await microsoftOAuthOperationsMicrosoftOAuthStart({
|
|
84
66
|
...options,
|
|
@@ -90,12 +72,11 @@ export const microsoftOAuthOperationsMicrosoftOAuthStartMutation = (options?: Pa
|
|
|
90
72
|
};
|
|
91
73
|
return mutationOptions;
|
|
92
74
|
};
|
|
93
|
-
|
|
94
75
|
/**
|
|
95
76
|
* Test IMAP/SMTP connection without saving
|
|
96
77
|
*/
|
|
97
|
-
export const accountOperationsTestConnectionMutation = (options
|
|
98
|
-
const mutationOptions
|
|
78
|
+
export const accountOperationsTestConnectionMutation = (options) => {
|
|
79
|
+
const mutationOptions = {
|
|
99
80
|
mutationFn: async (fnOptions) => {
|
|
100
81
|
const { data } = await accountOperationsTestConnection({
|
|
101
82
|
...options,
|
|
@@ -107,12 +88,11 @@ export const accountOperationsTestConnectionMutation = (options?: Partial<Option
|
|
|
107
88
|
};
|
|
108
89
|
return mutationOptions;
|
|
109
90
|
};
|
|
110
|
-
|
|
111
91
|
/**
|
|
112
92
|
* Delete an account and all associated data
|
|
113
93
|
*/
|
|
114
|
-
export const accountDetailOperationsDeleteAccountMutation = (options
|
|
115
|
-
const mutationOptions
|
|
94
|
+
export const accountDetailOperationsDeleteAccountMutation = (options) => {
|
|
95
|
+
const mutationOptions = {
|
|
116
96
|
mutationFn: async (fnOptions) => {
|
|
117
97
|
const { data } = await accountDetailOperationsDeleteAccount({
|
|
118
98
|
...options,
|
|
@@ -124,12 +104,11 @@ export const accountDetailOperationsDeleteAccountMutation = (options?: Partial<O
|
|
|
124
104
|
};
|
|
125
105
|
return mutationOptions;
|
|
126
106
|
};
|
|
127
|
-
|
|
128
107
|
/**
|
|
129
108
|
* Update an existing account
|
|
130
109
|
*/
|
|
131
|
-
export const accountDetailOperationsUpdateAccountMutation = (options
|
|
132
|
-
const mutationOptions
|
|
110
|
+
export const accountDetailOperationsUpdateAccountMutation = (options) => {
|
|
111
|
+
const mutationOptions = {
|
|
133
112
|
mutationFn: async (fnOptions) => {
|
|
134
113
|
const { data } = await accountDetailOperationsUpdateAccount({
|
|
135
114
|
...options,
|
|
@@ -141,10 +120,8 @@ export const accountDetailOperationsUpdateAccountMutation = (options?: Partial<O
|
|
|
141
120
|
};
|
|
142
121
|
return mutationOptions;
|
|
143
122
|
};
|
|
144
|
-
|
|
145
|
-
export const
|
|
146
|
-
|
|
147
|
-
export const filterOperationsListFiltersOptions = (options: Options<FilterOperationsListFiltersData>) => queryOptions<FilterOperationsListFiltersResponse, FilterOperationsListFiltersError, FilterOperationsListFiltersResponse, ReturnType<typeof filterOperationsListFiltersQueryKey>>({
|
|
123
|
+
export const filterOperationsListFiltersQueryKey = (options) => createQueryKey('filterOperationsListFilters', options);
|
|
124
|
+
export const filterOperationsListFiltersOptions = (options) => queryOptions({
|
|
148
125
|
queryFn: async ({ queryKey, signal }) => {
|
|
149
126
|
const { data } = await filterOperationsListFilters({
|
|
150
127
|
...options,
|
|
@@ -156,9 +133,8 @@ export const filterOperationsListFiltersOptions = (options: Options<FilterOperat
|
|
|
156
133
|
},
|
|
157
134
|
queryKey: filterOperationsListFiltersQueryKey(options)
|
|
158
135
|
});
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
const mutationOptions: UseMutationOptions<FilterOperationsCreateFilterResponse, FilterOperationsCreateFilterError, Options<FilterOperationsCreateFilterData>> = {
|
|
136
|
+
export const filterOperationsCreateFilterMutation = (options) => {
|
|
137
|
+
const mutationOptions = {
|
|
162
138
|
mutationFn: async (fnOptions) => {
|
|
163
139
|
const { data } = await filterOperationsCreateFilter({
|
|
164
140
|
...options,
|
|
@@ -170,9 +146,8 @@ export const filterOperationsCreateFilterMutation = (options?: Partial<Options<F
|
|
|
170
146
|
};
|
|
171
147
|
return mutationOptions;
|
|
172
148
|
};
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
const mutationOptions: UseMutationOptions<FilterDetailOperationsDeleteFilterResponse, FilterDetailOperationsDeleteFilterError, Options<FilterDetailOperationsDeleteFilterData>> = {
|
|
149
|
+
export const filterDetailOperationsDeleteFilterMutation = (options) => {
|
|
150
|
+
const mutationOptions = {
|
|
176
151
|
mutationFn: async (fnOptions) => {
|
|
177
152
|
const { data } = await filterDetailOperationsDeleteFilter({
|
|
178
153
|
...options,
|
|
@@ -184,10 +159,8 @@ export const filterDetailOperationsDeleteFilterMutation = (options?: Partial<Opt
|
|
|
184
159
|
};
|
|
185
160
|
return mutationOptions;
|
|
186
161
|
};
|
|
187
|
-
|
|
188
|
-
export const
|
|
189
|
-
|
|
190
|
-
export const filterDetailOperationsGetFilterOptions = (options: Options<FilterDetailOperationsGetFilterData>) => queryOptions<FilterDetailOperationsGetFilterResponse, FilterDetailOperationsGetFilterError, FilterDetailOperationsGetFilterResponse, ReturnType<typeof filterDetailOperationsGetFilterQueryKey>>({
|
|
162
|
+
export const filterDetailOperationsGetFilterQueryKey = (options) => createQueryKey('filterDetailOperationsGetFilter', options);
|
|
163
|
+
export const filterDetailOperationsGetFilterOptions = (options) => queryOptions({
|
|
191
164
|
queryFn: async ({ queryKey, signal }) => {
|
|
192
165
|
const { data } = await filterDetailOperationsGetFilter({
|
|
193
166
|
...options,
|
|
@@ -199,9 +172,8 @@ export const filterDetailOperationsGetFilterOptions = (options: Options<FilterDe
|
|
|
199
172
|
},
|
|
200
173
|
queryKey: filterDetailOperationsGetFilterQueryKey(options)
|
|
201
174
|
});
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
const mutationOptions: UseMutationOptions<FilterDetailOperationsUpdateFilterResponse, FilterDetailOperationsUpdateFilterError, Options<FilterDetailOperationsUpdateFilterData>> = {
|
|
175
|
+
export const filterDetailOperationsUpdateFilterMutation = (options) => {
|
|
176
|
+
const mutationOptions = {
|
|
205
177
|
mutationFn: async (fnOptions) => {
|
|
206
178
|
const { data } = await filterDetailOperationsUpdateFilter({
|
|
207
179
|
...options,
|
|
@@ -213,12 +185,11 @@ export const filterDetailOperationsUpdateFilterMutation = (options?: Partial<Opt
|
|
|
213
185
|
};
|
|
214
186
|
return mutationOptions;
|
|
215
187
|
};
|
|
216
|
-
|
|
217
188
|
/**
|
|
218
189
|
* Appoint a canonical role to a mailbox, or clear it. Exclusive by construction: the role always resolves to exactly one mailbox, so appointing a new one silently replaces whichever mailbox previously held it — there is no second place a duplicate appointment could live. Returns the account with its refreshed folderAppointments.
|
|
219
190
|
*/
|
|
220
|
-
export const folderRoleOperationsAppointFolderRoleMutation = (options
|
|
221
|
-
const mutationOptions
|
|
191
|
+
export const folderRoleOperationsAppointFolderRoleMutation = (options) => {
|
|
192
|
+
const mutationOptions = {
|
|
222
193
|
mutationFn: async (fnOptions) => {
|
|
223
194
|
const { data } = await folderRoleOperationsAppointFolderRole({
|
|
224
195
|
...options,
|
|
@@ -230,10 +201,8 @@ export const folderRoleOperationsAppointFolderRoleMutation = (options?: Partial<
|
|
|
230
201
|
};
|
|
231
202
|
return mutationOptions;
|
|
232
203
|
};
|
|
233
|
-
|
|
234
|
-
export const
|
|
235
|
-
|
|
236
|
-
export const labelOperationsListLabelsOptions = (options: Options<LabelOperationsListLabelsData>) => queryOptions<LabelOperationsListLabelsResponse, LabelOperationsListLabelsError, LabelOperationsListLabelsResponse, ReturnType<typeof labelOperationsListLabelsQueryKey>>({
|
|
204
|
+
export const labelOperationsListLabelsQueryKey = (options) => createQueryKey('labelOperationsListLabels', options);
|
|
205
|
+
export const labelOperationsListLabelsOptions = (options) => queryOptions({
|
|
237
206
|
queryFn: async ({ queryKey, signal }) => {
|
|
238
207
|
const { data } = await labelOperationsListLabels({
|
|
239
208
|
...options,
|
|
@@ -245,9 +214,8 @@ export const labelOperationsListLabelsOptions = (options: Options<LabelOperation
|
|
|
245
214
|
},
|
|
246
215
|
queryKey: labelOperationsListLabelsQueryKey(options)
|
|
247
216
|
});
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
const mutationOptions: UseMutationOptions<LabelOperationsCreateLabelResponse, LabelOperationsCreateLabelError, Options<LabelOperationsCreateLabelData>> = {
|
|
217
|
+
export const labelOperationsCreateLabelMutation = (options) => {
|
|
218
|
+
const mutationOptions = {
|
|
251
219
|
mutationFn: async (fnOptions) => {
|
|
252
220
|
const { data } = await labelOperationsCreateLabel({
|
|
253
221
|
...options,
|
|
@@ -259,12 +227,11 @@ export const labelOperationsCreateLabelMutation = (options?: Partial<Options<Lab
|
|
|
259
227
|
};
|
|
260
228
|
return mutationOptions;
|
|
261
229
|
};
|
|
262
|
-
|
|
263
230
|
/**
|
|
264
231
|
* Delete a label. Cascades in both directions (issue #26): every `MessageLabel` row for it is removed, and every filter whose `actionLabelId` is this label is deleted outright — never left dangling, never blocking the delete. The client is expected to confirm first, naming `LabelResponse.filterCount` as the number of filters that will go with it.
|
|
265
232
|
*/
|
|
266
|
-
export const labelDetailOperationsDeleteLabelMutation = (options
|
|
267
|
-
const mutationOptions
|
|
233
|
+
export const labelDetailOperationsDeleteLabelMutation = (options) => {
|
|
234
|
+
const mutationOptions = {
|
|
268
235
|
mutationFn: async (fnOptions) => {
|
|
269
236
|
const { data } = await labelDetailOperationsDeleteLabel({
|
|
270
237
|
...options,
|
|
@@ -276,10 +243,8 @@ export const labelDetailOperationsDeleteLabelMutation = (options?: Partial<Optio
|
|
|
276
243
|
};
|
|
277
244
|
return mutationOptions;
|
|
278
245
|
};
|
|
279
|
-
|
|
280
|
-
export const
|
|
281
|
-
|
|
282
|
-
export const labelDetailOperationsGetLabelOptions = (options: Options<LabelDetailOperationsGetLabelData>) => queryOptions<LabelDetailOperationsGetLabelResponse, LabelDetailOperationsGetLabelError, LabelDetailOperationsGetLabelResponse, ReturnType<typeof labelDetailOperationsGetLabelQueryKey>>({
|
|
246
|
+
export const labelDetailOperationsGetLabelQueryKey = (options) => createQueryKey('labelDetailOperationsGetLabel', options);
|
|
247
|
+
export const labelDetailOperationsGetLabelOptions = (options) => queryOptions({
|
|
283
248
|
queryFn: async ({ queryKey, signal }) => {
|
|
284
249
|
const { data } = await labelDetailOperationsGetLabel({
|
|
285
250
|
...options,
|
|
@@ -291,9 +256,8 @@ export const labelDetailOperationsGetLabelOptions = (options: Options<LabelDetai
|
|
|
291
256
|
},
|
|
292
257
|
queryKey: labelDetailOperationsGetLabelQueryKey(options)
|
|
293
258
|
});
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
const mutationOptions: UseMutationOptions<LabelDetailOperationsUpdateLabelResponse, LabelDetailOperationsUpdateLabelError, Options<LabelDetailOperationsUpdateLabelData>> = {
|
|
259
|
+
export const labelDetailOperationsUpdateLabelMutation = (options) => {
|
|
260
|
+
const mutationOptions = {
|
|
297
261
|
mutationFn: async (fnOptions) => {
|
|
298
262
|
const { data } = await labelDetailOperationsUpdateLabel({
|
|
299
263
|
...options,
|
|
@@ -305,10 +269,8 @@ export const labelDetailOperationsUpdateLabelMutation = (options?: Partial<Optio
|
|
|
305
269
|
};
|
|
306
270
|
return mutationOptions;
|
|
307
271
|
};
|
|
308
|
-
|
|
309
|
-
export const
|
|
310
|
-
|
|
311
|
-
export const mailboxOperationsListMailboxesOptions = (options: Options<MailboxOperationsListMailboxesData>) => queryOptions<MailboxOperationsListMailboxesResponse, MailboxOperationsListMailboxesError, MailboxOperationsListMailboxesResponse, ReturnType<typeof mailboxOperationsListMailboxesQueryKey>>({
|
|
272
|
+
export const mailboxOperationsListMailboxesQueryKey = (options) => createQueryKey('mailboxOperationsListMailboxes', options);
|
|
273
|
+
export const mailboxOperationsListMailboxesOptions = (options) => queryOptions({
|
|
312
274
|
queryFn: async ({ queryKey, signal }) => {
|
|
313
275
|
const { data } = await mailboxOperationsListMailboxes({
|
|
314
276
|
...options,
|
|
@@ -320,12 +282,11 @@ export const mailboxOperationsListMailboxesOptions = (options: Options<MailboxOp
|
|
|
320
282
|
},
|
|
321
283
|
queryKey: mailboxOperationsListMailboxesQueryKey(options)
|
|
322
284
|
});
|
|
323
|
-
|
|
324
285
|
/**
|
|
325
286
|
* Create a folder. Refused with 400 when the account already has a folder at that path.
|
|
326
287
|
*/
|
|
327
|
-
export const mailboxOperationsCreateMailboxMutation = (options
|
|
328
|
-
const mutationOptions
|
|
288
|
+
export const mailboxOperationsCreateMailboxMutation = (options) => {
|
|
289
|
+
const mutationOptions = {
|
|
329
290
|
mutationFn: async (fnOptions) => {
|
|
330
291
|
const { data } = await mailboxOperationsCreateMailbox({
|
|
331
292
|
...options,
|
|
@@ -337,12 +298,11 @@ export const mailboxOperationsCreateMailboxMutation = (options?: Partial<Options
|
|
|
337
298
|
};
|
|
338
299
|
return mutationOptions;
|
|
339
300
|
};
|
|
340
|
-
|
|
341
301
|
/**
|
|
342
302
|
* Record a delete intent for a folder. The folder stays listed, marked as being deleted, until the mail server confirms it and its mail goes with it. Refused with 400 for INBOX, for a folder with folders inside it, and for a folder a filter or a canonical role is bound to — the message names each binding; with 409 when a mutation is already in flight on it.
|
|
343
303
|
*/
|
|
344
|
-
export const mailboxDetailOperationsDeleteMailboxMutation = (options
|
|
345
|
-
const mutationOptions
|
|
304
|
+
export const mailboxDetailOperationsDeleteMailboxMutation = (options) => {
|
|
305
|
+
const mutationOptions = {
|
|
346
306
|
mutationFn: async (fnOptions) => {
|
|
347
307
|
const { data } = await mailboxDetailOperationsDeleteMailbox({
|
|
348
308
|
...options,
|
|
@@ -354,10 +314,8 @@ export const mailboxDetailOperationsDeleteMailboxMutation = (options?: Partial<O
|
|
|
354
314
|
};
|
|
355
315
|
return mutationOptions;
|
|
356
316
|
};
|
|
357
|
-
|
|
358
|
-
export const
|
|
359
|
-
|
|
360
|
-
export const mailboxDetailOperationsGetMailboxOptions = (options: Options<MailboxDetailOperationsGetMailboxData>) => queryOptions<MailboxDetailOperationsGetMailboxResponse, MailboxDetailOperationsGetMailboxError, MailboxDetailOperationsGetMailboxResponse, ReturnType<typeof mailboxDetailOperationsGetMailboxQueryKey>>({
|
|
317
|
+
export const mailboxDetailOperationsGetMailboxQueryKey = (options) => createQueryKey('mailboxDetailOperationsGetMailbox', options);
|
|
318
|
+
export const mailboxDetailOperationsGetMailboxOptions = (options) => queryOptions({
|
|
361
319
|
queryFn: async ({ queryKey, signal }) => {
|
|
362
320
|
const { data } = await mailboxDetailOperationsGetMailbox({
|
|
363
321
|
...options,
|
|
@@ -369,12 +327,11 @@ export const mailboxDetailOperationsGetMailboxOptions = (options: Options<Mailbo
|
|
|
369
327
|
},
|
|
370
328
|
queryKey: mailboxDetailOperationsGetMailboxQueryKey(options)
|
|
371
329
|
});
|
|
372
|
-
|
|
373
330
|
/**
|
|
374
331
|
* Rename a folder, or dismiss a folder mutation that failed. `fullPath` records the rename target over the folder and everything under it; the folder keeps the path the mail server holds until the rename lands. A `fullPath` equal to the folder's current one is a dismissal: it clears a failed rename or delete and enqueues nothing. Refused with 400 for INBOX at either end, a name reserved for a system folder, and a name another folder already has; with 409 when a mutation is already in flight on the folder or on anything inside it.
|
|
375
332
|
*/
|
|
376
|
-
export const mailboxDetailOperationsRenameMailboxMutation = (options
|
|
377
|
-
const mutationOptions
|
|
333
|
+
export const mailboxDetailOperationsRenameMailboxMutation = (options) => {
|
|
334
|
+
const mutationOptions = {
|
|
378
335
|
mutationFn: async (fnOptions) => {
|
|
379
336
|
const { data } = await mailboxDetailOperationsRenameMailbox({
|
|
380
337
|
...options,
|
|
@@ -386,12 +343,11 @@ export const mailboxDetailOperationsRenameMailboxMutation = (options?: Partial<O
|
|
|
386
343
|
};
|
|
387
344
|
return mutationOptions;
|
|
388
345
|
};
|
|
389
|
-
|
|
390
346
|
/**
|
|
391
347
|
* Start a one-time "all like these" back-apply: match the corpus against the given predicate and apply the action to every match, in one pass. Returns immediately with an organizeJobId; poll GET /accounts/{accountId}/organize/{organizeJobId} for state and counts. Never creates a Filter row (RFC 034 recap).
|
|
392
348
|
*/
|
|
393
|
-
export const organizeOperationsCreateOrganizeJobMutation = (options
|
|
394
|
-
const mutationOptions
|
|
349
|
+
export const organizeOperationsCreateOrganizeJobMutation = (options) => {
|
|
350
|
+
const mutationOptions = {
|
|
395
351
|
mutationFn: async (fnOptions) => {
|
|
396
352
|
const { data } = await organizeOperationsCreateOrganizeJob({
|
|
397
353
|
...options,
|
|
@@ -403,12 +359,11 @@ export const organizeOperationsCreateOrganizeJobMutation = (options?: Partial<Op
|
|
|
403
359
|
};
|
|
404
360
|
return mutationOptions;
|
|
405
361
|
};
|
|
406
|
-
|
|
407
362
|
/**
|
|
408
363
|
* Preview an "all like these" back-apply: run the exact same matcher read-only and return the messages the action would be applied to, without applying it. The previewed set equals the set a job with the same input would apply to.
|
|
409
364
|
*/
|
|
410
|
-
export const organizeOperationsPreviewOrganizeMutation = (options
|
|
411
|
-
const mutationOptions
|
|
365
|
+
export const organizeOperationsPreviewOrganizeMutation = (options) => {
|
|
366
|
+
const mutationOptions = {
|
|
412
367
|
mutationFn: async (fnOptions) => {
|
|
413
368
|
const { data } = await organizeOperationsPreviewOrganize({
|
|
414
369
|
...options,
|
|
@@ -420,13 +375,11 @@ export const organizeOperationsPreviewOrganizeMutation = (options?: Partial<Opti
|
|
|
420
375
|
};
|
|
421
376
|
return mutationOptions;
|
|
422
377
|
};
|
|
423
|
-
|
|
424
|
-
export const organizeJobDetailOperationsGetOrganizeJobQueryKey = (options: Options<OrganizeJobDetailOperationsGetOrganizeJobData>) => createQueryKey('organizeJobDetailOperationsGetOrganizeJob', options);
|
|
425
|
-
|
|
378
|
+
export const organizeJobDetailOperationsGetOrganizeJobQueryKey = (options) => createQueryKey('organizeJobDetailOperationsGetOrganizeJob', options);
|
|
426
379
|
/**
|
|
427
380
|
* Get the status of a back-apply job, including matched/applied/failed counts. Terminal states are Complete and Failed.
|
|
428
381
|
*/
|
|
429
|
-
export const organizeJobDetailOperationsGetOrganizeJobOptions = (options
|
|
382
|
+
export const organizeJobDetailOperationsGetOrganizeJobOptions = (options) => queryOptions({
|
|
430
383
|
queryFn: async ({ queryKey, signal }) => {
|
|
431
384
|
const { data } = await organizeJobDetailOperationsGetOrganizeJob({
|
|
432
385
|
...options,
|
|
@@ -438,9 +391,8 @@ export const organizeJobDetailOperationsGetOrganizeJobOptions = (options: Option
|
|
|
438
391
|
},
|
|
439
392
|
queryKey: organizeJobDetailOperationsGetOrganizeJobQueryKey(options)
|
|
440
393
|
});
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
const mutationOptions: UseMutationOptions<SyncOperationsTriggerSyncResponse, SyncOperationsTriggerSyncError, Options<SyncOperationsTriggerSyncData>> = {
|
|
394
|
+
export const syncOperationsTriggerSyncMutation = (options) => {
|
|
395
|
+
const mutationOptions = {
|
|
444
396
|
mutationFn: async (fnOptions) => {
|
|
445
397
|
const { data } = await syncOperationsTriggerSync({
|
|
446
398
|
...options,
|
|
@@ -452,13 +404,11 @@ export const syncOperationsTriggerSyncMutation = (options?: Partial<Options<Sync
|
|
|
452
404
|
};
|
|
453
405
|
return mutationOptions;
|
|
454
406
|
};
|
|
455
|
-
|
|
456
|
-
export const syncOperationsGetSyncStatusQueryKey = (options: Options<SyncOperationsGetSyncStatusData>) => createQueryKey('syncOperationsGetSyncStatus', options);
|
|
457
|
-
|
|
407
|
+
export const syncOperationsGetSyncStatusQueryKey = (options) => createQueryKey('syncOperationsGetSyncStatus', options);
|
|
458
408
|
/**
|
|
459
409
|
* Get the current sync status for an account, including per-mailbox progress computed from watermarks. Read-only — does not write or contend with the mailbox sync lock (RFC 023).
|
|
460
410
|
*/
|
|
461
|
-
export const syncOperationsGetSyncStatusOptions = (options
|
|
411
|
+
export const syncOperationsGetSyncStatusOptions = (options) => queryOptions({
|
|
462
412
|
queryFn: async ({ queryKey, signal }) => {
|
|
463
413
|
const { data } = await syncOperationsGetSyncStatus({
|
|
464
414
|
...options,
|
|
@@ -470,12 +420,11 @@ export const syncOperationsGetSyncStatusOptions = (options: Options<SyncOperatio
|
|
|
470
420
|
},
|
|
471
421
|
queryKey: syncOperationsGetSyncStatusQueryKey(options)
|
|
472
422
|
});
|
|
473
|
-
|
|
474
423
|
/**
|
|
475
424
|
* Permanently delete all messages in the Trash mailbox
|
|
476
425
|
*/
|
|
477
|
-
export const trashOperationsEmptyTrashMutation = (options
|
|
478
|
-
const mutationOptions
|
|
426
|
+
export const trashOperationsEmptyTrashMutation = (options) => {
|
|
427
|
+
const mutationOptions = {
|
|
479
428
|
mutationFn: async (fnOptions) => {
|
|
480
429
|
const { data } = await trashOperationsEmptyTrash({
|
|
481
430
|
...options,
|
|
@@ -487,13 +436,11 @@ export const trashOperationsEmptyTrashMutation = (options?: Partial<Options<Tras
|
|
|
487
436
|
};
|
|
488
437
|
return mutationOptions;
|
|
489
438
|
};
|
|
490
|
-
|
|
491
|
-
export const addressOperationsSearchAddressesQueryKey = (options: Options<AddressOperationsSearchAddressesData>) => createQueryKey('addressOperationsSearchAddresses', options);
|
|
492
|
-
|
|
439
|
+
export const addressOperationsSearchAddressesQueryKey = (options) => createQueryKey('addressOperationsSearchAddresses', options);
|
|
493
440
|
/**
|
|
494
441
|
* Search addresses for autocomplete
|
|
495
442
|
*/
|
|
496
|
-
export const addressOperationsSearchAddressesOptions = (options
|
|
443
|
+
export const addressOperationsSearchAddressesOptions = (options) => queryOptions({
|
|
497
444
|
queryFn: async ({ queryKey, signal }) => {
|
|
498
445
|
const { data } = await addressOperationsSearchAddresses({
|
|
499
446
|
...options,
|
|
@@ -505,12 +452,11 @@ export const addressOperationsSearchAddressesOptions = (options: Options<Address
|
|
|
505
452
|
},
|
|
506
453
|
queryKey: addressOperationsSearchAddressesQueryKey(options)
|
|
507
454
|
});
|
|
508
|
-
|
|
509
455
|
/**
|
|
510
456
|
* Update an address (currently: per-sender flags). Pass `flags` to set flags and `clearFlags: ["<name>"]` to remove them. Other flags are untouched.
|
|
511
457
|
*/
|
|
512
|
-
export const addressDetailOperationsUpdateAddressMutation = (options
|
|
513
|
-
const mutationOptions
|
|
458
|
+
export const addressDetailOperationsUpdateAddressMutation = (options) => {
|
|
459
|
+
const mutationOptions = {
|
|
514
460
|
mutationFn: async (fnOptions) => {
|
|
515
461
|
const { data } = await addressDetailOperationsUpdateAddress({
|
|
516
462
|
...options,
|
|
@@ -522,9 +468,7 @@ export const addressDetailOperationsUpdateAddressMutation = (options?: Partial<O
|
|
|
522
468
|
};
|
|
523
469
|
return mutationOptions;
|
|
524
470
|
};
|
|
525
|
-
|
|
526
|
-
export const calendarEventOperationsListCalendarEventsQueryKey = (options: Options<CalendarEventOperationsListCalendarEventsData>) => createQueryKey('calendarEventOperationsListCalendarEvents', options);
|
|
527
|
-
|
|
471
|
+
export const calendarEventOperationsListCalendarEventsQueryKey = (options) => createQueryKey('calendarEventOperationsListCalendarEvents', options);
|
|
528
472
|
/**
|
|
529
473
|
* Expanded event occurrences in a window. The server does the recurrence
|
|
530
474
|
* expansion and the client renders instances — no RRULE is ever evaluated
|
|
@@ -539,7 +483,7 @@ export const calendarEventOperationsListCalendarEventsQueryKey = (options: Optio
|
|
|
539
483
|
* Refused with 400 when `from` and `to` are not ISO 8601 date-times, when
|
|
540
484
|
* `to` is not after `from`, or when the window is wider than a year.
|
|
541
485
|
*/
|
|
542
|
-
export const calendarEventOperationsListCalendarEventsOptions = (options
|
|
486
|
+
export const calendarEventOperationsListCalendarEventsOptions = (options) => queryOptions({
|
|
543
487
|
queryFn: async ({ queryKey, signal }) => {
|
|
544
488
|
const { data } = await calendarEventOperationsListCalendarEvents({
|
|
545
489
|
...options,
|
|
@@ -551,12 +495,11 @@ export const calendarEventOperationsListCalendarEventsOptions = (options: Option
|
|
|
551
495
|
},
|
|
552
496
|
queryKey: calendarEventOperationsListCalendarEventsQueryKey(options)
|
|
553
497
|
});
|
|
554
|
-
|
|
555
498
|
/**
|
|
556
499
|
* Create an event. The server builds the VEVENT and writes it through the single calendar write path — the same one an accepted invitation and a later CalDAV PUT go through — so the object, its expanded occurrences and the collection's sync sequence land together or not at all. Refused with 400 `read_only_calendar` for a `Subscribed` collection, whose events belong to the feed.
|
|
557
500
|
*/
|
|
558
|
-
export const calendarEventOperationsCreateCalendarEventMutation = (options
|
|
559
|
-
const mutationOptions
|
|
501
|
+
export const calendarEventOperationsCreateCalendarEventMutation = (options) => {
|
|
502
|
+
const mutationOptions = {
|
|
560
503
|
mutationFn: async (fnOptions) => {
|
|
561
504
|
const { data } = await calendarEventOperationsCreateCalendarEvent({
|
|
562
505
|
...options,
|
|
@@ -568,7 +511,6 @@ export const calendarEventOperationsCreateCalendarEventMutation = (options?: Par
|
|
|
568
511
|
};
|
|
569
512
|
return mutationOptions;
|
|
570
513
|
};
|
|
571
|
-
|
|
572
514
|
/**
|
|
573
515
|
* Delete an event. `All` removes the resource and every occurrence it
|
|
574
516
|
* produced; `This` writes an EXDATE for the named occurrence and keeps the
|
|
@@ -578,9 +520,12 @@ export const calendarEventOperationsCreateCalendarEventMutation = (options?: Par
|
|
|
578
520
|
* Same refusals and the same `If-Match` precondition as the update.
|
|
579
521
|
* An event in a `Subscribed` collection is refused with 400
|
|
580
522
|
* `read_only_calendar`, here and on the update.
|
|
523
|
+
*
|
|
524
|
+
* Answers 200 with the cancellations it queued: one per guest when the
|
|
525
|
+
* reader organizes the event, none otherwise.
|
|
581
526
|
*/
|
|
582
|
-
export const calendarEventDetailOperationsDeleteCalendarEventMutation = (options
|
|
583
|
-
const mutationOptions
|
|
527
|
+
export const calendarEventDetailOperationsDeleteCalendarEventMutation = (options) => {
|
|
528
|
+
const mutationOptions = {
|
|
584
529
|
mutationFn: async (fnOptions) => {
|
|
585
530
|
const { data } = await calendarEventDetailOperationsDeleteCalendarEvent({
|
|
586
531
|
...options,
|
|
@@ -592,13 +537,11 @@ export const calendarEventDetailOperationsDeleteCalendarEventMutation = (options
|
|
|
592
537
|
};
|
|
593
538
|
return mutationOptions;
|
|
594
539
|
};
|
|
595
|
-
|
|
596
|
-
export const calendarEventDetailOperationsGetCalendarEventQueryKey = (options: Options<CalendarEventDetailOperationsGetCalendarEventData>) => createQueryKey('calendarEventDetailOperationsGetCalendarEvent', options);
|
|
597
|
-
|
|
540
|
+
export const calendarEventDetailOperationsGetCalendarEventQueryKey = (options) => createQueryKey('calendarEventDetailOperationsGetCalendarEvent', options);
|
|
598
541
|
/**
|
|
599
542
|
* Get one stored event, including its canonical iCalendar text and its etag.
|
|
600
543
|
*/
|
|
601
|
-
export const calendarEventDetailOperationsGetCalendarEventOptions = (options
|
|
544
|
+
export const calendarEventDetailOperationsGetCalendarEventOptions = (options) => queryOptions({
|
|
602
545
|
queryFn: async ({ queryKey, signal }) => {
|
|
603
546
|
const { data } = await calendarEventDetailOperationsGetCalendarEvent({
|
|
604
547
|
...options,
|
|
@@ -610,7 +553,6 @@ export const calendarEventDetailOperationsGetCalendarEventOptions = (options: Op
|
|
|
610
553
|
},
|
|
611
554
|
queryKey: calendarEventDetailOperationsGetCalendarEventQueryKey(options)
|
|
612
555
|
});
|
|
613
|
-
|
|
614
556
|
/**
|
|
615
557
|
* Update an event. `scope` says what the caller meant by editing one
|
|
616
558
|
* drawing of a series: `All` rewrites the master, `This` writes a
|
|
@@ -626,8 +568,8 @@ export const calendarEventDetailOperationsGetCalendarEventOptions = (options: Op
|
|
|
626
568
|
* mismatch is 412: somebody replaced the resource in between, and applying
|
|
627
569
|
* this patch would discard their change without either of them seeing it.
|
|
628
570
|
*/
|
|
629
|
-
export const calendarEventDetailOperationsUpdateCalendarEventMutation = (options
|
|
630
|
-
const mutationOptions
|
|
571
|
+
export const calendarEventDetailOperationsUpdateCalendarEventMutation = (options) => {
|
|
572
|
+
const mutationOptions = {
|
|
631
573
|
mutationFn: async (fnOptions) => {
|
|
632
574
|
const { data } = await calendarEventDetailOperationsUpdateCalendarEvent({
|
|
633
575
|
...options,
|
|
@@ -639,13 +581,11 @@ export const calendarEventDetailOperationsUpdateCalendarEventMutation = (options
|
|
|
639
581
|
};
|
|
640
582
|
return mutationOptions;
|
|
641
583
|
};
|
|
642
|
-
|
|
643
|
-
export const calendarFreeBusyOperationsListCalendarFreeBusyQueryKey = (options: Options<CalendarFreeBusyOperationsListCalendarFreeBusyData>) => createQueryKey('calendarFreeBusyOperationsListCalendarFreeBusy', options);
|
|
644
|
-
|
|
584
|
+
export const calendarFreeBusyOperationsListCalendarFreeBusyQueryKey = (options) => createQueryKey('calendarFreeBusyOperationsListCalendarFreeBusy', options);
|
|
645
585
|
/**
|
|
646
586
|
* Busy spans over a window, merged across every calendar the caller holds. Backs the clash check beside a mail invitation and the free-stretch maths in the day strip, neither of which should have to fetch every event and merge them itself. Refused with 400 on the same window rules as the event listing.
|
|
647
587
|
*/
|
|
648
|
-
export const calendarFreeBusyOperationsListCalendarFreeBusyOptions = (options
|
|
588
|
+
export const calendarFreeBusyOperationsListCalendarFreeBusyOptions = (options) => queryOptions({
|
|
649
589
|
queryFn: async ({ queryKey, signal }) => {
|
|
650
590
|
const { data } = await calendarFreeBusyOperationsListCalendarFreeBusy({
|
|
651
591
|
...options,
|
|
@@ -657,13 +597,11 @@ export const calendarFreeBusyOperationsListCalendarFreeBusyOptions = (options: O
|
|
|
657
597
|
},
|
|
658
598
|
queryKey: calendarFreeBusyOperationsListCalendarFreeBusyQueryKey(options)
|
|
659
599
|
});
|
|
660
|
-
|
|
661
|
-
export const calendarSuggestionOperationsListCalendarSuggestionsQueryKey = (options: Options<CalendarSuggestionOperationsListCalendarSuggestionsData>) => createQueryKey('calendarSuggestionOperationsListCalendarSuggestions', options);
|
|
662
|
-
|
|
600
|
+
export const calendarSuggestionOperationsListCalendarSuggestionsQueryKey = (options) => createQueryKey('calendarSuggestionOperationsListCalendarSuggestions', options);
|
|
663
601
|
/**
|
|
664
602
|
* List the caller's suggestions in one state, newest first. `Pending` is the set that is waiting on a person and the one a client normally asks for.
|
|
665
603
|
*/
|
|
666
|
-
export const calendarSuggestionOperationsListCalendarSuggestionsOptions = (options
|
|
604
|
+
export const calendarSuggestionOperationsListCalendarSuggestionsOptions = (options) => queryOptions({
|
|
667
605
|
queryFn: async ({ queryKey, signal }) => {
|
|
668
606
|
const { data } = await calendarSuggestionOperationsListCalendarSuggestions({
|
|
669
607
|
...options,
|
|
@@ -675,7 +613,6 @@ export const calendarSuggestionOperationsListCalendarSuggestionsOptions = (optio
|
|
|
675
613
|
},
|
|
676
614
|
queryKey: calendarSuggestionOperationsListCalendarSuggestionsQueryKey(options)
|
|
677
615
|
});
|
|
678
|
-
|
|
679
616
|
/**
|
|
680
617
|
* Add the suggested event to a calendar. One transaction: a VCALENDAR is
|
|
681
618
|
* built from the invitation's own bytes, keeping its UID and SEQUENCE and
|
|
@@ -698,8 +635,8 @@ export const calendarSuggestionOperationsListCalendarSuggestionsOptions = (optio
|
|
|
698
635
|
* answered otherwise, dismissed or superseded — when a `Cancel` suggestion
|
|
699
636
|
* is answered `Tentative`, or when its iCalendar will not parse.
|
|
700
637
|
*/
|
|
701
|
-
export const calendarSuggestionActionOperationsAcceptCalendarSuggestionMutation = (options
|
|
702
|
-
const mutationOptions
|
|
638
|
+
export const calendarSuggestionActionOperationsAcceptCalendarSuggestionMutation = (options) => {
|
|
639
|
+
const mutationOptions = {
|
|
703
640
|
mutationFn: async (fnOptions) => {
|
|
704
641
|
const { data } = await calendarSuggestionActionOperationsAcceptCalendarSuggestion({
|
|
705
642
|
...options,
|
|
@@ -711,12 +648,11 @@ export const calendarSuggestionActionOperationsAcceptCalendarSuggestionMutation
|
|
|
711
648
|
};
|
|
712
649
|
return mutationOptions;
|
|
713
650
|
};
|
|
714
|
-
|
|
715
651
|
/**
|
|
716
652
|
* Say no. Writes no calendar object and sends no reply to the organizer. Idempotent; 400 when the suggestion was already accepted, since a resource exists and declining would not remove it.
|
|
717
653
|
*/
|
|
718
|
-
export const calendarSuggestionActionOperationsDeclineCalendarSuggestionMutation = (options
|
|
719
|
-
const mutationOptions
|
|
654
|
+
export const calendarSuggestionActionOperationsDeclineCalendarSuggestionMutation = (options) => {
|
|
655
|
+
const mutationOptions = {
|
|
720
656
|
mutationFn: async (fnOptions) => {
|
|
721
657
|
const { data } = await calendarSuggestionActionOperationsDeclineCalendarSuggestion({
|
|
722
658
|
...options,
|
|
@@ -728,12 +664,11 @@ export const calendarSuggestionActionOperationsDeclineCalendarSuggestionMutation
|
|
|
728
664
|
};
|
|
729
665
|
return mutationOptions;
|
|
730
666
|
};
|
|
731
|
-
|
|
732
667
|
/**
|
|
733
668
|
* Wave the card away. Writes no calendar object. With `muteSender`, also writes a standing `Filter` rule on the message's sender so their invitations stop being offered. Idempotent; 400 when the suggestion was already accepted.
|
|
734
669
|
*/
|
|
735
|
-
export const calendarSuggestionActionOperationsDismissCalendarSuggestionMutation = (options
|
|
736
|
-
const mutationOptions
|
|
670
|
+
export const calendarSuggestionActionOperationsDismissCalendarSuggestionMutation = (options) => {
|
|
671
|
+
const mutationOptions = {
|
|
737
672
|
mutationFn: async (fnOptions) => {
|
|
738
673
|
const { data } = await calendarSuggestionActionOperationsDismissCalendarSuggestion({
|
|
739
674
|
...options,
|
|
@@ -745,7 +680,6 @@ export const calendarSuggestionActionOperationsDismissCalendarSuggestionMutation
|
|
|
745
680
|
};
|
|
746
681
|
return mutationOptions;
|
|
747
682
|
};
|
|
748
|
-
|
|
749
683
|
/**
|
|
750
684
|
* Take an answer back. An accepted, tentative, declined or dismissed
|
|
751
685
|
* suggestion returns to `Pending`, so the card asks again. One
|
|
@@ -764,8 +698,8 @@ export const calendarSuggestionActionOperationsDismissCalendarSuggestionMutation
|
|
|
764
698
|
* a `Cancel`, whose answer rewrote an event it cannot restore, or its
|
|
765
699
|
* `answerOvertakenBy` is `Cancellation`, because a cancellation is terminal.
|
|
766
700
|
*/
|
|
767
|
-
export const calendarSuggestionActionOperationsReopenCalendarSuggestionMutation = (options
|
|
768
|
-
const mutationOptions
|
|
701
|
+
export const calendarSuggestionActionOperationsReopenCalendarSuggestionMutation = (options) => {
|
|
702
|
+
const mutationOptions = {
|
|
769
703
|
mutationFn: async (fnOptions) => {
|
|
770
704
|
const { data } = await calendarSuggestionActionOperationsReopenCalendarSuggestion({
|
|
771
705
|
...options,
|
|
@@ -777,13 +711,88 @@ export const calendarSuggestionActionOperationsReopenCalendarSuggestionMutation
|
|
|
777
711
|
};
|
|
778
712
|
return mutationOptions;
|
|
779
713
|
};
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
714
|
+
export const calendarTaskOperationsListCalendarTasksQueryKey = (options) => createQueryKey('calendarTaskOperationsListCalendarTasks', options);
|
|
715
|
+
/**
|
|
716
|
+
* Tasks due in a window, across every task collection the caller holds, in due order. Refused with 400 on the same window rules as the event listing.
|
|
717
|
+
*/
|
|
718
|
+
export const calendarTaskOperationsListCalendarTasksOptions = (options) => queryOptions({
|
|
719
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
720
|
+
const { data } = await calendarTaskOperationsListCalendarTasks({
|
|
721
|
+
...options,
|
|
722
|
+
...queryKey[0],
|
|
723
|
+
signal,
|
|
724
|
+
throwOnError: true
|
|
725
|
+
});
|
|
726
|
+
return data;
|
|
727
|
+
},
|
|
728
|
+
queryKey: calendarTaskOperationsListCalendarTasksQueryKey(options)
|
|
729
|
+
});
|
|
730
|
+
/**
|
|
731
|
+
* Create a task. Refused with 400 `not_a_task_calendar` when `calendarId` names an event collection.
|
|
732
|
+
*/
|
|
733
|
+
export const calendarTaskOperationsCreateCalendarTaskMutation = (options) => {
|
|
734
|
+
const mutationOptions = {
|
|
735
|
+
mutationFn: async (fnOptions) => {
|
|
736
|
+
const { data } = await calendarTaskOperationsCreateCalendarTask({
|
|
737
|
+
...options,
|
|
738
|
+
...fnOptions,
|
|
739
|
+
throwOnError: true
|
|
740
|
+
});
|
|
741
|
+
return data;
|
|
742
|
+
}
|
|
743
|
+
};
|
|
744
|
+
return mutationOptions;
|
|
745
|
+
};
|
|
746
|
+
/**
|
|
747
|
+
* Delete a task. Same `If-Match` precondition as the update.
|
|
748
|
+
*/
|
|
749
|
+
export const calendarTaskDetailOperationsDeleteCalendarTaskMutation = (options) => {
|
|
750
|
+
const mutationOptions = {
|
|
751
|
+
mutationFn: async (fnOptions) => {
|
|
752
|
+
const { data } = await calendarTaskDetailOperationsDeleteCalendarTask({
|
|
753
|
+
...options,
|
|
754
|
+
...fnOptions,
|
|
755
|
+
throwOnError: true
|
|
756
|
+
});
|
|
757
|
+
return data;
|
|
758
|
+
}
|
|
759
|
+
};
|
|
760
|
+
return mutationOptions;
|
|
761
|
+
};
|
|
762
|
+
export const calendarTaskDetailOperationsGetCalendarTaskQueryKey = (options) => createQueryKey('calendarTaskDetailOperationsGetCalendarTask', options);
|
|
763
|
+
export const calendarTaskDetailOperationsGetCalendarTaskOptions = (options) => queryOptions({
|
|
764
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
765
|
+
const { data } = await calendarTaskDetailOperationsGetCalendarTask({
|
|
766
|
+
...options,
|
|
767
|
+
...queryKey[0],
|
|
768
|
+
signal,
|
|
769
|
+
throwOnError: true
|
|
770
|
+
});
|
|
771
|
+
return data;
|
|
772
|
+
},
|
|
773
|
+
queryKey: calendarTaskDetailOperationsGetCalendarTaskQueryKey(options)
|
|
774
|
+
});
|
|
775
|
+
/**
|
|
776
|
+
* Update a task. `If-Match` makes the write conditional on the etag the caller read; a mismatch is 412.
|
|
777
|
+
*/
|
|
778
|
+
export const calendarTaskDetailOperationsUpdateCalendarTaskMutation = (options) => {
|
|
779
|
+
const mutationOptions = {
|
|
780
|
+
mutationFn: async (fnOptions) => {
|
|
781
|
+
const { data } = await calendarTaskDetailOperationsUpdateCalendarTask({
|
|
782
|
+
...options,
|
|
783
|
+
...fnOptions,
|
|
784
|
+
throwOnError: true
|
|
785
|
+
});
|
|
786
|
+
return data;
|
|
787
|
+
}
|
|
788
|
+
};
|
|
789
|
+
return mutationOptions;
|
|
790
|
+
};
|
|
791
|
+
export const calendarOperationsListCalendarsQueryKey = (options) => createQueryKey('calendarOperationsListCalendars', options);
|
|
783
792
|
/**
|
|
784
793
|
* List the caller's calendar collections. Provisions the account config's default collection when it has none, so a first read never comes back empty and no client has to know how a calendar gets made.
|
|
785
794
|
*/
|
|
786
|
-
export const calendarOperationsListCalendarsOptions = (options
|
|
795
|
+
export const calendarOperationsListCalendarsOptions = (options) => queryOptions({
|
|
787
796
|
queryFn: async ({ queryKey, signal }) => {
|
|
788
797
|
const { data } = await calendarOperationsListCalendars({
|
|
789
798
|
...options,
|
|
@@ -795,12 +804,11 @@ export const calendarOperationsListCalendarsOptions = (options?: Options<Calenda
|
|
|
795
804
|
},
|
|
796
805
|
queryKey: calendarOperationsListCalendarsQueryKey(options)
|
|
797
806
|
});
|
|
798
|
-
|
|
799
807
|
/**
|
|
800
808
|
* Create a calendar collection. Refused with 400 when `urlSegment` is empty or already taken in this account config — the segment is the collection's identity, so a second create under the same one would otherwise silently return the collection that already exists. With `subscriptionUrl` the feed is fetched first and a fetch that fails is refused with 400 `subscription_unreachable`, naming why and never the URL.
|
|
801
809
|
*/
|
|
802
|
-
export const calendarOperationsCreateCalendarMutation = (options
|
|
803
|
-
const mutationOptions
|
|
810
|
+
export const calendarOperationsCreateCalendarMutation = (options) => {
|
|
811
|
+
const mutationOptions = {
|
|
804
812
|
mutationFn: async (fnOptions) => {
|
|
805
813
|
const { data } = await calendarOperationsCreateCalendar({
|
|
806
814
|
...options,
|
|
@@ -812,12 +820,11 @@ export const calendarOperationsCreateCalendarMutation = (options?: Partial<Optio
|
|
|
812
820
|
};
|
|
813
821
|
return mutationOptions;
|
|
814
822
|
};
|
|
815
|
-
|
|
816
823
|
/**
|
|
817
824
|
* Delete a calendar collection and every event in it. Refused with 400 for the account's default collection: it is the one place an accepted invitation or a first event can land, and an account with no calendar has nowhere to put an event.
|
|
818
825
|
*/
|
|
819
|
-
export const calendarDetailOperationsDeleteCalendarMutation = (options
|
|
820
|
-
const mutationOptions
|
|
826
|
+
export const calendarDetailOperationsDeleteCalendarMutation = (options) => {
|
|
827
|
+
const mutationOptions = {
|
|
821
828
|
mutationFn: async (fnOptions) => {
|
|
822
829
|
const { data } = await calendarDetailOperationsDeleteCalendar({
|
|
823
830
|
...options,
|
|
@@ -829,10 +836,8 @@ export const calendarDetailOperationsDeleteCalendarMutation = (options?: Partial
|
|
|
829
836
|
};
|
|
830
837
|
return mutationOptions;
|
|
831
838
|
};
|
|
832
|
-
|
|
833
|
-
export const
|
|
834
|
-
|
|
835
|
-
export const calendarDetailOperationsGetCalendarOptions = (options: Options<CalendarDetailOperationsGetCalendarData>) => queryOptions<CalendarDetailOperationsGetCalendarResponse, CalendarDetailOperationsGetCalendarError, CalendarDetailOperationsGetCalendarResponse, ReturnType<typeof calendarDetailOperationsGetCalendarQueryKey>>({
|
|
839
|
+
export const calendarDetailOperationsGetCalendarQueryKey = (options) => createQueryKey('calendarDetailOperationsGetCalendar', options);
|
|
840
|
+
export const calendarDetailOperationsGetCalendarOptions = (options) => queryOptions({
|
|
836
841
|
queryFn: async ({ queryKey, signal }) => {
|
|
837
842
|
const { data } = await calendarDetailOperationsGetCalendar({
|
|
838
843
|
...options,
|
|
@@ -844,12 +849,11 @@ export const calendarDetailOperationsGetCalendarOptions = (options: Options<Cale
|
|
|
844
849
|
},
|
|
845
850
|
queryKey: calendarDetailOperationsGetCalendarQueryKey(options)
|
|
846
851
|
});
|
|
847
|
-
|
|
848
852
|
/**
|
|
849
853
|
* Update a calendar collection. `subscriptionEnabled` is refused with 400 `not_subscribed` on a collection that is not `Subscribed`. Turning it off stops the refresh and removes nothing.
|
|
850
854
|
*/
|
|
851
|
-
export const calendarDetailOperationsUpdateCalendarMutation = (options
|
|
852
|
-
const mutationOptions
|
|
855
|
+
export const calendarDetailOperationsUpdateCalendarMutation = (options) => {
|
|
856
|
+
const mutationOptions = {
|
|
853
857
|
mutationFn: async (fnOptions) => {
|
|
854
858
|
const { data } = await calendarDetailOperationsUpdateCalendar({
|
|
855
859
|
...options,
|
|
@@ -861,12 +865,11 @@ export const calendarDetailOperationsUpdateCalendarMutation = (options?: Partial
|
|
|
861
865
|
};
|
|
862
866
|
return mutationOptions;
|
|
863
867
|
};
|
|
864
|
-
|
|
865
868
|
/**
|
|
866
869
|
* Revoke the calendar's feed address. Every subscribed client starts getting 404 on its next poll. Answered 404 when the calendar has no feed, so a revoke is never reported as having taken something away that was not there.
|
|
867
870
|
*/
|
|
868
|
-
export const calendarDetailOperationsRevokeCalendarFeedMutation = (options
|
|
869
|
-
const mutationOptions
|
|
871
|
+
export const calendarDetailOperationsRevokeCalendarFeedMutation = (options) => {
|
|
872
|
+
const mutationOptions = {
|
|
870
873
|
mutationFn: async (fnOptions) => {
|
|
871
874
|
const { data } = await calendarDetailOperationsRevokeCalendarFeed({
|
|
872
875
|
...options,
|
|
@@ -878,15 +881,13 @@ export const calendarDetailOperationsRevokeCalendarFeedMutation = (options?: Par
|
|
|
878
881
|
};
|
|
879
882
|
return mutationOptions;
|
|
880
883
|
};
|
|
881
|
-
|
|
882
|
-
export const calendarDetailOperationsGetCalendarFeedQueryKey = (options: Options<CalendarDetailOperationsGetCalendarFeedData>) => createQueryKey('calendarDetailOperationsGetCalendarFeed', options);
|
|
883
|
-
|
|
884
|
+
export const calendarDetailOperationsGetCalendarFeedQueryKey = (options) => createQueryKey('calendarDetailOperationsGetCalendarFeed', options);
|
|
884
885
|
/**
|
|
885
886
|
* Read whether this calendar has a feed address. Absent (404) until one is
|
|
886
887
|
* minted. The token is not here: it is stored as a hash, so the only
|
|
887
888
|
* moment it exists in the clear is the answer to the write below.
|
|
888
889
|
*/
|
|
889
|
-
export const calendarDetailOperationsGetCalendarFeedOptions = (options
|
|
890
|
+
export const calendarDetailOperationsGetCalendarFeedOptions = (options) => queryOptions({
|
|
890
891
|
queryFn: async ({ queryKey, signal }) => {
|
|
891
892
|
const { data } = await calendarDetailOperationsGetCalendarFeed({
|
|
892
893
|
...options,
|
|
@@ -898,7 +899,6 @@ export const calendarDetailOperationsGetCalendarFeedOptions = (options: Options<
|
|
|
898
899
|
},
|
|
899
900
|
queryKey: calendarDetailOperationsGetCalendarFeedQueryKey(options)
|
|
900
901
|
});
|
|
901
|
-
|
|
902
902
|
/**
|
|
903
903
|
* Mint the calendar's feed address, or replace the one it has, and answer
|
|
904
904
|
* with the token in the clear. Idempotent in address rather than in value:
|
|
@@ -909,8 +909,8 @@ export const calendarDetailOperationsGetCalendarFeedOptions = (options: Options<
|
|
|
909
909
|
* This is the only response that ever carries the plaintext. A client that
|
|
910
910
|
* does not keep it rotates again.
|
|
911
911
|
*/
|
|
912
|
-
export const calendarDetailOperationsPutCalendarFeedMutation = (options
|
|
913
|
-
const mutationOptions
|
|
912
|
+
export const calendarDetailOperationsPutCalendarFeedMutation = (options) => {
|
|
913
|
+
const mutationOptions = {
|
|
914
914
|
mutationFn: async (fnOptions) => {
|
|
915
915
|
const { data } = await calendarDetailOperationsPutCalendarFeed({
|
|
916
916
|
...options,
|
|
@@ -922,13 +922,11 @@ export const calendarDetailOperationsPutCalendarFeedMutation = (options?: Partia
|
|
|
922
922
|
};
|
|
923
923
|
return mutationOptions;
|
|
924
924
|
};
|
|
925
|
-
|
|
926
|
-
export const configOperationsGetConfigQueryKey = (options?: Options<ConfigOperationsGetConfigData>) => createQueryKey('configOperationsGetConfig', options);
|
|
927
|
-
|
|
925
|
+
export const configOperationsGetConfigQueryKey = (options) => createQueryKey('configOperationsGetConfig', options);
|
|
928
926
|
/**
|
|
929
927
|
* Get the current user's configuration including accounts and addresses
|
|
930
928
|
*/
|
|
931
|
-
export const configOperationsGetConfigOptions = (options
|
|
929
|
+
export const configOperationsGetConfigOptions = (options) => queryOptions({
|
|
932
930
|
queryFn: async ({ queryKey, signal }) => {
|
|
933
931
|
const { data } = await configOperationsGetConfig({
|
|
934
932
|
...options,
|
|
@@ -940,13 +938,11 @@ export const configOperationsGetConfigOptions = (options?: Options<ConfigOperati
|
|
|
940
938
|
},
|
|
941
939
|
queryKey: configOperationsGetConfigQueryKey(options)
|
|
942
940
|
});
|
|
943
|
-
|
|
944
|
-
export const configOperationsExportConfigQueryKey = (options?: Options<ConfigOperationsExportConfigData>) => createQueryKey('configOperationsExportConfig', options);
|
|
945
|
-
|
|
941
|
+
export const configOperationsExportConfigQueryKey = (options) => createQueryKey('configOperationsExportConfig', options);
|
|
946
942
|
/**
|
|
947
943
|
* Export every configured setting for the caller as one versioned JSON document. Contains no credentials: no IMAP/SMTP password and no OAuth token, encrypted or otherwise, and the credential fields are structurally absent rather than blank. The document's own shape is not defined here - it is defined by the published JSON Schema for its `schemaVersion` (build/config-schema/reader-config.v<N>.schema.json), so a file keeps validating independent of this API's models.
|
|
948
944
|
*/
|
|
949
|
-
export const configOperationsExportConfigOptions = (options
|
|
945
|
+
export const configOperationsExportConfigOptions = (options) => queryOptions({
|
|
950
946
|
queryFn: async ({ queryKey, signal }) => {
|
|
951
947
|
const { data } = await configOperationsExportConfig({
|
|
952
948
|
...options,
|
|
@@ -958,12 +954,11 @@ export const configOperationsExportConfigOptions = (options?: Options<ConfigOper
|
|
|
958
954
|
},
|
|
959
955
|
queryKey: configOperationsExportConfigQueryKey(options)
|
|
960
956
|
});
|
|
961
|
-
|
|
962
957
|
/**
|
|
963
958
|
* Validate, or validate and apply, a config document. `mode: validate` (the default) writes nothing and returns the same report an apply would. `onExisting: abort` (the default) refuses with 409 when this configuration already holds accounts, labels, filters or address flags. Nothing is written until the whole document has validated; a write failure after that aborts the remainder and the report names exactly what landed. Imported accounts arrive inactive with `connectionState: credentials_missing` (or `reauth_required` for OAuth) - the credentials the file deliberately omits are re-entered per account afterwards.
|
|
964
959
|
*/
|
|
965
|
-
export const configOperationsImportConfigMutation = (options
|
|
966
|
-
const mutationOptions
|
|
960
|
+
export const configOperationsImportConfigMutation = (options) => {
|
|
961
|
+
const mutationOptions = {
|
|
967
962
|
mutationFn: async (fnOptions) => {
|
|
968
963
|
const { data } = await configOperationsImportConfig({
|
|
969
964
|
...options,
|
|
@@ -975,9 +970,7 @@ export const configOperationsImportConfigMutation = (options?: Partial<Options<C
|
|
|
975
970
|
};
|
|
976
971
|
return mutationOptions;
|
|
977
972
|
};
|
|
978
|
-
|
|
979
|
-
export const calendarFeedOperationsGetCalendarFeedIcalQueryKey = (options: Options<CalendarFeedOperationsGetCalendarFeedIcalData>) => createQueryKey('calendarFeedOperationsGetCalendarFeedIcal', options);
|
|
980
|
-
|
|
973
|
+
export const calendarFeedOperationsGetCalendarFeedIcalQueryKey = (options) => createQueryKey('calendarFeedOperationsGetCalendarFeedIcal', options);
|
|
981
974
|
/**
|
|
982
975
|
* Serve a calendar as iCalendar text to whoever holds its secret address
|
|
983
976
|
* (issue #1067).
|
|
@@ -989,7 +982,7 @@ export const calendarFeedOperationsGetCalendarFeedIcalQueryKey = (options: Optio
|
|
|
989
982
|
* an unknown, revoked or malformed token is the same 404 with the same body
|
|
990
983
|
* — a subscriber learns whether it still has access, and nothing else.
|
|
991
984
|
*/
|
|
992
|
-
export const calendarFeedOperationsGetCalendarFeedIcalOptions = (options
|
|
985
|
+
export const calendarFeedOperationsGetCalendarFeedIcalOptions = (options) => queryOptions({
|
|
993
986
|
queryFn: async ({ queryKey, signal }) => {
|
|
994
987
|
const { data } = await calendarFeedOperationsGetCalendarFeedIcal({
|
|
995
988
|
...options,
|
|
@@ -1001,10 +994,8 @@ export const calendarFeedOperationsGetCalendarFeedIcalOptions = (options: Option
|
|
|
1001
994
|
},
|
|
1002
995
|
queryKey: calendarFeedOperationsGetCalendarFeedIcalQueryKey(options)
|
|
1003
996
|
});
|
|
1004
|
-
|
|
1005
|
-
export const
|
|
1006
|
-
|
|
1007
|
-
export const threadOperationsListThreadsOptions = (options: Options<ThreadOperationsListThreadsData>) => queryOptions<ThreadOperationsListThreadsResponse, ThreadOperationsListThreadsError, ThreadOperationsListThreadsResponse, ReturnType<typeof threadOperationsListThreadsQueryKey>>({
|
|
997
|
+
export const threadOperationsListThreadsQueryKey = (options) => createQueryKey('threadOperationsListThreads', options);
|
|
998
|
+
export const threadOperationsListThreadsOptions = (options) => queryOptions({
|
|
1008
999
|
queryFn: async ({ queryKey, signal }) => {
|
|
1009
1000
|
const { data } = await threadOperationsListThreads({
|
|
1010
1001
|
...options,
|
|
@@ -1016,10 +1007,8 @@ export const threadOperationsListThreadsOptions = (options: Options<ThreadOperat
|
|
|
1016
1007
|
},
|
|
1017
1008
|
queryKey: threadOperationsListThreadsQueryKey(options)
|
|
1018
1009
|
});
|
|
1019
|
-
|
|
1020
|
-
export const
|
|
1021
|
-
|
|
1022
|
-
export const threadOperationsSearchThreadsOptions = (options: Options<ThreadOperationsSearchThreadsData>) => queryOptions<ThreadOperationsSearchThreadsResponse, ThreadOperationsSearchThreadsError, ThreadOperationsSearchThreadsResponse, ReturnType<typeof threadOperationsSearchThreadsQueryKey>>({
|
|
1010
|
+
export const threadOperationsSearchThreadsQueryKey = (options) => createQueryKey('threadOperationsSearchThreads', options);
|
|
1011
|
+
export const threadOperationsSearchThreadsOptions = (options) => queryOptions({
|
|
1023
1012
|
queryFn: async ({ queryKey, signal }) => {
|
|
1024
1013
|
const { data } = await threadOperationsSearchThreads({
|
|
1025
1014
|
...options,
|
|
@@ -1031,12 +1020,11 @@ export const threadOperationsSearchThreadsOptions = (options: Options<ThreadOper
|
|
|
1031
1020
|
},
|
|
1032
1021
|
queryKey: threadOperationsSearchThreadsQueryKey(options)
|
|
1033
1022
|
});
|
|
1034
|
-
|
|
1035
1023
|
/**
|
|
1036
1024
|
* Request full erasure of the current user's account and all associated data
|
|
1037
1025
|
*/
|
|
1038
|
-
export const meOperationsDeleteMeMutation = (options
|
|
1039
|
-
const mutationOptions
|
|
1026
|
+
export const meOperationsDeleteMeMutation = (options) => {
|
|
1027
|
+
const mutationOptions = {
|
|
1040
1028
|
mutationFn: async (fnOptions) => {
|
|
1041
1029
|
const { data } = await meOperationsDeleteMe({
|
|
1042
1030
|
...options,
|
|
@@ -1048,12 +1036,11 @@ export const meOperationsDeleteMeMutation = (options?: Partial<Options<MeOperati
|
|
|
1048
1036
|
};
|
|
1049
1037
|
return mutationOptions;
|
|
1050
1038
|
};
|
|
1051
|
-
|
|
1052
1039
|
/**
|
|
1053
1040
|
* Request an export of all account data as a ZIP archive of .eml files. Returns immediately with an exportId; check GET /me/export/{exportId} for status and downloadUrl.
|
|
1054
1041
|
*/
|
|
1055
|
-
export const meOperationsCreateExportMutation = (options
|
|
1056
|
-
const mutationOptions
|
|
1042
|
+
export const meOperationsCreateExportMutation = (options) => {
|
|
1043
|
+
const mutationOptions = {
|
|
1057
1044
|
mutationFn: async (fnOptions) => {
|
|
1058
1045
|
const { data } = await meOperationsCreateExport({
|
|
1059
1046
|
...options,
|
|
@@ -1065,13 +1052,11 @@ export const meOperationsCreateExportMutation = (options?: Partial<Options<MeOpe
|
|
|
1065
1052
|
};
|
|
1066
1053
|
return mutationOptions;
|
|
1067
1054
|
};
|
|
1068
|
-
|
|
1069
|
-
export const meOperationsGetExportQueryKey = (options: Options<MeOperationsGetExportData>) => createQueryKey('meOperationsGetExport', options);
|
|
1070
|
-
|
|
1055
|
+
export const meOperationsGetExportQueryKey = (options) => createQueryKey('meOperationsGetExport', options);
|
|
1071
1056
|
/**
|
|
1072
1057
|
* Get the status of a previously requested data export. When state is Ready, downloadUrl holds a 30-day presigned S3 URL.
|
|
1073
1058
|
*/
|
|
1074
|
-
export const meOperationsGetExportOptions = (options
|
|
1059
|
+
export const meOperationsGetExportOptions = (options) => queryOptions({
|
|
1075
1060
|
queryFn: async ({ queryKey, signal }) => {
|
|
1076
1061
|
const { data } = await meOperationsGetExport({
|
|
1077
1062
|
...options,
|
|
@@ -1083,13 +1068,11 @@ export const meOperationsGetExportOptions = (options: Options<MeOperationsGetExp
|
|
|
1083
1068
|
},
|
|
1084
1069
|
queryKey: meOperationsGetExportQueryKey(options)
|
|
1085
1070
|
});
|
|
1086
|
-
|
|
1087
|
-
export const meOperationsListQuarantineQueryKey = (options?: Options<MeOperationsListQuarantineData>) => createQueryKey('meOperationsListQuarantine', options);
|
|
1088
|
-
|
|
1071
|
+
export const meOperationsListQuarantineQueryKey = (options) => createQueryKey('meOperationsListQuarantine', options);
|
|
1089
1072
|
/**
|
|
1090
1073
|
* List every message the sync path could not read, for the current user across all of their mail accounts (issue #72). Backs the quarantine section in settings. Unpaginated: the list is small by design, and an entry is a defect waiting to be reported rather than a page of mail.
|
|
1091
1074
|
*/
|
|
1092
|
-
export const meOperationsListQuarantineOptions = (options
|
|
1075
|
+
export const meOperationsListQuarantineOptions = (options) => queryOptions({
|
|
1093
1076
|
queryFn: async ({ queryKey, signal }) => {
|
|
1094
1077
|
const { data } = await meOperationsListQuarantine({
|
|
1095
1078
|
...options,
|
|
@@ -1101,13 +1084,11 @@ export const meOperationsListQuarantineOptions = (options?: Options<MeOperations
|
|
|
1101
1084
|
},
|
|
1102
1085
|
queryKey: meOperationsListQuarantineQueryKey(options)
|
|
1103
1086
|
});
|
|
1104
|
-
|
|
1105
|
-
export const meOperationsListVipSuggestionsQueryKey = (options?: Options<MeOperationsListVipSuggestionsData>) => createQueryKey('meOperationsListVipSuggestions', options);
|
|
1106
|
-
|
|
1087
|
+
export const meOperationsListVipSuggestionsQueryKey = (options) => createQueryKey('meOperationsListVipSuggestions', options);
|
|
1107
1088
|
/**
|
|
1108
1089
|
* List wellknown senders the user has not yet promoted to VIP. Ranked by `replyCount + inboundCount` desc with `lastInboundAt` desc as the tie-breaker. Capped at 10.
|
|
1109
1090
|
*/
|
|
1110
|
-
export const meOperationsListVipSuggestionsOptions = (options
|
|
1091
|
+
export const meOperationsListVipSuggestionsOptions = (options) => queryOptions({
|
|
1111
1092
|
queryFn: async ({ queryKey, signal }) => {
|
|
1112
1093
|
const { data } = await meOperationsListVipSuggestions({
|
|
1113
1094
|
...options,
|
|
@@ -1119,12 +1100,11 @@ export const meOperationsListVipSuggestionsOptions = (options?: Options<MeOperat
|
|
|
1119
1100
|
},
|
|
1120
1101
|
queryKey: meOperationsListVipSuggestionsQueryKey(options)
|
|
1121
1102
|
});
|
|
1122
|
-
|
|
1123
1103
|
/**
|
|
1124
1104
|
* Copy messages to a destination mailbox
|
|
1125
1105
|
*/
|
|
1126
|
-
export const messageBulkOperationsCopyMessagesMutation = (options
|
|
1127
|
-
const mutationOptions
|
|
1106
|
+
export const messageBulkOperationsCopyMessagesMutation = (options) => {
|
|
1107
|
+
const mutationOptions = {
|
|
1128
1108
|
mutationFn: async (fnOptions) => {
|
|
1129
1109
|
const { data } = await messageBulkOperationsCopyMessages({
|
|
1130
1110
|
...options,
|
|
@@ -1136,12 +1116,11 @@ export const messageBulkOperationsCopyMessagesMutation = (options?: Partial<Opti
|
|
|
1136
1116
|
};
|
|
1137
1117
|
return mutationOptions;
|
|
1138
1118
|
};
|
|
1139
|
-
|
|
1140
1119
|
/**
|
|
1141
1120
|
* Delete messages (move to Trash or permanent delete)
|
|
1142
1121
|
*/
|
|
1143
|
-
export const messageBulkOperationsDeleteMessagesMutation = (options
|
|
1144
|
-
const mutationOptions
|
|
1122
|
+
export const messageBulkOperationsDeleteMessagesMutation = (options) => {
|
|
1123
|
+
const mutationOptions = {
|
|
1145
1124
|
mutationFn: async (fnOptions) => {
|
|
1146
1125
|
const { data } = await messageBulkOperationsDeleteMessages({
|
|
1147
1126
|
...options,
|
|
@@ -1153,12 +1132,11 @@ export const messageBulkOperationsDeleteMessagesMutation = (options?: Partial<Op
|
|
|
1153
1132
|
};
|
|
1154
1133
|
return mutationOptions;
|
|
1155
1134
|
};
|
|
1156
|
-
|
|
1157
1135
|
/**
|
|
1158
1136
|
* Update flags on multiple messages
|
|
1159
1137
|
*/
|
|
1160
|
-
export const messageBulkOperationsUpdateFlagsMutation = (options
|
|
1161
|
-
const mutationOptions
|
|
1138
|
+
export const messageBulkOperationsUpdateFlagsMutation = (options) => {
|
|
1139
|
+
const mutationOptions = {
|
|
1162
1140
|
mutationFn: async (fnOptions) => {
|
|
1163
1141
|
const { data } = await messageBulkOperationsUpdateFlags({
|
|
1164
1142
|
...options,
|
|
@@ -1170,12 +1148,11 @@ export const messageBulkOperationsUpdateFlagsMutation = (options?: Partial<Optio
|
|
|
1170
1148
|
};
|
|
1171
1149
|
return mutationOptions;
|
|
1172
1150
|
};
|
|
1173
|
-
|
|
1174
1151
|
/**
|
|
1175
1152
|
* Apply or remove a label on multiple messages — the manual "just these" scope (RFC 034 recap, issue #26). `appliedByFilterId` stays absent on the resulting `MessageLabel` rows; that provenance is reserved for filter/organize applies.
|
|
1176
1153
|
*/
|
|
1177
|
-
export const messageBulkOperationsUpdateMessageLabelsMutation = (options
|
|
1178
|
-
const mutationOptions
|
|
1154
|
+
export const messageBulkOperationsUpdateMessageLabelsMutation = (options) => {
|
|
1155
|
+
const mutationOptions = {
|
|
1179
1156
|
mutationFn: async (fnOptions) => {
|
|
1180
1157
|
const { data } = await messageBulkOperationsUpdateMessageLabels({
|
|
1181
1158
|
...options,
|
|
@@ -1187,9 +1164,8 @@ export const messageBulkOperationsUpdateMessageLabelsMutation = (options?: Parti
|
|
|
1187
1164
|
};
|
|
1188
1165
|
return mutationOptions;
|
|
1189
1166
|
};
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
const mutationOptions: UseMutationOptions<MessageBulkOperationsMoveMessagesResponse, MessageBulkOperationsMoveMessagesError, Options<MessageBulkOperationsMoveMessagesData>> = {
|
|
1167
|
+
export const messageBulkOperationsMoveMessagesMutation = (options) => {
|
|
1168
|
+
const mutationOptions = {
|
|
1193
1169
|
mutationFn: async (fnOptions) => {
|
|
1194
1170
|
const { data } = await messageBulkOperationsMoveMessages({
|
|
1195
1171
|
...options,
|
|
@@ -1201,12 +1177,11 @@ export const messageBulkOperationsMoveMessagesMutation = (options?: Partial<Opti
|
|
|
1201
1177
|
};
|
|
1202
1178
|
return mutationOptions;
|
|
1203
1179
|
};
|
|
1204
|
-
|
|
1205
1180
|
/**
|
|
1206
1181
|
* Undo a spam report: clear the sender's `blocked` flag (never promotes to trusted/wellknown) and move each message back to `Message.originalMailboxId`. Idempotent under a repeated call. Each message is processed independently and concurrently, so the request's total wait is bounded by one message's settle timeout rather than accumulating across the batch.
|
|
1207
1182
|
*/
|
|
1208
|
-
export const messageBulkOperationsNotSpamMutation = (options
|
|
1209
|
-
const mutationOptions
|
|
1183
|
+
export const messageBulkOperationsNotSpamMutation = (options) => {
|
|
1184
|
+
const mutationOptions = {
|
|
1210
1185
|
mutationFn: async (fnOptions) => {
|
|
1211
1186
|
const { data } = await messageBulkOperationsNotSpam({
|
|
1212
1187
|
...options,
|
|
@@ -1218,12 +1193,11 @@ export const messageBulkOperationsNotSpamMutation = (options?: Partial<Options<M
|
|
|
1218
1193
|
};
|
|
1219
1194
|
return mutationOptions;
|
|
1220
1195
|
};
|
|
1221
|
-
|
|
1222
1196
|
/**
|
|
1223
1197
|
* Report messages as spam: block the sender (Address.flags.blocked) and move each message to the account's Junk folder. Skips the block (but still moves the message) when the sender is the account's own address. One call replaces composing the old separate `Block` and `Mark spam` actions — a single user intent, a single failure story. The sender block is written first and does not wait on the move; a failed move never rolls it back. Idempotent under a repeated call.
|
|
1224
1198
|
*/
|
|
1225
|
-
export const messageBulkOperationsReportSpamMutation = (options
|
|
1226
|
-
const mutationOptions
|
|
1199
|
+
export const messageBulkOperationsReportSpamMutation = (options) => {
|
|
1200
|
+
const mutationOptions = {
|
|
1227
1201
|
mutationFn: async (fnOptions) => {
|
|
1228
1202
|
const { data } = await messageBulkOperationsReportSpam({
|
|
1229
1203
|
...options,
|
|
@@ -1235,10 +1209,8 @@ export const messageBulkOperationsReportSpamMutation = (options?: Partial<Option
|
|
|
1235
1209
|
};
|
|
1236
1210
|
return mutationOptions;
|
|
1237
1211
|
};
|
|
1238
|
-
|
|
1239
|
-
export const
|
|
1240
|
-
|
|
1241
|
-
export const messageOperationsDescribeMessageOptions = (options: Options<MessageOperationsDescribeMessageData>) => queryOptions<MessageOperationsDescribeMessageResponse, MessageOperationsDescribeMessageError, MessageOperationsDescribeMessageResponse, ReturnType<typeof messageOperationsDescribeMessageQueryKey>>({
|
|
1212
|
+
export const messageOperationsDescribeMessageQueryKey = (options) => createQueryKey('messageOperationsDescribeMessage', options);
|
|
1213
|
+
export const messageOperationsDescribeMessageOptions = (options) => queryOptions({
|
|
1242
1214
|
queryFn: async ({ queryKey, signal }) => {
|
|
1243
1215
|
const { data } = await messageOperationsDescribeMessage({
|
|
1244
1216
|
...options,
|
|
@@ -1250,13 +1222,11 @@ export const messageOperationsDescribeMessageOptions = (options: Options<Message
|
|
|
1250
1222
|
},
|
|
1251
1223
|
queryKey: messageOperationsDescribeMessageQueryKey(options)
|
|
1252
1224
|
});
|
|
1253
|
-
|
|
1254
|
-
export const messageCalendarSuggestionOperationsListMessageCalendarSuggestionsQueryKey = (options: Options<MessageCalendarSuggestionOperationsListMessageCalendarSuggestionsData>) => createQueryKey('messageCalendarSuggestionOperationsListMessageCalendarSuggestions', options);
|
|
1255
|
-
|
|
1225
|
+
export const messageCalendarSuggestionOperationsListMessageCalendarSuggestionsQueryKey = (options) => createQueryKey('messageCalendarSuggestionOperationsListMessageCalendarSuggestions', options);
|
|
1256
1226
|
/**
|
|
1257
1227
|
* Every suggestion read out of one message, in whatever state each has reached — a superseded revision included, so the card can say which revision replaced it.
|
|
1258
1228
|
*/
|
|
1259
|
-
export const messageCalendarSuggestionOperationsListMessageCalendarSuggestionsOptions = (options
|
|
1229
|
+
export const messageCalendarSuggestionOperationsListMessageCalendarSuggestionsOptions = (options) => queryOptions({
|
|
1260
1230
|
queryFn: async ({ queryKey, signal }) => {
|
|
1261
1231
|
const { data } = await messageCalendarSuggestionOperationsListMessageCalendarSuggestions({
|
|
1262
1232
|
...options,
|
|
@@ -1268,9 +1238,8 @@ export const messageCalendarSuggestionOperationsListMessageCalendarSuggestionsOp
|
|
|
1268
1238
|
},
|
|
1269
1239
|
queryKey: messageCalendarSuggestionOperationsListMessageCalendarSuggestionsQueryKey(options)
|
|
1270
1240
|
});
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
const mutationOptions: UseMutationOptions<MessageOperationsUpdateMessageFlagsResponse, MessageOperationsUpdateMessageFlagsError, Options<MessageOperationsUpdateMessageFlagsData>> = {
|
|
1241
|
+
export const messageOperationsUpdateMessageFlagsMutation = (options) => {
|
|
1242
|
+
const mutationOptions = {
|
|
1274
1243
|
mutationFn: async (fnOptions) => {
|
|
1275
1244
|
const { data } = await messageOperationsUpdateMessageFlags({
|
|
1276
1245
|
...options,
|
|
@@ -1282,13 +1251,11 @@ export const messageOperationsUpdateMessageFlagsMutation = (options?: Partial<Op
|
|
|
1282
1251
|
};
|
|
1283
1252
|
return mutationOptions;
|
|
1284
1253
|
};
|
|
1285
|
-
|
|
1286
|
-
export const messageOperationsGetRawMessageQueryKey = (options: Options<MessageOperationsGetRawMessageData>) => createQueryKey('messageOperationsGetRawMessage', options);
|
|
1287
|
-
|
|
1254
|
+
export const messageOperationsGetRawMessageQueryKey = (options) => createQueryKey('messageOperationsGetRawMessage', options);
|
|
1288
1255
|
/**
|
|
1289
1256
|
* Get the raw RFC822/MIME source of a message (headers and body) for inspection.
|
|
1290
1257
|
*/
|
|
1291
|
-
export const messageOperationsGetRawMessageOptions = (options
|
|
1258
|
+
export const messageOperationsGetRawMessageOptions = (options) => queryOptions({
|
|
1292
1259
|
queryFn: async ({ queryKey, signal }) => {
|
|
1293
1260
|
const { data } = await messageOperationsGetRawMessage({
|
|
1294
1261
|
...options,
|
|
@@ -1300,13 +1267,11 @@ export const messageOperationsGetRawMessageOptions = (options: Options<MessageOp
|
|
|
1300
1267
|
},
|
|
1301
1268
|
queryKey: messageOperationsGetRawMessageQueryKey(options)
|
|
1302
1269
|
});
|
|
1303
|
-
|
|
1304
|
-
export const outboxOperationsListOutboxMessagesQueryKey = (options?: Options<OutboxOperationsListOutboxMessagesData>) => createQueryKey('outboxOperationsListOutboxMessages', options);
|
|
1305
|
-
|
|
1270
|
+
export const outboxOperationsListOutboxMessagesQueryKey = (options) => createQueryKey('outboxOperationsListOutboxMessages', options);
|
|
1306
1271
|
/**
|
|
1307
1272
|
* List outbox messages for the current account
|
|
1308
1273
|
*/
|
|
1309
|
-
export const outboxOperationsListOutboxMessagesOptions = (options
|
|
1274
|
+
export const outboxOperationsListOutboxMessagesOptions = (options) => queryOptions({
|
|
1310
1275
|
queryFn: async ({ queryKey, signal }) => {
|
|
1311
1276
|
const { data } = await outboxOperationsListOutboxMessages({
|
|
1312
1277
|
...options,
|
|
@@ -1318,12 +1283,11 @@ export const outboxOperationsListOutboxMessagesOptions = (options?: Options<Outb
|
|
|
1318
1283
|
},
|
|
1319
1284
|
queryKey: outboxOperationsListOutboxMessagesQueryKey(options)
|
|
1320
1285
|
});
|
|
1321
|
-
|
|
1322
1286
|
/**
|
|
1323
1287
|
* Create a new outbox message (draft or send immediately). A send-immediately create from an account whose syncedServices leave out Mail is refused with 400 `mail_sync_off`.
|
|
1324
1288
|
*/
|
|
1325
|
-
export const outboxOperationsCreateOutboxMessageMutation = (options
|
|
1326
|
-
const mutationOptions
|
|
1289
|
+
export const outboxOperationsCreateOutboxMessageMutation = (options) => {
|
|
1290
|
+
const mutationOptions = {
|
|
1327
1291
|
mutationFn: async (fnOptions) => {
|
|
1328
1292
|
const { data } = await outboxOperationsCreateOutboxMessage({
|
|
1329
1293
|
...options,
|
|
@@ -1335,12 +1299,11 @@ export const outboxOperationsCreateOutboxMessageMutation = (options?: Partial<Op
|
|
|
1335
1299
|
};
|
|
1336
1300
|
return mutationOptions;
|
|
1337
1301
|
};
|
|
1338
|
-
|
|
1339
1302
|
/**
|
|
1340
1303
|
* Delete a draft or failed outbox message
|
|
1341
1304
|
*/
|
|
1342
|
-
export const outboxDetailOperationsDeleteOutboxMessageMutation = (options
|
|
1343
|
-
const mutationOptions
|
|
1305
|
+
export const outboxDetailOperationsDeleteOutboxMessageMutation = (options) => {
|
|
1306
|
+
const mutationOptions = {
|
|
1344
1307
|
mutationFn: async (fnOptions) => {
|
|
1345
1308
|
const { data } = await outboxDetailOperationsDeleteOutboxMessage({
|
|
1346
1309
|
...options,
|
|
@@ -1352,13 +1315,11 @@ export const outboxDetailOperationsDeleteOutboxMessageMutation = (options?: Part
|
|
|
1352
1315
|
};
|
|
1353
1316
|
return mutationOptions;
|
|
1354
1317
|
};
|
|
1355
|
-
|
|
1356
|
-
export const outboxDetailOperationsGetOutboxMessageQueryKey = (options: Options<OutboxDetailOperationsGetOutboxMessageData>) => createQueryKey('outboxDetailOperationsGetOutboxMessage', options);
|
|
1357
|
-
|
|
1318
|
+
export const outboxDetailOperationsGetOutboxMessageQueryKey = (options) => createQueryKey('outboxDetailOperationsGetOutboxMessage', options);
|
|
1358
1319
|
/**
|
|
1359
1320
|
* Get an outbox message by ID
|
|
1360
1321
|
*/
|
|
1361
|
-
export const outboxDetailOperationsGetOutboxMessageOptions = (options
|
|
1322
|
+
export const outboxDetailOperationsGetOutboxMessageOptions = (options) => queryOptions({
|
|
1362
1323
|
queryFn: async ({ queryKey, signal }) => {
|
|
1363
1324
|
const { data } = await outboxDetailOperationsGetOutboxMessage({
|
|
1364
1325
|
...options,
|
|
@@ -1370,12 +1331,11 @@ export const outboxDetailOperationsGetOutboxMessageOptions = (options: Options<O
|
|
|
1370
1331
|
},
|
|
1371
1332
|
queryKey: outboxDetailOperationsGetOutboxMessageQueryKey(options)
|
|
1372
1333
|
});
|
|
1373
|
-
|
|
1374
1334
|
/**
|
|
1375
1335
|
* Update a draft outbox message
|
|
1376
1336
|
*/
|
|
1377
|
-
export const outboxDetailOperationsUpdateOutboxMessageMutation = (options
|
|
1378
|
-
const mutationOptions
|
|
1337
|
+
export const outboxDetailOperationsUpdateOutboxMessageMutation = (options) => {
|
|
1338
|
+
const mutationOptions = {
|
|
1379
1339
|
mutationFn: async (fnOptions) => {
|
|
1380
1340
|
const { data } = await outboxDetailOperationsUpdateOutboxMessage({
|
|
1381
1341
|
...options,
|
|
@@ -1387,12 +1347,11 @@ export const outboxDetailOperationsUpdateOutboxMessageMutation = (options?: Part
|
|
|
1387
1347
|
};
|
|
1388
1348
|
return mutationOptions;
|
|
1389
1349
|
};
|
|
1390
|
-
|
|
1391
1350
|
/**
|
|
1392
1351
|
* Reserve room on a draft for a file, and get somewhere to put it
|
|
1393
1352
|
*/
|
|
1394
|
-
export const outboxDetailOperationsMintOutboxAttachmentMutation = (options
|
|
1395
|
-
const mutationOptions
|
|
1353
|
+
export const outboxDetailOperationsMintOutboxAttachmentMutation = (options) => {
|
|
1354
|
+
const mutationOptions = {
|
|
1396
1355
|
mutationFn: async (fnOptions) => {
|
|
1397
1356
|
const { data } = await outboxDetailOperationsMintOutboxAttachment({
|
|
1398
1357
|
...options,
|
|
@@ -1404,12 +1363,11 @@ export const outboxDetailOperationsMintOutboxAttachmentMutation = (options?: Par
|
|
|
1404
1363
|
};
|
|
1405
1364
|
return mutationOptions;
|
|
1406
1365
|
};
|
|
1407
|
-
|
|
1408
1366
|
/**
|
|
1409
1367
|
* Confirm an uploaded file against the object storage now holds
|
|
1410
1368
|
*/
|
|
1411
|
-
export const outboxAttachmentOperationsCompleteOutboxAttachmentMutation = (options
|
|
1412
|
-
const mutationOptions
|
|
1369
|
+
export const outboxAttachmentOperationsCompleteOutboxAttachmentMutation = (options) => {
|
|
1370
|
+
const mutationOptions = {
|
|
1413
1371
|
mutationFn: async (fnOptions) => {
|
|
1414
1372
|
const { data } = await outboxAttachmentOperationsCompleteOutboxAttachment({
|
|
1415
1373
|
...options,
|
|
@@ -1421,12 +1379,11 @@ export const outboxAttachmentOperationsCompleteOutboxAttachmentMutation = (optio
|
|
|
1421
1379
|
};
|
|
1422
1380
|
return mutationOptions;
|
|
1423
1381
|
};
|
|
1424
|
-
|
|
1425
1382
|
/**
|
|
1426
1383
|
* Queue a draft message for sending. A draft on an account whose syncedServices leave out Mail is refused with 400 `mail_sync_off`, and stays a draft.
|
|
1427
1384
|
*/
|
|
1428
|
-
export const outboxDetailOperationsSendOutboxMessageMutation = (options
|
|
1429
|
-
const mutationOptions
|
|
1385
|
+
export const outboxDetailOperationsSendOutboxMessageMutation = (options) => {
|
|
1386
|
+
const mutationOptions = {
|
|
1430
1387
|
mutationFn: async (fnOptions) => {
|
|
1431
1388
|
const { data } = await outboxDetailOperationsSendOutboxMessage({
|
|
1432
1389
|
...options,
|
|
@@ -1438,13 +1395,59 @@ export const outboxDetailOperationsSendOutboxMessageMutation = (options?: Partia
|
|
|
1438
1395
|
};
|
|
1439
1396
|
return mutationOptions;
|
|
1440
1397
|
};
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1398
|
+
export const userSettingsOperationsGetUserSettingsQueryKey = (options) => createQueryKey('userSettingsOperationsGetUserSettings', options);
|
|
1399
|
+
/**
|
|
1400
|
+
* Read the caller's settings.
|
|
1401
|
+
*/
|
|
1402
|
+
export const userSettingsOperationsGetUserSettingsOptions = (options) => queryOptions({
|
|
1403
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1404
|
+
const { data } = await userSettingsOperationsGetUserSettings({
|
|
1405
|
+
...options,
|
|
1406
|
+
...queryKey[0],
|
|
1407
|
+
signal,
|
|
1408
|
+
throwOnError: true
|
|
1409
|
+
});
|
|
1410
|
+
return data;
|
|
1411
|
+
},
|
|
1412
|
+
queryKey: userSettingsOperationsGetUserSettingsQueryKey(options)
|
|
1413
|
+
});
|
|
1414
|
+
/**
|
|
1415
|
+
* Change the caller's settings. Answers with every setting as it now stands.
|
|
1416
|
+
*/
|
|
1417
|
+
export const userSettingsOperationsUpdateUserSettingsMutation = (options) => {
|
|
1418
|
+
const mutationOptions = {
|
|
1419
|
+
mutationFn: async (fnOptions) => {
|
|
1420
|
+
const { data } = await userSettingsOperationsUpdateUserSettings({
|
|
1421
|
+
...options,
|
|
1422
|
+
...fnOptions,
|
|
1423
|
+
throwOnError: true
|
|
1424
|
+
});
|
|
1425
|
+
return data;
|
|
1426
|
+
}
|
|
1427
|
+
};
|
|
1428
|
+
return mutationOptions;
|
|
1429
|
+
};
|
|
1430
|
+
/**
|
|
1431
|
+
* Clear the chosen default invitation sender. Invitations then go out from the account an event is on. Answers with every setting as it now stands.
|
|
1432
|
+
*/
|
|
1433
|
+
export const userSettingsOperationsClearDefaultInvitationSenderMutation = (options) => {
|
|
1434
|
+
const mutationOptions = {
|
|
1435
|
+
mutationFn: async (fnOptions) => {
|
|
1436
|
+
const { data } = await userSettingsOperationsClearDefaultInvitationSender({
|
|
1437
|
+
...options,
|
|
1438
|
+
...fnOptions,
|
|
1439
|
+
throwOnError: true
|
|
1440
|
+
});
|
|
1441
|
+
return data;
|
|
1442
|
+
}
|
|
1443
|
+
};
|
|
1444
|
+
return mutationOptions;
|
|
1445
|
+
};
|
|
1446
|
+
export const systemOperationsGetSystemUpdateQueryKey = (options) => createQueryKey('systemOperationsGetSystemUpdate', options);
|
|
1444
1447
|
/**
|
|
1445
1448
|
* Read the self-update resource: the running version, the outcome of the most recent manifest check, and the state of the current or last run. With `refresh=true`, records a check request on the control volume for the updater to pick up and answers with the stored state as it stands; the caller watches `check.lastCheckedAt` for the updater's answer. Owner-only, and absent (404) unless a manifest URL is configured (RFC 037 D7, D8).
|
|
1446
1449
|
*/
|
|
1447
|
-
export const systemOperationsGetSystemUpdateOptions = (options
|
|
1450
|
+
export const systemOperationsGetSystemUpdateOptions = (options) => queryOptions({
|
|
1448
1451
|
queryFn: async ({ queryKey, signal }) => {
|
|
1449
1452
|
const { data } = await systemOperationsGetSystemUpdate({
|
|
1450
1453
|
...options,
|
|
@@ -1456,12 +1459,11 @@ export const systemOperationsGetSystemUpdateOptions = (options?: Options<SystemO
|
|
|
1456
1459
|
},
|
|
1457
1460
|
queryKey: systemOperationsGetSystemUpdateQueryKey(options)
|
|
1458
1461
|
});
|
|
1459
|
-
|
|
1460
1462
|
/**
|
|
1461
1463
|
* Request installation of a specific release. Writes the request to the control seam and returns 202 with the same resource, including a runId. 409 when a run is in flight, 422 when the target is not the manifest's version. Owner-only, and absent (404) unless a manifest URL is configured (RFC 037 D7, D8).
|
|
1462
1464
|
*/
|
|
1463
|
-
export const systemOperationsApplySystemUpdateMutation = (options
|
|
1464
|
-
const mutationOptions
|
|
1465
|
+
export const systemOperationsApplySystemUpdateMutation = (options) => {
|
|
1466
|
+
const mutationOptions = {
|
|
1465
1467
|
mutationFn: async (fnOptions) => {
|
|
1466
1468
|
const { data } = await systemOperationsApplySystemUpdate({
|
|
1467
1469
|
...options,
|
|
@@ -1473,9 +1475,7 @@ export const systemOperationsApplySystemUpdateMutation = (options?: Partial<Opti
|
|
|
1473
1475
|
};
|
|
1474
1476
|
return mutationOptions;
|
|
1475
1477
|
};
|
|
1476
|
-
|
|
1477
|
-
export const unifiedThreadOperationsListAllThreadsQueryKey = (options?: Options<UnifiedThreadOperationsListAllThreadsData>) => createQueryKey('unifiedThreadOperationsListAllThreads', options);
|
|
1478
|
-
|
|
1478
|
+
export const unifiedThreadOperationsListAllThreadsQueryKey = (options) => createQueryKey('unifiedThreadOperationsListAllThreads', options);
|
|
1479
1479
|
/**
|
|
1480
1480
|
* List threads across all non-muted accounts of the caller, ordered by sentDate desc (search mode ranks sender matches first, see below). Each row carries an attached `accountId` (derived from a mailboxId→accountId map at read time) plus the usual `senderTrust` enrichment; `category` is served from the ThreadMessage row. Served by the `byDate` LSI1 (pk = the caller's account config), so the caller can never see another account config's threads.
|
|
1481
1481
|
*
|
|
@@ -1513,7 +1513,7 @@ export const unifiedThreadOperationsListAllThreadsQueryKey = (options?: Options<
|
|
|
1513
1513
|
*
|
|
1514
1514
|
* Counting: `count=true` answers how many CONVERSATIONS match, over the whole scope and independent of `limit`. `results=false` omits the rows, which is how a header total is read without also paying for a page of mail. Conversations rather than rows because that is what this listing renders: a row is per mailbox, so the same mail filed in two folders is two rows sharing a `threadId`, and clients collapse by it. Counting rows would put a third number beside a list that shows a second one.
|
|
1515
1515
|
*/
|
|
1516
|
-
export const unifiedThreadOperationsListAllThreadsOptions = (options
|
|
1516
|
+
export const unifiedThreadOperationsListAllThreadsOptions = (options) => queryOptions({
|
|
1517
1517
|
queryFn: async ({ queryKey, signal }) => {
|
|
1518
1518
|
const { data } = await unifiedThreadOperationsListAllThreads({
|
|
1519
1519
|
...options,
|
|
@@ -1525,9 +1525,7 @@ export const unifiedThreadOperationsListAllThreadsOptions = (options?: Options<U
|
|
|
1525
1525
|
},
|
|
1526
1526
|
queryKey: unifiedThreadOperationsListAllThreadsQueryKey(options)
|
|
1527
1527
|
});
|
|
1528
|
-
|
|
1529
|
-
export const threadDetailOperationsListThreadMessagesQueryKey = (options: Options<ThreadDetailOperationsListThreadMessagesData>) => createQueryKey('threadDetailOperationsListThreadMessages', options);
|
|
1530
|
-
|
|
1528
|
+
export const threadDetailOperationsListThreadMessagesQueryKey = (options) => createQueryKey('threadDetailOperationsListThreadMessages', options);
|
|
1531
1529
|
/**
|
|
1532
1530
|
* Get all messages in a thread, across every mailbox of the account — a conversation spans INBOX, Sent, Archive and any folder the user filed a message in, so it is never scoped to one mailbox. Soft-deleted messages (including anything moved to Trash) are excluded.
|
|
1533
1531
|
*
|
|
@@ -1535,7 +1533,7 @@ export const threadDetailOperationsListThreadMessagesQueryKey = (options: Option
|
|
|
1535
1533
|
*
|
|
1536
1534
|
* Ordering: oldest first, by the date the message was sent, with `threadMessageId` breaking ties. A conversation is read in the order it happened, so a reply always follows the message it answers. Pass `order=desc` for the reverse.
|
|
1537
1535
|
*/
|
|
1538
|
-
export const threadDetailOperationsListThreadMessagesOptions = (options
|
|
1536
|
+
export const threadDetailOperationsListThreadMessagesOptions = (options) => queryOptions({
|
|
1539
1537
|
queryFn: async ({ queryKey, signal }) => {
|
|
1540
1538
|
const { data } = await threadDetailOperationsListThreadMessages({
|
|
1541
1539
|
...options,
|