@vertesia/client 1.2.0 → 1.3.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/lib/cjs/IamApi.js +10 -0
- package/lib/cjs/IamApi.js.map +1 -1
- package/lib/cjs/store/IndexingApi.js +3 -0
- package/lib/cjs/store/IndexingApi.js.map +1 -1
- package/lib/esm/IamApi.js +10 -0
- package/lib/esm/IamApi.js.map +1 -1
- package/lib/esm/store/IndexingApi.js +3 -0
- package/lib/esm/store/IndexingApi.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/types/IamApi.d.ts +7 -1
- package/lib/types/IamApi.d.ts.map +1 -1
- package/lib/types/store/IndexingApi.d.ts.map +1 -1
- package/lib/vertesia-client.js +1 -1
- package/lib/vertesia-client.js.map +1 -1
- package/package.json +4 -4
- package/src/IamApi.ts +13 -1
- package/src/store/IndexingApi.ts +3 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vertesia/client",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"types": "./lib/types/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"eventsource": "^3.0.6",
|
|
28
|
-
"@
|
|
29
|
-
"@vertesia/
|
|
30
|
-
"@
|
|
28
|
+
"@llumiverse/common": "1.3.0",
|
|
29
|
+
"@vertesia/common": "1.3.0",
|
|
30
|
+
"@vertesia/api-fetch-client": "1.3.0"
|
|
31
31
|
},
|
|
32
32
|
"ts_dual_module": {
|
|
33
33
|
"outDir": "lib"
|
package/src/IamApi.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AccessControlEntry, ACECreatePayload, AcesQueryOptions, DeleteByIdResult, RoleDefinition } from "@vertesia/common";
|
|
1
|
+
import { AccessControlEntry, ACECreatePayload, ACEUpdatePayload, AcesQueryOptions, DeleteByIdResult, RoleDefinition } from "@vertesia/common";
|
|
2
2
|
import { ApiTopic, ClientBase } from "@vertesia/api-fetch-client";
|
|
3
3
|
import { GroupsApi } from "./GroupsApi.js";
|
|
4
4
|
|
|
@@ -50,6 +50,14 @@ export class AcesApi extends ApiTopic {
|
|
|
50
50
|
return this.get('/', { query: { ...options } });
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
+
/**
|
|
54
|
+
* List all ACEs scoped to the current project.
|
|
55
|
+
* Returns both regular project ACEs and dynamic (content_set/principal_set) ACEs.
|
|
56
|
+
*/
|
|
57
|
+
listProjectAces(): Promise<AccessControlEntry[]> {
|
|
58
|
+
return this.get('/project');
|
|
59
|
+
}
|
|
60
|
+
|
|
53
61
|
/**
|
|
54
62
|
* Get an ACE by its Id
|
|
55
63
|
* @param id
|
|
@@ -63,6 +71,10 @@ export class AcesApi extends ApiTopic {
|
|
|
63
71
|
return this.post('/', { payload })
|
|
64
72
|
}
|
|
65
73
|
|
|
74
|
+
update(id: string, payload: ACEUpdatePayload): Promise<AccessControlEntry> {
|
|
75
|
+
return this.put('/' + id, { payload })
|
|
76
|
+
}
|
|
77
|
+
|
|
66
78
|
delete(id: string): Promise<DeleteByIdResult> {
|
|
67
79
|
return this.del('/' + id)
|
|
68
80
|
}
|
package/src/store/IndexingApi.ts
CHANGED
|
@@ -286,6 +286,9 @@ export class IndexingApi extends ApiTopic {
|
|
|
286
286
|
*/
|
|
287
287
|
private get zenoBulkBaseUrl(): string {
|
|
288
288
|
const storeBaseUrl = this.client.baseUrl;
|
|
289
|
+
if (storeBaseUrl.includes('localhost:') || storeBaseUrl.includes('127.0.0.1:')) {
|
|
290
|
+
return 'https://zeno-bulk-dev-main.api.dev1.vertesia.io';
|
|
291
|
+
}
|
|
289
292
|
if (storeBaseUrl.includes('zeno-server')) {
|
|
290
293
|
return storeBaseUrl.replace(/zeno-server/, 'zeno-bulk');
|
|
291
294
|
}
|