@appconda/nextjs 1.0.13 → 1.0.15
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/cjs/sdk.js +74 -16
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +73 -17
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +75 -18
- package/package.json +2 -1
- package/src/actions/actionClient.ts +42 -0
- package/src/actions/index.ts +1 -0
- package/src/actions/nodes.ts +12 -0
- package/src/index.ts +2 -0
- package/src/services/waitlist.ts +16 -0
- package/types/Cache/Adapter.d.ts +0 -10
- package/types/Cache/Adapters/Filesystem.d.ts +0 -16
- package/types/Cache/Adapters/Memory.d.ts +0 -18
- package/types/Cache/Adapters/None.d.ts +0 -12
- package/types/Cache/Adapters/Redis.d.ts +0 -14
- package/types/Cache/Adapters/Sharding.d.ts +0 -17
- package/types/Cache/Cache.d.ts +0 -16
- package/types/Cache/index.d.ts +0 -5
- package/types/Cache/test.d.ts +0 -0
- package/types/Services.d.ts +0 -6
- package/types/client.d.ts +0 -141
- package/types/decorators/Cache.d.ts +0 -1
- package/types/decorators/CacheKey.d.ts +0 -1
- package/types/decorators/Invalidate.d.ts +0 -1
- package/types/enums/api-service.d.ts +0 -13
- package/types/enums/api.d.ts +0 -5
- package/types/enums/auth-method.d.ts +0 -9
- package/types/enums/authentication-factor.d.ts +0 -6
- package/types/enums/authenticator-type.d.ts +0 -3
- package/types/enums/browser.d.ts +0 -16
- package/types/enums/compression.d.ts +0 -5
- package/types/enums/credit-card.d.ts +0 -18
- package/types/enums/database-usage-range.d.ts +0 -5
- package/types/enums/email-template-locale.d.ts +0 -133
- package/types/enums/email-template-type.d.ts +0 -9
- package/types/enums/entities/EntityLimitType.d.ts +0 -4
- package/types/enums/entities/PropertyAttributeName.d.ts +0 -27
- package/types/enums/entities/PropertyCondition.d.ts +0 -7
- package/types/enums/entities/PropertyType.d.ts +0 -12
- package/types/enums/entities/PropertyValueType.d.ts +0 -6
- package/types/enums/entities/RowAccess.d.ts +0 -2
- package/types/enums/entities/ViewFilterCondition.d.ts +0 -12
- package/types/enums/execution-method.d.ts +0 -8
- package/types/enums/flag.d.ts +0 -197
- package/types/enums/function-usage-range.d.ts +0 -5
- package/types/enums/image-format.d.ts +0 -7
- package/types/enums/image-gravity.d.ts +0 -11
- package/types/enums/index-type.d.ts +0 -5
- package/types/enums/messaging-provider-type.d.ts +0 -5
- package/types/enums/name.d.ts +0 -14
- package/types/enums/o-auth-provider copy.d.ts +0 -41
- package/types/enums/o-auth-provider.d.ts +0 -41
- package/types/enums/password-hash.d.ts +0 -13
- package/types/enums/platform-type.d.ts +0 -17
- package/types/enums/project-usage-range.d.ts +0 -4
- package/types/enums/region.d.ts +0 -4
- package/types/enums/relation-mutate.d.ts +0 -5
- package/types/enums/relationship-type.d.ts +0 -6
- package/types/enums/resource-type.d.ts +0 -4
- package/types/enums/runtime.d.ts +0 -48
- package/types/enums/s-m-t-p-secure.d.ts +0 -3
- package/types/enums/shared/ApplicationLayout.d.ts +0 -4
- package/types/enums/shared/Colors.d.ts +0 -24
- package/types/enums/shared/InputType.d.ts +0 -6
- package/types/enums/shared/Periodicity.d.ts +0 -7
- package/types/enums/shared/SvgIcon.d.ts +0 -37
- package/types/enums/shared/Theme.d.ts +0 -4
- package/types/enums/sms-template-locale.d.ts +0 -133
- package/types/enums/sms-template-type.d.ts +0 -6
- package/types/enums/smtp-encryption.d.ts +0 -5
- package/types/enums/storage-usage-range.d.ts +0 -5
- package/types/enums/subscriptions/PricingModel.d.ts +0 -11
- package/types/enums/subscriptions/SubscriptionBillingPeriod.d.ts +0 -10
- package/types/enums/subscriptions/SubscriptionFeatureLimitType.d.ts +0 -10
- package/types/enums/subscriptions/SubscriptionPriceType.d.ts +0 -7
- package/types/enums/tenants/LinkedAccountStatus.d.ts +0 -5
- package/types/enums/tenants/TenantUserJoined.d.ts +0 -6
- package/types/enums/tenants/TenantUserStatus.d.ts +0 -6
- package/types/enums/tenants/TenantUserType.d.ts +0 -5
- package/types/enums/user-usage-range.d.ts +0 -5
- package/types/getAppcondaClient.d.ts +0 -2
- package/types/getSDKForCurrentUser.d.ts +0 -33
- package/types/id.d.ts +0 -20
- package/types/index.d.ts +0 -37
- package/types/inputFile.d.ts +0 -6
- package/types/lib/Registry/Registry.d.ts +0 -38
- package/types/lib/Registry/index.d.ts +0 -1
- package/types/models.d.ts +0 -3272
- package/types/permission.d.ts +0 -43
- package/types/query.d.ts +0 -194
- package/types/role.d.ts +0 -70
- package/types/service-client.d.ts +0 -7
- package/types/service.d.ts +0 -11
- package/types/services/account.d.ts +0 -530
- package/types/services/acl.d.ts +0 -28
- package/types/services/applets.d.ts +0 -9
- package/types/services/assistant.d.ts +0 -14
- package/types/services/avatars.d.ts +0 -115
- package/types/services/community.d.ts +0 -19
- package/types/services/configuration.d.ts +0 -5
- package/types/services/console.d.ts +0 -15
- package/types/services/databases.d.ts +0 -613
- package/types/services/functions.d.ts +0 -319
- package/types/services/graphql.d.ts +0 -25
- package/types/services/health.d.ts +0 -231
- package/types/services/locale.d.ts +0 -80
- package/types/services/messaging.d.ts +0 -685
- package/types/services/migrations.d.ts +0 -185
- package/types/services/node.d.ts +0 -5
- package/types/services/permissions.d.ts +0 -20
- package/types/services/pricing.d.ts +0 -15
- package/types/services/project.d.ts +0 -70
- package/types/services/projects.d.ts +0 -542
- package/types/services/proxy.d.ts +0 -59
- package/types/services/roles.d.ts +0 -19
- package/types/services/schema.d.ts +0 -17
- package/types/services/storage.d.ts +0 -189
- package/types/services/subscription-product.d.ts +0 -77
- package/types/services/subscription.d.ts +0 -15
- package/types/services/teams.d.ts +0 -167
- package/types/services/tenant-subscription.d.ts +0 -12
- package/types/services/tenant.d.ts +0 -32
- package/types/services/users.d.ts +0 -499
- package/types/services/vcs.d.ts +0 -108
@@ -1,319 +0,0 @@
|
|
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'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'll need to update the function'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 "command" 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'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
|
-
}
|
@@ -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,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
|
-
}
|
@@ -1,80 +0,0 @@
|
|
1
|
-
import { Client } from '../client';
|
2
|
-
import type { Models } from '../models';
|
3
|
-
export declare class Locale {
|
4
|
-
client: Client;
|
5
|
-
constructor(client: Client);
|
6
|
-
/**
|
7
|
-
* Get user locale
|
8
|
-
*
|
9
|
-
* Get the current user location based on IP. Returns an object with user country code, country name, continent name, continent code, ip address and suggested currency. You can use the locale header to get the data in a supported language.
|
10
|
-
|
11
|
-
([IP Geolocation by DB-IP](https://db-ip.com))
|
12
|
-
*
|
13
|
-
* @throws {AppcondaException}
|
14
|
-
* @returns {Promise<Models.Locale>}
|
15
|
-
*/
|
16
|
-
get(): Promise<Models.Locale>;
|
17
|
-
/**
|
18
|
-
* List Locale Codes
|
19
|
-
*
|
20
|
-
* List of all locale codes in [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes).
|
21
|
-
*
|
22
|
-
* @throws {AppcondaException}
|
23
|
-
* @returns {Promise<Models.LocaleCodeList>}
|
24
|
-
*/
|
25
|
-
listCodes(): Promise<Models.LocaleCodeList>;
|
26
|
-
/**
|
27
|
-
* List continents
|
28
|
-
*
|
29
|
-
* List of all continents. You can use the locale header to get the data in a supported language.
|
30
|
-
*
|
31
|
-
* @throws {AppcondaException}
|
32
|
-
* @returns {Promise<Models.ContinentList>}
|
33
|
-
*/
|
34
|
-
listContinents(): Promise<Models.ContinentList>;
|
35
|
-
/**
|
36
|
-
* List countries
|
37
|
-
*
|
38
|
-
* List of all countries. You can use the locale header to get the data in a supported language.
|
39
|
-
*
|
40
|
-
* @throws {AppcondaException}
|
41
|
-
* @returns {Promise<Models.CountryList>}
|
42
|
-
*/
|
43
|
-
listCountries(): Promise<Models.CountryList>;
|
44
|
-
/**
|
45
|
-
* List EU countries
|
46
|
-
*
|
47
|
-
* List of all countries that are currently members of the EU. You can use the locale header to get the data in a supported language.
|
48
|
-
*
|
49
|
-
* @throws {AppcondaException}
|
50
|
-
* @returns {Promise<Models.CountryList>}
|
51
|
-
*/
|
52
|
-
listCountriesEU(): Promise<Models.CountryList>;
|
53
|
-
/**
|
54
|
-
* List countries phone codes
|
55
|
-
*
|
56
|
-
* List of all countries phone codes. You can use the locale header to get the data in a supported language.
|
57
|
-
*
|
58
|
-
* @throws {AppcondaException}
|
59
|
-
* @returns {Promise<Models.PhoneList>}
|
60
|
-
*/
|
61
|
-
listCountriesPhones(): Promise<Models.PhoneList>;
|
62
|
-
/**
|
63
|
-
* List currencies
|
64
|
-
*
|
65
|
-
* List of all currencies, including currency symbol, name, plural, and decimal digits for all major and minor currencies. You can use the locale header to get the data in a supported language.
|
66
|
-
*
|
67
|
-
* @throws {AppcondaException}
|
68
|
-
* @returns {Promise<Models.CurrencyList>}
|
69
|
-
*/
|
70
|
-
listCurrencies(): Promise<Models.CurrencyList>;
|
71
|
-
/**
|
72
|
-
* List languages
|
73
|
-
*
|
74
|
-
* List of all languages classified by ISO 639-1 including 2-letter code, name in English, and name in the respective language.
|
75
|
-
*
|
76
|
-
* @throws {AppcondaException}
|
77
|
-
* @returns {Promise<Models.LanguageList>}
|
78
|
-
*/
|
79
|
-
listLanguages(): Promise<Models.LanguageList>;
|
80
|
-
}
|