@segment/action-destinations 3.148.1-optimizely-experimentation.9 → 3.148.1-optimizely-lrucache.13
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/dist/destinations/customerio/createUpdateObject/index.js +6 -1
- package/dist/destinations/customerio/createUpdateObject/index.js.map +1 -1
- package/dist/destinations/customerio/createUpdatePerson/index.js +8 -1
- package/dist/destinations/customerio/createUpdatePerson/index.js.map +1 -1
- package/dist/destinations/index.js +1 -1
- package/dist/destinations/index.js.map +1 -1
- package/dist/destinations/insider/cartViewedEvent/generated-types.d.ts +44 -0
- package/dist/destinations/insider/cartViewedEvent/generated-types.js +3 -0
- package/dist/destinations/insider/cartViewedEvent/generated-types.js.map +1 -0
- package/dist/destinations/insider/cartViewedEvent/index.d.ts +5 -0
- package/dist/destinations/insider/cartViewedEvent/index.js +27 -0
- package/dist/destinations/insider/cartViewedEvent/index.js.map +1 -0
- package/dist/destinations/insider/checkoutEvent/generated-types.d.ts +44 -0
- package/dist/destinations/insider/checkoutEvent/generated-types.js +3 -0
- package/dist/destinations/insider/checkoutEvent/generated-types.js.map +1 -0
- package/dist/destinations/insider/checkoutEvent/index.d.ts +5 -0
- package/dist/destinations/insider/checkoutEvent/index.js +27 -0
- package/dist/destinations/insider/checkoutEvent/index.js.map +1 -0
- package/dist/destinations/insider/generated-types.d.ts +4 -0
- package/dist/destinations/insider/generated-types.js +3 -0
- package/dist/destinations/insider/generated-types.js.map +1 -0
- package/dist/destinations/insider/index.d.ts +4 -0
- package/dist/destinations/insider/index.js +66 -0
- package/dist/destinations/insider/index.js.map +1 -0
- package/dist/destinations/insider/insider-helpers.d.ts +57 -0
- package/dist/destinations/insider/insider-helpers.js +153 -0
- package/dist/destinations/insider/insider-helpers.js.map +1 -0
- package/dist/destinations/insider/insider-properties.d.ts +13 -0
- package/dist/destinations/insider/insider-properties.js +456 -0
- package/dist/destinations/insider/insider-properties.js.map +1 -0
- package/dist/destinations/insider/orderCompletedEvent/generated-types.d.ts +44 -0
- package/dist/destinations/insider/orderCompletedEvent/generated-types.js +3 -0
- package/dist/destinations/insider/orderCompletedEvent/generated-types.js.map +1 -0
- package/dist/destinations/insider/orderCompletedEvent/index.d.ts +5 -0
- package/dist/destinations/insider/orderCompletedEvent/index.js +27 -0
- package/dist/destinations/insider/orderCompletedEvent/index.js.map +1 -0
- package/dist/destinations/insider/productAddedEvent/generated-types.d.ts +41 -0
- package/dist/destinations/insider/productAddedEvent/generated-types.js +3 -0
- package/dist/destinations/insider/productAddedEvent/generated-types.js.map +1 -0
- package/dist/destinations/insider/productAddedEvent/index.d.ts +5 -0
- package/dist/destinations/insider/productAddedEvent/index.js +39 -0
- package/dist/destinations/insider/productAddedEvent/index.js.map +1 -0
- package/dist/destinations/insider/productListViewedEvent/generated-types.d.ts +34 -0
- package/dist/destinations/insider/productListViewedEvent/generated-types.js +3 -0
- package/dist/destinations/insider/productListViewedEvent/generated-types.js.map +1 -0
- package/dist/destinations/insider/productListViewedEvent/index.d.ts +5 -0
- package/dist/destinations/insider/productListViewedEvent/index.js +26 -0
- package/dist/destinations/insider/productListViewedEvent/index.js.map +1 -0
- package/dist/destinations/insider/productRemovedEvent/generated-types.d.ts +41 -0
- package/dist/destinations/insider/productRemovedEvent/generated-types.js +3 -0
- package/dist/destinations/insider/productRemovedEvent/generated-types.js.map +1 -0
- package/dist/destinations/insider/productRemovedEvent/index.d.ts +5 -0
- package/dist/destinations/insider/productRemovedEvent/index.js +39 -0
- package/dist/destinations/insider/productRemovedEvent/index.js.map +1 -0
- package/dist/destinations/insider/productViewedEvent/generated-types.d.ts +41 -0
- package/dist/destinations/insider/productViewedEvent/generated-types.js +3 -0
- package/dist/destinations/insider/productViewedEvent/generated-types.js.map +1 -0
- package/dist/destinations/insider/productViewedEvent/index.d.ts +5 -0
- package/dist/destinations/insider/productViewedEvent/index.js +39 -0
- package/dist/destinations/insider/productViewedEvent/index.js.map +1 -0
- package/dist/destinations/insider/trackEvent/generated-types.d.ts +56 -0
- package/dist/destinations/insider/trackEvent/generated-types.js +3 -0
- package/dist/destinations/insider/trackEvent/generated-types.js.map +1 -0
- package/dist/destinations/insider/trackEvent/index.d.ts +5 -0
- package/dist/destinations/insider/trackEvent/index.js +28 -0
- package/dist/destinations/insider/trackEvent/index.js.map +1 -0
- package/dist/destinations/insider/updateUserProfile/generated-types.d.ts +19 -0
- package/dist/destinations/insider/updateUserProfile/generated-types.js +3 -0
- package/dist/destinations/insider/updateUserProfile/generated-types.js.map +1 -0
- package/dist/destinations/insider/updateUserProfile/index.d.ts +5 -0
- package/dist/destinations/insider/updateUserProfile/index.js +141 -0
- package/dist/destinations/insider/updateUserProfile/index.js.map +1 -0
- package/dist/destinations/insider/userRegisteredEvent/generated-types.d.ts +28 -0
- package/dist/destinations/insider/userRegisteredEvent/generated-types.js +3 -0
- package/dist/destinations/insider/userRegisteredEvent/generated-types.js.map +1 -0
- package/dist/destinations/insider/userRegisteredEvent/index.d.ts +5 -0
- package/dist/destinations/insider/userRegisteredEvent/index.js +25 -0
- package/dist/destinations/insider/userRegisteredEvent/index.js.map +1 -0
- package/dist/destinations/insider-audiences/generated-types.d.ts +4 -0
- package/dist/destinations/insider-audiences/generated-types.js +3 -0
- package/dist/destinations/insider-audiences/generated-types.js.map +1 -0
- package/dist/destinations/insider-audiences/index.d.ts +4 -0
- package/dist/destinations/insider-audiences/index.js +47 -0
- package/dist/destinations/insider-audiences/index.js.map +1 -0
- package/dist/destinations/insider-audiences/insider-helpers.d.ts +6 -0
- package/dist/destinations/insider-audiences/insider-helpers.js +179 -0
- package/dist/destinations/insider-audiences/insider-helpers.js.map +1 -0
- package/dist/destinations/insider-audiences/insiderAudiences/generated-types.d.ts +14 -0
- package/dist/destinations/insider-audiences/insiderAudiences/generated-types.js +3 -0
- package/dist/destinations/insider-audiences/insiderAudiences/generated-types.js.map +1 -0
- package/dist/destinations/insider-audiences/insiderAudiences/index.d.ts +5 -0
- package/dist/destinations/insider-audiences/insiderAudiences/index.js +123 -0
- package/dist/destinations/insider-audiences/insiderAudiences/index.js.map +1 -0
- package/dist/destinations/optimizely-feature-experimentation-actions/generated-types.d.ts +1 -0
- package/dist/destinations/optimizely-feature-experimentation-actions/index.js +10 -3
- package/dist/destinations/optimizely-feature-experimentation-actions/index.js.map +1 -1
- package/dist/destinations/optimizely-feature-experimentation-actions/trackEvent/functions.d.ts +17 -3
- package/dist/destinations/optimizely-feature-experimentation-actions/trackEvent/functions.js +75 -1
- package/dist/destinations/optimizely-feature-experimentation-actions/trackEvent/functions.js.map +1 -1
- package/dist/destinations/optimizely-feature-experimentation-actions/trackEvent/index.js +4 -6
- package/dist/destinations/optimizely-feature-experimentation-actions/trackEvent/index.js.map +1 -1
- package/dist/destinations/optimizely-feature-experimentation-actions/types.d.ts +5 -0
- package/dist/destinations/optimizely-feature-experimentation-actions/utils.d.ts +5 -0
- package/dist/destinations/optimizely-feature-experimentation-actions/utils.js +10 -0
- package/dist/destinations/optimizely-feature-experimentation-actions/utils.js.map +1 -0
- package/package.json +4 -4
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export interface Payload {
|
|
2
|
+
email_as_identifier?: boolean;
|
|
3
|
+
phone_number_as_identifier?: boolean;
|
|
4
|
+
uuid?: string;
|
|
5
|
+
segment_anonymous_id?: string;
|
|
6
|
+
timestamp: string | number;
|
|
7
|
+
parameters?: {
|
|
8
|
+
url?: string;
|
|
9
|
+
taxonomy?: string;
|
|
10
|
+
referrer?: string;
|
|
11
|
+
[k: string]: unknown;
|
|
12
|
+
};
|
|
13
|
+
attributes?: {
|
|
14
|
+
email?: string;
|
|
15
|
+
phone?: string;
|
|
16
|
+
age?: number;
|
|
17
|
+
birthday?: string;
|
|
18
|
+
name?: string;
|
|
19
|
+
gender?: string;
|
|
20
|
+
surname?: string;
|
|
21
|
+
app_version?: string;
|
|
22
|
+
idfa?: string;
|
|
23
|
+
model?: string;
|
|
24
|
+
last_ip?: string;
|
|
25
|
+
city?: string;
|
|
26
|
+
country?: string;
|
|
27
|
+
carrier?: string;
|
|
28
|
+
os_version?: string;
|
|
29
|
+
platform?: string;
|
|
30
|
+
timezone?: string;
|
|
31
|
+
locale?: string;
|
|
32
|
+
[k: string]: unknown;
|
|
33
|
+
};
|
|
34
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/insider/productListViewedEvent/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const insider_properties_1 = require("../insider-properties");
|
|
4
|
+
const insider_helpers_1 = require("../insider-helpers");
|
|
5
|
+
const action = {
|
|
6
|
+
title: 'Product List Viewed Event',
|
|
7
|
+
description: 'Record Product List View Event to Insider',
|
|
8
|
+
defaultSubscription: 'type = "track" and event = "Product List Viewed"',
|
|
9
|
+
fields: {
|
|
10
|
+
email_as_identifier: { ...insider_properties_1.email_as_identifier },
|
|
11
|
+
phone_number_as_identifier: { ...insider_properties_1.phone_number_as_identifier },
|
|
12
|
+
uuid: { ...insider_properties_1.uuid },
|
|
13
|
+
segment_anonymous_id: { ...insider_properties_1.segment_anonymous_id },
|
|
14
|
+
timestamp: { ...insider_properties_1.timestamp },
|
|
15
|
+
parameters: { ...insider_properties_1.getEventParameteres(['taxonomy', 'url', 'referrer']) },
|
|
16
|
+
attributes: { ...insider_properties_1.user_attributes }
|
|
17
|
+
},
|
|
18
|
+
perform: (request, data) => {
|
|
19
|
+
return request(`${insider_helpers_1.API_BASE}${insider_helpers_1.UPSERT_ENDPOINT}`, {
|
|
20
|
+
method: 'post',
|
|
21
|
+
json: insider_helpers_1.sendTrackEvent(data.payload, 'listing_page_view')
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
exports.default = action;
|
|
26
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/insider/productListViewedEvent/index.ts"],"names":[],"mappings":";;AAGA,8DAQ8B;AAC9B,wDAA8E;AAE9E,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,2BAA2B;IAClC,WAAW,EAAE,2CAA2C;IACxD,mBAAmB,EAAE,kDAAkD;IACvE,MAAM,EAAE;QACN,mBAAmB,EAAE,EAAE,GAAG,wCAAmB,EAAE;QAC/C,0BAA0B,EAAE,EAAE,GAAG,+CAA0B,EAAE;QAC7D,IAAI,EAAE,EAAE,GAAG,yBAAI,EAAE;QACjB,oBAAoB,EAAE,EAAE,GAAG,yCAAoB,EAAE;QACjD,SAAS,EAAE,EAAE,GAAG,8BAAS,EAAE;QAC3B,UAAU,EAAE,EAAE,GAAG,wCAAmB,CAAC,CAAC,UAAU,EAAE,KAAK,EAAE,UAAU,CAAC,CAAC,EAAE;QACvE,UAAU,EAAE,EAAE,GAAG,oCAAe,EAAE;KACnC;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,IAAI,EAAE,EAAE;QACzB,OAAO,OAAO,CAAC,GAAG,0BAAQ,GAAG,iCAAe,EAAE,EAAE;YAC9C,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,gCAAc,CAAC,IAAI,CAAC,OAAO,EAAE,mBAAmB,CAAC;SACxD,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export interface Payload {
|
|
2
|
+
email_as_identifier?: boolean;
|
|
3
|
+
phone_number_as_identifier?: boolean;
|
|
4
|
+
uuid?: string;
|
|
5
|
+
segment_anonymous_id?: string;
|
|
6
|
+
timestamp: string | number;
|
|
7
|
+
parameters?: {
|
|
8
|
+
url?: string;
|
|
9
|
+
currency?: string;
|
|
10
|
+
product_id?: string;
|
|
11
|
+
taxonomy?: string;
|
|
12
|
+
name?: string;
|
|
13
|
+
unit_sale_price?: number;
|
|
14
|
+
unit_price?: number;
|
|
15
|
+
quantity?: number;
|
|
16
|
+
product_image_url?: string;
|
|
17
|
+
referrer?: string;
|
|
18
|
+
[k: string]: unknown;
|
|
19
|
+
};
|
|
20
|
+
attributes?: {
|
|
21
|
+
email?: string;
|
|
22
|
+
phone?: string;
|
|
23
|
+
age?: number;
|
|
24
|
+
birthday?: string;
|
|
25
|
+
name?: string;
|
|
26
|
+
gender?: string;
|
|
27
|
+
surname?: string;
|
|
28
|
+
app_version?: string;
|
|
29
|
+
idfa?: string;
|
|
30
|
+
model?: string;
|
|
31
|
+
last_ip?: string;
|
|
32
|
+
city?: string;
|
|
33
|
+
country?: string;
|
|
34
|
+
carrier?: string;
|
|
35
|
+
os_version?: string;
|
|
36
|
+
platform?: string;
|
|
37
|
+
timezone?: string;
|
|
38
|
+
locale?: string;
|
|
39
|
+
[k: string]: unknown;
|
|
40
|
+
};
|
|
41
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/insider/productRemovedEvent/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const insider_properties_1 = require("../insider-properties");
|
|
4
|
+
const insider_helpers_1 = require("../insider-helpers");
|
|
5
|
+
const action = {
|
|
6
|
+
title: 'Product Removed Event',
|
|
7
|
+
description: 'Record Product Removed Event to Insider',
|
|
8
|
+
defaultSubscription: 'type = "track" and event = "Product Removed"',
|
|
9
|
+
fields: {
|
|
10
|
+
email_as_identifier: { ...insider_properties_1.email_as_identifier },
|
|
11
|
+
phone_number_as_identifier: { ...insider_properties_1.phone_number_as_identifier },
|
|
12
|
+
uuid: { ...insider_properties_1.uuid },
|
|
13
|
+
segment_anonymous_id: { ...insider_properties_1.segment_anonymous_id },
|
|
14
|
+
timestamp: { ...insider_properties_1.timestamp },
|
|
15
|
+
parameters: {
|
|
16
|
+
...insider_properties_1.getEventParameteres([
|
|
17
|
+
'taxonomy',
|
|
18
|
+
'url',
|
|
19
|
+
'currency',
|
|
20
|
+
'unit_price',
|
|
21
|
+
'unit_sale_price',
|
|
22
|
+
'referrer',
|
|
23
|
+
'product_id',
|
|
24
|
+
'name',
|
|
25
|
+
'product_image_url',
|
|
26
|
+
'quantity'
|
|
27
|
+
])
|
|
28
|
+
},
|
|
29
|
+
attributes: { ...insider_properties_1.user_attributes }
|
|
30
|
+
},
|
|
31
|
+
perform: (request, data) => {
|
|
32
|
+
return request(`${insider_helpers_1.API_BASE}${insider_helpers_1.UPSERT_ENDPOINT}`, {
|
|
33
|
+
method: 'post',
|
|
34
|
+
json: insider_helpers_1.sendTrackEvent(data.payload, 'item_removed_from_cart')
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
exports.default = action;
|
|
39
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/insider/productRemovedEvent/index.ts"],"names":[],"mappings":";;AAGA,8DAQ8B;AAC9B,wDAA8E;AAE9E,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,uBAAuB;IAC9B,WAAW,EAAE,yCAAyC;IACtD,mBAAmB,EAAE,8CAA8C;IACnE,MAAM,EAAE;QACN,mBAAmB,EAAE,EAAE,GAAG,wCAAmB,EAAE;QAC/C,0BAA0B,EAAE,EAAE,GAAG,+CAA0B,EAAE;QAC7D,IAAI,EAAE,EAAE,GAAG,yBAAI,EAAE;QACjB,oBAAoB,EAAE,EAAE,GAAG,yCAAoB,EAAE;QACjD,SAAS,EAAE,EAAE,GAAG,8BAAS,EAAE;QAC3B,UAAU,EAAE;YACV,GAAG,wCAAmB,CAAC;gBACrB,UAAU;gBACV,KAAK;gBACL,UAAU;gBACV,YAAY;gBACZ,iBAAiB;gBACjB,UAAU;gBACV,YAAY;gBACZ,MAAM;gBACN,mBAAmB;gBACnB,UAAU;aACX,CAAC;SACH;QACD,UAAU,EAAE,EAAE,GAAG,oCAAe,EAAE;KACnC;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,IAAI,EAAE,EAAE;QACzB,OAAO,OAAO,CAAC,GAAG,0BAAQ,GAAG,iCAAe,EAAE,EAAE;YAC9C,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,gCAAc,CAAC,IAAI,CAAC,OAAO,EAAE,wBAAwB,CAAC;SAC7D,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export interface Payload {
|
|
2
|
+
email_as_identifier?: boolean;
|
|
3
|
+
phone_number_as_identifier?: boolean;
|
|
4
|
+
uuid?: string;
|
|
5
|
+
segment_anonymous_id?: string;
|
|
6
|
+
timestamp: string | number;
|
|
7
|
+
parameters?: {
|
|
8
|
+
url?: string;
|
|
9
|
+
currency?: string;
|
|
10
|
+
product_id?: string;
|
|
11
|
+
taxonomy?: string;
|
|
12
|
+
name?: string;
|
|
13
|
+
unit_sale_price?: number;
|
|
14
|
+
unit_price?: number;
|
|
15
|
+
quantity?: number;
|
|
16
|
+
product_image_url?: string;
|
|
17
|
+
referrer?: string;
|
|
18
|
+
[k: string]: unknown;
|
|
19
|
+
};
|
|
20
|
+
attributes?: {
|
|
21
|
+
email?: string;
|
|
22
|
+
phone?: string;
|
|
23
|
+
age?: number;
|
|
24
|
+
birthday?: string;
|
|
25
|
+
name?: string;
|
|
26
|
+
gender?: string;
|
|
27
|
+
surname?: string;
|
|
28
|
+
app_version?: string;
|
|
29
|
+
idfa?: string;
|
|
30
|
+
model?: string;
|
|
31
|
+
last_ip?: string;
|
|
32
|
+
city?: string;
|
|
33
|
+
country?: string;
|
|
34
|
+
carrier?: string;
|
|
35
|
+
os_version?: string;
|
|
36
|
+
platform?: string;
|
|
37
|
+
timezone?: string;
|
|
38
|
+
locale?: string;
|
|
39
|
+
[k: string]: unknown;
|
|
40
|
+
};
|
|
41
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/insider/productViewedEvent/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const insider_properties_1 = require("../insider-properties");
|
|
4
|
+
const insider_helpers_1 = require("../insider-helpers");
|
|
5
|
+
const action = {
|
|
6
|
+
title: 'Product Viewed Event',
|
|
7
|
+
description: 'Record Product View Event to Insider',
|
|
8
|
+
defaultSubscription: 'type = "track" and event = "Product Viewed"',
|
|
9
|
+
fields: {
|
|
10
|
+
email_as_identifier: { ...insider_properties_1.email_as_identifier },
|
|
11
|
+
phone_number_as_identifier: { ...insider_properties_1.phone_number_as_identifier },
|
|
12
|
+
uuid: { ...insider_properties_1.uuid },
|
|
13
|
+
segment_anonymous_id: { ...insider_properties_1.segment_anonymous_id },
|
|
14
|
+
timestamp: { ...insider_properties_1.timestamp },
|
|
15
|
+
parameters: {
|
|
16
|
+
...insider_properties_1.getEventParameteres([
|
|
17
|
+
'taxonomy',
|
|
18
|
+
'url',
|
|
19
|
+
'currency',
|
|
20
|
+
'unit_price',
|
|
21
|
+
'unit_sale_price',
|
|
22
|
+
'referrer',
|
|
23
|
+
'product_id',
|
|
24
|
+
'name',
|
|
25
|
+
'product_image_url',
|
|
26
|
+
'quantity'
|
|
27
|
+
])
|
|
28
|
+
},
|
|
29
|
+
attributes: { ...insider_properties_1.user_attributes }
|
|
30
|
+
},
|
|
31
|
+
perform: (request, data) => {
|
|
32
|
+
return request(`${insider_helpers_1.API_BASE}${insider_helpers_1.UPSERT_ENDPOINT}`, {
|
|
33
|
+
method: 'post',
|
|
34
|
+
json: insider_helpers_1.sendTrackEvent(data.payload, 'product_detail_page_view')
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
exports.default = action;
|
|
39
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/insider/productViewedEvent/index.ts"],"names":[],"mappings":";;AAGA,8DAQ8B;AAC9B,wDAA8E;AAE9E,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,sBAAsB;IAC7B,WAAW,EAAE,sCAAsC;IACnD,mBAAmB,EAAE,6CAA6C;IAClE,MAAM,EAAE;QACN,mBAAmB,EAAE,EAAE,GAAG,wCAAmB,EAAE;QAC/C,0BAA0B,EAAE,EAAE,GAAG,+CAA0B,EAAE;QAC7D,IAAI,EAAE,EAAE,GAAG,yBAAI,EAAE;QACjB,oBAAoB,EAAE,EAAE,GAAG,yCAAoB,EAAE;QACjD,SAAS,EAAE,EAAE,GAAG,8BAAS,EAAE;QAC3B,UAAU,EAAE;YACV,GAAG,wCAAmB,CAAC;gBACrB,UAAU;gBACV,KAAK;gBACL,UAAU;gBACV,YAAY;gBACZ,iBAAiB;gBACjB,UAAU;gBACV,YAAY;gBACZ,MAAM;gBACN,mBAAmB;gBACnB,UAAU;aACX,CAAC;SACH;QACD,UAAU,EAAE,EAAE,GAAG,oCAAe,EAAE;KACnC;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,IAAI,EAAE,EAAE;QACzB,OAAO,OAAO,CAAC,GAAG,0BAAQ,GAAG,iCAAe,EAAE,EAAE;YAC9C,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,gCAAc,CAAC,IAAI,CAAC,OAAO,EAAE,0BAA0B,CAAC;SAC/D,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
export interface Payload {
|
|
2
|
+
email_as_identifier?: boolean;
|
|
3
|
+
phone_number_as_identifier?: boolean;
|
|
4
|
+
uuid?: string;
|
|
5
|
+
segment_anonymous_id?: string;
|
|
6
|
+
event_name: string;
|
|
7
|
+
timestamp: string | number;
|
|
8
|
+
parameters?: {
|
|
9
|
+
url?: string;
|
|
10
|
+
currency?: string;
|
|
11
|
+
product_id?: string;
|
|
12
|
+
taxonomy?: string;
|
|
13
|
+
name?: string;
|
|
14
|
+
variant_id?: number;
|
|
15
|
+
unit_sale_price?: number;
|
|
16
|
+
unit_price?: number;
|
|
17
|
+
quantity?: number;
|
|
18
|
+
product_image_url?: string;
|
|
19
|
+
event_group_id?: string;
|
|
20
|
+
referrer?: string;
|
|
21
|
+
user_agent?: string;
|
|
22
|
+
[k: string]: unknown;
|
|
23
|
+
};
|
|
24
|
+
products?: {
|
|
25
|
+
product_id?: string;
|
|
26
|
+
taxonomy?: string;
|
|
27
|
+
name?: string;
|
|
28
|
+
unit_sale_price?: number;
|
|
29
|
+
unit_price?: number;
|
|
30
|
+
quantity?: number;
|
|
31
|
+
url?: string;
|
|
32
|
+
product_image_url?: string;
|
|
33
|
+
[k: string]: unknown;
|
|
34
|
+
}[];
|
|
35
|
+
attributes?: {
|
|
36
|
+
email?: string;
|
|
37
|
+
phone?: string;
|
|
38
|
+
age?: number;
|
|
39
|
+
birthday?: string;
|
|
40
|
+
name?: string;
|
|
41
|
+
gender?: string;
|
|
42
|
+
surname?: string;
|
|
43
|
+
app_version?: string;
|
|
44
|
+
idfa?: string;
|
|
45
|
+
model?: string;
|
|
46
|
+
last_ip?: string;
|
|
47
|
+
city?: string;
|
|
48
|
+
country?: string;
|
|
49
|
+
carrier?: string;
|
|
50
|
+
os_version?: string;
|
|
51
|
+
platform?: string;
|
|
52
|
+
timezone?: string;
|
|
53
|
+
locale?: string;
|
|
54
|
+
[k: string]: unknown;
|
|
55
|
+
};
|
|
56
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/insider/trackEvent/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const insider_helpers_1 = require("../insider-helpers");
|
|
4
|
+
const insider_properties_1 = require("../insider-properties");
|
|
5
|
+
const action = {
|
|
6
|
+
title: 'Track Event',
|
|
7
|
+
description: 'Record custom event to Insider',
|
|
8
|
+
defaultSubscription: 'type = "track"',
|
|
9
|
+
fields: {
|
|
10
|
+
email_as_identifier: { ...insider_properties_1.email_as_identifier },
|
|
11
|
+
phone_number_as_identifier: { ...insider_properties_1.phone_number_as_identifier },
|
|
12
|
+
uuid: { ...insider_properties_1.uuid },
|
|
13
|
+
segment_anonymous_id: { ...insider_properties_1.segment_anonymous_id },
|
|
14
|
+
event_name: { ...insider_properties_1.event_name },
|
|
15
|
+
timestamp: { ...insider_properties_1.timestamp },
|
|
16
|
+
parameters: { ...insider_properties_1.getEventParameteres([]) },
|
|
17
|
+
products: { ...insider_properties_1.products },
|
|
18
|
+
attributes: { ...insider_properties_1.user_attributes }
|
|
19
|
+
},
|
|
20
|
+
perform: (request, data) => {
|
|
21
|
+
return request(`${insider_helpers_1.API_BASE}${insider_helpers_1.UPSERT_ENDPOINT}`, {
|
|
22
|
+
method: 'post',
|
|
23
|
+
json: insider_helpers_1.sendTrackEvent(data.payload, data.payload.event_name)
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
exports.default = action;
|
|
28
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/insider/trackEvent/index.ts"],"names":[],"mappings":";;AAGA,wDAA8E;AAC9E,8DAU8B;AAE9B,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,aAAa;IACpB,WAAW,EAAE,gCAAgC;IAC7C,mBAAmB,EAAE,gBAAgB;IACrC,MAAM,EAAE;QACN,mBAAmB,EAAE,EAAE,GAAG,wCAAmB,EAAE;QAC/C,0BAA0B,EAAE,EAAE,GAAG,+CAA0B,EAAE;QAC7D,IAAI,EAAE,EAAE,GAAG,yBAAI,EAAE;QACjB,oBAAoB,EAAE,EAAE,GAAG,yCAAoB,EAAE;QACjD,UAAU,EAAE,EAAE,GAAG,+BAAU,EAAE;QAC7B,SAAS,EAAE,EAAE,GAAG,8BAAS,EAAE;QAC3B,UAAU,EAAE,EAAE,GAAG,wCAAmB,CAAC,EAAE,CAAC,EAAE;QAC1C,QAAQ,EAAE,EAAE,GAAG,6BAAQ,EAAE;QACzB,UAAU,EAAE,EAAE,GAAG,oCAAe,EAAE;KACnC;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,IAAI,EAAE,EAAE;QACzB,OAAO,OAAO,CAAC,GAAG,0BAAQ,GAAG,iCAAe,EAAE,EAAE;YAC9C,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,gCAAc,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC;SAC5D,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export interface Payload {
|
|
2
|
+
email_as_identifier?: boolean;
|
|
3
|
+
phone_number_as_identifier?: boolean;
|
|
4
|
+
age?: number;
|
|
5
|
+
birthday?: string;
|
|
6
|
+
email?: string;
|
|
7
|
+
firstName?: string;
|
|
8
|
+
gender?: string;
|
|
9
|
+
lastName?: string;
|
|
10
|
+
phone?: string;
|
|
11
|
+
uuid?: string;
|
|
12
|
+
segment_anonymous_id?: string;
|
|
13
|
+
city?: string;
|
|
14
|
+
country?: string;
|
|
15
|
+
emailOptin?: boolean;
|
|
16
|
+
smsOptin?: boolean;
|
|
17
|
+
whatsappOptin?: boolean;
|
|
18
|
+
language?: string;
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/insider/updateUserProfile/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const insider_helpers_1 = require("../insider-helpers");
|
|
4
|
+
const action = {
|
|
5
|
+
title: 'Create or Update a User Profile',
|
|
6
|
+
description: "Action used to update a User's attribute in Insider InOne.",
|
|
7
|
+
defaultSubscription: 'type = "identify"',
|
|
8
|
+
fields: {
|
|
9
|
+
email_as_identifier: {
|
|
10
|
+
label: 'Treat Email as Identifier',
|
|
11
|
+
type: 'boolean',
|
|
12
|
+
description: 'If true, Email will be sent as identifier to Insider.',
|
|
13
|
+
default: true
|
|
14
|
+
},
|
|
15
|
+
phone_number_as_identifier: {
|
|
16
|
+
label: 'Treat Phone Number as Identifier',
|
|
17
|
+
type: 'boolean',
|
|
18
|
+
description: 'If true, Phone Number will be sent as identifier to Insider',
|
|
19
|
+
default: true
|
|
20
|
+
},
|
|
21
|
+
age: {
|
|
22
|
+
label: 'Age',
|
|
23
|
+
type: 'number',
|
|
24
|
+
description: 'Age of a user.',
|
|
25
|
+
default: {
|
|
26
|
+
'@path': '$.traits.age'
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
birthday: {
|
|
30
|
+
label: 'Birthday',
|
|
31
|
+
type: 'string',
|
|
32
|
+
description: 'User’s birthday',
|
|
33
|
+
default: {
|
|
34
|
+
'@path': '$.traits.birthday'
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
email: {
|
|
38
|
+
label: 'Email',
|
|
39
|
+
type: 'string',
|
|
40
|
+
description: 'Email address of a user.',
|
|
41
|
+
default: {
|
|
42
|
+
'@path': '$.traits.email'
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
firstName: {
|
|
46
|
+
label: 'First Name',
|
|
47
|
+
description: 'First name of a user.',
|
|
48
|
+
type: 'string',
|
|
49
|
+
default: {
|
|
50
|
+
'@path': '$.traits.first_name'
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
gender: {
|
|
54
|
+
label: 'Gender',
|
|
55
|
+
description: 'Gender of a user.',
|
|
56
|
+
type: 'string',
|
|
57
|
+
default: {
|
|
58
|
+
'@path': '$.traits.gender'
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
lastName: {
|
|
62
|
+
label: 'Last Name',
|
|
63
|
+
description: 'Last name of a user.',
|
|
64
|
+
type: 'string',
|
|
65
|
+
default: {
|
|
66
|
+
'@path': '$.traits.last_name'
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
phone: {
|
|
70
|
+
label: 'Phone Number',
|
|
71
|
+
description: "User's phone number in E.164 format (e.g. +6598765432), can be used as an identifier.",
|
|
72
|
+
type: 'string',
|
|
73
|
+
default: {
|
|
74
|
+
'@path': '$.traits.phone'
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
uuid: {
|
|
78
|
+
label: 'UUID',
|
|
79
|
+
type: 'string',
|
|
80
|
+
description: "User's unique identifier. The UUID string is used as identifier when sending data to Insider. UUID is required if the Anonymous Id field is empty.",
|
|
81
|
+
default: {
|
|
82
|
+
'@path': '$.userId'
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
segment_anonymous_id: {
|
|
86
|
+
label: 'Anonymous Id',
|
|
87
|
+
type: 'string',
|
|
88
|
+
description: 'An Anonymous Identifier. The Anonymous Id string is used as identifier when sending data to Insider. Anonymous Id is required if the UUID field is empty.',
|
|
89
|
+
default: {
|
|
90
|
+
'@path': '$.anonymousId'
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
city: {
|
|
94
|
+
label: 'City',
|
|
95
|
+
type: 'string',
|
|
96
|
+
description: 'City',
|
|
97
|
+
default: {
|
|
98
|
+
'@path': '$.traits.address.city'
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
country: {
|
|
102
|
+
label: 'Country',
|
|
103
|
+
type: 'string',
|
|
104
|
+
description: 'Country',
|
|
105
|
+
default: {
|
|
106
|
+
'@path': '$.traits.address.country'
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
emailOptin: {
|
|
110
|
+
label: 'Email Optin',
|
|
111
|
+
type: 'boolean',
|
|
112
|
+
default: undefined,
|
|
113
|
+
description: 'Email optin.'
|
|
114
|
+
},
|
|
115
|
+
smsOptin: {
|
|
116
|
+
label: 'SMS Optin',
|
|
117
|
+
type: 'boolean',
|
|
118
|
+
default: undefined,
|
|
119
|
+
description: 'SMS optin.'
|
|
120
|
+
},
|
|
121
|
+
whatsappOptin: {
|
|
122
|
+
label: 'Whatsapp Optin',
|
|
123
|
+
type: 'boolean',
|
|
124
|
+
default: undefined,
|
|
125
|
+
description: 'Whatsapp optin.'
|
|
126
|
+
},
|
|
127
|
+
language: {
|
|
128
|
+
label: 'Language',
|
|
129
|
+
description: "The user's preferred language.",
|
|
130
|
+
type: 'string'
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
perform: (request, data) => {
|
|
134
|
+
return request(`${insider_helpers_1.API_BASE}${insider_helpers_1.UPSERT_ENDPOINT}`, {
|
|
135
|
+
method: 'post',
|
|
136
|
+
json: insider_helpers_1.userProfilePayload(data.payload)
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
};
|
|
140
|
+
exports.default = action;
|
|
141
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/insider/updateUserProfile/index.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export interface Payload {
|
|
2
|
+
email_as_identifier?: boolean;
|
|
3
|
+
phone_number_as_identifier?: boolean;
|
|
4
|
+
uuid?: string;
|
|
5
|
+
segment_anonymous_id?: string;
|
|
6
|
+
timestamp: string | number;
|
|
7
|
+
attributes?: {
|
|
8
|
+
email?: string;
|
|
9
|
+
phone?: string;
|
|
10
|
+
age?: number;
|
|
11
|
+
birthday?: string;
|
|
12
|
+
name?: string;
|
|
13
|
+
gender?: string;
|
|
14
|
+
surname?: string;
|
|
15
|
+
app_version?: string;
|
|
16
|
+
idfa?: string;
|
|
17
|
+
model?: string;
|
|
18
|
+
last_ip?: string;
|
|
19
|
+
city?: string;
|
|
20
|
+
country?: string;
|
|
21
|
+
carrier?: string;
|
|
22
|
+
os_version?: string;
|
|
23
|
+
platform?: string;
|
|
24
|
+
timezone?: string;
|
|
25
|
+
locale?: string;
|
|
26
|
+
[k: string]: unknown;
|
|
27
|
+
};
|
|
28
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/insider/userRegisteredEvent/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const insider_properties_1 = require("../insider-properties");
|
|
4
|
+
const insider_helpers_1 = require("../insider-helpers");
|
|
5
|
+
const action = {
|
|
6
|
+
title: 'User Registered Event',
|
|
7
|
+
description: 'Record User Registered Event to Insider',
|
|
8
|
+
defaultSubscription: 'type = "track" and event = "User Registered"',
|
|
9
|
+
fields: {
|
|
10
|
+
email_as_identifier: { ...insider_properties_1.email_as_identifier },
|
|
11
|
+
phone_number_as_identifier: { ...insider_properties_1.phone_number_as_identifier },
|
|
12
|
+
uuid: { ...insider_properties_1.uuid },
|
|
13
|
+
segment_anonymous_id: { ...insider_properties_1.segment_anonymous_id },
|
|
14
|
+
timestamp: { ...insider_properties_1.timestamp },
|
|
15
|
+
attributes: { ...insider_properties_1.user_attributes }
|
|
16
|
+
},
|
|
17
|
+
perform: (request, data) => {
|
|
18
|
+
return request(`${insider_helpers_1.API_BASE}${insider_helpers_1.UPSERT_ENDPOINT}`, {
|
|
19
|
+
method: 'post',
|
|
20
|
+
json: insider_helpers_1.sendTrackEvent(data.payload, 'sign_up_confirmation')
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
exports.default = action;
|
|
25
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/insider/userRegisteredEvent/index.ts"],"names":[],"mappings":";;AAGA,8DAO8B;AAC9B,wDAA8E;AAE9E,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,uBAAuB;IAC9B,WAAW,EAAE,yCAAyC;IACtD,mBAAmB,EAAE,8CAA8C;IACnE,MAAM,EAAE;QACN,mBAAmB,EAAE,EAAE,GAAG,wCAAmB,EAAE;QAC/C,0BAA0B,EAAE,EAAE,GAAG,+CAA0B,EAAE;QAC7D,IAAI,EAAE,EAAE,GAAG,yBAAI,EAAE;QACjB,oBAAoB,EAAE,EAAE,GAAG,yCAAoB,EAAE;QACjD,SAAS,EAAE,EAAE,GAAG,8BAAS,EAAE;QAC3B,UAAU,EAAE,EAAE,GAAG,oCAAe,EAAE;KACnC;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,IAAI,EAAE,EAAE;QACzB,OAAO,OAAO,CAAC,GAAG,0BAAQ,GAAG,iCAAe,EAAE,EAAE;YAC9C,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,gCAAc,CAAC,IAAI,CAAC,OAAO,EAAE,sBAAsB,CAAC;SAC3D,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|