@ptkl/sdk 0.9.2 → 0.9.4
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 +32 -7
- package/dist/index.esm.js +25 -7
- package/dist/index.iife.js +33 -8
- package/dist/package.json +1 -1
- package/dist/types/api/component.d.ts +14 -13
- package/dist/types/api/functions.d.ts +4 -4
- package/dist/types/api/integrations/dms.d.ts +17 -0
- package/dist/types/api/integrations.d.ts +2 -1
- package/dist/types/api/roles.d.ts +2 -1
- package/dist/types/api/users.d.ts +1 -0
- package/dist/types/index.d.ts +10 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -17875,6 +17875,7 @@ class PlatformBaseClient extends BaseClient {
|
|
|
17875
17875
|
timeout: 15000,
|
|
17876
17876
|
headers: {
|
|
17877
17877
|
...headers,
|
|
17878
|
+
'Content-Type': 'application/json',
|
|
17878
17879
|
},
|
|
17879
17880
|
withCredentials: true,
|
|
17880
17881
|
});
|
|
@@ -17904,7 +17905,7 @@ class Functions extends PlatformBaseClient {
|
|
|
17904
17905
|
* @returns - Function result
|
|
17905
17906
|
*
|
|
17906
17907
|
* @example
|
|
17907
|
-
* const result = await platform.function().run("myFunction", {
|
|
17908
|
+
* const result = await platform.function().run("myFunction", {input: { foo: "bar" }})
|
|
17908
17909
|
*/
|
|
17909
17910
|
async run(id, d) {
|
|
17910
17911
|
const { data } = await this.client.post(`/v1/system/function/run/${id}`, d.input, {
|
|
@@ -17928,9 +17929,12 @@ class Roles extends PlatformBaseClient {
|
|
|
17928
17929
|
async list() {
|
|
17929
17930
|
return await this.client.get(`/v1/user/role/list`);
|
|
17930
17931
|
}
|
|
17931
|
-
async
|
|
17932
|
+
async availablePermissions() {
|
|
17932
17933
|
return await this.client.get(`/v1/user/permissions/list`);
|
|
17933
17934
|
}
|
|
17935
|
+
async permissions() {
|
|
17936
|
+
return await this.client.get(`/v1/user/role/permissions`);
|
|
17937
|
+
}
|
|
17934
17938
|
async edit(permissions, workspaces, level, uuid) {
|
|
17935
17939
|
return await this.client.post(`/v1/user/role/edit/${uuid}`, { permissions, workspaces, level });
|
|
17936
17940
|
}
|
|
@@ -17977,6 +17981,17 @@ class Users extends PlatformBaseClient {
|
|
|
17977
17981
|
async permissions() {
|
|
17978
17982
|
return await this.client.delete(`/v1/user/role/permissions`);
|
|
17979
17983
|
}
|
|
17984
|
+
async auth(username, password, project) {
|
|
17985
|
+
return await this.client.post("/v1/user/login", {
|
|
17986
|
+
username,
|
|
17987
|
+
password,
|
|
17988
|
+
response_type: "token",
|
|
17989
|
+
}, {
|
|
17990
|
+
headers: {
|
|
17991
|
+
"X-Project-Uuid": project,
|
|
17992
|
+
}
|
|
17993
|
+
});
|
|
17994
|
+
}
|
|
17980
17995
|
}
|
|
17981
17996
|
|
|
17982
17997
|
class Apps extends PlatformBaseClient {
|
|
@@ -18091,9 +18106,10 @@ class Component extends PlatformBaseClient {
|
|
|
18091
18106
|
* })
|
|
18092
18107
|
**/
|
|
18093
18108
|
async findOne(filter, opts) {
|
|
18094
|
-
const {
|
|
18109
|
+
const { data } = await this.find({
|
|
18095
18110
|
$adv: filter
|
|
18096
18111
|
}, opts);
|
|
18112
|
+
const { items } = data || {};
|
|
18097
18113
|
if (items && items.length > 0) {
|
|
18098
18114
|
return items[0];
|
|
18099
18115
|
}
|
|
@@ -18194,7 +18210,9 @@ class Component extends PlatformBaseClient {
|
|
|
18194
18210
|
});
|
|
18195
18211
|
}
|
|
18196
18212
|
async function(name, input) {
|
|
18197
|
-
return await this.client.post(`/v3/system/component/${this.ref}/function/${name}`,
|
|
18213
|
+
return await this.client.post(`/v3/system/component/${this.ref}/function/${name}`, {
|
|
18214
|
+
data: input
|
|
18215
|
+
});
|
|
18198
18216
|
}
|
|
18199
18217
|
}
|
|
18200
18218
|
|
|
@@ -18426,7 +18444,7 @@ class IntegrationsBaseClient extends BaseClient {
|
|
|
18426
18444
|
}
|
|
18427
18445
|
}
|
|
18428
18446
|
|
|
18429
|
-
class
|
|
18447
|
+
class DMS extends IntegrationsBaseClient {
|
|
18430
18448
|
async list(data) {
|
|
18431
18449
|
return this.request('POST', 'media/list', { data });
|
|
18432
18450
|
}
|
|
@@ -18597,7 +18615,7 @@ class Integrations extends IntegrationsBaseClient {
|
|
|
18597
18615
|
this.integrations = {
|
|
18598
18616
|
'protokol-invoicing': new Invoicing().setClient(this.client),
|
|
18599
18617
|
'protokol-vpfr': new VPFR().setClient(this.client),
|
|
18600
|
-
'protokol-media': new
|
|
18618
|
+
'protokol-media': new DMS().setClient(this.client),
|
|
18601
18619
|
'serbia-utilities': new SerbiaUtil().setClient(this.client),
|
|
18602
18620
|
'protokol-payments': new Payments().setClient(this.client),
|
|
18603
18621
|
};
|
|
@@ -18635,13 +18653,20 @@ exports.APIUser = APIUser;
|
|
|
18635
18653
|
exports.Apps = Apps;
|
|
18636
18654
|
exports.Component = Component;
|
|
18637
18655
|
exports.ComponentUtils = ComponentUtils;
|
|
18656
|
+
exports.Forge = Forge;
|
|
18638
18657
|
exports.Functions = Functions;
|
|
18639
18658
|
exports.Integration = Integrations;
|
|
18659
|
+
exports.Integrations = Integrations;
|
|
18660
|
+
exports.Invoicing = Invoicing;
|
|
18661
|
+
exports.Media = DMS;
|
|
18662
|
+
exports.Payments = Payments;
|
|
18640
18663
|
exports.Ratchet = Ratchet;
|
|
18641
18664
|
exports.Roles = Roles;
|
|
18642
18665
|
exports.Sandbox = Sandbox;
|
|
18666
|
+
exports.SerbiaUtil = SerbiaUtil;
|
|
18643
18667
|
exports.System = System;
|
|
18644
18668
|
exports.Thunder = Thunder;
|
|
18645
|
-
exports.
|
|
18669
|
+
exports.User = Users;
|
|
18670
|
+
exports.VPFR = VPFR;
|
|
18646
18671
|
exports.Workflow = Workflow;
|
|
18647
18672
|
exports.default = Platform;
|
package/dist/index.esm.js
CHANGED
|
@@ -65,6 +65,7 @@ class PlatformBaseClient extends BaseClient {
|
|
|
65
65
|
timeout: 15000,
|
|
66
66
|
headers: {
|
|
67
67
|
...headers,
|
|
68
|
+
'Content-Type': 'application/json',
|
|
68
69
|
},
|
|
69
70
|
withCredentials: true,
|
|
70
71
|
});
|
|
@@ -94,7 +95,7 @@ class Functions extends PlatformBaseClient {
|
|
|
94
95
|
* @returns - Function result
|
|
95
96
|
*
|
|
96
97
|
* @example
|
|
97
|
-
* const result = await platform.function().run("myFunction", {
|
|
98
|
+
* const result = await platform.function().run("myFunction", {input: { foo: "bar" }})
|
|
98
99
|
*/
|
|
99
100
|
async run(id, d) {
|
|
100
101
|
const { data } = await this.client.post(`/v1/system/function/run/${id}`, d.input, {
|
|
@@ -118,9 +119,12 @@ class Roles extends PlatformBaseClient {
|
|
|
118
119
|
async list() {
|
|
119
120
|
return await this.client.get(`/v1/user/role/list`);
|
|
120
121
|
}
|
|
121
|
-
async
|
|
122
|
+
async availablePermissions() {
|
|
122
123
|
return await this.client.get(`/v1/user/permissions/list`);
|
|
123
124
|
}
|
|
125
|
+
async permissions() {
|
|
126
|
+
return await this.client.get(`/v1/user/role/permissions`);
|
|
127
|
+
}
|
|
124
128
|
async edit(permissions, workspaces, level, uuid) {
|
|
125
129
|
return await this.client.post(`/v1/user/role/edit/${uuid}`, { permissions, workspaces, level });
|
|
126
130
|
}
|
|
@@ -167,6 +171,17 @@ class Users extends PlatformBaseClient {
|
|
|
167
171
|
async permissions() {
|
|
168
172
|
return await this.client.delete(`/v1/user/role/permissions`);
|
|
169
173
|
}
|
|
174
|
+
async auth(username, password, project) {
|
|
175
|
+
return await this.client.post("/v1/user/login", {
|
|
176
|
+
username,
|
|
177
|
+
password,
|
|
178
|
+
response_type: "token",
|
|
179
|
+
}, {
|
|
180
|
+
headers: {
|
|
181
|
+
"X-Project-Uuid": project,
|
|
182
|
+
}
|
|
183
|
+
});
|
|
184
|
+
}
|
|
170
185
|
}
|
|
171
186
|
|
|
172
187
|
class Apps extends PlatformBaseClient {
|
|
@@ -281,9 +296,10 @@ class Component extends PlatformBaseClient {
|
|
|
281
296
|
* })
|
|
282
297
|
**/
|
|
283
298
|
async findOne(filter, opts) {
|
|
284
|
-
const {
|
|
299
|
+
const { data } = await this.find({
|
|
285
300
|
$adv: filter
|
|
286
301
|
}, opts);
|
|
302
|
+
const { items } = data || {};
|
|
287
303
|
if (items && items.length > 0) {
|
|
288
304
|
return items[0];
|
|
289
305
|
}
|
|
@@ -384,7 +400,9 @@ class Component extends PlatformBaseClient {
|
|
|
384
400
|
});
|
|
385
401
|
}
|
|
386
402
|
async function(name, input) {
|
|
387
|
-
return await this.client.post(`/v3/system/component/${this.ref}/function/${name}`,
|
|
403
|
+
return await this.client.post(`/v3/system/component/${this.ref}/function/${name}`, {
|
|
404
|
+
data: input
|
|
405
|
+
});
|
|
388
406
|
}
|
|
389
407
|
}
|
|
390
408
|
|
|
@@ -616,7 +634,7 @@ class IntegrationsBaseClient extends BaseClient {
|
|
|
616
634
|
}
|
|
617
635
|
}
|
|
618
636
|
|
|
619
|
-
class
|
|
637
|
+
class DMS extends IntegrationsBaseClient {
|
|
620
638
|
async list(data) {
|
|
621
639
|
return this.request('POST', 'media/list', { data });
|
|
622
640
|
}
|
|
@@ -787,7 +805,7 @@ class Integrations extends IntegrationsBaseClient {
|
|
|
787
805
|
this.integrations = {
|
|
788
806
|
'protokol-invoicing': new Invoicing().setClient(this.client),
|
|
789
807
|
'protokol-vpfr': new VPFR().setClient(this.client),
|
|
790
|
-
'protokol-media': new
|
|
808
|
+
'protokol-media': new DMS().setClient(this.client),
|
|
791
809
|
'serbia-utilities': new SerbiaUtil().setClient(this.client),
|
|
792
810
|
'protokol-payments': new Payments().setClient(this.client),
|
|
793
811
|
};
|
|
@@ -821,4 +839,4 @@ class Integrations extends IntegrationsBaseClient {
|
|
|
821
839
|
}
|
|
822
840
|
}
|
|
823
841
|
|
|
824
|
-
export { APIUser, Apps, Component, ComponentUtils, Functions, Integrations as Integration, Ratchet, Roles, Sandbox, System, Thunder, Users, Workflow, Platform as default };
|
|
842
|
+
export { APIUser, Apps, Component, ComponentUtils, Forge, Functions, Integrations as Integration, Integrations, Invoicing, DMS as Media, Payments, Ratchet, Roles, Sandbox, SerbiaUtil, System, Thunder, Users as User, VPFR, Workflow, Platform as default };
|
package/dist/index.iife.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var
|
|
1
|
+
var ProtokolSDK09 = (function (exports, axios) {
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
class BaseClient {
|
|
@@ -66,6 +66,7 @@ var ProtokolSDK = (function (exports, axios) {
|
|
|
66
66
|
timeout: 15000,
|
|
67
67
|
headers: {
|
|
68
68
|
...headers,
|
|
69
|
+
'Content-Type': 'application/json',
|
|
69
70
|
},
|
|
70
71
|
withCredentials: true,
|
|
71
72
|
});
|
|
@@ -95,7 +96,7 @@ var ProtokolSDK = (function (exports, axios) {
|
|
|
95
96
|
* @returns - Function result
|
|
96
97
|
*
|
|
97
98
|
* @example
|
|
98
|
-
* const result = await platform.function().run("myFunction", {
|
|
99
|
+
* const result = await platform.function().run("myFunction", {input: { foo: "bar" }})
|
|
99
100
|
*/
|
|
100
101
|
async run(id, d) {
|
|
101
102
|
const { data } = await this.client.post(`/v1/system/function/run/${id}`, d.input, {
|
|
@@ -119,9 +120,12 @@ var ProtokolSDK = (function (exports, axios) {
|
|
|
119
120
|
async list() {
|
|
120
121
|
return await this.client.get(`/v1/user/role/list`);
|
|
121
122
|
}
|
|
122
|
-
async
|
|
123
|
+
async availablePermissions() {
|
|
123
124
|
return await this.client.get(`/v1/user/permissions/list`);
|
|
124
125
|
}
|
|
126
|
+
async permissions() {
|
|
127
|
+
return await this.client.get(`/v1/user/role/permissions`);
|
|
128
|
+
}
|
|
125
129
|
async edit(permissions, workspaces, level, uuid) {
|
|
126
130
|
return await this.client.post(`/v1/user/role/edit/${uuid}`, { permissions, workspaces, level });
|
|
127
131
|
}
|
|
@@ -168,6 +172,17 @@ var ProtokolSDK = (function (exports, axios) {
|
|
|
168
172
|
async permissions() {
|
|
169
173
|
return await this.client.delete(`/v1/user/role/permissions`);
|
|
170
174
|
}
|
|
175
|
+
async auth(username, password, project) {
|
|
176
|
+
return await this.client.post("/v1/user/login", {
|
|
177
|
+
username,
|
|
178
|
+
password,
|
|
179
|
+
response_type: "token",
|
|
180
|
+
}, {
|
|
181
|
+
headers: {
|
|
182
|
+
"X-Project-Uuid": project,
|
|
183
|
+
}
|
|
184
|
+
});
|
|
185
|
+
}
|
|
171
186
|
}
|
|
172
187
|
|
|
173
188
|
class Apps extends PlatformBaseClient {
|
|
@@ -282,9 +297,10 @@ var ProtokolSDK = (function (exports, axios) {
|
|
|
282
297
|
* })
|
|
283
298
|
**/
|
|
284
299
|
async findOne(filter, opts) {
|
|
285
|
-
const {
|
|
300
|
+
const { data } = await this.find({
|
|
286
301
|
$adv: filter
|
|
287
302
|
}, opts);
|
|
303
|
+
const { items } = data || {};
|
|
288
304
|
if (items && items.length > 0) {
|
|
289
305
|
return items[0];
|
|
290
306
|
}
|
|
@@ -385,7 +401,9 @@ var ProtokolSDK = (function (exports, axios) {
|
|
|
385
401
|
});
|
|
386
402
|
}
|
|
387
403
|
async function(name, input) {
|
|
388
|
-
return await this.client.post(`/v3/system/component/${this.ref}/function/${name}`,
|
|
404
|
+
return await this.client.post(`/v3/system/component/${this.ref}/function/${name}`, {
|
|
405
|
+
data: input
|
|
406
|
+
});
|
|
389
407
|
}
|
|
390
408
|
}
|
|
391
409
|
|
|
@@ -617,7 +635,7 @@ var ProtokolSDK = (function (exports, axios) {
|
|
|
617
635
|
}
|
|
618
636
|
}
|
|
619
637
|
|
|
620
|
-
class
|
|
638
|
+
class DMS extends IntegrationsBaseClient {
|
|
621
639
|
async list(data) {
|
|
622
640
|
return this.request('POST', 'media/list', { data });
|
|
623
641
|
}
|
|
@@ -788,7 +806,7 @@ var ProtokolSDK = (function (exports, axios) {
|
|
|
788
806
|
this.integrations = {
|
|
789
807
|
'protokol-invoicing': new Invoicing().setClient(this.client),
|
|
790
808
|
'protokol-vpfr': new VPFR().setClient(this.client),
|
|
791
|
-
'protokol-media': new
|
|
809
|
+
'protokol-media': new DMS().setClient(this.client),
|
|
792
810
|
'serbia-utilities': new SerbiaUtil().setClient(this.client),
|
|
793
811
|
'protokol-payments': new Payments().setClient(this.client),
|
|
794
812
|
};
|
|
@@ -826,14 +844,21 @@ var ProtokolSDK = (function (exports, axios) {
|
|
|
826
844
|
exports.Apps = Apps;
|
|
827
845
|
exports.Component = Component;
|
|
828
846
|
exports.ComponentUtils = ComponentUtils;
|
|
847
|
+
exports.Forge = Forge;
|
|
829
848
|
exports.Functions = Functions;
|
|
830
849
|
exports.Integration = Integrations;
|
|
850
|
+
exports.Integrations = Integrations;
|
|
851
|
+
exports.Invoicing = Invoicing;
|
|
852
|
+
exports.Media = DMS;
|
|
853
|
+
exports.Payments = Payments;
|
|
831
854
|
exports.Ratchet = Ratchet;
|
|
832
855
|
exports.Roles = Roles;
|
|
833
856
|
exports.Sandbox = Sandbox;
|
|
857
|
+
exports.SerbiaUtil = SerbiaUtil;
|
|
834
858
|
exports.System = System;
|
|
835
859
|
exports.Thunder = Thunder;
|
|
836
|
-
exports.
|
|
860
|
+
exports.User = Users;
|
|
861
|
+
exports.VPFR = VPFR;
|
|
837
862
|
exports.Workflow = Workflow;
|
|
838
863
|
exports.default = Platform;
|
|
839
864
|
|
package/dist/package.json
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { FindParams, FindOptions, FindResponse, FindAdvancedParams, FindAggregateParams, Model, UpdateOptions, ModifyOptions } from "src/types/component";
|
|
2
2
|
import PlatformBaseClient from "./platformBaseClient";
|
|
3
|
+
import { AxiosResponse } from "axios";
|
|
3
4
|
export default class Component extends PlatformBaseClient {
|
|
4
5
|
private ref;
|
|
5
6
|
constructor(ref?: string | null);
|
|
@@ -24,7 +25,7 @@ export default class Component extends PlatformBaseClient {
|
|
|
24
25
|
* }
|
|
25
26
|
* )
|
|
26
27
|
**/
|
|
27
|
-
find(filters: FindParams, opts?: FindOptions): Promise<FindResponse
|
|
28
|
+
find(filters: FindParams, opts?: FindOptions): Promise<AxiosResponse<FindResponse>>;
|
|
28
29
|
/**
|
|
29
30
|
* FindOne method to search for a single model
|
|
30
31
|
*
|
|
@@ -45,7 +46,7 @@ export default class Component extends PlatformBaseClient {
|
|
|
45
46
|
* @param uuid string - The uuid of the model
|
|
46
47
|
* @returns (Promise<Model>)
|
|
47
48
|
*/
|
|
48
|
-
get(uuid: string): Promise<Model
|
|
49
|
+
get(uuid: string): Promise<AxiosResponse<Model>>;
|
|
49
50
|
/**
|
|
50
51
|
* Update model by uuid
|
|
51
52
|
*
|
|
@@ -53,7 +54,7 @@ export default class Component extends PlatformBaseClient {
|
|
|
53
54
|
* @param data
|
|
54
55
|
* @returns
|
|
55
56
|
*/
|
|
56
|
-
update(uuid: string, data: Record<string, any>, options: UpdateOptions): Promise<
|
|
57
|
+
update(uuid: string, data: Record<string, any>, options: UpdateOptions): Promise<AxiosResponse<any, any>>;
|
|
57
58
|
/**
|
|
58
59
|
* Update many models
|
|
59
60
|
*
|
|
@@ -61,7 +62,7 @@ export default class Component extends PlatformBaseClient {
|
|
|
61
62
|
* @param options
|
|
62
63
|
* @returns
|
|
63
64
|
*/
|
|
64
|
-
updateMany(data: Record<string, any>[], options: UpdateOptions): Promise<
|
|
65
|
+
updateMany(data: Record<string, any>[], options: UpdateOptions): Promise<AxiosResponse<any, any>>;
|
|
65
66
|
/**
|
|
66
67
|
* Modify models by filters
|
|
67
68
|
*
|
|
@@ -69,7 +70,7 @@ export default class Component extends PlatformBaseClient {
|
|
|
69
70
|
* @param options
|
|
70
71
|
* @returns
|
|
71
72
|
*/
|
|
72
|
-
modify(filters: Record<string, any>, data: Record<string, any>, options: ModifyOptions): Promise<
|
|
73
|
+
modify(filters: Record<string, any>, data: Record<string, any>, options: ModifyOptions): Promise<AxiosResponse<any, any>>;
|
|
73
74
|
/**
|
|
74
75
|
* Concurrent update model by uuid
|
|
75
76
|
*
|
|
@@ -78,14 +79,14 @@ export default class Component extends PlatformBaseClient {
|
|
|
78
79
|
* @param data
|
|
79
80
|
* @returns
|
|
80
81
|
*/
|
|
81
|
-
concurrentUpdate(uuid: string, version: number, data: Record<string, any>, options: UpdateOptions): Promise<
|
|
82
|
-
create(model: Record<string, any>): Promise<
|
|
83
|
-
delete(uuid: string): Promise<
|
|
84
|
-
aggregate(pipeline: FindAggregateParams): Promise<
|
|
85
|
-
settings(): Promise<
|
|
86
|
-
saveSettings(settings: any, version: string): Promise<
|
|
82
|
+
concurrentUpdate(uuid: string, version: number, data: Record<string, any>, options: UpdateOptions): Promise<AxiosResponse<any, any>>;
|
|
83
|
+
create(model: Record<string, any>): Promise<AxiosResponse<any, any>>;
|
|
84
|
+
delete(uuid: string): Promise<AxiosResponse<any, any>>;
|
|
85
|
+
aggregate(pipeline: FindAggregateParams): Promise<AxiosResponse<any, any>>;
|
|
86
|
+
settings(): Promise<AxiosResponse<any, any>>;
|
|
87
|
+
saveSettings(settings: any, version: string): Promise<AxiosResponse<any, any>>;
|
|
87
88
|
saveTemplatesDist(version: string, sdkVersion: string, engine: string, dist: Record<string, string>): Promise<any>;
|
|
88
|
-
workflow(event: string, input: any): Promise<
|
|
89
|
-
function(name: string, input: any): Promise<
|
|
89
|
+
workflow(event: string, input: any): Promise<AxiosResponse<any, any>>;
|
|
90
|
+
function(name: string, input: any): Promise<AxiosResponse<any, any>>;
|
|
90
91
|
}
|
|
91
92
|
export { FindParams, FindOptions, FindResponse, FindAdvancedParams, FindAggregateParams, Model, UpdateOptions, };
|
|
@@ -12,12 +12,12 @@ export default class Functions extends PlatformBaseClient {
|
|
|
12
12
|
* @returns - Function result
|
|
13
13
|
*
|
|
14
14
|
* @example
|
|
15
|
-
* const result = await platform.function().run("myFunction", {
|
|
15
|
+
* const result = await platform.function().run("myFunction", {input: { foo: "bar" }})
|
|
16
16
|
*/
|
|
17
17
|
run(id: string, d: {
|
|
18
|
-
input?: any
|
|
19
|
-
query?:
|
|
20
|
-
headers?:
|
|
18
|
+
input?: Record<string, any>;
|
|
19
|
+
query?: Record<string, string>;
|
|
20
|
+
headers?: Record<string, string>;
|
|
21
21
|
}): Promise<any>;
|
|
22
22
|
generateSignature(ref: string, env: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
23
23
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import IntegrationsBaseClient from "../integrationsBaseClient";
|
|
2
|
+
export default class DMS extends IntegrationsBaseClient {
|
|
3
|
+
list(data: any): Promise<import("axios").AxiosResponse<any, any>>;
|
|
4
|
+
libraries(): Promise<import("axios").AxiosResponse<any, any>>;
|
|
5
|
+
upload(payload: any): Promise<import("axios").AxiosResponse<any, any> | undefined>;
|
|
6
|
+
delete(data: any): Promise<import("axios").AxiosResponse<any, any>>;
|
|
7
|
+
uploadBase64(data: any): Promise<import("axios").AxiosResponse<any, any>>;
|
|
8
|
+
getMedia(lib: string, key: string, encoding: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
9
|
+
download(lib: string, key: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
10
|
+
getExifData(lib: string, key: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
11
|
+
html2pdf(lib: string, data: any): Promise<import("axios").AxiosResponse<any, any>>;
|
|
12
|
+
createDir(lib: string, path: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
13
|
+
deleteDir(lib: string, path: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
14
|
+
dirs(lib: string, data: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
15
|
+
request(method: string, endpoint: string, params?: any): Promise<import("axios").AxiosResponse<any, any>>;
|
|
16
|
+
requestv1(method: string, endpoint: string, params?: any): Promise<import("axios").AxiosResponse<any, any>>;
|
|
17
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import IntegrationsBaseClient from "./integrationsBaseClient";
|
|
2
|
+
import Payments from "./integrations/payments";
|
|
2
3
|
export default class Integrations extends IntegrationsBaseClient {
|
|
3
4
|
private integrations;
|
|
4
5
|
constructor(options?: {
|
|
@@ -10,7 +11,7 @@ export default class Integrations extends IntegrationsBaseClient {
|
|
|
10
11
|
getDMS(): any;
|
|
11
12
|
getVPFR(): any;
|
|
12
13
|
getInvoicing(): any;
|
|
13
|
-
getPayments():
|
|
14
|
+
getPayments(): Payments;
|
|
14
15
|
isInstalled(id: string): Promise<boolean>;
|
|
15
16
|
getInterfaceOf(id: string): any;
|
|
16
17
|
}
|
|
@@ -3,6 +3,7 @@ export default class Roles extends PlatformBaseClient {
|
|
|
3
3
|
create(role: any): Promise<any>;
|
|
4
4
|
delete(uuid: string): Promise<any>;
|
|
5
5
|
list(): Promise<any>;
|
|
6
|
-
|
|
6
|
+
availablePermissions(): Promise<any>;
|
|
7
|
+
permissions(): Promise<any>;
|
|
7
8
|
edit(permissions: string[], workspaces: string[], level: number, uuid: string): Promise<any>;
|
|
8
9
|
}
|
|
@@ -3,4 +3,5 @@ export default class Users extends PlatformBaseClient {
|
|
|
3
3
|
invite(email: string, roles: string[]): Promise<import("axios").AxiosResponse<any, any>>;
|
|
4
4
|
delete(uuid: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
5
5
|
permissions(): Promise<import("axios").AxiosResponse<any, any>>;
|
|
6
|
+
auth(username: string, password: string, project: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
6
7
|
}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export { default as Integration } from './api/integrations';
|
|
|
4
4
|
export { default as Ratchet } from './api/ratchet';
|
|
5
5
|
export { default as Sandbox } from './api/sandbox';
|
|
6
6
|
export { default as System } from './api/system';
|
|
7
|
-
export { default as
|
|
7
|
+
export { default as User } from './api/users';
|
|
8
8
|
export { default as Functions } from './api/functions';
|
|
9
9
|
export { default as APIUser } from './api/apiUser';
|
|
10
10
|
export { default as Roles } from './api/roles';
|
|
@@ -12,4 +12,13 @@ export { default as Apps } from './api/apps';
|
|
|
12
12
|
export { default as Workflow } from './api/workflow';
|
|
13
13
|
export { default as ComponentUtils } from './api/componentUtils';
|
|
14
14
|
export { default as Thunder } from './api/thunder';
|
|
15
|
+
export { default as Forge } from './api/forge';
|
|
16
|
+
export { default as Integrations } from './api/integrations';
|
|
17
|
+
export { default as Payments } from './api/integrations/payments';
|
|
18
|
+
export { default as Invoicing } from './api/integrations/invoicing';
|
|
19
|
+
export { default as Media } from './api/integrations/dms';
|
|
20
|
+
export { default as SerbiaUtil } from './api/integrations/serbiaUtil';
|
|
21
|
+
export { default as VPFR } from './api/integrations/vpfr';
|
|
22
|
+
export type * from './types/component';
|
|
23
|
+
export type * from './types/integrations';
|
|
15
24
|
export default Platform;
|