@bonsae/node-red-salesforce 0.4.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
@@ -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,13 +91,16 @@ 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
106
  input(msg: Input_2): Promise<void>;
@@ -107,9 +117,9 @@ columnDelimiter: TUnion<[TLiteral<"COMMA">, TLiteral<"TAB">, TLiteral<"PIPE">, T
107
117
  lineEnding: TUnion<[TLiteral<"LF">, TLiteral<"CRLF">]>;
108
118
  pollInterval: TNumber;
109
119
  pollTimeout: TNumber;
110
- emitError: TBoolean;
111
- emitComplete: TBoolean;
112
- emitStatus: TBoolean;
120
+ errorPort: TBoolean;
121
+ completePort: TBoolean;
122
+ statusPort: TBoolean;
113
123
  }>;
114
124
 
115
125
  export declare const SalesforceBulkInputSchema: Schema< {
@@ -142,7 +152,7 @@ refreshToken: TString;
142
152
  instanceUrl: TString;
143
153
  }>;
144
154
 
145
- 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> {
146
156
  static readonly type = "salesforce-describe";
147
157
  static readonly category = "salesforce";
148
158
  static readonly color: `#${string}`;
@@ -156,9 +166,9 @@ export declare const SalesforceDescribeConfigSchema: Schema< {
156
166
  name: TString;
157
167
  connection: TNodeRef<SalesforceConnection>;
158
168
  sObjectType: TTypedInput<string>;
159
- emitError: TBoolean;
160
- emitComplete: TBoolean;
161
- emitStatus: TBoolean;
169
+ errorPort: TBoolean;
170
+ completePort: TBoolean;
171
+ statusPort: TBoolean;
162
172
  }>;
163
173
 
164
174
  export declare const SalesforceDescribeInputSchema: Schema< {
@@ -174,7 +184,7 @@ recordTypeInfos: TArray<TAny>;
174
184
  }>;
175
185
  }>;
176
186
 
177
- 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> {
178
188
  static readonly type = "salesforce-dml";
179
189
  static readonly category = "salesforce";
180
190
  static readonly color: `#${string}`;
@@ -191,9 +201,9 @@ operation: TUnion<[TLiteral<"create">, TLiteral<"read">, TLiteral<"update">, TLi
191
201
  sObjectType: TTypedInput<string>;
192
202
  record: TTypedInput<any>;
193
203
  externalIdField: TOptional<TString>;
194
- emitError: TBoolean;
195
- emitComplete: TBoolean;
196
- emitStatus: TBoolean;
204
+ errorPort: TBoolean;
205
+ completePort: TBoolean;
206
+ statusPort: TBoolean;
197
207
  }>;
198
208
 
199
209
  export declare const SalesforceDmlInputSchema: Schema< {
@@ -204,7 +214,7 @@ export declare const SalesforceDmlOutputsSchema: Schema< {
204
214
  payload: TAny;
205
215
  }>;
206
216
 
207
- 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> {
208
218
  static readonly type = "salesforce-soql";
209
219
  static readonly category = "salesforce";
210
220
  static readonly color: `#${string}`;
@@ -218,6 +228,9 @@ export declare const SalesforceSoqlConfigSchema: Schema< {
218
228
  name: TString;
219
229
  connection: TNodeRef<SalesforceConnection>;
220
230
  query: TTypedInput<string>;
231
+ errorPort: TBoolean;
232
+ completePort: TBoolean;
233
+ statusPort: TBoolean;
221
234
  }>;
222
235
 
223
236
  export declare const SalesforceSoqlInputSchema: Schema< {
@@ -230,7 +243,7 @@ totalSize: TNumber;
230
243
  done: TBoolean;
231
244
  }>;
232
245
 
233
- 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> {
234
247
  static readonly type = "salesforce-streaming";
235
248
  static readonly category = "salesforce";
236
249
  static readonly color: `#${string}`;
@@ -256,8 +269,9 @@ channelName: TString;
256
269
  subscribeType: TUnion<[TLiteral<"LATEST">, TLiteral<"EARLIEST">, TLiteral<"CUSTOM">]>;
257
270
  replayId: TOptional<TString>;
258
271
  numRequested: TNumber;
259
- emitError: TBoolean;
260
- emitStatus: TBoolean;
272
+ errorPort: TBoolean;
273
+ completePort: TBoolean;
274
+ statusPort: TBoolean;
261
275
  }>;
262
276
 
263
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.BmVSYWAa.js" defer></script>
66
+ <script type="module" src="resources/@bonsae/node-red-salesforce/index.FDBQSjT7.js" defer></script>