@segment/action-destinations 3.298.0 → 3.299.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.
- package/dist/destinations/actions-pardot/pa-operations.d.ts +1 -1
- package/dist/destinations/adjust/functions.d.ts +1 -1
- package/dist/destinations/adobe-target/adobeTarget_operations.d.ts +1 -1
- package/dist/destinations/airship/utilities.d.ts +7 -7
- package/dist/destinations/amazon-amc/index.js +2 -10
- package/dist/destinations/amazon-amc/index.js.map +1 -1
- package/dist/destinations/aws-s3/syncAudienceToCSV/index.js +1 -0
- package/dist/destinations/aws-s3/syncAudienceToCSV/index.js.map +1 -1
- package/dist/destinations/braze/utils.d.ts +6 -6
- package/dist/destinations/contentstack/customAttributesSync/utils.d.ts +1 -1
- package/dist/destinations/cordial/cordial-client.d.ts +8 -8
- package/dist/destinations/dynamic-yield-audiences/generated-types.d.ts +0 -1
- package/dist/destinations/dynamic-yield-audiences/helpers.d.ts +2 -0
- package/dist/destinations/dynamic-yield-audiences/helpers.js +9 -1
- package/dist/destinations/dynamic-yield-audiences/helpers.js.map +1 -1
- package/dist/destinations/dynamic-yield-audiences/index.js +5 -15
- package/dist/destinations/dynamic-yield-audiences/index.js.map +1 -1
- package/dist/destinations/dynamic-yield-audiences/syncAudience/index.js +5 -3
- package/dist/destinations/dynamic-yield-audiences/syncAudience/index.js.map +1 -1
- package/dist/destinations/engage-messaging-sendgrid/sendEmail/SendEmailPerformer.d.ts +1 -1
- package/dist/destinations/engage-messaging-twilio/sendMobilePush/PushSender.d.ts +1 -1
- package/dist/destinations/engage-messaging-twilio/utils/PhoneMessageSender.d.ts +1 -1
- package/dist/destinations/facebook-custom-audiences/fbca-operations.d.ts +2 -2
- package/dist/destinations/gameball/util.d.ts +1 -1
- package/dist/destinations/google-analytics-4/ga4-functions.d.ts +1 -1
- package/dist/destinations/google-sheets/postSheet/operations.d.ts +1 -1
- package/dist/destinations/hubspot/upsertObject/common-fields.js +11 -4
- package/dist/destinations/hubspot/upsertObject/common-fields.js.map +1 -1
- package/dist/destinations/hubspot/upsertObject/dynamic-fields.d.ts +13 -0
- package/dist/destinations/hubspot/upsertObject/dynamic-fields.js +94 -9
- package/dist/destinations/hubspot/upsertObject/dynamic-fields.js.map +1 -1
- package/dist/destinations/hubspot/upsertObject/generated-types.d.ts +3 -0
- package/dist/destinations/hubspot/upsertObject/hubspot-api.d.ts +14 -4
- package/dist/destinations/hubspot/upsertObject/hubspot-api.js +209 -66
- package/dist/destinations/hubspot/upsertObject/hubspot-api.js.map +1 -1
- package/dist/destinations/hubspot/upsertObject/index.js +26 -6
- package/dist/destinations/hubspot/upsertObject/index.js.map +1 -1
- package/dist/destinations/index.js +1 -0
- package/dist/destinations/index.js.map +1 -1
- package/dist/destinations/klaviyo/functions.d.ts +4 -4
- package/dist/destinations/launchdarkly-audiences/syncAudience/custom-audience-operations.d.ts +1 -1
- package/dist/destinations/vwo/generated-types.d.ts +1 -0
- package/dist/destinations/vwo/identifyUser/index.js +3 -1
- package/dist/destinations/vwo/identifyUser/index.js.map +1 -1
- package/dist/destinations/vwo/index.js +11 -0
- package/dist/destinations/vwo/index.js.map +1 -1
- package/dist/destinations/vwo/pageVisit/index.js +3 -1
- package/dist/destinations/vwo/pageVisit/index.js.map +1 -1
- package/dist/destinations/vwo/syncAudience/index.js +4 -1
- package/dist/destinations/vwo/syncAudience/index.js.map +1 -1
- package/dist/destinations/vwo/trackEvent/index.js +3 -1
- package/dist/destinations/vwo/trackEvent/index.js.map +1 -1
- package/dist/destinations/vwo/utility.d.ts +3 -0
- package/dist/destinations/vwo/utility.js +6 -1
- package/dist/destinations/vwo/utility.js.map +1 -1
- package/dist/destinations/webook-extensible/__test__/webhook.test.d.ts +2 -0
- package/dist/destinations/webook-extensible/__test__/webhook.test.js +141 -0
- package/dist/destinations/webook-extensible/__test__/webhook.test.js.map +1 -0
- package/dist/destinations/webook-extensible/generated-types.d.ts +3 -0
- package/dist/destinations/webook-extensible/generated-types.js +3 -0
- package/dist/destinations/webook-extensible/generated-types.js.map +1 -0
- package/dist/destinations/webook-extensible/index.d.ts +4 -0
- package/dist/destinations/webook-extensible/index.js +35 -0
- package/dist/destinations/webook-extensible/index.js.map +1 -0
- package/dist/destinations/webook-extensible/send/generated-types.d.ts +11 -0
- package/dist/destinations/webook-extensible/send/generated-types.js +3 -0
- package/dist/destinations/webook-extensible/send/generated-types.js.map +1 -0
- package/dist/destinations/webook-extensible/send/index.d.ts +5 -0
- package/dist/destinations/webook-extensible/send/index.js +78 -0
- package/dist/destinations/webook-extensible/send/index.js.map +1 -0
- package/package.json +4 -4
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const actions_core_1 = require("@segment/actions-core");
|
|
4
|
+
const action = {
|
|
5
|
+
title: 'Send',
|
|
6
|
+
description: 'Send an HTTP request.',
|
|
7
|
+
fields: {
|
|
8
|
+
url: {
|
|
9
|
+
label: 'URL',
|
|
10
|
+
description: 'URL to deliver data to.',
|
|
11
|
+
type: 'string',
|
|
12
|
+
required: true,
|
|
13
|
+
format: 'uri'
|
|
14
|
+
},
|
|
15
|
+
method: {
|
|
16
|
+
label: 'Method',
|
|
17
|
+
description: 'HTTP method to use.',
|
|
18
|
+
type: 'string',
|
|
19
|
+
choices: [
|
|
20
|
+
{ label: 'POST', value: 'POST' },
|
|
21
|
+
{ label: 'PUT', value: 'PUT' },
|
|
22
|
+
{ label: 'PATCH', value: 'PATCH' }
|
|
23
|
+
],
|
|
24
|
+
default: 'POST',
|
|
25
|
+
required: true
|
|
26
|
+
},
|
|
27
|
+
batch_size: {
|
|
28
|
+
label: 'Batch Size',
|
|
29
|
+
description: 'Maximum number of events to include in each batch. Actual batch sizes may be lower.',
|
|
30
|
+
type: 'number',
|
|
31
|
+
required: false,
|
|
32
|
+
default: 0
|
|
33
|
+
},
|
|
34
|
+
headers: {
|
|
35
|
+
label: 'Headers',
|
|
36
|
+
description: 'HTTP headers to send with each request. Only ASCII characters are supported.',
|
|
37
|
+
type: 'object',
|
|
38
|
+
defaultObjectUI: 'keyvalue:only'
|
|
39
|
+
},
|
|
40
|
+
data: {
|
|
41
|
+
label: 'Data',
|
|
42
|
+
description: 'Payload to deliver to webhook URL (JSON-encoded).',
|
|
43
|
+
type: 'object',
|
|
44
|
+
default: { '@path': '$.' }
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
perform: (request, { payload }) => {
|
|
48
|
+
try {
|
|
49
|
+
return request(payload.url, {
|
|
50
|
+
method: payload.method,
|
|
51
|
+
headers: payload.headers,
|
|
52
|
+
json: payload.data
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
catch (error) {
|
|
56
|
+
if (error instanceof TypeError)
|
|
57
|
+
throw new actions_core_1.PayloadValidationError(error.message);
|
|
58
|
+
throw error;
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
performBatch: (request, { payload }) => {
|
|
62
|
+
const { url, method, headers } = payload[0];
|
|
63
|
+
try {
|
|
64
|
+
return request(url, {
|
|
65
|
+
method: method,
|
|
66
|
+
headers: headers,
|
|
67
|
+
json: payload.map(({ data }) => data)
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
catch (error) {
|
|
71
|
+
if (error instanceof TypeError)
|
|
72
|
+
throw new actions_core_1.PayloadValidationError(error.message);
|
|
73
|
+
throw error;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
exports.default = action;
|
|
78
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/webook-extensible/send/index.ts"],"names":[],"mappings":";;AAAA,wDAAgF;AAMhF,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,MAAM;IACb,WAAW,EAAE,uBAAuB;IACpC,MAAM,EAAE;QACN,GAAG,EAAE;YACH,KAAK,EAAE,K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C,OAAO,CAAC,CAAA;YAC/E,MAAM,KAAK,CAAA;SACZ;IACH,CAAC;IACD,YAAY,EAAE,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;QAErC,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,CAAC,CAAC,CAAA;QAC3C,IAAI;YACF,OAAO,OAAO,CAAC,GAAG,EAAE;gBAClB,MAAM,EAAE,MAAuB;gBAC/B,OAAO,EAAE,OAAiC;gBAC1C,IAAI,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC;aACtC,CAAC,CAAA;SACH;QAAC,OAAO,KAAK,EAAE;YACd,IAAI,KAAK,YAAY,SAAS;gBAAE,MAAM,IAAI,qCAAsB,CAAC,KAAK,CAAC,OAAO,CAAC,CAAA;YAC/E,MAAM,KAAK,CAAA;SACZ;IACH,CAAC;CACF,CAAA;AAED,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.
|
|
4
|
+
"version": "3.299.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/segmentio/action-destinations",
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"@bufbuild/protobuf": "^1.4.2",
|
|
45
45
|
"@bufbuild/protoc-gen-es": "^1.4.2",
|
|
46
46
|
"@segment/a1-notation": "^2.1.4",
|
|
47
|
-
"@segment/actions-core": "^3.
|
|
48
|
-
"@segment/actions-shared": "^1.
|
|
47
|
+
"@segment/actions-core": "^3.126.0",
|
|
48
|
+
"@segment/actions-shared": "^1.107.0",
|
|
49
49
|
"@types/node": "^18.11.15",
|
|
50
50
|
"ajv-formats": "^2.1.1",
|
|
51
51
|
"aws4": "^1.12.0",
|
|
@@ -87,5 +87,5 @@
|
|
|
87
87
|
"__tests__/__helpers__/"
|
|
88
88
|
]
|
|
89
89
|
},
|
|
90
|
-
"gitHead": "
|
|
90
|
+
"gitHead": "47c23b8e9f43ceeb9bc348297f3b68c51849fd1c"
|
|
91
91
|
}
|