@appconda/nextjs 1.0.39 → 1.0.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (124) hide show
  1. package/dist/actions/actionClient.d.ts +1 -1
  2. package/dist/actions/actionClient.js +6 -3
  3. package/dist/actions/index.js +17 -1
  4. package/dist/actions/nodes.d.ts +1 -1
  5. package/dist/actions/nodes.js +7 -4
  6. package/dist/client.js +39 -33
  7. package/dist/decorators/Cache.js +7 -4
  8. package/dist/decorators/CacheKey.js +4 -1
  9. package/dist/decorators/Invalidate.js +7 -4
  10. package/dist/enums/api-service.js +5 -2
  11. package/dist/enums/api.js +5 -2
  12. package/dist/enums/auth-method.js +5 -2
  13. package/dist/enums/authentication-factor.js +5 -2
  14. package/dist/enums/authenticator-type.js +5 -2
  15. package/dist/enums/browser.js +5 -2
  16. package/dist/enums/compression.js +5 -2
  17. package/dist/enums/credit-card.js +5 -2
  18. package/dist/enums/database-usage-range.js +5 -2
  19. package/dist/enums/email-template-locale.js +5 -2
  20. package/dist/enums/email-template-type.js +5 -2
  21. package/dist/enums/entities/EntityLimitType.js +5 -2
  22. package/dist/enums/entities/PropertyAttributeName.js +5 -2
  23. package/dist/enums/entities/PropertyCondition.js +5 -2
  24. package/dist/enums/entities/PropertyType.js +5 -2
  25. package/dist/enums/entities/PropertyValueType.js +5 -2
  26. package/dist/enums/entities/RowAccess.js +4 -1
  27. package/dist/enums/entities/ViewFilterCondition.js +5 -2
  28. package/dist/enums/execution-method.js +5 -2
  29. package/dist/enums/flag.js +5 -2
  30. package/dist/enums/function-usage-range.js +5 -2
  31. package/dist/enums/image-format.js +5 -2
  32. package/dist/enums/image-gravity.js +5 -2
  33. package/dist/enums/index-type.js +5 -2
  34. package/dist/enums/messaging-provider-type.js +5 -2
  35. package/dist/enums/name.js +5 -2
  36. package/dist/enums/o-auth-provider copy.js +5 -2
  37. package/dist/enums/o-auth-provider.js +5 -2
  38. package/dist/enums/password-hash.js +5 -2
  39. package/dist/enums/platform-type.js +5 -2
  40. package/dist/enums/project-usage-range.js +5 -2
  41. package/dist/enums/region.js +5 -2
  42. package/dist/enums/relation-mutate.js +5 -2
  43. package/dist/enums/relationship-type.js +5 -2
  44. package/dist/enums/resource-type.js +5 -2
  45. package/dist/enums/runtime.js +5 -2
  46. package/dist/enums/s-m-t-p-secure.js +5 -2
  47. package/dist/enums/shared/ApplicationLayout.js +5 -2
  48. package/dist/enums/shared/Colors.js +5 -2
  49. package/dist/enums/shared/InputType.js +5 -2
  50. package/dist/enums/shared/Periodicity.js +5 -2
  51. package/dist/enums/shared/SvgIcon.js +5 -2
  52. package/dist/enums/shared/Theme.js +5 -2
  53. package/dist/enums/sms-template-locale.js +5 -2
  54. package/dist/enums/sms-template-type.js +5 -2
  55. package/dist/enums/smtp-encryption.js +5 -2
  56. package/dist/enums/storage-usage-range.js +5 -2
  57. package/dist/enums/subscriptions/PricingModel.js +7 -4
  58. package/dist/enums/subscriptions/SubscriptionBillingPeriod.js +7 -4
  59. package/dist/enums/subscriptions/SubscriptionFeatureLimitType.js +7 -4
  60. package/dist/enums/subscriptions/SubscriptionPriceType.js +7 -4
  61. package/dist/enums/tenants/LinkedAccountStatus.js +5 -2
  62. package/dist/enums/tenants/TenantUserJoined.js +5 -2
  63. package/dist/enums/tenants/TenantUserStatus.js +5 -2
  64. package/dist/enums/tenants/TenantUserType.js +5 -2
  65. package/dist/enums/user-usage-range.js +5 -2
  66. package/dist/getAppcondaClient.js +6 -3
  67. package/dist/getSDKForCurrentUser.js +40 -37
  68. package/dist/id.js +20 -16
  69. package/dist/index.d.ts +1 -1
  70. package/dist/index.js +91 -38
  71. package/dist/inputFile.js +10 -6
  72. package/dist/lib/Cache/Adapter.js +2 -1
  73. package/dist/lib/Cache/Adapters/Filesystem.js +6 -2
  74. package/dist/lib/Cache/Adapters/Memory.js +7 -4
  75. package/dist/lib/Cache/Adapters/None.js +5 -1
  76. package/dist/lib/Cache/Adapters/Sharding.js +19 -14
  77. package/dist/lib/Cache/Cache.js +7 -2
  78. package/dist/lib/Cache/index.js +20 -4
  79. package/dist/lib/Cache/test.d.ts +1 -0
  80. package/dist/lib/Cache/test.js +2 -0
  81. package/dist/lib/Registry/Registry.js +23 -21
  82. package/dist/lib/Registry/index.js +17 -1
  83. package/dist/lib/Services.js +12 -8
  84. package/dist/models.js +2 -1
  85. package/dist/modules/index.js +17 -1
  86. package/dist/modules/waitlist/action.d.ts +2 -2
  87. package/dist/modules/waitlist/action.js +11 -8
  88. package/dist/modules/waitlist/index.js +19 -3
  89. package/dist/modules/waitlist/schema.js +6 -3
  90. package/dist/modules/waitlist/service.js +6 -2
  91. package/dist/permission.js +53 -49
  92. package/dist/query.js +175 -168
  93. package/dist/role.js +5 -1
  94. package/dist/schemas/nodes.d.ts +1 -0
  95. package/dist/schemas/nodes.js +2 -0
  96. package/dist/service-client.js +6 -1
  97. package/dist/service.js +10 -5
  98. package/dist/services/account.js +63 -58
  99. package/dist/services/applets.js +9 -4
  100. package/dist/services/avatars.js +13 -8
  101. package/dist/services/community.js +10 -5
  102. package/dist/services/configuration.js +6 -2
  103. package/dist/services/databases.js +155 -150
  104. package/dist/services/functions.js +47 -42
  105. package/dist/services/graphql.js +9 -4
  106. package/dist/services/health.js +8 -3
  107. package/dist/services/locale.js +6 -1
  108. package/dist/services/messaging.js +71 -66
  109. package/dist/services/node.js +8 -4
  110. package/dist/services/permissions.js +12 -7
  111. package/dist/services/pricing.js +6 -2
  112. package/dist/services/projects.js +118 -113
  113. package/dist/services/roles.js +11 -6
  114. package/dist/services/schema.js +10 -5
  115. package/dist/services/storage.js +29 -24
  116. package/dist/services/subscription.js +6 -2
  117. package/dist/services/teams.js +30 -25
  118. package/dist/services/tenant-subscription.js +10 -5
  119. package/dist/services/tenant.js +13 -9
  120. package/dist/services/users.js +87 -82
  121. package/package.json +1 -1
  122. package/src/index.ts +1 -1
  123. package/src/modules/waitlist/action.ts +2 -1
  124. package/tsconfig.json +29 -26
@@ -1,5 +1,9 @@
1
- import { AppcondaException } from '../client';
2
- export class Users {
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Users = void 0;
4
+ const client_1 = require("../client");
5
+ class Users {
6
+ client;
3
7
  constructor(client) {
4
8
  this.client = client;
5
9
  }
@@ -43,7 +47,7 @@ export class Users {
43
47
  */
44
48
  async create(userId, email, phone, password, name) {
45
49
  if (typeof userId === 'undefined') {
46
- throw new AppcondaException('Missing required parameter: "userId"');
50
+ throw new client_1.AppcondaException('Missing required parameter: "userId"');
47
51
  }
48
52
  const apiPath = '/users';
49
53
  const payload = {};
@@ -82,13 +86,13 @@ export class Users {
82
86
  */
83
87
  async createArgon2User(userId, email, password, name) {
84
88
  if (typeof userId === 'undefined') {
85
- throw new AppcondaException('Missing required parameter: "userId"');
89
+ throw new client_1.AppcondaException('Missing required parameter: "userId"');
86
90
  }
87
91
  if (typeof email === 'undefined') {
88
- throw new AppcondaException('Missing required parameter: "email"');
92
+ throw new client_1.AppcondaException('Missing required parameter: "email"');
89
93
  }
90
94
  if (typeof password === 'undefined') {
91
- throw new AppcondaException('Missing required parameter: "password"');
95
+ throw new client_1.AppcondaException('Missing required parameter: "password"');
92
96
  }
93
97
  const apiPath = '/users/argon2';
94
98
  const payload = {};
@@ -124,13 +128,13 @@ export class Users {
124
128
  */
125
129
  async createBcryptUser(userId, email, password, name) {
126
130
  if (typeof userId === 'undefined') {
127
- throw new AppcondaException('Missing required parameter: "userId"');
131
+ throw new client_1.AppcondaException('Missing required parameter: "userId"');
128
132
  }
129
133
  if (typeof email === 'undefined') {
130
- throw new AppcondaException('Missing required parameter: "email"');
134
+ throw new client_1.AppcondaException('Missing required parameter: "email"');
131
135
  }
132
136
  if (typeof password === 'undefined') {
133
- throw new AppcondaException('Missing required parameter: "password"');
137
+ throw new client_1.AppcondaException('Missing required parameter: "password"');
134
138
  }
135
139
  const apiPath = '/users/bcrypt';
136
140
  const payload = {};
@@ -188,7 +192,7 @@ export class Users {
188
192
  */
189
193
  async deleteIdentity(identityId) {
190
194
  if (typeof identityId === 'undefined') {
191
- throw new AppcondaException('Missing required parameter: "identityId"');
195
+ throw new client_1.AppcondaException('Missing required parameter: "identityId"');
192
196
  }
193
197
  const apiPath = '/users/identities/{identityId}'.replace('{identityId}', identityId);
194
198
  const payload = {};
@@ -212,13 +216,13 @@ export class Users {
212
216
  */
213
217
  async createMD5User(userId, email, password, name) {
214
218
  if (typeof userId === 'undefined') {
215
- throw new AppcondaException('Missing required parameter: "userId"');
219
+ throw new client_1.AppcondaException('Missing required parameter: "userId"');
216
220
  }
217
221
  if (typeof email === 'undefined') {
218
- throw new AppcondaException('Missing required parameter: "email"');
222
+ throw new client_1.AppcondaException('Missing required parameter: "email"');
219
223
  }
220
224
  if (typeof password === 'undefined') {
221
- throw new AppcondaException('Missing required parameter: "password"');
225
+ throw new client_1.AppcondaException('Missing required parameter: "password"');
222
226
  }
223
227
  const apiPath = '/users/md5';
224
228
  const payload = {};
@@ -254,13 +258,13 @@ export class Users {
254
258
  */
255
259
  async createPHPassUser(userId, email, password, name) {
256
260
  if (typeof userId === 'undefined') {
257
- throw new AppcondaException('Missing required parameter: "userId"');
261
+ throw new client_1.AppcondaException('Missing required parameter: "userId"');
258
262
  }
259
263
  if (typeof email === 'undefined') {
260
- throw new AppcondaException('Missing required parameter: "email"');
264
+ throw new client_1.AppcondaException('Missing required parameter: "email"');
261
265
  }
262
266
  if (typeof password === 'undefined') {
263
- throw new AppcondaException('Missing required parameter: "password"');
267
+ throw new client_1.AppcondaException('Missing required parameter: "password"');
264
268
  }
265
269
  const apiPath = '/users/phpass';
266
270
  const payload = {};
@@ -301,28 +305,28 @@ export class Users {
301
305
  */
302
306
  async createScryptUser(userId, email, password, passwordSalt, passwordCpu, passwordMemory, passwordParallel, passwordLength, name) {
303
307
  if (typeof userId === 'undefined') {
304
- throw new AppcondaException('Missing required parameter: "userId"');
308
+ throw new client_1.AppcondaException('Missing required parameter: "userId"');
305
309
  }
306
310
  if (typeof email === 'undefined') {
307
- throw new AppcondaException('Missing required parameter: "email"');
311
+ throw new client_1.AppcondaException('Missing required parameter: "email"');
308
312
  }
309
313
  if (typeof password === 'undefined') {
310
- throw new AppcondaException('Missing required parameter: "password"');
314
+ throw new client_1.AppcondaException('Missing required parameter: "password"');
311
315
  }
312
316
  if (typeof passwordSalt === 'undefined') {
313
- throw new AppcondaException('Missing required parameter: "passwordSalt"');
317
+ throw new client_1.AppcondaException('Missing required parameter: "passwordSalt"');
314
318
  }
315
319
  if (typeof passwordCpu === 'undefined') {
316
- throw new AppcondaException('Missing required parameter: "passwordCpu"');
320
+ throw new client_1.AppcondaException('Missing required parameter: "passwordCpu"');
317
321
  }
318
322
  if (typeof passwordMemory === 'undefined') {
319
- throw new AppcondaException('Missing required parameter: "passwordMemory"');
323
+ throw new client_1.AppcondaException('Missing required parameter: "passwordMemory"');
320
324
  }
321
325
  if (typeof passwordParallel === 'undefined') {
322
- throw new AppcondaException('Missing required parameter: "passwordParallel"');
326
+ throw new client_1.AppcondaException('Missing required parameter: "passwordParallel"');
323
327
  }
324
328
  if (typeof passwordLength === 'undefined') {
325
- throw new AppcondaException('Missing required parameter: "passwordLength"');
329
+ throw new client_1.AppcondaException('Missing required parameter: "passwordLength"');
326
330
  }
327
331
  const apiPath = '/users/scrypt';
328
332
  const payload = {};
@@ -376,22 +380,22 @@ export class Users {
376
380
  */
377
381
  async createScryptModifiedUser(userId, email, password, passwordSalt, passwordSaltSeparator, passwordSignerKey, name) {
378
382
  if (typeof userId === 'undefined') {
379
- throw new AppcondaException('Missing required parameter: "userId"');
383
+ throw new client_1.AppcondaException('Missing required parameter: "userId"');
380
384
  }
381
385
  if (typeof email === 'undefined') {
382
- throw new AppcondaException('Missing required parameter: "email"');
386
+ throw new client_1.AppcondaException('Missing required parameter: "email"');
383
387
  }
384
388
  if (typeof password === 'undefined') {
385
- throw new AppcondaException('Missing required parameter: "password"');
389
+ throw new client_1.AppcondaException('Missing required parameter: "password"');
386
390
  }
387
391
  if (typeof passwordSalt === 'undefined') {
388
- throw new AppcondaException('Missing required parameter: "passwordSalt"');
392
+ throw new client_1.AppcondaException('Missing required parameter: "passwordSalt"');
389
393
  }
390
394
  if (typeof passwordSaltSeparator === 'undefined') {
391
- throw new AppcondaException('Missing required parameter: "passwordSaltSeparator"');
395
+ throw new client_1.AppcondaException('Missing required parameter: "passwordSaltSeparator"');
392
396
  }
393
397
  if (typeof passwordSignerKey === 'undefined') {
394
- throw new AppcondaException('Missing required parameter: "passwordSignerKey"');
398
+ throw new client_1.AppcondaException('Missing required parameter: "passwordSignerKey"');
395
399
  }
396
400
  const apiPath = '/users/scrypt-modified';
397
401
  const payload = {};
@@ -437,13 +441,13 @@ export class Users {
437
441
  */
438
442
  async createSHAUser(userId, email, password, passwordVersion, name) {
439
443
  if (typeof userId === 'undefined') {
440
- throw new AppcondaException('Missing required parameter: "userId"');
444
+ throw new client_1.AppcondaException('Missing required parameter: "userId"');
441
445
  }
442
446
  if (typeof email === 'undefined') {
443
- throw new AppcondaException('Missing required parameter: "email"');
447
+ throw new client_1.AppcondaException('Missing required parameter: "email"');
444
448
  }
445
449
  if (typeof password === 'undefined') {
446
- throw new AppcondaException('Missing required parameter: "password"');
450
+ throw new client_1.AppcondaException('Missing required parameter: "password"');
447
451
  }
448
452
  const apiPath = '/users/sha';
449
453
  const payload = {};
@@ -479,7 +483,7 @@ export class Users {
479
483
  */
480
484
  async get(userId) {
481
485
  if (typeof userId === 'undefined') {
482
- throw new AppcondaException('Missing required parameter: "userId"');
486
+ throw new client_1.AppcondaException('Missing required parameter: "userId"');
483
487
  }
484
488
  const apiPath = '/users/{userId}'.replace('{userId}', userId);
485
489
  const payload = {};
@@ -500,7 +504,7 @@ export class Users {
500
504
  */
501
505
  async delete(userId) {
502
506
  if (typeof userId === 'undefined') {
503
- throw new AppcondaException('Missing required parameter: "userId"');
507
+ throw new client_1.AppcondaException('Missing required parameter: "userId"');
504
508
  }
505
509
  const apiPath = '/users/{userId}'.replace('{userId}', userId);
506
510
  const payload = {};
@@ -522,10 +526,10 @@ export class Users {
522
526
  */
523
527
  async updateEmail(userId, email) {
524
528
  if (typeof userId === 'undefined') {
525
- throw new AppcondaException('Missing required parameter: "userId"');
529
+ throw new client_1.AppcondaException('Missing required parameter: "userId"');
526
530
  }
527
531
  if (typeof email === 'undefined') {
528
- throw new AppcondaException('Missing required parameter: "email"');
532
+ throw new client_1.AppcondaException('Missing required parameter: "email"');
529
533
  }
530
534
  const apiPath = '/users/{userId}/email'.replace('{userId}', userId);
531
535
  const payload = {};
@@ -551,7 +555,7 @@ export class Users {
551
555
  */
552
556
  async createJWT(userId, sessionId, duration) {
553
557
  if (typeof userId === 'undefined') {
554
- throw new AppcondaException('Missing required parameter: "userId"');
558
+ throw new client_1.AppcondaException('Missing required parameter: "userId"');
555
559
  }
556
560
  const apiPath = '/users/{userId}/jwts'.replace('{userId}', userId);
557
561
  const payload = {};
@@ -581,10 +585,10 @@ Labels can be used to grant access to resources. While teams are a way for user&
581
585
  */
582
586
  async updateLabels(userId, labels) {
583
587
  if (typeof userId === 'undefined') {
584
- throw new AppcondaException('Missing required parameter: "userId"');
588
+ throw new client_1.AppcondaException('Missing required parameter: "userId"');
585
589
  }
586
590
  if (typeof labels === 'undefined') {
587
- throw new AppcondaException('Missing required parameter: "labels"');
591
+ throw new client_1.AppcondaException('Missing required parameter: "labels"');
588
592
  }
589
593
  const apiPath = '/users/{userId}/labels'.replace('{userId}', userId);
590
594
  const payload = {};
@@ -609,7 +613,7 @@ Labels can be used to grant access to resources. While teams are a way for user&
609
613
  */
610
614
  async listLogs(userId, queries) {
611
615
  if (typeof userId === 'undefined') {
612
- throw new AppcondaException('Missing required parameter: "userId"');
616
+ throw new client_1.AppcondaException('Missing required parameter: "userId"');
613
617
  }
614
618
  const apiPath = '/users/{userId}/logs'.replace('{userId}', userId);
615
619
  const payload = {};
@@ -633,7 +637,7 @@ Labels can be used to grant access to resources. While teams are a way for user&
633
637
  */
634
638
  async listMemberships(userId) {
635
639
  if (typeof userId === 'undefined') {
636
- throw new AppcondaException('Missing required parameter: "userId"');
640
+ throw new client_1.AppcondaException('Missing required parameter: "userId"');
637
641
  }
638
642
  const apiPath = '/users/{userId}/memberships'.replace('{userId}', userId);
639
643
  const payload = {};
@@ -655,10 +659,10 @@ Labels can be used to grant access to resources. While teams are a way for user&
655
659
  */
656
660
  async updateMfa(userId, mfa) {
657
661
  if (typeof userId === 'undefined') {
658
- throw new AppcondaException('Missing required parameter: "userId"');
662
+ throw new client_1.AppcondaException('Missing required parameter: "userId"');
659
663
  }
660
664
  if (typeof mfa === 'undefined') {
661
- throw new AppcondaException('Missing required parameter: "mfa"');
665
+ throw new client_1.AppcondaException('Missing required parameter: "mfa"');
662
666
  }
663
667
  const apiPath = '/users/{userId}/mfa'.replace('{userId}', userId);
664
668
  const payload = {};
@@ -683,10 +687,10 @@ Labels can be used to grant access to resources. While teams are a way for user&
683
687
  */
684
688
  async deleteMfaAuthenticator(userId, type) {
685
689
  if (typeof userId === 'undefined') {
686
- throw new AppcondaException('Missing required parameter: "userId"');
690
+ throw new client_1.AppcondaException('Missing required parameter: "userId"');
687
691
  }
688
692
  if (typeof type === 'undefined') {
689
- throw new AppcondaException('Missing required parameter: "type"');
693
+ throw new client_1.AppcondaException('Missing required parameter: "type"');
690
694
  }
691
695
  const apiPath = '/users/{userId}/mfa/authenticators/{type}'.replace('{userId}', userId).replace('{type}', type);
692
696
  const payload = {};
@@ -707,7 +711,7 @@ Labels can be used to grant access to resources. While teams are a way for user&
707
711
  */
708
712
  async listMfaFactors(userId) {
709
713
  if (typeof userId === 'undefined') {
710
- throw new AppcondaException('Missing required parameter: "userId"');
714
+ throw new client_1.AppcondaException('Missing required parameter: "userId"');
711
715
  }
712
716
  const apiPath = '/users/{userId}/mfa/factors'.replace('{userId}', userId);
713
717
  const payload = {};
@@ -728,7 +732,7 @@ Labels can be used to grant access to resources. While teams are a way for user&
728
732
  */
729
733
  async getMfaRecoveryCodes(userId) {
730
734
  if (typeof userId === 'undefined') {
731
- throw new AppcondaException('Missing required parameter: "userId"');
735
+ throw new client_1.AppcondaException('Missing required parameter: "userId"');
732
736
  }
733
737
  const apiPath = '/users/{userId}/mfa/recovery-codes'.replace('{userId}', userId);
734
738
  const payload = {};
@@ -749,7 +753,7 @@ Labels can be used to grant access to resources. While teams are a way for user&
749
753
  */
750
754
  async updateMfaRecoveryCodes(userId) {
751
755
  if (typeof userId === 'undefined') {
752
- throw new AppcondaException('Missing required parameter: "userId"');
756
+ throw new client_1.AppcondaException('Missing required parameter: "userId"');
753
757
  }
754
758
  const apiPath = '/users/{userId}/mfa/recovery-codes'.replace('{userId}', userId);
755
759
  const payload = {};
@@ -770,7 +774,7 @@ Labels can be used to grant access to resources. While teams are a way for user&
770
774
  */
771
775
  async createMfaRecoveryCodes(userId) {
772
776
  if (typeof userId === 'undefined') {
773
- throw new AppcondaException('Missing required parameter: "userId"');
777
+ throw new client_1.AppcondaException('Missing required parameter: "userId"');
774
778
  }
775
779
  const apiPath = '/users/{userId}/mfa/recovery-codes'.replace('{userId}', userId);
776
780
  const payload = {};
@@ -792,10 +796,10 @@ Labels can be used to grant access to resources. While teams are a way for user&
792
796
  */
793
797
  async updateName(userId, name) {
794
798
  if (typeof userId === 'undefined') {
795
- throw new AppcondaException('Missing required parameter: "userId"');
799
+ throw new client_1.AppcondaException('Missing required parameter: "userId"');
796
800
  }
797
801
  if (typeof name === 'undefined') {
798
- throw new AppcondaException('Missing required parameter: "name"');
802
+ throw new client_1.AppcondaException('Missing required parameter: "name"');
799
803
  }
800
804
  const apiPath = '/users/{userId}/name'.replace('{userId}', userId);
801
805
  const payload = {};
@@ -820,10 +824,10 @@ Labels can be used to grant access to resources. While teams are a way for user&
820
824
  */
821
825
  async updatePassword(userId, password) {
822
826
  if (typeof userId === 'undefined') {
823
- throw new AppcondaException('Missing required parameter: "userId"');
827
+ throw new client_1.AppcondaException('Missing required parameter: "userId"');
824
828
  }
825
829
  if (typeof password === 'undefined') {
826
- throw new AppcondaException('Missing required parameter: "password"');
830
+ throw new client_1.AppcondaException('Missing required parameter: "password"');
827
831
  }
828
832
  const apiPath = '/users/{userId}/password'.replace('{userId}', userId);
829
833
  const payload = {};
@@ -848,10 +852,10 @@ Labels can be used to grant access to resources. While teams are a way for user&
848
852
  */
849
853
  async updatePhone(userId, number) {
850
854
  if (typeof userId === 'undefined') {
851
- throw new AppcondaException('Missing required parameter: "userId"');
855
+ throw new client_1.AppcondaException('Missing required parameter: "userId"');
852
856
  }
853
857
  if (typeof number === 'undefined') {
854
- throw new AppcondaException('Missing required parameter: "number"');
858
+ throw new client_1.AppcondaException('Missing required parameter: "number"');
855
859
  }
856
860
  const apiPath = '/users/{userId}/phone'.replace('{userId}', userId);
857
861
  const payload = {};
@@ -875,7 +879,7 @@ Labels can be used to grant access to resources. While teams are a way for user&
875
879
  */
876
880
  async getPrefs(userId) {
877
881
  if (typeof userId === 'undefined') {
878
- throw new AppcondaException('Missing required parameter: "userId"');
882
+ throw new client_1.AppcondaException('Missing required parameter: "userId"');
879
883
  }
880
884
  const apiPath = '/users/{userId}/prefs'.replace('{userId}', userId);
881
885
  const payload = {};
@@ -897,10 +901,10 @@ Labels can be used to grant access to resources. While teams are a way for user&
897
901
  */
898
902
  async updatePrefs(userId, prefs) {
899
903
  if (typeof userId === 'undefined') {
900
- throw new AppcondaException('Missing required parameter: "userId"');
904
+ throw new client_1.AppcondaException('Missing required parameter: "userId"');
901
905
  }
902
906
  if (typeof prefs === 'undefined') {
903
- throw new AppcondaException('Missing required parameter: "prefs"');
907
+ throw new client_1.AppcondaException('Missing required parameter: "prefs"');
904
908
  }
905
909
  const apiPath = '/users/{userId}/prefs'.replace('{userId}', userId);
906
910
  const payload = {};
@@ -924,7 +928,7 @@ Labels can be used to grant access to resources. While teams are a way for user&
924
928
  */
925
929
  async listSessions(userId) {
926
930
  if (typeof userId === 'undefined') {
927
- throw new AppcondaException('Missing required parameter: "userId"');
931
+ throw new client_1.AppcondaException('Missing required parameter: "userId"');
928
932
  }
929
933
  const apiPath = '/users/{userId}/sessions'.replace('{userId}', userId);
930
934
  const payload = {};
@@ -947,7 +951,7 @@ If you want to generate a token for a custom authentication flow, use the [POST
947
951
  */
948
952
  async createSession(userId) {
949
953
  if (typeof userId === 'undefined') {
950
- throw new AppcondaException('Missing required parameter: "userId"');
954
+ throw new client_1.AppcondaException('Missing required parameter: "userId"');
951
955
  }
952
956
  const apiPath = '/users/{userId}/sessions'.replace('{userId}', userId);
953
957
  const payload = {};
@@ -968,7 +972,7 @@ If you want to generate a token for a custom authentication flow, use the [POST
968
972
  */
969
973
  async deleteSessions(userId) {
970
974
  if (typeof userId === 'undefined') {
971
- throw new AppcondaException('Missing required parameter: "userId"');
975
+ throw new client_1.AppcondaException('Missing required parameter: "userId"');
972
976
  }
973
977
  const apiPath = '/users/{userId}/sessions'.replace('{userId}', userId);
974
978
  const payload = {};
@@ -990,10 +994,10 @@ If you want to generate a token for a custom authentication flow, use the [POST
990
994
  */
991
995
  async deleteSession(userId, sessionId) {
992
996
  if (typeof userId === 'undefined') {
993
- throw new AppcondaException('Missing required parameter: "userId"');
997
+ throw new client_1.AppcondaException('Missing required parameter: "userId"');
994
998
  }
995
999
  if (typeof sessionId === 'undefined') {
996
- throw new AppcondaException('Missing required parameter: "sessionId"');
1000
+ throw new client_1.AppcondaException('Missing required parameter: "sessionId"');
997
1001
  }
998
1002
  const apiPath = '/users/{userId}/sessions/{sessionId}'.replace('{userId}', userId).replace('{sessionId}', sessionId);
999
1003
  const payload = {};
@@ -1015,10 +1019,10 @@ If you want to generate a token for a custom authentication flow, use the [POST
1015
1019
  */
1016
1020
  async updateStatus(userId, status) {
1017
1021
  if (typeof userId === 'undefined') {
1018
- throw new AppcondaException('Missing required parameter: "userId"');
1022
+ throw new client_1.AppcondaException('Missing required parameter: "userId"');
1019
1023
  }
1020
1024
  if (typeof status === 'undefined') {
1021
- throw new AppcondaException('Missing required parameter: "status"');
1025
+ throw new client_1.AppcondaException('Missing required parameter: "status"');
1022
1026
  }
1023
1027
  const apiPath = '/users/{userId}/status'.replace('{userId}', userId);
1024
1028
  const payload = {};
@@ -1043,7 +1047,7 @@ If you want to generate a token for a custom authentication flow, use the [POST
1043
1047
  */
1044
1048
  async listTargets(userId, queries) {
1045
1049
  if (typeof userId === 'undefined') {
1046
- throw new AppcondaException('Missing required parameter: "userId"');
1050
+ throw new client_1.AppcondaException('Missing required parameter: "userId"');
1047
1051
  }
1048
1052
  const apiPath = '/users/{userId}/targets'.replace('{userId}', userId);
1049
1053
  const payload = {};
@@ -1072,16 +1076,16 @@ If you want to generate a token for a custom authentication flow, use the [POST
1072
1076
  */
1073
1077
  async createTarget(userId, targetId, providerType, identifier, providerId, name) {
1074
1078
  if (typeof userId === 'undefined') {
1075
- throw new AppcondaException('Missing required parameter: "userId"');
1079
+ throw new client_1.AppcondaException('Missing required parameter: "userId"');
1076
1080
  }
1077
1081
  if (typeof targetId === 'undefined') {
1078
- throw new AppcondaException('Missing required parameter: "targetId"');
1082
+ throw new client_1.AppcondaException('Missing required parameter: "targetId"');
1079
1083
  }
1080
1084
  if (typeof providerType === 'undefined') {
1081
- throw new AppcondaException('Missing required parameter: "providerType"');
1085
+ throw new client_1.AppcondaException('Missing required parameter: "providerType"');
1082
1086
  }
1083
1087
  if (typeof identifier === 'undefined') {
1084
- throw new AppcondaException('Missing required parameter: "identifier"');
1088
+ throw new client_1.AppcondaException('Missing required parameter: "identifier"');
1085
1089
  }
1086
1090
  const apiPath = '/users/{userId}/targets'.replace('{userId}', userId);
1087
1091
  const payload = {};
@@ -1118,10 +1122,10 @@ If you want to generate a token for a custom authentication flow, use the [POST
1118
1122
  */
1119
1123
  async getTarget(userId, targetId) {
1120
1124
  if (typeof userId === 'undefined') {
1121
- throw new AppcondaException('Missing required parameter: "userId"');
1125
+ throw new client_1.AppcondaException('Missing required parameter: "userId"');
1122
1126
  }
1123
1127
  if (typeof targetId === 'undefined') {
1124
- throw new AppcondaException('Missing required parameter: "targetId"');
1128
+ throw new client_1.AppcondaException('Missing required parameter: "targetId"');
1125
1129
  }
1126
1130
  const apiPath = '/users/{userId}/targets/{targetId}'.replace('{userId}', userId).replace('{targetId}', targetId);
1127
1131
  const payload = {};
@@ -1146,10 +1150,10 @@ If you want to generate a token for a custom authentication flow, use the [POST
1146
1150
  */
1147
1151
  async updateTarget(userId, targetId, identifier, providerId, name) {
1148
1152
  if (typeof userId === 'undefined') {
1149
- throw new AppcondaException('Missing required parameter: "userId"');
1153
+ throw new client_1.AppcondaException('Missing required parameter: "userId"');
1150
1154
  }
1151
1155
  if (typeof targetId === 'undefined') {
1152
- throw new AppcondaException('Missing required parameter: "targetId"');
1156
+ throw new client_1.AppcondaException('Missing required parameter: "targetId"');
1153
1157
  }
1154
1158
  const apiPath = '/users/{userId}/targets/{targetId}'.replace('{userId}', userId).replace('{targetId}', targetId);
1155
1159
  const payload = {};
@@ -1180,10 +1184,10 @@ If you want to generate a token for a custom authentication flow, use the [POST
1180
1184
  */
1181
1185
  async deleteTarget(userId, targetId) {
1182
1186
  if (typeof userId === 'undefined') {
1183
- throw new AppcondaException('Missing required parameter: "userId"');
1187
+ throw new client_1.AppcondaException('Missing required parameter: "userId"');
1184
1188
  }
1185
1189
  if (typeof targetId === 'undefined') {
1186
- throw new AppcondaException('Missing required parameter: "targetId"');
1190
+ throw new client_1.AppcondaException('Missing required parameter: "targetId"');
1187
1191
  }
1188
1192
  const apiPath = '/users/{userId}/targets/{targetId}'.replace('{userId}', userId).replace('{targetId}', targetId);
1189
1193
  const payload = {};
@@ -1207,7 +1211,7 @@ If you want to generate a token for a custom authentication flow, use the [POST
1207
1211
  */
1208
1212
  async createToken(userId, length, expire) {
1209
1213
  if (typeof userId === 'undefined') {
1210
- throw new AppcondaException('Missing required parameter: "userId"');
1214
+ throw new client_1.AppcondaException('Missing required parameter: "userId"');
1211
1215
  }
1212
1216
  const apiPath = '/users/{userId}/tokens'.replace('{userId}', userId);
1213
1217
  const payload = {};
@@ -1235,10 +1239,10 @@ If you want to generate a token for a custom authentication flow, use the [POST
1235
1239
  */
1236
1240
  async updateEmailVerification(userId, emailVerification) {
1237
1241
  if (typeof userId === 'undefined') {
1238
- throw new AppcondaException('Missing required parameter: "userId"');
1242
+ throw new client_1.AppcondaException('Missing required parameter: "userId"');
1239
1243
  }
1240
1244
  if (typeof emailVerification === 'undefined') {
1241
- throw new AppcondaException('Missing required parameter: "emailVerification"');
1245
+ throw new client_1.AppcondaException('Missing required parameter: "emailVerification"');
1242
1246
  }
1243
1247
  const apiPath = '/users/{userId}/verification'.replace('{userId}', userId);
1244
1248
  const payload = {};
@@ -1263,10 +1267,10 @@ If you want to generate a token for a custom authentication flow, use the [POST
1263
1267
  */
1264
1268
  async updatePhoneVerification(userId, phoneVerification) {
1265
1269
  if (typeof userId === 'undefined') {
1266
- throw new AppcondaException('Missing required parameter: "userId"');
1270
+ throw new client_1.AppcondaException('Missing required parameter: "userId"');
1267
1271
  }
1268
1272
  if (typeof phoneVerification === 'undefined') {
1269
- throw new AppcondaException('Missing required parameter: "phoneVerification"');
1273
+ throw new client_1.AppcondaException('Missing required parameter: "phoneVerification"');
1270
1274
  }
1271
1275
  const apiPath = '/users/{userId}/verification/phone'.replace('{userId}', userId);
1272
1276
  const payload = {};
@@ -1280,3 +1284,4 @@ If you want to generate a token for a custom authentication flow, use the [POST
1280
1284
  return await this.client.call('patch', uri, apiHeaders, payload);
1281
1285
  }
1282
1286
  }
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.39",
5
+ "version": "1.0.41",
6
6
  "license": "BSD-3-Clause",
7
7
  "main": "dist/index.js",
8
8
  "types": "dist/index.d.ts",
package/src/index.ts CHANGED
@@ -37,4 +37,4 @@ export { MessagingProviderType } from './enums/messaging-provider-type';
37
37
  export { getSDKForCurrentUser } from './getSDKForCurrentUser';
38
38
  export * from './actions';
39
39
  export * from './modules';
40
- export * from 'next-safe-action'
40
+ export type { SafeActionFn } from 'next-safe-action';
@@ -36,4 +36,5 @@ export const ListWaitlists = actionClient
36
36
  console.error('Error in ListWaitlists:', error);
37
37
  throw new Error('Failed to fetch ListWaitlists');
38
38
  }
39
- });
39
+ });
40
+
package/tsconfig.json CHANGED
@@ -1,27 +1,30 @@
1
1
  {
2
- "compilerOptions": {
3
- "allowJs": true,
4
- "allowSyntheticDefaultImports": true,
5
- "baseUrl": "src",
6
- "declaration": true,
7
- "esModuleInterop": true,
8
- "inlineSourceMap": false,
9
- "lib": ["ESNext", "DOM"],
10
- "listEmittedFiles": false,
11
- "listFiles": false,
12
- "moduleResolution": "node",
13
- "noFallthroughCasesInSwitch": true,
14
- "pretty": true,
15
- "rootDir": "src",
16
- "skipLibCheck": true,
17
- "strict": false,
18
- "target": "ES2020",
19
- "traceResolution": false,
20
- "experimentalDecorators": true,
21
- "emitDecoratorMetadata": true,
22
- "outDir": "./dist",
23
- },
24
- "compileOnSave": false,
25
- "exclude": ["node_modules", "dist"],
26
- "include": ["src"]
27
- }
2
+ "compilerOptions": {
3
+ "target": "ESNext",
4
+ "module": "NodeNext", // ✅ bu satır gerekli
5
+ "moduleResolution": "NodeNext", // ✅ bu da tamam
6
+ "allowJs": true,
7
+ "allowSyntheticDefaultImports": true,
8
+ "declaration": true,
9
+ "esModuleInterop": true,
10
+ "inlineSourceMap": false,
11
+ "lib": ["ESNext", "DOM"],
12
+ "listEmittedFiles": false,
13
+ "listFiles": false,
14
+ "noFallthroughCasesInSwitch": true,
15
+ "pretty": true,
16
+ "rootDir": "src",
17
+ "skipLibCheck": true,
18
+ "strict": false,
19
+ "traceResolution": false,
20
+ "experimentalDecorators": true,
21
+ "emitDecoratorMetadata": true,
22
+ "outDir": "./dist",
23
+ "paths": {
24
+ "next-safe-action": ["./node_modules/next-safe-action/index.d.ts"]
25
+ }
26
+ },
27
+ "compileOnSave": false,
28
+ "exclude": ["node_modules", "dist"],
29
+ "include": ["src"]
30
+ }