@giaeulate/baas-sdk 1.0.2 → 1.0.4

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/src/client.ts DELETED
@@ -1,265 +0,0 @@
1
- /**
2
- * BaaS Client SDK
3
- * A fluent JavaScript/TypeScript client for the Go BaaS.
4
- *
5
- * This is the main client that composes all feature modules.
6
- */
7
-
8
- import { HttpClient } from './http-client';
9
- import { QueryBuilder } from './query-builder';
10
- import { RealtimeAction, RealtimeCallback } from './types';
11
-
12
- // Module imports
13
- import { createAuthModule, type AuthModule } from './modules/auth';
14
- import { createUsersModule, type UsersModule } from './modules/users';
15
- import { createDatabaseModule, type DatabaseModule } from './modules/database';
16
- import { createStorageModule, type StorageModule } from './modules/storage';
17
- import { createBackupsModule, type BackupsModule } from './modules/backups';
18
- import { createMigrationsModule, type MigrationsModule } from './modules/migrations';
19
- import { createFunctionsModule, type FunctionsModule } from './modules/functions';
20
- import { createJobsModule, type JobsModule } from './modules/jobs';
21
- import { createEnvVarsModule, type EnvVarsModule } from './modules/env-vars';
22
- import { createEmailModule, type EmailModule } from './modules/email';
23
- import { createSearchModule, type SearchModule } from './modules/search';
24
- import { createGraphQLModule, type GraphQLModule } from './modules/graphql';
25
- import { createMetricsModule, type MetricsModule } from './modules/metrics';
26
- import { createAuditModule, type AuditModule } from './modules/audit';
27
- import { createWebhooksModule, type WebhooksModule } from './modules/webhooks';
28
- import { createLogDrainsModule, type LogDrainsModule } from './modules/log-drains';
29
- import { createBranchesModule, type BranchesModule } from './modules/branches';
30
- import { createRealtimeModule, type RealtimeModule } from './modules/realtime';
31
- import { createApiKeysModule, type ApiKeysModule } from './modules/api-keys';
32
- import { createEnvironmentsModule, type EnvironmentsModule } from './modules/environments';
33
-
34
- /**
35
- * Main BaaS Client - Composes all feature modules
36
- *
37
- * Usage:
38
- * ```ts
39
- * const client = new BaasClient();
40
- *
41
- * // Authentication
42
- * await client.auth.login('user@example.com', 'password');
43
- *
44
- * // Database operations
45
- * const schemas = await client.database.getSchemas();
46
- *
47
- * // Query builder (fluent API)
48
- * const users = await client.from('users').select('*').limit(10).get();
49
- * ```
50
- */
51
- export class BaasClient extends HttpClient {
52
- // Feature modules
53
- public readonly auth: AuthModule;
54
- public readonly users: UsersModule;
55
- public readonly database: DatabaseModule;
56
- public readonly storage: StorageModule;
57
- public readonly backups: BackupsModule;
58
- public readonly migrations: MigrationsModule;
59
- public readonly functions: FunctionsModule;
60
- public readonly jobs: JobsModule;
61
- public readonly envVars: EnvVarsModule;
62
- public readonly email: EmailModule;
63
- public readonly searchService: SearchModule;
64
- public readonly graphqlService: GraphQLModule;
65
- public readonly metrics: MetricsModule;
66
- public readonly audit: AuditModule;
67
- public readonly webhooks: WebhooksModule;
68
- public readonly logDrains: LogDrainsModule;
69
- public readonly branches: BranchesModule;
70
- public readonly realtime: RealtimeModule;
71
- public readonly apiKeys: ApiKeysModule;
72
- public readonly environments: EnvironmentsModule;
73
-
74
- constructor(url?: string, apiKey?: string) {
75
- super(url, apiKey);
76
-
77
- // Initialize all modules with this client instance
78
- this.auth = createAuthModule(this);
79
- this.users = createUsersModule(this);
80
- this.database = createDatabaseModule(this);
81
- this.storage = createStorageModule(this);
82
- this.backups = createBackupsModule(this);
83
- this.migrations = createMigrationsModule(this);
84
- this.functions = createFunctionsModule(this);
85
- this.jobs = createJobsModule(this);
86
- this.envVars = createEnvVarsModule(this);
87
- this.email = createEmailModule(this);
88
- this.searchService = createSearchModule(this);
89
- this.graphqlService = createGraphQLModule(this);
90
- this.metrics = createMetricsModule(this);
91
- this.audit = createAuditModule(this);
92
- this.webhooks = createWebhooksModule(this);
93
- this.logDrains = createLogDrainsModule(this);
94
- this.branches = createBranchesModule(this);
95
- this.realtime = createRealtimeModule(this);
96
- this.apiKeys = createApiKeysModule(this);
97
- this.environments = createEnvironmentsModule(this);
98
- }
99
-
100
- /**
101
- * Create a query builder for fluent data queries
102
- */
103
- from(table: string): QueryBuilder {
104
- return new QueryBuilder(table, this.url, this);
105
- }
106
-
107
- // ============================================
108
- // BACKWARD COMPATIBILITY METHODS
109
- // These delegate to the appropriate modules
110
- // ============================================
111
-
112
- // Auth shortcuts
113
- async login(email: string, password: string) { return this.auth.login(email, password); }
114
- async verifyMFA(mfaToken: string, code: string) { return this.auth.verifyMFA(mfaToken, code); }
115
- async getProfile() { return this.auth.getProfile(); }
116
- async register(email: string, password: string) { return this.auth.register(email, password); }
117
- async forgotPassword(email: string) { return this.auth.forgotPassword(email); }
118
- async resetPassword(token: string, newPassword: string) { return this.auth.resetPassword(token, newPassword); }
119
- async validateResetToken(token: string) { return this.auth.validateResetToken(token); }
120
- async verifyEmail(token: string) { return this.auth.verifyEmail(token); }
121
- async requestEmailVerification() { return this.auth.requestEmailVerification(); }
122
- async getAuthProviders() { return this.auth.getAuthProviders(); }
123
- async getAuthProvider(provider: string) { return this.auth.getAuthProvider(provider); }
124
- async configureAuthProvider(provider: string, clientID: string, clientSecret: string, enabled: boolean) {
125
- return this.auth.configureAuthProvider(provider, clientID, clientSecret, enabled);
126
- }
127
-
128
- // Users shortcuts
129
- async listUsers(limit = 20, offset = 0) { return this.users.list(limit, offset); }
130
- async updateUser(id: string, updates: any) { return this.users.update(id, updates); }
131
- async deleteUser(id: string) { return this.users.delete(id); }
132
-
133
- // Database shortcuts
134
- async raw(query: string) { return this.database.raw(query); }
135
- async getSchemas(options?: any) { return this.database.getSchemas(options); }
136
- async getSchema(name: string) { return this.database.getSchema(name); }
137
- async createTable(tableName: string, definition: any) { return this.database.createTable(tableName, definition); }
138
- async dropTable(tableName: string) { return this.database.dropTable(tableName); }
139
- async renameTable(tableName: string, newName: string) { return this.database.renameTable(tableName, newName); }
140
- async addColumn(tableName: string, column: any) { return this.database.addColumn(tableName, column); }
141
- async dropColumn(tableName: string, columnName: string) { return this.database.dropColumn(tableName, columnName); }
142
- async modifyColumn(tableName: string, columnName: string, changes: any) { return this.database.modifyColumn(tableName, columnName, changes); }
143
- async renameColumn(tableName: string, columnName: string, newName: string) { return this.database.renameColumn(tableName, columnName, newName); }
144
- async setColumnDefault(tableName: string, columnName: string, defaultValue: string | null) { return this.database.setColumnDefault(tableName, columnName, defaultValue); }
145
- async addForeignKey(tableName: string, fk: any) { return this.database.addForeignKey(tableName, fk); }
146
- async listForeignKeys(tableName: string) { return this.database.listForeignKeys(tableName); }
147
- async dropForeignKey(tableName: string, constraintName: string) { return this.database.dropForeignKey(tableName, constraintName); }
148
- async addUniqueConstraint(tableName: string, columnName: string) { return this.database.addUniqueConstraint(tableName, columnName); }
149
- async dropConstraint(tableName: string, constraintName: string) { return this.database.dropConstraint(tableName, constraintName); }
150
- async queryData(tableName: string, options: any) { return this.database.queryData(tableName, options); }
151
- async downloadExport(tableName: string, format: 'sql' | 'csv' | 'backup', filters?: any[]) { return this.database.downloadExport(tableName, format, filters); }
152
-
153
- // Storage shortcuts
154
- async upload(table: string, file: File) { return this.storage.upload(table, file); }
155
-
156
- // Functions shortcuts
157
- async invokeFunction(id: string, data?: any) { return this.functions.invoke(id, data); }
158
-
159
- // API Keys shortcuts
160
- async createApiKey(name: string, permissions?: string[], expiresAt?: string) { return this.apiKeys.create(name, permissions, expiresAt); }
161
- async listApiKeys() { return this.apiKeys.list(); }
162
- async revokeApiKey(keyId: string) { return this.apiKeys.revoke(keyId); }
163
- async deleteApiKey(keyId: string) { return this.apiKeys.delete(keyId); }
164
-
165
- // Backups shortcuts
166
- async createBackup(options?: any) { return this.backups.create(options); }
167
- async listBackups() { return this.backups.list(); }
168
- async getBackup(backupId: string) { return this.backups.get(backupId); }
169
- async restoreBackup(backupId: string) { return this.backups.restore(backupId); }
170
- async deleteBackup(backupId: string) { return this.backups.delete(backupId); }
171
- getBackupDownloadUrl(backupId: string) { return this.backups.getDownloadUrl(backupId); }
172
- async listBackupTables() { return this.backups.listTables(); }
173
- async importFile(formData: FormData) { return this.backups.importFile(formData); }
174
-
175
- // Search shortcuts
176
- async search(query: string, options?: any) { return this.searchService.search(query, options); }
177
- async createSearchIndex(table: string, columns: string[]) { return this.searchService.createIndex(table, columns); }
178
-
179
- // GraphQL shortcuts
180
- async graphql(query: string, variables?: Record<string, any>) { return this.graphqlService.query(query, variables); }
181
- getGraphQLPlaygroundUrl() { return this.graphqlService.getPlaygroundUrl(); }
182
-
183
- // Migrations shortcuts
184
- async createMigration(input: any) { return this.migrations.create(input); }
185
- async listMigrations() { return this.migrations.list(); }
186
- async getMigration(id: string) { return this.migrations.get(id); }
187
- async applyMigration(id: string) { return this.migrations.apply(id); }
188
- async rollbackMigration(id: string) { return this.migrations.rollback(id); }
189
- async deleteMigration(id: string) { return this.migrations.delete(id); }
190
- async generateMigration(tableName: string, changes: any[]) { return this.migrations.generate(tableName, changes); }
191
-
192
- // Email shortcuts
193
- async sendEmail(input: any) { return this.email.send(input); }
194
- async getEmailConfig() { return this.email.getConfig(); }
195
- async saveEmailConfig(config: any) { return this.email.saveConfig(config); }
196
- async createEmailTemplate(template: any) { return this.email.createTemplate(template); }
197
- async listEmailTemplates() { return this.email.listTemplates(); }
198
- async getEmailTemplate(id: string) { return this.email.getTemplate(id); }
199
- async updateEmailTemplate(id: string, template: any) { return this.email.updateTemplate(id, template); }
200
- async deleteEmailTemplate(id: string) { return this.email.deleteTemplate(id); }
201
- async getEmailLogs(options?: any) { return this.email.getLogs(options); }
202
-
203
- // Metrics shortcuts
204
- async getDashboardStats() { return this.metrics.getDashboardStats(); }
205
- async getRequestLogs(options?: any) { return this.metrics.getRequestLogs(options); }
206
- async getApplicationLogs(options?: any) { return this.metrics.getApplicationLogs(options); }
207
- async getMetricTimeseries(metric: string, options?: any) { return this.metrics.getTimeseries(metric, options); }
208
-
209
- // Jobs shortcuts
210
- async createJob(input: any) { return this.jobs.create(input); }
211
- async listJobs() { return this.jobs.list(); }
212
- async getJob(id: string) { return this.jobs.get(id); }
213
- async updateJob(id: string, input: any) { return this.jobs.update(id, input); }
214
- async deleteJob(id: string) { return this.jobs.delete(id); }
215
- async toggleJob(id: string, enabled: boolean) { return this.jobs.toggle(id, enabled); }
216
- async runJobNow(id: string) { return this.jobs.runNow(id); }
217
- async getJobExecutions(id: string, limit?: number) { return this.jobs.getExecutions(id, limit); }
218
-
219
- // Env Vars shortcuts
220
- async createEnvVar(input: any) { return this.envVars.create(input); }
221
- async listEnvVars() { return this.envVars.list(); }
222
- async getEnvVar(id: string) { return this.envVars.get(id); }
223
- async updateEnvVar(id: string, value: string) { return this.envVars.update(id, value); }
224
- async deleteEnvVar(id: string) { return this.envVars.delete(id); }
225
-
226
- // Branches shortcuts
227
- async createBranch(input: any) { return this.branches.create(input); }
228
- async listBranches() { return this.branches.list(); }
229
- async getBranch(id: string) { return this.branches.get(id); }
230
- async deleteBranch(id: string) { return this.branches.delete(id); }
231
- async mergeBranch(id: string, targetBranchId: string) { return this.branches.merge(id, targetBranchId); }
232
- async resetBranch(id: string) { return this.branches.reset(id); }
233
-
234
- // Log Drains shortcuts
235
- async createLogDrain(input: any) { return this.logDrains.create(input); }
236
- async listLogDrains() { return this.logDrains.list(); }
237
- async getLogDrain(id: string) { return this.logDrains.get(id); }
238
- async updateLogDrain(id: string, input: any) { return this.logDrains.update(id, input); }
239
- async deleteLogDrain(id: string) { return this.logDrains.delete(id); }
240
- async toggleLogDrain(id: string, enabled: boolean) { return this.logDrains.toggle(id, enabled); }
241
- async testLogDrain(id: string) { return this.logDrains.test(id); }
242
-
243
- // Webhooks shortcuts
244
- async listWebhooks() { return this.webhooks.list(); }
245
- async getWebhook(id: string) { return this.webhooks.get(id); }
246
- async createWebhook(input: any) { return this.webhooks.create(input); }
247
- async updateWebhook(id: string, input: any) { return this.webhooks.update(id, input); }
248
- async deleteWebhook(id: string) { return this.webhooks.delete(id); }
249
- async testWebhook(id: string) { return this.webhooks.test(id); }
250
-
251
- // Audit shortcuts
252
- async listAuditLogs(options?: any) { return this.audit.list(options); }
253
- async getAuditActions() { return this.audit.getActions(); }
254
-
255
- // Realtime shortcuts
256
- subscribe<T = any>(table: string, action: RealtimeAction, callback: RealtimeCallback<T>) {
257
- return this.realtime.subscribe<T>(table, action, callback);
258
- }
259
-
260
- // Environment shortcuts
261
- async getEnvironmentStatus() { return this.environments.status(); }
262
- async initTestEnvironment() { return this.environments.init(); }
263
- async promoteTestToProd() { return this.environments.promote(); }
264
- async revertTestEnvironment() { return this.environments.revert(); }
265
- }
@@ -1,145 +0,0 @@
1
- /**
2
- * Core HTTP Client
3
- * Base class providing HTTP request infrastructure for all SDK modules
4
- */
5
-
6
- import type { RequestOptions } from './types';
7
-
8
- export class HttpClient {
9
- public url: string;
10
- public apiKey: string = '';
11
- public token: string | null = null;
12
- private environment: string = 'prod';
13
-
14
- constructor(url?: string, apiKey?: string) {
15
- let baseUrl = url || (typeof window !== 'undefined' ? window.location.origin : 'http://localhost:8080');
16
- this.url = baseUrl.endsWith('/') ? baseUrl.slice(0, -1) : baseUrl;
17
-
18
- if (apiKey) this.apiKey = apiKey;
19
-
20
- this.token = this.cleanValue(localStorage.getItem('baas_token'));
21
- }
22
-
23
- protected cleanValue(val: string | null): string | null {
24
- if (!val || val === 'null' || val === 'undefined') return null;
25
- return val.trim();
26
- }
27
-
28
- /**
29
- * Public header generator for adapters
30
- */
31
- public getHeaders(contentType: string = 'application/json') {
32
- const dynamicToken = this.getDynamicToken();
33
-
34
- const headers: Record<string, string> = {
35
- 'apikey': this.apiKey,
36
- };
37
-
38
- if (contentType) {
39
- headers['Content-Type'] = contentType;
40
- }
41
-
42
- if (dynamicToken) {
43
- headers['Authorization'] = `Bearer ${dynamicToken}`;
44
- }
45
-
46
- if (this.environment && this.environment !== 'prod') {
47
- headers['X-Environment'] = this.environment;
48
- }
49
-
50
- return headers;
51
- }
52
-
53
- public getDynamicToken() {
54
- return this.cleanValue(this.token || localStorage.getItem('baas_token'));
55
- }
56
-
57
- /**
58
- * Core HTTP request method - DRY principle
59
- */
60
- protected async request<T = any>(endpoint: string, options: RequestOptions = {}): Promise<T> {
61
- const { method = 'GET', body, headers: customHeaders, skipAuth = false } = options;
62
-
63
- const headers = { ...this.getHeaders(), ...customHeaders };
64
-
65
- const fetchOptions: RequestInit = {
66
- method,
67
- headers,
68
- };
69
-
70
- if (body !== undefined) {
71
- fetchOptions.body = JSON.stringify(body);
72
- }
73
-
74
- const res = await fetch(`${this.url}${endpoint}`, fetchOptions);
75
-
76
- if (res.status === 204) {
77
- return { success: true } as T;
78
- }
79
-
80
- const data = await res.json().catch(() => null);
81
-
82
- if (!res.ok) {
83
- if (res.status === 401 && !skipAuth) {
84
- this.forceLogout();
85
- }
86
- if (res.status === 403 && data?.error === 'ip_not_allowed') {
87
- this.handleIPBlocked(data.ip);
88
- }
89
- return { error: data?.error || `Request failed: ${res.status}`, ...data } as T;
90
- }
91
-
92
- return data;
93
- }
94
-
95
- protected get<T = any>(endpoint: string): Promise<T> {
96
- return this.request<T>(endpoint);
97
- }
98
-
99
- protected post<T = any>(endpoint: string, body?: unknown): Promise<T> {
100
- return this.request<T>(endpoint, { method: 'POST', body });
101
- }
102
-
103
- protected put<T = any>(endpoint: string, body?: unknown): Promise<T> {
104
- return this.request<T>(endpoint, { method: 'PUT', body });
105
- }
106
-
107
- protected patch<T = any>(endpoint: string, body?: unknown): Promise<T> {
108
- return this.request<T>(endpoint, { method: 'PATCH', body });
109
- }
110
-
111
- protected delete<T = any>(endpoint: string): Promise<T> {
112
- return this.request<T>(endpoint, { method: 'DELETE' });
113
- }
114
-
115
- setEnvironment(env: string) {
116
- this.environment = env;
117
- }
118
-
119
- getEnvironment(): string {
120
- return this.environment;
121
- }
122
-
123
- logout() {
124
- this.token = null;
125
- localStorage.removeItem('baas_token');
126
- }
127
-
128
- forceLogout() {
129
- this.logout();
130
- if (typeof window !== 'undefined') {
131
- if (!window.location.search.includes('expired')) {
132
- window.location.href = '/auth/login?reason=expired';
133
- }
134
- }
135
- }
136
-
137
- handleIPBlocked(ip?: string) {
138
- if (typeof window !== 'undefined') {
139
- const params = ip ? `?ip=${encodeURIComponent(ip)}` : '';
140
- if (!window.location.pathname.includes('/blocked')) {
141
- window.location.href = `/blocked${params}`;
142
- }
143
- }
144
- }
145
- }
package/src/index.ts DELETED
@@ -1,42 +0,0 @@
1
- /**
2
- * BaaS SDK - Main Entry Point
3
- *
4
- * Re-exports all SDK components for easy importing:
5
- *
6
- * ```ts
7
- * import { BaasClient } from '@/sdk';
8
- * // or
9
- * import { BaasClient, QueryFilter } from '@/sdk';
10
- * ```
11
- */
12
-
13
- // Main client
14
- export { BaasClient } from './client';
15
-
16
- // Core utilities
17
- export { HttpClient } from './http-client';
18
- export { QueryBuilder } from './query-builder';
19
-
20
- // Types
21
- export type { QueryFilter, HttpMethod, RequestOptions, PaginationOptions, ApiResponse } from './types';
22
-
23
- // Module types (for advanced usage)
24
- export type { AuthModule } from './modules/auth';
25
- export type { UsersModule } from './modules/users';
26
- export type { DatabaseModule } from './modules/database';
27
- export type { StorageModule } from './modules/storage';
28
- export type { BackupsModule } from './modules/backups';
29
- export type { MigrationsModule } from './modules/migrations';
30
- export type { FunctionsModule } from './modules/functions';
31
- export type { JobsModule, JobInput, JobUpdateInput } from './modules/jobs';
32
- export type { EnvVarsModule } from './modules/env-vars';
33
- export type { EmailModule, EmailConfig, EmailTemplate, SendEmailInput } from './modules/email';
34
- export type { SearchModule, SearchOptions } from './modules/search';
35
- export type { GraphQLModule } from './modules/graphql';
36
- export type { MetricsModule, RequestLogsOptions, ApplicationLogsOptions, TimeseriesOptions } from './modules/metrics';
37
- export type { AuditModule, AuditLogsOptions } from './modules/audit';
38
- export type { WebhooksModule, WebhookInput, WebhookUpdateInput } from './modules/webhooks';
39
- export type { LogDrainsModule, LogDrainInput, LogDrainUpdateInput } from './modules/log-drains';
40
- export type { BranchesModule } from './modules/branches';
41
- export type { RealtimeModule, Subscription } from './modules/realtime';
42
- export type { ApiKeysModule } from './modules/api-keys';
@@ -1,36 +0,0 @@
1
- /**
2
- * API Keys Module
3
- */
4
-
5
- import type { HttpClient } from '../http-client';
6
-
7
- export interface ApiKeysModule {
8
- create(name: string, permissions?: string[], expiresAt?: string): Promise<any>;
9
- list(): Promise<any>;
10
- revoke(keyId: string): Promise<any>;
11
- delete(keyId: string): Promise<any>;
12
- }
13
-
14
- export function createApiKeysModule(client: HttpClient): ApiKeysModule {
15
- const get = (endpoint: string) => (client as any).get(endpoint);
16
- const post = (endpoint: string, body?: unknown) => (client as any).post(endpoint, body);
17
- const del = (endpoint: string) => (client as any).delete(endpoint);
18
-
19
- return {
20
- async create(name: string, permissions?: string[], expiresAt?: string) {
21
- return post('/api/api-keys', { name, permissions, expires_at: expiresAt });
22
- },
23
-
24
- async list() {
25
- return get('/api/api-keys');
26
- },
27
-
28
- async revoke(keyId: string) {
29
- return post(`/api/api-keys/${keyId}/revoke`, {});
30
- },
31
-
32
- async delete(keyId: string) {
33
- return del(`/api/api-keys/${keyId}`);
34
- },
35
- };
36
- }
@@ -1,46 +0,0 @@
1
- /**
2
- * Audit Module - Audit log operations
3
- */
4
-
5
- import type { HttpClient } from '../http-client';
6
-
7
- export interface AuditLogsOptions {
8
- limit?: number;
9
- offset?: number;
10
- action?: string;
11
- user_id?: string;
12
- method?: string;
13
- path?: string;
14
- status_code?: number;
15
- start_date?: string;
16
- end_date?: string;
17
- }
18
-
19
- export interface AuditModule {
20
- list(options?: AuditLogsOptions): Promise<any>;
21
- getActions(): Promise<any>;
22
- }
23
-
24
- export function createAuditModule(client: HttpClient): AuditModule {
25
- const get = (endpoint: string) => (client as any).get(endpoint);
26
-
27
- return {
28
- async list(options?: AuditLogsOptions) {
29
- const params = new URLSearchParams();
30
- if (options?.limit) params.set('limit', options.limit.toString());
31
- if (options?.offset) params.set('offset', options.offset.toString());
32
- if (options?.action) params.set('action', options.action);
33
- if (options?.user_id) params.set('user_id', options.user_id);
34
- if (options?.method) params.set('method', options.method);
35
- if (options?.path) params.set('path', options.path);
36
- if (options?.status_code) params.set('status_code', options.status_code.toString());
37
- if (options?.start_date) params.set('start_date', options.start_date);
38
- if (options?.end_date) params.set('end_date', options.end_date);
39
- return get(`/api/audit/logs?${params.toString()}`);
40
- },
41
-
42
- async getActions() {
43
- return get('/api/audit/actions');
44
- },
45
- };
46
- }