wedance-shared 1.0.15 → 1.0.17

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.
@@ -0,0 +1,33 @@
1
+ import { Timestamp } from "@react-native-firebase/firestore";
2
+ export type GoogleAnalyticsResponse = {
3
+ dimensionHeaders: {
4
+ name: string;
5
+ }[];
6
+ metricHeaders: {
7
+ name: string;
8
+ type: string;
9
+ }[];
10
+ rows: {
11
+ dimensionValues: {
12
+ value: string;
13
+ }[];
14
+ metricValues: {
15
+ value: string;
16
+ }[];
17
+ }[];
18
+ rowCount: number;
19
+ };
20
+ export type EventAnalyticsMetrics = {
21
+ eventCount: string;
22
+ totalUsers: string;
23
+ eventId: string;
24
+ };
25
+ export type DailyAnalyticsReport = {
26
+ createdAt: Timestamp;
27
+ data: EventAnalyticsMetrics[];
28
+ reportDate: string;
29
+ dateRange: {
30
+ endDate: string;
31
+ startDate: string;
32
+ };
33
+ };
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=analytics.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"analytics.js","sourceRoot":"","sources":["../src/analytics.ts"],"names":[],"mappings":""}
package/dist/event.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import { Timestamp } from "@react-native-firebase/firestore";
1
2
  import { City } from "./city";
2
3
  import { OrganizerName } from "./organizer";
3
4
  import { EventTicket } from "./ticket";
@@ -109,7 +110,8 @@ export type Featured = {
109
110
  /**
110
111
  * When this promotion was created (ISO date string)
111
112
  */
112
- createdAt: string;
113
+ createdAt: Timestamp;
114
+ updatedAt: Timestamp;
113
115
  /**
114
116
  * Whether the promotion is currently active
115
117
  */
@@ -118,7 +120,7 @@ export type Featured = {
118
120
  * Date range of the promotion
119
121
  */
120
122
  dateRange: {
121
- startDate: string;
122
- endDate: string;
123
+ startDate: Timestamp;
124
+ endDate: Timestamp;
123
125
  };
124
126
  };
package/dist/index.d.ts CHANGED
@@ -4,3 +4,4 @@ export * from "./ticket";
4
4
  export * from "./user";
5
5
  export * from "./city";
6
6
  export * from "./other";
7
+ export * from "./analytics";
package/dist/index.js CHANGED
@@ -4,4 +4,5 @@ export * from "./ticket";
4
4
  export * from "./user";
5
5
  export * from "./city";
6
6
  export * from "./other";
7
+ export * from "./analytics";
7
8
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wedance-shared",
3
- "version": "1.0.15",
3
+ "version": "1.0.17",
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",
@@ -0,0 +1,27 @@
1
+ import { Timestamp } from "@react-native-firebase/firestore";
2
+
3
+ export type GoogleAnalyticsResponse = {
4
+ dimensionHeaders: { name: string }[];
5
+ metricHeaders: { name: string; type: string }[];
6
+ rows: {
7
+ dimensionValues: { value: string }[];
8
+ metricValues: { value: string }[];
9
+ }[];
10
+ rowCount: number;
11
+ };
12
+
13
+ export type EventAnalyticsMetrics = {
14
+ eventCount: string;
15
+ totalUsers: string;
16
+ eventId: string;
17
+ };
18
+
19
+ export type DailyAnalyticsReport = {
20
+ createdAt: Timestamp;
21
+ data: EventAnalyticsMetrics[];
22
+ reportDate: string;
23
+ dateRange: {
24
+ endDate: string;
25
+ startDate: string;
26
+ };
27
+ };
package/src/event.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import { Timestamp } from "@react-native-firebase/firestore";
1
2
  import { City } from "./city";
2
3
  import { OrganizerName } from "./organizer";
3
4
  import { EventTicket } from "./ticket";
@@ -125,7 +126,8 @@ export type Featured = {
125
126
  /**
126
127
  * When this promotion was created (ISO date string)
127
128
  */
128
- createdAt: string;
129
+ createdAt: Timestamp;
130
+ updatedAt: Timestamp;
129
131
  /**
130
132
  * Whether the promotion is currently active
131
133
  */
@@ -134,7 +136,7 @@ export type Featured = {
134
136
  * Date range of the promotion
135
137
  */
136
138
  dateRange: {
137
- startDate: string;
138
- endDate: string;
139
+ startDate: Timestamp;
140
+ endDate: Timestamp;
139
141
  };
140
142
  };
package/src/index.ts CHANGED
@@ -4,3 +4,4 @@ export * from "./ticket";
4
4
  export * from "./user";
5
5
  export * from "./city";
6
6
  export * from "./other";
7
+ export * from "./analytics";