The BrandKitController is responsible for all communication regarding Brand Kits. Methods inside this controller can be called by window.SDK.brandKit.{method-name}

Methods

  • This method adds a media item to the brand kit

    Parameters

    • name: string

      The name of the media item

    • remoteConnectorId: string

      The remote connector ID

    • assetId: string

      The asset ID of the media item

    Returns Promise<EditorResponse<string>>

  • Experimental

    This method returns the local brandkit

    Returns Promise<
        {
            data?: null
            | string;
            error?: null | string;
            parsedData: StudioBrandKit;
            status: number;
            success: boolean;
        },
    >

    brandkit with all assigned resources

  • This method returns the value indicating whether the brand kit auto-sync is enabled or not It is up to the integrator to implement this auto-sync functionality, this method only is an indication if it should be done or not.

    Returns Promise<EditorResponse<boolean>>

    boolean indicating sync status

  • Experimental

    This method updates a brand kit and all related resources assigned to it

    Parameters

    Returns Promise<
        {
            data?: null
            | string;
            error?: null | string;
            parsedData: BrandKitInternal;
            status: number;
            success: boolean;
        },
    >

  • This method updates an existing media item in the brand kit

    Parameters

    • name: string

      The name of the media item to update

    • remoteConnectorId: string

      The new remote connector ID

    • assetId: string

      The new asset ID

    Returns Promise<EditorResponse<null>>