wedance-shared 1.0.213 → 1.0.214

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.
@@ -1,4 +1,6 @@
1
1
  import type { Pass } from "./pass.js";
2
+ import type { SchoolStudentSummary } from "./school.js";
3
+ import type { TicketTypeSummary } from "./ticket.js";
2
4
  /**
3
5
  * A row in the money ledger. One per movement of money, never updated in place
4
6
  * except to settle `status`. Every amount is in MINOR units (cents), in the
@@ -53,3 +55,11 @@ export interface Transaction {
53
55
  createdAt: string;
54
56
  updatedAt: string;
55
57
  }
58
+ /**
59
+ * A row of the school transactions list. `student` is null when the payer is
60
+ * not on the roster; `ticketType` is null when the pass it paid for is gone.
61
+ */
62
+ export type SchoolTransactionListItem = Transaction & {
63
+ student: SchoolStudentSummary | null;
64
+ ticketType: TicketTypeSummary | null;
65
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wedance-shared",
3
- "version": "1.0.213",
3
+ "version": "1.0.214",
4
4
  "description": "This repository contains shared TypeScript types and interfaces used across multiple WeDance applications:",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",