@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.
- package/dist/actions/actionClient.d.ts +1 -1
- package/dist/actions/actionClient.js +3 -6
- package/dist/actions/index.js +1 -17
- package/dist/actions/nodes.d.ts +1 -1
- package/dist/actions/nodes.js +4 -7
- package/dist/client.js +33 -39
- package/dist/decorators/Cache.js +4 -7
- package/dist/decorators/CacheKey.js +1 -4
- package/dist/decorators/Invalidate.js +4 -7
- package/dist/enums/api-service.js +2 -5
- package/dist/enums/api.js +2 -5
- package/dist/enums/auth-method.js +2 -5
- package/dist/enums/authentication-factor.js +2 -5
- package/dist/enums/authenticator-type.js +2 -5
- package/dist/enums/browser.js +2 -5
- package/dist/enums/compression.js +2 -5
- package/dist/enums/credit-card.js +2 -5
- package/dist/enums/database-usage-range.js +2 -5
- package/dist/enums/email-template-locale.js +2 -5
- package/dist/enums/email-template-type.js +2 -5
- package/dist/enums/entities/EntityLimitType.js +2 -5
- package/dist/enums/entities/PropertyAttributeName.js +2 -5
- package/dist/enums/entities/PropertyCondition.js +2 -5
- package/dist/enums/entities/PropertyType.js +2 -5
- package/dist/enums/entities/PropertyValueType.js +2 -5
- package/dist/enums/entities/RowAccess.js +1 -4
- package/dist/enums/entities/ViewFilterCondition.js +2 -5
- package/dist/enums/execution-method.js +2 -5
- package/dist/enums/flag.js +2 -5
- package/dist/enums/function-usage-range.js +2 -5
- package/dist/enums/image-format.js +2 -5
- package/dist/enums/image-gravity.js +2 -5
- package/dist/enums/index-type.js +2 -5
- package/dist/enums/messaging-provider-type.js +2 -5
- package/dist/enums/name.js +2 -5
- package/dist/enums/o-auth-provider copy.js +2 -5
- package/dist/enums/o-auth-provider.js +2 -5
- package/dist/enums/password-hash.js +2 -5
- package/dist/enums/platform-type.js +2 -5
- package/dist/enums/project-usage-range.js +2 -5
- package/dist/enums/region.js +2 -5
- package/dist/enums/relation-mutate.js +2 -5
- package/dist/enums/relationship-type.js +2 -5
- package/dist/enums/resource-type.js +2 -5
- package/dist/enums/runtime.js +2 -5
- package/dist/enums/s-m-t-p-secure.js +2 -5
- package/dist/enums/shared/ApplicationLayout.js +2 -5
- package/dist/enums/shared/Colors.js +2 -5
- package/dist/enums/shared/InputType.js +2 -5
- package/dist/enums/shared/Periodicity.js +2 -5
- package/dist/enums/shared/SvgIcon.js +2 -5
- package/dist/enums/shared/Theme.js +2 -5
- package/dist/enums/sms-template-locale.js +2 -5
- package/dist/enums/sms-template-type.js +2 -5
- package/dist/enums/smtp-encryption.js +2 -5
- package/dist/enums/storage-usage-range.js +2 -5
- package/dist/enums/subscriptions/PricingModel.js +4 -7
- package/dist/enums/subscriptions/SubscriptionBillingPeriod.js +4 -7
- package/dist/enums/subscriptions/SubscriptionFeatureLimitType.js +4 -7
- package/dist/enums/subscriptions/SubscriptionPriceType.js +4 -7
- package/dist/enums/tenants/LinkedAccountStatus.js +2 -5
- package/dist/enums/tenants/TenantUserJoined.js +2 -5
- package/dist/enums/tenants/TenantUserStatus.js +2 -5
- package/dist/enums/tenants/TenantUserType.js +2 -5
- package/dist/enums/user-usage-range.js +2 -5
- package/dist/getAppcondaClient.js +3 -6
- package/dist/getSDKForCurrentUser.js +37 -40
- package/dist/id.js +16 -20
- package/dist/index.js +37 -91
- package/dist/inputFile.js +6 -10
- package/dist/lib/Cache/Adapter.js +1 -2
- package/dist/lib/Cache/Adapters/Filesystem.js +2 -6
- package/dist/lib/Cache/Adapters/Memory.js +4 -7
- package/dist/lib/Cache/Adapters/None.js +1 -5
- package/dist/lib/Cache/Adapters/Sharding.js +14 -19
- package/dist/lib/Cache/Cache.js +2 -7
- package/dist/lib/Cache/index.js +4 -20
- package/dist/lib/Cache/test.d.ts +0 -1
- package/dist/lib/Cache/test.js +0 -2
- package/dist/lib/Registry/Registry.js +21 -23
- package/dist/lib/Registry/index.js +1 -17
- package/dist/lib/Services.js +8 -12
- package/dist/models.js +1 -2
- package/dist/modules/index.js +1 -17
- package/dist/modules/waitlist/action.d.ts +3 -3
- package/dist/modules/waitlist/action.js +11 -14
- package/dist/modules/waitlist/index.js +3 -19
- package/dist/modules/waitlist/schema.js +5 -8
- package/dist/modules/waitlist/service.js +2 -6
- package/dist/modules/waitlist/types.js +1 -2
- package/dist/permission.js +49 -53
- package/dist/query.js +168 -175
- package/dist/role.js +1 -5
- package/dist/schemas/nodes.d.ts +0 -1
- package/dist/schemas/nodes.js +0 -2
- package/dist/service-client.js +1 -6
- package/dist/service.js +5 -10
- package/dist/services/account.js +58 -63
- package/dist/services/applets.js +4 -9
- package/dist/services/avatars.js +8 -13
- package/dist/services/community.js +5 -10
- package/dist/services/configuration.js +2 -6
- package/dist/services/databases.js +150 -155
- package/dist/services/functions.js +42 -47
- package/dist/services/graphql.js +4 -9
- package/dist/services/health.js +3 -8
- package/dist/services/locale.js +1 -6
- package/dist/services/messaging.js +66 -71
- package/dist/services/node.js +4 -8
- package/dist/services/permissions.js +7 -12
- package/dist/services/pricing.js +2 -6
- package/dist/services/projects.js +113 -118
- package/dist/services/roles.js +6 -11
- package/dist/services/schema.js +5 -10
- package/dist/services/storage.js +24 -29
- package/dist/services/subscription.js +2 -6
- package/dist/services/teams.js +25 -30
- package/dist/services/tenant-subscription.js +5 -10
- package/dist/services/tenant.js +9 -13
- package/dist/services/users.js +82 -87
- package/package.json +1 -1
- package/tsconfig.json +2 -3
package/dist/enums/name.js
CHANGED
@@ -1,7 +1,4 @@
|
|
1
|
-
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.Name = void 0;
|
4
|
-
var Name;
|
1
|
+
export var Name;
|
5
2
|
(function (Name) {
|
6
3
|
Name["V1database"] = "v1-database";
|
7
4
|
Name["V1deletes"] = "v1-deletes";
|
@@ -15,4 +12,4 @@ var Name;
|
|
15
12
|
Name["V1builds"] = "v1-builds";
|
16
13
|
Name["V1messaging"] = "v1-messaging";
|
17
14
|
Name["V1migrations"] = "v1-migrations";
|
18
|
-
})(Name || (
|
15
|
+
})(Name || (Name = {}));
|
@@ -1,7 +1,4 @@
|
|
1
|
-
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.OAuthProvider = void 0;
|
4
|
-
var OAuthProvider;
|
1
|
+
export var OAuthProvider;
|
5
2
|
(function (OAuthProvider) {
|
6
3
|
OAuthProvider["Amazon"] = "amazon";
|
7
4
|
OAuthProvider["Apple"] = "apple";
|
@@ -42,4 +39,4 @@ var OAuthProvider;
|
|
42
39
|
OAuthProvider["Zoho"] = "zoho";
|
43
40
|
OAuthProvider["Zoom"] = "zoom";
|
44
41
|
OAuthProvider["Mock"] = "mock";
|
45
|
-
})(OAuthProvider || (
|
42
|
+
})(OAuthProvider || (OAuthProvider = {}));
|
@@ -1,7 +1,4 @@
|
|
1
|
-
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.OAuthProvider = void 0;
|
4
|
-
var OAuthProvider;
|
1
|
+
export var OAuthProvider;
|
5
2
|
(function (OAuthProvider) {
|
6
3
|
OAuthProvider["Amazon"] = "amazon";
|
7
4
|
OAuthProvider["Apple"] = "apple";
|
@@ -42,4 +39,4 @@ var OAuthProvider;
|
|
42
39
|
OAuthProvider["Zoho"] = "zoho";
|
43
40
|
OAuthProvider["Zoom"] = "zoom";
|
44
41
|
OAuthProvider["Mock"] = "mock";
|
45
|
-
})(OAuthProvider || (
|
42
|
+
})(OAuthProvider || (OAuthProvider = {}));
|
@@ -1,7 +1,4 @@
|
|
1
|
-
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.PasswordHash = void 0;
|
4
|
-
var PasswordHash;
|
1
|
+
export var PasswordHash;
|
5
2
|
(function (PasswordHash) {
|
6
3
|
PasswordHash["Sha1"] = "sha1";
|
7
4
|
PasswordHash["Sha224"] = "sha224";
|
@@ -14,4 +11,4 @@ var PasswordHash;
|
|
14
11
|
PasswordHash["Sha3256"] = "sha3-256";
|
15
12
|
PasswordHash["Sha3384"] = "sha3-384";
|
16
13
|
PasswordHash["Sha3512"] = "sha3-512";
|
17
|
-
})(PasswordHash || (
|
14
|
+
})(PasswordHash || (PasswordHash = {}));
|
@@ -1,7 +1,4 @@
|
|
1
|
-
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.PlatformType = void 0;
|
4
|
-
var PlatformType;
|
1
|
+
export var PlatformType;
|
5
2
|
(function (PlatformType) {
|
6
3
|
PlatformType["Web"] = "web";
|
7
4
|
PlatformType["Flutterweb"] = "flutter-web";
|
@@ -18,4 +15,4 @@ var PlatformType;
|
|
18
15
|
PlatformType["Unity"] = "unity";
|
19
16
|
PlatformType["Reactnativeios"] = "react-native-ios";
|
20
17
|
PlatformType["Reactnativeandroid"] = "react-native-android";
|
21
|
-
})(PlatformType || (
|
18
|
+
})(PlatformType || (PlatformType = {}));
|
@@ -1,8 +1,5 @@
|
|
1
|
-
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.ProjectUsageRange = void 0;
|
4
|
-
var ProjectUsageRange;
|
1
|
+
export var ProjectUsageRange;
|
5
2
|
(function (ProjectUsageRange) {
|
6
3
|
ProjectUsageRange["OneHour"] = "1h";
|
7
4
|
ProjectUsageRange["OneDay"] = "1d";
|
8
|
-
})(ProjectUsageRange || (
|
5
|
+
})(ProjectUsageRange || (ProjectUsageRange = {}));
|
package/dist/enums/region.js
CHANGED
@@ -1,8 +1,5 @@
|
|
1
|
-
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.Region = void 0;
|
4
|
-
var Region;
|
1
|
+
export var Region;
|
5
2
|
(function (Region) {
|
6
3
|
Region["Default"] = "default";
|
7
4
|
Region["Fra"] = "fra";
|
8
|
-
})(Region || (
|
5
|
+
})(Region || (Region = {}));
|
@@ -1,9 +1,6 @@
|
|
1
|
-
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.RelationMutate = void 0;
|
4
|
-
var RelationMutate;
|
1
|
+
export var RelationMutate;
|
5
2
|
(function (RelationMutate) {
|
6
3
|
RelationMutate["Cascade"] = "cascade";
|
7
4
|
RelationMutate["Restrict"] = "restrict";
|
8
5
|
RelationMutate["SetNull"] = "setNull";
|
9
|
-
})(RelationMutate || (
|
6
|
+
})(RelationMutate || (RelationMutate = {}));
|
@@ -1,10 +1,7 @@
|
|
1
|
-
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.RelationshipType = void 0;
|
4
|
-
var RelationshipType;
|
1
|
+
export var RelationshipType;
|
5
2
|
(function (RelationshipType) {
|
6
3
|
RelationshipType["OneToOne"] = "oneToOne";
|
7
4
|
RelationshipType["ManyToOne"] = "manyToOne";
|
8
5
|
RelationshipType["ManyToMany"] = "manyToMany";
|
9
6
|
RelationshipType["OneToMany"] = "oneToMany";
|
10
|
-
})(RelationshipType || (
|
7
|
+
})(RelationshipType || (RelationshipType = {}));
|
@@ -1,8 +1,5 @@
|
|
1
|
-
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.ResourceType = void 0;
|
4
|
-
var ResourceType;
|
1
|
+
export var ResourceType;
|
5
2
|
(function (ResourceType) {
|
6
3
|
ResourceType["Api"] = "api";
|
7
4
|
ResourceType["Function"] = "function";
|
8
|
-
})(ResourceType || (
|
5
|
+
})(ResourceType || (ResourceType = {}));
|
package/dist/enums/runtime.js
CHANGED
@@ -1,7 +1,4 @@
|
|
1
|
-
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.Runtime = void 0;
|
4
|
-
var Runtime;
|
1
|
+
export var Runtime;
|
5
2
|
(function (Runtime) {
|
6
3
|
Runtime["Node145"] = "node-14.5";
|
7
4
|
Runtime["Node160"] = "node-16.0";
|
@@ -49,4 +46,4 @@ var Runtime;
|
|
49
46
|
Runtime["Cpp20"] = "cpp-20";
|
50
47
|
Runtime["Bun10"] = "bun-1.0";
|
51
48
|
Runtime["Go123"] = "go-1.23";
|
52
|
-
})(Runtime || (
|
49
|
+
})(Runtime || (Runtime = {}));
|
@@ -1,7 +1,4 @@
|
|
1
|
-
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.SMTPSecure = void 0;
|
4
|
-
var SMTPSecure;
|
1
|
+
export var SMTPSecure;
|
5
2
|
(function (SMTPSecure) {
|
6
3
|
SMTPSecure["Tls"] = "tls";
|
7
|
-
})(SMTPSecure || (
|
4
|
+
})(SMTPSecure || (SMTPSecure = {}));
|
@@ -1,8 +1,5 @@
|
|
1
|
-
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.ApplicationLayout = void 0;
|
4
|
-
var ApplicationLayout;
|
1
|
+
export var ApplicationLayout;
|
5
2
|
(function (ApplicationLayout) {
|
6
3
|
ApplicationLayout[ApplicationLayout["SIDEBAR"] = 0] = "SIDEBAR";
|
7
4
|
ApplicationLayout[ApplicationLayout["STACKED"] = 1] = "STACKED";
|
8
|
-
})(ApplicationLayout || (
|
5
|
+
})(ApplicationLayout || (ApplicationLayout = {}));
|
@@ -1,7 +1,4 @@
|
|
1
|
-
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.Colors = void 0;
|
4
|
-
var Colors;
|
1
|
+
export var Colors;
|
5
2
|
(function (Colors) {
|
6
3
|
Colors[Colors["UNDEFINED"] = 0] = "UNDEFINED";
|
7
4
|
Colors[Colors["SLATE"] = 1] = "SLATE";
|
@@ -25,4 +22,4 @@ var Colors;
|
|
25
22
|
Colors[Colors["FUCHSIA"] = 19] = "FUCHSIA";
|
26
23
|
Colors[Colors["PINK"] = 20] = "PINK";
|
27
24
|
Colors[Colors["ROSE"] = 21] = "ROSE";
|
28
|
-
})(Colors || (
|
25
|
+
})(Colors || (Colors = {}));
|
@@ -1,10 +1,7 @@
|
|
1
|
-
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.InputType = void 0;
|
4
|
-
var InputType;
|
1
|
+
export var InputType;
|
5
2
|
(function (InputType) {
|
6
3
|
InputType[InputType["TEXT"] = 0] = "TEXT";
|
7
4
|
InputType[InputType["NUMBER"] = 1] = "NUMBER";
|
8
5
|
InputType[InputType["SELECT"] = 2] = "SELECT";
|
9
6
|
InputType[InputType["DECIMAL"] = 3] = "DECIMAL";
|
10
|
-
})(InputType || (
|
7
|
+
})(InputType || (InputType = {}));
|
@@ -1,11 +1,8 @@
|
|
1
|
-
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.Periodicity = void 0;
|
4
|
-
var Periodicity;
|
1
|
+
export var Periodicity;
|
5
2
|
(function (Periodicity) {
|
6
3
|
Periodicity[Periodicity["ONCE"] = 0] = "ONCE";
|
7
4
|
Periodicity[Periodicity["MONTHLY"] = 1] = "MONTHLY";
|
8
5
|
Periodicity[Periodicity["BIMONTHLY"] = 2] = "BIMONTHLY";
|
9
6
|
Periodicity[Periodicity["QUARTERLY"] = 3] = "QUARTERLY";
|
10
7
|
Periodicity[Periodicity["YEARLY"] = 4] = "YEARLY";
|
11
|
-
})(Periodicity || (
|
8
|
+
})(Periodicity || (Periodicity = {}));
|
@@ -1,7 +1,4 @@
|
|
1
|
-
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.SvgIcon = void 0;
|
4
|
-
var SvgIcon;
|
1
|
+
export var SvgIcon;
|
5
2
|
(function (SvgIcon) {
|
6
3
|
SvgIcon[SvgIcon["ADMIN"] = 0] = "ADMIN";
|
7
4
|
SvgIcon[SvgIcon["TENANTS"] = 1] = "TENANTS";
|
@@ -38,4 +35,4 @@ var SvgIcon;
|
|
38
35
|
SvgIcon[SvgIcon["PROMPT_BUILDER"] = 32] = "PROMPT_BUILDER";
|
39
36
|
SvgIcon[SvgIcon["KNOWLEDGE_BASE"] = 33] = "KNOWLEDGE_BASE";
|
40
37
|
SvgIcon[SvgIcon["WORKFLOWS"] = 34] = "WORKFLOWS";
|
41
|
-
})(SvgIcon || (
|
38
|
+
})(SvgIcon || (SvgIcon = {}));
|
@@ -1,8 +1,5 @@
|
|
1
|
-
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.Theme = void 0;
|
4
|
-
var Theme;
|
1
|
+
export var Theme;
|
5
2
|
(function (Theme) {
|
6
3
|
Theme[Theme["LIGHT"] = 0] = "LIGHT";
|
7
4
|
Theme[Theme["DARK"] = 1] = "DARK";
|
8
|
-
})(Theme || (
|
5
|
+
})(Theme || (Theme = {}));
|
@@ -1,7 +1,4 @@
|
|
1
|
-
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.SmsTemplateLocale = void 0;
|
4
|
-
var SmsTemplateLocale;
|
1
|
+
export var SmsTemplateLocale;
|
5
2
|
(function (SmsTemplateLocale) {
|
6
3
|
SmsTemplateLocale["Af"] = "af";
|
7
4
|
SmsTemplateLocale["Arae"] = "ar-ae";
|
@@ -134,4 +131,4 @@ var SmsTemplateLocale;
|
|
134
131
|
SmsTemplateLocale["Zhsg"] = "zh-sg";
|
135
132
|
SmsTemplateLocale["Zhtw"] = "zh-tw";
|
136
133
|
SmsTemplateLocale["Zu"] = "zu";
|
137
|
-
})(SmsTemplateLocale || (
|
134
|
+
})(SmsTemplateLocale || (SmsTemplateLocale = {}));
|
@@ -1,10 +1,7 @@
|
|
1
|
-
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.SmsTemplateType = void 0;
|
4
|
-
var SmsTemplateType;
|
1
|
+
export var SmsTemplateType;
|
5
2
|
(function (SmsTemplateType) {
|
6
3
|
SmsTemplateType["Verification"] = "verification";
|
7
4
|
SmsTemplateType["Login"] = "login";
|
8
5
|
SmsTemplateType["Invitation"] = "invitation";
|
9
6
|
SmsTemplateType["Mfachallenge"] = "mfachallenge";
|
10
|
-
})(SmsTemplateType || (
|
7
|
+
})(SmsTemplateType || (SmsTemplateType = {}));
|
@@ -1,9 +1,6 @@
|
|
1
|
-
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.SmtpEncryption = void 0;
|
4
|
-
var SmtpEncryption;
|
1
|
+
export var SmtpEncryption;
|
5
2
|
(function (SmtpEncryption) {
|
6
3
|
SmtpEncryption["None"] = "none";
|
7
4
|
SmtpEncryption["Ssl"] = "ssl";
|
8
5
|
SmtpEncryption["Tls"] = "tls";
|
9
|
-
})(SmtpEncryption || (
|
6
|
+
})(SmtpEncryption || (SmtpEncryption = {}));
|
@@ -1,9 +1,6 @@
|
|
1
|
-
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.StorageUsageRange = void 0;
|
4
|
-
var StorageUsageRange;
|
1
|
+
export var StorageUsageRange;
|
5
2
|
(function (StorageUsageRange) {
|
6
3
|
StorageUsageRange["TwentyFourHours"] = "24h";
|
7
4
|
StorageUsageRange["ThirtyDays"] = "30d";
|
8
5
|
StorageUsageRange["NinetyDays"] = "90d";
|
9
|
-
})(StorageUsageRange || (
|
6
|
+
})(StorageUsageRange || (StorageUsageRange = {}));
|
@@ -1,8 +1,5 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
exports.ZPricingModel = exports.PricingModel = void 0;
|
4
|
-
const zod_1 = require("zod");
|
5
|
-
var PricingModel;
|
1
|
+
import { z } from "zod";
|
2
|
+
export var PricingModel;
|
6
3
|
(function (PricingModel) {
|
7
4
|
PricingModel[PricingModel["FLAT_RATE"] = 0] = "FLAT_RATE";
|
8
5
|
PricingModel[PricingModel["PER_SEAT"] = 1] = "PER_SEAT";
|
@@ -10,5 +7,5 @@ var PricingModel;
|
|
10
7
|
PricingModel[PricingModel["FLAT_RATE_USAGE_BASED"] = 3] = "FLAT_RATE_USAGE_BASED";
|
11
8
|
PricingModel[PricingModel["ONCE"] = 4] = "ONCE";
|
12
9
|
PricingModel[PricingModel["ALL"] = 5] = "ALL";
|
13
|
-
})(PricingModel || (
|
14
|
-
|
10
|
+
})(PricingModel || (PricingModel = {}));
|
11
|
+
export const ZPricingModel = z.nativeEnum(PricingModel);
|
@@ -1,13 +1,10 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
exports.ZSubscriptionBillingPeriod = exports.SubscriptionBillingPeriod = void 0;
|
4
|
-
const zod_1 = require("zod");
|
5
|
-
var SubscriptionBillingPeriod;
|
1
|
+
import { z } from "zod";
|
2
|
+
export var SubscriptionBillingPeriod;
|
6
3
|
(function (SubscriptionBillingPeriod) {
|
7
4
|
SubscriptionBillingPeriod[SubscriptionBillingPeriod["ONCE"] = 0] = "ONCE";
|
8
5
|
SubscriptionBillingPeriod[SubscriptionBillingPeriod["DAILY"] = 1] = "DAILY";
|
9
6
|
SubscriptionBillingPeriod[SubscriptionBillingPeriod["WEEKLY"] = 2] = "WEEKLY";
|
10
7
|
SubscriptionBillingPeriod[SubscriptionBillingPeriod["MONTHLY"] = 3] = "MONTHLY";
|
11
8
|
SubscriptionBillingPeriod[SubscriptionBillingPeriod["YEARLY"] = 4] = "YEARLY";
|
12
|
-
})(SubscriptionBillingPeriod || (
|
13
|
-
|
9
|
+
})(SubscriptionBillingPeriod || (SubscriptionBillingPeriod = {}));
|
10
|
+
export const ZSubscriptionBillingPeriod = z.nativeEnum(SubscriptionBillingPeriod);
|
@@ -1,15 +1,12 @@
|
|
1
|
-
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.ZSubscriptionFeatureLimitType = exports.SubscriptionFeatureLimitType = void 0;
|
4
|
-
const zod_1 = require("zod");
|
1
|
+
import { z } from "zod";
|
5
2
|
// TypeScript Enum
|
6
|
-
var SubscriptionFeatureLimitType;
|
3
|
+
export var SubscriptionFeatureLimitType;
|
7
4
|
(function (SubscriptionFeatureLimitType) {
|
8
5
|
SubscriptionFeatureLimitType[SubscriptionFeatureLimitType["NOT_INCLUDED"] = 0] = "NOT_INCLUDED";
|
9
6
|
SubscriptionFeatureLimitType[SubscriptionFeatureLimitType["INCLUDED"] = 1] = "INCLUDED";
|
10
7
|
SubscriptionFeatureLimitType[SubscriptionFeatureLimitType["MONTHLY"] = 2] = "MONTHLY";
|
11
8
|
SubscriptionFeatureLimitType[SubscriptionFeatureLimitType["MAX"] = 3] = "MAX";
|
12
9
|
SubscriptionFeatureLimitType[SubscriptionFeatureLimitType["UNLIMITED"] = 4] = "UNLIMITED";
|
13
|
-
})(SubscriptionFeatureLimitType || (
|
10
|
+
})(SubscriptionFeatureLimitType || (SubscriptionFeatureLimitType = {}));
|
14
11
|
// Zod şeması ile Enum doğrulama
|
15
|
-
|
12
|
+
export const ZSubscriptionFeatureLimitType = z.nativeEnum(SubscriptionFeatureLimitType);
|
@@ -1,10 +1,7 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
exports.ZSubscriptionPriceType = exports.SubscriptionPriceType = void 0;
|
4
|
-
const zod_1 = require("zod");
|
5
|
-
var SubscriptionPriceType;
|
1
|
+
import { z } from "zod";
|
2
|
+
export var SubscriptionPriceType;
|
6
3
|
(function (SubscriptionPriceType) {
|
7
4
|
SubscriptionPriceType[SubscriptionPriceType["ONE_TIME"] = 0] = "ONE_TIME";
|
8
5
|
SubscriptionPriceType[SubscriptionPriceType["RECURRING"] = 1] = "RECURRING";
|
9
|
-
})(SubscriptionPriceType || (
|
10
|
-
|
6
|
+
})(SubscriptionPriceType || (SubscriptionPriceType = {}));
|
7
|
+
export const ZSubscriptionPriceType = z.nativeEnum(SubscriptionPriceType);
|
@@ -1,9 +1,6 @@
|
|
1
|
-
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.LinkedAccountStatus = void 0;
|
4
|
-
var LinkedAccountStatus;
|
1
|
+
export var LinkedAccountStatus;
|
5
2
|
(function (LinkedAccountStatus) {
|
6
3
|
LinkedAccountStatus[LinkedAccountStatus["PENDING"] = 0] = "PENDING";
|
7
4
|
LinkedAccountStatus[LinkedAccountStatus["LINKED"] = 1] = "LINKED";
|
8
5
|
LinkedAccountStatus[LinkedAccountStatus["REJECTED"] = 2] = "REJECTED";
|
9
|
-
})(LinkedAccountStatus || (
|
6
|
+
})(LinkedAccountStatus || (LinkedAccountStatus = {}));
|
@@ -1,10 +1,7 @@
|
|
1
|
-
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.TenantUserJoined = void 0;
|
4
|
-
var TenantUserJoined;
|
1
|
+
export var TenantUserJoined;
|
5
2
|
(function (TenantUserJoined) {
|
6
3
|
TenantUserJoined[TenantUserJoined["CREATOR"] = 0] = "CREATOR";
|
7
4
|
TenantUserJoined[TenantUserJoined["JOINED_BY_INVITATION"] = 1] = "JOINED_BY_INVITATION";
|
8
5
|
TenantUserJoined[TenantUserJoined["JOINED_BY_LINK"] = 2] = "JOINED_BY_LINK";
|
9
6
|
TenantUserJoined[TenantUserJoined["JOINED_BY_PUBLIC_URL"] = 3] = "JOINED_BY_PUBLIC_URL";
|
10
|
-
})(TenantUserJoined || (
|
7
|
+
})(TenantUserJoined || (TenantUserJoined = {}));
|
@@ -1,10 +1,7 @@
|
|
1
|
-
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.TenantUserStatus = void 0;
|
4
|
-
var TenantUserStatus;
|
1
|
+
export var TenantUserStatus;
|
5
2
|
(function (TenantUserStatus) {
|
6
3
|
TenantUserStatus[TenantUserStatus["PENDING_INVITATION"] = 0] = "PENDING_INVITATION";
|
7
4
|
TenantUserStatus[TenantUserStatus["PENDING_ACCEPTANCE"] = 1] = "PENDING_ACCEPTANCE";
|
8
5
|
TenantUserStatus[TenantUserStatus["ACTIVE"] = 2] = "ACTIVE";
|
9
6
|
TenantUserStatus[TenantUserStatus["INACTIVE"] = 3] = "INACTIVE";
|
10
|
-
})(TenantUserStatus || (
|
7
|
+
})(TenantUserStatus || (TenantUserStatus = {}));
|
@@ -1,9 +1,6 @@
|
|
1
|
-
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.TenantUserType = void 0;
|
4
|
-
var TenantUserType;
|
1
|
+
export var TenantUserType;
|
5
2
|
(function (TenantUserType) {
|
6
3
|
TenantUserType[TenantUserType["OWNER"] = 0] = "OWNER";
|
7
4
|
TenantUserType[TenantUserType["ADMIN"] = 1] = "ADMIN";
|
8
5
|
TenantUserType[TenantUserType["MEMBER"] = 2] = "MEMBER";
|
9
|
-
})(TenantUserType || (
|
6
|
+
})(TenantUserType || (TenantUserType = {}));
|
@@ -1,9 +1,6 @@
|
|
1
|
-
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.UserUsageRange = void 0;
|
4
|
-
var UserUsageRange;
|
1
|
+
export var UserUsageRange;
|
5
2
|
(function (UserUsageRange) {
|
6
3
|
UserUsageRange["TwentyFourHours"] = "24h";
|
7
4
|
UserUsageRange["ThirtyDays"] = "30d";
|
8
5
|
UserUsageRange["NinetyDays"] = "90d";
|
9
|
-
})(UserUsageRange || (
|
6
|
+
})(UserUsageRange || (UserUsageRange = {}));
|
@@ -1,7 +1,4 @@
|
|
1
|
-
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.getAppcondaClient = getAppcondaClient;
|
4
|
-
const client_1 = require("./client");
|
1
|
+
import { Client } from "./client";
|
5
2
|
function getPortAndHostname(urlString) {
|
6
3
|
try {
|
7
4
|
const url = new URL(urlString);
|
@@ -16,7 +13,7 @@ function getPortAndHostname(urlString) {
|
|
16
13
|
return { hostname: '', port: '', protocol: '' };
|
17
14
|
}
|
18
15
|
}
|
19
|
-
async function getAppcondaClient() {
|
16
|
+
export async function getAppcondaClient() {
|
20
17
|
let url;
|
21
18
|
if (process.env.NEXT_PUBLIC_APPCONDA_CLIENT_ENDPOINT) {
|
22
19
|
url = process.env.NEXT_PUBLIC_APPCONDA_CLIENT_ENDPOINT;
|
@@ -38,7 +35,7 @@ async function getAppcondaClient() {
|
|
38
35
|
} else {
|
39
36
|
url = `${ApplicationConfig.Protocol}://${ApplicationConfig.Domain}/v1`
|
40
37
|
} */
|
41
|
-
const adminClient = new
|
38
|
+
const adminClient = new Client()
|
42
39
|
.setEndpoint(url) // Your API Endpoint
|
43
40
|
.setProject('console');
|
44
41
|
return adminClient;
|
@@ -1,50 +1,47 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
const
|
21
|
-
const
|
22
|
-
async function getSDKForCurrentUser() {
|
23
|
-
const adminClient = await (0, getAppcondaClient_1.getAppcondaClient)();
|
24
|
-
const c = await (0, headers_1.cookies)();
|
1
|
+
import { cookies } from "next/headers";
|
2
|
+
import { getAppcondaClient } from "./getAppcondaClient";
|
3
|
+
import { Account } from "./services/account";
|
4
|
+
import { Community } from "./services/community";
|
5
|
+
import { Configuration } from "./services/configuration";
|
6
|
+
import { Databases } from "./services/databases";
|
7
|
+
import { Pricing } from "./services/pricing";
|
8
|
+
import { Projects } from "./services/projects";
|
9
|
+
import { Roles } from "./services/roles";
|
10
|
+
import { Schemas } from "./services/schema";
|
11
|
+
import { Subscription } from "./services/subscription";
|
12
|
+
import { Teams } from "./services/teams";
|
13
|
+
import { Tenant } from "./services/tenant";
|
14
|
+
import { TenantSubscription } from "./services/tenant-subscription";
|
15
|
+
import { Users } from "./services/users";
|
16
|
+
import { Node } from "./services/node";
|
17
|
+
import { Permissions } from "./services/permissions";
|
18
|
+
import { WaitlistService } from "./modules/waitlist/service";
|
19
|
+
export async function getSDKForCurrentUser() {
|
20
|
+
const adminClient = await getAppcondaClient();
|
21
|
+
const c = await cookies();
|
25
22
|
const s = c.get('a_session') || c.get('a_session_console_legacy');
|
26
23
|
if (!s || !s.value) {
|
27
24
|
throw new Error("No session");
|
28
25
|
}
|
29
26
|
adminClient.setSession(s.value);
|
30
|
-
const accounts = new
|
31
|
-
const databases = new
|
32
|
-
const projects = new
|
27
|
+
const accounts = new Account(adminClient);
|
28
|
+
const databases = new Databases(adminClient);
|
29
|
+
const projects = new Projects(adminClient);
|
33
30
|
const currentUser = await accounts.get();
|
34
|
-
const users = new
|
35
|
-
const teams = new
|
36
|
-
const tenants = new
|
37
|
-
const roles = new
|
38
|
-
const permissions = new
|
39
|
-
const schemas = new
|
40
|
-
const community = new
|
41
|
-
const tenantSubscriptions = new
|
42
|
-
const subscription = new
|
43
|
-
const pricing = new
|
44
|
-
const configuration = new
|
31
|
+
const users = new Users(adminClient);
|
32
|
+
const teams = new Teams(adminClient);
|
33
|
+
const tenants = new Tenant(adminClient);
|
34
|
+
const roles = new Roles(adminClient);
|
35
|
+
const permissions = new Permissions(adminClient);
|
36
|
+
const schemas = new Schemas(adminClient);
|
37
|
+
const community = new Community(adminClient);
|
38
|
+
const tenantSubscriptions = new TenantSubscription(adminClient);
|
39
|
+
const subscription = new Subscription(adminClient);
|
40
|
+
const pricing = new Pricing(adminClient);
|
41
|
+
const configuration = new Configuration(adminClient);
|
45
42
|
//const acl = new Acl(adminClient);
|
46
|
-
const node = new
|
47
|
-
const waitlist = new
|
43
|
+
const node = new Node(adminClient);
|
44
|
+
const waitlist = new WaitlistService(adminClient);
|
48
45
|
return {
|
49
46
|
currentUser,
|
50
47
|
accounts,
|
package/dist/id.js
CHANGED
@@ -1,24 +1,13 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
2
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
3
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
4
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
5
|
+
};
|
6
|
+
var _a, _ID_hexTimestamp;
|
4
7
|
/**
|
5
8
|
* Helper class to generate ID strings for resources.
|
6
9
|
*/
|
7
|
-
class ID {
|
8
|
-
/**
|
9
|
-
* Generate an hex ID based on timestamp.
|
10
|
-
* Recreated from https://www.php.net/manual/en/function.uniqid.php
|
11
|
-
*
|
12
|
-
* @returns {string}
|
13
|
-
*/
|
14
|
-
static #hexTimestamp() {
|
15
|
-
const now = new Date();
|
16
|
-
const sec = Math.floor(now.getTime() / 1000);
|
17
|
-
const msec = now.getMilliseconds();
|
18
|
-
// Convert to hexadecimal
|
19
|
-
const hexTimestamp = sec.toString(16) + msec.toString(16).padStart(5, '0');
|
20
|
-
return hexTimestamp;
|
21
|
-
}
|
10
|
+
export class ID {
|
22
11
|
/**
|
23
12
|
* Uses the provided ID as the ID for the resource.
|
24
13
|
*
|
@@ -36,7 +25,7 @@ class ID {
|
|
36
25
|
*/
|
37
26
|
static unique(padding = 7) {
|
38
27
|
// Generate a unique ID with padding to have a longer ID
|
39
|
-
const baseId =
|
28
|
+
const baseId = __classPrivateFieldGet(_a, _a, "m", _ID_hexTimestamp).call(_a);
|
40
29
|
let randomPadding = '';
|
41
30
|
for (let i = 0; i < padding; i++) {
|
42
31
|
const randomHexDigit = Math.floor(Math.random() * 16).toString(16);
|
@@ -45,4 +34,11 @@ class ID {
|
|
45
34
|
return baseId + randomPadding;
|
46
35
|
}
|
47
36
|
}
|
48
|
-
|
37
|
+
_a = ID, _ID_hexTimestamp = function _ID_hexTimestamp() {
|
38
|
+
const now = new Date();
|
39
|
+
const sec = Math.floor(now.getTime() / 1000);
|
40
|
+
const msec = now.getMilliseconds();
|
41
|
+
// Convert to hexadecimal
|
42
|
+
const hexTimestamp = sec.toString(16) + msec.toString(16).padStart(5, '0');
|
43
|
+
return hexTimestamp;
|
44
|
+
};
|