@appconda/nextjs 1.0.46 → 1.0.49

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 (122) hide show
  1. package/dist/actions/actionClient.d.ts +1 -1
  2. package/dist/actions/actionClient.js +3 -6
  3. package/dist/actions/index.js +1 -17
  4. package/dist/actions/nodes.d.ts +1 -1
  5. package/dist/actions/nodes.js +4 -7
  6. package/dist/client.js +33 -39
  7. package/dist/decorators/Cache.js +4 -7
  8. package/dist/decorators/CacheKey.js +1 -4
  9. package/dist/decorators/Invalidate.js +4 -7
  10. package/dist/enums/api-service.js +2 -5
  11. package/dist/enums/api.js +2 -5
  12. package/dist/enums/auth-method.js +2 -5
  13. package/dist/enums/authentication-factor.js +2 -5
  14. package/dist/enums/authenticator-type.js +2 -5
  15. package/dist/enums/browser.js +2 -5
  16. package/dist/enums/compression.js +2 -5
  17. package/dist/enums/credit-card.js +2 -5
  18. package/dist/enums/database-usage-range.js +2 -5
  19. package/dist/enums/email-template-locale.js +2 -5
  20. package/dist/enums/email-template-type.js +2 -5
  21. package/dist/enums/entities/EntityLimitType.js +2 -5
  22. package/dist/enums/entities/PropertyAttributeName.js +2 -5
  23. package/dist/enums/entities/PropertyCondition.js +2 -5
  24. package/dist/enums/entities/PropertyType.js +2 -5
  25. package/dist/enums/entities/PropertyValueType.js +2 -5
  26. package/dist/enums/entities/RowAccess.js +1 -4
  27. package/dist/enums/entities/ViewFilterCondition.js +2 -5
  28. package/dist/enums/execution-method.js +2 -5
  29. package/dist/enums/flag.js +2 -5
  30. package/dist/enums/function-usage-range.js +2 -5
  31. package/dist/enums/image-format.js +2 -5
  32. package/dist/enums/image-gravity.js +2 -5
  33. package/dist/enums/index-type.js +2 -5
  34. package/dist/enums/messaging-provider-type.js +2 -5
  35. package/dist/enums/name.js +2 -5
  36. package/dist/enums/o-auth-provider copy.js +2 -5
  37. package/dist/enums/o-auth-provider.js +2 -5
  38. package/dist/enums/password-hash.js +2 -5
  39. package/dist/enums/platform-type.js +2 -5
  40. package/dist/enums/project-usage-range.js +2 -5
  41. package/dist/enums/region.js +2 -5
  42. package/dist/enums/relation-mutate.js +2 -5
  43. package/dist/enums/relationship-type.js +2 -5
  44. package/dist/enums/resource-type.js +2 -5
  45. package/dist/enums/runtime.js +2 -5
  46. package/dist/enums/s-m-t-p-secure.js +2 -5
  47. package/dist/enums/shared/ApplicationLayout.js +2 -5
  48. package/dist/enums/shared/Colors.js +2 -5
  49. package/dist/enums/shared/InputType.js +2 -5
  50. package/dist/enums/shared/Periodicity.js +2 -5
  51. package/dist/enums/shared/SvgIcon.js +2 -5
  52. package/dist/enums/shared/Theme.js +2 -5
  53. package/dist/enums/sms-template-locale.js +2 -5
  54. package/dist/enums/sms-template-type.js +2 -5
  55. package/dist/enums/smtp-encryption.js +2 -5
  56. package/dist/enums/storage-usage-range.js +2 -5
  57. package/dist/enums/subscriptions/PricingModel.js +4 -7
  58. package/dist/enums/subscriptions/SubscriptionBillingPeriod.js +4 -7
  59. package/dist/enums/subscriptions/SubscriptionFeatureLimitType.js +4 -7
  60. package/dist/enums/subscriptions/SubscriptionPriceType.js +4 -7
  61. package/dist/enums/tenants/LinkedAccountStatus.js +2 -5
  62. package/dist/enums/tenants/TenantUserJoined.js +2 -5
  63. package/dist/enums/tenants/TenantUserStatus.js +2 -5
  64. package/dist/enums/tenants/TenantUserType.js +2 -5
  65. package/dist/enums/user-usage-range.js +2 -5
  66. package/dist/getAppcondaClient.js +3 -6
  67. package/dist/getSDKForCurrentUser.js +37 -40
  68. package/dist/id.js +16 -20
  69. package/dist/index.js +37 -91
  70. package/dist/inputFile.js +6 -10
  71. package/dist/lib/Cache/Adapter.js +1 -2
  72. package/dist/lib/Cache/Adapters/Filesystem.js +2 -6
  73. package/dist/lib/Cache/Adapters/Memory.js +4 -7
  74. package/dist/lib/Cache/Adapters/None.js +1 -5
  75. package/dist/lib/Cache/Adapters/Sharding.js +14 -19
  76. package/dist/lib/Cache/Cache.js +2 -7
  77. package/dist/lib/Cache/index.js +4 -20
  78. package/dist/lib/Cache/test.d.ts +0 -1
  79. package/dist/lib/Cache/test.js +0 -2
  80. package/dist/lib/Registry/Registry.js +21 -23
  81. package/dist/lib/Registry/index.js +1 -17
  82. package/dist/lib/Services.js +8 -12
  83. package/dist/models.js +1 -2
  84. package/dist/modules/index.js +1 -17
  85. package/dist/modules/waitlist/action.d.ts +3 -3
  86. package/dist/modules/waitlist/action.js +11 -14
  87. package/dist/modules/waitlist/index.js +3 -19
  88. package/dist/modules/waitlist/schema.js +5 -8
  89. package/dist/modules/waitlist/service.js +2 -6
  90. package/dist/modules/waitlist/types.js +1 -2
  91. package/dist/permission.js +49 -53
  92. package/dist/query.js +168 -175
  93. package/dist/role.js +1 -5
  94. package/dist/schemas/nodes.d.ts +0 -1
  95. package/dist/schemas/nodes.js +0 -2
  96. package/dist/service-client.js +1 -6
  97. package/dist/service.js +5 -10
  98. package/dist/services/account.js +58 -63
  99. package/dist/services/applets.js +4 -9
  100. package/dist/services/avatars.js +8 -13
  101. package/dist/services/community.js +5 -10
  102. package/dist/services/configuration.js +2 -6
  103. package/dist/services/databases.js +150 -155
  104. package/dist/services/functions.js +42 -47
  105. package/dist/services/graphql.js +4 -9
  106. package/dist/services/health.js +3 -8
  107. package/dist/services/locale.js +1 -6
  108. package/dist/services/messaging.js +66 -71
  109. package/dist/services/node.js +4 -8
  110. package/dist/services/permissions.js +7 -12
  111. package/dist/services/pricing.js +2 -6
  112. package/dist/services/projects.js +113 -118
  113. package/dist/services/roles.js +6 -11
  114. package/dist/services/schema.js +5 -10
  115. package/dist/services/storage.js +24 -29
  116. package/dist/services/subscription.js +2 -6
  117. package/dist/services/teams.js +25 -30
  118. package/dist/services/tenant-subscription.js +5 -10
  119. package/dist/services/tenant.js +9 -13
  120. package/dist/services/users.js +82 -87
  121. package/package.json +1 -1
  122. package/tsconfig.json +2 -3
@@ -1,4 +1,4 @@
1
- export declare const actionClient: import("next-safe-action", { with: { "resolution-mode": "import" } }).SafeActionClient<string, undefined, undefined, unknown, {}, undefined, undefined, undefined, readonly [], {
1
+ export declare const actionClient: import("next-safe-action").SafeActionClient<string, undefined, undefined, unknown, {}, undefined, undefined, undefined, readonly [], {
2
2
  formErrors: string[];
3
3
  fieldErrors: {};
4
4
  }, readonly []>;
@@ -1,8 +1,5 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.actionClient = void 0;
4
- const next_safe_action_1 = require("next-safe-action");
5
- exports.actionClient = (0, next_safe_action_1.createSafeActionClient)({
1
+ import { DEFAULT_SERVER_ERROR_MESSAGE, createSafeActionClient } from "next-safe-action";
2
+ export const actionClient = createSafeActionClient({
6
3
  handleServerError(e) {
7
4
  /* if (
8
5
  e instanceof ResourceNotFoundError ||
@@ -17,7 +14,7 @@ exports.actionClient = (0, next_safe_action_1.createSafeActionClient)({
17
14
  } */
18
15
  // eslint-disable-next-line no-console -- This error needs to be logged for debugging server-side errors
19
16
  console.error("SERVER ERROR: ", e);
20
- return next_safe_action_1.DEFAULT_SERVER_ERROR_MESSAGE;
17
+ return DEFAULT_SERVER_ERROR_MESSAGE;
21
18
  },
22
19
  });
23
20
  /* export const authenticatedActionClient = actionClient.use(async ({ next }) => {
@@ -1,17 +1 @@
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("./nodes"), exports);
1
+ export * from './nodes';
@@ -1,4 +1,4 @@
1
- export declare const getAllNodesAction: import("next-safe-action", { with: { "resolution-mode": "import" } }).SafeActionFn<string, undefined, readonly [], {
1
+ export declare const getAllNodesAction: import("next-safe-action/.").SafeActionFn<string, undefined, readonly [], {
2
2
  formErrors: string[];
3
3
  fieldErrors: {};
4
4
  }, readonly [], any[]>;
@@ -1,14 +1,11 @@
1
1
  'use server';
2
- "use strict";
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.getAllNodesAction = void 0;
5
- const actionClient_1 = require("./actionClient");
6
- const getSDKForCurrentUser_1 = require("../getSDKForCurrentUser");
7
- exports.getAllNodesAction = actionClient_1.actionClient
2
+ import { actionClient } from "./actionClient";
3
+ import { getSDKForCurrentUser } from '../getSDKForCurrentUser';
4
+ export const getAllNodesAction = actionClient
8
5
  // .schema(listModelsSchema)
9
6
  .action(async ({ parsedInput }) => {
10
7
  try {
11
- const { node } = await (0, getSDKForCurrentUser_1.getSDKForCurrentUser)();
8
+ const { node } = await getSDKForCurrentUser();
12
9
  return await node.GetAllNodes();
13
10
  }
14
11
  catch (error) {
package/dist/client.js CHANGED
@@ -1,12 +1,6 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Query = exports.AppcondaException = exports.Client = void 0;
4
- const node_fetch_native_with_agent_1 = require("node-fetch-native-with-agent");
5
- const agent_1 = require("node-fetch-native-with-agent/agent");
1
+ import { fetch, FormData, File } from 'node-fetch-native-with-agent';
2
+ import { createAgent } from 'node-fetch-native-with-agent/agent';
6
3
  class AppcondaException extends Error {
7
- code;
8
- response;
9
- type;
10
4
  constructor(message, code = 0, type = '', response = '') {
11
5
  super(message);
12
6
  this.name = 'AppcondaException';
@@ -16,7 +10,6 @@ class AppcondaException extends Error {
16
10
  this.response = response;
17
11
  }
18
12
  }
19
- exports.AppcondaException = AppcondaException;
20
13
  function getUserAgent() {
21
14
  let ua = 'AppcondaNodeJSSDK/14.1.0';
22
15
  // `process` is a global in Node.js, but not fully available in all runtimes.
@@ -49,26 +42,27 @@ function getUserAgent() {
49
42
  return ua;
50
43
  }
51
44
  class Client {
52
- static CHUNK_SIZE = 1024 * 1024 * 5;
53
- config = {
54
- endpoint: 'https://cloud.appconda.io/v1',
55
- selfSigned: false,
56
- project: '',
57
- mode: '',
58
- key: '',
59
- jwt: '',
60
- locale: '',
61
- session: '',
62
- forwardeduseragent: '',
63
- };
64
- headers = {
65
- 'x-sdk-name': 'Node.js',
66
- 'x-sdk-platform': 'server',
67
- 'x-sdk-language': 'nodejs',
68
- 'x-sdk-version': '14.1.0',
69
- 'user-agent': getUserAgent(),
70
- 'X-Appconda-Response-Format': '1.6.0',
71
- };
45
+ constructor() {
46
+ this.config = {
47
+ endpoint: 'https://cloud.appconda.io/v1',
48
+ selfSigned: false,
49
+ project: '',
50
+ mode: '',
51
+ key: '',
52
+ jwt: '',
53
+ locale: '',
54
+ session: '',
55
+ forwardeduseragent: '',
56
+ };
57
+ this.headers = {
58
+ 'x-sdk-name': 'Node.js',
59
+ 'x-sdk-platform': 'server',
60
+ 'x-sdk-language': 'nodejs',
61
+ 'x-sdk-version': '14.1.0',
62
+ 'user-agent': getUserAgent(),
63
+ 'X-Appconda-Response-Format': '1.6.0',
64
+ };
65
+ }
72
66
  /**
73
67
  * Set Endpoint
74
68
  *
@@ -214,7 +208,7 @@ class Client {
214
208
  let options = {
215
209
  method,
216
210
  headers,
217
- ...(0, agent_1.createAgent)(this.config.endpoint, { rejectUnauthorized: !this.config.selfSigned }),
211
+ ...createAgent(this.config.endpoint, { rejectUnauthorized: !this.config.selfSigned }),
218
212
  };
219
213
  if (method === 'GET') {
220
214
  for (const [key, value] of Object.entries(Client.flatten(params))) {
@@ -227,9 +221,9 @@ class Client {
227
221
  options.body = JSON.stringify(params);
228
222
  break;
229
223
  case 'multipart/form-data':
230
- const formData = new node_fetch_native_with_agent_1.FormData();
224
+ const formData = new FormData();
231
225
  for (const [key, value] of Object.entries(params)) {
232
- if (value instanceof node_fetch_native_with_agent_1.File) {
226
+ if (value instanceof File) {
233
227
  formData.append(key, value, value.name);
234
228
  }
235
229
  else if (Array.isArray(value)) {
@@ -249,7 +243,7 @@ class Client {
249
243
  return { uri: url.toString(), options };
250
244
  }
251
245
  async chunkedUpload(method, url, headers = {}, originalPayload = {}, onProgress) {
252
- const file = Object.values(originalPayload).find((value) => value instanceof node_fetch_native_with_agent_1.File);
246
+ const file = Object.values(originalPayload).find((value) => value instanceof File);
253
247
  if (file.size <= Client.CHUNK_SIZE) {
254
248
  return await this.call(method, url, headers, originalPayload);
255
249
  }
@@ -262,7 +256,7 @@ class Client {
262
256
  }
263
257
  headers['content-range'] = `bytes ${start}-${end - 1}/${file.size}`;
264
258
  const chunk = file.slice(start, end);
265
- let payload = { ...originalPayload, file: new node_fetch_native_with_agent_1.File([chunk], file.name) };
259
+ let payload = { ...originalPayload, file: new File([chunk], file.name) };
266
260
  response = await this.call(method, url, headers, payload);
267
261
  if (onProgress && typeof onProgress === 'function') {
268
262
  onProgress({
@@ -282,7 +276,7 @@ class Client {
282
276
  }
283
277
  async redirect(method, url, headers = {}, params = {}) {
284
278
  const { uri, options } = this.prepareRequest(method, url, headers, params);
285
- const response = await (0, node_fetch_native_with_agent_1.fetch)(uri, {
279
+ const response = await fetch(uri, {
286
280
  ...options,
287
281
  redirect: 'manual'
288
282
  });
@@ -295,7 +289,7 @@ class Client {
295
289
  const { uri, options } = this.prepareRequest(method, url, headers, params);
296
290
  let data = null;
297
291
  try {
298
- const response = await (0, node_fetch_native_with_agent_1.fetch)(uri, options);
292
+ const response = await fetch(uri, options);
299
293
  const warnings = response.headers.get('x-appconda-warning');
300
294
  if (warnings) {
301
295
  warnings.split(';').forEach((warning) => console.warn('Warning: ' + warning));
@@ -335,6 +329,6 @@ class Client {
335
329
  return output;
336
330
  }
337
331
  }
338
- exports.Client = Client;
339
- var query_1 = require("./query");
340
- Object.defineProperty(exports, "Query", { enumerable: true, get: function () { return query_1.Query; } });
332
+ Client.CHUNK_SIZE = 1024 * 1024 * 5;
333
+ export { Client, AppcondaException };
334
+ export { Query } from './query';
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Cache = Cache;
4
- const Services_1 = require("../lib/Services");
1
+ import { Services } from "../lib/Services";
5
2
  function stableStringify(obj) {
6
3
  if (obj && typeof obj === "object" && !Array.isArray(obj)) {
7
4
  return `{${Object.keys(obj).sort().map(key => `"${key}":${stableStringify(obj[key])}`).join(",")}}`;
@@ -13,7 +10,7 @@ function generateCacheKey(...args) {
13
10
  }
14
11
  // console.log(generateCacheKey("user", 123, true, { role: "admin", permissions: ["read", "write"] }));
15
12
  // console.log(generateCacheKey("user", 123, true, { permissions: ["read", "write"], role: "admin" }));
16
- function Cache( /* cacheKey?: string | string[] */) {
13
+ export function Cache( /* cacheKey?: string | string[] */) {
17
14
  return function (target, propertyKey, descriptor) {
18
15
  const originalMethod = descriptor.value;
19
16
  descriptor.value = async function (...args) {
@@ -41,14 +38,14 @@ function Cache( /* cacheKey?: string | string[] */) {
41
38
  // Cache key'i dizeye dönüştür
42
39
  // const key = Array.isArray(cacheKey) ? cacheKey.join(':') : cacheKey;
43
40
  // Cache'ten veri al
44
- let cachedData = await Services_1.Services.Cache.load(cacheKey);
41
+ let cachedData = await Services.Cache.load(cacheKey);
45
42
  if (cachedData != null) {
46
43
  return cachedData; // Cache'teki veriyi döndür
47
44
  }
48
45
  // Orijinal metodu çağır ve dönen değeri cache'e kaydet
49
46
  const result = await originalMethod.apply(this, args);
50
47
  // Cache'e kaydet (asenkron yapılır, beklenmez)
51
- Services_1.Services.Cache.save(cacheKey, result);
48
+ Services.Cache.save(cacheKey, result);
52
49
  console.log('------------------------------Cache executed..');
53
50
  return result;
54
51
  };
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CacheKey = CacheKey;
4
- function CacheKey() {
1
+ export function CacheKey() {
5
2
  return function (target, propertyKey, parameterIndex) {
6
3
  if (!target.__cacheKeys) {
7
4
  target.__cacheKeys = [];
@@ -1,8 +1,5 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Invalidate = Invalidate;
4
- const Services_1 = require("../lib/Services");
5
- function Invalidate(keys) {
1
+ import { Services } from "../lib/Services";
2
+ export function Invalidate(keys) {
6
3
  return function (target, propertyKey, descriptor) {
7
4
  const originalMethod = descriptor.value;
8
5
  descriptor.value = async function (...args) {
@@ -14,8 +11,8 @@ function Invalidate(keys) {
14
11
  const result = await originalMethod.apply(this, args);
15
12
  // Cache'e kaydet (asenkron yapılır, beklenmez)
16
13
  for (let key of keys) {
17
- Services_1.Services.Cache.purge([...cacheKey, key]);
18
- Services_1.Services.Cache.delWithStart([...cacheKey, key]);
14
+ Services.Cache.purge([...cacheKey, key]);
15
+ Services.Cache.delWithStart([...cacheKey, key]);
19
16
  }
20
17
  console.log('------------------------------Cache deleted.');
21
18
  return result;
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ApiService = void 0;
4
- var ApiService;
1
+ export var ApiService;
5
2
  (function (ApiService) {
6
3
  ApiService["Account"] = "account";
7
4
  ApiService["Avatars"] = "avatars";
@@ -14,4 +11,4 @@ var ApiService;
14
11
  ApiService["Functions"] = "functions";
15
12
  ApiService["Graphql"] = "graphql";
16
13
  ApiService["Messaging"] = "messaging";
17
- })(ApiService || (exports.ApiService = ApiService = {}));
14
+ })(ApiService || (ApiService = {}));
package/dist/enums/api.js CHANGED
@@ -1,9 +1,6 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Api = void 0;
4
- var Api;
1
+ export var Api;
5
2
  (function (Api) {
6
3
  Api["Rest"] = "rest";
7
4
  Api["Graphql"] = "graphql";
8
5
  Api["Realtime"] = "realtime";
9
- })(Api || (exports.Api = Api = {}));
6
+ })(Api || (Api = {}));
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AuthMethod = void 0;
4
- var AuthMethod;
1
+ export var AuthMethod;
5
2
  (function (AuthMethod) {
6
3
  AuthMethod["Emailpassword"] = "email-password";
7
4
  AuthMethod["Magicurl"] = "magic-url";
@@ -10,4 +7,4 @@ var AuthMethod;
10
7
  AuthMethod["Invites"] = "invites";
11
8
  AuthMethod["Jwt"] = "jwt";
12
9
  AuthMethod["Phone"] = "phone";
13
- })(AuthMethod || (exports.AuthMethod = AuthMethod = {}));
10
+ })(AuthMethod || (AuthMethod = {}));
@@ -1,10 +1,7 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AuthenticationFactor = void 0;
4
- var AuthenticationFactor;
1
+ export var AuthenticationFactor;
5
2
  (function (AuthenticationFactor) {
6
3
  AuthenticationFactor["Email"] = "email";
7
4
  AuthenticationFactor["Phone"] = "phone";
8
5
  AuthenticationFactor["Totp"] = "totp";
9
6
  AuthenticationFactor["Recoverycode"] = "recoverycode";
10
- })(AuthenticationFactor || (exports.AuthenticationFactor = AuthenticationFactor = {}));
7
+ })(AuthenticationFactor || (AuthenticationFactor = {}));
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AuthenticatorType = void 0;
4
- var AuthenticatorType;
1
+ export var AuthenticatorType;
5
2
  (function (AuthenticatorType) {
6
3
  AuthenticatorType["Totp"] = "totp";
7
- })(AuthenticatorType || (exports.AuthenticatorType = AuthenticatorType = {}));
4
+ })(AuthenticatorType || (AuthenticatorType = {}));
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Browser = void 0;
4
- var Browser;
1
+ export var Browser;
5
2
  (function (Browser) {
6
3
  Browser["AvantBrowser"] = "aa";
7
4
  Browser["AndroidWebViewBeta"] = "an";
@@ -17,4 +14,4 @@ var Browser;
17
14
  Browser["OperaMini"] = "om";
18
15
  Browser["Opera"] = "op";
19
16
  Browser["OperaNext"] = "on";
20
- })(Browser || (exports.Browser = Browser = {}));
17
+ })(Browser || (Browser = {}));
@@ -1,9 +1,6 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Compression = void 0;
4
- var Compression;
1
+ export var Compression;
5
2
  (function (Compression) {
6
3
  Compression["None"] = "none";
7
4
  Compression["Gzip"] = "gzip";
8
5
  Compression["Zstd"] = "zstd";
9
- })(Compression || (exports.Compression = Compression = {}));
6
+ })(Compression || (Compression = {}));
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CreditCard = void 0;
4
- var CreditCard;
1
+ export var CreditCard;
5
2
  (function (CreditCard) {
6
3
  CreditCard["AmericanExpress"] = "amex";
7
4
  CreditCard["Argencard"] = "argencard";
@@ -19,4 +16,4 @@ var CreditCard;
19
16
  CreditCard["Visa"] = "visa";
20
17
  CreditCard["MIR"] = "mir";
21
18
  CreditCard["Maestro"] = "maestro";
22
- })(CreditCard || (exports.CreditCard = CreditCard = {}));
19
+ })(CreditCard || (CreditCard = {}));
@@ -1,9 +1,6 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DatabaseUsageRange = void 0;
4
- var DatabaseUsageRange;
1
+ export var DatabaseUsageRange;
5
2
  (function (DatabaseUsageRange) {
6
3
  DatabaseUsageRange["TwentyFourHours"] = "24h";
7
4
  DatabaseUsageRange["ThirtyDays"] = "30d";
8
5
  DatabaseUsageRange["NinetyDays"] = "90d";
9
- })(DatabaseUsageRange || (exports.DatabaseUsageRange = DatabaseUsageRange = {}));
6
+ })(DatabaseUsageRange || (DatabaseUsageRange = {}));
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EmailTemplateLocale = void 0;
4
- var EmailTemplateLocale;
1
+ export var EmailTemplateLocale;
5
2
  (function (EmailTemplateLocale) {
6
3
  EmailTemplateLocale["Af"] = "af";
7
4
  EmailTemplateLocale["Arae"] = "ar-ae";
@@ -134,4 +131,4 @@ var EmailTemplateLocale;
134
131
  EmailTemplateLocale["Zhsg"] = "zh-sg";
135
132
  EmailTemplateLocale["Zhtw"] = "zh-tw";
136
133
  EmailTemplateLocale["Zu"] = "zu";
137
- })(EmailTemplateLocale || (exports.EmailTemplateLocale = EmailTemplateLocale = {}));
134
+ })(EmailTemplateLocale || (EmailTemplateLocale = {}));
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EmailTemplateType = void 0;
4
- var EmailTemplateType;
1
+ export var EmailTemplateType;
5
2
  (function (EmailTemplateType) {
6
3
  EmailTemplateType["Verification"] = "verification";
7
4
  EmailTemplateType["Magicsession"] = "magicsession";
@@ -10,4 +7,4 @@ var EmailTemplateType;
10
7
  EmailTemplateType["Mfachallenge"] = "mfachallenge";
11
8
  EmailTemplateType["Sessionalert"] = "sessionalert";
12
9
  EmailTemplateType["Otpsession"] = "otpsession";
13
- })(EmailTemplateType || (exports.EmailTemplateType = EmailTemplateType = {}));
10
+ })(EmailTemplateType || (EmailTemplateType = {}));
@@ -1,8 +1,5 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EntityLimitType = void 0;
4
- var EntityLimitType;
1
+ export var EntityLimitType;
5
2
  (function (EntityLimitType) {
6
3
  EntityLimitType[EntityLimitType["MAX"] = 0] = "MAX";
7
4
  EntityLimitType[EntityLimitType["MONTHLY"] = 1] = "MONTHLY";
8
- })(EntityLimitType || (exports.EntityLimitType = EntityLimitType = {}));
5
+ })(EntityLimitType || (EntityLimitType = {}));
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PropertyAttributeName = void 0;
4
- var PropertyAttributeName;
1
+ export var PropertyAttributeName;
5
2
  (function (PropertyAttributeName) {
6
3
  PropertyAttributeName["HintText"] = "HintText";
7
4
  PropertyAttributeName["HelpText"] = "HelpText";
@@ -28,4 +25,4 @@ var PropertyAttributeName;
28
25
  PropertyAttributeName["Separator"] = "Separator";
29
26
  PropertyAttributeName["SelectOptions"] = "SelectOptions";
30
27
  PropertyAttributeName["Password"] = "Password";
31
- })(PropertyAttributeName || (exports.PropertyAttributeName = PropertyAttributeName = {}));
28
+ })(PropertyAttributeName || (PropertyAttributeName = {}));
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PropertyCondition = void 0;
4
- var PropertyCondition;
1
+ export var PropertyCondition;
5
2
  (function (PropertyCondition) {
6
3
  PropertyCondition[PropertyCondition["EQUAL"] = 0] = "EQUAL";
7
4
  PropertyCondition[PropertyCondition["GREATER_THAN"] = 1] = "GREATER_THAN";
@@ -9,4 +6,4 @@ var PropertyCondition;
9
6
  PropertyCondition[PropertyCondition["LESS_THAN"] = 3] = "LESS_THAN";
10
7
  PropertyCondition[PropertyCondition["EQUAL_OR_LESS_THAN"] = 4] = "EQUAL_OR_LESS_THAN";
11
8
  // CONTAINS, // (),
12
- })(PropertyCondition || (exports.PropertyCondition = PropertyCondition = {}));
9
+ })(PropertyCondition || (PropertyCondition = {}));
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PropertyType = void 0;
4
- var PropertyType;
1
+ export var PropertyType;
5
2
  (function (PropertyType) {
6
3
  PropertyType[PropertyType["NUMBER"] = 0] = "NUMBER";
7
4
  PropertyType[PropertyType["TEXT"] = 1] = "TEXT";
@@ -17,4 +14,4 @@ var PropertyType;
17
14
  PropertyType[PropertyType["MULTI_TEXT"] = 12] = "MULTI_TEXT";
18
15
  PropertyType[PropertyType["RANGE_NUMBER"] = 13] = "RANGE_NUMBER";
19
16
  PropertyType[PropertyType["RANGE_DATE"] = 14] = "RANGE_DATE";
20
- })(PropertyType || (exports.PropertyType = PropertyType = {}));
17
+ })(PropertyType || (PropertyType = {}));
@@ -1,10 +1,7 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PropertyValueType = void 0;
4
- var PropertyValueType;
1
+ export var PropertyValueType;
5
2
  (function (PropertyValueType) {
6
3
  PropertyValueType[PropertyValueType["ID"] = 0] = "ID";
7
4
  PropertyValueType[PropertyValueType["NUMBER"] = 1] = "NUMBER";
8
5
  PropertyValueType[PropertyValueType["TEXT"] = 2] = "TEXT";
9
6
  PropertyValueType[PropertyValueType["DATE"] = 3] = "DATE";
10
- })(PropertyValueType || (exports.PropertyValueType = PropertyValueType = {}));
7
+ })(PropertyValueType || (PropertyValueType = {}));
@@ -1,4 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RowAccessTypes = void 0;
4
- exports.RowAccessTypes = ["none", "view", "comment", "edit", "delete"];
1
+ export const RowAccessTypes = ["none", "view", "comment", "edit", "delete"];
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ViewFilterCondition = void 0;
4
- var ViewFilterCondition;
1
+ export var ViewFilterCondition;
5
2
  (function (ViewFilterCondition) {
6
3
  ViewFilterCondition["equals"] = "equals";
7
4
  ViewFilterCondition["contains"] = "contains";
@@ -13,4 +10,4 @@ var ViewFilterCondition;
13
10
  ViewFilterCondition["endsWith"] = "endsWith";
14
11
  ViewFilterCondition["in"] = "in";
15
12
  ViewFilterCondition["notIn"] = "notIn";
16
- })(ViewFilterCondition || (exports.ViewFilterCondition = ViewFilterCondition = {}));
13
+ })(ViewFilterCondition || (ViewFilterCondition = {}));
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ExecutionMethod = void 0;
4
- var ExecutionMethod;
1
+ export var ExecutionMethod;
5
2
  (function (ExecutionMethod) {
6
3
  ExecutionMethod["GET"] = "GET";
7
4
  ExecutionMethod["POST"] = "POST";
@@ -9,4 +6,4 @@ var ExecutionMethod;
9
6
  ExecutionMethod["PATCH"] = "PATCH";
10
7
  ExecutionMethod["DELETE"] = "DELETE";
11
8
  ExecutionMethod["OPTIONS"] = "OPTIONS";
12
- })(ExecutionMethod || (exports.ExecutionMethod = ExecutionMethod = {}));
9
+ })(ExecutionMethod || (ExecutionMethod = {}));
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Flag = void 0;
4
- var Flag;
1
+ export var Flag;
5
2
  (function (Flag) {
6
3
  Flag["Afghanistan"] = "af";
7
4
  Flag["Angola"] = "ao";
@@ -198,4 +195,4 @@ var Flag;
198
195
  Flag["SouthAfrica"] = "za";
199
196
  Flag["Zambia"] = "zm";
200
197
  Flag["Zimbabwe"] = "zw";
201
- })(Flag || (exports.Flag = Flag = {}));
198
+ })(Flag || (Flag = {}));
@@ -1,9 +1,6 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FunctionUsageRange = void 0;
4
- var FunctionUsageRange;
1
+ export var FunctionUsageRange;
5
2
  (function (FunctionUsageRange) {
6
3
  FunctionUsageRange["TwentyFourHours"] = "24h";
7
4
  FunctionUsageRange["ThirtyDays"] = "30d";
8
5
  FunctionUsageRange["NinetyDays"] = "90d";
9
- })(FunctionUsageRange || (exports.FunctionUsageRange = FunctionUsageRange = {}));
6
+ })(FunctionUsageRange || (FunctionUsageRange = {}));
@@ -1,11 +1,8 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ImageFormat = void 0;
4
- var ImageFormat;
1
+ export var ImageFormat;
5
2
  (function (ImageFormat) {
6
3
  ImageFormat["Jpg"] = "jpg";
7
4
  ImageFormat["Jpeg"] = "jpeg";
8
5
  ImageFormat["Gif"] = "gif";
9
6
  ImageFormat["Png"] = "png";
10
7
  ImageFormat["Webp"] = "webp";
11
- })(ImageFormat || (exports.ImageFormat = ImageFormat = {}));
8
+ })(ImageFormat || (ImageFormat = {}));
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ImageGravity = void 0;
4
- var ImageGravity;
1
+ export var ImageGravity;
5
2
  (function (ImageGravity) {
6
3
  ImageGravity["Center"] = "center";
7
4
  ImageGravity["Topleft"] = "top-left";
@@ -12,4 +9,4 @@ var ImageGravity;
12
9
  ImageGravity["Bottomleft"] = "bottom-left";
13
10
  ImageGravity["Bottom"] = "bottom";
14
11
  ImageGravity["Bottomright"] = "bottom-right";
15
- })(ImageGravity || (exports.ImageGravity = ImageGravity = {}));
12
+ })(ImageGravity || (ImageGravity = {}));
@@ -1,9 +1,6 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.IndexType = void 0;
4
- var IndexType;
1
+ export var IndexType;
5
2
  (function (IndexType) {
6
3
  IndexType["Key"] = "key";
7
4
  IndexType["Fulltext"] = "fulltext";
8
5
  IndexType["Unique"] = "unique";
9
- })(IndexType || (exports.IndexType = IndexType = {}));
6
+ })(IndexType || (IndexType = {}));
@@ -1,9 +1,6 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MessagingProviderType = void 0;
4
- var MessagingProviderType;
1
+ export var MessagingProviderType;
5
2
  (function (MessagingProviderType) {
6
3
  MessagingProviderType["Email"] = "email";
7
4
  MessagingProviderType["Sms"] = "sms";
8
5
  MessagingProviderType["Push"] = "push";
9
- })(MessagingProviderType || (exports.MessagingProviderType = MessagingProviderType = {}));
6
+ })(MessagingProviderType || (MessagingProviderType = {}));