@appconda/nextjs 1.0.19 → 1.0.20

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 (112) hide show
  1. package/dist/types/Cache/Adapter.d.ts +10 -0
  2. package/dist/types/Cache/Adapters/Filesystem.d.ts +16 -0
  3. package/dist/types/Cache/Adapters/Memory.d.ts +18 -0
  4. package/dist/types/Cache/Adapters/None.d.ts +12 -0
  5. package/dist/types/Cache/Adapters/Redis.d.ts +14 -0
  6. package/dist/types/Cache/Adapters/Sharding.d.ts +17 -0
  7. package/dist/types/Cache/Cache.d.ts +16 -0
  8. package/dist/types/Cache/index.d.ts +5 -0
  9. package/dist/types/Cache/test.d.ts +0 -0
  10. package/dist/types/Services.d.ts +6 -0
  11. package/dist/types/actions/actionClient.d.ts +4 -0
  12. package/dist/types/actions/index.d.ts +1 -0
  13. package/dist/types/actions/nodes.d.ts +4 -0
  14. package/dist/types/client.d.ts +141 -0
  15. package/dist/types/decorators/Cache.d.ts +1 -0
  16. package/dist/types/decorators/CacheKey.d.ts +1 -0
  17. package/dist/types/decorators/Invalidate.d.ts +1 -0
  18. package/dist/types/enums/api-service.d.ts +13 -0
  19. package/dist/types/enums/api.d.ts +5 -0
  20. package/dist/types/enums/auth-method.d.ts +9 -0
  21. package/dist/types/enums/authentication-factor.d.ts +6 -0
  22. package/dist/types/enums/authenticator-type.d.ts +3 -0
  23. package/dist/types/enums/browser.d.ts +16 -0
  24. package/dist/types/enums/compression.d.ts +5 -0
  25. package/dist/types/enums/credit-card.d.ts +18 -0
  26. package/dist/types/enums/database-usage-range.d.ts +5 -0
  27. package/dist/types/enums/email-template-locale.d.ts +133 -0
  28. package/dist/types/enums/email-template-type.d.ts +9 -0
  29. package/dist/types/enums/entities/EntityLimitType.d.ts +4 -0
  30. package/dist/types/enums/entities/PropertyAttributeName.d.ts +27 -0
  31. package/dist/types/enums/entities/PropertyCondition.d.ts +7 -0
  32. package/dist/types/enums/entities/PropertyType.d.ts +12 -0
  33. package/dist/types/enums/entities/PropertyValueType.d.ts +6 -0
  34. package/dist/types/enums/entities/RowAccess.d.ts +2 -0
  35. package/dist/types/enums/entities/ViewFilterCondition.d.ts +12 -0
  36. package/dist/types/enums/execution-method.d.ts +8 -0
  37. package/dist/types/enums/flag.d.ts +197 -0
  38. package/dist/types/enums/function-usage-range.d.ts +5 -0
  39. package/dist/types/enums/image-format.d.ts +7 -0
  40. package/dist/types/enums/image-gravity.d.ts +11 -0
  41. package/dist/types/enums/index-type.d.ts +5 -0
  42. package/dist/types/enums/messaging-provider-type.d.ts +5 -0
  43. package/dist/types/enums/name.d.ts +14 -0
  44. package/dist/types/enums/o-auth-provider copy.d.ts +41 -0
  45. package/dist/types/enums/o-auth-provider.d.ts +41 -0
  46. package/dist/types/enums/password-hash.d.ts +13 -0
  47. package/dist/types/enums/platform-type.d.ts +17 -0
  48. package/dist/types/enums/project-usage-range.d.ts +4 -0
  49. package/dist/types/enums/region.d.ts +4 -0
  50. package/dist/types/enums/relation-mutate.d.ts +5 -0
  51. package/dist/types/enums/relationship-type.d.ts +6 -0
  52. package/dist/types/enums/resource-type.d.ts +4 -0
  53. package/dist/types/enums/runtime.d.ts +48 -0
  54. package/dist/types/enums/s-m-t-p-secure.d.ts +3 -0
  55. package/dist/types/enums/shared/ApplicationLayout.d.ts +4 -0
  56. package/dist/types/enums/shared/Colors.d.ts +24 -0
  57. package/dist/types/enums/shared/InputType.d.ts +6 -0
  58. package/dist/types/enums/shared/Periodicity.d.ts +7 -0
  59. package/dist/types/enums/shared/SvgIcon.d.ts +37 -0
  60. package/dist/types/enums/shared/Theme.d.ts +4 -0
  61. package/dist/types/enums/sms-template-locale.d.ts +133 -0
  62. package/dist/types/enums/sms-template-type.d.ts +6 -0
  63. package/dist/types/enums/smtp-encryption.d.ts +5 -0
  64. package/dist/types/enums/storage-usage-range.d.ts +5 -0
  65. package/dist/types/enums/subscriptions/PricingModel.d.ts +11 -0
  66. package/dist/types/enums/subscriptions/SubscriptionBillingPeriod.d.ts +10 -0
  67. package/dist/types/enums/subscriptions/SubscriptionFeatureLimitType.d.ts +10 -0
  68. package/dist/types/enums/subscriptions/SubscriptionPriceType.d.ts +7 -0
  69. package/dist/types/enums/tenants/LinkedAccountStatus.d.ts +5 -0
  70. package/dist/types/enums/tenants/TenantUserJoined.d.ts +6 -0
  71. package/dist/types/enums/tenants/TenantUserStatus.d.ts +6 -0
  72. package/dist/types/enums/tenants/TenantUserType.d.ts +5 -0
  73. package/dist/types/enums/user-usage-range.d.ts +5 -0
  74. package/dist/types/getAppcondaClient.d.ts +2 -0
  75. package/dist/types/getSDKForCurrentUser.d.ts +33 -0
  76. package/dist/types/id.d.ts +20 -0
  77. package/dist/types/index.d.ts +39 -0
  78. package/dist/types/inputFile.d.ts +6 -0
  79. package/dist/types/lib/Registry/Registry.d.ts +38 -0
  80. package/dist/types/lib/Registry/index.d.ts +1 -0
  81. package/dist/types/models.d.ts +3272 -0
  82. package/dist/types/permission.d.ts +43 -0
  83. package/dist/types/query.d.ts +194 -0
  84. package/dist/types/role.d.ts +70 -0
  85. package/dist/types/service-client.d.ts +7 -0
  86. package/dist/types/service.d.ts +11 -0
  87. package/dist/types/services/account.d.ts +530 -0
  88. package/dist/types/services/applets.d.ts +9 -0
  89. package/dist/types/services/avatars.d.ts +115 -0
  90. package/dist/types/services/community.d.ts +19 -0
  91. package/dist/types/services/configuration.d.ts +5 -0
  92. package/dist/types/services/databases.d.ts +613 -0
  93. package/dist/types/services/functions.d.ts +319 -0
  94. package/dist/types/services/graphql.d.ts +25 -0
  95. package/dist/types/services/health.d.ts +231 -0
  96. package/dist/types/services/locale.d.ts +80 -0
  97. package/dist/types/services/messaging.d.ts +685 -0
  98. package/dist/types/services/node.d.ts +5 -0
  99. package/dist/types/services/permissions.d.ts +20 -0
  100. package/dist/types/services/pricing.d.ts +15 -0
  101. package/dist/types/services/projects.d.ts +542 -0
  102. package/dist/types/services/roles.d.ts +19 -0
  103. package/dist/types/services/schema.d.ts +17 -0
  104. package/dist/types/services/storage.d.ts +189 -0
  105. package/dist/types/services/subscription.d.ts +15 -0
  106. package/dist/types/services/teams.d.ts +167 -0
  107. package/dist/types/services/tenant-subscription.d.ts +12 -0
  108. package/dist/types/services/tenant.d.ts +32 -0
  109. package/dist/types/services/users.d.ts +499 -0
  110. package/dist/types/services/waitlist.d.ts +5 -0
  111. package/package.json +2 -2
  112. package/tsconfig.json +2 -1
@@ -0,0 +1,5 @@
1
+ export declare enum SmtpEncryption {
2
+ None = "none",
3
+ Ssl = "ssl",
4
+ Tls = "tls"
5
+ }
@@ -0,0 +1,5 @@
1
+ export declare enum StorageUsageRange {
2
+ TwentyFourHours = "24h",
3
+ ThirtyDays = "30d",
4
+ NinetyDays = "90d"
5
+ }
@@ -0,0 +1,11 @@
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>;
@@ -0,0 +1,10 @@
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>;
@@ -0,0 +1,10 @@
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>;
@@ -0,0 +1,7 @@
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>;
@@ -0,0 +1,5 @@
1
+ export declare enum LinkedAccountStatus {
2
+ PENDING = 0,
3
+ LINKED = 1,
4
+ REJECTED = 2
5
+ }
@@ -0,0 +1,6 @@
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
+ }
@@ -0,0 +1,6 @@
1
+ export declare enum TenantUserStatus {
2
+ PENDING_INVITATION = 0,
3
+ PENDING_ACCEPTANCE = 1,
4
+ ACTIVE = 2,
5
+ INACTIVE = 3
6
+ }
@@ -0,0 +1,5 @@
1
+ export declare enum TenantUserType {
2
+ OWNER = 0,
3
+ ADMIN = 1,
4
+ MEMBER = 2
5
+ }
@@ -0,0 +1,5 @@
1
+ export declare enum UserUsageRange {
2
+ TwentyFourHours = "24h",
3
+ ThirtyDays = "30d",
4
+ NinetyDays = "90d"
5
+ }
@@ -0,0 +1,2 @@
1
+ import { Client } from "./client";
2
+ export declare function getAppcondaClient(): Promise<Client>;
@@ -0,0 +1,33 @@
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
+ }>;
@@ -0,0 +1,20 @@
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
+ }
@@ -0,0 +1,39 @@
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';
@@ -0,0 +1,6 @@
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
+ }
@@ -0,0 +1,38 @@
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
+ }
@@ -0,0 +1 @@
1
+ export * from './Registry';