@classytic/loyalty 0.2.3 → 0.4.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 +114 -0
- package/README.md +69 -35
- package/dist/{config-96Sl6oNJ.d.mts → config-Dtun1duw.d.mts} +23 -0
- package/dist/events/index.d.mts +1 -1
- package/dist/events/index.mjs +2 -2
- package/dist/{events-BtZOdiPw.mjs → events-DN5_p6T0.mjs} +1 -1
- package/dist/{index-DArT4zkB.d.mts → index-D_5Ojc2c.d.mts} +1 -1
- package/dist/{index-Cl-WGBFJ.d.mts → index-Dngaj21_.d.mts} +19 -5
- package/dist/{index-DWarXsmw.d.mts → index-YSsi4e_G.d.mts} +15 -0
- package/dist/index.d.mts +154 -6
- package/dist/index.mjs +29 -29
- package/dist/{loyalty-events-Cyt9TwX6.mjs → loyalty-events-C38JA3cU.mjs} +4 -2
- package/dist/models/index.d.mts +497 -497
- package/dist/models/index.mjs +1 -1
- package/dist/{models-0_OQIqBy.mjs → models-Ddh62lgO.mjs} +4 -1
- package/dist/repositories/index.d.mts +1 -1
- package/dist/repositories/index.mjs +1 -1
- package/dist/{repositories-BMwidCp-.mjs → repositories-DEwCbLCh.mjs} +325 -160
- package/dist/types/index.d.mts +2 -2
- package/package.json +7 -7
package/dist/types/index.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { _ as TierEvaluationBatch, a as EnrollInput, c as UpdateTierInput, d as EarningResult, f as ExpirationResult, g as TierEvaluation, h as RedemptionValidation, i as EarnPointsInput, l as BalanceSummary, m as PaginatedResult, n as CreateEarningRuleInput, o as LoyaltyContext, p as ListQuery, r as CreateTierInput, s as UpdateEarningRuleInput, t as AdjustPointsInput, u as EarningBreakdown } from "../index-
|
|
2
|
-
import { a as PluginType, c as ResolvedTenant, i as ModelName, l as TenantConfig, n as LoyaltyConfig, o as RepositoryPlugins, s as ResolvedConfig, t as IndexDefinition } from "../config-
|
|
1
|
+
import { _ as TierEvaluationBatch, a as EnrollInput, c as UpdateTierInput, d as EarningResult, f as ExpirationResult, g as TierEvaluation, h as RedemptionValidation, i as EarnPointsInput, l as BalanceSummary, m as PaginatedResult, n as CreateEarningRuleInput, o as LoyaltyContext, p as ListQuery, r as CreateTierInput, s as UpdateEarningRuleInput, t as AdjustPointsInput, u as EarningBreakdown } from "../index-YSsi4e_G.mjs";
|
|
2
|
+
import { a as PluginType, c as ResolvedTenant, i as ModelName, l as TenantConfig, n as LoyaltyConfig, o as RepositoryPlugins, s as ResolvedConfig, t as IndexDefinition } from "../config-Dtun1duw.mjs";
|
|
3
3
|
export { AdjustPointsInput, BalanceSummary, CreateEarningRuleInput, CreateTierInput, EarnPointsInput, EarningBreakdown, EarningResult, EnrollInput, ExpirationResult, IndexDefinition, ListQuery, LoyaltyConfig, LoyaltyContext, ModelName, PaginatedResult, PluginType, RedemptionValidation, RepositoryPlugins, ResolvedConfig, ResolvedTenant, TenantConfig, TierEvaluation, TierEvaluationBatch, UpdateEarningRuleInput, UpdateTierInput };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@classytic/loyalty",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Loyalty points, tiers, earning rules, referrals, and redemption engine for MongoDB",
|
|
5
5
|
"author": "Classytic",
|
|
6
6
|
"homepage": "https://www.npmjs.com/package/@classytic/loyalty",
|
|
@@ -78,18 +78,18 @@
|
|
|
78
78
|
"release": "npm run push -- main && npm run release:tag && npm publish"
|
|
79
79
|
},
|
|
80
80
|
"peerDependencies": {
|
|
81
|
-
"@classytic/mongokit": ">=3.
|
|
82
|
-
"@classytic/primitives": ">=0.
|
|
83
|
-
"@classytic/repo-core": ">=0.
|
|
81
|
+
"@classytic/mongokit": ">=3.18.0",
|
|
82
|
+
"@classytic/primitives": ">=0.9.0",
|
|
83
|
+
"@classytic/repo-core": ">=0.7.0",
|
|
84
84
|
"mongoose": ">=9.4.1",
|
|
85
85
|
"zod": ">=4.0.0"
|
|
86
86
|
},
|
|
87
87
|
"devDependencies": {
|
|
88
88
|
"@biomejs/biome": "^2.4.9",
|
|
89
89
|
"@classytic/dev-tools": "^0.2.0",
|
|
90
|
-
"@classytic/mongokit": "^3.
|
|
91
|
-
"@classytic/primitives": "
|
|
92
|
-
"@classytic/repo-core": "^0.
|
|
90
|
+
"@classytic/mongokit": "^3.18.0",
|
|
91
|
+
"@classytic/primitives": "^0.9.0",
|
|
92
|
+
"@classytic/repo-core": "^0.7.0",
|
|
93
93
|
"@types/node": "^25.5.0",
|
|
94
94
|
"@vitest/coverage-v8": "^3.2.4",
|
|
95
95
|
"knip": "^6.3.0",
|