@uipath/uipath-typescript 1.2.2 → 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.mjs +1 -1
- package/dist/attachments/index.cjs +1 -1
- package/dist/attachments/index.mjs +1 -1
- package/dist/buckets/index.cjs +1 -1
- package/dist/buckets/index.mjs +1 -1
- package/dist/cases/index.cjs +1 -1
- package/dist/cases/index.mjs +1 -1
- package/dist/conversational-agent/index.cjs +1 -1
- package/dist/conversational-agent/index.mjs +1 -1
- package/dist/core/index.cjs +1 -1
- package/dist/core/index.d.ts +1 -1
- package/dist/core/index.mjs +1 -1
- package/dist/entities/index.cjs +11 -27
- package/dist/entities/index.d.ts +13 -13
- package/dist/entities/index.mjs +11 -27
- package/dist/index.cjs +232 -95
- package/dist/index.d.ts +96 -20
- package/dist/index.mjs +232 -96
- package/dist/index.umd.js +232 -95
- package/dist/jobs/index.cjs +241 -13
- package/dist/jobs/index.d.ts +150 -14
- package/dist/jobs/index.mjs +241 -14
- package/dist/maestro-processes/index.cjs +1 -1
- package/dist/maestro-processes/index.mjs +1 -1
- package/dist/processes/index.cjs +1 -1
- package/dist/processes/index.mjs +1 -1
- package/dist/queues/index.cjs +1 -1
- package/dist/queues/index.mjs +1 -1
- package/dist/tasks/index.cjs +1 -1
- package/dist/tasks/index.mjs +1 -1
- package/package.json +1 -1
package/dist/assets/index.cjs
CHANGED
|
@@ -1675,7 +1675,7 @@ const AssetMap = {
|
|
|
1675
1675
|
// Connection string placeholder that will be replaced during build
|
|
1676
1676
|
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";
|
|
1677
1677
|
// SDK Version placeholder
|
|
1678
|
-
const SDK_VERSION = "1.
|
|
1678
|
+
const SDK_VERSION = "1.3.0";
|
|
1679
1679
|
const VERSION = "Version";
|
|
1680
1680
|
const SERVICE = "Service";
|
|
1681
1681
|
const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
|
package/dist/assets/index.mjs
CHANGED
|
@@ -1673,7 +1673,7 @@ const AssetMap = {
|
|
|
1673
1673
|
// Connection string placeholder that will be replaced during build
|
|
1674
1674
|
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";
|
|
1675
1675
|
// SDK Version placeholder
|
|
1676
|
-
const SDK_VERSION = "1.
|
|
1676
|
+
const SDK_VERSION = "1.3.0";
|
|
1677
1677
|
const VERSION = "Version";
|
|
1678
1678
|
const SERVICE = "Service";
|
|
1679
1679
|
const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
|
|
@@ -476,7 +476,7 @@ const BUCKET_TOKEN_PARAMS = {
|
|
|
476
476
|
// Connection string placeholder that will be replaced during build
|
|
477
477
|
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";
|
|
478
478
|
// SDK Version placeholder
|
|
479
|
-
const SDK_VERSION = "1.
|
|
479
|
+
const SDK_VERSION = "1.3.0";
|
|
480
480
|
const VERSION = "Version";
|
|
481
481
|
const SERVICE = "Service";
|
|
482
482
|
const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
|
|
@@ -474,7 +474,7 @@ const BUCKET_TOKEN_PARAMS = {
|
|
|
474
474
|
// Connection string placeholder that will be replaced during build
|
|
475
475
|
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";
|
|
476
476
|
// SDK Version placeholder
|
|
477
|
-
const SDK_VERSION = "1.
|
|
477
|
+
const SDK_VERSION = "1.3.0";
|
|
478
478
|
const VERSION = "Version";
|
|
479
479
|
const SERVICE = "Service";
|
|
480
480
|
const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
|
package/dist/buckets/index.cjs
CHANGED
|
@@ -1722,7 +1722,7 @@ const BucketMap = {
|
|
|
1722
1722
|
// Connection string placeholder that will be replaced during build
|
|
1723
1723
|
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";
|
|
1724
1724
|
// SDK Version placeholder
|
|
1725
|
-
const SDK_VERSION = "1.
|
|
1725
|
+
const SDK_VERSION = "1.3.0";
|
|
1726
1726
|
const VERSION = "Version";
|
|
1727
1727
|
const SERVICE = "Service";
|
|
1728
1728
|
const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
|
package/dist/buckets/index.mjs
CHANGED
|
@@ -1720,7 +1720,7 @@ const BucketMap = {
|
|
|
1720
1720
|
// Connection string placeholder that will be replaced during build
|
|
1721
1721
|
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";
|
|
1722
1722
|
// SDK Version placeholder
|
|
1723
|
-
const SDK_VERSION = "1.
|
|
1723
|
+
const SDK_VERSION = "1.3.0";
|
|
1724
1724
|
const VERSION = "Version";
|
|
1725
1725
|
const SERVICE = "Service";
|
|
1726
1726
|
const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
|
package/dist/cases/index.cjs
CHANGED
|
@@ -1832,7 +1832,7 @@ const MAESTRO_ENDPOINTS = {
|
|
|
1832
1832
|
// Connection string placeholder that will be replaced during build
|
|
1833
1833
|
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";
|
|
1834
1834
|
// SDK Version placeholder
|
|
1835
|
-
const SDK_VERSION = "1.
|
|
1835
|
+
const SDK_VERSION = "1.3.0";
|
|
1836
1836
|
const VERSION = "Version";
|
|
1837
1837
|
const SERVICE = "Service";
|
|
1838
1838
|
const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
|
package/dist/cases/index.mjs
CHANGED
|
@@ -1830,7 +1830,7 @@ const MAESTRO_ENDPOINTS = {
|
|
|
1830
1830
|
// Connection string placeholder that will be replaced during build
|
|
1831
1831
|
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";
|
|
1832
1832
|
// SDK Version placeholder
|
|
1833
|
-
const SDK_VERSION = "1.
|
|
1833
|
+
const SDK_VERSION = "1.3.0";
|
|
1834
1834
|
const VERSION = "Version";
|
|
1835
1835
|
const SERVICE = "Service";
|
|
1836
1836
|
const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
|
|
@@ -51,7 +51,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
51
51
|
// Connection string placeholder that will be replaced during build
|
|
52
52
|
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";
|
|
53
53
|
// SDK Version placeholder
|
|
54
|
-
const SDK_VERSION = "1.
|
|
54
|
+
const SDK_VERSION = "1.3.0";
|
|
55
55
|
const VERSION = "Version";
|
|
56
56
|
const SERVICE = "Service";
|
|
57
57
|
const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
|
|
@@ -49,7 +49,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
49
49
|
// Connection string placeholder that will be replaced during build
|
|
50
50
|
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";
|
|
51
51
|
// SDK Version placeholder
|
|
52
|
-
const SDK_VERSION = "1.
|
|
52
|
+
const SDK_VERSION = "1.3.0";
|
|
53
53
|
const VERSION = "Version";
|
|
54
54
|
const SERVICE = "Service";
|
|
55
55
|
const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
|
package/dist/core/index.cjs
CHANGED
|
@@ -5278,7 +5278,7 @@ function normalizeBaseUrl(url) {
|
|
|
5278
5278
|
// Connection string placeholder that will be replaced during build
|
|
5279
5279
|
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";
|
|
5280
5280
|
// SDK Version placeholder
|
|
5281
|
-
const SDK_VERSION = "1.
|
|
5281
|
+
const SDK_VERSION = "1.3.0";
|
|
5282
5282
|
const VERSION = "Version";
|
|
5283
5283
|
const SERVICE = "Service";
|
|
5284
5284
|
const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
|
package/dist/core/index.d.ts
CHANGED
|
@@ -519,7 +519,7 @@ declare const telemetryClient: TelemetryClient;
|
|
|
519
519
|
* SDK Telemetry constants
|
|
520
520
|
*/
|
|
521
521
|
declare 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";
|
|
522
|
-
declare const SDK_VERSION = "1.
|
|
522
|
+
declare const SDK_VERSION = "1.3.0";
|
|
523
523
|
declare const VERSION = "Version";
|
|
524
524
|
declare const SERVICE = "Service";
|
|
525
525
|
declare const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
|
package/dist/core/index.mjs
CHANGED
|
@@ -5276,7 +5276,7 @@ function normalizeBaseUrl(url) {
|
|
|
5276
5276
|
// Connection string placeholder that will be replaced during build
|
|
5277
5277
|
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";
|
|
5278
5278
|
// SDK Version placeholder
|
|
5279
|
-
const SDK_VERSION = "1.
|
|
5279
|
+
const SDK_VERSION = "1.3.0";
|
|
5280
5280
|
const VERSION = "Version";
|
|
5281
5281
|
const SERVICE = "Service";
|
|
5282
5282
|
const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
|
package/dist/entities/index.cjs
CHANGED
|
@@ -1903,7 +1903,7 @@ const EntityFieldTypeMap = {
|
|
|
1903
1903
|
// Connection string placeholder that will be replaced during build
|
|
1904
1904
|
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";
|
|
1905
1905
|
// SDK Version placeholder
|
|
1906
|
-
const SDK_VERSION = "1.
|
|
1906
|
+
const SDK_VERSION = "1.3.0";
|
|
1907
1907
|
const VERSION = "Version";
|
|
1908
1908
|
const SERVICE = "Service";
|
|
1909
1909
|
const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
|
|
@@ -2286,11 +2286,7 @@ class EntityService extends BaseService {
|
|
|
2286
2286
|
expansionLevel: options.expansionLevel
|
|
2287
2287
|
});
|
|
2288
2288
|
const response = await this.get(DATA_FABRIC_ENDPOINTS.ENTITY.GET_RECORD_BY_ID(entityId, recordId), { params });
|
|
2289
|
-
|
|
2290
|
-
const camelResponse = pascalToCamelCaseKeys(response.data);
|
|
2291
|
-
// Apply EntityMap transformations
|
|
2292
|
-
const transformedResponse = transformData(camelResponse, EntityMap);
|
|
2293
|
-
return transformedResponse;
|
|
2289
|
+
return response.data;
|
|
2294
2290
|
}
|
|
2295
2291
|
/**
|
|
2296
2292
|
* Inserts a single record into an entity by entity ID
|
|
@@ -2323,9 +2319,7 @@ class EntityService extends BaseService {
|
|
|
2323
2319
|
params,
|
|
2324
2320
|
...options
|
|
2325
2321
|
});
|
|
2326
|
-
|
|
2327
|
-
const camelResponse = pascalToCamelCaseKeys(response.data);
|
|
2328
|
-
return camelResponse;
|
|
2322
|
+
return response.data;
|
|
2329
2323
|
}
|
|
2330
2324
|
/**
|
|
2331
2325
|
* Inserts data into an entity by entity ID using batch insert
|
|
@@ -2366,9 +2360,7 @@ class EntityService extends BaseService {
|
|
|
2366
2360
|
params,
|
|
2367
2361
|
...options
|
|
2368
2362
|
});
|
|
2369
|
-
|
|
2370
|
-
const camelResponse = pascalToCamelCaseKeys(response.data);
|
|
2371
|
-
return camelResponse;
|
|
2363
|
+
return response.data;
|
|
2372
2364
|
}
|
|
2373
2365
|
/**
|
|
2374
2366
|
* Updates a single record in an entity by entity ID
|
|
@@ -2402,9 +2394,7 @@ class EntityService extends BaseService {
|
|
|
2402
2394
|
params,
|
|
2403
2395
|
...options
|
|
2404
2396
|
});
|
|
2405
|
-
|
|
2406
|
-
const camelResponse = pascalToCamelCaseKeys(response.data);
|
|
2407
|
-
return camelResponse;
|
|
2397
|
+
return response.data;
|
|
2408
2398
|
}
|
|
2409
2399
|
/**
|
|
2410
2400
|
* Updates data in an entity by entity ID
|
|
@@ -2446,9 +2436,7 @@ class EntityService extends BaseService {
|
|
|
2446
2436
|
params,
|
|
2447
2437
|
...options
|
|
2448
2438
|
});
|
|
2449
|
-
|
|
2450
|
-
const camelResponse = pascalToCamelCaseKeys(response.data);
|
|
2451
|
-
return camelResponse;
|
|
2439
|
+
return response.data;
|
|
2452
2440
|
}
|
|
2453
2441
|
/**
|
|
2454
2442
|
* Deletes data from an entity by entity ID
|
|
@@ -2478,9 +2466,7 @@ class EntityService extends BaseService {
|
|
|
2478
2466
|
params,
|
|
2479
2467
|
...options
|
|
2480
2468
|
});
|
|
2481
|
-
|
|
2482
|
-
const camelResponse = pascalToCamelCaseKeys(response.data);
|
|
2483
|
-
return camelResponse;
|
|
2469
|
+
return response.data;
|
|
2484
2470
|
}
|
|
2485
2471
|
/**
|
|
2486
2472
|
* Gets all entities in the system
|
|
@@ -2532,7 +2518,7 @@ class EntityService extends BaseService {
|
|
|
2532
2518
|
*
|
|
2533
2519
|
* // Get the recordId from getAllRecords()
|
|
2534
2520
|
* const records = await entities.getAllRecords(entityId);
|
|
2535
|
-
* const recordId = records[0].
|
|
2521
|
+
* const recordId = records[0].Id;
|
|
2536
2522
|
*
|
|
2537
2523
|
* // Download attachment for a specific record and field
|
|
2538
2524
|
* const blob = await entities.downloadAttachment(entityId, recordId, 'Documents');
|
|
@@ -2566,7 +2552,7 @@ class EntityService extends BaseService {
|
|
|
2566
2552
|
*
|
|
2567
2553
|
* // Get the recordId from getAllRecords()
|
|
2568
2554
|
* const records = await entities.getAllRecords(entityId);
|
|
2569
|
-
* const recordId = records[0].
|
|
2555
|
+
* const recordId = records[0].Id;
|
|
2570
2556
|
*
|
|
2571
2557
|
* // Upload a file attachment
|
|
2572
2558
|
* const response = await entities.uploadAttachment(entityId, recordId, 'Documents', file);
|
|
@@ -2582,9 +2568,7 @@ class EntityService extends BaseService {
|
|
|
2582
2568
|
}
|
|
2583
2569
|
const params = createParams({ expansionLevel: options?.expansionLevel });
|
|
2584
2570
|
const response = await this.post(DATA_FABRIC_ENDPOINTS.ENTITY.UPLOAD_ATTACHMENT(entityId, recordId, fieldName), formData, { params });
|
|
2585
|
-
|
|
2586
|
-
const camelResponse = pascalToCamelCaseKeys(response.data);
|
|
2587
|
-
return camelResponse;
|
|
2571
|
+
return response.data;
|
|
2588
2572
|
}
|
|
2589
2573
|
/**
|
|
2590
2574
|
* Removes an attachment from a File-type field of an entity record
|
|
@@ -2606,7 +2590,7 @@ class EntityService extends BaseService {
|
|
|
2606
2590
|
*
|
|
2607
2591
|
* // Get the recordId from getAllRecords()
|
|
2608
2592
|
* const records = await entities.getAllRecords(entityId);
|
|
2609
|
-
* const recordId = records[0].
|
|
2593
|
+
* const recordId = records[0].Id;
|
|
2610
2594
|
*
|
|
2611
2595
|
* // Delete attachment for a specific record and field
|
|
2612
2596
|
* await entities.deleteAttachment(entityId, recordId, 'Documents');
|
package/dist/entities/index.d.ts
CHANGED
|
@@ -313,7 +313,7 @@ interface EntityRecord {
|
|
|
313
313
|
/**
|
|
314
314
|
* Unique identifier for the record
|
|
315
315
|
*/
|
|
316
|
-
|
|
316
|
+
Id: string;
|
|
317
317
|
/**
|
|
318
318
|
* Additional dynamic fields for the entity
|
|
319
319
|
*/
|
|
@@ -774,7 +774,7 @@ interface EntityServiceModel {
|
|
|
774
774
|
* // First, get records to obtain the record ID
|
|
775
775
|
* const records = await entities.getAllRecords(<entityId>);
|
|
776
776
|
* // Get the recordId for the record
|
|
777
|
-
* const recordId = records.items[0].
|
|
777
|
+
* const recordId = records.items[0].Id;
|
|
778
778
|
* // Get the record
|
|
779
779
|
* const record = await entities.getRecordById(<entityId>, recordId);
|
|
780
780
|
*
|
|
@@ -886,14 +886,14 @@ interface EntityServiceModel {
|
|
|
886
886
|
* ```typescript
|
|
887
887
|
* // Basic usage
|
|
888
888
|
* const result = await entities.updateRecordsById(<entityId>, [
|
|
889
|
-
* {
|
|
890
|
-
* {
|
|
889
|
+
* { Id: "123", name: "John Updated", age: 31 },
|
|
890
|
+
* { Id: "456", name: "Jane Updated", age: 26 }
|
|
891
891
|
* ]);
|
|
892
892
|
*
|
|
893
893
|
* // With options
|
|
894
894
|
* const result = await entities.updateRecordsById(<entityId>, [
|
|
895
|
-
* {
|
|
896
|
-
* {
|
|
895
|
+
* { Id: "123", name: "John Updated", age: 31 },
|
|
896
|
+
* { Id: "456", name: "Jane Updated", age: 26 }
|
|
897
897
|
* ], {
|
|
898
898
|
* expansionLevel: 1,
|
|
899
899
|
* failOnFirst: true
|
|
@@ -944,7 +944,7 @@ interface EntityServiceModel {
|
|
|
944
944
|
* // First, get records to obtain the record ID
|
|
945
945
|
* const records = await entities.getAllRecords("<entityId>");
|
|
946
946
|
* // Get the recordId for the record that contains the attachment
|
|
947
|
-
* const recordId = records.items[0].
|
|
947
|
+
* const recordId = records.items[0].Id;
|
|
948
948
|
*
|
|
949
949
|
* // Get the entityId from getAll()
|
|
950
950
|
* const allEntities = await entities.getAll();
|
|
@@ -952,7 +952,7 @@ interface EntityServiceModel {
|
|
|
952
952
|
*
|
|
953
953
|
* // Get the recordId from getAllRecords()
|
|
954
954
|
* const records = await entities.getAllRecords(entityId);
|
|
955
|
-
* const recordId = records[0].
|
|
955
|
+
* const recordId = records[0].Id;
|
|
956
956
|
*
|
|
957
957
|
* // Download attachment using service method
|
|
958
958
|
* const response = await entities.downloadAttachment(entityId, recordId, 'Documents');
|
|
@@ -1004,7 +1004,7 @@ interface EntityServiceModel {
|
|
|
1004
1004
|
*
|
|
1005
1005
|
* // Get the recordId from getAllRecords()
|
|
1006
1006
|
* const records = await entities.getAllRecords(entityId);
|
|
1007
|
-
* const recordId = records[0].
|
|
1007
|
+
* const recordId = records[0].Id;
|
|
1008
1008
|
*
|
|
1009
1009
|
* // Browser: Upload a file from an input element
|
|
1010
1010
|
* const fileInput = document.getElementById('file-input') as HTMLInputElement;
|
|
@@ -1037,7 +1037,7 @@ interface EntityServiceModel {
|
|
|
1037
1037
|
*
|
|
1038
1038
|
* // Get the recordId from getAllRecords()
|
|
1039
1039
|
* const records = await entities.getAllRecords(entityId);
|
|
1040
|
-
* const recordId = records[0].
|
|
1040
|
+
* const recordId = records[0].Id;
|
|
1041
1041
|
*
|
|
1042
1042
|
* // Delete attachment for a specific record and field
|
|
1043
1043
|
* await entities.deleteAttachment(entityId, recordId, 'Documents');
|
|
@@ -1445,7 +1445,7 @@ declare class EntityService extends BaseService implements EntityServiceModel {
|
|
|
1445
1445
|
*
|
|
1446
1446
|
* // Get the recordId from getAllRecords()
|
|
1447
1447
|
* const records = await entities.getAllRecords(entityId);
|
|
1448
|
-
* const recordId = records[0].
|
|
1448
|
+
* const recordId = records[0].Id;
|
|
1449
1449
|
*
|
|
1450
1450
|
* // Download attachment for a specific record and field
|
|
1451
1451
|
* const blob = await entities.downloadAttachment(entityId, recordId, 'Documents');
|
|
@@ -1474,7 +1474,7 @@ declare class EntityService extends BaseService implements EntityServiceModel {
|
|
|
1474
1474
|
*
|
|
1475
1475
|
* // Get the recordId from getAllRecords()
|
|
1476
1476
|
* const records = await entities.getAllRecords(entityId);
|
|
1477
|
-
* const recordId = records[0].
|
|
1477
|
+
* const recordId = records[0].Id;
|
|
1478
1478
|
*
|
|
1479
1479
|
* // Upload a file attachment
|
|
1480
1480
|
* const response = await entities.uploadAttachment(entityId, recordId, 'Documents', file);
|
|
@@ -1501,7 +1501,7 @@ declare class EntityService extends BaseService implements EntityServiceModel {
|
|
|
1501
1501
|
*
|
|
1502
1502
|
* // Get the recordId from getAllRecords()
|
|
1503
1503
|
* const records = await entities.getAllRecords(entityId);
|
|
1504
|
-
* const recordId = records[0].
|
|
1504
|
+
* const recordId = records[0].Id;
|
|
1505
1505
|
*
|
|
1506
1506
|
* // Delete attachment for a specific record and field
|
|
1507
1507
|
* await entities.deleteAttachment(entityId, recordId, 'Documents');
|
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');
|