@creator.co/analytics-kysely-types 1.0.22-alpha-a3bca2f → 1.0.22-alpha-ecfef27

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.
package/index.d.ts CHANGED
@@ -5,6 +5,8 @@ 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 { TaskStatus, TaskSchedule, TaskType } from "./enums";
9
+
8
10
  export type AnalyticsView = {
9
11
  id: GeneratedAlways<number>;
10
12
  title: string;
@@ -25,7 +27,53 @@ export type AnalyticsWidget = {
25
27
  createdAt: Generated<Timestamp>;
26
28
  updatedAt: Timestamp | null;
27
29
  };
30
+ export type IntegrationGA4 = {
31
+ id: GeneratedAlways<number>;
32
+ brandId: number;
33
+ credentials: string;
34
+ propertyId: string;
35
+ createdAt: Generated<Timestamp>;
36
+ updatedAt: Timestamp | null;
37
+ };
38
+ export type IntegrationGA4Conversions = {
39
+ integrationId: number;
40
+ taskId: number;
41
+ dateHour: string;
42
+ event: string;
43
+ value: number;
44
+ createdAt: Generated<Timestamp>;
45
+ };
46
+ export type IntegrationGA4Pageviews = {
47
+ integrationId: number;
48
+ taskId: number;
49
+ dateHour: string;
50
+ value: number;
51
+ createdAt: Generated<Timestamp>;
52
+ };
53
+ export type IntegrationGA4Traffic = {
54
+ integrationId: number;
55
+ taskId: number;
56
+ dateHour: string;
57
+ value: number;
58
+ createdAt: Generated<Timestamp>;
59
+ };
60
+ export type IntegrationTaskSchedule = {
61
+ id: GeneratedAlways<number>;
62
+ integrationId: number;
63
+ schedule: TaskSchedule;
64
+ type: TaskType;
65
+ status: TaskStatus;
66
+ syncData: Json | null;
67
+ syncDate: Timestamp | null;
68
+ createdAt: Generated<Timestamp>;
69
+ updatedAt: Timestamp | null;
70
+ };
28
71
  export type DB = {
72
+ "analyticsData.integrationGa4Conversions": IntegrationGA4Conversions;
73
+ "analyticsData.integrationGa4Pageviews": IntegrationGA4Pageviews;
74
+ "analyticsData.integrationGa4Traffic": IntegrationGA4Traffic;
29
75
  "analyticsMetadata.analyticsView": AnalyticsView;
30
76
  "analyticsMetadata.analyticsWidget": AnalyticsWidget;
77
+ "analyticsMetadata.integrationGa4": IntegrationGA4;
78
+ "analyticsMetadata.integrationTaskSchedule": IntegrationTaskSchedule;
31
79
  };
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@creator.co/analytics-kysely-types",
3
- "version": "1.0.22-alpha-a3bca2f",
3
+ "version": "1.0.22-alpha-ecfef27",
4
4
  "types": "./index.d.ts",
5
- "type": "module",
5
+ "type": "commonjs",
6
6
  "devDependencies": {
7
7
  "typescript": "^5.2.2"
8
8
  },
package/tsconfig.json ADDED
@@ -0,0 +1,21 @@
1
+ {
2
+ "exclude": ["**/*.test.*", "**/__mocks__/*", "**/__tests__/*", "**/tests/*", "./dist/**/*"],
3
+ "compilerOptions": {
4
+ "lib": [
5
+ "es5",
6
+ "es6",
7
+ "dom"
8
+ ],
9
+ "noImplicitAny": false,
10
+ "noEmitOnError": true,
11
+ "removeComments": false,
12
+ "downlevelIteration": true,
13
+ "resolveJsonModule": true,
14
+ "sourceMap": true,
15
+ "target": "es5",
16
+ "outDir": "dist",
17
+ "declaration": true,
18
+ "skipLibCheck": true,
19
+ "strictNullChecks": true
20
+ }
21
+ }