@appconda/nextjs 1.0.16 → 1.0.18
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/package.json +1 -1
- package/types/Cache/Adapter.d.ts +10 -0
- package/types/Cache/Adapters/Filesystem.d.ts +16 -0
- package/types/Cache/Adapters/Memory.d.ts +18 -0
- package/types/Cache/Adapters/None.d.ts +12 -0
- package/types/Cache/Adapters/Redis.d.ts +14 -0
- package/types/Cache/Adapters/Sharding.d.ts +17 -0
- package/types/Cache/Cache.d.ts +16 -0
- package/types/Cache/index.d.ts +5 -0
- package/types/Cache/test.d.ts +0 -0
- package/types/Services.d.ts +6 -0
- package/types/actions/actionClient.d.ts +4 -0
- package/types/actions/index.d.ts +1 -0
- package/types/actions/nodes.d.ts +4 -0
- package/types/client.d.ts +141 -0
- package/types/decorators/Cache.d.ts +1 -0
- package/types/decorators/CacheKey.d.ts +1 -0
- package/types/decorators/Invalidate.d.ts +1 -0
- package/types/enums/api-service.d.ts +13 -0
- package/types/enums/api.d.ts +5 -0
- package/types/enums/auth-method.d.ts +9 -0
- package/types/enums/authentication-factor.d.ts +6 -0
- package/types/enums/authenticator-type.d.ts +3 -0
- package/types/enums/browser.d.ts +16 -0
- package/types/enums/compression.d.ts +5 -0
- package/types/enums/credit-card.d.ts +18 -0
- package/types/enums/database-usage-range.d.ts +5 -0
- package/types/enums/email-template-locale.d.ts +133 -0
- package/types/enums/email-template-type.d.ts +9 -0
- package/types/enums/entities/EntityLimitType.d.ts +4 -0
- package/types/enums/entities/PropertyAttributeName.d.ts +27 -0
- package/types/enums/entities/PropertyCondition.d.ts +7 -0
- package/types/enums/entities/PropertyType.d.ts +12 -0
- package/types/enums/entities/PropertyValueType.d.ts +6 -0
- package/types/enums/entities/RowAccess.d.ts +2 -0
- package/types/enums/entities/ViewFilterCondition.d.ts +12 -0
- package/types/enums/execution-method.d.ts +8 -0
- package/types/enums/flag.d.ts +197 -0
- package/types/enums/function-usage-range.d.ts +5 -0
- package/types/enums/image-format.d.ts +7 -0
- package/types/enums/image-gravity.d.ts +11 -0
- package/types/enums/index-type.d.ts +5 -0
- package/types/enums/messaging-provider-type.d.ts +5 -0
- package/types/enums/name.d.ts +14 -0
- package/types/enums/o-auth-provider copy.d.ts +41 -0
- package/types/enums/o-auth-provider.d.ts +41 -0
- package/types/enums/password-hash.d.ts +13 -0
- package/types/enums/platform-type.d.ts +17 -0
- package/types/enums/project-usage-range.d.ts +4 -0
- package/types/enums/region.d.ts +4 -0
- package/types/enums/relation-mutate.d.ts +5 -0
- package/types/enums/relationship-type.d.ts +6 -0
- package/types/enums/resource-type.d.ts +4 -0
- package/types/enums/runtime.d.ts +48 -0
- package/types/enums/s-m-t-p-secure.d.ts +3 -0
- package/types/enums/shared/ApplicationLayout.d.ts +4 -0
- package/types/enums/shared/Colors.d.ts +24 -0
- package/types/enums/shared/InputType.d.ts +6 -0
- package/types/enums/shared/Periodicity.d.ts +7 -0
- package/types/enums/shared/SvgIcon.d.ts +37 -0
- package/types/enums/shared/Theme.d.ts +4 -0
- package/types/enums/sms-template-locale.d.ts +133 -0
- package/types/enums/sms-template-type.d.ts +6 -0
- package/types/enums/smtp-encryption.d.ts +5 -0
- package/types/enums/storage-usage-range.d.ts +5 -0
- package/types/enums/subscriptions/PricingModel.d.ts +11 -0
- package/types/enums/subscriptions/SubscriptionBillingPeriod.d.ts +10 -0
- package/types/enums/subscriptions/SubscriptionFeatureLimitType.d.ts +10 -0
- package/types/enums/subscriptions/SubscriptionPriceType.d.ts +7 -0
- package/types/enums/tenants/LinkedAccountStatus.d.ts +5 -0
- package/types/enums/tenants/TenantUserJoined.d.ts +6 -0
- package/types/enums/tenants/TenantUserStatus.d.ts +6 -0
- package/types/enums/tenants/TenantUserType.d.ts +5 -0
- package/types/enums/user-usage-range.d.ts +5 -0
- package/types/getAppcondaClient.d.ts +2 -0
- package/types/getSDKForCurrentUser.d.ts +33 -0
- package/types/id.d.ts +20 -0
- package/types/index.d.ts +39 -0
- package/types/inputFile.d.ts +6 -0
- package/types/lib/Registry/Registry.d.ts +38 -0
- package/types/lib/Registry/index.d.ts +1 -0
- package/types/models.d.ts +3272 -0
- package/types/permission.d.ts +43 -0
- package/types/query.d.ts +194 -0
- package/types/role.d.ts +70 -0
- package/types/service-client.d.ts +7 -0
- package/types/service.d.ts +11 -0
- package/types/services/account.d.ts +530 -0
- package/types/services/acl.d.ts +28 -0
- package/types/services/applets.d.ts +9 -0
- package/types/services/assistant.d.ts +14 -0
- package/types/services/avatars.d.ts +115 -0
- package/types/services/community.d.ts +19 -0
- package/types/services/configuration.d.ts +5 -0
- package/types/services/console.d.ts +15 -0
- package/types/services/databases.d.ts +613 -0
- package/types/services/functions.d.ts +319 -0
- package/types/services/graphql.d.ts +25 -0
- package/types/services/health.d.ts +231 -0
- package/types/services/locale.d.ts +80 -0
- package/types/services/messaging.d.ts +685 -0
- package/types/services/migrations.d.ts +185 -0
- package/types/services/node.d.ts +5 -0
- package/types/services/permissions.d.ts +20 -0
- package/types/services/pricing.d.ts +15 -0
- package/types/services/project.d.ts +70 -0
- package/types/services/projects.d.ts +542 -0
- package/types/services/proxy.d.ts +59 -0
- package/types/services/roles.d.ts +19 -0
- package/types/services/schema.d.ts +17 -0
- package/types/services/storage.d.ts +189 -0
- package/types/services/subscription-product.d.ts +77 -0
- package/types/services/subscription.d.ts +15 -0
- package/types/services/teams.d.ts +167 -0
- package/types/services/tenant-subscription.d.ts +12 -0
- package/types/services/tenant.d.ts +32 -0
- package/types/services/users.d.ts +499 -0
- package/types/services/vcs.d.ts +108 -0
- package/types/services/waitlist.d.ts +5 -0
@@ -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
|
+
}>;
|
package/types/id.d.ts
ADDED
@@ -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
|
+
}
|
package/types/index.d.ts
ADDED
@@ -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';
|