Skip to content
Snippets Groups Projects
Select Git revision
  • master
  • pi-v9
2 results

README.ipynb

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    payload-types.ts 9.21 KiB
    /* tslint:disable */
    /* eslint-disable */
    /**
     * This file was automatically generated by Payload.
     * DO NOT MODIFY IT BY HAND. Instead, modify your source Payload config,
     * and re-run `payload generate:types` to regenerate this file.
     */
    
    export interface Config {
      auth: {
        users: UserAuthOperations;
      };
      collections: {
        users: User;
        media: Media;
        images: Image;
        publications: Publication;
        newsArticle: NewsArticle;
        experiments: Experiment;
        'payload-locked-documents': PayloadLockedDocument;
        'payload-preferences': PayloadPreference;
        'payload-migrations': PayloadMigration;
      };
      collectionsJoins: {};
      collectionsSelect: {
        users: UsersSelect<false> | UsersSelect<true>;
        media: MediaSelect<false> | MediaSelect<true>;
        images: ImagesSelect<false> | ImagesSelect<true>;
        publications: PublicationsSelect<false> | PublicationsSelect<true>;
        newsArticle: NewsArticleSelect<false> | NewsArticleSelect<true>;
        experiments: ExperimentsSelect<false> | ExperimentsSelect<true>;
        'payload-locked-documents': PayloadLockedDocumentsSelect<false> | PayloadLockedDocumentsSelect<true>;
        'payload-preferences': PayloadPreferencesSelect<false> | PayloadPreferencesSelect<true>;
        'payload-migrations': PayloadMigrationsSelect<false> | PayloadMigrationsSelect<true>;
      };
      db: {
        defaultIDType: string;
      };
      globals: {};
      globalsSelect: {};
      locale: null;
      user: User & {
        collection: 'users';
      };
      jobs?: {
        tasks: unknown;
        workflows?: unknown;
      };
    }
    export interface UserAuthOperations {
      forgotPassword: {
        email: string;
        password: string;
      };
      login: {
        email: string;
        password: string;
      };
      registerFirstUser: {
        email: string;
        password: string;
      };
      unlock: {
        email: string;
        password: string;
      };
    }
    /**
     * This interface was referenced by `Config`'s JSON-Schema
     * via the `definition` "users".
     */
    export interface User {
      id: string;
      updatedAt: string;
      createdAt: string;
      email: string;
      resetPasswordToken?: string | null;
      resetPasswordExpiration?: string | null;
      salt?: string | null;
      hash?: string | null;
      loginAttempts?: number | null;
      lockUntil?: string | null;
      password?: string | null;
    }
    /**
     * This interface was referenced by `Config`'s JSON-Schema
     * via the `definition` "media".
     */
    export interface Media {
      id: string;
      alt: string;
      updatedAt: string;
      createdAt: string;
      url?: string | null;
      thumbnailURL?: string | null;
      filename?: string | null;
      mimeType?: string | null;
      filesize?: number | null;
      width?: number | null;
      height?: number | null;
      focalX?: number | null;
      focalY?: number | null;
    }
    /**
     * This interface was referenced by `Config`'s JSON-Schema
     * via the `definition` "images".
     */
    export interface Image {
      id: string;
      title?: string | null;
      description?: string | null;
      updatedAt: string;
      createdAt: string;
      url?: string | null;
      thumbnailURL?: string | null;
      filename?: string | null;
      mimeType?: string | null;
      filesize?: number | null;
      width?: number | null;
      height?: number | null;
      focalX?: number | null;
      focalY?: number | null;
    }
    /**
     * This interface was referenced by `Config`'s JSON-Schema
     * via the `definition` "publications".
     */
    export interface Publication {
      id: string;
      doi: string;
      title?: string | null;
      source?: string | null;
      authors?: string | null;
      journal?: string | null;
      volume?: string | null;
      published?: string | null;
      pages?: string | null;
      link?: string | null;
      updatedAt: string;
      createdAt: string;
    }
    /**
     * This interface was referenced by `Config`'s JSON-Schema
     * via the `definition` "newsArticle".
     */
    export interface NewsArticle {
      id: string;
      positionOnBoard: number;
      title: string;
      expireDate: string;
      infotext: string;
      'article-link': string;
      updatedAt: string;
      createdAt: string;
      url?: string | null;
      thumbnailURL?: string | null;
      filename?: string | null;
      mimeType?: string | null;
      filesize?: number | null;
      width?: number | null;
      height?: number | null;
      focalX?: number | null;
      focalY?: number | null;
    }
    /**
     * This interface was referenced by `Config`'s JSON-Schema
     * via the `definition` "experiments".
     */
    export interface Experiment {
      id: string;
      nummer: number;
      title?: string;
      year: number;
      speaker?:
        | {
            name: string;
            link: string;
            id?: string | null;
          }[]
        | null;
      teamleader: {
        name: string;
        email: string;
      };
      kleinerBeschreibungstext: string;
      updatedAt: string;
      createdAt: string;
    }
    /**
     * This interface was referenced by `Config`'s JSON-Schema
     * via the `definition` "payload-locked-documents".
     */
    export interface PayloadLockedDocument {
      id: string;
      document?:
        | ({
            relationTo: 'users';
            value: string | User;
          } | null)
        | ({
            relationTo: 'media';
            value: string | Media;
          } | null)
        | ({
            relationTo: 'images';
            value: string | Image;
          } | null)
        | ({
            relationTo: 'publications';
            value: string | Publication;
          } | null)
        | ({
            relationTo: 'newsArticle';
            value: string | NewsArticle;
          } | null)
        | ({
            relationTo: 'experiments';
            value: string | Experiment;
          } | null);
      globalSlug?: string | null;
      user: {
        relationTo: 'users';
        value: string | User;
      };
      updatedAt: string;
      createdAt: string;
    }
    /**
     * This interface was referenced by `Config`'s JSON-Schema
     * via the `definition` "payload-preferences".
     */
    export interface PayloadPreference {
      id: string;
      user: {
        relationTo: 'users';
        value: string | User;
      };
      key?: string | null;
      value?:
        | {
            [k: string]: unknown;
          }
        | unknown[]
        | string
        | number
        | boolean
        | null;
      updatedAt: string;
      createdAt: string;
    }
    /**
     * This interface was referenced by `Config`'s JSON-Schema
     * via the `definition` "payload-migrations".
     */
    export interface PayloadMigration {
      id: string;
      name?: string | null;
      batch?: number | null;
      updatedAt: string;
      createdAt: string;
    }
    /**
     * This interface was referenced by `Config`'s JSON-Schema
     * via the `definition` "users_select".
     */
    export interface UsersSelect<T extends boolean = true> {
      updatedAt?: T;
      createdAt?: T;
      email?: T;
      resetPasswordToken?: T;
      resetPasswordExpiration?: T;
      salt?: T;
      hash?: T;
      loginAttempts?: T;
      lockUntil?: T;
    }
    /**
     * This interface was referenced by `Config`'s JSON-Schema
     * via the `definition` "media_select".
     */
    export interface MediaSelect<T extends boolean = true> {
      alt?: T;
      updatedAt?: T;
      createdAt?: T;
      url?: T;
      thumbnailURL?: T;
      filename?: T;
      mimeType?: T;
      filesize?: T;
      width?: T;
      height?: T;
      focalX?: T;
      focalY?: T;
    }
    /**
     * This interface was referenced by `Config`'s JSON-Schema
     * via the `definition` "images_select".
     */
    export interface ImagesSelect<T extends boolean = true> {
      title?: T;
      description?: T;
      updatedAt?: T;
      createdAt?: T;
      url?: T;
      thumbnailURL?: T;
      filename?: T;
      mimeType?: T;
      filesize?: T;
      width?: T;
      height?: T;
      focalX?: T;
      focalY?: T;
    }
    /**
     * This interface was referenced by `Config`'s JSON-Schema
     * via the `definition` "publications_select".
     */
    export interface PublicationsSelect<T extends boolean = true> {
      doi?: T;
      title?: T;
      source?: T;
      authors?: T;
      journal?: T;
      volume?: T;
      published?: T;
      pages?: T;
      link?: T;
      updatedAt?: T;
      createdAt?: T;
    }
    /**
     * This interface was referenced by `Config`'s JSON-Schema
     * via the `definition` "newsArticle_select".
     */
    export interface NewsArticleSelect<T extends boolean = true> {
      positionOnBoard?: T;
      title?: T;
      expireDate?: T;
      infotext?: T;
      'article-link'?: T;
      updatedAt?: T;
      createdAt?: T;
      url?: T;
      thumbnailURL?: T;
      filename?: T;
      mimeType?: T;
      filesize?: T;
      width?: T;
      height?: T;
      focalX?: T;
      focalY?: T;
    }
    /**
     * This interface was referenced by `Config`'s JSON-Schema
     * via the `definition` "experiments_select".
     */
    export interface ExperimentsSelect<T extends boolean = true> {
      nummer?: T;
      titel?: T;
      jahr?: T;
      speaker?:
        | T
        | {
            name?: T;
            link?: T;
            id?: T;
          };
      leiter?:
        | T
        | {
            name?: T;
            email?: T;
          };
      kleinerBeschreibungstext?: T;
      updatedAt?: T;
      createdAt?: T;
    }
    /**
     * This interface was referenced by `Config`'s JSON-Schema
     * via the `definition` "payload-locked-documents_select".
     */
    export interface PayloadLockedDocumentsSelect<T extends boolean = true> {
      document?: T;
      globalSlug?: T;
      user?: T;
      updatedAt?: T;
      createdAt?: T;
    }
    /**
     * This interface was referenced by `Config`'s JSON-Schema
     * via the `definition` "payload-preferences_select".
     */
    export interface PayloadPreferencesSelect<T extends boolean = true> {
      user?: T;
      key?: T;
      value?: T;
      updatedAt?: T;
      createdAt?: T;
    }
    /**
     * This interface was referenced by `Config`'s JSON-Schema
     * via the `definition` "payload-migrations_select".
     */
    export interface PayloadMigrationsSelect<T extends boolean = true> {
      name?: T;
      batch?: T;
      updatedAt?: T;
      createdAt?: T;
    }
    /**
     * This interface was referenced by `Config`'s JSON-Schema
     * via the `definition` "auth".
     */
    export interface Auth {
      [k: string]: unknown;
    }
    
    
    declare module 'payload' {
      export interface GeneratedTypes extends Config {}
    }