@appconda/nextjs 1.0.115 → 1.0.117
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 +10 -0
- package/dist/actions/actionClient.js +41 -0
- package/dist/actions/auth.d.ts +1 -0
- package/dist/actions/auth.js +7 -0
- package/dist/actions/authOptions.d.ts +5 -0
- package/dist/actions/authOptions.js +235 -0
- package/dist/actions/index.d.ts +3 -0
- package/dist/actions/index.js +4 -0
- package/dist/actions/nextAuthHandler.d.ts +1 -0
- package/dist/actions/nextAuthHandler.js +6 -0
- package/dist/client.d.ts +141 -0
- package/dist/client.js +335 -0
- package/dist/decorators/Cache.d.ts +1 -0
- package/dist/decorators/Cache.js +79 -0
- package/dist/decorators/CacheKey.d.ts +1 -0
- package/dist/decorators/CacheKey.js +9 -0
- package/dist/decorators/Invalidate.d.ts +1 -0
- package/dist/decorators/Invalidate.js +47 -0
- package/dist/enums/api-service.d.ts +13 -0
- package/dist/enums/api-service.js +15 -0
- package/dist/enums/api.d.ts +5 -0
- package/dist/enums/api.js +7 -0
- package/dist/enums/auth-method.d.ts +9 -0
- package/dist/enums/auth-method.js +11 -0
- package/dist/enums/browser.d.ts +16 -0
- package/dist/enums/browser.js +18 -0
- package/dist/enums/compression.d.ts +5 -0
- package/dist/enums/compression.js +7 -0
- package/dist/enums/credit-card.d.ts +18 -0
- package/dist/enums/credit-card.js +20 -0
- package/dist/enums/database-usage-range.d.ts +5 -0
- package/dist/enums/database-usage-range.js +7 -0
- package/dist/enums/email-template-locale.d.ts +133 -0
- package/dist/enums/email-template-locale.js +135 -0
- package/dist/enums/email-template-type.d.ts +9 -0
- package/dist/enums/email-template-type.js +11 -0
- package/dist/enums/entities/EntityLimitType.d.ts +4 -0
- package/dist/enums/entities/EntityLimitType.js +6 -0
- package/dist/enums/entities/PropertyAttributeName.d.ts +27 -0
- package/dist/enums/entities/PropertyAttributeName.js +29 -0
- package/dist/enums/entities/PropertyCondition.d.ts +7 -0
- package/dist/enums/entities/PropertyCondition.js +10 -0
- package/dist/enums/entities/PropertyType.d.ts +12 -0
- package/dist/enums/entities/PropertyType.js +18 -0
- package/dist/enums/entities/PropertyValueType.d.ts +6 -0
- package/dist/enums/entities/PropertyValueType.js +8 -0
- package/dist/enums/entities/RowAccess.d.ts +2 -0
- package/dist/enums/entities/RowAccess.js +2 -0
- package/dist/enums/entities/ViewFilterCondition.d.ts +12 -0
- package/dist/enums/entities/ViewFilterCondition.js +14 -0
- package/dist/enums/execution-method.d.ts +8 -0
- package/dist/enums/execution-method.js +10 -0
- package/dist/enums/flag.d.ts +197 -0
- package/dist/enums/flag.js +199 -0
- package/dist/enums/function-usage-range.d.ts +5 -0
- package/dist/enums/function-usage-range.js +7 -0
- package/dist/enums/image-format.d.ts +7 -0
- package/dist/enums/image-format.js +9 -0
- package/dist/enums/image-gravity.d.ts +11 -0
- package/dist/enums/image-gravity.js +13 -0
- package/dist/enums/index-type.d.ts +5 -0
- package/dist/enums/index-type.js +7 -0
- package/dist/enums/messaging-provider-type.d.ts +5 -0
- package/dist/enums/messaging-provider-type.js +7 -0
- package/dist/enums/name.d.ts +14 -0
- package/dist/enums/name.js +16 -0
- package/dist/enums/o-auth-provider copy.d.ts +41 -0
- package/dist/enums/o-auth-provider copy.js +43 -0
- package/dist/enums/password-hash.d.ts +13 -0
- package/dist/enums/password-hash.js +15 -0
- package/dist/enums/platform-type.d.ts +17 -0
- package/dist/enums/platform-type.js +19 -0
- package/dist/enums/project-usage-range.d.ts +4 -0
- package/dist/enums/project-usage-range.js +6 -0
- package/dist/enums/region.d.ts +4 -0
- package/dist/enums/region.js +6 -0
- package/dist/enums/relation-mutate.d.ts +5 -0
- package/dist/enums/relation-mutate.js +7 -0
- package/dist/enums/relationship-type.d.ts +6 -0
- package/dist/enums/relationship-type.js +8 -0
- package/dist/enums/resource-type.d.ts +4 -0
- package/dist/enums/resource-type.js +6 -0
- package/dist/enums/runtime.d.ts +48 -0
- package/dist/enums/runtime.js +50 -0
- package/dist/enums/s-m-t-p-secure.d.ts +3 -0
- package/dist/enums/s-m-t-p-secure.js +5 -0
- package/dist/enums/shared/ApplicationLayout.d.ts +4 -0
- package/dist/enums/shared/ApplicationLayout.js +6 -0
- package/dist/enums/shared/Colors.d.ts +24 -0
- package/dist/enums/shared/Colors.js +26 -0
- package/dist/enums/shared/InputType.d.ts +6 -0
- package/dist/enums/shared/InputType.js +8 -0
- package/dist/enums/shared/Periodicity.d.ts +7 -0
- package/dist/enums/shared/Periodicity.js +9 -0
- package/dist/enums/shared/SvgIcon.d.ts +37 -0
- package/dist/enums/shared/SvgIcon.js +39 -0
- package/dist/enums/shared/Theme.d.ts +4 -0
- package/dist/enums/shared/Theme.js +6 -0
- package/dist/enums/sms-template-locale.d.ts +133 -0
- package/dist/enums/sms-template-locale.js +135 -0
- package/dist/enums/sms-template-type.d.ts +6 -0
- package/dist/enums/sms-template-type.js +8 -0
- package/dist/enums/smtp-encryption.d.ts +5 -0
- package/dist/enums/smtp-encryption.js +7 -0
- package/dist/enums/storage-usage-range.d.ts +5 -0
- package/dist/enums/storage-usage-range.js +7 -0
- package/dist/enums/subscriptions/PricingModel.d.ts +11 -0
- package/dist/enums/subscriptions/PricingModel.js +12 -0
- package/dist/enums/subscriptions/SubscriptionBillingPeriod.d.ts +10 -0
- package/dist/enums/subscriptions/SubscriptionBillingPeriod.js +11 -0
- package/dist/enums/subscriptions/SubscriptionFeatureLimitType.d.ts +10 -0
- package/dist/enums/subscriptions/SubscriptionFeatureLimitType.js +13 -0
- package/dist/enums/subscriptions/SubscriptionPriceType.d.ts +7 -0
- package/dist/enums/subscriptions/SubscriptionPriceType.js +8 -0
- package/dist/enums/tenants/LinkedAccountStatus.d.ts +5 -0
- package/dist/enums/tenants/LinkedAccountStatus.js +7 -0
- package/dist/enums/tenants/TenantUserJoined.d.ts +6 -0
- package/dist/enums/tenants/TenantUserJoined.js +8 -0
- package/dist/enums/tenants/TenantUserStatus.d.ts +6 -0
- package/dist/enums/tenants/TenantUserStatus.js +8 -0
- package/dist/enums/tenants/TenantUserType.d.ts +5 -0
- package/dist/enums/tenants/TenantUserType.js +7 -0
- package/dist/enums/user-usage-range.d.ts +5 -0
- package/dist/enums/user-usage-range.js +7 -0
- package/dist/getAppcondaClient.d.ts +2 -0
- package/dist/getAppcondaClient.js +44 -0
- package/dist/getSDKForCurrentUser.d.ts +43 -0
- package/dist/getSDKForCurrentUser.js +76 -0
- package/dist/getSDKForService.d.ts +6 -0
- package/dist/getSDKForService.js +51 -0
- package/dist/getSDKForTenant.d.ts +20 -0
- package/dist/getSDKForTenant.js +44 -0
- package/dist/id.d.ts +20 -0
- package/dist/id.js +45 -0
- package/dist/index.d.ts +44 -0
- package/dist/index.js +42 -0
- package/dist/inputFile.d.ts +6 -0
- package/dist/inputFile.js +17 -0
- package/dist/lib/Cache/Adapter.d.ts +10 -0
- package/dist/lib/Cache/Adapter.js +2 -0
- package/dist/lib/Cache/Adapters/Filesystem.d.ts +16 -0
- package/dist/lib/Cache/Adapters/Filesystem.js +103 -0
- package/dist/lib/Cache/Adapters/Memory.d.ts +18 -0
- package/dist/lib/Cache/Adapters/Memory.js +47 -0
- package/dist/lib/Cache/Adapters/None.d.ts +12 -0
- package/dist/lib/Cache/Adapters/None.js +28 -0
- package/dist/lib/Cache/Adapters/Sharding.d.ts +17 -0
- package/dist/lib/Cache/Adapters/Sharding.js +73 -0
- package/dist/lib/Cache/Cache.d.ts +16 -0
- package/dist/lib/Cache/Cache.js +52 -0
- package/dist/lib/Cache/index.d.ts +4 -0
- package/dist/lib/Cache/index.js +5 -0
- package/dist/lib/Cache/test.d.ts +0 -0
- package/dist/lib/Cache/test.js +1 -0
- package/dist/lib/Registry/Registry.d.ts +38 -0
- package/dist/lib/Registry/Registry.js +56 -0
- package/dist/lib/Registry/index.d.ts +1 -0
- package/dist/lib/Registry/index.js +2 -0
- package/dist/lib/Services.d.ts +6 -0
- package/dist/lib/Services.js +14 -0
- package/dist/lib/crypto.d.ts +23 -0
- package/dist/lib/crypto.js +78 -0
- package/dist/lib/env.d.ts +1 -0
- package/dist/lib/env.js +137 -0
- package/dist/lib/errors.d.ts +70 -0
- package/dist/lib/errors.js +76 -0
- package/dist/lib/index.d.ts +2 -0
- package/dist/lib/index.js +3 -0
- package/dist/lib/jwt.d.ts +12 -0
- package/dist/lib/jwt.js +103 -0
- package/dist/models.d.ts +3272 -0
- package/dist/models.js +2 -0
- package/dist/modules/account/actions.d.ts +31 -0
- package/dist/modules/account/actions.js +18 -0
- package/dist/modules/account/enums/authentication-factor.d.ts +6 -0
- package/dist/modules/account/enums/authentication-factor.js +8 -0
- package/dist/modules/account/enums/authenticator-type.d.ts +3 -0
- package/dist/modules/account/enums/authenticator-type.js +5 -0
- package/dist/modules/account/enums/o-auth-provider.d.ts +41 -0
- package/dist/modules/account/enums/o-auth-provider.js +43 -0
- package/dist/modules/account/index.d.ts +3 -0
- package/dist/modules/account/index.js +4 -0
- package/dist/modules/account/schema.d.ts +17 -0
- package/dist/modules/account/schema.js +8 -0
- package/dist/modules/account/service.d.ts +530 -0
- package/dist/modules/account/service.js +1260 -0
- package/dist/modules/account/types.d.ts +411 -0
- package/dist/modules/account/types.js +2 -0
- package/dist/modules/acl/service.d.ts +26 -0
- package/dist/modules/acl/service.js +27 -0
- package/dist/modules/agent/action.d.ts +57 -0
- package/dist/modules/agent/action.js +64 -0
- package/dist/modules/agent/index.d.ts +4 -0
- package/dist/modules/agent/index.js +5 -0
- package/dist/modules/agent/schema.d.ts +48 -0
- package/dist/modules/agent/schema.js +21 -0
- package/dist/modules/agent/service.d.ts +12 -0
- package/dist/modules/agent/service.js +22 -0
- package/dist/modules/agent/types.d.ts +11 -0
- package/dist/modules/agent/types.js +2 -0
- package/dist/modules/ai/index.d.ts +1 -0
- package/dist/modules/ai/index.js +2 -0
- package/dist/modules/ai/node/actions.d.ts +4 -0
- package/dist/modules/ai/node/actions.js +16 -0
- package/dist/modules/ai/node/index.d.ts +2 -0
- package/dist/modules/ai/node/index.js +3 -0
- package/dist/modules/ai/node/service.d.ts +5 -0
- package/dist/modules/ai/node/service.js +12 -0
- package/dist/modules/index.d.ts +6 -0
- package/dist/modules/index.js +7 -0
- package/dist/modules/task/action.d.ts +201 -0
- package/dist/modules/task/action.js +147 -0
- package/dist/modules/task/index.d.ts +4 -0
- package/dist/modules/task/index.js +5 -0
- package/dist/modules/task/schema.d.ts +107 -0
- package/dist/modules/task/schema.js +44 -0
- package/dist/modules/task/service.d.ts +19 -0
- package/dist/modules/task/service.js +43 -0
- package/dist/modules/task/types.d.ts +84 -0
- package/dist/modules/task/types.js +2 -0
- package/dist/modules/tenant/actions.d.ts +49 -0
- package/dist/modules/tenant/actions.js +38 -0
- package/dist/modules/tenant/index.d.ts +3 -0
- package/dist/modules/tenant/index.js +4 -0
- package/dist/modules/tenant/tenant.d.ts +32 -0
- package/dist/modules/tenant/tenant.js +125 -0
- package/dist/modules/tenant/types.d.ts +11 -0
- package/dist/modules/tenant/types.js +2 -0
- package/dist/modules/waitlist/action.d.ts +71 -0
- package/dist/modules/waitlist/action.js +78 -0
- package/dist/modules/waitlist/index.d.ts +4 -0
- package/dist/modules/waitlist/index.js +5 -0
- package/dist/modules/waitlist/schema.d.ts +39 -0
- package/dist/modules/waitlist/schema.js +18 -0
- package/dist/modules/waitlist/service.d.ts +13 -0
- package/dist/modules/waitlist/service.js +28 -0
- package/dist/modules/waitlist/types.d.ts +14 -0
- package/dist/modules/waitlist/types.js +2 -0
- package/dist/permission.d.ts +43 -0
- package/dist/permission.js +54 -0
- package/dist/query.d.ts +194 -0
- package/dist/query.js +204 -0
- package/dist/role.d.ts +70 -0
- package/dist/role.js +94 -0
- package/dist/schemas/nodes.d.ts +0 -0
- package/dist/schemas/nodes.js +1 -0
- package/dist/service-client.d.ts +7 -0
- package/dist/service-client.js +14 -0
- package/dist/service.d.ts +11 -0
- package/dist/service.js +23 -0
- package/dist/services/applets.d.ts +9 -0
- package/dist/services/applets.js +40 -0
- package/dist/services/avatars.d.ts +115 -0
- package/dist/services/avatars.js +251 -0
- package/dist/services/chat-flow.d.ts +7 -0
- package/dist/services/chat-flow.js +26 -0
- package/dist/services/community.d.ts +19 -0
- package/dist/services/community.js +69 -0
- package/dist/services/configuration.d.ts +5 -0
- package/dist/services/configuration.js +11 -0
- package/dist/services/databases.d.ts +613 -0
- package/dist/services/databases.js +1736 -0
- package/dist/services/functions.d.ts +319 -0
- package/dist/services/functions.js +810 -0
- package/dist/services/graphql.d.ts +25 -0
- package/dist/services/graphql.js +57 -0
- package/dist/services/health.d.ts +231 -0
- package/dist/services/health.js +463 -0
- package/dist/services/locale.d.ts +80 -0
- package/dist/services/locale.js +144 -0
- package/dist/services/messaging.d.ts +685 -0
- package/dist/services/messaging.js +1920 -0
- package/dist/services/permissions.d.ts +20 -0
- package/dist/services/permissions.js +90 -0
- package/dist/services/pricing.d.ts +15 -0
- package/dist/services/pricing.js +21 -0
- package/dist/services/projects.d.ts +542 -0
- package/dist/services/projects.js +1526 -0
- package/dist/services/roles.d.ts +19 -0
- package/dist/services/roles.js +72 -0
- package/dist/services/schema.d.ts +17 -0
- package/dist/services/schema.js +48 -0
- package/dist/services/storage.d.ts +189 -0
- package/dist/services/storage.js +474 -0
- package/dist/services/subscription.d.ts +15 -0
- package/dist/services/subscription.js +30 -0
- package/dist/services/teams.d.ts +167 -0
- package/dist/services/teams.js +395 -0
- package/dist/services/tenant-subscription.d.ts +12 -0
- package/dist/services/tenant-subscription.js +52 -0
- package/dist/services/users.d.ts +499 -0
- package/dist/services/users.js +1283 -0
- package/package.json +3 -3
- package/src/modules/task/action.ts +2 -2
@@ -0,0 +1,25 @@
|
|
1
|
+
import { Client } from '../client';
|
2
|
+
export declare class Graphql {
|
3
|
+
client: Client;
|
4
|
+
constructor(client: Client);
|
5
|
+
/**
|
6
|
+
* GraphQL endpoint
|
7
|
+
*
|
8
|
+
* Execute a GraphQL mutation.
|
9
|
+
*
|
10
|
+
* @param {object} query
|
11
|
+
* @throws {AppcondaException}
|
12
|
+
* @returns {Promise<{}>}
|
13
|
+
*/
|
14
|
+
query(query: object): Promise<{}>;
|
15
|
+
/**
|
16
|
+
* GraphQL endpoint
|
17
|
+
*
|
18
|
+
* Execute a GraphQL mutation.
|
19
|
+
*
|
20
|
+
* @param {object} query
|
21
|
+
* @throws {AppcondaException}
|
22
|
+
* @returns {Promise<{}>}
|
23
|
+
*/
|
24
|
+
mutation(query: object): Promise<{}>;
|
25
|
+
}
|
@@ -0,0 +1,57 @@
|
|
1
|
+
import { AppcondaException } from '../client';
|
2
|
+
export class Graphql {
|
3
|
+
constructor(client) {
|
4
|
+
this.client = client;
|
5
|
+
}
|
6
|
+
/**
|
7
|
+
* GraphQL endpoint
|
8
|
+
*
|
9
|
+
* Execute a GraphQL mutation.
|
10
|
+
*
|
11
|
+
* @param {object} query
|
12
|
+
* @throws {AppcondaException}
|
13
|
+
* @returns {Promise<{}>}
|
14
|
+
*/
|
15
|
+
async query(query) {
|
16
|
+
if (typeof query === 'undefined') {
|
17
|
+
throw new AppcondaException('Missing required parameter: "query"');
|
18
|
+
}
|
19
|
+
const apiPath = '/graphql';
|
20
|
+
const payload = {};
|
21
|
+
if (typeof query !== 'undefined') {
|
22
|
+
payload['query'] = query;
|
23
|
+
}
|
24
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
25
|
+
const apiHeaders = {
|
26
|
+
'x-sdk-graphql': 'true',
|
27
|
+
'content-type': 'application/json',
|
28
|
+
};
|
29
|
+
return await this.client.call('post', uri, apiHeaders, payload);
|
30
|
+
}
|
31
|
+
/**
|
32
|
+
* GraphQL endpoint
|
33
|
+
*
|
34
|
+
* Execute a GraphQL mutation.
|
35
|
+
*
|
36
|
+
* @param {object} query
|
37
|
+
* @throws {AppcondaException}
|
38
|
+
* @returns {Promise<{}>}
|
39
|
+
*/
|
40
|
+
async mutation(query) {
|
41
|
+
if (typeof query === 'undefined') {
|
42
|
+
throw new AppcondaException('Missing required parameter: "query"');
|
43
|
+
}
|
44
|
+
const apiPath = '/graphql/mutation';
|
45
|
+
const payload = {};
|
46
|
+
if (typeof query !== 'undefined') {
|
47
|
+
payload['query'] = query;
|
48
|
+
}
|
49
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
50
|
+
const apiHeaders = {
|
51
|
+
'x-sdk-graphql': 'true',
|
52
|
+
'content-type': 'application/json',
|
53
|
+
};
|
54
|
+
return await this.client.call('post', uri, apiHeaders, payload);
|
55
|
+
}
|
56
|
+
}
|
57
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ3JhcGhxbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9zZXJ2aWNlcy9ncmFwaHFsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxpQkFBaUIsRUFBd0MsTUFBTSxXQUFXLENBQUM7QUFHcEYsTUFBTSxPQUFPLE9BQU87SUFHaEIsWUFBWSxNQUFjO1FBQ3RCLElBQUksQ0FBQyxNQUFNLEdBQUcsTUFBTSxDQUFDO0lBQ3pCLENBQUM7SUFFRDs7Ozs7Ozs7T0FRRztJQUNILEtBQUssQ0FBQyxLQUFLLENBQUMsS0FBYTtRQUNyQixJQUFJLE9BQU8sS0FBSyxLQUFLLFdBQVcsRUFBRSxDQUFDO1lBQy9CLE1BQU0sSUFBSSxpQkFBaUIsQ0FBQyxxQ0FBcUMsQ0FBQyxDQUFDO1FBQ3ZFLENBQUM7UUFDRCxNQUFNLE9BQU8sR0FBRyxVQUFVLENBQUM7UUFDM0IsTUFBTSxPQUFPLEdBQVksRUFBRSxDQUFDO1FBQzVCLElBQUksT0FBTyxLQUFLLEtBQUssV0FBVyxFQUFFLENBQUM7WUFDL0IsT0FBTyxDQUFDLE9BQU8sQ0FBQyxHQUFHLEtBQUssQ0FBQztRQUM3QixDQUFDO1FBQ0QsTUFBTSxHQUFHLEdBQ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tdXRhdGlvbic7XG4gICAgICAgIGNvbnN0IHBheWxvYWQ6IFBheWxvYWQgPSB7fTtcbiAgICAgICAgaWYgKHR5cGVvZiBxdWVyeSAhPT0gJ3VuZGVmaW5lZCcpIHtcbiAgICAgICAgICAgIHBheWxvYWRbJ3F1ZXJ5J10gPSBxdWVyeTtcbiAgICAgICAgfVxuICAgICAgICBjb25zdCB1cmkgPSBuZXcgVVJMKHRoaXMuY2xpZW50LmNvbmZpZy5lbmRwb2ludCArIGFwaVBhdGgpO1xuXG4gICAgICAgIGNvbnN0IGFwaUhlYWRlcnM6IHsgW2hlYWRlcjogc3RyaW5nXTogc3RyaW5nIH0gPSB7XG4gICAgICAgICAgICAneC1zZGstZ3JhcGhxbCc6ICd0cnVlJyxcbiAgICAgICAgICAgICdjb250ZW50LXR5cGUnOiAnYXBwbGljYXRpb24vanNvbicsXG4gICAgICAgIH1cblxuICAgICAgICByZXR1cm4gYXdhaXQgdGhpcy5jbGllbnQuY2FsbChcbiAgICAgICAgICAgICdwb3N0JyxcbiAgICAgICAgICAgIHVyaSxcbiAgICAgICAgICAgIGFwaUhlYWRlcnMsXG4gICAgICAgICAgICBwYXlsb2FkLFxuICAgICAgICApO1xuICAgIH1cbn1cbiJdfQ==
|
@@ -0,0 +1,231 @@
|
|
1
|
+
import { Client } from '../client';
|
2
|
+
import type { Models } from '../models';
|
3
|
+
import { Name } from '../enums/name';
|
4
|
+
export declare class Health {
|
5
|
+
client: Client;
|
6
|
+
constructor(client: Client);
|
7
|
+
/**
|
8
|
+
* Get HTTP
|
9
|
+
*
|
10
|
+
* Check the Appconda HTTP server is up and responsive.
|
11
|
+
*
|
12
|
+
* @throws {AppcondaException}
|
13
|
+
* @returns {Promise<Models.HealthStatus>}
|
14
|
+
*/
|
15
|
+
get(): Promise<Models.HealthStatus>;
|
16
|
+
/**
|
17
|
+
* Get antivirus
|
18
|
+
*
|
19
|
+
* Check the Appconda Antivirus server is up and connection is successful.
|
20
|
+
*
|
21
|
+
* @throws {AppcondaException}
|
22
|
+
* @returns {Promise<Models.HealthAntivirus>}
|
23
|
+
*/
|
24
|
+
getAntivirus(): Promise<Models.HealthAntivirus>;
|
25
|
+
/**
|
26
|
+
* Get cache
|
27
|
+
*
|
28
|
+
* Check the Appconda in-memory cache servers are up and connection is successful.
|
29
|
+
*
|
30
|
+
* @throws {AppcondaException}
|
31
|
+
* @returns {Promise<Models.HealthStatus>}
|
32
|
+
*/
|
33
|
+
getCache(): Promise<Models.HealthStatus>;
|
34
|
+
/**
|
35
|
+
* Get the SSL certificate for a domain
|
36
|
+
*
|
37
|
+
* Get the SSL certificate for a domain
|
38
|
+
*
|
39
|
+
* @param {string} domain
|
40
|
+
* @throws {AppcondaException}
|
41
|
+
* @returns {Promise<Models.HealthCertificate>}
|
42
|
+
*/
|
43
|
+
getCertificate(domain?: string): Promise<Models.HealthCertificate>;
|
44
|
+
/**
|
45
|
+
* Get DB
|
46
|
+
*
|
47
|
+
* Check the Appconda database servers are up and connection is successful.
|
48
|
+
*
|
49
|
+
* @throws {AppcondaException}
|
50
|
+
* @returns {Promise<Models.HealthStatus>}
|
51
|
+
*/
|
52
|
+
getDB(): Promise<Models.HealthStatus>;
|
53
|
+
/**
|
54
|
+
* Get pubsub
|
55
|
+
*
|
56
|
+
* Check the Appconda pub-sub servers are up and connection is successful.
|
57
|
+
*
|
58
|
+
* @throws {AppcondaException}
|
59
|
+
* @returns {Promise<Models.HealthStatus>}
|
60
|
+
*/
|
61
|
+
getPubSub(): Promise<Models.HealthStatus>;
|
62
|
+
/**
|
63
|
+
* Get queue
|
64
|
+
*
|
65
|
+
* Check the Appconda queue messaging servers are up and connection is successful.
|
66
|
+
*
|
67
|
+
* @throws {AppcondaException}
|
68
|
+
* @returns {Promise<Models.HealthStatus>}
|
69
|
+
*/
|
70
|
+
getQueue(): Promise<Models.HealthStatus>;
|
71
|
+
/**
|
72
|
+
* Get builds queue
|
73
|
+
*
|
74
|
+
* Get the number of builds that are waiting to be processed in the Appconda internal queue server.
|
75
|
+
*
|
76
|
+
* @param {number} threshold
|
77
|
+
* @throws {AppcondaException}
|
78
|
+
* @returns {Promise<Models.HealthQueue>}
|
79
|
+
*/
|
80
|
+
getQueueBuilds(threshold?: number): Promise<Models.HealthQueue>;
|
81
|
+
/**
|
82
|
+
* Get certificates queue
|
83
|
+
*
|
84
|
+
* Get the number of certificates that are waiting to be issued against [Letsencrypt](https://letsencrypt.org/) in the Appconda internal queue server.
|
85
|
+
*
|
86
|
+
* @param {number} threshold
|
87
|
+
* @throws {AppcondaException}
|
88
|
+
* @returns {Promise<Models.HealthQueue>}
|
89
|
+
*/
|
90
|
+
getQueueCertificates(threshold?: number): Promise<Models.HealthQueue>;
|
91
|
+
/**
|
92
|
+
* Get databases queue
|
93
|
+
*
|
94
|
+
* Get the number of database changes that are waiting to be processed in the Appconda internal queue server.
|
95
|
+
*
|
96
|
+
* @param {string} name
|
97
|
+
* @param {number} threshold
|
98
|
+
* @throws {AppcondaException}
|
99
|
+
* @returns {Promise<Models.HealthQueue>}
|
100
|
+
*/
|
101
|
+
getQueueDatabases(name?: string, threshold?: number): Promise<Models.HealthQueue>;
|
102
|
+
/**
|
103
|
+
* Get deletes queue
|
104
|
+
*
|
105
|
+
* Get the number of background destructive changes that are waiting to be processed in the Appconda internal queue server.
|
106
|
+
*
|
107
|
+
* @param {number} threshold
|
108
|
+
* @throws {AppcondaException}
|
109
|
+
* @returns {Promise<Models.HealthQueue>}
|
110
|
+
*/
|
111
|
+
getQueueDeletes(threshold?: number): Promise<Models.HealthQueue>;
|
112
|
+
/**
|
113
|
+
* Get number of failed queue jobs
|
114
|
+
*
|
115
|
+
* Returns the amount of failed jobs in a given queue.
|
116
|
+
|
117
|
+
*
|
118
|
+
* @param {Name} name
|
119
|
+
* @param {number} threshold
|
120
|
+
* @throws {AppcondaException}
|
121
|
+
* @returns {Promise<Models.HealthQueue>}
|
122
|
+
*/
|
123
|
+
getFailedJobs(name: Name, threshold?: number): Promise<Models.HealthQueue>;
|
124
|
+
/**
|
125
|
+
* Get functions queue
|
126
|
+
*
|
127
|
+
* Get the number of function executions that are waiting to be processed in the Appconda internal queue server.
|
128
|
+
*
|
129
|
+
* @param {number} threshold
|
130
|
+
* @throws {AppcondaException}
|
131
|
+
* @returns {Promise<Models.HealthQueue>}
|
132
|
+
*/
|
133
|
+
getQueueFunctions(threshold?: number): Promise<Models.HealthQueue>;
|
134
|
+
/**
|
135
|
+
* Get logs queue
|
136
|
+
*
|
137
|
+
* Get the number of logs that are waiting to be processed in the Appconda internal queue server.
|
138
|
+
*
|
139
|
+
* @param {number} threshold
|
140
|
+
* @throws {AppcondaException}
|
141
|
+
* @returns {Promise<Models.HealthQueue>}
|
142
|
+
*/
|
143
|
+
getQueueLogs(threshold?: number): Promise<Models.HealthQueue>;
|
144
|
+
/**
|
145
|
+
* Get mails queue
|
146
|
+
*
|
147
|
+
* Get the number of mails that are waiting to be processed in the Appconda internal queue server.
|
148
|
+
*
|
149
|
+
* @param {number} threshold
|
150
|
+
* @throws {AppcondaException}
|
151
|
+
* @returns {Promise<Models.HealthQueue>}
|
152
|
+
*/
|
153
|
+
getQueueMails(threshold?: number): Promise<Models.HealthQueue>;
|
154
|
+
/**
|
155
|
+
* Get messaging queue
|
156
|
+
*
|
157
|
+
* Get the number of messages that are waiting to be processed in the Appconda internal queue server.
|
158
|
+
*
|
159
|
+
* @param {number} threshold
|
160
|
+
* @throws {AppcondaException}
|
161
|
+
* @returns {Promise<Models.HealthQueue>}
|
162
|
+
*/
|
163
|
+
getQueueMessaging(threshold?: number): Promise<Models.HealthQueue>;
|
164
|
+
/**
|
165
|
+
* Get migrations queue
|
166
|
+
*
|
167
|
+
* Get the number of migrations that are waiting to be processed in the Appconda internal queue server.
|
168
|
+
*
|
169
|
+
* @param {number} threshold
|
170
|
+
* @throws {AppcondaException}
|
171
|
+
* @returns {Promise<Models.HealthQueue>}
|
172
|
+
*/
|
173
|
+
getQueueMigrations(threshold?: number): Promise<Models.HealthQueue>;
|
174
|
+
/**
|
175
|
+
* Get usage queue
|
176
|
+
*
|
177
|
+
* Get the number of metrics that are waiting to be processed in the Appconda internal queue server.
|
178
|
+
*
|
179
|
+
* @param {number} threshold
|
180
|
+
* @throws {AppcondaException}
|
181
|
+
* @returns {Promise<Models.HealthQueue>}
|
182
|
+
*/
|
183
|
+
getQueueUsage(threshold?: number): Promise<Models.HealthQueue>;
|
184
|
+
/**
|
185
|
+
* Get usage dump queue
|
186
|
+
*
|
187
|
+
* Get the number of projects containing metrics that are waiting to be processed in the Appconda internal queue server.
|
188
|
+
*
|
189
|
+
* @param {number} threshold
|
190
|
+
* @throws {AppcondaException}
|
191
|
+
* @returns {Promise<Models.HealthQueue>}
|
192
|
+
*/
|
193
|
+
getQueueUsageDump(threshold?: number): Promise<Models.HealthQueue>;
|
194
|
+
/**
|
195
|
+
* Get webhooks queue
|
196
|
+
*
|
197
|
+
* Get the number of webhooks that are waiting to be processed in the Appconda internal queue server.
|
198
|
+
*
|
199
|
+
* @param {number} threshold
|
200
|
+
* @throws {AppcondaException}
|
201
|
+
* @returns {Promise<Models.HealthQueue>}
|
202
|
+
*/
|
203
|
+
getQueueWebhooks(threshold?: number): Promise<Models.HealthQueue>;
|
204
|
+
/**
|
205
|
+
* Get storage
|
206
|
+
*
|
207
|
+
* Check the Appconda storage device is up and connection is successful.
|
208
|
+
*
|
209
|
+
* @throws {AppcondaException}
|
210
|
+
* @returns {Promise<Models.HealthStatus>}
|
211
|
+
*/
|
212
|
+
getStorage(): Promise<Models.HealthStatus>;
|
213
|
+
/**
|
214
|
+
* Get local storage
|
215
|
+
*
|
216
|
+
* Check the Appconda local storage device is up and connection is successful.
|
217
|
+
*
|
218
|
+
* @throws {AppcondaException}
|
219
|
+
* @returns {Promise<Models.HealthStatus>}
|
220
|
+
*/
|
221
|
+
getStorageLocal(): Promise<Models.HealthStatus>;
|
222
|
+
/**
|
223
|
+
* Get time
|
224
|
+
*
|
225
|
+
* Check the Appconda server time is synced with Google remote NTP server. We use this technology to smoothly handle leap seconds with no disruptive events. The [Network Time Protocol](https://en.wikipedia.org/wiki/Network_Time_Protocol) (NTP) is used by hundreds of millions of computers and devices to synchronize their clocks over the Internet. If your computer sets its own clock, it likely uses NTP.
|
226
|
+
*
|
227
|
+
* @throws {AppcondaException}
|
228
|
+
* @returns {Promise<Models.HealthTime>}
|
229
|
+
*/
|
230
|
+
getTime(): Promise<Models.HealthTime>;
|
231
|
+
}
|