@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/users.js
CHANGED
@@ -1,9 +1,5 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
exports.Users = void 0;
|
4
|
-
const client_1 = require("../client");
|
5
|
-
class Users {
|
6
|
-
client;
|
1
|
+
import { AppcondaException } from '../client';
|
2
|
+
export class Users {
|
7
3
|
constructor(client) {
|
8
4
|
this.client = client;
|
9
5
|
}
|
@@ -47,7 +43,7 @@ class Users {
|
|
47
43
|
*/
|
48
44
|
async create(userId, email, phone, password, name) {
|
49
45
|
if (typeof userId === 'undefined') {
|
50
|
-
throw new
|
46
|
+
throw new AppcondaException('Missing required parameter: "userId"');
|
51
47
|
}
|
52
48
|
const apiPath = '/users';
|
53
49
|
const payload = {};
|
@@ -86,13 +82,13 @@ class Users {
|
|
86
82
|
*/
|
87
83
|
async createArgon2User(userId, email, password, name) {
|
88
84
|
if (typeof userId === 'undefined') {
|
89
|
-
throw new
|
85
|
+
throw new AppcondaException('Missing required parameter: "userId"');
|
90
86
|
}
|
91
87
|
if (typeof email === 'undefined') {
|
92
|
-
throw new
|
88
|
+
throw new AppcondaException('Missing required parameter: "email"');
|
93
89
|
}
|
94
90
|
if (typeof password === 'undefined') {
|
95
|
-
throw new
|
91
|
+
throw new AppcondaException('Missing required parameter: "password"');
|
96
92
|
}
|
97
93
|
const apiPath = '/users/argon2';
|
98
94
|
const payload = {};
|
@@ -128,13 +124,13 @@ class Users {
|
|
128
124
|
*/
|
129
125
|
async createBcryptUser(userId, email, password, name) {
|
130
126
|
if (typeof userId === 'undefined') {
|
131
|
-
throw new
|
127
|
+
throw new AppcondaException('Missing required parameter: "userId"');
|
132
128
|
}
|
133
129
|
if (typeof email === 'undefined') {
|
134
|
-
throw new
|
130
|
+
throw new AppcondaException('Missing required parameter: "email"');
|
135
131
|
}
|
136
132
|
if (typeof password === 'undefined') {
|
137
|
-
throw new
|
133
|
+
throw new AppcondaException('Missing required parameter: "password"');
|
138
134
|
}
|
139
135
|
const apiPath = '/users/bcrypt';
|
140
136
|
const payload = {};
|
@@ -192,7 +188,7 @@ class Users {
|
|
192
188
|
*/
|
193
189
|
async deleteIdentity(identityId) {
|
194
190
|
if (typeof identityId === 'undefined') {
|
195
|
-
throw new
|
191
|
+
throw new AppcondaException('Missing required parameter: "identityId"');
|
196
192
|
}
|
197
193
|
const apiPath = '/users/identities/{identityId}'.replace('{identityId}', identityId);
|
198
194
|
const payload = {};
|
@@ -216,13 +212,13 @@ class Users {
|
|
216
212
|
*/
|
217
213
|
async createMD5User(userId, email, password, name) {
|
218
214
|
if (typeof userId === 'undefined') {
|
219
|
-
throw new
|
215
|
+
throw new AppcondaException('Missing required parameter: "userId"');
|
220
216
|
}
|
221
217
|
if (typeof email === 'undefined') {
|
222
|
-
throw new
|
218
|
+
throw new AppcondaException('Missing required parameter: "email"');
|
223
219
|
}
|
224
220
|
if (typeof password === 'undefined') {
|
225
|
-
throw new
|
221
|
+
throw new AppcondaException('Missing required parameter: "password"');
|
226
222
|
}
|
227
223
|
const apiPath = '/users/md5';
|
228
224
|
const payload = {};
|
@@ -258,13 +254,13 @@ class Users {
|
|
258
254
|
*/
|
259
255
|
async createPHPassUser(userId, email, password, name) {
|
260
256
|
if (typeof userId === 'undefined') {
|
261
|
-
throw new
|
257
|
+
throw new AppcondaException('Missing required parameter: "userId"');
|
262
258
|
}
|
263
259
|
if (typeof email === 'undefined') {
|
264
|
-
throw new
|
260
|
+
throw new AppcondaException('Missing required parameter: "email"');
|
265
261
|
}
|
266
262
|
if (typeof password === 'undefined') {
|
267
|
-
throw new
|
263
|
+
throw new AppcondaException('Missing required parameter: "password"');
|
268
264
|
}
|
269
265
|
const apiPath = '/users/phpass';
|
270
266
|
const payload = {};
|
@@ -305,28 +301,28 @@ class Users {
|
|
305
301
|
*/
|
306
302
|
async createScryptUser(userId, email, password, passwordSalt, passwordCpu, passwordMemory, passwordParallel, passwordLength, name) {
|
307
303
|
if (typeof userId === 'undefined') {
|
308
|
-
throw new
|
304
|
+
throw new AppcondaException('Missing required parameter: "userId"');
|
309
305
|
}
|
310
306
|
if (typeof email === 'undefined') {
|
311
|
-
throw new
|
307
|
+
throw new AppcondaException('Missing required parameter: "email"');
|
312
308
|
}
|
313
309
|
if (typeof password === 'undefined') {
|
314
|
-
throw new
|
310
|
+
throw new AppcondaException('Missing required parameter: "password"');
|
315
311
|
}
|
316
312
|
if (typeof passwordSalt === 'undefined') {
|
317
|
-
throw new
|
313
|
+
throw new AppcondaException('Missing required parameter: "passwordSalt"');
|
318
314
|
}
|
319
315
|
if (typeof passwordCpu === 'undefined') {
|
320
|
-
throw new
|
316
|
+
throw new AppcondaException('Missing required parameter: "passwordCpu"');
|
321
317
|
}
|
322
318
|
if (typeof passwordMemory === 'undefined') {
|
323
|
-
throw new
|
319
|
+
throw new AppcondaException('Missing required parameter: "passwordMemory"');
|
324
320
|
}
|
325
321
|
if (typeof passwordParallel === 'undefined') {
|
326
|
-
throw new
|
322
|
+
throw new AppcondaException('Missing required parameter: "passwordParallel"');
|
327
323
|
}
|
328
324
|
if (typeof passwordLength === 'undefined') {
|
329
|
-
throw new
|
325
|
+
throw new AppcondaException('Missing required parameter: "passwordLength"');
|
330
326
|
}
|
331
327
|
const apiPath = '/users/scrypt';
|
332
328
|
const payload = {};
|
@@ -380,22 +376,22 @@ class Users {
|
|
380
376
|
*/
|
381
377
|
async createScryptModifiedUser(userId, email, password, passwordSalt, passwordSaltSeparator, passwordSignerKey, name) {
|
382
378
|
if (typeof userId === 'undefined') {
|
383
|
-
throw new
|
379
|
+
throw new AppcondaException('Missing required parameter: "userId"');
|
384
380
|
}
|
385
381
|
if (typeof email === 'undefined') {
|
386
|
-
throw new
|
382
|
+
throw new AppcondaException('Missing required parameter: "email"');
|
387
383
|
}
|
388
384
|
if (typeof password === 'undefined') {
|
389
|
-
throw new
|
385
|
+
throw new AppcondaException('Missing required parameter: "password"');
|
390
386
|
}
|
391
387
|
if (typeof passwordSalt === 'undefined') {
|
392
|
-
throw new
|
388
|
+
throw new AppcondaException('Missing required parameter: "passwordSalt"');
|
393
389
|
}
|
394
390
|
if (typeof passwordSaltSeparator === 'undefined') {
|
395
|
-
throw new
|
391
|
+
throw new AppcondaException('Missing required parameter: "passwordSaltSeparator"');
|
396
392
|
}
|
397
393
|
if (typeof passwordSignerKey === 'undefined') {
|
398
|
-
throw new
|
394
|
+
throw new AppcondaException('Missing required parameter: "passwordSignerKey"');
|
399
395
|
}
|
400
396
|
const apiPath = '/users/scrypt-modified';
|
401
397
|
const payload = {};
|
@@ -441,13 +437,13 @@ class Users {
|
|
441
437
|
*/
|
442
438
|
async createSHAUser(userId, email, password, passwordVersion, name) {
|
443
439
|
if (typeof userId === 'undefined') {
|
444
|
-
throw new
|
440
|
+
throw new AppcondaException('Missing required parameter: "userId"');
|
445
441
|
}
|
446
442
|
if (typeof email === 'undefined') {
|
447
|
-
throw new
|
443
|
+
throw new AppcondaException('Missing required parameter: "email"');
|
448
444
|
}
|
449
445
|
if (typeof password === 'undefined') {
|
450
|
-
throw new
|
446
|
+
throw new AppcondaException('Missing required parameter: "password"');
|
451
447
|
}
|
452
448
|
const apiPath = '/users/sha';
|
453
449
|
const payload = {};
|
@@ -483,7 +479,7 @@ class Users {
|
|
483
479
|
*/
|
484
480
|
async get(userId) {
|
485
481
|
if (typeof userId === 'undefined') {
|
486
|
-
throw new
|
482
|
+
throw new AppcondaException('Missing required parameter: "userId"');
|
487
483
|
}
|
488
484
|
const apiPath = '/users/{userId}'.replace('{userId}', userId);
|
489
485
|
const payload = {};
|
@@ -504,7 +500,7 @@ class Users {
|
|
504
500
|
*/
|
505
501
|
async delete(userId) {
|
506
502
|
if (typeof userId === 'undefined') {
|
507
|
-
throw new
|
503
|
+
throw new AppcondaException('Missing required parameter: "userId"');
|
508
504
|
}
|
509
505
|
const apiPath = '/users/{userId}'.replace('{userId}', userId);
|
510
506
|
const payload = {};
|
@@ -526,10 +522,10 @@ class Users {
|
|
526
522
|
*/
|
527
523
|
async updateEmail(userId, email) {
|
528
524
|
if (typeof userId === 'undefined') {
|
529
|
-
throw new
|
525
|
+
throw new AppcondaException('Missing required parameter: "userId"');
|
530
526
|
}
|
531
527
|
if (typeof email === 'undefined') {
|
532
|
-
throw new
|
528
|
+
throw new AppcondaException('Missing required parameter: "email"');
|
533
529
|
}
|
534
530
|
const apiPath = '/users/{userId}/email'.replace('{userId}', userId);
|
535
531
|
const payload = {};
|
@@ -555,7 +551,7 @@ class Users {
|
|
555
551
|
*/
|
556
552
|
async createJWT(userId, sessionId, duration) {
|
557
553
|
if (typeof userId === 'undefined') {
|
558
|
-
throw new
|
554
|
+
throw new AppcondaException('Missing required parameter: "userId"');
|
559
555
|
}
|
560
556
|
const apiPath = '/users/{userId}/jwts'.replace('{userId}', userId);
|
561
557
|
const payload = {};
|
@@ -585,10 +581,10 @@ Labels can be used to grant access to resources. While teams are a way for user&
|
|
585
581
|
*/
|
586
582
|
async updateLabels(userId, labels) {
|
587
583
|
if (typeof userId === 'undefined') {
|
588
|
-
throw new
|
584
|
+
throw new AppcondaException('Missing required parameter: "userId"');
|
589
585
|
}
|
590
586
|
if (typeof labels === 'undefined') {
|
591
|
-
throw new
|
587
|
+
throw new AppcondaException('Missing required parameter: "labels"');
|
592
588
|
}
|
593
589
|
const apiPath = '/users/{userId}/labels'.replace('{userId}', userId);
|
594
590
|
const payload = {};
|
@@ -613,7 +609,7 @@ Labels can be used to grant access to resources. While teams are a way for user&
|
|
613
609
|
*/
|
614
610
|
async listLogs(userId, queries) {
|
615
611
|
if (typeof userId === 'undefined') {
|
616
|
-
throw new
|
612
|
+
throw new AppcondaException('Missing required parameter: "userId"');
|
617
613
|
}
|
618
614
|
const apiPath = '/users/{userId}/logs'.replace('{userId}', userId);
|
619
615
|
const payload = {};
|
@@ -637,7 +633,7 @@ Labels can be used to grant access to resources. While teams are a way for user&
|
|
637
633
|
*/
|
638
634
|
async listMemberships(userId) {
|
639
635
|
if (typeof userId === 'undefined') {
|
640
|
-
throw new
|
636
|
+
throw new AppcondaException('Missing required parameter: "userId"');
|
641
637
|
}
|
642
638
|
const apiPath = '/users/{userId}/memberships'.replace('{userId}', userId);
|
643
639
|
const payload = {};
|
@@ -659,10 +655,10 @@ Labels can be used to grant access to resources. While teams are a way for user&
|
|
659
655
|
*/
|
660
656
|
async updateMfa(userId, mfa) {
|
661
657
|
if (typeof userId === 'undefined') {
|
662
|
-
throw new
|
658
|
+
throw new AppcondaException('Missing required parameter: "userId"');
|
663
659
|
}
|
664
660
|
if (typeof mfa === 'undefined') {
|
665
|
-
throw new
|
661
|
+
throw new AppcondaException('Missing required parameter: "mfa"');
|
666
662
|
}
|
667
663
|
const apiPath = '/users/{userId}/mfa'.replace('{userId}', userId);
|
668
664
|
const payload = {};
|
@@ -687,10 +683,10 @@ Labels can be used to grant access to resources. While teams are a way for user&
|
|
687
683
|
*/
|
688
684
|
async deleteMfaAuthenticator(userId, type) {
|
689
685
|
if (typeof userId === 'undefined') {
|
690
|
-
throw new
|
686
|
+
throw new AppcondaException('Missing required parameter: "userId"');
|
691
687
|
}
|
692
688
|
if (typeof type === 'undefined') {
|
693
|
-
throw new
|
689
|
+
throw new AppcondaException('Missing required parameter: "type"');
|
694
690
|
}
|
695
691
|
const apiPath = '/users/{userId}/mfa/authenticators/{type}'.replace('{userId}', userId).replace('{type}', type);
|
696
692
|
const payload = {};
|
@@ -711,7 +707,7 @@ Labels can be used to grant access to resources. While teams are a way for user&
|
|
711
707
|
*/
|
712
708
|
async listMfaFactors(userId) {
|
713
709
|
if (typeof userId === 'undefined') {
|
714
|
-
throw new
|
710
|
+
throw new AppcondaException('Missing required parameter: "userId"');
|
715
711
|
}
|
716
712
|
const apiPath = '/users/{userId}/mfa/factors'.replace('{userId}', userId);
|
717
713
|
const payload = {};
|
@@ -732,7 +728,7 @@ Labels can be used to grant access to resources. While teams are a way for user&
|
|
732
728
|
*/
|
733
729
|
async getMfaRecoveryCodes(userId) {
|
734
730
|
if (typeof userId === 'undefined') {
|
735
|
-
throw new
|
731
|
+
throw new AppcondaException('Missing required parameter: "userId"');
|
736
732
|
}
|
737
733
|
const apiPath = '/users/{userId}/mfa/recovery-codes'.replace('{userId}', userId);
|
738
734
|
const payload = {};
|
@@ -753,7 +749,7 @@ Labels can be used to grant access to resources. While teams are a way for user&
|
|
753
749
|
*/
|
754
750
|
async updateMfaRecoveryCodes(userId) {
|
755
751
|
if (typeof userId === 'undefined') {
|
756
|
-
throw new
|
752
|
+
throw new AppcondaException('Missing required parameter: "userId"');
|
757
753
|
}
|
758
754
|
const apiPath = '/users/{userId}/mfa/recovery-codes'.replace('{userId}', userId);
|
759
755
|
const payload = {};
|
@@ -774,7 +770,7 @@ Labels can be used to grant access to resources. While teams are a way for user&
|
|
774
770
|
*/
|
775
771
|
async createMfaRecoveryCodes(userId) {
|
776
772
|
if (typeof userId === 'undefined') {
|
777
|
-
throw new
|
773
|
+
throw new AppcondaException('Missing required parameter: "userId"');
|
778
774
|
}
|
779
775
|
const apiPath = '/users/{userId}/mfa/recovery-codes'.replace('{userId}', userId);
|
780
776
|
const payload = {};
|
@@ -796,10 +792,10 @@ Labels can be used to grant access to resources. While teams are a way for user&
|
|
796
792
|
*/
|
797
793
|
async updateName(userId, name) {
|
798
794
|
if (typeof userId === 'undefined') {
|
799
|
-
throw new
|
795
|
+
throw new AppcondaException('Missing required parameter: "userId"');
|
800
796
|
}
|
801
797
|
if (typeof name === 'undefined') {
|
802
|
-
throw new
|
798
|
+
throw new AppcondaException('Missing required parameter: "name"');
|
803
799
|
}
|
804
800
|
const apiPath = '/users/{userId}/name'.replace('{userId}', userId);
|
805
801
|
const payload = {};
|
@@ -824,10 +820,10 @@ Labels can be used to grant access to resources. While teams are a way for user&
|
|
824
820
|
*/
|
825
821
|
async updatePassword(userId, password) {
|
826
822
|
if (typeof userId === 'undefined') {
|
827
|
-
throw new
|
823
|
+
throw new AppcondaException('Missing required parameter: "userId"');
|
828
824
|
}
|
829
825
|
if (typeof password === 'undefined') {
|
830
|
-
throw new
|
826
|
+
throw new AppcondaException('Missing required parameter: "password"');
|
831
827
|
}
|
832
828
|
const apiPath = '/users/{userId}/password'.replace('{userId}', userId);
|
833
829
|
const payload = {};
|
@@ -852,10 +848,10 @@ Labels can be used to grant access to resources. While teams are a way for user&
|
|
852
848
|
*/
|
853
849
|
async updatePhone(userId, number) {
|
854
850
|
if (typeof userId === 'undefined') {
|
855
|
-
throw new
|
851
|
+
throw new AppcondaException('Missing required parameter: "userId"');
|
856
852
|
}
|
857
853
|
if (typeof number === 'undefined') {
|
858
|
-
throw new
|
854
|
+
throw new AppcondaException('Missing required parameter: "number"');
|
859
855
|
}
|
860
856
|
const apiPath = '/users/{userId}/phone'.replace('{userId}', userId);
|
861
857
|
const payload = {};
|
@@ -879,7 +875,7 @@ Labels can be used to grant access to resources. While teams are a way for user&
|
|
879
875
|
*/
|
880
876
|
async getPrefs(userId) {
|
881
877
|
if (typeof userId === 'undefined') {
|
882
|
-
throw new
|
878
|
+
throw new AppcondaException('Missing required parameter: "userId"');
|
883
879
|
}
|
884
880
|
const apiPath = '/users/{userId}/prefs'.replace('{userId}', userId);
|
885
881
|
const payload = {};
|
@@ -901,10 +897,10 @@ Labels can be used to grant access to resources. While teams are a way for user&
|
|
901
897
|
*/
|
902
898
|
async updatePrefs(userId, prefs) {
|
903
899
|
if (typeof userId === 'undefined') {
|
904
|
-
throw new
|
900
|
+
throw new AppcondaException('Missing required parameter: "userId"');
|
905
901
|
}
|
906
902
|
if (typeof prefs === 'undefined') {
|
907
|
-
throw new
|
903
|
+
throw new AppcondaException('Missing required parameter: "prefs"');
|
908
904
|
}
|
909
905
|
const apiPath = '/users/{userId}/prefs'.replace('{userId}', userId);
|
910
906
|
const payload = {};
|
@@ -928,7 +924,7 @@ Labels can be used to grant access to resources. While teams are a way for user&
|
|
928
924
|
*/
|
929
925
|
async listSessions(userId) {
|
930
926
|
if (typeof userId === 'undefined') {
|
931
|
-
throw new
|
927
|
+
throw new AppcondaException('Missing required parameter: "userId"');
|
932
928
|
}
|
933
929
|
const apiPath = '/users/{userId}/sessions'.replace('{userId}', userId);
|
934
930
|
const payload = {};
|
@@ -951,7 +947,7 @@ If you want to generate a token for a custom authentication flow, use the [POST
|
|
951
947
|
*/
|
952
948
|
async createSession(userId) {
|
953
949
|
if (typeof userId === 'undefined') {
|
954
|
-
throw new
|
950
|
+
throw new AppcondaException('Missing required parameter: "userId"');
|
955
951
|
}
|
956
952
|
const apiPath = '/users/{userId}/sessions'.replace('{userId}', userId);
|
957
953
|
const payload = {};
|
@@ -972,7 +968,7 @@ If you want to generate a token for a custom authentication flow, use the [POST
|
|
972
968
|
*/
|
973
969
|
async deleteSessions(userId) {
|
974
970
|
if (typeof userId === 'undefined') {
|
975
|
-
throw new
|
971
|
+
throw new AppcondaException('Missing required parameter: "userId"');
|
976
972
|
}
|
977
973
|
const apiPath = '/users/{userId}/sessions'.replace('{userId}', userId);
|
978
974
|
const payload = {};
|
@@ -994,10 +990,10 @@ If you want to generate a token for a custom authentication flow, use the [POST
|
|
994
990
|
*/
|
995
991
|
async deleteSession(userId, sessionId) {
|
996
992
|
if (typeof userId === 'undefined') {
|
997
|
-
throw new
|
993
|
+
throw new AppcondaException('Missing required parameter: "userId"');
|
998
994
|
}
|
999
995
|
if (typeof sessionId === 'undefined') {
|
1000
|
-
throw new
|
996
|
+
throw new AppcondaException('Missing required parameter: "sessionId"');
|
1001
997
|
}
|
1002
998
|
const apiPath = '/users/{userId}/sessions/{sessionId}'.replace('{userId}', userId).replace('{sessionId}', sessionId);
|
1003
999
|
const payload = {};
|
@@ -1019,10 +1015,10 @@ If you want to generate a token for a custom authentication flow, use the [POST
|
|
1019
1015
|
*/
|
1020
1016
|
async updateStatus(userId, status) {
|
1021
1017
|
if (typeof userId === 'undefined') {
|
1022
|
-
throw new
|
1018
|
+
throw new AppcondaException('Missing required parameter: "userId"');
|
1023
1019
|
}
|
1024
1020
|
if (typeof status === 'undefined') {
|
1025
|
-
throw new
|
1021
|
+
throw new AppcondaException('Missing required parameter: "status"');
|
1026
1022
|
}
|
1027
1023
|
const apiPath = '/users/{userId}/status'.replace('{userId}', userId);
|
1028
1024
|
const payload = {};
|
@@ -1047,7 +1043,7 @@ If you want to generate a token for a custom authentication flow, use the [POST
|
|
1047
1043
|
*/
|
1048
1044
|
async listTargets(userId, queries) {
|
1049
1045
|
if (typeof userId === 'undefined') {
|
1050
|
-
throw new
|
1046
|
+
throw new AppcondaException('Missing required parameter: "userId"');
|
1051
1047
|
}
|
1052
1048
|
const apiPath = '/users/{userId}/targets'.replace('{userId}', userId);
|
1053
1049
|
const payload = {};
|
@@ -1076,16 +1072,16 @@ If you want to generate a token for a custom authentication flow, use the [POST
|
|
1076
1072
|
*/
|
1077
1073
|
async createTarget(userId, targetId, providerType, identifier, providerId, name) {
|
1078
1074
|
if (typeof userId === 'undefined') {
|
1079
|
-
throw new
|
1075
|
+
throw new AppcondaException('Missing required parameter: "userId"');
|
1080
1076
|
}
|
1081
1077
|
if (typeof targetId === 'undefined') {
|
1082
|
-
throw new
|
1078
|
+
throw new AppcondaException('Missing required parameter: "targetId"');
|
1083
1079
|
}
|
1084
1080
|
if (typeof providerType === 'undefined') {
|
1085
|
-
throw new
|
1081
|
+
throw new AppcondaException('Missing required parameter: "providerType"');
|
1086
1082
|
}
|
1087
1083
|
if (typeof identifier === 'undefined') {
|
1088
|
-
throw new
|
1084
|
+
throw new AppcondaException('Missing required parameter: "identifier"');
|
1089
1085
|
}
|
1090
1086
|
const apiPath = '/users/{userId}/targets'.replace('{userId}', userId);
|
1091
1087
|
const payload = {};
|
@@ -1122,10 +1118,10 @@ If you want to generate a token for a custom authentication flow, use the [POST
|
|
1122
1118
|
*/
|
1123
1119
|
async getTarget(userId, targetId) {
|
1124
1120
|
if (typeof userId === 'undefined') {
|
1125
|
-
throw new
|
1121
|
+
throw new AppcondaException('Missing required parameter: "userId"');
|
1126
1122
|
}
|
1127
1123
|
if (typeof targetId === 'undefined') {
|
1128
|
-
throw new
|
1124
|
+
throw new AppcondaException('Missing required parameter: "targetId"');
|
1129
1125
|
}
|
1130
1126
|
const apiPath = '/users/{userId}/targets/{targetId}'.replace('{userId}', userId).replace('{targetId}', targetId);
|
1131
1127
|
const payload = {};
|
@@ -1150,10 +1146,10 @@ If you want to generate a token for a custom authentication flow, use the [POST
|
|
1150
1146
|
*/
|
1151
1147
|
async updateTarget(userId, targetId, identifier, providerId, name) {
|
1152
1148
|
if (typeof userId === 'undefined') {
|
1153
|
-
throw new
|
1149
|
+
throw new AppcondaException('Missing required parameter: "userId"');
|
1154
1150
|
}
|
1155
1151
|
if (typeof targetId === 'undefined') {
|
1156
|
-
throw new
|
1152
|
+
throw new AppcondaException('Missing required parameter: "targetId"');
|
1157
1153
|
}
|
1158
1154
|
const apiPath = '/users/{userId}/targets/{targetId}'.replace('{userId}', userId).replace('{targetId}', targetId);
|
1159
1155
|
const payload = {};
|
@@ -1184,10 +1180,10 @@ If you want to generate a token for a custom authentication flow, use the [POST
|
|
1184
1180
|
*/
|
1185
1181
|
async deleteTarget(userId, targetId) {
|
1186
1182
|
if (typeof userId === 'undefined') {
|
1187
|
-
throw new
|
1183
|
+
throw new AppcondaException('Missing required parameter: "userId"');
|
1188
1184
|
}
|
1189
1185
|
if (typeof targetId === 'undefined') {
|
1190
|
-
throw new
|
1186
|
+
throw new AppcondaException('Missing required parameter: "targetId"');
|
1191
1187
|
}
|
1192
1188
|
const apiPath = '/users/{userId}/targets/{targetId}'.replace('{userId}', userId).replace('{targetId}', targetId);
|
1193
1189
|
const payload = {};
|
@@ -1211,7 +1207,7 @@ If you want to generate a token for a custom authentication flow, use the [POST
|
|
1211
1207
|
*/
|
1212
1208
|
async createToken(userId, length, expire) {
|
1213
1209
|
if (typeof userId === 'undefined') {
|
1214
|
-
throw new
|
1210
|
+
throw new AppcondaException('Missing required parameter: "userId"');
|
1215
1211
|
}
|
1216
1212
|
const apiPath = '/users/{userId}/tokens'.replace('{userId}', userId);
|
1217
1213
|
const payload = {};
|
@@ -1239,10 +1235,10 @@ If you want to generate a token for a custom authentication flow, use the [POST
|
|
1239
1235
|
*/
|
1240
1236
|
async updateEmailVerification(userId, emailVerification) {
|
1241
1237
|
if (typeof userId === 'undefined') {
|
1242
|
-
throw new
|
1238
|
+
throw new AppcondaException('Missing required parameter: "userId"');
|
1243
1239
|
}
|
1244
1240
|
if (typeof emailVerification === 'undefined') {
|
1245
|
-
throw new
|
1241
|
+
throw new AppcondaException('Missing required parameter: "emailVerification"');
|
1246
1242
|
}
|
1247
1243
|
const apiPath = '/users/{userId}/verification'.replace('{userId}', userId);
|
1248
1244
|
const payload = {};
|
@@ -1267,10 +1263,10 @@ If you want to generate a token for a custom authentication flow, use the [POST
|
|
1267
1263
|
*/
|
1268
1264
|
async updatePhoneVerification(userId, phoneVerification) {
|
1269
1265
|
if (typeof userId === 'undefined') {
|
1270
|
-
throw new
|
1266
|
+
throw new AppcondaException('Missing required parameter: "userId"');
|
1271
1267
|
}
|
1272
1268
|
if (typeof phoneVerification === 'undefined') {
|
1273
|
-
throw new
|
1269
|
+
throw new AppcondaException('Missing required parameter: "phoneVerification"');
|
1274
1270
|
}
|
1275
1271
|
const apiPath = '/users/{userId}/verification/phone'.replace('{userId}', userId);
|
1276
1272
|
const payload = {};
|
@@ -1284,4 +1280,3 @@ If you want to generate a token for a custom authentication flow, use the [POST
|
|
1284
1280
|
return await this.client.call('patch', uri, apiHeaders, payload);
|
1285
1281
|
}
|
1286
1282
|
}
|
1287
|
-
exports.Users = Users;
|
package/package.json
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
"name": "@appconda/nextjs",
|
3
3
|
"homepage": "https://appconda.io/support",
|
4
4
|
"description": "Appconda is an open-source self-hosted backend server that abstract and simplify complex and repetitive development tasks behind a very simple REST API",
|
5
|
-
"version": "1.0.
|
5
|
+
"version": "1.0.49",
|
6
6
|
"license": "BSD-3-Clause",
|
7
7
|
"main": "dist/index.js",
|
8
8
|
"types": "dist/index.d.ts",
|
package/tsconfig.json
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"compilerOptions": {
|
3
|
-
"target": "
|
4
|
-
"
|
5
|
-
"moduleResolution": "NodeNext", // ✅ bu da tamam
|
3
|
+
"target": "ES2020", // ✅ bu satır gerekli
|
4
|
+
"moduleResolution": "node", // ✅ bu da tamam
|
6
5
|
"allowJs": true,
|
7
6
|
"allowSyntheticDefaultImports": true,
|
8
7
|
"declaration": true,
|