@appconda/nextjs 1.0.50 → 1.0.52

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