@jsb188/graphql 1.1.12 → 1.1.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (137) hide show
  1. package/LICENSE +21 -0
  2. package/audience.d.ts +14 -152
  3. package/cache/config.ts +35 -32
  4. package/cache/index.helpers.ts +1 -1
  5. package/cache/index.ts +73 -44
  6. package/cache/mounted-queries.ts +33 -0
  7. package/cache/persist.ts +10 -4
  8. package/cache/realtime-fence.ts +47 -0
  9. package/cache/realtime-live.ts +17 -0
  10. package/client/draft-persistence.ts +10 -39
  11. package/client/index.ts +2 -1
  12. package/client/request.ts +9 -34
  13. package/client/storage-asset.ts +58 -0
  14. package/gql/fragments/accountAuthFragments.ts +0 -4
  15. package/gql/fragments/agentNoteFragments.ts +8 -2
  16. package/gql/fragments/aiChatFragments.ts +0 -2
  17. package/gql/fragments/aiChatLinkFragments.ts +8 -0
  18. package/gql/fragments/audienceFragments.ts +1 -66
  19. package/gql/fragments/emailFragments.ts +27 -4
  20. package/gql/fragments/emailOutreachFragments.ts +281 -0
  21. package/gql/fragments/inboundContactFragments.ts +1 -1
  22. package/gql/fragments/libraryFragments.ts +120 -0
  23. package/gql/fragments/organizationFragments.ts +4 -2
  24. package/gql/fragments/scheduleFragments.ts +241 -324
  25. package/gql/fragments/sheetFragments.ts +4 -53
  26. package/gql/fragments/workWaitFragments.ts +13 -0
  27. package/gql/fragments/workflowFragments.ts +20 -4
  28. package/gql/mutations/agentNoteMutations.ts +2 -0
  29. package/gql/mutations/aiChatLinkMutations.ts +13 -0
  30. package/gql/mutations/aiChatMutations.ts +4 -6
  31. package/gql/mutations/audienceMutations.ts +0 -13
  32. package/gql/mutations/authMutations.ts +12 -60
  33. package/gql/mutations/emailMutations.ts +22 -0
  34. package/gql/mutations/emailOutreachMutations.ts +139 -0
  35. package/gql/mutations/index.ts +3 -1
  36. package/gql/mutations/organizationMutations.ts +2 -2
  37. package/gql/mutations/scheduleMutations.ts +61 -787
  38. package/gql/mutations/storageMutations.ts +1 -0
  39. package/gql/mutations/workflowMutations.ts +76 -0
  40. package/gql/queries/agentMemoryQueries.ts +6 -2
  41. package/gql/queries/agentNoteQueries.ts +26 -29
  42. package/gql/queries/aiChatQueries.ts +39 -40
  43. package/gql/queries/audienceQueries.ts +31 -55
  44. package/gql/queries/authQueries.ts +16 -6
  45. package/gql/queries/billingQueries.ts +26 -10
  46. package/gql/queries/dataTableQueries.ts +24 -15
  47. package/gql/queries/emailOutreachQueries.ts +282 -0
  48. package/gql/queries/emailQueries.ts +39 -12
  49. package/gql/queries/emailReplyReportQueries.ts +60 -9
  50. package/gql/queries/fieldDocQueries.ts +36 -14
  51. package/gql/queries/inboundContactQueries.ts +11 -4
  52. package/gql/queries/index.ts +2 -2
  53. package/gql/queries/libraryQueries.ts +112 -0
  54. package/gql/queries/logQueries.ts +31 -12
  55. package/gql/queries/organizationQueries.ts +31 -12
  56. package/gql/queries/qrCodeQueries.ts +11 -4
  57. package/gql/queries/scheduleQueries.ts +252 -505
  58. package/gql/queries/sheetQueries.ts +36 -14
  59. package/gql/queries/storageQueries.ts +11 -4
  60. package/gql/queries/workflowQueries.ts +53 -10
  61. package/gql/reactivity.ts +98 -0
  62. package/gql/recordReads.ts +171 -0
  63. package/hooks/index.ts +79 -52
  64. package/hooks/use-agentNote-mtn.ts +7 -0
  65. package/hooks/use-agentNote-qry.ts +30 -58
  66. package/hooks/use-agentNote-recovery.ts +6 -21
  67. package/hooks/use-aiChat-mtn.ts +9 -4
  68. package/hooks/use-aiChat-qry.ts +28 -7
  69. package/hooks/use-audience-mtn.ts +0 -24
  70. package/hooks/use-audience-qry.helpers.ts +0 -24
  71. package/hooks/use-audience-qry.ts +1 -86
  72. package/hooks/use-dataTable-mtn.ts +3 -3
  73. package/hooks/use-dataTable-qry.ts +7 -2
  74. package/hooks/use-email-mtn.ts +26 -0
  75. package/hooks/use-email-qry.helpers.ts +1 -1
  76. package/hooks/use-email-qry.ts +18 -3
  77. package/hooks/use-emailOutreach-mtn.ts +211 -0
  78. package/hooks/use-emailOutreach-qry.helpers.ts +25 -0
  79. package/hooks/use-emailOutreach-qry.ts +367 -0
  80. package/hooks/use-emailOutreachReplyReport-qry.ts +46 -0
  81. package/hooks/use-fieldDoc-qry.ts +1 -1
  82. package/hooks/use-library-qry.ts +233 -0
  83. package/hooks/use-qrCode-qry.ts +1 -1
  84. package/hooks/use-schedule-mtn.ts +10 -300
  85. package/hooks/use-schedule-qry.ts +168 -680
  86. package/hooks/use-schedule-reactive.ts +71 -339
  87. package/hooks/use-sheet-qry.ts +6 -1
  88. package/hooks/use-workflow-mtn.ts +45 -1
  89. package/hooks/use-workflow-qry.ts +22 -2
  90. package/libs/ai-chat-link-events.ts +78 -0
  91. package/libs/data-changes.helpers.ts +161 -0
  92. package/libs/data-changes.ts +382 -0
  93. package/libs/fragment-realtime-sequence.ts +3 -3
  94. package/libs/record-read.ts +327 -0
  95. package/libs/sheet-command-batch.ts +3 -2
  96. package/libs/sheet-realtime-packet.ts +53 -0
  97. package/loaders/emailPreference.ts +18 -24
  98. package/package.json +44 -17
  99. package/schedule.d.ts +267 -874
  100. package/types.d.ts +3 -1
  101. package/cache/index.chat-activity.test.ts +0 -119
  102. package/cache/index.chat.test.ts +0 -92
  103. package/cache/index.regression.test.ts +0 -149
  104. package/cache/index.test.ts +0 -1209
  105. package/deno.lock +0 -187
  106. package/deno.test.json +0 -12
  107. package/gql/fragments/campaignFragments.ts +0 -566
  108. package/gql/mutations/campaignMutations.ts +0 -258
  109. package/gql/queries/appQueries.ts +0 -14
  110. package/gql/queries/campaignQueries.ts +0 -236
  111. package/hooks/index.helpers.test.ts +0 -50
  112. package/hooks/use-agentNote-recovery.helpers.test.ts +0 -68
  113. package/hooks/use-aiChat-qry.helpers.test.ts +0 -63
  114. package/hooks/use-app-qry.ts +0 -22
  115. package/hooks/use-audience-qry.helpers.test.ts +0 -80
  116. package/hooks/use-campaign-generation-recovery.ts +0 -53
  117. package/hooks/use-campaign-mtn.ts +0 -436
  118. package/hooks/use-campaign-qry.helpers.ts +0 -40
  119. package/hooks/use-campaign-qry.ts +0 -834
  120. package/hooks/use-emailCampaignReplyReport-qry.ts +0 -27
  121. package/hooks/use-fieldDoc-qry.helpers.test.ts +0 -65
  122. package/hooks/use-publicFormEmail-mtn.ts +0 -27
  123. package/libs/fragment-recovery.test.ts +0 -326
  124. package/libs/fragment-recovery.ts +0 -325
  125. package/libs/orchestrator-realtime.helpers.test.ts +0 -229
  126. package/libs/orchestrator-realtime.helpers.ts +0 -317
  127. package/libs/orchestrator-realtime.ts +0 -433
  128. package/libs/request-cache-regression.test.ts +0 -122
  129. package/libs/request-managed-session.test.ts +0 -574
  130. package/libs/request-no-store.test.ts +0 -419
  131. package/libs/sheet-view-realtime-router.test.ts +0 -214
  132. package/libs/sse-ticket.test.ts +0 -26
  133. package/loaders/campaign.test.ts +0 -186
  134. package/loaders/campaign.ts +0 -110
  135. package/tests/agent-note-detail-cache.test.ts +0 -120
  136. package/tests/agent-note-search.test.ts +0 -444
  137. package/tsconfig.json +0 -13
@@ -90,22 +90,20 @@ export const useUpdateScheduleResource = composeScheduleMutationHook(
90
90
  );
91
91
 
92
92
  /*
93
- * Submit createScheduleResourceAvailability through the shared mutation lifecycle.
93
+ * Submit createScheduleResourceCapacity through the shared mutation lifecycle.
94
94
  */
95
- export const useCreateScheduleResourceAvailability =
96
- composeScheduleMutationHook(
97
- documents.createScheduleResourceAvailabilityMtn,
98
- 'createScheduleResourceAvailability',
99
- );
95
+ export const useCreateScheduleResourceCapacity = composeScheduleMutationHook(
96
+ documents.createScheduleResourceCapacityMtn,
97
+ 'createScheduleResourceCapacity',
98
+ );
100
99
 
101
100
  /*
102
- * Submit deleteScheduleResourceAvailability through the shared mutation lifecycle.
101
+ * Submit deleteScheduleResourceCapacity through the shared mutation lifecycle.
103
102
  */
104
- export const useDeleteScheduleResourceAvailability =
105
- composeScheduleMutationHook(
106
- documents.deleteScheduleResourceAvailabilityMtn,
107
- 'deleteScheduleResourceAvailability',
108
- );
103
+ export const useDeleteScheduleResourceCapacity = composeScheduleMutationHook(
104
+ documents.deleteScheduleResourceCapacityMtn,
105
+ 'deleteScheduleResourceCapacity',
106
+ );
109
107
 
110
108
  /*
111
109
  * Submit updateMyScheduleNotifyPrefs through the shared mutation lifecycle.
@@ -115,230 +113,6 @@ export const useUpdateMyScheduleNotifyPrefs = composeScheduleMutationHook(
115
113
  'updateMyScheduleNotifyPrefs',
116
114
  );
117
115
 
118
- /*
119
- * Submit createScheduleCalendar through the shared mutation lifecycle.
120
- */
121
- export const useCreateScheduleCalendar = composeScheduleMutationHook(
122
- documents.createScheduleCalendarMtn,
123
- 'createScheduleCalendar',
124
- );
125
-
126
- /*
127
- * Submit updateScheduleCalendar through the shared mutation lifecycle.
128
- */
129
- export const useUpdateScheduleCalendar = composeScheduleMutationHook(
130
- documents.updateScheduleCalendarMtn,
131
- 'updateScheduleCalendar',
132
- );
133
-
134
- /*
135
- * Submit updateScheduleCalendarAccess through the shared mutation lifecycle.
136
- */
137
- export const useUpdateScheduleCalendarAccess = composeScheduleMutationHook(
138
- documents.updateScheduleCalendarAccessMtn,
139
- 'updateScheduleCalendarAccess',
140
- );
141
-
142
- /*
143
- * Submit deleteScheduleCalendar through the shared mutation lifecycle.
144
- */
145
- export const useDeleteScheduleCalendar = composeScheduleMutationHook(
146
- documents.deleteScheduleCalendarMtn,
147
- 'deleteScheduleCalendar',
148
- );
149
-
150
- /*
151
- * Submit createScheduleSeries through the shared mutation lifecycle.
152
- */
153
- export const useCreateScheduleSeries = composeScheduleMutationHook(
154
- documents.createScheduleSeriesMtn,
155
- 'createScheduleSeries',
156
- );
157
-
158
- /*
159
- * Submit updateScheduleSeries through the shared mutation lifecycle.
160
- */
161
- export const useUpdateScheduleSeries = composeScheduleMutationHook(
162
- documents.updateScheduleSeriesMtn,
163
- 'updateScheduleSeries',
164
- );
165
-
166
- /*
167
- * Submit deleteScheduleSeries through the shared mutation lifecycle.
168
- */
169
- export const useDeleteScheduleSeries = composeScheduleMutationHook(
170
- documents.deleteScheduleSeriesMtn,
171
- 'deleteScheduleSeries',
172
- );
173
-
174
- /*
175
- * Submit createScheduleOccurrence through the shared mutation lifecycle.
176
- */
177
- export const useCreateScheduleOccurrence = composeScheduleMutationHook(
178
- documents.createScheduleOccurrenceMtn,
179
- 'createScheduleOccurrence',
180
- );
181
-
182
- /*
183
- * Submit updateScheduleOccurrence through the shared mutation lifecycle.
184
- */
185
- export const useUpdateScheduleOccurrence = composeScheduleMutationHook(
186
- documents.updateScheduleOccurrenceMtn,
187
- 'updateScheduleOccurrence',
188
- );
189
-
190
- /*
191
- * Submit cancelScheduleOccurrence through the shared mutation lifecycle.
192
- */
193
- export const useCancelScheduleOccurrence = composeScheduleMutationHook(
194
- documents.cancelScheduleOccurrenceMtn,
195
- 'cancelScheduleOccurrence',
196
- );
197
-
198
- /*
199
- * Submit deleteScheduleOccurrence through the shared mutation lifecycle.
200
- */
201
- export const useDeleteScheduleOccurrence = composeScheduleMutationHook(
202
- documents.deleteScheduleOccurrenceMtn,
203
- 'deleteScheduleOccurrence',
204
- );
205
-
206
- /*
207
- * Submit assignScheduleOccurrence through the shared mutation lifecycle.
208
- */
209
- export const useAssignScheduleOccurrence = composeScheduleMutationHook(
210
- documents.assignScheduleOccurrenceMtn,
211
- 'assignScheduleOccurrence',
212
- );
213
-
214
- /*
215
- * Submit releaseScheduleAssignment through the shared mutation lifecycle.
216
- */
217
- export const useReleaseScheduleAssignment = composeScheduleMutationHook(
218
- documents.releaseScheduleAssignmentMtn,
219
- 'releaseScheduleAssignment',
220
- );
221
-
222
- /*
223
- * Submit publishScheduleWindow through the shared mutation lifecycle.
224
- */
225
- export const usePublishScheduleWindow = composeScheduleMutationHook(
226
- documents.publishScheduleWindowMtn,
227
- 'publishScheduleWindow',
228
- );
229
-
230
- /*
231
- * Submit acknowledgeSchedulePublication through the shared mutation lifecycle.
232
- */
233
- export const useAcknowledgeSchedulePublication = composeScheduleMutationHook(
234
- documents.acknowledgeSchedulePublicationMtn,
235
- 'acknowledgeSchedulePublication',
236
- );
237
-
238
- /*
239
- * Submit evaluateScheduleWindow through the shared mutation lifecycle.
240
- */
241
- export const useEvaluateScheduleWindow = composeScheduleMutationHook(
242
- documents.evaluateScheduleWindowMtn,
243
- 'evaluateScheduleWindow',
244
- );
245
-
246
- /*
247
- * Submit createScheduleRule through the shared mutation lifecycle.
248
- */
249
- export const useCreateScheduleRule = composeScheduleMutationHook(
250
- documents.createScheduleRuleMtn,
251
- 'createScheduleRule',
252
- );
253
-
254
- /*
255
- * Submit updateScheduleRule through the shared mutation lifecycle.
256
- */
257
- export const useUpdateScheduleRule = composeScheduleMutationHook(
258
- documents.updateScheduleRuleMtn,
259
- 'updateScheduleRule',
260
- );
261
-
262
- /*
263
- * Submit deleteScheduleRule through the shared mutation lifecycle.
264
- */
265
- export const useDeleteScheduleRule = composeScheduleMutationHook(
266
- documents.deleteScheduleRuleMtn,
267
- 'deleteScheduleRule',
268
- );
269
-
270
- /*
271
- * Submit createScheduleDemand through the shared mutation lifecycle.
272
- */
273
- export const useCreateScheduleDemand = composeScheduleMutationHook(
274
- documents.createScheduleDemandMtn,
275
- 'createScheduleDemand',
276
- );
277
-
278
- /*
279
- * Submit deleteScheduleDemand through the shared mutation lifecycle.
280
- */
281
- export const useDeleteScheduleDemand = composeScheduleMutationHook(
282
- documents.deleteScheduleDemandMtn,
283
- 'deleteScheduleDemand',
284
- );
285
-
286
- /*
287
- * Submit createScheduleRequest through the shared mutation lifecycle.
288
- */
289
- export const useCreateScheduleRequest = composeScheduleMutationHook(
290
- documents.createScheduleRequestMtn,
291
- 'createScheduleRequest',
292
- );
293
-
294
- /*
295
- * Submit respondScheduleRequest through the shared mutation lifecycle.
296
- */
297
- export const useRespondScheduleRequest = composeScheduleMutationHook(
298
- documents.respondScheduleRequestMtn,
299
- 'respondScheduleRequest',
300
- );
301
-
302
- /*
303
- * Submit withdrawScheduleRequest through the shared mutation lifecycle.
304
- */
305
- export const useWithdrawScheduleRequest = composeScheduleMutationHook(
306
- documents.withdrawScheduleRequestMtn,
307
- 'withdrawScheduleRequest',
308
- );
309
-
310
- /*
311
- * Submit decideScheduleRequest through the shared mutation lifecycle.
312
- */
313
- export const useDecideScheduleRequest = composeScheduleMutationHook(
314
- documents.decideScheduleRequestMtn,
315
- 'decideScheduleRequest',
316
- );
317
-
318
- /*
319
- * Submit createScheduleTimeOff through the shared mutation lifecycle.
320
- */
321
- export const useCreateScheduleTimeOff = composeScheduleMutationHook(
322
- documents.createScheduleTimeOffMtn,
323
- 'createScheduleTimeOff',
324
- );
325
-
326
- /*
327
- * Submit decideScheduleTimeOff through the shared mutation lifecycle.
328
- */
329
- export const useDecideScheduleTimeOff = composeScheduleMutationHook(
330
- documents.decideScheduleTimeOffMtn,
331
- 'decideScheduleTimeOff',
332
- );
333
-
334
- /*
335
- * Submit cancelScheduleTimeOff through the shared mutation lifecycle.
336
- */
337
- export const useCancelScheduleTimeOff = composeScheduleMutationHook(
338
- documents.cancelScheduleTimeOffMtn,
339
- 'cancelScheduleTimeOff',
340
- );
341
-
342
116
  /*
343
117
  * Submit createScheduleProject through the shared mutation lifecycle.
344
118
  */
@@ -355,14 +129,6 @@ export const useUpdateScheduleProject = composeScheduleMutationHook(
355
129
  'updateScheduleProject',
356
130
  );
357
131
 
358
- /*
359
- * Submit updateScheduleProjectAccess through the shared mutation lifecycle.
360
- */
361
- export const useUpdateScheduleProjectAccess = composeScheduleMutationHook(
362
- documents.updateScheduleProjectAccessMtn,
363
- 'updateScheduleProjectAccess',
364
- );
365
-
366
132
  /*
367
133
  * Submit deleteScheduleProject through the shared mutation lifecycle.
368
134
  */
@@ -395,14 +161,6 @@ export const useDeleteScheduleWbsNode = composeScheduleMutationHook(
395
161
  'deleteScheduleWbsNode',
396
162
  );
397
163
 
398
- /*
399
- * Submit createScheduleActivity through the shared mutation lifecycle.
400
- */
401
- export const useCreateScheduleActivity = composeScheduleMutationHook(
402
- documents.createScheduleActivityMtn,
403
- 'createScheduleActivity',
404
- );
405
-
406
164
  /*
407
165
  * Submit createScheduleActivities through the shared mutation lifecycle.
408
166
  */
@@ -419,14 +177,6 @@ export const useUpdateScheduleActivity = composeScheduleMutationHook(
419
177
  'updateScheduleActivity',
420
178
  );
421
179
 
422
- /*
423
- * Submit updateScheduleActivitiesProgress through the shared mutation lifecycle.
424
- */
425
- export const useUpdateScheduleActivitiesProgress = composeScheduleMutationHook(
426
- documents.updateScheduleActivitiesProgressMtn,
427
- 'updateScheduleActivitiesProgress',
428
- );
429
-
430
180
  /*
431
181
  * Submit deleteScheduleActivities through the shared mutation lifecycle.
432
182
  */
@@ -540,22 +290,6 @@ export const useDeleteScheduleBaseline = composeScheduleMutationHook(
540
290
  'deleteScheduleBaseline',
541
291
  );
542
292
 
543
- /*
544
- * Submit replaceScheduleCodeType through the shared mutation lifecycle.
545
- */
546
- export const useReplaceScheduleCodeType = composeScheduleMutationHook(
547
- documents.replaceScheduleCodeTypeMtn,
548
- 'replaceScheduleCodeType',
549
- );
550
-
551
- /*
552
- * Submit deleteScheduleCodeType through the shared mutation lifecycle.
553
- */
554
- export const useDeleteScheduleCodeType = composeScheduleMutationHook(
555
- documents.deleteScheduleCodeTypeMtn,
556
- 'deleteScheduleCodeType',
557
- );
558
-
559
293
  /*
560
294
  * Submit importScheduleProjectPlan through the shared mutation lifecycle.
561
295
  */
@@ -563,27 +297,3 @@ export const useImportScheduleProjectPlan = composeScheduleMutationHook(
563
297
  documents.importScheduleProjectPlanMtn,
564
298
  'importScheduleProjectPlan',
565
299
  );
566
-
567
- /*
568
- * Submit deleteScheduleActivity through the shared mutation lifecycle.
569
- */
570
- export const useDeleteScheduleActivity = composeScheduleMutationHook(
571
- documents.deleteScheduleActivityMtn,
572
- 'deleteScheduleActivity',
573
- );
574
-
575
- /*
576
- * Submit createScheduleRelationship through the shared mutation lifecycle.
577
- */
578
- export const useCreateScheduleRelationship = composeScheduleMutationHook(
579
- documents.createScheduleRelationshipMtn,
580
- 'createScheduleRelationship',
581
- );
582
-
583
- /*
584
- * Submit deleteScheduleRelationship through the shared mutation lifecycle.
585
- */
586
- export const useDeleteScheduleRelationship = composeScheduleMutationHook(
587
- documents.deleteScheduleRelationshipMtn,
588
- 'deleteScheduleRelationship',
589
- );