@segment/action-destinations 3.82.1-alpha.0 → 3.82.1-alpha.1
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,13 +10,13 @@ const action = {
|
|
|
10
10
|
title: 'Case',
|
|
11
11
|
description: 'Represents a case, which is a customer issue or problem.',
|
|
12
12
|
fields: {
|
|
13
|
+
operation: sf_properties_1.operation,
|
|
13
14
|
test_dynamic_field: {
|
|
14
|
-
label: 'Test Dynamic Field',
|
|
15
|
-
description: 'A test dynamic field.',
|
|
16
15
|
type: 'string',
|
|
16
|
+
label: 'Test Dynamic Field',
|
|
17
|
+
description: 'This is a test dynamic field.',
|
|
17
18
|
dynamic: true
|
|
18
19
|
},
|
|
19
|
-
operation: sf_properties_1.operation,
|
|
20
20
|
enable_batching: sf_properties_1.enable_batching,
|
|
21
21
|
traits: sf_properties_1.traits,
|
|
22
22
|
bulkUpsertExternalId: sf_properties_1.bulkUpsertExternalId,
|
|
@@ -33,11 +33,17 @@ const action = {
|
|
|
33
33
|
const res = await request('https://test-dynamic-fields.nick-aguilar.workers.dev/', {
|
|
34
34
|
method: 'GET'
|
|
35
35
|
});
|
|
36
|
+
const arr = [];
|
|
37
|
+
const ret = res.content;
|
|
38
|
+
const items = ret.split(',');
|
|
39
|
+
items.forEach((item) => {
|
|
40
|
+
arr.push({
|
|
41
|
+
label: item,
|
|
42
|
+
value: item
|
|
43
|
+
});
|
|
44
|
+
});
|
|
36
45
|
return {
|
|
37
|
-
choices:
|
|
38
|
-
{ label: res.content, value: `test1 ${res.content}` },
|
|
39
|
-
{ label: `${res.content} test2`, value: `test2 ${res.content}` }
|
|
40
|
-
],
|
|
46
|
+
choices: arr,
|
|
41
47
|
nextPage: '2'
|
|
42
48
|
};
|
|
43
49
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/salesforce/cases/index.ts"],"names":[],"mappings":";;;;;AAGA,oDAQyB;AACzB,qEAAyC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/salesforce/cases/index.ts"],"names":[],"mappings":";;;;;AAGA,oDAQyB;AACzB,qEAAyC;AAGzC,MAAM,WAAW,GAAG,MAAM,CAAA;AAE1B,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,MAAM;IACb,WAAW,EAAE,0DAA0D;IACvE,MAAM,EAAE;QACN,SAAS,EAAE,yBAAS;QACpB,kBAAkB,EAAE;YAClB,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,oBAAoB;YAC3B,WAAW,EAAE,+BAA+B;YAC5C,OAAO,EAAE,IAAI;SACd;QACD,eAAe,EAAE,+BAAe;QAChC,MAAM,EAAE,sBAAM;QACd,oBAAoB,EAAE,oCAAoB;QAC1C,kBAAkB,EAAE,kCAAkB;QACtC,WAAW,EAAE;YACX,KAAK,EAAE,aAAa;YACpB,WAAW,EAAE,iCAAiC;YAC9C,IAAI,EAAE,QAAQ;SACf;QACD,YAAY,EAAE,4BAAY;KAC3B;IACD,aAAa,EAAE;QACb,kBAAkB,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE;YAC3C,MAAM,GAAG,GAAG,MAAM,OAAO,CAAS,uDAAuD,EAAE;gBACzF,MAAM,EAAE,KAAK;aACd,CAAC,CAAA;YAGF,MAAM,GAAG,GAAuB,EAAE,CAAA;YAClC,MAAM,GAAG,GAAG,GAAG,CAAC,OAAO,CAAA;YACvB,MAAM,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;YAE5B,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;gBACrB,GAAG,CAAC,IAAI,CAAC;oBACP,KAAK,EAAE,IAAI;oBACX,KAAK,EAAE,IAAI;iBACZ,CAAC,CAAA;YACJ,CAAC,CAAC,CAAA;YAEF,OAAO;gBACL,OAAO,EAAE,GAAG;gBACZ,QAAQ,EAAE,GAAG;aACd,CAAA;QACH,CAAC;KACF;IACD,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE;QAChD,MAAM,EAAE,GAAe,IAAI,uBAAU,CAAC,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC,CAAA;QAEpE,IAAI,OAAO,CAAC,SAAS,KAAK,QAAQ,EAAE;YAClC,OAAO,MAAM,EAAE,CAAC,YAAY,CAAC,OAAO,EAAE,WAAW,CAAC,CAAA;SACnD;QAED,8BAAc,CAAC,OAAO,CAAC,CAAA;QAEvB,IAAI,OAAO,CAAC,SAAS,KAAK,QAAQ,EAAE;YAClC,OAAO,MAAM,EAAE,CAAC,YAAY,CAAC,OAAO,EAAE,WAAW,CAAC,CAAA;SACnD;QAED,IAAI,OAAO,CAAC,SAAS,KAAK,QAAQ,EAAE;YAClC,OAAO,MAAM,EAAE,CAAC,YAAY,CAAC,OAAO,EAAE,WAAW,CAAC,CAAA;SACnD;IACH,CAAC;IACD,YAAY,EAAE,KAAK,EAAE,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.82.1-alpha.
|
|
4
|
+
"version": "3.82.1-alpha.1",
|
|
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.29.1-alpha.
|
|
42
|
-
"@segment/actions-shared": "^1.12.1-alpha.
|
|
41
|
+
"@segment/actions-core": "^3.29.1-alpha.1",
|
|
42
|
+
"@segment/actions-shared": "^1.12.1-alpha.1",
|
|
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": "9bf18a5f5f4eb37f5bb41de1fb55615113888ba0"
|
|
69
69
|
}
|