@epztickets/common 1.85.0 → 1.86.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.
@@ -1,5 +1,34 @@
1
1
  import { Subjects } from "./subjects";
2
2
  export type OrientationStatus = "scheduled" | "approved" | "no_show" | "declined" | "cancelled";
3
+ export declare const CLASS_CATEGORIES: readonly [{
4
+ readonly value: "singing";
5
+ readonly label: "Singing / vocal";
6
+ }, {
7
+ readonly value: "instrumental";
8
+ readonly label: "Instrumental";
9
+ }, {
10
+ readonly value: "dance";
11
+ readonly label: "Dance";
12
+ }, {
13
+ readonly value: "fitness";
14
+ readonly label: "Fitness";
15
+ }, {
16
+ readonly value: "theater";
17
+ readonly label: "Theater / acting";
18
+ }, {
19
+ readonly value: "yoga";
20
+ readonly label: "Yoga / Pilates / wellness";
21
+ }, {
22
+ readonly value: "martial_arts";
23
+ readonly label: "Martial arts";
24
+ }, {
25
+ readonly value: "workshop";
26
+ readonly label: "Workshop / lecture";
27
+ }, {
28
+ readonly value: "other";
29
+ readonly label: "Other";
30
+ }];
31
+ export declare const classCategoryLabel: (v?: string) => string | undefined;
3
32
  export interface OrientationSnapshot {
4
33
  id: string;
5
34
  ownerUserId: string;
@@ -15,7 +44,7 @@ export interface OrientationSnapshot {
15
44
  status: OrientationStatus;
16
45
  sequence: number;
17
46
  intendedUse?: string;
18
- experience?: string;
47
+ classCategory?: string;
19
48
  notes?: string;
20
49
  }
21
50
  export interface OrientationScheduledEvent {
@@ -1,2 +1,19 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.classCategoryLabel = exports.CLASS_CATEGORIES = void 0;
4
+ // "Category of class" the renter picks on the orientation form.
5
+ // Shared by rooms (validation), notifications (email labels); the
6
+ // frontend keeps a matching copy in lib/orientations.ts.
7
+ exports.CLASS_CATEGORIES = [
8
+ { value: "singing", label: "Singing / vocal" },
9
+ { value: "instrumental", label: "Instrumental" },
10
+ { value: "dance", label: "Dance" },
11
+ { value: "fitness", label: "Fitness" },
12
+ { value: "theater", label: "Theater / acting" },
13
+ { value: "yoga", label: "Yoga / Pilates / wellness" },
14
+ { value: "martial_arts", label: "Martial arts" },
15
+ { value: "workshop", label: "Workshop / lecture" },
16
+ { value: "other", label: "Other" },
17
+ ];
18
+ const classCategoryLabel = (v) => { var _a, _b; return (_b = (_a = exports.CLASS_CATEGORIES.find((c) => c.value === v)) === null || _a === void 0 ? void 0 : _a.label) !== null && _b !== void 0 ? _b : v; };
19
+ exports.classCategoryLabel = classCategoryLabel;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epztickets/common",
3
- "version": "1.85.0",
3
+ "version": "1.86.0",
4
4
  "main": "./build/index.js",
5
5
  "types": "./build/index.d.ts",
6
6
  "files": [