@jsb188/graphql 1.1.11 → 1.1.13
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/LICENSE +21 -0
- package/audience.d.ts +205 -0
- package/cache/config.ts +65 -28
- package/cache/index.helpers.ts +96 -0
- package/cache/index.ts +364 -808
- package/cache/mounted-queries.ts +33 -0
- package/cache/optimistic-ui-runtime.ts +46 -0
- package/cache/optimistic-ui.ts +401 -0
- package/cache/persist.ts +107 -22
- package/cache/realtime-fence.ts +47 -0
- package/cache/realtime-live.ts +17 -0
- 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} +13 -39
- package/client/index.ts +4 -2
- package/client/request.helpers.ts +14 -0
- package/client/request.ts +122 -232
- package/client/storage-asset.ts +58 -0
- package/gql/fragments/accountAuthFragments.ts +0 -4
- package/gql/fragments/agentMemoryFragments.ts +5 -1
- package/gql/fragments/agentNoteFragments.ts +156 -0
- package/gql/fragments/aiChatFragments.ts +35 -11
- package/gql/fragments/aiChatLinkFragments.ts +8 -0
- package/gql/fragments/audienceFragments.ts +76 -0
- package/gql/fragments/dataTableFragments.ts +48 -80
- package/gql/fragments/emailFragments.ts +49 -21
- package/gql/fragments/emailOutreachFragments.ts +281 -0
- package/gql/fragments/fieldDocFragments.ts +222 -40
- package/gql/fragments/inboundContactFragments.ts +2 -0
- package/gql/fragments/libraryFragments.ts +120 -0
- package/gql/fragments/logFragments.ts +93 -2
- package/gql/fragments/organizationFragments.ts +12 -0
- package/gql/fragments/qrCodeFragments.ts +29 -0
- package/gql/fragments/scheduleFragments.ts +574 -145
- package/gql/fragments/sheetFragments.ts +86 -424
- package/gql/fragments/storageFragments.ts +25 -1
- package/gql/fragments/workWaitFragments.ts +13 -0
- package/gql/fragments/workflowFragments.ts +32 -4
- package/gql/mutations/agentMemoryMutations.ts +32 -0
- package/gql/mutations/agentNoteMutations.ts +64 -0
- package/gql/mutations/aiChatLinkMutations.ts +13 -0
- package/gql/mutations/aiChatMutations.ts +34 -4
- package/gql/mutations/audienceMutations.ts +58 -0
- package/gql/mutations/authMutations.ts +24 -28
- package/gql/mutations/billingMutations.ts +24 -0
- package/gql/mutations/contactMutations.ts +23 -0
- package/gql/mutations/dataTableMutations.ts +18 -75
- package/gql/mutations/emailMutations.ts +22 -0
- package/gql/mutations/emailOutreachMutations.ts +139 -0
- package/gql/mutations/fieldDocMutations.ts +162 -13
- package/gql/mutations/index.ts +10 -5
- package/gql/mutations/organizationMutations.ts +6 -0
- package/gql/mutations/qrCodeMutations.ts +20 -0
- package/gql/mutations/scheduleMutations.ts +389 -417
- package/gql/mutations/sheetMutations.ts +62 -118
- package/gql/mutations/storageMutations.ts +1 -1
- package/gql/mutations/workflowMutations.ts +94 -0
- package/gql/queries/agentMemoryQueries.ts +12 -2
- package/gql/queries/agentNoteQueries.ts +86 -0
- package/gql/queries/aiChatQueries.ts +63 -12
- package/gql/queries/audienceQueries.ts +104 -0
- package/gql/queries/authQueries.ts +20 -4
- package/gql/queries/billingQueries.ts +114 -9
- package/gql/queries/dataTableQueries.ts +43 -75
- package/gql/queries/emailOutreachQueries.ts +282 -0
- package/gql/queries/emailQueries.ts +48 -64
- package/gql/queries/emailReplyReportQueries.ts +127 -0
- package/gql/queries/fieldDocQueries.ts +128 -98
- package/gql/queries/inboundContactQueries.ts +15 -4
- package/gql/queries/index.ts +5 -3
- package/gql/queries/libraryQueries.ts +112 -0
- package/gql/queries/logQueries.ts +86 -12
- package/gql/queries/organizationQueries.ts +44 -12
- package/gql/queries/qrCodeQueries.ts +27 -0
- package/gql/queries/scheduleQueries.ts +401 -278
- package/gql/queries/sheetQueries.ts +94 -165
- package/gql/queries/storageQueries.ts +11 -4
- package/gql/queries/workflowQueries.ts +61 -12
- package/gql/reactivity.ts +98 -0
- package/gql/recordReads.ts +171 -0
- package/hooks/index.helpers.ts +52 -0
- package/hooks/index.ts +920 -715
- package/hooks/use-agentMemory-mtn.ts +29 -31
- package/hooks/use-agentMemory-qry.ts +15 -3
- package/hooks/use-agentNote-mtn.ts +89 -0
- package/hooks/use-agentNote-qry.ts +162 -0
- package/hooks/use-agentNote-recovery.helpers.ts +58 -0
- package/hooks/use-agentNote-recovery.ts +57 -0
- package/hooks/use-aiChat-mtn.ts +104 -115
- package/hooks/use-aiChat-qry.helpers.ts +124 -0
- package/hooks/use-aiChat-qry.ts +254 -387
- package/hooks/use-aiChat-stream-mtn.ts +14 -0
- package/hooks/use-audience-mtn.ts +170 -0
- package/hooks/use-audience-qry.helpers.ts +39 -0
- package/hooks/use-audience-qry.ts +245 -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-dataTable-mtn.ts +23 -115
- package/hooks/use-dataTable-qry.ts +69 -914
- package/hooks/use-email-mtn.ts +26 -0
- package/hooks/use-email-qry.helpers.ts +37 -0
- package/hooks/use-email-qry.ts +44 -174
- package/hooks/use-emailOutreach-mtn.ts +211 -0
- package/hooks/use-emailOutreach-qry.helpers.ts +25 -0
- package/hooks/use-emailOutreach-qry.ts +367 -0
- package/hooks/use-emailOutreachReplyReport-qry.ts +46 -0
- package/hooks/use-fieldDoc-mtn.ts +244 -32
- 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-library-qry.ts +233 -0
- 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-qrCode-mtn.ts +40 -0
- package/hooks/use-qrCode-qry.ts +78 -0
- package/hooks/use-schedule-mtn.ts +231 -348
- package/hooks/use-schedule-qry.ts +208 -139
- package/hooks/use-schedule-reactive.ts +218 -0
- package/hooks/use-sheet-mtn.ts +91 -199
- package/hooks/use-sheet-qry.ts +88 -237
- package/hooks/use-storage-qry.ts +84 -61
- package/hooks/use-workflow-mtn.ts +84 -23
- package/hooks/use-workflow-qry.ts +60 -61
- package/libs/ai-chat-link-events.ts +78 -0
- 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/data-changes.helpers.ts +161 -0
- package/libs/data-changes.ts +382 -0
- package/libs/fragment-realtime-sequence.ts +55 -0
- package/libs/open-sheet.ts +138 -0
- package/libs/record-read.ts +327 -0
- package/libs/sheet-command-batch.ts +45 -0
- package/libs/sheet-realtime-packet.ts +53 -0
- package/libs/sheet-view-realtime-router.ts +99 -0
- package/loaders/emailPreference.ts +69 -0
- package/loaders/rest.ts +12 -0
- package/package.json +77 -25
- package/schedule.d.ts +1183 -0
- package/sse.helpers.ts +19 -0
- package/sse.ts +26 -115
- package/types.d.ts +48 -25
- package/cache/index.test.ts +0 -881
- 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-managed-session.test.ts +0 -574
- package/client/request-no-store.test.ts +0 -157
- package/client/sse-ticket.test.ts +0 -26
- package/deno.lock +0 -170
- package/deno.test.json +0 -10
- package/gql/fragments/agentDocFragments.ts +0 -46
- package/gql/fragments/billingFragments.ts +0 -14
- package/gql/fragments/campaignFragments.ts +0 -277
- package/gql/mutations/agentDocMutations.ts +0 -177
- package/gql/mutations/campaignMutations.ts +0 -215
- package/gql/queries/agentDocQueries.ts +0 -120
- package/gql/queries/appQueries.ts +0 -14
- package/gql/queries/campaignQueries.ts +0 -127
- package/hooks/use-agentDoc-mtn.ts +0 -285
- package/hooks/use-agentDoc-qry.ts +0 -208
- package/hooks/use-app-qry.ts +0 -22
- package/hooks/use-campaign-mtn.ts +0 -377
- package/hooks/use-campaign-qry.ts +0 -257
- package/loaders/campaign.ts +0 -137
- package/tsconfig.json +0 -13
|
@@ -1,423 +1,395 @@
|
|
|
1
1
|
import { gql } from 'graphql-tag';
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
scheduleActivityAssignmentFragment,
|
|
4
|
+
scheduleActivityFragment,
|
|
5
|
+
scheduleBaselineFragment,
|
|
6
|
+
scheduleProjectFragment,
|
|
7
|
+
scheduleProjectRunFragment,
|
|
8
|
+
scheduleRelationshipFragment,
|
|
9
|
+
scheduleResourceCapacityFragment,
|
|
10
|
+
scheduleResourceFragment,
|
|
11
|
+
scheduleWbsNodeFragment,
|
|
12
|
+
scheduleWorkCalendarExceptionFragment,
|
|
13
|
+
scheduleWorkCalendarFragment,
|
|
6
14
|
} from '../fragments/scheduleFragments.ts';
|
|
7
15
|
|
|
8
|
-
//
|
|
9
|
-
//
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
${
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
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
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
${
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
${
|
|
334
|
-
`;
|
|
335
|
-
|
|
336
|
-
export const
|
|
337
|
-
mutation
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
}
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
}
|
|
386
|
-
|
|
387
|
-
${scheduleRequestFragment}
|
|
388
|
-
`;
|
|
389
|
-
|
|
390
|
-
// NOTE: The raw token is returned exactly once, here. Only a hash is stored,
|
|
391
|
-
// so it can never be retrieved again — the UI has to show it now or the
|
|
392
|
-
// subscription is unusable.
|
|
393
|
-
|
|
394
|
-
export const createScheduleFeedTokenMtn = gql`
|
|
395
|
-
mutation createScheduleFeedToken (
|
|
396
|
-
$organizationId: GenericID!
|
|
397
|
-
$calendarId: GenericID
|
|
398
|
-
$scope: String
|
|
399
|
-
) {
|
|
400
|
-
createScheduleFeedToken (
|
|
401
|
-
organizationId: $organizationId
|
|
402
|
-
calendarId: $calendarId
|
|
403
|
-
scope: $scope
|
|
404
|
-
) {
|
|
405
|
-
id
|
|
406
|
-
calendarId
|
|
407
|
-
scope
|
|
408
|
-
token
|
|
409
|
-
}
|
|
410
|
-
}
|
|
411
|
-
`;
|
|
412
|
-
|
|
413
|
-
export const revokeScheduleFeedTokenMtn = gql`
|
|
414
|
-
mutation revokeScheduleFeedToken (
|
|
415
|
-
$organizationId: GenericID!
|
|
416
|
-
$feedTokenId: GenericID!
|
|
417
|
-
) {
|
|
418
|
-
revokeScheduleFeedToken (
|
|
419
|
-
organizationId: $organizationId
|
|
420
|
-
feedTokenId: $feedTokenId
|
|
421
|
-
)
|
|
16
|
+
// Shift-side writes (shifts, roles, rules, requests, time off, publishing)
|
|
17
|
+
// belong to the agent tools; the web reads them only.
|
|
18
|
+
|
|
19
|
+
export const createScheduleWorkCalendarMtn = gql`
|
|
20
|
+
mutation createScheduleWorkCalendar($input: CreateScheduleWorkCalendarInput!) {
|
|
21
|
+
createScheduleWorkCalendar(input: $input) {
|
|
22
|
+
...scheduleWorkCalendarFragment
|
|
23
|
+
exceptions {
|
|
24
|
+
...scheduleWorkCalendarExceptionFragment
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
${scheduleWorkCalendarFragment}
|
|
29
|
+
${scheduleWorkCalendarExceptionFragment}
|
|
30
|
+
`;
|
|
31
|
+
|
|
32
|
+
export const updateScheduleWorkCalendarMtn = gql`
|
|
33
|
+
mutation updateScheduleWorkCalendar($input: UpdateScheduleWorkCalendarInput!) {
|
|
34
|
+
updateScheduleWorkCalendar(input: $input) {
|
|
35
|
+
...scheduleWorkCalendarFragment
|
|
36
|
+
exceptions {
|
|
37
|
+
...scheduleWorkCalendarExceptionFragment
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
${scheduleWorkCalendarFragment}
|
|
42
|
+
${scheduleWorkCalendarExceptionFragment}
|
|
43
|
+
`;
|
|
44
|
+
|
|
45
|
+
export const setScheduleWorkCalendarExceptionMtn = gql`
|
|
46
|
+
mutation setScheduleWorkCalendarException($input: SetScheduleWorkCalendarExceptionInput!) {
|
|
47
|
+
setScheduleWorkCalendarException(input: $input) {
|
|
48
|
+
...scheduleWorkCalendarFragment
|
|
49
|
+
exceptions {
|
|
50
|
+
...scheduleWorkCalendarExceptionFragment
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
${scheduleWorkCalendarFragment}
|
|
55
|
+
${scheduleWorkCalendarExceptionFragment}
|
|
56
|
+
`;
|
|
57
|
+
|
|
58
|
+
export const deleteScheduleWorkCalendarMtn = gql`
|
|
59
|
+
mutation deleteScheduleWorkCalendar($input: DeleteScheduleWorkCalendarInput!) {
|
|
60
|
+
deleteScheduleWorkCalendar(input: $input)
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
`;
|
|
64
|
+
|
|
65
|
+
export const createScheduleResourceMtn = gql`
|
|
66
|
+
mutation createScheduleResource($input: CreateScheduleResourceInput!) {
|
|
67
|
+
createScheduleResource(input: $input) {
|
|
68
|
+
...scheduleResourceFragment
|
|
69
|
+
viewerNotify {
|
|
70
|
+
channels
|
|
71
|
+
inherited
|
|
72
|
+
}
|
|
73
|
+
capacityPeriods {
|
|
74
|
+
...scheduleResourceCapacityFragment
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
${scheduleResourceFragment}
|
|
79
|
+
${scheduleResourceCapacityFragment}
|
|
80
|
+
`;
|
|
81
|
+
|
|
82
|
+
export const updateScheduleResourceMtn = gql`
|
|
83
|
+
mutation updateScheduleResource($input: UpdateScheduleResourceInput!) {
|
|
84
|
+
updateScheduleResource(input: $input) {
|
|
85
|
+
...scheduleResourceFragment
|
|
86
|
+
viewerNotify {
|
|
87
|
+
channels
|
|
88
|
+
inherited
|
|
89
|
+
}
|
|
90
|
+
capacityPeriods {
|
|
91
|
+
...scheduleResourceCapacityFragment
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
${scheduleResourceFragment}
|
|
96
|
+
${scheduleResourceCapacityFragment}
|
|
97
|
+
`;
|
|
98
|
+
|
|
99
|
+
export const createScheduleResourceCapacityMtn = gql`
|
|
100
|
+
mutation createScheduleResourceCapacity($input: CreateScheduleResourceCapacityInput!) {
|
|
101
|
+
createScheduleResourceCapacity(input: $input) {
|
|
102
|
+
...scheduleResourceFragment
|
|
103
|
+
viewerNotify {
|
|
104
|
+
channels
|
|
105
|
+
inherited
|
|
106
|
+
}
|
|
107
|
+
capacityPeriods {
|
|
108
|
+
...scheduleResourceCapacityFragment
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
${scheduleResourceFragment}
|
|
113
|
+
${scheduleResourceCapacityFragment}
|
|
114
|
+
`;
|
|
115
|
+
|
|
116
|
+
export const deleteScheduleResourceCapacityMtn = gql`
|
|
117
|
+
mutation deleteScheduleResourceCapacity($input: DeleteScheduleResourceCapacityInput!) {
|
|
118
|
+
deleteScheduleResourceCapacity(input: $input) {
|
|
119
|
+
...scheduleResourceFragment
|
|
120
|
+
viewerNotify {
|
|
121
|
+
channels
|
|
122
|
+
inherited
|
|
123
|
+
}
|
|
124
|
+
capacityPeriods {
|
|
125
|
+
...scheduleResourceCapacityFragment
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
${scheduleResourceFragment}
|
|
130
|
+
${scheduleResourceCapacityFragment}
|
|
131
|
+
`;
|
|
132
|
+
|
|
133
|
+
export const updateMyScheduleNotifyPrefsMtn = gql`
|
|
134
|
+
mutation updateMyScheduleNotifyPrefs($input: UpdateMyScheduleNotifyPrefsInput!) {
|
|
135
|
+
updateMyScheduleNotifyPrefs(input: $input) {
|
|
136
|
+
...scheduleResourceFragment
|
|
137
|
+
viewerNotify {
|
|
138
|
+
channels
|
|
139
|
+
inherited
|
|
140
|
+
}
|
|
141
|
+
capacityPeriods {
|
|
142
|
+
...scheduleResourceCapacityFragment
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
${scheduleResourceFragment}
|
|
147
|
+
${scheduleResourceCapacityFragment}
|
|
148
|
+
`;
|
|
149
|
+
|
|
150
|
+
export const createScheduleProjectMtn = gql`
|
|
151
|
+
mutation createScheduleProject($input: CreateScheduleProjectInput!) {
|
|
152
|
+
createScheduleProject(input: $input) {
|
|
153
|
+
...scheduleProjectFragment
|
|
154
|
+
activityCount
|
|
155
|
+
unreviewedCount
|
|
156
|
+
viewerPermission
|
|
157
|
+
viewerCanEdit
|
|
158
|
+
viewerCanEditAccess
|
|
159
|
+
viewerIsManager
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
${scheduleProjectFragment}
|
|
163
|
+
${scheduleProjectRunFragment}
|
|
164
|
+
`;
|
|
165
|
+
|
|
166
|
+
export const updateScheduleProjectMtn = gql`
|
|
167
|
+
mutation updateScheduleProject($input: UpdateScheduleProjectInput!) {
|
|
168
|
+
updateScheduleProject(input: $input) {
|
|
169
|
+
...scheduleProjectFragment
|
|
170
|
+
activityCount
|
|
171
|
+
unreviewedCount
|
|
172
|
+
viewerPermission
|
|
173
|
+
viewerCanEdit
|
|
174
|
+
viewerCanEditAccess
|
|
175
|
+
viewerIsManager
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
${scheduleProjectFragment}
|
|
179
|
+
${scheduleProjectRunFragment}
|
|
180
|
+
`;
|
|
181
|
+
|
|
182
|
+
export const deleteScheduleProjectMtn = gql`
|
|
183
|
+
mutation deleteScheduleProject($input: DeleteScheduleProjectInput!) {
|
|
184
|
+
deleteScheduleProject(input: $input)
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
`;
|
|
188
|
+
|
|
189
|
+
export const createScheduleWbsNodeMtn = gql`
|
|
190
|
+
mutation createScheduleWbsNode($input: CreateScheduleWbsNodeInput!) {
|
|
191
|
+
createScheduleWbsNode(input: $input) {
|
|
192
|
+
...scheduleWbsNodeFragment
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
${scheduleWbsNodeFragment}
|
|
196
|
+
`;
|
|
197
|
+
|
|
198
|
+
export const updateScheduleWbsNodeMtn = gql`
|
|
199
|
+
mutation updateScheduleWbsNode($input: UpdateScheduleWbsNodeInput!) {
|
|
200
|
+
updateScheduleWbsNode(input: $input) {
|
|
201
|
+
...scheduleWbsNodeFragment
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
${scheduleWbsNodeFragment}
|
|
205
|
+
`;
|
|
206
|
+
|
|
207
|
+
export const deleteScheduleWbsNodeMtn = gql`
|
|
208
|
+
mutation deleteScheduleWbsNode($input: DeleteScheduleWbsNodeInput!) {
|
|
209
|
+
deleteScheduleWbsNode(input: $input)
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
`;
|
|
213
|
+
|
|
214
|
+
export const createScheduleActivitiesMtn = gql`
|
|
215
|
+
mutation createScheduleActivities($input: CreateScheduleActivitiesInput!) {
|
|
216
|
+
createScheduleActivities(input: $input) {
|
|
217
|
+
...scheduleActivityFragment
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
${scheduleActivityFragment}
|
|
221
|
+
`;
|
|
222
|
+
|
|
223
|
+
export const updateScheduleActivityMtn = gql`
|
|
224
|
+
mutation updateScheduleActivity($input: UpdateScheduleActivityInput!) {
|
|
225
|
+
updateScheduleActivity(input: $input) {
|
|
226
|
+
...scheduleActivityFragment
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
${scheduleActivityFragment}
|
|
230
|
+
`;
|
|
231
|
+
|
|
232
|
+
export const deleteScheduleActivitiesMtn = gql`
|
|
233
|
+
mutation deleteScheduleActivities($input: DeleteScheduleActivitiesInput!) {
|
|
234
|
+
deleteScheduleActivities(input: $input)
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
`;
|
|
238
|
+
|
|
239
|
+
export const moveScheduleActivitiesMtn = gql`
|
|
240
|
+
mutation moveScheduleActivities($input: MoveScheduleActivitiesInput!) {
|
|
241
|
+
moveScheduleActivities(input: $input) {
|
|
242
|
+
...scheduleActivityFragment
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
${scheduleActivityFragment}
|
|
246
|
+
`;
|
|
247
|
+
|
|
248
|
+
export const reviewScheduleActivitiesMtn = gql`
|
|
249
|
+
mutation reviewScheduleActivities($input: ReviewScheduleActivitiesInput!) {
|
|
250
|
+
reviewScheduleActivities(input: $input) {
|
|
251
|
+
...scheduleActivityFragment
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
${scheduleActivityFragment}
|
|
255
|
+
`;
|
|
256
|
+
|
|
257
|
+
export const replaceScheduleActivityPredecessorsMtn = gql`
|
|
258
|
+
mutation replaceScheduleActivityPredecessors($input: ReplaceScheduleActivityPredecessorsInput!) {
|
|
259
|
+
replaceScheduleActivityPredecessors(input: $input) {
|
|
260
|
+
activity {
|
|
261
|
+
...scheduleActivityFragment
|
|
262
|
+
}
|
|
263
|
+
relationships {
|
|
264
|
+
...scheduleRelationshipFragment
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
${scheduleActivityFragment}
|
|
269
|
+
${scheduleRelationshipFragment}
|
|
270
|
+
`;
|
|
271
|
+
|
|
272
|
+
export const createScheduleRelationshipsMtn = gql`
|
|
273
|
+
mutation createScheduleRelationships($input: CreateScheduleRelationshipsInput!) {
|
|
274
|
+
createScheduleRelationships(input: $input) {
|
|
275
|
+
relationships {
|
|
276
|
+
...scheduleRelationshipFragment
|
|
277
|
+
}
|
|
278
|
+
cycleActivityIds
|
|
279
|
+
duplicateCount
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
${scheduleRelationshipFragment}
|
|
283
|
+
`;
|
|
284
|
+
|
|
285
|
+
export const updateScheduleRelationshipMtn = gql`
|
|
286
|
+
mutation updateScheduleRelationship($input: UpdateScheduleRelationshipInput!) {
|
|
287
|
+
updateScheduleRelationship(input: $input) {
|
|
288
|
+
...scheduleRelationshipFragment
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
${scheduleRelationshipFragment}
|
|
292
|
+
`;
|
|
293
|
+
|
|
294
|
+
export const deleteScheduleRelationshipsMtn = gql`
|
|
295
|
+
mutation deleteScheduleRelationships($input: DeleteScheduleRelationshipsInput!) {
|
|
296
|
+
deleteScheduleRelationships(input: $input)
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
`;
|
|
300
|
+
|
|
301
|
+
export const replaceScheduleActivityAssignmentMtn = gql`
|
|
302
|
+
mutation replaceScheduleActivityAssignment($input: ReplaceScheduleActivityAssignmentInput!) {
|
|
303
|
+
replaceScheduleActivityAssignment(input: $input) {
|
|
304
|
+
...scheduleActivityAssignmentFragment
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
${scheduleActivityAssignmentFragment}
|
|
308
|
+
`;
|
|
309
|
+
|
|
310
|
+
export const deleteScheduleActivityAssignmentMtn = gql`
|
|
311
|
+
mutation deleteScheduleActivityAssignment($input: DeleteScheduleActivityAssignmentInput!) {
|
|
312
|
+
deleteScheduleActivityAssignment(input: $input)
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
`;
|
|
316
|
+
|
|
317
|
+
export const runScheduleProjectMtn = gql`
|
|
318
|
+
mutation runScheduleProject($input: RunScheduleProjectInput!) {
|
|
319
|
+
runScheduleProject(input: $input) {
|
|
320
|
+
...scheduleProjectRunFragment
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
${scheduleProjectRunFragment}
|
|
324
|
+
`;
|
|
325
|
+
|
|
326
|
+
export const cancelScheduleProjectRunMtn = gql`
|
|
327
|
+
mutation cancelScheduleProjectRun($input: CancelScheduleProjectRunInput!) {
|
|
328
|
+
cancelScheduleProjectRun(input: $input) {
|
|
329
|
+
...scheduleProjectRunFragment
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
${scheduleProjectRunFragment}
|
|
333
|
+
`;
|
|
334
|
+
|
|
335
|
+
export const createScheduleBaselineMtn = gql`
|
|
336
|
+
mutation createScheduleBaseline($input: CreateScheduleBaselineInput!) {
|
|
337
|
+
createScheduleBaseline(input: $input) {
|
|
338
|
+
...scheduleBaselineFragment
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
${scheduleBaselineFragment}
|
|
342
|
+
`;
|
|
343
|
+
|
|
344
|
+
export const setScheduleCurrentBaselineMtn = gql`
|
|
345
|
+
mutation setScheduleCurrentBaseline($input: SetScheduleCurrentBaselineInput!) {
|
|
346
|
+
setScheduleCurrentBaseline(input: $input) {
|
|
347
|
+
...scheduleProjectFragment
|
|
348
|
+
activityCount
|
|
349
|
+
unreviewedCount
|
|
350
|
+
viewerPermission
|
|
351
|
+
viewerCanEdit
|
|
352
|
+
viewerCanEditAccess
|
|
353
|
+
viewerIsManager
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
${scheduleProjectFragment}
|
|
357
|
+
${scheduleProjectRunFragment}
|
|
358
|
+
`;
|
|
359
|
+
|
|
360
|
+
export const deleteScheduleBaselineMtn = gql`
|
|
361
|
+
mutation deleteScheduleBaseline($input: DeleteScheduleBaselineInput!) {
|
|
362
|
+
deleteScheduleBaseline(input: $input)
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
`;
|
|
366
|
+
|
|
367
|
+
export const importScheduleProjectPlanMtn = gql`
|
|
368
|
+
mutation importScheduleProjectPlan($input: ScheduleImportPlanInput!) {
|
|
369
|
+
importScheduleProjectPlan(input: $input) {
|
|
370
|
+
applied
|
|
371
|
+
dryRun
|
|
372
|
+
wbsCreated
|
|
373
|
+
wbsUpdated
|
|
374
|
+
activitiesCreated
|
|
375
|
+
activitiesUpdated
|
|
376
|
+
activitiesSkipped
|
|
377
|
+
activitiesDeleted
|
|
378
|
+
relationshipsCreated
|
|
379
|
+
assignmentsWritten
|
|
380
|
+
errors {
|
|
381
|
+
code
|
|
382
|
+
section
|
|
383
|
+
index
|
|
384
|
+
rowCode
|
|
385
|
+
message
|
|
386
|
+
}
|
|
387
|
+
cycleCodes
|
|
388
|
+
dataDateAt
|
|
389
|
+
run {
|
|
390
|
+
...scheduleProjectRunFragment
|
|
391
|
+
}
|
|
392
|
+
}
|
|
422
393
|
}
|
|
394
|
+
${scheduleProjectRunFragment}
|
|
423
395
|
`;
|