@anthusai/papyrus 2.0.0-next.76 → 2.0.0-next.77
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/amplify/data/function-handler.js +20 -0
- package/amplify/data/function-handler.ts +40 -0
- package/amplify/data/resource.js +62 -60
- package/amplify/data/resource.ts +62 -60
- package/amplify/data/schema.js +57 -56
- package/amplify/data/schema.ts +57 -56
- package/amplify/functions/automation-view/schema.js +3 -2
- package/amplify/functions/automation-view/schema.ts +3 -2
- package/amplify/functions/editorial-checks/schema.js +9 -8
- package/amplify/functions/editorial-checks/schema.ts +9 -8
- package/amplify/functions/monitoring-view/schema.js +2 -1
- package/amplify/functions/monitoring-view/schema.ts +2 -1
- package/amplify/plugins/newsletter/schema.js +2 -1
- package/amplify/plugins/newsletter/schema.ts +2 -1
- package/amplify/plugins/reader-steering/schema.js +4 -3
- package/amplify/plugins/reader-steering/schema.ts +4 -3
- package/amplify/plugins/signup/schema.js +2 -1
- package/amplify/plugins/signup/schema.ts +2 -1
- package/package.json +1 -1
- package/routes.manifest.json +1 -1
package/amplify/data/schema.js
CHANGED
|
@@ -12,6 +12,7 @@ import { newsroomSummary } from "../functions/newsroom-summary/resource.js";
|
|
|
12
12
|
import { publicForms } from "../functions/public-forms/resource.js";
|
|
13
13
|
import { procedureAction } from "../functions/procedure-action/resource.js";
|
|
14
14
|
import { readerSettings } from "../functions/reader-settings/resource.js";
|
|
15
|
+
import { functionHandler } from "./function-handler.js";
|
|
15
16
|
const authoringOperations = [
|
|
16
17
|
"read",
|
|
17
18
|
"create",
|
|
@@ -147,7 +148,7 @@ function buildBaseDefinitions(includeEditions) {
|
|
|
147
148
|
.query()
|
|
148
149
|
.returns(a.ref("UserDirectoryResult"))
|
|
149
150
|
.authorization((allow) => [allow.group(adminGroup)])
|
|
150
|
-
.handler(
|
|
151
|
+
.handler(functionHandler("manageUserRole", manageUserRole)),
|
|
151
152
|
grantUserRole: a
|
|
152
153
|
.mutation()
|
|
153
154
|
.arguments({
|
|
@@ -158,7 +159,7 @@ function buildBaseDefinitions(includeEditions) {
|
|
|
158
159
|
})
|
|
159
160
|
.returns(a.ref("UserRoleMutationResult"))
|
|
160
161
|
.authorization((allow) => [allow.group(adminGroup)])
|
|
161
|
-
.handler(
|
|
162
|
+
.handler(functionHandler("manageUserRole", manageUserRole)),
|
|
162
163
|
revokeUserRole: a
|
|
163
164
|
.mutation()
|
|
164
165
|
.arguments({
|
|
@@ -169,7 +170,7 @@ function buildBaseDefinitions(includeEditions) {
|
|
|
169
170
|
})
|
|
170
171
|
.returns(a.ref("UserRoleMutationResult"))
|
|
171
172
|
.authorization((allow) => [allow.group(adminGroup)])
|
|
172
|
-
.handler(
|
|
173
|
+
.handler(functionHandler("manageUserRole", manageUserRole)),
|
|
173
174
|
mergeUserProfiles: a
|
|
174
175
|
.mutation()
|
|
175
176
|
.arguments({
|
|
@@ -181,12 +182,12 @@ function buildBaseDefinitions(includeEditions) {
|
|
|
181
182
|
})
|
|
182
183
|
.returns(a.ref("UserDirectoryEntry"))
|
|
183
184
|
.authorization((allow) => [allow.group(adminGroup)])
|
|
184
|
-
.handler(
|
|
185
|
+
.handler(functionHandler("manageUserRole", manageUserRole)),
|
|
185
186
|
getReaderSettings: a
|
|
186
187
|
.query()
|
|
187
188
|
.returns(a.ref("ReaderSettingsResult"))
|
|
188
189
|
.authorization((allow) => [allow.authenticated()])
|
|
189
|
-
.handler(
|
|
190
|
+
.handler(functionHandler("readerSettings", readerSettings)),
|
|
190
191
|
updateReaderSettings: a
|
|
191
192
|
.mutation()
|
|
192
193
|
.arguments({
|
|
@@ -194,7 +195,7 @@ function buildBaseDefinitions(includeEditions) {
|
|
|
194
195
|
})
|
|
195
196
|
.returns(a.ref("ReaderSettingsResult"))
|
|
196
197
|
.authorization((allow) => [allow.authenticated()])
|
|
197
|
-
.handler(
|
|
198
|
+
.handler(functionHandler("readerSettings", readerSettings)),
|
|
198
199
|
SteeringActionResult: a.customType({
|
|
199
200
|
ok: a.boolean().required(),
|
|
200
201
|
action: a.string().required(),
|
|
@@ -222,7 +223,7 @@ function buildBaseDefinitions(includeEditions) {
|
|
|
222
223
|
})
|
|
223
224
|
.returns(a.ref("SteeringActionResult"))
|
|
224
225
|
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
225
|
-
.handler(
|
|
226
|
+
.handler(functionHandler("categoryAction", categoryAction)),
|
|
226
227
|
CurationDelegationResult: a.customType({
|
|
227
228
|
ok: a.boolean().required(),
|
|
228
229
|
delegationId: a.id().required(),
|
|
@@ -301,7 +302,7 @@ function buildBaseDefinitions(includeEditions) {
|
|
|
301
302
|
.authorization((allow) => [
|
|
302
303
|
allow.groups(categoryWriteGroups),
|
|
303
304
|
])
|
|
304
|
-
.handler(
|
|
305
|
+
.handler(functionHandler("categoryAction", categoryAction)),
|
|
305
306
|
createCurationDelegation: a
|
|
306
307
|
.mutation()
|
|
307
308
|
.arguments({
|
|
@@ -312,7 +313,7 @@ function buildBaseDefinitions(includeEditions) {
|
|
|
312
313
|
.authorization((allow) => [
|
|
313
314
|
allow.groups(categoryWriteGroups),
|
|
314
315
|
])
|
|
315
|
-
.handler(
|
|
316
|
+
.handler(functionHandler("categoryAction", categoryAction)),
|
|
316
317
|
revokeCurationDelegation: a
|
|
317
318
|
.mutation()
|
|
318
319
|
.arguments({
|
|
@@ -322,14 +323,14 @@ function buildBaseDefinitions(includeEditions) {
|
|
|
322
323
|
.authorization((allow) => [
|
|
323
324
|
allow.groups(categoryWriteGroups),
|
|
324
325
|
])
|
|
325
|
-
.handler(
|
|
326
|
+
.handler(functionHandler("categoryAction", categoryAction)),
|
|
326
327
|
listCurationDelegations: a
|
|
327
328
|
.query()
|
|
328
329
|
.returns(a.ref("CurationDelegationResult").array())
|
|
329
330
|
.authorization((allow) => [
|
|
330
331
|
allow.groups(categoryWriteGroups),
|
|
331
332
|
])
|
|
332
|
-
.handler(
|
|
333
|
+
.handler(functionHandler("categoryAction", categoryAction)),
|
|
333
334
|
requestCurationDelegation: a
|
|
334
335
|
.mutation()
|
|
335
336
|
.arguments({
|
|
@@ -342,7 +343,7 @@ function buildBaseDefinitions(includeEditions) {
|
|
|
342
343
|
.authorization((allow) => [
|
|
343
344
|
allow.authenticated("identityPool"),
|
|
344
345
|
])
|
|
345
|
-
.handler(
|
|
346
|
+
.handler(functionHandler("categoryAction", categoryAction)),
|
|
346
347
|
approveCurationDelegation: a
|
|
347
348
|
.mutation()
|
|
348
349
|
.arguments({
|
|
@@ -352,7 +353,7 @@ function buildBaseDefinitions(includeEditions) {
|
|
|
352
353
|
.authorization((allow) => [
|
|
353
354
|
allow.groups(categoryWriteGroups),
|
|
354
355
|
])
|
|
355
|
-
.handler(
|
|
356
|
+
.handler(functionHandler("categoryAction", categoryAction)),
|
|
356
357
|
denyCurationDelegation: a
|
|
357
358
|
.mutation()
|
|
358
359
|
.arguments({
|
|
@@ -362,7 +363,7 @@ function buildBaseDefinitions(includeEditions) {
|
|
|
362
363
|
.authorization((allow) => [
|
|
363
364
|
allow.groups(categoryWriteGroups),
|
|
364
365
|
])
|
|
365
|
-
.handler(
|
|
366
|
+
.handler(functionHandler("categoryAction", categoryAction)),
|
|
366
367
|
getCurationDelegationStatus: a
|
|
367
368
|
.query()
|
|
368
369
|
.arguments({
|
|
@@ -372,7 +373,7 @@ function buildBaseDefinitions(includeEditions) {
|
|
|
372
373
|
.authorization((allow) => [
|
|
373
374
|
allow.authenticated("identityPool"),
|
|
374
375
|
])
|
|
375
|
-
.handler(
|
|
376
|
+
.handler(functionHandler("categoryAction", categoryAction)),
|
|
376
377
|
recordDelegatedCuration: a
|
|
377
378
|
.mutation()
|
|
378
379
|
.arguments({
|
|
@@ -393,7 +394,7 @@ function buildBaseDefinitions(includeEditions) {
|
|
|
393
394
|
.authorization((allow) => [
|
|
394
395
|
allow.authenticated("identityPool"),
|
|
395
396
|
])
|
|
396
|
-
.handler(
|
|
397
|
+
.handler(functionHandler("categoryAction", categoryAction)),
|
|
397
398
|
setReferenceQualityRating: a
|
|
398
399
|
.mutation()
|
|
399
400
|
.arguments({
|
|
@@ -407,7 +408,7 @@ function buildBaseDefinitions(includeEditions) {
|
|
|
407
408
|
.authorization((allow) => [
|
|
408
409
|
allow.groups(categoryWriteGroups),
|
|
409
410
|
])
|
|
410
|
-
.handler(
|
|
411
|
+
.handler(functionHandler("categoryAction", categoryAction)),
|
|
411
412
|
createCategorySetDraft: a
|
|
412
413
|
.mutation()
|
|
413
414
|
.arguments({
|
|
@@ -418,7 +419,7 @@ function buildBaseDefinitions(includeEditions) {
|
|
|
418
419
|
})
|
|
419
420
|
.returns(a.ref("CategorySetDraftActionResult"))
|
|
420
421
|
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
421
|
-
.handler(
|
|
422
|
+
.handler(functionHandler("categoryAction", categoryAction)),
|
|
422
423
|
promoteCategorySetDraft: a
|
|
423
424
|
.mutation()
|
|
424
425
|
.arguments({
|
|
@@ -428,7 +429,7 @@ function buildBaseDefinitions(includeEditions) {
|
|
|
428
429
|
})
|
|
429
430
|
.returns(a.ref("CategorySetDraftActionResult"))
|
|
430
431
|
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
431
|
-
.handler(
|
|
432
|
+
.handler(functionHandler("categoryAction", categoryAction)),
|
|
432
433
|
discardCategorySetDraft: a
|
|
433
434
|
.mutation()
|
|
434
435
|
.arguments({
|
|
@@ -438,7 +439,7 @@ function buildBaseDefinitions(includeEditions) {
|
|
|
438
439
|
})
|
|
439
440
|
.returns(a.ref("CategorySetDraftActionResult"))
|
|
440
441
|
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
441
|
-
.handler(
|
|
442
|
+
.handler(functionHandler("categoryAction", categoryAction)),
|
|
442
443
|
createDraftCategory: a
|
|
443
444
|
.mutation()
|
|
444
445
|
.arguments({
|
|
@@ -453,7 +454,7 @@ function buildBaseDefinitions(includeEditions) {
|
|
|
453
454
|
})
|
|
454
455
|
.returns(a.ref("SteeringActionResult"))
|
|
455
456
|
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
456
|
-
.handler(
|
|
457
|
+
.handler(functionHandler("categoryAction", categoryAction)),
|
|
457
458
|
updateDraftCategory: a
|
|
458
459
|
.mutation()
|
|
459
460
|
.arguments({
|
|
@@ -468,7 +469,7 @@ function buildBaseDefinitions(includeEditions) {
|
|
|
468
469
|
})
|
|
469
470
|
.returns(a.ref("SteeringActionResult"))
|
|
470
471
|
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
471
|
-
.handler(
|
|
472
|
+
.handler(functionHandler("categoryAction", categoryAction)),
|
|
472
473
|
archiveDraftCategory: a
|
|
473
474
|
.mutation()
|
|
474
475
|
.arguments({
|
|
@@ -478,7 +479,7 @@ function buildBaseDefinitions(includeEditions) {
|
|
|
478
479
|
})
|
|
479
480
|
.returns(a.ref("SteeringActionResult"))
|
|
480
481
|
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
481
|
-
.handler(
|
|
482
|
+
.handler(functionHandler("categoryAction", categoryAction)),
|
|
482
483
|
reviewReferenceTopicLabel: a
|
|
483
484
|
.mutation()
|
|
484
485
|
.arguments({
|
|
@@ -491,7 +492,7 @@ function buildBaseDefinitions(includeEditions) {
|
|
|
491
492
|
})
|
|
492
493
|
.returns(a.ref("TopicLabelActionResult"))
|
|
493
494
|
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
494
|
-
.handler(
|
|
495
|
+
.handler(functionHandler("categoryAction", categoryAction)),
|
|
495
496
|
NewsroomSummary: a.customType({
|
|
496
497
|
generatedAt: a.datetime().required(),
|
|
497
498
|
staleAt: a.datetime(),
|
|
@@ -509,49 +510,49 @@ function buildBaseDefinitions(includeEditions) {
|
|
|
509
510
|
.query()
|
|
510
511
|
.returns(a.ref("NewsroomSummary"))
|
|
511
512
|
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
512
|
-
.handler(
|
|
513
|
+
.handler(functionHandler("newsroomSummary", newsroomSummary)),
|
|
513
514
|
deriveMarkus: a
|
|
514
515
|
.query()
|
|
515
516
|
.arguments({ input: a.json().required() })
|
|
516
517
|
.returns(a.json())
|
|
517
518
|
.authorization((allow) => [allow.groups(contentWriteGroups)])
|
|
518
|
-
.handler(
|
|
519
|
+
.handler(functionHandler("contentActions", contentActions)),
|
|
519
520
|
intakePendingReferences: a
|
|
520
521
|
.mutation()
|
|
521
522
|
.arguments({ input: a.json().required() })
|
|
522
523
|
.returns(a.json())
|
|
523
524
|
.authorization((allow) => [allow.groups(contentWriteGroups)])
|
|
524
|
-
.handler(
|
|
525
|
+
.handler(functionHandler("contentActions", contentActions)),
|
|
525
526
|
saveItemDraft: a
|
|
526
527
|
.mutation()
|
|
527
528
|
.arguments({ input: a.json().required() })
|
|
528
529
|
.returns(a.json())
|
|
529
530
|
.authorization((allow) => [allow.groups(contentWriteGroups)])
|
|
530
|
-
.handler(
|
|
531
|
+
.handler(functionHandler("contentActions", contentActions)),
|
|
531
532
|
publishItem: a
|
|
532
533
|
.mutation()
|
|
533
534
|
.arguments({ input: a.json().required() })
|
|
534
535
|
.returns(a.json())
|
|
535
536
|
.authorization((allow) => [allow.groups(contentWriteGroups)])
|
|
536
|
-
.handler(
|
|
537
|
+
.handler(functionHandler("contentActions", contentActions)),
|
|
537
538
|
moveStoryStage: a
|
|
538
539
|
.mutation()
|
|
539
540
|
.arguments({ input: a.json().required() })
|
|
540
541
|
.returns(a.json())
|
|
541
542
|
.authorization((allow) => [allow.groups(contentWriteGroups)])
|
|
542
|
-
.handler(
|
|
543
|
+
.handler(functionHandler("contentActions", contentActions)),
|
|
543
544
|
unpublishItem: a
|
|
544
545
|
.mutation()
|
|
545
546
|
.arguments({ input: a.json().required() })
|
|
546
547
|
.returns(a.json())
|
|
547
548
|
.authorization((allow) => [allow.groups(contentWriteGroups)])
|
|
548
|
-
.handler(
|
|
549
|
+
.handler(functionHandler("contentActions", contentActions)),
|
|
549
550
|
requestStagingBuild: a
|
|
550
551
|
.mutation()
|
|
551
552
|
.arguments({ input: a.json().required() })
|
|
552
553
|
.returns(a.json())
|
|
553
554
|
.authorization((allow) => [allow.groups(contentWriteGroups)])
|
|
554
|
-
.handler(
|
|
555
|
+
.handler(functionHandler("contentActions", contentActions)),
|
|
555
556
|
knowledgeQuery: a
|
|
556
557
|
.query()
|
|
557
558
|
.arguments({
|
|
@@ -559,7 +560,7 @@ function buildBaseDefinitions(includeEditions) {
|
|
|
559
560
|
})
|
|
560
561
|
.returns(a.json())
|
|
561
562
|
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
562
|
-
.handler(
|
|
563
|
+
.handler(functionHandler("knowledgeQuery", knowledgeQuery)),
|
|
563
564
|
updateNewsroomSummary: a
|
|
564
565
|
.mutation()
|
|
565
566
|
.arguments({
|
|
@@ -569,7 +570,7 @@ function buildBaseDefinitions(includeEditions) {
|
|
|
569
570
|
})
|
|
570
571
|
.returns(a.ref("NewsroomSummary"))
|
|
571
572
|
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
572
|
-
.handler(
|
|
573
|
+
.handler(functionHandler("newsroomSummary", newsroomSummary)),
|
|
573
574
|
ModelAttachmentUploadSlot: a.customType({
|
|
574
575
|
ok: a.boolean().required(),
|
|
575
576
|
uploadId: a.string().required(),
|
|
@@ -625,7 +626,7 @@ function buildBaseDefinitions(includeEditions) {
|
|
|
625
626
|
})
|
|
626
627
|
.returns(a.ref("ModelAttachmentUploadSlot"))
|
|
627
628
|
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
628
|
-
.handler(
|
|
629
|
+
.handler(functionHandler("modelAttachmentUpload", modelAttachmentUpload)),
|
|
629
630
|
completeModelAttachmentUpload: a
|
|
630
631
|
.mutation()
|
|
631
632
|
.arguments({
|
|
@@ -646,7 +647,7 @@ function buildBaseDefinitions(includeEditions) {
|
|
|
646
647
|
})
|
|
647
648
|
.returns(a.ref("ModelAttachment"))
|
|
648
649
|
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
649
|
-
.handler(
|
|
650
|
+
.handler(functionHandler("modelAttachmentUpload", modelAttachmentUpload)),
|
|
650
651
|
abortModelAttachmentUpload: a
|
|
651
652
|
.mutation()
|
|
652
653
|
.arguments({
|
|
@@ -667,7 +668,7 @@ function buildBaseDefinitions(includeEditions) {
|
|
|
667
668
|
})
|
|
668
669
|
.returns(a.ref("ModelAttachmentUploadAbortResult"))
|
|
669
670
|
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
670
|
-
.handler(
|
|
671
|
+
.handler(functionHandler("modelAttachmentUpload", modelAttachmentUpload)),
|
|
671
672
|
createModelAttachmentDownload: a
|
|
672
673
|
.mutation()
|
|
673
674
|
.arguments({
|
|
@@ -675,7 +676,7 @@ function buildBaseDefinitions(includeEditions) {
|
|
|
675
676
|
})
|
|
676
677
|
.returns(a.ref("ModelAttachmentDownloadSlot"))
|
|
677
678
|
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
678
|
-
.handler(
|
|
679
|
+
.handler(functionHandler("modelAttachmentUpload", modelAttachmentUpload)),
|
|
679
680
|
AssignmentActionResult: a.customType({
|
|
680
681
|
ok: a.boolean().required(),
|
|
681
682
|
assignmentId: a.id(),
|
|
@@ -763,7 +764,7 @@ function buildBaseDefinitions(includeEditions) {
|
|
|
763
764
|
})
|
|
764
765
|
.returns(a.ref("AssignmentContext").array().required())
|
|
765
766
|
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
766
|
-
.handler(
|
|
767
|
+
.handler(functionHandler("assignmentAction", assignmentAction)),
|
|
767
768
|
listAssignmentQueue: a
|
|
768
769
|
.query()
|
|
769
770
|
.arguments({
|
|
@@ -773,7 +774,7 @@ function buildBaseDefinitions(includeEditions) {
|
|
|
773
774
|
})
|
|
774
775
|
.returns(a.ref("AssignmentContext").array().required())
|
|
775
776
|
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
776
|
-
.handler(
|
|
777
|
+
.handler(functionHandler("assignmentAction", assignmentAction)),
|
|
777
778
|
getEditorialContext: a
|
|
778
779
|
.query()
|
|
779
780
|
.arguments({
|
|
@@ -786,7 +787,7 @@ function buildBaseDefinitions(includeEditions) {
|
|
|
786
787
|
})
|
|
787
788
|
.returns(a.json().required())
|
|
788
789
|
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
789
|
-
.handler(
|
|
790
|
+
.handler(functionHandler("assignmentAction", assignmentAction)),
|
|
790
791
|
getAssignmentContext: a
|
|
791
792
|
.query()
|
|
792
793
|
.arguments({
|
|
@@ -794,7 +795,7 @@ function buildBaseDefinitions(includeEditions) {
|
|
|
794
795
|
})
|
|
795
796
|
.returns(a.ref("AssignmentContext"))
|
|
796
797
|
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
797
|
-
.handler(
|
|
798
|
+
.handler(functionHandler("assignmentAction", assignmentAction)),
|
|
798
799
|
claimAssignment: a
|
|
799
800
|
.mutation()
|
|
800
801
|
.arguments({
|
|
@@ -810,7 +811,7 @@ function buildBaseDefinitions(includeEditions) {
|
|
|
810
811
|
})
|
|
811
812
|
.returns(a.ref("AssignmentActionResult"))
|
|
812
813
|
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
813
|
-
.handler(
|
|
814
|
+
.handler(functionHandler("assignmentAction", assignmentAction)),
|
|
814
815
|
releaseAssignment: a
|
|
815
816
|
.mutation()
|
|
816
817
|
.arguments({
|
|
@@ -821,7 +822,7 @@ function buildBaseDefinitions(includeEditions) {
|
|
|
821
822
|
})
|
|
822
823
|
.returns(a.ref("AssignmentActionResult"))
|
|
823
824
|
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
824
|
-
.handler(
|
|
825
|
+
.handler(functionHandler("assignmentAction", assignmentAction)),
|
|
825
826
|
completeAssignment: a
|
|
826
827
|
.mutation()
|
|
827
828
|
.arguments({
|
|
@@ -832,7 +833,7 @@ function buildBaseDefinitions(includeEditions) {
|
|
|
832
833
|
})
|
|
833
834
|
.returns(a.ref("AssignmentActionResult"))
|
|
834
835
|
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
835
|
-
.handler(
|
|
836
|
+
.handler(functionHandler("assignmentAction", assignmentAction)),
|
|
836
837
|
cancelAssignment: a
|
|
837
838
|
.mutation()
|
|
838
839
|
.arguments({
|
|
@@ -843,7 +844,7 @@ function buildBaseDefinitions(includeEditions) {
|
|
|
843
844
|
})
|
|
844
845
|
.returns(a.ref("AssignmentActionResult"))
|
|
845
846
|
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
846
|
-
.handler(
|
|
847
|
+
.handler(functionHandler("assignmentAction", assignmentAction)),
|
|
847
848
|
reopenAssignment: a
|
|
848
849
|
.mutation()
|
|
849
850
|
.arguments({
|
|
@@ -854,7 +855,7 @@ function buildBaseDefinitions(includeEditions) {
|
|
|
854
855
|
})
|
|
855
856
|
.returns(a.ref("AssignmentActionResult"))
|
|
856
857
|
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
857
|
-
.handler(
|
|
858
|
+
.handler(functionHandler("assignmentAction", assignmentAction)),
|
|
858
859
|
retryImmediateAssignment: a
|
|
859
860
|
.mutation()
|
|
860
861
|
.arguments({
|
|
@@ -865,12 +866,12 @@ function buildBaseDefinitions(includeEditions) {
|
|
|
865
866
|
})
|
|
866
867
|
.returns(a.ref("AssignmentActionResult"))
|
|
867
868
|
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
868
|
-
.handler(
|
|
869
|
+
.handler(functionHandler("assignmentAction", assignmentAction)),
|
|
869
870
|
listNewsroomProcedureDefinitions: a
|
|
870
871
|
.query()
|
|
871
872
|
.returns(a.json())
|
|
872
873
|
.authorization((allow) => [allow.group(adminGroup)])
|
|
873
|
-
.handler(
|
|
874
|
+
.handler(functionHandler("procedureAction", procedureAction)),
|
|
874
875
|
getNewsroomProcedureDefinition: a
|
|
875
876
|
.query()
|
|
876
877
|
.arguments({
|
|
@@ -879,7 +880,7 @@ function buildBaseDefinitions(includeEditions) {
|
|
|
879
880
|
})
|
|
880
881
|
.returns(a.json())
|
|
881
882
|
.authorization((allow) => [allow.group(adminGroup)])
|
|
882
|
-
.handler(
|
|
883
|
+
.handler(functionHandler("procedureAction", procedureAction)),
|
|
883
884
|
saveNewsroomProcedureDefinition: a
|
|
884
885
|
.mutation()
|
|
885
886
|
.arguments({
|
|
@@ -887,7 +888,7 @@ function buildBaseDefinitions(includeEditions) {
|
|
|
887
888
|
})
|
|
888
889
|
.returns(a.json())
|
|
889
890
|
.authorization((allow) => [allow.group(adminGroup)])
|
|
890
|
-
.handler(
|
|
891
|
+
.handler(functionHandler("procedureAction", procedureAction)),
|
|
891
892
|
saveNewsroomProcedureVersionDraft: a
|
|
892
893
|
.mutation()
|
|
893
894
|
.arguments({
|
|
@@ -895,7 +896,7 @@ function buildBaseDefinitions(includeEditions) {
|
|
|
895
896
|
})
|
|
896
897
|
.returns(a.json())
|
|
897
898
|
.authorization((allow) => [allow.group(adminGroup)])
|
|
898
|
-
.handler(
|
|
899
|
+
.handler(functionHandler("procedureAction", procedureAction)),
|
|
899
900
|
publishNewsroomProcedureVersion: a
|
|
900
901
|
.mutation()
|
|
901
902
|
.arguments({
|
|
@@ -903,7 +904,7 @@ function buildBaseDefinitions(includeEditions) {
|
|
|
903
904
|
})
|
|
904
905
|
.returns(a.json())
|
|
905
906
|
.authorization((allow) => [allow.group(adminGroup)])
|
|
906
|
-
.handler(
|
|
907
|
+
.handler(functionHandler("procedureAction", procedureAction)),
|
|
907
908
|
startNewsroomProcedureRun: a
|
|
908
909
|
.mutation()
|
|
909
910
|
.arguments({
|
|
@@ -917,7 +918,7 @@ function buildBaseDefinitions(includeEditions) {
|
|
|
917
918
|
})
|
|
918
919
|
.returns(a.json())
|
|
919
920
|
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
920
|
-
.handler(
|
|
921
|
+
.handler(functionHandler("procedureAction", procedureAction)),
|
|
921
922
|
getNewsroomProcedureRun: a
|
|
922
923
|
.query()
|
|
923
924
|
.arguments({
|
|
@@ -925,7 +926,7 @@ function buildBaseDefinitions(includeEditions) {
|
|
|
925
926
|
})
|
|
926
927
|
.returns(a.json())
|
|
927
928
|
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
928
|
-
.handler(
|
|
929
|
+
.handler(functionHandler("procedureAction", procedureAction)),
|
|
929
930
|
listNewsroomProcedureRunsByProcedure: a
|
|
930
931
|
.query()
|
|
931
932
|
.arguments({
|
|
@@ -933,7 +934,7 @@ function buildBaseDefinitions(includeEditions) {
|
|
|
933
934
|
})
|
|
934
935
|
.returns(a.json())
|
|
935
936
|
.authorization((allow) => [allow.groups(categoryWriteGroups)])
|
|
936
|
-
.handler(
|
|
937
|
+
.handler(functionHandler("procedureAction", procedureAction)),
|
|
937
938
|
Assignment: modelWithoutSubscriptions({
|
|
938
939
|
id: a.id().required(),
|
|
939
940
|
assignmentTypeKey: a.string().required(),
|