@metarouter/ajs-starter-kit 1.0.111 → 1.0.113

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.
@@ -170,6 +170,22 @@
170
170
  ],
171
171
  "additionalProperties": false
172
172
  },
173
+ "iterable": {
174
+ "type": "object",
175
+ "properties": {
176
+ "apiBaseUrl": {
177
+ "type": "string"
178
+ },
179
+ "apiKey": {
180
+ "type": "string"
181
+ }
182
+ },
183
+ "required": [
184
+ "apiKey",
185
+ "apiBaseUrl"
186
+ ],
187
+ "additionalProperties": false
188
+ },
173
189
  "kafka": {
174
190
  "type": "object",
175
191
  "properties": {
@@ -1 +1 @@
1
- "c60cb71c30e0faf3b4b77d06d56d2149"
1
+ "e5997aff460b6c5ea132762084580b69"
@@ -10,126 +10,8 @@
10
10
  "defaultValue": "https://api.iterable.com"
11
11
  }
12
12
  ],
13
- "default": {
14
- "endpoint": "$$API_BASE_URL$$/api/events/track",
15
- "method": "POST",
16
- "headers": [
17
- {
18
- "key": "Content-Type",
19
- "value": "application/json"
20
- },
21
- {
22
- "key": "Accept-Encoding",
23
- "value": "application/json"
24
- },
25
- {
26
- "key": "X-Forwarded-For",
27
- "fromEventKey": "context.ip"
28
- },
29
- {
30
- "key": "User-Agent",
31
- "fromEventKey": "context.userAgent"
32
- },
33
- {
34
- "key": "Api-User-Agent",
35
- "value": "MetaRouter/integration/1.0.0"
36
- },
37
- {
38
- "key": "Api-Key",
39
- "value": "$$API_KEY$$"
40
- }
41
- ]
42
- },
43
- "eventSpecific": {
44
- "identify": {
45
- "endpoint": "$$API_BASE_URL$$/api/users/update",
46
- "method": "POST",
47
- "headers": [
48
- {
49
- "key": "Content-Type",
50
- "value": "application/json"
51
- },
52
- {
53
- "key": "Accept-Encoding",
54
- "value": "application/json"
55
- },
56
- {
57
- "key": "X-Forwarded-For",
58
- "fromEventKey": "context.ip"
59
- },
60
- {
61
- "key": "User-Agent",
62
- "fromEventKey": "context.userAgent"
63
- },
64
- {
65
- "key": "Api-User-Agent",
66
- "value": "MetaRouter/integration/1.0.0"
67
- },
68
- {
69
- "key": "Api-Key",
70
- "value": "$$API_KEY$$"
71
- }
72
- ]
73
- },
74
- "product_added": {
75
- "endpoint": "$$API_BASE_URL$$/api/commerce/updateCart",
76
- "method": "POST",
77
- "headers": [
78
- {
79
- "key": "Content-Type",
80
- "value": "application/json"
81
- },
82
- {
83
- "key": "Accept-Encoding",
84
- "value": "application/json"
85
- },
86
- {
87
- "key": "X-Forwarded-For",
88
- "fromEventKey": "context.ip"
89
- },
90
- {
91
- "key": "User-Agent",
92
- "fromEventKey": "context.userAgent"
93
- },
94
- {
95
- "key": "Api-User-Agent",
96
- "value": "MetaRouter/integration/1.0.0"
97
- },
98
- {
99
- "key": "Api-Key",
100
- "value": "$$API_KEY$$"
101
- }
102
- ]
103
- },
104
- "order_completed": {
105
- "endpoint": "$$API_BASE_URL$$/api/commerce/trackPurchase",
106
- "method": "POST",
107
- "headers": [
108
- {
109
- "key": "Content-Type",
110
- "value": "application/json"
111
- },
112
- {
113
- "key": "Accept-Encoding",
114
- "value": "application/json"
115
- },
116
- {
117
- "key": "X-Forwarded-For",
118
- "fromEventKey": "context.ip"
119
- },
120
- {
121
- "key": "User-Agent",
122
- "fromEventKey": "context.userAgent"
123
- },
124
- {
125
- "key": "Api-User-Agent",
126
- "value": "MetaRouter/integration/1.0.0"
127
- },
128
- {
129
- "key": "Api-Key",
130
- "value": "$$API_KEY$$"
131
- }
132
- ]
133
- }
13
+ "iterable": {
14
+ "api_key": "$$API_KEY$$",
15
+ "api_base_url": "$$API_BASE_URL$$"
134
16
  }
135
17
  }
@@ -1 +1 @@
1
- "496fbb8a6ca823ec3bbe0d72d97bd038"
1
+ "6304517b7fe5b179c5f794d2345360e1"
@@ -19,6 +19,10 @@
19
19
  {
20
20
  "date": "2024-09-25T21:00:00.000Z",
21
21
  "note": "Version: 0.2.0\nUpdate endpoint for identify event\nInclude IP and userAgent in dataFields"
22
+ },
23
+ {
24
+ "date": "2024-11-27T21:00:00.000Z",
25
+ "note": "Version: 0.3.0\nUpdate connection.yaml for SDK forwarder format\nMove user agent and ip to global stanza"
22
26
  }
23
27
  ]
24
28
  }
@@ -1 +1 @@
1
- "2034696c9313bc0af010d08e6f167e4d"
1
+ "e8ddd6aafbb197f95310a381386d94e3"
@@ -23,6 +23,14 @@
23
23
  }
24
24
  }
25
25
  ]
26
+ },
27
+ {
28
+ "inputKey": "context.ip",
29
+ "outputKey": "dataFields.ip"
30
+ },
31
+ {
32
+ "inputKey": "context.userAgent",
33
+ "outputKey": "dataFields.userAgent"
26
34
  }
27
35
  ]
28
36
  },
@@ -68,14 +76,6 @@
68
76
  {
69
77
  "inputKey": "properties",
70
78
  "outputKey": "dataFields"
71
- },
72
- {
73
- "inputKey": "context.ip",
74
- "outputKey": "dataFields.ip"
75
- },
76
- {
77
- "inputKey": "context.userAgent",
78
- "outputKey": "dataFields.userAgent"
79
79
  }
80
80
  ]
81
81
  },
@@ -0,0 +1 @@
1
+ "0cb388f22b4a349e7e01941fc6def3cc"
@@ -0,0 +1,25 @@
1
+ {
2
+ "params": [
3
+ {
4
+ "name": "DATA_CENTER",
5
+ "exampleValue": "my-data-center",
6
+ "defaultValue": "us",
7
+ "description": "Data center. Available options: ams (use for European and African users), asia (use for Asian and Australian users), us (use for North and South American users)."
8
+ }
9
+ ],
10
+ "default": {
11
+ "endpoint": "https://$$DATA_CENTER$$.creativecdn.com/partner/omni/postbacks?",
12
+ "method": "POST",
13
+ "headers": [
14
+ {
15
+ "key": "Accept-Encoding",
16
+ "value": "application/json"
17
+ }
18
+ ],
19
+ "batchSize": 1,
20
+ "transform": {
21
+ "lang": "lua",
22
+ "body": "local params = {}\nfor key, val in pairs(batch[1]) do\n table.insert(params, key..\"=\"..val)\nend\nrequest.url = request.url .. JOIN(params, '&')\nrequest.body = {}\nreturn request"
23
+ }
24
+ }
25
+ }
@@ -0,0 +1 @@
1
+ "01f6cc9025f1ba8d09f6e1527bd1bc78"
@@ -0,0 +1,21 @@
1
+ {
2
+ "isDraft": false,
3
+ "isDeprecated": false,
4
+ "isBeta": true,
5
+ "friendlyName": "RTB House",
6
+ "description": "RTB House offers a demand-side platform (DSP) designed for real-time bidding (RTB) and advanced retargeting, leveraging deep learning algorithms to enhance ad targeting precision.",
7
+ "logo": "https://cdn.metarouter.io/rtb-house.png",
8
+ "color": "#EF4137",
9
+ "eventSource": {
10
+ "isAndroidApp": false,
11
+ "isIosApp": false,
12
+ "isWebApp": true
13
+ },
14
+ "inputSchema": "analytics_js",
15
+ "releaseNotes": [
16
+ {
17
+ "date": "2024-11-20T22:00:00.000Z",
18
+ "note": "Version: 0.1.0\nBeta Version\nRTB House initial release"
19
+ }
20
+ ]
21
+ }
@@ -0,0 +1 @@
1
+ "425d707091f7b548bfc2d108664fecc8"
@@ -0,0 +1,65 @@
1
+ {
2
+ "version": "0.1.0",
3
+ "params": [
4
+ {
5
+ "name": "PARTNER_KEY",
6
+ "exampleValue": "my-partner-key"
7
+ },
8
+ {
9
+ "name": "TAGGING_HASH",
10
+ "exampleValue": "my-tagging-hash"
11
+ }
12
+ ],
13
+ "default": {
14
+ "filters": [
15
+ {
16
+ "byEventNames": {
17
+ "action": "allow",
18
+ "events": [
19
+ ""
20
+ ]
21
+ }
22
+ }
23
+ ]
24
+ },
25
+ "eventSpecific": {
26
+ "order-completed": {
27
+ "enrichments": [
28
+ {
29
+ "outputKey": "pkey",
30
+ "staticString": "$$PARTNER_KEY$$"
31
+ }
32
+ ],
33
+ "mappings": [
34
+ {
35
+ "inputKey": "anonymousId",
36
+ "outputKey": "aid"
37
+ },
38
+ {
39
+ "inputKey": "input",
40
+ "outputKey": "time",
41
+ "transforms": [
42
+ {
43
+ "expression": {
44
+ "body": "return MILLISECONDS_SINCE_EPOCH_FROM_RFC3999(TO_DATE_TIME(input.timestamp or input.originalTimestamp or input.sentAt, { inputFormat = \"2006-01-02T15:04:05Z07:00\" }))",
45
+ "lang": "lua"
46
+ }
47
+ }
48
+ ]
49
+ },
50
+ {
51
+ "inputKey": "input",
52
+ "outputKey": "tag",
53
+ "transforms": [
54
+ {
55
+ "expression": {
56
+ "body": "local value = SUM(MAP(input.properties.products, function (p) return p.price * (p.quantity or 1) end));\nlocal products = MAP(input.properties.products, function (p) return p.product_id or p.sku end );\nreturn JOIN({\n 'pr_$$TAGGING_HASH$$',\n 'conversion_order_purchase',\n value,\n input.properties.order_id,\n JOIN(products, \",\")\n}, '_')",
57
+ "lang": "lua"
58
+ }
59
+ }
60
+ ]
61
+ }
62
+ ]
63
+ }
64
+ }
65
+ }
package/README.md CHANGED
@@ -9,8 +9,10 @@ previously.
9
9
  - Adobe Analytics - Experience (BETA)
10
10
  - AWIN (BETA)
11
11
  - Convert (BETA)
12
+ - Iterable (BETA)
12
13
  - Moloco (BETA)
13
14
  - Innervate
15
+ - RTB House (BETA)
14
16
  - Snapchat - CAPI
15
17
  - Zeotap (BETA)
16
18
 
@@ -66,7 +68,6 @@ previously.
66
68
 
67
69
  ## 2024-09
68
70
  - CM360 - Floodlights (BETA)
69
- - Iterable (BETA)
70
71
  - X Ads - Web Conversions
71
72
 
72
73
  ## 2024-08
@@ -101,8 +102,10 @@ previously.
101
102
  | Adobe Analytics - Experience (BETA) | 2024-11 | Version: 0.6.0 Adding checkout event Updating inputKey for siteSection |
102
103
  | AWIN (BETA) | 2024-11 | Version: 0.1.0 Beta Version AWIN initial release |
103
104
  | Convert (BETA) | 2024-11 | Version: 0.3.0 Added new deduplication parameter for all events, `tid` |
105
+ | Iterable (BETA) | 2024-11 | Version: 0.3.0 Update connection.yaml for SDK forwarder format Move user agent and ip to global stanza |
104
106
  | Moloco (BETA) | 2024-11 | Version: 0.1.0 Beta Version |
105
107
  | Innervate | 2024-11 | Version: 1.0.0 Updated friendly name Stable release |
108
+ | RTB House (BETA) | 2024-11 | Version: 0.1.0 Beta Version RTB House initial release |
106
109
  | Snapchat - CAPI | 2024-11 | Version: 1.3.0 Added the `_scid` cookie value as `user_data.sc_cookie1` |
107
110
  | Zeotap (BETA) | 2024-11 | Version: 0.4.0 Added new mapping for `context_country` |
108
111
  | ActionIQ | 2024-10 | Version: 1.2.0 Added header `Accept-Encoding: application/json` |
@@ -154,7 +157,6 @@ previously.
154
157
  | Yahoo Enhanced Attribution (BETA) | 2024-10 | Version: 0.2.0 Added header `Accept-Encoding: application/json` |
155
158
  | Yahoo Offline Conversion | 2024-10 | Version: 1.1.0 Added header `Accept-Encoding: application/json` |
156
159
  | CM360 - Floodlights (BETA) | 2024-09 | Version 0.4.0 Friendly name renaming Description and color updated |
157
- | Iterable (BETA) | 2024-09 | Version: 0.1.0 Beta Version Iterable initial release |
158
160
  | X Ads - Web Conversions | 2024-09 | Version: 1.0.0 Stable release |
159
161
  | Webhooks | 2024-08 | Version: 1.0.0 Stable release |
160
162
  | Google BigQuery | 2024-08 | Version: 1.0.0 Adding option to set datase creation mode to BIG_QUERY_OPTIONS_DISABLE_DATASET_CREATION This will allow users to create save events without having the bigquery.datasets.create permission in their IAM role |
package/index.js CHANGED
@@ -62,6 +62,12 @@ exports.snowflake = {
62
62
  metadata: require('./.dist/snowflake/metadata.json')
63
63
  }
64
64
 
65
+ exports.iterable = {
66
+ connectionTemplate: connectionSchemas.properties.iterable,
67
+ playbook: require('./.dist/iterable/playbook.json'),
68
+ metadata: require('./.dist/iterable/metadata.json')
69
+ }
70
+
65
71
  // HTTP Integrations
66
72
 
67
73
  exports.actioniq = {
@@ -255,12 +261,6 @@ exports['in-market'] = {
255
261
  metadata: require('./.dist/in-market/metadata.json')
256
262
  }
257
263
 
258
- exports.iterable = {
259
- endpointSchema: require('./.dist/iterable/connection.json'),
260
- playbook: require('./.dist/iterable/playbook.json'),
261
- metadata: require('./.dist/iterable/metadata.json')
262
- }
263
-
264
264
  exports.kochava = {
265
265
  endpointSchema: require('./.dist/kochava/connection.json'),
266
266
  playbook: require('./.dist/kochava/playbook.json'),
@@ -375,6 +375,12 @@ exports.roomvo = {
375
375
  metadata: require('./.dist/roomvo/metadata.json')
376
376
  }
377
377
 
378
+ exports['rtb-house'] = {
379
+ endpointSchema: require('./.dist/rtb-house/connection.json'),
380
+ playbook: require('./.dist/rtb-house/playbook.json'),
381
+ metadata: require('./.dist/rtb-house/metadata.json')
382
+ }
383
+
378
384
  exports['salesforce-cdp'] = {
379
385
  endpointSchema: require('./.dist/salesforce-cdp/connection.json'),
380
386
  playbook: require('./.dist/salesforce-cdp/playbook.json'),
@@ -508,6 +514,10 @@ exports.etags = {
508
514
  playbook: require('./.dist/snowflake/playbook.etag.json'),
509
515
  kit: require('./.dist/snowflake/kit.etag.json')
510
516
  },
517
+ iterable: {
518
+ playbook: require('./.dist/iterable/playbook.etag.json'),
519
+ kit: require('./.dist/iterable/kit.etag.json')
520
+ },
511
521
  // HTTP Integrations
512
522
  actioniq: {
513
523
  endpointSchema: require('./.dist/actioniq/connection.etag.json'),
@@ -669,11 +679,6 @@ exports.etags = {
669
679
  playbook: require('./.dist/in-market/playbook.etag.json'),
670
680
  kit: require('./.dist/in-market/kit.etag.json')
671
681
  },
672
- iterable: {
673
- endpointSchema: require('./.dist/iterable/connection.etag.json'),
674
- playbook: require('./.dist/iterable/playbook.etag.json'),
675
- kit: require('./.dist/iterable/kit.etag.json')
676
- },
677
682
  kochava: {
678
683
  playbook: require('./.dist/kochava/playbook.etag.json'),
679
684
  kit: require('./.dist/kochava/kit.etag.json')
@@ -768,6 +773,11 @@ exports.etags = {
768
773
  playbook: require('./.dist/roomvo/playbook.etag.json'),
769
774
  kit: require('./.dist/roomvo/kit.etag.json')
770
775
  },
776
+ 'rtb-house': {
777
+ endpointSchema: require('./.dist/rtb-house/connection.etag.json'),
778
+ playbook: require('./.dist/rtb-house/playbook.etag.json'),
779
+ kit: require('./.dist/rtb-house/kit.etag.json')
780
+ },
771
781
  'salesforce-cdp': {
772
782
  endpointSchema: require('./.dist/salesforce-cdp/connection.etag.json'),
773
783
  playbook: require('./.dist/salesforce-cdp/playbook.etag.json'),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metarouter/ajs-starter-kit",
3
- "version": "1.0.111",
3
+ "version": "1.0.113",
4
4
  "description": "MetaRouter analytics.js starter kit",
5
5
  "main": "index.js",
6
6
  "scripts": {