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