MCPcopy Create free account

hub / github.com/be-BOP-io-SA/be-BOP / functions

Functions820 in github.com/be-BOP-io-SA/be-BOP

↓ 82 callersFunctionadminPrefix
()
src/lib/server/admin.ts:3
↓ 70 callersFunctiontoCurrency
( targetCurrency: Currency, amount: number, fromCurrency: Currency )
src/lib/utils/toCurrency.ts:5
↓ 59 callersFunctionset
( obj: T, key: K, // eslint-disable-next-line @typescript-eslint/no-explicit-any value: any // K extends s
src/lib/utils/set.ts:3
↓ 54 callersFunctioncolorPair
(light: string, dark: string)
src/lib/server/theme-assist.ts:43
↓ 49 callersFunctionsend
(message: string)
src/lib/server/locks/handle-messages.ts:102
↓ 45 callersFunctionuserIdentifier
(locals: App.Locals)
src/lib/server/user.ts:57
↓ 40 callersFunctiondeepEquals
(a: unknown, b: unknown)
src/lib/utils/deep-equals.ts:1
↓ 39 callersFunctionuserQuery
(user: UserIdentifier)
src/lib/server/user.ts:75
↓ 35 callersFunctionorderItemPriceUndiscounted
( item: OrderItemInfoNeededForFinalPrice, currency: 'main' | 'priceReference' | 'secondary' | 'accounting' )
src/lib/types/Order.ts:566
↓ 31 callersFunctiondaysAgo
(n: number)
src/lib/server/price-history.spec.ts:13
↓ 29 callersFunctionwithTransaction
( cb: T )
src/lib/server/database.ts:298
↓ 27 callersFunctiontoSatoshis
(amount: number | Price, currency?: Currency)
src/lib/utils/toSatoshis.ts:7
↓ 22 callersFunctionparsePriceAmount
(amount: string, currency: Currency)
src/lib/types/Currency.ts:343
↓ 21 callersFunctiongetS3Client
()
src/lib/server/s3.ts:32
↓ 21 callersFunctionpersistConfigElement
( key: K, value: (typeof runtimeConfig)[K] )
src/lib/server/utils/persistConfig.ts:4
↓ 21 callersFunctionrateLimit
(ip: string | undefined, key: string, max: number, duration: Duration)
src/lib/server/rateLimit.ts:20
↓ 20 callersFunctionsumCurrency
(to: Currency, items: Price[])
src/lib/utils/sumCurrency.ts:10
↓ 19 callersFunctionbip84Address
(key: string, index: number)
src/lib/server/bitcoin-nodeless.ts:71
↓ 19 callersFunctionpaymentMethods
(opts?: { hasPosOptions?: boolean; includePOS?: boolean; includeDisabled?: boolean; totalSatoshis?: number
src/lib/server/payment-methods.ts:34
↓ 17 callersFunctionbip48Address
(m: number, xpubs: string[], index: number)
src/lib/server/bitcoin-nodeless.ts:101
↓ 17 callersFunctioncollectCheckoutFieldValues
( fields: CheckoutFieldConfig[], json: JsonObject )
src/lib/server/checkoutFields.ts:51
↓ 16 callersFunctionaddToCartInDb
( product: Product, quantity: number, params: { user: UserIdentifier; totalQuantity?: boolean; custom
src/lib/server/cart.ts:154
↓ 16 callersFunctiongetOrCreateOrderTab
({ slug }: { slug: string })
src/lib/server/orderTab.ts:64
↓ 16 callersFunctionlogAccountingEvent
( params: Omit<AccountingLog, '_id' | 'createdAt'>, session?: ClientSession )
src/lib/server/accounting-log.ts:11
↓ 16 callersFunctionmakeField
(overrides: Partial<CheckoutFieldConfig> = {})
src/lib/server/checkoutFields.test.ts:6
↓ 15 callersFunctionmatchAndSort
(content: string, regex: RegExp, type: string)
src/lib/server/cms.ts:303
↓ 15 callersFunctionorderItemPrice
( item: OrderItemInfoNeededForFinalPrice, currency: 'main' | 'priceReference' | 'secondary' | 'accounting' )
src/lib/types/Order.ts:542
↓ 15 callersFunctiontypedInclude
(arr: readonly T[], v: V)
src/lib/utils/typedIncludes.ts:1
↓ 14 callersFunctionbitcoinRpc
(command: BitcoinCommand, params: unknown[], wallet?: string)
src/lib/server/bitcoind.ts:47
↓ 14 callersFunctioncartError
( code: CartErrorCode, message: string, params?: Record<string, string | number> )
src/lib/server/cart.ts:40
↓ 14 callersFunctionpojo
(param: T)
src/lib/server/pojo.ts:40
↓ 14 callersFunctionqueueEmail
( to: string, templateKey: EmailTemplateKey, vars: Record<string, string | undefined>, opts?: { session?
src/lib/server/email.ts:97
↓ 13 callersFunctioncmsFromContent
( { desktopContent, mobileContent, employeeContent, forceContentVersion, forceUnsanitizedContent }
src/lib/server/cms.ts:235
↓ 13 callersFunctionget
( dict: T, key: Path, fallback?: Path extends string ? Get<T, Path> : never )
src/lib/utils/get.ts:4
↓ 12 callersFunctioncatalogueValueAt
( segments: BaseSegment[], windows: PublicDiscountWindow[], t: number, priceDigits = 2 )
src/lib/server/price-history.ts:84
↓ 12 callersFunctioncreateOrder
( items: Array<{ _id?: ObjectId; quantity: number; product: Product; customPrice?: { amount: number;
src/lib/server/orders.ts:730
↓ 12 callersFunctionemployeeFromLocals
(locals: { user?: { _id: ObjectId; alias?: string }; })
src/lib/server/accounting-log.ts:5
↓ 12 callersFunctiongenerateId
(name: string, randomize: boolean)
src/lib/utils/generateId.ts:6
↓ 12 callersFunctiongetCartFromDb
(params: { user: UserIdentifier })
src/lib/server/cart.ts:81
↓ 12 callersFunctionzodSlug
()
src/lib/server/zod.ts:8
↓ 11 callersFunctionmergeLocalizedById
( base: ReadonlyArray<T>, overrides: ReadonlyArray<{ id: string } & Partial<T>> | undefined )
src/lib/utils/mergeLocalizedById.ts:19
↓ 11 callersFunctiononOrderPayment
( order: Order, payment: Order['payments'][0], received: Price, params?: { bankTransferNumber?: string;
src/lib/server/orders.ts:144
↓ 11 callersFunctionproductToScheduleId
(productId: Product['_id'])
src/lib/types/Schedule.ts:100
↓ 11 callersFunctionregisterProcessor
(pp: PaymentProcessorDefinition)
src/lib/server/sdk/pp.ts:99
↓ 11 callersFunctionrequireOpenPosSession
()
src/lib/server/pos-sessions.ts:15
↓ 11 callersFunctionresolveSubscriptionDuration
(product: { subscriptionDuration?: SubscriptionDuration | ''; })
src/lib/server/subscriptions.ts:13
↓ 11 callersFunctionsum
(array: number[])
src/lib/utils/sum.ts:1
↓ 10 callersFunctiongeneratePicture
( pictureId: string, opts?: { productId?: string; tag?: { _id: string; type: TagType }; slider?: { _id
src/lib/server/picture.ts:24
↓ 10 callersFunctionisLndConfigured
()
src/lib/server/lnd.ts:18
↓ 10 callersFunctionisOrderFullyPaid
(order: Order, opts?: { includePendingOrders?: boolean })
src/lib/server/orders.ts:123
↓ 10 callersFunctionlndRpc
( path: string, options: { method?: string; headers?: Record<string, string>; body?: string } = {} )
src/lib/server/lnd.ts:64
↓ 10 callersFunctionrefreshAvailableStockInDb
(productId: string, session?: ClientSession)
src/lib/server/product.ts:126
↓ 10 callersFunctionwebhookApiRouteIssue
(rawUrl: string)
src/lib/server/webhook-url-guard.ts:48
↓ 9 callersFunctioncleanDb
()
src/lib/server/test-utils.ts:8
↓ 9 callersFunctiongetConfirmationBlocks
(price: Price)
src/lib/server/getConfirmationBlocks.ts:5
↓ 9 callersFunctiongetPublicS3DownloadLink
( key: string, opts?: { expiresIn?: number; input?: Partial<AWS.GetObjectCommandInput>; } )
src/lib/server/s3.ts:133
↓ 9 callersFunctionisAdminPathDisabled
(path: string, disabledEntries: string[])
src/lib/server/admin-disabled.ts:5
↓ 9 callersFunctionisNostrConfigured
()
src/lib/server/nostr.ts:15
↓ 9 callersFunctionisPublicZeroCriteriaDiscount
( d: Discount )
src/lib/server/discount.ts:383
↓ 9 callersFunctionisUniqueConstraintError
(error: unknown)
src/lib/server/utils/isUniqueConstraintError.ts:3
↓ 9 callersFunctionmapObject
( o: T, iteratee: U )
src/lib/utils/mapObject.ts:14
↓ 8 callersMethodcheckPayment
(payment: Order['payments'][number], order: Order)
src/lib/server/sdk/pp.ts:63
↓ 8 callersFunctionconvertAmountToCurrencyForStorage
( targetCurrency: Currency, amount: number, fromCurrency: Currency )
src/lib/utils/toStorageCurrency.ts:21
↓ 8 callersFunctionfirePaidOrderWebhooks
(order: Order)
src/lib/server/order-paid-webhook.ts:40
↓ 8 callersFunctionisAllowedOnPage
(role: Role, path: string, mode: 'read' | 'write')
src/lib/types/Role.ts:57
↓ 8 callersFunctionminutesAgo
(n: number)
src/lib/server/sdk/contrib/PPBitcoinNodeless.test.ts:12
↓ 8 callersFunctionpicturesForProducts
(productIds: string[])
src/lib/server/picture.ts:249
↓ 8 callersFunctionproductBaseSchema
()
src/routes/(app)/admin[[hash=admin_hash]]/product/product-schema.ts:13
↓ 8 callersFunctionreadUrlState
( url: URL, searchlist: Pick< Searchlist, 'filters' | 'sort' | 'view' | 'prefillSearchterm' | 'initialSe
src/lib/server/searchlist.ts:62
↓ 7 callersFunctionbinaryFindAround
( array: T[], target: T, comparator: (a: T, b: T) => number )
src/lib/utils/binary-find.ts:1
↓ 7 callersFunctioncomputePriceInfo
( items: Array<ItemForPriceInfo>, params: { bebopCountry: CountryAlpha2 | undefined; deliveryFees: Price
src/lib/cart.ts:351
↓ 7 callersFunctiondiscount
Minimal valid public percentage discount; override any field per test.
src/lib/server/discount.test.ts:6
↓ 7 callersFunctionexpectHttpError
(fn: () => unknown, status: number)
src/lib/server/checkoutFields.test.ts:20
↓ 7 callersFunctionformatCurrencyAmount
(amount: number, currency: string)
src/lib/utils/formatCurrencyAmount.ts:12
↓ 7 callersFunctiongetSubscriptionsToRemindViaEmail
( now: Date, reminderWindow: Date )
src/lib/server/locks/subscription-lock.ts:54
↓ 7 callersFunctionmakeOrder
( items: Array<{ product: { _id: string } }>, overrides: Partial<Order> = {} )
src/lib/server/order-paid-webhook.test.ts:26
↓ 7 callersFunctionmakePayment
(over: Partial<Order['payments'][number]> = {})
src/lib/server/sdk/contrib/PPBitcoinNodeless.test.ts:36
↓ 7 callersFunctionmockFetchTxs
(txs: unknown[])
src/lib/server/sdk/contrib/PPBitcoinNodeless.test.ts:14
↓ 7 callersFunctiononOrderPaymentFailed
( order: Order, payment: Order['payments'][0], reason: Extract<OrderPaymentStatus, 'canceled' | 'expired' |
src/lib/server/orders.ts:485
↓ 7 callersFunctionsameDayBookingStatus
( spec: NonNullable<Product['bookingSpec']>, now: Date = new Date() )
src/lib/utils/sameDayBooking.ts:21
↓ 7 callersFunctiontrimSuffix
(s: string, suffix: string)
src/lib/utils/trimSuffix.ts:1
↓ 7 callersFunctionzodNpub
()
src/lib/server/nostr.ts:52
↓ 6 callersFunctionbuildCatalogue
( segments: BaseSegment[], windows: PublicDiscountWindow[], now: number, priceDigits = 2, sinceMs: number
src/lib/server/price-history.ts:109
↓ 6 callersFunctioncall
(opts: CallOpts = {})
src/routes/(app)/product/[id]/price-history/server.test.ts:29
↓ 6 callersFunctioncomputePriceForStorage
(amount: string | number, currency: Currency)
src/lib/types/Currency.ts:368
↓ 6 callersFunctioncomputeVatRate
(params: { productVatProfileId: string | ObjectId | undefined; vatProfiles: Array<{ _id: string | ObjectId
src/lib/utils/vat.ts:8
↓ 6 callersFunctiondeletePicture
(pictureId: Picture['_id'])
src/lib/server/picture.ts:226
↓ 6 callersFunctionextractTagsFromTerm
(term: string)
src/lib/server/searchlist.ts:50
↓ 6 callersFunctionfetchOrderForUser
(orderId: string, params?: { userRoleId?: string })
src/routes/(app)/order/[id]/fetchOrderForUser.ts:15
↓ 6 callersFunctionfilterNullish
(arr: (T | undefined | null)[])
src/lib/utils/fillterNullish.ts:1
↓ 6 callersFunctionfixCurrencyRounding
(amount: number, currency: Currency)
src/lib/utils/fixCurrencyRounding.ts:4
↓ 6 callersFunctiongetSatoshiReceivedNodeless
( address: string, confirmations: number, orderCreatedAt: Date )
src/lib/server/bitcoin-nodeless.ts:159
↓ 6 callersFunctiongetSubscriptionsToNotifyEndViaEmail
(now: Date)
src/lib/server/locks/subscription-lock.ts:80
↓ 6 callersFunctioninsertWebhookProduct
(id: string, apiRoute: string, secret: string)
src/lib/server/order-paid-webhook.test.ts:39
↓ 6 callersFunctionisPhoenixdConfigured
()
src/lib/server/phoenixd.ts:7
↓ 6 callersFunctionisStripeEnabled
()
src/lib/server/stripe.ts:3
↓ 6 callersFunctionlistWallets
()
src/lib/server/bitcoind.ts:98
↓ 6 callersFunctionmerge
( _target: Target, ...sources: Sources )
src/lib/utils/merge.ts:15
↓ 6 callersFunctionomit
( o: T, toOmit: K[] | K )
src/lib/utils/omit.ts:1
↓ 6 callersFunctionorderCurrencyAmounts
( order: Order, pick: (entry: SnapshotEntry) => T | undefined )
src/lib/server/orderVatSnapshot.ts:12
next →1–100 of 820, ranked by callers