@jsb188/graphql 1.1.10 → 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.
- package/audience.d.ts +343 -0
- package/cache/config.ts +98 -50
- package/cache/index.chat-activity.test.ts +119 -0
- package/cache/index.chat.test.ts +92 -0
- package/cache/index.helpers.ts +96 -0
- package/cache/index.regression.test.ts +149 -0
- package/cache/index.test.ts +1017 -127
- package/cache/index.ts +1256 -1269
- package/cache/optimistic-ui-runtime.ts +46 -0
- package/cache/optimistic-ui.ts +401 -0
- package/cache/persist.ts +800 -0
- package/cache/store.ts +395 -0
- package/cache/value.helpers.ts +17 -0
- package/client/draft-persistence-indexed-db.ts +413 -0
- package/client/draft-persistence.ts +152 -0
- package/client/index.ts +3 -0
- package/client/request.helpers.ts +14 -0
- package/client/request.ts +870 -164
- package/deno.lock +187 -0
- package/deno.test.json +10 -4
- package/gql/eagerQueryMap.ts +12 -0
- package/gql/fragments/accountAuthFragments.ts +5 -0
- package/gql/fragments/accountFragments.ts +0 -3
- package/gql/fragments/accountSessionFragments.ts +16 -0
- package/gql/fragments/agentMemoryFragments.ts +23 -0
- package/gql/fragments/agentNoteFragments.ts +150 -0
- package/gql/fragments/aiChatFragments.ts +42 -0
- package/gql/fragments/audienceFragments.ts +141 -0
- package/gql/fragments/campaignFragments.ts +566 -0
- package/gql/fragments/dataTableFragments.ts +50 -192
- package/gql/fragments/emailFragments.ts +32 -17
- package/gql/fragments/fieldDocFragments.ts +264 -0
- package/gql/fragments/inboundContactFragments.ts +2 -0
- package/gql/fragments/logFragments.ts +101 -69
- package/gql/fragments/organizationFragments.ts +53 -5
- package/gql/fragments/qrCodeFragments.ts +29 -0
- package/gql/fragments/scheduleFragments.ts +667 -0
- package/gql/fragments/sheetFragments.ts +304 -63
- package/gql/fragments/storageFragments.ts +45 -0
- package/gql/fragments/workflowFragments.ts +41 -5
- package/gql/mutations/accountMutations.ts +0 -2
- package/gql/mutations/agentMemoryMutations.ts +68 -0
- package/gql/mutations/agentNoteMutations.ts +62 -0
- package/gql/mutations/aiChatMutations.ts +49 -4
- package/gql/mutations/audienceMutations.ts +71 -0
- package/gql/mutations/authMutations.ts +203 -18
- package/gql/mutations/billingMutations.ts +17 -27
- package/gql/mutations/campaignMutations.ts +258 -0
- package/gql/mutations/contactMutations.ts +23 -0
- package/gql/mutations/dataTableMutations.ts +19 -54
- package/gql/mutations/fieldDocMutations.ts +173 -0
- package/gql/mutations/index.ts +10 -2
- package/gql/mutations/logMutations.ts +6 -29
- package/gql/mutations/organizationMutations.ts +19 -4
- package/gql/mutations/qrCodeMutations.ts +20 -0
- package/gql/mutations/scheduleMutations.ts +1121 -0
- package/gql/mutations/sheetMutations.ts +221 -60
- package/gql/mutations/storageMutations.ts +19 -0
- package/gql/mutations/workflowMutations.ts +60 -0
- package/gql/queries/agentMemoryQueries.ts +28 -0
- package/gql/queries/agentNoteQueries.ts +89 -0
- package/gql/queries/aiChatQueries.ts +70 -2
- package/gql/queries/audienceQueries.ts +128 -0
- package/gql/queries/authQueries.ts +47 -0
- package/gql/queries/billingQueries.ts +118 -6
- package/gql/queries/campaignQueries.ts +236 -0
- package/gql/queries/dataTableQueries.ts +61 -13
- package/gql/queries/emailQueries.ts +26 -17
- package/gql/queries/emailReplyReportQueries.ts +76 -0
- package/gql/queries/fieldDocQueries.ts +166 -0
- package/gql/queries/inboundContactQueries.ts +4 -0
- package/gql/queries/index.ts +10 -2
- package/gql/queries/logQueries.ts +68 -30
- package/gql/queries/organizationQueries.ts +65 -1
- package/gql/queries/qrCodeQueries.ts +20 -0
- package/gql/queries/scheduleQueries.ts +691 -0
- package/gql/queries/sheetQueries.ts +244 -26
- package/gql/queries/storageQueries.ts +38 -0
- package/gql/queries/workflowQueries.ts +77 -2
- package/hooks/index.helpers.test.ts +50 -0
- package/hooks/index.helpers.ts +52 -0
- package/hooks/index.ts +2254 -982
- package/hooks/use-account-mtn.ts +76 -81
- package/hooks/use-agentMemory-mtn.ts +71 -0
- package/hooks/use-agentMemory-qry.ts +56 -0
- package/hooks/use-agentNote-mtn.ts +82 -0
- package/hooks/use-agentNote-qry.ts +190 -0
- package/hooks/use-agentNote-recovery.helpers.test.ts +68 -0
- package/hooks/use-agentNote-recovery.helpers.ts +58 -0
- package/hooks/use-agentNote-recovery.ts +72 -0
- package/hooks/use-aiChat-mtn.ts +220 -141
- package/hooks/use-aiChat-qry.helpers.test.ts +63 -0
- package/hooks/use-aiChat-qry.helpers.ts +124 -0
- package/hooks/use-aiChat-qry.ts +341 -237
- package/hooks/use-aiChat-stream-mtn.ts +14 -0
- package/hooks/use-app-qry.ts +12 -9
- package/hooks/use-audience-mtn.ts +194 -0
- package/hooks/use-audience-qry.helpers.test.ts +80 -0
- package/hooks/use-audience-qry.helpers.ts +63 -0
- package/hooks/use-audience-qry.ts +330 -0
- package/hooks/use-auth-mtn.ts +435 -252
- package/hooks/use-auth-qry.ts +51 -0
- package/hooks/use-billing-mtn.ts +31 -0
- package/hooks/use-billing-qry.ts +76 -0
- package/hooks/use-campaign-generation-recovery.ts +53 -0
- package/hooks/use-campaign-mtn.ts +436 -0
- package/hooks/use-campaign-qry.helpers.ts +40 -0
- package/hooks/use-campaign-qry.ts +834 -0
- package/hooks/use-dataTable-mtn.ts +37 -46
- package/hooks/use-dataTable-qry.ts +102 -128
- package/hooks/use-email-qry.helpers.ts +37 -0
- package/hooks/use-email-qry.ts +56 -86
- package/hooks/use-emailCampaignReplyReport-qry.ts +27 -0
- package/hooks/use-fieldDoc-mtn.ts +262 -0
- package/hooks/use-fieldDoc-qry.helpers.test.ts +65 -0
- package/hooks/use-fieldDoc-qry.helpers.ts +49 -0
- package/hooks/use-fieldDoc-qry.ts +212 -0
- package/hooks/use-inboundContact-mtn.ts +19 -16
- package/hooks/use-inboundContact-qry.ts +62 -56
- package/hooks/use-integration-mtn.ts +56 -38
- package/hooks/use-integration-qry.ts +24 -9
- package/hooks/use-log-mtn.ts +88 -59
- package/hooks/use-log-qry.ts +150 -73
- package/hooks/use-organization-mtn.ts +334 -277
- package/hooks/use-organization-qry.ts +155 -129
- package/hooks/use-publicFormEmail-mtn.ts +27 -0
- package/hooks/use-qrCode-mtn.ts +40 -0
- package/hooks/use-qrCode-qry.ts +78 -0
- package/hooks/use-schedule-mtn.ts +589 -0
- package/hooks/use-schedule-qry.ts +738 -0
- package/hooks/use-schedule-reactive.ts +486 -0
- package/hooks/use-sheet-mtn.ts +157 -79
- package/hooks/use-sheet-qry.ts +221 -92
- package/hooks/use-storage-mtn.ts +81 -41
- package/hooks/use-storage-qry.ts +128 -14
- package/hooks/use-workflow-mtn.ts +72 -0
- package/hooks/use-workflow-qry.ts +184 -47
- 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/fragment-realtime-sequence.ts +55 -0
- package/libs/fragment-recovery.test.ts +326 -0
- package/libs/fragment-recovery.ts +325 -0
- package/libs/open-sheet.ts +138 -0
- package/libs/orchestrator-realtime.helpers.test.ts +229 -0
- package/libs/orchestrator-realtime.helpers.ts +317 -0
- package/libs/orchestrator-realtime.ts +433 -0
- package/libs/request-cache-regression.test.ts +122 -0
- package/libs/request-managed-session.test.ts +574 -0
- package/libs/request-no-store.test.ts +419 -0
- package/libs/sheet-command-batch.ts +44 -0
- package/libs/sheet-view-realtime-router.test.ts +214 -0
- package/libs/sheet-view-realtime-router.ts +99 -0
- package/libs/sse-ticket.test.ts +26 -0
- package/loaders/campaign.test.ts +186 -0
- package/loaders/campaign.ts +110 -0
- package/loaders/emailPreference.ts +75 -0
- package/loaders/rest.ts +12 -0
- package/package.json +119 -71
- package/schedule.d.ts +1790 -0
- package/sse.helpers.ts +19 -0
- package/sse.ts +70 -106
- package/tests/agent-note-detail-cache.test.ts +120 -0
- package/tests/agent-note-search.test.ts +444 -0
- package/tsconfig.json +11 -10
- package/types.d.ts +77 -26
- package/utils.ts +78 -49
- package/gql/fragments/billingFragments.ts +0 -25
- package/gql/fragments/productFragments.ts +0 -39
- package/gql/fragments/reportFragments.ts +0 -90
- package/gql/queries/productQueries.ts +0 -31
- package/gql/queries/reportQueries.ts +0 -134
- package/hooks/use-product-qry.ts +0 -67
- package/hooks/use-report-qry.ts +0 -153
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
1
|
export const logEntryFragment = `fragment logEntryFragment on LogEntry {
|
|
3
2
|
id
|
|
4
3
|
cursor
|
|
@@ -8,116 +7,149 @@ export const logEntryFragment = `fragment logEntryFragment on LogEntry {
|
|
|
8
7
|
childOrgName
|
|
9
8
|
inboundContactId
|
|
10
9
|
inboundContactName
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
fieldDocId
|
|
11
|
+
fieldDocSubmissionId
|
|
13
12
|
siteId
|
|
13
|
+
siteName
|
|
14
14
|
location
|
|
15
|
+
inboundContactEmail
|
|
16
|
+
inboundContactPhone
|
|
17
|
+
accountPersonName
|
|
15
18
|
summary
|
|
16
19
|
source
|
|
17
20
|
confidence
|
|
18
21
|
originalMessage
|
|
19
22
|
flagColor
|
|
23
|
+
translation {
|
|
24
|
+
version
|
|
25
|
+
sourceHash
|
|
26
|
+
originalLanguage
|
|
27
|
+
texts {
|
|
28
|
+
language
|
|
29
|
+
translatedAt
|
|
30
|
+
summary
|
|
31
|
+
notes
|
|
32
|
+
item
|
|
33
|
+
values {
|
|
34
|
+
ordinal
|
|
35
|
+
label
|
|
36
|
+
}
|
|
37
|
+
fields {
|
|
38
|
+
key
|
|
39
|
+
textValue
|
|
40
|
+
}
|
|
41
|
+
searchText
|
|
42
|
+
}
|
|
43
|
+
}
|
|
20
44
|
date
|
|
21
45
|
createdAt
|
|
22
46
|
updatedAt
|
|
23
47
|
}`;
|
|
24
48
|
|
|
25
|
-
export const
|
|
49
|
+
export const logEntryDetailsFragment = `fragment logEntryDetailsFragment on LogEntryDetails {
|
|
26
50
|
__typename
|
|
27
51
|
|
|
28
52
|
id
|
|
29
53
|
type
|
|
30
54
|
activity
|
|
31
|
-
concentration
|
|
32
|
-
concentrationUnit
|
|
33
|
-
fieldLocation
|
|
34
55
|
|
|
35
56
|
item
|
|
36
57
|
quantity
|
|
37
58
|
unit
|
|
38
|
-
|
|
39
|
-
referenceNumber
|
|
59
|
+
price
|
|
40
60
|
values {
|
|
41
61
|
label
|
|
42
62
|
value
|
|
43
63
|
quantity
|
|
44
64
|
unit
|
|
45
65
|
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
id
|
|
56
|
-
type
|
|
57
|
-
activity
|
|
58
|
-
|
|
59
|
-
item
|
|
60
|
-
|
|
61
|
-
referenceNumber
|
|
62
|
-
values {
|
|
63
|
-
label
|
|
64
|
-
value
|
|
65
|
-
quantity
|
|
66
|
+
fields {
|
|
67
|
+
key
|
|
68
|
+
fieldType
|
|
69
|
+
textValue
|
|
70
|
+
numberValue
|
|
71
|
+
booleanValue
|
|
72
|
+
dateValue
|
|
73
|
+
datetimeValue
|
|
66
74
|
unit
|
|
67
75
|
}
|
|
68
|
-
|
|
76
|
+
|
|
77
|
+
otherParty
|
|
78
|
+
referenceNumber
|
|
79
|
+
fieldLocation
|
|
69
80
|
voided
|
|
70
81
|
|
|
71
82
|
notes
|
|
72
83
|
}`;
|
|
73
84
|
|
|
74
|
-
export const
|
|
75
|
-
__typename
|
|
76
|
-
|
|
85
|
+
export const logRevisionSummaryFragment = `fragment logRevisionSummaryFragment on LogRevision {
|
|
77
86
|
id
|
|
78
|
-
|
|
79
|
-
|
|
87
|
+
cursor
|
|
88
|
+
organizationId
|
|
89
|
+
logEntryId
|
|
90
|
+
revisionNumber
|
|
91
|
+
action
|
|
92
|
+
mutationSource
|
|
93
|
+
createdAt
|
|
94
|
+
revisionHash
|
|
95
|
+
hashVersion
|
|
80
96
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
pestsRisk
|
|
87
|
-
sanitationRisk
|
|
97
|
+
actor {
|
|
98
|
+
kind
|
|
99
|
+
accountId
|
|
100
|
+
displayName
|
|
101
|
+
}
|
|
88
102
|
|
|
89
|
-
|
|
90
|
-
|
|
103
|
+
changes {
|
|
104
|
+
path
|
|
105
|
+
operation
|
|
106
|
+
before
|
|
107
|
+
after
|
|
108
|
+
}
|
|
91
109
|
|
|
92
|
-
|
|
110
|
+
proof {
|
|
111
|
+
status
|
|
112
|
+
object
|
|
113
|
+
generation
|
|
114
|
+
hash
|
|
115
|
+
archivedAt
|
|
116
|
+
retentionUntil
|
|
117
|
+
}
|
|
93
118
|
}`;
|
|
94
119
|
|
|
95
|
-
export const
|
|
96
|
-
__typename
|
|
97
|
-
|
|
120
|
+
export const logRevisionFragment = `fragment logRevisionFragment on LogRevision {
|
|
98
121
|
id
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
122
|
+
cursor
|
|
123
|
+
organizationId
|
|
124
|
+
logEntryId
|
|
125
|
+
revisionNumber
|
|
126
|
+
action
|
|
127
|
+
mutationSource
|
|
128
|
+
createdAt
|
|
129
|
+
snapshot
|
|
130
|
+
previousRevisionHash
|
|
131
|
+
revisionHash
|
|
132
|
+
hashVersion
|
|
133
|
+
|
|
134
|
+
actor {
|
|
135
|
+
kind
|
|
136
|
+
accountId
|
|
137
|
+
displayName
|
|
113
138
|
}
|
|
114
|
-
tax
|
|
115
139
|
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
140
|
+
changes {
|
|
141
|
+
path
|
|
142
|
+
operation
|
|
143
|
+
before
|
|
144
|
+
after
|
|
145
|
+
}
|
|
121
146
|
|
|
122
|
-
|
|
147
|
+
proof {
|
|
148
|
+
status
|
|
149
|
+
object
|
|
150
|
+
generation
|
|
151
|
+
hash
|
|
152
|
+
archivedAt
|
|
153
|
+
retentionUntil
|
|
154
|
+
}
|
|
123
155
|
}`;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
2
1
|
export const organizationFragment = `fragment organizationFragment on Organization {
|
|
3
2
|
id
|
|
3
|
+
readableId
|
|
4
4
|
stripeCustomerId
|
|
5
|
-
|
|
5
|
+
emailHandle
|
|
6
6
|
name
|
|
7
7
|
commodities
|
|
8
8
|
operation
|
|
@@ -17,19 +17,30 @@ export const organizationFragment = `fragment organizationFragment on Organizati
|
|
|
17
17
|
country
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
features
|
|
21
20
|
settings {
|
|
21
|
+
schedule { defaultSurface }
|
|
22
|
+
id
|
|
22
23
|
timeZone
|
|
23
24
|
language
|
|
25
|
+
displayTranslatedLogs
|
|
26
|
+
translateLanguage
|
|
27
|
+
logRevisionsProof
|
|
24
28
|
color
|
|
25
29
|
priorityService
|
|
26
30
|
routes {
|
|
27
31
|
id
|
|
28
32
|
columnWidths
|
|
33
|
+
columnOrder
|
|
29
34
|
}
|
|
30
35
|
sidebar {
|
|
31
|
-
|
|
36
|
+
kind
|
|
37
|
+
order
|
|
38
|
+
slug
|
|
39
|
+
label
|
|
40
|
+
iconName
|
|
32
41
|
items {
|
|
42
|
+
kind
|
|
43
|
+
order
|
|
33
44
|
slug
|
|
34
45
|
label
|
|
35
46
|
iconName
|
|
@@ -46,17 +57,29 @@ export const organizationFragment = `fragment organizationFragment on Organizati
|
|
|
46
57
|
}`;
|
|
47
58
|
|
|
48
59
|
export const organizationSettingsFragment = `fragment organizationSettingsFragment on OrganizationSettings {
|
|
60
|
+
schedule { defaultSurface }
|
|
61
|
+
id
|
|
49
62
|
timeZone
|
|
50
63
|
language
|
|
64
|
+
displayTranslatedLogs
|
|
65
|
+
translateLanguage
|
|
66
|
+
logRevisionsProof
|
|
51
67
|
color
|
|
52
68
|
priorityService
|
|
53
69
|
routes {
|
|
54
70
|
id
|
|
55
71
|
columnWidths
|
|
72
|
+
columnOrder
|
|
56
73
|
}
|
|
57
74
|
sidebar {
|
|
58
|
-
|
|
75
|
+
kind
|
|
76
|
+
order
|
|
77
|
+
slug
|
|
78
|
+
label
|
|
79
|
+
iconName
|
|
59
80
|
items {
|
|
81
|
+
kind
|
|
82
|
+
order
|
|
60
83
|
slug
|
|
61
84
|
label
|
|
62
85
|
iconName
|
|
@@ -124,3 +147,28 @@ export const organizationChildFragment = `fragment organizationChildFragment on
|
|
|
124
147
|
phoneNumber
|
|
125
148
|
}
|
|
126
149
|
}`;
|
|
150
|
+
|
|
151
|
+
export const orgPageRouteFragment = `fragment orgPageRouteFragment on OrgPageRoute {
|
|
152
|
+
id
|
|
153
|
+
organizationId
|
|
154
|
+
slug
|
|
155
|
+
query
|
|
156
|
+
logEntriesFilter {
|
|
157
|
+
siteId
|
|
158
|
+
preset
|
|
159
|
+
types
|
|
160
|
+
activities
|
|
161
|
+
startDate
|
|
162
|
+
endDate
|
|
163
|
+
query
|
|
164
|
+
}
|
|
165
|
+
childOrgsFilter {
|
|
166
|
+
childOrgIds
|
|
167
|
+
affiliated
|
|
168
|
+
}
|
|
169
|
+
columns
|
|
170
|
+
iconName
|
|
171
|
+
starred
|
|
172
|
+
createdAt
|
|
173
|
+
updatedAt
|
|
174
|
+
}`;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Share the complete QR record shape across management reads and mutations.
|
|
3
|
+
* References stay inline: their identity includes the entity type, and the
|
|
4
|
+
* displayed name snapshot belongs to this issued code rather than a live entity.
|
|
5
|
+
*/
|
|
6
|
+
export const qrCodeFragment = `fragment qrCodeFragment on QrCode {
|
|
7
|
+
id
|
|
8
|
+
cursor
|
|
9
|
+
organizationId
|
|
10
|
+
publicId
|
|
11
|
+
name
|
|
12
|
+
fields {
|
|
13
|
+
key
|
|
14
|
+
description
|
|
15
|
+
kind
|
|
16
|
+
value
|
|
17
|
+
reference {
|
|
18
|
+
type
|
|
19
|
+
id
|
|
20
|
+
}
|
|
21
|
+
displayNameSnapshot
|
|
22
|
+
}
|
|
23
|
+
payloadVersion
|
|
24
|
+
qrText
|
|
25
|
+
createdByAccountId
|
|
26
|
+
createdAt
|
|
27
|
+
updatedAt
|
|
28
|
+
archivedAt
|
|
29
|
+
}`;
|