@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 +10 -1
- package/dist/index.js +29328 -18888
- package/dist/src/client-factory.d.ts +30 -1
- package/dist/src/dap/index.d.ts +2 -2
- package/dist/src/dap/input-metadata.d.ts +17 -1
- package/dist/src/dap/types.d.ts +8 -0
- package/dist/src/index.d.ts +2 -1
- package/dist/src/metadata/resource-metadata.d.ts +39 -0
- package/package.json +2 -2
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 {
|
|
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
|