@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
|
@@ -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
|
+
`;
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import { gql } from 'graphql-tag';
|
|
2
|
+
import {
|
|
3
|
+
fieldDocAnswerFragment,
|
|
4
|
+
fieldDocDefinitionElementFragment,
|
|
5
|
+
fieldDocDefinitionFragment,
|
|
6
|
+
fieldDocDefinitionSectionFragment,
|
|
7
|
+
fieldDocEditSessionImports,
|
|
8
|
+
fieldDocEditSessionStatement,
|
|
9
|
+
fieldDocProgramEnrollmentImports,
|
|
10
|
+
fieldDocProgramEnrollmentStatement,
|
|
11
|
+
fieldDocProgramStatement,
|
|
12
|
+
fieldDocProgramImports,
|
|
13
|
+
fieldDocSubmissionFragment,
|
|
14
|
+
} from '../fragments/fieldDocFragments.ts';
|
|
15
|
+
import { storageFileFragment } from '../fragments/storageFragments.ts';
|
|
16
|
+
|
|
17
|
+
export const fieldDocProgramEnrollmentsQry = gql`
|
|
18
|
+
query fieldDocProgramEnrollments (
|
|
19
|
+
$organizationId: GenericID!
|
|
20
|
+
$fieldDocProgramId: GenericID
|
|
21
|
+
) {
|
|
22
|
+
fieldDocProgramEnrollments (
|
|
23
|
+
organizationId: $organizationId
|
|
24
|
+
fieldDocProgramId: $fieldDocProgramId
|
|
25
|
+
) {
|
|
26
|
+
${fieldDocProgramEnrollmentStatement}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
${fieldDocProgramEnrollmentImports}
|
|
31
|
+
`;
|
|
32
|
+
|
|
33
|
+
export const fieldDocProgramCatalogQry = gql`
|
|
34
|
+
query fieldDocProgramCatalog (
|
|
35
|
+
$organizationId: GenericID!
|
|
36
|
+
) {
|
|
37
|
+
fieldDocProgramCatalog (
|
|
38
|
+
organizationId: $organizationId
|
|
39
|
+
) {
|
|
40
|
+
${fieldDocProgramStatement}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
${fieldDocProgramImports}
|
|
45
|
+
`;
|
|
46
|
+
|
|
47
|
+
export const fieldDocProgramMetadataQry = gql`
|
|
48
|
+
query fieldDocProgramMetadata (
|
|
49
|
+
$fieldDocProgramId: GenericID!
|
|
50
|
+
) {
|
|
51
|
+
fieldDocProgramMetadata (
|
|
52
|
+
fieldDocProgramId: $fieldDocProgramId
|
|
53
|
+
) {
|
|
54
|
+
${fieldDocProgramStatement}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
${fieldDocProgramImports}
|
|
59
|
+
`;
|
|
60
|
+
|
|
61
|
+
export const fieldDocSubmissionsQry = gql`
|
|
62
|
+
query fieldDocSubmissions (
|
|
63
|
+
$organizationId: GenericID!
|
|
64
|
+
$filter: FieldDocSubmissionsFilter!
|
|
65
|
+
$cursor: Cursor
|
|
66
|
+
$after: Boolean!
|
|
67
|
+
$limit: Int!
|
|
68
|
+
) {
|
|
69
|
+
fieldDocSubmissions (
|
|
70
|
+
organizationId: $organizationId
|
|
71
|
+
filter: $filter
|
|
72
|
+
cursor: $cursor
|
|
73
|
+
after: $after
|
|
74
|
+
limit: $limit
|
|
75
|
+
) {
|
|
76
|
+
...fieldDocSubmissionFragment
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
${fieldDocSubmissionFragment}
|
|
81
|
+
`;
|
|
82
|
+
|
|
83
|
+
export const fieldDocSubmissionDocumentQry = gql`
|
|
84
|
+
query fieldDocSubmissionDocument (
|
|
85
|
+
$fieldDocSubmissionId: GenericID!
|
|
86
|
+
) {
|
|
87
|
+
fieldDocSubmissionDocument (
|
|
88
|
+
fieldDocSubmissionId: $fieldDocSubmissionId
|
|
89
|
+
) {
|
|
90
|
+
id
|
|
91
|
+
description
|
|
92
|
+
|
|
93
|
+
submission {
|
|
94
|
+
...fieldDocSubmissionFragment
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
definition {
|
|
98
|
+
...fieldDocDefinitionFragment
|
|
99
|
+
|
|
100
|
+
sections {
|
|
101
|
+
...fieldDocDefinitionSectionFragment
|
|
102
|
+
|
|
103
|
+
elements {
|
|
104
|
+
...fieldDocDefinitionElementFragment
|
|
105
|
+
|
|
106
|
+
files {
|
|
107
|
+
...storageFileFragment
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
answers {
|
|
114
|
+
...fieldDocAnswerFragment
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
aside {
|
|
118
|
+
title
|
|
119
|
+
nullText
|
|
120
|
+
|
|
121
|
+
items {
|
|
122
|
+
className
|
|
123
|
+
label
|
|
124
|
+
text
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
${fieldDocSubmissionFragment}
|
|
131
|
+
${fieldDocDefinitionFragment}
|
|
132
|
+
${fieldDocDefinitionSectionFragment}
|
|
133
|
+
${fieldDocDefinitionElementFragment}
|
|
134
|
+
${storageFileFragment}
|
|
135
|
+
${fieldDocAnswerFragment}
|
|
136
|
+
`;
|
|
137
|
+
|
|
138
|
+
export const fieldDocSubmissionMetadataQry = gql`
|
|
139
|
+
query fieldDocSubmissionMetadata (
|
|
140
|
+
$fieldDocSubmissionId: GenericID!
|
|
141
|
+
) {
|
|
142
|
+
fieldDocSubmissionMetadata (
|
|
143
|
+
fieldDocSubmissionId: $fieldDocSubmissionId
|
|
144
|
+
) {
|
|
145
|
+
id
|
|
146
|
+
title
|
|
147
|
+
description
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
`;
|
|
151
|
+
|
|
152
|
+
export const fieldDocEditSessionQry = gql`
|
|
153
|
+
query fieldDocEditSession (
|
|
154
|
+
$organizationId: GenericID!
|
|
155
|
+
$fieldDocId: GenericID!
|
|
156
|
+
) {
|
|
157
|
+
fieldDocEditSession (
|
|
158
|
+
organizationId: $organizationId
|
|
159
|
+
fieldDocId: $fieldDocId
|
|
160
|
+
) {
|
|
161
|
+
${fieldDocEditSessionStatement}
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
${fieldDocEditSessionImports}
|
|
166
|
+
`;
|
|
@@ -21,6 +21,8 @@ export const inboundContactsQry = gql`
|
|
|
21
21
|
query inboundContacts (
|
|
22
22
|
$organizationId: GenericID!
|
|
23
23
|
$sort: InboundContactsSort
|
|
24
|
+
$query: String
|
|
25
|
+
$emailEligible: Boolean
|
|
24
26
|
$cursor: Cursor
|
|
25
27
|
$after: Boolean!
|
|
26
28
|
$limit: Int!
|
|
@@ -28,6 +30,8 @@ query inboundContacts (
|
|
|
28
30
|
inboundContacts (
|
|
29
31
|
organizationId: $organizationId
|
|
30
32
|
sort: $sort
|
|
33
|
+
query: $query
|
|
34
|
+
emailEligible: $emailEligible
|
|
31
35
|
cursor: $cursor
|
|
32
36
|
after: $after
|
|
33
37
|
limit: $limit
|
package/gql/queries/index.ts
CHANGED
|
@@ -1,11 +1,19 @@
|
|
|
1
|
+
export * from './audienceQueries.ts';
|
|
2
|
+
export * from './campaignQueries.ts';
|
|
3
|
+
export * from './agentMemoryQueries.ts';
|
|
4
|
+
export * from './agentNoteQueries.ts';
|
|
1
5
|
export * from './aiChatQueries.ts';
|
|
2
6
|
export * from './appQueries.ts';
|
|
7
|
+
export * from './authQueries.ts';
|
|
3
8
|
export * from './billingQueries.ts';
|
|
9
|
+
export * from './dataTableQueries.ts';
|
|
4
10
|
export * from './emailQueries.ts';
|
|
11
|
+
export * from './emailReplyReportQueries.ts';
|
|
12
|
+
export * from './fieldDocQueries.ts';
|
|
5
13
|
export * from './inboundContactQueries.ts';
|
|
6
14
|
export * from './logQueries.ts';
|
|
7
15
|
export * from './organizationQueries.ts';
|
|
8
|
-
export * from './
|
|
9
|
-
export * from './dataTableQueries.ts';
|
|
16
|
+
export * from './scheduleQueries.ts';
|
|
10
17
|
export * from './sheetQueries.ts';
|
|
18
|
+
export * from './storageQueries.ts';
|
|
11
19
|
export * from './workflowQueries.ts';
|
|
@@ -1,29 +1,17 @@
|
|
|
1
1
|
import { gql } from 'graphql-tag';
|
|
2
2
|
import { accountFragment } from '../fragments/accountFragments.ts';
|
|
3
3
|
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
logLivestockFragment
|
|
4
|
+
logEntryDetailsFragment,
|
|
5
|
+
logEntryFragment,
|
|
6
|
+
logRevisionFragment,
|
|
7
|
+
logRevisionSummaryFragment,
|
|
9
8
|
} from '../fragments/logFragments.ts';
|
|
10
9
|
import { storageFileFragment } from '../fragments/storageFragments.ts';
|
|
11
10
|
|
|
12
11
|
export const logEntryFragmentStatement = `...logEntryFragment
|
|
13
12
|
|
|
14
13
|
details {
|
|
15
|
-
...
|
|
16
|
-
...logArableFragment
|
|
17
|
-
}
|
|
18
|
-
...on LogFarmersMarket {
|
|
19
|
-
...logFarmersMarketFragment
|
|
20
|
-
}
|
|
21
|
-
...on LogGrowerNetwork {
|
|
22
|
-
...logGrowerNetworkFragment
|
|
23
|
-
}
|
|
24
|
-
...on LogLivestock {
|
|
25
|
-
...logLivestockFragment
|
|
26
|
-
}
|
|
14
|
+
...logEntryDetailsFragment
|
|
27
15
|
}
|
|
28
16
|
|
|
29
17
|
account {
|
|
@@ -33,10 +21,7 @@ export const logEntryFragmentStatement = `...logEntryFragment
|
|
|
33
21
|
export const logEntryFragmentImports = `
|
|
34
22
|
${accountFragment}
|
|
35
23
|
${logEntryFragment}
|
|
36
|
-
${
|
|
37
|
-
${logFarmersMarketFragment}
|
|
38
|
-
${logGrowerNetworkFragment}
|
|
39
|
-
${logLivestockFragment}
|
|
24
|
+
${logEntryDetailsFragment}
|
|
40
25
|
`;
|
|
41
26
|
|
|
42
27
|
export const logEntryQry = gql`
|
|
@@ -89,16 +74,13 @@ ${storageFileFragment}
|
|
|
89
74
|
${logEntryFragmentImports}
|
|
90
75
|
`;
|
|
91
76
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
$
|
|
96
|
-
$reportSubmissionId: GenericID!
|
|
77
|
+
// Lives beside logEntryFragmentStatement so the document page's logs share the log list's shape
|
|
78
|
+
export const fieldDocSubmissionLogsQry = gql`
|
|
79
|
+
query fieldDocSubmissionLogs (
|
|
80
|
+
$fieldDocSubmissionId: GenericID!
|
|
97
81
|
) {
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
reportSourceId: $reportSourceId
|
|
101
|
-
reportSubmissionId: $reportSubmissionId
|
|
82
|
+
fieldDocSubmissionLogs (
|
|
83
|
+
fieldDocSubmissionId: $fieldDocSubmissionId
|
|
102
84
|
) {
|
|
103
85
|
${logEntryFragmentStatement}
|
|
104
86
|
|
|
@@ -111,3 +93,59 @@ query logEntriesForReport (
|
|
|
111
93
|
${storageFileFragment}
|
|
112
94
|
${logEntryFragmentImports}
|
|
113
95
|
`;
|
|
96
|
+
|
|
97
|
+
export const logRevisionsQry = gql`
|
|
98
|
+
query logRevisions (
|
|
99
|
+
$organizationId: GenericID!
|
|
100
|
+
$logEntryId: GenericID!
|
|
101
|
+
$cursor: Cursor
|
|
102
|
+
$after: Boolean!
|
|
103
|
+
$limit: Int!
|
|
104
|
+
) {
|
|
105
|
+
logRevisions (
|
|
106
|
+
organizationId: $organizationId
|
|
107
|
+
logEntryId: $logEntryId
|
|
108
|
+
cursor: $cursor
|
|
109
|
+
after: $after
|
|
110
|
+
limit: $limit
|
|
111
|
+
) {
|
|
112
|
+
...logRevisionSummaryFragment
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
${logRevisionSummaryFragment}
|
|
117
|
+
`;
|
|
118
|
+
|
|
119
|
+
export const logRevisionQry = gql`
|
|
120
|
+
query logRevision (
|
|
121
|
+
$organizationId: GenericID!
|
|
122
|
+
$revisionId: GenericID!
|
|
123
|
+
) {
|
|
124
|
+
logRevision (
|
|
125
|
+
organizationId: $organizationId
|
|
126
|
+
revisionId: $revisionId
|
|
127
|
+
) {
|
|
128
|
+
...logRevisionFragment
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
${logRevisionFragment}
|
|
133
|
+
`;
|
|
134
|
+
|
|
135
|
+
export const logRevisionProofDownloadUrlQry = gql`
|
|
136
|
+
query logRevisionProofDownloadUrl (
|
|
137
|
+
$organizationId: GenericID!
|
|
138
|
+
$revisionId: GenericID!
|
|
139
|
+
) {
|
|
140
|
+
logRevisionProofDownloadUrl (
|
|
141
|
+
organizationId: $organizationId
|
|
142
|
+
revisionId: $revisionId
|
|
143
|
+
) {
|
|
144
|
+
url
|
|
145
|
+
expiresAt
|
|
146
|
+
object
|
|
147
|
+
generation
|
|
148
|
+
hash
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
`;
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
import { gql } from 'graphql-tag';
|
|
2
2
|
import { accountFragment } from '../fragments/accountFragments.ts';
|
|
3
3
|
import { integrationConnectionFragment } from '../fragments/integrationFragments.ts';
|
|
4
|
-
import {
|
|
4
|
+
import {
|
|
5
|
+
organizationChildFragment,
|
|
6
|
+
organizationComplianceFragment,
|
|
7
|
+
organizationFragment,
|
|
8
|
+
organizationRelationshipFragment,
|
|
9
|
+
organizationSiteFragment,
|
|
10
|
+
orgPageRouteFragment,
|
|
11
|
+
} from '../fragments/organizationFragments.ts';
|
|
5
12
|
import { emailFragment, phoneFragment } from '../fragments/otherFragments.ts';
|
|
6
13
|
import { storageFileFragment } from '../fragments/storageFragments.ts';
|
|
7
14
|
|
|
@@ -56,10 +63,53 @@ query myOrganizations {
|
|
|
56
63
|
myOrganizations {
|
|
57
64
|
...organizationRelationshipFragment
|
|
58
65
|
|
|
66
|
+
billingAccess {
|
|
67
|
+
enforcement
|
|
68
|
+
planKey
|
|
69
|
+
subscriptionStatus
|
|
70
|
+
paidThroughAt
|
|
71
|
+
accessEndsAt
|
|
72
|
+
accessLockedAt
|
|
73
|
+
graceDays
|
|
74
|
+
}
|
|
75
|
+
|
|
59
76
|
organization {
|
|
60
77
|
...organizationFragment
|
|
61
78
|
membersCount
|
|
62
79
|
|
|
80
|
+
logTaxonomy {
|
|
81
|
+
operation
|
|
82
|
+
groups {
|
|
83
|
+
key
|
|
84
|
+
label
|
|
85
|
+
ordinal
|
|
86
|
+
requiredFields
|
|
87
|
+
orRequiredFields
|
|
88
|
+
}
|
|
89
|
+
activities {
|
|
90
|
+
systemOnly
|
|
91
|
+
key
|
|
92
|
+
groupKey
|
|
93
|
+
agentText
|
|
94
|
+
ordinal
|
|
95
|
+
requiredFields
|
|
96
|
+
orRequiredFields
|
|
97
|
+
}
|
|
98
|
+
fieldDefs {
|
|
99
|
+
key
|
|
100
|
+
fieldType
|
|
101
|
+
required
|
|
102
|
+
ordinal
|
|
103
|
+
agentHint
|
|
104
|
+
options
|
|
105
|
+
allowedUnits
|
|
106
|
+
includedActivityKeys
|
|
107
|
+
excludedActivityKeys
|
|
108
|
+
groupKey
|
|
109
|
+
activityKey
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
63
113
|
compliance {
|
|
64
114
|
...organizationComplianceFragment
|
|
65
115
|
|
|
@@ -165,3 +215,17 @@ query organizationSites (
|
|
|
165
215
|
|
|
166
216
|
${organizationSiteFragment}
|
|
167
217
|
`;
|
|
218
|
+
|
|
219
|
+
export const pageRoutesQry = gql`
|
|
220
|
+
query pageRoutes (
|
|
221
|
+
$organizationId: GenericID!
|
|
222
|
+
) {
|
|
223
|
+
pageRoutes (
|
|
224
|
+
organizationId: $organizationId
|
|
225
|
+
) {
|
|
226
|
+
...orgPageRouteFragment
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
${orgPageRouteFragment}
|
|
231
|
+
`;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { gql } from 'graphql-tag';
|
|
2
|
+
import { qrCodeFragment } from '../fragments/qrCodeFragments.ts';
|
|
3
|
+
|
|
4
|
+
export const qrCodeQry = gql`
|
|
5
|
+
query qrCode($organizationId: GenericID!, $qrCodeId: GenericID, $publicId: String) {
|
|
6
|
+
qrCode(organizationId: $organizationId, qrCodeId: $qrCodeId, publicId: $publicId) {
|
|
7
|
+
...qrCodeFragment
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
${qrCodeFragment}
|
|
11
|
+
`;
|
|
12
|
+
|
|
13
|
+
export const qrCodesQry = gql`
|
|
14
|
+
query qrCodes($organizationId: GenericID!, $filter: QrCodesFilter, $cursor: Cursor, $limit: Int = 50) {
|
|
15
|
+
qrCodes(organizationId: $organizationId, filter: $filter, cursor: $cursor, limit: $limit) {
|
|
16
|
+
...qrCodeFragment
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
${qrCodeFragment}
|
|
20
|
+
`;
|