@jsb188/graphql 1.1.10 → 1.1.12
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/audience.d.ts +343 -0
- package/cache/config.ts +98 -50
- package/cache/index.chat-activity.test.ts +119 -0
- package/cache/index.chat.test.ts +92 -0
- package/cache/index.helpers.ts +96 -0
- package/cache/index.regression.test.ts +149 -0
- package/cache/index.test.ts +1017 -127
- package/cache/index.ts +1256 -1269
- package/cache/optimistic-ui-runtime.ts +46 -0
- package/cache/optimistic-ui.ts +401 -0
- package/cache/persist.ts +800 -0
- package/cache/store.ts +395 -0
- package/cache/value.helpers.ts +17 -0
- package/client/draft-persistence-indexed-db.ts +413 -0
- package/client/draft-persistence.ts +152 -0
- package/client/index.ts +3 -0
- package/client/request.helpers.ts +14 -0
- package/client/request.ts +870 -164
- package/deno.lock +187 -0
- package/deno.test.json +10 -4
- package/gql/eagerQueryMap.ts +12 -0
- package/gql/fragments/accountAuthFragments.ts +5 -0
- package/gql/fragments/accountFragments.ts +0 -3
- package/gql/fragments/accountSessionFragments.ts +16 -0
- package/gql/fragments/agentMemoryFragments.ts +23 -0
- package/gql/fragments/agentNoteFragments.ts +150 -0
- package/gql/fragments/aiChatFragments.ts +42 -0
- package/gql/fragments/audienceFragments.ts +141 -0
- package/gql/fragments/campaignFragments.ts +566 -0
- package/gql/fragments/dataTableFragments.ts +50 -192
- package/gql/fragments/emailFragments.ts +32 -17
- package/gql/fragments/fieldDocFragments.ts +264 -0
- package/gql/fragments/inboundContactFragments.ts +2 -0
- package/gql/fragments/logFragments.ts +101 -69
- package/gql/fragments/organizationFragments.ts +53 -5
- package/gql/fragments/qrCodeFragments.ts +29 -0
- package/gql/fragments/scheduleFragments.ts +667 -0
- package/gql/fragments/sheetFragments.ts +304 -63
- package/gql/fragments/storageFragments.ts +45 -0
- package/gql/fragments/workflowFragments.ts +41 -5
- package/gql/mutations/accountMutations.ts +0 -2
- package/gql/mutations/agentMemoryMutations.ts +68 -0
- package/gql/mutations/agentNoteMutations.ts +62 -0
- package/gql/mutations/aiChatMutations.ts +49 -4
- package/gql/mutations/audienceMutations.ts +71 -0
- package/gql/mutations/authMutations.ts +203 -18
- package/gql/mutations/billingMutations.ts +17 -27
- package/gql/mutations/campaignMutations.ts +258 -0
- package/gql/mutations/contactMutations.ts +23 -0
- package/gql/mutations/dataTableMutations.ts +19 -54
- package/gql/mutations/fieldDocMutations.ts +173 -0
- package/gql/mutations/index.ts +10 -2
- package/gql/mutations/logMutations.ts +6 -29
- package/gql/mutations/organizationMutations.ts +19 -4
- package/gql/mutations/qrCodeMutations.ts +20 -0
- package/gql/mutations/scheduleMutations.ts +1121 -0
- package/gql/mutations/sheetMutations.ts +221 -60
- package/gql/mutations/storageMutations.ts +19 -0
- package/gql/mutations/workflowMutations.ts +60 -0
- package/gql/queries/agentMemoryQueries.ts +28 -0
- package/gql/queries/agentNoteQueries.ts +89 -0
- package/gql/queries/aiChatQueries.ts +70 -2
- package/gql/queries/audienceQueries.ts +128 -0
- package/gql/queries/authQueries.ts +47 -0
- package/gql/queries/billingQueries.ts +118 -6
- package/gql/queries/campaignQueries.ts +236 -0
- package/gql/queries/dataTableQueries.ts +61 -13
- package/gql/queries/emailQueries.ts +26 -17
- package/gql/queries/emailReplyReportQueries.ts +76 -0
- package/gql/queries/fieldDocQueries.ts +166 -0
- package/gql/queries/inboundContactQueries.ts +4 -0
- package/gql/queries/index.ts +10 -2
- package/gql/queries/logQueries.ts +68 -30
- package/gql/queries/organizationQueries.ts +65 -1
- package/gql/queries/qrCodeQueries.ts +20 -0
- package/gql/queries/scheduleQueries.ts +691 -0
- package/gql/queries/sheetQueries.ts +244 -26
- package/gql/queries/storageQueries.ts +38 -0
- package/gql/queries/workflowQueries.ts +77 -2
- package/hooks/index.helpers.test.ts +50 -0
- package/hooks/index.helpers.ts +52 -0
- package/hooks/index.ts +2254 -982
- package/hooks/use-account-mtn.ts +76 -81
- package/hooks/use-agentMemory-mtn.ts +71 -0
- package/hooks/use-agentMemory-qry.ts +56 -0
- package/hooks/use-agentNote-mtn.ts +82 -0
- package/hooks/use-agentNote-qry.ts +190 -0
- package/hooks/use-agentNote-recovery.helpers.test.ts +68 -0
- package/hooks/use-agentNote-recovery.helpers.ts +58 -0
- package/hooks/use-agentNote-recovery.ts +72 -0
- package/hooks/use-aiChat-mtn.ts +220 -141
- package/hooks/use-aiChat-qry.helpers.test.ts +63 -0
- package/hooks/use-aiChat-qry.helpers.ts +124 -0
- package/hooks/use-aiChat-qry.ts +341 -237
- package/hooks/use-aiChat-stream-mtn.ts +14 -0
- package/hooks/use-app-qry.ts +12 -9
- package/hooks/use-audience-mtn.ts +194 -0
- package/hooks/use-audience-qry.helpers.test.ts +80 -0
- package/hooks/use-audience-qry.helpers.ts +63 -0
- package/hooks/use-audience-qry.ts +330 -0
- package/hooks/use-auth-mtn.ts +435 -252
- package/hooks/use-auth-qry.ts +51 -0
- package/hooks/use-billing-mtn.ts +31 -0
- package/hooks/use-billing-qry.ts +76 -0
- package/hooks/use-campaign-generation-recovery.ts +53 -0
- package/hooks/use-campaign-mtn.ts +436 -0
- package/hooks/use-campaign-qry.helpers.ts +40 -0
- package/hooks/use-campaign-qry.ts +834 -0
- package/hooks/use-dataTable-mtn.ts +37 -46
- package/hooks/use-dataTable-qry.ts +102 -128
- package/hooks/use-email-qry.helpers.ts +37 -0
- package/hooks/use-email-qry.ts +56 -86
- package/hooks/use-emailCampaignReplyReport-qry.ts +27 -0
- package/hooks/use-fieldDoc-mtn.ts +262 -0
- package/hooks/use-fieldDoc-qry.helpers.test.ts +65 -0
- package/hooks/use-fieldDoc-qry.helpers.ts +49 -0
- package/hooks/use-fieldDoc-qry.ts +212 -0
- package/hooks/use-inboundContact-mtn.ts +19 -16
- package/hooks/use-inboundContact-qry.ts +62 -56
- package/hooks/use-integration-mtn.ts +56 -38
- package/hooks/use-integration-qry.ts +24 -9
- package/hooks/use-log-mtn.ts +88 -59
- package/hooks/use-log-qry.ts +150 -73
- package/hooks/use-organization-mtn.ts +334 -277
- package/hooks/use-organization-qry.ts +155 -129
- package/hooks/use-publicFormEmail-mtn.ts +27 -0
- package/hooks/use-qrCode-mtn.ts +40 -0
- package/hooks/use-qrCode-qry.ts +78 -0
- package/hooks/use-schedule-mtn.ts +589 -0
- package/hooks/use-schedule-qry.ts +738 -0
- package/hooks/use-schedule-reactive.ts +486 -0
- package/hooks/use-sheet-mtn.ts +157 -79
- package/hooks/use-sheet-qry.ts +221 -92
- package/hooks/use-storage-mtn.ts +81 -41
- package/hooks/use-storage-qry.ts +128 -14
- package/hooks/use-workflow-mtn.ts +72 -0
- package/hooks/use-workflow-qry.ts +184 -47
- 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/fragment-realtime-sequence.ts +55 -0
- package/libs/fragment-recovery.test.ts +326 -0
- package/libs/fragment-recovery.ts +325 -0
- package/libs/open-sheet.ts +138 -0
- package/libs/orchestrator-realtime.helpers.test.ts +229 -0
- package/libs/orchestrator-realtime.helpers.ts +317 -0
- package/libs/orchestrator-realtime.ts +433 -0
- package/libs/request-cache-regression.test.ts +122 -0
- package/libs/request-managed-session.test.ts +574 -0
- package/libs/request-no-store.test.ts +419 -0
- package/libs/sheet-command-batch.ts +44 -0
- package/libs/sheet-view-realtime-router.test.ts +214 -0
- package/libs/sheet-view-realtime-router.ts +99 -0
- package/libs/sse-ticket.test.ts +26 -0
- package/loaders/campaign.test.ts +186 -0
- package/loaders/campaign.ts +110 -0
- package/loaders/emailPreference.ts +75 -0
- package/loaders/rest.ts +12 -0
- package/package.json +119 -71
- package/schedule.d.ts +1790 -0
- package/sse.helpers.ts +19 -0
- package/sse.ts +70 -106
- package/tests/agent-note-detail-cache.test.ts +120 -0
- package/tests/agent-note-search.test.ts +444 -0
- package/tsconfig.json +11 -10
- package/types.d.ts +77 -26
- package/utils.ts +78 -49
- package/gql/fragments/billingFragments.ts +0 -25
- package/gql/fragments/productFragments.ts +0 -39
- package/gql/fragments/reportFragments.ts +0 -90
- package/gql/queries/productQueries.ts +0 -31
- package/gql/queries/reportQueries.ts +0 -134
- package/hooks/use-product-qry.ts +0 -67
- package/hooks/use-report-qry.ts +0 -153
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
import { gql } from 'graphql-tag';
|
|
2
|
+
import {
|
|
3
|
+
campaignAccessFragment,
|
|
4
|
+
campaignFragment,
|
|
5
|
+
campaignGenerationLifecycleFragment,
|
|
6
|
+
campaignSettingsFragment,
|
|
7
|
+
campaignTemplateFragment,
|
|
8
|
+
campaignTemplateLifecycleFragment,
|
|
9
|
+
} from '../fragments/campaignFragments.ts';
|
|
10
|
+
import { storageFileFragment } from '../fragments/storageFragments.ts';
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Returns a GENERATING campaign immediately. The draft is written by a
|
|
14
|
+
* durable job, then a GraphQL-only GENERATED websocket patch tells observers
|
|
15
|
+
* to refetch the persisted COMPLETE or ERROR result.
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
export const createCampaignMtn = gql`
|
|
19
|
+
mutation createCampaign (
|
|
20
|
+
$organizationId: GenericID!
|
|
21
|
+
$templateId: GenericID!
|
|
22
|
+
$instructions: String
|
|
23
|
+
$sourceStorageIds: [GenericID!]
|
|
24
|
+
$title: String
|
|
25
|
+
) {
|
|
26
|
+
createCampaign (
|
|
27
|
+
organizationId: $organizationId
|
|
28
|
+
templateId: $templateId
|
|
29
|
+
instructions: $instructions
|
|
30
|
+
sourceStorageIds: $sourceStorageIds
|
|
31
|
+
title: $title
|
|
32
|
+
) {
|
|
33
|
+
...campaignFragment
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
${campaignFragment}
|
|
37
|
+
`;
|
|
38
|
+
|
|
39
|
+
export const retryCampaignGenerationMtn = gql`
|
|
40
|
+
mutation retryCampaignGeneration (
|
|
41
|
+
$organizationId: GenericID!
|
|
42
|
+
$campaignId: GenericID!
|
|
43
|
+
) {
|
|
44
|
+
retryCampaignGeneration (
|
|
45
|
+
organizationId: $organizationId
|
|
46
|
+
campaignId: $campaignId
|
|
47
|
+
) {
|
|
48
|
+
...campaignGenerationLifecycleFragment
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
${campaignGenerationLifecycleFragment}
|
|
52
|
+
`;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Create one empty, editable campaign template owned by the organization.
|
|
56
|
+
*/
|
|
57
|
+
|
|
58
|
+
export const createCampaignTemplateMtn = gql`
|
|
59
|
+
mutation createCampaignTemplate (
|
|
60
|
+
$input: CreateCampaignTemplateInput!
|
|
61
|
+
) {
|
|
62
|
+
createCampaignTemplate (input: $input) {
|
|
63
|
+
...campaignTemplateFragment
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
${campaignTemplateFragment}
|
|
67
|
+
`;
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Apply one optimistic-concurrency editor patch to a reusable template.
|
|
71
|
+
*/
|
|
72
|
+
|
|
73
|
+
export const editCampaignTemplateMtn = gql`
|
|
74
|
+
mutation editCampaignTemplate (
|
|
75
|
+
$input: EditCampaignTemplateInput!
|
|
76
|
+
) {
|
|
77
|
+
editCampaignTemplate (input: $input) {
|
|
78
|
+
editVersion
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
`;
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Apply one optimistic-concurrency editor patch to a campaign.
|
|
85
|
+
*/
|
|
86
|
+
|
|
87
|
+
export const editCampaignMtn = gql`
|
|
88
|
+
mutation editCampaign (
|
|
89
|
+
$input: EditCampaignInput!
|
|
90
|
+
) {
|
|
91
|
+
editCampaign (input: $input) {
|
|
92
|
+
editVersion
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
`;
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Finalize a direct header-image upload before linking it through an editor
|
|
99
|
+
* patch. The ordinary GCS webhook remains the idempotent fallback.
|
|
100
|
+
*/
|
|
101
|
+
export const finalizeCampaignHeaderImageUploadMtn = gql`
|
|
102
|
+
mutation finalizeCampaignHeaderImageUpload (
|
|
103
|
+
$organizationId: GenericID!
|
|
104
|
+
$storageId: GenericID!
|
|
105
|
+
) {
|
|
106
|
+
finalizeCampaignHeaderImageUpload (
|
|
107
|
+
organizationId: $organizationId
|
|
108
|
+
storageId: $storageId
|
|
109
|
+
) {
|
|
110
|
+
...storageFileFragment
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
${storageFileFragment}
|
|
114
|
+
`;
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* Finalize a direct campaign-element image upload before linking it through
|
|
118
|
+
* an editor patch. The ordinary GCS webhook remains the idempotent fallback.
|
|
119
|
+
*/
|
|
120
|
+
export const finalizeCampaignElementImageUploadMtn = gql`
|
|
121
|
+
mutation finalizeCampaignElementImageUpload (
|
|
122
|
+
$organizationId: GenericID!
|
|
123
|
+
$storageId: GenericID!
|
|
124
|
+
) {
|
|
125
|
+
finalizeCampaignElementImageUpload (
|
|
126
|
+
organizationId: $organizationId
|
|
127
|
+
storageId: $storageId
|
|
128
|
+
) {
|
|
129
|
+
...storageFileFragment
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
${storageFileFragment}
|
|
133
|
+
`;
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* Apply one versioned public-form audience change.
|
|
137
|
+
*/
|
|
138
|
+
|
|
139
|
+
export const updateCampaignAccessMtn = gql`
|
|
140
|
+
mutation updateCampaignAccess (
|
|
141
|
+
$input: UpdateCampaignAccessInput!
|
|
142
|
+
) {
|
|
143
|
+
updateCampaignAccess (input: $input) {
|
|
144
|
+
...campaignAccessFragment
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
${campaignAccessFragment}
|
|
148
|
+
`;
|
|
149
|
+
|
|
150
|
+
/*
|
|
151
|
+
* Submit or replace one complete response against the publication currently
|
|
152
|
+
* shown to the respondent.
|
|
153
|
+
*/
|
|
154
|
+
export const submitCampaignResponseMtn = gql`
|
|
155
|
+
mutation submitCampaignResponse (
|
|
156
|
+
$publicId: String!
|
|
157
|
+
$childOrgId: GenericID
|
|
158
|
+
$expectedPublicationVersion: Int!
|
|
159
|
+
$answers: [SubmitCampaignAnswerInput!]!
|
|
160
|
+
$sendResponseCopyToEmail: Boolean
|
|
161
|
+
) {
|
|
162
|
+
submitCampaignResponse (
|
|
163
|
+
publicId: $publicId
|
|
164
|
+
childOrgId: $childOrgId
|
|
165
|
+
expectedPublicationVersion: $expectedPublicationVersion
|
|
166
|
+
answers: $answers
|
|
167
|
+
sendResponseCopyToEmail: $sendResponseCopyToEmail
|
|
168
|
+
) {
|
|
169
|
+
responseId
|
|
170
|
+
submittedAt
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
`;
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* Create one editable public-form campaign draft from an active template.
|
|
177
|
+
*/
|
|
178
|
+
export const createFormCampaignDraftMtn = gql`
|
|
179
|
+
mutation createFormCampaignDraft (
|
|
180
|
+
$input: CreateFormCampaignDraftInput!
|
|
181
|
+
) {
|
|
182
|
+
createFormCampaignDraft (input: $input) {
|
|
183
|
+
...campaignFragment
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
${campaignFragment}
|
|
187
|
+
`;
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* Create one editable email campaign draft from an active email template.
|
|
191
|
+
*/
|
|
192
|
+
export const createEmailCampaignDraftMtn = gql`
|
|
193
|
+
mutation createEmailCampaignDraft (
|
|
194
|
+
$input: CreateEmailCampaignDraftInput!
|
|
195
|
+
) {
|
|
196
|
+
createEmailCampaignDraft (input: $input) {
|
|
197
|
+
...campaignFragment
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
${campaignFragment}
|
|
201
|
+
`;
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* Edit one campaign's versioned settings, draft reset, or lifecycle.
|
|
205
|
+
*/
|
|
206
|
+
export const editCampaignSettingsMtn = gql`
|
|
207
|
+
mutation editCampaignSettings (
|
|
208
|
+
$input: EditCampaignSettingsInput!
|
|
209
|
+
) {
|
|
210
|
+
editCampaignSettings (input: $input) {
|
|
211
|
+
...campaignSettingsFragment
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
${campaignSettingsFragment}
|
|
215
|
+
`;
|
|
216
|
+
|
|
217
|
+
/*
|
|
218
|
+
* Send one test of an email campaign's saved content to a member of the organization.
|
|
219
|
+
*/
|
|
220
|
+
export const sendCampaignTestEmailMtn = gql`
|
|
221
|
+
mutation sendCampaignTestEmail (
|
|
222
|
+
$input: SendCampaignTestEmailInput!
|
|
223
|
+
) {
|
|
224
|
+
sendCampaignTestEmail (input: $input) {
|
|
225
|
+
toEmail
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
`;
|
|
229
|
+
|
|
230
|
+
export const archiveCampaignTemplateMtn = gql`
|
|
231
|
+
mutation archiveCampaignTemplate (
|
|
232
|
+
$organizationId: GenericID!
|
|
233
|
+
$templateId: GenericID!
|
|
234
|
+
) {
|
|
235
|
+
archiveCampaignTemplate (
|
|
236
|
+
organizationId: $organizationId
|
|
237
|
+
templateId: $templateId
|
|
238
|
+
) {
|
|
239
|
+
...campaignTemplateLifecycleFragment
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
${campaignTemplateLifecycleFragment}
|
|
243
|
+
`;
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* @deprecated Create an email campaign draft, select its audience lists, and use
|
|
247
|
+
* editCampaignSettings with command.sendEmail.
|
|
248
|
+
*/
|
|
249
|
+
export const sendCampaignEmailMtn = gql`
|
|
250
|
+
mutation sendCampaignEmail (
|
|
251
|
+
$input: SendCampaignEmailInput!
|
|
252
|
+
) {
|
|
253
|
+
sendCampaignEmail (input: $input) {
|
|
254
|
+
...campaignFragment
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
${campaignFragment}
|
|
258
|
+
`;
|
|
@@ -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,84 +1,49 @@
|
|
|
1
1
|
import { gql } from 'graphql-tag';
|
|
2
|
-
import {
|
|
2
|
+
import { dataTableFragment } from '../fragments/dataTableFragments.ts';
|
|
3
3
|
|
|
4
|
-
export const
|
|
5
|
-
mutation
|
|
4
|
+
export const renameDataTableMtn = gql`
|
|
5
|
+
mutation renameDataTable (
|
|
6
6
|
$organizationId: GenericID!
|
|
7
7
|
$dataTableId: GenericID!
|
|
8
|
-
$
|
|
9
|
-
$cellKey: String!
|
|
10
|
-
$viewId: String
|
|
11
|
-
$viewCellKey: String
|
|
12
|
-
$value: String
|
|
13
|
-
$reference: DataTableCellReferenceInput
|
|
8
|
+
$title: String!
|
|
14
9
|
) {
|
|
15
|
-
|
|
10
|
+
renameDataTable (
|
|
16
11
|
organizationId: $organizationId
|
|
17
12
|
dataTableId: $dataTableId
|
|
18
|
-
|
|
19
|
-
cellKey: $cellKey
|
|
20
|
-
viewId: $viewId
|
|
21
|
-
viewCellKey: $viewCellKey
|
|
22
|
-
value: $value
|
|
23
|
-
reference: $reference
|
|
13
|
+
title: $title
|
|
24
14
|
) {
|
|
25
|
-
...
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
${dataTableCellFragment}
|
|
30
|
-
`;
|
|
31
|
-
|
|
32
|
-
export const editDataTableCellsMtn = gql`
|
|
33
|
-
mutation editDataTableCells (
|
|
34
|
-
$organizationId: GenericID!
|
|
35
|
-
$dataTableId: GenericID!
|
|
36
|
-
$cells: [DataTableCellEditInput!]!
|
|
37
|
-
) {
|
|
38
|
-
editDataTableCells (
|
|
39
|
-
organizationId: $organizationId
|
|
40
|
-
dataTableId: $dataTableId
|
|
41
|
-
cells: $cells
|
|
42
|
-
) {
|
|
43
|
-
...dataTableCellFragment
|
|
15
|
+
...dataTableFragment
|
|
44
16
|
}
|
|
45
17
|
}
|
|
46
18
|
|
|
47
|
-
${
|
|
19
|
+
${dataTableFragment}
|
|
48
20
|
`;
|
|
49
21
|
|
|
50
|
-
export const
|
|
51
|
-
mutation
|
|
22
|
+
export const deleteDataTableMtn = gql`
|
|
23
|
+
mutation deleteDataTable (
|
|
52
24
|
$organizationId: GenericID!
|
|
53
25
|
$dataTableId: GenericID!
|
|
54
|
-
$dataTableRowId: GenericID!
|
|
55
26
|
) {
|
|
56
|
-
|
|
27
|
+
deleteDataTable (
|
|
57
28
|
organizationId: $organizationId
|
|
58
29
|
dataTableId: $dataTableId
|
|
59
|
-
|
|
60
|
-
) {
|
|
61
|
-
...dataTableRowFragment
|
|
62
|
-
}
|
|
30
|
+
)
|
|
63
31
|
}
|
|
64
|
-
|
|
65
|
-
${dataTableRowFragment}
|
|
66
32
|
`;
|
|
67
33
|
|
|
68
|
-
export const
|
|
69
|
-
mutation
|
|
34
|
+
export const exportDataTableToFileMtn = gql`
|
|
35
|
+
mutation exportDataTableToFile (
|
|
70
36
|
$organizationId: GenericID!
|
|
71
37
|
$dataTableId: GenericID!
|
|
72
|
-
$design: DataTableDesignPatchInput!
|
|
73
38
|
) {
|
|
74
|
-
|
|
39
|
+
exportDataTableToFile (
|
|
75
40
|
organizationId: $organizationId
|
|
76
41
|
dataTableId: $dataTableId
|
|
77
|
-
design: $design
|
|
78
42
|
) {
|
|
79
|
-
|
|
43
|
+
fileUri
|
|
44
|
+
name
|
|
45
|
+
contentType
|
|
46
|
+
size
|
|
80
47
|
}
|
|
81
48
|
}
|
|
82
|
-
|
|
83
|
-
${dataTableFragment}
|
|
84
49
|
`;
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
import { gql } from 'graphql-tag';
|
|
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';
|
|
15
|
+
|
|
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
|
+
`;
|
|
43
|
+
|
|
44
|
+
export const restoreFieldDocProgramEnrollmentMtn = gql`
|
|
45
|
+
mutation restoreFieldDocProgramEnrollment (
|
|
46
|
+
$organizationId: GenericID!
|
|
47
|
+
$fieldDocProgramId: GenericID!
|
|
48
|
+
) {
|
|
49
|
+
restoreFieldDocProgramEnrollment (
|
|
50
|
+
organizationId: $organizationId
|
|
51
|
+
fieldDocProgramId: $fieldDocProgramId
|
|
52
|
+
) {
|
|
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
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
`;
|
|
129
|
+
|
|
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
|
+
}
|
|
173
|
+
`;
|
package/gql/mutations/index.ts
CHANGED
|
@@ -1,12 +1,20 @@
|
|
|
1
|
+
export * from './audienceMutations.ts';
|
|
1
2
|
export * from './accountMutations.ts';
|
|
3
|
+
export * from './agentMemoryMutations.ts';
|
|
4
|
+
export * from './agentNoteMutations.ts';
|
|
2
5
|
export * from './aiChatMutations.ts';
|
|
3
6
|
export * from './authMutations.ts';
|
|
4
7
|
export * from './billingMutations.ts';
|
|
5
|
-
export * from './
|
|
8
|
+
export * from './campaignMutations.ts';
|
|
9
|
+
export * from './contactMutations.ts';
|
|
10
|
+
export * from './dataTableMutations.ts';
|
|
11
|
+
export * from './fieldDocMutations.ts';
|
|
6
12
|
export * from './inboundContactMutations.ts';
|
|
13
|
+
export * from './integrationMutations.ts';
|
|
7
14
|
export * from './logMutations.ts';
|
|
8
15
|
export * from './organizationMutations.ts';
|
|
9
|
-
export * from './
|
|
16
|
+
export * from './scheduleMutations.ts';
|
|
10
17
|
export * from './sheetMutations.ts';
|
|
11
18
|
export * from './storageMutations.ts';
|
|
12
19
|
export * from './userAuthMutations.ts';
|
|
20
|
+
export * from './workflowMutations.ts';
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { gql } from 'graphql-tag';
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
logFarmersMarketFragment,
|
|
6
|
-
logGrowerNetworkFragment,
|
|
7
|
-
logLivestockFragment
|
|
3
|
+
logEntryDetailsFragment,
|
|
4
|
+
logEntryFragment,
|
|
8
5
|
} from '../fragments/logFragments.ts';
|
|
9
6
|
|
|
10
7
|
export const editLogEntryMtn = gql`
|
|
@@ -15,10 +12,7 @@ mutation editLogEntry (
|
|
|
15
12
|
$date: DateTime
|
|
16
13
|
$flagColor: String
|
|
17
14
|
|
|
18
|
-
$
|
|
19
|
-
$growerNetworkDetails: GrowerNetworkInput
|
|
20
|
-
$livestockDetails: LogLivestockInput
|
|
21
|
-
$farmersMarketDetails: LogFarmersMarketInput
|
|
15
|
+
$details: LogEntryDetailsInput
|
|
22
16
|
) {
|
|
23
17
|
editLogEntry (
|
|
24
18
|
organizationId: $organizationId
|
|
@@ -27,35 +21,18 @@ mutation editLogEntry (
|
|
|
27
21
|
date: $date
|
|
28
22
|
flagColor: $flagColor
|
|
29
23
|
|
|
30
|
-
|
|
31
|
-
growerNetworkDetails: $growerNetworkDetails
|
|
32
|
-
livestockDetails: $livestockDetails
|
|
33
|
-
farmersMarketDetails: $farmersMarketDetails
|
|
24
|
+
details: $details
|
|
34
25
|
) {
|
|
35
26
|
...logEntryFragment
|
|
36
27
|
|
|
37
28
|
details {
|
|
38
|
-
...
|
|
39
|
-
...logArableFragment
|
|
40
|
-
}
|
|
41
|
-
...on LogFarmersMarket {
|
|
42
|
-
...logFarmersMarketFragment
|
|
43
|
-
}
|
|
44
|
-
...on LogGrowerNetwork {
|
|
45
|
-
...logGrowerNetworkFragment
|
|
46
|
-
}
|
|
47
|
-
...on LogLivestock {
|
|
48
|
-
...logLivestockFragment
|
|
49
|
-
}
|
|
29
|
+
...logEntryDetailsFragment
|
|
50
30
|
}
|
|
51
31
|
}
|
|
52
32
|
}
|
|
53
33
|
|
|
54
34
|
${logEntryFragment}
|
|
55
|
-
${
|
|
56
|
-
${logFarmersMarketFragment}
|
|
57
|
-
${logGrowerNetworkFragment}
|
|
58
|
-
${logLivestockFragment}
|
|
35
|
+
${logEntryDetailsFragment}
|
|
59
36
|
`;
|
|
60
37
|
|
|
61
38
|
export const deleteLogEntryMtn = gql`
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import { gql } from 'graphql-tag';
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
organizationChildFragment,
|
|
4
|
+
organizationComplianceFragment,
|
|
5
|
+
organizationFragment,
|
|
6
|
+
organizationRelationshipFragment,
|
|
7
|
+
organizationSettingsFragment,
|
|
8
|
+
organizationSiteFragment,
|
|
9
|
+
} from '../fragments/organizationFragments.ts';
|
|
3
10
|
|
|
4
11
|
export const switchOrganizationMtn = gql`
|
|
5
12
|
mutation switchOrganization (
|
|
@@ -70,7 +77,7 @@ mutation editOrganizationInboundEmail (
|
|
|
70
77
|
) {
|
|
71
78
|
editOrganizationInboundEmail (
|
|
72
79
|
organizationId: $organizationId
|
|
73
|
-
|
|
80
|
+
emailHandle: $inboundEmail
|
|
74
81
|
) {
|
|
75
82
|
...organizationFragment
|
|
76
83
|
}
|
|
@@ -82,15 +89,23 @@ ${organizationFragment}
|
|
|
82
89
|
export const editOrganizationSettingsMtn = gql`
|
|
83
90
|
mutation editOrganizationSettings (
|
|
84
91
|
$organizationId: GenericID!
|
|
85
|
-
$
|
|
92
|
+
$schedule: OrganizationScheduleSettingsInput
|
|
93
|
+
$displayTranslatedLogs: Boolean
|
|
94
|
+
$translateLanguage: String
|
|
95
|
+
$sidebar: [OrganizationSidebarItemInput!]
|
|
86
96
|
$routeId: String
|
|
87
97
|
$columnWidths: [String!]
|
|
98
|
+
$columnOrder: [String!]
|
|
88
99
|
) {
|
|
89
100
|
editOrganizationSettings (
|
|
90
101
|
organizationId: $organizationId
|
|
102
|
+
schedule: $schedule
|
|
103
|
+
displayTranslatedLogs: $displayTranslatedLogs
|
|
104
|
+
translateLanguage: $translateLanguage
|
|
91
105
|
sidebar: $sidebar
|
|
92
106
|
routeId: $routeId
|
|
93
107
|
columnWidths: $columnWidths
|
|
108
|
+
columnOrder: $columnOrder
|
|
94
109
|
) {
|
|
95
110
|
...organizationSettingsFragment
|
|
96
111
|
}
|
|
@@ -104,7 +119,7 @@ mutation editChildOrganization (
|
|
|
104
119
|
$organizationId: GenericID!
|
|
105
120
|
$childOrgId: GenericID!
|
|
106
121
|
$name: String
|
|
107
|
-
$operation:
|
|
122
|
+
$operation: String
|
|
108
123
|
$address: AddressInput
|
|
109
124
|
$preferredContacts: [OrgContactInput!]
|
|
110
125
|
) {
|