@jsb188/graphql 1.1.11 → 1.1.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (174) hide show
  1. package/LICENSE +21 -0
  2. package/audience.d.ts +205 -0
  3. package/cache/config.ts +65 -28
  4. package/cache/index.helpers.ts +96 -0
  5. package/cache/index.ts +364 -808
  6. package/cache/mounted-queries.ts +33 -0
  7. package/cache/optimistic-ui-runtime.ts +46 -0
  8. package/cache/optimistic-ui.ts +401 -0
  9. package/cache/persist.ts +107 -22
  10. package/cache/realtime-fence.ts +47 -0
  11. package/cache/realtime-live.ts +17 -0
  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} +13 -39
  16. package/client/index.ts +4 -2
  17. package/client/request.helpers.ts +14 -0
  18. package/client/request.ts +122 -232
  19. package/client/storage-asset.ts +58 -0
  20. package/gql/fragments/accountAuthFragments.ts +0 -4
  21. package/gql/fragments/agentMemoryFragments.ts +5 -1
  22. package/gql/fragments/agentNoteFragments.ts +156 -0
  23. package/gql/fragments/aiChatFragments.ts +35 -11
  24. package/gql/fragments/aiChatLinkFragments.ts +8 -0
  25. package/gql/fragments/audienceFragments.ts +76 -0
  26. package/gql/fragments/dataTableFragments.ts +48 -80
  27. package/gql/fragments/emailFragments.ts +49 -21
  28. package/gql/fragments/emailOutreachFragments.ts +281 -0
  29. package/gql/fragments/fieldDocFragments.ts +222 -40
  30. package/gql/fragments/inboundContactFragments.ts +2 -0
  31. package/gql/fragments/libraryFragments.ts +120 -0
  32. package/gql/fragments/logFragments.ts +93 -2
  33. package/gql/fragments/organizationFragments.ts +12 -0
  34. package/gql/fragments/qrCodeFragments.ts +29 -0
  35. package/gql/fragments/scheduleFragments.ts +574 -145
  36. package/gql/fragments/sheetFragments.ts +86 -424
  37. package/gql/fragments/storageFragments.ts +25 -1
  38. package/gql/fragments/workWaitFragments.ts +13 -0
  39. package/gql/fragments/workflowFragments.ts +32 -4
  40. package/gql/mutations/agentMemoryMutations.ts +32 -0
  41. package/gql/mutations/agentNoteMutations.ts +64 -0
  42. package/gql/mutations/aiChatLinkMutations.ts +13 -0
  43. package/gql/mutations/aiChatMutations.ts +34 -4
  44. package/gql/mutations/audienceMutations.ts +58 -0
  45. package/gql/mutations/authMutations.ts +24 -28
  46. package/gql/mutations/billingMutations.ts +24 -0
  47. package/gql/mutations/contactMutations.ts +23 -0
  48. package/gql/mutations/dataTableMutations.ts +18 -75
  49. package/gql/mutations/emailMutations.ts +22 -0
  50. package/gql/mutations/emailOutreachMutations.ts +139 -0
  51. package/gql/mutations/fieldDocMutations.ts +162 -13
  52. package/gql/mutations/index.ts +10 -5
  53. package/gql/mutations/organizationMutations.ts +6 -0
  54. package/gql/mutations/qrCodeMutations.ts +20 -0
  55. package/gql/mutations/scheduleMutations.ts +389 -417
  56. package/gql/mutations/sheetMutations.ts +62 -118
  57. package/gql/mutations/storageMutations.ts +1 -1
  58. package/gql/mutations/workflowMutations.ts +94 -0
  59. package/gql/queries/agentMemoryQueries.ts +12 -2
  60. package/gql/queries/agentNoteQueries.ts +86 -0
  61. package/gql/queries/aiChatQueries.ts +63 -12
  62. package/gql/queries/audienceQueries.ts +104 -0
  63. package/gql/queries/authQueries.ts +20 -4
  64. package/gql/queries/billingQueries.ts +114 -9
  65. package/gql/queries/dataTableQueries.ts +43 -75
  66. package/gql/queries/emailOutreachQueries.ts +282 -0
  67. package/gql/queries/emailQueries.ts +48 -64
  68. package/gql/queries/emailReplyReportQueries.ts +127 -0
  69. package/gql/queries/fieldDocQueries.ts +128 -98
  70. package/gql/queries/inboundContactQueries.ts +15 -4
  71. package/gql/queries/index.ts +5 -3
  72. package/gql/queries/libraryQueries.ts +112 -0
  73. package/gql/queries/logQueries.ts +86 -12
  74. package/gql/queries/organizationQueries.ts +44 -12
  75. package/gql/queries/qrCodeQueries.ts +27 -0
  76. package/gql/queries/scheduleQueries.ts +401 -278
  77. package/gql/queries/sheetQueries.ts +94 -165
  78. package/gql/queries/storageQueries.ts +11 -4
  79. package/gql/queries/workflowQueries.ts +61 -12
  80. package/gql/reactivity.ts +98 -0
  81. package/gql/recordReads.ts +171 -0
  82. package/hooks/index.helpers.ts +52 -0
  83. package/hooks/index.ts +920 -715
  84. package/hooks/use-agentMemory-mtn.ts +29 -31
  85. package/hooks/use-agentMemory-qry.ts +15 -3
  86. package/hooks/use-agentNote-mtn.ts +89 -0
  87. package/hooks/use-agentNote-qry.ts +162 -0
  88. package/hooks/use-agentNote-recovery.helpers.ts +58 -0
  89. package/hooks/use-agentNote-recovery.ts +57 -0
  90. package/hooks/use-aiChat-mtn.ts +104 -115
  91. package/hooks/use-aiChat-qry.helpers.ts +124 -0
  92. package/hooks/use-aiChat-qry.ts +254 -387
  93. package/hooks/use-aiChat-stream-mtn.ts +14 -0
  94. package/hooks/use-audience-mtn.ts +170 -0
  95. package/hooks/use-audience-qry.helpers.ts +39 -0
  96. package/hooks/use-audience-qry.ts +245 -0
  97. package/hooks/use-auth-mtn.ts +30 -1
  98. package/hooks/use-billing-mtn.ts +31 -0
  99. package/hooks/use-billing-qry.ts +76 -0
  100. package/hooks/use-dataTable-mtn.ts +23 -115
  101. package/hooks/use-dataTable-qry.ts +69 -914
  102. package/hooks/use-email-mtn.ts +26 -0
  103. package/hooks/use-email-qry.helpers.ts +37 -0
  104. package/hooks/use-email-qry.ts +44 -174
  105. package/hooks/use-emailOutreach-mtn.ts +211 -0
  106. package/hooks/use-emailOutreach-qry.helpers.ts +25 -0
  107. package/hooks/use-emailOutreach-qry.ts +367 -0
  108. package/hooks/use-emailOutreachReplyReport-qry.ts +46 -0
  109. package/hooks/use-fieldDoc-mtn.ts +244 -32
  110. package/hooks/use-fieldDoc-qry.helpers.ts +49 -0
  111. package/hooks/use-fieldDoc-qry.ts +134 -102
  112. package/hooks/use-inboundContact-qry.ts +7 -9
  113. package/hooks/use-library-qry.ts +233 -0
  114. package/hooks/use-log-mtn.ts +25 -12
  115. package/hooks/use-log-qry.ts +99 -46
  116. package/hooks/use-organization-qry.ts +16 -60
  117. package/hooks/use-qrCode-mtn.ts +40 -0
  118. package/hooks/use-qrCode-qry.ts +78 -0
  119. package/hooks/use-schedule-mtn.ts +231 -348
  120. package/hooks/use-schedule-qry.ts +208 -139
  121. package/hooks/use-schedule-reactive.ts +218 -0
  122. package/hooks/use-sheet-mtn.ts +91 -199
  123. package/hooks/use-sheet-qry.ts +88 -237
  124. package/hooks/use-storage-qry.ts +84 -61
  125. package/hooks/use-workflow-mtn.ts +84 -23
  126. package/hooks/use-workflow-qry.ts +60 -61
  127. package/libs/ai-chat-link-events.ts +78 -0
  128. package/libs/ai-chat-outgoing.helpers.ts +153 -0
  129. package/libs/ai-chat-outgoing.ts +11 -0
  130. package/libs/ai-chat-outgoing.types.ts +25 -0
  131. package/libs/ai-chat-run-realtime.ts +20 -0
  132. package/libs/ai-chat-submission-realtime.ts +150 -0
  133. package/libs/data-changes.helpers.ts +161 -0
  134. package/libs/data-changes.ts +382 -0
  135. package/libs/fragment-realtime-sequence.ts +55 -0
  136. package/libs/open-sheet.ts +138 -0
  137. package/libs/record-read.ts +327 -0
  138. package/libs/sheet-command-batch.ts +45 -0
  139. package/libs/sheet-realtime-packet.ts +53 -0
  140. package/libs/sheet-view-realtime-router.ts +99 -0
  141. package/loaders/emailPreference.ts +69 -0
  142. package/loaders/rest.ts +12 -0
  143. package/package.json +77 -25
  144. package/schedule.d.ts +1183 -0
  145. package/sse.helpers.ts +19 -0
  146. package/sse.ts +26 -115
  147. package/types.d.ts +48 -25
  148. package/cache/index.test.ts +0 -881
  149. package/client/data-table-realtime-subscriptions.test.ts +0 -740
  150. package/client/data-table-realtime-subscriptions.ts +0 -955
  151. package/client/data-table-realtime.test.ts +0 -792
  152. package/client/data-table-realtime.ts +0 -1218
  153. package/client/fragment-realtime-sequence.ts +0 -52
  154. package/client/open-sheet.ts +0 -137
  155. package/client/request-managed-session.test.ts +0 -574
  156. package/client/request-no-store.test.ts +0 -157
  157. package/client/sse-ticket.test.ts +0 -26
  158. package/deno.lock +0 -170
  159. package/deno.test.json +0 -10
  160. package/gql/fragments/agentDocFragments.ts +0 -46
  161. package/gql/fragments/billingFragments.ts +0 -14
  162. package/gql/fragments/campaignFragments.ts +0 -277
  163. package/gql/mutations/agentDocMutations.ts +0 -177
  164. package/gql/mutations/campaignMutations.ts +0 -215
  165. package/gql/queries/agentDocQueries.ts +0 -120
  166. package/gql/queries/appQueries.ts +0 -14
  167. package/gql/queries/campaignQueries.ts +0 -127
  168. package/hooks/use-agentDoc-mtn.ts +0 -285
  169. package/hooks/use-agentDoc-qry.ts +0 -208
  170. package/hooks/use-app-qry.ts +0 -22
  171. package/hooks/use-campaign-mtn.ts +0 -377
  172. package/hooks/use-campaign-qry.ts +0 -257
  173. package/loaders/campaign.ts +0 -137
  174. package/tsconfig.json +0 -13
@@ -0,0 +1,99 @@
1
+ import type { SheetViewGQL } from '@jsb188/mday/types/sheet.d.ts';
2
+
3
+ /*
4
+ * Realtime SheetView routing (DESIGN §0 D13, §1.4): websocket
5
+ * `$sheetViewFragment` packets bypass the GraphQL fragment cache and go
6
+ * straight to the listeners of their sheet (the workbook sync's tab stores),
7
+ * which dedupe by (tab, toSeq) and reassemble chunks themselves.
8
+ */
9
+
10
+ export type SheetViewRealtimeListener = (packet: SheetViewGQL) => void;
11
+
12
+ /* One registration; the same function registered twice is two registrations. */
13
+ type SheetViewRealtimeRegistration = {
14
+ listener: SheetViewRealtimeListener;
15
+ };
16
+
17
+ const SHEET_VIEW_REALTIME_REGISTRATIONS = new Map<string, Set<SheetViewRealtimeRegistration>>();
18
+
19
+ /*
20
+ * Return whether one packet id is usable: a non-empty string, a finite number
21
+ * or a bigint.
22
+ */
23
+ function isSheetViewRealtimeId(value: unknown) {
24
+ return (
25
+ (typeof value === 'string' && value !== '') || (typeof value === 'number' && Number.isFinite(value)) || typeof value === 'bigint'
26
+ );
27
+ }
28
+
29
+ /*
30
+ * Return whether one websocket payload looks like a SheetView packet: an
31
+ * object carrying both its sheetId and its sheetTabId.
32
+ */
33
+ function isSheetViewRealtimePacket(packet: unknown): packet is SheetViewGQL {
34
+ if (!packet || typeof packet !== 'object' || Array.isArray(packet)) {
35
+ return false;
36
+ }
37
+
38
+ const { sheetId, sheetTabId } = packet as Record<string, unknown>;
39
+ return isSheetViewRealtimeId(sheetId) && isSheetViewRealtimeId(sheetTabId);
40
+ }
41
+
42
+ /*
43
+ * Register a listener for one sheet's packets. Several listeners may coexist,
44
+ * for the same sheet or others; returns the (idempotent) unregister function.
45
+ */
46
+ export function registerSheetViewRealtimeListener(sheetId: string, listener: SheetViewRealtimeListener): () => void {
47
+ const key = String(sheetId);
48
+ const registration: SheetViewRealtimeRegistration = { listener };
49
+ let registrations = SHEET_VIEW_REALTIME_REGISTRATIONS.get(key);
50
+ if (!registrations) {
51
+ registrations = new Set();
52
+ SHEET_VIEW_REALTIME_REGISTRATIONS.set(key, registrations);
53
+ }
54
+ registrations.add(registration);
55
+
56
+ return () => {
57
+ const current = SHEET_VIEW_REALTIME_REGISTRATIONS.get(key);
58
+ if (!current?.delete(registration)) {
59
+ return;
60
+ }
61
+ if (!current.size) {
62
+ SHEET_VIEW_REALTIME_REGISTRATIONS.delete(key);
63
+ }
64
+ };
65
+ }
66
+
67
+ /*
68
+ * Dispatch one websocket `$sheetViewFragment` payload to the listeners of
69
+ * String(packet.sheetId). Returns true when the payload looks like a
70
+ * SheetView (it is then consumed even when nobody listens) and false
71
+ * otherwise. A throwing listener is logged and never reaches the socket
72
+ * handler or the other listeners.
73
+ */
74
+ export function routeSheetViewRealtimePacket(packet: unknown): boolean {
75
+ if (!isSheetViewRealtimePacket(packet)) {
76
+ return false;
77
+ }
78
+
79
+ const sheetId = String(packet.sheetId);
80
+ const registrations = SHEET_VIEW_REALTIME_REGISTRATIONS.get(sheetId);
81
+ if (!registrations) {
82
+ return true;
83
+ }
84
+
85
+ // Registrations added during this dispatch wait for the next packet, and
86
+ // ones removed by an earlier listener are skipped.
87
+ for (const registration of [...registrations]) {
88
+ if (!registrations.has(registration)) {
89
+ continue;
90
+ }
91
+ try {
92
+ registration.listener(packet);
93
+ } catch (error) {
94
+ console.error(`Sheet realtime listener failed for sheet ${sheetId}; the packet was not applied by it.`, error);
95
+ }
96
+ }
97
+
98
+ return true;
99
+ }
@@ -0,0 +1,69 @@
1
+ import { getENVVariable } from '@jsb188/app';
2
+ import { getRESTServer } from './rest.ts';
3
+
4
+ export interface EmailOutreachPreferenceObj {
5
+ email: string;
6
+ organizationName: string;
7
+ unsubscribed: boolean;
8
+ }
9
+
10
+ export type EmailOutreachPreferenceAction = 'UNSUBSCRIBE' | 'ONE_CLICK_UNSUBSCRIBE' | 'RESUBSCRIBE';
11
+
12
+ /*
13
+ * Call the public email-preference REST API for one unsubscribe capability.
14
+ * The token alone names the mailbox and organization, so no account session
15
+ * is ever forwarded. A missing or invalid token surfaces as a 404 Response.
16
+ */
17
+ async function requestEmailOutreachPreference(
18
+ token: string,
19
+ body?: { action: EmailOutreachPreferenceAction },
20
+ ): Promise<EmailOutreachPreferenceObj> {
21
+ const restServer = getRESTServer();
22
+ if (!restServer || !token) {
23
+ throw new Response(null, { status: restServer ? 404 : 500 });
24
+ }
25
+
26
+ let response: Response;
27
+ try {
28
+ response = await fetch(`${restServer}/api/email-preferences/${encodeURIComponent(token)}`, {
29
+ method: body ? 'POST' : 'GET',
30
+ cache: 'no-store',
31
+ headers: {
32
+ 'x-api-key': String(getENVVariable('GQL_API_KEY') || ''),
33
+ ...(body ? { 'content-type': 'application/json' } : {}),
34
+ },
35
+ body: body ? JSON.stringify(body) : undefined,
36
+ });
37
+ } catch {
38
+ throw new Response(null, { status: 500 });
39
+ }
40
+
41
+ if (!response.ok) {
42
+ throw new Response(null, {
43
+ status: response.status === 404 ? 404 : 500,
44
+ });
45
+ }
46
+
47
+ const json = await response.json().catch(() => null);
48
+ if (!json?.data) {
49
+ throw new Response(null, { status: 500 });
50
+ }
51
+
52
+ return json.data as EmailOutreachPreferenceObj;
53
+ }
54
+
55
+ /**
56
+ * Read which mailbox and organization one unsubscribe link controls, and
57
+ * whether that mailbox is currently unsubscribed. Never changes state.
58
+ */
59
+ export function fetchEmailOutreachPreference(token: string) {
60
+ return requestEmailOutreachPreference(token);
61
+ }
62
+
63
+ /**
64
+ * Unsubscribe or resubscribe the mailbox named by one unsubscribe link and
65
+ * return its fresh state.
66
+ */
67
+ export function updateEmailOutreachPreference(token: string, action: EmailOutreachPreferenceAction) {
68
+ return requestEmailOutreachPreference(token, { action });
69
+ }
@@ -0,0 +1,12 @@
1
+ import { getENVVariable } from '@jsb188/app';
2
+
3
+ /*
4
+ * Return the REST server origin. Public route loaders use REST because React
5
+ * Router loads them for anonymous visitors outside the GraphQL client.
6
+ */
7
+ export function getRESTServer() {
8
+ return String(getENVVariable('GQL_SERVER') || '').replace(
9
+ /\/graphql\/?$/,
10
+ '',
11
+ );
12
+ }
package/package.json CHANGED
@@ -1,48 +1,63 @@
1
1
  {
2
2
  "name": "@jsb188/graphql",
3
- "version": "1.1.11",
3
+ "version": "1.1.13",
4
4
  "description": "GraphQL client for react, using recoil",
5
- "license": "ISC",
5
+ "license": "MIT",
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",
30
+ "./fragments/emailOutreach": "./gql/fragments/emailOutreachFragments.ts",
16
31
  "./fragments/inboundContact": "./gql/fragments/inboundContactFragments.ts",
17
32
  "./fragments/integration": "./gql/fragments/integrationFragments.ts",
18
33
  "./fragments/log": "./gql/fragments/logFragments.ts",
19
34
  "./fragments/schedule": "./gql/fragments/scheduleFragments.ts",
20
- "./fragments/agentDoc": "./gql/fragments/agentDocFragments.ts",
35
+ "./fragments/agentNote": "./gql/fragments/agentNoteFragments.ts",
21
36
  "./fragments/organization": "./gql/fragments/organizationFragments.ts",
22
37
  "./fragments/other": "./gql/fragments/otherFragments.ts",
23
38
  "./fragments/fieldDoc": "./gql/fragments/fieldDocFragments.ts",
24
- "./fragments/campaign": "./gql/fragments/campaignFragments.ts",
25
39
  "./fragments/dataTable": "./gql/fragments/dataTableFragments.ts",
26
40
  "./fragments/sheet": "./gql/fragments/sheetFragments.ts",
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",
32
- "./hooks/use-app-qry": "./hooks/use-app-qry.ts",
45
+ "./hooks/use-aiChat-qry.helpers": "./hooks/use-aiChat-qry.helpers.ts",
46
+ "./hooks/use-emailOutreachReplyReport-qry": "./hooks/use-emailOutreachReplyReport-qry.ts",
47
+ "./queries/emailReplyReport": "./gql/queries/emailReplyReportQueries.ts",
33
48
  "./hooks/use-email-qry": "./hooks/use-email-qry.ts",
49
+ "./hooks/use-emailOutreach-qry": "./hooks/use-emailOutreach-qry.ts",
50
+ "./hooks/use-emailOutreach-qry.helpers": "./hooks/use-emailOutreach-qry.helpers.ts",
51
+ "./queries/emailOutreach": "./gql/queries/emailOutreachQueries.ts",
34
52
  "./hooks/use-agentMemory-qry": "./hooks/use-agentMemory-qry.ts",
53
+ "./hooks/use-agentNote-qry": "./hooks/use-agentNote-qry.ts",
35
54
  "./hooks/use-inboundContact-qry": "./hooks/use-inboundContact-qry.ts",
36
55
  "./hooks/use-log-qry": "./hooks/use-log-qry.ts",
37
- "./hooks/use-agentDoc-qry": "./hooks/use-agentDoc-qry.ts",
38
56
  "./hooks/use-schedule-mtn": "./hooks/use-schedule-mtn.ts",
39
57
  "./hooks/use-schedule-qry": "./hooks/use-schedule-qry.ts",
40
- "./hooks/use-agentDoc-mtn": "./hooks/use-agentDoc-mtn.ts",
41
58
  "./hooks/use-organization-qry": "./hooks/use-organization-qry.ts",
42
59
  "./hooks/use-fieldDoc-qry": "./hooks/use-fieldDoc-qry.ts",
43
60
  "./hooks/use-fieldDoc-mtn": "./hooks/use-fieldDoc-mtn.ts",
44
- "./hooks/use-campaign-qry": "./hooks/use-campaign-qry.ts",
45
- "./hooks/use-campaign-mtn": "./hooks/use-campaign-mtn.ts",
46
61
  "./hooks/use-dataTable-mtn": "./hooks/use-dataTable-mtn.ts",
47
62
  "./hooks/use-dataTable-qry": "./hooks/use-dataTable-qry.ts",
48
63
  "./hooks/use-sheet-mtn": "./hooks/use-sheet-mtn.ts",
@@ -57,40 +72,77 @@
57
72
  "./hooks/use-integration-qry": "./hooks/use-integration-qry.ts",
58
73
  "./hooks/use-integration-mtn": "./hooks/use-integration-mtn.ts",
59
74
  "./hooks/use-agentMemory-mtn": "./hooks/use-agentMemory-mtn.ts",
75
+ "./hooks/use-agentNote-mtn": "./hooks/use-agentNote-mtn.ts",
76
+ "./hooks/use-email-mtn": "./hooks/use-email-mtn.ts",
77
+ "./hooks/use-emailOutreach-mtn": "./hooks/use-emailOutreach-mtn.ts",
78
+ "./mutations/emailOutreach": "./gql/mutations/emailOutreachMutations.ts",
60
79
  "./hooks/use-inboundContact-mtn": "./hooks/use-inboundContact-mtn.ts",
61
80
  "./hooks/use-log-mtn": "./hooks/use-log-mtn.ts",
62
81
  "./hooks/use-organization-mtn": "./hooks/use-organization-mtn.ts",
63
82
  "./hooks/use-storage-mtn": "./hooks/use-storage-mtn.ts",
64
- "./mutations/campaign": "./gql/mutations/campaignMutations.ts",
65
83
  "./mutations/integration": "./gql/mutations/integrationMutations.ts",
66
84
  "./mutations/dataTable": "./gql/mutations/dataTableMutations.ts",
67
- "./mutations/schedule": "./gql/mutations/scheduleMutations.ts",
68
- "./mutations/agentDoc": "./gql/mutations/agentDocMutations.ts",
69
85
  "./mutations/fieldDoc": "./gql/mutations/fieldDocMutations.ts",
86
+ "./mutations/schedule": "./gql/mutations/scheduleMutations.ts",
87
+ "./mutations/agentNote": "./gql/mutations/agentNoteMutations.ts",
88
+ "./queries/agentNote": "./gql/queries/agentNoteQueries.ts",
70
89
  "./mutations/sheet": "./gql/mutations/sheetMutations.ts",
71
90
  "./mutations": "./gql/mutations/index.ts",
72
91
  "./queries": "./gql/queries/index.ts",
73
92
  "./cache": "./cache/index.ts",
93
+ "./cache/realtime-fence": "./cache/realtime-fence.ts",
94
+ "./cache/realtime-live": "./cache/realtime-live.ts",
74
95
  "./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",
79
- "./loaders/campaign": "./loaders/campaign.ts",
96
+ "./client/draft-persistence": "./client/draft-persistence.ts",
97
+ "./libs/ai-chat-submission-realtime": "./libs/ai-chat-submission-realtime.ts",
98
+ "./libs/data-changes": "./libs/data-changes.ts",
99
+ "./libs/ai-chat-outgoing": "./libs/ai-chat-outgoing.ts",
100
+ "./libs/ai-chat-link-events": "./libs/ai-chat-link-events.ts",
101
+ "./libs/open-sheet": "./libs/open-sheet.ts",
102
+ "./libs/sheet-command-batch": "./libs/sheet-command-batch.ts",
103
+ "./libs/sheet-realtime-packet": "./libs/sheet-realtime-packet.ts",
104
+ "./libs/sheet-view-realtime-router": "./libs/sheet-view-realtime-router.ts",
105
+ "./loaders/emailPreference": "./loaders/emailPreference.ts",
80
106
  "./sse": "./sse.ts",
81
107
  "./types.d": "./types.d.ts",
82
- "./utils": "./utils.ts"
108
+ "./utils": "./utils.ts",
109
+ "./hooks/use-schedule-reactive": "./hooks/use-schedule-reactive.ts",
110
+ "./schedule.d": "./schedule.d.ts",
111
+ "./queries/schedule": "./gql/queries/scheduleQueries.ts",
112
+ "./fragments/library": "./gql/fragments/libraryFragments.ts",
113
+ "./queries/library": "./gql/queries/libraryQueries.ts",
114
+ "./hooks/use-library-qry": "./hooks/use-library-qry.ts"
83
115
  },
84
116
  "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"
117
+ "test": "bun test ./cache/ ./libs/request-cache-regression.test.ts ./libs/request-no-store.test.ts ./libs/request-managed-session.test.ts ./libs/record-read.test.ts ./libs/data-changes.helpers.test.ts ./libs/data-changes.test.ts ./libs/sse-ticket.test.ts ./hooks/index.helpers.test.ts ./hooks/use-agentNote-recovery.helpers.test.ts ./hooks/use-fieldDoc-qry.helpers.test.ts"
86
118
  },
87
119
  "dependencies": {
88
120
  "graphql": "^16.14.2",
89
121
  "graphql-tag": "^2.12.7"
90
122
  },
91
123
  "peerDependencies": {
92
- "@jsb188/app": "1.1.11",
93
- "@jsb188/mday": "1.1.11",
94
- "@jsb188/react": "1.1.11"
95
- }
124
+ "@jsb188/app": "1.1.13",
125
+ "@jsb188/mday": "1.1.13",
126
+ "@jsb188/react": "1.1.13",
127
+ "@jsb188/schedule": "1.1.13"
128
+ },
129
+ "files": [
130
+ "audience.d.ts",
131
+ "cache/**/*.{ts,tsx,css,svg}",
132
+ "client/**/*.{ts,tsx,css,svg}",
133
+ "gql/**/*.{ts,tsx,css,svg}",
134
+ "hooks/**/*.{ts,tsx,css,svg}",
135
+ "libs/**/*.{ts,tsx,css,svg}",
136
+ "loaders/**/*.{ts,tsx,css,svg}",
137
+ "schedule.d.ts",
138
+ "sse.helpers.ts",
139
+ "sse.ts",
140
+ "types.d.ts",
141
+ "utils.ts",
142
+ "!**/*.test.*",
143
+ "!**/*.spec.*",
144
+ "!**/tests/**",
145
+ "!**/*.md",
146
+ "!**/.DS_Store"
147
+ ]
96
148
  }