wedance-shared 1.0.178 → 1.0.179

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,12 +1,7 @@
1
1
  import { CityName, CountryCode } from "./city.js";
2
2
  import { DanceTag } from "./event.js";
3
3
  import { UserSummary } from "./user.js";
4
- /**
5
- * `published` is visible to everyone; `hidden` is suppressed by an admin. A
6
- * listing is published when first saved, and re-saving never changes the
7
- * status — a teacher cannot undo an admin having hidden their listing.
8
- */
9
- export type PrivateClassStatus = "published" | "hidden";
4
+ export type PrivateClassStatus = "draft" | "published" | "pending";
10
5
  /**
11
6
  * A known {@link DanceTag}, or any free-text style the teacher typed. The
12
7
  * `string & {}` keeps autocomplete on the known tags.
@@ -93,7 +88,10 @@ export type ListPrivateClassesQuery = {
93
88
  /** Clamped to 1–100. */
94
89
  limit?: number;
95
90
  };
96
- /** `PATCH /private-classes/:id/status` — admin only. */
91
+ /**
92
+ * `PATCH /private-classes/:id/status` — admin only. Approving a request means
93
+ * setting `published`; rejecting or taking a listing down means `draft`.
94
+ */
97
95
  export type UpdatePrivateClassStatusInput = {
98
96
  status: PrivateClassStatus;
99
97
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wedance-shared",
3
- "version": "1.0.178",
3
+ "version": "1.0.179",
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",