@uipath/uipath-typescript 1.2.1 → 1.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.
Files changed (40) hide show
  1. package/dist/assets/index.cjs +1 -1
  2. package/dist/assets/index.d.ts +2 -1
  3. package/dist/assets/index.mjs +1 -1
  4. package/dist/attachments/index.cjs +1944 -0
  5. package/dist/attachments/index.d.ts +399 -0
  6. package/dist/attachments/index.mjs +1941 -0
  7. package/dist/buckets/index.cjs +1 -1
  8. package/dist/buckets/index.d.ts +4 -2
  9. package/dist/buckets/index.mjs +1 -1
  10. package/dist/cases/index.cjs +95 -48
  11. package/dist/cases/index.d.ts +31 -2
  12. package/dist/cases/index.mjs +95 -48
  13. package/dist/conversational-agent/index.cjs +1 -1
  14. package/dist/conversational-agent/index.d.ts +10 -5
  15. package/dist/conversational-agent/index.mjs +1 -1
  16. package/dist/core/index.cjs +109 -17
  17. package/dist/core/index.d.ts +1 -1
  18. package/dist/core/index.mjs +109 -17
  19. package/dist/entities/index.cjs +11 -27
  20. package/dist/entities/index.d.ts +38 -26
  21. package/dist/entities/index.mjs +11 -27
  22. package/dist/index.cjs +683 -284
  23. package/dist/index.d.ts +549 -75
  24. package/dist/index.mjs +683 -285
  25. package/dist/index.umd.js +680 -281
  26. package/dist/jobs/index.cjs +2264 -0
  27. package/dist/jobs/index.d.ts +860 -0
  28. package/dist/jobs/index.mjs +2260 -0
  29. package/dist/maestro-processes/index.cjs +1 -1
  30. package/dist/maestro-processes/index.mjs +1 -1
  31. package/dist/processes/index.cjs +67 -1
  32. package/dist/processes/index.d.ts +80 -15
  33. package/dist/processes/index.mjs +68 -2
  34. package/dist/queues/index.cjs +1 -1
  35. package/dist/queues/index.d.ts +2 -1
  36. package/dist/queues/index.mjs +1 -1
  37. package/dist/tasks/index.cjs +1319 -1272
  38. package/dist/tasks/index.d.ts +331 -287
  39. package/dist/tasks/index.mjs +1319 -1272
  40. package/package.json +23 -2
@@ -1901,7 +1901,7 @@ const EntityFieldTypeMap = {
1901
1901
  // Connection string placeholder that will be replaced during build
1902
1902
  const CONNECTION_STRING = "InstrumentationKey=a6efa11d-1feb-4508-9738-e13e12dcae5e;IngestionEndpoint=https://westeurope-5.in.applicationinsights.azure.com/;LiveEndpoint=https://westeurope.livediagnostics.monitor.azure.com/;ApplicationId=7c58eb1c-9581-4ba6-839e-11725848a037";
1903
1903
  // SDK Version placeholder
1904
- const SDK_VERSION = "1.2.1";
1904
+ const SDK_VERSION = "1.3.0";
1905
1905
  const VERSION = "Version";
1906
1906
  const SERVICE = "Service";
1907
1907
  const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
@@ -2284,11 +2284,7 @@ class EntityService extends BaseService {
2284
2284
  expansionLevel: options.expansionLevel
2285
2285
  });
2286
2286
  const response = await this.get(DATA_FABRIC_ENDPOINTS.ENTITY.GET_RECORD_BY_ID(entityId, recordId), { params });
2287
- // Convert PascalCase response to camelCase
2288
- const camelResponse = pascalToCamelCaseKeys(response.data);
2289
- // Apply EntityMap transformations
2290
- const transformedResponse = transformData(camelResponse, EntityMap);
2291
- return transformedResponse;
2287
+ return response.data;
2292
2288
  }
2293
2289
  /**
2294
2290
  * Inserts a single record into an entity by entity ID
@@ -2321,9 +2317,7 @@ class EntityService extends BaseService {
2321
2317
  params,
2322
2318
  ...options
2323
2319
  });
2324
- // Convert PascalCase response to camelCase
2325
- const camelResponse = pascalToCamelCaseKeys(response.data);
2326
- return camelResponse;
2320
+ return response.data;
2327
2321
  }
2328
2322
  /**
2329
2323
  * Inserts data into an entity by entity ID using batch insert
@@ -2364,9 +2358,7 @@ class EntityService extends BaseService {
2364
2358
  params,
2365
2359
  ...options
2366
2360
  });
2367
- // Convert PascalCase response to camelCase
2368
- const camelResponse = pascalToCamelCaseKeys(response.data);
2369
- return camelResponse;
2361
+ return response.data;
2370
2362
  }
2371
2363
  /**
2372
2364
  * Updates a single record in an entity by entity ID
@@ -2400,9 +2392,7 @@ class EntityService extends BaseService {
2400
2392
  params,
2401
2393
  ...options
2402
2394
  });
2403
- // Convert PascalCase response to camelCase
2404
- const camelResponse = pascalToCamelCaseKeys(response.data);
2405
- return camelResponse;
2395
+ return response.data;
2406
2396
  }
2407
2397
  /**
2408
2398
  * Updates data in an entity by entity ID
@@ -2444,9 +2434,7 @@ class EntityService extends BaseService {
2444
2434
  params,
2445
2435
  ...options
2446
2436
  });
2447
- // Convert PascalCase response to camelCase
2448
- const camelResponse = pascalToCamelCaseKeys(response.data);
2449
- return camelResponse;
2437
+ return response.data;
2450
2438
  }
2451
2439
  /**
2452
2440
  * Deletes data from an entity by entity ID
@@ -2476,9 +2464,7 @@ class EntityService extends BaseService {
2476
2464
  params,
2477
2465
  ...options
2478
2466
  });
2479
- // Convert PascalCase response to camelCase
2480
- const camelResponse = pascalToCamelCaseKeys(response.data);
2481
- return camelResponse;
2467
+ return response.data;
2482
2468
  }
2483
2469
  /**
2484
2470
  * Gets all entities in the system
@@ -2530,7 +2516,7 @@ class EntityService extends BaseService {
2530
2516
  *
2531
2517
  * // Get the recordId from getAllRecords()
2532
2518
  * const records = await entities.getAllRecords(entityId);
2533
- * const recordId = records[0].id;
2519
+ * const recordId = records[0].Id;
2534
2520
  *
2535
2521
  * // Download attachment for a specific record and field
2536
2522
  * const blob = await entities.downloadAttachment(entityId, recordId, 'Documents');
@@ -2564,7 +2550,7 @@ class EntityService extends BaseService {
2564
2550
  *
2565
2551
  * // Get the recordId from getAllRecords()
2566
2552
  * const records = await entities.getAllRecords(entityId);
2567
- * const recordId = records[0].id;
2553
+ * const recordId = records[0].Id;
2568
2554
  *
2569
2555
  * // Upload a file attachment
2570
2556
  * const response = await entities.uploadAttachment(entityId, recordId, 'Documents', file);
@@ -2580,9 +2566,7 @@ class EntityService extends BaseService {
2580
2566
  }
2581
2567
  const params = createParams({ expansionLevel: options?.expansionLevel });
2582
2568
  const response = await this.post(DATA_FABRIC_ENDPOINTS.ENTITY.UPLOAD_ATTACHMENT(entityId, recordId, fieldName), formData, { params });
2583
- // Convert PascalCase response to camelCase
2584
- const camelResponse = pascalToCamelCaseKeys(response.data);
2585
- return camelResponse;
2569
+ return response.data;
2586
2570
  }
2587
2571
  /**
2588
2572
  * Removes an attachment from a File-type field of an entity record
@@ -2604,7 +2588,7 @@ class EntityService extends BaseService {
2604
2588
  *
2605
2589
  * // Get the recordId from getAllRecords()
2606
2590
  * const records = await entities.getAllRecords(entityId);
2607
- * const recordId = records[0].id;
2591
+ * const recordId = records[0].Id;
2608
2592
  *
2609
2593
  * // Delete attachment for a specific record and field
2610
2594
  * await entities.deleteAttachment(entityId, recordId, 'Documents');