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