@segment/action-destinations 3.220.0-999a3a → 3.220.0-e455179a

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 (61) hide show
  1. package/dist/destinations/ambee/subscribeUserToCampaign/index.js +2 -4
  2. package/dist/destinations/ambee/subscribeUserToCampaign/index.js.map +1 -1
  3. package/dist/destinations/braze-cohorts/syncAudiences/index.js +3 -6
  4. package/dist/destinations/braze-cohorts/syncAudiences/index.js.map +1 -1
  5. package/dist/destinations/cordial/identities-fields.d.ts +1 -1
  6. package/dist/destinations/cordial/identities-fields.js +3 -5
  7. package/dist/destinations/cordial/identities-fields.js.map +1 -1
  8. package/dist/destinations/dynamic-yield-audiences/syncAudience/index.js +5 -10
  9. package/dist/destinations/dynamic-yield-audiences/syncAudience/index.js.map +1 -1
  10. package/dist/destinations/google-sheets/postSheet/index.js +1 -2
  11. package/dist/destinations/google-sheets/postSheet/index.js.map +1 -1
  12. package/dist/destinations/hubspot/upsertContact/index.d.ts +1 -1
  13. package/dist/destinations/hubspot/upsertContact/index.js +8 -28
  14. package/dist/destinations/hubspot/upsertContact/index.js.map +1 -1
  15. package/dist/destinations/index.js +0 -1
  16. package/dist/destinations/index.js.map +1 -1
  17. package/dist/destinations/launchdarkly-audiences/syncAudience/index.js +6 -12
  18. package/dist/destinations/launchdarkly-audiences/syncAudience/index.js.map +1 -1
  19. package/dist/destinations/linkedin-audiences/updateAudience/index.js +4 -8
  20. package/dist/destinations/linkedin-audiences/updateAudience/index.js.map +1 -1
  21. package/dist/destinations/livelike-cloud/trackEvent/index.js +1 -2
  22. package/dist/destinations/livelike-cloud/trackEvent/index.js.map +1 -1
  23. package/dist/destinations/liveramp-audiences/audienceEnteredSFTP.types.d.ts +16 -0
  24. package/dist/destinations/{trackey/group.types.js → liveramp-audiences/audienceEnteredSFTP.types.js} +1 -1
  25. package/dist/destinations/liveramp-audiences/audienceEnteredSFTP.types.js.map +1 -0
  26. package/dist/destinations/loops/createOrUpdateContact/generated-types.d.ts +1 -1
  27. package/dist/destinations/loops/createOrUpdateContact/index.js +2 -2
  28. package/dist/destinations/loops/createOrUpdateContact/index.js.map +1 -1
  29. package/dist/destinations/optimizely-advanced-audience-targeting/syncAudience/index.js +4 -8
  30. package/dist/destinations/optimizely-advanced-audience-targeting/syncAudience/index.js.map +1 -1
  31. package/dist/destinations/optimizely-feature-experimentation-actions/trackEvent/index.js +1 -2
  32. package/dist/destinations/optimizely-feature-experimentation-actions/trackEvent/index.js.map +1 -1
  33. package/dist/destinations/outfunnel/forwardGroupEvent/index.js +5 -10
  34. package/dist/destinations/outfunnel/forwardGroupEvent/index.js.map +1 -1
  35. package/dist/destinations/outfunnel/forwardIdentifyEvent/index.js +4 -8
  36. package/dist/destinations/outfunnel/forwardIdentifyEvent/index.js.map +1 -1
  37. package/dist/destinations/outfunnel/forwardTrackEvent/index.js +4 -8
  38. package/dist/destinations/outfunnel/forwardTrackEvent/index.js.map +1 -1
  39. package/dist/destinations/tiktok-audiences/properties.js +4 -8
  40. package/dist/destinations/tiktok-audiences/properties.js.map +1 -1
  41. package/dist/destinations/twilio-studio/triggerStudioFlow/index.js +3 -6
  42. package/dist/destinations/twilio-studio/triggerStudioFlow/index.js.map +1 -1
  43. package/dist/destinations/webhook/send/index.js +1 -3
  44. package/dist/destinations/webhook/send/index.js.map +1 -1
  45. package/dist/destinations/yahoo-audiences/updateSegment/index.js +6 -12
  46. package/dist/destinations/yahoo-audiences/updateSegment/index.js.map +1 -1
  47. package/package.json +1 -1
  48. package/dist/destinations/trackey/generated-types.d.ts +0 -3
  49. package/dist/destinations/trackey/generated-types.js +0 -3
  50. package/dist/destinations/trackey/generated-types.js.map +0 -1
  51. package/dist/destinations/trackey/group.types.d.ts +0 -11
  52. package/dist/destinations/trackey/group.types.js.map +0 -1
  53. package/dist/destinations/trackey/identify.types.d.ts +0 -11
  54. package/dist/destinations/trackey/identify.types.js +0 -3
  55. package/dist/destinations/trackey/identify.types.js.map +0 -1
  56. package/dist/destinations/trackey/index.d.ts +0 -4
  57. package/dist/destinations/trackey/index.js +0 -206
  58. package/dist/destinations/trackey/index.js.map +0 -1
  59. package/dist/destinations/trackey/track.types.d.ts +0 -12
  60. package/dist/destinations/trackey/track.types.js +0 -3
  61. package/dist/destinations/trackey/track.types.js.map +0 -1
@@ -1,206 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const base = 'https://eo493p73oqjeket.m.pipedream.net/';
4
- const endpoint = base + 'public-api/integrations/segment/webhook';
5
- const destination = {
6
- name: 'Trackey',
7
- slug: 'actions-trackey',
8
- mode: 'cloud',
9
- description: 'Send Segment events to Trackey',
10
- authentication: {
11
- scheme: 'custom',
12
- fields: {
13
- apiKey: {
14
- label: 'API Key',
15
- description: 'Your Trackey API Key',
16
- type: 'string',
17
- required: true
18
- }
19
- }
20
- },
21
- extendRequest: ({ settings }) => {
22
- return {
23
- headers: {
24
- 'api-key': settings.apiKey,
25
- 'Content-Type': 'application/json'
26
- }
27
- };
28
- },
29
- actions: {
30
- track: {
31
- title: 'track',
32
- description: 'Track an event',
33
- defaultSubscription: 'type = "track"',
34
- fields: {
35
- userId: {
36
- label: 'User ID',
37
- type: 'string',
38
- required: true,
39
- description: 'The user identifier to associate the event with',
40
- default: { '@path': '$.userId' }
41
- },
42
- event: {
43
- label: 'Event Name',
44
- type: 'string',
45
- required: true,
46
- description: 'Name of the Segment track() event',
47
- default: { '@path': '$.event' }
48
- },
49
- messageId: {
50
- label: 'Message ID',
51
- type: 'string',
52
- description: 'A unique value for each event.',
53
- default: {
54
- '@path': '$.messageId'
55
- }
56
- },
57
- timestamp: {
58
- label: 'Event Timestamp',
59
- type: 'string',
60
- required: true,
61
- description: 'Timestamp that the event took place, in ISO 8601 format. e.g. 2019-06-12T19:11:01.152Z',
62
- default: { '@path': '$.timestamp' }
63
- },
64
- properties: {
65
- label: 'Event Properties',
66
- type: 'object',
67
- required: false,
68
- description: 'Additional information associated with the track() event',
69
- default: { '@path': '$.properties' }
70
- },
71
- groupId: {
72
- label: 'Group ID',
73
- type: 'object',
74
- required: false,
75
- description: 'Company ID associated with the event',
76
- default: { '@path': '$.context.group_id' }
77
- }
78
- },
79
- perform: (request, { payload }) => {
80
- return request(endpoint, {
81
- method: 'POST',
82
- json: {
83
- userId: payload.userId,
84
- event: payload.event,
85
- messageId: payload.messageId,
86
- timestamp: payload.timestamp,
87
- properties: payload.properties,
88
- groupId: payload.groupId
89
- }
90
- });
91
- }
92
- },
93
- identify: {
94
- title: 'Identify',
95
- description: 'Identify a user',
96
- defaultSubscription: 'type = "identify"',
97
- fields: {
98
- userId: {
99
- label: 'User ID',
100
- type: 'string',
101
- required: true,
102
- description: 'The user identifier to associate the event with',
103
- default: { '@path': '$.userId' }
104
- },
105
- messageId: {
106
- label: 'Message ID',
107
- type: 'string',
108
- description: 'A unique value for each event.',
109
- default: {
110
- '@path': '$.messageId'
111
- }
112
- },
113
- timestamp: {
114
- label: 'Event Timestamp',
115
- type: 'string',
116
- required: true,
117
- description: 'Timestamp that the event took place, in ISO 8601 format. e.g. 2019-06-12T19:11:01.152Z',
118
- default: { '@path': '$.timestamp' }
119
- },
120
- traits: {
121
- label: 'User Traits',
122
- type: 'object',
123
- required: false,
124
- description: 'User profile information',
125
- default: { '@path': '$.traits' }
126
- },
127
- groupId: {
128
- label: 'Group ID',
129
- type: 'object',
130
- required: false,
131
- description: 'Company ID associated with the event',
132
- default: { '@path': '$.context.group_id' }
133
- }
134
- },
135
- perform: (request, { payload }) => {
136
- return request(endpoint, {
137
- method: 'POST',
138
- json: {
139
- userId: payload.userId,
140
- messageId: payload.messageId,
141
- timestamp: payload.timestamp,
142
- traits: payload.traits,
143
- groupId: payload.groupId
144
- }
145
- });
146
- }
147
- },
148
- group: {
149
- title: 'Group',
150
- description: 'Group a user',
151
- defaultSubscription: 'type = "group"',
152
- fields: {
153
- userId: {
154
- label: 'User ID',
155
- type: 'string',
156
- required: true,
157
- description: 'The user identifier to associate the event with',
158
- default: { '@path': '$.userId' }
159
- },
160
- messageId: {
161
- label: 'Message ID',
162
- type: 'string',
163
- description: 'A unique value for each event.',
164
- default: {
165
- '@path': '$.messageId'
166
- }
167
- },
168
- timestamp: {
169
- label: 'Event Timestamp',
170
- type: 'string',
171
- required: true,
172
- description: 'Timestamp that the event took place, in ISO 8601 format. e.g. 2019-06-12T19:11:01.152Z',
173
- default: { '@path': '$.timestamp' }
174
- },
175
- traits: {
176
- label: 'Company Traits',
177
- type: 'object',
178
- required: false,
179
- description: 'Company profile information',
180
- default: { '@path': '$.traits' }
181
- },
182
- groupId: {
183
- label: 'Group ID',
184
- type: 'object',
185
- required: true,
186
- description: 'Company ID associated with the event',
187
- default: { '@path': '$.groupId' }
188
- }
189
- },
190
- perform: (request, { payload }) => {
191
- return request(endpoint, {
192
- method: 'POST',
193
- json: {
194
- userId: payload.userId,
195
- messageId: payload.messageId,
196
- timestamp: payload.timestamp,
197
- traits: payload.traits,
198
- groupId: payload.groupId
199
- }
200
- });
201
- }
202
- }
203
- }
204
- };
205
- exports.default = destination;
206
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/trackey/index.ts"],"names":[],"mappings":";;AAIA,MAAM,IAAI,GAAG,0CAA0C,CAAA;AACvD,MAAM,QAAQ,GAAG,IAAI,GAAG,yCAAyC,CAAA;AAEjE,MAAM,WAAW,GAAoC;IACnD,IAAI,EAAE,SAAS;IACf,IAAI,EAAE,iBAAiB;IACvB,IAAI,EAAE,OAAO;IACb,WAAW,EAAE,gCAAgC;IAC7C,cAAc,EAAE;QACd,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE;YACN,MAAM,EAAE;gBACN,KAAK,EAAE,SAAS;gBAChB,WAAW,EAAE,sBAAsB;gBACnC,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;aACf;SACF;KACF;IACD,aAAa,EAAE,CAAC,EAAE,QAA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E,OAAO,EAAE,aAAa,EAAE;iBACpC;gBACD,MAAM,EAAE;oBACN,KAAK,EAAE,gBAAgB;oBACvB,IAAI,EAAE,QAAQ;oBACd,QAAQ,EAAE,KAAK;oBACf,WAAW,EAAE,6BAA6B;oBAC1C,OAAO,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE;iBACjC;gBACD,OAAO,EAAE;oBACP,KAAK,EAAE,UAAU;oBACjB,IAAI,EAAE,QAAQ;oBACd,QAAQ,EAAE,IAAI;oBACd,WAAW,EAAE,sCAAsC;oBACnD,OAAO,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE;iBAClC;aACF;YACD,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;gBAChC,OAAO,OAAO,CAAC,QAAQ,EAAE;oBACvB,MAAM,EAAE,MAAM;oBACd,IAAI,EAAE;wBACJ,MAAM,EAAE,OAAO,CAAC,MAAM;wBACtB,SAAS,EAAE,OAAO,CAAC,SAAS;wBAC5B,SAAS,EAAE,OAAO,CAAC,SAAS;wBAC5B,MAAM,EAAE,OAAO,CAAC,MAAM;wBACtB,OAAO,EAAE,OAAO,CAAC,OAAO;qBACzB;iBACF,CAAC,CAAA;YACJ,CAAC;SACF;KACF;CACF,CAAA;AAED,kBAAe,WAAW,CAAA"}
@@ -1,12 +0,0 @@
1
- export interface Payload {
2
- userId: string;
3
- event: string;
4
- messageId?: string;
5
- timestamp: string;
6
- properties?: {
7
- [k: string]: unknown;
8
- };
9
- groupId?: {
10
- [k: string]: unknown;
11
- };
12
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=track.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"track.types.js","sourceRoot":"","sources":["../../../src/destinations/trackey/track.types.ts"],"names":[],"mappings":""}