{"version":3,"file":"emission-ByePXT9Y.mjs","names":[],"sources":["../src/stores/class/general/emission.ts"],"sourcesContent":["import { AdserverConfig } from \"../adserver/adserverConfig\";\nimport { emptyOrganisationData, Organisation } from \"./organisation\";\nimport { Person } from \"../user/person\";\nimport { ItuneCategory } from \"./ituneCategory\";\nimport { Annotations } from \".\";\n\n/**\n * Season settings for emissions\n */\nexport enum SeasonMode {\n  /** This emission doesn't have seasons */\n  NO_SEASON = 'NO_SEASON',\n  /** This emission has seasons and episodes are ordered by date */\n  SEASON_WITHOUT_PODCAST_NUMBERING = 'SEASON_WITHOUT_PODCAST_NUMBERING',\n  /** This emission has seasons and episodes are ordered manually */\n  SEASON_WITH_PODCAST_NUMBERING = 'SEASON_WITH_PODCAST_NUMBERING'\n}\n\n/**\n * An emission\n */\nexport interface Emission {\n  imageUrl?: string;\n  annotations?: Annotations & {\n    /** Subtitle of the emission */\n    subtitle?: string;\n    /** Default animators (ids separated by commas) for newly created podcasts */\n    podcastDefaultAnimators?: string;\n    /** Default description for newly created podcasts */\n    podcastDefaultDescription?: string;\n  };\n  beneficiaries: string[];\n  description: string;\n  emissionId: number;\n  iabIds?: Array<number>;\n  lastPodcastDate?: string;\n  monetisable: string;\n  name: string;\n  orga: Organisation;\n  rubriqueIds: Array<number>;\n  score?: number;\n  publisher?: Person;\n  copyright?: string;\n  optItunesCategories?: Array<ItuneCategory>;\n  adConfigs?: { [key: string]: AdserverConfig };\n  urlFeed?: string;\n  limits?: {\n    podcastMaxAge?: number;\n    podcastMaxCount?: number;\n  };\n  createdByUserId?: string;\n  privateRssType?:string;\n  /**\n   * Indicates that this emission and its episode are visible.\n   * *Default: true*\n   */\n  visible?: boolean;\n  /** An optional list of tags */\n  tags?: string[];\n  /** The ids of groups this emission belongs to */\n  groupIds?: Array<number>\n  /** Seasons configuration */\n  seasonMode: SeasonMode;\n  /** Seasons defined on emission */\n  seasons?: Array<number>;\n  /** Indicates that the emission has explicit content */\n  explicit?: boolean;\n}\n\nexport function emptyEmissionData(orga?: Organisation): Emission {\n  return {\n    emissionId: 0,\n    name: \"\",\n    description: \"\",\n    imageUrl: \"\",\n    iabIds: undefined,\n    orga: orga ?? emptyOrganisationData(),\n    beneficiaries: [],\n    rubriqueIds: [],\n    monetisable: \"UNDEFINED\",\n    limits: {},\n    seasonMode: SeasonMode.NO_SEASON\n  };\n}\n"],"mappings":";;;;;AASA,IAAY,aAAL,yBAAA,YAAA;;CAEL,WAAA,eAAA;;CAEA,WAAA,sCAAA;;CAEA,WAAA,mCAAA;;AACF,EAAA,CAAA,CAAA;AAqDA,SAAgB,kBAAkB,MAA+B;CAC/D,OAAO;EACL,YAAY;EACZ,MAAM;EACN,aAAa;EACb,UAAU;EACV,QAAQ,KAAA;EACR,MAAM,QAAQ,sBAAsB;EACpC,eAAe,CAAC;EAChB,aAAa,CAAC;EACd,aAAa;EACb,QAAQ,CAAC;EACT,YAAA;CACF;AACF"}