@fluid-experimental/property-common 1.1.0 → 1.2.0

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.
@@ -777,7 +777,7 @@ export declare const constants: {
777
777
  * methods: Workspace.get, Property.get
778
778
  * Workspace.get and Property.get take in an id (string or number) or an array of ids.
779
779
  * @example
780
- * ```ts
780
+ * ```typescript
781
781
  *.get(‘position’).get(‘x’) or .get([‘property’, ‘x’])
782
782
  * ```
783
783
  */
package/dist/constants.js CHANGED
@@ -315,7 +315,7 @@ const PropertyError = {
315
315
  * methods: Workspace.get, Property.get
316
316
  * Workspace.get and Property.get take in an id (string or number) or an array of ids.
317
317
  * @example
318
- * ```ts
318
+ * ```typescript
319
319
  *.get(‘position’).get(‘x’) or .get([‘property’, ‘x’])
320
320
  * ```
321
321
  */
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,4BAA4B;AAE5B;;GAEG;AACH,MAAM,oBAAoB,GAAG;IACzB;;;;;;;OAOG;IACH,oBAAoB,EAChB,+FAA+F;IAEnG;;;;;OAKG;IACH,sBAAsB,EAClB,oEAAoE;IAExE;;;OAGG;IACH,iBAAiB,EACb,0DAA0D;IAE9D;;;;;;;;;;;;;OAaG;IACH,eAAe,EACX,8FAA8F;IAElG;;;;;OAKG;IACH,eAAe,EACX,0DAA0D;IAE9D;;;;;;;OAOG;IACH,mBAAmB,EACf,wCAAwC;IAE5C;;;;;;OAMG;IACH,gCAAgC,EAC5B,wEAAwE;IAE5E;;;OAGG;IACH,WAAW,EACP,+CAA+C;IAEnD;;;OAGG;IACH,oBAAoB,EAChB,gFAAgF;IAEpF;;OAEG;IACH,qBAAqB,EACjB,sDAAsD;IAE1D;;;;OAIG;IACH,iCAAiC,EAC7B,yGAAyG;IAE7G;;OAEG;IACH,kBAAkB,EACd,kEAAkE;IAEtE;;OAEG;IACH,6BAA6B,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D;;OAEG;IACH,0BAA0B,EACtB,wEAAwE;IAE5E;;OAEG;IACH,4BAA4B,EACxB,0EAA0E;IAE9E;;OAEG;IACH,yBAAyB,EACrB,mFAAmF;IAEvF;;OAEG;IACH,yBAAyB,EACrB,mFAAmF;IAEvF;;OAEG;IACH,4BAA4B,EAAE,0EAA0E;IAExG;;OAEG;IACH,mBAAmB,EAAE,+DAA+D;IAEpF;;OAEG;IACH,yBAAyB,EAAE,qDAAqD;IAEhF;;OAEG;IACH,sBAAsB,EAAE,mDAAmD;IAE3E;;OAEG;IACH,gBAAgB,EAAE,0CAA0C;IAE5D;;OAEG;IACH,YAAY,EAAE,8DAA8D;IAE5E;;MAEE;IACF,6BAA6B,EAAE,qFAAqF;IAEpH;;QAEI;IACJ,cAAc,EAAE,8CAA8C;IAE9D;;OAEG;IACH,yBAAyB,EAAE,2CAA2C;IAEtE;;OAEG;IACH,qBAAqB,EAAE,6DAA6D;IAEpF;;OAEG;IACH,mCAAmC,EAAE,0EAA0E;CAClH,CAAC;AAEF,MAAM,uBAAuB,GAAG,GAAG,CAAC;AACpC,MAAM,iBAAiB,qIAChB,cAAc,GACd,aAAa,GACb,oBAAoB,GACpB,eAAe,GACf,oBAAoB,GACpB,cAAc,GACd,UAAU,GACV,iBAAiB,GACjB,WAAW,CACjB,CAAC;AAEW,QAAA,SAAS,GAAG;IACrB,GAAG,EAAE,iBAAiB;IACtB,uBAAuB;CAC1B,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\n/* eslint-disable max-len */\n\n/**\n * Error messages for the Schema Validator\n */\nconst SchemaValidatorError = {\n /**\n * methods: PropertyFactory.register\n * The context ‘set’ is only valid for properties that are instances of NamedProperties. If you want to\n * use a context of ‘set’, make sure your template includes:\n * Inherits: ‘NamedProperty’\n * Or\n * Inherits: [‘NamedProperty’, …]\n */\n SET_ONLY_NAMED_PROPS:\n 'SV-001: Only properties that inherit from NamedProperty can have a context of \"set\". typeid: ',\n\n /**\n * You updated an existing template but the change to the version number was not as expected.\n * Make sure you updated your version number correctly. You may have violated one of the following rules:\n * - Adding one or more template attributes is a MINOR change.\n * - Removing one or more template attributes is a MAJOR change.\n */\n CHANGE_LEVEL_TOO_LOW_1:\n \"SV-002: Template mutation requires a higher version change level: \",\n\n /**\n * methods: PropertyFactory.register\n * The template version number is not valid. A valid version number should look like: ‘1.0.0’\n */\n INVALID_VERSION_1:\n \"SV-003: Invalid template version in 'typeid' attribute: \",\n\n /**\n * methods: PropertyFactory.register\n * Your property template should include a typeid attribute.\n * @example\n *```json\n * {\n * \"typeid\": \"my.example:point2d-1.0.0\",\n * \"properties\": [\n * {\"id\": \"x\", \"typeid\": \"Float64\"},\n * {\"id\": \"y\", \"typeid\": \"Float64\"}\n * ]\n *}\n *```\n */\n MISSING_TYPE_ID:\n \"SV-004: Template is missing the mandatory 'typeid' attribute. This is not a valid template: \",\n\n /**\n * methods: PropertyFactory.register\n * Typeid should contain a template version number.\n * @example\n * “typeid: my.example:point2d-1.0.0”\n */\n MISSING_VERSION:\n \"SV-005: Missing template version in 'typeid' attribute: \",\n\n /**\n * methods: PropertyFactory.register\n * The template you are using is different from the previous version and you did not update the version number.\n * If any changes were made to the template, you should update the version number to a higher number.\n * - Major change: removing one or more attribute (e.g. 1.0.0 -\\> 2.0.0)\n * - Minor change: adding one or more attribute (e.g. 1.0.0 -\\> 1.1.0)\n * - Patch: template description changes (e.g. 1.0.0 -\\> 1.0.1)\n */\n MODIFIED_TEMPLATE_1:\n \"SV-006: Template has changed at path: \",\n\n /**\n * methods: PropertyFactory.register\n * When changing your template, you need to increase its version number. For example, if the previous version\n * number was 1.0.0, it should increase to 1.0.1 for a patch (if the template description has changed),\n * to 1.1.0 for a minor change (if you added one or more attributes) or to 2.0.0 for a major change (if you\n * removed one or more attributes).\n */\n MODIFIED_TEMPLATE_SAME_VERSION_1:\n \"SV-007: Template has changed but its version was not increased. Path: \",\n\n /**\n * methods: PropertyFactory.register\n * PropertyFactory.register requires a template as a parameter.\n */\n NO_TEMPLATE:\n \"SV-008: Template cannot be null or undefined.\",\n\n /**\n * methods: PropertyFactory.register\n * When updating a template’s version number, the version number can only increase, never decrease.\n */\n VERSION_REGRESSION_1:\n \"SV-009: New template version is older than the previously registered version: \",\n\n /**\n * Your template contains a typeid that is not a string.\n */\n TYPEID_MUST_BE_STRING:\n \"SV-010: typeid must be a string. This is not valid: \",\n\n /**\n * INTERNAL ERROR - If you encounter this error, please contact the development team.\n * The TemplateValidator constructor should have in its parameters param.inheritsFrom and params.hasSchema.\n * Neither of them can be undefined.\n */\n MISSING_INHERITSFROM_OR_HASSCHEMA:\n \"SV-011: Internal error: TemplateValidator constructor missing one of inheritsFrom or hasSchema function\",\n\n /**\n * Your template has an invalid key for the kind of map it is.\n */\n KEY_MUST_BE_TYPEID:\n \"SV-012: A key of a typeid key map must be a valid typeids. Key: \",\n\n /**\n * Your template has an invalid contextKeyType parameter.\n */\n INVALID_OPTION_NONE_CONSTANTS:\n \"SV-013: A map with typeids as keys must be constant\",\n\n /**\n * You tried to use draft as a versoin when it is not enabled.\n */\n DRAFT_AS_VERSION_TYPEID:\n \"SV-014: By default, draft is not a valid version for a typeId. Set allowDraft to true to support this.\",\n};\n\nconst TypeidHelperError = {\n /**\n * INTERNAL ERROR - If you encounter this error, please contact the development team.\n */\n TYPEID_NOT_DEFINED: \"TH-001: extractVersion requires a typeid parameter\",\n};\n\nconst PropertyError = {\n TYPEID_NOT_NATIVE: \"TYPEID_NOT_NATIVE\",\n /**\n * methods: ArrayProperty.length.set, StringProperty.length.set\n * Cannot directly set the array.length or string.length. This is a read-only property.\n */\n MODIFY_READ_ONLY: \"PR-001: Trying to modify read only property value (array.length).\",\n\n /**\n * methods: Property.getRelativePath\n * There is no path between the property and the ancestor you passed in to .getRelativePath.\n */\n NO_PATH_BETWEEN: \"PR-002: No path between \",\n\n /**\n * methods: Property.applyChangeSet\n * One of the paths included in your changeSet is not valid for this property.\n * Check that the modifications in the changeSet match the structure of the template.\n */\n INVALID_PATH: \"PR-003: Invalid path in ChangeSet: \",\n\n /**\n * methods: NodeProperty.insert\n * The property you inserted into a NodeProperty has a parent.\n * If your property has a parent, changing the property’s id will break the parent.\n * Make the change to the parent first.\n */\n ID_CHANGE_FOR_PROPERTY_WITH_PARENT: \"PR-004: Cannot change the ID of a property that has a parent. Could not change id: \",\n\n /**\n * methods: Property.resolvePath\n * Part of the path entered to Property.resolvePath was not valid.\n */\n INVALID_PATH_TOKEN: \"PR-005: ResolvePath error: accessed a child via an invalid path syntax: \",\n\n /**\n * methods: MapProperty.insert, NodeProperty.insert, ReferenceMapProperty.insert, Workspace.insert,\n * SetProperty.insert\n * Your map, set or nodeproperty already contains an entry under in_key.\n */\n PROPERTY_ALREADY_EXISTS: \"PR-006: The property already exists in this collection: \",\n\n /**\n * methods: MapProperty.applyChangeset, NodeProperty.applyChangeset, SetProperty.applyChangeset\n * The changeset you applied contains properties that have already been inserted.\n * Check the ‘insert’ fields in your changeSet for properties that might already exist.\n */\n INSERTED_EXISTING_ENTRY: \"PR-007: Inserted an already existing entry: \",\n\n /**\n * methods: MapProperty.remove, SetProperty.remove\n * Tried to remove an entry that does not exist.\n * This can be caused indirectly by deserialize / applyChangeset methods.\n * One of the ‘remove’ fields in your changeSet must contain a property that does not exist.\n */\n REMOVED_NON_EXISTING_ENTRY: \"PR-008: Trying to remove a non-existing entry: \",\n\n /**\n * methods: MapProperty.applyChangeset, NodeProperty.applyChangeset, SetProperty.applyChangeset\n * One of the key you are trying to modify in your changeSet does not exist.\n * One of the ‘modify’ fields in your changeSet refers to a property that does not exist.\n */\n MODIFY_NON_EXISTING_ENTRY: \"PR-009: Trying to modify a not existing entry: \",\n\n /**\n * methods: MapProperty.insert, MapProperty.set, SetProperty.insert, NodeProperty.insert\n * The value you are trying to insert in your map property, set property or node property has a parent.\n * You cannot insert a property that has a parent.\n */\n INSERTED_ENTRY_WITH_PARENT: \"PR-010: Trying to insert into a collection a property that already has \" +\n \"a parent.\",\n\n /**\n * methods: Property.resolvePath, Workspace.resolvePath\n * Paths should not contain empty sections such as ‘..’, ‘//’ or ‘[], etc.\n * Sections in the path are delimited by ‘.’ ‘[ ]’, ‘/’ .\n * There should always be a path between any two delimiters.\n */\n EMPTY_TOKEN: \"PR-011: ResolvePath error: Encountered empty token in path: \",\n\n /**\n * methods: Property.resolvePath, Workspace.resolvePath\n * Paths should not contain quotes except at the beginning and end of the path.\n * For example: resolvePath('my\"path.nested\".other') is not valid because the first quote is in front of ‘path’\n * but after the ‘.nested’ which is part of the subsequent path.\n */\n QUOTES_WITHIN_TOKEN: \"PR-012: ResolvePath error: Quotes must only be at the start and the \" +\n \"end of a path. Error in path: \",\n\n /**\n * methods: Property.resolvePath, Workspace.resolvePath\n * Paths should not end with a ‘.’\n */\n DOT_AT_END: \"PR-013: ResolvePath error: Encountered a dot at the end of path: \",\n\n /**\n * methods: Property.resolvePath, Workspace.resolvePath\n * Paths using square brackets should not contain ‘.’ within those square brackets.\n * If your path contains any dots, these should be escaped e.g. [my\\.path] instead of [my.path].\n */\n DOTS_IN_SQUARE_BRACKETS: \"PR-014: ResolvePath error: Encountered a dot within a square bracket. \" +\n \"These have to be escaped. Error in path: \",\n\n /**\n * methods: Property.resolvePath, Workspace.resolvePath\n * resolvePath error while parsing your string.\n * It encountered an end to a path segment that was not\n * followed by a “.” or a “[“ indicating the beginning of a new segment.\n */\n MISSING_DOT_AT_SEGMENT_START: \"PR-015: Missing . or [ at segment start in path: \",\n\n /**\n * methods: Property.resolvePath, Workspace.resolvePath\n * Closing square bracket not followed by the correct character (., [ or *).\n * For example, this is not valid: resolvePath(myArray[2]nested).\n * This is valid: resolvePath(myArray[2].nested).\n */\n INVALID_END_OF_SQUARE_BRACKETS: \"PR-016: ResolvePath error: Square brackets have to be followed either \" +\n 'by \".\" or by \"[\" or by \"*\". Error in path: ',\n\n /**\n * methods: Property.resolvePath, Workspace.resolvePath\n * Every opening bracket ([) needs a matching closing bracket (])\n */\n UNCLOSED_BRACKETS: \"PR-017: ResolvePath error: Unclosed brackets at the end of path: \",\n\n /**\n * methods: Property.resolvePath, Workspace.resolvePath\n * Any closing bracket (]) must be preceded by a matching opening bracket ([).\n */\n CLOSING_BRACKET_WITHOUT_OPENING: \"PR-018: ResolvePath error: Encountered closing bracket without \" +\n \"corresponding opening one in path: \",\n\n /**\n * methods: Property.resolvePath, Workspace.resolvePath\n */\n INVALID_ESCAPE_SEQUENCE: \"PR-019: Encountered an invalid escape sequence in path: \",\n\n /**\n * methods: Property.resolvePath, Workspace.resolvePath\n * A quotation mark at the beginning of a path must have a matching closing quotation mark\n * at the end of the same path.\n */\n UNCLOSED_QUOTATION_MARKS: \"PR-020: ResolvePath error: Encountered unclosed quotation marks in path: \",\n\n /**\n * methods: SetProperty.insert, SetProperty.set, SetProperty.setValues\n * The property you insert in a setProperty must be an instance of NamedProperty.\n * When creating the property to be inserted, make sure it inherits from NamedProperty.\n * @example\n * #Creating a property that inherits from NamedProperty\n * ```json\n * {\n * typeid:”my.example:myprop-1.0.0”,\n * inherits:’NamedProperty’ (or [‘NamedProperty’, …]\n * ...\n * }\n *```\n */\n CANT_INSERT_NON_NAMED_PROPERTIES: \"PR-021: Set can only contain named properties\",\n\n /**\n * methods: NodeProperty.insert, Workspace.insert\n * The property you inserted does not have an id.\n * Unless the property is an instance of NamedProperty, you must pass in an id as the first parameter\n * (and the property second)\n */\n ADDED_CHILD_WITHOUT_ID: \"PR-022: Added child without id.\",\n\n /**\n * methods: ArrayProperty.resolvePath\n * Cannot use .resolvePath on a primitive array, only on a Custom type array.\n * For a primitive array, use .getValue instead.\n * For example, instead of MyValueArray.resolvePath(1), use MyValueArray.getValue(1)\n */\n NO_PATHS_FOR_NON_PRIMITIVE_ARRAYS: \"PR-023: Path resolution is not supported for primitive type arrays.\",\n\n /**\n * methods: ArrayProperty.resolvePath\n * When using an array index as part of your path, it needs to have a numeric value.\n */\n INVALID_NON_NUMERIC_SEGMENT_IN_PATH: \"PR-024: ResolvePath error: Accessed an array via an non numeric index: \",\n\n /**\n * methods: ArrayProperty.getRelativePath, ArrayProperty.getAbsolutePath\n * INTERNAL ERROR\n * If you encounter this error, please contact the development team.\n * Part of the path you are trying to find points to a non-existing array item.\n */\n GET_PATH_SEGMENT_CALLED_FOR_NON_ENTRY: \"PR-025: Internal error: _getPathSegmentForChildNode has been called \" +\n \"for an entry that is not an entry of the collection. \",\n\n /**\n * methods:\n * The changeSet passed to .deserialize was not a valid non-normalized changeset.\n */\n NO_NORMALIZED_CHANGESET: \"PR-026: deserialize was called with a non-normalized ChangeSet.\",\n\n /**\n * INTERNAL ERROR - If you encounter this error, please contact the development team.\n * One of your changesets contained a NamedProperty without a GUID.\n * This should not happen and should have been validated already.\n */\n MISSING_GUID_IN_NORMALIZED_CHANGESET: \"PR-027: Missing GUID in a normalized ChangeSet with named properties\",\n\n /**\n * methods: EnumProperty.getEnumString, EnumProperty.setValue, EnumProperty.setEnumByString,\n * EnumProperty.getEnumString, EnumArrayProperty.getEnumStrings\n * This Enum Property does not have any entry with that value.\n * EnumProperty.getEnumByString -\\> the EnumProperty you used to pass this function does not have an entry.\n * EnumProperty.setValue -\\> no entry exists for in_value\n * EnumProperty.setEnumByString -\\> no entry exists for in_stringId\n * EnumArrayProperty.getEnumString -\\> the value found at in_position does not correspond to an entry.\n * EnumArrayProperty.getEnumStrings -\\> one of the values found at one of the positions sought does\n * not correspond to an entry.\n */\n UNKNOWN_ENUM: \"PR-028: enum value unknown: \",\n\n /**\n * methods: Property.applyChangeSet\n * Changeset contains an operation that is unknown.\n * Valid operations are insert, modify and remove.\n */\n UNKNOWN_OPERATION: \"PR-029: Unknown ChangeSet operation: \",\n\n /**\n * methods: Workspace.remove, NodeProperty.remove\n * The property you passed to workspace.remove or nodeProperty.remove does not exist.\n * Check that you passed the correct property, and that it has not yet been removed.\n */\n REMOVING_NON_EXISTING_KEY: \"PR-033: Trying to remove something that does not exist: \",\n\n /**\n * methods: Workspace.get, Property.get\n * Workspace.get and Property.get take in an id (string or number) or an array of ids.\n * @example\n * ```ts\n *.get(‘position’).get(‘x’) or .get([‘property’, ‘x’])\n * ```\n */\n STRING_OR_ARRAY_STRINGS: \"PR-034: in_id must be a string, a number or an array of these. This is not valid: \",\n\n /**\n * methods: Property.serialize\n * Property.serialize only takes in one parameter: an options object. That parameter is optional.\n */\n SERIALIZE_TAKES_OBJECT: \"PR-035: Argument of serialize() should be an object.\",\n\n /**\n * ArrayProperty.insert, ArrayProperty.insertRange\n * The in_position (for .insert) or in_offset (for .insertRange) should not be smaller than 0\n * or larger than the length of the array.\n */\n START_OFFSET_INVALID: \"PR-036: ArrayProperty: insert range - Start offset is invalid: \",\n\n // PR-037 removed\n\n /**\n * ArrayProperty.remove, ArrayProperty.removeRange, ArrayProperty.pop\n * INTERNAL ERROR - If you encounter this error, please contact the development team.\n * The item (or one of the items) you are trying to remove from the array has a parent that is not the array.\n * This should not happen because you should not have been able to insert the item in the array in the first place.\n */\n CANNOT_REMOVE_WITH_DIFFERENT_PARENT: \"PR-038: Internal error: Trying to remove from an array a property that \" +\n \"has not the array as parent.\",\n\n /**\n * methods ArrayProperty.set, ArrayProperty.setRange\n * Your first parameter: in_position (for .set) and in_offset (for .setRange) cannot have a negative value.\n */\n START_OFFSET_NEGATIVE: \"PR-039: ArrayProperty: Modify range - Start offset cannot be negative: \",\n\n /**\n * methods: ArrayProperty.removeRange, ArrayProperty.setRange, ArrayProperty.insertRange,\n * ArrayProperty.insert, EnumArrayProperty.getEnumStrings\n * The parameter needs to be a number.\n * For .removeRange: in_offset and in_deleteCount\n * For .setRange: in_offset\n * For .insertRange: in_offset\n * For .getEnumStrings: in_offset, in_length\n * For StringProperty.insert: in_position\n */\n NOT_NUMBER: \"PR-049: This parameter must be a number: parameter: \",\n\n /**\n * methods: Property.traverseUp, Property.traverseDown\n * Property.traverseUp and Property.traverseDown take one parameter: a callback function\n */\n CALLBACK_NOT_FCT: \"PR-050: traverseUp / traverseDown parameter: in_callback must \" +\n \"be a function.\",\n\n /**\n * methods: ArrayProperty.insertRange\n * Array.insertRange takes two parameters. The second one (in_array) must be an array.\n * To pass in only one item, either use .insert(index, item)\n * or put that item into an array: .insertRange(index, [item])\n */\n IN_ARRAY_NOT_ARRAY: \"PR-051: Parameter error: in_array must be an array for method: \",\n\n /**\n * methods: EnumProperty.setEnumByString\n * EnumProperty.setEnumByString takes one parameter: a string id. It must be a string.\n */\n STRING_ID_MUST_BE_STRING: \"PR-052: EnumProperty.setEnumByString parameter: in_stringId must \" +\n \"be a string. This is not valid: \",\n\n /**\n * methods: Integer64Property.setValueHigh\n * Integer64Property.setValueHigh takes one parameter: a number.\n */\n IN_HIGH_MUST_BE_NUMBER: \"PR-053: Integer64Property.setValueHigh parameter: in_high must \" +\n \"be a number. This is not valid: \",\n\n /**\n * methods: Integer64Property.setValueLow\n * Integer64Property.setValueLow takes one parameter: a number.\n */\n IN_LOW_MUST_BE_NUMBER: \"PR-054: Integer64Property.setValueLow parameter: in_low must \" +\n \"be a number. This is not valid: \",\n\n /**\n * methods: IntegerProperty.toString\n * Integer64Property.toString takes one optional parameter: a number (in_radix).\n * If no value is passed, will default to 10.\n */\n IN_RADIX_MUST_BE_NUMBER: \"PR-055: Integer64Property.toString parameter: in_radix must be a number. This is not valid: \",\n\n /**\n * methods: IntegerProperty.fromString\n * Integer64Property.fromString takes two parameters. The first parameter (in_string) must be a string.\n * (the second parameter is in_radix, a number. It is optional: defaults to 10).\n */\n IN_STRING_MUST_BE_STRING: \"PR-056: Integer64Property.fromString parameter: in_string must \" +\n \"be a string. This is not valid: \",\n\n /**\n * methods: Integer64Property.fromString\n * Integer64Property.fromString takes two parameters. The second parameter is optional but if passed,\n * it must be a number between 2 and 36. If not passed, it defaults to 10. (the first parameter is\n * in_string and must be a string).\n */\n IN_RADIX_BETWEEN_2_36: \"PR-057: Integer64Property.fromString parameter: in_radix must be a \" +\n \"number between 2 and 36. This is not valid: \",\n\n /**\n * methods MapProperty.insert, ReferenceMapProperty.set\n * MapProperty.insert and ReferenceMapProperty.set both take two parameters.\n * The first parameter (in_key) must be a string.\n */\n KEY_NOT_STRING: \"PR-058: MapProperty.insert / ReferenceMapProperty.set parameter: \" +\n \"in_key must be a string. This is not valid: \",\n\n /**\n * methods: NodeProperty.insert, Workspace.insert\n * he second parameter (in_property) must be a valid property (it must be an instance of BaseProperty).\n */\n NOT_A_PROPERTY: \"PR-059: NodeProperty.insert parameter in_property is not a property. \" +\n \"The property you passed is not a valid property.\",\n\n /**\n * methods: ReferenceProperty.set / setValue, ReferenceMapProperty.insert / set / setValue / setValues,\n * ReferenceArrayProperty.enqueue / push / unshift / insert / insertRange / set / setRange / setValue / setValues\n * The provided value (or values) must be a valid property (an instance of BaseProperty), be undefined or a string (a path).\n */\n PROPERTY_OR_UNDEFINED:\n \"PR-060: Parameter for setting a Reference should be a path to a property, a property or undefined. This is not valid: \",\n\n /**\n * ArrayProperty.insertRange, ArrayProperty.insert, ArrayProperty.push\n * INTERNAL ERROR - If you encounter this error, please contact the development team.\n * The item (or one of the items) you are trying to insert in this array has a parent that is not the array.\n */\n NO_INSERT_WITH_PARENT: \"PR-088: Internal error: Trying to insert a property into an array or \" +\n \"string that already has a parent.\",\n\n /**\n * methods: ArrayProperty.get\n * ArrayProperty.get takes in one parameter: in_position, which can a single position or an array.\n * If it is a single position, it is the numerical position of the item in the array.\n * It must be a number or a string that parses into a number (e.g. '2').\n * If you pass in an array, the first item of the array must be a number or a string that parses into a number.\n * (other items in the array are child paths within the array item at this position).\n * This error happens only when in_position is an array.\n */\n FIRST_ITEM_MUST_BE_NUMBER: \"PR-092: The first item in the in_position array must be an array \" +\n \"position (a number). This is not valid: \",\n\n /**\n * methods: ArrayProperty.get\n * ArrayProperty.get takes in one parameter: in_position, which can a single position or an array.\n * If it is a single position, it is the numerical position of the item in the array.\n * It must be a number or a string that parses into a number (e.g. '2').\n * If you pass in an array, the first item of the array must be a number or a string that parses into a number\n * (other items in the array are child paths within the array item at this position).\n * This error happens only when in_position is a single position.\n */\n IN_POSITION_MUST_BE_NUMBER: \"PR-093: in_position must be a number. This is not valid: \",\n\n /**\n * methods: Property.getValue\n * Property.getValue takes one parameter: in_id.\n * It can either be a string or an array of strings. It cannot be an empty array.\n */\n CANNOT_BE_EMPTY_ARRAY: \"PR-095: Property.getValue parameter: in_id cannot be an empty array.\",\n\n /**\n * methods: EnumArrayProperty.set\n * EnumArrayProperty.set takes two parameters: in_index and in_value.\n * In_value should be a number. setValue cannot be used to set enum by string.\n * Use .setEnumByString instead.\n */\n VALUE_SHOULD_BE_NUMBER: \"PR-096: EnumArrayProperty.set parameter: in_value should be \" +\n \"a number. To set the value of an enum string, use .setEnumByString \" +\n \"instead.\",\n\n /**\n * methods: EnumArrayProperty.setEnumByString\n * EnumArrayProperty.setEnumByString cannot be use to set enum by number. Use .set instead.\n */\n VALUE_SHOULD_BE_STRING: \"PR-098: EnumArrayProperty.setEnumByString parameter: in_value should be \" +\n \"a string. To set a number, use .set instead.\",\n\n /**\n * methods: ArrayProperty.get\n * In_position or in_offset is either lower than 0 or higher than the length of the array.\n * Make sure that the property you are trying to get from the array exists and that the position is correct.\n */\n GET_OUT_OF_RANGE: \"PR-106: Trying to access out of bounds at index: \",\n\n /**\n * methods: ArrayProperty.setRange, ArrayProperty.set\n * setRange: Either in_offset is lower than zero or in_offset + length of in_array is higher than\n * the length of the array. If you need to add items that were not there before, add those using\n * .push, .insert or .insertRange.\n */\n SET_OUT_OF_BOUNDS: \"PR-107: Trying to set out of bounds. \",\n\n /**\n * methods: ArrayProperty.removeRange, ArrayProperty.remove\n * RemoveRange: Either in_offset is smaller than zero or in_offset + in_deleteCount is higher than\n * the length of the array. Make sure that the properties you are trying to remove exist in that\n * array and that you entered the positions correctly.\n * Remove: in_offset is either smaller than zero or larger than the length of the array.\n */\n REMOVE_OUT_OF_BOUNDS: \"PR-110: Trying to remove out of bounds. \",\n\n /**\n * methods: PropertyFactory.create\n * INTERNAL ERROR - If you encounter this error, please contact the development team.\n * Warning: Something went wrong when creating your property: it did not successfully create\n * the property and then tried to set its value.\n */\n NON_EXISTING_PROPERTY_REPOSITORY_REFERENCE: \"PR-111: Internal error: PropertyFactory.create failed to create \" +\n \"this property.\",\n\n /**\n * methods: Property.setValues\n * One of the path you used in .setValues leads to a property.\n * When passing an object to setValues, make sure that all paths lead to a primitive value.\n */\n SET_VALUES_PATH_PROPERTY: \"PR-115: trying to set value to a path leading to a property: \",\n\n /**\n * methods: Property.setValues\n * One of the path in the object you passed to .setValues does not match the structure of this property.\n */\n SET_VALUES_PATH_INVALID: \"PR-116: trying to set value to an invalid path: \",\n\n /**\n * methods: Property.setValues\n * .setValues takes one parameter: an object containing paths to the values to be changed.\n * It should be an object (or in the case of ArrayProperty, an array)\n */\n SET_VALUES_PARAM_NOT_OBJECT: \"PR-117: setValues parameter: in_properties must be an object.\",\n\n /**\n * methods: PropertyFactory.create\n * The array you tried to create had a typeid that was no recognized.\n * It was not a custom type array or one of the following: ‘String’, ‘Int64’, ‘Uint64’ or ‘Bool’.\n */\n UNKNOWN_ARRAY_TYPEID: \"PR-118: Unknown typeid in array: \",\n\n /**\n * methods: MapProperty.insert, MapProperty.set\n * .insert and .set take two parameters. The first one is in_id (or in_key), which is the id under\n * which the property is added. It can only be a string or a number. Only in the case of named\n * property can it be omitted.\n */\n ID_STRING_OR_NUMBER: \"PR-119: id should be a string or a number. This is not valid: \",\n\n /**\n * methods: ValueProperty.deserialize\n * .deserialize takes on parameter: a serialized object. It cannot be undefined.\n */\n DESERIALIZE_EMPTY_CHANGESET: \"PR-121: ValueProperty.deserialize() called on an empty changeset\",\n\n /**\n * methods: IntMapProperty.insert, UintMapProperty.insert\n * You tried to insert into a (u)Int64MapProperty or (u)Int64ArrayProperty properties that\n * were not Int64 or UInt64 properties or properties that can be casted to the correct type.\n */\n INT_64_NON_INT64_TYPE: \"PR-122: Tried to use (u)Int64MapProperty or (u)Int64ArrayProperty with an invalid type.\",\n\n /**\n * methods: Integer64.toString, Integer64.fromString\n */\n BASE_OUT_OF_RANGE: \"PR-123: Base is out of range. Base should be in range [2,36]. This is not valid: \",\n\n /**\n * methods: Integer64.fromString\n * If your property is an instance of Uint64, you cannot set it to a negative number.\n * Uint64 does not support negative numbers. Use Int64 if you need to support negative numbers.\n */\n CANNOT_UPDATE_TO_NEGATIVE: \"PR-124: Cannot update value to negative: \",\n\n /**\n * methods: Integer64.fromString\n * The string you passed as a first parameter to .fromString contains non-numerical characters.\n */\n CANNOT_PARSE_INVALID_CHARACTERS: \"PR-125: Cannot parse. String contains invalid characters: \",\n\n /**\n * methods: Property constructor\n * INTERNAL ERROR - If you encounter this error, please contact the development team.\n * Something went wrong while the property constructor was creating a property.\n * The parameters it received were not objects.\n */\n PROP_CONSTRUCTOR_EXPECTS_OBJECTS: \"PR-126: Internal error: Object expected as parameters to \" +\n \"BaseProperty constructor\",\n\n /**\n * methods: Property.applyChangeSet\n * One of the ‘modify’ field in your changeset points to an index in the array that does not exist.\n * Check that the changeset you passed to applyChangeSet is valid. If you did not enter the changeSet yourself,\n * this is an internal error and you should contact the development team.\n */\n INDEX_INVALID: \"PR-131: modified property - index invalid: \",\n\n /**\n * methods: Property.isAncestorOf, Property.isDescendantOf\n * Property.isAncestorOf and .isDescendantOf take one parameter: a property. It cannot be undefined.\n */\n MISSING_IN_OTHERPROP: \"PR-132: isAncestorOf parameter: in_otherProperty must be specified.\",\n\n /**\n * methods: StringProperty.insert, StringProperty.push\n * StringProperty.insert takes two parameters: in_position and in_value.\n * The second one (in_value) must be a string.\n * StringProperty.push takes only one parameter (in_value), which must be a string.\n */\n IN_VALUE_MUST_BE_STRING: \"PR-133: parameter error: in_value must be a string. This is not valid: \",\n\n /**\n * methods: ValueProperty.getValues\n * You cannot use the method .getValues on value properties. getValues is used to get multiple nested\n * values from a custom property. To get the value of a primitive property, use .getValue instead.\n */\n NO_VALUE_PROPERTY_GETVALUES: \"PR-134: Cannot use .getValues on value properties or strings. \" +\n \"Use .getValue instead.\",\n\n /**\n * methods: Property.setValues, ArrayProperty.insertRange, ArrayProperty.removeRange,\n * ArrayProperty.setRange, EnumArrayProperty.setEnumByString, ArrayProperty.insert, ArrayProperty.set,\n * ArrayProperty.clear\n * If a property is created as a constant, it cannot be changed.\n */\n MODIFICATION_OF_CONSTANT_PROPERTY: \"PR-140: Modifications of constants are not allowed.\",\n\n /**\n * methods: ArrayProperty.insert, ArrayProperty.insertRange\n * In a non-primitive array, you can only insert instances of properties. You should use PropertyFactory.create\n * to create an instance of your property before inserting it into the array.\n */\n INSERT_NOT_A_PROP: \"PR-141: In an array of properties, you can only insert instances of \" +\n \"properties. This value is not valid: \",\n\n /**\n * If a property is a reference, it cannot be changed.\n */\n MODIFICATION_OF_REFERENCED_PROPERTY: \"PR-142: Modifications of referenced properties are not allowed.\",\n\n /**\n * methods: Property.getValue\n * Property.getValue(in_ids) is a shortcut for Property.get(in_ids).getValue().\n * Property.get(in_ids) must resolve to a ValueProperty.\n */\n GET_VALUE_NOT_A_VALUE: \"PR-160: in_ids does not resolve to a ValueProperty: \",\n\n /**\n * methods: MapProperty.insert\n * If your map is not a ValueMap, in_property must be an instance of BaseProperty.\n * Use PropertyFactory.create to create an instance of a property.\n */\n NONVALUE_MAP_INSERT_PROP: \"PR-161: In a map of properties, you can only insert properties.\",\n\n /**\n * methods: PropertyFactory.create\n * INTERNAL ERROR - If you encounter this error, please contact the development team.\n * This error is thrown while creating a Property, when the actual context\n * ('array', 'map', 'set' or 'single') is different than what was expected.\n */\n CONTEXT_NOT_AS_EXPECTED: \"PR-163: Property context is different than expected: \",\n\n /**\n * methods: Property.deserialize\n * INTERNAL ERROR - If you encounter this error, please contact the development team.\n * This error is thrown by .deserialize but is caused by an invalid changeSet. A serialized ChangeSet for an\n * Integer64Property must be an array of 2 integers: the low and the high values. Since users cannot yet supply\n * their changesets directly, this should not happen.\n */\n INVALID_INT64_CHANGESET: \"PR-164: Cannot deserialize invalid change set for Int64 property\",\n\n /**\n * methods: StringProperty.set\n * StringProperty.set takes two parameters: in_index (a number, the index of the string that you wish to change)\n * and in_string (the string you want to insert at that index). To set the value of the whole string, use\n * setValue.\n */\n STRING_SET_NEEDS_INDEX: \"PR-165: String.set first parameter should be an index (number). This is not valid: \",\n\n /**\n * methods: Property.get\n * The token DEREFERENCE_TOKEN should only be used with .get when the in_ids passed to .get is an array.\n * the DEREFERENCE_TOKEN should follow a path to a reference.\n * @example <caption>valid: </caption>\n * myProp.get(['myReference', TOKENS.DEREFERENCE_TOKEN])\n * @example <caption>not valid: </caption>\n * myProp.get('myReference').get(TOKENS.DEREFERENCE_TOKEN)\n */\n NO_GET_DEREFERENCE_ONLY: \"PR-166: Cannot use a dereference token only with .get\",\n\n /**\n * methods: StringProperty.setValues\n * You cannot call .setValues on a StringProperty. To set the value of the string, use .setValue\n * instead.\n */\n NO_VALUE_PROPERTY_SETVALUES: \"PR-167: setValues is not a valid method for String Properties\",\n\n /**\n * methods: Property.getRelativePath\n * In cases where you have more than one repository reference property pointing to the same repository, finding a path\n * between a properties in different repositories can lead to more than one valid results. In that case, .getRelativePath\n * will return the first valid path it finds. If you want to control how which path is used, you should construct the\n * string path by concatenating the absolute path for the prop in the nested repository and the relative path between your\n * repository reference and the target property.\n */\n MORE_THAN_ONE_PATH: \"PR-169: More than one paths exist between \",\n\n /**\n * methods: Property.getRelativePath\n * getRelativePath takes one parameter: the property from which the path will start. This must be an instance of\n * BaseProperty. The method will return the path from that property to the property on which it was called ('this')\n */\n IN_FROMPROPERTY_MUST_BE_PROPERTY: \"PR-170: getRelativePath parameter error: in_fromProperty must be a property\",\n\n /**\n * methods: Property.getRelativePath\n * getRelativePath does not return a path between a property that is inside a child repository to one that is in\n * a parent repository. A path like this could not be used with .resolvePath or be used in a reference property\n * because neither method can go from the root of a referenced repository to a reference property.\n */\n NO_PATH_FROM_CHILD_REPO: \"PR-171: cannot get a path from a child repository to a parent repository\",\n\n /**\n * methods: getReferencedWorkspace\n * This repository reference is in read-only mode. Call enableWrite() to access the workspace.\n */\n REPOSITORY_REFERENCE_WORKSPACE_READ_ONLY:\n \"PR-173: This repository reference is in read-only mode. Call enableWrite() to access the workspace.\",\n\n /**\n * methods: Property.enableWrite\n * Repository reference is already in writable mode.\n */\n REPOSITORY_REFERENCE_WORKSPACE_EXIST_ALREADY: \"PR-174: Repository reference is already in writable mode\",\n\n /**\n * methods: Property.enableWrite\n * Can't enable write on an empty repository reference without at least a repositoryGUID and branchGUID.\n */\n WRITABLE_REPOSITORY_REFERENCE_NEED_GUIDS:\n \"PR-176: Can't enable write on an empty repository reference without at least a repositoryGUID and branchGUID\",\n\n /**\n * methods: Property.enableWrite\n * Repository reference failed to automatically commit the new commitGUID.\n */\n WRITABLE_REPOSITORY_AUTO_COMMIT_FAIL: \"PR-177: Repository reference failed to automatically commit the new commitGUID\",\n\n /**\n * methods: Property._setFollowBranch\n * An unexpected error occurred while trying to switch a repository reference followBranch property\n */\n WRITABLE_REPOSITORY_SET_FOLLOW_BRANCH_FAILED:\n \"PR-178: An unexpected error occurred while trying to switch a repository reference followBranch property to \",\n\n /**\n * methods: MapProperty.insert, MapProperty.set\n * .insert and .set take two parameters. The first one is in_id (or in_key), which is the id under\n * which the property is added. It can not be an empty string.\n */\n ID_SHOULD_NOT_BE_EMPTY_STRING:\n \"PR-179: id should not be an empty string.\",\n\n /**\n * methods: StringProperty.set\n * StringProperty.set: in_character must have a length of 1.\n */\n STRING_SET_ONE_CHAR: \"PR-180: String.set, only one character can be set (in_character must have a length of 1).\",\n\n /**\n * methods: EnumArrayProperty.set\n * EnumArrayProperty.set only accepts a string or number as input for in_value\n */\n VALUE_STRING_OR_NUMBER:\n \"PR-181: in_value should be a string or a number. This is not valid: \",\n\n /**\n * methods: ArrayProperty.set\n * The in_value input of ArrayProperty.set should not be an array.\n */\n ARRAY_SET_ONE_ELEMENT:\n \"PR-182: in_value should be a single element. This is not valid: \",\n\n CANT_DIRTY_MISSING_PROPERTY: \"PR-183: Can't dirty missing property: \",\n\n /**\n * methods: MapProperty.insert, MapProperty.set, SetProperty.insert, NodeProperty.insert\n * The property you are trying to insert in your map property, set property or node property is a root.\n */\n INSERTED_ROOT_ENTRY: \"PR-184: Trying to insert a root property into a collection.\",\n\n /**\n * methods: MapProperty.insert, MapProperty.set, SetProperty.insert, NodeProperty.insert\n * The property you are trying to insert in your map property, set property or node property is already\n * a parent of the map, set, or node property. You cannot insert this property there or you would create\n * a cycle in your data tree.\n */\n INSERTED_IN_OWN_CHILDREN:\n \"PR-185: Trying to insert a property in itself or in one of its children.\",\n\n /**\n * methods: MapProperty.insert, MapProperty.set, SetProperty.insert, NodeProperty.insert\n * The property you are trying to insert (or at least one if its children) in your map property, set\n * property or node property is not covered by the paths of the partial checkout.\n * You cannot insert this property because you would not receive updates for this path after the\n * insertion and you could corrupt your data by doing subsequent modifications.\n */\n INSERTED_OUTSIDE_PATHS:\n \"PR-186: Trying to insert a property outside the paths covered by the partial checkout.\",\n\n SHARED_BEFORE_INSERTED: \"PR-187: Property must be inserted in the workspace before sharing.\",\n\n CUSTOM_ID_NOT_ALLOWED: \"PR-188: The following property does not support custom id: \",\n};\n\nconst PropertyFactoryError = {\n\n /**\n * methods: PropertyFactory.create\n * Each property created with PropertyFactory.create should have a unique id. You should make sure your\n * code generates a unique id for each property created, or make your property an instanced of NamedProperties\n * (which are identified by a unique Urn)\n */\n OVERWRITING_ID: \"PF-001: Id already exists: \",\n\n /**\n * methods: PropertyFactory.register\n * Warning: The template passed into the register method does not match the expected structure for this type.\n */\n TEMPLATE_MISMATCH: \"PF-004: Template structures do not match for typeid: \",\n\n /**\n * methods: PropertyFactory.register\n * The typeid assigned to your property template should include a version.\n * E.g. 1.0.0 - an example of a valid typeid: “my.example:point2d-1.0.0”\n */\n UNVERSIONED_TEMPLATE: \"PF-005: Templates must be versioned.\",\n\n /**\n * INTERNAL ERROR - If you encounter this error, please contact the development team.\n * Error occurs when a template has been inserted into the branch without a SEMVER version.\n * This can occur when registering templates through the commit REST interface. At this point\n * the data is corrupted and should be reported to the development team\n */\n UNVERSIONED_REMOTE_TEMPLATE: \"PF-006: Internal error: Remote template is not versioned.\",\n\n /**\n * methods: PropertyFactory.create\n * RepositoryReferences are not yet fully implemented. They will be soon.\n */\n REPOSITORY_REF_NOT_FULLY_IMPLEMENTED: \"PF-007: Repository references are not yet fully implemented and may not \" +\n \"yet be used\",\n\n /**\n * methods: PropertyFactory.create\n * When using ‘inherits’ in your property template, it must be a string or an array.\n * @example\n * ```json\n * {\n * typeid:'my.example:point2d-1.0.0',\n * inherits: ‘ another property’\n * }\n * ```\n * or :\n * ```json\n * {\n * typeid:'my.example:point2d-1.0.0',\n * inherits: [‘another property’, ‘property2’]\n * }\n * ```\n */\n INHERITS_ARRAY_OR_STRING: \"PF-008: Internal error: Inherits must be an Array or a String. This is not valid: \",\n\n /**\n * methods: PropertyFactory.create\n * Context can be ‘array, ‘set’, ‘map’, ‘enum’ or ‘single’. If not specified, will default to ‘single’.\n */\n UNKNOWN_CONTEXT_SPECIFIED: \"PF-009: Unknown context specified: \",\n\n /**\n * methods: PropertyFactory.create\n * The property you entered into PropertyFactory.create has a typeid that is not registered.\n * Make sure you register the template before creating an instance of that property. This could\n * also be caused by a failure in the registration process.\n */\n UNKNOWN_TYPEID_SPECIFIED: \"PF-010: Unknown typeid specified: \",\n\n /**\n * methods: PropertyFactory.getAllParentsForTemplate, PropertyFactory.inheritsFrom\n * Cannot find a template for this typeid. Make sure you registered the template and that the typeid\n * is entered correctly. This can be an error with the template you are trying to insert or one of the\n * templates it inherits from.\n */\n NON_EXISTING_TYPEID: \"PF-011: Missing template for the property you entered or one of the templates it inherits from: \",\n\n /**\n * methods: PropertyFactory.register\n * The property you passed in to .register is a primitive property. These do not need to be registered with a\n * typeid. It can be created without being registered. E.g. PropertyFactory.create(‘String’)\n */\n CANNOT_REGISTER_PRIMITIVE: \"PF-012: Cannot register a primitive property with the public `register` \" +\n \"function typeid = \",\n\n /**\n * methods: PropertyFactory.convertToTemplates, PropertyFactory.registerFrom\n * Your template’s id field must be a string.\n */\n DEFINITION_ID_MUST_BE_STRING: 'PF-024: Value \"id\" of a definition should be a string. \"',\n\n /**\n * methods: PropertyFactory.convertToTemplates, PropertyFactory.registerFrom\n * The \"$ref\" keyword is used to reference a schema, and provides the ability to validate recursive structures\n * through self-reference.\n * An object schema with a \"$ref\" property MUST be interpreted as a \"$ref\" reference. The value of the \"$ref\"\n * property MUST be a URI Reference (a string)\n */\n REF_SHOULD_BE_STRING: 'PF-025: Value of \"$ref\" should be a string. \"',\n\n /**\n * methods: PropertyFactory.convertToTemplates, PropertyFactory.registerFrom\n * The identifier passed to $ref does not point to any schema.\n */\n COULD_NOT_FIND_REFERENCE: 'PF-026: Couldn\\'t find reference \"',\n\n /**\n * methods: PropertyFactory.convertToTemplates, PropertyFactory.registerFrom\n * The identifier passed to $ref does not point to an object.\n */\n REFERENCED_DEFINITION_SHOULD_BE_OBJECT: 'PF-027: A referenced definition should be an object. \"',\n\n /**\n * methods: PropertyFactory.convertToTemplates, PropertyFactory.registerFrom\n * In a JSON schema, the properties field must be an object.\n */\n PROPERTIES_SHOULD_BE_OBJECT: 'PF-028: The \"properties\" value should be an object. \"',\n\n /**\n * methods: PropertyFactory.convertToTemplates, PropertyFactory.registerFrom\n * oneOf’s value MUST be a non-empty array. Each item of the array MUST be a valid JSON Schema.\n * An instance validates successfully against this keyword if it validates successfully against exactly one\n * schema defined by this keyword's value.\n */\n ONE_OF_ONLY_FOR_ARRAYS_OF_ONE_OBJECT: 'PF-029: The \"oneOf\" object is supported only for arrays of one object.',\n\n /**\n * methods: PropertyFactory.convertToTemplates, PropertyFactory.registerFrom\n * oneOf’s value MUST be a non-empty array. Each item of the array MUST be a valid JSON Schema.\n */\n ONE_OF_SHOULD_CONTAIN_OBJECTS: 'PF-030: The \"oneOf\" array should contain objects. \"',\n\n /**\n * methods: PropertyFactory.convertToTemplates, PropertyFactory.registerFrom\n * This keyword's value MUST be a non-empty array. Each item of the array MUST be a valid JSON Schema.\n */\n ALL_OF_SHOULD_BE_ARRAY: 'PF-031: The \"allOf\" object should be an array.',\n\n /**\n * methods: PropertyFactory.convertToTemplates, PropertyFactory.registerFrom\n * This keyword's value MUST be a non-empty array. Each item of the array MUST be a valid JSON Schema.\n */\n ALL_OF_SHOULD_CONTAIN_OBJECTS: 'PF-032: The \"allOf\" array should contain objects. Element ',\n\n /**\n * methods: PropertyFactory.convertToTemplates, PropertyFactory.registerFrom\n * Your schema definition contains infinite recursion. For example, if your definition ‘a’ refers to definition\n * ‘b’ as being one of its children and ‘b’ refers to ‘a’ as one of its children.\n */\n INFINITE_RECURSION: \"PF-033: Infinite recursion detected in path: \",\n\n /**\n * methods: PropertyFactory.convertToTemplates, PropertyFactory.registerFrom\n * One part of your template object might contain something that is not of type ‘object’, ‘string’,\n * ‘number’ or ‘integer’.\n */\n UNSUPPORTED_VALUE_TYPE: 'PF-034: Unsupported value of field \"type\": ',\n\n REQUIRED_PROPERTY_NAME_NOT_STRING: 'PF-035: Required property name should be a string, \"',\n\n /**\n * This property is required but it is not listed in the properties field.\n */\n PROPERTY_NAME_DOES_NOT_MATCH: \"PF-036: Required property name does not match any property in object: \",\n\n /**\n * The ‘inherits’ field in your template object should be a string or an array of strings.\n */\n INHERITS_SHOULD_BE_STRING: 'PF-037: The \"inherits\" object should be a string or an array of strings. This is not valid: ',\n\n /**\n * The ‘context’ field in your template should be a string.\n */\n CONTEXT_SHOULD_BE_STRING: 'PF-038: The \"context\" value should be a string. This is not valid: ',\n\n /**\n * methods: PropertyFactory.convertToTemplates, PropertyFactory.registerFrom\n * Warning: If you have a ‘length’ field in your template and the context is not set to ‘array’,\n * ‘length’ will be ignored.\n */\n IGNORING_LENGTH_NOT_ARRAY: 'PF-039: ignoring \"length\" value since \"context\" is not \"array\".',\n\n /**\n * methods: PropertyFactory.convertToTemplates, PropertyFactory.registerFrom\n * In your template, the field ‘length’ should be a number.\n */\n LENGTH_SHOULD_BE_NUMBER: 'PF-040: The \"length\" value should be a number. This is not valid: ',\n\n /**\n * methods: PropertyFactory.convertToTemplates, PropertyFactory.registerFrom\n * Your template contains more than one definition field for this field.\n */\n DUPLICATE_DEFINITION: \"PF-041: Duplicate definition for \",\n\n /**\n * methods: PropertyFactory.convertToTemplates, PropertyFactory.registerFrom\n * The field ‘id’ is missing from your JSON schema.\n */\n FIELD_ID_IS_REQUIRED: 'PF-042: Field \"id\" is required.',\n\n /**\n * methods: PropertyFactory.convertToTemplates, PropertyFactory.registerFrom\n * You need a ‘typeid’ field in your template schema.\n * @example\n * ```json\n * {\n * ‘typeid’: 'autodesk.test:set.set-1.0.0',\n * ‘properties’: [\n * {‘typeid’: 'String',\n * ‘context’: 'set',\n * ‘id’: 'DummySet',\n * ‘inherits’:['NamedProperty']}\n * ]\n * }\n *```\n */\n FIELD_TYPEID_IS_REQUIRED: 'PF-043: Field \"typeid\" is required. It is the \"typeid\" of the resulting ' +\n \"PropertySets Template.\",\n\n /**\n * methods: PropertyFactory.register\n * The ‘length’ field in your template must be a number.\n */\n LENGTH_MUST_BE_NUMBER: \"PF-045: length must be a number. This is not valid: \",\n\n /**\n * methods: PropertyFactory.register\n * Each entry in your enum property array must have an id.\n * @example\n * ```json\n * {\n * \"typeid\": \"Adsk.Core:Units.Metric-1.0.0\",\n * \"inherits\": \"Enum\",\n * \"annotation\": { \"description\": \"The metric units\" },\n * \"properties\": [\n * { \"id\": \"m\" , \"value\": 1, \"annotation\": { \"description\": \"meter\" }},\n * { \"id\": \"cm\", \"value\": 2, \"annotation\": { \"description\": \"centimeter\" }},\n * { \"id\": \"mm\", \"value\": 3, \"annotation\": { \"description\": \"millimeter\" }}\n * ]\n * }\n * ```\n */\n ENUM_TYPEID_MISSING: \"PF-046: Enum: typeid missing\",\n\n /**\n * methods: PropertyTemplate constructor\n * Each entry in your enum property must have a value that is a number.\n * @example\n * ```json\n * {\n * \"typeid\": \"Adsk.Core:Units.Metric-1.0.0\",\n * \"inherits\": \"Enum\",\n * \"annotation\": { \"description\": \"The metric units\" },\n * \"properties\": [\n * { \"id\": \"m\" , \"value\": 1, \"annotation\": { \"description\": \"meter\" }},\n * { \"id\": \"cm\", \"value\": 2, \"annotation\": { \"description\": \"centimeter\" }},\n * { \"id\": \"mm\", \"value\": 3, \"annotation\": { \"description\": \"millimeter\" }}\n * ]\n * }\n * ```\n */\n ENUM_VALUE_NOT_NUMBER: \"PF-047: Enum: value must be a number. This is not valid: \",\n\n /**\n * methods: PropertyTemplate.getVersion\n * INTERNAL ERROR - If you encounter this error, please contact the development team.\n * Warning: you that the template on which you are calling the .getVersion method is not versioned.\n * The method will return undefined. This should not happen as we now validate that all templates are\n * versioned when registering them.\n */\n TEMPLATE_NOT_VERSIONED: \"PF-048: Internal error: Template is not versioned.\",\n\n /**\n * methods: PropertyFactory.register\n * Warning: Template already exists. The incoming template MUST match what is currently registered.\n * If they do not match, an error will be thrown letting you know that the templates are incompatible.\n * See error PF-004\n */\n REGISTERING_EXISTING_TYPEID: \"PF-049: Registering a typeid that already exists typeid = \",\n\n /**\n * methods: PropertyFactory.register\n * There were errors validating the template you are trying to register. See detailed errors attached.\n */\n FAILED_TO_REGISTER: \"PF-050: Failed to register typeid = \",\n\n /**\n * methods: PropertyFactory.convertToTemplates, PropertyFactory.registerFrom\n * So far, these methods can only convert from a JSON schema. The first parameter (in_fromType)\n * must be ‘JSONSchema’.\n */\n UNKNOWN_TYPE: \"PF-051: Unknown type: \",\n\n /**\n * methods: PropertyTemplate.serializeCanonical\n * INTERNAL ERROR - If you encounter this error, please contact the development team.\n * This error shouldn’t occur. The underlying private function that is called is a close cousin of the\n * deepCopy function which could have an arbitrary target specified. This doesn’t happen in the case of\n * the serializeCanonical.\n */\n INVALID_TARGET_PROPERTY_TEMPLATE: \"PF-053 Copying into incompatible target property template: \",\n\n /**\n * methods: PropertyFactory.loadTemplate\n * In order for the PropertyFactory to retrieve templates from remote store it has to have at least one store\n * interface to interact with. This is accomplished by making the PropertyFactory.addStore call.\n */\n MISSING_CASE_IN_TEMPLATE_SERIALIZATION: \"PF-054 Missing case in template canonical serialization: \",\n\n OVERRIDDING_INHERITED_TYPES: \"PF-057: Overriding of inherited typed properties is not allowed: \",\n\n /**\n * methods: PropertyFactory.register\n * PropertyFactory.register takes one parameter, which can be a string (typeid), a json object (a template) or an\n * array of these.\n */\n ATTEMPT_TO_REGISTER_WITH_BAD_ARGUMENT: \"PF-058: register only accepts strings, json structures or array of those\",\n\n /**\n * methods: PropertyFactory.resolve\n * No store has been added yet to the PropertyFactory. A template store has to be instantiated then added with\n * propertyFactory.addStore()\n */\n NO_STORE_HAS_BEEN_INITIALIZED_YET: \"PF-059: No store has been initialized yet to the PropertyFactory.\",\n\n /**\n * methods: PropertyFactory.resolve\n * resolve cannot be called until previous call to resolve has completed.\n */\n DEPENDENCIES_RESOLUTION_IN_PROGRESS: \"PF-060: Dependencies resolution already in progress\",\n\n /**\n * methods: PropertyFactory.create\n * Typed values must contain properties that inherit from the base type.\n */\n TYPED_VALUES_MUST_DERIVE_FROM_BASE_TYPE: \"PF-061: Typed values must be derived from base type: \",\n\n /**\n * methods: PropertyFactory.create\n * The field ‘value’ is missing from your JSON schema.\n */\n FIELD_VALUE_IS_REQUIRED: 'PF-062: Field \"value\" is required: ',\n\n /**\n * methods: PropertyFactory.register\n * Warning: The structure of the template passed into the register method does not match the structure of a remote template registered under the same typeid.\n */\n REMOTE_TEMPLATE_MISMATCH: \"PF-064: Template structures do not match an already registered remote template with the same typeid for typeid: \",\n\n /**\n * methods: PropertyFactory.initializeSchemaStore\n * Warning: The initializeSchemaStore method must be provided with an options object\n containing a getBearerToken function and the url to the ForgeSchemaService.\n */\n MISSING_FSS_INIT_OPTIONS: \"PF-065: The initializeSchemaStore method must be provided with an options object \" +\n \"containing a getBearerToken function and the url to the ForgeSchemaService.\",\n\n /**\n * methods: PropertyFactory.initializeSchemaStore\n * Warning: The initializeSchemaStore method url option must be passed a valid base url.\n */\n FSS_BASEURL_WRONG: \"PF-066: The initializeSchemaStore method url option must be passed a valid base url.\",\n\n /**\n * methods: PropertyFactory.create\n * Overridden properties must have same context as the base type.\n */\n OVERRIDEN_PROP_MUST_HAVE_SAME_CONTEXT_AS_BASE_TYPE: \"PF-067: Overridden properties must have same context as the base type: \",\n\n /**\n * methods: PropertyFactory.create\n * Primitive types does not support typedValues.\n */\n TYPED_VALUES_FOR_PRIMITIVES_NOT_SUPPORTED: \"PF-068: Primitive types does not support typedValues: \",\n\n /**\n * methods: PropertyFactory.inheritsFrom\n */\n TYPEID_IS_NOT_ENUM: \"PF-069: The provided type does not inherit from Enum: \",\n};\n\nconst RepositoryError = {\n\n /**\n * methods: NodeProperty.remove\n * The property you tried to remove does not exist (its id was not found) - check that the id is correct\n * and that the property has not already been removed.\n */\n REMOVING_NON_EXISTING_ID: \"RE-001: Removing non existing id: \",\n\n /**\n * methods: BranchNode.isEqual, CommitNode.isEqual\n * In_node parameter is required. In_node is the branch or commit you wish to compare to ‘this’ branch/commit\n * node to check for equality.\n */\n MISSING_IN_NODE_PARAM: \"RE-004: BranchNode.isEqual / CommitNode.isEqual missing \" +\n \"parameter: in_node\",\n\n /**\n * methods: BranchNode, CommitNode, Workspace.commit\n * The BranchNode or CommitNode constructor was called without in_params.guid or we tried to send a commit\n * without a guid.\n */\n MISSING_GUID_FIELD: \"RE-006: Missing guid field\",\n\n /**\n * INTERNAL ERROR - If you encounter this error, please contact the development team.\n */\n LOCAL_AND_REMOTE_BRANCH_NOT_EQUAL: \"RE-007: Remote branch urn must equal the local branch urn\",\n\n /**\n * INTERNAL ERROR - If you encounter this error, please contact the development team.\n */\n BRANCH_NOT_REMOTE_BRANCH: \"RE-008: Branch is not a remote branch \",\n\n /**\n * now rebasing to \\<commit guid\\>'\n * INTERNAL ERROR - If you encounter this error, please contact the development team.\n * A commit node already rebased has been rebased again.\n */\n COMMIT_ALREADY_REBASED: \"RE-009: Should not rebase commit more than once: \",\n\n /**\n * INTERNAL ERROR - If you encounter this error, please contact the development team.\n * A new commit has been received from the server but was not expected. See specific message for more details.\n */\n UNEXPECTED_COMMIT_FROM_SERVER: \"RE-010: Adding commit to remote branch \",\n\n /**\n * This error will occur if the repository associated to a branch hasn't been found.\n */\n REPOSITORY_NOT_FOUND: \"RE-011: Internal Error: The repository hasn't been found.\",\n\n /**\n * This error will occur if the branch within a repository hasn't been found.\n */\n BRANCH_NOT_FOUND: \"RE-012: The branch hasn't been found.\",\n};\n\nconst ServerError = {\n\n /**\n * INTERNAL ERROR - If you encounter this error, please contact the development team.\n */\n URL_MUST_BE_STRING: \"SE-001: Url must be a string.\",\n\n /**\n * INTERNAL ERROR - If you encounter this error, please contact the development team.\n */\n PORT_MUST_BE_NUMBER: \"SE-002: Port must be a number\",\n};\n\nconst ChangeSetError = {\n\n /**\n * Context can only be ‘single’, ‘array’, ‘map’, ‘set’ or ‘enum’. All other values are invalid.\n */\n UNKNOWN_CONTEXT: \"CS-001: Unknown context: \",\n\n /**\n * INTERNAL ERROR - If you encounter this error, please contact the development team.\n */\n ALREADY_EXISTING_ENTRY: \"CS-003: Internal error: Added an already existing entry: \",\n\n /**\n * INTERNAL ERROR - If you encounter this error, please contact the development team.\n * The ChangeSet did not include an oldValue member which is computed when making the ChangeSet reversible.\n */\n OLD_VALUE_NOT_FOUND: \"CS-004: Internal error: Old value not found while inverting a change set. The change set is probably not reversible.\",\n\n CONTEXT_VALIDATION_IN_PROGRESS: \"CONTEXT_VALIDATION_IN_PROGRESS\",\n\n NOT_A_VALID_CONTEXT: \"NOT_A_VALID_CONTEXT\",\n\n MISSING_PRE_POST_CALLBACK: \"Missing callback. Either pre- or postcallback must be provided.\",\n};\n\nconst UtilsError = {\n INVALID_PATH_IN_REFERENCE: \"UT-001: References may only contain absolute repository references \" +\n \"or empty strings\",\n\n /**\n * methods: Utils.traverseChangesetRecursively\n * Your changeset contains an operator other than MODIFY, INSERT or REMOVE. If you created the changeset youserlf,\n * check that you only use valid operators. Otherwise, this is an internal error. Please contact the development team.\n */\n UNKNOWN_OPERATOR: \"UT-004: ArrayChangeSetIterator: unknown operator \",\n\n /**\n * INTERNAL ERROR - If you encounter this error, please contact the development team.\n */\n NON_PRIMITIVE_ARRAY_NO_TYPEID: \"UT-005: Found a non primitive type array without typeids. \" +\n \"This should never happen.\",\n\n /**\n * Filtering paths within arrays are not supported.\n */\n FILTER_PATH_WITHIN_ARRAY: \"UT-006: Filtering paths within arrays are not supported\",\n\n /**\n * INTERNAL ERROR - If you encounter this error, please contact the development team.\n * See specific message for more details.\n */\n ASSERTION_FAILED: \"UT-007: INTERNAL ERROR. Failed assertion. \",\n\n /**\n * You used a deprecated function. It will likely be removed in the next major version.\n * See the custom information if provided.\n */\n DEPRECATED_FUNCTION: \"UT-008: Deprecated function %s.\",\n\n /**\n * You used a deprecated function parameter. It will likely be removed in the next major version.\n * See the custom information if provided.\n */\n DEPRECATED_PARAMETER: \"UT-009: Deprecated function parameter %s of %s.\",\n\n /**\n * You used an experimental feature. It will likely changed in future releases.\n * See the custom information if provided.\n */\n EXPERIMENTAL_FEATURE: \"UT-010: Feature %s is experimental and subject to future changes.\",\n};\n\nconst PssClientError = {\n /**\n * This error message will be displayed when a repository creation fails\n */\n FAILED_REPOSITORY_CREATION:\n \"PC-001: Server error: Failed to create a repository. \",\n\n /**\n * This error message will be displayed when the deletion of a repository fails\n */\n FAILED_REPOSITORY_DELETION:\n \"PC-002: Server error: Failed to delete a repository. Repository guid: \",\n\n /**\n * This error message will be displayed when the undelete operation of a repository fails\n */\n FAILED_REPOSITORY_UNDELETION:\n \"PC-003: Server error: Failed to undelete a repository. Repository guid: \",\n\n /**\n * This error message will be displayed when getting the expiry of a repository fails\n */\n FAILED_GET_EXPIRY_REQUEST:\n \"PC-004: Server error: Failed to get the expiry of a repository. Repository guid: \",\n\n /**\n * This error message will be displayed when setting the expiry of a repository fails\n */\n FAILED_SET_EXPIRY_REQUEST:\n \"PC-005: Server error: Failed to set the expiry of a repository. Repository guid: \",\n\n /**\n * This error message will be displayed when squashing commit history fails\n */\n FAILED_SQUASH_COMMIT_HISTORY: \"PC-006: Server error: Failed to squash the commit history. Branch guid: \",\n\n /**\n * This error message will be displayed when fetching a commit fails\n */\n FAILED_FETCH_COMMIT: \"PC-007: Server error: Failed to fetch a commit. Commit guid: \",\n\n /**\n * This error message will be displayed when containers creation fails\n */\n FAILED_CONTAINER_CREATION: \"PC-008: Server error: Failed to create containers. \",\n\n /**\n * This error message will be displayed when a branch creation fails\n */\n FAILED_BRANCH_CREATION: \"PC-009: Server error: Failed to create a branch. \",\n\n /**\n * This error message will be displayed when a commit fails\n */\n FAILED_TO_COMMIT: \"PC-011: Server error: Failed to commit. \",\n\n /**\n * This error message will be displayed when a share operation fails\n */\n FAILED_SHARE: \"PC-013: Server error: Failed to share or unshare resources. \",\n\n /**\n * This error message will be displayed when getting the branches of a repository fails\n */\n FAILED_GET_ENUMERATE_BRANCHES: \"PC-014: Server error: Failed to get the branches of a repository. Repository guid: \",\n\n /**\n * This error message will be displayed when a request to get an lca fails\n */\n FAILED_GET_LCA: \"PC-015: Server error: Failed to get the lca.\",\n\n /**\n * This error message will be displayed when a commit fails because of an internal error while committing\n */\n FAILED_TO_COMMIT_INTERNAL: \"PC-016: internal error: Failed to commit.\",\n\n /**\n * This error message will be displayed when getting a feature flag fails\n */\n FAILED_TO_GET_FEATURE: \"PC-017: Server error: Failed to get feature flag from PSS. \",\n\n /**\n * This error message will be displayed when getting squashed commit range fails\n */\n FAILED_TO_GET_SQUASHED_COMMIT_RANGE: \"PC-018: Server error: Failed to get squashed commit range. Branch guid: \",\n};\n\nconst PROPERTY_PATH_DELIMITER = \".\";\nconst MESSAGE_CONSTANTS = {\n ...ChangeSetError,\n ...PropertyError,\n ...PropertyFactoryError,\n ...RepositoryError,\n ...SchemaValidatorError,\n ...PssClientError,\n ...UtilsError,\n ...TypeidHelperError,\n ...ServerError,\n};\n\nexport const constants = {\n MSG: MESSAGE_CONSTANTS,\n PROPERTY_PATH_DELIMITER,\n};\n"]}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts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F;;OAEG;IACH,mCAAmC,EAAE,0EAA0E;CAClH,CAAC;AAEF,MAAM,uBAAuB,GAAG,GAAG,CAAC;AACpC,MAAM,iBAAiB,qIAChB,cAAc,GACd,aAAa,GACb,oBAAoB,GACpB,eAAe,GACf,oBAAoB,GACpB,cAAc,GACd,UAAU,GACV,iBAAiB,GACjB,WAAW,CACjB,CAAC;AAEW,QAAA,SAAS,GAAG;IACrB,GAAG,EAAE,iBAAiB;IACtB,uBAAuB;CAC1B,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\n/* eslint-disable max-len */\n\n/**\n * Error messages for the Schema Validator\n */\nconst SchemaValidatorError = {\n /**\n * methods: PropertyFactory.register\n * The context ‘set’ is only valid for properties that are instances of NamedProperties. If you want to\n * use a context of ‘set’, make sure your template includes:\n * Inherits: ‘NamedProperty’\n * Or\n * Inherits: [‘NamedProperty’, …]\n */\n SET_ONLY_NAMED_PROPS:\n 'SV-001: Only properties that inherit from NamedProperty can have a context of \"set\". typeid: ',\n\n /**\n * You updated an existing template but the change to the version number was not as expected.\n * Make sure you updated your version number correctly. You may have violated one of the following rules:\n * - Adding one or more template attributes is a MINOR change.\n * - Removing one or more template attributes is a MAJOR change.\n */\n CHANGE_LEVEL_TOO_LOW_1:\n \"SV-002: Template mutation requires a higher version change level: \",\n\n /**\n * methods: PropertyFactory.register\n * The template version number is not valid. A valid version number should look like: ‘1.0.0’\n */\n INVALID_VERSION_1:\n \"SV-003: Invalid template version in 'typeid' attribute: \",\n\n /**\n * methods: PropertyFactory.register\n * Your property template should include a typeid attribute.\n * @example\n *```json\n * {\n * \"typeid\": \"my.example:point2d-1.0.0\",\n * \"properties\": [\n * {\"id\": \"x\", \"typeid\": \"Float64\"},\n * {\"id\": \"y\", \"typeid\": \"Float64\"}\n * ]\n *}\n *```\n */\n MISSING_TYPE_ID:\n \"SV-004: Template is missing the mandatory 'typeid' attribute. This is not a valid template: \",\n\n /**\n * methods: PropertyFactory.register\n * Typeid should contain a template version number.\n * @example\n * “typeid: my.example:point2d-1.0.0”\n */\n MISSING_VERSION:\n \"SV-005: Missing template version in 'typeid' attribute: \",\n\n /**\n * methods: PropertyFactory.register\n * The template you are using is different from the previous version and you did not update the version number.\n * If any changes were made to the template, you should update the version number to a higher number.\n * - Major change: removing one or more attribute (e.g. 1.0.0 -\\> 2.0.0)\n * - Minor change: adding one or more attribute (e.g. 1.0.0 -\\> 1.1.0)\n * - Patch: template description changes (e.g. 1.0.0 -\\> 1.0.1)\n */\n MODIFIED_TEMPLATE_1:\n \"SV-006: Template has changed at path: \",\n\n /**\n * methods: PropertyFactory.register\n * When changing your template, you need to increase its version number. For example, if the previous version\n * number was 1.0.0, it should increase to 1.0.1 for a patch (if the template description has changed),\n * to 1.1.0 for a minor change (if you added one or more attributes) or to 2.0.0 for a major change (if you\n * removed one or more attributes).\n */\n MODIFIED_TEMPLATE_SAME_VERSION_1:\n \"SV-007: Template has changed but its version was not increased. Path: \",\n\n /**\n * methods: PropertyFactory.register\n * PropertyFactory.register requires a template as a parameter.\n */\n NO_TEMPLATE:\n \"SV-008: Template cannot be null or undefined.\",\n\n /**\n * methods: PropertyFactory.register\n * When updating a template’s version number, the version number can only increase, never decrease.\n */\n VERSION_REGRESSION_1:\n \"SV-009: New template version is older than the previously registered version: \",\n\n /**\n * Your template contains a typeid that is not a string.\n */\n TYPEID_MUST_BE_STRING:\n \"SV-010: typeid must be a string. This is not valid: \",\n\n /**\n * INTERNAL ERROR - If you encounter this error, please contact the development team.\n * The TemplateValidator constructor should have in its parameters param.inheritsFrom and params.hasSchema.\n * Neither of them can be undefined.\n */\n MISSING_INHERITSFROM_OR_HASSCHEMA:\n \"SV-011: Internal error: TemplateValidator constructor missing one of inheritsFrom or hasSchema function\",\n\n /**\n * Your template has an invalid key for the kind of map it is.\n */\n KEY_MUST_BE_TYPEID:\n \"SV-012: A key of a typeid key map must be a valid typeids. Key: \",\n\n /**\n * Your template has an invalid contextKeyType parameter.\n */\n INVALID_OPTION_NONE_CONSTANTS:\n \"SV-013: A map with typeids as keys must be constant\",\n\n /**\n * You tried to use draft as a versoin when it is not enabled.\n */\n DRAFT_AS_VERSION_TYPEID:\n \"SV-014: By default, draft is not a valid version for a typeId. Set allowDraft to true to support this.\",\n};\n\nconst TypeidHelperError = {\n /**\n * INTERNAL ERROR - If you encounter this error, please contact the development team.\n */\n TYPEID_NOT_DEFINED: \"TH-001: extractVersion requires a typeid parameter\",\n};\n\nconst PropertyError = {\n TYPEID_NOT_NATIVE: \"TYPEID_NOT_NATIVE\",\n /**\n * methods: ArrayProperty.length.set, StringProperty.length.set\n * Cannot directly set the array.length or string.length. This is a read-only property.\n */\n MODIFY_READ_ONLY: \"PR-001: Trying to modify read only property value (array.length).\",\n\n /**\n * methods: Property.getRelativePath\n * There is no path between the property and the ancestor you passed in to .getRelativePath.\n */\n NO_PATH_BETWEEN: \"PR-002: No path between \",\n\n /**\n * methods: Property.applyChangeSet\n * One of the paths included in your changeSet is not valid for this property.\n * Check that the modifications in the changeSet match the structure of the template.\n */\n INVALID_PATH: \"PR-003: Invalid path in ChangeSet: \",\n\n /**\n * methods: NodeProperty.insert\n * The property you inserted into a NodeProperty has a parent.\n * If your property has a parent, changing the property’s id will break the parent.\n * Make the change to the parent first.\n */\n ID_CHANGE_FOR_PROPERTY_WITH_PARENT: \"PR-004: Cannot change the ID of a property that has a parent. Could not change id: \",\n\n /**\n * methods: Property.resolvePath\n * Part of the path entered to Property.resolvePath was not valid.\n */\n INVALID_PATH_TOKEN: \"PR-005: ResolvePath error: accessed a child via an invalid path syntax: \",\n\n /**\n * methods: MapProperty.insert, NodeProperty.insert, ReferenceMapProperty.insert, Workspace.insert,\n * SetProperty.insert\n * Your map, set or nodeproperty already contains an entry under in_key.\n */\n PROPERTY_ALREADY_EXISTS: \"PR-006: The property already exists in this collection: \",\n\n /**\n * methods: MapProperty.applyChangeset, NodeProperty.applyChangeset, SetProperty.applyChangeset\n * The changeset you applied contains properties that have already been inserted.\n * Check the ‘insert’ fields in your changeSet for properties that might already exist.\n */\n INSERTED_EXISTING_ENTRY: \"PR-007: Inserted an already existing entry: \",\n\n /**\n * methods: MapProperty.remove, SetProperty.remove\n * Tried to remove an entry that does not exist.\n * This can be caused indirectly by deserialize / applyChangeset methods.\n * One of the ‘remove’ fields in your changeSet must contain a property that does not exist.\n */\n REMOVED_NON_EXISTING_ENTRY: \"PR-008: Trying to remove a non-existing entry: \",\n\n /**\n * methods: MapProperty.applyChangeset, NodeProperty.applyChangeset, SetProperty.applyChangeset\n * One of the key you are trying to modify in your changeSet does not exist.\n * One of the ‘modify’ fields in your changeSet refers to a property that does not exist.\n */\n MODIFY_NON_EXISTING_ENTRY: \"PR-009: Trying to modify a not existing entry: \",\n\n /**\n * methods: MapProperty.insert, MapProperty.set, SetProperty.insert, NodeProperty.insert\n * The value you are trying to insert in your map property, set property or node property has a parent.\n * You cannot insert a property that has a parent.\n */\n INSERTED_ENTRY_WITH_PARENT: \"PR-010: Trying to insert into a collection a property that already has \" +\n \"a parent.\",\n\n /**\n * methods: Property.resolvePath, Workspace.resolvePath\n * Paths should not contain empty sections such as ‘..’, ‘//’ or ‘[], etc.\n * Sections in the path are delimited by ‘.’ ‘[ ]’, ‘/’ .\n * There should always be a path between any two delimiters.\n */\n EMPTY_TOKEN: \"PR-011: ResolvePath error: Encountered empty token in path: \",\n\n /**\n * methods: Property.resolvePath, Workspace.resolvePath\n * Paths should not contain quotes except at the beginning and end of the path.\n * For example: resolvePath('my\"path.nested\".other') is not valid because the first quote is in front of ‘path’\n * but after the ‘.nested’ which is part of the subsequent path.\n */\n QUOTES_WITHIN_TOKEN: \"PR-012: ResolvePath error: Quotes must only be at the start and the \" +\n \"end of a path. Error in path: \",\n\n /**\n * methods: Property.resolvePath, Workspace.resolvePath\n * Paths should not end with a ‘.’\n */\n DOT_AT_END: \"PR-013: ResolvePath error: Encountered a dot at the end of path: \",\n\n /**\n * methods: Property.resolvePath, Workspace.resolvePath\n * Paths using square brackets should not contain ‘.’ within those square brackets.\n * If your path contains any dots, these should be escaped e.g. [my\\.path] instead of [my.path].\n */\n DOTS_IN_SQUARE_BRACKETS: \"PR-014: ResolvePath error: Encountered a dot within a square bracket. \" +\n \"These have to be escaped. Error in path: \",\n\n /**\n * methods: Property.resolvePath, Workspace.resolvePath\n * resolvePath error while parsing your string.\n * It encountered an end to a path segment that was not\n * followed by a “.” or a “[“ indicating the beginning of a new segment.\n */\n MISSING_DOT_AT_SEGMENT_START: \"PR-015: Missing . or [ at segment start in path: \",\n\n /**\n * methods: Property.resolvePath, Workspace.resolvePath\n * Closing square bracket not followed by the correct character (., [ or *).\n * For example, this is not valid: resolvePath(myArray[2]nested).\n * This is valid: resolvePath(myArray[2].nested).\n */\n INVALID_END_OF_SQUARE_BRACKETS: \"PR-016: ResolvePath error: Square brackets have to be followed either \" +\n 'by \".\" or by \"[\" or by \"*\". Error in path: ',\n\n /**\n * methods: Property.resolvePath, Workspace.resolvePath\n * Every opening bracket ([) needs a matching closing bracket (])\n */\n UNCLOSED_BRACKETS: \"PR-017: ResolvePath error: Unclosed brackets at the end of path: \",\n\n /**\n * methods: Property.resolvePath, Workspace.resolvePath\n * Any closing bracket (]) must be preceded by a matching opening bracket ([).\n */\n CLOSING_BRACKET_WITHOUT_OPENING: \"PR-018: ResolvePath error: Encountered closing bracket without \" +\n \"corresponding opening one in path: \",\n\n /**\n * methods: Property.resolvePath, Workspace.resolvePath\n */\n INVALID_ESCAPE_SEQUENCE: \"PR-019: Encountered an invalid escape sequence in path: \",\n\n /**\n * methods: Property.resolvePath, Workspace.resolvePath\n * A quotation mark at the beginning of a path must have a matching closing quotation mark\n * at the end of the same path.\n */\n UNCLOSED_QUOTATION_MARKS: \"PR-020: ResolvePath error: Encountered unclosed quotation marks in path: \",\n\n /**\n * methods: SetProperty.insert, SetProperty.set, SetProperty.setValues\n * The property you insert in a setProperty must be an instance of NamedProperty.\n * When creating the property to be inserted, make sure it inherits from NamedProperty.\n * @example\n * #Creating a property that inherits from NamedProperty\n * ```json\n * {\n * typeid:”my.example:myprop-1.0.0”,\n * inherits:’NamedProperty’ (or [‘NamedProperty’, …]\n * ...\n * }\n *```\n */\n CANT_INSERT_NON_NAMED_PROPERTIES: \"PR-021: Set can only contain named properties\",\n\n /**\n * methods: NodeProperty.insert, Workspace.insert\n * The property you inserted does not have an id.\n * Unless the property is an instance of NamedProperty, you must pass in an id as the first parameter\n * (and the property second)\n */\n ADDED_CHILD_WITHOUT_ID: \"PR-022: Added child without id.\",\n\n /**\n * methods: ArrayProperty.resolvePath\n * Cannot use .resolvePath on a primitive array, only on a Custom type array.\n * For a primitive array, use .getValue instead.\n * For example, instead of MyValueArray.resolvePath(1), use MyValueArray.getValue(1)\n */\n NO_PATHS_FOR_NON_PRIMITIVE_ARRAYS: \"PR-023: Path resolution is not supported for primitive type arrays.\",\n\n /**\n * methods: ArrayProperty.resolvePath\n * When using an array index as part of your path, it needs to have a numeric value.\n */\n INVALID_NON_NUMERIC_SEGMENT_IN_PATH: \"PR-024: ResolvePath error: Accessed an array via an non numeric index: \",\n\n /**\n * methods: ArrayProperty.getRelativePath, ArrayProperty.getAbsolutePath\n * INTERNAL ERROR\n * If you encounter this error, please contact the development team.\n * Part of the path you are trying to find points to a non-existing array item.\n */\n GET_PATH_SEGMENT_CALLED_FOR_NON_ENTRY: \"PR-025: Internal error: _getPathSegmentForChildNode has been called \" +\n \"for an entry that is not an entry of the collection. \",\n\n /**\n * methods:\n * The changeSet passed to .deserialize was not a valid non-normalized changeset.\n */\n NO_NORMALIZED_CHANGESET: \"PR-026: deserialize was called with a non-normalized ChangeSet.\",\n\n /**\n * INTERNAL ERROR - If you encounter this error, please contact the development team.\n * One of your changesets contained a NamedProperty without a GUID.\n * This should not happen and should have been validated already.\n */\n MISSING_GUID_IN_NORMALIZED_CHANGESET: \"PR-027: Missing GUID in a normalized ChangeSet with named properties\",\n\n /**\n * methods: EnumProperty.getEnumString, EnumProperty.setValue, EnumProperty.setEnumByString,\n * EnumProperty.getEnumString, EnumArrayProperty.getEnumStrings\n * This Enum Property does not have any entry with that value.\n * EnumProperty.getEnumByString -\\> the EnumProperty you used to pass this function does not have an entry.\n * EnumProperty.setValue -\\> no entry exists for in_value\n * EnumProperty.setEnumByString -\\> no entry exists for in_stringId\n * EnumArrayProperty.getEnumString -\\> the value found at in_position does not correspond to an entry.\n * EnumArrayProperty.getEnumStrings -\\> one of the values found at one of the positions sought does\n * not correspond to an entry.\n */\n UNKNOWN_ENUM: \"PR-028: enum value unknown: \",\n\n /**\n * methods: Property.applyChangeSet\n * Changeset contains an operation that is unknown.\n * Valid operations are insert, modify and remove.\n */\n UNKNOWN_OPERATION: \"PR-029: Unknown ChangeSet operation: \",\n\n /**\n * methods: Workspace.remove, NodeProperty.remove\n * The property you passed to workspace.remove or nodeProperty.remove does not exist.\n * Check that you passed the correct property, and that it has not yet been removed.\n */\n REMOVING_NON_EXISTING_KEY: \"PR-033: Trying to remove something that does not exist: \",\n\n /**\n * methods: Workspace.get, Property.get\n * Workspace.get and Property.get take in an id (string or number) or an array of ids.\n * @example\n * ```typescript\n *.get(‘position’).get(‘x’) or .get([‘property’, ‘x’])\n * ```\n */\n STRING_OR_ARRAY_STRINGS: \"PR-034: in_id must be a string, a number or an array of these. This is not valid: \",\n\n /**\n * methods: Property.serialize\n * Property.serialize only takes in one parameter: an options object. That parameter is optional.\n */\n SERIALIZE_TAKES_OBJECT: \"PR-035: Argument of serialize() should be an object.\",\n\n /**\n * ArrayProperty.insert, ArrayProperty.insertRange\n * The in_position (for .insert) or in_offset (for .insertRange) should not be smaller than 0\n * or larger than the length of the array.\n */\n START_OFFSET_INVALID: \"PR-036: ArrayProperty: insert range - Start offset is invalid: \",\n\n // PR-037 removed\n\n /**\n * ArrayProperty.remove, ArrayProperty.removeRange, ArrayProperty.pop\n * INTERNAL ERROR - If you encounter this error, please contact the development team.\n * The item (or one of the items) you are trying to remove from the array has a parent that is not the array.\n * This should not happen because you should not have been able to insert the item in the array in the first place.\n */\n CANNOT_REMOVE_WITH_DIFFERENT_PARENT: \"PR-038: Internal error: Trying to remove from an array a property that \" +\n \"has not the array as parent.\",\n\n /**\n * methods ArrayProperty.set, ArrayProperty.setRange\n * Your first parameter: in_position (for .set) and in_offset (for .setRange) cannot have a negative value.\n */\n START_OFFSET_NEGATIVE: \"PR-039: ArrayProperty: Modify range - Start offset cannot be negative: \",\n\n /**\n * methods: ArrayProperty.removeRange, ArrayProperty.setRange, ArrayProperty.insertRange,\n * ArrayProperty.insert, EnumArrayProperty.getEnumStrings\n * The parameter needs to be a number.\n * For .removeRange: in_offset and in_deleteCount\n * For .setRange: in_offset\n * For .insertRange: in_offset\n * For .getEnumStrings: in_offset, in_length\n * For StringProperty.insert: in_position\n */\n NOT_NUMBER: \"PR-049: This parameter must be a number: parameter: \",\n\n /**\n * methods: Property.traverseUp, Property.traverseDown\n * Property.traverseUp and Property.traverseDown take one parameter: a callback function\n */\n CALLBACK_NOT_FCT: \"PR-050: traverseUp / traverseDown parameter: in_callback must \" +\n \"be a function.\",\n\n /**\n * methods: ArrayProperty.insertRange\n * Array.insertRange takes two parameters. The second one (in_array) must be an array.\n * To pass in only one item, either use .insert(index, item)\n * or put that item into an array: .insertRange(index, [item])\n */\n IN_ARRAY_NOT_ARRAY: \"PR-051: Parameter error: in_array must be an array for method: \",\n\n /**\n * methods: EnumProperty.setEnumByString\n * EnumProperty.setEnumByString takes one parameter: a string id. It must be a string.\n */\n STRING_ID_MUST_BE_STRING: \"PR-052: EnumProperty.setEnumByString parameter: in_stringId must \" +\n \"be a string. This is not valid: \",\n\n /**\n * methods: Integer64Property.setValueHigh\n * Integer64Property.setValueHigh takes one parameter: a number.\n */\n IN_HIGH_MUST_BE_NUMBER: \"PR-053: Integer64Property.setValueHigh parameter: in_high must \" +\n \"be a number. This is not valid: \",\n\n /**\n * methods: Integer64Property.setValueLow\n * Integer64Property.setValueLow takes one parameter: a number.\n */\n IN_LOW_MUST_BE_NUMBER: \"PR-054: Integer64Property.setValueLow parameter: in_low must \" +\n \"be a number. This is not valid: \",\n\n /**\n * methods: IntegerProperty.toString\n * Integer64Property.toString takes one optional parameter: a number (in_radix).\n * If no value is passed, will default to 10.\n */\n IN_RADIX_MUST_BE_NUMBER: \"PR-055: Integer64Property.toString parameter: in_radix must be a number. This is not valid: \",\n\n /**\n * methods: IntegerProperty.fromString\n * Integer64Property.fromString takes two parameters. The first parameter (in_string) must be a string.\n * (the second parameter is in_radix, a number. It is optional: defaults to 10).\n */\n IN_STRING_MUST_BE_STRING: \"PR-056: Integer64Property.fromString parameter: in_string must \" +\n \"be a string. This is not valid: \",\n\n /**\n * methods: Integer64Property.fromString\n * Integer64Property.fromString takes two parameters. The second parameter is optional but if passed,\n * it must be a number between 2 and 36. If not passed, it defaults to 10. (the first parameter is\n * in_string and must be a string).\n */\n IN_RADIX_BETWEEN_2_36: \"PR-057: Integer64Property.fromString parameter: in_radix must be a \" +\n \"number between 2 and 36. This is not valid: \",\n\n /**\n * methods MapProperty.insert, ReferenceMapProperty.set\n * MapProperty.insert and ReferenceMapProperty.set both take two parameters.\n * The first parameter (in_key) must be a string.\n */\n KEY_NOT_STRING: \"PR-058: MapProperty.insert / ReferenceMapProperty.set parameter: \" +\n \"in_key must be a string. This is not valid: \",\n\n /**\n * methods: NodeProperty.insert, Workspace.insert\n * he second parameter (in_property) must be a valid property (it must be an instance of BaseProperty).\n */\n NOT_A_PROPERTY: \"PR-059: NodeProperty.insert parameter in_property is not a property. \" +\n \"The property you passed is not a valid property.\",\n\n /**\n * methods: ReferenceProperty.set / setValue, ReferenceMapProperty.insert / set / setValue / setValues,\n * ReferenceArrayProperty.enqueue / push / unshift / insert / insertRange / set / setRange / setValue / setValues\n * The provided value (or values) must be a valid property (an instance of BaseProperty), be undefined or a string (a path).\n */\n PROPERTY_OR_UNDEFINED:\n \"PR-060: Parameter for setting a Reference should be a path to a property, a property or undefined. This is not valid: \",\n\n /**\n * ArrayProperty.insertRange, ArrayProperty.insert, ArrayProperty.push\n * INTERNAL ERROR - If you encounter this error, please contact the development team.\n * The item (or one of the items) you are trying to insert in this array has a parent that is not the array.\n */\n NO_INSERT_WITH_PARENT: \"PR-088: Internal error: Trying to insert a property into an array or \" +\n \"string that already has a parent.\",\n\n /**\n * methods: ArrayProperty.get\n * ArrayProperty.get takes in one parameter: in_position, which can a single position or an array.\n * If it is a single position, it is the numerical position of the item in the array.\n * It must be a number or a string that parses into a number (e.g. '2').\n * If you pass in an array, the first item of the array must be a number or a string that parses into a number.\n * (other items in the array are child paths within the array item at this position).\n * This error happens only when in_position is an array.\n */\n FIRST_ITEM_MUST_BE_NUMBER: \"PR-092: The first item in the in_position array must be an array \" +\n \"position (a number). This is not valid: \",\n\n /**\n * methods: ArrayProperty.get\n * ArrayProperty.get takes in one parameter: in_position, which can a single position or an array.\n * If it is a single position, it is the numerical position of the item in the array.\n * It must be a number or a string that parses into a number (e.g. '2').\n * If you pass in an array, the first item of the array must be a number or a string that parses into a number\n * (other items in the array are child paths within the array item at this position).\n * This error happens only when in_position is a single position.\n */\n IN_POSITION_MUST_BE_NUMBER: \"PR-093: in_position must be a number. This is not valid: \",\n\n /**\n * methods: Property.getValue\n * Property.getValue takes one parameter: in_id.\n * It can either be a string or an array of strings. It cannot be an empty array.\n */\n CANNOT_BE_EMPTY_ARRAY: \"PR-095: Property.getValue parameter: in_id cannot be an empty array.\",\n\n /**\n * methods: EnumArrayProperty.set\n * EnumArrayProperty.set takes two parameters: in_index and in_value.\n * In_value should be a number. setValue cannot be used to set enum by string.\n * Use .setEnumByString instead.\n */\n VALUE_SHOULD_BE_NUMBER: \"PR-096: EnumArrayProperty.set parameter: in_value should be \" +\n \"a number. To set the value of an enum string, use .setEnumByString \" +\n \"instead.\",\n\n /**\n * methods: EnumArrayProperty.setEnumByString\n * EnumArrayProperty.setEnumByString cannot be use to set enum by number. Use .set instead.\n */\n VALUE_SHOULD_BE_STRING: \"PR-098: EnumArrayProperty.setEnumByString parameter: in_value should be \" +\n \"a string. To set a number, use .set instead.\",\n\n /**\n * methods: ArrayProperty.get\n * In_position or in_offset is either lower than 0 or higher than the length of the array.\n * Make sure that the property you are trying to get from the array exists and that the position is correct.\n */\n GET_OUT_OF_RANGE: \"PR-106: Trying to access out of bounds at index: \",\n\n /**\n * methods: ArrayProperty.setRange, ArrayProperty.set\n * setRange: Either in_offset is lower than zero or in_offset + length of in_array is higher than\n * the length of the array. If you need to add items that were not there before, add those using\n * .push, .insert or .insertRange.\n */\n SET_OUT_OF_BOUNDS: \"PR-107: Trying to set out of bounds. \",\n\n /**\n * methods: ArrayProperty.removeRange, ArrayProperty.remove\n * RemoveRange: Either in_offset is smaller than zero or in_offset + in_deleteCount is higher than\n * the length of the array. Make sure that the properties you are trying to remove exist in that\n * array and that you entered the positions correctly.\n * Remove: in_offset is either smaller than zero or larger than the length of the array.\n */\n REMOVE_OUT_OF_BOUNDS: \"PR-110: Trying to remove out of bounds. \",\n\n /**\n * methods: PropertyFactory.create\n * INTERNAL ERROR - If you encounter this error, please contact the development team.\n * Warning: Something went wrong when creating your property: it did not successfully create\n * the property and then tried to set its value.\n */\n NON_EXISTING_PROPERTY_REPOSITORY_REFERENCE: \"PR-111: Internal error: PropertyFactory.create failed to create \" +\n \"this property.\",\n\n /**\n * methods: Property.setValues\n * One of the path you used in .setValues leads to a property.\n * When passing an object to setValues, make sure that all paths lead to a primitive value.\n */\n SET_VALUES_PATH_PROPERTY: \"PR-115: trying to set value to a path leading to a property: \",\n\n /**\n * methods: Property.setValues\n * One of the path in the object you passed to .setValues does not match the structure of this property.\n */\n SET_VALUES_PATH_INVALID: \"PR-116: trying to set value to an invalid path: \",\n\n /**\n * methods: Property.setValues\n * .setValues takes one parameter: an object containing paths to the values to be changed.\n * It should be an object (or in the case of ArrayProperty, an array)\n */\n SET_VALUES_PARAM_NOT_OBJECT: \"PR-117: setValues parameter: in_properties must be an object.\",\n\n /**\n * methods: PropertyFactory.create\n * The array you tried to create had a typeid that was no recognized.\n * It was not a custom type array or one of the following: ‘String’, ‘Int64’, ‘Uint64’ or ‘Bool’.\n */\n UNKNOWN_ARRAY_TYPEID: \"PR-118: Unknown typeid in array: \",\n\n /**\n * methods: MapProperty.insert, MapProperty.set\n * .insert and .set take two parameters. The first one is in_id (or in_key), which is the id under\n * which the property is added. It can only be a string or a number. Only in the case of named\n * property can it be omitted.\n */\n ID_STRING_OR_NUMBER: \"PR-119: id should be a string or a number. This is not valid: \",\n\n /**\n * methods: ValueProperty.deserialize\n * .deserialize takes on parameter: a serialized object. It cannot be undefined.\n */\n DESERIALIZE_EMPTY_CHANGESET: \"PR-121: ValueProperty.deserialize() called on an empty changeset\",\n\n /**\n * methods: IntMapProperty.insert, UintMapProperty.insert\n * You tried to insert into a (u)Int64MapProperty or (u)Int64ArrayProperty properties that\n * were not Int64 or UInt64 properties or properties that can be casted to the correct type.\n */\n INT_64_NON_INT64_TYPE: \"PR-122: Tried to use (u)Int64MapProperty or (u)Int64ArrayProperty with an invalid type.\",\n\n /**\n * methods: Integer64.toString, Integer64.fromString\n */\n BASE_OUT_OF_RANGE: \"PR-123: Base is out of range. Base should be in range [2,36]. This is not valid: \",\n\n /**\n * methods: Integer64.fromString\n * If your property is an instance of Uint64, you cannot set it to a negative number.\n * Uint64 does not support negative numbers. Use Int64 if you need to support negative numbers.\n */\n CANNOT_UPDATE_TO_NEGATIVE: \"PR-124: Cannot update value to negative: \",\n\n /**\n * methods: Integer64.fromString\n * The string you passed as a first parameter to .fromString contains non-numerical characters.\n */\n CANNOT_PARSE_INVALID_CHARACTERS: \"PR-125: Cannot parse. String contains invalid characters: \",\n\n /**\n * methods: Property constructor\n * INTERNAL ERROR - If you encounter this error, please contact the development team.\n * Something went wrong while the property constructor was creating a property.\n * The parameters it received were not objects.\n */\n PROP_CONSTRUCTOR_EXPECTS_OBJECTS: \"PR-126: Internal error: Object expected as parameters to \" +\n \"BaseProperty constructor\",\n\n /**\n * methods: Property.applyChangeSet\n * One of the ‘modify’ field in your changeset points to an index in the array that does not exist.\n * Check that the changeset you passed to applyChangeSet is valid. If you did not enter the changeSet yourself,\n * this is an internal error and you should contact the development team.\n */\n INDEX_INVALID: \"PR-131: modified property - index invalid: \",\n\n /**\n * methods: Property.isAncestorOf, Property.isDescendantOf\n * Property.isAncestorOf and .isDescendantOf take one parameter: a property. It cannot be undefined.\n */\n MISSING_IN_OTHERPROP: \"PR-132: isAncestorOf parameter: in_otherProperty must be specified.\",\n\n /**\n * methods: StringProperty.insert, StringProperty.push\n * StringProperty.insert takes two parameters: in_position and in_value.\n * The second one (in_value) must be a string.\n * StringProperty.push takes only one parameter (in_value), which must be a string.\n */\n IN_VALUE_MUST_BE_STRING: \"PR-133: parameter error: in_value must be a string. This is not valid: \",\n\n /**\n * methods: ValueProperty.getValues\n * You cannot use the method .getValues on value properties. getValues is used to get multiple nested\n * values from a custom property. To get the value of a primitive property, use .getValue instead.\n */\n NO_VALUE_PROPERTY_GETVALUES: \"PR-134: Cannot use .getValues on value properties or strings. \" +\n \"Use .getValue instead.\",\n\n /**\n * methods: Property.setValues, ArrayProperty.insertRange, ArrayProperty.removeRange,\n * ArrayProperty.setRange, EnumArrayProperty.setEnumByString, ArrayProperty.insert, ArrayProperty.set,\n * ArrayProperty.clear\n * If a property is created as a constant, it cannot be changed.\n */\n MODIFICATION_OF_CONSTANT_PROPERTY: \"PR-140: Modifications of constants are not allowed.\",\n\n /**\n * methods: ArrayProperty.insert, ArrayProperty.insertRange\n * In a non-primitive array, you can only insert instances of properties. You should use PropertyFactory.create\n * to create an instance of your property before inserting it into the array.\n */\n INSERT_NOT_A_PROP: \"PR-141: In an array of properties, you can only insert instances of \" +\n \"properties. This value is not valid: \",\n\n /**\n * If a property is a reference, it cannot be changed.\n */\n MODIFICATION_OF_REFERENCED_PROPERTY: \"PR-142: Modifications of referenced properties are not allowed.\",\n\n /**\n * methods: Property.getValue\n * Property.getValue(in_ids) is a shortcut for Property.get(in_ids).getValue().\n * Property.get(in_ids) must resolve to a ValueProperty.\n */\n GET_VALUE_NOT_A_VALUE: \"PR-160: in_ids does not resolve to a ValueProperty: \",\n\n /**\n * methods: MapProperty.insert\n * If your map is not a ValueMap, in_property must be an instance of BaseProperty.\n * Use PropertyFactory.create to create an instance of a property.\n */\n NONVALUE_MAP_INSERT_PROP: \"PR-161: In a map of properties, you can only insert properties.\",\n\n /**\n * methods: PropertyFactory.create\n * INTERNAL ERROR - If you encounter this error, please contact the development team.\n * This error is thrown while creating a Property, when the actual context\n * ('array', 'map', 'set' or 'single') is different than what was expected.\n */\n CONTEXT_NOT_AS_EXPECTED: \"PR-163: Property context is different than expected: \",\n\n /**\n * methods: Property.deserialize\n * INTERNAL ERROR - If you encounter this error, please contact the development team.\n * This error is thrown by .deserialize but is caused by an invalid changeSet. A serialized ChangeSet for an\n * Integer64Property must be an array of 2 integers: the low and the high values. Since users cannot yet supply\n * their changesets directly, this should not happen.\n */\n INVALID_INT64_CHANGESET: \"PR-164: Cannot deserialize invalid change set for Int64 property\",\n\n /**\n * methods: StringProperty.set\n * StringProperty.set takes two parameters: in_index (a number, the index of the string that you wish to change)\n * and in_string (the string you want to insert at that index). To set the value of the whole string, use\n * setValue.\n */\n STRING_SET_NEEDS_INDEX: \"PR-165: String.set first parameter should be an index (number). This is not valid: \",\n\n /**\n * methods: Property.get\n * The token DEREFERENCE_TOKEN should only be used with .get when the in_ids passed to .get is an array.\n * the DEREFERENCE_TOKEN should follow a path to a reference.\n * @example <caption>valid: </caption>\n * myProp.get(['myReference', TOKENS.DEREFERENCE_TOKEN])\n * @example <caption>not valid: </caption>\n * myProp.get('myReference').get(TOKENS.DEREFERENCE_TOKEN)\n */\n NO_GET_DEREFERENCE_ONLY: \"PR-166: Cannot use a dereference token only with .get\",\n\n /**\n * methods: StringProperty.setValues\n * You cannot call .setValues on a StringProperty. To set the value of the string, use .setValue\n * instead.\n */\n NO_VALUE_PROPERTY_SETVALUES: \"PR-167: setValues is not a valid method for String Properties\",\n\n /**\n * methods: Property.getRelativePath\n * In cases where you have more than one repository reference property pointing to the same repository, finding a path\n * between a properties in different repositories can lead to more than one valid results. In that case, .getRelativePath\n * will return the first valid path it finds. If you want to control how which path is used, you should construct the\n * string path by concatenating the absolute path for the prop in the nested repository and the relative path between your\n * repository reference and the target property.\n */\n MORE_THAN_ONE_PATH: \"PR-169: More than one paths exist between \",\n\n /**\n * methods: Property.getRelativePath\n * getRelativePath takes one parameter: the property from which the path will start. This must be an instance of\n * BaseProperty. The method will return the path from that property to the property on which it was called ('this')\n */\n IN_FROMPROPERTY_MUST_BE_PROPERTY: \"PR-170: getRelativePath parameter error: in_fromProperty must be a property\",\n\n /**\n * methods: Property.getRelativePath\n * getRelativePath does not return a path between a property that is inside a child repository to one that is in\n * a parent repository. A path like this could not be used with .resolvePath or be used in a reference property\n * because neither method can go from the root of a referenced repository to a reference property.\n */\n NO_PATH_FROM_CHILD_REPO: \"PR-171: cannot get a path from a child repository to a parent repository\",\n\n /**\n * methods: getReferencedWorkspace\n * This repository reference is in read-only mode. Call enableWrite() to access the workspace.\n */\n REPOSITORY_REFERENCE_WORKSPACE_READ_ONLY:\n \"PR-173: This repository reference is in read-only mode. Call enableWrite() to access the workspace.\",\n\n /**\n * methods: Property.enableWrite\n * Repository reference is already in writable mode.\n */\n REPOSITORY_REFERENCE_WORKSPACE_EXIST_ALREADY: \"PR-174: Repository reference is already in writable mode\",\n\n /**\n * methods: Property.enableWrite\n * Can't enable write on an empty repository reference without at least a repositoryGUID and branchGUID.\n */\n WRITABLE_REPOSITORY_REFERENCE_NEED_GUIDS:\n \"PR-176: Can't enable write on an empty repository reference without at least a repositoryGUID and branchGUID\",\n\n /**\n * methods: Property.enableWrite\n * Repository reference failed to automatically commit the new commitGUID.\n */\n WRITABLE_REPOSITORY_AUTO_COMMIT_FAIL: \"PR-177: Repository reference failed to automatically commit the new commitGUID\",\n\n /**\n * methods: Property._setFollowBranch\n * An unexpected error occurred while trying to switch a repository reference followBranch property\n */\n WRITABLE_REPOSITORY_SET_FOLLOW_BRANCH_FAILED:\n \"PR-178: An unexpected error occurred while trying to switch a repository reference followBranch property to \",\n\n /**\n * methods: MapProperty.insert, MapProperty.set\n * .insert and .set take two parameters. The first one is in_id (or in_key), which is the id under\n * which the property is added. It can not be an empty string.\n */\n ID_SHOULD_NOT_BE_EMPTY_STRING:\n \"PR-179: id should not be an empty string.\",\n\n /**\n * methods: StringProperty.set\n * StringProperty.set: in_character must have a length of 1.\n */\n STRING_SET_ONE_CHAR: \"PR-180: String.set, only one character can be set (in_character must have a length of 1).\",\n\n /**\n * methods: EnumArrayProperty.set\n * EnumArrayProperty.set only accepts a string or number as input for in_value\n */\n VALUE_STRING_OR_NUMBER:\n \"PR-181: in_value should be a string or a number. This is not valid: \",\n\n /**\n * methods: ArrayProperty.set\n * The in_value input of ArrayProperty.set should not be an array.\n */\n ARRAY_SET_ONE_ELEMENT:\n \"PR-182: in_value should be a single element. This is not valid: \",\n\n CANT_DIRTY_MISSING_PROPERTY: \"PR-183: Can't dirty missing property: \",\n\n /**\n * methods: MapProperty.insert, MapProperty.set, SetProperty.insert, NodeProperty.insert\n * The property you are trying to insert in your map property, set property or node property is a root.\n */\n INSERTED_ROOT_ENTRY: \"PR-184: Trying to insert a root property into a collection.\",\n\n /**\n * methods: MapProperty.insert, MapProperty.set, SetProperty.insert, NodeProperty.insert\n * The property you are trying to insert in your map property, set property or node property is already\n * a parent of the map, set, or node property. You cannot insert this property there or you would create\n * a cycle in your data tree.\n */\n INSERTED_IN_OWN_CHILDREN:\n \"PR-185: Trying to insert a property in itself or in one of its children.\",\n\n /**\n * methods: MapProperty.insert, MapProperty.set, SetProperty.insert, NodeProperty.insert\n * The property you are trying to insert (or at least one if its children) in your map property, set\n * property or node property is not covered by the paths of the partial checkout.\n * You cannot insert this property because you would not receive updates for this path after the\n * insertion and you could corrupt your data by doing subsequent modifications.\n */\n INSERTED_OUTSIDE_PATHS:\n \"PR-186: Trying to insert a property outside the paths covered by the partial checkout.\",\n\n SHARED_BEFORE_INSERTED: \"PR-187: Property must be inserted in the workspace before sharing.\",\n\n CUSTOM_ID_NOT_ALLOWED: \"PR-188: The following property does not support custom id: \",\n};\n\nconst PropertyFactoryError = {\n\n /**\n * methods: PropertyFactory.create\n * Each property created with PropertyFactory.create should have a unique id. You should make sure your\n * code generates a unique id for each property created, or make your property an instanced of NamedProperties\n * (which are identified by a unique Urn)\n */\n OVERWRITING_ID: \"PF-001: Id already exists: \",\n\n /**\n * methods: PropertyFactory.register\n * Warning: The template passed into the register method does not match the expected structure for this type.\n */\n TEMPLATE_MISMATCH: \"PF-004: Template structures do not match for typeid: \",\n\n /**\n * methods: PropertyFactory.register\n * The typeid assigned to your property template should include a version.\n * E.g. 1.0.0 - an example of a valid typeid: “my.example:point2d-1.0.0”\n */\n UNVERSIONED_TEMPLATE: \"PF-005: Templates must be versioned.\",\n\n /**\n * INTERNAL ERROR - If you encounter this error, please contact the development team.\n * Error occurs when a template has been inserted into the branch without a SEMVER version.\n * This can occur when registering templates through the commit REST interface. At this point\n * the data is corrupted and should be reported to the development team\n */\n UNVERSIONED_REMOTE_TEMPLATE: \"PF-006: Internal error: Remote template is not versioned.\",\n\n /**\n * methods: PropertyFactory.create\n * RepositoryReferences are not yet fully implemented. They will be soon.\n */\n REPOSITORY_REF_NOT_FULLY_IMPLEMENTED: \"PF-007: Repository references are not yet fully implemented and may not \" +\n \"yet be used\",\n\n /**\n * methods: PropertyFactory.create\n * When using ‘inherits’ in your property template, it must be a string or an array.\n * @example\n * ```json\n * {\n * typeid:'my.example:point2d-1.0.0',\n * inherits: ‘ another property’\n * }\n * ```\n * or :\n * ```json\n * {\n * typeid:'my.example:point2d-1.0.0',\n * inherits: [‘another property’, ‘property2’]\n * }\n * ```\n */\n INHERITS_ARRAY_OR_STRING: \"PF-008: Internal error: Inherits must be an Array or a String. This is not valid: \",\n\n /**\n * methods: PropertyFactory.create\n * Context can be ‘array, ‘set’, ‘map’, ‘enum’ or ‘single’. If not specified, will default to ‘single’.\n */\n UNKNOWN_CONTEXT_SPECIFIED: \"PF-009: Unknown context specified: \",\n\n /**\n * methods: PropertyFactory.create\n * The property you entered into PropertyFactory.create has a typeid that is not registered.\n * Make sure you register the template before creating an instance of that property. This could\n * also be caused by a failure in the registration process.\n */\n UNKNOWN_TYPEID_SPECIFIED: \"PF-010: Unknown typeid specified: \",\n\n /**\n * methods: PropertyFactory.getAllParentsForTemplate, PropertyFactory.inheritsFrom\n * Cannot find a template for this typeid. Make sure you registered the template and that the typeid\n * is entered correctly. This can be an error with the template you are trying to insert or one of the\n * templates it inherits from.\n */\n NON_EXISTING_TYPEID: \"PF-011: Missing template for the property you entered or one of the templates it inherits from: \",\n\n /**\n * methods: PropertyFactory.register\n * The property you passed in to .register is a primitive property. These do not need to be registered with a\n * typeid. It can be created without being registered. E.g. PropertyFactory.create(‘String’)\n */\n CANNOT_REGISTER_PRIMITIVE: \"PF-012: Cannot register a primitive property with the public `register` \" +\n \"function typeid = \",\n\n /**\n * methods: PropertyFactory.convertToTemplates, PropertyFactory.registerFrom\n * Your template’s id field must be a string.\n */\n DEFINITION_ID_MUST_BE_STRING: 'PF-024: Value \"id\" of a definition should be a string. \"',\n\n /**\n * methods: PropertyFactory.convertToTemplates, PropertyFactory.registerFrom\n * The \"$ref\" keyword is used to reference a schema, and provides the ability to validate recursive structures\n * through self-reference.\n * An object schema with a \"$ref\" property MUST be interpreted as a \"$ref\" reference. The value of the \"$ref\"\n * property MUST be a URI Reference (a string)\n */\n REF_SHOULD_BE_STRING: 'PF-025: Value of \"$ref\" should be a string. \"',\n\n /**\n * methods: PropertyFactory.convertToTemplates, PropertyFactory.registerFrom\n * The identifier passed to $ref does not point to any schema.\n */\n COULD_NOT_FIND_REFERENCE: 'PF-026: Couldn\\'t find reference \"',\n\n /**\n * methods: PropertyFactory.convertToTemplates, PropertyFactory.registerFrom\n * The identifier passed to $ref does not point to an object.\n */\n REFERENCED_DEFINITION_SHOULD_BE_OBJECT: 'PF-027: A referenced definition should be an object. \"',\n\n /**\n * methods: PropertyFactory.convertToTemplates, PropertyFactory.registerFrom\n * In a JSON schema, the properties field must be an object.\n */\n PROPERTIES_SHOULD_BE_OBJECT: 'PF-028: The \"properties\" value should be an object. \"',\n\n /**\n * methods: PropertyFactory.convertToTemplates, PropertyFactory.registerFrom\n * oneOf’s value MUST be a non-empty array. Each item of the array MUST be a valid JSON Schema.\n * An instance validates successfully against this keyword if it validates successfully against exactly one\n * schema defined by this keyword's value.\n */\n ONE_OF_ONLY_FOR_ARRAYS_OF_ONE_OBJECT: 'PF-029: The \"oneOf\" object is supported only for arrays of one object.',\n\n /**\n * methods: PropertyFactory.convertToTemplates, PropertyFactory.registerFrom\n * oneOf’s value MUST be a non-empty array. Each item of the array MUST be a valid JSON Schema.\n */\n ONE_OF_SHOULD_CONTAIN_OBJECTS: 'PF-030: The \"oneOf\" array should contain objects. \"',\n\n /**\n * methods: PropertyFactory.convertToTemplates, PropertyFactory.registerFrom\n * This keyword's value MUST be a non-empty array. Each item of the array MUST be a valid JSON Schema.\n */\n ALL_OF_SHOULD_BE_ARRAY: 'PF-031: The \"allOf\" object should be an array.',\n\n /**\n * methods: PropertyFactory.convertToTemplates, PropertyFactory.registerFrom\n * This keyword's value MUST be a non-empty array. Each item of the array MUST be a valid JSON Schema.\n */\n ALL_OF_SHOULD_CONTAIN_OBJECTS: 'PF-032: The \"allOf\" array should contain objects. Element ',\n\n /**\n * methods: PropertyFactory.convertToTemplates, PropertyFactory.registerFrom\n * Your schema definition contains infinite recursion. For example, if your definition ‘a’ refers to definition\n * ‘b’ as being one of its children and ‘b’ refers to ‘a’ as one of its children.\n */\n INFINITE_RECURSION: \"PF-033: Infinite recursion detected in path: \",\n\n /**\n * methods: PropertyFactory.convertToTemplates, PropertyFactory.registerFrom\n * One part of your template object might contain something that is not of type ‘object’, ‘string’,\n * ‘number’ or ‘integer’.\n */\n UNSUPPORTED_VALUE_TYPE: 'PF-034: Unsupported value of field \"type\": ',\n\n REQUIRED_PROPERTY_NAME_NOT_STRING: 'PF-035: Required property name should be a string, \"',\n\n /**\n * This property is required but it is not listed in the properties field.\n */\n PROPERTY_NAME_DOES_NOT_MATCH: \"PF-036: Required property name does not match any property in object: \",\n\n /**\n * The ‘inherits’ field in your template object should be a string or an array of strings.\n */\n INHERITS_SHOULD_BE_STRING: 'PF-037: The \"inherits\" object should be a string or an array of strings. This is not valid: ',\n\n /**\n * The ‘context’ field in your template should be a string.\n */\n CONTEXT_SHOULD_BE_STRING: 'PF-038: The \"context\" value should be a string. This is not valid: ',\n\n /**\n * methods: PropertyFactory.convertToTemplates, PropertyFactory.registerFrom\n * Warning: If you have a ‘length’ field in your template and the context is not set to ‘array’,\n * ‘length’ will be ignored.\n */\n IGNORING_LENGTH_NOT_ARRAY: 'PF-039: ignoring \"length\" value since \"context\" is not \"array\".',\n\n /**\n * methods: PropertyFactory.convertToTemplates, PropertyFactory.registerFrom\n * In your template, the field ‘length’ should be a number.\n */\n LENGTH_SHOULD_BE_NUMBER: 'PF-040: The \"length\" value should be a number. This is not valid: ',\n\n /**\n * methods: PropertyFactory.convertToTemplates, PropertyFactory.registerFrom\n * Your template contains more than one definition field for this field.\n */\n DUPLICATE_DEFINITION: \"PF-041: Duplicate definition for \",\n\n /**\n * methods: PropertyFactory.convertToTemplates, PropertyFactory.registerFrom\n * The field ‘id’ is missing from your JSON schema.\n */\n FIELD_ID_IS_REQUIRED: 'PF-042: Field \"id\" is required.',\n\n /**\n * methods: PropertyFactory.convertToTemplates, PropertyFactory.registerFrom\n * You need a ‘typeid’ field in your template schema.\n * @example\n * ```json\n * {\n * ‘typeid’: 'autodesk.test:set.set-1.0.0',\n * ‘properties’: [\n * {‘typeid’: 'String',\n * ‘context’: 'set',\n * ‘id’: 'DummySet',\n * ‘inherits’:['NamedProperty']}\n * ]\n * }\n *```\n */\n FIELD_TYPEID_IS_REQUIRED: 'PF-043: Field \"typeid\" is required. It is the \"typeid\" of the resulting ' +\n \"PropertySets Template.\",\n\n /**\n * methods: PropertyFactory.register\n * The ‘length’ field in your template must be a number.\n */\n LENGTH_MUST_BE_NUMBER: \"PF-045: length must be a number. This is not valid: \",\n\n /**\n * methods: PropertyFactory.register\n * Each entry in your enum property array must have an id.\n * @example\n * ```json\n * {\n * \"typeid\": \"Adsk.Core:Units.Metric-1.0.0\",\n * \"inherits\": \"Enum\",\n * \"annotation\": { \"description\": \"The metric units\" },\n * \"properties\": [\n * { \"id\": \"m\" , \"value\": 1, \"annotation\": { \"description\": \"meter\" }},\n * { \"id\": \"cm\", \"value\": 2, \"annotation\": { \"description\": \"centimeter\" }},\n * { \"id\": \"mm\", \"value\": 3, \"annotation\": { \"description\": \"millimeter\" }}\n * ]\n * }\n * ```\n */\n ENUM_TYPEID_MISSING: \"PF-046: Enum: typeid missing\",\n\n /**\n * methods: PropertyTemplate constructor\n * Each entry in your enum property must have a value that is a number.\n * @example\n * ```json\n * {\n * \"typeid\": \"Adsk.Core:Units.Metric-1.0.0\",\n * \"inherits\": \"Enum\",\n * \"annotation\": { \"description\": \"The metric units\" },\n * \"properties\": [\n * { \"id\": \"m\" , \"value\": 1, \"annotation\": { \"description\": \"meter\" }},\n * { \"id\": \"cm\", \"value\": 2, \"annotation\": { \"description\": \"centimeter\" }},\n * { \"id\": \"mm\", \"value\": 3, \"annotation\": { \"description\": \"millimeter\" }}\n * ]\n * }\n * ```\n */\n ENUM_VALUE_NOT_NUMBER: \"PF-047: Enum: value must be a number. This is not valid: \",\n\n /**\n * methods: PropertyTemplate.getVersion\n * INTERNAL ERROR - If you encounter this error, please contact the development team.\n * Warning: you that the template on which you are calling the .getVersion method is not versioned.\n * The method will return undefined. This should not happen as we now validate that all templates are\n * versioned when registering them.\n */\n TEMPLATE_NOT_VERSIONED: \"PF-048: Internal error: Template is not versioned.\",\n\n /**\n * methods: PropertyFactory.register\n * Warning: Template already exists. The incoming template MUST match what is currently registered.\n * If they do not match, an error will be thrown letting you know that the templates are incompatible.\n * See error PF-004\n */\n REGISTERING_EXISTING_TYPEID: \"PF-049: Registering a typeid that already exists typeid = \",\n\n /**\n * methods: PropertyFactory.register\n * There were errors validating the template you are trying to register. See detailed errors attached.\n */\n FAILED_TO_REGISTER: \"PF-050: Failed to register typeid = \",\n\n /**\n * methods: PropertyFactory.convertToTemplates, PropertyFactory.registerFrom\n * So far, these methods can only convert from a JSON schema. The first parameter (in_fromType)\n * must be ‘JSONSchema’.\n */\n UNKNOWN_TYPE: \"PF-051: Unknown type: \",\n\n /**\n * methods: PropertyTemplate.serializeCanonical\n * INTERNAL ERROR - If you encounter this error, please contact the development team.\n * This error shouldn’t occur. The underlying private function that is called is a close cousin of the\n * deepCopy function which could have an arbitrary target specified. This doesn’t happen in the case of\n * the serializeCanonical.\n */\n INVALID_TARGET_PROPERTY_TEMPLATE: \"PF-053 Copying into incompatible target property template: \",\n\n /**\n * methods: PropertyFactory.loadTemplate\n * In order for the PropertyFactory to retrieve templates from remote store it has to have at least one store\n * interface to interact with. This is accomplished by making the PropertyFactory.addStore call.\n */\n MISSING_CASE_IN_TEMPLATE_SERIALIZATION: \"PF-054 Missing case in template canonical serialization: \",\n\n OVERRIDDING_INHERITED_TYPES: \"PF-057: Overriding of inherited typed properties is not allowed: \",\n\n /**\n * methods: PropertyFactory.register\n * PropertyFactory.register takes one parameter, which can be a string (typeid), a json object (a template) or an\n * array of these.\n */\n ATTEMPT_TO_REGISTER_WITH_BAD_ARGUMENT: \"PF-058: register only accepts strings, json structures or array of those\",\n\n /**\n * methods: PropertyFactory.resolve\n * No store has been added yet to the PropertyFactory. A template store has to be instantiated then added with\n * propertyFactory.addStore()\n */\n NO_STORE_HAS_BEEN_INITIALIZED_YET: \"PF-059: No store has been initialized yet to the PropertyFactory.\",\n\n /**\n * methods: PropertyFactory.resolve\n * resolve cannot be called until previous call to resolve has completed.\n */\n DEPENDENCIES_RESOLUTION_IN_PROGRESS: \"PF-060: Dependencies resolution already in progress\",\n\n /**\n * methods: PropertyFactory.create\n * Typed values must contain properties that inherit from the base type.\n */\n TYPED_VALUES_MUST_DERIVE_FROM_BASE_TYPE: \"PF-061: Typed values must be derived from base type: \",\n\n /**\n * methods: PropertyFactory.create\n * The field ‘value’ is missing from your JSON schema.\n */\n FIELD_VALUE_IS_REQUIRED: 'PF-062: Field \"value\" is required: ',\n\n /**\n * methods: PropertyFactory.register\n * Warning: The structure of the template passed into the register method does not match the structure of a remote template registered under the same typeid.\n */\n REMOTE_TEMPLATE_MISMATCH: \"PF-064: Template structures do not match an already registered remote template with the same typeid for typeid: \",\n\n /**\n * methods: PropertyFactory.initializeSchemaStore\n * Warning: The initializeSchemaStore method must be provided with an options object\n containing a getBearerToken function and the url to the ForgeSchemaService.\n */\n MISSING_FSS_INIT_OPTIONS: \"PF-065: The initializeSchemaStore method must be provided with an options object \" +\n \"containing a getBearerToken function and the url to the ForgeSchemaService.\",\n\n /**\n * methods: PropertyFactory.initializeSchemaStore\n * Warning: The initializeSchemaStore method url option must be passed a valid base url.\n */\n FSS_BASEURL_WRONG: \"PF-066: The initializeSchemaStore method url option must be passed a valid base url.\",\n\n /**\n * methods: PropertyFactory.create\n * Overridden properties must have same context as the base type.\n */\n OVERRIDEN_PROP_MUST_HAVE_SAME_CONTEXT_AS_BASE_TYPE: \"PF-067: Overridden properties must have same context as the base type: \",\n\n /**\n * methods: PropertyFactory.create\n * Primitive types does not support typedValues.\n */\n TYPED_VALUES_FOR_PRIMITIVES_NOT_SUPPORTED: \"PF-068: Primitive types does not support typedValues: \",\n\n /**\n * methods: PropertyFactory.inheritsFrom\n */\n TYPEID_IS_NOT_ENUM: \"PF-069: The provided type does not inherit from Enum: \",\n};\n\nconst RepositoryError = {\n\n /**\n * methods: NodeProperty.remove\n * The property you tried to remove does not exist (its id was not found) - check that the id is correct\n * and that the property has not already been removed.\n */\n REMOVING_NON_EXISTING_ID: \"RE-001: Removing non existing id: \",\n\n /**\n * methods: BranchNode.isEqual, CommitNode.isEqual\n * In_node parameter is required. In_node is the branch or commit you wish to compare to ‘this’ branch/commit\n * node to check for equality.\n */\n MISSING_IN_NODE_PARAM: \"RE-004: BranchNode.isEqual / CommitNode.isEqual missing \" +\n \"parameter: in_node\",\n\n /**\n * methods: BranchNode, CommitNode, Workspace.commit\n * The BranchNode or CommitNode constructor was called without in_params.guid or we tried to send a commit\n * without a guid.\n */\n MISSING_GUID_FIELD: \"RE-006: Missing guid field\",\n\n /**\n * INTERNAL ERROR - If you encounter this error, please contact the development team.\n */\n LOCAL_AND_REMOTE_BRANCH_NOT_EQUAL: \"RE-007: Remote branch urn must equal the local branch urn\",\n\n /**\n * INTERNAL ERROR - If you encounter this error, please contact the development team.\n */\n BRANCH_NOT_REMOTE_BRANCH: \"RE-008: Branch is not a remote branch \",\n\n /**\n * now rebasing to \\<commit guid\\>'\n * INTERNAL ERROR - If you encounter this error, please contact the development team.\n * A commit node already rebased has been rebased again.\n */\n COMMIT_ALREADY_REBASED: \"RE-009: Should not rebase commit more than once: \",\n\n /**\n * INTERNAL ERROR - If you encounter this error, please contact the development team.\n * A new commit has been received from the server but was not expected. See specific message for more details.\n */\n UNEXPECTED_COMMIT_FROM_SERVER: \"RE-010: Adding commit to remote branch \",\n\n /**\n * This error will occur if the repository associated to a branch hasn't been found.\n */\n REPOSITORY_NOT_FOUND: \"RE-011: Internal Error: The repository hasn't been found.\",\n\n /**\n * This error will occur if the branch within a repository hasn't been found.\n */\n BRANCH_NOT_FOUND: \"RE-012: The branch hasn't been found.\",\n};\n\nconst ServerError = {\n\n /**\n * INTERNAL ERROR - If you encounter this error, please contact the development team.\n */\n URL_MUST_BE_STRING: \"SE-001: Url must be a string.\",\n\n /**\n * INTERNAL ERROR - If you encounter this error, please contact the development team.\n */\n PORT_MUST_BE_NUMBER: \"SE-002: Port must be a number\",\n};\n\nconst ChangeSetError = {\n\n /**\n * Context can only be ‘single’, ‘array’, ‘map’, ‘set’ or ‘enum’. All other values are invalid.\n */\n UNKNOWN_CONTEXT: \"CS-001: Unknown context: \",\n\n /**\n * INTERNAL ERROR - If you encounter this error, please contact the development team.\n */\n ALREADY_EXISTING_ENTRY: \"CS-003: Internal error: Added an already existing entry: \",\n\n /**\n * INTERNAL ERROR - If you encounter this error, please contact the development team.\n * The ChangeSet did not include an oldValue member which is computed when making the ChangeSet reversible.\n */\n OLD_VALUE_NOT_FOUND: \"CS-004: Internal error: Old value not found while inverting a change set. The change set is probably not reversible.\",\n\n CONTEXT_VALIDATION_IN_PROGRESS: \"CONTEXT_VALIDATION_IN_PROGRESS\",\n\n NOT_A_VALID_CONTEXT: \"NOT_A_VALID_CONTEXT\",\n\n MISSING_PRE_POST_CALLBACK: \"Missing callback. Either pre- or postcallback must be provided.\",\n};\n\nconst UtilsError = {\n INVALID_PATH_IN_REFERENCE: \"UT-001: References may only contain absolute repository references \" +\n \"or empty strings\",\n\n /**\n * methods: Utils.traverseChangesetRecursively\n * Your changeset contains an operator other than MODIFY, INSERT or REMOVE. If you created the changeset youserlf,\n * check that you only use valid operators. Otherwise, this is an internal error. Please contact the development team.\n */\n UNKNOWN_OPERATOR: \"UT-004: ArrayChangeSetIterator: unknown operator \",\n\n /**\n * INTERNAL ERROR - If you encounter this error, please contact the development team.\n */\n NON_PRIMITIVE_ARRAY_NO_TYPEID: \"UT-005: Found a non primitive type array without typeids. \" +\n \"This should never happen.\",\n\n /**\n * Filtering paths within arrays are not supported.\n */\n FILTER_PATH_WITHIN_ARRAY: \"UT-006: Filtering paths within arrays are not supported\",\n\n /**\n * INTERNAL ERROR - If you encounter this error, please contact the development team.\n * See specific message for more details.\n */\n ASSERTION_FAILED: \"UT-007: INTERNAL ERROR. Failed assertion. \",\n\n /**\n * You used a deprecated function. It will likely be removed in the next major version.\n * See the custom information if provided.\n */\n DEPRECATED_FUNCTION: \"UT-008: Deprecated function %s.\",\n\n /**\n * You used a deprecated function parameter. It will likely be removed in the next major version.\n * See the custom information if provided.\n */\n DEPRECATED_PARAMETER: \"UT-009: Deprecated function parameter %s of %s.\",\n\n /**\n * You used an experimental feature. It will likely changed in future releases.\n * See the custom information if provided.\n */\n EXPERIMENTAL_FEATURE: \"UT-010: Feature %s is experimental and subject to future changes.\",\n};\n\nconst PssClientError = {\n /**\n * This error message will be displayed when a repository creation fails\n */\n FAILED_REPOSITORY_CREATION:\n \"PC-001: Server error: Failed to create a repository. \",\n\n /**\n * This error message will be displayed when the deletion of a repository fails\n */\n FAILED_REPOSITORY_DELETION:\n \"PC-002: Server error: Failed to delete a repository. Repository guid: \",\n\n /**\n * This error message will be displayed when the undelete operation of a repository fails\n */\n FAILED_REPOSITORY_UNDELETION:\n \"PC-003: Server error: Failed to undelete a repository. Repository guid: \",\n\n /**\n * This error message will be displayed when getting the expiry of a repository fails\n */\n FAILED_GET_EXPIRY_REQUEST:\n \"PC-004: Server error: Failed to get the expiry of a repository. Repository guid: \",\n\n /**\n * This error message will be displayed when setting the expiry of a repository fails\n */\n FAILED_SET_EXPIRY_REQUEST:\n \"PC-005: Server error: Failed to set the expiry of a repository. Repository guid: \",\n\n /**\n * This error message will be displayed when squashing commit history fails\n */\n FAILED_SQUASH_COMMIT_HISTORY: \"PC-006: Server error: Failed to squash the commit history. Branch guid: \",\n\n /**\n * This error message will be displayed when fetching a commit fails\n */\n FAILED_FETCH_COMMIT: \"PC-007: Server error: Failed to fetch a commit. Commit guid: \",\n\n /**\n * This error message will be displayed when containers creation fails\n */\n FAILED_CONTAINER_CREATION: \"PC-008: Server error: Failed to create containers. \",\n\n /**\n * This error message will be displayed when a branch creation fails\n */\n FAILED_BRANCH_CREATION: \"PC-009: Server error: Failed to create a branch. \",\n\n /**\n * This error message will be displayed when a commit fails\n */\n FAILED_TO_COMMIT: \"PC-011: Server error: Failed to commit. \",\n\n /**\n * This error message will be displayed when a share operation fails\n */\n FAILED_SHARE: \"PC-013: Server error: Failed to share or unshare resources. \",\n\n /**\n * This error message will be displayed when getting the branches of a repository fails\n */\n FAILED_GET_ENUMERATE_BRANCHES: \"PC-014: Server error: Failed to get the branches of a repository. Repository guid: \",\n\n /**\n * This error message will be displayed when a request to get an lca fails\n */\n FAILED_GET_LCA: \"PC-015: Server error: Failed to get the lca.\",\n\n /**\n * This error message will be displayed when a commit fails because of an internal error while committing\n */\n FAILED_TO_COMMIT_INTERNAL: \"PC-016: internal error: Failed to commit.\",\n\n /**\n * This error message will be displayed when getting a feature flag fails\n */\n FAILED_TO_GET_FEATURE: \"PC-017: Server error: Failed to get feature flag from PSS. \",\n\n /**\n * This error message will be displayed when getting squashed commit range fails\n */\n FAILED_TO_GET_SQUASHED_COMMIT_RANGE: \"PC-018: Server error: Failed to get squashed commit range. Branch guid: \",\n};\n\nconst PROPERTY_PATH_DELIMITER = \".\";\nconst MESSAGE_CONSTANTS = {\n ...ChangeSetError,\n ...PropertyError,\n ...PropertyFactoryError,\n ...RepositoryError,\n ...SchemaValidatorError,\n ...PssClientError,\n ...UtilsError,\n ...TypeidHelperError,\n ...ServerError,\n};\n\nexport const constants = {\n MSG: MESSAGE_CONSTANTS,\n PROPERTY_PATH_DELIMITER,\n};\n"]}
@@ -12,7 +12,7 @@ exports.OperationError = void 0;
12
12
  * An operation error maintains additional information compared to a plain {@link #Error}:
13
13
  * - The operation name
14
14
  * - A status code
15
- * - Extensible flags. {@see ExtendedError.FLAGS}.
15
+ * - Extensible flags. See {@link ExtendedError.FLAGS}.
16
16
  */
17
17
  const lodash_1 = __importDefault(require("lodash"));
18
18
  const flaggedError_1 = require("./flaggedError");
@@ -1 +1 @@
1
- {"version":3,"file":"operationError.js","sourceRoot":"","sources":["../../src/error_objects/operationError.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;;AAEH;;;;;GAKG;AACH,oDAAuB;AACvB,iDAA8C;AAE9C,MAAa,cAAe,SAAQ,KAAK;IAKrC;;;;;;;SAOK;IACL,YACI,OAAgB,EACT,SAAkB,EAClB,UAAmB,EACnB,QAAgB,CAAC;QAExB,KAAK,CAAC,OAAO,CAAC,CAAC;QAJR,cAAS,GAAT,SAAS,CAAS;QAClB,eAAU,GAAV,UAAU,CAAS;QACnB,UAAK,GAAL,KAAK,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AAI,CAAC,IAAI,CAAC,CAAC,CAAC;SAC5D;QAED,IAAI,GAAG,GAAG,IAAI,CAAC,IAAI,CAAC;QAEpB,IAAI,mBAAmB,CAAC,MAAM,GAAG,CAAC,EAAE;YAChC,GAAG,IAAI,IAAI,mBAAmB,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC;SAChD;QAED,GAAG,IAAI,KAAK,IAAI,CAAC,OAAO,EAAE,CAAC;QAE3B,IAAI,IAAI,CAAC,KAAK,KAAK,SAAS,EAAE;YAC1B,GAAG,IAAI,YAAY,IAAI,CAAC,KAAK,EAAE,CAAC;SACnC;QAED,OAAO,GAAG,CAAC;IACf,CAAC;;AA1EL,wCA2EC;AA1EU,oBAAK,GAAG,2BAAY,CAAC,KAAK,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\n/**\n * An operation error maintains additional information compared to a plain {@link #Error}:\n * - The operation name\n * - A status code\n * - Extensible flags. {@see ExtendedError.FLAGS}.\n */\nimport _ from \"lodash\";\nimport { FlaggedError } from \"./flaggedError\";\n\nexport class OperationError extends Error {\n static FLAGS = FlaggedError.FLAGS;\n public stack: string | undefined;\n public readonly name: string;\n\n /**\n * Instantiates an OperationError, which mimics the Error class with added properties\n * meant for reporting the result of operations.\n * @param message - The error message.\n * @param operation - The operation name.\n * @param statusCode - The operation result as a numerical status code.\n * @param flags - Flags that characterize the error. See {@link FlaggedError.FLAGS}.\n */\n constructor(\n message?: string,\n public operation?: string,\n public statusCode?: number,\n public flags: number = 0,\n ) {\n super(message);\n Object.setPrototypeOf(this, OperationError.prototype);\n this.name = \"OperationError\";\n this.stack = Error(message).stack;\n }\n\n isQuiet() {\n return FlaggedError.prototype.isQuiet.call(this);\n }\n\n isTransient() {\n return FlaggedError.prototype.isTransient.call(this);\n }\n\n /**\n * @returns A string representation of the error flags.\n */\n private _flagsToString() {\n const flagArray: string[] = [];\n _.mapValues(FlaggedError.FLAGS, (flagValue, flagName) => {\n // eslint-disable-next-line no-bitwise\n if ((this.flags & flagValue) === flagValue) {\n flagArray.push(flagName);\n }\n });\n return `${this.flags} [${flagArray.join(\",\")}]`;\n }\n\n toString(): string {\n const extendedFieldsArray: string[] = [];\n if (this.operation !== undefined) {\n extendedFieldsArray.push(this.operation);\n }\n\n if (this.statusCode !== undefined) {\n extendedFieldsArray.push(this.statusCode.toString());\n }\n\n if (this.flags) {\n extendedFieldsArray.push(this._flagsToString.call(this));\n }\n\n let msg = this.name;\n\n if (extendedFieldsArray.length > 0) {\n msg += `[${extendedFieldsArray.join(\", \")}]`;\n }\n\n msg += `: ${this.message}`;\n\n if (this.stack !== undefined) {\n msg += `, stack: ${this.stack}`;\n }\n\n return msg;\n }\n}\n"]}
1
+ {"version":3,"file":"operationError.js","sourceRoot":"","sources":["../../src/error_objects/operationError.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;;AAEH;;;;;GAKG;AACH,oDAAuB;AACvB,iDAA8C;AAE9C,MAAa,cAAe,SAAQ,KAAK;IAKrC;;;;;;;SAOK;IACL,YACI,OAAgB,EACT,SAAkB,EAClB,UAAmB,EACnB,QAAgB,CAAC;QAExB,KAAK,CAAC,OAAO,CAAC,CAAC;QAJR,cAAS,GAAT,SAAS,CAAS;QAClB,eAAU,GAAV,UAAU,CAAS;QACnB,UAAK,GAAL,KAAK,CAAY;QAGxB,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,cAAc,CAAC,SAAS,CAAC,CAAC;QACtD,IAAI,CAAC,IAAI,GAAG,gBAAgB,CAAC;QAC7B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC,KAAK,CAAC;IACtC,CAAC;IAED,OAAO;QACH,OAAO,2BAAY,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACrD,CAAC;IAED,WAAW;QACP,OAAO,2BAAY,CAAC,SAAS,CAAC,WAAW,CAAC,IAAI,CAAC,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nC;QAED,OAAO,GAAG,CAAC;IACf,CAAC;;AA1EL,wCA2EC;AA1EU,oBAAK,GAAG,2BAAY,CAAC,KAAK,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\n/**\n * An operation error maintains additional information compared to a plain {@link #Error}:\n * - The operation name\n * - A status code\n * - Extensible flags. See {@link ExtendedError.FLAGS}.\n */\nimport _ from \"lodash\";\nimport { FlaggedError } from \"./flaggedError\";\n\nexport class OperationError extends Error {\n static FLAGS = FlaggedError.FLAGS;\n public stack: string | undefined;\n public readonly name: string;\n\n /**\n * Instantiates an OperationError, which mimics the Error class with added properties\n * meant for reporting the result of operations.\n * @param message - The error message.\n * @param operation - The operation name.\n * @param statusCode - The operation result as a numerical status code.\n * @param flags - Flags that characterize the error. See {@link FlaggedError.FLAGS}.\n */\n constructor(\n message?: string,\n public operation?: string,\n public statusCode?: number,\n public flags: number = 0,\n ) {\n super(message);\n Object.setPrototypeOf(this, OperationError.prototype);\n this.name = \"OperationError\";\n this.stack = Error(message).stack;\n }\n\n isQuiet() {\n return FlaggedError.prototype.isQuiet.call(this);\n }\n\n isTransient() {\n return FlaggedError.prototype.isTransient.call(this);\n }\n\n /**\n * @returns A string representation of the error flags.\n */\n private _flagsToString() {\n const flagArray: string[] = [];\n _.mapValues(FlaggedError.FLAGS, (flagValue, flagName) => {\n // eslint-disable-next-line no-bitwise\n if ((this.flags & flagValue) === flagValue) {\n flagArray.push(flagName);\n }\n });\n return `${this.flags} [${flagArray.join(\",\")}]`;\n }\n\n toString(): string {\n const extendedFieldsArray: string[] = [];\n if (this.operation !== undefined) {\n extendedFieldsArray.push(this.operation);\n }\n\n if (this.statusCode !== undefined) {\n extendedFieldsArray.push(this.statusCode.toString());\n }\n\n if (this.flags) {\n extendedFieldsArray.push(this._flagsToString.call(this));\n }\n\n let msg = this.name;\n\n if (extendedFieldsArray.length > 0) {\n msg += `[${extendedFieldsArray.join(\", \")}]`;\n }\n\n msg += `: ${this.message}`;\n\n if (this.stack !== undefined) {\n msg += `, stack: ${this.stack}`;\n }\n\n return msg;\n }\n}\n"]}
@@ -5,5 +5,5 @@
5
5
  * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY
6
6
  */
7
7
  export declare const pkgName = "@fluid-experimental/property-common";
8
- export declare const pkgVersion = "1.1.0";
8
+ export declare const pkgVersion = "1.2.0";
9
9
  //# sourceMappingURL=packageVersion.d.ts.map
@@ -8,5 +8,5 @@
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
9
  exports.pkgVersion = exports.pkgName = void 0;
10
10
  exports.pkgName = "@fluid-experimental/property-common";
11
- exports.pkgVersion = "1.1.0";
11
+ exports.pkgVersion = "1.2.0";
12
12
  //# sourceMappingURL=packageVersion.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEU,QAAA,OAAO,GAAG,qCAAqC,CAAC;AAChD,QAAA,UAAU,GAAG,OAAO,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n *\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY\n */\n\nexport const pkgName = \"@fluid-experimental/property-common\";\nexport const pkgVersion = \"1.1.0\";\n"]}
1
+ {"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEU,QAAA,OAAO,GAAG,qCAAqC,CAAC;AAChD,QAAA,UAAU,GAAG,OAAO,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n *\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY\n */\n\nexport const pkgName = \"@fluid-experimental/property-common\";\nexport const pkgVersion = \"1.2.0\";\n"]}
@@ -777,7 +777,7 @@ export declare const constants: {
777
777
  * methods: Workspace.get, Property.get
778
778
  * Workspace.get and Property.get take in an id (string or number) or an array of ids.
779
779
  * @example
780
- * ```ts
780
+ * ```typescript
781
781
  *.get(‘position’).get(‘x’) or .get([‘property’, ‘x’])
782
782
  * ```
783
783
  */
package/lib/constants.js CHANGED
@@ -312,7 +312,7 @@ const PropertyError = {
312
312
  * methods: Workspace.get, Property.get
313
313
  * Workspace.get and Property.get take in an id (string or number) or an array of ids.
314
314
  * @example
315
- * ```ts
315
+ * ```typescript
316
316
  *.get(‘position’).get(‘x’) or .get([‘property’, ‘x’])
317
317
  * ```
318
318
  */
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,4BAA4B;AAE5B;;GAEG;AACH,MAAM,oBAAoB,GAAG;IACzB;;;;;;;OAOG;IACH,oBAAoB,EAChB,+FAA+F;IAEnG;;;;;OAKG;IACH,sBAAsB,EAClB,oEAAoE;IAExE;;;OAGG;IACH,iBAAiB,EACb,0DAA0D;IAE9D;;;;;;;;;;;;;OAaG;IACH,eAAe,EACX,8FAA8F;IAElG;;;;;OAKG;IACH,eAAe,EACX,0DAA0D;IAE9D;;;;;;;OAOG;IACH,mBAAmB,EACf,wCAAwC;IAE5C;;;;;;OAMG;IACH,gCAAgC,EAC5B,wEAAwE;IAE5E;;;OAGG;IACH,WAAW,EACP,+CAA+C;IAEnD;;;OAGG;IACH,oBAAoB,EAChB,gFAAgF;IAEpF;;OAEG;IACH,qBAAqB,EACjB,sDAAsD;IAE1D;;;;OAIG;IACH,iCAAiC,EAC7B,yGAAyG;IAE7G;;OAEG;IACH,kBAAkB,EACd,kEAAkE;IAEtE;;OAEG;IACH,6BAA6B,EACzB,qDAAqD;IAEzD;;OAEG;IACH,uBAAuB,EACnB,wGAAwG;CAC/G,CAAC;AAEF,MAAM,iBAAiB,GAAG;IACtB;;M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B,EACrB,mFAAmF;IAEvF;;OAEG;IACH,yBAAyB,EACrB,mFAAmF;IAEvF;;OAEG;IACH,4BAA4B,EAAE,0EAA0E;IAExG;;OAEG;IACH,mBAAmB,EAAE,+DAA+D;IAEpF;;OAEG;IACH,yBAAyB,EAAE,qDAAqD;IAEhF;;OAEG;IACH,sBAAsB,EAAE,mDAAmD;IAE3E;;OAEG;IACH,gBAAgB,EAAE,0CAA0C;IAE5D;;OAEG;IACH,YAAY,EAAE,8DAA8D;IAE5E;;MAEE;IACF,6BAA6B,EAAE,qFAAqF;IAEpH;;QAEI;IACJ,cAAc,EAAE,8CAA8C;IAE9D;;OAEG;IACH,yBAAyB,EAAE,2CAA2C;IAEtE;;OAEG;IACH,qBAAqB,EAAE,6DAA6D;IAEpF;;OAEG;IACH,mCAAmC,EAAE,0EAA0E;CAClH,CAAC;AAEF,MAAM,uBAAuB,GAAG,GAAG,CAAC;AACpC,MAAM,iBAAiB,qIAChB,cAAc,GACd,aAAa,GACb,oBAAoB,GACpB,eAAe,GACf,oBAAoB,GACpB,cAAc,GACd,UAAU,GACV,iBAAiB,GACjB,WAAW,CACjB,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAG;IACrB,GAAG,EAAE,iBAAiB;IACtB,uBAAuB;CAC1B,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\n/* eslint-disable max-len */\n\n/**\n * Error messages for the Schema Validator\n */\nconst SchemaValidatorError = {\n /**\n * methods: PropertyFactory.register\n * The context ‘set’ is only valid for properties that are instances of NamedProperties. If you want to\n * use a context of ‘set’, make sure your template includes:\n * Inherits: ‘NamedProperty’\n * Or\n * Inherits: [‘NamedProperty’, …]\n */\n SET_ONLY_NAMED_PROPS:\n 'SV-001: Only properties that inherit from NamedProperty can have a context of \"set\". typeid: ',\n\n /**\n * You updated an existing template but the change to the version number was not as expected.\n * Make sure you updated your version number correctly. You may have violated one of the following rules:\n * - Adding one or more template attributes is a MINOR change.\n * - Removing one or more template attributes is a MAJOR change.\n */\n CHANGE_LEVEL_TOO_LOW_1:\n \"SV-002: Template mutation requires a higher version change level: \",\n\n /**\n * methods: PropertyFactory.register\n * The template version number is not valid. A valid version number should look like: ‘1.0.0’\n */\n INVALID_VERSION_1:\n \"SV-003: Invalid template version in 'typeid' attribute: \",\n\n /**\n * methods: PropertyFactory.register\n * Your property template should include a typeid attribute.\n * @example\n *```json\n * {\n * \"typeid\": \"my.example:point2d-1.0.0\",\n * \"properties\": [\n * {\"id\": \"x\", \"typeid\": \"Float64\"},\n * {\"id\": \"y\", \"typeid\": \"Float64\"}\n * ]\n *}\n *```\n */\n MISSING_TYPE_ID:\n \"SV-004: Template is missing the mandatory 'typeid' attribute. This is not a valid template: \",\n\n /**\n * methods: PropertyFactory.register\n * Typeid should contain a template version number.\n * @example\n * “typeid: my.example:point2d-1.0.0”\n */\n MISSING_VERSION:\n \"SV-005: Missing template version in 'typeid' attribute: \",\n\n /**\n * methods: PropertyFactory.register\n * The template you are using is different from the previous version and you did not update the version number.\n * If any changes were made to the template, you should update the version number to a higher number.\n * - Major change: removing one or more attribute (e.g. 1.0.0 -\\> 2.0.0)\n * - Minor change: adding one or more attribute (e.g. 1.0.0 -\\> 1.1.0)\n * - Patch: template description changes (e.g. 1.0.0 -\\> 1.0.1)\n */\n MODIFIED_TEMPLATE_1:\n \"SV-006: Template has changed at path: \",\n\n /**\n * methods: PropertyFactory.register\n * When changing your template, you need to increase its version number. For example, if the previous version\n * number was 1.0.0, it should increase to 1.0.1 for a patch (if the template description has changed),\n * to 1.1.0 for a minor change (if you added one or more attributes) or to 2.0.0 for a major change (if you\n * removed one or more attributes).\n */\n MODIFIED_TEMPLATE_SAME_VERSION_1:\n \"SV-007: Template has changed but its version was not increased. Path: \",\n\n /**\n * methods: PropertyFactory.register\n * PropertyFactory.register requires a template as a parameter.\n */\n NO_TEMPLATE:\n \"SV-008: Template cannot be null or undefined.\",\n\n /**\n * methods: PropertyFactory.register\n * When updating a template’s version number, the version number can only increase, never decrease.\n */\n VERSION_REGRESSION_1:\n \"SV-009: New template version is older than the previously registered version: \",\n\n /**\n * Your template contains a typeid that is not a string.\n */\n TYPEID_MUST_BE_STRING:\n \"SV-010: typeid must be a string. This is not valid: \",\n\n /**\n * INTERNAL ERROR - If you encounter this error, please contact the development team.\n * The TemplateValidator constructor should have in its parameters param.inheritsFrom and params.hasSchema.\n * Neither of them can be undefined.\n */\n MISSING_INHERITSFROM_OR_HASSCHEMA:\n \"SV-011: Internal error: TemplateValidator constructor missing one of inheritsFrom or hasSchema function\",\n\n /**\n * Your template has an invalid key for the kind of map it is.\n */\n KEY_MUST_BE_TYPEID:\n \"SV-012: A key of a typeid key map must be a valid typeids. Key: \",\n\n /**\n * Your template has an invalid contextKeyType parameter.\n */\n INVALID_OPTION_NONE_CONSTANTS:\n \"SV-013: A map with typeids as keys must be constant\",\n\n /**\n * You tried to use draft as a versoin when it is not enabled.\n */\n DRAFT_AS_VERSION_TYPEID:\n \"SV-014: By default, draft is not a valid version for a typeId. Set allowDraft to true to support this.\",\n};\n\nconst TypeidHelperError = {\n /**\n * INTERNAL ERROR - If you encounter this error, please contact the development team.\n */\n TYPEID_NOT_DEFINED: \"TH-001: extractVersion requires a typeid parameter\",\n};\n\nconst PropertyError = {\n TYPEID_NOT_NATIVE: \"TYPEID_NOT_NATIVE\",\n /**\n * methods: ArrayProperty.length.set, StringProperty.length.set\n * Cannot directly set the array.length or string.length. This is a read-only property.\n */\n MODIFY_READ_ONLY: \"PR-001: Trying to modify read only property value (array.length).\",\n\n /**\n * methods: Property.getRelativePath\n * There is no path between the property and the ancestor you passed in to .getRelativePath.\n */\n NO_PATH_BETWEEN: \"PR-002: No path between \",\n\n /**\n * methods: Property.applyChangeSet\n * One of the paths included in your changeSet is not valid for this property.\n * Check that the modifications in the changeSet match the structure of the template.\n */\n INVALID_PATH: \"PR-003: Invalid path in ChangeSet: \",\n\n /**\n * methods: NodeProperty.insert\n * The property you inserted into a NodeProperty has a parent.\n * If your property has a parent, changing the property’s id will break the parent.\n * Make the change to the parent first.\n */\n ID_CHANGE_FOR_PROPERTY_WITH_PARENT: \"PR-004: Cannot change the ID of a property that has a parent. Could not change id: \",\n\n /**\n * methods: Property.resolvePath\n * Part of the path entered to Property.resolvePath was not valid.\n */\n INVALID_PATH_TOKEN: \"PR-005: ResolvePath error: accessed a child via an invalid path syntax: \",\n\n /**\n * methods: MapProperty.insert, NodeProperty.insert, ReferenceMapProperty.insert, Workspace.insert,\n * SetProperty.insert\n * Your map, set or nodeproperty already contains an entry under in_key.\n */\n PROPERTY_ALREADY_EXISTS: \"PR-006: The property already exists in this collection: \",\n\n /**\n * methods: MapProperty.applyChangeset, NodeProperty.applyChangeset, SetProperty.applyChangeset\n * The changeset you applied contains properties that have already been inserted.\n * Check the ‘insert’ fields in your changeSet for properties that might already exist.\n */\n INSERTED_EXISTING_ENTRY: \"PR-007: Inserted an already existing entry: \",\n\n /**\n * methods: MapProperty.remove, SetProperty.remove\n * Tried to remove an entry that does not exist.\n * This can be caused indirectly by deserialize / applyChangeset methods.\n * One of the ‘remove’ fields in your changeSet must contain a property that does not exist.\n */\n REMOVED_NON_EXISTING_ENTRY: \"PR-008: Trying to remove a non-existing entry: \",\n\n /**\n * methods: MapProperty.applyChangeset, NodeProperty.applyChangeset, SetProperty.applyChangeset\n * One of the key you are trying to modify in your changeSet does not exist.\n * One of the ‘modify’ fields in your changeSet refers to a property that does not exist.\n */\n MODIFY_NON_EXISTING_ENTRY: \"PR-009: Trying to modify a not existing entry: \",\n\n /**\n * methods: MapProperty.insert, MapProperty.set, SetProperty.insert, NodeProperty.insert\n * The value you are trying to insert in your map property, set property or node property has a parent.\n * You cannot insert a property that has a parent.\n */\n INSERTED_ENTRY_WITH_PARENT: \"PR-010: Trying to insert into a collection a property that already has \" +\n \"a parent.\",\n\n /**\n * methods: Property.resolvePath, Workspace.resolvePath\n * Paths should not contain empty sections such as ‘..’, ‘//’ or ‘[], etc.\n * Sections in the path are delimited by ‘.’ ‘[ ]’, ‘/’ .\n * There should always be a path between any two delimiters.\n */\n EMPTY_TOKEN: \"PR-011: ResolvePath error: Encountered empty token in path: \",\n\n /**\n * methods: Property.resolvePath, Workspace.resolvePath\n * Paths should not contain quotes except at the beginning and end of the path.\n * For example: resolvePath('my\"path.nested\".other') is not valid because the first quote is in front of ‘path’\n * but after the ‘.nested’ which is part of the subsequent path.\n */\n QUOTES_WITHIN_TOKEN: \"PR-012: ResolvePath error: Quotes must only be at the start and the \" +\n \"end of a path. Error in path: \",\n\n /**\n * methods: Property.resolvePath, Workspace.resolvePath\n * Paths should not end with a ‘.’\n */\n DOT_AT_END: \"PR-013: ResolvePath error: Encountered a dot at the end of path: \",\n\n /**\n * methods: Property.resolvePath, Workspace.resolvePath\n * Paths using square brackets should not contain ‘.’ within those square brackets.\n * If your path contains any dots, these should be escaped e.g. [my\\.path] instead of [my.path].\n */\n DOTS_IN_SQUARE_BRACKETS: \"PR-014: ResolvePath error: Encountered a dot within a square bracket. \" +\n \"These have to be escaped. Error in path: \",\n\n /**\n * methods: Property.resolvePath, Workspace.resolvePath\n * resolvePath error while parsing your string.\n * It encountered an end to a path segment that was not\n * followed by a “.” or a “[“ indicating the beginning of a new segment.\n */\n MISSING_DOT_AT_SEGMENT_START: \"PR-015: Missing . or [ at segment start in path: \",\n\n /**\n * methods: Property.resolvePath, Workspace.resolvePath\n * Closing square bracket not followed by the correct character (., [ or *).\n * For example, this is not valid: resolvePath(myArray[2]nested).\n * This is valid: resolvePath(myArray[2].nested).\n */\n INVALID_END_OF_SQUARE_BRACKETS: \"PR-016: ResolvePath error: Square brackets have to be followed either \" +\n 'by \".\" or by \"[\" or by \"*\". Error in path: ',\n\n /**\n * methods: Property.resolvePath, Workspace.resolvePath\n * Every opening bracket ([) needs a matching closing bracket (])\n */\n UNCLOSED_BRACKETS: \"PR-017: ResolvePath error: Unclosed brackets at the end of path: \",\n\n /**\n * methods: Property.resolvePath, Workspace.resolvePath\n * Any closing bracket (]) must be preceded by a matching opening bracket ([).\n */\n CLOSING_BRACKET_WITHOUT_OPENING: \"PR-018: ResolvePath error: Encountered closing bracket without \" +\n \"corresponding opening one in path: \",\n\n /**\n * methods: Property.resolvePath, Workspace.resolvePath\n */\n INVALID_ESCAPE_SEQUENCE: \"PR-019: Encountered an invalid escape sequence in path: \",\n\n /**\n * methods: Property.resolvePath, Workspace.resolvePath\n * A quotation mark at the beginning of a path must have a matching closing quotation mark\n * at the end of the same path.\n */\n UNCLOSED_QUOTATION_MARKS: \"PR-020: ResolvePath error: Encountered unclosed quotation marks in path: \",\n\n /**\n * methods: SetProperty.insert, SetProperty.set, SetProperty.setValues\n * The property you insert in a setProperty must be an instance of NamedProperty.\n * When creating the property to be inserted, make sure it inherits from NamedProperty.\n * @example\n * #Creating a property that inherits from NamedProperty\n * ```json\n * {\n * typeid:”my.example:myprop-1.0.0”,\n * inherits:’NamedProperty’ (or [‘NamedProperty’, …]\n * ...\n * }\n *```\n */\n CANT_INSERT_NON_NAMED_PROPERTIES: \"PR-021: Set can only contain named properties\",\n\n /**\n * methods: NodeProperty.insert, Workspace.insert\n * The property you inserted does not have an id.\n * Unless the property is an instance of NamedProperty, you must pass in an id as the first parameter\n * (and the property second)\n */\n ADDED_CHILD_WITHOUT_ID: \"PR-022: Added child without id.\",\n\n /**\n * methods: ArrayProperty.resolvePath\n * Cannot use .resolvePath on a primitive array, only on a Custom type array.\n * For a primitive array, use .getValue instead.\n * For example, instead of MyValueArray.resolvePath(1), use MyValueArray.getValue(1)\n */\n NO_PATHS_FOR_NON_PRIMITIVE_ARRAYS: \"PR-023: Path resolution is not supported for primitive type arrays.\",\n\n /**\n * methods: ArrayProperty.resolvePath\n * When using an array index as part of your path, it needs to have a numeric value.\n */\n INVALID_NON_NUMERIC_SEGMENT_IN_PATH: \"PR-024: ResolvePath error: Accessed an array via an non numeric index: \",\n\n /**\n * methods: ArrayProperty.getRelativePath, ArrayProperty.getAbsolutePath\n * INTERNAL ERROR\n * If you encounter this error, please contact the development team.\n * Part of the path you are trying to find points to a non-existing array item.\n */\n GET_PATH_SEGMENT_CALLED_FOR_NON_ENTRY: \"PR-025: Internal error: _getPathSegmentForChildNode has been called \" +\n \"for an entry that is not an entry of the collection. \",\n\n /**\n * methods:\n * The changeSet passed to .deserialize was not a valid non-normalized changeset.\n */\n NO_NORMALIZED_CHANGESET: \"PR-026: deserialize was called with a non-normalized ChangeSet.\",\n\n /**\n * INTERNAL ERROR - If you encounter this error, please contact the development team.\n * One of your changesets contained a NamedProperty without a GUID.\n * This should not happen and should have been validated already.\n */\n MISSING_GUID_IN_NORMALIZED_CHANGESET: \"PR-027: Missing GUID in a normalized ChangeSet with named properties\",\n\n /**\n * methods: EnumProperty.getEnumString, EnumProperty.setValue, EnumProperty.setEnumByString,\n * EnumProperty.getEnumString, EnumArrayProperty.getEnumStrings\n * This Enum Property does not have any entry with that value.\n * EnumProperty.getEnumByString -\\> the EnumProperty you used to pass this function does not have an entry.\n * EnumProperty.setValue -\\> no entry exists for in_value\n * EnumProperty.setEnumByString -\\> no entry exists for in_stringId\n * EnumArrayProperty.getEnumString -\\> the value found at in_position does not correspond to an entry.\n * EnumArrayProperty.getEnumStrings -\\> one of the values found at one of the positions sought does\n * not correspond to an entry.\n */\n UNKNOWN_ENUM: \"PR-028: enum value unknown: \",\n\n /**\n * methods: Property.applyChangeSet\n * Changeset contains an operation that is unknown.\n * Valid operations are insert, modify and remove.\n */\n UNKNOWN_OPERATION: \"PR-029: Unknown ChangeSet operation: \",\n\n /**\n * methods: Workspace.remove, NodeProperty.remove\n * The property you passed to workspace.remove or nodeProperty.remove does not exist.\n * Check that you passed the correct property, and that it has not yet been removed.\n */\n REMOVING_NON_EXISTING_KEY: \"PR-033: Trying to remove something that does not exist: \",\n\n /**\n * methods: Workspace.get, Property.get\n * Workspace.get and Property.get take in an id (string or number) or an array of ids.\n * @example\n * ```ts\n *.get(‘position’).get(‘x’) or .get([‘property’, ‘x’])\n * ```\n */\n STRING_OR_ARRAY_STRINGS: \"PR-034: in_id must be a string, a number or an array of these. This is not valid: \",\n\n /**\n * methods: Property.serialize\n * Property.serialize only takes in one parameter: an options object. That parameter is optional.\n */\n SERIALIZE_TAKES_OBJECT: \"PR-035: Argument of serialize() should be an object.\",\n\n /**\n * ArrayProperty.insert, ArrayProperty.insertRange\n * The in_position (for .insert) or in_offset (for .insertRange) should not be smaller than 0\n * or larger than the length of the array.\n */\n START_OFFSET_INVALID: \"PR-036: ArrayProperty: insert range - Start offset is invalid: \",\n\n // PR-037 removed\n\n /**\n * ArrayProperty.remove, ArrayProperty.removeRange, ArrayProperty.pop\n * INTERNAL ERROR - If you encounter this error, please contact the development team.\n * The item (or one of the items) you are trying to remove from the array has a parent that is not the array.\n * This should not happen because you should not have been able to insert the item in the array in the first place.\n */\n CANNOT_REMOVE_WITH_DIFFERENT_PARENT: \"PR-038: Internal error: Trying to remove from an array a property that \" +\n \"has not the array as parent.\",\n\n /**\n * methods ArrayProperty.set, ArrayProperty.setRange\n * Your first parameter: in_position (for .set) and in_offset (for .setRange) cannot have a negative value.\n */\n START_OFFSET_NEGATIVE: \"PR-039: ArrayProperty: Modify range - Start offset cannot be negative: \",\n\n /**\n * methods: ArrayProperty.removeRange, ArrayProperty.setRange, ArrayProperty.insertRange,\n * ArrayProperty.insert, EnumArrayProperty.getEnumStrings\n * The parameter needs to be a number.\n * For .removeRange: in_offset and in_deleteCount\n * For .setRange: in_offset\n * For .insertRange: in_offset\n * For .getEnumStrings: in_offset, in_length\n * For StringProperty.insert: in_position\n */\n NOT_NUMBER: \"PR-049: This parameter must be a number: parameter: \",\n\n /**\n * methods: Property.traverseUp, Property.traverseDown\n * Property.traverseUp and Property.traverseDown take one parameter: a callback function\n */\n CALLBACK_NOT_FCT: \"PR-050: traverseUp / traverseDown parameter: in_callback must \" +\n \"be a function.\",\n\n /**\n * methods: ArrayProperty.insertRange\n * Array.insertRange takes two parameters. The second one (in_array) must be an array.\n * To pass in only one item, either use .insert(index, item)\n * or put that item into an array: .insertRange(index, [item])\n */\n IN_ARRAY_NOT_ARRAY: \"PR-051: Parameter error: in_array must be an array for method: \",\n\n /**\n * methods: EnumProperty.setEnumByString\n * EnumProperty.setEnumByString takes one parameter: a string id. It must be a string.\n */\n STRING_ID_MUST_BE_STRING: \"PR-052: EnumProperty.setEnumByString parameter: in_stringId must \" +\n \"be a string. This is not valid: \",\n\n /**\n * methods: Integer64Property.setValueHigh\n * Integer64Property.setValueHigh takes one parameter: a number.\n */\n IN_HIGH_MUST_BE_NUMBER: \"PR-053: Integer64Property.setValueHigh parameter: in_high must \" +\n \"be a number. This is not valid: \",\n\n /**\n * methods: Integer64Property.setValueLow\n * Integer64Property.setValueLow takes one parameter: a number.\n */\n IN_LOW_MUST_BE_NUMBER: \"PR-054: Integer64Property.setValueLow parameter: in_low must \" +\n \"be a number. This is not valid: \",\n\n /**\n * methods: IntegerProperty.toString\n * Integer64Property.toString takes one optional parameter: a number (in_radix).\n * If no value is passed, will default to 10.\n */\n IN_RADIX_MUST_BE_NUMBER: \"PR-055: Integer64Property.toString parameter: in_radix must be a number. This is not valid: \",\n\n /**\n * methods: IntegerProperty.fromString\n * Integer64Property.fromString takes two parameters. The first parameter (in_string) must be a string.\n * (the second parameter is in_radix, a number. It is optional: defaults to 10).\n */\n IN_STRING_MUST_BE_STRING: \"PR-056: Integer64Property.fromString parameter: in_string must \" +\n \"be a string. This is not valid: \",\n\n /**\n * methods: Integer64Property.fromString\n * Integer64Property.fromString takes two parameters. The second parameter is optional but if passed,\n * it must be a number between 2 and 36. If not passed, it defaults to 10. (the first parameter is\n * in_string and must be a string).\n */\n IN_RADIX_BETWEEN_2_36: \"PR-057: Integer64Property.fromString parameter: in_radix must be a \" +\n \"number between 2 and 36. This is not valid: \",\n\n /**\n * methods MapProperty.insert, ReferenceMapProperty.set\n * MapProperty.insert and ReferenceMapProperty.set both take two parameters.\n * The first parameter (in_key) must be a string.\n */\n KEY_NOT_STRING: \"PR-058: MapProperty.insert / ReferenceMapProperty.set parameter: \" +\n \"in_key must be a string. This is not valid: \",\n\n /**\n * methods: NodeProperty.insert, Workspace.insert\n * he second parameter (in_property) must be a valid property (it must be an instance of BaseProperty).\n */\n NOT_A_PROPERTY: \"PR-059: NodeProperty.insert parameter in_property is not a property. \" +\n \"The property you passed is not a valid property.\",\n\n /**\n * methods: ReferenceProperty.set / setValue, ReferenceMapProperty.insert / set / setValue / setValues,\n * ReferenceArrayProperty.enqueue / push / unshift / insert / insertRange / set / setRange / setValue / setValues\n * The provided value (or values) must be a valid property (an instance of BaseProperty), be undefined or a string (a path).\n */\n PROPERTY_OR_UNDEFINED:\n \"PR-060: Parameter for setting a Reference should be a path to a property, a property or undefined. This is not valid: \",\n\n /**\n * ArrayProperty.insertRange, ArrayProperty.insert, ArrayProperty.push\n * INTERNAL ERROR - If you encounter this error, please contact the development team.\n * The item (or one of the items) you are trying to insert in this array has a parent that is not the array.\n */\n NO_INSERT_WITH_PARENT: \"PR-088: Internal error: Trying to insert a property into an array or \" +\n \"string that already has a parent.\",\n\n /**\n * methods: ArrayProperty.get\n * ArrayProperty.get takes in one parameter: in_position, which can a single position or an array.\n * If it is a single position, it is the numerical position of the item in the array.\n * It must be a number or a string that parses into a number (e.g. '2').\n * If you pass in an array, the first item of the array must be a number or a string that parses into a number.\n * (other items in the array are child paths within the array item at this position).\n * This error happens only when in_position is an array.\n */\n FIRST_ITEM_MUST_BE_NUMBER: \"PR-092: The first item in the in_position array must be an array \" +\n \"position (a number). This is not valid: \",\n\n /**\n * methods: ArrayProperty.get\n * ArrayProperty.get takes in one parameter: in_position, which can a single position or an array.\n * If it is a single position, it is the numerical position of the item in the array.\n * It must be a number or a string that parses into a number (e.g. '2').\n * If you pass in an array, the first item of the array must be a number or a string that parses into a number\n * (other items in the array are child paths within the array item at this position).\n * This error happens only when in_position is a single position.\n */\n IN_POSITION_MUST_BE_NUMBER: \"PR-093: in_position must be a number. This is not valid: \",\n\n /**\n * methods: Property.getValue\n * Property.getValue takes one parameter: in_id.\n * It can either be a string or an array of strings. It cannot be an empty array.\n */\n CANNOT_BE_EMPTY_ARRAY: \"PR-095: Property.getValue parameter: in_id cannot be an empty array.\",\n\n /**\n * methods: EnumArrayProperty.set\n * EnumArrayProperty.set takes two parameters: in_index and in_value.\n * In_value should be a number. setValue cannot be used to set enum by string.\n * Use .setEnumByString instead.\n */\n VALUE_SHOULD_BE_NUMBER: \"PR-096: EnumArrayProperty.set parameter: in_value should be \" +\n \"a number. To set the value of an enum string, use .setEnumByString \" +\n \"instead.\",\n\n /**\n * methods: EnumArrayProperty.setEnumByString\n * EnumArrayProperty.setEnumByString cannot be use to set enum by number. Use .set instead.\n */\n VALUE_SHOULD_BE_STRING: \"PR-098: EnumArrayProperty.setEnumByString parameter: in_value should be \" +\n \"a string. To set a number, use .set instead.\",\n\n /**\n * methods: ArrayProperty.get\n * In_position or in_offset is either lower than 0 or higher than the length of the array.\n * Make sure that the property you are trying to get from the array exists and that the position is correct.\n */\n GET_OUT_OF_RANGE: \"PR-106: Trying to access out of bounds at index: \",\n\n /**\n * methods: ArrayProperty.setRange, ArrayProperty.set\n * setRange: Either in_offset is lower than zero or in_offset + length of in_array is higher than\n * the length of the array. If you need to add items that were not there before, add those using\n * .push, .insert or .insertRange.\n */\n SET_OUT_OF_BOUNDS: \"PR-107: Trying to set out of bounds. \",\n\n /**\n * methods: ArrayProperty.removeRange, ArrayProperty.remove\n * RemoveRange: Either in_offset is smaller than zero or in_offset + in_deleteCount is higher than\n * the length of the array. Make sure that the properties you are trying to remove exist in that\n * array and that you entered the positions correctly.\n * Remove: in_offset is either smaller than zero or larger than the length of the array.\n */\n REMOVE_OUT_OF_BOUNDS: \"PR-110: Trying to remove out of bounds. \",\n\n /**\n * methods: PropertyFactory.create\n * INTERNAL ERROR - If you encounter this error, please contact the development team.\n * Warning: Something went wrong when creating your property: it did not successfully create\n * the property and then tried to set its value.\n */\n NON_EXISTING_PROPERTY_REPOSITORY_REFERENCE: \"PR-111: Internal error: PropertyFactory.create failed to create \" +\n \"this property.\",\n\n /**\n * methods: Property.setValues\n * One of the path you used in .setValues leads to a property.\n * When passing an object to setValues, make sure that all paths lead to a primitive value.\n */\n SET_VALUES_PATH_PROPERTY: \"PR-115: trying to set value to a path leading to a property: \",\n\n /**\n * methods: Property.setValues\n * One of the path in the object you passed to .setValues does not match the structure of this property.\n */\n SET_VALUES_PATH_INVALID: \"PR-116: trying to set value to an invalid path: \",\n\n /**\n * methods: Property.setValues\n * .setValues takes one parameter: an object containing paths to the values to be changed.\n * It should be an object (or in the case of ArrayProperty, an array)\n */\n SET_VALUES_PARAM_NOT_OBJECT: \"PR-117: setValues parameter: in_properties must be an object.\",\n\n /**\n * methods: PropertyFactory.create\n * The array you tried to create had a typeid that was no recognized.\n * It was not a custom type array or one of the following: ‘String’, ‘Int64’, ‘Uint64’ or ‘Bool’.\n */\n UNKNOWN_ARRAY_TYPEID: \"PR-118: Unknown typeid in array: \",\n\n /**\n * methods: MapProperty.insert, MapProperty.set\n * .insert and .set take two parameters. The first one is in_id (or in_key), which is the id under\n * which the property is added. It can only be a string or a number. Only in the case of named\n * property can it be omitted.\n */\n ID_STRING_OR_NUMBER: \"PR-119: id should be a string or a number. This is not valid: \",\n\n /**\n * methods: ValueProperty.deserialize\n * .deserialize takes on parameter: a serialized object. It cannot be undefined.\n */\n DESERIALIZE_EMPTY_CHANGESET: \"PR-121: ValueProperty.deserialize() called on an empty changeset\",\n\n /**\n * methods: IntMapProperty.insert, UintMapProperty.insert\n * You tried to insert into a (u)Int64MapProperty or (u)Int64ArrayProperty properties that\n * were not Int64 or UInt64 properties or properties that can be casted to the correct type.\n */\n INT_64_NON_INT64_TYPE: \"PR-122: Tried to use (u)Int64MapProperty or (u)Int64ArrayProperty with an invalid type.\",\n\n /**\n * methods: Integer64.toString, Integer64.fromString\n */\n BASE_OUT_OF_RANGE: \"PR-123: Base is out of range. Base should be in range [2,36]. This is not valid: \",\n\n /**\n * methods: Integer64.fromString\n * If your property is an instance of Uint64, you cannot set it to a negative number.\n * Uint64 does not support negative numbers. Use Int64 if you need to support negative numbers.\n */\n CANNOT_UPDATE_TO_NEGATIVE: \"PR-124: Cannot update value to negative: \",\n\n /**\n * methods: Integer64.fromString\n * The string you passed as a first parameter to .fromString contains non-numerical characters.\n */\n CANNOT_PARSE_INVALID_CHARACTERS: \"PR-125: Cannot parse. String contains invalid characters: \",\n\n /**\n * methods: Property constructor\n * INTERNAL ERROR - If you encounter this error, please contact the development team.\n * Something went wrong while the property constructor was creating a property.\n * The parameters it received were not objects.\n */\n PROP_CONSTRUCTOR_EXPECTS_OBJECTS: \"PR-126: Internal error: Object expected as parameters to \" +\n \"BaseProperty constructor\",\n\n /**\n * methods: Property.applyChangeSet\n * One of the ‘modify’ field in your changeset points to an index in the array that does not exist.\n * Check that the changeset you passed to applyChangeSet is valid. If you did not enter the changeSet yourself,\n * this is an internal error and you should contact the development team.\n */\n INDEX_INVALID: \"PR-131: modified property - index invalid: \",\n\n /**\n * methods: Property.isAncestorOf, Property.isDescendantOf\n * Property.isAncestorOf and .isDescendantOf take one parameter: a property. It cannot be undefined.\n */\n MISSING_IN_OTHERPROP: \"PR-132: isAncestorOf parameter: in_otherProperty must be specified.\",\n\n /**\n * methods: StringProperty.insert, StringProperty.push\n * StringProperty.insert takes two parameters: in_position and in_value.\n * The second one (in_value) must be a string.\n * StringProperty.push takes only one parameter (in_value), which must be a string.\n */\n IN_VALUE_MUST_BE_STRING: \"PR-133: parameter error: in_value must be a string. This is not valid: \",\n\n /**\n * methods: ValueProperty.getValues\n * You cannot use the method .getValues on value properties. getValues is used to get multiple nested\n * values from a custom property. To get the value of a primitive property, use .getValue instead.\n */\n NO_VALUE_PROPERTY_GETVALUES: \"PR-134: Cannot use .getValues on value properties or strings. \" +\n \"Use .getValue instead.\",\n\n /**\n * methods: Property.setValues, ArrayProperty.insertRange, ArrayProperty.removeRange,\n * ArrayProperty.setRange, EnumArrayProperty.setEnumByString, ArrayProperty.insert, ArrayProperty.set,\n * ArrayProperty.clear\n * If a property is created as a constant, it cannot be changed.\n */\n MODIFICATION_OF_CONSTANT_PROPERTY: \"PR-140: Modifications of constants are not allowed.\",\n\n /**\n * methods: ArrayProperty.insert, ArrayProperty.insertRange\n * In a non-primitive array, you can only insert instances of properties. You should use PropertyFactory.create\n * to create an instance of your property before inserting it into the array.\n */\n INSERT_NOT_A_PROP: \"PR-141: In an array of properties, you can only insert instances of \" +\n \"properties. This value is not valid: \",\n\n /**\n * If a property is a reference, it cannot be changed.\n */\n MODIFICATION_OF_REFERENCED_PROPERTY: \"PR-142: Modifications of referenced properties are not allowed.\",\n\n /**\n * methods: Property.getValue\n * Property.getValue(in_ids) is a shortcut for Property.get(in_ids).getValue().\n * Property.get(in_ids) must resolve to a ValueProperty.\n */\n GET_VALUE_NOT_A_VALUE: \"PR-160: in_ids does not resolve to a ValueProperty: \",\n\n /**\n * methods: MapProperty.insert\n * If your map is not a ValueMap, in_property must be an instance of BaseProperty.\n * Use PropertyFactory.create to create an instance of a property.\n */\n NONVALUE_MAP_INSERT_PROP: \"PR-161: In a map of properties, you can only insert properties.\",\n\n /**\n * methods: PropertyFactory.create\n * INTERNAL ERROR - If you encounter this error, please contact the development team.\n * This error is thrown while creating a Property, when the actual context\n * ('array', 'map', 'set' or 'single') is different than what was expected.\n */\n CONTEXT_NOT_AS_EXPECTED: \"PR-163: Property context is different than expected: \",\n\n /**\n * methods: Property.deserialize\n * INTERNAL ERROR - If you encounter this error, please contact the development team.\n * This error is thrown by .deserialize but is caused by an invalid changeSet. A serialized ChangeSet for an\n * Integer64Property must be an array of 2 integers: the low and the high values. Since users cannot yet supply\n * their changesets directly, this should not happen.\n */\n INVALID_INT64_CHANGESET: \"PR-164: Cannot deserialize invalid change set for Int64 property\",\n\n /**\n * methods: StringProperty.set\n * StringProperty.set takes two parameters: in_index (a number, the index of the string that you wish to change)\n * and in_string (the string you want to insert at that index). To set the value of the whole string, use\n * setValue.\n */\n STRING_SET_NEEDS_INDEX: \"PR-165: String.set first parameter should be an index (number). This is not valid: \",\n\n /**\n * methods: Property.get\n * The token DEREFERENCE_TOKEN should only be used with .get when the in_ids passed to .get is an array.\n * the DEREFERENCE_TOKEN should follow a path to a reference.\n * @example <caption>valid: </caption>\n * myProp.get(['myReference', TOKENS.DEREFERENCE_TOKEN])\n * @example <caption>not valid: </caption>\n * myProp.get('myReference').get(TOKENS.DEREFERENCE_TOKEN)\n */\n NO_GET_DEREFERENCE_ONLY: \"PR-166: Cannot use a dereference token only with .get\",\n\n /**\n * methods: StringProperty.setValues\n * You cannot call .setValues on a StringProperty. To set the value of the string, use .setValue\n * instead.\n */\n NO_VALUE_PROPERTY_SETVALUES: \"PR-167: setValues is not a valid method for String Properties\",\n\n /**\n * methods: Property.getRelativePath\n * In cases where you have more than one repository reference property pointing to the same repository, finding a path\n * between a properties in different repositories can lead to more than one valid results. In that case, .getRelativePath\n * will return the first valid path it finds. If you want to control how which path is used, you should construct the\n * string path by concatenating the absolute path for the prop in the nested repository and the relative path between your\n * repository reference and the target property.\n */\n MORE_THAN_ONE_PATH: \"PR-169: More than one paths exist between \",\n\n /**\n * methods: Property.getRelativePath\n * getRelativePath takes one parameter: the property from which the path will start. This must be an instance of\n * BaseProperty. The method will return the path from that property to the property on which it was called ('this')\n */\n IN_FROMPROPERTY_MUST_BE_PROPERTY: \"PR-170: getRelativePath parameter error: in_fromProperty must be a property\",\n\n /**\n * methods: Property.getRelativePath\n * getRelativePath does not return a path between a property that is inside a child repository to one that is in\n * a parent repository. A path like this could not be used with .resolvePath or be used in a reference property\n * because neither method can go from the root of a referenced repository to a reference property.\n */\n NO_PATH_FROM_CHILD_REPO: \"PR-171: cannot get a path from a child repository to a parent repository\",\n\n /**\n * methods: getReferencedWorkspace\n * This repository reference is in read-only mode. Call enableWrite() to access the workspace.\n */\n REPOSITORY_REFERENCE_WORKSPACE_READ_ONLY:\n \"PR-173: This repository reference is in read-only mode. Call enableWrite() to access the workspace.\",\n\n /**\n * methods: Property.enableWrite\n * Repository reference is already in writable mode.\n */\n REPOSITORY_REFERENCE_WORKSPACE_EXIST_ALREADY: \"PR-174: Repository reference is already in writable mode\",\n\n /**\n * methods: Property.enableWrite\n * Can't enable write on an empty repository reference without at least a repositoryGUID and branchGUID.\n */\n WRITABLE_REPOSITORY_REFERENCE_NEED_GUIDS:\n \"PR-176: Can't enable write on an empty repository reference without at least a repositoryGUID and branchGUID\",\n\n /**\n * methods: Property.enableWrite\n * Repository reference failed to automatically commit the new commitGUID.\n */\n WRITABLE_REPOSITORY_AUTO_COMMIT_FAIL: \"PR-177: Repository reference failed to automatically commit the new commitGUID\",\n\n /**\n * methods: Property._setFollowBranch\n * An unexpected error occurred while trying to switch a repository reference followBranch property\n */\n WRITABLE_REPOSITORY_SET_FOLLOW_BRANCH_FAILED:\n \"PR-178: An unexpected error occurred while trying to switch a repository reference followBranch property to \",\n\n /**\n * methods: MapProperty.insert, MapProperty.set\n * .insert and .set take two parameters. The first one is in_id (or in_key), which is the id under\n * which the property is added. It can not be an empty string.\n */\n ID_SHOULD_NOT_BE_EMPTY_STRING:\n \"PR-179: id should not be an empty string.\",\n\n /**\n * methods: StringProperty.set\n * StringProperty.set: in_character must have a length of 1.\n */\n STRING_SET_ONE_CHAR: \"PR-180: String.set, only one character can be set (in_character must have a length of 1).\",\n\n /**\n * methods: EnumArrayProperty.set\n * EnumArrayProperty.set only accepts a string or number as input for in_value\n */\n VALUE_STRING_OR_NUMBER:\n \"PR-181: in_value should be a string or a number. This is not valid: \",\n\n /**\n * methods: ArrayProperty.set\n * The in_value input of ArrayProperty.set should not be an array.\n */\n ARRAY_SET_ONE_ELEMENT:\n \"PR-182: in_value should be a single element. This is not valid: \",\n\n CANT_DIRTY_MISSING_PROPERTY: \"PR-183: Can't dirty missing property: \",\n\n /**\n * methods: MapProperty.insert, MapProperty.set, SetProperty.insert, NodeProperty.insert\n * The property you are trying to insert in your map property, set property or node property is a root.\n */\n INSERTED_ROOT_ENTRY: \"PR-184: Trying to insert a root property into a collection.\",\n\n /**\n * methods: MapProperty.insert, MapProperty.set, SetProperty.insert, NodeProperty.insert\n * The property you are trying to insert in your map property, set property or node property is already\n * a parent of the map, set, or node property. You cannot insert this property there or you would create\n * a cycle in your data tree.\n */\n INSERTED_IN_OWN_CHILDREN:\n \"PR-185: Trying to insert a property in itself or in one of its children.\",\n\n /**\n * methods: MapProperty.insert, MapProperty.set, SetProperty.insert, NodeProperty.insert\n * The property you are trying to insert (or at least one if its children) in your map property, set\n * property or node property is not covered by the paths of the partial checkout.\n * You cannot insert this property because you would not receive updates for this path after the\n * insertion and you could corrupt your data by doing subsequent modifications.\n */\n INSERTED_OUTSIDE_PATHS:\n \"PR-186: Trying to insert a property outside the paths covered by the partial checkout.\",\n\n SHARED_BEFORE_INSERTED: \"PR-187: Property must be inserted in the workspace before sharing.\",\n\n CUSTOM_ID_NOT_ALLOWED: \"PR-188: The following property does not support custom id: \",\n};\n\nconst PropertyFactoryError = {\n\n /**\n * methods: PropertyFactory.create\n * Each property created with PropertyFactory.create should have a unique id. You should make sure your\n * code generates a unique id for each property created, or make your property an instanced of NamedProperties\n * (which are identified by a unique Urn)\n */\n OVERWRITING_ID: \"PF-001: Id already exists: \",\n\n /**\n * methods: PropertyFactory.register\n * Warning: The template passed into the register method does not match the expected structure for this type.\n */\n TEMPLATE_MISMATCH: \"PF-004: Template structures do not match for typeid: \",\n\n /**\n * methods: PropertyFactory.register\n * The typeid assigned to your property template should include a version.\n * E.g. 1.0.0 - an example of a valid typeid: “my.example:point2d-1.0.0”\n */\n UNVERSIONED_TEMPLATE: \"PF-005: Templates must be versioned.\",\n\n /**\n * INTERNAL ERROR - If you encounter this error, please contact the development team.\n * Error occurs when a template has been inserted into the branch without a SEMVER version.\n * This can occur when registering templates through the commit REST interface. At this point\n * the data is corrupted and should be reported to the development team\n */\n UNVERSIONED_REMOTE_TEMPLATE: \"PF-006: Internal error: Remote template is not versioned.\",\n\n /**\n * methods: PropertyFactory.create\n * RepositoryReferences are not yet fully implemented. They will be soon.\n */\n REPOSITORY_REF_NOT_FULLY_IMPLEMENTED: \"PF-007: Repository references are not yet fully implemented and may not \" +\n \"yet be used\",\n\n /**\n * methods: PropertyFactory.create\n * When using ‘inherits’ in your property template, it must be a string or an array.\n * @example\n * ```json\n * {\n * typeid:'my.example:point2d-1.0.0',\n * inherits: ‘ another property’\n * }\n * ```\n * or :\n * ```json\n * {\n * typeid:'my.example:point2d-1.0.0',\n * inherits: [‘another property’, ‘property2’]\n * }\n * ```\n */\n INHERITS_ARRAY_OR_STRING: \"PF-008: Internal error: Inherits must be an Array or a String. This is not valid: \",\n\n /**\n * methods: PropertyFactory.create\n * Context can be ‘array, ‘set’, ‘map’, ‘enum’ or ‘single’. If not specified, will default to ‘single’.\n */\n UNKNOWN_CONTEXT_SPECIFIED: \"PF-009: Unknown context specified: \",\n\n /**\n * methods: PropertyFactory.create\n * The property you entered into PropertyFactory.create has a typeid that is not registered.\n * Make sure you register the template before creating an instance of that property. This could\n * also be caused by a failure in the registration process.\n */\n UNKNOWN_TYPEID_SPECIFIED: \"PF-010: Unknown typeid specified: \",\n\n /**\n * methods: PropertyFactory.getAllParentsForTemplate, PropertyFactory.inheritsFrom\n * Cannot find a template for this typeid. Make sure you registered the template and that the typeid\n * is entered correctly. This can be an error with the template you are trying to insert or one of the\n * templates it inherits from.\n */\n NON_EXISTING_TYPEID: \"PF-011: Missing template for the property you entered or one of the templates it inherits from: \",\n\n /**\n * methods: PropertyFactory.register\n * The property you passed in to .register is a primitive property. These do not need to be registered with a\n * typeid. It can be created without being registered. E.g. PropertyFactory.create(‘String’)\n */\n CANNOT_REGISTER_PRIMITIVE: \"PF-012: Cannot register a primitive property with the public `register` \" +\n \"function typeid = \",\n\n /**\n * methods: PropertyFactory.convertToTemplates, PropertyFactory.registerFrom\n * Your template’s id field must be a string.\n */\n DEFINITION_ID_MUST_BE_STRING: 'PF-024: Value \"id\" of a definition should be a string. \"',\n\n /**\n * methods: PropertyFactory.convertToTemplates, PropertyFactory.registerFrom\n * The \"$ref\" keyword is used to reference a schema, and provides the ability to validate recursive structures\n * through self-reference.\n * An object schema with a \"$ref\" property MUST be interpreted as a \"$ref\" reference. The value of the \"$ref\"\n * property MUST be a URI Reference (a string)\n */\n REF_SHOULD_BE_STRING: 'PF-025: Value of \"$ref\" should be a string. \"',\n\n /**\n * methods: PropertyFactory.convertToTemplates, PropertyFactory.registerFrom\n * The identifier passed to $ref does not point to any schema.\n */\n COULD_NOT_FIND_REFERENCE: 'PF-026: Couldn\\'t find reference \"',\n\n /**\n * methods: PropertyFactory.convertToTemplates, PropertyFactory.registerFrom\n * The identifier passed to $ref does not point to an object.\n */\n REFERENCED_DEFINITION_SHOULD_BE_OBJECT: 'PF-027: A referenced definition should be an object. \"',\n\n /**\n * methods: PropertyFactory.convertToTemplates, PropertyFactory.registerFrom\n * In a JSON schema, the properties field must be an object.\n */\n PROPERTIES_SHOULD_BE_OBJECT: 'PF-028: The \"properties\" value should be an object. \"',\n\n /**\n * methods: PropertyFactory.convertToTemplates, PropertyFactory.registerFrom\n * oneOf’s value MUST be a non-empty array. Each item of the array MUST be a valid JSON Schema.\n * An instance validates successfully against this keyword if it validates successfully against exactly one\n * schema defined by this keyword's value.\n */\n ONE_OF_ONLY_FOR_ARRAYS_OF_ONE_OBJECT: 'PF-029: The \"oneOf\" object is supported only for arrays of one object.',\n\n /**\n * methods: PropertyFactory.convertToTemplates, PropertyFactory.registerFrom\n * oneOf’s value MUST be a non-empty array. Each item of the array MUST be a valid JSON Schema.\n */\n ONE_OF_SHOULD_CONTAIN_OBJECTS: 'PF-030: The \"oneOf\" array should contain objects. \"',\n\n /**\n * methods: PropertyFactory.convertToTemplates, PropertyFactory.registerFrom\n * This keyword's value MUST be a non-empty array. Each item of the array MUST be a valid JSON Schema.\n */\n ALL_OF_SHOULD_BE_ARRAY: 'PF-031: The \"allOf\" object should be an array.',\n\n /**\n * methods: PropertyFactory.convertToTemplates, PropertyFactory.registerFrom\n * This keyword's value MUST be a non-empty array. Each item of the array MUST be a valid JSON Schema.\n */\n ALL_OF_SHOULD_CONTAIN_OBJECTS: 'PF-032: The \"allOf\" array should contain objects. Element ',\n\n /**\n * methods: PropertyFactory.convertToTemplates, PropertyFactory.registerFrom\n * Your schema definition contains infinite recursion. For example, if your definition ‘a’ refers to definition\n * ‘b’ as being one of its children and ‘b’ refers to ‘a’ as one of its children.\n */\n INFINITE_RECURSION: \"PF-033: Infinite recursion detected in path: \",\n\n /**\n * methods: PropertyFactory.convertToTemplates, PropertyFactory.registerFrom\n * One part of your template object might contain something that is not of type ‘object’, ‘string’,\n * ‘number’ or ‘integer’.\n */\n UNSUPPORTED_VALUE_TYPE: 'PF-034: Unsupported value of field \"type\": ',\n\n REQUIRED_PROPERTY_NAME_NOT_STRING: 'PF-035: Required property name should be a string, \"',\n\n /**\n * This property is required but it is not listed in the properties field.\n */\n PROPERTY_NAME_DOES_NOT_MATCH: \"PF-036: Required property name does not match any property in object: \",\n\n /**\n * The ‘inherits’ field in your template object should be a string or an array of strings.\n */\n INHERITS_SHOULD_BE_STRING: 'PF-037: The \"inherits\" object should be a string or an array of strings. This is not valid: ',\n\n /**\n * The ‘context’ field in your template should be a string.\n */\n CONTEXT_SHOULD_BE_STRING: 'PF-038: The \"context\" value should be a string. This is not valid: ',\n\n /**\n * methods: PropertyFactory.convertToTemplates, PropertyFactory.registerFrom\n * Warning: If you have a ‘length’ field in your template and the context is not set to ‘array’,\n * ‘length’ will be ignored.\n */\n IGNORING_LENGTH_NOT_ARRAY: 'PF-039: ignoring \"length\" value since \"context\" is not \"array\".',\n\n /**\n * methods: PropertyFactory.convertToTemplates, PropertyFactory.registerFrom\n * In your template, the field ‘length’ should be a number.\n */\n LENGTH_SHOULD_BE_NUMBER: 'PF-040: The \"length\" value should be a number. This is not valid: ',\n\n /**\n * methods: PropertyFactory.convertToTemplates, PropertyFactory.registerFrom\n * Your template contains more than one definition field for this field.\n */\n DUPLICATE_DEFINITION: \"PF-041: Duplicate definition for \",\n\n /**\n * methods: PropertyFactory.convertToTemplates, PropertyFactory.registerFrom\n * The field ‘id’ is missing from your JSON schema.\n */\n FIELD_ID_IS_REQUIRED: 'PF-042: Field \"id\" is required.',\n\n /**\n * methods: PropertyFactory.convertToTemplates, PropertyFactory.registerFrom\n * You need a ‘typeid’ field in your template schema.\n * @example\n * ```json\n * {\n * ‘typeid’: 'autodesk.test:set.set-1.0.0',\n * ‘properties’: [\n * {‘typeid’: 'String',\n * ‘context’: 'set',\n * ‘id’: 'DummySet',\n * ‘inherits’:['NamedProperty']}\n * ]\n * }\n *```\n */\n FIELD_TYPEID_IS_REQUIRED: 'PF-043: Field \"typeid\" is required. It is the \"typeid\" of the resulting ' +\n \"PropertySets Template.\",\n\n /**\n * methods: PropertyFactory.register\n * The ‘length’ field in your template must be a number.\n */\n LENGTH_MUST_BE_NUMBER: \"PF-045: length must be a number. This is not valid: \",\n\n /**\n * methods: PropertyFactory.register\n * Each entry in your enum property array must have an id.\n * @example\n * ```json\n * {\n * \"typeid\": \"Adsk.Core:Units.Metric-1.0.0\",\n * \"inherits\": \"Enum\",\n * \"annotation\": { \"description\": \"The metric units\" },\n * \"properties\": [\n * { \"id\": \"m\" , \"value\": 1, \"annotation\": { \"description\": \"meter\" }},\n * { \"id\": \"cm\", \"value\": 2, \"annotation\": { \"description\": \"centimeter\" }},\n * { \"id\": \"mm\", \"value\": 3, \"annotation\": { \"description\": \"millimeter\" }}\n * ]\n * }\n * ```\n */\n ENUM_TYPEID_MISSING: \"PF-046: Enum: typeid missing\",\n\n /**\n * methods: PropertyTemplate constructor\n * Each entry in your enum property must have a value that is a number.\n * @example\n * ```json\n * {\n * \"typeid\": \"Adsk.Core:Units.Metric-1.0.0\",\n * \"inherits\": \"Enum\",\n * \"annotation\": { \"description\": \"The metric units\" },\n * \"properties\": [\n * { \"id\": \"m\" , \"value\": 1, \"annotation\": { \"description\": \"meter\" }},\n * { \"id\": \"cm\", \"value\": 2, \"annotation\": { \"description\": \"centimeter\" }},\n * { \"id\": \"mm\", \"value\": 3, \"annotation\": { \"description\": \"millimeter\" }}\n * ]\n * }\n * ```\n */\n ENUM_VALUE_NOT_NUMBER: \"PF-047: Enum: value must be a number. This is not valid: \",\n\n /**\n * methods: PropertyTemplate.getVersion\n * INTERNAL ERROR - If you encounter this error, please contact the development team.\n * Warning: you that the template on which you are calling the .getVersion method is not versioned.\n * The method will return undefined. This should not happen as we now validate that all templates are\n * versioned when registering them.\n */\n TEMPLATE_NOT_VERSIONED: \"PF-048: Internal error: Template is not versioned.\",\n\n /**\n * methods: PropertyFactory.register\n * Warning: Template already exists. The incoming template MUST match what is currently registered.\n * If they do not match, an error will be thrown letting you know that the templates are incompatible.\n * See error PF-004\n */\n REGISTERING_EXISTING_TYPEID: \"PF-049: Registering a typeid that already exists typeid = \",\n\n /**\n * methods: PropertyFactory.register\n * There were errors validating the template you are trying to register. See detailed errors attached.\n */\n FAILED_TO_REGISTER: \"PF-050: Failed to register typeid = \",\n\n /**\n * methods: PropertyFactory.convertToTemplates, PropertyFactory.registerFrom\n * So far, these methods can only convert from a JSON schema. The first parameter (in_fromType)\n * must be ‘JSONSchema’.\n */\n UNKNOWN_TYPE: \"PF-051: Unknown type: \",\n\n /**\n * methods: PropertyTemplate.serializeCanonical\n * INTERNAL ERROR - If you encounter this error, please contact the development team.\n * This error shouldn’t occur. The underlying private function that is called is a close cousin of the\n * deepCopy function which could have an arbitrary target specified. This doesn’t happen in the case of\n * the serializeCanonical.\n */\n INVALID_TARGET_PROPERTY_TEMPLATE: \"PF-053 Copying into incompatible target property template: \",\n\n /**\n * methods: PropertyFactory.loadTemplate\n * In order for the PropertyFactory to retrieve templates from remote store it has to have at least one store\n * interface to interact with. This is accomplished by making the PropertyFactory.addStore call.\n */\n MISSING_CASE_IN_TEMPLATE_SERIALIZATION: \"PF-054 Missing case in template canonical serialization: \",\n\n OVERRIDDING_INHERITED_TYPES: \"PF-057: Overriding of inherited typed properties is not allowed: \",\n\n /**\n * methods: PropertyFactory.register\n * PropertyFactory.register takes one parameter, which can be a string (typeid), a json object (a template) or an\n * array of these.\n */\n ATTEMPT_TO_REGISTER_WITH_BAD_ARGUMENT: \"PF-058: register only accepts strings, json structures or array of those\",\n\n /**\n * methods: PropertyFactory.resolve\n * No store has been added yet to the PropertyFactory. A template store has to be instantiated then added with\n * propertyFactory.addStore()\n */\n NO_STORE_HAS_BEEN_INITIALIZED_YET: \"PF-059: No store has been initialized yet to the PropertyFactory.\",\n\n /**\n * methods: PropertyFactory.resolve\n * resolve cannot be called until previous call to resolve has completed.\n */\n DEPENDENCIES_RESOLUTION_IN_PROGRESS: \"PF-060: Dependencies resolution already in progress\",\n\n /**\n * methods: PropertyFactory.create\n * Typed values must contain properties that inherit from the base type.\n */\n TYPED_VALUES_MUST_DERIVE_FROM_BASE_TYPE: \"PF-061: Typed values must be derived from base type: \",\n\n /**\n * methods: PropertyFactory.create\n * The field ‘value’ is missing from your JSON schema.\n */\n FIELD_VALUE_IS_REQUIRED: 'PF-062: Field \"value\" is required: ',\n\n /**\n * methods: PropertyFactory.register\n * Warning: The structure of the template passed into the register method does not match the structure of a remote template registered under the same typeid.\n */\n REMOTE_TEMPLATE_MISMATCH: \"PF-064: Template structures do not match an already registered remote template with the same typeid for typeid: \",\n\n /**\n * methods: PropertyFactory.initializeSchemaStore\n * Warning: The initializeSchemaStore method must be provided with an options object\n containing a getBearerToken function and the url to the ForgeSchemaService.\n */\n MISSING_FSS_INIT_OPTIONS: \"PF-065: The initializeSchemaStore method must be provided with an options object \" +\n \"containing a getBearerToken function and the url to the ForgeSchemaService.\",\n\n /**\n * methods: PropertyFactory.initializeSchemaStore\n * Warning: The initializeSchemaStore method url option must be passed a valid base url.\n */\n FSS_BASEURL_WRONG: \"PF-066: The initializeSchemaStore method url option must be passed a valid base url.\",\n\n /**\n * methods: PropertyFactory.create\n * Overridden properties must have same context as the base type.\n */\n OVERRIDEN_PROP_MUST_HAVE_SAME_CONTEXT_AS_BASE_TYPE: \"PF-067: Overridden properties must have same context as the base type: \",\n\n /**\n * methods: PropertyFactory.create\n * Primitive types does not support typedValues.\n */\n TYPED_VALUES_FOR_PRIMITIVES_NOT_SUPPORTED: \"PF-068: Primitive types does not support typedValues: \",\n\n /**\n * methods: PropertyFactory.inheritsFrom\n */\n TYPEID_IS_NOT_ENUM: \"PF-069: The provided type does not inherit from Enum: \",\n};\n\nconst RepositoryError = {\n\n /**\n * methods: NodeProperty.remove\n * The property you tried to remove does not exist (its id was not found) - check that the id is correct\n * and that the property has not already been removed.\n */\n REMOVING_NON_EXISTING_ID: \"RE-001: Removing non existing id: \",\n\n /**\n * methods: BranchNode.isEqual, CommitNode.isEqual\n * In_node parameter is required. In_node is the branch or commit you wish to compare to ‘this’ branch/commit\n * node to check for equality.\n */\n MISSING_IN_NODE_PARAM: \"RE-004: BranchNode.isEqual / CommitNode.isEqual missing \" +\n \"parameter: in_node\",\n\n /**\n * methods: BranchNode, CommitNode, Workspace.commit\n * The BranchNode or CommitNode constructor was called without in_params.guid or we tried to send a commit\n * without a guid.\n */\n MISSING_GUID_FIELD: \"RE-006: Missing guid field\",\n\n /**\n * INTERNAL ERROR - If you encounter this error, please contact the development team.\n */\n LOCAL_AND_REMOTE_BRANCH_NOT_EQUAL: \"RE-007: Remote branch urn must equal the local branch urn\",\n\n /**\n * INTERNAL ERROR - If you encounter this error, please contact the development team.\n */\n BRANCH_NOT_REMOTE_BRANCH: \"RE-008: Branch is not a remote branch \",\n\n /**\n * now rebasing to \\<commit guid\\>'\n * INTERNAL ERROR - If you encounter this error, please contact the development team.\n * A commit node already rebased has been rebased again.\n */\n COMMIT_ALREADY_REBASED: \"RE-009: Should not rebase commit more than once: \",\n\n /**\n * INTERNAL ERROR - If you encounter this error, please contact the development team.\n * A new commit has been received from the server but was not expected. See specific message for more details.\n */\n UNEXPECTED_COMMIT_FROM_SERVER: \"RE-010: Adding commit to remote branch \",\n\n /**\n * This error will occur if the repository associated to a branch hasn't been found.\n */\n REPOSITORY_NOT_FOUND: \"RE-011: Internal Error: The repository hasn't been found.\",\n\n /**\n * This error will occur if the branch within a repository hasn't been found.\n */\n BRANCH_NOT_FOUND: \"RE-012: The branch hasn't been found.\",\n};\n\nconst ServerError = {\n\n /**\n * INTERNAL ERROR - If you encounter this error, please contact the development team.\n */\n URL_MUST_BE_STRING: \"SE-001: Url must be a string.\",\n\n /**\n * INTERNAL ERROR - If you encounter this error, please contact the development team.\n */\n PORT_MUST_BE_NUMBER: \"SE-002: Port must be a number\",\n};\n\nconst ChangeSetError = {\n\n /**\n * Context can only be ‘single’, ‘array’, ‘map’, ‘set’ or ‘enum’. All other values are invalid.\n */\n UNKNOWN_CONTEXT: \"CS-001: Unknown context: \",\n\n /**\n * INTERNAL ERROR - If you encounter this error, please contact the development team.\n */\n ALREADY_EXISTING_ENTRY: \"CS-003: Internal error: Added an already existing entry: \",\n\n /**\n * INTERNAL ERROR - If you encounter this error, please contact the development team.\n * The ChangeSet did not include an oldValue member which is computed when making the ChangeSet reversible.\n */\n OLD_VALUE_NOT_FOUND: \"CS-004: Internal error: Old value not found while inverting a change set. The change set is probably not reversible.\",\n\n CONTEXT_VALIDATION_IN_PROGRESS: \"CONTEXT_VALIDATION_IN_PROGRESS\",\n\n NOT_A_VALID_CONTEXT: \"NOT_A_VALID_CONTEXT\",\n\n MISSING_PRE_POST_CALLBACK: \"Missing callback. Either pre- or postcallback must be provided.\",\n};\n\nconst UtilsError = {\n INVALID_PATH_IN_REFERENCE: \"UT-001: References may only contain absolute repository references \" +\n \"or empty strings\",\n\n /**\n * methods: Utils.traverseChangesetRecursively\n * Your changeset contains an operator other than MODIFY, INSERT or REMOVE. If you created the changeset youserlf,\n * check that you only use valid operators. Otherwise, this is an internal error. Please contact the development team.\n */\n UNKNOWN_OPERATOR: \"UT-004: ArrayChangeSetIterator: unknown operator \",\n\n /**\n * INTERNAL ERROR - If you encounter this error, please contact the development team.\n */\n NON_PRIMITIVE_ARRAY_NO_TYPEID: \"UT-005: Found a non primitive type array without typeids. \" +\n \"This should never happen.\",\n\n /**\n * Filtering paths within arrays are not supported.\n */\n FILTER_PATH_WITHIN_ARRAY: \"UT-006: Filtering paths within arrays are not supported\",\n\n /**\n * INTERNAL ERROR - If you encounter this error, please contact the development team.\n * See specific message for more details.\n */\n ASSERTION_FAILED: \"UT-007: INTERNAL ERROR. Failed assertion. \",\n\n /**\n * You used a deprecated function. It will likely be removed in the next major version.\n * See the custom information if provided.\n */\n DEPRECATED_FUNCTION: \"UT-008: Deprecated function %s.\",\n\n /**\n * You used a deprecated function parameter. It will likely be removed in the next major version.\n * See the custom information if provided.\n */\n DEPRECATED_PARAMETER: \"UT-009: Deprecated function parameter %s of %s.\",\n\n /**\n * You used an experimental feature. It will likely changed in future releases.\n * See the custom information if provided.\n */\n EXPERIMENTAL_FEATURE: \"UT-010: Feature %s is experimental and subject to future changes.\",\n};\n\nconst PssClientError = {\n /**\n * This error message will be displayed when a repository creation fails\n */\n FAILED_REPOSITORY_CREATION:\n \"PC-001: Server error: Failed to create a repository. \",\n\n /**\n * This error message will be displayed when the deletion of a repository fails\n */\n FAILED_REPOSITORY_DELETION:\n \"PC-002: Server error: Failed to delete a repository. Repository guid: \",\n\n /**\n * This error message will be displayed when the undelete operation of a repository fails\n */\n FAILED_REPOSITORY_UNDELETION:\n \"PC-003: Server error: Failed to undelete a repository. Repository guid: \",\n\n /**\n * This error message will be displayed when getting the expiry of a repository fails\n */\n FAILED_GET_EXPIRY_REQUEST:\n \"PC-004: Server error: Failed to get the expiry of a repository. Repository guid: \",\n\n /**\n * This error message will be displayed when setting the expiry of a repository fails\n */\n FAILED_SET_EXPIRY_REQUEST:\n \"PC-005: Server error: Failed to set the expiry of a repository. Repository guid: \",\n\n /**\n * This error message will be displayed when squashing commit history fails\n */\n FAILED_SQUASH_COMMIT_HISTORY: \"PC-006: Server error: Failed to squash the commit history. Branch guid: \",\n\n /**\n * This error message will be displayed when fetching a commit fails\n */\n FAILED_FETCH_COMMIT: \"PC-007: Server error: Failed to fetch a commit. Commit guid: \",\n\n /**\n * This error message will be displayed when containers creation fails\n */\n FAILED_CONTAINER_CREATION: \"PC-008: Server error: Failed to create containers. \",\n\n /**\n * This error message will be displayed when a branch creation fails\n */\n FAILED_BRANCH_CREATION: \"PC-009: Server error: Failed to create a branch. \",\n\n /**\n * This error message will be displayed when a commit fails\n */\n FAILED_TO_COMMIT: \"PC-011: Server error: Failed to commit. \",\n\n /**\n * This error message will be displayed when a share operation fails\n */\n FAILED_SHARE: \"PC-013: Server error: Failed to share or unshare resources. \",\n\n /**\n * This error message will be displayed when getting the branches of a repository fails\n */\n FAILED_GET_ENUMERATE_BRANCHES: \"PC-014: Server error: Failed to get the branches of a repository. Repository guid: \",\n\n /**\n * This error message will be displayed when a request to get an lca fails\n */\n FAILED_GET_LCA: \"PC-015: Server error: Failed to get the lca.\",\n\n /**\n * This error message will be displayed when a commit fails because of an internal error while committing\n */\n FAILED_TO_COMMIT_INTERNAL: \"PC-016: internal error: Failed to commit.\",\n\n /**\n * This error message will be displayed when getting a feature flag fails\n */\n FAILED_TO_GET_FEATURE: \"PC-017: Server error: Failed to get feature flag from PSS. \",\n\n /**\n * This error message will be displayed when getting squashed commit range fails\n */\n FAILED_TO_GET_SQUASHED_COMMIT_RANGE: \"PC-018: Server error: Failed to get squashed commit range. Branch guid: \",\n};\n\nconst PROPERTY_PATH_DELIMITER = \".\";\nconst MESSAGE_CONSTANTS = {\n ...ChangeSetError,\n ...PropertyError,\n ...PropertyFactoryError,\n ...RepositoryError,\n ...SchemaValidatorError,\n ...PssClientError,\n ...UtilsError,\n ...TypeidHelperError,\n ...ServerError,\n};\n\nexport const constants = {\n MSG: MESSAGE_CONSTANTS,\n PROPERTY_PATH_DELIMITER,\n};\n"]}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,4BAA4B;AAE5B;;GAEG;AACH,MAAM,oBAAoB,GAAG;IACzB;;;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AAM,iBAAiB,qIAChB,cAAc,GACd,aAAa,GACb,oBAAoB,GACpB,eAAe,GACf,oBAAoB,GACpB,cAAc,GACd,UAAU,GACV,iBAAiB,GACjB,WAAW,CACjB,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAG;IACrB,GAAG,EAAE,iBAAiB;IACtB,uBAAuB;CAC1B,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\n/* eslint-disable max-len */\n\n/**\n * Error messages for the Schema Validator\n */\nconst SchemaValidatorError = {\n /**\n * methods: PropertyFactory.register\n * The context ‘set’ is only valid for properties that are instances of NamedProperties. If you want to\n * use a context of ‘set’, make sure your template includes:\n * Inherits: ‘NamedProperty’\n * Or\n * Inherits: [‘NamedProperty’, …]\n */\n SET_ONLY_NAMED_PROPS:\n 'SV-001: Only properties that inherit from NamedProperty can have a context of \"set\". typeid: ',\n\n /**\n * You updated an existing template but the change to the version number was not as expected.\n * Make sure you updated your version number correctly. You may have violated one of the following rules:\n * - Adding one or more template attributes is a MINOR change.\n * - Removing one or more template attributes is a MAJOR change.\n */\n CHANGE_LEVEL_TOO_LOW_1:\n \"SV-002: Template mutation requires a higher version change level: \",\n\n /**\n * methods: PropertyFactory.register\n * The template version number is not valid. A valid version number should look like: ‘1.0.0’\n */\n INVALID_VERSION_1:\n \"SV-003: Invalid template version in 'typeid' attribute: \",\n\n /**\n * methods: PropertyFactory.register\n * Your property template should include a typeid attribute.\n * @example\n *```json\n * {\n * \"typeid\": \"my.example:point2d-1.0.0\",\n * \"properties\": [\n * {\"id\": \"x\", \"typeid\": \"Float64\"},\n * {\"id\": \"y\", \"typeid\": \"Float64\"}\n * ]\n *}\n *```\n */\n MISSING_TYPE_ID:\n \"SV-004: Template is missing the mandatory 'typeid' attribute. This is not a valid template: \",\n\n /**\n * methods: PropertyFactory.register\n * Typeid should contain a template version number.\n * @example\n * “typeid: my.example:point2d-1.0.0”\n */\n MISSING_VERSION:\n \"SV-005: Missing template version in 'typeid' attribute: \",\n\n /**\n * methods: PropertyFactory.register\n * The template you are using is different from the previous version and you did not update the version number.\n * If any changes were made to the template, you should update the version number to a higher number.\n * - Major change: removing one or more attribute (e.g. 1.0.0 -\\> 2.0.0)\n * - Minor change: adding one or more attribute (e.g. 1.0.0 -\\> 1.1.0)\n * - Patch: template description changes (e.g. 1.0.0 -\\> 1.0.1)\n */\n MODIFIED_TEMPLATE_1:\n \"SV-006: Template has changed at path: \",\n\n /**\n * methods: PropertyFactory.register\n * When changing your template, you need to increase its version number. For example, if the previous version\n * number was 1.0.0, it should increase to 1.0.1 for a patch (if the template description has changed),\n * to 1.1.0 for a minor change (if you added one or more attributes) or to 2.0.0 for a major change (if you\n * removed one or more attributes).\n */\n MODIFIED_TEMPLATE_SAME_VERSION_1:\n \"SV-007: Template has changed but its version was not increased. Path: \",\n\n /**\n * methods: PropertyFactory.register\n * PropertyFactory.register requires a template as a parameter.\n */\n NO_TEMPLATE:\n \"SV-008: Template cannot be null or undefined.\",\n\n /**\n * methods: PropertyFactory.register\n * When updating a template’s version number, the version number can only increase, never decrease.\n */\n VERSION_REGRESSION_1:\n \"SV-009: New template version is older than the previously registered version: \",\n\n /**\n * Your template contains a typeid that is not a string.\n */\n TYPEID_MUST_BE_STRING:\n \"SV-010: typeid must be a string. This is not valid: \",\n\n /**\n * INTERNAL ERROR - If you encounter this error, please contact the development team.\n * The TemplateValidator constructor should have in its parameters param.inheritsFrom and params.hasSchema.\n * Neither of them can be undefined.\n */\n MISSING_INHERITSFROM_OR_HASSCHEMA:\n \"SV-011: Internal error: TemplateValidator constructor missing one of inheritsFrom or hasSchema function\",\n\n /**\n * Your template has an invalid key for the kind of map it is.\n */\n KEY_MUST_BE_TYPEID:\n \"SV-012: A key of a typeid key map must be a valid typeids. Key: \",\n\n /**\n * Your template has an invalid contextKeyType parameter.\n */\n INVALID_OPTION_NONE_CONSTANTS:\n \"SV-013: A map with typeids as keys must be constant\",\n\n /**\n * You tried to use draft as a versoin when it is not enabled.\n */\n DRAFT_AS_VERSION_TYPEID:\n \"SV-014: By default, draft is not a valid version for a typeId. Set allowDraft to true to support this.\",\n};\n\nconst TypeidHelperError = {\n /**\n * INTERNAL ERROR - If you encounter this error, please contact the development team.\n */\n TYPEID_NOT_DEFINED: \"TH-001: extractVersion requires a typeid parameter\",\n};\n\nconst PropertyError = {\n TYPEID_NOT_NATIVE: \"TYPEID_NOT_NATIVE\",\n /**\n * methods: ArrayProperty.length.set, StringProperty.length.set\n * Cannot directly set the array.length or string.length. This is a read-only property.\n */\n MODIFY_READ_ONLY: \"PR-001: Trying to modify read only property value (array.length).\",\n\n /**\n * methods: Property.getRelativePath\n * There is no path between the property and the ancestor you passed in to .getRelativePath.\n */\n NO_PATH_BETWEEN: \"PR-002: No path between \",\n\n /**\n * methods: Property.applyChangeSet\n * One of the paths included in your changeSet is not valid for this property.\n * Check that the modifications in the changeSet match the structure of the template.\n */\n INVALID_PATH: \"PR-003: Invalid path in ChangeSet: \",\n\n /**\n * methods: NodeProperty.insert\n * The property you inserted into a NodeProperty has a parent.\n * If your property has a parent, changing the property’s id will break the parent.\n * Make the change to the parent first.\n */\n ID_CHANGE_FOR_PROPERTY_WITH_PARENT: \"PR-004: Cannot change the ID of a property that has a parent. Could not change id: \",\n\n /**\n * methods: Property.resolvePath\n * Part of the path entered to Property.resolvePath was not valid.\n */\n INVALID_PATH_TOKEN: \"PR-005: ResolvePath error: accessed a child via an invalid path syntax: \",\n\n /**\n * methods: MapProperty.insert, NodeProperty.insert, ReferenceMapProperty.insert, Workspace.insert,\n * SetProperty.insert\n * Your map, set or nodeproperty already contains an entry under in_key.\n */\n PROPERTY_ALREADY_EXISTS: \"PR-006: The property already exists in this collection: \",\n\n /**\n * methods: MapProperty.applyChangeset, NodeProperty.applyChangeset, SetProperty.applyChangeset\n * The changeset you applied contains properties that have already been inserted.\n * Check the ‘insert’ fields in your changeSet for properties that might already exist.\n */\n INSERTED_EXISTING_ENTRY: \"PR-007: Inserted an already existing entry: \",\n\n /**\n * methods: MapProperty.remove, SetProperty.remove\n * Tried to remove an entry that does not exist.\n * This can be caused indirectly by deserialize / applyChangeset methods.\n * One of the ‘remove’ fields in your changeSet must contain a property that does not exist.\n */\n REMOVED_NON_EXISTING_ENTRY: \"PR-008: Trying to remove a non-existing entry: \",\n\n /**\n * methods: MapProperty.applyChangeset, NodeProperty.applyChangeset, SetProperty.applyChangeset\n * One of the key you are trying to modify in your changeSet does not exist.\n * One of the ‘modify’ fields in your changeSet refers to a property that does not exist.\n */\n MODIFY_NON_EXISTING_ENTRY: \"PR-009: Trying to modify a not existing entry: \",\n\n /**\n * methods: MapProperty.insert, MapProperty.set, SetProperty.insert, NodeProperty.insert\n * The value you are trying to insert in your map property, set property or node property has a parent.\n * You cannot insert a property that has a parent.\n */\n INSERTED_ENTRY_WITH_PARENT: \"PR-010: Trying to insert into a collection a property that already has \" +\n \"a parent.\",\n\n /**\n * methods: Property.resolvePath, Workspace.resolvePath\n * Paths should not contain empty sections such as ‘..’, ‘//’ or ‘[], etc.\n * Sections in the path are delimited by ‘.’ ‘[ ]’, ‘/’ .\n * There should always be a path between any two delimiters.\n */\n EMPTY_TOKEN: \"PR-011: ResolvePath error: Encountered empty token in path: \",\n\n /**\n * methods: Property.resolvePath, Workspace.resolvePath\n * Paths should not contain quotes except at the beginning and end of the path.\n * For example: resolvePath('my\"path.nested\".other') is not valid because the first quote is in front of ‘path’\n * but after the ‘.nested’ which is part of the subsequent path.\n */\n QUOTES_WITHIN_TOKEN: \"PR-012: ResolvePath error: Quotes must only be at the start and the \" +\n \"end of a path. Error in path: \",\n\n /**\n * methods: Property.resolvePath, Workspace.resolvePath\n * Paths should not end with a ‘.’\n */\n DOT_AT_END: \"PR-013: ResolvePath error: Encountered a dot at the end of path: \",\n\n /**\n * methods: Property.resolvePath, Workspace.resolvePath\n * Paths using square brackets should not contain ‘.’ within those square brackets.\n * If your path contains any dots, these should be escaped e.g. [my\\.path] instead of [my.path].\n */\n DOTS_IN_SQUARE_BRACKETS: \"PR-014: ResolvePath error: Encountered a dot within a square bracket. \" +\n \"These have to be escaped. Error in path: \",\n\n /**\n * methods: Property.resolvePath, Workspace.resolvePath\n * resolvePath error while parsing your string.\n * It encountered an end to a path segment that was not\n * followed by a “.” or a “[“ indicating the beginning of a new segment.\n */\n MISSING_DOT_AT_SEGMENT_START: \"PR-015: Missing . or [ at segment start in path: \",\n\n /**\n * methods: Property.resolvePath, Workspace.resolvePath\n * Closing square bracket not followed by the correct character (., [ or *).\n * For example, this is not valid: resolvePath(myArray[2]nested).\n * This is valid: resolvePath(myArray[2].nested).\n */\n INVALID_END_OF_SQUARE_BRACKETS: \"PR-016: ResolvePath error: Square brackets have to be followed either \" +\n 'by \".\" or by \"[\" or by \"*\". Error in path: ',\n\n /**\n * methods: Property.resolvePath, Workspace.resolvePath\n * Every opening bracket ([) needs a matching closing bracket (])\n */\n UNCLOSED_BRACKETS: \"PR-017: ResolvePath error: Unclosed brackets at the end of path: \",\n\n /**\n * methods: Property.resolvePath, Workspace.resolvePath\n * Any closing bracket (]) must be preceded by a matching opening bracket ([).\n */\n CLOSING_BRACKET_WITHOUT_OPENING: \"PR-018: ResolvePath error: Encountered closing bracket without \" +\n \"corresponding opening one in path: \",\n\n /**\n * methods: Property.resolvePath, Workspace.resolvePath\n */\n INVALID_ESCAPE_SEQUENCE: \"PR-019: Encountered an invalid escape sequence in path: \",\n\n /**\n * methods: Property.resolvePath, Workspace.resolvePath\n * A quotation mark at the beginning of a path must have a matching closing quotation mark\n * at the end of the same path.\n */\n UNCLOSED_QUOTATION_MARKS: \"PR-020: ResolvePath error: Encountered unclosed quotation marks in path: \",\n\n /**\n * methods: SetProperty.insert, SetProperty.set, SetProperty.setValues\n * The property you insert in a setProperty must be an instance of NamedProperty.\n * When creating the property to be inserted, make sure it inherits from NamedProperty.\n * @example\n * #Creating a property that inherits from NamedProperty\n * ```json\n * {\n * typeid:”my.example:myprop-1.0.0”,\n * inherits:’NamedProperty’ (or [‘NamedProperty’, …]\n * ...\n * }\n *```\n */\n CANT_INSERT_NON_NAMED_PROPERTIES: \"PR-021: Set can only contain named properties\",\n\n /**\n * methods: NodeProperty.insert, Workspace.insert\n * The property you inserted does not have an id.\n * Unless the property is an instance of NamedProperty, you must pass in an id as the first parameter\n * (and the property second)\n */\n ADDED_CHILD_WITHOUT_ID: \"PR-022: Added child without id.\",\n\n /**\n * methods: ArrayProperty.resolvePath\n * Cannot use .resolvePath on a primitive array, only on a Custom type array.\n * For a primitive array, use .getValue instead.\n * For example, instead of MyValueArray.resolvePath(1), use MyValueArray.getValue(1)\n */\n NO_PATHS_FOR_NON_PRIMITIVE_ARRAYS: \"PR-023: Path resolution is not supported for primitive type arrays.\",\n\n /**\n * methods: ArrayProperty.resolvePath\n * When using an array index as part of your path, it needs to have a numeric value.\n */\n INVALID_NON_NUMERIC_SEGMENT_IN_PATH: \"PR-024: ResolvePath error: Accessed an array via an non numeric index: \",\n\n /**\n * methods: ArrayProperty.getRelativePath, ArrayProperty.getAbsolutePath\n * INTERNAL ERROR\n * If you encounter this error, please contact the development team.\n * Part of the path you are trying to find points to a non-existing array item.\n */\n GET_PATH_SEGMENT_CALLED_FOR_NON_ENTRY: \"PR-025: Internal error: _getPathSegmentForChildNode has been called \" +\n \"for an entry that is not an entry of the collection. \",\n\n /**\n * methods:\n * The changeSet passed to .deserialize was not a valid non-normalized changeset.\n */\n NO_NORMALIZED_CHANGESET: \"PR-026: deserialize was called with a non-normalized ChangeSet.\",\n\n /**\n * INTERNAL ERROR - If you encounter this error, please contact the development team.\n * One of your changesets contained a NamedProperty without a GUID.\n * This should not happen and should have been validated already.\n */\n MISSING_GUID_IN_NORMALIZED_CHANGESET: \"PR-027: Missing GUID in a normalized ChangeSet with named properties\",\n\n /**\n * methods: EnumProperty.getEnumString, EnumProperty.setValue, EnumProperty.setEnumByString,\n * EnumProperty.getEnumString, EnumArrayProperty.getEnumStrings\n * This Enum Property does not have any entry with that value.\n * EnumProperty.getEnumByString -\\> the EnumProperty you used to pass this function does not have an entry.\n * EnumProperty.setValue -\\> no entry exists for in_value\n * EnumProperty.setEnumByString -\\> no entry exists for in_stringId\n * EnumArrayProperty.getEnumString -\\> the value found at in_position does not correspond to an entry.\n * EnumArrayProperty.getEnumStrings -\\> one of the values found at one of the positions sought does\n * not correspond to an entry.\n */\n UNKNOWN_ENUM: \"PR-028: enum value unknown: \",\n\n /**\n * methods: Property.applyChangeSet\n * Changeset contains an operation that is unknown.\n * Valid operations are insert, modify and remove.\n */\n UNKNOWN_OPERATION: \"PR-029: Unknown ChangeSet operation: \",\n\n /**\n * methods: Workspace.remove, NodeProperty.remove\n * The property you passed to workspace.remove or nodeProperty.remove does not exist.\n * Check that you passed the correct property, and that it has not yet been removed.\n */\n REMOVING_NON_EXISTING_KEY: \"PR-033: Trying to remove something that does not exist: \",\n\n /**\n * methods: Workspace.get, Property.get\n * Workspace.get and Property.get take in an id (string or number) or an array of ids.\n * @example\n * ```typescript\n *.get(‘position’).get(‘x’) or .get([‘property’, ‘x’])\n * ```\n */\n STRING_OR_ARRAY_STRINGS: \"PR-034: in_id must be a string, a number or an array of these. This is not valid: \",\n\n /**\n * methods: Property.serialize\n * Property.serialize only takes in one parameter: an options object. That parameter is optional.\n */\n SERIALIZE_TAKES_OBJECT: \"PR-035: Argument of serialize() should be an object.\",\n\n /**\n * ArrayProperty.insert, ArrayProperty.insertRange\n * The in_position (for .insert) or in_offset (for .insertRange) should not be smaller than 0\n * or larger than the length of the array.\n */\n START_OFFSET_INVALID: \"PR-036: ArrayProperty: insert range - Start offset is invalid: \",\n\n // PR-037 removed\n\n /**\n * ArrayProperty.remove, ArrayProperty.removeRange, ArrayProperty.pop\n * INTERNAL ERROR - If you encounter this error, please contact the development team.\n * The item (or one of the items) you are trying to remove from the array has a parent that is not the array.\n * This should not happen because you should not have been able to insert the item in the array in the first place.\n */\n CANNOT_REMOVE_WITH_DIFFERENT_PARENT: \"PR-038: Internal error: Trying to remove from an array a property that \" +\n \"has not the array as parent.\",\n\n /**\n * methods ArrayProperty.set, ArrayProperty.setRange\n * Your first parameter: in_position (for .set) and in_offset (for .setRange) cannot have a negative value.\n */\n START_OFFSET_NEGATIVE: \"PR-039: ArrayProperty: Modify range - Start offset cannot be negative: \",\n\n /**\n * methods: ArrayProperty.removeRange, ArrayProperty.setRange, ArrayProperty.insertRange,\n * ArrayProperty.insert, EnumArrayProperty.getEnumStrings\n * The parameter needs to be a number.\n * For .removeRange: in_offset and in_deleteCount\n * For .setRange: in_offset\n * For .insertRange: in_offset\n * For .getEnumStrings: in_offset, in_length\n * For StringProperty.insert: in_position\n */\n NOT_NUMBER: \"PR-049: This parameter must be a number: parameter: \",\n\n /**\n * methods: Property.traverseUp, Property.traverseDown\n * Property.traverseUp and Property.traverseDown take one parameter: a callback function\n */\n CALLBACK_NOT_FCT: \"PR-050: traverseUp / traverseDown parameter: in_callback must \" +\n \"be a function.\",\n\n /**\n * methods: ArrayProperty.insertRange\n * Array.insertRange takes two parameters. The second one (in_array) must be an array.\n * To pass in only one item, either use .insert(index, item)\n * or put that item into an array: .insertRange(index, [item])\n */\n IN_ARRAY_NOT_ARRAY: \"PR-051: Parameter error: in_array must be an array for method: \",\n\n /**\n * methods: EnumProperty.setEnumByString\n * EnumProperty.setEnumByString takes one parameter: a string id. It must be a string.\n */\n STRING_ID_MUST_BE_STRING: \"PR-052: EnumProperty.setEnumByString parameter: in_stringId must \" +\n \"be a string. This is not valid: \",\n\n /**\n * methods: Integer64Property.setValueHigh\n * Integer64Property.setValueHigh takes one parameter: a number.\n */\n IN_HIGH_MUST_BE_NUMBER: \"PR-053: Integer64Property.setValueHigh parameter: in_high must \" +\n \"be a number. This is not valid: \",\n\n /**\n * methods: Integer64Property.setValueLow\n * Integer64Property.setValueLow takes one parameter: a number.\n */\n IN_LOW_MUST_BE_NUMBER: \"PR-054: Integer64Property.setValueLow parameter: in_low must \" +\n \"be a number. This is not valid: \",\n\n /**\n * methods: IntegerProperty.toString\n * Integer64Property.toString takes one optional parameter: a number (in_radix).\n * If no value is passed, will default to 10.\n */\n IN_RADIX_MUST_BE_NUMBER: \"PR-055: Integer64Property.toString parameter: in_radix must be a number. This is not valid: \",\n\n /**\n * methods: IntegerProperty.fromString\n * Integer64Property.fromString takes two parameters. The first parameter (in_string) must be a string.\n * (the second parameter is in_radix, a number. It is optional: defaults to 10).\n */\n IN_STRING_MUST_BE_STRING: \"PR-056: Integer64Property.fromString parameter: in_string must \" +\n \"be a string. This is not valid: \",\n\n /**\n * methods: Integer64Property.fromString\n * Integer64Property.fromString takes two parameters. The second parameter is optional but if passed,\n * it must be a number between 2 and 36. If not passed, it defaults to 10. (the first parameter is\n * in_string and must be a string).\n */\n IN_RADIX_BETWEEN_2_36: \"PR-057: Integer64Property.fromString parameter: in_radix must be a \" +\n \"number between 2 and 36. This is not valid: \",\n\n /**\n * methods MapProperty.insert, ReferenceMapProperty.set\n * MapProperty.insert and ReferenceMapProperty.set both take two parameters.\n * The first parameter (in_key) must be a string.\n */\n KEY_NOT_STRING: \"PR-058: MapProperty.insert / ReferenceMapProperty.set parameter: \" +\n \"in_key must be a string. This is not valid: \",\n\n /**\n * methods: NodeProperty.insert, Workspace.insert\n * he second parameter (in_property) must be a valid property (it must be an instance of BaseProperty).\n */\n NOT_A_PROPERTY: \"PR-059: NodeProperty.insert parameter in_property is not a property. \" +\n \"The property you passed is not a valid property.\",\n\n /**\n * methods: ReferenceProperty.set / setValue, ReferenceMapProperty.insert / set / setValue / setValues,\n * ReferenceArrayProperty.enqueue / push / unshift / insert / insertRange / set / setRange / setValue / setValues\n * The provided value (or values) must be a valid property (an instance of BaseProperty), be undefined or a string (a path).\n */\n PROPERTY_OR_UNDEFINED:\n \"PR-060: Parameter for setting a Reference should be a path to a property, a property or undefined. This is not valid: \",\n\n /**\n * ArrayProperty.insertRange, ArrayProperty.insert, ArrayProperty.push\n * INTERNAL ERROR - If you encounter this error, please contact the development team.\n * The item (or one of the items) you are trying to insert in this array has a parent that is not the array.\n */\n NO_INSERT_WITH_PARENT: \"PR-088: Internal error: Trying to insert a property into an array or \" +\n \"string that already has a parent.\",\n\n /**\n * methods: ArrayProperty.get\n * ArrayProperty.get takes in one parameter: in_position, which can a single position or an array.\n * If it is a single position, it is the numerical position of the item in the array.\n * It must be a number or a string that parses into a number (e.g. '2').\n * If you pass in an array, the first item of the array must be a number or a string that parses into a number.\n * (other items in the array are child paths within the array item at this position).\n * This error happens only when in_position is an array.\n */\n FIRST_ITEM_MUST_BE_NUMBER: \"PR-092: The first item in the in_position array must be an array \" +\n \"position (a number). This is not valid: \",\n\n /**\n * methods: ArrayProperty.get\n * ArrayProperty.get takes in one parameter: in_position, which can a single position or an array.\n * If it is a single position, it is the numerical position of the item in the array.\n * It must be a number or a string that parses into a number (e.g. '2').\n * If you pass in an array, the first item of the array must be a number or a string that parses into a number\n * (other items in the array are child paths within the array item at this position).\n * This error happens only when in_position is a single position.\n */\n IN_POSITION_MUST_BE_NUMBER: \"PR-093: in_position must be a number. This is not valid: \",\n\n /**\n * methods: Property.getValue\n * Property.getValue takes one parameter: in_id.\n * It can either be a string or an array of strings. It cannot be an empty array.\n */\n CANNOT_BE_EMPTY_ARRAY: \"PR-095: Property.getValue parameter: in_id cannot be an empty array.\",\n\n /**\n * methods: EnumArrayProperty.set\n * EnumArrayProperty.set takes two parameters: in_index and in_value.\n * In_value should be a number. setValue cannot be used to set enum by string.\n * Use .setEnumByString instead.\n */\n VALUE_SHOULD_BE_NUMBER: \"PR-096: EnumArrayProperty.set parameter: in_value should be \" +\n \"a number. To set the value of an enum string, use .setEnumByString \" +\n \"instead.\",\n\n /**\n * methods: EnumArrayProperty.setEnumByString\n * EnumArrayProperty.setEnumByString cannot be use to set enum by number. Use .set instead.\n */\n VALUE_SHOULD_BE_STRING: \"PR-098: EnumArrayProperty.setEnumByString parameter: in_value should be \" +\n \"a string. To set a number, use .set instead.\",\n\n /**\n * methods: ArrayProperty.get\n * In_position or in_offset is either lower than 0 or higher than the length of the array.\n * Make sure that the property you are trying to get from the array exists and that the position is correct.\n */\n GET_OUT_OF_RANGE: \"PR-106: Trying to access out of bounds at index: \",\n\n /**\n * methods: ArrayProperty.setRange, ArrayProperty.set\n * setRange: Either in_offset is lower than zero or in_offset + length of in_array is higher than\n * the length of the array. If you need to add items that were not there before, add those using\n * .push, .insert or .insertRange.\n */\n SET_OUT_OF_BOUNDS: \"PR-107: Trying to set out of bounds. \",\n\n /**\n * methods: ArrayProperty.removeRange, ArrayProperty.remove\n * RemoveRange: Either in_offset is smaller than zero or in_offset + in_deleteCount is higher than\n * the length of the array. Make sure that the properties you are trying to remove exist in that\n * array and that you entered the positions correctly.\n * Remove: in_offset is either smaller than zero or larger than the length of the array.\n */\n REMOVE_OUT_OF_BOUNDS: \"PR-110: Trying to remove out of bounds. \",\n\n /**\n * methods: PropertyFactory.create\n * INTERNAL ERROR - If you encounter this error, please contact the development team.\n * Warning: Something went wrong when creating your property: it did not successfully create\n * the property and then tried to set its value.\n */\n NON_EXISTING_PROPERTY_REPOSITORY_REFERENCE: \"PR-111: Internal error: PropertyFactory.create failed to create \" +\n \"this property.\",\n\n /**\n * methods: Property.setValues\n * One of the path you used in .setValues leads to a property.\n * When passing an object to setValues, make sure that all paths lead to a primitive value.\n */\n SET_VALUES_PATH_PROPERTY: \"PR-115: trying to set value to a path leading to a property: \",\n\n /**\n * methods: Property.setValues\n * One of the path in the object you passed to .setValues does not match the structure of this property.\n */\n SET_VALUES_PATH_INVALID: \"PR-116: trying to set value to an invalid path: \",\n\n /**\n * methods: Property.setValues\n * .setValues takes one parameter: an object containing paths to the values to be changed.\n * It should be an object (or in the case of ArrayProperty, an array)\n */\n SET_VALUES_PARAM_NOT_OBJECT: \"PR-117: setValues parameter: in_properties must be an object.\",\n\n /**\n * methods: PropertyFactory.create\n * The array you tried to create had a typeid that was no recognized.\n * It was not a custom type array or one of the following: ‘String’, ‘Int64’, ‘Uint64’ or ‘Bool’.\n */\n UNKNOWN_ARRAY_TYPEID: \"PR-118: Unknown typeid in array: \",\n\n /**\n * methods: MapProperty.insert, MapProperty.set\n * .insert and .set take two parameters. The first one is in_id (or in_key), which is the id under\n * which the property is added. It can only be a string or a number. Only in the case of named\n * property can it be omitted.\n */\n ID_STRING_OR_NUMBER: \"PR-119: id should be a string or a number. This is not valid: \",\n\n /**\n * methods: ValueProperty.deserialize\n * .deserialize takes on parameter: a serialized object. It cannot be undefined.\n */\n DESERIALIZE_EMPTY_CHANGESET: \"PR-121: ValueProperty.deserialize() called on an empty changeset\",\n\n /**\n * methods: IntMapProperty.insert, UintMapProperty.insert\n * You tried to insert into a (u)Int64MapProperty or (u)Int64ArrayProperty properties that\n * were not Int64 or UInt64 properties or properties that can be casted to the correct type.\n */\n INT_64_NON_INT64_TYPE: \"PR-122: Tried to use (u)Int64MapProperty or (u)Int64ArrayProperty with an invalid type.\",\n\n /**\n * methods: Integer64.toString, Integer64.fromString\n */\n BASE_OUT_OF_RANGE: \"PR-123: Base is out of range. Base should be in range [2,36]. This is not valid: \",\n\n /**\n * methods: Integer64.fromString\n * If your property is an instance of Uint64, you cannot set it to a negative number.\n * Uint64 does not support negative numbers. Use Int64 if you need to support negative numbers.\n */\n CANNOT_UPDATE_TO_NEGATIVE: \"PR-124: Cannot update value to negative: \",\n\n /**\n * methods: Integer64.fromString\n * The string you passed as a first parameter to .fromString contains non-numerical characters.\n */\n CANNOT_PARSE_INVALID_CHARACTERS: \"PR-125: Cannot parse. String contains invalid characters: \",\n\n /**\n * methods: Property constructor\n * INTERNAL ERROR - If you encounter this error, please contact the development team.\n * Something went wrong while the property constructor was creating a property.\n * The parameters it received were not objects.\n */\n PROP_CONSTRUCTOR_EXPECTS_OBJECTS: \"PR-126: Internal error: Object expected as parameters to \" +\n \"BaseProperty constructor\",\n\n /**\n * methods: Property.applyChangeSet\n * One of the ‘modify’ field in your changeset points to an index in the array that does not exist.\n * Check that the changeset you passed to applyChangeSet is valid. If you did not enter the changeSet yourself,\n * this is an internal error and you should contact the development team.\n */\n INDEX_INVALID: \"PR-131: modified property - index invalid: \",\n\n /**\n * methods: Property.isAncestorOf, Property.isDescendantOf\n * Property.isAncestorOf and .isDescendantOf take one parameter: a property. It cannot be undefined.\n */\n MISSING_IN_OTHERPROP: \"PR-132: isAncestorOf parameter: in_otherProperty must be specified.\",\n\n /**\n * methods: StringProperty.insert, StringProperty.push\n * StringProperty.insert takes two parameters: in_position and in_value.\n * The second one (in_value) must be a string.\n * StringProperty.push takes only one parameter (in_value), which must be a string.\n */\n IN_VALUE_MUST_BE_STRING: \"PR-133: parameter error: in_value must be a string. This is not valid: \",\n\n /**\n * methods: ValueProperty.getValues\n * You cannot use the method .getValues on value properties. getValues is used to get multiple nested\n * values from a custom property. To get the value of a primitive property, use .getValue instead.\n */\n NO_VALUE_PROPERTY_GETVALUES: \"PR-134: Cannot use .getValues on value properties or strings. \" +\n \"Use .getValue instead.\",\n\n /**\n * methods: Property.setValues, ArrayProperty.insertRange, ArrayProperty.removeRange,\n * ArrayProperty.setRange, EnumArrayProperty.setEnumByString, ArrayProperty.insert, ArrayProperty.set,\n * ArrayProperty.clear\n * If a property is created as a constant, it cannot be changed.\n */\n MODIFICATION_OF_CONSTANT_PROPERTY: \"PR-140: Modifications of constants are not allowed.\",\n\n /**\n * methods: ArrayProperty.insert, ArrayProperty.insertRange\n * In a non-primitive array, you can only insert instances of properties. You should use PropertyFactory.create\n * to create an instance of your property before inserting it into the array.\n */\n INSERT_NOT_A_PROP: \"PR-141: In an array of properties, you can only insert instances of \" +\n \"properties. This value is not valid: \",\n\n /**\n * If a property is a reference, it cannot be changed.\n */\n MODIFICATION_OF_REFERENCED_PROPERTY: \"PR-142: Modifications of referenced properties are not allowed.\",\n\n /**\n * methods: Property.getValue\n * Property.getValue(in_ids) is a shortcut for Property.get(in_ids).getValue().\n * Property.get(in_ids) must resolve to a ValueProperty.\n */\n GET_VALUE_NOT_A_VALUE: \"PR-160: in_ids does not resolve to a ValueProperty: \",\n\n /**\n * methods: MapProperty.insert\n * If your map is not a ValueMap, in_property must be an instance of BaseProperty.\n * Use PropertyFactory.create to create an instance of a property.\n */\n NONVALUE_MAP_INSERT_PROP: \"PR-161: In a map of properties, you can only insert properties.\",\n\n /**\n * methods: PropertyFactory.create\n * INTERNAL ERROR - If you encounter this error, please contact the development team.\n * This error is thrown while creating a Property, when the actual context\n * ('array', 'map', 'set' or 'single') is different than what was expected.\n */\n CONTEXT_NOT_AS_EXPECTED: \"PR-163: Property context is different than expected: \",\n\n /**\n * methods: Property.deserialize\n * INTERNAL ERROR - If you encounter this error, please contact the development team.\n * This error is thrown by .deserialize but is caused by an invalid changeSet. A serialized ChangeSet for an\n * Integer64Property must be an array of 2 integers: the low and the high values. Since users cannot yet supply\n * their changesets directly, this should not happen.\n */\n INVALID_INT64_CHANGESET: \"PR-164: Cannot deserialize invalid change set for Int64 property\",\n\n /**\n * methods: StringProperty.set\n * StringProperty.set takes two parameters: in_index (a number, the index of the string that you wish to change)\n * and in_string (the string you want to insert at that index). To set the value of the whole string, use\n * setValue.\n */\n STRING_SET_NEEDS_INDEX: \"PR-165: String.set first parameter should be an index (number). This is not valid: \",\n\n /**\n * methods: Property.get\n * The token DEREFERENCE_TOKEN should only be used with .get when the in_ids passed to .get is an array.\n * the DEREFERENCE_TOKEN should follow a path to a reference.\n * @example <caption>valid: </caption>\n * myProp.get(['myReference', TOKENS.DEREFERENCE_TOKEN])\n * @example <caption>not valid: </caption>\n * myProp.get('myReference').get(TOKENS.DEREFERENCE_TOKEN)\n */\n NO_GET_DEREFERENCE_ONLY: \"PR-166: Cannot use a dereference token only with .get\",\n\n /**\n * methods: StringProperty.setValues\n * You cannot call .setValues on a StringProperty. To set the value of the string, use .setValue\n * instead.\n */\n NO_VALUE_PROPERTY_SETVALUES: \"PR-167: setValues is not a valid method for String Properties\",\n\n /**\n * methods: Property.getRelativePath\n * In cases where you have more than one repository reference property pointing to the same repository, finding a path\n * between a properties in different repositories can lead to more than one valid results. In that case, .getRelativePath\n * will return the first valid path it finds. If you want to control how which path is used, you should construct the\n * string path by concatenating the absolute path for the prop in the nested repository and the relative path between your\n * repository reference and the target property.\n */\n MORE_THAN_ONE_PATH: \"PR-169: More than one paths exist between \",\n\n /**\n * methods: Property.getRelativePath\n * getRelativePath takes one parameter: the property from which the path will start. This must be an instance of\n * BaseProperty. The method will return the path from that property to the property on which it was called ('this')\n */\n IN_FROMPROPERTY_MUST_BE_PROPERTY: \"PR-170: getRelativePath parameter error: in_fromProperty must be a property\",\n\n /**\n * methods: Property.getRelativePath\n * getRelativePath does not return a path between a property that is inside a child repository to one that is in\n * a parent repository. A path like this could not be used with .resolvePath or be used in a reference property\n * because neither method can go from the root of a referenced repository to a reference property.\n */\n NO_PATH_FROM_CHILD_REPO: \"PR-171: cannot get a path from a child repository to a parent repository\",\n\n /**\n * methods: getReferencedWorkspace\n * This repository reference is in read-only mode. Call enableWrite() to access the workspace.\n */\n REPOSITORY_REFERENCE_WORKSPACE_READ_ONLY:\n \"PR-173: This repository reference is in read-only mode. Call enableWrite() to access the workspace.\",\n\n /**\n * methods: Property.enableWrite\n * Repository reference is already in writable mode.\n */\n REPOSITORY_REFERENCE_WORKSPACE_EXIST_ALREADY: \"PR-174: Repository reference is already in writable mode\",\n\n /**\n * methods: Property.enableWrite\n * Can't enable write on an empty repository reference without at least a repositoryGUID and branchGUID.\n */\n WRITABLE_REPOSITORY_REFERENCE_NEED_GUIDS:\n \"PR-176: Can't enable write on an empty repository reference without at least a repositoryGUID and branchGUID\",\n\n /**\n * methods: Property.enableWrite\n * Repository reference failed to automatically commit the new commitGUID.\n */\n WRITABLE_REPOSITORY_AUTO_COMMIT_FAIL: \"PR-177: Repository reference failed to automatically commit the new commitGUID\",\n\n /**\n * methods: Property._setFollowBranch\n * An unexpected error occurred while trying to switch a repository reference followBranch property\n */\n WRITABLE_REPOSITORY_SET_FOLLOW_BRANCH_FAILED:\n \"PR-178: An unexpected error occurred while trying to switch a repository reference followBranch property to \",\n\n /**\n * methods: MapProperty.insert, MapProperty.set\n * .insert and .set take two parameters. The first one is in_id (or in_key), which is the id under\n * which the property is added. It can not be an empty string.\n */\n ID_SHOULD_NOT_BE_EMPTY_STRING:\n \"PR-179: id should not be an empty string.\",\n\n /**\n * methods: StringProperty.set\n * StringProperty.set: in_character must have a length of 1.\n */\n STRING_SET_ONE_CHAR: \"PR-180: String.set, only one character can be set (in_character must have a length of 1).\",\n\n /**\n * methods: EnumArrayProperty.set\n * EnumArrayProperty.set only accepts a string or number as input for in_value\n */\n VALUE_STRING_OR_NUMBER:\n \"PR-181: in_value should be a string or a number. This is not valid: \",\n\n /**\n * methods: ArrayProperty.set\n * The in_value input of ArrayProperty.set should not be an array.\n */\n ARRAY_SET_ONE_ELEMENT:\n \"PR-182: in_value should be a single element. This is not valid: \",\n\n CANT_DIRTY_MISSING_PROPERTY: \"PR-183: Can't dirty missing property: \",\n\n /**\n * methods: MapProperty.insert, MapProperty.set, SetProperty.insert, NodeProperty.insert\n * The property you are trying to insert in your map property, set property or node property is a root.\n */\n INSERTED_ROOT_ENTRY: \"PR-184: Trying to insert a root property into a collection.\",\n\n /**\n * methods: MapProperty.insert, MapProperty.set, SetProperty.insert, NodeProperty.insert\n * The property you are trying to insert in your map property, set property or node property is already\n * a parent of the map, set, or node property. You cannot insert this property there or you would create\n * a cycle in your data tree.\n */\n INSERTED_IN_OWN_CHILDREN:\n \"PR-185: Trying to insert a property in itself or in one of its children.\",\n\n /**\n * methods: MapProperty.insert, MapProperty.set, SetProperty.insert, NodeProperty.insert\n * The property you are trying to insert (or at least one if its children) in your map property, set\n * property or node property is not covered by the paths of the partial checkout.\n * You cannot insert this property because you would not receive updates for this path after the\n * insertion and you could corrupt your data by doing subsequent modifications.\n */\n INSERTED_OUTSIDE_PATHS:\n \"PR-186: Trying to insert a property outside the paths covered by the partial checkout.\",\n\n SHARED_BEFORE_INSERTED: \"PR-187: Property must be inserted in the workspace before sharing.\",\n\n CUSTOM_ID_NOT_ALLOWED: \"PR-188: The following property does not support custom id: \",\n};\n\nconst PropertyFactoryError = {\n\n /**\n * methods: PropertyFactory.create\n * Each property created with PropertyFactory.create should have a unique id. You should make sure your\n * code generates a unique id for each property created, or make your property an instanced of NamedProperties\n * (which are identified by a unique Urn)\n */\n OVERWRITING_ID: \"PF-001: Id already exists: \",\n\n /**\n * methods: PropertyFactory.register\n * Warning: The template passed into the register method does not match the expected structure for this type.\n */\n TEMPLATE_MISMATCH: \"PF-004: Template structures do not match for typeid: \",\n\n /**\n * methods: PropertyFactory.register\n * The typeid assigned to your property template should include a version.\n * E.g. 1.0.0 - an example of a valid typeid: “my.example:point2d-1.0.0”\n */\n UNVERSIONED_TEMPLATE: \"PF-005: Templates must be versioned.\",\n\n /**\n * INTERNAL ERROR - If you encounter this error, please contact the development team.\n * Error occurs when a template has been inserted into the branch without a SEMVER version.\n * This can occur when registering templates through the commit REST interface. At this point\n * the data is corrupted and should be reported to the development team\n */\n UNVERSIONED_REMOTE_TEMPLATE: \"PF-006: Internal error: Remote template is not versioned.\",\n\n /**\n * methods: PropertyFactory.create\n * RepositoryReferences are not yet fully implemented. They will be soon.\n */\n REPOSITORY_REF_NOT_FULLY_IMPLEMENTED: \"PF-007: Repository references are not yet fully implemented and may not \" +\n \"yet be used\",\n\n /**\n * methods: PropertyFactory.create\n * When using ‘inherits’ in your property template, it must be a string or an array.\n * @example\n * ```json\n * {\n * typeid:'my.example:point2d-1.0.0',\n * inherits: ‘ another property’\n * }\n * ```\n * or :\n * ```json\n * {\n * typeid:'my.example:point2d-1.0.0',\n * inherits: [‘another property’, ‘property2’]\n * }\n * ```\n */\n INHERITS_ARRAY_OR_STRING: \"PF-008: Internal error: Inherits must be an Array or a String. This is not valid: \",\n\n /**\n * methods: PropertyFactory.create\n * Context can be ‘array, ‘set’, ‘map’, ‘enum’ or ‘single’. If not specified, will default to ‘single’.\n */\n UNKNOWN_CONTEXT_SPECIFIED: \"PF-009: Unknown context specified: \",\n\n /**\n * methods: PropertyFactory.create\n * The property you entered into PropertyFactory.create has a typeid that is not registered.\n * Make sure you register the template before creating an instance of that property. This could\n * also be caused by a failure in the registration process.\n */\n UNKNOWN_TYPEID_SPECIFIED: \"PF-010: Unknown typeid specified: \",\n\n /**\n * methods: PropertyFactory.getAllParentsForTemplate, PropertyFactory.inheritsFrom\n * Cannot find a template for this typeid. Make sure you registered the template and that the typeid\n * is entered correctly. This can be an error with the template you are trying to insert or one of the\n * templates it inherits from.\n */\n NON_EXISTING_TYPEID: \"PF-011: Missing template for the property you entered or one of the templates it inherits from: \",\n\n /**\n * methods: PropertyFactory.register\n * The property you passed in to .register is a primitive property. These do not need to be registered with a\n * typeid. It can be created without being registered. E.g. PropertyFactory.create(‘String’)\n */\n CANNOT_REGISTER_PRIMITIVE: \"PF-012: Cannot register a primitive property with the public `register` \" +\n \"function typeid = \",\n\n /**\n * methods: PropertyFactory.convertToTemplates, PropertyFactory.registerFrom\n * Your template’s id field must be a string.\n */\n DEFINITION_ID_MUST_BE_STRING: 'PF-024: Value \"id\" of a definition should be a string. \"',\n\n /**\n * methods: PropertyFactory.convertToTemplates, PropertyFactory.registerFrom\n * The \"$ref\" keyword is used to reference a schema, and provides the ability to validate recursive structures\n * through self-reference.\n * An object schema with a \"$ref\" property MUST be interpreted as a \"$ref\" reference. The value of the \"$ref\"\n * property MUST be a URI Reference (a string)\n */\n REF_SHOULD_BE_STRING: 'PF-025: Value of \"$ref\" should be a string. \"',\n\n /**\n * methods: PropertyFactory.convertToTemplates, PropertyFactory.registerFrom\n * The identifier passed to $ref does not point to any schema.\n */\n COULD_NOT_FIND_REFERENCE: 'PF-026: Couldn\\'t find reference \"',\n\n /**\n * methods: PropertyFactory.convertToTemplates, PropertyFactory.registerFrom\n * The identifier passed to $ref does not point to an object.\n */\n REFERENCED_DEFINITION_SHOULD_BE_OBJECT: 'PF-027: A referenced definition should be an object. \"',\n\n /**\n * methods: PropertyFactory.convertToTemplates, PropertyFactory.registerFrom\n * In a JSON schema, the properties field must be an object.\n */\n PROPERTIES_SHOULD_BE_OBJECT: 'PF-028: The \"properties\" value should be an object. \"',\n\n /**\n * methods: PropertyFactory.convertToTemplates, PropertyFactory.registerFrom\n * oneOf’s value MUST be a non-empty array. Each item of the array MUST be a valid JSON Schema.\n * An instance validates successfully against this keyword if it validates successfully against exactly one\n * schema defined by this keyword's value.\n */\n ONE_OF_ONLY_FOR_ARRAYS_OF_ONE_OBJECT: 'PF-029: The \"oneOf\" object is supported only for arrays of one object.',\n\n /**\n * methods: PropertyFactory.convertToTemplates, PropertyFactory.registerFrom\n * oneOf’s value MUST be a non-empty array. Each item of the array MUST be a valid JSON Schema.\n */\n ONE_OF_SHOULD_CONTAIN_OBJECTS: 'PF-030: The \"oneOf\" array should contain objects. \"',\n\n /**\n * methods: PropertyFactory.convertToTemplates, PropertyFactory.registerFrom\n * This keyword's value MUST be a non-empty array. Each item of the array MUST be a valid JSON Schema.\n */\n ALL_OF_SHOULD_BE_ARRAY: 'PF-031: The \"allOf\" object should be an array.',\n\n /**\n * methods: PropertyFactory.convertToTemplates, PropertyFactory.registerFrom\n * This keyword's value MUST be a non-empty array. Each item of the array MUST be a valid JSON Schema.\n */\n ALL_OF_SHOULD_CONTAIN_OBJECTS: 'PF-032: The \"allOf\" array should contain objects. Element ',\n\n /**\n * methods: PropertyFactory.convertToTemplates, PropertyFactory.registerFrom\n * Your schema definition contains infinite recursion. For example, if your definition ‘a’ refers to definition\n * ‘b’ as being one of its children and ‘b’ refers to ‘a’ as one of its children.\n */\n INFINITE_RECURSION: \"PF-033: Infinite recursion detected in path: \",\n\n /**\n * methods: PropertyFactory.convertToTemplates, PropertyFactory.registerFrom\n * One part of your template object might contain something that is not of type ‘object’, ‘string’,\n * ‘number’ or ‘integer’.\n */\n UNSUPPORTED_VALUE_TYPE: 'PF-034: Unsupported value of field \"type\": ',\n\n REQUIRED_PROPERTY_NAME_NOT_STRING: 'PF-035: Required property name should be a string, \"',\n\n /**\n * This property is required but it is not listed in the properties field.\n */\n PROPERTY_NAME_DOES_NOT_MATCH: \"PF-036: Required property name does not match any property in object: \",\n\n /**\n * The ‘inherits’ field in your template object should be a string or an array of strings.\n */\n INHERITS_SHOULD_BE_STRING: 'PF-037: The \"inherits\" object should be a string or an array of strings. This is not valid: ',\n\n /**\n * The ‘context’ field in your template should be a string.\n */\n CONTEXT_SHOULD_BE_STRING: 'PF-038: The \"context\" value should be a string. This is not valid: ',\n\n /**\n * methods: PropertyFactory.convertToTemplates, PropertyFactory.registerFrom\n * Warning: If you have a ‘length’ field in your template and the context is not set to ‘array’,\n * ‘length’ will be ignored.\n */\n IGNORING_LENGTH_NOT_ARRAY: 'PF-039: ignoring \"length\" value since \"context\" is not \"array\".',\n\n /**\n * methods: PropertyFactory.convertToTemplates, PropertyFactory.registerFrom\n * In your template, the field ‘length’ should be a number.\n */\n LENGTH_SHOULD_BE_NUMBER: 'PF-040: The \"length\" value should be a number. This is not valid: ',\n\n /**\n * methods: PropertyFactory.convertToTemplates, PropertyFactory.registerFrom\n * Your template contains more than one definition field for this field.\n */\n DUPLICATE_DEFINITION: \"PF-041: Duplicate definition for \",\n\n /**\n * methods: PropertyFactory.convertToTemplates, PropertyFactory.registerFrom\n * The field ‘id’ is missing from your JSON schema.\n */\n FIELD_ID_IS_REQUIRED: 'PF-042: Field \"id\" is required.',\n\n /**\n * methods: PropertyFactory.convertToTemplates, PropertyFactory.registerFrom\n * You need a ‘typeid’ field in your template schema.\n * @example\n * ```json\n * {\n * ‘typeid’: 'autodesk.test:set.set-1.0.0',\n * ‘properties’: [\n * {‘typeid’: 'String',\n * ‘context’: 'set',\n * ‘id’: 'DummySet',\n * ‘inherits’:['NamedProperty']}\n * ]\n * }\n *```\n */\n FIELD_TYPEID_IS_REQUIRED: 'PF-043: Field \"typeid\" is required. It is the \"typeid\" of the resulting ' +\n \"PropertySets Template.\",\n\n /**\n * methods: PropertyFactory.register\n * The ‘length’ field in your template must be a number.\n */\n LENGTH_MUST_BE_NUMBER: \"PF-045: length must be a number. This is not valid: \",\n\n /**\n * methods: PropertyFactory.register\n * Each entry in your enum property array must have an id.\n * @example\n * ```json\n * {\n * \"typeid\": \"Adsk.Core:Units.Metric-1.0.0\",\n * \"inherits\": \"Enum\",\n * \"annotation\": { \"description\": \"The metric units\" },\n * \"properties\": [\n * { \"id\": \"m\" , \"value\": 1, \"annotation\": { \"description\": \"meter\" }},\n * { \"id\": \"cm\", \"value\": 2, \"annotation\": { \"description\": \"centimeter\" }},\n * { \"id\": \"mm\", \"value\": 3, \"annotation\": { \"description\": \"millimeter\" }}\n * ]\n * }\n * ```\n */\n ENUM_TYPEID_MISSING: \"PF-046: Enum: typeid missing\",\n\n /**\n * methods: PropertyTemplate constructor\n * Each entry in your enum property must have a value that is a number.\n * @example\n * ```json\n * {\n * \"typeid\": \"Adsk.Core:Units.Metric-1.0.0\",\n * \"inherits\": \"Enum\",\n * \"annotation\": { \"description\": \"The metric units\" },\n * \"properties\": [\n * { \"id\": \"m\" , \"value\": 1, \"annotation\": { \"description\": \"meter\" }},\n * { \"id\": \"cm\", \"value\": 2, \"annotation\": { \"description\": \"centimeter\" }},\n * { \"id\": \"mm\", \"value\": 3, \"annotation\": { \"description\": \"millimeter\" }}\n * ]\n * }\n * ```\n */\n ENUM_VALUE_NOT_NUMBER: \"PF-047: Enum: value must be a number. This is not valid: \",\n\n /**\n * methods: PropertyTemplate.getVersion\n * INTERNAL ERROR - If you encounter this error, please contact the development team.\n * Warning: you that the template on which you are calling the .getVersion method is not versioned.\n * The method will return undefined. This should not happen as we now validate that all templates are\n * versioned when registering them.\n */\n TEMPLATE_NOT_VERSIONED: \"PF-048: Internal error: Template is not versioned.\",\n\n /**\n * methods: PropertyFactory.register\n * Warning: Template already exists. The incoming template MUST match what is currently registered.\n * If they do not match, an error will be thrown letting you know that the templates are incompatible.\n * See error PF-004\n */\n REGISTERING_EXISTING_TYPEID: \"PF-049: Registering a typeid that already exists typeid = \",\n\n /**\n * methods: PropertyFactory.register\n * There were errors validating the template you are trying to register. See detailed errors attached.\n */\n FAILED_TO_REGISTER: \"PF-050: Failed to register typeid = \",\n\n /**\n * methods: PropertyFactory.convertToTemplates, PropertyFactory.registerFrom\n * So far, these methods can only convert from a JSON schema. The first parameter (in_fromType)\n * must be ‘JSONSchema’.\n */\n UNKNOWN_TYPE: \"PF-051: Unknown type: \",\n\n /**\n * methods: PropertyTemplate.serializeCanonical\n * INTERNAL ERROR - If you encounter this error, please contact the development team.\n * This error shouldn’t occur. The underlying private function that is called is a close cousin of the\n * deepCopy function which could have an arbitrary target specified. This doesn’t happen in the case of\n * the serializeCanonical.\n */\n INVALID_TARGET_PROPERTY_TEMPLATE: \"PF-053 Copying into incompatible target property template: \",\n\n /**\n * methods: PropertyFactory.loadTemplate\n * In order for the PropertyFactory to retrieve templates from remote store it has to have at least one store\n * interface to interact with. This is accomplished by making the PropertyFactory.addStore call.\n */\n MISSING_CASE_IN_TEMPLATE_SERIALIZATION: \"PF-054 Missing case in template canonical serialization: \",\n\n OVERRIDDING_INHERITED_TYPES: \"PF-057: Overriding of inherited typed properties is not allowed: \",\n\n /**\n * methods: PropertyFactory.register\n * PropertyFactory.register takes one parameter, which can be a string (typeid), a json object (a template) or an\n * array of these.\n */\n ATTEMPT_TO_REGISTER_WITH_BAD_ARGUMENT: \"PF-058: register only accepts strings, json structures or array of those\",\n\n /**\n * methods: PropertyFactory.resolve\n * No store has been added yet to the PropertyFactory. A template store has to be instantiated then added with\n * propertyFactory.addStore()\n */\n NO_STORE_HAS_BEEN_INITIALIZED_YET: \"PF-059: No store has been initialized yet to the PropertyFactory.\",\n\n /**\n * methods: PropertyFactory.resolve\n * resolve cannot be called until previous call to resolve has completed.\n */\n DEPENDENCIES_RESOLUTION_IN_PROGRESS: \"PF-060: Dependencies resolution already in progress\",\n\n /**\n * methods: PropertyFactory.create\n * Typed values must contain properties that inherit from the base type.\n */\n TYPED_VALUES_MUST_DERIVE_FROM_BASE_TYPE: \"PF-061: Typed values must be derived from base type: \",\n\n /**\n * methods: PropertyFactory.create\n * The field ‘value’ is missing from your JSON schema.\n */\n FIELD_VALUE_IS_REQUIRED: 'PF-062: Field \"value\" is required: ',\n\n /**\n * methods: PropertyFactory.register\n * Warning: The structure of the template passed into the register method does not match the structure of a remote template registered under the same typeid.\n */\n REMOTE_TEMPLATE_MISMATCH: \"PF-064: Template structures do not match an already registered remote template with the same typeid for typeid: \",\n\n /**\n * methods: PropertyFactory.initializeSchemaStore\n * Warning: The initializeSchemaStore method must be provided with an options object\n containing a getBearerToken function and the url to the ForgeSchemaService.\n */\n MISSING_FSS_INIT_OPTIONS: \"PF-065: The initializeSchemaStore method must be provided with an options object \" +\n \"containing a getBearerToken function and the url to the ForgeSchemaService.\",\n\n /**\n * methods: PropertyFactory.initializeSchemaStore\n * Warning: The initializeSchemaStore method url option must be passed a valid base url.\n */\n FSS_BASEURL_WRONG: \"PF-066: The initializeSchemaStore method url option must be passed a valid base url.\",\n\n /**\n * methods: PropertyFactory.create\n * Overridden properties must have same context as the base type.\n */\n OVERRIDEN_PROP_MUST_HAVE_SAME_CONTEXT_AS_BASE_TYPE: \"PF-067: Overridden properties must have same context as the base type: \",\n\n /**\n * methods: PropertyFactory.create\n * Primitive types does not support typedValues.\n */\n TYPED_VALUES_FOR_PRIMITIVES_NOT_SUPPORTED: \"PF-068: Primitive types does not support typedValues: \",\n\n /**\n * methods: PropertyFactory.inheritsFrom\n */\n TYPEID_IS_NOT_ENUM: \"PF-069: The provided type does not inherit from Enum: \",\n};\n\nconst RepositoryError = {\n\n /**\n * methods: NodeProperty.remove\n * The property you tried to remove does not exist (its id was not found) - check that the id is correct\n * and that the property has not already been removed.\n */\n REMOVING_NON_EXISTING_ID: \"RE-001: Removing non existing id: \",\n\n /**\n * methods: BranchNode.isEqual, CommitNode.isEqual\n * In_node parameter is required. In_node is the branch or commit you wish to compare to ‘this’ branch/commit\n * node to check for equality.\n */\n MISSING_IN_NODE_PARAM: \"RE-004: BranchNode.isEqual / CommitNode.isEqual missing \" +\n \"parameter: in_node\",\n\n /**\n * methods: BranchNode, CommitNode, Workspace.commit\n * The BranchNode or CommitNode constructor was called without in_params.guid or we tried to send a commit\n * without a guid.\n */\n MISSING_GUID_FIELD: \"RE-006: Missing guid field\",\n\n /**\n * INTERNAL ERROR - If you encounter this error, please contact the development team.\n */\n LOCAL_AND_REMOTE_BRANCH_NOT_EQUAL: \"RE-007: Remote branch urn must equal the local branch urn\",\n\n /**\n * INTERNAL ERROR - If you encounter this error, please contact the development team.\n */\n BRANCH_NOT_REMOTE_BRANCH: \"RE-008: Branch is not a remote branch \",\n\n /**\n * now rebasing to \\<commit guid\\>'\n * INTERNAL ERROR - If you encounter this error, please contact the development team.\n * A commit node already rebased has been rebased again.\n */\n COMMIT_ALREADY_REBASED: \"RE-009: Should not rebase commit more than once: \",\n\n /**\n * INTERNAL ERROR - If you encounter this error, please contact the development team.\n * A new commit has been received from the server but was not expected. See specific message for more details.\n */\n UNEXPECTED_COMMIT_FROM_SERVER: \"RE-010: Adding commit to remote branch \",\n\n /**\n * This error will occur if the repository associated to a branch hasn't been found.\n */\n REPOSITORY_NOT_FOUND: \"RE-011: Internal Error: The repository hasn't been found.\",\n\n /**\n * This error will occur if the branch within a repository hasn't been found.\n */\n BRANCH_NOT_FOUND: \"RE-012: The branch hasn't been found.\",\n};\n\nconst ServerError = {\n\n /**\n * INTERNAL ERROR - If you encounter this error, please contact the development team.\n */\n URL_MUST_BE_STRING: \"SE-001: Url must be a string.\",\n\n /**\n * INTERNAL ERROR - If you encounter this error, please contact the development team.\n */\n PORT_MUST_BE_NUMBER: \"SE-002: Port must be a number\",\n};\n\nconst ChangeSetError = {\n\n /**\n * Context can only be ‘single’, ‘array’, ‘map’, ‘set’ or ‘enum’. All other values are invalid.\n */\n UNKNOWN_CONTEXT: \"CS-001: Unknown context: \",\n\n /**\n * INTERNAL ERROR - If you encounter this error, please contact the development team.\n */\n ALREADY_EXISTING_ENTRY: \"CS-003: Internal error: Added an already existing entry: \",\n\n /**\n * INTERNAL ERROR - If you encounter this error, please contact the development team.\n * The ChangeSet did not include an oldValue member which is computed when making the ChangeSet reversible.\n */\n OLD_VALUE_NOT_FOUND: \"CS-004: Internal error: Old value not found while inverting a change set. The change set is probably not reversible.\",\n\n CONTEXT_VALIDATION_IN_PROGRESS: \"CONTEXT_VALIDATION_IN_PROGRESS\",\n\n NOT_A_VALID_CONTEXT: \"NOT_A_VALID_CONTEXT\",\n\n MISSING_PRE_POST_CALLBACK: \"Missing callback. Either pre- or postcallback must be provided.\",\n};\n\nconst UtilsError = {\n INVALID_PATH_IN_REFERENCE: \"UT-001: References may only contain absolute repository references \" +\n \"or empty strings\",\n\n /**\n * methods: Utils.traverseChangesetRecursively\n * Your changeset contains an operator other than MODIFY, INSERT or REMOVE. If you created the changeset youserlf,\n * check that you only use valid operators. Otherwise, this is an internal error. Please contact the development team.\n */\n UNKNOWN_OPERATOR: \"UT-004: ArrayChangeSetIterator: unknown operator \",\n\n /**\n * INTERNAL ERROR - If you encounter this error, please contact the development team.\n */\n NON_PRIMITIVE_ARRAY_NO_TYPEID: \"UT-005: Found a non primitive type array without typeids. \" +\n \"This should never happen.\",\n\n /**\n * Filtering paths within arrays are not supported.\n */\n FILTER_PATH_WITHIN_ARRAY: \"UT-006: Filtering paths within arrays are not supported\",\n\n /**\n * INTERNAL ERROR - If you encounter this error, please contact the development team.\n * See specific message for more details.\n */\n ASSERTION_FAILED: \"UT-007: INTERNAL ERROR. Failed assertion. \",\n\n /**\n * You used a deprecated function. It will likely be removed in the next major version.\n * See the custom information if provided.\n */\n DEPRECATED_FUNCTION: \"UT-008: Deprecated function %s.\",\n\n /**\n * You used a deprecated function parameter. It will likely be removed in the next major version.\n * See the custom information if provided.\n */\n DEPRECATED_PARAMETER: \"UT-009: Deprecated function parameter %s of %s.\",\n\n /**\n * You used an experimental feature. It will likely changed in future releases.\n * See the custom information if provided.\n */\n EXPERIMENTAL_FEATURE: \"UT-010: Feature %s is experimental and subject to future changes.\",\n};\n\nconst PssClientError = {\n /**\n * This error message will be displayed when a repository creation fails\n */\n FAILED_REPOSITORY_CREATION:\n \"PC-001: Server error: Failed to create a repository. \",\n\n /**\n * This error message will be displayed when the deletion of a repository fails\n */\n FAILED_REPOSITORY_DELETION:\n \"PC-002: Server error: Failed to delete a repository. Repository guid: \",\n\n /**\n * This error message will be displayed when the undelete operation of a repository fails\n */\n FAILED_REPOSITORY_UNDELETION:\n \"PC-003: Server error: Failed to undelete a repository. Repository guid: \",\n\n /**\n * This error message will be displayed when getting the expiry of a repository fails\n */\n FAILED_GET_EXPIRY_REQUEST:\n \"PC-004: Server error: Failed to get the expiry of a repository. Repository guid: \",\n\n /**\n * This error message will be displayed when setting the expiry of a repository fails\n */\n FAILED_SET_EXPIRY_REQUEST:\n \"PC-005: Server error: Failed to set the expiry of a repository. Repository guid: \",\n\n /**\n * This error message will be displayed when squashing commit history fails\n */\n FAILED_SQUASH_COMMIT_HISTORY: \"PC-006: Server error: Failed to squash the commit history. Branch guid: \",\n\n /**\n * This error message will be displayed when fetching a commit fails\n */\n FAILED_FETCH_COMMIT: \"PC-007: Server error: Failed to fetch a commit. Commit guid: \",\n\n /**\n * This error message will be displayed when containers creation fails\n */\n FAILED_CONTAINER_CREATION: \"PC-008: Server error: Failed to create containers. \",\n\n /**\n * This error message will be displayed when a branch creation fails\n */\n FAILED_BRANCH_CREATION: \"PC-009: Server error: Failed to create a branch. \",\n\n /**\n * This error message will be displayed when a commit fails\n */\n FAILED_TO_COMMIT: \"PC-011: Server error: Failed to commit. \",\n\n /**\n * This error message will be displayed when a share operation fails\n */\n FAILED_SHARE: \"PC-013: Server error: Failed to share or unshare resources. \",\n\n /**\n * This error message will be displayed when getting the branches of a repository fails\n */\n FAILED_GET_ENUMERATE_BRANCHES: \"PC-014: Server error: Failed to get the branches of a repository. Repository guid: \",\n\n /**\n * This error message will be displayed when a request to get an lca fails\n */\n FAILED_GET_LCA: \"PC-015: Server error: Failed to get the lca.\",\n\n /**\n * This error message will be displayed when a commit fails because of an internal error while committing\n */\n FAILED_TO_COMMIT_INTERNAL: \"PC-016: internal error: Failed to commit.\",\n\n /**\n * This error message will be displayed when getting a feature flag fails\n */\n FAILED_TO_GET_FEATURE: \"PC-017: Server error: Failed to get feature flag from PSS. \",\n\n /**\n * This error message will be displayed when getting squashed commit range fails\n */\n FAILED_TO_GET_SQUASHED_COMMIT_RANGE: \"PC-018: Server error: Failed to get squashed commit range. Branch guid: \",\n};\n\nconst PROPERTY_PATH_DELIMITER = \".\";\nconst MESSAGE_CONSTANTS = {\n ...ChangeSetError,\n ...PropertyError,\n ...PropertyFactoryError,\n ...RepositoryError,\n ...SchemaValidatorError,\n ...PssClientError,\n ...UtilsError,\n ...TypeidHelperError,\n ...ServerError,\n};\n\nexport const constants = {\n MSG: MESSAGE_CONSTANTS,\n PROPERTY_PATH_DELIMITER,\n};\n"]}
@@ -6,7 +6,7 @@
6
6
  * An operation error maintains additional information compared to a plain {@link #Error}:
7
7
  * - The operation name
8
8
  * - A status code
9
- * - Extensible flags. {@see ExtendedError.FLAGS}.
9
+ * - Extensible flags. See {@link ExtendedError.FLAGS}.
10
10
  */
11
11
  import _ from "lodash";
12
12
  import { FlaggedError } from "./flaggedError";
@@ -1 +1 @@
1
- {"version":3,"file":"operationError.js","sourceRoot":"","sources":["../../src/error_objects/operationError.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;GAKG;AACH,OAAO,CAAC,MAAM,QAAQ,CAAC;AACvB,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,MAAM,OAAO,cAAe,SAAQ,KAAK;IAKrC;;;;;;;SAOK;IACL,YACI,OAAgB,EACT,SAAkB,EAClB,UAAmB,EACnB,QAAgB,CAAC;QAExB,KAAK,CAAC,OAAO,CAAC,CAAC;QAJR,cAAS,GAAT,SAAS,CAAS;QAClB,eAAU,GAAV,UAAU,CAAS;QACnB,UAAK,GAAL,KAAK,CAAY;QAGxB,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,cAAc,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AAG,IAAI,CAAC,IAAI,CAAC;QAEpB,IAAI,mBAAmB,CAAC,MAAM,GAAG,CAAC,EAAE;YAChC,GAAG,IAAI,IAAI,mBAAmB,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC;SAChD;QAED,GAAG,IAAI,KAAK,IAAI,CAAC,OAAO,EAAE,CAAC;QAE3B,IAAI,IAAI,CAAC,KAAK,KAAK,SAAS,EAAE;YAC1B,GAAG,IAAI,YAAY,IAAI,CAAC,KAAK,EAAE,CAAC;SACnC;QAED,OAAO,GAAG,CAAC;IACf,CAAC;;AAzEM,oBAAK,GAAG,YAAY,CAAC,KAAK,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\n/**\n * An operation error maintains additional information compared to a plain {@link #Error}:\n * - The operation name\n * - A status code\n * - Extensible flags. {@see ExtendedError.FLAGS}.\n */\nimport _ from \"lodash\";\nimport { FlaggedError } from \"./flaggedError\";\n\nexport class OperationError extends Error {\n static FLAGS = FlaggedError.FLAGS;\n public stack: string | undefined;\n public readonly name: string;\n\n /**\n * Instantiates an OperationError, which mimics the Error class with added properties\n * meant for reporting the result of operations.\n * @param message - The error message.\n * @param operation - The operation name.\n * @param statusCode - The operation result as a numerical status code.\n * @param flags - Flags that characterize the error. See {@link FlaggedError.FLAGS}.\n */\n constructor(\n message?: string,\n public operation?: string,\n public statusCode?: number,\n public flags: number = 0,\n ) {\n super(message);\n Object.setPrototypeOf(this, OperationError.prototype);\n this.name = \"OperationError\";\n this.stack = Error(message).stack;\n }\n\n isQuiet() {\n return FlaggedError.prototype.isQuiet.call(this);\n }\n\n isTransient() {\n return FlaggedError.prototype.isTransient.call(this);\n }\n\n /**\n * @returns A string representation of the error flags.\n */\n private _flagsToString() {\n const flagArray: string[] = [];\n _.mapValues(FlaggedError.FLAGS, (flagValue, flagName) => {\n // eslint-disable-next-line no-bitwise\n if ((this.flags & flagValue) === flagValue) {\n flagArray.push(flagName);\n }\n });\n return `${this.flags} [${flagArray.join(\",\")}]`;\n }\n\n toString(): string {\n const extendedFieldsArray: string[] = [];\n if (this.operation !== undefined) {\n extendedFieldsArray.push(this.operation);\n }\n\n if (this.statusCode !== undefined) {\n extendedFieldsArray.push(this.statusCode.toString());\n }\n\n if (this.flags) {\n extendedFieldsArray.push(this._flagsToString.call(this));\n }\n\n let msg = this.name;\n\n if (extendedFieldsArray.length > 0) {\n msg += `[${extendedFieldsArray.join(\", \")}]`;\n }\n\n msg += `: ${this.message}`;\n\n if (this.stack !== undefined) {\n msg += `, stack: ${this.stack}`;\n }\n\n return msg;\n }\n}\n"]}
1
+ {"version":3,"file":"operationError.js","sourceRoot":"","sources":["../../src/error_objects/operationError.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;GAKG;AACH,OAAO,CAAC,MAAM,QAAQ,CAAC;AACvB,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,MAAM,OAAO,cAAe,SAAQ,KAAK;IAKrC;;;;;;;SAOK;IACL,YACI,OAAgB,EACT,SAAkB,EAClB,UAAmB,EACnB,QAAgB,CAAC;QAExB,KAAK,CAAC,OAAO,CAAC,CAAC;QAJR,cAAS,GAAT,SAAS,CAAS;QAClB,eAAU,GAAV,UAAU,CAAS;QACnB,UAAK,GAAL,KAAK,CAAY;QAGxB,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,cAAc,CAAC,SAAS,CAAC,CAAC;QACtD,IAAI,CAAC,IAAI,GAAG,gBAAgB,CAAC;QAC7B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC,KAAK,CAAC;IACtC,CAAC;IAED,OAAO;QACH,OAAO,YAAY,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACrD,CAAC;IAED,WAAW;QACP,OAAO,YAAY,CAAC,SAAS,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC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AC;IACf,CAAC;;AAzEM,oBAAK,GAAG,YAAY,CAAC,KAAK,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\n/**\n * An operation error maintains additional information compared to a plain {@link #Error}:\n * - The operation name\n * - A status code\n * - Extensible flags. See {@link ExtendedError.FLAGS}.\n */\nimport _ from \"lodash\";\nimport { FlaggedError } from \"./flaggedError\";\n\nexport class OperationError extends Error {\n static FLAGS = FlaggedError.FLAGS;\n public stack: string | undefined;\n public readonly name: string;\n\n /**\n * Instantiates an OperationError, which mimics the Error class with added properties\n * meant for reporting the result of operations.\n * @param message - The error message.\n * @param operation - The operation name.\n * @param statusCode - The operation result as a numerical status code.\n * @param flags - Flags that characterize the error. See {@link FlaggedError.FLAGS}.\n */\n constructor(\n message?: string,\n public operation?: string,\n public statusCode?: number,\n public flags: number = 0,\n ) {\n super(message);\n Object.setPrototypeOf(this, OperationError.prototype);\n this.name = \"OperationError\";\n this.stack = Error(message).stack;\n }\n\n isQuiet() {\n return FlaggedError.prototype.isQuiet.call(this);\n }\n\n isTransient() {\n return FlaggedError.prototype.isTransient.call(this);\n }\n\n /**\n * @returns A string representation of the error flags.\n */\n private _flagsToString() {\n const flagArray: string[] = [];\n _.mapValues(FlaggedError.FLAGS, (flagValue, flagName) => {\n // eslint-disable-next-line no-bitwise\n if ((this.flags & flagValue) === flagValue) {\n flagArray.push(flagName);\n }\n });\n return `${this.flags} [${flagArray.join(\",\")}]`;\n }\n\n toString(): string {\n const extendedFieldsArray: string[] = [];\n if (this.operation !== undefined) {\n extendedFieldsArray.push(this.operation);\n }\n\n if (this.statusCode !== undefined) {\n extendedFieldsArray.push(this.statusCode.toString());\n }\n\n if (this.flags) {\n extendedFieldsArray.push(this._flagsToString.call(this));\n }\n\n let msg = this.name;\n\n if (extendedFieldsArray.length > 0) {\n msg += `[${extendedFieldsArray.join(\", \")}]`;\n }\n\n msg += `: ${this.message}`;\n\n if (this.stack !== undefined) {\n msg += `, stack: ${this.stack}`;\n }\n\n return msg;\n }\n}\n"]}
@@ -5,5 +5,5 @@
5
5
  * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY
6
6
  */
7
7
  export declare const pkgName = "@fluid-experimental/property-common";
8
- export declare const pkgVersion = "1.1.0";
8
+ export declare const pkgVersion = "1.2.0";
9
9
  //# sourceMappingURL=packageVersion.d.ts.map
@@ -5,5 +5,5 @@
5
5
  * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY
6
6
  */
7
7
  export const pkgName = "@fluid-experimental/property-common";
8
- export const pkgVersion = "1.1.0";
8
+ export const pkgVersion = "1.2.0";
9
9
  //# sourceMappingURL=packageVersion.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,CAAC,MAAM,OAAO,GAAG,qCAAqC,CAAC;AAC7D,MAAM,CAAC,MAAM,UAAU,GAAG,OAAO,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n *\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY\n */\n\nexport const pkgName = \"@fluid-experimental/property-common\";\nexport const pkgVersion = \"1.1.0\";\n"]}
1
+ {"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,CAAC,MAAM,OAAO,GAAG,qCAAqC,CAAC;AAC7D,MAAM,CAAC,MAAM,UAAU,GAAG,OAAO,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n *\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY\n */\n\nexport const pkgName = \"@fluid-experimental/property-common\";\nexport const pkgVersion = \"1.2.0\";\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-experimental/property-common",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "common functions used in properties",
5
5
  "homepage": "https://fluidframework.com",
6
6
  "repository": {
@@ -70,7 +70,7 @@
70
70
  "devDependencies": {
71
71
  "@fluidframework/build-common": "^0.24.0",
72
72
  "@fluidframework/eslint-config-fluid": "^0.28.2000",
73
- "@fluidframework/mocha-test-setup": "^1.1.0",
73
+ "@fluidframework/mocha-test-setup": "^1.2.0",
74
74
  "@microsoft/api-extractor": "^7.22.2",
75
75
  "@rushstack/eslint-config": "^2.5.1",
76
76
  "@types/debug": "^4.1.5",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-internal/platform-dependent",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "private": true,
5
5
  "description": "Helper package that separates code for browser and server.",
6
6
  "homepage": "https://fluidframework.com",
package/src/constants.ts CHANGED
@@ -373,7 +373,7 @@ const PropertyError = {
373
373
  * methods: Workspace.get, Property.get
374
374
  * Workspace.get and Property.get take in an id (string or number) or an array of ids.
375
375
  * @example
376
- * ```ts
376
+ * ```typescript
377
377
  *.get(‘position’).get(‘x’) or .get([‘property’, ‘x’])
378
378
  * ```
379
379
  */
@@ -7,7 +7,7 @@
7
7
  * An operation error maintains additional information compared to a plain {@link #Error}:
8
8
  * - The operation name
9
9
  * - A status code
10
- * - Extensible flags. {@see ExtendedError.FLAGS}.
10
+ * - Extensible flags. See {@link ExtendedError.FLAGS}.
11
11
  */
12
12
  import _ from "lodash";
13
13
  import { FlaggedError } from "./flaggedError";
@@ -6,4 +6,4 @@
6
6
  */
7
7
 
8
8
  export const pkgName = "@fluid-experimental/property-common";
9
- export const pkgVersion = "1.1.0";
9
+ export const pkgVersion = "1.2.0";