api client for the enter backend

Hierarchy

  • default
    • API

Attendees

  • Parameters

    • args: { attendeeId: string; includeDeleted?: boolean; instanceName: string }
    • options: FetchOptions = {}

    Returns Promise<APIResult<Attendee>>

  • Parameters

    • args: { filter?: string; includeDeleted?: boolean; instanceName: string }
    • options: FetchOptions = {}

    Returns Promise<APIResult<Attendee[]>>

  • Parameters

    • args: { attendeeId: string; includeDeleted?: boolean; instanceName: string }
    • options: FetchOptions = {}

    Returns Promise<APIResult<Attendee[]>>

Auth

  • Returns Promise<void>

  • Parameters

    • args: {
          oidc: { projectId: string; url: string };
          user: { key: string; keyId: string; userId: string };
      }

    Returns Promise<Result<string, { accessToken: string; expires: Date }>>

Counts

  • Get the number of guests for multiple custom filters. e.g. all guests that don't eat meat. This way you don't have to fetch the whole guestlist to calculate those counts.

    Parameters

    • args: { counter: { filter: string; name: string }[]; instanceName: string }
      • counter: { filter: string; name: string }[]

        A list of CustomCounters. You have to give each of your counts a name name and a filter

      • instanceName: string
    • options: FetchOptions = {}

    Returns Promise<APIResult<{ [key: string]: number }>>

    api.calculateCustomCounts({
    instanceName: 'my-instance',
    counter: [
    {
    name: 'vegetarians',
    filter: '&(user.has_food_restriction checked, user.is_vegetatian checked)'
    },
    {
    name: 'other-restrictions',
    filter: '&(user.has_food_restriction checked, user.is_vegetatian unchecked)'
    }
    ]
    })
  • Parameters

    • args: { instanceName: string }
    • options: FetchOptions = {}

    Returns Promise<APIResult<CheckinCounts>>

Emails

  • Parameters

    • args: {
          attendeeId: string;
          emailName: string;
          instanceName: string;
          mailingId?: null | string;
      }
    • options: FetchOptions = {}

    Returns Promise<
        APIResult<
            {
                htmlContent: null
                | string;
                plaintextContent: string;
                subject: string;
            },
        >,
    >

  • Parameters

    • args: { attendeeId: string; emailName: string; instanceName: string }
    • options: FetchOptions = {}

    Returns Promise<APIResult<null>>

Events

  • Parameters

    • args: (
          | {
              attendeeId: string;
              event?: "attendee-auth-code-requested";
              id?: string;
              instanceName: string;
          }
          | {
              attendee: {
                  branches?: string[];
                  checkin?: {
                      [key: string]: {
                          checkins?: { counterName?: (...)
                          | (...); id: string; time: string }[];
                          deleted?: string[];
                      };
                  };
                  companions?: | {
                      isCompanion?: true;
                      mainGuestId: string;
                      mainGuestName?: string;
                  }
                  | { companionNames?: { [key: string]: string }; isCompanion?: false };
                  deleted?: boolean;
                  id: string;
                  language: null | string;
                  payment?:
                      | null
                      | {
                          amount: number;
                          currency?: "USD"
                          | "EUR"
                          | "CHF";
                          paid: boolean;
                          provider:
                              | "manual"
                              | "sepa"
                              | "credit"
                              | "bank_transfer"
                              | "paypal"
                              | "stripe";
                          reference?: null
                          | string;
                          testmode: boolean;
                          title?: null | string;
                      };
                  rsvp?: {
                      [key: string]: | null
                      | {
                          checkinCounters?: string[];
                          personCount: number;
                          tieBreaker?: string;
                          time: null
                          | string;
                      };
                  };
                  tags?: string[];
                  time?: string;
                  userdata?: {
                      [key: string]: | null
                      | string
                      | number
                      | boolean
                      | string[]
                      | { file: string; name: string; size: number };
                  };
              };
              event?: "attendee-created";
              id?: string;
              instanceName: string;
          }
          | {
              attendeeId: string;
              event?: "attendee-deleted";
              final: boolean;
              id?: string;
              instanceName: string;
          }
          | {
              attendeeId: string;
              event?: "attendee-responded";
              id?: string;
              instanceName: string;
              isEdit: boolean;
              responseTime?: string;
              rsvp: {
                  [key: string]: | null
                  | {
                      checkinCounters?: string[];
                      personCount: number;
                      tieBreaker?: string;
                      time: null
                      | string;
                  };
              };
          }
          | {
              attendeeId: string;
              event?: "attendee-updated";
              id?: string;
              instanceName: string;
              time?: string;
              updates: {
                  branches?: string[];
                  companions?: | {
                      isCompanion?: true;
                      mainGuestId: string;
                      mainGuestName?: string;
                  }
                  | { companionNames?: { [key: string]: string }; isCompanion?: false };
                  deletedBranches?: string[];
                  deletedTags?: string[];
                  language?: string;
                  partialPayment?: {
                      amount?: number;
                      currency?: "USD" | "EUR" | "CHF";
                      paid?: boolean;
                      provider?:
                          | "manual"
                          | "sepa"
                          | "credit"
                          | "bank_transfer"
                          | "paypal"
                          | "stripe";
                  };
                  payment?: | null
                  | {
                      amount: number;
                      currency?: "USD"
                      | "EUR"
                      | "CHF";
                      paid: boolean;
                      provider:
                          | "manual"
                          | "sepa"
                          | "credit"
                          | "bank_transfer"
                          | "paypal"
                          | "stripe";
                      reference?: null
                      | string;
                      testmode: boolean;
                      title?: null | string;
                  };
                  rsvp?: {
                      [key: string]: | null
                      | {
                          checkinCounters?: string[];
                          personCount: number;
                          tieBreaker?: string;
                          time: null
                          | string;
                      };
                  };
                  tags?: string[];
                  userdata?: {
                      [key: string]: | null
                      | string
                      | number
                      | boolean
                      | string[]
                      | { file: string; name: string; size: number };
                  };
              };
          }
          | {
              attendeeId: string;
              branchName: string;
              checkin: { counterName?: string; id: string; time: string };
              event?: "checkin-created";
              id?: string;
              instanceName: string;
          }
          | {
              attendeeId: string;
              branchName: string;
              checkinId: string;
              event?: "checkin-deleted";
              id?: string;
              instanceName: string;
          }
          | {
              attendeeId: string;
              emailStatus: {
                  clicks?: string[];
                  clients?: string[];
                  mailing_id: string;
                  reason?: string
                  | string[];
                  status:
                      | "pending"
                      | "waiting"
                      | "submitted"
                      | "skipped"
                      | "sent"
                      | "opened"
                      | "clicked"
                      | "invalid"
                      | "rejected"
                      | "unsubscribed";
                  time?: null
                  | string;
                  updated_at?: string;
              };
              event?: "email-status-updated";
              id?: string;
              instanceName: string;
              mailId: string;
          }
          | {
              attendeeId: string;
              emailAddress: string;
              emailName: string;
              event?: "email-unsubscribed";
              id?: string;
              instanceName: string;
          }
          | {
              attendeeId: string;
              event?: "payment-paid";
              id?: string;
              instanceName: string;
              provider?: | null
              | "manual"
              | "sepa"
              | "credit"
              | "bank_transfer"
              | "paypal"
              | "stripe";
          }
      )[]
      • {
            attendeeId: string;
            event?: "attendee-auth-code-requested";
            id?: string;
            instanceName: string;
        }
        • attendeeId: string

          Attendeeid

        • Optionalevent?: "attendee-auth-code-requested"

          Event

          attendee-auth-code-requested
          
        • Optionalid?: string

          Id Format: uuid

        • instanceName: string

          Instancename

      • {
            attendee: {
                branches?: string[];
                checkin?: {
                    [key: string]: {
                        checkins?: { counterName?: (...) | (...); id: string; time: string }[];
                        deleted?: string[];
                    };
                };
                companions?: | {
                    isCompanion?: true;
                    mainGuestId: string;
                    mainGuestName?: string;
                }
                | { companionNames?: { [key: string]: string }; isCompanion?: false };
                deleted?: boolean;
                id: string;
                language: null | string;
                payment?:
                    | null
                    | {
                        amount: number;
                        currency?: "USD"
                        | "EUR"
                        | "CHF";
                        paid: boolean;
                        provider:
                            | "manual"
                            | "sepa"
                            | "credit"
                            | "bank_transfer"
                            | "paypal"
                            | "stripe";
                        reference?: null
                        | string;
                        testmode: boolean;
                        title?: null | string;
                    };
                rsvp?: {
                    [key: string]: | null
                    | {
                        checkinCounters?: string[];
                        personCount: number;
                        tieBreaker?: string;
                        time: null
                        | string;
                    };
                };
                tags?: string[];
                time?: string;
                userdata?: {
                    [key: string]: | null
                    | string
                    | number
                    | boolean
                    | string[]
                    | { file: string; name: string; size: number };
                };
            };
            event?: "attendee-created";
            id?: string;
            instanceName: string;
        }
        • attendee: {
              branches?: string[];
              checkin?: {
                  [key: string]: {
                      checkins?: { counterName?: (...) | (...); id: string; time: string }[];
                      deleted?: string[];
                  };
              };
              companions?: | {
                  isCompanion?: true;
                  mainGuestId: string;
                  mainGuestName?: string;
              }
              | { companionNames?: { [key: string]: string }; isCompanion?: false };
              deleted?: boolean;
              id: string;
              language: null | string;
              payment?:
                  | null
                  | {
                      amount: number;
                      currency?: "USD"
                      | "EUR"
                      | "CHF";
                      paid: boolean;
                      provider:
                          | "manual"
                          | "sepa"
                          | "credit"
                          | "bank_transfer"
                          | "paypal"
                          | "stripe";
                      reference?: null
                      | string;
                      testmode: boolean;
                      title?: null | string;
                  };
              rsvp?: {
                  [key: string]: | null
                  | {
                      checkinCounters?: string[];
                      personCount: number;
                      tieBreaker?: string;
                      time: null
                      | string;
                  };
              };
              tags?: string[];
              time?: string;
              userdata?: {
                  [key: string]: | null
                  | string
                  | number
                  | boolean
                  | string[]
                  | { file: string; name: string; size: number };
              };
          }
          • Optionalbranches?: string[]
            []
            
          • Optionalcheckin?: {
                [key: string]: {
                    checkins?: { counterName?: (...) | (...); id: string; time: string }[];
                    deleted?: string[];
                };
            }

            Checkin

            {}
            
          • Optionalcompanions?:
                | { isCompanion?: true; mainGuestId: string; mainGuestName?: string }
                | { companionNames?: { [key: string]: string }; isCompanion?: false }
            {
            * "isCompanion": false,
            * "companionNames": {}
            * }
          • Optionaldeleted?: boolean

            Deleted

            false
            
          • id: string

            Id

          • language: null | string

            Language

          • Optionalpayment?:
                | null
                | {
                    amount: number;
                    currency?: "USD"
                    | "EUR"
                    | "CHF";
                    paid: boolean;
                    provider:
                        | "manual"
                        | "sepa"
                        | "credit"
                        | "bank_transfer"
                        | "paypal"
                        | "stripe";
                    reference?: null
                    | string;
                    testmode: boolean;
                    title?: null | string;
                }
          • Optionalrsvp?: {
                [key: string]:
                    | null
                    | {
                        checkinCounters?: string[];
                        personCount: number;
                        tieBreaker?: string;
                        time: null
                        | string;
                    };
            }

            Rsvp

            {}
            
          • Optionaltags?: string[]
            []
            
          • Optionaltime?: string

            Time Format: date-time

          • Optionaluserdata?: {
                [key: string]:
                    | null
                    | string
                    | number
                    | boolean
                    | string[]
                    | { file: string; name: string; size: number };
            }

            Userdata

            {}
            
        • Optionalevent?: "attendee-created"

          Event

          attendee-created
          
        • Optionalid?: string

          Id Format: uuid

        • instanceName: string

          Instancename

      • {
            attendeeId: string;
            event?: "attendee-deleted";
            final: boolean;
            id?: string;
            instanceName: string;
        }
        • attendeeId: string

          Attendeeid

        • Optionalevent?: "attendee-deleted"

          Event

          attendee-deleted
          
        • final: boolean

          Final

        • Optionalid?: string

          Id Format: uuid

        • instanceName: string

          Instancename

      • {
            attendeeId: string;
            event?: "attendee-responded";
            id?: string;
            instanceName: string;
            isEdit: boolean;
            responseTime?: string;
            rsvp: {
                [key: string]:
                    | null
                    | {
                        checkinCounters?: string[];
                        personCount: number;
                        tieBreaker?: string;
                        time: null
                        | string;
                    };
            };
        }
        • attendeeId: string

          Attendeeid

        • Optionalevent?: "attendee-responded"

          Event

          attendee-responded
          
        • Optionalid?: string

          Id Format: uuid

        • instanceName: string

          Instancename

        • isEdit: boolean

          Isedit

        • OptionalresponseTime?: string

          Responsetime Format: date-time

        • rsvp: {
              [key: string]:
                  | null
                  | {
                      checkinCounters?: string[];
                      personCount: number;
                      tieBreaker?: string;
                      time: null
                      | string;
                  };
          }

          Rsvp

      • {
            attendeeId: string;
            event?: "attendee-updated";
            id?: string;
            instanceName: string;
            time?: string;
            updates: {
                branches?: string[];
                companions?:
                    | { isCompanion?: true; mainGuestId: string; mainGuestName?: string }
                    | { companionNames?: { [key: string]: string }; isCompanion?: false };
                deletedBranches?: string[];
                deletedTags?: string[];
                language?: string;
                partialPayment?: {
                    amount?: number;
                    currency?: "USD" | "EUR" | "CHF";
                    paid?: boolean;
                    provider?:
                        | "manual"
                        | "sepa"
                        | "credit"
                        | "bank_transfer"
                        | "paypal"
                        | "stripe";
                };
                payment?: | null
                | {
                    amount: number;
                    currency?: "USD"
                    | "EUR"
                    | "CHF";
                    paid: boolean;
                    provider:
                        | "manual"
                        | "sepa"
                        | "credit"
                        | "bank_transfer"
                        | "paypal"
                        | "stripe";
                    reference?: null
                    | string;
                    testmode: boolean;
                    title?: null | string;
                };
                rsvp?: {
                    [key: string]: | null
                    | {
                        checkinCounters?: string[];
                        personCount: number;
                        tieBreaker?: string;
                        time: null
                        | string;
                    };
                };
                tags?: string[];
                userdata?: {
                    [key: string]: | null
                    | string
                    | number
                    | boolean
                    | string[]
                    | { file: string; name: string; size: number };
                };
            };
        }
        • attendeeId: string

          Attendeeid

        • Optionalevent?: "attendee-updated"

          Event

          attendee-updated
          
        • Optionalid?: string

          Id Format: uuid

        • instanceName: string

          Instancename

        • Optionaltime?: string

          Time Format: date-time

        • updates: {
              branches?: string[];
              companions?:
                  | { isCompanion?: true; mainGuestId: string; mainGuestName?: string }
                  | { companionNames?: { [key: string]: string }; isCompanion?: false };
              deletedBranches?: string[];
              deletedTags?: string[];
              language?: string;
              partialPayment?: {
                  amount?: number;
                  currency?: "USD" | "EUR" | "CHF";
                  paid?: boolean;
                  provider?:
                      | "manual"
                      | "sepa"
                      | "credit"
                      | "bank_transfer"
                      | "paypal"
                      | "stripe";
              };
              payment?: | null
              | {
                  amount: number;
                  currency?: "USD"
                  | "EUR"
                  | "CHF";
                  paid: boolean;
                  provider:
                      | "manual"
                      | "sepa"
                      | "credit"
                      | "bank_transfer"
                      | "paypal"
                      | "stripe";
                  reference?: null
                  | string;
                  testmode: boolean;
                  title?: null | string;
              };
              rsvp?: {
                  [key: string]: | null
                  | {
                      checkinCounters?: string[];
                      personCount: number;
                      tieBreaker?: string;
                      time: null
                      | string;
                  };
              };
              tags?: string[];
              userdata?: {
                  [key: string]: | null
                  | string
                  | number
                  | boolean
                  | string[]
                  | { file: string; name: string; size: number };
              };
          }
          • Optionalbranches?: string[]

            Branches

          • Optionalcompanions?:
                | { isCompanion?: true; mainGuestId: string; mainGuestName?: string }
                | { companionNames?: { [key: string]: string }; isCompanion?: false }
          • OptionaldeletedBranches?: string[]

            Deletedbranches

          • OptionaldeletedTags?: string[]

            Deletedtags

          • Optionallanguage?: string

            Language

          • OptionalpartialPayment?: {
                amount?: number;
                currency?: "USD" | "EUR" | "CHF";
                paid?: boolean;
                provider?:
                    | "manual"
                    | "sepa"
                    | "credit"
                    | "bank_transfer"
                    | "paypal"
                    | "stripe";
            }
            • Optionalamount?: number

              Amount

            • Optionalcurrency?: "USD" | "EUR" | "CHF"

              Currency

            • Optionalpaid?: boolean

              Paid

            • Optionalprovider?: "manual" | "sepa" | "credit" | "bank_transfer" | "paypal" | "stripe"

              Provider

          • Optionalpayment?:
                | null
                | {
                    amount: number;
                    currency?: "USD"
                    | "EUR"
                    | "CHF";
                    paid: boolean;
                    provider:
                        | "manual"
                        | "sepa"
                        | "credit"
                        | "bank_transfer"
                        | "paypal"
                        | "stripe";
                    reference?: null
                    | string;
                    testmode: boolean;
                    title?: null | string;
                }
          • Optionalrsvp?: {
                [key: string]:
                    | null
                    | {
                        checkinCounters?: string[];
                        personCount: number;
                        tieBreaker?: string;
                        time: null
                        | string;
                    };
            }

            Rsvp

          • Optionaltags?: string[]

            Tags

          • Optionaluserdata?: {
                [key: string]:
                    | null
                    | string
                    | number
                    | boolean
                    | string[]
                    | { file: string; name: string; size: number };
            }

            Userdata

      • {
            attendeeId: string;
            branchName: string;
            checkin: { counterName?: string; id: string; time: string };
            event?: "checkin-created";
            id?: string;
            instanceName: string;
        }
        • attendeeId: string

          Attendeeid

        • branchName: string

          Branchname

        • checkin: { counterName?: string; id: string; time: string }
          • OptionalcounterName?: string

            Countername

            main
            
          • id: string

            Id Format: uuid

          • time: string

            Time Format: date-time

        • Optionalevent?: "checkin-created"

          Event

          checkin-created
          
        • Optionalid?: string

          Id Format: uuid

        • instanceName: string

          Instancename

      • {
            attendeeId: string;
            branchName: string;
            checkinId: string;
            event?: "checkin-deleted";
            id?: string;
            instanceName: string;
        }
        • attendeeId: string

          Attendeeid

        • branchName: string

          Branchname

        • checkinId: string

          Checkinid Format: uuid

        • Optionalevent?: "checkin-deleted"

          Event

          checkin-deleted
          
        • Optionalid?: string

          Id Format: uuid

        • instanceName: string

          Instancename

      • {
            attendeeId: string;
            emailStatus: {
                clicks?: string[];
                clients?: string[];
                mailing_id: string;
                reason?: string | string[];
                status:
                    | "pending"
                    | "waiting"
                    | "submitted"
                    | "skipped"
                    | "sent"
                    | "opened"
                    | "clicked"
                    | "invalid"
                    | "rejected"
                    | "unsubscribed";
                time?: null
                | string;
                updated_at?: string;
            };
            event?: "email-status-updated";
            id?: string;
            instanceName: string;
            mailId: string;
        }
        • attendeeId: string

          Attendeeid

        • emailStatus: {
              clicks?: string[];
              clients?: string[];
              mailing_id: string;
              reason?: string | string[];
              status:
                  | "pending"
                  | "waiting"
                  | "submitted"
                  | "skipped"
                  | "sent"
                  | "opened"
                  | "clicked"
                  | "invalid"
                  | "rejected"
                  | "unsubscribed";
              time?: null
              | string;
              updated_at?: string;
          }
          • Optionalclicks?: string[]

            for clicked events a url can be provided (those will be merged with clicks from prevois events)

          • Optionalclients?: string[]

            for open events a set of email clients can be added (those will be merged with clients from prevois states)

          • mailing_id: string

            Mailing Id

            the unique id of the bulk or single mailing

          • Optionalreason?: string | string[]

            Reason

            for error states a reason can be added to the event (reasons will be merged with reasons from prevoius errors)

          • status:
                | "pending"
                | "waiting"
                | "submitted"
                | "skipped"
                | "sent"
                | "opened"
                | "clicked"
                | "invalid"
                | "rejected"
                | "unsubscribed"

            Status

          • Optionaltime?: null | string

            Time

            the time the email was sent (this should only be set when setting the status to 'sent')

          • Optionalupdated_at?: string

            Updated At Format: date-time

        • Optionalevent?: "email-status-updated"

          Event

          email-status-updated
          
        • Optionalid?: string

          Id Format: uuid

        • instanceName: string

          Instancename

        • mailId: string

          Mailid

      • {
            attendeeId: string;
            emailAddress: string;
            emailName: string;
            event?: "email-unsubscribed";
            id?: string;
            instanceName: string;
        }
        • attendeeId: string

          Attendeeid

        • emailAddress: string

          Emailaddress

        • emailName: string

          Emailname

        • Optionalevent?: "email-unsubscribed"

          Event

          email-unsubscribed
          
        • Optionalid?: string

          Id Format: uuid

        • instanceName: string

          Instancename

      • {
            attendeeId: string;
            event?: "payment-paid";
            id?: string;
            instanceName: string;
            provider?:
                | null
                | "manual"
                | "sepa"
                | "credit"
                | "bank_transfer"
                | "paypal"
                | "stripe";
        }
        • attendeeId: string

          Attendeeid

        • Optionalevent?: "payment-paid"

          Event

          payment-paid
          
        • Optionalid?: string

          Id Format: uuid

        • instanceName: string

          Instancename

        • Optionalprovider?: null | "manual" | "sepa" | "credit" | "bank_transfer" | "paypal" | "stripe"

          Provider

    • options: FetchOptions = {}

    Returns Promise<APIResult<null>>

Fields

  • Parameters

    • args: { instanceName: string }
    • options: FetchOptions = {}

    Returns Promise<APIResult<FieldGroups>>

Instances

  • Parameters

    • args: { instanceName: string }
    • options: FetchOptions = {}

    Returns Promise<APIResult<Instance>>

  • Parameters

    • options: FetchOptions = {}

    Returns Promise<APIResult<Instance[]>>

Other

  • Parameters

    • args: {
          credentials: APICredentials;
          deviceName: string;
          onLogout: (reason?: string) => void;
          requesterId: string;
      }

    Returns API

  • Type Parameters

    • Path extends keyof paths

    Parameters

    • endpoint: Path
    • options: FetchOptions

    Returns Promise<APIResult<ResponseType<Path, "delete">>>

  • Type Parameters

    • Path extends keyof paths

    Parameters

    • endpoint: Path
    • options: FetchOptions

    Returns Promise<APIResult<ResponseType<Path, "get">>>

  • Type Parameters

    • Path extends keyof paths

    Parameters

    • endpoint: Path
    • data: RequestBody<Path, "patch">
    • options: FetchOptions

    Returns Promise<APIResult<ResponseType<Path, "patch">>>

  • Type Parameters

    • Path extends keyof paths

    Parameters

    • endpoint: Path
    • data: RequestBody<Path, "post">
    • options: FetchOptions

    Returns Promise<APIResult<ResponseType<Path, "post">>>

  • Type Parameters

    • Path extends keyof paths

    Parameters

    • endpoint: Path
    • data: RequestBody<Path, "put">
    • options: FetchOptions

    Returns Promise<APIResult<ResponseType<Path, "put">>>

Tokens

  • Parameters

    • args: {
          check:
              | {
                  attendeeId: string;
                  flags?: null
                  | Record<string, unknown>;
                  session_type?: null | string;
              }
              | {
                  authCode: string;
                  flags?: null
                  | Record<string, unknown>;
                  session_type?: null | string;
              }
              | {
                  flags?: null
                  | Record<string, unknown>;
                  security_question: {
                      answer: string;
                      attendeeId: string;
                      userdataFieldKey?: string;
                  };
                  session_type?: null
                  | string;
              };
          instanceName: string;
      }
    • options: FetchOptions = {}

    Returns Promise<APIResult<string>>

User

  • Parameters

    • options: FetchOptions = {}

    Returns Promise<
        APIResult<
            {
                email: string;
                groups: { [key: string]: ("team" | "external")[] };
                isAdmin: boolean;
                permissions: {
                    [key: string]: (
                        | "attendees:read"
                        | "attendees:create"
                        | "attendees:write"
                        | "attendees:write:bulk"
                        | "attendees:import"
                        | "attendees:export"
                        | "attendees:delete:soft"
                        | "attendees:delete:final"
                        | "emails:send"
                        | "emails:send:bulk"
                        | "email-config:write"
                        | "eventlog:read"
                        | "pdfs:write"
                        | "pdfs:export"
                        | "payment:write"
                        | "checkins:write"
                        | "branches:write"
                        | "files:write"
                        | "fields:write"
                        | "fields:read"
                        | "templates:write"
                        | "register-flow:write"
                        | "export-config:write"
                        | "instance-info:read"
                        | "instance-info:write"
                        | "domains:manage"
                        | "stats:read"
                        | "stats:write"
                        | "backup:write"
                        | "variables:read"
                        | "variables:write"
                        | "webhooks:read"
                        | "webhooks:write"
                    )[];
                };
                userdata: Record<string, unknown>;
                username: string;
            },
        >,
    >

  • Parameters

    • args: { userdata: Record<string, unknown> }
      • userdata: Record<string, unknown>

        Userdata

    • options: FetchOptions = {}

    Returns Promise<
        APIResult<
            {
                email: string;
                groups: { [key: string]: ("team" | "external")[] };
                isAdmin: boolean;
                permissions: {
                    [key: string]: (
                        | "attendees:read"
                        | "attendees:create"
                        | "attendees:write"
                        | "attendees:write:bulk"
                        | "attendees:import"
                        | "attendees:export"
                        | "attendees:delete:soft"
                        | "attendees:delete:final"
                        | "emails:send"
                        | "emails:send:bulk"
                        | "email-config:write"
                        | "eventlog:read"
                        | "pdfs:write"
                        | "pdfs:export"
                        | "payment:write"
                        | "checkins:write"
                        | "branches:write"
                        | "files:write"
                        | "fields:write"
                        | "fields:read"
                        | "templates:write"
                        | "register-flow:write"
                        | "export-config:write"
                        | "instance-info:read"
                        | "instance-info:write"
                        | "domains:manage"
                        | "stats:read"
                        | "stats:write"
                        | "backup:write"
                        | "variables:read"
                        | "variables:write"
                        | "webhooks:read"
                        | "webhooks:write"
                    )[];
                };
                userdata: Record<string, unknown>;
                username: string;
            },
        >,
    >

Variables

  • Parameters

    • args: {
          instanceName: string;
          variable: {
              isPrivate: boolean;
              name: string;
              title: string;
              value: string;
              variableType: "text";
          };
      }
    • options: FetchOptions = {}

    Returns Promise<
        APIResult<
            {
                isPrivate: boolean;
                name: string;
                title: string;
                value: string;
                variableType: "text";
            },
        >,
    >

  • Parameters

    • args: { instanceName: string; variableName: string }
    • options: FetchOptions = {}

    Returns Promise<APIResult<null>>

  • Parameters

    • args: { instanceName: string; variableName: string }
    • options: FetchOptions = {}

    Returns Promise<
        APIResult<
            {
                isPrivate: boolean;
                name: string;
                title: string;
                value: string;
                variableType: "text";
            },
        >,
    >

  • Parameters

    • args: { instanceName: string }
    • options: FetchOptions = {}

    Returns Promise<
        APIResult<
            {
                isPrivate: boolean;
                name: string;
                title: string;
                value: string;
                variableType: "text";
            }[],
        >,
    >

  • Parameters

    • args: {
          instanceName: string;
          update: {
              isPrivate?: null | boolean;
              title?: null | string;
              value?: null | string;
          };
          variableName: string;
      }
    • options: FetchOptions = {}

    Returns Promise<
        APIResult<
            {
                isPrivate: boolean;
                name: string;
                title: string;
                value: string;
                variableType: "text";
            },
        >,
    >