@krizaka/coupons 0.0.0-stage → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,91 @@
1
1
  {
2
2
  "name": "@krizaka/coupons",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.1.1",
4
+ "description": "Discount and credit coupons the admin manages, for every Krizaka product: a code with a window and limits, reserved at checkout under a row lock, confirmed once on the payment event, released when unpaid, refunded; partners for attribution. The database is the source of truth; the provider applies the discount from immutable terms; credit coupons grant capped credits. No database client, no wall clock, no network.",
5
+ "keywords": [
6
+ "krizaka",
7
+ "coupons",
8
+ "promo",
9
+ "discount",
10
+ "credits",
11
+ "partners",
12
+ "postgresql"
13
+ ],
14
+ "homepage": "https://github.com/krizaka/krizaka-ts/tree/main/packages/coupons",
15
+ "bugs": "https://github.com/krizaka/krizaka-ts/issues",
16
+ "repository": {
17
+ "type": "git",
18
+ "url": "git+https://github.com/krizaka/krizaka-ts.git",
19
+ "directory": "packages/coupons"
20
+ },
21
+ "license": "Apache-2.0",
22
+ "author": "Krizaka (https://www.krizaka.com)",
23
+ "type": "module",
24
+ "main": "./dist/index.js",
25
+ "module": "./dist/index.js",
26
+ "types": "./dist/index.d.ts",
27
+ "exports": {
28
+ ".": {
29
+ "types": "./dist/index.d.ts",
30
+ "import": "./dist/index.js"
31
+ },
32
+ "./settings": {
33
+ "types": "./dist/settings.d.ts",
34
+ "import": "./dist/settings.js"
35
+ },
36
+ "./testkit": {
37
+ "types": "./dist/testkit.d.ts",
38
+ "import": "./dist/testkit.js"
39
+ },
40
+ "./package.json": "./package.json"
41
+ },
42
+ "files": [
43
+ "dist",
44
+ "README.md",
45
+ "LICENSE"
46
+ ],
47
+ "sideEffects": false,
48
+ "engines": {
49
+ "node": ">=22"
50
+ },
51
+ "devDependencies": {
52
+ "@types/node": "^22.10.0",
53
+ "@types/pg": "^8.23.1",
54
+ "eslint": "^9.39.0",
55
+ "pg": "^8.23.1",
56
+ "tsup": "^8.5.0",
57
+ "typescript": "^5.9.3",
58
+ "vitest": "^4.1.11",
59
+ "zod": "^4.6.7",
60
+ "@krizaka/audit": "^0.1.4",
61
+ "@krizaka/config": "^0.8.1",
62
+ "@krizaka/credits": "^0.1.1",
63
+ "@krizaka/outbox": "^0.1.1",
64
+ "@krizaka/payments": "^0.4.0",
65
+ "@krizaka/rate-limit": "^0.1.1"
66
+ },
67
+ "dependencies": {
68
+ "@krizaka/db": "^0.2.0",
69
+ "@krizaka/settings": "^0.5.0",
70
+ "@krizaka/time": "^0.1.0"
71
+ },
72
+ "peerDependencies": {
73
+ "vitest": ">=4",
74
+ "zod": ">=3.23"
75
+ },
76
+ "peerDependenciesMeta": {
77
+ "vitest": {
78
+ "optional": true
79
+ },
80
+ "zod": {
81
+ "optional": true
82
+ }
83
+ },
84
+ "scripts": {
85
+ "build": "node -e \"require('node:fs').rmSync('dist',{recursive:true,force:true})\" && tsup",
86
+ "lint": "eslint . --max-warnings 0 && tsc --noEmit",
87
+ "typecheck": "tsc --noEmit",
88
+ "test": "vitest run",
89
+ "check": "pnpm run lint && pnpm run test && pnpm run build"
90
+ }
6
91
  }