Skip to content

Commit 7621850

Browse files
refactor(sdk): move files and schedule into dedicated module folders
Co-authored-by: marioserrano09 <5221275+marioserrano09@users.noreply.github.com>
1 parent 4a189bc commit 7621850

File tree

6 files changed

+8
-6
lines changed

6 files changed

+8
-6
lines changed

platform/packages/sdk/src/client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import { ActionsApi } from './metadata/actions.js';
44
import { CrudResourceApi } from './cruds/crud-resource.js';
55
import { CrudServiceApi } from './cruds/crud-service.js';
66
import { ReportsApi } from './reports/api.js';
7-
import { FilesApi } from './files.js';
7+
import { FilesApi } from './files/api.js';
88
import { SaasApi } from './saas/api.js';
9-
import { ScheduleApi } from './schedule.js';
9+
import { ScheduleApi } from './schedule/api.js';
1010
import type { DynamiaClientConfig } from './types.js';
1111

1212
/**
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { HttpClient } from './http.js';
1+
import type { HttpClient } from '../http.js';
22

33
/**
44
* Download files managed by the entity-files extension.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { FilesApi } from './api.js';

platform/packages/sdk/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,6 @@ export { SaasApi } from './saas/index.js';
5454
export type { AccountDTO } from './saas/index.js';
5555

5656
// ── API classes (files & schedule — core extensions) ─────────────────────────
57-
export { FilesApi } from './files.js';
58-
export { ScheduleApi } from './schedule.js';
57+
export { FilesApi } from './files/index.js';
58+
export { ScheduleApi } from './schedule/index.js';
5959

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { HttpClient } from './http.js';
1+
import type { HttpClient } from '../http.js';
22

33
/**
44
* Manually trigger periodic tasks registered in the platform.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { ScheduleApi } from './api.js';

0 commit comments

Comments
 (0)