@@ -53,6 +53,8 @@ export enum ActionScreen {
53
53
Prospecting = 'PROSPECTING' ,
54
54
/** This action took place from the schedule screen in the admin tool */
55
55
Schedule = 'SCHEDULE' ,
56
+ /** This action took place from the sections screen in the admin tool */
57
+ Sections = 'SECTIONS' ,
56
58
}
57
59
58
60
/** The source of en entity */
@@ -1234,7 +1236,10 @@ export type Mutation = {
1234
1236
moderateShareableList ?: Maybe < ShareableListComplete > ;
1235
1237
/** Refresh an Item's article content. */
1236
1238
refreshItemArticle : Item ;
1237
- /** Rejects an Approved Item: deletes it from the corpus and creates a Rejected Item instead. */
1239
+ /**
1240
+ * Rejects an Approved Item: deletes it from the corpus and creates a Rejected Item instead.
1241
+ * Also deletes all associated SectionItems.
1242
+ */
1238
1243
rejectApprovedCorpusItem : ApprovedCorpusItem ;
1239
1244
/**
1240
1245
* Marks a prospect as 'curated' in the database, preventing it from being displayed for prospecting.
@@ -3512,6 +3517,56 @@ export type RemoveProspectMutation = {
3512
3517
} | null ;
3513
3518
} ;
3514
3519
3520
+ export type RemoveSectionItemMutationVariables = Exact < {
3521
+ externalId : Scalars [ 'String' ] ;
3522
+ } > ;
3523
+
3524
+ export type RemoveSectionItemMutation = {
3525
+ __typename ?: 'Mutation' ;
3526
+ removeSectionItem : {
3527
+ __typename ?: 'SectionItem' ;
3528
+ createdAt : number ;
3529
+ updatedAt : number ;
3530
+ externalId : string ;
3531
+ rank ?: number | null ;
3532
+ approvedItem : {
3533
+ __typename ?: 'ApprovedCorpusItem' ;
3534
+ externalId : string ;
3535
+ prospectId ?: string | null ;
3536
+ title : string ;
3537
+ language : CorpusLanguage ;
3538
+ publisher : string ;
3539
+ datePublished ?: any | null ;
3540
+ url : any ;
3541
+ hasTrustedDomain : boolean ;
3542
+ imageUrl : any ;
3543
+ excerpt : string ;
3544
+ status : CuratedStatus ;
3545
+ source : CorpusItemSource ;
3546
+ topic : string ;
3547
+ isCollection : boolean ;
3548
+ isTimeSensitive : boolean ;
3549
+ isSyndicated : boolean ;
3550
+ createdBy : string ;
3551
+ createdAt : number ;
3552
+ updatedBy ?: string | null ;
3553
+ updatedAt : number ;
3554
+ authors : Array < {
3555
+ __typename ?: 'CorpusItemAuthor' ;
3556
+ name : string ;
3557
+ sortOrder : number ;
3558
+ } > ;
3559
+ scheduledSurfaceHistory : Array < {
3560
+ __typename ?: 'ApprovedCorpusItemScheduledSurfaceHistory' ;
3561
+ externalId : string ;
3562
+ createdBy : string ;
3563
+ scheduledDate : any ;
3564
+ scheduledSurfaceGuid : string ;
3565
+ } > ;
3566
+ } ;
3567
+ } ;
3568
+ } ;
3569
+
3515
3570
export type RescheduleScheduledCorpusItemMutationVariables = Exact < {
3516
3571
externalId : Scalars [ 'ID' ] ;
3517
3572
scheduledDate : Scalars [ 'Date' ] ;
@@ -6267,6 +6322,57 @@ export type RemoveProspectMutationOptions = Apollo.BaseMutationOptions<
6267
6322
RemoveProspectMutation ,
6268
6323
RemoveProspectMutationVariables
6269
6324
> ;
6325
+ export const RemoveSectionItemDocument = gql `
6326
+ mutation RemoveSectionItem($externalId: String!) {
6327
+ removeSectionItem(externalId: $externalId) {
6328
+ ...SectionItemData
6329
+ }
6330
+ }
6331
+ ${ SectionItemDataFragmentDoc }
6332
+ ` ;
6333
+ export type RemoveSectionItemMutationFn = Apollo . MutationFunction <
6334
+ RemoveSectionItemMutation ,
6335
+ RemoveSectionItemMutationVariables
6336
+ > ;
6337
+
6338
+ /**
6339
+ * __useRemoveSectionItemMutation__
6340
+ *
6341
+ * To run a mutation, you first call `useRemoveSectionItemMutation` within a React component and pass it any options that fit your needs.
6342
+ * When your component renders, `useRemoveSectionItemMutation` returns a tuple that includes:
6343
+ * - A mutate function that you can call at any time to execute the mutation
6344
+ * - An object with fields that represent the current status of the mutation's execution
6345
+ *
6346
+ * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
6347
+ *
6348
+ * @example
6349
+ * const [removeSectionItemMutation, { data, loading, error }] = useRemoveSectionItemMutation({
6350
+ * variables: {
6351
+ * externalId: // value for 'externalId'
6352
+ * },
6353
+ * });
6354
+ */
6355
+ export function useRemoveSectionItemMutation (
6356
+ baseOptions ?: Apollo . MutationHookOptions <
6357
+ RemoveSectionItemMutation ,
6358
+ RemoveSectionItemMutationVariables
6359
+ > ,
6360
+ ) {
6361
+ const options = { ...defaultOptions , ...baseOptions } ;
6362
+ return Apollo . useMutation <
6363
+ RemoveSectionItemMutation ,
6364
+ RemoveSectionItemMutationVariables
6365
+ > ( RemoveSectionItemDocument , options ) ;
6366
+ }
6367
+ export type RemoveSectionItemMutationHookResult = ReturnType <
6368
+ typeof useRemoveSectionItemMutation
6369
+ > ;
6370
+ export type RemoveSectionItemMutationResult =
6371
+ Apollo . MutationResult < RemoveSectionItemMutation > ;
6372
+ export type RemoveSectionItemMutationOptions = Apollo . BaseMutationOptions <
6373
+ RemoveSectionItemMutation ,
6374
+ RemoveSectionItemMutationVariables
6375
+ > ;
6270
6376
export const RescheduleScheduledCorpusItemDocument = gql `
6271
6377
mutation rescheduleScheduledCorpusItem(
6272
6378
$externalId: ID!
0 commit comments