@appconda/nextjs 1.0.13 → 1.0.15

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.
Files changed (125) hide show
  1. package/dist/cjs/sdk.js +74 -16
  2. package/dist/cjs/sdk.js.map +1 -1
  3. package/dist/esm/sdk.js +73 -17
  4. package/dist/esm/sdk.js.map +1 -1
  5. package/dist/iife/sdk.js +75 -18
  6. package/package.json +2 -1
  7. package/src/actions/actionClient.ts +42 -0
  8. package/src/actions/index.ts +1 -0
  9. package/src/actions/nodes.ts +12 -0
  10. package/src/index.ts +2 -0
  11. package/src/services/waitlist.ts +16 -0
  12. package/types/Cache/Adapter.d.ts +0 -10
  13. package/types/Cache/Adapters/Filesystem.d.ts +0 -16
  14. package/types/Cache/Adapters/Memory.d.ts +0 -18
  15. package/types/Cache/Adapters/None.d.ts +0 -12
  16. package/types/Cache/Adapters/Redis.d.ts +0 -14
  17. package/types/Cache/Adapters/Sharding.d.ts +0 -17
  18. package/types/Cache/Cache.d.ts +0 -16
  19. package/types/Cache/index.d.ts +0 -5
  20. package/types/Cache/test.d.ts +0 -0
  21. package/types/Services.d.ts +0 -6
  22. package/types/client.d.ts +0 -141
  23. package/types/decorators/Cache.d.ts +0 -1
  24. package/types/decorators/CacheKey.d.ts +0 -1
  25. package/types/decorators/Invalidate.d.ts +0 -1
  26. package/types/enums/api-service.d.ts +0 -13
  27. package/types/enums/api.d.ts +0 -5
  28. package/types/enums/auth-method.d.ts +0 -9
  29. package/types/enums/authentication-factor.d.ts +0 -6
  30. package/types/enums/authenticator-type.d.ts +0 -3
  31. package/types/enums/browser.d.ts +0 -16
  32. package/types/enums/compression.d.ts +0 -5
  33. package/types/enums/credit-card.d.ts +0 -18
  34. package/types/enums/database-usage-range.d.ts +0 -5
  35. package/types/enums/email-template-locale.d.ts +0 -133
  36. package/types/enums/email-template-type.d.ts +0 -9
  37. package/types/enums/entities/EntityLimitType.d.ts +0 -4
  38. package/types/enums/entities/PropertyAttributeName.d.ts +0 -27
  39. package/types/enums/entities/PropertyCondition.d.ts +0 -7
  40. package/types/enums/entities/PropertyType.d.ts +0 -12
  41. package/types/enums/entities/PropertyValueType.d.ts +0 -6
  42. package/types/enums/entities/RowAccess.d.ts +0 -2
  43. package/types/enums/entities/ViewFilterCondition.d.ts +0 -12
  44. package/types/enums/execution-method.d.ts +0 -8
  45. package/types/enums/flag.d.ts +0 -197
  46. package/types/enums/function-usage-range.d.ts +0 -5
  47. package/types/enums/image-format.d.ts +0 -7
  48. package/types/enums/image-gravity.d.ts +0 -11
  49. package/types/enums/index-type.d.ts +0 -5
  50. package/types/enums/messaging-provider-type.d.ts +0 -5
  51. package/types/enums/name.d.ts +0 -14
  52. package/types/enums/o-auth-provider copy.d.ts +0 -41
  53. package/types/enums/o-auth-provider.d.ts +0 -41
  54. package/types/enums/password-hash.d.ts +0 -13
  55. package/types/enums/platform-type.d.ts +0 -17
  56. package/types/enums/project-usage-range.d.ts +0 -4
  57. package/types/enums/region.d.ts +0 -4
  58. package/types/enums/relation-mutate.d.ts +0 -5
  59. package/types/enums/relationship-type.d.ts +0 -6
  60. package/types/enums/resource-type.d.ts +0 -4
  61. package/types/enums/runtime.d.ts +0 -48
  62. package/types/enums/s-m-t-p-secure.d.ts +0 -3
  63. package/types/enums/shared/ApplicationLayout.d.ts +0 -4
  64. package/types/enums/shared/Colors.d.ts +0 -24
  65. package/types/enums/shared/InputType.d.ts +0 -6
  66. package/types/enums/shared/Periodicity.d.ts +0 -7
  67. package/types/enums/shared/SvgIcon.d.ts +0 -37
  68. package/types/enums/shared/Theme.d.ts +0 -4
  69. package/types/enums/sms-template-locale.d.ts +0 -133
  70. package/types/enums/sms-template-type.d.ts +0 -6
  71. package/types/enums/smtp-encryption.d.ts +0 -5
  72. package/types/enums/storage-usage-range.d.ts +0 -5
  73. package/types/enums/subscriptions/PricingModel.d.ts +0 -11
  74. package/types/enums/subscriptions/SubscriptionBillingPeriod.d.ts +0 -10
  75. package/types/enums/subscriptions/SubscriptionFeatureLimitType.d.ts +0 -10
  76. package/types/enums/subscriptions/SubscriptionPriceType.d.ts +0 -7
  77. package/types/enums/tenants/LinkedAccountStatus.d.ts +0 -5
  78. package/types/enums/tenants/TenantUserJoined.d.ts +0 -6
  79. package/types/enums/tenants/TenantUserStatus.d.ts +0 -6
  80. package/types/enums/tenants/TenantUserType.d.ts +0 -5
  81. package/types/enums/user-usage-range.d.ts +0 -5
  82. package/types/getAppcondaClient.d.ts +0 -2
  83. package/types/getSDKForCurrentUser.d.ts +0 -33
  84. package/types/id.d.ts +0 -20
  85. package/types/index.d.ts +0 -37
  86. package/types/inputFile.d.ts +0 -6
  87. package/types/lib/Registry/Registry.d.ts +0 -38
  88. package/types/lib/Registry/index.d.ts +0 -1
  89. package/types/models.d.ts +0 -3272
  90. package/types/permission.d.ts +0 -43
  91. package/types/query.d.ts +0 -194
  92. package/types/role.d.ts +0 -70
  93. package/types/service-client.d.ts +0 -7
  94. package/types/service.d.ts +0 -11
  95. package/types/services/account.d.ts +0 -530
  96. package/types/services/acl.d.ts +0 -28
  97. package/types/services/applets.d.ts +0 -9
  98. package/types/services/assistant.d.ts +0 -14
  99. package/types/services/avatars.d.ts +0 -115
  100. package/types/services/community.d.ts +0 -19
  101. package/types/services/configuration.d.ts +0 -5
  102. package/types/services/console.d.ts +0 -15
  103. package/types/services/databases.d.ts +0 -613
  104. package/types/services/functions.d.ts +0 -319
  105. package/types/services/graphql.d.ts +0 -25
  106. package/types/services/health.d.ts +0 -231
  107. package/types/services/locale.d.ts +0 -80
  108. package/types/services/messaging.d.ts +0 -685
  109. package/types/services/migrations.d.ts +0 -185
  110. package/types/services/node.d.ts +0 -5
  111. package/types/services/permissions.d.ts +0 -20
  112. package/types/services/pricing.d.ts +0 -15
  113. package/types/services/project.d.ts +0 -70
  114. package/types/services/projects.d.ts +0 -542
  115. package/types/services/proxy.d.ts +0 -59
  116. package/types/services/roles.d.ts +0 -19
  117. package/types/services/schema.d.ts +0 -17
  118. package/types/services/storage.d.ts +0 -189
  119. package/types/services/subscription-product.d.ts +0 -77
  120. package/types/services/subscription.d.ts +0 -15
  121. package/types/services/teams.d.ts +0 -167
  122. package/types/services/tenant-subscription.d.ts +0 -12
  123. package/types/services/tenant.d.ts +0 -32
  124. package/types/services/users.d.ts +0 -499
  125. package/types/services/vcs.d.ts +0 -108
package/dist/iife/sdk.js CHANGED
@@ -1,4 +1,4 @@
1
- (function (exports, nodeFetchNativeWithAgent, agent, headers, redis) {
1
+ (function (exports, nodeFetchNativeWithAgent, agent, headers, redis, nextSafeAction) {
2
2
  'use strict';
3
3
 
4
4
  /******************************************************************************
@@ -9959,6 +9959,35 @@
9959
9959
  }
9960
9960
  }
9961
9961
 
9962
+ class ServiceClient {
9963
+ constructor(client) {
9964
+ this.client = client;
9965
+ }
9966
+ actionCall(actionName, payload) {
9967
+ return __awaiter(this, void 0, void 0, function* () {
9968
+ const apiPath = `/service/registry/${this.getServiceName()}/${actionName}`;
9969
+ const uri = new URL(this.client.config.endpoint + apiPath);
9970
+ const apiHeaders = {
9971
+ 'content-type': 'application/json',
9972
+ };
9973
+ return yield this.client.call('post', uri, apiHeaders, payload);
9974
+ });
9975
+ }
9976
+ }
9977
+
9978
+ class Waitlist extends ServiceClient {
9979
+ getServiceName() {
9980
+ return 'com.appconda.service.waitlist';
9981
+ }
9982
+ ListWiatlistSignups(waitlistId) {
9983
+ return __awaiter(this, void 0, void 0, function* () {
9984
+ const payload = {};
9985
+ payload['waitlistId'];
9986
+ return yield this.actionCall('ListWiatlistSignups', payload);
9987
+ });
9988
+ }
9989
+ }
9990
+
9962
9991
  /**
9963
9992
  * Helper class to generate permission strings for resources.
9964
9993
  */
@@ -10714,22 +10743,6 @@
10714
10743
  }
10715
10744
  }
10716
10745
 
10717
- class ServiceClient {
10718
- constructor(client) {
10719
- this.client = client;
10720
- }
10721
- actionCall(actionName, payload) {
10722
- return __awaiter(this, void 0, void 0, function* () {
10723
- const apiPath = `/service/registry/${this.getServiceName()}/${actionName}`;
10724
- const uri = new URL(this.client.config.endpoint + apiPath);
10725
- const apiHeaders = {
10726
- 'content-type': 'application/json',
10727
- };
10728
- return yield this.client.call('post', uri, apiHeaders, payload);
10729
- });
10730
- }
10731
- }
10732
-
10733
10746
  class Configuration extends ServiceClient {
10734
10747
  getServiceName() {
10735
10748
  return 'com.appconda.service.configuration';
@@ -13216,6 +13229,48 @@
13216
13229
  });
13217
13230
  }
13218
13231
 
13232
+ const actionClient = nextSafeAction.createSafeActionClient({
13233
+ handleServerError(e) {
13234
+ /* if (
13235
+ e instanceof ResourceNotFoundError ||
13236
+ e instanceof AuthorizationError ||
13237
+ e instanceof InvalidInputError ||
13238
+ e instanceof UnknownError ||
13239
+ e instanceof AuthenticationError ||
13240
+ e instanceof OperationNotAllowedError ||
13241
+ e instanceof AppcondaException
13242
+ ) {
13243
+ return e.message;
13244
+ } */
13245
+ // eslint-disable-next-line no-console -- This error needs to be logged for debugging server-side errors
13246
+ console.error("SERVER ERROR: ", e);
13247
+ return nextSafeAction.DEFAULT_SERVER_ERROR_MESSAGE;
13248
+ },
13249
+ });
13250
+ /* export const authenticatedActionClient = actionClient.use(async ({ next }) => {
13251
+ const session = await getServerSession(authOptions);
13252
+ if (!session?.user) {
13253
+ throw new AuthenticationError("Not authenticated");
13254
+ }
13255
+
13256
+ const userId = session.user.id;
13257
+
13258
+ const user = await getUser(userId);
13259
+ if (!user) {
13260
+ throw new AuthorizationError("User not found");
13261
+ }
13262
+
13263
+ return next({ ctx: { user } });
13264
+ });
13265
+ */
13266
+
13267
+ const getAllNodesAction = actionClient
13268
+ // .schema(listModelsSchema)
13269
+ .action((_a) => __awaiter(void 0, [_a], void 0, function* ({ parsedInput }) {
13270
+ const { node } = yield getSDKForCurrentUser();
13271
+ return yield node.GetAllNodes();
13272
+ }));
13273
+
13219
13274
  exports.Account = Account;
13220
13275
  exports.AppcondaException = AppcondaException;
13221
13276
  exports.Applets = Applets;
@@ -13234,8 +13289,10 @@
13234
13289
  exports.Storage = Storage;
13235
13290
  exports.Teams = Teams;
13236
13291
  exports.Users = Users;
13292
+ exports.Waitlist = Waitlist;
13293
+ exports.getAllNodesAction = getAllNodesAction;
13237
13294
  exports.getSDKForCurrentUser = getSDKForCurrentUser;
13238
13295
 
13239
13296
  Object.defineProperty(exports, '__esModule', { value: true });
13240
13297
 
13241
- })(this.Appconda = this.Appconda || {}, nodeFetchNativeWithAgent, agent, headers, redis);
13298
+ })(this.Appconda = this.Appconda || {}, nodeFetchNativeWithAgent, agent, headers, redis, nextSafeAction);
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@appconda/nextjs",
3
3
  "homepage": "https://appconda.io/support",
4
4
  "description": "Appconda is an open-source self-hosted backend server that abstract and simplify complex and repetitive development tasks behind a very simple REST API",
5
- "version": "1.0.13",
5
+ "version": "1.0.15",
6
6
  "license": "BSD-3-Clause",
7
7
  "main": "dist/cjs/sdk.js",
8
8
  "exports": {
@@ -36,6 +36,7 @@
36
36
  "unpkg": "dist/iife/sdk.js",
37
37
  "dependencies": {
38
38
  "next": "^15.2.3",
39
+ "next-safe-action": "^7.10.4",
39
40
  "node-fetch-native-with-agent": "^1.7.2",
40
41
  "redis": "^4.7.0",
41
42
  "zod": "^3.24.2"
@@ -0,0 +1,42 @@
1
+
2
+
3
+ import { DEFAULT_SERVER_ERROR_MESSAGE, createSafeActionClient } from "next-safe-action";
4
+
5
+
6
+
7
+ export const actionClient = createSafeActionClient({
8
+ handleServerError(e: Error) {
9
+ /* if (
10
+ e instanceof ResourceNotFoundError ||
11
+ e instanceof AuthorizationError ||
12
+ e instanceof InvalidInputError ||
13
+ e instanceof UnknownError ||
14
+ e instanceof AuthenticationError ||
15
+ e instanceof OperationNotAllowedError ||
16
+ e instanceof AppcondaException
17
+ ) {
18
+ return e.message;
19
+ } */
20
+
21
+ // eslint-disable-next-line no-console -- This error needs to be logged for debugging server-side errors
22
+ console.error("SERVER ERROR: ", e);
23
+ return DEFAULT_SERVER_ERROR_MESSAGE;
24
+ },
25
+ });
26
+
27
+ /* export const authenticatedActionClient = actionClient.use(async ({ next }) => {
28
+ const session = await getServerSession(authOptions);
29
+ if (!session?.user) {
30
+ throw new AuthenticationError("Not authenticated");
31
+ }
32
+
33
+ const userId = session.user.id;
34
+
35
+ const user = await getUser(userId);
36
+ if (!user) {
37
+ throw new AuthorizationError("User not found");
38
+ }
39
+
40
+ return next({ ctx: { user } });
41
+ });
42
+ */
@@ -0,0 +1 @@
1
+ export * from './nodes';
@@ -0,0 +1,12 @@
1
+ 'use server';
2
+
3
+ import { z } from "zod";
4
+ import { actionClient } from "./actionClient";
5
+ import { getSDKForCurrentUser } from "@/getSDKForCurrentUser";
6
+
7
+ export const getAllNodesAction = actionClient
8
+ // .schema(listModelsSchema)
9
+ .action(async ({ parsedInput }) => {
10
+ const { node } = await getSDKForCurrentUser();
11
+ return await node.GetAllNodes();
12
+ });
package/src/index.ts CHANGED
@@ -11,6 +11,7 @@ export { Messaging } from './services/messaging';
11
11
  export { Storage } from './services/storage';
12
12
  export { Teams } from './services/teams';
13
13
  export { Users } from './services/users';
14
+ export { Waitlist } from './services/waitlist';
14
15
  export type { Models, Payload, UploadProgress } from './client';
15
16
  export type { QueryTypes, QueryTypesList } from './query';
16
17
  export { Permission } from './permission';
@@ -35,3 +36,4 @@ export { ImageFormat } from './enums/image-format';
35
36
  export { PasswordHash } from './enums/password-hash';
36
37
  export { MessagingProviderType } from './enums/messaging-provider-type';
37
38
  export { getSDKForCurrentUser } from './getSDKForCurrentUser';
39
+ export * from './actions';
@@ -0,0 +1,16 @@
1
+
2
+ import { Payload } from "../client";
3
+ import { ServiceClient } from "../service-client";
4
+
5
+ export class Waitlist extends ServiceClient {
6
+ protected getServiceName(): string {
7
+ return 'com.appconda.service.waitlist';
8
+ }
9
+
10
+ public async ListWiatlistSignups(waitlistId: string): Promise<any[]> {
11
+ const payload: Payload = {};
12
+ payload['waitlistId']
13
+ return await this.actionCall('ListWiatlistSignups', payload);
14
+ }
15
+
16
+ }
@@ -1,10 +0,0 @@
1
- export interface Adapter {
2
- load(key: string, ttl: number, hash?: string): Promise<any>;
3
- save(key: string, data: any, hash?: string): Promise<boolean | string | any[]>;
4
- list(key: string): Promise<string[]>;
5
- purge(key: string, hash?: string): Promise<boolean>;
6
- flush(): Promise<boolean>;
7
- ping(): Promise<boolean>;
8
- getSize(): Promise<number>;
9
- delWithStart(pattern: string): Promise<number>;
10
- }
@@ -1,16 +0,0 @@
1
- import { Adapter } from "../Adapter";
2
- export declare class Filesystem implements Adapter {
3
- protected path: string;
4
- constructor(path: string);
5
- delWithStart(pattern: string): Promise<number>;
6
- load(key: string, ttl: number, hash?: string): Promise<any>;
7
- save(key: string, data: any, hash?: string): Promise<boolean | string | any[]>;
8
- list(key: string): Promise<string[]>;
9
- purge(key: string, hash?: string): Promise<boolean>;
10
- flush(): Promise<boolean>;
11
- ping(): Promise<boolean>;
12
- getSize(): Promise<number>;
13
- private getDirectorySize;
14
- getPath(filename: string): string;
15
- protected deleteDirectory(dirPath: string): boolean;
16
- }
@@ -1,18 +0,0 @@
1
- import { Adapter } from "../Adapter";
2
- export declare class Memory implements Adapter {
3
- store: {
4
- [key: string]: {
5
- time: number;
6
- data: any;
7
- };
8
- };
9
- constructor();
10
- delWithStart(pattern: string): Promise<number>;
11
- load(key: string, ttl: number, hash?: string): Promise<any>;
12
- save(key: string, data: any, hash?: string): Promise<boolean | string | any[]>;
13
- list(key: string): Promise<string[]>;
14
- purge(key: string, hash?: string): Promise<boolean>;
15
- flush(): Promise<boolean>;
16
- ping(): Promise<boolean>;
17
- getSize(): Promise<number>;
18
- }
@@ -1,12 +0,0 @@
1
- import { Adapter } from "../Adapter";
2
- export declare class None implements Adapter {
3
- constructor();
4
- delWithStart(pattern: string): Promise<number>;
5
- load(key: string, ttl: number, hash?: string): Promise<any>;
6
- save(key: string, data: any, hash?: string): Promise<boolean | string | any[]>;
7
- list(key: string): Promise<string[]>;
8
- purge(key: string, hash?: string): Promise<boolean>;
9
- flush(): Promise<boolean>;
10
- ping(): Promise<boolean>;
11
- getSize(): Promise<number>;
12
- }
@@ -1,14 +0,0 @@
1
- import { RedisClientType } from 'redis';
2
- import { Adapter } from "../Adapter";
3
- export declare class Redis implements Adapter {
4
- protected redis: RedisClientType;
5
- constructor(redis: RedisClientType);
6
- load(key: string, ttl: number, hash?: string): Promise<any>;
7
- save(key: string, data: any, hash?: string): Promise<boolean | string | any[]>;
8
- list(key: string): Promise<string[]>;
9
- purge(key: string, hash?: string): Promise<boolean>;
10
- flush(): Promise<boolean>;
11
- ping(): Promise<boolean>;
12
- getSize(): Promise<number>;
13
- delWithStart(pattern: string): Promise<number>;
14
- }
@@ -1,17 +0,0 @@
1
- import { Adapter } from "../Adapter";
2
- export declare class Sharding implements Adapter {
3
- protected adapters: Adapter[];
4
- protected count: number;
5
- constructor(adapters: Adapter[]);
6
- delWithStart(pattern: string): Promise<number>;
7
- load(key: string, ttl: number, hash?: string): Promise<any>;
8
- save(key: string, data: any, hash?: string): Promise<boolean | string | any[]>;
9
- list(key: string): Promise<string[]>;
10
- purge(key: string, hash?: string): Promise<boolean>;
11
- flush(): Promise<boolean>;
12
- ping(): Promise<boolean>;
13
- getSize(): Promise<number>;
14
- protected getAdapter(key: string): Adapter;
15
- private crc32;
16
- private crc32Table;
17
- }
@@ -1,16 +0,0 @@
1
- import { Adapter } from "./Adapter";
2
- export declare class Cache {
3
- private adapter;
4
- static caseSensitive: boolean;
5
- constructor(adapter: Adapter);
6
- private constructKey;
7
- static setCaseSensitivity(value: boolean): boolean;
8
- load(key: string | string[], ttl?: number, hash?: string): Promise<any>;
9
- save(key: string | string[], data: any, hash?: string): Promise<boolean | string | any[]>;
10
- list(key: string | string[]): Promise<string[]>;
11
- purge(key: string | string[], hash?: string): Promise<boolean>;
12
- flush(): Promise<boolean>;
13
- ping(): Promise<boolean>;
14
- getSize(): Promise<number>;
15
- delWithStart(keys: string | string[]): Promise<number>;
16
- }
@@ -1,5 +0,0 @@
1
- export * from './Cache';
2
- export * from './Adapters/None';
3
- export * from './Adapters/Redis';
4
- export * from './Adapters/Sharding';
5
- export * from './Adapters/Memory';
File without changes
@@ -1,6 +0,0 @@
1
- import { Registry } from "@/lib/Registry";
2
- import { Cache } from "./Cache";
3
- export declare const registry: Registry;
4
- export declare class Services {
5
- static get Cache(): Cache;
6
- }
package/types/client.d.ts DELETED
@@ -1,141 +0,0 @@
1
- import { Models } from './models';
2
- type Payload = {
3
- [key: string]: any;
4
- };
5
- type UploadProgress = {
6
- $id: string;
7
- progress: number;
8
- sizeUploaded: number;
9
- chunksTotal: number;
10
- chunksUploaded: number;
11
- };
12
- type Headers = {
13
- [key: string]: string;
14
- };
15
- declare class AppcondaException extends Error {
16
- code: number;
17
- response: string;
18
- type: string;
19
- constructor(message: string, code?: number, type?: string, response?: string);
20
- }
21
- declare class Client {
22
- static CHUNK_SIZE: number;
23
- config: {
24
- endpoint: string;
25
- selfSigned: boolean;
26
- project: string;
27
- mode: string;
28
- key: string;
29
- jwt: string;
30
- locale: string;
31
- session: string;
32
- forwardeduseragent: string;
33
- };
34
- headers: Headers;
35
- /**
36
- * Set Endpoint
37
- *
38
- * Your project endpoint
39
- *
40
- * @param {string} endpoint
41
- *
42
- * @returns {this}
43
- */
44
- setEndpoint(endpoint: string): this;
45
- /**
46
- * Set self-signed
47
- *
48
- * @param {boolean} selfSigned
49
- *
50
- * @returns {this}
51
- */
52
- setSelfSigned(selfSigned: boolean): this;
53
- /**
54
- * Add header
55
- *
56
- * @param {string} header
57
- * @param {string} value
58
- *
59
- * @returns {this}
60
- */
61
- addHeader(header: string, value: string): this;
62
- /**
63
- * Set Project
64
- *
65
- * Your project ID
66
- *
67
- * @param value string
68
- *
69
- * @return {this}
70
- */
71
- setProject(value: string): this;
72
- /**
73
- * Set Mode
74
- *
75
- * @param value string
76
- *
77
- * @return {this}
78
- */
79
- setMode(value: string): this;
80
- /**
81
- * Set Key
82
- *
83
- * Your secret API key
84
- *
85
- * @param value string
86
- *
87
- * @return {this}
88
- */
89
- setKey(value: string): this;
90
- /**
91
- * Set JWT
92
- *
93
- * Your secret JSON Web Token
94
- *
95
- * @param value string
96
- *
97
- * @return {this}
98
- */
99
- setJWT(value: string): this;
100
- /**
101
- * Set Locale
102
- *
103
- * @param value string
104
- *
105
- * @return {this}
106
- */
107
- setLocale(value: string): this;
108
- /**
109
- * Set Session
110
- *
111
- * The user session to authenticate with
112
- *
113
- * @param value string
114
- *
115
- * @return {this}
116
- */
117
- setSession(value: string): this;
118
- /**
119
- * Set ForwardedUserAgent
120
- *
121
- * The user agent string of the client that made the request
122
- *
123
- * @param value string
124
- *
125
- * @return {this}
126
- */
127
- setForwardedUserAgent(value: string): this;
128
- setFallbackCookies(value: string): this;
129
- prepareRequest(method: string, url: URL, headers?: Headers, params?: Payload): {
130
- uri: string;
131
- options: RequestInit;
132
- };
133
- chunkedUpload(method: string, url: URL, headers: Headers, originalPayload: Payload, onProgress: (progress: UploadProgress) => void): Promise<any>;
134
- redirect(method: string, url: URL, headers?: Headers, params?: Payload): Promise<string>;
135
- call(method: string, url: URL, headers?: Headers, params?: Payload, responseType?: string): Promise<any>;
136
- static flatten(data: Payload, prefix?: string): Payload;
137
- }
138
- export { Client, AppcondaException };
139
- export { Query } from './query';
140
- export type { Models, Payload, UploadProgress };
141
- export type { QueryTypes, QueryTypesList } from './query';
@@ -1 +0,0 @@
1
- export declare function Cache(): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor;
@@ -1 +0,0 @@
1
- export declare function CacheKey(): (target: any, propertyKey: string | symbol, parameterIndex: number) => void;
@@ -1 +0,0 @@
1
- export declare function Invalidate(keys: string | string[]): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor;
@@ -1,13 +0,0 @@
1
- export declare enum ApiService {
2
- Account = "account",
3
- Avatars = "avatars",
4
- Databases = "databases",
5
- Locale = "locale",
6
- Health = "health",
7
- Storage = "storage",
8
- Teams = "teams",
9
- Users = "users",
10
- Functions = "functions",
11
- Graphql = "graphql",
12
- Messaging = "messaging"
13
- }
@@ -1,5 +0,0 @@
1
- export declare enum Api {
2
- Rest = "rest",
3
- Graphql = "graphql",
4
- Realtime = "realtime"
5
- }
@@ -1,9 +0,0 @@
1
- export declare enum AuthMethod {
2
- Emailpassword = "email-password",
3
- Magicurl = "magic-url",
4
- Emailotp = "email-otp",
5
- Anonymous = "anonymous",
6
- Invites = "invites",
7
- Jwt = "jwt",
8
- Phone = "phone"
9
- }
@@ -1,6 +0,0 @@
1
- export declare enum AuthenticationFactor {
2
- Email = "email",
3
- Phone = "phone",
4
- Totp = "totp",
5
- Recoverycode = "recoverycode"
6
- }
@@ -1,3 +0,0 @@
1
- export declare enum AuthenticatorType {
2
- Totp = "totp"
3
- }
@@ -1,16 +0,0 @@
1
- export declare enum Browser {
2
- AvantBrowser = "aa",
3
- AndroidWebViewBeta = "an",
4
- GoogleChrome = "ch",
5
- GoogleChromeIOS = "ci",
6
- GoogleChromeMobile = "cm",
7
- Chromium = "cr",
8
- MozillaFirefox = "ff",
9
- Safari = "sf",
10
- MobileSafari = "mf",
11
- MicrosoftEdge = "ps",
12
- MicrosoftEdgeIOS = "oi",
13
- OperaMini = "om",
14
- Opera = "op",
15
- OperaNext = "on"
16
- }
@@ -1,5 +0,0 @@
1
- export declare enum Compression {
2
- None = "none",
3
- Gzip = "gzip",
4
- Zstd = "zstd"
5
- }
@@ -1,18 +0,0 @@
1
- export declare enum CreditCard {
2
- AmericanExpress = "amex",
3
- Argencard = "argencard",
4
- Cabal = "cabal",
5
- Cencosud = "cencosud",
6
- DinersClub = "diners",
7
- Discover = "discover",
8
- Elo = "elo",
9
- Hipercard = "hipercard",
10
- JCB = "jcb",
11
- Mastercard = "mastercard",
12
- Naranja = "naranja",
13
- TarjetaShopping = "targeta-shopping",
14
- UnionChinaPay = "union-china-pay",
15
- Visa = "visa",
16
- MIR = "mir",
17
- Maestro = "maestro"
18
- }
@@ -1,5 +0,0 @@
1
- export declare enum DatabaseUsageRange {
2
- TwentyFourHours = "24h",
3
- ThirtyDays = "30d",
4
- NinetyDays = "90d"
5
- }