@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,104 @@
1
+ import { gql } from 'graphql-tag';
2
+ import {
3
+ audienceEmailAddressFragment,
4
+ audienceEventFragment,
5
+ audienceListFragment,
6
+ audienceListMemberFragment,
7
+ } from '../fragments/audienceFragments.ts';
8
+ import { live } from '../reactivity.ts';
9
+
10
+ export const audienceListsQry = live(
11
+ gql`
12
+ query audienceLists(
13
+ $organizationId: GenericID!
14
+ $filter: AudienceListsFilter
15
+ $sort: AudienceListsSort
16
+ $cursor: Cursor
17
+ $after: Boolean!
18
+ $limit: Int!
19
+ ) {
20
+ audienceLists(organizationId: $organizationId, filter: $filter, sort: $sort, cursor: $cursor, after: $after, limit: $limit) {
21
+ ...audienceListFragment
22
+ count
23
+ }
24
+ }
25
+ ${audienceListFragment}
26
+ `,
27
+ { refresh: 'auto', lists: ['audienceList'], derived: ['audienceListMember'] },
28
+ );
29
+
30
+ export const audienceListQry = live(
31
+ gql`
32
+ query audienceList($organizationId: GenericID!, $audienceListId: GenericID!) {
33
+ audienceList(organizationId: $organizationId, audienceListId: $audienceListId) {
34
+ ...audienceListFragment
35
+ }
36
+ }
37
+ ${audienceListFragment}
38
+ `,
39
+ { refresh: 'auto' },
40
+ );
41
+
42
+ export const audienceListMembersQry = live(
43
+ gql`
44
+ query audienceListMembers(
45
+ $organizationId: GenericID!
46
+ $filter: AudienceListMembersFilter!
47
+ $sort: AudienceListMembersSort
48
+ $cursor: Cursor
49
+ $after: Boolean!
50
+ $limit: Int!
51
+ ) {
52
+ audienceListMembers(organizationId: $organizationId, filter: $filter, sort: $sort, cursor: $cursor, after: $after, limit: $limit) {
53
+ ...audienceListMemberFragment
54
+ address {
55
+ ...audienceEmailAddressFragment
56
+ }
57
+ }
58
+ }
59
+ ${audienceListMemberFragment}
60
+ ${audienceEmailAddressFragment}
61
+ `,
62
+ { refresh: 'auto', lists: ['audienceListMember'], scope: { audienceListId: 'filter.audienceListId' } },
63
+ );
64
+
65
+ export const audienceListOverviewQry = live(
66
+ gql`
67
+ query audienceListOverview($organizationId: GenericID!, $audienceListId: GenericID!) {
68
+ audienceListOverview(organizationId: $organizationId, audienceListId: $audienceListId) {
69
+ total
70
+ subscribed
71
+ unsubscribed
72
+ nonSubscribed
73
+ pending
74
+ cleaned
75
+ eligible
76
+ }
77
+ }
78
+ `,
79
+ { refresh: 'auto', derived: ['audienceList', 'audienceListMember', 'audienceEmailAddress'] },
80
+ );
81
+
82
+ export const audienceEmailAddressQry = live(
83
+ gql`
84
+ query audienceEmailAddress($organizationId: GenericID!, $emailAddressId: GenericID!) {
85
+ audienceEmailAddress(organizationId: $organizationId, emailAddressId: $emailAddressId) {
86
+ ...audienceEmailAddressFragment
87
+ }
88
+ }
89
+ ${audienceEmailAddressFragment}
90
+ `,
91
+ { refresh: 'auto' },
92
+ );
93
+
94
+ export const audienceAddressHistoryQry = live(
95
+ gql`
96
+ query audienceAddressHistory($organizationId: GenericID!, $emailAddressId: GenericID!, $afterId: GenericID, $limit: Int) {
97
+ audienceAddressHistory(organizationId: $organizationId, emailAddressId: $emailAddressId, afterId: $afterId, limit: $limit) {
98
+ ...audienceEventFragment
99
+ }
100
+ }
101
+ ${audienceEventFragment}
102
+ `,
103
+ { refresh: 'auto', derived: ['audienceList', 'audienceListMember', 'audienceEmailAddress'] },
104
+ );
@@ -1,5 +1,6 @@
1
1
  import { gql } from 'graphql-tag';
2
2
  import { accountSessionFragment } from '../fragments/accountSessionFragments.ts';
3
+ import { live } from '../reactivity.ts';
3
4
 
4
5
  const ORGANIZATION_AUTHORIZATION_FIELDS = `
5
6
  organizationAuthorizations {
@@ -14,7 +15,17 @@ const ORGANIZATION_AUTHORIZATION_FIELDS = `
14
15
  }
15
16
  `;
16
17
 
17
- export const myAccountSessionsQry = gql`
18
+ export const agentLoginAvailableQry = live(
19
+ gql`
20
+ query agentLoginAvailable {
21
+ agentLoginAvailable
22
+ }
23
+ `,
24
+ { refresh: 'auto' },
25
+ );
26
+
27
+ export const myAccountSessionsQry = live(
28
+ gql`
18
29
  query myAccountSessions {
19
30
  myAccountSessions {
20
31
  ...accountSessionFragment
@@ -22,9 +33,12 @@ query myAccountSessions {
22
33
  }
23
34
  }
24
35
  ${accountSessionFragment}
25
- `;
36
+ `,
37
+ { refresh: 'auto', lists: ['accountSession'] },
38
+ );
26
39
 
27
- export const organizationMemberSessionsQry = gql`
40
+ export const organizationMemberSessionsQry = live(
41
+ gql`
28
42
  query organizationMemberSessions (
29
43
  $organizationId: GenericID!
30
44
  $accountId: GenericID!
@@ -38,4 +52,6 @@ query organizationMemberSessions (
38
52
  }
39
53
  }
40
54
  ${accountSessionFragment}
41
- `;
55
+ `,
56
+ { refresh: 'auto', lists: ['accountSession'] },
57
+ );
@@ -1,7 +1,8 @@
1
1
  import { gql } from 'graphql-tag';
2
- import { platformProductFragment } from '../fragments/billingFragments.ts';
2
+ import { live } from '../reactivity.ts';
3
3
 
4
- export const organizationUsageQry = gql`
4
+ export const organizationUsageQry = live(
5
+ gql`
5
6
  query organizationUsage(
6
7
  $organizationId: GenericID!
7
8
  $occurredAtFrom: DateTime!
@@ -22,14 +23,118 @@ query organizationUsage(
22
23
  eventCount
23
24
  }
24
25
  }
25
- `;
26
+ `,
27
+ { refresh: 'auto' },
28
+ );
26
29
 
27
- export const platformProductsQry = gql`
28
- query platformProducts {
29
- platformProducts {
30
- ...platformProductFragment
30
+ export const billingPlansQry = live(
31
+ gql`
32
+ query billingPlans {
33
+ billingPlans {
34
+ planKey
35
+ name
36
+ contactSales
37
+
38
+ prices {
39
+ priceId
40
+ lookupKey
41
+ planKey
42
+ interval
43
+ unitAmount
44
+ currency
45
+ }
46
+ }
47
+ }
48
+ `,
49
+ { refresh: 'auto' },
50
+ );
51
+
52
+ export const billingClientConfigQry = live(
53
+ gql`
54
+ query billingClientConfig {
55
+ billingClientConfig {
56
+ publishableKey
57
+ livemode
58
+ paymentMethodTypes
59
+ }
60
+ }
61
+ `,
62
+ { refresh: 'auto' },
63
+ );
64
+
65
+ export const organizationBillingQry = live(
66
+ gql`
67
+ query organizationBilling (
68
+ $organizationId: GenericID!
69
+ ) {
70
+ organizationBilling (
71
+ organizationId: $organizationId
72
+ ) {
73
+ organizationId
74
+
75
+ access {
76
+ enforcement
77
+ planKey
78
+ subscriptionStatus
79
+ paidThroughAt
80
+ accessEndsAt
81
+ accessLockedAt
82
+ graceDays
83
+ }
84
+
85
+ subscription {
86
+ id
87
+ status
88
+ planKey
89
+ interval
90
+ currentPeriodEnd
91
+ cancelAtPeriodEnd
92
+ collectionMethod
93
+ unitAmount
94
+ currency
95
+ }
96
+
97
+ invoices {
98
+ id
99
+ number
100
+ status
101
+ total
102
+ amountDue
103
+ amountPaid
104
+ currency
105
+ hostedInvoiceUrl
106
+ invoicePdf
107
+ periodStart
108
+ periodEnd
109
+ paidAt
110
+ dueDate
111
+ createdAt
112
+ }
31
113
  }
32
114
  }
115
+ `,
116
+ { refresh: 'auto', derived: ['organizationBilling'] },
117
+ );
33
118
 
34
- ${platformProductFragment}
35
- `;
119
+ export const billingPurchasePreviewQry = live(
120
+ gql`
121
+ query billingPurchasePreview (
122
+ $organizationId: GenericID!
123
+ $priceId: String!
124
+ $address: BillingAddressInput!
125
+ ) {
126
+ billingPurchasePreview (
127
+ organizationId: $organizationId
128
+ priceId: $priceId
129
+ address: $address
130
+ ) {
131
+ subtotal
132
+ tax
133
+ total
134
+ currency
135
+ taxStatus
136
+ }
137
+ }
138
+ `,
139
+ { refresh: 'auto' },
140
+ );
@@ -1,12 +1,9 @@
1
1
  import { gql } from 'graphql-tag';
2
- import {
3
- dataTableCellFragment,
4
- dataTableFragment,
5
- dataTableMetadataFragment,
6
- dataTableRowFragment,
7
- } from '../fragments/dataTableFragments.ts';
2
+ import { dataTableFragment, dataTableRowFragment, dataTableRunFragment } from '../fragments/dataTableFragments.ts';
3
+ import { live } from '../reactivity.ts';
8
4
 
9
- export const dataTablesQry = gql`
5
+ export const dataTablesQry = live(
6
+ gql`
10
7
  query dataTables (
11
8
  $organizationId: GenericID!
12
9
  $filter: DataTablesFilter
@@ -24,14 +21,16 @@ query dataTables (
24
21
  limit: $limit
25
22
  ) {
26
23
  ...dataTableFragment
27
- realtimeToken
28
24
  }
29
25
  }
30
26
 
31
27
  ${dataTableFragment}
32
- `;
28
+ `,
29
+ { refresh: 'notice', lists: ['dataTable'] },
30
+ );
33
31
 
34
- export const dataTableQry = gql`
32
+ export const dataTableQry = live(
33
+ gql`
35
34
  query dataTable (
36
35
  $organizationId: GenericID!
37
36
  $dataTableId: GenericID!
@@ -41,94 +40,63 @@ query dataTable (
41
40
  dataTableId: $dataTableId
42
41
  ) {
43
42
  ...dataTableFragment
44
- realtimeToken
45
43
  }
46
44
  }
47
45
 
48
46
  ${dataTableFragment}
49
- `;
47
+ `,
48
+ { refresh: 'notice' },
49
+ );
50
50
 
51
- export const dataTableMetadataQry = gql`
52
- query dataTableMetadata (
53
- $dataTableId: GenericID!
54
- ) {
55
- dataTableMetadata (
56
- dataTableId: $dataTableId
57
- ) {
58
- ...dataTableMetadataFragment
59
- }
60
- }
61
-
62
- ${dataTableMetadataFragment}
63
- `;
64
-
65
- export const dataTableRowsSnapshotQry = gql`
66
- query dataTableRowsSnapshot (
67
- $dataTableId: GenericID!
51
+ // One keyset page of a table's live rows. A row the page does not hold (an
52
+ // `added` or `touched` dataTableRow change) shows the declared notice.
53
+ export const dataTableRowsQry = live(
54
+ gql`
55
+ query dataTableRows (
68
56
  $organizationId: GenericID!
69
- $cursor: Cursor
70
- $limit: Int!
57
+ $dataTableId: GenericID!
58
+ $sort: DataTableRowSortInput
59
+ $cursor: String
60
+ $limit: Int
71
61
  ) {
72
- dataTableRowsSnapshot (
73
- dataTableId: $dataTableId
62
+ dataTableRows (
74
63
  organizationId: $organizationId
64
+ dataTableId: $dataTableId
65
+ sort: $sort
75
66
  cursor: $cursor
76
67
  limit: $limit
77
68
  ) {
78
- dataTableId
79
- currentSeq
80
-
81
- dataTable {
82
- ...dataTableFragment
83
- realtimeToken
84
- }
69
+ nextCursor
70
+ revision
85
71
 
86
- rows {
72
+ items {
87
73
  ...dataTableRowFragment
88
-
89
- cells {
90
- ...dataTableCellFragment
91
- }
92
74
  }
93
75
  }
94
76
  }
95
77
 
96
- ${dataTableFragment}
97
78
  ${dataTableRowFragment}
98
- ${dataTableCellFragment}
99
- `;
79
+ `,
80
+ { refresh: 'notice', lists: ['dataTableRow'] },
81
+ );
100
82
 
101
- // Stage 6 bounded tail contract. Journal payloads are storage transitions, so
102
- // a tail can identify a recovery target but only the snapshot query above may
103
- // acknowledge the normalized client cache.
104
- export const dataTableChangesQry = gql`
105
- query dataTableChanges (
106
- $dataTableId: GenericID!
83
+ export const dataTableRunsQry = live(
84
+ gql`
85
+ query dataTableRuns (
107
86
  $organizationId: GenericID!
108
- $afterSeq: BigInt!
109
- $limit: Int!
87
+ $dataTableId: GenericID!
88
+ $limit: Int
110
89
  ) {
111
- dataTableChanges (
112
- dataTableId: $dataTableId
90
+ dataTableRuns (
113
91
  organizationId: $organizationId
114
- afterSeq: $afterSeq
92
+ dataTableId: $dataTableId
115
93
  limit: $limit
116
94
  ) {
117
- dataTableId
118
- currentSeq
119
- requiresSnapshot
120
- changes {
121
- dataTableId
122
- seq
123
- kind
124
- payload
125
- actorAccountId
126
- sourceSocketId
127
- commandId
128
- correlationId
129
- causationId
130
- createdAt
131
- }
95
+ ...dataTableRunFragment
132
96
  }
133
97
  }
134
- `;
98
+
99
+ ${dataTableRunFragment}
100
+ `,
101
+ { refresh: 'auto' },
102
+ );