@metarouter/ajs-starter-kit 1.0.34 → 1.0.37

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.
@@ -167,9 +167,22 @@
167
167
  "kafka": {
168
168
  "type": "object",
169
169
  "properties": {
170
+ "batchSize": {
171
+ "type": "number"
172
+ },
170
173
  "brokers": {
171
174
  "type": "string"
172
175
  },
176
+ "compression": {
177
+ "type": "number",
178
+ "description": "0: NONE_UNSPECIFIED; 1: snappy; 2: gzip; 3: uncompressed",
179
+ "enum": [
180
+ 0,
181
+ 1,
182
+ 2,
183
+ 3
184
+ ]
185
+ },
173
186
  "saslPlain": {
174
187
  "type": "object",
175
188
  "properties": {
@@ -180,6 +193,35 @@
180
193
  "type": "string"
181
194
  }
182
195
  },
196
+ "required": [
197
+ "username",
198
+ "password"
199
+ ],
200
+ "additionalProperties": false
201
+ },
202
+ "saslScram": {
203
+ "type": "object",
204
+ "properties": {
205
+ "algorithm": {
206
+ "type": "number",
207
+ "description": "0: NONE_UNSPECIFIED; 1: SHA_256; 2: SHA_512",
208
+ "enum": [
209
+ 0,
210
+ 1,
211
+ 2
212
+ ]
213
+ },
214
+ "password": {
215
+ "type": "string"
216
+ },
217
+ "username": {
218
+ "type": "string"
219
+ }
220
+ },
221
+ "required": [
222
+ "username",
223
+ "password"
224
+ ],
183
225
  "additionalProperties": false
184
226
  },
185
227
  "tls": {
@@ -1 +1 @@
1
- "8df13fb27e6e880029db92afec41b893"
1
+ "e9435cd753f61c415365294c80074e66"
@@ -1,5 +1,5 @@
1
1
  {
2
- "isDraft": true,
2
+ "isDraft": false,
3
3
  "friendlyName": "Google Analytics",
4
4
  "description": "Google Analytics gives you tools to help you better understand your customers so you can improve your website and drive better results.",
5
5
  "logo": "https://cdn.metarouter.io/logo.svg",
@@ -14,6 +14,10 @@
14
14
  {
15
15
  "date": "2021-06-24T00:00:00.000Z",
16
16
  "note": "Google Analytics initial release."
17
+ },
18
+ {
19
+ "date": "2022-05-17T00:00:00.000Z",
20
+ "note": "Minor mapping improvements; Removed Draft mode"
17
21
  }
18
22
  ]
19
23
  }
@@ -1 +1 @@
1
- "b4153f4f7cdbb869ce83afe7d76ef7c4"
1
+ "21eae37048ac678c5698288a0994e568"
@@ -34,10 +34,6 @@
34
34
  "inputKey": "context.providers.google.dclid",
35
35
  "outputKey": "dclid"
36
36
  },
37
- {
38
- "inputKey": "context.providers.google.gid",
39
- "outputKey": "_gid"
40
- },
41
37
  {
42
38
  "inputKey": "anonymousId",
43
39
  "outputKey": "cid"
@@ -46,18 +42,6 @@
46
42
  "inputKey": "context.providers.google.cid",
47
43
  "outputKey": "cid"
48
44
  },
49
- {
50
- "inputKey": "context.providers.google.jid",
51
- "outputKey": "jid"
52
- },
53
- {
54
- "inputKey": "context.providers.google.gjid",
55
- "outputKey": "gjid"
56
- },
57
- {
58
- "inputKey": "context.providers.google.gac",
59
- "outputKey": "gac"
60
- },
61
45
  {
62
46
  "inputKey": "context.page.url",
63
47
  "outputKey": "dl"
@@ -1 +1 @@
1
- "793518d00e62d120d00e19f3406f8652"
1
+ "265d29af0480a2802474bb6e58f4ae0e"
@@ -1,5 +1,5 @@
1
1
  {
2
- "isDraft": false,
2
+ "isDraft": true,
3
3
  "friendlyName": "Kafka",
4
4
  "description": "Apache Kafka is an open-source distributed event streaming platform used by thousands of companies for high-performance data pipelines, streaming analytics, data integration, and mission-critical applications.",
5
5
  "logo": "https://cdn.metarouter.io/logo.svg",
@@ -18,6 +18,10 @@
18
18
  {
19
19
  "date": "2021-06-28T00:00:00.000Z",
20
20
  "note": "Setting isDraft to false"
21
+ },
22
+ {
23
+ "date": "2022-04-26T00:00:00.000Z",
24
+ "note": "Setting isDraft to true"
21
25
  }
22
26
  ]
23
27
  }
@@ -0,0 +1 @@
1
+ "212997f22690a4e5206f15e1a5c5b242"
@@ -0,0 +1,39 @@
1
+ {
2
+ "params": [
3
+ {
4
+ "name": "USERNAME",
5
+ "exampleValue": "my-username"
6
+ },
7
+ {
8
+ "name": "PASSWORD",
9
+ "exampleValue": "my-password"
10
+ },
11
+ {
12
+ "name": "PROJECT_ID",
13
+ "exampleValue": "my-project-id"
14
+ }
15
+ ],
16
+ "default": {
17
+ "endpoint": "https://api.mixpanel.com/import?strict=1&project_id=$$PROJECT_ID$$",
18
+ "basicAuth": {
19
+ "password": "$$PASSWORD$$",
20
+ "username": "$$USERNAME$$"
21
+ },
22
+ "headers": [
23
+ {
24
+ "key": "Content-Type",
25
+ "value": "application/json"
26
+ },
27
+ {
28
+ "key": "Accept",
29
+ "value": "application/json"
30
+ }
31
+ ],
32
+ "method": "POST",
33
+ "batchSize": 1000,
34
+ "transform": {
35
+ "lang": "lua",
36
+ "body": "request.body = batch\nreturn request"
37
+ }
38
+ }
39
+ }
@@ -0,0 +1 @@
1
+ "59e919b7e943ee362c17bd64d59c2aaa"
@@ -0,0 +1,19 @@
1
+ {
2
+ "isDraft": false,
3
+ "friendlyName": "Mixpanel",
4
+ "description": "Powerful, self-serve product analytics to help you convert, engage, and retain more users.",
5
+ "logo": "https://cdn.metarouter.io/logo.svg",
6
+ "color": "#7856ff",
7
+ "eventSource": {
8
+ "isAndroidApp": true,
9
+ "isIosApp": true,
10
+ "isWebApp": true
11
+ },
12
+ "inputSchema": "analytics_js",
13
+ "releaseNotes": [
14
+ {
15
+ "date": "2022-03-23T00:00:00.000Z",
16
+ "note": "Mixpanel initial release."
17
+ }
18
+ ]
19
+ }
@@ -0,0 +1 @@
1
+ "14de59c0146548355e75404cad9f3c9c"
@@ -0,0 +1,71 @@
1
+ {
2
+ "version": "1.0.0",
3
+ "global": {
4
+ "mappings": [
5
+ {
6
+ "inputKey": "properties",
7
+ "outputKey": "properties"
8
+ },
9
+ {
10
+ "inputKey": "input",
11
+ "outputKey": "properties.time",
12
+ "transforms": [
13
+ {
14
+ "expression": {
15
+ "lang": "lua",
16
+ "body": "local date = input.originalTimestamp or input.sentAt\nreturn MILLISECONDS_SINCE_EPOCH_FROM_RFC3999(TO_DATE_TIME(date, { inputFormat = \"2006-01-02T15:04:05Z07:00\" }))"
17
+ }
18
+ }
19
+ ]
20
+ },
21
+ {
22
+ "inputKey": "anonymousId",
23
+ "outputKey": "properties.distinct_id"
24
+ },
25
+ {
26
+ "inputKey": "context.page.url",
27
+ "outputKey": "properties.URL"
28
+ },
29
+ {
30
+ "inputKey": "anonymousId",
31
+ "outputKey": "properties.$anon_id"
32
+ },
33
+ {
34
+ "inputKey": "messageId",
35
+ "outputKey": "properties.$insert_id"
36
+ }
37
+ ]
38
+ },
39
+ "eventSpecific": {
40
+ "identify": {
41
+ "mappings": [
42
+ {
43
+ "inputKey": "userId",
44
+ "outputKey": "properties.$identified_id"
45
+ }
46
+ ],
47
+ "enrichments": [
48
+ {
49
+ "staticString": "$identify",
50
+ "outputKey": "event"
51
+ }
52
+ ]
53
+ },
54
+ "page": {
55
+ "mappings": [
56
+ {
57
+ "inputKey": "type",
58
+ "outputKey": "event"
59
+ }
60
+ ]
61
+ }
62
+ },
63
+ "default": {
64
+ "mappings": [
65
+ {
66
+ "inputKey": "event",
67
+ "outputKey": "event"
68
+ }
69
+ ]
70
+ }
71
+ }
package/index.js CHANGED
@@ -195,6 +195,13 @@ exports.merkle = {
195
195
  metadata: require('./.dist/merkle/metadata.json')
196
196
  }
197
197
 
198
+ exports.mixpanel = {
199
+ connectionTemplate: connectionSchemas.properties.mixpanel,
200
+ endpointSchema: require('./.dist/mixpanel/endpoint_schema.json'),
201
+ playbook: require('./.dist/mixpanel/playbook.json'),
202
+ metadata: require('./.dist/mixpanel/metadata.json')
203
+ }
204
+
198
205
  exports['movable-ink'] = {
199
206
  connectionTemplate: connectionSchemas.properties.movableInk,
200
207
  endpointSchema: require('./.dist/movable-ink/endpoint_schema.json'),
@@ -396,6 +403,11 @@ exports.etags = {
396
403
  playbook: require('./.dist/merkle/playbook.etag.json'),
397
404
  kit: require('./.dist/merkle/kit.etag.json')
398
405
  },
406
+ mixpanel: {
407
+ endpointSchema: require('./.dist/mixpanel/endpoint_schema.etag.json'),
408
+ playbook: require('./.dist/mixpanel/playbook.etag.json'),
409
+ kit: require('./.dist/mixpanel/kit.etag.json')
410
+ },
399
411
  'movable-ink': {
400
412
  endpointSchema: require('./.dist/movable-ink/endpoint_schema.etag.json'),
401
413
  playbook: require('./.dist/movable-ink/playbook.etag.json'),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metarouter/ajs-starter-kit",
3
- "version": "1.0.34",
3
+ "version": "1.0.37",
4
4
  "description": "MetaRouter analytics.js starter kit",
5
5
  "main": "index.js",
6
6
  "scripts": {