@metarouter/ajs-starter-kit 1.0.81-alpha.1 → 1.0.82-alpha.1
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/README.md +139 -0
- package/.dist/blob/kit.etag.json +1 -1
- package/.dist/blob/metadata.json +4 -0
- package/.dist/blob/playbook.etag.json +1 -1
- package/.dist/blob/playbook.json +9 -5
- package/.dist/commission-junction/connection.etag.json +1 -1
- package/.dist/commission-junction/connection.json +53 -2
- package/.dist/commission-junction/kit.etag.json +1 -1
- package/.dist/commission-junction/metadata.json +4 -0
- package/.dist/commission-junction/playbook.etag.json +1 -1
- package/.dist/commission-junction/playbook.json +167 -33
- package/.dist/gcs/kit.etag.json +1 -1
- package/.dist/gcs/metadata.json +4 -0
- package/.dist/gcs/playbook.etag.json +1 -1
- package/.dist/gcs/playbook.json +9 -5
- package/.dist/google-pubsub/kit.etag.json +1 -1
- package/.dist/google-pubsub/metadata.json +4 -0
- package/.dist/google-pubsub/playbook.etag.json +1 -1
- package/.dist/google-pubsub/playbook.json +9 -5
- package/.dist/kafka/kit.etag.json +1 -1
- package/.dist/kafka/metadata.json +4 -0
- package/.dist/kafka/playbook.etag.json +1 -1
- package/.dist/kafka/playbook.json +9 -5
- package/.dist/kinesis/kit.etag.json +1 -1
- package/.dist/kinesis/metadata.json +4 -0
- package/.dist/kinesis/playbook.etag.json +1 -1
- package/.dist/kinesis/playbook.json +9 -5
- package/.dist/movable-ink-customer-data/kit.etag.json +1 -1
- package/.dist/movable-ink-customer-data/metadata.json +4 -0
- package/.dist/movable-ink-customer-data/playbook.etag.json +1 -1
- package/.dist/movable-ink-customer-data/playbook.json +89 -1
- package/.dist/s3/kit.etag.json +1 -1
- package/.dist/s3/metadata.json +4 -0
- package/.dist/s3/playbook.etag.json +1 -1
- package/.dist/s3/playbook.json +9 -5
- package/.dist/snowflake/kit.etag.json +1 -1
- package/.dist/snowflake/metadata.json +4 -8
- package/.dist/snowflake/playbook.etag.json +1 -1
- package/.dist/snowflake/playbook.json +1 -9
- package/.dist/treasure-data/connection.etag.json +1 -0
- package/.dist/treasure-data/connection.json +42 -0
- package/.dist/treasure-data/kit.etag.json +1 -0
- package/.dist/treasure-data/metadata.json +20 -0
- package/.dist/treasure-data/playbook.etag.json +1 -0
- package/.dist/treasure-data/playbook.json +95 -0
- package/.dist/zeotap/connection.etag.json +1 -0
- package/.dist/zeotap/connection.json +28 -0
- package/.dist/zeotap/kit.etag.json +1 -0
- package/.dist/zeotap/metadata.json +20 -0
- package/.dist/zeotap/playbook.etag.json +1 -0
- package/.dist/zeotap/playbook.json +95 -0
- package/index.js +24 -0
- package/package.json +1 -1
package/.dist/README.md
ADDED
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
# AJS Starter-Kits package
|
|
2
|
+
Analytics.js is a specification designed to standardize event tracking for web analytics,
|
|
3
|
+
advertising platforms, marketing tools, and much more. By utilizing Analytics.js and its
|
|
4
|
+
event methods, you will create a rich, actionable data set from your website, mobile app,
|
|
5
|
+
server, and other sources. It is particularly useful for tracking the pages or screens your
|
|
6
|
+
users visit, the actions they take on your property, and whether the user has been identified
|
|
7
|
+
previously.
|
|
8
|
+
## 2024-02
|
|
9
|
+
- Azure Blob
|
|
10
|
+
- Commission Junction (BETA)
|
|
11
|
+
- Google Cloud Storage (BETA)
|
|
12
|
+
- Google Pub/Sub
|
|
13
|
+
- Kafka
|
|
14
|
+
- Movable Ink - Customer Data (BETA)
|
|
15
|
+
- Amazon S3
|
|
16
|
+
- Treasure Data (BETA)
|
|
17
|
+
- Zeotap (BETA)
|
|
18
|
+
|
|
19
|
+
## 2024-01
|
|
20
|
+
- Firebase (BETA)
|
|
21
|
+
|
|
22
|
+
## 2023-12
|
|
23
|
+
- ActionIQ
|
|
24
|
+
- Acuity Ads
|
|
25
|
+
- Adobe Analytics (BETA)
|
|
26
|
+
- Adobe ID (BETA)
|
|
27
|
+
- Amnet (BETA)
|
|
28
|
+
- Amobee
|
|
29
|
+
- Amperity (BETA)
|
|
30
|
+
- Amplitude
|
|
31
|
+
- AppsFlyer Android
|
|
32
|
+
- AppsFlyer iOS
|
|
33
|
+
- Microsoft Advertising (BETA)
|
|
34
|
+
- Bloomreach CDP
|
|
35
|
+
- Blueshift (BETA)
|
|
36
|
+
- Braze
|
|
37
|
+
- Convert (BETA)
|
|
38
|
+
- Criteo (BETA)
|
|
39
|
+
- Customer.io
|
|
40
|
+
- Facebook Pixel
|
|
41
|
+
- Google Ads (BETA)
|
|
42
|
+
- Google Ads (BETA)
|
|
43
|
+
- Google Analytics
|
|
44
|
+
- Google Analytics 4
|
|
45
|
+
- Google BigQuery
|
|
46
|
+
- Google Campaign Manager (BETA)
|
|
47
|
+
- HubSpot (BETA)
|
|
48
|
+
- Impact Radius
|
|
49
|
+
- InMarket (BETA)
|
|
50
|
+
- Kochava (BETA)
|
|
51
|
+
- Lytics
|
|
52
|
+
- Merkle
|
|
53
|
+
- MIQ (Xandr) (BETA)
|
|
54
|
+
- Mixpanel
|
|
55
|
+
- Movable Ink (BETA)
|
|
56
|
+
- Nextdoor (BETA)
|
|
57
|
+
- Pinterest Ads
|
|
58
|
+
- Pinterest CAPI
|
|
59
|
+
- Podsights (BETA)
|
|
60
|
+
- Reddit Ads
|
|
61
|
+
- RevJet (BETA)
|
|
62
|
+
- Roku
|
|
63
|
+
- Roomvo (BETA)
|
|
64
|
+
- Salesforce CDP
|
|
65
|
+
- Snapchat Ads
|
|
66
|
+
- TheTradeDesk Conversion Events
|
|
67
|
+
- TheTradeDesk Firstparty Advertiser Data
|
|
68
|
+
- TikTok
|
|
69
|
+
- Twitter Ads
|
|
70
|
+
- Verizon Media
|
|
71
|
+
- VideoAmp (BETA)
|
|
72
|
+
- Xandr
|
|
73
|
+
- Yahoo Enhanced Attribution (BETA)
|
|
74
|
+
- Yahoo Offline Conversion
|
|
75
|
+
|
|
76
|
+
| Kit Name | Date | Latest Note |
|
|
77
|
+
|----------|------|-------------|
|
|
78
|
+
| Azure Blob | 2024-02 | Removed Identity |
|
|
79
|
+
| Commission Junction (BETA) | 2024-02 | Add order_canceled and order_updated. |
|
|
80
|
+
| Google Cloud Storage (BETA) | 2024-02 | Removed Identity |
|
|
81
|
+
| Google Pub/Sub | 2024-02 | Removed Identity |
|
|
82
|
+
| Kafka | 2024-02 | Removed Identity |
|
|
83
|
+
| Movable Ink - Customer Data (BETA) | 2024-02 | New event implementation: `product_removed`. |
|
|
84
|
+
| Amazon S3 | 2024-02 | Removed Identity |
|
|
85
|
+
| Treasure Data (BETA) | 2024-02 | Initial release; beta. |
|
|
86
|
+
| Zeotap (BETA) | 2024-02 | Initial release; beta. |
|
|
87
|
+
| Firebase (BETA) | 2024-01 | google-firebase initial release. |
|
|
88
|
+
| ActionIQ | 2023-12 | Marked as stable version: 1.0.0 |
|
|
89
|
+
| Acuity Ads | 2023-12 | Stable release Marked as stable version: 1.0.0 |
|
|
90
|
+
| Adobe Analytics (BETA) | 2023-12 | Marked as unstable version: 0.1.0 |
|
|
91
|
+
| Adobe ID (BETA) | 2023-12 | Marked as unstable version: 0.1.0 |
|
|
92
|
+
| Amnet (BETA) | 2023-12 | Marked as unstable version: 0.1.0 |
|
|
93
|
+
| Amobee | 2023-12 | Stable release Marked as stable version: 1.0.0 |
|
|
94
|
+
| Amperity (BETA) | 2023-12 | Marked as unstable version: 0.1.0 |
|
|
95
|
+
| Amplitude | 2023-12 | Marked as stable version: 1.0.0 |
|
|
96
|
+
| AppsFlyer Android | 2023-12 | Stable release Marked as stable version: 1.0.0 |
|
|
97
|
+
| AppsFlyer iOS | 2023-12 | Stable release Marked as stable version: 1.0.0 |
|
|
98
|
+
| Microsoft Advertising (BETA) | 2023-12 | Marked as unstable version: 0.1.0 |
|
|
99
|
+
| Bloomreach CDP | 2023-12 | Marked as stable version: 1.0.0 |
|
|
100
|
+
| Blueshift (BETA) | 2023-12 | Marked as unstable version: 0.1.0 |
|
|
101
|
+
| Braze | 2023-12 | Marked as stable version: 1.0.0 |
|
|
102
|
+
| Convert (BETA) | 2023-12 | Marked as unstable version: 0.1.0 |
|
|
103
|
+
| Criteo (BETA) | 2023-12 | Marked as unstable version: 0.1.0 |
|
|
104
|
+
| Customer.io | 2023-12 | Marked as stable version: 1.0.0 |
|
|
105
|
+
| Facebook Pixel | 2023-12 | Marked as stable version: 1.0.0 |
|
|
106
|
+
| Google Ads (BETA) | 2023-12 | Marked as unstable version: 0.1.0 |
|
|
107
|
+
| Google Ads (BETA) | 2023-12 | Marked as unstable version: 0.1.0 |
|
|
108
|
+
| Google Analytics | 2023-12 | Marked as stable version: 1.0.0 |
|
|
109
|
+
| Google Analytics 4 | 2023-12 | Marked as stable version: 1.0.0 |
|
|
110
|
+
| Google BigQuery | 2023-12 | Stable release Marked as stable version: 1.0.0 |
|
|
111
|
+
| Google Campaign Manager (BETA) | 2023-12 | Marked as unstable version: 0.1.0 |
|
|
112
|
+
| HubSpot (BETA) | 2023-12 | Marked as unstable version: 0.1.0 |
|
|
113
|
+
| Impact Radius | 2023-12 | Marked as stable version: 1.0.0 |
|
|
114
|
+
| InMarket (BETA) | 2023-12 | Marked as unstable version: 0.1.0 |
|
|
115
|
+
| Kochava (BETA) | 2023-12 | Marked as unstable version: 0.1.0 |
|
|
116
|
+
| Lytics | 2023-12 | Marked as stable version: 1.0.0 |
|
|
117
|
+
| Merkle | 2023-12 | Marked as stable version: 1.0.0 |
|
|
118
|
+
| MIQ (Xandr) (BETA) | 2023-12 | Marked as unstable version: 0.1.0 |
|
|
119
|
+
| Mixpanel | 2023-12 | Marked as stable version: 1.0.0 |
|
|
120
|
+
| Movable Ink (BETA) | 2023-12 | Marked as unstable version: 0.1.0 |
|
|
121
|
+
| Nextdoor (BETA) | 2023-12 | Marked as unstable version: 0.1.0 |
|
|
122
|
+
| Pinterest Ads | 2023-12 | Marked as stable version: 1.0.0 |
|
|
123
|
+
| Pinterest CAPI | 2023-12 | Marked as stable version: 1.0.0 |
|
|
124
|
+
| Podsights (BETA) | 2023-12 | Marked as unstable version: 0.1.0 |
|
|
125
|
+
| Reddit Ads | 2023-12 | Marked as stable version: 1.0.0 |
|
|
126
|
+
| RevJet (BETA) | 2023-12 | Marked as unstable version: 0.1.0 |
|
|
127
|
+
| Roku | 2023-12 | Marked as stable version: 1.0.0 |
|
|
128
|
+
| Roomvo (BETA) | 2023-12 | Marked as unstable version: 0.1.0 |
|
|
129
|
+
| Salesforce CDP | 2023-12 | Marked as stable version: 1.0.0 |
|
|
130
|
+
| Snapchat Ads | 2023-12 | Marked as stable version: 1.0.0 |
|
|
131
|
+
| TheTradeDesk Conversion Events | 2023-12 | Marked as stable version: 1.0.0 |
|
|
132
|
+
| TheTradeDesk Firstparty Advertiser Data | 2023-12 | Marked as stable version: 1.0.0 |
|
|
133
|
+
| TikTok | 2023-12 | Stable release Marked as stable version: 1.0.0 |
|
|
134
|
+
| Twitter Ads | 2023-12 | Marked as stable version: 1.0.0 |
|
|
135
|
+
| Verizon Media | 2023-12 | Marked as stable version: 1.0.0 |
|
|
136
|
+
| VideoAmp (BETA) | 2023-12 | Marked as unstable version: 0.1.0 |
|
|
137
|
+
| Xandr | 2023-12 | Marked as stable version: 1.0.0 |
|
|
138
|
+
| Yahoo Enhanced Attribution (BETA) | 2023-12 | Marked as unstable version: 0.1.0 |
|
|
139
|
+
| Yahoo Offline Conversion | 2023-12 | Stable release Marked as stable version: 1.0.0 |
|
package/.dist/blob/kit.etag.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"1539e7d24087d5dab4e4642cd262b8b5"
|
package/.dist/blob/metadata.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"d9c038d6e831c71a2b4bac5dcbf4b42e"
|
package/.dist/blob/playbook.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"cbbaaf5da53298fcb3ae02a222edba8d"
|
|
@@ -3,11 +3,15 @@
|
|
|
3
3
|
{
|
|
4
4
|
"name": "ACCESS_TOKEN",
|
|
5
5
|
"exampleValue": "my-access-token"
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
"name": "ENDPOINT",
|
|
9
|
+
"defaultValue": "graphql"
|
|
6
10
|
}
|
|
7
11
|
],
|
|
8
12
|
"default": {
|
|
9
|
-
"endpoint": "https://tracking.api.cj.com
|
|
10
|
-
"batchSize":
|
|
13
|
+
"endpoint": "https://tracking.api.cj.com/$$ENDPOINT$$",
|
|
14
|
+
"batchSize": 500,
|
|
11
15
|
"method": "POST",
|
|
12
16
|
"headers": [
|
|
13
17
|
{
|
|
@@ -19,5 +23,52 @@
|
|
|
19
23
|
"body": "function tableToString(tbl)\n local result, isJsonArray = {}, true\n\n for k, v in pairs(tbl) do\n isJsonArray = isJsonArray and type(k) == \"number\" and math.floor(k) == k and k > 0\n\n local valueStr = (\n type(v) == \"table\" and tableToString(v) or\n type(v) == \"boolean\" and tostring(v) or\n type(v) == \"number\" and v or\n '\"' .. tostring(v) .. '\"'\n )\n\n if isJsonArray then\n result[#result + 1] = valueStr\n else\n result[#result + 1] = k .. \":\" .. valueStr\n end\n end\n\n return (isJsonArray and \"[\" or \"{\") .. table.concat(result, \",\") .. (isJsonArray and \"]\" or \"}\")\nend\n\n\nlocal graphQLString = string.format([[\n mutation {\n createOrders(\n newOrders: [%s]\n ) {\n orders {\n submissionId\n orderReceivedTime\n advertiser {\n enterpriseId\n }\n actionTracker {\n id\n }\n eventTime\n orderId\n cjEvent\n amount\n discount\n verticalParameters {\n originState\n taxAmount\n confirmationNumber\n originCity\n itemId\n noCancellation\n orderSubtotal\n destinationCity\n destinationState\n }\n items {\n unitPrice\n quantity\n sku\n discount\n }\n coupon\n currency\n }\n errors {\n message\n fields\n }\n }\n }\n]], tableToString(batch[1]))\n\nrequest.body = { query = graphQLString }\nreturn request",
|
|
20
24
|
"lang": "lua"
|
|
21
25
|
}
|
|
26
|
+
},
|
|
27
|
+
"eventSpecific": {
|
|
28
|
+
"order_canceled": {
|
|
29
|
+
"endpoint": "https://tracking.api.cj.com/$$ENDPOINT$$",
|
|
30
|
+
"batchSize": 500,
|
|
31
|
+
"method": "POST",
|
|
32
|
+
"headers": [
|
|
33
|
+
{
|
|
34
|
+
"key": "Authorization",
|
|
35
|
+
"value": "Bearer $$ACCESS_TOKEN$$"
|
|
36
|
+
}
|
|
37
|
+
],
|
|
38
|
+
"transform": {
|
|
39
|
+
"body": "function tableToString(tbl)\n local result, isJsonArray = {}, true\n\n for k, v in pairs(tbl) do\n isJsonArray = isJsonArray and type(k) == \"number\" and math.floor(k) == k and k > 0\n\n local valueStr = (\n type(v) == \"table\" and tableToString(v) or\n type(v) == \"boolean\" and tostring(v) or\n type(v) == \"number\" and v or\n '\"' .. tostring(v) .. '\"'\n )\n\n if isJsonArray then\n result[#result + 1] = valueStr\n else\n result[#result + 1] = k .. \":\" .. valueStr\n end\n end\n\n return (isJsonArray and \"[\" or \"{\") .. table.concat(result, \",\") .. (isJsonArray and \"]\" or \"}\")\nend\n\n\nlocal graphQLString = string.format([[\n mutation {\n cancelOrders(\n cancelledOrders: [%s]\n ) {\n orders {\n submissionId\n status\n }\n errors {\n message\n fields\n }\n }\n }\n]], tableToString(batch[1]))\n\nrequest.body = { query = graphQLString }\nreturn request",
|
|
40
|
+
"lang": "lua"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"order_completed": {
|
|
44
|
+
"endpoint": "https://tracking.api.cj.com/$$ENDPOINT$$",
|
|
45
|
+
"batchSize": 500,
|
|
46
|
+
"method": "POST",
|
|
47
|
+
"headers": [
|
|
48
|
+
{
|
|
49
|
+
"key": "Authorization",
|
|
50
|
+
"value": "Bearer $$ACCESS_TOKEN$$"
|
|
51
|
+
}
|
|
52
|
+
],
|
|
53
|
+
"transform": {
|
|
54
|
+
"body": "function tableToString(tbl)\n local result, isJsonArray = {}, true\n\n for k, v in pairs(tbl) do\n isJsonArray = isJsonArray and type(k) == \"number\" and math.floor(k) == k and k > 0\n\n local valueStr = (\n type(v) == \"table\" and tableToString(v) or\n type(v) == \"boolean\" and tostring(v) or\n type(v) == \"number\" and v or\n '\"' .. tostring(v) .. '\"'\n )\n\n if isJsonArray then\n result[#result + 1] = valueStr\n else\n result[#result + 1] = k .. \":\" .. valueStr\n end\n end\n\n return (isJsonArray and \"[\" or \"{\") .. table.concat(result, \",\") .. (isJsonArray and \"]\" or \"}\")\nend\n\n\nlocal graphQLString = string.format([[\n mutation {\n createOrders(\n newOrders: [%s]\n ) {\n orders {\n submissionId\n orderReceivedTime\n advertiser {\n enterpriseId\n }\n actionTracker {\n id\n }\n eventTime\n orderId\n cjEvent\n amount\n discount\n verticalParameters {\n originState\n taxAmount\n confirmationNumber\n originCity\n itemId\n noCancellation\n orderSubtotal\n destinationCity\n destinationState\n }\n items {\n unitPrice\n quantity\n sku\n discount\n }\n coupon\n currency\n }\n errors {\n message\n fields\n }\n }\n }\n]], tableToString(batch[1]))\n\nrequest.body = { query = graphQLString }\nreturn request",
|
|
55
|
+
"lang": "lua"
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"order_updated": {
|
|
59
|
+
"endpoint": "https://tracking.api.cj.com/$$ENDPOINT$$",
|
|
60
|
+
"batchSize": 500,
|
|
61
|
+
"method": "POST",
|
|
62
|
+
"headers": [
|
|
63
|
+
{
|
|
64
|
+
"key": "Authorization",
|
|
65
|
+
"value": "Bearer $$ACCESS_TOKEN$$"
|
|
66
|
+
}
|
|
67
|
+
],
|
|
68
|
+
"transform": {
|
|
69
|
+
"body": "function tableToString(tbl)\n local result, isJsonArray = {}, true\n\n for k, v in pairs(tbl) do\n isJsonArray = isJsonArray and type(k) == \"number\" and math.floor(k) == k and k > 0\n\n local valueStr = (\n type(v) == \"table\" and tableToString(v) or\n type(v) == \"boolean\" and tostring(v) or\n type(v) == \"number\" and v or\n '\"' .. tostring(v) .. '\"'\n )\n\n if isJsonArray then\n result[#result + 1] = valueStr\n else\n result[#result + 1] = k .. \":\" .. valueStr\n end\n end\n\n return (isJsonArray and \"[\" or \"{\") .. table.concat(result, \",\") .. (isJsonArray and \"]\" or \"}\")\nend\n\n\nlocal graphQLString = string.format([[\n mutation {\n restateOrders(\n restatedOrders: [%s]\n ) {\n orders {\n submissionId\n updateTime\n advertiser {\n enterpriseId\n }\n actionTracker {\n id\n }\n updateTime\n orderId\n cjEvent\n amount\n discount\n verticalParameters {\n originState\n taxAmount\n confirmationNumber\n originCity\n itemId\n noCancellation\n orderSubtotal\n destinationCity\n destinationState\n }\n items {\n unitPrice\n quantity\n sku\n discount\n }\n coupon\n currency\n }\n errors {\n message\n fields\n }\n }\n }\n]], tableToString(batch[1]))\n\nrequest.body = { query = graphQLString }\nreturn request",
|
|
70
|
+
"lang": "lua"
|
|
71
|
+
}
|
|
72
|
+
}
|
|
22
73
|
}
|
|
23
74
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"92c7ed06cd44b4f5968f6403fbfb8dc7"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"d81df4b5939b0b95134d106389e9eafe"
|
|
@@ -1,26 +1,12 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "
|
|
2
|
+
"version": "0.2.0",
|
|
3
3
|
"params": [
|
|
4
|
-
{
|
|
5
|
-
"name": "ACTION_TRACKER_ID",
|
|
6
|
-
"exampleValue": "my-action-tracker-id"
|
|
7
|
-
},
|
|
8
4
|
{
|
|
9
5
|
"name": "ENTERPRISE_ID",
|
|
10
6
|
"exampleValue": "my-enterprise-id"
|
|
11
7
|
}
|
|
12
8
|
],
|
|
13
9
|
"global": {
|
|
14
|
-
"filters": [
|
|
15
|
-
{
|
|
16
|
-
"byEventNames": {
|
|
17
|
-
"action": "allow",
|
|
18
|
-
"events": [
|
|
19
|
-
"order_completed"
|
|
20
|
-
]
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
],
|
|
24
10
|
"enrichments": [
|
|
25
11
|
{
|
|
26
12
|
"staticString": "$$ENTERPRISE_ID$$",
|
|
@@ -28,22 +14,6 @@
|
|
|
28
14
|
}
|
|
29
15
|
],
|
|
30
16
|
"mappings": [
|
|
31
|
-
{
|
|
32
|
-
"inputKey": "input",
|
|
33
|
-
"outputKey": "actionTrackerId",
|
|
34
|
-
"transforms": [
|
|
35
|
-
{
|
|
36
|
-
"expression": {
|
|
37
|
-
"lang": "lua",
|
|
38
|
-
"body": "local actionTrackerId = TO_TRUNCATED_INT($$ACTION_TRACKER_ID$$)\nreturn actionTrackerId"
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
]
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
"inputKey": "originalTimestamp",
|
|
45
|
-
"outputKey": "eventTime"
|
|
46
|
-
},
|
|
47
17
|
{
|
|
48
18
|
"inputKey": "context.providers.commissionJunction.cjEvent",
|
|
49
19
|
"outputKey": "cjEvent"
|
|
@@ -51,6 +21,22 @@
|
|
|
51
21
|
{
|
|
52
22
|
"inputKey": "properties.sid",
|
|
53
23
|
"outputKey": "sid"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"inputKey": "properties.order_id",
|
|
27
|
+
"outputKey": "orderId"
|
|
28
|
+
}
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
"default": {
|
|
32
|
+
"filters": [
|
|
33
|
+
{
|
|
34
|
+
"byEventNames": {
|
|
35
|
+
"action": "allow",
|
|
36
|
+
"events": [
|
|
37
|
+
""
|
|
38
|
+
]
|
|
39
|
+
}
|
|
54
40
|
}
|
|
55
41
|
]
|
|
56
42
|
},
|
|
@@ -58,8 +44,132 @@
|
|
|
58
44
|
"order_completed": {
|
|
59
45
|
"mappings": [
|
|
60
46
|
{
|
|
61
|
-
"inputKey": "
|
|
62
|
-
"outputKey": "
|
|
47
|
+
"inputKey": "input",
|
|
48
|
+
"outputKey": "actionTrackerId",
|
|
49
|
+
"transforms": [
|
|
50
|
+
{
|
|
51
|
+
"expression": {
|
|
52
|
+
"lang": "lua",
|
|
53
|
+
"body": "return TO_TRUNCATED_INT(\"ADD_ACTION_TRACKER_ID_HERE\")"
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
]
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"inputKey": "properties.revenue",
|
|
60
|
+
"outputKey": "amount"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"inputKey": "properties.discount",
|
|
64
|
+
"outputKey": "discount"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"inputKey": "input",
|
|
68
|
+
"outputKey": "items",
|
|
69
|
+
"transforms": [
|
|
70
|
+
{
|
|
71
|
+
"expression": {
|
|
72
|
+
"lang": "lua",
|
|
73
|
+
"body": "return MAP(\n input.properties.products,\n function (p)\n return {\n unitPrice=p.price,\n quantity=p.quantity,\n sku=p.sku,\n discount=p.discount or 0\n }\n end\n )"
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
]
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"inputKey": "properties.coupon",
|
|
80
|
+
"outputKey": "coupon"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"inputKey": "properties.currency",
|
|
84
|
+
"outputKey": "currency",
|
|
85
|
+
"transforms": [
|
|
86
|
+
{
|
|
87
|
+
"modifyString": "uppercase"
|
|
88
|
+
}
|
|
89
|
+
]
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"inputKey": "properties.customerStatus",
|
|
93
|
+
"outputKey": "customerStatus"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"inputKey": "properties.confirmationNumber",
|
|
97
|
+
"outputKey": "verticalParameters.confirmationNumber"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"inputKey": "properties.originCity",
|
|
101
|
+
"outputKey": "verticalParameters.originCity"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"inputKey": "properties.originState",
|
|
105
|
+
"outputKey": "verticalParameters.originState"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"inputKey": "properties.destinationCity",
|
|
109
|
+
"outputKey": "verticalParameters.destinationCity"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"inputKey": "properties.destinationState",
|
|
113
|
+
"outputKey": "verticalParameters.destinationState"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"inputKey": "properties.noCancellation",
|
|
117
|
+
"outputKey": "verticalParameters.noCancellation",
|
|
118
|
+
"transforms": [
|
|
119
|
+
{
|
|
120
|
+
"toScalar": "string"
|
|
121
|
+
}
|
|
122
|
+
]
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"inputKey": "properties.revenue",
|
|
126
|
+
"outputKey": "verticalParameters.orderSubtotal",
|
|
127
|
+
"transforms": [
|
|
128
|
+
{
|
|
129
|
+
"toScalar": "string"
|
|
130
|
+
}
|
|
131
|
+
]
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"inputKey": "properties.tax",
|
|
135
|
+
"outputKey": "verticalParameters.taxAmount",
|
|
136
|
+
"transforms": [
|
|
137
|
+
{
|
|
138
|
+
"toScalar": "string"
|
|
139
|
+
}
|
|
140
|
+
]
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"inputKey": "input",
|
|
144
|
+
"outputKey": "verticalParameters.itemId",
|
|
145
|
+
"transforms": [
|
|
146
|
+
{
|
|
147
|
+
"expression": {
|
|
148
|
+
"lang": "lua",
|
|
149
|
+
"body": "return JOIN(PLUCK(input.properties.products,\"product_id\"), \", \")"
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
]
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"inputKey": "originalTimestamp",
|
|
156
|
+
"outputKey": "eventTime"
|
|
157
|
+
}
|
|
158
|
+
]
|
|
159
|
+
},
|
|
160
|
+
"order_updated": {
|
|
161
|
+
"mappings": [
|
|
162
|
+
{
|
|
163
|
+
"inputKey": "input",
|
|
164
|
+
"outputKey": "actionTrackerId",
|
|
165
|
+
"transforms": [
|
|
166
|
+
{
|
|
167
|
+
"expression": {
|
|
168
|
+
"lang": "lua",
|
|
169
|
+
"body": "return TO_TRUNCATED_INT(\"ADD_ACTION_TRACKER_ID_HERE\")"
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
]
|
|
63
173
|
},
|
|
64
174
|
{
|
|
65
175
|
"inputKey": "properties.revenue",
|
|
@@ -156,6 +266,30 @@
|
|
|
156
266
|
}
|
|
157
267
|
}
|
|
158
268
|
]
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
"inputKey": "originalTimestamp",
|
|
272
|
+
"outputKey": "updateTime"
|
|
273
|
+
}
|
|
274
|
+
]
|
|
275
|
+
},
|
|
276
|
+
"order_canceled": {
|
|
277
|
+
"mappings": [
|
|
278
|
+
{
|
|
279
|
+
"inputKey": "input",
|
|
280
|
+
"outputKey": "actionTrackerId",
|
|
281
|
+
"transforms": [
|
|
282
|
+
{
|
|
283
|
+
"expression": {
|
|
284
|
+
"lang": "lua",
|
|
285
|
+
"body": "return TO_TRUNCATED_INT(\"ADD_ACTION_TRACKER_ID_HERE\")"
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
]
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
"inputKey": "originalTimestamp",
|
|
292
|
+
"outputKey": "updateTime"
|
|
159
293
|
}
|
|
160
294
|
]
|
|
161
295
|
}
|
package/.dist/gcs/kit.etag.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"d79b90b34e2436d761c71000897c4d53"
|
package/.dist/gcs/metadata.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"2f96353725e4cd845fe0ae3025f691ae"
|
package/.dist/gcs/playbook.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"81fb208be2823289912edb5a9a12a41a"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"d9c038d6e831c71a2b4bac5dcbf4b42e"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"96967353ebdabb44a532e547010285c6"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"d9c038d6e831c71a2b4bac5dcbf4b42e"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"313557c18a58ca459cc11dc797144b00"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"
|
|
1
|
+
"2f96353725e4cd845fe0ae3025f691ae"
|