@segment/action-destinations 3.74.4-alpha.6 → 3.74.4-alpha.7
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/snap-conversions-api/_tests_/index.test.d.ts +0 -1
- package/dist/destinations/snap-conversions-api/_tests_/index.test.js +0 -202
- package/dist/destinations/snap-conversions-api/_tests_/index.test.js.map +1 -1
- package/dist/destinations/snap-conversions-api/index.js +0 -133
- package/dist/destinations/snap-conversions-api/index.js.map +1 -1
- package/dist/destinations/snap-conversions-api/reportConversionEvent/generated-types.d.ts +0 -23
- package/package.json +2 -2
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,204 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const nock_1 = __importDefault(require("nock"));
|
|
7
|
-
const actions_core_1 = require("@segment/actions-core");
|
|
8
|
-
const index_1 = __importDefault(require("../index"));
|
|
9
|
-
const testDestination = actions_core_1.createTestIntegration(index_1.default);
|
|
10
|
-
const timestamp = '2022-05-12T15:21:15.449Z';
|
|
11
|
-
const settings = {
|
|
12
|
-
snap_app_id: 'test123',
|
|
13
|
-
pixel_id: 'test123',
|
|
14
|
-
app_id: 'test123'
|
|
15
|
-
};
|
|
16
|
-
const accessToken = 'test123';
|
|
17
|
-
const refreshToken = 'test123';
|
|
18
|
-
const testEvent = actions_core_1.createTestEvent({
|
|
19
|
-
timestamp: timestamp,
|
|
20
|
-
messageId: 'test-message-rv4t40s898k',
|
|
21
|
-
event: 'PURCHASE',
|
|
22
|
-
type: 'track',
|
|
23
|
-
properties: {
|
|
24
|
-
email: 'test123@gmail.com',
|
|
25
|
-
phone: '+44 844 412 4653',
|
|
26
|
-
event_tag: 'back-to-school',
|
|
27
|
-
number_items: 10,
|
|
28
|
-
price: '15',
|
|
29
|
-
currency: 'USD',
|
|
30
|
-
level: 3
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
const conversionEventUrl = 'https://tr.snapchat.com/v2/conversion';
|
|
34
|
-
describe('Snap Conversions API ', () => {
|
|
35
|
-
describe('ReportConversionEvent', () => {
|
|
36
|
-
it('should handle a basic event', async () => {
|
|
37
|
-
nock_1.default(conversionEventUrl).post('').reply(200, {});
|
|
38
|
-
const event = actions_core_1.createTestEvent(testEvent);
|
|
39
|
-
const responses = await testDestination.testAction('reportConversionEvent', {
|
|
40
|
-
event,
|
|
41
|
-
settings,
|
|
42
|
-
useDefaultMappings: true,
|
|
43
|
-
auth: {
|
|
44
|
-
accessToken,
|
|
45
|
-
refreshToken
|
|
46
|
-
},
|
|
47
|
-
mapping: {
|
|
48
|
-
event_type: 'PURCHASE',
|
|
49
|
-
event_conversion_type: 'WEB'
|
|
50
|
-
}
|
|
51
|
-
});
|
|
52
|
-
expect(responses).not.toBeNull();
|
|
53
|
-
expect(responses[0].status).toBe(200);
|
|
54
|
-
expect(responses[0].options.body).toMatchInlineSnapshot(`"{\\"event_type\\":\\"PURCHASE\\",\\"event_conversion_type\\":\\"WEB\\",\\"timestamp\\":1652368875449,\\"hashed_email\\":\\"cc779c04191c2e736d89e45c11339c8382832bcaf70383f7df94e3d08ba7a6d9\\",\\"hashed_phone_number\\":\\"dc008fda46e2e64002cf2f82a4906236282d431c4f75e5b60bfe79fc48546383\\",\\"user_agent\\":\\"Mozilla/5.0 (iPhone; CPU iPhone OS 9_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13B143 Safari/601.1\\",\\"hashed_ip_address\\":\\"838c4c2573848f58e74332341a7ca6bc5cd86a8aec7d644137d53b4d597f10f5\\",\\"price\\":15,\\"currency\\":\\"USD\\",\\"page_url\\":\\"https://segment.com/academy/\\",\\"pixel_id\\":\\"test123\\"}"`);
|
|
55
|
-
});
|
|
56
|
-
it('should fail web event without pixel_id', async () => {
|
|
57
|
-
nock_1.default(conversionEventUrl).post('').reply(400, {});
|
|
58
|
-
const event = actions_core_1.createTestEvent(testEvent);
|
|
59
|
-
await expect(testDestination.testAction('reportConversionEvent', {
|
|
60
|
-
event,
|
|
61
|
-
settings: {
|
|
62
|
-
app_id: 'test123'
|
|
63
|
-
},
|
|
64
|
-
useDefaultMappings: true,
|
|
65
|
-
auth: {
|
|
66
|
-
accessToken,
|
|
67
|
-
refreshToken
|
|
68
|
-
},
|
|
69
|
-
mapping: {
|
|
70
|
-
event_type: 'PURCHASE',
|
|
71
|
-
event_conversion_type: 'WEB'
|
|
72
|
-
}
|
|
73
|
-
})).rejects.toThrowError('If event conversion type is "WEB" then pixel_id must be defined');
|
|
74
|
-
});
|
|
75
|
-
it('should fail web event without snap_app_id', async () => {
|
|
76
|
-
nock_1.default(conversionEventUrl).post('').reply(400, {});
|
|
77
|
-
const event = actions_core_1.createTestEvent(testEvent);
|
|
78
|
-
await expect(testDestination.testAction('reportConversionEvent', {
|
|
79
|
-
event,
|
|
80
|
-
settings: {
|
|
81
|
-
pixel_id: 'test123',
|
|
82
|
-
app_id: 'test123'
|
|
83
|
-
},
|
|
84
|
-
useDefaultMappings: true,
|
|
85
|
-
auth: {
|
|
86
|
-
accessToken,
|
|
87
|
-
refreshToken
|
|
88
|
-
},
|
|
89
|
-
mapping: {
|
|
90
|
-
event_type: 'PURCHASE',
|
|
91
|
-
event_conversion_type: 'MOBILE_APP'
|
|
92
|
-
}
|
|
93
|
-
})).rejects.toThrowError('If event conversion type is "MOBILE_APP" then snap_app_id and app_id must be defined');
|
|
94
|
-
});
|
|
95
|
-
it('should handle an offline event conversion type', async () => {
|
|
96
|
-
nock_1.default(conversionEventUrl).post('').reply(200, {});
|
|
97
|
-
const event = actions_core_1.createTestEvent(testEvent);
|
|
98
|
-
const responses = await testDestination.testAction('reportConversionEvent', {
|
|
99
|
-
event,
|
|
100
|
-
settings,
|
|
101
|
-
useDefaultMappings: true,
|
|
102
|
-
auth: {
|
|
103
|
-
accessToken,
|
|
104
|
-
refreshToken
|
|
105
|
-
},
|
|
106
|
-
mapping: {
|
|
107
|
-
event_type: 'SAVE',
|
|
108
|
-
event_conversion_type: 'OFFLINE'
|
|
109
|
-
}
|
|
110
|
-
});
|
|
111
|
-
expect(responses).not.toBeNull();
|
|
112
|
-
expect(responses[0].status).toBe(200);
|
|
113
|
-
expect(responses[0].options.body).toMatchInlineSnapshot(`"{\\"event_type\\":\\"SAVE\\",\\"event_conversion_type\\":\\"OFFLINE\\",\\"timestamp\\":1652368875449,\\"hashed_email\\":\\"cc779c04191c2e736d89e45c11339c8382832bcaf70383f7df94e3d08ba7a6d9\\",\\"hashed_phone_number\\":\\"dc008fda46e2e64002cf2f82a4906236282d431c4f75e5b60bfe79fc48546383\\",\\"user_agent\\":\\"Mozilla/5.0 (iPhone; CPU iPhone OS 9_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13B143 Safari/601.1\\",\\"hashed_ip_address\\":\\"838c4c2573848f58e74332341a7ca6bc5cd86a8aec7d644137d53b4d597f10f5\\",\\"price\\":15,\\"currency\\":\\"USD\\",\\"page_url\\":\\"https://segment.com/academy/\\",\\"pixel_id\\":\\"test123\\"}"`);
|
|
114
|
-
});
|
|
115
|
-
it('should handle a mobile app event conversion type', async () => {
|
|
116
|
-
nock_1.default(conversionEventUrl).post('').reply(200, {});
|
|
117
|
-
const event = actions_core_1.createTestEvent(testEvent);
|
|
118
|
-
const responses = await testDestination.testAction('reportConversionEvent', {
|
|
119
|
-
event,
|
|
120
|
-
settings: {
|
|
121
|
-
snap_app_id: '123',
|
|
122
|
-
app_id: '123'
|
|
123
|
-
},
|
|
124
|
-
useDefaultMappings: true,
|
|
125
|
-
auth: {
|
|
126
|
-
accessToken,
|
|
127
|
-
refreshToken
|
|
128
|
-
},
|
|
129
|
-
mapping: {
|
|
130
|
-
event_type: 'SAVE',
|
|
131
|
-
event_conversion_type: 'MOBILE_APP'
|
|
132
|
-
}
|
|
133
|
-
});
|
|
134
|
-
expect(responses).not.toBeNull();
|
|
135
|
-
expect(responses[0].status).toBe(200);
|
|
136
|
-
expect(responses[0].options.body).toMatchInlineSnapshot(`"{\\"event_type\\":\\"SAVE\\",\\"event_conversion_type\\":\\"MOBILE_APP\\",\\"timestamp\\":1652368875449,\\"hashed_email\\":\\"cc779c04191c2e736d89e45c11339c8382832bcaf70383f7df94e3d08ba7a6d9\\",\\"hashed_phone_number\\":\\"dc008fda46e2e64002cf2f82a4906236282d431c4f75e5b60bfe79fc48546383\\",\\"user_agent\\":\\"Mozilla/5.0 (iPhone; CPU iPhone OS 9_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13B143 Safari/601.1\\",\\"hashed_ip_address\\":\\"838c4c2573848f58e74332341a7ca6bc5cd86a8aec7d644137d53b4d597f10f5\\",\\"price\\":15,\\"currency\\":\\"USD\\",\\"page_url\\":\\"https://segment.com/academy/\\",\\"snap_app_id\\":\\"123\\",\\"app_id\\":\\"123\\"}"`);
|
|
137
|
-
});
|
|
138
|
-
it('should fail invalid currency', async () => {
|
|
139
|
-
nock_1.default(conversionEventUrl).post('').reply(400, {});
|
|
140
|
-
const event = actions_core_1.createTestEvent({
|
|
141
|
-
...testEvent,
|
|
142
|
-
properties: {
|
|
143
|
-
currency: 'Galleon'
|
|
144
|
-
}
|
|
145
|
-
});
|
|
146
|
-
await expect(testDestination.testAction('reportConversionEvent', {
|
|
147
|
-
event,
|
|
148
|
-
settings,
|
|
149
|
-
useDefaultMappings: true,
|
|
150
|
-
auth: {
|
|
151
|
-
accessToken,
|
|
152
|
-
refreshToken
|
|
153
|
-
},
|
|
154
|
-
mapping: {
|
|
155
|
-
event_type: 'PURCHASE',
|
|
156
|
-
event_conversion_type: 'WEB'
|
|
157
|
-
}
|
|
158
|
-
})).rejects.toThrowError('Galleon is not a valid currency code.');
|
|
159
|
-
});
|
|
160
|
-
it('should fail missing event conversion type', async () => {
|
|
161
|
-
nock_1.default(conversionEventUrl).post('').reply(400, {});
|
|
162
|
-
const event = actions_core_1.createTestEvent(testEvent);
|
|
163
|
-
await expect(testDestination.testAction('reportConversionEvent', {
|
|
164
|
-
event,
|
|
165
|
-
settings,
|
|
166
|
-
useDefaultMappings: true,
|
|
167
|
-
auth: {
|
|
168
|
-
accessToken,
|
|
169
|
-
refreshToken
|
|
170
|
-
},
|
|
171
|
-
mapping: {
|
|
172
|
-
event_type: 'PURCHASE'
|
|
173
|
-
}
|
|
174
|
-
})).rejects.toThrowError("The root value is missing the required field 'event_conversion_type'.");
|
|
175
|
-
});
|
|
176
|
-
it('should handle a custom event', async () => {
|
|
177
|
-
nock_1.default(conversionEventUrl).post('').reply(200, {});
|
|
178
|
-
const event = actions_core_1.createTestEvent({
|
|
179
|
-
...testEvent,
|
|
180
|
-
event: 'CUSTOM_EVENT_5'
|
|
181
|
-
});
|
|
182
|
-
const responses = await testDestination.testAction('reportConversionEvent', {
|
|
183
|
-
event,
|
|
184
|
-
settings: {
|
|
185
|
-
snap_app_id: '123',
|
|
186
|
-
app_id: '123'
|
|
187
|
-
},
|
|
188
|
-
useDefaultMappings: true,
|
|
189
|
-
auth: {
|
|
190
|
-
accessToken,
|
|
191
|
-
refreshToken
|
|
192
|
-
},
|
|
193
|
-
mapping: {
|
|
194
|
-
event_type: { '@path': '$.event' },
|
|
195
|
-
event_conversion_type: 'MOBILE_APP'
|
|
196
|
-
}
|
|
197
|
-
});
|
|
198
|
-
expect(responses).not.toBeNull();
|
|
199
|
-
expect(responses[0].status).toBe(200);
|
|
200
|
-
expect(responses[0].options.body).toMatchInlineSnapshot(`"{\\"event_type\\":\\"CUSTOM_EVENT_5\\",\\"event_conversion_type\\":\\"MOBILE_APP\\",\\"timestamp\\":1652368875449,\\"hashed_email\\":\\"cc779c04191c2e736d89e45c11339c8382832bcaf70383f7df94e3d08ba7a6d9\\",\\"hashed_phone_number\\":\\"dc008fda46e2e64002cf2f82a4906236282d431c4f75e5b60bfe79fc48546383\\",\\"user_agent\\":\\"Mozilla/5.0 (iPhone; CPU iPhone OS 9_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13B143 Safari/601.1\\",\\"hashed_ip_address\\":\\"838c4c2573848f58e74332341a7ca6bc5cd86a8aec7d644137d53b4d597f10f5\\",\\"price\\":15,\\"currency\\":\\"USD\\",\\"page_url\\":\\"https://segment.com/academy/\\",\\"snap_app_id\\":\\"123\\",\\"app_id\\":\\"123\\"}"`);
|
|
201
|
-
});
|
|
202
|
-
});
|
|
203
|
-
});
|
|
204
2
|
//# sourceMappingURL=index.test.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.test.js","sourceRoot":"","sources":["../../../../src/destinations/snap-conversions-api/_tests_/index.test.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.test.js","sourceRoot":"","sources":["../../../../src/destinations/snap-conversions-api/_tests_/index.test.ts"],"names":[],"mappings":""}
|
|
@@ -3,140 +3,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const actions_core_1 = require("@segment/actions-core");
|
|
7
6
|
const reportConversionEvent_1 = __importDefault(require("./reportConversionEvent"));
|
|
8
|
-
const DEFAULT_VALS = {
|
|
9
|
-
...actions_core_1.defaultValues(reportConversionEvent_1.default.fields)
|
|
10
|
-
};
|
|
11
7
|
const ACCESS_TOKEN_URL = 'https://accounts.snapchat.com/login/oauth2/access_token';
|
|
12
|
-
const presets = [
|
|
13
|
-
{
|
|
14
|
-
name: 'Add Billing',
|
|
15
|
-
subscribe: 'event = "Payment Info Entered"',
|
|
16
|
-
partnerAction: 'reportConversionEvent',
|
|
17
|
-
mapping: {
|
|
18
|
-
...DEFAULT_VALS,
|
|
19
|
-
event_type: 'ADD_BILLING'
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
name: 'Add to Cart',
|
|
24
|
-
subscribe: 'event = "Product Added"',
|
|
25
|
-
partnerAction: 'reportConversionEvent',
|
|
26
|
-
mapping: {
|
|
27
|
-
...DEFAULT_VALS,
|
|
28
|
-
event_type: 'ADD_CART'
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
name: 'Add to Wishlist',
|
|
33
|
-
subscribe: 'event = "Product Added to Wishlist"',
|
|
34
|
-
partnerAction: 'reportConversionEvent',
|
|
35
|
-
mapping: {
|
|
36
|
-
...DEFAULT_VALS,
|
|
37
|
-
event_type: 'ADD_TO_WISHLIST'
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
name: 'App Install',
|
|
42
|
-
subscribe: 'event = "Application Installed"',
|
|
43
|
-
partnerAction: 'reportConversionEvent',
|
|
44
|
-
mapping: {
|
|
45
|
-
...DEFAULT_VALS,
|
|
46
|
-
event_type: 'APP_INSTALL'
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
name: 'List View',
|
|
51
|
-
subscribe: 'event = "Product List Viewed"',
|
|
52
|
-
partnerAction: 'reportConversionEvent',
|
|
53
|
-
mapping: {
|
|
54
|
-
...DEFAULT_VALS,
|
|
55
|
-
event_type: 'LIST_VIEW'
|
|
56
|
-
}
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
name: 'App Open',
|
|
60
|
-
subscribe: 'event = "Application Opened"',
|
|
61
|
-
partnerAction: 'reportConversionEvent',
|
|
62
|
-
mapping: {
|
|
63
|
-
...DEFAULT_VALS,
|
|
64
|
-
event_type: 'APP_OPEN'
|
|
65
|
-
}
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
name: 'Login',
|
|
69
|
-
subscribe: 'event = "Signed In"',
|
|
70
|
-
partnerAction: 'reportConversionEvent',
|
|
71
|
-
mapping: {
|
|
72
|
-
...DEFAULT_VALS,
|
|
73
|
-
event_type: 'LOGIN'
|
|
74
|
-
}
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
name: 'Page View',
|
|
78
|
-
subscribe: 'type = "page"',
|
|
79
|
-
partnerAction: 'reportConversionEvent',
|
|
80
|
-
mapping: {
|
|
81
|
-
...DEFAULT_VALS,
|
|
82
|
-
event_type: 'PAGE_VIEW'
|
|
83
|
-
}
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
name: 'Purchase',
|
|
87
|
-
subscribe: 'event = "Order Completed"',
|
|
88
|
-
partnerAction: 'reportConversionEvent',
|
|
89
|
-
mapping: {
|
|
90
|
-
...DEFAULT_VALS,
|
|
91
|
-
event_type: 'PURCHASE'
|
|
92
|
-
}
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
name: 'Search',
|
|
96
|
-
subscribe: 'event = "Products Searched"',
|
|
97
|
-
partnerAction: 'reportConversionEvent',
|
|
98
|
-
mapping: {
|
|
99
|
-
...DEFAULT_VALS,
|
|
100
|
-
event_type: 'SEARCH'
|
|
101
|
-
}
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
name: 'Share',
|
|
105
|
-
subscribe: 'event = "Product Shared"',
|
|
106
|
-
partnerAction: 'reportConversionEvent',
|
|
107
|
-
mapping: {
|
|
108
|
-
...DEFAULT_VALS,
|
|
109
|
-
event_type: 'SHARE'
|
|
110
|
-
}
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
name: 'Sign Up',
|
|
114
|
-
subscribe: 'event = "Signed Up"',
|
|
115
|
-
partnerAction: 'reportConversionEvent',
|
|
116
|
-
mapping: {
|
|
117
|
-
...DEFAULT_VALS,
|
|
118
|
-
event_type: 'SIGN_UP'
|
|
119
|
-
}
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
name: 'Start Checkout',
|
|
123
|
-
subscribe: 'event = "Checkout Started"',
|
|
124
|
-
partnerAction: 'reportConversionEvent',
|
|
125
|
-
mapping: {
|
|
126
|
-
...DEFAULT_VALS,
|
|
127
|
-
event_type: 'START_CHECKOUT'
|
|
128
|
-
}
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
name: 'View Content',
|
|
132
|
-
subscribe: 'event = "Product Viewed"',
|
|
133
|
-
partnerAction: 'reportConversionEvent',
|
|
134
|
-
mapping: {
|
|
135
|
-
...DEFAULT_VALS,
|
|
136
|
-
event_type: 'VIEW_CONTENT'
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
];
|
|
140
8
|
const destination = {
|
|
141
9
|
name: 'Snap Conversions Api',
|
|
142
10
|
slug: 'actions-snap-conversions',
|
|
@@ -180,7 +48,6 @@ const destination = {
|
|
|
180
48
|
}
|
|
181
49
|
};
|
|
182
50
|
},
|
|
183
|
-
presets,
|
|
184
51
|
actions: {
|
|
185
52
|
reportConversionEvent: reportConversionEvent_1.default
|
|
186
53
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/snap-conversions-api/index.ts"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/snap-conversions-api/index.ts"],"names":[],"mappings":";;;;;AAIA,oFAA2D;AAM3D,MAAM,gBAAgB,GAAG,yDAAyD,CAAA;AAuIlF,MAAM,WAAW,GAAoC;IACnD,IAAI,EAAE,sBAAsB;IAC5B,IAAI,EAAE,0BAA0B;IAChC,IAAI,EAAE,OAAO;IAEb,cAAc,EAAE;QACd,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE;YACN,QAAQ,EAAE;gBACR,KAAK,EAAE,UAAU;gBACjB,WAAW,EAAE,iFAAiF;gBAC9F,IAAI,EAAE,QAAQ;aACf;YACD,WAAW,EAAE;gBACX,KAAK,EAAE,aAAa;gBACpB,WAAW,EACT,gKAAgK;gBAClK,IAAI,EAAE,QAAQ;aACf;YACD,MAAM,EAAE;gBACN,KAAK,EAAE,QAAQ;gBACf,WAAW,EACT,wJAAwJ;gBAC1J,IAAI,EAAE,QAAQ;aACf;SACF;QACD,kBAAkB,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;YAE9C,MAAM,GAAG,GAAG,MAAM,OAAO,CAAuB,gBAAgB,EAAE;gBAChE,MAAM,EAAE,MAAM;gBACd,IAAI,EAAE,IAAI,eAAe,CAAC;oBACxB,aAAa,EAAE,IAAI,CAAC,YAAY;oBAChC,SAAS,EAAE,IAAI,CAAC,QAAQ;oBACxB,aAAa,EAAE,IAAI,CAAC,YAAY;oBAChC,UAAU,EAAE,eAAe;iBAC5B,CAAC;aACH,CAAC,CAAA;YAEF,OAAO,EAAE,WAAW,EAAE,GAAG,CAAC,IAAI,CAAC,YAAY,EAAE,CAAA;QAC/C,CAAC;KACF;IACD,aAAa,CAAC,EAAE,IAAI,EAAE;QACpB,OAAO;YACL,OAAO,EAAE;gBACP,aAAa,EAAE,UAAU,IAAI,EAAE,WAAW,EAAE;aAC7C;SACF,CAAA;IACH,CAAC;IACD,OAAO,EAAE;QACP,qBAAqB,EAArB,+BAAqB;KACtB;CACF,CAAA;AAED,kBAAe,WAAW,CAAA"}
|
|
@@ -1,25 +1,2 @@
|
|
|
1
1
|
export interface Payload {
|
|
2
|
-
event_type?: string;
|
|
3
|
-
event_conversion_type?: string;
|
|
4
|
-
event_tag?: string;
|
|
5
|
-
timestamp: string;
|
|
6
|
-
email?: string;
|
|
7
|
-
mobile_ad_id?: string;
|
|
8
|
-
uuid_c1?: string;
|
|
9
|
-
idfv?: string;
|
|
10
|
-
phone_number?: string;
|
|
11
|
-
user_agent?: string;
|
|
12
|
-
ip_address?: string;
|
|
13
|
-
item_category?: string;
|
|
14
|
-
item_ids?: string;
|
|
15
|
-
description?: string;
|
|
16
|
-
number_items?: string;
|
|
17
|
-
price?: number;
|
|
18
|
-
currency?: string;
|
|
19
|
-
transaction_id?: string;
|
|
20
|
-
level?: string;
|
|
21
|
-
client_dedup_id?: string;
|
|
22
|
-
search_string?: string;
|
|
23
|
-
page_url?: string;
|
|
24
|
-
sign_up_method?: string;
|
|
25
2
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@segment/action-destinations",
|
|
3
3
|
"description": "Destination Actions engine and definitions.",
|
|
4
|
-
"version": "3.74.4-alpha.
|
|
4
|
+
"version": "3.74.4-alpha.7",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/segmentio/action-destinations",
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"<rootDir>/test/setup-after-env.ts"
|
|
62
62
|
]
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "efd33d39adc694499ad173f7d14b431ca81580a3"
|
|
65
65
|
}
|