@appconda/nextjs 1.0.46 → 1.0.49
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/actions/actionClient.d.ts +1 -1
- package/dist/actions/actionClient.js +3 -6
- package/dist/actions/index.js +1 -17
- package/dist/actions/nodes.d.ts +1 -1
- package/dist/actions/nodes.js +4 -7
- package/dist/client.js +33 -39
- package/dist/decorators/Cache.js +4 -7
- package/dist/decorators/CacheKey.js +1 -4
- package/dist/decorators/Invalidate.js +4 -7
- package/dist/enums/api-service.js +2 -5
- package/dist/enums/api.js +2 -5
- package/dist/enums/auth-method.js +2 -5
- package/dist/enums/authentication-factor.js +2 -5
- package/dist/enums/authenticator-type.js +2 -5
- package/dist/enums/browser.js +2 -5
- package/dist/enums/compression.js +2 -5
- package/dist/enums/credit-card.js +2 -5
- package/dist/enums/database-usage-range.js +2 -5
- package/dist/enums/email-template-locale.js +2 -5
- package/dist/enums/email-template-type.js +2 -5
- package/dist/enums/entities/EntityLimitType.js +2 -5
- package/dist/enums/entities/PropertyAttributeName.js +2 -5
- package/dist/enums/entities/PropertyCondition.js +2 -5
- package/dist/enums/entities/PropertyType.js +2 -5
- package/dist/enums/entities/PropertyValueType.js +2 -5
- package/dist/enums/entities/RowAccess.js +1 -4
- package/dist/enums/entities/ViewFilterCondition.js +2 -5
- package/dist/enums/execution-method.js +2 -5
- package/dist/enums/flag.js +2 -5
- package/dist/enums/function-usage-range.js +2 -5
- package/dist/enums/image-format.js +2 -5
- package/dist/enums/image-gravity.js +2 -5
- package/dist/enums/index-type.js +2 -5
- package/dist/enums/messaging-provider-type.js +2 -5
- package/dist/enums/name.js +2 -5
- package/dist/enums/o-auth-provider copy.js +2 -5
- package/dist/enums/o-auth-provider.js +2 -5
- package/dist/enums/password-hash.js +2 -5
- package/dist/enums/platform-type.js +2 -5
- package/dist/enums/project-usage-range.js +2 -5
- package/dist/enums/region.js +2 -5
- package/dist/enums/relation-mutate.js +2 -5
- package/dist/enums/relationship-type.js +2 -5
- package/dist/enums/resource-type.js +2 -5
- package/dist/enums/runtime.js +2 -5
- package/dist/enums/s-m-t-p-secure.js +2 -5
- package/dist/enums/shared/ApplicationLayout.js +2 -5
- package/dist/enums/shared/Colors.js +2 -5
- package/dist/enums/shared/InputType.js +2 -5
- package/dist/enums/shared/Periodicity.js +2 -5
- package/dist/enums/shared/SvgIcon.js +2 -5
- package/dist/enums/shared/Theme.js +2 -5
- package/dist/enums/sms-template-locale.js +2 -5
- package/dist/enums/sms-template-type.js +2 -5
- package/dist/enums/smtp-encryption.js +2 -5
- package/dist/enums/storage-usage-range.js +2 -5
- package/dist/enums/subscriptions/PricingModel.js +4 -7
- package/dist/enums/subscriptions/SubscriptionBillingPeriod.js +4 -7
- package/dist/enums/subscriptions/SubscriptionFeatureLimitType.js +4 -7
- package/dist/enums/subscriptions/SubscriptionPriceType.js +4 -7
- package/dist/enums/tenants/LinkedAccountStatus.js +2 -5
- package/dist/enums/tenants/TenantUserJoined.js +2 -5
- package/dist/enums/tenants/TenantUserStatus.js +2 -5
- package/dist/enums/tenants/TenantUserType.js +2 -5
- package/dist/enums/user-usage-range.js +2 -5
- package/dist/getAppcondaClient.js +3 -6
- package/dist/getSDKForCurrentUser.js +37 -40
- package/dist/id.js +16 -20
- package/dist/index.js +37 -91
- package/dist/inputFile.js +6 -10
- package/dist/lib/Cache/Adapter.js +1 -2
- package/dist/lib/Cache/Adapters/Filesystem.js +2 -6
- package/dist/lib/Cache/Adapters/Memory.js +4 -7
- package/dist/lib/Cache/Adapters/None.js +1 -5
- package/dist/lib/Cache/Adapters/Sharding.js +14 -19
- package/dist/lib/Cache/Cache.js +2 -7
- package/dist/lib/Cache/index.js +4 -20
- package/dist/lib/Cache/test.d.ts +0 -1
- package/dist/lib/Cache/test.js +0 -2
- package/dist/lib/Registry/Registry.js +21 -23
- package/dist/lib/Registry/index.js +1 -17
- package/dist/lib/Services.js +8 -12
- package/dist/models.js +1 -2
- package/dist/modules/index.js +1 -17
- package/dist/modules/waitlist/action.d.ts +3 -3
- package/dist/modules/waitlist/action.js +11 -14
- package/dist/modules/waitlist/index.js +3 -19
- package/dist/modules/waitlist/schema.js +5 -8
- package/dist/modules/waitlist/service.js +2 -6
- package/dist/modules/waitlist/types.js +1 -2
- package/dist/permission.js +49 -53
- package/dist/query.js +168 -175
- package/dist/role.js +1 -5
- package/dist/schemas/nodes.d.ts +0 -1
- package/dist/schemas/nodes.js +0 -2
- package/dist/service-client.js +1 -6
- package/dist/service.js +5 -10
- package/dist/services/account.js +58 -63
- package/dist/services/applets.js +4 -9
- package/dist/services/avatars.js +8 -13
- package/dist/services/community.js +5 -10
- package/dist/services/configuration.js +2 -6
- package/dist/services/databases.js +150 -155
- package/dist/services/functions.js +42 -47
- package/dist/services/graphql.js +4 -9
- package/dist/services/health.js +3 -8
- package/dist/services/locale.js +1 -6
- package/dist/services/messaging.js +66 -71
- package/dist/services/node.js +4 -8
- package/dist/services/permissions.js +7 -12
- package/dist/services/pricing.js +2 -6
- package/dist/services/projects.js +113 -118
- package/dist/services/roles.js +6 -11
- package/dist/services/schema.js +5 -10
- package/dist/services/storage.js +24 -29
- package/dist/services/subscription.js +2 -6
- package/dist/services/teams.js +25 -30
- package/dist/services/tenant-subscription.js +5 -10
- package/dist/services/tenant.js +9 -13
- package/dist/services/users.js +82 -87
- package/package.json +1 -1
- package/tsconfig.json +2 -3
@@ -1,9 +1,5 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
exports.Functions = void 0;
|
4
|
-
const client_1 = require("../client");
|
5
|
-
class Functions {
|
6
|
-
client;
|
1
|
+
import { AppcondaException } from '../client';
|
2
|
+
export class Functions {
|
7
3
|
constructor(client) {
|
8
4
|
this.client = client;
|
9
5
|
}
|
@@ -64,13 +60,13 @@ class Functions {
|
|
64
60
|
*/
|
65
61
|
async create(functionId, name, runtime, execute, events, schedule, timeout, enabled, logging, entrypoint, commands, scopes, installationId, providerRepositoryId, providerBranch, providerSilentMode, providerRootDirectory, templateRepository, templateOwner, templateRootDirectory, templateVersion, specification) {
|
66
62
|
if (typeof functionId === 'undefined') {
|
67
|
-
throw new
|
63
|
+
throw new AppcondaException('Missing required parameter: "functionId"');
|
68
64
|
}
|
69
65
|
if (typeof name === 'undefined') {
|
70
|
-
throw new
|
66
|
+
throw new AppcondaException('Missing required parameter: "name"');
|
71
67
|
}
|
72
68
|
if (typeof runtime === 'undefined') {
|
73
|
-
throw new
|
69
|
+
throw new AppcondaException('Missing required parameter: "runtime"');
|
74
70
|
}
|
75
71
|
const apiPath = '/functions';
|
76
72
|
const payload = {};
|
@@ -192,7 +188,7 @@ class Functions {
|
|
192
188
|
*/
|
193
189
|
async get(functionId) {
|
194
190
|
if (typeof functionId === 'undefined') {
|
195
|
-
throw new
|
191
|
+
throw new AppcondaException('Missing required parameter: "functionId"');
|
196
192
|
}
|
197
193
|
const apiPath = '/functions/{functionId}'.replace('{functionId}', functionId);
|
198
194
|
const payload = {};
|
@@ -230,10 +226,10 @@ class Functions {
|
|
230
226
|
*/
|
231
227
|
async update(functionId, name, runtime, execute, events, schedule, timeout, enabled, logging, entrypoint, commands, scopes, installationId, providerRepositoryId, providerBranch, providerSilentMode, providerRootDirectory, specification) {
|
232
228
|
if (typeof functionId === 'undefined') {
|
233
|
-
throw new
|
229
|
+
throw new AppcondaException('Missing required parameter: "functionId"');
|
234
230
|
}
|
235
231
|
if (typeof name === 'undefined') {
|
236
|
-
throw new
|
232
|
+
throw new AppcondaException('Missing required parameter: "name"');
|
237
233
|
}
|
238
234
|
const apiPath = '/functions/{functionId}'.replace('{functionId}', functionId);
|
239
235
|
const payload = {};
|
@@ -305,7 +301,7 @@ class Functions {
|
|
305
301
|
*/
|
306
302
|
async delete(functionId) {
|
307
303
|
if (typeof functionId === 'undefined') {
|
308
|
-
throw new
|
304
|
+
throw new AppcondaException('Missing required parameter: "functionId"');
|
309
305
|
}
|
310
306
|
const apiPath = '/functions/{functionId}'.replace('{functionId}', functionId);
|
311
307
|
const payload = {};
|
@@ -328,7 +324,7 @@ class Functions {
|
|
328
324
|
*/
|
329
325
|
async listDeployments(functionId, queries, search) {
|
330
326
|
if (typeof functionId === 'undefined') {
|
331
|
-
throw new
|
327
|
+
throw new AppcondaException('Missing required parameter: "functionId"');
|
332
328
|
}
|
333
329
|
const apiPath = '/functions/{functionId}/deployments'.replace('{functionId}', functionId);
|
334
330
|
const payload = {};
|
@@ -363,13 +359,13 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
363
359
|
*/
|
364
360
|
async createDeployment(functionId, code, activate, entrypoint, commands, onProgress = (progress) => { }) {
|
365
361
|
if (typeof functionId === 'undefined') {
|
366
|
-
throw new
|
362
|
+
throw new AppcondaException('Missing required parameter: "functionId"');
|
367
363
|
}
|
368
364
|
if (typeof code === 'undefined') {
|
369
|
-
throw new
|
365
|
+
throw new AppcondaException('Missing required parameter: "code"');
|
370
366
|
}
|
371
367
|
if (typeof activate === 'undefined') {
|
372
|
-
throw new
|
368
|
+
throw new AppcondaException('Missing required parameter: "activate"');
|
373
369
|
}
|
374
370
|
const apiPath = '/functions/{functionId}/deployments'.replace('{functionId}', functionId);
|
375
371
|
const payload = {};
|
@@ -403,10 +399,10 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
403
399
|
*/
|
404
400
|
async getDeployment(functionId, deploymentId) {
|
405
401
|
if (typeof functionId === 'undefined') {
|
406
|
-
throw new
|
402
|
+
throw new AppcondaException('Missing required parameter: "functionId"');
|
407
403
|
}
|
408
404
|
if (typeof deploymentId === 'undefined') {
|
409
|
-
throw new
|
405
|
+
throw new AppcondaException('Missing required parameter: "deploymentId"');
|
410
406
|
}
|
411
407
|
const apiPath = '/functions/{functionId}/deployments/{deploymentId}'.replace('{functionId}', functionId).replace('{deploymentId}', deploymentId);
|
412
408
|
const payload = {};
|
@@ -428,10 +424,10 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
428
424
|
*/
|
429
425
|
async updateDeployment(functionId, deploymentId) {
|
430
426
|
if (typeof functionId === 'undefined') {
|
431
|
-
throw new
|
427
|
+
throw new AppcondaException('Missing required parameter: "functionId"');
|
432
428
|
}
|
433
429
|
if (typeof deploymentId === 'undefined') {
|
434
|
-
throw new
|
430
|
+
throw new AppcondaException('Missing required parameter: "deploymentId"');
|
435
431
|
}
|
436
432
|
const apiPath = '/functions/{functionId}/deployments/{deploymentId}'.replace('{functionId}', functionId).replace('{deploymentId}', deploymentId);
|
437
433
|
const payload = {};
|
@@ -453,10 +449,10 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
453
449
|
*/
|
454
450
|
async deleteDeployment(functionId, deploymentId) {
|
455
451
|
if (typeof functionId === 'undefined') {
|
456
|
-
throw new
|
452
|
+
throw new AppcondaException('Missing required parameter: "functionId"');
|
457
453
|
}
|
458
454
|
if (typeof deploymentId === 'undefined') {
|
459
|
-
throw new
|
455
|
+
throw new AppcondaException('Missing required parameter: "deploymentId"');
|
460
456
|
}
|
461
457
|
const apiPath = '/functions/{functionId}/deployments/{deploymentId}'.replace('{functionId}', functionId).replace('{deploymentId}', deploymentId);
|
462
458
|
const payload = {};
|
@@ -478,10 +474,10 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
478
474
|
*/
|
479
475
|
async createBuild(functionId, deploymentId, buildId) {
|
480
476
|
if (typeof functionId === 'undefined') {
|
481
|
-
throw new
|
477
|
+
throw new AppcondaException('Missing required parameter: "functionId"');
|
482
478
|
}
|
483
479
|
if (typeof deploymentId === 'undefined') {
|
484
|
-
throw new
|
480
|
+
throw new AppcondaException('Missing required parameter: "deploymentId"');
|
485
481
|
}
|
486
482
|
const apiPath = '/functions/{functionId}/deployments/{deploymentId}/build'.replace('{functionId}', functionId).replace('{deploymentId}', deploymentId);
|
487
483
|
const payload = {};
|
@@ -505,10 +501,10 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
505
501
|
*/
|
506
502
|
async updateDeploymentBuild(functionId, deploymentId) {
|
507
503
|
if (typeof functionId === 'undefined') {
|
508
|
-
throw new
|
504
|
+
throw new AppcondaException('Missing required parameter: "functionId"');
|
509
505
|
}
|
510
506
|
if (typeof deploymentId === 'undefined') {
|
511
|
-
throw new
|
507
|
+
throw new AppcondaException('Missing required parameter: "deploymentId"');
|
512
508
|
}
|
513
509
|
const apiPath = '/functions/{functionId}/deployments/{deploymentId}/build'.replace('{functionId}', functionId).replace('{deploymentId}', deploymentId);
|
514
510
|
const payload = {};
|
@@ -530,10 +526,10 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
530
526
|
*/
|
531
527
|
async getDeploymentDownload(functionId, deploymentId) {
|
532
528
|
if (typeof functionId === 'undefined') {
|
533
|
-
throw new
|
529
|
+
throw new AppcondaException('Missing required parameter: "functionId"');
|
534
530
|
}
|
535
531
|
if (typeof deploymentId === 'undefined') {
|
536
|
-
throw new
|
532
|
+
throw new AppcondaException('Missing required parameter: "deploymentId"');
|
537
533
|
}
|
538
534
|
const apiPath = '/functions/{functionId}/deployments/{deploymentId}/download'.replace('{functionId}', functionId).replace('{deploymentId}', deploymentId);
|
539
535
|
const payload = {};
|
@@ -556,7 +552,7 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
556
552
|
*/
|
557
553
|
async listExecutions(functionId, queries, search) {
|
558
554
|
if (typeof functionId === 'undefined') {
|
559
|
-
throw new
|
555
|
+
throw new AppcondaException('Missing required parameter: "functionId"');
|
560
556
|
}
|
561
557
|
const apiPath = '/functions/{functionId}/executions'.replace('{functionId}', functionId);
|
562
558
|
const payload = {};
|
@@ -589,7 +585,7 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
589
585
|
*/
|
590
586
|
async createExecution(functionId, body, async, xpath, method, headers, scheduledAt) {
|
591
587
|
if (typeof functionId === 'undefined') {
|
592
|
-
throw new
|
588
|
+
throw new AppcondaException('Missing required parameter: "functionId"');
|
593
589
|
}
|
594
590
|
const apiPath = '/functions/{functionId}/executions'.replace('{functionId}', functionId);
|
595
591
|
const payload = {};
|
@@ -629,10 +625,10 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
629
625
|
*/
|
630
626
|
async getExecution(functionId, executionId) {
|
631
627
|
if (typeof functionId === 'undefined') {
|
632
|
-
throw new
|
628
|
+
throw new AppcondaException('Missing required parameter: "functionId"');
|
633
629
|
}
|
634
630
|
if (typeof executionId === 'undefined') {
|
635
|
-
throw new
|
631
|
+
throw new AppcondaException('Missing required parameter: "executionId"');
|
636
632
|
}
|
637
633
|
const apiPath = '/functions/{functionId}/executions/{executionId}'.replace('{functionId}', functionId).replace('{executionId}', executionId);
|
638
634
|
const payload = {};
|
@@ -655,10 +651,10 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
655
651
|
*/
|
656
652
|
async deleteExecution(functionId, executionId) {
|
657
653
|
if (typeof functionId === 'undefined') {
|
658
|
-
throw new
|
654
|
+
throw new AppcondaException('Missing required parameter: "functionId"');
|
659
655
|
}
|
660
656
|
if (typeof executionId === 'undefined') {
|
661
|
-
throw new
|
657
|
+
throw new AppcondaException('Missing required parameter: "executionId"');
|
662
658
|
}
|
663
659
|
const apiPath = '/functions/{functionId}/executions/{executionId}'.replace('{functionId}', functionId).replace('{executionId}', executionId);
|
664
660
|
const payload = {};
|
@@ -679,7 +675,7 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
679
675
|
*/
|
680
676
|
async listVariables(functionId) {
|
681
677
|
if (typeof functionId === 'undefined') {
|
682
|
-
throw new
|
678
|
+
throw new AppcondaException('Missing required parameter: "functionId"');
|
683
679
|
}
|
684
680
|
const apiPath = '/functions/{functionId}/variables'.replace('{functionId}', functionId);
|
685
681
|
const payload = {};
|
@@ -702,13 +698,13 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
702
698
|
*/
|
703
699
|
async createVariable(functionId, key, value) {
|
704
700
|
if (typeof functionId === 'undefined') {
|
705
|
-
throw new
|
701
|
+
throw new AppcondaException('Missing required parameter: "functionId"');
|
706
702
|
}
|
707
703
|
if (typeof key === 'undefined') {
|
708
|
-
throw new
|
704
|
+
throw new AppcondaException('Missing required parameter: "key"');
|
709
705
|
}
|
710
706
|
if (typeof value === 'undefined') {
|
711
|
-
throw new
|
707
|
+
throw new AppcondaException('Missing required parameter: "value"');
|
712
708
|
}
|
713
709
|
const apiPath = '/functions/{functionId}/variables'.replace('{functionId}', functionId);
|
714
710
|
const payload = {};
|
@@ -736,10 +732,10 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
736
732
|
*/
|
737
733
|
async getVariable(functionId, variableId) {
|
738
734
|
if (typeof functionId === 'undefined') {
|
739
|
-
throw new
|
735
|
+
throw new AppcondaException('Missing required parameter: "functionId"');
|
740
736
|
}
|
741
737
|
if (typeof variableId === 'undefined') {
|
742
|
-
throw new
|
738
|
+
throw new AppcondaException('Missing required parameter: "variableId"');
|
743
739
|
}
|
744
740
|
const apiPath = '/functions/{functionId}/variables/{variableId}'.replace('{functionId}', functionId).replace('{variableId}', variableId);
|
745
741
|
const payload = {};
|
@@ -763,13 +759,13 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
763
759
|
*/
|
764
760
|
async updateVariable(functionId, variableId, key, value) {
|
765
761
|
if (typeof functionId === 'undefined') {
|
766
|
-
throw new
|
762
|
+
throw new AppcondaException('Missing required parameter: "functionId"');
|
767
763
|
}
|
768
764
|
if (typeof variableId === 'undefined') {
|
769
|
-
throw new
|
765
|
+
throw new AppcondaException('Missing required parameter: "variableId"');
|
770
766
|
}
|
771
767
|
if (typeof key === 'undefined') {
|
772
|
-
throw new
|
768
|
+
throw new AppcondaException('Missing required parameter: "key"');
|
773
769
|
}
|
774
770
|
const apiPath = '/functions/{functionId}/variables/{variableId}'.replace('{functionId}', functionId).replace('{variableId}', variableId);
|
775
771
|
const payload = {};
|
@@ -797,10 +793,10 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
797
793
|
*/
|
798
794
|
async deleteVariable(functionId, variableId) {
|
799
795
|
if (typeof functionId === 'undefined') {
|
800
|
-
throw new
|
796
|
+
throw new AppcondaException('Missing required parameter: "functionId"');
|
801
797
|
}
|
802
798
|
if (typeof variableId === 'undefined') {
|
803
|
-
throw new
|
799
|
+
throw new AppcondaException('Missing required parameter: "variableId"');
|
804
800
|
}
|
805
801
|
const apiPath = '/functions/{functionId}/variables/{variableId}'.replace('{functionId}', functionId).replace('{variableId}', variableId);
|
806
802
|
const payload = {};
|
@@ -811,4 +807,3 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
811
807
|
return await this.client.call('delete', uri, apiHeaders, payload);
|
812
808
|
}
|
813
809
|
}
|
814
|
-
exports.Functions = Functions;
|
package/dist/services/graphql.js
CHANGED
@@ -1,9 +1,5 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
exports.Graphql = void 0;
|
4
|
-
const client_1 = require("../client");
|
5
|
-
class Graphql {
|
6
|
-
client;
|
1
|
+
import { AppcondaException } from '../client';
|
2
|
+
export class Graphql {
|
7
3
|
constructor(client) {
|
8
4
|
this.client = client;
|
9
5
|
}
|
@@ -18,7 +14,7 @@ class Graphql {
|
|
18
14
|
*/
|
19
15
|
async query(query) {
|
20
16
|
if (typeof query === 'undefined') {
|
21
|
-
throw new
|
17
|
+
throw new AppcondaException('Missing required parameter: "query"');
|
22
18
|
}
|
23
19
|
const apiPath = '/graphql';
|
24
20
|
const payload = {};
|
@@ -43,7 +39,7 @@ class Graphql {
|
|
43
39
|
*/
|
44
40
|
async mutation(query) {
|
45
41
|
if (typeof query === 'undefined') {
|
46
|
-
throw new
|
42
|
+
throw new AppcondaException('Missing required parameter: "query"');
|
47
43
|
}
|
48
44
|
const apiPath = '/graphql/mutation';
|
49
45
|
const payload = {};
|
@@ -58,4 +54,3 @@ class Graphql {
|
|
58
54
|
return await this.client.call('post', uri, apiHeaders, payload);
|
59
55
|
}
|
60
56
|
}
|
61
|
-
exports.Graphql = Graphql;
|
package/dist/services/health.js
CHANGED
@@ -1,9 +1,5 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
exports.Health = void 0;
|
4
|
-
const client_1 = require("../client");
|
5
|
-
class Health {
|
6
|
-
client;
|
1
|
+
import { AppcondaException } from '../client';
|
2
|
+
export class Health {
|
7
3
|
constructor(client) {
|
8
4
|
this.client = client;
|
9
5
|
}
|
@@ -231,7 +227,7 @@ class Health {
|
|
231
227
|
*/
|
232
228
|
async getFailedJobs(name, threshold) {
|
233
229
|
if (typeof name === 'undefined') {
|
234
|
-
throw new
|
230
|
+
throw new AppcondaException('Missing required parameter: "name"');
|
235
231
|
}
|
236
232
|
const apiPath = '/health/queue/failed/{name}'.replace('{name}', name);
|
237
233
|
const payload = {};
|
@@ -464,4 +460,3 @@ class Health {
|
|
464
460
|
return await this.client.call('get', uri, apiHeaders, payload);
|
465
461
|
}
|
466
462
|
}
|
467
|
-
exports.Health = Health;
|
package/dist/services/locale.js
CHANGED
@@ -1,8 +1,4 @@
|
|
1
|
-
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.Locale = void 0;
|
4
|
-
class Locale {
|
5
|
-
client;
|
1
|
+
export class Locale {
|
6
2
|
constructor(client) {
|
7
3
|
this.client = client;
|
8
4
|
}
|
@@ -145,4 +141,3 @@ class Locale {
|
|
145
141
|
return await this.client.call('get', uri, apiHeaders, payload);
|
146
142
|
}
|
147
143
|
}
|
148
|
-
exports.Locale = Locale;
|