@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.
Files changed (176) hide show
  1. package/audience.d.ts +343 -0
  2. package/cache/config.ts +98 -50
  3. package/cache/index.chat-activity.test.ts +119 -0
  4. package/cache/index.chat.test.ts +92 -0
  5. package/cache/index.helpers.ts +96 -0
  6. package/cache/index.regression.test.ts +149 -0
  7. package/cache/index.test.ts +1017 -127
  8. package/cache/index.ts +1256 -1269
  9. package/cache/optimistic-ui-runtime.ts +46 -0
  10. package/cache/optimistic-ui.ts +401 -0
  11. package/cache/persist.ts +800 -0
  12. package/cache/store.ts +395 -0
  13. package/cache/value.helpers.ts +17 -0
  14. package/client/draft-persistence-indexed-db.ts +413 -0
  15. package/client/draft-persistence.ts +152 -0
  16. package/client/index.ts +3 -0
  17. package/client/request.helpers.ts +14 -0
  18. package/client/request.ts +870 -164
  19. package/deno.lock +187 -0
  20. package/deno.test.json +10 -4
  21. package/gql/eagerQueryMap.ts +12 -0
  22. package/gql/fragments/accountAuthFragments.ts +5 -0
  23. package/gql/fragments/accountFragments.ts +0 -3
  24. package/gql/fragments/accountSessionFragments.ts +16 -0
  25. package/gql/fragments/agentMemoryFragments.ts +23 -0
  26. package/gql/fragments/agentNoteFragments.ts +150 -0
  27. package/gql/fragments/aiChatFragments.ts +42 -0
  28. package/gql/fragments/audienceFragments.ts +141 -0
  29. package/gql/fragments/campaignFragments.ts +566 -0
  30. package/gql/fragments/dataTableFragments.ts +50 -192
  31. package/gql/fragments/emailFragments.ts +32 -17
  32. package/gql/fragments/fieldDocFragments.ts +264 -0
  33. package/gql/fragments/inboundContactFragments.ts +2 -0
  34. package/gql/fragments/logFragments.ts +101 -69
  35. package/gql/fragments/organizationFragments.ts +53 -5
  36. package/gql/fragments/qrCodeFragments.ts +29 -0
  37. package/gql/fragments/scheduleFragments.ts +667 -0
  38. package/gql/fragments/sheetFragments.ts +304 -63
  39. package/gql/fragments/storageFragments.ts +45 -0
  40. package/gql/fragments/workflowFragments.ts +41 -5
  41. package/gql/mutations/accountMutations.ts +0 -2
  42. package/gql/mutations/agentMemoryMutations.ts +68 -0
  43. package/gql/mutations/agentNoteMutations.ts +62 -0
  44. package/gql/mutations/aiChatMutations.ts +49 -4
  45. package/gql/mutations/audienceMutations.ts +71 -0
  46. package/gql/mutations/authMutations.ts +203 -18
  47. package/gql/mutations/billingMutations.ts +17 -27
  48. package/gql/mutations/campaignMutations.ts +258 -0
  49. package/gql/mutations/contactMutations.ts +23 -0
  50. package/gql/mutations/dataTableMutations.ts +19 -54
  51. package/gql/mutations/fieldDocMutations.ts +173 -0
  52. package/gql/mutations/index.ts +10 -2
  53. package/gql/mutations/logMutations.ts +6 -29
  54. package/gql/mutations/organizationMutations.ts +19 -4
  55. package/gql/mutations/qrCodeMutations.ts +20 -0
  56. package/gql/mutations/scheduleMutations.ts +1121 -0
  57. package/gql/mutations/sheetMutations.ts +221 -60
  58. package/gql/mutations/storageMutations.ts +19 -0
  59. package/gql/mutations/workflowMutations.ts +60 -0
  60. package/gql/queries/agentMemoryQueries.ts +28 -0
  61. package/gql/queries/agentNoteQueries.ts +89 -0
  62. package/gql/queries/aiChatQueries.ts +70 -2
  63. package/gql/queries/audienceQueries.ts +128 -0
  64. package/gql/queries/authQueries.ts +47 -0
  65. package/gql/queries/billingQueries.ts +118 -6
  66. package/gql/queries/campaignQueries.ts +236 -0
  67. package/gql/queries/dataTableQueries.ts +61 -13
  68. package/gql/queries/emailQueries.ts +26 -17
  69. package/gql/queries/emailReplyReportQueries.ts +76 -0
  70. package/gql/queries/fieldDocQueries.ts +166 -0
  71. package/gql/queries/inboundContactQueries.ts +4 -0
  72. package/gql/queries/index.ts +10 -2
  73. package/gql/queries/logQueries.ts +68 -30
  74. package/gql/queries/organizationQueries.ts +65 -1
  75. package/gql/queries/qrCodeQueries.ts +20 -0
  76. package/gql/queries/scheduleQueries.ts +691 -0
  77. package/gql/queries/sheetQueries.ts +244 -26
  78. package/gql/queries/storageQueries.ts +38 -0
  79. package/gql/queries/workflowQueries.ts +77 -2
  80. package/hooks/index.helpers.test.ts +50 -0
  81. package/hooks/index.helpers.ts +52 -0
  82. package/hooks/index.ts +2254 -982
  83. package/hooks/use-account-mtn.ts +76 -81
  84. package/hooks/use-agentMemory-mtn.ts +71 -0
  85. package/hooks/use-agentMemory-qry.ts +56 -0
  86. package/hooks/use-agentNote-mtn.ts +82 -0
  87. package/hooks/use-agentNote-qry.ts +190 -0
  88. package/hooks/use-agentNote-recovery.helpers.test.ts +68 -0
  89. package/hooks/use-agentNote-recovery.helpers.ts +58 -0
  90. package/hooks/use-agentNote-recovery.ts +72 -0
  91. package/hooks/use-aiChat-mtn.ts +220 -141
  92. package/hooks/use-aiChat-qry.helpers.test.ts +63 -0
  93. package/hooks/use-aiChat-qry.helpers.ts +124 -0
  94. package/hooks/use-aiChat-qry.ts +341 -237
  95. package/hooks/use-aiChat-stream-mtn.ts +14 -0
  96. package/hooks/use-app-qry.ts +12 -9
  97. package/hooks/use-audience-mtn.ts +194 -0
  98. package/hooks/use-audience-qry.helpers.test.ts +80 -0
  99. package/hooks/use-audience-qry.helpers.ts +63 -0
  100. package/hooks/use-audience-qry.ts +330 -0
  101. package/hooks/use-auth-mtn.ts +435 -252
  102. package/hooks/use-auth-qry.ts +51 -0
  103. package/hooks/use-billing-mtn.ts +31 -0
  104. package/hooks/use-billing-qry.ts +76 -0
  105. package/hooks/use-campaign-generation-recovery.ts +53 -0
  106. package/hooks/use-campaign-mtn.ts +436 -0
  107. package/hooks/use-campaign-qry.helpers.ts +40 -0
  108. package/hooks/use-campaign-qry.ts +834 -0
  109. package/hooks/use-dataTable-mtn.ts +37 -46
  110. package/hooks/use-dataTable-qry.ts +102 -128
  111. package/hooks/use-email-qry.helpers.ts +37 -0
  112. package/hooks/use-email-qry.ts +56 -86
  113. package/hooks/use-emailCampaignReplyReport-qry.ts +27 -0
  114. package/hooks/use-fieldDoc-mtn.ts +262 -0
  115. package/hooks/use-fieldDoc-qry.helpers.test.ts +65 -0
  116. package/hooks/use-fieldDoc-qry.helpers.ts +49 -0
  117. package/hooks/use-fieldDoc-qry.ts +212 -0
  118. package/hooks/use-inboundContact-mtn.ts +19 -16
  119. package/hooks/use-inboundContact-qry.ts +62 -56
  120. package/hooks/use-integration-mtn.ts +56 -38
  121. package/hooks/use-integration-qry.ts +24 -9
  122. package/hooks/use-log-mtn.ts +88 -59
  123. package/hooks/use-log-qry.ts +150 -73
  124. package/hooks/use-organization-mtn.ts +334 -277
  125. package/hooks/use-organization-qry.ts +155 -129
  126. package/hooks/use-publicFormEmail-mtn.ts +27 -0
  127. package/hooks/use-qrCode-mtn.ts +40 -0
  128. package/hooks/use-qrCode-qry.ts +78 -0
  129. package/hooks/use-schedule-mtn.ts +589 -0
  130. package/hooks/use-schedule-qry.ts +738 -0
  131. package/hooks/use-schedule-reactive.ts +486 -0
  132. package/hooks/use-sheet-mtn.ts +157 -79
  133. package/hooks/use-sheet-qry.ts +221 -92
  134. package/hooks/use-storage-mtn.ts +81 -41
  135. package/hooks/use-storage-qry.ts +128 -14
  136. package/hooks/use-workflow-mtn.ts +72 -0
  137. package/hooks/use-workflow-qry.ts +184 -47
  138. package/libs/ai-chat-outgoing.helpers.ts +153 -0
  139. package/libs/ai-chat-outgoing.ts +11 -0
  140. package/libs/ai-chat-outgoing.types.ts +25 -0
  141. package/libs/ai-chat-run-realtime.ts +20 -0
  142. package/libs/ai-chat-submission-realtime.ts +150 -0
  143. package/libs/fragment-realtime-sequence.ts +55 -0
  144. package/libs/fragment-recovery.test.ts +326 -0
  145. package/libs/fragment-recovery.ts +325 -0
  146. package/libs/open-sheet.ts +138 -0
  147. package/libs/orchestrator-realtime.helpers.test.ts +229 -0
  148. package/libs/orchestrator-realtime.helpers.ts +317 -0
  149. package/libs/orchestrator-realtime.ts +433 -0
  150. package/libs/request-cache-regression.test.ts +122 -0
  151. package/libs/request-managed-session.test.ts +574 -0
  152. package/libs/request-no-store.test.ts +419 -0
  153. package/libs/sheet-command-batch.ts +44 -0
  154. package/libs/sheet-view-realtime-router.test.ts +214 -0
  155. package/libs/sheet-view-realtime-router.ts +99 -0
  156. package/libs/sse-ticket.test.ts +26 -0
  157. package/loaders/campaign.test.ts +186 -0
  158. package/loaders/campaign.ts +110 -0
  159. package/loaders/emailPreference.ts +75 -0
  160. package/loaders/rest.ts +12 -0
  161. package/package.json +119 -71
  162. package/schedule.d.ts +1790 -0
  163. package/sse.helpers.ts +19 -0
  164. package/sse.ts +70 -106
  165. package/tests/agent-note-detail-cache.test.ts +120 -0
  166. package/tests/agent-note-search.test.ts +444 -0
  167. package/tsconfig.json +11 -10
  168. package/types.d.ts +77 -26
  169. package/utils.ts +78 -49
  170. package/gql/fragments/billingFragments.ts +0 -25
  171. package/gql/fragments/productFragments.ts +0 -39
  172. package/gql/fragments/reportFragments.ts +0 -90
  173. package/gql/queries/productQueries.ts +0 -31
  174. package/gql/queries/reportQueries.ts +0 -134
  175. package/hooks/use-product-qry.ts +0 -67
  176. 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
@@ -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 './productQueries.ts';
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
- logEntryFragment,
5
- logArableFragment,
6
- logFarmersMarketFragment,
7
- logGrowerNetworkFragment,
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
- ...on LogArable {
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
- ${logArableFragment}
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
- export const logEntriesForReportQry = gql`
93
- query logEntriesForReport (
94
- $organizationId: GenericID!
95
- $reportSourceId: CursorToIDs!
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
- logEntriesForReport (
99
- organizationId: $organizationId
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 { organizationChildFragment, organizationComplianceFragment, organizationFragment, organizationRelationshipFragment, organizationSiteFragment } from '../fragments/organizationFragments.ts';
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
+ `;