@sudobility/entity_client 0.0.21 → 0.0.23
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.d.ts
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* // Create client
|
|
15
15
|
* const client = new EntityClient({
|
|
16
16
|
* baseUrl: 'https://api.example.com/api/v1',
|
|
17
|
-
*
|
|
17
|
+
* networkClient: myNetworkClient,
|
|
18
18
|
* });
|
|
19
19
|
*
|
|
20
20
|
* // Use in React component
|
package/dist/index.js
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* // Create client
|
|
15
15
|
* const client = new EntityClient({
|
|
16
16
|
* baseUrl: 'https://api.example.com/api/v1',
|
|
17
|
-
*
|
|
17
|
+
* networkClient: myNetworkClient,
|
|
18
18
|
* });
|
|
19
19
|
*
|
|
20
20
|
* // Use in React component
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
* @fileoverview Entity API Client
|
|
3
3
|
* @description HTTP client for entity/organization API endpoints
|
|
4
4
|
*/
|
|
5
|
-
import type { CreateEntityRequest, Entity, EntityInvitation, EntityMember, EntityRole, EntityWithRole, InviteMemberRequest, UpdateEntityRequest } from '@sudobility/types';
|
|
5
|
+
import type { CreateEntityRequest, Entity, EntityInvitation, EntityMember, EntityRole, EntityWithRole, InviteMemberRequest, NetworkClient, UpdateEntityRequest } from '@sudobility/types';
|
|
6
6
|
/**
|
|
7
7
|
* Configuration for the Entity client.
|
|
8
8
|
*/
|
|
9
9
|
export interface EntityClientConfig {
|
|
10
10
|
/** Base URL for the API (e.g., 'https://api.example.com/api/v1') */
|
|
11
11
|
baseUrl: string;
|
|
12
|
-
/**
|
|
13
|
-
|
|
12
|
+
/** Network client for making HTTP requests */
|
|
13
|
+
networkClient: NetworkClient;
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
16
16
|
* Standard API response wrapper.
|
|
@@ -24,12 +24,29 @@ export interface ApiResponse<T> {
|
|
|
24
24
|
* HTTP client for entity management APIs.
|
|
25
25
|
*/
|
|
26
26
|
export declare class EntityClient {
|
|
27
|
-
|
|
27
|
+
private readonly baseUrl;
|
|
28
|
+
private readonly networkClient;
|
|
28
29
|
constructor(config: EntityClientConfig);
|
|
29
30
|
/**
|
|
30
|
-
*
|
|
31
|
+
* Build full URL from path.
|
|
31
32
|
*/
|
|
32
|
-
private
|
|
33
|
+
private buildUrl;
|
|
34
|
+
/**
|
|
35
|
+
* Make a GET request.
|
|
36
|
+
*/
|
|
37
|
+
private get;
|
|
38
|
+
/**
|
|
39
|
+
* Make a POST request.
|
|
40
|
+
*/
|
|
41
|
+
private post;
|
|
42
|
+
/**
|
|
43
|
+
* Make a PUT request.
|
|
44
|
+
*/
|
|
45
|
+
private put;
|
|
46
|
+
/**
|
|
47
|
+
* Make a DELETE request.
|
|
48
|
+
*/
|
|
49
|
+
private del;
|
|
33
50
|
/**
|
|
34
51
|
* List all entities for the current user.
|
|
35
52
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EntityClient.d.ts","sourceRoot":"","sources":["../../src/network/EntityClient.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EACV,mBAAmB,EACnB,MAAM,EACN,gBAAgB,EAChB,YAAY,EACZ,UAAU,EACV,cAAc,EACd,mBAAmB,EACnB,mBAAmB,EACpB,MAAM,mBAAmB,CAAC;AAE3B;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,oEAAoE;IACpE,OAAO,EAAE,MAAM,CAAC;IAChB,
|
|
1
|
+
{"version":3,"file":"EntityClient.d.ts","sourceRoot":"","sources":["../../src/network/EntityClient.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EACV,mBAAmB,EACnB,MAAM,EACN,gBAAgB,EAChB,YAAY,EACZ,UAAU,EACV,cAAc,EACd,mBAAmB,EACnB,aAAa,EACb,mBAAmB,EACpB,MAAM,mBAAmB,CAAC;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MAAM,EAClB,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,UAAU,GACf,OAAO,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC;IAOrC;;OAEG;IACG,YAAY,CAChB,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IAQ7B;;OAEG;IACG,qBAAqB,CACzB,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,WAAW,CAAC,gBAAgB,EAAE,CAAC,CAAC;IAI3C;;OAEG;IACG,gBAAgB,CACpB,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,mBAAmB,GAC3B,OAAO,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAAC;IAOzC;;OAEG;IACG,gBAAgB,CACpB,UAAU,EAAE,MAAM,EAClB,YAAY,EAAE,MAAM,GACnB,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IAM7B;;OAEG;IACG,eAAe,CACnB,UAAU,EAAE,MAAM,EAClB,YAAY,EAAE,MAAM,GACnB,OAAO,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAAC;IAMzC;;OAEG;IACG,iBAAiB,IAAI,OAAO,CAAC,WAAW,CAAC,gBAAgB,EAAE,CAAC,CAAC;IAInE;;OAEG;IACG,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IAIjE;;OAEG;IACG,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;CAGnE"}
|
|
@@ -7,29 +7,83 @@
|
|
|
7
7
|
*/
|
|
8
8
|
export class EntityClient {
|
|
9
9
|
constructor(config) {
|
|
10
|
-
this.
|
|
10
|
+
this.baseUrl = config.baseUrl;
|
|
11
|
+
this.networkClient = config.networkClient;
|
|
11
12
|
}
|
|
12
13
|
/**
|
|
13
|
-
*
|
|
14
|
+
* Build full URL from path.
|
|
14
15
|
*/
|
|
15
|
-
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
buildUrl(path) {
|
|
17
|
+
const cleanBase = this.baseUrl.replace(/\/$/, '');
|
|
18
|
+
return `${cleanBase}${path}`;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Make a GET request.
|
|
22
|
+
*/
|
|
23
|
+
async get(path) {
|
|
24
|
+
try {
|
|
25
|
+
const response = await this.networkClient.get(this.buildUrl(path));
|
|
26
|
+
if (!response.ok || !response.data) {
|
|
27
|
+
return {
|
|
28
|
+
success: false,
|
|
29
|
+
error: response.data?.error || 'Request failed',
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
return response.data;
|
|
33
|
+
}
|
|
34
|
+
catch (error) {
|
|
35
|
+
return { success: false, error: error.message };
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Make a POST request.
|
|
40
|
+
*/
|
|
41
|
+
async post(path, body) {
|
|
42
|
+
try {
|
|
43
|
+
const response = await this.networkClient.post(this.buildUrl(path), body);
|
|
44
|
+
if (!response.ok || !response.data) {
|
|
45
|
+
return {
|
|
46
|
+
success: false,
|
|
47
|
+
error: response.data?.error || 'Request failed',
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
return response.data;
|
|
51
|
+
}
|
|
52
|
+
catch (error) {
|
|
53
|
+
return { success: false, error: error.message };
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Make a PUT request.
|
|
58
|
+
*/
|
|
59
|
+
async put(path, body) {
|
|
60
|
+
try {
|
|
61
|
+
const response = await this.networkClient.put(this.buildUrl(path), body);
|
|
62
|
+
if (!response.ok || !response.data) {
|
|
63
|
+
return {
|
|
64
|
+
success: false,
|
|
65
|
+
error: response.data?.error || 'Request failed',
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
return response.data;
|
|
19
69
|
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
70
|
+
catch (error) {
|
|
71
|
+
return { success: false, error: error.message };
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Make a DELETE request.
|
|
76
|
+
*/
|
|
77
|
+
async del(path) {
|
|
26
78
|
try {
|
|
27
|
-
const response = await
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
79
|
+
const response = await this.networkClient.delete(this.buildUrl(path));
|
|
80
|
+
if (!response.ok || !response.data) {
|
|
81
|
+
return {
|
|
82
|
+
success: false,
|
|
83
|
+
error: response.data?.error || 'Request failed',
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
return response.data;
|
|
33
87
|
}
|
|
34
88
|
catch (error) {
|
|
35
89
|
return { success: false, error: error.message };
|
|
@@ -42,39 +96,31 @@ export class EntityClient {
|
|
|
42
96
|
* List all entities for the current user.
|
|
43
97
|
*/
|
|
44
98
|
async listEntities() {
|
|
45
|
-
return this.
|
|
99
|
+
return this.get('/entities');
|
|
46
100
|
}
|
|
47
101
|
/**
|
|
48
102
|
* Create a new organization entity.
|
|
49
103
|
*/
|
|
50
104
|
async createEntity(request) {
|
|
51
|
-
return this.
|
|
52
|
-
method: 'POST',
|
|
53
|
-
body: JSON.stringify(request),
|
|
54
|
-
});
|
|
105
|
+
return this.post('/entities', request);
|
|
55
106
|
}
|
|
56
107
|
/**
|
|
57
108
|
* Get entity by slug.
|
|
58
109
|
*/
|
|
59
110
|
async getEntity(entitySlug) {
|
|
60
|
-
return this.
|
|
111
|
+
return this.get(`/entities/${entitySlug}`);
|
|
61
112
|
}
|
|
62
113
|
/**
|
|
63
114
|
* Update entity.
|
|
64
115
|
*/
|
|
65
116
|
async updateEntity(entitySlug, request) {
|
|
66
|
-
return this.
|
|
67
|
-
method: 'PUT',
|
|
68
|
-
body: JSON.stringify(request),
|
|
69
|
-
});
|
|
117
|
+
return this.put(`/entities/${entitySlug}`, request);
|
|
70
118
|
}
|
|
71
119
|
/**
|
|
72
120
|
* Delete entity (organizations only).
|
|
73
121
|
*/
|
|
74
122
|
async deleteEntity(entitySlug) {
|
|
75
|
-
return this.
|
|
76
|
-
method: 'DELETE',
|
|
77
|
-
});
|
|
123
|
+
return this.del(`/entities/${entitySlug}`);
|
|
78
124
|
}
|
|
79
125
|
// =============================================================================
|
|
80
126
|
// Member Management
|
|
@@ -83,24 +129,19 @@ export class EntityClient {
|
|
|
83
129
|
* List members of an entity.
|
|
84
130
|
*/
|
|
85
131
|
async listMembers(entitySlug) {
|
|
86
|
-
return this.
|
|
132
|
+
return this.get(`/entities/${entitySlug}/members`);
|
|
87
133
|
}
|
|
88
134
|
/**
|
|
89
135
|
* Update a member's role.
|
|
90
136
|
*/
|
|
91
137
|
async updateMemberRole(entitySlug, memberId, role) {
|
|
92
|
-
return this.
|
|
93
|
-
method: 'PUT',
|
|
94
|
-
body: JSON.stringify({ role }),
|
|
95
|
-
});
|
|
138
|
+
return this.put(`/entities/${entitySlug}/members/${memberId}`, { role });
|
|
96
139
|
}
|
|
97
140
|
/**
|
|
98
141
|
* Remove a member from the entity.
|
|
99
142
|
*/
|
|
100
143
|
async removeMember(entitySlug, memberId) {
|
|
101
|
-
return this.
|
|
102
|
-
method: 'DELETE',
|
|
103
|
-
});
|
|
144
|
+
return this.del(`/entities/${entitySlug}/members/${memberId}`);
|
|
104
145
|
}
|
|
105
146
|
// =============================================================================
|
|
106
147
|
// Invitation Management
|
|
@@ -109,54 +150,43 @@ export class EntityClient {
|
|
|
109
150
|
* List invitations for an entity.
|
|
110
151
|
*/
|
|
111
152
|
async listEntityInvitations(entitySlug) {
|
|
112
|
-
return this.
|
|
153
|
+
return this.get(`/entities/${entitySlug}/invitations`);
|
|
113
154
|
}
|
|
114
155
|
/**
|
|
115
156
|
* Create an invitation.
|
|
116
157
|
*/
|
|
117
158
|
async createInvitation(entitySlug, request) {
|
|
118
|
-
return this.
|
|
119
|
-
method: 'POST',
|
|
120
|
-
body: JSON.stringify(request),
|
|
121
|
-
});
|
|
159
|
+
return this.post(`/entities/${entitySlug}/invitations`, request);
|
|
122
160
|
}
|
|
123
161
|
/**
|
|
124
162
|
* Cancel an invitation.
|
|
125
163
|
*/
|
|
126
164
|
async cancelInvitation(entitySlug, invitationId) {
|
|
127
|
-
return this.
|
|
128
|
-
method: 'DELETE',
|
|
129
|
-
});
|
|
165
|
+
return this.del(`/entities/${entitySlug}/invitations/${invitationId}`);
|
|
130
166
|
}
|
|
131
167
|
/**
|
|
132
168
|
* Renew an invitation with a new expiration date.
|
|
133
169
|
*/
|
|
134
170
|
async renewInvitation(entitySlug, invitationId) {
|
|
135
|
-
return this.
|
|
136
|
-
method: 'PUT',
|
|
137
|
-
});
|
|
171
|
+
return this.put(`/entities/${entitySlug}/invitations/${invitationId}`);
|
|
138
172
|
}
|
|
139
173
|
/**
|
|
140
174
|
* List pending invitations for the current user.
|
|
141
175
|
*/
|
|
142
176
|
async listMyInvitations() {
|
|
143
|
-
return this.
|
|
177
|
+
return this.get('/invitations');
|
|
144
178
|
}
|
|
145
179
|
/**
|
|
146
180
|
* Accept an invitation.
|
|
147
181
|
*/
|
|
148
182
|
async acceptInvitation(token) {
|
|
149
|
-
return this.
|
|
150
|
-
method: 'POST',
|
|
151
|
-
});
|
|
183
|
+
return this.post(`/invitations/${token}/accept`);
|
|
152
184
|
}
|
|
153
185
|
/**
|
|
154
186
|
* Decline an invitation.
|
|
155
187
|
*/
|
|
156
188
|
async declineInvitation(token) {
|
|
157
|
-
return this.
|
|
158
|
-
method: 'POST',
|
|
159
|
-
});
|
|
189
|
+
return this.post(`/invitations/${token}/decline`);
|
|
160
190
|
}
|
|
161
191
|
}
|
|
162
192
|
//# sourceMappingURL=EntityClient.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EntityClient.js","sourceRoot":"","sources":["../../src/network/EntityClient.ts"],"names":[],"mappings":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iB,CAAC,KAAa;QACnC,OAAO,IAAI,CAAC,IAAI,CAAO,gBAAgB,KAAK,UAAU,CAAC,CAAC;IAC1D,CAAC;CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sudobility/entity_client",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.23",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Frontend client library for entity/organization management",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -26,11 +26,11 @@
|
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"react": "^18.0.0 || ^19.0.0",
|
|
28
28
|
"@tanstack/react-query": "^5.0.0",
|
|
29
|
-
"@sudobility/types": "^1.9.
|
|
29
|
+
"@sudobility/types": "^1.9.54"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"vitest": "^4.0.4",
|
|
33
|
-
"@sudobility/types": "^1.9.
|
|
33
|
+
"@sudobility/types": "^1.9.54",
|
|
34
34
|
"@eslint/js": "^9.0.0",
|
|
35
35
|
"@tanstack/react-query": "^5.0.0",
|
|
36
36
|
"@types/bun": "^1.2.8",
|