edge-impulse-api 1.66.26 → 1.66.28
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/build/library/sdk/api/adminApi.js +166 -83
- package/build/library/sdk/api/adminApi.js.map +1 -1
- package/build/library/sdk/api/authApi.js +4 -2
- package/build/library/sdk/api/authApi.js.map +1 -1
- package/build/library/sdk/api/cDNApi.js +2 -1
- package/build/library/sdk/api/cDNApi.js.map +1 -1
- package/build/library/sdk/api/canaryApi.js +2 -1
- package/build/library/sdk/api/canaryApi.js.map +1 -1
- package/build/library/sdk/api/classifyApi.js +20 -10
- package/build/library/sdk/api/classifyApi.js.map +1 -1
- package/build/library/sdk/api/dSPApi.js +38 -19
- package/build/library/sdk/api/dSPApi.js.map +1 -1
- package/build/library/sdk/api/deploymentApi.js +22 -11
- package/build/library/sdk/api/deploymentApi.js.map +1 -1
- package/build/library/sdk/api/devicesApi.js +24 -12
- package/build/library/sdk/api/devicesApi.js.map +1 -1
- package/build/library/sdk/api/emailVerificationApi.js +8 -4
- package/build/library/sdk/api/emailVerificationApi.js.map +1 -1
- package/build/library/sdk/api/exportApi.js +2 -1
- package/build/library/sdk/api/exportApi.js.map +1 -1
- package/build/library/sdk/api/featureFlagsApi.js +2 -1
- package/build/library/sdk/api/featureFlagsApi.js.map +1 -1
- package/build/library/sdk/api/healthApi.js +4 -2
- package/build/library/sdk/api/healthApi.js.map +1 -1
- package/build/library/sdk/api/impulseApi.js +30 -15
- package/build/library/sdk/api/impulseApi.js.map +1 -1
- package/build/library/sdk/api/jobsApi.js +86 -43
- package/build/library/sdk/api/jobsApi.js.map +1 -1
- package/build/library/sdk/api/learnApi.js +46 -23
- package/build/library/sdk/api/learnApi.js.map +1 -1
- package/build/library/sdk/api/loginApi.js +2 -1
- package/build/library/sdk/api/loginApi.js.map +1 -1
- package/build/library/sdk/api/metricsApi.js +6 -3
- package/build/library/sdk/api/metricsApi.js.map +1 -1
- package/build/library/sdk/api/optimizationApi.js +34 -17
- package/build/library/sdk/api/optimizationApi.js.map +1 -1
- package/build/library/sdk/api/organizationBlocksApi.js +60 -30
- package/build/library/sdk/api/organizationBlocksApi.js.map +1 -1
- package/build/library/sdk/api/organizationCreateProjectApi.js +26 -13
- package/build/library/sdk/api/organizationCreateProjectApi.js.map +1 -1
- package/build/library/sdk/api/organizationDataApi.js +78 -39
- package/build/library/sdk/api/organizationDataApi.js.map +1 -1
- package/build/library/sdk/api/organizationDataCampaignsApi.js +24 -12
- package/build/library/sdk/api/organizationDataCampaignsApi.js.map +1 -1
- package/build/library/sdk/api/organizationJobsApi.js +16 -8
- package/build/library/sdk/api/organizationJobsApi.js.map +1 -1
- package/build/library/sdk/api/organizationPipelinesApi.js +16 -8
- package/build/library/sdk/api/organizationPipelinesApi.js.map +1 -1
- package/build/library/sdk/api/organizationPortalsApi.js +14 -7
- package/build/library/sdk/api/organizationPortalsApi.js.map +1 -1
- package/build/library/sdk/api/organizationsApi.js +156 -78
- package/build/library/sdk/api/organizationsApi.js.map +1 -1
- package/build/library/sdk/api/performanceCalibrationApi.js +22 -11
- package/build/library/sdk/api/performanceCalibrationApi.js.map +1 -1
- package/build/library/sdk/api/projectsApi.js +110 -55
- package/build/library/sdk/api/projectsApi.js.map +1 -1
- package/build/library/sdk/api/rawDataApi.js +112 -56
- package/build/library/sdk/api/rawDataApi.js.map +1 -1
- package/build/library/sdk/api/themesApi.js +12 -6
- package/build/library/sdk/api/themesApi.js.map +1 -1
- package/build/library/sdk/api/thirdPartyAuthApi.js +14 -7
- package/build/library/sdk/api/thirdPartyAuthApi.js.map +1 -1
- package/build/library/sdk/api/uploadPortalApi.js +14 -7
- package/build/library/sdk/api/uploadPortalApi.js.map +1 -1
- package/build/library/sdk/api/userApi.js +96 -48
- package/build/library/sdk/api/userApi.js.map +1 -1
- package/build/library/sdk/api/whitelabelsApi.js +16 -8
- package/build/library/sdk/api/whitelabelsApi.js.map +1 -1
- package/package.json +1 -1
|
@@ -147,14 +147,15 @@ class LearnApi {
|
|
|
147
147
|
}
|
|
148
148
|
else {
|
|
149
149
|
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
150
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
151
150
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
151
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
152
152
|
reject(new Error(body.error || errString));
|
|
153
153
|
}
|
|
154
154
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
155
155
|
resolve(body);
|
|
156
156
|
}
|
|
157
157
|
else {
|
|
158
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
158
159
|
reject(errString);
|
|
159
160
|
}
|
|
160
161
|
}
|
|
@@ -242,14 +243,15 @@ class LearnApi {
|
|
|
242
243
|
}
|
|
243
244
|
else {
|
|
244
245
|
body = models_1.ObjectSerializer.deserialize(body, "AnomalyTrainedFeaturesResponse");
|
|
245
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
246
246
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
247
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
247
248
|
reject(new Error(body.error || errString));
|
|
248
249
|
}
|
|
249
250
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
250
251
|
resolve(body);
|
|
251
252
|
}
|
|
252
253
|
else {
|
|
254
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
253
255
|
reject(errString);
|
|
254
256
|
}
|
|
255
257
|
}
|
|
@@ -327,14 +329,15 @@ class LearnApi {
|
|
|
327
329
|
}
|
|
328
330
|
else {
|
|
329
331
|
body = models_1.ObjectSerializer.deserialize(body, "AnomalyTrainedFeaturesResponse");
|
|
330
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
331
332
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
333
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
332
334
|
reject(new Error(body.error || errString));
|
|
333
335
|
}
|
|
334
336
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
335
337
|
resolve(body);
|
|
336
338
|
}
|
|
337
339
|
else {
|
|
340
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
338
341
|
reject(errString);
|
|
339
342
|
}
|
|
340
343
|
}
|
|
@@ -406,14 +409,15 @@ class LearnApi {
|
|
|
406
409
|
}
|
|
407
410
|
else {
|
|
408
411
|
body = models_1.ObjectSerializer.deserialize(body, "Buffer");
|
|
409
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
410
412
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
413
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
411
414
|
reject(new Error(body.error || errString));
|
|
412
415
|
}
|
|
413
416
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
414
417
|
resolve(body);
|
|
415
418
|
}
|
|
416
419
|
else {
|
|
420
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
417
421
|
reject(errString);
|
|
418
422
|
}
|
|
419
423
|
}
|
|
@@ -485,14 +489,15 @@ class LearnApi {
|
|
|
485
489
|
}
|
|
486
490
|
else {
|
|
487
491
|
body = models_1.ObjectSerializer.deserialize(body, "Buffer");
|
|
488
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
489
492
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
493
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
490
494
|
reject(new Error(body.error || errString));
|
|
491
495
|
}
|
|
492
496
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
493
497
|
resolve(body);
|
|
494
498
|
}
|
|
495
499
|
else {
|
|
500
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
496
501
|
reject(errString);
|
|
497
502
|
}
|
|
498
503
|
}
|
|
@@ -570,14 +575,15 @@ class LearnApi {
|
|
|
570
575
|
}
|
|
571
576
|
else {
|
|
572
577
|
body = models_1.ObjectSerializer.deserialize(body, "Buffer");
|
|
573
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
574
578
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
579
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
575
580
|
reject(new Error(body.error || errString));
|
|
576
581
|
}
|
|
577
582
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
578
583
|
resolve(body);
|
|
579
584
|
}
|
|
580
585
|
else {
|
|
586
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
581
587
|
reject(errString);
|
|
582
588
|
}
|
|
583
589
|
}
|
|
@@ -653,14 +659,15 @@ class LearnApi {
|
|
|
653
659
|
}
|
|
654
660
|
else {
|
|
655
661
|
body = models_1.ObjectSerializer.deserialize(body, "Buffer");
|
|
656
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
657
662
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
663
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
658
664
|
reject(new Error(body.error || errString));
|
|
659
665
|
}
|
|
660
666
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
661
667
|
resolve(body);
|
|
662
668
|
}
|
|
663
669
|
else {
|
|
670
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
664
671
|
reject(errString);
|
|
665
672
|
}
|
|
666
673
|
}
|
|
@@ -732,14 +739,15 @@ class LearnApi {
|
|
|
732
739
|
}
|
|
733
740
|
else {
|
|
734
741
|
body = models_1.ObjectSerializer.deserialize(body, "AnomalyConfigResponse");
|
|
735
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
736
742
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
743
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
737
744
|
reject(new Error(body.error || errString));
|
|
738
745
|
}
|
|
739
746
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
740
747
|
resolve(body);
|
|
741
748
|
}
|
|
742
749
|
else {
|
|
750
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
743
751
|
reject(errString);
|
|
744
752
|
}
|
|
745
753
|
}
|
|
@@ -811,14 +819,15 @@ class LearnApi {
|
|
|
811
819
|
}
|
|
812
820
|
else {
|
|
813
821
|
body = models_1.ObjectSerializer.deserialize(body, "AnomalyModelMetadataResponse");
|
|
814
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
815
822
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
823
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
816
824
|
reject(new Error(body.error || errString));
|
|
817
825
|
}
|
|
818
826
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
819
827
|
resolve(body);
|
|
820
828
|
}
|
|
821
829
|
else {
|
|
830
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
822
831
|
reject(errString);
|
|
823
832
|
}
|
|
824
833
|
}
|
|
@@ -890,14 +899,15 @@ class LearnApi {
|
|
|
890
899
|
}
|
|
891
900
|
else {
|
|
892
901
|
body = models_1.ObjectSerializer.deserialize(body, "AnomalyGmmMetadataResponse");
|
|
893
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
894
902
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
903
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
895
904
|
reject(new Error(body.error || errString));
|
|
896
905
|
}
|
|
897
906
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
898
907
|
resolve(body);
|
|
899
908
|
}
|
|
900
909
|
else {
|
|
910
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
901
911
|
reject(errString);
|
|
902
912
|
}
|
|
903
913
|
}
|
|
@@ -969,14 +979,15 @@ class LearnApi {
|
|
|
969
979
|
}
|
|
970
980
|
else {
|
|
971
981
|
body = models_1.ObjectSerializer.deserialize(body, "KerasResponse");
|
|
972
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
973
982
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
983
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
974
984
|
reject(new Error(body.error || errString));
|
|
975
985
|
}
|
|
976
986
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
977
987
|
resolve(body);
|
|
978
988
|
}
|
|
979
989
|
else {
|
|
990
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
980
991
|
reject(errString);
|
|
981
992
|
}
|
|
982
993
|
}
|
|
@@ -1048,14 +1059,15 @@ class LearnApi {
|
|
|
1048
1059
|
}
|
|
1049
1060
|
else {
|
|
1050
1061
|
body = models_1.ObjectSerializer.deserialize(body, "GetDataExplorerFeaturesResponse");
|
|
1051
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1052
1062
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
1063
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1053
1064
|
reject(new Error(body.error || errString));
|
|
1054
1065
|
}
|
|
1055
1066
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1056
1067
|
resolve(body);
|
|
1057
1068
|
}
|
|
1058
1069
|
else {
|
|
1070
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1059
1071
|
reject(errString);
|
|
1060
1072
|
}
|
|
1061
1073
|
}
|
|
@@ -1131,14 +1143,15 @@ class LearnApi {
|
|
|
1131
1143
|
}
|
|
1132
1144
|
else {
|
|
1133
1145
|
body = models_1.ObjectSerializer.deserialize(body, "KerasModelMetadataResponse");
|
|
1134
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1135
1146
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
1147
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1136
1148
|
reject(new Error(body.error || errString));
|
|
1137
1149
|
}
|
|
1138
1150
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1139
1151
|
resolve(body);
|
|
1140
1152
|
}
|
|
1141
1153
|
else {
|
|
1154
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1142
1155
|
reject(errString);
|
|
1143
1156
|
}
|
|
1144
1157
|
}
|
|
@@ -1210,14 +1223,15 @@ class LearnApi {
|
|
|
1210
1223
|
}
|
|
1211
1224
|
else {
|
|
1212
1225
|
body = models_1.ObjectSerializer.deserialize(body, "Buffer");
|
|
1213
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1214
1226
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
1227
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1215
1228
|
reject(new Error(body.error || errString));
|
|
1216
1229
|
}
|
|
1217
1230
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1218
1231
|
resolve(body);
|
|
1219
1232
|
}
|
|
1220
1233
|
else {
|
|
1234
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1221
1235
|
reject(errString);
|
|
1222
1236
|
}
|
|
1223
1237
|
}
|
|
@@ -1289,14 +1303,15 @@ class LearnApi {
|
|
|
1289
1303
|
}
|
|
1290
1304
|
else {
|
|
1291
1305
|
body = models_1.ObjectSerializer.deserialize(body, "Buffer");
|
|
1292
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1293
1306
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
1307
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1294
1308
|
reject(new Error(body.error || errString));
|
|
1295
1309
|
}
|
|
1296
1310
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1297
1311
|
resolve(body);
|
|
1298
1312
|
}
|
|
1299
1313
|
else {
|
|
1314
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1300
1315
|
reject(errString);
|
|
1301
1316
|
}
|
|
1302
1317
|
}
|
|
@@ -1366,14 +1381,15 @@ class LearnApi {
|
|
|
1366
1381
|
}
|
|
1367
1382
|
else {
|
|
1368
1383
|
body = models_1.ObjectSerializer.deserialize(body, "GetPretrainedModelResponse");
|
|
1369
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1370
1384
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
1385
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1371
1386
|
reject(new Error(body.error || errString));
|
|
1372
1387
|
}
|
|
1373
1388
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1374
1389
|
resolve(body);
|
|
1375
1390
|
}
|
|
1376
1391
|
else {
|
|
1392
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1377
1393
|
reject(errString);
|
|
1378
1394
|
}
|
|
1379
1395
|
}
|
|
@@ -1443,14 +1459,15 @@ class LearnApi {
|
|
|
1443
1459
|
}
|
|
1444
1460
|
else {
|
|
1445
1461
|
body = models_1.ObjectSerializer.deserialize(body, "StartJobResponse");
|
|
1446
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1447
1462
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
1463
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1448
1464
|
reject(new Error(body.error || errString));
|
|
1449
1465
|
}
|
|
1450
1466
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1451
1467
|
resolve(body);
|
|
1452
1468
|
}
|
|
1453
1469
|
else {
|
|
1470
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1454
1471
|
reject(errString);
|
|
1455
1472
|
}
|
|
1456
1473
|
}
|
|
@@ -1526,14 +1543,15 @@ class LearnApi {
|
|
|
1526
1543
|
}
|
|
1527
1544
|
else {
|
|
1528
1545
|
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
1529
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1530
1546
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
1547
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1531
1548
|
reject(new Error(body.error || errString));
|
|
1532
1549
|
}
|
|
1533
1550
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1534
1551
|
resolve(body);
|
|
1535
1552
|
}
|
|
1536
1553
|
else {
|
|
1554
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1537
1555
|
reject(errString);
|
|
1538
1556
|
}
|
|
1539
1557
|
}
|
|
@@ -1611,14 +1629,15 @@ class LearnApi {
|
|
|
1611
1629
|
}
|
|
1612
1630
|
else {
|
|
1613
1631
|
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
1614
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1615
1632
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
1633
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1616
1634
|
reject(new Error(body.error || errString));
|
|
1617
1635
|
}
|
|
1618
1636
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1619
1637
|
resolve(body);
|
|
1620
1638
|
}
|
|
1621
1639
|
else {
|
|
1640
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1622
1641
|
reject(errString);
|
|
1623
1642
|
}
|
|
1624
1643
|
}
|
|
@@ -1696,14 +1715,15 @@ class LearnApi {
|
|
|
1696
1715
|
}
|
|
1697
1716
|
else {
|
|
1698
1717
|
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
1699
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1700
1718
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
1719
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1701
1720
|
reject(new Error(body.error || errString));
|
|
1702
1721
|
}
|
|
1703
1722
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1704
1723
|
resolve(body);
|
|
1705
1724
|
}
|
|
1706
1725
|
else {
|
|
1726
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1707
1727
|
reject(errString);
|
|
1708
1728
|
}
|
|
1709
1729
|
}
|
|
@@ -1779,14 +1799,15 @@ class LearnApi {
|
|
|
1779
1799
|
}
|
|
1780
1800
|
else {
|
|
1781
1801
|
body = models_1.ObjectSerializer.deserialize(body, "TestPretrainedModelResponse");
|
|
1782
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1783
1802
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
1803
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1784
1804
|
reject(new Error(body.error || errString));
|
|
1785
1805
|
}
|
|
1786
1806
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1787
1807
|
resolve(body);
|
|
1788
1808
|
}
|
|
1789
1809
|
else {
|
|
1810
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1790
1811
|
reject(errString);
|
|
1791
1812
|
}
|
|
1792
1813
|
}
|
|
@@ -1867,14 +1888,15 @@ class LearnApi {
|
|
|
1867
1888
|
}
|
|
1868
1889
|
else {
|
|
1869
1890
|
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
1870
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1871
1891
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
1892
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1872
1893
|
reject(new Error(body.error || errString));
|
|
1873
1894
|
}
|
|
1874
1895
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1875
1896
|
resolve(body);
|
|
1876
1897
|
}
|
|
1877
1898
|
else {
|
|
1899
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1878
1900
|
reject(errString);
|
|
1879
1901
|
}
|
|
1880
1902
|
}
|
|
@@ -1978,14 +2000,15 @@ class LearnApi {
|
|
|
1978
2000
|
}
|
|
1979
2001
|
else {
|
|
1980
2002
|
body = models_1.ObjectSerializer.deserialize(body, "StartJobResponse");
|
|
1981
|
-
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1982
2003
|
if (typeof body.success === 'boolean' && !body.success) {
|
|
2004
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1983
2005
|
reject(new Error(body.error || errString));
|
|
1984
2006
|
}
|
|
1985
2007
|
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1986
2008
|
resolve(body);
|
|
1987
2009
|
}
|
|
1988
2010
|
else {
|
|
2011
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1989
2012
|
reject(errString);
|
|
1990
2013
|
}
|
|
1991
2014
|
}
|