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

    Admin operations on Quiltt connections that don't require a customerId scope. Used by the backoffice webhook consumer to react to Quiltt events.

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    Methods

    • Parameters

      • __namedParameters: { id: string }

      Returns Promise<
          {
              ok: true;
              value: | Omit<
                  {
                      createdAt: Date;
                      customerId: number;
                      data: {
                          connectionData?: {
                              accounts: Omit<(...), (...)>[];
                              connectionId: string;
                              institution: { logo?: (...) | (...); name: string };
                              userProfileId: string;
                          };
                          connectorId: string;
                      };
                      deletedAt: Date
                      | null;
                      externalId: string;
                      id: number;
                      identityId: number | null;
                      organizationId: number | null;
                      status: "ACTIVE" | "DELETED" | "NEEDS_REPAIR";
                      updatedAt: Date;
                  },
                  "data"
                  | "id"
                  | "organizationId"
                  | "customerId"
                  | "identityId",
              > & {
                  connectionData?: {
                      accounts: Omit<QuilttAccountData, "institution">[];
                      connectionId: string;
                      institution: { logo?: { url?: (...) | (...) }; name: string };
                      userProfileId: string;
                  };
                  connectorId: string;
                  entityId: string;
                  id: string;
              } & { customerId: string }
              | null;
          },
      >

    • Parameters

      • __namedParameters: {
            createdAt?: DbTimestampCriteria;
            customerIds?: string[];
            entityIds?: string[];
            ids?: string[];
            orderBy?: DbOrderByCriterion<
                Omit<
                    PgTableWithColumns<
                        {
                            columns: {
                                createdAt: PgBuildColumn<
                                    "quiltt_connection",
                                    SetHasDefault<SetNotNull<(...)>>,
                                    {
                                        data: Date;
                                        dataType: "object date";
                                        driverParam: string;
                                        enumValues: undefined;
                                        generated: undefined;
                                        hasDefault: true;
                                        hasRuntimeDefault: false;
                                        identity: undefined;
                                        isAutoincrement: false;
                                        isPrimaryKey: false;
                                        name: string;
                                        notNull: true;
                                        tableName: "quiltt_connection";
                                    },
                                >;
                                customerId: PgBuildColumn<
                                    "quiltt_connection",
                                    SetNotNull<PgIntegerBuilder>,
                                    {
                                        data: number;
                                        dataType: "number int32";
                                        driverParam: (...) | (...);
                                        enumValues: undefined;
                                        generated: undefined;
                                        hasDefault: false;
                                        hasRuntimeDefault: false;
                                        identity: undefined;
                                        isAutoincrement: false;
                                        isPrimaryKey: false;
                                        name: string;
                                        notNull: true;
                                        tableName: "quiltt_connection";
                                    },
                                >;
                                data: PgBuildColumn<
                                    "quiltt_connection",
                                    Set$Type<
                                        SetHasDefault<(...)>,
                                        { connectionData?: ...; connectorId: ... },
                                    >,
                                    {
                                        data: { connectionData?: ...; connectorId: ... };
                                        dataType: "object json";
                                        driverParam: unknown;
                                        enumValues: undefined;
                                        generated: undefined;
                                        hasDefault: true;
                                        hasRuntimeDefault: false;
                                        identity: undefined;
                                        isAutoincrement: false;
                                        isPrimaryKey: false;
                                        name: string;
                                        notNull: true;
                                        tableName: "quiltt_connection";
                                    },
                                >;
                                deletedAt: PgBuildColumn<
                                    "quiltt_connection",
                                    PgTimestampBuilder,
                                    {
                                        data: Date;
                                        dataType: "object date";
                                        driverParam: string;
                                        enumValues: undefined;
                                        generated: undefined;
                                        hasDefault: false;
                                        hasRuntimeDefault: false;
                                        identity: undefined;
                                        isAutoincrement: false;
                                        isPrimaryKey: false;
                                        name: string;
                                        notNull: false;
                                        tableName: "quiltt_connection";
                                    },
                                >;
                                externalId: PgBuildColumn<
                                    "quiltt_connection",
                                    SetHasRuntimeDefault<SetNotNull<(...)>>,
                                    {
                                        data: string;
                                        dataType: "string";
                                        driverParam: string;
                                        enumValues: undefined;
                                        generated: undefined;
                                        hasDefault: true;
                                        hasRuntimeDefault: false;
                                        identity: undefined;
                                        isAutoincrement: false;
                                        isPrimaryKey: false;
                                        name: string;
                                        notNull: true;
                                        tableName: "quiltt_connection";
                                    },
                                >;
                                id: PgBuildColumn<
                                    "quiltt_connection",
                                    HasIdentity<SetIsPrimaryKey<(...)>, "byDefault">,
                                    {
                                        data: number;
                                        dataType: "number int32";
                                        driverParam: (...) | (...);
                                        enumValues: undefined;
                                        generated: undefined;
                                        hasDefault: true;
                                        hasRuntimeDefault: false;
                                        identity: "byDefault";
                                        isAutoincrement: false;
                                        isPrimaryKey: false;
                                        name: string;
                                        notNull: true;
                                        tableName: "quiltt_connection";
                                    },
                                >;
                                identityId: PgBuildColumn<
                                    "quiltt_connection",
                                    PgIntegerBuilder,
                                    {
                                        data: number;
                                        dataType: "number int32";
                                        driverParam: (...)
                                        | (...);
                                        enumValues: undefined;
                                        generated: undefined;
                                        hasDefault: false;
                                        hasRuntimeDefault: false;
                                        identity: undefined;
                                        isAutoincrement: false;
                                        isPrimaryKey: false;
                                        name: string;
                                        notNull: false;
                                        tableName: "quiltt_connection";
                                    },
                                >;
                                organizationId: PgBuildColumn<
                                    "quiltt_connection",
                                    PgIntegerBuilder,
                                    {
                                        data: number;
                                        dataType: "number int32";
                                        driverParam: (...)
                                        | (...);
                                        enumValues: undefined;
                                        generated: undefined;
                                        hasDefault: false;
                                        hasRuntimeDefault: false;
                                        identity: undefined;
                                        isAutoincrement: false;
                                        isPrimaryKey: false;
                                        name: string;
                                        notNull: false;
                                        tableName: "quiltt_connection";
                                    },
                                >;
                                status: PgBuildColumn<
                                    "quiltt_connection",
                                    Set$Type<SetNotNull<(...)>, (...) | (...) | (...)>,
                                    {
                                        data: (...) | (...) | (...);
                                        dataType: "string";
                                        driverParam: string;
                                        enumValues: undefined;
                                        generated: undefined;
                                        hasDefault: false;
                                        hasRuntimeDefault: false;
                                        identity: undefined;
                                        isAutoincrement: false;
                                        isPrimaryKey: false;
                                        name: string;
                                        notNull: true;
                                        tableName: "quiltt_connection";
                                    },
                                >;
                                updatedAt: PgBuildColumn<
                                    "quiltt_connection",
                                    SetHasDefault<SetHasDefault<(...)>>,
                                    {
                                        data: Date;
                                        dataType: "object date";
                                        driverParam: string;
                                        enumValues: undefined;
                                        generated: undefined;
                                        hasDefault: true;
                                        hasRuntimeDefault: false;
                                        identity: undefined;
                                        isAutoincrement: false;
                                        isPrimaryKey: false;
                                        name: string;
                                        notNull: true;
                                        tableName: "quiltt_connection";
                                    },
                                >;
                            };
                            dialect: "pg";
                            name: "quiltt_connection";
                            schema: "b2b";
                        },
                    >,
                    "enableRLS",
                >,
                "createdAt"
                | "updatedAt",
            >[];
            page?: number;
            pageSize?: number;
            quilttConnectionId?: string;
            statuses?: ("ACTIVE" | "DELETED" | "NEEDS_REPAIR")[];
            updatedAt?: DbTimestampCriteria;
        }
        • OptionalcreatedAt?: DbTimestampCriteria
        • OptionalcustomerIds?: string[]
        • OptionalentityIds?: string[]
        • Optionalids?: string[]
        • OptionalorderBy?: DbOrderByCriterion<
              Omit<
                  PgTableWithColumns<
                      {
                          columns: {
                              createdAt: PgBuildColumn<
                                  "quiltt_connection",
                                  SetHasDefault<SetNotNull<(...)>>,
                                  {
                                      data: Date;
                                      dataType: "object date";
                                      driverParam: string;
                                      enumValues: undefined;
                                      generated: undefined;
                                      hasDefault: true;
                                      hasRuntimeDefault: false;
                                      identity: undefined;
                                      isAutoincrement: false;
                                      isPrimaryKey: false;
                                      name: string;
                                      notNull: true;
                                      tableName: "quiltt_connection";
                                  },
                              >;
                              customerId: PgBuildColumn<
                                  "quiltt_connection",
                                  SetNotNull<PgIntegerBuilder>,
                                  {
                                      data: number;
                                      dataType: "number int32";
                                      driverParam: (...) | (...);
                                      enumValues: undefined;
                                      generated: undefined;
                                      hasDefault: false;
                                      hasRuntimeDefault: false;
                                      identity: undefined;
                                      isAutoincrement: false;
                                      isPrimaryKey: false;
                                      name: string;
                                      notNull: true;
                                      tableName: "quiltt_connection";
                                  },
                              >;
                              data: PgBuildColumn<
                                  "quiltt_connection",
                                  Set$Type<
                                      SetHasDefault<(...)>,
                                      { connectionData?: ...; connectorId: ... },
                                  >,
                                  {
                                      data: { connectionData?: ...; connectorId: ... };
                                      dataType: "object json";
                                      driverParam: unknown;
                                      enumValues: undefined;
                                      generated: undefined;
                                      hasDefault: true;
                                      hasRuntimeDefault: false;
                                      identity: undefined;
                                      isAutoincrement: false;
                                      isPrimaryKey: false;
                                      name: string;
                                      notNull: true;
                                      tableName: "quiltt_connection";
                                  },
                              >;
                              deletedAt: PgBuildColumn<
                                  "quiltt_connection",
                                  PgTimestampBuilder,
                                  {
                                      data: Date;
                                      dataType: "object date";
                                      driverParam: string;
                                      enumValues: undefined;
                                      generated: undefined;
                                      hasDefault: false;
                                      hasRuntimeDefault: false;
                                      identity: undefined;
                                      isAutoincrement: false;
                                      isPrimaryKey: false;
                                      name: string;
                                      notNull: false;
                                      tableName: "quiltt_connection";
                                  },
                              >;
                              externalId: PgBuildColumn<
                                  "quiltt_connection",
                                  SetHasRuntimeDefault<SetNotNull<(...)>>,
                                  {
                                      data: string;
                                      dataType: "string";
                                      driverParam: string;
                                      enumValues: undefined;
                                      generated: undefined;
                                      hasDefault: true;
                                      hasRuntimeDefault: false;
                                      identity: undefined;
                                      isAutoincrement: false;
                                      isPrimaryKey: false;
                                      name: string;
                                      notNull: true;
                                      tableName: "quiltt_connection";
                                  },
                              >;
                              id: PgBuildColumn<
                                  "quiltt_connection",
                                  HasIdentity<SetIsPrimaryKey<(...)>, "byDefault">,
                                  {
                                      data: number;
                                      dataType: "number int32";
                                      driverParam: (...) | (...);
                                      enumValues: undefined;
                                      generated: undefined;
                                      hasDefault: true;
                                      hasRuntimeDefault: false;
                                      identity: "byDefault";
                                      isAutoincrement: false;
                                      isPrimaryKey: false;
                                      name: string;
                                      notNull: true;
                                      tableName: "quiltt_connection";
                                  },
                              >;
                              identityId: PgBuildColumn<
                                  "quiltt_connection",
                                  PgIntegerBuilder,
                                  {
                                      data: number;
                                      dataType: "number int32";
                                      driverParam: (...)
                                      | (...);
                                      enumValues: undefined;
                                      generated: undefined;
                                      hasDefault: false;
                                      hasRuntimeDefault: false;
                                      identity: undefined;
                                      isAutoincrement: false;
                                      isPrimaryKey: false;
                                      name: string;
                                      notNull: false;
                                      tableName: "quiltt_connection";
                                  },
                              >;
                              organizationId: PgBuildColumn<
                                  "quiltt_connection",
                                  PgIntegerBuilder,
                                  {
                                      data: number;
                                      dataType: "number int32";
                                      driverParam: (...)
                                      | (...);
                                      enumValues: undefined;
                                      generated: undefined;
                                      hasDefault: false;
                                      hasRuntimeDefault: false;
                                      identity: undefined;
                                      isAutoincrement: false;
                                      isPrimaryKey: false;
                                      name: string;
                                      notNull: false;
                                      tableName: "quiltt_connection";
                                  },
                              >;
                              status: PgBuildColumn<
                                  "quiltt_connection",
                                  Set$Type<SetNotNull<(...)>, (...) | (...) | (...)>,
                                  {
                                      data: (...) | (...) | (...);
                                      dataType: "string";
                                      driverParam: string;
                                      enumValues: undefined;
                                      generated: undefined;
                                      hasDefault: false;
                                      hasRuntimeDefault: false;
                                      identity: undefined;
                                      isAutoincrement: false;
                                      isPrimaryKey: false;
                                      name: string;
                                      notNull: true;
                                      tableName: "quiltt_connection";
                                  },
                              >;
                              updatedAt: PgBuildColumn<
                                  "quiltt_connection",
                                  SetHasDefault<SetHasDefault<(...)>>,
                                  {
                                      data: Date;
                                      dataType: "object date";
                                      driverParam: string;
                                      enumValues: undefined;
                                      generated: undefined;
                                      hasDefault: true;
                                      hasRuntimeDefault: false;
                                      identity: undefined;
                                      isAutoincrement: false;
                                      isPrimaryKey: false;
                                      name: string;
                                      notNull: true;
                                      tableName: "quiltt_connection";
                                  },
                              >;
                          };
                          dialect: "pg";
                          name: "quiltt_connection";
                          schema: "b2b";
                      },
                  >,
                  "enableRLS",
              >,
              "createdAt"
              | "updatedAt",
          >[]
        • Optionalpage?: number
        • OptionalpageSize?: number
        • OptionalquilttConnectionId?: string

          The Quiltt-assigned connection ID stored in data.connectionData.connectionId.

        • Optionalstatuses?: ("ACTIVE" | "DELETED" | "NEEDS_REPAIR")[]
        • OptionalupdatedAt?: DbTimestampCriteria

      Returns Promise<
          {
              ok: true;
              value: {
                  hasNext: boolean;
                  items: (
                      Omit<
                          {
                              createdAt: Date;
                              customerId: number;
                              data: {
                                  connectionData?: {
                                      accounts: (...)[];
                                      connectionId: string;
                                      institution: { logo?: ...; name: ... };
                                      userProfileId: string;
                                  };
                                  connectorId: string;
                              };
                              deletedAt: Date
                              | null;
                              externalId: string;
                              id: number;
                              identityId: number | null;
                              organizationId: number | null;
                              status: "ACTIVE" | "DELETED" | "NEEDS_REPAIR";
                              updatedAt: Date;
                          },
                          "data"
                          | "id"
                          | "organizationId"
                          | "customerId"
                          | "identityId",
                      > & {
                          connectionData?: {
                              accounts: Omit<QuilttAccountData, "institution">[];
                              connectionId: string;
                              institution: { logo?: { url?: ... }; name: string };
                              userProfileId: string;
                          };
                          connectorId: string;
                          entityId: string;
                          id: string;
                      } & { customerId: string }
                  )[];
              };
          },
      >

    • Parameters

      • __namedParameters: {
            data: {
                connectionData?: {
                    accounts: Omit<QuilttAccountData, "institution">[];
                    connectionId: string;
                    institution: { logo?: { url?: string }; name: string };
                    userProfileId: string;
                };
                status?: "ACTIVE"
                | "DELETED"
                | "NEEDS_REPAIR";
            };
            id: string;
        }

      Returns Promise<
          | { error: ServiceError; ok: false }
          | {
              ok: true;
              value: Omit<
                  {
                      createdAt: Date;
                      customerId: number;
                      data: {
                          connectionData?: {
                              accounts: Omit<(...), (...)>[];
                              connectionId: string;
                              institution: { logo?: (...) | (...); name: string };
                              userProfileId: string;
                          };
                          connectorId: string;
                      };
                      deletedAt: Date
                      | null;
                      externalId: string;
                      id: number;
                      identityId: number | null;
                      organizationId: number | null;
                      status: "ACTIVE" | "DELETED" | "NEEDS_REPAIR";
                      updatedAt: Date;
                  },
                  "data"
                  | "id"
                  | "organizationId"
                  | "customerId"
                  | "identityId",
              > & {
                  connectionData?: {
                      accounts: Omit<QuilttAccountData, "institution">[];
                      connectionId: string;
                      institution: { logo?: { url?: (...) | (...) }; name: string };
                      userProfileId: string;
                  };
                  connectorId: string;
                  entityId: string;
                  id: string;
              } & { customerId: string };
          },
      >