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

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,8 +5,6 @@ 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
-
10
8
  export type AnalyticsView = {
11
9
  id: GeneratedAlways<number>;
12
10
  title: string;
@@ -27,53 +25,7 @@ export type AnalyticsWidget = {
27
25
  createdAt: Generated<Timestamp>;
28
26
  updatedAt: Timestamp | null;
29
27
  };
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
- };
71
28
  export type DB = {
72
- "analyticsData.IntegrationGa4Conversions": IntegrationGA4Conversions;
73
- "analyticsData.IntegrationGa4Pageviews": IntegrationGA4Pageviews;
74
- "analyticsData.IntegrationGa4Traffic": IntegrationGA4Traffic;
75
29
  "analyticsMetadata.analyticsView": AnalyticsView;
76
30
  "analyticsMetadata.analyticsWidget": AnalyticsWidget;
77
- "analyticsMetadata.integrationGa4": IntegrationGA4;
78
- "analyticsMetadata.integrationTaskSchedule": IntegrationTaskSchedule;
79
31
  };
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@creator.co/analytics-kysely-types",
3
- "version": "1.0.22-alpha-f7bb6e5",
3
+ "version": "1.0.22-alpha-a3bca2f",
4
4
  "types": "./index.d.ts",
5
- "type": "commonjs",
5
+ "type": "module",
6
6
  "devDependencies": {
7
7
  "typescript": "^5.2.2"
8
8
  },
package/enums.ts DELETED
@@ -1,17 +0,0 @@
1
- export const TaskStatus = {
2
- Backfilling: "backfilling",
3
- Enabled: "enabled",
4
- Failed: "failed"
5
- } as const;
6
- export type TaskStatus = (typeof TaskStatus)[keyof typeof TaskStatus];
7
- export const TaskSchedule = {
8
- Hourly: "hourly",
9
- Daily: "daily"
10
- } as const;
11
- export type TaskSchedule = (typeof TaskSchedule)[keyof typeof TaskSchedule];
12
- export const TaskType = {
13
- Views: "views",
14
- Conversions: "conversetions",
15
- Traffic: "traffic"
16
- } as const;
17
- export type TaskType = (typeof TaskType)[keyof typeof TaskType];
package/tsconfig.json DELETED
@@ -1,21 +0,0 @@
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
- }