Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/be-BOP-io-SA/be-BOP
/ functions
Functions
820 in github.com/be-BOP-io-SA/be-BOP
⨍
Functions
820
◇
Types & classes
110
↓ 2 callers
Function
parsePairsFrom
(slugs: string[], qtys: string[])
src/routes/(app)/cart/+page.server.ts:52
↓ 2 callers
Function
paypalGetCheckout
(checkoutId: string)
src/lib/server/paypal.ts:73
↓ 2 callers
Function
phoenixdCreateInvoice
( satoshis: number, description: string, externalId: string )
src/lib/server/phoenixd.ts:122
↓ 2 callers
Function
phoenixdDetected
(url?: string)
src/lib/server/phoenixd.ts:70
↓ 2 callers
Function
phoenixdLookupInvoice
(paymentHash: string)
src/lib/server/phoenixd.ts:162
↓ 2 callers
Function
pick
( o: T, toPick: K[] )
src/lib/utils/pick.ts:1
↓ 2 callers
Function
pricingPhaseDuration
(value: number, unit: SubscriptionDuration)
src/lib/server/orders.ts:2236
↓ 2 callers
Function
processUnprocessedNotifications
()
src/lib/server/locks/nostr-notifications.ts:85
↓ 2 callers
Function
productPriceWithVariations
( product: Pick<Product, 'name' | '_id' | 'price' | 'variations'>, chosenVariations: Record<string, string>
src/lib/types/Product.ts:198
↓ 2 callers
Function
projectSettingsForFrontend
(config: typeof runtimeConfig.smtp)
src/routes/(app)/admin[[hash=admin_hash]]/smtp/+page.server.ts:27
↓ 2 callers
Function
refreshSessionCookie
(cookies: Cookies, secretSessionId: string)
src/lib/server/cookies.ts:8
↓ 2 callers
Method
remove
(rangeToRemove: Range)
src/lib/utils/range-list.ts:17
↓ 2 callers
Function
removeEmpty
(obj: T)
src/lib/utils/removeEmpty.ts:1
↓ 2 callers
Function
removeUserCarts
(user: UserIdentifier)
src/lib/server/cart.ts:499
↓ 2 callers
Function
resetNostrKeys
()
src/lib/server/nostr.ts:40
↓ 2 callers
Function
resetS3Clients
()
src/lib/server/s3.ts:53
↓ 2 callers
Function
resolveProcessor
(method: PaymentMethod)
src/lib/server/sdk/pp.ts:111
↓ 2 callers
Function
resolveProductsBySlug
( slugs: string[], locals: App.Locals )
src/routes/(app)/cart/+page.server.ts:99
↓ 2 callers
Function
round2
(n: number)
src/lib/server/price-history.ts:59
↓ 2 callers
Function
run
()
src/lib/server/layout-link-translations.test.ts:28
↓ 2 callers
Function
s3GalleryPrefix
(galleryId: string)
src/lib/server/s3.ts:189
↓ 2 callers
Function
s3IsConfigured
()
src/lib/server/s3.ts:9
↓ 2 callers
Function
s3TagPrefix
(tagId: string)
src/lib/server/s3.ts:186
↓ 2 callers
Function
sameRemote
(s3: Pick<typeof runtimeConfig.s3, 'endpointUrl' | 'publicEndpointUrl'>)
src/routes/(app)/admin[[hash=admin_hash]]/s3/+page.server.ts:79
↓ 2 callers
Function
scheduleToProductId
(scheduleId: string)
src/lib/types/Schedule.ts:104
↓ 2 callers
Function
searchProducts
( searchlist: Searchlist, state: SearchlistUrlState, locals: App.Locals, vat: VatContext )
src/lib/server/searchlist.ts:199
↓ 2 callers
Function
sendAuthentificationlink
(session: { email?: string; npub?: string })
src/lib/server/sendNotification.ts:76
↓ 2 callers
Function
sendBeaconAndGetNextDate
()
src/lib/server/telemetry-helpers.ts:10
↓ 2 callers
Function
sendEmail
(params: { to: string; subject: string; html: string; bcc?: string; })
src/lib/server/email.ts:68
↓ 2 callers
Function
sha256
(message: string)
src/lib/utils/sha256.ts:2
↓ 2 callers
Function
simpleListTest
(s3: typeof runtimeConfig.s3)
src/routes/(app)/admin[[hash=admin_hash]]/s3/+page.server.ts:52
↓ 2 callers
Function
sluggifyTab
( posTabGroups: PosTabGroup[], groupIndex: number, tabIndex: number )
src/lib/types/PosTabGroup.ts:24
↓ 2 callers
Function
t
(key: string, params?: Record<string, string | number | undefined>)
src/lib/i18n.ts:96
↓ 2 callers
Function
timeRangeOverlaps
(s1: number, e1: number, s2: number, e2: number)
src/lib/server/orders.ts:2651
↓ 2 callers
Function
timeToMinutes
(time: string)
src/lib/types/Schedule.ts:123
↓ 2 callers
Function
toDarkVariant
Darken a color for dark mode: keep hue, reduce lightness, boost saturation slightly
src/lib/server/theme-assist.ts:113
↓ 2 callers
Function
totalQuantityInCart
()
src/lib/server/cart.ts:259
↓ 2 callers
Method
tryAcquire
(id: string)
src/lib/server/lock.ts:31
↓ 2 callers
Function
uniqBy
(items: T[], itemToKey: (item: T) => K)
src/lib/utils/uniqBy.ts:5
↓ 2 callers
Function
validateStockReference
( productId: string, stockReferenceProductId: string )
src/lib/server/product.ts:225
↓ 2 callers
Function
zodIssuesToFieldErrors
(issues: z.ZodIssue[])
src/routes/(app)/admin[[hash=admin_hash]]/bitcoin-nodeless/+page.server.ts:20
↓ 2 callers
Function
zodNsec
()
src/lib/server/nostr.ts:88
↓ 1 callers
Function
GET
({ params, locals, url })
src/routes/(app)/product/[id]/price-history/+server.ts:22
↓ 1 callers
Function
accountingLogsToCSV
(logs: AccountingLog[])
src/lib/server/accounting-log.ts:79
↓ 1 callers
Function
alertUser
(importType: string | undefined, invalidFiles: string[])
src/routes/(app)/admin[[hash=admin_hash]]/backup/import/+page.server.ts:220
↓ 1 callers
Function
amountOfProductSold
(productId: string)
src/lib/server/product.ts:158
↓ 1 callers
Function
applyCartDiscount
Percentage discounts round DOWN — a smaller-than-stated discount can be illegal.
src/lib/cart.ts:300
↓ 1 callers
Function
applyDiscountPercentage
( item: HydratedTabItem, percentage: number | undefined, tagId: string | undefined )
src/routes/(app)/pos/touch/tab/[orderTabSlug]/split/+page.server.ts:87
↓ 1 callers
Function
applyEnvOverrides
* Apply environment variable overrides to runtime config.
src/lib/server/runtime-config.ts:693
↓ 1 callers
Function
applyOrderSubscriptionsDiscounts
(order: Order, session: ClientSession)
src/lib/server/orders.ts:2251
↓ 1 callers
Function
applyPoolDiscountToCartItems
( cartItems: Array<{ productId: string; discountPercentage?: number }>, poolDiscount: OrderTab['discount'] )
src/lib/server/orderTab.ts:112
↓ 1 callers
Function
attemptAddAll
( pairs: SlugQty[], locals: App.Locals, productsBySlug: Map<string, Product>, badges: Map<string, ProductB
src/routes/(app)/cart/+page.server.ts:145
↓ 1 callers
Function
attemptAutoconfigurePhoenixd
()
src/lib/server/phoenixd.ts:80
↓ 1 callers
Function
bitcoinPaymentQrCodeString
( paymentAddress: string, paymentAmount: number, paymentCurrency: Currency )
src/lib/types/Order.ts:516
↓ 1 callers
Function
btcpayCreateLnInvoice
( request: CreateLightningInvoiceRequest )
src/lib/server/btcpay-server.ts:56
↓ 1 callers
Function
btcpayGetLnInvoice
(invoiceId: string)
src/lib/server/btcpay-server.ts:85
↓ 1 callers
Function
buildPricingScheduleSnapshot
( product: Pick<Product, 'pricingSchedule' | 'price'> )
src/lib/server/subscriptions.ts:91
↓ 1 callers
Function
buildSearchlistViews
(searchlistSlugs: string[], locals: App.Locals)
src/lib/server/cms.ts:835
↓ 1 callers
Function
calculateNextBeaconDate
()
src/lib/server/telemetry-helpers.ts:5
↓ 1 callers
Function
canAddToCart
( product: Product, user: UserIdentifier, actionMechanism: 'eshop' | 'nostr' | 'pos' )
src/lib/server/cart.ts:113
↓ 1 callers
Function
cleanup
()
src/lib/server/locks/cleanup-lock.ts:13
↓ 1 callers
Function
closePosSession
(params: { sessionId: ObjectId; cashClosing: { amount: number; currency: Currency }; outcomes: Array<{ cate
src/lib/server/pos-sessions.ts:163
↓ 1 callers
Function
closeRelayPool
()
src/lib/server/locks/nostr-notifications.ts:28
↓ 1 callers
Function
computeCartPrice
( items: ItemForPriceInfo[], params: { freeUnits?: Record<string, number>; deliveryFees?: Price; } )
src/lib/cart.ts:82
↓ 1 callers
Function
computeDeliveryFeesHt
Resolve delivery fees as a VAT-excluded (HT) Price, back-extracting from TTC if needed.
src/lib/cart.ts:271
↓ 1 callers
Function
computeDiscountSavings
Compute savings for one discount applied to all eligible items in the cart
src/lib/server/discount.ts:148
↓ 1 callers
Function
createDiscount
(params: { discountedProductId: string; subscriptionProductId: string; percentage: number; })
src/lib/server/test-utils.ts:52
↓ 1 callers
Function
createPaidSubscription
(subscriptionProductId: string, user: UserIdentifier)
src/lib/server/test-utils.ts:36
↓ 1 callers
Function
createSuperAdminUserInDb
(login: string, password: string)
src/lib/server/user.ts:14
↓ 1 callers
Function
createWallet
(name: string)
src/lib/server/bitcoind.ts:115
↓ 1 callers
Function
currentWallet
()
src/lib/server/bitcoind.ts:110
↓ 1 callers
Function
debounce
( fn: T, wait: number, opts?: { leading?: boolean } )
src/lib/utils/debounce.ts:3
↓ 1 callers
Function
defaultPosTabGroups
()
src/lib/types/PosTabGroup.ts:11
↓ 1 callers
Function
defaultTab
()
src/routes/(app)/pos/touch/+page.server.ts:5
↓ 1 callers
Function
detectNetworkFromXpubs
(xpubs: string[])
src/lib/server/bitcoin-nodeless.ts:90
↓ 1 callers
Function
dumpWalletInfo
(wallet: string)
src/lib/server/bitcoind.ts:286
↓ 1 callers
Function
ensureDefaultCmsPages
()
src/routes/(app)/admin[[hash=admin_hash]]/+layout.server.ts:38
↓ 1 callers
Function
ensureDiscountWithinBounds
* Ensures that a discount is within the bounds of the cart total. * * @param discount * @param cartTotal the max amount when the discount type is "
src/lib/cart.ts:252
↓ 1 callers
Function
escapeForRegex
(value: string)
src/lib/utils/escapeForRegex.ts:1
↓ 1 callers
Function
extractAnalyticsHostnames
(snippet: string | undefined | null)
src/lib/server/analytics-hostnames.ts:9
↓ 1 callers
Function
fetchApplicableDiscount
( productId: string, productTagIds: string[], userSubscriptionIds: string[], user?: UserIdentifier | null
src/routes/(app)/product/[id]/+page.server.ts:30
↓ 1 callers
Function
fetchProduct
( productId: string, language: App.Locals['language'] )
src/routes/(app)/product/[id]/+page.server.ts:79
↓ 1 callers
Function
fetchProductPictures
(productId: string)
src/routes/(app)/product/[id]/+page.server.ts:182
↓ 1 callers
Function
fetchProductSchedule
(productId: string)
src/routes/(app)/product/[id]/+page.server.ts:195
↓ 1 callers
Function
fetchProductScheduleEvents
(productId: string)
src/routes/(app)/product/[id]/+page.server.ts:200
↓ 1 callers
Function
fetchUserSubscriptions
(userIdentifier: UserIdentifier)
src/routes/(app)/product/[id]/+page.server.ts:186
↓ 1 callers
Function
findActivePromoDiscount
(promoCode: string)
src/lib/server/discount.ts:219
↓ 1 callers
Function
findMatchingTapToPayOrderStripe
( order: Order, paymentId: ObjectId )
src/lib/server/locks/order-lock.ts:16
↓ 1 callers
Function
flatEntries
* Convert {a: {b: 1}, c: [0]} to [['a[b]', 1], ['c[0]', 0]]
src/lib/utils/toUrlEncoded.ts:4
↓ 1 callers
Function
formatCart
( cart: WithId<Cart> | null, locals: Pick<App.Locals, 'language'> )
src/routes/(app)/pos/session/formatCartOrder.ts:48
↓ 1 callers
Function
genCollection
()
src/lib/server/database.ts:82
↓ 1 callers
Function
generateCss
(themeData: ThemeData)
src/routes/style/variables.css/+server.ts:64
↓ 1 callers
Function
generateDerivationIndex
()
src/lib/server/bitcoin-nodeless.ts:125
↓ 1 callers
Function
generateOrderNumber
(session?: ClientSession)
src/lib/server/orders.ts:109
↓ 1 callers
Function
generatePaymentInfo
(params: { method: PaymentMethod; orderId: string; orderNumber: number; toPay: Price; paymentId: ObjectId
src/lib/server/orders.ts:1945
↓ 1 callers
Function
generateSubscriptionNumber
()
src/lib/server/subscriptions.ts:113
↓ 1 callers
Function
generateThemeData
(params: { name: string; primaryColor: string; secondaryColor: string; mainFont: string; secondaryFont?:
src/lib/server/theme-assist.ts:133
↓ 1 callers
Function
generateVariables
(themeData: ThemeData)
src/routes/style/variables.css/+server.ts:32
↓ 1 callers
Function
generateXTicket
(params: { sessionId: ObjectId; user: PosSessionUser; })
src/lib/server/pos-sessions.ts:240
↓ 1 callers
Function
generateXTicketText
(session: PosSession, dailyIncomes: PosSessionIncome[])
src/lib/server/pos-sessions.ts:356
← previous
next →
301–400 of 820, ranked by callers