@segment/action-destinations 3.109.0 → 3.110.0-alpha.20

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 (88) hide show
  1. package/dist/destinations/adobe-target/adobeTarget_operations.js +3 -1
  2. package/dist/destinations/adobe-target/adobeTarget_operations.js.map +1 -1
  3. package/dist/destinations/adobe-target/generated-types.d.ts +1 -0
  4. package/dist/destinations/adobe-target/index.js +15 -0
  5. package/dist/destinations/adobe-target/index.js.map +1 -1
  6. package/dist/destinations/amplitude/compact.d.ts +2 -0
  7. package/dist/destinations/amplitude/compact.js +7 -0
  8. package/dist/destinations/amplitude/compact.js.map +1 -0
  9. package/dist/destinations/amplitude/index.js +9 -7
  10. package/dist/destinations/amplitude/index.js.map +1 -1
  11. package/dist/destinations/amplitude/logEventV2/generated-types.d.ts +77 -0
  12. package/dist/destinations/amplitude/logEventV2/generated-types.js +3 -0
  13. package/dist/destinations/amplitude/logEventV2/generated-types.js.map +1 -0
  14. package/dist/destinations/amplitude/logEventV2/index.d.ts +13 -0
  15. package/dist/destinations/amplitude/logEventV2/index.js +238 -0
  16. package/dist/destinations/amplitude/logEventV2/index.js.map +1 -0
  17. package/dist/destinations/engage-messaging-sendgrid/generated-types.d.ts +0 -1
  18. package/dist/destinations/engage-messaging-sendgrid/index.js +0 -5
  19. package/dist/destinations/engage-messaging-sendgrid/index.js.map +1 -1
  20. package/dist/destinations/engage-messaging-sendgrid/sendEmail/generated-types.d.ts +1 -0
  21. package/dist/destinations/engage-messaging-sendgrid/sendEmail/index.js +7 -2
  22. package/dist/destinations/engage-messaging-sendgrid/sendEmail/index.js.map +1 -1
  23. package/dist/destinations/google-enhanced-conversions/functions.d.ts +6 -0
  24. package/dist/destinations/google-enhanced-conversions/functions.js +54 -0
  25. package/dist/destinations/google-enhanced-conversions/functions.js.map +1 -0
  26. package/dist/destinations/google-enhanced-conversions/generated-types.d.ts +2 -1
  27. package/dist/destinations/google-enhanced-conversions/index.js +14 -7
  28. package/dist/destinations/google-enhanced-conversions/index.js.map +1 -1
  29. package/dist/destinations/google-enhanced-conversions/postConversion/index.js +7 -1
  30. package/dist/destinations/google-enhanced-conversions/postConversion/index.js.map +1 -1
  31. package/dist/destinations/google-enhanced-conversions/types.d.ts +23 -0
  32. package/dist/destinations/google-enhanced-conversions/types.js +5 -0
  33. package/dist/destinations/google-enhanced-conversions/types.js.map +1 -0
  34. package/dist/destinations/google-enhanced-conversions/uploadCallConversion/generated-types.d.ts +11 -0
  35. package/dist/destinations/google-enhanced-conversions/uploadCallConversion/generated-types.js +3 -0
  36. package/dist/destinations/google-enhanced-conversions/uploadCallConversion/generated-types.js.map +1 -0
  37. package/dist/destinations/google-enhanced-conversions/uploadCallConversion/index.d.ts +5 -0
  38. package/dist/destinations/google-enhanced-conversions/uploadCallConversion/index.js +92 -0
  39. package/dist/destinations/google-enhanced-conversions/uploadCallConversion/index.js.map +1 -0
  40. package/dist/destinations/google-enhanced-conversions/uploadClickConversion/generated-types.d.ts +25 -0
  41. package/dist/destinations/google-enhanced-conversions/uploadClickConversion/generated-types.js +3 -0
  42. package/dist/destinations/google-enhanced-conversions/uploadClickConversion/generated-types.js.map +1 -0
  43. package/dist/destinations/google-enhanced-conversions/uploadClickConversion/index.d.ts +5 -0
  44. package/dist/destinations/google-enhanced-conversions/uploadClickConversion/index.js +229 -0
  45. package/dist/destinations/google-enhanced-conversions/uploadClickConversion/index.js.map +1 -0
  46. package/dist/destinations/google-enhanced-conversions/uploadConversionAdjustment/generated-types.d.ts +20 -0
  47. package/dist/destinations/google-enhanced-conversions/uploadConversionAdjustment/generated-types.js +3 -0
  48. package/dist/destinations/google-enhanced-conversions/uploadConversionAdjustment/generated-types.js.map +1 -0
  49. package/dist/destinations/google-enhanced-conversions/uploadConversionAdjustment/index.d.ts +5 -0
  50. package/dist/destinations/google-enhanced-conversions/uploadConversionAdjustment/index.js +286 -0
  51. package/dist/destinations/google-enhanced-conversions/uploadConversionAdjustment/index.js.map +1 -0
  52. package/dist/destinations/hubspot/createCustomObjectRecord/generated-types.d.ts +6 -0
  53. package/dist/destinations/hubspot/createCustomObjectRecord/generated-types.js +3 -0
  54. package/dist/destinations/hubspot/createCustomObjectRecord/generated-types.js.map +1 -0
  55. package/dist/destinations/hubspot/createCustomObjectRecord/index.d.ts +5 -0
  56. package/dist/destinations/hubspot/createCustomObjectRecord/index.js +38 -0
  57. package/dist/destinations/hubspot/createCustomObjectRecord/index.js.map +1 -0
  58. package/dist/destinations/hubspot/generated-types.d.ts +2 -0
  59. package/dist/destinations/hubspot/generated-types.js +3 -0
  60. package/dist/destinations/hubspot/generated-types.js.map +1 -0
  61. package/dist/destinations/hubspot/index.d.ts +4 -0
  62. package/dist/destinations/hubspot/index.js +47 -0
  63. package/dist/destinations/hubspot/index.js.map +1 -0
  64. package/dist/destinations/hubspot/properties.d.ts +1 -0
  65. package/dist/destinations/hubspot/properties.js +5 -0
  66. package/dist/destinations/hubspot/properties.js.map +1 -0
  67. package/dist/destinations/hubspot/sendCustomBehavioralEvent/generated-types.d.ts +10 -0
  68. package/dist/destinations/hubspot/sendCustomBehavioralEvent/generated-types.js +3 -0
  69. package/dist/destinations/hubspot/sendCustomBehavioralEvent/generated-types.js.map +1 -0
  70. package/dist/destinations/hubspot/sendCustomBehavioralEvent/index.d.ts +5 -0
  71. package/dist/destinations/hubspot/sendCustomBehavioralEvent/index.js +69 -0
  72. package/dist/destinations/hubspot/sendCustomBehavioralEvent/index.js.map +1 -0
  73. package/dist/destinations/hubspot/testHelper.d.ts +7 -0
  74. package/dist/destinations/hubspot/testHelper.js +24 -0
  75. package/dist/destinations/hubspot/testHelper.js.map +1 -0
  76. package/dist/destinations/hubspot/upsertContact/generated-types.d.ts +17 -0
  77. package/dist/destinations/hubspot/upsertContact/generated-types.js +3 -0
  78. package/dist/destinations/hubspot/upsertContact/generated-types.js.map +1 -0
  79. package/dist/destinations/hubspot/upsertContact/index.d.ts +5 -0
  80. package/dist/destinations/hubspot/upsertContact/index.js +183 -0
  81. package/dist/destinations/hubspot/upsertContact/index.js.map +1 -0
  82. package/dist/destinations/index.js +1 -0
  83. package/dist/destinations/index.js.map +1 -1
  84. package/dist/destinations/intercom/identifyContact/index.js +1 -0
  85. package/dist/destinations/intercom/identifyContact/index.js.map +1 -1
  86. package/dist/destinations/intercom/index.js +1 -0
  87. package/dist/destinations/intercom/index.js.map +1 -1
  88. package/package.json +4 -5
@@ -0,0 +1,5 @@
1
+ import { 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,183 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const actions_core_1 = require("@segment/actions-core");
4
+ const properties_1 = require("../properties");
5
+ const action = {
6
+ title: 'Upsert Contact',
7
+ description: 'Create or update a contact in HubSpot.',
8
+ defaultSubscription: 'type = "identify"',
9
+ fields: {
10
+ email: {
11
+ label: 'Email',
12
+ type: 'string',
13
+ description: 'The contact’s email. Email is used to uniquely identify contact records in HubSpot. If an existing contact is found with this email, we will update the contact. If a contact is not found, we will create a new contact.',
14
+ required: true,
15
+ format: 'email',
16
+ default: {
17
+ '@path': '$.traits.email'
18
+ }
19
+ },
20
+ company: {
21
+ label: 'Company Name',
22
+ type: 'string',
23
+ description: 'The contact’s company.',
24
+ default: {
25
+ '@path': '$.traits.company'
26
+ }
27
+ },
28
+ firstname: {
29
+ label: 'First Name',
30
+ type: 'string',
31
+ description: 'The contact’s first name.',
32
+ default: {
33
+ '@if': {
34
+ exists: { '@path': '$.traits.first_name' },
35
+ then: { '@path': '$.traits.first_name' },
36
+ else: { '@path': '$.traits.firstName' }
37
+ }
38
+ }
39
+ },
40
+ lastname: {
41
+ label: 'Last Name',
42
+ type: 'string',
43
+ description: 'The contact’s last name.',
44
+ default: {
45
+ '@if': {
46
+ exists: { '@path': '$.traits.last_name' },
47
+ then: { '@path': '$.traits.last_name' },
48
+ else: { '@path': '$.traits.lastName' }
49
+ }
50
+ }
51
+ },
52
+ phone: {
53
+ label: 'Phone',
54
+ type: 'string',
55
+ description: 'The contact’s phone number.',
56
+ default: {
57
+ '@path': '$.traits.phone'
58
+ }
59
+ },
60
+ address: {
61
+ label: 'Street Address',
62
+ type: 'string',
63
+ description: "The contact's street address, including apartment or unit number.",
64
+ default: {
65
+ '@path': '$.traits.address.street'
66
+ }
67
+ },
68
+ city: {
69
+ label: 'City',
70
+ type: 'string',
71
+ description: "The contact's city of residence.",
72
+ default: {
73
+ '@path': '$.traits.address.city'
74
+ }
75
+ },
76
+ state: {
77
+ label: 'State',
78
+ type: 'string',
79
+ description: "The contact's state of residence.",
80
+ default: {
81
+ '@path': '$.traits.address.state'
82
+ }
83
+ },
84
+ country: {
85
+ label: 'Country',
86
+ type: 'string',
87
+ description: "The contact's country of residence.",
88
+ default: {
89
+ '@path': '$.traits.address.country'
90
+ }
91
+ },
92
+ zip: {
93
+ label: 'Postal Code',
94
+ type: 'string',
95
+ description: "The contact's zip code.",
96
+ default: {
97
+ '@if': {
98
+ exists: { '@path': '$.traits.address.postalCode' },
99
+ then: { '@path': '$.traits.address.postalCode' },
100
+ else: { '@path': '$.traits.address.postal_code' }
101
+ }
102
+ }
103
+ },
104
+ website: {
105
+ label: 'Website',
106
+ type: 'string',
107
+ description: 'The contact’s company/other website.',
108
+ default: {
109
+ '@path': '$.traits.website'
110
+ }
111
+ },
112
+ lifecyclestage: {
113
+ label: 'Lifecycle Stage',
114
+ type: 'string',
115
+ description: 'The contact’s stage within the marketing/sales process. See more information on default and custom stages in [HubSpot’s documentation](https://knowledge.hubspot.com/contacts/use-lifecycle-stages). Segment supports moving status forwards or backwards.'
116
+ },
117
+ properties: {
118
+ label: 'Other properties',
119
+ type: 'object',
120
+ description: 'Any other default or custom contact properties. Custom properties must be predefined in HubSpot. See more information in [HubSpot’s documentation](https://knowledge.hubspot.com/crm-setup/manage-your-properties#create-custom-properties).',
121
+ defaultObjectUI: 'keyvalue:only'
122
+ }
123
+ },
124
+ perform: async (request, { payload, transactionContext }) => {
125
+ const contactProperties = {
126
+ company: payload.company,
127
+ firstname: payload.firstname,
128
+ lastname: payload.lastname,
129
+ phone: payload.phone,
130
+ address: payload.address,
131
+ city: payload.city,
132
+ state: payload.state,
133
+ country: payload.country,
134
+ zip: payload.zip,
135
+ email: payload.email,
136
+ lifecyclestage: payload.lifecyclestage?.toLowerCase(),
137
+ ...payload.properties
138
+ };
139
+ try {
140
+ const response = await updateContact(request, payload.email, contactProperties);
141
+ transactionContext?.setTransaction('contact_id', response.data.id);
142
+ if (payload.lifecyclestage) {
143
+ const currentLCS = response.data.properties['lifecyclestage'];
144
+ const hasLCSChanged = currentLCS === payload.lifecyclestage.toLowerCase();
145
+ if (hasLCSChanged)
146
+ return response;
147
+ await updateContact(request, payload.email, { lifecyclestage: '' });
148
+ return updateContact(request, payload.email, contactProperties);
149
+ }
150
+ return response;
151
+ }
152
+ catch (ex) {
153
+ if (ex instanceof actions_core_1.HTTPError && ex.response.status == 404) {
154
+ const result = await createContact(request, contactProperties);
155
+ transactionContext?.setTransaction('contact_id', result.data.id);
156
+ return result;
157
+ }
158
+ throw ex;
159
+ }
160
+ }
161
+ };
162
+ async function createContact(request, contactProperties) {
163
+ return request(`${properties_1.hubSpotBaseURL}/crm/v3/objects/contacts`, {
164
+ method: 'POST',
165
+ json: {
166
+ properties: {
167
+ ...contactProperties
168
+ }
169
+ }
170
+ });
171
+ }
172
+ async function updateContact(request, email, properties) {
173
+ return request(`${properties_1.hubSpotBaseURL}/crm/v3/objects/contacts/${email}?idProperty=email`, {
174
+ method: 'PATCH',
175
+ json: {
176
+ properties: {
177
+ ...properties
178
+ }
179
+ }
180
+ });
181
+ }
182
+ exports.default = action;
183
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/hubspot/upsertContact/index.ts"],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,iBAAiB,CAAC,CAAA;aAChE;YACD,OAAO,QAAQ,CAAA;SAChB;QAAC,OAAO,EAAE,EAAE;YACX,IAAI,EAAE,YAAY,wBAAS,IAAI,EAAE,CAAC,QAAQ,CAAC,MAAM,IAAI,GAAG,EAAE;gBACxD,MAAM,MAAM,GAAG,MAAM,aAAa,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAA;gBAG9D,kBAAkB,EAAE,cAAc,CAAC,YAAY,EAAE,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;gBAChE,OAAO,MAAM,CAAA;aACd;YACD,MAAM,EAAE,CAAA;SACT;IACH,CAAC;CACF,CAAA;AAED,KAAK,UAAU,aAAa,CAAC,OAAsB,EAAE,iBAA6C;IAChG,OAAO,OAAO,CAAkB,GAAG,2BAAc,0BAA0B,EAAE;QAC3E,MAAM,EAAE,MAAM;QACd,IAAI,EAAE;YACJ,UAAU,EAAE;gBACV,GAAG,iBAAiB;aACrB;SACF;KACF,CAAC,CAAA;AACJ,CAAC;AAED,KAAK,UAAU,aAAa,CAAC,OAAsB,EAAE,KAAa,EAAE,UAAsC;IACxG,OAAO,OAAO,CAAkB,GAAG,2BAAc,4BAA4B,KAAK,mBAAmB,EAAE;QACrG,MAAM,EAAE,OAAO;QACf,IAAI,EAAE;YACJ,UAAU,EAAE;gBACV,GAAG,UAAU;aACd;SACF;KACF,CAAC,CAAA;AACJ,CAAC;AAED,kBAAe,MAAM,CAAA"}
@@ -65,6 +65,7 @@ register('614a3c7d791c91c41bae7599', './webhook');
65
65
  register('61dc4e96894a6d7954cc6e45', './voyage');
66
66
  register('62ded0cf5753c743883ca0f3', './intercom');
67
67
  register('631a6f32946dd8197e9cab66', './sendgrid');
68
+ register('632b1116e0cb83902f3fd717', './hubspot');
68
69
  function register(id, destinationPath) {
69
70
  const definition = require(destinationPath).default;
70
71
  const resolvedPath = require.resolve(destinationPath);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/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
  },
92
92
  perform: async (request, { payload }) => {
93
+ console.log('intercom trying to identify');
93
94
  payload.signed_up_at = util_1.convertValidTimestamp(payload.signed_up_at);
94
95
  payload.last_seen_at = util_1.convertValidTimestamp(payload.last_seen_at);
95
96
  try {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/intercom/identifyContact/index.ts"],"names":[],"mappings":";;AAAA,wDAAuF;AAEvF,kCAAyE;AAGzE,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,kBAAkB;IACzB,WAAW,EAAE,wCAAwC;IACrD,mBAAmB,EAAE,mBAAmB;IACxC,MAAM,EAAE;QACN,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,WAAW,EAAE,gEAAgE;YAC7E,KAAK,EAAE,MAAM;YACb,OAAO,EAAE;gBACP,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;gBAChC,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;aACjC;SACF;QACD,WAAW,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,WAAW,EACT,wLAAwL;YAC1L,KAAK,EAAE,aAAa;YACpB,OAAO,EAAE;gBACP,OAAO,EAAE,UAAU;aACpB;SACF;QACD,KAAK,EAAE;YACL,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,gGAAgG;YAC7G,KAAK,EAAE,eAAe;YACtB,MAAM,EAAE,OAAO;YACf,OAAO,EAAE;gBACP,OAAO,EAAE,gBAAgB;aAC1B;SACF;QACD,KAAK,EAAE;YACL,KAAK,EAAE,cAAc;YACrB,WAAW,EAAE,6BAA6B;YAC1C,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE;gBACP,OAAO,EAAE,gBAAgB;aAC1B;SACF;QACD,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,qBAAqB;YAClC,KAAK,EAAE,MAAM;YACb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AM,qBAAqB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAA;SACrD;QAAC,OAAO,KAAK,EAAE;YACd,IAAI,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,GAAG,EAAE;gBAEnC,MAAM,IAAI,6BAAc,CACtB,wHAAwH,CACzH,CAAA;aACF;YACD,MAAM,KAAK,CAAA;SACZ;IACH,CAAC;CACF,CAAA;AAED,KAAK,UAAU,qBAAqB,CAAC,OAAsB,EAAE,OAAgB;IAC3E,OAAO,OAAO,CAAC,kCAAkC,EAAE;QACjD,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,OAAO;KACd,CAAC,CAAA;AACJ,CAAC;AAED,KAAK,UAAU,qBAAqB,CAAC,OAAsB,EAAE,SAAiB,EAAE,OAAgB;IAC9F,OAAO,OAAO,CAAC,oCAAoC,SAAS,EAAE,EAAE;QAC9D,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,OAAO;KACd,CAAC,CAAA;AACJ,CAAC;AAED,kBAAe,MAAM,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/intercom/identifyContact/index.ts"],"names":[],"mappings":";;AAAA,wDAAuF;AAEvF,kCAAyE;AAGzE,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,kBAAkB;IACzB,WAAW,EAAE,wCAAwC;IACrD,mBAAmB,EAAE,mBAAmB;IACxC,MAAM,EAAE;QACN,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,WAAW,EAAE,gEAAgE;YAC7E,KAAK,EAAE,MAAM;YACb,OAAO,EAAE;gBACP,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;gBAChC,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;aACjC;SACF;QACD,WAAW,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,WAAW,EACT,wLAAwL;YAC1L,KAAK,EAAE,aAAa;Y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(require("./groupIdentifyContact"));
9
9
  const trackEvent_1 = __importDefault(require("./trackEvent"));
10
10
  const util_1 = require("./util");
11
+ console.log('loaded inside intercom');
11
12
  const destination = {
12
13
  name: 'Intercom Cloud Mode (Actions)',
13
14
  slug: 'actions-intercom-cloud',
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/intercom/index.ts"],"names":[],"mappings":";;;;;AAAA,wDAA+E;AAE/E,wEAA+C;AAC/C,kFAAyD;AACzD,8DAAqC;AACrC,iCAAiD;AAEjD,MAAM,WAAW,GAAoC;IACnD,IAAI,EAAE,+BAA+B;IACrC,IAAI,EAAE,wBAAwB;IAC9B,IAAI,EAAE,OAAO;IAEb,cAAc,EAAE;QACd,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE,EAAE;QACV,kBAAkB,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE;YAGpC,IAAI;gBACF,OAAO,MAAM,OAAO,CAAC,gCAAgC,CAAC,CAAA;aACvD;YAAC,OAAO,KAAK,EAAE;gBACd,MAAM,IAAI,KAAK,CAAC,4BAA4B,CAAC,CAAA;aAC9C;QACH,CAAC;KACF;IACD,aAAa,CAAC,EAAE,IAAI,EAAE;QACpB,OAAO;YACL,OAAO,EAAE;gBACP,aAAa,EAAE,UAAU,IAAI,EAAE,WAAW,EAAE;aAC7C;SACF,CAAA;IACH,CAAC;IAMD,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;QACvC,MAAM,WAAW,GAAG,OAAO,CAAC,MAAgB,CAAA;QAC5C,MAAM,OAAO,GAAG,MAAM,+BAAwB,CAAC,OAAO,EAAE,EAAE,WAAW,EAAE,CAAC,CAAA;QACxE,IAAI,OAAO,EAAE;YACX,OAAO,OAAO,CAAC,oCAAoC,OAAO,CAAC,MAAM,EAAE,EAAE;gBACnE,MAAM,EAAE,QAAQ;aACjB,CAAC,CAAA;SACH;aAAM;YACL,MAAM,IAA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EAAE,EAAE;gBACnE,MAAM,EAAE,QAAQ;aACjB,CAAC,CAAA;SACH;aAAM;YACL,MAAM,IAAI,+BAAgB,CAAC,yBAAyB,EAAE,mBAAmB,EAAE,GAAG,CAAC,CAAA;SAChF;IACH,CAAC;IAED,OAAO,EAAE;QACP,eAAe,EAAf,yBAAe;QACf,oBAAoB,EAApB,8BAAoB;QACpB,UAAU,EAAV,oBAAU;KACX;CACF,CAAA;AAED,kBAAe,WAAW,CAAA"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@segment/action-destinations",
3
3
  "description": "Destination Actions engine and definitions.",
4
- "version": "3.109.0",
4
+ "version": "3.110.0-alpha.20",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/segmentio/action-destinations",
@@ -38,8 +38,8 @@
38
38
  "dependencies": {
39
39
  "@amplitude/ua-parser-js": "^0.7.25",
40
40
  "@segment/a1-notation": "^2.1.4",
41
- "@segment/actions-core": "^3.38.0",
42
- "@segment/actions-shared": "^1.21.0",
41
+ "@segment/actions-core": "^3.39.0",
42
+ "@segment/actions-shared": "^1.22.0",
43
43
  "cheerio": "^1.0.0-rc.10",
44
44
  "dayjs": "^1.10.7",
45
45
  "escape-goat": "^3",
@@ -64,6 +64,5 @@
64
64
  "coverageReporters": [
65
65
  "lcov"
66
66
  ]
67
- },
68
- "gitHead": "2c3245aa5627222974f5aae7dd7bee33af321091"
67
+ }
69
68
  }