dochub-sdk 0.1.244 → 0.1.246

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.
@@ -81,22 +81,22 @@ export enum IDocHubTransactionFileDataType {
81
81
  content = 'content'
82
82
  }
83
83
 
84
- export enum IDocHubTransactionFileAction {
84
+ export enum DocHubTransactionFileAction {
85
85
  filePut = 'file-put',
86
86
  fileDelete = 'file-delete',
87
87
  fileMove = 'file-move'
88
88
  }
89
89
 
90
90
  export type IDocHubTransactionChangeFilePut = {
91
- action: IDocHubTransactionFileAction.filePut;
91
+ action: DocHubTransactionFileAction.filePut;
92
92
  }
93
93
 
94
94
  export type IDocHubTransactionChangeFileDelete = {
95
- action: IDocHubTransactionFileAction.fileDelete;
95
+ action: DocHubTransactionFileAction.fileDelete;
96
96
  }
97
97
 
98
98
  export type IDocHubTransactionChangeFileMove = {
99
- action: IDocHubTransactionFileAction.fileMove;
99
+ action: DocHubTransactionFileAction.fileMove;
100
100
  fromURI: string;
101
101
  }
102
102
 
@@ -136,9 +136,9 @@ export interface IDocHubTransaction {
136
136
 
137
137
  /**
138
138
  * Возвращает указанную версию файла
139
- * @param uid - Идентификатор версии в транзакции
139
+ * @param uid - Идентификатор версии в транзакции. Если пусто - актуальная версия
140
140
  */
141
- getFileVersion(uid: string): Promise<IDocHubTransactionFile | null>;
141
+ getFileVersion(uid?: string): Promise<IDocHubTransactionFile | null>;
142
142
 
143
143
  /**
144
144
  * Удаляет запись об изменении из транзакции
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dochub-sdk",
3
- "version": "0.1.244",
3
+ "version": "0.1.246",
4
4
  "description": "The DocHub System Development Kit.",
5
5
  "private": false,
6
6
  "main": "index.ts",