@uipath/integrationservice-sdk 1.201.0-preview.133 → 1.202.0-preview.134

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 CHANGED
@@ -239,17 +239,26 @@ const config = buildTriggerEssentialConfiguration(instanceParameters);
239
239
  ### Input Metadata & Multipart Extraction
240
240
 
241
241
  ```typescript
242
- import { extractMultipartParameters, buildInputMetadata } from "@uipath/integrationservice-sdk";
242
+ import {
243
+ buildInputMetadata,
244
+ extractMultipartParameters,
245
+ resolveMultipartOperationMetadata,
246
+ } from "@uipath/integrationservice-sdk";
243
247
 
244
248
  // Extract multipart parameters from IS method parameters
245
249
  const multipartParams = extractMultipartParameters(methodInfo.parameters);
246
250
 
251
+ // Resolve the exact request fields for direct HTTP execution
252
+ const multipart = resolveMultipartOperationMetadata(methodInfo.parameters);
253
+
247
254
  // Build inputMetadata for the node detail
248
255
  const inputMeta = buildInputMetadata(multipartParams, methodInfo.operation, methodInfo.pagination?.maxPageSize);
249
256
  ```
250
257
 
251
258
  **`extractMultipartParameters(params)`** — Filters IS metadata parameters where `type === "multipart"`.
252
259
 
260
+ **`resolveMultipartOperationMetadata(params)`** — Returns the declared JSON body field and file fields, including whether each file is required. It does not guess a body field for file-only metadata.
261
+
253
262
  **`buildInputMetadata(multipartParams, operation, maxPageSize?)`** — Builds `inputMetadata` with:
254
263
  - `type: "multipart"` + `multipart.bodyFieldName` when multipart params exist
255
264
  - `operation: "list"` + `pagination.maxPageSize` for list operations