@synap-core/sdk 0.2.0 → 1.0.0
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/README.md +40 -140
- package/dist/index.cjs +115 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +80 -0
- package/dist/index.d.ts +72 -47
- package/dist/index.js +80 -47
- package/dist/index.js.map +1 -1
- package/package.json +28 -24
- package/src/client.ts +193 -0
- package/src/index.ts +2 -0
- package/dist/client.d.ts +0 -105
- package/dist/client.d.ts.map +0 -1
- package/dist/client.js +0 -95
- package/dist/client.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/resources/entities.d.ts +0 -90
- package/dist/resources/entities.d.ts.map +0 -1
- package/dist/resources/entities.js +0 -126
- package/dist/resources/entities.js.map +0 -1
- package/dist/resources/events.d.ts +0 -51
- package/dist/resources/events.d.ts.map +0 -1
- package/dist/resources/events.js +0 -92
- package/dist/resources/events.js.map +0 -1
- package/dist/resources/preferences.d.ts +0 -24
- package/dist/resources/preferences.d.ts.map +0 -1
- package/dist/resources/preferences.js +0 -30
- package/dist/resources/preferences.js.map +0 -1
- package/dist/resources/relations.d.ts +0 -71
- package/dist/resources/relations.d.ts.map +0 -1
- package/dist/resources/relations.js +0 -121
- package/dist/resources/relations.js.map +0 -1
- package/dist/resources/views.d.ts +0 -43
- package/dist/resources/views.d.ts.map +0 -1
- package/dist/resources/views.js +0 -54
- package/dist/resources/views.js.map +0 -1
- package/dist/resources/workspaces.d.ts +0 -50
- package/dist/resources/workspaces.d.ts.map +0 -1
- package/dist/resources/workspaces.js +0 -66
- package/dist/resources/workspaces.js.map +0 -1
- package/dist/types/events.d.ts +0 -24
- package/dist/types/events.d.ts.map +0 -1
- package/dist/types/events.js +0 -5
- package/dist/types/events.js.map +0 -1
- package/dist/types/relations.d.ts +0 -26
- package/dist/types/relations.d.ts.map +0 -1
- package/dist/types/relations.js +0 -5
- package/dist/types/relations.js.map +0 -1
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Views API - High-level view management
|
|
3
|
-
*
|
|
4
|
-
* Provides view CRUD operations for whiteboards, timelines, etc.
|
|
5
|
-
*/
|
|
6
|
-
import type { SynapClient } from '@synap-core/client';
|
|
7
|
-
import type { View, CreateViewInput, UpdateViewInput } from '@synap-core/types/views';
|
|
8
|
-
export declare class ViewsAPI {
|
|
9
|
-
private client;
|
|
10
|
-
constructor(client: SynapClient);
|
|
11
|
-
/**
|
|
12
|
-
* List all views
|
|
13
|
-
*/
|
|
14
|
-
list(options?: {
|
|
15
|
-
workspaceId?: string;
|
|
16
|
-
type?: string;
|
|
17
|
-
}): Promise<any>;
|
|
18
|
-
/**
|
|
19
|
-
* Get a specific view
|
|
20
|
-
*/
|
|
21
|
-
get(id: string): Promise<View>;
|
|
22
|
-
/**
|
|
23
|
-
* Create a new view
|
|
24
|
-
*/
|
|
25
|
-
create(input: CreateViewInput): Promise<any>;
|
|
26
|
-
/**
|
|
27
|
-
* Update view metadata
|
|
28
|
-
*/
|
|
29
|
-
update(id: string, input: UpdateViewInput): Promise<any>;
|
|
30
|
-
/**
|
|
31
|
-
* Save view content (manual save)
|
|
32
|
-
*/
|
|
33
|
-
save(id: string, content: unknown): Promise<any>;
|
|
34
|
-
/**
|
|
35
|
-
* Delete a view
|
|
36
|
-
*/
|
|
37
|
-
delete(id: string): Promise<any>;
|
|
38
|
-
/**
|
|
39
|
-
* Get view content
|
|
40
|
-
*/
|
|
41
|
-
getContent(id: string): Promise<any>;
|
|
42
|
-
}
|
|
43
|
-
//# sourceMappingURL=views.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"views.d.ts","sourceRoot":"","sources":["../../src/resources/views.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,KAAK,EACV,IAAI,EACJ,eAAe,EACf,eAAe,EAEhB,MAAM,yBAAyB,CAAC;AAEjC,qBAAa,QAAQ;IACP,OAAO,CAAC,MAAM;gBAAN,MAAM,EAAE,WAAW;IAEvC;;OAEG;IACG,IAAI,CAAC,OAAO,CAAC,EAAE;QAAE,WAAW,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE;IAI5D;;OAEG;IACG,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAIpC;;OAEG;IACG,MAAM,CAAC,KAAK,EAAE,eAAe;IAInC;;OAEG;IACG,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,eAAe;IAI/C;;OAEG;IACG,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO;IAIvC;;OAEG;IACG,MAAM,CAAC,EAAE,EAAE,MAAM;IAIvB;;OAEG;IACG,UAAU,CAAC,EAAE,EAAE,MAAM;CAG5B"}
|
package/dist/resources/views.js
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Views API - High-level view management
|
|
3
|
-
*
|
|
4
|
-
* Provides view CRUD operations for whiteboards, timelines, etc.
|
|
5
|
-
*/
|
|
6
|
-
export class ViewsAPI {
|
|
7
|
-
client;
|
|
8
|
-
constructor(client) {
|
|
9
|
-
this.client = client;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* List all views
|
|
13
|
-
*/
|
|
14
|
-
async list(options) {
|
|
15
|
-
return this.client.trpc.views.list.query(options);
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Get a specific view
|
|
19
|
-
*/
|
|
20
|
-
async get(id) {
|
|
21
|
-
return this.client.trpc.views.get.query({ id });
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Create a new view
|
|
25
|
-
*/
|
|
26
|
-
async create(input) {
|
|
27
|
-
return this.client.trpc.views.create.mutate(input);
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Update view metadata
|
|
31
|
-
*/
|
|
32
|
-
async update(id, input) {
|
|
33
|
-
return this.client.trpc.views.update.mutate({ id, ...input });
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Save view content (manual save)
|
|
37
|
-
*/
|
|
38
|
-
async save(id, content) {
|
|
39
|
-
return this.client.trpc.views.save.mutate({ id, content });
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Delete a view
|
|
43
|
-
*/
|
|
44
|
-
async delete(id) {
|
|
45
|
-
return this.client.trpc.views.delete.mutate({ id });
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Get view content
|
|
49
|
-
*/
|
|
50
|
-
async getContent(id) {
|
|
51
|
-
return this.client.trpc.views.getContent.query({ id });
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
//# sourceMappingURL=views.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"views.js","sourceRoot":"","sources":["../../src/resources/views.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAUH,MAAM,OAAO,QAAQ;IACC;IAApB,YAAoB,MAAmB;QAAnB,WAAM,GAAN,MAAM,CAAa;IAAG,CAAC;IAE3C;;OAEG;IACH,KAAK,CAAC,IAAI,CAAC,OAAiD;QAC1D,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IACpD,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,GAAG,CAAC,EAAU;QAClB,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;IAClD,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,MAAM,CAAC,KAAsB;QACjC,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACrD,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,MAAM,CAAC,EAAU,EAAE,KAAsB;QAC7C,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,GAAG,KAAK,EAAE,CAAC,CAAC;IAChE,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,IAAI,CAAC,EAAU,EAAE,OAAgB;QACrC,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC;IAC7D,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,MAAM,CAAC,EAAU;QACrB,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;IACtD,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,UAAU,CAAC,EAAU;QACzB,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;IACzD,CAAC;CACF"}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Workspaces API - High-level workspace management
|
|
3
|
-
*
|
|
4
|
-
* Provides workspace CRUD operations and member management.
|
|
5
|
-
*/
|
|
6
|
-
import type { SynapClient } from '@synap-core/client';
|
|
7
|
-
import type { Workspace, WorkspaceMember, CreateWorkspaceInput, UpdateWorkspaceInput, InviteMemberInput } from '@synap-core/types/workspaces';
|
|
8
|
-
export declare class WorkspacesAPI {
|
|
9
|
-
private client;
|
|
10
|
-
constructor(client: SynapClient);
|
|
11
|
-
/**
|
|
12
|
-
* List all workspaces the user has access to
|
|
13
|
-
*/
|
|
14
|
-
list(): Promise<Workspace[]>;
|
|
15
|
-
/**
|
|
16
|
-
* Get a specific workspace
|
|
17
|
-
*/
|
|
18
|
-
get(id: string): Promise<Workspace>;
|
|
19
|
-
/**
|
|
20
|
-
* Create a new workspace
|
|
21
|
-
*/
|
|
22
|
-
create(input: CreateWorkspaceInput): Promise<Workspace>;
|
|
23
|
-
/**
|
|
24
|
-
* Update workspace details
|
|
25
|
-
*/
|
|
26
|
-
update(id: string, input: UpdateWorkspaceInput): Promise<Workspace>;
|
|
27
|
-
/**
|
|
28
|
-
* Delete a workspace
|
|
29
|
-
*/
|
|
30
|
-
delete(id: string): Promise<{
|
|
31
|
-
success: boolean;
|
|
32
|
-
}>;
|
|
33
|
-
/**
|
|
34
|
-
* List workspace members
|
|
35
|
-
*/
|
|
36
|
-
listMembers(workspaceId: string): Promise<WorkspaceMember[]>;
|
|
37
|
-
/**
|
|
38
|
-
* Invite a member to workspace
|
|
39
|
-
*/
|
|
40
|
-
invite(input: InviteMemberInput): Promise<any>;
|
|
41
|
-
/**
|
|
42
|
-
* Remove a member from workspace
|
|
43
|
-
*/
|
|
44
|
-
removeMember(workspaceId: string, userId: string): Promise<any>;
|
|
45
|
-
/**
|
|
46
|
-
* Accept an invitation
|
|
47
|
-
*/
|
|
48
|
-
acceptInvite(token: string): Promise<any>;
|
|
49
|
-
}
|
|
50
|
-
//# sourceMappingURL=workspaces.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"workspaces.d.ts","sourceRoot":"","sources":["../../src/resources/workspaces.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,KAAK,EACV,SAAS,EACT,eAAe,EACf,oBAAoB,EACpB,oBAAoB,EACpB,iBAAiB,EAClB,MAAM,8BAA8B,CAAC;AAEtC,qBAAa,aAAa;IACZ,OAAO,CAAC,MAAM;gBAAN,MAAM,EAAE,WAAW;IAEvC;;OAEG;IACG,IAAI,IAAI,OAAO,CAAC,SAAS,EAAE,CAAC;IAIlC;;OAEG;IACG,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,CAAC;IAIzC;;OAEG;IACG,MAAM,CAAC,KAAK,EAAE,oBAAoB,GAAG,OAAO,CAAC,SAAS,CAAC;IAI7D;;OAEG;IACG,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,oBAAoB,GAAG,OAAO,CAAC,SAAS,CAAC;IAIzE;;OAEG;IACG,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC;IAIvD;;OAEG;IACG,WAAW,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC;IAIlE;;OAEG;IACG,MAAM,CAAC,KAAK,EAAE,iBAAiB;IAIrC;;OAEG;IACG,YAAY,CAAC,WAAW,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;IAItD;;OAEG;IACG,YAAY,CAAC,KAAK,EAAE,MAAM;CAGjC"}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Workspaces API - High-level workspace management
|
|
3
|
-
*
|
|
4
|
-
* Provides workspace CRUD operations and member management.
|
|
5
|
-
*/
|
|
6
|
-
export class WorkspacesAPI {
|
|
7
|
-
client;
|
|
8
|
-
constructor(client) {
|
|
9
|
-
this.client = client;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* List all workspaces the user has access to
|
|
13
|
-
*/
|
|
14
|
-
async list() {
|
|
15
|
-
return this.client.trpc.workspaces.list.query();
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Get a specific workspace
|
|
19
|
-
*/
|
|
20
|
-
async get(id) {
|
|
21
|
-
return this.client.trpc.workspaces.get.query({ id });
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Create a new workspace
|
|
25
|
-
*/
|
|
26
|
-
async create(input) {
|
|
27
|
-
return this.client.trpc.workspaces.create.mutate(input);
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Update workspace details
|
|
31
|
-
*/
|
|
32
|
-
async update(id, input) {
|
|
33
|
-
return this.client.trpc.workspaces.update.mutate({ id, ...input });
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Delete a workspace
|
|
37
|
-
*/
|
|
38
|
-
async delete(id) {
|
|
39
|
-
return this.client.trpc.workspaces.delete.mutate({ id });
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* List workspace members
|
|
43
|
-
*/
|
|
44
|
-
async listMembers(workspaceId) {
|
|
45
|
-
return this.client.trpc.workspaces.listMembers.query({ workspaceId });
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Invite a member to workspace
|
|
49
|
-
*/
|
|
50
|
-
async invite(input) {
|
|
51
|
-
return this.client.trpc.workspaces.createInvite.mutate(input);
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* Remove a member from workspace
|
|
55
|
-
*/
|
|
56
|
-
async removeMember(workspaceId, userId) {
|
|
57
|
-
return this.client.trpc.workspaces.removeMember.mutate({ workspaceId, userId });
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* Accept an invitation
|
|
61
|
-
*/
|
|
62
|
-
async acceptInvite(token) {
|
|
63
|
-
return this.client.trpc.workspaces.acceptInvite.mutate({ token });
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
//# sourceMappingURL=workspaces.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"workspaces.js","sourceRoot":"","sources":["../../src/resources/workspaces.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAWH,MAAM,OAAO,aAAa;IACJ;IAApB,YAAoB,MAAmB;QAAnB,WAAM,GAAN,MAAM,CAAa;IAAG,CAAC;IAE3C;;OAEG;IACH,KAAK,CAAC,IAAI;QACR,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;IAClD,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,GAAG,CAAC,EAAU;QAClB,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;IACvD,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,MAAM,CAAC,KAA2B;QACtC,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAC1D,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,MAAM,CAAC,EAAU,EAAE,KAA2B;QAClD,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,GAAG,KAAK,EAAE,CAAC,CAAC;IACrE,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,MAAM,CAAC,EAAU;QACrB,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;IAC3D,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,WAAW,CAAC,WAAmB;QACnC,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,KAAK,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC;IACxE,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,MAAM,CAAC,KAAwB;QACnC,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAChE,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,YAAY,CAAC,WAAmB,EAAE,MAAc;QACpD,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC,CAAC;IAClF,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,YAAY,CAAC,KAAa;QAC9B,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;IACpE,CAAC;CACF"}
|
package/dist/types/events.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Event Types
|
|
3
|
-
*/
|
|
4
|
-
export interface Event {
|
|
5
|
-
id: string;
|
|
6
|
-
timestamp: Date;
|
|
7
|
-
type: string;
|
|
8
|
-
subjectId: string;
|
|
9
|
-
subjectType: string;
|
|
10
|
-
data: Record<string, unknown>;
|
|
11
|
-
metadata?: Record<string, unknown>;
|
|
12
|
-
source: string;
|
|
13
|
-
correlationId?: string;
|
|
14
|
-
userId: string;
|
|
15
|
-
}
|
|
16
|
-
export interface EventFilter {
|
|
17
|
-
subjectId?: string;
|
|
18
|
-
subjectType?: string;
|
|
19
|
-
eventTypes?: string[];
|
|
20
|
-
limit?: number;
|
|
21
|
-
after?: Date;
|
|
22
|
-
before?: Date;
|
|
23
|
-
}
|
|
24
|
-
//# sourceMappingURL=events.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/types/events.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,WAAW,KAAK;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,IAAI,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,WAAW;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,IAAI,CAAC;IACb,MAAM,CAAC,EAAE,IAAI,CAAC;CACf"}
|
package/dist/types/events.js
DELETED
package/dist/types/events.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"events.js","sourceRoot":"","sources":["../../src/types/events.ts"],"names":[],"mappings":"AAAA;;GAEG"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Relation Types
|
|
3
|
-
*/
|
|
4
|
-
export type RelationType = 'assigned_to' | 'mentions' | 'links_to' | 'parent_of' | 'relates_to' | 'tagged_with' | 'created_by' | 'attended_by' | 'depends_on' | 'blocks';
|
|
5
|
-
export interface Relation {
|
|
6
|
-
id: string;
|
|
7
|
-
userId: string;
|
|
8
|
-
sourceEntityId: string;
|
|
9
|
-
targetEntityId: string;
|
|
10
|
-
type: RelationType | string;
|
|
11
|
-
createdAt: Date;
|
|
12
|
-
}
|
|
13
|
-
export interface NewRelation {
|
|
14
|
-
id?: string;
|
|
15
|
-
sourceEntityId: string;
|
|
16
|
-
targetEntityId: string;
|
|
17
|
-
type: RelationType | string;
|
|
18
|
-
metadata?: Record<string, unknown>;
|
|
19
|
-
}
|
|
20
|
-
export interface RelationFilter {
|
|
21
|
-
entityId: string;
|
|
22
|
-
type?: RelationType | string;
|
|
23
|
-
direction?: 'source' | 'target' | 'both';
|
|
24
|
-
limit?: number;
|
|
25
|
-
}
|
|
26
|
-
//# sourceMappingURL=relations.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"relations.d.ts","sourceRoot":"","sources":["../../src/types/relations.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,MAAM,YAAY,GACpB,aAAa,GACb,UAAU,GACV,UAAU,GACV,WAAW,GACX,YAAY,GACZ,aAAa,GACb,YAAY,GACZ,aAAa,GACb,YAAY,GACZ,QAAQ,CAAC;AAEb,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;IACvB,IAAI,EAAE,YAAY,GAAG,MAAM,CAAC;IAC5B,SAAS,EAAE,IAAI,CAAC;CACjB;AAED,MAAM,WAAW,WAAW;IAC1B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;IACvB,IAAI,EAAE,YAAY,GAAG,MAAM,CAAC;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACpC;AAED,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,YAAY,GAAG,MAAM,CAAC;IAC7B,SAAS,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,MAAM,CAAC;IACzC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
|
package/dist/types/relations.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"relations.js","sourceRoot":"","sources":["../../src/types/relations.ts"],"names":[],"mappings":"AAAA;;GAEG"}
|