Skip to content

Registration methods: admit, approve, attend

The Registration Verbs admit, approve, attend as typed SDK methods, with inputs, result, refusals and an example.

Reference for Registration, one group of Registration methods.

Registration.admit

Admit gives the next Contact in line a place at a Gathering when one frees up or its capacity rises. Verb page.

TypeScript
interface RegistrationVerbs {
  admit(input: RegistrationAdmitInput, options?: SB.CallOptions): SB.Call<Registration>
}

Emits Registration.admitted.

Inputs

InputTypeRequiredDescription
registrationRegistrationrequiredThe waitlisted Registration.

Returns

OutputTypeRequiredDescription
registrationRegistrationrequiredThe Registration, now registered.

Refuses when

CheckErrorFixThen call
The key is valid, but its scopes do not allow this operation.forbiddenUse a key whose scopes cover the operation, or ask an owner of the namespace to grant them.None.
The Gathering is at capacityrefusedClear what the check names, then call it again.None.

Example

TypeScript
import { $ } from 'startup-builder'

const registration = await $.Registration.admit({ registration: 'registration_95lvb7R17L' })

Registration.approve

Approve gives a requested place at a Gathering to the Contact who asked, or a place in line when the Gathering is full. Verb page.

TypeScript
interface RegistrationVerbs {
  approve(input: RegistrationApproveInput, options?: SB.CallOptions): SB.Call<Registration>
}

Emits Registration.approved.

Inputs

InputTypeRequiredDescription
registrationRegistrationrequiredThe requested Registration.

Returns

OutputTypeRequiredDescription
registrationRegistrationrequiredThe Registration, registered or waitlisted.

Refuses when

CheckErrorFixThen call
The key is valid, but its scopes do not allow this operation.forbiddenUse a key whose scopes cover the operation, or ask an owner of the namespace to grant them.None.

Example

TypeScript
import { $ } from 'startup-builder'

const registration = await $.Registration.approve({ registration: 'registration_95lvb7R17L' })

Registration.attend

Attend records that a registered Contact joined the Gathering; an online room calls it on join. Verb page.

TypeScript
interface RegistrationVerbs {
  attend(input: RegistrationAttendInput, options?: SB.CallOptions): SB.Call<Registration>
}

Emits Registration.attended.

Inputs

InputTypeRequiredDescription
registrationRegistrationrequiredThe Registration of the Contact who joined.

Returns

OutputTypeRequiredDescription
registrationRegistrationrequiredThe Registration, now attended.

Refuses when

CheckErrorFixThen call
The key is valid, but its scopes do not allow this operation.forbiddenUse a key whose scopes cover the operation, or ask an owner of the namespace to grant them.None.

Example

TypeScript
import { $ } from 'startup-builder'

const registration = await $.Registration.attend({ registration: 'registration_95lvb7R17L' })