@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,90 +1,118 @@
|
|
|
1
1
|
import { gql } from 'graphql-tag';
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
fieldDocAnswerFragment,
|
|
4
|
+
fieldDocDefinitionElementFragment,
|
|
5
|
+
fieldDocDefinitionFragment,
|
|
6
|
+
fieldDocDefinitionSectionFragment,
|
|
7
|
+
fieldDocEditSessionImports,
|
|
8
|
+
fieldDocEditSessionStatement,
|
|
9
|
+
fieldDocProgramEnrollmentImports,
|
|
10
|
+
fieldDocProgramEnrollmentStatement,
|
|
11
|
+
fieldDocProgramStatement,
|
|
12
|
+
fieldDocProgramImports,
|
|
7
13
|
fieldDocSubmissionFragment,
|
|
8
14
|
} from '../fragments/fieldDocFragments.ts';
|
|
9
15
|
import { storageFileFragment } from '../fragments/storageFragments.ts';
|
|
10
16
|
|
|
11
|
-
export const
|
|
12
|
-
query
|
|
13
|
-
$
|
|
17
|
+
export const fieldDocProgramEnrollmentsQry = gql`
|
|
18
|
+
query fieldDocProgramEnrollments (
|
|
19
|
+
$organizationId: GenericID!
|
|
20
|
+
$fieldDocProgramId: GenericID
|
|
14
21
|
) {
|
|
15
|
-
|
|
16
|
-
|
|
22
|
+
fieldDocProgramEnrollments (
|
|
23
|
+
organizationId: $organizationId
|
|
24
|
+
fieldDocProgramId: $fieldDocProgramId
|
|
17
25
|
) {
|
|
18
|
-
|
|
19
|
-
title
|
|
20
|
-
description
|
|
26
|
+
${fieldDocProgramEnrollmentStatement}
|
|
21
27
|
}
|
|
22
28
|
}
|
|
29
|
+
|
|
30
|
+
${fieldDocProgramEnrollmentImports}
|
|
23
31
|
`;
|
|
24
32
|
|
|
25
|
-
export const
|
|
26
|
-
query
|
|
27
|
-
$
|
|
33
|
+
export const fieldDocProgramCatalogQry = gql`
|
|
34
|
+
query fieldDocProgramCatalog (
|
|
35
|
+
$organizationId: GenericID!
|
|
28
36
|
) {
|
|
29
|
-
|
|
30
|
-
|
|
37
|
+
fieldDocProgramCatalog (
|
|
38
|
+
organizationId: $organizationId
|
|
31
39
|
) {
|
|
32
|
-
|
|
33
|
-
name
|
|
34
|
-
shortName
|
|
40
|
+
${fieldDocProgramStatement}
|
|
35
41
|
}
|
|
36
42
|
}
|
|
43
|
+
|
|
44
|
+
${fieldDocProgramImports}
|
|
37
45
|
`;
|
|
38
46
|
|
|
39
|
-
export const
|
|
40
|
-
query
|
|
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 (
|
|
41
63
|
$organizationId: GenericID!
|
|
42
|
-
$filter:
|
|
43
|
-
$
|
|
64
|
+
$filter: FieldDocSubmissionsFilter!
|
|
65
|
+
$cursor: Cursor
|
|
66
|
+
$after: Boolean!
|
|
67
|
+
$limit: Int!
|
|
44
68
|
) {
|
|
45
|
-
|
|
69
|
+
fieldDocSubmissions (
|
|
46
70
|
organizationId: $organizationId
|
|
47
71
|
filter: $filter
|
|
48
|
-
|
|
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
|
|
49
89
|
) {
|
|
50
|
-
|
|
90
|
+
id
|
|
91
|
+
description
|
|
51
92
|
|
|
52
93
|
submission {
|
|
53
94
|
...fieldDocSubmissionFragment
|
|
54
95
|
}
|
|
55
96
|
|
|
56
|
-
|
|
57
|
-
...
|
|
97
|
+
definition {
|
|
98
|
+
...fieldDocDefinitionFragment
|
|
99
|
+
|
|
100
|
+
sections {
|
|
101
|
+
...fieldDocDefinitionSectionFragment
|
|
58
102
|
|
|
59
|
-
|
|
60
|
-
|
|
103
|
+
elements {
|
|
104
|
+
...fieldDocDefinitionElementFragment
|
|
61
105
|
|
|
62
|
-
|
|
63
|
-
|
|
106
|
+
files {
|
|
107
|
+
...storageFileFragment
|
|
108
|
+
}
|
|
64
109
|
}
|
|
65
110
|
}
|
|
66
111
|
}
|
|
67
112
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
${fieldDocFragment}
|
|
72
|
-
${fieldDocSubmissionFragment}
|
|
73
|
-
${fieldDocSectionFragment}
|
|
74
|
-
${storageFileFragment}
|
|
75
|
-
${fieldDocElementDataFragment}
|
|
76
|
-
`;
|
|
77
|
-
|
|
78
|
-
export const fieldDocQry = gql`
|
|
79
|
-
query fieldDoc (
|
|
80
|
-
$organizationId: GenericID!
|
|
81
|
-
$fieldDocSourceId: CursorToIDs!
|
|
82
|
-
) {
|
|
83
|
-
fieldDoc (
|
|
84
|
-
organizationId: $organizationId
|
|
85
|
-
fieldDocSourceId: $fieldDocSourceId
|
|
86
|
-
) {
|
|
87
|
-
...fieldDocFragment
|
|
113
|
+
answers {
|
|
114
|
+
...fieldDocAnswerFragment
|
|
115
|
+
}
|
|
88
116
|
|
|
89
117
|
aside {
|
|
90
118
|
title
|
|
@@ -96,63 +124,43 @@ query fieldDoc (
|
|
|
96
124
|
text
|
|
97
125
|
}
|
|
98
126
|
}
|
|
99
|
-
|
|
100
|
-
submission {
|
|
101
|
-
...fieldDocSubmissionFragment
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
sections {
|
|
105
|
-
...fieldDocSectionFragment
|
|
106
|
-
|
|
107
|
-
elements {
|
|
108
|
-
...fieldDocElementDataFragment
|
|
109
|
-
|
|
110
|
-
files {
|
|
111
|
-
...storageFileFragment
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
|
|
116
127
|
}
|
|
117
128
|
}
|
|
118
129
|
|
|
119
|
-
${fieldDocFragment}
|
|
120
130
|
${fieldDocSubmissionFragment}
|
|
121
|
-
${
|
|
131
|
+
${fieldDocDefinitionFragment}
|
|
132
|
+
${fieldDocDefinitionSectionFragment}
|
|
133
|
+
${fieldDocDefinitionElementFragment}
|
|
122
134
|
${storageFileFragment}
|
|
123
|
-
${
|
|
135
|
+
${fieldDocAnswerFragment}
|
|
124
136
|
`;
|
|
125
137
|
|
|
126
|
-
export const
|
|
127
|
-
query
|
|
128
|
-
$
|
|
138
|
+
export const fieldDocSubmissionMetadataQry = gql`
|
|
139
|
+
query fieldDocSubmissionMetadata (
|
|
140
|
+
$fieldDocSubmissionId: GenericID!
|
|
129
141
|
) {
|
|
130
|
-
|
|
131
|
-
|
|
142
|
+
fieldDocSubmissionMetadata (
|
|
143
|
+
fieldDocSubmissionId: $fieldDocSubmissionId
|
|
132
144
|
) {
|
|
133
|
-
|
|
145
|
+
id
|
|
146
|
+
title
|
|
147
|
+
description
|
|
134
148
|
}
|
|
135
149
|
}
|
|
136
|
-
|
|
137
|
-
${fieldDocGroupFragment}
|
|
138
150
|
`;
|
|
139
151
|
|
|
140
|
-
export const
|
|
141
|
-
query
|
|
152
|
+
export const fieldDocEditSessionQry = gql`
|
|
153
|
+
query fieldDocEditSession (
|
|
142
154
|
$organizationId: GenericID!
|
|
143
|
-
$
|
|
144
|
-
$sort: FieldDocsSort
|
|
145
|
-
$limit: Int!
|
|
155
|
+
$fieldDocId: GenericID!
|
|
146
156
|
) {
|
|
147
|
-
|
|
157
|
+
fieldDocEditSession (
|
|
148
158
|
organizationId: $organizationId
|
|
149
|
-
|
|
150
|
-
sort: $sort
|
|
151
|
-
limit: $limit
|
|
159
|
+
fieldDocId: $fieldDocId
|
|
152
160
|
) {
|
|
153
|
-
|
|
161
|
+
${fieldDocEditSessionStatement}
|
|
154
162
|
}
|
|
155
163
|
}
|
|
156
164
|
|
|
157
|
-
${
|
|
165
|
+
${fieldDocEditSessionImports}
|
|
158
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,12 +1,14 @@
|
|
|
1
|
+
export * from './audienceQueries.ts';
|
|
1
2
|
export * from './campaignQueries.ts';
|
|
2
|
-
export * from './agentDocQueries.ts';
|
|
3
3
|
export * from './agentMemoryQueries.ts';
|
|
4
|
+
export * from './agentNoteQueries.ts';
|
|
4
5
|
export * from './aiChatQueries.ts';
|
|
5
6
|
export * from './appQueries.ts';
|
|
6
7
|
export * from './authQueries.ts';
|
|
7
8
|
export * from './billingQueries.ts';
|
|
8
9
|
export * from './dataTableQueries.ts';
|
|
9
10
|
export * from './emailQueries.ts';
|
|
11
|
+
export * from './emailReplyReportQueries.ts';
|
|
10
12
|
export * from './fieldDocQueries.ts';
|
|
11
13
|
export * from './inboundContactQueries.ts';
|
|
12
14
|
export * from './logQueries.ts';
|
|
@@ -3,6 +3,8 @@ import { accountFragment } from '../fragments/accountFragments.ts';
|
|
|
3
3
|
import {
|
|
4
4
|
logEntryDetailsFragment,
|
|
5
5
|
logEntryFragment,
|
|
6
|
+
logRevisionFragment,
|
|
7
|
+
logRevisionSummaryFragment,
|
|
6
8
|
} from '../fragments/logFragments.ts';
|
|
7
9
|
import { storageFileFragment } from '../fragments/storageFragments.ts';
|
|
8
10
|
|
|
@@ -72,15 +74,12 @@ ${storageFileFragment}
|
|
|
72
74
|
${logEntryFragmentImports}
|
|
73
75
|
`;
|
|
74
76
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
$fieldDocSourceId: CursorToIDs!
|
|
77
|
+
// Lives beside logEntryFragmentStatement so the document page's logs share the log list's shape
|
|
78
|
+
export const fieldDocSubmissionLogsQry = gql`
|
|
79
|
+
query fieldDocSubmissionLogs (
|
|
79
80
|
$fieldDocSubmissionId: GenericID!
|
|
80
81
|
) {
|
|
81
|
-
|
|
82
|
-
organizationId: $organizationId
|
|
83
|
-
fieldDocSourceId: $fieldDocSourceId
|
|
82
|
+
fieldDocSubmissionLogs (
|
|
84
83
|
fieldDocSubmissionId: $fieldDocSubmissionId
|
|
85
84
|
) {
|
|
86
85
|
${logEntryFragmentStatement}
|
|
@@ -94,3 +93,59 @@ query logEntriesForFieldDoc (
|
|
|
94
93
|
${storageFileFragment}
|
|
95
94
|
${logEntryFragmentImports}
|
|
96
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
|
+
`;
|
|
@@ -63,6 +63,16 @@ query myOrganizations {
|
|
|
63
63
|
myOrganizations {
|
|
64
64
|
...organizationRelationshipFragment
|
|
65
65
|
|
|
66
|
+
billingAccess {
|
|
67
|
+
enforcement
|
|
68
|
+
planKey
|
|
69
|
+
subscriptionStatus
|
|
70
|
+
paidThroughAt
|
|
71
|
+
accessEndsAt
|
|
72
|
+
accessLockedAt
|
|
73
|
+
graceDays
|
|
74
|
+
}
|
|
75
|
+
|
|
66
76
|
organization {
|
|
67
77
|
...organizationFragment
|
|
68
78
|
membersCount
|
|
@@ -77,6 +87,7 @@ query myOrganizations {
|
|
|
77
87
|
orRequiredFields
|
|
78
88
|
}
|
|
79
89
|
activities {
|
|
90
|
+
systemOnly
|
|
80
91
|
key
|
|
81
92
|
groupKey
|
|
82
93
|
agentText
|
|
@@ -92,6 +103,8 @@ query myOrganizations {
|
|
|
92
103
|
agentHint
|
|
93
104
|
options
|
|
94
105
|
allowedUnits
|
|
106
|
+
includedActivityKeys
|
|
107
|
+
excludedActivityKeys
|
|
95
108
|
groupKey
|
|
96
109
|
activityKey
|
|
97
110
|
}
|
|
@@ -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
|
+
`;
|