@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.
Files changed (165) hide show
  1. package/audience.d.ts +343 -0
  2. package/cache/config.ts +58 -24
  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 +370 -42
  8. package/cache/index.ts +326 -799
  9. package/cache/optimistic-ui-runtime.ts +46 -0
  10. package/cache/optimistic-ui.ts +401 -0
  11. package/cache/persist.ts +98 -19
  12. package/cache/store.ts +22 -64
  13. package/cache/value.helpers.ts +17 -0
  14. package/{drafts/store.ts → client/draft-persistence-indexed-db.ts} +19 -3
  15. package/{drafts/index.ts → client/draft-persistence.ts} +5 -2
  16. package/client/index.ts +3 -2
  17. package/client/request.helpers.ts +14 -0
  18. package/client/request.ts +130 -215
  19. package/deno.lock +17 -0
  20. package/deno.test.json +2 -0
  21. package/gql/fragments/agentMemoryFragments.ts +5 -1
  22. package/gql/fragments/agentNoteFragments.ts +150 -0
  23. package/gql/fragments/aiChatFragments.ts +36 -10
  24. package/gql/fragments/audienceFragments.ts +141 -0
  25. package/gql/fragments/campaignFragments.ts +415 -126
  26. package/gql/fragments/dataTableFragments.ts +48 -80
  27. package/gql/fragments/emailFragments.ts +28 -23
  28. package/gql/fragments/fieldDocFragments.ts +222 -40
  29. package/gql/fragments/inboundContactFragments.ts +2 -0
  30. package/gql/fragments/logFragments.ts +93 -2
  31. package/gql/fragments/organizationFragments.ts +10 -0
  32. package/gql/fragments/qrCodeFragments.ts +29 -0
  33. package/gql/fragments/scheduleFragments.ts +652 -140
  34. package/gql/fragments/sheetFragments.ts +84 -373
  35. package/gql/fragments/storageFragments.ts +25 -1
  36. package/gql/fragments/workflowFragments.ts +13 -1
  37. package/gql/mutations/agentMemoryMutations.ts +32 -0
  38. package/gql/mutations/agentNoteMutations.ts +62 -0
  39. package/gql/mutations/aiChatMutations.ts +36 -4
  40. package/gql/mutations/audienceMutations.ts +71 -0
  41. package/gql/mutations/authMutations.ts +45 -1
  42. package/gql/mutations/billingMutations.ts +24 -0
  43. package/gql/mutations/campaignMutations.ts +170 -127
  44. package/gql/mutations/contactMutations.ts +23 -0
  45. package/gql/mutations/dataTableMutations.ts +18 -75
  46. package/gql/mutations/fieldDocMutations.ts +162 -13
  47. package/gql/mutations/index.ts +8 -5
  48. package/gql/mutations/organizationMutations.ts +6 -0
  49. package/gql/mutations/qrCodeMutations.ts +20 -0
  50. package/gql/mutations/scheduleMutations.ts +1052 -354
  51. package/gql/mutations/sheetMutations.ts +62 -118
  52. package/gql/mutations/storageMutations.ts +0 -1
  53. package/gql/mutations/workflowMutations.ts +18 -0
  54. package/gql/queries/agentMemoryQueries.ts +6 -0
  55. package/gql/queries/agentNoteQueries.ts +89 -0
  56. package/gql/queries/aiChatQueries.ts +56 -4
  57. package/gql/queries/audienceQueries.ts +128 -0
  58. package/gql/queries/authQueries.ts +6 -0
  59. package/gql/queries/billingQueries.ts +95 -6
  60. package/gql/queries/campaignQueries.ts +132 -23
  61. package/gql/queries/dataTableQueries.ts +24 -65
  62. package/gql/queries/emailQueries.ts +18 -61
  63. package/gql/queries/emailReplyReportQueries.ts +76 -0
  64. package/gql/queries/fieldDocQueries.ts +100 -92
  65. package/gql/queries/inboundContactQueries.ts +4 -0
  66. package/gql/queries/index.ts +3 -1
  67. package/gql/queries/logQueries.ts +62 -7
  68. package/gql/queries/organizationQueries.ts +13 -0
  69. package/gql/queries/qrCodeQueries.ts +20 -0
  70. package/gql/queries/scheduleQueries.ts +633 -257
  71. package/gql/queries/sheetQueries.ts +59 -152
  72. package/gql/queries/workflowQueries.ts +10 -4
  73. package/hooks/index.helpers.test.ts +50 -0
  74. package/hooks/index.helpers.ts +52 -0
  75. package/hooks/index.ts +863 -685
  76. package/hooks/use-agentMemory-mtn.ts +29 -31
  77. package/hooks/use-agentMemory-qry.ts +15 -3
  78. package/hooks/use-agentNote-mtn.ts +82 -0
  79. package/hooks/use-agentNote-qry.ts +190 -0
  80. package/hooks/use-agentNote-recovery.helpers.test.ts +68 -0
  81. package/hooks/use-agentNote-recovery.helpers.ts +58 -0
  82. package/hooks/use-agentNote-recovery.ts +72 -0
  83. package/hooks/use-aiChat-mtn.ts +96 -112
  84. package/hooks/use-aiChat-qry.helpers.test.ts +63 -0
  85. package/hooks/use-aiChat-qry.helpers.ts +124 -0
  86. package/hooks/use-aiChat-qry.ts +229 -383
  87. package/hooks/use-aiChat-stream-mtn.ts +14 -0
  88. package/hooks/use-audience-mtn.ts +194 -0
  89. package/hooks/use-audience-qry.helpers.test.ts +80 -0
  90. package/hooks/use-audience-qry.helpers.ts +63 -0
  91. package/hooks/use-audience-qry.ts +330 -0
  92. package/hooks/use-auth-mtn.ts +30 -1
  93. package/hooks/use-billing-mtn.ts +31 -0
  94. package/hooks/use-billing-qry.ts +76 -0
  95. package/hooks/use-campaign-generation-recovery.ts +53 -0
  96. package/hooks/use-campaign-mtn.ts +224 -165
  97. package/hooks/use-campaign-qry.helpers.ts +40 -0
  98. package/hooks/use-campaign-qry.ts +631 -54
  99. package/hooks/use-dataTable-mtn.ts +23 -115
  100. package/hooks/use-dataTable-qry.ts +66 -916
  101. package/hooks/use-email-qry.helpers.ts +37 -0
  102. package/hooks/use-email-qry.ts +33 -178
  103. package/hooks/use-emailCampaignReplyReport-qry.ts +27 -0
  104. package/hooks/use-fieldDoc-mtn.ts +244 -32
  105. package/hooks/use-fieldDoc-qry.helpers.test.ts +65 -0
  106. package/hooks/use-fieldDoc-qry.helpers.ts +49 -0
  107. package/hooks/use-fieldDoc-qry.ts +134 -102
  108. package/hooks/use-inboundContact-qry.ts +7 -9
  109. package/hooks/use-log-mtn.ts +25 -12
  110. package/hooks/use-log-qry.ts +99 -46
  111. package/hooks/use-organization-qry.ts +16 -60
  112. package/hooks/use-publicFormEmail-mtn.ts +27 -0
  113. package/hooks/use-qrCode-mtn.ts +40 -0
  114. package/hooks/use-qrCode-qry.ts +78 -0
  115. package/hooks/use-schedule-mtn.ts +506 -333
  116. package/hooks/use-schedule-qry.ts +682 -101
  117. package/hooks/use-schedule-reactive.ts +486 -0
  118. package/hooks/use-sheet-mtn.ts +91 -199
  119. package/hooks/use-sheet-qry.ts +84 -238
  120. package/hooks/use-storage-qry.ts +84 -61
  121. package/hooks/use-workflow-mtn.ts +39 -22
  122. package/hooks/use-workflow-qry.ts +40 -61
  123. package/libs/ai-chat-outgoing.helpers.ts +153 -0
  124. package/libs/ai-chat-outgoing.ts +11 -0
  125. package/libs/ai-chat-outgoing.types.ts +25 -0
  126. package/libs/ai-chat-run-realtime.ts +20 -0
  127. package/libs/ai-chat-submission-realtime.ts +150 -0
  128. package/libs/fragment-realtime-sequence.ts +55 -0
  129. package/libs/fragment-recovery.test.ts +326 -0
  130. package/libs/fragment-recovery.ts +325 -0
  131. package/libs/open-sheet.ts +138 -0
  132. package/libs/orchestrator-realtime.helpers.test.ts +229 -0
  133. package/libs/orchestrator-realtime.helpers.ts +317 -0
  134. package/libs/orchestrator-realtime.ts +433 -0
  135. package/libs/request-cache-regression.test.ts +122 -0
  136. package/{client → libs}/request-managed-session.test.ts +1 -1
  137. package/libs/request-no-store.test.ts +419 -0
  138. package/libs/sheet-command-batch.ts +44 -0
  139. package/libs/sheet-view-realtime-router.test.ts +214 -0
  140. package/libs/sheet-view-realtime-router.ts +99 -0
  141. package/loaders/campaign.test.ts +186 -0
  142. package/loaders/campaign.ts +56 -83
  143. package/loaders/emailPreference.ts +75 -0
  144. package/loaders/rest.ts +12 -0
  145. package/package.json +42 -17
  146. package/schedule.d.ts +1790 -0
  147. package/sse.helpers.ts +19 -0
  148. package/sse.ts +26 -115
  149. package/tests/agent-note-detail-cache.test.ts +120 -0
  150. package/tests/agent-note-search.test.ts +444 -0
  151. package/types.d.ts +46 -25
  152. package/client/data-table-realtime-subscriptions.test.ts +0 -740
  153. package/client/data-table-realtime-subscriptions.ts +0 -955
  154. package/client/data-table-realtime.test.ts +0 -792
  155. package/client/data-table-realtime.ts +0 -1218
  156. package/client/fragment-realtime-sequence.ts +0 -52
  157. package/client/open-sheet.ts +0 -137
  158. package/client/request-no-store.test.ts +0 -157
  159. package/gql/fragments/agentDocFragments.ts +0 -46
  160. package/gql/fragments/billingFragments.ts +0 -14
  161. package/gql/mutations/agentDocMutations.ts +0 -177
  162. package/gql/queries/agentDocQueries.ts +0 -120
  163. package/hooks/use-agentDoc-mtn.ts +0 -285
  164. package/hooks/use-agentDoc-qry.ts +0 -208
  165. /package/{client → libs}/sse-ticket.test.ts +0 -0
@@ -1,155 +1,667 @@
1
- // NOTE: Each selection set must stay exactly aligned with the server's
2
- // realtime emit for the same table (mapDataToGraphQLFragment in
3
- // server/src/utils/graphql-data.ts: 'schedule_calendars', 'schedule_resources',
4
- // 'schedule_series', 'schedule_occurrences', 'schedule_requests') so
5
- // useReactiveFragment merges a patch cleanly instead of blanking fields.
6
- //
7
- // Per-viewer facts are never emitted over WS — the organization room is not an
8
- // authorization cohort — so viewerPermission and viewerCanEditAccess are
9
- // selected by the calendar QUERY, not by this fragment.
1
+ // Shared row selections exclude viewer permissions and private notification preferences.
2
+ // Keep server realtime projections aligned with these fields.
10
3
 
11
4
  export const scheduleCalendarFragment = `fragment scheduleCalendarFragment on ScheduleCalendar {
12
- id
13
- organizationId
14
-
15
- kind
16
- name
17
- description
18
- timeZone
19
- siteId
20
- color
21
- ordinal
22
-
23
- access {
24
- team
25
- public
26
- network
27
- }
28
-
29
- deletedAt
30
- createdAt
31
- updatedAt
5
+ revision
6
+ id
7
+ organizationId
8
+ name
9
+ description
10
+ timeZone
11
+ siteId
12
+ workCalendarId
13
+ color
14
+ settings {
15
+ weekStartsOn
16
+ requests {
17
+ autoApproveClaims
18
+ autoApproveDrops
19
+ requireCounterpartyConsent
20
+ requestExpiryHours
21
+ minNoticeHours
22
+ }
23
+ notify {
24
+ channels
25
+ }
26
+ }
27
+ ordinal
28
+ access {
29
+ team public network
30
+ }
31
+ version
32
+ deletedAt
33
+ createdAt
34
+ updatedAt
35
+ }`;
36
+
37
+ export const scheduleWorkCalendarFragment = `fragment scheduleWorkCalendarFragment on ScheduleWorkCalendar {
38
+ id
39
+ organizationId
40
+ key
41
+ name
42
+ description
43
+ timeZone
44
+ weekHours {
45
+ days {
46
+ weekday
47
+ ranges {
48
+ start
49
+ end
50
+ }
51
+ }
52
+ }
53
+ minutesPerDay
54
+ isDefault
55
+ version
56
+ createdAt
57
+ updatedAt
32
58
  }`;
33
59
 
34
60
  export const scheduleResourceFragment = `fragment scheduleResourceFragment on ScheduleResource {
35
- id
36
- organizationId
37
- siteId
38
-
39
- kind
40
- key
41
- name
42
- capacity
43
- config
44
- ordinal
45
-
46
- retiredAt
47
- createdAt
48
- updatedAt
61
+ id
62
+ organizationId
63
+ siteId
64
+ accountId
65
+ workCalendarId
66
+ kind
67
+ key
68
+ name
69
+ maxUnitsPerDay
70
+ capacity
71
+ unitOfMeasure
72
+ canLevel
73
+ config {
74
+ qualifications {
75
+ key
76
+ expiresAt
77
+ }
78
+ roles
79
+ tags
80
+ ageGroup
81
+ }
82
+ ordinal
83
+ retiredAt
84
+ version
85
+ createdAt
86
+ updatedAt
49
87
  }`;
50
88
 
51
89
  export const scheduleSeriesFragment = `fragment scheduleSeriesFragment on ScheduleSeries {
52
- id
53
- organizationId
54
- calendarId
55
- resourceId
56
-
57
- kind
58
- title
59
- note
60
- location
61
- recurrence
62
- timeZone
63
- startsAt
64
- endsAt
65
- durationMinutes
66
- allDay
67
- slotTemplate
68
- active
69
-
70
- createdAt
71
- updatedAt
90
+ id
91
+ organizationId
92
+ calendarId
93
+ resourceId
94
+ kind
95
+ title
96
+ note
97
+ location
98
+ recurrence {
99
+ freq
100
+ interval
101
+ byWeekday
102
+ byMonthDay
103
+ byMonth
104
+ count
105
+ until
106
+ }
107
+ timeZone
108
+ startsAt
109
+ endsAt
110
+ durationMinutes
111
+ allDay
112
+ slotTemplate {
113
+ key
114
+ label
115
+ requiredCount
116
+ predicate {
117
+ roles
118
+ qualifications
119
+ tags
120
+ }
121
+ ordinal
122
+ }
123
+ active
124
+ materializedThrough
125
+ finishedAt
126
+ version
127
+ createdAt
128
+ updatedAt
72
129
  }`;
73
130
 
74
- // "slots" and "assignments" are emitted only when the server attached them, so
75
- // a fragment patch can never blank a hydrated list with an empty one.
76
131
  export const scheduleOccurrenceFragment = `fragment scheduleOccurrenceFragment on ScheduleOccurrence {
77
- id
78
- organizationId
79
- calendarId
80
- seriesId
81
- resourceId
82
- siteId
83
-
84
- kind
85
- title
86
- note
87
- location
88
- startAt
89
- endAt
90
- timeZone
91
- allDay
92
- status
93
- detached
94
- version
95
-
96
- slots {
97
- id
98
- occurrenceId
99
- key
100
- label
101
- requiredCount
102
- predicate
103
- ordinal
104
- }
105
-
106
- assignments {
107
- id
108
- organizationId
109
- occurrenceId
110
- slotId
111
- actorType
112
- actorAccountId
113
- actorOrganizationId
114
- actorContactId
115
- status
116
- startAt
117
- endAt
118
- assignedByAccountId
119
- releasedAt
120
- }
121
-
122
- publishedAt
123
- canceledAt
124
- deletedAt
125
- createdAt
126
- updatedAt
132
+ id
133
+ organizationId
134
+ calendarId
135
+ seriesId
136
+ recurrenceDate
137
+ resourceId
138
+ kind
139
+ title
140
+ note
141
+ location
142
+ startAt
143
+ endAt
144
+ timeZone
145
+ allDay
146
+ status
147
+ detached
148
+ version
149
+ slots {
150
+ id
151
+ occurrenceId
152
+ key
153
+ label
154
+ requiredCount
155
+ predicate {
156
+ roles
157
+ qualifications
158
+ tags
159
+ }
160
+ ordinal
161
+ }
162
+ assignments {
163
+ id
164
+ occurrenceId
165
+ resourceId
166
+ accountId
167
+ resourceName
168
+ slotKey
169
+ status
170
+ note
171
+ assignedByAccountId
172
+ source {
173
+ kind
174
+ requestId
175
+ timeOffId
176
+ workflowId
177
+ }
178
+ releasedAt
179
+ createdAt
180
+ updatedAt
181
+ }
182
+ openCount
183
+ publishedAt
184
+ canceledAt
185
+ deletedAt
186
+ createdAt
187
+ updatedAt
188
+ }`;
189
+
190
+ export const scheduleProjectFragment = `fragment scheduleProjectFragment on ScheduleProject {
191
+ id
192
+ organizationId
193
+ siteId
194
+ workCalendarId
195
+ currentBaselineId
196
+ code
197
+ name
198
+ description
199
+ status
200
+ timeZone
201
+ plannedStartAt
202
+ mustFinishByAt
203
+ dataDateAt
204
+ schedulingOptions {
205
+ autoSchedule
206
+ progressLogic
207
+ lagCalendar
208
+ criticalityMode
209
+ criticalFloatThresholdMinutes
210
+ leveling {
211
+ enabled
212
+ priorityRule
213
+ levelWithinFloat
214
+ maxOverallocationPercent
215
+ considerOtherProjects
216
+ horizonDays
217
+ }
218
+ }
219
+ scheduledFinishAt
220
+ lastScheduledAt
221
+ networkRevision
222
+ scheduledRevision
223
+ needsReschedule
224
+ runSequence
225
+ latestRun {
226
+ ...scheduleProjectRunFragment
227
+ }
228
+ access {
229
+ team public network
230
+ }
231
+ source {
232
+ kind
233
+ documentId
234
+ reference
235
+ quote
236
+ confidence
237
+ reviewStatus
238
+ reviewedByAccountId
239
+ reviewedAt
240
+ }
241
+ version
242
+ revision
243
+ deletedAt
244
+ createdAt
245
+ updatedAt
246
+ }`;
247
+
248
+ export const scheduleActivityFragment = `fragment scheduleActivityFragment on ScheduleActivity {
249
+ id
250
+ organizationId
251
+ projectId
252
+ wbsId
253
+ workCalendarId
254
+ code
255
+ name
256
+ description
257
+ type
258
+ status
259
+ plannedDurationMinutes
260
+ remainingDurationMinutes
261
+ percentComplete
262
+ primaryConstraintType
263
+ primaryConstraintAt
264
+ secondaryConstraintType
265
+ secondaryConstraintAt
266
+ actualStartAt
267
+ actualFinishAt
268
+ earlyStartAt
269
+ earlyFinishAt
270
+ lateStartAt
271
+ lateFinishAt
272
+ startAt
273
+ finishAt
274
+ totalFloatMinutes
275
+ freeFloatMinutes
276
+ isCritical
277
+ levelingPriority
278
+ levelingDelayMinutes
279
+ levelingConstrainedByResourceId
280
+ codes {
281
+ typeKey
282
+ valueKey
283
+ }
284
+ source {
285
+ kind
286
+ documentId
287
+ reference
288
+ quote
289
+ confidence
290
+ reviewStatus
291
+ reviewedByAccountId
292
+ reviewedAt
293
+ }
294
+ ordinal
295
+ version
296
+ createdAt
297
+ updatedAt
298
+ }`;
299
+
300
+ export const scheduleRelationshipFragment = `fragment scheduleRelationshipFragment on ScheduleRelationship {
301
+ id
302
+ projectId
303
+ predecessorId
304
+ successorId
305
+ type
306
+ lagMinutes
307
+ isDriving
308
+ createdAt
309
+ updatedAt
310
+ }`;
311
+
312
+ export const scheduleProjectRunFragment = `fragment scheduleProjectRunFragment on ScheduleProjectRun {
313
+ organizationId
314
+ revision
315
+ scheduledFinishAt
316
+ createdAt
317
+ id
318
+ projectId
319
+ sequence
320
+ kind
321
+ trigger
322
+ status
323
+ options {
324
+ autoSchedule
325
+ progressLogic
326
+ lagCalendar
327
+ criticalityMode
328
+ criticalFloatThresholdMinutes
329
+ leveling {
330
+ enabled
331
+ priorityRule
332
+ levelWithinFloat
333
+ maxOverallocationPercent
334
+ considerOtherProjects
335
+ horizonDays
336
+ }
337
+ }
338
+ networkRevision
339
+ dataDateAt
340
+ progress {
341
+ stage
342
+ percent
343
+ message
344
+ updatedAt
345
+ }
346
+ stats {
347
+ activityCount
348
+ relationshipCount
349
+ criticalCount
350
+ openStartCount
351
+ openFinishCount
352
+ negativeFloatCount
353
+ constraintOverrideCount
354
+ cycleCount
355
+ longestPathCount
356
+ scheduledFinishAt
357
+ earlyFinishAt
358
+ leveled
359
+ leveledCount
360
+ totalLevelingDelayMinutes
361
+ finishDelayMinutes
362
+ overallocatedResourceDayCount
363
+ levelingExceededFloatCount
364
+ levelingExceededHorizonCount
365
+ diagnosticsTruncated
366
+ diagnosticCounts
367
+ }
368
+ diagnostics {
369
+ code
370
+ severity
371
+ message
372
+ activityId
373
+ relatedActivityId
374
+ activityIds
375
+ resourceId
376
+ calendarId
377
+ fromDate
378
+ toDate
379
+ demandUnits
380
+ availableUnits
381
+ minutes
382
+ }
383
+ triggeredByAccountId
384
+ cancelRequestedAt
385
+ queuedAt
386
+ startedAt
387
+ finishedAt
388
+ lastError
389
+ version
390
+ updatedAt
391
+ cursor
127
392
  }`;
128
393
 
129
- // The open-shift board and the approval queue both race on this row, so it is
130
- // a fragment rather than an inline selection: a claim has to patch every
131
- // mounted board in place the instant it lands.
132
394
  export const scheduleRequestFragment = `fragment scheduleRequestFragment on ScheduleRequest {
133
- id
134
- organizationId
135
- calendarId
136
-
137
- kind
138
- status
139
- requesterAccountId
140
- sourceAssignmentId
141
- targetAssignmentId
142
- targetOccurrenceId
143
- claimedByAccountId
144
- startAt
145
- endAt
146
- reason
147
- autoApproved
148
- decidedByAccountId
149
- decidedAt
150
- decisionNote
151
- expiresAt
152
-
153
- createdAt
154
- updatedAt
395
+ id
396
+ organizationId
397
+ calendarId
398
+ kind
399
+ status
400
+ requesterResourceId
401
+ requesterAccountId
402
+ occurrenceId
403
+ slotKey
404
+ sourceAssignmentId
405
+ targetOccurrenceId
406
+ targetAssignmentId
407
+ counterpartyResourceId
408
+ subjectStartAt
409
+ reason
410
+ counterpartyRespondedAt
411
+ autoApproved
412
+ deciderAccountId
413
+ decidedAt
414
+ decisionNote
415
+ resultAssignmentId
416
+ expiresAt
417
+ version
418
+ createdAt
419
+ updatedAt
420
+ cursor
155
421
  }`;
422
+
423
+ export const scheduleTimeOffFragment = `fragment scheduleTimeOffFragment on ScheduleTimeOff {
424
+ id
425
+ organizationId
426
+ resourceId
427
+ accountId
428
+ requesterAccountId
429
+ startAt
430
+ endAt
431
+ allDay
432
+ timeZone
433
+ status
434
+ reason
435
+ deciderAccountId
436
+ decidedAt
437
+ decisionNote
438
+ version
439
+ createdAt
440
+ updatedAt
441
+ cursor
442
+ }`;
443
+
444
+ export const scheduleViolationFragment = `fragment scheduleViolationFragment on ScheduleViolation {
445
+ id
446
+ calendarId
447
+ ruleId
448
+ occurrenceId
449
+ resourceId
450
+ slotKey
451
+ kind
452
+ code
453
+ severity
454
+ violationKey
455
+ identityKey
456
+ startAt
457
+ endAt
458
+ degree
459
+ message
460
+ detail
461
+ evaluatedAt
462
+ }`;
463
+
464
+ export const schedulePublicationFragment = `fragment schedulePublicationFragment on SchedulePublication {
465
+ id
466
+ calendarId
467
+ windowStart
468
+ windowEnd
469
+ occurrenceCount
470
+ acknowledgedWarningCount
471
+ acknowledgedViolationKeys
472
+ publishedByAccountId
473
+ publishedAt
474
+ notificationId
475
+ acknowledgedCount
476
+ cursor
477
+ }`;
478
+
479
+ export const scheduleWbsNodeSelection = `id
480
+ projectId
481
+ parentId
482
+ code
483
+ name
484
+ path
485
+ depth
486
+ ordinal
487
+ startAt
488
+ finishAt
489
+ percentComplete`;
490
+
491
+ export const scheduleActivityAssignmentSelection = `id
492
+ projectId
493
+ activityId
494
+ resourceId
495
+ plannedUnits
496
+ unitsPerDay
497
+ actualUnits
498
+ remainingUnits`;
499
+
500
+ export const scheduleBaselineSelection = `id
501
+ projectId
502
+ name
503
+ note
504
+ dataDateAt
505
+ isCurrent
506
+ createdByAccountId
507
+ createdAt
508
+ cursor`;
509
+
510
+ export const scheduleBaselineActivitySelection = `plannedStartAt
511
+ plannedFinishAt
512
+ id
513
+ baselineId
514
+ activityId
515
+ code
516
+ name
517
+ startAt
518
+ finishAt
519
+ plannedDurationMinutes
520
+ totalFloatMinutes
521
+ plannedUnits
522
+ percentComplete`;
523
+
524
+ export const scheduleProjectRunSelection = `organizationId
525
+ revision
526
+ scheduledFinishAt
527
+ createdAt
528
+ id
529
+ projectId
530
+ sequence
531
+ kind
532
+ trigger
533
+ status
534
+ options {
535
+ autoSchedule
536
+ progressLogic
537
+ lagCalendar
538
+ criticalityMode
539
+ criticalFloatThresholdMinutes
540
+ leveling {
541
+ enabled
542
+ priorityRule
543
+ levelWithinFloat
544
+ maxOverallocationPercent
545
+ considerOtherProjects
546
+ horizonDays
547
+ }
548
+ }
549
+ networkRevision
550
+ dataDateAt
551
+ progress {
552
+ stage
553
+ percent
554
+ message
555
+ updatedAt
556
+ }
557
+ stats {
558
+ activityCount
559
+ relationshipCount
560
+ criticalCount
561
+ openStartCount
562
+ openFinishCount
563
+ negativeFloatCount
564
+ constraintOverrideCount
565
+ cycleCount
566
+ longestPathCount
567
+ scheduledFinishAt
568
+ earlyFinishAt
569
+ leveled
570
+ leveledCount
571
+ totalLevelingDelayMinutes
572
+ finishDelayMinutes
573
+ overallocatedResourceDayCount
574
+ levelingExceededFloatCount
575
+ levelingExceededHorizonCount
576
+ diagnosticsTruncated
577
+ diagnosticCounts
578
+ }
579
+ diagnostics {
580
+ code
581
+ severity
582
+ message
583
+ activityId
584
+ relatedActivityId
585
+ activityIds
586
+ resourceId
587
+ calendarId
588
+ fromDate
589
+ toDate
590
+ demandUnits
591
+ availableUnits
592
+ minutes
593
+ }
594
+ triggeredByAccountId
595
+ cancelRequestedAt
596
+ queuedAt
597
+ startedAt
598
+ finishedAt
599
+ lastError
600
+ version
601
+ updatedAt
602
+ cursor`;
603
+
604
+ export const scheduleViolationSelection = `id
605
+ calendarId
606
+ ruleId
607
+ occurrenceId
608
+ resourceId
609
+ slotKey
610
+ kind
611
+ code
612
+ severity
613
+ violationKey
614
+ identityKey
615
+ startAt
616
+ endAt
617
+ degree
618
+ message
619
+ detail
620
+ evaluatedAt`;
621
+
622
+ export const scheduleRuleSelection = `key
623
+ id
624
+ organizationId
625
+ calendarId
626
+ resourceId
627
+ kind
628
+ label
629
+ config {
630
+ ratios {
631
+ key
632
+ childrenPerAdult
633
+ }
634
+ predicate {
635
+ roles
636
+ qualifications
637
+ tags
638
+ }
639
+ minAdults
640
+ windowDays
641
+ maxMinutes
642
+ minRestMinutes
643
+ }
644
+ severity
645
+ active
646
+ ordinal`;
647
+
648
+ export const scheduleDemandSelection = `id
649
+ calendarId
650
+ resourceId
651
+ key
652
+ quantity
653
+ startAt
654
+ endAt
655
+ note`;
656
+
657
+ export const scheduleCodeTypeSelection = `id
658
+ organizationId
659
+ projectId
660
+ key
661
+ name
662
+ values {
663
+ key
664
+ label
665
+ color
666
+ }
667
+ ordinal`;