MCPcopy Create free account

hub / github.com/andyshephard/PricingKit / functions

Functions558 in github.com/andyshephard/PricingKit

↓ 132 callersMethoderror
(message: string, completed?: number, total?: number)
src/lib/utils/ndjson-stream.ts:30
↓ 72 callersFunctioncn
(...inputs: ClassValue[])
src/lib/utils.ts:4
↓ 24 callersFunctioncalculateRegionalPrice
( basePrice: number, regionCode: string, strategy: PricingStrategy, rounding: RoundingMode = 'nearest-
src/lib/google-play/currency.ts:199
↓ 22 callersFunctionmoneyToNumber
(money: Money)
src/lib/google-play/types.ts:435
↓ 21 callersFunctionformatMoney
(money: Money)
src/lib/google-play/types.ts:380
↓ 18 callersFunctionparseMoney
(amount: number, currencyCode: string)
src/lib/google-play/types.ts:408
↓ 12 callersFunctiongetAppleAuthFromCookies
()
src/app/api/apple/auth/route.ts:134
↓ 10 callersFunctiongetTerritoryByAlpha2
( alpha2: string )
src/lib/apple-connect/territories.ts:227
↓ 9 callersFunctionalpha3ToAlpha2
(alpha3: string)
src/lib/apple-connect/territories.ts:221
↓ 9 callersFunctioncalculateBulkPrices
( basePrice: number, regionCodes: string[], strategy: PricingStrategy, rounding: RoundingMode = 'neare
src/lib/google-play/currency.ts:413
↓ 9 callersFunctiongetAuthFromCookies
()
src/app/api/auth/route.ts:269
↓ 9 callersFunctiongetSupportedAppleTerritories
()
src/lib/apple-connect/territories.ts:270
↓ 9 callersFunctiongetTiers
()
src/lib/apple-connect/price-tier-data.ts:22
↓ 8 callersFunctionalpha2ToAlpha3
(alpha2: string)
src/lib/apple-connect/territories.ts:215
↓ 8 callersFunctioncalculateNewPrice
( currentPrice: Money, operation: { type: 'fixed' | 'percentage' | 'round'; value?: number; roundTo?: numb
src/lib/google-play/products.ts:278
↓ 8 callersFunctionfindClosestTierForCurrency
( amount: number, currencyCode: string )
src/lib/apple-connect/price-tier-data.ts:58
↓ 8 callersFunctiongetSortIcon
(key: string)
src/components/products/bulk-pricing-modal.tsx:560
↓ 8 callersFunctionrequestSort
(key: string)
src/components/products/bulk-pricing-modal.tsx:550
↓ 7 callersFunctionappleApiRequest
( credentials: AppleConnectCredentials, endpoint: string, options: { method?: 'GET' | 'POST' | 'PATC
src/lib/apple-connect/client.ts:152
↓ 7 callersFunctioncalculatePriceChange
(oldPrice: number, newPrice: number)
src/lib/google-play/currency.ts:450
↓ 7 callersFunctiongetAppIdForBundleId
( credentials: AppleConnectCredentials )
src/lib/apple-connect/client.ts:331
↓ 7 callersFunctiongetRegionInfo
(code: string, platform: 'google' | 'apple' | null)
src/components/products/pricing-editor.tsx:59
↓ 7 callersFunctiongetSortIcon
(key: string)
src/components/subscriptions/bulk-pricing-modal.tsx:383
↓ 7 callersFunctiongetSortIcon
(key: string)
src/components/subscriptions/apple-subscription-bulk-pricing-modal.tsx:489
↓ 7 callersFunctiongetTerritoryByAlpha3
( alpha3: string )
src/lib/apple-connect/territories.ts:234
↓ 7 callersFunctionrequestSort
(key: string)
src/components/subscriptions/bulk-pricing-modal.tsx:373
↓ 7 callersFunctionrequestSort
(key: string)
src/components/subscriptions/apple-subscription-bulk-pricing-modal.tsx:479
↓ 6 callersFunctiongetNetflixMultiplier
(regionCode: string)
src/lib/conversion-indexes/netflix.ts:1264
↓ 6 callersFunctiongetPriceTiersForCurrency
(currency: string)
src/lib/apple-connect/price-tier-data.ts:107
↓ 6 callersFunctionvalidateAndDecodeSku
(encodedSku: string)
src/lib/validation.ts:117
↓ 5 callersFunctionbaseMoney
(value: number, currency = 'USD')
src/lib/google-play/__tests__/currency.test.ts:456
↓ 5 callersFunctiondecodePriceId
(encodedId: string)
src/lib/apple-connect/products.ts:288
↓ 5 callersFunctionformatPrice
(price: string, currency: string)
src/components/subscriptions/apple-subscription-pricing-editor.tsx:90
↓ 5 callersFunctionformatPrice
(price: string | number, currency: string)
src/components/subscriptions/apple-subscription-bulk-pricing-modal.tsx:65
↓ 5 callersFunctiongetAppleSessionCredentials
( cookieValue: string )
src/lib/apple-connect/client.ts:269
↓ 5 callersFunctiongetAvailableCurrencies
()
src/lib/apple-connect/price-tier-data.ts:84
↓ 5 callersFunctiongetCurrencySymbol
(currencyCode: string)
src/lib/utils/currency.ts:2
↓ 5 callersFunctiongetExchangeRate
( currencyCode: string, dynamicRates?: DynamicExchangeRates )
src/lib/google-play/currency.ts:54
↓ 5 callersFunctiongetExchangeRates
(forceRefresh = false, apiKey?: string)
src/lib/exchange-rates/client.ts:115
↓ 5 callersFunctiongetPlatformRoute
(platform: Platform, path: string = '')
src/lib/utils/platform-routes.ts:6
↓ 5 callersFunctiongetPricingIndexEntry
(regionCode: string)
src/lib/conversion-indexes/ppp.ts:234
↓ 5 callersFunctiongetSubscription
( credentials: ServiceAccountCredentials, packageName: string, productId: string )
src/lib/google-play/subscriptions.ts:65
↓ 5 callersFunctiongetSubscriptionPrices
( credentials: AppleConnectCredentials, subscriptionId: string )
src/lib/apple-connect/subscriptions.ts:308
↓ 5 callersFunctionisSubscriptionActive
(subscription: Subscription, platform: Platform)
src/components/subscriptions/subscriptions-table.tsx:56
↓ 5 callersFunctionrequestSort
(key: SortKey)
src/app/index-checker/page.tsx:177
↓ 5 callersFunctionsortIcon
(key: SortKey)
src/app/index-checker/page.tsx:184
↓ 5 callersFunctionvalidateAndDecodeAppleProductId
(encodedId: string)
src/lib/validation.ts:129
↓ 4 callersFunctiondecodePriceId
( encodedId: string )
src/lib/apple-connect/app-price.ts:60
↓ 4 callersFunctionexecuteWithRateLimit
( tasks: (() => Promise<T>)[], options?: RateLimitOptions )
src/lib/utils/rate-limit.ts:64
↓ 4 callersFunctiongetAppleSubscriptionData
(subscription: Subscription)
src/components/subscriptions/subscriptions-table.tsx:50
↓ 4 callersFunctiongetBigMacMultiplier
(regionCode: string)
src/lib/conversion-indexes/big-mac.ts:73
↓ 4 callersFunctiongetSessionCredentials
(cookieValue: string)
src/lib/google-play/client.ts:284
↓ 4 callersFunctiongetSubscriptionById
( credentials: AppleConnectCredentials, subscriptionId: string )
src/lib/apple-connect/subscriptions.ts:276
↓ 4 callersFunctiongetUsdPriceTiers
()
src/lib/apple-connect/price-tier-data.ts:99
↓ 4 callersFunctionhandleSort
(field: SortField)
src/components/products/products-table.tsx:125
↓ 4 callersFunctionhandleSort
(field: SortField)
src/components/subscriptions/subscriptions-table.tsx:279
↓ 4 callersFunctionisEncryptionAvailable
()
src/lib/encryption.ts:95
↓ 4 callersMethodprogress
(completed: number, total: number, phase?: string)
src/lib/utils/ndjson-stream.ts:28
↓ 4 callersFunctionuseFormField
()
src/components/ui/form.tsx:45
↓ 3 callersFunctionconvertOneTimeProduct
(product: OneTimeProduct)
src/lib/google-play/products.ts:42
↓ 3 callersFunctioncreateNdjsonStream
()
src/lib/utils/ndjson-stream.ts:35
↓ 3 callersFunctiondeleteSubscriptionPrice
( credentials: AppleConnectCredentials, subscriptionPriceId: string )
src/lib/apple-connect/subscriptions.ts:617
↓ 3 callersMethoddone
(data: unknown)
src/lib/utils/ndjson-stream.ts:29
↓ 3 callersFunctionenqueue
(event: StreamEvent)
src/lib/utils/ndjson-stream.ts:44
↓ 3 callersFunctionfetchStatus
()
src/app/dashboard/settings/page.tsx:34
↓ 3 callersFunctionformatPriceChange
(change: number)
src/lib/google-play/currency.ts:456
↓ 3 callersFunctiongetActiveBasePlansCount
(subscription: Subscription)
src/components/subscriptions/subscriptions-table.tsx:100
↓ 3 callersFunctiongetApiKey
* Get the API key from provided value or environment variables
src/lib/exchange-rates/client.ts:35
↓ 3 callersFunctiongetApplePeriod
(subscription: Subscription)
src/components/subscriptions/subscriptions-table.tsx:164
↓ 3 callersFunctiongetBasePrice
(subscription: Subscription)
src/components/subscriptions/subscriptions-table.tsx:113
↓ 3 callersFunctiongetBaseTerritoryForProduct
( credentials: AppleConnectCredentials, inAppPurchaseId: string )
src/lib/apple-connect/products.ts:271
↓ 3 callersFunctiongetEarliestEffectiveDate
()
src/components/subscriptions/apple-subscription-bulk-pricing-modal.tsx:78
↓ 3 callersFunctiongetInAppProduct
( credentials: ServiceAccountCredentials, packageName: string, productId: string )
src/lib/google-play/products.ts:153
↓ 3 callersFunctiongetInAppPurchase
( credentials: AppleConnectCredentials, productId: string )
src/lib/apple-connect/products.ts:236
↓ 3 callersFunctiongetLocalCurrencyForRegion
(regionCode: string)
src/lib/google-play/currency.ts:73
↓ 3 callersFunctiongetRegionCount
(product: InAppProduct)
src/components/products/products-table.tsx:52
↓ 3 callersFunctiongetSubscription
( credentials: AppleConnectCredentials, productId: string )
src/lib/apple-connect/subscriptions.ts:187
↓ 3 callersFunctionisCacheValid
* Check if cached data is still valid
src/lib/exchange-rates/client.ts:71
↓ 3 callersFunctionlistSubscriptionGroups
( credentials: AppleConnectCredentials )
src/lib/apple-connect/subscriptions.ts:18
↓ 3 callersFunctionloadFromDisk
* Load cached exchange rates from disk
src/lib/exchange-rates/client.ts:42
↓ 3 callersFunctiontoAlpha2
(regionCode: string)
src/lib/google-play/currency.ts:30
↓ 3 callersFunctionuseSetActiveApp
()
src/hooks/use-set-active-app.ts:37
↓ 3 callersFunctionuseStreamingMutation
()
src/hooks/use-streaming-mutation.ts:18
↓ 2 callersFunctionapplyPriceChange
(pricePoint: SubscriptionPricePoint, startDate?: string)
src/components/subscriptions/apple-subscription-pricing-editor.tsx:249
↓ 2 callersFunctionbase64UrlEncode
(str: string)
src/lib/apple-connect/client.ts:101
↓ 2 callersFunctionbase64UrlEncode
(str: string)
scripts/apple-jwt.ts:27
↓ 2 callersFunctionbase64UrlEncodeString
(input: string)
src/lib/google-play/client.ts:22
↓ 2 callersFunctionclose
()
src/lib/utils/ndjson-stream.ts:52
↓ 2 callersFunctiondecrypt
(encryptedBase64: string)
src/lib/encryption.ts:68
↓ 2 callersFunctionderiveKey
* Derives a 256-bit AES-GCM key from the ENCRYPTION_KEY environment variable using PBKDF2. * Uses the Web Crypto API for Cloudflare Workers compatibi
src/lib/encryption.ts:11
↓ 2 callersFunctionencodePricePointId
(sourceId: string, territoryCode: string, priceTier: string)
src/lib/apple-connect/products.ts:303
↓ 2 callersFunctionencrypt
(plaintext: string)
src/lib/encryption.ts:44
↓ 2 callersFunctionfetchPaginatedPrices
( credentials: AppleConnectCredentials, basePath: string )
src/lib/apple-connect/app-price.ts:111
↓ 2 callersFunctionfindClosestPricePoint
( targetAmount: number, pricePoints: Array<{ id: string; customerPrice: string }> )
src/lib/apple-connect/products.ts:855
↓ 2 callersFunctionformatBillingPeriod
(duration: string)
src/components/subscriptions/subscriptions-table.tsx:134
↓ 2 callersFunctionformatBillingPeriod
(duration: string)
src/components/subscriptions/base-plan-editor.tsx:54
↓ 2 callersFunctionformatPrice
(value: number, symbol: string)
src/components/landing/conversion-table-demo.tsx:36
↓ 2 callersFunctiongetAppPrices
( credentials: AppleConnectCredentials )
src/lib/apple-connect/app-price.ts:83
↓ 2 callersFunctiongetAppleStatus
(subscription: Subscription)
src/components/subscriptions/subscriptions-table.tsx:169
↓ 2 callersFunctiongetCurrencyForTerritory
(territoryCode: string)
src/lib/apple-connect/territories.ts:241
next →1–100 of 558, ranked by callers