Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • BaseModel
    • default

Index

Constructors

constructor

  • Returns default

Properties

createdAt

createdAt: DateTime

id

id: number

nation

nation: BelongsTo<typeof default, LucidModel>

nationId

nationId: number

Id of the nation that is subscribed to

pushToken

pushToken: BelongsTo<typeof default, LucidModel>

pushTokenId

pushTokenId: number

Id of the push token that this subscription belongs to

subscriptionTopic

subscriptionTopic: BelongsTo<typeof default, LucidModel>

subscriptionTopicId

subscriptionTopicId: number

Id of the subscription topic that is subscribed to

updatedAt

updatedAt: DateTime

uuid

uuid: string

Unique access key that is used to send requests that requires "authentication"

Methods

Static createAccessKey

  • createAccessKey(subscription: default): Promise<void>
  • Generate a unique id for the subscription that will serve as a "secret" key for managing your subscription.

    Parameters

    Returns Promise<void>

Static forToken

  • forToken(token: string): Promise<null | default[]>

Generated using TypeDoc