@appconda/nextjs 1.0.21 → 1.0.22
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/index.js +54 -61
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/types/Cache/Adapter.d.ts +0 -10
- package/dist/types/Cache/Adapters/Filesystem.d.ts +0 -16
- package/dist/types/Cache/Adapters/Memory.d.ts +0 -18
- package/dist/types/Cache/Adapters/None.d.ts +0 -12
- package/dist/types/Cache/Adapters/Redis.d.ts +0 -14
- package/dist/types/Cache/Adapters/Sharding.d.ts +0 -17
- package/dist/types/Cache/Cache.d.ts +0 -16
- package/dist/types/Cache/index.d.ts +0 -5
- package/dist/types/Cache/test.d.ts +0 -0
- package/dist/types/Services.d.ts +0 -6
- package/dist/types/actions/actionClient.d.ts +0 -4
- package/dist/types/actions/index.d.ts +0 -1
- package/dist/types/actions/nodes.d.ts +0 -4
- package/dist/types/client.d.ts +0 -141
- package/dist/types/decorators/Cache.d.ts +0 -1
- package/dist/types/decorators/CacheKey.d.ts +0 -1
- package/dist/types/decorators/Invalidate.d.ts +0 -1
- package/dist/types/enums/api-service.d.ts +0 -13
- package/dist/types/enums/api.d.ts +0 -5
- package/dist/types/enums/auth-method.d.ts +0 -9
- package/dist/types/enums/authentication-factor.d.ts +0 -6
- package/dist/types/enums/authenticator-type.d.ts +0 -3
- package/dist/types/enums/browser.d.ts +0 -16
- package/dist/types/enums/compression.d.ts +0 -5
- package/dist/types/enums/credit-card.d.ts +0 -18
- package/dist/types/enums/database-usage-range.d.ts +0 -5
- package/dist/types/enums/email-template-locale.d.ts +0 -133
- package/dist/types/enums/email-template-type.d.ts +0 -9
- package/dist/types/enums/entities/EntityLimitType.d.ts +0 -4
- package/dist/types/enums/entities/PropertyAttributeName.d.ts +0 -27
- package/dist/types/enums/entities/PropertyCondition.d.ts +0 -7
- package/dist/types/enums/entities/PropertyType.d.ts +0 -12
- package/dist/types/enums/entities/PropertyValueType.d.ts +0 -6
- package/dist/types/enums/entities/RowAccess.d.ts +0 -2
- package/dist/types/enums/entities/ViewFilterCondition.d.ts +0 -12
- package/dist/types/enums/execution-method.d.ts +0 -8
- package/dist/types/enums/flag.d.ts +0 -197
- package/dist/types/enums/function-usage-range.d.ts +0 -5
- package/dist/types/enums/image-format.d.ts +0 -7
- package/dist/types/enums/image-gravity.d.ts +0 -11
- package/dist/types/enums/index-type.d.ts +0 -5
- package/dist/types/enums/messaging-provider-type.d.ts +0 -5
- package/dist/types/enums/name.d.ts +0 -14
- package/dist/types/enums/o-auth-provider copy.d.ts +0 -41
- package/dist/types/enums/o-auth-provider.d.ts +0 -41
- package/dist/types/enums/password-hash.d.ts +0 -13
- package/dist/types/enums/platform-type.d.ts +0 -17
- package/dist/types/enums/project-usage-range.d.ts +0 -4
- package/dist/types/enums/region.d.ts +0 -4
- package/dist/types/enums/relation-mutate.d.ts +0 -5
- package/dist/types/enums/relationship-type.d.ts +0 -6
- package/dist/types/enums/resource-type.d.ts +0 -4
- package/dist/types/enums/runtime.d.ts +0 -48
- package/dist/types/enums/s-m-t-p-secure.d.ts +0 -3
- package/dist/types/enums/shared/ApplicationLayout.d.ts +0 -4
- package/dist/types/enums/shared/Colors.d.ts +0 -24
- package/dist/types/enums/shared/InputType.d.ts +0 -6
- package/dist/types/enums/shared/Periodicity.d.ts +0 -7
- package/dist/types/enums/shared/SvgIcon.d.ts +0 -37
- package/dist/types/enums/shared/Theme.d.ts +0 -4
- package/dist/types/enums/sms-template-locale.d.ts +0 -133
- package/dist/types/enums/sms-template-type.d.ts +0 -6
- package/dist/types/enums/smtp-encryption.d.ts +0 -5
- package/dist/types/enums/storage-usage-range.d.ts +0 -5
- package/dist/types/enums/subscriptions/PricingModel.d.ts +0 -11
- package/dist/types/enums/subscriptions/SubscriptionBillingPeriod.d.ts +0 -10
- package/dist/types/enums/subscriptions/SubscriptionFeatureLimitType.d.ts +0 -10
- package/dist/types/enums/subscriptions/SubscriptionPriceType.d.ts +0 -7
- package/dist/types/enums/tenants/LinkedAccountStatus.d.ts +0 -5
- package/dist/types/enums/tenants/TenantUserJoined.d.ts +0 -6
- package/dist/types/enums/tenants/TenantUserStatus.d.ts +0 -6
- package/dist/types/enums/tenants/TenantUserType.d.ts +0 -5
- package/dist/types/enums/user-usage-range.d.ts +0 -5
- package/dist/types/getAppcondaClient.d.ts +0 -2
- package/dist/types/getSDKForCurrentUser.d.ts +0 -33
- package/dist/types/id.d.ts +0 -20
- package/dist/types/index.d.ts +0 -39
- package/dist/types/inputFile.d.ts +0 -6
- package/dist/types/lib/Registry/Registry.d.ts +0 -38
- package/dist/types/lib/Registry/index.d.ts +0 -1
- package/dist/types/models.d.ts +0 -3272
- package/dist/types/permission.d.ts +0 -43
- package/dist/types/query.d.ts +0 -194
- package/dist/types/role.d.ts +0 -70
- package/dist/types/service-client.d.ts +0 -7
- package/dist/types/service.d.ts +0 -11
- package/dist/types/services/account.d.ts +0 -530
- package/dist/types/services/applets.d.ts +0 -9
- package/dist/types/services/avatars.d.ts +0 -115
- package/dist/types/services/community.d.ts +0 -19
- package/dist/types/services/configuration.d.ts +0 -5
- package/dist/types/services/databases.d.ts +0 -613
- package/dist/types/services/functions.d.ts +0 -319
- package/dist/types/services/graphql.d.ts +0 -25
- package/dist/types/services/health.d.ts +0 -231
- package/dist/types/services/locale.d.ts +0 -80
- package/dist/types/services/messaging.d.ts +0 -685
- package/dist/types/services/node.d.ts +0 -5
- package/dist/types/services/permissions.d.ts +0 -20
- package/dist/types/services/pricing.d.ts +0 -15
- package/dist/types/services/projects.d.ts +0 -542
- package/dist/types/services/roles.d.ts +0 -19
- package/dist/types/services/schema.d.ts +0 -17
- package/dist/types/services/storage.d.ts +0 -189
- package/dist/types/services/subscription.d.ts +0 -15
- package/dist/types/services/teams.d.ts +0 -167
- package/dist/types/services/tenant-subscription.d.ts +0 -12
- package/dist/types/services/tenant.d.ts +0 -32
- package/dist/types/services/users.d.ts +0 -499
- package/dist/types/services/waitlist.d.ts +0 -5
package/dist/index.js
CHANGED
@@ -1,8 +1,10 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
var nodeFetchNativeWithAgent = require('node-fetch-native-with-agent');
|
4
|
+
var agent = require('node-fetch-native-with-agent/agent');
|
5
|
+
var headers = require('next/headers');
|
6
|
+
var redis = require('redis');
|
7
|
+
var nextSafeAction = require('next-safe-action');
|
6
8
|
|
7
9
|
/**
|
8
10
|
* Helper class to generate query strings.
|
@@ -416,7 +418,7 @@ class Client {
|
|
416
418
|
let options = {
|
417
419
|
method,
|
418
420
|
headers,
|
419
|
-
...createAgent(this.config.endpoint, { rejectUnauthorized: !this.config.selfSigned }),
|
421
|
+
...agent.createAgent(this.config.endpoint, { rejectUnauthorized: !this.config.selfSigned }),
|
420
422
|
};
|
421
423
|
if (method === 'GET') {
|
422
424
|
for (const [key, value] of Object.entries(Client.flatten(params))) {
|
@@ -429,9 +431,9 @@ class Client {
|
|
429
431
|
options.body = JSON.stringify(params);
|
430
432
|
break;
|
431
433
|
case 'multipart/form-data':
|
432
|
-
const formData = new FormData();
|
434
|
+
const formData = new nodeFetchNativeWithAgent.FormData();
|
433
435
|
for (const [key, value] of Object.entries(params)) {
|
434
|
-
if (value instanceof File) {
|
436
|
+
if (value instanceof nodeFetchNativeWithAgent.File) {
|
435
437
|
formData.append(key, value, value.name);
|
436
438
|
}
|
437
439
|
else if (Array.isArray(value)) {
|
@@ -451,7 +453,7 @@ class Client {
|
|
451
453
|
return { uri: url.toString(), options };
|
452
454
|
}
|
453
455
|
async chunkedUpload(method, url, headers = {}, originalPayload = {}, onProgress) {
|
454
|
-
const file = Object.values(originalPayload).find((value) => value instanceof File);
|
456
|
+
const file = Object.values(originalPayload).find((value) => value instanceof nodeFetchNativeWithAgent.File);
|
455
457
|
if (file.size <= Client.CHUNK_SIZE) {
|
456
458
|
return await this.call(method, url, headers, originalPayload);
|
457
459
|
}
|
@@ -464,7 +466,7 @@ class Client {
|
|
464
466
|
}
|
465
467
|
headers['content-range'] = `bytes ${start}-${end - 1}/${file.size}`;
|
466
468
|
const chunk = file.slice(start, end);
|
467
|
-
let payload = { ...originalPayload, file: new File([chunk], file.name) };
|
469
|
+
let payload = { ...originalPayload, file: new nodeFetchNativeWithAgent.File([chunk], file.name) };
|
468
470
|
response = await this.call(method, url, headers, payload);
|
469
471
|
if (onProgress && typeof onProgress === 'function') {
|
470
472
|
onProgress({
|
@@ -484,7 +486,7 @@ class Client {
|
|
484
486
|
}
|
485
487
|
async redirect(method, url, headers = {}, params = {}) {
|
486
488
|
const { uri, options } = this.prepareRequest(method, url, headers, params);
|
487
|
-
const response = await fetch(uri, {
|
489
|
+
const response = await nodeFetchNativeWithAgent.fetch(uri, {
|
488
490
|
...options,
|
489
491
|
redirect: 'manual'
|
490
492
|
});
|
@@ -497,7 +499,7 @@ class Client {
|
|
497
499
|
const { uri, options } = this.prepareRequest(method, url, headers, params);
|
498
500
|
let data = null;
|
499
501
|
try {
|
500
|
-
const response = await fetch(uri, options);
|
502
|
+
const response = await nodeFetchNativeWithAgent.fetch(uri, options);
|
501
503
|
const warnings = response.headers.get('x-appconda-warning');
|
502
504
|
if (warnings) {
|
503
505
|
warnings.split(';').forEach((warning) => console.warn('Warning: ' + warning));
|
@@ -9622,20 +9624,20 @@ _a = ID, _ID_hexTimestamp = function _ID_hexTimestamp() {
|
|
9622
9624
|
return hexTimestamp;
|
9623
9625
|
};
|
9624
9626
|
|
9625
|
-
|
9627
|
+
exports.AuthenticatorType = void 0;
|
9626
9628
|
(function (AuthenticatorType) {
|
9627
9629
|
AuthenticatorType["Totp"] = "totp";
|
9628
|
-
})(AuthenticatorType || (AuthenticatorType = {}));
|
9630
|
+
})(exports.AuthenticatorType || (exports.AuthenticatorType = {}));
|
9629
9631
|
|
9630
|
-
|
9632
|
+
exports.AuthenticationFactor = void 0;
|
9631
9633
|
(function (AuthenticationFactor) {
|
9632
9634
|
AuthenticationFactor["Email"] = "email";
|
9633
9635
|
AuthenticationFactor["Phone"] = "phone";
|
9634
9636
|
AuthenticationFactor["Totp"] = "totp";
|
9635
9637
|
AuthenticationFactor["Recoverycode"] = "recoverycode";
|
9636
|
-
})(AuthenticationFactor || (AuthenticationFactor = {}));
|
9638
|
+
})(exports.AuthenticationFactor || (exports.AuthenticationFactor = {}));
|
9637
9639
|
|
9638
|
-
|
9640
|
+
exports.OAuthProvider = void 0;
|
9639
9641
|
(function (OAuthProvider) {
|
9640
9642
|
OAuthProvider["Amazon"] = "amazon";
|
9641
9643
|
OAuthProvider["Apple"] = "apple";
|
@@ -9676,9 +9678,9 @@ var OAuthProvider;
|
|
9676
9678
|
OAuthProvider["Zoho"] = "zoho";
|
9677
9679
|
OAuthProvider["Zoom"] = "zoom";
|
9678
9680
|
OAuthProvider["Mock"] = "mock";
|
9679
|
-
})(OAuthProvider || (OAuthProvider = {}));
|
9681
|
+
})(exports.OAuthProvider || (exports.OAuthProvider = {}));
|
9680
9682
|
|
9681
|
-
|
9683
|
+
exports.Browser = void 0;
|
9682
9684
|
(function (Browser) {
|
9683
9685
|
Browser["AvantBrowser"] = "aa";
|
9684
9686
|
Browser["AndroidWebViewBeta"] = "an";
|
@@ -9694,9 +9696,9 @@ var Browser;
|
|
9694
9696
|
Browser["OperaMini"] = "om";
|
9695
9697
|
Browser["Opera"] = "op";
|
9696
9698
|
Browser["OperaNext"] = "on";
|
9697
|
-
})(Browser || (Browser = {}));
|
9699
|
+
})(exports.Browser || (exports.Browser = {}));
|
9698
9700
|
|
9699
|
-
|
9701
|
+
exports.CreditCard = void 0;
|
9700
9702
|
(function (CreditCard) {
|
9701
9703
|
CreditCard["AmericanExpress"] = "amex";
|
9702
9704
|
CreditCard["Argencard"] = "argencard";
|
@@ -9714,9 +9716,9 @@ var CreditCard;
|
|
9714
9716
|
CreditCard["Visa"] = "visa";
|
9715
9717
|
CreditCard["MIR"] = "mir";
|
9716
9718
|
CreditCard["Maestro"] = "maestro";
|
9717
|
-
})(CreditCard || (CreditCard = {}));
|
9719
|
+
})(exports.CreditCard || (exports.CreditCard = {}));
|
9718
9720
|
|
9719
|
-
|
9721
|
+
exports.Flag = void 0;
|
9720
9722
|
(function (Flag) {
|
9721
9723
|
Flag["Afghanistan"] = "af";
|
9722
9724
|
Flag["Angola"] = "ao";
|
@@ -9913,31 +9915,31 @@ var Flag;
|
|
9913
9915
|
Flag["SouthAfrica"] = "za";
|
9914
9916
|
Flag["Zambia"] = "zm";
|
9915
9917
|
Flag["Zimbabwe"] = "zw";
|
9916
|
-
})(Flag || (Flag = {}));
|
9918
|
+
})(exports.Flag || (exports.Flag = {}));
|
9917
9919
|
|
9918
|
-
|
9920
|
+
exports.RelationshipType = void 0;
|
9919
9921
|
(function (RelationshipType) {
|
9920
9922
|
RelationshipType["OneToOne"] = "oneToOne";
|
9921
9923
|
RelationshipType["ManyToOne"] = "manyToOne";
|
9922
9924
|
RelationshipType["ManyToMany"] = "manyToMany";
|
9923
9925
|
RelationshipType["OneToMany"] = "oneToMany";
|
9924
|
-
})(RelationshipType || (RelationshipType = {}));
|
9926
|
+
})(exports.RelationshipType || (exports.RelationshipType = {}));
|
9925
9927
|
|
9926
|
-
|
9928
|
+
exports.RelationMutate = void 0;
|
9927
9929
|
(function (RelationMutate) {
|
9928
9930
|
RelationMutate["Cascade"] = "cascade";
|
9929
9931
|
RelationMutate["Restrict"] = "restrict";
|
9930
9932
|
RelationMutate["SetNull"] = "setNull";
|
9931
|
-
})(RelationMutate || (RelationMutate = {}));
|
9933
|
+
})(exports.RelationMutate || (exports.RelationMutate = {}));
|
9932
9934
|
|
9933
|
-
|
9935
|
+
exports.IndexType = void 0;
|
9934
9936
|
(function (IndexType) {
|
9935
9937
|
IndexType["Key"] = "key";
|
9936
9938
|
IndexType["Fulltext"] = "fulltext";
|
9937
9939
|
IndexType["Unique"] = "unique";
|
9938
|
-
})(IndexType || (IndexType = {}));
|
9940
|
+
})(exports.IndexType || (exports.IndexType = {}));
|
9939
9941
|
|
9940
|
-
|
9942
|
+
exports.Runtime = void 0;
|
9941
9943
|
(function (Runtime) {
|
9942
9944
|
Runtime["Node145"] = "node-14.5";
|
9943
9945
|
Runtime["Node160"] = "node-16.0";
|
@@ -9985,9 +9987,9 @@ var Runtime;
|
|
9985
9987
|
Runtime["Cpp20"] = "cpp-20";
|
9986
9988
|
Runtime["Bun10"] = "bun-1.0";
|
9987
9989
|
Runtime["Go123"] = "go-1.23";
|
9988
|
-
})(Runtime || (Runtime = {}));
|
9990
|
+
})(exports.Runtime || (exports.Runtime = {}));
|
9989
9991
|
|
9990
|
-
|
9992
|
+
exports.ExecutionMethod = void 0;
|
9991
9993
|
(function (ExecutionMethod) {
|
9992
9994
|
ExecutionMethod["GET"] = "GET";
|
9993
9995
|
ExecutionMethod["POST"] = "POST";
|
@@ -9995,9 +9997,9 @@ var ExecutionMethod;
|
|
9995
9997
|
ExecutionMethod["PATCH"] = "PATCH";
|
9996
9998
|
ExecutionMethod["DELETE"] = "DELETE";
|
9997
9999
|
ExecutionMethod["OPTIONS"] = "OPTIONS";
|
9998
|
-
})(ExecutionMethod || (ExecutionMethod = {}));
|
10000
|
+
})(exports.ExecutionMethod || (exports.ExecutionMethod = {}));
|
9999
10001
|
|
10000
|
-
|
10002
|
+
exports.Name = void 0;
|
10001
10003
|
(function (Name) {
|
10002
10004
|
Name["V1database"] = "v1-database";
|
10003
10005
|
Name["V1deletes"] = "v1-deletes";
|
@@ -10011,23 +10013,23 @@ var Name;
|
|
10011
10013
|
Name["V1builds"] = "v1-builds";
|
10012
10014
|
Name["V1messaging"] = "v1-messaging";
|
10013
10015
|
Name["V1migrations"] = "v1-migrations";
|
10014
|
-
})(Name || (Name = {}));
|
10016
|
+
})(exports.Name || (exports.Name = {}));
|
10015
10017
|
|
10016
|
-
|
10018
|
+
exports.SmtpEncryption = void 0;
|
10017
10019
|
(function (SmtpEncryption) {
|
10018
10020
|
SmtpEncryption["None"] = "none";
|
10019
10021
|
SmtpEncryption["Ssl"] = "ssl";
|
10020
10022
|
SmtpEncryption["Tls"] = "tls";
|
10021
|
-
})(SmtpEncryption || (SmtpEncryption = {}));
|
10023
|
+
})(exports.SmtpEncryption || (exports.SmtpEncryption = {}));
|
10022
10024
|
|
10023
|
-
|
10025
|
+
exports.Compression = void 0;
|
10024
10026
|
(function (Compression) {
|
10025
10027
|
Compression["None"] = "none";
|
10026
10028
|
Compression["Gzip"] = "gzip";
|
10027
10029
|
Compression["Zstd"] = "zstd";
|
10028
|
-
})(Compression || (Compression = {}));
|
10030
|
+
})(exports.Compression || (exports.Compression = {}));
|
10029
10031
|
|
10030
|
-
|
10032
|
+
exports.ImageGravity = void 0;
|
10031
10033
|
(function (ImageGravity) {
|
10032
10034
|
ImageGravity["Center"] = "center";
|
10033
10035
|
ImageGravity["Topleft"] = "top-left";
|
@@ -10038,18 +10040,18 @@ var ImageGravity;
|
|
10038
10040
|
ImageGravity["Bottomleft"] = "bottom-left";
|
10039
10041
|
ImageGravity["Bottom"] = "bottom";
|
10040
10042
|
ImageGravity["Bottomright"] = "bottom-right";
|
10041
|
-
})(ImageGravity || (ImageGravity = {}));
|
10043
|
+
})(exports.ImageGravity || (exports.ImageGravity = {}));
|
10042
10044
|
|
10043
|
-
|
10045
|
+
exports.ImageFormat = void 0;
|
10044
10046
|
(function (ImageFormat) {
|
10045
10047
|
ImageFormat["Jpg"] = "jpg";
|
10046
10048
|
ImageFormat["Jpeg"] = "jpeg";
|
10047
10049
|
ImageFormat["Gif"] = "gif";
|
10048
10050
|
ImageFormat["Png"] = "png";
|
10049
10051
|
ImageFormat["Webp"] = "webp";
|
10050
|
-
})(ImageFormat || (ImageFormat = {}));
|
10052
|
+
})(exports.ImageFormat || (exports.ImageFormat = {}));
|
10051
10053
|
|
10052
|
-
|
10054
|
+
exports.PasswordHash = void 0;
|
10053
10055
|
(function (PasswordHash) {
|
10054
10056
|
PasswordHash["Sha1"] = "sha1";
|
10055
10057
|
PasswordHash["Sha224"] = "sha224";
|
@@ -10062,14 +10064,14 @@ var PasswordHash;
|
|
10062
10064
|
PasswordHash["Sha3256"] = "sha3-256";
|
10063
10065
|
PasswordHash["Sha3384"] = "sha3-384";
|
10064
10066
|
PasswordHash["Sha3512"] = "sha3-512";
|
10065
|
-
})(PasswordHash || (PasswordHash = {}));
|
10067
|
+
})(exports.PasswordHash || (exports.PasswordHash = {}));
|
10066
10068
|
|
10067
|
-
|
10069
|
+
exports.MessagingProviderType = void 0;
|
10068
10070
|
(function (MessagingProviderType) {
|
10069
10071
|
MessagingProviderType["Email"] = "email";
|
10070
10072
|
MessagingProviderType["Sms"] = "sms";
|
10071
10073
|
MessagingProviderType["Push"] = "push";
|
10072
|
-
})(MessagingProviderType || (MessagingProviderType = {}));
|
10074
|
+
})(exports.MessagingProviderType || (exports.MessagingProviderType = {}));
|
10073
10075
|
|
10074
10076
|
function getPortAndHostname(urlString) {
|
10075
10077
|
try {
|
@@ -12044,7 +12046,7 @@ Cache$1.caseSensitive = false;
|
|
12044
12046
|
|
12045
12047
|
const registry = new Registry();
|
12046
12048
|
registry.set('cache', () => {
|
12047
|
-
const client = createClient({
|
12049
|
+
const client = redis.createClient({
|
12048
12050
|
socket: {
|
12049
12051
|
host: process.env._APP_REDIS_HOST ?? 'localhost',
|
12050
12052
|
port: Number.parseInt(process.env._APP_REDIS_PORT ?? '6379'),
|
@@ -12446,7 +12448,7 @@ class Permissions {
|
|
12446
12448
|
|
12447
12449
|
async function getSDKForCurrentUser() {
|
12448
12450
|
const adminClient = await getAppcondaClient();
|
12449
|
-
const c = await cookies();
|
12451
|
+
const c = await headers.cookies();
|
12450
12452
|
const s = c.get('a_session') || c.get('a_session_console_legacy');
|
12451
12453
|
if (!s || !s.value) {
|
12452
12454
|
throw new Error("No session");
|
@@ -12490,7 +12492,7 @@ async function getSDKForCurrentUser() {
|
|
12490
12492
|
};
|
12491
12493
|
}
|
12492
12494
|
|
12493
|
-
const actionClient = createSafeActionClient({
|
12495
|
+
const actionClient = nextSafeAction.createSafeActionClient({
|
12494
12496
|
handleServerError(e) {
|
12495
12497
|
/* if (
|
12496
12498
|
e instanceof ResourceNotFoundError ||
|
@@ -12505,7 +12507,7 @@ const actionClient = createSafeActionClient({
|
|
12505
12507
|
} */
|
12506
12508
|
// eslint-disable-next-line no-console -- This error needs to be logged for debugging server-side errors
|
12507
12509
|
console.error("SERVER ERROR: ", e);
|
12508
|
-
return DEFAULT_SERVER_ERROR_MESSAGE;
|
12510
|
+
return nextSafeAction.DEFAULT_SERVER_ERROR_MESSAGE;
|
12509
12511
|
},
|
12510
12512
|
});
|
12511
12513
|
/* export const authenticatedActionClient = actionClient.use(async ({ next }) => {
|
@@ -12532,15 +12534,6 @@ const getAllNodesAction = actionClient
|
|
12532
12534
|
return await node.GetAllNodes();
|
12533
12535
|
});
|
12534
12536
|
|
12535
|
-
export { Account, AppcondaException, Applets, AuthenticationFactor, AuthenticatorType, Avatars, Browser, Client, Compression, CreditCard, Databases, ExecutionMethod, Flag, Functions, Graphql, Health, ID, ImageFormat, ImageGravity, IndexType, Locale, Messaging, MessagingProviderType, Name, OAuthProvider, PasswordHash, Permission, Query, RelationMutate, RelationshipType, Role, Runtime, SmtpEncryption, Storage, Teams, Users, Waitlist, getAllNodesAction, getSDKForCurrentUser };
|
12536
|
-
//# sourceMappingURL=index.js.map
|
12537
|
-
ent
|
12538
|
-
// .schema(listModelsSchema)
|
12539
|
-
.action(async ({ parsedInput }) => {
|
12540
|
-
const { node } = await getSDKForCurrentUser();
|
12541
|
-
return await node.GetAllNodes();
|
12542
|
-
});
|
12543
|
-
|
12544
12537
|
exports.Account = Account;
|
12545
12538
|
exports.AppcondaException = AppcondaException;
|
12546
12539
|
exports.Applets = Applets;
|