Skip to content

Commit

Permalink
chore: update generated types to remove syndicated prospect sources (#…
Browse files Browse the repository at this point in the history
…1211)

- syndicated prospect sources have been deprecated by ML
  • Loading branch information
jpetto authored Jul 23, 2024
1 parent 091cbb6 commit 6a07cf9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions src/api/generatedTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1549,8 +1549,6 @@ export enum ProspectType {
RssLogistic = 'RSS_LOGISTIC',
RssLogisticRecent = 'RSS_LOGISTIC_RECENT',
SlateSchedulerV2 = 'SLATE_SCHEDULER_V2',
SyndicatedNew = 'SYNDICATED_NEW',
SyndicatedRerun = 'SYNDICATED_RERUN',
Timespent = 'TIMESPENT',
TimespentModeled = 'TIMESPENT_MODELED',
TitleUrlModeled = 'TITLE_URL_MODELED',
Expand Down
6 changes: 3 additions & 3 deletions src/curated-corpus/helpers/prospects.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ describe('helper functions related to prospects', () => {
});

it('returns a cut-down list of prospect types if only some are available for given Scheduled Surface', () => {
const types: ProspectType[] = [ProspectType.SyndicatedNew];
const types: ProspectType[] = [ProspectType.Recommended];

const options = getProspectFilterOptions(types);

Expand All @@ -50,8 +50,8 @@ describe('helper functions related to prospects', () => {
expect(options[0].code).to.be.an.empty.string;
expect(options[0].name).to.equal('All Sources');

expect(options[1].code).to.equal(ProspectType.SyndicatedNew);
expect(options[1].name).to.equal('SyndicatedNew');
expect(options[1].code).to.equal(ProspectType.Recommended);
expect(options[1].name).to.equal('Recommended');
});
});

Expand Down

0 comments on commit 6a07cf9

Please sign in to comment.