@uipath/uipath-typescript 1.3.4 → 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 +1 -1
- package/dist/assets/index.mjs +1 -1
- package/dist/attachments/index.cjs +1 -1
- package/dist/attachments/index.mjs +1 -1
- package/dist/buckets/index.cjs +1 -1
- package/dist/buckets/index.mjs +1 -1
- package/dist/cases/index.cjs +1 -1
- package/dist/cases/index.mjs +1 -1
- package/dist/conversational-agent/index.cjs +1 -1
- package/dist/conversational-agent/index.mjs +1 -1
- package/dist/core/index.cjs +1 -1
- package/dist/core/index.d.ts +1 -1
- package/dist/core/index.mjs +1 -1
- package/dist/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 +236 -15
- package/dist/entities/index.d.ts +81 -0
- package/dist/entities/index.mjs +236 -15
- package/dist/feedback/index.cjs +1 -1
- package/dist/feedback/index.mjs +1 -1
- package/dist/index.cjs +491 -15
- package/dist/index.d.ts +1273 -8
- package/dist/index.mjs +493 -18
- package/dist/index.umd.js +491 -15
- package/dist/jobs/index.cjs +1 -1
- package/dist/jobs/index.mjs +1 -1
- package/dist/maestro-processes/index.cjs +1 -1
- package/dist/maestro-processes/index.mjs +1 -1
- package/dist/processes/index.cjs +1 -1
- package/dist/processes/index.mjs +1 -1
- package/dist/queues/index.cjs +1 -1
- package/dist/queues/index.mjs +1 -1
- package/dist/tasks/index.cjs +1 -1
- package/dist/tasks/index.mjs +1 -1
- package/package.json +11 -1
package/dist/index.cjs
CHANGED
|
@@ -5452,7 +5452,7 @@ function normalizeBaseUrl(url) {
|
|
|
5452
5452
|
// Connection string placeholder that will be replaced during build
|
|
5453
5453
|
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";
|
|
5454
5454
|
// SDK Version placeholder
|
|
5455
|
-
const SDK_VERSION = "1.3.
|
|
5455
|
+
const SDK_VERSION = "1.3.5";
|
|
5456
5456
|
const VERSION = "Version";
|
|
5457
5457
|
const SERVICE = "Service";
|
|
5458
5458
|
const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
|
|
@@ -7861,6 +7861,20 @@ function createParams(paramsObj = {}) {
|
|
|
7861
7861
|
return params;
|
|
7862
7862
|
}
|
|
7863
7863
|
|
|
7864
|
+
/**
|
|
7865
|
+
* Names of the per-field SQL constraint properties (i.e. the contents of `sqlType`
|
|
7866
|
+
* excluding its `name`). Used internally to validate user-supplied constraints
|
|
7867
|
+
* against the set of constraints that each `EntityFieldDataType` accepts.
|
|
7868
|
+
*
|
|
7869
|
+
* Enum values match the corresponding property names on `EntityCreateFieldOptions`.
|
|
7870
|
+
*/
|
|
7871
|
+
var EntityFieldConstraint;
|
|
7872
|
+
(function (EntityFieldConstraint) {
|
|
7873
|
+
EntityFieldConstraint["LengthLimit"] = "lengthLimit";
|
|
7874
|
+
EntityFieldConstraint["MaxValue"] = "maxValue";
|
|
7875
|
+
EntityFieldConstraint["MinValue"] = "minValue";
|
|
7876
|
+
EntityFieldConstraint["DecimalPrecision"] = "decimalPrecision";
|
|
7877
|
+
})(EntityFieldConstraint || (EntityFieldConstraint = {}));
|
|
7864
7878
|
/**
|
|
7865
7879
|
* Entity field data types (SQL types from API)
|
|
7866
7880
|
*/
|
|
@@ -7923,6 +7937,70 @@ const FieldDisplayTypeToDataType = {
|
|
|
7923
7937
|
[exports.FieldDisplayType.AutoNumber]: exports.EntityFieldDataType.AUTO_NUMBER,
|
|
7924
7938
|
[exports.FieldDisplayType.Relationship]: exports.EntityFieldDataType.RELATIONSHIP,
|
|
7925
7939
|
};
|
|
7940
|
+
/**
|
|
7941
|
+
* Default and fixed sqlType constraint values applied when the user does not provide them.
|
|
7942
|
+
* The API requires these to be present on field creation — without them the field
|
|
7943
|
+
* is stored in an incomplete state, causing "Field type cannot be changed" errors
|
|
7944
|
+
* when the UI later tries to edit advanced options.
|
|
7945
|
+
*/
|
|
7946
|
+
const ENTITY_FIELD_CONSTRAINT_DEFAULTS = {
|
|
7947
|
+
STRING_LENGTH_LIMIT: 200,
|
|
7948
|
+
MULTILINE_TEXT_LENGTH_LIMIT: 200,
|
|
7949
|
+
/** Fixed (non-overridable) length limit on DECIMAL payloads*/
|
|
7950
|
+
DECIMAL_LENGTH_LIMIT: 1000,
|
|
7951
|
+
DECIMAL_PRECISION: 2,
|
|
7952
|
+
/** Fixed (non-overridable) length limit for BIT (BOOLEAN) fields */
|
|
7953
|
+
BOOLEAN_LENGTH_LIMIT: 100,
|
|
7954
|
+
/** Fixed (non-overridable) length limit for DATE / DATETIMEOFFSET fields */
|
|
7955
|
+
DATE_LENGTH_LIMIT: 1000,
|
|
7956
|
+
/** Fixed (non-overridable) length limit for UNIQUEIDENTIFIER-backed FILE and RELATIONSHIP fields */
|
|
7957
|
+
UNIQUEIDENTIFIER_LENGTH_LIMIT: 300,
|
|
7958
|
+
/** Fixed (non-overridable) length limit for CHOICE_SET_MULTIPLE fields */
|
|
7959
|
+
CHOICE_SET_MULTIPLE_LENGTH_LIMIT: 4000,
|
|
7960
|
+
NUMERIC_MAX_VALUE: 1000000000000,
|
|
7961
|
+
NUMERIC_MIN_VALUE: -1e12,
|
|
7962
|
+
};
|
|
7963
|
+
/**
|
|
7964
|
+
* Per-field-type spec describing which {@link EntityFieldConstraint}s the user
|
|
7965
|
+
* may supply on create / update, and the inclusive value range for each.
|
|
7966
|
+
*
|
|
7967
|
+
* Source of truth: the platform's `Constants.cs` constraint table. Keys absent
|
|
7968
|
+
* from a type's spec are not user-configurable for that type; passing one
|
|
7969
|
+
* throws a `ValidationError`. Field types absent from this map (BOOLEAN, DATE,
|
|
7970
|
+
* DATETIME, DATETIME_WITH_TZ, FILE, RELATIONSHIP, UUID, CHOICE_SET_SINGLE,
|
|
7971
|
+
* CHOICE_SET_MULTIPLE, AUTO_NUMBER) accept no user-supplied constraints.
|
|
7972
|
+
*/
|
|
7973
|
+
const ENTITY_FIELD_CONSTRAINT_SPEC = {
|
|
7974
|
+
[exports.EntityFieldDataType.STRING]: {
|
|
7975
|
+
[EntityFieldConstraint.LengthLimit]: { min: 1, max: 4000 },
|
|
7976
|
+
},
|
|
7977
|
+
[exports.EntityFieldDataType.MULTILINE_TEXT]: {
|
|
7978
|
+
[EntityFieldConstraint.LengthLimit]: { min: 1, max: 10000 },
|
|
7979
|
+
},
|
|
7980
|
+
[exports.EntityFieldDataType.INTEGER]: {
|
|
7981
|
+
[EntityFieldConstraint.MaxValue]: { min: -Number.MAX_SAFE_INTEGER, max: Number.MAX_SAFE_INTEGER },
|
|
7982
|
+
[EntityFieldConstraint.MinValue]: { min: -Number.MAX_SAFE_INTEGER, max: Number.MAX_SAFE_INTEGER },
|
|
7983
|
+
},
|
|
7984
|
+
[exports.EntityFieldDataType.BIG_INTEGER]: {
|
|
7985
|
+
[EntityFieldConstraint.MaxValue]: { min: -Number.MAX_SAFE_INTEGER, max: Number.MAX_SAFE_INTEGER },
|
|
7986
|
+
[EntityFieldConstraint.MinValue]: { min: -Number.MAX_SAFE_INTEGER, max: Number.MAX_SAFE_INTEGER },
|
|
7987
|
+
},
|
|
7988
|
+
[exports.EntityFieldDataType.DECIMAL]: {
|
|
7989
|
+
[EntityFieldConstraint.MaxValue]: { min: -Number.MAX_SAFE_INTEGER, max: Number.MAX_SAFE_INTEGER },
|
|
7990
|
+
[EntityFieldConstraint.MinValue]: { min: -Number.MAX_SAFE_INTEGER, max: Number.MAX_SAFE_INTEGER },
|
|
7991
|
+
[EntityFieldConstraint.DecimalPrecision]: { min: 0, max: 10 },
|
|
7992
|
+
},
|
|
7993
|
+
[exports.EntityFieldDataType.FLOAT]: {
|
|
7994
|
+
[EntityFieldConstraint.MaxValue]: { min: -Number.MAX_SAFE_INTEGER, max: Number.MAX_SAFE_INTEGER },
|
|
7995
|
+
[EntityFieldConstraint.MinValue]: { min: -Number.MAX_SAFE_INTEGER, max: Number.MAX_SAFE_INTEGER },
|
|
7996
|
+
[EntityFieldConstraint.DecimalPrecision]: { min: 0, max: 10 },
|
|
7997
|
+
},
|
|
7998
|
+
[exports.EntityFieldDataType.DOUBLE]: {
|
|
7999
|
+
[EntityFieldConstraint.MaxValue]: { min: -Number.MAX_SAFE_INTEGER, max: Number.MAX_SAFE_INTEGER },
|
|
8000
|
+
[EntityFieldConstraint.MinValue]: { min: -Number.MAX_SAFE_INTEGER, max: Number.MAX_SAFE_INTEGER },
|
|
8001
|
+
[EntityFieldConstraint.DecimalPrecision]: { min: 0, max: 10 },
|
|
8002
|
+
},
|
|
8003
|
+
};
|
|
7926
8004
|
/**
|
|
7927
8005
|
* Maps SQL field types to friendly display names
|
|
7928
8006
|
*/
|
|
@@ -8522,6 +8600,13 @@ class EntityService extends BaseService {
|
|
|
8522
8600
|
* { fieldName: "product_name", type: EntityFieldDataType.STRING, isRequired: true, isUnique: true },
|
|
8523
8601
|
* { fieldName: "price", type: EntityFieldDataType.INTEGER, defaultValue: "0" },
|
|
8524
8602
|
* ], { displayName: "Product Catalog", description: "Our product catalog", isRbacEnabled: true });
|
|
8603
|
+
*
|
|
8604
|
+
* // With advanced sqlType constraints (lengthLimit, decimalPrecision, maxValue, minValue) and defaultValue
|
|
8605
|
+
* const ordersId = await entities.create("orders", [
|
|
8606
|
+
* { fieldName: "product_name", type: EntityFieldDataType.STRING, isRequired: true, isUnique: true, lengthLimit: 500 },
|
|
8607
|
+
* { fieldName: "price", type: EntityFieldDataType.DECIMAL, decimalPrecision: 4, maxValue: 999999, minValue: 0 },
|
|
8608
|
+
* { fieldName: "quantity", type: EntityFieldDataType.INTEGER, maxValue: 10000, minValue: 1, defaultValue: "0" },
|
|
8609
|
+
* ]);
|
|
8525
8610
|
* ```
|
|
8526
8611
|
* @internal
|
|
8527
8612
|
*/
|
|
@@ -8595,6 +8680,17 @@ class EntityService extends BaseService {
|
|
|
8595
8680
|
* updateFields: [{ id: "<fieldId>", displayName: "Unit Price", isRequired: true }],
|
|
8596
8681
|
* displayName: "Price Catalog",
|
|
8597
8682
|
* });
|
|
8683
|
+
*
|
|
8684
|
+
* // Add a STRING/DECIMAL field with explicit advanced sqlType constraints and defaultValue
|
|
8685
|
+
* await entities.updateById("<entityId>", {
|
|
8686
|
+
* addFields: [
|
|
8687
|
+
* { fieldName: "summary", type: EntityFieldDataType.STRING, lengthLimit: 500, defaultValue: "summary" },
|
|
8688
|
+
* { fieldName: "amount", type: EntityFieldDataType.DECIMAL, decimalPrecision: 4, maxValue: 999999, minValue: 0 },
|
|
8689
|
+
* ],
|
|
8690
|
+
* updateFields: [
|
|
8691
|
+
* { id: "<fieldId>", lengthLimit: 1000 },
|
|
8692
|
+
* ],
|
|
8693
|
+
* });
|
|
8598
8694
|
* ```
|
|
8599
8695
|
* @internal
|
|
8600
8696
|
*/
|
|
@@ -8638,6 +8734,21 @@ class EntityService extends BaseService {
|
|
|
8638
8734
|
const update = updateMap.get(f.id ?? '');
|
|
8639
8735
|
if (!update)
|
|
8640
8736
|
return f;
|
|
8737
|
+
const constraintUpdate = {
|
|
8738
|
+
...(update.lengthLimit !== undefined && { lengthLimit: update.lengthLimit }),
|
|
8739
|
+
...(update.maxValue !== undefined && { maxValue: update.maxValue }),
|
|
8740
|
+
...(update.minValue !== undefined && { minValue: update.minValue }),
|
|
8741
|
+
...(update.decimalPrecision !== undefined && { decimalPrecision: update.decimalPrecision }),
|
|
8742
|
+
};
|
|
8743
|
+
const hasConstraintUpdate = Object.keys(constraintUpdate).length > 0;
|
|
8744
|
+
if (hasConstraintUpdate) {
|
|
8745
|
+
if (!f.sqlType) {
|
|
8746
|
+
throw new ValidationError({
|
|
8747
|
+
message: `Cannot update constraints on field '${f.name}' (id: ${f.id}) — the field is missing sqlType metadata in the entity definition.`,
|
|
8748
|
+
});
|
|
8749
|
+
}
|
|
8750
|
+
this.validateFieldConstraints(this.resolveFieldDataType(f), update, f.name);
|
|
8751
|
+
}
|
|
8641
8752
|
return {
|
|
8642
8753
|
...f,
|
|
8643
8754
|
...(update.displayName !== undefined && { displayName: update.displayName }),
|
|
@@ -8647,6 +8758,7 @@ class EntityService extends BaseService {
|
|
|
8647
8758
|
...(update.isRbacEnabled !== undefined && { isRbacEnabled: update.isRbacEnabled }),
|
|
8648
8759
|
...(update.isEncrypted !== undefined && { isEncrypted: update.isEncrypted }),
|
|
8649
8760
|
...(update.defaultValue !== undefined && { defaultValue: update.defaultValue }),
|
|
8761
|
+
...(hasConstraintUpdate && f.sqlType && { sqlType: { ...f.sqlType, ...constraintUpdate } }),
|
|
8650
8762
|
};
|
|
8651
8763
|
});
|
|
8652
8764
|
}
|
|
@@ -8696,24 +8808,27 @@ class EntityService extends BaseService {
|
|
|
8696
8808
|
let transformedField = transformData(field, EntityMap);
|
|
8697
8809
|
// Map field type: prefer fieldDisplayType for types that share SQL types (File, ChoiceSet, AutoNumber)
|
|
8698
8810
|
if (transformedField.fieldDataType?.name) {
|
|
8699
|
-
const
|
|
8700
|
-
|
|
8701
|
-
|
|
8702
|
-
if (displayTypeMapped) {
|
|
8703
|
-
transformedField.fieldDataType.name = displayTypeMapped;
|
|
8704
|
-
}
|
|
8705
|
-
else {
|
|
8706
|
-
const rawSqlTypeName = field.sqlType?.name;
|
|
8707
|
-
const mapped = rawSqlTypeName ? EntityFieldTypeMap[rawSqlTypeName] : undefined;
|
|
8708
|
-
if (mapped) {
|
|
8709
|
-
transformedField.fieldDataType.name = mapped;
|
|
8710
|
-
}
|
|
8811
|
+
const mapped = this.tryResolveFieldDataType(transformedField.fieldDisplayType, field.sqlType?.name);
|
|
8812
|
+
if (mapped) {
|
|
8813
|
+
transformedField.fieldDataType.name = mapped;
|
|
8711
8814
|
}
|
|
8712
8815
|
}
|
|
8713
8816
|
this.transformNestedReferences(transformedField);
|
|
8714
8817
|
return transformedField;
|
|
8715
8818
|
});
|
|
8716
8819
|
}
|
|
8820
|
+
/**
|
|
8821
|
+
* Resolves an {@link EntityFieldDataType} from a field's `fieldDisplayType` and
|
|
8822
|
+
* raw SQL type name. Prefers `fieldDisplayType` to disambiguate types that
|
|
8823
|
+
* share a SQL type (FILE, CHOICE_SET_*, AUTO_NUMBER, RELATIONSHIP); falls back
|
|
8824
|
+
* to the SQL-type-name mapping. Returns `undefined` if neither resolves.
|
|
8825
|
+
*/
|
|
8826
|
+
tryResolveFieldDataType(fieldDisplayType, sqlTypeName) {
|
|
8827
|
+
const displayMapped = fieldDisplayType ? FieldDisplayTypeToDataType[fieldDisplayType] : undefined;
|
|
8828
|
+
if (displayMapped)
|
|
8829
|
+
return displayMapped;
|
|
8830
|
+
return sqlTypeName ? EntityFieldTypeMap[sqlTypeName] : undefined;
|
|
8831
|
+
}
|
|
8717
8832
|
/**
|
|
8718
8833
|
* Transforms nested reference objects in field metadata
|
|
8719
8834
|
*/
|
|
@@ -8754,11 +8869,16 @@ class EntityService extends BaseService {
|
|
|
8754
8869
|
/** Converts a user-facing EntityCreateFieldOptions to the raw API field payload */
|
|
8755
8870
|
buildSchemaFieldPayload(field) {
|
|
8756
8871
|
this.validateName(field.fieldName, 'field');
|
|
8757
|
-
const
|
|
8872
|
+
const fieldType = field.type ?? exports.EntityFieldDataType.STRING;
|
|
8873
|
+
this.validateFieldConstraints(fieldType, field, field.fieldName);
|
|
8874
|
+
const mapping = EntitySchemaFieldTypeMap[fieldType];
|
|
8758
8875
|
return {
|
|
8759
8876
|
name: field.fieldName,
|
|
8760
8877
|
displayName: field.displayName ?? field.fieldName,
|
|
8761
|
-
sqlType: {
|
|
8878
|
+
sqlType: {
|
|
8879
|
+
name: mapping.sqlTypeName,
|
|
8880
|
+
...this.buildSqlTypeConstraints(fieldType, field),
|
|
8881
|
+
},
|
|
8762
8882
|
fieldDisplayType: mapping.fieldDisplayType,
|
|
8763
8883
|
description: field.description ?? '',
|
|
8764
8884
|
isRequired: field.isRequired ?? false,
|
|
@@ -8771,6 +8891,107 @@ class EntityService extends BaseService {
|
|
|
8771
8891
|
...(field.referenceFieldName !== undefined && { referenceFieldName: field.referenceFieldName }),
|
|
8772
8892
|
};
|
|
8773
8893
|
}
|
|
8894
|
+
/**
|
|
8895
|
+
* Derives the user-facing {@link EntityFieldDataType} for a field on the raw
|
|
8896
|
+
* API response. Throws if the field's `fieldDisplayType` and `sqlType.name`
|
|
8897
|
+
* are both unmappable.
|
|
8898
|
+
*/
|
|
8899
|
+
resolveFieldDataType(f) {
|
|
8900
|
+
const mapped = this.tryResolveFieldDataType(f.fieldDisplayType, f.sqlType?.name);
|
|
8901
|
+
if (!mapped) {
|
|
8902
|
+
throw new ValidationError({
|
|
8903
|
+
message: `Cannot determine field type for '${f.name}' (id: ${f.id}) — sqlType '${f.sqlType?.name ?? '(missing)'}' and fieldDisplayType '${f.fieldDisplayType ?? '(missing)'}' are both unrecognized.`,
|
|
8904
|
+
});
|
|
8905
|
+
}
|
|
8906
|
+
return mapped;
|
|
8907
|
+
}
|
|
8908
|
+
/**
|
|
8909
|
+
* Validates that the user-supplied constraint properties on a field are
|
|
8910
|
+
* supported by the field's data type. Throws a `ValidationError` listing
|
|
8911
|
+
* any unsupported properties.
|
|
8912
|
+
*/
|
|
8913
|
+
validateFieldConstraints(type, field, fieldName) {
|
|
8914
|
+
const spec = ENTITY_FIELD_CONSTRAINT_SPEC[type] ?? {};
|
|
8915
|
+
const supported = Object.keys(spec);
|
|
8916
|
+
const provided = Object.values(EntityFieldConstraint).filter(name => field[name] !== undefined);
|
|
8917
|
+
const unsupported = provided.filter(p => !(p in spec));
|
|
8918
|
+
if (unsupported.length > 0) {
|
|
8919
|
+
const allowedDesc = supported.length > 0 ? supported.join(', ') : 'none';
|
|
8920
|
+
throw new ValidationError({
|
|
8921
|
+
message: `Field '${fieldName}' of type ${type} does not accept ${unsupported.join(', ')}. Allowed constraints for this type: ${allowedDesc}.`,
|
|
8922
|
+
});
|
|
8923
|
+
}
|
|
8924
|
+
// Range check: each user-supplied constraint must be within its allowed bounds.
|
|
8925
|
+
for (const name of provided) {
|
|
8926
|
+
const range = spec[name];
|
|
8927
|
+
const value = field[name];
|
|
8928
|
+
if (range && value !== undefined && (value < range.min || value > range.max)) {
|
|
8929
|
+
throw new ValidationError({
|
|
8930
|
+
message: `Field '${fieldName}' of type ${type} has ${name} ${value} out of range [${range.min}, ${range.max}].`,
|
|
8931
|
+
});
|
|
8932
|
+
}
|
|
8933
|
+
}
|
|
8934
|
+
// Cross-field check: when both bounds are user-supplied in the same call,
|
|
8935
|
+
// minValue must be strictly less than maxValue.
|
|
8936
|
+
if (field.minValue !== undefined && field.maxValue !== undefined && field.minValue >= field.maxValue) {
|
|
8937
|
+
throw new ValidationError({
|
|
8938
|
+
message: `Field '${fieldName}' of type ${type} has minValue ${field.minValue} >= maxValue ${field.maxValue}. minValue must be strictly less than maxValue.`,
|
|
8939
|
+
});
|
|
8940
|
+
}
|
|
8941
|
+
}
|
|
8942
|
+
/**
|
|
8943
|
+
* Returns the sqlType constraint fields for a given field type.
|
|
8944
|
+
*
|
|
8945
|
+
* The API requires specific constraint properties to be set per SQL type;
|
|
8946
|
+
* without them the field is stored in an incomplete state, causing
|
|
8947
|
+
* "Field type cannot be changed" errors when the UI later tries to edit
|
|
8948
|
+
* advanced options. User-supplied values from `EntityCreateFieldOptions`
|
|
8949
|
+
* override the defaults where the type accepts overrides.
|
|
8950
|
+
*/
|
|
8951
|
+
buildSqlTypeConstraints(type, field) {
|
|
8952
|
+
const defaults = ENTITY_FIELD_CONSTRAINT_DEFAULTS;
|
|
8953
|
+
switch (type) {
|
|
8954
|
+
case exports.EntityFieldDataType.STRING:
|
|
8955
|
+
return { lengthLimit: field.lengthLimit ?? defaults.STRING_LENGTH_LIMIT };
|
|
8956
|
+
case exports.EntityFieldDataType.MULTILINE_TEXT:
|
|
8957
|
+
return { lengthLimit: field.lengthLimit ?? defaults.MULTILINE_TEXT_LENGTH_LIMIT };
|
|
8958
|
+
case exports.EntityFieldDataType.DECIMAL:
|
|
8959
|
+
return {
|
|
8960
|
+
lengthLimit: defaults.DECIMAL_LENGTH_LIMIT,
|
|
8961
|
+
decimalPrecision: field.decimalPrecision ?? defaults.DECIMAL_PRECISION,
|
|
8962
|
+
maxValue: field.maxValue ?? defaults.NUMERIC_MAX_VALUE,
|
|
8963
|
+
minValue: field.minValue ?? defaults.NUMERIC_MIN_VALUE,
|
|
8964
|
+
};
|
|
8965
|
+
case exports.EntityFieldDataType.BOOLEAN:
|
|
8966
|
+
return { lengthLimit: defaults.BOOLEAN_LENGTH_LIMIT };
|
|
8967
|
+
case exports.EntityFieldDataType.DATE:
|
|
8968
|
+
case exports.EntityFieldDataType.DATETIME_WITH_TZ:
|
|
8969
|
+
return { lengthLimit: defaults.DATE_LENGTH_LIMIT };
|
|
8970
|
+
case exports.EntityFieldDataType.INTEGER:
|
|
8971
|
+
case exports.EntityFieldDataType.BIG_INTEGER:
|
|
8972
|
+
return {
|
|
8973
|
+
maxValue: field.maxValue ?? defaults.NUMERIC_MAX_VALUE,
|
|
8974
|
+
minValue: field.minValue ?? defaults.NUMERIC_MIN_VALUE,
|
|
8975
|
+
};
|
|
8976
|
+
case exports.EntityFieldDataType.FLOAT:
|
|
8977
|
+
case exports.EntityFieldDataType.DOUBLE:
|
|
8978
|
+
return {
|
|
8979
|
+
decimalPrecision: field.decimalPrecision ?? defaults.DECIMAL_PRECISION,
|
|
8980
|
+
maxValue: field.maxValue ?? defaults.NUMERIC_MAX_VALUE,
|
|
8981
|
+
minValue: field.minValue ?? defaults.NUMERIC_MIN_VALUE,
|
|
8982
|
+
};
|
|
8983
|
+
case exports.EntityFieldDataType.FILE:
|
|
8984
|
+
case exports.EntityFieldDataType.RELATIONSHIP:
|
|
8985
|
+
// UNIQUEIDENTIFIER fixed lengthLimit (300)
|
|
8986
|
+
return { lengthLimit: defaults.UNIQUEIDENTIFIER_LENGTH_LIMIT };
|
|
8987
|
+
case exports.EntityFieldDataType.CHOICE_SET_MULTIPLE:
|
|
8988
|
+
// CHOICE_SET_MULTIPLE fixed lengthLimit (4000)
|
|
8989
|
+
return { lengthLimit: defaults.CHOICE_SET_MULTIPLE_LENGTH_LIMIT };
|
|
8990
|
+
default:
|
|
8991
|
+
// UUID, CHOICE_SET_SINGLE, AUTO_NUMBER, DATETIME — (sqlType: { name })
|
|
8992
|
+
return {};
|
|
8993
|
+
}
|
|
8994
|
+
}
|
|
8774
8995
|
validateName(name, context) {
|
|
8775
8996
|
if (name.length < 3 || name.length > 100 || !/^[a-zA-Z]\w*$/.test(name)) {
|
|
8776
8997
|
const suggestion = name.replace(/\W/g, '').replace(/^[0-9_]+/, '');
|
|
@@ -12779,6 +13000,260 @@ exports.FeedbackStatus = void 0;
|
|
|
12779
13000
|
FeedbackStatus[FeedbackStatus["Dismissed"] = 2] = "Dismissed";
|
|
12780
13001
|
})(exports.FeedbackStatus || (exports.FeedbackStatus = {}));
|
|
12781
13002
|
|
|
13003
|
+
// Auto-generated from the OpenAPI spec — do not edit manually.
|
|
13004
|
+
var DocumentActionPriority;
|
|
13005
|
+
(function (DocumentActionPriority) {
|
|
13006
|
+
DocumentActionPriority["Low"] = "Low";
|
|
13007
|
+
DocumentActionPriority["Medium"] = "Medium";
|
|
13008
|
+
DocumentActionPriority["High"] = "High";
|
|
13009
|
+
DocumentActionPriority["Critical"] = "Critical";
|
|
13010
|
+
})(DocumentActionPriority || (DocumentActionPriority = {}));
|
|
13011
|
+
var DocumentActionStatus;
|
|
13012
|
+
(function (DocumentActionStatus) {
|
|
13013
|
+
DocumentActionStatus["Unassigned"] = "Unassigned";
|
|
13014
|
+
DocumentActionStatus["Pending"] = "Pending";
|
|
13015
|
+
DocumentActionStatus["Completed"] = "Completed";
|
|
13016
|
+
})(DocumentActionStatus || (DocumentActionStatus = {}));
|
|
13017
|
+
var DocumentActionType;
|
|
13018
|
+
(function (DocumentActionType) {
|
|
13019
|
+
DocumentActionType["Validation"] = "Validation";
|
|
13020
|
+
DocumentActionType["Classification"] = "Classification";
|
|
13021
|
+
})(DocumentActionType || (DocumentActionType = {}));
|
|
13022
|
+
|
|
13023
|
+
// Auto-generated from the OpenAPI spec — do not edit manually.
|
|
13024
|
+
var ProjectProperties;
|
|
13025
|
+
(function (ProjectProperties) {
|
|
13026
|
+
ProjectProperties["IsPredefined"] = "IsPredefined";
|
|
13027
|
+
ProjectProperties["SupportsTags"] = "SupportsTags";
|
|
13028
|
+
ProjectProperties["SupportsVersions"] = "SupportsVersions";
|
|
13029
|
+
ProjectProperties["IsSplittingEnabled"] = "IsSplittingEnabled";
|
|
13030
|
+
})(ProjectProperties || (ProjectProperties = {}));
|
|
13031
|
+
var ProjectType;
|
|
13032
|
+
(function (ProjectType) {
|
|
13033
|
+
ProjectType["Classic"] = "Classic";
|
|
13034
|
+
ProjectType["Modern"] = "Modern";
|
|
13035
|
+
ProjectType["IXP"] = "IXP";
|
|
13036
|
+
ProjectType["Unknown"] = "Unknown";
|
|
13037
|
+
})(ProjectType || (ProjectType = {}));
|
|
13038
|
+
var ResourceStatus;
|
|
13039
|
+
(function (ResourceStatus) {
|
|
13040
|
+
ResourceStatus["Unknown"] = "Unknown";
|
|
13041
|
+
ResourceStatus["NotStarted"] = "NotStarted";
|
|
13042
|
+
ResourceStatus["ExportInProgress"] = "ExportInProgress";
|
|
13043
|
+
ResourceStatus["ExportCompleted"] = "ExportCompleted";
|
|
13044
|
+
ResourceStatus["InProgress"] = "InProgress";
|
|
13045
|
+
ResourceStatus["Suspended"] = "Suspended";
|
|
13046
|
+
ResourceStatus["Resuming"] = "Resuming";
|
|
13047
|
+
ResourceStatus["Available"] = "Available";
|
|
13048
|
+
ResourceStatus["Error"] = "Error";
|
|
13049
|
+
ResourceStatus["Deleting"] = "Deleting";
|
|
13050
|
+
})(ResourceStatus || (ResourceStatus = {}));
|
|
13051
|
+
var ResourceType;
|
|
13052
|
+
(function (ResourceType) {
|
|
13053
|
+
ResourceType["Specialized"] = "Specialized";
|
|
13054
|
+
ResourceType["Generative"] = "Generative";
|
|
13055
|
+
ResourceType["Custom"] = "Custom";
|
|
13056
|
+
ResourceType["Unknown"] = "Unknown";
|
|
13057
|
+
})(ResourceType || (ResourceType = {}));
|
|
13058
|
+
|
|
13059
|
+
// Auto-generated from the OpenAPI spec — do not edit manually.
|
|
13060
|
+
var MarkupType;
|
|
13061
|
+
(function (MarkupType) {
|
|
13062
|
+
MarkupType["Unknown"] = "Unknown";
|
|
13063
|
+
MarkupType["Circled"] = "Circled";
|
|
13064
|
+
MarkupType["Underlined"] = "Underlined";
|
|
13065
|
+
MarkupType["Strikethrough"] = "Strikethrough";
|
|
13066
|
+
})(MarkupType || (MarkupType = {}));
|
|
13067
|
+
var ProcessingSource;
|
|
13068
|
+
(function (ProcessingSource) {
|
|
13069
|
+
ProcessingSource["Unknown"] = "Unknown";
|
|
13070
|
+
ProcessingSource["Ocr"] = "Ocr";
|
|
13071
|
+
ProcessingSource["Pdf"] = "Pdf";
|
|
13072
|
+
ProcessingSource["PlainText"] = "PlainText";
|
|
13073
|
+
ProcessingSource["PdfAndOcr"] = "PdfAndOcr";
|
|
13074
|
+
})(ProcessingSource || (ProcessingSource = {}));
|
|
13075
|
+
var Rotation;
|
|
13076
|
+
(function (Rotation) {
|
|
13077
|
+
Rotation["None"] = "None";
|
|
13078
|
+
Rotation["Rotated90"] = "Rotated90";
|
|
13079
|
+
Rotation["Rotated180"] = "Rotated180";
|
|
13080
|
+
Rotation["Rotated270"] = "Rotated270";
|
|
13081
|
+
Rotation["Other"] = "Other";
|
|
13082
|
+
})(Rotation || (Rotation = {}));
|
|
13083
|
+
var SectionType;
|
|
13084
|
+
(function (SectionType) {
|
|
13085
|
+
SectionType["Vertical"] = "Vertical";
|
|
13086
|
+
SectionType["Paragraph"] = "Paragraph";
|
|
13087
|
+
SectionType["Header"] = "Header";
|
|
13088
|
+
SectionType["Footer"] = "Footer";
|
|
13089
|
+
SectionType["Table"] = "Table";
|
|
13090
|
+
})(SectionType || (SectionType = {}));
|
|
13091
|
+
var TextType;
|
|
13092
|
+
(function (TextType) {
|
|
13093
|
+
TextType["Unknown"] = "Unknown";
|
|
13094
|
+
TextType["Text"] = "Text";
|
|
13095
|
+
TextType["Checkbox"] = "Checkbox";
|
|
13096
|
+
TextType["Handwriting"] = "Handwriting";
|
|
13097
|
+
TextType["Barcode"] = "Barcode";
|
|
13098
|
+
TextType["QRcode"] = "QRcode";
|
|
13099
|
+
TextType["Stamp"] = "Stamp";
|
|
13100
|
+
TextType["Logo"] = "Logo";
|
|
13101
|
+
TextType["Circle"] = "Circle";
|
|
13102
|
+
TextType["Underline"] = "Underline";
|
|
13103
|
+
TextType["Cut"] = "Cut";
|
|
13104
|
+
})(TextType || (TextType = {}));
|
|
13105
|
+
var WordGroupType;
|
|
13106
|
+
(function (WordGroupType) {
|
|
13107
|
+
WordGroupType["Sentence"] = "Sentence";
|
|
13108
|
+
WordGroupType["TableCell"] = "TableCell";
|
|
13109
|
+
WordGroupType["TableRowEnd"] = "TableRowEnd";
|
|
13110
|
+
WordGroupType["Heading"] = "Heading";
|
|
13111
|
+
WordGroupType["Other"] = "Other";
|
|
13112
|
+
})(WordGroupType || (WordGroupType = {}));
|
|
13113
|
+
|
|
13114
|
+
// Auto-generated from the OpenAPI spec — do not edit manually.
|
|
13115
|
+
var ModelKind;
|
|
13116
|
+
(function (ModelKind) {
|
|
13117
|
+
ModelKind["Classifier"] = "Classifier";
|
|
13118
|
+
ModelKind["Extractor"] = "Extractor";
|
|
13119
|
+
})(ModelKind || (ModelKind = {}));
|
|
13120
|
+
var ModelType;
|
|
13121
|
+
(function (ModelType) {
|
|
13122
|
+
ModelType["IXP"] = "IXP";
|
|
13123
|
+
ModelType["Modern"] = "Modern";
|
|
13124
|
+
ModelType["Predefined"] = "Predefined";
|
|
13125
|
+
})(ModelType || (ModelType = {}));
|
|
13126
|
+
|
|
13127
|
+
// Auto-generated from the OpenAPI spec — do not edit manually.
|
|
13128
|
+
var ClassifierDocumentTypeType;
|
|
13129
|
+
(function (ClassifierDocumentTypeType) {
|
|
13130
|
+
ClassifierDocumentTypeType["FormsAi"] = "FormsAi";
|
|
13131
|
+
ClassifierDocumentTypeType["SemiStructuredAi"] = "SemiStructuredAi";
|
|
13132
|
+
ClassifierDocumentTypeType["Helix"] = "Helix";
|
|
13133
|
+
ClassifierDocumentTypeType["Unknown"] = "Unknown";
|
|
13134
|
+
})(ClassifierDocumentTypeType || (ClassifierDocumentTypeType = {}));
|
|
13135
|
+
var CreateTaskPriority;
|
|
13136
|
+
(function (CreateTaskPriority) {
|
|
13137
|
+
CreateTaskPriority["Low"] = "Low";
|
|
13138
|
+
CreateTaskPriority["Medium"] = "Medium";
|
|
13139
|
+
CreateTaskPriority["High"] = "High";
|
|
13140
|
+
CreateTaskPriority["Critical"] = "Critical";
|
|
13141
|
+
})(CreateTaskPriority || (CreateTaskPriority = {}));
|
|
13142
|
+
var GptFieldType;
|
|
13143
|
+
(function (GptFieldType) {
|
|
13144
|
+
GptFieldType["Address"] = "Address";
|
|
13145
|
+
GptFieldType["Boolean"] = "Boolean";
|
|
13146
|
+
GptFieldType["Date"] = "Date";
|
|
13147
|
+
GptFieldType["Name"] = "Name";
|
|
13148
|
+
GptFieldType["Number"] = "Number";
|
|
13149
|
+
GptFieldType["Text"] = "Text";
|
|
13150
|
+
})(GptFieldType || (GptFieldType = {}));
|
|
13151
|
+
var ValidationDisplayMode;
|
|
13152
|
+
(function (ValidationDisplayMode) {
|
|
13153
|
+
ValidationDisplayMode["Classic"] = "Classic";
|
|
13154
|
+
ValidationDisplayMode["Compact"] = "Compact";
|
|
13155
|
+
})(ValidationDisplayMode || (ValidationDisplayMode = {}));
|
|
13156
|
+
|
|
13157
|
+
// Auto-generated from the OpenAPI spec — do not edit manually.
|
|
13158
|
+
var ResultsDataSource;
|
|
13159
|
+
(function (ResultsDataSource) {
|
|
13160
|
+
ResultsDataSource["Automatic"] = "Automatic";
|
|
13161
|
+
ResultsDataSource["Manual"] = "Manual";
|
|
13162
|
+
ResultsDataSource["ManuallyChanged"] = "ManuallyChanged";
|
|
13163
|
+
ResultsDataSource["Defaulted"] = "Defaulted";
|
|
13164
|
+
ResultsDataSource["External"] = "External";
|
|
13165
|
+
})(ResultsDataSource || (ResultsDataSource = {}));
|
|
13166
|
+
|
|
13167
|
+
// Auto-generated from the OpenAPI spec — do not edit manually.
|
|
13168
|
+
var ComparisonOperator;
|
|
13169
|
+
(function (ComparisonOperator) {
|
|
13170
|
+
ComparisonOperator["Equals"] = "Equals";
|
|
13171
|
+
ComparisonOperator["NotEquals"] = "NotEquals";
|
|
13172
|
+
ComparisonOperator["Greater"] = "Greater";
|
|
13173
|
+
ComparisonOperator["Less"] = "Less";
|
|
13174
|
+
ComparisonOperator["GreaterOrEqual"] = "GreaterOrEqual";
|
|
13175
|
+
ComparisonOperator["LessOrEqual"] = "LessOrEqual";
|
|
13176
|
+
})(ComparisonOperator || (ComparisonOperator = {}));
|
|
13177
|
+
var Criticality;
|
|
13178
|
+
(function (Criticality) {
|
|
13179
|
+
Criticality["Must"] = "Must";
|
|
13180
|
+
Criticality["Should"] = "Should";
|
|
13181
|
+
})(Criticality || (Criticality = {}));
|
|
13182
|
+
var FieldType;
|
|
13183
|
+
(function (FieldType) {
|
|
13184
|
+
FieldType["Text"] = "Text";
|
|
13185
|
+
FieldType["Number"] = "Number";
|
|
13186
|
+
FieldType["Date"] = "Date";
|
|
13187
|
+
FieldType["Name"] = "Name";
|
|
13188
|
+
FieldType["Address"] = "Address";
|
|
13189
|
+
FieldType["Keyword"] = "Keyword";
|
|
13190
|
+
FieldType["Set"] = "Set";
|
|
13191
|
+
FieldType["Boolean"] = "Boolean";
|
|
13192
|
+
FieldType["Table"] = "Table";
|
|
13193
|
+
FieldType["Internal"] = "Internal";
|
|
13194
|
+
FieldType["FieldGroup"] = "FieldGroup";
|
|
13195
|
+
FieldType["MonetaryQuantity"] = "MonetaryQuantity";
|
|
13196
|
+
})(FieldType || (FieldType = {}));
|
|
13197
|
+
var LogicalOperator;
|
|
13198
|
+
(function (LogicalOperator) {
|
|
13199
|
+
LogicalOperator["AND"] = "AND";
|
|
13200
|
+
LogicalOperator["OR"] = "OR";
|
|
13201
|
+
})(LogicalOperator || (LogicalOperator = {}));
|
|
13202
|
+
var RuleType;
|
|
13203
|
+
(function (RuleType) {
|
|
13204
|
+
RuleType["Mandatory"] = "Mandatory";
|
|
13205
|
+
RuleType["PossibleValues"] = "PossibleValues";
|
|
13206
|
+
RuleType["Regex"] = "Regex";
|
|
13207
|
+
RuleType["StartsWith"] = "StartsWith";
|
|
13208
|
+
RuleType["EndsWith"] = "EndsWith";
|
|
13209
|
+
RuleType["FixedLength"] = "FixedLength";
|
|
13210
|
+
RuleType["IsNumeric"] = "IsNumeric";
|
|
13211
|
+
RuleType["IsDate"] = "IsDate";
|
|
13212
|
+
RuleType["IsEmail"] = "IsEmail";
|
|
13213
|
+
RuleType["Contains"] = "Contains";
|
|
13214
|
+
RuleType["Expression"] = "Expression";
|
|
13215
|
+
RuleType["TableExpression"] = "TableExpression";
|
|
13216
|
+
RuleType["IsEmpty"] = "IsEmpty";
|
|
13217
|
+
})(RuleType || (RuleType = {}));
|
|
13218
|
+
|
|
13219
|
+
// Auto-generated from the OpenAPI spec — do not edit manually.
|
|
13220
|
+
var ActionStatus;
|
|
13221
|
+
(function (ActionStatus) {
|
|
13222
|
+
ActionStatus["Unassigned"] = "Unassigned";
|
|
13223
|
+
ActionStatus["Pending"] = "Pending";
|
|
13224
|
+
ActionStatus["Completed"] = "Completed";
|
|
13225
|
+
})(ActionStatus || (ActionStatus = {}));
|
|
13226
|
+
|
|
13227
|
+
var index = /*#__PURE__*/Object.freeze({
|
|
13228
|
+
__proto__: null,
|
|
13229
|
+
get ActionStatus () { return ActionStatus; },
|
|
13230
|
+
get ClassifierDocumentTypeType () { return ClassifierDocumentTypeType; },
|
|
13231
|
+
get ComparisonOperator () { return ComparisonOperator; },
|
|
13232
|
+
get CreateTaskPriority () { return CreateTaskPriority; },
|
|
13233
|
+
get Criticality () { return Criticality; },
|
|
13234
|
+
get DocumentActionPriority () { return DocumentActionPriority; },
|
|
13235
|
+
get DocumentActionStatus () { return DocumentActionStatus; },
|
|
13236
|
+
get DocumentActionType () { return DocumentActionType; },
|
|
13237
|
+
get FieldType () { return FieldType; },
|
|
13238
|
+
get GptFieldType () { return GptFieldType; },
|
|
13239
|
+
get LogicalOperator () { return LogicalOperator; },
|
|
13240
|
+
get MarkupType () { return MarkupType; },
|
|
13241
|
+
get ModelKind () { return ModelKind; },
|
|
13242
|
+
get ModelType () { return ModelType; },
|
|
13243
|
+
get ProcessingSource () { return ProcessingSource; },
|
|
13244
|
+
get ProjectProperties () { return ProjectProperties; },
|
|
13245
|
+
get ProjectType () { return ProjectType; },
|
|
13246
|
+
get ResourceStatus () { return ResourceStatus; },
|
|
13247
|
+
get ResourceType () { return ResourceType; },
|
|
13248
|
+
get ResultsDataSource () { return ResultsDataSource; },
|
|
13249
|
+
get Rotation () { return Rotation; },
|
|
13250
|
+
get RuleType () { return RuleType; },
|
|
13251
|
+
get SectionType () { return SectionType; },
|
|
13252
|
+
get TextType () { return TextType; },
|
|
13253
|
+
get ValidationDisplayMode () { return ValidationDisplayMode; },
|
|
13254
|
+
get WordGroupType () { return WordGroupType; }
|
|
13255
|
+
});
|
|
13256
|
+
|
|
12782
13257
|
/**
|
|
12783
13258
|
* Asset resolution utilities for UiPath Coded Apps
|
|
12784
13259
|
*
|
|
@@ -12869,6 +13344,7 @@ exports.ConversationMap = ConversationMap;
|
|
|
12869
13344
|
exports.DEFAULT_ITEMS_FIELD = DEFAULT_ITEMS_FIELD;
|
|
12870
13345
|
exports.DEFAULT_PAGE_SIZE = DEFAULT_PAGE_SIZE;
|
|
12871
13346
|
exports.DEFAULT_TOTAL_COUNT_FIELD = DEFAULT_TOTAL_COUNT_FIELD;
|
|
13347
|
+
exports.DuFramework = index;
|
|
12872
13348
|
exports.ErrorType = ErrorType;
|
|
12873
13349
|
exports.ExchangeMap = ExchangeMap;
|
|
12874
13350
|
exports.HttpStatus = HttpStatus;
|