@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/index.mjs CHANGED
@@ -5450,7 +5450,7 @@ function normalizeBaseUrl(url) {
5450
5450
  // Connection string placeholder that will be replaced during build
5451
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";
5452
5452
  // SDK Version placeholder
5453
- const SDK_VERSION = "1.3.4";
5453
+ const SDK_VERSION = "1.3.5";
5454
5454
  const VERSION = "Version";
5455
5455
  const SERVICE = "Service";
5456
5456
  const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
@@ -7753,13 +7753,13 @@ var EntityFieldDataType;
7753
7753
  /**
7754
7754
  * Logical operator for combining query filter groups
7755
7755
  */
7756
- var LogicalOperator;
7756
+ var LogicalOperator$1;
7757
7757
  (function (LogicalOperator) {
7758
7758
  /** Combine conditions with AND — all conditions must match */
7759
7759
  LogicalOperator[LogicalOperator["And"] = 0] = "And";
7760
7760
  /** Combine conditions with OR — any condition must match */
7761
7761
  LogicalOperator[LogicalOperator["Or"] = 1] = "Or";
7762
- })(LogicalOperator || (LogicalOperator = {}));
7762
+ })(LogicalOperator$1 || (LogicalOperator$1 = {}));
7763
7763
  /**
7764
7764
  * Comparison operators for entity query filters.
7765
7765
  * Not all operators are valid for all field types.
@@ -7859,6 +7859,20 @@ function createParams(paramsObj = {}) {
7859
7859
  return params;
7860
7860
  }
7861
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 = {}));
7862
7876
  /**
7863
7877
  * Entity field data types (SQL types from API)
7864
7878
  */
@@ -7921,6 +7935,70 @@ const FieldDisplayTypeToDataType = {
7921
7935
  [FieldDisplayType.AutoNumber]: EntityFieldDataType.AUTO_NUMBER,
7922
7936
  [FieldDisplayType.Relationship]: EntityFieldDataType.RELATIONSHIP,
7923
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
+ };
7924
8002
  /**
7925
8003
  * Maps SQL field types to friendly display names
7926
8004
  */
@@ -8520,6 +8598,13 @@ class EntityService extends BaseService {
8520
8598
  * { fieldName: "product_name", type: EntityFieldDataType.STRING, isRequired: true, isUnique: true },
8521
8599
  * { fieldName: "price", type: EntityFieldDataType.INTEGER, defaultValue: "0" },
8522
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
+ * ]);
8523
8608
  * ```
8524
8609
  * @internal
8525
8610
  */
@@ -8593,6 +8678,17 @@ class EntityService extends BaseService {
8593
8678
  * updateFields: [{ id: "<fieldId>", displayName: "Unit Price", isRequired: true }],
8594
8679
  * displayName: "Price Catalog",
8595
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
+ * });
8596
8692
  * ```
8597
8693
  * @internal
8598
8694
  */
@@ -8636,6 +8732,21 @@ class EntityService extends BaseService {
8636
8732
  const update = updateMap.get(f.id ?? '');
8637
8733
  if (!update)
8638
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
+ }
8639
8750
  return {
8640
8751
  ...f,
8641
8752
  ...(update.displayName !== undefined && { displayName: update.displayName }),
@@ -8645,6 +8756,7 @@ class EntityService extends BaseService {
8645
8756
  ...(update.isRbacEnabled !== undefined && { isRbacEnabled: update.isRbacEnabled }),
8646
8757
  ...(update.isEncrypted !== undefined && { isEncrypted: update.isEncrypted }),
8647
8758
  ...(update.defaultValue !== undefined && { defaultValue: update.defaultValue }),
8759
+ ...(hasConstraintUpdate && f.sqlType && { sqlType: { ...f.sqlType, ...constraintUpdate } }),
8648
8760
  };
8649
8761
  });
8650
8762
  }
@@ -8694,24 +8806,27 @@ class EntityService extends BaseService {
8694
8806
  let transformedField = transformData(field, EntityMap);
8695
8807
  // Map field type: prefer fieldDisplayType for types that share SQL types (File, ChoiceSet, AutoNumber)
8696
8808
  if (transformedField.fieldDataType?.name) {
8697
- const displayTypeMapped = transformedField.fieldDisplayType
8698
- ? FieldDisplayTypeToDataType[transformedField.fieldDisplayType]
8699
- : undefined;
8700
- if (displayTypeMapped) {
8701
- transformedField.fieldDataType.name = displayTypeMapped;
8702
- }
8703
- else {
8704
- const rawSqlTypeName = field.sqlType?.name;
8705
- const mapped = rawSqlTypeName ? EntityFieldTypeMap[rawSqlTypeName] : undefined;
8706
- if (mapped) {
8707
- transformedField.fieldDataType.name = mapped;
8708
- }
8809
+ const mapped = this.tryResolveFieldDataType(transformedField.fieldDisplayType, field.sqlType?.name);
8810
+ if (mapped) {
8811
+ transformedField.fieldDataType.name = mapped;
8709
8812
  }
8710
8813
  }
8711
8814
  this.transformNestedReferences(transformedField);
8712
8815
  return transformedField;
8713
8816
  });
8714
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
+ }
8715
8830
  /**
8716
8831
  * Transforms nested reference objects in field metadata
8717
8832
  */
@@ -8752,11 +8867,16 @@ class EntityService extends BaseService {
8752
8867
  /** Converts a user-facing EntityCreateFieldOptions to the raw API field payload */
8753
8868
  buildSchemaFieldPayload(field) {
8754
8869
  this.validateName(field.fieldName, 'field');
8755
- const mapping = EntitySchemaFieldTypeMap[field.type ?? EntityFieldDataType.STRING];
8870
+ const fieldType = field.type ?? EntityFieldDataType.STRING;
8871
+ this.validateFieldConstraints(fieldType, field, field.fieldName);
8872
+ const mapping = EntitySchemaFieldTypeMap[fieldType];
8756
8873
  return {
8757
8874
  name: field.fieldName,
8758
8875
  displayName: field.displayName ?? field.fieldName,
8759
- sqlType: { name: mapping.sqlTypeName },
8876
+ sqlType: {
8877
+ name: mapping.sqlTypeName,
8878
+ ...this.buildSqlTypeConstraints(fieldType, field),
8879
+ },
8760
8880
  fieldDisplayType: mapping.fieldDisplayType,
8761
8881
  description: field.description ?? '',
8762
8882
  isRequired: field.isRequired ?? false,
@@ -8769,6 +8889,107 @@ class EntityService extends BaseService {
8769
8889
  ...(field.referenceFieldName !== undefined && { referenceFieldName: field.referenceFieldName }),
8770
8890
  };
8771
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
+ }
8772
8993
  validateName(name, context) {
8773
8994
  if (name.length < 3 || name.length > 100 || !/^[a-zA-Z]\w*$/.test(name)) {
8774
8995
  const suggestion = name.replace(/\W/g, '').replace(/^[0-9_]+/, '');
@@ -12777,6 +12998,260 @@ var FeedbackStatus;
12777
12998
  FeedbackStatus[FeedbackStatus["Dismissed"] = 2] = "Dismissed";
12778
12999
  })(FeedbackStatus || (FeedbackStatus = {}));
12779
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
+
12780
13255
  /**
12781
13256
  * Asset resolution utilities for UiPath Coded Apps
12782
13257
  *
@@ -12852,4 +13327,4 @@ function getAppBase() {
12852
13327
  return getMetaTagContent(UiPathMetaTags.APP_BASE) || '/';
12853
13328
  }
12854
13329
 
12855
- 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 };