@appconda/nextjs 1.0.18 → 1.0.19
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/package.json +5 -12
- package/tsconfig.json +2 -1
- 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,7 @@
|
|
1
|
+
export var RelationshipType;
|
2
|
+
(function (RelationshipType) {
|
3
|
+
RelationshipType["OneToOne"] = "oneToOne";
|
4
|
+
RelationshipType["ManyToOne"] = "manyToOne";
|
5
|
+
RelationshipType["ManyToMany"] = "manyToMany";
|
6
|
+
RelationshipType["OneToMany"] = "oneToMany";
|
7
|
+
})(RelationshipType || (RelationshipType = {}));
|
@@ -0,0 +1,49 @@
|
|
1
|
+
export var Runtime;
|
2
|
+
(function (Runtime) {
|
3
|
+
Runtime["Node145"] = "node-14.5";
|
4
|
+
Runtime["Node160"] = "node-16.0";
|
5
|
+
Runtime["Node180"] = "node-18.0";
|
6
|
+
Runtime["Node190"] = "node-19.0";
|
7
|
+
Runtime["Node200"] = "node-20.0";
|
8
|
+
Runtime["Node210"] = "node-21.0";
|
9
|
+
Runtime["Php80"] = "php-8.0";
|
10
|
+
Runtime["Php81"] = "php-8.1";
|
11
|
+
Runtime["Php82"] = "php-8.2";
|
12
|
+
Runtime["Php83"] = "php-8.3";
|
13
|
+
Runtime["Ruby30"] = "ruby-3.0";
|
14
|
+
Runtime["Ruby31"] = "ruby-3.1";
|
15
|
+
Runtime["Ruby32"] = "ruby-3.2";
|
16
|
+
Runtime["Ruby33"] = "ruby-3.3";
|
17
|
+
Runtime["Python38"] = "python-3.8";
|
18
|
+
Runtime["Python39"] = "python-3.9";
|
19
|
+
Runtime["Python310"] = "python-3.10";
|
20
|
+
Runtime["Python311"] = "python-3.11";
|
21
|
+
Runtime["Python312"] = "python-3.12";
|
22
|
+
Runtime["Pythonml311"] = "python-ml-3.11";
|
23
|
+
Runtime["Deno140"] = "deno-1.40";
|
24
|
+
Runtime["Dart215"] = "dart-2.15";
|
25
|
+
Runtime["Dart216"] = "dart-2.16";
|
26
|
+
Runtime["Dart217"] = "dart-2.17";
|
27
|
+
Runtime["Dart218"] = "dart-2.18";
|
28
|
+
Runtime["Dart30"] = "dart-3.0";
|
29
|
+
Runtime["Dart31"] = "dart-3.1";
|
30
|
+
Runtime["Dart33"] = "dart-3.3";
|
31
|
+
Runtime["Dotnet31"] = "dotnet-3.1";
|
32
|
+
Runtime["Dotnet60"] = "dotnet-6.0";
|
33
|
+
Runtime["Dotnet70"] = "dotnet-7.0";
|
34
|
+
Runtime["Java80"] = "java-8.0";
|
35
|
+
Runtime["Java110"] = "java-11.0";
|
36
|
+
Runtime["Java170"] = "java-17.0";
|
37
|
+
Runtime["Java180"] = "java-18.0";
|
38
|
+
Runtime["Java210"] = "java-21.0";
|
39
|
+
Runtime["Swift55"] = "swift-5.5";
|
40
|
+
Runtime["Swift58"] = "swift-5.8";
|
41
|
+
Runtime["Swift59"] = "swift-5.9";
|
42
|
+
Runtime["Kotlin16"] = "kotlin-1.6";
|
43
|
+
Runtime["Kotlin18"] = "kotlin-1.8";
|
44
|
+
Runtime["Kotlin19"] = "kotlin-1.9";
|
45
|
+
Runtime["Cpp17"] = "cpp-17";
|
46
|
+
Runtime["Cpp20"] = "cpp-20";
|
47
|
+
Runtime["Bun10"] = "bun-1.0";
|
48
|
+
Runtime["Go123"] = "go-1.23";
|
49
|
+
})(Runtime || (Runtime = {}));
|
@@ -0,0 +1,25 @@
|
|
1
|
+
export var Colors;
|
2
|
+
(function (Colors) {
|
3
|
+
Colors[Colors["UNDEFINED"] = 0] = "UNDEFINED";
|
4
|
+
Colors[Colors["SLATE"] = 1] = "SLATE";
|
5
|
+
Colors[Colors["GRAY"] = 2] = "GRAY";
|
6
|
+
Colors[Colors["NEUTRAL"] = 3] = "NEUTRAL";
|
7
|
+
Colors[Colors["STONE"] = 4] = "STONE";
|
8
|
+
Colors[Colors["RED"] = 5] = "RED";
|
9
|
+
Colors[Colors["ORANGE"] = 6] = "ORANGE";
|
10
|
+
Colors[Colors["AMBER"] = 7] = "AMBER";
|
11
|
+
Colors[Colors["YELLOW"] = 8] = "YELLOW";
|
12
|
+
Colors[Colors["LIME"] = 9] = "LIME";
|
13
|
+
Colors[Colors["GREEN"] = 10] = "GREEN";
|
14
|
+
Colors[Colors["EMERALD"] = 11] = "EMERALD";
|
15
|
+
Colors[Colors["TEAL"] = 12] = "TEAL";
|
16
|
+
Colors[Colors["CYAN"] = 13] = "CYAN";
|
17
|
+
Colors[Colors["SKY"] = 14] = "SKY";
|
18
|
+
Colors[Colors["BLUE"] = 15] = "BLUE";
|
19
|
+
Colors[Colors["INDIGO"] = 16] = "INDIGO";
|
20
|
+
Colors[Colors["VIOLET"] = 17] = "VIOLET";
|
21
|
+
Colors[Colors["PURPLE"] = 18] = "PURPLE";
|
22
|
+
Colors[Colors["FUCHSIA"] = 19] = "FUCHSIA";
|
23
|
+
Colors[Colors["PINK"] = 20] = "PINK";
|
24
|
+
Colors[Colors["ROSE"] = 21] = "ROSE";
|
25
|
+
})(Colors || (Colors = {}));
|
@@ -0,0 +1,7 @@
|
|
1
|
+
export var InputType;
|
2
|
+
(function (InputType) {
|
3
|
+
InputType[InputType["TEXT"] = 0] = "TEXT";
|
4
|
+
InputType[InputType["NUMBER"] = 1] = "NUMBER";
|
5
|
+
InputType[InputType["SELECT"] = 2] = "SELECT";
|
6
|
+
InputType[InputType["DECIMAL"] = 3] = "DECIMAL";
|
7
|
+
})(InputType || (InputType = {}));
|
@@ -0,0 +1,8 @@
|
|
1
|
+
export var Periodicity;
|
2
|
+
(function (Periodicity) {
|
3
|
+
Periodicity[Periodicity["ONCE"] = 0] = "ONCE";
|
4
|
+
Periodicity[Periodicity["MONTHLY"] = 1] = "MONTHLY";
|
5
|
+
Periodicity[Periodicity["BIMONTHLY"] = 2] = "BIMONTHLY";
|
6
|
+
Periodicity[Periodicity["QUARTERLY"] = 3] = "QUARTERLY";
|
7
|
+
Periodicity[Periodicity["YEARLY"] = 4] = "YEARLY";
|
8
|
+
})(Periodicity || (Periodicity = {}));
|
@@ -0,0 +1,38 @@
|
|
1
|
+
export var SvgIcon;
|
2
|
+
(function (SvgIcon) {
|
3
|
+
SvgIcon[SvgIcon["ADMIN"] = 0] = "ADMIN";
|
4
|
+
SvgIcon[SvgIcon["TENANTS"] = 1] = "TENANTS";
|
5
|
+
SvgIcon[SvgIcon["USERS"] = 2] = "USERS";
|
6
|
+
SvgIcon[SvgIcon["ROLES"] = 3] = "ROLES";
|
7
|
+
SvgIcon[SvgIcon["PRICING"] = 4] = "PRICING";
|
8
|
+
SvgIcon[SvgIcon["EMAILS"] = 5] = "EMAILS";
|
9
|
+
SvgIcon[SvgIcon["NAVIGATION"] = 6] = "NAVIGATION";
|
10
|
+
SvgIcon[SvgIcon["COMPONENTS"] = 7] = "COMPONENTS";
|
11
|
+
SvgIcon[SvgIcon["MEMBERS"] = 8] = "MEMBERS";
|
12
|
+
SvgIcon[SvgIcon["PROFILE"] = 9] = "PROFILE";
|
13
|
+
SvgIcon[SvgIcon["APP"] = 10] = "APP";
|
14
|
+
SvgIcon[SvgIcon["DASHBOARD"] = 11] = "DASHBOARD";
|
15
|
+
SvgIcon[SvgIcon["SETTINGS"] = 12] = "SETTINGS";
|
16
|
+
SvgIcon[SvgIcon["SETUP"] = 13] = "SETUP";
|
17
|
+
SvgIcon[SvgIcon["LOGS"] = 14] = "LOGS";
|
18
|
+
SvgIcon[SvgIcon["EVENTS"] = 15] = "EVENTS";
|
19
|
+
SvgIcon[SvgIcon["BLOG"] = 16] = "BLOG";
|
20
|
+
SvgIcon[SvgIcon["ENTITIES"] = 17] = "ENTITIES";
|
21
|
+
SvgIcon[SvgIcon["KEYS"] = 18] = "KEYS";
|
22
|
+
SvgIcon[SvgIcon["DOCS"] = 19] = "DOCS";
|
23
|
+
SvgIcon[SvgIcon["LINKS"] = 20] = "LINKS";
|
24
|
+
SvgIcon[SvgIcon["PROVIDERS"] = 21] = "PROVIDERS";
|
25
|
+
SvgIcon[SvgIcon["CLIENTS"] = 22] = "CLIENTS";
|
26
|
+
SvgIcon[SvgIcon["CONTRACTS"] = 23] = "CONTRACTS";
|
27
|
+
SvgIcon[SvgIcon["EMPLOYEES"] = 24] = "EMPLOYEES";
|
28
|
+
SvgIcon[SvgIcon["JOKES"] = 25] = "JOKES";
|
29
|
+
SvgIcon[SvgIcon["ANALYTICS"] = 26] = "ANALYTICS";
|
30
|
+
SvgIcon[SvgIcon["AFFILIATES_AND_REFERRALS"] = 27] = "AFFILIATES_AND_REFERRALS";
|
31
|
+
SvgIcon[SvgIcon["HELP_DESK"] = 28] = "HELP_DESK";
|
32
|
+
SvgIcon[SvgIcon["ONBOARDING"] = 29] = "ONBOARDING";
|
33
|
+
SvgIcon[SvgIcon["PAGES"] = 30] = "PAGES";
|
34
|
+
SvgIcon[SvgIcon["FEATURE_FLAGS"] = 31] = "FEATURE_FLAGS";
|
35
|
+
SvgIcon[SvgIcon["PROMPT_BUILDER"] = 32] = "PROMPT_BUILDER";
|
36
|
+
SvgIcon[SvgIcon["KNOWLEDGE_BASE"] = 33] = "KNOWLEDGE_BASE";
|
37
|
+
SvgIcon[SvgIcon["WORKFLOWS"] = 34] = "WORKFLOWS";
|
38
|
+
})(SvgIcon || (SvgIcon = {}));
|
@@ -0,0 +1,134 @@
|
|
1
|
+
export var SmsTemplateLocale;
|
2
|
+
(function (SmsTemplateLocale) {
|
3
|
+
SmsTemplateLocale["Af"] = "af";
|
4
|
+
SmsTemplateLocale["Arae"] = "ar-ae";
|
5
|
+
SmsTemplateLocale["Arbh"] = "ar-bh";
|
6
|
+
SmsTemplateLocale["Ardz"] = "ar-dz";
|
7
|
+
SmsTemplateLocale["Areg"] = "ar-eg";
|
8
|
+
SmsTemplateLocale["Ariq"] = "ar-iq";
|
9
|
+
SmsTemplateLocale["Arjo"] = "ar-jo";
|
10
|
+
SmsTemplateLocale["Arkw"] = "ar-kw";
|
11
|
+
SmsTemplateLocale["Arlb"] = "ar-lb";
|
12
|
+
SmsTemplateLocale["Arly"] = "ar-ly";
|
13
|
+
SmsTemplateLocale["Arma"] = "ar-ma";
|
14
|
+
SmsTemplateLocale["Arom"] = "ar-om";
|
15
|
+
SmsTemplateLocale["Arqa"] = "ar-qa";
|
16
|
+
SmsTemplateLocale["Arsa"] = "ar-sa";
|
17
|
+
SmsTemplateLocale["Arsy"] = "ar-sy";
|
18
|
+
SmsTemplateLocale["Artn"] = "ar-tn";
|
19
|
+
SmsTemplateLocale["Arye"] = "ar-ye";
|
20
|
+
SmsTemplateLocale["As"] = "as";
|
21
|
+
SmsTemplateLocale["Az"] = "az";
|
22
|
+
SmsTemplateLocale["Be"] = "be";
|
23
|
+
SmsTemplateLocale["Bg"] = "bg";
|
24
|
+
SmsTemplateLocale["Bh"] = "bh";
|
25
|
+
SmsTemplateLocale["Bn"] = "bn";
|
26
|
+
SmsTemplateLocale["Bs"] = "bs";
|
27
|
+
SmsTemplateLocale["Ca"] = "ca";
|
28
|
+
SmsTemplateLocale["Cs"] = "cs";
|
29
|
+
SmsTemplateLocale["Cy"] = "cy";
|
30
|
+
SmsTemplateLocale["Da"] = "da";
|
31
|
+
SmsTemplateLocale["De"] = "de";
|
32
|
+
SmsTemplateLocale["Deat"] = "de-at";
|
33
|
+
SmsTemplateLocale["Dech"] = "de-ch";
|
34
|
+
SmsTemplateLocale["Deli"] = "de-li";
|
35
|
+
SmsTemplateLocale["Delu"] = "de-lu";
|
36
|
+
SmsTemplateLocale["El"] = "el";
|
37
|
+
SmsTemplateLocale["En"] = "en";
|
38
|
+
SmsTemplateLocale["Enau"] = "en-au";
|
39
|
+
SmsTemplateLocale["Enbz"] = "en-bz";
|
40
|
+
SmsTemplateLocale["Enca"] = "en-ca";
|
41
|
+
SmsTemplateLocale["Engb"] = "en-gb";
|
42
|
+
SmsTemplateLocale["Enie"] = "en-ie";
|
43
|
+
SmsTemplateLocale["Enjm"] = "en-jm";
|
44
|
+
SmsTemplateLocale["Ennz"] = "en-nz";
|
45
|
+
SmsTemplateLocale["Entt"] = "en-tt";
|
46
|
+
SmsTemplateLocale["Enus"] = "en-us";
|
47
|
+
SmsTemplateLocale["Enza"] = "en-za";
|
48
|
+
SmsTemplateLocale["Eo"] = "eo";
|
49
|
+
SmsTemplateLocale["Es"] = "es";
|
50
|
+
SmsTemplateLocale["Esar"] = "es-ar";
|
51
|
+
SmsTemplateLocale["Esbo"] = "es-bo";
|
52
|
+
SmsTemplateLocale["Escl"] = "es-cl";
|
53
|
+
SmsTemplateLocale["Esco"] = "es-co";
|
54
|
+
SmsTemplateLocale["Escr"] = "es-cr";
|
55
|
+
SmsTemplateLocale["Esdo"] = "es-do";
|
56
|
+
SmsTemplateLocale["Esec"] = "es-ec";
|
57
|
+
SmsTemplateLocale["Esgt"] = "es-gt";
|
58
|
+
SmsTemplateLocale["Eshn"] = "es-hn";
|
59
|
+
SmsTemplateLocale["Esmx"] = "es-mx";
|
60
|
+
SmsTemplateLocale["Esni"] = "es-ni";
|
61
|
+
SmsTemplateLocale["Espa"] = "es-pa";
|
62
|
+
SmsTemplateLocale["Espe"] = "es-pe";
|
63
|
+
SmsTemplateLocale["Espr"] = "es-pr";
|
64
|
+
SmsTemplateLocale["Espy"] = "es-py";
|
65
|
+
SmsTemplateLocale["Essv"] = "es-sv";
|
66
|
+
SmsTemplateLocale["Esuy"] = "es-uy";
|
67
|
+
SmsTemplateLocale["Esve"] = "es-ve";
|
68
|
+
SmsTemplateLocale["Et"] = "et";
|
69
|
+
SmsTemplateLocale["Eu"] = "eu";
|
70
|
+
SmsTemplateLocale["Fa"] = "fa";
|
71
|
+
SmsTemplateLocale["Fi"] = "fi";
|
72
|
+
SmsTemplateLocale["Fo"] = "fo";
|
73
|
+
SmsTemplateLocale["Fr"] = "fr";
|
74
|
+
SmsTemplateLocale["Frbe"] = "fr-be";
|
75
|
+
SmsTemplateLocale["Frca"] = "fr-ca";
|
76
|
+
SmsTemplateLocale["Frch"] = "fr-ch";
|
77
|
+
SmsTemplateLocale["Frlu"] = "fr-lu";
|
78
|
+
SmsTemplateLocale["Ga"] = "ga";
|
79
|
+
SmsTemplateLocale["Gd"] = "gd";
|
80
|
+
SmsTemplateLocale["He"] = "he";
|
81
|
+
SmsTemplateLocale["Hi"] = "hi";
|
82
|
+
SmsTemplateLocale["Hr"] = "hr";
|
83
|
+
SmsTemplateLocale["Hu"] = "hu";
|
84
|
+
SmsTemplateLocale["Id"] = "id";
|
85
|
+
SmsTemplateLocale["Is"] = "is";
|
86
|
+
SmsTemplateLocale["It"] = "it";
|
87
|
+
SmsTemplateLocale["Itch"] = "it-ch";
|
88
|
+
SmsTemplateLocale["Ja"] = "ja";
|
89
|
+
SmsTemplateLocale["Ji"] = "ji";
|
90
|
+
SmsTemplateLocale["Ko"] = "ko";
|
91
|
+
SmsTemplateLocale["Ku"] = "ku";
|
92
|
+
SmsTemplateLocale["Lt"] = "lt";
|
93
|
+
SmsTemplateLocale["Lv"] = "lv";
|
94
|
+
SmsTemplateLocale["Mk"] = "mk";
|
95
|
+
SmsTemplateLocale["Ml"] = "ml";
|
96
|
+
SmsTemplateLocale["Ms"] = "ms";
|
97
|
+
SmsTemplateLocale["Mt"] = "mt";
|
98
|
+
SmsTemplateLocale["Nb"] = "nb";
|
99
|
+
SmsTemplateLocale["Ne"] = "ne";
|
100
|
+
SmsTemplateLocale["Nl"] = "nl";
|
101
|
+
SmsTemplateLocale["Nlbe"] = "nl-be";
|
102
|
+
SmsTemplateLocale["Nn"] = "nn";
|
103
|
+
SmsTemplateLocale["No"] = "no";
|
104
|
+
SmsTemplateLocale["Pa"] = "pa";
|
105
|
+
SmsTemplateLocale["Pl"] = "pl";
|
106
|
+
SmsTemplateLocale["Pt"] = "pt";
|
107
|
+
SmsTemplateLocale["Ptbr"] = "pt-br";
|
108
|
+
SmsTemplateLocale["Rm"] = "rm";
|
109
|
+
SmsTemplateLocale["Ro"] = "ro";
|
110
|
+
SmsTemplateLocale["Romd"] = "ro-md";
|
111
|
+
SmsTemplateLocale["Ru"] = "ru";
|
112
|
+
SmsTemplateLocale["Rumd"] = "ru-md";
|
113
|
+
SmsTemplateLocale["Sb"] = "sb";
|
114
|
+
SmsTemplateLocale["Sk"] = "sk";
|
115
|
+
SmsTemplateLocale["Sl"] = "sl";
|
116
|
+
SmsTemplateLocale["Sq"] = "sq";
|
117
|
+
SmsTemplateLocale["Sr"] = "sr";
|
118
|
+
SmsTemplateLocale["Sv"] = "sv";
|
119
|
+
SmsTemplateLocale["Svfi"] = "sv-fi";
|
120
|
+
SmsTemplateLocale["Th"] = "th";
|
121
|
+
SmsTemplateLocale["Tn"] = "tn";
|
122
|
+
SmsTemplateLocale["Tr"] = "tr";
|
123
|
+
SmsTemplateLocale["Ts"] = "ts";
|
124
|
+
SmsTemplateLocale["Ua"] = "ua";
|
125
|
+
SmsTemplateLocale["Ur"] = "ur";
|
126
|
+
SmsTemplateLocale["Ve"] = "ve";
|
127
|
+
SmsTemplateLocale["Vi"] = "vi";
|
128
|
+
SmsTemplateLocale["Xh"] = "xh";
|
129
|
+
SmsTemplateLocale["Zhcn"] = "zh-cn";
|
130
|
+
SmsTemplateLocale["Zhhk"] = "zh-hk";
|
131
|
+
SmsTemplateLocale["Zhsg"] = "zh-sg";
|
132
|
+
SmsTemplateLocale["Zhtw"] = "zh-tw";
|
133
|
+
SmsTemplateLocale["Zu"] = "zu";
|
134
|
+
})(SmsTemplateLocale || (SmsTemplateLocale = {}));
|
@@ -0,0 +1,7 @@
|
|
1
|
+
export var SmsTemplateType;
|
2
|
+
(function (SmsTemplateType) {
|
3
|
+
SmsTemplateType["Verification"] = "verification";
|
4
|
+
SmsTemplateType["Login"] = "login";
|
5
|
+
SmsTemplateType["Invitation"] = "invitation";
|
6
|
+
SmsTemplateType["Mfachallenge"] = "mfachallenge";
|
7
|
+
})(SmsTemplateType || (SmsTemplateType = {}));
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { z } from "zod";
|
2
|
+
export var PricingModel;
|
3
|
+
(function (PricingModel) {
|
4
|
+
PricingModel[PricingModel["FLAT_RATE"] = 0] = "FLAT_RATE";
|
5
|
+
PricingModel[PricingModel["PER_SEAT"] = 1] = "PER_SEAT";
|
6
|
+
PricingModel[PricingModel["USAGE_BASED"] = 2] = "USAGE_BASED";
|
7
|
+
PricingModel[PricingModel["FLAT_RATE_USAGE_BASED"] = 3] = "FLAT_RATE_USAGE_BASED";
|
8
|
+
PricingModel[PricingModel["ONCE"] = 4] = "ONCE";
|
9
|
+
PricingModel[PricingModel["ALL"] = 5] = "ALL";
|
10
|
+
})(PricingModel || (PricingModel = {}));
|
11
|
+
export const ZPricingModel = z.nativeEnum(PricingModel);
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { z } from "zod";
|
2
|
+
export var SubscriptionBillingPeriod;
|
3
|
+
(function (SubscriptionBillingPeriod) {
|
4
|
+
SubscriptionBillingPeriod[SubscriptionBillingPeriod["ONCE"] = 0] = "ONCE";
|
5
|
+
SubscriptionBillingPeriod[SubscriptionBillingPeriod["DAILY"] = 1] = "DAILY";
|
6
|
+
SubscriptionBillingPeriod[SubscriptionBillingPeriod["WEEKLY"] = 2] = "WEEKLY";
|
7
|
+
SubscriptionBillingPeriod[SubscriptionBillingPeriod["MONTHLY"] = 3] = "MONTHLY";
|
8
|
+
SubscriptionBillingPeriod[SubscriptionBillingPeriod["YEARLY"] = 4] = "YEARLY";
|
9
|
+
})(SubscriptionBillingPeriod || (SubscriptionBillingPeriod = {}));
|
10
|
+
export const ZSubscriptionBillingPeriod = z.nativeEnum(SubscriptionBillingPeriod);
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { z } from "zod";
|
2
|
+
// TypeScript Enum
|
3
|
+
export var SubscriptionFeatureLimitType;
|
4
|
+
(function (SubscriptionFeatureLimitType) {
|
5
|
+
SubscriptionFeatureLimitType[SubscriptionFeatureLimitType["NOT_INCLUDED"] = 0] = "NOT_INCLUDED";
|
6
|
+
SubscriptionFeatureLimitType[SubscriptionFeatureLimitType["INCLUDED"] = 1] = "INCLUDED";
|
7
|
+
SubscriptionFeatureLimitType[SubscriptionFeatureLimitType["MONTHLY"] = 2] = "MONTHLY";
|
8
|
+
SubscriptionFeatureLimitType[SubscriptionFeatureLimitType["MAX"] = 3] = "MAX";
|
9
|
+
SubscriptionFeatureLimitType[SubscriptionFeatureLimitType["UNLIMITED"] = 4] = "UNLIMITED";
|
10
|
+
})(SubscriptionFeatureLimitType || (SubscriptionFeatureLimitType = {}));
|
11
|
+
// Zod şeması ile Enum doğrulama
|
12
|
+
export const ZSubscriptionFeatureLimitType = z.nativeEnum(SubscriptionFeatureLimitType);
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { z } from "zod";
|
2
|
+
export var SubscriptionPriceType;
|
3
|
+
(function (SubscriptionPriceType) {
|
4
|
+
SubscriptionPriceType[SubscriptionPriceType["ONE_TIME"] = 0] = "ONE_TIME";
|
5
|
+
SubscriptionPriceType[SubscriptionPriceType["RECURRING"] = 1] = "RECURRING";
|
6
|
+
})(SubscriptionPriceType || (SubscriptionPriceType = {}));
|
7
|
+
export const ZSubscriptionPriceType = z.nativeEnum(SubscriptionPriceType);
|
@@ -0,0 +1,6 @@
|
|
1
|
+
export var LinkedAccountStatus;
|
2
|
+
(function (LinkedAccountStatus) {
|
3
|
+
LinkedAccountStatus[LinkedAccountStatus["PENDING"] = 0] = "PENDING";
|
4
|
+
LinkedAccountStatus[LinkedAccountStatus["LINKED"] = 1] = "LINKED";
|
5
|
+
LinkedAccountStatus[LinkedAccountStatus["REJECTED"] = 2] = "REJECTED";
|
6
|
+
})(LinkedAccountStatus || (LinkedAccountStatus = {}));
|
@@ -0,0 +1,7 @@
|
|
1
|
+
export var TenantUserJoined;
|
2
|
+
(function (TenantUserJoined) {
|
3
|
+
TenantUserJoined[TenantUserJoined["CREATOR"] = 0] = "CREATOR";
|
4
|
+
TenantUserJoined[TenantUserJoined["JOINED_BY_INVITATION"] = 1] = "JOINED_BY_INVITATION";
|
5
|
+
TenantUserJoined[TenantUserJoined["JOINED_BY_LINK"] = 2] = "JOINED_BY_LINK";
|
6
|
+
TenantUserJoined[TenantUserJoined["JOINED_BY_PUBLIC_URL"] = 3] = "JOINED_BY_PUBLIC_URL";
|
7
|
+
})(TenantUserJoined || (TenantUserJoined = {}));
|
@@ -0,0 +1,7 @@
|
|
1
|
+
export var TenantUserStatus;
|
2
|
+
(function (TenantUserStatus) {
|
3
|
+
TenantUserStatus[TenantUserStatus["PENDING_INVITATION"] = 0] = "PENDING_INVITATION";
|
4
|
+
TenantUserStatus[TenantUserStatus["PENDING_ACCEPTANCE"] = 1] = "PENDING_ACCEPTANCE";
|
5
|
+
TenantUserStatus[TenantUserStatus["ACTIVE"] = 2] = "ACTIVE";
|
6
|
+
TenantUserStatus[TenantUserStatus["INACTIVE"] = 3] = "INACTIVE";
|
7
|
+
})(TenantUserStatus || (TenantUserStatus = {}));
|
@@ -0,0 +1,6 @@
|
|
1
|
+
export var TenantUserType;
|
2
|
+
(function (TenantUserType) {
|
3
|
+
TenantUserType[TenantUserType["OWNER"] = 0] = "OWNER";
|
4
|
+
TenantUserType[TenantUserType["ADMIN"] = 1] = "ADMIN";
|
5
|
+
TenantUserType[TenantUserType["MEMBER"] = 2] = "MEMBER";
|
6
|
+
})(TenantUserType || (TenantUserType = {}));
|
@@ -0,0 +1,42 @@
|
|
1
|
+
import { Client } from "./client";
|
2
|
+
function getPortAndHostname(urlString) {
|
3
|
+
try {
|
4
|
+
const url = new URL(urlString);
|
5
|
+
return {
|
6
|
+
hostname: url.hostname,
|
7
|
+
port: url.port || (url.protocol === 'https:' ? '443' : '80'), // Default ports if not specified
|
8
|
+
protocol: url.protocol
|
9
|
+
};
|
10
|
+
}
|
11
|
+
catch (error) {
|
12
|
+
console.error('Invalid URL:', error);
|
13
|
+
return { hostname: '', port: '', protocol: '' };
|
14
|
+
}
|
15
|
+
}
|
16
|
+
export async function getAppcondaClient() {
|
17
|
+
let url;
|
18
|
+
if (process.env.NEXT_PUBLIC_APPCONDA_CLIENT_ENDPOINT) {
|
19
|
+
url = process.env.NEXT_PUBLIC_APPCONDA_CLIENT_ENDPOINT;
|
20
|
+
}
|
21
|
+
else if (typeof window !== 'undefined') {
|
22
|
+
const hostInfo = getPortAndHostname(window.location.href);
|
23
|
+
if (hostInfo.port) {
|
24
|
+
url = `${hostInfo.protocol}//${hostInfo.hostname}:${hostInfo.port}/v1`;
|
25
|
+
}
|
26
|
+
else {
|
27
|
+
url = `${hostInfo.protocol}//${hostInfo.hostname}/v1`;
|
28
|
+
}
|
29
|
+
}
|
30
|
+
else {
|
31
|
+
url = 'http://appconda/v1';
|
32
|
+
}
|
33
|
+
/* if (ApplicationConfig.Port == null) {
|
34
|
+
url = `${ApplicationConfig.Protocol}://${ApplicationConfig.Domain}:${ApplicationConfig.Port}/v1`
|
35
|
+
} else {
|
36
|
+
url = `${ApplicationConfig.Protocol}://${ApplicationConfig.Domain}/v1`
|
37
|
+
} */
|
38
|
+
const adminClient = new Client()
|
39
|
+
.setEndpoint(url) // Your API Endpoint
|
40
|
+
.setProject('console');
|
41
|
+
return adminClient;
|
42
|
+
}
|
@@ -0,0 +1,62 @@
|
|
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
|
+
export async function getSDKForCurrentUser() {
|
19
|
+
const adminClient = await getAppcondaClient();
|
20
|
+
const c = await cookies();
|
21
|
+
const s = c.get('a_session') || c.get('a_session_console_legacy');
|
22
|
+
if (!s || !s.value) {
|
23
|
+
throw new Error("No session");
|
24
|
+
}
|
25
|
+
adminClient.setSession(s.value);
|
26
|
+
const accounts = new Account(adminClient);
|
27
|
+
const databases = new Databases(adminClient);
|
28
|
+
const projects = new Projects(adminClient);
|
29
|
+
const currentUser = await accounts.get();
|
30
|
+
const users = new Users(adminClient);
|
31
|
+
const teams = new Teams(adminClient);
|
32
|
+
const tenants = new Tenant(adminClient);
|
33
|
+
const roles = new Roles(adminClient);
|
34
|
+
const permissions = new Permissions(adminClient);
|
35
|
+
const schemas = new Schemas(adminClient);
|
36
|
+
const community = new Community(adminClient);
|
37
|
+
const tenantSubscriptions = new TenantSubscription(adminClient);
|
38
|
+
const subscription = new Subscription(adminClient);
|
39
|
+
const pricing = new Pricing(adminClient);
|
40
|
+
const configuration = new Configuration(adminClient);
|
41
|
+
//const acl = new Acl(adminClient);
|
42
|
+
const node = new Node(adminClient);
|
43
|
+
return {
|
44
|
+
currentUser,
|
45
|
+
accounts,
|
46
|
+
databases,
|
47
|
+
projects,
|
48
|
+
users,
|
49
|
+
teams,
|
50
|
+
tenants,
|
51
|
+
roles,
|
52
|
+
permissions,
|
53
|
+
schemas,
|
54
|
+
community,
|
55
|
+
tenantSubscriptions,
|
56
|
+
subscription,
|
57
|
+
pricing,
|
58
|
+
configuration,
|
59
|
+
// acl,
|
60
|
+
node
|
61
|
+
};
|
62
|
+
}
|
package/dist/id.js
ADDED
@@ -0,0 +1,44 @@
|
|
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;
|
7
|
+
/**
|
8
|
+
* Helper class to generate ID strings for resources.
|
9
|
+
*/
|
10
|
+
export class ID {
|
11
|
+
/**
|
12
|
+
* Uses the provided ID as the ID for the resource.
|
13
|
+
*
|
14
|
+
* @param {string} id
|
15
|
+
* @returns {string}
|
16
|
+
*/
|
17
|
+
static custom(id) {
|
18
|
+
return id;
|
19
|
+
}
|
20
|
+
/**
|
21
|
+
* Have Appconda generate a unique ID for you.
|
22
|
+
*
|
23
|
+
* @param {number} padding. Default is 7.
|
24
|
+
* @returns {string}
|
25
|
+
*/
|
26
|
+
static unique(padding = 7) {
|
27
|
+
// Generate a unique ID with padding to have a longer ID
|
28
|
+
const baseId = __classPrivateFieldGet(_a, _a, "m", _ID_hexTimestamp).call(_a);
|
29
|
+
let randomPadding = '';
|
30
|
+
for (let i = 0; i < padding; i++) {
|
31
|
+
const randomHexDigit = Math.floor(Math.random() * 16).toString(16);
|
32
|
+
randomPadding += randomHexDigit;
|
33
|
+
}
|
34
|
+
return baseId + randomPadding;
|
35
|
+
}
|
36
|
+
}
|
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
|
+
};
|