Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions components/dashboard/sections/accounts/queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ const dashboardAccountsQueryFields = gql`
slug
policies {
id
publicId
REQUIRE_2FA_FOR_ADMINS
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ const createPendingContributionModalQuery = gql`
}
policies {
id
publicId
REQUIRE_2FA_FOR_ADMINS
}
isTrustedHost
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,19 +82,22 @@ const offPlatformTransactionsQuery = gql`
type
policies {
id
publicId
REQUIRE_2FA_FOR_ADMINS
}
accountingCategories @skip(if: $fetchOnlyRowIds) {
totalCount
nodes {
id
publicId
...AccountingCategorySelectFields
}
}
transactionsImports(status: ACTIVE, type: [PLAID, GOCARDLESS], limit: 100) @skip(if: $fetchOnlyRowIds) {
totalCount
nodes {
id
publicId
source
name
}
Expand All @@ -117,9 +120,11 @@ const offPlatformTransactionsQuery = gql`
limit
nodes {
id
publicId
...TransactionsImportRowFields @skip(if: $fetchOnlyRowIds)
transactionsImport @skip(if: $fetchOnlyRowIds) {
id
publicId
source
name
}
Expand All @@ -132,9 +137,11 @@ const offPlatformTransactionsQuery = gql`
}
transactionsImport(id: $importId) @include(if: $hasImportFilter) {
id
publicId
lastSyncAt
connectedAccount {
id
publicId
}
institutionAccounts {
id
Expand Down
2 changes: 1 addition & 1 deletion components/edit-collective/EditVirtualCardModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ const throttledCall = debounce((searchFunc, variables) => {
type EditVirtualCardModalProps = {
host: Account;
collective?: Account;
virtualCard?: VirtualCard;
virtualCard?: Omit<VirtualCard, 'publicId'>;
virtualCardRequest?: VirtualCardRequest;
onSuccess: (el: React.ReactNode) => void;
onClose: () => void;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const mockAccount = {

const mockProvider: ManualPaymentProvider = {
id: '1',
publicId: '1234567890',
type: ManualPaymentProviderType.OTHER,
name: 'Test Payment Method',
instructions: 'Send {amount} to {account}',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ const mockHost = {

const mockProvider: ManualPaymentProvider = {
id: 'provider-1',
publicId: '1234567890',
type: ManualPaymentProviderType.BANK_TRANSFER,
name: 'Test Bank',
instructions: '<p>Test bank instructions</p>',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ jest.mock('../RichTextEditor', () => ({

const mockProvider: ManualPaymentProvider = {
id: 'provider-1',
publicId: '1234567890',
type: ManualPaymentProviderType.OTHER,
name: 'Test Provider',
instructions: '<p>Test instructions</p>',
Expand Down
7 changes: 6 additions & 1 deletion lib/graphql/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -1163,7 +1163,12 @@ type PlanType {
}

type Policies {
id: String
id: String @deprecated(reason: "2026-02-25: use publicId")

"""
The resource public id (ie: acc_xxxxxxxx)
"""
publicId: String!
EXPENSE_POLICIES: EXPENSE_POLICIES
EXPENSE_AUTHOR_CANNOT_APPROVE: EXPENSE_AUTHOR_CANNOT_APPROVE
REQUIRE_2FA_FOR_ADMINS: Boolean
Expand Down
Loading
Loading