- apps/web: public marketing site (Next.js) — hero/§34, what-you-can-sell grid, how-it-works, dev tools, marketplace teaser, /pricing (§32 tiers), /use-cases (§29). - apps/portal: customer portal (Next.js, §31) — per-customer overview, purchases/ receipts, license keys, api keys, github/discord access (+re-check), subscriptions, downloads; anchored on the universal entitlements layer. - packages/coupons: real discount engine (percent/amount/free-trial, window, expiry, max + per-customer redemptions, min-subtotal, product scoping), bigint USDC math, CouponStore + service. - packages/invoices: real invoicing (line items, discount, @settlekit/tax, statuses, HTML/text render), fixed float bug, InvoiceStore + service. - apps/api: /v1/coupons + /v1/invoices routes wired into context + app. - apps/dashboard: Coupons + Invoices pages + nav + client methods. All package + backend builds 0 TS errors; web/portal/dashboard typecheck clean; 590 tests pass (two redesigned coupon/invoice tests updated to the new API).
27 lines
509 B
JSON
27 lines
509 B
JSON
{
|
|
"name": "@settlekit/coupons",
|
|
"version": "0.0.0",
|
|
"type": "module",
|
|
"main": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"types": "./dist/index.d.ts",
|
|
"default": "./dist/index.js"
|
|
}
|
|
},
|
|
"files": ["dist"],
|
|
"scripts": {
|
|
"build": "tsc -b",
|
|
"test": "vitest run"
|
|
},
|
|
"dependencies": {
|
|
"@settlekit/common": "workspace:*"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^20.14.0",
|
|
"typescript": "^5.5.4",
|
|
"vitest": "^2.0.5"
|
|
}
|
|
}
|