@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,189 +0,0 @@
|
|
1
|
-
import { Client, UploadProgress } from '../client';
|
2
|
-
import type { Models } from '../models';
|
3
|
-
import { Compression } from '../enums/compression';
|
4
|
-
import { ImageGravity } from '../enums/image-gravity';
|
5
|
-
import { ImageFormat } from '../enums/image-format';
|
6
|
-
export declare class Storage {
|
7
|
-
client: Client;
|
8
|
-
constructor(client: Client);
|
9
|
-
/**
|
10
|
-
* List buckets
|
11
|
-
*
|
12
|
-
* Get a list of all the storage buckets. You can use the query params to filter your results.
|
13
|
-
*
|
14
|
-
* @param {string[]} queries
|
15
|
-
* @param {string} search
|
16
|
-
* @throws {AppcondaException}
|
17
|
-
* @returns {Promise<Models.BucketList>}
|
18
|
-
*/
|
19
|
-
listBuckets(queries?: string[], search?: string): Promise<Models.BucketList>;
|
20
|
-
/**
|
21
|
-
* Create bucket
|
22
|
-
*
|
23
|
-
* Create a new storage bucket.
|
24
|
-
*
|
25
|
-
* @param {string} bucketId
|
26
|
-
* @param {string} name
|
27
|
-
* @param {string[]} permissions
|
28
|
-
* @param {boolean} fileSecurity
|
29
|
-
* @param {boolean} enabled
|
30
|
-
* @param {number} maximumFileSize
|
31
|
-
* @param {string[]} allowedFileExtensions
|
32
|
-
* @param {Compression} compression
|
33
|
-
* @param {boolean} encryption
|
34
|
-
* @param {boolean} antivirus
|
35
|
-
* @throws {AppcondaException}
|
36
|
-
* @returns {Promise<Models.Bucket>}
|
37
|
-
*/
|
38
|
-
createBucket(bucketId: string, name: string, permissions?: string[], fileSecurity?: boolean, enabled?: boolean, maximumFileSize?: number, allowedFileExtensions?: string[], compression?: Compression, encryption?: boolean, antivirus?: boolean): Promise<Models.Bucket>;
|
39
|
-
/**
|
40
|
-
* Get bucket
|
41
|
-
*
|
42
|
-
* Get a storage bucket by its unique ID. This endpoint response returns a JSON object with the storage bucket metadata.
|
43
|
-
*
|
44
|
-
* @param {string} bucketId
|
45
|
-
* @throws {AppcondaException}
|
46
|
-
* @returns {Promise<Models.Bucket>}
|
47
|
-
*/
|
48
|
-
getBucket(bucketId: string): Promise<Models.Bucket>;
|
49
|
-
/**
|
50
|
-
* Update bucket
|
51
|
-
*
|
52
|
-
* Update a storage bucket by its unique ID.
|
53
|
-
*
|
54
|
-
* @param {string} bucketId
|
55
|
-
* @param {string} name
|
56
|
-
* @param {string[]} permissions
|
57
|
-
* @param {boolean} fileSecurity
|
58
|
-
* @param {boolean} enabled
|
59
|
-
* @param {number} maximumFileSize
|
60
|
-
* @param {string[]} allowedFileExtensions
|
61
|
-
* @param {Compression} compression
|
62
|
-
* @param {boolean} encryption
|
63
|
-
* @param {boolean} antivirus
|
64
|
-
* @throws {AppcondaException}
|
65
|
-
* @returns {Promise<Models.Bucket>}
|
66
|
-
*/
|
67
|
-
updateBucket(bucketId: string, name: string, permissions?: string[], fileSecurity?: boolean, enabled?: boolean, maximumFileSize?: number, allowedFileExtensions?: string[], compression?: Compression, encryption?: boolean, antivirus?: boolean): Promise<Models.Bucket>;
|
68
|
-
/**
|
69
|
-
* Delete bucket
|
70
|
-
*
|
71
|
-
* Delete a storage bucket by its unique ID.
|
72
|
-
*
|
73
|
-
* @param {string} bucketId
|
74
|
-
* @throws {AppcondaException}
|
75
|
-
* @returns {Promise<{}>}
|
76
|
-
*/
|
77
|
-
deleteBucket(bucketId: string): Promise<{}>;
|
78
|
-
/**
|
79
|
-
* List files
|
80
|
-
*
|
81
|
-
* Get a list of all the user files. You can use the query params to filter your results.
|
82
|
-
*
|
83
|
-
* @param {string} bucketId
|
84
|
-
* @param {string[]} queries
|
85
|
-
* @param {string} search
|
86
|
-
* @throws {AppcondaException}
|
87
|
-
* @returns {Promise<Models.FileList>}
|
88
|
-
*/
|
89
|
-
listFiles(bucketId: string, queries?: string[], search?: string): Promise<Models.FileList>;
|
90
|
-
/**
|
91
|
-
* Create file
|
92
|
-
*
|
93
|
-
* Create a new file. Before using this route, you should create a new bucket resource using either a [server integration](https://appconda.io/docs/server/storage#storageCreateBucket) API or directly from your Appconda console.
|
94
|
-
|
95
|
-
Larger files should be uploaded using multiple requests with the [content-range](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Range) header to send a partial request with a maximum supported chunk of `5MB`. The `content-range` header values should always be in bytes.
|
96
|
-
|
97
|
-
When the first request is sent, the server will return the **File** object, and the subsequent part request must include the file's **id** in `x-appconda-id` header to allow the server to know that the partial upload is for the existing file and not for a new one.
|
98
|
-
|
99
|
-
If you're creating a new file using one of the Appconda SDKs, all the chunking logic will be managed by the SDK internally.
|
100
|
-
|
101
|
-
*
|
102
|
-
* @param {string} bucketId
|
103
|
-
* @param {string} fileId
|
104
|
-
* @param {File} file
|
105
|
-
* @param {string[]} permissions
|
106
|
-
* @throws {AppcondaException}
|
107
|
-
* @returns {Promise<Models.File>}
|
108
|
-
*/
|
109
|
-
createFile(bucketId: string, fileId: string, file: File, permissions?: string[], onProgress?: (progress: UploadProgress) => void): Promise<Models.File>;
|
110
|
-
/**
|
111
|
-
* Get file
|
112
|
-
*
|
113
|
-
* Get a file by its unique ID. This endpoint response returns a JSON object with the file metadata.
|
114
|
-
*
|
115
|
-
* @param {string} bucketId
|
116
|
-
* @param {string} fileId
|
117
|
-
* @throws {AppcondaException}
|
118
|
-
* @returns {Promise<Models.File>}
|
119
|
-
*/
|
120
|
-
getFile(bucketId: string, fileId: string): Promise<Models.File>;
|
121
|
-
/**
|
122
|
-
* Update file
|
123
|
-
*
|
124
|
-
* Update a file by its unique ID. Only users with write permissions have access to update this resource.
|
125
|
-
*
|
126
|
-
* @param {string} bucketId
|
127
|
-
* @param {string} fileId
|
128
|
-
* @param {string} name
|
129
|
-
* @param {string[]} permissions
|
130
|
-
* @throws {AppcondaException}
|
131
|
-
* @returns {Promise<Models.File>}
|
132
|
-
*/
|
133
|
-
updateFile(bucketId: string, fileId: string, name?: string, permissions?: string[]): Promise<Models.File>;
|
134
|
-
/**
|
135
|
-
* Delete File
|
136
|
-
*
|
137
|
-
* Delete a file by its unique ID. Only users with write permissions have access to delete this resource.
|
138
|
-
*
|
139
|
-
* @param {string} bucketId
|
140
|
-
* @param {string} fileId
|
141
|
-
* @throws {AppcondaException}
|
142
|
-
* @returns {Promise<{}>}
|
143
|
-
*/
|
144
|
-
deleteFile(bucketId: string, fileId: string): Promise<{}>;
|
145
|
-
/**
|
146
|
-
* Get file for download
|
147
|
-
*
|
148
|
-
* Get a file content by its unique ID. The endpoint response return with a 'Content-Disposition: attachment' header that tells the browser to start downloading the file to user downloads directory.
|
149
|
-
*
|
150
|
-
* @param {string} bucketId
|
151
|
-
* @param {string} fileId
|
152
|
-
* @throws {AppcondaException}
|
153
|
-
* @returns {Promise<ArrayBuffer>}
|
154
|
-
*/
|
155
|
-
getFileDownload(bucketId: string, fileId: string): Promise<ArrayBuffer>;
|
156
|
-
/**
|
157
|
-
* Get file preview
|
158
|
-
*
|
159
|
-
* Get a file preview image. Currently, this method supports preview for image files (jpg, png, and gif), other supported formats, like pdf, docs, slides, and spreadsheets, will return the file icon image. You can also pass query string arguments for cutting and resizing your preview image. Preview is supported only for image files smaller than 10MB.
|
160
|
-
*
|
161
|
-
* @param {string} bucketId
|
162
|
-
* @param {string} fileId
|
163
|
-
* @param {number} width
|
164
|
-
* @param {number} height
|
165
|
-
* @param {ImageGravity} gravity
|
166
|
-
* @param {number} quality
|
167
|
-
* @param {number} borderWidth
|
168
|
-
* @param {string} borderColor
|
169
|
-
* @param {number} borderRadius
|
170
|
-
* @param {number} opacity
|
171
|
-
* @param {number} rotation
|
172
|
-
* @param {string} background
|
173
|
-
* @param {ImageFormat} output
|
174
|
-
* @throws {AppcondaException}
|
175
|
-
* @returns {Promise<ArrayBuffer>}
|
176
|
-
*/
|
177
|
-
getFilePreview(bucketId: string, fileId: string, width?: number, height?: number, gravity?: ImageGravity, quality?: number, borderWidth?: number, borderColor?: string, borderRadius?: number, opacity?: number, rotation?: number, background?: string, output?: ImageFormat): Promise<ArrayBuffer>;
|
178
|
-
/**
|
179
|
-
* Get file for view
|
180
|
-
*
|
181
|
-
* Get a file content by its unique ID. This endpoint is similar to the download method but returns with no 'Content-Disposition: attachment' header.
|
182
|
-
*
|
183
|
-
* @param {string} bucketId
|
184
|
-
* @param {string} fileId
|
185
|
-
* @throws {AppcondaException}
|
186
|
-
* @returns {Promise<ArrayBuffer>}
|
187
|
-
*/
|
188
|
-
getFileView(bucketId: string, fileId: string): Promise<ArrayBuffer>;
|
189
|
-
}
|
@@ -1,77 +0,0 @@
|
|
1
|
-
import { SubscriptionProductDto } from "@/application/dtos/subscriptions/SubscriptionProductDto";
|
2
|
-
import { Client } from "../client";
|
3
|
-
export declare class Teams {
|
4
|
-
client: Client;
|
5
|
-
constructor(client: Client);
|
6
|
-
getAllSubscriptionProductsWithTenants(): Promise<SubscriptionProductDto[]>;
|
7
|
-
getAllSubscriptionProducts(isPublic?: boolean): Promise<SubscriptionProductDto[]>;
|
8
|
-
getSubscriptionProductsInIds(ids: string[]): Promise<SubscriptionProductDto[]>;
|
9
|
-
function: any;
|
10
|
-
getAllSubscriptionFeatures(): Promise<SubscriptionFeature[]>;
|
11
|
-
/**
|
12
|
-
* List teams
|
13
|
-
*
|
14
|
-
* Get a list of all the teams in which the current user is a member. You can use the parameters to filter your results.
|
15
|
-
*
|
16
|
-
* @param {string[]} queries
|
17
|
-
* @param {string} search
|
18
|
-
* @throws {AppcondaException}
|
19
|
-
* @returns {Promise<Models.TeamList<Preferences>>}
|
20
|
-
*/
|
21
|
-
list<Preferences extends Models.Preferences>(queries?: string[], search?: string): Promise<Models.TeamList<Preferences>>;
|
22
|
-
/**
|
23
|
-
* Create team
|
24
|
-
*
|
25
|
-
* Create a new team. The user who creates the team will automatically be assigned as the owner of the team. Only the users with the owner role can invite new members, add new owners and delete or update the team.
|
26
|
-
*
|
27
|
-
* @param {string} teamId
|
28
|
-
* @param {string} name
|
29
|
-
* @param {string[]} roles
|
30
|
-
* @throws {AppcondaException}
|
31
|
-
* @returns {Promise<Models.Team<Preferences>>}
|
32
|
-
*/
|
33
|
-
create<Preferences extends Models.Preferences>(teamId: string, name: string, roles?: string[]): Promise<Models.Team<Preferences>>;
|
34
|
-
/**
|
35
|
-
* Get team
|
36
|
-
*
|
37
|
-
* Get a team by its ID. All team members have read access for this resource.
|
38
|
-
*
|
39
|
-
* @param {string} teamId
|
40
|
-
* @throws {AppcondaException}
|
41
|
-
* @returns {Promise<Models.Team<Preferences>>}
|
42
|
-
*/
|
43
|
-
get<Preferences extends Models.Preferences>(teamId: string): Promise<Models.Team<Preferences>>;
|
44
|
-
/**
|
45
|
-
* Update name
|
46
|
-
*
|
47
|
-
* Update the team's name by its unique ID.
|
48
|
-
*
|
49
|
-
* @param {string} teamId
|
50
|
-
* @param {string} name
|
51
|
-
* @throws {AppcondaException}
|
52
|
-
* @returns {Promise<Models.Team<Preferences>>}
|
53
|
-
*/
|
54
|
-
updateName<Preferences extends Models.Preferences>(teamId: string, name: string): Promise<Models.Team<Preferences>>;
|
55
|
-
/**
|
56
|
-
* Delete team
|
57
|
-
*
|
58
|
-
* Delete a team using its ID. Only team members with the owner role can delete the team.
|
59
|
-
*
|
60
|
-
* @param {string} teamId
|
61
|
-
* @throws {AppcondaException}
|
62
|
-
* @returns {Promise<{}>}
|
63
|
-
*/
|
64
|
-
delete(teamId: string): Promise<{}>;
|
65
|
-
/**
|
66
|
-
* List team memberships
|
67
|
-
*
|
68
|
-
* Use this endpoint to list a team's members using the team's ID. All team members have read access to this endpoint.
|
69
|
-
*
|
70
|
-
* @param {string} teamId
|
71
|
-
* @param {string[]} queries
|
72
|
-
* @param {string} search
|
73
|
-
* @throws {AppcondaException}
|
74
|
-
* @returns {Promise<Models.MembershipList>}
|
75
|
-
*/
|
76
|
-
listMemberships(teamId: string, queries?: string[], search?: string): Promise<Models.MembershipList>;
|
77
|
-
}
|
@@ -1,15 +0,0 @@
|
|
1
|
-
import { ServiceClient } from "../service-client";
|
2
|
-
export declare class Subscription extends ServiceClient {
|
3
|
-
protected getServiceName(): string;
|
4
|
-
getAllSubscriptionProducts(isPublic?: boolean): Promise<any[]>;
|
5
|
-
getActiveTenantsSubscriptions(isPublic?: boolean): Promise<any[]>;
|
6
|
-
getAllSubscriptionProductsWithTenants(): Promise<any[]>;
|
7
|
-
getSubscriptionProduct(productId: string): Promise<any>;
|
8
|
-
getAllTenantSubscriptionProducts(filters?: any, pagination?: {
|
9
|
-
page: number;
|
10
|
-
pageSize: number;
|
11
|
-
}): Promise<{
|
12
|
-
items: any[];
|
13
|
-
pagination: any;
|
14
|
-
}>;
|
15
|
-
}
|
@@ -1,167 +0,0 @@
|
|
1
|
-
import { Client } from '../client';
|
2
|
-
import type { Models } from '../models';
|
3
|
-
export declare class Teams {
|
4
|
-
client: Client;
|
5
|
-
constructor(client: Client);
|
6
|
-
/**
|
7
|
-
* List teams
|
8
|
-
*
|
9
|
-
* Get a list of all the teams in which the current user is a member. You can use the parameters to filter your results.
|
10
|
-
*
|
11
|
-
* @param {string[]} queries
|
12
|
-
* @param {string} search
|
13
|
-
* @throws {AppcondaException}
|
14
|
-
* @returns {Promise<Models.TeamList<Preferences>>}
|
15
|
-
*/
|
16
|
-
list<Preferences extends Models.Preferences>(queries?: string[], search?: string): Promise<Models.TeamList<Preferences>>;
|
17
|
-
/**
|
18
|
-
* Create team
|
19
|
-
*
|
20
|
-
* Create a new team. The user who creates the team will automatically be assigned as the owner of the team. Only the users with the owner role can invite new members, add new owners and delete or update the team.
|
21
|
-
*
|
22
|
-
* @param {string} teamId
|
23
|
-
* @param {string} name
|
24
|
-
* @param {string[]} roles
|
25
|
-
* @throws {AppcondaException}
|
26
|
-
* @returns {Promise<Models.Team<Preferences>>}
|
27
|
-
*/
|
28
|
-
create<Preferences extends Models.Preferences>(teamId: string, name: string, roles?: string[]): Promise<Models.Team<Preferences>>;
|
29
|
-
/**
|
30
|
-
* Get team
|
31
|
-
*
|
32
|
-
* Get a team by its ID. All team members have read access for this resource.
|
33
|
-
*
|
34
|
-
* @param {string} teamId
|
35
|
-
* @throws {AppcondaException}
|
36
|
-
* @returns {Promise<Models.Team<Preferences>>}
|
37
|
-
*/
|
38
|
-
get<Preferences extends Models.Preferences>(teamId: string): Promise<Models.Team<Preferences>>;
|
39
|
-
/**
|
40
|
-
* Update name
|
41
|
-
*
|
42
|
-
* Update the team's name by its unique ID.
|
43
|
-
*
|
44
|
-
* @param {string} teamId
|
45
|
-
* @param {string} name
|
46
|
-
* @throws {AppcondaException}
|
47
|
-
* @returns {Promise<Models.Team<Preferences>>}
|
48
|
-
*/
|
49
|
-
updateName<Preferences extends Models.Preferences>(teamId: string, name: string): Promise<Models.Team<Preferences>>;
|
50
|
-
/**
|
51
|
-
* Delete team
|
52
|
-
*
|
53
|
-
* Delete a team using its ID. Only team members with the owner role can delete the team.
|
54
|
-
*
|
55
|
-
* @param {string} teamId
|
56
|
-
* @throws {AppcondaException}
|
57
|
-
* @returns {Promise<{}>}
|
58
|
-
*/
|
59
|
-
delete(teamId: string): Promise<{}>;
|
60
|
-
/**
|
61
|
-
* List team memberships
|
62
|
-
*
|
63
|
-
* Use this endpoint to list a team's members using the team's ID. All team members have read access to this endpoint.
|
64
|
-
*
|
65
|
-
* @param {string} teamId
|
66
|
-
* @param {string[]} queries
|
67
|
-
* @param {string} search
|
68
|
-
* @throws {AppcondaException}
|
69
|
-
* @returns {Promise<Models.MembershipList>}
|
70
|
-
*/
|
71
|
-
listMemberships(teamId: string, queries?: string[], search?: string): Promise<Models.MembershipList>;
|
72
|
-
/**
|
73
|
-
* Create team membership
|
74
|
-
*
|
75
|
-
* Invite a new member to join your team. Provide an ID for existing users, or invite unregistered users using an email or phone number. If initiated from a Client SDK, Appconda will send an email or sms with a link to join the team to the invited user, and an account will be created for them if one doesn't exist. If initiated from a Server SDK, the new member will be added automatically to the team.
|
76
|
-
|
77
|
-
You only need to provide one of a user ID, email, or phone number. Appconda will prioritize accepting the user ID > email > phone number if you provide more than one of these parameters.
|
78
|
-
|
79
|
-
Use the `url` parameter to redirect the user from the invitation email to your app. After the user is redirected, use the [Update Team Membership Status](https://appconda.io/docs/references/cloud/client-web/teams#updateMembershipStatus) endpoint to allow the user to accept the invitation to the team.
|
80
|
-
|
81
|
-
Please note that to avoid a [Redirect Attack](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md) Appconda will accept the only redirect URLs under the domains you have added as a platform on the Appconda Console.
|
82
|
-
|
83
|
-
*
|
84
|
-
* @param {string} teamId
|
85
|
-
* @param {string[]} roles
|
86
|
-
* @param {string} email
|
87
|
-
* @param {string} userId
|
88
|
-
* @param {string} phone
|
89
|
-
* @param {string} url
|
90
|
-
* @param {string} name
|
91
|
-
* @throws {AppcondaException}
|
92
|
-
* @returns {Promise<Models.Membership>}
|
93
|
-
*/
|
94
|
-
createMembership(teamId: string, roles: string[], email?: string, userId?: string, phone?: string, url?: string, name?: string): Promise<Models.Membership>;
|
95
|
-
/**
|
96
|
-
* Get team membership
|
97
|
-
*
|
98
|
-
* Get a team member by the membership unique id. All team members have read access for this resource.
|
99
|
-
*
|
100
|
-
* @param {string} teamId
|
101
|
-
* @param {string} membershipId
|
102
|
-
* @throws {AppcondaException}
|
103
|
-
* @returns {Promise<Models.Membership>}
|
104
|
-
*/
|
105
|
-
getMembership(teamId: string, membershipId: string): Promise<Models.Membership>;
|
106
|
-
/**
|
107
|
-
* Update membership
|
108
|
-
*
|
109
|
-
* Modify the roles of a team member. Only team members with the owner role have access to this endpoint. Learn more about [roles and permissions](https://appconda.io/docs/permissions).
|
110
|
-
|
111
|
-
*
|
112
|
-
* @param {string} teamId
|
113
|
-
* @param {string} membershipId
|
114
|
-
* @param {string[]} roles
|
115
|
-
* @throws {AppcondaException}
|
116
|
-
* @returns {Promise<Models.Membership>}
|
117
|
-
*/
|
118
|
-
updateMembership(teamId: string, membershipId: string, roles: string[]): Promise<Models.Membership>;
|
119
|
-
/**
|
120
|
-
* Delete team membership
|
121
|
-
*
|
122
|
-
* This endpoint allows a user to leave a team or for a team owner to delete the membership of any other team member. You can also use this endpoint to delete a user membership even if it is not accepted.
|
123
|
-
*
|
124
|
-
* @param {string} teamId
|
125
|
-
* @param {string} membershipId
|
126
|
-
* @throws {AppcondaException}
|
127
|
-
* @returns {Promise<{}>}
|
128
|
-
*/
|
129
|
-
deleteMembership(teamId: string, membershipId: string): Promise<{}>;
|
130
|
-
/**
|
131
|
-
* Update team membership status
|
132
|
-
*
|
133
|
-
* Use this endpoint to allow a user to accept an invitation to join a team after being redirected back to your app from the invitation email received by the user.
|
134
|
-
|
135
|
-
If the request is successful, a session for the user is automatically created.
|
136
|
-
|
137
|
-
*
|
138
|
-
* @param {string} teamId
|
139
|
-
* @param {string} membershipId
|
140
|
-
* @param {string} userId
|
141
|
-
* @param {string} secret
|
142
|
-
* @throws {AppcondaException}
|
143
|
-
* @returns {Promise<Models.Membership>}
|
144
|
-
*/
|
145
|
-
updateMembershipStatus(teamId: string, membershipId: string, userId: string, secret: string): Promise<Models.Membership>;
|
146
|
-
/**
|
147
|
-
* Get team preferences
|
148
|
-
*
|
149
|
-
* Get the team's shared preferences by its unique ID. If a preference doesn't need to be shared by all team members, prefer storing them in [user preferences](https://appconda.io/docs/references/cloud/client-web/account#getPrefs).
|
150
|
-
*
|
151
|
-
* @param {string} teamId
|
152
|
-
* @throws {AppcondaException}
|
153
|
-
* @returns {Promise<Preferences>}
|
154
|
-
*/
|
155
|
-
getPrefs<Preferences extends Models.Preferences>(teamId: string): Promise<Preferences>;
|
156
|
-
/**
|
157
|
-
* Update preferences
|
158
|
-
*
|
159
|
-
* Update the team's preferences by its unique ID. The object you pass is stored as is and replaces any previous value. The maximum allowed prefs size is 64kB and throws an error if exceeded.
|
160
|
-
*
|
161
|
-
* @param {string} teamId
|
162
|
-
* @param {object} prefs
|
163
|
-
* @throws {AppcondaException}
|
164
|
-
* @returns {Promise<Preferences>}
|
165
|
-
*/
|
166
|
-
updatePrefs<Preferences extends Models.Preferences>(teamId: string, prefs: object): Promise<Preferences>;
|
167
|
-
}
|
@@ -1,12 +0,0 @@
|
|
1
|
-
import { Client } from "../client";
|
2
|
-
export declare class TenantSubscription {
|
3
|
-
client: Client;
|
4
|
-
constructor(client: Client);
|
5
|
-
getOrPersistTenantSubscription(tenantId: string): Promise<ArrayBuffer>;
|
6
|
-
getTenantSubscriptions(): Promise<any>;
|
7
|
-
createTenantSubscription(tenantId: string, stripeCustomerId: string): Promise<{
|
8
|
-
id: string;
|
9
|
-
tenantId: string;
|
10
|
-
stripeCustomerId: string;
|
11
|
-
}>;
|
12
|
-
}
|
@@ -1,32 +0,0 @@
|
|
1
|
-
import { Models } from "../client";
|
2
|
-
import { ServiceClient } from "../service-client";
|
3
|
-
export type TenantSimple = {
|
4
|
-
id: string;
|
5
|
-
name: string;
|
6
|
-
slug: string;
|
7
|
-
icon: string | null;
|
8
|
-
deactivatedReason: string | null;
|
9
|
-
types: any[];
|
10
|
-
active: boolean;
|
11
|
-
};
|
12
|
-
export declare class Tenant extends ServiceClient {
|
13
|
-
getServiceName(): string;
|
14
|
-
get(tenantId: string): Promise<Models.Tenant>;
|
15
|
-
/**
|
16
|
-
* Create account
|
17
|
-
*
|
18
|
-
* 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).
|
19
|
-
*
|
20
|
-
* @param {string} tenantId
|
21
|
-
* @param {string} name
|
22
|
-
* @param {string} slug
|
23
|
-
* @throws {AppcondaException}
|
24
|
-
* @returns {Promise<Models.User<Preferences>>}
|
25
|
-
*/
|
26
|
-
create({ $id, name, slug }: Models.Tenant): Promise<Models.Tenant>;
|
27
|
-
list(queries?: string[], search?: string): Promise<Models.TenantList>;
|
28
|
-
listUserTenants(userId: string, queries?: string[], search?: string): Promise<Models.TenantUserList>;
|
29
|
-
listTenantUsers(tenantId: string, queries?: string[], search?: string): Promise<Models.TenantUserList>;
|
30
|
-
createTenantUser({ tenantId, userId }: Models.TenantUser): Promise<Models.TenantUser>;
|
31
|
-
adminGetAllTenantsIdsAndNames(): Promise<TenantSimple[]>;
|
32
|
-
}
|