Anchorage API reference
    Preparing search index...

    The tenant-bound subscription store that keeps request scope isolated. Obtain via SubscriptionStoreFactory.forTenant; the brand makes an unbound/system store a compile error where one of these is required.

    interface TenantBoundSubscriptionStore {
        "[SUBSCRIPTION_TENANT_BOUND]": true;
        tenantId: string;
        listForProvider(providerId: string): Promise<StoredSubscription[]>;
        listForThread(threadId: string): Promise<StoredSubscription[]>;
        subscribe(input: SubscribeInput): Promise<StoredSubscription>;
        unsubscribe(
            providerId: string,
            externalResourceId: string,
            threadId: string,
        ): Promise<boolean>;
    }
    Index

    Properties

    "[SUBSCRIPTION_TENANT_BOUND]": true
    tenantId: string

    Methods

    • Remove one subscription; true if a row was deleted.

      Parameters

      • providerId: string
      • externalResourceId: string
      • threadId: string

      Returns Promise<boolean>