@appconda/nextjs 1.0.112 → 1.0.114

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.
Files changed (308) hide show
  1. package/package.json +3 -3
  2. package/src/modules/task/action.ts +11 -31
  3. package/dist/actions/actionClient.d.ts +0 -10
  4. package/dist/actions/actionClient.js +0 -38
  5. package/dist/actions/auth.d.ts +0 -1
  6. package/dist/actions/auth.js +0 -6
  7. package/dist/actions/authOptions.d.ts +0 -5
  8. package/dist/actions/authOptions.js +0 -235
  9. package/dist/actions/index.d.ts +0 -3
  10. package/dist/actions/index.js +0 -4
  11. package/dist/actions/nextAuthHandler.d.ts +0 -1
  12. package/dist/actions/nextAuthHandler.js +0 -6
  13. package/dist/actions/nodes.d.ts +0 -4
  14. package/dist/actions/nodes.js +0 -15
  15. package/dist/client.d.ts +0 -141
  16. package/dist/client.js +0 -335
  17. package/dist/decorators/Cache.d.ts +0 -1
  18. package/dist/decorators/Cache.js +0 -79
  19. package/dist/decorators/CacheKey.d.ts +0 -1
  20. package/dist/decorators/CacheKey.js +0 -9
  21. package/dist/decorators/Invalidate.d.ts +0 -1
  22. package/dist/decorators/Invalidate.js +0 -47
  23. package/dist/enums/api-service.d.ts +0 -13
  24. package/dist/enums/api-service.js +0 -15
  25. package/dist/enums/api.d.ts +0 -5
  26. package/dist/enums/api.js +0 -7
  27. package/dist/enums/auth-method.d.ts +0 -9
  28. package/dist/enums/auth-method.js +0 -11
  29. package/dist/enums/authentication-factor.d.ts +0 -6
  30. package/dist/enums/authentication-factor.js +0 -7
  31. package/dist/enums/authenticator-type.d.ts +0 -3
  32. package/dist/enums/authenticator-type.js +0 -4
  33. package/dist/enums/browser.d.ts +0 -16
  34. package/dist/enums/browser.js +0 -18
  35. package/dist/enums/compression.d.ts +0 -5
  36. package/dist/enums/compression.js +0 -7
  37. package/dist/enums/credit-card.d.ts +0 -18
  38. package/dist/enums/credit-card.js +0 -20
  39. package/dist/enums/database-usage-range.d.ts +0 -5
  40. package/dist/enums/database-usage-range.js +0 -7
  41. package/dist/enums/email-template-locale.d.ts +0 -133
  42. package/dist/enums/email-template-locale.js +0 -135
  43. package/dist/enums/email-template-type.d.ts +0 -9
  44. package/dist/enums/email-template-type.js +0 -11
  45. package/dist/enums/entities/EntityLimitType.d.ts +0 -4
  46. package/dist/enums/entities/EntityLimitType.js +0 -6
  47. package/dist/enums/entities/PropertyAttributeName.d.ts +0 -27
  48. package/dist/enums/entities/PropertyAttributeName.js +0 -29
  49. package/dist/enums/entities/PropertyCondition.d.ts +0 -7
  50. package/dist/enums/entities/PropertyCondition.js +0 -10
  51. package/dist/enums/entities/PropertyType.d.ts +0 -12
  52. package/dist/enums/entities/PropertyType.js +0 -18
  53. package/dist/enums/entities/PropertyValueType.d.ts +0 -6
  54. package/dist/enums/entities/PropertyValueType.js +0 -8
  55. package/dist/enums/entities/RowAccess.d.ts +0 -2
  56. package/dist/enums/entities/RowAccess.js +0 -2
  57. package/dist/enums/entities/ViewFilterCondition.d.ts +0 -12
  58. package/dist/enums/entities/ViewFilterCondition.js +0 -14
  59. package/dist/enums/execution-method.d.ts +0 -8
  60. package/dist/enums/execution-method.js +0 -10
  61. package/dist/enums/flag.d.ts +0 -197
  62. package/dist/enums/flag.js +0 -199
  63. package/dist/enums/function-usage-range.d.ts +0 -5
  64. package/dist/enums/function-usage-range.js +0 -7
  65. package/dist/enums/image-format.d.ts +0 -7
  66. package/dist/enums/image-format.js +0 -9
  67. package/dist/enums/image-gravity.d.ts +0 -11
  68. package/dist/enums/image-gravity.js +0 -13
  69. package/dist/enums/index-type.d.ts +0 -5
  70. package/dist/enums/index-type.js +0 -7
  71. package/dist/enums/messaging-provider-type.d.ts +0 -5
  72. package/dist/enums/messaging-provider-type.js +0 -7
  73. package/dist/enums/name.d.ts +0 -14
  74. package/dist/enums/name.js +0 -16
  75. package/dist/enums/o-auth-provider copy.d.ts +0 -41
  76. package/dist/enums/o-auth-provider copy.js +0 -43
  77. package/dist/enums/o-auth-provider.d.ts +0 -41
  78. package/dist/enums/o-auth-provider.js +0 -42
  79. package/dist/enums/password-hash.d.ts +0 -13
  80. package/dist/enums/password-hash.js +0 -15
  81. package/dist/enums/platform-type.d.ts +0 -17
  82. package/dist/enums/platform-type.js +0 -19
  83. package/dist/enums/project-usage-range.d.ts +0 -4
  84. package/dist/enums/project-usage-range.js +0 -6
  85. package/dist/enums/region.d.ts +0 -4
  86. package/dist/enums/region.js +0 -6
  87. package/dist/enums/relation-mutate.d.ts +0 -5
  88. package/dist/enums/relation-mutate.js +0 -7
  89. package/dist/enums/relationship-type.d.ts +0 -6
  90. package/dist/enums/relationship-type.js +0 -8
  91. package/dist/enums/resource-type.d.ts +0 -4
  92. package/dist/enums/resource-type.js +0 -6
  93. package/dist/enums/runtime.d.ts +0 -48
  94. package/dist/enums/runtime.js +0 -50
  95. package/dist/enums/s-m-t-p-secure.d.ts +0 -3
  96. package/dist/enums/s-m-t-p-secure.js +0 -5
  97. package/dist/enums/shared/ApplicationLayout.d.ts +0 -4
  98. package/dist/enums/shared/ApplicationLayout.js +0 -6
  99. package/dist/enums/shared/Colors.d.ts +0 -24
  100. package/dist/enums/shared/Colors.js +0 -26
  101. package/dist/enums/shared/InputType.d.ts +0 -6
  102. package/dist/enums/shared/InputType.js +0 -8
  103. package/dist/enums/shared/Periodicity.d.ts +0 -7
  104. package/dist/enums/shared/Periodicity.js +0 -9
  105. package/dist/enums/shared/SvgIcon.d.ts +0 -37
  106. package/dist/enums/shared/SvgIcon.js +0 -39
  107. package/dist/enums/shared/Theme.d.ts +0 -4
  108. package/dist/enums/shared/Theme.js +0 -6
  109. package/dist/enums/sms-template-locale.d.ts +0 -133
  110. package/dist/enums/sms-template-locale.js +0 -135
  111. package/dist/enums/sms-template-type.d.ts +0 -6
  112. package/dist/enums/sms-template-type.js +0 -8
  113. package/dist/enums/smtp-encryption.d.ts +0 -5
  114. package/dist/enums/smtp-encryption.js +0 -7
  115. package/dist/enums/storage-usage-range.d.ts +0 -5
  116. package/dist/enums/storage-usage-range.js +0 -7
  117. package/dist/enums/subscriptions/PricingModel.d.ts +0 -11
  118. package/dist/enums/subscriptions/PricingModel.js +0 -12
  119. package/dist/enums/subscriptions/SubscriptionBillingPeriod.d.ts +0 -10
  120. package/dist/enums/subscriptions/SubscriptionBillingPeriod.js +0 -11
  121. package/dist/enums/subscriptions/SubscriptionFeatureLimitType.d.ts +0 -10
  122. package/dist/enums/subscriptions/SubscriptionFeatureLimitType.js +0 -13
  123. package/dist/enums/subscriptions/SubscriptionPriceType.d.ts +0 -7
  124. package/dist/enums/subscriptions/SubscriptionPriceType.js +0 -8
  125. package/dist/enums/tenants/LinkedAccountStatus.d.ts +0 -5
  126. package/dist/enums/tenants/LinkedAccountStatus.js +0 -7
  127. package/dist/enums/tenants/TenantUserJoined.d.ts +0 -6
  128. package/dist/enums/tenants/TenantUserJoined.js +0 -8
  129. package/dist/enums/tenants/TenantUserStatus.d.ts +0 -6
  130. package/dist/enums/tenants/TenantUserStatus.js +0 -8
  131. package/dist/enums/tenants/TenantUserType.d.ts +0 -5
  132. package/dist/enums/tenants/TenantUserType.js +0 -7
  133. package/dist/enums/user-usage-range.d.ts +0 -5
  134. package/dist/enums/user-usage-range.js +0 -7
  135. package/dist/getAppcondaClient.d.ts +0 -2
  136. package/dist/getAppcondaClient.js +0 -44
  137. package/dist/getSDKForCurrentUser.d.ts +0 -43
  138. package/dist/getSDKForCurrentUser.js +0 -76
  139. package/dist/getSDKForService.d.ts +0 -6
  140. package/dist/getSDKForService.js +0 -51
  141. package/dist/getSDKForTenant.d.ts +0 -20
  142. package/dist/getSDKForTenant.js +0 -44
  143. package/dist/id.d.ts +0 -20
  144. package/dist/id.js +0 -45
  145. package/dist/index.d.ts +0 -44
  146. package/dist/index.js +0 -42
  147. package/dist/inputFile.d.ts +0 -6
  148. package/dist/inputFile.js +0 -17
  149. package/dist/lib/Cache/Adapter.d.ts +0 -10
  150. package/dist/lib/Cache/Adapter.js +0 -2
  151. package/dist/lib/Cache/Adapters/Filesystem.d.ts +0 -16
  152. package/dist/lib/Cache/Adapters/Filesystem.js +0 -103
  153. package/dist/lib/Cache/Adapters/Memory.d.ts +0 -18
  154. package/dist/lib/Cache/Adapters/Memory.js +0 -47
  155. package/dist/lib/Cache/Adapters/None.d.ts +0 -12
  156. package/dist/lib/Cache/Adapters/None.js +0 -28
  157. package/dist/lib/Cache/Adapters/Sharding.d.ts +0 -17
  158. package/dist/lib/Cache/Adapters/Sharding.js +0 -73
  159. package/dist/lib/Cache/Cache.d.ts +0 -16
  160. package/dist/lib/Cache/Cache.js +0 -52
  161. package/dist/lib/Cache/index.d.ts +0 -4
  162. package/dist/lib/Cache/index.js +0 -5
  163. package/dist/lib/Cache/test.d.ts +0 -0
  164. package/dist/lib/Cache/test.js +0 -1
  165. package/dist/lib/Registry/Registry.d.ts +0 -38
  166. package/dist/lib/Registry/Registry.js +0 -56
  167. package/dist/lib/Registry/index.d.ts +0 -1
  168. package/dist/lib/Registry/index.js +0 -2
  169. package/dist/lib/Services.d.ts +0 -6
  170. package/dist/lib/Services.js +0 -14
  171. package/dist/lib/crypto.d.ts +0 -23
  172. package/dist/lib/crypto.js +0 -78
  173. package/dist/lib/env.d.ts +0 -1
  174. package/dist/lib/env.js +0 -137
  175. package/dist/lib/errors.d.ts +0 -70
  176. package/dist/lib/errors.js +0 -76
  177. package/dist/lib/index.d.ts +0 -2
  178. package/dist/lib/index.js +0 -3
  179. package/dist/lib/jwt.d.ts +0 -12
  180. package/dist/lib/jwt.js +0 -103
  181. package/dist/models.d.ts +0 -3272
  182. package/dist/models.js +0 -2
  183. package/dist/modules/account/actions.d.ts +0 -25
  184. package/dist/modules/account/actions.js +0 -18
  185. package/dist/modules/account/enums/authentication-factor.d.ts +0 -6
  186. package/dist/modules/account/enums/authentication-factor.js +0 -8
  187. package/dist/modules/account/enums/authenticator-type.d.ts +0 -3
  188. package/dist/modules/account/enums/authenticator-type.js +0 -5
  189. package/dist/modules/account/enums/o-auth-provider.d.ts +0 -41
  190. package/dist/modules/account/enums/o-auth-provider.js +0 -43
  191. package/dist/modules/account/index.d.ts +0 -3
  192. package/dist/modules/account/index.js +0 -4
  193. package/dist/modules/account/schema.d.ts +0 -17
  194. package/dist/modules/account/schema.js +0 -8
  195. package/dist/modules/account/service.d.ts +0 -530
  196. package/dist/modules/account/service.js +0 -1260
  197. package/dist/modules/account/types.d.ts +0 -411
  198. package/dist/modules/account/types.js +0 -2
  199. package/dist/modules/acl/service.d.ts +0 -26
  200. package/dist/modules/acl/service.js +0 -27
  201. package/dist/modules/agent/action.d.ts +0 -53
  202. package/dist/modules/agent/action.js +0 -64
  203. package/dist/modules/agent/index.d.ts +0 -4
  204. package/dist/modules/agent/index.js +0 -5
  205. package/dist/modules/agent/schema.d.ts +0 -48
  206. package/dist/modules/agent/schema.js +0 -21
  207. package/dist/modules/agent/service.d.ts +0 -12
  208. package/dist/modules/agent/service.js +0 -22
  209. package/dist/modules/agent/types.d.ts +0 -11
  210. package/dist/modules/agent/types.js +0 -2
  211. package/dist/modules/ai/index.d.ts +0 -1
  212. package/dist/modules/ai/index.js +0 -2
  213. package/dist/modules/ai/node/actions.d.ts +0 -4
  214. package/dist/modules/ai/node/actions.js +0 -16
  215. package/dist/modules/ai/node/index.d.ts +0 -2
  216. package/dist/modules/ai/node/index.js +0 -3
  217. package/dist/modules/ai/node/service.d.ts +0 -5
  218. package/dist/modules/ai/node/service.js +0 -12
  219. package/dist/modules/index.d.ts +0 -6
  220. package/dist/modules/index.js +0 -7
  221. package/dist/modules/task/action.d.ts +0 -168
  222. package/dist/modules/task/action.js +0 -163
  223. package/dist/modules/task/index.d.ts +0 -4
  224. package/dist/modules/task/index.js +0 -5
  225. package/dist/modules/task/schema.d.ts +0 -107
  226. package/dist/modules/task/schema.js +0 -44
  227. package/dist/modules/task/service.d.ts +0 -19
  228. package/dist/modules/task/service.js +0 -43
  229. package/dist/modules/task/types.d.ts +0 -84
  230. package/dist/modules/task/types.js +0 -2
  231. package/dist/modules/tenant/actions.d.ts +0 -45
  232. package/dist/modules/tenant/actions.js +0 -38
  233. package/dist/modules/tenant/index.d.ts +0 -3
  234. package/dist/modules/tenant/index.js +0 -4
  235. package/dist/modules/tenant/tenant.d.ts +0 -32
  236. package/dist/modules/tenant/tenant.js +0 -125
  237. package/dist/modules/tenant/types.d.ts +0 -11
  238. package/dist/modules/tenant/types.js +0 -2
  239. package/dist/modules/waitlist/action.d.ts +0 -69
  240. package/dist/modules/waitlist/action.js +0 -78
  241. package/dist/modules/waitlist/index.d.ts +0 -4
  242. package/dist/modules/waitlist/index.js +0 -5
  243. package/dist/modules/waitlist/schema.d.ts +0 -39
  244. package/dist/modules/waitlist/schema.js +0 -18
  245. package/dist/modules/waitlist/service.d.ts +0 -13
  246. package/dist/modules/waitlist/service.js +0 -28
  247. package/dist/modules/waitlist/types.d.ts +0 -14
  248. package/dist/modules/waitlist/types.js +0 -2
  249. package/dist/permission.d.ts +0 -43
  250. package/dist/permission.js +0 -54
  251. package/dist/query.d.ts +0 -194
  252. package/dist/query.js +0 -204
  253. package/dist/role.d.ts +0 -70
  254. package/dist/role.js +0 -94
  255. package/dist/schemas/nodes.d.ts +0 -0
  256. package/dist/schemas/nodes.js +0 -1
  257. package/dist/service-client.d.ts +0 -7
  258. package/dist/service-client.js +0 -14
  259. package/dist/service.d.ts +0 -11
  260. package/dist/service.js +0 -23
  261. package/dist/services/account.d.ts +0 -530
  262. package/dist/services/account.js +0 -1259
  263. package/dist/services/applets.d.ts +0 -9
  264. package/dist/services/applets.js +0 -40
  265. package/dist/services/avatars.d.ts +0 -115
  266. package/dist/services/avatars.js +0 -251
  267. package/dist/services/chat-flow.d.ts +0 -7
  268. package/dist/services/chat-flow.js +0 -26
  269. package/dist/services/community.d.ts +0 -19
  270. package/dist/services/community.js +0 -69
  271. package/dist/services/configuration.d.ts +0 -5
  272. package/dist/services/configuration.js +0 -11
  273. package/dist/services/databases.d.ts +0 -613
  274. package/dist/services/databases.js +0 -1736
  275. package/dist/services/functions.d.ts +0 -319
  276. package/dist/services/functions.js +0 -810
  277. package/dist/services/graphql.d.ts +0 -25
  278. package/dist/services/graphql.js +0 -57
  279. package/dist/services/health.d.ts +0 -231
  280. package/dist/services/health.js +0 -463
  281. package/dist/services/locale.d.ts +0 -80
  282. package/dist/services/locale.js +0 -144
  283. package/dist/services/messaging.d.ts +0 -685
  284. package/dist/services/messaging.js +0 -1920
  285. package/dist/services/node.d.ts +0 -5
  286. package/dist/services/node.js +0 -11
  287. package/dist/services/permissions.d.ts +0 -20
  288. package/dist/services/permissions.js +0 -90
  289. package/dist/services/pricing.d.ts +0 -15
  290. package/dist/services/pricing.js +0 -21
  291. package/dist/services/projects.d.ts +0 -542
  292. package/dist/services/projects.js +0 -1526
  293. package/dist/services/roles.d.ts +0 -19
  294. package/dist/services/roles.js +0 -72
  295. package/dist/services/schema.d.ts +0 -17
  296. package/dist/services/schema.js +0 -48
  297. package/dist/services/storage.d.ts +0 -189
  298. package/dist/services/storage.js +0 -474
  299. package/dist/services/subscription.d.ts +0 -15
  300. package/dist/services/subscription.js +0 -30
  301. package/dist/services/teams.d.ts +0 -167
  302. package/dist/services/teams.js +0 -395
  303. package/dist/services/tenant-subscription.d.ts +0 -12
  304. package/dist/services/tenant-subscription.js +0 -52
  305. package/dist/services/tenant.d.ts +0 -32
  306. package/dist/services/tenant.js +0 -124
  307. package/dist/services/users.d.ts +0 -499
  308. package/dist/services/users.js +0 -1283
@@ -1,25 +0,0 @@
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
- }
@@ -1,57 +0,0 @@
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ3JhcGhxbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9zZXJ2aWNlcy9ncmFwaHFsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxpQkFBaUIsRUFBd0MsTUFBTSxXQUFXLENBQUM7QUFHcEYsT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sbChcbiAgICAgICAgICAgICdwb3N0JyxcbiAgICAgICAgICAgIHVyaSxcbiAgICAgICAgICAgIGFwaUhlYWRlcnMsXG4gICAgICAgICAgICBwYXlsb2FkLFxuICAgICAgICApO1xuICAgIH1cbn1cbiJdfQ==
@@ -1,231 +0,0 @@
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
- }