@remit/data-ports 0.0.71 → 0.0.72
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/package.json +1 -1
- package/src/index.ts +1 -0
- package/src/interfaces/mailbox.ts +2 -1
- package/src/types.ts +4 -0
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type {
|
|
2
2
|
CreateMailboxInput,
|
|
3
|
+
CreateMailboxResult,
|
|
3
4
|
MailboxItem,
|
|
4
5
|
MailboxSubtreeTransitionIntent,
|
|
5
6
|
MailboxTransitionIntent,
|
|
@@ -8,7 +9,7 @@ import type {
|
|
|
8
9
|
} from "../types.js";
|
|
9
10
|
|
|
10
11
|
export interface IMailboxRepository {
|
|
11
|
-
create(input: CreateMailboxInput): Promise<
|
|
12
|
+
create(input: CreateMailboxInput): Promise<CreateMailboxResult>;
|
|
12
13
|
get(accountId: string, mailboxId: string): Promise<MailboxItem>;
|
|
13
14
|
get(accountId: string, mailboxIds: string[]): Promise<MailboxItem[]>;
|
|
14
15
|
/**
|
package/src/types.ts
CHANGED
|
@@ -386,6 +386,10 @@ export type CreateMailboxInput = Omit<
|
|
|
386
386
|
syncStatus?: MailboxItem["syncStatus"];
|
|
387
387
|
};
|
|
388
388
|
|
|
389
|
+
export type CreateMailboxResult =
|
|
390
|
+
| { outcome: "Created"; mailbox: MailboxItem }
|
|
391
|
+
| { outcome: "PathTaken" };
|
|
392
|
+
|
|
389
393
|
/**
|
|
390
394
|
* Everything about a mailbox that is not its mutation state.
|
|
391
395
|
*
|