@remit/api-http-client 0.0.61 → 0.0.62
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/@tanstack/react-query.gen.ts +3 -0
- package/package.json +1 -1
- package/sdk.gen.ts +3 -0
- package/types.gen.ts +19 -0
|
@@ -321,6 +321,9 @@ export const mailboxOperationsListMailboxesOptions = (options: Options<MailboxOp
|
|
|
321
321
|
queryKey: mailboxOperationsListMailboxesQueryKey(options)
|
|
322
322
|
});
|
|
323
323
|
|
|
324
|
+
/**
|
|
325
|
+
* Create a folder. Refused with 400 when the account already has a folder at that path.
|
|
326
|
+
*/
|
|
324
327
|
export const mailboxOperationsCreateMailboxMutation = (options?: Partial<Options<MailboxOperationsCreateMailboxData>>): UseMutationOptions<MailboxOperationsCreateMailboxResponse, MailboxOperationsCreateMailboxError, Options<MailboxOperationsCreateMailboxData>> => {
|
|
325
328
|
const mutationOptions: UseMutationOptions<MailboxOperationsCreateMailboxResponse, MailboxOperationsCreateMailboxError, Options<MailboxOperationsCreateMailboxData>> = {
|
|
326
329
|
mutationFn: async (fnOptions) => {
|
package/package.json
CHANGED
package/sdk.gen.ts
CHANGED
|
@@ -182,6 +182,9 @@ export const mailboxOperationsListMailboxes = <ThrowOnError extends boolean = fa
|
|
|
182
182
|
...options
|
|
183
183
|
});
|
|
184
184
|
|
|
185
|
+
/**
|
|
186
|
+
* Create a folder. Refused with 400 when the account already has a folder at that path.
|
|
187
|
+
*/
|
|
185
188
|
export const mailboxOperationsCreateMailbox = <ThrowOnError extends boolean = false>(options: Options<MailboxOperationsCreateMailboxData, ThrowOnError>): RequestResult<MailboxOperationsCreateMailboxResponses, MailboxOperationsCreateMailboxErrors, ThrowOnError> => (options.client ?? client).post<MailboxOperationsCreateMailboxResponses, MailboxOperationsCreateMailboxErrors, ThrowOnError>({
|
|
186
189
|
security: [{ name: 'Authorization', type: 'apiKey' }],
|
|
187
190
|
url: '/accounts/{accountId}/mailboxes',
|
package/types.gen.ts
CHANGED
|
@@ -4763,6 +4763,25 @@ export type MailboxOperationsCreateMailboxData = {
|
|
|
4763
4763
|
};
|
|
4764
4764
|
|
|
4765
4765
|
export type MailboxOperationsCreateMailboxErrors = {
|
|
4766
|
+
/**
|
|
4767
|
+
* The request was refused as malformed or contradictory. `code` is
|
|
4768
|
+
* `invalid_request` where nothing more specific is known, and the refusal's own
|
|
4769
|
+
* token where there is one.
|
|
4770
|
+
*
|
|
4771
|
+
* The calendar surface answers with the reason it read the request by:
|
|
4772
|
+
* `invalid_window`, `invalid_scope`, `invalid_url_segment`, `url_segment_taken`,
|
|
4773
|
+
* `unknown_time_zone` and `default_calendar_undeletable` on the collection and
|
|
4774
|
+
* the query, and, for a VCALENDAR it could not accept,
|
|
4775
|
+
* `malformed_icalendar`, `not_a_calendar`, `unsupported_component`, `no_event`,
|
|
4776
|
+
* `no_master_event`, `multiple_master_events`, `missing_uid`, `mismatched_uid`,
|
|
4777
|
+
* `missing_dt_start`, `backwards_end`, `invalid_date_time`,
|
|
4778
|
+
* `invalid_recurrence_rule`, `missing_recurrence_id`, `not_recurring` and
|
|
4779
|
+
* `unknown_occurrence`.
|
|
4780
|
+
*
|
|
4781
|
+
* `errors` is present only when the request failed schema validation before any
|
|
4782
|
+
* handler ran, and names every field that was refused.
|
|
4783
|
+
*/
|
|
4784
|
+
400: ValidationError;
|
|
4766
4785
|
/**
|
|
4767
4786
|
* The request carried no usable credential. `code` is `unauthorized`.
|
|
4768
4787
|
*/
|