@classytic/loyalty 0.5.0 → 0.7.0
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/CHANGELOG.md +367 -231
- package/LICENSE +75 -21
- package/README.md +2 -2
- package/dist/{config-Dtun1duw.d.mts → config-CtkGj3xZ.d.mts} +41 -22
- package/dist/{constants-DkQYkOK1.mjs → constants-DOPBh6kt.mjs} +1 -3
- package/dist/domain/enums/index.d.mts +1 -1
- package/dist/domain/enums/index.mjs +1 -1
- package/dist/events/index.d.mts +2 -2
- package/dist/events/index.mjs +2 -2
- package/dist/{events-DN5_p6T0.mjs → events-BLjg3uLA.mjs} +22 -31
- package/dist/{index-Dngaj21_.d.mts → index-BIPHUsfR.d.mts} +92 -14
- package/dist/index-BIhVuwIZ.d.mts +692 -0
- package/dist/{index-YSsi4e_G.d.mts → index-Cp_sXNpG.d.mts} +35 -4
- package/dist/{index-D_5Ojc2c.d.mts → index-YUFamhDk.d.mts} +7 -17
- package/dist/index.d.mts +60 -29
- package/dist/index.mjs +103 -52
- package/dist/models/index.d.mts +3 -1273
- package/dist/models/index.mjs +2 -2
- package/dist/{models-Ddh62lgO.mjs → models-weWqS5Bc.mjs} +152 -70
- package/dist/notifications/index.d.mts +1 -2
- package/dist/repositories/index.d.mts +1 -1
- package/dist/repositories/index.mjs +1 -1
- package/dist/{repositories-CjWfUlrA.mjs → repositories-DErtHQou.mjs} +198 -69
- package/dist/types/index.d.mts +3 -3
- package/package.json +119 -116
- /package/dist/{index-DMK8a98J.d.mts → index-D_Oe3aDk.d.mts} +0 -0
- /package/dist/{loyalty-events-C38JA3cU.mjs → loyalty-events-DXirolM_.mjs} +0 -0
- /package/dist/{notification.port-CJ9nXj0k.d.mts → notification.port-wY4IKimz.d.mts} +0 -0
package/package.json
CHANGED
|
@@ -1,116 +1,119 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@classytic/loyalty",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Loyalty points, tiers, earning rules, referrals, and redemption engine for MongoDB",
|
|
5
|
-
"author": "Classytic",
|
|
6
|
-
"homepage": "https://www.npmjs.com/package/@classytic/loyalty",
|
|
7
|
-
"bugs": {
|
|
8
|
-
"url": "https://github.com/classytic/loyalty/issues"
|
|
9
|
-
},
|
|
10
|
-
"repository": {
|
|
11
|
-
"type": "git",
|
|
12
|
-
"url": "git+https://github.com/classytic/loyalty.git"
|
|
13
|
-
},
|
|
14
|
-
"publishConfig": {
|
|
15
|
-
"access": "public"
|
|
16
|
-
},
|
|
17
|
-
"type": "module",
|
|
18
|
-
"sideEffects": false,
|
|
19
|
-
"engines": {
|
|
20
|
-
"node": ">=22"
|
|
21
|
-
},
|
|
22
|
-
"exports": {
|
|
23
|
-
".": {
|
|
24
|
-
"types": "./dist/index.d.mts",
|
|
25
|
-
"default": "./dist/index.mjs"
|
|
26
|
-
},
|
|
27
|
-
"./domain/enums": {
|
|
28
|
-
"types": "./dist/domain/enums/index.d.mts",
|
|
29
|
-
"default": "./dist/domain/enums/index.mjs"
|
|
30
|
-
},
|
|
31
|
-
"./models": {
|
|
32
|
-
"types": "./dist/models/index.d.mts",
|
|
33
|
-
"default": "./dist/models/index.mjs"
|
|
34
|
-
},
|
|
35
|
-
"./repositories": {
|
|
36
|
-
"types": "./dist/repositories/index.d.mts",
|
|
37
|
-
"default": "./dist/repositories/index.mjs"
|
|
38
|
-
},
|
|
39
|
-
"./events": {
|
|
40
|
-
"types": "./dist/events/index.d.mts",
|
|
41
|
-
"default": "./dist/events/index.mjs"
|
|
42
|
-
},
|
|
43
|
-
"./types": {
|
|
44
|
-
"types": "./dist/types/index.d.mts",
|
|
45
|
-
"default": "./dist/types/index.mjs"
|
|
46
|
-
},
|
|
47
|
-
"./notifications": {
|
|
48
|
-
"types": "./dist/notifications/index.d.mts",
|
|
49
|
-
"default": "./dist/notifications/index.mjs"
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
|
-
"main": "./dist/index.mjs",
|
|
53
|
-
"types": "./dist/index.d.mts",
|
|
54
|
-
"files": [
|
|
55
|
-
"dist",
|
|
56
|
-
"README.md",
|
|
57
|
-
"CHANGELOG.md",
|
|
58
|
-
"LICENSE"
|
|
59
|
-
],
|
|
60
|
-
"scripts": {
|
|
61
|
-
"build": "tsdown",
|
|
62
|
-
"dev": "tsdown --watch",
|
|
63
|
-
"test": "vitest run --project unit --project integration",
|
|
64
|
-
"test:unit": "vitest run --project unit",
|
|
65
|
-
"test:integration": "vitest run --project integration",
|
|
66
|
-
"test:scenarios": "vitest run --project scenarios",
|
|
67
|
-
"test:all": "vitest run",
|
|
68
|
-
"test:watch": "vitest --project unit --project integration",
|
|
69
|
-
"test:coverage": "vitest run --coverage",
|
|
70
|
-
"typecheck": "tsc --noEmit",
|
|
71
|
-
"lint": "biome check src/ tests/",
|
|
72
|
-
"lint:fix": "biome check --write src/ tests/",
|
|
73
|
-
"format": "biome format --write src/ tests/",
|
|
74
|
-
"check": "biome check --write --unsafe src/ tests/",
|
|
75
|
-
"prepublishOnly": "npm run lint && npm run typecheck && npm run test && npm run build",
|
|
76
|
-
"push": "classytic-push",
|
|
77
|
-
"release:tag": "node -e \"require('child_process').execSync('npm run push -- v'+require('./package.json').version,{stdio:'inherit'})\"",
|
|
78
|
-
"release": "npm run push -- main && npm run release:tag && npm publish"
|
|
79
|
-
},
|
|
80
|
-
"peerDependencies": {
|
|
81
|
-
"@classytic/mongokit": ">=3.
|
|
82
|
-
"@classytic/primitives": ">=0.
|
|
83
|
-
"@classytic/repo-core": ">=0.
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
"@
|
|
90
|
-
"@classytic/
|
|
91
|
-
"@classytic/
|
|
92
|
-
"@classytic/
|
|
93
|
-
"@
|
|
94
|
-
"@
|
|
95
|
-
"
|
|
96
|
-
"
|
|
97
|
-
"
|
|
98
|
-
"
|
|
99
|
-
"
|
|
100
|
-
"
|
|
101
|
-
"
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
"
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
"
|
|
108
|
-
"
|
|
109
|
-
"
|
|
110
|
-
"
|
|
111
|
-
"
|
|
112
|
-
"
|
|
113
|
-
"
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@classytic/loyalty",
|
|
3
|
+
"version": "0.7.0",
|
|
4
|
+
"description": "Loyalty points, tiers, earning rules, referrals, and redemption engine for MongoDB",
|
|
5
|
+
"author": "Classytic",
|
|
6
|
+
"homepage": "https://www.npmjs.com/package/@classytic/loyalty",
|
|
7
|
+
"bugs": {
|
|
8
|
+
"url": "https://github.com/classytic/loyalty/issues"
|
|
9
|
+
},
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "git+https://github.com/classytic/loyalty.git"
|
|
13
|
+
},
|
|
14
|
+
"publishConfig": {
|
|
15
|
+
"access": "public"
|
|
16
|
+
},
|
|
17
|
+
"type": "module",
|
|
18
|
+
"sideEffects": false,
|
|
19
|
+
"engines": {
|
|
20
|
+
"node": ">=22"
|
|
21
|
+
},
|
|
22
|
+
"exports": {
|
|
23
|
+
".": {
|
|
24
|
+
"types": "./dist/index.d.mts",
|
|
25
|
+
"default": "./dist/index.mjs"
|
|
26
|
+
},
|
|
27
|
+
"./domain/enums": {
|
|
28
|
+
"types": "./dist/domain/enums/index.d.mts",
|
|
29
|
+
"default": "./dist/domain/enums/index.mjs"
|
|
30
|
+
},
|
|
31
|
+
"./models": {
|
|
32
|
+
"types": "./dist/models/index.d.mts",
|
|
33
|
+
"default": "./dist/models/index.mjs"
|
|
34
|
+
},
|
|
35
|
+
"./repositories": {
|
|
36
|
+
"types": "./dist/repositories/index.d.mts",
|
|
37
|
+
"default": "./dist/repositories/index.mjs"
|
|
38
|
+
},
|
|
39
|
+
"./events": {
|
|
40
|
+
"types": "./dist/events/index.d.mts",
|
|
41
|
+
"default": "./dist/events/index.mjs"
|
|
42
|
+
},
|
|
43
|
+
"./types": {
|
|
44
|
+
"types": "./dist/types/index.d.mts",
|
|
45
|
+
"default": "./dist/types/index.mjs"
|
|
46
|
+
},
|
|
47
|
+
"./notifications": {
|
|
48
|
+
"types": "./dist/notifications/index.d.mts",
|
|
49
|
+
"default": "./dist/notifications/index.mjs"
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"main": "./dist/index.mjs",
|
|
53
|
+
"types": "./dist/index.d.mts",
|
|
54
|
+
"files": [
|
|
55
|
+
"dist",
|
|
56
|
+
"README.md",
|
|
57
|
+
"CHANGELOG.md",
|
|
58
|
+
"LICENSE"
|
|
59
|
+
],
|
|
60
|
+
"scripts": {
|
|
61
|
+
"build": "tsdown",
|
|
62
|
+
"dev": "tsdown --watch",
|
|
63
|
+
"test": "vitest run --project unit --project integration",
|
|
64
|
+
"test:unit": "vitest run --project unit",
|
|
65
|
+
"test:integration": "vitest run --project integration",
|
|
66
|
+
"test:scenarios": "vitest run --project scenarios",
|
|
67
|
+
"test:all": "vitest run",
|
|
68
|
+
"test:watch": "vitest --project unit --project integration",
|
|
69
|
+
"test:coverage": "vitest run --coverage",
|
|
70
|
+
"typecheck": "tsc --noEmit",
|
|
71
|
+
"lint": "biome check src/ tests/",
|
|
72
|
+
"lint:fix": "biome check --write src/ tests/",
|
|
73
|
+
"format": "biome format --write src/ tests/",
|
|
74
|
+
"check": "biome check --write --unsafe src/ tests/",
|
|
75
|
+
"prepublishOnly": "npm run lint && npm run typecheck && npm run test && npm run build",
|
|
76
|
+
"push": "classytic-push",
|
|
77
|
+
"release:tag": "node -e \"require('child_process').execSync('npm run push -- v'+require('./package.json').version,{stdio:'inherit'})\"",
|
|
78
|
+
"release": "npm run push -- main && npm run release:tag && npm publish"
|
|
79
|
+
},
|
|
80
|
+
"peerDependencies": {
|
|
81
|
+
"@classytic/mongokit": ">=3.38.1",
|
|
82
|
+
"@classytic/primitives": ">=0.27.0",
|
|
83
|
+
"@classytic/repo-core": ">=0.27.1",
|
|
84
|
+
"@classytic/validation": ">=0.5.0",
|
|
85
|
+
"mongoose": ">=9.4.1",
|
|
86
|
+
"zod": ">=4.0.0"
|
|
87
|
+
},
|
|
88
|
+
"devDependencies": {
|
|
89
|
+
"@biomejs/biome": "^2.4.9",
|
|
90
|
+
"@classytic/dev-tools": "^0.2.0",
|
|
91
|
+
"@classytic/mongokit": "^3.38.1",
|
|
92
|
+
"@classytic/primitives": ">=0.27.0",
|
|
93
|
+
"@classytic/repo-core": ">=0.27.1",
|
|
94
|
+
"@classytic/validation": ">=0.5.0",
|
|
95
|
+
"@types/node": "^25.5.0",
|
|
96
|
+
"@vitest/coverage-v8": "^3.2.4",
|
|
97
|
+
"knip": "^6.3.0",
|
|
98
|
+
"mongodb-memory-server": "^10.2.3",
|
|
99
|
+
"mongoose": "^9.4.1",
|
|
100
|
+
"publint": "^0.3.23",
|
|
101
|
+
"tsdown": "^0.22.14",
|
|
102
|
+
"typescript": "^5.7.0",
|
|
103
|
+
"vitest": "^3.0.0",
|
|
104
|
+
"zod": "^4.3.6"
|
|
105
|
+
},
|
|
106
|
+
"keywords": [
|
|
107
|
+
"loyalty",
|
|
108
|
+
"points",
|
|
109
|
+
"rewards",
|
|
110
|
+
"tiers",
|
|
111
|
+
"referral",
|
|
112
|
+
"membership",
|
|
113
|
+
"earning-rules",
|
|
114
|
+
"redemption",
|
|
115
|
+
"mongodb",
|
|
116
|
+
"mongoose"
|
|
117
|
+
],
|
|
118
|
+
"license": "SEE LICENSE IN LICENSE"
|
|
119
|
+
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|