Dominevo
ReferenceHTTP API

settingsStore

The settingsStore router: 17 methods of the settings-store capability, with tier, scope, input and output.

Capability settings-store · scope system · mode singleton · source packages/types/src/capabilities/settings-store.cap.ts:240.

Every method is called at /trpc/settingsStore.<method> — queries with GET, mutations with POST. See How to call and Authorization.

MethodKindTierToken scopeViewer
getqueryadminadmin onlyno
setmutationadminadmin onlyno
queryqueryadminadmin onlyno
upsertmutationadminadmin onlyno
upsertManymutationadminadmin onlyno
insertmutationadminadmin onlyno
insertManymutationadminadmin onlyno
transactmutationadminadmin onlyno
updatemutationadminadmin onlyno
deletemutationadminadmin onlyno
deleteWheremutationadminadmin onlyno
updateWheremutationadminadmin onlyno
countqueryadminadmin onlyno
aggregatequeryadminadmin onlyno
histogramqueryadminadmin onlyno
isEmptyqueryadminadmin onlyno
declareCollectionmutationadminadmin onlyno

settingsStore.get

  • Kind: query — GET /trpc/settingsStore.get
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=settingsStore.get on your hub

Input

{ namespace?: string; collection: string; key: string }

Output

unknown

settingsStore.set

  • Kind: mutation — POST /trpc/settingsStore.set
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=settingsStore.set on your hub

Input

{ namespace?: string; collection: string; key: string; value: unknown }

Output

void

settingsStore.query

  • Kind: query — GET /trpc/settingsStore.query
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=settingsStore.query on your hub

Input

{ namespace?: string; collection: string; filter?: QueryFilterSchema; columns?: string[] }

Output

SettingsRecordSchema[]

Shapes: QueryFilterSchema · SettingsRecordSchema

settingsStore.upsert

  • Kind: mutation — POST /trpc/settingsStore.upsert
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=settingsStore.upsert on your hub

Input

{ namespace?: string; collection: string; conflict: string[]; record: BulkRecordSchema }

Output

{ id: string | number }

Shapes: BulkRecordSchema

settingsStore.upsertMany

  • Kind: mutation — POST /trpc/settingsStore.upsertMany
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=settingsStore.upsertMany on your hub

Input

{ namespace?: string; collection: string; conflict: string[]; records: BulkRecordSchema[] }

Output

{ upserted: number }

Shapes: BulkRecordSchema

settingsStore.insert

  • Kind: mutation — POST /trpc/settingsStore.insert
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=settingsStore.insert on your hub

Input

{ namespace?: string; collection: string; record: { id?: string; data: Record<string, unknown> } }

Output

{ id: string | number }

settingsStore.insertMany

  • Kind: mutation — POST /trpc/settingsStore.insertMany
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=settingsStore.insertMany on your hub

Input

{ namespace?: string; collection: string; records: BulkRecordSchema[] }

Output

{ inserted: number }

Shapes: BulkRecordSchema

settingsStore.transact

  • Kind: mutation — POST /trpc/settingsStore.transact
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=settingsStore.transact on your hub

Input

{ namespace?: string; guard?: { collection: string; key: string; column: string; equals: unknown }; ops: ({ op: "deleteWhere"; collection: string; filter: MutationFilterSchema } | { op: "insertMany"; collection: string; records: BulkRecordSchema[] } | { op: "update"; collection: string; id: string; data: Record<string, unknown> } | { op: "upsertMany"; collection: string; conflict: string[]; records: BulkRecordSchema[] })[] }

Output

{ applied: boolean; current?: unknown }

Shapes: MutationFilterSchema · BulkRecordSchema

settingsStore.update

  • Kind: mutation — POST /trpc/settingsStore.update
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=settingsStore.update on your hub

Input

{ namespace?: string; collection: string; id: string; data: Record<string, unknown> }

Output

void

settingsStore.delete

  • Kind: mutation — POST /trpc/settingsStore.delete
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=settingsStore.delete on your hub

Input

{ namespace?: string; collection: string; key: string }

Output

void

settingsStore.deleteWhere

  • Kind: mutation — POST /trpc/settingsStore.deleteWhere
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=settingsStore.deleteWhere on your hub

Input

{ namespace?: string; collection: string; filter: MutationFilterSchema }

Output

{ deleted: number }

Shapes: MutationFilterSchema

settingsStore.updateWhere

  • Kind: mutation — POST /trpc/settingsStore.updateWhere
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=settingsStore.updateWhere on your hub

Input

{ namespace?: string; collection: string; filter: MutationFilterSchema; data: Record<string, unknown> }

Output

{ updated: number }

Shapes: MutationFilterSchema

settingsStore.count

  • Kind: query — GET /trpc/settingsStore.count
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=settingsStore.count on your hub

Input

{ namespace?: string; collection: string; filter?: QueryFilterSchema }

Output

number

Shapes: QueryFilterSchema

settingsStore.aggregate

  • Kind: query — GET /trpc/settingsStore.aggregate
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=settingsStore.aggregate on your hub

Input

{ namespace?: string; collection: string; fields: ({ as: string; field: string; op: "sum" | "min" | "max" })[]; filter?: QueryFilterSchema }

Output

{ count: number; values: Record<string, number | null> }

Shapes: QueryFilterSchema

settingsStore.histogram

  • Kind: query — GET /trpc/settingsStore.histogram
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=settingsStore.histogram on your hub

Input

{ namespace?: string; collection: string; field: string; bucketSize: number; origin: number; filter?: QueryFilterSchema }

Output

({ bucket: number; count: number })[]

Shapes: QueryFilterSchema

settingsStore.isEmpty

  • Kind: query — GET /trpc/settingsStore.isEmpty
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=settingsStore.isEmpty on your hub

Input

{ namespace?: string; collection: string }

Output

boolean

settingsStore.declareCollection

  • Kind: mutation — POST /trpc/settingsStore.declareCollection
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=settingsStore.declareCollection on your hub

Input

DeclareCollectionInputSchema

Output

void

Shapes: DeclareCollectionInputSchema