@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/account.js
CHANGED
@@ -1,10 +1,6 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
const client_1 = require("../client");
|
5
|
-
const service_1 = require("../service");
|
6
|
-
class Account {
|
7
|
-
client;
|
1
|
+
import { AppcondaException } from '../client';
|
2
|
+
import { Service } from '../service';
|
3
|
+
export class Account {
|
8
4
|
constructor(client) {
|
9
5
|
this.client = client;
|
10
6
|
}
|
@@ -39,13 +35,13 @@ class Account {
|
|
39
35
|
*/
|
40
36
|
async create(userId, email, password, name) {
|
41
37
|
if (typeof userId === 'undefined') {
|
42
|
-
throw new
|
38
|
+
throw new AppcondaException('Missing required parameter: "userId"');
|
43
39
|
}
|
44
40
|
if (typeof email === 'undefined') {
|
45
|
-
throw new
|
41
|
+
throw new AppcondaException('Missing required parameter: "email"');
|
46
42
|
}
|
47
43
|
if (typeof password === 'undefined') {
|
48
|
-
throw new
|
44
|
+
throw new AppcondaException('Missing required parameter: "password"');
|
49
45
|
}
|
50
46
|
const apiPath = '/account';
|
51
47
|
const payload = {};
|
@@ -98,10 +94,10 @@ This endpoint can also be used to convert an anonymous account to a normal one,
|
|
98
94
|
*/
|
99
95
|
async updateEmail(email, password) {
|
100
96
|
if (typeof email === 'undefined') {
|
101
|
-
throw new
|
97
|
+
throw new AppcondaException('Missing required parameter: "email"');
|
102
98
|
}
|
103
99
|
if (typeof password === 'undefined') {
|
104
|
-
throw new
|
100
|
+
throw new AppcondaException('Missing required parameter: "password"');
|
105
101
|
}
|
106
102
|
const apiPath = '/account/email';
|
107
103
|
const payload = {};
|
@@ -149,7 +145,7 @@ This endpoint can also be used to convert an anonymous account to a normal one,
|
|
149
145
|
*/
|
150
146
|
async deleteIdentity(identityId) {
|
151
147
|
if (typeof identityId === 'undefined') {
|
152
|
-
throw new
|
148
|
+
throw new AppcondaException('Missing required parameter: "identityId"');
|
153
149
|
}
|
154
150
|
const apiPath = '/account/identities/{identityId}'.replace('{identityId}', identityId);
|
155
151
|
const payload = {};
|
@@ -208,7 +204,7 @@ This endpoint can also be used to convert an anonymous account to a normal one,
|
|
208
204
|
*/
|
209
205
|
async updateMFA(mfa) {
|
210
206
|
if (typeof mfa === 'undefined') {
|
211
|
-
throw new
|
207
|
+
throw new AppcondaException('Missing required parameter: "mfa"');
|
212
208
|
}
|
213
209
|
const apiPath = '/account/mfa';
|
214
210
|
const payload = {};
|
@@ -232,7 +228,7 @@ This endpoint can also be used to convert an anonymous account to a normal one,
|
|
232
228
|
*/
|
233
229
|
async createMfaAuthenticator(type) {
|
234
230
|
if (typeof type === 'undefined') {
|
235
|
-
throw new
|
231
|
+
throw new AppcondaException('Missing required parameter: "type"');
|
236
232
|
}
|
237
233
|
const apiPath = '/account/mfa/authenticators/{type}'.replace('{type}', type);
|
238
234
|
const payload = {};
|
@@ -254,10 +250,10 @@ This endpoint can also be used to convert an anonymous account to a normal one,
|
|
254
250
|
*/
|
255
251
|
async updateMfaAuthenticator(type, otp) {
|
256
252
|
if (typeof type === 'undefined') {
|
257
|
-
throw new
|
253
|
+
throw new AppcondaException('Missing required parameter: "type"');
|
258
254
|
}
|
259
255
|
if (typeof otp === 'undefined') {
|
260
|
-
throw new
|
256
|
+
throw new AppcondaException('Missing required parameter: "otp"');
|
261
257
|
}
|
262
258
|
const apiPath = '/account/mfa/authenticators/{type}'.replace('{type}', type);
|
263
259
|
const payload = {};
|
@@ -281,7 +277,7 @@ This endpoint can also be used to convert an anonymous account to a normal one,
|
|
281
277
|
*/
|
282
278
|
async deleteMfaAuthenticator(type) {
|
283
279
|
if (typeof type === 'undefined') {
|
284
|
-
throw new
|
280
|
+
throw new AppcondaException('Missing required parameter: "type"');
|
285
281
|
}
|
286
282
|
const apiPath = '/account/mfa/authenticators/{type}'.replace('{type}', type);
|
287
283
|
const payload = {};
|
@@ -302,7 +298,7 @@ This endpoint can also be used to convert an anonymous account to a normal one,
|
|
302
298
|
*/
|
303
299
|
async createMfaChallenge(factor) {
|
304
300
|
if (typeof factor === 'undefined') {
|
305
|
-
throw new
|
301
|
+
throw new AppcondaException('Missing required parameter: "factor"');
|
306
302
|
}
|
307
303
|
const apiPath = '/account/mfa/challenge';
|
308
304
|
const payload = {};
|
@@ -327,10 +323,10 @@ This endpoint can also be used to convert an anonymous account to a normal one,
|
|
327
323
|
*/
|
328
324
|
async updateMfaChallenge(challengeId, otp) {
|
329
325
|
if (typeof challengeId === 'undefined') {
|
330
|
-
throw new
|
326
|
+
throw new AppcondaException('Missing required parameter: "challengeId"');
|
331
327
|
}
|
332
328
|
if (typeof otp === 'undefined') {
|
333
|
-
throw new
|
329
|
+
throw new AppcondaException('Missing required parameter: "otp"');
|
334
330
|
}
|
335
331
|
const apiPath = '/account/mfa/challenge';
|
336
332
|
const payload = {};
|
@@ -425,7 +421,7 @@ This endpoint can also be used to convert an anonymous account to a normal one,
|
|
425
421
|
*/
|
426
422
|
async updateName(name) {
|
427
423
|
if (typeof name === 'undefined') {
|
428
|
-
throw new
|
424
|
+
throw new AppcondaException('Missing required parameter: "name"');
|
429
425
|
}
|
430
426
|
const apiPath = '/account/name';
|
431
427
|
const payload = {};
|
@@ -450,7 +446,7 @@ This endpoint can also be used to convert an anonymous account to a normal one,
|
|
450
446
|
*/
|
451
447
|
async updatePassword(password, oldPassword) {
|
452
448
|
if (typeof password === 'undefined') {
|
453
|
-
throw new
|
449
|
+
throw new AppcondaException('Missing required parameter: "password"');
|
454
450
|
}
|
455
451
|
const apiPath = '/account/password';
|
456
452
|
const payload = {};
|
@@ -478,10 +474,10 @@ This endpoint can also be used to convert an anonymous account to a normal one,
|
|
478
474
|
*/
|
479
475
|
async updatePhone(phone, password) {
|
480
476
|
if (typeof phone === 'undefined') {
|
481
|
-
throw new
|
477
|
+
throw new AppcondaException('Missing required parameter: "phone"');
|
482
478
|
}
|
483
479
|
if (typeof password === 'undefined') {
|
484
|
-
throw new
|
480
|
+
throw new AppcondaException('Missing required parameter: "password"');
|
485
481
|
}
|
486
482
|
const apiPath = '/account/phone';
|
487
483
|
const payload = {};
|
@@ -525,7 +521,7 @@ This endpoint can also be used to convert an anonymous account to a normal one,
|
|
525
521
|
*/
|
526
522
|
async updatePrefs(prefs) {
|
527
523
|
if (typeof prefs === 'undefined') {
|
528
|
-
throw new
|
524
|
+
throw new AppcondaException('Missing required parameter: "prefs"');
|
529
525
|
}
|
530
526
|
const apiPath = '/account/prefs';
|
531
527
|
const payload = {};
|
@@ -550,10 +546,10 @@ This endpoint can also be used to convert an anonymous account to a normal one,
|
|
550
546
|
*/
|
551
547
|
async createRecovery(email, url) {
|
552
548
|
if (typeof email === 'undefined') {
|
553
|
-
throw new
|
549
|
+
throw new AppcondaException('Missing required parameter: "email"');
|
554
550
|
}
|
555
551
|
if (typeof url === 'undefined') {
|
556
|
-
throw new
|
552
|
+
throw new AppcondaException('Missing required parameter: "url"');
|
557
553
|
}
|
558
554
|
const apiPath = '/account/recovery';
|
559
555
|
const payload = {};
|
@@ -584,13 +580,13 @@ Please note that in order to avoid a [Redirect Attack](https://github.com/OWASP/
|
|
584
580
|
*/
|
585
581
|
async updateRecovery(userId, secret, password) {
|
586
582
|
if (typeof userId === 'undefined') {
|
587
|
-
throw new
|
583
|
+
throw new AppcondaException('Missing required parameter: "userId"');
|
588
584
|
}
|
589
585
|
if (typeof secret === 'undefined') {
|
590
|
-
throw new
|
586
|
+
throw new AppcondaException('Missing required parameter: "secret"');
|
591
587
|
}
|
592
588
|
if (typeof password === 'undefined') {
|
593
|
-
throw new
|
589
|
+
throw new AppcondaException('Missing required parameter: "password"');
|
594
590
|
}
|
595
591
|
const apiPath = '/account/recovery';
|
596
592
|
const payload = {};
|
@@ -674,10 +670,10 @@ A user is limited to 10 active sessions at a time by default. [Learn more about
|
|
674
670
|
*/
|
675
671
|
async createEmailPasswordSession(email, password) {
|
676
672
|
if (typeof email === 'undefined') {
|
677
|
-
throw new
|
673
|
+
throw new AppcondaException('Missing required parameter: "email"');
|
678
674
|
}
|
679
675
|
if (typeof password === 'undefined') {
|
680
|
-
throw new
|
676
|
+
throw new AppcondaException('Missing required parameter: "password"');
|
681
677
|
}
|
682
678
|
const apiPath = '/account/sessions/email';
|
683
679
|
const payload = {};
|
@@ -705,10 +701,10 @@ A user is limited to 10 active sessions at a time by default. [Learn more about
|
|
705
701
|
*/
|
706
702
|
async updateMagicURLSession(userId, secret) {
|
707
703
|
if (typeof userId === 'undefined') {
|
708
|
-
throw new
|
704
|
+
throw new AppcondaException('Missing required parameter: "userId"');
|
709
705
|
}
|
710
706
|
if (typeof secret === 'undefined') {
|
711
|
-
throw new
|
707
|
+
throw new AppcondaException('Missing required parameter: "secret"');
|
712
708
|
}
|
713
709
|
const apiPath = '/account/sessions/magic-url';
|
714
710
|
const payload = {};
|
@@ -743,7 +739,7 @@ A user is limited to 10 active sessions at a time by default. [Learn more about
|
|
743
739
|
*/
|
744
740
|
async createOAuth2Session(provider, success, failure, scopes) {
|
745
741
|
if (typeof provider === 'undefined') {
|
746
|
-
throw new
|
742
|
+
throw new AppcondaException('Missing required parameter: "provider"');
|
747
743
|
}
|
748
744
|
const apiPath = '/account/sessions/oauth2/{provider}'.replace('{provider}', provider);
|
749
745
|
const payload = {};
|
@@ -761,7 +757,7 @@ A user is limited to 10 active sessions at a time by default. [Learn more about
|
|
761
757
|
'content-type': 'application/json',
|
762
758
|
};
|
763
759
|
payload['project'] = this.client.config.project;
|
764
|
-
for (const [key, value] of Object.entries(
|
760
|
+
for (const [key, value] of Object.entries(Service.flatten(payload))) {
|
765
761
|
uri.searchParams.append(key, value);
|
766
762
|
}
|
767
763
|
if (typeof window !== 'undefined' && window?.location) {
|
@@ -784,10 +780,10 @@ A user is limited to 10 active sessions at a time by default. [Learn more about
|
|
784
780
|
*/
|
785
781
|
async updatePhoneSession(userId, secret) {
|
786
782
|
if (typeof userId === 'undefined') {
|
787
|
-
throw new
|
783
|
+
throw new AppcondaException('Missing required parameter: "userId"');
|
788
784
|
}
|
789
785
|
if (typeof secret === 'undefined') {
|
790
|
-
throw new
|
786
|
+
throw new AppcondaException('Missing required parameter: "secret"');
|
791
787
|
}
|
792
788
|
const apiPath = '/account/sessions/phone';
|
793
789
|
const payload = {};
|
@@ -815,10 +811,10 @@ A user is limited to 10 active sessions at a time by default. [Learn more about
|
|
815
811
|
*/
|
816
812
|
async createSession(userId, secret) {
|
817
813
|
if (typeof userId === 'undefined') {
|
818
|
-
throw new
|
814
|
+
throw new AppcondaException('Missing required parameter: "userId"');
|
819
815
|
}
|
820
816
|
if (typeof secret === 'undefined') {
|
821
|
-
throw new
|
817
|
+
throw new AppcondaException('Missing required parameter: "secret"');
|
822
818
|
}
|
823
819
|
const apiPath = '/account/sessions/token';
|
824
820
|
const payload = {};
|
@@ -845,7 +841,7 @@ A user is limited to 10 active sessions at a time by default. [Learn more about
|
|
845
841
|
*/
|
846
842
|
async getSession(sessionId) {
|
847
843
|
if (typeof sessionId === 'undefined') {
|
848
|
-
throw new
|
844
|
+
throw new AppcondaException('Missing required parameter: "sessionId"');
|
849
845
|
}
|
850
846
|
const apiPath = '/account/sessions/{sessionId}'.replace('{sessionId}', sessionId);
|
851
847
|
const payload = {};
|
@@ -866,7 +862,7 @@ A user is limited to 10 active sessions at a time by default. [Learn more about
|
|
866
862
|
*/
|
867
863
|
async updateSession(sessionId) {
|
868
864
|
if (typeof sessionId === 'undefined') {
|
869
|
-
throw new
|
865
|
+
throw new AppcondaException('Missing required parameter: "sessionId"');
|
870
866
|
}
|
871
867
|
const apiPath = '/account/sessions/{sessionId}'.replace('{sessionId}', sessionId);
|
872
868
|
const payload = {};
|
@@ -887,7 +883,7 @@ A user is limited to 10 active sessions at a time by default. [Learn more about
|
|
887
883
|
*/
|
888
884
|
async deleteSession(sessionId) {
|
889
885
|
if (typeof sessionId === 'undefined') {
|
890
|
-
throw new
|
886
|
+
throw new AppcondaException('Missing required parameter: "sessionId"');
|
891
887
|
}
|
892
888
|
const apiPath = '/account/sessions/{sessionId}'.replace('{sessionId}', sessionId);
|
893
889
|
const payload = {};
|
@@ -926,10 +922,10 @@ A user is limited to 10 active sessions at a time by default. [Learn more about
|
|
926
922
|
*/
|
927
923
|
async createPushTarget(targetId, identifier, providerId) {
|
928
924
|
if (typeof targetId === 'undefined') {
|
929
|
-
throw new
|
925
|
+
throw new AppcondaException('Missing required parameter: "targetId"');
|
930
926
|
}
|
931
927
|
if (typeof identifier === 'undefined') {
|
932
|
-
throw new
|
928
|
+
throw new AppcondaException('Missing required parameter: "identifier"');
|
933
929
|
}
|
934
930
|
const apiPath = '/account/targets/push';
|
935
931
|
const payload = {};
|
@@ -959,10 +955,10 @@ A user is limited to 10 active sessions at a time by default. [Learn more about
|
|
959
955
|
*/
|
960
956
|
async updatePushTarget(targetId, identifier) {
|
961
957
|
if (typeof targetId === 'undefined') {
|
962
|
-
throw new
|
958
|
+
throw new AppcondaException('Missing required parameter: "targetId"');
|
963
959
|
}
|
964
960
|
if (typeof identifier === 'undefined') {
|
965
|
-
throw new
|
961
|
+
throw new AppcondaException('Missing required parameter: "identifier"');
|
966
962
|
}
|
967
963
|
const apiPath = '/account/targets/{targetId}/push'.replace('{targetId}', targetId);
|
968
964
|
const payload = {};
|
@@ -985,7 +981,7 @@ A user is limited to 10 active sessions at a time by default. [Learn more about
|
|
985
981
|
*/
|
986
982
|
async deletePushTarget(targetId) {
|
987
983
|
if (typeof targetId === 'undefined') {
|
988
|
-
throw new
|
984
|
+
throw new AppcondaException('Missing required parameter: "targetId"');
|
989
985
|
}
|
990
986
|
const apiPath = '/account/targets/{targetId}/push'.replace('{targetId}', targetId);
|
991
987
|
const payload = {};
|
@@ -1010,10 +1006,10 @@ A user is limited to 10 active sessions at a time by default. [Learn more about
|
|
1010
1006
|
*/
|
1011
1007
|
async createEmailToken(userId, email, phrase) {
|
1012
1008
|
if (typeof userId === 'undefined') {
|
1013
|
-
throw new
|
1009
|
+
throw new AppcondaException('Missing required parameter: "userId"');
|
1014
1010
|
}
|
1015
1011
|
if (typeof email === 'undefined') {
|
1016
|
-
throw new
|
1012
|
+
throw new AppcondaException('Missing required parameter: "email"');
|
1017
1013
|
}
|
1018
1014
|
const apiPath = '/account/tokens/email';
|
1019
1015
|
const payload = {};
|
@@ -1049,10 +1045,10 @@ A user is limited to 10 active sessions at a time by default. [Learn more about
|
|
1049
1045
|
*/
|
1050
1046
|
async createMagicURLToken(userId, email, url, phrase) {
|
1051
1047
|
if (typeof userId === 'undefined') {
|
1052
|
-
throw new
|
1048
|
+
throw new AppcondaException('Missing required parameter: "userId"');
|
1053
1049
|
}
|
1054
1050
|
if (typeof email === 'undefined') {
|
1055
|
-
throw new
|
1051
|
+
throw new AppcondaException('Missing required parameter: "email"');
|
1056
1052
|
}
|
1057
1053
|
const apiPath = '/account/tokens/magic-url';
|
1058
1054
|
const payload = {};
|
@@ -1092,7 +1088,7 @@ A user is limited to 10 active sessions at a time by default. [Learn more about
|
|
1092
1088
|
*/
|
1093
1089
|
async createOAuth2Token(provider, success, failure, scopes) {
|
1094
1090
|
if (typeof provider === 'undefined') {
|
1095
|
-
throw new
|
1091
|
+
throw new AppcondaException('Missing required parameter: "provider"');
|
1096
1092
|
}
|
1097
1093
|
const apiPath = '/account/tokens/oauth2/{provider}'.replace('{provider}', provider);
|
1098
1094
|
const payload = {};
|
@@ -1110,7 +1106,7 @@ A user is limited to 10 active sessions at a time by default. [Learn more about
|
|
1110
1106
|
'content-type': 'application/json',
|
1111
1107
|
};
|
1112
1108
|
payload['project'] = this.client.config.project;
|
1113
|
-
for (const [key, value] of Object.entries(
|
1109
|
+
for (const [key, value] of Object.entries(Service.flatten(payload))) {
|
1114
1110
|
uri.searchParams.append(key, value);
|
1115
1111
|
}
|
1116
1112
|
if (typeof window !== 'undefined' && window?.location) {
|
@@ -1135,10 +1131,10 @@ A user is limited to 10 active sessions at a time by default. [Learn more about
|
|
1135
1131
|
*/
|
1136
1132
|
async createPhoneToken(userId, phone) {
|
1137
1133
|
if (typeof userId === 'undefined') {
|
1138
|
-
throw new
|
1134
|
+
throw new AppcondaException('Missing required parameter: "userId"');
|
1139
1135
|
}
|
1140
1136
|
if (typeof phone === 'undefined') {
|
1141
|
-
throw new
|
1137
|
+
throw new AppcondaException('Missing required parameter: "phone"');
|
1142
1138
|
}
|
1143
1139
|
const apiPath = '/account/tokens/phone';
|
1144
1140
|
const payload = {};
|
@@ -1168,7 +1164,7 @@ Please note that in order to avoid a [Redirect Attack](https://github.com/OWASP/
|
|
1168
1164
|
*/
|
1169
1165
|
async createVerification(url) {
|
1170
1166
|
if (typeof url === 'undefined') {
|
1171
|
-
throw new
|
1167
|
+
throw new AppcondaException('Missing required parameter: "url"');
|
1172
1168
|
}
|
1173
1169
|
const apiPath = '/account/verification';
|
1174
1170
|
const payload = {};
|
@@ -1193,10 +1189,10 @@ Please note that in order to avoid a [Redirect Attack](https://github.com/OWASP/
|
|
1193
1189
|
*/
|
1194
1190
|
async updateVerification(userId, secret) {
|
1195
1191
|
if (typeof userId === 'undefined') {
|
1196
|
-
throw new
|
1192
|
+
throw new AppcondaException('Missing required parameter: "userId"');
|
1197
1193
|
}
|
1198
1194
|
if (typeof secret === 'undefined') {
|
1199
|
-
throw new
|
1195
|
+
throw new AppcondaException('Missing required parameter: "secret"');
|
1200
1196
|
}
|
1201
1197
|
const apiPath = '/account/verification';
|
1202
1198
|
const payload = {};
|
@@ -1241,10 +1237,10 @@ Please note that in order to avoid a [Redirect Attack](https://github.com/OWASP/
|
|
1241
1237
|
*/
|
1242
1238
|
async updatePhoneVerification(userId, secret) {
|
1243
1239
|
if (typeof userId === 'undefined') {
|
1244
|
-
throw new
|
1240
|
+
throw new AppcondaException('Missing required parameter: "userId"');
|
1245
1241
|
}
|
1246
1242
|
if (typeof secret === 'undefined') {
|
1247
|
-
throw new
|
1243
|
+
throw new AppcondaException('Missing required parameter: "secret"');
|
1248
1244
|
}
|
1249
1245
|
const apiPath = '/account/verification/phone';
|
1250
1246
|
const payload = {};
|
@@ -1261,4 +1257,3 @@ Please note that in order to avoid a [Redirect Attack](https://github.com/OWASP/
|
|
1261
1257
|
return await this.client.call('put', uri, apiHeaders, payload);
|
1262
1258
|
}
|
1263
1259
|
}
|
1264
|
-
exports.Account = Account;
|
package/dist/services/applets.js
CHANGED
@@ -1,9 +1,5 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
exports.Applets = void 0;
|
4
|
-
const client_1 = require("../client");
|
5
|
-
class Applets {
|
6
|
-
client;
|
1
|
+
import { AppcondaException } from '../client';
|
2
|
+
export class Applets {
|
7
3
|
constructor(client) {
|
8
4
|
this.client = client;
|
9
5
|
}
|
@@ -18,7 +14,7 @@ class Applets {
|
|
18
14
|
}
|
19
15
|
async getManifest(appletId) {
|
20
16
|
if (typeof appletId === 'undefined') {
|
21
|
-
throw new
|
17
|
+
throw new AppcondaException('Missing required parameter: "appletId"');
|
22
18
|
}
|
23
19
|
const apiPath = '/applets/{appletId}/manifest'.replace('{appletId}', appletId);
|
24
20
|
const payload = {};
|
@@ -30,7 +26,7 @@ class Applets {
|
|
30
26
|
}
|
31
27
|
async getAppletScript(appletId) {
|
32
28
|
if (typeof appletId === 'undefined') {
|
33
|
-
throw new
|
29
|
+
throw new AppcondaException('Missing required parameter: "appletId"');
|
34
30
|
}
|
35
31
|
const apiPath = '/applets/{appletId}'.replace('{appletId}', appletId);
|
36
32
|
const payload = {};
|
@@ -41,4 +37,3 @@ class Applets {
|
|
41
37
|
return await this.client.call('get', uri, apiHeaders, payload);
|
42
38
|
}
|
43
39
|
}
|
44
|
-
exports.Applets = Applets;
|
package/dist/services/avatars.js
CHANGED
@@ -1,9 +1,5 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
exports.Avatars = void 0;
|
4
|
-
const client_1 = require("../client");
|
5
|
-
class Avatars {
|
6
|
-
client;
|
1
|
+
import { AppcondaException } from '../client';
|
2
|
+
export class Avatars {
|
7
3
|
constructor(client) {
|
8
4
|
this.client = client;
|
9
5
|
}
|
@@ -23,7 +19,7 @@ When one dimension is specified and the other is 0, the image is scaled with pre
|
|
23
19
|
*/
|
24
20
|
async getBrowser(code, width, height, quality) {
|
25
21
|
if (typeof code === 'undefined') {
|
26
|
-
throw new
|
22
|
+
throw new AppcondaException('Missing required parameter: "code"');
|
27
23
|
}
|
28
24
|
const apiPath = '/avatars/browsers/{code}'.replace('{code}', code);
|
29
25
|
const payload = {};
|
@@ -59,7 +55,7 @@ When one dimension is specified and the other is 0, the image is scaled with pre
|
|
59
55
|
*/
|
60
56
|
async getCreditCard(code, width, height, quality) {
|
61
57
|
if (typeof code === 'undefined') {
|
62
|
-
throw new
|
58
|
+
throw new AppcondaException('Missing required parameter: "code"');
|
63
59
|
}
|
64
60
|
const apiPath = '/avatars/credit-cards/{code}'.replace('{code}', code);
|
65
61
|
const payload = {};
|
@@ -91,7 +87,7 @@ This endpoint does not follow HTTP redirects.
|
|
91
87
|
*/
|
92
88
|
async getFavicon(url) {
|
93
89
|
if (typeof url === 'undefined') {
|
94
|
-
throw new
|
90
|
+
throw new AppcondaException('Missing required parameter: "url"');
|
95
91
|
}
|
96
92
|
const apiPath = '/avatars/favicon';
|
97
93
|
const payload = {};
|
@@ -121,7 +117,7 @@ When one dimension is specified and the other is 0, the image is scaled with pre
|
|
121
117
|
*/
|
122
118
|
async getFlag(code, width, height, quality) {
|
123
119
|
if (typeof code === 'undefined') {
|
124
|
-
throw new
|
120
|
+
throw new AppcondaException('Missing required parameter: "code"');
|
125
121
|
}
|
126
122
|
const apiPath = '/avatars/flags/{code}'.replace('{code}', code);
|
127
123
|
const payload = {};
|
@@ -157,7 +153,7 @@ This endpoint does not follow HTTP redirects.
|
|
157
153
|
*/
|
158
154
|
async getImage(url, width, height) {
|
159
155
|
if (typeof url === 'undefined') {
|
160
|
-
throw new
|
156
|
+
throw new AppcondaException('Missing required parameter: "url"');
|
161
157
|
}
|
162
158
|
const apiPath = '/avatars/image';
|
163
159
|
const payload = {};
|
@@ -229,7 +225,7 @@ When one dimension is specified and the other is 0, the image is scaled with pre
|
|
229
225
|
*/
|
230
226
|
async getQR(text, size, margin, download) {
|
231
227
|
if (typeof text === 'undefined') {
|
232
|
-
throw new
|
228
|
+
throw new AppcondaException('Missing required parameter: "text"');
|
233
229
|
}
|
234
230
|
const apiPath = '/avatars/qr';
|
235
231
|
const payload = {};
|
@@ -252,4 +248,3 @@ When one dimension is specified and the other is 0, the image is scaled with pre
|
|
252
248
|
return await this.client.call('get', uri, apiHeaders, payload, 'arrayBuffer');
|
253
249
|
}
|
254
250
|
}
|
255
|
-
exports.Avatars = Avatars;
|
@@ -1,15 +1,11 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
exports.Community = void 0;
|
4
|
-
const client_1 = require("../client");
|
5
|
-
class Community {
|
6
|
-
client;
|
1
|
+
import { AppcondaException } from "../client";
|
2
|
+
export class Community {
|
7
3
|
constructor(client) {
|
8
4
|
this.client = client;
|
9
5
|
}
|
10
6
|
async get(tenantId) {
|
11
7
|
if (typeof tenantId === 'undefined') {
|
12
|
-
throw new
|
8
|
+
throw new AppcondaException('Missing required parameter: "tenantId"');
|
13
9
|
}
|
14
10
|
const apiPath = '/tenants/{tenantId}'.replace('{tenantId}', tenantId);
|
15
11
|
const payload = {};
|
@@ -32,10 +28,10 @@ class Community {
|
|
32
28
|
*/
|
33
29
|
async createSpaceGroup({ $id, name, description }) {
|
34
30
|
if (typeof $id === 'undefined') {
|
35
|
-
throw new
|
31
|
+
throw new AppcondaException('Missing required parameter: "tenantId"');
|
36
32
|
}
|
37
33
|
if (typeof name === 'undefined') {
|
38
|
-
throw new
|
34
|
+
throw new AppcondaException('Missing required parameter: "name"');
|
39
35
|
}
|
40
36
|
const apiPath = '/community/space-groups';
|
41
37
|
const payload = {};
|
@@ -70,4 +66,3 @@ class Community {
|
|
70
66
|
return await this.client.call('get', uri, apiHeaders, payload);
|
71
67
|
}
|
72
68
|
}
|
73
|
-
exports.Community = Community;
|
@@ -1,8 +1,5 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
exports.Configuration = void 0;
|
4
|
-
const service_client_1 = require("../service-client");
|
5
|
-
class Configuration extends service_client_1.ServiceClient {
|
1
|
+
import { ServiceClient } from "../service-client";
|
2
|
+
export class Configuration extends ServiceClient {
|
6
3
|
getServiceName() {
|
7
4
|
return 'com.appconda.service.configuration';
|
8
5
|
}
|
@@ -11,4 +8,3 @@ class Configuration extends service_client_1.ServiceClient {
|
|
11
8
|
return await this.actionCall('GetAppConfiguration', payload);
|
12
9
|
}
|
13
10
|
}
|
14
|
-
exports.Configuration = Configuration;
|