SDK Reference

    @proveanything/smartlinks

    npm install @proveanything/smartlinks
    View on npm →

    Namespaces

    Core Data & Configuration

    form

    Build and manage dynamic forms used by apps and workflows.

    5 functions0 types

    get

    Get a single form by ID for a collection.

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

    list

    List all forms for a collection.

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

    create

    Create a new form for a collection (admin only).

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

    update

    Update a form for a collection (admin only).

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

    remove

    Delete a form for a collection (admin only).

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