@appconda/nextjs 1.0.21 → 1.0.23

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 (114) hide show
  1. package/dist/index.js +37 -12565
  2. package/package.json +1 -2
  3. package/dist/iife/sdk.js +0 -12556
  4. package/dist/index.js.map +0 -1
  5. package/dist/types/Cache/Adapter.d.ts +0 -10
  6. package/dist/types/Cache/Adapters/Filesystem.d.ts +0 -16
  7. package/dist/types/Cache/Adapters/Memory.d.ts +0 -18
  8. package/dist/types/Cache/Adapters/None.d.ts +0 -12
  9. package/dist/types/Cache/Adapters/Redis.d.ts +0 -14
  10. package/dist/types/Cache/Adapters/Sharding.d.ts +0 -17
  11. package/dist/types/Cache/Cache.d.ts +0 -16
  12. package/dist/types/Cache/index.d.ts +0 -5
  13. package/dist/types/Cache/test.d.ts +0 -0
  14. package/dist/types/Services.d.ts +0 -6
  15. package/dist/types/actions/actionClient.d.ts +0 -4
  16. package/dist/types/actions/index.d.ts +0 -1
  17. package/dist/types/actions/nodes.d.ts +0 -4
  18. package/dist/types/client.d.ts +0 -141
  19. package/dist/types/decorators/Cache.d.ts +0 -1
  20. package/dist/types/decorators/CacheKey.d.ts +0 -1
  21. package/dist/types/decorators/Invalidate.d.ts +0 -1
  22. package/dist/types/enums/api-service.d.ts +0 -13
  23. package/dist/types/enums/api.d.ts +0 -5
  24. package/dist/types/enums/auth-method.d.ts +0 -9
  25. package/dist/types/enums/authentication-factor.d.ts +0 -6
  26. package/dist/types/enums/authenticator-type.d.ts +0 -3
  27. package/dist/types/enums/browser.d.ts +0 -16
  28. package/dist/types/enums/compression.d.ts +0 -5
  29. package/dist/types/enums/credit-card.d.ts +0 -18
  30. package/dist/types/enums/database-usage-range.d.ts +0 -5
  31. package/dist/types/enums/email-template-locale.d.ts +0 -133
  32. package/dist/types/enums/email-template-type.d.ts +0 -9
  33. package/dist/types/enums/entities/EntityLimitType.d.ts +0 -4
  34. package/dist/types/enums/entities/PropertyAttributeName.d.ts +0 -27
  35. package/dist/types/enums/entities/PropertyCondition.d.ts +0 -7
  36. package/dist/types/enums/entities/PropertyType.d.ts +0 -12
  37. package/dist/types/enums/entities/PropertyValueType.d.ts +0 -6
  38. package/dist/types/enums/entities/RowAccess.d.ts +0 -2
  39. package/dist/types/enums/entities/ViewFilterCondition.d.ts +0 -12
  40. package/dist/types/enums/execution-method.d.ts +0 -8
  41. package/dist/types/enums/flag.d.ts +0 -197
  42. package/dist/types/enums/function-usage-range.d.ts +0 -5
  43. package/dist/types/enums/image-format.d.ts +0 -7
  44. package/dist/types/enums/image-gravity.d.ts +0 -11
  45. package/dist/types/enums/index-type.d.ts +0 -5
  46. package/dist/types/enums/messaging-provider-type.d.ts +0 -5
  47. package/dist/types/enums/name.d.ts +0 -14
  48. package/dist/types/enums/o-auth-provider copy.d.ts +0 -41
  49. package/dist/types/enums/o-auth-provider.d.ts +0 -41
  50. package/dist/types/enums/password-hash.d.ts +0 -13
  51. package/dist/types/enums/platform-type.d.ts +0 -17
  52. package/dist/types/enums/project-usage-range.d.ts +0 -4
  53. package/dist/types/enums/region.d.ts +0 -4
  54. package/dist/types/enums/relation-mutate.d.ts +0 -5
  55. package/dist/types/enums/relationship-type.d.ts +0 -6
  56. package/dist/types/enums/resource-type.d.ts +0 -4
  57. package/dist/types/enums/runtime.d.ts +0 -48
  58. package/dist/types/enums/s-m-t-p-secure.d.ts +0 -3
  59. package/dist/types/enums/shared/ApplicationLayout.d.ts +0 -4
  60. package/dist/types/enums/shared/Colors.d.ts +0 -24
  61. package/dist/types/enums/shared/InputType.d.ts +0 -6
  62. package/dist/types/enums/shared/Periodicity.d.ts +0 -7
  63. package/dist/types/enums/shared/SvgIcon.d.ts +0 -37
  64. package/dist/types/enums/shared/Theme.d.ts +0 -4
  65. package/dist/types/enums/sms-template-locale.d.ts +0 -133
  66. package/dist/types/enums/sms-template-type.d.ts +0 -6
  67. package/dist/types/enums/smtp-encryption.d.ts +0 -5
  68. package/dist/types/enums/storage-usage-range.d.ts +0 -5
  69. package/dist/types/enums/subscriptions/PricingModel.d.ts +0 -11
  70. package/dist/types/enums/subscriptions/SubscriptionBillingPeriod.d.ts +0 -10
  71. package/dist/types/enums/subscriptions/SubscriptionFeatureLimitType.d.ts +0 -10
  72. package/dist/types/enums/subscriptions/SubscriptionPriceType.d.ts +0 -7
  73. package/dist/types/enums/tenants/LinkedAccountStatus.d.ts +0 -5
  74. package/dist/types/enums/tenants/TenantUserJoined.d.ts +0 -6
  75. package/dist/types/enums/tenants/TenantUserStatus.d.ts +0 -6
  76. package/dist/types/enums/tenants/TenantUserType.d.ts +0 -5
  77. package/dist/types/enums/user-usage-range.d.ts +0 -5
  78. package/dist/types/getAppcondaClient.d.ts +0 -2
  79. package/dist/types/getSDKForCurrentUser.d.ts +0 -33
  80. package/dist/types/id.d.ts +0 -20
  81. package/dist/types/index.d.ts +0 -39
  82. package/dist/types/inputFile.d.ts +0 -6
  83. package/dist/types/lib/Registry/Registry.d.ts +0 -38
  84. package/dist/types/lib/Registry/index.d.ts +0 -1
  85. package/dist/types/models.d.ts +0 -3272
  86. package/dist/types/permission.d.ts +0 -43
  87. package/dist/types/query.d.ts +0 -194
  88. package/dist/types/role.d.ts +0 -70
  89. package/dist/types/service-client.d.ts +0 -7
  90. package/dist/types/service.d.ts +0 -11
  91. package/dist/types/services/account.d.ts +0 -530
  92. package/dist/types/services/applets.d.ts +0 -9
  93. package/dist/types/services/avatars.d.ts +0 -115
  94. package/dist/types/services/community.d.ts +0 -19
  95. package/dist/types/services/configuration.d.ts +0 -5
  96. package/dist/types/services/databases.d.ts +0 -613
  97. package/dist/types/services/functions.d.ts +0 -319
  98. package/dist/types/services/graphql.d.ts +0 -25
  99. package/dist/types/services/health.d.ts +0 -231
  100. package/dist/types/services/locale.d.ts +0 -80
  101. package/dist/types/services/messaging.d.ts +0 -685
  102. package/dist/types/services/node.d.ts +0 -5
  103. package/dist/types/services/permissions.d.ts +0 -20
  104. package/dist/types/services/pricing.d.ts +0 -15
  105. package/dist/types/services/projects.d.ts +0 -542
  106. package/dist/types/services/roles.d.ts +0 -19
  107. package/dist/types/services/schema.d.ts +0 -17
  108. package/dist/types/services/storage.d.ts +0 -189
  109. package/dist/types/services/subscription.d.ts +0 -15
  110. package/dist/types/services/teams.d.ts +0 -167
  111. package/dist/types/services/tenant-subscription.d.ts +0 -12
  112. package/dist/types/services/tenant.d.ts +0 -32
  113. package/dist/types/services/users.d.ts +0 -499
  114. package/dist/types/services/waitlist.d.ts +0 -5
@@ -1,5 +0,0 @@
1
- export declare enum SmtpEncryption {
2
- None = "none",
3
- Ssl = "ssl",
4
- Tls = "tls"
5
- }
@@ -1,5 +0,0 @@
1
- export declare enum StorageUsageRange {
2
- TwentyFourHours = "24h",
3
- ThirtyDays = "30d",
4
- NinetyDays = "90d"
5
- }
@@ -1,11 +0,0 @@
1
- import { z } from "zod";
2
- export declare enum PricingModel {
3
- FLAT_RATE = 0,
4
- PER_SEAT = 1,
5
- USAGE_BASED = 2,
6
- FLAT_RATE_USAGE_BASED = 3,
7
- ONCE = 4,
8
- ALL = 5
9
- }
10
- export declare const ZPricingModel: z.ZodNativeEnum<typeof PricingModel>;
11
- export type TPricingModel = z.infer<typeof ZPricingModel>;
@@ -1,10 +0,0 @@
1
- import { z } from "zod";
2
- export declare enum SubscriptionBillingPeriod {
3
- ONCE = 0,
4
- DAILY = 1,
5
- WEEKLY = 2,
6
- MONTHLY = 3,
7
- YEARLY = 4
8
- }
9
- export declare const ZSubscriptionBillingPeriod: z.ZodNativeEnum<typeof SubscriptionBillingPeriod>;
10
- export type TSubscriptionBillingPeriod = z.infer<typeof ZSubscriptionBillingPeriod>;
@@ -1,10 +0,0 @@
1
- import { z } from "zod";
2
- export declare enum SubscriptionFeatureLimitType {
3
- NOT_INCLUDED = 0,
4
- INCLUDED = 1,
5
- MONTHLY = 2,
6
- MAX = 3,
7
- UNLIMITED = 4
8
- }
9
- export declare const ZSubscriptionFeatureLimitType: z.ZodNativeEnum<typeof SubscriptionFeatureLimitType>;
10
- export type TSubscriptionFeatureLimitType = z.infer<typeof ZSubscriptionFeatureLimitType>;
@@ -1,7 +0,0 @@
1
- import { z } from "zod";
2
- export declare enum SubscriptionPriceType {
3
- ONE_TIME = 0,
4
- RECURRING = 1
5
- }
6
- export declare const ZSubscriptionPriceType: z.ZodNativeEnum<typeof SubscriptionPriceType>;
7
- export type TSubscriptionPriceType = z.infer<typeof ZSubscriptionPriceType>;
@@ -1,5 +0,0 @@
1
- export declare enum LinkedAccountStatus {
2
- PENDING = 0,
3
- LINKED = 1,
4
- REJECTED = 2
5
- }
@@ -1,6 +0,0 @@
1
- export declare enum TenantUserJoined {
2
- CREATOR = 0,
3
- JOINED_BY_INVITATION = 1,
4
- JOINED_BY_LINK = 2,
5
- JOINED_BY_PUBLIC_URL = 3
6
- }
@@ -1,6 +0,0 @@
1
- export declare enum TenantUserStatus {
2
- PENDING_INVITATION = 0,
3
- PENDING_ACCEPTANCE = 1,
4
- ACTIVE = 2,
5
- INACTIVE = 3
6
- }
@@ -1,5 +0,0 @@
1
- export declare enum TenantUserType {
2
- OWNER = 0,
3
- ADMIN = 1,
4
- MEMBER = 2
5
- }
@@ -1,5 +0,0 @@
1
- export declare enum UserUsageRange {
2
- TwentyFourHours = "24h",
3
- ThirtyDays = "30d",
4
- NinetyDays = "90d"
5
- }
@@ -1,2 +0,0 @@
1
- import { Client } from "./client";
2
- export declare function getAppcondaClient(): Promise<Client>;
@@ -1,33 +0,0 @@
1
- import { Account } from "./services/account";
2
- import { Community } from "./services/community";
3
- import { Configuration } from "./services/configuration";
4
- import { Databases } from "./services/databases";
5
- import { Pricing } from "./services/pricing";
6
- import { Projects } from "./services/projects";
7
- import { Roles } from "./services/roles";
8
- import { Schemas } from "./services/schema";
9
- import { Subscription } from "./services/subscription";
10
- import { Teams } from "./services/teams";
11
- import { Tenant } from "./services/tenant";
12
- import { TenantSubscription } from "./services/tenant-subscription";
13
- import { Users } from "./services/users";
14
- import { Node } from "./services/node";
15
- import { Permissions } from "./services/permissions";
16
- export declare function getSDKForCurrentUser(): Promise<{
17
- currentUser: import("./models").Models.User<import("./models").Models.Preferences>;
18
- accounts: Account;
19
- databases: Databases;
20
- projects: Projects;
21
- users: Users;
22
- teams: Teams;
23
- tenants: Tenant;
24
- roles: Roles;
25
- permissions: Permissions;
26
- schemas: Schemas;
27
- community: Community;
28
- tenantSubscriptions: TenantSubscription;
29
- subscription: Subscription;
30
- pricing: Pricing;
31
- configuration: Configuration;
32
- node: Node;
33
- }>;
@@ -1,20 +0,0 @@
1
- /**
2
- * Helper class to generate ID strings for resources.
3
- */
4
- export declare class ID {
5
- #private;
6
- /**
7
- * Uses the provided ID as the ID for the resource.
8
- *
9
- * @param {string} id
10
- * @returns {string}
11
- */
12
- static custom(id: string): string;
13
- /**
14
- * Have Appconda generate a unique ID for you.
15
- *
16
- * @param {number} padding. Default is 7.
17
- * @returns {string}
18
- */
19
- static unique(padding?: number): string;
20
- }
@@ -1,39 +0,0 @@
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 { Waitlist } from './services/waitlist';
15
- export type { Models, Payload, UploadProgress } from './client';
16
- export type { QueryTypes, QueryTypesList } from './query';
17
- export { Permission } from './permission';
18
- export { Role } from './role';
19
- export { ID } from './id';
20
- export { AuthenticatorType } from './enums/authenticator-type';
21
- export { AuthenticationFactor } from './enums/authentication-factor';
22
- export { OAuthProvider } from './enums/o-auth-provider';
23
- export { Browser } from './enums/browser';
24
- export { CreditCard } from './enums/credit-card';
25
- export { Flag } from './enums/flag';
26
- export { RelationshipType } from './enums/relationship-type';
27
- export { RelationMutate } from './enums/relation-mutate';
28
- export { IndexType } from './enums/index-type';
29
- export { Runtime } from './enums/runtime';
30
- export { ExecutionMethod } from './enums/execution-method';
31
- export { Name } from './enums/name';
32
- export { SmtpEncryption } from './enums/smtp-encryption';
33
- export { Compression } from './enums/compression';
34
- export { ImageGravity } from './enums/image-gravity';
35
- export { ImageFormat } from './enums/image-format';
36
- export { PasswordHash } from './enums/password-hash';
37
- export { MessagingProviderType } from './enums/messaging-provider-type';
38
- export { getSDKForCurrentUser } from './getSDKForCurrentUser';
39
- export * from './actions';
@@ -1,6 +0,0 @@
1
- import type { BinaryLike } from "crypto";
2
- export declare class InputFile {
3
- static fromBuffer(parts: Blob | BinaryLike, name: string): File;
4
- static fromPath(path: string, name: string): File;
5
- static fromPlainText(content: string, name: string): File;
6
- }
@@ -1,38 +0,0 @@
1
- export declare class Registry {
2
- /**
3
- * List of all callbacks
4
- */
5
- protected callbacks: {
6
- [key: string]: () => any;
7
- };
8
- /**
9
- * List of all fresh resources
10
- */
11
- protected fresh: {
12
- [key: string]: boolean;
13
- };
14
- /**
15
- * List of all connections
16
- */
17
- protected registry: {
18
- [key: string]: {
19
- [key: string]: any;
20
- };
21
- };
22
- /**
23
- * Current context
24
- */
25
- protected _context: string;
26
- /**
27
- * Set a new connection callback
28
- */
29
- set(name: string, callback: () => any, fresh?: boolean): this;
30
- /**
31
- * If connection has been created returns it, otherwise create and then return it
32
- */
33
- get(name: string, fresh?: boolean): any;
34
- /**
35
- * Set the current context
36
- */
37
- context(name: string): this;
38
- }
@@ -1 +0,0 @@
1
- export * from './Registry';