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

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 +3 -3
  2. package/index.d.ts +2 -12
  3. package/package.json +1 -1
package/enums.ts CHANGED
@@ -1,8 +1,9 @@
1
- export const IntegrationStatus = {
1
+ export const TaskStatus = {
2
+ Backfilling: "backfilling",
2
3
  Enabled: "enabled",
3
4
  Failed: "failed"
4
5
  } as const;
5
- export type IntegrationStatus = (typeof IntegrationStatus)[keyof typeof IntegrationStatus];
6
+ export type TaskStatus = (typeof TaskStatus)[keyof typeof TaskStatus];
6
7
  export const TaskSchedule = {
7
8
  Hourly: "hourly",
8
9
  Daily: "daily"
@@ -11,7 +12,6 @@ export type TaskSchedule = (typeof TaskSchedule)[keyof typeof TaskSchedule];
11
12
  export const TaskType = {
12
13
  Views: "views",
13
14
  Conversions: "conversetions",
14
- Clicks: "clicks",
15
15
  Traffic: "traffic"
16
16
  } as const;
17
17
  export type TaskType = (typeof TaskType)[keyof typeof TaskType];
package/index.d.ts CHANGED
@@ -5,7 +5,7 @@ export type Generated<T> = T extends ColumnType<infer S, infer I, infer U>
5
5
  : ColumnType<T, T | undefined, T>;
6
6
  export type Timestamp = ColumnType<Date, Date | string, Date | string>;
7
7
 
8
- import type { IntegrationStatus, TaskSchedule, TaskType } from "./enums";
8
+ import type { TaskStatus, TaskSchedule, TaskType } from "./enums";
9
9
 
10
10
  export type AnalyticsView = {
11
11
  id: GeneratedAlways<number>;
@@ -30,21 +30,11 @@ export type AnalyticsWidget = {
30
30
  export type IntegrationGA4 = {
31
31
  id: GeneratedAlways<number>;
32
32
  brandId: number;
33
- status: IntegrationStatus;
34
- backfillData: Json;
35
- backfillDate: Timestamp | null;
36
33
  credentials: string;
37
34
  propertyId: string;
38
35
  createdAt: Generated<Timestamp>;
39
36
  updatedAt: Timestamp | null;
40
37
  };
41
- export type IntegrationGA4Clicks = {
42
- integrationId: number;
43
- taskId: number;
44
- dateHour: string;
45
- value: number;
46
- createdAt: Generated<Timestamp>;
47
- };
48
38
  export type IntegrationGA4Conversions = {
49
39
  integrationId: number;
50
40
  taskId: number;
@@ -72,13 +62,13 @@ export type IntegrationTaskSchedule = {
72
62
  integrationId: number;
73
63
  schedule: TaskSchedule;
74
64
  type: TaskType;
65
+ status: TaskStatus;
75
66
  syncData: Json | null;
76
67
  syncDate: Timestamp | null;
77
68
  createdAt: Generated<Timestamp>;
78
69
  updatedAt: Timestamp | null;
79
70
  };
80
71
  export type DB = {
81
- "analyticsData.IntegrationGa4Clicks": IntegrationGA4Clicks;
82
72
  "analyticsData.IntegrationGa4Conversions": IntegrationGA4Conversions;
83
73
  "analyticsData.IntegrationGa4Pageviews": IntegrationGA4Pageviews;
84
74
  "analyticsData.IntegrationGa4Traffic": IntegrationGA4Traffic;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@creator.co/analytics-kysely-types",
3
- "version": "1.0.22-alpha-89f1870",
3
+ "version": "1.0.22-alpha-0163da4",
4
4
  "types": "./index.d.ts",
5
5
  "type": "module",
6
6
  "devDependencies": {