@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.
- package/audience.d.ts +343 -0
- package/cache/config.ts +58 -24
- 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 +370 -42
- package/cache/index.ts +326 -799
- package/cache/optimistic-ui-runtime.ts +46 -0
- package/cache/optimistic-ui.ts +401 -0
- package/cache/persist.ts +98 -19
- 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} +5 -2
- package/client/index.ts +3 -2
- package/client/request.helpers.ts +14 -0
- package/client/request.ts +130 -215
- package/deno.lock +17 -0
- package/deno.test.json +2 -0
- package/gql/fragments/agentMemoryFragments.ts +5 -1
- package/gql/fragments/agentNoteFragments.ts +150 -0
- package/gql/fragments/aiChatFragments.ts +36 -10
- package/gql/fragments/audienceFragments.ts +141 -0
- package/gql/fragments/campaignFragments.ts +415 -126
- package/gql/fragments/dataTableFragments.ts +48 -80
- package/gql/fragments/emailFragments.ts +28 -23
- package/gql/fragments/fieldDocFragments.ts +222 -40
- package/gql/fragments/inboundContactFragments.ts +2 -0
- package/gql/fragments/logFragments.ts +93 -2
- package/gql/fragments/organizationFragments.ts +10 -0
- package/gql/fragments/qrCodeFragments.ts +29 -0
- package/gql/fragments/scheduleFragments.ts +652 -140
- package/gql/fragments/sheetFragments.ts +84 -373
- package/gql/fragments/storageFragments.ts +25 -1
- package/gql/fragments/workflowFragments.ts +13 -1
- package/gql/mutations/agentMemoryMutations.ts +32 -0
- package/gql/mutations/agentNoteMutations.ts +62 -0
- package/gql/mutations/aiChatMutations.ts +36 -4
- package/gql/mutations/audienceMutations.ts +71 -0
- package/gql/mutations/authMutations.ts +45 -1
- package/gql/mutations/billingMutations.ts +24 -0
- package/gql/mutations/campaignMutations.ts +170 -127
- package/gql/mutations/contactMutations.ts +23 -0
- package/gql/mutations/dataTableMutations.ts +18 -75
- package/gql/mutations/fieldDocMutations.ts +162 -13
- package/gql/mutations/index.ts +8 -5
- package/gql/mutations/organizationMutations.ts +6 -0
- package/gql/mutations/qrCodeMutations.ts +20 -0
- package/gql/mutations/scheduleMutations.ts +1052 -354
- package/gql/mutations/sheetMutations.ts +62 -118
- package/gql/mutations/storageMutations.ts +0 -1
- package/gql/mutations/workflowMutations.ts +18 -0
- package/gql/queries/agentMemoryQueries.ts +6 -0
- package/gql/queries/agentNoteQueries.ts +89 -0
- package/gql/queries/aiChatQueries.ts +56 -4
- package/gql/queries/audienceQueries.ts +128 -0
- package/gql/queries/authQueries.ts +6 -0
- package/gql/queries/billingQueries.ts +95 -6
- package/gql/queries/campaignQueries.ts +132 -23
- package/gql/queries/dataTableQueries.ts +24 -65
- package/gql/queries/emailQueries.ts +18 -61
- package/gql/queries/emailReplyReportQueries.ts +76 -0
- package/gql/queries/fieldDocQueries.ts +100 -92
- package/gql/queries/inboundContactQueries.ts +4 -0
- package/gql/queries/index.ts +3 -1
- package/gql/queries/logQueries.ts +62 -7
- package/gql/queries/organizationQueries.ts +13 -0
- package/gql/queries/qrCodeQueries.ts +20 -0
- package/gql/queries/scheduleQueries.ts +633 -257
- package/gql/queries/sheetQueries.ts +59 -152
- package/gql/queries/workflowQueries.ts +10 -4
- package/hooks/index.helpers.test.ts +50 -0
- package/hooks/index.helpers.ts +52 -0
- package/hooks/index.ts +863 -685
- package/hooks/use-agentMemory-mtn.ts +29 -31
- package/hooks/use-agentMemory-qry.ts +15 -3
- 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 +96 -112
- 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 +229 -383
- package/hooks/use-aiChat-stream-mtn.ts +14 -0
- 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 +30 -1
- 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 +224 -165
- package/hooks/use-campaign-qry.helpers.ts +40 -0
- package/hooks/use-campaign-qry.ts +631 -54
- package/hooks/use-dataTable-mtn.ts +23 -115
- package/hooks/use-dataTable-qry.ts +66 -916
- package/hooks/use-email-qry.helpers.ts +37 -0
- package/hooks/use-email-qry.ts +33 -178
- package/hooks/use-emailCampaignReplyReport-qry.ts +27 -0
- package/hooks/use-fieldDoc-mtn.ts +244 -32
- 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 +134 -102
- package/hooks/use-inboundContact-qry.ts +7 -9
- 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-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 +506 -333
- package/hooks/use-schedule-qry.ts +682 -101
- package/hooks/use-schedule-reactive.ts +486 -0
- package/hooks/use-sheet-mtn.ts +91 -199
- package/hooks/use-sheet-qry.ts +84 -238
- package/hooks/use-storage-qry.ts +84 -61
- package/hooks/use-workflow-mtn.ts +39 -22
- package/hooks/use-workflow-qry.ts +40 -61
- 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/{client → libs}/request-managed-session.test.ts +1 -1
- 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/loaders/campaign.test.ts +186 -0
- package/loaders/campaign.ts +56 -83
- package/loaders/emailPreference.ts +75 -0
- package/loaders/rest.ts +12 -0
- package/package.json +42 -17
- package/schedule.d.ts +1790 -0
- package/sse.helpers.ts +19 -0
- package/sse.ts +26 -115
- package/tests/agent-note-detail-cache.test.ts +120 -0
- package/tests/agent-note-search.test.ts +444 -0
- package/types.d.ts +46 -25
- 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-no-store.test.ts +0 -157
- package/gql/fragments/agentDocFragments.ts +0 -46
- package/gql/fragments/billingFragments.ts +0 -14
- package/gql/mutations/agentDocMutations.ts +0 -177
- package/gql/queries/agentDocQueries.ts +0 -120
- package/hooks/use-agentDoc-mtn.ts +0 -285
- package/hooks/use-agentDoc-qry.ts +0 -208
- /package/{client → libs}/sse-ticket.test.ts +0 -0
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { gql } from 'graphql-tag';
|
|
2
|
-
import { platformProductFragment } from '../fragments/billingFragments.ts';
|
|
3
2
|
|
|
4
3
|
export const organizationUsageQry = gql`
|
|
5
4
|
query organizationUsage(
|
|
@@ -24,12 +23,102 @@ query organizationUsage(
|
|
|
24
23
|
}
|
|
25
24
|
`;
|
|
26
25
|
|
|
27
|
-
export const
|
|
28
|
-
query
|
|
29
|
-
|
|
30
|
-
|
|
26
|
+
export const billingPlansQry = gql`
|
|
27
|
+
query billingPlans {
|
|
28
|
+
billingPlans {
|
|
29
|
+
planKey
|
|
30
|
+
name
|
|
31
|
+
contactSales
|
|
32
|
+
|
|
33
|
+
prices {
|
|
34
|
+
priceId
|
|
35
|
+
lookupKey
|
|
36
|
+
planKey
|
|
37
|
+
interval
|
|
38
|
+
unitAmount
|
|
39
|
+
currency
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
`;
|
|
44
|
+
|
|
45
|
+
export const billingClientConfigQry = gql`
|
|
46
|
+
query billingClientConfig {
|
|
47
|
+
billingClientConfig {
|
|
48
|
+
publishableKey
|
|
49
|
+
livemode
|
|
50
|
+
paymentMethodTypes
|
|
31
51
|
}
|
|
32
52
|
}
|
|
53
|
+
`;
|
|
54
|
+
|
|
55
|
+
export const organizationBillingQry = gql`
|
|
56
|
+
query organizationBilling (
|
|
57
|
+
$organizationId: GenericID!
|
|
58
|
+
) {
|
|
59
|
+
organizationBilling (
|
|
60
|
+
organizationId: $organizationId
|
|
61
|
+
) {
|
|
62
|
+
organizationId
|
|
63
|
+
|
|
64
|
+
access {
|
|
65
|
+
enforcement
|
|
66
|
+
planKey
|
|
67
|
+
subscriptionStatus
|
|
68
|
+
paidThroughAt
|
|
69
|
+
accessEndsAt
|
|
70
|
+
accessLockedAt
|
|
71
|
+
graceDays
|
|
72
|
+
}
|
|
33
73
|
|
|
34
|
-
|
|
74
|
+
subscription {
|
|
75
|
+
id
|
|
76
|
+
status
|
|
77
|
+
planKey
|
|
78
|
+
interval
|
|
79
|
+
currentPeriodEnd
|
|
80
|
+
cancelAtPeriodEnd
|
|
81
|
+
collectionMethod
|
|
82
|
+
unitAmount
|
|
83
|
+
currency
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
invoices {
|
|
87
|
+
id
|
|
88
|
+
number
|
|
89
|
+
status
|
|
90
|
+
total
|
|
91
|
+
amountDue
|
|
92
|
+
amountPaid
|
|
93
|
+
currency
|
|
94
|
+
hostedInvoiceUrl
|
|
95
|
+
invoicePdf
|
|
96
|
+
periodStart
|
|
97
|
+
periodEnd
|
|
98
|
+
paidAt
|
|
99
|
+
dueDate
|
|
100
|
+
createdAt
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
`;
|
|
105
|
+
|
|
106
|
+
export const billingPurchasePreviewQry = gql`
|
|
107
|
+
query billingPurchasePreview (
|
|
108
|
+
$organizationId: GenericID!
|
|
109
|
+
$priceId: String!
|
|
110
|
+
$address: BillingAddressInput!
|
|
111
|
+
) {
|
|
112
|
+
billingPurchasePreview (
|
|
113
|
+
organizationId: $organizationId
|
|
114
|
+
priceId: $priceId
|
|
115
|
+
address: $address
|
|
116
|
+
) {
|
|
117
|
+
subtotal
|
|
118
|
+
tax
|
|
119
|
+
total
|
|
120
|
+
currency
|
|
121
|
+
taxStatus
|
|
122
|
+
}
|
|
123
|
+
}
|
|
35
124
|
`;
|
|
@@ -1,27 +1,28 @@
|
|
|
1
1
|
import { gql } from 'graphql-tag';
|
|
2
2
|
import {
|
|
3
|
-
|
|
3
|
+
campaignEditorFieldsSelection,
|
|
4
|
+
campaignFieldsSelection,
|
|
4
5
|
campaignRecipientFragment,
|
|
6
|
+
campaignRecipientOverviewFragment,
|
|
5
7
|
campaignResponseFragment,
|
|
8
|
+
campaignResponseOverviewFragment,
|
|
9
|
+
campaignResponseSummaryFragment,
|
|
6
10
|
campaignSummaryFragment,
|
|
7
|
-
|
|
8
|
-
campaignTemplateFragment,
|
|
11
|
+
campaignTemplateFieldsSelection,
|
|
9
12
|
campaignTemplateSummaryFragment,
|
|
10
13
|
} from '../fragments/campaignFragments.ts';
|
|
11
14
|
|
|
12
15
|
export const campaignTemplatesQry = gql`
|
|
13
16
|
query campaignTemplates (
|
|
14
17
|
$organizationId: GenericID!
|
|
15
|
-
$
|
|
16
|
-
$status: CampaignTemplateStatus
|
|
18
|
+
$filter: CampaignTemplatesFilter!
|
|
17
19
|
$cursor: Cursor
|
|
18
|
-
$after: Boolean
|
|
19
|
-
$limit: Int
|
|
20
|
+
$after: Boolean!
|
|
21
|
+
$limit: Int!
|
|
20
22
|
) {
|
|
21
23
|
campaignTemplates (
|
|
22
24
|
organizationId: $organizationId
|
|
23
|
-
|
|
24
|
-
status: $status
|
|
25
|
+
filter: $filter
|
|
25
26
|
cursor: $cursor
|
|
26
27
|
after: $after
|
|
27
28
|
limit: $limit
|
|
@@ -32,26 +33,45 @@ query campaignTemplates (
|
|
|
32
33
|
${campaignTemplateSummaryFragment}
|
|
33
34
|
`;
|
|
34
35
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
/**
|
|
37
|
+
* Every current system template (no owning organization). Not paginated.
|
|
38
|
+
*/
|
|
39
|
+
export const systemCampaignTemplatesQry = gql`
|
|
40
|
+
query systemCampaignTemplates (
|
|
41
|
+
$filter: SystemCampaignTemplatesFilter!
|
|
42
|
+
) {
|
|
43
|
+
systemCampaignTemplates (filter: $filter) {
|
|
44
|
+
...campaignTemplateSummaryFragment
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
${campaignTemplateSummaryFragment}
|
|
48
|
+
`;
|
|
49
|
+
|
|
50
|
+
export const campaignTemplateEditSessionQry = gql`
|
|
51
|
+
query campaignTemplateEditSession (
|
|
38
52
|
$templateId: GenericID!
|
|
39
53
|
) {
|
|
40
|
-
|
|
41
|
-
organizationId: $organizationId
|
|
54
|
+
campaignTemplateEditSession (
|
|
42
55
|
templateId: $templateId
|
|
43
56
|
) {
|
|
44
|
-
|
|
57
|
+
organizationId
|
|
58
|
+
status
|
|
59
|
+
template {
|
|
60
|
+
${campaignTemplateFieldsSelection}
|
|
61
|
+
}
|
|
62
|
+
editor {
|
|
63
|
+
${campaignEditorFieldsSelection}
|
|
64
|
+
}
|
|
65
|
+
editable
|
|
45
66
|
}
|
|
46
67
|
}
|
|
47
|
-
${campaignTemplateElementFragment}
|
|
48
|
-
${campaignTemplateFragment}
|
|
49
68
|
`;
|
|
50
69
|
|
|
51
70
|
export const campaignsQry = gql`
|
|
52
71
|
query campaigns (
|
|
53
|
-
$organizationId: GenericID
|
|
72
|
+
$organizationId: GenericID
|
|
54
73
|
$filter: CampaignsFilter!
|
|
74
|
+
$sort: CampaignsSort
|
|
55
75
|
$cursor: Cursor
|
|
56
76
|
$after: Boolean!
|
|
57
77
|
$limit: Int!
|
|
@@ -59,6 +79,7 @@ query campaigns (
|
|
|
59
79
|
campaigns (
|
|
60
80
|
organizationId: $organizationId
|
|
61
81
|
filter: $filter
|
|
82
|
+
sort: $sort
|
|
62
83
|
cursor: $cursor
|
|
63
84
|
after: $after
|
|
64
85
|
limit: $limit
|
|
@@ -69,19 +90,59 @@ query campaigns (
|
|
|
69
90
|
${campaignSummaryFragment}
|
|
70
91
|
`;
|
|
71
92
|
|
|
72
|
-
export const
|
|
73
|
-
query
|
|
93
|
+
export const campaignEditSessionQry = gql`
|
|
94
|
+
query campaignEditSession (
|
|
95
|
+
$campaignId: GenericID!
|
|
96
|
+
) {
|
|
97
|
+
campaignEditSession (
|
|
98
|
+
campaignId: $campaignId
|
|
99
|
+
) {
|
|
100
|
+
organizationId
|
|
101
|
+
status
|
|
102
|
+
campaign {
|
|
103
|
+
${campaignFieldsSelection}
|
|
104
|
+
}
|
|
105
|
+
editor {
|
|
106
|
+
${campaignEditorFieldsSelection}
|
|
107
|
+
}
|
|
108
|
+
editable
|
|
109
|
+
manageable
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
`;
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Fetch the latest organization overrides and picker targets for one form.
|
|
116
|
+
*/
|
|
117
|
+
export const campaignFormAccessSessionQry = gql`
|
|
118
|
+
query campaignFormAccessSession (
|
|
74
119
|
$organizationId: GenericID!
|
|
75
120
|
$campaignId: GenericID!
|
|
76
121
|
) {
|
|
77
|
-
|
|
122
|
+
campaignFormAccessSession (
|
|
78
123
|
organizationId: $organizationId
|
|
79
124
|
campaignId: $campaignId
|
|
80
125
|
) {
|
|
81
|
-
|
|
126
|
+
campaignId
|
|
127
|
+
organizationId
|
|
128
|
+
editVersion
|
|
129
|
+
audience
|
|
130
|
+
editable
|
|
131
|
+
publicId
|
|
132
|
+
grants {
|
|
133
|
+
granteeType
|
|
134
|
+
granteeId
|
|
135
|
+
permission
|
|
136
|
+
}
|
|
137
|
+
organizations {
|
|
138
|
+
id
|
|
139
|
+
name
|
|
140
|
+
operation
|
|
141
|
+
inNetwork
|
|
142
|
+
available
|
|
143
|
+
}
|
|
82
144
|
}
|
|
83
145
|
}
|
|
84
|
-
${campaignFragment}
|
|
85
146
|
`;
|
|
86
147
|
|
|
87
148
|
export const campaignResponsesQry = gql`
|
|
@@ -98,6 +159,21 @@ query campaignResponses (
|
|
|
98
159
|
cursor: $cursor
|
|
99
160
|
after: $after
|
|
100
161
|
limit: $limit
|
|
162
|
+
) {
|
|
163
|
+
...campaignResponseSummaryFragment
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
${campaignResponseSummaryFragment}
|
|
167
|
+
`;
|
|
168
|
+
|
|
169
|
+
export const campaignResponseQry = gql`
|
|
170
|
+
query campaignResponse (
|
|
171
|
+
$organizationId: GenericID!
|
|
172
|
+
$responseId: GenericID!
|
|
173
|
+
) {
|
|
174
|
+
campaignResponse (
|
|
175
|
+
organizationId: $organizationId
|
|
176
|
+
responseId: $responseId
|
|
101
177
|
) {
|
|
102
178
|
...campaignResponseFragment
|
|
103
179
|
}
|
|
@@ -105,6 +181,21 @@ query campaignResponses (
|
|
|
105
181
|
${campaignResponseFragment}
|
|
106
182
|
`;
|
|
107
183
|
|
|
184
|
+
export const campaignResponseOverviewQry = gql`
|
|
185
|
+
query campaignResponseOverview (
|
|
186
|
+
$organizationId: GenericID!
|
|
187
|
+
$campaignId: GenericID!
|
|
188
|
+
) {
|
|
189
|
+
campaignResponseOverview (
|
|
190
|
+
organizationId: $organizationId
|
|
191
|
+
campaignId: $campaignId
|
|
192
|
+
) {
|
|
193
|
+
...campaignResponseOverviewFragment
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
${campaignResponseOverviewFragment}
|
|
197
|
+
`;
|
|
198
|
+
|
|
108
199
|
export const campaignRecipientsQry = gql`
|
|
109
200
|
query campaignRecipients (
|
|
110
201
|
$organizationId: GenericID!
|
|
@@ -125,3 +216,21 @@ query campaignRecipients (
|
|
|
125
216
|
}
|
|
126
217
|
${campaignRecipientFragment}
|
|
127
218
|
`;
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* Fetch aggregate delivery and engagement metrics for one email campaign.
|
|
222
|
+
*/
|
|
223
|
+
export const campaignRecipientOverviewQry = gql`
|
|
224
|
+
query campaignRecipientOverview (
|
|
225
|
+
$organizationId: GenericID!
|
|
226
|
+
$campaignId: GenericID!
|
|
227
|
+
) {
|
|
228
|
+
campaignRecipientOverview (
|
|
229
|
+
organizationId: $organizationId
|
|
230
|
+
campaignId: $campaignId
|
|
231
|
+
) {
|
|
232
|
+
...campaignRecipientOverviewFragment
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
${campaignRecipientOverviewFragment}
|
|
236
|
+
`;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { gql } from 'graphql-tag';
|
|
2
2
|
import {
|
|
3
|
-
dataTableCellFragment,
|
|
4
3
|
dataTableFragment,
|
|
5
|
-
dataTableMetadataFragment,
|
|
6
4
|
dataTableRowFragment,
|
|
5
|
+
dataTableRunFragment,
|
|
7
6
|
} from '../fragments/dataTableFragments.ts';
|
|
8
7
|
|
|
9
8
|
export const dataTablesQry = gql`
|
|
@@ -24,7 +23,6 @@ query dataTables (
|
|
|
24
23
|
limit: $limit
|
|
25
24
|
) {
|
|
26
25
|
...dataTableFragment
|
|
27
|
-
realtimeToken
|
|
28
26
|
}
|
|
29
27
|
}
|
|
30
28
|
|
|
@@ -41,94 +39,55 @@ query dataTable (
|
|
|
41
39
|
dataTableId: $dataTableId
|
|
42
40
|
) {
|
|
43
41
|
...dataTableFragment
|
|
44
|
-
realtimeToken
|
|
45
42
|
}
|
|
46
43
|
}
|
|
47
44
|
|
|
48
45
|
${dataTableFragment}
|
|
49
46
|
`;
|
|
50
47
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
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!
|
|
48
|
+
// One keyset page of a table's live rows. The server resets this query
|
|
49
|
+
// (RESET_ONLY) when the table's rows change.
|
|
50
|
+
export const dataTableRowsQry = gql`
|
|
51
|
+
query dataTableRows (
|
|
68
52
|
$organizationId: GenericID!
|
|
69
|
-
$
|
|
70
|
-
$
|
|
53
|
+
$dataTableId: GenericID!
|
|
54
|
+
$sort: DataTableRowSortInput
|
|
55
|
+
$cursor: String
|
|
56
|
+
$limit: Int
|
|
71
57
|
) {
|
|
72
|
-
|
|
73
|
-
dataTableId: $dataTableId
|
|
58
|
+
dataTableRows (
|
|
74
59
|
organizationId: $organizationId
|
|
60
|
+
dataTableId: $dataTableId
|
|
61
|
+
sort: $sort
|
|
75
62
|
cursor: $cursor
|
|
76
63
|
limit: $limit
|
|
77
64
|
) {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
dataTable {
|
|
82
|
-
...dataTableFragment
|
|
83
|
-
realtimeToken
|
|
84
|
-
}
|
|
65
|
+
nextCursor
|
|
66
|
+
revision
|
|
85
67
|
|
|
86
|
-
|
|
68
|
+
items {
|
|
87
69
|
...dataTableRowFragment
|
|
88
|
-
|
|
89
|
-
cells {
|
|
90
|
-
...dataTableCellFragment
|
|
91
|
-
}
|
|
92
70
|
}
|
|
93
71
|
}
|
|
94
72
|
}
|
|
95
73
|
|
|
96
|
-
${dataTableFragment}
|
|
97
74
|
${dataTableRowFragment}
|
|
98
|
-
${dataTableCellFragment}
|
|
99
75
|
`;
|
|
100
76
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
// acknowledge the normalized client cache.
|
|
104
|
-
export const dataTableChangesQry = gql`
|
|
105
|
-
query dataTableChanges (
|
|
106
|
-
$dataTableId: GenericID!
|
|
77
|
+
export const dataTableRunsQry = gql`
|
|
78
|
+
query dataTableRuns (
|
|
107
79
|
$organizationId: GenericID!
|
|
108
|
-
$
|
|
109
|
-
$limit: Int
|
|
80
|
+
$dataTableId: GenericID!
|
|
81
|
+
$limit: Int
|
|
110
82
|
) {
|
|
111
|
-
|
|
112
|
-
dataTableId: $dataTableId
|
|
83
|
+
dataTableRuns (
|
|
113
84
|
organizationId: $organizationId
|
|
114
|
-
|
|
85
|
+
dataTableId: $dataTableId
|
|
115
86
|
limit: $limit
|
|
116
87
|
) {
|
|
117
|
-
|
|
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
|
-
}
|
|
88
|
+
...dataTableRunFragment
|
|
132
89
|
}
|
|
133
90
|
}
|
|
91
|
+
|
|
92
|
+
${dataTableRunFragment}
|
|
134
93
|
`;
|
|
@@ -1,36 +1,21 @@
|
|
|
1
1
|
import { gql } from 'graphql-tag';
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
emailMessageDetailsFragment,
|
|
4
|
+
emailMessageFragment,
|
|
5
5
|
} from '../fragments/emailFragments.ts';
|
|
6
6
|
import { storageFileFragment } from '../fragments/storageFragments.ts';
|
|
7
7
|
|
|
8
|
-
export const
|
|
9
|
-
query
|
|
8
|
+
export const emailMessageQry = gql`
|
|
9
|
+
query emailMessage (
|
|
10
10
|
$organizationId: GenericID!
|
|
11
|
-
$
|
|
11
|
+
$emailMessageId: ID!
|
|
12
12
|
) {
|
|
13
|
-
|
|
13
|
+
emailMessage (
|
|
14
14
|
organizationId: $organizationId
|
|
15
|
-
|
|
15
|
+
emailMessageId: $emailMessageId
|
|
16
16
|
) {
|
|
17
|
-
...
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
${inboundEmailFragment}
|
|
22
|
-
`;
|
|
23
|
-
|
|
24
|
-
export const outboundEmailQry = gql`
|
|
25
|
-
query outboundEmail (
|
|
26
|
-
$organizationId: GenericID!
|
|
27
|
-
$outboundEmailId: GenericID!
|
|
28
|
-
) {
|
|
29
|
-
outboundEmail (
|
|
30
|
-
organizationId: $organizationId
|
|
31
|
-
outboundEmailId: $outboundEmailId
|
|
32
|
-
) {
|
|
33
|
-
...outboundEmailFragment
|
|
17
|
+
...emailMessageFragment
|
|
18
|
+
...emailMessageDetailsFragment
|
|
34
19
|
|
|
35
20
|
files {
|
|
36
21
|
...storageFileFragment
|
|
@@ -39,19 +24,20 @@ query outboundEmail (
|
|
|
39
24
|
}
|
|
40
25
|
|
|
41
26
|
${storageFileFragment}
|
|
42
|
-
${
|
|
27
|
+
${emailMessageFragment}
|
|
28
|
+
${emailMessageDetailsFragment}
|
|
43
29
|
`;
|
|
44
30
|
|
|
45
|
-
export const
|
|
46
|
-
query
|
|
31
|
+
export const emailMessagesQry = gql`
|
|
32
|
+
query emailMessages (
|
|
47
33
|
$organizationId: GenericID!
|
|
48
|
-
$filter:
|
|
49
|
-
$sort:
|
|
34
|
+
$filter: EmailMessagesFilter
|
|
35
|
+
$sort: EmailMessagesSort
|
|
50
36
|
$cursor: Cursor
|
|
51
37
|
$after: Boolean!
|
|
52
38
|
$limit: Int!
|
|
53
39
|
) {
|
|
54
|
-
|
|
40
|
+
emailMessages (
|
|
55
41
|
organizationId: $organizationId
|
|
56
42
|
filter: $filter
|
|
57
43
|
sort: $sort
|
|
@@ -59,38 +45,9 @@ query inboundEmails (
|
|
|
59
45
|
after: $after
|
|
60
46
|
limit: $limit
|
|
61
47
|
) {
|
|
62
|
-
...
|
|
48
|
+
...emailMessageFragment
|
|
63
49
|
}
|
|
64
50
|
}
|
|
65
51
|
|
|
66
|
-
${
|
|
67
|
-
`;
|
|
68
|
-
|
|
69
|
-
export const outboundEmailsQry = gql`
|
|
70
|
-
query outboundEmails (
|
|
71
|
-
$organizationId: GenericID!
|
|
72
|
-
$filter: OutboundEmailsFilter
|
|
73
|
-
$sort: OutboundEmailsSort
|
|
74
|
-
$cursor: Cursor
|
|
75
|
-
$after: Boolean!
|
|
76
|
-
$limit: Int!
|
|
77
|
-
) {
|
|
78
|
-
outboundEmails (
|
|
79
|
-
organizationId: $organizationId
|
|
80
|
-
filter: $filter
|
|
81
|
-
sort: $sort
|
|
82
|
-
cursor: $cursor
|
|
83
|
-
after: $after
|
|
84
|
-
limit: $limit
|
|
85
|
-
) {
|
|
86
|
-
...outboundEmailFragment
|
|
87
|
-
|
|
88
|
-
files {
|
|
89
|
-
...storageFileFragment
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
${storageFileFragment}
|
|
95
|
-
${outboundEmailFragment}
|
|
52
|
+
${emailMessageFragment}
|
|
96
53
|
`;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { gql } from 'graphql-tag';
|
|
2
|
+
|
|
3
|
+
// Both the note summary and campaign table use this complete inline selection.
|
|
4
|
+
// Report DTOs have no entity identity and must not enter normalized/persisted fragments.
|
|
5
|
+
export const emailCampaignReplyReportQry = gql`
|
|
6
|
+
query emailCampaignReplyReport (
|
|
7
|
+
$organizationId: GenericID!
|
|
8
|
+
$campaignId: GenericID!
|
|
9
|
+
) {
|
|
10
|
+
emailCampaignReplyReport (organizationId: $organizationId, campaignId: $campaignId) {
|
|
11
|
+
organizationId
|
|
12
|
+
campaignId
|
|
13
|
+
campaignTitle
|
|
14
|
+
readAt
|
|
15
|
+
availability
|
|
16
|
+
definitionReason
|
|
17
|
+
limitReason
|
|
18
|
+
instructions
|
|
19
|
+
coverage {
|
|
20
|
+
linkedReplyCount
|
|
21
|
+
spamReplyCount
|
|
22
|
+
nonRecipientReplyCount
|
|
23
|
+
replyCount
|
|
24
|
+
respondentCount
|
|
25
|
+
capturedReplyCount
|
|
26
|
+
capturedRespondentCount
|
|
27
|
+
processingReplyCount
|
|
28
|
+
notCapturedReplyCount
|
|
29
|
+
}
|
|
30
|
+
fields {
|
|
31
|
+
key
|
|
32
|
+
label
|
|
33
|
+
type
|
|
34
|
+
answeredCount
|
|
35
|
+
unclearCount
|
|
36
|
+
withdrawnCount
|
|
37
|
+
missingCount
|
|
38
|
+
unitGroupCount
|
|
39
|
+
omittedUnitGroups
|
|
40
|
+
numeric {
|
|
41
|
+
unit
|
|
42
|
+
count
|
|
43
|
+
sum
|
|
44
|
+
average
|
|
45
|
+
min
|
|
46
|
+
max
|
|
47
|
+
overflow
|
|
48
|
+
}
|
|
49
|
+
boolean {
|
|
50
|
+
trueCount
|
|
51
|
+
falseCount
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
respondents {
|
|
55
|
+
email
|
|
56
|
+
displayName
|
|
57
|
+
replyCount
|
|
58
|
+
lastReplyAt
|
|
59
|
+
lastReplyEmailMessageId
|
|
60
|
+
captureState
|
|
61
|
+
newerUncapturedReplyAt
|
|
62
|
+
answers {
|
|
63
|
+
fieldKey
|
|
64
|
+
status
|
|
65
|
+
numberValue
|
|
66
|
+
textValue
|
|
67
|
+
booleanValue
|
|
68
|
+
unit
|
|
69
|
+
receivedAt
|
|
70
|
+
sourceEmailMessageId
|
|
71
|
+
hasNewerUncapturedReply
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
`;
|