@segment/action-destinations 3.228.1-staging.0 → 3.228.1-staging.2
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.
- package/dist/destinations/blackbaud-raisers-edge-nxt/utils/index.d.ts +1 -1
- package/dist/destinations/engage/utils/track.d.ts +10 -10
- package/dist/destinations/klaviyo/index.js +1 -1
- package/dist/destinations/klaviyo/index.js.map +1 -1
- package/dist/destinations/klaviyo/properties.js +1 -1
- package/dist/destinations/klaviyo/properties.js.map +1 -1
- package/dist/destinations/linkedin-conversions/streamConversion/generated-types.d.ts +15 -0
- package/dist/destinations/linkedin-conversions/streamConversion/index.d.ts +2 -2
- package/dist/destinations/linkedin-conversions/streamConversion/index.js +105 -0
- package/dist/destinations/linkedin-conversions/streamConversion/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -9,7 +9,7 @@ export declare const dateStringToFuzzyDate: (dateString: string | number) => fal
|
|
|
9
9
|
y: string;
|
|
10
10
|
};
|
|
11
11
|
export declare const augmentFieldsWithConstituentFields: (fields: Record<string, InputField>) => Record<string, InputField>;
|
|
12
|
-
export declare const splitConstituentPayload: (payload: CreateOrUpdateIndividualConstituentPayload) => (Partial<
|
|
12
|
+
export declare const splitConstituentPayload: (payload: CreateOrUpdateIndividualConstituentPayload) => (Partial<Phone> | Partial<Constituent> | Partial<Address> | Partial<OnlinePresence>)[];
|
|
13
13
|
export declare const buildConstituentPayloadFromPayload: (payload: StringIndexedObject) => Partial<CreateOrUpdateIndividualConstituentPayload>;
|
|
14
14
|
export declare const buildGiftDataFromPayload: (constituentId: string, payload: CreateGiftPayload) => Partial<Gift>;
|
|
15
15
|
export declare const buildConstituentActionDataFromPayload: (constituentId: string, payload: CreateConstituentAction) => Partial<ConstituentAction>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ContextFromDecorator } from './operationTracking';
|
|
2
2
|
export declare const track: ((decoratorArgs?: ({
|
|
3
|
-
shouldStats?: ((args: import("./operationTracking").OperationStatsEventArgs) => boolean | void) | undefined;
|
|
4
|
-
} & {
|
|
5
3
|
onError?: ((ctx: import("./operationTracking").OperationErrorHandlerContext<import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any>>) => void) | undefined;
|
|
6
4
|
} & {
|
|
7
5
|
onTry?: ((ctx: import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any>) => void) | undefined;
|
|
8
6
|
onFinally?: ((ctx: import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any>) => void) | undefined;
|
|
9
7
|
} & import("./operationTracking").OperationLoggerDecoratorArgs & {
|
|
8
|
+
shouldStats?: ((args: import("./operationTracking").OperationStatsEventArgs) => boolean | void) | undefined;
|
|
9
|
+
} & {
|
|
10
10
|
wrapIntegrationError?: ((ctx: import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any>) => import("@segment/actions-core/*").IntegrationError | [message: string, code: string, status: number]) | undefined;
|
|
11
11
|
}) | undefined) => import("./operationTracking").GenericMethodDecorator<(this: any, ...args: any[]) => any>) & {
|
|
12
12
|
getCurrentOperation(classInstance: any): (import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any> & {
|
|
@@ -15,14 +15,6 @@ export declare const track: ((decoratorArgs?: ({
|
|
|
15
15
|
}) | undefined;
|
|
16
16
|
} & {
|
|
17
17
|
_contextType: import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any> & {
|
|
18
|
-
tags: string[];
|
|
19
|
-
sharedContext: {
|
|
20
|
-
tags: string[];
|
|
21
|
-
};
|
|
22
|
-
decoratorArgs?: {
|
|
23
|
-
shouldStats?: ((args: import("./operationTracking").OperationStatsEventArgs) => boolean | void) | undefined;
|
|
24
|
-
} | undefined;
|
|
25
|
-
} & {
|
|
26
18
|
decoratorArgs?: {
|
|
27
19
|
onError?: ((ctx: import("./operationTracking").OperationErrorHandlerContext<import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any>>) => void) | undefined;
|
|
28
20
|
} | undefined;
|
|
@@ -43,6 +35,14 @@ export declare const track: ((decoratorArgs?: ({
|
|
|
43
35
|
logMetadata?: Record<string, unknown> | undefined;
|
|
44
36
|
decoratorArgs?: import("./operationTracking").OperationLoggerDecoratorArgs | undefined;
|
|
45
37
|
sharedContext: import("./operationTracking").OperationLoggerSharedContext;
|
|
38
|
+
} & {
|
|
39
|
+
tags: string[];
|
|
40
|
+
sharedContext: {
|
|
41
|
+
tags: string[];
|
|
42
|
+
};
|
|
43
|
+
decoratorArgs?: {
|
|
44
|
+
shouldStats?: ((args: import("./operationTracking").OperationStatsEventArgs) => boolean | void) | undefined;
|
|
45
|
+
} | undefined;
|
|
46
46
|
} & {
|
|
47
47
|
decoratorArgs?: {
|
|
48
48
|
wrapIntegrationError?: ((ctx: import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any>) => import("@segment/actions-core/*").IntegrationError | [message: string, code: string, status: number]) | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/klaviyo/index.ts"],"names":[],"mappings":";;;;;AAAA,wDAAuF;AAGvF,qCAAiD;AACjD,oEAA2C;AAC3C,0EAAiD;AACjD,gFAAuD;AACvD,8DAAqC;AACrC,sEAA6C;AAE7C,MAAM,WAAW,GAA4C;IAC3D,IAAI,EAAE,mBAAmB;IACzB,IAAI,EAAE,iBAAiB;IACvB,IAAI,EAAE,OAAO;IAEb,cAAc,EAAE;QACd,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE;YACN,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,SAAS;gBAChB,WAAW,EAAE,wGAAwG;gBACrH,QAAQ,EAAE,IAAI;aACf;SACF;QACD,kBAAkB,EAAE,CAAC,OAAO,EAAE,EAAE;YAC9B,OAAO,OAAO,CAAC,GAAG,gBAAO,YAAY,EAAE;gBACrC,MAAM,EAAE,KAAK;aACd,CAAC,CAAA;QACJ,CAAC;KACF;IAED,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;QACvC,OAAO,OAAO,CAAC,GAAG,gBAAO,8BAA8B,EAAE;YACvD,MAAM,EAAE,MAAM;YACd,IAAI,EAAE;gBACJ,IAAI,EAAE;oBACJ,IAAI,EAAE,2BAA2B;oBACjC,UAAU,EAAE;wBACV,OAAO,EAAE;4BACP,IAAI,EAAE;gCACJ,IAAI,EAAE,SAAS;gCACf,EAAE,EAAE,OAAO,CAAC,MAAM;6BACnB;yBACF;qBACF;iBACF;aACF;SACF,CAAC,CAAA;IACJ,CAAC;IAED,aAAa,CAAC,EAAE,QAAQ,EAAE;QACxB,OAAO;YACL,OAAO,EAAE;gBACP,aAAa,EAAE,mBAAmB,QAAQ,CAAC,OAAO,EAAE;gBACpD,MAAM,EAAE,kBAAkB;gBAC1B,QAAQ,EAAE,sBAAa;aACxB;SACF,CAAA;IACH,CAAC;IACD,cAAc,EAAE,EAAE;IAClB,cAAc,EAAE;QACd,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;YACd,kBAAkB,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/klaviyo/index.ts"],"names":[],"mappings":";;;;;AAAA,wDAAuF;AAGvF,qCAAiD;AACjD,oEAA2C;AAC3C,0EAAiD;AACjD,gFAAuD;AACvD,8DAAqC;AACrC,sEAA6C;AAE7C,MAAM,WAAW,GAA4C;IAC3D,IAAI,EAAE,mBAAmB;IACzB,IAAI,EAAE,iBAAiB;IACvB,IAAI,EAAE,OAAO;IAEb,cAAc,EAAE;QACd,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE;YACN,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,SAAS;gBAChB,WAAW,EAAE,wGAAwG;gBACrH,QAAQ,EAAE,IAAI;aACf;SACF;QACD,kBAAkB,EAAE,C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IAAI,UAAU,KAAK,gBAAgB,CAAC,UAAU,EAAE;gBAC9C,MAAM,IAAI,+BAAgB,CACxB,kGAAkG,EAClG,sBAAsB,EACtB,GAAG,CACJ,CAAA;aACF;YAED,OAAO;gBACL,UAAU;aACX,CAAA;QACH,CAAC;KACF;IACD,OAAO,EAAE;QACP,aAAa,EAAb,uBAAa;QACb,gBAAgB,EAAhB,0BAAgB;QAChB,mBAAmB,EAAnB,6BAAmB;QACnB,UAAU,EAAV,oBAAU;QACV,cAAc,EAAd,wBAAc;KACf;CACF,CAAA;AAED,kBAAe,WAAW,CAAA"}
|
|
@@ -6,7 +6,7 @@ exports.external_id = {
|
|
|
6
6
|
description: `'Insert the ID of the default list that you'd like to subscribe users to when you call .identify().'`,
|
|
7
7
|
type: 'string',
|
|
8
8
|
default: {
|
|
9
|
-
'@path': '$.context.personas.
|
|
9
|
+
'@path': '$.context.personas.external_audience_id'
|
|
10
10
|
},
|
|
11
11
|
unsafe_hidden: true
|
|
12
12
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"properties.js","sourceRoot":"","sources":["../../../src/destinations/klaviyo/properties.ts"],"names":[],"mappings":";;;AAEa,QAAA,WAAW,GAAe;IACrC,KAAK,EAAE,aAAa;IACpB,WAAW,EAAE,sGAAsG;IACnH,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE;QACP,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"properties.js","sourceRoot":"","sources":["../../../src/destinations/klaviyo/properties.ts"],"names":[],"mappings":";;;AAEa,QAAA,WAAW,GAAe;IACrC,KAAK,EAAE,aAAa;IACpB,WAAW,EAAE,sGAAsG;IACnH,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE;QACP,OAAO,EAAE,yCAAyC;KACnD;IACD,aAAa,EAAE,IAAI;CACpB,CAAA;AAEY,QAAA,KAAK,GAAe;IAC/B,KAAK,EAAE,OAAO;IACd,WAAW,EAAE,eAAe;IAC5B,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE;QACP,OAAO,EAAE,gBAAgB;KAC1B;CACF,CAAA"}
|
|
@@ -18,3 +18,18 @@ export interface Payload {
|
|
|
18
18
|
};
|
|
19
19
|
campaignId: string;
|
|
20
20
|
}
|
|
21
|
+
export interface HookBundle {
|
|
22
|
+
onMappingSave: {
|
|
23
|
+
inputs?: {
|
|
24
|
+
conversionRuleId?: string;
|
|
25
|
+
name: string;
|
|
26
|
+
conversionType: string;
|
|
27
|
+
attribution_type: string;
|
|
28
|
+
};
|
|
29
|
+
outputs?: {
|
|
30
|
+
id: string;
|
|
31
|
+
name: string;
|
|
32
|
+
conversionType: string;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ActionDefinition } from '@segment/actions-core';
|
|
2
2
|
import type { Settings } from '../generated-types';
|
|
3
|
-
import type { Payload } from './generated-types';
|
|
4
|
-
declare const action: ActionDefinition<Settings, Payload>;
|
|
3
|
+
import type { Payload, HookBundle } from './generated-types';
|
|
4
|
+
declare const action: ActionDefinition<Settings, Payload, undefined, HookBundle>;
|
|
5
5
|
export default action;
|
|
@@ -99,6 +99,111 @@ const action = {
|
|
|
99
99
|
description: 'A dynamic field dropdown which fetches all active campaigns.'
|
|
100
100
|
}
|
|
101
101
|
},
|
|
102
|
+
hooks: {
|
|
103
|
+
onMappingSave: {
|
|
104
|
+
label: 'Create a Conversion Rule',
|
|
105
|
+
description: 'When saving this mapping, we will create a conversion rule in LinkedIn using the fields you provided.',
|
|
106
|
+
inputFields: {
|
|
107
|
+
conversionRuleId: {
|
|
108
|
+
type: 'string',
|
|
109
|
+
label: 'Existing Conversion Rule ID',
|
|
110
|
+
description: 'The ID of an existing conversion rule to stream events to. If defined, we will not create a new conversion rule.',
|
|
111
|
+
required: false
|
|
112
|
+
},
|
|
113
|
+
name: {
|
|
114
|
+
type: 'string',
|
|
115
|
+
label: 'Name',
|
|
116
|
+
description: 'The name of the conversion rule.',
|
|
117
|
+
required: true
|
|
118
|
+
},
|
|
119
|
+
conversionType: {
|
|
120
|
+
type: 'string',
|
|
121
|
+
label: 'Conversion Type',
|
|
122
|
+
description: 'The type of conversion rule.',
|
|
123
|
+
required: true,
|
|
124
|
+
choices: [
|
|
125
|
+
{ label: 'Add to Cart', value: 'ADD_TO_CART' },
|
|
126
|
+
{ label: 'Download', value: 'DOWNLOAD' },
|
|
127
|
+
{ label: 'Install', value: 'INSTALL' },
|
|
128
|
+
{ label: 'Key Page View', value: 'KEY_PAGE_VIEW' },
|
|
129
|
+
{ label: 'Lead', value: 'LEAD' },
|
|
130
|
+
{ label: 'Purchase', value: 'PURCHASE' },
|
|
131
|
+
{ label: 'Sign Up', value: 'SIGN_UP' },
|
|
132
|
+
{ label: 'Other', value: 'OTHER' }
|
|
133
|
+
]
|
|
134
|
+
},
|
|
135
|
+
attribution_type: {
|
|
136
|
+
label: 'Attribution Type',
|
|
137
|
+
description: 'The attribution type for the conversion rule.',
|
|
138
|
+
type: 'string',
|
|
139
|
+
required: true,
|
|
140
|
+
choices: [
|
|
141
|
+
{ label: 'Each Campaign', value: 'LAST_TOUCH_BY_CAMPAIGN' },
|
|
142
|
+
{ label: 'Single Campaign', value: 'LAST_TOUCH_BY_CONVERSION' }
|
|
143
|
+
]
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
outputTypes: {
|
|
147
|
+
id: {
|
|
148
|
+
type: 'string',
|
|
149
|
+
label: 'ID',
|
|
150
|
+
description: 'The ID of the conversion rule.',
|
|
151
|
+
required: true
|
|
152
|
+
},
|
|
153
|
+
name: {
|
|
154
|
+
type: 'string',
|
|
155
|
+
label: 'Name',
|
|
156
|
+
description: 'The name of the conversion rule.',
|
|
157
|
+
required: true
|
|
158
|
+
},
|
|
159
|
+
conversionType: {
|
|
160
|
+
type: 'string',
|
|
161
|
+
label: 'Conversion Type',
|
|
162
|
+
description: 'The type of conversion rule.',
|
|
163
|
+
required: true
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
performHook: async (request, { payload, hookInputs }) => {
|
|
167
|
+
if (hookInputs?.conversionRuleId) {
|
|
168
|
+
return {
|
|
169
|
+
successMessage: `Using existing Conversion Rule: ${hookInputs.conversionRuleId} `,
|
|
170
|
+
savedData: {
|
|
171
|
+
id: hookInputs.conversionRuleId,
|
|
172
|
+
name: hookInputs.name,
|
|
173
|
+
conversionType: hookInputs.conversionType
|
|
174
|
+
}
|
|
175
|
+
};
|
|
176
|
+
}
|
|
177
|
+
try {
|
|
178
|
+
const { data } = await request('https://api.linkedin.com/rest/conversions', {
|
|
179
|
+
method: 'post',
|
|
180
|
+
json: {
|
|
181
|
+
name: hookInputs?.name,
|
|
182
|
+
account: payload?.adAccountId,
|
|
183
|
+
conversionMethod: 'CONVERSIONS_API',
|
|
184
|
+
postClickAttributionWindowSize: 30,
|
|
185
|
+
viewThroughAttributionWindowSize: 7,
|
|
186
|
+
attributionType: hookInputs?.attribution_type,
|
|
187
|
+
type: hookInputs?.conversionType
|
|
188
|
+
}
|
|
189
|
+
});
|
|
190
|
+
return {
|
|
191
|
+
successMessage: `Conversion rule ${data.id} created successfully!`,
|
|
192
|
+
savedData: {
|
|
193
|
+
id: data.id,
|
|
194
|
+
name: data.name,
|
|
195
|
+
conversionType: data.type
|
|
196
|
+
}
|
|
197
|
+
};
|
|
198
|
+
}
|
|
199
|
+
catch (e) {
|
|
200
|
+
return {
|
|
201
|
+
errorMessage: `Failed to create conversion rule: ${e?.message ?? JSON.stringify(e)}`
|
|
202
|
+
};
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
},
|
|
102
207
|
dynamicFields: {
|
|
103
208
|
adAccountId: async (request) => {
|
|
104
209
|
const linkedIn = new api_1.LinkedInConversions(request);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/linkedin-conversions/streamConversion/index.ts"],"names":[],"mappings":";;AACA,wDAA8D;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/linkedin-conversions/streamConversion/index.ts"],"names":[],"mappings":";;AACA,wDAA8D;AAE9D,gCAA4C;AAC5C,4CAAgD;AAahD,MAAM,MAAM,GAA+D;IACzE,KAAK,EAAE,yBAAyB;IAChC,WAAW,EAAE,mEAAmE;IAChF,mBAAmB,EAAE,gBAAgB;IACrC,MAAM,EAAE;QACN,WAAW,EAAE;YACX,KAAK,EAAE,YAAY;YACnB,WAAW,EAAE,wDAAwD;YACrE,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE,IAAI;SACd;QACD,YAAY,EAAE;YACZ,KAAK,EAAE,iBAAiB;YACxB,WAAW,EAAE,4DAA4D;YACzE,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,KAAK;YACf,OAAO,EAAE,IAAI;SACd;QACD,oBAAoB,EAAE;YACpB,KAAK,EAAE,WAAW;YAClB,WAAW,EACT,wLAAwL;YAC1L,IAAI,EAAE,SAAS;YACf,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE;gBACP,OAAO,EAAE,aAAa;aACvB;SACF;QACD,eAAe,EAAE;YACf,KAAK,EAAE,kBAAkB;YACzB,WAAW,EAAE,6FAA6F;YAC1G,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,KAAK;YACf,UAAU,EAAE;gBACV,YAAY,EAAE;oBACZ,KAAK,EAAE,eAAe;oBACtB,IAAI,EAAE,QAAQ;oBACd,QAAQ,EAAE,IAAI;oBACd,WAAW,EAAE,YAAY;iBAC1B;gBACD,MAAM,EAAE;oBACN,KAAK,EAAE,QAAQ;oBACf,IAAI,EAAE,QAAQ;oBACd,QAAQ,EAAE,IAAI;oBACd,WAAW,EAAE,6FAA6F;iBAC3G;aACF;SACF;QACD,OAAO,EAAE;YACP,KAAK,EAAE,UAAU;YACjB,WAAW,EAAE,2CAA2C;YACxD,IAAI,EAAE,QAAQ;YACd,QAAQ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,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAA;IAC3D,IAAI,OAAO,CAAC,oBAAoB,GAAG,aAAa,EAAE;QAChD,MAAM,IAAI,qCAAsB,CAAC,8CAA8C,CAAC,CAAA;KACjF;IAED,IACE,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,KAAK,CAAC;QACjC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,IAAI,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,EAChG;QACA,MAAM,IAAI,qCAAsB,CAAC,iFAAiF,CAAC,CAAA;KACpH;SAAM,IAAI,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE;QAC5C,MAAM,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE;YACvD,OAAO,6BAAiB,CAAC,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,CAAA;QAC/C,CAAC,CAAC,CAAA;QACF,IAAI,CAAC,cAAc,EAAE;YACnB,MAAM,IAAI,qCAAsB,CAAC,kCAAkC,CAAC,CAAA;SACrE;KACF;AACH,CAAC;AACD,kBAAe,MAAM,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.228.1-staging.
|
|
4
|
+
"version": "3.228.1-staging.2",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/segmentio/action-destinations",
|