visualvault-api 2.0.0-beta.0 → 2.0.0-beta.3
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.
- package/LICENSE +12 -18
- package/README.md +148 -148
- package/dist/VVRestApi.cjs +378 -88
- package/dist/VVRestApi.cjs.map +1 -1
- package/dist/VVRestApi.d.cts +26 -11
- package/dist/VVRestApi.d.ts +26 -11
- package/dist/VVRestApi.js +378 -88
- package/dist/VVRestApi.js.map +1 -1
- package/dist/config.yml +36 -4
- package/dist/index.cjs +378 -88
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +378 -88
- package/dist/index.js.map +1 -1
- package/package.json +74 -74
package/dist/VVRestApi.d.cts
CHANGED
|
@@ -64,12 +64,14 @@ declare class CurrentUserManager {
|
|
|
64
64
|
getCurrentUser(params?: any): Promise<string>;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
declare class
|
|
67
|
+
declare class DocumentManager {
|
|
68
68
|
constructor(httpHelper: any);
|
|
69
69
|
_httpHelper: any;
|
|
70
|
+
createDocument(data: any): Promise<any>;
|
|
70
71
|
GetRevision(documentRevisionId: any): Promise<any>;
|
|
71
72
|
getDocumentOcrStatus(documentRevisionId: any): Promise<any>;
|
|
72
73
|
updateDocumentOcrStatus(documentRevisionId: any, data: any): Promise<any>;
|
|
74
|
+
updateDocument(documentId: any, data: any): Promise<any>;
|
|
73
75
|
search(criteriaList: any, searchFolders: any, excludeFolders: any, sortBy: any, sortDirection?: string, page?: number, take?: number, archiveType?: number, roleSecurity?: boolean): Promise<any>;
|
|
74
76
|
}
|
|
75
77
|
|
|
@@ -79,7 +81,7 @@ declare class DocApi {
|
|
|
79
81
|
isEnabled: any;
|
|
80
82
|
baseUrl: any;
|
|
81
83
|
roleSecurity: any;
|
|
82
|
-
|
|
84
|
+
documents: DocumentManager;
|
|
83
85
|
}
|
|
84
86
|
|
|
85
87
|
declare class FormInstanceManager {
|
|
@@ -97,7 +99,7 @@ declare class FormsApi {
|
|
|
97
99
|
formInstances: FormInstanceManager;
|
|
98
100
|
}
|
|
99
101
|
|
|
100
|
-
declare class
|
|
102
|
+
declare class ModelManager {
|
|
101
103
|
constructor(httpHelper: any);
|
|
102
104
|
_httpHelper: any;
|
|
103
105
|
/**
|
|
@@ -113,7 +115,7 @@ declare class ModelsManager {
|
|
|
113
115
|
getModelById(modelId: string, params: object): Promise<any>;
|
|
114
116
|
}
|
|
115
117
|
|
|
116
|
-
declare class
|
|
118
|
+
declare class ObjectManager {
|
|
117
119
|
constructor(httpHelper: any);
|
|
118
120
|
_httpHelper: any;
|
|
119
121
|
/**
|
|
@@ -157,8 +159,8 @@ declare class ObjectsApi {
|
|
|
157
159
|
_httpHelper: HttpHelper;
|
|
158
160
|
isEnabled: any;
|
|
159
161
|
baseUrl: any;
|
|
160
|
-
models:
|
|
161
|
-
objects:
|
|
162
|
+
models: ModelManager;
|
|
163
|
+
objects: ObjectManager;
|
|
162
164
|
}
|
|
163
165
|
|
|
164
166
|
declare class WorkflowManager {
|
|
@@ -205,12 +207,23 @@ declare class WorkflowManager {
|
|
|
205
207
|
GetRunningWorkflowForObject(objectId: string, workflowId: string): Promise<any>;
|
|
206
208
|
}
|
|
207
209
|
|
|
210
|
+
declare class RolesAndPermissionsManager {
|
|
211
|
+
constructor(httpHelper: any);
|
|
212
|
+
_httpHelper: any;
|
|
213
|
+
/**
|
|
214
|
+
* Retrieves available features for the requesting user
|
|
215
|
+
* @param {object} params - Optional URL parameters to include in the request
|
|
216
|
+
*/
|
|
217
|
+
getUserFeatures(params: object): Promise<any>;
|
|
218
|
+
}
|
|
219
|
+
|
|
208
220
|
declare class StudioApi {
|
|
209
221
|
constructor(sessionToken: any, studioApiConfig: any);
|
|
210
222
|
_httpHelper: HttpHelper;
|
|
211
223
|
isEnabled: any;
|
|
212
224
|
baseUrl: any;
|
|
213
225
|
workflow: WorkflowManager;
|
|
226
|
+
permissions: RolesAndPermissionsManager;
|
|
214
227
|
}
|
|
215
228
|
|
|
216
229
|
declare class UserNotificationsManager {
|
|
@@ -302,14 +315,16 @@ declare class VVClient {
|
|
|
302
315
|
/** @type {*} */ securityMembers: any;
|
|
303
316
|
/** @type {*} */ layouts: any;
|
|
304
317
|
/** @type {*} */ reports: any;
|
|
318
|
+
/** @type {*} */ languageResources: any;
|
|
319
|
+
/** @type {*} */ dropdownLists: any;
|
|
305
320
|
yamlConfig: any;
|
|
306
321
|
_httpHelper: HttpHelper;
|
|
307
322
|
currentUser: CurrentUserManager;
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
323
|
+
docApi: DocApi;
|
|
324
|
+
formsApi: FormsApi;
|
|
325
|
+
objectsApi: ObjectsApi;
|
|
326
|
+
studioApi: StudioApi;
|
|
327
|
+
notificationsApi: NotificationsApi;
|
|
313
328
|
createDocApi(sessionToken: any): Promise<void>;
|
|
314
329
|
createFormsApi(sessionToken: any): Promise<void>;
|
|
315
330
|
createObjectsApi(sessionToken: any): Promise<void>;
|
package/dist/VVRestApi.d.ts
CHANGED
|
@@ -64,12 +64,14 @@ declare class CurrentUserManager {
|
|
|
64
64
|
getCurrentUser(params?: any): Promise<string>;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
declare class
|
|
67
|
+
declare class DocumentManager {
|
|
68
68
|
constructor(httpHelper: any);
|
|
69
69
|
_httpHelper: any;
|
|
70
|
+
createDocument(data: any): Promise<any>;
|
|
70
71
|
GetRevision(documentRevisionId: any): Promise<any>;
|
|
71
72
|
getDocumentOcrStatus(documentRevisionId: any): Promise<any>;
|
|
72
73
|
updateDocumentOcrStatus(documentRevisionId: any, data: any): Promise<any>;
|
|
74
|
+
updateDocument(documentId: any, data: any): Promise<any>;
|
|
73
75
|
search(criteriaList: any, searchFolders: any, excludeFolders: any, sortBy: any, sortDirection?: string, page?: number, take?: number, archiveType?: number, roleSecurity?: boolean): Promise<any>;
|
|
74
76
|
}
|
|
75
77
|
|
|
@@ -79,7 +81,7 @@ declare class DocApi {
|
|
|
79
81
|
isEnabled: any;
|
|
80
82
|
baseUrl: any;
|
|
81
83
|
roleSecurity: any;
|
|
82
|
-
|
|
84
|
+
documents: DocumentManager;
|
|
83
85
|
}
|
|
84
86
|
|
|
85
87
|
declare class FormInstanceManager {
|
|
@@ -97,7 +99,7 @@ declare class FormsApi {
|
|
|
97
99
|
formInstances: FormInstanceManager;
|
|
98
100
|
}
|
|
99
101
|
|
|
100
|
-
declare class
|
|
102
|
+
declare class ModelManager {
|
|
101
103
|
constructor(httpHelper: any);
|
|
102
104
|
_httpHelper: any;
|
|
103
105
|
/**
|
|
@@ -113,7 +115,7 @@ declare class ModelsManager {
|
|
|
113
115
|
getModelById(modelId: string, params: object): Promise<any>;
|
|
114
116
|
}
|
|
115
117
|
|
|
116
|
-
declare class
|
|
118
|
+
declare class ObjectManager {
|
|
117
119
|
constructor(httpHelper: any);
|
|
118
120
|
_httpHelper: any;
|
|
119
121
|
/**
|
|
@@ -157,8 +159,8 @@ declare class ObjectsApi {
|
|
|
157
159
|
_httpHelper: HttpHelper;
|
|
158
160
|
isEnabled: any;
|
|
159
161
|
baseUrl: any;
|
|
160
|
-
models:
|
|
161
|
-
objects:
|
|
162
|
+
models: ModelManager;
|
|
163
|
+
objects: ObjectManager;
|
|
162
164
|
}
|
|
163
165
|
|
|
164
166
|
declare class WorkflowManager {
|
|
@@ -205,12 +207,23 @@ declare class WorkflowManager {
|
|
|
205
207
|
GetRunningWorkflowForObject(objectId: string, workflowId: string): Promise<any>;
|
|
206
208
|
}
|
|
207
209
|
|
|
210
|
+
declare class RolesAndPermissionsManager {
|
|
211
|
+
constructor(httpHelper: any);
|
|
212
|
+
_httpHelper: any;
|
|
213
|
+
/**
|
|
214
|
+
* Retrieves available features for the requesting user
|
|
215
|
+
* @param {object} params - Optional URL parameters to include in the request
|
|
216
|
+
*/
|
|
217
|
+
getUserFeatures(params: object): Promise<any>;
|
|
218
|
+
}
|
|
219
|
+
|
|
208
220
|
declare class StudioApi {
|
|
209
221
|
constructor(sessionToken: any, studioApiConfig: any);
|
|
210
222
|
_httpHelper: HttpHelper;
|
|
211
223
|
isEnabled: any;
|
|
212
224
|
baseUrl: any;
|
|
213
225
|
workflow: WorkflowManager;
|
|
226
|
+
permissions: RolesAndPermissionsManager;
|
|
214
227
|
}
|
|
215
228
|
|
|
216
229
|
declare class UserNotificationsManager {
|
|
@@ -302,14 +315,16 @@ declare class VVClient {
|
|
|
302
315
|
/** @type {*} */ securityMembers: any;
|
|
303
316
|
/** @type {*} */ layouts: any;
|
|
304
317
|
/** @type {*} */ reports: any;
|
|
318
|
+
/** @type {*} */ languageResources: any;
|
|
319
|
+
/** @type {*} */ dropdownLists: any;
|
|
305
320
|
yamlConfig: any;
|
|
306
321
|
_httpHelper: HttpHelper;
|
|
307
322
|
currentUser: CurrentUserManager;
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
323
|
+
docApi: DocApi;
|
|
324
|
+
formsApi: FormsApi;
|
|
325
|
+
objectsApi: ObjectsApi;
|
|
326
|
+
studioApi: StudioApi;
|
|
327
|
+
notificationsApi: NotificationsApi;
|
|
313
328
|
createDocApi(sessionToken: any): Promise<void>;
|
|
314
329
|
createFormsApi(sessionToken: any): Promise<void>;
|
|
315
330
|
createObjectsApi(sessionToken: any): Promise<void>;
|