@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
|
@@ -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
|
+
`;
|
|
@@ -1,24 +1,173 @@
|
|
|
1
1
|
import { gql } from 'graphql-tag';
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
fieldDocProgramGroupFragment,
|
|
4
|
+
fieldDocStatement,
|
|
5
|
+
fieldDocImports,
|
|
6
|
+
fieldDocEditorSourceStatement,
|
|
7
|
+
fieldDocEditorSourceImports,
|
|
8
|
+
fieldDocEditSessionImports,
|
|
9
|
+
fieldDocEditSessionStatement,
|
|
10
|
+
fieldDocProgramEnrollmentImports,
|
|
11
|
+
fieldDocProgramEnrollmentStatement,
|
|
12
|
+
fieldDocProgramStatement,
|
|
13
|
+
fieldDocProgramImports,
|
|
14
|
+
} from '../fragments/fieldDocFragments.ts';
|
|
3
15
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
16
|
+
export const enrollFieldDocProgramMtn = gql`
|
|
17
|
+
mutation enrollFieldDocProgram (
|
|
18
|
+
$organizationId: GenericID!
|
|
19
|
+
$fieldDocProgramId: GenericID!
|
|
20
|
+
) {
|
|
21
|
+
enrollFieldDocProgram (
|
|
22
|
+
organizationId: $organizationId
|
|
23
|
+
fieldDocProgramId: $fieldDocProgramId
|
|
24
|
+
) {
|
|
25
|
+
${fieldDocProgramEnrollmentStatement}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
${fieldDocProgramEnrollmentImports}
|
|
30
|
+
`;
|
|
31
|
+
|
|
32
|
+
export const unenrollFieldDocProgramMtn = gql`
|
|
33
|
+
mutation unenrollFieldDocProgram (
|
|
34
|
+
$organizationId: GenericID!
|
|
35
|
+
$fieldDocProgramId: GenericID!
|
|
36
|
+
) {
|
|
37
|
+
unenrollFieldDocProgram (
|
|
38
|
+
organizationId: $organizationId
|
|
39
|
+
fieldDocProgramId: $fieldDocProgramId
|
|
40
|
+
)
|
|
41
|
+
}
|
|
42
|
+
`;
|
|
7
43
|
|
|
8
|
-
export const
|
|
9
|
-
mutation
|
|
44
|
+
export const restoreFieldDocProgramEnrollmentMtn = gql`
|
|
45
|
+
mutation restoreFieldDocProgramEnrollment (
|
|
10
46
|
$organizationId: GenericID!
|
|
11
|
-
$
|
|
12
|
-
$agentHint: String
|
|
47
|
+
$fieldDocProgramId: GenericID!
|
|
13
48
|
) {
|
|
14
|
-
|
|
49
|
+
restoreFieldDocProgramEnrollment (
|
|
15
50
|
organizationId: $organizationId
|
|
16
|
-
|
|
17
|
-
agentHint: $agentHint
|
|
51
|
+
fieldDocProgramId: $fieldDocProgramId
|
|
18
52
|
) {
|
|
19
|
-
|
|
53
|
+
${fieldDocProgramEnrollmentStatement}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
${fieldDocProgramEnrollmentImports}
|
|
58
|
+
`;
|
|
59
|
+
|
|
60
|
+
export const createFieldDocProgramMtn = gql`
|
|
61
|
+
mutation createFieldDocProgram (
|
|
62
|
+
$input: CreateFieldDocProgramInput!
|
|
63
|
+
) {
|
|
64
|
+
createFieldDocProgram (input: $input) {
|
|
65
|
+
${fieldDocProgramEnrollmentStatement}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
${fieldDocProgramEnrollmentImports}
|
|
70
|
+
`;
|
|
71
|
+
|
|
72
|
+
export const editFieldDocProgramMtn = gql`
|
|
73
|
+
mutation editFieldDocProgram (
|
|
74
|
+
$input: EditFieldDocProgramInput!
|
|
75
|
+
) {
|
|
76
|
+
editFieldDocProgram (input: $input) {
|
|
77
|
+
${fieldDocProgramStatement}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
${fieldDocProgramImports}
|
|
82
|
+
`;
|
|
83
|
+
|
|
84
|
+
export const editFieldDocCustomInstructionsMtn = gql`
|
|
85
|
+
mutation editFieldDocCustomInstructions (
|
|
86
|
+
$input: EditFieldDocCustomInstructionsInput!
|
|
87
|
+
) {
|
|
88
|
+
editFieldDocCustomInstructions (input: $input) {
|
|
89
|
+
${fieldDocEditSessionStatement}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
${fieldDocEditSessionImports}
|
|
94
|
+
`;
|
|
95
|
+
|
|
96
|
+
export const archiveFieldDocMtn = gql`
|
|
97
|
+
mutation archiveFieldDoc (
|
|
98
|
+
$organizationId: GenericID!
|
|
99
|
+
$fieldDocId: GenericID!
|
|
100
|
+
) {
|
|
101
|
+
archiveFieldDoc (
|
|
102
|
+
organizationId: $organizationId
|
|
103
|
+
fieldDocId: $fieldDocId
|
|
104
|
+
)
|
|
105
|
+
}
|
|
106
|
+
`;
|
|
107
|
+
|
|
108
|
+
export const deleteFieldDocSubmissionMtn = gql`
|
|
109
|
+
mutation deleteFieldDocSubmission (
|
|
110
|
+
$organizationId: GenericID!
|
|
111
|
+
$fieldDocSubmissionId: GenericID!
|
|
112
|
+
) {
|
|
113
|
+
deleteFieldDocSubmission (
|
|
114
|
+
organizationId: $organizationId
|
|
115
|
+
fieldDocSubmissionId: $fieldDocSubmissionId
|
|
116
|
+
)
|
|
117
|
+
}
|
|
118
|
+
`;
|
|
119
|
+
|
|
120
|
+
export const editFieldDocMtn = gql`
|
|
121
|
+
mutation editFieldDoc (
|
|
122
|
+
$input: EditFieldDocInput!
|
|
123
|
+
) {
|
|
124
|
+
editFieldDoc (input: $input) {
|
|
125
|
+
editVersion
|
|
20
126
|
}
|
|
21
127
|
}
|
|
128
|
+
`;
|
|
22
129
|
|
|
23
|
-
|
|
130
|
+
export const editFieldDocSettingsMtn = gql`
|
|
131
|
+
mutation editFieldDocSettings (
|
|
132
|
+
$input: EditFieldDocSettingsInput!
|
|
133
|
+
) {
|
|
134
|
+
editFieldDocSettings (input: $input) {
|
|
135
|
+
${fieldDocEditorSourceStatement}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
${fieldDocEditorSourceImports}
|
|
140
|
+
`;
|
|
141
|
+
|
|
142
|
+
export const createFieldDocProgramGroupMtn = gql`
|
|
143
|
+
mutation createFieldDocProgramGroup($input: CreateFieldDocProgramGroupInput!) {
|
|
144
|
+
createFieldDocProgramGroup(input: $input) {
|
|
145
|
+
...fieldDocProgramGroupFragment
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
${fieldDocProgramGroupFragment}
|
|
149
|
+
`;
|
|
150
|
+
|
|
151
|
+
export const editFieldDocProgramGroupMtn = gql`
|
|
152
|
+
mutation editFieldDocProgramGroup($input: EditFieldDocProgramGroupInput!) {
|
|
153
|
+
editFieldDocProgramGroup(input: $input) {
|
|
154
|
+
...fieldDocProgramGroupFragment
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
${fieldDocProgramGroupFragment}
|
|
158
|
+
`;
|
|
159
|
+
|
|
160
|
+
export const editFieldDocPlacementMtn = gql`
|
|
161
|
+
mutation editFieldDocPlacement($input: EditFieldDocPlacementInput!) {
|
|
162
|
+
editFieldDocPlacement(input: $input) {
|
|
163
|
+
${fieldDocStatement}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
${fieldDocImports}
|
|
167
|
+
`;
|
|
168
|
+
|
|
169
|
+
export const deleteFieldDocProgramGroupMtn = gql`
|
|
170
|
+
mutation deleteFieldDocProgramGroup($organizationId: GenericID!, $groupId: GenericID!) {
|
|
171
|
+
deleteFieldDocProgramGroup(organizationId: $organizationId, groupId: $groupId)
|
|
172
|
+
}
|
|
24
173
|
`;
|
package/gql/mutations/index.ts
CHANGED
|
@@ -1,15 +1,20 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './
|
|
3
|
-
export * from './agentMemoryMutations.ts';
|
|
1
|
+
export * from './aiChatLinkMutations.ts';
|
|
2
|
+
export * from './audienceMutations.ts';
|
|
4
3
|
export * from './accountMutations.ts';
|
|
4
|
+
export * from './agentMemoryMutations.ts';
|
|
5
|
+
export * from './agentNoteMutations.ts';
|
|
5
6
|
export * from './aiChatMutations.ts';
|
|
6
7
|
export * from './authMutations.ts';
|
|
7
|
-
export * from './
|
|
8
|
+
export * from './billingMutations.ts';
|
|
9
|
+
export * from './contactMutations.ts';
|
|
10
|
+
export * from './dataTableMutations.ts';
|
|
11
|
+
export * from './emailMutations.ts';
|
|
12
|
+
export * from './emailOutreachMutations.ts';
|
|
8
13
|
export * from './fieldDocMutations.ts';
|
|
9
14
|
export * from './inboundContactMutations.ts';
|
|
15
|
+
export * from './integrationMutations.ts';
|
|
10
16
|
export * from './logMutations.ts';
|
|
11
17
|
export * from './organizationMutations.ts';
|
|
12
|
-
export * from './dataTableMutations.ts';
|
|
13
18
|
export * from './scheduleMutations.ts';
|
|
14
19
|
export * from './sheetMutations.ts';
|
|
15
20
|
export * from './storageMutations.ts';
|
|
@@ -89,6 +89,9 @@ ${organizationFragment}
|
|
|
89
89
|
export const editOrganizationSettingsMtn = gql`
|
|
90
90
|
mutation editOrganizationSettings (
|
|
91
91
|
$organizationId: GenericID!
|
|
92
|
+
$displayTranslatedLogs: Boolean
|
|
93
|
+
$translateLanguage: String
|
|
94
|
+
$allowMcpConnections: Boolean
|
|
92
95
|
$sidebar: [OrganizationSidebarItemInput!]
|
|
93
96
|
$routeId: String
|
|
94
97
|
$columnWidths: [String!]
|
|
@@ -96,6 +99,9 @@ mutation editOrganizationSettings (
|
|
|
96
99
|
) {
|
|
97
100
|
editOrganizationSettings (
|
|
98
101
|
organizationId: $organizationId
|
|
102
|
+
displayTranslatedLogs: $displayTranslatedLogs
|
|
103
|
+
translateLanguage: $translateLanguage
|
|
104
|
+
allowMcpConnections: $allowMcpConnections
|
|
99
105
|
sidebar: $sidebar
|
|
100
106
|
routeId: $routeId
|
|
101
107
|
columnWidths: $columnWidths
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { gql } from 'graphql-tag';
|
|
2
|
+
import { qrCodeFragment } from '../fragments/qrCodeFragments.ts';
|
|
3
|
+
|
|
4
|
+
export const createQrCodeMtn = gql`
|
|
5
|
+
mutation createQrCode($input: CreateQrCodeInput!) {
|
|
6
|
+
createQrCode(input: $input) {
|
|
7
|
+
...qrCodeFragment
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
${qrCodeFragment}
|
|
11
|
+
`;
|
|
12
|
+
|
|
13
|
+
export const editQrCodeMtn = gql`
|
|
14
|
+
mutation editQrCode($input: EditQrCodeInput!) {
|
|
15
|
+
editQrCode(input: $input) {
|
|
16
|
+
...qrCodeFragment
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
${qrCodeFragment}
|
|
20
|
+
`;
|