@creator.co/analytics-kysely-types 1.0.38-alpha-ecb61d8 → 1.0.39-alpha-0fc3e98
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 +0 -5
- package/enums.js +2 -6
- package/enums.js.map +1 -1
- package/index.d.ts +2 -24
- package/package.json +1 -1
package/enums.d.ts
CHANGED
|
@@ -14,10 +14,5 @@ export declare const TaskType: {
|
|
|
14
14
|
readonly Conversions: "conversions";
|
|
15
15
|
readonly Traffic: "traffic";
|
|
16
16
|
readonly Events: "events";
|
|
17
|
-
readonly AffiliateAwin: "affiliate_awin";
|
|
18
17
|
};
|
|
19
18
|
export type TaskType = (typeof TaskType)[keyof typeof TaskType];
|
|
20
|
-
export declare const AffiliateProgram: {
|
|
21
|
-
readonly Awin: "awin";
|
|
22
|
-
};
|
|
23
|
-
export type AffiliateProgram = (typeof AffiliateProgram)[keyof typeof AffiliateProgram];
|
package/enums.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.TaskType = exports.TaskSchedule = exports.TaskStatus = void 0;
|
|
4
4
|
exports.TaskStatus = {
|
|
5
5
|
Backfilling: "backfilling",
|
|
6
6
|
Enabled: "enabled",
|
|
@@ -14,10 +14,6 @@ exports.TaskType = {
|
|
|
14
14
|
Views: "views",
|
|
15
15
|
Conversions: "conversions",
|
|
16
16
|
Traffic: "traffic",
|
|
17
|
-
Events: "events"
|
|
18
|
-
AffiliateAwin: "affiliate_awin"
|
|
19
|
-
};
|
|
20
|
-
exports.AffiliateProgram = {
|
|
21
|
-
Awin: "awin"
|
|
17
|
+
Events: "events"
|
|
22
18
|
};
|
|
23
19
|
//# sourceMappingURL=enums.js.map
|
package/enums.js.map
CHANGED
|
@@ -1 +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;IAClB,MAAM,EAAE,QAAQ;
|
|
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;IAClB,MAAM,EAAE,QAAQ;CACV,CAAC"}
|
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 { TaskStatus, TaskSchedule, TaskType
|
|
8
|
+
import type { TaskStatus, TaskSchedule, TaskType } from "./enums";
|
|
9
9
|
|
|
10
10
|
export type AnalyticsView = {
|
|
11
11
|
id: GeneratedAlways<number>;
|
|
@@ -27,25 +27,6 @@ export type AnalyticsWidget = {
|
|
|
27
27
|
createdAt: Generated<Timestamp>;
|
|
28
28
|
updatedAt: Timestamp | null;
|
|
29
29
|
};
|
|
30
|
-
export type IntegrationAffiliate = {
|
|
31
|
-
id: GeneratedAlways<number>;
|
|
32
|
-
brandId: number;
|
|
33
|
-
program: AffiliateProgram;
|
|
34
|
-
integrationData: Json;
|
|
35
|
-
createdAt: Generated<Timestamp>;
|
|
36
|
-
updatedAt: Timestamp | null;
|
|
37
|
-
};
|
|
38
|
-
export type IntegrationAffiliateEvents = {
|
|
39
|
-
integrationId: number;
|
|
40
|
-
taskId: number;
|
|
41
|
-
dateHour: string;
|
|
42
|
-
campaignId: number;
|
|
43
|
-
optinId: number;
|
|
44
|
-
sales: number;
|
|
45
|
-
salesCount: number;
|
|
46
|
-
comission: number;
|
|
47
|
-
createdAt: Generated<Timestamp>;
|
|
48
|
-
};
|
|
49
30
|
export type IntegrationGA4 = {
|
|
50
31
|
id: GeneratedAlways<number>;
|
|
51
32
|
brandId: number;
|
|
@@ -86,8 +67,7 @@ export type IntegrationGA4Traffic = {
|
|
|
86
67
|
};
|
|
87
68
|
export type IntegrationTaskSchedule = {
|
|
88
69
|
id: GeneratedAlways<number>;
|
|
89
|
-
integrationId: number
|
|
90
|
-
affiliateIntegrationId: number | null;
|
|
70
|
+
integrationId: number;
|
|
91
71
|
schedule: TaskSchedule;
|
|
92
72
|
type: TaskType;
|
|
93
73
|
status: TaskStatus;
|
|
@@ -97,14 +77,12 @@ export type IntegrationTaskSchedule = {
|
|
|
97
77
|
updatedAt: Timestamp | null;
|
|
98
78
|
};
|
|
99
79
|
export type DB = {
|
|
100
|
-
"analyticsData.integrationAffiliateEvents": IntegrationAffiliateEvents;
|
|
101
80
|
"analyticsData.integrationGa4Conversions": IntegrationGA4Conversions;
|
|
102
81
|
"analyticsData.integrationGa4Events": IntegrationGA4Events;
|
|
103
82
|
"analyticsData.integrationGa4Pageviews": IntegrationGA4Pageviews;
|
|
104
83
|
"analyticsData.integrationGa4Traffic": IntegrationGA4Traffic;
|
|
105
84
|
"analyticsMetadata.analyticsView": AnalyticsView;
|
|
106
85
|
"analyticsMetadata.analyticsWidget": AnalyticsWidget;
|
|
107
|
-
"analyticsMetadata.integrationAffiliate": IntegrationAffiliate;
|
|
108
86
|
"analyticsMetadata.integrationGa4": IntegrationGA4;
|
|
109
87
|
"analyticsMetadata.integrationTaskSchedule": IntegrationTaskSchedule;
|
|
110
88
|
};
|