@burdenoff/microfe-integrations 2026.1102.2 → 2026.1107.2
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/generated/global-types.d.ts +406 -203
- package/dist/generated/global-types.d.ts.map +1 -1
- package/dist/generated/wspace-operations.d.ts +412 -0
- package/dist/generated/wspace-operations.d.ts.map +1 -1
- package/dist/generated/wspace-operations.js +230 -100
- package/dist/generated/wspace-operations.js.map +1 -1
- package/dist/generated/wspace-types.d.ts +9819 -363
- package/dist/generated/wspace-types.d.ts.map +1 -1
- package/dist/generated/wspace-types.js +11 -3
- package/dist/generated/wspace-types.js.map +1 -1
- package/dist/integrations/components/ConnectorSubmissionCard.d.ts.map +1 -1
- package/dist/integrations/components/ConnectorSubmissionCard.js +137 -83
- package/dist/integrations/components/ConnectorSubmissionCard.js.map +1 -1
- package/dist/integrations/components/MailMessageBody.d.ts +7 -0
- package/dist/integrations/components/MailMessageBody.d.ts.map +1 -0
- package/dist/integrations/components/MailMessageBody.js +175 -0
- package/dist/integrations/components/MailMessageBody.js.map +1 -0
- package/dist/integrations/hooks/useConnectorSubmissions.d.ts +9 -1
- package/dist/integrations/hooks/useConnectorSubmissions.d.ts.map +1 -1
- package/dist/integrations/hooks/useConnectorSubmissions.js +35 -25
- package/dist/integrations/hooks/useConnectorSubmissions.js.map +1 -1
- package/dist/integrations/hooks/useMailbox.d.ts +65 -4
- package/dist/integrations/hooks/useMailbox.d.ts.map +1 -1
- package/dist/integrations/hooks/useMailbox.js +108 -29
- package/dist/integrations/hooks/useMailbox.js.map +1 -1
- package/dist/integrations/pages/ConnectorSubmissionsPage.d.ts.map +1 -1
- package/dist/integrations/pages/ConnectorSubmissionsPage.js +606 -319
- package/dist/integrations/pages/ConnectorSubmissionsPage.js.map +1 -1
- package/dist/integrations/pages/MailboxInbox.d.ts.map +1 -1
- package/dist/integrations/pages/MailboxInbox.js +418 -251
- package/dist/integrations/pages/MailboxInbox.js.map +1 -1
- package/dist/integrations/store/mailboxStore.d.ts +3 -0
- package/dist/integrations/store/mailboxStore.d.ts.map +1 -1
- package/dist/integrations/store/mailboxStore.js +7 -0
- package/dist/integrations/store/mailboxStore.js.map +1 -1
- package/dist/integrations/utils/mailHtml.d.ts +33 -0
- package/dist/integrations/utils/mailHtml.d.ts.map +1 -0
- package/dist/integrations/utils/mailHtml.js +127 -0
- package/dist/integrations/utils/mailHtml.js.map +1 -0
- package/dist/node_modules/dompurify/dist/purify.es.js +894 -0
- package/dist/node_modules/dompurify/dist/purify.es.js.map +1 -0
- package/package.json +5 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ConnectorSubmissionFieldsFragment } from '../../generated/wspace-operations';
|
|
2
|
-
import { ConnectorSubmissionStatus, SubmitConnectorInput } from '../../generated/wspace-types';
|
|
2
|
+
import { ConnectorOAuthClientInput, ConnectorSubmissionStatus, SubmitConnectorInput } from '../../generated/wspace-types';
|
|
3
3
|
|
|
4
4
|
export type ConnectorSubmission = ConnectorSubmissionFieldsFragment;
|
|
5
5
|
export type ConnectorSubmissionInput = SubmitConnectorInput;
|
|
@@ -39,6 +39,14 @@ export declare function useWithdrawConnectorSubmission(): {
|
|
|
39
39
|
withdraw: (id: string) => Promise<any>;
|
|
40
40
|
loading: boolean;
|
|
41
41
|
};
|
|
42
|
+
/**
|
|
43
|
+
* Replace the OAuth client of one of the caller's OAuth submissions (BOFF-10637).
|
|
44
|
+
* The secret is write-only: the result only says that one is stored.
|
|
45
|
+
*/
|
|
46
|
+
export declare function useUpdateConnectorSubmissionOAuthClient(): {
|
|
47
|
+
updateOAuthClient: (id: string, input: ConnectorOAuthClientInput) => Promise<any>;
|
|
48
|
+
loading: boolean;
|
|
49
|
+
};
|
|
42
50
|
export declare function useReviewConnectorSubmission(): {
|
|
43
51
|
approve: (id: string, notes: string | null) => Promise<any>;
|
|
44
52
|
reject: (id: string, reason: string) => Promise<any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useConnectorSubmissions.d.ts","sourceRoot":"","sources":["../../../src/integrations/hooks/useConnectorSubmissions.ts"],"names":[],"mappings":"AASA,OAAO,EACL,KAAK,iCAAiC,
|
|
1
|
+
{"version":3,"file":"useConnectorSubmissions.d.ts","sourceRoot":"","sources":["../../../src/integrations/hooks/useConnectorSubmissions.ts"],"names":[],"mappings":"AASA,OAAO,EACL,KAAK,iCAAiC,EAQvC,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACL,KAAK,yBAAyB,EAC9B,yBAAyB,EACzB,KAAK,oBAAoB,EAC1B,MAAM,8BAA8B,CAAC;AAEtC,MAAM,MAAM,mBAAmB,GAAG,iCAAiC,CAAC;AACpE,MAAM,MAAM,wBAAwB,GAAG,oBAAoB,CAAC;AAC5D,OAAO,EAAE,yBAAyB,EAAE,CAAC;AAErC,qDAAqD;AACrD,eAAO,MAAM,8BAA8B,KAAK,CAAC;AAOjD,8DAA8D;AAC9D,wBAAgB,yBAAyB,CAAC,MAAM,SAAI;;;;;;;;;;EAkBnD;AAED,uFAAuF;AACvF,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,yBAAyB,GAAG,IAAI,EAAE,MAAM,SAAI;;;;;;;;;;;EAiB3F;AAED,wBAAgB,kBAAkB;6BAGhB,oBAAoB;;EAOrC;AAED,wBAAgB,8BAA8B;mBAK/B,MAAM;;EAOpB;AAED;;;GAGG;AACH,wBAAgB,uCAAuC;4BAKxC,MAAM,SAAS,yBAAyB;;EAOtD;AAED,wBAAgB,4BAA4B;kBAQ7B,MAAM,SAAS,MAAM,GAAG,IAAI;iBAO5B,MAAM,UAAU,MAAM;;EAOpC"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { useApproveConnectorSubmissionMutation as e, useConnectorSubmissionsQuery as t, useMyConnectorSubmissionsQuery as n, useRejectConnectorSubmissionMutation as r, useSubmitConnectorMutation as i,
|
|
1
|
+
import { useApproveConnectorSubmissionMutation as e, useConnectorSubmissionsQuery as t, useMyConnectorSubmissionsQuery as n, useRejectConnectorSubmissionMutation as r, useSubmitConnectorMutation as i, useUpdateConnectorSubmissionOAuthClientMutation as a, useWithdrawConnectorSubmissionMutation as o } from "../../generated/wspace-operations.js";
|
|
2
2
|
import "../../generated/wspace-types.js";
|
|
3
|
-
import { useCallback as
|
|
4
|
-
var
|
|
5
|
-
function
|
|
3
|
+
import { useCallback as s } from "react";
|
|
4
|
+
var c = ["MyConnectorSubmissions", "ConnectorSubmissions"];
|
|
5
|
+
function l(e) {
|
|
6
6
|
return {
|
|
7
7
|
limit: 25,
|
|
8
8
|
offset: Math.max(0, Math.trunc(e))
|
|
9
9
|
};
|
|
10
10
|
}
|
|
11
|
-
function
|
|
11
|
+
function u(e = 0) {
|
|
12
12
|
let { data: t, dataState: r, loading: i, error: a, refetch: o } = n({
|
|
13
|
-
variables: { pagination:
|
|
13
|
+
variables: { pagination: l(e) },
|
|
14
14
|
fetchPolicy: "cache-and-network",
|
|
15
15
|
errorPolicy: "all"
|
|
16
16
|
}), s = r === "complete" ? t : null;
|
|
@@ -23,51 +23,61 @@ function l(e = 0) {
|
|
|
23
23
|
refetch: o
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function d(e, n = 0) {
|
|
27
27
|
let { data: r, dataState: i, loading: a, error: o, refetch: s } = t({
|
|
28
28
|
variables: {
|
|
29
29
|
filter: e ? { status: e } : null,
|
|
30
|
-
pagination:
|
|
30
|
+
pagination: l(n)
|
|
31
31
|
},
|
|
32
32
|
fetchPolicy: "cache-and-network",
|
|
33
33
|
errorPolicy: "all"
|
|
34
|
-
}),
|
|
34
|
+
}), c = i === "complete" ? r : null;
|
|
35
35
|
return {
|
|
36
|
-
submissions:
|
|
37
|
-
total:
|
|
38
|
-
hasMore:
|
|
39
|
-
stats:
|
|
36
|
+
submissions: c?.connectorSubmissions.items ?? [],
|
|
37
|
+
total: c?.connectorSubmissions.total ?? 0,
|
|
38
|
+
hasMore: c?.connectorSubmissions.hasMore ?? !1,
|
|
39
|
+
stats: c?.connectorSubmissionReviewStats ?? null,
|
|
40
40
|
loading: a,
|
|
41
41
|
error: o,
|
|
42
42
|
refetch: s
|
|
43
43
|
};
|
|
44
44
|
}
|
|
45
|
-
function
|
|
46
|
-
let [e, { loading: t }] = i({ refetchQueries:
|
|
45
|
+
function f() {
|
|
46
|
+
let [e, { loading: t }] = i({ refetchQueries: c });
|
|
47
47
|
return {
|
|
48
|
-
submitConnector:
|
|
48
|
+
submitConnector: s(async (t) => (await e({ variables: { input: t } })).data?.submitConnector ?? null, [e]),
|
|
49
49
|
loading: t
|
|
50
50
|
};
|
|
51
51
|
}
|
|
52
|
-
function
|
|
53
|
-
let [e, { loading: t }] =
|
|
52
|
+
function p() {
|
|
53
|
+
let [e, { loading: t }] = o({ refetchQueries: c });
|
|
54
54
|
return {
|
|
55
|
-
withdraw:
|
|
55
|
+
withdraw: s(async (t) => (await e({ variables: { id: t } })).data?.withdrawConnectorSubmission ?? null, [e]),
|
|
56
56
|
loading: t
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function m() {
|
|
60
|
+
let [e, { loading: t }] = a({ refetchQueries: c });
|
|
61
|
+
return {
|
|
62
|
+
updateOAuthClient: s(async (t, n) => (await e({ variables: {
|
|
63
|
+
id: t,
|
|
64
|
+
input: n
|
|
65
|
+
} })).data?.updateConnectorSubmissionOAuthClient ?? null, [e]),
|
|
66
|
+
loading: t
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
function h() {
|
|
60
70
|
let [t, { loading: n }] = e({ refetchQueries: [
|
|
61
|
-
...
|
|
71
|
+
...c,
|
|
62
72
|
"GetProviders",
|
|
63
73
|
"GetProviderCatalog"
|
|
64
|
-
] }), [i, { loading: a }] = r({ refetchQueries:
|
|
74
|
+
] }), [i, { loading: a }] = r({ refetchQueries: c });
|
|
65
75
|
return {
|
|
66
|
-
approve:
|
|
76
|
+
approve: s(async (e, n) => (await t({ variables: {
|
|
67
77
|
id: e,
|
|
68
78
|
notes: n
|
|
69
79
|
} })).data?.approveConnectorSubmission ?? null, [t]),
|
|
70
|
-
reject:
|
|
80
|
+
reject: s(async (e, t) => (await i({ variables: {
|
|
71
81
|
id: e,
|
|
72
82
|
reason: t
|
|
73
83
|
} })).data?.rejectConnectorSubmission ?? null, [i]),
|
|
@@ -75,6 +85,6 @@ function p() {
|
|
|
75
85
|
};
|
|
76
86
|
}
|
|
77
87
|
//#endregion
|
|
78
|
-
export {
|
|
88
|
+
export { d as useConnectorReviewQueue, u as useMyConnectorSubmissions, h as useReviewConnectorSubmission, f as useSubmitConnector, m as useUpdateConnectorSubmissionOAuthClient, p as useWithdrawConnectorSubmission };
|
|
79
89
|
|
|
80
90
|
//# sourceMappingURL=useConnectorSubmissions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useConnectorSubmissions.js","names":[],"sources":["../../../src/integrations/hooks/useConnectorSubmissions.ts"],"sourcesContent":["/**\n * Third-party connector submissions (BOFF-4417).\n *\n * Developers submit connectors for the integrations catalog and follow their\n * review; platform reviewers (super admins) work the review queue. The service\n * scopes the developer queries to the caller, so these hooks carry no ids.\n */\nimport { useCallback } from 'react';\n\nimport {\n type ConnectorSubmissionFieldsFragment,\n useApproveConnectorSubmissionMutation,\n useConnectorSubmissionsQuery,\n useMyConnectorSubmissionsQuery,\n useRejectConnectorSubmissionMutation,\n useSubmitConnectorMutation,\n useWithdrawConnectorSubmissionMutation,\n} from '../../generated/wspace-operations';\nimport { ConnectorSubmissionStatus
|
|
1
|
+
{"version":3,"file":"useConnectorSubmissions.js","names":[],"sources":["../../../src/integrations/hooks/useConnectorSubmissions.ts"],"sourcesContent":["/**\n * Third-party connector submissions (BOFF-4417).\n *\n * Developers submit connectors for the integrations catalog and follow their\n * review; platform reviewers (super admins) work the review queue. The service\n * scopes the developer queries to the caller, so these hooks carry no ids.\n */\nimport { useCallback } from 'react';\n\nimport {\n type ConnectorSubmissionFieldsFragment,\n useApproveConnectorSubmissionMutation,\n useConnectorSubmissionsQuery,\n useMyConnectorSubmissionsQuery,\n useRejectConnectorSubmissionMutation,\n useSubmitConnectorMutation,\n useUpdateConnectorSubmissionOAuthClientMutation,\n useWithdrawConnectorSubmissionMutation,\n} from '../../generated/wspace-operations';\nimport {\n type ConnectorOAuthClientInput,\n ConnectorSubmissionStatus,\n type SubmitConnectorInput,\n} from '../../generated/wspace-types';\n\nexport type ConnectorSubmission = ConnectorSubmissionFieldsFragment;\nexport type ConnectorSubmissionInput = SubmitConnectorInput;\nexport { ConnectorSubmissionStatus };\n\n/** Rows per page. The service caps a page at 100. */\nexport const CONNECTOR_SUBMISSION_PAGE_SIZE = 25;\nconst REFETCH = ['MyConnectorSubmissions', 'ConnectorSubmissions'];\n\nfunction page(offset: number) {\n return { limit: CONNECTOR_SUBMISSION_PAGE_SIZE, offset: Math.max(0, Math.trunc(offset)) };\n}\n\n/** One page of the caller's own submissions, newest first. */\nexport function useMyConnectorSubmissions(offset = 0) {\n const { data, dataState, loading, error, refetch } = useMyConnectorSubmissionsQuery({\n variables: { pagination: page(offset) },\n fetchPolicy: 'cache-and-network',\n errorPolicy: 'all',\n });\n // Only a complete result carries fully typed rows; partial data (an error\n // with errorPolicy 'all') is treated as empty so the page shows the error.\n const complete = dataState === 'complete' ? data : null;\n const submissions: ConnectorSubmission[] = complete?.myConnectorSubmissions.items ?? [];\n return {\n submissions,\n total: complete?.myConnectorSubmissions.total ?? 0,\n hasMore: complete?.myConnectorSubmissions.hasMore ?? false,\n loading,\n error,\n refetch,\n };\n}\n\n/** One page of the review queue (oldest first) and its counters. Super admins only. */\nexport function useConnectorReviewQueue(status: ConnectorSubmissionStatus | null, offset = 0) {\n const { data, dataState, loading, error, refetch } = useConnectorSubmissionsQuery({\n variables: { filter: status ? { status } : null, pagination: page(offset) },\n fetchPolicy: 'cache-and-network',\n errorPolicy: 'all',\n });\n const complete = dataState === 'complete' ? data : null;\n const submissions: ConnectorSubmission[] = complete?.connectorSubmissions.items ?? [];\n return {\n submissions,\n total: complete?.connectorSubmissions.total ?? 0,\n hasMore: complete?.connectorSubmissions.hasMore ?? false,\n stats: complete?.connectorSubmissionReviewStats ?? null,\n loading,\n error,\n refetch,\n };\n}\n\nexport function useSubmitConnector() {\n const [mutate, { loading }] = useSubmitConnectorMutation({ refetchQueries: REFETCH });\n const submitConnector = useCallback(\n async (input: SubmitConnectorInput) => {\n const result = await mutate({ variables: { input } });\n return result.data?.submitConnector ?? null;\n },\n [mutate]\n );\n return { submitConnector, loading };\n}\n\nexport function useWithdrawConnectorSubmission() {\n const [mutate, { loading }] = useWithdrawConnectorSubmissionMutation({\n refetchQueries: REFETCH,\n });\n const withdraw = useCallback(\n async (id: string) => {\n const result = await mutate({ variables: { id } });\n return result.data?.withdrawConnectorSubmission ?? null;\n },\n [mutate]\n );\n return { withdraw, loading };\n}\n\n/**\n * Replace the OAuth client of one of the caller's OAuth submissions (BOFF-10637).\n * The secret is write-only: the result only says that one is stored.\n */\nexport function useUpdateConnectorSubmissionOAuthClient() {\n const [mutate, { loading }] = useUpdateConnectorSubmissionOAuthClientMutation({\n refetchQueries: REFETCH,\n });\n const updateOAuthClient = useCallback(\n async (id: string, input: ConnectorOAuthClientInput) => {\n const result = await mutate({ variables: { id, input } });\n return result.data?.updateConnectorSubmissionOAuthClient ?? null;\n },\n [mutate]\n );\n return { updateOAuthClient, loading };\n}\n\nexport function useReviewConnectorSubmission() {\n const [approveMutation, { loading: approving }] = useApproveConnectorSubmissionMutation({\n refetchQueries: [...REFETCH, 'GetProviders', 'GetProviderCatalog'],\n });\n const [rejectMutation, { loading: rejecting }] = useRejectConnectorSubmissionMutation({\n refetchQueries: REFETCH,\n });\n const approve = useCallback(\n async (id: string, notes: string | null) => {\n const result = await approveMutation({ variables: { id, notes } });\n return result.data?.approveConnectorSubmission ?? null;\n },\n [approveMutation]\n );\n const reject = useCallback(\n async (id: string, reason: string) => {\n const result = await rejectMutation({ variables: { id, reason } });\n return result.data?.rejectConnectorSubmission ?? null;\n },\n [rejectMutation]\n );\n return { approve, reject, loading: approving || rejecting };\n}\n"],"mappings":";;;AA+BA,IAAM,IAAU,CAAC,0BAA0B,uBAAuB;AAElE,SAAS,EAAK,GAAgB;AAC5B,QAAO;EAAE,OAAA;EAAuC,QAAQ,KAAK,IAAI,GAAG,KAAK,MAAM,EAAO,CAAC;EAAE;;AAI3F,SAAgB,EAA0B,IAAS,GAAG;CACpD,IAAM,EAAE,SAAM,cAAW,YAAS,UAAO,eAAY,EAA+B;EAClF,WAAW,EAAE,YAAY,EAAK,EAAO,EAAE;EACvC,aAAa;EACb,aAAa;EACd,CAAC,EAGI,IAAW,MAAc,aAAa,IAAO;AAEnD,QAAO;EACL,aAFyC,GAAU,uBAAuB,SAAS,EAAE;EAGrF,OAAO,GAAU,uBAAuB,SAAS;EACjD,SAAS,GAAU,uBAAuB,WAAW;EACrD;EACA;EACA;EACD;;AAIH,SAAgB,EAAwB,GAA0C,IAAS,GAAG;CAC5F,IAAM,EAAE,SAAM,cAAW,YAAS,UAAO,eAAY,EAA6B;EAChF,WAAW;GAAE,QAAQ,IAAS,EAAE,WAAQ,GAAG;GAAM,YAAY,EAAK,EAAO;GAAE;EAC3E,aAAa;EACb,aAAa;EACd,CAAC,EACI,IAAW,MAAc,aAAa,IAAO;AAEnD,QAAO;EACL,aAFyC,GAAU,qBAAqB,SAAS,EAAE;EAGnF,OAAO,GAAU,qBAAqB,SAAS;EAC/C,SAAS,GAAU,qBAAqB,WAAW;EACnD,OAAO,GAAU,kCAAkC;EACnD;EACA;EACA;EACD;;AAGH,SAAgB,IAAqB;CACnC,IAAM,CAAC,GAAQ,EAAE,gBAAa,EAA2B,EAAE,gBAAgB,GAAS,CAAC;AAQrF,QAAO;EAAE,iBAPe,EACtB,OAAO,OACU,MAAM,EAAO,EAAE,WAAW,EAAE,UAAO,EAAE,CAAC,EACvC,MAAM,mBAAmB,MAEzC,CAAC,EAAO,CACT;EACyB;EAAS;;AAGrC,SAAgB,IAAiC;CAC/C,IAAM,CAAC,GAAQ,EAAE,gBAAa,EAAuC,EACnE,gBAAgB,GACjB,CAAC;AAQF,QAAO;EAAE,UAPQ,EACf,OAAO,OACU,MAAM,EAAO,EAAE,WAAW,EAAE,OAAI,EAAE,CAAC,EACpC,MAAM,+BAA+B,MAErD,CAAC,EAAO,CACT;EACkB;EAAS;;AAO9B,SAAgB,IAA0C;CACxD,IAAM,CAAC,GAAQ,EAAE,gBAAa,EAAgD,EAC5E,gBAAgB,GACjB,CAAC;AAQF,QAAO;EAAE,mBAPiB,EACxB,OAAO,GAAY,OACF,MAAM,EAAO,EAAE,WAAW;GAAE;GAAI;GAAO,EAAE,CAAC,EAC3C,MAAM,wCAAwC,MAE9D,CAAC,EAAO,CACT;EAC2B;EAAS;;AAGvC,SAAgB,IAA+B;CAC7C,IAAM,CAAC,GAAiB,EAAE,SAAS,OAAe,EAAsC,EACtF,gBAAgB;EAAC,GAAG;EAAS;EAAgB;EAAqB,EACnE,CAAC,EACI,CAAC,GAAgB,EAAE,SAAS,OAAe,EAAqC,EACpF,gBAAgB,GACjB,CAAC;AAeF,QAAO;EAAE,SAdO,EACd,OAAO,GAAY,OACF,MAAM,EAAgB,EAAE,WAAW;GAAE;GAAI;GAAO,EAAE,CAAC,EACpD,MAAM,8BAA8B,MAEpD,CAAC,EAAgB,CAClB;EAQiB,QAPH,EACb,OAAO,GAAY,OACF,MAAM,EAAe,EAAE,WAAW;GAAE;GAAI;GAAQ,EAAE,CAAC,EACpD,MAAM,6BAA6B,MAEnD,CAAC,EAAe,CACjB;EACyB,SAAS,KAAa;EAAW"}
|
|
@@ -1,19 +1,30 @@
|
|
|
1
|
-
import { MailboxFolder } from '../../generated/wspace-types';
|
|
2
|
-
import { MailboxAccountsQuery, MailboxMessagesQuery, MailboxThreadQuery, SendMailboxMessageMutation } from '../../generated/wspace-operations';
|
|
1
|
+
import { MailboxFolder, MailboxKind, MailboxLabelKind } from '../../generated/wspace-types';
|
|
2
|
+
import { MailboxAccountsQuery, MailboxAttachmentQuery, MailboxLabelsQuery, MailboxMessagesQuery, MailboxThreadQuery, SendMailboxMessageMutation } from '../../generated/wspace-operations';
|
|
3
3
|
|
|
4
|
-
export { MailboxFolder };
|
|
4
|
+
export { MailboxFolder, MailboxKind, MailboxLabelKind };
|
|
5
|
+
/** Files on one outgoing message; matches the service limit. */
|
|
6
|
+
export declare const MAILBOX_MAX_ATTACHMENTS = 10;
|
|
7
|
+
/**
|
|
8
|
+
* Total attachment bytes per outgoing message, matching the service caps:
|
|
9
|
+
* Gmail takes a 25 MB message, Microsoft Graph 4 MB per request.
|
|
10
|
+
*/
|
|
11
|
+
export declare const MAILBOX_SEND_ATTACHMENT_BYTES: Readonly<Record<MailboxKind, number>>;
|
|
5
12
|
export declare const MAILBOX_PAGE_SIZE = 25;
|
|
6
13
|
export type MailboxAccount = MailboxAccountsQuery['mailboxAccounts'][number];
|
|
7
14
|
export type MailboxMessageSummary = MailboxMessagesQuery['mailboxMessages']['messages'][number];
|
|
8
15
|
export type MailboxThread = NonNullable<MailboxThreadQuery['mailboxThread']>;
|
|
9
16
|
export type MailboxSendResult = SendMailboxMessageMutation['sendMailboxMessage'];
|
|
17
|
+
export type MailboxLabel = MailboxLabelsQuery['mailboxLabels'][number];
|
|
18
|
+
export type MailboxThreadMessage = MailboxThread['messages'][number];
|
|
19
|
+
export type MailboxAttachment = MailboxThreadMessage['attachments'][number];
|
|
20
|
+
export type MailboxAttachmentContent = MailboxAttachmentQuery['mailboxAttachment'];
|
|
10
21
|
export declare function useMailboxAccounts(): {
|
|
11
22
|
accounts: {
|
|
12
23
|
__typename?: "MailboxAccount";
|
|
13
24
|
connectionId: string;
|
|
14
25
|
name: string;
|
|
15
26
|
providerKey: string;
|
|
16
|
-
kind:
|
|
27
|
+
kind: MailboxKind;
|
|
17
28
|
emailAddress?: string | null;
|
|
18
29
|
status: import('../../generated/wspace-types').ConnectionStatus;
|
|
19
30
|
}[];
|
|
@@ -28,6 +39,8 @@ export declare function useMailboxAccounts(): {
|
|
|
28
39
|
export declare function useMailboxMessages(options: {
|
|
29
40
|
connectionId: string | null;
|
|
30
41
|
folder: MailboxFolder;
|
|
42
|
+
/** A label or folder from useMailboxLabels; replaces `folder` when set. */
|
|
43
|
+
folderId: string | null;
|
|
31
44
|
query: string;
|
|
32
45
|
pageToken: string | null;
|
|
33
46
|
}): {
|
|
@@ -73,6 +86,16 @@ export declare function useMailboxThread(connectionId: string | null, threadId:
|
|
|
73
86
|
isUnread: boolean;
|
|
74
87
|
hasAttachments: boolean;
|
|
75
88
|
bodyText: string;
|
|
89
|
+
bodyHtml?: string | null;
|
|
90
|
+
attachments: Array<{
|
|
91
|
+
__typename?: "MailboxAttachment";
|
|
92
|
+
id: string;
|
|
93
|
+
filename: string;
|
|
94
|
+
mimeType: string;
|
|
95
|
+
size: number;
|
|
96
|
+
isInline: boolean;
|
|
97
|
+
contentId?: string | null;
|
|
98
|
+
}>;
|
|
76
99
|
from?: {
|
|
77
100
|
__typename?: "MailboxAddress";
|
|
78
101
|
name?: string | null;
|
|
@@ -97,6 +120,43 @@ export declare function useMailboxThread(connectionId: string | null, threadId:
|
|
|
97
120
|
error?: import('@apollo/client').ErrorLike;
|
|
98
121
|
}>;
|
|
99
122
|
};
|
|
123
|
+
export declare function useMailboxLabels(connectionId: string | null): {
|
|
124
|
+
labels: {
|
|
125
|
+
__typename?: "MailboxLabel";
|
|
126
|
+
id: string;
|
|
127
|
+
name: string;
|
|
128
|
+
kind: MailboxLabelKind;
|
|
129
|
+
unreadCount?: number | null;
|
|
130
|
+
totalCount?: number | null;
|
|
131
|
+
}[];
|
|
132
|
+
loading: boolean;
|
|
133
|
+
error: import('@apollo/client').ErrorLike | undefined;
|
|
134
|
+
};
|
|
135
|
+
/** Fetches one received attachment's bytes. Never cached: files can be large. */
|
|
136
|
+
export declare function useMailboxAttachmentContent(): (connectionId: string, messageId: string, attachmentId: string) => Promise<{
|
|
137
|
+
__typename?: "MailboxAttachmentContent";
|
|
138
|
+
filename: string;
|
|
139
|
+
mimeType: string;
|
|
140
|
+
size: number;
|
|
141
|
+
contentBase64: string;
|
|
142
|
+
}>;
|
|
143
|
+
export declare function useMailboxThreadActions(): {
|
|
144
|
+
archiveThread: (connectionId: string, threadId: string) => Promise<void>;
|
|
145
|
+
trashThread: (connectionId: string, threadId: string) => Promise<void>;
|
|
146
|
+
busy: boolean;
|
|
147
|
+
};
|
|
148
|
+
/** A file uploaded to Files for an outgoing message. */
|
|
149
|
+
export interface PendingMailAttachment {
|
|
150
|
+
fileId: string;
|
|
151
|
+
name: string;
|
|
152
|
+
size: number;
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* Uploads a file to wspace-files-svc (initiateUpload, PUT to the presigned
|
|
156
|
+
* URL, completeUpload) so sendMailboxMessage can attach it by id. The service
|
|
157
|
+
* reads it back as the caller; the bytes never pass through the gateway.
|
|
158
|
+
*/
|
|
159
|
+
export declare function useUploadMailAttachment(): (file: File) => Promise<PendingMailAttachment>;
|
|
100
160
|
export interface SendMailInput {
|
|
101
161
|
connectionId: string;
|
|
102
162
|
to: string[];
|
|
@@ -104,6 +164,7 @@ export interface SendMailInput {
|
|
|
104
164
|
subject?: string;
|
|
105
165
|
bodyText: string;
|
|
106
166
|
replyToMessageId?: string;
|
|
167
|
+
attachmentFileIds?: string[];
|
|
107
168
|
}
|
|
108
169
|
export declare function useSendMail(): {
|
|
109
170
|
send: (input: SendMailInput) => Promise<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useMailbox.d.ts","sourceRoot":"","sources":["../../../src/integrations/hooks/useMailbox.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"useMailbox.d.ts","sourceRoot":"","sources":["../../../src/integrations/hooks/useMailbox.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,gBAAgB,EAAE,MA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,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;CAC9B;AAED,wBAAgB,WAAW;kBAGT,aAAa;;;;;;EAqB9B;AAED,wBAAgB,cAAc,mBAGL,MAAM,aAAa,MAAM,QAAQ,OAAO,mBAKhE;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,CAKvD"}
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import { useIntegrations as e } from "../providers/IntegrationsProvider.js";
|
|
2
|
-
import {
|
|
3
|
-
import "../../generated/wspace-types.js";
|
|
4
|
-
import { useCallback as
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
import { useArchiveMailboxThreadMutation as t, useMailboxAccountsQuery as n, useMailboxAttachmentCompleteUploadMutation as r, useMailboxAttachmentInitiateUploadMutation as i, useMailboxAttachmentLazyQuery as a, useMailboxLabelsQuery as o, useMailboxMessagesQuery as s, useMailboxThreadQuery as c, useSendMailboxMessageMutation as l, useSetMailboxMessageReadMutation as u, useTrashMailboxThreadMutation as d } from "../../generated/wspace-operations.js";
|
|
3
|
+
import { MailboxKind as f } from "../../generated/wspace-types.js";
|
|
4
|
+
import { useCallback as p } from "react";
|
|
5
|
+
//#region src/integrations/hooks/useMailbox.ts
|
|
6
|
+
var m = {
|
|
7
|
+
[f.Gmail]: 17 * 1024 * 1024,
|
|
8
|
+
[f.Outlook]: 2621440
|
|
9
|
+
};
|
|
10
|
+
function h() {
|
|
11
|
+
let { workspaceId: t } = e(), { data: r, loading: i, error: a, refetch: o } = n({
|
|
12
|
+
skip: !t,
|
|
8
13
|
errorPolicy: "all",
|
|
9
14
|
fetchPolicy: "cache-and-network"
|
|
10
15
|
}), s = r;
|
|
@@ -16,11 +21,12 @@ function s() {
|
|
|
16
21
|
refetch: o
|
|
17
22
|
};
|
|
18
23
|
}
|
|
19
|
-
function
|
|
20
|
-
let { connectionId: t, folder: r, query: i, pageToken: a } = e, { data: o, loading:
|
|
24
|
+
function g(e) {
|
|
25
|
+
let { connectionId: t, folder: n, folderId: r, query: i, pageToken: a } = e, { data: o, loading: c, error: l, refetch: u } = s({
|
|
21
26
|
variables: { input: {
|
|
22
27
|
connectionId: t ?? "",
|
|
23
|
-
folder:
|
|
28
|
+
folder: n,
|
|
29
|
+
folderId: r,
|
|
24
30
|
query: i || null,
|
|
25
31
|
pageToken: a,
|
|
26
32
|
limit: 25
|
|
@@ -28,17 +34,17 @@ function c(e) {
|
|
|
28
34
|
skip: !t,
|
|
29
35
|
errorPolicy: "none",
|
|
30
36
|
fetchPolicy: "network-only"
|
|
31
|
-
}),
|
|
37
|
+
}), d = o;
|
|
32
38
|
return {
|
|
33
|
-
messages:
|
|
34
|
-
nextPageToken:
|
|
35
|
-
loading:
|
|
36
|
-
error:
|
|
37
|
-
refetch:
|
|
39
|
+
messages: d?.mailboxMessages.messages ?? [],
|
|
40
|
+
nextPageToken: d?.mailboxMessages.nextPageToken ?? null,
|
|
41
|
+
loading: c,
|
|
42
|
+
error: l,
|
|
43
|
+
refetch: u
|
|
38
44
|
};
|
|
39
45
|
}
|
|
40
|
-
function
|
|
41
|
-
let { data: n, loading:
|
|
46
|
+
function _(e, t) {
|
|
47
|
+
let { data: n, loading: r, error: i, refetch: a } = c({
|
|
42
48
|
variables: {
|
|
43
49
|
connectionId: e ?? "",
|
|
44
50
|
threadId: t ?? ""
|
|
@@ -49,28 +55,101 @@ function l(e, t) {
|
|
|
49
55
|
});
|
|
50
56
|
return {
|
|
51
57
|
thread: n?.mailboxThread ?? null,
|
|
52
|
-
loading:
|
|
53
|
-
error:
|
|
54
|
-
refetch:
|
|
58
|
+
loading: r,
|
|
59
|
+
error: i,
|
|
60
|
+
refetch: a
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
function v(e) {
|
|
64
|
+
let { data: t, loading: n, error: r } = o({
|
|
65
|
+
variables: { connectionId: e ?? "" },
|
|
66
|
+
skip: !e,
|
|
67
|
+
errorPolicy: "none",
|
|
68
|
+
fetchPolicy: "cache-and-network"
|
|
69
|
+
});
|
|
70
|
+
return {
|
|
71
|
+
labels: t?.mailboxLabels ?? [],
|
|
72
|
+
loading: n,
|
|
73
|
+
error: r
|
|
55
74
|
};
|
|
56
75
|
}
|
|
57
|
-
function
|
|
58
|
-
let [e
|
|
76
|
+
function y() {
|
|
77
|
+
let [e] = a({ fetchPolicy: "no-cache" });
|
|
78
|
+
return p(async (t, n, r) => {
|
|
79
|
+
let i = await e({ variables: {
|
|
80
|
+
connectionId: t,
|
|
81
|
+
messageId: n,
|
|
82
|
+
attachmentId: r
|
|
83
|
+
} });
|
|
84
|
+
if (i.error) throw i.error;
|
|
85
|
+
let a = i.data?.mailboxAttachment ?? null;
|
|
86
|
+
if (!a) throw Error("Attachment not found");
|
|
87
|
+
return a;
|
|
88
|
+
}, [e]);
|
|
89
|
+
}
|
|
90
|
+
function b() {
|
|
91
|
+
let [e, n] = t(), [r, i] = d();
|
|
92
|
+
return {
|
|
93
|
+
archiveThread: p(async (t, n) => {
|
|
94
|
+
await e({ variables: {
|
|
95
|
+
connectionId: t,
|
|
96
|
+
threadId: n
|
|
97
|
+
} });
|
|
98
|
+
}, [e]),
|
|
99
|
+
trashThread: p(async (e, t) => {
|
|
100
|
+
await r({ variables: {
|
|
101
|
+
connectionId: e,
|
|
102
|
+
threadId: t
|
|
103
|
+
} });
|
|
104
|
+
}, [r]),
|
|
105
|
+
busy: n.loading || i.loading
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
function x() {
|
|
109
|
+
let [e] = i(), [t] = r();
|
|
110
|
+
return p(async (n) => {
|
|
111
|
+
let r = n.type || "application/octet-stream", i = n.name.lastIndexOf("."), a = i > 0 ? n.name.slice(i + 1).toLowerCase() : "bin", o = String(n.size), s = (await e({ variables: { input: {
|
|
112
|
+
fileName: n.name,
|
|
113
|
+
fileSize: o,
|
|
114
|
+
mimeType: r,
|
|
115
|
+
extension: a
|
|
116
|
+
} } })).data?.initiateUpload;
|
|
117
|
+
if (!s?.uploadUrl || !s.session.id) throw Error(`Could not start uploading ${n.name}`);
|
|
118
|
+
if (!(await fetch(s.uploadUrl, {
|
|
119
|
+
method: "PUT",
|
|
120
|
+
body: n,
|
|
121
|
+
headers: { "Content-Type": r }
|
|
122
|
+
})).ok) throw Error(`Uploading ${n.name} failed`);
|
|
123
|
+
let c = (await t({ variables: { input: {
|
|
124
|
+
sessionId: s.session.id,
|
|
125
|
+
fileSize: o
|
|
126
|
+
} } })).data?.completeUpload.fileId;
|
|
127
|
+
if (!c) throw Error(`Could not finish uploading ${n.name}`);
|
|
128
|
+
return {
|
|
129
|
+
fileId: c,
|
|
130
|
+
name: n.name,
|
|
131
|
+
size: n.size
|
|
132
|
+
};
|
|
133
|
+
}, [e, t]);
|
|
134
|
+
}
|
|
135
|
+
function S() {
|
|
136
|
+
let [e, { loading: t }] = l();
|
|
59
137
|
return {
|
|
60
|
-
send:
|
|
138
|
+
send: p(async (t) => (await e({ variables: { input: {
|
|
61
139
|
connectionId: t.connectionId,
|
|
62
140
|
to: t.to,
|
|
63
141
|
cc: t.cc ?? null,
|
|
64
142
|
subject: t.subject ?? null,
|
|
65
143
|
bodyText: t.bodyText,
|
|
66
|
-
replyToMessageId: t.replyToMessageId ?? null
|
|
144
|
+
replyToMessageId: t.replyToMessageId ?? null,
|
|
145
|
+
attachmentFileIds: t.attachmentFileIds?.length ? t.attachmentFileIds : null
|
|
67
146
|
} } })).data?.sendMailboxMessage ?? null, [e]),
|
|
68
147
|
sending: t
|
|
69
148
|
};
|
|
70
149
|
}
|
|
71
|
-
function
|
|
72
|
-
let [e] =
|
|
73
|
-
return
|
|
150
|
+
function C() {
|
|
151
|
+
let [e] = u();
|
|
152
|
+
return p(async (t, n, r) => {
|
|
74
153
|
await e({ variables: {
|
|
75
154
|
connectionId: t,
|
|
76
155
|
messageId: n,
|
|
@@ -78,10 +157,10 @@ function d() {
|
|
|
78
157
|
} });
|
|
79
158
|
}, [e]);
|
|
80
159
|
}
|
|
81
|
-
function
|
|
160
|
+
function w(e) {
|
|
82
161
|
return e.split(/[,;\r\n]+/).map((e) => e.trim()).filter(Boolean);
|
|
83
162
|
}
|
|
84
163
|
//#endregion
|
|
85
|
-
export {
|
|
164
|
+
export { m as MAILBOX_SEND_ATTACHMENT_BYTES, w as splitRecipients, h as useMailboxAccounts, y as useMailboxAttachmentContent, v as useMailboxLabels, g as useMailboxMessages, _ as useMailboxThread, b as useMailboxThreadActions, S as useSendMail, C as useSetMailRead, x as useUploadMailAttachment };
|
|
86
165
|
|
|
87
166
|
//# sourceMappingURL=useMailbox.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useMailbox.js","names":[],"sources":["../../../src/integrations/hooks/useMailbox.ts"],"sourcesContent":["/**\n * Connected mailbox hooks (BOFF-4422): the caller's own Gmail / Outlook\n * connections, a page of messages, one conversation, and send / mark read.\n */\nimport { useCallback } from 'react';\n\nimport { MailboxFolder } from '../../generated/wspace-types';\nimport type {\n MailboxAccountsQuery,\n MailboxMessagesQuery,\n MailboxThreadQuery,\n SendMailboxMessageMutation,\n} from '../../generated/wspace-operations';\nimport {\n useMailboxAccountsQuery,\n useMailboxMessagesQuery,\n useMailboxThreadQuery,\n useSendMailboxMessageMutation,\n useSetMailboxMessageReadMutation,\n} from '../../generated/wspace-operations';\nimport { useIntegrations } from '../providers/IntegrationsProvider';\n\nexport { MailboxFolder };\n\nexport const MAILBOX_PAGE_SIZE = 25;\n\n/*\n * The generated hooks reference result types through `Types.*`, which the\n * import-types preset does not emit into wspace-types.ts, so their `data` is\n * untyped. The operation result types below are generated in\n * wspace-operations.ts and pin the shapes this module hands to the page.\n */\nexport type MailboxAccount = MailboxAccountsQuery['mailboxAccounts'][number];\nexport type MailboxMessageSummary = MailboxMessagesQuery['mailboxMessages']['messages'][number];\nexport type MailboxThread = NonNullable<MailboxThreadQuery['mailboxThread']>;\nexport type MailboxSendResult = SendMailboxMessageMutation['sendMailboxMessage'];\n\nexport function useMailboxAccounts() {\n const { workspaceId } = useIntegrations();\n const { data, loading, error, refetch } = useMailboxAccountsQuery({\n skip: !workspaceId,\n errorPolicy: 'all',\n fetchPolicy: 'cache-and-network',\n });\n const typed = data as MailboxAccountsQuery | undefined;\n const accounts: MailboxAccount[] = typed?.mailboxAccounts ?? [];\n // True once the gateway has answered; a skipped query (no workspace yet)\n // must not read as \"no mailboxes connected\".\n const answered = typed?.mailboxAccounts !== undefined;\n return { accounts, answered, loading, error, refetch };\n}\n\nexport function useMailboxMessages(options: {\n connectionId: string | null;\n folder: MailboxFolder;\n query: string;\n pageToken: string | null;\n}) {\n const { connectionId, folder, query, pageToken } = options;\n const { data, loading, error, refetch } = useMailboxMessagesQuery({\n variables: {\n input: {\n connectionId: connectionId ?? '',\n folder,\n query: query || null,\n pageToken,\n limit: MAILBOX_PAGE_SIZE,\n },\n },\n skip: !connectionId,\n errorPolicy: 'none',\n fetchPolicy: 'network-only',\n });\n const typed = data as MailboxMessagesQuery | undefined;\n const messages: MailboxMessageSummary[] = typed?.mailboxMessages.messages ?? [];\n const nextPageToken: string | null = typed?.mailboxMessages.nextPageToken ?? null;\n return {\n messages,\n nextPageToken,\n loading,\n error,\n refetch,\n };\n}\n\nexport function useMailboxThread(connectionId: string | null, threadId: string | null) {\n const { data, loading, error, refetch } = useMailboxThreadQuery({\n variables: { connectionId: connectionId ?? '', threadId: threadId ?? '' },\n skip: !connectionId || !threadId,\n errorPolicy: 'none',\n fetchPolicy: 'network-only',\n });\n const thread: MailboxThread | null =\n (data as MailboxThreadQuery | undefined)?.mailboxThread ?? null;\n return { thread, loading, error, refetch };\n}\n\nexport interface SendMailInput {\n connectionId: string;\n to: string[];\n cc?: string[];\n subject?: string;\n bodyText: string;\n replyToMessageId?: string;\n}\n\nexport function useSendMail() {\n const [mutate, { loading }] = useSendMailboxMessageMutation();\n const send = useCallback(\n async (input: SendMailInput) => {\n const result = await mutate({\n variables: {\n input: {\n connectionId: input.connectionId,\n to: input.to,\n cc: input.cc ?? null,\n subject: input.subject ?? null,\n bodyText: input.bodyText,\n replyToMessageId: input.replyToMessageId ?? null,\n },\n },\n });\n const sent: MailboxSendResult | null =\n (result.data as SendMailboxMessageMutation | null | undefined)?.sendMailboxMessage ?? null;\n return sent;\n },\n [mutate]\n );\n return { send, sending: loading };\n}\n\nexport function useSetMailRead() {\n const [mutate] = useSetMailboxMessageReadMutation();\n return useCallback(\n async (connectionId: string, messageId: string, read: boolean) => {\n await mutate({ variables: { connectionId, messageId, read } });\n },\n [mutate]\n );\n}\n\n/**\n * Splits a recipient field on commas, semicolons and line breaks. Spaces are\n * not separators, so a pasted entry stays whole and the service validates it\n * as one address instead of receiving fragments of it.\n */\nexport function splitRecipients(value: string): string[] {\n return value\n .split(/[,;\\r\\n]+/)\n .map((part) => part.trim())\n .filter(Boolean);\n}\n"],"mappings":";;;;AAqCA,SAAgB,IAAqB;CACnC,IAAM,EAAE,mBAAgB,GAAiB,EACnC,EAAE,SAAM,YAAS,UAAO,eAAY,EAAwB;EAChE,MAAM,CAAC;EACP,aAAa;EACb,aAAa;EACd,CAAC,EACI,IAAQ;AAKd,QAAO;EAAE,UAJ0B,GAAO,mBAAmB,EAAE;EAI5C,UADF,GAAO,oBAAoB,KAAA;EACf;EAAS;EAAO;EAAS;;AAGxD,SAAgB,EAAmB,GAKhC;CACD,IAAM,EAAE,iBAAc,WAAQ,UAAO,iBAAc,GAC7C,EAAE,SAAM,YAAS,UAAO,eAAY,EAAwB;EAChE,WAAW,EACT,OAAO;GACL,cAAc,KAAgB;GAC9B;GACA,OAAO,KAAS;GAChB;GACA,OAAA;GACD,EACF;EACD,MAAM,CAAC;EACP,aAAa;EACb,aAAa;EACd,CAAC,EACI,IAAQ;AAGd,QAAO;EACL,UAHwC,GAAO,gBAAgB,YAAY,EAAE;EAI7E,eAHmC,GAAO,gBAAgB,iBAAiB;EAI3E;EACA;EACA;EACD;;AAGH,SAAgB,EAAiB,GAA6B,GAAyB;CACrF,IAAM,EAAE,SAAM,YAAS,UAAO,eAAY,EAAsB;EAC9D,WAAW;GAAE,cAAc,KAAgB;GAAI,UAAU,KAAY;GAAI;EACzE,MAAM,CAAC,KAAgB,CAAC;EACxB,aAAa;EACb,aAAa;EACd,CAAC;AAGF,QAAO;EAAE,QADN,GAAyC,iBAAiB;EAC5C;EAAS;EAAO;EAAS;;AAY5C,SAAgB,IAAc;CAC5B,IAAM,CAAC,GAAQ,EAAE,gBAAa,GAA+B;AAqB7D,QAAO;EAAE,MApBI,EACX,OAAO,OACU,MAAM,EAAO,EAC1B,WAAW,EACT,OAAO;GACL,cAAc,EAAM;GACpB,IAAI,EAAM;GACV,IAAI,EAAM,MAAM;GAChB,SAAS,EAAM,WAAW;GAC1B,UAAU,EAAM;GAChB,kBAAkB,EAAM,oBAAoB;GAC7C,EACF,EACF,CAAC,EAEQ,MAAwD,sBAAsB,MAG1F,CAAC,EAAO,CACT;EACc,SAAS;EAAS;;AAGnC,SAAgB,IAAiB;CAC/B,IAAM,CAAC,KAAU,GAAkC;AACnD,QAAO,EACL,OAAO,GAAsB,GAAmB,MAAkB;AAChE,QAAM,EAAO,EAAE,WAAW;GAAE;GAAc;GAAW;GAAM,EAAE,CAAC;IAEhE,CAAC,EAAO,CACT;;AAQH,SAAgB,EAAgB,GAAyB;AACvD,QAAO,EACJ,MAAM,YAAY,CAClB,KAAK,MAAS,EAAK,MAAM,CAAC,CAC1B,OAAO,QAAQ"}
|
|
1
|
+
{"version":3,"file":"useMailbox.js","names":[],"sources":["../../../src/integrations/hooks/useMailbox.ts"],"sourcesContent":["/**\n * Connected mailbox hooks (BOFF-4422): the caller's own Gmail / Outlook\n * connections, a page of messages, one conversation, and send / mark read.\n */\nimport { useCallback } from 'react';\n\nimport { MailboxFolder, MailboxKind, MailboxLabelKind } from '../../generated/wspace-types';\nimport type {\n MailboxAccountsQuery,\n MailboxAttachmentCompleteUploadMutation,\n MailboxAttachmentInitiateUploadMutation,\n MailboxAttachmentQuery,\n MailboxLabelsQuery,\n MailboxMessagesQuery,\n MailboxThreadQuery,\n SendMailboxMessageMutation,\n} from '../../generated/wspace-operations';\nimport {\n useArchiveMailboxThreadMutation,\n useMailboxAccountsQuery,\n useMailboxAttachmentCompleteUploadMutation,\n useMailboxAttachmentInitiateUploadMutation,\n useMailboxAttachmentLazyQuery,\n useMailboxLabelsQuery,\n useMailboxMessagesQuery,\n useMailboxThreadQuery,\n useSendMailboxMessageMutation,\n useSetMailboxMessageReadMutation,\n useTrashMailboxThreadMutation,\n} from '../../generated/wspace-operations';\nimport { useIntegrations } from '../providers/IntegrationsProvider';\n\nexport { MailboxFolder, MailboxKind, MailboxLabelKind };\n\n/** Files on one outgoing message; matches the service limit. */\nexport const MAILBOX_MAX_ATTACHMENTS = 10;\n\n/**\n * Total attachment bytes per outgoing message, matching the service caps:\n * Gmail takes a 25 MB message, Microsoft Graph 4 MB per request.\n */\nexport const MAILBOX_SEND_ATTACHMENT_BYTES: Readonly<Record<MailboxKind, number>> = {\n [MailboxKind.Gmail]: 17 * 1024 * 1024,\n [MailboxKind.Outlook]: Math.floor(2.5 * 1024 * 1024),\n};\n\nexport const MAILBOX_PAGE_SIZE = 25;\n\n/*\n * The generated hooks reference result types through `Types.*`, which the\n * import-types preset does not emit into wspace-types.ts, so their `data` is\n * untyped. The operation result types below are generated in\n * wspace-operations.ts and pin the shapes this module hands to the page.\n */\nexport type MailboxAccount = MailboxAccountsQuery['mailboxAccounts'][number];\nexport type MailboxMessageSummary = MailboxMessagesQuery['mailboxMessages']['messages'][number];\nexport type MailboxThread = NonNullable<MailboxThreadQuery['mailboxThread']>;\nexport type MailboxSendResult = SendMailboxMessageMutation['sendMailboxMessage'];\nexport type MailboxLabel = MailboxLabelsQuery['mailboxLabels'][number];\nexport type MailboxThreadMessage = MailboxThread['messages'][number];\nexport type MailboxAttachment = MailboxThreadMessage['attachments'][number];\nexport type MailboxAttachmentContent = MailboxAttachmentQuery['mailboxAttachment'];\n\nexport function useMailboxAccounts() {\n const { workspaceId } = useIntegrations();\n const { data, loading, error, refetch } = useMailboxAccountsQuery({\n skip: !workspaceId,\n errorPolicy: 'all',\n fetchPolicy: 'cache-and-network',\n });\n const typed = data as MailboxAccountsQuery | undefined;\n const accounts: MailboxAccount[] = typed?.mailboxAccounts ?? [];\n // True once the gateway has answered; a skipped query (no workspace yet)\n // must not read as \"no mailboxes connected\".\n const answered = typed?.mailboxAccounts !== undefined;\n return { accounts, answered, loading, error, refetch };\n}\n\nexport function useMailboxMessages(options: {\n connectionId: string | null;\n folder: MailboxFolder;\n /** A label or folder from useMailboxLabels; replaces `folder` when set. */\n folderId: string | null;\n query: string;\n pageToken: string | null;\n}) {\n const { connectionId, folder, folderId, query, pageToken } = options;\n const { data, loading, error, refetch } = useMailboxMessagesQuery({\n variables: {\n input: {\n connectionId: connectionId ?? '',\n folder,\n folderId,\n query: query || null,\n pageToken,\n limit: MAILBOX_PAGE_SIZE,\n },\n },\n skip: !connectionId,\n errorPolicy: 'none',\n fetchPolicy: 'network-only',\n });\n const typed = data as MailboxMessagesQuery | undefined;\n const messages: MailboxMessageSummary[] = typed?.mailboxMessages.messages ?? [];\n const nextPageToken: string | null = typed?.mailboxMessages.nextPageToken ?? null;\n return {\n messages,\n nextPageToken,\n loading,\n error,\n refetch,\n };\n}\n\nexport function useMailboxThread(connectionId: string | null, threadId: string | null) {\n const { data, loading, error, refetch } = useMailboxThreadQuery({\n variables: { connectionId: connectionId ?? '', threadId: threadId ?? '' },\n skip: !connectionId || !threadId,\n errorPolicy: 'none',\n fetchPolicy: 'network-only',\n });\n const thread: MailboxThread | null =\n (data as MailboxThreadQuery | undefined)?.mailboxThread ?? null;\n return { thread, loading, error, refetch };\n}\n\nexport function useMailboxLabels(connectionId: string | null) {\n const { data, loading, error } = useMailboxLabelsQuery({\n variables: { connectionId: connectionId ?? '' },\n skip: !connectionId,\n errorPolicy: 'none',\n fetchPolicy: 'cache-and-network',\n });\n const labels: MailboxLabel[] = (data as MailboxLabelsQuery | undefined)?.mailboxLabels ?? [];\n return { labels, loading, error };\n}\n\n/** Fetches one received attachment's bytes. Never cached: files can be large. */\nexport function useMailboxAttachmentContent() {\n const [load] = useMailboxAttachmentLazyQuery({ fetchPolicy: 'no-cache' });\n return useCallback(\n async (connectionId: string, messageId: string, attachmentId: string) => {\n const result = await load({ variables: { connectionId, messageId, attachmentId } });\n if (result.error) throw result.error;\n const content: MailboxAttachmentContent | null =\n (result.data as MailboxAttachmentQuery | undefined)?.mailboxAttachment ?? null;\n if (!content) throw new Error('Attachment not found');\n return content;\n },\n [load]\n );\n}\n\nexport function useMailboxThreadActions() {\n const [archive, archiveState] = useArchiveMailboxThreadMutation();\n const [trash, trashState] = useTrashMailboxThreadMutation();\n const archiveThread = useCallback(\n async (connectionId: string, threadId: string) => {\n await archive({ variables: { connectionId, threadId } });\n },\n [archive]\n );\n const trashThread = useCallback(\n async (connectionId: string, threadId: string) => {\n await trash({ variables: { connectionId, threadId } });\n },\n [trash]\n );\n return { archiveThread, trashThread, busy: archiveState.loading || trashState.loading };\n}\n\n/** A file uploaded to Files for an outgoing message. */\nexport interface PendingMailAttachment {\n fileId: string;\n name: string;\n size: number;\n}\n\n/**\n * Uploads a file to wspace-files-svc (initiateUpload, PUT to the presigned\n * URL, completeUpload) so sendMailboxMessage can attach it by id. The service\n * reads it back as the caller; the bytes never pass through the gateway.\n */\nexport function useUploadMailAttachment() {\n const [initiate] = useMailboxAttachmentInitiateUploadMutation();\n const [complete] = useMailboxAttachmentCompleteUploadMutation();\n return useCallback(\n async (file: File): Promise<PendingMailAttachment> => {\n const mimeType = file.type || 'application/octet-stream';\n const dot = file.name.lastIndexOf('.');\n const extension = dot > 0 ? file.name.slice(dot + 1).toLowerCase() : 'bin';\n const fileSize = String(file.size);\n const started = await initiate({\n variables: { input: { fileName: file.name, fileSize, mimeType, extension } },\n });\n const session = (started.data as MailboxAttachmentInitiateUploadMutation | null | undefined)\n ?.initiateUpload;\n if (!session?.uploadUrl || !session.session.id) {\n throw new Error(`Could not start uploading ${file.name}`);\n }\n const put = await fetch(session.uploadUrl, {\n method: 'PUT',\n body: file,\n headers: { 'Content-Type': mimeType },\n });\n if (!put.ok) throw new Error(`Uploading ${file.name} failed`);\n const done = await complete({\n variables: { input: { sessionId: session.session.id, fileSize } },\n });\n const fileId = (done.data as MailboxAttachmentCompleteUploadMutation | null | undefined)\n ?.completeUpload.fileId;\n if (!fileId) throw new Error(`Could not finish uploading ${file.name}`);\n return { fileId, name: file.name, size: file.size };\n },\n [initiate, complete]\n );\n}\n\nexport interface SendMailInput {\n connectionId: string;\n to: string[];\n cc?: string[];\n subject?: string;\n bodyText: string;\n replyToMessageId?: string;\n attachmentFileIds?: string[];\n}\n\nexport function useSendMail() {\n const [mutate, { loading }] = useSendMailboxMessageMutation();\n const send = useCallback(\n async (input: SendMailInput) => {\n const result = await mutate({\n variables: {\n input: {\n connectionId: input.connectionId,\n to: input.to,\n cc: input.cc ?? null,\n subject: input.subject ?? null,\n bodyText: input.bodyText,\n replyToMessageId: input.replyToMessageId ?? null,\n attachmentFileIds: input.attachmentFileIds?.length ? input.attachmentFileIds : null,\n },\n },\n });\n const sent: MailboxSendResult | null =\n (result.data as SendMailboxMessageMutation | null | undefined)?.sendMailboxMessage ?? null;\n return sent;\n },\n [mutate]\n );\n return { send, sending: loading };\n}\n\nexport function useSetMailRead() {\n const [mutate] = useSetMailboxMessageReadMutation();\n return useCallback(\n async (connectionId: string, messageId: string, read: boolean) => {\n await mutate({ variables: { connectionId, messageId, read } });\n },\n [mutate]\n );\n}\n\n/**\n * Splits a recipient field on commas, semicolons and line breaks. Spaces are\n * not separators, so a pasted entry stays whole and the service validates it\n * as one address instead of receiving fragments of it.\n */\nexport function splitRecipients(value: string): string[] {\n return value\n .split(/[,;\\r\\n]+/)\n .map((part) => part.trim())\n .filter(Boolean);\n}\n"],"mappings":";;;;;AAyCA,IAAa,IAAuE;EACjF,EAAY,QAAQ,KAAK,OAA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.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ConnectorSubmissionsPage.d.ts","sourceRoot":"","sources":["../../../src/integrations/pages/ConnectorSubmissionsPage.tsx"],"names":[],"mappings":"AA41BA;;;GAGG;AACH,wBAAgB,wBAAwB,gCA8LvC"}
|