Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

35 lines
706B

  1. import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose';
  2. import Podcast from 'podcast';
  3. import { Document } from 'mongoose';
  4. import { Field, ID, InputType, ObjectType } from '@nestjs/graphql';
  5. export type EpisodeEnclosureDocument = EpisodeEnclosure & Document;
  6. @Schema()
  7. @ObjectType()
  8. export class EpisodeEnclosure implements Podcast.ItemEnclosure {
  9. @Prop()
  10. @Field(type => ID)
  11. id: string;
  12. @Prop()
  13. @Field()
  14. url: string;
  15. @Prop()
  16. @Field({ nullable: true })
  17. file?: string;
  18. @Prop()
  19. @Field({ nullable: true })
  20. size?: number;
  21. @Prop()
  22. @Field({ nullable: true })
  23. type?: string;
  24. }
  25. export const EpisodeEnclosureSchema = SchemaFactory.createForClass(
  26. EpisodeEnclosure,
  27. );