@jsb188/graphql 1.1.11 → 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 (165) hide show
  1. package/audience.d.ts +343 -0
  2. package/cache/config.ts +58 -24
  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 +370 -42
  8. package/cache/index.ts +326 -799
  9. package/cache/optimistic-ui-runtime.ts +46 -0
  10. package/cache/optimistic-ui.ts +401 -0
  11. package/cache/persist.ts +98 -19
  12. package/cache/store.ts +22 -64
  13. package/cache/value.helpers.ts +17 -0
  14. package/{drafts/store.ts → client/draft-persistence-indexed-db.ts} +19 -3
  15. package/{drafts/index.ts → client/draft-persistence.ts} +5 -2
  16. package/client/index.ts +3 -2
  17. package/client/request.helpers.ts +14 -0
  18. package/client/request.ts +130 -215
  19. package/deno.lock +17 -0
  20. package/deno.test.json +2 -0
  21. package/gql/fragments/agentMemoryFragments.ts +5 -1
  22. package/gql/fragments/agentNoteFragments.ts +150 -0
  23. package/gql/fragments/aiChatFragments.ts +36 -10
  24. package/gql/fragments/audienceFragments.ts +141 -0
  25. package/gql/fragments/campaignFragments.ts +415 -126
  26. package/gql/fragments/dataTableFragments.ts +48 -80
  27. package/gql/fragments/emailFragments.ts +28 -23
  28. package/gql/fragments/fieldDocFragments.ts +222 -40
  29. package/gql/fragments/inboundContactFragments.ts +2 -0
  30. package/gql/fragments/logFragments.ts +93 -2
  31. package/gql/fragments/organizationFragments.ts +10 -0
  32. package/gql/fragments/qrCodeFragments.ts +29 -0
  33. package/gql/fragments/scheduleFragments.ts +652 -140
  34. package/gql/fragments/sheetFragments.ts +84 -373
  35. package/gql/fragments/storageFragments.ts +25 -1
  36. package/gql/fragments/workflowFragments.ts +13 -1
  37. package/gql/mutations/agentMemoryMutations.ts +32 -0
  38. package/gql/mutations/agentNoteMutations.ts +62 -0
  39. package/gql/mutations/aiChatMutations.ts +36 -4
  40. package/gql/mutations/audienceMutations.ts +71 -0
  41. package/gql/mutations/authMutations.ts +45 -1
  42. package/gql/mutations/billingMutations.ts +24 -0
  43. package/gql/mutations/campaignMutations.ts +170 -127
  44. package/gql/mutations/contactMutations.ts +23 -0
  45. package/gql/mutations/dataTableMutations.ts +18 -75
  46. package/gql/mutations/fieldDocMutations.ts +162 -13
  47. package/gql/mutations/index.ts +8 -5
  48. package/gql/mutations/organizationMutations.ts +6 -0
  49. package/gql/mutations/qrCodeMutations.ts +20 -0
  50. package/gql/mutations/scheduleMutations.ts +1052 -354
  51. package/gql/mutations/sheetMutations.ts +62 -118
  52. package/gql/mutations/storageMutations.ts +0 -1
  53. package/gql/mutations/workflowMutations.ts +18 -0
  54. package/gql/queries/agentMemoryQueries.ts +6 -0
  55. package/gql/queries/agentNoteQueries.ts +89 -0
  56. package/gql/queries/aiChatQueries.ts +56 -4
  57. package/gql/queries/audienceQueries.ts +128 -0
  58. package/gql/queries/authQueries.ts +6 -0
  59. package/gql/queries/billingQueries.ts +95 -6
  60. package/gql/queries/campaignQueries.ts +132 -23
  61. package/gql/queries/dataTableQueries.ts +24 -65
  62. package/gql/queries/emailQueries.ts +18 -61
  63. package/gql/queries/emailReplyReportQueries.ts +76 -0
  64. package/gql/queries/fieldDocQueries.ts +100 -92
  65. package/gql/queries/inboundContactQueries.ts +4 -0
  66. package/gql/queries/index.ts +3 -1
  67. package/gql/queries/logQueries.ts +62 -7
  68. package/gql/queries/organizationQueries.ts +13 -0
  69. package/gql/queries/qrCodeQueries.ts +20 -0
  70. package/gql/queries/scheduleQueries.ts +633 -257
  71. package/gql/queries/sheetQueries.ts +59 -152
  72. package/gql/queries/workflowQueries.ts +10 -4
  73. package/hooks/index.helpers.test.ts +50 -0
  74. package/hooks/index.helpers.ts +52 -0
  75. package/hooks/index.ts +863 -685
  76. package/hooks/use-agentMemory-mtn.ts +29 -31
  77. package/hooks/use-agentMemory-qry.ts +15 -3
  78. package/hooks/use-agentNote-mtn.ts +82 -0
  79. package/hooks/use-agentNote-qry.ts +190 -0
  80. package/hooks/use-agentNote-recovery.helpers.test.ts +68 -0
  81. package/hooks/use-agentNote-recovery.helpers.ts +58 -0
  82. package/hooks/use-agentNote-recovery.ts +72 -0
  83. package/hooks/use-aiChat-mtn.ts +96 -112
  84. package/hooks/use-aiChat-qry.helpers.test.ts +63 -0
  85. package/hooks/use-aiChat-qry.helpers.ts +124 -0
  86. package/hooks/use-aiChat-qry.ts +229 -383
  87. package/hooks/use-aiChat-stream-mtn.ts +14 -0
  88. package/hooks/use-audience-mtn.ts +194 -0
  89. package/hooks/use-audience-qry.helpers.test.ts +80 -0
  90. package/hooks/use-audience-qry.helpers.ts +63 -0
  91. package/hooks/use-audience-qry.ts +330 -0
  92. package/hooks/use-auth-mtn.ts +30 -1
  93. package/hooks/use-billing-mtn.ts +31 -0
  94. package/hooks/use-billing-qry.ts +76 -0
  95. package/hooks/use-campaign-generation-recovery.ts +53 -0
  96. package/hooks/use-campaign-mtn.ts +224 -165
  97. package/hooks/use-campaign-qry.helpers.ts +40 -0
  98. package/hooks/use-campaign-qry.ts +631 -54
  99. package/hooks/use-dataTable-mtn.ts +23 -115
  100. package/hooks/use-dataTable-qry.ts +66 -916
  101. package/hooks/use-email-qry.helpers.ts +37 -0
  102. package/hooks/use-email-qry.ts +33 -178
  103. package/hooks/use-emailCampaignReplyReport-qry.ts +27 -0
  104. package/hooks/use-fieldDoc-mtn.ts +244 -32
  105. package/hooks/use-fieldDoc-qry.helpers.test.ts +65 -0
  106. package/hooks/use-fieldDoc-qry.helpers.ts +49 -0
  107. package/hooks/use-fieldDoc-qry.ts +134 -102
  108. package/hooks/use-inboundContact-qry.ts +7 -9
  109. package/hooks/use-log-mtn.ts +25 -12
  110. package/hooks/use-log-qry.ts +99 -46
  111. package/hooks/use-organization-qry.ts +16 -60
  112. package/hooks/use-publicFormEmail-mtn.ts +27 -0
  113. package/hooks/use-qrCode-mtn.ts +40 -0
  114. package/hooks/use-qrCode-qry.ts +78 -0
  115. package/hooks/use-schedule-mtn.ts +506 -333
  116. package/hooks/use-schedule-qry.ts +682 -101
  117. package/hooks/use-schedule-reactive.ts +486 -0
  118. package/hooks/use-sheet-mtn.ts +91 -199
  119. package/hooks/use-sheet-qry.ts +84 -238
  120. package/hooks/use-storage-qry.ts +84 -61
  121. package/hooks/use-workflow-mtn.ts +39 -22
  122. package/hooks/use-workflow-qry.ts +40 -61
  123. package/libs/ai-chat-outgoing.helpers.ts +153 -0
  124. package/libs/ai-chat-outgoing.ts +11 -0
  125. package/libs/ai-chat-outgoing.types.ts +25 -0
  126. package/libs/ai-chat-run-realtime.ts +20 -0
  127. package/libs/ai-chat-submission-realtime.ts +150 -0
  128. package/libs/fragment-realtime-sequence.ts +55 -0
  129. package/libs/fragment-recovery.test.ts +326 -0
  130. package/libs/fragment-recovery.ts +325 -0
  131. package/libs/open-sheet.ts +138 -0
  132. package/libs/orchestrator-realtime.helpers.test.ts +229 -0
  133. package/libs/orchestrator-realtime.helpers.ts +317 -0
  134. package/libs/orchestrator-realtime.ts +433 -0
  135. package/libs/request-cache-regression.test.ts +122 -0
  136. package/{client → libs}/request-managed-session.test.ts +1 -1
  137. package/libs/request-no-store.test.ts +419 -0
  138. package/libs/sheet-command-batch.ts +44 -0
  139. package/libs/sheet-view-realtime-router.test.ts +214 -0
  140. package/libs/sheet-view-realtime-router.ts +99 -0
  141. package/loaders/campaign.test.ts +186 -0
  142. package/loaders/campaign.ts +56 -83
  143. package/loaders/emailPreference.ts +75 -0
  144. package/loaders/rest.ts +12 -0
  145. package/package.json +42 -17
  146. package/schedule.d.ts +1790 -0
  147. package/sse.helpers.ts +19 -0
  148. package/sse.ts +26 -115
  149. package/tests/agent-note-detail-cache.test.ts +120 -0
  150. package/tests/agent-note-search.test.ts +444 -0
  151. package/types.d.ts +46 -25
  152. package/client/data-table-realtime-subscriptions.test.ts +0 -740
  153. package/client/data-table-realtime-subscriptions.ts +0 -955
  154. package/client/data-table-realtime.test.ts +0 -792
  155. package/client/data-table-realtime.ts +0 -1218
  156. package/client/fragment-realtime-sequence.ts +0 -52
  157. package/client/open-sheet.ts +0 -137
  158. package/client/request-no-store.test.ts +0 -157
  159. package/gql/fragments/agentDocFragments.ts +0 -46
  160. package/gql/fragments/billingFragments.ts +0 -14
  161. package/gql/mutations/agentDocMutations.ts +0 -177
  162. package/gql/queries/agentDocQueries.ts +0 -120
  163. package/hooks/use-agentDoc-mtn.ts +0 -285
  164. package/hooks/use-agentDoc-qry.ts +0 -208
  165. /package/{client → libs}/sse-ticket.test.ts +0 -0
package/package.json CHANGED
@@ -1,23 +1,37 @@
1
1
  {
2
2
  "name": "@jsb188/graphql",
3
- "version": "1.1.11",
3
+ "version": "1.1.12",
4
4
  "description": "GraphQL client for react, using recoil",
5
5
  "license": "ISC",
6
6
  "author": "jsb188",
7
7
  "type": "module",
8
8
  "types": "types.d.ts",
9
9
  "exports": {
10
+ "./hooks/use-qrCode-qry": "./hooks/use-qrCode-qry.ts",
11
+ "./hooks/use-qrCode-mtn": "./hooks/use-qrCode-mtn.ts",
12
+ "./fragments/qrCode": "./gql/fragments/qrCodeFragments.ts",
13
+ "./queries/qrCode": "./gql/queries/qrCodeQueries.ts",
14
+ "./mutations/qrCode": "./gql/mutations/qrCodeMutations.ts",
15
+ "./audience.d": "./audience.d.ts",
16
+ "./fragments/audience": "./gql/fragments/audienceFragments.ts",
17
+ "./queries/audience": "./gql/queries/audienceQueries.ts",
18
+ "./mutations/audience": "./gql/mutations/audienceMutations.ts",
19
+ "./hooks/use-audience-qry": "./hooks/use-audience-qry.ts",
20
+ "./hooks/use-audience-mtn": "./hooks/use-audience-mtn.ts",
21
+ "./queries/billing": "./gql/queries/billingQueries.ts",
22
+ "./mutations/billing": "./gql/mutations/billingMutations.ts",
23
+ "./hooks/use-billing-qry": "./hooks/use-billing-qry.ts",
24
+ "./hooks/use-billing-mtn": "./hooks/use-billing-mtn.ts",
10
25
  "./fragments/account": "./gql/fragments/accountFragments.ts",
11
26
  "./fragments/accountAuth": "./gql/fragments/accountAuthFragments.ts",
12
27
  "./fragments/accountSession": "./gql/fragments/accountSessionFragments.ts",
13
28
  "./fragments/aiChat": "./gql/fragments/aiChatFragments.ts",
14
- "./fragments/billing": "./gql/fragments/billingFragments.ts",
15
29
  "./fragments/email": "./gql/fragments/emailFragments.ts",
16
30
  "./fragments/inboundContact": "./gql/fragments/inboundContactFragments.ts",
17
31
  "./fragments/integration": "./gql/fragments/integrationFragments.ts",
18
32
  "./fragments/log": "./gql/fragments/logFragments.ts",
19
33
  "./fragments/schedule": "./gql/fragments/scheduleFragments.ts",
20
- "./fragments/agentDoc": "./gql/fragments/agentDocFragments.ts",
34
+ "./fragments/agentNote": "./gql/fragments/agentNoteFragments.ts",
21
35
  "./fragments/organization": "./gql/fragments/organizationFragments.ts",
22
36
  "./fragments/other": "./gql/fragments/otherFragments.ts",
23
37
  "./fragments/fieldDoc": "./gql/fragments/fieldDocFragments.ts",
@@ -27,17 +41,18 @@
27
41
  "./fragments/storage": "./gql/fragments/storageFragments.ts",
28
42
  "./fragments/workflow": "./gql/fragments/workflowFragments.ts",
29
43
  "./hooks": "./hooks/",
30
- "./hooks/use-action-qry": "./hooks/use-action-qry.ts",
31
44
  "./hooks/use-aiChat-qry": "./hooks/use-aiChat-qry.ts",
45
+ "./hooks/use-aiChat-qry.helpers": "./hooks/use-aiChat-qry.helpers.ts",
32
46
  "./hooks/use-app-qry": "./hooks/use-app-qry.ts",
47
+ "./hooks/use-emailCampaignReplyReport-qry": "./hooks/use-emailCampaignReplyReport-qry.ts",
48
+ "./queries/emailReplyReport": "./gql/queries/emailReplyReportQueries.ts",
33
49
  "./hooks/use-email-qry": "./hooks/use-email-qry.ts",
34
50
  "./hooks/use-agentMemory-qry": "./hooks/use-agentMemory-qry.ts",
51
+ "./hooks/use-agentNote-qry": "./hooks/use-agentNote-qry.ts",
35
52
  "./hooks/use-inboundContact-qry": "./hooks/use-inboundContact-qry.ts",
36
53
  "./hooks/use-log-qry": "./hooks/use-log-qry.ts",
37
- "./hooks/use-agentDoc-qry": "./hooks/use-agentDoc-qry.ts",
38
54
  "./hooks/use-schedule-mtn": "./hooks/use-schedule-mtn.ts",
39
55
  "./hooks/use-schedule-qry": "./hooks/use-schedule-qry.ts",
40
- "./hooks/use-agentDoc-mtn": "./hooks/use-agentDoc-mtn.ts",
41
56
  "./hooks/use-organization-qry": "./hooks/use-organization-qry.ts",
42
57
  "./hooks/use-fieldDoc-qry": "./hooks/use-fieldDoc-qry.ts",
43
58
  "./hooks/use-fieldDoc-mtn": "./hooks/use-fieldDoc-mtn.ts",
@@ -54,9 +69,11 @@
54
69
  "./hooks/use-aiChat-mtn": "./hooks/use-aiChat-mtn.ts",
55
70
  "./hooks/use-auth-mtn": "./hooks/use-auth-mtn.ts",
56
71
  "./hooks/use-auth-qry": "./hooks/use-auth-qry.ts",
72
+ "./hooks/use-publicFormEmail-mtn": "./hooks/use-publicFormEmail-mtn.ts",
57
73
  "./hooks/use-integration-qry": "./hooks/use-integration-qry.ts",
58
74
  "./hooks/use-integration-mtn": "./hooks/use-integration-mtn.ts",
59
75
  "./hooks/use-agentMemory-mtn": "./hooks/use-agentMemory-mtn.ts",
76
+ "./hooks/use-agentNote-mtn": "./hooks/use-agentNote-mtn.ts",
60
77
  "./hooks/use-inboundContact-mtn": "./hooks/use-inboundContact-mtn.ts",
61
78
  "./hooks/use-log-mtn": "./hooks/use-log-mtn.ts",
62
79
  "./hooks/use-organization-mtn": "./hooks/use-organization-mtn.ts",
@@ -64,33 +81,41 @@
64
81
  "./mutations/campaign": "./gql/mutations/campaignMutations.ts",
65
82
  "./mutations/integration": "./gql/mutations/integrationMutations.ts",
66
83
  "./mutations/dataTable": "./gql/mutations/dataTableMutations.ts",
67
- "./mutations/schedule": "./gql/mutations/scheduleMutations.ts",
68
- "./mutations/agentDoc": "./gql/mutations/agentDocMutations.ts",
69
84
  "./mutations/fieldDoc": "./gql/mutations/fieldDocMutations.ts",
85
+ "./mutations/schedule": "./gql/mutations/scheduleMutations.ts",
86
+ "./mutations/agentNote": "./gql/mutations/agentNoteMutations.ts",
87
+ "./queries/agentNote": "./gql/queries/agentNoteQueries.ts",
70
88
  "./mutations/sheet": "./gql/mutations/sheetMutations.ts",
71
89
  "./mutations": "./gql/mutations/index.ts",
72
90
  "./queries": "./gql/queries/index.ts",
73
91
  "./cache": "./cache/index.ts",
74
92
  "./client": "./client/index.ts",
75
- "./drafts": "./drafts/index.ts",
76
- "./client/data-table-realtime": "./client/data-table-realtime.ts",
77
- "./client/data-table-realtime-subscriptions": "./client/data-table-realtime-subscriptions.ts",
78
- "./client/open-sheet": "./client/open-sheet.ts",
93
+ "./client/draft-persistence": "./client/draft-persistence.ts",
94
+ "./libs/ai-chat-submission-realtime": "./libs/ai-chat-submission-realtime.ts",
95
+ "./libs/ai-chat-outgoing": "./libs/ai-chat-outgoing.ts",
96
+ "./libs/orchestrator-realtime": "./libs/orchestrator-realtime.ts",
97
+ "./libs/open-sheet": "./libs/open-sheet.ts",
98
+ "./libs/sheet-command-batch": "./libs/sheet-command-batch.ts",
99
+ "./libs/sheet-view-realtime-router": "./libs/sheet-view-realtime-router.ts",
79
100
  "./loaders/campaign": "./loaders/campaign.ts",
101
+ "./loaders/emailPreference": "./loaders/emailPreference.ts",
80
102
  "./sse": "./sse.ts",
81
103
  "./types.d": "./types.d.ts",
82
- "./utils": "./utils.ts"
104
+ "./utils": "./utils.ts",
105
+ "./hooks/use-schedule-reactive": "./hooks/use-schedule-reactive.ts",
106
+ "./schedule.d": "./schedule.d.ts",
107
+ "./queries/schedule": "./gql/queries/scheduleQueries.ts"
83
108
  },
84
109
  "scripts": {
85
- "test": "deno test --no-check --allow-env --allow-read --unstable-sloppy-imports --config ./deno.test.json ./cache/index.test.ts ./client/request-no-store.test.ts ./client/request-managed-session.test.ts ./client/data-table-realtime.test.ts ./client/data-table-realtime-subscriptions.test.ts ./client/sse-ticket.test.ts"
110
+ "test": "deno test --no-check --allow-env --allow-read --unstable-sloppy-imports --config ./deno.test.json ./cache/ ./libs/request-cache-regression.test.ts ./libs/request-no-store.test.ts ./libs/request-managed-session.test.ts ./libs/fragment-recovery.test.ts ./libs/sse-ticket.test.ts ./loaders/campaign.test.ts ./hooks/index.helpers.test.ts ./hooks/use-agentNote-recovery.helpers.test.ts ./hooks/use-fieldDoc-qry.helpers.test.ts"
86
111
  },
87
112
  "dependencies": {
88
113
  "graphql": "^16.14.2",
89
114
  "graphql-tag": "^2.12.7"
90
115
  },
91
116
  "peerDependencies": {
92
- "@jsb188/app": "1.1.11",
93
- "@jsb188/mday": "1.1.11",
94
- "@jsb188/react": "1.1.11"
117
+ "@jsb188/app": "1.1.12",
118
+ "@jsb188/mday": "1.1.12",
119
+ "@jsb188/react": "1.1.12"
95
120
  }
96
121
  }