@bonsae/node-red-salesforce 0.1.0 → 0.3.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/LICENSE +62 -0
- package/README.md +1 -1
- package/index.d.ts +18 -13
- package/index.html +65 -1
- package/index.mjs +446 -384
- package/index.mjs.map +1 -1
- package/locales/de/index.html +14 -0
- package/locales/en-US/index.html +14 -0
- package/locales/es-ES/index.html +14 -0
- package/locales/fr/index.html +14 -0
- package/locales/ja/index.html +14 -0
- package/locales/ko/index.html +14 -0
- package/locales/pt-BR/index.html +14 -0
- package/locales/ru/index.html +14 -0
- package/locales/zh-CN/index.html +14 -0
- package/locales/zh-TW/index.html +14 -0
- package/package.json +3 -3
- package/resources/index.e3npw131.js +1 -0
- package/resources/index.CfTW8fjc.js +0 -1
package/LICENSE
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
Business Source License 1.1
|
|
2
|
+
|
|
3
|
+
Licensor: Allan Oricil
|
|
4
|
+
Licensed Work: @bonsae/node-red-salesforce
|
|
5
|
+
|
|
6
|
+
Change Date: Four years from the date of each release
|
|
7
|
+
|
|
8
|
+
Change License: MIT License
|
|
9
|
+
|
|
10
|
+
Terms
|
|
11
|
+
|
|
12
|
+
The Licensed Work is provided under the terms of this Business Source
|
|
13
|
+
License (this "License"). The Licensed Work is the copyrighted work of
|
|
14
|
+
the Licensor as indicated above. Any use of the Licensed Work in
|
|
15
|
+
violation of this License will automatically terminate your rights under
|
|
16
|
+
this License for the current and all other versions of the Licensed Work.
|
|
17
|
+
|
|
18
|
+
Grant of Rights
|
|
19
|
+
|
|
20
|
+
The Licensor hereby grants you the right to copy, modify, create
|
|
21
|
+
derivative works, redistribute, and make non-production and personal use
|
|
22
|
+
of the Licensed Work.
|
|
23
|
+
|
|
24
|
+
If your use of the Licensed Work is for a Commercial Purpose, you must
|
|
25
|
+
obtain a commercial license from the Licensor. Contact the Licensor at
|
|
26
|
+
allanoricil@duck.com for commercial licensing terms.
|
|
27
|
+
|
|
28
|
+
"Commercial Purpose" means any use of the Licensed Work that is
|
|
29
|
+
primarily intended for or directed toward commercial advantage or
|
|
30
|
+
monetary compensation. This includes, but is not limited to:
|
|
31
|
+
|
|
32
|
+
- Use in software or services that are sold, licensed, or offered for
|
|
33
|
+
a fee
|
|
34
|
+
- Use in software or services that generate revenue, directly or
|
|
35
|
+
indirectly
|
|
36
|
+
- Use by a for-profit organization in production environments
|
|
37
|
+
|
|
38
|
+
The following uses are NOT considered Commercial Purpose:
|
|
39
|
+
|
|
40
|
+
- Personal projects and learning
|
|
41
|
+
- Academic and research use
|
|
42
|
+
- Non-profit organizations
|
|
43
|
+
- Evaluation and testing
|
|
44
|
+
- Contributing back to this project
|
|
45
|
+
|
|
46
|
+
Change Date and Change License
|
|
47
|
+
|
|
48
|
+
On the Change Date, or the fourth anniversary of the first publicly
|
|
49
|
+
available distribution of a specific version of the Licensed Work under
|
|
50
|
+
this License, whichever comes first, the Licensor hereby grants you
|
|
51
|
+
rights under the terms of the Change License, and the rights granted
|
|
52
|
+
under the Business Source License for that version terminate.
|
|
53
|
+
|
|
54
|
+
Disclaimer
|
|
55
|
+
|
|
56
|
+
THE LICENSED WORK IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
57
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
58
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
59
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
60
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
61
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
62
|
+
LICENSED WORK OR THE USE OR OTHER DEALINGS IN THE LICENSED WORK.
|
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<a href="https://bonsaedev.github.io/nrg/"><img src="https://img.shields.io/badge/built%20with-nrg-A80000.svg?labelColor=black&style=flat-square&logo=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAgMTAwIiB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCI+CiAgPGRlZnM+CiAgICA8bGluZWFyR3JhZGllbnQgaWQ9Im91dGxpbmVHcmFkaWVudCIgeDE9IjAlIiB5MT0iMCUiIHgyPSIxMDAlIiB5Mj0iMTAwJSI+CiAgICAgIDxzdG9wIG9mZnNldD0iMCUiIHN0eWxlPSJzdG9wLWNvbG9yOiAjODA4MDgwOyBzdG9wLW9wYWNpdHk6IDEiIC8+CiAgICAgIDxzdG9wIG9mZnNldD0iMTAwJSIgc3R5bGU9InN0b3AtY29sb3I6ICM0MDQwNDA7IHN0b3Atb3BhY2l0eTogMSIgLz4KICAgIDwvbGluZWFyR3JhZGllbnQ+CiAgICA8bGluZWFyR3JhZGllbnQgaWQ9ImhleGFnb25HcmFkaWVudCIgeDE9IjAlIiB5MT0iMCUiIHgyPSIxMDAlIiB5Mj0iMTAwJSI+CiAgICAgIDxzdG9wIG9mZnNldD0iMCUiIHN0eWxlPSJzdG9wLWNvbG9yOiAjQTgwMDAwOyBzdG9wLW9wYWNpdHk6IDEiIC8+CiAgICAgIDxzdG9wIG9mZnNldD0iMTAwJSIgc3R5bGU9InN0b3AtY29sb3I6ICM0QjAwMDA7IHN0b3Atb3BhY2l0eTogMSIgLz4KICAgIDwvbGluZWFyR3JhZGllbnQ+CiAgICA8bGluZWFyR3JhZGllbnQgaWQ9ImxpZ2h0bmluZ0dyYWRpZW50IiB4MT0iMCUiIHkxPSIwJSIgeDI9IjEwMCUiIHkyPSIxMDAlIj4KICAgICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3R5bGU9InN0b3AtY29sb3I6ICNmZmZmZmY7IHN0b3Atb3BhY2l0eTogMSIgLz4KICAgICAgPHN0b3Agb2Zmc2V0PSIxMDAlIiBzdHlsZT0ic3RvcC1jb2xvcjogI2UwZTBlMDsgc3RvcC1vcGFjaXR5OiAxIiAvPgogICAgPC9saW5lYXJHcmFkaWVudD4KICA8L2RlZnM+CiAgPHBvbHlnb24gcG9pbnRzPSI1MCwyIDk4LDI1IDk4LDc1IDUwLDk4IDMsNzUgMywyNSIgCiAgICAgICAgICAgc3Ryb2tlPSJ1cmwoI291dGxpbmVHcmFkaWVudCkiIHN0cm9rZS13aWR0aD0iNCIgZmlsbD0idXJsKCNoZXhhZ29uR3JhZGllbnQpIiAvPgoKICA8cGF0aCBkPSJNMzMgMGwxOS43OTcyIDM5LjQ1NzQtMjguNTAyMi0xMS4xMTg0TDc0IDk4IDUxLjA2MDggNDkuMzA1NCA3MSA1NloiIAogICAgICAgIGZpbGw9InVybCgjbGlnaHRuaW5nR3JhZGllbnQpIiBzdHJva2U9Im5vbmUiIC8+Cjwvc3ZnPgo=" alt="built with nrg"/></a>
|
|
2
2
|
<a href="https://www.npmjs.com/package/@bonsae/node-red-salesforce"><img alt="NPM Version" src="https://img.shields.io/npm/v/@bonsae/node-red-salesforce"></a>
|
|
3
3
|
<a href="https://github.com/bonsaedev/node-red-salesforce/actions/workflows/ci.yaml"><img src="https://github.com/bonsaedev/node-red-salesforce/actions/workflows/ci.yaml/badge.svg?branch=main" alt="build status"/></a>
|
|
4
|
-
<a href="https://socket.dev/npm/package/@bonsae/node-red-salesforce"><img src="https://socket.dev/api/badge/npm/package/@bonsae/node-red-salesforce" alt="socket badge"/></a>
|
|
4
|
+
<a href="https://socket.dev/npm/package/@bonsae/node-red-salesforce"><img src="https://socket.dev/api/badge/npm/package/@bonsae/node-red-salesforce?v=1" alt="socket badge"/></a>
|
|
5
5
|
<a href="https://codecov.io/gh/bonsaedev/node-red-salesforce"><img src="https://codecov.io/gh/bonsaedev/node-red-salesforce/graph/badge.svg" alt="codecov"/></a>
|
|
6
6
|
|
|
7
7
|
# @bonsae/node-red-salesforce
|
package/index.d.ts
CHANGED
|
@@ -60,8 +60,6 @@ export declare class SalesforceApex extends IONode<Config, any, Input, Output> {
|
|
|
60
60
|
static readonly type = "salesforce-apex";
|
|
61
61
|
static readonly category = "salesforce";
|
|
62
62
|
static readonly color: `#${string}`;
|
|
63
|
-
static readonly inputs = 1;
|
|
64
|
-
static readonly outputs = 1;
|
|
65
63
|
static readonly configSchema: Schema;
|
|
66
64
|
static readonly inputSchema: Schema;
|
|
67
65
|
static readonly outputsSchema: Schema;
|
|
@@ -73,6 +71,9 @@ name: TString;
|
|
|
73
71
|
connection: TNodeRef<SalesforceConnection>;
|
|
74
72
|
method: TUnion<[TLiteral<"GET">, TLiteral<"POST">, TLiteral<"PUT">, TLiteral<"PATCH">, TLiteral<"DELETE">]>;
|
|
75
73
|
path: TTypedInput<string>;
|
|
74
|
+
emitError: TBoolean;
|
|
75
|
+
emitComplete: TBoolean;
|
|
76
|
+
emitStatus: TBoolean;
|
|
76
77
|
}>;
|
|
77
78
|
|
|
78
79
|
export declare const SalesforceApexInputSchema: Schema< {
|
|
@@ -87,10 +88,9 @@ export declare class SalesforceBulk extends IONode<Config_3> {
|
|
|
87
88
|
static readonly type = "salesforce-bulk";
|
|
88
89
|
static readonly category = "salesforce";
|
|
89
90
|
static readonly color: `#${string}`;
|
|
90
|
-
static readonly inputs = 1;
|
|
91
|
-
static readonly outputs = 2;
|
|
92
91
|
static readonly configSchema: Schema;
|
|
93
92
|
static readonly inputSchema: Schema;
|
|
93
|
+
static readonly outputsSchema: Schema[];
|
|
94
94
|
private sendRecord;
|
|
95
95
|
private sendJobCreated;
|
|
96
96
|
private sendComplete;
|
|
@@ -110,6 +110,9 @@ pollInterval: TNumber;
|
|
|
110
110
|
pollTimeout: TNumber;
|
|
111
111
|
emitJobCreated: TBoolean;
|
|
112
112
|
outputs: TNumber;
|
|
113
|
+
emitError: TBoolean;
|
|
114
|
+
emitComplete: TBoolean;
|
|
115
|
+
emitStatus: TBoolean;
|
|
113
116
|
}>;
|
|
114
117
|
|
|
115
118
|
export declare const SalesforceBulkInputSchema: Schema< {
|
|
@@ -146,8 +149,6 @@ export declare class SalesforceDescribe extends IONode<Config_4, any, Input_3, O
|
|
|
146
149
|
static readonly type = "salesforce-describe";
|
|
147
150
|
static readonly category = "salesforce";
|
|
148
151
|
static readonly color: `#${string}`;
|
|
149
|
-
static readonly inputs = 1;
|
|
150
|
-
static readonly outputs = 1;
|
|
151
152
|
static readonly configSchema: Schema;
|
|
152
153
|
static readonly inputSchema: Schema;
|
|
153
154
|
static readonly outputsSchema: Schema;
|
|
@@ -158,6 +159,9 @@ export declare const SalesforceDescribeConfigSchema: Schema< {
|
|
|
158
159
|
name: TString;
|
|
159
160
|
connection: TNodeRef<SalesforceConnection>;
|
|
160
161
|
sObjectType: TTypedInput<string>;
|
|
162
|
+
emitError: TBoolean;
|
|
163
|
+
emitComplete: TBoolean;
|
|
164
|
+
emitStatus: TBoolean;
|
|
161
165
|
}>;
|
|
162
166
|
|
|
163
167
|
export declare const SalesforceDescribeInputSchema: Schema< {
|
|
@@ -177,8 +181,6 @@ export declare class SalesforceDml extends IONode<Config_5, any, Input_4, Output
|
|
|
177
181
|
static readonly type = "salesforce-dml";
|
|
178
182
|
static readonly category = "salesforce";
|
|
179
183
|
static readonly color: `#${string}`;
|
|
180
|
-
static readonly inputs = 1;
|
|
181
|
-
static readonly outputs = 1;
|
|
182
184
|
static readonly configSchema: Schema;
|
|
183
185
|
static readonly inputSchema: Schema;
|
|
184
186
|
static readonly outputsSchema: Schema;
|
|
@@ -192,6 +194,9 @@ operation: TUnion<[TLiteral<"create">, TLiteral<"read">, TLiteral<"update">, TLi
|
|
|
192
194
|
sObjectType: TTypedInput<string>;
|
|
193
195
|
record: TTypedInput<any>;
|
|
194
196
|
externalIdField: TOptional<TString>;
|
|
197
|
+
emitError: TBoolean;
|
|
198
|
+
emitComplete: TBoolean;
|
|
199
|
+
emitStatus: TBoolean;
|
|
195
200
|
}>;
|
|
196
201
|
|
|
197
202
|
export declare const SalesforceDmlInputSchema: Schema< {
|
|
@@ -206,8 +211,6 @@ export declare class SalesforceSoql extends IONode<Config_6, any, Input_5, Outpu
|
|
|
206
211
|
static readonly type = "salesforce-soql";
|
|
207
212
|
static readonly category = "salesforce";
|
|
208
213
|
static readonly color: `#${string}`;
|
|
209
|
-
static readonly inputs = 1;
|
|
210
|
-
static readonly outputs = 1;
|
|
211
214
|
static readonly configSchema: Schema;
|
|
212
215
|
static readonly inputSchema: Schema;
|
|
213
216
|
static readonly outputsSchema: Schema;
|
|
@@ -234,18 +237,18 @@ export declare class SalesforceStreaming extends IONode<Config_7, any, any, Outp
|
|
|
234
237
|
static readonly type = "salesforce-streaming";
|
|
235
238
|
static readonly category = "salesforce";
|
|
236
239
|
static readonly color: `#${string}`;
|
|
237
|
-
static readonly inputs = 0;
|
|
238
|
-
static readonly outputs = 1;
|
|
239
240
|
static readonly configSchema: Schema;
|
|
240
241
|
static readonly outputsSchema: Schema;
|
|
241
242
|
private client;
|
|
242
243
|
private reconnectAttempt;
|
|
243
244
|
private maxReconnectDelay;
|
|
245
|
+
private maxReconnectAttempts;
|
|
246
|
+
private grpcErrorHandler;
|
|
247
|
+
private stopped;
|
|
244
248
|
created(): Promise<void>;
|
|
245
249
|
private subscribe;
|
|
246
250
|
private scheduleReconnect;
|
|
247
251
|
private cleanup;
|
|
248
|
-
input(): Promise<void>;
|
|
249
252
|
closed(): Promise<void>;
|
|
250
253
|
}
|
|
251
254
|
|
|
@@ -256,6 +259,8 @@ channelName: TString;
|
|
|
256
259
|
subscribeType: TUnion<[TLiteral<"LATEST">, TLiteral<"EARLIEST">, TLiteral<"CUSTOM">]>;
|
|
257
260
|
replayId: TOptional<TString>;
|
|
258
261
|
numRequested: TNumber;
|
|
262
|
+
emitError: TBoolean;
|
|
263
|
+
emitStatus: TBoolean;
|
|
259
264
|
}>;
|
|
260
265
|
|
|
261
266
|
export declare const SalesforceStreamingOutputsSchema: Schema< {
|
package/index.html
CHANGED
|
@@ -1,2 +1,66 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
Business Source License 1.1
|
|
1
3
|
|
|
2
|
-
|
|
4
|
+
Licensor: Allan Oricil
|
|
5
|
+
Licensed Work: @bonsae/node-red-salesforce
|
|
6
|
+
|
|
7
|
+
Change Date: Four years from the date of each release
|
|
8
|
+
|
|
9
|
+
Change License: MIT License
|
|
10
|
+
|
|
11
|
+
Terms
|
|
12
|
+
|
|
13
|
+
The Licensed Work is provided under the terms of this Business Source
|
|
14
|
+
License (this "License"). The Licensed Work is the copyrighted work of
|
|
15
|
+
the Licensor as indicated above. Any use of the Licensed Work in
|
|
16
|
+
violation of this License will automatically terminate your rights under
|
|
17
|
+
this License for the current and all other versions of the Licensed Work.
|
|
18
|
+
|
|
19
|
+
Grant of Rights
|
|
20
|
+
|
|
21
|
+
The Licensor hereby grants you the right to copy, modify, create
|
|
22
|
+
derivative works, redistribute, and make non-production and personal use
|
|
23
|
+
of the Licensed Work.
|
|
24
|
+
|
|
25
|
+
If your use of the Licensed Work is for a Commercial Purpose, you must
|
|
26
|
+
obtain a commercial license from the Licensor. Contact the Licensor at
|
|
27
|
+
allanoricil@duck.com for commercial licensing terms.
|
|
28
|
+
|
|
29
|
+
"Commercial Purpose" means any use of the Licensed Work that is
|
|
30
|
+
primarily intended for or directed toward commercial advantage or
|
|
31
|
+
monetary compensation. This includes, but is not limited to:
|
|
32
|
+
|
|
33
|
+
- Use in software or services that are sold, licensed, or offered for
|
|
34
|
+
a fee
|
|
35
|
+
- Use in software or services that generate revenue, directly or
|
|
36
|
+
indirectly
|
|
37
|
+
- Use by a for-profit organization in production environments
|
|
38
|
+
|
|
39
|
+
The following uses are NOT considered Commercial Purpose:
|
|
40
|
+
|
|
41
|
+
- Personal projects and learning
|
|
42
|
+
- Academic and research use
|
|
43
|
+
- Non-profit organizations
|
|
44
|
+
- Evaluation and testing
|
|
45
|
+
- Contributing back to this project
|
|
46
|
+
|
|
47
|
+
Change Date and Change License
|
|
48
|
+
|
|
49
|
+
On the Change Date, or the fourth anniversary of the first publicly
|
|
50
|
+
available distribution of a specific version of the Licensed Work under
|
|
51
|
+
this License, whichever comes first, the Licensor hereby grants you
|
|
52
|
+
rights under the terms of the Change License, and the rights granted
|
|
53
|
+
under the Business Source License for that version terminate.
|
|
54
|
+
|
|
55
|
+
Disclaimer
|
|
56
|
+
|
|
57
|
+
THE LICENSED WORK IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
58
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
59
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
60
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
61
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
62
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
63
|
+
LICENSED WORK OR THE USE OR OTHER DEALINGS IN THE LICENSED WORK.
|
|
64
|
+
|
|
65
|
+
-->
|
|
66
|
+
<script type="module" src="resources/@bonsae/node-red-salesforce/index.e3npw131.js" defer></script>
|