@appconda/nextjs 1.0.16 → 1.0.18
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/package.json +1 -1
- package/types/Cache/Adapter.d.ts +10 -0
- package/types/Cache/Adapters/Filesystem.d.ts +16 -0
- package/types/Cache/Adapters/Memory.d.ts +18 -0
- package/types/Cache/Adapters/None.d.ts +12 -0
- package/types/Cache/Adapters/Redis.d.ts +14 -0
- package/types/Cache/Adapters/Sharding.d.ts +17 -0
- package/types/Cache/Cache.d.ts +16 -0
- package/types/Cache/index.d.ts +5 -0
- package/types/Cache/test.d.ts +0 -0
- package/types/Services.d.ts +6 -0
- package/types/actions/actionClient.d.ts +4 -0
- package/types/actions/index.d.ts +1 -0
- package/types/actions/nodes.d.ts +4 -0
- package/types/client.d.ts +141 -0
- package/types/decorators/Cache.d.ts +1 -0
- package/types/decorators/CacheKey.d.ts +1 -0
- package/types/decorators/Invalidate.d.ts +1 -0
- package/types/enums/api-service.d.ts +13 -0
- package/types/enums/api.d.ts +5 -0
- package/types/enums/auth-method.d.ts +9 -0
- package/types/enums/authentication-factor.d.ts +6 -0
- package/types/enums/authenticator-type.d.ts +3 -0
- package/types/enums/browser.d.ts +16 -0
- package/types/enums/compression.d.ts +5 -0
- package/types/enums/credit-card.d.ts +18 -0
- package/types/enums/database-usage-range.d.ts +5 -0
- package/types/enums/email-template-locale.d.ts +133 -0
- package/types/enums/email-template-type.d.ts +9 -0
- package/types/enums/entities/EntityLimitType.d.ts +4 -0
- package/types/enums/entities/PropertyAttributeName.d.ts +27 -0
- package/types/enums/entities/PropertyCondition.d.ts +7 -0
- package/types/enums/entities/PropertyType.d.ts +12 -0
- package/types/enums/entities/PropertyValueType.d.ts +6 -0
- package/types/enums/entities/RowAccess.d.ts +2 -0
- package/types/enums/entities/ViewFilterCondition.d.ts +12 -0
- package/types/enums/execution-method.d.ts +8 -0
- package/types/enums/flag.d.ts +197 -0
- package/types/enums/function-usage-range.d.ts +5 -0
- package/types/enums/image-format.d.ts +7 -0
- package/types/enums/image-gravity.d.ts +11 -0
- package/types/enums/index-type.d.ts +5 -0
- package/types/enums/messaging-provider-type.d.ts +5 -0
- package/types/enums/name.d.ts +14 -0
- package/types/enums/o-auth-provider copy.d.ts +41 -0
- package/types/enums/o-auth-provider.d.ts +41 -0
- package/types/enums/password-hash.d.ts +13 -0
- package/types/enums/platform-type.d.ts +17 -0
- package/types/enums/project-usage-range.d.ts +4 -0
- package/types/enums/region.d.ts +4 -0
- package/types/enums/relation-mutate.d.ts +5 -0
- package/types/enums/relationship-type.d.ts +6 -0
- package/types/enums/resource-type.d.ts +4 -0
- package/types/enums/runtime.d.ts +48 -0
- package/types/enums/s-m-t-p-secure.d.ts +3 -0
- package/types/enums/shared/ApplicationLayout.d.ts +4 -0
- package/types/enums/shared/Colors.d.ts +24 -0
- package/types/enums/shared/InputType.d.ts +6 -0
- package/types/enums/shared/Periodicity.d.ts +7 -0
- package/types/enums/shared/SvgIcon.d.ts +37 -0
- package/types/enums/shared/Theme.d.ts +4 -0
- package/types/enums/sms-template-locale.d.ts +133 -0
- package/types/enums/sms-template-type.d.ts +6 -0
- package/types/enums/smtp-encryption.d.ts +5 -0
- package/types/enums/storage-usage-range.d.ts +5 -0
- package/types/enums/subscriptions/PricingModel.d.ts +11 -0
- package/types/enums/subscriptions/SubscriptionBillingPeriod.d.ts +10 -0
- package/types/enums/subscriptions/SubscriptionFeatureLimitType.d.ts +10 -0
- package/types/enums/subscriptions/SubscriptionPriceType.d.ts +7 -0
- package/types/enums/tenants/LinkedAccountStatus.d.ts +5 -0
- package/types/enums/tenants/TenantUserJoined.d.ts +6 -0
- package/types/enums/tenants/TenantUserStatus.d.ts +6 -0
- package/types/enums/tenants/TenantUserType.d.ts +5 -0
- package/types/enums/user-usage-range.d.ts +5 -0
- package/types/getAppcondaClient.d.ts +2 -0
- package/types/getSDKForCurrentUser.d.ts +33 -0
- package/types/id.d.ts +20 -0
- package/types/index.d.ts +39 -0
- package/types/inputFile.d.ts +6 -0
- package/types/lib/Registry/Registry.d.ts +38 -0
- package/types/lib/Registry/index.d.ts +1 -0
- package/types/models.d.ts +3272 -0
- package/types/permission.d.ts +43 -0
- package/types/query.d.ts +194 -0
- package/types/role.d.ts +70 -0
- package/types/service-client.d.ts +7 -0
- package/types/service.d.ts +11 -0
- package/types/services/account.d.ts +530 -0
- package/types/services/acl.d.ts +28 -0
- package/types/services/applets.d.ts +9 -0
- package/types/services/assistant.d.ts +14 -0
- package/types/services/avatars.d.ts +115 -0
- package/types/services/community.d.ts +19 -0
- package/types/services/configuration.d.ts +5 -0
- package/types/services/console.d.ts +15 -0
- package/types/services/databases.d.ts +613 -0
- package/types/services/functions.d.ts +319 -0
- package/types/services/graphql.d.ts +25 -0
- package/types/services/health.d.ts +231 -0
- package/types/services/locale.d.ts +80 -0
- package/types/services/messaging.d.ts +685 -0
- package/types/services/migrations.d.ts +185 -0
- package/types/services/node.d.ts +5 -0
- package/types/services/permissions.d.ts +20 -0
- package/types/services/pricing.d.ts +15 -0
- package/types/services/project.d.ts +70 -0
- package/types/services/projects.d.ts +542 -0
- package/types/services/proxy.d.ts +59 -0
- package/types/services/roles.d.ts +19 -0
- package/types/services/schema.d.ts +17 -0
- package/types/services/storage.d.ts +189 -0
- package/types/services/subscription-product.d.ts +77 -0
- package/types/services/subscription.d.ts +15 -0
- package/types/services/teams.d.ts +167 -0
- package/types/services/tenant-subscription.d.ts +12 -0
- package/types/services/tenant.d.ts +32 -0
- package/types/services/users.d.ts +499 -0
- package/types/services/vcs.d.ts +108 -0
- package/types/services/waitlist.d.ts +5 -0
@@ -0,0 +1,185 @@
|
|
1
|
+
import { Client } from '../client';
|
2
|
+
import type { Models } from '../models';
|
3
|
+
export declare class Migrations {
|
4
|
+
client: Client;
|
5
|
+
constructor(client: Client);
|
6
|
+
/**
|
7
|
+
* List Migrations
|
8
|
+
*
|
9
|
+
*
|
10
|
+
* @param {string[]} queries
|
11
|
+
* @param {string} search
|
12
|
+
* @throws {AppcondaException}
|
13
|
+
* @returns {Promise<Models.MigrationList>}
|
14
|
+
*/
|
15
|
+
list(queries?: string[], search?: string): Promise<Models.MigrationList>;
|
16
|
+
/**
|
17
|
+
* Migrate Appconda Data
|
18
|
+
*
|
19
|
+
*
|
20
|
+
* @param {string[]} resources
|
21
|
+
* @param {string} endpoint
|
22
|
+
* @param {string} projectId
|
23
|
+
* @param {string} apiKey
|
24
|
+
* @throws {AppcondaException}
|
25
|
+
* @returns {Promise<Models.Migration>}
|
26
|
+
*/
|
27
|
+
createAppcondaMigration(resources: string[], endpoint: string, projectId: string, apiKey: string): Promise<Models.Migration>;
|
28
|
+
/**
|
29
|
+
* Generate a report on Appconda Data
|
30
|
+
*
|
31
|
+
*
|
32
|
+
* @param {string[]} resources
|
33
|
+
* @param {string} endpoint
|
34
|
+
* @param {string} projectID
|
35
|
+
* @param {string} key
|
36
|
+
* @throws {AppcondaException}
|
37
|
+
* @returns {Promise<Models.MigrationReport>}
|
38
|
+
*/
|
39
|
+
getAppcondaReport(resources: string[], endpoint: string, projectID: string, key: string): Promise<Models.MigrationReport>;
|
40
|
+
/**
|
41
|
+
* Migrate Firebase Data (Service Account)
|
42
|
+
*
|
43
|
+
*
|
44
|
+
* @param {string[]} resources
|
45
|
+
* @param {string} serviceAccount
|
46
|
+
* @throws {AppcondaException}
|
47
|
+
* @returns {Promise<Models.Migration>}
|
48
|
+
*/
|
49
|
+
createFirebaseMigration(resources: string[], serviceAccount: string): Promise<Models.Migration>;
|
50
|
+
/**
|
51
|
+
* Revoke Appconda's authorization to access Firebase Projects
|
52
|
+
*
|
53
|
+
*
|
54
|
+
* @throws {AppcondaException}
|
55
|
+
* @returns {Promise<{}>}
|
56
|
+
*/
|
57
|
+
deleteFirebaseAuth(): Promise<{}>;
|
58
|
+
/**
|
59
|
+
* Migrate Firebase Data (OAuth)
|
60
|
+
*
|
61
|
+
*
|
62
|
+
* @param {string[]} resources
|
63
|
+
* @param {string} projectId
|
64
|
+
* @throws {AppcondaException}
|
65
|
+
* @returns {Promise<Models.Migration>}
|
66
|
+
*/
|
67
|
+
createFirebaseOAuthMigration(resources: string[], projectId: string): Promise<Models.Migration>;
|
68
|
+
/**
|
69
|
+
* List Firebase Projects
|
70
|
+
*
|
71
|
+
*
|
72
|
+
* @throws {AppcondaException}
|
73
|
+
* @returns {Promise<Models.FirebaseProjectList>}
|
74
|
+
*/
|
75
|
+
listFirebaseProjects(): Promise<Models.FirebaseProjectList>;
|
76
|
+
/**
|
77
|
+
* Generate a report on Firebase Data
|
78
|
+
*
|
79
|
+
*
|
80
|
+
* @param {string[]} resources
|
81
|
+
* @param {string} serviceAccount
|
82
|
+
* @throws {AppcondaException}
|
83
|
+
* @returns {Promise<Models.MigrationReport>}
|
84
|
+
*/
|
85
|
+
getFirebaseReport(resources: string[], serviceAccount: string): Promise<Models.MigrationReport>;
|
86
|
+
/**
|
87
|
+
* Generate a report on Firebase Data using OAuth
|
88
|
+
*
|
89
|
+
*
|
90
|
+
* @param {string[]} resources
|
91
|
+
* @param {string} projectId
|
92
|
+
* @throws {AppcondaException}
|
93
|
+
* @returns {Promise<Models.MigrationReport>}
|
94
|
+
*/
|
95
|
+
getFirebaseReportOAuth(resources: string[], projectId: string): Promise<Models.MigrationReport>;
|
96
|
+
/**
|
97
|
+
* Migrate NHost Data
|
98
|
+
*
|
99
|
+
*
|
100
|
+
* @param {string[]} resources
|
101
|
+
* @param {string} subdomain
|
102
|
+
* @param {string} region
|
103
|
+
* @param {string} adminSecret
|
104
|
+
* @param {string} database
|
105
|
+
* @param {string} username
|
106
|
+
* @param {string} password
|
107
|
+
* @param {number} port
|
108
|
+
* @throws {AppcondaException}
|
109
|
+
* @returns {Promise<Models.Migration>}
|
110
|
+
*/
|
111
|
+
createNHostMigration(resources: string[], subdomain: string, region: string, adminSecret: string, database: string, username: string, password: string, port?: number): Promise<Models.Migration>;
|
112
|
+
/**
|
113
|
+
* Generate a report on NHost Data
|
114
|
+
*
|
115
|
+
*
|
116
|
+
* @param {string[]} resources
|
117
|
+
* @param {string} subdomain
|
118
|
+
* @param {string} region
|
119
|
+
* @param {string} adminSecret
|
120
|
+
* @param {string} database
|
121
|
+
* @param {string} username
|
122
|
+
* @param {string} password
|
123
|
+
* @param {number} port
|
124
|
+
* @throws {AppcondaException}
|
125
|
+
* @returns {Promise<Models.MigrationReport>}
|
126
|
+
*/
|
127
|
+
getNHostReport(resources: string[], subdomain: string, region: string, adminSecret: string, database: string, username: string, password: string, port?: number): Promise<Models.MigrationReport>;
|
128
|
+
/**
|
129
|
+
* Migrate Supabase Data
|
130
|
+
*
|
131
|
+
*
|
132
|
+
* @param {string[]} resources
|
133
|
+
* @param {string} endpoint
|
134
|
+
* @param {string} apiKey
|
135
|
+
* @param {string} databaseHost
|
136
|
+
* @param {string} username
|
137
|
+
* @param {string} password
|
138
|
+
* @param {number} port
|
139
|
+
* @throws {AppcondaException}
|
140
|
+
* @returns {Promise<Models.Migration>}
|
141
|
+
*/
|
142
|
+
createSupabaseMigration(resources: string[], endpoint: string, apiKey: string, databaseHost: string, username: string, password: string, port?: number): Promise<Models.Migration>;
|
143
|
+
/**
|
144
|
+
* Generate a report on Supabase Data
|
145
|
+
*
|
146
|
+
*
|
147
|
+
* @param {string[]} resources
|
148
|
+
* @param {string} endpoint
|
149
|
+
* @param {string} apiKey
|
150
|
+
* @param {string} databaseHost
|
151
|
+
* @param {string} username
|
152
|
+
* @param {string} password
|
153
|
+
* @param {number} port
|
154
|
+
* @throws {AppcondaException}
|
155
|
+
* @returns {Promise<Models.MigrationReport>}
|
156
|
+
*/
|
157
|
+
getSupabaseReport(resources: string[], endpoint: string, apiKey: string, databaseHost: string, username: string, password: string, port?: number): Promise<Models.MigrationReport>;
|
158
|
+
/**
|
159
|
+
* Get Migration
|
160
|
+
*
|
161
|
+
*
|
162
|
+
* @param {string} migrationId
|
163
|
+
* @throws {AppcondaException}
|
164
|
+
* @returns {Promise<Models.Migration>}
|
165
|
+
*/
|
166
|
+
get(migrationId: string): Promise<Models.Migration>;
|
167
|
+
/**
|
168
|
+
* Retry Migration
|
169
|
+
*
|
170
|
+
*
|
171
|
+
* @param {string} migrationId
|
172
|
+
* @throws {AppcondaException}
|
173
|
+
* @returns {Promise<Models.Migration>}
|
174
|
+
*/
|
175
|
+
retry(migrationId: string): Promise<Models.Migration>;
|
176
|
+
/**
|
177
|
+
* Delete Migration
|
178
|
+
*
|
179
|
+
*
|
180
|
+
* @param {string} migrationId
|
181
|
+
* @throws {AppcondaException}
|
182
|
+
* @returns {Promise<{}>}
|
183
|
+
*/
|
184
|
+
delete(migrationId: string): Promise<{}>;
|
185
|
+
}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import { Client, Models } from "../client";
|
2
|
+
export declare class Permissions {
|
3
|
+
client: Client;
|
4
|
+
constructor(client: Client);
|
5
|
+
get(permissionId: string): Promise<Models.Permission>;
|
6
|
+
/**
|
7
|
+
* Create account
|
8
|
+
*
|
9
|
+
* Use this endpoint to allow a new user to register a new account in your project. After the user registration completes successfully, you can use the [/account/verfication](https://appconda.io/docs/references/cloud/client-web/account#createVerification) route to start verifying the user email address. To allow the new user to login to their new account, you need to create a new [account session](https://appconda.io/docs/references/cloud/client-web/account#createEmailSession).
|
10
|
+
*
|
11
|
+
* @param {string} tenantId
|
12
|
+
* @param {string} name
|
13
|
+
* @param {string} slug
|
14
|
+
* @throws {AppcondaException}
|
15
|
+
* @returns {Promise<Models.User<Preferences>>}
|
16
|
+
*/
|
17
|
+
create({ $id, name, description, type }: Models.Permission): Promise<Models.Permission>;
|
18
|
+
list(queries?: string[], search?: string): Promise<Models.PermissionList>;
|
19
|
+
listPermissionInRoles(permissionId: string): Promise<Models.PermissionInRoleList>;
|
20
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { ServiceClient } from "../service-client";
|
2
|
+
export declare class Pricing extends ServiceClient {
|
3
|
+
protected getServiceName(): string;
|
4
|
+
getAllSubscriptionProducts(isPublic?: boolean): Promise<any[]>;
|
5
|
+
getActiveTenantsSubscriptions(isPublic?: boolean): Promise<any[]>;
|
6
|
+
createPlan(payload: {
|
7
|
+
plan: any;
|
8
|
+
prices: any[];
|
9
|
+
features: any[];
|
10
|
+
usageBasedPrices: any[];
|
11
|
+
}): Promise<any[]>;
|
12
|
+
createPlans(payload: {
|
13
|
+
plans: any[];
|
14
|
+
}): Promise<any[]>;
|
15
|
+
}
|
@@ -0,0 +1,70 @@
|
|
1
|
+
import { Client } from '../client';
|
2
|
+
import type { Models } from '../models';
|
3
|
+
import { ProjectUsageRange } from '../enums/project-usage-range';
|
4
|
+
export declare class Project {
|
5
|
+
client: Client;
|
6
|
+
constructor(client: Client);
|
7
|
+
/**
|
8
|
+
* Get project usage stats
|
9
|
+
*
|
10
|
+
*
|
11
|
+
* @param {string} startDate
|
12
|
+
* @param {string} endDate
|
13
|
+
* @param {ProjectUsageRange} period
|
14
|
+
* @throws {AppcondaException}
|
15
|
+
* @returns {Promise<Models.UsageProject>}
|
16
|
+
*/
|
17
|
+
getUsage(startDate: string, endDate: string, period?: ProjectUsageRange): Promise<Models.UsageProject>;
|
18
|
+
/**
|
19
|
+
* List Variables
|
20
|
+
*
|
21
|
+
* Get a list of all project variables. These variables will be accessible in all Appconda Functions at runtime.
|
22
|
+
*
|
23
|
+
* @throws {AppcondaException}
|
24
|
+
* @returns {Promise<Models.VariableList>}
|
25
|
+
*/
|
26
|
+
listVariables(): Promise<Models.VariableList>;
|
27
|
+
/**
|
28
|
+
* Create Variable
|
29
|
+
*
|
30
|
+
* Create a new project variable. This variable will be accessible in all Appconda Functions at runtime.
|
31
|
+
*
|
32
|
+
* @param {string} key
|
33
|
+
* @param {string} value
|
34
|
+
* @throws {AppcondaException}
|
35
|
+
* @returns {Promise<Models.Variable>}
|
36
|
+
*/
|
37
|
+
createVariable(key: string, value: string): Promise<Models.Variable>;
|
38
|
+
/**
|
39
|
+
* Get Variable
|
40
|
+
*
|
41
|
+
* Get a project variable by its unique ID.
|
42
|
+
*
|
43
|
+
* @param {string} variableId
|
44
|
+
* @throws {AppcondaException}
|
45
|
+
* @returns {Promise<Models.Variable>}
|
46
|
+
*/
|
47
|
+
getVariable(variableId: string): Promise<Models.Variable>;
|
48
|
+
/**
|
49
|
+
* Update Variable
|
50
|
+
*
|
51
|
+
* Update project variable by its unique ID. This variable will be accessible in all Appconda Functions at runtime.
|
52
|
+
*
|
53
|
+
* @param {string} variableId
|
54
|
+
* @param {string} key
|
55
|
+
* @param {string} value
|
56
|
+
* @throws {AppcondaException}
|
57
|
+
* @returns {Promise<Models.Variable>}
|
58
|
+
*/
|
59
|
+
updateVariable(variableId: string, key: string, value?: string): Promise<Models.Variable>;
|
60
|
+
/**
|
61
|
+
* Delete Variable
|
62
|
+
*
|
63
|
+
* Delete a project variable by its unique ID.
|
64
|
+
*
|
65
|
+
* @param {string} variableId
|
66
|
+
* @throws {AppcondaException}
|
67
|
+
* @returns {Promise<{}>}
|
68
|
+
*/
|
69
|
+
deleteVariable(variableId: string): Promise<{}>;
|
70
|
+
}
|