fusio-sdk 5.1.17 → 6.1.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 +1394 -562
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1091 -218
- package/dist/index.d.ts +1091 -218
- package/dist/index.js +1356 -528
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -28,10 +28,13 @@ __export(index_exports, {
|
|
|
28
28
|
BackendBackupTag: () => BackendBackupTag,
|
|
29
29
|
BackendCategoryTag: () => BackendCategoryTag,
|
|
30
30
|
BackendConfigTag: () => BackendConfigTag,
|
|
31
|
+
BackendConnectionDatabaseTag: () => BackendConnectionDatabaseTag,
|
|
32
|
+
BackendConnectionFilesystemTag: () => BackendConnectionFilesystemTag,
|
|
33
|
+
BackendConnectionHttpTag: () => BackendConnectionHttpTag,
|
|
34
|
+
BackendConnectionSdkTag: () => BackendConnectionSdkTag,
|
|
31
35
|
BackendConnectionTag: () => BackendConnectionTag,
|
|
32
36
|
BackendCronjobTag: () => BackendCronjobTag,
|
|
33
37
|
BackendDashboardTag: () => BackendDashboardTag,
|
|
34
|
-
BackendDatabaseTag: () => BackendDatabaseTag,
|
|
35
38
|
BackendEventTag: () => BackendEventTag,
|
|
36
39
|
BackendFirewallTag: () => BackendFirewallTag,
|
|
37
40
|
BackendFormTag: () => BackendFormTag,
|
|
@@ -56,6 +59,7 @@ __export(index_exports, {
|
|
|
56
59
|
BackendTokenTag: () => BackendTokenTag,
|
|
57
60
|
BackendTransactionTag: () => BackendTransactionTag,
|
|
58
61
|
BackendTrashTag: () => BackendTrashTag,
|
|
62
|
+
BackendTriggerTag: () => BackendTriggerTag,
|
|
59
63
|
BackendUserTag: () => BackendUserTag,
|
|
60
64
|
BackendWebhookTag: () => BackendWebhookTag,
|
|
61
65
|
Client: () => Client,
|
|
@@ -101,6 +105,8 @@ var CommonMessageException = class extends import_sdkgen_client.KnownStatusCodeE
|
|
|
101
105
|
// src/AuthorizationTag.ts
|
|
102
106
|
var AuthorizationTag = class extends import_sdkgen_client2.TagAbstract {
|
|
103
107
|
/**
|
|
108
|
+
* Returns user data of the current authenticated user
|
|
109
|
+
*
|
|
104
110
|
* @returns {Promise<BackendUser>}
|
|
105
111
|
* @throws {CommonMessageException}
|
|
106
112
|
* @throws {ClientException}
|
|
@@ -124,6 +130,8 @@ var AuthorizationTag = class extends import_sdkgen_client2.TagAbstract {
|
|
|
124
130
|
throw new import_sdkgen_client3.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
125
131
|
}
|
|
126
132
|
/**
|
|
133
|
+
* Revoke the access token of the current authenticated user
|
|
134
|
+
*
|
|
127
135
|
* @returns {Promise<CommonMessage>}
|
|
128
136
|
* @throws {CommonMessageException}
|
|
129
137
|
* @throws {ClientException}
|
|
@@ -153,6 +161,8 @@ var import_sdkgen_client4 = require("sdkgen-client");
|
|
|
153
161
|
var import_sdkgen_client5 = require("sdkgen-client");
|
|
154
162
|
var BackendAccountTag = class extends import_sdkgen_client4.TagAbstract {
|
|
155
163
|
/**
|
|
164
|
+
* Changes the password of the authenticated user
|
|
165
|
+
*
|
|
156
166
|
* @returns {Promise<CommonMessage>}
|
|
157
167
|
* @throws {CommonMessageException}
|
|
158
168
|
* @throws {ClientException}
|
|
@@ -179,6 +189,8 @@ var BackendAccountTag = class extends import_sdkgen_client4.TagAbstract {
|
|
|
179
189
|
throw new import_sdkgen_client5.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
180
190
|
}
|
|
181
191
|
/**
|
|
192
|
+
* Returns user data of the authenticated user
|
|
193
|
+
*
|
|
182
194
|
* @returns {Promise<BackendUser>}
|
|
183
195
|
* @throws {CommonMessageException}
|
|
184
196
|
* @throws {ClientException}
|
|
@@ -202,6 +214,8 @@ var BackendAccountTag = class extends import_sdkgen_client4.TagAbstract {
|
|
|
202
214
|
throw new import_sdkgen_client5.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
203
215
|
}
|
|
204
216
|
/**
|
|
217
|
+
* Updates user data of the authenticated user
|
|
218
|
+
*
|
|
205
219
|
* @returns {Promise<CommonMessage>}
|
|
206
220
|
* @throws {CommonMessageException}
|
|
207
221
|
* @throws {ClientException}
|
|
@@ -234,6 +248,8 @@ var import_sdkgen_client6 = require("sdkgen-client");
|
|
|
234
248
|
var import_sdkgen_client7 = require("sdkgen-client");
|
|
235
249
|
var BackendActionTag = class extends import_sdkgen_client6.TagAbstract {
|
|
236
250
|
/**
|
|
251
|
+
* Creates a new action
|
|
252
|
+
*
|
|
237
253
|
* @returns {Promise<CommonMessage>}
|
|
238
254
|
* @throws {CommonMessageException}
|
|
239
255
|
* @throws {ClientException}
|
|
@@ -260,6 +276,8 @@ var BackendActionTag = class extends import_sdkgen_client6.TagAbstract {
|
|
|
260
276
|
throw new import_sdkgen_client7.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
261
277
|
}
|
|
262
278
|
/**
|
|
279
|
+
* Deletes an existing action
|
|
280
|
+
*
|
|
263
281
|
* @returns {Promise<CommonMessage>}
|
|
264
282
|
* @throws {CommonMessageException}
|
|
265
283
|
* @throws {ClientException}
|
|
@@ -285,6 +303,8 @@ var BackendActionTag = class extends import_sdkgen_client6.TagAbstract {
|
|
|
285
303
|
throw new import_sdkgen_client7.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
286
304
|
}
|
|
287
305
|
/**
|
|
306
|
+
* Executes a specific action
|
|
307
|
+
*
|
|
288
308
|
* @returns {Promise<BackendActionExecuteResponse>}
|
|
289
309
|
* @throws {CommonMessageException}
|
|
290
310
|
* @throws {ClientException}
|
|
@@ -313,6 +333,8 @@ var BackendActionTag = class extends import_sdkgen_client6.TagAbstract {
|
|
|
313
333
|
throw new import_sdkgen_client7.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
314
334
|
}
|
|
315
335
|
/**
|
|
336
|
+
* Returns a specific action
|
|
337
|
+
*
|
|
316
338
|
* @returns {Promise<BackendAction>}
|
|
317
339
|
* @throws {CommonMessageException}
|
|
318
340
|
* @throws {ClientException}
|
|
@@ -338,6 +360,8 @@ var BackendActionTag = class extends import_sdkgen_client6.TagAbstract {
|
|
|
338
360
|
throw new import_sdkgen_client7.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
339
361
|
}
|
|
340
362
|
/**
|
|
363
|
+
* Returns a paginated list of actions
|
|
364
|
+
*
|
|
341
365
|
* @returns {Promise<BackendActionCollection>}
|
|
342
366
|
* @throws {CommonMessageException}
|
|
343
367
|
* @throws {ClientException}
|
|
@@ -365,6 +389,8 @@ var BackendActionTag = class extends import_sdkgen_client6.TagAbstract {
|
|
|
365
389
|
throw new import_sdkgen_client7.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
366
390
|
}
|
|
367
391
|
/**
|
|
392
|
+
* Returns all available action classes
|
|
393
|
+
*
|
|
368
394
|
* @returns {Promise<BackendActionIndex>}
|
|
369
395
|
* @throws {CommonMessageException}
|
|
370
396
|
* @throws {ClientException}
|
|
@@ -388,6 +414,8 @@ var BackendActionTag = class extends import_sdkgen_client6.TagAbstract {
|
|
|
388
414
|
throw new import_sdkgen_client7.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
389
415
|
}
|
|
390
416
|
/**
|
|
417
|
+
* Returns the action config form
|
|
418
|
+
*
|
|
391
419
|
* @returns {Promise<CommonFormContainer>}
|
|
392
420
|
* @throws {CommonMessageException}
|
|
393
421
|
* @throws {ClientException}
|
|
@@ -413,6 +441,8 @@ var BackendActionTag = class extends import_sdkgen_client6.TagAbstract {
|
|
|
413
441
|
throw new import_sdkgen_client7.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
414
442
|
}
|
|
415
443
|
/**
|
|
444
|
+
* Updates an existing action
|
|
445
|
+
*
|
|
416
446
|
* @returns {Promise<CommonMessage>}
|
|
417
447
|
* @throws {CommonMessageException}
|
|
418
448
|
* @throws {ClientException}
|
|
@@ -447,6 +477,8 @@ var import_sdkgen_client8 = require("sdkgen-client");
|
|
|
447
477
|
var import_sdkgen_client9 = require("sdkgen-client");
|
|
448
478
|
var BackendAppTag = class extends import_sdkgen_client8.TagAbstract {
|
|
449
479
|
/**
|
|
480
|
+
* Creates a new app
|
|
481
|
+
*
|
|
450
482
|
* @returns {Promise<CommonMessage>}
|
|
451
483
|
* @throws {CommonMessageException}
|
|
452
484
|
* @throws {ClientException}
|
|
@@ -473,6 +505,8 @@ var BackendAppTag = class extends import_sdkgen_client8.TagAbstract {
|
|
|
473
505
|
throw new import_sdkgen_client9.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
474
506
|
}
|
|
475
507
|
/**
|
|
508
|
+
* Deletes an existing app
|
|
509
|
+
*
|
|
476
510
|
* @returns {Promise<CommonMessage>}
|
|
477
511
|
* @throws {CommonMessageException}
|
|
478
512
|
* @throws {ClientException}
|
|
@@ -498,6 +532,8 @@ var BackendAppTag = class extends import_sdkgen_client8.TagAbstract {
|
|
|
498
532
|
throw new import_sdkgen_client9.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
499
533
|
}
|
|
500
534
|
/**
|
|
535
|
+
* Deletes an existing token from an app
|
|
536
|
+
*
|
|
501
537
|
* @returns {Promise<CommonMessage>}
|
|
502
538
|
* @throws {CommonMessageException}
|
|
503
539
|
* @throws {ClientException}
|
|
@@ -524,6 +560,8 @@ var BackendAppTag = class extends import_sdkgen_client8.TagAbstract {
|
|
|
524
560
|
throw new import_sdkgen_client9.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
525
561
|
}
|
|
526
562
|
/**
|
|
563
|
+
* Returns a specific app
|
|
564
|
+
*
|
|
527
565
|
* @returns {Promise<BackendApp>}
|
|
528
566
|
* @throws {CommonMessageException}
|
|
529
567
|
* @throws {ClientException}
|
|
@@ -549,6 +587,8 @@ var BackendAppTag = class extends import_sdkgen_client8.TagAbstract {
|
|
|
549
587
|
throw new import_sdkgen_client9.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
550
588
|
}
|
|
551
589
|
/**
|
|
590
|
+
* Returns a paginated list of apps
|
|
591
|
+
*
|
|
552
592
|
* @returns {Promise<BackendAppCollection>}
|
|
553
593
|
* @throws {CommonMessageException}
|
|
554
594
|
* @throws {ClientException}
|
|
@@ -576,6 +616,8 @@ var BackendAppTag = class extends import_sdkgen_client8.TagAbstract {
|
|
|
576
616
|
throw new import_sdkgen_client9.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
577
617
|
}
|
|
578
618
|
/**
|
|
619
|
+
* Updates an existing app
|
|
620
|
+
*
|
|
579
621
|
* @returns {Promise<CommonMessage>}
|
|
580
622
|
* @throws {CommonMessageException}
|
|
581
623
|
* @throws {ClientException}
|
|
@@ -610,6 +652,8 @@ var import_sdkgen_client10 = require("sdkgen-client");
|
|
|
610
652
|
var import_sdkgen_client11 = require("sdkgen-client");
|
|
611
653
|
var BackendAuditTag = class extends import_sdkgen_client10.TagAbstract {
|
|
612
654
|
/**
|
|
655
|
+
* Returns a specific audit
|
|
656
|
+
*
|
|
613
657
|
* @returns {Promise<BackendAudit>}
|
|
614
658
|
* @throws {CommonMessageException}
|
|
615
659
|
* @throws {ClientException}
|
|
@@ -635,6 +679,8 @@ var BackendAuditTag = class extends import_sdkgen_client10.TagAbstract {
|
|
|
635
679
|
throw new import_sdkgen_client11.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
636
680
|
}
|
|
637
681
|
/**
|
|
682
|
+
* Returns a paginated list of audits
|
|
683
|
+
*
|
|
638
684
|
* @returns {Promise<BackendAuditCollection>}
|
|
639
685
|
* @throws {CommonMessageException}
|
|
640
686
|
* @throws {ClientException}
|
|
@@ -675,6 +721,8 @@ var import_sdkgen_client12 = require("sdkgen-client");
|
|
|
675
721
|
var import_sdkgen_client13 = require("sdkgen-client");
|
|
676
722
|
var BackendBackupTag = class extends import_sdkgen_client12.TagAbstract {
|
|
677
723
|
/**
|
|
724
|
+
* Generates an backup of the current system
|
|
725
|
+
*
|
|
678
726
|
* @returns {Promise<BackendBackupExport>}
|
|
679
727
|
* @throws {CommonMessageException}
|
|
680
728
|
* @throws {ClientException}
|
|
@@ -698,6 +746,8 @@ var BackendBackupTag = class extends import_sdkgen_client12.TagAbstract {
|
|
|
698
746
|
throw new import_sdkgen_client13.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
699
747
|
}
|
|
700
748
|
/**
|
|
749
|
+
* Imports an backup to the current system
|
|
750
|
+
*
|
|
701
751
|
* @returns {Promise<BackendBackupImportResult>}
|
|
702
752
|
* @throws {CommonMessageException}
|
|
703
753
|
* @throws {ClientException}
|
|
@@ -730,6 +780,8 @@ var import_sdkgen_client14 = require("sdkgen-client");
|
|
|
730
780
|
var import_sdkgen_client15 = require("sdkgen-client");
|
|
731
781
|
var BackendCategoryTag = class extends import_sdkgen_client14.TagAbstract {
|
|
732
782
|
/**
|
|
783
|
+
* Creates a new category
|
|
784
|
+
*
|
|
733
785
|
* @returns {Promise<CommonMessage>}
|
|
734
786
|
* @throws {CommonMessageException}
|
|
735
787
|
* @throws {ClientException}
|
|
@@ -756,6 +808,8 @@ var BackendCategoryTag = class extends import_sdkgen_client14.TagAbstract {
|
|
|
756
808
|
throw new import_sdkgen_client15.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
757
809
|
}
|
|
758
810
|
/**
|
|
811
|
+
* Deletes an existing category
|
|
812
|
+
*
|
|
759
813
|
* @returns {Promise<CommonMessage>}
|
|
760
814
|
* @throws {CommonMessageException}
|
|
761
815
|
* @throws {ClientException}
|
|
@@ -781,6 +835,8 @@ var BackendCategoryTag = class extends import_sdkgen_client14.TagAbstract {
|
|
|
781
835
|
throw new import_sdkgen_client15.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
782
836
|
}
|
|
783
837
|
/**
|
|
838
|
+
* Returns a specific category
|
|
839
|
+
*
|
|
784
840
|
* @returns {Promise<BackendCategory>}
|
|
785
841
|
* @throws {CommonMessageException}
|
|
786
842
|
* @throws {ClientException}
|
|
@@ -806,6 +862,8 @@ var BackendCategoryTag = class extends import_sdkgen_client14.TagAbstract {
|
|
|
806
862
|
throw new import_sdkgen_client15.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
807
863
|
}
|
|
808
864
|
/**
|
|
865
|
+
* Returns a paginated list of categories
|
|
866
|
+
*
|
|
809
867
|
* @returns {Promise<BackendCategoryCollection>}
|
|
810
868
|
* @throws {CommonMessageException}
|
|
811
869
|
* @throws {ClientException}
|
|
@@ -833,6 +891,8 @@ var BackendCategoryTag = class extends import_sdkgen_client14.TagAbstract {
|
|
|
833
891
|
throw new import_sdkgen_client15.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
834
892
|
}
|
|
835
893
|
/**
|
|
894
|
+
* Updates an existing category
|
|
895
|
+
*
|
|
836
896
|
* @returns {Promise<CommonMessage>}
|
|
837
897
|
* @throws {CommonMessageException}
|
|
838
898
|
* @throws {ClientException}
|
|
@@ -867,6 +927,8 @@ var import_sdkgen_client16 = require("sdkgen-client");
|
|
|
867
927
|
var import_sdkgen_client17 = require("sdkgen-client");
|
|
868
928
|
var BackendConfigTag = class extends import_sdkgen_client16.TagAbstract {
|
|
869
929
|
/**
|
|
930
|
+
* Returns a specific config
|
|
931
|
+
*
|
|
870
932
|
* @returns {Promise<BackendConfig>}
|
|
871
933
|
* @throws {CommonMessageException}
|
|
872
934
|
* @throws {ClientException}
|
|
@@ -892,6 +954,8 @@ var BackendConfigTag = class extends import_sdkgen_client16.TagAbstract {
|
|
|
892
954
|
throw new import_sdkgen_client17.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
893
955
|
}
|
|
894
956
|
/**
|
|
957
|
+
* Returns a paginated list of configuration values
|
|
958
|
+
*
|
|
895
959
|
* @returns {Promise<BackendConfigCollection>}
|
|
896
960
|
* @throws {CommonMessageException}
|
|
897
961
|
* @throws {ClientException}
|
|
@@ -919,6 +983,8 @@ var BackendConfigTag = class extends import_sdkgen_client16.TagAbstract {
|
|
|
919
983
|
throw new import_sdkgen_client17.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
920
984
|
}
|
|
921
985
|
/**
|
|
986
|
+
* Updates an existing config value
|
|
987
|
+
*
|
|
922
988
|
* @returns {Promise<CommonMessage>}
|
|
923
989
|
* @throws {CommonMessageException}
|
|
924
990
|
* @throws {ClientException}
|
|
@@ -948,17 +1014,22 @@ var BackendConfigTag = class extends import_sdkgen_client16.TagAbstract {
|
|
|
948
1014
|
}
|
|
949
1015
|
};
|
|
950
1016
|
|
|
951
|
-
// src/
|
|
1017
|
+
// src/BackendConnectionDatabaseTag.ts
|
|
952
1018
|
var import_sdkgen_client18 = require("sdkgen-client");
|
|
953
1019
|
var import_sdkgen_client19 = require("sdkgen-client");
|
|
954
|
-
var
|
|
1020
|
+
var BackendConnectionDatabaseTag = class extends import_sdkgen_client18.TagAbstract {
|
|
955
1021
|
/**
|
|
1022
|
+
* Creates a new row at a table on a database
|
|
1023
|
+
*
|
|
956
1024
|
* @returns {Promise<CommonMessage>}
|
|
957
1025
|
* @throws {CommonMessageException}
|
|
958
1026
|
* @throws {ClientException}
|
|
959
1027
|
*/
|
|
960
|
-
async
|
|
961
|
-
const url = this.parser.url("/backend/connection", {
|
|
1028
|
+
async createRow(connectionId, tableName, payload) {
|
|
1029
|
+
const url = this.parser.url("/backend/connection/:connection_id/database/:table_name/rows", {
|
|
1030
|
+
"connection_id": connectionId,
|
|
1031
|
+
"table_name": tableName
|
|
1032
|
+
});
|
|
962
1033
|
let request = {
|
|
963
1034
|
url,
|
|
964
1035
|
method: "POST",
|
|
@@ -979,14 +1050,48 @@ var BackendConnectionTag = class extends import_sdkgen_client18.TagAbstract {
|
|
|
979
1050
|
throw new import_sdkgen_client19.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
980
1051
|
}
|
|
981
1052
|
/**
|
|
1053
|
+
* Creates a new table on a database
|
|
1054
|
+
*
|
|
982
1055
|
* @returns {Promise<CommonMessage>}
|
|
983
1056
|
* @throws {CommonMessageException}
|
|
984
1057
|
* @throws {ClientException}
|
|
985
1058
|
*/
|
|
986
|
-
async
|
|
987
|
-
const url = this.parser.url("/backend/connection
|
|
1059
|
+
async createTable(connectionId, payload) {
|
|
1060
|
+
const url = this.parser.url("/backend/connection/:connection_id/database", {
|
|
988
1061
|
"connection_id": connectionId
|
|
989
1062
|
});
|
|
1063
|
+
let request = {
|
|
1064
|
+
url,
|
|
1065
|
+
method: "POST",
|
|
1066
|
+
headers: {
|
|
1067
|
+
"Content-Type": "application/json"
|
|
1068
|
+
},
|
|
1069
|
+
params: this.parser.query({}, []),
|
|
1070
|
+
data: payload
|
|
1071
|
+
};
|
|
1072
|
+
const response = await this.httpClient.request(request);
|
|
1073
|
+
if (response.ok) {
|
|
1074
|
+
return await response.json();
|
|
1075
|
+
}
|
|
1076
|
+
const statusCode = response.status;
|
|
1077
|
+
if (statusCode >= 0 && statusCode <= 999) {
|
|
1078
|
+
throw new CommonMessageException(await response.json());
|
|
1079
|
+
}
|
|
1080
|
+
throw new import_sdkgen_client19.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
1081
|
+
}
|
|
1082
|
+
/**
|
|
1083
|
+
* Deletes an existing row at a table on a database
|
|
1084
|
+
*
|
|
1085
|
+
* @returns {Promise<CommonMessage>}
|
|
1086
|
+
* @throws {CommonMessageException}
|
|
1087
|
+
* @throws {ClientException}
|
|
1088
|
+
*/
|
|
1089
|
+
async deleteRow(connectionId, tableName, id) {
|
|
1090
|
+
const url = this.parser.url("/backend/connection/:connection_id/database/:table_name/rows/:id", {
|
|
1091
|
+
"connection_id": connectionId,
|
|
1092
|
+
"table_name": tableName,
|
|
1093
|
+
"id": id
|
|
1094
|
+
});
|
|
990
1095
|
let request = {
|
|
991
1096
|
url,
|
|
992
1097
|
method: "DELETE",
|
|
@@ -1004,13 +1109,45 @@ var BackendConnectionTag = class extends import_sdkgen_client18.TagAbstract {
|
|
|
1004
1109
|
throw new import_sdkgen_client19.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
1005
1110
|
}
|
|
1006
1111
|
/**
|
|
1007
|
-
*
|
|
1112
|
+
* Deletes an existing table on a database
|
|
1113
|
+
*
|
|
1114
|
+
* @returns {Promise<CommonMessage>}
|
|
1008
1115
|
* @throws {CommonMessageException}
|
|
1009
1116
|
* @throws {ClientException}
|
|
1010
1117
|
*/
|
|
1011
|
-
async
|
|
1012
|
-
const url = this.parser.url("/backend/connection
|
|
1013
|
-
"connection_id": connectionId
|
|
1118
|
+
async deleteTable(connectionId, tableName) {
|
|
1119
|
+
const url = this.parser.url("/backend/connection/:connection_id/database/:table_name", {
|
|
1120
|
+
"connection_id": connectionId,
|
|
1121
|
+
"table_name": tableName
|
|
1122
|
+
});
|
|
1123
|
+
let request = {
|
|
1124
|
+
url,
|
|
1125
|
+
method: "DELETE",
|
|
1126
|
+
headers: {},
|
|
1127
|
+
params: this.parser.query({}, [])
|
|
1128
|
+
};
|
|
1129
|
+
const response = await this.httpClient.request(request);
|
|
1130
|
+
if (response.ok) {
|
|
1131
|
+
return await response.json();
|
|
1132
|
+
}
|
|
1133
|
+
const statusCode = response.status;
|
|
1134
|
+
if (statusCode >= 0 && statusCode <= 999) {
|
|
1135
|
+
throw new CommonMessageException(await response.json());
|
|
1136
|
+
}
|
|
1137
|
+
throw new import_sdkgen_client19.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
1138
|
+
}
|
|
1139
|
+
/**
|
|
1140
|
+
* Returns a specific row at a table on a database
|
|
1141
|
+
*
|
|
1142
|
+
* @returns {Promise<BackendDatabaseRow>}
|
|
1143
|
+
* @throws {CommonMessageException}
|
|
1144
|
+
* @throws {ClientException}
|
|
1145
|
+
*/
|
|
1146
|
+
async getRow(connectionId, tableName, id) {
|
|
1147
|
+
const url = this.parser.url("/backend/connection/:connection_id/database/:table_name/rows/:id", {
|
|
1148
|
+
"connection_id": connectionId,
|
|
1149
|
+
"table_name": tableName,
|
|
1150
|
+
"id": id
|
|
1014
1151
|
});
|
|
1015
1152
|
let request = {
|
|
1016
1153
|
url,
|
|
@@ -1029,12 +1166,17 @@ var BackendConnectionTag = class extends import_sdkgen_client18.TagAbstract {
|
|
|
1029
1166
|
throw new import_sdkgen_client19.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
1030
1167
|
}
|
|
1031
1168
|
/**
|
|
1032
|
-
*
|
|
1169
|
+
* Returns paginated rows at a table on a database
|
|
1170
|
+
*
|
|
1171
|
+
* @returns {Promise<BackendDatabaseRowCollection>}
|
|
1033
1172
|
* @throws {CommonMessageException}
|
|
1034
1173
|
* @throws {ClientException}
|
|
1035
1174
|
*/
|
|
1036
|
-
async
|
|
1037
|
-
const url = this.parser.url("/backend/connection", {
|
|
1175
|
+
async getRows(connectionId, tableName, startIndex, count, filterBy, filterOp, filterValue, sortBy, sortOrder, columns) {
|
|
1176
|
+
const url = this.parser.url("/backend/connection/:connection_id/database/:table_name/rows", {
|
|
1177
|
+
"connection_id": connectionId,
|
|
1178
|
+
"table_name": tableName
|
|
1179
|
+
});
|
|
1038
1180
|
let request = {
|
|
1039
1181
|
url,
|
|
1040
1182
|
method: "GET",
|
|
@@ -1042,8 +1184,12 @@ var BackendConnectionTag = class extends import_sdkgen_client18.TagAbstract {
|
|
|
1042
1184
|
params: this.parser.query({
|
|
1043
1185
|
"startIndex": startIndex,
|
|
1044
1186
|
"count": count,
|
|
1045
|
-
"
|
|
1046
|
-
"
|
|
1187
|
+
"filterBy": filterBy,
|
|
1188
|
+
"filterOp": filterOp,
|
|
1189
|
+
"filterValue": filterValue,
|
|
1190
|
+
"sortBy": sortBy,
|
|
1191
|
+
"sortOrder": sortOrder,
|
|
1192
|
+
"columns": columns
|
|
1047
1193
|
}, [])
|
|
1048
1194
|
};
|
|
1049
1195
|
const response = await this.httpClient.request(request);
|
|
@@ -1057,12 +1203,17 @@ var BackendConnectionTag = class extends import_sdkgen_client18.TagAbstract {
|
|
|
1057
1203
|
throw new import_sdkgen_client19.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
1058
1204
|
}
|
|
1059
1205
|
/**
|
|
1060
|
-
*
|
|
1206
|
+
* Returns the schema of a specific table on a database
|
|
1207
|
+
*
|
|
1208
|
+
* @returns {Promise<BackendDatabaseTable>}
|
|
1061
1209
|
* @throws {CommonMessageException}
|
|
1062
1210
|
* @throws {ClientException}
|
|
1063
1211
|
*/
|
|
1064
|
-
async
|
|
1065
|
-
const url = this.parser.url("/backend/connection/
|
|
1212
|
+
async getTable(connectionId, tableName) {
|
|
1213
|
+
const url = this.parser.url("/backend/connection/:connection_id/database/:table_name", {
|
|
1214
|
+
"connection_id": connectionId,
|
|
1215
|
+
"table_name": tableName
|
|
1216
|
+
});
|
|
1066
1217
|
let request = {
|
|
1067
1218
|
url,
|
|
1068
1219
|
method: "GET",
|
|
@@ -1080,18 +1231,23 @@ var BackendConnectionTag = class extends import_sdkgen_client18.TagAbstract {
|
|
|
1080
1231
|
throw new import_sdkgen_client19.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
1081
1232
|
}
|
|
1082
1233
|
/**
|
|
1083
|
-
*
|
|
1234
|
+
* Returns all available tables on a database
|
|
1235
|
+
*
|
|
1236
|
+
* @returns {Promise<BackendDatabaseTableCollection>}
|
|
1084
1237
|
* @throws {CommonMessageException}
|
|
1085
1238
|
* @throws {ClientException}
|
|
1086
1239
|
*/
|
|
1087
|
-
async
|
|
1088
|
-
const url = this.parser.url("/backend/connection/
|
|
1240
|
+
async getTables(connectionId, startIndex, count) {
|
|
1241
|
+
const url = this.parser.url("/backend/connection/:connection_id/database", {
|
|
1242
|
+
"connection_id": connectionId
|
|
1243
|
+
});
|
|
1089
1244
|
let request = {
|
|
1090
1245
|
url,
|
|
1091
1246
|
method: "GET",
|
|
1092
1247
|
headers: {},
|
|
1093
1248
|
params: this.parser.query({
|
|
1094
|
-
"
|
|
1249
|
+
"startIndex": startIndex,
|
|
1250
|
+
"count": count
|
|
1095
1251
|
}, [])
|
|
1096
1252
|
};
|
|
1097
1253
|
const response = await this.httpClient.request(request);
|
|
@@ -1105,19 +1261,26 @@ var BackendConnectionTag = class extends import_sdkgen_client18.TagAbstract {
|
|
|
1105
1261
|
throw new import_sdkgen_client19.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
1106
1262
|
}
|
|
1107
1263
|
/**
|
|
1108
|
-
*
|
|
1264
|
+
* Updates an existing row at a table on a database
|
|
1265
|
+
*
|
|
1266
|
+
* @returns {Promise<CommonMessage>}
|
|
1109
1267
|
* @throws {CommonMessageException}
|
|
1110
1268
|
* @throws {ClientException}
|
|
1111
1269
|
*/
|
|
1112
|
-
async
|
|
1113
|
-
const url = this.parser.url("/backend/connection
|
|
1114
|
-
"connection_id": connectionId
|
|
1270
|
+
async updateRow(connectionId, tableName, id, payload) {
|
|
1271
|
+
const url = this.parser.url("/backend/connection/:connection_id/database/:table_name/rows/:id", {
|
|
1272
|
+
"connection_id": connectionId,
|
|
1273
|
+
"table_name": tableName,
|
|
1274
|
+
"id": id
|
|
1115
1275
|
});
|
|
1116
1276
|
let request = {
|
|
1117
1277
|
url,
|
|
1118
|
-
method: "
|
|
1119
|
-
headers: {
|
|
1120
|
-
|
|
1278
|
+
method: "PUT",
|
|
1279
|
+
headers: {
|
|
1280
|
+
"Content-Type": "application/json"
|
|
1281
|
+
},
|
|
1282
|
+
params: this.parser.query({}, []),
|
|
1283
|
+
data: payload
|
|
1121
1284
|
};
|
|
1122
1285
|
const response = await this.httpClient.request(request);
|
|
1123
1286
|
if (response.ok) {
|
|
@@ -1130,13 +1293,16 @@ var BackendConnectionTag = class extends import_sdkgen_client18.TagAbstract {
|
|
|
1130
1293
|
throw new import_sdkgen_client19.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
1131
1294
|
}
|
|
1132
1295
|
/**
|
|
1296
|
+
* Updates an existing table on a database
|
|
1297
|
+
*
|
|
1133
1298
|
* @returns {Promise<CommonMessage>}
|
|
1134
1299
|
* @throws {CommonMessageException}
|
|
1135
1300
|
* @throws {ClientException}
|
|
1136
1301
|
*/
|
|
1137
|
-
async
|
|
1138
|
-
const url = this.parser.url("/backend/connection
|
|
1139
|
-
"connection_id": connectionId
|
|
1302
|
+
async updateTable(connectionId, tableName, payload) {
|
|
1303
|
+
const url = this.parser.url("/backend/connection/:connection_id/database/:table_name", {
|
|
1304
|
+
"connection_id": connectionId,
|
|
1305
|
+
"table_name": tableName
|
|
1140
1306
|
});
|
|
1141
1307
|
let request = {
|
|
1142
1308
|
url,
|
|
@@ -1159,23 +1325,25 @@ var BackendConnectionTag = class extends import_sdkgen_client18.TagAbstract {
|
|
|
1159
1325
|
}
|
|
1160
1326
|
};
|
|
1161
1327
|
|
|
1162
|
-
// src/
|
|
1328
|
+
// src/BackendConnectionFilesystemTag.ts
|
|
1163
1329
|
var import_sdkgen_client20 = require("sdkgen-client");
|
|
1164
1330
|
var import_sdkgen_client21 = require("sdkgen-client");
|
|
1165
|
-
var
|
|
1331
|
+
var BackendConnectionFilesystemTag = class extends import_sdkgen_client20.TagAbstract {
|
|
1166
1332
|
/**
|
|
1333
|
+
* Uploads one or more files on the filesystem connection
|
|
1334
|
+
*
|
|
1167
1335
|
* @returns {Promise<CommonMessage>}
|
|
1168
1336
|
* @throws {CommonMessageException}
|
|
1169
1337
|
* @throws {ClientException}
|
|
1170
1338
|
*/
|
|
1171
|
-
async create(payload) {
|
|
1172
|
-
const url = this.parser.url("/backend/
|
|
1339
|
+
async create(connectionId, payload) {
|
|
1340
|
+
const url = this.parser.url("/backend/connection/:connection_id/filesystem", {
|
|
1341
|
+
"connection_id": connectionId
|
|
1342
|
+
});
|
|
1173
1343
|
let request = {
|
|
1174
1344
|
url,
|
|
1175
1345
|
method: "POST",
|
|
1176
|
-
headers: {
|
|
1177
|
-
"Content-Type": "application/json"
|
|
1178
|
-
},
|
|
1346
|
+
headers: {},
|
|
1179
1347
|
params: this.parser.query({}, []),
|
|
1180
1348
|
data: payload
|
|
1181
1349
|
};
|
|
@@ -1190,13 +1358,16 @@ var BackendCronjobTag = class extends import_sdkgen_client20.TagAbstract {
|
|
|
1190
1358
|
throw new import_sdkgen_client21.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
1191
1359
|
}
|
|
1192
1360
|
/**
|
|
1361
|
+
* Deletes an existing file on the filesystem connection
|
|
1362
|
+
*
|
|
1193
1363
|
* @returns {Promise<CommonMessage>}
|
|
1194
1364
|
* @throws {CommonMessageException}
|
|
1195
1365
|
* @throws {ClientException}
|
|
1196
1366
|
*/
|
|
1197
|
-
async delete(
|
|
1198
|
-
const url = this.parser.url("/backend/
|
|
1199
|
-
"
|
|
1367
|
+
async delete(connectionId, fileId) {
|
|
1368
|
+
const url = this.parser.url("/backend/connection/:connection_id/filesystem/:file_id", {
|
|
1369
|
+
"connection_id": connectionId,
|
|
1370
|
+
"file_id": fileId
|
|
1200
1371
|
});
|
|
1201
1372
|
let request = {
|
|
1202
1373
|
url,
|
|
@@ -1215,23 +1386,28 @@ var BackendCronjobTag = class extends import_sdkgen_client20.TagAbstract {
|
|
|
1215
1386
|
throw new import_sdkgen_client21.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
1216
1387
|
}
|
|
1217
1388
|
/**
|
|
1218
|
-
*
|
|
1389
|
+
* Returns the content of the provided file id on the filesystem connection
|
|
1390
|
+
*
|
|
1391
|
+
* @returns {Promise<ArrayBuffer>}
|
|
1219
1392
|
* @throws {CommonMessageException}
|
|
1220
1393
|
* @throws {ClientException}
|
|
1221
1394
|
*/
|
|
1222
|
-
async get(
|
|
1223
|
-
const url = this.parser.url("/backend/
|
|
1224
|
-
"
|
|
1395
|
+
async get(connectionId, fileId) {
|
|
1396
|
+
const url = this.parser.url("/backend/connection/:connection_id/filesystem/:file_id", {
|
|
1397
|
+
"connection_id": connectionId,
|
|
1398
|
+
"file_id": fileId
|
|
1225
1399
|
});
|
|
1226
1400
|
let request = {
|
|
1227
1401
|
url,
|
|
1228
1402
|
method: "GET",
|
|
1229
|
-
headers: {
|
|
1403
|
+
headers: {
|
|
1404
|
+
"Accept": "application/octet-stream"
|
|
1405
|
+
},
|
|
1230
1406
|
params: this.parser.query({}, [])
|
|
1231
1407
|
};
|
|
1232
1408
|
const response = await this.httpClient.request(request);
|
|
1233
1409
|
if (response.ok) {
|
|
1234
|
-
return await response.
|
|
1410
|
+
return await response.arrayBuffer();
|
|
1235
1411
|
}
|
|
1236
1412
|
const statusCode = response.status;
|
|
1237
1413
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
@@ -1240,20 +1416,23 @@ var BackendCronjobTag = class extends import_sdkgen_client20.TagAbstract {
|
|
|
1240
1416
|
throw new import_sdkgen_client21.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
1241
1417
|
}
|
|
1242
1418
|
/**
|
|
1243
|
-
*
|
|
1419
|
+
* Returns all available files on the filesystem connection
|
|
1420
|
+
*
|
|
1421
|
+
* @returns {Promise<BackendFileCollection>}
|
|
1244
1422
|
* @throws {CommonMessageException}
|
|
1245
1423
|
* @throws {ClientException}
|
|
1246
1424
|
*/
|
|
1247
|
-
async getAll(startIndex, count
|
|
1248
|
-
const url = this.parser.url("/backend/
|
|
1425
|
+
async getAll(connectionId, startIndex, count) {
|
|
1426
|
+
const url = this.parser.url("/backend/connection/:connection_id/filesystem", {
|
|
1427
|
+
"connection_id": connectionId
|
|
1428
|
+
});
|
|
1249
1429
|
let request = {
|
|
1250
1430
|
url,
|
|
1251
1431
|
method: "GET",
|
|
1252
1432
|
headers: {},
|
|
1253
1433
|
params: this.parser.query({
|
|
1254
1434
|
"startIndex": startIndex,
|
|
1255
|
-
"count": count
|
|
1256
|
-
"search": search
|
|
1435
|
+
"count": count
|
|
1257
1436
|
}, [])
|
|
1258
1437
|
};
|
|
1259
1438
|
const response = await this.httpClient.request(request);
|
|
@@ -1267,20 +1446,21 @@ var BackendCronjobTag = class extends import_sdkgen_client20.TagAbstract {
|
|
|
1267
1446
|
throw new import_sdkgen_client21.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
1268
1447
|
}
|
|
1269
1448
|
/**
|
|
1449
|
+
* Updates an existing file on the filesystem connection
|
|
1450
|
+
*
|
|
1270
1451
|
* @returns {Promise<CommonMessage>}
|
|
1271
1452
|
* @throws {CommonMessageException}
|
|
1272
1453
|
* @throws {ClientException}
|
|
1273
1454
|
*/
|
|
1274
|
-
async update(
|
|
1275
|
-
const url = this.parser.url("/backend/
|
|
1276
|
-
"
|
|
1455
|
+
async update(connectionId, fileId, payload) {
|
|
1456
|
+
const url = this.parser.url("/backend/connection/:connection_id/filesystem/:file_id", {
|
|
1457
|
+
"connection_id": connectionId,
|
|
1458
|
+
"file_id": fileId
|
|
1277
1459
|
});
|
|
1278
1460
|
let request = {
|
|
1279
1461
|
url,
|
|
1280
1462
|
method: "PUT",
|
|
1281
|
-
headers: {
|
|
1282
|
-
"Content-Type": "application/json"
|
|
1283
|
-
},
|
|
1463
|
+
headers: {},
|
|
1284
1464
|
params: this.parser.query({}, []),
|
|
1285
1465
|
data: payload
|
|
1286
1466
|
};
|
|
@@ -1296,22 +1476,29 @@ var BackendCronjobTag = class extends import_sdkgen_client20.TagAbstract {
|
|
|
1296
1476
|
}
|
|
1297
1477
|
};
|
|
1298
1478
|
|
|
1299
|
-
// src/
|
|
1479
|
+
// src/BackendConnectionHttpTag.ts
|
|
1300
1480
|
var import_sdkgen_client22 = require("sdkgen-client");
|
|
1301
1481
|
var import_sdkgen_client23 = require("sdkgen-client");
|
|
1302
|
-
var
|
|
1482
|
+
var BackendConnectionHttpTag = class extends import_sdkgen_client22.TagAbstract {
|
|
1303
1483
|
/**
|
|
1304
|
-
*
|
|
1484
|
+
* Sends an arbitrary HTTP request to the connection
|
|
1485
|
+
*
|
|
1486
|
+
* @returns {Promise<BackendHttpResponse>}
|
|
1305
1487
|
* @throws {CommonMessageException}
|
|
1306
1488
|
* @throws {ClientException}
|
|
1307
1489
|
*/
|
|
1308
|
-
async
|
|
1309
|
-
const url = this.parser.url("/backend/
|
|
1490
|
+
async execute(connectionId, payload) {
|
|
1491
|
+
const url = this.parser.url("/backend/connection/:connection_id/http", {
|
|
1492
|
+
"connection_id": connectionId
|
|
1493
|
+
});
|
|
1310
1494
|
let request = {
|
|
1311
1495
|
url,
|
|
1312
|
-
method: "
|
|
1313
|
-
headers: {
|
|
1314
|
-
|
|
1496
|
+
method: "POST",
|
|
1497
|
+
headers: {
|
|
1498
|
+
"Content-Type": "application/json"
|
|
1499
|
+
},
|
|
1500
|
+
params: this.parser.query({}, []),
|
|
1501
|
+
data: payload
|
|
1315
1502
|
};
|
|
1316
1503
|
const response = await this.httpClient.request(request);
|
|
1317
1504
|
if (response.ok) {
|
|
@@ -1325,28 +1512,26 @@ var BackendDashboardTag = class extends import_sdkgen_client22.TagAbstract {
|
|
|
1325
1512
|
}
|
|
1326
1513
|
};
|
|
1327
1514
|
|
|
1328
|
-
// src/
|
|
1515
|
+
// src/BackendConnectionSdkTag.ts
|
|
1329
1516
|
var import_sdkgen_client24 = require("sdkgen-client");
|
|
1330
1517
|
var import_sdkgen_client25 = require("sdkgen-client");
|
|
1331
|
-
var
|
|
1518
|
+
var BackendConnectionSdkTag = class extends import_sdkgen_client24.TagAbstract {
|
|
1332
1519
|
/**
|
|
1333
|
-
*
|
|
1520
|
+
* Returns the SDK specification
|
|
1521
|
+
*
|
|
1522
|
+
* @returns {Promise<Passthru>}
|
|
1334
1523
|
* @throws {CommonMessageException}
|
|
1335
1524
|
* @throws {ClientException}
|
|
1336
1525
|
*/
|
|
1337
|
-
async
|
|
1338
|
-
const url = this.parser.url("/backend/
|
|
1339
|
-
"connection_id": connectionId
|
|
1340
|
-
"table_name": tableName
|
|
1526
|
+
async get(connectionId) {
|
|
1527
|
+
const url = this.parser.url("/backend/connection/:connection_id/sdk", {
|
|
1528
|
+
"connection_id": connectionId
|
|
1341
1529
|
});
|
|
1342
1530
|
let request = {
|
|
1343
1531
|
url,
|
|
1344
|
-
method: "
|
|
1345
|
-
headers: {
|
|
1346
|
-
|
|
1347
|
-
},
|
|
1348
|
-
params: this.parser.query({}, []),
|
|
1349
|
-
data: payload
|
|
1532
|
+
method: "GET",
|
|
1533
|
+
headers: {},
|
|
1534
|
+
params: this.parser.query({}, [])
|
|
1350
1535
|
};
|
|
1351
1536
|
const response = await this.httpClient.request(request);
|
|
1352
1537
|
if (response.ok) {
|
|
@@ -1358,15 +1543,45 @@ var BackendDatabaseTag = class extends import_sdkgen_client24.TagAbstract {
|
|
|
1358
1543
|
}
|
|
1359
1544
|
throw new import_sdkgen_client25.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
1360
1545
|
}
|
|
1546
|
+
};
|
|
1547
|
+
|
|
1548
|
+
// src/BackendConnectionTag.ts
|
|
1549
|
+
var import_sdkgen_client26 = require("sdkgen-client");
|
|
1550
|
+
var import_sdkgen_client27 = require("sdkgen-client");
|
|
1551
|
+
var BackendConnectionTag = class extends import_sdkgen_client26.TagAbstract {
|
|
1552
|
+
database() {
|
|
1553
|
+
return new BackendConnectionDatabaseTag(
|
|
1554
|
+
this.httpClient,
|
|
1555
|
+
this.parser
|
|
1556
|
+
);
|
|
1557
|
+
}
|
|
1558
|
+
filesystem() {
|
|
1559
|
+
return new BackendConnectionFilesystemTag(
|
|
1560
|
+
this.httpClient,
|
|
1561
|
+
this.parser
|
|
1562
|
+
);
|
|
1563
|
+
}
|
|
1564
|
+
http() {
|
|
1565
|
+
return new BackendConnectionHttpTag(
|
|
1566
|
+
this.httpClient,
|
|
1567
|
+
this.parser
|
|
1568
|
+
);
|
|
1569
|
+
}
|
|
1570
|
+
sdk() {
|
|
1571
|
+
return new BackendConnectionSdkTag(
|
|
1572
|
+
this.httpClient,
|
|
1573
|
+
this.parser
|
|
1574
|
+
);
|
|
1575
|
+
}
|
|
1361
1576
|
/**
|
|
1577
|
+
* Creates a new connection
|
|
1578
|
+
*
|
|
1362
1579
|
* @returns {Promise<CommonMessage>}
|
|
1363
1580
|
* @throws {CommonMessageException}
|
|
1364
1581
|
* @throws {ClientException}
|
|
1365
1582
|
*/
|
|
1366
|
-
async
|
|
1367
|
-
const url = this.parser.url("/backend/
|
|
1368
|
-
"connection_id": connectionId
|
|
1369
|
-
});
|
|
1583
|
+
async create(payload) {
|
|
1584
|
+
const url = this.parser.url("/backend/connection", {});
|
|
1370
1585
|
let request = {
|
|
1371
1586
|
url,
|
|
1372
1587
|
method: "POST",
|
|
@@ -1384,18 +1599,18 @@ var BackendDatabaseTag = class extends import_sdkgen_client24.TagAbstract {
|
|
|
1384
1599
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
1385
1600
|
throw new CommonMessageException(await response.json());
|
|
1386
1601
|
}
|
|
1387
|
-
throw new
|
|
1602
|
+
throw new import_sdkgen_client27.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
1388
1603
|
}
|
|
1389
1604
|
/**
|
|
1605
|
+
* Deletes an existing connection
|
|
1606
|
+
*
|
|
1390
1607
|
* @returns {Promise<CommonMessage>}
|
|
1391
1608
|
* @throws {CommonMessageException}
|
|
1392
1609
|
* @throws {ClientException}
|
|
1393
1610
|
*/
|
|
1394
|
-
async
|
|
1395
|
-
const url = this.parser.url("/backend/
|
|
1396
|
-
"connection_id": connectionId
|
|
1397
|
-
"table_name": tableName,
|
|
1398
|
-
"id": id
|
|
1611
|
+
async delete(connectionId) {
|
|
1612
|
+
const url = this.parser.url("/backend/connection/$connection_id<[0-9]+|^~>", {
|
|
1613
|
+
"connection_id": connectionId
|
|
1399
1614
|
});
|
|
1400
1615
|
let request = {
|
|
1401
1616
|
url,
|
|
@@ -1411,21 +1626,22 @@ var BackendDatabaseTag = class extends import_sdkgen_client24.TagAbstract {
|
|
|
1411
1626
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
1412
1627
|
throw new CommonMessageException(await response.json());
|
|
1413
1628
|
}
|
|
1414
|
-
throw new
|
|
1629
|
+
throw new import_sdkgen_client27.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
1415
1630
|
}
|
|
1416
1631
|
/**
|
|
1417
|
-
*
|
|
1632
|
+
* Returns a specific connection
|
|
1633
|
+
*
|
|
1634
|
+
* @returns {Promise<BackendConnection>}
|
|
1418
1635
|
* @throws {CommonMessageException}
|
|
1419
1636
|
* @throws {ClientException}
|
|
1420
1637
|
*/
|
|
1421
|
-
async
|
|
1422
|
-
const url = this.parser.url("/backend/
|
|
1423
|
-
"connection_id": connectionId
|
|
1424
|
-
"table_name": tableName
|
|
1638
|
+
async get(connectionId) {
|
|
1639
|
+
const url = this.parser.url("/backend/connection/$connection_id<[0-9]+|^~>", {
|
|
1640
|
+
"connection_id": connectionId
|
|
1425
1641
|
});
|
|
1426
1642
|
let request = {
|
|
1427
1643
|
url,
|
|
1428
|
-
method: "
|
|
1644
|
+
method: "GET",
|
|
1429
1645
|
headers: {},
|
|
1430
1646
|
params: this.parser.query({}, [])
|
|
1431
1647
|
};
|
|
@@ -1437,19 +1653,47 @@ var BackendDatabaseTag = class extends import_sdkgen_client24.TagAbstract {
|
|
|
1437
1653
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
1438
1654
|
throw new CommonMessageException(await response.json());
|
|
1439
1655
|
}
|
|
1440
|
-
throw new
|
|
1656
|
+
throw new import_sdkgen_client27.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
1441
1657
|
}
|
|
1442
1658
|
/**
|
|
1443
|
-
*
|
|
1659
|
+
* Returns a paginated list of connections
|
|
1660
|
+
*
|
|
1661
|
+
* @returns {Promise<BackendConnectionCollection>}
|
|
1444
1662
|
* @throws {CommonMessageException}
|
|
1445
1663
|
* @throws {ClientException}
|
|
1446
1664
|
*/
|
|
1447
|
-
async
|
|
1448
|
-
const url = this.parser.url("/backend/
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
"
|
|
1452
|
-
|
|
1665
|
+
async getAll(startIndex, count, search, _class) {
|
|
1666
|
+
const url = this.parser.url("/backend/connection", {});
|
|
1667
|
+
let request = {
|
|
1668
|
+
url,
|
|
1669
|
+
method: "GET",
|
|
1670
|
+
headers: {},
|
|
1671
|
+
params: this.parser.query({
|
|
1672
|
+
"startIndex": startIndex,
|
|
1673
|
+
"count": count,
|
|
1674
|
+
"search": search,
|
|
1675
|
+
"class": _class
|
|
1676
|
+
}, [])
|
|
1677
|
+
};
|
|
1678
|
+
const response = await this.httpClient.request(request);
|
|
1679
|
+
if (response.ok) {
|
|
1680
|
+
return await response.json();
|
|
1681
|
+
}
|
|
1682
|
+
const statusCode = response.status;
|
|
1683
|
+
if (statusCode >= 0 && statusCode <= 999) {
|
|
1684
|
+
throw new CommonMessageException(await response.json());
|
|
1685
|
+
}
|
|
1686
|
+
throw new import_sdkgen_client27.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
1687
|
+
}
|
|
1688
|
+
/**
|
|
1689
|
+
* Returns all available connection classes
|
|
1690
|
+
*
|
|
1691
|
+
* @returns {Promise<BackendConnectionIndex>}
|
|
1692
|
+
* @throws {CommonMessageException}
|
|
1693
|
+
* @throws {ClientException}
|
|
1694
|
+
*/
|
|
1695
|
+
async getClasses() {
|
|
1696
|
+
const url = this.parser.url("/backend/connection/list", {});
|
|
1453
1697
|
let request = {
|
|
1454
1698
|
url,
|
|
1455
1699
|
method: "GET",
|
|
@@ -1464,31 +1708,23 @@ var BackendDatabaseTag = class extends import_sdkgen_client24.TagAbstract {
|
|
|
1464
1708
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
1465
1709
|
throw new CommonMessageException(await response.json());
|
|
1466
1710
|
}
|
|
1467
|
-
throw new
|
|
1711
|
+
throw new import_sdkgen_client27.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
1468
1712
|
}
|
|
1469
1713
|
/**
|
|
1470
|
-
*
|
|
1714
|
+
* Returns the connection config form
|
|
1715
|
+
*
|
|
1716
|
+
* @returns {Promise<CommonFormContainer>}
|
|
1471
1717
|
* @throws {CommonMessageException}
|
|
1472
1718
|
* @throws {ClientException}
|
|
1473
1719
|
*/
|
|
1474
|
-
async
|
|
1475
|
-
const url = this.parser.url("/backend/
|
|
1476
|
-
"connection_id": connectionId,
|
|
1477
|
-
"table_name": tableName
|
|
1478
|
-
});
|
|
1720
|
+
async getForm(_class) {
|
|
1721
|
+
const url = this.parser.url("/backend/connection/form", {});
|
|
1479
1722
|
let request = {
|
|
1480
1723
|
url,
|
|
1481
1724
|
method: "GET",
|
|
1482
1725
|
headers: {},
|
|
1483
1726
|
params: this.parser.query({
|
|
1484
|
-
"
|
|
1485
|
-
"count": count,
|
|
1486
|
-
"filterBy": filterBy,
|
|
1487
|
-
"filterOp": filterOp,
|
|
1488
|
-
"filterValue": filterValue,
|
|
1489
|
-
"sortBy": sortBy,
|
|
1490
|
-
"sortOrder": sortOrder,
|
|
1491
|
-
"columns": columns
|
|
1727
|
+
"class": _class
|
|
1492
1728
|
}, [])
|
|
1493
1729
|
};
|
|
1494
1730
|
const response = await this.httpClient.request(request);
|
|
@@ -1499,17 +1735,136 @@ var BackendDatabaseTag = class extends import_sdkgen_client24.TagAbstract {
|
|
|
1499
1735
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
1500
1736
|
throw new CommonMessageException(await response.json());
|
|
1501
1737
|
}
|
|
1502
|
-
throw new
|
|
1738
|
+
throw new import_sdkgen_client27.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
1739
|
+
}
|
|
1740
|
+
/**
|
|
1741
|
+
* Returns a redirect url to start the OAuth2 authorization flow for the given connection
|
|
1742
|
+
*
|
|
1743
|
+
* @returns {Promise<BackendConnectionRedirectResponse>}
|
|
1744
|
+
* @throws {CommonMessageException}
|
|
1745
|
+
* @throws {ClientException}
|
|
1746
|
+
*/
|
|
1747
|
+
async getRedirect(connectionId) {
|
|
1748
|
+
const url = this.parser.url("/backend/connection/:connection_id/redirect", {
|
|
1749
|
+
"connection_id": connectionId
|
|
1750
|
+
});
|
|
1751
|
+
let request = {
|
|
1752
|
+
url,
|
|
1753
|
+
method: "GET",
|
|
1754
|
+
headers: {},
|
|
1755
|
+
params: this.parser.query({}, [])
|
|
1756
|
+
};
|
|
1757
|
+
const response = await this.httpClient.request(request);
|
|
1758
|
+
if (response.ok) {
|
|
1759
|
+
return await response.json();
|
|
1760
|
+
}
|
|
1761
|
+
const statusCode = response.status;
|
|
1762
|
+
if (statusCode >= 0 && statusCode <= 999) {
|
|
1763
|
+
throw new CommonMessageException(await response.json());
|
|
1764
|
+
}
|
|
1765
|
+
throw new import_sdkgen_client27.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
1766
|
+
}
|
|
1767
|
+
/**
|
|
1768
|
+
* Updates an existing connection
|
|
1769
|
+
*
|
|
1770
|
+
* @returns {Promise<CommonMessage>}
|
|
1771
|
+
* @throws {CommonMessageException}
|
|
1772
|
+
* @throws {ClientException}
|
|
1773
|
+
*/
|
|
1774
|
+
async update(connectionId, payload) {
|
|
1775
|
+
const url = this.parser.url("/backend/connection/$connection_id<[0-9]+|^~>", {
|
|
1776
|
+
"connection_id": connectionId
|
|
1777
|
+
});
|
|
1778
|
+
let request = {
|
|
1779
|
+
url,
|
|
1780
|
+
method: "PUT",
|
|
1781
|
+
headers: {
|
|
1782
|
+
"Content-Type": "application/json"
|
|
1783
|
+
},
|
|
1784
|
+
params: this.parser.query({}, []),
|
|
1785
|
+
data: payload
|
|
1786
|
+
};
|
|
1787
|
+
const response = await this.httpClient.request(request);
|
|
1788
|
+
if (response.ok) {
|
|
1789
|
+
return await response.json();
|
|
1790
|
+
}
|
|
1791
|
+
const statusCode = response.status;
|
|
1792
|
+
if (statusCode >= 0 && statusCode <= 999) {
|
|
1793
|
+
throw new CommonMessageException(await response.json());
|
|
1794
|
+
}
|
|
1795
|
+
throw new import_sdkgen_client27.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
1796
|
+
}
|
|
1797
|
+
};
|
|
1798
|
+
|
|
1799
|
+
// src/BackendCronjobTag.ts
|
|
1800
|
+
var import_sdkgen_client28 = require("sdkgen-client");
|
|
1801
|
+
var import_sdkgen_client29 = require("sdkgen-client");
|
|
1802
|
+
var BackendCronjobTag = class extends import_sdkgen_client28.TagAbstract {
|
|
1803
|
+
/**
|
|
1804
|
+
* Creates a new cronjob
|
|
1805
|
+
*
|
|
1806
|
+
* @returns {Promise<CommonMessage>}
|
|
1807
|
+
* @throws {CommonMessageException}
|
|
1808
|
+
* @throws {ClientException}
|
|
1809
|
+
*/
|
|
1810
|
+
async create(payload) {
|
|
1811
|
+
const url = this.parser.url("/backend/cronjob", {});
|
|
1812
|
+
let request = {
|
|
1813
|
+
url,
|
|
1814
|
+
method: "POST",
|
|
1815
|
+
headers: {
|
|
1816
|
+
"Content-Type": "application/json"
|
|
1817
|
+
},
|
|
1818
|
+
params: this.parser.query({}, []),
|
|
1819
|
+
data: payload
|
|
1820
|
+
};
|
|
1821
|
+
const response = await this.httpClient.request(request);
|
|
1822
|
+
if (response.ok) {
|
|
1823
|
+
return await response.json();
|
|
1824
|
+
}
|
|
1825
|
+
const statusCode = response.status;
|
|
1826
|
+
if (statusCode >= 0 && statusCode <= 999) {
|
|
1827
|
+
throw new CommonMessageException(await response.json());
|
|
1828
|
+
}
|
|
1829
|
+
throw new import_sdkgen_client29.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
1830
|
+
}
|
|
1831
|
+
/**
|
|
1832
|
+
* Deletes an existing cronjob
|
|
1833
|
+
*
|
|
1834
|
+
* @returns {Promise<CommonMessage>}
|
|
1835
|
+
* @throws {CommonMessageException}
|
|
1836
|
+
* @throws {ClientException}
|
|
1837
|
+
*/
|
|
1838
|
+
async delete(cronjobId) {
|
|
1839
|
+
const url = this.parser.url("/backend/cronjob/$cronjob_id<[0-9]+|^~>", {
|
|
1840
|
+
"cronjob_id": cronjobId
|
|
1841
|
+
});
|
|
1842
|
+
let request = {
|
|
1843
|
+
url,
|
|
1844
|
+
method: "DELETE",
|
|
1845
|
+
headers: {},
|
|
1846
|
+
params: this.parser.query({}, [])
|
|
1847
|
+
};
|
|
1848
|
+
const response = await this.httpClient.request(request);
|
|
1849
|
+
if (response.ok) {
|
|
1850
|
+
return await response.json();
|
|
1851
|
+
}
|
|
1852
|
+
const statusCode = response.status;
|
|
1853
|
+
if (statusCode >= 0 && statusCode <= 999) {
|
|
1854
|
+
throw new CommonMessageException(await response.json());
|
|
1855
|
+
}
|
|
1856
|
+
throw new import_sdkgen_client29.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
1503
1857
|
}
|
|
1504
1858
|
/**
|
|
1505
|
-
*
|
|
1859
|
+
* Returns a specific cronjob
|
|
1860
|
+
*
|
|
1861
|
+
* @returns {Promise<BackendCronjob>}
|
|
1506
1862
|
* @throws {CommonMessageException}
|
|
1507
1863
|
* @throws {ClientException}
|
|
1508
1864
|
*/
|
|
1509
|
-
async
|
|
1510
|
-
const url = this.parser.url("/backend/
|
|
1511
|
-
"
|
|
1512
|
-
"table_name": tableName
|
|
1865
|
+
async get(cronjobId) {
|
|
1866
|
+
const url = this.parser.url("/backend/cronjob/$cronjob_id<[0-9]+|^~>", {
|
|
1867
|
+
"cronjob_id": cronjobId
|
|
1513
1868
|
});
|
|
1514
1869
|
let request = {
|
|
1515
1870
|
url,
|
|
@@ -1525,22 +1880,26 @@ var BackendDatabaseTag = class extends import_sdkgen_client24.TagAbstract {
|
|
|
1525
1880
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
1526
1881
|
throw new CommonMessageException(await response.json());
|
|
1527
1882
|
}
|
|
1528
|
-
throw new
|
|
1883
|
+
throw new import_sdkgen_client29.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
1529
1884
|
}
|
|
1530
1885
|
/**
|
|
1531
|
-
*
|
|
1886
|
+
* Returns a paginated list of cronjobs
|
|
1887
|
+
*
|
|
1888
|
+
* @returns {Promise<BackendCronjobCollection>}
|
|
1532
1889
|
* @throws {CommonMessageException}
|
|
1533
1890
|
* @throws {ClientException}
|
|
1534
1891
|
*/
|
|
1535
|
-
async
|
|
1536
|
-
const url = this.parser.url("/backend/
|
|
1537
|
-
"connection_id": connectionId
|
|
1538
|
-
});
|
|
1892
|
+
async getAll(startIndex, count, search) {
|
|
1893
|
+
const url = this.parser.url("/backend/cronjob", {});
|
|
1539
1894
|
let request = {
|
|
1540
1895
|
url,
|
|
1541
1896
|
method: "GET",
|
|
1542
1897
|
headers: {},
|
|
1543
|
-
params: this.parser.query({
|
|
1898
|
+
params: this.parser.query({
|
|
1899
|
+
"startIndex": startIndex,
|
|
1900
|
+
"count": count,
|
|
1901
|
+
"search": search
|
|
1902
|
+
}, [])
|
|
1544
1903
|
};
|
|
1545
1904
|
const response = await this.httpClient.request(request);
|
|
1546
1905
|
if (response.ok) {
|
|
@@ -1550,18 +1909,18 @@ var BackendDatabaseTag = class extends import_sdkgen_client24.TagAbstract {
|
|
|
1550
1909
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
1551
1910
|
throw new CommonMessageException(await response.json());
|
|
1552
1911
|
}
|
|
1553
|
-
throw new
|
|
1912
|
+
throw new import_sdkgen_client29.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
1554
1913
|
}
|
|
1555
1914
|
/**
|
|
1915
|
+
* Updates an existing cronjob
|
|
1916
|
+
*
|
|
1556
1917
|
* @returns {Promise<CommonMessage>}
|
|
1557
1918
|
* @throws {CommonMessageException}
|
|
1558
1919
|
* @throws {ClientException}
|
|
1559
1920
|
*/
|
|
1560
|
-
async
|
|
1561
|
-
const url = this.parser.url("/backend/
|
|
1562
|
-
"
|
|
1563
|
-
"table_name": tableName,
|
|
1564
|
-
"id": id
|
|
1921
|
+
async update(cronjobId, payload) {
|
|
1922
|
+
const url = this.parser.url("/backend/cronjob/$cronjob_id<[0-9]+|^~>", {
|
|
1923
|
+
"cronjob_id": cronjobId
|
|
1565
1924
|
});
|
|
1566
1925
|
let request = {
|
|
1567
1926
|
url,
|
|
@@ -1580,26 +1939,28 @@ var BackendDatabaseTag = class extends import_sdkgen_client24.TagAbstract {
|
|
|
1580
1939
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
1581
1940
|
throw new CommonMessageException(await response.json());
|
|
1582
1941
|
}
|
|
1583
|
-
throw new
|
|
1942
|
+
throw new import_sdkgen_client29.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
1584
1943
|
}
|
|
1944
|
+
};
|
|
1945
|
+
|
|
1946
|
+
// src/BackendDashboardTag.ts
|
|
1947
|
+
var import_sdkgen_client30 = require("sdkgen-client");
|
|
1948
|
+
var import_sdkgen_client31 = require("sdkgen-client");
|
|
1949
|
+
var BackendDashboardTag = class extends import_sdkgen_client30.TagAbstract {
|
|
1585
1950
|
/**
|
|
1586
|
-
*
|
|
1951
|
+
* Returns all available dashboard widgets
|
|
1952
|
+
*
|
|
1953
|
+
* @returns {Promise<BackendDashboard>}
|
|
1587
1954
|
* @throws {CommonMessageException}
|
|
1588
1955
|
* @throws {ClientException}
|
|
1589
1956
|
*/
|
|
1590
|
-
async
|
|
1591
|
-
const url = this.parser.url("/backend/
|
|
1592
|
-
"connection_id": connectionId,
|
|
1593
|
-
"table_name": tableName
|
|
1594
|
-
});
|
|
1957
|
+
async getAll() {
|
|
1958
|
+
const url = this.parser.url("/backend/dashboard", {});
|
|
1595
1959
|
let request = {
|
|
1596
1960
|
url,
|
|
1597
|
-
method: "
|
|
1598
|
-
headers: {
|
|
1599
|
-
|
|
1600
|
-
},
|
|
1601
|
-
params: this.parser.query({}, []),
|
|
1602
|
-
data: payload
|
|
1961
|
+
method: "GET",
|
|
1962
|
+
headers: {},
|
|
1963
|
+
params: this.parser.query({}, [])
|
|
1603
1964
|
};
|
|
1604
1965
|
const response = await this.httpClient.request(request);
|
|
1605
1966
|
if (response.ok) {
|
|
@@ -1609,15 +1970,17 @@ var BackendDatabaseTag = class extends import_sdkgen_client24.TagAbstract {
|
|
|
1609
1970
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
1610
1971
|
throw new CommonMessageException(await response.json());
|
|
1611
1972
|
}
|
|
1612
|
-
throw new
|
|
1973
|
+
throw new import_sdkgen_client31.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
1613
1974
|
}
|
|
1614
1975
|
};
|
|
1615
1976
|
|
|
1616
1977
|
// src/BackendEventTag.ts
|
|
1617
|
-
var
|
|
1618
|
-
var
|
|
1619
|
-
var BackendEventTag = class extends
|
|
1978
|
+
var import_sdkgen_client32 = require("sdkgen-client");
|
|
1979
|
+
var import_sdkgen_client33 = require("sdkgen-client");
|
|
1980
|
+
var BackendEventTag = class extends import_sdkgen_client32.TagAbstract {
|
|
1620
1981
|
/**
|
|
1982
|
+
* Creates a new event
|
|
1983
|
+
*
|
|
1621
1984
|
* @returns {Promise<CommonMessage>}
|
|
1622
1985
|
* @throws {CommonMessageException}
|
|
1623
1986
|
* @throws {ClientException}
|
|
@@ -1641,9 +2004,11 @@ var BackendEventTag = class extends import_sdkgen_client26.TagAbstract {
|
|
|
1641
2004
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
1642
2005
|
throw new CommonMessageException(await response.json());
|
|
1643
2006
|
}
|
|
1644
|
-
throw new
|
|
2007
|
+
throw new import_sdkgen_client33.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
1645
2008
|
}
|
|
1646
2009
|
/**
|
|
2010
|
+
* Deletes an existing event
|
|
2011
|
+
*
|
|
1647
2012
|
* @returns {Promise<CommonMessage>}
|
|
1648
2013
|
* @throws {CommonMessageException}
|
|
1649
2014
|
* @throws {ClientException}
|
|
@@ -1666,9 +2031,11 @@ var BackendEventTag = class extends import_sdkgen_client26.TagAbstract {
|
|
|
1666
2031
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
1667
2032
|
throw new CommonMessageException(await response.json());
|
|
1668
2033
|
}
|
|
1669
|
-
throw new
|
|
2034
|
+
throw new import_sdkgen_client33.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
1670
2035
|
}
|
|
1671
2036
|
/**
|
|
2037
|
+
* Returns a specific event
|
|
2038
|
+
*
|
|
1672
2039
|
* @returns {Promise<BackendEvent>}
|
|
1673
2040
|
* @throws {CommonMessageException}
|
|
1674
2041
|
* @throws {ClientException}
|
|
@@ -1691,9 +2058,11 @@ var BackendEventTag = class extends import_sdkgen_client26.TagAbstract {
|
|
|
1691
2058
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
1692
2059
|
throw new CommonMessageException(await response.json());
|
|
1693
2060
|
}
|
|
1694
|
-
throw new
|
|
2061
|
+
throw new import_sdkgen_client33.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
1695
2062
|
}
|
|
1696
2063
|
/**
|
|
2064
|
+
* Returns a paginated list of events
|
|
2065
|
+
*
|
|
1697
2066
|
* @returns {Promise<BackendEventCollection>}
|
|
1698
2067
|
* @throws {CommonMessageException}
|
|
1699
2068
|
* @throws {ClientException}
|
|
@@ -1718,9 +2087,11 @@ var BackendEventTag = class extends import_sdkgen_client26.TagAbstract {
|
|
|
1718
2087
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
1719
2088
|
throw new CommonMessageException(await response.json());
|
|
1720
2089
|
}
|
|
1721
|
-
throw new
|
|
2090
|
+
throw new import_sdkgen_client33.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
1722
2091
|
}
|
|
1723
2092
|
/**
|
|
2093
|
+
* Updates an existing event
|
|
2094
|
+
*
|
|
1724
2095
|
* @returns {Promise<CommonMessage>}
|
|
1725
2096
|
* @throws {CommonMessageException}
|
|
1726
2097
|
* @throws {ClientException}
|
|
@@ -1746,15 +2117,17 @@ var BackendEventTag = class extends import_sdkgen_client26.TagAbstract {
|
|
|
1746
2117
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
1747
2118
|
throw new CommonMessageException(await response.json());
|
|
1748
2119
|
}
|
|
1749
|
-
throw new
|
|
2120
|
+
throw new import_sdkgen_client33.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
1750
2121
|
}
|
|
1751
2122
|
};
|
|
1752
2123
|
|
|
1753
2124
|
// src/BackendFirewallTag.ts
|
|
1754
|
-
var
|
|
1755
|
-
var
|
|
1756
|
-
var BackendFirewallTag = class extends
|
|
2125
|
+
var import_sdkgen_client34 = require("sdkgen-client");
|
|
2126
|
+
var import_sdkgen_client35 = require("sdkgen-client");
|
|
2127
|
+
var BackendFirewallTag = class extends import_sdkgen_client34.TagAbstract {
|
|
1757
2128
|
/**
|
|
2129
|
+
* Creates a new firewall rule
|
|
2130
|
+
*
|
|
1758
2131
|
* @returns {Promise<CommonMessage>}
|
|
1759
2132
|
* @throws {CommonMessageException}
|
|
1760
2133
|
* @throws {ClientException}
|
|
@@ -1778,9 +2151,11 @@ var BackendFirewallTag = class extends import_sdkgen_client28.TagAbstract {
|
|
|
1778
2151
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
1779
2152
|
throw new CommonMessageException(await response.json());
|
|
1780
2153
|
}
|
|
1781
|
-
throw new
|
|
2154
|
+
throw new import_sdkgen_client35.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
1782
2155
|
}
|
|
1783
2156
|
/**
|
|
2157
|
+
* Deletes an existing firewall rule
|
|
2158
|
+
*
|
|
1784
2159
|
* @returns {Promise<CommonMessage>}
|
|
1785
2160
|
* @throws {CommonMessageException}
|
|
1786
2161
|
* @throws {ClientException}
|
|
@@ -1803,9 +2178,11 @@ var BackendFirewallTag = class extends import_sdkgen_client28.TagAbstract {
|
|
|
1803
2178
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
1804
2179
|
throw new CommonMessageException(await response.json());
|
|
1805
2180
|
}
|
|
1806
|
-
throw new
|
|
2181
|
+
throw new import_sdkgen_client35.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
1807
2182
|
}
|
|
1808
2183
|
/**
|
|
2184
|
+
* Returns a specific firewall rule
|
|
2185
|
+
*
|
|
1809
2186
|
* @returns {Promise<BackendFirewall>}
|
|
1810
2187
|
* @throws {CommonMessageException}
|
|
1811
2188
|
* @throws {ClientException}
|
|
@@ -1828,9 +2205,11 @@ var BackendFirewallTag = class extends import_sdkgen_client28.TagAbstract {
|
|
|
1828
2205
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
1829
2206
|
throw new CommonMessageException(await response.json());
|
|
1830
2207
|
}
|
|
1831
|
-
throw new
|
|
2208
|
+
throw new import_sdkgen_client35.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
1832
2209
|
}
|
|
1833
2210
|
/**
|
|
2211
|
+
* Returns a paginated list of firewall rules
|
|
2212
|
+
*
|
|
1834
2213
|
* @returns {Promise<BackendFirewallCollection>}
|
|
1835
2214
|
* @throws {CommonMessageException}
|
|
1836
2215
|
* @throws {ClientException}
|
|
@@ -1855,9 +2234,11 @@ var BackendFirewallTag = class extends import_sdkgen_client28.TagAbstract {
|
|
|
1855
2234
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
1856
2235
|
throw new CommonMessageException(await response.json());
|
|
1857
2236
|
}
|
|
1858
|
-
throw new
|
|
2237
|
+
throw new import_sdkgen_client35.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
1859
2238
|
}
|
|
1860
2239
|
/**
|
|
2240
|
+
* Updates an existing firewall rule
|
|
2241
|
+
*
|
|
1861
2242
|
* @returns {Promise<CommonMessage>}
|
|
1862
2243
|
* @throws {CommonMessageException}
|
|
1863
2244
|
* @throws {ClientException}
|
|
@@ -1883,15 +2264,17 @@ var BackendFirewallTag = class extends import_sdkgen_client28.TagAbstract {
|
|
|
1883
2264
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
1884
2265
|
throw new CommonMessageException(await response.json());
|
|
1885
2266
|
}
|
|
1886
|
-
throw new
|
|
2267
|
+
throw new import_sdkgen_client35.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
1887
2268
|
}
|
|
1888
2269
|
};
|
|
1889
2270
|
|
|
1890
2271
|
// src/BackendFormTag.ts
|
|
1891
|
-
var
|
|
1892
|
-
var
|
|
1893
|
-
var BackendFormTag = class extends
|
|
2272
|
+
var import_sdkgen_client36 = require("sdkgen-client");
|
|
2273
|
+
var import_sdkgen_client37 = require("sdkgen-client");
|
|
2274
|
+
var BackendFormTag = class extends import_sdkgen_client36.TagAbstract {
|
|
1894
2275
|
/**
|
|
2276
|
+
* Creates a new form
|
|
2277
|
+
*
|
|
1895
2278
|
* @returns {Promise<CommonMessage>}
|
|
1896
2279
|
* @throws {CommonMessageException}
|
|
1897
2280
|
* @throws {ClientException}
|
|
@@ -1915,9 +2298,11 @@ var BackendFormTag = class extends import_sdkgen_client30.TagAbstract {
|
|
|
1915
2298
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
1916
2299
|
throw new CommonMessageException(await response.json());
|
|
1917
2300
|
}
|
|
1918
|
-
throw new
|
|
2301
|
+
throw new import_sdkgen_client37.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
1919
2302
|
}
|
|
1920
2303
|
/**
|
|
2304
|
+
* Deletes an existing form
|
|
2305
|
+
*
|
|
1921
2306
|
* @returns {Promise<CommonMessage>}
|
|
1922
2307
|
* @throws {CommonMessageException}
|
|
1923
2308
|
* @throws {ClientException}
|
|
@@ -1940,9 +2325,11 @@ var BackendFormTag = class extends import_sdkgen_client30.TagAbstract {
|
|
|
1940
2325
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
1941
2326
|
throw new CommonMessageException(await response.json());
|
|
1942
2327
|
}
|
|
1943
|
-
throw new
|
|
2328
|
+
throw new import_sdkgen_client37.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
1944
2329
|
}
|
|
1945
2330
|
/**
|
|
2331
|
+
* Returns a specific form
|
|
2332
|
+
*
|
|
1946
2333
|
* @returns {Promise<BackendForm>}
|
|
1947
2334
|
* @throws {CommonMessageException}
|
|
1948
2335
|
* @throws {ClientException}
|
|
@@ -1965,9 +2352,11 @@ var BackendFormTag = class extends import_sdkgen_client30.TagAbstract {
|
|
|
1965
2352
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
1966
2353
|
throw new CommonMessageException(await response.json());
|
|
1967
2354
|
}
|
|
1968
|
-
throw new
|
|
2355
|
+
throw new import_sdkgen_client37.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
1969
2356
|
}
|
|
1970
2357
|
/**
|
|
2358
|
+
* Returns a paginated list of forms
|
|
2359
|
+
*
|
|
1971
2360
|
* @returns {Promise<BackendFormCollection>}
|
|
1972
2361
|
* @throws {CommonMessageException}
|
|
1973
2362
|
* @throws {ClientException}
|
|
@@ -1992,9 +2381,11 @@ var BackendFormTag = class extends import_sdkgen_client30.TagAbstract {
|
|
|
1992
2381
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
1993
2382
|
throw new CommonMessageException(await response.json());
|
|
1994
2383
|
}
|
|
1995
|
-
throw new
|
|
2384
|
+
throw new import_sdkgen_client37.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
1996
2385
|
}
|
|
1997
2386
|
/**
|
|
2387
|
+
* Updates an existing form
|
|
2388
|
+
*
|
|
1998
2389
|
* @returns {Promise<CommonMessage>}
|
|
1999
2390
|
* @throws {CommonMessageException}
|
|
2000
2391
|
* @throws {ClientException}
|
|
@@ -2020,15 +2411,17 @@ var BackendFormTag = class extends import_sdkgen_client30.TagAbstract {
|
|
|
2020
2411
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
2021
2412
|
throw new CommonMessageException(await response.json());
|
|
2022
2413
|
}
|
|
2023
|
-
throw new
|
|
2414
|
+
throw new import_sdkgen_client37.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
2024
2415
|
}
|
|
2025
2416
|
};
|
|
2026
2417
|
|
|
2027
2418
|
// src/BackendGeneratorTag.ts
|
|
2028
|
-
var
|
|
2029
|
-
var
|
|
2030
|
-
var BackendGeneratorTag = class extends
|
|
2419
|
+
var import_sdkgen_client38 = require("sdkgen-client");
|
|
2420
|
+
var import_sdkgen_client39 = require("sdkgen-client");
|
|
2421
|
+
var BackendGeneratorTag = class extends import_sdkgen_client38.TagAbstract {
|
|
2031
2422
|
/**
|
|
2423
|
+
* Executes a generator with the provided config
|
|
2424
|
+
*
|
|
2032
2425
|
* @returns {Promise<CommonMessage>}
|
|
2033
2426
|
* @throws {CommonMessageException}
|
|
2034
2427
|
* @throws {ClientException}
|
|
@@ -2054,9 +2447,11 @@ var BackendGeneratorTag = class extends import_sdkgen_client32.TagAbstract {
|
|
|
2054
2447
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
2055
2448
|
throw new CommonMessageException(await response.json());
|
|
2056
2449
|
}
|
|
2057
|
-
throw new
|
|
2450
|
+
throw new import_sdkgen_client39.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
2058
2451
|
}
|
|
2059
2452
|
/**
|
|
2453
|
+
* Generates a changelog of all potential changes if you execute this generator with the provided config
|
|
2454
|
+
*
|
|
2060
2455
|
* @returns {Promise<BackendGeneratorProviderChangelog>}
|
|
2061
2456
|
* @throws {CommonMessageException}
|
|
2062
2457
|
* @throws {ClientException}
|
|
@@ -2082,9 +2477,11 @@ var BackendGeneratorTag = class extends import_sdkgen_client32.TagAbstract {
|
|
|
2082
2477
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
2083
2478
|
throw new CommonMessageException(await response.json());
|
|
2084
2479
|
}
|
|
2085
|
-
throw new
|
|
2480
|
+
throw new import_sdkgen_client39.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
2086
2481
|
}
|
|
2087
2482
|
/**
|
|
2483
|
+
* Returns all available generator classes
|
|
2484
|
+
*
|
|
2088
2485
|
* @returns {Promise<BackendGeneratorIndexProviders>}
|
|
2089
2486
|
* @throws {CommonMessageException}
|
|
2090
2487
|
* @throws {ClientException}
|
|
@@ -2105,9 +2502,11 @@ var BackendGeneratorTag = class extends import_sdkgen_client32.TagAbstract {
|
|
|
2105
2502
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
2106
2503
|
throw new CommonMessageException(await response.json());
|
|
2107
2504
|
}
|
|
2108
|
-
throw new
|
|
2505
|
+
throw new import_sdkgen_client39.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
2109
2506
|
}
|
|
2110
2507
|
/**
|
|
2508
|
+
* Returns the generator config form
|
|
2509
|
+
*
|
|
2111
2510
|
* @returns {Promise<CommonFormContainer>}
|
|
2112
2511
|
* @throws {CommonMessageException}
|
|
2113
2512
|
* @throws {ClientException}
|
|
@@ -2130,15 +2529,17 @@ var BackendGeneratorTag = class extends import_sdkgen_client32.TagAbstract {
|
|
|
2130
2529
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
2131
2530
|
throw new CommonMessageException(await response.json());
|
|
2132
2531
|
}
|
|
2133
|
-
throw new
|
|
2532
|
+
throw new import_sdkgen_client39.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
2134
2533
|
}
|
|
2135
2534
|
};
|
|
2136
2535
|
|
|
2137
2536
|
// src/BackendIdentityTag.ts
|
|
2138
|
-
var
|
|
2139
|
-
var
|
|
2140
|
-
var BackendIdentityTag = class extends
|
|
2537
|
+
var import_sdkgen_client40 = require("sdkgen-client");
|
|
2538
|
+
var import_sdkgen_client41 = require("sdkgen-client");
|
|
2539
|
+
var BackendIdentityTag = class extends import_sdkgen_client40.TagAbstract {
|
|
2141
2540
|
/**
|
|
2541
|
+
* Creates a new identity
|
|
2542
|
+
*
|
|
2142
2543
|
* @returns {Promise<CommonMessage>}
|
|
2143
2544
|
* @throws {CommonMessageException}
|
|
2144
2545
|
* @throws {ClientException}
|
|
@@ -2162,9 +2563,11 @@ var BackendIdentityTag = class extends import_sdkgen_client34.TagAbstract {
|
|
|
2162
2563
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
2163
2564
|
throw new CommonMessageException(await response.json());
|
|
2164
2565
|
}
|
|
2165
|
-
throw new
|
|
2566
|
+
throw new import_sdkgen_client41.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
2166
2567
|
}
|
|
2167
2568
|
/**
|
|
2569
|
+
* Deletes an existing identity
|
|
2570
|
+
*
|
|
2168
2571
|
* @returns {Promise<CommonMessage>}
|
|
2169
2572
|
* @throws {CommonMessageException}
|
|
2170
2573
|
* @throws {ClientException}
|
|
@@ -2187,9 +2590,11 @@ var BackendIdentityTag = class extends import_sdkgen_client34.TagAbstract {
|
|
|
2187
2590
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
2188
2591
|
throw new CommonMessageException(await response.json());
|
|
2189
2592
|
}
|
|
2190
|
-
throw new
|
|
2593
|
+
throw new import_sdkgen_client41.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
2191
2594
|
}
|
|
2192
2595
|
/**
|
|
2596
|
+
* Returns a specific identity
|
|
2597
|
+
*
|
|
2193
2598
|
* @returns {Promise<BackendIdentity>}
|
|
2194
2599
|
* @throws {CommonMessageException}
|
|
2195
2600
|
* @throws {ClientException}
|
|
@@ -2212,9 +2617,11 @@ var BackendIdentityTag = class extends import_sdkgen_client34.TagAbstract {
|
|
|
2212
2617
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
2213
2618
|
throw new CommonMessageException(await response.json());
|
|
2214
2619
|
}
|
|
2215
|
-
throw new
|
|
2620
|
+
throw new import_sdkgen_client41.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
2216
2621
|
}
|
|
2217
2622
|
/**
|
|
2623
|
+
* Returns a paginated list of identities
|
|
2624
|
+
*
|
|
2218
2625
|
* @returns {Promise<BackendIdentityCollection>}
|
|
2219
2626
|
* @throws {CommonMessageException}
|
|
2220
2627
|
* @throws {ClientException}
|
|
@@ -2239,9 +2646,11 @@ var BackendIdentityTag = class extends import_sdkgen_client34.TagAbstract {
|
|
|
2239
2646
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
2240
2647
|
throw new CommonMessageException(await response.json());
|
|
2241
2648
|
}
|
|
2242
|
-
throw new
|
|
2649
|
+
throw new import_sdkgen_client41.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
2243
2650
|
}
|
|
2244
2651
|
/**
|
|
2652
|
+
* Returns all available identity classes
|
|
2653
|
+
*
|
|
2245
2654
|
* @returns {Promise<BackendIdentityIndex>}
|
|
2246
2655
|
* @throws {CommonMessageException}
|
|
2247
2656
|
* @throws {ClientException}
|
|
@@ -2262,9 +2671,11 @@ var BackendIdentityTag = class extends import_sdkgen_client34.TagAbstract {
|
|
|
2262
2671
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
2263
2672
|
throw new CommonMessageException(await response.json());
|
|
2264
2673
|
}
|
|
2265
|
-
throw new
|
|
2674
|
+
throw new import_sdkgen_client41.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
2266
2675
|
}
|
|
2267
2676
|
/**
|
|
2677
|
+
* Returns the identity config form
|
|
2678
|
+
*
|
|
2268
2679
|
* @returns {Promise<CommonFormContainer>}
|
|
2269
2680
|
* @throws {CommonMessageException}
|
|
2270
2681
|
* @throws {ClientException}
|
|
@@ -2287,9 +2698,11 @@ var BackendIdentityTag = class extends import_sdkgen_client34.TagAbstract {
|
|
|
2287
2698
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
2288
2699
|
throw new CommonMessageException(await response.json());
|
|
2289
2700
|
}
|
|
2290
|
-
throw new
|
|
2701
|
+
throw new import_sdkgen_client41.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
2291
2702
|
}
|
|
2292
2703
|
/**
|
|
2704
|
+
* Updates an existing identity
|
|
2705
|
+
*
|
|
2293
2706
|
* @returns {Promise<CommonMessage>}
|
|
2294
2707
|
* @throws {CommonMessageException}
|
|
2295
2708
|
* @throws {ClientException}
|
|
@@ -2315,15 +2728,17 @@ var BackendIdentityTag = class extends import_sdkgen_client34.TagAbstract {
|
|
|
2315
2728
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
2316
2729
|
throw new CommonMessageException(await response.json());
|
|
2317
2730
|
}
|
|
2318
|
-
throw new
|
|
2731
|
+
throw new import_sdkgen_client41.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
2319
2732
|
}
|
|
2320
2733
|
};
|
|
2321
2734
|
|
|
2322
2735
|
// src/BackendLogTag.ts
|
|
2323
|
-
var
|
|
2324
|
-
var
|
|
2325
|
-
var BackendLogTag = class extends
|
|
2736
|
+
var import_sdkgen_client42 = require("sdkgen-client");
|
|
2737
|
+
var import_sdkgen_client43 = require("sdkgen-client");
|
|
2738
|
+
var BackendLogTag = class extends import_sdkgen_client42.TagAbstract {
|
|
2326
2739
|
/**
|
|
2740
|
+
* Returns a specific log
|
|
2741
|
+
*
|
|
2327
2742
|
* @returns {Promise<BackendLog>}
|
|
2328
2743
|
* @throws {CommonMessageException}
|
|
2329
2744
|
* @throws {ClientException}
|
|
@@ -2346,9 +2761,11 @@ var BackendLogTag = class extends import_sdkgen_client36.TagAbstract {
|
|
|
2346
2761
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
2347
2762
|
throw new CommonMessageException(await response.json());
|
|
2348
2763
|
}
|
|
2349
|
-
throw new
|
|
2764
|
+
throw new import_sdkgen_client43.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
2350
2765
|
}
|
|
2351
2766
|
/**
|
|
2767
|
+
* Returns a paginated list of logs
|
|
2768
|
+
*
|
|
2352
2769
|
* @returns {Promise<BackendLogCollection>}
|
|
2353
2770
|
* @throws {CommonMessageException}
|
|
2354
2771
|
* @throws {ClientException}
|
|
@@ -2384,9 +2801,11 @@ var BackendLogTag = class extends import_sdkgen_client36.TagAbstract {
|
|
|
2384
2801
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
2385
2802
|
throw new CommonMessageException(await response.json());
|
|
2386
2803
|
}
|
|
2387
|
-
throw new
|
|
2804
|
+
throw new import_sdkgen_client43.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
2388
2805
|
}
|
|
2389
2806
|
/**
|
|
2807
|
+
* Returns a paginated list of log errors
|
|
2808
|
+
*
|
|
2390
2809
|
* @returns {Promise<BackendLogErrorCollection>}
|
|
2391
2810
|
* @throws {CommonMessageException}
|
|
2392
2811
|
* @throws {ClientException}
|
|
@@ -2411,9 +2830,11 @@ var BackendLogTag = class extends import_sdkgen_client36.TagAbstract {
|
|
|
2411
2830
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
2412
2831
|
throw new CommonMessageException(await response.json());
|
|
2413
2832
|
}
|
|
2414
|
-
throw new
|
|
2833
|
+
throw new import_sdkgen_client43.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
2415
2834
|
}
|
|
2416
2835
|
/**
|
|
2836
|
+
* Returns a specific error
|
|
2837
|
+
*
|
|
2417
2838
|
* @returns {Promise<BackendLogError>}
|
|
2418
2839
|
* @throws {CommonMessageException}
|
|
2419
2840
|
* @throws {ClientException}
|
|
@@ -2436,15 +2857,17 @@ var BackendLogTag = class extends import_sdkgen_client36.TagAbstract {
|
|
|
2436
2857
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
2437
2858
|
throw new CommonMessageException(await response.json());
|
|
2438
2859
|
}
|
|
2439
|
-
throw new
|
|
2860
|
+
throw new import_sdkgen_client43.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
2440
2861
|
}
|
|
2441
2862
|
};
|
|
2442
2863
|
|
|
2443
2864
|
// src/BackendMarketplaceActionTag.ts
|
|
2444
|
-
var
|
|
2445
|
-
var
|
|
2446
|
-
var BackendMarketplaceActionTag = class extends
|
|
2865
|
+
var import_sdkgen_client44 = require("sdkgen-client");
|
|
2866
|
+
var import_sdkgen_client45 = require("sdkgen-client");
|
|
2867
|
+
var BackendMarketplaceActionTag = class extends import_sdkgen_client44.TagAbstract {
|
|
2447
2868
|
/**
|
|
2869
|
+
* Returns a specific marketplace action
|
|
2870
|
+
*
|
|
2448
2871
|
* @returns {Promise<MarketplaceAction>}
|
|
2449
2872
|
* @throws {CommonMessageException}
|
|
2450
2873
|
* @throws {ClientException}
|
|
@@ -2468,9 +2891,11 @@ var BackendMarketplaceActionTag = class extends import_sdkgen_client38.TagAbstra
|
|
|
2468
2891
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
2469
2892
|
throw new CommonMessageException(await response.json());
|
|
2470
2893
|
}
|
|
2471
|
-
throw new
|
|
2894
|
+
throw new import_sdkgen_client45.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
2472
2895
|
}
|
|
2473
2896
|
/**
|
|
2897
|
+
* Returns a paginated list of marketplace actions
|
|
2898
|
+
*
|
|
2474
2899
|
* @returns {Promise<MarketplaceActionCollection>}
|
|
2475
2900
|
* @throws {CommonMessageException}
|
|
2476
2901
|
* @throws {ClientException}
|
|
@@ -2494,9 +2919,11 @@ var BackendMarketplaceActionTag = class extends import_sdkgen_client38.TagAbstra
|
|
|
2494
2919
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
2495
2920
|
throw new CommonMessageException(await response.json());
|
|
2496
2921
|
}
|
|
2497
|
-
throw new
|
|
2922
|
+
throw new import_sdkgen_client45.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
2498
2923
|
}
|
|
2499
2924
|
/**
|
|
2925
|
+
* Installs an action from the marketplace
|
|
2926
|
+
*
|
|
2500
2927
|
* @returns {Promise<MarketplaceMessage>}
|
|
2501
2928
|
* @throws {CommonMessageException}
|
|
2502
2929
|
* @throws {ClientException}
|
|
@@ -2520,9 +2947,11 @@ var BackendMarketplaceActionTag = class extends import_sdkgen_client38.TagAbstra
|
|
|
2520
2947
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
2521
2948
|
throw new CommonMessageException(await response.json());
|
|
2522
2949
|
}
|
|
2523
|
-
throw new
|
|
2950
|
+
throw new import_sdkgen_client45.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
2524
2951
|
}
|
|
2525
2952
|
/**
|
|
2953
|
+
* Upgrades an action from the marketplace
|
|
2954
|
+
*
|
|
2526
2955
|
* @returns {Promise<CommonMessage>}
|
|
2527
2956
|
* @throws {CommonMessageException}
|
|
2528
2957
|
* @throws {ClientException}
|
|
@@ -2546,15 +2975,17 @@ var BackendMarketplaceActionTag = class extends import_sdkgen_client38.TagAbstra
|
|
|
2546
2975
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
2547
2976
|
throw new CommonMessageException(await response.json());
|
|
2548
2977
|
}
|
|
2549
|
-
throw new
|
|
2978
|
+
throw new import_sdkgen_client45.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
2550
2979
|
}
|
|
2551
2980
|
};
|
|
2552
2981
|
|
|
2553
2982
|
// src/BackendMarketplaceAppTag.ts
|
|
2554
|
-
var
|
|
2555
|
-
var
|
|
2556
|
-
var BackendMarketplaceAppTag = class extends
|
|
2983
|
+
var import_sdkgen_client46 = require("sdkgen-client");
|
|
2984
|
+
var import_sdkgen_client47 = require("sdkgen-client");
|
|
2985
|
+
var BackendMarketplaceAppTag = class extends import_sdkgen_client46.TagAbstract {
|
|
2557
2986
|
/**
|
|
2987
|
+
* Returns a specific marketplace app
|
|
2988
|
+
*
|
|
2558
2989
|
* @returns {Promise<MarketplaceApp>}
|
|
2559
2990
|
* @throws {CommonMessageException}
|
|
2560
2991
|
* @throws {ClientException}
|
|
@@ -2578,9 +3009,11 @@ var BackendMarketplaceAppTag = class extends import_sdkgen_client40.TagAbstract
|
|
|
2578
3009
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
2579
3010
|
throw new CommonMessageException(await response.json());
|
|
2580
3011
|
}
|
|
2581
|
-
throw new
|
|
3012
|
+
throw new import_sdkgen_client47.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
2582
3013
|
}
|
|
2583
3014
|
/**
|
|
3015
|
+
* Returns a paginated list of marketplace apps
|
|
3016
|
+
*
|
|
2584
3017
|
* @returns {Promise<MarketplaceAppCollection>}
|
|
2585
3018
|
* @throws {CommonMessageException}
|
|
2586
3019
|
* @throws {ClientException}
|
|
@@ -2604,9 +3037,11 @@ var BackendMarketplaceAppTag = class extends import_sdkgen_client40.TagAbstract
|
|
|
2604
3037
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
2605
3038
|
throw new CommonMessageException(await response.json());
|
|
2606
3039
|
}
|
|
2607
|
-
throw new
|
|
3040
|
+
throw new import_sdkgen_client47.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
2608
3041
|
}
|
|
2609
3042
|
/**
|
|
3043
|
+
* Installs an app from the marketplace
|
|
3044
|
+
*
|
|
2610
3045
|
* @returns {Promise<MarketplaceMessage>}
|
|
2611
3046
|
* @throws {CommonMessageException}
|
|
2612
3047
|
* @throws {ClientException}
|
|
@@ -2630,9 +3065,11 @@ var BackendMarketplaceAppTag = class extends import_sdkgen_client40.TagAbstract
|
|
|
2630
3065
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
2631
3066
|
throw new CommonMessageException(await response.json());
|
|
2632
3067
|
}
|
|
2633
|
-
throw new
|
|
3068
|
+
throw new import_sdkgen_client47.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
2634
3069
|
}
|
|
2635
3070
|
/**
|
|
3071
|
+
* Upgrades an app from the marketplace
|
|
3072
|
+
*
|
|
2636
3073
|
* @returns {Promise<MarketplaceMessage>}
|
|
2637
3074
|
* @throws {CommonMessageException}
|
|
2638
3075
|
* @throws {ClientException}
|
|
@@ -2656,13 +3093,13 @@ var BackendMarketplaceAppTag = class extends import_sdkgen_client40.TagAbstract
|
|
|
2656
3093
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
2657
3094
|
throw new CommonMessageException(await response.json());
|
|
2658
3095
|
}
|
|
2659
|
-
throw new
|
|
3096
|
+
throw new import_sdkgen_client47.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
2660
3097
|
}
|
|
2661
3098
|
};
|
|
2662
3099
|
|
|
2663
3100
|
// src/BackendMarketplaceTag.ts
|
|
2664
|
-
var
|
|
2665
|
-
var BackendMarketplaceTag = class extends
|
|
3101
|
+
var import_sdkgen_client48 = require("sdkgen-client");
|
|
3102
|
+
var BackendMarketplaceTag = class extends import_sdkgen_client48.TagAbstract {
|
|
2666
3103
|
action() {
|
|
2667
3104
|
return new BackendMarketplaceActionTag(
|
|
2668
3105
|
this.httpClient,
|
|
@@ -2678,10 +3115,12 @@ var BackendMarketplaceTag = class extends import_sdkgen_client42.TagAbstract {
|
|
|
2678
3115
|
};
|
|
2679
3116
|
|
|
2680
3117
|
// src/BackendOperationTag.ts
|
|
2681
|
-
var
|
|
2682
|
-
var
|
|
2683
|
-
var BackendOperationTag = class extends
|
|
3118
|
+
var import_sdkgen_client49 = require("sdkgen-client");
|
|
3119
|
+
var import_sdkgen_client50 = require("sdkgen-client");
|
|
3120
|
+
var BackendOperationTag = class extends import_sdkgen_client49.TagAbstract {
|
|
2684
3121
|
/**
|
|
3122
|
+
* Creates a new operation
|
|
3123
|
+
*
|
|
2685
3124
|
* @returns {Promise<CommonMessage>}
|
|
2686
3125
|
* @throws {CommonMessageException}
|
|
2687
3126
|
* @throws {ClientException}
|
|
@@ -2705,9 +3144,11 @@ var BackendOperationTag = class extends import_sdkgen_client43.TagAbstract {
|
|
|
2705
3144
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
2706
3145
|
throw new CommonMessageException(await response.json());
|
|
2707
3146
|
}
|
|
2708
|
-
throw new
|
|
3147
|
+
throw new import_sdkgen_client50.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
2709
3148
|
}
|
|
2710
3149
|
/**
|
|
3150
|
+
* Deletes an existing operation
|
|
3151
|
+
*
|
|
2711
3152
|
* @returns {Promise<CommonMessage>}
|
|
2712
3153
|
* @throws {CommonMessageException}
|
|
2713
3154
|
* @throws {ClientException}
|
|
@@ -2730,9 +3171,11 @@ var BackendOperationTag = class extends import_sdkgen_client43.TagAbstract {
|
|
|
2730
3171
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
2731
3172
|
throw new CommonMessageException(await response.json());
|
|
2732
3173
|
}
|
|
2733
|
-
throw new
|
|
3174
|
+
throw new import_sdkgen_client50.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
2734
3175
|
}
|
|
2735
3176
|
/**
|
|
3177
|
+
* Returns a specific operation
|
|
3178
|
+
*
|
|
2736
3179
|
* @returns {Promise<BackendOperation>}
|
|
2737
3180
|
* @throws {CommonMessageException}
|
|
2738
3181
|
* @throws {ClientException}
|
|
@@ -2755,9 +3198,11 @@ var BackendOperationTag = class extends import_sdkgen_client43.TagAbstract {
|
|
|
2755
3198
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
2756
3199
|
throw new CommonMessageException(await response.json());
|
|
2757
3200
|
}
|
|
2758
|
-
throw new
|
|
3201
|
+
throw new import_sdkgen_client50.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
2759
3202
|
}
|
|
2760
3203
|
/**
|
|
3204
|
+
* Returns a paginated list of operations
|
|
3205
|
+
*
|
|
2761
3206
|
* @returns {Promise<BackendOperationCollection>}
|
|
2762
3207
|
* @throws {CommonMessageException}
|
|
2763
3208
|
* @throws {ClientException}
|
|
@@ -2782,9 +3227,11 @@ var BackendOperationTag = class extends import_sdkgen_client43.TagAbstract {
|
|
|
2782
3227
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
2783
3228
|
throw new CommonMessageException(await response.json());
|
|
2784
3229
|
}
|
|
2785
|
-
throw new
|
|
3230
|
+
throw new import_sdkgen_client50.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
2786
3231
|
}
|
|
2787
3232
|
/**
|
|
3233
|
+
* Updates an existing operation
|
|
3234
|
+
*
|
|
2788
3235
|
* @returns {Promise<CommonMessage>}
|
|
2789
3236
|
* @throws {CommonMessageException}
|
|
2790
3237
|
* @throws {ClientException}
|
|
@@ -2810,15 +3257,17 @@ var BackendOperationTag = class extends import_sdkgen_client43.TagAbstract {
|
|
|
2810
3257
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
2811
3258
|
throw new CommonMessageException(await response.json());
|
|
2812
3259
|
}
|
|
2813
|
-
throw new
|
|
3260
|
+
throw new import_sdkgen_client50.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
2814
3261
|
}
|
|
2815
3262
|
};
|
|
2816
3263
|
|
|
2817
3264
|
// src/BackendPageTag.ts
|
|
2818
|
-
var
|
|
2819
|
-
var
|
|
2820
|
-
var BackendPageTag = class extends
|
|
3265
|
+
var import_sdkgen_client51 = require("sdkgen-client");
|
|
3266
|
+
var import_sdkgen_client52 = require("sdkgen-client");
|
|
3267
|
+
var BackendPageTag = class extends import_sdkgen_client51.TagAbstract {
|
|
2821
3268
|
/**
|
|
3269
|
+
* Creates a new page
|
|
3270
|
+
*
|
|
2822
3271
|
* @returns {Promise<CommonMessage>}
|
|
2823
3272
|
* @throws {CommonMessageException}
|
|
2824
3273
|
* @throws {ClientException}
|
|
@@ -2842,9 +3291,11 @@ var BackendPageTag = class extends import_sdkgen_client45.TagAbstract {
|
|
|
2842
3291
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
2843
3292
|
throw new CommonMessageException(await response.json());
|
|
2844
3293
|
}
|
|
2845
|
-
throw new
|
|
3294
|
+
throw new import_sdkgen_client52.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
2846
3295
|
}
|
|
2847
3296
|
/**
|
|
3297
|
+
* Deletes an existing page
|
|
3298
|
+
*
|
|
2848
3299
|
* @returns {Promise<CommonMessage>}
|
|
2849
3300
|
* @throws {CommonMessageException}
|
|
2850
3301
|
* @throws {ClientException}
|
|
@@ -2867,9 +3318,11 @@ var BackendPageTag = class extends import_sdkgen_client45.TagAbstract {
|
|
|
2867
3318
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
2868
3319
|
throw new CommonMessageException(await response.json());
|
|
2869
3320
|
}
|
|
2870
|
-
throw new
|
|
3321
|
+
throw new import_sdkgen_client52.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
2871
3322
|
}
|
|
2872
3323
|
/**
|
|
3324
|
+
* Returns a specific page
|
|
3325
|
+
*
|
|
2873
3326
|
* @returns {Promise<BackendPage>}
|
|
2874
3327
|
* @throws {CommonMessageException}
|
|
2875
3328
|
* @throws {ClientException}
|
|
@@ -2892,9 +3345,11 @@ var BackendPageTag = class extends import_sdkgen_client45.TagAbstract {
|
|
|
2892
3345
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
2893
3346
|
throw new CommonMessageException(await response.json());
|
|
2894
3347
|
}
|
|
2895
|
-
throw new
|
|
3348
|
+
throw new import_sdkgen_client52.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
2896
3349
|
}
|
|
2897
3350
|
/**
|
|
3351
|
+
* Returns a paginated list of pages
|
|
3352
|
+
*
|
|
2898
3353
|
* @returns {Promise<BackendPageCollection>}
|
|
2899
3354
|
* @throws {CommonMessageException}
|
|
2900
3355
|
* @throws {ClientException}
|
|
@@ -2919,9 +3374,11 @@ var BackendPageTag = class extends import_sdkgen_client45.TagAbstract {
|
|
|
2919
3374
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
2920
3375
|
throw new CommonMessageException(await response.json());
|
|
2921
3376
|
}
|
|
2922
|
-
throw new
|
|
3377
|
+
throw new import_sdkgen_client52.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
2923
3378
|
}
|
|
2924
3379
|
/**
|
|
3380
|
+
* Updates an existing page
|
|
3381
|
+
*
|
|
2925
3382
|
* @returns {Promise<CommonMessage>}
|
|
2926
3383
|
* @throws {CommonMessageException}
|
|
2927
3384
|
* @throws {ClientException}
|
|
@@ -2947,15 +3404,17 @@ var BackendPageTag = class extends import_sdkgen_client45.TagAbstract {
|
|
|
2947
3404
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
2948
3405
|
throw new CommonMessageException(await response.json());
|
|
2949
3406
|
}
|
|
2950
|
-
throw new
|
|
3407
|
+
throw new import_sdkgen_client52.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
2951
3408
|
}
|
|
2952
3409
|
};
|
|
2953
3410
|
|
|
2954
3411
|
// src/BackendPlanTag.ts
|
|
2955
|
-
var
|
|
2956
|
-
var
|
|
2957
|
-
var BackendPlanTag = class extends
|
|
3412
|
+
var import_sdkgen_client53 = require("sdkgen-client");
|
|
3413
|
+
var import_sdkgen_client54 = require("sdkgen-client");
|
|
3414
|
+
var BackendPlanTag = class extends import_sdkgen_client53.TagAbstract {
|
|
2958
3415
|
/**
|
|
3416
|
+
* Creates a new plan
|
|
3417
|
+
*
|
|
2959
3418
|
* @returns {Promise<CommonMessage>}
|
|
2960
3419
|
* @throws {CommonMessageException}
|
|
2961
3420
|
* @throws {ClientException}
|
|
@@ -2979,9 +3438,11 @@ var BackendPlanTag = class extends import_sdkgen_client47.TagAbstract {
|
|
|
2979
3438
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
2980
3439
|
throw new CommonMessageException(await response.json());
|
|
2981
3440
|
}
|
|
2982
|
-
throw new
|
|
3441
|
+
throw new import_sdkgen_client54.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
2983
3442
|
}
|
|
2984
3443
|
/**
|
|
3444
|
+
* Deletes an existing plan
|
|
3445
|
+
*
|
|
2985
3446
|
* @returns {Promise<CommonMessage>}
|
|
2986
3447
|
* @throws {CommonMessageException}
|
|
2987
3448
|
* @throws {ClientException}
|
|
@@ -3004,9 +3465,11 @@ var BackendPlanTag = class extends import_sdkgen_client47.TagAbstract {
|
|
|
3004
3465
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
3005
3466
|
throw new CommonMessageException(await response.json());
|
|
3006
3467
|
}
|
|
3007
|
-
throw new
|
|
3468
|
+
throw new import_sdkgen_client54.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
3008
3469
|
}
|
|
3009
3470
|
/**
|
|
3471
|
+
* Returns a specific plan
|
|
3472
|
+
*
|
|
3010
3473
|
* @returns {Promise<BackendPlan>}
|
|
3011
3474
|
* @throws {CommonMessageException}
|
|
3012
3475
|
* @throws {ClientException}
|
|
@@ -3029,9 +3492,11 @@ var BackendPlanTag = class extends import_sdkgen_client47.TagAbstract {
|
|
|
3029
3492
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
3030
3493
|
throw new CommonMessageException(await response.json());
|
|
3031
3494
|
}
|
|
3032
|
-
throw new
|
|
3495
|
+
throw new import_sdkgen_client54.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
3033
3496
|
}
|
|
3034
3497
|
/**
|
|
3498
|
+
* Returns a paginated list of plans
|
|
3499
|
+
*
|
|
3035
3500
|
* @returns {Promise<BackendPlanCollection>}
|
|
3036
3501
|
* @throws {CommonMessageException}
|
|
3037
3502
|
* @throws {ClientException}
|
|
@@ -3056,9 +3521,11 @@ var BackendPlanTag = class extends import_sdkgen_client47.TagAbstract {
|
|
|
3056
3521
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
3057
3522
|
throw new CommonMessageException(await response.json());
|
|
3058
3523
|
}
|
|
3059
|
-
throw new
|
|
3524
|
+
throw new import_sdkgen_client54.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
3060
3525
|
}
|
|
3061
3526
|
/**
|
|
3527
|
+
* Updates an existing plan
|
|
3528
|
+
*
|
|
3062
3529
|
* @returns {Promise<CommonMessage>}
|
|
3063
3530
|
* @throws {CommonMessageException}
|
|
3064
3531
|
* @throws {ClientException}
|
|
@@ -3084,15 +3551,17 @@ var BackendPlanTag = class extends import_sdkgen_client47.TagAbstract {
|
|
|
3084
3551
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
3085
3552
|
throw new CommonMessageException(await response.json());
|
|
3086
3553
|
}
|
|
3087
|
-
throw new
|
|
3554
|
+
throw new import_sdkgen_client54.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
3088
3555
|
}
|
|
3089
3556
|
};
|
|
3090
3557
|
|
|
3091
3558
|
// src/BackendRateTag.ts
|
|
3092
|
-
var
|
|
3093
|
-
var
|
|
3094
|
-
var BackendRateTag = class extends
|
|
3559
|
+
var import_sdkgen_client55 = require("sdkgen-client");
|
|
3560
|
+
var import_sdkgen_client56 = require("sdkgen-client");
|
|
3561
|
+
var BackendRateTag = class extends import_sdkgen_client55.TagAbstract {
|
|
3095
3562
|
/**
|
|
3563
|
+
* Creates a new rate limitation
|
|
3564
|
+
*
|
|
3096
3565
|
* @returns {Promise<CommonMessage>}
|
|
3097
3566
|
* @throws {CommonMessageException}
|
|
3098
3567
|
* @throws {ClientException}
|
|
@@ -3116,9 +3585,11 @@ var BackendRateTag = class extends import_sdkgen_client49.TagAbstract {
|
|
|
3116
3585
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
3117
3586
|
throw new CommonMessageException(await response.json());
|
|
3118
3587
|
}
|
|
3119
|
-
throw new
|
|
3588
|
+
throw new import_sdkgen_client56.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
3120
3589
|
}
|
|
3121
3590
|
/**
|
|
3591
|
+
* Deletes an existing rate
|
|
3592
|
+
*
|
|
3122
3593
|
* @returns {Promise<CommonMessage>}
|
|
3123
3594
|
* @throws {CommonMessageException}
|
|
3124
3595
|
* @throws {ClientException}
|
|
@@ -3141,9 +3612,11 @@ var BackendRateTag = class extends import_sdkgen_client49.TagAbstract {
|
|
|
3141
3612
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
3142
3613
|
throw new CommonMessageException(await response.json());
|
|
3143
3614
|
}
|
|
3144
|
-
throw new
|
|
3615
|
+
throw new import_sdkgen_client56.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
3145
3616
|
}
|
|
3146
3617
|
/**
|
|
3618
|
+
* Returns a specific rate
|
|
3619
|
+
*
|
|
3147
3620
|
* @returns {Promise<BackendRate>}
|
|
3148
3621
|
* @throws {CommonMessageException}
|
|
3149
3622
|
* @throws {ClientException}
|
|
@@ -3166,9 +3639,11 @@ var BackendRateTag = class extends import_sdkgen_client49.TagAbstract {
|
|
|
3166
3639
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
3167
3640
|
throw new CommonMessageException(await response.json());
|
|
3168
3641
|
}
|
|
3169
|
-
throw new
|
|
3642
|
+
throw new import_sdkgen_client56.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
3170
3643
|
}
|
|
3171
3644
|
/**
|
|
3645
|
+
* Returns a paginated list of rate limitations
|
|
3646
|
+
*
|
|
3172
3647
|
* @returns {Promise<BackendRateCollection>}
|
|
3173
3648
|
* @throws {CommonMessageException}
|
|
3174
3649
|
* @throws {ClientException}
|
|
@@ -3193,9 +3668,11 @@ var BackendRateTag = class extends import_sdkgen_client49.TagAbstract {
|
|
|
3193
3668
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
3194
3669
|
throw new CommonMessageException(await response.json());
|
|
3195
3670
|
}
|
|
3196
|
-
throw new
|
|
3671
|
+
throw new import_sdkgen_client56.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
3197
3672
|
}
|
|
3198
3673
|
/**
|
|
3674
|
+
* Updates an existing rate
|
|
3675
|
+
*
|
|
3199
3676
|
* @returns {Promise<CommonMessage>}
|
|
3200
3677
|
* @throws {CommonMessageException}
|
|
3201
3678
|
* @throws {ClientException}
|
|
@@ -3221,15 +3698,17 @@ var BackendRateTag = class extends import_sdkgen_client49.TagAbstract {
|
|
|
3221
3698
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
3222
3699
|
throw new CommonMessageException(await response.json());
|
|
3223
3700
|
}
|
|
3224
|
-
throw new
|
|
3701
|
+
throw new import_sdkgen_client56.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
3225
3702
|
}
|
|
3226
3703
|
};
|
|
3227
3704
|
|
|
3228
3705
|
// src/BackendRoleTag.ts
|
|
3229
|
-
var
|
|
3230
|
-
var
|
|
3231
|
-
var BackendRoleTag = class extends
|
|
3706
|
+
var import_sdkgen_client57 = require("sdkgen-client");
|
|
3707
|
+
var import_sdkgen_client58 = require("sdkgen-client");
|
|
3708
|
+
var BackendRoleTag = class extends import_sdkgen_client57.TagAbstract {
|
|
3232
3709
|
/**
|
|
3710
|
+
* Creates a new role
|
|
3711
|
+
*
|
|
3233
3712
|
* @returns {Promise<CommonMessage>}
|
|
3234
3713
|
* @throws {CommonMessageException}
|
|
3235
3714
|
* @throws {ClientException}
|
|
@@ -3253,9 +3732,11 @@ var BackendRoleTag = class extends import_sdkgen_client51.TagAbstract {
|
|
|
3253
3732
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
3254
3733
|
throw new CommonMessageException(await response.json());
|
|
3255
3734
|
}
|
|
3256
|
-
throw new
|
|
3735
|
+
throw new import_sdkgen_client58.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
3257
3736
|
}
|
|
3258
3737
|
/**
|
|
3738
|
+
* Deletes an existing role
|
|
3739
|
+
*
|
|
3259
3740
|
* @returns {Promise<CommonMessage>}
|
|
3260
3741
|
* @throws {CommonMessageException}
|
|
3261
3742
|
* @throws {ClientException}
|
|
@@ -3278,9 +3759,11 @@ var BackendRoleTag = class extends import_sdkgen_client51.TagAbstract {
|
|
|
3278
3759
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
3279
3760
|
throw new CommonMessageException(await response.json());
|
|
3280
3761
|
}
|
|
3281
|
-
throw new
|
|
3762
|
+
throw new import_sdkgen_client58.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
3282
3763
|
}
|
|
3283
3764
|
/**
|
|
3765
|
+
* Returns a specific role
|
|
3766
|
+
*
|
|
3284
3767
|
* @returns {Promise<BackendRole>}
|
|
3285
3768
|
* @throws {CommonMessageException}
|
|
3286
3769
|
* @throws {ClientException}
|
|
@@ -3303,9 +3786,11 @@ var BackendRoleTag = class extends import_sdkgen_client51.TagAbstract {
|
|
|
3303
3786
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
3304
3787
|
throw new CommonMessageException(await response.json());
|
|
3305
3788
|
}
|
|
3306
|
-
throw new
|
|
3789
|
+
throw new import_sdkgen_client58.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
3307
3790
|
}
|
|
3308
3791
|
/**
|
|
3792
|
+
* Returns a paginated list of roles
|
|
3793
|
+
*
|
|
3309
3794
|
* @returns {Promise<BackendRoleCollection>}
|
|
3310
3795
|
* @throws {CommonMessageException}
|
|
3311
3796
|
* @throws {ClientException}
|
|
@@ -3330,9 +3815,11 @@ var BackendRoleTag = class extends import_sdkgen_client51.TagAbstract {
|
|
|
3330
3815
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
3331
3816
|
throw new CommonMessageException(await response.json());
|
|
3332
3817
|
}
|
|
3333
|
-
throw new
|
|
3818
|
+
throw new import_sdkgen_client58.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
3334
3819
|
}
|
|
3335
3820
|
/**
|
|
3821
|
+
* Updates an existing role
|
|
3822
|
+
*
|
|
3336
3823
|
* @returns {Promise<CommonMessage>}
|
|
3337
3824
|
* @throws {CommonMessageException}
|
|
3338
3825
|
* @throws {ClientException}
|
|
@@ -3358,15 +3845,17 @@ var BackendRoleTag = class extends import_sdkgen_client51.TagAbstract {
|
|
|
3358
3845
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
3359
3846
|
throw new CommonMessageException(await response.json());
|
|
3360
3847
|
}
|
|
3361
|
-
throw new
|
|
3848
|
+
throw new import_sdkgen_client58.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
3362
3849
|
}
|
|
3363
3850
|
};
|
|
3364
3851
|
|
|
3365
3852
|
// src/BackendSchemaTag.ts
|
|
3366
|
-
var
|
|
3367
|
-
var
|
|
3368
|
-
var BackendSchemaTag = class extends
|
|
3853
|
+
var import_sdkgen_client59 = require("sdkgen-client");
|
|
3854
|
+
var import_sdkgen_client60 = require("sdkgen-client");
|
|
3855
|
+
var BackendSchemaTag = class extends import_sdkgen_client59.TagAbstract {
|
|
3369
3856
|
/**
|
|
3857
|
+
* Creates a new schema
|
|
3858
|
+
*
|
|
3370
3859
|
* @returns {Promise<CommonMessage>}
|
|
3371
3860
|
* @throws {CommonMessageException}
|
|
3372
3861
|
* @throws {ClientException}
|
|
@@ -3390,9 +3879,11 @@ var BackendSchemaTag = class extends import_sdkgen_client53.TagAbstract {
|
|
|
3390
3879
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
3391
3880
|
throw new CommonMessageException(await response.json());
|
|
3392
3881
|
}
|
|
3393
|
-
throw new
|
|
3882
|
+
throw new import_sdkgen_client60.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
3394
3883
|
}
|
|
3395
3884
|
/**
|
|
3885
|
+
* Deletes an existing schema
|
|
3886
|
+
*
|
|
3396
3887
|
* @returns {Promise<CommonMessage>}
|
|
3397
3888
|
* @throws {CommonMessageException}
|
|
3398
3889
|
* @throws {ClientException}
|
|
@@ -3415,9 +3906,11 @@ var BackendSchemaTag = class extends import_sdkgen_client53.TagAbstract {
|
|
|
3415
3906
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
3416
3907
|
throw new CommonMessageException(await response.json());
|
|
3417
3908
|
}
|
|
3418
|
-
throw new
|
|
3909
|
+
throw new import_sdkgen_client60.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
3419
3910
|
}
|
|
3420
3911
|
/**
|
|
3912
|
+
* Returns a specific schema
|
|
3913
|
+
*
|
|
3421
3914
|
* @returns {Promise<BackendSchema>}
|
|
3422
3915
|
* @throws {CommonMessageException}
|
|
3423
3916
|
* @throws {ClientException}
|
|
@@ -3440,9 +3933,11 @@ var BackendSchemaTag = class extends import_sdkgen_client53.TagAbstract {
|
|
|
3440
3933
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
3441
3934
|
throw new CommonMessageException(await response.json());
|
|
3442
3935
|
}
|
|
3443
|
-
throw new
|
|
3936
|
+
throw new import_sdkgen_client60.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
3444
3937
|
}
|
|
3445
3938
|
/**
|
|
3939
|
+
* Returns a paginated list of schemas
|
|
3940
|
+
*
|
|
3446
3941
|
* @returns {Promise<BackendSchemaCollection>}
|
|
3447
3942
|
* @throws {CommonMessageException}
|
|
3448
3943
|
* @throws {ClientException}
|
|
@@ -3467,50 +3962,24 @@ var BackendSchemaTag = class extends import_sdkgen_client53.TagAbstract {
|
|
|
3467
3962
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
3468
3963
|
throw new CommonMessageException(await response.json());
|
|
3469
3964
|
}
|
|
3470
|
-
throw new
|
|
3965
|
+
throw new import_sdkgen_client60.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
3471
3966
|
}
|
|
3472
3967
|
/**
|
|
3968
|
+
* Returns a HTML preview of the provided schema
|
|
3969
|
+
*
|
|
3473
3970
|
* @returns {Promise<BackendSchemaPreviewResponse>}
|
|
3474
3971
|
* @throws {CommonMessageException}
|
|
3475
3972
|
* @throws {ClientException}
|
|
3476
|
-
*/
|
|
3477
|
-
async getPreview(schemaId) {
|
|
3478
|
-
const url = this.parser.url("/backend/schema/preview/:schema_id", {
|
|
3479
|
-
"schema_id": schemaId
|
|
3480
|
-
});
|
|
3481
|
-
let request = {
|
|
3482
|
-
url,
|
|
3483
|
-
method: "POST",
|
|
3484
|
-
headers: {},
|
|
3485
|
-
params: this.parser.query({}, [])
|
|
3486
|
-
};
|
|
3487
|
-
const response = await this.httpClient.request(request);
|
|
3488
|
-
if (response.ok) {
|
|
3489
|
-
return await response.json();
|
|
3490
|
-
}
|
|
3491
|
-
const statusCode = response.status;
|
|
3492
|
-
if (statusCode >= 0 && statusCode <= 999) {
|
|
3493
|
-
throw new CommonMessageException(await response.json());
|
|
3494
|
-
}
|
|
3495
|
-
throw new import_sdkgen_client54.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
3496
|
-
}
|
|
3497
|
-
/**
|
|
3498
|
-
* @returns {Promise<CommonMessage>}
|
|
3499
|
-
* @throws {CommonMessageException}
|
|
3500
|
-
* @throws {ClientException}
|
|
3501
|
-
*/
|
|
3502
|
-
async update(schemaId, payload) {
|
|
3503
|
-
const url = this.parser.url("/backend/schema/$schema_id<[0-9]+|^~>", {
|
|
3973
|
+
*/
|
|
3974
|
+
async getPreview(schemaId) {
|
|
3975
|
+
const url = this.parser.url("/backend/schema/preview/:schema_id", {
|
|
3504
3976
|
"schema_id": schemaId
|
|
3505
3977
|
});
|
|
3506
3978
|
let request = {
|
|
3507
3979
|
url,
|
|
3508
|
-
method: "
|
|
3509
|
-
headers: {
|
|
3510
|
-
|
|
3511
|
-
},
|
|
3512
|
-
params: this.parser.query({}, []),
|
|
3513
|
-
data: payload
|
|
3980
|
+
method: "POST",
|
|
3981
|
+
headers: {},
|
|
3982
|
+
params: this.parser.query({}, [])
|
|
3514
3983
|
};
|
|
3515
3984
|
const response = await this.httpClient.request(request);
|
|
3516
3985
|
if (response.ok) {
|
|
@@ -3520,15 +3989,17 @@ var BackendSchemaTag = class extends import_sdkgen_client53.TagAbstract {
|
|
|
3520
3989
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
3521
3990
|
throw new CommonMessageException(await response.json());
|
|
3522
3991
|
}
|
|
3523
|
-
throw new
|
|
3992
|
+
throw new import_sdkgen_client60.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
3524
3993
|
}
|
|
3525
3994
|
/**
|
|
3995
|
+
* Updates an existing schema
|
|
3996
|
+
*
|
|
3526
3997
|
* @returns {Promise<CommonMessage>}
|
|
3527
3998
|
* @throws {CommonMessageException}
|
|
3528
3999
|
* @throws {ClientException}
|
|
3529
4000
|
*/
|
|
3530
|
-
async
|
|
3531
|
-
const url = this.parser.url("/backend/schema
|
|
4001
|
+
async update(schemaId, payload) {
|
|
4002
|
+
const url = this.parser.url("/backend/schema/$schema_id<[0-9]+|^~>", {
|
|
3532
4003
|
"schema_id": schemaId
|
|
3533
4004
|
});
|
|
3534
4005
|
let request = {
|
|
@@ -3548,15 +4019,17 @@ var BackendSchemaTag = class extends import_sdkgen_client53.TagAbstract {
|
|
|
3548
4019
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
3549
4020
|
throw new CommonMessageException(await response.json());
|
|
3550
4021
|
}
|
|
3551
|
-
throw new
|
|
4022
|
+
throw new import_sdkgen_client60.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
3552
4023
|
}
|
|
3553
4024
|
};
|
|
3554
4025
|
|
|
3555
4026
|
// src/BackendScopeTag.ts
|
|
3556
|
-
var
|
|
3557
|
-
var
|
|
3558
|
-
var BackendScopeTag = class extends
|
|
4027
|
+
var import_sdkgen_client61 = require("sdkgen-client");
|
|
4028
|
+
var import_sdkgen_client62 = require("sdkgen-client");
|
|
4029
|
+
var BackendScopeTag = class extends import_sdkgen_client61.TagAbstract {
|
|
3559
4030
|
/**
|
|
4031
|
+
* Creates a new scope
|
|
4032
|
+
*
|
|
3560
4033
|
* @returns {Promise<CommonMessage>}
|
|
3561
4034
|
* @throws {CommonMessageException}
|
|
3562
4035
|
* @throws {ClientException}
|
|
@@ -3580,9 +4053,11 @@ var BackendScopeTag = class extends import_sdkgen_client55.TagAbstract {
|
|
|
3580
4053
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
3581
4054
|
throw new CommonMessageException(await response.json());
|
|
3582
4055
|
}
|
|
3583
|
-
throw new
|
|
4056
|
+
throw new import_sdkgen_client62.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
3584
4057
|
}
|
|
3585
4058
|
/**
|
|
4059
|
+
* Deletes an existing scope
|
|
4060
|
+
*
|
|
3586
4061
|
* @returns {Promise<CommonMessage>}
|
|
3587
4062
|
* @throws {CommonMessageException}
|
|
3588
4063
|
* @throws {ClientException}
|
|
@@ -3605,9 +4080,11 @@ var BackendScopeTag = class extends import_sdkgen_client55.TagAbstract {
|
|
|
3605
4080
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
3606
4081
|
throw new CommonMessageException(await response.json());
|
|
3607
4082
|
}
|
|
3608
|
-
throw new
|
|
4083
|
+
throw new import_sdkgen_client62.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
3609
4084
|
}
|
|
3610
4085
|
/**
|
|
4086
|
+
* Returns a specific scope
|
|
4087
|
+
*
|
|
3611
4088
|
* @returns {Promise<BackendScope>}
|
|
3612
4089
|
* @throws {CommonMessageException}
|
|
3613
4090
|
* @throws {ClientException}
|
|
@@ -3630,9 +4107,11 @@ var BackendScopeTag = class extends import_sdkgen_client55.TagAbstract {
|
|
|
3630
4107
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
3631
4108
|
throw new CommonMessageException(await response.json());
|
|
3632
4109
|
}
|
|
3633
|
-
throw new
|
|
4110
|
+
throw new import_sdkgen_client62.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
3634
4111
|
}
|
|
3635
4112
|
/**
|
|
4113
|
+
* Returns a paginated list of scopes
|
|
4114
|
+
*
|
|
3636
4115
|
* @returns {Promise<BackendScopeCollection>}
|
|
3637
4116
|
* @throws {CommonMessageException}
|
|
3638
4117
|
* @throws {ClientException}
|
|
@@ -3657,9 +4136,11 @@ var BackendScopeTag = class extends import_sdkgen_client55.TagAbstract {
|
|
|
3657
4136
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
3658
4137
|
throw new CommonMessageException(await response.json());
|
|
3659
4138
|
}
|
|
3660
|
-
throw new
|
|
4139
|
+
throw new import_sdkgen_client62.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
3661
4140
|
}
|
|
3662
4141
|
/**
|
|
4142
|
+
* Returns all available scopes grouped by category
|
|
4143
|
+
*
|
|
3663
4144
|
* @returns {Promise<BackendScopeCategories>}
|
|
3664
4145
|
* @throws {CommonMessageException}
|
|
3665
4146
|
* @throws {ClientException}
|
|
@@ -3680,9 +4161,11 @@ var BackendScopeTag = class extends import_sdkgen_client55.TagAbstract {
|
|
|
3680
4161
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
3681
4162
|
throw new CommonMessageException(await response.json());
|
|
3682
4163
|
}
|
|
3683
|
-
throw new
|
|
4164
|
+
throw new import_sdkgen_client62.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
3684
4165
|
}
|
|
3685
4166
|
/**
|
|
4167
|
+
* Updates an existing scope
|
|
4168
|
+
*
|
|
3686
4169
|
* @returns {Promise<CommonMessage>}
|
|
3687
4170
|
* @throws {CommonMessageException}
|
|
3688
4171
|
* @throws {ClientException}
|
|
@@ -3708,15 +4191,17 @@ var BackendScopeTag = class extends import_sdkgen_client55.TagAbstract {
|
|
|
3708
4191
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
3709
4192
|
throw new CommonMessageException(await response.json());
|
|
3710
4193
|
}
|
|
3711
|
-
throw new
|
|
4194
|
+
throw new import_sdkgen_client62.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
3712
4195
|
}
|
|
3713
4196
|
};
|
|
3714
4197
|
|
|
3715
4198
|
// src/BackendSdkTag.ts
|
|
3716
|
-
var
|
|
3717
|
-
var
|
|
3718
|
-
var BackendSdkTag = class extends
|
|
4199
|
+
var import_sdkgen_client63 = require("sdkgen-client");
|
|
4200
|
+
var import_sdkgen_client64 = require("sdkgen-client");
|
|
4201
|
+
var BackendSdkTag = class extends import_sdkgen_client63.TagAbstract {
|
|
3719
4202
|
/**
|
|
4203
|
+
* Generates a specific SDK
|
|
4204
|
+
*
|
|
3720
4205
|
* @returns {Promise<BackendSdkMessage>}
|
|
3721
4206
|
* @throws {CommonMessageException}
|
|
3722
4207
|
* @throws {ClientException}
|
|
@@ -3740,9 +4225,11 @@ var BackendSdkTag = class extends import_sdkgen_client57.TagAbstract {
|
|
|
3740
4225
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
3741
4226
|
throw new CommonMessageException(await response.json());
|
|
3742
4227
|
}
|
|
3743
|
-
throw new
|
|
4228
|
+
throw new import_sdkgen_client64.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
3744
4229
|
}
|
|
3745
4230
|
/**
|
|
4231
|
+
* Returns a paginated list of SDKs
|
|
4232
|
+
*
|
|
3746
4233
|
* @returns {Promise<BackendSdkResponse>}
|
|
3747
4234
|
* @throws {CommonMessageException}
|
|
3748
4235
|
* @throws {ClientException}
|
|
@@ -3763,15 +4250,17 @@ var BackendSdkTag = class extends import_sdkgen_client57.TagAbstract {
|
|
|
3763
4250
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
3764
4251
|
throw new CommonMessageException(await response.json());
|
|
3765
4252
|
}
|
|
3766
|
-
throw new
|
|
4253
|
+
throw new import_sdkgen_client64.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
3767
4254
|
}
|
|
3768
4255
|
};
|
|
3769
4256
|
|
|
3770
4257
|
// src/BackendStatisticTag.ts
|
|
3771
|
-
var
|
|
3772
|
-
var
|
|
3773
|
-
var BackendStatisticTag = class extends
|
|
4258
|
+
var import_sdkgen_client65 = require("sdkgen-client");
|
|
4259
|
+
var import_sdkgen_client66 = require("sdkgen-client");
|
|
4260
|
+
var BackendStatisticTag = class extends import_sdkgen_client65.TagAbstract {
|
|
3774
4261
|
/**
|
|
4262
|
+
* Returns a statistic containing the activities per user
|
|
4263
|
+
*
|
|
3775
4264
|
* @returns {Promise<BackendStatisticChart>}
|
|
3776
4265
|
* @throws {CommonMessageException}
|
|
3777
4266
|
* @throws {ClientException}
|
|
@@ -3807,9 +4296,11 @@ var BackendStatisticTag = class extends import_sdkgen_client59.TagAbstract {
|
|
|
3807
4296
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
3808
4297
|
throw new CommonMessageException(await response.json());
|
|
3809
4298
|
}
|
|
3810
|
-
throw new
|
|
4299
|
+
throw new import_sdkgen_client66.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
3811
4300
|
}
|
|
3812
4301
|
/**
|
|
4302
|
+
* Returns a statistic containing the request count
|
|
4303
|
+
*
|
|
3813
4304
|
* @returns {Promise<BackendStatisticCount>}
|
|
3814
4305
|
* @throws {CommonMessageException}
|
|
3815
4306
|
* @throws {ClientException}
|
|
@@ -3845,9 +4336,11 @@ var BackendStatisticTag = class extends import_sdkgen_client59.TagAbstract {
|
|
|
3845
4336
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
3846
4337
|
throw new CommonMessageException(await response.json());
|
|
3847
4338
|
}
|
|
3848
|
-
throw new
|
|
4339
|
+
throw new import_sdkgen_client66.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
3849
4340
|
}
|
|
3850
4341
|
/**
|
|
4342
|
+
* Returns a statistic containing the errors per operation
|
|
4343
|
+
*
|
|
3851
4344
|
* @returns {Promise<BackendStatisticChart>}
|
|
3852
4345
|
* @throws {CommonMessageException}
|
|
3853
4346
|
* @throws {ClientException}
|
|
@@ -3883,9 +4376,11 @@ var BackendStatisticTag = class extends import_sdkgen_client59.TagAbstract {
|
|
|
3883
4376
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
3884
4377
|
throw new CommonMessageException(await response.json());
|
|
3885
4378
|
}
|
|
3886
|
-
throw new
|
|
4379
|
+
throw new import_sdkgen_client66.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
3887
4380
|
}
|
|
3888
4381
|
/**
|
|
4382
|
+
* Returns a statistic containing the incoming requests
|
|
4383
|
+
*
|
|
3889
4384
|
* @returns {Promise<BackendStatisticChart>}
|
|
3890
4385
|
* @throws {CommonMessageException}
|
|
3891
4386
|
* @throws {ClientException}
|
|
@@ -3921,9 +4416,11 @@ var BackendStatisticTag = class extends import_sdkgen_client59.TagAbstract {
|
|
|
3921
4416
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
3922
4417
|
throw new CommonMessageException(await response.json());
|
|
3923
4418
|
}
|
|
3924
|
-
throw new
|
|
4419
|
+
throw new import_sdkgen_client66.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
3925
4420
|
}
|
|
3926
4421
|
/**
|
|
4422
|
+
* Returns a statistic containing the incoming transactions
|
|
4423
|
+
*
|
|
3927
4424
|
* @returns {Promise<BackendStatisticChart>}
|
|
3928
4425
|
* @throws {CommonMessageException}
|
|
3929
4426
|
* @throws {ClientException}
|
|
@@ -3959,9 +4456,11 @@ var BackendStatisticTag = class extends import_sdkgen_client59.TagAbstract {
|
|
|
3959
4456
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
3960
4457
|
throw new CommonMessageException(await response.json());
|
|
3961
4458
|
}
|
|
3962
|
-
throw new
|
|
4459
|
+
throw new import_sdkgen_client66.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
3963
4460
|
}
|
|
3964
4461
|
/**
|
|
4462
|
+
* Returns a statistic containing the issues tokens
|
|
4463
|
+
*
|
|
3965
4464
|
* @returns {Promise<BackendStatisticChart>}
|
|
3966
4465
|
* @throws {CommonMessageException}
|
|
3967
4466
|
* @throws {ClientException}
|
|
@@ -3997,9 +4496,11 @@ var BackendStatisticTag = class extends import_sdkgen_client59.TagAbstract {
|
|
|
3997
4496
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
3998
4497
|
throw new CommonMessageException(await response.json());
|
|
3999
4498
|
}
|
|
4000
|
-
throw new
|
|
4499
|
+
throw new import_sdkgen_client66.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
4001
4500
|
}
|
|
4002
4501
|
/**
|
|
4502
|
+
* Returns a statistic containing the most used activities
|
|
4503
|
+
*
|
|
4003
4504
|
* @returns {Promise<BackendStatisticChart>}
|
|
4004
4505
|
* @throws {CommonMessageException}
|
|
4005
4506
|
* @throws {ClientException}
|
|
@@ -4035,9 +4536,11 @@ var BackendStatisticTag = class extends import_sdkgen_client59.TagAbstract {
|
|
|
4035
4536
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
4036
4537
|
throw new CommonMessageException(await response.json());
|
|
4037
4538
|
}
|
|
4038
|
-
throw new
|
|
4539
|
+
throw new import_sdkgen_client66.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
4039
4540
|
}
|
|
4040
4541
|
/**
|
|
4542
|
+
* Returns a statistic containing the most used apps
|
|
4543
|
+
*
|
|
4041
4544
|
* @returns {Promise<BackendStatisticChart>}
|
|
4042
4545
|
* @throws {CommonMessageException}
|
|
4043
4546
|
* @throws {ClientException}
|
|
@@ -4073,9 +4576,11 @@ var BackendStatisticTag = class extends import_sdkgen_client59.TagAbstract {
|
|
|
4073
4576
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
4074
4577
|
throw new CommonMessageException(await response.json());
|
|
4075
4578
|
}
|
|
4076
|
-
throw new
|
|
4579
|
+
throw new import_sdkgen_client66.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
4077
4580
|
}
|
|
4078
4581
|
/**
|
|
4582
|
+
* Returns a statistic containing the most used operations
|
|
4583
|
+
*
|
|
4079
4584
|
* @returns {Promise<BackendStatisticChart>}
|
|
4080
4585
|
* @throws {CommonMessageException}
|
|
4081
4586
|
* @throws {ClientException}
|
|
@@ -4111,9 +4616,11 @@ var BackendStatisticTag = class extends import_sdkgen_client59.TagAbstract {
|
|
|
4111
4616
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
4112
4617
|
throw new CommonMessageException(await response.json());
|
|
4113
4618
|
}
|
|
4114
|
-
throw new
|
|
4619
|
+
throw new import_sdkgen_client66.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
4115
4620
|
}
|
|
4116
4621
|
/**
|
|
4622
|
+
* Returns a statistic containing the test coverage
|
|
4623
|
+
*
|
|
4117
4624
|
* @returns {Promise<BackendStatisticChart>}
|
|
4118
4625
|
* @throws {CommonMessageException}
|
|
4119
4626
|
* @throws {ClientException}
|
|
@@ -4134,9 +4641,11 @@ var BackendStatisticTag = class extends import_sdkgen_client59.TagAbstract {
|
|
|
4134
4641
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
4135
4642
|
throw new CommonMessageException(await response.json());
|
|
4136
4643
|
}
|
|
4137
|
-
throw new
|
|
4644
|
+
throw new import_sdkgen_client66.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
4138
4645
|
}
|
|
4139
4646
|
/**
|
|
4647
|
+
* Returns a statistic containing the time average
|
|
4648
|
+
*
|
|
4140
4649
|
* @returns {Promise<BackendStatisticChart>}
|
|
4141
4650
|
* @throws {CommonMessageException}
|
|
4142
4651
|
* @throws {ClientException}
|
|
@@ -4172,9 +4681,11 @@ var BackendStatisticTag = class extends import_sdkgen_client59.TagAbstract {
|
|
|
4172
4681
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
4173
4682
|
throw new CommonMessageException(await response.json());
|
|
4174
4683
|
}
|
|
4175
|
-
throw new
|
|
4684
|
+
throw new import_sdkgen_client66.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
4176
4685
|
}
|
|
4177
4686
|
/**
|
|
4687
|
+
* Returns a statistic containing the time per operation
|
|
4688
|
+
*
|
|
4178
4689
|
* @returns {Promise<BackendStatisticChart>}
|
|
4179
4690
|
* @throws {CommonMessageException}
|
|
4180
4691
|
* @throws {ClientException}
|
|
@@ -4210,9 +4721,11 @@ var BackendStatisticTag = class extends import_sdkgen_client59.TagAbstract {
|
|
|
4210
4721
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
4211
4722
|
throw new CommonMessageException(await response.json());
|
|
4212
4723
|
}
|
|
4213
|
-
throw new
|
|
4724
|
+
throw new import_sdkgen_client66.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
4214
4725
|
}
|
|
4215
4726
|
/**
|
|
4727
|
+
* Returns a statistic containing the used points
|
|
4728
|
+
*
|
|
4216
4729
|
* @returns {Promise<BackendStatisticChart>}
|
|
4217
4730
|
* @throws {CommonMessageException}
|
|
4218
4731
|
* @throws {ClientException}
|
|
@@ -4248,9 +4761,11 @@ var BackendStatisticTag = class extends import_sdkgen_client59.TagAbstract {
|
|
|
4248
4761
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
4249
4762
|
throw new CommonMessageException(await response.json());
|
|
4250
4763
|
}
|
|
4251
|
-
throw new
|
|
4764
|
+
throw new import_sdkgen_client66.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
4252
4765
|
}
|
|
4253
4766
|
/**
|
|
4767
|
+
* Returns a statistic containing the user registrations
|
|
4768
|
+
*
|
|
4254
4769
|
* @returns {Promise<BackendStatisticChart>}
|
|
4255
4770
|
* @throws {CommonMessageException}
|
|
4256
4771
|
* @throws {ClientException}
|
|
@@ -4286,18 +4801,20 @@ var BackendStatisticTag = class extends import_sdkgen_client59.TagAbstract {
|
|
|
4286
4801
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
4287
4802
|
throw new CommonMessageException(await response.json());
|
|
4288
4803
|
}
|
|
4289
|
-
throw new
|
|
4804
|
+
throw new import_sdkgen_client66.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
4290
4805
|
}
|
|
4291
4806
|
};
|
|
4292
4807
|
|
|
4293
4808
|
// src/BackendTag.ts
|
|
4294
|
-
var
|
|
4809
|
+
var import_sdkgen_client83 = require("sdkgen-client");
|
|
4295
4810
|
|
|
4296
4811
|
// src/BackendTenantTag.ts
|
|
4297
|
-
var
|
|
4298
|
-
var
|
|
4299
|
-
var BackendTenantTag = class extends
|
|
4812
|
+
var import_sdkgen_client67 = require("sdkgen-client");
|
|
4813
|
+
var import_sdkgen_client68 = require("sdkgen-client");
|
|
4814
|
+
var BackendTenantTag = class extends import_sdkgen_client67.TagAbstract {
|
|
4300
4815
|
/**
|
|
4816
|
+
* Removes an existing tenant
|
|
4817
|
+
*
|
|
4301
4818
|
* @returns {Promise<CommonMessage>}
|
|
4302
4819
|
* @throws {CommonMessageException}
|
|
4303
4820
|
* @throws {ClientException}
|
|
@@ -4320,9 +4837,11 @@ var BackendTenantTag = class extends import_sdkgen_client61.TagAbstract {
|
|
|
4320
4837
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
4321
4838
|
throw new CommonMessageException(await response.json());
|
|
4322
4839
|
}
|
|
4323
|
-
throw new
|
|
4840
|
+
throw new import_sdkgen_client68.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
4324
4841
|
}
|
|
4325
4842
|
/**
|
|
4843
|
+
* Setup a new tenant
|
|
4844
|
+
*
|
|
4326
4845
|
* @returns {Promise<CommonMessage>}
|
|
4327
4846
|
* @throws {CommonMessageException}
|
|
4328
4847
|
* @throws {ClientException}
|
|
@@ -4345,15 +4864,17 @@ var BackendTenantTag = class extends import_sdkgen_client61.TagAbstract {
|
|
|
4345
4864
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
4346
4865
|
throw new CommonMessageException(await response.json());
|
|
4347
4866
|
}
|
|
4348
|
-
throw new
|
|
4867
|
+
throw new import_sdkgen_client68.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
4349
4868
|
}
|
|
4350
4869
|
};
|
|
4351
4870
|
|
|
4352
4871
|
// src/BackendTestTag.ts
|
|
4353
|
-
var
|
|
4354
|
-
var
|
|
4355
|
-
var BackendTestTag = class extends
|
|
4872
|
+
var import_sdkgen_client69 = require("sdkgen-client");
|
|
4873
|
+
var import_sdkgen_client70 = require("sdkgen-client");
|
|
4874
|
+
var BackendTestTag = class extends import_sdkgen_client69.TagAbstract {
|
|
4356
4875
|
/**
|
|
4876
|
+
* Returns a specific test
|
|
4877
|
+
*
|
|
4357
4878
|
* @returns {Promise<BackendTest>}
|
|
4358
4879
|
* @throws {CommonMessageException}
|
|
4359
4880
|
* @throws {ClientException}
|
|
@@ -4376,9 +4897,11 @@ var BackendTestTag = class extends import_sdkgen_client63.TagAbstract {
|
|
|
4376
4897
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
4377
4898
|
throw new CommonMessageException(await response.json());
|
|
4378
4899
|
}
|
|
4379
|
-
throw new
|
|
4900
|
+
throw new import_sdkgen_client70.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
4380
4901
|
}
|
|
4381
4902
|
/**
|
|
4903
|
+
* Returns a paginated list of tests
|
|
4904
|
+
*
|
|
4382
4905
|
* @returns {Promise<BackendTestCollection>}
|
|
4383
4906
|
* @throws {CommonMessageException}
|
|
4384
4907
|
* @throws {ClientException}
|
|
@@ -4403,9 +4926,11 @@ var BackendTestTag = class extends import_sdkgen_client63.TagAbstract {
|
|
|
4403
4926
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
4404
4927
|
throw new CommonMessageException(await response.json());
|
|
4405
4928
|
}
|
|
4406
|
-
throw new
|
|
4929
|
+
throw new import_sdkgen_client70.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
4407
4930
|
}
|
|
4408
4931
|
/**
|
|
4932
|
+
* Refresh all tests
|
|
4933
|
+
*
|
|
4409
4934
|
* @returns {Promise<CommonMessage>}
|
|
4410
4935
|
* @throws {CommonMessageException}
|
|
4411
4936
|
* @throws {ClientException}
|
|
@@ -4426,9 +4951,11 @@ var BackendTestTag = class extends import_sdkgen_client63.TagAbstract {
|
|
|
4426
4951
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
4427
4952
|
throw new CommonMessageException(await response.json());
|
|
4428
4953
|
}
|
|
4429
|
-
throw new
|
|
4954
|
+
throw new import_sdkgen_client70.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
4430
4955
|
}
|
|
4431
4956
|
/**
|
|
4957
|
+
* Run all tests
|
|
4958
|
+
*
|
|
4432
4959
|
* @returns {Promise<CommonMessage>}
|
|
4433
4960
|
* @throws {CommonMessageException}
|
|
4434
4961
|
* @throws {ClientException}
|
|
@@ -4449,9 +4976,11 @@ var BackendTestTag = class extends import_sdkgen_client63.TagAbstract {
|
|
|
4449
4976
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
4450
4977
|
throw new CommonMessageException(await response.json());
|
|
4451
4978
|
}
|
|
4452
|
-
throw new
|
|
4979
|
+
throw new import_sdkgen_client70.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
4453
4980
|
}
|
|
4454
4981
|
/**
|
|
4982
|
+
* Updates an existing test
|
|
4983
|
+
*
|
|
4455
4984
|
* @returns {Promise<CommonMessage>}
|
|
4456
4985
|
* @throws {CommonMessageException}
|
|
4457
4986
|
* @throws {ClientException}
|
|
@@ -4477,15 +5006,17 @@ var BackendTestTag = class extends import_sdkgen_client63.TagAbstract {
|
|
|
4477
5006
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
4478
5007
|
throw new CommonMessageException(await response.json());
|
|
4479
5008
|
}
|
|
4480
|
-
throw new
|
|
5009
|
+
throw new import_sdkgen_client70.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
4481
5010
|
}
|
|
4482
5011
|
};
|
|
4483
5012
|
|
|
4484
5013
|
// src/BackendTokenTag.ts
|
|
4485
|
-
var
|
|
4486
|
-
var
|
|
4487
|
-
var BackendTokenTag = class extends
|
|
5014
|
+
var import_sdkgen_client71 = require("sdkgen-client");
|
|
5015
|
+
var import_sdkgen_client72 = require("sdkgen-client");
|
|
5016
|
+
var BackendTokenTag = class extends import_sdkgen_client71.TagAbstract {
|
|
4488
5017
|
/**
|
|
5018
|
+
* Returns a specific token
|
|
5019
|
+
*
|
|
4489
5020
|
* @returns {Promise<BackendToken>}
|
|
4490
5021
|
* @throws {CommonMessageException}
|
|
4491
5022
|
* @throws {ClientException}
|
|
@@ -4508,9 +5039,11 @@ var BackendTokenTag = class extends import_sdkgen_client65.TagAbstract {
|
|
|
4508
5039
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
4509
5040
|
throw new CommonMessageException(await response.json());
|
|
4510
5041
|
}
|
|
4511
|
-
throw new
|
|
5042
|
+
throw new import_sdkgen_client72.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
4512
5043
|
}
|
|
4513
5044
|
/**
|
|
5045
|
+
* Returns a paginated list of tokens
|
|
5046
|
+
*
|
|
4514
5047
|
* @returns {Promise<BackendTokenCollection>}
|
|
4515
5048
|
* @throws {CommonMessageException}
|
|
4516
5049
|
* @throws {ClientException}
|
|
@@ -4542,15 +5075,17 @@ var BackendTokenTag = class extends import_sdkgen_client65.TagAbstract {
|
|
|
4542
5075
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
4543
5076
|
throw new CommonMessageException(await response.json());
|
|
4544
5077
|
}
|
|
4545
|
-
throw new
|
|
5078
|
+
throw new import_sdkgen_client72.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
4546
5079
|
}
|
|
4547
5080
|
};
|
|
4548
5081
|
|
|
4549
5082
|
// src/BackendTransactionTag.ts
|
|
4550
|
-
var
|
|
4551
|
-
var
|
|
4552
|
-
var BackendTransactionTag = class extends
|
|
5083
|
+
var import_sdkgen_client73 = require("sdkgen-client");
|
|
5084
|
+
var import_sdkgen_client74 = require("sdkgen-client");
|
|
5085
|
+
var BackendTransactionTag = class extends import_sdkgen_client73.TagAbstract {
|
|
4553
5086
|
/**
|
|
5087
|
+
* Returns a specific transaction
|
|
5088
|
+
*
|
|
4554
5089
|
* @returns {Promise<BackendTransaction>}
|
|
4555
5090
|
* @throws {CommonMessageException}
|
|
4556
5091
|
* @throws {ClientException}
|
|
@@ -4573,31 +5108,186 @@ var BackendTransactionTag = class extends import_sdkgen_client67.TagAbstract {
|
|
|
4573
5108
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
4574
5109
|
throw new CommonMessageException(await response.json());
|
|
4575
5110
|
}
|
|
4576
|
-
throw new
|
|
5111
|
+
throw new import_sdkgen_client74.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
5112
|
+
}
|
|
5113
|
+
/**
|
|
5114
|
+
* Returns a paginated list of transactions
|
|
5115
|
+
*
|
|
5116
|
+
* @returns {Promise<BackendTransactionCollection>}
|
|
5117
|
+
* @throws {CommonMessageException}
|
|
5118
|
+
* @throws {ClientException}
|
|
5119
|
+
*/
|
|
5120
|
+
async getAll(startIndex, count, search, from, to, planId, userId, appId, status, provider) {
|
|
5121
|
+
const url = this.parser.url("/backend/transaction", {});
|
|
5122
|
+
let request = {
|
|
5123
|
+
url,
|
|
5124
|
+
method: "GET",
|
|
5125
|
+
headers: {},
|
|
5126
|
+
params: this.parser.query({
|
|
5127
|
+
"startIndex": startIndex,
|
|
5128
|
+
"count": count,
|
|
5129
|
+
"search": search,
|
|
5130
|
+
"from": from,
|
|
5131
|
+
"to": to,
|
|
5132
|
+
"planId": planId,
|
|
5133
|
+
"userId": userId,
|
|
5134
|
+
"appId": appId,
|
|
5135
|
+
"status": status,
|
|
5136
|
+
"provider": provider
|
|
5137
|
+
}, [])
|
|
5138
|
+
};
|
|
5139
|
+
const response = await this.httpClient.request(request);
|
|
5140
|
+
if (response.ok) {
|
|
5141
|
+
return await response.json();
|
|
5142
|
+
}
|
|
5143
|
+
const statusCode = response.status;
|
|
5144
|
+
if (statusCode >= 0 && statusCode <= 999) {
|
|
5145
|
+
throw new CommonMessageException(await response.json());
|
|
5146
|
+
}
|
|
5147
|
+
throw new import_sdkgen_client74.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
5148
|
+
}
|
|
5149
|
+
};
|
|
5150
|
+
|
|
5151
|
+
// src/BackendTrashTag.ts
|
|
5152
|
+
var import_sdkgen_client75 = require("sdkgen-client");
|
|
5153
|
+
var import_sdkgen_client76 = require("sdkgen-client");
|
|
5154
|
+
var BackendTrashTag = class extends import_sdkgen_client75.TagAbstract {
|
|
5155
|
+
/**
|
|
5156
|
+
* Returns all deleted records by trash type
|
|
5157
|
+
*
|
|
5158
|
+
* @returns {Promise<BackendTrashDataCollection>}
|
|
5159
|
+
* @throws {CommonMessageException}
|
|
5160
|
+
* @throws {ClientException}
|
|
5161
|
+
*/
|
|
5162
|
+
async getAllByType(type, startIndex, count, search) {
|
|
5163
|
+
const url = this.parser.url("/backend/trash/:type", {
|
|
5164
|
+
"type": type
|
|
5165
|
+
});
|
|
5166
|
+
let request = {
|
|
5167
|
+
url,
|
|
5168
|
+
method: "GET",
|
|
5169
|
+
headers: {},
|
|
5170
|
+
params: this.parser.query({
|
|
5171
|
+
"startIndex": startIndex,
|
|
5172
|
+
"count": count,
|
|
5173
|
+
"search": search
|
|
5174
|
+
}, [])
|
|
5175
|
+
};
|
|
5176
|
+
const response = await this.httpClient.request(request);
|
|
5177
|
+
if (response.ok) {
|
|
5178
|
+
return await response.json();
|
|
5179
|
+
}
|
|
5180
|
+
const statusCode = response.status;
|
|
5181
|
+
if (statusCode >= 0 && statusCode <= 999) {
|
|
5182
|
+
throw new CommonMessageException(await response.json());
|
|
5183
|
+
}
|
|
5184
|
+
throw new import_sdkgen_client76.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
5185
|
+
}
|
|
5186
|
+
/**
|
|
5187
|
+
* Returns all trash types
|
|
5188
|
+
*
|
|
5189
|
+
* @returns {Promise<BackendTrashTypes>}
|
|
5190
|
+
* @throws {CommonMessageException}
|
|
5191
|
+
* @throws {ClientException}
|
|
5192
|
+
*/
|
|
5193
|
+
async getTypes() {
|
|
5194
|
+
const url = this.parser.url("/backend/trash", {});
|
|
5195
|
+
let request = {
|
|
5196
|
+
url,
|
|
5197
|
+
method: "GET",
|
|
5198
|
+
headers: {},
|
|
5199
|
+
params: this.parser.query({}, [])
|
|
5200
|
+
};
|
|
5201
|
+
const response = await this.httpClient.request(request);
|
|
5202
|
+
if (response.ok) {
|
|
5203
|
+
return await response.json();
|
|
5204
|
+
}
|
|
5205
|
+
const statusCode = response.status;
|
|
5206
|
+
if (statusCode >= 0 && statusCode <= 999) {
|
|
5207
|
+
throw new CommonMessageException(await response.json());
|
|
5208
|
+
}
|
|
5209
|
+
throw new import_sdkgen_client76.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
5210
|
+
}
|
|
5211
|
+
/**
|
|
5212
|
+
* Restores a previously deleted record
|
|
5213
|
+
*
|
|
5214
|
+
* @returns {Promise<CommonMessage>}
|
|
5215
|
+
* @throws {CommonMessageException}
|
|
5216
|
+
* @throws {ClientException}
|
|
5217
|
+
*/
|
|
5218
|
+
async restore(type, payload) {
|
|
5219
|
+
const url = this.parser.url("/backend/trash/:type", {
|
|
5220
|
+
"type": type
|
|
5221
|
+
});
|
|
5222
|
+
let request = {
|
|
5223
|
+
url,
|
|
5224
|
+
method: "POST",
|
|
5225
|
+
headers: {
|
|
5226
|
+
"Content-Type": "application/json"
|
|
5227
|
+
},
|
|
5228
|
+
params: this.parser.query({}, []),
|
|
5229
|
+
data: payload
|
|
5230
|
+
};
|
|
5231
|
+
const response = await this.httpClient.request(request);
|
|
5232
|
+
if (response.ok) {
|
|
5233
|
+
return await response.json();
|
|
5234
|
+
}
|
|
5235
|
+
const statusCode = response.status;
|
|
5236
|
+
if (statusCode >= 0 && statusCode <= 999) {
|
|
5237
|
+
throw new CommonMessageException(await response.json());
|
|
5238
|
+
}
|
|
5239
|
+
throw new import_sdkgen_client76.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
5240
|
+
}
|
|
5241
|
+
};
|
|
5242
|
+
|
|
5243
|
+
// src/BackendTriggerTag.ts
|
|
5244
|
+
var import_sdkgen_client77 = require("sdkgen-client");
|
|
5245
|
+
var import_sdkgen_client78 = require("sdkgen-client");
|
|
5246
|
+
var BackendTriggerTag = class extends import_sdkgen_client77.TagAbstract {
|
|
5247
|
+
/**
|
|
5248
|
+
* Creates a new trigger
|
|
5249
|
+
*
|
|
5250
|
+
* @returns {Promise<CommonMessage>}
|
|
5251
|
+
* @throws {CommonMessageException}
|
|
5252
|
+
* @throws {ClientException}
|
|
5253
|
+
*/
|
|
5254
|
+
async create(payload) {
|
|
5255
|
+
const url = this.parser.url("/backend/trigger", {});
|
|
5256
|
+
let request = {
|
|
5257
|
+
url,
|
|
5258
|
+
method: "POST",
|
|
5259
|
+
headers: {
|
|
5260
|
+
"Content-Type": "application/json"
|
|
5261
|
+
},
|
|
5262
|
+
params: this.parser.query({}, []),
|
|
5263
|
+
data: payload
|
|
5264
|
+
};
|
|
5265
|
+
const response = await this.httpClient.request(request);
|
|
5266
|
+
if (response.ok) {
|
|
5267
|
+
return await response.json();
|
|
5268
|
+
}
|
|
5269
|
+
const statusCode = response.status;
|
|
5270
|
+
if (statusCode >= 0 && statusCode <= 999) {
|
|
5271
|
+
throw new CommonMessageException(await response.json());
|
|
5272
|
+
}
|
|
5273
|
+
throw new import_sdkgen_client78.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
4577
5274
|
}
|
|
4578
5275
|
/**
|
|
4579
|
-
*
|
|
5276
|
+
* Deletes an existing trigger
|
|
5277
|
+
*
|
|
5278
|
+
* @returns {Promise<CommonMessage>}
|
|
4580
5279
|
* @throws {CommonMessageException}
|
|
4581
5280
|
* @throws {ClientException}
|
|
4582
5281
|
*/
|
|
4583
|
-
async
|
|
4584
|
-
const url = this.parser.url("/backend/
|
|
5282
|
+
async delete(triggerId) {
|
|
5283
|
+
const url = this.parser.url("/backend/trigger/$trigger_id<[0-9]+|^~>", {
|
|
5284
|
+
"trigger_id": triggerId
|
|
5285
|
+
});
|
|
4585
5286
|
let request = {
|
|
4586
5287
|
url,
|
|
4587
|
-
method: "
|
|
5288
|
+
method: "DELETE",
|
|
4588
5289
|
headers: {},
|
|
4589
|
-
params: this.parser.query({
|
|
4590
|
-
"startIndex": startIndex,
|
|
4591
|
-
"count": count,
|
|
4592
|
-
"search": search,
|
|
4593
|
-
"from": from,
|
|
4594
|
-
"to": to,
|
|
4595
|
-
"planId": planId,
|
|
4596
|
-
"userId": userId,
|
|
4597
|
-
"appId": appId,
|
|
4598
|
-
"status": status,
|
|
4599
|
-
"provider": provider
|
|
4600
|
-
}, [])
|
|
5290
|
+
params: this.parser.query({}, [])
|
|
4601
5291
|
};
|
|
4602
5292
|
const response = await this.httpClient.request(request);
|
|
4603
5293
|
if (response.ok) {
|
|
@@ -4607,32 +5297,24 @@ var BackendTransactionTag = class extends import_sdkgen_client67.TagAbstract {
|
|
|
4607
5297
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
4608
5298
|
throw new CommonMessageException(await response.json());
|
|
4609
5299
|
}
|
|
4610
|
-
throw new
|
|
5300
|
+
throw new import_sdkgen_client78.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
4611
5301
|
}
|
|
4612
|
-
};
|
|
4613
|
-
|
|
4614
|
-
// src/BackendTrashTag.ts
|
|
4615
|
-
var import_sdkgen_client69 = require("sdkgen-client");
|
|
4616
|
-
var import_sdkgen_client70 = require("sdkgen-client");
|
|
4617
|
-
var BackendTrashTag = class extends import_sdkgen_client69.TagAbstract {
|
|
4618
5302
|
/**
|
|
4619
|
-
*
|
|
5303
|
+
* Returns a specific trigger
|
|
5304
|
+
*
|
|
5305
|
+
* @returns {Promise<BackendTrigger>}
|
|
4620
5306
|
* @throws {CommonMessageException}
|
|
4621
5307
|
* @throws {ClientException}
|
|
4622
5308
|
*/
|
|
4623
|
-
async
|
|
4624
|
-
const url = this.parser.url("/backend/
|
|
4625
|
-
"
|
|
5309
|
+
async get(triggerId) {
|
|
5310
|
+
const url = this.parser.url("/backend/trigger/$trigger_id<[0-9]+|^~>", {
|
|
5311
|
+
"trigger_id": triggerId
|
|
4626
5312
|
});
|
|
4627
5313
|
let request = {
|
|
4628
5314
|
url,
|
|
4629
5315
|
method: "GET",
|
|
4630
5316
|
headers: {},
|
|
4631
|
-
params: this.parser.query({
|
|
4632
|
-
"startIndex": startIndex,
|
|
4633
|
-
"count": count,
|
|
4634
|
-
"search": search
|
|
4635
|
-
}, [])
|
|
5317
|
+
params: this.parser.query({}, [])
|
|
4636
5318
|
};
|
|
4637
5319
|
const response = await this.httpClient.request(request);
|
|
4638
5320
|
if (response.ok) {
|
|
@@ -4642,20 +5324,26 @@ var BackendTrashTag = class extends import_sdkgen_client69.TagAbstract {
|
|
|
4642
5324
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
4643
5325
|
throw new CommonMessageException(await response.json());
|
|
4644
5326
|
}
|
|
4645
|
-
throw new
|
|
5327
|
+
throw new import_sdkgen_client78.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
4646
5328
|
}
|
|
4647
5329
|
/**
|
|
4648
|
-
*
|
|
5330
|
+
* Returns a paginated list of triggers
|
|
5331
|
+
*
|
|
5332
|
+
* @returns {Promise<BackendTriggerCollection>}
|
|
4649
5333
|
* @throws {CommonMessageException}
|
|
4650
5334
|
* @throws {ClientException}
|
|
4651
5335
|
*/
|
|
4652
|
-
async
|
|
4653
|
-
const url = this.parser.url("/backend/
|
|
5336
|
+
async getAll(startIndex, count, search) {
|
|
5337
|
+
const url = this.parser.url("/backend/trigger", {});
|
|
4654
5338
|
let request = {
|
|
4655
5339
|
url,
|
|
4656
5340
|
method: "GET",
|
|
4657
5341
|
headers: {},
|
|
4658
|
-
params: this.parser.query({
|
|
5342
|
+
params: this.parser.query({
|
|
5343
|
+
"startIndex": startIndex,
|
|
5344
|
+
"count": count,
|
|
5345
|
+
"search": search
|
|
5346
|
+
}, [])
|
|
4659
5347
|
};
|
|
4660
5348
|
const response = await this.httpClient.request(request);
|
|
4661
5349
|
if (response.ok) {
|
|
@@ -4665,20 +5353,22 @@ var BackendTrashTag = class extends import_sdkgen_client69.TagAbstract {
|
|
|
4665
5353
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
4666
5354
|
throw new CommonMessageException(await response.json());
|
|
4667
5355
|
}
|
|
4668
|
-
throw new
|
|
5356
|
+
throw new import_sdkgen_client78.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
4669
5357
|
}
|
|
4670
5358
|
/**
|
|
5359
|
+
* Updates an existing trigger
|
|
5360
|
+
*
|
|
4671
5361
|
* @returns {Promise<CommonMessage>}
|
|
4672
5362
|
* @throws {CommonMessageException}
|
|
4673
5363
|
* @throws {ClientException}
|
|
4674
5364
|
*/
|
|
4675
|
-
async
|
|
4676
|
-
const url = this.parser.url("/backend/
|
|
4677
|
-
"
|
|
5365
|
+
async update(triggerId, payload) {
|
|
5366
|
+
const url = this.parser.url("/backend/trigger/$trigger_id<[0-9]+|^~>", {
|
|
5367
|
+
"trigger_id": triggerId
|
|
4678
5368
|
});
|
|
4679
5369
|
let request = {
|
|
4680
5370
|
url,
|
|
4681
|
-
method: "
|
|
5371
|
+
method: "PUT",
|
|
4682
5372
|
headers: {
|
|
4683
5373
|
"Content-Type": "application/json"
|
|
4684
5374
|
},
|
|
@@ -4693,15 +5383,17 @@ var BackendTrashTag = class extends import_sdkgen_client69.TagAbstract {
|
|
|
4693
5383
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
4694
5384
|
throw new CommonMessageException(await response.json());
|
|
4695
5385
|
}
|
|
4696
|
-
throw new
|
|
5386
|
+
throw new import_sdkgen_client78.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
4697
5387
|
}
|
|
4698
5388
|
};
|
|
4699
5389
|
|
|
4700
5390
|
// src/BackendUserTag.ts
|
|
4701
|
-
var
|
|
4702
|
-
var
|
|
4703
|
-
var BackendUserTag = class extends
|
|
5391
|
+
var import_sdkgen_client79 = require("sdkgen-client");
|
|
5392
|
+
var import_sdkgen_client80 = require("sdkgen-client");
|
|
5393
|
+
var BackendUserTag = class extends import_sdkgen_client79.TagAbstract {
|
|
4704
5394
|
/**
|
|
5395
|
+
* Creates a new user
|
|
5396
|
+
*
|
|
4705
5397
|
* @returns {Promise<CommonMessage>}
|
|
4706
5398
|
* @throws {CommonMessageException}
|
|
4707
5399
|
* @throws {ClientException}
|
|
@@ -4725,9 +5417,11 @@ var BackendUserTag = class extends import_sdkgen_client71.TagAbstract {
|
|
|
4725
5417
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
4726
5418
|
throw new CommonMessageException(await response.json());
|
|
4727
5419
|
}
|
|
4728
|
-
throw new
|
|
5420
|
+
throw new import_sdkgen_client80.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
4729
5421
|
}
|
|
4730
5422
|
/**
|
|
5423
|
+
* Deletes an existing user
|
|
5424
|
+
*
|
|
4731
5425
|
* @returns {Promise<CommonMessage>}
|
|
4732
5426
|
* @throws {CommonMessageException}
|
|
4733
5427
|
* @throws {ClientException}
|
|
@@ -4750,9 +5444,11 @@ var BackendUserTag = class extends import_sdkgen_client71.TagAbstract {
|
|
|
4750
5444
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
4751
5445
|
throw new CommonMessageException(await response.json());
|
|
4752
5446
|
}
|
|
4753
|
-
throw new
|
|
5447
|
+
throw new import_sdkgen_client80.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
4754
5448
|
}
|
|
4755
5449
|
/**
|
|
5450
|
+
* Returns a specific user
|
|
5451
|
+
*
|
|
4756
5452
|
* @returns {Promise<BackendUser>}
|
|
4757
5453
|
* @throws {CommonMessageException}
|
|
4758
5454
|
* @throws {ClientException}
|
|
@@ -4775,9 +5471,11 @@ var BackendUserTag = class extends import_sdkgen_client71.TagAbstract {
|
|
|
4775
5471
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
4776
5472
|
throw new CommonMessageException(await response.json());
|
|
4777
5473
|
}
|
|
4778
|
-
throw new
|
|
5474
|
+
throw new import_sdkgen_client80.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
4779
5475
|
}
|
|
4780
5476
|
/**
|
|
5477
|
+
* Returns a paginated list of users
|
|
5478
|
+
*
|
|
4781
5479
|
* @returns {Promise<BackendUserCollection>}
|
|
4782
5480
|
* @throws {CommonMessageException}
|
|
4783
5481
|
* @throws {ClientException}
|
|
@@ -4802,9 +5500,41 @@ var BackendUserTag = class extends import_sdkgen_client71.TagAbstract {
|
|
|
4802
5500
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
4803
5501
|
throw new CommonMessageException(await response.json());
|
|
4804
5502
|
}
|
|
4805
|
-
throw new
|
|
5503
|
+
throw new import_sdkgen_client80.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
5504
|
+
}
|
|
5505
|
+
/**
|
|
5506
|
+
* Resend the activation mail to the provided user
|
|
5507
|
+
*
|
|
5508
|
+
* @returns {Promise<CommonMessage>}
|
|
5509
|
+
* @throws {CommonMessageException}
|
|
5510
|
+
* @throws {ClientException}
|
|
5511
|
+
*/
|
|
5512
|
+
async resend(userId, payload) {
|
|
5513
|
+
const url = this.parser.url("/backend/user/$user_id<[0-9]+|^~>/resend", {
|
|
5514
|
+
"user_id": userId
|
|
5515
|
+
});
|
|
5516
|
+
let request = {
|
|
5517
|
+
url,
|
|
5518
|
+
method: "POST",
|
|
5519
|
+
headers: {
|
|
5520
|
+
"Content-Type": "application/json"
|
|
5521
|
+
},
|
|
5522
|
+
params: this.parser.query({}, []),
|
|
5523
|
+
data: payload
|
|
5524
|
+
};
|
|
5525
|
+
const response = await this.httpClient.request(request);
|
|
5526
|
+
if (response.ok) {
|
|
5527
|
+
return await response.json();
|
|
5528
|
+
}
|
|
5529
|
+
const statusCode = response.status;
|
|
5530
|
+
if (statusCode >= 0 && statusCode <= 999) {
|
|
5531
|
+
throw new CommonMessageException(await response.json());
|
|
5532
|
+
}
|
|
5533
|
+
throw new import_sdkgen_client80.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
4806
5534
|
}
|
|
4807
5535
|
/**
|
|
5536
|
+
* Updates an existing user
|
|
5537
|
+
*
|
|
4808
5538
|
* @returns {Promise<CommonMessage>}
|
|
4809
5539
|
* @throws {CommonMessageException}
|
|
4810
5540
|
* @throws {ClientException}
|
|
@@ -4830,15 +5560,17 @@ var BackendUserTag = class extends import_sdkgen_client71.TagAbstract {
|
|
|
4830
5560
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
4831
5561
|
throw new CommonMessageException(await response.json());
|
|
4832
5562
|
}
|
|
4833
|
-
throw new
|
|
5563
|
+
throw new import_sdkgen_client80.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
4834
5564
|
}
|
|
4835
5565
|
};
|
|
4836
5566
|
|
|
4837
5567
|
// src/BackendWebhookTag.ts
|
|
4838
|
-
var
|
|
4839
|
-
var
|
|
4840
|
-
var BackendWebhookTag = class extends
|
|
5568
|
+
var import_sdkgen_client81 = require("sdkgen-client");
|
|
5569
|
+
var import_sdkgen_client82 = require("sdkgen-client");
|
|
5570
|
+
var BackendWebhookTag = class extends import_sdkgen_client81.TagAbstract {
|
|
4841
5571
|
/**
|
|
5572
|
+
* Creates a new webhook
|
|
5573
|
+
*
|
|
4842
5574
|
* @returns {Promise<CommonMessage>}
|
|
4843
5575
|
* @throws {CommonMessageException}
|
|
4844
5576
|
* @throws {ClientException}
|
|
@@ -4862,9 +5594,11 @@ var BackendWebhookTag = class extends import_sdkgen_client73.TagAbstract {
|
|
|
4862
5594
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
4863
5595
|
throw new CommonMessageException(await response.json());
|
|
4864
5596
|
}
|
|
4865
|
-
throw new
|
|
5597
|
+
throw new import_sdkgen_client82.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
4866
5598
|
}
|
|
4867
5599
|
/**
|
|
5600
|
+
* Deletes an existing webhook
|
|
5601
|
+
*
|
|
4868
5602
|
* @returns {Promise<CommonMessage>}
|
|
4869
5603
|
* @throws {CommonMessageException}
|
|
4870
5604
|
* @throws {ClientException}
|
|
@@ -4887,9 +5621,11 @@ var BackendWebhookTag = class extends import_sdkgen_client73.TagAbstract {
|
|
|
4887
5621
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
4888
5622
|
throw new CommonMessageException(await response.json());
|
|
4889
5623
|
}
|
|
4890
|
-
throw new
|
|
5624
|
+
throw new import_sdkgen_client82.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
4891
5625
|
}
|
|
4892
5626
|
/**
|
|
5627
|
+
* Returns a specific webhook
|
|
5628
|
+
*
|
|
4893
5629
|
* @returns {Promise<BackendWebhook>}
|
|
4894
5630
|
* @throws {CommonMessageException}
|
|
4895
5631
|
* @throws {ClientException}
|
|
@@ -4912,9 +5648,11 @@ var BackendWebhookTag = class extends import_sdkgen_client73.TagAbstract {
|
|
|
4912
5648
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
4913
5649
|
throw new CommonMessageException(await response.json());
|
|
4914
5650
|
}
|
|
4915
|
-
throw new
|
|
5651
|
+
throw new import_sdkgen_client82.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
4916
5652
|
}
|
|
4917
5653
|
/**
|
|
5654
|
+
* Returns a paginated list of webhooks
|
|
5655
|
+
*
|
|
4918
5656
|
* @returns {Promise<BackendWebhookCollection>}
|
|
4919
5657
|
* @throws {CommonMessageException}
|
|
4920
5658
|
* @throws {ClientException}
|
|
@@ -4939,9 +5677,11 @@ var BackendWebhookTag = class extends import_sdkgen_client73.TagAbstract {
|
|
|
4939
5677
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
4940
5678
|
throw new CommonMessageException(await response.json());
|
|
4941
5679
|
}
|
|
4942
|
-
throw new
|
|
5680
|
+
throw new import_sdkgen_client82.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
4943
5681
|
}
|
|
4944
5682
|
/**
|
|
5683
|
+
* Updates an existing webhook
|
|
5684
|
+
*
|
|
4945
5685
|
* @returns {Promise<CommonMessage>}
|
|
4946
5686
|
* @throws {CommonMessageException}
|
|
4947
5687
|
* @throws {ClientException}
|
|
@@ -4967,12 +5707,12 @@ var BackendWebhookTag = class extends import_sdkgen_client73.TagAbstract {
|
|
|
4967
5707
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
4968
5708
|
throw new CommonMessageException(await response.json());
|
|
4969
5709
|
}
|
|
4970
|
-
throw new
|
|
5710
|
+
throw new import_sdkgen_client82.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
4971
5711
|
}
|
|
4972
5712
|
};
|
|
4973
5713
|
|
|
4974
5714
|
// src/BackendTag.ts
|
|
4975
|
-
var BackendTag = class extends
|
|
5715
|
+
var BackendTag = class extends import_sdkgen_client83.TagAbstract {
|
|
4976
5716
|
account() {
|
|
4977
5717
|
return new BackendAccountTag(
|
|
4978
5718
|
this.httpClient,
|
|
@@ -5033,12 +5773,6 @@ var BackendTag = class extends import_sdkgen_client75.TagAbstract {
|
|
|
5033
5773
|
this.parser
|
|
5034
5774
|
);
|
|
5035
5775
|
}
|
|
5036
|
-
database() {
|
|
5037
|
-
return new BackendDatabaseTag(
|
|
5038
|
-
this.httpClient,
|
|
5039
|
-
this.parser
|
|
5040
|
-
);
|
|
5041
|
-
}
|
|
5042
5776
|
event() {
|
|
5043
5777
|
return new BackendEventTag(
|
|
5044
5778
|
this.httpClient,
|
|
@@ -5165,6 +5899,12 @@ var BackendTag = class extends import_sdkgen_client75.TagAbstract {
|
|
|
5165
5899
|
this.parser
|
|
5166
5900
|
);
|
|
5167
5901
|
}
|
|
5902
|
+
trigger() {
|
|
5903
|
+
return new BackendTriggerTag(
|
|
5904
|
+
this.httpClient,
|
|
5905
|
+
this.parser
|
|
5906
|
+
);
|
|
5907
|
+
}
|
|
5168
5908
|
user() {
|
|
5169
5909
|
return new BackendUserTag(
|
|
5170
5910
|
this.httpClient,
|
|
@@ -5180,17 +5920,19 @@ var BackendTag = class extends import_sdkgen_client75.TagAbstract {
|
|
|
5180
5920
|
};
|
|
5181
5921
|
|
|
5182
5922
|
// src/Client.ts
|
|
5183
|
-
var
|
|
5184
|
-
var
|
|
5923
|
+
var import_sdkgen_client120 = require("sdkgen-client");
|
|
5924
|
+
var import_sdkgen_client121 = require("sdkgen-client");
|
|
5185
5925
|
|
|
5186
5926
|
// src/ConsumerTag.ts
|
|
5187
|
-
var
|
|
5927
|
+
var import_sdkgen_client112 = require("sdkgen-client");
|
|
5188
5928
|
|
|
5189
5929
|
// src/ConsumerAccountTag.ts
|
|
5190
|
-
var
|
|
5191
|
-
var
|
|
5192
|
-
var ConsumerAccountTag = class extends
|
|
5930
|
+
var import_sdkgen_client84 = require("sdkgen-client");
|
|
5931
|
+
var import_sdkgen_client85 = require("sdkgen-client");
|
|
5932
|
+
var ConsumerAccountTag = class extends import_sdkgen_client84.TagAbstract {
|
|
5193
5933
|
/**
|
|
5934
|
+
* Activates an previously registered account through a token which was provided to the user via email
|
|
5935
|
+
*
|
|
5194
5936
|
* @returns {Promise<CommonMessage>}
|
|
5195
5937
|
* @throws {CommonMessageException}
|
|
5196
5938
|
* @throws {ClientException}
|
|
@@ -5214,9 +5956,11 @@ var ConsumerAccountTag = class extends import_sdkgen_client76.TagAbstract {
|
|
|
5214
5956
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
5215
5957
|
throw new CommonMessageException(await response.json());
|
|
5216
5958
|
}
|
|
5217
|
-
throw new
|
|
5959
|
+
throw new import_sdkgen_client85.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
5218
5960
|
}
|
|
5219
5961
|
/**
|
|
5962
|
+
* Authorizes the access of a specific app for the authenticated user
|
|
5963
|
+
*
|
|
5220
5964
|
* @returns {Promise<ConsumerAuthorizeResponse>}
|
|
5221
5965
|
* @throws {CommonMessageException}
|
|
5222
5966
|
* @throws {ClientException}
|
|
@@ -5240,9 +5984,11 @@ var ConsumerAccountTag = class extends import_sdkgen_client76.TagAbstract {
|
|
|
5240
5984
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
5241
5985
|
throw new CommonMessageException(await response.json());
|
|
5242
5986
|
}
|
|
5243
|
-
throw new
|
|
5987
|
+
throw new import_sdkgen_client85.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
5244
5988
|
}
|
|
5245
5989
|
/**
|
|
5990
|
+
* Change the password for the authenticated user
|
|
5991
|
+
*
|
|
5246
5992
|
* @returns {Promise<CommonMessage>}
|
|
5247
5993
|
* @throws {CommonMessageException}
|
|
5248
5994
|
* @throws {ClientException}
|
|
@@ -5266,9 +6012,11 @@ var ConsumerAccountTag = class extends import_sdkgen_client76.TagAbstract {
|
|
|
5266
6012
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
5267
6013
|
throw new CommonMessageException(await response.json());
|
|
5268
6014
|
}
|
|
5269
|
-
throw new
|
|
6015
|
+
throw new import_sdkgen_client85.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
5270
6016
|
}
|
|
5271
6017
|
/**
|
|
6018
|
+
* Change the password after the password reset flow was started
|
|
6019
|
+
*
|
|
5272
6020
|
* @returns {Promise<CommonMessage>}
|
|
5273
6021
|
* @throws {CommonMessageException}
|
|
5274
6022
|
* @throws {ClientException}
|
|
@@ -5292,9 +6040,11 @@ var ConsumerAccountTag = class extends import_sdkgen_client76.TagAbstract {
|
|
|
5292
6040
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
5293
6041
|
throw new CommonMessageException(await response.json());
|
|
5294
6042
|
}
|
|
5295
|
-
throw new
|
|
6043
|
+
throw new import_sdkgen_client85.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
5296
6044
|
}
|
|
5297
6045
|
/**
|
|
6046
|
+
* Returns a user data for the authenticated user
|
|
6047
|
+
*
|
|
5298
6048
|
* @returns {Promise<ConsumerUserAccount>}
|
|
5299
6049
|
* @throws {CommonMessageException}
|
|
5300
6050
|
* @throws {ClientException}
|
|
@@ -5315,20 +6065,25 @@ var ConsumerAccountTag = class extends import_sdkgen_client76.TagAbstract {
|
|
|
5315
6065
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
5316
6066
|
throw new CommonMessageException(await response.json());
|
|
5317
6067
|
}
|
|
5318
|
-
throw new
|
|
6068
|
+
throw new import_sdkgen_client85.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
5319
6069
|
}
|
|
5320
6070
|
/**
|
|
6071
|
+
* Returns information about a specific app to start the OAuth2 authorization code flow
|
|
6072
|
+
*
|
|
5321
6073
|
* @returns {Promise<ConsumerAuthorizeMeta>}
|
|
5322
6074
|
* @throws {CommonMessageException}
|
|
5323
6075
|
* @throws {ClientException}
|
|
5324
6076
|
*/
|
|
5325
|
-
async getApp() {
|
|
6077
|
+
async getApp(clientId, scope) {
|
|
5326
6078
|
const url = this.parser.url("/consumer/authorize", {});
|
|
5327
6079
|
let request = {
|
|
5328
6080
|
url,
|
|
5329
6081
|
method: "GET",
|
|
5330
6082
|
headers: {},
|
|
5331
|
-
params: this.parser.query({
|
|
6083
|
+
params: this.parser.query({
|
|
6084
|
+
"client_id": clientId,
|
|
6085
|
+
"scope": scope
|
|
6086
|
+
}, [])
|
|
5332
6087
|
};
|
|
5333
6088
|
const response = await this.httpClient.request(request);
|
|
5334
6089
|
if (response.ok) {
|
|
@@ -5338,9 +6093,11 @@ var ConsumerAccountTag = class extends import_sdkgen_client76.TagAbstract {
|
|
|
5338
6093
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
5339
6094
|
throw new CommonMessageException(await response.json());
|
|
5340
6095
|
}
|
|
5341
|
-
throw new
|
|
6096
|
+
throw new import_sdkgen_client85.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
5342
6097
|
}
|
|
5343
6098
|
/**
|
|
6099
|
+
* User login by providing a username and password
|
|
6100
|
+
*
|
|
5344
6101
|
* @returns {Promise<ConsumerUserJWT>}
|
|
5345
6102
|
* @throws {CommonMessageException}
|
|
5346
6103
|
* @throws {ClientException}
|
|
@@ -5364,9 +6121,11 @@ var ConsumerAccountTag = class extends import_sdkgen_client76.TagAbstract {
|
|
|
5364
6121
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
5365
6122
|
throw new CommonMessageException(await response.json());
|
|
5366
6123
|
}
|
|
5367
|
-
throw new
|
|
6124
|
+
throw new import_sdkgen_client85.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
5368
6125
|
}
|
|
5369
6126
|
/**
|
|
6127
|
+
* Refresh a previously obtained access token
|
|
6128
|
+
*
|
|
5370
6129
|
* @returns {Promise<ConsumerUserJWT>}
|
|
5371
6130
|
* @throws {CommonMessageException}
|
|
5372
6131
|
* @throws {ClientException}
|
|
@@ -5390,9 +6149,11 @@ var ConsumerAccountTag = class extends import_sdkgen_client76.TagAbstract {
|
|
|
5390
6149
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
5391
6150
|
throw new CommonMessageException(await response.json());
|
|
5392
6151
|
}
|
|
5393
|
-
throw new
|
|
6152
|
+
throw new import_sdkgen_client85.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
5394
6153
|
}
|
|
5395
6154
|
/**
|
|
6155
|
+
* Register a new user account
|
|
6156
|
+
*
|
|
5396
6157
|
* @returns {Promise<CommonMessage>}
|
|
5397
6158
|
* @throws {CommonMessageException}
|
|
5398
6159
|
* @throws {ClientException}
|
|
@@ -5416,9 +6177,11 @@ var ConsumerAccountTag = class extends import_sdkgen_client76.TagAbstract {
|
|
|
5416
6177
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
5417
6178
|
throw new CommonMessageException(await response.json());
|
|
5418
6179
|
}
|
|
5419
|
-
throw new
|
|
6180
|
+
throw new import_sdkgen_client85.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
5420
6181
|
}
|
|
5421
6182
|
/**
|
|
6183
|
+
* Start the password reset flow
|
|
6184
|
+
*
|
|
5422
6185
|
* @returns {Promise<CommonMessage>}
|
|
5423
6186
|
* @throws {CommonMessageException}
|
|
5424
6187
|
* @throws {ClientException}
|
|
@@ -5442,9 +6205,11 @@ var ConsumerAccountTag = class extends import_sdkgen_client76.TagAbstract {
|
|
|
5442
6205
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
5443
6206
|
throw new CommonMessageException(await response.json());
|
|
5444
6207
|
}
|
|
5445
|
-
throw new
|
|
6208
|
+
throw new import_sdkgen_client85.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
5446
6209
|
}
|
|
5447
6210
|
/**
|
|
6211
|
+
* Updates user data for the authenticated user
|
|
6212
|
+
*
|
|
5448
6213
|
* @returns {Promise<CommonMessage>}
|
|
5449
6214
|
* @throws {CommonMessageException}
|
|
5450
6215
|
* @throws {ClientException}
|
|
@@ -5468,15 +6233,17 @@ var ConsumerAccountTag = class extends import_sdkgen_client76.TagAbstract {
|
|
|
5468
6233
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
5469
6234
|
throw new CommonMessageException(await response.json());
|
|
5470
6235
|
}
|
|
5471
|
-
throw new
|
|
6236
|
+
throw new import_sdkgen_client85.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
5472
6237
|
}
|
|
5473
6238
|
};
|
|
5474
6239
|
|
|
5475
6240
|
// src/ConsumerAppTag.ts
|
|
5476
|
-
var
|
|
5477
|
-
var
|
|
5478
|
-
var ConsumerAppTag = class extends
|
|
6241
|
+
var import_sdkgen_client86 = require("sdkgen-client");
|
|
6242
|
+
var import_sdkgen_client87 = require("sdkgen-client");
|
|
6243
|
+
var ConsumerAppTag = class extends import_sdkgen_client86.TagAbstract {
|
|
5479
6244
|
/**
|
|
6245
|
+
* Creates a new app for the authenticated user
|
|
6246
|
+
*
|
|
5480
6247
|
* @returns {Promise<CommonMessage>}
|
|
5481
6248
|
* @throws {CommonMessageException}
|
|
5482
6249
|
* @throws {ClientException}
|
|
@@ -5500,9 +6267,11 @@ var ConsumerAppTag = class extends import_sdkgen_client78.TagAbstract {
|
|
|
5500
6267
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
5501
6268
|
throw new CommonMessageException(await response.json());
|
|
5502
6269
|
}
|
|
5503
|
-
throw new
|
|
6270
|
+
throw new import_sdkgen_client87.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
5504
6271
|
}
|
|
5505
6272
|
/**
|
|
6273
|
+
* Deletes an existing app for the authenticated user
|
|
6274
|
+
*
|
|
5506
6275
|
* @returns {Promise<CommonMessage>}
|
|
5507
6276
|
* @throws {CommonMessageException}
|
|
5508
6277
|
* @throws {ClientException}
|
|
@@ -5525,9 +6294,11 @@ var ConsumerAppTag = class extends import_sdkgen_client78.TagAbstract {
|
|
|
5525
6294
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
5526
6295
|
throw new CommonMessageException(await response.json());
|
|
5527
6296
|
}
|
|
5528
|
-
throw new
|
|
6297
|
+
throw new import_sdkgen_client87.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
5529
6298
|
}
|
|
5530
6299
|
/**
|
|
6300
|
+
* Returns a specific app for the authenticated user
|
|
6301
|
+
*
|
|
5531
6302
|
* @returns {Promise<ConsumerApp>}
|
|
5532
6303
|
* @throws {CommonMessageException}
|
|
5533
6304
|
* @throws {ClientException}
|
|
@@ -5550,9 +6321,11 @@ var ConsumerAppTag = class extends import_sdkgen_client78.TagAbstract {
|
|
|
5550
6321
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
5551
6322
|
throw new CommonMessageException(await response.json());
|
|
5552
6323
|
}
|
|
5553
|
-
throw new
|
|
6324
|
+
throw new import_sdkgen_client87.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
5554
6325
|
}
|
|
5555
6326
|
/**
|
|
6327
|
+
* Returns a paginated list of apps which are assigned to the authenticated user
|
|
6328
|
+
*
|
|
5556
6329
|
* @returns {Promise<ConsumerAppCollection>}
|
|
5557
6330
|
* @throws {CommonMessageException}
|
|
5558
6331
|
* @throws {ClientException}
|
|
@@ -5577,9 +6350,11 @@ var ConsumerAppTag = class extends import_sdkgen_client78.TagAbstract {
|
|
|
5577
6350
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
5578
6351
|
throw new CommonMessageException(await response.json());
|
|
5579
6352
|
}
|
|
5580
|
-
throw new
|
|
6353
|
+
throw new import_sdkgen_client87.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
5581
6354
|
}
|
|
5582
6355
|
/**
|
|
6356
|
+
* Updates an existing app for the authenticated user
|
|
6357
|
+
*
|
|
5583
6358
|
* @returns {Promise<CommonMessage>}
|
|
5584
6359
|
* @throws {CommonMessageException}
|
|
5585
6360
|
* @throws {ClientException}
|
|
@@ -5605,15 +6380,17 @@ var ConsumerAppTag = class extends import_sdkgen_client78.TagAbstract {
|
|
|
5605
6380
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
5606
6381
|
throw new CommonMessageException(await response.json());
|
|
5607
6382
|
}
|
|
5608
|
-
throw new
|
|
6383
|
+
throw new import_sdkgen_client87.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
5609
6384
|
}
|
|
5610
6385
|
};
|
|
5611
6386
|
|
|
5612
6387
|
// src/ConsumerEventTag.ts
|
|
5613
|
-
var
|
|
5614
|
-
var
|
|
5615
|
-
var ConsumerEventTag = class extends
|
|
6388
|
+
var import_sdkgen_client88 = require("sdkgen-client");
|
|
6389
|
+
var import_sdkgen_client89 = require("sdkgen-client");
|
|
6390
|
+
var ConsumerEventTag = class extends import_sdkgen_client88.TagAbstract {
|
|
5616
6391
|
/**
|
|
6392
|
+
* Returns a specific event for the authenticated user
|
|
6393
|
+
*
|
|
5617
6394
|
* @returns {Promise<ConsumerEvent>}
|
|
5618
6395
|
* @throws {CommonMessageException}
|
|
5619
6396
|
* @throws {ClientException}
|
|
@@ -5636,9 +6413,11 @@ var ConsumerEventTag = class extends import_sdkgen_client80.TagAbstract {
|
|
|
5636
6413
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
5637
6414
|
throw new CommonMessageException(await response.json());
|
|
5638
6415
|
}
|
|
5639
|
-
throw new
|
|
6416
|
+
throw new import_sdkgen_client89.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
5640
6417
|
}
|
|
5641
6418
|
/**
|
|
6419
|
+
* Returns a paginated list of apps which are assigned to the authenticated user
|
|
6420
|
+
*
|
|
5642
6421
|
* @returns {Promise<ConsumerEventCollection>}
|
|
5643
6422
|
* @throws {CommonMessageException}
|
|
5644
6423
|
* @throws {ClientException}
|
|
@@ -5663,15 +6442,17 @@ var ConsumerEventTag = class extends import_sdkgen_client80.TagAbstract {
|
|
|
5663
6442
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
5664
6443
|
throw new CommonMessageException(await response.json());
|
|
5665
6444
|
}
|
|
5666
|
-
throw new
|
|
6445
|
+
throw new import_sdkgen_client89.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
5667
6446
|
}
|
|
5668
6447
|
};
|
|
5669
6448
|
|
|
5670
6449
|
// src/ConsumerFormTag.ts
|
|
5671
|
-
var
|
|
5672
|
-
var
|
|
5673
|
-
var ConsumerFormTag = class extends
|
|
6450
|
+
var import_sdkgen_client90 = require("sdkgen-client");
|
|
6451
|
+
var import_sdkgen_client91 = require("sdkgen-client");
|
|
6452
|
+
var ConsumerFormTag = class extends import_sdkgen_client90.TagAbstract {
|
|
5674
6453
|
/**
|
|
6454
|
+
* Returns a specific form for the authenticated user
|
|
6455
|
+
*
|
|
5675
6456
|
* @returns {Promise<ConsumerForm>}
|
|
5676
6457
|
* @throws {CommonMessageException}
|
|
5677
6458
|
* @throws {ClientException}
|
|
@@ -5694,9 +6475,11 @@ var ConsumerFormTag = class extends import_sdkgen_client82.TagAbstract {
|
|
|
5694
6475
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
5695
6476
|
throw new CommonMessageException(await response.json());
|
|
5696
6477
|
}
|
|
5697
|
-
throw new
|
|
6478
|
+
throw new import_sdkgen_client91.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
5698
6479
|
}
|
|
5699
6480
|
/**
|
|
6481
|
+
* Returns a paginated list of forms which are relevant to the authenticated user
|
|
6482
|
+
*
|
|
5700
6483
|
* @returns {Promise<ConsumerFormCollection>}
|
|
5701
6484
|
* @throws {CommonMessageException}
|
|
5702
6485
|
* @throws {ClientException}
|
|
@@ -5721,15 +6504,17 @@ var ConsumerFormTag = class extends import_sdkgen_client82.TagAbstract {
|
|
|
5721
6504
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
5722
6505
|
throw new CommonMessageException(await response.json());
|
|
5723
6506
|
}
|
|
5724
|
-
throw new
|
|
6507
|
+
throw new import_sdkgen_client91.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
5725
6508
|
}
|
|
5726
6509
|
};
|
|
5727
6510
|
|
|
5728
6511
|
// src/ConsumerGrantTag.ts
|
|
5729
|
-
var
|
|
5730
|
-
var
|
|
5731
|
-
var ConsumerGrantTag = class extends
|
|
6512
|
+
var import_sdkgen_client92 = require("sdkgen-client");
|
|
6513
|
+
var import_sdkgen_client93 = require("sdkgen-client");
|
|
6514
|
+
var ConsumerGrantTag = class extends import_sdkgen_client92.TagAbstract {
|
|
5732
6515
|
/**
|
|
6516
|
+
* Deletes an existing grant for an app which was created by the authenticated user
|
|
6517
|
+
*
|
|
5733
6518
|
* @returns {Promise<CommonMessage>}
|
|
5734
6519
|
* @throws {CommonMessageException}
|
|
5735
6520
|
* @throws {ClientException}
|
|
@@ -5752,9 +6537,11 @@ var ConsumerGrantTag = class extends import_sdkgen_client84.TagAbstract {
|
|
|
5752
6537
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
5753
6538
|
throw new CommonMessageException(await response.json());
|
|
5754
6539
|
}
|
|
5755
|
-
throw new
|
|
6540
|
+
throw new import_sdkgen_client93.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
5756
6541
|
}
|
|
5757
6542
|
/**
|
|
6543
|
+
* Returns a paginated list of grants which are assigned to the authenticated user
|
|
6544
|
+
*
|
|
5758
6545
|
* @returns {Promise<ConsumerGrantCollection>}
|
|
5759
6546
|
* @throws {CommonMessageException}
|
|
5760
6547
|
* @throws {ClientException}
|
|
@@ -5779,15 +6566,17 @@ var ConsumerGrantTag = class extends import_sdkgen_client84.TagAbstract {
|
|
|
5779
6566
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
5780
6567
|
throw new CommonMessageException(await response.json());
|
|
5781
6568
|
}
|
|
5782
|
-
throw new
|
|
6569
|
+
throw new import_sdkgen_client93.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
5783
6570
|
}
|
|
5784
6571
|
};
|
|
5785
6572
|
|
|
5786
6573
|
// src/ConsumerIdentityTag.ts
|
|
5787
|
-
var
|
|
5788
|
-
var
|
|
5789
|
-
var ConsumerIdentityTag = class extends
|
|
6574
|
+
var import_sdkgen_client94 = require("sdkgen-client");
|
|
6575
|
+
var import_sdkgen_client95 = require("sdkgen-client");
|
|
6576
|
+
var ConsumerIdentityTag = class extends import_sdkgen_client94.TagAbstract {
|
|
5790
6577
|
/**
|
|
6578
|
+
* Identity callback endpoint to exchange an access token
|
|
6579
|
+
*
|
|
5791
6580
|
* @returns {Promise<Passthru>}
|
|
5792
6581
|
* @throws {CommonMessageException}
|
|
5793
6582
|
* @throws {ClientException}
|
|
@@ -5810,9 +6599,11 @@ var ConsumerIdentityTag = class extends import_sdkgen_client86.TagAbstract {
|
|
|
5810
6599
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
5811
6600
|
throw new CommonMessageException(await response.json());
|
|
5812
6601
|
}
|
|
5813
|
-
throw new
|
|
6602
|
+
throw new import_sdkgen_client95.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
5814
6603
|
}
|
|
5815
6604
|
/**
|
|
6605
|
+
* Returns a paginated list of identities which are relevant to the authenticated user
|
|
6606
|
+
*
|
|
5816
6607
|
* @returns {Promise<ConsumerIdentityCollection>}
|
|
5817
6608
|
* @throws {CommonMessageException}
|
|
5818
6609
|
* @throws {ClientException}
|
|
@@ -5836,9 +6627,11 @@ var ConsumerIdentityTag = class extends import_sdkgen_client86.TagAbstract {
|
|
|
5836
6627
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
5837
6628
|
throw new CommonMessageException(await response.json());
|
|
5838
6629
|
}
|
|
5839
|
-
throw new
|
|
6630
|
+
throw new import_sdkgen_client95.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
5840
6631
|
}
|
|
5841
6632
|
/**
|
|
6633
|
+
* Redirect the user to the configured identity provider
|
|
6634
|
+
*
|
|
5842
6635
|
* @returns {Promise<Passthru>}
|
|
5843
6636
|
* @throws {CommonMessageException}
|
|
5844
6637
|
* @throws {ClientException}
|
|
@@ -5861,15 +6654,17 @@ var ConsumerIdentityTag = class extends import_sdkgen_client86.TagAbstract {
|
|
|
5861
6654
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
5862
6655
|
throw new CommonMessageException(await response.json());
|
|
5863
6656
|
}
|
|
5864
|
-
throw new
|
|
6657
|
+
throw new import_sdkgen_client95.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
5865
6658
|
}
|
|
5866
6659
|
};
|
|
5867
6660
|
|
|
5868
6661
|
// src/ConsumerLogTag.ts
|
|
5869
|
-
var
|
|
5870
|
-
var
|
|
5871
|
-
var ConsumerLogTag = class extends
|
|
6662
|
+
var import_sdkgen_client96 = require("sdkgen-client");
|
|
6663
|
+
var import_sdkgen_client97 = require("sdkgen-client");
|
|
6664
|
+
var ConsumerLogTag = class extends import_sdkgen_client96.TagAbstract {
|
|
5872
6665
|
/**
|
|
6666
|
+
* Returns a specific log for the authenticated user
|
|
6667
|
+
*
|
|
5873
6668
|
* @returns {Promise<ConsumerLog>}
|
|
5874
6669
|
* @throws {CommonMessageException}
|
|
5875
6670
|
* @throws {ClientException}
|
|
@@ -5892,9 +6687,11 @@ var ConsumerLogTag = class extends import_sdkgen_client88.TagAbstract {
|
|
|
5892
6687
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
5893
6688
|
throw new CommonMessageException(await response.json());
|
|
5894
6689
|
}
|
|
5895
|
-
throw new
|
|
6690
|
+
throw new import_sdkgen_client97.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
5896
6691
|
}
|
|
5897
6692
|
/**
|
|
6693
|
+
* Returns a paginated list of logs which are assigned to the authenticated user
|
|
6694
|
+
*
|
|
5898
6695
|
* @returns {Promise<ConsumerLogCollection>}
|
|
5899
6696
|
* @throws {CommonMessageException}
|
|
5900
6697
|
* @throws {ClientException}
|
|
@@ -5919,15 +6716,17 @@ var ConsumerLogTag = class extends import_sdkgen_client88.TagAbstract {
|
|
|
5919
6716
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
5920
6717
|
throw new CommonMessageException(await response.json());
|
|
5921
6718
|
}
|
|
5922
|
-
throw new
|
|
6719
|
+
throw new import_sdkgen_client97.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
5923
6720
|
}
|
|
5924
6721
|
};
|
|
5925
6722
|
|
|
5926
6723
|
// src/ConsumerPageTag.ts
|
|
5927
|
-
var
|
|
5928
|
-
var
|
|
5929
|
-
var ConsumerPageTag = class extends
|
|
6724
|
+
var import_sdkgen_client98 = require("sdkgen-client");
|
|
6725
|
+
var import_sdkgen_client99 = require("sdkgen-client");
|
|
6726
|
+
var ConsumerPageTag = class extends import_sdkgen_client98.TagAbstract {
|
|
5930
6727
|
/**
|
|
6728
|
+
* Returns a specific page for the authenticated user
|
|
6729
|
+
*
|
|
5931
6730
|
* @returns {Promise<ConsumerPage>}
|
|
5932
6731
|
* @throws {CommonMessageException}
|
|
5933
6732
|
* @throws {ClientException}
|
|
@@ -5950,9 +6749,11 @@ var ConsumerPageTag = class extends import_sdkgen_client90.TagAbstract {
|
|
|
5950
6749
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
5951
6750
|
throw new CommonMessageException(await response.json());
|
|
5952
6751
|
}
|
|
5953
|
-
throw new
|
|
6752
|
+
throw new import_sdkgen_client99.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
5954
6753
|
}
|
|
5955
6754
|
/**
|
|
6755
|
+
* Returns a paginated list of pages which are relevant to the authenticated user
|
|
6756
|
+
*
|
|
5956
6757
|
* @returns {Promise<ConsumerPageCollection>}
|
|
5957
6758
|
* @throws {CommonMessageException}
|
|
5958
6759
|
* @throws {ClientException}
|
|
@@ -5977,15 +6778,17 @@ var ConsumerPageTag = class extends import_sdkgen_client90.TagAbstract {
|
|
|
5977
6778
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
5978
6779
|
throw new CommonMessageException(await response.json());
|
|
5979
6780
|
}
|
|
5980
|
-
throw new
|
|
6781
|
+
throw new import_sdkgen_client99.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
5981
6782
|
}
|
|
5982
6783
|
};
|
|
5983
6784
|
|
|
5984
6785
|
// src/ConsumerPaymentTag.ts
|
|
5985
|
-
var
|
|
5986
|
-
var
|
|
5987
|
-
var ConsumerPaymentTag = class extends
|
|
6786
|
+
var import_sdkgen_client100 = require("sdkgen-client");
|
|
6787
|
+
var import_sdkgen_client101 = require("sdkgen-client");
|
|
6788
|
+
var ConsumerPaymentTag = class extends import_sdkgen_client100.TagAbstract {
|
|
5988
6789
|
/**
|
|
6790
|
+
* Start the checkout process for a specific plan
|
|
6791
|
+
*
|
|
5989
6792
|
* @returns {Promise<ConsumerPaymentCheckoutResponse>}
|
|
5990
6793
|
* @throws {CommonMessageException}
|
|
5991
6794
|
* @throws {ClientException}
|
|
@@ -6011,9 +6814,11 @@ var ConsumerPaymentTag = class extends import_sdkgen_client92.TagAbstract {
|
|
|
6011
6814
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
6012
6815
|
throw new CommonMessageException(await response.json());
|
|
6013
6816
|
}
|
|
6014
|
-
throw new
|
|
6817
|
+
throw new import_sdkgen_client101.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
6015
6818
|
}
|
|
6016
6819
|
/**
|
|
6820
|
+
* Generates a payment portal link for the authenticated user
|
|
6821
|
+
*
|
|
6017
6822
|
* @returns {Promise<ConsumerPaymentPortalResponse>}
|
|
6018
6823
|
* @throws {CommonMessageException}
|
|
6019
6824
|
* @throws {ClientException}
|
|
@@ -6039,15 +6844,17 @@ var ConsumerPaymentTag = class extends import_sdkgen_client92.TagAbstract {
|
|
|
6039
6844
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
6040
6845
|
throw new CommonMessageException(await response.json());
|
|
6041
6846
|
}
|
|
6042
|
-
throw new
|
|
6847
|
+
throw new import_sdkgen_client101.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
6043
6848
|
}
|
|
6044
6849
|
};
|
|
6045
6850
|
|
|
6046
6851
|
// src/ConsumerPlanTag.ts
|
|
6047
|
-
var
|
|
6048
|
-
var
|
|
6049
|
-
var ConsumerPlanTag = class extends
|
|
6852
|
+
var import_sdkgen_client102 = require("sdkgen-client");
|
|
6853
|
+
var import_sdkgen_client103 = require("sdkgen-client");
|
|
6854
|
+
var ConsumerPlanTag = class extends import_sdkgen_client102.TagAbstract {
|
|
6050
6855
|
/**
|
|
6856
|
+
* Returns a specific plan for the authenticated user
|
|
6857
|
+
*
|
|
6051
6858
|
* @returns {Promise<ConsumerPlan>}
|
|
6052
6859
|
* @throws {CommonMessageException}
|
|
6053
6860
|
* @throws {ClientException}
|
|
@@ -6070,9 +6877,11 @@ var ConsumerPlanTag = class extends import_sdkgen_client94.TagAbstract {
|
|
|
6070
6877
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
6071
6878
|
throw new CommonMessageException(await response.json());
|
|
6072
6879
|
}
|
|
6073
|
-
throw new
|
|
6880
|
+
throw new import_sdkgen_client103.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
6074
6881
|
}
|
|
6075
6882
|
/**
|
|
6883
|
+
* Returns a paginated list of plans which are relevant to the authenticated user
|
|
6884
|
+
*
|
|
6076
6885
|
* @returns {Promise<ConsumerPlanCollection>}
|
|
6077
6886
|
* @throws {CommonMessageException}
|
|
6078
6887
|
* @throws {ClientException}
|
|
@@ -6097,15 +6906,17 @@ var ConsumerPlanTag = class extends import_sdkgen_client94.TagAbstract {
|
|
|
6097
6906
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
6098
6907
|
throw new CommonMessageException(await response.json());
|
|
6099
6908
|
}
|
|
6100
|
-
throw new
|
|
6909
|
+
throw new import_sdkgen_client103.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
6101
6910
|
}
|
|
6102
6911
|
};
|
|
6103
6912
|
|
|
6104
6913
|
// src/ConsumerScopeTag.ts
|
|
6105
|
-
var
|
|
6106
|
-
var
|
|
6107
|
-
var ConsumerScopeTag = class extends
|
|
6914
|
+
var import_sdkgen_client104 = require("sdkgen-client");
|
|
6915
|
+
var import_sdkgen_client105 = require("sdkgen-client");
|
|
6916
|
+
var ConsumerScopeTag = class extends import_sdkgen_client104.TagAbstract {
|
|
6108
6917
|
/**
|
|
6918
|
+
* Returns a paginated list of scopes which are assigned to the authenticated user
|
|
6919
|
+
*
|
|
6109
6920
|
* @returns {Promise<ConsumerScopeCollection>}
|
|
6110
6921
|
* @throws {CommonMessageException}
|
|
6111
6922
|
* @throws {ClientException}
|
|
@@ -6130,9 +6941,11 @@ var ConsumerScopeTag = class extends import_sdkgen_client96.TagAbstract {
|
|
|
6130
6941
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
6131
6942
|
throw new CommonMessageException(await response.json());
|
|
6132
6943
|
}
|
|
6133
|
-
throw new
|
|
6944
|
+
throw new import_sdkgen_client105.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
6134
6945
|
}
|
|
6135
6946
|
/**
|
|
6947
|
+
* Returns all scopes by category
|
|
6948
|
+
*
|
|
6136
6949
|
* @returns {Promise<ConsumerScopeCategories>}
|
|
6137
6950
|
* @throws {CommonMessageException}
|
|
6138
6951
|
* @throws {ClientException}
|
|
@@ -6153,15 +6966,17 @@ var ConsumerScopeTag = class extends import_sdkgen_client96.TagAbstract {
|
|
|
6153
6966
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
6154
6967
|
throw new CommonMessageException(await response.json());
|
|
6155
6968
|
}
|
|
6156
|
-
throw new
|
|
6969
|
+
throw new import_sdkgen_client105.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
6157
6970
|
}
|
|
6158
6971
|
};
|
|
6159
6972
|
|
|
6160
6973
|
// src/ConsumerTokenTag.ts
|
|
6161
|
-
var
|
|
6162
|
-
var
|
|
6163
|
-
var ConsumerTokenTag = class extends
|
|
6974
|
+
var import_sdkgen_client106 = require("sdkgen-client");
|
|
6975
|
+
var import_sdkgen_client107 = require("sdkgen-client");
|
|
6976
|
+
var ConsumerTokenTag = class extends import_sdkgen_client106.TagAbstract {
|
|
6164
6977
|
/**
|
|
6978
|
+
* Creates a new token for the authenticated user
|
|
6979
|
+
*
|
|
6165
6980
|
* @returns {Promise<ConsumerTokenAccessToken>}
|
|
6166
6981
|
* @throws {CommonMessageException}
|
|
6167
6982
|
* @throws {ClientException}
|
|
@@ -6185,9 +7000,11 @@ var ConsumerTokenTag = class extends import_sdkgen_client98.TagAbstract {
|
|
|
6185
7000
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
6186
7001
|
throw new CommonMessageException(await response.json());
|
|
6187
7002
|
}
|
|
6188
|
-
throw new
|
|
7003
|
+
throw new import_sdkgen_client107.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
6189
7004
|
}
|
|
6190
7005
|
/**
|
|
7006
|
+
* Deletes an existing token for the authenticated user
|
|
7007
|
+
*
|
|
6191
7008
|
* @returns {Promise<CommonMessage>}
|
|
6192
7009
|
* @throws {CommonMessageException}
|
|
6193
7010
|
* @throws {ClientException}
|
|
@@ -6210,9 +7027,11 @@ var ConsumerTokenTag = class extends import_sdkgen_client98.TagAbstract {
|
|
|
6210
7027
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
6211
7028
|
throw new CommonMessageException(await response.json());
|
|
6212
7029
|
}
|
|
6213
|
-
throw new
|
|
7030
|
+
throw new import_sdkgen_client107.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
6214
7031
|
}
|
|
6215
7032
|
/**
|
|
7033
|
+
* Returns a specific token for the authenticated user
|
|
7034
|
+
*
|
|
6216
7035
|
* @returns {Promise<ConsumerToken>}
|
|
6217
7036
|
* @throws {CommonMessageException}
|
|
6218
7037
|
* @throws {ClientException}
|
|
@@ -6235,9 +7054,11 @@ var ConsumerTokenTag = class extends import_sdkgen_client98.TagAbstract {
|
|
|
6235
7054
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
6236
7055
|
throw new CommonMessageException(await response.json());
|
|
6237
7056
|
}
|
|
6238
|
-
throw new
|
|
7057
|
+
throw new import_sdkgen_client107.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
6239
7058
|
}
|
|
6240
7059
|
/**
|
|
7060
|
+
* Returns a paginated list of tokens which are assigned to the authenticated user
|
|
7061
|
+
*
|
|
6241
7062
|
* @returns {Promise<ConsumerTokenCollection>}
|
|
6242
7063
|
* @throws {CommonMessageException}
|
|
6243
7064
|
* @throws {ClientException}
|
|
@@ -6262,9 +7083,11 @@ var ConsumerTokenTag = class extends import_sdkgen_client98.TagAbstract {
|
|
|
6262
7083
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
6263
7084
|
throw new CommonMessageException(await response.json());
|
|
6264
7085
|
}
|
|
6265
|
-
throw new
|
|
7086
|
+
throw new import_sdkgen_client107.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
6266
7087
|
}
|
|
6267
7088
|
/**
|
|
7089
|
+
* Updates an existing token for the authenticated user
|
|
7090
|
+
*
|
|
6268
7091
|
* @returns {Promise<ConsumerTokenAccessToken>}
|
|
6269
7092
|
* @throws {CommonMessageException}
|
|
6270
7093
|
* @throws {ClientException}
|
|
@@ -6290,15 +7113,17 @@ var ConsumerTokenTag = class extends import_sdkgen_client98.TagAbstract {
|
|
|
6290
7113
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
6291
7114
|
throw new CommonMessageException(await response.json());
|
|
6292
7115
|
}
|
|
6293
|
-
throw new
|
|
7116
|
+
throw new import_sdkgen_client107.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
6294
7117
|
}
|
|
6295
7118
|
};
|
|
6296
7119
|
|
|
6297
7120
|
// src/ConsumerTransactionTag.ts
|
|
6298
|
-
var
|
|
6299
|
-
var
|
|
6300
|
-
var ConsumerTransactionTag = class extends
|
|
7121
|
+
var import_sdkgen_client108 = require("sdkgen-client");
|
|
7122
|
+
var import_sdkgen_client109 = require("sdkgen-client");
|
|
7123
|
+
var ConsumerTransactionTag = class extends import_sdkgen_client108.TagAbstract {
|
|
6301
7124
|
/**
|
|
7125
|
+
* Returns a specific transaction for the authenticated user
|
|
7126
|
+
*
|
|
6302
7127
|
* @returns {Promise<ConsumerTransaction>}
|
|
6303
7128
|
* @throws {CommonMessageException}
|
|
6304
7129
|
* @throws {ClientException}
|
|
@@ -6321,9 +7146,11 @@ var ConsumerTransactionTag = class extends import_sdkgen_client100.TagAbstract {
|
|
|
6321
7146
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
6322
7147
|
throw new CommonMessageException(await response.json());
|
|
6323
7148
|
}
|
|
6324
|
-
throw new
|
|
7149
|
+
throw new import_sdkgen_client109.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
6325
7150
|
}
|
|
6326
7151
|
/**
|
|
7152
|
+
* Returns a paginated list of transactions which are assigned to the authenticated user
|
|
7153
|
+
*
|
|
6327
7154
|
* @returns {Promise<ConsumerTransactionCollection>}
|
|
6328
7155
|
* @throws {CommonMessageException}
|
|
6329
7156
|
* @throws {ClientException}
|
|
@@ -6348,15 +7175,17 @@ var ConsumerTransactionTag = class extends import_sdkgen_client100.TagAbstract {
|
|
|
6348
7175
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
6349
7176
|
throw new CommonMessageException(await response.json());
|
|
6350
7177
|
}
|
|
6351
|
-
throw new
|
|
7178
|
+
throw new import_sdkgen_client109.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
6352
7179
|
}
|
|
6353
7180
|
};
|
|
6354
7181
|
|
|
6355
7182
|
// src/ConsumerWebhookTag.ts
|
|
6356
|
-
var
|
|
6357
|
-
var
|
|
6358
|
-
var ConsumerWebhookTag = class extends
|
|
7183
|
+
var import_sdkgen_client110 = require("sdkgen-client");
|
|
7184
|
+
var import_sdkgen_client111 = require("sdkgen-client");
|
|
7185
|
+
var ConsumerWebhookTag = class extends import_sdkgen_client110.TagAbstract {
|
|
6359
7186
|
/**
|
|
7187
|
+
* Creates a new webhook for the authenticated user
|
|
7188
|
+
*
|
|
6360
7189
|
* @returns {Promise<CommonMessage>}
|
|
6361
7190
|
* @throws {CommonMessageException}
|
|
6362
7191
|
* @throws {ClientException}
|
|
@@ -6380,9 +7209,11 @@ var ConsumerWebhookTag = class extends import_sdkgen_client102.TagAbstract {
|
|
|
6380
7209
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
6381
7210
|
throw new CommonMessageException(await response.json());
|
|
6382
7211
|
}
|
|
6383
|
-
throw new
|
|
7212
|
+
throw new import_sdkgen_client111.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
6384
7213
|
}
|
|
6385
7214
|
/**
|
|
7215
|
+
* Deletes an existing webhook for the authenticated user
|
|
7216
|
+
*
|
|
6386
7217
|
* @returns {Promise<CommonMessage>}
|
|
6387
7218
|
* @throws {CommonMessageException}
|
|
6388
7219
|
* @throws {ClientException}
|
|
@@ -6405,9 +7236,11 @@ var ConsumerWebhookTag = class extends import_sdkgen_client102.TagAbstract {
|
|
|
6405
7236
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
6406
7237
|
throw new CommonMessageException(await response.json());
|
|
6407
7238
|
}
|
|
6408
|
-
throw new
|
|
7239
|
+
throw new import_sdkgen_client111.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
6409
7240
|
}
|
|
6410
7241
|
/**
|
|
7242
|
+
* Returns a specific webhook for the authenticated user
|
|
7243
|
+
*
|
|
6411
7244
|
* @returns {Promise<ConsumerWebhook>}
|
|
6412
7245
|
* @throws {CommonMessageException}
|
|
6413
7246
|
* @throws {ClientException}
|
|
@@ -6430,9 +7263,11 @@ var ConsumerWebhookTag = class extends import_sdkgen_client102.TagAbstract {
|
|
|
6430
7263
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
6431
7264
|
throw new CommonMessageException(await response.json());
|
|
6432
7265
|
}
|
|
6433
|
-
throw new
|
|
7266
|
+
throw new import_sdkgen_client111.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
6434
7267
|
}
|
|
6435
7268
|
/**
|
|
7269
|
+
* Returns a paginated list of webhooks which are assigned to the authenticated user
|
|
7270
|
+
*
|
|
6436
7271
|
* @returns {Promise<ConsumerWebhookCollection>}
|
|
6437
7272
|
* @throws {CommonMessageException}
|
|
6438
7273
|
* @throws {ClientException}
|
|
@@ -6457,9 +7292,11 @@ var ConsumerWebhookTag = class extends import_sdkgen_client102.TagAbstract {
|
|
|
6457
7292
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
6458
7293
|
throw new CommonMessageException(await response.json());
|
|
6459
7294
|
}
|
|
6460
|
-
throw new
|
|
7295
|
+
throw new import_sdkgen_client111.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
6461
7296
|
}
|
|
6462
7297
|
/**
|
|
7298
|
+
* Updates an existing webhook for the authenticated user
|
|
7299
|
+
*
|
|
6463
7300
|
* @returns {Promise<CommonMessage>}
|
|
6464
7301
|
* @throws {CommonMessageException}
|
|
6465
7302
|
* @throws {ClientException}
|
|
@@ -6485,12 +7322,12 @@ var ConsumerWebhookTag = class extends import_sdkgen_client102.TagAbstract {
|
|
|
6485
7322
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
6486
7323
|
throw new CommonMessageException(await response.json());
|
|
6487
7324
|
}
|
|
6488
|
-
throw new
|
|
7325
|
+
throw new import_sdkgen_client111.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
6489
7326
|
}
|
|
6490
7327
|
};
|
|
6491
7328
|
|
|
6492
7329
|
// src/ConsumerTag.ts
|
|
6493
|
-
var ConsumerTag = class extends
|
|
7330
|
+
var ConsumerTag = class extends import_sdkgen_client112.TagAbstract {
|
|
6494
7331
|
account() {
|
|
6495
7332
|
return new ConsumerAccountTag(
|
|
6496
7333
|
this.httpClient,
|
|
@@ -6578,13 +7415,15 @@ var ConsumerTag = class extends import_sdkgen_client104.TagAbstract {
|
|
|
6578
7415
|
};
|
|
6579
7416
|
|
|
6580
7417
|
// src/SystemTag.ts
|
|
6581
|
-
var
|
|
7418
|
+
var import_sdkgen_client119 = require("sdkgen-client");
|
|
6582
7419
|
|
|
6583
7420
|
// src/SystemConnectionTag.ts
|
|
6584
|
-
var
|
|
6585
|
-
var
|
|
6586
|
-
var SystemConnectionTag = class extends
|
|
7421
|
+
var import_sdkgen_client113 = require("sdkgen-client");
|
|
7422
|
+
var import_sdkgen_client114 = require("sdkgen-client");
|
|
7423
|
+
var SystemConnectionTag = class extends import_sdkgen_client113.TagAbstract {
|
|
6587
7424
|
/**
|
|
7425
|
+
* Connection OAuth2 callback to authorize a connection
|
|
7426
|
+
*
|
|
6588
7427
|
* @returns {Promise<CommonMessage>}
|
|
6589
7428
|
* @throws {CommonMessageException}
|
|
6590
7429
|
* @throws {ClientException}
|
|
@@ -6607,15 +7446,17 @@ var SystemConnectionTag = class extends import_sdkgen_client105.TagAbstract {
|
|
|
6607
7446
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
6608
7447
|
throw new CommonMessageException(await response.json());
|
|
6609
7448
|
}
|
|
6610
|
-
throw new
|
|
7449
|
+
throw new import_sdkgen_client114.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
6611
7450
|
}
|
|
6612
7451
|
};
|
|
6613
7452
|
|
|
6614
7453
|
// src/SystemMetaTag.ts
|
|
6615
|
-
var
|
|
6616
|
-
var
|
|
6617
|
-
var SystemMetaTag = class extends
|
|
7454
|
+
var import_sdkgen_client115 = require("sdkgen-client");
|
|
7455
|
+
var import_sdkgen_client116 = require("sdkgen-client");
|
|
7456
|
+
var SystemMetaTag = class extends import_sdkgen_client115.TagAbstract {
|
|
6618
7457
|
/**
|
|
7458
|
+
* Returns meta information and links about the current installed Fusio version
|
|
7459
|
+
*
|
|
6619
7460
|
* @returns {Promise<SystemAbout>}
|
|
6620
7461
|
* @throws {CommonMessageException}
|
|
6621
7462
|
* @throws {ClientException}
|
|
@@ -6636,9 +7477,11 @@ var SystemMetaTag = class extends import_sdkgen_client107.TagAbstract {
|
|
|
6636
7477
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
6637
7478
|
throw new CommonMessageException(await response.json());
|
|
6638
7479
|
}
|
|
6639
|
-
throw new
|
|
7480
|
+
throw new import_sdkgen_client116.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
6640
7481
|
}
|
|
6641
7482
|
/**
|
|
7483
|
+
* Debug endpoint which returns the provided data
|
|
7484
|
+
*
|
|
6642
7485
|
* @returns {Promise<Passthru>}
|
|
6643
7486
|
* @throws {CommonMessageException}
|
|
6644
7487
|
* @throws {ClientException}
|
|
@@ -6662,9 +7505,11 @@ var SystemMetaTag = class extends import_sdkgen_client107.TagAbstract {
|
|
|
6662
7505
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
6663
7506
|
throw new CommonMessageException(await response.json());
|
|
6664
7507
|
}
|
|
6665
|
-
throw new
|
|
7508
|
+
throw new import_sdkgen_client116.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
6666
7509
|
}
|
|
6667
7510
|
/**
|
|
7511
|
+
* Health check endpoint which returns information about the health status of the system
|
|
7512
|
+
*
|
|
6668
7513
|
* @returns {Promise<SystemHealthCheck>}
|
|
6669
7514
|
* @throws {CommonMessageException}
|
|
6670
7515
|
* @throws {ClientException}
|
|
@@ -6685,32 +7530,11 @@ var SystemMetaTag = class extends import_sdkgen_client107.TagAbstract {
|
|
|
6685
7530
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
6686
7531
|
throw new CommonMessageException(await response.json());
|
|
6687
7532
|
}
|
|
6688
|
-
throw new
|
|
6689
|
-
}
|
|
6690
|
-
/**
|
|
6691
|
-
* @returns {Promise<SystemOAuthConfiguration>}
|
|
6692
|
-
* @throws {CommonMessageException}
|
|
6693
|
-
* @throws {ClientException}
|
|
6694
|
-
*/
|
|
6695
|
-
async getOAuthConfiguration() {
|
|
6696
|
-
const url = this.parser.url("/system/oauth-authorization-server", {});
|
|
6697
|
-
let request = {
|
|
6698
|
-
url,
|
|
6699
|
-
method: "GET",
|
|
6700
|
-
headers: {},
|
|
6701
|
-
params: this.parser.query({}, [])
|
|
6702
|
-
};
|
|
6703
|
-
const response = await this.httpClient.request(request);
|
|
6704
|
-
if (response.ok) {
|
|
6705
|
-
return await response.json();
|
|
6706
|
-
}
|
|
6707
|
-
const statusCode = response.status;
|
|
6708
|
-
if (statusCode >= 0 && statusCode <= 999) {
|
|
6709
|
-
throw new CommonMessageException(await response.json());
|
|
6710
|
-
}
|
|
6711
|
-
throw new import_sdkgen_client108.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
7533
|
+
throw new import_sdkgen_client116.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
6712
7534
|
}
|
|
6713
7535
|
/**
|
|
7536
|
+
* Returns all available routes
|
|
7537
|
+
*
|
|
6714
7538
|
* @returns {Promise<SystemRoute>}
|
|
6715
7539
|
* @throws {CommonMessageException}
|
|
6716
7540
|
* @throws {ClientException}
|
|
@@ -6731,9 +7555,11 @@ var SystemMetaTag = class extends import_sdkgen_client107.TagAbstract {
|
|
|
6731
7555
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
6732
7556
|
throw new CommonMessageException(await response.json());
|
|
6733
7557
|
}
|
|
6734
|
-
throw new
|
|
7558
|
+
throw new import_sdkgen_client116.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
6735
7559
|
}
|
|
6736
7560
|
/**
|
|
7561
|
+
* Returns details of a specific schema
|
|
7562
|
+
*
|
|
6737
7563
|
* @returns {Promise<SystemSchema>}
|
|
6738
7564
|
* @throws {CommonMessageException}
|
|
6739
7565
|
* @throws {ClientException}
|
|
@@ -6756,15 +7582,17 @@ var SystemMetaTag = class extends import_sdkgen_client107.TagAbstract {
|
|
|
6756
7582
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
6757
7583
|
throw new CommonMessageException(await response.json());
|
|
6758
7584
|
}
|
|
6759
|
-
throw new
|
|
7585
|
+
throw new import_sdkgen_client116.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
6760
7586
|
}
|
|
6761
7587
|
};
|
|
6762
7588
|
|
|
6763
7589
|
// src/SystemPaymentTag.ts
|
|
6764
|
-
var
|
|
6765
|
-
var
|
|
6766
|
-
var SystemPaymentTag = class extends
|
|
7590
|
+
var import_sdkgen_client117 = require("sdkgen-client");
|
|
7591
|
+
var import_sdkgen_client118 = require("sdkgen-client");
|
|
7592
|
+
var SystemPaymentTag = class extends import_sdkgen_client117.TagAbstract {
|
|
6767
7593
|
/**
|
|
7594
|
+
* Payment webhook endpoint after successful purchase of a plan
|
|
7595
|
+
*
|
|
6768
7596
|
* @returns {Promise<CommonMessage>}
|
|
6769
7597
|
* @throws {CommonMessageException}
|
|
6770
7598
|
* @throws {ClientException}
|
|
@@ -6787,12 +7615,12 @@ var SystemPaymentTag = class extends import_sdkgen_client109.TagAbstract {
|
|
|
6787
7615
|
if (statusCode >= 0 && statusCode <= 999) {
|
|
6788
7616
|
throw new CommonMessageException(await response.json());
|
|
6789
7617
|
}
|
|
6790
|
-
throw new
|
|
7618
|
+
throw new import_sdkgen_client118.UnknownStatusCodeException("The server returned an unknown status code: " + statusCode);
|
|
6791
7619
|
}
|
|
6792
7620
|
};
|
|
6793
7621
|
|
|
6794
7622
|
// src/SystemTag.ts
|
|
6795
|
-
var SystemTag = class extends
|
|
7623
|
+
var SystemTag = class extends import_sdkgen_client119.TagAbstract {
|
|
6796
7624
|
connection() {
|
|
6797
7625
|
return new SystemConnectionTag(
|
|
6798
7626
|
this.httpClient,
|
|
@@ -6814,7 +7642,7 @@ var SystemTag = class extends import_sdkgen_client111.TagAbstract {
|
|
|
6814
7642
|
};
|
|
6815
7643
|
|
|
6816
7644
|
// src/Client.ts
|
|
6817
|
-
var Client = class _Client extends
|
|
7645
|
+
var Client = class _Client extends import_sdkgen_client120.ClientAbstract {
|
|
6818
7646
|
authorization() {
|
|
6819
7647
|
return new AuthorizationTag(
|
|
6820
7648
|
this.httpClient,
|
|
@@ -6840,7 +7668,7 @@ var Client = class _Client extends import_sdkgen_client112.ClientAbstract {
|
|
|
6840
7668
|
);
|
|
6841
7669
|
}
|
|
6842
7670
|
static buildAnonymous(baseUrl) {
|
|
6843
|
-
return new _Client(baseUrl, new
|
|
7671
|
+
return new _Client(baseUrl, new import_sdkgen_client121.Anonymous());
|
|
6844
7672
|
}
|
|
6845
7673
|
};
|
|
6846
7674
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -6853,10 +7681,13 @@ var Client = class _Client extends import_sdkgen_client112.ClientAbstract {
|
|
|
6853
7681
|
BackendBackupTag,
|
|
6854
7682
|
BackendCategoryTag,
|
|
6855
7683
|
BackendConfigTag,
|
|
7684
|
+
BackendConnectionDatabaseTag,
|
|
7685
|
+
BackendConnectionFilesystemTag,
|
|
7686
|
+
BackendConnectionHttpTag,
|
|
7687
|
+
BackendConnectionSdkTag,
|
|
6856
7688
|
BackendConnectionTag,
|
|
6857
7689
|
BackendCronjobTag,
|
|
6858
7690
|
BackendDashboardTag,
|
|
6859
|
-
BackendDatabaseTag,
|
|
6860
7691
|
BackendEventTag,
|
|
6861
7692
|
BackendFirewallTag,
|
|
6862
7693
|
BackendFormTag,
|
|
@@ -6881,6 +7712,7 @@ var Client = class _Client extends import_sdkgen_client112.ClientAbstract {
|
|
|
6881
7712
|
BackendTokenTag,
|
|
6882
7713
|
BackendTransactionTag,
|
|
6883
7714
|
BackendTrashTag,
|
|
7715
|
+
BackendTriggerTag,
|
|
6884
7716
|
BackendUserTag,
|
|
6885
7717
|
BackendWebhookTag,
|
|
6886
7718
|
Client,
|