Create redux actions to be dispatched by connected components, mostly to make requests to the server.

Hierarchy

  • default
    • default

Constructors

  • Parameters

    • Optional fetcher: default

    Returns default

Properties

BOOK: "BOOK" = "BOOK"
BOOK_CLEAR: "BOOK_CLEAR" = "BOOK_CLEAR"
BOOK_FAILURE: "BOOK_FAILURE" = "BOOK_FAILURE"
BOOK_LOAD: "BOOK_LOAD" = "BOOK_LOAD"
BOOK_REQUEST: "BOOK_REQUEST" = "BOOK_REQUEST"
BOOK_SUCCESS: "BOOK_SUCCESS" = "BOOK_SUCCESS"
CLEAR: "CLEAR" = "CLEAR"
CLEAR_AUTH_CREDENTIALS: "CLEAR_AUTH_CREDENTIALS" = "CLEAR_AUTH_CREDENTIALS"
CLOSE_ERROR: "CLOSE_ERROR" = "CLOSE_ERROR"
COLLECTION: "COLLECTION" = "COLLECTION"
COLLECTION_CLEAR: "COLLECTION_CLEAR" = "COLLECTION_CLEAR"
COLLECTION_FAILURE: "COLLECTION_FAILURE" = "COLLECTION_FAILURE"
COLLECTION_LOAD: "COLLECTION_LOAD" = "COLLECTION_LOAD"
COLLECTION_REQUEST: "COLLECTION_REQUEST" = "COLLECTION_REQUEST"
COLLECTION_SUCCESS: "COLLECTION_SUCCESS" = "COLLECTION_SUCCESS"
EDIT_STAGES: "EDIT_STAGES" = "EDIT_STAGES"
FAILURE: "FAILURE" = "FAILURE"
FULFILL_BOOK: "FULFILL_BOOK" = "FULFILL_BOOK"
FULFILL_BOOK_FAILURE: "FULFILL_BOOK_FAILURE" = "FULFILL_BOOK_FAILURE"
FULFILL_BOOK_REQUEST: "FULFILL_BOOK_REQUEST" = "FULFILL_BOOK_REQUEST"
FULFILL_BOOK_SUCCESS: "FULFILL_BOOK_SUCCESS" = "FULFILL_BOOK_SUCCESS"
GET_ALL_LIBRARIES: "GET_ALL_LIBRARIES" = "GET_ALL_LIBRARIES"
GET_ONE_LIBRARY: "GET_ONE_LIBRARY" = "GET_ONE_LIBRARY"
GET_SOME_LIBRARIES: "GET_SOME_LIBRARIES" = "GET_SOME_LIBRARIES"
HIDE_AUTH_FORM: "HIDE_AUTH_FORM" = "HIDE_AUTH_FORM"
LOAD: "LOAD" = "LOAD"
LOANS: "LOANS" = "LOANS"
LOANS_FAILURE: "LOANS_FAILURE" = "LOANS_FAILURE"
LOANS_LOAD: "LOANS_LOAD" = "LOANS_LOAD"
LOANS_REQUEST: "LOANS_REQUEST" = "LOANS_REQUEST"
LOANS_SUCCESS: "LOANS_SUCCESS" = "LOANS_SUCCESS"
LOG_IN: "LOG_IN" = "LOG_IN"
PAGE: "PAGE" = "PAGE"
PAGE_FAILURE: "PAGE_FAILURE" = "PAGE_FAILURE"
PAGE_LOAD: "PAGE_LOAD" = "PAGE_LOAD"
PAGE_REQUEST: "PAGE_REQUEST" = "PAGE_REQUEST"
PAGE_SUCCESS: "PAGE_SUCCESS" = "PAGE_SUCCESS"
POST_PLS_ID: "POST_PLS_ID" = "POST_PLS_ID"
REQUEST: "REQUEST" = "REQUEST"
SAVE_AUTH_CREDENTIALS: "SAVE_AUTH_CREDENTIALS" = "SAVE_AUTH_CREDENTIALS"
SEARCH_DESCRIPTION: "SEARCH_DESCRIPTION" = "SEARCH_DESCRIPTION"
SEARCH_DESCRIPTION_LOAD: "SEARCH_DESCRIPTION_LOAD" = "SEARCH_DESCRIPTION_LOAD"
SET_PREFERENCE: "SET_PREFERENCE" = "SET_PREFERENCE"
SHOW_AUTH_FORM: "SHOW_AUTH_FORM" = "SHOW_AUTH_FORM"
SUCCESS: "SUCCESS" = "SUCCESS"
UPDATE_BOOK: "UPDATE_BOOK" = "UPDATE_BOOK"
UPDATE_BOOK_FAILURE: "UPDATE_BOOK_FAILURE" = "UPDATE_BOOK_FAILURE"
UPDATE_BOOK_LOAD: "UPDATE_BOOK_LOAD" = "UPDATE_BOOK_LOAD"
UPDATE_BOOK_REQUEST: "UPDATE_BOOK_REQUEST" = "UPDATE_BOOK_REQUEST"
UPDATE_BOOK_SUCCESS: "UPDATE_BOOK_SUCCESS" = "UPDATE_BOOK_SUCCESS"
VALIDATE_EMAIL: "VALIDATE_EMAIL" = "VALIDATE_EMAIL"

Methods

  • Parameters

    • type: string

    Returns {
        type: string;
    }

    • type: string
  • Returns {
        type: string;
    }

    • type: string
  • Returns {
        type: string;
    }

    • type: string
  • Returns {
        type: string;
    }

    • type: string
  • Returns {
        type: string;
    }

    • type: string
  • Returns ((dispatch: any) => void)

      • (dispatch: any): void
      • Parameters

        • dispatch: any

        Returns void

  • Parameters

    • data: FormData

    Returns any

  • Parameters

    • type: string
    • Optional error: FetchErrorData

    Returns {
        error: FetchErrorData;
        type: string;
    }

    • error: FetchErrorData
    • type: string
  • Parameters

    • type: string
    • url: string

    Returns ((dispatch: any) => Promise<Blob>)

      • (dispatch: any): Promise<Blob>
      • Parameters

        • dispatch: any

        Returns Promise<Blob>

  • Parameters

    • url: string

    Returns ((dispatch: any) => Promise<BookData>)

      • (dispatch: any): Promise<BookData>
      • Parameters

        • dispatch: any

        Returns Promise<BookData>

  • Parameters

    • url: string

    Returns ((dispatch: any) => Promise<CollectionData>)

      • (dispatch: any): Promise<CollectionData>
      • Parameters

        • dispatch: any

        Returns Promise<CollectionData>

  • Type Parameters

    • T

    Parameters

    • type: string
    • url: string

    Returns ((dispatch: any) => Promise<T>)

      • (dispatch: any): Promise<T>
      • Parameters

        • dispatch: any

        Returns Promise<T>

  • Parameters

    • Optional qa: string

    Returns any

  • Parameters

    • uuid: string

    Returns any

  • Parameters

    • url: string

    Returns ((dispatch: any) => Promise<CollectionData>)

      • (dispatch: any): Promise<CollectionData>
      • Parameters

        • dispatch: any

        Returns Promise<CollectionData>

  • Type Parameters

    • T

    Parameters

    • type: string
    • url: string

    Returns ((dispatch: any) => Promise<T>)

      • (dispatch: any): Promise<T>
      • Parameters

        • dispatch: any

        Returns Promise<T>

  • Parameters

    • url: string

    Returns ((dispatch: any) => Promise<CollectionData>)

      • (dispatch: any): Promise<CollectionData>
      • Parameters

        • dispatch: any

        Returns Promise<CollectionData>

  • Parameters

    • url: string

    Returns ((dispatch: any) => Promise<SearchData>)

      • (dispatch: any): Promise<SearchData>
      • Parameters

        • dispatch: any

        Returns Promise<SearchData>

  • Parameters

    • url: string

    Returns ((dispatch: any) => Promise<Blob>)

      • (dispatch: any): Promise<Blob>
      • Parameters

        • dispatch: any

        Returns Promise<Blob>

  • Returns {
        type: string;
    }

    • type: string
  • Parameters

    • url: string
    • type: string

    Returns ((dispatch: any) => Promise<string>)

      • (dispatch: any): Promise<string>
      • Parameters

        • dispatch: any

        Returns Promise<string>

  • Type Parameters

    • T

    Parameters

    • type: string
    • data: T
    • Optional url: string

    Returns LoadAction<T>

  • Parameters

    • data: BookData
    • url: string

    Returns LoadAction<BookData>

  • Parameters

    • data: FormData

    Returns any

  • Parameters

    • type: string
    • url: string
    • data: FormData
    • Optional method: string
    • Optional defaultErrorMessage: string
    • Optional returnType: string

    Returns any

  • Type Parameters

    • T

    Parameters

    • type: string
    • url: string
    • data: T

    Returns ((dispatch: any) => Promise<unknown>)

      • (dispatch: any): Promise<unknown>
      • Parameters

        • dispatch: any

        Returns Promise<unknown>

  • Parameters

    • data: FormData

    Returns any

  • Parameters

    • type: string
    • Optional url: string

    Returns {
        type: string;
        url: string;
    }

    • type: string
    • url: string
  • Parameters

    • credentials: AuthCredentials

    Returns {
        credentials: AuthCredentials;
        type: string;
    }

    • credentials: AuthCredentials
    • type: string
  • Parameters

    • data: FormData

    Returns any

  • Parameters

    • key: string
    • value: string

    Returns {
        key: string;
        type: string;
        value: string;
    }

    • key: string
    • type: string
    • value: string
  • Parameters

    • callback: AuthCallback
    • cancel: (() => void)
        • (): void
        • Returns void

    • providers: AuthProvider<AuthMethod, AuthMethod>[]
    • title: string
    • Optional error: string
    • Optional attemptedProvider: string

    Returns {
        attemptedProvider: string;
        callback: AuthCallback;
        cancel: (() => void);
        error: string;
        providers: AuthProvider<AuthMethod, AuthMethod>[];
        title: string;
        type: string;
    }

    • attemptedProvider: string
    • callback: AuthCallback
    • cancel: (() => void)
        • (): void
        • Returns void

    • error: string
    • providers: AuthProvider<AuthMethod, AuthMethod>[]
    • title: string
    • type: string
  • Parameters

    • type: string

    Returns {
        type: string;
    }

    • type: string
  • Parameters

    • url: string

    Returns ((dispatch: any) => Promise<BookData>)

      • (dispatch: any): Promise<BookData>
      • Parameters

        • dispatch: any

        Returns Promise<BookData>

  • Parameters

    • data: FormData

    Returns any

Generated using TypeDoc