@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.
- package/dist/assets/index.cjs +1 -1
- package/dist/assets/index.d.ts +2 -1
- package/dist/assets/index.mjs +1 -1
- package/dist/attachments/index.cjs +1944 -0
- package/dist/attachments/index.d.ts +399 -0
- package/dist/attachments/index.mjs +1941 -0
- package/dist/buckets/index.cjs +1 -1
- package/dist/buckets/index.d.ts +4 -2
- package/dist/buckets/index.mjs +1 -1
- package/dist/cases/index.cjs +95 -48
- package/dist/cases/index.d.ts +31 -2
- package/dist/cases/index.mjs +95 -48
- package/dist/conversational-agent/index.cjs +1 -1
- package/dist/conversational-agent/index.d.ts +10 -5
- package/dist/conversational-agent/index.mjs +1 -1
- package/dist/core/index.cjs +109 -17
- package/dist/core/index.d.ts +1 -1
- package/dist/core/index.mjs +109 -17
- package/dist/entities/index.cjs +11 -27
- package/dist/entities/index.d.ts +38 -26
- package/dist/entities/index.mjs +11 -27
- package/dist/index.cjs +683 -284
- package/dist/index.d.ts +549 -75
- package/dist/index.mjs +683 -285
- package/dist/index.umd.js +680 -281
- package/dist/jobs/index.cjs +2264 -0
- package/dist/jobs/index.d.ts +860 -0
- package/dist/jobs/index.mjs +2260 -0
- package/dist/maestro-processes/index.cjs +1 -1
- package/dist/maestro-processes/index.mjs +1 -1
- package/dist/processes/index.cjs +67 -1
- package/dist/processes/index.d.ts +80 -15
- package/dist/processes/index.mjs +68 -2
- package/dist/queues/index.cjs +1 -1
- package/dist/queues/index.d.ts +2 -1
- package/dist/queues/index.mjs +1 -1
- package/dist/tasks/index.cjs +1319 -1272
- package/dist/tasks/index.d.ts +331 -287
- package/dist/tasks/index.mjs +1319 -1272
- package/package.json +23 -2
package/dist/entities/index.mjs
CHANGED
|
@@ -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.
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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].
|
|
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].
|
|
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
|
-
|
|
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].
|
|
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');
|