SDK Reference

    @proveanything/smartlinks

    npm install @proveanything/smartlinks
    View on npm →

    Namespaces

    Other

    products

    Functions for products operations

    15 functions0 types

    get

    admin
    get(collectionId: string,
        productId: string,
        admin?: boolean) → Promise<>

    list

    admin
    list(collectionId: string,
        admin?: boolean) → Promise<[]>

    create

    public
    create(collectionId: string,
        data: ) → Promise<>

    update

    public
    update(collectionId: string,
        productId: string,
        data: ) → Promise<>

    remove

    public
    remove(collectionId: string,
        productId: string) → Promise<void>

    query

    public
    query(collectionId: string,
        body: ) → Promise<>

    clone

    public
    clone(collectionId: string,
        productId: string,
        body: Record<string, JsonValue> = {}) → Promise<>

    listAssets

    admin
    listAssets(collectionId: string,
        productId: string,
        admin?: boolean) → Promise<unknown>

    createClaimWindow

    public
    createClaimWindow(collectionId: string,
        productId: string,
        body: Record<string, JsonValue>) → Promise<unknown>

    updateClaimWindow

    public
    updateClaimWindow(collectionId: string,
        productId: string,
        claimId: string,
        body: Record<string, JsonValue>) → Promise<unknown>

    refresh

    public
    refresh(collectionId: string,
        productId: string) → Promise<>

    getSN

    public
    getSN(collectionId: string,
        productId: string,
        startIndex: number = 0,
        count: number = 10) → Promise<unknown>

    lookupSN

    public
    lookupSN(collectionId: string,
        productId: string,
        codeId: string) → Promise<unknown>

    publicLookupClaim

    public
    publicLookupClaim(collectionId: string,
        productId: string,
        claimId: string) → Promise<unknown>

    publicCreateClaim

    public
    publicCreateClaim(collectionId: string,
        productId: string,
        body: ) → Promise<unknown>