@creator.co/analytics-kysely-types 1.0.39 → 1.0.40

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 CHANGED
@@ -14,5 +14,10 @@ export declare const TaskType: {
14
14
  readonly Conversions: "conversions";
15
15
  readonly Traffic: "traffic";
16
16
  readonly Events: "events";
17
+ readonly AffiliateAwin: "affiliate_awin";
17
18
  };
18
19
  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.TaskType = exports.TaskSchedule = exports.TaskStatus = void 0;
3
+ exports.AffiliateProgram = exports.TaskType = exports.TaskSchedule = exports.TaskStatus = void 0;
4
4
  exports.TaskStatus = {
5
5
  Backfilling: "backfilling",
6
6
  Enabled: "enabled",
@@ -14,6 +14,10 @@ exports.TaskType = {
14
14
  Views: "views",
15
15
  Conversions: "conversions",
16
16
  Traffic: "traffic",
17
- Events: "events"
17
+ Events: "events",
18
+ AffiliateAwin: "affiliate_awin"
19
+ };
20
+ exports.AffiliateProgram = {
21
+ Awin: "awin"
18
22
  };
19
23
  //# 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;CACV,CAAC"}
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;IAChB,aAAa,EAAE,gBAAgB;CACzB,CAAC;AAEE,QAAA,gBAAgB,GAAG;IAC5B,IAAI,EAAE,MAAM;CACN,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 } from "./enums";
8
+ import type { TaskStatus, TaskSchedule, TaskType, AffiliateProgram } from "./enums";
9
9
 
10
10
  export type AnalyticsView = {
11
11
  id: GeneratedAlways<number>;
@@ -27,6 +27,25 @@ 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
+ };
30
49
  export type IntegrationGA4 = {
31
50
  id: GeneratedAlways<number>;
32
51
  brandId: number;
@@ -67,7 +86,8 @@ export type IntegrationGA4Traffic = {
67
86
  };
68
87
  export type IntegrationTaskSchedule = {
69
88
  id: GeneratedAlways<number>;
70
- integrationId: number;
89
+ integrationId: number | null;
90
+ affiliateIntegrationId: number | null;
71
91
  schedule: TaskSchedule;
72
92
  type: TaskType;
73
93
  status: TaskStatus;
@@ -77,12 +97,14 @@ export type IntegrationTaskSchedule = {
77
97
  updatedAt: Timestamp | null;
78
98
  };
79
99
  export type DB = {
100
+ "analyticsData.integrationAffiliateEvents": IntegrationAffiliateEvents;
80
101
  "analyticsData.integrationGa4Conversions": IntegrationGA4Conversions;
81
102
  "analyticsData.integrationGa4Events": IntegrationGA4Events;
82
103
  "analyticsData.integrationGa4Pageviews": IntegrationGA4Pageviews;
83
104
  "analyticsData.integrationGa4Traffic": IntegrationGA4Traffic;
84
105
  "analyticsMetadata.analyticsView": AnalyticsView;
85
106
  "analyticsMetadata.analyticsWidget": AnalyticsWidget;
107
+ "analyticsMetadata.integrationAffiliate": IntegrationAffiliate;
86
108
  "analyticsMetadata.integrationGa4": IntegrationGA4;
87
109
  "analyticsMetadata.integrationTaskSchedule": IntegrationTaskSchedule;
88
110
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@creator.co/analytics-kysely-types",
3
- "version": "1.0.39",
3
+ "version": "1.0.40",
4
4
  "types": "./index.d.ts",
5
5
  "type": "commonjs",
6
6
  "devDependencies": {