@segment/action-destinations 3.141.0 → 3.142.0
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/acoustic/Utility/eventprocessing.d.ts +10 -0
- package/dist/destinations/acoustic/Utility/eventprocessing.js +106 -0
- package/dist/destinations/acoustic/Utility/eventprocessing.js.map +1 -0
- package/dist/destinations/acoustic/Utility/tablemaintutilities.d.ts +9 -0
- package/dist/destinations/acoustic/Utility/tablemaintutilities.js +153 -0
- package/dist/destinations/acoustic/Utility/tablemaintutilities.js.map +1 -0
- package/dist/destinations/acoustic/generated-types.d.ts +6 -0
- package/dist/destinations/acoustic/generated-types.js +3 -0
- package/dist/destinations/acoustic/generated-types.js.map +1 -0
- package/dist/destinations/acoustic/index.d.ts +10 -0
- package/dist/destinations/acoustic/index.js +119 -0
- package/dist/destinations/acoustic/index.js.map +1 -0
- package/dist/destinations/acoustic/receiveEvents/generated-types.d.ts +14 -0
- package/dist/destinations/acoustic/receiveEvents/generated-types.js +3 -0
- package/dist/destinations/acoustic/receiveEvents/generated-types.js.map +1 -0
- package/dist/destinations/acoustic/receiveEvents/index.d.ts +5 -0
- package/dist/destinations/acoustic/receiveEvents/index.js +72 -0
- package/dist/destinations/acoustic/receiveEvents/index.js.map +1 -0
- package/dist/destinations/blackbaud-raisers-edge-nxt/index.js +1 -1
- package/dist/destinations/blackbaud-raisers-edge-nxt/index.js.map +1 -1
- package/dist/destinations/heap/heapUtils.js +1 -1
- package/dist/destinations/heap/heapUtils.js.map +1 -1
- package/dist/destinations/heap/trackEvent/index.js +1 -1
- package/dist/destinations/heap/trackEvent/index.js.map +1 -1
- package/dist/destinations/index.js +3 -0
- package/dist/destinations/index.js.map +1 -1
- package/dist/destinations/june/generated-types.d.ts +3 -0
- package/dist/destinations/june/generated-types.js +3 -0
- package/dist/destinations/june/generated-types.js.map +1 -0
- package/dist/destinations/june/group/generated-types.d.ts +10 -0
- package/dist/destinations/june/group/generated-types.js +3 -0
- package/dist/destinations/june/group/generated-types.js.map +1 -0
- package/dist/destinations/june/group/index.d.ts +5 -0
- package/dist/destinations/june/group/index.js +64 -0
- package/dist/destinations/june/group/index.js.map +1 -0
- package/dist/destinations/june/identify/generated-types.d.ts +9 -0
- package/dist/destinations/june/identify/generated-types.js +3 -0
- package/dist/destinations/june/identify/generated-types.js.map +1 -0
- package/dist/destinations/june/identify/index.d.ts +5 -0
- package/dist/destinations/june/identify/index.js +57 -0
- package/dist/destinations/june/identify/index.js.map +1 -0
- package/dist/destinations/june/index.d.ts +4 -0
- package/dist/destinations/june/index.js +64 -0
- package/dist/destinations/june/index.js.map +1 -0
- package/dist/destinations/june/page/generated-types.d.ts +13 -0
- package/dist/destinations/june/page/generated-types.js +3 -0
- package/dist/destinations/june/page/generated-types.js.map +1 -0
- package/dist/destinations/june/page/index.d.ts +5 -0
- package/dist/destinations/june/page/index.js +72 -0
- package/dist/destinations/june/page/index.js.map +1 -0
- package/dist/destinations/june/track/generated-types.d.ts +13 -0
- package/dist/destinations/june/track/generated-types.js +3 -0
- package/dist/destinations/june/track/generated-types.js.map +1 -0
- package/dist/destinations/june/track/index.d.ts +5 -0
- package/dist/destinations/june/track/index.js +75 -0
- package/dist/destinations/june/track/index.js.map +1 -0
- package/dist/destinations/revend/addPaymentInfo/generated-types.d.ts +37 -0
- package/dist/destinations/revend/addPaymentInfo/generated-types.js +3 -0
- package/dist/destinations/revend/addPaymentInfo/generated-types.js.map +1 -0
- package/dist/destinations/revend/addPaymentInfo/index.d.ts +5 -0
- package/dist/destinations/revend/addPaymentInfo/index.js +84 -0
- package/dist/destinations/revend/addPaymentInfo/index.js.map +1 -0
- package/dist/destinations/revend/addToCart/generated-types.d.ts +35 -0
- package/dist/destinations/revend/addToCart/generated-types.js +3 -0
- package/dist/destinations/revend/addToCart/generated-types.js.map +1 -0
- package/dist/destinations/revend/addToCart/index.d.ts +5 -0
- package/dist/destinations/revend/addToCart/index.js +71 -0
- package/dist/destinations/revend/addToCart/index.js.map +1 -0
- package/dist/destinations/revend/addToWishlist/generated-types.d.ts +35 -0
- package/dist/destinations/revend/addToWishlist/generated-types.js +3 -0
- package/dist/destinations/revend/addToWishlist/generated-types.js.map +1 -0
- package/dist/destinations/revend/addToWishlist/index.d.ts +5 -0
- package/dist/destinations/revend/addToWishlist/index.js +77 -0
- package/dist/destinations/revend/addToWishlist/index.js.map +1 -0
- package/dist/destinations/revend/beginCheckout/generated-types.d.ts +36 -0
- package/dist/destinations/revend/beginCheckout/generated-types.js +3 -0
- package/dist/destinations/revend/beginCheckout/generated-types.js.map +1 -0
- package/dist/destinations/revend/beginCheckout/index.d.ts +5 -0
- package/dist/destinations/revend/beginCheckout/index.js +73 -0
- package/dist/destinations/revend/beginCheckout/index.js.map +1 -0
- package/dist/destinations/revend/constants.d.ts +1 -0
- package/dist/destinations/revend/constants.js +185 -0
- package/dist/destinations/revend/constants.js.map +1 -0
- package/dist/destinations/revend/customEvent/generated-types.d.ts +14 -0
- package/dist/destinations/revend/customEvent/generated-types.js +3 -0
- package/dist/destinations/revend/customEvent/generated-types.js.map +1 -0
- package/dist/destinations/revend/customEvent/index.d.ts +5 -0
- package/dist/destinations/revend/customEvent/index.js +70 -0
- package/dist/destinations/revend/customEvent/index.js.map +1 -0
- package/dist/destinations/revend/ga4-functions.d.ts +4 -0
- package/dist/destinations/revend/ga4-functions.js +53 -0
- package/dist/destinations/revend/ga4-functions.js.map +1 -0
- package/dist/destinations/revend/ga4-properties.d.ts +23 -0
- package/dist/destinations/revend/ga4-properties.js +320 -0
- package/dist/destinations/revend/ga4-properties.js.map +1 -0
- package/dist/destinations/revend/ga4-types.d.ts +27 -0
- package/dist/destinations/revend/ga4-types.js +3 -0
- package/dist/destinations/revend/ga4-types.js.map +1 -0
- package/dist/destinations/revend/generateLead/generated-types.d.ts +14 -0
- package/dist/destinations/revend/generateLead/generated-types.js +3 -0
- package/dist/destinations/revend/generateLead/generated-types.js.map +1 -0
- package/dist/destinations/revend/generateLead/index.d.ts +5 -0
- package/dist/destinations/revend/generateLead/index.js +57 -0
- package/dist/destinations/revend/generateLead/index.js.map +1 -0
- package/dist/destinations/revend/generated-types.d.ts +3 -0
- package/dist/destinations/revend/generated-types.js +3 -0
- package/dist/destinations/revend/generated-types.js.map +1 -0
- package/dist/destinations/revend/index.d.ts +4 -0
- package/dist/destinations/revend/index.js +70 -0
- package/dist/destinations/revend/index.js.map +1 -0
- package/dist/destinations/revend/login/generated-types.d.ts +13 -0
- package/dist/destinations/revend/login/generated-types.js +3 -0
- package/dist/destinations/revend/login/generated-types.js.map +1 -0
- package/dist/destinations/revend/login/index.d.ts +5 -0
- package/dist/destinations/revend/login/index.js +52 -0
- package/dist/destinations/revend/login/index.js.map +1 -0
- package/dist/destinations/revend/pageView/generated-types.d.ts +15 -0
- package/dist/destinations/revend/pageView/generated-types.js +3 -0
- package/dist/destinations/revend/pageView/generated-types.js.map +1 -0
- package/dist/destinations/revend/pageView/index.d.ts +5 -0
- package/dist/destinations/revend/pageView/index.js +73 -0
- package/dist/destinations/revend/pageView/index.js.map +1 -0
- package/dist/destinations/revend/purchase/generated-types.d.ts +40 -0
- package/dist/destinations/revend/purchase/generated-types.js +3 -0
- package/dist/destinations/revend/purchase/generated-types.js.map +1 -0
- package/dist/destinations/revend/purchase/index.d.ts +5 -0
- package/dist/destinations/revend/purchase/index.js +79 -0
- package/dist/destinations/revend/purchase/index.js.map +1 -0
- package/dist/destinations/revend/refund/generated-types.d.ts +40 -0
- package/dist/destinations/revend/refund/generated-types.js +3 -0
- package/dist/destinations/revend/refund/generated-types.js.map +1 -0
- package/dist/destinations/revend/refund/index.d.ts +5 -0
- package/dist/destinations/revend/refund/index.js +90 -0
- package/dist/destinations/revend/refund/index.js.map +1 -0
- package/dist/destinations/revend/removeFromCart/generated-types.d.ts +35 -0
- package/dist/destinations/revend/removeFromCart/generated-types.js +3 -0
- package/dist/destinations/revend/removeFromCart/generated-types.js.map +1 -0
- package/dist/destinations/revend/removeFromCart/index.d.ts +5 -0
- package/dist/destinations/revend/removeFromCart/index.js +77 -0
- package/dist/destinations/revend/removeFromCart/index.js.map +1 -0
- package/dist/destinations/revend/search/generated-types.d.ts +13 -0
- package/dist/destinations/revend/search/generated-types.js +3 -0
- package/dist/destinations/revend/search/generated-types.js.map +1 -0
- package/dist/destinations/revend/search/index.d.ts +5 -0
- package/dist/destinations/revend/search/index.js +56 -0
- package/dist/destinations/revend/search/index.js.map +1 -0
- package/dist/destinations/revend/selectItem/generated-types.d.ts +35 -0
- package/dist/destinations/revend/selectItem/generated-types.js +3 -0
- package/dist/destinations/revend/selectItem/generated-types.js.map +1 -0
- package/dist/destinations/revend/selectItem/index.d.ts +5 -0
- package/dist/destinations/revend/selectItem/index.js +76 -0
- package/dist/destinations/revend/selectItem/index.js.map +1 -0
- package/dist/destinations/revend/selectPromotion/generated-types.d.ts +42 -0
- package/dist/destinations/revend/selectPromotion/generated-types.js +3 -0
- package/dist/destinations/revend/selectPromotion/generated-types.js.map +1 -0
- package/dist/destinations/revend/selectPromotion/index.d.ts +5 -0
- package/dist/destinations/revend/selectPromotion/index.js +92 -0
- package/dist/destinations/revend/selectPromotion/index.js.map +1 -0
- package/dist/destinations/revend/signUp/generated-types.d.ts +13 -0
- package/dist/destinations/revend/signUp/generated-types.js +3 -0
- package/dist/destinations/revend/signUp/generated-types.js.map +1 -0
- package/dist/destinations/revend/signUp/index.d.ts +5 -0
- package/dist/destinations/revend/signUp/index.js +55 -0
- package/dist/destinations/revend/signUp/index.js.map +1 -0
- package/dist/destinations/revend/viewCart/generated-types.d.ts +35 -0
- package/dist/destinations/revend/viewCart/generated-types.js +3 -0
- package/dist/destinations/revend/viewCart/generated-types.js.map +1 -0
- package/dist/destinations/revend/viewCart/index.d.ts +5 -0
- package/dist/destinations/revend/viewCart/index.js +77 -0
- package/dist/destinations/revend/viewCart/index.js.map +1 -0
- package/dist/destinations/revend/viewItem/generated-types.d.ts +35 -0
- package/dist/destinations/revend/viewItem/generated-types.js +3 -0
- package/dist/destinations/revend/viewItem/generated-types.js.map +1 -0
- package/dist/destinations/revend/viewItem/index.d.ts +5 -0
- package/dist/destinations/revend/viewItem/index.js +71 -0
- package/dist/destinations/revend/viewItem/index.js.map +1 -0
- package/dist/destinations/revend/viewItemList/generated-types.d.ts +35 -0
- package/dist/destinations/revend/viewItemList/generated-types.js +3 -0
- package/dist/destinations/revend/viewItemList/generated-types.js.map +1 -0
- package/dist/destinations/revend/viewItemList/index.d.ts +5 -0
- package/dist/destinations/revend/viewItemList/index.js +82 -0
- package/dist/destinations/revend/viewItemList/index.js.map +1 -0
- package/dist/destinations/revend/viewPromotion/generated-types.d.ts +42 -0
- package/dist/destinations/revend/viewPromotion/generated-types.js +3 -0
- package/dist/destinations/revend/viewPromotion/generated-types.js.map +1 -0
- package/dist/destinations/revend/viewPromotion/index.d.ts +5 -0
- package/dist/destinations/revend/viewPromotion/index.js +96 -0
- package/dist/destinations/revend/viewPromotion/index.js.map +1 -0
- package/package.json +4 -4
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CURRENCY_ISO_CODES = void 0;
|
|
4
|
+
exports.CURRENCY_ISO_CODES = [
|
|
5
|
+
'AED',
|
|
6
|
+
'AFN',
|
|
7
|
+
'ALL',
|
|
8
|
+
'AMD',
|
|
9
|
+
'ANG',
|
|
10
|
+
'AOA',
|
|
11
|
+
'ARS',
|
|
12
|
+
'AUD',
|
|
13
|
+
'AWG',
|
|
14
|
+
'AZN',
|
|
15
|
+
'BAM',
|
|
16
|
+
'BBD',
|
|
17
|
+
'BDT',
|
|
18
|
+
'BGN',
|
|
19
|
+
'BHD',
|
|
20
|
+
'BIF',
|
|
21
|
+
'BMD',
|
|
22
|
+
'BND',
|
|
23
|
+
'BOB',
|
|
24
|
+
'BOV',
|
|
25
|
+
'BRL',
|
|
26
|
+
'BSD',
|
|
27
|
+
'BTN',
|
|
28
|
+
'BWP',
|
|
29
|
+
'BYN',
|
|
30
|
+
'BZD',
|
|
31
|
+
'CAD',
|
|
32
|
+
'CDF',
|
|
33
|
+
'CHE',
|
|
34
|
+
'CHF',
|
|
35
|
+
'CHW',
|
|
36
|
+
'CLF',
|
|
37
|
+
'CLP',
|
|
38
|
+
'CNY',
|
|
39
|
+
'COP',
|
|
40
|
+
'COU',
|
|
41
|
+
'CRC',
|
|
42
|
+
'CUC',
|
|
43
|
+
'CUP',
|
|
44
|
+
'CVE',
|
|
45
|
+
'CZK',
|
|
46
|
+
'DJF',
|
|
47
|
+
'DKK',
|
|
48
|
+
'DOP',
|
|
49
|
+
'DZD',
|
|
50
|
+
'EGP',
|
|
51
|
+
'ERN',
|
|
52
|
+
'ETB',
|
|
53
|
+
'EUR',
|
|
54
|
+
'FJD',
|
|
55
|
+
'FKP',
|
|
56
|
+
'GBP',
|
|
57
|
+
'GEL',
|
|
58
|
+
'GHS',
|
|
59
|
+
'GIP',
|
|
60
|
+
'GMD',
|
|
61
|
+
'GNF',
|
|
62
|
+
'GTQ',
|
|
63
|
+
'GYD',
|
|
64
|
+
'HKD',
|
|
65
|
+
'HNL',
|
|
66
|
+
'HRK',
|
|
67
|
+
'HTG',
|
|
68
|
+
'HUF',
|
|
69
|
+
'IDR',
|
|
70
|
+
'ILS',
|
|
71
|
+
'INR',
|
|
72
|
+
'IQD',
|
|
73
|
+
'IRR',
|
|
74
|
+
'ISK',
|
|
75
|
+
'JMD',
|
|
76
|
+
'JOD',
|
|
77
|
+
'JPY',
|
|
78
|
+
'KES',
|
|
79
|
+
'KGS',
|
|
80
|
+
'KHR',
|
|
81
|
+
'KMF',
|
|
82
|
+
'KPW',
|
|
83
|
+
'KRW',
|
|
84
|
+
'KWD',
|
|
85
|
+
'KYD',
|
|
86
|
+
'KZT',
|
|
87
|
+
'LAK',
|
|
88
|
+
'LBP',
|
|
89
|
+
'LKR',
|
|
90
|
+
'LRD',
|
|
91
|
+
'LSL',
|
|
92
|
+
'LYD',
|
|
93
|
+
'MAD',
|
|
94
|
+
'MDL',
|
|
95
|
+
'MGA',
|
|
96
|
+
'MKD',
|
|
97
|
+
'MMK',
|
|
98
|
+
'MNT',
|
|
99
|
+
'MOP',
|
|
100
|
+
'MRU',
|
|
101
|
+
'MUR',
|
|
102
|
+
'MVR',
|
|
103
|
+
'MWK',
|
|
104
|
+
'MXN',
|
|
105
|
+
'MXV',
|
|
106
|
+
'MYR',
|
|
107
|
+
'MZN',
|
|
108
|
+
'NAD',
|
|
109
|
+
'NGN',
|
|
110
|
+
'NIO',
|
|
111
|
+
'NOK',
|
|
112
|
+
'NPR',
|
|
113
|
+
'NZD',
|
|
114
|
+
'OMR',
|
|
115
|
+
'PAB',
|
|
116
|
+
'PEN',
|
|
117
|
+
'PGK',
|
|
118
|
+
'PHP',
|
|
119
|
+
'PKR',
|
|
120
|
+
'PLN',
|
|
121
|
+
'PYG',
|
|
122
|
+
'QAR',
|
|
123
|
+
'RON',
|
|
124
|
+
'RSD',
|
|
125
|
+
'RUB',
|
|
126
|
+
'RWF',
|
|
127
|
+
'SAR',
|
|
128
|
+
'SBD',
|
|
129
|
+
'SCR',
|
|
130
|
+
'SDG',
|
|
131
|
+
'SEK',
|
|
132
|
+
'SGD',
|
|
133
|
+
'SHP',
|
|
134
|
+
'SLL',
|
|
135
|
+
'SOS',
|
|
136
|
+
'SRD',
|
|
137
|
+
'SSP',
|
|
138
|
+
'STN',
|
|
139
|
+
'SVC',
|
|
140
|
+
'SYP',
|
|
141
|
+
'SZL',
|
|
142
|
+
'THB',
|
|
143
|
+
'TJS',
|
|
144
|
+
'TMT',
|
|
145
|
+
'TND',
|
|
146
|
+
'TOP',
|
|
147
|
+
'TRY',
|
|
148
|
+
'TTD',
|
|
149
|
+
'TWD',
|
|
150
|
+
'TZS',
|
|
151
|
+
'UAH',
|
|
152
|
+
'UGX',
|
|
153
|
+
'USD',
|
|
154
|
+
'USN',
|
|
155
|
+
'UYI',
|
|
156
|
+
'UYU',
|
|
157
|
+
'UYW',
|
|
158
|
+
'UZS',
|
|
159
|
+
'VES',
|
|
160
|
+
'VND',
|
|
161
|
+
'VUV',
|
|
162
|
+
'WST',
|
|
163
|
+
'XAF',
|
|
164
|
+
'XAG',
|
|
165
|
+
'XAU',
|
|
166
|
+
'XBA',
|
|
167
|
+
'XBB',
|
|
168
|
+
'XBC',
|
|
169
|
+
'XBD',
|
|
170
|
+
'XCD',
|
|
171
|
+
'XDR',
|
|
172
|
+
'XOF',
|
|
173
|
+
'XPD',
|
|
174
|
+
'XPF',
|
|
175
|
+
'XPT',
|
|
176
|
+
'XSU',
|
|
177
|
+
'XTS',
|
|
178
|
+
'XUA',
|
|
179
|
+
'XXX',
|
|
180
|
+
'YER',
|
|
181
|
+
'ZAR',
|
|
182
|
+
'ZMW',
|
|
183
|
+
'ZWC'
|
|
184
|
+
];
|
|
185
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/destinations/revend/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,kBAAkB,GAAG;IAChC,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;CACN,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface Payload {
|
|
2
|
+
clientId: string;
|
|
3
|
+
user_id?: string;
|
|
4
|
+
timestamp_micros?: string;
|
|
5
|
+
name: string;
|
|
6
|
+
lowercase?: boolean;
|
|
7
|
+
user_properties?: {
|
|
8
|
+
[k: string]: unknown;
|
|
9
|
+
};
|
|
10
|
+
engagement_time_msec?: number;
|
|
11
|
+
params?: {
|
|
12
|
+
[k: string]: unknown;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/revend/customEvent/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const ga4_functions_1 = require("../ga4-functions");
|
|
4
|
+
const ga4_properties_1 = require("../ga4-properties");
|
|
5
|
+
const normalizeEventName = (name, lowercase) => {
|
|
6
|
+
name = name.trim();
|
|
7
|
+
name = name.replace(/\s/g, '_');
|
|
8
|
+
if (lowercase) {
|
|
9
|
+
name = name.toLowerCase();
|
|
10
|
+
}
|
|
11
|
+
return name;
|
|
12
|
+
};
|
|
13
|
+
const action = {
|
|
14
|
+
title: 'Custom Event',
|
|
15
|
+
description: 'Send any custom event',
|
|
16
|
+
defaultSubscription: 'type = "track"',
|
|
17
|
+
fields: {
|
|
18
|
+
clientId: { ...ga4_properties_1.client_id },
|
|
19
|
+
user_id: { ...ga4_properties_1.user_id },
|
|
20
|
+
timestamp_micros: { ...ga4_properties_1.timestamp_micros },
|
|
21
|
+
name: {
|
|
22
|
+
label: 'Event Name',
|
|
23
|
+
description: 'The unique name of the custom event created in GA4. GA4 does not accept spaces in event names so Segment will replace any spaces with underscores. More information about GA4 event name rules is available in [their docs](https://support.google.com/analytics/answer/10085872?hl=en&ref_topic=9756175#event-name-rules&zippy=%2Cin-this-article.%2Cin-this-article).',
|
|
24
|
+
type: 'string',
|
|
25
|
+
required: true,
|
|
26
|
+
default: {
|
|
27
|
+
'@path': '$.event'
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
lowercase: {
|
|
31
|
+
label: 'Lowercase Event Name',
|
|
32
|
+
description: 'If true, the event name will be converted to lowercase before sending to Google. Event names are case sensitive in GA4 so enable this setting to avoid distinct events for casing differences. More information about GA4 event name rules is available in [their docs](https://support.google.com/analytics/answer/10085872?hl=en&ref_topic=9756175#event-name-rules&zippy=%2Cin-this-article.%2Cin-this-article).',
|
|
33
|
+
type: 'boolean',
|
|
34
|
+
default: false
|
|
35
|
+
},
|
|
36
|
+
user_properties: ga4_properties_1.user_properties,
|
|
37
|
+
engagement_time_msec: ga4_properties_1.engagement_time_msec,
|
|
38
|
+
params: { ...ga4_properties_1.params }
|
|
39
|
+
},
|
|
40
|
+
perform: (request, { payload, features }) => {
|
|
41
|
+
const event_name = normalizeEventName(payload.name, payload.lowercase);
|
|
42
|
+
if (features && features['actions-google-analytics-4-verify-params-feature']) {
|
|
43
|
+
ga4_functions_1.verifyParams(payload.params);
|
|
44
|
+
ga4_functions_1.verifyUserProps(payload.user_properties);
|
|
45
|
+
}
|
|
46
|
+
const request_object = {
|
|
47
|
+
client_id: payload.clientId,
|
|
48
|
+
user_id: payload.user_id,
|
|
49
|
+
events: [
|
|
50
|
+
{
|
|
51
|
+
name: event_name,
|
|
52
|
+
params: {
|
|
53
|
+
engagement_time_msec: payload.engagement_time_msec,
|
|
54
|
+
...payload.params
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
],
|
|
58
|
+
...ga4_properties_1.formatUserProperties(payload.user_properties)
|
|
59
|
+
};
|
|
60
|
+
if (features && features['actions-google-analytics-4-add-timestamp']) {
|
|
61
|
+
request_object.timestamp_micros = ga4_functions_1.convertTimestamp(payload.timestamp_micros);
|
|
62
|
+
}
|
|
63
|
+
return request('https://gtmadapter-node-cbjg5cz5hq-ew.a.run.app/v2/consolidated-data', {
|
|
64
|
+
method: 'POST',
|
|
65
|
+
json: request_object
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
exports.default = action;
|
|
70
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/revend/customEvent/index.ts"],"names":[],"mappings":";;AAGA,oDAAkF;AAElF,sDAQ0B;AAE1B,MAAM,kBAAkB,GAAG,CAAC,IAAY,EAAE,SAA8B,EAAU,EAAE;IAClF,IAAI,GAAG,IAAI,CAAC,IAAI,EAAE,CAAA;IAClB,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAA;IAE/B,IAAI,SAAS,EAAE;QACb,IAAI,GAAG,IAAI,CAAC,WAAW,EAAE,CAAA;KAC1B;IACD,OAAO,IAAI,CAAA;AACb,CAAC,CAAA;AAED,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,cAAc;IACrB,WAAW,EAAE,uBAAuB;IACpC,mBAAmB,EAAE,gBAAgB;IACrC,MAAM,EAAE;QACN,QAAQ,EAAE,EAAE,GAAG,0BAAS,EAAE;QAC1B,OAAO,EAAE,EAAE,GAAG,wBAAO,EAAE;QACvB,gBAAgB,EAAE,EAAE,GAAG,iCAAgB,EAAE;QACzC,IAAI,EAAE;YACJ,KAAK,EAAE,YAAY;YACnB,WAAW,EACT,yWAAyW;YAC3W,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE;gBACP,OAAO,EAAE,SAAS;aACnB;SACF;QACD,SAAS,EAAE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2
|
+
export declare function verifyParams(params: object | undefined): void;
|
|
3
|
+
export declare function verifyUserProps(userProperties: object | undefined): void;
|
|
4
|
+
export declare function convertTimestamp(timestamp: string | undefined): number | undefined;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.convertTimestamp = exports.verifyUserProps = exports.verifyParams = exports.verifyCurrency = void 0;
|
|
4
|
+
const actions_core_1 = require("@segment/actions-core");
|
|
5
|
+
const constants_1 = require("./constants");
|
|
6
|
+
function verifyCurrency(currency) {
|
|
7
|
+
if (!constants_1.CURRENCY_ISO_CODES.includes(currency.toUpperCase())) {
|
|
8
|
+
throw new actions_core_1.IntegrationError(`${currency} is not a valid currency code.`, 'Incorrect value format', 400);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.verifyCurrency = verifyCurrency;
|
|
12
|
+
function verifyParams(params) {
|
|
13
|
+
if (!params) {
|
|
14
|
+
return;
|
|
15
|
+
}
|
|
16
|
+
Object.entries(params).forEach(([key, value]) => {
|
|
17
|
+
if (value instanceof Array) {
|
|
18
|
+
throw new actions_core_1.IntegrationError(`Param [${key}] has unsupported value of type [Array]. GA4 does not accept null, array, or object values for event parameters and item parameters.`, 'Invalid value', 400);
|
|
19
|
+
}
|
|
20
|
+
else if (value == null) {
|
|
21
|
+
throw new actions_core_1.IntegrationError(`Param [${key}] has unsupported value of type [NULL]. GA4 does not accept null, array, or object values for event parameters and item parameters.`, 'Invalid value', 400);
|
|
22
|
+
}
|
|
23
|
+
else if (typeof value == 'object') {
|
|
24
|
+
throw new actions_core_1.IntegrationError(`Param [${key}] has unsupported value of type [${typeof value}]. GA4 does not accept null, array, or object values for event parameters and item parameters.`, 'Invalid value', 400);
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
exports.verifyParams = verifyParams;
|
|
29
|
+
function verifyUserProps(userProperties) {
|
|
30
|
+
if (!userProperties) {
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
Object.entries(userProperties).forEach(([key, value]) => {
|
|
34
|
+
if (value instanceof Array) {
|
|
35
|
+
throw new actions_core_1.IntegrationError(`Param [${key}] has unsupported value of type [Array]. GA4 does not accept array or object values for user properties.`, 'Invalid value', 400);
|
|
36
|
+
}
|
|
37
|
+
else if (value != null && typeof value == 'object') {
|
|
38
|
+
throw new actions_core_1.IntegrationError(`Param [${key}] has unsupported value of type [${typeof value}]. GA4 does not accept array or object values for user properties.`, 'Invalid value', 400);
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
exports.verifyUserProps = verifyUserProps;
|
|
43
|
+
function convertTimestamp(timestamp) {
|
|
44
|
+
if (!timestamp) {
|
|
45
|
+
return undefined;
|
|
46
|
+
}
|
|
47
|
+
if (!isNaN(+timestamp)) {
|
|
48
|
+
return +timestamp;
|
|
49
|
+
}
|
|
50
|
+
return Date.parse(timestamp) * 1000;
|
|
51
|
+
}
|
|
52
|
+
exports.convertTimestamp = convertTimestamp;
|
|
53
|
+
//# sourceMappingURL=ga4-functions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ga4-functions.js","sourceRoot":"","sources":["../../../src/destinations/revend/ga4-functions.ts"],"names":[],"mappings":";;;AAAA,wDAAwD;AACxD,2CAAgD;AAGhD,SAAgB,cAAc,CAAC,QAAgB;IAC7C,IAAI,CAAC,8BAAkB,CAAC,QAAQ,CAAC,QAAQ,CAAC,WAAW,EAAE,CAAC,EAAE;QACxD,MAAM,IAAI,+BAAgB,CAAC,GAAG,QAAQ,gCAAgC,EAAE,wBAAwB,EAAE,GAAG,CAAC,CAAA;KACvG;AACH,CAAC;AAJD,wCAIC;AAGD,SAAgB,YAAY,CAAC,MAA0B;IACrD,IAAI,CAAC,MAAM,EAAE;QACX,OAAM;KACP;IAED,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC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SAAS,CAAA;KAClB;IAGD,OAAO,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,GAAG,IAAI,CAAA;AACrC,CAAC;AAZD,4CAYC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { InputField } from '@segment/actions-core/src/destination-kit/types';
|
|
2
|
+
export declare const formatUserProperties: (userProperties: object | undefined) => object | undefined;
|
|
3
|
+
export declare const user_properties: InputField;
|
|
4
|
+
export declare const params: InputField;
|
|
5
|
+
export declare const user_id: InputField;
|
|
6
|
+
export declare const promotion_id: InputField;
|
|
7
|
+
export declare const promotion_name: InputField;
|
|
8
|
+
export declare const creative_slot: InputField;
|
|
9
|
+
export declare const creative_name: InputField;
|
|
10
|
+
export declare const tax: InputField;
|
|
11
|
+
export declare const shipping: InputField;
|
|
12
|
+
export declare const transaction_id: InputField;
|
|
13
|
+
export declare const affiliation: InputField;
|
|
14
|
+
export declare const client_id: InputField;
|
|
15
|
+
export declare const currency: InputField;
|
|
16
|
+
export declare const value: InputField;
|
|
17
|
+
export declare const coupon: InputField;
|
|
18
|
+
export declare const payment_type: InputField;
|
|
19
|
+
export declare const minimal_items: InputField;
|
|
20
|
+
export declare const items_single_products: InputField;
|
|
21
|
+
export declare const items_multi_products: InputField;
|
|
22
|
+
export declare const engagement_time_msec: InputField;
|
|
23
|
+
export declare const timestamp_micros: InputField;
|