(subscriptions: ReadonlyArray<V2ImportSubscription>)
| 46 | |
| 47 | /** Whether v2 treats the organization as on a paid v1 plan. */ |
| 48 | export const isPaidForV2Import = (subscriptions: ReadonlyArray<V2ImportSubscription>): boolean => |
| 49 | subscriptions.some( |
| 50 | (subscription) => |
| 51 | !V2_IMPORT_FREE_PLAN_IDS.includes(subscription.planId) && subscription.status !== "expired", |
| 52 | ); |
| 53 | |
| 54 | /** The reads the eligibility check makes, each against the system of record. */ |
| 55 | export interface V2ImportSource { |
no outgoing calls
no test coverage detected