@bonsae/node-red-salesforce 0.4.1 → 0.5.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/README.md +40 -4
- package/icons/salesforce-apex-code.png +0 -0
- package/icons/salesforce-apex-invocation.png +0 -0
- package/index.d.ts +88 -39
- package/index.html +1 -1
- package/index.mjs +796 -372
- package/index.mjs.map +1 -1
- package/locales/de/index.html +68 -15
- package/locales/de/index.json +54 -12
- package/locales/en-US/index.html +69 -16
- package/locales/en-US/index.json +57 -16
- package/locales/es-ES/index.html +75 -22
- package/locales/es-ES/index.json +61 -19
- package/locales/fr/index.html +75 -22
- package/locales/fr/index.json +63 -21
- package/locales/ja/index.html +74 -21
- package/locales/ja/index.json +60 -18
- package/locales/ko/index.html +74 -21
- package/locales/ko/index.json +60 -18
- package/locales/pt-BR/index.html +70 -17
- package/locales/pt-BR/index.json +57 -15
- package/locales/ru/index.html +74 -21
- package/locales/ru/index.json +60 -18
- package/locales/zh-CN/index.html +74 -21
- package/locales/zh-CN/index.json +60 -18
- package/locales/zh-TW/index.html +74 -21
- package/locales/zh-TW/index.json +60 -18
- package/package.json +1 -1
- package/resources/index.dnWzY-T-.js +1 -0
- package/resources/index.FDBQSjT7.js +0 -1
package/locales/zh-CN/index.json
CHANGED
|
@@ -1,10 +1,45 @@
|
|
|
1
1
|
{
|
|
2
|
-
"salesforce-apex": {
|
|
2
|
+
"salesforce-apex-code": {
|
|
3
3
|
"configs": {
|
|
4
4
|
"name": "名称",
|
|
5
|
-
"connection": "
|
|
5
|
+
"connection": "连接",
|
|
6
|
+
"apexType": "类型",
|
|
7
|
+
"className": "类名",
|
|
8
|
+
"urlMapping": "URL映射",
|
|
9
|
+
"httpMethod": "HTTP 方法",
|
|
10
|
+
"code": "Apex代码"
|
|
11
|
+
},
|
|
12
|
+
"toggles": {
|
|
13
|
+
"validateInput": "验证输入",
|
|
14
|
+
"validateOutput": "验证输出",
|
|
15
|
+
"errorPort": "错误端口",
|
|
16
|
+
"completePort": "完成端口",
|
|
17
|
+
"statusPort": "状态端口"
|
|
18
|
+
},
|
|
19
|
+
"$schema": "https://unpkg.com/@bonsae/nrg/schemas/labels.schema.json",
|
|
20
|
+
"label": "Apex Code",
|
|
21
|
+
"description": "在Salesforce组织上部署并执行自定义Apex代码。支持Invocable和REST类型。",
|
|
22
|
+
"inputLabels": "输入",
|
|
23
|
+
"outputLabels": [
|
|
24
|
+
"响应"
|
|
25
|
+
],
|
|
26
|
+
"input": {
|
|
27
|
+
"payload": "以JSON字符串形式传递给Apex方法的输入数据"
|
|
28
|
+
},
|
|
29
|
+
"outputs": [
|
|
30
|
+
{
|
|
31
|
+
"payload": "Apex执行响应"
|
|
32
|
+
}
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
"salesforce-apex-invocation": {
|
|
36
|
+
"configs": {
|
|
37
|
+
"name": "名称",
|
|
38
|
+
"connection": "连接",
|
|
39
|
+
"apexType": "类型",
|
|
6
40
|
"method": "方法",
|
|
7
|
-
"path": "
|
|
41
|
+
"path": "端点",
|
|
42
|
+
"actionName": "操作"
|
|
8
43
|
},
|
|
9
44
|
"toggles": {
|
|
10
45
|
"validateInput": "验证输入",
|
|
@@ -14,28 +49,34 @@
|
|
|
14
49
|
"statusPort": "状态端口"
|
|
15
50
|
},
|
|
16
51
|
"$schema": "https://unpkg.com/@bonsae/nrg/schemas/labels.schema.json",
|
|
17
|
-
"label": "Apex",
|
|
18
|
-
"description": "调用Salesforce
|
|
52
|
+
"label": "Apex Invocation",
|
|
53
|
+
"description": "调用Salesforce组织中现有的Apex REST端点或Invocable Action。",
|
|
19
54
|
"inputLabels": "请求",
|
|
20
55
|
"outputLabels": [
|
|
21
56
|
"响应"
|
|
22
57
|
],
|
|
23
58
|
"input": {
|
|
24
|
-
"payload": "
|
|
59
|
+
"payload": "POST/PUT/PATCH的请求正文,GET/DELETE时忽略"
|
|
25
60
|
},
|
|
26
61
|
"outputs": [
|
|
27
62
|
{
|
|
28
|
-
"payload": "Apex
|
|
63
|
+
"payload": "Apex端点响应"
|
|
29
64
|
}
|
|
30
65
|
]
|
|
31
66
|
},
|
|
32
67
|
"salesforce-bulk": {
|
|
33
68
|
"configs": {
|
|
34
69
|
"name": "名称",
|
|
35
|
-
"connection": "
|
|
70
|
+
"connection": "连接",
|
|
36
71
|
"operation": "操作",
|
|
37
72
|
"sObjectType": "SObject类型",
|
|
38
|
-
"
|
|
73
|
+
"query": "SOQL查询",
|
|
74
|
+
"externalIdField": "外部ID字段",
|
|
75
|
+
"assignmentRuleId": "分配规则ID",
|
|
76
|
+
"columnDelimiter": "列分隔符",
|
|
77
|
+
"lineEnding": "行结束符",
|
|
78
|
+
"pollInterval": "轮询间隔 (ms)",
|
|
79
|
+
"pollTimeout": "轮询超时 (ms)"
|
|
39
80
|
},
|
|
40
81
|
"toggles": {
|
|
41
82
|
"validateInput": "验证输入",
|
|
@@ -53,11 +94,11 @@
|
|
|
53
94
|
"作业完成"
|
|
54
95
|
],
|
|
55
96
|
"input": {
|
|
56
|
-
"payload": "
|
|
97
|
+
"payload": "记录数组、CSV字符串、可读流(摄取)或触发器(查询)"
|
|
57
98
|
},
|
|
58
99
|
"outputs": [
|
|
59
100
|
{
|
|
60
|
-
"payload": "
|
|
101
|
+
"payload": "查询:单条记录。摄取:{ successfulResults, failedResults, unprocessedRecords }"
|
|
61
102
|
}
|
|
62
103
|
]
|
|
63
104
|
},
|
|
@@ -88,7 +129,7 @@
|
|
|
88
129
|
"salesforce-describe": {
|
|
89
130
|
"configs": {
|
|
90
131
|
"name": "名称",
|
|
91
|
-
"connection": "
|
|
132
|
+
"connection": "连接",
|
|
92
133
|
"sObjectType": "SObject类型"
|
|
93
134
|
},
|
|
94
135
|
"toggles": {
|
|
@@ -106,21 +147,22 @@
|
|
|
106
147
|
"SObject元数据"
|
|
107
148
|
],
|
|
108
149
|
"input": {
|
|
109
|
-
"payload": "
|
|
150
|
+
"payload": "SObject API名称(如果提供则覆盖配置)"
|
|
110
151
|
},
|
|
111
152
|
"outputs": [
|
|
112
153
|
{
|
|
113
|
-
"payload": "SObject
|
|
154
|
+
"payload": "SObject描述结果,包含字段、子关系和记录类型信息"
|
|
114
155
|
}
|
|
115
156
|
]
|
|
116
157
|
},
|
|
117
158
|
"salesforce-dml": {
|
|
118
159
|
"configs": {
|
|
119
160
|
"name": "名称",
|
|
120
|
-
"connection": "
|
|
161
|
+
"connection": "连接",
|
|
121
162
|
"operation": "操作",
|
|
122
163
|
"sObjectType": "SObject类型",
|
|
123
|
-
"externalIdField": "外部ID字段"
|
|
164
|
+
"externalIdField": "外部ID字段",
|
|
165
|
+
"record": "记录"
|
|
124
166
|
},
|
|
125
167
|
"toggles": {
|
|
126
168
|
"validateInput": "验证输入",
|
|
@@ -148,7 +190,7 @@
|
|
|
148
190
|
"salesforce-soql": {
|
|
149
191
|
"configs": {
|
|
150
192
|
"name": "名称",
|
|
151
|
-
"connection": "
|
|
193
|
+
"connection": "连接",
|
|
152
194
|
"query": "查询"
|
|
153
195
|
},
|
|
154
196
|
"toggles": {
|
|
@@ -179,7 +221,7 @@
|
|
|
179
221
|
"salesforce-streaming": {
|
|
180
222
|
"configs": {
|
|
181
223
|
"name": "名称",
|
|
182
|
-
"connection": "
|
|
224
|
+
"connection": "连接",
|
|
183
225
|
"channelName": "频道",
|
|
184
226
|
"subscribeType": "订阅起点",
|
|
185
227
|
"replayId": "重播ID",
|
package/locales/zh-TW/index.html
CHANGED
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
<table width="100%" style="min-width:500px">
|
|
33
33
|
<thead><tr><th>標籤</th><th>屬性</th><th>類型</th><th>必填</th><th>預設值</th><th style="width:35%">描述</th></tr></thead>
|
|
34
34
|
<tbody>
|
|
35
|
-
<tr><td
|
|
35
|
+
<tr><td>連線</td><td>connection</td><td>NodeRef → salesforce-connection [format: node-id]</td><td>是</td><td></td><td>Reference to salesforce-connection</td></tr>
|
|
36
36
|
<tr><td>查詢</td><td>query</td><td>TypedInput</td><td>是</td><td><code>{"type":"str","value":""}</code></td><td>Represents a Node-RED TypedInput value and its type.</td></tr>
|
|
37
37
|
<tr><td></td><td>errorPort</td><td>boolean</td><td>是</td><td><code>false</code></td><td></td></tr>
|
|
38
38
|
<tr><td></td><td>completePort</td><td>boolean</td><td>是</td><td><code>false</code></td><td></td></tr>
|
|
@@ -70,10 +70,10 @@
|
|
|
70
70
|
<table width="100%" style="min-width:500px">
|
|
71
71
|
<thead><tr><th>標籤</th><th>屬性</th><th>類型</th><th>必填</th><th>預設值</th><th style="width:35%">描述</th></tr></thead>
|
|
72
72
|
<tbody>
|
|
73
|
-
<tr><td
|
|
73
|
+
<tr><td>連線</td><td>connection</td><td>NodeRef → salesforce-connection [format: node-id]</td><td>是</td><td></td><td>Reference to salesforce-connection</td></tr>
|
|
74
74
|
<tr><td>操作</td><td>operation</td><td></td><td>是</td><td><code>"create"</code></td><td></td></tr>
|
|
75
75
|
<tr><td>SObject類型</td><td>sObjectType</td><td>TypedInput</td><td>是</td><td><code>{"type":"str","value":""}</code></td><td>Represents a Node-RED TypedInput value and its type.</td></tr>
|
|
76
|
-
<tr><td
|
|
76
|
+
<tr><td>記錄</td><td>record</td><td>TypedInput</td><td>是</td><td><code>{"type":"str","value":""}</code></td><td>Represents a Node-RED TypedInput value and its type.</td></tr>
|
|
77
77
|
<tr><td>外部ID欄位</td><td>externalIdField</td><td>string</td><td>否</td><td><code>""</code></td><td></td></tr>
|
|
78
78
|
<tr><td></td><td>errorPort</td><td>boolean</td><td>是</td><td><code>false</code></td><td></td></tr>
|
|
79
79
|
<tr><td></td><td>completePort</td><td>boolean</td><td>是</td><td><code>false</code></td><td></td></tr>
|
|
@@ -109,17 +109,18 @@
|
|
|
109
109
|
<table width="100%" style="min-width:500px">
|
|
110
110
|
<thead><tr><th>標籤</th><th>屬性</th><th>類型</th><th>必填</th><th>預設值</th><th style="width:35%">描述</th></tr></thead>
|
|
111
111
|
<tbody>
|
|
112
|
-
<tr><td
|
|
112
|
+
<tr><td>連線</td><td>connection</td><td>NodeRef → salesforce-connection [format: node-id]</td><td>是</td><td></td><td>Reference to salesforce-connection</td></tr>
|
|
113
113
|
<tr><td>操作</td><td>operation</td><td></td><td>是</td><td><code>"insert"</code></td><td></td></tr>
|
|
114
114
|
<tr><td>SObject類型</td><td>sObjectType</td><td>TypedInput</td><td>是</td><td><code>{"type":"str","value":""}</code></td><td>Represents a Node-RED TypedInput value and its type.</td></tr>
|
|
115
|
+
<tr><td>SOQL查詢</td><td>query</td><td>TypedInput</td><td>是</td><td><code>{"type":"str","value":""}</code></td><td>Represents a Node-RED TypedInput value and its type.</td></tr>
|
|
115
116
|
<tr><td>外部ID欄位</td><td>externalIdField</td><td>string</td><td>否</td><td><code>""</code></td><td></td></tr>
|
|
116
|
-
<tr><td
|
|
117
|
-
<tr><td
|
|
118
|
-
<tr><td
|
|
119
|
-
<tr><td
|
|
120
|
-
<tr><td
|
|
117
|
+
<tr><td>指派規則ID</td><td>assignmentRuleId</td><td>string</td><td>否</td><td><code>""</code></td><td></td></tr>
|
|
118
|
+
<tr><td>欄位分隔符</td><td>columnDelimiter</td><td></td><td>是</td><td><code>"COMMA"</code></td><td></td></tr>
|
|
119
|
+
<tr><td>行結尾</td><td>lineEnding</td><td></td><td>是</td><td><code>"LF"</code></td><td></td></tr>
|
|
120
|
+
<tr><td>輪詢間隔 (ms)</td><td>pollInterval</td><td>number [min: 1000]</td><td>是</td><td><code>5000</code></td><td></td></tr>
|
|
121
|
+
<tr><td>輪詢逾時 (ms)</td><td>pollTimeout</td><td>number [min: 5000]</td><td>是</td><td><code>60000</code></td><td></td></tr>
|
|
121
122
|
<tr><td></td><td>errorPort</td><td>boolean</td><td>是</td><td><code>false</code></td><td></td></tr>
|
|
122
|
-
<tr><td></td><td>completePort</td><td>boolean</td><td>是</td><td><code>
|
|
123
|
+
<tr><td></td><td>completePort</td><td>boolean</td><td>是</td><td><code>false</code></td><td></td></tr>
|
|
123
124
|
<tr><td></td><td>statusPort</td><td>boolean</td><td>是</td><td><code>false</code></td><td></td></tr>
|
|
124
125
|
</tbody>
|
|
125
126
|
</table>
|
|
@@ -130,7 +131,17 @@
|
|
|
130
131
|
<table width="100%" style="min-width:500px">
|
|
131
132
|
<thead><tr><th>標籤</th><th>屬性</th><th>類型</th><th>必填</th><th style="width:35%">描述</th></tr></thead>
|
|
132
133
|
<tbody>
|
|
133
|
-
<tr><td
|
|
134
|
+
<tr><td>記錄陣列、CSV字串、可讀串流(擷取)或觸發器(查詢)</td><td>payload</td><td></td><td>是</td><td>Records array, CSV string, readable stream (ingest) or SOQL string (query)</td></tr>
|
|
135
|
+
</tbody>
|
|
136
|
+
</table>
|
|
137
|
+
</div>
|
|
138
|
+
|
|
139
|
+
<h3>輸出</h3>
|
|
140
|
+
<div style="overflow-x:auto">
|
|
141
|
+
<table width="100%" style="min-width:500px">
|
|
142
|
+
<thead><tr><th>標籤</th><th>屬性</th><th>類型</th><th>必填</th><th style="width:35%">描述</th></tr></thead>
|
|
143
|
+
<tbody>
|
|
144
|
+
<tr><td>查詢:個別記錄。擷取:{ successfulResults, failedResults, unprocessedRecords }</td><td>payload</td><td></td><td>是</td><td>Query: individual record. Ingest: { successfulResults, failedResults, unprocessedRecords }</td></tr>
|
|
134
145
|
</tbody>
|
|
135
146
|
</table>
|
|
136
147
|
</div>
|
|
@@ -142,7 +153,7 @@
|
|
|
142
153
|
<table width="100%" style="min-width:500px">
|
|
143
154
|
<thead><tr><th>標籤</th><th>屬性</th><th>類型</th><th>必填</th><th>預設值</th><th style="width:35%">描述</th></tr></thead>
|
|
144
155
|
<tbody>
|
|
145
|
-
<tr><td
|
|
156
|
+
<tr><td>連線</td><td>connection</td><td>NodeRef → salesforce-connection [format: node-id]</td><td>是</td><td></td><td>Reference to salesforce-connection</td></tr>
|
|
146
157
|
<tr><td>SObject類型</td><td>sObjectType</td><td>TypedInput</td><td>是</td><td><code>{"type":"str","value":""}</code></td><td>Represents a Node-RED TypedInput value and its type.</td></tr>
|
|
147
158
|
<tr><td></td><td>errorPort</td><td>boolean</td><td>是</td><td><code>false</code></td><td></td></tr>
|
|
148
159
|
<tr><td></td><td>completePort</td><td>boolean</td><td>是</td><td><code>false</code></td><td></td></tr>
|
|
@@ -156,7 +167,7 @@
|
|
|
156
167
|
<table width="100%" style="min-width:500px">
|
|
157
168
|
<thead><tr><th>標籤</th><th>屬性</th><th>類型</th><th>必填</th><th style="width:35%">描述</th></tr></thead>
|
|
158
169
|
<tbody>
|
|
159
|
-
<tr><td
|
|
170
|
+
<tr><td>SObject API名稱(如果提供則覆蓋配置)</td><td>payload</td><td></td><td>是</td><td></td></tr>
|
|
160
171
|
</tbody>
|
|
161
172
|
</table>
|
|
162
173
|
</div>
|
|
@@ -166,7 +177,7 @@
|
|
|
166
177
|
<table width="100%" style="min-width:500px">
|
|
167
178
|
<thead><tr><th>標籤</th><th>屬性</th><th>類型</th><th>必填</th><th style="width:35%">描述</th></tr></thead>
|
|
168
179
|
<tbody>
|
|
169
|
-
<tr><td>SObject
|
|
180
|
+
<tr><td>SObject描述結果,包含欄位、子關聯和記錄類型資訊</td><td>payload</td><td>object</td><td>是</td><td></td></tr>
|
|
170
181
|
</tbody>
|
|
171
182
|
</table>
|
|
172
183
|
</div>
|
|
@@ -178,7 +189,7 @@
|
|
|
178
189
|
<table width="100%" style="min-width:500px">
|
|
179
190
|
<thead><tr><th>標籤</th><th>屬性</th><th>類型</th><th>必填</th><th>預設值</th><th style="width:35%">描述</th></tr></thead>
|
|
180
191
|
<tbody>
|
|
181
|
-
<tr><td
|
|
192
|
+
<tr><td>連線</td><td>connection</td><td>NodeRef → salesforce-connection [format: node-id]</td><td>是</td><td></td><td>Reference to salesforce-connection</td></tr>
|
|
182
193
|
<tr><td>頻道</td><td>channelName</td><td>string</td><td>是</td><td><code>""</code></td><td></td></tr>
|
|
183
194
|
<tr><td>訂閱起點</td><td>subscribeType</td><td></td><td>是</td><td><code>"LATEST"</code></td><td></td></tr>
|
|
184
195
|
<tr><td>重播ID</td><td>replayId</td><td>string</td><td>否</td><td><code>""</code></td><td></td></tr>
|
|
@@ -203,16 +214,58 @@
|
|
|
203
214
|
</table>
|
|
204
215
|
</div>
|
|
205
216
|
</script>
|
|
206
|
-
<script type="text/html" data-help-name="salesforce-apex">
|
|
207
|
-
<p>呼叫Salesforce
|
|
217
|
+
<script type="text/html" data-help-name="salesforce-apex-invocation">
|
|
218
|
+
<p>呼叫Salesforce組織中現有的Apex REST端點或Invocable Action。</p>
|
|
208
219
|
<h3>屬性</h3>
|
|
209
220
|
<div style="overflow-x:auto">
|
|
210
221
|
<table width="100%" style="min-width:500px">
|
|
211
222
|
<thead><tr><th>標籤</th><th>屬性</th><th>類型</th><th>必填</th><th>預設值</th><th style="width:35%">描述</th></tr></thead>
|
|
212
223
|
<tbody>
|
|
213
|
-
<tr><td
|
|
224
|
+
<tr><td>連線</td><td>connection</td><td>NodeRef → salesforce-connection [format: node-id]</td><td>是</td><td></td><td>Reference to salesforce-connection</td></tr>
|
|
225
|
+
<tr><td>類型</td><td>apexType</td><td></td><td>是</td><td><code>"rest"</code></td><td></td></tr>
|
|
214
226
|
<tr><td>方法</td><td>method</td><td></td><td>是</td><td><code>"POST"</code></td><td></td></tr>
|
|
215
|
-
<tr><td
|
|
227
|
+
<tr><td>端點</td><td>path</td><td>TypedInput</td><td>是</td><td><code>{"type":"str","value":""}</code></td><td>Represents a Node-RED TypedInput value and its type.</td></tr>
|
|
228
|
+
<tr><td>動作</td><td>actionName</td><td>string</td><td>是</td><td><code>""</code></td><td></td></tr>
|
|
229
|
+
<tr><td></td><td>errorPort</td><td>boolean</td><td>是</td><td><code>false</code></td><td></td></tr>
|
|
230
|
+
<tr><td></td><td>completePort</td><td>boolean</td><td>是</td><td><code>false</code></td><td></td></tr>
|
|
231
|
+
<tr><td></td><td>statusPort</td><td>boolean</td><td>是</td><td><code>false</code></td><td></td></tr>
|
|
232
|
+
</tbody>
|
|
233
|
+
</table>
|
|
234
|
+
</div>
|
|
235
|
+
|
|
236
|
+
<h3>輸入</h3>
|
|
237
|
+
<div style="overflow-x:auto">
|
|
238
|
+
<table width="100%" style="min-width:500px">
|
|
239
|
+
<thead><tr><th>標籤</th><th>屬性</th><th>類型</th><th>必填</th><th style="width:35%">描述</th></tr></thead>
|
|
240
|
+
<tbody>
|
|
241
|
+
<tr><td>POST/PUT/PATCH的請求主體,GET/DELETE時忽略</td><td>payload</td><td></td><td>是</td><td></td></tr>
|
|
242
|
+
</tbody>
|
|
243
|
+
</table>
|
|
244
|
+
</div>
|
|
245
|
+
|
|
246
|
+
<h3>輸出</h3>
|
|
247
|
+
<div style="overflow-x:auto">
|
|
248
|
+
<table width="100%" style="min-width:500px">
|
|
249
|
+
<thead><tr><th>標籤</th><th>屬性</th><th>類型</th><th>必填</th><th style="width:35%">描述</th></tr></thead>
|
|
250
|
+
<tbody>
|
|
251
|
+
<tr><td>Apex端點回應</td><td>payload</td><td></td><td>是</td><td></td></tr>
|
|
252
|
+
</tbody>
|
|
253
|
+
</table>
|
|
254
|
+
</div>
|
|
255
|
+
</script>
|
|
256
|
+
<script type="text/html" data-help-name="salesforce-apex-code">
|
|
257
|
+
<p>在Salesforce組織上部署並執行自訂Apex程式碼。支援Invocable和REST類型。</p>
|
|
258
|
+
<h3>屬性</h3>
|
|
259
|
+
<div style="overflow-x:auto">
|
|
260
|
+
<table width="100%" style="min-width:500px">
|
|
261
|
+
<thead><tr><th>標籤</th><th>屬性</th><th>類型</th><th>必填</th><th>預設值</th><th style="width:35%">描述</th></tr></thead>
|
|
262
|
+
<tbody>
|
|
263
|
+
<tr><td>連線</td><td>connection</td><td>NodeRef → salesforce-connection [format: node-id]</td><td>是</td><td></td><td>Reference to salesforce-connection</td></tr>
|
|
264
|
+
<tr><td>類型</td><td>apexType</td><td></td><td>是</td><td><code>"invocable"</code></td><td></td></tr>
|
|
265
|
+
<tr><td>類別名稱</td><td>className</td><td>string</td><td>是</td><td><code>""</code></td><td></td></tr>
|
|
266
|
+
<tr><td>URL對應</td><td>urlMapping</td><td>string</td><td>是</td><td><code>""</code></td><td></td></tr>
|
|
267
|
+
<tr><td>HTTP 方法</td><td>httpMethod</td><td></td><td>是</td><td><code>"HttpPost"</code></td><td></td></tr>
|
|
268
|
+
<tr><td>Apex程式碼</td><td>code</td><td>string</td><td>是</td><td><code>""</code></td><td></td></tr>
|
|
216
269
|
<tr><td></td><td>errorPort</td><td>boolean</td><td>是</td><td><code>false</code></td><td></td></tr>
|
|
217
270
|
<tr><td></td><td>completePort</td><td>boolean</td><td>是</td><td><code>false</code></td><td></td></tr>
|
|
218
271
|
<tr><td></td><td>statusPort</td><td>boolean</td><td>是</td><td><code>false</code></td><td></td></tr>
|
|
@@ -225,7 +278,7 @@
|
|
|
225
278
|
<table width="100%" style="min-width:500px">
|
|
226
279
|
<thead><tr><th>標籤</th><th>屬性</th><th>類型</th><th>必填</th><th style="width:35%">描述</th></tr></thead>
|
|
227
280
|
<tbody>
|
|
228
|
-
<tr><td
|
|
281
|
+
<tr><td>以JSON字串形式傳遞給Apex方法的輸入資料</td><td>payload</td><td></td><td>是</td><td></td></tr>
|
|
229
282
|
</tbody>
|
|
230
283
|
</table>
|
|
231
284
|
</div>
|
|
@@ -235,7 +288,7 @@
|
|
|
235
288
|
<table width="100%" style="min-width:500px">
|
|
236
289
|
<thead><tr><th>標籤</th><th>屬性</th><th>類型</th><th>必填</th><th style="width:35%">描述</th></tr></thead>
|
|
237
290
|
<tbody>
|
|
238
|
-
<tr><td>Apex
|
|
291
|
+
<tr><td>Apex執行回應</td><td>payload</td><td></td><td>是</td><td></td></tr>
|
|
239
292
|
</tbody>
|
|
240
293
|
</table>
|
|
241
294
|
</div>
|
package/locales/zh-TW/index.json
CHANGED
|
@@ -1,10 +1,45 @@
|
|
|
1
1
|
{
|
|
2
|
-
"salesforce-apex": {
|
|
2
|
+
"salesforce-apex-code": {
|
|
3
3
|
"configs": {
|
|
4
4
|
"name": "名稱",
|
|
5
|
-
"connection": "
|
|
5
|
+
"connection": "連線",
|
|
6
|
+
"apexType": "類型",
|
|
7
|
+
"className": "類別名稱",
|
|
8
|
+
"urlMapping": "URL對應",
|
|
9
|
+
"httpMethod": "HTTP 方法",
|
|
10
|
+
"code": "Apex程式碼"
|
|
11
|
+
},
|
|
12
|
+
"toggles": {
|
|
13
|
+
"validateInput": "驗證輸入",
|
|
14
|
+
"validateOutput": "驗證輸出",
|
|
15
|
+
"errorPort": "錯誤端口",
|
|
16
|
+
"completePort": "完成端口",
|
|
17
|
+
"statusPort": "狀態端口"
|
|
18
|
+
},
|
|
19
|
+
"$schema": "https://unpkg.com/@bonsae/nrg/schemas/labels.schema.json",
|
|
20
|
+
"label": "Apex Code",
|
|
21
|
+
"description": "在Salesforce組織上部署並執行自訂Apex程式碼。支援Invocable和REST類型。",
|
|
22
|
+
"inputLabels": "輸入",
|
|
23
|
+
"outputLabels": [
|
|
24
|
+
"回應"
|
|
25
|
+
],
|
|
26
|
+
"input": {
|
|
27
|
+
"payload": "以JSON字串形式傳遞給Apex方法的輸入資料"
|
|
28
|
+
},
|
|
29
|
+
"outputs": [
|
|
30
|
+
{
|
|
31
|
+
"payload": "Apex執行回應"
|
|
32
|
+
}
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
"salesforce-apex-invocation": {
|
|
36
|
+
"configs": {
|
|
37
|
+
"name": "名稱",
|
|
38
|
+
"connection": "連線",
|
|
39
|
+
"apexType": "類型",
|
|
6
40
|
"method": "方法",
|
|
7
|
-
"path": "
|
|
41
|
+
"path": "端點",
|
|
42
|
+
"actionName": "動作"
|
|
8
43
|
},
|
|
9
44
|
"toggles": {
|
|
10
45
|
"validateInput": "驗證輸入",
|
|
@@ -14,28 +49,34 @@
|
|
|
14
49
|
"statusPort": "狀態端口"
|
|
15
50
|
},
|
|
16
51
|
"$schema": "https://unpkg.com/@bonsae/nrg/schemas/labels.schema.json",
|
|
17
|
-
"label": "Apex",
|
|
18
|
-
"description": "呼叫Salesforce
|
|
52
|
+
"label": "Apex Invocation",
|
|
53
|
+
"description": "呼叫Salesforce組織中現有的Apex REST端點或Invocable Action。",
|
|
19
54
|
"inputLabels": "請求",
|
|
20
55
|
"outputLabels": [
|
|
21
56
|
"回應"
|
|
22
57
|
],
|
|
23
58
|
"input": {
|
|
24
|
-
"payload": "
|
|
59
|
+
"payload": "POST/PUT/PATCH的請求主體,GET/DELETE時忽略"
|
|
25
60
|
},
|
|
26
61
|
"outputs": [
|
|
27
62
|
{
|
|
28
|
-
"payload": "Apex
|
|
63
|
+
"payload": "Apex端點回應"
|
|
29
64
|
}
|
|
30
65
|
]
|
|
31
66
|
},
|
|
32
67
|
"salesforce-bulk": {
|
|
33
68
|
"configs": {
|
|
34
69
|
"name": "名稱",
|
|
35
|
-
"connection": "
|
|
70
|
+
"connection": "連線",
|
|
36
71
|
"operation": "操作",
|
|
37
72
|
"sObjectType": "SObject類型",
|
|
38
|
-
"
|
|
73
|
+
"query": "SOQL查詢",
|
|
74
|
+
"externalIdField": "外部ID欄位",
|
|
75
|
+
"assignmentRuleId": "指派規則ID",
|
|
76
|
+
"columnDelimiter": "欄位分隔符",
|
|
77
|
+
"lineEnding": "行結尾",
|
|
78
|
+
"pollInterval": "輪詢間隔 (ms)",
|
|
79
|
+
"pollTimeout": "輪詢逾時 (ms)"
|
|
39
80
|
},
|
|
40
81
|
"toggles": {
|
|
41
82
|
"validateInput": "驗證輸入",
|
|
@@ -53,11 +94,11 @@
|
|
|
53
94
|
"工作完成"
|
|
54
95
|
],
|
|
55
96
|
"input": {
|
|
56
|
-
"payload": "
|
|
97
|
+
"payload": "記錄陣列、CSV字串、可讀串流(擷取)或觸發器(查詢)"
|
|
57
98
|
},
|
|
58
99
|
"outputs": [
|
|
59
100
|
{
|
|
60
|
-
"payload": "
|
|
101
|
+
"payload": "查詢:個別記錄。擷取:{ successfulResults, failedResults, unprocessedRecords }"
|
|
61
102
|
}
|
|
62
103
|
]
|
|
63
104
|
},
|
|
@@ -88,7 +129,7 @@
|
|
|
88
129
|
"salesforce-describe": {
|
|
89
130
|
"configs": {
|
|
90
131
|
"name": "名稱",
|
|
91
|
-
"connection": "
|
|
132
|
+
"connection": "連線",
|
|
92
133
|
"sObjectType": "SObject類型"
|
|
93
134
|
},
|
|
94
135
|
"toggles": {
|
|
@@ -106,21 +147,22 @@
|
|
|
106
147
|
"SObject中繼資料"
|
|
107
148
|
],
|
|
108
149
|
"input": {
|
|
109
|
-
"payload": "
|
|
150
|
+
"payload": "SObject API名稱(如果提供則覆蓋配置)"
|
|
110
151
|
},
|
|
111
152
|
"outputs": [
|
|
112
153
|
{
|
|
113
|
-
"payload": "SObject
|
|
154
|
+
"payload": "SObject描述結果,包含欄位、子關聯和記錄類型資訊"
|
|
114
155
|
}
|
|
115
156
|
]
|
|
116
157
|
},
|
|
117
158
|
"salesforce-dml": {
|
|
118
159
|
"configs": {
|
|
119
160
|
"name": "名稱",
|
|
120
|
-
"connection": "
|
|
161
|
+
"connection": "連線",
|
|
121
162
|
"operation": "操作",
|
|
122
163
|
"sObjectType": "SObject類型",
|
|
123
|
-
"externalIdField": "外部ID欄位"
|
|
164
|
+
"externalIdField": "外部ID欄位",
|
|
165
|
+
"record": "記錄"
|
|
124
166
|
},
|
|
125
167
|
"toggles": {
|
|
126
168
|
"validateInput": "驗證輸入",
|
|
@@ -148,7 +190,7 @@
|
|
|
148
190
|
"salesforce-soql": {
|
|
149
191
|
"configs": {
|
|
150
192
|
"name": "名稱",
|
|
151
|
-
"connection": "
|
|
193
|
+
"connection": "連線",
|
|
152
194
|
"query": "查詢"
|
|
153
195
|
},
|
|
154
196
|
"toggles": {
|
|
@@ -179,7 +221,7 @@
|
|
|
179
221
|
"salesforce-streaming": {
|
|
180
222
|
"configs": {
|
|
181
223
|
"name": "名稱",
|
|
182
|
-
"connection": "
|
|
224
|
+
"connection": "連線",
|
|
183
225
|
"channelName": "頻道",
|
|
184
226
|
"subscribeType": "訂閱起點",
|
|
185
227
|
"replayId": "重播ID",
|