dochub-sdk 0.1.259 → 0.1.261

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.
@@ -7,13 +7,65 @@ export type DocHubDataSetID = string;
7
7
  */
8
8
  export type DocHubDataSetData = object;
9
9
  /**
10
- * JSONata запрос
10
+ * JSONata запрос с расширенными свойствами
11
11
  */
12
- export type DocHubJSONataQuery = `(${string})` | `jsonata(${string})`;
12
+
13
+ /**
14
+ * Простое, строковое определение JSONata запроса
15
+ */
16
+ export type DocHubJSONataQuerySimple = `(${string})` | `jsonata(${string})`;
17
+
13
18
  /**
14
19
  * Ссылка на JSONata файл
15
20
  */
16
- export type DocHubJSONataFile = `${string}.jsonata`;
21
+ export type DocHubJSONataFile = `${string}.jsonata`;
22
+
23
+ /**
24
+ * Метаинформация JSONata запроса
25
+ */
26
+ export interface DocHubJSONataQueryMeta {
27
+ /**
28
+ * URI ресурса, где декларирован запрос
29
+ */
30
+ source?: string;
31
+ /**
32
+ * Путь к свойству определения
33
+ */
34
+ path?: string;
35
+ }
36
+
37
+ /**
38
+ * Класс, позволяет создавать запросы с расширенной информацией об источнике его происхождения
39
+ * для удобства отладки.
40
+ */
41
+ export class DocHubJSONataQueryObject extends String {
42
+ /**
43
+ * URI ресурса, где определен запрос
44
+ */
45
+ private uri: string | undefined;
46
+ /**
47
+ * Путь к определению запроса
48
+ */
49
+ private path: string | undefined;
50
+ constructor(query: DocHubJSONataQuerySimple, uri?: string, path?: string) {
51
+ super(query);
52
+ this.uri = uri;
53
+ this.path = path;
54
+ return this;
55
+ }
56
+ get __uri__(): string | undefined {
57
+ return this.uri;
58
+ }
59
+ get __path__(): string | undefined {
60
+ return this.path;
61
+ }
62
+ }
63
+
64
+ /**
65
+ * JSONata запрос
66
+ */
67
+ export type DocHubJSONataQuery = DocHubJSONataQuerySimple | DocHubJSONataQueryObject;
68
+
17
69
  /**
18
70
  * Ссылка на файл данных
19
71
  */
@@ -1,8 +1,11 @@
1
1
  import { Route, RouteConfig } from 'vue-router';
2
2
 
3
3
  export enum DocHubNavigateCommands {
4
- back = '$_back_$',
5
- root = '$_root_$'
4
+ back = '$-back', // Перейти на шаг назад в истории страниц
5
+ root = '$-root', // Перейти на корневую страницу
6
+ transactionOpen = '$-transaction-open', // Перейти на страницу открытия транзакции на изменение кода
7
+ transactionCommit = '$-transaction-commit', // Перейти на страницу применения изменений кода
8
+ transactionRollback = '$-transaction-rollback' // Перейти на страницу отмены изменений кода
6
9
  }
7
10
 
8
11
  export enum DocHubNavigateTarget {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dochub-sdk",
3
- "version": "0.1.259",
3
+ "version": "0.1.261",
4
4
  "description": "The DocHub System Development Kit.",
5
5
  "private": false,
6
6
  "main": "index.ts",