@metarouter/ajs-starter-kit 1.0.33 → 1.0.36
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/connection-schemas.json +54 -0
- package/.dist/facebook-pixel/endpoint_schema.etag.json +1 -1
- package/.dist/facebook-pixel/endpoint_schema.json +1 -1
- package/.dist/facebook-pixel/kit.etag.json +1 -1
- package/.dist/facebook-pixel/metadata.json +4 -0
- package/.dist/kafka/kit.etag.json +1 -1
- package/.dist/kafka/metadata.json +5 -1
- package/.dist/mixpanel/endpoint_schema.etag.json +1 -0
- package/.dist/mixpanel/endpoint_schema.json +39 -0
- package/.dist/mixpanel/kit.etag.json +1 -0
- package/.dist/mixpanel/metadata.json +19 -0
- package/.dist/mixpanel/playbook.etag.json +1 -0
- package/.dist/mixpanel/playbook.json +71 -0
- package/index.js +12 -0
- package/package.json +1 -1
|
@@ -167,9 +167,63 @@
|
|
|
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
|
+
},
|
|
186
|
+
"saslPlain": {
|
|
187
|
+
"type": "object",
|
|
188
|
+
"properties": {
|
|
189
|
+
"password": {
|
|
190
|
+
"type": "string"
|
|
191
|
+
},
|
|
192
|
+
"username": {
|
|
193
|
+
"type": "string"
|
|
194
|
+
}
|
|
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
|
+
],
|
|
225
|
+
"additionalProperties": false
|
|
226
|
+
},
|
|
173
227
|
"tls": {
|
|
174
228
|
"type": "boolean"
|
|
175
229
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"ffc6ae809d69bb231effd6f805894565"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"bc571a996baa33a0232799ddf3db03db"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"265d29af0480a2802474bb6e58f4ae0e"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"isDraft":
|
|
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'),
|