@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/index.js CHANGED
@@ -1,37 +1,91 @@
1
- export { Client, Query, AppcondaException } from './client';
2
- export { Account } from './services/account';
3
- export { Avatars } from './services/avatars';
4
- export { Databases } from './services/databases';
5
- export { Applets } from './services/applets';
6
- export { Functions } from './services/functions';
7
- export { Graphql } from './services/graphql';
8
- export { Health } from './services/health';
9
- export { Locale } from './services/locale';
10
- export { Messaging } from './services/messaging';
11
- export { Storage } from './services/storage';
12
- export { Teams } from './services/teams';
13
- export { Users } from './services/users';
14
- export { Permission } from './permission';
15
- export { Role } from './role';
16
- export { ID } from './id';
17
- export { AuthenticatorType } from './enums/authenticator-type';
18
- export { AuthenticationFactor } from './enums/authentication-factor';
19
- export { OAuthProvider } from './enums/o-auth-provider';
20
- export { Browser } from './enums/browser';
21
- export { CreditCard } from './enums/credit-card';
22
- export { Flag } from './enums/flag';
23
- export { RelationshipType } from './enums/relationship-type';
24
- export { RelationMutate } from './enums/relation-mutate';
25
- export { IndexType } from './enums/index-type';
26
- export { Runtime } from './enums/runtime';
27
- export { ExecutionMethod } from './enums/execution-method';
28
- export { Name } from './enums/name';
29
- export { SmtpEncryption } from './enums/smtp-encryption';
30
- export { Compression } from './enums/compression';
31
- export { ImageGravity } from './enums/image-gravity';
32
- export { ImageFormat } from './enums/image-format';
33
- export { PasswordHash } from './enums/password-hash';
34
- export { MessagingProviderType } from './enums/messaging-provider-type';
35
- export { getSDKForCurrentUser } from './getSDKForCurrentUser';
36
- export * from './actions';
37
- export * from './modules';
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.getSDKForCurrentUser = exports.MessagingProviderType = exports.PasswordHash = exports.ImageFormat = exports.ImageGravity = exports.Compression = exports.SmtpEncryption = exports.Name = exports.ExecutionMethod = exports.Runtime = exports.IndexType = exports.RelationMutate = exports.RelationshipType = exports.Flag = exports.CreditCard = exports.Browser = exports.OAuthProvider = exports.AuthenticationFactor = exports.AuthenticatorType = exports.ID = exports.Role = exports.Permission = exports.Users = exports.Teams = exports.Storage = exports.Messaging = exports.Locale = exports.Health = exports.Graphql = exports.Functions = exports.Applets = exports.Databases = exports.Avatars = exports.Account = exports.AppcondaException = exports.Query = exports.Client = void 0;
18
+ var client_1 = require("./client");
19
+ Object.defineProperty(exports, "Client", { enumerable: true, get: function () { return client_1.Client; } });
20
+ Object.defineProperty(exports, "Query", { enumerable: true, get: function () { return client_1.Query; } });
21
+ Object.defineProperty(exports, "AppcondaException", { enumerable: true, get: function () { return client_1.AppcondaException; } });
22
+ var account_1 = require("./services/account");
23
+ Object.defineProperty(exports, "Account", { enumerable: true, get: function () { return account_1.Account; } });
24
+ var avatars_1 = require("./services/avatars");
25
+ Object.defineProperty(exports, "Avatars", { enumerable: true, get: function () { return avatars_1.Avatars; } });
26
+ var databases_1 = require("./services/databases");
27
+ Object.defineProperty(exports, "Databases", { enumerable: true, get: function () { return databases_1.Databases; } });
28
+ var applets_1 = require("./services/applets");
29
+ Object.defineProperty(exports, "Applets", { enumerable: true, get: function () { return applets_1.Applets; } });
30
+ var functions_1 = require("./services/functions");
31
+ Object.defineProperty(exports, "Functions", { enumerable: true, get: function () { return functions_1.Functions; } });
32
+ var graphql_1 = require("./services/graphql");
33
+ Object.defineProperty(exports, "Graphql", { enumerable: true, get: function () { return graphql_1.Graphql; } });
34
+ var health_1 = require("./services/health");
35
+ Object.defineProperty(exports, "Health", { enumerable: true, get: function () { return health_1.Health; } });
36
+ var locale_1 = require("./services/locale");
37
+ Object.defineProperty(exports, "Locale", { enumerable: true, get: function () { return locale_1.Locale; } });
38
+ var messaging_1 = require("./services/messaging");
39
+ Object.defineProperty(exports, "Messaging", { enumerable: true, get: function () { return messaging_1.Messaging; } });
40
+ var storage_1 = require("./services/storage");
41
+ Object.defineProperty(exports, "Storage", { enumerable: true, get: function () { return storage_1.Storage; } });
42
+ var teams_1 = require("./services/teams");
43
+ Object.defineProperty(exports, "Teams", { enumerable: true, get: function () { return teams_1.Teams; } });
44
+ var users_1 = require("./services/users");
45
+ Object.defineProperty(exports, "Users", { enumerable: true, get: function () { return users_1.Users; } });
46
+ var permission_1 = require("./permission");
47
+ Object.defineProperty(exports, "Permission", { enumerable: true, get: function () { return permission_1.Permission; } });
48
+ var role_1 = require("./role");
49
+ Object.defineProperty(exports, "Role", { enumerable: true, get: function () { return role_1.Role; } });
50
+ var id_1 = require("./id");
51
+ Object.defineProperty(exports, "ID", { enumerable: true, get: function () { return id_1.ID; } });
52
+ var authenticator_type_1 = require("./enums/authenticator-type");
53
+ Object.defineProperty(exports, "AuthenticatorType", { enumerable: true, get: function () { return authenticator_type_1.AuthenticatorType; } });
54
+ var authentication_factor_1 = require("./enums/authentication-factor");
55
+ Object.defineProperty(exports, "AuthenticationFactor", { enumerable: true, get: function () { return authentication_factor_1.AuthenticationFactor; } });
56
+ var o_auth_provider_1 = require("./enums/o-auth-provider");
57
+ Object.defineProperty(exports, "OAuthProvider", { enumerable: true, get: function () { return o_auth_provider_1.OAuthProvider; } });
58
+ var browser_1 = require("./enums/browser");
59
+ Object.defineProperty(exports, "Browser", { enumerable: true, get: function () { return browser_1.Browser; } });
60
+ var credit_card_1 = require("./enums/credit-card");
61
+ Object.defineProperty(exports, "CreditCard", { enumerable: true, get: function () { return credit_card_1.CreditCard; } });
62
+ var flag_1 = require("./enums/flag");
63
+ Object.defineProperty(exports, "Flag", { enumerable: true, get: function () { return flag_1.Flag; } });
64
+ var relationship_type_1 = require("./enums/relationship-type");
65
+ Object.defineProperty(exports, "RelationshipType", { enumerable: true, get: function () { return relationship_type_1.RelationshipType; } });
66
+ var relation_mutate_1 = require("./enums/relation-mutate");
67
+ Object.defineProperty(exports, "RelationMutate", { enumerable: true, get: function () { return relation_mutate_1.RelationMutate; } });
68
+ var index_type_1 = require("./enums/index-type");
69
+ Object.defineProperty(exports, "IndexType", { enumerable: true, get: function () { return index_type_1.IndexType; } });
70
+ var runtime_1 = require("./enums/runtime");
71
+ Object.defineProperty(exports, "Runtime", { enumerable: true, get: function () { return runtime_1.Runtime; } });
72
+ var execution_method_1 = require("./enums/execution-method");
73
+ Object.defineProperty(exports, "ExecutionMethod", { enumerable: true, get: function () { return execution_method_1.ExecutionMethod; } });
74
+ var name_1 = require("./enums/name");
75
+ Object.defineProperty(exports, "Name", { enumerable: true, get: function () { return name_1.Name; } });
76
+ var smtp_encryption_1 = require("./enums/smtp-encryption");
77
+ Object.defineProperty(exports, "SmtpEncryption", { enumerable: true, get: function () { return smtp_encryption_1.SmtpEncryption; } });
78
+ var compression_1 = require("./enums/compression");
79
+ Object.defineProperty(exports, "Compression", { enumerable: true, get: function () { return compression_1.Compression; } });
80
+ var image_gravity_1 = require("./enums/image-gravity");
81
+ Object.defineProperty(exports, "ImageGravity", { enumerable: true, get: function () { return image_gravity_1.ImageGravity; } });
82
+ var image_format_1 = require("./enums/image-format");
83
+ Object.defineProperty(exports, "ImageFormat", { enumerable: true, get: function () { return image_format_1.ImageFormat; } });
84
+ var password_hash_1 = require("./enums/password-hash");
85
+ Object.defineProperty(exports, "PasswordHash", { enumerable: true, get: function () { return password_hash_1.PasswordHash; } });
86
+ var messaging_provider_type_1 = require("./enums/messaging-provider-type");
87
+ Object.defineProperty(exports, "MessagingProviderType", { enumerable: true, get: function () { return messaging_provider_type_1.MessagingProviderType; } });
88
+ var getSDKForCurrentUser_1 = require("./getSDKForCurrentUser");
89
+ Object.defineProperty(exports, "getSDKForCurrentUser", { enumerable: true, get: function () { return getSDKForCurrentUser_1.getSDKForCurrentUser; } });
90
+ __exportStar(require("./actions"), exports);
91
+ __exportStar(require("./modules"), exports);
@@ -1,4 +1,3 @@
1
- import { File } from "node-fetch-native-with-agent";
2
1
  import type { BinaryLike } from "crypto";
3
2
  export declare class InputFile {
4
3
  static fromBuffer(parts: Blob | BinaryLike, name: string): File;
package/dist/inputFile.js CHANGED
@@ -1,12 +1,15 @@
1
- import { File } from "node-fetch-native-with-agent";
2
- import { realpathSync, readFileSync } from "fs";
3
- export class InputFile {
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.InputFile = void 0;
4
+ const node_fetch_native_with_agent_1 = require("node-fetch-native-with-agent");
5
+ const fs_1 = require("fs");
6
+ class InputFile {
4
7
  static fromBuffer(parts, name) {
5
- return new File([parts], name);
8
+ return new node_fetch_native_with_agent_1.File([parts], name);
6
9
  }
7
10
  static fromPath(path, name) {
8
- const realPath = realpathSync(path);
9
- const contents = readFileSync(realPath);
11
+ const realPath = (0, fs_1.realpathSync)(path);
12
+ const contents = (0, fs_1.readFileSync)(realPath);
10
13
  return this.fromBuffer(contents, name);
11
14
  }
12
15
  static fromPlainText(content, name) {
@@ -14,3 +17,4 @@ export class InputFile {
14
17
  return this.fromBuffer(arrayBytes, name);
15
18
  }
16
19
  }
20
+ exports.InputFile = InputFile;
@@ -1 +1,2 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Filesystem = void 0;
1
4
  const fs = require('fs');
2
5
  const path = require('path');
3
6
  const glob = require('glob');
4
- export class Filesystem {
7
+ class Filesystem {
5
8
  constructor(path) {
6
9
  this.path = '';
7
10
  this.path = path;
@@ -100,3 +103,4 @@ export class Filesystem {
100
103
  return 0;
101
104
  }
102
105
  }
106
+ exports.Filesystem = Filesystem;
@@ -1,4 +1,7 @@
1
- export class Memory {
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Memory = void 0;
4
+ class Memory {
2
5
  constructor() {
3
6
  this.store = {};
4
7
  }
@@ -44,3 +47,4 @@ export class Memory {
44
47
  return 0;
45
48
  }
46
49
  }
50
+ exports.Memory = Memory;
@@ -1,4 +1,7 @@
1
- export class None {
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.None = void 0;
4
+ class None {
2
5
  constructor() { }
3
6
  async load(key, ttl, hash = '') {
4
7
  return false;
@@ -25,3 +28,4 @@ export class None {
25
28
  return 0;
26
29
  }
27
30
  }
31
+ exports.None = None;
@@ -1,4 +1,7 @@
1
- export class Sharding {
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Sharding = void 0;
4
+ class Sharding {
2
5
  constructor(adapters) {
3
6
  this.count = 0;
4
7
  this.crc32Table = (() => {
@@ -70,3 +73,4 @@ export class Sharding {
70
73
  return 0;
71
74
  }
72
75
  }
76
+ exports.Sharding = Sharding;
@@ -1,4 +1,7 @@
1
- export class Cache {
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Cache = void 0;
4
+ class Cache {
2
5
  constructor(adapter) {
3
6
  this.adapter = adapter;
4
7
  }
@@ -48,4 +51,5 @@ export class Cache {
48
51
  return this.adapter.delWithStart(pattern);
49
52
  }
50
53
  }
54
+ exports.Cache = Cache;
51
55
  Cache.caseSensitive = false;
@@ -1,4 +1,20 @@
1
- export * from './Cache';
2
- export * from './Adapters/None';
3
- export * from './Adapters/Sharding';
4
- export * from './Adapters/Memory';
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./Cache"), exports);
18
+ __exportStar(require("./Adapters/None"), exports);
19
+ __exportStar(require("./Adapters/Sharding"), exports);
20
+ __exportStar(require("./Adapters/Memory"), exports);
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +1,7 @@
1
- export class Registry {
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Registry = void 0;
4
+ class Registry {
2
5
  constructor() {
3
6
  /**
4
7
  * List of all callbacks
@@ -53,3 +56,4 @@ export class Registry {
53
56
  return this;
54
57
  }
55
58
  }
59
+ exports.Registry = Registry;
@@ -1 +1,17 @@
1
- export * from './Registry';
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./Registry"), exports);
@@ -1,5 +1,6 @@
1
1
  import { Cache } from "./Cache";
2
- export declare const registry: any;
2
+ import { Registry } from "./Registry";
3
+ export declare const registry: Registry;
3
4
  export declare class Services {
4
5
  static get Cache(): Cache;
5
6
  }
@@ -1,13 +1,17 @@
1
- import { Cache, Memory } from "./Cache";
2
- import { Registry } from "./Registry";
3
- export const registry = new Registry();
4
- registry.set('cache', () => {
5
- const memoryAdapter = new Memory();
6
- const cacheProvider = new Cache(memoryAdapter);
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Services = exports.registry = void 0;
4
+ const Cache_1 = require("./Cache");
5
+ const Registry_1 = require("./Registry");
6
+ exports.registry = new Registry_1.Registry();
7
+ exports.registry.set('cache', () => {
8
+ const memoryAdapter = new Cache_1.Memory();
9
+ const cacheProvider = new Cache_1.Cache(memoryAdapter);
7
10
  return cacheProvider;
8
11
  });
9
- export class Services {
12
+ class Services {
10
13
  static get Cache() {
11
- return registry.get('cache');
14
+ return exports.registry.get('cache');
12
15
  }
13
16
  }
17
+ exports.Services = Services;
package/dist/models.js CHANGED
@@ -1 +1,2 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +1,17 @@
1
- export * from './waitlist';
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./waitlist"), exports);
@@ -1,3 +1,29 @@
1
- export declare const ListWaitlistSignups: any;
2
- export declare const ListWaitlists: any;
3
- export declare const CreateWaitlist: any;
1
+ import { Waitlist, WaitlistSignup } from './types';
2
+ export declare const ListWaitlistSignups: import("next-safe-action", { with: { "resolution-mode": "import" } }).SafeActionFn<string, import("zod").ZodObject<{
3
+ waitlistId: import("zod").ZodString;
4
+ }, "strip", import("zod").ZodTypeAny, {
5
+ waitlistId?: string;
6
+ }, {
7
+ waitlistId?: string;
8
+ }>, readonly [], {
9
+ formErrors: string[];
10
+ fieldErrors: {
11
+ waitlistId?: string[];
12
+ };
13
+ }, readonly [], WaitlistSignup[]>;
14
+ export declare const ListWaitlists: import("next-safe-action", { with: { "resolution-mode": "import" } }).SafeActionFn<string, undefined, readonly [], {
15
+ formErrors: string[];
16
+ fieldErrors: {};
17
+ }, readonly [], Waitlist[]>;
18
+ export declare const CreateWaitlist: import("next-safe-action", { with: { "resolution-mode": "import" } }).SafeActionFn<string, import("zod").ZodObject<{
19
+ name: import("zod").ZodString;
20
+ }, "strip", import("zod").ZodTypeAny, {
21
+ name?: string;
22
+ }, {
23
+ name?: string;
24
+ }>, readonly [], {
25
+ formErrors: string[];
26
+ fieldErrors: {
27
+ name?: string[];
28
+ };
29
+ }, readonly [], Waitlist>;
@@ -1,13 +1,16 @@
1
1
  'use server';
2
- import { actionClient } from '../../actions/actionClient';
3
- import { getSDKForCurrentUser } from '../../getSDKForCurrentUser';
4
- import { CreateWaitlistSchema, ListWaitlistSignupsSchema } from "./schema";
5
- export const ListWaitlistSignups = actionClient
6
- .schema(ListWaitlistSignupsSchema)
2
+ "use strict";
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.CreateWaitlist = exports.ListWaitlists = exports.ListWaitlistSignups = void 0;
5
+ const actionClient_1 = require("../../actions/actionClient");
6
+ const getSDKForCurrentUser_1 = require("../../getSDKForCurrentUser");
7
+ const schema_1 = require("./schema");
8
+ exports.ListWaitlistSignups = actionClient_1.actionClient
9
+ .schema(schema_1.ListWaitlistSignupsSchema)
7
10
  .action(async ({ parsedInput }) => {
8
11
  try {
9
12
  const { waitlistId } = parsedInput;
10
- const { waitlist } = await getSDKForCurrentUser();
13
+ const { waitlist } = await (0, getSDKForCurrentUser_1.getSDKForCurrentUser)();
11
14
  return await waitlist.ListWiatlistSignups(waitlistId); // typo: Wiatlist mi?
12
15
  }
13
16
  catch (error) {
@@ -15,10 +18,10 @@ export const ListWaitlistSignups = actionClient
15
18
  throw new Error('Failed to fetch ListWaitlistSignups');
16
19
  }
17
20
  });
18
- export const ListWaitlists = actionClient
21
+ exports.ListWaitlists = actionClient_1.actionClient
19
22
  .action(async () => {
20
23
  try {
21
- const { waitlist } = await getSDKForCurrentUser();
24
+ const { waitlist } = await (0, getSDKForCurrentUser_1.getSDKForCurrentUser)();
22
25
  return await waitlist.ListWaitlists();
23
26
  }
24
27
  catch (error) {
@@ -26,11 +29,11 @@ export const ListWaitlists = actionClient
26
29
  throw new Error('Failed to fetch ListWaitlists');
27
30
  }
28
31
  });
29
- export const CreateWaitlist = actionClient
30
- .schema(CreateWaitlistSchema)
32
+ exports.CreateWaitlist = actionClient_1.actionClient
33
+ .schema(schema_1.CreateWaitlistSchema)
31
34
  .action(async ({ parsedInput }) => {
32
35
  try {
33
- const { waitlist } = await getSDKForCurrentUser();
36
+ const { waitlist } = await (0, getSDKForCurrentUser_1.getSDKForCurrentUser)();
34
37
  return await waitlist.CreateWaitlist(parsedInput);
35
38
  }
36
39
  catch (error) {
@@ -1,3 +1,19 @@
1
- export * from './action';
2
- export * from './schema';
3
- export * from './service';
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./action"), exports);
18
+ __exportStar(require("./schema"), exports);
19
+ __exportStar(require("./service"), exports);
@@ -1,2 +1,15 @@
1
- export declare const ListWaitlistSignupsSchema: any;
2
- export declare const CreateWaitlistSchema: any;
1
+ import { z } from "zod";
2
+ export declare const ListWaitlistSignupsSchema: z.ZodObject<{
3
+ waitlistId: z.ZodString;
4
+ }, "strip", z.ZodTypeAny, {
5
+ waitlistId?: string;
6
+ }, {
7
+ waitlistId?: string;
8
+ }>;
9
+ export declare const CreateWaitlistSchema: z.ZodObject<{
10
+ name: z.ZodString;
11
+ }, "strip", z.ZodTypeAny, {
12
+ name?: string;
13
+ }, {
14
+ name?: string;
15
+ }>;
@@ -1,7 +1,10 @@
1
- import { z } from "zod";
2
- export const ListWaitlistSignupsSchema = z.object({
3
- waitlistId: z.string()
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateWaitlistSchema = exports.ListWaitlistSignupsSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.ListWaitlistSignupsSchema = zod_1.z.object({
6
+ waitlistId: zod_1.z.string()
4
7
  });
5
- export const CreateWaitlistSchema = z.object({
6
- name: z.string()
8
+ exports.CreateWaitlistSchema = zod_1.z.object({
9
+ name: zod_1.z.string()
7
10
  });
@@ -1,5 +1,8 @@
1
- import { ServiceClient } from "../../service-client";
2
- export class WaitlistService extends ServiceClient {
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WaitlistService = void 0;
4
+ const service_client_1 = require("../../service-client");
5
+ class WaitlistService extends service_client_1.ServiceClient {
3
6
  getServiceName() {
4
7
  return 'com.appconda.service.waitlist';
5
8
  }
@@ -16,3 +19,4 @@ export class WaitlistService extends ServiceClient {
16
19
  return await this.actionCall('CreateWaitlist', payload);
17
20
  }
18
21
  }
22
+ exports.WaitlistService = WaitlistService;
@@ -1 +1,2 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,8 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Permission = void 0;
1
4
  /**
2
5
  * Helper class to generate permission strings for resources.
3
6
  */
4
- export class Permission {
7
+ class Permission {
5
8
  }
9
+ exports.Permission = Permission;
6
10
  /**
7
11
  * Generate read permission string for the provided role.
8
12
  *
package/dist/query.js CHANGED
@@ -1,7 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Query = void 0;
1
4
  /**
2
5
  * Helper class to generate query strings.
3
6
  */
4
- export class Query {
7
+ class Query {
5
8
  /**
6
9
  * Constructor for Query class.
7
10
  *
@@ -34,6 +37,7 @@ export class Query {
34
37
  });
35
38
  }
36
39
  }
40
+ exports.Query = Query;
37
41
  /**
38
42
  * Filter resources where attribute is equal to value.
39
43
  *
package/dist/role.js CHANGED
@@ -1,7 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Role = void 0;
1
4
  /**
2
5
  * Helper class to generate role strings for `Permission`.
3
6
  */
4
- export class Role {
7
+ class Role {
5
8
  /**
6
9
  * Grants access to anyone.
7
10
  *
@@ -91,3 +94,4 @@ export class Role {
91
94
  return `label:${name}`;
92
95
  }
93
96
  }
97
+ exports.Role = Role;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +1,7 @@
1
- export class ServiceClient {
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ServiceClient = void 0;
4
+ class ServiceClient {
2
5
  constructor(client) {
3
6
  this.client = client;
4
7
  }
@@ -11,3 +14,4 @@ export class ServiceClient {
11
14
  return await this.client.call('post', uri, apiHeaders, payload);
12
15
  }
13
16
  }
17
+ exports.ServiceClient = ServiceClient;