@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.
Files changed (176) hide show
  1. package/audience.d.ts +343 -0
  2. package/cache/config.ts +98 -50
  3. package/cache/index.chat-activity.test.ts +119 -0
  4. package/cache/index.chat.test.ts +92 -0
  5. package/cache/index.helpers.ts +96 -0
  6. package/cache/index.regression.test.ts +149 -0
  7. package/cache/index.test.ts +1017 -127
  8. package/cache/index.ts +1256 -1269
  9. package/cache/optimistic-ui-runtime.ts +46 -0
  10. package/cache/optimistic-ui.ts +401 -0
  11. package/cache/persist.ts +800 -0
  12. package/cache/store.ts +395 -0
  13. package/cache/value.helpers.ts +17 -0
  14. package/client/draft-persistence-indexed-db.ts +413 -0
  15. package/client/draft-persistence.ts +152 -0
  16. package/client/index.ts +3 -0
  17. package/client/request.helpers.ts +14 -0
  18. package/client/request.ts +870 -164
  19. package/deno.lock +187 -0
  20. package/deno.test.json +10 -4
  21. package/gql/eagerQueryMap.ts +12 -0
  22. package/gql/fragments/accountAuthFragments.ts +5 -0
  23. package/gql/fragments/accountFragments.ts +0 -3
  24. package/gql/fragments/accountSessionFragments.ts +16 -0
  25. package/gql/fragments/agentMemoryFragments.ts +23 -0
  26. package/gql/fragments/agentNoteFragments.ts +150 -0
  27. package/gql/fragments/aiChatFragments.ts +42 -0
  28. package/gql/fragments/audienceFragments.ts +141 -0
  29. package/gql/fragments/campaignFragments.ts +566 -0
  30. package/gql/fragments/dataTableFragments.ts +50 -192
  31. package/gql/fragments/emailFragments.ts +32 -17
  32. package/gql/fragments/fieldDocFragments.ts +264 -0
  33. package/gql/fragments/inboundContactFragments.ts +2 -0
  34. package/gql/fragments/logFragments.ts +101 -69
  35. package/gql/fragments/organizationFragments.ts +53 -5
  36. package/gql/fragments/qrCodeFragments.ts +29 -0
  37. package/gql/fragments/scheduleFragments.ts +667 -0
  38. package/gql/fragments/sheetFragments.ts +304 -63
  39. package/gql/fragments/storageFragments.ts +45 -0
  40. package/gql/fragments/workflowFragments.ts +41 -5
  41. package/gql/mutations/accountMutations.ts +0 -2
  42. package/gql/mutations/agentMemoryMutations.ts +68 -0
  43. package/gql/mutations/agentNoteMutations.ts +62 -0
  44. package/gql/mutations/aiChatMutations.ts +49 -4
  45. package/gql/mutations/audienceMutations.ts +71 -0
  46. package/gql/mutations/authMutations.ts +203 -18
  47. package/gql/mutations/billingMutations.ts +17 -27
  48. package/gql/mutations/campaignMutations.ts +258 -0
  49. package/gql/mutations/contactMutations.ts +23 -0
  50. package/gql/mutations/dataTableMutations.ts +19 -54
  51. package/gql/mutations/fieldDocMutations.ts +173 -0
  52. package/gql/mutations/index.ts +10 -2
  53. package/gql/mutations/logMutations.ts +6 -29
  54. package/gql/mutations/organizationMutations.ts +19 -4
  55. package/gql/mutations/qrCodeMutations.ts +20 -0
  56. package/gql/mutations/scheduleMutations.ts +1121 -0
  57. package/gql/mutations/sheetMutations.ts +221 -60
  58. package/gql/mutations/storageMutations.ts +19 -0
  59. package/gql/mutations/workflowMutations.ts +60 -0
  60. package/gql/queries/agentMemoryQueries.ts +28 -0
  61. package/gql/queries/agentNoteQueries.ts +89 -0
  62. package/gql/queries/aiChatQueries.ts +70 -2
  63. package/gql/queries/audienceQueries.ts +128 -0
  64. package/gql/queries/authQueries.ts +47 -0
  65. package/gql/queries/billingQueries.ts +118 -6
  66. package/gql/queries/campaignQueries.ts +236 -0
  67. package/gql/queries/dataTableQueries.ts +61 -13
  68. package/gql/queries/emailQueries.ts +26 -17
  69. package/gql/queries/emailReplyReportQueries.ts +76 -0
  70. package/gql/queries/fieldDocQueries.ts +166 -0
  71. package/gql/queries/inboundContactQueries.ts +4 -0
  72. package/gql/queries/index.ts +10 -2
  73. package/gql/queries/logQueries.ts +68 -30
  74. package/gql/queries/organizationQueries.ts +65 -1
  75. package/gql/queries/qrCodeQueries.ts +20 -0
  76. package/gql/queries/scheduleQueries.ts +691 -0
  77. package/gql/queries/sheetQueries.ts +244 -26
  78. package/gql/queries/storageQueries.ts +38 -0
  79. package/gql/queries/workflowQueries.ts +77 -2
  80. package/hooks/index.helpers.test.ts +50 -0
  81. package/hooks/index.helpers.ts +52 -0
  82. package/hooks/index.ts +2254 -982
  83. package/hooks/use-account-mtn.ts +76 -81
  84. package/hooks/use-agentMemory-mtn.ts +71 -0
  85. package/hooks/use-agentMemory-qry.ts +56 -0
  86. package/hooks/use-agentNote-mtn.ts +82 -0
  87. package/hooks/use-agentNote-qry.ts +190 -0
  88. package/hooks/use-agentNote-recovery.helpers.test.ts +68 -0
  89. package/hooks/use-agentNote-recovery.helpers.ts +58 -0
  90. package/hooks/use-agentNote-recovery.ts +72 -0
  91. package/hooks/use-aiChat-mtn.ts +220 -141
  92. package/hooks/use-aiChat-qry.helpers.test.ts +63 -0
  93. package/hooks/use-aiChat-qry.helpers.ts +124 -0
  94. package/hooks/use-aiChat-qry.ts +341 -237
  95. package/hooks/use-aiChat-stream-mtn.ts +14 -0
  96. package/hooks/use-app-qry.ts +12 -9
  97. package/hooks/use-audience-mtn.ts +194 -0
  98. package/hooks/use-audience-qry.helpers.test.ts +80 -0
  99. package/hooks/use-audience-qry.helpers.ts +63 -0
  100. package/hooks/use-audience-qry.ts +330 -0
  101. package/hooks/use-auth-mtn.ts +435 -252
  102. package/hooks/use-auth-qry.ts +51 -0
  103. package/hooks/use-billing-mtn.ts +31 -0
  104. package/hooks/use-billing-qry.ts +76 -0
  105. package/hooks/use-campaign-generation-recovery.ts +53 -0
  106. package/hooks/use-campaign-mtn.ts +436 -0
  107. package/hooks/use-campaign-qry.helpers.ts +40 -0
  108. package/hooks/use-campaign-qry.ts +834 -0
  109. package/hooks/use-dataTable-mtn.ts +37 -46
  110. package/hooks/use-dataTable-qry.ts +102 -128
  111. package/hooks/use-email-qry.helpers.ts +37 -0
  112. package/hooks/use-email-qry.ts +56 -86
  113. package/hooks/use-emailCampaignReplyReport-qry.ts +27 -0
  114. package/hooks/use-fieldDoc-mtn.ts +262 -0
  115. package/hooks/use-fieldDoc-qry.helpers.test.ts +65 -0
  116. package/hooks/use-fieldDoc-qry.helpers.ts +49 -0
  117. package/hooks/use-fieldDoc-qry.ts +212 -0
  118. package/hooks/use-inboundContact-mtn.ts +19 -16
  119. package/hooks/use-inboundContact-qry.ts +62 -56
  120. package/hooks/use-integration-mtn.ts +56 -38
  121. package/hooks/use-integration-qry.ts +24 -9
  122. package/hooks/use-log-mtn.ts +88 -59
  123. package/hooks/use-log-qry.ts +150 -73
  124. package/hooks/use-organization-mtn.ts +334 -277
  125. package/hooks/use-organization-qry.ts +155 -129
  126. package/hooks/use-publicFormEmail-mtn.ts +27 -0
  127. package/hooks/use-qrCode-mtn.ts +40 -0
  128. package/hooks/use-qrCode-qry.ts +78 -0
  129. package/hooks/use-schedule-mtn.ts +589 -0
  130. package/hooks/use-schedule-qry.ts +738 -0
  131. package/hooks/use-schedule-reactive.ts +486 -0
  132. package/hooks/use-sheet-mtn.ts +157 -79
  133. package/hooks/use-sheet-qry.ts +221 -92
  134. package/hooks/use-storage-mtn.ts +81 -41
  135. package/hooks/use-storage-qry.ts +128 -14
  136. package/hooks/use-workflow-mtn.ts +72 -0
  137. package/hooks/use-workflow-qry.ts +184 -47
  138. package/libs/ai-chat-outgoing.helpers.ts +153 -0
  139. package/libs/ai-chat-outgoing.ts +11 -0
  140. package/libs/ai-chat-outgoing.types.ts +25 -0
  141. package/libs/ai-chat-run-realtime.ts +20 -0
  142. package/libs/ai-chat-submission-realtime.ts +150 -0
  143. package/libs/fragment-realtime-sequence.ts +55 -0
  144. package/libs/fragment-recovery.test.ts +326 -0
  145. package/libs/fragment-recovery.ts +325 -0
  146. package/libs/open-sheet.ts +138 -0
  147. package/libs/orchestrator-realtime.helpers.test.ts +229 -0
  148. package/libs/orchestrator-realtime.helpers.ts +317 -0
  149. package/libs/orchestrator-realtime.ts +433 -0
  150. package/libs/request-cache-regression.test.ts +122 -0
  151. package/libs/request-managed-session.test.ts +574 -0
  152. package/libs/request-no-store.test.ts +419 -0
  153. package/libs/sheet-command-batch.ts +44 -0
  154. package/libs/sheet-view-realtime-router.test.ts +214 -0
  155. package/libs/sheet-view-realtime-router.ts +99 -0
  156. package/libs/sse-ticket.test.ts +26 -0
  157. package/loaders/campaign.test.ts +186 -0
  158. package/loaders/campaign.ts +110 -0
  159. package/loaders/emailPreference.ts +75 -0
  160. package/loaders/rest.ts +12 -0
  161. package/package.json +119 -71
  162. package/schedule.d.ts +1790 -0
  163. package/sse.helpers.ts +19 -0
  164. package/sse.ts +70 -106
  165. package/tests/agent-note-detail-cache.test.ts +120 -0
  166. package/tests/agent-note-search.test.ts +444 -0
  167. package/tsconfig.json +11 -10
  168. package/types.d.ts +77 -26
  169. package/utils.ts +78 -49
  170. package/gql/fragments/billingFragments.ts +0 -25
  171. package/gql/fragments/productFragments.ts +0 -39
  172. package/gql/fragments/reportFragments.ts +0 -90
  173. package/gql/queries/productQueries.ts +0 -31
  174. package/gql/queries/reportQueries.ts +0 -134
  175. package/hooks/use-product-qry.ts +0 -67
  176. 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 { dataTableCellFragment, dataTableFragment, dataTableRowFragment } from '../fragments/dataTableFragments.ts';
2
+ import { dataTableFragment } from '../fragments/dataTableFragments.ts';
3
3
 
4
- export const editDataTableCellMtn = gql`
5
- mutation editDataTableCell (
4
+ export const renameDataTableMtn = gql`
5
+ mutation renameDataTable (
6
6
  $organizationId: GenericID!
7
7
  $dataTableId: GenericID!
8
- $dataTableRowId: GenericID!
9
- $cellKey: String!
10
- $viewId: String
11
- $viewCellKey: String
12
- $value: String
13
- $reference: DataTableCellReferenceInput
8
+ $title: String!
14
9
  ) {
15
- editDataTableCell (
10
+ renameDataTable (
16
11
  organizationId: $organizationId
17
12
  dataTableId: $dataTableId
18
- dataTableRowId: $dataTableRowId
19
- cellKey: $cellKey
20
- viewId: $viewId
21
- viewCellKey: $viewCellKey
22
- value: $value
23
- reference: $reference
13
+ title: $title
24
14
  ) {
25
- ...dataTableCellFragment
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
- ${dataTableCellFragment}
19
+ ${dataTableFragment}
48
20
  `;
49
21
 
50
- export const deleteDataTableRowMtn = gql`
51
- mutation deleteDataTableRow (
22
+ export const deleteDataTableMtn = gql`
23
+ mutation deleteDataTable (
52
24
  $organizationId: GenericID!
53
25
  $dataTableId: GenericID!
54
- $dataTableRowId: GenericID!
55
26
  ) {
56
- deleteDataTableRow (
27
+ deleteDataTable (
57
28
  organizationId: $organizationId
58
29
  dataTableId: $dataTableId
59
- dataTableRowId: $dataTableRowId
60
- ) {
61
- ...dataTableRowFragment
62
- }
30
+ )
63
31
  }
64
-
65
- ${dataTableRowFragment}
66
32
  `;
67
33
 
68
- export const editDataTableDesignMtn = gql`
69
- mutation editDataTableDesign (
34
+ export const exportDataTableToFileMtn = gql`
35
+ mutation exportDataTableToFile (
70
36
  $organizationId: GenericID!
71
37
  $dataTableId: GenericID!
72
- $design: DataTableDesignPatchInput!
73
38
  ) {
74
- editDataTableDesign (
39
+ exportDataTableToFile (
75
40
  organizationId: $organizationId
76
41
  dataTableId: $dataTableId
77
- design: $design
78
42
  ) {
79
- ...dataTableFragment
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
+ `;
@@ -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 './integrationMutations.ts';
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 './dataTableMutations.ts';
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
- logEntryFragment,
4
- logArableFragment,
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
- $arableDetails: LogArableInput
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
- arableDetails: $arableDetails
31
- growerNetworkDetails: $growerNetworkDetails
32
- livestockDetails: $livestockDetails
33
- farmersMarketDetails: $farmersMarketDetails
24
+ details: $details
34
25
  ) {
35
26
  ...logEntryFragment
36
27
 
37
28
  details {
38
- ...on LogArable {
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
- ${logArableFragment}
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 { organizationChildFragment, organizationComplianceFragment, organizationFragment, organizationRelationshipFragment, organizationSettingsFragment, organizationSiteFragment } from '../fragments/organizationFragments.ts';
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
- inboundEmail: $inboundEmail
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
- $sidebar: [OrganizationSidebarGroupInput!]
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: OrganizationOperation
122
+ $operation: String
108
123
  $address: AddressInput
109
124
  $preferredContacts: [OrgContactInput!]
110
125
  ) {