@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.
- package/LICENSE +21 -0
- package/audience.d.ts +205 -0
- package/cache/config.ts +65 -28
- package/cache/index.helpers.ts +96 -0
- package/cache/index.ts +364 -808
- package/cache/mounted-queries.ts +33 -0
- package/cache/optimistic-ui-runtime.ts +46 -0
- package/cache/optimistic-ui.ts +401 -0
- package/cache/persist.ts +107 -22
- package/cache/realtime-fence.ts +47 -0
- package/cache/realtime-live.ts +17 -0
- package/cache/store.ts +22 -64
- package/cache/value.helpers.ts +17 -0
- package/{drafts/store.ts → client/draft-persistence-indexed-db.ts} +19 -3
- package/{drafts/index.ts → client/draft-persistence.ts} +13 -39
- package/client/index.ts +4 -2
- package/client/request.helpers.ts +14 -0
- package/client/request.ts +122 -232
- package/client/storage-asset.ts +58 -0
- package/gql/fragments/accountAuthFragments.ts +0 -4
- package/gql/fragments/agentMemoryFragments.ts +5 -1
- package/gql/fragments/agentNoteFragments.ts +156 -0
- package/gql/fragments/aiChatFragments.ts +35 -11
- package/gql/fragments/aiChatLinkFragments.ts +8 -0
- package/gql/fragments/audienceFragments.ts +76 -0
- package/gql/fragments/dataTableFragments.ts +48 -80
- package/gql/fragments/emailFragments.ts +49 -21
- package/gql/fragments/emailOutreachFragments.ts +281 -0
- package/gql/fragments/fieldDocFragments.ts +222 -40
- package/gql/fragments/inboundContactFragments.ts +2 -0
- package/gql/fragments/libraryFragments.ts +120 -0
- package/gql/fragments/logFragments.ts +93 -2
- package/gql/fragments/organizationFragments.ts +12 -0
- package/gql/fragments/qrCodeFragments.ts +29 -0
- package/gql/fragments/scheduleFragments.ts +574 -145
- package/gql/fragments/sheetFragments.ts +86 -424
- package/gql/fragments/storageFragments.ts +25 -1
- package/gql/fragments/workWaitFragments.ts +13 -0
- package/gql/fragments/workflowFragments.ts +32 -4
- package/gql/mutations/agentMemoryMutations.ts +32 -0
- package/gql/mutations/agentNoteMutations.ts +64 -0
- package/gql/mutations/aiChatLinkMutations.ts +13 -0
- package/gql/mutations/aiChatMutations.ts +34 -4
- package/gql/mutations/audienceMutations.ts +58 -0
- package/gql/mutations/authMutations.ts +24 -28
- package/gql/mutations/billingMutations.ts +24 -0
- package/gql/mutations/contactMutations.ts +23 -0
- package/gql/mutations/dataTableMutations.ts +18 -75
- package/gql/mutations/emailMutations.ts +22 -0
- package/gql/mutations/emailOutreachMutations.ts +139 -0
- package/gql/mutations/fieldDocMutations.ts +162 -13
- package/gql/mutations/index.ts +10 -5
- package/gql/mutations/organizationMutations.ts +6 -0
- package/gql/mutations/qrCodeMutations.ts +20 -0
- package/gql/mutations/scheduleMutations.ts +389 -417
- package/gql/mutations/sheetMutations.ts +62 -118
- package/gql/mutations/storageMutations.ts +1 -1
- package/gql/mutations/workflowMutations.ts +94 -0
- package/gql/queries/agentMemoryQueries.ts +12 -2
- package/gql/queries/agentNoteQueries.ts +86 -0
- package/gql/queries/aiChatQueries.ts +63 -12
- package/gql/queries/audienceQueries.ts +104 -0
- package/gql/queries/authQueries.ts +20 -4
- package/gql/queries/billingQueries.ts +114 -9
- package/gql/queries/dataTableQueries.ts +43 -75
- package/gql/queries/emailOutreachQueries.ts +282 -0
- package/gql/queries/emailQueries.ts +48 -64
- package/gql/queries/emailReplyReportQueries.ts +127 -0
- package/gql/queries/fieldDocQueries.ts +128 -98
- package/gql/queries/inboundContactQueries.ts +15 -4
- package/gql/queries/index.ts +5 -3
- package/gql/queries/libraryQueries.ts +112 -0
- package/gql/queries/logQueries.ts +86 -12
- package/gql/queries/organizationQueries.ts +44 -12
- package/gql/queries/qrCodeQueries.ts +27 -0
- package/gql/queries/scheduleQueries.ts +401 -278
- package/gql/queries/sheetQueries.ts +94 -165
- package/gql/queries/storageQueries.ts +11 -4
- package/gql/queries/workflowQueries.ts +61 -12
- package/gql/reactivity.ts +98 -0
- package/gql/recordReads.ts +171 -0
- package/hooks/index.helpers.ts +52 -0
- package/hooks/index.ts +920 -715
- package/hooks/use-agentMemory-mtn.ts +29 -31
- package/hooks/use-agentMemory-qry.ts +15 -3
- package/hooks/use-agentNote-mtn.ts +89 -0
- package/hooks/use-agentNote-qry.ts +162 -0
- package/hooks/use-agentNote-recovery.helpers.ts +58 -0
- package/hooks/use-agentNote-recovery.ts +57 -0
- package/hooks/use-aiChat-mtn.ts +104 -115
- package/hooks/use-aiChat-qry.helpers.ts +124 -0
- package/hooks/use-aiChat-qry.ts +254 -387
- package/hooks/use-aiChat-stream-mtn.ts +14 -0
- package/hooks/use-audience-mtn.ts +170 -0
- package/hooks/use-audience-qry.helpers.ts +39 -0
- package/hooks/use-audience-qry.ts +245 -0
- package/hooks/use-auth-mtn.ts +30 -1
- package/hooks/use-billing-mtn.ts +31 -0
- package/hooks/use-billing-qry.ts +76 -0
- package/hooks/use-dataTable-mtn.ts +23 -115
- package/hooks/use-dataTable-qry.ts +69 -914
- package/hooks/use-email-mtn.ts +26 -0
- package/hooks/use-email-qry.helpers.ts +37 -0
- package/hooks/use-email-qry.ts +44 -174
- package/hooks/use-emailOutreach-mtn.ts +211 -0
- package/hooks/use-emailOutreach-qry.helpers.ts +25 -0
- package/hooks/use-emailOutreach-qry.ts +367 -0
- package/hooks/use-emailOutreachReplyReport-qry.ts +46 -0
- package/hooks/use-fieldDoc-mtn.ts +244 -32
- package/hooks/use-fieldDoc-qry.helpers.ts +49 -0
- package/hooks/use-fieldDoc-qry.ts +134 -102
- package/hooks/use-inboundContact-qry.ts +7 -9
- package/hooks/use-library-qry.ts +233 -0
- package/hooks/use-log-mtn.ts +25 -12
- package/hooks/use-log-qry.ts +99 -46
- package/hooks/use-organization-qry.ts +16 -60
- package/hooks/use-qrCode-mtn.ts +40 -0
- package/hooks/use-qrCode-qry.ts +78 -0
- package/hooks/use-schedule-mtn.ts +231 -348
- package/hooks/use-schedule-qry.ts +208 -139
- package/hooks/use-schedule-reactive.ts +218 -0
- package/hooks/use-sheet-mtn.ts +91 -199
- package/hooks/use-sheet-qry.ts +88 -237
- package/hooks/use-storage-qry.ts +84 -61
- package/hooks/use-workflow-mtn.ts +84 -23
- package/hooks/use-workflow-qry.ts +60 -61
- package/libs/ai-chat-link-events.ts +78 -0
- package/libs/ai-chat-outgoing.helpers.ts +153 -0
- package/libs/ai-chat-outgoing.ts +11 -0
- package/libs/ai-chat-outgoing.types.ts +25 -0
- package/libs/ai-chat-run-realtime.ts +20 -0
- package/libs/ai-chat-submission-realtime.ts +150 -0
- package/libs/data-changes.helpers.ts +161 -0
- package/libs/data-changes.ts +382 -0
- package/libs/fragment-realtime-sequence.ts +55 -0
- package/libs/open-sheet.ts +138 -0
- package/libs/record-read.ts +327 -0
- package/libs/sheet-command-batch.ts +45 -0
- package/libs/sheet-realtime-packet.ts +53 -0
- package/libs/sheet-view-realtime-router.ts +99 -0
- package/loaders/emailPreference.ts +69 -0
- package/loaders/rest.ts +12 -0
- package/package.json +77 -25
- package/schedule.d.ts +1183 -0
- package/sse.helpers.ts +19 -0
- package/sse.ts +26 -115
- package/types.d.ts +48 -25
- package/cache/index.test.ts +0 -881
- package/client/data-table-realtime-subscriptions.test.ts +0 -740
- package/client/data-table-realtime-subscriptions.ts +0 -955
- package/client/data-table-realtime.test.ts +0 -792
- package/client/data-table-realtime.ts +0 -1218
- package/client/fragment-realtime-sequence.ts +0 -52
- package/client/open-sheet.ts +0 -137
- package/client/request-managed-session.test.ts +0 -574
- package/client/request-no-store.test.ts +0 -157
- package/client/sse-ticket.test.ts +0 -26
- package/deno.lock +0 -170
- package/deno.test.json +0 -10
- package/gql/fragments/agentDocFragments.ts +0 -46
- package/gql/fragments/billingFragments.ts +0 -14
- package/gql/fragments/campaignFragments.ts +0 -277
- package/gql/mutations/agentDocMutations.ts +0 -177
- package/gql/mutations/campaignMutations.ts +0 -215
- package/gql/queries/agentDocQueries.ts +0 -120
- package/gql/queries/appQueries.ts +0 -14
- package/gql/queries/campaignQueries.ts +0 -127
- package/hooks/use-agentDoc-mtn.ts +0 -285
- package/hooks/use-agentDoc-qry.ts +0 -208
- package/hooks/use-app-qry.ts +0 -22
- package/hooks/use-campaign-mtn.ts +0 -377
- package/hooks/use-campaign-qry.ts +0 -257
- package/loaders/campaign.ts +0 -137
- package/tsconfig.json +0 -13
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
} from '../fragments/organizationFragments.ts';
|
|
12
12
|
import { emailFragment, phoneFragment } from '../fragments/otherFragments.ts';
|
|
13
13
|
import { storageFileFragment } from '../fragments/storageFragments.ts';
|
|
14
|
+
import { live } from '../reactivity.ts';
|
|
14
15
|
|
|
15
16
|
// Always use organizationRelationship() instead
|
|
16
17
|
|
|
@@ -28,7 +29,8 @@ import { storageFileFragment } from '../fragments/storageFragments.ts';
|
|
|
28
29
|
// ${organizationFragment}
|
|
29
30
|
// `;
|
|
30
31
|
|
|
31
|
-
export const organizationRelationshipQry =
|
|
32
|
+
export const organizationRelationshipQry = live(
|
|
33
|
+
gql`
|
|
32
34
|
query organizationRelationship (
|
|
33
35
|
$organizationId: GenericID!
|
|
34
36
|
) {
|
|
@@ -56,13 +58,26 @@ ${organizationFragment}
|
|
|
56
58
|
${organizationComplianceFragment}
|
|
57
59
|
${organizationRelationshipFragment}
|
|
58
60
|
${storageFileFragment}
|
|
59
|
-
|
|
61
|
+
`,
|
|
62
|
+
{ refresh: 'auto' },
|
|
63
|
+
);
|
|
60
64
|
|
|
61
|
-
export const myOrganizationsQry =
|
|
65
|
+
export const myOrganizationsQry = live(
|
|
66
|
+
gql`
|
|
62
67
|
query myOrganizations {
|
|
63
68
|
myOrganizations {
|
|
64
69
|
...organizationRelationshipFragment
|
|
65
70
|
|
|
71
|
+
billingAccess {
|
|
72
|
+
enforcement
|
|
73
|
+
planKey
|
|
74
|
+
subscriptionStatus
|
|
75
|
+
paidThroughAt
|
|
76
|
+
accessEndsAt
|
|
77
|
+
accessLockedAt
|
|
78
|
+
graceDays
|
|
79
|
+
}
|
|
80
|
+
|
|
66
81
|
organization {
|
|
67
82
|
...organizationFragment
|
|
68
83
|
membersCount
|
|
@@ -77,6 +92,7 @@ query myOrganizations {
|
|
|
77
92
|
orRequiredFields
|
|
78
93
|
}
|
|
79
94
|
activities {
|
|
95
|
+
systemOnly
|
|
80
96
|
key
|
|
81
97
|
groupKey
|
|
82
98
|
agentText
|
|
@@ -92,6 +108,8 @@ query myOrganizations {
|
|
|
92
108
|
agentHint
|
|
93
109
|
options
|
|
94
110
|
allowedUnits
|
|
111
|
+
includedActivityKeys
|
|
112
|
+
excludedActivityKeys
|
|
95
113
|
groupKey
|
|
96
114
|
activityKey
|
|
97
115
|
}
|
|
@@ -116,9 +134,12 @@ ${organizationComplianceFragment}
|
|
|
116
134
|
${organizationRelationshipFragment}
|
|
117
135
|
${integrationConnectionFragment}
|
|
118
136
|
${storageFileFragment}
|
|
119
|
-
|
|
137
|
+
`,
|
|
138
|
+
{ refresh: 'auto', lists: ['integrationConnection'], derived: ['accountOrganizations'] },
|
|
139
|
+
);
|
|
120
140
|
|
|
121
|
-
export const childOrganizationsQry =
|
|
141
|
+
export const childOrganizationsQry = live(
|
|
142
|
+
gql`
|
|
122
143
|
query childOrganizations (
|
|
123
144
|
$organizationId: GenericID!
|
|
124
145
|
$filter: ChildOrgsFilter
|
|
@@ -154,9 +175,12 @@ ${organizationChildFragment}
|
|
|
154
175
|
${organizationFragment}
|
|
155
176
|
${organizationComplianceFragment}
|
|
156
177
|
${storageFileFragment}
|
|
157
|
-
|
|
178
|
+
`,
|
|
179
|
+
{ refresh: 'auto', lists: ['organizationChild'] },
|
|
180
|
+
);
|
|
158
181
|
|
|
159
|
-
export const organizationMembersQry =
|
|
182
|
+
export const organizationMembersQry = live(
|
|
183
|
+
gql`
|
|
160
184
|
query organizationMembers (
|
|
161
185
|
$organizationId: GenericID!
|
|
162
186
|
$showGuests: Boolean
|
|
@@ -185,9 +209,12 @@ ${organizationRelationshipFragment}
|
|
|
185
209
|
${accountFragment}
|
|
186
210
|
${emailFragment}
|
|
187
211
|
${phoneFragment}
|
|
188
|
-
|
|
212
|
+
`,
|
|
213
|
+
{ refresh: 'auto', lists: ['organizationRelationship'] },
|
|
214
|
+
);
|
|
189
215
|
|
|
190
|
-
export const organizationSitesQry =
|
|
216
|
+
export const organizationSitesQry = live(
|
|
217
|
+
gql`
|
|
191
218
|
query organizationSites (
|
|
192
219
|
$organizationId: GenericID!
|
|
193
220
|
$parentId: GenericID!
|
|
@@ -201,9 +228,12 @@ query organizationSites (
|
|
|
201
228
|
}
|
|
202
229
|
|
|
203
230
|
${organizationSiteFragment}
|
|
204
|
-
|
|
231
|
+
`,
|
|
232
|
+
{ refresh: 'auto', lists: ['organizationSite'] },
|
|
233
|
+
);
|
|
205
234
|
|
|
206
|
-
export const pageRoutesQry =
|
|
235
|
+
export const pageRoutesQry = live(
|
|
236
|
+
gql`
|
|
207
237
|
query pageRoutes (
|
|
208
238
|
$organizationId: GenericID!
|
|
209
239
|
) {
|
|
@@ -215,4 +245,6 @@ query pageRoutes (
|
|
|
215
245
|
}
|
|
216
246
|
|
|
217
247
|
${orgPageRouteFragment}
|
|
218
|
-
|
|
248
|
+
`,
|
|
249
|
+
{ refresh: 'auto', derived: ['pageRoute'] },
|
|
250
|
+
);
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { gql } from 'graphql-tag';
|
|
2
|
+
import { qrCodeFragment } from '../fragments/qrCodeFragments.ts';
|
|
3
|
+
import { live } from '../reactivity.ts';
|
|
4
|
+
|
|
5
|
+
export const qrCodeQry = live(
|
|
6
|
+
gql`
|
|
7
|
+
query qrCode($organizationId: GenericID!, $qrCodeId: GenericID, $publicId: String) {
|
|
8
|
+
qrCode(organizationId: $organizationId, qrCodeId: $qrCodeId, publicId: $publicId) {
|
|
9
|
+
...qrCodeFragment
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
${qrCodeFragment}
|
|
13
|
+
`,
|
|
14
|
+
{ refresh: 'auto' },
|
|
15
|
+
);
|
|
16
|
+
|
|
17
|
+
export const qrCodesQry = live(
|
|
18
|
+
gql`
|
|
19
|
+
query qrCodes($organizationId: GenericID!, $filter: QrCodesFilter, $cursor: Cursor, $limit: Int = 50) {
|
|
20
|
+
qrCodes(organizationId: $organizationId, filter: $filter, cursor: $cursor, limit: $limit) {
|
|
21
|
+
...qrCodeFragment
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
${qrCodeFragment}
|
|
25
|
+
`,
|
|
26
|
+
{ refresh: 'auto', lists: ['qrCode'] },
|
|
27
|
+
);
|