MCPcopy Create free account

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

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

↓ 2 callersFunctionparsePairsFrom
(slugs: string[], qtys: string[])
src/routes/(app)/cart/+page.server.ts:52
↓ 2 callersFunctionpaypalGetCheckout
(checkoutId: string)
src/lib/server/paypal.ts:73
↓ 2 callersFunctionphoenixdCreateInvoice
( satoshis: number, description: string, externalId: string )
src/lib/server/phoenixd.ts:122
↓ 2 callersFunctionphoenixdDetected
(url?: string)
src/lib/server/phoenixd.ts:70
↓ 2 callersFunctionphoenixdLookupInvoice
(paymentHash: string)
src/lib/server/phoenixd.ts:162
↓ 2 callersFunctionpick
( o: T, toPick: K[] )
src/lib/utils/pick.ts:1
↓ 2 callersFunctionpricingPhaseDuration
(value: number, unit: SubscriptionDuration)
src/lib/server/orders.ts:2236
↓ 2 callersFunctionprocessUnprocessedNotifications
()
src/lib/server/locks/nostr-notifications.ts:85
↓ 2 callersFunctionproductPriceWithVariations
( product: Pick<Product, 'name' | '_id' | 'price' | 'variations'>, chosenVariations: Record<string, string>
src/lib/types/Product.ts:198
↓ 2 callersFunctionprojectSettingsForFrontend
(config: typeof runtimeConfig.smtp)
src/routes/(app)/admin[[hash=admin_hash]]/smtp/+page.server.ts:27
↓ 2 callersFunctionrefreshSessionCookie
(cookies: Cookies, secretSessionId: string)
src/lib/server/cookies.ts:8
↓ 2 callersMethodremove
(rangeToRemove: Range)
src/lib/utils/range-list.ts:17
↓ 2 callersFunctionremoveEmpty
(obj: T)
src/lib/utils/removeEmpty.ts:1
↓ 2 callersFunctionremoveUserCarts
(user: UserIdentifier)
src/lib/server/cart.ts:499
↓ 2 callersFunctionresetNostrKeys
()
src/lib/server/nostr.ts:40
↓ 2 callersFunctionresetS3Clients
()
src/lib/server/s3.ts:53
↓ 2 callersFunctionresolveProcessor
(method: PaymentMethod)
src/lib/server/sdk/pp.ts:111
↓ 2 callersFunctionresolveProductsBySlug
( slugs: string[], locals: App.Locals )
src/routes/(app)/cart/+page.server.ts:99
↓ 2 callersFunctionround2
(n: number)
src/lib/server/price-history.ts:59
↓ 2 callersFunctionrun
()
src/lib/server/layout-link-translations.test.ts:28
↓ 2 callersFunctions3GalleryPrefix
(galleryId: string)
src/lib/server/s3.ts:189
↓ 2 callersFunctions3IsConfigured
()
src/lib/server/s3.ts:9
↓ 2 callersFunctions3TagPrefix
(tagId: string)
src/lib/server/s3.ts:186
↓ 2 callersFunctionsameRemote
(s3: Pick<typeof runtimeConfig.s3, 'endpointUrl' | 'publicEndpointUrl'>)
src/routes/(app)/admin[[hash=admin_hash]]/s3/+page.server.ts:79
↓ 2 callersFunctionscheduleToProductId
(scheduleId: string)
src/lib/types/Schedule.ts:104
↓ 2 callersFunctionsearchProducts
( searchlist: Searchlist, state: SearchlistUrlState, locals: App.Locals, vat: VatContext )
src/lib/server/searchlist.ts:199
↓ 2 callersFunctionsendAuthentificationlink
(session: { email?: string; npub?: string })
src/lib/server/sendNotification.ts:76
↓ 2 callersFunctionsendBeaconAndGetNextDate
()
src/lib/server/telemetry-helpers.ts:10
↓ 2 callersFunctionsendEmail
(params: { to: string; subject: string; html: string; bcc?: string; })
src/lib/server/email.ts:68
↓ 2 callersFunctionsha256
(message: string)
src/lib/utils/sha256.ts:2
↓ 2 callersFunctionsimpleListTest
(s3: typeof runtimeConfig.s3)
src/routes/(app)/admin[[hash=admin_hash]]/s3/+page.server.ts:52
↓ 2 callersFunctionsluggifyTab
( posTabGroups: PosTabGroup[], groupIndex: number, tabIndex: number )
src/lib/types/PosTabGroup.ts:24
↓ 2 callersFunctiont
(key: string, params?: Record<string, string | number | undefined>)
src/lib/i18n.ts:96
↓ 2 callersFunctiontimeRangeOverlaps
(s1: number, e1: number, s2: number, e2: number)
src/lib/server/orders.ts:2651
↓ 2 callersFunctiontimeToMinutes
(time: string)
src/lib/types/Schedule.ts:123
↓ 2 callersFunctiontoDarkVariant
Darken a color for dark mode: keep hue, reduce lightness, boost saturation slightly
src/lib/server/theme-assist.ts:113
↓ 2 callersFunctiontotalQuantityInCart
()
src/lib/server/cart.ts:259
↓ 2 callersMethodtryAcquire
(id: string)
src/lib/server/lock.ts:31
↓ 2 callersFunctionuniqBy
(items: T[], itemToKey: (item: T) => K)
src/lib/utils/uniqBy.ts:5
↓ 2 callersFunctionvalidateStockReference
( productId: string, stockReferenceProductId: string )
src/lib/server/product.ts:225
↓ 2 callersFunctionzodIssuesToFieldErrors
(issues: z.ZodIssue[])
src/routes/(app)/admin[[hash=admin_hash]]/bitcoin-nodeless/+page.server.ts:20
↓ 2 callersFunctionzodNsec
()
src/lib/server/nostr.ts:88
↓ 1 callersFunctionGET
({ params, locals, url })
src/routes/(app)/product/[id]/price-history/+server.ts:22
↓ 1 callersFunctionaccountingLogsToCSV
(logs: AccountingLog[])
src/lib/server/accounting-log.ts:79
↓ 1 callersFunctionalertUser
(importType: string | undefined, invalidFiles: string[])
src/routes/(app)/admin[[hash=admin_hash]]/backup/import/+page.server.ts:220
↓ 1 callersFunctionamountOfProductSold
(productId: string)
src/lib/server/product.ts:158
↓ 1 callersFunctionapplyCartDiscount
Percentage discounts round DOWN — a smaller-than-stated discount can be illegal.
src/lib/cart.ts:300
↓ 1 callersFunctionapplyDiscountPercentage
( item: HydratedTabItem, percentage: number | undefined, tagId: string | undefined )
src/routes/(app)/pos/touch/tab/[orderTabSlug]/split/+page.server.ts:87
↓ 1 callersFunctionapplyEnvOverrides
* Apply environment variable overrides to runtime config.
src/lib/server/runtime-config.ts:693
↓ 1 callersFunctionapplyOrderSubscriptionsDiscounts
(order: Order, session: ClientSession)
src/lib/server/orders.ts:2251
↓ 1 callersFunctionapplyPoolDiscountToCartItems
( cartItems: Array<{ productId: string; discountPercentage?: number }>, poolDiscount: OrderTab['discount'] )
src/lib/server/orderTab.ts:112
↓ 1 callersFunctionattemptAddAll
( pairs: SlugQty[], locals: App.Locals, productsBySlug: Map<string, Product>, badges: Map<string, ProductB
src/routes/(app)/cart/+page.server.ts:145
↓ 1 callersFunctionattemptAutoconfigurePhoenixd
()
src/lib/server/phoenixd.ts:80
↓ 1 callersFunctionbitcoinPaymentQrCodeString
( paymentAddress: string, paymentAmount: number, paymentCurrency: Currency )
src/lib/types/Order.ts:516
↓ 1 callersFunctionbtcpayCreateLnInvoice
( request: CreateLightningInvoiceRequest )
src/lib/server/btcpay-server.ts:56
↓ 1 callersFunctionbtcpayGetLnInvoice
(invoiceId: string)
src/lib/server/btcpay-server.ts:85
↓ 1 callersFunctionbuildPricingScheduleSnapshot
( product: Pick<Product, 'pricingSchedule' | 'price'> )
src/lib/server/subscriptions.ts:91
↓ 1 callersFunctionbuildSearchlistViews
(searchlistSlugs: string[], locals: App.Locals)
src/lib/server/cms.ts:835
↓ 1 callersFunctioncalculateNextBeaconDate
()
src/lib/server/telemetry-helpers.ts:5
↓ 1 callersFunctioncanAddToCart
( product: Product, user: UserIdentifier, actionMechanism: 'eshop' | 'nostr' | 'pos' )
src/lib/server/cart.ts:113
↓ 1 callersFunctioncleanup
()
src/lib/server/locks/cleanup-lock.ts:13
↓ 1 callersFunctionclosePosSession
(params: { sessionId: ObjectId; cashClosing: { amount: number; currency: Currency }; outcomes: Array<{ cate
src/lib/server/pos-sessions.ts:163
↓ 1 callersFunctioncloseRelayPool
()
src/lib/server/locks/nostr-notifications.ts:28
↓ 1 callersFunctioncomputeCartPrice
( items: ItemForPriceInfo[], params: { freeUnits?: Record<string, number>; deliveryFees?: Price; } )
src/lib/cart.ts:82
↓ 1 callersFunctioncomputeDeliveryFeesHt
Resolve delivery fees as a VAT-excluded (HT) Price, back-extracting from TTC if needed.
src/lib/cart.ts:271
↓ 1 callersFunctioncomputeDiscountSavings
Compute savings for one discount applied to all eligible items in the cart
src/lib/server/discount.ts:148
↓ 1 callersFunctioncreateDiscount
(params: { discountedProductId: string; subscriptionProductId: string; percentage: number; })
src/lib/server/test-utils.ts:52
↓ 1 callersFunctioncreatePaidSubscription
(subscriptionProductId: string, user: UserIdentifier)
src/lib/server/test-utils.ts:36
↓ 1 callersFunctioncreateSuperAdminUserInDb
(login: string, password: string)
src/lib/server/user.ts:14
↓ 1 callersFunctioncreateWallet
(name: string)
src/lib/server/bitcoind.ts:115
↓ 1 callersFunctioncurrentWallet
()
src/lib/server/bitcoind.ts:110
↓ 1 callersFunctiondebounce
( fn: T, wait: number, opts?: { leading?: boolean } )
src/lib/utils/debounce.ts:3
↓ 1 callersFunctiondefaultPosTabGroups
()
src/lib/types/PosTabGroup.ts:11
↓ 1 callersFunctiondefaultTab
()
src/routes/(app)/pos/touch/+page.server.ts:5
↓ 1 callersFunctiondetectNetworkFromXpubs
(xpubs: string[])
src/lib/server/bitcoin-nodeless.ts:90
↓ 1 callersFunctiondumpWalletInfo
(wallet: string)
src/lib/server/bitcoind.ts:286
↓ 1 callersFunctionensureDefaultCmsPages
()
src/routes/(app)/admin[[hash=admin_hash]]/+layout.server.ts:38
↓ 1 callersFunctionensureDiscountWithinBounds
* 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 callersFunctionescapeForRegex
(value: string)
src/lib/utils/escapeForRegex.ts:1
↓ 1 callersFunctionextractAnalyticsHostnames
(snippet: string | undefined | null)
src/lib/server/analytics-hostnames.ts:9
↓ 1 callersFunctionfetchApplicableDiscount
( productId: string, productTagIds: string[], userSubscriptionIds: string[], user?: UserIdentifier | null
src/routes/(app)/product/[id]/+page.server.ts:30
↓ 1 callersFunctionfetchProduct
( productId: string, language: App.Locals['language'] )
src/routes/(app)/product/[id]/+page.server.ts:79
↓ 1 callersFunctionfetchProductPictures
(productId: string)
src/routes/(app)/product/[id]/+page.server.ts:182
↓ 1 callersFunctionfetchProductSchedule
(productId: string)
src/routes/(app)/product/[id]/+page.server.ts:195
↓ 1 callersFunctionfetchProductScheduleEvents
(productId: string)
src/routes/(app)/product/[id]/+page.server.ts:200
↓ 1 callersFunctionfetchUserSubscriptions
(userIdentifier: UserIdentifier)
src/routes/(app)/product/[id]/+page.server.ts:186
↓ 1 callersFunctionfindActivePromoDiscount
(promoCode: string)
src/lib/server/discount.ts:219
↓ 1 callersFunctionfindMatchingTapToPayOrderStripe
( order: Order, paymentId: ObjectId )
src/lib/server/locks/order-lock.ts:16
↓ 1 callersFunctionflatEntries
* Convert {a: {b: 1}, c: [0]} to [['a[b]', 1], ['c[0]', 0]]
src/lib/utils/toUrlEncoded.ts:4
↓ 1 callersFunctionformatCart
( cart: WithId<Cart> | null, locals: Pick<App.Locals, 'language'> )
src/routes/(app)/pos/session/formatCartOrder.ts:48
↓ 1 callersFunctiongenCollection
()
src/lib/server/database.ts:82
↓ 1 callersFunctiongenerateCss
(themeData: ThemeData)
src/routes/style/variables.css/+server.ts:64
↓ 1 callersFunctiongenerateDerivationIndex
()
src/lib/server/bitcoin-nodeless.ts:125
↓ 1 callersFunctiongenerateOrderNumber
(session?: ClientSession)
src/lib/server/orders.ts:109
↓ 1 callersFunctiongeneratePaymentInfo
(params: { method: PaymentMethod; orderId: string; orderNumber: number; toPay: Price; paymentId: ObjectId
src/lib/server/orders.ts:1945
↓ 1 callersFunctiongenerateSubscriptionNumber
()
src/lib/server/subscriptions.ts:113
↓ 1 callersFunctiongenerateThemeData
(params: { name: string; primaryColor: string; secondaryColor: string; mainFont: string; secondaryFont?:
src/lib/server/theme-assist.ts:133
↓ 1 callersFunctiongenerateVariables
(themeData: ThemeData)
src/routes/style/variables.css/+server.ts:32
↓ 1 callersFunctiongenerateXTicket
(params: { sessionId: ObjectId; user: PosSessionUser; })
src/lib/server/pos-sessions.ts:240
↓ 1 callersFunctiongenerateXTicketText
(session: PosSession, dailyIncomes: PosSessionIncome[])
src/lib/server/pos-sessions.ts:356
← previousnext →301–400 of 820, ranked by callers