@appconda/sdk 1.0.639 → 1.0.640
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/EmploidClient.d.ts +52 -0
- package/dist/EmploidClient.js +78 -0
- package/dist/client.d.ts +149 -0
- package/dist/client.js +408 -0
- package/dist/enums/api-service.d.ts +13 -0
- package/dist/enums/api-service.js +15 -0
- package/dist/enums/api.d.ts +5 -0
- package/dist/enums/api.js +7 -0
- package/dist/enums/auth-method.d.ts +9 -0
- package/dist/enums/auth-method.js +11 -0
- package/dist/enums/browser.d.ts +16 -0
- package/dist/enums/browser.js +18 -0
- package/dist/enums/compression.d.ts +5 -0
- package/dist/enums/compression.js +7 -0
- package/dist/enums/credit-card.d.ts +18 -0
- package/dist/enums/credit-card.js +20 -0
- package/dist/enums/database-usage-range.d.ts +5 -0
- package/dist/enums/database-usage-range.js +7 -0
- package/dist/enums/email-template-locale.d.ts +133 -0
- package/dist/enums/email-template-locale.js +135 -0
- package/dist/enums/email-template-type.d.ts +9 -0
- package/dist/enums/email-template-type.js +11 -0
- package/dist/enums/entities/EntityLimitType.d.ts +4 -0
- package/dist/enums/entities/EntityLimitType.js +6 -0
- package/dist/enums/entities/PropertyAttributeName.d.ts +27 -0
- package/dist/enums/entities/PropertyAttributeName.js +29 -0
- package/dist/enums/entities/PropertyCondition.d.ts +7 -0
- package/dist/enums/entities/PropertyCondition.js +10 -0
- package/dist/enums/entities/PropertyType.d.ts +12 -0
- package/dist/enums/entities/PropertyType.js +18 -0
- package/dist/enums/entities/PropertyValueType.d.ts +6 -0
- package/dist/enums/entities/PropertyValueType.js +8 -0
- package/dist/enums/entities/RowAccess.d.ts +2 -0
- package/dist/enums/entities/RowAccess.js +2 -0
- package/dist/enums/entities/ViewFilterCondition.d.ts +12 -0
- package/dist/enums/entities/ViewFilterCondition.js +14 -0
- package/dist/enums/execution-method.d.ts +8 -0
- package/dist/enums/execution-method.js +10 -0
- package/dist/enums/flag.d.ts +197 -0
- package/dist/enums/flag.js +199 -0
- package/dist/enums/function-usage-range.d.ts +5 -0
- package/dist/enums/function-usage-range.js +7 -0
- package/dist/enums/image-format.d.ts +7 -0
- package/dist/enums/image-format.js +9 -0
- package/dist/enums/image-gravity.d.ts +11 -0
- package/dist/enums/image-gravity.js +13 -0
- package/dist/enums/index-type.d.ts +5 -0
- package/dist/enums/index-type.js +7 -0
- package/dist/enums/messaging-provider-type.d.ts +5 -0
- package/dist/enums/messaging-provider-type.js +7 -0
- package/dist/enums/name.d.ts +14 -0
- package/dist/enums/name.js +16 -0
- package/dist/enums/o-auth-provider copy.d.ts +41 -0
- package/dist/enums/o-auth-provider copy.js +43 -0
- package/dist/enums/password-hash.d.ts +13 -0
- package/dist/enums/password-hash.js +15 -0
- package/dist/enums/platform-type.d.ts +17 -0
- package/dist/enums/platform-type.js +19 -0
- package/dist/enums/project-usage-range.d.ts +4 -0
- package/dist/enums/project-usage-range.js +6 -0
- package/dist/enums/region.d.ts +4 -0
- package/dist/enums/region.js +6 -0
- package/dist/enums/relation-mutate.d.ts +5 -0
- package/dist/enums/relation-mutate.js +7 -0
- package/dist/enums/relationship-type.d.ts +6 -0
- package/dist/enums/relationship-type.js +8 -0
- package/dist/enums/resource-type.d.ts +4 -0
- package/dist/enums/resource-type.js +6 -0
- package/dist/enums/runtime.d.ts +48 -0
- package/dist/enums/runtime.js +50 -0
- package/dist/enums/s-m-t-p-secure.d.ts +3 -0
- package/dist/enums/s-m-t-p-secure.js +5 -0
- package/dist/enums/shared/ApplicationLayout.d.ts +4 -0
- package/dist/enums/shared/ApplicationLayout.js +6 -0
- package/dist/enums/shared/Colors.d.ts +24 -0
- package/dist/enums/shared/Colors.js +26 -0
- package/dist/enums/shared/InputType.d.ts +6 -0
- package/dist/enums/shared/InputType.js +8 -0
- package/dist/enums/shared/Periodicity.d.ts +7 -0
- package/dist/enums/shared/Periodicity.js +9 -0
- package/dist/enums/shared/SvgIcon.d.ts +37 -0
- package/dist/enums/shared/SvgIcon.js +39 -0
- package/dist/enums/shared/Theme.d.ts +4 -0
- package/dist/enums/shared/Theme.js +6 -0
- package/dist/enums/sms-template-locale.d.ts +133 -0
- package/dist/enums/sms-template-locale.js +135 -0
- package/dist/enums/sms-template-type.d.ts +6 -0
- package/dist/enums/sms-template-type.js +8 -0
- package/dist/enums/smtp-encryption.d.ts +5 -0
- package/dist/enums/smtp-encryption.js +7 -0
- package/dist/enums/storage-usage-range.d.ts +5 -0
- package/dist/enums/storage-usage-range.js +7 -0
- package/dist/enums/subscriptions/PricingModel.d.ts +11 -0
- package/dist/enums/subscriptions/PricingModel.js +12 -0
- package/dist/enums/subscriptions/SubscriptionBillingPeriod.d.ts +10 -0
- package/dist/enums/subscriptions/SubscriptionBillingPeriod.js +11 -0
- package/dist/enums/subscriptions/SubscriptionFeatureLimitType.d.ts +10 -0
- package/dist/enums/subscriptions/SubscriptionFeatureLimitType.js +13 -0
- package/dist/enums/subscriptions/SubscriptionPriceType.d.ts +7 -0
- package/dist/enums/subscriptions/SubscriptionPriceType.js +8 -0
- package/dist/enums/tenants/LinkedAccountStatus.d.ts +5 -0
- package/dist/enums/tenants/LinkedAccountStatus.js +7 -0
- package/dist/enums/tenants/TenantUserJoined.d.ts +6 -0
- package/dist/enums/tenants/TenantUserJoined.js +8 -0
- package/dist/enums/tenants/TenantUserStatus.d.ts +6 -0
- package/dist/enums/tenants/TenantUserStatus.js +8 -0
- package/dist/enums/tenants/TenantUserType.d.ts +5 -0
- package/dist/enums/tenants/TenantUserType.js +7 -0
- package/dist/enums/user-usage-range.d.ts +5 -0
- package/dist/enums/user-usage-range.js +7 -0
- package/dist/getAppcondaClient.d.ts +14 -0
- package/dist/getAppcondaClient.js +60 -0
- package/dist/getSDKForService.d.ts +22 -0
- package/dist/getSDKForService.js +72 -0
- package/dist/id.d.ts +20 -0
- package/dist/id.js +45 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +6 -0
- package/dist/lib/errors.d.ts +70 -0
- package/dist/lib/errors.js +79 -0
- package/dist/lib/index.d.ts +0 -0
- package/dist/lib/index.js +1 -0
- package/dist/lib/types.d.ts +5 -0
- package/dist/lib/types.js +2 -0
- package/dist/models.d.ts +3272 -0
- package/dist/models.js +2 -0
- package/dist/modules/account/enums/authentication-factor.d.ts +6 -0
- package/dist/modules/account/enums/authentication-factor.js +8 -0
- package/dist/modules/account/enums/authenticator-type.d.ts +3 -0
- package/dist/modules/account/enums/authenticator-type.js +5 -0
- package/dist/modules/account/enums/o-auth-provider.d.ts +41 -0
- package/dist/modules/account/enums/o-auth-provider.js +43 -0
- package/dist/modules/account/index.d.ts +2 -0
- package/dist/modules/account/index.js +3 -0
- package/dist/modules/account/schema.d.ts +7 -0
- package/dist/modules/account/schema.js +8 -0
- package/dist/modules/account/service.d.ts +530 -0
- package/dist/modules/account/service.js +1263 -0
- package/dist/modules/account/types.d.ts +411 -0
- package/dist/modules/account/types.js +2 -0
- package/dist/modules/accounv1/index.d.ts +3 -0
- package/dist/modules/accounv1/index.js +4 -0
- package/dist/modules/accounv1/schema.d.ts +43 -0
- package/dist/modules/accounv1/schema.js +44 -0
- package/dist/modules/accounv1/service.d.ts +14 -0
- package/dist/modules/accounv1/service.js +28 -0
- package/dist/modules/accounv1/types.d.ts +14 -0
- package/dist/modules/accounv1/types.js +2 -0
- package/dist/modules/acl/service.d.ts +26 -0
- package/dist/modules/acl/service.js +27 -0
- package/dist/modules/agent/index.d.ts +3 -0
- package/dist/modules/agent/index.js +4 -0
- package/dist/modules/agent/schema.d.ts +20 -0
- package/dist/modules/agent/schema.js +21 -0
- package/dist/modules/agent/service.d.ts +12 -0
- package/dist/modules/agent/service.js +22 -0
- package/dist/modules/agent/types.d.ts +11 -0
- package/dist/modules/agent/types.js +2 -0
- package/dist/modules/ai/index.d.ts +1 -0
- package/dist/modules/ai/index.js +2 -0
- package/dist/modules/ai/node/index.d.ts +1 -0
- package/dist/modules/ai/node/index.js +2 -0
- package/dist/modules/ai/node/service.d.ts +5 -0
- package/dist/modules/ai/node/service.js +12 -0
- package/dist/modules/bpm/index.d.ts +3 -0
- package/dist/modules/bpm/index.js +4 -0
- package/dist/modules/bpm/schema.d.ts +18 -0
- package/dist/modules/bpm/schema.js +19 -0
- package/dist/modules/bpm/service.d.ts +11 -0
- package/dist/modules/bpm/service.js +20 -0
- package/dist/modules/bpm/types.d.ts +9 -0
- package/dist/modules/bpm/types.js +2 -0
- package/dist/modules/builder/index.d.ts +3 -0
- package/dist/modules/builder/index.js +4 -0
- package/dist/modules/builder/schema.d.ts +92 -0
- package/dist/modules/builder/schema.js +93 -0
- package/dist/modules/builder/service.d.ts +25 -0
- package/dist/modules/builder/service.js +61 -0
- package/dist/modules/builder/types.d.ts +100 -0
- package/dist/modules/builder/types.js +2 -0
- package/dist/modules/datasource/index.d.ts +3 -0
- package/dist/modules/datasource/index.js +4 -0
- package/dist/modules/datasource/schema.d.ts +55 -0
- package/dist/modules/datasource/schema.js +56 -0
- package/dist/modules/datasource/service.d.ts +19 -0
- package/dist/modules/datasource/service.js +43 -0
- package/dist/modules/datasource/types.d.ts +28 -0
- package/dist/modules/datasource/types.js +2 -0
- package/dist/modules/emploid/index.d.ts +3 -0
- package/dist/modules/emploid/index.js +4 -0
- package/dist/modules/emploid/schema.d.ts +1818 -0
- package/dist/modules/emploid/schema.js +1700 -0
- package/dist/modules/emploid/service.d.ts +334 -0
- package/dist/modules/emploid/service.js +992 -0
- package/dist/modules/emploid/types.d.ts +652 -0
- package/dist/modules/emploid/types.js +2 -0
- package/dist/modules/google/index.d.ts +3 -0
- package/dist/modules/google/index.js +4 -0
- package/dist/modules/google/schema.d.ts +13 -0
- package/dist/modules/google/schema.js +14 -0
- package/dist/modules/google/service.d.ts +10 -0
- package/dist/modules/google/service.js +16 -0
- package/dist/modules/google/types.d.ts +12 -0
- package/dist/modules/google/types.js +2 -0
- package/dist/modules/hooks/index.d.ts +2 -0
- package/dist/modules/hooks/index.js +3 -0
- package/dist/modules/hooks/lib/Hooks.d.ts +32 -0
- package/dist/modules/hooks/lib/Hooks.js +64 -0
- package/dist/modules/hooks/lib/jobs/index.d.ts +2 -0
- package/dist/modules/hooks/lib/jobs/index.js +3 -0
- package/dist/modules/hooks/lib/jobs/job1.d.ts +1 -0
- package/dist/modules/hooks/lib/jobs/job1.js +16 -0
- package/dist/modules/hooks/lib/jobs/log-job.d.ts +1 -0
- package/dist/modules/hooks/lib/jobs/log-job.js +9 -0
- package/dist/modules/hooks/lib/wait.d.ts +8 -0
- package/dist/modules/hooks/lib/wait.js +13 -0
- package/dist/modules/index.d.ts +18 -0
- package/dist/modules/index.js +19 -0
- package/dist/modules/mail/index.d.ts +3 -0
- package/dist/modules/mail/index.js +4 -0
- package/dist/modules/mail/schema.d.ts +6 -0
- package/dist/modules/mail/schema.js +7 -0
- package/dist/modules/mail/service.d.ts +8 -0
- package/dist/modules/mail/service.js +10 -0
- package/dist/modules/mail/types.d.ts +6 -0
- package/dist/modules/mail/types.js +2 -0
- package/dist/modules/notion/index.d.ts +3 -0
- package/dist/modules/notion/index.js +4 -0
- package/dist/modules/notion/schema.d.ts +13 -0
- package/dist/modules/notion/schema.js +14 -0
- package/dist/modules/notion/service.d.ts +10 -0
- package/dist/modules/notion/service.js +19 -0
- package/dist/modules/notion/types.d.ts +11 -0
- package/dist/modules/notion/types.js +2 -0
- package/dist/modules/organization/index.d.ts +3 -0
- package/dist/modules/organization/index.js +4 -0
- package/dist/modules/organization/schema.d.ts +65 -0
- package/dist/modules/organization/schema.js +56 -0
- package/dist/modules/organization/service.d.ts +20 -0
- package/dist/modules/organization/service.js +46 -0
- package/dist/modules/organization/types.d.ts +55 -0
- package/dist/modules/organization/types.js +2 -0
- package/dist/modules/scheduled-job/index.d.ts +5 -0
- package/dist/modules/scheduled-job/index.js +6 -0
- package/dist/modules/scheduled-job/lib/Schedules.d.ts +34 -0
- package/dist/modules/scheduled-job/lib/Schedules.js +65 -0
- package/dist/modules/scheduled-job/lib/jobs/index.d.ts +1 -0
- package/dist/modules/scheduled-job/lib/jobs/index.js +2 -0
- package/dist/modules/scheduled-job/lib/jobs/job1.d.ts +1 -0
- package/dist/modules/scheduled-job/lib/jobs/job1.js +10 -0
- package/dist/modules/scheduled-job/lib/wait.d.ts +8 -0
- package/dist/modules/scheduled-job/lib/wait.js +13 -0
- package/dist/modules/scheduled-job/schema.d.ts +39 -0
- package/dist/modules/scheduled-job/schema.js +40 -0
- package/dist/modules/scheduled-job/service.d.ts +20 -0
- package/dist/modules/scheduled-job/service.js +46 -0
- package/dist/modules/scheduled-job/types.d.ts +66 -0
- package/dist/modules/scheduled-job/types.js +2 -0
- package/dist/modules/scrapflow/index.d.ts +2 -0
- package/dist/modules/scrapflow/index.js +3 -0
- package/dist/modules/scrapflow/schema.d.ts +105 -0
- package/dist/modules/scrapflow/schema.js +106 -0
- package/dist/modules/scrapflow/service.d.ts +24 -0
- package/dist/modules/scrapflow/service.js +61 -0
- package/dist/modules/scrapflow/types.d.ts +0 -0
- package/dist/modules/scrapflow/types.js +1 -0
- package/dist/modules/task/index.d.ts +3 -0
- package/dist/modules/task/index.js +4 -0
- package/dist/modules/task/schema.d.ts +355 -0
- package/dist/modules/task/schema.js +371 -0
- package/dist/modules/task/service.d.ts +69 -0
- package/dist/modules/task/service.js +193 -0
- package/dist/modules/task/types.d.ts +293 -0
- package/dist/modules/task/types.js +37 -0
- package/dist/modules/tenant/index.d.ts +2 -0
- package/dist/modules/tenant/index.js +3 -0
- package/dist/modules/tenant/schema.d.ts +26 -0
- package/dist/modules/tenant/schema.js +28 -0
- package/dist/modules/tenant/service.d.ts +14 -0
- package/dist/modules/tenant/service.js +28 -0
- package/dist/modules/tenant/tenant.d.ts +32 -0
- package/dist/modules/tenant/tenant.js +125 -0
- package/dist/modules/tenant/types.d.ts +20 -0
- package/dist/modules/tenant/types.js +2 -0
- package/dist/modules/waitlist/index.d.ts +3 -0
- package/dist/modules/waitlist/index.js +4 -0
- package/dist/modules/waitlist/schema.d.ts +17 -0
- package/dist/modules/waitlist/schema.js +18 -0
- package/dist/modules/waitlist/service.d.ts +13 -0
- package/dist/modules/waitlist/service.js +28 -0
- package/dist/modules/waitlist/types.d.ts +14 -0
- package/dist/modules/waitlist/types.js +2 -0
- package/dist/permission.d.ts +43 -0
- package/dist/permission.js +54 -0
- package/dist/query.d.ts +194 -0
- package/dist/query.js +204 -0
- package/dist/role.d.ts +70 -0
- package/dist/role.js +94 -0
- package/dist/service-client.d.ts +10 -0
- package/dist/service-client.js +31 -0
- package/dist/service.d.ts +11 -0
- package/dist/service.js +23 -0
- package/dist/services/applets.d.ts +9 -0
- package/dist/services/applets.js +40 -0
- package/dist/services/avatars.d.ts +115 -0
- package/dist/services/avatars.js +251 -0
- package/dist/services/chat-flow.d.ts +7 -0
- package/dist/services/chat-flow.js +26 -0
- package/dist/services/community.d.ts +19 -0
- package/dist/services/community.js +69 -0
- package/dist/services/configuration.d.ts +5 -0
- package/dist/services/configuration.js +11 -0
- package/dist/services/databases.d.ts +613 -0
- package/dist/services/databases.js +1736 -0
- package/dist/services/functions.d.ts +319 -0
- package/dist/services/functions.js +810 -0
- package/dist/services/graphql.d.ts +25 -0
- package/dist/services/graphql.js +57 -0
- package/dist/services/health.d.ts +231 -0
- package/dist/services/health.js +463 -0
- package/dist/services/locale.d.ts +80 -0
- package/dist/services/locale.js +144 -0
- package/dist/services/messaging.d.ts +685 -0
- package/dist/services/messaging.js +1920 -0
- package/dist/services/permissions.d.ts +20 -0
- package/dist/services/permissions.js +90 -0
- package/dist/services/pricing.d.ts +15 -0
- package/dist/services/pricing.js +21 -0
- package/dist/services/projects.d.ts +542 -0
- package/dist/services/projects.js +1526 -0
- package/dist/services/roles.d.ts +19 -0
- package/dist/services/roles.js +72 -0
- package/dist/services/schema.d.ts +17 -0
- package/dist/services/schema.js +48 -0
- package/dist/services/storage.d.ts +189 -0
- package/dist/services/storage.js +474 -0
- package/dist/services/subscription.d.ts +15 -0
- package/dist/services/subscription.js +30 -0
- package/dist/services/teams.d.ts +167 -0
- package/dist/services/teams.js +395 -0
- package/dist/services/tenant-subscription.d.ts +12 -0
- package/dist/services/tenant-subscription.js +52 -0
- package/dist/services/users.d.ts +499 -0
- package/dist/services/users.js +1283 -0
- package/package.json +1 -1
- package/src/modules/emploid/schema.ts +7 -0
- package/src/modules/emploid/service.ts +11 -0
|
@@ -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'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
|
+
}
|