@segment/action-destinations 3.169.0 → 3.171.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.
Files changed (193) hide show
  1. package/dist/destinations/acoustic/Utility/eventprocessing.js +18 -18
  2. package/dist/destinations/acoustic/Utility/eventprocessing.js.map +1 -1
  3. package/dist/destinations/adobe-target/adobeTarget_operations.js +3 -3
  4. package/dist/destinations/adobe-target/adobeTarget_operations.js.map +1 -1
  5. package/dist/destinations/airship/customEvents/generated-types.d.ts +9 -0
  6. package/dist/destinations/airship/customEvents/generated-types.js +3 -0
  7. package/dist/destinations/airship/customEvents/generated-types.js.map +1 -0
  8. package/dist/destinations/airship/customEvents/index.d.ts +5 -0
  9. package/dist/destinations/airship/customEvents/index.js +59 -0
  10. package/dist/destinations/airship/customEvents/index.js.map +1 -0
  11. package/dist/destinations/airship/generated-types.d.ts +5 -0
  12. package/dist/destinations/airship/generated-types.js +3 -0
  13. package/dist/destinations/airship/generated-types.js.map +1 -0
  14. package/dist/destinations/airship/index.d.ts +4 -0
  15. package/dist/destinations/airship/index.js +97 -0
  16. package/dist/destinations/airship/index.js.map +1 -0
  17. package/dist/destinations/airship/manageTags/generated-types.d.ts +7 -0
  18. package/dist/destinations/airship/manageTags/generated-types.js +3 -0
  19. package/dist/destinations/airship/manageTags/generated-types.js.map +1 -0
  20. package/dist/destinations/airship/manageTags/index.d.ts +5 -0
  21. package/dist/destinations/airship/manageTags/index.js +38 -0
  22. package/dist/destinations/airship/manageTags/index.js.map +1 -0
  23. package/dist/destinations/airship/setAttributes/generated-types.d.ts +30 -0
  24. package/dist/destinations/airship/setAttributes/generated-types.js +3 -0
  25. package/dist/destinations/airship/setAttributes/generated-types.js.map +1 -0
  26. package/dist/destinations/airship/setAttributes/index.d.ts +5 -0
  27. package/dist/destinations/airship/setAttributes/index.js +182 -0
  28. package/dist/destinations/airship/setAttributes/index.js.map +1 -0
  29. package/dist/destinations/airship/utilities.d.ts +28 -0
  30. package/dist/destinations/airship/utilities.js +146 -0
  31. package/dist/destinations/airship/utilities.js.map +1 -0
  32. package/dist/destinations/ambee/generated-types.d.ts +7 -0
  33. package/dist/destinations/ambee/generated-types.js +3 -0
  34. package/dist/destinations/ambee/generated-types.js.map +1 -0
  35. package/dist/destinations/ambee/index.d.ts +4 -0
  36. package/dist/destinations/ambee/index.js +62 -0
  37. package/dist/destinations/ambee/index.js.map +1 -0
  38. package/dist/destinations/ambee/subscribeUserToCampaign/generated-types.d.ts +9 -0
  39. package/dist/destinations/ambee/subscribeUserToCampaign/generated-types.js +3 -0
  40. package/dist/destinations/ambee/subscribeUserToCampaign/generated-types.js.map +1 -0
  41. package/dist/destinations/ambee/subscribeUserToCampaign/index.d.ts +5 -0
  42. package/dist/destinations/ambee/subscribeUserToCampaign/index.js +88 -0
  43. package/dist/destinations/ambee/subscribeUserToCampaign/index.js.map +1 -0
  44. package/dist/destinations/emarsys/addToContactList/index.d.ts +1 -1
  45. package/dist/destinations/emarsys/addToContactList/index.js +4 -8
  46. package/dist/destinations/emarsys/addToContactList/index.js.map +1 -1
  47. package/dist/destinations/emarsys/emarsys-helper.js +0 -4
  48. package/dist/destinations/emarsys/emarsys-helper.js.map +1 -1
  49. package/dist/destinations/emarsys/removeFromContactList/index.d.ts +1 -1
  50. package/dist/destinations/emarsys/removeFromContactList/index.js +4 -8
  51. package/dist/destinations/emarsys/removeFromContactList/index.js.map +1 -1
  52. package/dist/destinations/emarsys/triggerEvent/index.d.ts +1 -1
  53. package/dist/destinations/emarsys/triggerEvent/index.js +7 -12
  54. package/dist/destinations/emarsys/triggerEvent/index.js.map +1 -1
  55. package/dist/destinations/emarsys/upsertContact/index.d.ts +1 -1
  56. package/dist/destinations/emarsys/upsertContact/index.js +6 -11
  57. package/dist/destinations/emarsys/upsertContact/index.js.map +1 -1
  58. package/dist/destinations/encharge/createUpdateObject/index.js +2 -2
  59. package/dist/destinations/encharge/createUpdateObject/index.js.map +1 -1
  60. package/dist/destinations/encharge/index.js +1 -1
  61. package/dist/destinations/encharge/index.js.map +1 -1
  62. package/dist/destinations/engage-messaging-twilio/index.js +3 -1
  63. package/dist/destinations/engage-messaging-twilio/index.js.map +1 -1
  64. package/dist/destinations/engage-messaging-twilio/sendMobilePush/generated-types.d.ts +31 -0
  65. package/dist/destinations/engage-messaging-twilio/sendMobilePush/generated-types.js +3 -0
  66. package/dist/destinations/engage-messaging-twilio/sendMobilePush/generated-types.js.map +1 -0
  67. package/dist/destinations/engage-messaging-twilio/sendMobilePush/index.d.ts +5 -0
  68. package/dist/destinations/engage-messaging-twilio/sendMobilePush/index.js +202 -0
  69. package/dist/destinations/engage-messaging-twilio/sendMobilePush/index.js.map +1 -0
  70. package/dist/destinations/engage-messaging-twilio/sendMobilePush/push-sender.d.ts +17 -0
  71. package/dist/destinations/engage-messaging-twilio/sendMobilePush/push-sender.js +173 -0
  72. package/dist/destinations/engage-messaging-twilio/sendMobilePush/push-sender.js.map +1 -0
  73. package/dist/destinations/engage-messaging-twilio/sendSms/sms-sender.d.ts +3 -5
  74. package/dist/destinations/engage-messaging-twilio/sendSms/sms-sender.js +27 -74
  75. package/dist/destinations/engage-messaging-twilio/sendSms/sms-sender.js.map +1 -1
  76. package/dist/destinations/engage-messaging-twilio/sendWhatsApp/whatsapp-sender.d.ts +2 -2
  77. package/dist/destinations/engage-messaging-twilio/sendWhatsApp/whatsapp-sender.js +4 -4
  78. package/dist/destinations/engage-messaging-twilio/sendWhatsApp/whatsapp-sender.js.map +1 -1
  79. package/dist/destinations/engage-messaging-twilio/utils/message-sender.d.ts +13 -11
  80. package/dist/destinations/engage-messaging-twilio/utils/message-sender.js +122 -126
  81. package/dist/destinations/engage-messaging-twilio/utils/message-sender.js.map +1 -1
  82. package/dist/destinations/engage-messaging-twilio/utils/phone-message.d.ts +12 -0
  83. package/dist/destinations/engage-messaging-twilio/utils/phone-message.js +100 -0
  84. package/dist/destinations/engage-messaging-twilio/utils/phone-message.js.map +1 -0
  85. package/dist/destinations/engage-messaging-twilio/utils/test-utils.d.ts +34 -0
  86. package/dist/destinations/engage-messaging-twilio/utils/test-utils.js +35 -0
  87. package/dist/destinations/engage-messaging-twilio/utils/test-utils.js.map +1 -0
  88. package/dist/destinations/engage-messaging-twilio/utils/types.d.ts +39 -0
  89. package/dist/destinations/engage-messaging-twilio/utils/types.js +3 -0
  90. package/dist/destinations/engage-messaging-twilio/utils/types.js.map +1 -0
  91. package/dist/destinations/facebook-conversions-api/addToCart/generated-types.d.ts +21 -0
  92. package/dist/destinations/facebook-conversions-api/addToCart/index.js +3 -0
  93. package/dist/destinations/facebook-conversions-api/addToCart/index.js.map +1 -1
  94. package/dist/destinations/facebook-conversions-api/custom/generated-types.d.ts +21 -0
  95. package/dist/destinations/facebook-conversions-api/custom/index.js +3 -0
  96. package/dist/destinations/facebook-conversions-api/custom/index.js.map +1 -1
  97. package/dist/destinations/facebook-conversions-api/fb-capi-app-data.d.ts +10 -0
  98. package/dist/destinations/facebook-conversions-api/fb-capi-app-data.js +179 -0
  99. package/dist/destinations/facebook-conversions-api/fb-capi-app-data.js.map +1 -0
  100. package/dist/destinations/facebook-conversions-api/index.js +1 -1
  101. package/dist/destinations/facebook-conversions-api/index.js.map +1 -1
  102. package/dist/destinations/facebook-conversions-api/initiateCheckout/generated-types.d.ts +21 -0
  103. package/dist/destinations/facebook-conversions-api/initiateCheckout/index.js +3 -0
  104. package/dist/destinations/facebook-conversions-api/initiateCheckout/index.js.map +1 -1
  105. package/dist/destinations/facebook-conversions-api/pageView/generated-types.d.ts +21 -0
  106. package/dist/destinations/facebook-conversions-api/pageView/index.js +3 -0
  107. package/dist/destinations/facebook-conversions-api/pageView/index.js.map +1 -1
  108. package/dist/destinations/facebook-conversions-api/purchase/generated-types.d.ts +21 -0
  109. package/dist/destinations/facebook-conversions-api/purchase/index.js +3 -0
  110. package/dist/destinations/facebook-conversions-api/purchase/index.js.map +1 -1
  111. package/dist/destinations/facebook-conversions-api/search/generated-types.d.ts +21 -0
  112. package/dist/destinations/facebook-conversions-api/search/index.js +3 -0
  113. package/dist/destinations/facebook-conversions-api/search/index.js.map +1 -1
  114. package/dist/destinations/facebook-conversions-api/viewContent/generated-types.d.ts +21 -0
  115. package/dist/destinations/facebook-conversions-api/viewContent/index.js +3 -0
  116. package/dist/destinations/facebook-conversions-api/viewContent/index.js.map +1 -1
  117. package/dist/destinations/facebook-custom-audiences/generated-types.d.ts +3 -0
  118. package/dist/destinations/facebook-custom-audiences/generated-types.js +3 -0
  119. package/dist/destinations/facebook-custom-audiences/generated-types.js.map +1 -0
  120. package/dist/destinations/facebook-custom-audiences/index.d.ts +4 -0
  121. package/dist/destinations/facebook-custom-audiences/index.js +32 -0
  122. package/dist/destinations/facebook-custom-audiences/index.js.map +1 -0
  123. package/dist/destinations/facebook-custom-audiences/syncEngage/generated-types.d.ts +3 -0
  124. package/dist/destinations/facebook-custom-audiences/syncEngage/generated-types.js +3 -0
  125. package/dist/destinations/facebook-custom-audiences/syncEngage/generated-types.js.map +1 -0
  126. package/dist/destinations/facebook-custom-audiences/syncEngage/index.d.ts +5 -0
  127. package/dist/destinations/facebook-custom-audiences/syncEngage/index.js +18 -0
  128. package/dist/destinations/facebook-custom-audiences/syncEngage/index.js.map +1 -0
  129. package/dist/destinations/facebook-custom-audiences/syncRetl/generated-types.d.ts +3 -0
  130. package/dist/destinations/facebook-custom-audiences/syncRetl/generated-types.js +3 -0
  131. package/dist/destinations/facebook-custom-audiences/syncRetl/generated-types.js.map +1 -0
  132. package/dist/destinations/facebook-custom-audiences/syncRetl/index.d.ts +5 -0
  133. package/dist/destinations/facebook-custom-audiences/syncRetl/index.js +18 -0
  134. package/dist/destinations/facebook-custom-audiences/syncRetl/index.js.map +1 -0
  135. package/dist/destinations/fullstory/index.js +1 -1
  136. package/dist/destinations/fullstory/index.js.map +1 -1
  137. package/dist/destinations/heap/identifyUser/index.js +0 -3
  138. package/dist/destinations/heap/identifyUser/index.js.map +1 -1
  139. package/dist/destinations/heap/trackEvent/index.js +0 -3
  140. package/dist/destinations/heap/trackEvent/index.js.map +1 -1
  141. package/dist/destinations/index.js +5 -0
  142. package/dist/destinations/index.js.map +1 -1
  143. package/dist/destinations/livelike-cloud/trackEvent/index.js +0 -3
  144. package/dist/destinations/livelike-cloud/trackEvent/index.js.map +1 -1
  145. package/dist/destinations/noop/generated-types.d.ts +2 -0
  146. package/dist/destinations/noop/generated-types.js +3 -0
  147. package/dist/destinations/noop/generated-types.js.map +1 -0
  148. package/dist/destinations/noop/index.d.ts +4 -0
  149. package/dist/destinations/noop/index.js +27 -0
  150. package/dist/destinations/noop/index.js.map +1 -0
  151. package/dist/destinations/noop/noop/generated-types.d.ts +3 -0
  152. package/dist/destinations/noop/noop/generated-types.js +3 -0
  153. package/dist/destinations/noop/noop/generated-types.js.map +1 -0
  154. package/dist/destinations/noop/noop/index.d.ts +5 -0
  155. package/dist/destinations/noop/noop/index.js +19 -0
  156. package/dist/destinations/noop/noop/index.js.map +1 -0
  157. package/dist/destinations/pinterest-conversions/reportConversionEvent/index.js.map +1 -1
  158. package/dist/destinations/podscribe/page/generated-types.d.ts +3 -0
  159. package/dist/destinations/podscribe/page/index.js +10 -1
  160. package/dist/destinations/podscribe/page/index.js.map +1 -1
  161. package/dist/destinations/podscribe/track/generated-types.d.ts +3 -0
  162. package/dist/destinations/podscribe/track/index.js +10 -1
  163. package/dist/destinations/podscribe/track/index.js.map +1 -1
  164. package/dist/destinations/the-trade-desk-crm/generated-types.d.ts +2 -0
  165. package/dist/destinations/the-trade-desk-crm/index.js +15 -1
  166. package/dist/destinations/the-trade-desk-crm/index.js.map +1 -1
  167. package/dist/destinations/tiktok-audiences/functions.d.ts +1 -1
  168. package/dist/destinations/tiktok-audiences/functions.js +3 -0
  169. package/dist/destinations/tiktok-audiences/functions.js.map +1 -1
  170. package/dist/destinations/tiktok-conversions/reportWebEvent/index.js +1 -1
  171. package/dist/destinations/tiktok-conversions/reportWebEvent/index.js.map +1 -1
  172. package/dist/destinations/userpilot/generated-types.d.ts +4 -0
  173. package/dist/destinations/userpilot/generated-types.js +3 -0
  174. package/dist/destinations/userpilot/generated-types.js.map +1 -0
  175. package/dist/destinations/userpilot/identifyUser/generated-types.d.ts +7 -0
  176. package/dist/destinations/userpilot/identifyUser/generated-types.js +3 -0
  177. package/dist/destinations/userpilot/identifyUser/generated-types.js.map +1 -0
  178. package/dist/destinations/userpilot/identifyUser/index.d.ts +5 -0
  179. package/dist/destinations/userpilot/identifyUser/index.js +52 -0
  180. package/dist/destinations/userpilot/identifyUser/index.js.map +1 -0
  181. package/dist/destinations/userpilot/index.d.ts +4 -0
  182. package/dist/destinations/userpilot/index.js +70 -0
  183. package/dist/destinations/userpilot/index.js.map +1 -0
  184. package/dist/destinations/userpilot/request-utils.d.ts +13 -0
  185. package/dist/destinations/userpilot/request-utils.js +62 -0
  186. package/dist/destinations/userpilot/request-utils.js.map +1 -0
  187. package/dist/destinations/userpilot/trackEvent/generated-types.d.ts +7 -0
  188. package/dist/destinations/userpilot/trackEvent/generated-types.js +3 -0
  189. package/dist/destinations/userpilot/trackEvent/generated-types.js.map +1 -0
  190. package/dist/destinations/userpilot/trackEvent/index.d.ts +5 -0
  191. package/dist/destinations/userpilot/trackEvent/index.js +48 -0
  192. package/dist/destinations/userpilot/trackEvent/index.js.map +1 -0
  193. package/package.json +4 -4
@@ -32,24 +32,6 @@ function addUpdateEvents(payload, email, limit) {
32
32
  let xmlRows = '';
33
33
  const eventSource = get_1.default(payload, 'type', 'Null') + ' Event';
34
34
  const timestamp = get_1.default(payload, 'timestamp', 'Null');
35
- if (get_1.default(payload, 'context.personas.computation_class', 'Null') === 'audience') {
36
- const ak = get_1.default(payload, 'context.personas.computation_key', 'Null');
37
- const av = `properties.${ak}`;
38
- const audiStatus = get_1.default(payload, av, 'Null');
39
- if (audiStatus)
40
- eventValue = 'Audience Entered';
41
- if (!audiStatus)
42
- eventValue = 'Audience Exited';
43
- eventName = ak;
44
- xmlRows += `
45
- <ROW>
46
- <COLUMN name="EMAIL"> <![CDATA[${email}]]></COLUMN>
47
- <COLUMN name="EventSource"> <![CDATA[${eventSource}]]></COLUMN>
48
- <COLUMN name="EventName"> <![CDATA[${eventName}]]></COLUMN>
49
- <COLUMN name="EventValue"> <![CDATA[${eventValue}]]></COLUMN>
50
- <COLUMN name="Event Timestamp"> <![CDATA[${timestamp}]]></COLUMN>
51
- </ROW>`;
52
- }
53
35
  let propertiesTraitsKV = {};
54
36
  if (payload.traits)
55
37
  propertiesTraitsKV = {
@@ -70,6 +52,24 @@ function addUpdateEvents(payload, email, limit) {
70
52
  throw new actions_core_1.IntegrationError('Properties Exceed Max. Use Mapping to limit the number of Attributes (Properties, Traits) present and thereby reduce the Campaign Relational Table Rows consumed.', 'EXCEEDS_MAX_PROPERTIES_MAX', 400);
71
53
  return;
72
54
  }
55
+ if (get_1.default(payload, 'context.personas.computation_class', 'Null') === 'audience') {
56
+ const ak = get_1.default(payload, 'context.personas.computation_key', 'Null');
57
+ const av = `properties.${ak}`;
58
+ const audiStatus = get_1.default(payload, av, 'Null');
59
+ if (audiStatus)
60
+ eventValue = 'Audience Entered';
61
+ if (!audiStatus)
62
+ eventValue = 'Audience Exited';
63
+ eventName = ak;
64
+ xmlRows += `
65
+ <ROW>
66
+ <COLUMN name="EMAIL"> <![CDATA[${email}]]></COLUMN>
67
+ <COLUMN name="EventSource"> <![CDATA[${eventSource}]]></COLUMN>
68
+ <COLUMN name="EventName"> <![CDATA[${eventName}]]></COLUMN>
69
+ <COLUMN name="EventValue"> <![CDATA[${eventValue}]]></COLUMN>
70
+ <COLUMN name="Event Timestamp"> <![CDATA[${timestamp}]]></COLUMN>
71
+ </ROW>`;
72
+ }
73
73
  for (const e in propertiesTraitsKV) {
74
74
  const eventName = e;
75
75
  const eventValue = propertiesTraitsKV[e];
@@ -1 +1 @@
1
- {"version":3,"file":"eventprocessing.js","sourceRoot":"","sources":["../../../../src/destinations/acoustic/Utility/eventprocessing.ts"],"names":[],"mappings":";;;;;;AAAA,wDA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K;gDACL,WAAW;gDACX,SAAS;gDACT,UAAU;gDACV,SAAS;YAC7C,CAAA;KACT;IACD,OAAO,OAAO,CAAA;AAChB,CAAC;AAzED,0CAyEC;AAEM,MAAM,WAAW,GAAG,KAAK,EAC9B,OAAsB,EACtB,QAAkB,EAClB,IAAgB,EAChB,OAAe,EACf,CAAS,EACU,EAAE;IACrB,MAAM,GAAG,GAAG,MAAM,OAAO,CAAC,wBAAwB,QAAQ,CAAC,QAAQ,IAAI,QAAQ,CAAC,KAAK,wBAAwB,EAAE;QAC7G,MAAM,EAAE,MAAM;QACd,OAAO,EAAE;YACP,aAAa,EAAE,UAAU,IAAI,EAAE,WAAW,EAAE;YAC5C,cAAc,EAAE,UAAU;YAC1B,YAAY,EAAE,yCAAyC,CAAC,EAAE;YAC1D,UAAU,EAAE,YAAY;YACxB,iBAAiB,EAAE,mBAAmB;YACtC,MAAM,EAAE,KAAK;SACd;QACD,IAAI,EAAE;;;kBAGQ,sCAAgB;;oBAEd,OAAO;;;;cAIb;KACX,CAAC,CAAA;IAEF,OAAO,GAAG,CAAA;AACZ,CAAC,CAAA;AA9BY,QAAA,WAAW,eA8BvB"}
1
+ {"version":3,"file":"eventprocessing.js","sourceRoot":"","sources":["../../../../src/destinations/acoustic/Utility/eventprocessing.ts"],"names":[],"mappings":";;;;;;AAAA,wDAAwD;AAExD,qDAA4B;AAG5B,+DAAwD;AAGxD,SAAgB,aAAa,CAAC,OAAkC,EAAE,SAAiB;IACjF,MAAM,YAAY,GAA8B,EAAE,CAAA;IAElD,IAAI,SAAS,GAAG,EAAE;QAChB,MAAM,IAAI,+BAAgB,CACxB,0GAA0G,EAC1G,wBAAwB,EACxB,GAAG,CACJ,CAAA;IAEH,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE;QACtC,IAAI,OAAO,OAAO,CAAC,GAAG,CAAC,KAAK,QAAQ,EAAE;YACpC,SAAS,EAAE,CAAA;YACX,MAAM,MAAM,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,EAAE,WAAW,EAAE;YAC5C,cAAc,EAAE,UAAU;YAC1B,YAAY,EAAE,yCAAyC,CAAC,EAAE;YAC1D,UAAU,EAAE,YAAY;YACxB,iBAAiB,EAAE,mBAAmB;YACtC,MAAM,EAAE,KAAK;SACd;QACD,IAAI,EAAE;;;kBAGQ,sCAAgB;;oBAEd,OAAO;;;;cAIb;KACX,CAAC,CAAA;IAEF,OAAO,GAAG,CAAA;AACZ,CAAC,CAAA;AA9BY,QAAA,WAAW,eA8BvB"}
@@ -41,11 +41,11 @@ class AdobeTarget {
41
41
  }
42
42
  catch (error) {
43
43
  if (error instanceof Error) {
44
- const errorCode = error.message == 'Forbidden' ? '403' : '500';
45
- if (errorCode == '500') {
44
+ const errorCode = error.message == 'Forbidden' ? 403 : 500;
45
+ if (errorCode == 500) {
46
46
  statsContext?.statsClient.incr('actions-adobe-target.profile-not-found', 1, statsContext.tags);
47
47
  }
48
- throw new actions_core_1.IntegrationError(error.message, errorCode);
48
+ throw new actions_core_1.APIError(error.message, errorCode);
49
49
  }
50
50
  }
51
51
  return undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"adobeTarget_operations.js","sourceRoot":"","sources":["../../../src/destinations/adobe-target/adobeTarget_operations.ts"],"names":[],"mappings":";;AAAA,wDAAuE;AAGvE,SAAS,gBAAgB,CAAC,GAAyB,EAAE,UAAU,GAAG,EAAE,EAAE,aAAsC,EAAE;IAE5G,IAAI,GAAG,IAAI,IAAI,IAAI,GAAG,IAAI,SAAS,EAAE;QACnC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;YAC/B,MAAM,cAAc,GAAG,UAAU,CAAC,CAAC,CAAC,GAAG,UAAU,IAAI,GAAG,EAAE,CAAC,CAAC,CAAC,GAAG,CAAA;YAEhE,IAAI,OAAO,GAAG,CAAC,GAAG,CAAC,KAAK,QAAQ,EAAE;gBAChC,UAAU,CAAC,cAAc,CAAC,GAAG,GAAG,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,CAAC,OAAO,CAChB,WAAW,UAAU,gDAAgD,MAAM,WAAW,UAAU,EAAE,EAClG,EAAE,MAAM,EAAE,KAAK,EAAE,CAClB,CAAA;aACF;YAAC,OAAO,KAAK,EAAE;gBACd,IAAI,KAAK,YAAY,KAAK,EAAE;oBAK1B,MAAM,SAAS,GAAG,KAAK,CAAC,OAAO,IAAI,WAAW,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAA;oBAE9D,IAAI,SAAS,IAAI,KAAK,EAAE;wBAEtB,YAAY,EAAE,WAAW,CAAC,IAAI,CAAC,wCAAwC,EAAE,CAAC,EAAE,YAAY,CAAC,IAAI,CAAC,CAAA;qBAC/F;oBAED,MAAM,IAAI,+BAAgB,CAAC,KAAK,CAAC,OAAO,EAAE,SAAS,CAAC,CAAA;iBACrD;aACF;YAED,OAAO,SAAS,CAAA;QAClB,CAAC,CAAA;QApDC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;QACpB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAA;QAC5B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;QACpB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;IACxB,CAAC;CAiDF;AA5DD,8BA4DC"}
1
+ {"version":3,"file":"adobeTarget_operations.js","sourceRoot":"","sources":["../../../src/destinations/adobe-target/adobeTarget_operations.ts"],"names":[],"mappings":";;AAAA,wDAAiF;AAGjF,SAAS,gBAAgB,CAAC,GAAyB,EAAE,UAAU,GAAG,EAAE,EAAE,aAAsC,EAAE;IAE5G,IAAI,GAAG,IAAI,IAAI,IAAI,GAAG,IAAI,SAAS,EAAE;QACnC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;YAC/B,MAAM,cAAc,GAAG,UAAU,CAAC,CAAC,CAAC,GAAG,UAAU,IAAI,GAAG,EAAE,CAAC,CAAC,CAAC,GAAG,CAAA;YAEhE,IAAI,OAAO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AG,KAAK,EAC3B,MAAc,EACd,UAAkB,EAClB,YAAsC,EACC,EAAE;YACzC,IAAI;gBACF,MAAM,IAAI,CAAC,OAAO,CAChB,WAAW,UAAU,gDAAgD,MAAM,WAAW,UAAU,EAAE,EAClG,EAAE,MAAM,EAAE,KAAK,EAAE,CAClB,CAAA;aACF;YAAC,OAAO,KAAK,EAAE;gBACd,IAAI,KAAK,YAAY,KAAK,EAAE;oBAK1B,MAAM,SAAS,GAAG,KAAK,CAAC,OAAO,IAAI,WAAW,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAA;oBAE1D,IAAI,SAAS,IAAI,GAAG,EAAE;wBAEpB,YAAY,EAAE,WAAW,CAAC,IAAI,CAAC,wCAAwC,EAAE,CAAC,EAAE,YAAY,CAAC,IAAI,CAAC,CAAA;qBAC/F;oBAED,MAAM,IAAI,uBAAQ,CAAC,KAAK,CAAC,OAAO,EAAE,SAAS,CAAC,CAAA;iBAC7C;aACF;YAED,OAAO,SAAS,CAAA;QAClB,CAAC,CAAA;QApDC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;QACpB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAA;QAC5B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;QACpB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;IACxB,CAAC;CAiDF;AA5DD,8BA4DC"}
@@ -0,0 +1,9 @@
1
+ export interface Payload {
2
+ named_user_id: string;
3
+ name: string;
4
+ occurred: string | number;
5
+ properties?: {
6
+ [k: string]: unknown;
7
+ };
8
+ enable_batching?: boolean;
9
+ }
@@ -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/airship/customEvents/generated-types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ import type { ActionDefinition } from '@segment/actions-core';
2
+ import type { Payload } from './generated-types';
3
+ import type { Settings } from '../generated-types';
4
+ declare const action: ActionDefinition<Settings, Payload>;
5
+ export default action;
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const utilities_1 = require("../utilities");
4
+ const action = {
5
+ title: 'Custom Events',
6
+ description: 'Set Custom Events on Users',
7
+ defaultSubscription: 'type = "track"',
8
+ fields: {
9
+ named_user_id: {
10
+ label: 'Airship Named User ID',
11
+ description: 'The identifier assigned in Airship as the Named User',
12
+ type: 'string',
13
+ required: true,
14
+ default: {
15
+ '@path': '$.userId'
16
+ }
17
+ },
18
+ name: {
19
+ label: 'Name',
20
+ description: 'Event Name',
21
+ type: 'string',
22
+ required: true,
23
+ default: {
24
+ '@path': '$.event'
25
+ }
26
+ },
27
+ occurred: {
28
+ label: 'Occurred',
29
+ description: 'When the event occurred.',
30
+ type: 'datetime',
31
+ required: true,
32
+ default: {
33
+ '@path': '$.timestamp'
34
+ }
35
+ },
36
+ properties: {
37
+ label: 'Event Properties',
38
+ description: 'Properties of the event',
39
+ type: 'object',
40
+ default: {
41
+ '@path': '$.properties'
42
+ }
43
+ },
44
+ enable_batching: {
45
+ type: 'boolean',
46
+ label: 'Batch Data to Airship',
47
+ description: 'If true, Segment will batch events before sending to Airship. Limit 100 events per request.',
48
+ default: false
49
+ }
50
+ },
51
+ perform: (request, { settings, payload }) => {
52
+ return utilities_1.setCustomEvent(request, settings, payload);
53
+ },
54
+ performBatch: (request, { settings, payload }) => {
55
+ return utilities_1.setBatchCustomEvent(request, settings, payload);
56
+ }
57
+ };
58
+ exports.default = action;
59
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/airship/customEvents/index.ts"],"names":[],"mappings":";;AAGA,4CAAkE;AAElE,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,eAAe;IACtB,WAAW,E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+ access_token: string;
3
+ app_key: string;
4
+ endpoint: string;
5
+ }
@@ -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/airship/generated-types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import { DestinationDefinition } from '@segment/actions-core';
2
+ import type { Settings } from './generated-types';
3
+ declare const destination: DestinationDefinition<Settings>;
4
+ export default destination;
@@ -0,0 +1,97 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const actions_core_1 = require("@segment/actions-core");
7
+ const customEvents_1 = __importDefault(require("./customEvents"));
8
+ const setAttributes_1 = __importDefault(require("./setAttributes"));
9
+ const manageTags_1 = __importDefault(require("./manageTags"));
10
+ const utilities_1 = require("./utilities");
11
+ const destination = {
12
+ name: 'Airship (Actions)',
13
+ slug: 'actions-airship',
14
+ mode: 'cloud',
15
+ description: 'Send events from Segment to Airship for message triggering, audience targeting, personalization, and analytics.',
16
+ authentication: {
17
+ scheme: 'custom',
18
+ fields: {
19
+ access_token: {
20
+ label: 'Access Token',
21
+ description: 'Create in the Airship Go dashboard in Settings->Partner Integrations->Segment',
22
+ type: 'password',
23
+ required: true
24
+ },
25
+ app_key: {
26
+ label: 'App Key',
27
+ description: 'The App Key identifies the Airship Project to which API requests are made.',
28
+ type: 'string',
29
+ required: true
30
+ },
31
+ endpoint: {
32
+ label: 'Data Center',
33
+ description: 'US or EU',
34
+ type: 'string',
35
+ choices: [
36
+ { label: 'US', value: 'US' },
37
+ { label: 'EU', value: 'EU' }
38
+ ],
39
+ default: 'US',
40
+ required: true
41
+ }
42
+ },
43
+ testAuthentication: (request, { settings }) => {
44
+ const endpoint = utilities_1.map_endpoint(settings.endpoint);
45
+ return request(`${endpoint}/api/custom-events/`, {
46
+ method: 'post',
47
+ json: {
48
+ body: {
49
+ name: 'test_segment_auth'
50
+ },
51
+ user: {
52
+ named_user_id: '549ce761-56c9-4899-9026-816d0c3bffd1'
53
+ }
54
+ }
55
+ });
56
+ }
57
+ },
58
+ presets: [
59
+ {
60
+ name: 'Custom Events',
61
+ subscribe: 'type = "track"',
62
+ partnerAction: 'customEvents',
63
+ mapping: actions_core_1.defaultValues(customEvents_1.default.fields)
64
+ },
65
+ {
66
+ name: 'Set Attributes',
67
+ subscribe: 'type = "identify"',
68
+ partnerAction: 'setAttributes',
69
+ mapping: actions_core_1.defaultValues(setAttributes_1.default.fields)
70
+ }
71
+ ],
72
+ onDelete: async (request, { settings, payload }) => {
73
+ return request(`${settings.endpoint}/api/named_users/uninstall`, {
74
+ method: 'post',
75
+ json: {
76
+ named_user_id: [payload.userId]
77
+ }
78
+ });
79
+ },
80
+ extendRequest({ settings }) {
81
+ return {
82
+ headers: {
83
+ Authorization: `Bearer ${settings.access_token}`,
84
+ 'X-UA-Appkey': `${settings.app_key}`,
85
+ Accept: 'application/vnd.urbanairship+json; version=3',
86
+ 'Content-Type': 'application/json'
87
+ }
88
+ };
89
+ },
90
+ actions: {
91
+ customEvents: customEvents_1.default,
92
+ setAttributes: setAttributes_1.default,
93
+ manageTags: manageTags_1.default
94
+ }
95
+ };
96
+ exports.default = destination;
97
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/airship/index.ts"],"names":[],"mappings":";;;;;AAAA,wDAA4E;AAG5E,kEAAyC;AAEzC,oEAA2C;AAE3C,8DAAqC;AAErC,2CAA0C;AAE1C,MAAM,WAAW,GAAoC;IACnD,IAAI,EAAE,mBAAmB;IACzB,IAAI,EAAE,iBAAiB;IACvB,IAAI,EAAE,OAAO;IACb,WAAW,EACT,iHAAiH;IACnH,cAAc,EAAE;QACd,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AO,EAAE,4BAAa,CAAC,uBAAa,CAAC,MAAM,CAAC;SAC7C;KACF;IACD,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE;QACjD,OAAO,OAAO,CAAC,GAAG,QAAQ,CAAC,QAAQ,4BAA4B,EAAE;YAC/D,MAAM,EAAE,MAAM;YACd,IAAI,EAAE;gBACJ,aAAa,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC;aAChC;SACF,CAAC,CAAA;IACJ,CAAC;IACD,aAAa,CAAC,EAAE,QAAQ,EAAE;QACxB,OAAO;YACL,OAAO,EAAE;gBACP,aAAa,EAAE,UAAU,QAAQ,CAAC,YAAY,EAAE;gBAChD,aAAa,EAAE,GAAG,QAAQ,CAAC,OAAO,EAAE;gBACpC,MAAM,EAAE,8CAA8C;gBACtD,cAAc,EAAE,kBAAkB;aACnC;SACF,CAAA;IACH,CAAC;IACD,OAAO,EAAE;QACP,YAAY,EAAZ,sBAAY;QACZ,aAAa,EAAb,uBAAa;QACb,UAAU,EAAV,oBAAU;KACX;CACF,CAAA;AACD,kBAAe,WAAW,CAAA"}
@@ -0,0 +1,7 @@
1
+ export interface Payload {
2
+ named_user_id: string;
3
+ tags?: {
4
+ [k: string]: unknown;
5
+ };
6
+ tag_group: string;
7
+ }
@@ -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/airship/manageTags/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,38 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const utilities_1 = require("../utilities");
4
+ const action = {
5
+ title: 'Manage Tags',
6
+ description: 'Associate tags with users in your audience for segmentation and automation',
7
+ fields: {
8
+ named_user_id: {
9
+ label: 'Airship Named User ID',
10
+ description: 'The identifier assigned in Airship as the Named User',
11
+ type: 'string',
12
+ required: true,
13
+ default: {
14
+ '@path': '$.userId'
15
+ }
16
+ },
17
+ tags: {
18
+ label: 'Tag Name',
19
+ description: 'Tag name to add or remove. Values for each tag should be boolean only. A true value creates a tag, a false value removes a tag. Non-boolean values will be ignored.',
20
+ type: 'object',
21
+ default: {
22
+ '@path': '$.traits.airship_tags'
23
+ }
24
+ },
25
+ tag_group: {
26
+ label: 'Tag Group',
27
+ description: 'The Tag Group to sync your tags to. This defaults to`segment-integration` but can be overridden with this field. Note: the Tag Group used must be valid and exist in Airship.',
28
+ type: 'string',
29
+ required: true,
30
+ default: 'segment-integration'
31
+ }
32
+ },
33
+ perform: (request, { settings, payload }) => {
34
+ return utilities_1.manageTags(request, settings, payload);
35
+ }
36
+ };
37
+ exports.default = action;
38
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/airship/manageTags/index.ts"],"names":[],"mappings":";;AAGA,4CAAyC;AAEzC,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,aAAa;IACpB,WAAW,EAAE,4EAA4E;IACzF,MAAM,EAAE;QACN,aAAa,EAAE;YACb,KAAK,EAAE,uBAAuB;YAC9B,WAAW,EAAE,sDAAsD;YACnE,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE;gBACP,OAAO,EAAE,UAAU;aACpB;SACF;QACD,IAAI,EAAE;YACJ,KAAK,EAAE,UAAU;YACjB,WAAW,EACT,qKAAqK;YACvK,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE;gBACP,OAAO,EAAE,uBAAuB;aACjC;SACF;QACD,SAAS,EAAE;YACT,KAAK,EAAE,WAAW;YAClB,WAAW,EACT,+KAA+K;YACjL,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,qBAAqB;SAC/B;KACF;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE;QAC1C,OAAO,sBAAU,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAA;IAC/C,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
@@ -0,0 +1,30 @@
1
+ export interface Payload {
2
+ named_user_id: string;
3
+ occurred: string | number;
4
+ attributes?: {
5
+ title?: string;
6
+ first_name?: string;
7
+ last_name?: string;
8
+ full_name?: string;
9
+ gender?: string;
10
+ zipcode?: number;
11
+ city?: string;
12
+ region?: string;
13
+ country?: string;
14
+ birthdate?: string | number;
15
+ age?: number;
16
+ mobile_phone?: number;
17
+ home_phone?: number;
18
+ work_phone?: number;
19
+ loyalty_tier?: string;
20
+ company?: string;
21
+ username?: string;
22
+ account_creation?: string | number;
23
+ email?: string;
24
+ altitude?: number;
25
+ latitude?: number;
26
+ longitude?: number;
27
+ advertising_id?: string;
28
+ [k: string]: unknown;
29
+ };
30
+ }
@@ -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/airship/setAttributes/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,182 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const utilities_1 = require("../utilities");
4
+ const action = {
5
+ title: 'Set Attributes',
6
+ defaultSubscription: 'type = "identify"',
7
+ description: 'Set user attributes in Airship with data from Segment. Some common user attributes are predefined in the attributes field, however note that all must be created in Airship before use. More information here: https://docs.airship.com/guides/messaging/user-guide/audience/segmentation/attributes/project/#adding-attributes',
8
+ fields: {
9
+ named_user_id: {
10
+ label: 'Airship Named User ID',
11
+ description: 'The identifier assigned in Airship as the Named User',
12
+ type: 'string',
13
+ required: true,
14
+ default: {
15
+ '@path': '$.userId'
16
+ }
17
+ },
18
+ occurred: {
19
+ label: 'Occurred',
20
+ description: 'When the Trait was set',
21
+ type: 'datetime',
22
+ required: true,
23
+ default: {
24
+ '@path': '$.timestamp'
25
+ }
26
+ },
27
+ attributes: {
28
+ label: 'Attributes',
29
+ description: 'User Attributes. Attributes should exist in Airship in order to be set, including the predifined ones defaulted here.',
30
+ type: 'object',
31
+ additionalProperties: true,
32
+ defaultObjectUI: 'keyvalue',
33
+ properties: {
34
+ title: {
35
+ label: 'Title',
36
+ type: 'string',
37
+ description: 'Title (Mr, Mrs, Professor, ...'
38
+ },
39
+ first_name: {
40
+ label: 'First Name',
41
+ type: 'string',
42
+ description: "The user's first name."
43
+ },
44
+ last_name: {
45
+ label: 'Last Name',
46
+ type: 'string',
47
+ description: "The user's last name."
48
+ },
49
+ full_name: {
50
+ label: 'Full Name',
51
+ type: 'string',
52
+ description: "The user's full name."
53
+ },
54
+ gender: {
55
+ label: 'Gender',
56
+ type: 'string',
57
+ description: "The user's gender."
58
+ },
59
+ zipcode: {
60
+ label: 'Zipcode',
61
+ type: 'integer',
62
+ description: "The user's zipcode."
63
+ },
64
+ city: {
65
+ label: 'City',
66
+ type: 'string',
67
+ description: "The user's city."
68
+ },
69
+ region: {
70
+ label: 'Region',
71
+ type: 'string',
72
+ description: "The user's region."
73
+ },
74
+ country: {
75
+ label: 'Country',
76
+ type: 'string',
77
+ description: "The user's country."
78
+ },
79
+ birthdate: {
80
+ label: 'Birthdate',
81
+ type: 'datetime',
82
+ description: "The user's birthdate."
83
+ },
84
+ age: {
85
+ label: 'Age',
86
+ type: 'integer',
87
+ description: "The user's age in years."
88
+ },
89
+ mobile_phone: {
90
+ label: 'Mobile Phone Number',
91
+ type: 'integer',
92
+ description: "The user's mobile phone number."
93
+ },
94
+ home_phone: {
95
+ label: 'Home Phone Number',
96
+ type: 'integer',
97
+ description: "The user's home phone number."
98
+ },
99
+ work_phone: {
100
+ label: 'Work Phone Number',
101
+ type: 'integer',
102
+ description: "The user's work phone number."
103
+ },
104
+ loyalty_tier: {
105
+ label: 'Loyalty Tier',
106
+ type: 'string',
107
+ description: "The user's loyalty tier."
108
+ },
109
+ company: {
110
+ label: 'Company Name',
111
+ type: 'string',
112
+ description: "The user's company name."
113
+ },
114
+ username: {
115
+ label: 'Username',
116
+ type: 'string',
117
+ description: "The user's username."
118
+ },
119
+ account_creation: {
120
+ label: 'Account Creation Date',
121
+ type: 'datetime',
122
+ description: "The user's account creation date."
123
+ },
124
+ email: {
125
+ label: 'Email Address',
126
+ type: 'string',
127
+ description: "The user's email address."
128
+ },
129
+ altitude: {
130
+ label: 'Altitude',
131
+ type: 'integer',
132
+ description: "The user's altitude."
133
+ },
134
+ latitude: {
135
+ label: 'Latitude',
136
+ type: 'number',
137
+ description: "The user's latitude."
138
+ },
139
+ longitude: {
140
+ label: 'Longitude',
141
+ type: 'number',
142
+ description: "The user's longitude."
143
+ },
144
+ advertising_id: {
145
+ label: 'Advertising ID (IDFA/AAID)',
146
+ type: 'string',
147
+ description: "The user's advertising ID."
148
+ }
149
+ },
150
+ default: {
151
+ title: { '@path': '$.traits.title' },
152
+ first_name: { '@path': '$.traits.first_name' },
153
+ last_name: { '@path': '$.traits.last_name' },
154
+ full_name: { '@path': '$.traits.full_name' },
155
+ gender: { '@path': '$.traits.gender' },
156
+ zipcode: { '@path': '$.traits.address.postalCode' },
157
+ city: { '@path': '$.traits.address.city' },
158
+ region: { '@path': '$.traits.address.region' },
159
+ country: { '@path': '$.traits.address.country' },
160
+ birthdate: { '@path': '$.traits.birthday' },
161
+ age: { '@path': '$.traits.age' },
162
+ mobile_phone: { '@path': '$.traits.phone' },
163
+ home_phone: { '@path': '$.traits.home_phone' },
164
+ work_phone: { '@path': '$.traits.work_phone' },
165
+ loyalty_tier: { '@path': '$.traits.loyalty_tier' },
166
+ company: { '@path': '$.traits.company_name' },
167
+ username: { '@path': '$.traits.username' },
168
+ account_creation: { '@path': '$.traits.account_creation' },
169
+ email: { '@path': '$.traits.email' },
170
+ altitude: { '@path': '$.traits.altitude' },
171
+ latitude: { '@path': '$.traits.latitude' },
172
+ longitude: { '@path': '$.traits.longitude' },
173
+ advertising_id: { '@path': '$.context.device.advertisingId' }
174
+ }
175
+ }
176
+ },
177
+ perform: (request, { settings, payload }) => {
178
+ return utilities_1.setAttribute(request, settings, payload);
179
+ }
180
+ };
181
+ exports.default = action;
182
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/airship/setAttributes/index.ts"],"names":[],"mappings":";;AAGA,4CAA2C;AAE3C,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,gBAAgB;IACvB,mBAAmB,EAAE,mBAAmB;IACxC,WAAW,EACT,iUAAiU;IACnU,MAAM,EAAE;QACN,aAAa,EAAE;YACb,KAAK,EAAE,uBAAuB;YAC9B,WAAW,EAAE,sDAAsD;YACnE,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE;gBACP,OAAO,EAAE,UAAU;aACpB;SACF;QACD,QAAQ,EAAE;YACR,KAAK,EAAE,UAAU;YACjB,WAAW,EAAE,wBAAwB;YACrC,IAAI,EAAE,UAAU;YAChB,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE;gBACP,OAAO,EAAE,aAAa;aACvB;SACF;QACD,UAAU,EAAE;YACV,KAAK,EAAE,YAAY;YACnB,WAAW,EACT,uHAAuH;YACzH,IAAI,EAAE,QAAQ;YACd,oBAAoB,EAAE,IAAI;Y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