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