@segment/action-destinations 3.141.0 → 3.141.1-tiktok-audiences.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.
Files changed (231) hide show
  1. package/dist/destinations/acoustic/Utility/eventprocessing.d.ts +10 -0
  2. package/dist/destinations/acoustic/Utility/eventprocessing.js +106 -0
  3. package/dist/destinations/acoustic/Utility/eventprocessing.js.map +1 -0
  4. package/dist/destinations/acoustic/Utility/tablemaintutilities.d.ts +9 -0
  5. package/dist/destinations/acoustic/Utility/tablemaintutilities.js +153 -0
  6. package/dist/destinations/acoustic/Utility/tablemaintutilities.js.map +1 -0
  7. package/dist/destinations/acoustic/generated-types.d.ts +6 -0
  8. package/dist/destinations/acoustic/generated-types.js +3 -0
  9. package/dist/destinations/acoustic/generated-types.js.map +1 -0
  10. package/dist/destinations/acoustic/index.d.ts +10 -0
  11. package/dist/destinations/acoustic/index.js +119 -0
  12. package/dist/destinations/acoustic/index.js.map +1 -0
  13. package/dist/destinations/acoustic/receiveEvents/generated-types.d.ts +14 -0
  14. package/dist/destinations/acoustic/receiveEvents/generated-types.js +3 -0
  15. package/dist/destinations/acoustic/receiveEvents/generated-types.js.map +1 -0
  16. package/dist/destinations/acoustic/receiveEvents/index.d.ts +5 -0
  17. package/dist/destinations/acoustic/receiveEvents/index.js +72 -0
  18. package/dist/destinations/acoustic/receiveEvents/index.js.map +1 -0
  19. package/dist/destinations/blackbaud-raisers-edge-nxt/index.js +1 -1
  20. package/dist/destinations/blackbaud-raisers-edge-nxt/index.js.map +1 -1
  21. package/dist/destinations/heap/heapUtils.js +1 -1
  22. package/dist/destinations/heap/heapUtils.js.map +1 -1
  23. package/dist/destinations/heap/trackEvent/index.js +1 -1
  24. package/dist/destinations/heap/trackEvent/index.js.map +1 -1
  25. package/dist/destinations/index.js +1 -0
  26. package/dist/destinations/index.js.map +1 -1
  27. package/dist/destinations/june/generated-types.d.ts +3 -0
  28. package/dist/destinations/june/generated-types.js +3 -0
  29. package/dist/destinations/june/generated-types.js.map +1 -0
  30. package/dist/destinations/june/group/generated-types.d.ts +10 -0
  31. package/dist/destinations/june/group/generated-types.js +3 -0
  32. package/dist/destinations/june/group/generated-types.js.map +1 -0
  33. package/dist/destinations/june/group/index.d.ts +5 -0
  34. package/dist/destinations/june/group/index.js +64 -0
  35. package/dist/destinations/june/group/index.js.map +1 -0
  36. package/dist/destinations/june/identify/generated-types.d.ts +9 -0
  37. package/dist/destinations/june/identify/generated-types.js +3 -0
  38. package/dist/destinations/june/identify/generated-types.js.map +1 -0
  39. package/dist/destinations/june/identify/index.d.ts +5 -0
  40. package/dist/destinations/june/identify/index.js +57 -0
  41. package/dist/destinations/june/identify/index.js.map +1 -0
  42. package/dist/destinations/june/index.d.ts +4 -0
  43. package/dist/destinations/june/index.js +64 -0
  44. package/dist/destinations/june/index.js.map +1 -0
  45. package/dist/destinations/june/page/generated-types.d.ts +13 -0
  46. package/dist/destinations/june/page/generated-types.js +3 -0
  47. package/dist/destinations/june/page/generated-types.js.map +1 -0
  48. package/dist/destinations/june/page/index.d.ts +5 -0
  49. package/dist/destinations/june/page/index.js +72 -0
  50. package/dist/destinations/june/page/index.js.map +1 -0
  51. package/dist/destinations/june/track/generated-types.d.ts +13 -0
  52. package/dist/destinations/june/track/generated-types.js +3 -0
  53. package/dist/destinations/june/track/generated-types.js.map +1 -0
  54. package/dist/destinations/june/track/index.d.ts +5 -0
  55. package/dist/destinations/june/track/index.js +75 -0
  56. package/dist/destinations/june/track/index.js.map +1 -0
  57. package/dist/destinations/revend/addPaymentInfo/generated-types.d.ts +37 -0
  58. package/dist/destinations/revend/addPaymentInfo/generated-types.js +3 -0
  59. package/dist/destinations/revend/addPaymentInfo/generated-types.js.map +1 -0
  60. package/dist/destinations/revend/addPaymentInfo/index.d.ts +5 -0
  61. package/dist/destinations/revend/addPaymentInfo/index.js +84 -0
  62. package/dist/destinations/revend/addPaymentInfo/index.js.map +1 -0
  63. package/dist/destinations/revend/addToCart/generated-types.d.ts +35 -0
  64. package/dist/destinations/revend/addToCart/generated-types.js +3 -0
  65. package/dist/destinations/revend/addToCart/generated-types.js.map +1 -0
  66. package/dist/destinations/revend/addToCart/index.d.ts +5 -0
  67. package/dist/destinations/revend/addToCart/index.js +71 -0
  68. package/dist/destinations/revend/addToCart/index.js.map +1 -0
  69. package/dist/destinations/revend/addToWishlist/generated-types.d.ts +35 -0
  70. package/dist/destinations/revend/addToWishlist/generated-types.js +3 -0
  71. package/dist/destinations/revend/addToWishlist/generated-types.js.map +1 -0
  72. package/dist/destinations/revend/addToWishlist/index.d.ts +5 -0
  73. package/dist/destinations/revend/addToWishlist/index.js +77 -0
  74. package/dist/destinations/revend/addToWishlist/index.js.map +1 -0
  75. package/dist/destinations/revend/beginCheckout/generated-types.d.ts +36 -0
  76. package/dist/destinations/revend/beginCheckout/generated-types.js +3 -0
  77. package/dist/destinations/revend/beginCheckout/generated-types.js.map +1 -0
  78. package/dist/destinations/revend/beginCheckout/index.d.ts +5 -0
  79. package/dist/destinations/revend/beginCheckout/index.js +73 -0
  80. package/dist/destinations/revend/beginCheckout/index.js.map +1 -0
  81. package/dist/destinations/revend/constants.d.ts +1 -0
  82. package/dist/destinations/revend/constants.js +185 -0
  83. package/dist/destinations/revend/constants.js.map +1 -0
  84. package/dist/destinations/revend/customEvent/generated-types.d.ts +14 -0
  85. package/dist/destinations/revend/customEvent/generated-types.js +3 -0
  86. package/dist/destinations/revend/customEvent/generated-types.js.map +1 -0
  87. package/dist/destinations/revend/customEvent/index.d.ts +5 -0
  88. package/dist/destinations/revend/customEvent/index.js +70 -0
  89. package/dist/destinations/revend/customEvent/index.js.map +1 -0
  90. package/dist/destinations/revend/ga4-functions.d.ts +4 -0
  91. package/dist/destinations/revend/ga4-functions.js +53 -0
  92. package/dist/destinations/revend/ga4-functions.js.map +1 -0
  93. package/dist/destinations/revend/ga4-properties.d.ts +23 -0
  94. package/dist/destinations/revend/ga4-properties.js +320 -0
  95. package/dist/destinations/revend/ga4-properties.js.map +1 -0
  96. package/dist/destinations/revend/ga4-types.d.ts +27 -0
  97. package/dist/destinations/revend/ga4-types.js +3 -0
  98. package/dist/destinations/revend/ga4-types.js.map +1 -0
  99. package/dist/destinations/revend/generateLead/generated-types.d.ts +14 -0
  100. package/dist/destinations/revend/generateLead/generated-types.js +3 -0
  101. package/dist/destinations/revend/generateLead/generated-types.js.map +1 -0
  102. package/dist/destinations/revend/generateLead/index.d.ts +5 -0
  103. package/dist/destinations/revend/generateLead/index.js +57 -0
  104. package/dist/destinations/revend/generateLead/index.js.map +1 -0
  105. package/dist/destinations/revend/generated-types.d.ts +3 -0
  106. package/dist/destinations/revend/generated-types.js +3 -0
  107. package/dist/destinations/revend/generated-types.js.map +1 -0
  108. package/dist/destinations/revend/index.d.ts +4 -0
  109. package/dist/destinations/revend/index.js +70 -0
  110. package/dist/destinations/revend/index.js.map +1 -0
  111. package/dist/destinations/revend/login/generated-types.d.ts +13 -0
  112. package/dist/destinations/revend/login/generated-types.js +3 -0
  113. package/dist/destinations/revend/login/generated-types.js.map +1 -0
  114. package/dist/destinations/revend/login/index.d.ts +5 -0
  115. package/dist/destinations/revend/login/index.js +52 -0
  116. package/dist/destinations/revend/login/index.js.map +1 -0
  117. package/dist/destinations/revend/pageView/generated-types.d.ts +15 -0
  118. package/dist/destinations/revend/pageView/generated-types.js +3 -0
  119. package/dist/destinations/revend/pageView/generated-types.js.map +1 -0
  120. package/dist/destinations/revend/pageView/index.d.ts +5 -0
  121. package/dist/destinations/revend/pageView/index.js +73 -0
  122. package/dist/destinations/revend/pageView/index.js.map +1 -0
  123. package/dist/destinations/revend/purchase/generated-types.d.ts +40 -0
  124. package/dist/destinations/revend/purchase/generated-types.js +3 -0
  125. package/dist/destinations/revend/purchase/generated-types.js.map +1 -0
  126. package/dist/destinations/revend/purchase/index.d.ts +5 -0
  127. package/dist/destinations/revend/purchase/index.js +79 -0
  128. package/dist/destinations/revend/purchase/index.js.map +1 -0
  129. package/dist/destinations/revend/refund/generated-types.d.ts +40 -0
  130. package/dist/destinations/revend/refund/generated-types.js +3 -0
  131. package/dist/destinations/revend/refund/generated-types.js.map +1 -0
  132. package/dist/destinations/revend/refund/index.d.ts +5 -0
  133. package/dist/destinations/revend/refund/index.js +90 -0
  134. package/dist/destinations/revend/refund/index.js.map +1 -0
  135. package/dist/destinations/revend/removeFromCart/generated-types.d.ts +35 -0
  136. package/dist/destinations/revend/removeFromCart/generated-types.js +3 -0
  137. package/dist/destinations/revend/removeFromCart/generated-types.js.map +1 -0
  138. package/dist/destinations/revend/removeFromCart/index.d.ts +5 -0
  139. package/dist/destinations/revend/removeFromCart/index.js +77 -0
  140. package/dist/destinations/revend/removeFromCart/index.js.map +1 -0
  141. package/dist/destinations/revend/search/generated-types.d.ts +13 -0
  142. package/dist/destinations/revend/search/generated-types.js +3 -0
  143. package/dist/destinations/revend/search/generated-types.js.map +1 -0
  144. package/dist/destinations/revend/search/index.d.ts +5 -0
  145. package/dist/destinations/revend/search/index.js +56 -0
  146. package/dist/destinations/revend/search/index.js.map +1 -0
  147. package/dist/destinations/revend/selectItem/generated-types.d.ts +35 -0
  148. package/dist/destinations/revend/selectItem/generated-types.js +3 -0
  149. package/dist/destinations/revend/selectItem/generated-types.js.map +1 -0
  150. package/dist/destinations/revend/selectItem/index.d.ts +5 -0
  151. package/dist/destinations/revend/selectItem/index.js +76 -0
  152. package/dist/destinations/revend/selectItem/index.js.map +1 -0
  153. package/dist/destinations/revend/selectPromotion/generated-types.d.ts +42 -0
  154. package/dist/destinations/revend/selectPromotion/generated-types.js +3 -0
  155. package/dist/destinations/revend/selectPromotion/generated-types.js.map +1 -0
  156. package/dist/destinations/revend/selectPromotion/index.d.ts +5 -0
  157. package/dist/destinations/revend/selectPromotion/index.js +92 -0
  158. package/dist/destinations/revend/selectPromotion/index.js.map +1 -0
  159. package/dist/destinations/revend/signUp/generated-types.d.ts +13 -0
  160. package/dist/destinations/revend/signUp/generated-types.js +3 -0
  161. package/dist/destinations/revend/signUp/generated-types.js.map +1 -0
  162. package/dist/destinations/revend/signUp/index.d.ts +5 -0
  163. package/dist/destinations/revend/signUp/index.js +55 -0
  164. package/dist/destinations/revend/signUp/index.js.map +1 -0
  165. package/dist/destinations/revend/viewCart/generated-types.d.ts +35 -0
  166. package/dist/destinations/revend/viewCart/generated-types.js +3 -0
  167. package/dist/destinations/revend/viewCart/generated-types.js.map +1 -0
  168. package/dist/destinations/revend/viewCart/index.d.ts +5 -0
  169. package/dist/destinations/revend/viewCart/index.js +77 -0
  170. package/dist/destinations/revend/viewCart/index.js.map +1 -0
  171. package/dist/destinations/revend/viewItem/generated-types.d.ts +35 -0
  172. package/dist/destinations/revend/viewItem/generated-types.js +3 -0
  173. package/dist/destinations/revend/viewItem/generated-types.js.map +1 -0
  174. package/dist/destinations/revend/viewItem/index.d.ts +5 -0
  175. package/dist/destinations/revend/viewItem/index.js +71 -0
  176. package/dist/destinations/revend/viewItem/index.js.map +1 -0
  177. package/dist/destinations/revend/viewItemList/generated-types.d.ts +35 -0
  178. package/dist/destinations/revend/viewItemList/generated-types.js +3 -0
  179. package/dist/destinations/revend/viewItemList/generated-types.js.map +1 -0
  180. package/dist/destinations/revend/viewItemList/index.d.ts +5 -0
  181. package/dist/destinations/revend/viewItemList/index.js +82 -0
  182. package/dist/destinations/revend/viewItemList/index.js.map +1 -0
  183. package/dist/destinations/revend/viewPromotion/generated-types.d.ts +42 -0
  184. package/dist/destinations/revend/viewPromotion/generated-types.js +3 -0
  185. package/dist/destinations/revend/viewPromotion/generated-types.js.map +1 -0
  186. package/dist/destinations/revend/viewPromotion/index.d.ts +5 -0
  187. package/dist/destinations/revend/viewPromotion/index.js +96 -0
  188. package/dist/destinations/revend/viewPromotion/index.js.map +1 -0
  189. package/dist/destinations/tiktok-audiences/addUser/generated-types.d.ts +10 -0
  190. package/dist/destinations/tiktok-audiences/addUser/generated-types.js +3 -0
  191. package/dist/destinations/tiktok-audiences/addUser/generated-types.js.map +1 -0
  192. package/dist/destinations/tiktok-audiences/addUser/index.d.ts +5 -0
  193. package/dist/destinations/tiktok-audiences/addUser/index.js +45 -0
  194. package/dist/destinations/tiktok-audiences/addUser/index.js.map +1 -0
  195. package/dist/destinations/tiktok-audiences/api/api.test.d.ts +1 -0
  196. package/dist/destinations/tiktok-audiences/api/api.test.js +118 -0
  197. package/dist/destinations/tiktok-audiences/api/api.test.js.map +1 -0
  198. package/dist/destinations/tiktok-audiences/api/index.d.ts +14 -0
  199. package/dist/destinations/tiktok-audiences/api/index.js +95 -0
  200. package/dist/destinations/tiktok-audiences/api/index.js.map +1 -0
  201. package/dist/destinations/tiktok-audiences/constants.d.ts +2 -0
  202. package/dist/destinations/tiktok-audiences/constants.js +6 -0
  203. package/dist/destinations/tiktok-audiences/constants.js.map +1 -0
  204. package/dist/destinations/tiktok-audiences/createAudience/generated-types.d.ts +5 -0
  205. package/dist/destinations/tiktok-audiences/createAudience/generated-types.js +3 -0
  206. package/dist/destinations/tiktok-audiences/createAudience/generated-types.js.map +1 -0
  207. package/dist/destinations/tiktok-audiences/createAudience/index.d.ts +5 -0
  208. package/dist/destinations/tiktok-audiences/createAudience/index.js +36 -0
  209. package/dist/destinations/tiktok-audiences/createAudience/index.js.map +1 -0
  210. package/dist/destinations/tiktok-audiences/functions.d.ts +17 -0
  211. package/dist/destinations/tiktok-audiences/functions.js +113 -0
  212. package/dist/destinations/tiktok-audiences/functions.js.map +1 -0
  213. package/dist/destinations/tiktok-audiences/generated-types.d.ts +3 -0
  214. package/dist/destinations/tiktok-audiences/generated-types.js +3 -0
  215. package/dist/destinations/tiktok-audiences/generated-types.js.map +1 -0
  216. package/dist/destinations/tiktok-audiences/index.d.ts +4 -0
  217. package/dist/destinations/tiktok-audiences/index.js +52 -0
  218. package/dist/destinations/tiktok-audiences/index.js.map +1 -0
  219. package/dist/destinations/tiktok-audiences/properties.d.ts +12 -0
  220. package/dist/destinations/tiktok-audiences/properties.js +85 -0
  221. package/dist/destinations/tiktok-audiences/properties.js.map +1 -0
  222. package/dist/destinations/tiktok-audiences/removeUser/generated-types.d.ts +10 -0
  223. package/dist/destinations/tiktok-audiences/removeUser/generated-types.js +3 -0
  224. package/dist/destinations/tiktok-audiences/removeUser/generated-types.js.map +1 -0
  225. package/dist/destinations/tiktok-audiences/removeUser/index.d.ts +5 -0
  226. package/dist/destinations/tiktok-audiences/removeUser/index.js +45 -0
  227. package/dist/destinations/tiktok-audiences/removeUser/index.js.map +1 -0
  228. package/dist/destinations/tiktok-audiences/types.d.ts +33 -0
  229. package/dist/destinations/tiktok-audiences/types.js +3 -0
  230. package/dist/destinations/tiktok-audiences/types.js.map +1 -0
  231. package/package.json +4 -5
@@ -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,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=generated-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/revend/customEvent/generated-types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ import type { ActionDefinition } from '@segment/actions-core';
2
+ import type { Settings } from '../generated-types';
3
+ import type { Payload } from './generated-types';
4
+ declare const action: ActionDefinition<Settings, Payload>;
5
+ export default action;
@@ -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,IA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AC,eAAe,CAAC,CAAA;SACzC;QAED,MAAM,cAAc,GAA2B;YAC7C,SAAS,EAAE,OAAO,CAAC,QAAQ;YAC3B,OAAO,EAAE,OAAO,CAAC,OAAO;YACxB,MAAM,EAAE;gBACN;oBACE,IAAI,EAAE,UAAU;oBAChB,MAAM,EAAE;wBACN,oBAAoB,EAAE,OAAO,CAAC,oBAAoB;wBAClD,GAAG,OAAO,CAAC,MAAM;qBAClB;iBACF;aACF;YACD,GAAG,qCAAoB,CAAC,OAAO,CAAC,eAAe,CAAC;SACjD,CAAA;QAED,IAAI,QAAQ,IAAI,QAAQ,CAAC,0CAA0C,CAAC,EAAE;YACpE,cAAc,CAAC,gBAAgB,GAAG,gCAAgB,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAA;SAC7E;QAED,OAAO,OAAO,CAAC,sEAAsE,EAAE;YACrF,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,cAAc;SACrB,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AACD,kBAAe,MAAM,CAAA"}
@@ -0,0 +1,4 @@
1
+ export declare function verifyCurrency(currency: string): void;
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,C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AAK,oEAAoE,EACjI,eAAe,EACf,GAAG,CACJ,CAAA;SACF;IACH,CAAC,CAAC,CAAA;AACJ,CAAC;AApBD,0CAoBC;AAGD,SAAgB,gBAAgB,CAAC,SAA6B;IAC5D,IAAI,CAAC,SAAS,EAAE;QACd,OAAO,SAAS,CAAA;KACjB;IAGD,IAAI,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,EAAE;QACtB,OAAO,CAAC,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;