@jsb188/graphql 1.1.12 → 1.1.13
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/LICENSE +21 -0
- package/audience.d.ts +14 -152
- package/cache/config.ts +35 -32
- package/cache/index.helpers.ts +1 -1
- package/cache/index.ts +73 -44
- package/cache/mounted-queries.ts +33 -0
- package/cache/persist.ts +10 -4
- package/cache/realtime-fence.ts +47 -0
- package/cache/realtime-live.ts +17 -0
- package/client/draft-persistence.ts +10 -39
- package/client/index.ts +2 -1
- package/client/request.ts +9 -34
- package/client/storage-asset.ts +58 -0
- package/gql/fragments/accountAuthFragments.ts +0 -4
- package/gql/fragments/agentNoteFragments.ts +8 -2
- package/gql/fragments/aiChatFragments.ts +0 -2
- package/gql/fragments/aiChatLinkFragments.ts +8 -0
- package/gql/fragments/audienceFragments.ts +1 -66
- package/gql/fragments/emailFragments.ts +27 -4
- package/gql/fragments/emailOutreachFragments.ts +281 -0
- package/gql/fragments/inboundContactFragments.ts +1 -1
- package/gql/fragments/libraryFragments.ts +120 -0
- package/gql/fragments/organizationFragments.ts +4 -2
- package/gql/fragments/scheduleFragments.ts +241 -324
- package/gql/fragments/sheetFragments.ts +4 -53
- package/gql/fragments/workWaitFragments.ts +13 -0
- package/gql/fragments/workflowFragments.ts +20 -4
- package/gql/mutations/agentNoteMutations.ts +2 -0
- package/gql/mutations/aiChatLinkMutations.ts +13 -0
- package/gql/mutations/aiChatMutations.ts +4 -6
- package/gql/mutations/audienceMutations.ts +0 -13
- package/gql/mutations/authMutations.ts +12 -60
- package/gql/mutations/emailMutations.ts +22 -0
- package/gql/mutations/emailOutreachMutations.ts +139 -0
- package/gql/mutations/index.ts +3 -1
- package/gql/mutations/organizationMutations.ts +2 -2
- package/gql/mutations/scheduleMutations.ts +61 -787
- package/gql/mutations/storageMutations.ts +1 -0
- package/gql/mutations/workflowMutations.ts +76 -0
- package/gql/queries/agentMemoryQueries.ts +6 -2
- package/gql/queries/agentNoteQueries.ts +26 -29
- package/gql/queries/aiChatQueries.ts +39 -40
- package/gql/queries/audienceQueries.ts +31 -55
- package/gql/queries/authQueries.ts +16 -6
- package/gql/queries/billingQueries.ts +26 -10
- package/gql/queries/dataTableQueries.ts +24 -15
- package/gql/queries/emailOutreachQueries.ts +282 -0
- package/gql/queries/emailQueries.ts +39 -12
- package/gql/queries/emailReplyReportQueries.ts +60 -9
- package/gql/queries/fieldDocQueries.ts +36 -14
- package/gql/queries/inboundContactQueries.ts +11 -4
- package/gql/queries/index.ts +2 -2
- package/gql/queries/libraryQueries.ts +112 -0
- package/gql/queries/logQueries.ts +31 -12
- package/gql/queries/organizationQueries.ts +31 -12
- package/gql/queries/qrCodeQueries.ts +11 -4
- package/gql/queries/scheduleQueries.ts +252 -505
- package/gql/queries/sheetQueries.ts +36 -14
- package/gql/queries/storageQueries.ts +11 -4
- package/gql/queries/workflowQueries.ts +53 -10
- package/gql/reactivity.ts +98 -0
- package/gql/recordReads.ts +171 -0
- package/hooks/index.ts +79 -52
- package/hooks/use-agentNote-mtn.ts +7 -0
- package/hooks/use-agentNote-qry.ts +30 -58
- package/hooks/use-agentNote-recovery.ts +6 -21
- package/hooks/use-aiChat-mtn.ts +9 -4
- package/hooks/use-aiChat-qry.ts +28 -7
- package/hooks/use-audience-mtn.ts +0 -24
- package/hooks/use-audience-qry.helpers.ts +0 -24
- package/hooks/use-audience-qry.ts +1 -86
- package/hooks/use-dataTable-mtn.ts +3 -3
- package/hooks/use-dataTable-qry.ts +7 -2
- package/hooks/use-email-mtn.ts +26 -0
- package/hooks/use-email-qry.helpers.ts +1 -1
- package/hooks/use-email-qry.ts +18 -3
- package/hooks/use-emailOutreach-mtn.ts +211 -0
- package/hooks/use-emailOutreach-qry.helpers.ts +25 -0
- package/hooks/use-emailOutreach-qry.ts +367 -0
- package/hooks/use-emailOutreachReplyReport-qry.ts +46 -0
- package/hooks/use-fieldDoc-qry.ts +1 -1
- package/hooks/use-library-qry.ts +233 -0
- package/hooks/use-qrCode-qry.ts +1 -1
- package/hooks/use-schedule-mtn.ts +10 -300
- package/hooks/use-schedule-qry.ts +168 -680
- package/hooks/use-schedule-reactive.ts +71 -339
- package/hooks/use-sheet-qry.ts +6 -1
- package/hooks/use-workflow-mtn.ts +45 -1
- package/hooks/use-workflow-qry.ts +22 -2
- package/libs/ai-chat-link-events.ts +78 -0
- package/libs/data-changes.helpers.ts +161 -0
- package/libs/data-changes.ts +382 -0
- package/libs/fragment-realtime-sequence.ts +3 -3
- package/libs/record-read.ts +327 -0
- package/libs/sheet-command-batch.ts +3 -2
- package/libs/sheet-realtime-packet.ts +53 -0
- package/loaders/emailPreference.ts +18 -24
- package/package.json +44 -17
- package/schedule.d.ts +267 -874
- package/types.d.ts +3 -1
- package/cache/index.chat-activity.test.ts +0 -119
- package/cache/index.chat.test.ts +0 -92
- package/cache/index.regression.test.ts +0 -149
- package/cache/index.test.ts +0 -1209
- package/deno.lock +0 -187
- package/deno.test.json +0 -12
- package/gql/fragments/campaignFragments.ts +0 -566
- package/gql/mutations/campaignMutations.ts +0 -258
- package/gql/queries/appQueries.ts +0 -14
- package/gql/queries/campaignQueries.ts +0 -236
- package/hooks/index.helpers.test.ts +0 -50
- package/hooks/use-agentNote-recovery.helpers.test.ts +0 -68
- package/hooks/use-aiChat-qry.helpers.test.ts +0 -63
- package/hooks/use-app-qry.ts +0 -22
- package/hooks/use-audience-qry.helpers.test.ts +0 -80
- package/hooks/use-campaign-generation-recovery.ts +0 -53
- package/hooks/use-campaign-mtn.ts +0 -436
- package/hooks/use-campaign-qry.helpers.ts +0 -40
- package/hooks/use-campaign-qry.ts +0 -834
- package/hooks/use-emailCampaignReplyReport-qry.ts +0 -27
- package/hooks/use-fieldDoc-qry.helpers.test.ts +0 -65
- package/hooks/use-publicFormEmail-mtn.ts +0 -27
- package/libs/fragment-recovery.test.ts +0 -326
- package/libs/fragment-recovery.ts +0 -325
- package/libs/orchestrator-realtime.helpers.test.ts +0 -229
- package/libs/orchestrator-realtime.helpers.ts +0 -317
- package/libs/orchestrator-realtime.ts +0 -433
- package/libs/request-cache-regression.test.ts +0 -122
- package/libs/request-managed-session.test.ts +0 -574
- package/libs/request-no-store.test.ts +0 -419
- package/libs/sheet-view-realtime-router.test.ts +0 -214
- package/libs/sse-ticket.test.ts +0 -26
- package/loaders/campaign.test.ts +0 -186
- package/loaders/campaign.ts +0 -110
- package/tests/agent-note-detail-cache.test.ts +0 -120
- package/tests/agent-note-search.test.ts +0 -444
- package/tsconfig.json +0 -13
|
@@ -48,32 +48,6 @@ export const sheetTabFragment = `fragment sheetTabFragment on SheetTab {
|
|
|
48
48
|
version
|
|
49
49
|
columns
|
|
50
50
|
rows
|
|
51
|
-
defaultCellStyle {
|
|
52
|
-
fontSize
|
|
53
|
-
textColor
|
|
54
|
-
fillColor
|
|
55
|
-
textWrap
|
|
56
|
-
textAlign
|
|
57
|
-
verticalAlign
|
|
58
|
-
disableMarkdown
|
|
59
|
-
bold
|
|
60
|
-
italic
|
|
61
|
-
underline
|
|
62
|
-
strikethrough
|
|
63
|
-
borderTopWidth
|
|
64
|
-
borderTopColor
|
|
65
|
-
borderTopStyle
|
|
66
|
-
borderRightWidth
|
|
67
|
-
borderRightColor
|
|
68
|
-
borderRightStyle
|
|
69
|
-
borderBottomWidth
|
|
70
|
-
borderBottomColor
|
|
71
|
-
borderBottomStyle
|
|
72
|
-
borderLeftWidth
|
|
73
|
-
borderLeftColor
|
|
74
|
-
borderLeftStyle
|
|
75
|
-
}
|
|
76
|
-
defaultCellFormat
|
|
77
51
|
metadata
|
|
78
52
|
|
|
79
53
|
grid {
|
|
@@ -185,33 +159,6 @@ export const sheetCellFragment = `fragment sheetCellFragment on SheetCell {
|
|
|
185
159
|
errorMessage
|
|
186
160
|
computedAt
|
|
187
161
|
revision
|
|
188
|
-
|
|
189
|
-
style {
|
|
190
|
-
fontSize
|
|
191
|
-
textColor
|
|
192
|
-
fillColor
|
|
193
|
-
textWrap
|
|
194
|
-
textAlign
|
|
195
|
-
verticalAlign
|
|
196
|
-
disableMarkdown
|
|
197
|
-
bold
|
|
198
|
-
italic
|
|
199
|
-
underline
|
|
200
|
-
strikethrough
|
|
201
|
-
borderTopWidth
|
|
202
|
-
borderTopColor
|
|
203
|
-
borderTopStyle
|
|
204
|
-
borderRightWidth
|
|
205
|
-
borderRightColor
|
|
206
|
-
borderRightStyle
|
|
207
|
-
borderBottomWidth
|
|
208
|
-
borderBottomColor
|
|
209
|
-
borderBottomStyle
|
|
210
|
-
borderLeftWidth
|
|
211
|
-
borderLeftColor
|
|
212
|
-
borderLeftStyle
|
|
213
|
-
}
|
|
214
|
-
format
|
|
215
162
|
note
|
|
216
163
|
|
|
217
164
|
createdAt
|
|
@@ -299,6 +246,8 @@ export const sheetViewFragment = `fragment sheetViewFragment on SheetView {
|
|
|
299
246
|
structureSeq
|
|
300
247
|
}
|
|
301
248
|
|
|
249
|
+
formatOps
|
|
250
|
+
|
|
302
251
|
pageInfo {
|
|
303
252
|
hasMoreRows
|
|
304
253
|
lastContentRowIndex
|
|
@@ -383,4 +332,6 @@ export const sheetViewPatchFragment = `fragment sheetViewPatchFragment on SheetV
|
|
|
383
332
|
index
|
|
384
333
|
structureSeq
|
|
385
334
|
}
|
|
335
|
+
|
|
336
|
+
formatOps
|
|
386
337
|
}`;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// One item of waitingFor on a scheduled task (Workflow) or a bulk email (EmailOutreach). Its id is the wait's own id, so
|
|
2
|
+
// the same source waited for by two items is two cache records, each with its own onHold. A document that spreads it
|
|
3
|
+
// appends this fragment's text, like every other nested fragment.
|
|
4
|
+
export const workWaitItemFragment = `fragment workWaitItemFragment on WorkWaitItem {
|
|
5
|
+
id
|
|
6
|
+
sourceType
|
|
7
|
+
sourceId
|
|
8
|
+
title
|
|
9
|
+
state
|
|
10
|
+
url
|
|
11
|
+
outcome
|
|
12
|
+
onHold
|
|
13
|
+
}`;
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
// A definition has no cache id: its complete selection is inlined wherever a Workflow selects one (the live definition
|
|
2
|
+
// and the draft's), so a realtime record patch of the workflow updates both in place.
|
|
3
|
+
export const workflowDefinitionFields = `
|
|
4
|
+
title purpose
|
|
5
|
+
trigger { type logTypes when fieldDocId fieldDocTitle source sourceId sourceTitle outcome }
|
|
6
|
+
steps { id type title instruction to { kind accountId name description email phone } replyToName replyToEmail next { to when } }
|
|
7
|
+
rules onEdit memory
|
|
8
|
+
`;
|
|
9
|
+
|
|
1
10
|
export const workflowFragment = `fragment workflowFragment on Workflow {
|
|
2
11
|
id
|
|
3
12
|
organizationId
|
|
@@ -5,7 +14,6 @@ export const workflowFragment = `fragment workflowFragment on Workflow {
|
|
|
5
14
|
programManaged
|
|
6
15
|
fieldDocProgramId
|
|
7
16
|
userInstructions
|
|
8
|
-
catalogInstructions
|
|
9
17
|
agentNoteId
|
|
10
18
|
agentNote {
|
|
11
19
|
id
|
|
@@ -32,15 +40,23 @@ export const workflowFragment = `fragment workflowFragment on Workflow {
|
|
|
32
40
|
title
|
|
33
41
|
reminderContent
|
|
34
42
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
43
|
+
version
|
|
44
|
+
definitionSource
|
|
45
|
+
definition { ${workflowDefinitionFields} }
|
|
46
|
+
draft {
|
|
47
|
+
revision
|
|
48
|
+
updatedAt
|
|
49
|
+
definition { ${workflowDefinitionFields} }
|
|
50
|
+
issues { severity code stepId detail }
|
|
51
|
+
lastTest { revision at logId status message stepTrace actions { stepId tool summary } }
|
|
38
52
|
}
|
|
39
53
|
|
|
40
54
|
schedule
|
|
41
55
|
scheduleInterval
|
|
42
56
|
active
|
|
43
57
|
status
|
|
58
|
+
waitingFor { ...workWaitItemFragment }
|
|
59
|
+
endReason
|
|
44
60
|
|
|
45
61
|
startedAt
|
|
46
62
|
nextAt
|
|
@@ -17,6 +17,7 @@ export const updateAgentNoteMtn = gql`
|
|
|
17
17
|
mutation updateAgentNote (
|
|
18
18
|
$organizationId: GenericID!
|
|
19
19
|
$agentNoteId: GenericID!
|
|
20
|
+
$title: String
|
|
20
21
|
$pinned: Boolean
|
|
21
22
|
$needsAttention: Boolean
|
|
22
23
|
$archived: Boolean
|
|
@@ -25,6 +26,7 @@ mutation updateAgentNote (
|
|
|
25
26
|
updateAgentNote (
|
|
26
27
|
organizationId: $organizationId
|
|
27
28
|
agentNoteId: $agentNoteId
|
|
29
|
+
title: $title
|
|
28
30
|
pinned: $pinned
|
|
29
31
|
needsAttention: $needsAttention
|
|
30
32
|
archived: $archived
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { gql } from 'graphql-tag';
|
|
2
|
+
import { aiChatLinkFragment } from '../fragments/aiChatLinkFragments.ts';
|
|
3
|
+
import { agentNoteDetailFragment } from '../fragments/agentNoteFragments.ts';
|
|
4
|
+
export const setAIChatLinkHiddenMtn = gql`
|
|
5
|
+
mutation setAIChatLinkHidden($aiChatLinkId:GenericID!,$hidden:Boolean!) { setAIChatLinkHidden(aiChatLinkId:$aiChatLinkId,hidden:$hidden) { ...aiChatLinkFragment } }
|
|
6
|
+
${aiChatLinkFragment}
|
|
7
|
+
`;
|
|
8
|
+
export const removeAgentNoteLinkMtn = gql`
|
|
9
|
+
mutation removeAgentNoteLink($organizationId:GenericID!,$agentNoteId:GenericID!,$entityType:LinkedEntityType!,$entityId:GenericID!) {
|
|
10
|
+
removeAgentNoteLink(organizationId:$organizationId,agentNoteId:$agentNoteId,entityType:$entityType,entityId:$entityId) { ...agentNoteDetailFragment }
|
|
11
|
+
}
|
|
12
|
+
${agentNoteDetailFragment}
|
|
13
|
+
`;
|
|
@@ -6,22 +6,20 @@ export const startAIChatMtn = gql`
|
|
|
6
6
|
mutation startAIChat (
|
|
7
7
|
$organizationId: GenericID!
|
|
8
8
|
$agentNoteId: GenericID
|
|
9
|
-
$type: AIChatType
|
|
10
9
|
$text: String
|
|
11
10
|
$attachments: [String!]
|
|
12
11
|
$qrCodeTokens: [String!]
|
|
13
12
|
$clientRequestId: String
|
|
14
|
-
$
|
|
13
|
+
$viewContext: AIChatViewContextInput
|
|
15
14
|
) {
|
|
16
15
|
startAIChat (
|
|
17
16
|
organizationId: $organizationId
|
|
18
17
|
agentNoteId: $agentNoteId
|
|
19
|
-
type: $type
|
|
20
18
|
text: $text
|
|
21
19
|
attachments: $attachments
|
|
22
20
|
qrCodeTokens: $qrCodeTokens
|
|
23
21
|
clientRequestId: $clientRequestId
|
|
24
|
-
|
|
22
|
+
viewContext: $viewContext
|
|
25
23
|
) {
|
|
26
24
|
sessionKey
|
|
27
25
|
run {
|
|
@@ -66,7 +64,7 @@ mutation sendAIChatMessage (
|
|
|
66
64
|
$attachments: [String!]
|
|
67
65
|
$qrCodeTokens: [String!]
|
|
68
66
|
$clientRequestId: String
|
|
69
|
-
$
|
|
67
|
+
$viewContext: AIChatViewContextInput
|
|
70
68
|
) {
|
|
71
69
|
sendAIChatMessage (
|
|
72
70
|
aiChatId: $aiChatId
|
|
@@ -76,7 +74,7 @@ mutation sendAIChatMessage (
|
|
|
76
74
|
attachments: $attachments
|
|
77
75
|
qrCodeTokens: $qrCodeTokens
|
|
78
76
|
clientRequestId: $clientRequestId
|
|
79
|
-
|
|
77
|
+
viewContext: $viewContext
|
|
80
78
|
) {
|
|
81
79
|
sessionKey
|
|
82
80
|
run {
|
|
@@ -3,8 +3,6 @@ import {
|
|
|
3
3
|
audienceEmailAddressFragment,
|
|
4
4
|
audienceListFragment,
|
|
5
5
|
audienceListMemberFragment,
|
|
6
|
-
campaignAudiencePreviewFragment,
|
|
7
|
-
campaignAudienceSessionFragment,
|
|
8
6
|
} from '../fragments/audienceFragments.ts';
|
|
9
7
|
|
|
10
8
|
export const createAudienceListMtn = gql`
|
|
@@ -58,14 +56,3 @@ mutation setAudienceAddressSuppression($input: SetAudienceAddressSuppressionInpu
|
|
|
58
56
|
}
|
|
59
57
|
${audienceEmailAddressFragment}
|
|
60
58
|
`;
|
|
61
|
-
|
|
62
|
-
export const setCampaignAudienceMtn = gql`
|
|
63
|
-
mutation setCampaignAudience($input: SetCampaignAudienceInput!) {
|
|
64
|
-
setCampaignAudience(input: $input) {
|
|
65
|
-
session { ...campaignAudienceSessionFragment }
|
|
66
|
-
preview { ...campaignAudiencePreviewFragment }
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
${campaignAudienceSessionFragment}
|
|
70
|
-
${campaignAudiencePreviewFragment}
|
|
71
|
-
`;
|
|
@@ -3,14 +3,17 @@ import { accountAuthFragment } from '../fragments/accountAuthFragments.ts';
|
|
|
3
3
|
import { accountFragment } from '../fragments/accountFragments.ts';
|
|
4
4
|
import { emailFragment, phoneFragment } from '../fragments/otherFragments.ts';
|
|
5
5
|
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
managedSessionCredential {
|
|
9
|
-
accessToken
|
|
6
|
+
const managedCredentialFields = `accessToken
|
|
7
|
+
storageToken
|
|
10
8
|
accessTokenExpiresAt
|
|
11
9
|
refreshToken
|
|
12
10
|
refreshTokenExpiresAt
|
|
13
|
-
sessionId
|
|
11
|
+
sessionId`;
|
|
12
|
+
|
|
13
|
+
const authenticateResultText = `...accountAuthFragment
|
|
14
|
+
|
|
15
|
+
managedSessionCredential {
|
|
16
|
+
${managedCredentialFields}
|
|
14
17
|
}
|
|
15
18
|
|
|
16
19
|
account {
|
|
@@ -99,11 +102,7 @@ mutation authenticateManagedSession (
|
|
|
99
102
|
}
|
|
100
103
|
|
|
101
104
|
credential {
|
|
102
|
-
|
|
103
|
-
accessTokenExpiresAt
|
|
104
|
-
refreshToken
|
|
105
|
-
refreshTokenExpiresAt
|
|
106
|
-
sessionId
|
|
105
|
+
${managedCredentialFields}
|
|
107
106
|
}
|
|
108
107
|
}
|
|
109
108
|
}
|
|
@@ -117,11 +116,7 @@ mutation exchangeSessionBootstrap (
|
|
|
117
116
|
exchangeSessionBootstrap (
|
|
118
117
|
bootstrapToken: $bootstrapToken
|
|
119
118
|
) {
|
|
120
|
-
|
|
121
|
-
accessTokenExpiresAt
|
|
122
|
-
refreshToken
|
|
123
|
-
refreshTokenExpiresAt
|
|
124
|
-
sessionId
|
|
119
|
+
${managedCredentialFields}
|
|
125
120
|
}
|
|
126
121
|
}`;
|
|
127
122
|
|
|
@@ -134,11 +129,7 @@ mutation refreshManagedSession (
|
|
|
134
129
|
refreshToken: $refreshToken
|
|
135
130
|
refreshAttemptId: $refreshAttemptId
|
|
136
131
|
) {
|
|
137
|
-
|
|
138
|
-
accessTokenExpiresAt
|
|
139
|
-
refreshToken
|
|
140
|
-
refreshTokenExpiresAt
|
|
141
|
-
sessionId
|
|
132
|
+
${managedCredentialFields}
|
|
142
133
|
}
|
|
143
134
|
}`;
|
|
144
135
|
|
|
@@ -193,20 +184,12 @@ mutation revokeOrganizationMemberSessions (
|
|
|
193
184
|
|
|
194
185
|
export const continueWithGoogleMtn = gql`
|
|
195
186
|
mutation continueWithGoogle (
|
|
196
|
-
$oauthToken: String
|
|
197
|
-
$idToken: String
|
|
198
|
-
$nonce: String
|
|
187
|
+
$oauthToken: String!
|
|
199
188
|
$ssoConnectionId: GenericID
|
|
200
|
-
$formPublicId: String
|
|
201
|
-
$authenticateOnly: Boolean
|
|
202
189
|
) {
|
|
203
190
|
continueWithGoogle (
|
|
204
191
|
oauthToken: $oauthToken
|
|
205
|
-
idToken: $idToken
|
|
206
|
-
nonce: $nonce
|
|
207
192
|
ssoConnectionId: $ssoConnectionId
|
|
208
|
-
formPublicId: $formPublicId
|
|
209
|
-
authenticateOnly: $authenticateOnly
|
|
210
193
|
) {
|
|
211
194
|
${authenticateResultText}
|
|
212
195
|
}
|
|
@@ -218,14 +201,10 @@ export const continueWithMicrosoftMtn = gql`
|
|
|
218
201
|
mutation continueWithMicrosoft (
|
|
219
202
|
$idToken: String!
|
|
220
203
|
$ssoConnectionId: GenericID
|
|
221
|
-
$formPublicId: String
|
|
222
|
-
$authenticateOnly: Boolean
|
|
223
204
|
) {
|
|
224
205
|
continueWithMicrosoft (
|
|
225
206
|
idToken: $idToken
|
|
226
207
|
ssoConnectionId: $ssoConnectionId
|
|
227
|
-
formPublicId: $formPublicId
|
|
228
|
-
authenticateOnly: $authenticateOnly
|
|
229
208
|
) {
|
|
230
209
|
${authenticateResultText}
|
|
231
210
|
}
|
|
@@ -298,33 +277,6 @@ mutation sendPhoneVerificationCode (
|
|
|
298
277
|
)
|
|
299
278
|
}`;
|
|
300
279
|
|
|
301
|
-
export const sendPublicFormEmailCodeMtn = gql`
|
|
302
|
-
mutation sendPublicFormEmailCode (
|
|
303
|
-
$formPublicId: String!
|
|
304
|
-
$email: String!
|
|
305
|
-
) {
|
|
306
|
-
sendPublicFormEmailCode (
|
|
307
|
-
formPublicId: $formPublicId
|
|
308
|
-
email: $email
|
|
309
|
-
)
|
|
310
|
-
}`;
|
|
311
|
-
|
|
312
|
-
export const confirmPublicFormEmailCodeMtn = gql`
|
|
313
|
-
mutation confirmPublicFormEmailCode (
|
|
314
|
-
$formPublicId: String!
|
|
315
|
-
$email: String!
|
|
316
|
-
$code: String!
|
|
317
|
-
) {
|
|
318
|
-
confirmPublicFormEmailCode (
|
|
319
|
-
formPublicId: $formPublicId
|
|
320
|
-
email: $email
|
|
321
|
-
code: $code
|
|
322
|
-
) {
|
|
323
|
-
respondentToken
|
|
324
|
-
respondentEmail
|
|
325
|
-
}
|
|
326
|
-
}`;
|
|
327
|
-
|
|
328
280
|
export const confirmPhoneVerificationCodeMtn = gql`
|
|
329
281
|
mutation confirmPhoneVerificationCode (
|
|
330
282
|
$phone: String!
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { gql } from 'graphql-tag';
|
|
2
|
+
import { emailMessageDetailsFragment, emailMessageFragment } from '../fragments/emailFragments.ts';
|
|
3
|
+
|
|
4
|
+
export const setInboundEmailSenderBlockedMtn = gql`
|
|
5
|
+
mutation setInboundEmailSenderBlocked (
|
|
6
|
+
$organizationId: GenericID!
|
|
7
|
+
$emailMessageId: ID!
|
|
8
|
+
$blocked: Boolean!
|
|
9
|
+
) {
|
|
10
|
+
setInboundEmailSenderBlocked (
|
|
11
|
+
organizationId: $organizationId
|
|
12
|
+
emailMessageId: $emailMessageId
|
|
13
|
+
blocked: $blocked
|
|
14
|
+
) {
|
|
15
|
+
...emailMessageFragment
|
|
16
|
+
details { ...emailMessageDetailsFragment }
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
${emailMessageFragment}
|
|
21
|
+
${emailMessageDetailsFragment}
|
|
22
|
+
`;
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { gql } from 'graphql-tag';
|
|
2
|
+
import { emailOutreachFragment } from '../fragments/emailOutreachFragments.ts';
|
|
3
|
+
import { storageFileFragment } from '../fragments/storageFragments.ts';
|
|
4
|
+
import { workWaitItemFragment } from '../fragments/workWaitFragments.ts';
|
|
5
|
+
|
|
6
|
+
/*
|
|
7
|
+
* Editor and lifecycle operations share the full outreach fragment with chat and detail reads.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
/*
|
|
11
|
+
* Cancel a SCHEDULED outreach before its send starts, fenced by deliveryVersion.
|
|
12
|
+
*/
|
|
13
|
+
export const cancelEmailOutreachMtn = gql`
|
|
14
|
+
mutation cancelEmailOutreach (
|
|
15
|
+
$input: CancelEmailOutreachInput!
|
|
16
|
+
) {
|
|
17
|
+
cancelEmailOutreach (input: $input) {
|
|
18
|
+
...emailOutreachFragment
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
${emailOutreachFragment}
|
|
22
|
+
${workWaitItemFragment}
|
|
23
|
+
`;
|
|
24
|
+
|
|
25
|
+
/*
|
|
26
|
+
* Re-send the definitely failed deliveries of an outreach, fenced by deliveryVersion.
|
|
27
|
+
*/
|
|
28
|
+
export const retryEmailOutreachMtn = gql`
|
|
29
|
+
mutation retryEmailOutreach (
|
|
30
|
+
$input: RetryEmailOutreachInput!
|
|
31
|
+
) {
|
|
32
|
+
retryEmailOutreach (input: $input) {
|
|
33
|
+
...emailOutreachFragment
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
${emailOutreachFragment}
|
|
37
|
+
${workWaitItemFragment}
|
|
38
|
+
`;
|
|
39
|
+
|
|
40
|
+
/*
|
|
41
|
+
* Archive one outreach that is not scheduled or sending.
|
|
42
|
+
*/
|
|
43
|
+
export const archiveEmailOutreachMtn = gql`
|
|
44
|
+
mutation archiveEmailOutreach (
|
|
45
|
+
$input: ArchiveEmailOutreachInput!
|
|
46
|
+
) {
|
|
47
|
+
archiveEmailOutreach (input: $input) {
|
|
48
|
+
...emailOutreachFragment
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
${emailOutreachFragment}
|
|
52
|
+
${workWaitItemFragment}
|
|
53
|
+
`;
|
|
54
|
+
|
|
55
|
+
/*
|
|
56
|
+
* Restore one archived outreach.
|
|
57
|
+
*/
|
|
58
|
+
export const unarchiveEmailOutreachMtn = gql`
|
|
59
|
+
mutation unarchiveEmailOutreach (
|
|
60
|
+
$input: UnarchiveEmailOutreachInput!
|
|
61
|
+
) {
|
|
62
|
+
unarchiveEmailOutreach (input: $input) {
|
|
63
|
+
...emailOutreachFragment
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
${emailOutreachFragment}
|
|
67
|
+
${workWaitItemFragment}
|
|
68
|
+
`;
|
|
69
|
+
|
|
70
|
+
/* Create an incomplete editor draft. */
|
|
71
|
+
export const createEmailOutreachDraftMtn = gql`
|
|
72
|
+
mutation createEmailOutreachDraft($input: CreateEmailOutreachDraftInput!) {
|
|
73
|
+
createEmailOutreachDraft(input: $input) { ...emailOutreachFragment }
|
|
74
|
+
}
|
|
75
|
+
${emailOutreachFragment}
|
|
76
|
+
${workWaitItemFragment}
|
|
77
|
+
`;
|
|
78
|
+
|
|
79
|
+
/* Save the whole document under its acknowledged edit version. */
|
|
80
|
+
export const editEmailOutreachDraftMtn = gql`
|
|
81
|
+
mutation editEmailOutreachDraft($input: EditEmailOutreachDraftInput!) {
|
|
82
|
+
editEmailOutreachDraft(input: $input) { ...emailOutreachFragment }
|
|
83
|
+
}
|
|
84
|
+
${emailOutreachFragment}
|
|
85
|
+
${workWaitItemFragment}
|
|
86
|
+
`;
|
|
87
|
+
|
|
88
|
+
/* Approve and send the exact draft version shown in the editor. */
|
|
89
|
+
export const sendEmailOutreachMtn = gql`
|
|
90
|
+
mutation sendEmailOutreach($input: SendEmailOutreachInput!) {
|
|
91
|
+
sendEmailOutreach(input: $input) { ...emailOutreachFragment }
|
|
92
|
+
}
|
|
93
|
+
${emailOutreachFragment}
|
|
94
|
+
${workWaitItemFragment}
|
|
95
|
+
`;
|
|
96
|
+
|
|
97
|
+
/* Move a scheduled send under its delivery version fence. */
|
|
98
|
+
export const rescheduleEmailOutreachMtn = gql`
|
|
99
|
+
mutation rescheduleEmailOutreach($input: RescheduleEmailOutreachInput!) {
|
|
100
|
+
rescheduleEmailOutreach(input: $input) { ...emailOutreachFragment }
|
|
101
|
+
}
|
|
102
|
+
${emailOutreachFragment}
|
|
103
|
+
${workWaitItemFragment}
|
|
104
|
+
`;
|
|
105
|
+
|
|
106
|
+
/* Send a saved preview only to the requesting member. */
|
|
107
|
+
export const sendEmailOutreachTestMtn = gql`
|
|
108
|
+
mutation sendEmailOutreachTest($input: SendEmailOutreachTestInput!) {
|
|
109
|
+
sendEmailOutreachTest(input: $input) { ...emailOutreachFragment }
|
|
110
|
+
}
|
|
111
|
+
${emailOutreachFragment}
|
|
112
|
+
${workWaitItemFragment}
|
|
113
|
+
`;
|
|
114
|
+
|
|
115
|
+
/* Update reply handling while preserving sent content. */
|
|
116
|
+
export const updateEmailOutreachReplyInstructionsMtn = gql`
|
|
117
|
+
mutation updateEmailOutreachReplyInstructions($input: UpdateEmailOutreachReplyInstructionsInput!) {
|
|
118
|
+
updateEmailOutreachReplyInstructions(input: $input) { ...emailOutreachFragment }
|
|
119
|
+
}
|
|
120
|
+
${emailOutreachFragment}
|
|
121
|
+
${workWaitItemFragment}
|
|
122
|
+
`;
|
|
123
|
+
|
|
124
|
+
/* Copy an outreach into a new unscheduled draft. */
|
|
125
|
+
export const duplicateEmailOutreachMtn = gql`
|
|
126
|
+
mutation duplicateEmailOutreach($input: DuplicateEmailOutreachInput!) {
|
|
127
|
+
duplicateEmailOutreach(input: $input) { ...emailOutreachFragment }
|
|
128
|
+
}
|
|
129
|
+
${emailOutreachFragment}
|
|
130
|
+
${workWaitItemFragment}
|
|
131
|
+
`;
|
|
132
|
+
|
|
133
|
+
/* Verify the uploaded image before a draft can claim and pin it. */
|
|
134
|
+
export const finalizeEmailOutreachImageUploadMtn = gql`
|
|
135
|
+
mutation finalizeEmailOutreachImageUpload($organizationId: GenericID!, $storageId: GenericID!) {
|
|
136
|
+
finalizeEmailOutreachImageUpload(organizationId: $organizationId, storageId: $storageId) { ...storageFileFragment }
|
|
137
|
+
}
|
|
138
|
+
${storageFileFragment}
|
|
139
|
+
`;
|
package/gql/mutations/index.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export * from './aiChatLinkMutations.ts';
|
|
1
2
|
export * from './audienceMutations.ts';
|
|
2
3
|
export * from './accountMutations.ts';
|
|
3
4
|
export * from './agentMemoryMutations.ts';
|
|
@@ -5,9 +6,10 @@ export * from './agentNoteMutations.ts';
|
|
|
5
6
|
export * from './aiChatMutations.ts';
|
|
6
7
|
export * from './authMutations.ts';
|
|
7
8
|
export * from './billingMutations.ts';
|
|
8
|
-
export * from './campaignMutations.ts';
|
|
9
9
|
export * from './contactMutations.ts';
|
|
10
10
|
export * from './dataTableMutations.ts';
|
|
11
|
+
export * from './emailMutations.ts';
|
|
12
|
+
export * from './emailOutreachMutations.ts';
|
|
11
13
|
export * from './fieldDocMutations.ts';
|
|
12
14
|
export * from './inboundContactMutations.ts';
|
|
13
15
|
export * from './integrationMutations.ts';
|
|
@@ -89,9 +89,9 @@ ${organizationFragment}
|
|
|
89
89
|
export const editOrganizationSettingsMtn = gql`
|
|
90
90
|
mutation editOrganizationSettings (
|
|
91
91
|
$organizationId: GenericID!
|
|
92
|
-
$schedule: OrganizationScheduleSettingsInput
|
|
93
92
|
$displayTranslatedLogs: Boolean
|
|
94
93
|
$translateLanguage: String
|
|
94
|
+
$allowMcpConnections: Boolean
|
|
95
95
|
$sidebar: [OrganizationSidebarItemInput!]
|
|
96
96
|
$routeId: String
|
|
97
97
|
$columnWidths: [String!]
|
|
@@ -99,9 +99,9 @@ mutation editOrganizationSettings (
|
|
|
99
99
|
) {
|
|
100
100
|
editOrganizationSettings (
|
|
101
101
|
organizationId: $organizationId
|
|
102
|
-
schedule: $schedule
|
|
103
102
|
displayTranslatedLogs: $displayTranslatedLogs
|
|
104
103
|
translateLanguage: $translateLanguage
|
|
104
|
+
allowMcpConnections: $allowMcpConnections
|
|
105
105
|
sidebar: $sidebar
|
|
106
106
|
routeId: $routeId
|
|
107
107
|
columnWidths: $columnWidths
|