MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / isPaidForV2Import

Function isPaidForV2Import

apps/cloud/src/auth/v2-import.ts:48–52  ·  view source on GitHub ↗
(subscriptions: ReadonlyArray<V2ImportSubscription>)

Source from the content-addressed store, hash-verified

46
47/** Whether v2 treats the organization as on a paid v1 plan. */
48export 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. */
55export interface V2ImportSource {

Callers 2

v2-import.test.tsFile · 0.90
v2ImportEligibleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected