@ptkl/sdk 0.9.15 → 0.10.0
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/dist/index.cjs.js +23 -24
- package/dist/index.esm.js +23 -24
- package/dist/index.iife.js +24 -25
- package/dist/monaco.d.ts +341 -13
- package/dist/package.json +1 -1
- package/dist/types/api/integrations/dms.d.ts +5 -5
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -19978,7 +19978,6 @@ class DMS extends IntegrationsBaseClient {
|
|
|
19978
19978
|
});
|
|
19979
19979
|
if (count == files.length) {
|
|
19980
19980
|
formData.append('path', payload.uploadDir);
|
|
19981
|
-
formData.append('ref', payload.uuid);
|
|
19982
19981
|
if (payload.public) {
|
|
19983
19982
|
formData.append('is_public', "true");
|
|
19984
19983
|
}
|
|
@@ -20006,7 +20005,7 @@ class DMS extends IntegrationsBaseClient {
|
|
|
20006
20005
|
});
|
|
20007
20006
|
}
|
|
20008
20007
|
async getMedia(lib, key, encoding) {
|
|
20009
|
-
return this.request('GET', `media/
|
|
20008
|
+
return this.request('GET', `media/get/${key}`, {
|
|
20010
20009
|
params: {
|
|
20011
20010
|
encoding
|
|
20012
20011
|
},
|
|
@@ -20014,21 +20013,21 @@ class DMS extends IntegrationsBaseClient {
|
|
|
20014
20013
|
});
|
|
20015
20014
|
}
|
|
20016
20015
|
async download(lib, key) {
|
|
20017
|
-
return this.request('POST', `media/
|
|
20016
|
+
return this.request('POST', `media/download`, {
|
|
20018
20017
|
data: {
|
|
20019
20018
|
key
|
|
20020
20019
|
},
|
|
20021
20020
|
responseType: 'blob'
|
|
20022
20021
|
});
|
|
20023
20022
|
}
|
|
20024
|
-
async getExifData(
|
|
20025
|
-
return this.request('GET', `media/
|
|
20023
|
+
async getExifData(key) {
|
|
20024
|
+
return this.request('GET', `media/exif/${key}`);
|
|
20026
20025
|
}
|
|
20027
|
-
async html2pdf(
|
|
20026
|
+
async html2pdf(data) {
|
|
20028
20027
|
const { output_pdf = false, input_path, input_html, output_path, output_file_name, output_type, data: templateData } = data;
|
|
20029
20028
|
const type = output_pdf ? 'arraybuffer' : 'json';
|
|
20030
20029
|
const contentType = output_pdf ? 'application/pdf' : 'application/json';
|
|
20031
|
-
return this.request('POST', `media/
|
|
20030
|
+
return this.request('POST', `media/pdf/html2pdf`, {
|
|
20032
20031
|
data: {
|
|
20033
20032
|
output_pdf,
|
|
20034
20033
|
input_path,
|
|
@@ -20044,20 +20043,20 @@ class DMS extends IntegrationsBaseClient {
|
|
|
20044
20043
|
responseType: type
|
|
20045
20044
|
});
|
|
20046
20045
|
}
|
|
20047
|
-
async createDir(
|
|
20048
|
-
return this.request('POST', `media/library
|
|
20046
|
+
async createDir(path) {
|
|
20047
|
+
return this.request('POST', `media/library/dir`, { data: { path } });
|
|
20049
20048
|
}
|
|
20050
|
-
async deleteDir(
|
|
20051
|
-
return this.request('
|
|
20049
|
+
async deleteDir(path) {
|
|
20050
|
+
return this.request('DELETE', `media/library/dir`, { data: { path } });
|
|
20052
20051
|
}
|
|
20053
|
-
async dirs(
|
|
20054
|
-
return await this.request("POST", `media/library
|
|
20052
|
+
async dirs(data) {
|
|
20053
|
+
return await this.request("POST", `media/library/dirs`, { data });
|
|
20055
20054
|
}
|
|
20056
20055
|
async fillPdf(lib, data) {
|
|
20057
20056
|
const { input_path, output_path, output_pdf = false, output_type, output_file_name, form_data, forms } = data;
|
|
20058
20057
|
const responseType = output_pdf ? 'arraybuffer' : 'json';
|
|
20059
20058
|
const contentType = output_pdf ? 'application/pdf' : 'application/json';
|
|
20060
|
-
return this.request('POST', `media/
|
|
20059
|
+
return this.request('POST', `media/pdf/fill`, {
|
|
20061
20060
|
data: {
|
|
20062
20061
|
input_path,
|
|
20063
20062
|
output_path,
|
|
@@ -20169,7 +20168,7 @@ class DMS extends IntegrationsBaseClient {
|
|
|
20169
20168
|
else if (to === 'excel' || to === 'xlsx') {
|
|
20170
20169
|
responseType = 'blob';
|
|
20171
20170
|
}
|
|
20172
|
-
return this.request('POST', `media/
|
|
20171
|
+
return this.request('POST', `media/convert/data`, {
|
|
20173
20172
|
data,
|
|
20174
20173
|
params: queryParams,
|
|
20175
20174
|
responseType,
|
|
@@ -20211,7 +20210,7 @@ class DMS extends IntegrationsBaseClient {
|
|
|
20211
20210
|
*/
|
|
20212
20211
|
async getDataInfo(lib, data, params) {
|
|
20213
20212
|
const { format } = params;
|
|
20214
|
-
return this.request('POST', `media/
|
|
20213
|
+
return this.request('POST', `media/convert/info`, {
|
|
20215
20214
|
data,
|
|
20216
20215
|
params: { format },
|
|
20217
20216
|
headers: {
|
|
@@ -20255,7 +20254,7 @@ class DMS extends IntegrationsBaseClient {
|
|
|
20255
20254
|
*/
|
|
20256
20255
|
async validateData(lib, data, params) {
|
|
20257
20256
|
const { format } = params;
|
|
20258
|
-
return this.request('POST', `media/
|
|
20257
|
+
return this.request('POST', `media/convert/validate`, {
|
|
20259
20258
|
data,
|
|
20260
20259
|
params: { format },
|
|
20261
20260
|
headers: {
|
|
@@ -20306,7 +20305,7 @@ class DMS extends IntegrationsBaseClient {
|
|
|
20306
20305
|
if (options === null || options === void 0 ? void 0 : options.field_order) {
|
|
20307
20306
|
params.field_order = options.field_order.join(',');
|
|
20308
20307
|
}
|
|
20309
|
-
return this.request('POST', `media/
|
|
20308
|
+
return this.request('POST', `media/convert/json-to-csv`, {
|
|
20310
20309
|
params,
|
|
20311
20310
|
data: jsonData,
|
|
20312
20311
|
responseType: 'text',
|
|
@@ -20368,7 +20367,7 @@ class DMS extends IntegrationsBaseClient {
|
|
|
20368
20367
|
if (options === null || options === void 0 ? void 0 : options.field_order) {
|
|
20369
20368
|
params.field_order = options.field_order.join(',');
|
|
20370
20369
|
}
|
|
20371
|
-
return this.request('POST', `media/
|
|
20370
|
+
return this.request('POST', `media/convert/json-to-excel`, {
|
|
20372
20371
|
data: jsonData,
|
|
20373
20372
|
params,
|
|
20374
20373
|
responseType: 'blob',
|
|
@@ -20400,7 +20399,7 @@ class DMS extends IntegrationsBaseClient {
|
|
|
20400
20399
|
* ```
|
|
20401
20400
|
*/
|
|
20402
20401
|
async csvToJson(lib, csvData) {
|
|
20403
|
-
return this.request('POST', `media/
|
|
20402
|
+
return this.request('POST', `media/convert/csv-to-json`, {
|
|
20404
20403
|
data: csvData,
|
|
20405
20404
|
responseType: 'json',
|
|
20406
20405
|
headers: {
|
|
@@ -20437,7 +20436,7 @@ class DMS extends IntegrationsBaseClient {
|
|
|
20437
20436
|
if (options === null || options === void 0 ? void 0 : options.sheet_name) {
|
|
20438
20437
|
params.sheet_name = options.sheet_name;
|
|
20439
20438
|
}
|
|
20440
|
-
return this.request('POST', `media/
|
|
20439
|
+
return this.request('POST', `media/convert/csv-to-excel`, {
|
|
20441
20440
|
data: csvData,
|
|
20442
20441
|
params,
|
|
20443
20442
|
responseType: 'blob',
|
|
@@ -20477,7 +20476,7 @@ class DMS extends IntegrationsBaseClient {
|
|
|
20477
20476
|
if (options === null || options === void 0 ? void 0 : options.sheet_name) {
|
|
20478
20477
|
params.sheet_name = options.sheet_name;
|
|
20479
20478
|
}
|
|
20480
|
-
return this.request('POST', `media/
|
|
20479
|
+
return this.request('POST', `media/convert/excel-to-json`, {
|
|
20481
20480
|
data: excelData,
|
|
20482
20481
|
params,
|
|
20483
20482
|
responseType: 'json',
|
|
@@ -20521,7 +20520,7 @@ class DMS extends IntegrationsBaseClient {
|
|
|
20521
20520
|
if (options === null || options === void 0 ? void 0 : options.sheet_name) {
|
|
20522
20521
|
params.sheet_name = options.sheet_name;
|
|
20523
20522
|
}
|
|
20524
|
-
return this.request('POST', `media/
|
|
20523
|
+
return this.request('POST', `media/convert/excel-to-csv`, {
|
|
20525
20524
|
data: excelData,
|
|
20526
20525
|
params,
|
|
20527
20526
|
responseType: 'text',
|
|
@@ -20533,7 +20532,7 @@ class DMS extends IntegrationsBaseClient {
|
|
|
20533
20532
|
async request(method, endpoint, params) {
|
|
20534
20533
|
return await this.client.request({
|
|
20535
20534
|
method: method,
|
|
20536
|
-
url: `/
|
|
20535
|
+
url: `/v3/dms/${endpoint}`,
|
|
20537
20536
|
...params
|
|
20538
20537
|
});
|
|
20539
20538
|
}
|
package/dist/index.esm.js
CHANGED
|
@@ -1009,7 +1009,6 @@ class DMS extends IntegrationsBaseClient {
|
|
|
1009
1009
|
});
|
|
1010
1010
|
if (count == files.length) {
|
|
1011
1011
|
formData.append('path', payload.uploadDir);
|
|
1012
|
-
formData.append('ref', payload.uuid);
|
|
1013
1012
|
if (payload.public) {
|
|
1014
1013
|
formData.append('is_public', "true");
|
|
1015
1014
|
}
|
|
@@ -1037,7 +1036,7 @@ class DMS extends IntegrationsBaseClient {
|
|
|
1037
1036
|
});
|
|
1038
1037
|
}
|
|
1039
1038
|
async getMedia(lib, key, encoding) {
|
|
1040
|
-
return this.request('GET', `media/
|
|
1039
|
+
return this.request('GET', `media/get/${key}`, {
|
|
1041
1040
|
params: {
|
|
1042
1041
|
encoding
|
|
1043
1042
|
},
|
|
@@ -1045,21 +1044,21 @@ class DMS extends IntegrationsBaseClient {
|
|
|
1045
1044
|
});
|
|
1046
1045
|
}
|
|
1047
1046
|
async download(lib, key) {
|
|
1048
|
-
return this.request('POST', `media/
|
|
1047
|
+
return this.request('POST', `media/download`, {
|
|
1049
1048
|
data: {
|
|
1050
1049
|
key
|
|
1051
1050
|
},
|
|
1052
1051
|
responseType: 'blob'
|
|
1053
1052
|
});
|
|
1054
1053
|
}
|
|
1055
|
-
async getExifData(
|
|
1056
|
-
return this.request('GET', `media/
|
|
1054
|
+
async getExifData(key) {
|
|
1055
|
+
return this.request('GET', `media/exif/${key}`);
|
|
1057
1056
|
}
|
|
1058
|
-
async html2pdf(
|
|
1057
|
+
async html2pdf(data) {
|
|
1059
1058
|
const { output_pdf = false, input_path, input_html, output_path, output_file_name, output_type, data: templateData } = data;
|
|
1060
1059
|
const type = output_pdf ? 'arraybuffer' : 'json';
|
|
1061
1060
|
const contentType = output_pdf ? 'application/pdf' : 'application/json';
|
|
1062
|
-
return this.request('POST', `media/
|
|
1061
|
+
return this.request('POST', `media/pdf/html2pdf`, {
|
|
1063
1062
|
data: {
|
|
1064
1063
|
output_pdf,
|
|
1065
1064
|
input_path,
|
|
@@ -1075,20 +1074,20 @@ class DMS extends IntegrationsBaseClient {
|
|
|
1075
1074
|
responseType: type
|
|
1076
1075
|
});
|
|
1077
1076
|
}
|
|
1078
|
-
async createDir(
|
|
1079
|
-
return this.request('POST', `media/library
|
|
1077
|
+
async createDir(path) {
|
|
1078
|
+
return this.request('POST', `media/library/dir`, { data: { path } });
|
|
1080
1079
|
}
|
|
1081
|
-
async deleteDir(
|
|
1082
|
-
return this.request('
|
|
1080
|
+
async deleteDir(path) {
|
|
1081
|
+
return this.request('DELETE', `media/library/dir`, { data: { path } });
|
|
1083
1082
|
}
|
|
1084
|
-
async dirs(
|
|
1085
|
-
return await this.request("POST", `media/library
|
|
1083
|
+
async dirs(data) {
|
|
1084
|
+
return await this.request("POST", `media/library/dirs`, { data });
|
|
1086
1085
|
}
|
|
1087
1086
|
async fillPdf(lib, data) {
|
|
1088
1087
|
const { input_path, output_path, output_pdf = false, output_type, output_file_name, form_data, forms } = data;
|
|
1089
1088
|
const responseType = output_pdf ? 'arraybuffer' : 'json';
|
|
1090
1089
|
const contentType = output_pdf ? 'application/pdf' : 'application/json';
|
|
1091
|
-
return this.request('POST', `media/
|
|
1090
|
+
return this.request('POST', `media/pdf/fill`, {
|
|
1092
1091
|
data: {
|
|
1093
1092
|
input_path,
|
|
1094
1093
|
output_path,
|
|
@@ -1200,7 +1199,7 @@ class DMS extends IntegrationsBaseClient {
|
|
|
1200
1199
|
else if (to === 'excel' || to === 'xlsx') {
|
|
1201
1200
|
responseType = 'blob';
|
|
1202
1201
|
}
|
|
1203
|
-
return this.request('POST', `media/
|
|
1202
|
+
return this.request('POST', `media/convert/data`, {
|
|
1204
1203
|
data,
|
|
1205
1204
|
params: queryParams,
|
|
1206
1205
|
responseType,
|
|
@@ -1242,7 +1241,7 @@ class DMS extends IntegrationsBaseClient {
|
|
|
1242
1241
|
*/
|
|
1243
1242
|
async getDataInfo(lib, data, params) {
|
|
1244
1243
|
const { format } = params;
|
|
1245
|
-
return this.request('POST', `media/
|
|
1244
|
+
return this.request('POST', `media/convert/info`, {
|
|
1246
1245
|
data,
|
|
1247
1246
|
params: { format },
|
|
1248
1247
|
headers: {
|
|
@@ -1286,7 +1285,7 @@ class DMS extends IntegrationsBaseClient {
|
|
|
1286
1285
|
*/
|
|
1287
1286
|
async validateData(lib, data, params) {
|
|
1288
1287
|
const { format } = params;
|
|
1289
|
-
return this.request('POST', `media/
|
|
1288
|
+
return this.request('POST', `media/convert/validate`, {
|
|
1290
1289
|
data,
|
|
1291
1290
|
params: { format },
|
|
1292
1291
|
headers: {
|
|
@@ -1337,7 +1336,7 @@ class DMS extends IntegrationsBaseClient {
|
|
|
1337
1336
|
if (options === null || options === void 0 ? void 0 : options.field_order) {
|
|
1338
1337
|
params.field_order = options.field_order.join(',');
|
|
1339
1338
|
}
|
|
1340
|
-
return this.request('POST', `media/
|
|
1339
|
+
return this.request('POST', `media/convert/json-to-csv`, {
|
|
1341
1340
|
params,
|
|
1342
1341
|
data: jsonData,
|
|
1343
1342
|
responseType: 'text',
|
|
@@ -1399,7 +1398,7 @@ class DMS extends IntegrationsBaseClient {
|
|
|
1399
1398
|
if (options === null || options === void 0 ? void 0 : options.field_order) {
|
|
1400
1399
|
params.field_order = options.field_order.join(',');
|
|
1401
1400
|
}
|
|
1402
|
-
return this.request('POST', `media/
|
|
1401
|
+
return this.request('POST', `media/convert/json-to-excel`, {
|
|
1403
1402
|
data: jsonData,
|
|
1404
1403
|
params,
|
|
1405
1404
|
responseType: 'blob',
|
|
@@ -1431,7 +1430,7 @@ class DMS extends IntegrationsBaseClient {
|
|
|
1431
1430
|
* ```
|
|
1432
1431
|
*/
|
|
1433
1432
|
async csvToJson(lib, csvData) {
|
|
1434
|
-
return this.request('POST', `media/
|
|
1433
|
+
return this.request('POST', `media/convert/csv-to-json`, {
|
|
1435
1434
|
data: csvData,
|
|
1436
1435
|
responseType: 'json',
|
|
1437
1436
|
headers: {
|
|
@@ -1468,7 +1467,7 @@ class DMS extends IntegrationsBaseClient {
|
|
|
1468
1467
|
if (options === null || options === void 0 ? void 0 : options.sheet_name) {
|
|
1469
1468
|
params.sheet_name = options.sheet_name;
|
|
1470
1469
|
}
|
|
1471
|
-
return this.request('POST', `media/
|
|
1470
|
+
return this.request('POST', `media/convert/csv-to-excel`, {
|
|
1472
1471
|
data: csvData,
|
|
1473
1472
|
params,
|
|
1474
1473
|
responseType: 'blob',
|
|
@@ -1508,7 +1507,7 @@ class DMS extends IntegrationsBaseClient {
|
|
|
1508
1507
|
if (options === null || options === void 0 ? void 0 : options.sheet_name) {
|
|
1509
1508
|
params.sheet_name = options.sheet_name;
|
|
1510
1509
|
}
|
|
1511
|
-
return this.request('POST', `media/
|
|
1510
|
+
return this.request('POST', `media/convert/excel-to-json`, {
|
|
1512
1511
|
data: excelData,
|
|
1513
1512
|
params,
|
|
1514
1513
|
responseType: 'json',
|
|
@@ -1552,7 +1551,7 @@ class DMS extends IntegrationsBaseClient {
|
|
|
1552
1551
|
if (options === null || options === void 0 ? void 0 : options.sheet_name) {
|
|
1553
1552
|
params.sheet_name = options.sheet_name;
|
|
1554
1553
|
}
|
|
1555
|
-
return this.request('POST', `media/
|
|
1554
|
+
return this.request('POST', `media/convert/excel-to-csv`, {
|
|
1556
1555
|
data: excelData,
|
|
1557
1556
|
params,
|
|
1558
1557
|
responseType: 'text',
|
|
@@ -1564,7 +1563,7 @@ class DMS extends IntegrationsBaseClient {
|
|
|
1564
1563
|
async request(method, endpoint, params) {
|
|
1565
1564
|
return await this.client.request({
|
|
1566
1565
|
method: method,
|
|
1567
|
-
url: `/
|
|
1566
|
+
url: `/v3/dms/${endpoint}`,
|
|
1568
1567
|
...params
|
|
1569
1568
|
});
|
|
1570
1569
|
}
|
package/dist/index.iife.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var
|
|
1
|
+
var ProtokolSDK010 = (function (exports, axios) {
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
class BaseClient {
|
|
@@ -1010,7 +1010,6 @@ var ProtokolSDK09 = (function (exports, axios) {
|
|
|
1010
1010
|
});
|
|
1011
1011
|
if (count == files.length) {
|
|
1012
1012
|
formData.append('path', payload.uploadDir);
|
|
1013
|
-
formData.append('ref', payload.uuid);
|
|
1014
1013
|
if (payload.public) {
|
|
1015
1014
|
formData.append('is_public', "true");
|
|
1016
1015
|
}
|
|
@@ -1038,7 +1037,7 @@ var ProtokolSDK09 = (function (exports, axios) {
|
|
|
1038
1037
|
});
|
|
1039
1038
|
}
|
|
1040
1039
|
async getMedia(lib, key, encoding) {
|
|
1041
|
-
return this.request('GET', `media/
|
|
1040
|
+
return this.request('GET', `media/get/${key}`, {
|
|
1042
1041
|
params: {
|
|
1043
1042
|
encoding
|
|
1044
1043
|
},
|
|
@@ -1046,21 +1045,21 @@ var ProtokolSDK09 = (function (exports, axios) {
|
|
|
1046
1045
|
});
|
|
1047
1046
|
}
|
|
1048
1047
|
async download(lib, key) {
|
|
1049
|
-
return this.request('POST', `media/
|
|
1048
|
+
return this.request('POST', `media/download`, {
|
|
1050
1049
|
data: {
|
|
1051
1050
|
key
|
|
1052
1051
|
},
|
|
1053
1052
|
responseType: 'blob'
|
|
1054
1053
|
});
|
|
1055
1054
|
}
|
|
1056
|
-
async getExifData(
|
|
1057
|
-
return this.request('GET', `media/
|
|
1055
|
+
async getExifData(key) {
|
|
1056
|
+
return this.request('GET', `media/exif/${key}`);
|
|
1058
1057
|
}
|
|
1059
|
-
async html2pdf(
|
|
1058
|
+
async html2pdf(data) {
|
|
1060
1059
|
const { output_pdf = false, input_path, input_html, output_path, output_file_name, output_type, data: templateData } = data;
|
|
1061
1060
|
const type = output_pdf ? 'arraybuffer' : 'json';
|
|
1062
1061
|
const contentType = output_pdf ? 'application/pdf' : 'application/json';
|
|
1063
|
-
return this.request('POST', `media/
|
|
1062
|
+
return this.request('POST', `media/pdf/html2pdf`, {
|
|
1064
1063
|
data: {
|
|
1065
1064
|
output_pdf,
|
|
1066
1065
|
input_path,
|
|
@@ -1076,20 +1075,20 @@ var ProtokolSDK09 = (function (exports, axios) {
|
|
|
1076
1075
|
responseType: type
|
|
1077
1076
|
});
|
|
1078
1077
|
}
|
|
1079
|
-
async createDir(
|
|
1080
|
-
return this.request('POST', `media/library
|
|
1078
|
+
async createDir(path) {
|
|
1079
|
+
return this.request('POST', `media/library/dir`, { data: { path } });
|
|
1081
1080
|
}
|
|
1082
|
-
async deleteDir(
|
|
1083
|
-
return this.request('
|
|
1081
|
+
async deleteDir(path) {
|
|
1082
|
+
return this.request('DELETE', `media/library/dir`, { data: { path } });
|
|
1084
1083
|
}
|
|
1085
|
-
async dirs(
|
|
1086
|
-
return await this.request("POST", `media/library
|
|
1084
|
+
async dirs(data) {
|
|
1085
|
+
return await this.request("POST", `media/library/dirs`, { data });
|
|
1087
1086
|
}
|
|
1088
1087
|
async fillPdf(lib, data) {
|
|
1089
1088
|
const { input_path, output_path, output_pdf = false, output_type, output_file_name, form_data, forms } = data;
|
|
1090
1089
|
const responseType = output_pdf ? 'arraybuffer' : 'json';
|
|
1091
1090
|
const contentType = output_pdf ? 'application/pdf' : 'application/json';
|
|
1092
|
-
return this.request('POST', `media/
|
|
1091
|
+
return this.request('POST', `media/pdf/fill`, {
|
|
1093
1092
|
data: {
|
|
1094
1093
|
input_path,
|
|
1095
1094
|
output_path,
|
|
@@ -1201,7 +1200,7 @@ var ProtokolSDK09 = (function (exports, axios) {
|
|
|
1201
1200
|
else if (to === 'excel' || to === 'xlsx') {
|
|
1202
1201
|
responseType = 'blob';
|
|
1203
1202
|
}
|
|
1204
|
-
return this.request('POST', `media/
|
|
1203
|
+
return this.request('POST', `media/convert/data`, {
|
|
1205
1204
|
data,
|
|
1206
1205
|
params: queryParams,
|
|
1207
1206
|
responseType,
|
|
@@ -1243,7 +1242,7 @@ var ProtokolSDK09 = (function (exports, axios) {
|
|
|
1243
1242
|
*/
|
|
1244
1243
|
async getDataInfo(lib, data, params) {
|
|
1245
1244
|
const { format } = params;
|
|
1246
|
-
return this.request('POST', `media/
|
|
1245
|
+
return this.request('POST', `media/convert/info`, {
|
|
1247
1246
|
data,
|
|
1248
1247
|
params: { format },
|
|
1249
1248
|
headers: {
|
|
@@ -1287,7 +1286,7 @@ var ProtokolSDK09 = (function (exports, axios) {
|
|
|
1287
1286
|
*/
|
|
1288
1287
|
async validateData(lib, data, params) {
|
|
1289
1288
|
const { format } = params;
|
|
1290
|
-
return this.request('POST', `media/
|
|
1289
|
+
return this.request('POST', `media/convert/validate`, {
|
|
1291
1290
|
data,
|
|
1292
1291
|
params: { format },
|
|
1293
1292
|
headers: {
|
|
@@ -1338,7 +1337,7 @@ var ProtokolSDK09 = (function (exports, axios) {
|
|
|
1338
1337
|
if (options === null || options === void 0 ? void 0 : options.field_order) {
|
|
1339
1338
|
params.field_order = options.field_order.join(',');
|
|
1340
1339
|
}
|
|
1341
|
-
return this.request('POST', `media/
|
|
1340
|
+
return this.request('POST', `media/convert/json-to-csv`, {
|
|
1342
1341
|
params,
|
|
1343
1342
|
data: jsonData,
|
|
1344
1343
|
responseType: 'text',
|
|
@@ -1400,7 +1399,7 @@ var ProtokolSDK09 = (function (exports, axios) {
|
|
|
1400
1399
|
if (options === null || options === void 0 ? void 0 : options.field_order) {
|
|
1401
1400
|
params.field_order = options.field_order.join(',');
|
|
1402
1401
|
}
|
|
1403
|
-
return this.request('POST', `media/
|
|
1402
|
+
return this.request('POST', `media/convert/json-to-excel`, {
|
|
1404
1403
|
data: jsonData,
|
|
1405
1404
|
params,
|
|
1406
1405
|
responseType: 'blob',
|
|
@@ -1432,7 +1431,7 @@ var ProtokolSDK09 = (function (exports, axios) {
|
|
|
1432
1431
|
* ```
|
|
1433
1432
|
*/
|
|
1434
1433
|
async csvToJson(lib, csvData) {
|
|
1435
|
-
return this.request('POST', `media/
|
|
1434
|
+
return this.request('POST', `media/convert/csv-to-json`, {
|
|
1436
1435
|
data: csvData,
|
|
1437
1436
|
responseType: 'json',
|
|
1438
1437
|
headers: {
|
|
@@ -1469,7 +1468,7 @@ var ProtokolSDK09 = (function (exports, axios) {
|
|
|
1469
1468
|
if (options === null || options === void 0 ? void 0 : options.sheet_name) {
|
|
1470
1469
|
params.sheet_name = options.sheet_name;
|
|
1471
1470
|
}
|
|
1472
|
-
return this.request('POST', `media/
|
|
1471
|
+
return this.request('POST', `media/convert/csv-to-excel`, {
|
|
1473
1472
|
data: csvData,
|
|
1474
1473
|
params,
|
|
1475
1474
|
responseType: 'blob',
|
|
@@ -1509,7 +1508,7 @@ var ProtokolSDK09 = (function (exports, axios) {
|
|
|
1509
1508
|
if (options === null || options === void 0 ? void 0 : options.sheet_name) {
|
|
1510
1509
|
params.sheet_name = options.sheet_name;
|
|
1511
1510
|
}
|
|
1512
|
-
return this.request('POST', `media/
|
|
1511
|
+
return this.request('POST', `media/convert/excel-to-json`, {
|
|
1513
1512
|
data: excelData,
|
|
1514
1513
|
params,
|
|
1515
1514
|
responseType: 'json',
|
|
@@ -1553,7 +1552,7 @@ var ProtokolSDK09 = (function (exports, axios) {
|
|
|
1553
1552
|
if (options === null || options === void 0 ? void 0 : options.sheet_name) {
|
|
1554
1553
|
params.sheet_name = options.sheet_name;
|
|
1555
1554
|
}
|
|
1556
|
-
return this.request('POST', `media/
|
|
1555
|
+
return this.request('POST', `media/convert/excel-to-csv`, {
|
|
1557
1556
|
data: excelData,
|
|
1558
1557
|
params,
|
|
1559
1558
|
responseType: 'text',
|
|
@@ -1565,7 +1564,7 @@ var ProtokolSDK09 = (function (exports, axios) {
|
|
|
1565
1564
|
async request(method, endpoint, params) {
|
|
1566
1565
|
return await this.client.request({
|
|
1567
1566
|
method: method,
|
|
1568
|
-
url: `/
|
|
1567
|
+
url: `/v3/dms/${endpoint}`,
|
|
1569
1568
|
...params
|
|
1570
1569
|
});
|
|
1571
1570
|
}
|
package/dist/monaco.d.ts
CHANGED
|
@@ -8,7 +8,6 @@ export { default as System } from './api/system';
|
|
|
8
8
|
export { default as User } from './api/users';
|
|
9
9
|
export { default as Functions } from './api/functions';
|
|
10
10
|
export { default as APIUser } from './api/apiUser';
|
|
11
|
-
export { default as Roles } from './api/roles';
|
|
12
11
|
export { default as Apps } from './api/apps';
|
|
13
12
|
export { default as Workflow } from './api/workflow';
|
|
14
13
|
export { default as ComponentUtils } from './api/componentUtils';
|
|
@@ -20,9 +19,13 @@ export { default as Invoicing } from './api/integrations/invoicing';
|
|
|
20
19
|
export { default as DMS } from './api/integrations/dms';
|
|
21
20
|
export { default as SerbiaUtil } from './api/integrations/serbiaUtil';
|
|
22
21
|
export { default as VPFR } from './api/integrations/vpfr';
|
|
22
|
+
export { default as Project } from './api/project';
|
|
23
|
+
export { default as Config } from './api/config';
|
|
23
24
|
export type * from './types/component';
|
|
24
25
|
export type * from './types/integrations';
|
|
25
26
|
export type * from './types/users';
|
|
27
|
+
export type * from './types/project';
|
|
28
|
+
export type * from './types/config';
|
|
26
29
|
export default Platform;
|
|
27
30
|
|
|
28
31
|
}
|
|
@@ -85,6 +88,19 @@ declare type ModifyOptions = {
|
|
|
85
88
|
upsert: boolean;
|
|
86
89
|
};
|
|
87
90
|
|
|
91
|
+
declare interface UserConfig {
|
|
92
|
+
uuid?: string;
|
|
93
|
+
user_uuid: string;
|
|
94
|
+
data: Record<string, any>;
|
|
95
|
+
created_at?: string;
|
|
96
|
+
updated_at?: string;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
declare interface ConfigUpdateRequest {
|
|
100
|
+
data: Record<string, any>;
|
|
101
|
+
path: string;
|
|
102
|
+
}
|
|
103
|
+
|
|
88
104
|
declare type PaymentProvider = 'monri';
|
|
89
105
|
|
|
90
106
|
declare type GetPaymentLinkOptions = {
|
|
@@ -183,6 +199,8 @@ declare type DataConversionParams = {
|
|
|
183
199
|
footer_as_comment?: boolean;
|
|
184
200
|
/** Empty rows between sections (default: 1) */
|
|
185
201
|
separator_rows?: number;
|
|
202
|
+
/** Specify order of fields/columns */
|
|
203
|
+
field_order?: string[];
|
|
186
204
|
};
|
|
187
205
|
|
|
188
206
|
/**
|
|
@@ -236,9 +254,213 @@ declare type DataValidationResult = {
|
|
|
236
254
|
*/
|
|
237
255
|
declare type ConversionOptions = {
|
|
238
256
|
/** Excel sheet name for read/write operations (defaults to "Sheet1") */
|
|
239
|
-
sheet_name?: string;
|
|
257
|
+
sheet_name?: string; /** Specify order of fields/columns */
|
|
258
|
+
field_order?: string[];
|
|
259
|
+
};
|
|
260
|
+
|
|
261
|
+
declare type NbsIpsQrCode = {
|
|
262
|
+
TransactionType: string;
|
|
263
|
+
Version: string;
|
|
264
|
+
CharacterSet: string;
|
|
265
|
+
RecipientAccountNumber: string;
|
|
266
|
+
RecipientName: string;
|
|
267
|
+
AmountInLocalCurrency: string;
|
|
268
|
+
PayerInformation: string;
|
|
269
|
+
PaymentPurposeCode: string;
|
|
270
|
+
PurposeOfPayment: string;
|
|
271
|
+
PaymentOrderNumber: string;
|
|
240
272
|
};
|
|
241
273
|
|
|
274
|
+
declare interface MediaLibrary {
|
|
275
|
+
uuid: string;
|
|
276
|
+
ref: string;
|
|
277
|
+
name: string;
|
|
278
|
+
description?: string;
|
|
279
|
+
type?: string;
|
|
280
|
+
project_uuid: string;
|
|
281
|
+
workspace_uuid?: string;
|
|
282
|
+
created_at: string;
|
|
283
|
+
updated_at: string;
|
|
284
|
+
settings?: MediaLibrarySettings;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
declare interface MediaLibrarySettings {
|
|
288
|
+
max_file_size?: number;
|
|
289
|
+
allowed_types?: string[];
|
|
290
|
+
public?: boolean;
|
|
291
|
+
[key: string]: any;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
declare interface MediaFile {
|
|
295
|
+
uuid: string;
|
|
296
|
+
key: string;
|
|
297
|
+
name: string;
|
|
298
|
+
path: string;
|
|
299
|
+
size: number;
|
|
300
|
+
mime_type: string;
|
|
301
|
+
library_uuid: string;
|
|
302
|
+
created_at: string;
|
|
303
|
+
updated_at: string;
|
|
304
|
+
metadata?: MediaFileMetadata;
|
|
305
|
+
is_directory?: boolean;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
declare interface MediaFileMetadata {
|
|
309
|
+
width?: number;
|
|
310
|
+
height?: number;
|
|
311
|
+
duration?: number;
|
|
312
|
+
[key: string]: any;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
declare interface MediaListRequest {
|
|
316
|
+
library_uuid?: string;
|
|
317
|
+
library_ref?: string;
|
|
318
|
+
path?: string;
|
|
319
|
+
page?: number;
|
|
320
|
+
limit?: number;
|
|
321
|
+
search?: string;
|
|
322
|
+
mime_type?: string;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
declare interface MediaListResponse {
|
|
326
|
+
files: MediaFile[];
|
|
327
|
+
total: number;
|
|
328
|
+
page: number;
|
|
329
|
+
limit: number;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
declare interface MediaUploadRequest {
|
|
333
|
+
library_uuid?: string;
|
|
334
|
+
library_ref?: string;
|
|
335
|
+
path?: string;
|
|
336
|
+
file: File | Blob;
|
|
337
|
+
name?: string;
|
|
338
|
+
metadata?: Record<string, any>;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
declare interface MediaDownloadRequest {
|
|
342
|
+
keys: string[];
|
|
343
|
+
zip?: boolean;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
declare interface MediaShareRequest {
|
|
347
|
+
keys: string[];
|
|
348
|
+
expires_in?: number;
|
|
349
|
+
password?: string;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
declare interface MediaShareResponse {
|
|
353
|
+
url: string;
|
|
354
|
+
expires_at?: string;
|
|
355
|
+
token?: string;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
declare interface MediaDirectory {
|
|
359
|
+
name: string;
|
|
360
|
+
path: string;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
declare interface MediaMoveRequest {
|
|
364
|
+
keys: string[];
|
|
365
|
+
destination: string;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
declare interface MediaDeleteRequest {
|
|
369
|
+
keys: string[];
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
declare interface ExifData {
|
|
373
|
+
[key: string]: any;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
declare interface Html2PdfRequest {
|
|
377
|
+
html: string;
|
|
378
|
+
options?: {
|
|
379
|
+
format?: "A4" | "Letter" | string;
|
|
380
|
+
orientation?: "portrait" | "landscape";
|
|
381
|
+
margin?: {
|
|
382
|
+
top?: string;
|
|
383
|
+
right?: string;
|
|
384
|
+
bottom?: string;
|
|
385
|
+
left?: string;
|
|
386
|
+
};
|
|
387
|
+
[key: string]: any;
|
|
388
|
+
};
|
|
389
|
+
output_path?: string;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
declare interface ProjectModel {
|
|
393
|
+
uuid: string;
|
|
394
|
+
name: string;
|
|
395
|
+
description?: string;
|
|
396
|
+
created_at: string;
|
|
397
|
+
updated_at: string;
|
|
398
|
+
deleted_at?: string | null;
|
|
399
|
+
owner_uuid: string;
|
|
400
|
+
archived: boolean;
|
|
401
|
+
settings?: ProjectSettings;
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
declare interface ProjectSettings {
|
|
405
|
+
[key: string]: any;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
declare interface ProjectUser {
|
|
409
|
+
uuid: string;
|
|
410
|
+
name: string;
|
|
411
|
+
email: string;
|
|
412
|
+
roles: string[];
|
|
413
|
+
created_at: string;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
declare interface ProjectInvite {
|
|
417
|
+
uuid: string;
|
|
418
|
+
email: string;
|
|
419
|
+
roles: string[];
|
|
420
|
+
status: string;
|
|
421
|
+
created_at: string;
|
|
422
|
+
expires_at: string;
|
|
423
|
+
project_uuid: string;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
declare interface Workspace {
|
|
427
|
+
uuid: string;
|
|
428
|
+
name: string;
|
|
429
|
+
description?: string;
|
|
430
|
+
project_uuid: string;
|
|
431
|
+
created_at: string;
|
|
432
|
+
updated_at: string;
|
|
433
|
+
deleted_at?: string | null;
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
declare interface Template {
|
|
437
|
+
id: string;
|
|
438
|
+
name: string;
|
|
439
|
+
description?: string;
|
|
440
|
+
version: string;
|
|
441
|
+
category?: string;
|
|
442
|
+
tags?: string[];
|
|
443
|
+
author?: string;
|
|
444
|
+
created_at?: string;
|
|
445
|
+
updated_at?: string;
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
declare interface TemplateInstallation {
|
|
449
|
+
template_id: string;
|
|
450
|
+
workspace_uuid: string;
|
|
451
|
+
version?: string;
|
|
452
|
+
config?: Record<string, any>;
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
declare interface Transaction {
|
|
456
|
+
uuid: string;
|
|
457
|
+
type: string;
|
|
458
|
+
amount: number;
|
|
459
|
+
status: string;
|
|
460
|
+
created_at: string;
|
|
461
|
+
metadata?: Record<string, any>;
|
|
462
|
+
}
|
|
463
|
+
|
|
242
464
|
declare interface UserModel {
|
|
243
465
|
uuid: string;
|
|
244
466
|
name: string;
|
|
@@ -275,6 +497,43 @@ declare interface UserClaims {
|
|
|
275
497
|
exp: number;
|
|
276
498
|
}
|
|
277
499
|
|
|
500
|
+
declare interface Role {
|
|
501
|
+
uuid: string;
|
|
502
|
+
CreatedAt: string;
|
|
503
|
+
UpdatedAt: string;
|
|
504
|
+
DeletedAt: string | null;
|
|
505
|
+
name: string;
|
|
506
|
+
level: number;
|
|
507
|
+
project_uuid: string;
|
|
508
|
+
is_admin: boolean;
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
declare interface EditRoleRequest {
|
|
512
|
+
permissions: string[];
|
|
513
|
+
workspaces: string[];
|
|
514
|
+
level: number;
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
declare interface CreateRoleRequest extends EditRoleRequest {
|
|
518
|
+
name: string;
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
declare interface RoleModel {
|
|
522
|
+
name: string;
|
|
523
|
+
permissions: string[];
|
|
524
|
+
workspaces: string[];
|
|
525
|
+
level: number;
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
declare interface Permission {
|
|
529
|
+
uuid: string;
|
|
530
|
+
CreatedAt: string;
|
|
531
|
+
UpdatedAt: string;
|
|
532
|
+
DeletedAt: string | null;
|
|
533
|
+
action: string;
|
|
534
|
+
role_uuid: string;
|
|
535
|
+
}
|
|
536
|
+
|
|
278
537
|
declare class APIUserConstructor extends PlatformBaseClientConstructor {
|
|
279
538
|
constructor();
|
|
280
539
|
auth(username: string, password: string, project: string): Promise<any>;
|
|
@@ -314,6 +573,7 @@ declare class ComponentConstructor extends PlatformBaseClientConstructor {
|
|
|
314
573
|
saveTemplatesDist(version: string, sdkVersion: string, engine: string, dist: Record<string, string>): Promise<any>;
|
|
315
574
|
workflow(event: string, input: any): Promise<any>;
|
|
316
575
|
function(name: string, input: any): Promise<any>;
|
|
576
|
+
revisions(uuid: string): Promise<any>;
|
|
317
577
|
}
|
|
318
578
|
|
|
319
579
|
declare class ComponentUtilsConstructor extends PlatformBaseClientConstructor {
|
|
@@ -322,6 +582,12 @@ declare class ComponentUtilsConstructor extends PlatformBaseClientConstructor {
|
|
|
322
582
|
create(data: any): Promise<any>;
|
|
323
583
|
}
|
|
324
584
|
|
|
585
|
+
declare class ConfigConstructor extends PlatformBaseClientConstructor {
|
|
586
|
+
constructor();
|
|
587
|
+
getUserConfig(): Promise<any>;
|
|
588
|
+
updateUserConfig(config: ConfigUpdateRequest): Promise<any>;
|
|
589
|
+
}
|
|
590
|
+
|
|
325
591
|
declare class DMSConstructor extends IntegrationsBaseClientConstructor {
|
|
326
592
|
constructor();
|
|
327
593
|
list(data: any): Promise<any>;
|
|
@@ -340,7 +606,7 @@ declare class DMSConstructor extends IntegrationsBaseClientConstructor {
|
|
|
340
606
|
convertData(lib: string, data: any, params: DataConversionParams): Promise<any>;
|
|
341
607
|
getDataInfo(lib: string, data: any, params: DataInfoParams): Promise<any>;
|
|
342
608
|
validateData(lib: string, data: any, params: DataValidationParams): Promise<any>;
|
|
343
|
-
jsonToCsv(lib: string, jsonData: any): Promise<any>;
|
|
609
|
+
jsonToCsv(lib: string, jsonData: any, options?: ConversionOptions): Promise<any>;
|
|
344
610
|
jsonToExcel(lib: string, jsonData: any, options?: ConversionOptions): Promise<any>;
|
|
345
611
|
csvToJson(lib: string, csvData: string): Promise<any>;
|
|
346
612
|
csvToExcel(lib: string, csvData: string, options?: ConversionOptions): Promise<any>;
|
|
@@ -378,9 +644,9 @@ declare class IntegrationsConstructor extends IntegrationsBaseClientConstructor
|
|
|
378
644
|
host?: string;
|
|
379
645
|
});
|
|
380
646
|
getSerbiaUtilities(): any;
|
|
381
|
-
getDMS():
|
|
382
|
-
getVPFR():
|
|
383
|
-
getInvoicing():
|
|
647
|
+
getDMS(): DMS;
|
|
648
|
+
getVPFR(): VPFR;
|
|
649
|
+
getInvoicing(): Invoicing;
|
|
384
650
|
getPayments(): Payments;
|
|
385
651
|
isInstalled(id: string): Promise<boolean>;
|
|
386
652
|
getInterfaceOf(id: string): any;
|
|
@@ -432,7 +698,6 @@ declare class PlatformConstructor extends PlatformBaseClientConstructor {
|
|
|
432
698
|
getPlatformBaseURL(): string;
|
|
433
699
|
apiUser(): APIUser;
|
|
434
700
|
function(): Functions;
|
|
435
|
-
role(): Roles;
|
|
436
701
|
user(): Users;
|
|
437
702
|
app(appType: string): Apps;
|
|
438
703
|
forge(): Forge;
|
|
@@ -443,6 +708,8 @@ declare class PlatformConstructor extends PlatformBaseClientConstructor {
|
|
|
443
708
|
system(): System;
|
|
444
709
|
workflow(): Workflow;
|
|
445
710
|
thunder(): Thunder;
|
|
711
|
+
project(): Project;
|
|
712
|
+
config(): Config;
|
|
446
713
|
}
|
|
447
714
|
|
|
448
715
|
declare class PlatformBaseClientConstructor extends BaseClientConstructor {
|
|
@@ -453,6 +720,55 @@ declare class PlatformBaseClientConstructor extends BaseClientConstructor {
|
|
|
453
720
|
});
|
|
454
721
|
}
|
|
455
722
|
|
|
723
|
+
declare class ProjectConstructor extends PlatformBaseClientConstructor {
|
|
724
|
+
constructor();
|
|
725
|
+
list(): Promise<any>;
|
|
726
|
+
create(data: {
|
|
727
|
+
name: string;
|
|
728
|
+
description?: string;
|
|
729
|
+
[key: string]: any;
|
|
730
|
+
}): Promise<any>;
|
|
731
|
+
info(): Promise<any>;
|
|
732
|
+
archive(): Promise<any>;
|
|
733
|
+
invite(emails: string[], roles: string[]): Promise<any>;
|
|
734
|
+
getInvites(): Promise<any>;
|
|
735
|
+
getInvite(uuid: string): Promise<any>;
|
|
736
|
+
acceptInvite(uuid: string): Promise<any>;
|
|
737
|
+
registerWithInvite(uuid: string, data: any): Promise<any>;
|
|
738
|
+
getUsers(): Promise<any>;
|
|
739
|
+
getUser(uuid: string): Promise<any>;
|
|
740
|
+
updateUser(uuid: string, data: any): Promise<any>;
|
|
741
|
+
deleteUser(uuid: string): Promise<any>;
|
|
742
|
+
updateSettings(settings: any): Promise<any>;
|
|
743
|
+
createWorkspace(data: {
|
|
744
|
+
name: string;
|
|
745
|
+
description?: string;
|
|
746
|
+
[key: string]: any;
|
|
747
|
+
}): Promise<any>;
|
|
748
|
+
updateWorkspace(uuid: string, data: any): Promise<any>;
|
|
749
|
+
deleteWorkspace(uuid: string): Promise<any>;
|
|
750
|
+
getAvailableTemplates(): Promise<any>;
|
|
751
|
+
searchTemplates(query: any): Promise<any>;
|
|
752
|
+
getTemplate(id: string): Promise<any>;
|
|
753
|
+
getTemplateByCode(code: string): Promise<any>;
|
|
754
|
+
getWorkspaceTemplates(): Promise<any>;
|
|
755
|
+
installTemplate(data: {
|
|
756
|
+
template_id: string;
|
|
757
|
+
workspace_uuid: string;
|
|
758
|
+
[key: string]: any;
|
|
759
|
+
}): Promise<any>;
|
|
760
|
+
uninstallTemplate(data: {
|
|
761
|
+
template_id: string;
|
|
762
|
+
workspace_uuid: string;
|
|
763
|
+
[key: string]: any;
|
|
764
|
+
}): Promise<any>;
|
|
765
|
+
upgradeTemplate(data: {
|
|
766
|
+
template_id: string;
|
|
767
|
+
workspace_uuid: string;
|
|
768
|
+
[key: string]: any;
|
|
769
|
+
}): Promise<any>;
|
|
770
|
+
}
|
|
771
|
+
|
|
456
772
|
declare class RatchetConstructor extends PlatformBaseClientConstructor {
|
|
457
773
|
constructor();
|
|
458
774
|
query(name: string, params: any): Promise<any>;
|
|
@@ -475,7 +791,8 @@ declare class SandboxConstructor extends PlatformBaseClientConstructor {
|
|
|
475
791
|
|
|
476
792
|
declare class SerbiaUtilConstructor extends IntegrationsBaseClientConstructor {
|
|
477
793
|
constructor();
|
|
478
|
-
|
|
794
|
+
nbsSearch(params: any): Promise<any>;
|
|
795
|
+
generateNbsIpsQrCode(params: NbsIpsQrCode): any;
|
|
479
796
|
getReceiptFromUrl(url: string, source: string): Promise<any>;
|
|
480
797
|
getContoList(): Promise<any>;
|
|
481
798
|
services(method: string, endpoint: string, params?: any): Promise<any>;
|
|
@@ -503,12 +820,22 @@ declare class ThunderConstructor extends PlatformBaseClientConstructor {
|
|
|
503
820
|
|
|
504
821
|
declare class UsersConstructor extends PlatformBaseClientConstructor {
|
|
505
822
|
constructor();
|
|
506
|
-
|
|
507
|
-
|
|
823
|
+
auth(username: string, password: string, project: string): Promise<any>;
|
|
824
|
+
resendConfirmationEmail(email: string): Promise<any>;
|
|
825
|
+
requestPasswordReset(email: string): Promise<any>;
|
|
508
826
|
getUser(): Promise<any>;
|
|
509
|
-
|
|
827
|
+
getClaims(): Promise<any>;
|
|
828
|
+
editProfile(data: any): Promise<any>;
|
|
829
|
+
getPermissions(): Promise<any>;
|
|
830
|
+
listPermissions(): Promise<any>;
|
|
831
|
+
createRole(role: CreateRoleRequest): Promise<any>;
|
|
832
|
+
deleteRole(uuid: string): Promise<AxiosResponse<{
|
|
833
|
+
status: boolean;
|
|
834
|
+
}>>;
|
|
835
|
+
listRoles(): Promise<any>;
|
|
836
|
+
getRoleModel(uuid: string): Promise<any>;
|
|
837
|
+
editRole(uuid: string, data: EditRoleRequest): Promise<any>;
|
|
510
838
|
permissions(): Promise<any>;
|
|
511
|
-
auth(username: string, password: string, project: string): Promise<any>;
|
|
512
839
|
}
|
|
513
840
|
|
|
514
841
|
declare class VPFRConstructor extends IntegrationsBaseClientConstructor {
|
|
@@ -529,7 +856,6 @@ interface ProtokolSDK {
|
|
|
529
856
|
System: typeof SystemConstructor;
|
|
530
857
|
Functions: typeof FunctionsConstructor;
|
|
531
858
|
APIUser: typeof APIUserConstructor;
|
|
532
|
-
Roles: typeof RolesConstructor;
|
|
533
859
|
Apps: typeof AppsConstructor;
|
|
534
860
|
Workflow: typeof WorkflowConstructor;
|
|
535
861
|
ComponentUtils: typeof ComponentUtilsConstructor;
|
|
@@ -541,6 +867,8 @@ interface ProtokolSDK {
|
|
|
541
867
|
DMS: typeof DMSConstructor;
|
|
542
868
|
SerbiaUtil: typeof SerbiaUtilConstructor;
|
|
543
869
|
VPFR: typeof VPFRConstructor;
|
|
870
|
+
Project: typeof ProjectConstructor;
|
|
871
|
+
Config: typeof ConfigConstructor;
|
|
544
872
|
}
|
|
545
873
|
|
|
546
874
|
declare const $sdk: {
|
package/dist/package.json
CHANGED
|
@@ -88,11 +88,11 @@ export default class DMS extends IntegrationsBaseClient {
|
|
|
88
88
|
uploadBase64(data: any): Promise<AxiosResponse<any, any>>;
|
|
89
89
|
getMedia(lib: string, key: string, encoding: string): Promise<AxiosResponse<any, any>>;
|
|
90
90
|
download(lib: string, key: string): Promise<AxiosResponse<any, any>>;
|
|
91
|
-
getExifData(
|
|
92
|
-
html2pdf(
|
|
93
|
-
createDir(
|
|
94
|
-
deleteDir(
|
|
95
|
-
dirs(
|
|
91
|
+
getExifData(key: string): Promise<AxiosResponse<any, any>>;
|
|
92
|
+
html2pdf(data: HTML2PDFOptions): Promise<AxiosResponse<any, any>>;
|
|
93
|
+
createDir(path: string): Promise<AxiosResponse<any, any>>;
|
|
94
|
+
deleteDir(path: string): Promise<AxiosResponse<any, any>>;
|
|
95
|
+
dirs(data: string): Promise<AxiosResponse<any, any>>;
|
|
96
96
|
fillPdf(lib: string, data: PDFFillOptions): Promise<AxiosResponse<any, any>>;
|
|
97
97
|
/**
|
|
98
98
|
* Convert data between different formats (JSON, CSV, Excel)
|