@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,155 +1,667 @@
|
|
|
1
|
-
//
|
|
2
|
-
//
|
|
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
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
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
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
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
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
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
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
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`;
|