1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | class SerializeError extends Error {
|
4 | constructor(message, parentPath, pathSegment, hint) {
|
5 | super(message);
|
6 | const segment = typeof pathSegment === 'undefined' ? '<unknown>' : `${pathSegment}`;
|
7 | this.path = (parentPath || []).concat(hint ? `${segment} (${hint})` : segment);
|
8 | }
|
9 | withHelpUrl(id) {
|
10 | this.helpId = id;
|
11 | return this;
|
12 | }
|
13 | }
|
14 | exports.SerializeError = SerializeError;
|
15 | var HELP_URL;
|
16 | (function (HELP_URL) {
|
17 | HELP_URL["ID_REQUIRED"] = "structure-node-id-required";
|
18 | HELP_URL["TITLE_REQUIRED"] = "structure-title-required";
|
19 | HELP_URL["FILTER_REQUIRED"] = "structure-filter-required";
|
20 | HELP_URL["INVALID_LIST_ITEM"] = "structure-invalid-list-item";
|
21 | HELP_URL["DOCUMENT_ID_REQUIRED"] = "structure-document-id-required";
|
22 | HELP_URL["SCHEMA_TYPE_REQUIRED"] = "structure-schema-type-required";
|
23 | HELP_URL["SCHEMA_TYPE_NOT_FOUND"] = "structure-schema-type-not-found";
|
24 | HELP_URL["LIST_ITEMS_MUST_BE_ARRAY"] = "structure-list-items-must-be-array";
|
25 | HELP_URL["QUERY_PROVIDED_FOR_FILTER"] = "structure-query-provided-for-filter";
|
26 | HELP_URL["ACTION_OR_INTENT_REQUIRED"] = "structure-action-or-intent-required";
|
27 | HELP_URL["LIST_ITEM_IDS_MUST_BE_UNIQUE"] = "structure-list-item-ids-must-be-unique";
|
28 | HELP_URL["ACTION_AND_INTENT_MUTUALLY_EXCLUSIVE"] = "structure-action-and-intent-mutually-exclusive";
|
29 | })(HELP_URL = exports.HELP_URL || (exports.HELP_URL = {}));
|
30 |
|
31 |
|