@appconda/nextjs 1.0.115 → 1.0.116

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