wedance-shared 1.0.15 → 1.0.16

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/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.16",
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/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";