dochub-sdk 0.1.270 → 0.1.272

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.
@@ -133,19 +133,10 @@ export enum DocHubTransactionEvents {
133
133
  changeStatus = 'transaction-change-status'
134
134
  }
135
135
 
136
- /**
137
- * Идентификатор транзакции
138
- */
139
- export type DocHubTransactionUID = string;
140
-
141
136
  /**
142
137
  * Транзакция на изменения DataLake
143
138
  */
144
139
  export interface IDocHubTransaction {
145
- /**
146
- * Возвращает уникальный идентификатор транзакции
147
- */
148
- getUID(): DocHubTransactionUID;
149
140
  /**
150
141
  * Возвращает текущее состояние транзакции
151
142
  */
@@ -106,6 +106,20 @@ export interface IDocHubCommitBatch extends IDocHubProtocolRequestConfig {
106
106
  data: IDocHubCommitFile[];
107
107
  }
108
108
 
109
+ /**
110
+ * Ошибки порождаемые методом COMMIT
111
+ */
112
+ export class DocHubCommitError extends Error {
113
+ private errors_: Error[] = [];
114
+ constructor(description: string, errors: Error[]) {
115
+ super(description, { cause: errors });
116
+ this.errors_ = errors;
117
+ }
118
+ get errors(): Error[] {
119
+ return this.errors;
120
+ }
121
+ }
122
+
109
123
  /**
110
124
  * Структура коммита
111
125
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dochub-sdk",
3
- "version": "0.1.270",
3
+ "version": "0.1.272",
4
4
  "description": "The DocHub System Development Kit.",
5
5
  "private": false,
6
6
  "main": "index.ts",