@uipath/uipath-typescript 1.2.1 → 1.2.2
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 +1 -1
- package/dist/entities/index.d.ts +33 -21
- package/dist/entities/index.mjs +1 -1
- package/dist/index.cjs +569 -307
- package/dist/index.d.ts +468 -70
- package/dist/index.mjs +570 -308
- package/dist/index.umd.js +566 -304
- package/dist/jobs/index.cjs +2036 -0
- package/dist/jobs/index.d.ts +724 -0
- package/dist/jobs/index.mjs +2033 -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/core/index.cjs
CHANGED
|
@@ -4366,6 +4366,114 @@ function getErrorDetails(error) {
|
|
|
4366
4366
|
};
|
|
4367
4367
|
}
|
|
4368
4368
|
|
|
4369
|
+
/**
|
|
4370
|
+
* Types of tasks available in Action Center.
|
|
4371
|
+
* Each type determines the task's behavior, UI rendering, and completion requirements.
|
|
4372
|
+
*/
|
|
4373
|
+
var TaskType;
|
|
4374
|
+
(function (TaskType) {
|
|
4375
|
+
/** A form-based task that renders a UiPath form layout for user input */
|
|
4376
|
+
TaskType["Form"] = "FormTask";
|
|
4377
|
+
/** An externally managed task handled outside of Action Center */
|
|
4378
|
+
TaskType["External"] = "ExternalTask";
|
|
4379
|
+
/** A task powered by a UiPath App */
|
|
4380
|
+
TaskType["App"] = "AppTask";
|
|
4381
|
+
/** A document validation task for reviewing and correcting extracted document data */
|
|
4382
|
+
TaskType["DocumentValidation"] = "DocumentValidationTask";
|
|
4383
|
+
/** A document classification task for categorizing documents */
|
|
4384
|
+
TaskType["DocumentClassification"] = "DocumentClassificationTask";
|
|
4385
|
+
/** A data labeling task for annotating training data */
|
|
4386
|
+
TaskType["DataLabeling"] = "DataLabelingTask";
|
|
4387
|
+
})(TaskType || (TaskType = {}));
|
|
4388
|
+
var TaskPriority;
|
|
4389
|
+
(function (TaskPriority) {
|
|
4390
|
+
TaskPriority["Low"] = "Low";
|
|
4391
|
+
TaskPriority["Medium"] = "Medium";
|
|
4392
|
+
TaskPriority["High"] = "High";
|
|
4393
|
+
TaskPriority["Critical"] = "Critical";
|
|
4394
|
+
})(TaskPriority || (TaskPriority = {}));
|
|
4395
|
+
var TaskStatus;
|
|
4396
|
+
(function (TaskStatus) {
|
|
4397
|
+
TaskStatus["Unassigned"] = "Unassigned";
|
|
4398
|
+
TaskStatus["Pending"] = "Pending";
|
|
4399
|
+
TaskStatus["Completed"] = "Completed";
|
|
4400
|
+
})(TaskStatus || (TaskStatus = {}));
|
|
4401
|
+
var TaskSlaCriteria;
|
|
4402
|
+
(function (TaskSlaCriteria) {
|
|
4403
|
+
TaskSlaCriteria["TaskCreated"] = "TaskCreated";
|
|
4404
|
+
TaskSlaCriteria["TaskAssigned"] = "TaskAssigned";
|
|
4405
|
+
TaskSlaCriteria["TaskCompleted"] = "TaskCompleted";
|
|
4406
|
+
})(TaskSlaCriteria || (TaskSlaCriteria = {}));
|
|
4407
|
+
var TaskSlaStatus;
|
|
4408
|
+
(function (TaskSlaStatus) {
|
|
4409
|
+
TaskSlaStatus["OverdueLater"] = "OverdueLater";
|
|
4410
|
+
TaskSlaStatus["OverdueSoon"] = "OverdueSoon";
|
|
4411
|
+
TaskSlaStatus["Overdue"] = "Overdue";
|
|
4412
|
+
TaskSlaStatus["CompletedInTime"] = "CompletedInTime";
|
|
4413
|
+
})(TaskSlaStatus || (TaskSlaStatus = {}));
|
|
4414
|
+
var TaskSourceName;
|
|
4415
|
+
(function (TaskSourceName) {
|
|
4416
|
+
TaskSourceName["Agent"] = "Agent";
|
|
4417
|
+
TaskSourceName["Workflow"] = "Workflow";
|
|
4418
|
+
TaskSourceName["Maestro"] = "Maestro";
|
|
4419
|
+
TaskSourceName["Default"] = "Default";
|
|
4420
|
+
})(TaskSourceName || (TaskSourceName = {}));
|
|
4421
|
+
/**
|
|
4422
|
+
* Task activity types
|
|
4423
|
+
*/
|
|
4424
|
+
var TaskActivityType;
|
|
4425
|
+
(function (TaskActivityType) {
|
|
4426
|
+
TaskActivityType["Created"] = "Created";
|
|
4427
|
+
TaskActivityType["Assigned"] = "Assigned";
|
|
4428
|
+
TaskActivityType["Reassigned"] = "Reassigned";
|
|
4429
|
+
TaskActivityType["Unassigned"] = "Unassigned";
|
|
4430
|
+
TaskActivityType["Saved"] = "Saved";
|
|
4431
|
+
TaskActivityType["Forwarded"] = "Forwarded";
|
|
4432
|
+
TaskActivityType["Completed"] = "Completed";
|
|
4433
|
+
TaskActivityType["Commented"] = "Commented";
|
|
4434
|
+
TaskActivityType["Deleted"] = "Deleted";
|
|
4435
|
+
TaskActivityType["BulkSaved"] = "BulkSaved";
|
|
4436
|
+
TaskActivityType["BulkCompleted"] = "BulkCompleted";
|
|
4437
|
+
TaskActivityType["FirstOpened"] = "FirstOpened";
|
|
4438
|
+
})(TaskActivityType || (TaskActivityType = {}));
|
|
4439
|
+
|
|
4440
|
+
/**
|
|
4441
|
+
* Base path constants for different services
|
|
4442
|
+
*/
|
|
4443
|
+
const ORCHESTRATOR_BASE = 'orchestrator_';
|
|
4444
|
+
const IDENTITY_BASE = 'identity_';
|
|
4445
|
+
|
|
4446
|
+
/**
|
|
4447
|
+
* Orchestrator Service Endpoints
|
|
4448
|
+
*/
|
|
4449
|
+
/**
|
|
4450
|
+
* Task Service (Action Center) Endpoints
|
|
4451
|
+
*/
|
|
4452
|
+
const TASK_ENDPOINTS = {
|
|
4453
|
+
GET_TASK_FORM_BY_ID: `${ORCHESTRATOR_BASE}/forms/TaskForms/GetTaskFormById`,
|
|
4454
|
+
GET_GENERIC_TASK_BY_ID: `${ORCHESTRATOR_BASE}/tasks/GenericTasks/GetTaskDataById`,
|
|
4455
|
+
GET_APP_TASK_BY_ID: `${ORCHESTRATOR_BASE}/tasks/AppTasks/GetAppTaskById`,
|
|
4456
|
+
};
|
|
4457
|
+
|
|
4458
|
+
/**
|
|
4459
|
+
* Identity/Authentication Endpoints
|
|
4460
|
+
*/
|
|
4461
|
+
/**
|
|
4462
|
+
* Identity Service Endpoints
|
|
4463
|
+
*/
|
|
4464
|
+
const IDENTITY_ENDPOINTS = {
|
|
4465
|
+
TOKEN: `${IDENTITY_BASE}/connect/token`,
|
|
4466
|
+
AUTHORIZE: `${IDENTITY_BASE}/connect/authorize`,
|
|
4467
|
+
};
|
|
4468
|
+
|
|
4469
|
+
({
|
|
4470
|
+
[TaskType.Form]: TASK_ENDPOINTS.GET_TASK_FORM_BY_ID,
|
|
4471
|
+
[TaskType.App]: TASK_ENDPOINTS.GET_APP_TASK_BY_ID,
|
|
4472
|
+
[TaskType.DocumentValidation]: TASK_ENDPOINTS.GET_GENERIC_TASK_BY_ID,
|
|
4473
|
+
[TaskType.DocumentClassification]: TASK_ENDPOINTS.GET_GENERIC_TASK_BY_ID,
|
|
4474
|
+
[TaskType.External]: TASK_ENDPOINTS.GET_GENERIC_TASK_BY_ID,
|
|
4475
|
+
[TaskType.DataLabeling]: TASK_ENDPOINTS.GET_GENERIC_TASK_BY_ID,
|
|
4476
|
+
});
|
|
4369
4477
|
var ActionCenterEventNames;
|
|
4370
4478
|
(function (ActionCenterEventNames) {
|
|
4371
4479
|
ActionCenterEventNames["TOKENREFRESHED"] = "AC.tokenRefreshed";
|
|
@@ -4743,22 +4851,6 @@ class TokenManager {
|
|
|
4743
4851
|
}
|
|
4744
4852
|
}
|
|
4745
4853
|
|
|
4746
|
-
/**
|
|
4747
|
-
* Base path constants for different services
|
|
4748
|
-
*/
|
|
4749
|
-
const IDENTITY_BASE = 'identity_';
|
|
4750
|
-
|
|
4751
|
-
/**
|
|
4752
|
-
* Identity/Authentication Endpoints
|
|
4753
|
-
*/
|
|
4754
|
-
/**
|
|
4755
|
-
* Identity Service Endpoints
|
|
4756
|
-
*/
|
|
4757
|
-
const IDENTITY_ENDPOINTS = {
|
|
4758
|
-
TOKEN: `${IDENTITY_BASE}/connect/token`,
|
|
4759
|
-
AUTHORIZE: `${IDENTITY_BASE}/connect/authorize`,
|
|
4760
|
-
};
|
|
4761
|
-
|
|
4762
4854
|
class AuthService {
|
|
4763
4855
|
constructor(config, executionContext) {
|
|
4764
4856
|
// Only use stored OAuth context when completing an active callback (URL has ?code=).
|
|
@@ -5186,7 +5278,7 @@ function normalizeBaseUrl(url) {
|
|
|
5186
5278
|
// Connection string placeholder that will be replaced during build
|
|
5187
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";
|
|
5188
5280
|
// SDK Version placeholder
|
|
5189
|
-
const SDK_VERSION = "1.2.
|
|
5281
|
+
const SDK_VERSION = "1.2.2";
|
|
5190
5282
|
const VERSION = "Version";
|
|
5191
5283
|
const SERVICE = "Service";
|
|
5192
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.2.
|
|
522
|
+
declare const SDK_VERSION = "1.2.2";
|
|
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
|
@@ -4364,6 +4364,114 @@ function getErrorDetails(error) {
|
|
|
4364
4364
|
};
|
|
4365
4365
|
}
|
|
4366
4366
|
|
|
4367
|
+
/**
|
|
4368
|
+
* Types of tasks available in Action Center.
|
|
4369
|
+
* Each type determines the task's behavior, UI rendering, and completion requirements.
|
|
4370
|
+
*/
|
|
4371
|
+
var TaskType;
|
|
4372
|
+
(function (TaskType) {
|
|
4373
|
+
/** A form-based task that renders a UiPath form layout for user input */
|
|
4374
|
+
TaskType["Form"] = "FormTask";
|
|
4375
|
+
/** An externally managed task handled outside of Action Center */
|
|
4376
|
+
TaskType["External"] = "ExternalTask";
|
|
4377
|
+
/** A task powered by a UiPath App */
|
|
4378
|
+
TaskType["App"] = "AppTask";
|
|
4379
|
+
/** A document validation task for reviewing and correcting extracted document data */
|
|
4380
|
+
TaskType["DocumentValidation"] = "DocumentValidationTask";
|
|
4381
|
+
/** A document classification task for categorizing documents */
|
|
4382
|
+
TaskType["DocumentClassification"] = "DocumentClassificationTask";
|
|
4383
|
+
/** A data labeling task for annotating training data */
|
|
4384
|
+
TaskType["DataLabeling"] = "DataLabelingTask";
|
|
4385
|
+
})(TaskType || (TaskType = {}));
|
|
4386
|
+
var TaskPriority;
|
|
4387
|
+
(function (TaskPriority) {
|
|
4388
|
+
TaskPriority["Low"] = "Low";
|
|
4389
|
+
TaskPriority["Medium"] = "Medium";
|
|
4390
|
+
TaskPriority["High"] = "High";
|
|
4391
|
+
TaskPriority["Critical"] = "Critical";
|
|
4392
|
+
})(TaskPriority || (TaskPriority = {}));
|
|
4393
|
+
var TaskStatus;
|
|
4394
|
+
(function (TaskStatus) {
|
|
4395
|
+
TaskStatus["Unassigned"] = "Unassigned";
|
|
4396
|
+
TaskStatus["Pending"] = "Pending";
|
|
4397
|
+
TaskStatus["Completed"] = "Completed";
|
|
4398
|
+
})(TaskStatus || (TaskStatus = {}));
|
|
4399
|
+
var TaskSlaCriteria;
|
|
4400
|
+
(function (TaskSlaCriteria) {
|
|
4401
|
+
TaskSlaCriteria["TaskCreated"] = "TaskCreated";
|
|
4402
|
+
TaskSlaCriteria["TaskAssigned"] = "TaskAssigned";
|
|
4403
|
+
TaskSlaCriteria["TaskCompleted"] = "TaskCompleted";
|
|
4404
|
+
})(TaskSlaCriteria || (TaskSlaCriteria = {}));
|
|
4405
|
+
var TaskSlaStatus;
|
|
4406
|
+
(function (TaskSlaStatus) {
|
|
4407
|
+
TaskSlaStatus["OverdueLater"] = "OverdueLater";
|
|
4408
|
+
TaskSlaStatus["OverdueSoon"] = "OverdueSoon";
|
|
4409
|
+
TaskSlaStatus["Overdue"] = "Overdue";
|
|
4410
|
+
TaskSlaStatus["CompletedInTime"] = "CompletedInTime";
|
|
4411
|
+
})(TaskSlaStatus || (TaskSlaStatus = {}));
|
|
4412
|
+
var TaskSourceName;
|
|
4413
|
+
(function (TaskSourceName) {
|
|
4414
|
+
TaskSourceName["Agent"] = "Agent";
|
|
4415
|
+
TaskSourceName["Workflow"] = "Workflow";
|
|
4416
|
+
TaskSourceName["Maestro"] = "Maestro";
|
|
4417
|
+
TaskSourceName["Default"] = "Default";
|
|
4418
|
+
})(TaskSourceName || (TaskSourceName = {}));
|
|
4419
|
+
/**
|
|
4420
|
+
* Task activity types
|
|
4421
|
+
*/
|
|
4422
|
+
var TaskActivityType;
|
|
4423
|
+
(function (TaskActivityType) {
|
|
4424
|
+
TaskActivityType["Created"] = "Created";
|
|
4425
|
+
TaskActivityType["Assigned"] = "Assigned";
|
|
4426
|
+
TaskActivityType["Reassigned"] = "Reassigned";
|
|
4427
|
+
TaskActivityType["Unassigned"] = "Unassigned";
|
|
4428
|
+
TaskActivityType["Saved"] = "Saved";
|
|
4429
|
+
TaskActivityType["Forwarded"] = "Forwarded";
|
|
4430
|
+
TaskActivityType["Completed"] = "Completed";
|
|
4431
|
+
TaskActivityType["Commented"] = "Commented";
|
|
4432
|
+
TaskActivityType["Deleted"] = "Deleted";
|
|
4433
|
+
TaskActivityType["BulkSaved"] = "BulkSaved";
|
|
4434
|
+
TaskActivityType["BulkCompleted"] = "BulkCompleted";
|
|
4435
|
+
TaskActivityType["FirstOpened"] = "FirstOpened";
|
|
4436
|
+
})(TaskActivityType || (TaskActivityType = {}));
|
|
4437
|
+
|
|
4438
|
+
/**
|
|
4439
|
+
* Base path constants for different services
|
|
4440
|
+
*/
|
|
4441
|
+
const ORCHESTRATOR_BASE = 'orchestrator_';
|
|
4442
|
+
const IDENTITY_BASE = 'identity_';
|
|
4443
|
+
|
|
4444
|
+
/**
|
|
4445
|
+
* Orchestrator Service Endpoints
|
|
4446
|
+
*/
|
|
4447
|
+
/**
|
|
4448
|
+
* Task Service (Action Center) Endpoints
|
|
4449
|
+
*/
|
|
4450
|
+
const TASK_ENDPOINTS = {
|
|
4451
|
+
GET_TASK_FORM_BY_ID: `${ORCHESTRATOR_BASE}/forms/TaskForms/GetTaskFormById`,
|
|
4452
|
+
GET_GENERIC_TASK_BY_ID: `${ORCHESTRATOR_BASE}/tasks/GenericTasks/GetTaskDataById`,
|
|
4453
|
+
GET_APP_TASK_BY_ID: `${ORCHESTRATOR_BASE}/tasks/AppTasks/GetAppTaskById`,
|
|
4454
|
+
};
|
|
4455
|
+
|
|
4456
|
+
/**
|
|
4457
|
+
* Identity/Authentication Endpoints
|
|
4458
|
+
*/
|
|
4459
|
+
/**
|
|
4460
|
+
* Identity Service Endpoints
|
|
4461
|
+
*/
|
|
4462
|
+
const IDENTITY_ENDPOINTS = {
|
|
4463
|
+
TOKEN: `${IDENTITY_BASE}/connect/token`,
|
|
4464
|
+
AUTHORIZE: `${IDENTITY_BASE}/connect/authorize`,
|
|
4465
|
+
};
|
|
4466
|
+
|
|
4467
|
+
({
|
|
4468
|
+
[TaskType.Form]: TASK_ENDPOINTS.GET_TASK_FORM_BY_ID,
|
|
4469
|
+
[TaskType.App]: TASK_ENDPOINTS.GET_APP_TASK_BY_ID,
|
|
4470
|
+
[TaskType.DocumentValidation]: TASK_ENDPOINTS.GET_GENERIC_TASK_BY_ID,
|
|
4471
|
+
[TaskType.DocumentClassification]: TASK_ENDPOINTS.GET_GENERIC_TASK_BY_ID,
|
|
4472
|
+
[TaskType.External]: TASK_ENDPOINTS.GET_GENERIC_TASK_BY_ID,
|
|
4473
|
+
[TaskType.DataLabeling]: TASK_ENDPOINTS.GET_GENERIC_TASK_BY_ID,
|
|
4474
|
+
});
|
|
4367
4475
|
var ActionCenterEventNames;
|
|
4368
4476
|
(function (ActionCenterEventNames) {
|
|
4369
4477
|
ActionCenterEventNames["TOKENREFRESHED"] = "AC.tokenRefreshed";
|
|
@@ -4741,22 +4849,6 @@ class TokenManager {
|
|
|
4741
4849
|
}
|
|
4742
4850
|
}
|
|
4743
4851
|
|
|
4744
|
-
/**
|
|
4745
|
-
* Base path constants for different services
|
|
4746
|
-
*/
|
|
4747
|
-
const IDENTITY_BASE = 'identity_';
|
|
4748
|
-
|
|
4749
|
-
/**
|
|
4750
|
-
* Identity/Authentication Endpoints
|
|
4751
|
-
*/
|
|
4752
|
-
/**
|
|
4753
|
-
* Identity Service Endpoints
|
|
4754
|
-
*/
|
|
4755
|
-
const IDENTITY_ENDPOINTS = {
|
|
4756
|
-
TOKEN: `${IDENTITY_BASE}/connect/token`,
|
|
4757
|
-
AUTHORIZE: `${IDENTITY_BASE}/connect/authorize`,
|
|
4758
|
-
};
|
|
4759
|
-
|
|
4760
4852
|
class AuthService {
|
|
4761
4853
|
constructor(config, executionContext) {
|
|
4762
4854
|
// Only use stored OAuth context when completing an active callback (URL has ?code=).
|
|
@@ -5184,7 +5276,7 @@ function normalizeBaseUrl(url) {
|
|
|
5184
5276
|
// Connection string placeholder that will be replaced during build
|
|
5185
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";
|
|
5186
5278
|
// SDK Version placeholder
|
|
5187
|
-
const SDK_VERSION = "1.2.
|
|
5279
|
+
const SDK_VERSION = "1.2.2";
|
|
5188
5280
|
const VERSION = "Version";
|
|
5189
5281
|
const SERVICE = "Service";
|
|
5190
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.2.
|
|
1906
|
+
const SDK_VERSION = "1.2.2";
|
|
1907
1907
|
const VERSION = "Version";
|
|
1908
1908
|
const SERVICE = "Service";
|
|
1909
1909
|
const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
|
package/dist/entities/index.d.ts
CHANGED
|
@@ -358,29 +358,35 @@ interface EntityInsertOptions {
|
|
|
358
358
|
/**
|
|
359
359
|
* Options for inserting a single record into an entity
|
|
360
360
|
*/
|
|
361
|
-
|
|
361
|
+
interface EntityInsertRecordOptions extends EntityInsertOptions {
|
|
362
|
+
}
|
|
362
363
|
/**
|
|
363
364
|
* Options for batch inserting data into an entity
|
|
364
365
|
* @deprecated Use {@link EntityInsertRecordsOptions} instead for better clarity on inserting multiple records into an entity. This type will be removed in future versions.
|
|
365
366
|
*/
|
|
366
|
-
|
|
367
|
+
interface EntityBatchInsertOptions extends EntityOperationOptions {
|
|
368
|
+
}
|
|
367
369
|
/**
|
|
368
370
|
* Options for inserting multiple records into an entity
|
|
369
371
|
*/
|
|
370
|
-
|
|
372
|
+
interface EntityInsertRecordsOptions extends EntityOperationOptions {
|
|
373
|
+
}
|
|
371
374
|
/**
|
|
372
375
|
* Options for updating a single record in an entity
|
|
373
376
|
*/
|
|
374
|
-
|
|
377
|
+
interface EntityUpdateRecordOptions extends EntityGetRecordByIdOptions {
|
|
378
|
+
}
|
|
375
379
|
/**
|
|
376
380
|
* Options for updating data in an entity
|
|
377
381
|
* @deprecated Use {@link EntityUpdateRecordsOptions} instead for better clarity on updating records in an entity. This type will be removed in future versions.
|
|
378
382
|
*/
|
|
379
|
-
|
|
383
|
+
interface EntityUpdateOptions extends EntityOperationOptions {
|
|
384
|
+
}
|
|
380
385
|
/**
|
|
381
386
|
* Options for updating data in an entity
|
|
382
387
|
*/
|
|
383
|
-
|
|
388
|
+
interface EntityUpdateRecordsOptions extends EntityOperationOptions {
|
|
389
|
+
}
|
|
384
390
|
/**
|
|
385
391
|
* Options for deleting data from an entity
|
|
386
392
|
* @deprecated Use {@link EntityDeleteRecordsOptions} instead for better clarity on deleting records from an entity. This type will be removed in future versions.
|
|
@@ -392,7 +398,8 @@ interface EntityDeleteOptions {
|
|
|
392
398
|
/**
|
|
393
399
|
* Options for deleting records in an entity
|
|
394
400
|
*/
|
|
395
|
-
|
|
401
|
+
interface EntityDeleteRecordsOptions extends EntityDeleteOptions {
|
|
402
|
+
}
|
|
396
403
|
/**
|
|
397
404
|
* Supported file types for attachment upload
|
|
398
405
|
*/
|
|
@@ -431,27 +438,32 @@ interface EntityOperationResponse {
|
|
|
431
438
|
failureRecords: FailureRecord[];
|
|
432
439
|
}
|
|
433
440
|
/**
|
|
434
|
-
* Response from inserting a single record into an entity
|
|
435
|
-
* Returns the inserted record with its generated record ID and other fields
|
|
441
|
+
* Response from inserting a single record into an entity.
|
|
442
|
+
* Returns the inserted record with its generated record ID and other fields.
|
|
436
443
|
*/
|
|
437
|
-
|
|
444
|
+
interface EntityInsertResponse extends EntityRecord {
|
|
445
|
+
}
|
|
438
446
|
/**
|
|
439
|
-
* Response from updating a single record in an entity
|
|
440
|
-
* Returns the updated record
|
|
447
|
+
* Response from updating a single record in an entity.
|
|
448
|
+
* Returns the updated record.
|
|
441
449
|
*/
|
|
442
|
-
|
|
450
|
+
interface EntityUpdateRecordResponse extends EntityRecord {
|
|
451
|
+
}
|
|
443
452
|
/**
|
|
444
453
|
* Response from batch inserting data into an entity
|
|
445
454
|
*/
|
|
446
|
-
|
|
455
|
+
interface EntityBatchInsertResponse extends EntityOperationResponse {
|
|
456
|
+
}
|
|
447
457
|
/**
|
|
448
458
|
* Response from updating data in an entity
|
|
449
459
|
*/
|
|
450
|
-
|
|
460
|
+
interface EntityUpdateResponse extends EntityOperationResponse {
|
|
461
|
+
}
|
|
451
462
|
/**
|
|
452
463
|
* Response from deleting data from an entity
|
|
453
464
|
*/
|
|
454
|
-
|
|
465
|
+
interface EntityDeleteResponse extends EntityOperationResponse {
|
|
466
|
+
}
|
|
455
467
|
/**
|
|
456
468
|
* Entity type enum
|
|
457
469
|
*/
|
|
@@ -866,7 +878,7 @@ interface EntityServiceModel {
|
|
|
866
878
|
* 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.
|
|
867
879
|
*
|
|
868
880
|
* @param id - UUID of the entity
|
|
869
|
-
* @param data - Array of records to update. Each record MUST contain the record
|
|
881
|
+
* @param data - Array of records to update. Each record MUST contain the record id.
|
|
870
882
|
* @param options - Update options
|
|
871
883
|
* @returns Promise resolving to update response
|
|
872
884
|
* {@link EntityUpdateResponse}
|
|
@@ -874,14 +886,14 @@ interface EntityServiceModel {
|
|
|
874
886
|
* ```typescript
|
|
875
887
|
* // Basic usage
|
|
876
888
|
* const result = await entities.updateRecordsById(<entityId>, [
|
|
877
|
-
* {
|
|
878
|
-
* {
|
|
889
|
+
* { id: "123", name: "John Updated", age: 31 },
|
|
890
|
+
* { id: "456", name: "Jane Updated", age: 26 }
|
|
879
891
|
* ]);
|
|
880
892
|
*
|
|
881
893
|
* // With options
|
|
882
894
|
* const result = await entities.updateRecordsById(<entityId>, [
|
|
883
|
-
* {
|
|
884
|
-
* {
|
|
895
|
+
* { id: "123", name: "John Updated", age: 31 },
|
|
896
|
+
* { id: "456", name: "Jane Updated", age: 26 }
|
|
885
897
|
* ], {
|
|
886
898
|
* expansionLevel: 1,
|
|
887
899
|
* failOnFirst: true
|
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.2.
|
|
1904
|
+
const SDK_VERSION = "1.2.2";
|
|
1905
1905
|
const VERSION = "Version";
|
|
1906
1906
|
const SERVICE = "Service";
|
|
1907
1907
|
const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
|