@zonastery/bursar 0.0.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/README.md +375 -0
- package/dist/allowance.d.ts +48 -0
- package/dist/allowance.d.ts.map +1 -0
- package/dist/allowance.js +140 -0
- package/dist/allowance.js.map +1 -0
- package/dist/breakdown.d.ts +27 -0
- package/dist/breakdown.d.ts.map +1 -0
- package/dist/breakdown.js +27 -0
- package/dist/breakdown.js.map +1 -0
- package/dist/config.d.ts +23 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +278 -0
- package/dist/config.js.map +1 -0
- package/dist/engine.d.ts +44 -0
- package/dist/engine.d.ts.map +1 -0
- package/dist/engine.js +172 -0
- package/dist/engine.js.map +1 -0
- package/dist/errors.d.ts +55 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +55 -0
- package/dist/errors.js.map +1 -0
- package/dist/expr.d.ts +65 -0
- package/dist/expr.d.ts.map +1 -0
- package/dist/expr.js +681 -0
- package/dist/expr.js.map +1 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +14 -0
- package/dist/index.js.map +1 -0
- package/dist/load-pricing-file.d.ts +12 -0
- package/dist/load-pricing-file.d.ts.map +1 -0
- package/dist/load-pricing-file.js +45 -0
- package/dist/load-pricing-file.js.map +1 -0
- package/dist/manager.d.ts +421 -0
- package/dist/manager.d.ts.map +1 -0
- package/dist/manager.js +1112 -0
- package/dist/manager.js.map +1 -0
- package/dist/metrics.d.ts +19 -0
- package/dist/metrics.d.ts.map +1 -0
- package/dist/metrics.js +2 -0
- package/dist/metrics.js.map +1 -0
- package/dist/node.d.ts +15 -0
- package/dist/node.d.ts.map +1 -0
- package/dist/node.js +15 -0
- package/dist/node.js.map +1 -0
- package/dist/stores/credit-store.d.ts +171 -0
- package/dist/stores/credit-store.d.ts.map +1 -0
- package/dist/stores/credit-store.js +52 -0
- package/dist/stores/credit-store.js.map +1 -0
- package/dist/stores/events.d.ts +63 -0
- package/dist/stores/events.d.ts.map +1 -0
- package/dist/stores/events.js +68 -0
- package/dist/stores/events.js.map +1 -0
- package/dist/stores/memory-store.d.ts +178 -0
- package/dist/stores/memory-store.d.ts.map +1 -0
- package/dist/stores/memory-store.js +1833 -0
- package/dist/stores/memory-store.js.map +1 -0
- package/dist/stores/postgres-store.d.ts +95 -0
- package/dist/stores/postgres-store.d.ts.map +1 -0
- package/dist/stores/postgres-store.js +872 -0
- package/dist/stores/postgres-store.js.map +1 -0
- package/dist/stores/supabase-store.d.ts +76 -0
- package/dist/stores/supabase-store.d.ts.map +1 -0
- package/dist/stores/supabase-store.js +865 -0
- package/dist/stores/supabase-store.js.map +1 -0
- package/dist/types.d.ts +462 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +2 -0
- package/dist/types.js.map +1 -0
- package/package.json +82 -0
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import Decimal from "decimal.js";
|
|
2
|
+
import type { AddCreditsResult, AddTeamMemberResult, AggregateStats, AllowanceResult, AvailableResult, BalanceResult, CapCheckResult, CheckFeatureResult, CreateTeamResult, CreditMetadata, DailySpendRow, DeductionResult, DeductWithAllowanceOptions, FeatureLimitResult, GetUserPlanResult, LeaseResult, ListTransactionsOptions, ListUsageEventsOptions, PaginatedTransactions, PricingConfigData, PricingConfigHistoryItem, PricingConfigResult, RefundResult, ReleaseResult, SetUserPlanResult, SetupResult, SpendByModelRow, SpendByUserRow, SpendCap, SweepResult, TeamBalanceResult, TeamDeductionResult, TeamMember, TierBalancesResult, TopUserRow } from "../types.js";
|
|
3
|
+
import { CreditStore } from "./credit-store.js";
|
|
4
|
+
import type { CreateLeaseOptions, SettleLeaseOptions } from "./credit-store.js";
|
|
5
|
+
/**
|
|
6
|
+
* Credit store backed by in-memory maps.
|
|
7
|
+
* Zero dependencies. Useful for unit testing and local development.
|
|
8
|
+
*
|
|
9
|
+
* Money is exact `Decimal` everywhere (contract §1). Because JavaScript is
|
|
10
|
+
* single-threaded, every mutating method performs its read-modify-write
|
|
11
|
+
* **synchronously** (no `await` between reading a balance and writing it back),
|
|
12
|
+
* so a `Promise.all` of concurrent deductions cannot interleave and double-spend
|
|
13
|
+
* (C2). A test-only injectable clock is exposed for deterministic time tests.
|
|
14
|
+
*/
|
|
15
|
+
export declare class MemoryStore extends CreditStore {
|
|
16
|
+
private balances;
|
|
17
|
+
private lifetime;
|
|
18
|
+
private transactions;
|
|
19
|
+
private reservations;
|
|
20
|
+
private pricingVersion;
|
|
21
|
+
private pricingLabel;
|
|
22
|
+
private pricingHistory;
|
|
23
|
+
private planDefinitions;
|
|
24
|
+
private tierDefinitions;
|
|
25
|
+
private tierBalances;
|
|
26
|
+
private userPlanMap;
|
|
27
|
+
/** Timestamp each user's CURRENT plan was assigned — anchor for WS9 non-calendar periods. */
|
|
28
|
+
private userPlanAssignedAt;
|
|
29
|
+
private usageWindows;
|
|
30
|
+
private spendCaps;
|
|
31
|
+
private teams;
|
|
32
|
+
private teamMembers;
|
|
33
|
+
/**
|
|
34
|
+
* Injectable clock for deterministic time-dependent tests. Defaults to the
|
|
35
|
+
* real wall clock. Tests set this to a fixed `Date` to avoid `setTimeout`
|
|
36
|
+
* sleeps (contract §8).
|
|
37
|
+
*/
|
|
38
|
+
private clock;
|
|
39
|
+
/** Override the clock used for all time comparisons (test-only). */
|
|
40
|
+
setClock(clock: () => Date): void;
|
|
41
|
+
private now;
|
|
42
|
+
private balance;
|
|
43
|
+
private tierBalanceKey;
|
|
44
|
+
private getTierBalance;
|
|
45
|
+
private adjustTierBalance;
|
|
46
|
+
/**
|
|
47
|
+
* The tier-priority walk order (plan §4): configured tiers ascending by
|
|
48
|
+
* priority (ties broken by tier key ascending), or the synthetic
|
|
49
|
+
* `[{"default", priority: 0, allowOverdraft: true}]` when no tiers are
|
|
50
|
+
* configured — PLUS any tier keys not in that list, appended last (the
|
|
51
|
+
* config-drift safety net). `extraKeys`, when supplied, is the exact set of
|
|
52
|
+
* "orphaned" keys to consider (e.g. a debit's own tier_breakdown keys, for
|
|
53
|
+
* refund restoration); when omitted, orphaned keys are discovered from any
|
|
54
|
+
* nonzero balance the user currently holds under an unconfigured tier key.
|
|
55
|
+
*/
|
|
56
|
+
private tierWalkOrder;
|
|
57
|
+
/**
|
|
58
|
+
* Resolve the `addCredits` target tier (plan §3):
|
|
59
|
+
* - no tiers configured ⇒ `tier` must be omitted/null/`"default"`.
|
|
60
|
+
* - tiers configured + explicit `tier` ⇒ must be a known key.
|
|
61
|
+
* - tiers configured + omitted `tier` ⇒ resolve via the `isDefault: true`
|
|
62
|
+
* tier, else throw (deliberately strict — never silently misroute money).
|
|
63
|
+
*/
|
|
64
|
+
private resolveAddCreditsTier;
|
|
65
|
+
/**
|
|
66
|
+
* Reconcile a caller-supplied `expiresAt` against the resolved tier's
|
|
67
|
+
* `expires` flag (plan §3):
|
|
68
|
+
* - no tiers configured ⇒ unchanged existing behaviour (no restriction).
|
|
69
|
+
* - non-expiring tier + explicit `expiresAt` ⇒ throw.
|
|
70
|
+
* - expiring tier + explicit `expiresAt` ⇒ validate `> now`, use it.
|
|
71
|
+
* - expiring tier + omitted `expiresAt` ⇒ use `defaultTtlDays` if set,
|
|
72
|
+
* else throw.
|
|
73
|
+
*/
|
|
74
|
+
private resolveAddCreditsExpiry;
|
|
75
|
+
/**
|
|
76
|
+
* Billing-period key (YYYY-MM-DD) used as the in-memory usage-window bucket.
|
|
77
|
+
*
|
|
78
|
+
* When an explicit ``periodStart`` is supplied (WS9 — a non-calendar-month
|
|
79
|
+
* allowance window resolved by the manager), it is used directly. Otherwise
|
|
80
|
+
* falls back to the UTC calendar-month start for the current clock, exactly
|
|
81
|
+
* matching pre-WS9 behaviour.
|
|
82
|
+
*/
|
|
83
|
+
private billingPeriod;
|
|
84
|
+
setup(_databaseUrl?: string | null): Promise<SetupResult>;
|
|
85
|
+
getBalance(userId: string): Promise<BalanceResult>;
|
|
86
|
+
addCredits(userId: string, amount: Decimal, type?: string, metadata?: CreditMetadata | null, expiresAt?: Date | null, tier?: string | null, idempotencyKey?: string | null): Promise<AddCreditsResult>;
|
|
87
|
+
private cleanMetadata;
|
|
88
|
+
/**
|
|
89
|
+
* Tier-priority walk (plan §4), shared by `deductWithAllowance` and
|
|
90
|
+
* `settleLease`: drains `net` from tier balances in priority order (exact
|
|
91
|
+
* greedy Decimal walk, never a proportional split). If `net` exceeds the
|
|
92
|
+
* sum of configured-tier balances (only reachable under a negative floor /
|
|
93
|
+
* overdraft — the floor check already guarantees coverage otherwise), the
|
|
94
|
+
* remainder routes to the `allowOverdraft` tier, else the max-priority
|
|
95
|
+
* tier, else `"default"`. Returns a breakdown whose values sum exactly to
|
|
96
|
+
* `net`.
|
|
97
|
+
*/
|
|
98
|
+
private walkTiers;
|
|
99
|
+
/**
|
|
100
|
+
* Atomic "calculate-then-charge" in a single synchronous critical section
|
|
101
|
+
* (contract §2). Mirrors the SQL `deduct_with_allowance` RPC:
|
|
102
|
+
* idempotency-first → consume allowance → cap on net → balance floor → debit.
|
|
103
|
+
* A `deny` cap or floor breach consumes NO allowance.
|
|
104
|
+
*/
|
|
105
|
+
deductWithAllowance(userId: string, amount: Decimal, options?: DeductWithAllowanceOptions): Promise<DeductionResult>;
|
|
106
|
+
/** Active, unexpired holds for a user (synchronous — no awaits in callers). */
|
|
107
|
+
private activeLeases;
|
|
108
|
+
createLease(userId: string, amount: Decimal, operationType: string, options?: CreateLeaseOptions): Promise<LeaseResult>;
|
|
109
|
+
/** Build an idempotent-replay `DeductionResult` from a ledger row (synchronous). */
|
|
110
|
+
private replayDeduction;
|
|
111
|
+
/**
|
|
112
|
+
* Validate a lease for settle. Returns a short-circuit result, or `null` to
|
|
113
|
+
* proceed (synchronous):
|
|
114
|
+
* - missing / other-user / released → ``lease_not_found``
|
|
115
|
+
* - already settled → idempotent replay of the original charge
|
|
116
|
+
* - TTL elapsed → mark ``expired`` and return ``lease_expired``
|
|
117
|
+
*/
|
|
118
|
+
private settleLeaseState;
|
|
119
|
+
settleLease(userId: string, leaseId: string, amount: Decimal, options?: SettleLeaseOptions): Promise<DeductionResult>;
|
|
120
|
+
releaseLease(userId: string, leaseId: string): Promise<ReleaseResult>;
|
|
121
|
+
renewLease(userId: string, leaseId: string, ttlSeconds: number): Promise<LeaseResult>;
|
|
122
|
+
getAvailable(userId: string): Promise<AvailableResult>;
|
|
123
|
+
getActivePricing(): Promise<PricingConfigResult | null>;
|
|
124
|
+
setActivePricing(config: PricingConfigData, label?: string | null): Promise<string>;
|
|
125
|
+
getPricingHistory(): Promise<PricingConfigHistoryItem[]>;
|
|
126
|
+
getPricingConfig(version: number): Promise<PricingConfigResult | null>;
|
|
127
|
+
activatePricing(version: number): Promise<string>;
|
|
128
|
+
getUserPlan(userId: string): Promise<GetUserPlanResult>;
|
|
129
|
+
checkFeature(userId: string, feature: string): Promise<CheckFeatureResult>;
|
|
130
|
+
setUserPlan(userId: string, planId: string): Promise<SetUserPlanResult>;
|
|
131
|
+
checkAllowance(userId: string, periodStart?: Date | null): Promise<AllowanceResult>;
|
|
132
|
+
private incrementUsageWindowSync;
|
|
133
|
+
incrementUsageWindow(userId: string, planId: string, amount: Decimal): Promise<void>;
|
|
134
|
+
refundCredits(transactionId: string, amount?: Decimal, reason?: string, metadata?: CreditMetadata | null): Promise<RefundResult>;
|
|
135
|
+
sweepExpiredCredits(dryRun?: boolean, userId?: string): Promise<SweepResult>;
|
|
136
|
+
getCreditTiers(userId: string): Promise<TierBalancesResult>;
|
|
137
|
+
/** Filter transactions to usage records in the time window. */
|
|
138
|
+
private _usageInWindow;
|
|
139
|
+
spendByUser(start: Date, end: Date): Promise<SpendByUserRow[]>;
|
|
140
|
+
spendByModel(start: Date, end: Date): Promise<SpendByModelRow[]>;
|
|
141
|
+
topUsers(limit: number, start: Date, end: Date): Promise<TopUserRow[]>;
|
|
142
|
+
listUserTransactions(userId: string, options?: ListTransactionsOptions): Promise<PaginatedTransactions>;
|
|
143
|
+
listUsageEvents(userId: string, options?: ListUsageEventsOptions): Promise<PaginatedTransactions>;
|
|
144
|
+
aggregateStats(start: Date, end: Date): Promise<AggregateStats>;
|
|
145
|
+
/** Configure a spend cap (MemoryStore-only helper for testing). */
|
|
146
|
+
setSpendCap(cap: SpendCap): void;
|
|
147
|
+
private capWindowStart;
|
|
148
|
+
/** Monthly team spend for a specific member: sum of team_usage debits this UTC month (H3). */
|
|
149
|
+
private teamMonthSpent;
|
|
150
|
+
/** Sum spend (positive magnitude) in a window, optionally restricted to a model. */
|
|
151
|
+
private spendInWindow;
|
|
152
|
+
/**
|
|
153
|
+
* Ledger-derived count of committed `usage` transactions tagged
|
|
154
|
+
* `metadata.feature === feature` in `[periodStart, periodEnd)` — the
|
|
155
|
+
* counting primitive shared by `deductWithAllowance`/`createLease`/
|
|
156
|
+
* `settleLease`'s feature-limit enforcement and `checkFeatureLimit`.
|
|
157
|
+
* Mirrors `spendInWindow`, replacing "sum of amount" with "count of rows".
|
|
158
|
+
*
|
|
159
|
+
* Deliberately does NOT filter on `amount < 0` (unlike `spendInWindow`,
|
|
160
|
+
* which only cares about actual dollars spent): a call fully covered by
|
|
161
|
+
* free allowance nets to `amount === 0` but is still one invocation of the
|
|
162
|
+
* feature and must still count.
|
|
163
|
+
*
|
|
164
|
+
* `release_lease` never inserts a `usage` row (nothing to count) and
|
|
165
|
+
* `refund_credits` never deletes the original row (the count is
|
|
166
|
+
* unaffected) — both intentional, matching the SQL/Python design.
|
|
167
|
+
*/
|
|
168
|
+
private featureUsageCount;
|
|
169
|
+
checkFeatureLimit(userId: string, feature: string, maxCalls: number, periodStart: Date, periodEnd: Date): Promise<FeatureLimitResult>;
|
|
170
|
+
checkSpendCap(userId: string, model?: string | null, amount?: Decimal): Promise<CapCheckResult>;
|
|
171
|
+
createTeam(name: string, initialBalance?: Decimal): Promise<CreateTeamResult>;
|
|
172
|
+
getTeamBalance(teamId: string): Promise<TeamBalanceResult>;
|
|
173
|
+
addTeamMember(teamId: string, userId: string, role?: string, spendCap?: Decimal | null): Promise<AddTeamMemberResult>;
|
|
174
|
+
getTeamMembers(teamId: string): Promise<TeamMember[]>;
|
|
175
|
+
deductTeam(teamId: string, userId: string, amount: Decimal, metadata?: CreditMetadata | null, idempotencyKey?: string | null): Promise<TeamDeductionResult>;
|
|
176
|
+
dailySpend(start: Date, end: Date): Promise<DailySpendRow[]>;
|
|
177
|
+
}
|
|
178
|
+
//# sourceMappingURL=memory-store.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"memory-store.d.ts","sourceRoot":"","sources":["../../src/stores/memory-store.ts"],"names":[],"mappings":"AACA,OAAO,OAAO,MAAM,YAAY,CAAC;AAKjC,OAAO,KAAK,EACV,gBAAgB,EAChB,mBAAmB,EACnB,cAAc,EACd,eAAe,EACf,eAAe,EACf,aAAa,EAEb,cAAc,EACd,kBAAkB,EAClB,gBAAgB,EAChB,cAAc,EACd,aAAa,EACb,eAAe,EACf,0BAA0B,EAE1B,kBAAkB,EAClB,iBAAiB,EACjB,WAAW,EACX,uBAAuB,EACvB,sBAAsB,EACtB,qBAAqB,EAErB,iBAAiB,EACjB,wBAAwB,EACxB,mBAAmB,EACnB,YAAY,EACZ,aAAa,EACb,iBAAiB,EACjB,WAAW,EACX,eAAe,EACf,cAAc,EACd,QAAQ,EACR,WAAW,EACX,iBAAiB,EACjB,mBAAmB,EACnB,UAAU,EAEV,kBAAkB,EAElB,UAAU,EACX,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AA4IhF;;;;;;;;;GASG;AACH,qBAAa,WAAY,SAAQ,WAAW;IAC1C,OAAO,CAAC,QAAQ,CAA8B;IAC9C,OAAO,CAAC,QAAQ,CAA8B;IAC9C,OAAO,CAAC,YAAY,CAA2B;IAC/C,OAAO,CAAC,YAAY,CAAwC;IAC5D,OAAO,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