@jsb188/graphql 1.1.11 → 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 +205 -0
- package/cache/config.ts +65 -28
- package/cache/index.helpers.ts +96 -0
- package/cache/index.ts +364 -808
- package/cache/mounted-queries.ts +33 -0
- package/cache/optimistic-ui-runtime.ts +46 -0
- package/cache/optimistic-ui.ts +401 -0
- package/cache/persist.ts +107 -22
- package/cache/realtime-fence.ts +47 -0
- package/cache/realtime-live.ts +17 -0
- package/cache/store.ts +22 -64
- package/cache/value.helpers.ts +17 -0
- package/{drafts/store.ts → client/draft-persistence-indexed-db.ts} +19 -3
- package/{drafts/index.ts → client/draft-persistence.ts} +13 -39
- package/client/index.ts +4 -2
- package/client/request.helpers.ts +14 -0
- package/client/request.ts +122 -232
- package/client/storage-asset.ts +58 -0
- package/gql/fragments/accountAuthFragments.ts +0 -4
- package/gql/fragments/agentMemoryFragments.ts +5 -1
- package/gql/fragments/agentNoteFragments.ts +156 -0
- package/gql/fragments/aiChatFragments.ts +35 -11
- package/gql/fragments/aiChatLinkFragments.ts +8 -0
- package/gql/fragments/audienceFragments.ts +76 -0
- package/gql/fragments/dataTableFragments.ts +48 -80
- package/gql/fragments/emailFragments.ts +49 -21
- package/gql/fragments/emailOutreachFragments.ts +281 -0
- package/gql/fragments/fieldDocFragments.ts +222 -40
- package/gql/fragments/inboundContactFragments.ts +2 -0
- package/gql/fragments/libraryFragments.ts +120 -0
- package/gql/fragments/logFragments.ts +93 -2
- package/gql/fragments/organizationFragments.ts +12 -0
- package/gql/fragments/qrCodeFragments.ts +29 -0
- package/gql/fragments/scheduleFragments.ts +574 -145
- package/gql/fragments/sheetFragments.ts +86 -424
- package/gql/fragments/storageFragments.ts +25 -1
- package/gql/fragments/workWaitFragments.ts +13 -0
- package/gql/fragments/workflowFragments.ts +32 -4
- package/gql/mutations/agentMemoryMutations.ts +32 -0
- package/gql/mutations/agentNoteMutations.ts +64 -0
- package/gql/mutations/aiChatLinkMutations.ts +13 -0
- package/gql/mutations/aiChatMutations.ts +34 -4
- package/gql/mutations/audienceMutations.ts +58 -0
- package/gql/mutations/authMutations.ts +24 -28
- package/gql/mutations/billingMutations.ts +24 -0
- package/gql/mutations/contactMutations.ts +23 -0
- package/gql/mutations/dataTableMutations.ts +18 -75
- package/gql/mutations/emailMutations.ts +22 -0
- package/gql/mutations/emailOutreachMutations.ts +139 -0
- package/gql/mutations/fieldDocMutations.ts +162 -13
- package/gql/mutations/index.ts +10 -5
- package/gql/mutations/organizationMutations.ts +6 -0
- package/gql/mutations/qrCodeMutations.ts +20 -0
- package/gql/mutations/scheduleMutations.ts +389 -417
- package/gql/mutations/sheetMutations.ts +62 -118
- package/gql/mutations/storageMutations.ts +1 -1
- package/gql/mutations/workflowMutations.ts +94 -0
- package/gql/queries/agentMemoryQueries.ts +12 -2
- package/gql/queries/agentNoteQueries.ts +86 -0
- package/gql/queries/aiChatQueries.ts +63 -12
- package/gql/queries/audienceQueries.ts +104 -0
- package/gql/queries/authQueries.ts +20 -4
- package/gql/queries/billingQueries.ts +114 -9
- package/gql/queries/dataTableQueries.ts +43 -75
- package/gql/queries/emailOutreachQueries.ts +282 -0
- package/gql/queries/emailQueries.ts +48 -64
- package/gql/queries/emailReplyReportQueries.ts +127 -0
- package/gql/queries/fieldDocQueries.ts +128 -98
- package/gql/queries/inboundContactQueries.ts +15 -4
- package/gql/queries/index.ts +5 -3
- package/gql/queries/libraryQueries.ts +112 -0
- package/gql/queries/logQueries.ts +86 -12
- package/gql/queries/organizationQueries.ts +44 -12
- package/gql/queries/qrCodeQueries.ts +27 -0
- package/gql/queries/scheduleQueries.ts +401 -278
- package/gql/queries/sheetQueries.ts +94 -165
- package/gql/queries/storageQueries.ts +11 -4
- package/gql/queries/workflowQueries.ts +61 -12
- package/gql/reactivity.ts +98 -0
- package/gql/recordReads.ts +171 -0
- package/hooks/index.helpers.ts +52 -0
- package/hooks/index.ts +920 -715
- package/hooks/use-agentMemory-mtn.ts +29 -31
- package/hooks/use-agentMemory-qry.ts +15 -3
- package/hooks/use-agentNote-mtn.ts +89 -0
- package/hooks/use-agentNote-qry.ts +162 -0
- package/hooks/use-agentNote-recovery.helpers.ts +58 -0
- package/hooks/use-agentNote-recovery.ts +57 -0
- package/hooks/use-aiChat-mtn.ts +104 -115
- package/hooks/use-aiChat-qry.helpers.ts +124 -0
- package/hooks/use-aiChat-qry.ts +254 -387
- package/hooks/use-aiChat-stream-mtn.ts +14 -0
- package/hooks/use-audience-mtn.ts +170 -0
- package/hooks/use-audience-qry.helpers.ts +39 -0
- package/hooks/use-audience-qry.ts +245 -0
- package/hooks/use-auth-mtn.ts +30 -1
- package/hooks/use-billing-mtn.ts +31 -0
- package/hooks/use-billing-qry.ts +76 -0
- package/hooks/use-dataTable-mtn.ts +23 -115
- package/hooks/use-dataTable-qry.ts +69 -914
- package/hooks/use-email-mtn.ts +26 -0
- package/hooks/use-email-qry.helpers.ts +37 -0
- package/hooks/use-email-qry.ts +44 -174
- 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-mtn.ts +244 -32
- package/hooks/use-fieldDoc-qry.helpers.ts +49 -0
- package/hooks/use-fieldDoc-qry.ts +134 -102
- package/hooks/use-inboundContact-qry.ts +7 -9
- package/hooks/use-library-qry.ts +233 -0
- package/hooks/use-log-mtn.ts +25 -12
- package/hooks/use-log-qry.ts +99 -46
- package/hooks/use-organization-qry.ts +16 -60
- package/hooks/use-qrCode-mtn.ts +40 -0
- package/hooks/use-qrCode-qry.ts +78 -0
- package/hooks/use-schedule-mtn.ts +231 -348
- package/hooks/use-schedule-qry.ts +208 -139
- package/hooks/use-schedule-reactive.ts +218 -0
- package/hooks/use-sheet-mtn.ts +91 -199
- package/hooks/use-sheet-qry.ts +88 -237
- package/hooks/use-storage-qry.ts +84 -61
- package/hooks/use-workflow-mtn.ts +84 -23
- package/hooks/use-workflow-qry.ts +60 -61
- package/libs/ai-chat-link-events.ts +78 -0
- package/libs/ai-chat-outgoing.helpers.ts +153 -0
- package/libs/ai-chat-outgoing.ts +11 -0
- package/libs/ai-chat-outgoing.types.ts +25 -0
- package/libs/ai-chat-run-realtime.ts +20 -0
- package/libs/ai-chat-submission-realtime.ts +150 -0
- package/libs/data-changes.helpers.ts +161 -0
- package/libs/data-changes.ts +382 -0
- package/libs/fragment-realtime-sequence.ts +55 -0
- package/libs/open-sheet.ts +138 -0
- package/libs/record-read.ts +327 -0
- package/libs/sheet-command-batch.ts +45 -0
- package/libs/sheet-realtime-packet.ts +53 -0
- package/libs/sheet-view-realtime-router.ts +99 -0
- package/loaders/emailPreference.ts +69 -0
- package/loaders/rest.ts +12 -0
- package/package.json +77 -25
- package/schedule.d.ts +1183 -0
- package/sse.helpers.ts +19 -0
- package/sse.ts +26 -115
- package/types.d.ts +48 -25
- package/cache/index.test.ts +0 -881
- package/client/data-table-realtime-subscriptions.test.ts +0 -740
- package/client/data-table-realtime-subscriptions.ts +0 -955
- package/client/data-table-realtime.test.ts +0 -792
- package/client/data-table-realtime.ts +0 -1218
- package/client/fragment-realtime-sequence.ts +0 -52
- package/client/open-sheet.ts +0 -137
- package/client/request-managed-session.test.ts +0 -574
- package/client/request-no-store.test.ts +0 -157
- package/client/sse-ticket.test.ts +0 -26
- package/deno.lock +0 -170
- package/deno.test.json +0 -10
- package/gql/fragments/agentDocFragments.ts +0 -46
- package/gql/fragments/billingFragments.ts +0 -14
- package/gql/fragments/campaignFragments.ts +0 -277
- package/gql/mutations/agentDocMutations.ts +0 -177
- package/gql/mutations/campaignMutations.ts +0 -215
- package/gql/queries/agentDocQueries.ts +0 -120
- package/gql/queries/appQueries.ts +0 -14
- package/gql/queries/campaignQueries.ts +0 -127
- package/hooks/use-agentDoc-mtn.ts +0 -285
- package/hooks/use-agentDoc-qry.ts +0 -208
- package/hooks/use-app-qry.ts +0 -22
- package/hooks/use-campaign-mtn.ts +0 -377
- package/hooks/use-campaign-qry.ts +0 -257
- package/loaders/campaign.ts +0 -137
- package/tsconfig.json +0 -13
|
@@ -1,7 +1,27 @@
|
|
|
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
|
|
4
13
|
fieldDocId
|
|
14
|
+
programManaged
|
|
15
|
+
fieldDocProgramId
|
|
16
|
+
userInstructions
|
|
17
|
+
agentNoteId
|
|
18
|
+
agentNote {
|
|
19
|
+
id
|
|
20
|
+
kind
|
|
21
|
+
headline
|
|
22
|
+
emoji
|
|
23
|
+
archivedAt
|
|
24
|
+
}
|
|
5
25
|
|
|
6
26
|
kind
|
|
7
27
|
triggerType
|
|
@@ -18,17 +38,25 @@ export const workflowFragment = `fragment workflowFragment on Workflow {
|
|
|
18
38
|
cursor
|
|
19
39
|
|
|
20
40
|
title
|
|
41
|
+
reminderContent
|
|
21
42
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
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 } }
|
|
26
52
|
}
|
|
27
53
|
|
|
28
54
|
schedule
|
|
29
55
|
scheduleInterval
|
|
30
56
|
active
|
|
31
57
|
status
|
|
58
|
+
waitingFor { ...workWaitItemFragment }
|
|
59
|
+
endReason
|
|
32
60
|
|
|
33
61
|
startedAt
|
|
34
62
|
nextAt
|
|
@@ -1,11 +1,41 @@
|
|
|
1
1
|
import { gql } from 'graphql-tag';
|
|
2
2
|
import { agentMemoryFragment } from '../fragments/agentMemoryFragments.ts';
|
|
3
3
|
|
|
4
|
+
export const createAgentMemoryMtn = gql`
|
|
5
|
+
mutation createAgentMemory (
|
|
6
|
+
$organizationId: GenericID!
|
|
7
|
+
$scope: AgentMemoryScope!
|
|
8
|
+
$accountId: GenericID
|
|
9
|
+
$inboundContactId: GenericID
|
|
10
|
+
$category: AgentMemoryCategory
|
|
11
|
+
$content: String!
|
|
12
|
+
$surface: [AgentMemorySurface!]
|
|
13
|
+
$permanent: Boolean
|
|
14
|
+
) {
|
|
15
|
+
createAgentMemory (
|
|
16
|
+
organizationId: $organizationId
|
|
17
|
+
scope: $scope
|
|
18
|
+
accountId: $accountId
|
|
19
|
+
inboundContactId: $inboundContactId
|
|
20
|
+
category: $category
|
|
21
|
+
content: $content
|
|
22
|
+
surface: $surface
|
|
23
|
+
permanent: $permanent
|
|
24
|
+
) {
|
|
25
|
+
...agentMemoryFragment
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
${agentMemoryFragment}
|
|
30
|
+
`;
|
|
31
|
+
|
|
4
32
|
export const editAgentMemoryMtn = gql`
|
|
5
33
|
mutation editAgentMemory (
|
|
6
34
|
$organizationId: GenericID!
|
|
7
35
|
$agentMemoryId: GenericID!
|
|
8
36
|
$content: String
|
|
37
|
+
$category: AgentMemoryCategory
|
|
38
|
+
$surface: [AgentMemorySurface!]
|
|
9
39
|
$permanent: Boolean
|
|
10
40
|
$status: AgentMemoryStatus
|
|
11
41
|
) {
|
|
@@ -13,6 +43,8 @@ mutation editAgentMemory (
|
|
|
13
43
|
organizationId: $organizationId
|
|
14
44
|
agentMemoryId: $agentMemoryId
|
|
15
45
|
content: $content
|
|
46
|
+
category: $category
|
|
47
|
+
surface: $surface
|
|
16
48
|
permanent: $permanent
|
|
17
49
|
status: $status
|
|
18
50
|
) {
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { gql } from 'graphql-tag';
|
|
2
|
+
import { agentNoteDetailFragment } from '../fragments/agentNoteFragments.ts';
|
|
3
|
+
|
|
4
|
+
export const markAgentNoteReadMtn = gql`
|
|
5
|
+
mutation markAgentNoteRead (
|
|
6
|
+
$organizationId: GenericID!
|
|
7
|
+
$agentNoteId: GenericID!
|
|
8
|
+
) {
|
|
9
|
+
markAgentNoteRead (
|
|
10
|
+
organizationId: $organizationId
|
|
11
|
+
agentNoteId: $agentNoteId
|
|
12
|
+
)
|
|
13
|
+
}
|
|
14
|
+
`;
|
|
15
|
+
|
|
16
|
+
export const updateAgentNoteMtn = gql`
|
|
17
|
+
mutation updateAgentNote (
|
|
18
|
+
$organizationId: GenericID!
|
|
19
|
+
$agentNoteId: GenericID!
|
|
20
|
+
$title: String
|
|
21
|
+
$pinned: Boolean
|
|
22
|
+
$needsAttention: Boolean
|
|
23
|
+
$archived: Boolean
|
|
24
|
+
$disableAutoCreation: Boolean
|
|
25
|
+
) {
|
|
26
|
+
updateAgentNote (
|
|
27
|
+
organizationId: $organizationId
|
|
28
|
+
agentNoteId: $agentNoteId
|
|
29
|
+
title: $title
|
|
30
|
+
pinned: $pinned
|
|
31
|
+
needsAttention: $needsAttention
|
|
32
|
+
archived: $archived
|
|
33
|
+
disableAutoCreation: $disableAutoCreation
|
|
34
|
+
)
|
|
35
|
+
}
|
|
36
|
+
`;
|
|
37
|
+
|
|
38
|
+
export const refreshAgentNoteMtn = gql`
|
|
39
|
+
mutation refreshAgentNote (
|
|
40
|
+
$organizationId: GenericID!
|
|
41
|
+
$agentNoteId: GenericID!
|
|
42
|
+
) {
|
|
43
|
+
refreshAgentNote (
|
|
44
|
+
organizationId: $organizationId
|
|
45
|
+
agentNoteId: $agentNoteId
|
|
46
|
+
) {
|
|
47
|
+
...agentNoteDetailFragment
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
${agentNoteDetailFragment}
|
|
52
|
+
`;
|
|
53
|
+
|
|
54
|
+
export const deleteAgentNoteMtn = gql`
|
|
55
|
+
mutation deleteAgentNote (
|
|
56
|
+
$organizationId: GenericID!
|
|
57
|
+
$agentNoteId: GenericID!
|
|
58
|
+
) {
|
|
59
|
+
deleteAgentNote (
|
|
60
|
+
organizationId: $organizationId
|
|
61
|
+
agentNoteId: $agentNoteId
|
|
62
|
+
)
|
|
63
|
+
}
|
|
64
|
+
`;
|
|
@@ -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
|
+
`;
|
|
@@ -1,23 +1,30 @@
|
|
|
1
1
|
import { gql } from 'graphql-tag';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
aiChatMessageFragment,
|
|
5
|
-
} from '../fragments/aiChatFragments.ts';
|
|
2
|
+
import { aiChatFragment, aiChatMessageFragment, aiChatRunFragment } from '../fragments/aiChatFragments.ts';
|
|
3
|
+
import { storageFileFragment } from '../fragments/storageFragments.ts';
|
|
6
4
|
|
|
7
5
|
export const startAIChatMtn = gql`
|
|
8
6
|
mutation startAIChat (
|
|
9
7
|
$organizationId: GenericID!
|
|
8
|
+
$agentNoteId: GenericID
|
|
10
9
|
$text: String
|
|
11
10
|
$attachments: [String!]
|
|
11
|
+
$qrCodeTokens: [String!]
|
|
12
12
|
$clientRequestId: String
|
|
13
|
+
$viewContext: AIChatViewContextInput
|
|
13
14
|
) {
|
|
14
15
|
startAIChat (
|
|
15
16
|
organizationId: $organizationId
|
|
17
|
+
agentNoteId: $agentNoteId
|
|
16
18
|
text: $text
|
|
17
19
|
attachments: $attachments
|
|
20
|
+
qrCodeTokens: $qrCodeTokens
|
|
18
21
|
clientRequestId: $clientRequestId
|
|
22
|
+
viewContext: $viewContext
|
|
19
23
|
) {
|
|
20
24
|
sessionKey
|
|
25
|
+
run {
|
|
26
|
+
...aiChatRunFragment
|
|
27
|
+
}
|
|
21
28
|
node {
|
|
22
29
|
cursor
|
|
23
30
|
...aiChatFragment
|
|
@@ -26,6 +33,7 @@ mutation startAIChat (
|
|
|
26
33
|
}
|
|
27
34
|
|
|
28
35
|
${aiChatFragment}
|
|
36
|
+
${aiChatRunFragment}
|
|
29
37
|
`;
|
|
30
38
|
|
|
31
39
|
export const editAIChatMtn = gql`
|
|
@@ -54,7 +62,9 @@ mutation sendAIChatMessage (
|
|
|
54
62
|
$variablesKey: String
|
|
55
63
|
$text: String
|
|
56
64
|
$attachments: [String!]
|
|
65
|
+
$qrCodeTokens: [String!]
|
|
57
66
|
$clientRequestId: String
|
|
67
|
+
$viewContext: AIChatViewContextInput
|
|
58
68
|
) {
|
|
59
69
|
sendAIChatMessage (
|
|
60
70
|
aiChatId: $aiChatId
|
|
@@ -62,16 +72,30 @@ mutation sendAIChatMessage (
|
|
|
62
72
|
variablesKey: $variablesKey
|
|
63
73
|
text: $text
|
|
64
74
|
attachments: $attachments
|
|
75
|
+
qrCodeTokens: $qrCodeTokens
|
|
65
76
|
clientRequestId: $clientRequestId
|
|
77
|
+
viewContext: $viewContext
|
|
66
78
|
) {
|
|
67
79
|
sessionKey
|
|
80
|
+
run {
|
|
81
|
+
...aiChatRunFragment
|
|
82
|
+
}
|
|
68
83
|
node {
|
|
69
84
|
...aiChatMessageFragment
|
|
85
|
+
|
|
86
|
+
attachments {
|
|
87
|
+
ordinal
|
|
88
|
+
file {
|
|
89
|
+
...storageFileFragment
|
|
90
|
+
}
|
|
91
|
+
}
|
|
70
92
|
}
|
|
71
93
|
}
|
|
72
94
|
}
|
|
73
95
|
|
|
74
96
|
${aiChatMessageFragment}
|
|
97
|
+
${aiChatRunFragment}
|
|
98
|
+
${storageFileFragment}
|
|
75
99
|
`;
|
|
76
100
|
|
|
77
101
|
export const stopAIChatMessageMtn = gql`
|
|
@@ -93,3 +117,9 @@ mutation deleteAIChat (
|
|
|
93
117
|
)
|
|
94
118
|
}
|
|
95
119
|
`;
|
|
120
|
+
|
|
121
|
+
export const resumeAIChatStreamMtn = gql`
|
|
122
|
+
mutation resumeAIChatStream($aiChatId: GenericID!) {
|
|
123
|
+
resumeAIChatStream(aiChatId: $aiChatId)
|
|
124
|
+
}
|
|
125
|
+
`;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { gql } from 'graphql-tag';
|
|
2
|
+
import {
|
|
3
|
+
audienceEmailAddressFragment,
|
|
4
|
+
audienceListFragment,
|
|
5
|
+
audienceListMemberFragment,
|
|
6
|
+
} from '../fragments/audienceFragments.ts';
|
|
7
|
+
|
|
8
|
+
export const createAudienceListMtn = gql`
|
|
9
|
+
mutation createAudienceList($input: CreateAudienceListInput!) {
|
|
10
|
+
createAudienceList(input: $input) { ...audienceListFragment }
|
|
11
|
+
}
|
|
12
|
+
${audienceListFragment}
|
|
13
|
+
`;
|
|
14
|
+
|
|
15
|
+
export const editAudienceListMtn = gql`
|
|
16
|
+
mutation editAudienceList($input: EditAudienceListInput!) {
|
|
17
|
+
editAudienceList(input: $input) { ...audienceListFragment }
|
|
18
|
+
}
|
|
19
|
+
${audienceListFragment}
|
|
20
|
+
`;
|
|
21
|
+
|
|
22
|
+
export const editAudienceListMemberMtn = gql`
|
|
23
|
+
mutation editAudienceListMember($input: EditAudienceListMemberInput!) {
|
|
24
|
+
editAudienceListMember(input: $input) { ...audienceListMemberFragment }
|
|
25
|
+
}
|
|
26
|
+
${audienceListMemberFragment}
|
|
27
|
+
`;
|
|
28
|
+
|
|
29
|
+
export const addAudienceListMembersMtn = gql`
|
|
30
|
+
mutation addAudienceListMembers($input: AddAudienceListMembersInput!) {
|
|
31
|
+
addAudienceListMembers(input: $input) {
|
|
32
|
+
index
|
|
33
|
+
emailAddress
|
|
34
|
+
outcome
|
|
35
|
+
memberId
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
`;
|
|
39
|
+
|
|
40
|
+
export const changeAudienceListSubscriptionMtn = gql`
|
|
41
|
+
mutation changeAudienceListSubscription($input: ChangeAudienceListSubscriptionInput!) {
|
|
42
|
+
changeAudienceListSubscription(input: $input) { ...audienceListMemberFragment }
|
|
43
|
+
}
|
|
44
|
+
${audienceListMemberFragment}
|
|
45
|
+
`;
|
|
46
|
+
|
|
47
|
+
export const removeAudienceListMembersMtn = gql`
|
|
48
|
+
mutation removeAudienceListMembers($input: RemoveAudienceListMembersInput!) {
|
|
49
|
+
removeAudienceListMembers(input: $input)
|
|
50
|
+
}
|
|
51
|
+
`;
|
|
52
|
+
|
|
53
|
+
export const setAudienceAddressSuppressionMtn = gql`
|
|
54
|
+
mutation setAudienceAddressSuppression($input: SetAudienceAddressSuppressionInput!) {
|
|
55
|
+
setAudienceAddressSuppression(input: $input) { ...audienceEmailAddressFragment }
|
|
56
|
+
}
|
|
57
|
+
${audienceEmailAddressFragment}
|
|
58
|
+
`;
|
|
@@ -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 {
|
|
@@ -57,6 +60,19 @@ mutation authenticateWithPassword (
|
|
|
57
60
|
${authenticateFragments}
|
|
58
61
|
`;
|
|
59
62
|
|
|
63
|
+
export const authenticateAsAgentMtn = gql`
|
|
64
|
+
mutation authenticateAsAgent (
|
|
65
|
+
$identifier: String!
|
|
66
|
+
) {
|
|
67
|
+
authenticateAsAgent (
|
|
68
|
+
identifier: $identifier
|
|
69
|
+
) {
|
|
70
|
+
${authenticateResultText}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
${authenticateFragments}
|
|
74
|
+
`;
|
|
75
|
+
|
|
60
76
|
export const authenticateWithTokenMtn = gql`
|
|
61
77
|
mutation authenticateWithToken (
|
|
62
78
|
$token: Token!
|
|
@@ -86,11 +102,7 @@ mutation authenticateManagedSession (
|
|
|
86
102
|
}
|
|
87
103
|
|
|
88
104
|
credential {
|
|
89
|
-
|
|
90
|
-
accessTokenExpiresAt
|
|
91
|
-
refreshToken
|
|
92
|
-
refreshTokenExpiresAt
|
|
93
|
-
sessionId
|
|
105
|
+
${managedCredentialFields}
|
|
94
106
|
}
|
|
95
107
|
}
|
|
96
108
|
}
|
|
@@ -104,11 +116,7 @@ mutation exchangeSessionBootstrap (
|
|
|
104
116
|
exchangeSessionBootstrap (
|
|
105
117
|
bootstrapToken: $bootstrapToken
|
|
106
118
|
) {
|
|
107
|
-
|
|
108
|
-
accessTokenExpiresAt
|
|
109
|
-
refreshToken
|
|
110
|
-
refreshTokenExpiresAt
|
|
111
|
-
sessionId
|
|
119
|
+
${managedCredentialFields}
|
|
112
120
|
}
|
|
113
121
|
}`;
|
|
114
122
|
|
|
@@ -121,11 +129,7 @@ mutation refreshManagedSession (
|
|
|
121
129
|
refreshToken: $refreshToken
|
|
122
130
|
refreshAttemptId: $refreshAttemptId
|
|
123
131
|
) {
|
|
124
|
-
|
|
125
|
-
accessTokenExpiresAt
|
|
126
|
-
refreshToken
|
|
127
|
-
refreshTokenExpiresAt
|
|
128
|
-
sessionId
|
|
132
|
+
${managedCredentialFields}
|
|
129
133
|
}
|
|
130
134
|
}`;
|
|
131
135
|
|
|
@@ -182,14 +186,10 @@ export const continueWithGoogleMtn = gql`
|
|
|
182
186
|
mutation continueWithGoogle (
|
|
183
187
|
$oauthToken: String!
|
|
184
188
|
$ssoConnectionId: GenericID
|
|
185
|
-
$formPublicId: String
|
|
186
|
-
$authenticateOnly: Boolean
|
|
187
189
|
) {
|
|
188
190
|
continueWithGoogle (
|
|
189
191
|
oauthToken: $oauthToken
|
|
190
192
|
ssoConnectionId: $ssoConnectionId
|
|
191
|
-
formPublicId: $formPublicId
|
|
192
|
-
authenticateOnly: $authenticateOnly
|
|
193
193
|
) {
|
|
194
194
|
${authenticateResultText}
|
|
195
195
|
}
|
|
@@ -201,14 +201,10 @@ export const continueWithMicrosoftMtn = gql`
|
|
|
201
201
|
mutation continueWithMicrosoft (
|
|
202
202
|
$idToken: String!
|
|
203
203
|
$ssoConnectionId: GenericID
|
|
204
|
-
$formPublicId: String
|
|
205
|
-
$authenticateOnly: Boolean
|
|
206
204
|
) {
|
|
207
205
|
continueWithMicrosoft (
|
|
208
206
|
idToken: $idToken
|
|
209
207
|
ssoConnectionId: $ssoConnectionId
|
|
210
|
-
formPublicId: $formPublicId
|
|
211
|
-
authenticateOnly: $authenticateOnly
|
|
212
208
|
) {
|
|
213
209
|
${authenticateResultText}
|
|
214
210
|
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { gql } from 'graphql-tag';
|
|
2
|
+
|
|
3
|
+
// The response carries a Stripe client secret; the hook sends it with the
|
|
4
|
+
// no-store cache policy so it never reaches the normalized or persisted cache.
|
|
5
|
+
export const startBillingSubscriptionMtn = gql`
|
|
6
|
+
mutation startBillingSubscription (
|
|
7
|
+
$organizationId: GenericID!
|
|
8
|
+
$priceId: String!
|
|
9
|
+
$billingDetails: BillingDetailsInput!
|
|
10
|
+
) {
|
|
11
|
+
startBillingSubscription (
|
|
12
|
+
organizationId: $organizationId
|
|
13
|
+
priceId: $priceId
|
|
14
|
+
billingDetails: $billingDetails
|
|
15
|
+
) {
|
|
16
|
+
purchaseAttemptId
|
|
17
|
+
subscriptionId
|
|
18
|
+
intentType
|
|
19
|
+
clientSecret
|
|
20
|
+
amountDue
|
|
21
|
+
currency
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
`;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { gql } from 'graphql-tag';
|
|
2
|
+
|
|
3
|
+
export const submitContactRequestMtn = gql`
|
|
4
|
+
mutation submitContactRequest (
|
|
5
|
+
$email: String!
|
|
6
|
+
$firstName: String!
|
|
7
|
+
$lastName: String!
|
|
8
|
+
$jobTitle: String!
|
|
9
|
+
$companyName: String!
|
|
10
|
+
$industry: ContactIndustry!
|
|
11
|
+
$turnstileToken: String!
|
|
12
|
+
) {
|
|
13
|
+
submitContactRequest (
|
|
14
|
+
email: $email
|
|
15
|
+
firstName: $firstName
|
|
16
|
+
lastName: $lastName
|
|
17
|
+
jobTitle: $jobTitle
|
|
18
|
+
companyName: $companyName
|
|
19
|
+
industry: $industry
|
|
20
|
+
turnstileToken: $turnstileToken
|
|
21
|
+
)
|
|
22
|
+
}
|
|
23
|
+
`;
|
|
@@ -1,24 +1,22 @@
|
|
|
1
1
|
import { gql } from 'graphql-tag';
|
|
2
|
-
import {
|
|
3
|
-
dataTableCellFragment,
|
|
4
|
-
dataTableFragment,
|
|
5
|
-
dataTableRowFragment,
|
|
6
|
-
} from '../fragments/dataTableFragments.ts';
|
|
2
|
+
import { dataTableFragment } from '../fragments/dataTableFragments.ts';
|
|
7
3
|
|
|
8
|
-
export const
|
|
9
|
-
mutation
|
|
4
|
+
export const renameDataTableMtn = gql`
|
|
5
|
+
mutation renameDataTable (
|
|
10
6
|
$organizationId: GenericID!
|
|
7
|
+
$dataTableId: GenericID!
|
|
11
8
|
$title: String!
|
|
12
|
-
$name: String
|
|
13
|
-
$description: String
|
|
14
9
|
) {
|
|
15
|
-
|
|
10
|
+
renameDataTable (
|
|
16
11
|
organizationId: $organizationId
|
|
12
|
+
dataTableId: $dataTableId
|
|
17
13
|
title: $title
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
14
|
+
) {
|
|
15
|
+
...dataTableFragment
|
|
16
|
+
}
|
|
21
17
|
}
|
|
18
|
+
|
|
19
|
+
${dataTableFragment}
|
|
22
20
|
`;
|
|
23
21
|
|
|
24
22
|
export const deleteDataTableMtn = gql`
|
|
@@ -33,74 +31,19 @@ mutation deleteDataTable (
|
|
|
33
31
|
}
|
|
34
32
|
`;
|
|
35
33
|
|
|
36
|
-
export const
|
|
37
|
-
mutation
|
|
34
|
+
export const exportDataTableToFileMtn = gql`
|
|
35
|
+
mutation exportDataTableToFile (
|
|
38
36
|
$organizationId: GenericID!
|
|
39
37
|
$dataTableId: GenericID!
|
|
40
|
-
$cells: [DataTableCellEditInput!]!
|
|
41
|
-
$commandId: String
|
|
42
38
|
) {
|
|
43
|
-
|
|
39
|
+
exportDataTableToFile (
|
|
44
40
|
organizationId: $organizationId
|
|
45
41
|
dataTableId: $dataTableId
|
|
46
|
-
cells: $cells
|
|
47
|
-
commandId: $commandId
|
|
48
42
|
) {
|
|
49
|
-
|
|
43
|
+
fileUri
|
|
44
|
+
name
|
|
45
|
+
contentType
|
|
46
|
+
size
|
|
50
47
|
}
|
|
51
48
|
}
|
|
52
|
-
|
|
53
|
-
${dataTableCellFragment}
|
|
54
|
-
`;
|
|
55
|
-
|
|
56
|
-
export const deleteDataTableRowsMtn = gql`
|
|
57
|
-
mutation deleteDataTableRows (
|
|
58
|
-
$organizationId: GenericID!
|
|
59
|
-
$dataTableId: GenericID!
|
|
60
|
-
$dataTableRowIds: [GenericID!]!
|
|
61
|
-
$commandId: String
|
|
62
|
-
$previewClientId: String
|
|
63
|
-
$previewEnvelopeId: String
|
|
64
|
-
$previewSeq: BigInt
|
|
65
|
-
) {
|
|
66
|
-
deleteDataTableRows (
|
|
67
|
-
organizationId: $organizationId
|
|
68
|
-
dataTableId: $dataTableId
|
|
69
|
-
dataTableRowIds: $dataTableRowIds
|
|
70
|
-
commandId: $commandId
|
|
71
|
-
previewClientId: $previewClientId
|
|
72
|
-
previewEnvelopeId: $previewEnvelopeId
|
|
73
|
-
previewSeq: $previewSeq
|
|
74
|
-
) {
|
|
75
|
-
...dataTableRowFragment
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
${dataTableRowFragment}
|
|
80
|
-
`;
|
|
81
|
-
|
|
82
|
-
export const editDataTableDesignMtn = gql`
|
|
83
|
-
mutation editDataTableDesign (
|
|
84
|
-
$organizationId: GenericID!
|
|
85
|
-
$dataTableId: GenericID!
|
|
86
|
-
$design: DataTableDesignPatchInput!
|
|
87
|
-
$commandId: String
|
|
88
|
-
$previewClientId: String
|
|
89
|
-
$previewEnvelopeId: String
|
|
90
|
-
$previewSeq: BigInt
|
|
91
|
-
) {
|
|
92
|
-
editDataTableDesign (
|
|
93
|
-
organizationId: $organizationId
|
|
94
|
-
dataTableId: $dataTableId
|
|
95
|
-
design: $design
|
|
96
|
-
commandId: $commandId
|
|
97
|
-
previewClientId: $previewClientId
|
|
98
|
-
previewEnvelopeId: $previewEnvelopeId
|
|
99
|
-
previewSeq: $previewSeq
|
|
100
|
-
) {
|
|
101
|
-
...dataTableFragment
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
${dataTableFragment}
|
|
106
49
|
`;
|
|
@@ -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
|
+
`;
|