OneSDK — OneComme 9.2.0-beta.6
    Preparing search index...

    Interface ConnectedData

    interface ConnectedData {
        comments: ExtendedComment[];
        config: Config;
        pro: boolean;
        services: Service[];
        setList: object | SetListAPIResponse;
        templatePath?: string;
        vtsObjectToken: string;
        waitingList: OrderItem[];
        ytSurveys?: SystemComment[];
    }
    Index

    Properties

    comments: ExtendedComment[]
    config: Config
    pro: boolean
    services: Service[]
    setList: object | SetListAPIResponse
    templatePath?: string

    わんコメの templates ディレクトリ(OS ネイティブ形式の絶対パス、/api/info の templatePath と同じ値)。OneSDK が OBS のローカルファイル形式 (http://absolute)から loopback URL へ遷移する際のパス対応付けに使う。

    vtsObjectToken: string

    /api/wordparty/vts-object/{fire,unload} を呼ぶときに X-OneComme-VTS-Object-Token ヘッダーへ載せる一時トークン。 アプリ起動ごとに発行され、connected イベントで配布される。 保存せず、connected で受け取った値をそのつど使うこと。

    waitingList: OrderItem[]
    ytSurveys?: SystemComment[]

    接続時点で進行中の YouTube アンケート(最大1件)。 アンケート本体は data.meta.raw(YouTube.SurveyData)に入る。