@creator.co/analytics-kysely-types 1.0.22-alpha-c781f9f → 1.0.22-alpha-89f1870

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.
Files changed (3) hide show
  1. package/enums.ts +8 -7
  2. package/index.d.ts +35 -1
  3. package/package.json +1 -1
package/enums.ts CHANGED
@@ -1,16 +1,17 @@
1
1
  export const IntegrationStatus = {
2
- Enabled: "Enabled",
3
- Failed: "Failed"
2
+ Enabled: "enabled",
3
+ Failed: "failed"
4
4
  } as const;
5
5
  export type IntegrationStatus = (typeof IntegrationStatus)[keyof typeof IntegrationStatus];
6
6
  export const TaskSchedule = {
7
- Enabled: "Enabled",
8
- Failed: "Failed"
7
+ Hourly: "hourly",
8
+ Daily: "daily"
9
9
  } as const;
10
10
  export type TaskSchedule = (typeof TaskSchedule)[keyof typeof TaskSchedule];
11
11
  export const TaskType = {
12
- Views: "Views",
13
- Conversions: "Conversions",
14
- Clicks: "Clicks"
12
+ Views: "views",
13
+ Conversions: "conversetions",
14
+ Clicks: "clicks",
15
+ Traffic: "traffic"
15
16
  } as const;
16
17
  export type TaskType = (typeof TaskType)[keyof typeof TaskType];
package/index.d.ts CHANGED
@@ -33,10 +33,40 @@ export type IntegrationGA4 = {
33
33
  status: IntegrationStatus;
34
34
  backfillData: Json;
35
35
  backfillDate: Timestamp | null;
36
- credentials: Json;
36
+ credentials: string;
37
+ propertyId: string;
37
38
  createdAt: Generated<Timestamp>;
38
39
  updatedAt: Timestamp | null;
39
40
  };
41
+ export type IntegrationGA4Clicks = {
42
+ integrationId: number;
43
+ taskId: number;
44
+ dateHour: string;
45
+ value: number;
46
+ createdAt: Generated<Timestamp>;
47
+ };
48
+ export type IntegrationGA4Conversions = {
49
+ integrationId: number;
50
+ taskId: number;
51
+ dateHour: string;
52
+ event: string;
53
+ value: number;
54
+ createdAt: Generated<Timestamp>;
55
+ };
56
+ export type IntegrationGA4Pageviews = {
57
+ integrationId: number;
58
+ taskId: number;
59
+ dateHour: string;
60
+ value: number;
61
+ createdAt: Generated<Timestamp>;
62
+ };
63
+ export type IntegrationGA4Traffic = {
64
+ integrationId: number;
65
+ taskId: number;
66
+ dateHour: string;
67
+ value: number;
68
+ createdAt: Generated<Timestamp>;
69
+ };
40
70
  export type IntegrationTaskSchedule = {
41
71
  id: GeneratedAlways<number>;
42
72
  integrationId: number;
@@ -48,6 +78,10 @@ export type IntegrationTaskSchedule = {
48
78
  updatedAt: Timestamp | null;
49
79
  };
50
80
  export type DB = {
81
+ "analyticsData.IntegrationGa4Clicks": IntegrationGA4Clicks;
82
+ "analyticsData.IntegrationGa4Conversions": IntegrationGA4Conversions;
83
+ "analyticsData.IntegrationGa4Pageviews": IntegrationGA4Pageviews;
84
+ "analyticsData.IntegrationGa4Traffic": IntegrationGA4Traffic;
51
85
  "analyticsMetadata.analyticsView": AnalyticsView;
52
86
  "analyticsMetadata.analyticsWidget": AnalyticsWidget;
53
87
  "analyticsMetadata.integrationGa4": IntegrationGA4;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@creator.co/analytics-kysely-types",
3
- "version": "1.0.22-alpha-c781f9f",
3
+ "version": "1.0.22-alpha-89f1870",
4
4
  "types": "./index.d.ts",
5
5
  "type": "module",
6
6
  "devDependencies": {