search ( __namedParameters : { adminUserIds ?: string [] ; createdAt ?: DbTimestampCriteria ; customerId : string ; objectIds ?: string [] ; orderBy ?: DbOrderByCriterion < Omit < PgTableWithColumns < { columns : { adminUserExternalId : PgBuildColumn < "customer_dashboard_user_activity" , PgTextBuilder < [ (...)
, ... (...)
[] ] > , { data : string ; dataType : "string" ; driverParam : string ; enumValues : undefined ; generated : undefined ; hasDefault : false ; hasRuntimeDefault : false ; identity : undefined ; isAutoincrement : false ; isPrimaryKey : false ; name : string ; notNull : false ; tableName : "customer_dashboard_user_activity" ; } , > ; adminUserId : PgBuildColumn < "customer_dashboard_user_activity" , 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 : "customer_dashboard_user_activity" ; } , > ; createdAt : PgBuildColumn < "customer_dashboard_user_activity" , 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 : "customer_dashboard_user_activity" ; } , > ; data : PgBuildColumn < "customer_dashboard_user_activity" , SetNotNull < PgJsonbBuilder > , { data : unknown ; dataType : "object json" ; driverParam : unknown ; enumValues : undefined ; generated : undefined ; hasDefault : false ; hasRuntimeDefault : false ; identity : undefined ; isAutoincrement : false ; isPrimaryKey : false ; name : string ; notNull : true ; tableName : "customer_dashboard_user_activity" ; } , > ; id : PgBuildColumn < "customer_dashboard_user_activity" , 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 : "customer_dashboard_user_activity" ; } , > ; metadata : PgBuildColumn < "customer_dashboard_user_activity" , Set$Type < SetNotNull < (...)
> , { geoLocation ?: ...
; ipAddress ?: ...
; userAgent ?: ...
} , > , { data : { geoLocation ?: ...
; ipAddress ?: ...
; userAgent ?: ...
} ; dataType : "object json" ; driverParam : unknown ; enumValues : undefined ; generated : undefined ; hasDefault : false ; hasRuntimeDefault : false ; identity : undefined ; isAutoincrement : false ; isPrimaryKey : false ; name : string ; notNull : true ; tableName : "customer_dashboard_user_activity" ; } , > ; objectId : PgBuildColumn < "customer_dashboard_user_activity" , PgTextBuilder < [ (...)
, ... (...)
[] ] > , { data : string ; dataType : "string" ; driverParam : string ; enumValues : undefined ; generated : undefined ; hasDefault : false ; hasRuntimeDefault : false ; identity : undefined ; isAutoincrement : false ; isPrimaryKey : false ; name : string ; notNull : false ; tableName : "customer_dashboard_user_activity" ; } , > ; parentId : PgBuildColumn < "customer_dashboard_user_activity" , 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 : "customer_dashboard_user_activity" ; } , > ; type : PgBuildColumn < "customer_dashboard_user_activity" , 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 : "customer_dashboard_user_activity" ; } , > ; userExternalId : PgBuildColumn < "customer_dashboard_user_activity" , PgTextBuilder < [ (...)
, ... (...)
[] ] > , { data : string ; dataType : "string" ; driverParam : string ; enumValues : undefined ; generated : undefined ; hasDefault : false ; hasRuntimeDefault : false ; identity : undefined ; isAutoincrement : false ; isPrimaryKey : false ; name : string ; notNull : false ; tableName : "customer_dashboard_user_activity" ; } , > ; userId : PgBuildColumn < "customer_dashboard_user_activity" , 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 : "customer_dashboard_user_activity" ; } , > ; visibility : PgBuildColumn < "customer_dashboard_user_activity" , 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 : "customer_dashboard_user_activity" ; } , > ; workspaceExternalId : PgBuildColumn < "customer_dashboard_user_activity" , SetNotNull < PgTextBuilder < (...)
> > , { data : string ; dataType : "string" ; driverParam : string ; enumValues : undefined ; generated : undefined ; hasDefault : false ; hasRuntimeDefault : false ; identity : undefined ; isAutoincrement : false ; isPrimaryKey : false ; name : string ; notNull : true ; tableName : "customer_dashboard_user_activity" ; } , > ; workspaceId : PgBuildColumn < "customer_dashboard_user_activity" , 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 : "customer_dashboard_user_activity" ; } , > ; } ; dialect : "pg" ; isAlias : false ; name : "customer_dashboard_user_activity" ; schema : "b2b" ; } , > , "enableRLS" , > , "createdAt" , > [] ; page ?: number ; pageSize ?: number ; parentIds ?: number [] ; topLevelOnly ?: boolean ; types ?: (
| "account.created" | "account.updated" | "apiKey.created" | "apiKey.deleted" | "card.physical.activated" | "card.physical.blocked" | "card.physical.created" | "card.physical.frozen" | "card.physical.unfrozen" | "card.physical.revealedSensitiveInfo" | "card.virtual.blocked" | "card.virtual.created" | "card.virtual.frozen" | "card.virtual.unfrozen" | "card.virtual.revealedSensitiveInfo" | "customer.emailNotificationPreferences.updated" | "customer.internalEmailSubscription.updated" | "customer.logo.updated" | "customer.slackNotificationPreferences.updated" | "customer.smsNotificationPreferences.updated" | "customer.terms.accept" | "customer.workspaceName.updated" | "deposit.memo.created" | "identity.created" | "identity.updated" | "integration.slack.created" | "integration.slack.channelAdded" | "integration.slack.channelRemoved" | "integration.slack.deleted" | "organization.created" | "organization.updated" | "relatedPerson.created" | "relatedPerson.updated" | "relatedPerson.deleted" | "relatedPersonDocument.uploaded" | "relatedPersonDocument.deleted" | "deposit.achDebit.accepted" | "linkedAccount.connected" | "linkedAccount.removed" | "origin.added" | "origin.updated" | "origin.removed" | "payment.usInstant.created" | "payment.ach.created" | "payment.swiftWire.created" | "payment.usWire.created" | "recipient.ach.created" | "payment.externalWallet.created" | "recipient.ach.updated" | "recipient.networkWallet.created" | "recipient.networkWallet.updated" | "recipient.externalWallet.created" | "recipient.externalWallet.updated" | "recipient.swiftWire.created" | "recipient.swiftWire.updated" | "recipient.usWire.created" | "recipient.usWire.updated" | "recipient.usInstant.created" | "recipient.usInstant.updated" | "transaction.metadata.created" | "transaction.metadataFile.created" | "transaction.metadataFile.deleted" | "transactionApproval.requested" | "transactionApproval.approved" | "transactionApproval.declined" | "transactionApproval.cancelled" | "transactionApproval.executed" | "transactionApproval.failed" | "transactionApprovalRule.upserted" | "transactionApprovalRule.disabled" | "transfer.created" | "networkTransfer.created" | "user.addedToWorkspace" | "user.created" | "user.deleted" | "user.disabled" | "user.enabled" | "user.invited" | "user.inviteRevoked" | "user.locked" | "user.loggedIn" | "user.loggedOut" | "user.removedFromWorkspace" | "user.updated" | "user.workspaceRoleChanged" | "user.workspaceStatusChanged" | "user.emailPreferences.updated" | "user.passwordChanged" | "user.mfaReplaced" | "user.passkeyAdded" | "user.passkeyRemoved" | "user.signedOutEverywhere" | "virtualAccount.created" | SecondFactorRejectionType )
[] ; userIds ?: string [] ; visibilities ?: (
"ALL" | "INTERNAL" )
[] ; } , ) : Promise < { ok : true ; value : { hasNext : boolean ; items : (
CustomerDashboardUserActivity & (
ActivityActorRead & { id: number; userName: string; userEmail: string; userIsMember: boolean; typeDescription: string; visibilityDescription: string; parent: { id: number; type: "account.created" | "account.updated" | "apiKey.created" | "apiKey.deleted" | "card.physical.activated" | "card.physical.blocked" | "card.physical.created" | "card.physical.frozen" | "card.physical.unfrozen" | "card.physical.revealedSensitiveInfo" | "card.virtual.blocked" | "card.virtual.created" | "card.virtual.frozen" | "card.virtual.unfrozen" | "card.virtual.revealedSensitiveInfo" | "customer.emailNotificationPreferences.updated" | "customer.internalEmailSubscription.updated" | "customer.logo.updated" | "customer.slackNotificationPreferences.updated" | "customer.smsNotificationPreferences.updated" | "customer.terms.accept" | "customer.workspaceName.updated" | "deposit.memo.created" | "identity.created" | "identity.updated" | "integration.slack.created" | "integration.slack.channelAdded" | "integration.slack.channelRemoved" | "integration.slack.deleted" | "organization.created" | "organization.updated" | "relatedPerson.created" | "relatedPerson.updated" | "relatedPerson.deleted" | "relatedPersonDocument.uploaded" | "relatedPersonDocument.deleted" | "deposit.achDebit.accepted" | "linkedAccount.connected" | "linkedAccount.removed" | "origin.added" | "origin.updated" | "origin.removed" | "payment.usInstant.created" | "payment.ach.created" | "payment.swiftWire.created" | "payment.usWire.created" | "recipient.ach.created" | "payment.externalWallet.created" | "recipient.ach.updated" | "recipient.networkWallet.created" | "recipient.networkWallet.updated" | "recipient.externalWallet.created" | "recipient.externalWallet.updated" | "recipient.swiftWire.created" | "recipient.swiftWire.updated" | "recipient.usWire.created" | "recipient.usWire.updated" | "recipient.usInstant.created" | "recipient.usInstant.updated" | "transaction.metadata.created" | "transaction.metadataFile.created" | "transaction.metadataFile.deleted" | "transactionApproval.requested" | "transactionApproval.approved" | "transactionApproval.declined" | "transactionApproval.cancelled" | "transactionApproval.executed" | "transactionApproval.failed" | "transactionApprovalRule.upserted" | "transactionApprovalRule.disabled" | "transfer.created" | "networkTransfer.created" | "user.addedToWorkspace" | "user.created" | "user.deleted" | "user.disabled" | "user.enabled" | "user.invited" | "user.inviteRevoked" | "user.locked" | "user.loggedIn" | "user.loggedOut" | "user.removedFromWorkspace" | "user.updated" | "user.workspaceRoleChanged" | "user.workspaceStatusChanged" | "user.emailPreferences.updated" | "user.passwordChanged" | "user.mfaReplaced" | "user.passkeyAdded" | "user.passkeyRemoved" | "user.signedOutEverywhere" | "virtualAccount.created" | SecondFactorRejectionType; typeDescription: string; objectId: string | null; } | null; }
)
)
[] ; total : number ; } ; } , >
A customer's dashboard activity feed: what its members did, and what was recorded about them.