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

    Class CustomerSlackBotChannelService

    Index
    db: B2bDatabase
    instance: (...args: []) => CustomerSlackBotChannelService = ...

    The process service: the shared database and the internal bus.

    • Parameters

      • args: {
            channelId: string;
            customerId: string;
            customerSlackBotInstallationId: string;
            tx?: PgAsyncTransaction<NodePgQueryResultHKT, EmptyRelations>;
        }

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

    • Parameters

      • args: {
            customerId: string;
            customerSlackBotInstallationId: string;
            id: string[];
            tx?: PgAsyncTransaction<NodePgQueryResultHKT, EmptyRelations>;
        }

      Returns Promise<void>

    • Parameters

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

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

    • Search slack channels by customer or channel id

      Parameters

      • __namedParameters: {
            channelIds?: string[];
            createdAt?: DbTimestampCriteria;
            customerId: string;
            customerSlackBotInstallationIds?: string[];
            page?: number;
            pageSize?: number;
            tx?: PgAsyncTransaction<NodePgQueryResultHKT, EmptyRelations>;
            updatedAt?: DbTimestampCriteria;
        }

      Returns Promise<
          {
              ok: true;
              value: {
                  hasNext: boolean;
                  items: CustomerSlackBotChannel[];
                  total: number;
              };
          },
      >