@segment/action-destinations 3.79.1-alpha.5 → 3.80.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.
|
@@ -10,12 +10,6 @@ const action = {
|
|
|
10
10
|
title: 'Case',
|
|
11
11
|
description: 'Represents a case, which is a customer issue or problem.',
|
|
12
12
|
fields: {
|
|
13
|
-
test_dynamic_field: {
|
|
14
|
-
label: 'Test Dynamic Field',
|
|
15
|
-
description: 'A test dynamic field.',
|
|
16
|
-
type: 'string',
|
|
17
|
-
dynamic: true
|
|
18
|
-
},
|
|
19
13
|
operation: sf_properties_1.operation,
|
|
20
14
|
traits: sf_properties_1.traits,
|
|
21
15
|
bulkUpsertExternalId: sf_properties_1.bulkUpsertExternalId,
|
|
@@ -27,22 +21,6 @@ const action = {
|
|
|
27
21
|
},
|
|
28
22
|
customFields: sf_properties_1.customFields
|
|
29
23
|
},
|
|
30
|
-
dynamicFields: {
|
|
31
|
-
test_dynamic_field: async (request, _data) => {
|
|
32
|
-
const res = await request('https://test-dynamic-fields.nick-aguilar.workers.dev/', {
|
|
33
|
-
method: 'GET'
|
|
34
|
-
});
|
|
35
|
-
return {
|
|
36
|
-
body: {
|
|
37
|
-
data: [
|
|
38
|
-
{ label: res.content, value: `test1 ${res.content}` },
|
|
39
|
-
{ label: `${res.content} test2`, value: `test2 ${res.content}` }
|
|
40
|
-
],
|
|
41
|
-
pagination: { nextPage: '2' }
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
24
|
perform: async (request, { settings, payload }) => {
|
|
47
25
|
const sf = new sf_operations_1.default(settings.instanceUrl, request);
|
|
48
26
|
if (payload.operation === 'create') {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/salesforce/cases/index.ts"],"names":[],"mappings":";;;;;AAGA,oDAOyB;AACzB,qEAAyC;AAEzC,MAAM,WAAW,GAA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,OAAO,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE;QACrD,MAAM,EAAE,GAAe,IAAI,uBAAU,CAAC,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC,CAAA;QAEpE,OAAO,EAAE,CAAC,WAAW,CAAC,OAAO,EAAE,WAAW,CAAC,CAAA;IAC7C,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.80.0",
|
|
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.
|
|
42
|
-
"@segment/actions-shared": "^1.
|
|
41
|
+
"@segment/actions-core": "^3.28.0",
|
|
42
|
+
"@segment/actions-shared": "^1.11.0",
|
|
43
43
|
"cheerio": "^1.0.0-rc.10",
|
|
44
44
|
"dayjs": "^1.10.7",
|
|
45
45
|
"escape-goat": "^3",
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"lcov"
|
|
66
66
|
]
|
|
67
67
|
},
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "d1965c3de3dbfe7360c24454e5124f7ed3bc6f8a"
|
|
69
69
|
}
|