@classytic/promo 0.2.2 → 0.2.3
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/dist/index.d.mts +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +8 -6
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as ProgramType, f as StackingMode, g as VoucherStatus, i as DiscountScope, m as TriggerMode, r as DiscountMode, s as ProgramStatus, u as RewardType } from "./constants-CrbSSQG5.mjs";
|
|
2
2
|
import { PluginType as PluginType$1, Repository } from "@classytic/mongokit";
|
|
3
|
-
import { ResolvedTenantConfig, TenantConfig, TenantFieldType } from "@classytic/
|
|
3
|
+
import { ResolvedTenantConfig, TenantConfig, TenantFieldType } from "@classytic/repo-core/tenant";
|
|
4
4
|
import { DomainEvent, DomainEvent as DomainEvent$1, EventHandler, EventTransport, EventTransport as EventTransport$1 } from "@classytic/primitives/events";
|
|
5
5
|
import { ClientSession, Connection, Model } from "mongoose";
|
|
6
6
|
import { z } from "zod";
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { C as VoucherExhaustedError, E as PromoError, S as ValidationError, T as VoucherNotFoundError, _ as ProgramNotFoundError, a as PROGRAM_TYPES, b as RuleNotFoundError, c as TRIGGER_MODES, d as ConcurrencyConflictError, f as DuplicateRedemptionError, g as InvalidTransitionError, h as InsufficientBalanceError, i as PROGRAM_STATUSES, l as VOUCHER_STATUSES, m as GiftCardExhaustedError, n as DISCOUNT_SCOPES, o as REWARD_TYPES, p as EvaluationNotFoundError, r as PROGRAM_MACHINE, s as STACKING_MODES, t as DISCOUNT_MODES, u as CartHashMismatchError, v as ProgramUsageCapExceededError, w as VoucherExpiredError, x as TenantIsolationError, y as RewardNotFoundError } from "./constants-BB5O8zlN.mjs";
|
|
2
2
|
import { Repository, multiTenantPlugin, withTransaction } from "@classytic/mongokit";
|
|
3
|
-
import { resolveTenantConfig } from "@classytic/
|
|
3
|
+
import { resolveTenantConfig } from "@classytic/repo-core/tenant";
|
|
4
4
|
import { createEvent, matchEventPattern } from "@classytic/primitives/events";
|
|
5
5
|
import mongoose, { Schema } from "mongoose";
|
|
6
6
|
import { createHash, randomBytes } from "node:crypto";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@classytic/promo",
|
|
3
|
-
"version": "0.2.
|
|
4
|
-
"description": "Production-grade promotion, coupon, and discount engine for MongoDB
|
|
3
|
+
"version": "0.2.3",
|
|
4
|
+
"description": "Production-grade promotion, coupon, and discount engine for MongoDB — programs, rules, rewards, vouchers, gift cards, buy-x-get-y",
|
|
5
5
|
"author": "Classytic",
|
|
6
6
|
"homepage": "https://www.npmjs.com/package/@classytic/promo",
|
|
7
7
|
"bugs": {
|
|
@@ -57,16 +57,18 @@
|
|
|
57
57
|
"release": "npm run push -- main && npm run release:tag && npm publish"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
|
-
"@classytic/mongokit": ">=3.
|
|
61
|
-
"@classytic/primitives": ">=0.
|
|
60
|
+
"@classytic/mongokit": ">=3.13.0",
|
|
61
|
+
"@classytic/primitives": ">=0.5.0",
|
|
62
|
+
"@classytic/repo-core": ">=0.4.0",
|
|
62
63
|
"mongoose": ">=9.4.1",
|
|
63
64
|
"zod": ">=4.0.0"
|
|
64
65
|
},
|
|
65
66
|
"devDependencies": {
|
|
66
67
|
"@biomejs/biome": "^2.4.9",
|
|
67
68
|
"@classytic/dev-tools": "^0.2.0",
|
|
68
|
-
"@classytic/mongokit": ">=3.
|
|
69
|
-
"@classytic/primitives": ">=0.
|
|
69
|
+
"@classytic/mongokit": ">=3.13.0",
|
|
70
|
+
"@classytic/primitives": ">=0.5.0",
|
|
71
|
+
"@classytic/repo-core": ">=0.4.0",
|
|
70
72
|
"@types/node": "^25.5.0",
|
|
71
73
|
"@vitest/coverage-v8": "^3.2.4",
|
|
72
74
|
"knip": "^6.3.0",
|