@jsb188/graphql 1.1.10 → 1.1.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/audience.d.ts +343 -0
- package/cache/config.ts +98 -50
- package/cache/index.chat-activity.test.ts +119 -0
- package/cache/index.chat.test.ts +92 -0
- package/cache/index.helpers.ts +96 -0
- package/cache/index.regression.test.ts +149 -0
- package/cache/index.test.ts +1017 -127
- package/cache/index.ts +1256 -1269
- package/cache/optimistic-ui-runtime.ts +46 -0
- package/cache/optimistic-ui.ts +401 -0
- package/cache/persist.ts +800 -0
- package/cache/store.ts +395 -0
- package/cache/value.helpers.ts +17 -0
- package/client/draft-persistence-indexed-db.ts +413 -0
- package/client/draft-persistence.ts +152 -0
- package/client/index.ts +3 -0
- package/client/request.helpers.ts +14 -0
- package/client/request.ts +870 -164
- package/deno.lock +187 -0
- package/deno.test.json +10 -4
- package/gql/eagerQueryMap.ts +12 -0
- package/gql/fragments/accountAuthFragments.ts +5 -0
- package/gql/fragments/accountFragments.ts +0 -3
- package/gql/fragments/accountSessionFragments.ts +16 -0
- package/gql/fragments/agentMemoryFragments.ts +23 -0
- package/gql/fragments/agentNoteFragments.ts +150 -0
- package/gql/fragments/aiChatFragments.ts +42 -0
- package/gql/fragments/audienceFragments.ts +141 -0
- package/gql/fragments/campaignFragments.ts +566 -0
- package/gql/fragments/dataTableFragments.ts +50 -192
- package/gql/fragments/emailFragments.ts +32 -17
- package/gql/fragments/fieldDocFragments.ts +264 -0
- package/gql/fragments/inboundContactFragments.ts +2 -0
- package/gql/fragments/logFragments.ts +101 -69
- package/gql/fragments/organizationFragments.ts +53 -5
- package/gql/fragments/qrCodeFragments.ts +29 -0
- package/gql/fragments/scheduleFragments.ts +667 -0
- package/gql/fragments/sheetFragments.ts +304 -63
- package/gql/fragments/storageFragments.ts +45 -0
- package/gql/fragments/workflowFragments.ts +41 -5
- package/gql/mutations/accountMutations.ts +0 -2
- package/gql/mutations/agentMemoryMutations.ts +68 -0
- package/gql/mutations/agentNoteMutations.ts +62 -0
- package/gql/mutations/aiChatMutations.ts +49 -4
- package/gql/mutations/audienceMutations.ts +71 -0
- package/gql/mutations/authMutations.ts +203 -18
- package/gql/mutations/billingMutations.ts +17 -27
- package/gql/mutations/campaignMutations.ts +258 -0
- package/gql/mutations/contactMutations.ts +23 -0
- package/gql/mutations/dataTableMutations.ts +19 -54
- package/gql/mutations/fieldDocMutations.ts +173 -0
- package/gql/mutations/index.ts +10 -2
- package/gql/mutations/logMutations.ts +6 -29
- package/gql/mutations/organizationMutations.ts +19 -4
- package/gql/mutations/qrCodeMutations.ts +20 -0
- package/gql/mutations/scheduleMutations.ts +1121 -0
- package/gql/mutations/sheetMutations.ts +221 -60
- package/gql/mutations/storageMutations.ts +19 -0
- package/gql/mutations/workflowMutations.ts +60 -0
- package/gql/queries/agentMemoryQueries.ts +28 -0
- package/gql/queries/agentNoteQueries.ts +89 -0
- package/gql/queries/aiChatQueries.ts +70 -2
- package/gql/queries/audienceQueries.ts +128 -0
- package/gql/queries/authQueries.ts +47 -0
- package/gql/queries/billingQueries.ts +118 -6
- package/gql/queries/campaignQueries.ts +236 -0
- package/gql/queries/dataTableQueries.ts +61 -13
- package/gql/queries/emailQueries.ts +26 -17
- package/gql/queries/emailReplyReportQueries.ts +76 -0
- package/gql/queries/fieldDocQueries.ts +166 -0
- package/gql/queries/inboundContactQueries.ts +4 -0
- package/gql/queries/index.ts +10 -2
- package/gql/queries/logQueries.ts +68 -30
- package/gql/queries/organizationQueries.ts +65 -1
- package/gql/queries/qrCodeQueries.ts +20 -0
- package/gql/queries/scheduleQueries.ts +691 -0
- package/gql/queries/sheetQueries.ts +244 -26
- package/gql/queries/storageQueries.ts +38 -0
- package/gql/queries/workflowQueries.ts +77 -2
- package/hooks/index.helpers.test.ts +50 -0
- package/hooks/index.helpers.ts +52 -0
- package/hooks/index.ts +2254 -982
- package/hooks/use-account-mtn.ts +76 -81
- package/hooks/use-agentMemory-mtn.ts +71 -0
- package/hooks/use-agentMemory-qry.ts +56 -0
- package/hooks/use-agentNote-mtn.ts +82 -0
- package/hooks/use-agentNote-qry.ts +190 -0
- package/hooks/use-agentNote-recovery.helpers.test.ts +68 -0
- package/hooks/use-agentNote-recovery.helpers.ts +58 -0
- package/hooks/use-agentNote-recovery.ts +72 -0
- package/hooks/use-aiChat-mtn.ts +220 -141
- package/hooks/use-aiChat-qry.helpers.test.ts +63 -0
- package/hooks/use-aiChat-qry.helpers.ts +124 -0
- package/hooks/use-aiChat-qry.ts +341 -237
- package/hooks/use-aiChat-stream-mtn.ts +14 -0
- package/hooks/use-app-qry.ts +12 -9
- package/hooks/use-audience-mtn.ts +194 -0
- package/hooks/use-audience-qry.helpers.test.ts +80 -0
- package/hooks/use-audience-qry.helpers.ts +63 -0
- package/hooks/use-audience-qry.ts +330 -0
- package/hooks/use-auth-mtn.ts +435 -252
- package/hooks/use-auth-qry.ts +51 -0
- package/hooks/use-billing-mtn.ts +31 -0
- package/hooks/use-billing-qry.ts +76 -0
- package/hooks/use-campaign-generation-recovery.ts +53 -0
- package/hooks/use-campaign-mtn.ts +436 -0
- package/hooks/use-campaign-qry.helpers.ts +40 -0
- package/hooks/use-campaign-qry.ts +834 -0
- package/hooks/use-dataTable-mtn.ts +37 -46
- package/hooks/use-dataTable-qry.ts +102 -128
- package/hooks/use-email-qry.helpers.ts +37 -0
- package/hooks/use-email-qry.ts +56 -86
- package/hooks/use-emailCampaignReplyReport-qry.ts +27 -0
- package/hooks/use-fieldDoc-mtn.ts +262 -0
- package/hooks/use-fieldDoc-qry.helpers.test.ts +65 -0
- package/hooks/use-fieldDoc-qry.helpers.ts +49 -0
- package/hooks/use-fieldDoc-qry.ts +212 -0
- package/hooks/use-inboundContact-mtn.ts +19 -16
- package/hooks/use-inboundContact-qry.ts +62 -56
- package/hooks/use-integration-mtn.ts +56 -38
- package/hooks/use-integration-qry.ts +24 -9
- package/hooks/use-log-mtn.ts +88 -59
- package/hooks/use-log-qry.ts +150 -73
- package/hooks/use-organization-mtn.ts +334 -277
- package/hooks/use-organization-qry.ts +155 -129
- package/hooks/use-publicFormEmail-mtn.ts +27 -0
- package/hooks/use-qrCode-mtn.ts +40 -0
- package/hooks/use-qrCode-qry.ts +78 -0
- package/hooks/use-schedule-mtn.ts +589 -0
- package/hooks/use-schedule-qry.ts +738 -0
- package/hooks/use-schedule-reactive.ts +486 -0
- package/hooks/use-sheet-mtn.ts +157 -79
- package/hooks/use-sheet-qry.ts +221 -92
- package/hooks/use-storage-mtn.ts +81 -41
- package/hooks/use-storage-qry.ts +128 -14
- package/hooks/use-workflow-mtn.ts +72 -0
- package/hooks/use-workflow-qry.ts +184 -47
- package/libs/ai-chat-outgoing.helpers.ts +153 -0
- package/libs/ai-chat-outgoing.ts +11 -0
- package/libs/ai-chat-outgoing.types.ts +25 -0
- package/libs/ai-chat-run-realtime.ts +20 -0
- package/libs/ai-chat-submission-realtime.ts +150 -0
- package/libs/fragment-realtime-sequence.ts +55 -0
- package/libs/fragment-recovery.test.ts +326 -0
- package/libs/fragment-recovery.ts +325 -0
- package/libs/open-sheet.ts +138 -0
- package/libs/orchestrator-realtime.helpers.test.ts +229 -0
- package/libs/orchestrator-realtime.helpers.ts +317 -0
- package/libs/orchestrator-realtime.ts +433 -0
- package/libs/request-cache-regression.test.ts +122 -0
- package/libs/request-managed-session.test.ts +574 -0
- package/libs/request-no-store.test.ts +419 -0
- package/libs/sheet-command-batch.ts +44 -0
- package/libs/sheet-view-realtime-router.test.ts +214 -0
- package/libs/sheet-view-realtime-router.ts +99 -0
- package/libs/sse-ticket.test.ts +26 -0
- package/loaders/campaign.test.ts +186 -0
- package/loaders/campaign.ts +110 -0
- package/loaders/emailPreference.ts +75 -0
- package/loaders/rest.ts +12 -0
- package/package.json +119 -71
- package/schedule.d.ts +1790 -0
- package/sse.helpers.ts +19 -0
- package/sse.ts +70 -106
- package/tests/agent-note-detail-cache.test.ts +120 -0
- package/tests/agent-note-search.test.ts +444 -0
- package/tsconfig.json +11 -10
- package/types.d.ts +77 -26
- package/utils.ts +78 -49
- package/gql/fragments/billingFragments.ts +0 -25
- package/gql/fragments/productFragments.ts +0 -39
- package/gql/fragments/reportFragments.ts +0 -90
- package/gql/queries/productQueries.ts +0 -31
- package/gql/queries/reportQueries.ts +0 -134
- package/hooks/use-product-qry.ts +0 -67
- package/hooks/use-report-qry.ts +0 -153
|
@@ -0,0 +1,1121 @@
|
|
|
1
|
+
import { gql } from 'graphql-tag';
|
|
2
|
+
import {
|
|
3
|
+
scheduleActivityFragment,
|
|
4
|
+
scheduleCalendarFragment,
|
|
5
|
+
scheduleOccurrenceFragment,
|
|
6
|
+
scheduleProjectFragment,
|
|
7
|
+
scheduleProjectRunFragment,
|
|
8
|
+
schedulePublicationFragment,
|
|
9
|
+
scheduleRelationshipFragment,
|
|
10
|
+
scheduleRequestFragment,
|
|
11
|
+
scheduleResourceFragment,
|
|
12
|
+
scheduleSeriesFragment,
|
|
13
|
+
scheduleTimeOffFragment,
|
|
14
|
+
scheduleViolationFragment,
|
|
15
|
+
scheduleWorkCalendarFragment,
|
|
16
|
+
} from '../fragments/scheduleFragments.ts';
|
|
17
|
+
|
|
18
|
+
export const createScheduleWorkCalendarMtn = gql`
|
|
19
|
+
mutation createScheduleWorkCalendar($input: CreateScheduleWorkCalendarInput!) {
|
|
20
|
+
createScheduleWorkCalendar(input: $input) {
|
|
21
|
+
...scheduleWorkCalendarFragment
|
|
22
|
+
exceptions {
|
|
23
|
+
id
|
|
24
|
+
workCalendarId
|
|
25
|
+
date
|
|
26
|
+
ranges {
|
|
27
|
+
start
|
|
28
|
+
end
|
|
29
|
+
}
|
|
30
|
+
note
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
${scheduleWorkCalendarFragment}
|
|
35
|
+
`;
|
|
36
|
+
|
|
37
|
+
export const updateScheduleWorkCalendarMtn = gql`
|
|
38
|
+
mutation updateScheduleWorkCalendar($input: UpdateScheduleWorkCalendarInput!) {
|
|
39
|
+
updateScheduleWorkCalendar(input: $input) {
|
|
40
|
+
...scheduleWorkCalendarFragment
|
|
41
|
+
exceptions {
|
|
42
|
+
id
|
|
43
|
+
workCalendarId
|
|
44
|
+
date
|
|
45
|
+
ranges {
|
|
46
|
+
start
|
|
47
|
+
end
|
|
48
|
+
}
|
|
49
|
+
note
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
${scheduleWorkCalendarFragment}
|
|
54
|
+
`;
|
|
55
|
+
|
|
56
|
+
export const setScheduleWorkCalendarExceptionMtn = gql`
|
|
57
|
+
mutation setScheduleWorkCalendarException($input: SetScheduleWorkCalendarExceptionInput!) {
|
|
58
|
+
setScheduleWorkCalendarException(input: $input) {
|
|
59
|
+
...scheduleWorkCalendarFragment
|
|
60
|
+
exceptions {
|
|
61
|
+
id
|
|
62
|
+
workCalendarId
|
|
63
|
+
date
|
|
64
|
+
ranges {
|
|
65
|
+
start
|
|
66
|
+
end
|
|
67
|
+
}
|
|
68
|
+
note
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
${scheduleWorkCalendarFragment}
|
|
73
|
+
`;
|
|
74
|
+
|
|
75
|
+
export const deleteScheduleWorkCalendarMtn = gql`
|
|
76
|
+
mutation deleteScheduleWorkCalendar($input: DeleteScheduleWorkCalendarInput!) {
|
|
77
|
+
deleteScheduleWorkCalendar(input: $input)
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
`;
|
|
81
|
+
|
|
82
|
+
export const createScheduleResourceMtn = gql`
|
|
83
|
+
mutation createScheduleResource($input: CreateScheduleResourceInput!) {
|
|
84
|
+
createScheduleResource(input: $input) {
|
|
85
|
+
...scheduleResourceFragment
|
|
86
|
+
viewerNotify {
|
|
87
|
+
channels
|
|
88
|
+
}
|
|
89
|
+
availability {
|
|
90
|
+
id
|
|
91
|
+
resourceId
|
|
92
|
+
startsOn
|
|
93
|
+
endsOn
|
|
94
|
+
maxUnitsPerDay
|
|
95
|
+
note
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
${scheduleResourceFragment}
|
|
100
|
+
`;
|
|
101
|
+
|
|
102
|
+
export const updateScheduleResourceMtn = gql`
|
|
103
|
+
mutation updateScheduleResource($input: UpdateScheduleResourceInput!) {
|
|
104
|
+
updateScheduleResource(input: $input) {
|
|
105
|
+
...scheduleResourceFragment
|
|
106
|
+
viewerNotify {
|
|
107
|
+
channels
|
|
108
|
+
}
|
|
109
|
+
availability {
|
|
110
|
+
id
|
|
111
|
+
resourceId
|
|
112
|
+
startsOn
|
|
113
|
+
endsOn
|
|
114
|
+
maxUnitsPerDay
|
|
115
|
+
note
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
${scheduleResourceFragment}
|
|
120
|
+
`;
|
|
121
|
+
|
|
122
|
+
export const createScheduleResourceAvailabilityMtn = gql`
|
|
123
|
+
mutation createScheduleResourceAvailability($input: CreateScheduleResourceAvailabilityInput!) {
|
|
124
|
+
createScheduleResourceAvailability(input: $input) {
|
|
125
|
+
...scheduleResourceFragment
|
|
126
|
+
viewerNotify {
|
|
127
|
+
channels
|
|
128
|
+
}
|
|
129
|
+
availability {
|
|
130
|
+
id
|
|
131
|
+
resourceId
|
|
132
|
+
startsOn
|
|
133
|
+
endsOn
|
|
134
|
+
maxUnitsPerDay
|
|
135
|
+
note
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
${scheduleResourceFragment}
|
|
140
|
+
`;
|
|
141
|
+
|
|
142
|
+
export const deleteScheduleResourceAvailabilityMtn = gql`
|
|
143
|
+
mutation deleteScheduleResourceAvailability($input: DeleteScheduleResourceAvailabilityInput!) {
|
|
144
|
+
deleteScheduleResourceAvailability(input: $input) {
|
|
145
|
+
...scheduleResourceFragment
|
|
146
|
+
viewerNotify {
|
|
147
|
+
channels
|
|
148
|
+
}
|
|
149
|
+
availability {
|
|
150
|
+
id
|
|
151
|
+
resourceId
|
|
152
|
+
startsOn
|
|
153
|
+
endsOn
|
|
154
|
+
maxUnitsPerDay
|
|
155
|
+
note
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
${scheduleResourceFragment}
|
|
160
|
+
`;
|
|
161
|
+
|
|
162
|
+
export const updateMyScheduleNotifyPrefsMtn = gql`
|
|
163
|
+
mutation updateMyScheduleNotifyPrefs($input: UpdateMyScheduleNotifyPrefsInput!) {
|
|
164
|
+
updateMyScheduleNotifyPrefs(input: $input) {
|
|
165
|
+
...scheduleResourceFragment
|
|
166
|
+
viewerNotify {
|
|
167
|
+
channels
|
|
168
|
+
}
|
|
169
|
+
availability {
|
|
170
|
+
id
|
|
171
|
+
resourceId
|
|
172
|
+
startsOn
|
|
173
|
+
endsOn
|
|
174
|
+
maxUnitsPerDay
|
|
175
|
+
note
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
${scheduleResourceFragment}
|
|
180
|
+
`;
|
|
181
|
+
|
|
182
|
+
export const createScheduleCalendarMtn = gql`
|
|
183
|
+
mutation createScheduleCalendar($input: CreateScheduleCalendarInput!) {
|
|
184
|
+
createScheduleCalendar(input: $input) {
|
|
185
|
+
...scheduleCalendarFragment
|
|
186
|
+
viewerPermission
|
|
187
|
+
viewerCanEdit
|
|
188
|
+
viewerCanEditAccess
|
|
189
|
+
viewerIsManager
|
|
190
|
+
viewerResourceId
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
${scheduleCalendarFragment}
|
|
194
|
+
`;
|
|
195
|
+
|
|
196
|
+
export const updateScheduleCalendarMtn = gql`
|
|
197
|
+
mutation updateScheduleCalendar($input: UpdateScheduleCalendarInput!) {
|
|
198
|
+
updateScheduleCalendar(input: $input) {
|
|
199
|
+
...scheduleCalendarFragment
|
|
200
|
+
viewerPermission
|
|
201
|
+
viewerCanEdit
|
|
202
|
+
viewerCanEditAccess
|
|
203
|
+
viewerIsManager
|
|
204
|
+
viewerResourceId
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
${scheduleCalendarFragment}
|
|
208
|
+
`;
|
|
209
|
+
|
|
210
|
+
export const updateScheduleCalendarAccessMtn = gql`
|
|
211
|
+
mutation updateScheduleCalendarAccess($input: UpdateScheduleCalendarAccessInput!) {
|
|
212
|
+
updateScheduleCalendarAccess(input: $input) {
|
|
213
|
+
...scheduleCalendarFragment
|
|
214
|
+
viewerPermission
|
|
215
|
+
viewerCanEdit
|
|
216
|
+
viewerCanEditAccess
|
|
217
|
+
viewerIsManager
|
|
218
|
+
viewerResourceId
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
${scheduleCalendarFragment}
|
|
222
|
+
`;
|
|
223
|
+
|
|
224
|
+
export const deleteScheduleCalendarMtn = gql`
|
|
225
|
+
mutation deleteScheduleCalendar($input: DeleteScheduleCalendarInput!) {
|
|
226
|
+
deleteScheduleCalendar(input: $input)
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
`;
|
|
230
|
+
|
|
231
|
+
export const createScheduleSeriesMtn = gql`
|
|
232
|
+
mutation createScheduleSeries($input: CreateScheduleSeriesInput!) {
|
|
233
|
+
createScheduleSeries(input: $input) {
|
|
234
|
+
series {
|
|
235
|
+
...scheduleSeriesFragment
|
|
236
|
+
}
|
|
237
|
+
createdCount
|
|
238
|
+
updatedCount
|
|
239
|
+
propagatedCount
|
|
240
|
+
skippedCount
|
|
241
|
+
deletedCount
|
|
242
|
+
detached {
|
|
243
|
+
...scheduleOccurrenceFragment
|
|
244
|
+
}
|
|
245
|
+
unslottedAssignmentIds
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
${scheduleSeriesFragment}
|
|
249
|
+
${scheduleOccurrenceFragment}
|
|
250
|
+
`;
|
|
251
|
+
|
|
252
|
+
export const updateScheduleSeriesMtn = gql`
|
|
253
|
+
mutation updateScheduleSeries($input: UpdateScheduleSeriesInput!) {
|
|
254
|
+
updateScheduleSeries(input: $input) {
|
|
255
|
+
series {
|
|
256
|
+
...scheduleSeriesFragment
|
|
257
|
+
}
|
|
258
|
+
createdCount
|
|
259
|
+
updatedCount
|
|
260
|
+
propagatedCount
|
|
261
|
+
skippedCount
|
|
262
|
+
deletedCount
|
|
263
|
+
detached {
|
|
264
|
+
...scheduleOccurrenceFragment
|
|
265
|
+
}
|
|
266
|
+
unslottedAssignmentIds
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
${scheduleSeriesFragment}
|
|
270
|
+
${scheduleOccurrenceFragment}
|
|
271
|
+
`;
|
|
272
|
+
|
|
273
|
+
export const deleteScheduleSeriesMtn = gql`
|
|
274
|
+
mutation deleteScheduleSeries($input: DeleteScheduleSeriesInput!) {
|
|
275
|
+
deleteScheduleSeries(input: $input)
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
`;
|
|
279
|
+
|
|
280
|
+
export const createScheduleOccurrenceMtn = gql`
|
|
281
|
+
mutation createScheduleOccurrence($input: CreateScheduleOccurrenceInput!) {
|
|
282
|
+
createScheduleOccurrence(input: $input) {
|
|
283
|
+
...scheduleOccurrenceFragment
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
${scheduleOccurrenceFragment}
|
|
287
|
+
`;
|
|
288
|
+
|
|
289
|
+
export const updateScheduleOccurrenceMtn = gql`
|
|
290
|
+
mutation updateScheduleOccurrence($input: UpdateScheduleOccurrenceInput!) {
|
|
291
|
+
updateScheduleOccurrence(input: $input) {
|
|
292
|
+
...scheduleOccurrenceFragment
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
${scheduleOccurrenceFragment}
|
|
296
|
+
`;
|
|
297
|
+
|
|
298
|
+
export const cancelScheduleOccurrenceMtn = gql`
|
|
299
|
+
mutation cancelScheduleOccurrence($input: CancelScheduleOccurrenceInput!) {
|
|
300
|
+
cancelScheduleOccurrence(input: $input) {
|
|
301
|
+
...scheduleOccurrenceFragment
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
${scheduleOccurrenceFragment}
|
|
305
|
+
`;
|
|
306
|
+
|
|
307
|
+
export const deleteScheduleOccurrenceMtn = gql`
|
|
308
|
+
mutation deleteScheduleOccurrence($input: DeleteScheduleOccurrenceInput!) {
|
|
309
|
+
deleteScheduleOccurrence(input: $input)
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
`;
|
|
313
|
+
|
|
314
|
+
export const assignScheduleOccurrenceMtn = gql`
|
|
315
|
+
mutation assignScheduleOccurrence($input: AssignScheduleOccurrenceInput!) {
|
|
316
|
+
assignScheduleOccurrence(input: $input) {
|
|
317
|
+
occurrence {
|
|
318
|
+
...scheduleOccurrenceFragment
|
|
319
|
+
}
|
|
320
|
+
assignment {
|
|
321
|
+
id
|
|
322
|
+
occurrenceId
|
|
323
|
+
resourceId
|
|
324
|
+
accountId
|
|
325
|
+
resourceName
|
|
326
|
+
slotKey
|
|
327
|
+
status
|
|
328
|
+
note
|
|
329
|
+
assignedByAccountId
|
|
330
|
+
source {
|
|
331
|
+
kind
|
|
332
|
+
requestId
|
|
333
|
+
timeOffId
|
|
334
|
+
workflowId
|
|
335
|
+
}
|
|
336
|
+
releasedAt
|
|
337
|
+
createdAt
|
|
338
|
+
updatedAt
|
|
339
|
+
}
|
|
340
|
+
eligibility {
|
|
341
|
+
eligible
|
|
342
|
+
slotKey
|
|
343
|
+
reasons {
|
|
344
|
+
code
|
|
345
|
+
severity
|
|
346
|
+
ruleId
|
|
347
|
+
startAt
|
|
348
|
+
endAt
|
|
349
|
+
message
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
${scheduleOccurrenceFragment}
|
|
355
|
+
`;
|
|
356
|
+
|
|
357
|
+
export const releaseScheduleAssignmentMtn = gql`
|
|
358
|
+
mutation releaseScheduleAssignment($input: ReleaseScheduleAssignmentInput!) {
|
|
359
|
+
releaseScheduleAssignment(input: $input) {
|
|
360
|
+
occurrence {
|
|
361
|
+
...scheduleOccurrenceFragment
|
|
362
|
+
}
|
|
363
|
+
assignment {
|
|
364
|
+
id
|
|
365
|
+
occurrenceId
|
|
366
|
+
resourceId
|
|
367
|
+
accountId
|
|
368
|
+
resourceName
|
|
369
|
+
slotKey
|
|
370
|
+
status
|
|
371
|
+
note
|
|
372
|
+
assignedByAccountId
|
|
373
|
+
source {
|
|
374
|
+
kind
|
|
375
|
+
requestId
|
|
376
|
+
timeOffId
|
|
377
|
+
workflowId
|
|
378
|
+
}
|
|
379
|
+
releasedAt
|
|
380
|
+
createdAt
|
|
381
|
+
updatedAt
|
|
382
|
+
}
|
|
383
|
+
eligibility {
|
|
384
|
+
eligible
|
|
385
|
+
slotKey
|
|
386
|
+
reasons {
|
|
387
|
+
code
|
|
388
|
+
severity
|
|
389
|
+
ruleId
|
|
390
|
+
startAt
|
|
391
|
+
endAt
|
|
392
|
+
message
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
${scheduleOccurrenceFragment}
|
|
398
|
+
`;
|
|
399
|
+
|
|
400
|
+
export const publishScheduleWindowMtn = gql`
|
|
401
|
+
mutation publishScheduleWindow($input: PublishScheduleWindowInput!) {
|
|
402
|
+
publishScheduleWindow(input: $input) {
|
|
403
|
+
refusal {
|
|
404
|
+
code
|
|
405
|
+
blockingCount
|
|
406
|
+
unacknowledgedKeys
|
|
407
|
+
}
|
|
408
|
+
publication {
|
|
409
|
+
...schedulePublicationFragment
|
|
410
|
+
viewerAcknowledgedAt
|
|
411
|
+
}
|
|
412
|
+
publishedCount
|
|
413
|
+
violations {
|
|
414
|
+
...scheduleViolationFragment
|
|
415
|
+
}
|
|
416
|
+
unacknowledgedKeys
|
|
417
|
+
diagnostics {
|
|
418
|
+
code
|
|
419
|
+
message
|
|
420
|
+
resourceId
|
|
421
|
+
ruleId
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
${schedulePublicationFragment}
|
|
426
|
+
${scheduleViolationFragment}
|
|
427
|
+
`;
|
|
428
|
+
|
|
429
|
+
export const acknowledgeSchedulePublicationMtn = gql`
|
|
430
|
+
mutation acknowledgeSchedulePublication($input: AcknowledgeSchedulePublicationInput!) {
|
|
431
|
+
acknowledgeSchedulePublication(input: $input) {
|
|
432
|
+
...schedulePublicationFragment
|
|
433
|
+
viewerAcknowledgedAt
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
${schedulePublicationFragment}
|
|
437
|
+
`;
|
|
438
|
+
|
|
439
|
+
export const evaluateScheduleWindowMtn = gql`
|
|
440
|
+
mutation evaluateScheduleWindow($input: EvaluateScheduleWindowInput!) {
|
|
441
|
+
evaluateScheduleWindow(input: $input) {
|
|
442
|
+
complete
|
|
443
|
+
violations {
|
|
444
|
+
...scheduleViolationFragment
|
|
445
|
+
}
|
|
446
|
+
diagnostics {
|
|
447
|
+
code
|
|
448
|
+
message
|
|
449
|
+
resourceId
|
|
450
|
+
ruleId
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
${scheduleViolationFragment}
|
|
455
|
+
`;
|
|
456
|
+
|
|
457
|
+
export const createScheduleRuleMtn = gql`
|
|
458
|
+
mutation createScheduleRule($input: CreateScheduleRuleInput!) {
|
|
459
|
+
createScheduleRule(input: $input) {
|
|
460
|
+
key
|
|
461
|
+
id
|
|
462
|
+
organizationId
|
|
463
|
+
calendarId
|
|
464
|
+
resourceId
|
|
465
|
+
kind
|
|
466
|
+
label
|
|
467
|
+
config {
|
|
468
|
+
ratios {
|
|
469
|
+
key
|
|
470
|
+
childrenPerAdult
|
|
471
|
+
}
|
|
472
|
+
predicate {
|
|
473
|
+
roles
|
|
474
|
+
qualifications
|
|
475
|
+
tags
|
|
476
|
+
}
|
|
477
|
+
minAdults
|
|
478
|
+
windowDays
|
|
479
|
+
maxMinutes
|
|
480
|
+
minRestMinutes
|
|
481
|
+
}
|
|
482
|
+
severity
|
|
483
|
+
active
|
|
484
|
+
ordinal
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
`;
|
|
489
|
+
|
|
490
|
+
export const updateScheduleRuleMtn = gql`
|
|
491
|
+
mutation updateScheduleRule($input: UpdateScheduleRuleInput!) {
|
|
492
|
+
updateScheduleRule(input: $input) {
|
|
493
|
+
key
|
|
494
|
+
id
|
|
495
|
+
organizationId
|
|
496
|
+
calendarId
|
|
497
|
+
resourceId
|
|
498
|
+
kind
|
|
499
|
+
label
|
|
500
|
+
config {
|
|
501
|
+
ratios {
|
|
502
|
+
key
|
|
503
|
+
childrenPerAdult
|
|
504
|
+
}
|
|
505
|
+
predicate {
|
|
506
|
+
roles
|
|
507
|
+
qualifications
|
|
508
|
+
tags
|
|
509
|
+
}
|
|
510
|
+
minAdults
|
|
511
|
+
windowDays
|
|
512
|
+
maxMinutes
|
|
513
|
+
minRestMinutes
|
|
514
|
+
}
|
|
515
|
+
severity
|
|
516
|
+
active
|
|
517
|
+
ordinal
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
`;
|
|
522
|
+
|
|
523
|
+
export const deleteScheduleRuleMtn = gql`
|
|
524
|
+
mutation deleteScheduleRule($input: DeleteScheduleRuleInput!) {
|
|
525
|
+
deleteScheduleRule(input: $input)
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
`;
|
|
529
|
+
|
|
530
|
+
export const createScheduleDemandMtn = gql`
|
|
531
|
+
mutation createScheduleDemand($input: CreateScheduleDemandInput!) {
|
|
532
|
+
createScheduleDemand(input: $input) {
|
|
533
|
+
id
|
|
534
|
+
calendarId
|
|
535
|
+
resourceId
|
|
536
|
+
key
|
|
537
|
+
quantity
|
|
538
|
+
startAt
|
|
539
|
+
endAt
|
|
540
|
+
note
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
`;
|
|
545
|
+
|
|
546
|
+
export const deleteScheduleDemandMtn = gql`
|
|
547
|
+
mutation deleteScheduleDemand($input: DeleteScheduleDemandInput!) {
|
|
548
|
+
deleteScheduleDemand(input: $input)
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
`;
|
|
552
|
+
|
|
553
|
+
export const createScheduleRequestMtn = gql`
|
|
554
|
+
mutation createScheduleRequest($input: CreateScheduleRequestInput!) {
|
|
555
|
+
createScheduleRequest(input: $input) {
|
|
556
|
+
request {
|
|
557
|
+
...scheduleRequestFragment
|
|
558
|
+
occurrence {
|
|
559
|
+
...scheduleOccurrenceFragment
|
|
560
|
+
}
|
|
561
|
+
targetOccurrence {
|
|
562
|
+
...scheduleOccurrenceFragment
|
|
563
|
+
}
|
|
564
|
+
eligibility {
|
|
565
|
+
eligible
|
|
566
|
+
slotKey
|
|
567
|
+
reasons {
|
|
568
|
+
code
|
|
569
|
+
severity
|
|
570
|
+
ruleId
|
|
571
|
+
startAt
|
|
572
|
+
endAt
|
|
573
|
+
message
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
viewerIsRequester
|
|
577
|
+
viewerIsCounterparty
|
|
578
|
+
viewerCanDecide
|
|
579
|
+
}
|
|
580
|
+
eligibility {
|
|
581
|
+
eligible
|
|
582
|
+
slotKey
|
|
583
|
+
reasons {
|
|
584
|
+
code
|
|
585
|
+
severity
|
|
586
|
+
ruleId
|
|
587
|
+
startAt
|
|
588
|
+
endAt
|
|
589
|
+
message
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
occurrence {
|
|
593
|
+
...scheduleOccurrenceFragment
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
${scheduleRequestFragment}
|
|
598
|
+
${scheduleOccurrenceFragment}
|
|
599
|
+
`;
|
|
600
|
+
|
|
601
|
+
export const respondScheduleRequestMtn = gql`
|
|
602
|
+
mutation respondScheduleRequest($input: RespondScheduleRequestInput!) {
|
|
603
|
+
respondScheduleRequest(input: $input) {
|
|
604
|
+
...scheduleRequestFragment
|
|
605
|
+
occurrence {
|
|
606
|
+
...scheduleOccurrenceFragment
|
|
607
|
+
}
|
|
608
|
+
targetOccurrence {
|
|
609
|
+
...scheduleOccurrenceFragment
|
|
610
|
+
}
|
|
611
|
+
eligibility {
|
|
612
|
+
eligible
|
|
613
|
+
slotKey
|
|
614
|
+
reasons {
|
|
615
|
+
code
|
|
616
|
+
severity
|
|
617
|
+
ruleId
|
|
618
|
+
startAt
|
|
619
|
+
endAt
|
|
620
|
+
message
|
|
621
|
+
}
|
|
622
|
+
}
|
|
623
|
+
viewerIsRequester
|
|
624
|
+
viewerIsCounterparty
|
|
625
|
+
viewerCanDecide
|
|
626
|
+
}
|
|
627
|
+
}
|
|
628
|
+
${scheduleRequestFragment}
|
|
629
|
+
${scheduleOccurrenceFragment}
|
|
630
|
+
`;
|
|
631
|
+
|
|
632
|
+
export const withdrawScheduleRequestMtn = gql`
|
|
633
|
+
mutation withdrawScheduleRequest($input: WithdrawScheduleRequestInput!) {
|
|
634
|
+
withdrawScheduleRequest(input: $input) {
|
|
635
|
+
...scheduleRequestFragment
|
|
636
|
+
occurrence {
|
|
637
|
+
...scheduleOccurrenceFragment
|
|
638
|
+
}
|
|
639
|
+
targetOccurrence {
|
|
640
|
+
...scheduleOccurrenceFragment
|
|
641
|
+
}
|
|
642
|
+
eligibility {
|
|
643
|
+
eligible
|
|
644
|
+
slotKey
|
|
645
|
+
reasons {
|
|
646
|
+
code
|
|
647
|
+
severity
|
|
648
|
+
ruleId
|
|
649
|
+
startAt
|
|
650
|
+
endAt
|
|
651
|
+
message
|
|
652
|
+
}
|
|
653
|
+
}
|
|
654
|
+
viewerIsRequester
|
|
655
|
+
viewerIsCounterparty
|
|
656
|
+
viewerCanDecide
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
${scheduleRequestFragment}
|
|
660
|
+
${scheduleOccurrenceFragment}
|
|
661
|
+
`;
|
|
662
|
+
|
|
663
|
+
export const decideScheduleRequestMtn = gql`
|
|
664
|
+
mutation decideScheduleRequest($input: DecideScheduleRequestInput!) {
|
|
665
|
+
decideScheduleRequest(input: $input) {
|
|
666
|
+
request {
|
|
667
|
+
...scheduleRequestFragment
|
|
668
|
+
occurrence {
|
|
669
|
+
...scheduleOccurrenceFragment
|
|
670
|
+
}
|
|
671
|
+
targetOccurrence {
|
|
672
|
+
...scheduleOccurrenceFragment
|
|
673
|
+
}
|
|
674
|
+
eligibility {
|
|
675
|
+
eligible
|
|
676
|
+
slotKey
|
|
677
|
+
reasons {
|
|
678
|
+
code
|
|
679
|
+
severity
|
|
680
|
+
ruleId
|
|
681
|
+
startAt
|
|
682
|
+
endAt
|
|
683
|
+
message
|
|
684
|
+
}
|
|
685
|
+
}
|
|
686
|
+
viewerIsRequester
|
|
687
|
+
viewerIsCounterparty
|
|
688
|
+
viewerCanDecide
|
|
689
|
+
}
|
|
690
|
+
eligibility {
|
|
691
|
+
eligible
|
|
692
|
+
slotKey
|
|
693
|
+
reasons {
|
|
694
|
+
code
|
|
695
|
+
severity
|
|
696
|
+
ruleId
|
|
697
|
+
startAt
|
|
698
|
+
endAt
|
|
699
|
+
message
|
|
700
|
+
}
|
|
701
|
+
}
|
|
702
|
+
occurrence {
|
|
703
|
+
...scheduleOccurrenceFragment
|
|
704
|
+
}
|
|
705
|
+
}
|
|
706
|
+
}
|
|
707
|
+
${scheduleRequestFragment}
|
|
708
|
+
${scheduleOccurrenceFragment}
|
|
709
|
+
`;
|
|
710
|
+
|
|
711
|
+
export const createScheduleTimeOffMtn = gql`
|
|
712
|
+
mutation createScheduleTimeOff($input: CreateScheduleTimeOffInput!) {
|
|
713
|
+
createScheduleTimeOff(input: $input) {
|
|
714
|
+
...scheduleTimeOffFragment
|
|
715
|
+
conflictingAssignments {
|
|
716
|
+
...scheduleOccurrenceFragment
|
|
717
|
+
}
|
|
718
|
+
releasedAssignmentIds
|
|
719
|
+
viewerIsRequester
|
|
720
|
+
viewerCanDecide
|
|
721
|
+
}
|
|
722
|
+
}
|
|
723
|
+
${scheduleTimeOffFragment}
|
|
724
|
+
${scheduleOccurrenceFragment}
|
|
725
|
+
`;
|
|
726
|
+
|
|
727
|
+
export const decideScheduleTimeOffMtn = gql`
|
|
728
|
+
mutation decideScheduleTimeOff($input: DecideScheduleTimeOffInput!) {
|
|
729
|
+
decideScheduleTimeOff(input: $input) {
|
|
730
|
+
...scheduleTimeOffFragment
|
|
731
|
+
conflictingAssignments {
|
|
732
|
+
...scheduleOccurrenceFragment
|
|
733
|
+
}
|
|
734
|
+
releasedAssignmentIds
|
|
735
|
+
viewerIsRequester
|
|
736
|
+
viewerCanDecide
|
|
737
|
+
}
|
|
738
|
+
}
|
|
739
|
+
${scheduleTimeOffFragment}
|
|
740
|
+
${scheduleOccurrenceFragment}
|
|
741
|
+
`;
|
|
742
|
+
|
|
743
|
+
export const cancelScheduleTimeOffMtn = gql`
|
|
744
|
+
mutation cancelScheduleTimeOff($input: CancelScheduleTimeOffInput!) {
|
|
745
|
+
cancelScheduleTimeOff(input: $input) {
|
|
746
|
+
...scheduleTimeOffFragment
|
|
747
|
+
conflictingAssignments {
|
|
748
|
+
...scheduleOccurrenceFragment
|
|
749
|
+
}
|
|
750
|
+
releasedAssignmentIds
|
|
751
|
+
viewerIsRequester
|
|
752
|
+
viewerCanDecide
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
${scheduleTimeOffFragment}
|
|
756
|
+
${scheduleOccurrenceFragment}
|
|
757
|
+
`;
|
|
758
|
+
|
|
759
|
+
export const createScheduleProjectMtn = gql`
|
|
760
|
+
mutation createScheduleProject($input: CreateScheduleProjectInput!) {
|
|
761
|
+
createScheduleProject(input: $input) {
|
|
762
|
+
...scheduleProjectFragment
|
|
763
|
+
activityCount
|
|
764
|
+
unreviewedCount
|
|
765
|
+
viewerPermission
|
|
766
|
+
viewerCanEdit
|
|
767
|
+
viewerCanEditAccess
|
|
768
|
+
viewerIsManager
|
|
769
|
+
}
|
|
770
|
+
}
|
|
771
|
+
${scheduleProjectFragment}
|
|
772
|
+
${scheduleProjectRunFragment}
|
|
773
|
+
`;
|
|
774
|
+
|
|
775
|
+
export const updateScheduleProjectMtn = gql`
|
|
776
|
+
mutation updateScheduleProject($input: UpdateScheduleProjectInput!) {
|
|
777
|
+
updateScheduleProject(input: $input) {
|
|
778
|
+
...scheduleProjectFragment
|
|
779
|
+
activityCount
|
|
780
|
+
unreviewedCount
|
|
781
|
+
viewerPermission
|
|
782
|
+
viewerCanEdit
|
|
783
|
+
viewerCanEditAccess
|
|
784
|
+
viewerIsManager
|
|
785
|
+
}
|
|
786
|
+
}
|
|
787
|
+
${scheduleProjectFragment}
|
|
788
|
+
${scheduleProjectRunFragment}
|
|
789
|
+
`;
|
|
790
|
+
|
|
791
|
+
export const updateScheduleProjectAccessMtn = gql`
|
|
792
|
+
mutation updateScheduleProjectAccess($input: UpdateScheduleProjectAccessInput!) {
|
|
793
|
+
updateScheduleProjectAccess(input: $input) {
|
|
794
|
+
...scheduleProjectFragment
|
|
795
|
+
activityCount
|
|
796
|
+
unreviewedCount
|
|
797
|
+
viewerPermission
|
|
798
|
+
viewerCanEdit
|
|
799
|
+
viewerCanEditAccess
|
|
800
|
+
viewerIsManager
|
|
801
|
+
}
|
|
802
|
+
}
|
|
803
|
+
${scheduleProjectFragment}
|
|
804
|
+
${scheduleProjectRunFragment}
|
|
805
|
+
`;
|
|
806
|
+
|
|
807
|
+
export const deleteScheduleProjectMtn = gql`
|
|
808
|
+
mutation deleteScheduleProject($input: DeleteScheduleProjectInput!) {
|
|
809
|
+
deleteScheduleProject(input: $input)
|
|
810
|
+
}
|
|
811
|
+
|
|
812
|
+
`;
|
|
813
|
+
|
|
814
|
+
export const createScheduleWbsNodeMtn = gql`
|
|
815
|
+
mutation createScheduleWbsNode($input: CreateScheduleWbsNodeInput!) {
|
|
816
|
+
createScheduleWbsNode(input: $input) {
|
|
817
|
+
id
|
|
818
|
+
projectId
|
|
819
|
+
parentId
|
|
820
|
+
code
|
|
821
|
+
name
|
|
822
|
+
path
|
|
823
|
+
depth
|
|
824
|
+
ordinal
|
|
825
|
+
startAt
|
|
826
|
+
finishAt
|
|
827
|
+
percentComplete
|
|
828
|
+
}
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
`;
|
|
832
|
+
|
|
833
|
+
export const updateScheduleWbsNodeMtn = gql`
|
|
834
|
+
mutation updateScheduleWbsNode($input: UpdateScheduleWbsNodeInput!) {
|
|
835
|
+
updateScheduleWbsNode(input: $input) {
|
|
836
|
+
id
|
|
837
|
+
projectId
|
|
838
|
+
parentId
|
|
839
|
+
code
|
|
840
|
+
name
|
|
841
|
+
path
|
|
842
|
+
depth
|
|
843
|
+
ordinal
|
|
844
|
+
startAt
|
|
845
|
+
finishAt
|
|
846
|
+
percentComplete
|
|
847
|
+
}
|
|
848
|
+
}
|
|
849
|
+
|
|
850
|
+
`;
|
|
851
|
+
|
|
852
|
+
export const deleteScheduleWbsNodeMtn = gql`
|
|
853
|
+
mutation deleteScheduleWbsNode($input: DeleteScheduleWbsNodeInput!) {
|
|
854
|
+
deleteScheduleWbsNode(input: $input)
|
|
855
|
+
}
|
|
856
|
+
|
|
857
|
+
`;
|
|
858
|
+
|
|
859
|
+
export const createScheduleActivityMtn = gql`
|
|
860
|
+
mutation createScheduleActivity($input: CreateScheduleActivityInput!) {
|
|
861
|
+
createScheduleActivity(input: $input) {
|
|
862
|
+
...scheduleActivityFragment
|
|
863
|
+
}
|
|
864
|
+
}
|
|
865
|
+
${scheduleActivityFragment}
|
|
866
|
+
`;
|
|
867
|
+
|
|
868
|
+
export const createScheduleActivitiesMtn = gql`
|
|
869
|
+
mutation createScheduleActivities($input: CreateScheduleActivitiesInput!) {
|
|
870
|
+
createScheduleActivities(input: $input) {
|
|
871
|
+
...scheduleActivityFragment
|
|
872
|
+
}
|
|
873
|
+
}
|
|
874
|
+
${scheduleActivityFragment}
|
|
875
|
+
`;
|
|
876
|
+
|
|
877
|
+
export const updateScheduleActivityMtn = gql`
|
|
878
|
+
mutation updateScheduleActivity($input: UpdateScheduleActivityInput!) {
|
|
879
|
+
updateScheduleActivity(input: $input) {
|
|
880
|
+
...scheduleActivityFragment
|
|
881
|
+
}
|
|
882
|
+
}
|
|
883
|
+
${scheduleActivityFragment}
|
|
884
|
+
`;
|
|
885
|
+
|
|
886
|
+
export const updateScheduleActivitiesProgressMtn = gql`
|
|
887
|
+
mutation updateScheduleActivitiesProgress($input: UpdateScheduleActivitiesProgressInput!) {
|
|
888
|
+
updateScheduleActivitiesProgress(input: $input) {
|
|
889
|
+
...scheduleActivityFragment
|
|
890
|
+
}
|
|
891
|
+
}
|
|
892
|
+
${scheduleActivityFragment}
|
|
893
|
+
`;
|
|
894
|
+
|
|
895
|
+
export const deleteScheduleActivitiesMtn = gql`
|
|
896
|
+
mutation deleteScheduleActivities($input: DeleteScheduleActivitiesInput!) {
|
|
897
|
+
deleteScheduleActivities(input: $input)
|
|
898
|
+
}
|
|
899
|
+
|
|
900
|
+
`;
|
|
901
|
+
|
|
902
|
+
export const moveScheduleActivitiesMtn = gql`
|
|
903
|
+
mutation moveScheduleActivities($input: MoveScheduleActivitiesInput!) {
|
|
904
|
+
moveScheduleActivities(input: $input) {
|
|
905
|
+
...scheduleActivityFragment
|
|
906
|
+
}
|
|
907
|
+
}
|
|
908
|
+
${scheduleActivityFragment}
|
|
909
|
+
`;
|
|
910
|
+
|
|
911
|
+
export const reviewScheduleActivitiesMtn = gql`
|
|
912
|
+
mutation reviewScheduleActivities($input: ReviewScheduleActivitiesInput!) {
|
|
913
|
+
reviewScheduleActivities(input: $input) {
|
|
914
|
+
...scheduleActivityFragment
|
|
915
|
+
}
|
|
916
|
+
}
|
|
917
|
+
${scheduleActivityFragment}
|
|
918
|
+
`;
|
|
919
|
+
|
|
920
|
+
export const createScheduleRelationshipsMtn = gql`
|
|
921
|
+
mutation createScheduleRelationships($input: CreateScheduleRelationshipsInput!) {
|
|
922
|
+
createScheduleRelationships(input: $input) {
|
|
923
|
+
relationships {
|
|
924
|
+
...scheduleRelationshipFragment
|
|
925
|
+
}
|
|
926
|
+
cycleActivityIds
|
|
927
|
+
duplicateCount
|
|
928
|
+
}
|
|
929
|
+
}
|
|
930
|
+
${scheduleRelationshipFragment}
|
|
931
|
+
`;
|
|
932
|
+
|
|
933
|
+
export const replaceScheduleActivityPredecessorsMtn = gql`
|
|
934
|
+
mutation replaceScheduleActivityPredecessors($input: ReplaceScheduleActivityPredecessorsInput!) {
|
|
935
|
+
replaceScheduleActivityPredecessors(input: $input) {
|
|
936
|
+
activity {
|
|
937
|
+
...scheduleActivityFragment
|
|
938
|
+
}
|
|
939
|
+
relationships {
|
|
940
|
+
...scheduleRelationshipFragment
|
|
941
|
+
}
|
|
942
|
+
}
|
|
943
|
+
}
|
|
944
|
+
${scheduleActivityFragment}
|
|
945
|
+
${scheduleRelationshipFragment}
|
|
946
|
+
`;
|
|
947
|
+
|
|
948
|
+
export const updateScheduleRelationshipMtn = gql`
|
|
949
|
+
mutation updateScheduleRelationship($input: UpdateScheduleRelationshipInput!) {
|
|
950
|
+
updateScheduleRelationship(input: $input) {
|
|
951
|
+
...scheduleRelationshipFragment
|
|
952
|
+
}
|
|
953
|
+
}
|
|
954
|
+
${scheduleRelationshipFragment}
|
|
955
|
+
`;
|
|
956
|
+
|
|
957
|
+
export const deleteScheduleRelationshipsMtn = gql`
|
|
958
|
+
mutation deleteScheduleRelationships($input: DeleteScheduleRelationshipsInput!) {
|
|
959
|
+
deleteScheduleRelationships(input: $input)
|
|
960
|
+
}
|
|
961
|
+
|
|
962
|
+
`;
|
|
963
|
+
|
|
964
|
+
export const replaceScheduleActivityAssignmentMtn = gql`
|
|
965
|
+
mutation replaceScheduleActivityAssignment($input: ReplaceScheduleActivityAssignmentInput!) {
|
|
966
|
+
replaceScheduleActivityAssignment(input: $input) {
|
|
967
|
+
id
|
|
968
|
+
projectId
|
|
969
|
+
activityId
|
|
970
|
+
resourceId
|
|
971
|
+
plannedUnits
|
|
972
|
+
unitsPerDay
|
|
973
|
+
actualUnits
|
|
974
|
+
remainingUnits
|
|
975
|
+
}
|
|
976
|
+
}
|
|
977
|
+
|
|
978
|
+
`;
|
|
979
|
+
|
|
980
|
+
export const deleteScheduleActivityAssignmentMtn = gql`
|
|
981
|
+
mutation deleteScheduleActivityAssignment($input: DeleteScheduleActivityAssignmentInput!) {
|
|
982
|
+
deleteScheduleActivityAssignment(input: $input)
|
|
983
|
+
}
|
|
984
|
+
|
|
985
|
+
`;
|
|
986
|
+
|
|
987
|
+
export const runScheduleProjectMtn = gql`
|
|
988
|
+
mutation runScheduleProject($input: RunScheduleProjectInput!) {
|
|
989
|
+
runScheduleProject(input: $input) {
|
|
990
|
+
...scheduleProjectRunFragment
|
|
991
|
+
}
|
|
992
|
+
}
|
|
993
|
+
${scheduleProjectRunFragment}
|
|
994
|
+
`;
|
|
995
|
+
|
|
996
|
+
export const cancelScheduleProjectRunMtn = gql`
|
|
997
|
+
mutation cancelScheduleProjectRun($input: CancelScheduleProjectRunInput!) {
|
|
998
|
+
cancelScheduleProjectRun(input: $input) {
|
|
999
|
+
...scheduleProjectRunFragment
|
|
1000
|
+
}
|
|
1001
|
+
}
|
|
1002
|
+
${scheduleProjectRunFragment}
|
|
1003
|
+
`;
|
|
1004
|
+
|
|
1005
|
+
export const createScheduleBaselineMtn = gql`
|
|
1006
|
+
mutation createScheduleBaseline($input: CreateScheduleBaselineInput!) {
|
|
1007
|
+
createScheduleBaseline(input: $input) {
|
|
1008
|
+
id
|
|
1009
|
+
projectId
|
|
1010
|
+
name
|
|
1011
|
+
note
|
|
1012
|
+
dataDateAt
|
|
1013
|
+
isCurrent
|
|
1014
|
+
createdByAccountId
|
|
1015
|
+
createdAt
|
|
1016
|
+
cursor
|
|
1017
|
+
}
|
|
1018
|
+
}
|
|
1019
|
+
|
|
1020
|
+
`;
|
|
1021
|
+
|
|
1022
|
+
export const setScheduleCurrentBaselineMtn = gql`
|
|
1023
|
+
mutation setScheduleCurrentBaseline($input: SetScheduleCurrentBaselineInput!) {
|
|
1024
|
+
setScheduleCurrentBaseline(input: $input) {
|
|
1025
|
+
...scheduleProjectFragment
|
|
1026
|
+
activityCount
|
|
1027
|
+
unreviewedCount
|
|
1028
|
+
viewerPermission
|
|
1029
|
+
viewerCanEdit
|
|
1030
|
+
viewerCanEditAccess
|
|
1031
|
+
viewerIsManager
|
|
1032
|
+
}
|
|
1033
|
+
}
|
|
1034
|
+
${scheduleProjectFragment}
|
|
1035
|
+
${scheduleProjectRunFragment}
|
|
1036
|
+
`;
|
|
1037
|
+
|
|
1038
|
+
export const deleteScheduleBaselineMtn = gql`
|
|
1039
|
+
mutation deleteScheduleBaseline($input: DeleteScheduleBaselineInput!) {
|
|
1040
|
+
deleteScheduleBaseline(input: $input)
|
|
1041
|
+
}
|
|
1042
|
+
|
|
1043
|
+
`;
|
|
1044
|
+
|
|
1045
|
+
export const replaceScheduleCodeTypeMtn = gql`
|
|
1046
|
+
mutation replaceScheduleCodeType($input: ReplaceScheduleCodeTypeInput!) {
|
|
1047
|
+
replaceScheduleCodeType(input: $input) {
|
|
1048
|
+
id
|
|
1049
|
+
organizationId
|
|
1050
|
+
projectId
|
|
1051
|
+
key
|
|
1052
|
+
name
|
|
1053
|
+
values {
|
|
1054
|
+
key
|
|
1055
|
+
label
|
|
1056
|
+
color
|
|
1057
|
+
}
|
|
1058
|
+
ordinal
|
|
1059
|
+
}
|
|
1060
|
+
}
|
|
1061
|
+
|
|
1062
|
+
`;
|
|
1063
|
+
|
|
1064
|
+
export const deleteScheduleCodeTypeMtn = gql`
|
|
1065
|
+
mutation deleteScheduleCodeType($input: DeleteScheduleCodeTypeInput!) {
|
|
1066
|
+
deleteScheduleCodeType(input: $input)
|
|
1067
|
+
}
|
|
1068
|
+
|
|
1069
|
+
`;
|
|
1070
|
+
|
|
1071
|
+
export const importScheduleProjectPlanMtn = gql`
|
|
1072
|
+
mutation importScheduleProjectPlan($input: ScheduleImportPlanInput!) {
|
|
1073
|
+
importScheduleProjectPlan(input: $input) {
|
|
1074
|
+
applied
|
|
1075
|
+
dryRun
|
|
1076
|
+
wbsCreated
|
|
1077
|
+
wbsUpdated
|
|
1078
|
+
activitiesCreated
|
|
1079
|
+
activitiesUpdated
|
|
1080
|
+
activitiesSkipped
|
|
1081
|
+
activitiesDeleted
|
|
1082
|
+
relationshipsCreated
|
|
1083
|
+
assignmentsWritten
|
|
1084
|
+
errors {
|
|
1085
|
+
code
|
|
1086
|
+
section
|
|
1087
|
+
index
|
|
1088
|
+
rowCode
|
|
1089
|
+
message
|
|
1090
|
+
}
|
|
1091
|
+
cycleCodes
|
|
1092
|
+
run {
|
|
1093
|
+
...scheduleProjectRunFragment
|
|
1094
|
+
}
|
|
1095
|
+
}
|
|
1096
|
+
}
|
|
1097
|
+
${scheduleProjectRunFragment}
|
|
1098
|
+
`;
|
|
1099
|
+
|
|
1100
|
+
export const deleteScheduleActivityMtn = gql`
|
|
1101
|
+
mutation deleteScheduleActivity($input: DeleteScheduleActivityInput!) {
|
|
1102
|
+
deleteScheduleActivity(input: $input)
|
|
1103
|
+
}
|
|
1104
|
+
|
|
1105
|
+
`;
|
|
1106
|
+
|
|
1107
|
+
export const createScheduleRelationshipMtn = gql`
|
|
1108
|
+
mutation createScheduleRelationship($input: CreateScheduleRelationshipInput!) {
|
|
1109
|
+
createScheduleRelationship(input: $input) {
|
|
1110
|
+
...scheduleRelationshipFragment
|
|
1111
|
+
}
|
|
1112
|
+
}
|
|
1113
|
+
${scheduleRelationshipFragment}
|
|
1114
|
+
`;
|
|
1115
|
+
|
|
1116
|
+
export const deleteScheduleRelationshipMtn = gql`
|
|
1117
|
+
mutation deleteScheduleRelationship($input: DeleteScheduleRelationshipInput!) {
|
|
1118
|
+
deleteScheduleRelationship(input: $input)
|
|
1119
|
+
}
|
|
1120
|
+
|
|
1121
|
+
`;
|