SWIRLS_
ReferenceSDKClient

views

SDK reference for views —

listViews

List view definitions for a project (latest snapshot per view name)

GET

Usage:

const result = await swirls.client.views.listViews({
  projectId: '...',
})

Input:

ParameterTypeRequiredDescription
projectIdstringYes

schema

Column layout for a view (mapped JSON Schema properties, source fields, computed columns)

GET

Usage:

const result = await swirls.client.views.schema({
  projectId: '...',
  viewName: '...',
})

Input:

ParameterTypeRequiredDescription
projectIdstringYes
appNamestringNo
viewNamestringYes

Output:

FieldTypeDescription
namestring
columnsobject[]

queryViewRows

Page materialized rows for a view, joined with computed cell values and statuses

GET

Usage:

const result = await swirls.client.views.queryViewRows({
  projectId: '...',
  viewName: '...',
  limit: 1,
})

Input:

ParameterTypeRequiredDescription
projectIdstringYes
appNamestringNo
viewNamestringYes
cursorstringNo
limitnumberYes
offsetnumberNo
filtersobject[]No
searchstringNo
orderByobjectNo

Output:

FieldTypeDescription
rowsobject[]
nextCursorstring
totalRowsnumber
pendingCellsnumber
columnsobject[]

recomputeView

Start a backfill that materializes existing stream rows for a view and runs its computed columns

POST

Usage:

const result = await swirls.client.views.recomputeView({
  projectId: '...',
  viewName: '...',
})

Input:

ParameterTypeRequiredDescription
projectIdstringYes
appNamestringNo
viewNamestringYes

On this page