@uipath/uipath-typescript 1.3.3 → 1.3.5
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 +8 -1
- package/dist/assets/index.mjs +8 -1
- package/dist/attachments/index.cjs +8 -1
- package/dist/attachments/index.mjs +8 -1
- package/dist/buckets/index.cjs +8 -1
- package/dist/buckets/index.mjs +8 -1
- package/dist/cases/index.cjs +8 -1
- package/dist/cases/index.mjs +8 -1
- package/dist/conversational-agent/index.cjs +8 -1
- package/dist/conversational-agent/index.d.ts +29 -2
- package/dist/conversational-agent/index.mjs +8 -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/document-understanding/index.cjs +257 -0
- package/dist/document-understanding/index.d.ts +1185 -0
- package/dist/document-understanding/index.mjs +255 -0
- package/dist/entities/index.cjs +277 -15
- package/dist/entities/index.d.ts +135 -0
- package/dist/entities/index.mjs +277 -15
- package/dist/feedback/index.cjs +8 -1
- package/dist/feedback/index.mjs +8 -1
- package/dist/index.cjs +578 -15
- package/dist/index.d.ts +1384 -9
- package/dist/index.mjs +580 -18
- package/dist/index.umd.js +578 -15
- package/dist/jobs/index.cjs +54 -1
- package/dist/jobs/index.d.ts +52 -0
- package/dist/jobs/index.mjs +54 -1
- package/dist/maestro-processes/index.cjs +8 -1
- package/dist/maestro-processes/index.mjs +8 -1
- package/dist/processes/index.cjs +8 -1
- package/dist/processes/index.mjs +8 -1
- package/dist/queues/index.cjs +8 -1
- package/dist/queues/index.mjs +8 -1
- package/dist/tasks/index.cjs +8 -1
- package/dist/tasks/index.mjs +8 -1
- package/package.json +12 -2
package/dist/index.mjs
CHANGED
|
@@ -4536,6 +4536,7 @@ const JOB_ENDPOINTS = {
|
|
|
4536
4536
|
GET_BY_KEY: (identifier) => `${ORCHESTRATOR_BASE}/odata/Jobs/UiPath.Server.Configuration.OData.GetByKey(identifier=${identifier})`,
|
|
4537
4537
|
STOP: `${ORCHESTRATOR_BASE}/odata/Jobs/UiPath.Server.Configuration.OData.StopJobs`,
|
|
4538
4538
|
RESUME: `${ORCHESTRATOR_BASE}/odata/Jobs/UiPath.Server.Configuration.OData.ResumeJob`,
|
|
4539
|
+
RESTART: `${ORCHESTRATOR_BASE}/odata/Jobs/UiPath.Server.Configuration.OData.RestartJob`,
|
|
4539
4540
|
};
|
|
4540
4541
|
/**
|
|
4541
4542
|
* Orchestrator Asset Service Endpoints
|
|
@@ -4607,6 +4608,7 @@ const DATA_FABRIC_ENDPOINTS = {
|
|
|
4607
4608
|
BATCH_INSERT_BY_ID: (entityId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/insert-batch`,
|
|
4608
4609
|
UPDATE_RECORD_BY_ID: (entityId, recordId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/update/${recordId}`,
|
|
4609
4610
|
UPDATE_BY_ID: (entityId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/update-batch`,
|
|
4611
|
+
DELETE_RECORD_BY_ID: (entityId, recordId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/delete/${recordId}`,
|
|
4610
4612
|
DELETE_BY_ID: (entityId) => `${DATAFABRIC_BASE}/api/EntityService/entity/${entityId}/delete-batch`,
|
|
4611
4613
|
UPSERT: `${DATAFABRIC_BASE}/api/Entity`,
|
|
4612
4614
|
DELETE: (entityId) => `${DATAFABRIC_BASE}/api/Entity/${entityId}`,
|
|
@@ -5448,7 +5450,7 @@ function normalizeBaseUrl(url) {
|
|
|
5448
5450
|
// Connection string placeholder that will be replaced during build
|
|
5449
5451
|
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";
|
|
5450
5452
|
// SDK Version placeholder
|
|
5451
|
-
const SDK_VERSION = "1.3.
|
|
5453
|
+
const SDK_VERSION = "1.3.5";
|
|
5452
5454
|
const VERSION = "Version";
|
|
5453
5455
|
const SERVICE = "Service";
|
|
5454
5456
|
const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
|
|
@@ -6283,6 +6285,8 @@ class ErrorFactory {
|
|
|
6283
6285
|
|
|
6284
6286
|
const FOLDER_KEY = 'X-UIPATH-FolderKey';
|
|
6285
6287
|
const FOLDER_ID = 'X-UIPATH-OrganizationUnitId';
|
|
6288
|
+
const TRACEPARENT = 'traceparent';
|
|
6289
|
+
const UIPATH_TRACEPARENT_ID = 'x-uipath-traceparent-id';
|
|
6286
6290
|
/**
|
|
6287
6291
|
* Content type constants for HTTP requests/responses
|
|
6288
6292
|
*/
|
|
@@ -6336,8 +6340,13 @@ class ApiClient {
|
|
|
6336
6340
|
if (isFormData) {
|
|
6337
6341
|
delete defaultHeaders['Content-Type'];
|
|
6338
6342
|
}
|
|
6343
|
+
const traceId = crypto.randomUUID().replace(/-/g, '');
|
|
6344
|
+
const spanId = crypto.randomUUID().replace(/-/g, '').slice(0, 16);
|
|
6345
|
+
const traceparentValue = `00-${traceId}-${spanId}-01`;
|
|
6339
6346
|
const headers = {
|
|
6340
6347
|
...defaultHeaders,
|
|
6348
|
+
[TRACEPARENT]: traceparentValue,
|
|
6349
|
+
[UIPATH_TRACEPARENT_ID]: traceparentValue,
|
|
6341
6350
|
...options.headers
|
|
6342
6351
|
};
|
|
6343
6352
|
// Convert params to URLSearchParams
|
|
@@ -7641,6 +7650,13 @@ function createEntityMethods(entityData, service) {
|
|
|
7641
7650
|
throw new Error('Entity ID is undefined');
|
|
7642
7651
|
return service.deleteRecordsById(entityData.id, recordIds, options);
|
|
7643
7652
|
},
|
|
7653
|
+
async deleteRecord(recordId) {
|
|
7654
|
+
if (!entityData.id)
|
|
7655
|
+
throw new Error('Entity ID is undefined');
|
|
7656
|
+
if (!recordId)
|
|
7657
|
+
throw new Error('Record ID is undefined');
|
|
7658
|
+
return service.deleteRecordById(entityData.id, recordId);
|
|
7659
|
+
},
|
|
7644
7660
|
async getAllRecords(options) {
|
|
7645
7661
|
if (!entityData.id)
|
|
7646
7662
|
throw new Error('Entity ID is undefined');
|
|
@@ -7737,13 +7753,13 @@ var EntityFieldDataType;
|
|
|
7737
7753
|
/**
|
|
7738
7754
|
* Logical operator for combining query filter groups
|
|
7739
7755
|
*/
|
|
7740
|
-
var LogicalOperator;
|
|
7756
|
+
var LogicalOperator$1;
|
|
7741
7757
|
(function (LogicalOperator) {
|
|
7742
7758
|
/** Combine conditions with AND — all conditions must match */
|
|
7743
7759
|
LogicalOperator[LogicalOperator["And"] = 0] = "And";
|
|
7744
7760
|
/** Combine conditions with OR — any condition must match */
|
|
7745
7761
|
LogicalOperator[LogicalOperator["Or"] = 1] = "Or";
|
|
7746
|
-
})(LogicalOperator || (LogicalOperator = {}));
|
|
7762
|
+
})(LogicalOperator$1 || (LogicalOperator$1 = {}));
|
|
7747
7763
|
/**
|
|
7748
7764
|
* Comparison operators for entity query filters.
|
|
7749
7765
|
* Not all operators are valid for all field types.
|
|
@@ -7843,6 +7859,20 @@ function createParams(paramsObj = {}) {
|
|
|
7843
7859
|
return params;
|
|
7844
7860
|
}
|
|
7845
7861
|
|
|
7862
|
+
/**
|
|
7863
|
+
* Names of the per-field SQL constraint properties (i.e. the contents of `sqlType`
|
|
7864
|
+
* excluding its `name`). Used internally to validate user-supplied constraints
|
|
7865
|
+
* against the set of constraints that each `EntityFieldDataType` accepts.
|
|
7866
|
+
*
|
|
7867
|
+
* Enum values match the corresponding property names on `EntityCreateFieldOptions`.
|
|
7868
|
+
*/
|
|
7869
|
+
var EntityFieldConstraint;
|
|
7870
|
+
(function (EntityFieldConstraint) {
|
|
7871
|
+
EntityFieldConstraint["LengthLimit"] = "lengthLimit";
|
|
7872
|
+
EntityFieldConstraint["MaxValue"] = "maxValue";
|
|
7873
|
+
EntityFieldConstraint["MinValue"] = "minValue";
|
|
7874
|
+
EntityFieldConstraint["DecimalPrecision"] = "decimalPrecision";
|
|
7875
|
+
})(EntityFieldConstraint || (EntityFieldConstraint = {}));
|
|
7846
7876
|
/**
|
|
7847
7877
|
* Entity field data types (SQL types from API)
|
|
7848
7878
|
*/
|
|
@@ -7905,6 +7935,70 @@ const FieldDisplayTypeToDataType = {
|
|
|
7905
7935
|
[FieldDisplayType.AutoNumber]: EntityFieldDataType.AUTO_NUMBER,
|
|
7906
7936
|
[FieldDisplayType.Relationship]: EntityFieldDataType.RELATIONSHIP,
|
|
7907
7937
|
};
|
|
7938
|
+
/**
|
|
7939
|
+
* Default and fixed sqlType constraint values applied when the user does not provide them.
|
|
7940
|
+
* The API requires these to be present on field creation — without them the field
|
|
7941
|
+
* is stored in an incomplete state, causing "Field type cannot be changed" errors
|
|
7942
|
+
* when the UI later tries to edit advanced options.
|
|
7943
|
+
*/
|
|
7944
|
+
const ENTITY_FIELD_CONSTRAINT_DEFAULTS = {
|
|
7945
|
+
STRING_LENGTH_LIMIT: 200,
|
|
7946
|
+
MULTILINE_TEXT_LENGTH_LIMIT: 200,
|
|
7947
|
+
/** Fixed (non-overridable) length limit on DECIMAL payloads*/
|
|
7948
|
+
DECIMAL_LENGTH_LIMIT: 1000,
|
|
7949
|
+
DECIMAL_PRECISION: 2,
|
|
7950
|
+
/** Fixed (non-overridable) length limit for BIT (BOOLEAN) fields */
|
|
7951
|
+
BOOLEAN_LENGTH_LIMIT: 100,
|
|
7952
|
+
/** Fixed (non-overridable) length limit for DATE / DATETIMEOFFSET fields */
|
|
7953
|
+
DATE_LENGTH_LIMIT: 1000,
|
|
7954
|
+
/** Fixed (non-overridable) length limit for UNIQUEIDENTIFIER-backed FILE and RELATIONSHIP fields */
|
|
7955
|
+
UNIQUEIDENTIFIER_LENGTH_LIMIT: 300,
|
|
7956
|
+
/** Fixed (non-overridable) length limit for CHOICE_SET_MULTIPLE fields */
|
|
7957
|
+
CHOICE_SET_MULTIPLE_LENGTH_LIMIT: 4000,
|
|
7958
|
+
NUMERIC_MAX_VALUE: 1000000000000,
|
|
7959
|
+
NUMERIC_MIN_VALUE: -1e12,
|
|
7960
|
+
};
|
|
7961
|
+
/**
|
|
7962
|
+
* Per-field-type spec describing which {@link EntityFieldConstraint}s the user
|
|
7963
|
+
* may supply on create / update, and the inclusive value range for each.
|
|
7964
|
+
*
|
|
7965
|
+
* Source of truth: the platform's `Constants.cs` constraint table. Keys absent
|
|
7966
|
+
* from a type's spec are not user-configurable for that type; passing one
|
|
7967
|
+
* throws a `ValidationError`. Field types absent from this map (BOOLEAN, DATE,
|
|
7968
|
+
* DATETIME, DATETIME_WITH_TZ, FILE, RELATIONSHIP, UUID, CHOICE_SET_SINGLE,
|
|
7969
|
+
* CHOICE_SET_MULTIPLE, AUTO_NUMBER) accept no user-supplied constraints.
|
|
7970
|
+
*/
|
|
7971
|
+
const ENTITY_FIELD_CONSTRAINT_SPEC = {
|
|
7972
|
+
[EntityFieldDataType.STRING]: {
|
|
7973
|
+
[EntityFieldConstraint.LengthLimit]: { min: 1, max: 4000 },
|
|
7974
|
+
},
|
|
7975
|
+
[EntityFieldDataType.MULTILINE_TEXT]: {
|
|
7976
|
+
[EntityFieldConstraint.LengthLimit]: { min: 1, max: 10000 },
|
|
7977
|
+
},
|
|
7978
|
+
[EntityFieldDataType.INTEGER]: {
|
|
7979
|
+
[EntityFieldConstraint.MaxValue]: { min: -Number.MAX_SAFE_INTEGER, max: Number.MAX_SAFE_INTEGER },
|
|
7980
|
+
[EntityFieldConstraint.MinValue]: { min: -Number.MAX_SAFE_INTEGER, max: Number.MAX_SAFE_INTEGER },
|
|
7981
|
+
},
|
|
7982
|
+
[EntityFieldDataType.BIG_INTEGER]: {
|
|
7983
|
+
[EntityFieldConstraint.MaxValue]: { min: -Number.MAX_SAFE_INTEGER, max: Number.MAX_SAFE_INTEGER },
|
|
7984
|
+
[EntityFieldConstraint.MinValue]: { min: -Number.MAX_SAFE_INTEGER, max: Number.MAX_SAFE_INTEGER },
|
|
7985
|
+
},
|
|
7986
|
+
[EntityFieldDataType.DECIMAL]: {
|
|
7987
|
+
[EntityFieldConstraint.MaxValue]: { min: -Number.MAX_SAFE_INTEGER, max: Number.MAX_SAFE_INTEGER },
|
|
7988
|
+
[EntityFieldConstraint.MinValue]: { min: -Number.MAX_SAFE_INTEGER, max: Number.MAX_SAFE_INTEGER },
|
|
7989
|
+
[EntityFieldConstraint.DecimalPrecision]: { min: 0, max: 10 },
|
|
7990
|
+
},
|
|
7991
|
+
[EntityFieldDataType.FLOAT]: {
|
|
7992
|
+
[EntityFieldConstraint.MaxValue]: { min: -Number.MAX_SAFE_INTEGER, max: Number.MAX_SAFE_INTEGER },
|
|
7993
|
+
[EntityFieldConstraint.MinValue]: { min: -Number.MAX_SAFE_INTEGER, max: Number.MAX_SAFE_INTEGER },
|
|
7994
|
+
[EntityFieldConstraint.DecimalPrecision]: { min: 0, max: 10 },
|
|
7995
|
+
},
|
|
7996
|
+
[EntityFieldDataType.DOUBLE]: {
|
|
7997
|
+
[EntityFieldConstraint.MaxValue]: { min: -Number.MAX_SAFE_INTEGER, max: Number.MAX_SAFE_INTEGER },
|
|
7998
|
+
[EntityFieldConstraint.MinValue]: { min: -Number.MAX_SAFE_INTEGER, max: Number.MAX_SAFE_INTEGER },
|
|
7999
|
+
[EntityFieldConstraint.DecimalPrecision]: { min: 0, max: 10 },
|
|
8000
|
+
},
|
|
8001
|
+
};
|
|
7908
8002
|
/**
|
|
7909
8003
|
* Maps SQL field types to friendly display names
|
|
7910
8004
|
*/
|
|
@@ -8193,6 +8287,8 @@ class EntityService extends BaseService {
|
|
|
8193
8287
|
/**
|
|
8194
8288
|
* Deletes data from an entity by entity ID
|
|
8195
8289
|
*
|
|
8290
|
+
* Note: Records deleted using deleteRecordsById will not trigger Data Fabric trigger events. Use {@link deleteRecordById} if you need trigger events to fire for the deleted record.
|
|
8291
|
+
*
|
|
8196
8292
|
* @param entityId - UUID of the entity
|
|
8197
8293
|
* @param recordIds - Array of record UUIDs to delete
|
|
8198
8294
|
* @param options - Delete options
|
|
@@ -8220,6 +8316,27 @@ class EntityService extends BaseService {
|
|
|
8220
8316
|
});
|
|
8221
8317
|
return response.data;
|
|
8222
8318
|
}
|
|
8319
|
+
/**
|
|
8320
|
+
* Deletes a single record from an entity by entity ID and record ID
|
|
8321
|
+
*
|
|
8322
|
+
* Note: Data Fabric supports trigger events only on individual deletes, not on deleting multiple records.
|
|
8323
|
+
* Use this method if you need trigger events to fire for the deleted record.
|
|
8324
|
+
*
|
|
8325
|
+
* @param entityId - UUID of the entity
|
|
8326
|
+
* @param recordId - UUID of the record to delete
|
|
8327
|
+
* @returns Promise resolving to void on success
|
|
8328
|
+
* @example
|
|
8329
|
+
* ```typescript
|
|
8330
|
+
* import { Entities } from '@uipath/uipath-typescript/entities';
|
|
8331
|
+
*
|
|
8332
|
+
* const entities = new Entities(sdk);
|
|
8333
|
+
*
|
|
8334
|
+
* await entities.deleteRecordById("<entityId>", "<recordId>");
|
|
8335
|
+
* ```
|
|
8336
|
+
*/
|
|
8337
|
+
async deleteRecordById(entityId, recordId) {
|
|
8338
|
+
await this.delete(DATA_FABRIC_ENDPOINTS.ENTITY.DELETE_RECORD_BY_ID(entityId, recordId));
|
|
8339
|
+
}
|
|
8223
8340
|
/**
|
|
8224
8341
|
* Gets all entities in the system
|
|
8225
8342
|
*
|
|
@@ -8481,6 +8598,13 @@ class EntityService extends BaseService {
|
|
|
8481
8598
|
* { fieldName: "product_name", type: EntityFieldDataType.STRING, isRequired: true, isUnique: true },
|
|
8482
8599
|
* { fieldName: "price", type: EntityFieldDataType.INTEGER, defaultValue: "0" },
|
|
8483
8600
|
* ], { displayName: "Product Catalog", description: "Our product catalog", isRbacEnabled: true });
|
|
8601
|
+
*
|
|
8602
|
+
* // With advanced sqlType constraints (lengthLimit, decimalPrecision, maxValue, minValue) and defaultValue
|
|
8603
|
+
* const ordersId = await entities.create("orders", [
|
|
8604
|
+
* { fieldName: "product_name", type: EntityFieldDataType.STRING, isRequired: true, isUnique: true, lengthLimit: 500 },
|
|
8605
|
+
* { fieldName: "price", type: EntityFieldDataType.DECIMAL, decimalPrecision: 4, maxValue: 999999, minValue: 0 },
|
|
8606
|
+
* { fieldName: "quantity", type: EntityFieldDataType.INTEGER, maxValue: 10000, minValue: 1, defaultValue: "0" },
|
|
8607
|
+
* ]);
|
|
8484
8608
|
* ```
|
|
8485
8609
|
* @internal
|
|
8486
8610
|
*/
|
|
@@ -8554,6 +8678,17 @@ class EntityService extends BaseService {
|
|
|
8554
8678
|
* updateFields: [{ id: "<fieldId>", displayName: "Unit Price", isRequired: true }],
|
|
8555
8679
|
* displayName: "Price Catalog",
|
|
8556
8680
|
* });
|
|
8681
|
+
*
|
|
8682
|
+
* // Add a STRING/DECIMAL field with explicit advanced sqlType constraints and defaultValue
|
|
8683
|
+
* await entities.updateById("<entityId>", {
|
|
8684
|
+
* addFields: [
|
|
8685
|
+
* { fieldName: "summary", type: EntityFieldDataType.STRING, lengthLimit: 500, defaultValue: "summary" },
|
|
8686
|
+
* { fieldName: "amount", type: EntityFieldDataType.DECIMAL, decimalPrecision: 4, maxValue: 999999, minValue: 0 },
|
|
8687
|
+
* ],
|
|
8688
|
+
* updateFields: [
|
|
8689
|
+
* { id: "<fieldId>", lengthLimit: 1000 },
|
|
8690
|
+
* ],
|
|
8691
|
+
* });
|
|
8557
8692
|
* ```
|
|
8558
8693
|
* @internal
|
|
8559
8694
|
*/
|
|
@@ -8597,6 +8732,21 @@ class EntityService extends BaseService {
|
|
|
8597
8732
|
const update = updateMap.get(f.id ?? '');
|
|
8598
8733
|
if (!update)
|
|
8599
8734
|
return f;
|
|
8735
|
+
const constraintUpdate = {
|
|
8736
|
+
...(update.lengthLimit !== undefined && { lengthLimit: update.lengthLimit }),
|
|
8737
|
+
...(update.maxValue !== undefined && { maxValue: update.maxValue }),
|
|
8738
|
+
...(update.minValue !== undefined && { minValue: update.minValue }),
|
|
8739
|
+
...(update.decimalPrecision !== undefined && { decimalPrecision: update.decimalPrecision }),
|
|
8740
|
+
};
|
|
8741
|
+
const hasConstraintUpdate = Object.keys(constraintUpdate).length > 0;
|
|
8742
|
+
if (hasConstraintUpdate) {
|
|
8743
|
+
if (!f.sqlType) {
|
|
8744
|
+
throw new ValidationError({
|
|
8745
|
+
message: `Cannot update constraints on field '${f.name}' (id: ${f.id}) — the field is missing sqlType metadata in the entity definition.`,
|
|
8746
|
+
});
|
|
8747
|
+
}
|
|
8748
|
+
this.validateFieldConstraints(this.resolveFieldDataType(f), update, f.name);
|
|
8749
|
+
}
|
|
8600
8750
|
return {
|
|
8601
8751
|
...f,
|
|
8602
8752
|
...(update.displayName !== undefined && { displayName: update.displayName }),
|
|
@@ -8606,6 +8756,7 @@ class EntityService extends BaseService {
|
|
|
8606
8756
|
...(update.isRbacEnabled !== undefined && { isRbacEnabled: update.isRbacEnabled }),
|
|
8607
8757
|
...(update.isEncrypted !== undefined && { isEncrypted: update.isEncrypted }),
|
|
8608
8758
|
...(update.defaultValue !== undefined && { defaultValue: update.defaultValue }),
|
|
8759
|
+
...(hasConstraintUpdate && f.sqlType && { sqlType: { ...f.sqlType, ...constraintUpdate } }),
|
|
8609
8760
|
};
|
|
8610
8761
|
});
|
|
8611
8762
|
}
|
|
@@ -8655,24 +8806,27 @@ class EntityService extends BaseService {
|
|
|
8655
8806
|
let transformedField = transformData(field, EntityMap);
|
|
8656
8807
|
// Map field type: prefer fieldDisplayType for types that share SQL types (File, ChoiceSet, AutoNumber)
|
|
8657
8808
|
if (transformedField.fieldDataType?.name) {
|
|
8658
|
-
const
|
|
8659
|
-
|
|
8660
|
-
|
|
8661
|
-
if (displayTypeMapped) {
|
|
8662
|
-
transformedField.fieldDataType.name = displayTypeMapped;
|
|
8663
|
-
}
|
|
8664
|
-
else {
|
|
8665
|
-
const rawSqlTypeName = field.sqlType?.name;
|
|
8666
|
-
const mapped = rawSqlTypeName ? EntityFieldTypeMap[rawSqlTypeName] : undefined;
|
|
8667
|
-
if (mapped) {
|
|
8668
|
-
transformedField.fieldDataType.name = mapped;
|
|
8669
|
-
}
|
|
8809
|
+
const mapped = this.tryResolveFieldDataType(transformedField.fieldDisplayType, field.sqlType?.name);
|
|
8810
|
+
if (mapped) {
|
|
8811
|
+
transformedField.fieldDataType.name = mapped;
|
|
8670
8812
|
}
|
|
8671
8813
|
}
|
|
8672
8814
|
this.transformNestedReferences(transformedField);
|
|
8673
8815
|
return transformedField;
|
|
8674
8816
|
});
|
|
8675
8817
|
}
|
|
8818
|
+
/**
|
|
8819
|
+
* Resolves an {@link EntityFieldDataType} from a field's `fieldDisplayType` and
|
|
8820
|
+
* raw SQL type name. Prefers `fieldDisplayType` to disambiguate types that
|
|
8821
|
+
* share a SQL type (FILE, CHOICE_SET_*, AUTO_NUMBER, RELATIONSHIP); falls back
|
|
8822
|
+
* to the SQL-type-name mapping. Returns `undefined` if neither resolves.
|
|
8823
|
+
*/
|
|
8824
|
+
tryResolveFieldDataType(fieldDisplayType, sqlTypeName) {
|
|
8825
|
+
const displayMapped = fieldDisplayType ? FieldDisplayTypeToDataType[fieldDisplayType] : undefined;
|
|
8826
|
+
if (displayMapped)
|
|
8827
|
+
return displayMapped;
|
|
8828
|
+
return sqlTypeName ? EntityFieldTypeMap[sqlTypeName] : undefined;
|
|
8829
|
+
}
|
|
8676
8830
|
/**
|
|
8677
8831
|
* Transforms nested reference objects in field metadata
|
|
8678
8832
|
*/
|
|
@@ -8713,11 +8867,16 @@ class EntityService extends BaseService {
|
|
|
8713
8867
|
/** Converts a user-facing EntityCreateFieldOptions to the raw API field payload */
|
|
8714
8868
|
buildSchemaFieldPayload(field) {
|
|
8715
8869
|
this.validateName(field.fieldName, 'field');
|
|
8716
|
-
const
|
|
8870
|
+
const fieldType = field.type ?? EntityFieldDataType.STRING;
|
|
8871
|
+
this.validateFieldConstraints(fieldType, field, field.fieldName);
|
|
8872
|
+
const mapping = EntitySchemaFieldTypeMap[fieldType];
|
|
8717
8873
|
return {
|
|
8718
8874
|
name: field.fieldName,
|
|
8719
8875
|
displayName: field.displayName ?? field.fieldName,
|
|
8720
|
-
sqlType: {
|
|
8876
|
+
sqlType: {
|
|
8877
|
+
name: mapping.sqlTypeName,
|
|
8878
|
+
...this.buildSqlTypeConstraints(fieldType, field),
|
|
8879
|
+
},
|
|
8721
8880
|
fieldDisplayType: mapping.fieldDisplayType,
|
|
8722
8881
|
description: field.description ?? '',
|
|
8723
8882
|
isRequired: field.isRequired ?? false,
|
|
@@ -8730,6 +8889,107 @@ class EntityService extends BaseService {
|
|
|
8730
8889
|
...(field.referenceFieldName !== undefined && { referenceFieldName: field.referenceFieldName }),
|
|
8731
8890
|
};
|
|
8732
8891
|
}
|
|
8892
|
+
/**
|
|
8893
|
+
* Derives the user-facing {@link EntityFieldDataType} for a field on the raw
|
|
8894
|
+
* API response. Throws if the field's `fieldDisplayType` and `sqlType.name`
|
|
8895
|
+
* are both unmappable.
|
|
8896
|
+
*/
|
|
8897
|
+
resolveFieldDataType(f) {
|
|
8898
|
+
const mapped = this.tryResolveFieldDataType(f.fieldDisplayType, f.sqlType?.name);
|
|
8899
|
+
if (!mapped) {
|
|
8900
|
+
throw new ValidationError({
|
|
8901
|
+
message: `Cannot determine field type for '${f.name}' (id: ${f.id}) — sqlType '${f.sqlType?.name ?? '(missing)'}' and fieldDisplayType '${f.fieldDisplayType ?? '(missing)'}' are both unrecognized.`,
|
|
8902
|
+
});
|
|
8903
|
+
}
|
|
8904
|
+
return mapped;
|
|
8905
|
+
}
|
|
8906
|
+
/**
|
|
8907
|
+
* Validates that the user-supplied constraint properties on a field are
|
|
8908
|
+
* supported by the field's data type. Throws a `ValidationError` listing
|
|
8909
|
+
* any unsupported properties.
|
|
8910
|
+
*/
|
|
8911
|
+
validateFieldConstraints(type, field, fieldName) {
|
|
8912
|
+
const spec = ENTITY_FIELD_CONSTRAINT_SPEC[type] ?? {};
|
|
8913
|
+
const supported = Object.keys(spec);
|
|
8914
|
+
const provided = Object.values(EntityFieldConstraint).filter(name => field[name] !== undefined);
|
|
8915
|
+
const unsupported = provided.filter(p => !(p in spec));
|
|
8916
|
+
if (unsupported.length > 0) {
|
|
8917
|
+
const allowedDesc = supported.length > 0 ? supported.join(', ') : 'none';
|
|
8918
|
+
throw new ValidationError({
|
|
8919
|
+
message: `Field '${fieldName}' of type ${type} does not accept ${unsupported.join(', ')}. Allowed constraints for this type: ${allowedDesc}.`,
|
|
8920
|
+
});
|
|
8921
|
+
}
|
|
8922
|
+
// Range check: each user-supplied constraint must be within its allowed bounds.
|
|
8923
|
+
for (const name of provided) {
|
|
8924
|
+
const range = spec[name];
|
|
8925
|
+
const value = field[name];
|
|
8926
|
+
if (range && value !== undefined && (value < range.min || value > range.max)) {
|
|
8927
|
+
throw new ValidationError({
|
|
8928
|
+
message: `Field '${fieldName}' of type ${type} has ${name} ${value} out of range [${range.min}, ${range.max}].`,
|
|
8929
|
+
});
|
|
8930
|
+
}
|
|
8931
|
+
}
|
|
8932
|
+
// Cross-field check: when both bounds are user-supplied in the same call,
|
|
8933
|
+
// minValue must be strictly less than maxValue.
|
|
8934
|
+
if (field.minValue !== undefined && field.maxValue !== undefined && field.minValue >= field.maxValue) {
|
|
8935
|
+
throw new ValidationError({
|
|
8936
|
+
message: `Field '${fieldName}' of type ${type} has minValue ${field.minValue} >= maxValue ${field.maxValue}. minValue must be strictly less than maxValue.`,
|
|
8937
|
+
});
|
|
8938
|
+
}
|
|
8939
|
+
}
|
|
8940
|
+
/**
|
|
8941
|
+
* Returns the sqlType constraint fields for a given field type.
|
|
8942
|
+
*
|
|
8943
|
+
* The API requires specific constraint properties to be set per SQL type;
|
|
8944
|
+
* without them the field is stored in an incomplete state, causing
|
|
8945
|
+
* "Field type cannot be changed" errors when the UI later tries to edit
|
|
8946
|
+
* advanced options. User-supplied values from `EntityCreateFieldOptions`
|
|
8947
|
+
* override the defaults where the type accepts overrides.
|
|
8948
|
+
*/
|
|
8949
|
+
buildSqlTypeConstraints(type, field) {
|
|
8950
|
+
const defaults = ENTITY_FIELD_CONSTRAINT_DEFAULTS;
|
|
8951
|
+
switch (type) {
|
|
8952
|
+
case EntityFieldDataType.STRING:
|
|
8953
|
+
return { lengthLimit: field.lengthLimit ?? defaults.STRING_LENGTH_LIMIT };
|
|
8954
|
+
case EntityFieldDataType.MULTILINE_TEXT:
|
|
8955
|
+
return { lengthLimit: field.lengthLimit ?? defaults.MULTILINE_TEXT_LENGTH_LIMIT };
|
|
8956
|
+
case EntityFieldDataType.DECIMAL:
|
|
8957
|
+
return {
|
|
8958
|
+
lengthLimit: defaults.DECIMAL_LENGTH_LIMIT,
|
|
8959
|
+
decimalPrecision: field.decimalPrecision ?? defaults.DECIMAL_PRECISION,
|
|
8960
|
+
maxValue: field.maxValue ?? defaults.NUMERIC_MAX_VALUE,
|
|
8961
|
+
minValue: field.minValue ?? defaults.NUMERIC_MIN_VALUE,
|
|
8962
|
+
};
|
|
8963
|
+
case EntityFieldDataType.BOOLEAN:
|
|
8964
|
+
return { lengthLimit: defaults.BOOLEAN_LENGTH_LIMIT };
|
|
8965
|
+
case EntityFieldDataType.DATE:
|
|
8966
|
+
case EntityFieldDataType.DATETIME_WITH_TZ:
|
|
8967
|
+
return { lengthLimit: defaults.DATE_LENGTH_LIMIT };
|
|
8968
|
+
case EntityFieldDataType.INTEGER:
|
|
8969
|
+
case EntityFieldDataType.BIG_INTEGER:
|
|
8970
|
+
return {
|
|
8971
|
+
maxValue: field.maxValue ?? defaults.NUMERIC_MAX_VALUE,
|
|
8972
|
+
minValue: field.minValue ?? defaults.NUMERIC_MIN_VALUE,
|
|
8973
|
+
};
|
|
8974
|
+
case EntityFieldDataType.FLOAT:
|
|
8975
|
+
case EntityFieldDataType.DOUBLE:
|
|
8976
|
+
return {
|
|
8977
|
+
decimalPrecision: field.decimalPrecision ?? defaults.DECIMAL_PRECISION,
|
|
8978
|
+
maxValue: field.maxValue ?? defaults.NUMERIC_MAX_VALUE,
|
|
8979
|
+
minValue: field.minValue ?? defaults.NUMERIC_MIN_VALUE,
|
|
8980
|
+
};
|
|
8981
|
+
case EntityFieldDataType.FILE:
|
|
8982
|
+
case EntityFieldDataType.RELATIONSHIP:
|
|
8983
|
+
// UNIQUEIDENTIFIER fixed lengthLimit (300)
|
|
8984
|
+
return { lengthLimit: defaults.UNIQUEIDENTIFIER_LENGTH_LIMIT };
|
|
8985
|
+
case EntityFieldDataType.CHOICE_SET_MULTIPLE:
|
|
8986
|
+
// CHOICE_SET_MULTIPLE fixed lengthLimit (4000)
|
|
8987
|
+
return { lengthLimit: defaults.CHOICE_SET_MULTIPLE_LENGTH_LIMIT };
|
|
8988
|
+
default:
|
|
8989
|
+
// UUID, CHOICE_SET_SINGLE, AUTO_NUMBER, DATETIME — (sqlType: { name })
|
|
8990
|
+
return {};
|
|
8991
|
+
}
|
|
8992
|
+
}
|
|
8733
8993
|
validateName(name, context) {
|
|
8734
8994
|
if (name.length < 3 || name.length > 100 || !/^[a-zA-Z]\w*$/.test(name)) {
|
|
8735
8995
|
const suggestion = name.replace(/\W/g, '').replace(/^[0-9_]+/, '');
|
|
@@ -8772,6 +9032,9 @@ __decorate([
|
|
|
8772
9032
|
__decorate([
|
|
8773
9033
|
track('Entities.DeleteRecordsById')
|
|
8774
9034
|
], EntityService.prototype, "deleteRecordsById", null);
|
|
9035
|
+
__decorate([
|
|
9036
|
+
track('Entities.DeleteRecordById')
|
|
9037
|
+
], EntityService.prototype, "deleteRecordById", null);
|
|
8775
9038
|
__decorate([
|
|
8776
9039
|
track('Entities.GetAll')
|
|
8777
9040
|
], EntityService.prototype, "getAll", null);
|
|
@@ -11396,6 +11659,13 @@ function createJobMethods(jobData, service) {
|
|
|
11396
11659
|
throw new Error('Job folderId is undefined');
|
|
11397
11660
|
return service.resume(jobData.key, jobData.folderId, options);
|
|
11398
11661
|
},
|
|
11662
|
+
async restart() {
|
|
11663
|
+
if (!jobData.key)
|
|
11664
|
+
throw new Error('Job key is undefined');
|
|
11665
|
+
if (!jobData.folderId)
|
|
11666
|
+
throw new Error('Job folderId is undefined');
|
|
11667
|
+
return service.restart(jobData.key, jobData.folderId);
|
|
11668
|
+
},
|
|
11399
11669
|
};
|
|
11400
11670
|
}
|
|
11401
11671
|
/**
|
|
@@ -11895,6 +12165,41 @@ class JobService extends FolderScopedService {
|
|
|
11895
12165
|
}
|
|
11896
12166
|
await this.post(JOB_ENDPOINTS.RESUME, body, { headers });
|
|
11897
12167
|
}
|
|
12168
|
+
/**
|
|
12169
|
+
* Restarts a job in a final state (Successful, Faulted, or Stopped).
|
|
12170
|
+
*
|
|
12171
|
+
* Creates a **new** job execution from a previously successful, faulted, or stopped job.
|
|
12172
|
+
* The new job has its own unique `key`, starts in `Pending` state, and uses
|
|
12173
|
+
* the same process and input arguments as the original job.
|
|
12174
|
+
*
|
|
12175
|
+
* To monitor the new job's progress, poll with {@link getById}
|
|
12176
|
+
* using the returned job's key until the state reaches a final value.
|
|
12177
|
+
*
|
|
12178
|
+
* @param jobKey - The unique key (GUID) of the job to restart
|
|
12179
|
+
* @param folderId - The folder ID where the job resides
|
|
12180
|
+
* @returns Promise resolving to the new {@link JobGetResponse} with full job details
|
|
12181
|
+
*
|
|
12182
|
+
* @example
|
|
12183
|
+
* ```typescript
|
|
12184
|
+
* // Restart a faulted job
|
|
12185
|
+
* const newJob = await jobs.restart(<jobKey>, <folderId>);
|
|
12186
|
+
* console.log(newJob.state); // 'Pending'
|
|
12187
|
+
* console.log(newJob.key); // new job key (different from original)
|
|
12188
|
+
* ```
|
|
12189
|
+
*/
|
|
12190
|
+
async restart(jobKey, folderId) {
|
|
12191
|
+
if (!jobKey) {
|
|
12192
|
+
throw new ValidationError({ message: 'jobKey is required for restart' });
|
|
12193
|
+
}
|
|
12194
|
+
if (!folderId) {
|
|
12195
|
+
throw new ValidationError({ message: 'folderId is required for restart' });
|
|
12196
|
+
}
|
|
12197
|
+
const [jobId] = await this.resolveJobKeys([jobKey], folderId);
|
|
12198
|
+
const headers = createHeaders({ [FOLDER_ID]: folderId });
|
|
12199
|
+
const response = await this.post(JOB_ENDPOINTS.RESTART, { jobId }, { headers });
|
|
12200
|
+
const rawJob = transformData(pascalToCamelCaseKeys(response.data), JobMap);
|
|
12201
|
+
return createJobWithMethods(rawJob, this);
|
|
12202
|
+
}
|
|
11898
12203
|
/**
|
|
11899
12204
|
* Downloads the output file content via the Attachments API.
|
|
11900
12205
|
* 1. Fetches blob access info from the attachment using AttachmentService
|
|
@@ -11982,6 +12287,9 @@ __decorate([
|
|
|
11982
12287
|
__decorate([
|
|
11983
12288
|
track('Jobs.Resume')
|
|
11984
12289
|
], JobService.prototype, "resume", null);
|
|
12290
|
+
__decorate([
|
|
12291
|
+
track('Jobs.Restart')
|
|
12292
|
+
], JobService.prototype, "restart", null);
|
|
11985
12293
|
|
|
11986
12294
|
/**
|
|
11987
12295
|
* Enum for job sub-state
|
|
@@ -12690,6 +12998,260 @@ var FeedbackStatus;
|
|
|
12690
12998
|
FeedbackStatus[FeedbackStatus["Dismissed"] = 2] = "Dismissed";
|
|
12691
12999
|
})(FeedbackStatus || (FeedbackStatus = {}));
|
|
12692
13000
|
|
|
13001
|
+
// Auto-generated from the OpenAPI spec — do not edit manually.
|
|
13002
|
+
var DocumentActionPriority;
|
|
13003
|
+
(function (DocumentActionPriority) {
|
|
13004
|
+
DocumentActionPriority["Low"] = "Low";
|
|
13005
|
+
DocumentActionPriority["Medium"] = "Medium";
|
|
13006
|
+
DocumentActionPriority["High"] = "High";
|
|
13007
|
+
DocumentActionPriority["Critical"] = "Critical";
|
|
13008
|
+
})(DocumentActionPriority || (DocumentActionPriority = {}));
|
|
13009
|
+
var DocumentActionStatus;
|
|
13010
|
+
(function (DocumentActionStatus) {
|
|
13011
|
+
DocumentActionStatus["Unassigned"] = "Unassigned";
|
|
13012
|
+
DocumentActionStatus["Pending"] = "Pending";
|
|
13013
|
+
DocumentActionStatus["Completed"] = "Completed";
|
|
13014
|
+
})(DocumentActionStatus || (DocumentActionStatus = {}));
|
|
13015
|
+
var DocumentActionType;
|
|
13016
|
+
(function (DocumentActionType) {
|
|
13017
|
+
DocumentActionType["Validation"] = "Validation";
|
|
13018
|
+
DocumentActionType["Classification"] = "Classification";
|
|
13019
|
+
})(DocumentActionType || (DocumentActionType = {}));
|
|
13020
|
+
|
|
13021
|
+
// Auto-generated from the OpenAPI spec — do not edit manually.
|
|
13022
|
+
var ProjectProperties;
|
|
13023
|
+
(function (ProjectProperties) {
|
|
13024
|
+
ProjectProperties["IsPredefined"] = "IsPredefined";
|
|
13025
|
+
ProjectProperties["SupportsTags"] = "SupportsTags";
|
|
13026
|
+
ProjectProperties["SupportsVersions"] = "SupportsVersions";
|
|
13027
|
+
ProjectProperties["IsSplittingEnabled"] = "IsSplittingEnabled";
|
|
13028
|
+
})(ProjectProperties || (ProjectProperties = {}));
|
|
13029
|
+
var ProjectType;
|
|
13030
|
+
(function (ProjectType) {
|
|
13031
|
+
ProjectType["Classic"] = "Classic";
|
|
13032
|
+
ProjectType["Modern"] = "Modern";
|
|
13033
|
+
ProjectType["IXP"] = "IXP";
|
|
13034
|
+
ProjectType["Unknown"] = "Unknown";
|
|
13035
|
+
})(ProjectType || (ProjectType = {}));
|
|
13036
|
+
var ResourceStatus;
|
|
13037
|
+
(function (ResourceStatus) {
|
|
13038
|
+
ResourceStatus["Unknown"] = "Unknown";
|
|
13039
|
+
ResourceStatus["NotStarted"] = "NotStarted";
|
|
13040
|
+
ResourceStatus["ExportInProgress"] = "ExportInProgress";
|
|
13041
|
+
ResourceStatus["ExportCompleted"] = "ExportCompleted";
|
|
13042
|
+
ResourceStatus["InProgress"] = "InProgress";
|
|
13043
|
+
ResourceStatus["Suspended"] = "Suspended";
|
|
13044
|
+
ResourceStatus["Resuming"] = "Resuming";
|
|
13045
|
+
ResourceStatus["Available"] = "Available";
|
|
13046
|
+
ResourceStatus["Error"] = "Error";
|
|
13047
|
+
ResourceStatus["Deleting"] = "Deleting";
|
|
13048
|
+
})(ResourceStatus || (ResourceStatus = {}));
|
|
13049
|
+
var ResourceType;
|
|
13050
|
+
(function (ResourceType) {
|
|
13051
|
+
ResourceType["Specialized"] = "Specialized";
|
|
13052
|
+
ResourceType["Generative"] = "Generative";
|
|
13053
|
+
ResourceType["Custom"] = "Custom";
|
|
13054
|
+
ResourceType["Unknown"] = "Unknown";
|
|
13055
|
+
})(ResourceType || (ResourceType = {}));
|
|
13056
|
+
|
|
13057
|
+
// Auto-generated from the OpenAPI spec — do not edit manually.
|
|
13058
|
+
var MarkupType;
|
|
13059
|
+
(function (MarkupType) {
|
|
13060
|
+
MarkupType["Unknown"] = "Unknown";
|
|
13061
|
+
MarkupType["Circled"] = "Circled";
|
|
13062
|
+
MarkupType["Underlined"] = "Underlined";
|
|
13063
|
+
MarkupType["Strikethrough"] = "Strikethrough";
|
|
13064
|
+
})(MarkupType || (MarkupType = {}));
|
|
13065
|
+
var ProcessingSource;
|
|
13066
|
+
(function (ProcessingSource) {
|
|
13067
|
+
ProcessingSource["Unknown"] = "Unknown";
|
|
13068
|
+
ProcessingSource["Ocr"] = "Ocr";
|
|
13069
|
+
ProcessingSource["Pdf"] = "Pdf";
|
|
13070
|
+
ProcessingSource["PlainText"] = "PlainText";
|
|
13071
|
+
ProcessingSource["PdfAndOcr"] = "PdfAndOcr";
|
|
13072
|
+
})(ProcessingSource || (ProcessingSource = {}));
|
|
13073
|
+
var Rotation;
|
|
13074
|
+
(function (Rotation) {
|
|
13075
|
+
Rotation["None"] = "None";
|
|
13076
|
+
Rotation["Rotated90"] = "Rotated90";
|
|
13077
|
+
Rotation["Rotated180"] = "Rotated180";
|
|
13078
|
+
Rotation["Rotated270"] = "Rotated270";
|
|
13079
|
+
Rotation["Other"] = "Other";
|
|
13080
|
+
})(Rotation || (Rotation = {}));
|
|
13081
|
+
var SectionType;
|
|
13082
|
+
(function (SectionType) {
|
|
13083
|
+
SectionType["Vertical"] = "Vertical";
|
|
13084
|
+
SectionType["Paragraph"] = "Paragraph";
|
|
13085
|
+
SectionType["Header"] = "Header";
|
|
13086
|
+
SectionType["Footer"] = "Footer";
|
|
13087
|
+
SectionType["Table"] = "Table";
|
|
13088
|
+
})(SectionType || (SectionType = {}));
|
|
13089
|
+
var TextType;
|
|
13090
|
+
(function (TextType) {
|
|
13091
|
+
TextType["Unknown"] = "Unknown";
|
|
13092
|
+
TextType["Text"] = "Text";
|
|
13093
|
+
TextType["Checkbox"] = "Checkbox";
|
|
13094
|
+
TextType["Handwriting"] = "Handwriting";
|
|
13095
|
+
TextType["Barcode"] = "Barcode";
|
|
13096
|
+
TextType["QRcode"] = "QRcode";
|
|
13097
|
+
TextType["Stamp"] = "Stamp";
|
|
13098
|
+
TextType["Logo"] = "Logo";
|
|
13099
|
+
TextType["Circle"] = "Circle";
|
|
13100
|
+
TextType["Underline"] = "Underline";
|
|
13101
|
+
TextType["Cut"] = "Cut";
|
|
13102
|
+
})(TextType || (TextType = {}));
|
|
13103
|
+
var WordGroupType;
|
|
13104
|
+
(function (WordGroupType) {
|
|
13105
|
+
WordGroupType["Sentence"] = "Sentence";
|
|
13106
|
+
WordGroupType["TableCell"] = "TableCell";
|
|
13107
|
+
WordGroupType["TableRowEnd"] = "TableRowEnd";
|
|
13108
|
+
WordGroupType["Heading"] = "Heading";
|
|
13109
|
+
WordGroupType["Other"] = "Other";
|
|
13110
|
+
})(WordGroupType || (WordGroupType = {}));
|
|
13111
|
+
|
|
13112
|
+
// Auto-generated from the OpenAPI spec — do not edit manually.
|
|
13113
|
+
var ModelKind;
|
|
13114
|
+
(function (ModelKind) {
|
|
13115
|
+
ModelKind["Classifier"] = "Classifier";
|
|
13116
|
+
ModelKind["Extractor"] = "Extractor";
|
|
13117
|
+
})(ModelKind || (ModelKind = {}));
|
|
13118
|
+
var ModelType;
|
|
13119
|
+
(function (ModelType) {
|
|
13120
|
+
ModelType["IXP"] = "IXP";
|
|
13121
|
+
ModelType["Modern"] = "Modern";
|
|
13122
|
+
ModelType["Predefined"] = "Predefined";
|
|
13123
|
+
})(ModelType || (ModelType = {}));
|
|
13124
|
+
|
|
13125
|
+
// Auto-generated from the OpenAPI spec — do not edit manually.
|
|
13126
|
+
var ClassifierDocumentTypeType;
|
|
13127
|
+
(function (ClassifierDocumentTypeType) {
|
|
13128
|
+
ClassifierDocumentTypeType["FormsAi"] = "FormsAi";
|
|
13129
|
+
ClassifierDocumentTypeType["SemiStructuredAi"] = "SemiStructuredAi";
|
|
13130
|
+
ClassifierDocumentTypeType["Helix"] = "Helix";
|
|
13131
|
+
ClassifierDocumentTypeType["Unknown"] = "Unknown";
|
|
13132
|
+
})(ClassifierDocumentTypeType || (ClassifierDocumentTypeType = {}));
|
|
13133
|
+
var CreateTaskPriority;
|
|
13134
|
+
(function (CreateTaskPriority) {
|
|
13135
|
+
CreateTaskPriority["Low"] = "Low";
|
|
13136
|
+
CreateTaskPriority["Medium"] = "Medium";
|
|
13137
|
+
CreateTaskPriority["High"] = "High";
|
|
13138
|
+
CreateTaskPriority["Critical"] = "Critical";
|
|
13139
|
+
})(CreateTaskPriority || (CreateTaskPriority = {}));
|
|
13140
|
+
var GptFieldType;
|
|
13141
|
+
(function (GptFieldType) {
|
|
13142
|
+
GptFieldType["Address"] = "Address";
|
|
13143
|
+
GptFieldType["Boolean"] = "Boolean";
|
|
13144
|
+
GptFieldType["Date"] = "Date";
|
|
13145
|
+
GptFieldType["Name"] = "Name";
|
|
13146
|
+
GptFieldType["Number"] = "Number";
|
|
13147
|
+
GptFieldType["Text"] = "Text";
|
|
13148
|
+
})(GptFieldType || (GptFieldType = {}));
|
|
13149
|
+
var ValidationDisplayMode;
|
|
13150
|
+
(function (ValidationDisplayMode) {
|
|
13151
|
+
ValidationDisplayMode["Classic"] = "Classic";
|
|
13152
|
+
ValidationDisplayMode["Compact"] = "Compact";
|
|
13153
|
+
})(ValidationDisplayMode || (ValidationDisplayMode = {}));
|
|
13154
|
+
|
|
13155
|
+
// Auto-generated from the OpenAPI spec — do not edit manually.
|
|
13156
|
+
var ResultsDataSource;
|
|
13157
|
+
(function (ResultsDataSource) {
|
|
13158
|
+
ResultsDataSource["Automatic"] = "Automatic";
|
|
13159
|
+
ResultsDataSource["Manual"] = "Manual";
|
|
13160
|
+
ResultsDataSource["ManuallyChanged"] = "ManuallyChanged";
|
|
13161
|
+
ResultsDataSource["Defaulted"] = "Defaulted";
|
|
13162
|
+
ResultsDataSource["External"] = "External";
|
|
13163
|
+
})(ResultsDataSource || (ResultsDataSource = {}));
|
|
13164
|
+
|
|
13165
|
+
// Auto-generated from the OpenAPI spec — do not edit manually.
|
|
13166
|
+
var ComparisonOperator;
|
|
13167
|
+
(function (ComparisonOperator) {
|
|
13168
|
+
ComparisonOperator["Equals"] = "Equals";
|
|
13169
|
+
ComparisonOperator["NotEquals"] = "NotEquals";
|
|
13170
|
+
ComparisonOperator["Greater"] = "Greater";
|
|
13171
|
+
ComparisonOperator["Less"] = "Less";
|
|
13172
|
+
ComparisonOperator["GreaterOrEqual"] = "GreaterOrEqual";
|
|
13173
|
+
ComparisonOperator["LessOrEqual"] = "LessOrEqual";
|
|
13174
|
+
})(ComparisonOperator || (ComparisonOperator = {}));
|
|
13175
|
+
var Criticality;
|
|
13176
|
+
(function (Criticality) {
|
|
13177
|
+
Criticality["Must"] = "Must";
|
|
13178
|
+
Criticality["Should"] = "Should";
|
|
13179
|
+
})(Criticality || (Criticality = {}));
|
|
13180
|
+
var FieldType;
|
|
13181
|
+
(function (FieldType) {
|
|
13182
|
+
FieldType["Text"] = "Text";
|
|
13183
|
+
FieldType["Number"] = "Number";
|
|
13184
|
+
FieldType["Date"] = "Date";
|
|
13185
|
+
FieldType["Name"] = "Name";
|
|
13186
|
+
FieldType["Address"] = "Address";
|
|
13187
|
+
FieldType["Keyword"] = "Keyword";
|
|
13188
|
+
FieldType["Set"] = "Set";
|
|
13189
|
+
FieldType["Boolean"] = "Boolean";
|
|
13190
|
+
FieldType["Table"] = "Table";
|
|
13191
|
+
FieldType["Internal"] = "Internal";
|
|
13192
|
+
FieldType["FieldGroup"] = "FieldGroup";
|
|
13193
|
+
FieldType["MonetaryQuantity"] = "MonetaryQuantity";
|
|
13194
|
+
})(FieldType || (FieldType = {}));
|
|
13195
|
+
var LogicalOperator;
|
|
13196
|
+
(function (LogicalOperator) {
|
|
13197
|
+
LogicalOperator["AND"] = "AND";
|
|
13198
|
+
LogicalOperator["OR"] = "OR";
|
|
13199
|
+
})(LogicalOperator || (LogicalOperator = {}));
|
|
13200
|
+
var RuleType;
|
|
13201
|
+
(function (RuleType) {
|
|
13202
|
+
RuleType["Mandatory"] = "Mandatory";
|
|
13203
|
+
RuleType["PossibleValues"] = "PossibleValues";
|
|
13204
|
+
RuleType["Regex"] = "Regex";
|
|
13205
|
+
RuleType["StartsWith"] = "StartsWith";
|
|
13206
|
+
RuleType["EndsWith"] = "EndsWith";
|
|
13207
|
+
RuleType["FixedLength"] = "FixedLength";
|
|
13208
|
+
RuleType["IsNumeric"] = "IsNumeric";
|
|
13209
|
+
RuleType["IsDate"] = "IsDate";
|
|
13210
|
+
RuleType["IsEmail"] = "IsEmail";
|
|
13211
|
+
RuleType["Contains"] = "Contains";
|
|
13212
|
+
RuleType["Expression"] = "Expression";
|
|
13213
|
+
RuleType["TableExpression"] = "TableExpression";
|
|
13214
|
+
RuleType["IsEmpty"] = "IsEmpty";
|
|
13215
|
+
})(RuleType || (RuleType = {}));
|
|
13216
|
+
|
|
13217
|
+
// Auto-generated from the OpenAPI spec — do not edit manually.
|
|
13218
|
+
var ActionStatus;
|
|
13219
|
+
(function (ActionStatus) {
|
|
13220
|
+
ActionStatus["Unassigned"] = "Unassigned";
|
|
13221
|
+
ActionStatus["Pending"] = "Pending";
|
|
13222
|
+
ActionStatus["Completed"] = "Completed";
|
|
13223
|
+
})(ActionStatus || (ActionStatus = {}));
|
|
13224
|
+
|
|
13225
|
+
var index = /*#__PURE__*/Object.freeze({
|
|
13226
|
+
__proto__: null,
|
|
13227
|
+
get ActionStatus () { return ActionStatus; },
|
|
13228
|
+
get ClassifierDocumentTypeType () { return ClassifierDocumentTypeType; },
|
|
13229
|
+
get ComparisonOperator () { return ComparisonOperator; },
|
|
13230
|
+
get CreateTaskPriority () { return CreateTaskPriority; },
|
|
13231
|
+
get Criticality () { return Criticality; },
|
|
13232
|
+
get DocumentActionPriority () { return DocumentActionPriority; },
|
|
13233
|
+
get DocumentActionStatus () { return DocumentActionStatus; },
|
|
13234
|
+
get DocumentActionType () { return DocumentActionType; },
|
|
13235
|
+
get FieldType () { return FieldType; },
|
|
13236
|
+
get GptFieldType () { return GptFieldType; },
|
|
13237
|
+
get LogicalOperator () { return LogicalOperator; },
|
|
13238
|
+
get MarkupType () { return MarkupType; },
|
|
13239
|
+
get ModelKind () { return ModelKind; },
|
|
13240
|
+
get ModelType () { return ModelType; },
|
|
13241
|
+
get ProcessingSource () { return ProcessingSource; },
|
|
13242
|
+
get ProjectProperties () { return ProjectProperties; },
|
|
13243
|
+
get ProjectType () { return ProjectType; },
|
|
13244
|
+
get ResourceStatus () { return ResourceStatus; },
|
|
13245
|
+
get ResourceType () { return ResourceType; },
|
|
13246
|
+
get ResultsDataSource () { return ResultsDataSource; },
|
|
13247
|
+
get Rotation () { return Rotation; },
|
|
13248
|
+
get RuleType () { return RuleType; },
|
|
13249
|
+
get SectionType () { return SectionType; },
|
|
13250
|
+
get TextType () { return TextType; },
|
|
13251
|
+
get ValidationDisplayMode () { return ValidationDisplayMode; },
|
|
13252
|
+
get WordGroupType () { return WordGroupType; }
|
|
13253
|
+
});
|
|
13254
|
+
|
|
12693
13255
|
/**
|
|
12694
13256
|
* Asset resolution utilities for UiPath Coded Apps
|
|
12695
13257
|
*
|
|
@@ -12765,4 +13327,4 @@ function getAppBase() {
|
|
|
12765
13327
|
return getMetaTagContent(UiPathMetaTags.APP_BASE) || '/';
|
|
12766
13328
|
}
|
|
12767
13329
|
|
|
12768
|
-
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, FeedbackStatus, FieldDisplayType, HttpStatus, InputStreamSpeechSensitivity, InterruptType, JobPriority, JobSourceType, JobState, JobSubState, JobType, JoinType, LogicalOperator, MAX_PAGE_SIZE, MessageMap, MessageRole, NetworkError, NotFoundError, PackageSourceType, PackageType, ProcessIncidentSeverity, ProcessIncidentStatus, ProcessIncidentType, QueryFilterOperator, RateLimitError, ReferenceType, RemoteControlAccess, RobotSize, RuntimeType, SDK_LOGGER_NAME, SDK_RUN_EVENT, SDK_SERVICE_NAME, SDK_VERSION, SERVICE, SLADurationUnit, ServerError, ServerlessJobType, SortOrder, StageTaskType, StartStrategy, StopStrategy, TargetFramework, TaskActivityType, TaskPriority, TaskSlaCriteria, TaskSlaStatus, TaskSourceName, TaskStatus, TaskType, TaskUserType, UNKNOWN$1 as UNKNOWN, UiPath, UiPathError, UiPathMetaTags, UserSettingsMap, VERSION, ValidationError, createAgentWithMethods, createCaseInstanceWithMethods, createConversationWithMethods, createEntityWithMethods, createJobWithMethods, createProcessInstanceWithMethods, createProcessWithMethods, createTaskWithMethods, getAppBase, getAsset, getErrorDetails, getLimitedPageSize, isAuthenticationError, isAuthorizationError, isNetworkError, isNotFoundError, isRateLimitError, isServerError, isUiPathError, isValidationError, loadFromMetaTags, telemetryClient, track, trackEvent };
|
|
13330
|
+
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, index as DuFramework, EntityFieldDataType, EntityType, ErrorType, EscalationActionType, EscalationRecipientScope, EscalationTriggerType, ExchangeMap, FeedbackRating, FeedbackStatus, FieldDisplayType, HttpStatus, InputStreamSpeechSensitivity, InterruptType, JobPriority, JobSourceType, JobState, JobSubState, JobType, JoinType, LogicalOperator$1 as LogicalOperator, MAX_PAGE_SIZE, MessageMap, MessageRole, NetworkError, NotFoundError, PackageSourceType, PackageType, ProcessIncidentSeverity, ProcessIncidentStatus, ProcessIncidentType, QueryFilterOperator, RateLimitError, ReferenceType, RemoteControlAccess, RobotSize, RuntimeType, SDK_LOGGER_NAME, SDK_RUN_EVENT, SDK_SERVICE_NAME, SDK_VERSION, SERVICE, SLADurationUnit, ServerError, ServerlessJobType, SortOrder, StageTaskType, StartStrategy, StopStrategy, TargetFramework, TaskActivityType, TaskPriority, TaskSlaCriteria, TaskSlaStatus, TaskSourceName, TaskStatus, TaskType, TaskUserType, UNKNOWN$1 as UNKNOWN, UiPath, UiPathError, UiPathMetaTags, UserSettingsMap, VERSION, ValidationError, createAgentWithMethods, createCaseInstanceWithMethods, createConversationWithMethods, createEntityWithMethods, createJobWithMethods, createProcessInstanceWithMethods, createProcessWithMethods, createTaskWithMethods, getAppBase, getAsset, getErrorDetails, getLimitedPageSize, isAuthenticationError, isAuthorizationError, isNetworkError, isNotFoundError, isRateLimitError, isServerError, isUiPathError, isValidationError, loadFromMetaTags, telemetryClient, track, trackEvent };
|