@appconda/nextjs 1.0.46 → 1.0.49
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/actions/actionClient.d.ts +1 -1
- package/dist/actions/actionClient.js +3 -6
- package/dist/actions/index.js +1 -17
- package/dist/actions/nodes.d.ts +1 -1
- package/dist/actions/nodes.js +4 -7
- package/dist/client.js +33 -39
- package/dist/decorators/Cache.js +4 -7
- package/dist/decorators/CacheKey.js +1 -4
- package/dist/decorators/Invalidate.js +4 -7
- package/dist/enums/api-service.js +2 -5
- package/dist/enums/api.js +2 -5
- package/dist/enums/auth-method.js +2 -5
- package/dist/enums/authentication-factor.js +2 -5
- package/dist/enums/authenticator-type.js +2 -5
- package/dist/enums/browser.js +2 -5
- package/dist/enums/compression.js +2 -5
- package/dist/enums/credit-card.js +2 -5
- package/dist/enums/database-usage-range.js +2 -5
- package/dist/enums/email-template-locale.js +2 -5
- package/dist/enums/email-template-type.js +2 -5
- package/dist/enums/entities/EntityLimitType.js +2 -5
- package/dist/enums/entities/PropertyAttributeName.js +2 -5
- package/dist/enums/entities/PropertyCondition.js +2 -5
- package/dist/enums/entities/PropertyType.js +2 -5
- package/dist/enums/entities/PropertyValueType.js +2 -5
- package/dist/enums/entities/RowAccess.js +1 -4
- package/dist/enums/entities/ViewFilterCondition.js +2 -5
- package/dist/enums/execution-method.js +2 -5
- package/dist/enums/flag.js +2 -5
- package/dist/enums/function-usage-range.js +2 -5
- package/dist/enums/image-format.js +2 -5
- package/dist/enums/image-gravity.js +2 -5
- package/dist/enums/index-type.js +2 -5
- package/dist/enums/messaging-provider-type.js +2 -5
- package/dist/enums/name.js +2 -5
- package/dist/enums/o-auth-provider copy.js +2 -5
- package/dist/enums/o-auth-provider.js +2 -5
- package/dist/enums/password-hash.js +2 -5
- package/dist/enums/platform-type.js +2 -5
- package/dist/enums/project-usage-range.js +2 -5
- package/dist/enums/region.js +2 -5
- package/dist/enums/relation-mutate.js +2 -5
- package/dist/enums/relationship-type.js +2 -5
- package/dist/enums/resource-type.js +2 -5
- package/dist/enums/runtime.js +2 -5
- package/dist/enums/s-m-t-p-secure.js +2 -5
- package/dist/enums/shared/ApplicationLayout.js +2 -5
- package/dist/enums/shared/Colors.js +2 -5
- package/dist/enums/shared/InputType.js +2 -5
- package/dist/enums/shared/Periodicity.js +2 -5
- package/dist/enums/shared/SvgIcon.js +2 -5
- package/dist/enums/shared/Theme.js +2 -5
- package/dist/enums/sms-template-locale.js +2 -5
- package/dist/enums/sms-template-type.js +2 -5
- package/dist/enums/smtp-encryption.js +2 -5
- package/dist/enums/storage-usage-range.js +2 -5
- package/dist/enums/subscriptions/PricingModel.js +4 -7
- package/dist/enums/subscriptions/SubscriptionBillingPeriod.js +4 -7
- package/dist/enums/subscriptions/SubscriptionFeatureLimitType.js +4 -7
- package/dist/enums/subscriptions/SubscriptionPriceType.js +4 -7
- package/dist/enums/tenants/LinkedAccountStatus.js +2 -5
- package/dist/enums/tenants/TenantUserJoined.js +2 -5
- package/dist/enums/tenants/TenantUserStatus.js +2 -5
- package/dist/enums/tenants/TenantUserType.js +2 -5
- package/dist/enums/user-usage-range.js +2 -5
- package/dist/getAppcondaClient.js +3 -6
- package/dist/getSDKForCurrentUser.js +37 -40
- package/dist/id.js +16 -20
- package/dist/index.js +37 -91
- package/dist/inputFile.js +6 -10
- package/dist/lib/Cache/Adapter.js +1 -2
- package/dist/lib/Cache/Adapters/Filesystem.js +2 -6
- package/dist/lib/Cache/Adapters/Memory.js +4 -7
- package/dist/lib/Cache/Adapters/None.js +1 -5
- package/dist/lib/Cache/Adapters/Sharding.js +14 -19
- package/dist/lib/Cache/Cache.js +2 -7
- package/dist/lib/Cache/index.js +4 -20
- package/dist/lib/Cache/test.d.ts +0 -1
- package/dist/lib/Cache/test.js +0 -2
- package/dist/lib/Registry/Registry.js +21 -23
- package/dist/lib/Registry/index.js +1 -17
- package/dist/lib/Services.js +8 -12
- package/dist/models.js +1 -2
- package/dist/modules/index.js +1 -17
- package/dist/modules/waitlist/action.d.ts +3 -3
- package/dist/modules/waitlist/action.js +11 -14
- package/dist/modules/waitlist/index.js +3 -19
- package/dist/modules/waitlist/schema.js +5 -8
- package/dist/modules/waitlist/service.js +2 -6
- package/dist/modules/waitlist/types.js +1 -2
- package/dist/permission.js +49 -53
- package/dist/query.js +168 -175
- package/dist/role.js +1 -5
- package/dist/schemas/nodes.d.ts +0 -1
- package/dist/schemas/nodes.js +0 -2
- package/dist/service-client.js +1 -6
- package/dist/service.js +5 -10
- package/dist/services/account.js +58 -63
- package/dist/services/applets.js +4 -9
- package/dist/services/avatars.js +8 -13
- package/dist/services/community.js +5 -10
- package/dist/services/configuration.js +2 -6
- package/dist/services/databases.js +150 -155
- package/dist/services/functions.js +42 -47
- package/dist/services/graphql.js +4 -9
- package/dist/services/health.js +3 -8
- package/dist/services/locale.js +1 -6
- package/dist/services/messaging.js +66 -71
- package/dist/services/node.js +4 -8
- package/dist/services/permissions.js +7 -12
- package/dist/services/pricing.js +2 -6
- package/dist/services/projects.js +113 -118
- package/dist/services/roles.js +6 -11
- package/dist/services/schema.js +5 -10
- package/dist/services/storage.js +24 -29
- package/dist/services/subscription.js +2 -6
- package/dist/services/teams.js +25 -30
- package/dist/services/tenant-subscription.js +5 -10
- package/dist/services/tenant.js +9 -13
- package/dist/services/users.js +82 -87
- package/package.json +1 -1
- package/tsconfig.json +2 -3
package/dist/services/roles.js
CHANGED
@@ -1,15 +1,11 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
exports.Roles = void 0;
|
4
|
-
const client_1 = require("../client");
|
5
|
-
class Roles {
|
6
|
-
client;
|
1
|
+
import { AppcondaException } from "../client";
|
2
|
+
export class Roles {
|
7
3
|
constructor(client) {
|
8
4
|
this.client = client;
|
9
5
|
}
|
10
6
|
async get(roleId) {
|
11
7
|
if (typeof roleId === 'undefined') {
|
12
|
-
throw new
|
8
|
+
throw new AppcondaException('Missing required parameter: "tenantId"');
|
13
9
|
}
|
14
10
|
const apiPath = '/roles/{roleId}'.replace('{roleId}', roleId);
|
15
11
|
const payload = {};
|
@@ -32,13 +28,13 @@ class Roles {
|
|
32
28
|
*/
|
33
29
|
async create({ $id, name, description }) {
|
34
30
|
if (typeof $id === 'undefined') {
|
35
|
-
throw new
|
31
|
+
throw new AppcondaException('Missing required parameter: "roleId"');
|
36
32
|
}
|
37
33
|
if (typeof name === 'undefined') {
|
38
|
-
throw new
|
34
|
+
throw new AppcondaException('Missing required parameter: "name"');
|
39
35
|
}
|
40
36
|
if (typeof description === 'undefined') {
|
41
|
-
throw new
|
37
|
+
throw new AppcondaException('Missing required parameter: "description"');
|
42
38
|
}
|
43
39
|
const apiPath = '/roles';
|
44
40
|
const payload = {};
|
@@ -73,4 +69,3 @@ class Roles {
|
|
73
69
|
return await this.client.call('get', uri, apiHeaders, payload);
|
74
70
|
}
|
75
71
|
}
|
76
|
-
exports.Roles = Roles;
|
package/dist/services/schema.js
CHANGED
@@ -1,9 +1,5 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
exports.Schemas = void 0;
|
4
|
-
const client_1 = require("../client");
|
5
|
-
class Schemas {
|
6
|
-
client;
|
1
|
+
import { AppcondaException } from "../client";
|
2
|
+
export class Schemas {
|
7
3
|
constructor(client) {
|
8
4
|
this.client = client;
|
9
5
|
}
|
@@ -20,13 +16,13 @@ class Schemas {
|
|
20
16
|
*/
|
21
17
|
async import(projectId, databaseId, databaseName, schema) {
|
22
18
|
if (typeof projectId === 'undefined') {
|
23
|
-
throw new
|
19
|
+
throw new AppcondaException('Missing required parameter: "projectId"');
|
24
20
|
}
|
25
21
|
if (typeof databaseId === 'undefined') {
|
26
|
-
throw new
|
22
|
+
throw new AppcondaException('Missing required parameter: "databaseId"');
|
27
23
|
}
|
28
24
|
if (typeof schema === 'undefined') {
|
29
|
-
throw new
|
25
|
+
throw new AppcondaException('Missing required parameter: "schema"');
|
30
26
|
}
|
31
27
|
const apiPath = `/schema/${projectId}/${databaseId}`;
|
32
28
|
const payload = {};
|
@@ -49,4 +45,3 @@ class Schemas {
|
|
49
45
|
return await this.client.call('post', uri, apiHeaders, payload);
|
50
46
|
}
|
51
47
|
}
|
52
|
-
exports.Schemas = Schemas;
|
package/dist/services/storage.js
CHANGED
@@ -1,9 +1,5 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
exports.Storage = void 0;
|
4
|
-
const client_1 = require("../client");
|
5
|
-
class Storage {
|
6
|
-
client;
|
1
|
+
import { AppcondaException } from '../client';
|
2
|
+
export class Storage {
|
7
3
|
constructor(client) {
|
8
4
|
this.client = client;
|
9
5
|
}
|
@@ -52,10 +48,10 @@ class Storage {
|
|
52
48
|
*/
|
53
49
|
async createBucket(bucketId, name, permissions, fileSecurity, enabled, maximumFileSize, allowedFileExtensions, compression, encryption, antivirus) {
|
54
50
|
if (typeof bucketId === 'undefined') {
|
55
|
-
throw new
|
51
|
+
throw new AppcondaException('Missing required parameter: "bucketId"');
|
56
52
|
}
|
57
53
|
if (typeof name === 'undefined') {
|
58
|
-
throw new
|
54
|
+
throw new AppcondaException('Missing required parameter: "name"');
|
59
55
|
}
|
60
56
|
const apiPath = '/storage/buckets';
|
61
57
|
const payload = {};
|
@@ -106,7 +102,7 @@ class Storage {
|
|
106
102
|
*/
|
107
103
|
async getBucket(bucketId) {
|
108
104
|
if (typeof bucketId === 'undefined') {
|
109
|
-
throw new
|
105
|
+
throw new AppcondaException('Missing required parameter: "bucketId"');
|
110
106
|
}
|
111
107
|
const apiPath = '/storage/buckets/{bucketId}'.replace('{bucketId}', bucketId);
|
112
108
|
const payload = {};
|
@@ -136,10 +132,10 @@ class Storage {
|
|
136
132
|
*/
|
137
133
|
async updateBucket(bucketId, name, permissions, fileSecurity, enabled, maximumFileSize, allowedFileExtensions, compression, encryption, antivirus) {
|
138
134
|
if (typeof bucketId === 'undefined') {
|
139
|
-
throw new
|
135
|
+
throw new AppcondaException('Missing required parameter: "bucketId"');
|
140
136
|
}
|
141
137
|
if (typeof name === 'undefined') {
|
142
|
-
throw new
|
138
|
+
throw new AppcondaException('Missing required parameter: "name"');
|
143
139
|
}
|
144
140
|
const apiPath = '/storage/buckets/{bucketId}'.replace('{bucketId}', bucketId);
|
145
141
|
const payload = {};
|
@@ -187,7 +183,7 @@ class Storage {
|
|
187
183
|
*/
|
188
184
|
async deleteBucket(bucketId) {
|
189
185
|
if (typeof bucketId === 'undefined') {
|
190
|
-
throw new
|
186
|
+
throw new AppcondaException('Missing required parameter: "bucketId"');
|
191
187
|
}
|
192
188
|
const apiPath = '/storage/buckets/{bucketId}'.replace('{bucketId}', bucketId);
|
193
189
|
const payload = {};
|
@@ -210,7 +206,7 @@ class Storage {
|
|
210
206
|
*/
|
211
207
|
async listFiles(bucketId, queries, search) {
|
212
208
|
if (typeof bucketId === 'undefined') {
|
213
|
-
throw new
|
209
|
+
throw new AppcondaException('Missing required parameter: "bucketId"');
|
214
210
|
}
|
215
211
|
const apiPath = '/storage/buckets/{bucketId}/files'.replace('{bucketId}', bucketId);
|
216
212
|
const payload = {};
|
@@ -247,13 +243,13 @@ If you're creating a new file using one of the Appconda SDKs, all the chunk
|
|
247
243
|
*/
|
248
244
|
async createFile(bucketId, fileId, file, permissions, onProgress = (progress) => { }) {
|
249
245
|
if (typeof bucketId === 'undefined') {
|
250
|
-
throw new
|
246
|
+
throw new AppcondaException('Missing required parameter: "bucketId"');
|
251
247
|
}
|
252
248
|
if (typeof fileId === 'undefined') {
|
253
|
-
throw new
|
249
|
+
throw new AppcondaException('Missing required parameter: "fileId"');
|
254
250
|
}
|
255
251
|
if (typeof file === 'undefined') {
|
256
|
-
throw new
|
252
|
+
throw new AppcondaException('Missing required parameter: "file"');
|
257
253
|
}
|
258
254
|
const apiPath = '/storage/buckets/{bucketId}/files'.replace('{bucketId}', bucketId);
|
259
255
|
const payload = {};
|
@@ -284,10 +280,10 @@ If you're creating a new file using one of the Appconda SDKs, all the chunk
|
|
284
280
|
*/
|
285
281
|
async getFile(bucketId, fileId) {
|
286
282
|
if (typeof bucketId === 'undefined') {
|
287
|
-
throw new
|
283
|
+
throw new AppcondaException('Missing required parameter: "bucketId"');
|
288
284
|
}
|
289
285
|
if (typeof fileId === 'undefined') {
|
290
|
-
throw new
|
286
|
+
throw new AppcondaException('Missing required parameter: "fileId"');
|
291
287
|
}
|
292
288
|
const apiPath = '/storage/buckets/{bucketId}/files/{fileId}'.replace('{bucketId}', bucketId).replace('{fileId}', fileId);
|
293
289
|
const payload = {};
|
@@ -311,10 +307,10 @@ If you're creating a new file using one of the Appconda SDKs, all the chunk
|
|
311
307
|
*/
|
312
308
|
async updateFile(bucketId, fileId, name, permissions) {
|
313
309
|
if (typeof bucketId === 'undefined') {
|
314
|
-
throw new
|
310
|
+
throw new AppcondaException('Missing required parameter: "bucketId"');
|
315
311
|
}
|
316
312
|
if (typeof fileId === 'undefined') {
|
317
|
-
throw new
|
313
|
+
throw new AppcondaException('Missing required parameter: "fileId"');
|
318
314
|
}
|
319
315
|
const apiPath = '/storage/buckets/{bucketId}/files/{fileId}'.replace('{bucketId}', bucketId).replace('{fileId}', fileId);
|
320
316
|
const payload = {};
|
@@ -342,10 +338,10 @@ If you're creating a new file using one of the Appconda SDKs, all the chunk
|
|
342
338
|
*/
|
343
339
|
async deleteFile(bucketId, fileId) {
|
344
340
|
if (typeof bucketId === 'undefined') {
|
345
|
-
throw new
|
341
|
+
throw new AppcondaException('Missing required parameter: "bucketId"');
|
346
342
|
}
|
347
343
|
if (typeof fileId === 'undefined') {
|
348
|
-
throw new
|
344
|
+
throw new AppcondaException('Missing required parameter: "fileId"');
|
349
345
|
}
|
350
346
|
const apiPath = '/storage/buckets/{bucketId}/files/{fileId}'.replace('{bucketId}', bucketId).replace('{fileId}', fileId);
|
351
347
|
const payload = {};
|
@@ -367,10 +363,10 @@ If you're creating a new file using one of the Appconda SDKs, all the chunk
|
|
367
363
|
*/
|
368
364
|
async getFileDownload(bucketId, fileId) {
|
369
365
|
if (typeof bucketId === 'undefined') {
|
370
|
-
throw new
|
366
|
+
throw new AppcondaException('Missing required parameter: "bucketId"');
|
371
367
|
}
|
372
368
|
if (typeof fileId === 'undefined') {
|
373
|
-
throw new
|
369
|
+
throw new AppcondaException('Missing required parameter: "fileId"');
|
374
370
|
}
|
375
371
|
const apiPath = '/storage/buckets/{bucketId}/files/{fileId}/download'.replace('{bucketId}', bucketId).replace('{fileId}', fileId);
|
376
372
|
const payload = {};
|
@@ -403,10 +399,10 @@ If you're creating a new file using one of the Appconda SDKs, all the chunk
|
|
403
399
|
*/
|
404
400
|
async getFilePreview(bucketId, fileId, width, height, gravity, quality, borderWidth, borderColor, borderRadius, opacity, rotation, background, output) {
|
405
401
|
if (typeof bucketId === 'undefined') {
|
406
|
-
throw new
|
402
|
+
throw new AppcondaException('Missing required parameter: "bucketId"');
|
407
403
|
}
|
408
404
|
if (typeof fileId === 'undefined') {
|
409
|
-
throw new
|
405
|
+
throw new AppcondaException('Missing required parameter: "fileId"');
|
410
406
|
}
|
411
407
|
const apiPath = '/storage/buckets/{bucketId}/files/{fileId}/preview'.replace('{bucketId}', bucketId).replace('{fileId}', fileId);
|
412
408
|
const payload = {};
|
@@ -461,10 +457,10 @@ If you're creating a new file using one of the Appconda SDKs, all the chunk
|
|
461
457
|
*/
|
462
458
|
async getFileView(bucketId, fileId) {
|
463
459
|
if (typeof bucketId === 'undefined') {
|
464
|
-
throw new
|
460
|
+
throw new AppcondaException('Missing required parameter: "bucketId"');
|
465
461
|
}
|
466
462
|
if (typeof fileId === 'undefined') {
|
467
|
-
throw new
|
463
|
+
throw new AppcondaException('Missing required parameter: "fileId"');
|
468
464
|
}
|
469
465
|
const apiPath = '/storage/buckets/{bucketId}/files/{fileId}/view'.replace('{bucketId}', bucketId).replace('{fileId}', fileId);
|
470
466
|
const payload = {};
|
@@ -475,4 +471,3 @@ If you're creating a new file using one of the Appconda SDKs, all the chunk
|
|
475
471
|
return await this.client.call('get', uri, apiHeaders, payload, 'arrayBuffer');
|
476
472
|
}
|
477
473
|
}
|
478
|
-
exports.Storage = Storage;
|
@@ -1,8 +1,5 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
exports.Subscription = void 0;
|
4
|
-
const service_client_1 = require("../service-client");
|
5
|
-
class Subscription extends service_client_1.ServiceClient {
|
1
|
+
import { ServiceClient } from "../service-client";
|
2
|
+
export class Subscription extends ServiceClient {
|
6
3
|
getServiceName() {
|
7
4
|
return 'com.appconda.service.subscription';
|
8
5
|
}
|
@@ -30,4 +27,3 @@ class Subscription extends service_client_1.ServiceClient {
|
|
30
27
|
return await this.actionCall('GetAllTenantSubscriptionProducts', payload);
|
31
28
|
}
|
32
29
|
}
|
33
|
-
exports.Subscription = Subscription;
|
package/dist/services/teams.js
CHANGED
@@ -1,9 +1,5 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
exports.Teams = void 0;
|
4
|
-
const client_1 = require("../client");
|
5
|
-
class Teams {
|
6
|
-
client;
|
1
|
+
import { AppcondaException } from '../client';
|
2
|
+
export class Teams {
|
7
3
|
constructor(client) {
|
8
4
|
this.client = client;
|
9
5
|
}
|
@@ -45,10 +41,10 @@ class Teams {
|
|
45
41
|
*/
|
46
42
|
async create(teamId, name, roles) {
|
47
43
|
if (typeof teamId === 'undefined') {
|
48
|
-
throw new
|
44
|
+
throw new AppcondaException('Missing required parameter: "teamId"');
|
49
45
|
}
|
50
46
|
if (typeof name === 'undefined') {
|
51
|
-
throw new
|
47
|
+
throw new AppcondaException('Missing required parameter: "name"');
|
52
48
|
}
|
53
49
|
const apiPath = '/teams';
|
54
50
|
const payload = {};
|
@@ -78,7 +74,7 @@ class Teams {
|
|
78
74
|
*/
|
79
75
|
async get(teamId) {
|
80
76
|
if (typeof teamId === 'undefined') {
|
81
|
-
throw new
|
77
|
+
throw new AppcondaException('Missing required parameter: "teamId"');
|
82
78
|
}
|
83
79
|
const apiPath = '/teams/{teamId}'.replace('{teamId}', teamId);
|
84
80
|
const payload = {};
|
@@ -100,10 +96,10 @@ class Teams {
|
|
100
96
|
*/
|
101
97
|
async updateName(teamId, name) {
|
102
98
|
if (typeof teamId === 'undefined') {
|
103
|
-
throw new
|
99
|
+
throw new AppcondaException('Missing required parameter: "teamId"');
|
104
100
|
}
|
105
101
|
if (typeof name === 'undefined') {
|
106
|
-
throw new
|
102
|
+
throw new AppcondaException('Missing required parameter: "name"');
|
107
103
|
}
|
108
104
|
const apiPath = '/teams/{teamId}'.replace('{teamId}', teamId);
|
109
105
|
const payload = {};
|
@@ -127,7 +123,7 @@ class Teams {
|
|
127
123
|
*/
|
128
124
|
async delete(teamId) {
|
129
125
|
if (typeof teamId === 'undefined') {
|
130
|
-
throw new
|
126
|
+
throw new AppcondaException('Missing required parameter: "teamId"');
|
131
127
|
}
|
132
128
|
const apiPath = '/teams/{teamId}'.replace('{teamId}', teamId);
|
133
129
|
const payload = {};
|
@@ -150,7 +146,7 @@ class Teams {
|
|
150
146
|
*/
|
151
147
|
async listMemberships(teamId, queries, search) {
|
152
148
|
if (typeof teamId === 'undefined') {
|
153
|
-
throw new
|
149
|
+
throw new AppcondaException('Missing required parameter: "teamId"');
|
154
150
|
}
|
155
151
|
const apiPath = '/teams/{teamId}/memberships'.replace('{teamId}', teamId);
|
156
152
|
const payload = {};
|
@@ -190,10 +186,10 @@ Please note that to avoid a [Redirect Attack](https://github.com/OWASP/CheatShee
|
|
190
186
|
*/
|
191
187
|
async createMembership(teamId, roles, email, userId, phone, url, name) {
|
192
188
|
if (typeof teamId === 'undefined') {
|
193
|
-
throw new
|
189
|
+
throw new AppcondaException('Missing required parameter: "teamId"');
|
194
190
|
}
|
195
191
|
if (typeof roles === 'undefined') {
|
196
|
-
throw new
|
192
|
+
throw new AppcondaException('Missing required parameter: "roles"');
|
197
193
|
}
|
198
194
|
const apiPath = '/teams/{teamId}/memberships'.replace('{teamId}', teamId);
|
199
195
|
const payload = {};
|
@@ -233,10 +229,10 @@ Please note that to avoid a [Redirect Attack](https://github.com/OWASP/CheatShee
|
|
233
229
|
*/
|
234
230
|
async getMembership(teamId, membershipId) {
|
235
231
|
if (typeof teamId === 'undefined') {
|
236
|
-
throw new
|
232
|
+
throw new AppcondaException('Missing required parameter: "teamId"');
|
237
233
|
}
|
238
234
|
if (typeof membershipId === 'undefined') {
|
239
|
-
throw new
|
235
|
+
throw new AppcondaException('Missing required parameter: "membershipId"');
|
240
236
|
}
|
241
237
|
const apiPath = '/teams/{teamId}/memberships/{membershipId}'.replace('{teamId}', teamId).replace('{membershipId}', membershipId);
|
242
238
|
const payload = {};
|
@@ -260,13 +256,13 @@ Please note that to avoid a [Redirect Attack](https://github.com/OWASP/CheatShee
|
|
260
256
|
*/
|
261
257
|
async updateMembership(teamId, membershipId, roles) {
|
262
258
|
if (typeof teamId === 'undefined') {
|
263
|
-
throw new
|
259
|
+
throw new AppcondaException('Missing required parameter: "teamId"');
|
264
260
|
}
|
265
261
|
if (typeof membershipId === 'undefined') {
|
266
|
-
throw new
|
262
|
+
throw new AppcondaException('Missing required parameter: "membershipId"');
|
267
263
|
}
|
268
264
|
if (typeof roles === 'undefined') {
|
269
|
-
throw new
|
265
|
+
throw new AppcondaException('Missing required parameter: "roles"');
|
270
266
|
}
|
271
267
|
const apiPath = '/teams/{teamId}/memberships/{membershipId}'.replace('{teamId}', teamId).replace('{membershipId}', membershipId);
|
272
268
|
const payload = {};
|
@@ -291,10 +287,10 @@ Please note that to avoid a [Redirect Attack](https://github.com/OWASP/CheatShee
|
|
291
287
|
*/
|
292
288
|
async deleteMembership(teamId, membershipId) {
|
293
289
|
if (typeof teamId === 'undefined') {
|
294
|
-
throw new
|
290
|
+
throw new AppcondaException('Missing required parameter: "teamId"');
|
295
291
|
}
|
296
292
|
if (typeof membershipId === 'undefined') {
|
297
|
-
throw new
|
293
|
+
throw new AppcondaException('Missing required parameter: "membershipId"');
|
298
294
|
}
|
299
295
|
const apiPath = '/teams/{teamId}/memberships/{membershipId}'.replace('{teamId}', teamId).replace('{membershipId}', membershipId);
|
300
296
|
const payload = {};
|
@@ -321,16 +317,16 @@ If the request is successful, a session for the user is automatically created.
|
|
321
317
|
*/
|
322
318
|
async updateMembershipStatus(teamId, membershipId, userId, secret) {
|
323
319
|
if (typeof teamId === 'undefined') {
|
324
|
-
throw new
|
320
|
+
throw new AppcondaException('Missing required parameter: "teamId"');
|
325
321
|
}
|
326
322
|
if (typeof membershipId === 'undefined') {
|
327
|
-
throw new
|
323
|
+
throw new AppcondaException('Missing required parameter: "membershipId"');
|
328
324
|
}
|
329
325
|
if (typeof userId === 'undefined') {
|
330
|
-
throw new
|
326
|
+
throw new AppcondaException('Missing required parameter: "userId"');
|
331
327
|
}
|
332
328
|
if (typeof secret === 'undefined') {
|
333
|
-
throw new
|
329
|
+
throw new AppcondaException('Missing required parameter: "secret"');
|
334
330
|
}
|
335
331
|
const apiPath = '/teams/{teamId}/memberships/{membershipId}/status'.replace('{teamId}', teamId).replace('{membershipId}', membershipId);
|
336
332
|
const payload = {};
|
@@ -357,7 +353,7 @@ If the request is successful, a session for the user is automatically created.
|
|
357
353
|
*/
|
358
354
|
async getPrefs(teamId) {
|
359
355
|
if (typeof teamId === 'undefined') {
|
360
|
-
throw new
|
356
|
+
throw new AppcondaException('Missing required parameter: "teamId"');
|
361
357
|
}
|
362
358
|
const apiPath = '/teams/{teamId}/prefs'.replace('{teamId}', teamId);
|
363
359
|
const payload = {};
|
@@ -379,10 +375,10 @@ If the request is successful, a session for the user is automatically created.
|
|
379
375
|
*/
|
380
376
|
async updatePrefs(teamId, prefs) {
|
381
377
|
if (typeof teamId === 'undefined') {
|
382
|
-
throw new
|
378
|
+
throw new AppcondaException('Missing required parameter: "teamId"');
|
383
379
|
}
|
384
380
|
if (typeof prefs === 'undefined') {
|
385
|
-
throw new
|
381
|
+
throw new AppcondaException('Missing required parameter: "prefs"');
|
386
382
|
}
|
387
383
|
const apiPath = '/teams/{teamId}/prefs'.replace('{teamId}', teamId);
|
388
384
|
const payload = {};
|
@@ -396,4 +392,3 @@ If the request is successful, a session for the user is automatically created.
|
|
396
392
|
return await this.client.call('put', uri, apiHeaders, payload);
|
397
393
|
}
|
398
394
|
}
|
399
|
-
exports.Teams = Teams;
|
@@ -1,15 +1,11 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
exports.TenantSubscription = void 0;
|
4
|
-
const client_1 = require("../client");
|
5
|
-
class TenantSubscription {
|
6
|
-
client;
|
1
|
+
import { AppcondaException } from "../client";
|
2
|
+
export class TenantSubscription {
|
7
3
|
constructor(client) {
|
8
4
|
this.client = client;
|
9
5
|
}
|
10
6
|
async getOrPersistTenantSubscription(tenantId) {
|
11
7
|
if (typeof tenantId === 'undefined') {
|
12
|
-
throw new
|
8
|
+
throw new AppcondaException('Missing required parameter: "tenantId"');
|
13
9
|
}
|
14
10
|
const apiPath = `/tenant/subscriptions/${tenantId}`;
|
15
11
|
const payload = {};
|
@@ -33,10 +29,10 @@ class TenantSubscription {
|
|
33
29
|
}
|
34
30
|
async createTenantSubscription(tenantId, stripeCustomerId) {
|
35
31
|
if (typeof tenantId === 'undefined') {
|
36
|
-
throw new
|
32
|
+
throw new AppcondaException('Missing required parameter: "tenantId"');
|
37
33
|
}
|
38
34
|
if (typeof stripeCustomerId === 'undefined') {
|
39
|
-
throw new
|
35
|
+
throw new AppcondaException('Missing required parameter: "stripeCustomerId"');
|
40
36
|
}
|
41
37
|
const apiPath = '/tenant/subscriptions';
|
42
38
|
const payload = {};
|
@@ -53,4 +49,3 @@ class TenantSubscription {
|
|
53
49
|
return await this.client.call('post', uri, apiHeaders, payload);
|
54
50
|
}
|
55
51
|
}
|
56
|
-
exports.TenantSubscription = TenantSubscription;
|
package/dist/services/tenant.js
CHANGED
@@ -1,15 +1,12 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
const client_1 = require("../client");
|
5
|
-
const service_client_1 = require("../service-client");
|
6
|
-
class Tenant extends service_client_1.ServiceClient {
|
1
|
+
import { AppcondaException } from "../client";
|
2
|
+
import { ServiceClient } from "../service-client";
|
3
|
+
export class Tenant extends ServiceClient {
|
7
4
|
getServiceName() {
|
8
5
|
return 'com.appconda.service.tenant';
|
9
6
|
}
|
10
7
|
async get(tenantId) {
|
11
8
|
if (typeof tenantId === 'undefined') {
|
12
|
-
throw new
|
9
|
+
throw new AppcondaException('Missing required parameter: "tenantId"');
|
13
10
|
}
|
14
11
|
const apiPath = '/tenants/{tenantId}'.replace('{tenantId}', tenantId);
|
15
12
|
const payload = {};
|
@@ -32,13 +29,13 @@ class Tenant extends service_client_1.ServiceClient {
|
|
32
29
|
*/
|
33
30
|
async create({ $id, name, slug }) {
|
34
31
|
if (typeof $id === 'undefined') {
|
35
|
-
throw new
|
32
|
+
throw new AppcondaException('Missing required parameter: "tenantId"');
|
36
33
|
}
|
37
34
|
if (typeof name === 'undefined') {
|
38
|
-
throw new
|
35
|
+
throw new AppcondaException('Missing required parameter: "name"');
|
39
36
|
}
|
40
37
|
if (typeof slug === 'undefined') {
|
41
|
-
throw new
|
38
|
+
throw new AppcondaException('Missing required parameter: "slug"');
|
42
39
|
}
|
43
40
|
const apiPath = '/tenants';
|
44
41
|
const payload = {};
|
@@ -104,10 +101,10 @@ class Tenant extends service_client_1.ServiceClient {
|
|
104
101
|
}
|
105
102
|
async createTenantUser({ tenantId, userId }) {
|
106
103
|
if (typeof tenantId === 'undefined') {
|
107
|
-
throw new
|
104
|
+
throw new AppcondaException('Missing required parameter: "tenantId"');
|
108
105
|
}
|
109
106
|
if (typeof userId === 'undefined') {
|
110
|
-
throw new
|
107
|
+
throw new AppcondaException('Missing required parameter: "userId"');
|
111
108
|
}
|
112
109
|
const apiPath = `/tenants/${tenantId}/users`;
|
113
110
|
const payload = {};
|
@@ -125,4 +122,3 @@ class Tenant extends service_client_1.ServiceClient {
|
|
125
122
|
return await this.actionCall('AdminGetAllTenantsIdsAndNames', payload);
|
126
123
|
}
|
127
124
|
}
|
128
|
-
exports.Tenant = Tenant;
|