@rsconcept/domain 1.0.0 → 1.1.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.
Files changed (183) hide show
  1. package/README.md +3 -3
  2. package/dist/analyzer-DlSq3Y3r.d.ts +39 -0
  3. package/dist/arguments-extractor-1acwjQNc.d.ts +38 -0
  4. package/dist/ast-C8sIpKdL.d.ts +51 -0
  5. package/dist/ast-annotations-BiMjkKvz.d.ts +16 -0
  6. package/dist/branded-ZlzIcxzu.d.ts +9 -0
  7. package/dist/calculator-C9W2jkSx.d.ts +39 -0
  8. package/dist/cctext/index.d.ts +2 -1
  9. package/dist/cctext/index.js +2 -42
  10. package/dist/cctext/language-api.d.ts +10 -12
  11. package/dist/cctext/language-api.js +157 -227
  12. package/dist/cctext/language-api.js.map +1 -1
  13. package/dist/cctext/language.d.ts +24 -22
  14. package/dist/cctext/language.js +43 -39
  15. package/dist/cctext/language.js.map +1 -1
  16. package/dist/error-E1LVq_3w.d.ts +87 -0
  17. package/dist/graph/graph.d.ts +2 -62
  18. package/dist/graph/graph.js +339 -382
  19. package/dist/graph/graph.js.map +1 -1
  20. package/dist/graph/index.d.ts +2 -1
  21. package/dist/graph/index.js +2 -384
  22. package/dist/graph-DR8rL2o3.d.ts +64 -0
  23. package/dist/hash-Y8I4c6Al.d.ts +8 -0
  24. package/dist/index-BKZ67WMa.d.ts +1 -0
  25. package/dist/index-BVVgDSdq.d.ts +1 -0
  26. package/dist/index-DmtQKWjk.d.ts +1 -0
  27. package/dist/index-_6s0AX1B.d.ts +1 -0
  28. package/dist/index.d.ts +27 -28
  29. package/dist/index.js +23 -5851
  30. package/dist/lezer-tree-iS7LpLBJ.d.ts +14 -0
  31. package/dist/library/folder-tree.d.ts +22 -20
  32. package/dist/library/folder-tree.js +108 -130
  33. package/dist/library/folder-tree.js.map +1 -1
  34. package/dist/library/index.d.ts +8 -17
  35. package/dist/library/index.js +7 -2800
  36. package/dist/library/library-api.d.ts +3 -1
  37. package/dist/library/library-api.js +9 -8
  38. package/dist/library/library-api.js.map +1 -1
  39. package/dist/library/library.d.ts +2 -56
  40. package/dist/library/library.js +23 -19
  41. package/dist/library/library.js.map +1 -1
  42. package/dist/library/oss-api.d.ts +26 -37
  43. package/dist/library/oss-api.js +257 -1096
  44. package/dist/library/oss-api.js.map +1 -1
  45. package/dist/library/oss-layout-api.d.ts +28 -28
  46. package/dist/library/oss-layout-api.js +239 -316
  47. package/dist/library/oss-layout-api.js.map +1 -1
  48. package/dist/library/oss-layout.d.ts +2 -25
  49. package/dist/library/oss-layout.js +1 -1
  50. package/dist/library/oss.d.ts +87 -89
  51. package/dist/library/oss.js +27 -26
  52. package/dist/library/oss.js.map +1 -1
  53. package/dist/library/rsengine.d.ts +100 -106
  54. package/dist/library/rsengine.js +439 -2599
  55. package/dist/library/rsengine.js.map +1 -1
  56. package/dist/library/rsform-api.d.ts +11 -16
  57. package/dist/library/rsform-api.js +313 -825
  58. package/dist/library/rsform-api.js.map +1 -1
  59. package/dist/library/rsform.d.ts +159 -167
  60. package/dist/library/rsform.js +29 -28
  61. package/dist/library/rsform.js.map +1 -1
  62. package/dist/library/rsmodel-api.d.ts +8 -15
  63. package/dist/library/rsmodel-api.js +172 -813
  64. package/dist/library/rsmodel-api.js.map +1 -1
  65. package/dist/library/rsmodel.d.ts +27 -33
  66. package/dist/library/rsmodel.js +16 -23
  67. package/dist/library/rsmodel.js.map +1 -1
  68. package/dist/library/structure-planner.d.ts +20 -26
  69. package/dist/library/structure-planner.js +106 -474
  70. package/dist/library/structure-planner.js.map +1 -1
  71. package/dist/library-CYun28Xz.d.ts +58 -0
  72. package/dist/oss-layout-3glgAqfn.d.ts +27 -0
  73. package/dist/parser-Bwd8LxJ1.d.ts +7 -0
  74. package/dist/parsing/ast.d.ts +2 -49
  75. package/dist/parsing/ast.js +68 -76
  76. package/dist/parsing/ast.js.map +1 -1
  77. package/dist/parsing/index.d.ts +3 -3
  78. package/dist/parsing/index.js +3 -141
  79. package/dist/parsing/lezer-tree.d.ts +2 -13
  80. package/dist/parsing/lezer-tree.js +50 -43
  81. package/dist/parsing/lezer-tree.js.map +1 -1
  82. package/dist/rslang/api.d.ts +9 -14
  83. package/dist/rslang/api.js +114 -827
  84. package/dist/rslang/api.js.map +1 -1
  85. package/dist/rslang/ast-annotations.d.ts +2 -18
  86. package/dist/rslang/ast-annotations.js +34 -45
  87. package/dist/rslang/ast-annotations.js.map +1 -1
  88. package/dist/rslang/error.d.ts +2 -85
  89. package/dist/rslang/error.js +88 -150
  90. package/dist/rslang/error.js.map +1 -1
  91. package/dist/rslang/eval/calculator.d.ts +2 -43
  92. package/dist/rslang/eval/calculator.js +81 -1636
  93. package/dist/rslang/eval/calculator.js.map +1 -1
  94. package/dist/rslang/eval/evaluation-cache.d.ts +22 -26
  95. package/dist/rslang/eval/evaluation-cache.js +168 -287
  96. package/dist/rslang/eval/evaluation-cache.js.map +1 -1
  97. package/dist/rslang/eval/evaluator.d.ts +59 -63
  98. package/dist/rslang/eval/evaluator.js +602 -1509
  99. package/dist/rslang/eval/evaluator.js.map +1 -1
  100. package/dist/rslang/eval/value-api.d.ts +2 -48
  101. package/dist/rslang/eval/value-api.js +2 -490
  102. package/dist/rslang/eval/value.d.ts +2 -36
  103. package/dist/rslang/eval/value.js +2 -118
  104. package/dist/rslang/index.d.ts +14 -17
  105. package/dist/rslang/index.js +12 -4314
  106. package/dist/rslang/labels.d.ts +6 -6
  107. package/dist/rslang/labels.js +139 -305
  108. package/dist/rslang/labels.js.map +1 -1
  109. package/dist/rslang/parser/expression-generator.d.ts +5 -5
  110. package/dist/rslang/parser/expression-generator.js +248 -446
  111. package/dist/rslang/parser/expression-generator.js.map +1 -1
  112. package/dist/rslang/parser/normalize.d.ts +4 -8
  113. package/dist/rslang/parser/normalize.js +286 -481
  114. package/dist/rslang/parser/normalize.js.map +1 -1
  115. package/dist/rslang/parser/parser.d.ts +2 -5
  116. package/dist/rslang/parser/parser.js +30 -21
  117. package/dist/rslang/parser/parser.js.map +1 -1
  118. package/dist/rslang/parser/parser.terms.d.ts +43 -41
  119. package/dist/rslang/parser/parser.terms.js +44 -83
  120. package/dist/rslang/parser/parser.terms.js.map +1 -1
  121. package/dist/rslang/parser/syntax-errors.d.ts +5 -8
  122. package/dist/rslang/parser/syntax-errors.js +113 -382
  123. package/dist/rslang/parser/syntax-errors.js.map +1 -1
  124. package/dist/rslang/parser/token.d.ts +2 -79
  125. package/dist/rslang/parser/token.js +81 -93
  126. package/dist/rslang/parser/token.js.map +1 -1
  127. package/dist/rslang/semantic/analyzer.d.ts +2 -39
  128. package/dist/rslang/semantic/analyzer.js +186 -2600
  129. package/dist/rslang/semantic/analyzer.js.map +1 -1
  130. package/dist/rslang/semantic/arguments-extractor.d.ts +2 -42
  131. package/dist/rslang/semantic/arguments-extractor.js +202 -361
  132. package/dist/rslang/semantic/arguments-extractor.js.map +1 -1
  133. package/dist/rslang/semantic/type-auditor.d.ts +64 -68
  134. package/dist/rslang/semantic/type-auditor.js +594 -1564
  135. package/dist/rslang/semantic/type-auditor.js.map +1 -1
  136. package/dist/rslang/semantic/typification-api.d.ts +4 -7
  137. package/dist/rslang/semantic/typification-api.js +162 -303
  138. package/dist/rslang/semantic/typification-api.js.map +1 -1
  139. package/dist/rslang/semantic/typification-parser.d.ts +2 -12
  140. package/dist/rslang/semantic/typification-parser.js +165 -219
  141. package/dist/rslang/semantic/typification-parser.js.map +1 -1
  142. package/dist/rslang/semantic/typification.d.ts +2 -119
  143. package/dist/rslang/semantic/typification.js +66 -52
  144. package/dist/rslang/semantic/typification.js.map +1 -1
  145. package/dist/rslang/semantic/value-auditor.d.ts +32 -38
  146. package/dist/rslang/semantic/value-auditor.js +206 -518
  147. package/dist/rslang/semantic/value-auditor.js.map +1 -1
  148. package/dist/rslang/semantic/value-class.d.ts +2 -10
  149. package/dist/rslang/semantic/value-class.js +8 -7
  150. package/dist/rslang/semantic/value-class.js.map +1 -1
  151. package/dist/rslang/typification-graph.d.ts +2 -33
  152. package/dist/rslang/typification-graph.js +94 -306
  153. package/dist/rslang/typification-graph.js.map +1 -1
  154. package/dist/shared/branded.d.ts +2 -7
  155. package/dist/shared/branded.js +1 -1
  156. package/dist/shared/hash.d.ts +2 -6
  157. package/dist/shared/hash.js +13 -13
  158. package/dist/shared/hash.js.map +1 -1
  159. package/dist/shared/index.d.ts +3 -2
  160. package/dist/shared/index.js +2 -18
  161. package/dist/token-DeXAmzwr.d.ts +81 -0
  162. package/dist/typification-Dk-fisgO.d.ts +120 -0
  163. package/dist/typification-graph-6HcZ-rKH.d.ts +30 -0
  164. package/dist/typification-parser-BBVx1RxP.d.ts +13 -0
  165. package/dist/value-B8UtCqaK.js +366 -0
  166. package/dist/value-B8UtCqaK.js.map +1 -0
  167. package/dist/value-CTjX6825.d.ts +33 -0
  168. package/dist/value-api-Bw-SgaYY.d.ts +49 -0
  169. package/dist/value-class-CNI-lqXJ.d.ts +12 -0
  170. package/package.json +8 -8
  171. package/src/library/rsform-api.test.ts +24 -0
  172. package/src/library/rsform-api.ts +12 -4
  173. package/dist/cctext/index.js.map +0 -1
  174. package/dist/graph/index.js.map +0 -1
  175. package/dist/index.js.map +0 -1
  176. package/dist/library/index.js.map +0 -1
  177. package/dist/library/oss-layout.js.map +0 -1
  178. package/dist/parsing/index.js.map +0 -1
  179. package/dist/rslang/eval/value-api.js.map +0 -1
  180. package/dist/rslang/eval/value.js.map +0 -1
  181. package/dist/rslang/index.js.map +0 -1
  182. package/dist/shared/branded.js.map +0 -1
  183. package/dist/shared/index.js.map +0 -1
@@ -1,6 +1,8 @@
1
+ //#region src/library/library-api.d.ts
1
2
  /** Combining head and body into location. */
2
3
  declare function combineLocation(head: string, body?: string): string;
3
4
  /** Validation location against regexp. */
4
5
  declare function validateLocationFormat(location: string): boolean;
5
-
6
+ //#endregion
6
7
  export { combineLocation, validateLocationFormat };
8
+ //# sourceMappingURL=library-api.d.ts.map
@@ -1,13 +1,14 @@
1
- // src/library/library-api.ts
2
- var LOCATION_REGEXP = /^\/[PLUS]((\/[!\d\p{L}]([!\d\p{L}\- ]*[!\d\p{L}])?)*)?$/u;
1
+ //#region src/library/library-api.ts
2
+ const LOCATION_REGEXP = /^\/[PLUS]((\/[!\d\p{L}]([!\d\p{L}\- ]*[!\d\p{L}])?)*)?$/u;
3
+ /** Combining head and body into location. */
3
4
  function combineLocation(head, body) {
4
- return body ? `${head}/${body}` : head;
5
+ return body ? `${head}/${body}` : head;
5
6
  }
7
+ /** Validation location against regexp. */
6
8
  function validateLocationFormat(location) {
7
- return LOCATION_REGEXP.test(location);
9
+ return LOCATION_REGEXP.test(location);
8
10
  }
9
- export {
10
- combineLocation,
11
- validateLocationFormat
12
- };
11
+ //#endregion
12
+ export { combineLocation, validateLocationFormat };
13
+
13
14
  //# sourceMappingURL=library-api.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/library/library-api.ts"],"sourcesContent":["const LOCATION_REGEXP = /^\\/[PLUS]((\\/[!\\d\\p{L}]([!\\d\\p{L}\\- ]*[!\\d\\p{L}])?)*)?$/u; // cspell:disable-line\n\n/** Combining head and body into location. */\nexport function combineLocation(head: string, body?: string): string {\n return body ? `${head}/${body}` : head;\n}\n\n/** Validation location against regexp. */\nexport function validateLocationFormat(location: string): boolean {\n return LOCATION_REGEXP.test(location);\n}\n"],"mappings":";AAAA,IAAM,kBAAkB;AAGjB,SAAS,gBAAgB,MAAc,MAAuB;AACnE,SAAO,OAAO,GAAG,IAAI,IAAI,IAAI,KAAK;AACpC;AAGO,SAAS,uBAAuB,UAA2B;AAChE,SAAO,gBAAgB,KAAK,QAAQ;AACtC;","names":[]}
1
+ {"version":3,"file":"library-api.js","names":[],"sources":["../../src/library/library-api.ts"],"sourcesContent":["const LOCATION_REGEXP = /^\\/[PLUS]((\\/[!\\d\\p{L}]([!\\d\\p{L}\\- ]*[!\\d\\p{L}])?)*)?$/u; // cspell:disable-line\n\n/** Combining head and body into location. */\nexport function combineLocation(head: string, body?: string): string {\n return body ? `${head}/${body}` : head;\n}\n\n/** Validation location against regexp. */\nexport function validateLocationFormat(location: string): boolean {\n return LOCATION_REGEXP.test(location);\n}\n"],"mappings":";AAAA,MAAM,kBAAkB;;AAGxB,SAAgB,gBAAgB,MAAc,MAAuB;CACnE,OAAO,OAAO,GAAG,KAAK,GAAG,SAAS;AACpC;;AAGA,SAAgB,uBAAuB,UAA2B;CAChE,OAAO,gBAAgB,KAAK,QAAQ;AACtC"}
@@ -1,56 +1,2 @@
1
- /**
2
- * Module: Models for LibraryItem.
3
- */
4
- /** Represents type of library items. */
5
- declare const LibraryItemType: {
6
- readonly RSFORM: "rsform";
7
- readonly OSS: "oss";
8
- readonly RSMODEL: "rsmodel";
9
- };
10
- type LibraryItemType = (typeof LibraryItemType)[keyof typeof LibraryItemType];
11
- /** Represents Access policy for library items.*/
12
- declare const AccessPolicy: {
13
- readonly PUBLIC: "public";
14
- readonly PROTECTED: "protected";
15
- readonly PRIVATE: "private";
16
- };
17
- type AccessPolicy = (typeof AccessPolicy)[keyof typeof AccessPolicy];
18
- /** Represents valid location headers. */
19
- declare const LocationHead: {
20
- readonly USER: "/U";
21
- readonly COMMON: "/S";
22
- readonly LIBRARY: "/L";
23
- readonly PROJECTS: "/P";
24
- };
25
- type LocationHead = (typeof LocationHead)[keyof typeof LocationHead];
26
- /** Represents {@link LibraryItem} minimal reference data. */
27
- interface LibraryItemReference {
28
- id: number;
29
- alias: string;
30
- }
31
- /** Represents library item common data typical for all item types. */
32
- interface LibraryItem {
33
- id: number;
34
- item_type: LibraryItemType;
35
- alias: string;
36
- title: string;
37
- description: string;
38
- visible: boolean;
39
- read_only: boolean;
40
- location: string;
41
- access_policy: AccessPolicy;
42
- time_create: string;
43
- time_update: string;
44
- owner: number | null;
45
- }
46
- /** Represents library item version information. */
47
- interface VersionInfo {
48
- id: number;
49
- version: string;
50
- description: string;
51
- time_create: string;
52
- }
53
- /** Represents current version */
54
- type CurrentVersion = number | 'latest';
55
-
56
- export { AccessPolicy, type CurrentVersion, type LibraryItem, type LibraryItemReference, LibraryItemType, LocationHead, type VersionInfo };
1
+ import { a as LibraryItemType, i as LibraryItemReference, n as CurrentVersion, o as LocationHead, r as LibraryItem, s as VersionInfo, t as AccessPolicy } from "../library-CYun28Xz.js";
2
+ export { AccessPolicy, CurrentVersion, LibraryItem, LibraryItemReference, LibraryItemType, LocationHead, VersionInfo };
@@ -1,23 +1,27 @@
1
- // src/library/library.ts
2
- var LibraryItemType = {
3
- RSFORM: "rsform",
4
- OSS: "oss",
5
- RSMODEL: "rsmodel"
1
+ //#region src/library/library.ts
2
+ /**
3
+ * Module: Models for LibraryItem.
4
+ */
5
+ /** Represents type of library items. */
6
+ const LibraryItemType = {
7
+ RSFORM: "rsform",
8
+ OSS: "oss",
9
+ RSMODEL: "rsmodel"
6
10
  };
7
- var AccessPolicy = {
8
- PUBLIC: "public",
9
- PROTECTED: "protected",
10
- PRIVATE: "private"
11
+ /** Represents Access policy for library items.*/
12
+ const AccessPolicy = {
13
+ PUBLIC: "public",
14
+ PROTECTED: "protected",
15
+ PRIVATE: "private"
11
16
  };
12
- var LocationHead = {
13
- USER: "/U",
14
- COMMON: "/S",
15
- LIBRARY: "/L",
16
- PROJECTS: "/P"
17
- };
18
- export {
19
- AccessPolicy,
20
- LibraryItemType,
21
- LocationHead
17
+ /** Represents valid location headers. */
18
+ const LocationHead = {
19
+ USER: "/U",
20
+ COMMON: "/S",
21
+ LIBRARY: "/L",
22
+ PROJECTS: "/P"
22
23
  };
24
+ //#endregion
25
+ export { AccessPolicy, LibraryItemType, LocationHead };
26
+
23
27
  //# sourceMappingURL=library.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/library/library.ts"],"sourcesContent":["/**\n * Module: Models for LibraryItem.\n */\n\n/** Represents type of library items. */\nexport const LibraryItemType = {\n RSFORM: 'rsform',\n OSS: 'oss',\n RSMODEL: 'rsmodel'\n} as const;\nexport type LibraryItemType = (typeof LibraryItemType)[keyof typeof LibraryItemType];\n\n/** Represents Access policy for library items.*/\nexport const AccessPolicy = {\n PUBLIC: 'public',\n PROTECTED: 'protected',\n PRIVATE: 'private'\n} as const;\nexport type AccessPolicy = (typeof AccessPolicy)[keyof typeof AccessPolicy];\n\n/** Represents valid location headers. */\nexport const LocationHead = {\n USER: '/U',\n COMMON: '/S',\n LIBRARY: '/L',\n PROJECTS: '/P'\n} as const;\nexport type LocationHead = (typeof LocationHead)[keyof typeof LocationHead];\n\n/** Represents {@link LibraryItem} minimal reference data. */\nexport interface LibraryItemReference {\n id: number;\n alias: string;\n}\n\n/** Represents library item common data typical for all item types. */\nexport interface LibraryItem {\n id: number;\n item_type: LibraryItemType;\n alias: string;\n title: string;\n description: string;\n visible: boolean;\n read_only: boolean;\n location: string;\n access_policy: AccessPolicy;\n time_create: string;\n time_update: string;\n owner: number | null;\n}\n\n/** Represents library item version information. */\nexport interface VersionInfo {\n id: number;\n version: string;\n description: string;\n time_create: string;\n}\n\n/** Represents current version */\nexport type CurrentVersion = number | 'latest';\n"],"mappings":";AAKO,IAAM,kBAAkB;AAAA,EAC7B,QAAQ;AAAA,EACR,KAAK;AAAA,EACL,SAAS;AACX;AAIO,IAAM,eAAe;AAAA,EAC1B,QAAQ;AAAA,EACR,WAAW;AAAA,EACX,SAAS;AACX;AAIO,IAAM,eAAe;AAAA,EAC1B,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,UAAU;AACZ;","names":[]}
1
+ {"version":3,"file":"library.js","names":[],"sources":["../../src/library/library.ts"],"sourcesContent":["/**\n * Module: Models for LibraryItem.\n */\n\n/** Represents type of library items. */\nexport const LibraryItemType = {\n RSFORM: 'rsform',\n OSS: 'oss',\n RSMODEL: 'rsmodel'\n} as const;\nexport type LibraryItemType = (typeof LibraryItemType)[keyof typeof LibraryItemType];\n\n/** Represents Access policy for library items.*/\nexport const AccessPolicy = {\n PUBLIC: 'public',\n PROTECTED: 'protected',\n PRIVATE: 'private'\n} as const;\nexport type AccessPolicy = (typeof AccessPolicy)[keyof typeof AccessPolicy];\n\n/** Represents valid location headers. */\nexport const LocationHead = {\n USER: '/U',\n COMMON: '/S',\n LIBRARY: '/L',\n PROJECTS: '/P'\n} as const;\nexport type LocationHead = (typeof LocationHead)[keyof typeof LocationHead];\n\n/** Represents {@link LibraryItem} minimal reference data. */\nexport interface LibraryItemReference {\n id: number;\n alias: string;\n}\n\n/** Represents library item common data typical for all item types. */\nexport interface LibraryItem {\n id: number;\n item_type: LibraryItemType;\n alias: string;\n title: string;\n description: string;\n visible: boolean;\n read_only: boolean;\n location: string;\n access_policy: AccessPolicy;\n time_create: string;\n time_update: string;\n owner: number | null;\n}\n\n/** Represents library item version information. */\nexport interface VersionInfo {\n id: number;\n version: string;\n description: string;\n time_create: string;\n}\n\n/** Represents current version */\nexport type CurrentVersion = number | 'latest';\n"],"mappings":";;;;;AAKA,MAAa,kBAAkB;CAC7B,QAAQ;CACR,KAAK;CACL,SAAS;AACX;;AAIA,MAAa,eAAe;CAC1B,QAAQ;CACR,WAAW;CACX,SAAS;AACX;;AAIA,MAAa,eAAe;CAC1B,MAAM;CACN,QAAQ;CACR,SAAS;CACT,UAAU;AACZ"}
@@ -1,47 +1,36 @@
1
- import { LibraryItem } from './library.js';
2
- import { SubstitutionErrorDescription, NodeType, OperationSchema } from './oss.js';
3
- import { Substitution, RSForm, Constituenta } from './rsform.js';
4
- import '../graph/graph.js';
5
- import './oss-layout.js';
6
- import '../rslang/semantic/typification.js';
7
- import '../shared/branded.js';
8
- import '../rslang/semantic/analyzer.js';
9
- import '../parsing/ast.js';
10
- import '@lezer/common';
11
- import '../rslang/error.js';
12
- import '../rslang/semantic/value-class.js';
13
-
14
- /**
15
- * Module: API for OperationSystem.
16
- */
1
+ import { r as LibraryItem } from "../library-CYun28Xz.js";
2
+ import { NodeType, OperationSchema, SubstitutionErrorDescription } from "./oss.js";
3
+ import { Constituenta, RSForm, Substitution } from "./rsform.js";
17
4
 
5
+ //#region src/library/oss-api.d.ts
18
6
  declare function constructNodeID(type: NodeType, itemID: number): string;
19
7
  /** Sorts library items relevant for the specified {@link OperationSchema}. */
20
8
  declare function sortItemsForOSS(oss: OperationSchema, items: readonly LibraryItem[]): LibraryItem[];
21
9
  /** Validator for Substitution table. */
22
10
  declare class SubstitutionValidator {
23
- errors: SubstitutionErrorDescription[];
24
- suggestions: Substitution[];
25
- private schemas;
26
- private substitutions;
27
- private constituents;
28
- private originals;
29
- private mapping;
30
- private cstByID;
31
- private schemaByID;
32
- private schemaByCst;
33
- constructor(schemas: RSForm[], substitutions: Substitution[]);
34
- validate(): boolean;
35
- private calculateSuggestions;
36
- private checkTypes;
37
- private checkCycles;
38
- private checkSubstitutions;
39
- private prepareBaseMappings;
40
- private calculateSubstituteMappings;
41
- private checkEqual;
42
- private reportError;
11
+ errors: SubstitutionErrorDescription[];
12
+ suggestions: Substitution[];
13
+ private schemas;
14
+ private substitutions;
15
+ private constituents;
16
+ private originals;
17
+ private mapping;
18
+ private cstByID;
19
+ private schemaByID;
20
+ private schemaByCst;
21
+ constructor(schemas: RSForm[], substitutions: Substitution[]);
22
+ validate(): boolean;
23
+ private calculateSuggestions;
24
+ private checkTypes;
25
+ private checkCycles;
26
+ private checkSubstitutions;
27
+ private prepareBaseMappings;
28
+ private calculateSubstituteMappings;
29
+ private checkEqual;
30
+ private reportError;
43
31
  }
44
32
  /** Filter relocate candidates from gives schema. */
45
33
  declare function getRelocateCandidates(source: number, destination: number, schema: RSForm, oss: OperationSchema): Constituenta[];
46
-
34
+ //#endregion
47
35
  export { SubstitutionValidator, constructNodeID, getRelocateCandidates, sortItemsForOSS };
36
+ //# sourceMappingURL=oss-api.d.ts.map