@appconda/nextjs 1.0.38 → 1.0.40

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