wedance-shared 1.0.68 → 1.0.69

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,32 +1,32 @@
1
- import { Timestamp } from "firebase/firestore";
2
1
  import { Links } from "../event.js";
2
+ import { FestivalGenre } from "./genre.js";
3
3
  /**
4
4
  * This is the type of the data we get from the server
5
5
  * */
6
6
  export type FestivalData = {
7
7
  id: string;
8
8
  title: string;
9
- from: Timestamp;
10
- until: Timestamp;
9
+ from: string;
10
+ until: string;
11
11
  organizerId: string[];
12
12
  description: string;
13
13
  location: FestivalLocation[];
14
- genre?: FestivalGenre[];
15
- tags?: string[];
14
+ genre: FestivalGenre[];
15
+ tags: string[];
16
16
  imageData: FestivalImageData[];
17
17
  priceRange?: {
18
18
  min: number;
19
19
  max: number;
20
20
  currency: string;
21
21
  } | null;
22
- createdAt: Timestamp | string;
23
- updatedAt: Timestamp | string;
22
+ createdAt: string;
23
+ updatedAt: string;
24
+ deletedAt?: string;
24
25
  createdBy: string;
25
26
  updatedBy: string;
26
27
  links: Links;
27
28
  artists: FestivalArtist[];
28
29
  };
29
- type FestivalGenre = "salsa" | "bachata" | "kizomba" | "zouk";
30
30
  type FestivalImageData = {
31
31
  url: string;
32
32
  alt?: string;
@@ -0,0 +1,6 @@
1
+ export interface FestivalGenre {
2
+ id: number;
3
+ name: string;
4
+ primaryGenreId: string | null;
5
+ createdAt: string;
6
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=genre.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"genre.js","sourceRoot":"","sources":["../../../src/types/festivals/genre.ts"],"names":[],"mappings":""}
@@ -16,9 +16,9 @@ export type FestivalUser = {
16
16
  longitude: number;
17
17
  };
18
18
  };
19
- createdAt: Timestamp | string;
20
- lastUpdated: Timestamp | string;
21
- lastConnected: Timestamp | string;
19
+ createdAt: string;
20
+ updatedAt: string;
21
+ connectedAt: string;
22
22
  fcmTokens: string[];
23
23
  appVersion: string;
24
24
  deviceModel: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wedance-shared",
3
- "version": "1.0.68",
3
+ "version": "1.0.69",
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",