@fuul/sdk 0.16.5 → 0.17.0
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/lib/cjs/constants.js +2 -1
- package/lib/cjs/index.js +16 -12
- package/lib/cjs/types/constants.d.ts +1 -0
- package/lib/cjs/types/constants.d.ts.map +1 -1
- package/lib/cjs/types/index.d.ts +0 -1
- package/lib/cjs/types/index.d.ts.map +1 -1
- package/lib/cjs/types/infrastructure/conversions/dtos.d.ts +10 -0
- package/lib/cjs/types/infrastructure/conversions/dtos.d.ts.map +1 -1
- package/lib/esm/constants.js +1 -0
- package/lib/esm/index.mjs +17 -13
- package/lib/esm/types/constants.d.ts +1 -0
- package/lib/esm/types/constants.d.ts.map +1 -1
- package/lib/esm/types/index.d.ts +0 -1
- package/lib/esm/types/index.d.ts.map +1 -1
- package/lib/esm/types/infrastructure/conversions/dtos.d.ts +10 -0
- package/lib/esm/types/infrastructure/conversions/dtos.d.ts.map +1 -1
- package/package.json +1 -1
package/lib/cjs/constants.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SEARCH_ENGINE_URLS = exports.SENT_EVENT_VALIDITY_PERIOD_MS = exports.SENT_EVENT_ID_KEY = exports.TRAFFIC_TAG_KEY = exports.TRAFFIC_TITLE_KEY = exports.TRAFFIC_CATEGORY_KEY = exports.TRAFFIC_SOURCE_KEY = exports.REFERRER_ID_KEY = exports.PROJECT_ID_KEY = exports.TRACKING_ID_KEY = exports.SESSION_ID_KEY = void 0;
|
|
3
|
+
exports.SEARCH_ENGINE_URLS = exports.SENT_EVENT_VALIDITY_PERIOD_MS = exports.SENT_EVENT_ID_KEY = exports.TRAFFIC_ORIGIN_URL = exports.TRAFFIC_TAG_KEY = exports.TRAFFIC_TITLE_KEY = exports.TRAFFIC_CATEGORY_KEY = exports.TRAFFIC_SOURCE_KEY = exports.REFERRER_ID_KEY = exports.PROJECT_ID_KEY = exports.TRACKING_ID_KEY = exports.SESSION_ID_KEY = void 0;
|
|
4
4
|
exports.SESSION_ID_KEY = "fuul.session_id";
|
|
5
5
|
exports.TRACKING_ID_KEY = "fuul.tracking_id";
|
|
6
6
|
exports.PROJECT_ID_KEY = "fuul.project_id";
|
|
@@ -9,6 +9,7 @@ exports.TRAFFIC_SOURCE_KEY = "fuul.traffic_source";
|
|
|
9
9
|
exports.TRAFFIC_CATEGORY_KEY = "fuul.traffic_category";
|
|
10
10
|
exports.TRAFFIC_TITLE_KEY = "fuul.traffic_title";
|
|
11
11
|
exports.TRAFFIC_TAG_KEY = "fuul.traffic_tag";
|
|
12
|
+
exports.TRAFFIC_ORIGIN_URL = "fuul.traffic_origin_url";
|
|
12
13
|
exports.SENT_EVENT_ID_KEY = "fuul.sent";
|
|
13
14
|
exports.SENT_EVENT_VALIDITY_PERIOD_MS = 60000;
|
|
14
15
|
exports.SEARCH_ENGINE_URLS = ["google.com", "bing.com", "yahoo.com"];
|
package/lib/cjs/index.js
CHANGED
|
@@ -69,7 +69,7 @@ const saveTrackingId = () => {
|
|
|
69
69
|
}
|
|
70
70
|
};
|
|
71
71
|
const saveUrlParams = () => {
|
|
72
|
-
var _a, _b, _c, _d, _e;
|
|
72
|
+
var _a, _b, _c, _d, _e, _f;
|
|
73
73
|
if (isBrowserUndefined) {
|
|
74
74
|
return;
|
|
75
75
|
}
|
|
@@ -79,6 +79,7 @@ const saveUrlParams = () => {
|
|
|
79
79
|
localStorage.setItem(constants_js_1.TRAFFIC_CATEGORY_KEY, (_c = queryParams.get("category")) !== null && _c !== void 0 ? _c : "");
|
|
80
80
|
localStorage.setItem(constants_js_1.TRAFFIC_TITLE_KEY, (_d = queryParams.get("title")) !== null && _d !== void 0 ? _d : "");
|
|
81
81
|
localStorage.setItem(constants_js_1.TRAFFIC_TAG_KEY, (_e = queryParams.get("tag")) !== null && _e !== void 0 ? _e : "");
|
|
82
|
+
localStorage.setItem(constants_js_1.TRAFFIC_ORIGIN_URL, (_f = document.referrer) !== null && _f !== void 0 ? _f : "");
|
|
82
83
|
saveTrafficSource();
|
|
83
84
|
};
|
|
84
85
|
const saveTrafficSource = () => {
|
|
@@ -154,7 +155,6 @@ class Fuul {
|
|
|
154
155
|
* // Then you can send an event as follows:
|
|
155
156
|
* fuul.sendEvent('connect_wallet', {
|
|
156
157
|
* address,
|
|
157
|
-
* ...args
|
|
158
158
|
* })
|
|
159
159
|
* ```
|
|
160
160
|
*/
|
|
@@ -163,10 +163,18 @@ class Fuul {
|
|
|
163
163
|
const session_id = (0, localStorage_js_1.getSessionId)();
|
|
164
164
|
const tracking_id = (0, localStorage_js_1.getTrackingId)();
|
|
165
165
|
const referrer_id = (0, localStorage_js_1.getReferrerId)();
|
|
166
|
+
const source = (0, localStorage_js_1.getTrafficSource)();
|
|
167
|
+
const category = (0, localStorage_js_1.getTrafficCategory)();
|
|
168
|
+
const title = (0, localStorage_js_1.getTrafficTitle)();
|
|
169
|
+
const tag = (0, localStorage_js_1.getTrafficTag)();
|
|
166
170
|
if (!tracking_id)
|
|
167
171
|
return;
|
|
168
172
|
let params = {
|
|
169
173
|
tracking_id,
|
|
174
|
+
source,
|
|
175
|
+
category,
|
|
176
|
+
title,
|
|
177
|
+
tag,
|
|
170
178
|
};
|
|
171
179
|
let reqBody = {};
|
|
172
180
|
if (name === "connect_wallet") {
|
|
@@ -174,19 +182,15 @@ class Fuul {
|
|
|
174
182
|
reqBody = {
|
|
175
183
|
name,
|
|
176
184
|
session_id,
|
|
177
|
-
event_args: Object.assign(Object.assign({}, args), { tracking_id
|
|
185
|
+
event_args: Object.assign(Object.assign({}, args), { tracking_id,
|
|
186
|
+
source,
|
|
187
|
+
category,
|
|
188
|
+
title,
|
|
189
|
+
tag }),
|
|
178
190
|
};
|
|
179
191
|
}
|
|
180
192
|
else {
|
|
181
|
-
|
|
182
|
-
const category = (0, localStorage_js_1.getTrafficCategory)();
|
|
183
|
-
const title = (0, localStorage_js_1.getTrafficTitle)();
|
|
184
|
-
const tag = (0, localStorage_js_1.getTrafficTag)();
|
|
185
|
-
params = Object.assign(Object.assign({}, params), { project_id: args === null || args === void 0 ? void 0 : args.project_id, referrer_id,
|
|
186
|
-
source,
|
|
187
|
-
category,
|
|
188
|
-
title,
|
|
189
|
-
tag });
|
|
193
|
+
params = Object.assign(Object.assign({}, params), { project_id: args === null || args === void 0 ? void 0 : args.project_id, referrer_id });
|
|
190
194
|
reqBody = {
|
|
191
195
|
name,
|
|
192
196
|
session_id,
|
|
@@ -6,6 +6,7 @@ export declare const TRAFFIC_SOURCE_KEY = "fuul.traffic_source";
|
|
|
6
6
|
export declare const TRAFFIC_CATEGORY_KEY = "fuul.traffic_category";
|
|
7
7
|
export declare const TRAFFIC_TITLE_KEY = "fuul.traffic_title";
|
|
8
8
|
export declare const TRAFFIC_TAG_KEY = "fuul.traffic_tag";
|
|
9
|
+
export declare const TRAFFIC_ORIGIN_URL = "fuul.traffic_origin_url";
|
|
9
10
|
export declare const SENT_EVENT_ID_KEY = "fuul.sent";
|
|
10
11
|
export declare const SENT_EVENT_VALIDITY_PERIOD_MS = 60000;
|
|
11
12
|
export declare const SEARCH_ENGINE_URLS: string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,oBAAoB,CAAC;AAChD,eAAO,MAAM,eAAe,qBAAqB,CAAC;AAClD,eAAO,MAAM,cAAc,oBAAoB,CAAC;AAChD,eAAO,MAAM,eAAe,qBAAqB,CAAC;AAClD,eAAO,MAAM,kBAAkB,wBAAwB,CAAC;AACxD,eAAO,MAAM,oBAAoB,0BAA0B,CAAC;AAC5D,eAAO,MAAM,iBAAiB,uBAAuB,CAAC;AACtD,eAAO,MAAM,eAAe,qBAAqB,CAAC;AAClD,eAAO,MAAM,iBAAiB,cAAc,CAAC;AAC7C,eAAO,MAAM,6BAA6B,QAAQ,CAAC;AAEnD,eAAO,MAAM,kBAAkB,UAA0C,CAAC"}
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,oBAAoB,CAAC;AAChD,eAAO,MAAM,eAAe,qBAAqB,CAAC;AAClD,eAAO,MAAM,cAAc,oBAAoB,CAAC;AAChD,eAAO,MAAM,eAAe,qBAAqB,CAAC;AAClD,eAAO,MAAM,kBAAkB,wBAAwB,CAAC;AACxD,eAAO,MAAM,oBAAoB,0BAA0B,CAAC;AAC5D,eAAO,MAAM,iBAAiB,uBAAuB,CAAC;AACtD,eAAO,MAAM,eAAe,qBAAqB,CAAC;AAClD,eAAO,MAAM,kBAAkB,4BAA4B,CAAC;AAC5D,eAAO,MAAM,iBAAiB,cAAc,CAAC;AAC7C,eAAO,MAAM,6BAA6B,QAAQ,CAAC;AAEnD,eAAO,MAAM,kBAAkB,UAA0C,CAAC"}
|
package/lib/cjs/types/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AA0BA,OAAO,EACL,aAAa,EACb,SAAS,EACT,YAAY,EACZ,qBAAqB,EAEtB,MAAM,kBAAkB,CAAC;AAI1B,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AA8HrE,qBAAa,IAAI;IACf,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAS;IAChC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAA0C;IACvE,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAa;IACxC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAe;IAExC,OAAO,CAAC,iBAAiB,CAAoB;gBAEjC,MAAM,EAAE,MAAM,EAAE,QAAQ,GAAE,YAAiB;IAwBjD,IAAI;IAQV,WAAW,IAAI,IAAI;IAMnB;;;;;;;;;;;;;;;;OAgBG;IACG,SAAS,CACb,IAAI,EAAE,SAAS,EACf,IAAI,CAAC,EAAE,aAAa,EACpB,SAAS,CAAC,EAAE,MAAM,EAClB,iBAAiB,CAAC,EAAE,MAAM,GACzB,OAAO,CAAC,GAAG,CAAC;IAoFf,gBAAgB,IAAI,IAAI;IAUxB;;;;;;;QAOI;IACJ,oBAAoB,CAAC,EACnB,OAAO,EACP,SAAS,EACT,OAAO,GACR,EAAE,qBAAqB,GAAG,MAAM;IAO3B,iBAAiB,IAAI,OAAO,CAAC,aAAa,EAAE,CAAC;CAGpD;;;;AAED,wBAEE"}
|
|
@@ -9,6 +9,15 @@ interface ConversionPaymentActionArgs {
|
|
|
9
9
|
referral_amount: number;
|
|
10
10
|
referrer_amount: number;
|
|
11
11
|
}
|
|
12
|
+
interface ContractDTO {
|
|
13
|
+
address: string;
|
|
14
|
+
network: string;
|
|
15
|
+
}
|
|
16
|
+
interface TriggerDTO {
|
|
17
|
+
name: string;
|
|
18
|
+
description: string;
|
|
19
|
+
contracts: ContractDTO[];
|
|
20
|
+
}
|
|
12
21
|
export interface ConversionDTO {
|
|
13
22
|
action_args?: ConversionPaymentActionArgs;
|
|
14
23
|
action_type?: string;
|
|
@@ -18,6 +27,7 @@ export interface ConversionDTO {
|
|
|
18
27
|
id: string;
|
|
19
28
|
name: string;
|
|
20
29
|
project: Project;
|
|
30
|
+
triggers: TriggerDTO[];
|
|
21
31
|
}
|
|
22
32
|
export {};
|
|
23
33
|
//# sourceMappingURL=dtos.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dtos.d.ts","sourceRoot":"","sources":["../../../../../src/infrastructure/conversions/dtos.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,UAAU,2BAA2B;IACnC,YAAY,EAAE,MAAM,CAAC;IACrB,gBAAgB,EAAE,MAAM,CAAC;IACzB,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,aAAa;IAC5B,WAAW,CAAC,EAAE,2BAA2B,CAAC;IAC1C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,EAAE,MAAM,CAAC;IACzB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"dtos.d.ts","sourceRoot":"","sources":["../../../../../src/infrastructure/conversions/dtos.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,UAAU,2BAA2B;IACnC,YAAY,EAAE,MAAM,CAAC;IACrB,gBAAgB,EAAE,MAAM,CAAC;IACzB,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,MAAM,CAAC;CACzB;AAED,UAAU,WAAW;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,UAAU,UAAU;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,WAAW,EAAE,CAAC;CAC1B;AAED,MAAM,WAAW,aAAa;IAC5B,WAAW,CAAC,EAAE,2BAA2B,CAAC;IAC1C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,EAAE,MAAM,CAAC;IACzB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,UAAU,EAAE,CAAC;CACxB"}
|
package/lib/esm/constants.js
CHANGED
|
@@ -6,6 +6,7 @@ export const TRAFFIC_SOURCE_KEY = "fuul.traffic_source";
|
|
|
6
6
|
export const TRAFFIC_CATEGORY_KEY = "fuul.traffic_category";
|
|
7
7
|
export const TRAFFIC_TITLE_KEY = "fuul.traffic_title";
|
|
8
8
|
export const TRAFFIC_TAG_KEY = "fuul.traffic_tag";
|
|
9
|
+
export const TRAFFIC_ORIGIN_URL = "fuul.traffic_origin_url";
|
|
9
10
|
export const SENT_EVENT_ID_KEY = "fuul.sent";
|
|
10
11
|
export const SENT_EVENT_VALIDITY_PERIOD_MS = 60000;
|
|
11
12
|
export const SEARCH_ENGINE_URLS = ["google.com", "bing.com", "yahoo.com"];
|
package/lib/esm/index.mjs
CHANGED
|
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
};
|
|
10
10
|
import { nanoid } from "nanoid";
|
|
11
11
|
import { getReferrerId, getSessionId, getTrackingId, getTrafficCategory, getTrafficSource, getTrafficTag, getTrafficTitle, } from "./utils/localStorage.js";
|
|
12
|
-
import { REFERRER_ID_KEY, SENT_EVENT_ID_KEY, SESSION_ID_KEY, TRACKING_ID_KEY, SENT_EVENT_VALIDITY_PERIOD_MS, TRAFFIC_SOURCE_KEY, TRAFFIC_CATEGORY_KEY, TRAFFIC_TITLE_KEY, TRAFFIC_TAG_KEY, SEARCH_ENGINE_URLS, } from "./constants.js";
|
|
12
|
+
import { REFERRER_ID_KEY, SENT_EVENT_ID_KEY, SESSION_ID_KEY, TRACKING_ID_KEY, SENT_EVENT_VALIDITY_PERIOD_MS, TRAFFIC_SOURCE_KEY, TRAFFIC_CATEGORY_KEY, TRAFFIC_TITLE_KEY, TRAFFIC_TAG_KEY, SEARCH_ENGINE_URLS, TRAFFIC_ORIGIN_URL, } from "./constants.js";
|
|
13
13
|
import { HttpClient } from "./infrastructure/http/HttpClient.js";
|
|
14
14
|
import { ConversionService } from "./infrastructure/conversions/conversionService.js";
|
|
15
15
|
const saveSentEvent = (eventName, params) => {
|
|
@@ -66,7 +66,7 @@ const saveTrackingId = () => {
|
|
|
66
66
|
}
|
|
67
67
|
};
|
|
68
68
|
const saveUrlParams = () => {
|
|
69
|
-
var _a, _b, _c, _d, _e;
|
|
69
|
+
var _a, _b, _c, _d, _e, _f;
|
|
70
70
|
if (isBrowserUndefined) {
|
|
71
71
|
return;
|
|
72
72
|
}
|
|
@@ -76,6 +76,7 @@ const saveUrlParams = () => {
|
|
|
76
76
|
localStorage.setItem(TRAFFIC_CATEGORY_KEY, (_c = queryParams.get("category")) !== null && _c !== void 0 ? _c : "");
|
|
77
77
|
localStorage.setItem(TRAFFIC_TITLE_KEY, (_d = queryParams.get("title")) !== null && _d !== void 0 ? _d : "");
|
|
78
78
|
localStorage.setItem(TRAFFIC_TAG_KEY, (_e = queryParams.get("tag")) !== null && _e !== void 0 ? _e : "");
|
|
79
|
+
localStorage.setItem(TRAFFIC_ORIGIN_URL, (_f = document.referrer) !== null && _f !== void 0 ? _f : "");
|
|
79
80
|
saveTrafficSource();
|
|
80
81
|
};
|
|
81
82
|
const saveTrafficSource = () => {
|
|
@@ -151,7 +152,6 @@ export class Fuul {
|
|
|
151
152
|
* // Then you can send an event as follows:
|
|
152
153
|
* fuul.sendEvent('connect_wallet', {
|
|
153
154
|
* address,
|
|
154
|
-
* ...args
|
|
155
155
|
* })
|
|
156
156
|
* ```
|
|
157
157
|
*/
|
|
@@ -160,10 +160,18 @@ export class Fuul {
|
|
|
160
160
|
const session_id = getSessionId();
|
|
161
161
|
const tracking_id = getTrackingId();
|
|
162
162
|
const referrer_id = getReferrerId();
|
|
163
|
+
const source = getTrafficSource();
|
|
164
|
+
const category = getTrafficCategory();
|
|
165
|
+
const title = getTrafficTitle();
|
|
166
|
+
const tag = getTrafficTag();
|
|
163
167
|
if (!tracking_id)
|
|
164
168
|
return;
|
|
165
169
|
let params = {
|
|
166
170
|
tracking_id,
|
|
171
|
+
source,
|
|
172
|
+
category,
|
|
173
|
+
title,
|
|
174
|
+
tag,
|
|
167
175
|
};
|
|
168
176
|
let reqBody = {};
|
|
169
177
|
if (name === "connect_wallet") {
|
|
@@ -171,19 +179,15 @@ export class Fuul {
|
|
|
171
179
|
reqBody = {
|
|
172
180
|
name,
|
|
173
181
|
session_id,
|
|
174
|
-
event_args: Object.assign(Object.assign({}, args), { tracking_id
|
|
182
|
+
event_args: Object.assign(Object.assign({}, args), { tracking_id,
|
|
183
|
+
source,
|
|
184
|
+
category,
|
|
185
|
+
title,
|
|
186
|
+
tag }),
|
|
175
187
|
};
|
|
176
188
|
}
|
|
177
189
|
else {
|
|
178
|
-
|
|
179
|
-
const category = getTrafficCategory();
|
|
180
|
-
const title = getTrafficTitle();
|
|
181
|
-
const tag = getTrafficTag();
|
|
182
|
-
params = Object.assign(Object.assign({}, params), { project_id: args === null || args === void 0 ? void 0 : args.project_id, referrer_id,
|
|
183
|
-
source,
|
|
184
|
-
category,
|
|
185
|
-
title,
|
|
186
|
-
tag });
|
|
190
|
+
params = Object.assign(Object.assign({}, params), { project_id: args === null || args === void 0 ? void 0 : args.project_id, referrer_id });
|
|
187
191
|
reqBody = {
|
|
188
192
|
name,
|
|
189
193
|
session_id,
|
|
@@ -6,6 +6,7 @@ export declare const TRAFFIC_SOURCE_KEY = "fuul.traffic_source";
|
|
|
6
6
|
export declare const TRAFFIC_CATEGORY_KEY = "fuul.traffic_category";
|
|
7
7
|
export declare const TRAFFIC_TITLE_KEY = "fuul.traffic_title";
|
|
8
8
|
export declare const TRAFFIC_TAG_KEY = "fuul.traffic_tag";
|
|
9
|
+
export declare const TRAFFIC_ORIGIN_URL = "fuul.traffic_origin_url";
|
|
9
10
|
export declare const SENT_EVENT_ID_KEY = "fuul.sent";
|
|
10
11
|
export declare const SENT_EVENT_VALIDITY_PERIOD_MS = 60000;
|
|
11
12
|
export declare const SEARCH_ENGINE_URLS: string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,oBAAoB,CAAC;AAChD,eAAO,MAAM,eAAe,qBAAqB,CAAC;AAClD,eAAO,MAAM,cAAc,oBAAoB,CAAC;AAChD,eAAO,MAAM,eAAe,qBAAqB,CAAC;AAClD,eAAO,MAAM,kBAAkB,wBAAwB,CAAC;AACxD,eAAO,MAAM,oBAAoB,0BAA0B,CAAC;AAC5D,eAAO,MAAM,iBAAiB,uBAAuB,CAAC;AACtD,eAAO,MAAM,eAAe,qBAAqB,CAAC;AAClD,eAAO,MAAM,iBAAiB,cAAc,CAAC;AAC7C,eAAO,MAAM,6BAA6B,QAAQ,CAAC;AAEnD,eAAO,MAAM,kBAAkB,UAA0C,CAAC"}
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,oBAAoB,CAAC;AAChD,eAAO,MAAM,eAAe,qBAAqB,CAAC;AAClD,eAAO,MAAM,cAAc,oBAAoB,CAAC;AAChD,eAAO,MAAM,eAAe,qBAAqB,CAAC;AAClD,eAAO,MAAM,kBAAkB,wBAAwB,CAAC;AACxD,eAAO,MAAM,oBAAoB,0BAA0B,CAAC;AAC5D,eAAO,MAAM,iBAAiB,uBAAuB,CAAC;AACtD,eAAO,MAAM,eAAe,qBAAqB,CAAC;AAClD,eAAO,MAAM,kBAAkB,4BAA4B,CAAC;AAC5D,eAAO,MAAM,iBAAiB,cAAc,CAAC;AAC7C,eAAO,MAAM,6BAA6B,QAAQ,CAAC;AAEnD,eAAO,MAAM,kBAAkB,UAA0C,CAAC"}
|
package/lib/esm/types/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AA0BA,OAAO,EACL,aAAa,EACb,SAAS,EACT,YAAY,EACZ,qBAAqB,EAEtB,MAAM,kBAAkB,CAAC;AAI1B,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AA8HrE,qBAAa,IAAI;IACf,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAS;IAChC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAA0C;IACvE,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAa;IACxC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAe;IAExC,OAAO,CAAC,iBAAiB,CAAoB;gBAEjC,MAAM,EAAE,MAAM,EAAE,QAAQ,GAAE,YAAiB;IAwBjD,IAAI;IAQV,WAAW,IAAI,IAAI;IAMnB;;;;;;;;;;;;;;;;OAgBG;IACG,SAAS,CACb,IAAI,EAAE,SAAS,EACf,IAAI,CAAC,EAAE,aAAa,EACpB,SAAS,CAAC,EAAE,MAAM,EAClB,iBAAiB,CAAC,EAAE,MAAM,GACzB,OAAO,CAAC,GAAG,CAAC;IAoFf,gBAAgB,IAAI,IAAI;IAUxB;;;;;;;QAOI;IACJ,oBAAoB,CAAC,EACnB,OAAO,EACP,SAAS,EACT,OAAO,GACR,EAAE,qBAAqB,GAAG,MAAM;IAO3B,iBAAiB,IAAI,OAAO,CAAC,aAAa,EAAE,CAAC;CAGpD;;;;AAED,wBAEE"}
|
|
@@ -9,6 +9,15 @@ interface ConversionPaymentActionArgs {
|
|
|
9
9
|
referral_amount: number;
|
|
10
10
|
referrer_amount: number;
|
|
11
11
|
}
|
|
12
|
+
interface ContractDTO {
|
|
13
|
+
address: string;
|
|
14
|
+
network: string;
|
|
15
|
+
}
|
|
16
|
+
interface TriggerDTO {
|
|
17
|
+
name: string;
|
|
18
|
+
description: string;
|
|
19
|
+
contracts: ContractDTO[];
|
|
20
|
+
}
|
|
12
21
|
export interface ConversionDTO {
|
|
13
22
|
action_args?: ConversionPaymentActionArgs;
|
|
14
23
|
action_type?: string;
|
|
@@ -18,6 +27,7 @@ export interface ConversionDTO {
|
|
|
18
27
|
id: string;
|
|
19
28
|
name: string;
|
|
20
29
|
project: Project;
|
|
30
|
+
triggers: TriggerDTO[];
|
|
21
31
|
}
|
|
22
32
|
export {};
|
|
23
33
|
//# sourceMappingURL=dtos.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dtos.d.ts","sourceRoot":"","sources":["../../../../../src/infrastructure/conversions/dtos.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,UAAU,2BAA2B;IACnC,YAAY,EAAE,MAAM,CAAC;IACrB,gBAAgB,EAAE,MAAM,CAAC;IACzB,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,aAAa;IAC5B,WAAW,CAAC,EAAE,2BAA2B,CAAC;IAC1C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,EAAE,MAAM,CAAC;IACzB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"dtos.d.ts","sourceRoot":"","sources":["../../../../../src/infrastructure/conversions/dtos.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,UAAU,2BAA2B;IACnC,YAAY,EAAE,MAAM,CAAC;IACrB,gBAAgB,EAAE,MAAM,CAAC;IACzB,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,MAAM,CAAC;CACzB;AAED,UAAU,WAAW;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,UAAU,UAAU;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,WAAW,EAAE,CAAC;CAC1B;AAED,MAAM,WAAW,aAAa;IAC5B,WAAW,CAAC,EAAE,2BAA2B,CAAC;IAC1C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,EAAE,MAAM,CAAC;IACzB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,UAAU,EAAE,CAAC;CACxB"}
|