@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.
Files changed (294) 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
  294. package/src/modules/task/action.ts +2 -2
@@ -0,0 +1,319 @@
1
+ import { Client, UploadProgress } from '../client';
2
+ import type { Models } from '../models';
3
+ import { Runtime } from '../enums/runtime';
4
+ import { ExecutionMethod } from '../enums/execution-method';
5
+ export declare class Functions {
6
+ client: Client;
7
+ constructor(client: Client);
8
+ /**
9
+ * List functions
10
+ *
11
+ * Get a list of all the project's functions. You can use the query params to filter your results.
12
+ *
13
+ * @param {string[]} queries
14
+ * @param {string} search
15
+ * @throws {AppcondaException}
16
+ * @returns {Promise<Models.FunctionList>}
17
+ */
18
+ list(queries?: string[], search?: string): Promise<Models.FunctionList>;
19
+ /**
20
+ * Create function
21
+ *
22
+ * Create a new function. You can pass a list of [permissions](https://appconda.io/docs/permissions) to allow different project users or team with access to execute the function using the client API.
23
+ *
24
+ * @param {string} functionId
25
+ * @param {string} name
26
+ * @param {Runtime} runtime
27
+ * @param {string[]} execute
28
+ * @param {string[]} events
29
+ * @param {string} schedule
30
+ * @param {number} timeout
31
+ * @param {boolean} enabled
32
+ * @param {boolean} logging
33
+ * @param {string} entrypoint
34
+ * @param {string} commands
35
+ * @param {string[]} scopes
36
+ * @param {string} installationId
37
+ * @param {string} providerRepositoryId
38
+ * @param {string} providerBranch
39
+ * @param {boolean} providerSilentMode
40
+ * @param {string} providerRootDirectory
41
+ * @param {string} templateRepository
42
+ * @param {string} templateOwner
43
+ * @param {string} templateRootDirectory
44
+ * @param {string} templateVersion
45
+ * @param {string} specification
46
+ * @throws {AppcondaException}
47
+ * @returns {Promise<Models.Function>}
48
+ */
49
+ create(functionId: string, name: string, runtime: Runtime, execute?: string[], events?: string[], schedule?: string, timeout?: number, enabled?: boolean, logging?: boolean, entrypoint?: string, commands?: string, scopes?: string[], installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, templateRepository?: string, templateOwner?: string, templateRootDirectory?: string, templateVersion?: string, specification?: string): Promise<Models.Function>;
50
+ /**
51
+ * List runtimes
52
+ *
53
+ * Get a list of all runtimes that are currently active on your instance.
54
+ *
55
+ * @throws {AppcondaException}
56
+ * @returns {Promise<Models.RuntimeList>}
57
+ */
58
+ listRuntimes(): Promise<Models.RuntimeList>;
59
+ /**
60
+ * List available function runtime specifications
61
+ *
62
+ * List allowed function specifications for this instance.
63
+
64
+ *
65
+ * @throws {AppcondaException}
66
+ * @returns {Promise<Models.SpecificationList>}
67
+ */
68
+ listSpecifications(): Promise<Models.SpecificationList>;
69
+ /**
70
+ * Get function
71
+ *
72
+ * Get a function by its unique ID.
73
+ *
74
+ * @param {string} functionId
75
+ * @throws {AppcondaException}
76
+ * @returns {Promise<Models.Function>}
77
+ */
78
+ get(functionId: string): Promise<Models.Function>;
79
+ /**
80
+ * Update function
81
+ *
82
+ * Update function by its unique ID.
83
+ *
84
+ * @param {string} functionId
85
+ * @param {string} name
86
+ * @param {Runtime} runtime
87
+ * @param {string[]} execute
88
+ * @param {string[]} events
89
+ * @param {string} schedule
90
+ * @param {number} timeout
91
+ * @param {boolean} enabled
92
+ * @param {boolean} logging
93
+ * @param {string} entrypoint
94
+ * @param {string} commands
95
+ * @param {string[]} scopes
96
+ * @param {string} installationId
97
+ * @param {string} providerRepositoryId
98
+ * @param {string} providerBranch
99
+ * @param {boolean} providerSilentMode
100
+ * @param {string} providerRootDirectory
101
+ * @param {string} specification
102
+ * @throws {AppcondaException}
103
+ * @returns {Promise<Models.Function>}
104
+ */
105
+ update(functionId: string, name: string, runtime?: Runtime, execute?: string[], events?: string[], schedule?: string, timeout?: number, enabled?: boolean, logging?: boolean, entrypoint?: string, commands?: string, scopes?: string[], installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, specification?: string): Promise<Models.Function>;
106
+ /**
107
+ * Delete function
108
+ *
109
+ * Delete a function by its unique ID.
110
+ *
111
+ * @param {string} functionId
112
+ * @throws {AppcondaException}
113
+ * @returns {Promise<{}>}
114
+ */
115
+ delete(functionId: string): Promise<{}>;
116
+ /**
117
+ * List deployments
118
+ *
119
+ * Get a list of all the project&#039;s code deployments. You can use the query params to filter your results.
120
+ *
121
+ * @param {string} functionId
122
+ * @param {string[]} queries
123
+ * @param {string} search
124
+ * @throws {AppcondaException}
125
+ * @returns {Promise<Models.DeploymentList>}
126
+ */
127
+ listDeployments(functionId: string, queries?: string[], search?: string): Promise<Models.DeploymentList>;
128
+ /**
129
+ * Create deployment
130
+ *
131
+ * Create a new function code deployment. Use this endpoint to upload a new version of your code function. To execute your newly uploaded code, you&#039;ll need to update the function&#039;s deployment to use your new deployment UID.
132
+
133
+ This endpoint accepts a tar.gz file compressed with your code. Make sure to include any dependencies your code has within the compressed file. You can learn more about code packaging in the [Appconda Cloud Functions tutorial](https://appconda.io/docs/functions).
134
+
135
+ Use the &quot;command&quot; param to set the entrypoint used to execute your code.
136
+ *
137
+ * @param {string} functionId
138
+ * @param {File} code
139
+ * @param {boolean} activate
140
+ * @param {string} entrypoint
141
+ * @param {string} commands
142
+ * @throws {AppcondaException}
143
+ * @returns {Promise<Models.Deployment>}
144
+ */
145
+ createDeployment(functionId: string, code: File, activate: boolean, entrypoint?: string, commands?: string, onProgress?: (progress: UploadProgress) => void): Promise<Models.Deployment>;
146
+ /**
147
+ * Get deployment
148
+ *
149
+ * Get a code deployment by its unique ID.
150
+ *
151
+ * @param {string} functionId
152
+ * @param {string} deploymentId
153
+ * @throws {AppcondaException}
154
+ * @returns {Promise<Models.Deployment>}
155
+ */
156
+ getDeployment(functionId: string, deploymentId: string): Promise<Models.Deployment>;
157
+ /**
158
+ * Update deployment
159
+ *
160
+ * Update the function code deployment ID using the unique function ID. Use this endpoint to switch the code deployment that should be executed by the execution endpoint.
161
+ *
162
+ * @param {string} functionId
163
+ * @param {string} deploymentId
164
+ * @throws {AppcondaException}
165
+ * @returns {Promise<Models.Function>}
166
+ */
167
+ updateDeployment(functionId: string, deploymentId: string): Promise<Models.Function>;
168
+ /**
169
+ * Delete deployment
170
+ *
171
+ * Delete a code deployment by its unique ID.
172
+ *
173
+ * @param {string} functionId
174
+ * @param {string} deploymentId
175
+ * @throws {AppcondaException}
176
+ * @returns {Promise<{}>}
177
+ */
178
+ deleteDeployment(functionId: string, deploymentId: string): Promise<{}>;
179
+ /**
180
+ * Rebuild deployment
181
+ *
182
+ *
183
+ * @param {string} functionId
184
+ * @param {string} deploymentId
185
+ * @param {string} buildId
186
+ * @throws {AppcondaException}
187
+ * @returns {Promise<{}>}
188
+ */
189
+ createBuild(functionId: string, deploymentId: string, buildId?: string): Promise<{}>;
190
+ /**
191
+ * Cancel deployment
192
+ *
193
+ *
194
+ * @param {string} functionId
195
+ * @param {string} deploymentId
196
+ * @throws {AppcondaException}
197
+ * @returns {Promise<Models.Build>}
198
+ */
199
+ updateDeploymentBuild(functionId: string, deploymentId: string): Promise<Models.Build>;
200
+ /**
201
+ * Download deployment
202
+ *
203
+ * Get a Deployment&#039;s contents by its unique ID. This endpoint supports range requests for partial or streaming file download.
204
+ *
205
+ * @param {string} functionId
206
+ * @param {string} deploymentId
207
+ * @throws {AppcondaException}
208
+ * @returns {Promise<ArrayBuffer>}
209
+ */
210
+ getDeploymentDownload(functionId: string, deploymentId: string): Promise<ArrayBuffer>;
211
+ /**
212
+ * List executions
213
+ *
214
+ * Get a list of all the current user function execution logs. You can use the query params to filter your results.
215
+ *
216
+ * @param {string} functionId
217
+ * @param {string[]} queries
218
+ * @param {string} search
219
+ * @throws {AppcondaException}
220
+ * @returns {Promise<Models.ExecutionList>}
221
+ */
222
+ listExecutions(functionId: string, queries?: string[], search?: string): Promise<Models.ExecutionList>;
223
+ /**
224
+ * Create execution
225
+ *
226
+ * Trigger a function execution. The returned object will return you the current execution status. You can ping the `Get Execution` endpoint to get updates on the current execution status. Once this endpoint is called, your function execution process will start asynchronously.
227
+ *
228
+ * @param {string} functionId
229
+ * @param {string} body
230
+ * @param {boolean} async
231
+ * @param {string} xpath
232
+ * @param {ExecutionMethod} method
233
+ * @param {object} headers
234
+ * @param {string} scheduledAt
235
+ * @throws {AppcondaException}
236
+ * @returns {Promise<Models.Execution>}
237
+ */
238
+ createExecution(functionId: string, body?: string, async?: boolean, xpath?: string, method?: ExecutionMethod, headers?: object, scheduledAt?: string): Promise<Models.Execution>;
239
+ /**
240
+ * Get execution
241
+ *
242
+ * Get a function execution log by its unique ID.
243
+ *
244
+ * @param {string} functionId
245
+ * @param {string} executionId
246
+ * @throws {AppcondaException}
247
+ * @returns {Promise<Models.Execution>}
248
+ */
249
+ getExecution(functionId: string, executionId: string): Promise<Models.Execution>;
250
+ /**
251
+ * Delete execution
252
+ *
253
+ * Delete a function execution by its unique ID.
254
+
255
+ *
256
+ * @param {string} functionId
257
+ * @param {string} executionId
258
+ * @throws {AppcondaException}
259
+ * @returns {Promise<{}>}
260
+ */
261
+ deleteExecution(functionId: string, executionId: string): Promise<{}>;
262
+ /**
263
+ * List variables
264
+ *
265
+ * Get a list of all variables of a specific function.
266
+ *
267
+ * @param {string} functionId
268
+ * @throws {AppcondaException}
269
+ * @returns {Promise<Models.VariableList>}
270
+ */
271
+ listVariables(functionId: string): Promise<Models.VariableList>;
272
+ /**
273
+ * Create variable
274
+ *
275
+ * Create a new function environment variable. These variables can be accessed in the function at runtime as environment variables.
276
+ *
277
+ * @param {string} functionId
278
+ * @param {string} key
279
+ * @param {string} value
280
+ * @throws {AppcondaException}
281
+ * @returns {Promise<Models.Variable>}
282
+ */
283
+ createVariable(functionId: string, key: string, value: string): Promise<Models.Variable>;
284
+ /**
285
+ * Get variable
286
+ *
287
+ * Get a variable by its unique ID.
288
+ *
289
+ * @param {string} functionId
290
+ * @param {string} variableId
291
+ * @throws {AppcondaException}
292
+ * @returns {Promise<Models.Variable>}
293
+ */
294
+ getVariable(functionId: string, variableId: string): Promise<Models.Variable>;
295
+ /**
296
+ * Update variable
297
+ *
298
+ * Update variable by its unique ID.
299
+ *
300
+ * @param {string} functionId
301
+ * @param {string} variableId
302
+ * @param {string} key
303
+ * @param {string} value
304
+ * @throws {AppcondaException}
305
+ * @returns {Promise<Models.Variable>}
306
+ */
307
+ updateVariable(functionId: string, variableId: string, key: string, value?: string): Promise<Models.Variable>;
308
+ /**
309
+ * Delete variable
310
+ *
311
+ * Delete a variable by its unique ID.
312
+ *
313
+ * @param {string} functionId
314
+ * @param {string} variableId
315
+ * @throws {AppcondaException}
316
+ * @returns {Promise<{}>}
317
+ */
318
+ deleteVariable(functionId: string, variableId: string): Promise<{}>;
319
+ }