@bonsae/node-red-salesforce 0.3.0 → 0.4.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.
package/index.d.ts CHANGED
@@ -5,17 +5,17 @@ import { IONode } from '@bonsae/nrg/server';
5
5
  import { ModuleDefinition } from '@bonsae/nrg/server';
6
6
  import { RED } from '@bonsae/nrg/server';
7
7
  import { Schema } from '@bonsae/nrg/server';
8
- import { TAny } from '@bonsae/nrg/server';
9
- import { TArray } from '@bonsae/nrg/server';
10
- import { TBoolean } from '@bonsae/nrg/server';
11
- import { TLiteral } from '@bonsae/nrg/server';
8
+ import { TAny } from '@sinclair/typebox';
9
+ import { TArray } from '@sinclair/typebox';
10
+ import { TBoolean } from '@sinclair/typebox';
11
+ import { TLiteral } from '@sinclair/typebox';
12
12
  import { TNodeRef } from '@bonsae/nrg/server';
13
- import { TNumber } from '@bonsae/nrg/server';
14
- import { TObject } from '@bonsae/nrg/server';
15
- import { TOptional } from '@bonsae/nrg/server';
16
- import { TString } from '@bonsae/nrg/server';
13
+ import { TNumber } from '@sinclair/typebox';
14
+ import { TObject } from '@sinclair/typebox';
15
+ import { TOptional } from '@sinclair/typebox';
16
+ import { TString } from '@sinclair/typebox';
17
17
  import { TTypedInput } from '@bonsae/nrg/server';
18
- import { TUnion } from '@bonsae/nrg/server';
18
+ import { TUnion } from '@sinclair/typebox';
19
19
 
20
20
  declare type Config = Infer<typeof SalesforceApexConfigSchema>;
21
21
 
@@ -48,13 +48,20 @@ declare type Input_5 = Infer<typeof SalesforceSoqlInputSchema>;
48
48
 
49
49
  declare type Output = Infer<typeof SalesforceApexOutputsSchema>;
50
50
 
51
- declare type Output_2 = Infer<typeof SalesforceDescribeOutputsSchema>;
51
+ declare type Output_2 = Infer<typeof outputsSchema>;
52
52
 
53
- declare type Output_3 = Infer<typeof SalesforceDmlOutputsSchema>;
53
+ declare type Output_3 = Infer<typeof SalesforceDescribeOutputsSchema>;
54
54
 
55
- declare type Output_4 = Infer<typeof SalesforceSoqlOutputsSchema>;
55
+ declare type Output_4 = Infer<typeof SalesforceDmlOutputsSchema>;
56
56
 
57
- declare type Output_5 = Infer<typeof SalesforceStreamingOutputsSchema>;
57
+ declare type Output_5 = Infer<typeof SalesforceSoqlOutputsSchema>;
58
+
59
+ declare type Output_6 = Infer<typeof SalesforceStreamingOutputsSchema>;
60
+
61
+ declare const outputsSchema: {
62
+ record: Schema<{}>;
63
+ jobCreated: Schema<{}>;
64
+ };
58
65
 
59
66
  export declare class SalesforceApex extends IONode<Config, any, Input, Output> {
60
67
  static readonly type = "salesforce-apex";
@@ -71,9 +78,9 @@ name: TString;
71
78
  connection: TNodeRef<SalesforceConnection>;
72
79
  method: TUnion<[TLiteral<"GET">, TLiteral<"POST">, TLiteral<"PUT">, TLiteral<"PATCH">, TLiteral<"DELETE">]>;
73
80
  path: TTypedInput<string>;
74
- emitError: TBoolean;
75
- emitComplete: TBoolean;
76
- emitStatus: TBoolean;
81
+ errorPort: TBoolean;
82
+ completePort: TBoolean;
83
+ statusPort: TBoolean;
77
84
  }>;
78
85
 
79
86
  export declare const SalesforceApexInputSchema: Schema< {
@@ -84,16 +91,18 @@ export declare const SalesforceApexOutputsSchema: Schema< {
84
91
  payload: TAny;
85
92
  }>;
86
93
 
87
- export declare class SalesforceBulk extends IONode<Config_3> {
94
+ export declare class SalesforceBulk extends IONode<Config_3, any, Input_2, Output_2> {
88
95
  static readonly type = "salesforce-bulk";
89
96
  static readonly category = "salesforce";
90
97
  static readonly color: `#${string}`;
91
98
  static readonly configSchema: Schema;
92
99
  static readonly inputSchema: Schema;
93
- static readonly outputsSchema: Schema[];
100
+ static readonly outputsSchema: {
101
+ record: Schema<{}>;
102
+ jobCreated: Schema<{}>;
103
+ };
94
104
  private sendRecord;
95
105
  private sendJobCreated;
96
- private sendComplete;
97
106
  input(msg: Input_2): Promise<void>;
98
107
  }
99
108
 
@@ -108,11 +117,9 @@ columnDelimiter: TUnion<[TLiteral<"COMMA">, TLiteral<"TAB">, TLiteral<"PIPE">, T
108
117
  lineEnding: TUnion<[TLiteral<"LF">, TLiteral<"CRLF">]>;
109
118
  pollInterval: TNumber;
110
119
  pollTimeout: TNumber;
111
- emitJobCreated: TBoolean;
112
- outputs: TNumber;
113
- emitError: TBoolean;
114
- emitComplete: TBoolean;
115
- emitStatus: TBoolean;
120
+ errorPort: TBoolean;
121
+ completePort: TBoolean;
122
+ statusPort: TBoolean;
116
123
  }>;
117
124
 
118
125
  export declare const SalesforceBulkInputSchema: Schema< {
@@ -145,7 +152,7 @@ refreshToken: TString;
145
152
  instanceUrl: TString;
146
153
  }>;
147
154
 
148
- export declare class SalesforceDescribe extends IONode<Config_4, any, Input_3, Output_2> {
155
+ export declare class SalesforceDescribe extends IONode<Config_4, any, Input_3, Output_3> {
149
156
  static readonly type = "salesforce-describe";
150
157
  static readonly category = "salesforce";
151
158
  static readonly color: `#${string}`;
@@ -159,9 +166,9 @@ export declare const SalesforceDescribeConfigSchema: Schema< {
159
166
  name: TString;
160
167
  connection: TNodeRef<SalesforceConnection>;
161
168
  sObjectType: TTypedInput<string>;
162
- emitError: TBoolean;
163
- emitComplete: TBoolean;
164
- emitStatus: TBoolean;
169
+ errorPort: TBoolean;
170
+ completePort: TBoolean;
171
+ statusPort: TBoolean;
165
172
  }>;
166
173
 
167
174
  export declare const SalesforceDescribeInputSchema: Schema< {
@@ -177,7 +184,7 @@ recordTypeInfos: TArray<TAny>;
177
184
  }>;
178
185
  }>;
179
186
 
180
- export declare class SalesforceDml extends IONode<Config_5, any, Input_4, Output_3> {
187
+ export declare class SalesforceDml extends IONode<Config_5, any, Input_4, Output_4> {
181
188
  static readonly type = "salesforce-dml";
182
189
  static readonly category = "salesforce";
183
190
  static readonly color: `#${string}`;
@@ -194,9 +201,9 @@ operation: TUnion<[TLiteral<"create">, TLiteral<"read">, TLiteral<"update">, TLi
194
201
  sObjectType: TTypedInput<string>;
195
202
  record: TTypedInput<any>;
196
203
  externalIdField: TOptional<TString>;
197
- emitError: TBoolean;
198
- emitComplete: TBoolean;
199
- emitStatus: TBoolean;
204
+ errorPort: TBoolean;
205
+ completePort: TBoolean;
206
+ statusPort: TBoolean;
200
207
  }>;
201
208
 
202
209
  export declare const SalesforceDmlInputSchema: Schema< {
@@ -207,7 +214,7 @@ export declare const SalesforceDmlOutputsSchema: Schema< {
207
214
  payload: TAny;
208
215
  }>;
209
216
 
210
- export declare class SalesforceSoql extends IONode<Config_6, any, Input_5, Output_4> {
217
+ export declare class SalesforceSoql extends IONode<Config_6, any, Input_5, Output_5> {
211
218
  static readonly type = "salesforce-soql";
212
219
  static readonly category = "salesforce";
213
220
  static readonly color: `#${string}`;
@@ -221,6 +228,9 @@ export declare const SalesforceSoqlConfigSchema: Schema< {
221
228
  name: TString;
222
229
  connection: TNodeRef<SalesforceConnection>;
223
230
  query: TTypedInput<string>;
231
+ errorPort: TBoolean;
232
+ completePort: TBoolean;
233
+ statusPort: TBoolean;
224
234
  }>;
225
235
 
226
236
  export declare const SalesforceSoqlInputSchema: Schema< {
@@ -233,7 +243,7 @@ totalSize: TNumber;
233
243
  done: TBoolean;
234
244
  }>;
235
245
 
236
- export declare class SalesforceStreaming extends IONode<Config_7, any, any, Output_5> {
246
+ export declare class SalesforceStreaming extends IONode<Config_7, any, any, Output_6> {
237
247
  static readonly type = "salesforce-streaming";
238
248
  static readonly category = "salesforce";
239
249
  static readonly color: `#${string}`;
@@ -259,8 +269,9 @@ channelName: TString;
259
269
  subscribeType: TUnion<[TLiteral<"LATEST">, TLiteral<"EARLIEST">, TLiteral<"CUSTOM">]>;
260
270
  replayId: TOptional<TString>;
261
271
  numRequested: TNumber;
262
- emitError: TBoolean;
263
- emitStatus: TBoolean;
272
+ errorPort: TBoolean;
273
+ completePort: TBoolean;
274
+ statusPort: TBoolean;
264
275
  }>;
265
276
 
266
277
  export declare const SalesforceStreamingOutputsSchema: Schema< {
package/index.html CHANGED
@@ -63,4 +63,4 @@ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
63
63
  LICENSED WORK OR THE USE OR OTHER DEALINGS IN THE LICENSED WORK.
64
64
 
65
65
  -->
66
- <script type="module" src="resources/@bonsae/node-red-salesforce/index.e3npw131.js" defer></script>
66
+ <script type="module" src="resources/@bonsae/node-red-salesforce/index.FDBQSjT7.js" defer></script>