@creator.co/analytics-kysely-types 1.0.22 → 1.0.23

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/enums.d.ts ADDED
@@ -0,0 +1,17 @@
1
+ export declare const TaskStatus: {
2
+ readonly Backfilling: "backfilling";
3
+ readonly Enabled: "enabled";
4
+ readonly Failed: "failed";
5
+ };
6
+ export type TaskStatus = (typeof TaskStatus)[keyof typeof TaskStatus];
7
+ export declare const TaskSchedule: {
8
+ readonly Hourly: "hourly";
9
+ readonly Daily: "daily";
10
+ };
11
+ export type TaskSchedule = (typeof TaskSchedule)[keyof typeof TaskSchedule];
12
+ export declare const TaskType: {
13
+ readonly Views: "views";
14
+ readonly Conversions: "conversions";
15
+ readonly Traffic: "traffic";
16
+ };
17
+ export type TaskType = (typeof TaskType)[keyof typeof TaskType];
package/enums.js ADDED
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TaskType = exports.TaskSchedule = exports.TaskStatus = void 0;
4
+ exports.TaskStatus = {
5
+ Backfilling: "backfilling",
6
+ Enabled: "enabled",
7
+ Failed: "failed"
8
+ };
9
+ exports.TaskSchedule = {
10
+ Hourly: "hourly",
11
+ Daily: "daily"
12
+ };
13
+ exports.TaskType = {
14
+ Views: "views",
15
+ Conversions: "conversions",
16
+ Traffic: "traffic"
17
+ };
18
+ //# sourceMappingURL=enums.js.map
package/enums.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enums.js","sourceRoot":"","sources":["../enums.ts"],"names":[],"mappings":";;;AAAa,QAAA,UAAU,GAAG;IACtB,WAAW,EAAE,aAAa;IAC1B,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;CACV,CAAC;AAEE,QAAA,YAAY,GAAG;IACxB,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,OAAO;CACR,CAAC;AAEE,QAAA,QAAQ,GAAG;IACpB,KAAK,EAAE,OAAO;IACd,WAAW,EAAE,aAAa;IAC1B,OAAO,EAAE,SAAS;CACZ,CAAC"}
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",
3
+ "version": "1.0.23",
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
+ }