@cfxlabsinc/b2b-services
    Preparing search index...

    Class CustomerSlackBotInstallationService

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    Methods

    • Get a slack installation by ID

      Parameters

      • args: {
            customerId: string;
            id: string[];
            tx?: PgAsyncTransaction<
                PostgresJsQueryResultHKT,
                __module,
                EmptyRelations,
                ExtractTablesWithRelations<__module>,
            >;
        }

      Returns Promise<void>

    • Returns a URL that is suitable for including in an Add to Slack button Uses stateStore to generate a value for the state query param.

      Parameters

      • args: { customerId: string }

      Returns string

    • Get a slack installation by ID

      Parameters

      • args: {
            customerId: string;
            id: string;
            tx?: PgAsyncTransaction<
                PostgresJsQueryResultHKT,
                __module,
                EmptyRelations,
                ExtractTablesWithRelations<__module>,
            >;
        }

      Returns Promise<{ ok: true; value: CustomerSlackBotInstallation | null }>

    • Search a slack installations

      Parameters

      • __namedParameters: {
            createdAt?: DbTimestampCriteria;
            customerId: string;
            page?: number;
            pageSize?: number;
            slackBotInstallationId?: string;
            tx?: PgAsyncTransaction<
                PostgresJsQueryResultHKT,
                __module,
                EmptyRelations,
                ExtractTablesWithRelations<__module>,
            >;
            updatedAt?: DbTimestampCriteria;
        }

      Returns Promise<{ ok: true; value: CustomerSlackBotInstallation[] }>