@uipath/uipath-typescript 1.2.0 → 1.2.1

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.
@@ -1647,6 +1647,13 @@ function createEntityMethods(entityData, service) {
1647
1647
  throw new Error('Entity ID is undefined');
1648
1648
  return service.insertRecordsById(entityData.id, data, options);
1649
1649
  },
1650
+ async updateRecord(recordId, data, options) {
1651
+ if (!entityData.id)
1652
+ throw new Error('Entity ID is undefined');
1653
+ if (!recordId)
1654
+ throw new Error('Record ID is undefined');
1655
+ return service.updateRecordById(entityData.id, recordId, data, options);
1656
+ },
1650
1657
  async updateRecords(data, options) {
1651
1658
  if (!entityData.id)
1652
1659
  throw new Error('Entity ID is undefined');
@@ -1732,6 +1739,7 @@ const DATA_FABRIC_ENDPOINTS = {
1732
1739
  GET_RECORD_BY_ID: (entityId, recordId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/read/${recordId}`,
1733
1740
  INSERT_BY_ID: (entityId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/insert`,
1734
1741
  BATCH_INSERT_BY_ID: (entityId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/insert-batch`,
1742
+ UPDATE_RECORD_BY_ID: (entityId, recordId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/update/${recordId}`,
1735
1743
  UPDATE_BY_ID: (entityId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/update-batch`,
1736
1744
  DELETE_BY_ID: (entityId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/delete-batch`,
1737
1745
  DOWNLOAD_ATTACHMENT: (entityId, recordId, fieldName) => `${DATAFABRIC_BASE}/api/Attachment/entity/${entityId}/${recordId}/${fieldName}`,
@@ -1893,7 +1901,7 @@ const EntityFieldTypeMap = {
1893
1901
  // Connection string placeholder that will be replaced during build
1894
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";
1895
1903
  // SDK Version placeholder
1896
- const SDK_VERSION = "1.2.0";
1904
+ const SDK_VERSION = "1.2.1";
1897
1905
  const VERSION = "Version";
1898
1906
  const SERVICE = "Service";
1899
1907
  const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
@@ -2360,6 +2368,42 @@ class EntityService extends BaseService {
2360
2368
  const camelResponse = pascalToCamelCaseKeys(response.data);
2361
2369
  return camelResponse;
2362
2370
  }
2371
+ /**
2372
+ * Updates a single record in an entity by entity ID
2373
+ *
2374
+ * @param entityId - UUID of the entity
2375
+ * @param recordId - UUID of the record to update
2376
+ * @param data - Key-value pairs of fields to update
2377
+ * @param options - Update options
2378
+ * @returns Promise resolving to the updated record
2379
+ *
2380
+ * @example
2381
+ * ```typescript
2382
+ * import { Entities } from '@uipath/uipath-typescript/entities';
2383
+ *
2384
+ * const entities = new Entities(sdk);
2385
+ *
2386
+ * // Basic usage
2387
+ * const result = await entities.updateRecordById("<entityId>", "<recordId>", { name: "John Updated", age: 31 });
2388
+ *
2389
+ * // With options
2390
+ * const result = await entities.updateRecordById("<entityId>", "<recordId>", { name: "John Updated", age: 31 }, {
2391
+ * expansionLevel: 1
2392
+ * });
2393
+ * ```
2394
+ */
2395
+ async updateRecordById(entityId, recordId, data, options = {}) {
2396
+ const params = createParams({
2397
+ expansionLevel: options.expansionLevel
2398
+ });
2399
+ const response = await this.post(DATA_FABRIC_ENDPOINTS.ENTITY.UPDATE_RECORD_BY_ID(entityId, recordId), data, {
2400
+ params,
2401
+ ...options
2402
+ });
2403
+ // Convert PascalCase response to camelCase
2404
+ const camelResponse = pascalToCamelCaseKeys(response.data);
2405
+ return camelResponse;
2406
+ }
2363
2407
  /**
2364
2408
  * Updates data in an entity by entity ID
2365
2409
  *
@@ -2691,6 +2735,9 @@ __decorate([
2691
2735
  __decorate([
2692
2736
  track('Entities.InsertRecordsById')
2693
2737
  ], EntityService.prototype, "insertRecordsById", null);
2738
+ __decorate([
2739
+ track('Entities.UpdateRecordById')
2740
+ ], EntityService.prototype, "updateRecordById", null);
2694
2741
  __decorate([
2695
2742
  track('Entities.UpdateRecordsById')
2696
2743
  ], EntityService.prototype, "updateRecordsById", null);
package/dist/index.cjs CHANGED
@@ -4875,6 +4875,7 @@ const DATA_FABRIC_ENDPOINTS = {
4875
4875
  GET_RECORD_BY_ID: (entityId, recordId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/read/${recordId}`,
4876
4876
  INSERT_BY_ID: (entityId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/insert`,
4877
4877
  BATCH_INSERT_BY_ID: (entityId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/insert-batch`,
4878
+ UPDATE_RECORD_BY_ID: (entityId, recordId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/update/${recordId}`,
4878
4879
  UPDATE_BY_ID: (entityId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/update-batch`,
4879
4880
  DELETE_BY_ID: (entityId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/delete-batch`,
4880
4881
  DOWNLOAD_ATTACHMENT: (entityId, recordId, fieldName) => `${DATAFABRIC_BASE}/api/Attachment/entity/${entityId}/${recordId}/${fieldName}`,
@@ -5325,7 +5326,7 @@ function normalizeBaseUrl(url) {
5325
5326
  // Connection string placeholder that will be replaced during build
5326
5327
  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";
5327
5328
  // SDK Version placeholder
5328
- const SDK_VERSION = "1.2.0";
5329
+ const SDK_VERSION = "1.2.1";
5329
5330
  const VERSION = "Version";
5330
5331
  const SERVICE = "Service";
5331
5332
  const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
@@ -5856,6 +5857,15 @@ let UiPath$1 = class UiPath {
5856
5857
  __classPrivateFieldGet(this, _UiPath_authService, "f")?.logout();
5857
5858
  __classPrivateFieldSet(this, _UiPath_initialized, false, "f");
5858
5859
  }
5860
+ /**
5861
+ * Updates the access token used for API requests.
5862
+ * Use this to inject or refresh a token externally.
5863
+ *
5864
+ * @param tokenInfo - The token information containing the access token, type, expiration, and optional refresh token
5865
+ */
5866
+ updateToken(tokenInfo) {
5867
+ __classPrivateFieldGet(this, _UiPath_authService, "f")?.updateToken(tokenInfo);
5868
+ }
5859
5869
  };
5860
5870
  _UiPath_config = new WeakMap(), _UiPath_authService = new WeakMap(), _UiPath_initialized = new WeakMap(), _UiPath_partialConfig = new WeakMap(), _UiPath_instances = new WeakSet(), _UiPath_initializeWithConfig = function _UiPath_initializeWithConfig(config) {
5861
5871
  // Validate and normalize the configuration
@@ -7489,6 +7499,13 @@ function createEntityMethods(entityData, service) {
7489
7499
  throw new Error('Entity ID is undefined');
7490
7500
  return service.insertRecordsById(entityData.id, data, options);
7491
7501
  },
7502
+ async updateRecord(recordId, data, options) {
7503
+ if (!entityData.id)
7504
+ throw new Error('Entity ID is undefined');
7505
+ if (!recordId)
7506
+ throw new Error('Record ID is undefined');
7507
+ return service.updateRecordById(entityData.id, recordId, data, options);
7508
+ },
7492
7509
  async updateRecords(data, options) {
7493
7510
  if (!entityData.id)
7494
7511
  throw new Error('Entity ID is undefined');
@@ -7897,6 +7914,42 @@ class EntityService extends BaseService {
7897
7914
  const camelResponse = pascalToCamelCaseKeys(response.data);
7898
7915
  return camelResponse;
7899
7916
  }
7917
+ /**
7918
+ * Updates a single record in an entity by entity ID
7919
+ *
7920
+ * @param entityId - UUID of the entity
7921
+ * @param recordId - UUID of the record to update
7922
+ * @param data - Key-value pairs of fields to update
7923
+ * @param options - Update options
7924
+ * @returns Promise resolving to the updated record
7925
+ *
7926
+ * @example
7927
+ * ```typescript
7928
+ * import { Entities } from '@uipath/uipath-typescript/entities';
7929
+ *
7930
+ * const entities = new Entities(sdk);
7931
+ *
7932
+ * // Basic usage
7933
+ * const result = await entities.updateRecordById("<entityId>", "<recordId>", { name: "John Updated", age: 31 });
7934
+ *
7935
+ * // With options
7936
+ * const result = await entities.updateRecordById("<entityId>", "<recordId>", { name: "John Updated", age: 31 }, {
7937
+ * expansionLevel: 1
7938
+ * });
7939
+ * ```
7940
+ */
7941
+ async updateRecordById(entityId, recordId, data, options = {}) {
7942
+ const params = createParams({
7943
+ expansionLevel: options.expansionLevel
7944
+ });
7945
+ const response = await this.post(DATA_FABRIC_ENDPOINTS.ENTITY.UPDATE_RECORD_BY_ID(entityId, recordId), data, {
7946
+ params,
7947
+ ...options
7948
+ });
7949
+ // Convert PascalCase response to camelCase
7950
+ const camelResponse = pascalToCamelCaseKeys(response.data);
7951
+ return camelResponse;
7952
+ }
7900
7953
  /**
7901
7954
  * Updates data in an entity by entity ID
7902
7955
  *
@@ -8228,6 +8281,9 @@ __decorate([
8228
8281
  __decorate([
8229
8282
  track('Entities.InsertRecordsById')
8230
8283
  ], EntityService.prototype, "insertRecordsById", null);
8284
+ __decorate([
8285
+ track('Entities.UpdateRecordById')
8286
+ ], EntityService.prototype, "updateRecordById", null);
8231
8287
  __decorate([
8232
8288
  track('Entities.UpdateRecordsById')
8233
8289
  ], EntityService.prototype, "updateRecordsById", null);
package/dist/index.d.ts CHANGED
@@ -1,3 +1,13 @@
1
+ /**
2
+ * Authentication token information
3
+ */
4
+ interface TokenInfo {
5
+ token: string;
6
+ type: 'secret' | 'oauth';
7
+ expiresAt?: Date;
8
+ refreshToken?: string;
9
+ }
10
+
1
11
  interface BaseConfig {
2
12
  baseUrl: string;
3
13
  orgName: string;
@@ -64,6 +74,13 @@ interface IUiPath {
64
74
  * After calling this method, the user will need to re-initialize to authenticate again.
65
75
  */
66
76
  logout(): void;
77
+ /**
78
+ * Updates the access token used for API requests.
79
+ * Use this to inject or refresh a token externally.
80
+ *
81
+ * @param tokenInfo - The token information containing the access token, type, expiration, and optional refresh token
82
+ */
83
+ updateToken(tokenInfo: TokenInfo): void;
67
84
  }
68
85
 
69
86
  /**
@@ -134,6 +151,13 @@ declare class UiPath$1 implements IUiPath {
134
151
  * After calling this method, the user will need to re-initialize to authenticate again.
135
152
  */
136
153
  logout(): void;
154
+ /**
155
+ * Updates the access token used for API requests.
156
+ * Use this to inject or refresh a token externally.
157
+ *
158
+ * @param tokenInfo - The token information containing the access token, type, expiration, and optional refresh token
159
+ */
160
+ updateToken(tokenInfo: TokenInfo): void;
137
161
  }
138
162
 
139
163
  /**
@@ -504,9 +528,13 @@ type EntityBatchInsertOptions = EntityOperationOptions;
504
528
  * Options for inserting multiple records into an entity
505
529
  */
506
530
  type EntityInsertRecordsOptions = EntityOperationOptions;
531
+ /**
532
+ * Options for updating a single record in an entity
533
+ */
534
+ type EntityUpdateRecordOptions = EntityGetRecordByIdOptions;
507
535
  /**
508
536
  * Options for updating data in an entity
509
- * @deprecated Use {@link EntityUpdateRecordOptions} instead for better clarity on updating records in an entity. This type will be removed in future versions.
537
+ * @deprecated Use {@link EntityUpdateRecordsOptions} instead for better clarity on updating records in an entity. This type will be removed in future versions.
510
538
  */
511
539
  type EntityUpdateOptions = EntityOperationOptions;
512
540
  /**
@@ -567,6 +595,11 @@ interface EntityOperationResponse {
567
595
  * Returns the inserted record with its generated record ID and other fields
568
596
  */
569
597
  type EntityInsertResponse = EntityRecord;
598
+ /**
599
+ * Response from updating a single record in an entity
600
+ * Returns the updated record
601
+ */
602
+ type EntityUpdateRecordResponse = EntityRecord;
570
603
  /**
571
604
  * Response from batch inserting data into an entity
572
605
  */
@@ -963,9 +996,35 @@ interface EntityServiceModel {
963
996
  * @hidden
964
997
  */
965
998
  batchInsertById(id: string, data: Record<string, any>[], options?: EntityBatchInsertOptions): Promise<EntityBatchInsertResponse>;
999
+ /**
1000
+ * Updates a single record in an entity by entity ID
1001
+ *
1002
+ * Note: Data Fabric supports trigger events only on individual updates, not on updating multiple records.
1003
+ * Use this method if you need trigger events to fire for the updated record.
1004
+ *
1005
+ * @param entityId - UUID of the entity
1006
+ * @param recordId - UUID of the record to update
1007
+ * @param data - Key-value pairs of fields to update
1008
+ * @param options - Update options
1009
+ * @returns Promise resolving to the updated record
1010
+ * {@link EntityUpdateRecordResponse}
1011
+ * @example
1012
+ * ```typescript
1013
+ * // Basic usage
1014
+ * const result = await entities.updateRecordById(<entityId>, <recordId>, { name: "John Updated", age: 31 });
1015
+ *
1016
+ * // With options
1017
+ * const result = await entities.updateRecordById(<entityId>, <recordId>, { name: "John Updated", age: 31 }, {
1018
+ * expansionLevel: 1
1019
+ * });
1020
+ * ```
1021
+ */
1022
+ updateRecordById(entityId: string, recordId: string, data: Record<string, any>, options?: EntityUpdateRecordOptions): Promise<EntityUpdateRecordResponse>;
966
1023
  /**
967
1024
  * Updates data in an entity by entity ID
968
1025
  *
1026
+ * Note: Records updated using updateRecordsById will not trigger Data Fabric trigger events. Use {@link updateRecordById} if you need trigger events to fire for each updated record.
1027
+ *
969
1028
  * @param id - UUID of the entity
970
1029
  * @param data - Array of records to update. Each record MUST contain the record Id.
971
1030
  * @param options - Update options
@@ -1164,9 +1223,24 @@ interface EntityMethods {
1164
1223
  * @returns Promise resolving to batch insert response
1165
1224
  */
1166
1225
  insertRecords(data: Record<string, any>[], options?: EntityInsertRecordsOptions): Promise<EntityBatchInsertResponse>;
1226
+ /**
1227
+ * Update a single record in this entity
1228
+ *
1229
+ * Note: Data Fabric supports trigger events only on individual updates, not on updating multiple records.
1230
+ * Use this method if you need trigger events to fire for the updated record.
1231
+ *
1232
+ * @param recordId - UUID of the record to update
1233
+ * @param data - Key-value pairs of fields to update
1234
+ * @param options - Update options
1235
+ * @returns Promise resolving to the updated record
1236
+ */
1237
+ updateRecord(recordId: string, data: Record<string, any>, options?: EntityUpdateRecordOptions): Promise<EntityUpdateRecordResponse>;
1167
1238
  /**
1168
1239
  * Update data in this entity
1169
1240
  *
1241
+ * Note: Records updated using updateRecords will not trigger Data Fabric trigger events. Use {@link updateRecord} if you need
1242
+ * trigger events to fire for each updated record.
1243
+ *
1170
1244
  * @param data - Array of records to update. Each record MUST contain the record Id,
1171
1245
  * otherwise the update will fail.
1172
1246
  * @param options - Update options
@@ -1402,6 +1476,31 @@ declare class EntityService extends BaseService implements EntityServiceModel {
1402
1476
  * ```
1403
1477
  */
1404
1478
  insertRecordsById(id: string, data: Record<string, any>[], options?: EntityInsertRecordsOptions): Promise<EntityBatchInsertResponse>;
1479
+ /**
1480
+ * Updates a single record in an entity by entity ID
1481
+ *
1482
+ * @param entityId - UUID of the entity
1483
+ * @param recordId - UUID of the record to update
1484
+ * @param data - Key-value pairs of fields to update
1485
+ * @param options - Update options
1486
+ * @returns Promise resolving to the updated record
1487
+ *
1488
+ * @example
1489
+ * ```typescript
1490
+ * import { Entities } from '@uipath/uipath-typescript/entities';
1491
+ *
1492
+ * const entities = new Entities(sdk);
1493
+ *
1494
+ * // Basic usage
1495
+ * const result = await entities.updateRecordById("<entityId>", "<recordId>", { name: "John Updated", age: 31 });
1496
+ *
1497
+ * // With options
1498
+ * const result = await entities.updateRecordById("<entityId>", "<recordId>", { name: "John Updated", age: 31 }, {
1499
+ * expansionLevel: 1
1500
+ * });
1501
+ * ```
1502
+ */
1503
+ updateRecordById(entityId: string, recordId: string, data: Record<string, any>, options?: EntityUpdateRecordOptions): Promise<EntityUpdateRecordResponse>;
1405
1504
  /**
1406
1505
  * Updates data in an entity by entity ID
1407
1506
  *
@@ -9318,6 +9417,37 @@ interface ConversationServiceModel {
9318
9417
  * ```
9319
9418
  */
9320
9419
  uploadAttachment(id: string, file: File): Promise<ConversationAttachmentUploadResponse>;
9420
+ /**
9421
+ * Registers a file attachment for a conversation and returns a URI along with
9422
+ * pre-signed upload access details. Use the returned `fileUploadAccess` to upload
9423
+ * the file content to blob storage, then reference `uri` in subsequent messages.
9424
+ *
9425
+ * @param conversationId - The ID of the conversation to attach the file to
9426
+ * @param fileName - The name of the file to attach
9427
+ * @returns Promise resolving to {@link ConversationAttachmentCreateResponse} containing
9428
+ * the attachment `uri` and `fileUploadAccess` details needed to upload the file content
9429
+ *
9430
+ * @example <caption>Step 1 — Get the attachment URI and upload access</caption>
9431
+ * ```typescript
9432
+ * const { uri, fileUploadAccess } = await conversationalAgent.conversations.getAttachmentUploadUri(conversationId, 'report.pdf');
9433
+ * console.log(`Attachment URI: ${uri}`);
9434
+ * ```
9435
+ *
9436
+ * @example <caption>Step 2 — Upload the file content to the returned URL</caption>
9437
+ * ```typescript
9438
+ * const { uri, fileUploadAccess } = await conversationalAgent.conversations.getAttachmentUploadUri(conversationId, file.name);
9439
+ *
9440
+ * await fetch(fileUploadAccess.url, {
9441
+ * method: fileUploadAccess.verb,
9442
+ * body: file,
9443
+ * headers: { 'Content-Type': file.type },
9444
+ * });
9445
+ *
9446
+ * // Reference the URI in a message after upload
9447
+ * console.log(`File ready at: ${uri}`);
9448
+ * ```
9449
+ */
9450
+ getAttachmentUploadUri(conversationId: string, fileName: string): Promise<ConversationAttachmentCreateResponse>;
9321
9451
  /**
9322
9452
  * Starts a real-time chat session for a conversation
9323
9453
  *
@@ -10455,7 +10585,7 @@ declare const telemetryClient: TelemetryClient;
10455
10585
  * SDK Telemetry constants
10456
10586
  */
10457
10587
  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";
10458
- declare const SDK_VERSION = "1.2.0";
10588
+ declare const SDK_VERSION = "1.2.1";
10459
10589
  declare const VERSION = "Version";
10460
10590
  declare const SERVICE = "Service";
10461
10591
  declare const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
@@ -10471,4 +10601,4 @@ declare const SDK_RUN_EVENT = "Sdk.Run";
10471
10601
  declare const UNKNOWN = "";
10472
10602
 
10473
10603
  export { APP_NAME, AgentMap, AssetValueScope, AssetValueType, AuthenticationError, AuthorizationError, BucketOptions, CLOUD_CLIENT_ID, CLOUD_ORGANIZATION_NAME, CLOUD_REDIRECT_URI, CLOUD_ROLE_NAME, CLOUD_TENANT_NAME, CLOUD_URL, CONNECTION_STRING, CitationErrorType, ConversationMap, DEFAULT_ITEMS_FIELD, DEFAULT_PAGE_SIZE, DEFAULT_TOTAL_COUNT_FIELD, DataDirectionType, DebugMode, EntityFieldDataType, EntityType, ErrorType, EscalationActionType, EscalationRecipientScope, EscalationTriggerType, ExchangeMap, FeedbackRating, FieldDisplayType, HttpStatus, InputStreamSpeechSensitivity, InterruptType, JobPriority, JobState, JobType, JoinType, MAX_PAGE_SIZE, MessageMap, MessageRole, NetworkError, NotFoundError, PackageSourceType, PackageType, ProcessIncidentSeverity, ProcessIncidentStatus, ProcessIncidentType, RateLimitError, ReferenceType, RemoteControlAccess, RobotSize, SDK_LOGGER_NAME, SDK_RUN_EVENT, SDK_SERVICE_NAME, SDK_VERSION, SERVICE, SLADurationUnit, ServerError, SortOrder, StageTaskType, StartStrategy, StopStrategy, TargetFramework, TaskActivityType, TaskPriority, TaskSlaCriteria, TaskSlaStatus, TaskSourceName, TaskStatus, TaskType, UNKNOWN, UiPath, UiPathError, UiPathMetaTags, UserSettingsMap, VERSION, ValidationError, createAgentWithMethods, createCaseInstanceWithMethods, createConversationWithMethods, createEntityWithMethods, createProcessInstanceWithMethods, createProcessWithMethods, createTaskWithMethods, getAppBase, getAsset, getErrorDetails, getLimitedPageSize, isAuthenticationError, isAuthorizationError, isNetworkError, isNotFoundError, isRateLimitError, isServerError, isUiPathError, isValidationError, loadFromMetaTags, telemetryClient, track, trackEvent };
10474
- export type { AgentAppearance, AgentConversationServiceModel, AgentCreateConversationOptions, AgentGetByIdResponse, AgentGetResponse, AgentMethods, AgentStartingPrompt, ArgumentMetadata, AssetGetAllOptions, AssetGetByIdOptions, AssetGetResponse, AssetServiceModel, AsyncInputStream, AsyncInputStreamChunkEvent, AsyncInputStreamEndEvent, AsyncInputStreamEvent, AsyncInputStreamStartEvent, AsyncToolCallStream, BaseConfig, BaseOptions, BaseProcessStartRequest, BlobItem, BodyOptions, BpmnXmlString, BucketGetAllOptions, BucketGetByIdOptions, BucketGetFileMetaDataOptions, BucketGetFileMetaDataResponse, BucketGetFileMetaDataWithPaginationOptions, BucketGetReadUriOptions, BucketGetResponse, BucketGetUriOptions, BucketGetUriResponse, BucketServiceModel, BucketUploadFileOptions, BucketUploadResponse, CaseAppConfig, CaseAppOverview, CaseGetAllResponse, CaseGetStageResponse, CaseInstanceExecutionHistoryResponse, CaseInstanceGetAllOptions, CaseInstanceGetAllWithPaginationOptions, CaseInstanceGetResponse, CaseInstanceMethods, CaseInstanceOperationOptions, CaseInstanceOperationResponse, CaseInstanceReopenOptions, CaseInstanceRun, CaseInstancesServiceModel, CasesServiceModel, ChoiceSetGetAllResponse, ChoiceSetGetByIdOptions, ChoiceSetGetResponse, ChoiceSetServiceModel, Citation, CitationEndEvent, CitationError, CitationEvent, CitationOptions, CitationSource, CitationSourceBase, CitationSourceMedia, CitationSourceUrl, CitationStartEvent, CollectionResponse, CompletedContentPart, CompletedMessage, CompletedToolCall, ContentPart, ContentPartChunkEvent, ContentPartData, ContentPartEndEvent, ContentPartEvent, ContentPartGetResponse, ContentPartInterrupted, ContentPartStartEvent, ContentPartStartMetaData, ContentPartStream, ConversationAttachmentCreateResponse, ConversationAttachmentUploadResponse, ConversationCreateOptions, ConversationCreateResponse, ConversationDeleteResponse, ConversationEvent, ConversationExchangeServiceModel, ConversationGetAllOptions, ConversationGetResponse, ConversationJobStartOverrides, ConversationMethods, ConversationServiceModel, ConversationSessionMethods, ConversationSessionOptions, ConversationUpdateOptions, ConversationUpdateResponse, ConversationalAgentOptions, ConversationalAgentServiceModel, CreateFeedbackOptions, CustomKeyValuePair, ElementExecutionMetadata, ElementMetaData, ElementRunMetadata, EntityBatchInsertOptions, EntityBatchInsertResponse, EntityDeleteAttachmentResponse, EntityDeleteOptions, EntityDeleteRecordsOptions, EntityDeleteResponse, EntityFileType, EntityGetAllRecordsOptions, EntityGetRecordByIdOptions, EntityGetRecordsByIdOptions, EntityGetResponse, EntityInsertOptions, EntityInsertRecordOptions, EntityInsertRecordsOptions, EntityInsertResponse, EntityMethods, EntityOperationOptions, EntityOperationResponse, EntityRecord, EntityServiceModel, EntityUpdateOptions, EntityUpdateRecordsOptions, EntityUpdateResponse, EntityUploadAttachmentOptions, EntityUploadAttachmentResponse, ErrorEndEvent, ErrorEvent, ErrorStartEvent, EscalationAction, EscalationRecipient, EscalationRule, EscalationTriggerMetadata, Exchange, ExchangeEndEvent, ExchangeEvent, ExchangeGetAllOptions, ExchangeGetByIdOptions, ExchangeGetResponse, ExchangeServiceModel, ExchangeStartEvent, ExchangeStream, ExternalConnection, ExternalField, ExternalFieldMapping, ExternalObject, ExternalSourceFields, ExternalValue, FailureRecord, FeatureFlags, FeedbackCreateResponse, Field, FieldDataType, FieldMetaData, FileUploadAccess, FolderProperties, GenericInterruptStartEvent, GlobalVariableMetaData, HasPaginationOptions, Headers, HttpMethod, InlineOrExternalValue, InlineValue, Interrupt, InterruptEndEvent, InterruptEvent, InterruptStartEvent, JSONArray, JSONObject, JSONPrimitive, JSONValue, JobAttachment, JobError, LabelUpdatedEvent, Machine, MaestroProcessGetAllResponse, MaestroProcessesServiceModel, MakeOptional, MakeRequired, Message, MessageEndEvent, MessageEvent, MessageGetResponse, MessageServiceModel, MessageStartEvent, MessageStream, MetaData, MetaEvent, NonPaginatedResponse, OAuthFields, OperationResponse, PaginatedResponse, PaginationCursor, PaginationMetadata, PaginationMethodUnion, PaginationOptions, PartialUiPathConfig, ProcessGetAllOptions, ProcessGetByIdOptions, ProcessGetResponse, ProcessIncidentGetAllResponse, ProcessIncidentGetResponse, ProcessIncidentsServiceModel, ProcessInstanceExecutionHistoryResponse, ProcessInstanceGetAllOptions, ProcessInstanceGetAllWithPaginationOptions, ProcessInstanceGetResponse, ProcessInstanceGetVariablesOptions, ProcessInstanceGetVariablesResponse, ProcessInstanceMethods, ProcessInstanceOperationOptions, ProcessInstanceOperationResponse, ProcessInstanceRun, ProcessInstancesServiceModel, ProcessMethods, ProcessProperties, ProcessServiceModel, ProcessStartRequest, ProcessStartRequestWithKey, ProcessStartRequestWithName, ProcessStartResponse, QueryParams, QueueGetAllOptions, QueueGetByIdOptions, QueueGetResponse, QueueServiceModel, RawAgentGetByIdResponse, RawAgentGetResponse, RawCaseInstanceGetResponse, RawConversationGetResponse, RawEntityGetResponse, RawMaestroProcessGetAllResponse, RawProcessInstanceGetResponse, RawTaskCreateResponse, RawTaskGetResponse, RequestOptions, RequestSpec, ResponseDictionary, ResponseType, RetryOptions, RobotMetadata, SessionCapabilities, SessionEndEvent, SessionEndingEvent, SessionStartEvent, SessionStartedEvent, SessionStream, Simplify, SourceJoinCriteria, StageSLA, StageTask, Tag, TaskActivity, TaskAssignOptions, TaskAssignment, TaskAssignmentOptions, TaskAssignmentResponse, TaskBaseResponse, TaskCompleteOptions, TaskCompletionOptions, TaskCreateOptions, TaskCreateResponse, TaskGetAllOptions, TaskGetByIdOptions, TaskGetResponse, TaskGetUsersOptions, TaskMethods, TaskServiceModel, TaskSlaDetail, TaskSource, TasksUnassignOptions, TimeoutOptions, ToolCall, ToolCallConfirmationEndValue, ToolCallConfirmationInterruptStartEvent, ToolCallConfirmationValue, ToolCallEndEvent, ToolCallEvent, ToolCallInputValue, ToolCallOutputValue, ToolCallResult, ToolCallStartEvent, ToolCallStream, UiPathSDKConfig, UserLoginInfo, UserServiceModel, UserSettingsGetResponse, UserSettingsUpdateOptions, UserSettingsUpdateResponse };
10604
+ export type { AgentAppearance, AgentConversationServiceModel, AgentCreateConversationOptions, AgentGetByIdResponse, AgentGetResponse, AgentMethods, AgentStartingPrompt, ArgumentMetadata, AssetGetAllOptions, AssetGetByIdOptions, AssetGetResponse, AssetServiceModel, AsyncInputStream, AsyncInputStreamChunkEvent, AsyncInputStreamEndEvent, AsyncInputStreamEvent, AsyncInputStreamStartEvent, AsyncToolCallStream, BaseConfig, BaseOptions, BaseProcessStartRequest, BlobItem, BodyOptions, BpmnXmlString, BucketGetAllOptions, BucketGetByIdOptions, BucketGetFileMetaDataOptions, BucketGetFileMetaDataResponse, BucketGetFileMetaDataWithPaginationOptions, BucketGetReadUriOptions, BucketGetResponse, BucketGetUriOptions, BucketGetUriResponse, BucketServiceModel, BucketUploadFileOptions, BucketUploadResponse, CaseAppConfig, CaseAppOverview, CaseGetAllResponse, CaseGetStageResponse, CaseInstanceExecutionHistoryResponse, CaseInstanceGetAllOptions, CaseInstanceGetAllWithPaginationOptions, CaseInstanceGetResponse, CaseInstanceMethods, CaseInstanceOperationOptions, CaseInstanceOperationResponse, CaseInstanceReopenOptions, CaseInstanceRun, CaseInstancesServiceModel, CasesServiceModel, ChoiceSetGetAllResponse, ChoiceSetGetByIdOptions, ChoiceSetGetResponse, ChoiceSetServiceModel, Citation, CitationEndEvent, CitationError, CitationEvent, CitationOptions, CitationSource, CitationSourceBase, CitationSourceMedia, CitationSourceUrl, CitationStartEvent, CollectionResponse, CompletedContentPart, CompletedMessage, CompletedToolCall, ContentPart, ContentPartChunkEvent, ContentPartData, ContentPartEndEvent, ContentPartEvent, ContentPartGetResponse, ContentPartInterrupted, ContentPartStartEvent, ContentPartStartMetaData, ContentPartStream, ConversationAttachmentCreateResponse, ConversationAttachmentUploadResponse, ConversationCreateOptions, ConversationCreateResponse, ConversationDeleteResponse, ConversationEvent, ConversationExchangeServiceModel, ConversationGetAllOptions, ConversationGetResponse, ConversationJobStartOverrides, ConversationMethods, ConversationServiceModel, ConversationSessionMethods, ConversationSessionOptions, ConversationUpdateOptions, ConversationUpdateResponse, ConversationalAgentOptions, ConversationalAgentServiceModel, CreateFeedbackOptions, CustomKeyValuePair, ElementExecutionMetadata, ElementMetaData, ElementRunMetadata, EntityBatchInsertOptions, EntityBatchInsertResponse, EntityDeleteAttachmentResponse, EntityDeleteOptions, EntityDeleteRecordsOptions, EntityDeleteResponse, EntityFileType, EntityGetAllRecordsOptions, EntityGetRecordByIdOptions, EntityGetRecordsByIdOptions, EntityGetResponse, EntityInsertOptions, EntityInsertRecordOptions, EntityInsertRecordsOptions, EntityInsertResponse, EntityMethods, EntityOperationOptions, EntityOperationResponse, EntityRecord, EntityServiceModel, EntityUpdateOptions, EntityUpdateRecordOptions, EntityUpdateRecordResponse, EntityUpdateRecordsOptions, EntityUpdateResponse, EntityUploadAttachmentOptions, EntityUploadAttachmentResponse, ErrorEndEvent, ErrorEvent, ErrorStartEvent, EscalationAction, EscalationRecipient, EscalationRule, EscalationTriggerMetadata, Exchange, ExchangeEndEvent, ExchangeEvent, ExchangeGetAllOptions, ExchangeGetByIdOptions, ExchangeGetResponse, ExchangeServiceModel, ExchangeStartEvent, ExchangeStream, ExternalConnection, ExternalField, ExternalFieldMapping, ExternalObject, ExternalSourceFields, ExternalValue, FailureRecord, FeatureFlags, FeedbackCreateResponse, Field, FieldDataType, FieldMetaData, FileUploadAccess, FolderProperties, GenericInterruptStartEvent, GlobalVariableMetaData, HasPaginationOptions, Headers, HttpMethod, InlineOrExternalValue, InlineValue, Interrupt, InterruptEndEvent, InterruptEvent, InterruptStartEvent, JSONArray, JSONObject, JSONPrimitive, JSONValue, JobAttachment, JobError, LabelUpdatedEvent, Machine, MaestroProcessGetAllResponse, MaestroProcessesServiceModel, MakeOptional, MakeRequired, Message, MessageEndEvent, MessageEvent, MessageGetResponse, MessageServiceModel, MessageStartEvent, MessageStream, MetaData, MetaEvent, NonPaginatedResponse, OAuthFields, OperationResponse, PaginatedResponse, PaginationCursor, PaginationMetadata, PaginationMethodUnion, PaginationOptions, PartialUiPathConfig, ProcessGetAllOptions, ProcessGetByIdOptions, ProcessGetResponse, ProcessIncidentGetAllResponse, ProcessIncidentGetResponse, ProcessIncidentsServiceModel, ProcessInstanceExecutionHistoryResponse, ProcessInstanceGetAllOptions, ProcessInstanceGetAllWithPaginationOptions, ProcessInstanceGetResponse, ProcessInstanceGetVariablesOptions, ProcessInstanceGetVariablesResponse, ProcessInstanceMethods, ProcessInstanceOperationOptions, ProcessInstanceOperationResponse, ProcessInstanceRun, ProcessInstancesServiceModel, ProcessMethods, ProcessProperties, ProcessServiceModel, ProcessStartRequest, ProcessStartRequestWithKey, ProcessStartRequestWithName, ProcessStartResponse, QueryParams, QueueGetAllOptions, QueueGetByIdOptions, QueueGetResponse, QueueServiceModel, RawAgentGetByIdResponse, RawAgentGetResponse, RawCaseInstanceGetResponse, RawConversationGetResponse, RawEntityGetResponse, RawMaestroProcessGetAllResponse, RawProcessInstanceGetResponse, RawTaskCreateResponse, RawTaskGetResponse, RequestOptions, RequestSpec, ResponseDictionary, ResponseType, RetryOptions, RobotMetadata, SessionCapabilities, SessionEndEvent, SessionEndingEvent, SessionStartEvent, SessionStartedEvent, SessionStream, Simplify, SourceJoinCriteria, StageSLA, StageTask, Tag, TaskActivity, TaskAssignOptions, TaskAssignment, TaskAssignmentOptions, TaskAssignmentResponse, TaskBaseResponse, TaskCompleteOptions, TaskCompletionOptions, TaskCreateOptions, TaskCreateResponse, TaskGetAllOptions, TaskGetByIdOptions, TaskGetResponse, TaskGetUsersOptions, TaskMethods, TaskServiceModel, TaskSlaDetail, TaskSource, TasksUnassignOptions, TimeoutOptions, ToolCall, ToolCallConfirmationEndValue, ToolCallConfirmationInterruptStartEvent, ToolCallConfirmationValue, ToolCallEndEvent, ToolCallEvent, ToolCallInputValue, ToolCallOutputValue, ToolCallResult, ToolCallStartEvent, ToolCallStream, UiPathSDKConfig, UserLoginInfo, UserServiceModel, UserSettingsGetResponse, UserSettingsUpdateOptions, UserSettingsUpdateResponse };
package/dist/index.mjs CHANGED
@@ -4873,6 +4873,7 @@ const DATA_FABRIC_ENDPOINTS = {
4873
4873
  GET_RECORD_BY_ID: (entityId, recordId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/read/${recordId}`,
4874
4874
  INSERT_BY_ID: (entityId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/insert`,
4875
4875
  BATCH_INSERT_BY_ID: (entityId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/insert-batch`,
4876
+ UPDATE_RECORD_BY_ID: (entityId, recordId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/update/${recordId}`,
4876
4877
  UPDATE_BY_ID: (entityId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/update-batch`,
4877
4878
  DELETE_BY_ID: (entityId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/delete-batch`,
4878
4879
  DOWNLOAD_ATTACHMENT: (entityId, recordId, fieldName) => `${DATAFABRIC_BASE}/api/Attachment/entity/${entityId}/${recordId}/${fieldName}`,
@@ -5323,7 +5324,7 @@ function normalizeBaseUrl(url) {
5323
5324
  // Connection string placeholder that will be replaced during build
5324
5325
  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";
5325
5326
  // SDK Version placeholder
5326
- const SDK_VERSION = "1.2.0";
5327
+ const SDK_VERSION = "1.2.1";
5327
5328
  const VERSION = "Version";
5328
5329
  const SERVICE = "Service";
5329
5330
  const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
@@ -5854,6 +5855,15 @@ let UiPath$1 = class UiPath {
5854
5855
  __classPrivateFieldGet(this, _UiPath_authService, "f")?.logout();
5855
5856
  __classPrivateFieldSet(this, _UiPath_initialized, false, "f");
5856
5857
  }
5858
+ /**
5859
+ * Updates the access token used for API requests.
5860
+ * Use this to inject or refresh a token externally.
5861
+ *
5862
+ * @param tokenInfo - The token information containing the access token, type, expiration, and optional refresh token
5863
+ */
5864
+ updateToken(tokenInfo) {
5865
+ __classPrivateFieldGet(this, _UiPath_authService, "f")?.updateToken(tokenInfo);
5866
+ }
5857
5867
  };
5858
5868
  _UiPath_config = new WeakMap(), _UiPath_authService = new WeakMap(), _UiPath_initialized = new WeakMap(), _UiPath_partialConfig = new WeakMap(), _UiPath_instances = new WeakSet(), _UiPath_initializeWithConfig = function _UiPath_initializeWithConfig(config) {
5859
5869
  // Validate and normalize the configuration
@@ -7487,6 +7497,13 @@ function createEntityMethods(entityData, service) {
7487
7497
  throw new Error('Entity ID is undefined');
7488
7498
  return service.insertRecordsById(entityData.id, data, options);
7489
7499
  },
7500
+ async updateRecord(recordId, data, options) {
7501
+ if (!entityData.id)
7502
+ throw new Error('Entity ID is undefined');
7503
+ if (!recordId)
7504
+ throw new Error('Record ID is undefined');
7505
+ return service.updateRecordById(entityData.id, recordId, data, options);
7506
+ },
7490
7507
  async updateRecords(data, options) {
7491
7508
  if (!entityData.id)
7492
7509
  throw new Error('Entity ID is undefined');
@@ -7895,6 +7912,42 @@ class EntityService extends BaseService {
7895
7912
  const camelResponse = pascalToCamelCaseKeys(response.data);
7896
7913
  return camelResponse;
7897
7914
  }
7915
+ /**
7916
+ * Updates a single record in an entity by entity ID
7917
+ *
7918
+ * @param entityId - UUID of the entity
7919
+ * @param recordId - UUID of the record to update
7920
+ * @param data - Key-value pairs of fields to update
7921
+ * @param options - Update options
7922
+ * @returns Promise resolving to the updated record
7923
+ *
7924
+ * @example
7925
+ * ```typescript
7926
+ * import { Entities } from '@uipath/uipath-typescript/entities';
7927
+ *
7928
+ * const entities = new Entities(sdk);
7929
+ *
7930
+ * // Basic usage
7931
+ * const result = await entities.updateRecordById("<entityId>", "<recordId>", { name: "John Updated", age: 31 });
7932
+ *
7933
+ * // With options
7934
+ * const result = await entities.updateRecordById("<entityId>", "<recordId>", { name: "John Updated", age: 31 }, {
7935
+ * expansionLevel: 1
7936
+ * });
7937
+ * ```
7938
+ */
7939
+ async updateRecordById(entityId, recordId, data, options = {}) {
7940
+ const params = createParams({
7941
+ expansionLevel: options.expansionLevel
7942
+ });
7943
+ const response = await this.post(DATA_FABRIC_ENDPOINTS.ENTITY.UPDATE_RECORD_BY_ID(entityId, recordId), data, {
7944
+ params,
7945
+ ...options
7946
+ });
7947
+ // Convert PascalCase response to camelCase
7948
+ const camelResponse = pascalToCamelCaseKeys(response.data);
7949
+ return camelResponse;
7950
+ }
7898
7951
  /**
7899
7952
  * Updates data in an entity by entity ID
7900
7953
  *
@@ -8226,6 +8279,9 @@ __decorate([
8226
8279
  __decorate([
8227
8280
  track('Entities.InsertRecordsById')
8228
8281
  ], EntityService.prototype, "insertRecordsById", null);
8282
+ __decorate([
8283
+ track('Entities.UpdateRecordById')
8284
+ ], EntityService.prototype, "updateRecordById", null);
8229
8285
  __decorate([
8230
8286
  track('Entities.UpdateRecordsById')
8231
8287
  ], EntityService.prototype, "updateRecordsById", null);
package/dist/index.umd.js CHANGED
@@ -4877,6 +4877,7 @@
4877
4877
  GET_RECORD_BY_ID: (entityId, recordId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/read/${recordId}`,
4878
4878
  INSERT_BY_ID: (entityId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/insert`,
4879
4879
  BATCH_INSERT_BY_ID: (entityId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/insert-batch`,
4880
+ UPDATE_RECORD_BY_ID: (entityId, recordId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/update/${recordId}`,
4880
4881
  UPDATE_BY_ID: (entityId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/update-batch`,
4881
4882
  DELETE_BY_ID: (entityId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/delete-batch`,
4882
4883
  DOWNLOAD_ATTACHMENT: (entityId, recordId, fieldName) => `${DATAFABRIC_BASE}/api/Attachment/entity/${entityId}/${recordId}/${fieldName}`,
@@ -9082,7 +9083,7 @@
9082
9083
  // Connection string placeholder that will be replaced during build
9083
9084
  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";
9084
9085
  // SDK Version placeholder
9085
- const SDK_VERSION = "1.2.0";
9086
+ const SDK_VERSION = "1.2.1";
9086
9087
  const VERSION = "Version";
9087
9088
  const SERVICE = "Service";
9088
9089
  const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
@@ -9613,6 +9614,15 @@
9613
9614
  __classPrivateFieldGet(this, _UiPath_authService, "f")?.logout();
9614
9615
  __classPrivateFieldSet(this, _UiPath_initialized, false, "f");
9615
9616
  }
9617
+ /**
9618
+ * Updates the access token used for API requests.
9619
+ * Use this to inject or refresh a token externally.
9620
+ *
9621
+ * @param tokenInfo - The token information containing the access token, type, expiration, and optional refresh token
9622
+ */
9623
+ updateToken(tokenInfo) {
9624
+ __classPrivateFieldGet(this, _UiPath_authService, "f")?.updateToken(tokenInfo);
9625
+ }
9616
9626
  };
9617
9627
  _UiPath_config = new WeakMap(), _UiPath_authService = new WeakMap(), _UiPath_initialized = new WeakMap(), _UiPath_partialConfig = new WeakMap(), _UiPath_instances = new WeakSet(), _UiPath_initializeWithConfig = function _UiPath_initializeWithConfig(config) {
9618
9628
  // Validate and normalize the configuration
@@ -11246,6 +11256,13 @@
11246
11256
  throw new Error('Entity ID is undefined');
11247
11257
  return service.insertRecordsById(entityData.id, data, options);
11248
11258
  },
11259
+ async updateRecord(recordId, data, options) {
11260
+ if (!entityData.id)
11261
+ throw new Error('Entity ID is undefined');
11262
+ if (!recordId)
11263
+ throw new Error('Record ID is undefined');
11264
+ return service.updateRecordById(entityData.id, recordId, data, options);
11265
+ },
11249
11266
  async updateRecords(data, options) {
11250
11267
  if (!entityData.id)
11251
11268
  throw new Error('Entity ID is undefined');
@@ -11654,6 +11671,42 @@
11654
11671
  const camelResponse = pascalToCamelCaseKeys(response.data);
11655
11672
  return camelResponse;
11656
11673
  }
11674
+ /**
11675
+ * Updates a single record in an entity by entity ID
11676
+ *
11677
+ * @param entityId - UUID of the entity
11678
+ * @param recordId - UUID of the record to update
11679
+ * @param data - Key-value pairs of fields to update
11680
+ * @param options - Update options
11681
+ * @returns Promise resolving to the updated record
11682
+ *
11683
+ * @example
11684
+ * ```typescript
11685
+ * import { Entities } from '@uipath/uipath-typescript/entities';
11686
+ *
11687
+ * const entities = new Entities(sdk);
11688
+ *
11689
+ * // Basic usage
11690
+ * const result = await entities.updateRecordById("<entityId>", "<recordId>", { name: "John Updated", age: 31 });
11691
+ *
11692
+ * // With options
11693
+ * const result = await entities.updateRecordById("<entityId>", "<recordId>", { name: "John Updated", age: 31 }, {
11694
+ * expansionLevel: 1
11695
+ * });
11696
+ * ```
11697
+ */
11698
+ async updateRecordById(entityId, recordId, data, options = {}) {
11699
+ const params = createParams({
11700
+ expansionLevel: options.expansionLevel
11701
+ });
11702
+ const response = await this.post(DATA_FABRIC_ENDPOINTS.ENTITY.UPDATE_RECORD_BY_ID(entityId, recordId), data, {
11703
+ params,
11704
+ ...options
11705
+ });
11706
+ // Convert PascalCase response to camelCase
11707
+ const camelResponse = pascalToCamelCaseKeys(response.data);
11708
+ return camelResponse;
11709
+ }
11657
11710
  /**
11658
11711
  * Updates data in an entity by entity ID
11659
11712
  *
@@ -11985,6 +12038,9 @@
11985
12038
  __decorate([
11986
12039
  track('Entities.InsertRecordsById')
11987
12040
  ], EntityService.prototype, "insertRecordsById", null);
12041
+ __decorate([
12042
+ track('Entities.UpdateRecordById')
12043
+ ], EntityService.prototype, "updateRecordById", null);
11988
12044
  __decorate([
11989
12045
  track('Entities.UpdateRecordsById')
11990
12046
  ], EntityService.prototype, "updateRecordsById", null);
@@ -1732,7 +1732,7 @@ class BpmnHelpers {
1732
1732
  // Connection string placeholder that will be replaced during build
1733
1733
  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";
1734
1734
  // SDK Version placeholder
1735
- const SDK_VERSION = "1.2.0";
1735
+ const SDK_VERSION = "1.2.1";
1736
1736
  const VERSION = "Version";
1737
1737
  const SERVICE = "Service";
1738
1738
  const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
@@ -1730,7 +1730,7 @@ class BpmnHelpers {
1730
1730
  // Connection string placeholder that will be replaced during build
1731
1731
  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";
1732
1732
  // SDK Version placeholder
1733
- const SDK_VERSION = "1.2.0";
1733
+ const SDK_VERSION = "1.2.1";
1734
1734
  const VERSION = "Version";
1735
1735
  const SERVICE = "Service";
1736
1736
  const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
@@ -1712,7 +1712,7 @@ const PROCESS_ENDPOINTS = {
1712
1712
  // Connection string placeholder that will be replaced during build
1713
1713
  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";
1714
1714
  // SDK Version placeholder
1715
- const SDK_VERSION = "1.2.0";
1715
+ const SDK_VERSION = "1.2.1";
1716
1716
  const VERSION = "Version";
1717
1717
  const SERVICE = "Service";
1718
1718
  const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
@@ -1710,7 +1710,7 @@ const PROCESS_ENDPOINTS = {
1710
1710
  // Connection string placeholder that will be replaced during build
1711
1711
  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";
1712
1712
  // SDK Version placeholder
1713
- const SDK_VERSION = "1.2.0";
1713
+ const SDK_VERSION = "1.2.1";
1714
1714
  const VERSION = "Version";
1715
1715
  const SERVICE = "Service";
1716
1716
  const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";