@appconda/nextjs 1.0.18 → 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.
- package/dist/Cache/Adapter.js +1 -0
- package/dist/Cache/Adapters/Filesystem.js +102 -0
- package/dist/Cache/Adapters/Memory.js +46 -0
- package/dist/Cache/Adapters/None.js +27 -0
- package/dist/Cache/Adapters/Redis.js +79 -0
- package/dist/Cache/Adapters/Sharding.js +72 -0
- package/dist/Cache/Cache.js +51 -0
- package/dist/Cache/index.js +5 -0
- package/dist/Cache/test.js +0 -0
- package/dist/Services.js +28 -0
- package/dist/actions/actionClient.js +35 -0
- package/dist/actions/index.js +1 -0
- package/dist/actions/nodes.js +9 -0
- package/dist/client.js +334 -0
- package/dist/decorators/Cache.js +78 -0
- package/dist/decorators/CacheKey.js +8 -0
- package/dist/decorators/Invalidate.js +46 -0
- package/dist/enums/api-service.js +14 -0
- package/dist/enums/api.js +6 -0
- package/dist/enums/auth-method.js +10 -0
- package/dist/enums/authentication-factor.js +7 -0
- package/dist/enums/authenticator-type.js +4 -0
- package/dist/enums/browser.js +17 -0
- package/dist/enums/compression.js +6 -0
- package/dist/enums/credit-card.js +19 -0
- package/dist/enums/database-usage-range.js +6 -0
- package/dist/enums/email-template-locale.js +134 -0
- package/dist/enums/email-template-type.js +10 -0
- package/dist/enums/entities/EntityLimitType.js +5 -0
- package/dist/enums/entities/PropertyAttributeName.js +28 -0
- package/dist/enums/entities/PropertyCondition.js +9 -0
- package/dist/enums/entities/PropertyType.js +17 -0
- package/dist/enums/entities/PropertyValueType.js +7 -0
- package/dist/enums/entities/RowAccess.js +1 -0
- package/dist/enums/entities/ViewFilterCondition.js +13 -0
- package/dist/enums/execution-method.js +9 -0
- package/dist/enums/flag.js +198 -0
- package/dist/enums/function-usage-range.js +6 -0
- package/dist/enums/image-format.js +8 -0
- package/dist/enums/image-gravity.js +12 -0
- package/dist/enums/index-type.js +6 -0
- package/dist/enums/messaging-provider-type.js +6 -0
- package/dist/enums/name.js +15 -0
- package/dist/enums/o-auth-provider copy.js +42 -0
- package/dist/enums/o-auth-provider.js +42 -0
- package/dist/enums/password-hash.js +14 -0
- package/dist/enums/platform-type.js +18 -0
- package/dist/enums/project-usage-range.js +5 -0
- package/dist/enums/region.js +5 -0
- package/dist/enums/relation-mutate.js +6 -0
- package/dist/enums/relationship-type.js +7 -0
- package/dist/enums/resource-type.js +5 -0
- package/dist/enums/runtime.js +49 -0
- package/dist/enums/s-m-t-p-secure.js +4 -0
- package/dist/enums/shared/ApplicationLayout.js +5 -0
- package/dist/enums/shared/Colors.js +25 -0
- package/dist/enums/shared/InputType.js +7 -0
- package/dist/enums/shared/Periodicity.js +8 -0
- package/dist/enums/shared/SvgIcon.js +38 -0
- package/dist/enums/shared/Theme.js +5 -0
- package/dist/enums/sms-template-locale.js +134 -0
- package/dist/enums/sms-template-type.js +7 -0
- package/dist/enums/smtp-encryption.js +6 -0
- package/dist/enums/storage-usage-range.js +6 -0
- package/dist/enums/subscriptions/PricingModel.js +11 -0
- package/dist/enums/subscriptions/SubscriptionBillingPeriod.js +10 -0
- package/dist/enums/subscriptions/SubscriptionFeatureLimitType.js +12 -0
- package/dist/enums/subscriptions/SubscriptionPriceType.js +7 -0
- package/dist/enums/tenants/LinkedAccountStatus.js +6 -0
- package/dist/enums/tenants/TenantUserJoined.js +7 -0
- package/dist/enums/tenants/TenantUserStatus.js +7 -0
- package/dist/enums/tenants/TenantUserType.js +6 -0
- package/dist/enums/user-usage-range.js +6 -0
- package/dist/getAppcondaClient.js +42 -0
- package/dist/getSDKForCurrentUser.js +62 -0
- package/dist/id.js +44 -0
- package/dist/iife/sdk.js +7063 -7805
- package/dist/index.js +12558 -0
- package/dist/index.js.map +1 -0
- package/dist/inputFile.js +16 -0
- package/dist/lib/Registry/Registry.js +55 -0
- package/dist/lib/Registry/index.js +1 -0
- package/dist/models.js +1 -0
- package/dist/permission.js +53 -0
- package/dist/query.js +203 -0
- package/dist/role.js +93 -0
- package/dist/service-client.js +13 -0
- package/dist/service.js +22 -0
- package/dist/services/account.js +1259 -0
- package/dist/services/applets.js +39 -0
- package/dist/services/avatars.js +250 -0
- package/dist/services/community.js +68 -0
- package/dist/services/configuration.js +10 -0
- package/dist/services/databases.js +1735 -0
- package/dist/services/functions.js +809 -0
- package/dist/services/graphql.js +56 -0
- package/dist/services/health.js +462 -0
- package/dist/services/locale.js +143 -0
- package/dist/services/messaging.js +1919 -0
- package/dist/services/node.js +10 -0
- package/dist/services/permissions.js +89 -0
- package/dist/services/pricing.js +20 -0
- package/dist/services/projects.js +1525 -0
- package/dist/services/roles.js +71 -0
- package/dist/services/schema.js +47 -0
- package/dist/services/storage.js +473 -0
- package/dist/services/subscription.js +45 -0
- package/dist/services/teams.js +394 -0
- package/dist/services/tenant-subscription.js +51 -0
- package/dist/services/tenant.js +124 -0
- package/dist/services/users.js +1282 -0
- package/dist/services/waitlist.js +11 -0
- package/dist/types/Cache/Adapter.d.ts +10 -0
- package/dist/types/Cache/Adapters/Filesystem.d.ts +16 -0
- package/dist/types/Cache/Adapters/Memory.d.ts +18 -0
- package/dist/types/Cache/Adapters/None.d.ts +12 -0
- package/dist/types/Cache/Adapters/Redis.d.ts +14 -0
- package/dist/types/Cache/Adapters/Sharding.d.ts +17 -0
- package/dist/types/Cache/Cache.d.ts +16 -0
- package/dist/types/Cache/index.d.ts +5 -0
- package/dist/types/Cache/test.d.ts +0 -0
- package/dist/types/Services.d.ts +6 -0
- package/dist/types/actions/actionClient.d.ts +4 -0
- package/dist/types/actions/index.d.ts +1 -0
- package/dist/types/actions/nodes.d.ts +4 -0
- package/dist/types/client.d.ts +141 -0
- package/dist/types/decorators/Cache.d.ts +1 -0
- package/dist/types/decorators/CacheKey.d.ts +1 -0
- package/dist/types/decorators/Invalidate.d.ts +1 -0
- package/dist/types/enums/api-service.d.ts +13 -0
- package/dist/types/enums/api.d.ts +5 -0
- package/dist/types/enums/auth-method.d.ts +9 -0
- package/dist/types/enums/authentication-factor.d.ts +6 -0
- package/dist/types/enums/authenticator-type.d.ts +3 -0
- package/dist/types/enums/browser.d.ts +16 -0
- package/dist/types/enums/compression.d.ts +5 -0
- package/dist/types/enums/credit-card.d.ts +18 -0
- package/dist/types/enums/database-usage-range.d.ts +5 -0
- package/dist/types/enums/email-template-locale.d.ts +133 -0
- package/dist/types/enums/email-template-type.d.ts +9 -0
- package/dist/types/enums/entities/EntityLimitType.d.ts +4 -0
- package/dist/types/enums/entities/PropertyAttributeName.d.ts +27 -0
- package/dist/types/enums/entities/PropertyCondition.d.ts +7 -0
- package/dist/types/enums/entities/PropertyType.d.ts +12 -0
- package/dist/types/enums/entities/PropertyValueType.d.ts +6 -0
- package/dist/types/enums/entities/RowAccess.d.ts +2 -0
- package/dist/types/enums/entities/ViewFilterCondition.d.ts +12 -0
- package/dist/types/enums/execution-method.d.ts +8 -0
- package/dist/types/enums/flag.d.ts +197 -0
- package/dist/types/enums/function-usage-range.d.ts +5 -0
- package/dist/types/enums/image-format.d.ts +7 -0
- package/dist/types/enums/image-gravity.d.ts +11 -0
- package/dist/types/enums/index-type.d.ts +5 -0
- package/dist/types/enums/messaging-provider-type.d.ts +5 -0
- package/dist/types/enums/name.d.ts +14 -0
- package/dist/types/enums/o-auth-provider copy.d.ts +41 -0
- package/dist/types/enums/o-auth-provider.d.ts +41 -0
- package/dist/types/enums/password-hash.d.ts +13 -0
- package/dist/types/enums/platform-type.d.ts +17 -0
- package/dist/types/enums/project-usage-range.d.ts +4 -0
- package/dist/types/enums/region.d.ts +4 -0
- package/dist/types/enums/relation-mutate.d.ts +5 -0
- package/dist/types/enums/relationship-type.d.ts +6 -0
- package/dist/types/enums/resource-type.d.ts +4 -0
- package/dist/types/enums/runtime.d.ts +48 -0
- package/dist/types/enums/s-m-t-p-secure.d.ts +3 -0
- package/dist/types/enums/shared/ApplicationLayout.d.ts +4 -0
- package/dist/types/enums/shared/Colors.d.ts +24 -0
- package/dist/types/enums/shared/InputType.d.ts +6 -0
- package/dist/types/enums/shared/Periodicity.d.ts +7 -0
- package/dist/types/enums/shared/SvgIcon.d.ts +37 -0
- package/dist/types/enums/shared/Theme.d.ts +4 -0
- package/dist/types/enums/sms-template-locale.d.ts +133 -0
- package/dist/types/enums/sms-template-type.d.ts +6 -0
- package/dist/types/enums/smtp-encryption.d.ts +5 -0
- package/dist/types/enums/storage-usage-range.d.ts +5 -0
- package/dist/types/enums/subscriptions/PricingModel.d.ts +11 -0
- package/dist/types/enums/subscriptions/SubscriptionBillingPeriod.d.ts +10 -0
- package/dist/types/enums/subscriptions/SubscriptionFeatureLimitType.d.ts +10 -0
- package/dist/types/enums/subscriptions/SubscriptionPriceType.d.ts +7 -0
- package/dist/types/enums/tenants/LinkedAccountStatus.d.ts +5 -0
- package/dist/types/enums/tenants/TenantUserJoined.d.ts +6 -0
- package/dist/types/enums/tenants/TenantUserStatus.d.ts +6 -0
- package/dist/types/enums/tenants/TenantUserType.d.ts +5 -0
- package/dist/types/enums/user-usage-range.d.ts +5 -0
- package/dist/types/getAppcondaClient.d.ts +2 -0
- package/dist/types/getSDKForCurrentUser.d.ts +33 -0
- package/dist/types/id.d.ts +20 -0
- package/dist/types/index.d.ts +39 -0
- package/dist/types/inputFile.d.ts +6 -0
- package/dist/types/lib/Registry/Registry.d.ts +38 -0
- package/dist/types/lib/Registry/index.d.ts +1 -0
- package/dist/types/models.d.ts +3272 -0
- package/dist/types/permission.d.ts +43 -0
- package/dist/types/query.d.ts +194 -0
- package/dist/types/role.d.ts +70 -0
- package/dist/types/service-client.d.ts +7 -0
- package/dist/types/service.d.ts +11 -0
- package/dist/types/services/account.d.ts +530 -0
- package/dist/types/services/applets.d.ts +9 -0
- package/dist/types/services/avatars.d.ts +115 -0
- package/dist/types/services/community.d.ts +19 -0
- package/dist/types/services/configuration.d.ts +5 -0
- package/dist/types/services/databases.d.ts +613 -0
- package/dist/types/services/functions.d.ts +319 -0
- package/dist/types/services/graphql.d.ts +25 -0
- package/dist/types/services/health.d.ts +231 -0
- package/dist/types/services/locale.d.ts +80 -0
- package/dist/types/services/messaging.d.ts +685 -0
- package/dist/types/services/node.d.ts +5 -0
- package/dist/types/services/permissions.d.ts +20 -0
- package/dist/types/services/pricing.d.ts +15 -0
- package/dist/types/services/projects.d.ts +542 -0
- package/dist/types/services/roles.d.ts +19 -0
- package/dist/types/services/schema.d.ts +17 -0
- package/dist/types/services/storage.d.ts +189 -0
- package/dist/types/services/subscription.d.ts +15 -0
- package/dist/types/services/teams.d.ts +167 -0
- package/dist/types/services/tenant-subscription.d.ts +12 -0
- package/dist/types/services/tenant.d.ts +32 -0
- package/dist/types/services/users.d.ts +499 -0
- package/dist/types/services/waitlist.d.ts +5 -0
- package/package.json +5 -12
- package/tsconfig.json +4 -2
- package/dist/cjs/sdk.js +0 -13300
- package/dist/cjs/sdk.js.map +0 -1
- package/dist/esm/sdk.js +0 -13278
- package/dist/esm/sdk.js.map +0 -1
@@ -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,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,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';
|