@resolveio/server-lib 20.1.0 → 20.1.2
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/methods.ts +16 -15
- package/package.json +2 -2
- package/publications.ts +10 -10
package/methods.ts
CHANGED
|
@@ -1,34 +1,35 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
export function SERVER_METHODS(manager) {
|
|
2
3
|
return {
|
|
3
4
|
cronEmailMergedDocsCleanUp: (cb?: Function): Promise<any> => {
|
|
4
|
-
return
|
|
5
|
+
return manager.call('cronEmailMergedDocsCleanUp', cb);
|
|
5
6
|
},
|
|
6
7
|
insertErrorLog: (message, data, cb?: Function): Promise<any> => {
|
|
7
|
-
return
|
|
8
|
+
return manager.call('insertErrorLog', message, data, cb);
|
|
8
9
|
},
|
|
9
10
|
collectionListAll: (cb?: Function): Promise<any> => {
|
|
10
|
-
return
|
|
11
|
+
return manager.call('collectionListAll', cb);
|
|
11
12
|
},
|
|
12
|
-
uploadFileAndSave: (fileName, fileData, fileSize, fileOrder, fileType, compress, cb?: Function): Promise<any> => {
|
|
13
|
-
return
|
|
13
|
+
uploadFileAndSave: (fileName: string, fileData: string, fileSize: number, fileOrder: number, fileType: string, compress: Boolean, cb?: Function): Promise<any> => {
|
|
14
|
+
return manager.call('uploadFileAndSave', fileName, fileData, fileSize, fileOrder, fileType, compress, cb);
|
|
14
15
|
},
|
|
15
16
|
generatePDF: (html, fileName, orientation = 'portrait', fontSize = '12px', upload = false, uploadFileOrder = -1, uploadFileType = '', cb?: Function): Promise<any> => {
|
|
16
|
-
return
|
|
17
|
+
return manager.call('generatePDF', html, fileName, orientation, fontSize, upload, uploadFileOrder, uploadFileType, cb);
|
|
17
18
|
},
|
|
18
19
|
incorrectUser: (old_user, new_user, client_subs, cb?: Function): Promise<any> => {
|
|
19
|
-
return
|
|
20
|
+
return manager.call('incorrectUser', old_user, new_user, client_subs, cb);
|
|
20
21
|
},
|
|
21
|
-
superadminMonitorGraphData: (date_start, date_end, collection, instance, client, graphInterval, variable, variableType, cb?: Function): Promise<any> => {
|
|
22
|
-
return
|
|
22
|
+
superadminMonitorGraphData: (date_start: Date, date_end: Date, collection: string, instance: string, client: string, graphInterval: string, variable: string, variableType: string, cb?: Function): Promise<any> => {
|
|
23
|
+
return manager.call('superadminMonitorGraphData', date_start, date_end, collection, instance, client, graphInterval, variable, variableType, cb);
|
|
23
24
|
},
|
|
24
25
|
supportCreateBillingUser: (user, cb?: Function): Promise<any> => {
|
|
25
|
-
return
|
|
26
|
+
return manager.call('supportCreateBillingUser', user, cb);
|
|
26
27
|
},
|
|
27
|
-
reportBuilderBuildTree: (collection_root, cb?: Function): Promise<any> => {
|
|
28
|
-
return
|
|
28
|
+
reportBuilderBuildTree: (collection_root: string, cb?: Function): Promise<any> => {
|
|
29
|
+
return manager.call('reportBuilderBuildTree', collection_root, cb);
|
|
29
30
|
},
|
|
30
|
-
incCounter: (counterType, cb?: Function): Promise<any> => {
|
|
31
|
-
return
|
|
31
|
+
incCounter: (counterType: string, cb?: Function): Promise<any> => {
|
|
32
|
+
return manager.call('incCounter', counterType, cb);
|
|
32
33
|
},
|
|
33
34
|
};
|
|
34
35
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@resolveio/server-lib",
|
|
3
|
-
"version": "20.1.
|
|
3
|
+
"version": "20.1.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"package": "./build_package.sh",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"jsonwebtoken": "8.5.1",
|
|
31
31
|
"jwt-decode": "3.1.2",
|
|
32
32
|
"moment-timezone": "0.5.43",
|
|
33
|
-
"mongodb": "
|
|
33
|
+
"mongodb": "6.2.0",
|
|
34
34
|
"node-cache": "5.1.2",
|
|
35
35
|
"node-google-timezone": "0.1.1",
|
|
36
36
|
"nodemailer": "6.9.7",
|
package/publications.ts
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
export function SERVER_PUBLICATIONS(
|
|
1
|
+
export function SERVER_PUBLICATIONS(manager) {
|
|
2
2
|
return {
|
|
3
3
|
usergroups: (cb?: Function): Promise<any> => {
|
|
4
|
-
return
|
|
4
|
+
return manager.subscribe('usergroups', cb);
|
|
5
5
|
},
|
|
6
6
|
cronjobs: (cb?: Function): Promise<any> => {
|
|
7
|
-
return
|
|
7
|
+
return manager.subscribe('cronjobs', cb);
|
|
8
8
|
},
|
|
9
9
|
reportbuilderdashboards: (cb?: Function): Promise<any> => {
|
|
10
|
-
return
|
|
10
|
+
return manager.subscribe('reportbuilderdashboards', cb);
|
|
11
11
|
},
|
|
12
12
|
notifications: (cb?: Function): Promise<any> => {
|
|
13
|
-
return
|
|
13
|
+
return manager.subscribe('notifications', cb);
|
|
14
14
|
},
|
|
15
15
|
reportbuilderreports: (cb?: Function): Promise<any> => {
|
|
16
|
-
return
|
|
16
|
+
return manager.subscribe('reportbuilderreports', cb);
|
|
17
17
|
},
|
|
18
18
|
userGuides: (cb?: Function): Promise<any> => {
|
|
19
|
-
return
|
|
19
|
+
return manager.subscribe('userGuides', cb);
|
|
20
20
|
},
|
|
21
21
|
methodresponses: (cb?: Function): Promise<any> => {
|
|
22
|
-
return
|
|
22
|
+
return manager.subscribe('methodresponses', cb);
|
|
23
23
|
},
|
|
24
24
|
reportbuilderlibraries: (cb?: Function): Promise<any> => {
|
|
25
|
-
return
|
|
25
|
+
return manager.subscribe('reportbuilderlibraries', cb);
|
|
26
26
|
},
|
|
27
27
|
appstatus: (cb?: Function): Promise<any> => {
|
|
28
|
-
return
|
|
28
|
+
return manager.subscribe('appstatus', cb);
|
|
29
29
|
},
|
|
30
30
|
};
|
|
31
31
|
}
|