Skip to content

Commit

Permalink
Mc 1404 create prospecting source for publisher air table suggestions (
Browse files Browse the repository at this point in the history
…#1215)

* Prep for new External Editorial prospecting feed

* removed old syndication type

* lint fix

* Changed name
  • Loading branch information
rolf-moz authored Sep 4, 2024
1 parent 4f8d38d commit 437c01f
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 2 deletions.
34 changes: 34 additions & 0 deletions src/api/generatedTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -626,6 +626,17 @@ export type CreateRejectedCorpusItemInput = {
url: Scalars['Url'];
};

/**
* Input data for marking the given scheduled surface as reviewed
* by human curators for a given date.
*/
export type CreateScheduleReviewInput = {
/** The date of the schedule that was reviewed, in YYYY-MM-DD format. */
scheduledDate: Scalars['Date'];
/** The GUID of the scheduledSurface that was reviewed. */
scheduledSurfaceGuid: Scalars['ID'];
};

/** Input data for creating a scheduled entry for an Approved Item on a Scheduled Surface. */
export type CreateScheduledCorpusItemInput = {
/**
Expand Down Expand Up @@ -1155,6 +1166,8 @@ export type Mutation = {
createLabel: Label;
/** Creates a Rejected Item. */
createRejectedCorpusItem: RejectedCorpusItem;
/** Marks the given scheduled surface as reviewed by human curators for a given date. */
createScheduleReview: ScheduleReview;
/** Creates a Scheduled Surface Scheduled Item. */
createScheduledCorpusItem: ScheduledCorpusItem;
/** Deletes a CollectionPartnerAssociation. */
Expand Down Expand Up @@ -1282,6 +1295,10 @@ export type MutationCreateRejectedCorpusItemArgs = {
data: CreateRejectedCorpusItemInput;
};

export type MutationCreateScheduleReviewArgs = {
data: CreateScheduleReviewInput;
};

export type MutationCreateScheduledCorpusItemArgs = {
data: CreateScheduledCorpusItemInput;
};
Expand Down Expand Up @@ -1545,6 +1562,7 @@ export enum ProspectType {
CountsModeled = 'COUNTS_MODELED',
Dismissed = 'DISMISSED',
DomainAllowlist = 'DOMAIN_ALLOWLIST',
PublisherSubmitted = 'PUBLISHER_SUBMITTED',
Recommended = 'RECOMMENDED',
RssLogistic = 'RSS_LOGISTIC',
RssLogisticRecent = 'RSS_LOGISTIC_RECENT',
Expand Down Expand Up @@ -1889,6 +1907,19 @@ export type RescheduleScheduledCorpusItemInput = {
source: ScheduledItemSource;
};

/** Contains information about the human curator who reviewed the schedule for a given date and scheduled surface. */
export type ScheduleReview = {
__typename?: 'ScheduleReview';
/** A Unix timestamp of when the scheduled was last reviewed. */
reviewedAt: Scalars['Date'];
/** A single sign-on user identifier of the user who reviewed the schedule. */
reviewedBy: Scalars['String'];
/** The date of the schedule that was reviewed, in YYYY-MM-DD format. */
scheduledDate: Scalars['Date'];
/** The GUID of the scheduledSurface that was reviewed. */
scheduledSurfaceGuid: Scalars['ID'];
};

/**
* A scheduled entry for an Approved Item to appear on a Scheduled Surface.
* For example, a story that is scheduled to appear on December 31st, 2021 on the New Tab in Firefox for the US audience.
Expand Down Expand Up @@ -1935,6 +1966,8 @@ export type ScheduledCorpusItemsResult = {
collectionCount: Scalars['Int'];
/** An array of items for a given Scheduled Surface */
items: Array<ScheduledCorpusItem>;
/** The human review status of the schedule for the given scheduledSurfaceGuid & scheduledDate. */
scheduleReview?: Maybe<ScheduleReview>;
/** The date items are scheduled for, in YYYY-MM-DD format. */
scheduledDate: Scalars['Date'];
/** The number of syndicated articles for the scheduled date. */
Expand Down Expand Up @@ -2104,6 +2137,7 @@ export enum Topics {
Food = 'FOOD',
Gaming = 'GAMING',
HealthFitness = 'HEALTH_FITNESS',
Home = 'HOME',
Parenting = 'PARENTING',
PersonalFinance = 'PERSONAL_FINANCE',
Politics = 'POLITICS',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,13 @@ const allScheduledSurfaces: ScheduledSurface[] = [
ProspectType.TopSaved,
ProspectType.DomainAllowlist,
ProspectType.Dismissed,
ProspectType.SyndicatedRerun,
ProspectType.SyndicatedNew,
ProspectType.CountsModeled,
ProspectType.TimespentModeled,
ProspectType.TitleUrlModeled,
ProspectType.RssLogistic,
ProspectType.RssLogisticRecent,
ProspectType.SlateSchedulerV2,
ProspectType.PublisherSubmitted,
],
},
{
Expand All @@ -37,6 +36,7 @@ const allScheduledSurfaces: ScheduledSurface[] = [
ProspectType.DomainAllowlist,
ProspectType.Dismissed,
ProspectType.TitleUrlModeled,
ProspectType.PublisherSubmitted,
],
},
{
Expand Down

0 comments on commit 437c01f

Please sign in to comment.