Class OneSDK

Constructors

Properties

usePermission: ((templateNames, base?) => SendType[]) = usePermission

Type declaration

    • (templateNames, base?): SendType[]
    • Parameters

      • templateNames: ("COMMENT" | "META" | "ORDER" | "REACTION" | "SETLIST" | "WORDPAETY" | "YT_SURVEY" | "CONFIG" | "SERVICE" | "USER" | "NOTIFICATION")[]
      • base: SendType[] = []

      Returns SendType[]

Accessors

  • get PERM(): {
        COMMENT: "COMMENT";
        CONFIG: "CONFIG";
        META: "META";
        NOTIFICATION: "NOTIFICATION";
        ORDER: "ORDER";
        REACTION: "REACTION";
        SERVICE: "SERVICE";
        SETLIST: "SETLIST";
        USER: "USER";
        WORDPAETY: "WORDPAETY";
        YT_SURVEY: "YT_SURVEY";
    }
  • Returns {
        COMMENT: "COMMENT";
        CONFIG: "CONFIG";
        META: "META";
        NOTIFICATION: "NOTIFICATION";
        ORDER: "ORDER";
        REACTION: "REACTION";
        SERVICE: "SERVICE";
        SETLIST: "SETLIST";
        USER: "USER";
        WORDPAETY: "WORDPAETY";
        YT_SURVEY: "YT_SURVEY";
    }

    • Readonly COMMENT: "COMMENT"
    • Readonly CONFIG: "CONFIG"
    • Readonly META: "META"
    • Readonly NOTIFICATION: "NOTIFICATION"
    • Readonly ORDER: "ORDER"
    • Readonly REACTION: "REACTION"
    • Readonly SERVICE: "SERVICE"
    • Readonly SETLIST: "SETLIST"
    • Readonly USER: "USER"
    • Readonly WORDPAETY: "WORDPAETY"
    • Readonly YT_SURVEY: "YT_SURVEY"
  • get connected(): boolean
  • Returns boolean

Methods

  • Parameters

    • orderId: string

    Returns Promise<OrderItem[]>

  • Returns Promise<boolean>

  • Parameters

    • orderId: string

    Returns Promise<OrderItem[]>

  • Returns Promise<void>

  • Type Parameters

    • T = any

    Parameters

    • url: string
    • config: AxiosRequestConfig<T>

    Returns Promise<AxiosResponse<any, any>>

  • Type Parameters

    • T = any

    Parameters

    • url: string
    • config: AxiosRequestConfig<T>

    Returns Promise<AxiosResponse<any, any>>

  • Parameters

    Returns {
        [key: string]: any;
    }

    • [key: string]: any
  • Returns Promise<null | Comment>

  • Type Parameters

    • T = any

    Parameters

    • name: string
    • defaultValue: T
    • parser: ((val) => T) = ...
        • (val): T
        • Parameters

          • val: string

          Returns T

    Returns T

  • Type Parameters

    • T = any

    Parameters

    • url: string
    • config: AxiosRequestConfig<T>

    Returns Promise<AxiosResponse<any, any>>

  • Type Parameters

    • T = any

    Parameters

    • url: string
    • config: AxiosRequestConfig<T>

    Returns Promise<AxiosResponse<any, any>>

  • Returns Promise<void>

  • Returns void

  • Parameters

    • params: {
          comments: string[];
          services: string[];
      }
      • comments: string[]
      • services: string[]

    Returns Promise<Comment[]>

  • Parameters

    Returns Promise<void>

  • Type Parameters

    Parameters

    • subscriber: T

    Returns number

  • Parameters

    • subscriberId: number

    Returns void