@segment/action-destinations 3.251.0-staging-4f80e07be → 3.251.0-staging-23cb4e866

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 (119) hide show
  1. package/dist/destinations/linkedin-conversions/api/api.test.js +4 -5
  2. package/dist/destinations/linkedin-conversions/api/api.test.js.map +1 -1
  3. package/dist/destinations/linkedin-conversions/api/index.d.ts +6 -8
  4. package/dist/destinations/linkedin-conversions/api/index.js +10 -41
  5. package/dist/destinations/linkedin-conversions/api/index.js.map +1 -1
  6. package/dist/destinations/linkedin-conversions/streamConversion/generated-types.d.ts +2 -2
  7. package/dist/destinations/linkedin-conversions/streamConversion/index.js +34 -48
  8. package/dist/destinations/linkedin-conversions/streamConversion/index.js.map +1 -1
  9. package/dist/destinations/marketo-static-lists/addToList/generated-types.d.ts +1 -13
  10. package/dist/destinations/marketo-static-lists/addToList/index.js +2 -69
  11. package/dist/destinations/marketo-static-lists/addToList/index.js.map +1 -1
  12. package/dist/destinations/marketo-static-lists/constants.d.ts +3 -10
  13. package/dist/destinations/marketo-static-lists/constants.js +14 -2
  14. package/dist/destinations/marketo-static-lists/constants.js.map +1 -1
  15. package/dist/destinations/marketo-static-lists/functions.d.ts +1 -18
  16. package/dist/destinations/marketo-static-lists/functions.js +1 -87
  17. package/dist/destinations/marketo-static-lists/functions.js.map +1 -1
  18. package/dist/destinations/marketo-static-lists/index.js +42 -4
  19. package/dist/destinations/marketo-static-lists/index.js.map +1 -1
  20. package/dist/destinations/marketo-static-lists/properties.js +2 -1
  21. package/dist/destinations/marketo-static-lists/properties.js.map +1 -1
  22. package/dist/destinations/marketo-static-lists/removeFromList/generated-types.d.ts +1 -1
  23. package/dist/destinations/responsys/index.d.ts +1 -1
  24. package/dist/destinations/responsys/index.js +2 -12
  25. package/dist/destinations/responsys/index.js.map +1 -1
  26. package/dist/destinations/responsys/sendAudience/generated-types.d.ts +0 -2
  27. package/dist/destinations/responsys/sendAudience/index.js +6 -25
  28. package/dist/destinations/responsys/sendAudience/index.js.map +1 -1
  29. package/dist/destinations/responsys/sendCustomTraits/generated-types.d.ts +0 -2
  30. package/dist/destinations/responsys/sendCustomTraits/index.js +6 -25
  31. package/dist/destinations/responsys/sendCustomTraits/index.js.map +1 -1
  32. package/dist/destinations/responsys/upsertListMember/generated-types.d.ts +0 -1
  33. package/dist/destinations/responsys/upsertListMember/index.js +1 -8
  34. package/dist/destinations/responsys/upsertListMember/index.js.map +1 -1
  35. package/dist/destinations/responsys/utils.d.ts +1 -3
  36. package/dist/destinations/responsys/utils.js +7 -23
  37. package/dist/destinations/responsys/utils.js.map +1 -1
  38. package/package.json +2 -2
  39. package/dist/destinations/engage/sendgrid/Profile.d.ts +0 -6
  40. package/dist/destinations/engage/sendgrid/Profile.js +0 -3
  41. package/dist/destinations/engage/sendgrid/Profile.js.map +0 -1
  42. package/dist/destinations/engage/sendgrid/previewApiLookup/api-lookups.d.ts +0 -21
  43. package/dist/destinations/engage/sendgrid/previewApiLookup/api-lookups.js +0 -174
  44. package/dist/destinations/engage/sendgrid/previewApiLookup/api-lookups.js.map +0 -1
  45. package/dist/destinations/moloco-rmp/addToCart/generated-types.d.ts +0 -28
  46. package/dist/destinations/moloco-rmp/addToCart/generated-types.js +0 -3
  47. package/dist/destinations/moloco-rmp/addToCart/generated-types.js.map +0 -1
  48. package/dist/destinations/moloco-rmp/addToCart/index.d.ts +0 -5
  49. package/dist/destinations/moloco-rmp/addToCart/index.js +0 -44
  50. package/dist/destinations/moloco-rmp/addToCart/index.js.map +0 -1
  51. package/dist/destinations/moloco-rmp/addToWishlist/generated-types.d.ts +0 -32
  52. package/dist/destinations/moloco-rmp/addToWishlist/generated-types.js +0 -3
  53. package/dist/destinations/moloco-rmp/addToWishlist/generated-types.js.map +0 -1
  54. package/dist/destinations/moloco-rmp/addToWishlist/index.d.ts +0 -5
  55. package/dist/destinations/moloco-rmp/addToWishlist/index.js +0 -45
  56. package/dist/destinations/moloco-rmp/addToWishlist/index.js.map +0 -1
  57. package/dist/destinations/moloco-rmp/common/convert.d.ts +0 -9
  58. package/dist/destinations/moloco-rmp/common/convert.js +0 -83
  59. package/dist/destinations/moloco-rmp/common/convert.js.map +0 -1
  60. package/dist/destinations/moloco-rmp/common/event.d.ts +0 -10
  61. package/dist/destinations/moloco-rmp/common/event.js +0 -15
  62. package/dist/destinations/moloco-rmp/common/event.js.map +0 -1
  63. package/dist/destinations/moloco-rmp/common/fields.d.ts +0 -14
  64. package/dist/destinations/moloco-rmp/common/fields.js +0 -348
  65. package/dist/destinations/moloco-rmp/common/fields.js.map +0 -1
  66. package/dist/destinations/moloco-rmp/common/payload/moloco.d.ts +0 -35
  67. package/dist/destinations/moloco-rmp/common/payload/moloco.js +0 -3
  68. package/dist/destinations/moloco-rmp/common/payload/moloco.js.map +0 -1
  69. package/dist/destinations/moloco-rmp/common/payload/segment.d.ts +0 -40
  70. package/dist/destinations/moloco-rmp/common/payload/segment.js +0 -3
  71. package/dist/destinations/moloco-rmp/common/payload/segment.js.map +0 -1
  72. package/dist/destinations/moloco-rmp/common/request-client.d.ts +0 -11
  73. package/dist/destinations/moloco-rmp/common/request-client.js +0 -28
  74. package/dist/destinations/moloco-rmp/common/request-client.js.map +0 -1
  75. package/dist/destinations/moloco-rmp/common/settings.d.ts +0 -4
  76. package/dist/destinations/moloco-rmp/common/settings.js +0 -3
  77. package/dist/destinations/moloco-rmp/common/settings.js.map +0 -1
  78. package/dist/destinations/moloco-rmp/generated-types.d.ts +0 -5
  79. package/dist/destinations/moloco-rmp/generated-types.js +0 -3
  80. package/dist/destinations/moloco-rmp/generated-types.js.map +0 -1
  81. package/dist/destinations/moloco-rmp/home/generated-types.d.ts +0 -28
  82. package/dist/destinations/moloco-rmp/home/generated-types.js +0 -3
  83. package/dist/destinations/moloco-rmp/home/generated-types.js.map +0 -1
  84. package/dist/destinations/moloco-rmp/home/index.d.ts +0 -5
  85. package/dist/destinations/moloco-rmp/home/index.js +0 -29
  86. package/dist/destinations/moloco-rmp/home/index.js.map +0 -1
  87. package/dist/destinations/moloco-rmp/index.d.ts +0 -4
  88. package/dist/destinations/moloco-rmp/index.js +0 -117
  89. package/dist/destinations/moloco-rmp/index.js.map +0 -1
  90. package/dist/destinations/moloco-rmp/itemPageView/generated-types.d.ts +0 -28
  91. package/dist/destinations/moloco-rmp/itemPageView/generated-types.js +0 -3
  92. package/dist/destinations/moloco-rmp/itemPageView/generated-types.js.map +0 -1
  93. package/dist/destinations/moloco-rmp/itemPageView/index.d.ts +0 -5
  94. package/dist/destinations/moloco-rmp/itemPageView/index.js +0 -44
  95. package/dist/destinations/moloco-rmp/itemPageView/index.js.map +0 -1
  96. package/dist/destinations/moloco-rmp/land/generated-types.d.ts +0 -29
  97. package/dist/destinations/moloco-rmp/land/generated-types.js +0 -3
  98. package/dist/destinations/moloco-rmp/land/generated-types.js.map +0 -1
  99. package/dist/destinations/moloco-rmp/land/index.d.ts +0 -5
  100. package/dist/destinations/moloco-rmp/land/index.js +0 -33
  101. package/dist/destinations/moloco-rmp/land/index.js.map +0 -1
  102. package/dist/destinations/moloco-rmp/pageView/generated-types.d.ts +0 -29
  103. package/dist/destinations/moloco-rmp/pageView/generated-types.js +0 -3
  104. package/dist/destinations/moloco-rmp/pageView/generated-types.js.map +0 -1
  105. package/dist/destinations/moloco-rmp/pageView/index.d.ts +0 -5
  106. package/dist/destinations/moloco-rmp/pageView/index.js +0 -36
  107. package/dist/destinations/moloco-rmp/pageView/index.js.map +0 -1
  108. package/dist/destinations/moloco-rmp/purchase/generated-types.d.ts +0 -36
  109. package/dist/destinations/moloco-rmp/purchase/generated-types.js +0 -3
  110. package/dist/destinations/moloco-rmp/purchase/generated-types.js.map +0 -1
  111. package/dist/destinations/moloco-rmp/purchase/index.d.ts +0 -5
  112. package/dist/destinations/moloco-rmp/purchase/index.js +0 -37
  113. package/dist/destinations/moloco-rmp/purchase/index.js.map +0 -1
  114. package/dist/destinations/moloco-rmp/search/generated-types.d.ts +0 -30
  115. package/dist/destinations/moloco-rmp/search/generated-types.js +0 -3
  116. package/dist/destinations/moloco-rmp/search/generated-types.js.map +0 -1
  117. package/dist/destinations/moloco-rmp/search/index.d.ts +0 -5
  118. package/dist/destinations/moloco-rmp/search/index.js +0 -34
  119. package/dist/destinations/moloco-rmp/search/index.js.map +0 -1
@@ -1,10 +0,0 @@
1
- export declare enum EventType {
2
- Search = "SEARCH",
3
- ItemPageView = "ITEM_PAGE_VIEW",
4
- AddToCart = "ADD_TO_CART",
5
- Purchase = "PURCHASE",
6
- AddtoWishlist = "ADD_TO_WISHLIST",
7
- Home = "HOME",
8
- Land = "LAND",
9
- PageView = "PAGE_VIEW"
10
- }
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EventType = void 0;
4
- var EventType;
5
- (function (EventType) {
6
- EventType["Search"] = "SEARCH";
7
- EventType["ItemPageView"] = "ITEM_PAGE_VIEW";
8
- EventType["AddToCart"] = "ADD_TO_CART";
9
- EventType["Purchase"] = "PURCHASE";
10
- EventType["AddtoWishlist"] = "ADD_TO_WISHLIST";
11
- EventType["Home"] = "HOME";
12
- EventType["Land"] = "LAND";
13
- EventType["PageView"] = "PAGE_VIEW";
14
- })(EventType = exports.EventType || (exports.EventType = {}));
15
- //# sourceMappingURL=event.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"event.js","sourceRoot":"","sources":["../../../../src/destinations/moloco-rmp/common/event.ts"],"names":[],"mappings":";;;AAAA,IAAY,SASX;AATD,WAAY,SAAS;IACnB,8BAAiB,CAAA;IACjB,4CAA+B,CAAA;IAC/B,sCAAyB,CAAA;IACzB,kCAAqB,CAAA;IACrB,8CAAiC,CAAA;IACjC,0BAAa,CAAA;IACb,0BAAa,CAAA;IACb,mCAAsB,CAAA;AACxB,CAAC,EATW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QASpB"}
@@ -1,14 +0,0 @@
1
- import { InputField } from '@segment/actions-core/destination-kit/types';
2
- export declare const event_id: InputField;
3
- export declare const timestamp: InputField;
4
- export declare const user_id: InputField;
5
- export declare const device: InputField;
6
- export declare const session_id: InputField;
7
- export declare const default_currency: InputField;
8
- export declare const items: InputField;
9
- export declare const revenue: InputField;
10
- export declare const search_query: InputField;
11
- export declare const page_id: InputField;
12
- export declare const page_identifier_tokens: InputField;
13
- export declare const referrer_page_id: InputField;
14
- export declare const shipping_charge: InputField;
@@ -1,348 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.shipping_charge = exports.referrer_page_id = exports.page_identifier_tokens = exports.page_id = exports.search_query = exports.revenue = exports.items = exports.default_currency = exports.session_id = exports.device = exports.user_id = exports.timestamp = exports.event_id = void 0;
4
- exports.event_id = {
5
- label: 'Event ID',
6
- description: 'Unique ID generated by the client to suppress duplicate events. The length should not exceed 128 characters.',
7
- type: 'string',
8
- required: false,
9
- default: {
10
- '@path': '$.messageId'
11
- }
12
- };
13
- exports.timestamp = {
14
- label: 'Timestamp',
15
- description: 'Timestamp that the event happened at.',
16
- type: 'datetime',
17
- required: true,
18
- default: {
19
- '@path': '$.timestamp'
20
- }
21
- };
22
- exports.user_id = {
23
- label: 'User ID',
24
- description: 'User Identifier for the platform. The length should not exceed 128 characters.',
25
- type: 'string',
26
- required: false,
27
- default: {
28
- '@path': '$.userId'
29
- }
30
- };
31
- exports.device = {
32
- label: 'Device',
33
- description: `Device information of the event`,
34
- type: 'object',
35
- required: false,
36
- properties: {
37
- os: {
38
- label: 'OS',
39
- description: 'OS of the device. "ios" or "android" must be included for the APP channel type.',
40
- type: 'string',
41
- required: false
42
- },
43
- os_version: {
44
- label: 'OS Version',
45
- description: 'Device OS version, which is taken from the device without manipulation or normalization. (e.g., "14.4.1")',
46
- type: 'string',
47
- required: false
48
- },
49
- advertising_id: {
50
- label: 'Advertising ID',
51
- description: 'For app traffic, IDFA of iOS or ADID of android should be filled in this field. (e.g., 7acefbed-d1f6-4e4e-aa26-74e93dd017e4)',
52
- type: 'string',
53
- required: false
54
- },
55
- unique_device_id: {
56
- label: 'Unique Device ID',
57
- description: `For app traffic, a unique identifier for the device being used should be provided in this field.
58
- Clients can issue identifiers for their user devices or use their IDFV values if using iOS apps.
59
- The length of this id should not exceed 128 characters.`,
60
- type: 'string',
61
- required: false
62
- },
63
- model: {
64
- label: 'Model',
65
- description: 'Device model, which is taken from the device without manipulation or normalization. (e.g., "iPhone 11 Pro")',
66
- type: 'string',
67
- required: false
68
- },
69
- ua: {
70
- label: 'User Agent',
71
- description: 'User Agent. (e.g., "Mozilla/5.0 (iPhone; CPU iPhone OS 14_4_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/111FFF")',
72
- type: 'string',
73
- required: false
74
- },
75
- language: {
76
- label: 'Language',
77
- description: 'ISO-639-1 alpha-2 language code. (e.g., "en")',
78
- type: 'string',
79
- required: false
80
- },
81
- ip: {
82
- label: 'IP Address',
83
- description: 'IP in IPv4 format. (e.g., 216.212.237.213)',
84
- type: 'string',
85
- required: false
86
- }
87
- },
88
- default: {
89
- os: { '@path': '$.context.os.name' },
90
- os_version: { '@path': '$.context.os.version' },
91
- advertising_id: { '@path': '$.context.device.advertisingId' },
92
- unique_device_id: { '@path': '$.context.device.id' },
93
- model: { '@path': '$.context.device.model' },
94
- ua: { '@path': '$.context.userAgent' },
95
- ip: { '@path': '$.context.ip' }
96
- }
97
- };
98
- exports.session_id = {
99
- label: 'Session ID',
100
- description: 'Identifier for tracking users regardless of sign-in status. The length should not exceed 128 characters.',
101
- type: 'string',
102
- required: false,
103
- default: {
104
- '@path': '$.anonymousId'
105
- }
106
- };
107
- exports.default_currency = {
108
- label: 'Default Currency',
109
- description: 'The default currency value. Defaults to "USD". If this is set, it will be used as a default currency value for items.',
110
- choices: [
111
- { label: 'UNKNOWN_CURRENCY', value: 'UNKNOWN_CURRENCY' },
112
- { label: 'USD', value: 'USD' },
113
- { label: 'KRW', value: 'KRW' },
114
- { label: 'JPY', value: 'JPY' },
115
- { label: 'EUR', value: 'EUR' },
116
- { label: 'GBP', value: 'GBP' },
117
- { label: 'SEK', value: 'SEK' },
118
- { label: 'INR', value: 'INR' },
119
- { label: 'THB', value: 'THB' },
120
- { label: 'IDR', value: 'IDR' },
121
- { label: 'CNY', value: 'CNY' },
122
- { label: 'CAD', value: 'CAD' },
123
- { label: 'RUB', value: 'RUB' },
124
- { label: 'BRL', value: 'BRL' },
125
- { label: 'SGD', value: 'SGD' },
126
- { label: 'HKD', value: 'HKD' },
127
- { label: 'AUD', value: 'AUD' },
128
- { label: 'PLN', value: 'PLN' },
129
- { label: 'DKK', value: 'DKK' },
130
- { label: 'VND', value: 'VND' },
131
- { label: 'MYR', value: 'MYR' },
132
- { label: 'PHP', value: 'PHP' },
133
- { label: 'TRY', value: 'TRY' },
134
- { label: 'VEF', value: 'VEF' }
135
- ],
136
- default: 'USD',
137
- type: 'string',
138
- required: false
139
- };
140
- exports.items = {
141
- label: 'Items',
142
- description: 'Item information list related to the event.',
143
- type: 'object',
144
- required: false,
145
- multiple: true,
146
- properties: {
147
- id: {
148
- label: 'ID',
149
- description: 'Unique identifier of the Item.',
150
- type: 'string',
151
- required: true
152
- },
153
- price: {
154
- label: 'Price',
155
- description: 'Monetary amount without currency, e.g. 12.34. This field is required if the Currency field is populated.',
156
- type: 'number',
157
- required: false
158
- },
159
- currency: {
160
- label: 'Currency',
161
- description: 'Currency information. This field is required if the Price field is populated.',
162
- choices: [
163
- { label: 'UNKNOWN_CURRENCY', value: 'UNKNOWN_CURRENCY' },
164
- { label: 'USD', value: 'USD' },
165
- { label: 'KRW', value: 'KRW' },
166
- { label: 'JPY', value: 'JPY' },
167
- { label: 'EUR', value: 'EUR' },
168
- { label: 'GBP', value: 'GBP' },
169
- { label: 'SEK', value: 'SEK' },
170
- { label: 'INR', value: 'INR' },
171
- { label: 'THB', value: 'THB' },
172
- { label: 'IDR', value: 'IDR' },
173
- { label: 'CNY', value: 'CNY' },
174
- { label: 'CAD', value: 'CAD' },
175
- { label: 'RUB', value: 'RUB' },
176
- { label: 'BRL', value: 'BRL' },
177
- { label: 'SGD', value: 'SGD' },
178
- { label: 'HKD', value: 'HKD' },
179
- { label: 'AUD', value: 'AUD' },
180
- { label: 'PLN', value: 'PLN' },
181
- { label: 'DKK', value: 'DKK' },
182
- { label: 'VND', value: 'VND' },
183
- { label: 'MYR', value: 'MYR' },
184
- { label: 'PHP', value: 'PHP' },
185
- { label: 'TRY', value: 'TRY' },
186
- { label: 'VEF', value: 'VEF' }
187
- ],
188
- type: 'string',
189
- required: false
190
- },
191
- quantity: {
192
- label: 'Quantity',
193
- description: 'Quantity of the item. Recommended.',
194
- type: 'integer',
195
- required: false
196
- },
197
- seller_id: {
198
- label: 'Seller ID',
199
- description: 'Unique identifier of the Seller.',
200
- type: 'string',
201
- required: false
202
- }
203
- },
204
- default: {
205
- '@arrayPath': [
206
- '$.properties.products',
207
- {
208
- id: { '@path': '$.product_id' },
209
- price: { '@path': '$.price' },
210
- currency: { '@path': '$.currency' },
211
- quantity: { '@path': '$.quantity' },
212
- seller_id: { '@path': '$.seller_id' }
213
- }
214
- ]
215
- }
216
- };
217
- exports.revenue = {
218
- label: 'Revenue',
219
- description: 'Revenue of the event',
220
- type: 'object',
221
- required: false,
222
- additionalProperties: false,
223
- properties: {
224
- price: {
225
- label: 'Price',
226
- description: 'Monetary amount without currency, e.g. 12.34. This field is required if the Currency field is populated.',
227
- type: 'number',
228
- required: true
229
- },
230
- currency: {
231
- label: 'Currency',
232
- description: 'Currency information. This field is required if the Price field is populated.',
233
- choices: [
234
- { label: 'UNKNOWN_CURRENCY', value: 'UNKNOWN_CURRENCY' },
235
- { label: 'USD', value: 'USD' },
236
- { label: 'KRW', value: 'KRW' },
237
- { label: 'JPY', value: 'JPY' },
238
- { label: 'EUR', value: 'EUR' },
239
- { label: 'GBP', value: 'GBP' },
240
- { label: 'SEK', value: 'SEK' },
241
- { label: 'INR', value: 'INR' },
242
- { label: 'THB', value: 'THB' },
243
- { label: 'IDR', value: 'IDR' },
244
- { label: 'CNY', value: 'CNY' },
245
- { label: 'CAD', value: 'CAD' },
246
- { label: 'RUB', value: 'RUB' },
247
- { label: 'BRL', value: 'BRL' },
248
- { label: 'SGD', value: 'SGD' },
249
- { label: 'HKD', value: 'HKD' },
250
- { label: 'AUD', value: 'AUD' },
251
- { label: 'PLN', value: 'PLN' },
252
- { label: 'DKK', value: 'DKK' },
253
- { label: 'VND', value: 'VND' },
254
- { label: 'MYR', value: 'MYR' },
255
- { label: 'PHP', value: 'PHP' },
256
- { label: 'TRY', value: 'TRY' },
257
- { label: 'VEF', value: 'VEF' }
258
- ],
259
- type: 'string',
260
- required: true
261
- }
262
- },
263
- default: {
264
- price: { '@path': '$.properties.revenue' },
265
- currency: { '@path': '$.properties.currency' }
266
- }
267
- };
268
- exports.search_query = {
269
- label: 'Search Query',
270
- description: 'Query string for the search.',
271
- type: 'string',
272
- required: false,
273
- default: {
274
- '@path': '$.properties.query'
275
- }
276
- };
277
- exports.page_id = {
278
- label: 'Page ID',
279
- description: `A string value used to uniquely identify a page. For example: "electronics", "categories/12312", "azd911d" or "/classes/foo/lectures/bar".`,
280
- type: 'string',
281
- required: false,
282
- default: {
283
- '@path': '$.context.page.path'
284
- }
285
- };
286
- exports.page_identifier_tokens = {
287
- label: 'Page Identifier Tokens',
288
- description: 'Tokens that can be used to identify a page. Alternative to page_id with a lower priority.',
289
- type: 'object',
290
- defaultObjectUI: 'keyvalue',
291
- required: false
292
- };
293
- exports.referrer_page_id = {
294
- label: 'Referrer Page ID',
295
- description: 'Similar to referrer in HTTP, this value indicates from which page the user came to the current page.',
296
- type: 'string',
297
- required: false,
298
- default: {
299
- '@path': '$.context.page.referrer'
300
- }
301
- };
302
- exports.shipping_charge = {
303
- label: 'Shipping Charge',
304
- description: 'Shipping charge’s monetary amount in a specific currency.',
305
- type: 'object',
306
- required: false,
307
- properties: {
308
- price: {
309
- label: 'Price',
310
- description: 'Monetary amount without currency, e.g. 12.34. This field is required if the Currency field is populated.',
311
- type: 'number',
312
- required: true
313
- },
314
- currency: {
315
- label: 'Currency',
316
- description: 'Currency information. This field is required if the Price field is populated.',
317
- choices: [
318
- { label: 'UNKNOWN_CURRENCY', value: 'UNKNOWN_CURRENCY' },
319
- { label: 'USD', value: 'USD' },
320
- { label: 'KRW', value: 'KRW' },
321
- { label: 'JPY', value: 'JPY' },
322
- { label: 'EUR', value: 'EUR' },
323
- { label: 'GBP', value: 'GBP' },
324
- { label: 'SEK', value: 'SEK' },
325
- { label: 'INR', value: 'INR' },
326
- { label: 'THB', value: 'THB' },
327
- { label: 'IDR', value: 'IDR' },
328
- { label: 'CNY', value: 'CNY' },
329
- { label: 'CAD', value: 'CAD' },
330
- { label: 'RUB', value: 'RUB' },
331
- { label: 'BRL', value: 'BRL' },
332
- { label: 'SGD', value: 'SGD' },
333
- { label: 'HKD', value: 'HKD' },
334
- { label: 'AUD', value: 'AUD' },
335
- { label: 'PLN', value: 'PLN' },
336
- { label: 'DKK', value: 'DKK' },
337
- { label: 'VND', value: 'VND' },
338
- { label: 'MYR', value: 'MYR' },
339
- { label: 'PHP', value: 'PHP' },
340
- { label: 'TRY', value: 'TRY' },
341
- { label: 'VEF', value: 'VEF' }
342
- ],
343
- type: 'string',
344
- required: true
345
- }
346
- }
347
- };
348
- //# sourceMappingURL=fields.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../../src/destinations/moloco-rmp/common/fields.ts"],"names":[],"mappings":";;;AAEa,QAAA,QAAQ,GAAe;IAClC,KAAK,EAAE,UAAU;IACjB,WAAW,EACT,8GAA8G;IAChH,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,KAAK;IACf,OAAO,EAAE;QACP,OAAO,EAAE,aAAa;KACvB;CACF,CAAA;AAEY,QAAA,SAAS,GAAe;IACnC,KAAK,EAAE,WAAW;IAClB,WAAW,EAAE,uCAAuC;IACpD,IAAI,EAAE,UAAU;IAChB,QAAQ,EAAE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EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE;gBAC9B,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE;gBAC9B,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE;gBAC9B,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE;gBAC9B,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE;gBAC9B,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE;gBAC9B,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE;gBAC9B,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE;gBAC9B,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE;gBAC9B,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE;gBAC9B,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE;gBAC9B,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE;gBAC9B,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE;gBAC9B,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE;gBAC9B,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE;gBAC9B,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE;gBAC9B,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE;aAC/B;YACD,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACf;KACF;CACF,CAAA"}
@@ -1,35 +0,0 @@
1
- export declare type EventPayload = {
2
- event_type: string;
3
- id?: string;
4
- timestamp: string | number;
5
- channel_type: string;
6
- user_id?: string;
7
- device?: DevicePayload;
8
- session_id?: string;
9
- items?: ItemPayload[];
10
- revenue?: MoneyPayload;
11
- search_query?: string;
12
- page_id?: string;
13
- referrer_page_id?: string;
14
- shipping_charge?: MoneyPayload;
15
- };
16
- export declare type ItemPayload = {
17
- id: string;
18
- price?: MoneyPayload;
19
- quantity?: number;
20
- seller_id?: string;
21
- };
22
- export interface MoneyPayload {
23
- currency: string;
24
- amount: number;
25
- }
26
- export interface DevicePayload {
27
- os?: string;
28
- os_version?: string;
29
- advertising_id?: string;
30
- unique_device_id?: string;
31
- model?: string;
32
- ua?: string;
33
- language?: string;
34
- ip?: string;
35
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=moloco.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"moloco.js","sourceRoot":"","sources":["../../../../../src/destinations/moloco-rmp/common/payload/moloco.ts"],"names":[],"mappings":""}
@@ -1,40 +0,0 @@
1
- export interface EventPayload {
2
- event_id?: string;
3
- timestamp: string | number;
4
- user_id?: string;
5
- device?: DevicePayload;
6
- session_id?: string;
7
- default_currency?: string;
8
- items?: ItemPayload[];
9
- revenue?: {
10
- price: number;
11
- currency: string;
12
- };
13
- search_query?: string;
14
- page_id?: string;
15
- page_identifier_tokens?: {
16
- [k: string]: unknown;
17
- };
18
- referrer_page_id?: string;
19
- shipping_charge?: {
20
- price: number;
21
- currency: string;
22
- };
23
- }
24
- export interface ItemPayload {
25
- id: string;
26
- price?: number;
27
- currency?: string;
28
- quantity?: number;
29
- seller_id?: string;
30
- }
31
- export interface DevicePayload {
32
- os?: string;
33
- os_version?: string;
34
- advertising_id?: string;
35
- unique_device_id?: string;
36
- model?: string;
37
- ua?: string;
38
- language?: string;
39
- ip?: string;
40
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=segment.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"segment.js","sourceRoot":"","sources":["../../../../../src/destinations/moloco-rmp/common/payload/segment.ts"],"names":[],"mappings":""}
@@ -1,11 +0,0 @@
1
- import { RequestClient, ModifiedResponse } from '@segment/actions-core';
2
- import type { Settings } from '../generated-types';
3
- export declare class MolocoAPIClient {
4
- url: string;
5
- platform: string;
6
- apiKey: string;
7
- request: RequestClient;
8
- constructor(request: RequestClient, settings: Settings);
9
- private getEndpoint;
10
- sendEvent(body: Record<string, any>): Promise<ModifiedResponse>;
11
- }
@@ -1,28 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MolocoAPIClient = void 0;
4
- class MolocoAPIClient {
5
- constructor(request, settings) {
6
- this.platform = settings.platformId;
7
- this.apiKey = settings.apiKey;
8
- this.request = request;
9
- this.url = this.getEndpoint();
10
- }
11
- getEndpoint() {
12
- return `https://${this.platform.replace(/_/g, '-')}-evt.rmp-api.moloco.com/cdp/SEGMENT`;
13
- }
14
- async sendEvent(body) {
15
- const headers = {
16
- 'x-api-key': this.apiKey,
17
- 'x-platform-id': this.platform,
18
- 'Content-Type': 'application/json'
19
- };
20
- return await this.request(this.url, {
21
- method: 'POST',
22
- headers,
23
- json: body
24
- });
25
- }
26
- }
27
- exports.MolocoAPIClient = MolocoAPIClient;
28
- //# sourceMappingURL=request-client.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"request-client.js","sourceRoot":"","sources":["../../../../src/destinations/moloco-rmp/common/request-client.ts"],"names":[],"mappings":";;;AAGA,MAAa,eAAe;IAO1B,YAAY,OAAsB,EAAE,QAAkB;QACpD,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC,UAAU,CAAA;QACnC,IAAI,CAAC,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAA;QAC7B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;QAEtB,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,WAAW,EAAE,CAAA;IAC/B,CAAC;IAEO,WAAW;QACjB,OAAO,WAAW,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC,qCAAqC,CAAA;IACzF,CAAC;IAED,KAAK,CAAC,SAAS,CAAC,IAAyB;QACvC,MAAM,OAAO,GAAG;YACd,WAAW,EAAE,IAAI,CAAC,MAAM;YACxB,eAAe,EAAE,IAAI,CAAC,QAAQ;YAC9B,cAAc,EAAE,kBAAkB;SACnC,CAAA;QAED,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,EAAE;YAClC,MAAM,EAAE,MAAM;YACd,OAAO;YACP,IAAI,EAAE,IAAI;SACX,CAAC,CAAA;IACJ,CAAC;CACF;AAhCD,0CAgCC"}
@@ -1,4 +0,0 @@
1
- export interface Settings {
2
- platformId: string;
3
- apiKey: string;
4
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=settings.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"settings.js","sourceRoot":"","sources":["../../../../src/destinations/moloco-rmp/common/settings.ts"],"names":[],"mappings":""}
@@ -1,5 +0,0 @@
1
- export interface Settings {
2
- platformId: string;
3
- apiKey: string;
4
- channel_type: string;
5
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=generated-types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../src/destinations/moloco-rmp/generated-types.ts"],"names":[],"mappings":""}
@@ -1,28 +0,0 @@
1
- export interface Payload {
2
- event_id?: string;
3
- timestamp: string | number;
4
- user_id?: string;
5
- device?: {
6
- os?: string;
7
- os_version?: string;
8
- advertising_id?: string;
9
- unique_device_id?: string;
10
- model?: string;
11
- ua?: string;
12
- language?: string;
13
- ip?: string;
14
- };
15
- session_id?: string;
16
- default_currency?: string;
17
- items?: {
18
- id: string;
19
- price?: number;
20
- currency?: string;
21
- quantity?: number;
22
- seller_id?: string;
23
- }[];
24
- page_id?: string;
25
- page_identifier_tokens?: {
26
- [k: string]: unknown;
27
- };
28
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=generated-types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/moloco-rmp/home/generated-types.ts"],"names":[],"mappings":""}
@@ -1,5 +0,0 @@
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;
@@ -1,29 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const event_1 = require("../common/event");
4
- const fields_1 = require("../common/fields");
5
- const request_client_1 = require("../common/request-client");
6
- const convert_1 = require("../common/convert");
7
- const action = {
8
- title: 'Home',
9
- defaultSubscription: 'type = "page" and properties.name = "Home"',
10
- description: 'Represents a user visiting a home page',
11
- fields: {
12
- event_id: fields_1.event_id,
13
- timestamp: fields_1.timestamp,
14
- user_id: fields_1.user_id,
15
- device: fields_1.device,
16
- session_id: fields_1.session_id,
17
- default_currency: fields_1.default_currency,
18
- items: fields_1.items,
19
- page_id: fields_1.page_id,
20
- page_identifier_tokens: fields_1.page_identifier_tokens
21
- },
22
- perform: (request, { payload, settings }) => {
23
- const client = new request_client_1.MolocoAPIClient(request, settings);
24
- const body = convert_1.convertEvent({ eventType: event_1.EventType.Home, payload, settings });
25
- return client.sendEvent(body);
26
- }
27
- };
28
- exports.default = action;
29
- //# sourceMappingURL=index.js.map