@ptkl/sdk 0.9.11 → 0.9.15
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 +314 -49
- package/dist/index.esm.js +313 -49
- package/dist/index.iife.js +314 -49
- package/dist/package.json +2 -1
- package/dist/types/api/component.d.ts +1 -0
- package/dist/types/api/config.d.ts +14 -0
- package/dist/types/api/integrations/dms.d.ts +1 -1
- package/dist/types/api/integrations/serbiaUtil.d.ts +3 -1
- package/dist/types/api/platform.d.ts +4 -2
- package/dist/types/api/project.d.ts +146 -0
- package/dist/types/api/users.d.ts +64 -6
- package/dist/types/index.d.ts +4 -1
- package/dist/types/types/config.d.ts +11 -0
- package/dist/types/types/integrations.d.ts +16 -1
- package/dist/types/types/media.d.ts +103 -0
- package/dist/types/types/project.d.ts +64 -0
- package/dist/types/types/users.d.ts +32 -0
- package/package.json +2 -1
package/dist/index.iife.js
CHANGED
|
@@ -115,27 +115,6 @@ var ProtokolSDK09 = (function (exports, axios) {
|
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
-
class Roles extends PlatformBaseClient {
|
|
119
|
-
async create(role) {
|
|
120
|
-
return await this.client.post("/v1/user/role/create", role);
|
|
121
|
-
}
|
|
122
|
-
async delete(uuid) {
|
|
123
|
-
return await this.client.delete(`/v1/user/role/delete/${uuid}`);
|
|
124
|
-
}
|
|
125
|
-
async list() {
|
|
126
|
-
return await this.client.get(`/v1/user/role/list`);
|
|
127
|
-
}
|
|
128
|
-
async availablePermissions() {
|
|
129
|
-
return await this.client.get(`/v1/user/permissions/list`);
|
|
130
|
-
}
|
|
131
|
-
async permissions() {
|
|
132
|
-
return await this.client.get(`/v1/user/role/permissions`);
|
|
133
|
-
}
|
|
134
|
-
async edit(permissions, workspaces, level, uuid) {
|
|
135
|
-
return await this.client.post(`/v1/user/role/edit/${uuid}`, { permissions, workspaces, level });
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
|
|
139
118
|
class APIUser extends PlatformBaseClient {
|
|
140
119
|
async auth(username, password, project) {
|
|
141
120
|
return this.client.post("/v1/user/api/auth", {
|
|
@@ -165,36 +144,110 @@ var ProtokolSDK09 = (function (exports, axios) {
|
|
|
165
144
|
}
|
|
166
145
|
|
|
167
146
|
class Users extends PlatformBaseClient {
|
|
168
|
-
async
|
|
169
|
-
return await this.client.post("/v1/
|
|
147
|
+
async auth(username, password, project) {
|
|
148
|
+
return await this.client.post("/v1/user/login", {
|
|
149
|
+
username,
|
|
150
|
+
password,
|
|
151
|
+
response_type: 'token',
|
|
152
|
+
}, {
|
|
153
|
+
headers: {
|
|
154
|
+
'X-Project-Uuid': project
|
|
155
|
+
}
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* Resend confirmation email
|
|
160
|
+
* @param email User email
|
|
161
|
+
*/
|
|
162
|
+
async resendConfirmationEmail(email) {
|
|
163
|
+
return await this.client.post("/v1/user/send/confirmation/email", {
|
|
170
164
|
email,
|
|
171
|
-
roles,
|
|
172
165
|
});
|
|
173
166
|
}
|
|
174
|
-
//
|
|
175
|
-
|
|
176
|
-
|
|
167
|
+
// Password Reset (Request Only)
|
|
168
|
+
// Note: Only the REQUEST is exposed, not the password reset completion
|
|
169
|
+
// The actual password reset should be done through the official web interface
|
|
170
|
+
/**
|
|
171
|
+
* Request password reset email
|
|
172
|
+
* This only sends an email with a reset link, does not expose or change passwords
|
|
173
|
+
* @param email User email
|
|
174
|
+
*/
|
|
175
|
+
async requestPasswordReset(email) {
|
|
176
|
+
return await this.client.post("/v1/user/resetpassword", { email });
|
|
177
177
|
}
|
|
178
|
-
//
|
|
178
|
+
// User Profile & Management
|
|
179
|
+
/**
|
|
180
|
+
* Get current user's model
|
|
181
|
+
*/
|
|
179
182
|
async getUser() {
|
|
180
183
|
return await this.client.get("/v1/user/model");
|
|
181
184
|
}
|
|
182
|
-
|
|
183
|
-
|
|
185
|
+
/**
|
|
186
|
+
* Get current user's claims
|
|
187
|
+
*/
|
|
188
|
+
async getClaims() {
|
|
189
|
+
return await this.client.get("/v1/user/claims");
|
|
184
190
|
}
|
|
185
|
-
|
|
186
|
-
|
|
191
|
+
/**
|
|
192
|
+
* Edit user profile
|
|
193
|
+
* @param data Profile update data
|
|
194
|
+
*/
|
|
195
|
+
async editProfile(data) {
|
|
196
|
+
return await this.client.post("/v1/user/profile/edit", data);
|
|
187
197
|
}
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
+
// Permissions & Roles
|
|
199
|
+
/**
|
|
200
|
+
* Get user permissions
|
|
201
|
+
*/
|
|
202
|
+
async getPermissions() {
|
|
203
|
+
return await this.client.get("/v1/user/role/permissions");
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* Get list of available permissions
|
|
207
|
+
*/
|
|
208
|
+
async listPermissions() {
|
|
209
|
+
return await this.client.get("/v1/user/permissions/list");
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
* Create a new role
|
|
213
|
+
* @param role Role data including name, permissions, workspaces, and level
|
|
214
|
+
*/
|
|
215
|
+
async createRole(role) {
|
|
216
|
+
return await this.client.post("/v1/user/role/create", role);
|
|
217
|
+
}
|
|
218
|
+
/**
|
|
219
|
+
* Delete a role
|
|
220
|
+
* @param uuid Role UUID
|
|
221
|
+
*/
|
|
222
|
+
async deleteRole(uuid) {
|
|
223
|
+
return await this.client.delete(`/v1/user/role/delete/${uuid}`);
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* List all roles
|
|
227
|
+
*/
|
|
228
|
+
async listRoles() {
|
|
229
|
+
return await this.client.get(`/v1/user/role/list`);
|
|
230
|
+
}
|
|
231
|
+
/**
|
|
232
|
+
* Get role details by UUID
|
|
233
|
+
* @param uuid Role UUID
|
|
234
|
+
*/
|
|
235
|
+
async getRoleModel(uuid) {
|
|
236
|
+
return await this.client.get(`/v1/user/role/edit/${uuid}`);
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
* Edit a role
|
|
240
|
+
* @param uuid Role UUID
|
|
241
|
+
* @param data Role update data including permissions, workspaces, and level
|
|
242
|
+
*/
|
|
243
|
+
async editRole(uuid, data) {
|
|
244
|
+
return await this.client.post(`/v1/user/role/edit/${uuid}`, data);
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
247
|
+
* @deprecated Use getPermissions() instead
|
|
248
|
+
*/
|
|
249
|
+
async permissions() {
|
|
250
|
+
return await this.client.get(`/v1/user/role/permissions`);
|
|
198
251
|
}
|
|
199
252
|
}
|
|
200
253
|
|
|
@@ -421,6 +474,9 @@ var ProtokolSDK09 = (function (exports, axios) {
|
|
|
421
474
|
data: input
|
|
422
475
|
});
|
|
423
476
|
}
|
|
477
|
+
async revisions(uuid) {
|
|
478
|
+
return await this.client.get(`/v3/system/component/${this.ref}/model/${uuid}/revisions`);
|
|
479
|
+
}
|
|
424
480
|
}
|
|
425
481
|
|
|
426
482
|
class ComponentUtils extends PlatformBaseClient {
|
|
@@ -504,6 +560,7 @@ var ProtokolSDK09 = (function (exports, axios) {
|
|
|
504
560
|
async resourceResolver(ref, resourceName, format) {
|
|
505
561
|
return await this.client.post("/v3/system/resource-resolver", {
|
|
506
562
|
type: resourceName,
|
|
563
|
+
ref,
|
|
507
564
|
format,
|
|
508
565
|
});
|
|
509
566
|
}
|
|
@@ -538,6 +595,199 @@ var ProtokolSDK09 = (function (exports, axios) {
|
|
|
538
595
|
}
|
|
539
596
|
}
|
|
540
597
|
|
|
598
|
+
class Project extends PlatformBaseClient {
|
|
599
|
+
/**
|
|
600
|
+
* Get list of all projects for the current user
|
|
601
|
+
*/
|
|
602
|
+
async list() {
|
|
603
|
+
return await this.client.get("/v1/project/list");
|
|
604
|
+
}
|
|
605
|
+
/**
|
|
606
|
+
* Create a new project
|
|
607
|
+
* @param data Project creation data
|
|
608
|
+
*/
|
|
609
|
+
async create(data) {
|
|
610
|
+
return await this.client.post("/v1/project/create", data);
|
|
611
|
+
}
|
|
612
|
+
/**
|
|
613
|
+
* Get information about a specific project
|
|
614
|
+
*/
|
|
615
|
+
async info() {
|
|
616
|
+
return await this.client.get("/v1/project/info");
|
|
617
|
+
}
|
|
618
|
+
/**
|
|
619
|
+
* Archive a project
|
|
620
|
+
*/
|
|
621
|
+
async archive() {
|
|
622
|
+
return await this.client.patch("/v1/project/archive");
|
|
623
|
+
}
|
|
624
|
+
/**
|
|
625
|
+
* Invite a user to the project
|
|
626
|
+
* @param email Array of emails
|
|
627
|
+
* @param roles Array of role UUIDs
|
|
628
|
+
*/
|
|
629
|
+
async invite(emails, roles) {
|
|
630
|
+
return await this.client.post("/v1/project/invite", { emails: emails.join(","), roles });
|
|
631
|
+
}
|
|
632
|
+
/**
|
|
633
|
+
* Get list of project invites
|
|
634
|
+
*/
|
|
635
|
+
async getInvites() {
|
|
636
|
+
return await this.client.get("/v1/project/invites");
|
|
637
|
+
}
|
|
638
|
+
/**
|
|
639
|
+
* Get a specific invite by UUID
|
|
640
|
+
* @param uuid Invite UUID
|
|
641
|
+
*/
|
|
642
|
+
async getInvite(uuid) {
|
|
643
|
+
return await this.client.get(`/v1/project/invite/${uuid}`);
|
|
644
|
+
}
|
|
645
|
+
/**
|
|
646
|
+
* Accept an invite
|
|
647
|
+
* @param uuid Invite UUID
|
|
648
|
+
*/
|
|
649
|
+
async acceptInvite(uuid) {
|
|
650
|
+
return await this.client.get(`/v1/project/invite/accept/${uuid}`);
|
|
651
|
+
}
|
|
652
|
+
/**
|
|
653
|
+
* Register through an invite
|
|
654
|
+
* @param uuid Invite UUID
|
|
655
|
+
* @param data Registration data
|
|
656
|
+
*/
|
|
657
|
+
async registerWithInvite(uuid, data) {
|
|
658
|
+
return await this.client.post(`/v1/project/invite/register/${uuid}`, data);
|
|
659
|
+
}
|
|
660
|
+
/**
|
|
661
|
+
* Get list of project users
|
|
662
|
+
*/
|
|
663
|
+
async getUsers() {
|
|
664
|
+
return await this.client.get("/v1/project/users");
|
|
665
|
+
}
|
|
666
|
+
/**
|
|
667
|
+
* Get a specific project user
|
|
668
|
+
* @param uuid User UUID
|
|
669
|
+
*/
|
|
670
|
+
async getUser(uuid) {
|
|
671
|
+
return await this.client.get(`/v1/project/user/${uuid}`);
|
|
672
|
+
}
|
|
673
|
+
/**
|
|
674
|
+
* Update a project user
|
|
675
|
+
* @param uuid User UUID
|
|
676
|
+
* @param data Update data
|
|
677
|
+
*/
|
|
678
|
+
async updateUser(uuid, data) {
|
|
679
|
+
return await this.client.put(`/v1/project/user/${uuid}`, data);
|
|
680
|
+
}
|
|
681
|
+
/**
|
|
682
|
+
* Delete a user from the project
|
|
683
|
+
* @param uuid User UUID
|
|
684
|
+
*/
|
|
685
|
+
async deleteUser(uuid) {
|
|
686
|
+
return await this.client.delete(`/v1/project/user/${uuid}`);
|
|
687
|
+
}
|
|
688
|
+
/**
|
|
689
|
+
* Update project settings
|
|
690
|
+
* @param settings Settings data
|
|
691
|
+
*/
|
|
692
|
+
async updateSettings(settings) {
|
|
693
|
+
return await this.client.post("/v1/project/settings", settings);
|
|
694
|
+
}
|
|
695
|
+
// Workspace Methods
|
|
696
|
+
/**
|
|
697
|
+
* Create a new workspace
|
|
698
|
+
* @param data Workspace data
|
|
699
|
+
*/
|
|
700
|
+
async createWorkspace(data) {
|
|
701
|
+
return await this.client.post("/v1/project/workspace", data);
|
|
702
|
+
}
|
|
703
|
+
/**
|
|
704
|
+
* Update a workspace
|
|
705
|
+
* @param uuid Workspace UUID
|
|
706
|
+
* @param data Update data
|
|
707
|
+
*/
|
|
708
|
+
async updateWorkspace(uuid, data) {
|
|
709
|
+
return await this.client.put(`/v1/project/workspace/${uuid}`, data);
|
|
710
|
+
}
|
|
711
|
+
/**
|
|
712
|
+
* Delete a workspace
|
|
713
|
+
* @param uuid Workspace UUID
|
|
714
|
+
*/
|
|
715
|
+
async deleteWorkspace(uuid) {
|
|
716
|
+
return await this.client.delete(`/v1/project/workspace/${uuid}`);
|
|
717
|
+
}
|
|
718
|
+
// Template Methods
|
|
719
|
+
/**
|
|
720
|
+
* Get available templates
|
|
721
|
+
*/
|
|
722
|
+
async getAvailableTemplates() {
|
|
723
|
+
return await this.client.get("/v1/project/template/available");
|
|
724
|
+
}
|
|
725
|
+
/**
|
|
726
|
+
* Search for templates
|
|
727
|
+
* @param query Search query
|
|
728
|
+
*/
|
|
729
|
+
async searchTemplates(query) {
|
|
730
|
+
return await this.client.post("/v1/project/template/search", query);
|
|
731
|
+
}
|
|
732
|
+
/**
|
|
733
|
+
* Get template by ID
|
|
734
|
+
* @param id Template ID
|
|
735
|
+
*/
|
|
736
|
+
async getTemplate(id) {
|
|
737
|
+
return await this.client.get(`/v1/project/template/${id}`);
|
|
738
|
+
}
|
|
739
|
+
/**
|
|
740
|
+
* Get template by activation code
|
|
741
|
+
* @param code Activation code
|
|
742
|
+
*/
|
|
743
|
+
async getTemplateByCode(code) {
|
|
744
|
+
return await this.client.get(`/v1/project/template/activationCode/${code}`);
|
|
745
|
+
}
|
|
746
|
+
/**
|
|
747
|
+
* Get templates for a workspace
|
|
748
|
+
*/
|
|
749
|
+
async getWorkspaceTemplates() {
|
|
750
|
+
return await this.client.get("/v1/project/template/workspace");
|
|
751
|
+
}
|
|
752
|
+
/**
|
|
753
|
+
* Install a template
|
|
754
|
+
* @param data Installation data
|
|
755
|
+
*/
|
|
756
|
+
async installTemplate(data) {
|
|
757
|
+
return await this.client.post("/v1/project/template/install", data);
|
|
758
|
+
}
|
|
759
|
+
/**
|
|
760
|
+
* Uninstall a template
|
|
761
|
+
* @param data Uninstallation data
|
|
762
|
+
*/
|
|
763
|
+
async uninstallTemplate(data) {
|
|
764
|
+
return await this.client.post("/v1/project/template/uninstall", data);
|
|
765
|
+
}
|
|
766
|
+
/**
|
|
767
|
+
* Upgrade a template
|
|
768
|
+
* @param data Upgrade data
|
|
769
|
+
*/
|
|
770
|
+
async upgradeTemplate(data) {
|
|
771
|
+
return await this.client.post("/v1/project/template/upgrade", data);
|
|
772
|
+
}
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
class Config extends PlatformBaseClient {
|
|
776
|
+
/**
|
|
777
|
+
* Get user configuration
|
|
778
|
+
*/
|
|
779
|
+
async getUserConfig() {
|
|
780
|
+
return await this.client.get("/v1/config/user");
|
|
781
|
+
}
|
|
782
|
+
/**
|
|
783
|
+
* Update user configuration
|
|
784
|
+
* @param config Configuration data
|
|
785
|
+
*/
|
|
786
|
+
async updateUserConfig(config) {
|
|
787
|
+
return await this.client.put("/v1/config/user", config);
|
|
788
|
+
}
|
|
789
|
+
}
|
|
790
|
+
|
|
541
791
|
// apis
|
|
542
792
|
class Platform extends PlatformBaseClient {
|
|
543
793
|
getPlatformClient() {
|
|
@@ -553,9 +803,6 @@ var ProtokolSDK09 = (function (exports, axios) {
|
|
|
553
803
|
function() {
|
|
554
804
|
return (new Functions()).setClient(this.client);
|
|
555
805
|
}
|
|
556
|
-
role() {
|
|
557
|
-
return (new Roles()).setClient(this.client);
|
|
558
|
-
}
|
|
559
806
|
user() {
|
|
560
807
|
return (new Users()).setClient(this.client);
|
|
561
808
|
}
|
|
@@ -586,6 +833,12 @@ var ProtokolSDK09 = (function (exports, axios) {
|
|
|
586
833
|
thunder() {
|
|
587
834
|
return (new Thunder()).setClient(this.client);
|
|
588
835
|
}
|
|
836
|
+
project() {
|
|
837
|
+
return (new Project()).setClient(this.client);
|
|
838
|
+
}
|
|
839
|
+
config() {
|
|
840
|
+
return (new Config()).setClient(this.client);
|
|
841
|
+
}
|
|
589
842
|
}
|
|
590
843
|
|
|
591
844
|
class Invoicing extends PlatformBaseClient {
|
|
@@ -922,7 +1175,7 @@ var ProtokolSDK09 = (function (exports, axios) {
|
|
|
922
1175
|
* ```
|
|
923
1176
|
*/
|
|
924
1177
|
async convertData(lib, data, params) {
|
|
925
|
-
const { from, to, sheet_name, include_header, include_footer, header_as_comment, footer_as_comment, separator_rows } = params;
|
|
1178
|
+
const { from, to, sheet_name, include_header, include_footer, header_as_comment, footer_as_comment, separator_rows, field_order, } = params;
|
|
926
1179
|
const queryParams = { from, to };
|
|
927
1180
|
// Add optional parameters if provided
|
|
928
1181
|
if (sheet_name)
|
|
@@ -937,6 +1190,9 @@ var ProtokolSDK09 = (function (exports, axios) {
|
|
|
937
1190
|
queryParams.footer_as_comment = footer_as_comment;
|
|
938
1191
|
if (separator_rows !== undefined)
|
|
939
1192
|
queryParams.separator_rows = separator_rows;
|
|
1193
|
+
if (field_order !== undefined)
|
|
1194
|
+
queryParams.field_order = field_order.join(',');
|
|
1195
|
+
console.log('Conversion Query Params:', queryParams);
|
|
940
1196
|
// Determine content type based on target format
|
|
941
1197
|
let responseType = 'text';
|
|
942
1198
|
if (to === 'json') {
|
|
@@ -1077,8 +1333,13 @@ var ProtokolSDK09 = (function (exports, axios) {
|
|
|
1077
1333
|
* // Auto-detects header, items, and footer sections
|
|
1078
1334
|
* ```
|
|
1079
1335
|
*/
|
|
1080
|
-
async jsonToCsv(lib, jsonData) {
|
|
1336
|
+
async jsonToCsv(lib, jsonData, options) {
|
|
1337
|
+
let params = {};
|
|
1338
|
+
if (options === null || options === void 0 ? void 0 : options.field_order) {
|
|
1339
|
+
params.field_order = options.field_order.join(',');
|
|
1340
|
+
}
|
|
1081
1341
|
return this.request('POST', `media/library/${lib}/convert/json-to-csv`, {
|
|
1342
|
+
params,
|
|
1082
1343
|
data: jsonData,
|
|
1083
1344
|
responseType: 'text',
|
|
1084
1345
|
headers: {
|
|
@@ -1136,6 +1397,9 @@ var ProtokolSDK09 = (function (exports, axios) {
|
|
|
1136
1397
|
if (options === null || options === void 0 ? void 0 : options.sheet_name) {
|
|
1137
1398
|
params.sheet_name = options.sheet_name;
|
|
1138
1399
|
}
|
|
1400
|
+
if (options === null || options === void 0 ? void 0 : options.field_order) {
|
|
1401
|
+
params.field_order = options.field_order.join(',');
|
|
1402
|
+
}
|
|
1139
1403
|
return this.request('POST', `media/library/${lib}/convert/json-to-excel`, {
|
|
1140
1404
|
data: jsonData,
|
|
1141
1405
|
params,
|
|
@@ -1315,7 +1579,7 @@ var ProtokolSDK09 = (function (exports, axios) {
|
|
|
1315
1579
|
}
|
|
1316
1580
|
|
|
1317
1581
|
class SerbiaUtil extends IntegrationsBaseClient {
|
|
1318
|
-
async
|
|
1582
|
+
async nbsSearch(params) {
|
|
1319
1583
|
return await this.services("GET", "nbs/search", { params });
|
|
1320
1584
|
}
|
|
1321
1585
|
async getReceiptFromUrl(url, source) {
|
|
@@ -1413,6 +1677,7 @@ var ProtokolSDK09 = (function (exports, axios) {
|
|
|
1413
1677
|
exports.Apps = Apps;
|
|
1414
1678
|
exports.Component = Component;
|
|
1415
1679
|
exports.ComponentUtils = ComponentUtils;
|
|
1680
|
+
exports.Config = Config;
|
|
1416
1681
|
exports.DMS = DMS;
|
|
1417
1682
|
exports.Forge = Forge;
|
|
1418
1683
|
exports.Functions = Functions;
|
|
@@ -1420,8 +1685,8 @@ var ProtokolSDK09 = (function (exports, axios) {
|
|
|
1420
1685
|
exports.Integrations = Integrations;
|
|
1421
1686
|
exports.Invoicing = Invoicing;
|
|
1422
1687
|
exports.Payments = Payments;
|
|
1688
|
+
exports.Project = Project;
|
|
1423
1689
|
exports.Ratchet = Ratchet;
|
|
1424
|
-
exports.Roles = Roles;
|
|
1425
1690
|
exports.Sandbox = Sandbox;
|
|
1426
1691
|
exports.SerbiaUtil = SerbiaUtil;
|
|
1427
1692
|
exports.System = System;
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ptkl/sdk",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.12",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "rollup -c",
|
|
6
6
|
"build:monaco": "npm run build && node scripts/generate-monaco-types.cjs",
|
|
@@ -42,6 +42,7 @@
|
|
|
42
42
|
"@rollup/plugin-replace": "^6.0.2",
|
|
43
43
|
"axios": "^1.7.7",
|
|
44
44
|
"dom-parser": "^1.1.5",
|
|
45
|
+
"form-data": "^4.0.4",
|
|
45
46
|
"lodash": "^4.17.21"
|
|
46
47
|
}
|
|
47
48
|
}
|
|
@@ -88,5 +88,6 @@ export default class Component extends PlatformBaseClient {
|
|
|
88
88
|
saveTemplatesDist(version: string, sdkVersion: string, engine: string, dist: Record<string, string>): Promise<any>;
|
|
89
89
|
workflow(event: string, input: any): Promise<AxiosResponse<any, any>>;
|
|
90
90
|
function(name: string, input: any): Promise<AxiosResponse<any, any>>;
|
|
91
|
+
revisions(uuid: string): Promise<AxiosResponse<any, any>>;
|
|
91
92
|
}
|
|
92
93
|
export { FindParams, FindOptions, FindResponse, FindAdvancedParams, FindAggregateParams, Model, UpdateOptions, };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import PlatformBaseClient from "./platformBaseClient";
|
|
2
|
+
import { AxiosResponse } from "axios";
|
|
3
|
+
import { ConfigUpdateRequest, UserConfig } from '../types/config';
|
|
4
|
+
export default class Config extends PlatformBaseClient {
|
|
5
|
+
/**
|
|
6
|
+
* Get user configuration
|
|
7
|
+
*/
|
|
8
|
+
getUserConfig(): Promise<AxiosResponse<UserConfig>>;
|
|
9
|
+
/**
|
|
10
|
+
* Update user configuration
|
|
11
|
+
* @param config Configuration data
|
|
12
|
+
*/
|
|
13
|
+
updateUserConfig(config: ConfigUpdateRequest): Promise<AxiosResponse<any>>;
|
|
14
|
+
}
|
|
@@ -261,7 +261,7 @@ export default class DMS extends IntegrationsBaseClient {
|
|
|
261
261
|
* // Auto-detects header, items, and footer sections
|
|
262
262
|
* ```
|
|
263
263
|
*/
|
|
264
|
-
jsonToCsv(lib: string, jsonData: any): Promise<AxiosResponse<string>>;
|
|
264
|
+
jsonToCsv(lib: string, jsonData: any, options?: ConversionOptions): Promise<AxiosResponse<string>>;
|
|
265
265
|
/**
|
|
266
266
|
* Convert JSON data to Excel (.xlsx) format
|
|
267
267
|
*
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import IntegrationsBaseClient from "../integrationsBaseClient";
|
|
2
|
+
import { NbsIpsQrCode } from "../../types/integrations";
|
|
2
3
|
export default class SerbiaUtil extends IntegrationsBaseClient {
|
|
3
|
-
|
|
4
|
+
nbsSearch(params: any): Promise<import("axios").AxiosResponse<any, any>>;
|
|
5
|
+
generateNbsIpsQrCode(params: NbsIpsQrCode): any;
|
|
4
6
|
getReceiptFromUrl(url: string, source: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
5
7
|
getContoList(): Promise<import("axios").AxiosResponse<any, any>>;
|
|
6
8
|
services(method: string, endpoint: string, params?: any): Promise<import("axios").AxiosResponse<any, any>>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { AxiosInstance } from "axios";
|
|
2
2
|
import Functions from "./functions";
|
|
3
|
-
import Roles from "./roles";
|
|
4
3
|
import APIUser from "./apiUser";
|
|
5
4
|
import Users from "./users";
|
|
6
5
|
import Apps from "./apps";
|
|
@@ -12,13 +11,14 @@ import Sandbox from "./sandbox";
|
|
|
12
11
|
import System from "./system";
|
|
13
12
|
import Workflow from "./workflow";
|
|
14
13
|
import Forge from "./forge";
|
|
14
|
+
import Project from "./project";
|
|
15
|
+
import Config from "./config";
|
|
15
16
|
import PlatformBaseClient from "./platformBaseClient";
|
|
16
17
|
export default class Platform extends PlatformBaseClient {
|
|
17
18
|
getPlatformClient(): AxiosInstance;
|
|
18
19
|
getPlatformBaseURL(): string;
|
|
19
20
|
apiUser(): APIUser;
|
|
20
21
|
function(): Functions;
|
|
21
|
-
role(): Roles;
|
|
22
22
|
user(): Users;
|
|
23
23
|
app(appType: string): Apps;
|
|
24
24
|
forge(): Forge;
|
|
@@ -29,4 +29,6 @@ export default class Platform extends PlatformBaseClient {
|
|
|
29
29
|
system(): System;
|
|
30
30
|
workflow(): Workflow;
|
|
31
31
|
thunder(): Thunder;
|
|
32
|
+
project(): Project;
|
|
33
|
+
config(): Config;
|
|
32
34
|
}
|