@lightdash-tools/client 0.6.0 → 0.8.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.
Files changed (256) hide show
  1. package/README.md +2 -2
  2. package/dist/agentops/apply-agent-change.d.ts +3 -0
  3. package/dist/agentops/apply-agent-change.js +63 -0
  4. package/dist/agentops/apply-bundle-diff.d.ts +13 -0
  5. package/dist/agentops/apply-bundle-diff.js +44 -0
  6. package/dist/agentops/apply-bundle-diff.test.d.ts +1 -0
  7. package/dist/agentops/apply-bundle-diff.test.js +397 -0
  8. package/dist/agentops/apply-context.d.ts +14 -0
  9. package/dist/agentops/apply-context.js +6 -0
  10. package/dist/agentops/apply-evaluation-change.d.ts +3 -0
  11. package/dist/agentops/apply-evaluation-change.js +78 -0
  12. package/dist/agentops/fetch-bundle-state.d.ts +6 -0
  13. package/dist/agentops/fetch-bundle-state.js +20 -0
  14. package/dist/agentops/fetch-bundle-state.test.d.ts +1 -0
  15. package/dist/agentops/fetch-bundle-state.test.js +44 -0
  16. package/dist/agentops/index.d.ts +3 -0
  17. package/dist/agentops/index.js +9 -0
  18. package/dist/agentops/resolve-evaluation-run.d.ts +15 -0
  19. package/dist/agentops/resolve-evaluation-run.js +48 -0
  20. package/dist/api/v1/ai-agents/admin.d.ts +16 -0
  21. package/dist/api/v1/ai-agents/admin.js +29 -0
  22. package/dist/api/v1/ai-agents/agents.d.ts +18 -0
  23. package/dist/api/v1/ai-agents/agents.js +31 -0
  24. package/dist/api/v1/ai-agents/artifacts.d.ts +26 -0
  25. package/dist/api/v1/ai-agents/artifacts.js +41 -0
  26. package/dist/api/v1/ai-agents/artifacts.test.d.ts +1 -0
  27. package/dist/api/v1/ai-agents/artifacts.test.js +69 -0
  28. package/dist/api/v1/ai-agents/discovery.d.ts +28 -0
  29. package/dist/api/v1/ai-agents/discovery.js +46 -0
  30. package/dist/api/v1/ai-agents/discovery.test.d.ts +1 -0
  31. package/dist/api/v1/ai-agents/discovery.test.js +90 -0
  32. package/dist/api/v1/ai-agents/evaluations.d.ts +39 -0
  33. package/dist/api/v1/ai-agents/evaluations.js +70 -0
  34. package/dist/api/v1/ai-agents/facade.d.ts +79 -0
  35. package/dist/api/v1/ai-agents/facade.js +193 -0
  36. package/dist/api/v1/ai-agents/feedback.d.ts +10 -0
  37. package/dist/api/v1/ai-agents/feedback.js +15 -0
  38. package/dist/api/v1/ai-agents/feedback.test.d.ts +1 -0
  39. package/dist/api/v1/ai-agents/feedback.test.js +23 -0
  40. package/dist/api/v1/ai-agents/index.d.ts +1 -0
  41. package/dist/api/v1/ai-agents/index.js +5 -0
  42. package/dist/api/v1/ai-agents/mcp-servers.d.ts +20 -0
  43. package/dist/api/v1/ai-agents/mcp-servers.js +35 -0
  44. package/dist/api/v1/ai-agents/mcp-servers.test.d.ts +1 -0
  45. package/dist/api/v1/ai-agents/mcp-servers.test.js +66 -0
  46. package/dist/api/v1/ai-agents/request-options.d.ts +12 -0
  47. package/dist/api/v1/ai-agents/request-options.js +20 -0
  48. package/dist/api/v1/ai-agents/sql-approval.d.ts +10 -0
  49. package/dist/api/v1/ai-agents/sql-approval.js +15 -0
  50. package/dist/api/v1/ai-agents/sql-approval.test.d.ts +1 -0
  51. package/dist/api/v1/ai-agents/sql-approval.test.js +25 -0
  52. package/dist/api/v1/ai-agents/threads.d.ts +56 -0
  53. package/dist/api/v1/ai-agents/threads.js +97 -0
  54. package/dist/api/v1/ai-agents/threads.test.d.ts +1 -0
  55. package/dist/api/v1/ai-agents/threads.test.js +39 -0
  56. package/dist/api/v1/ai-agents.test.js +172 -89
  57. package/dist/api/v1/analytics.d.ts +10 -0
  58. package/dist/api/v1/analytics.js +14 -0
  59. package/dist/api/v1/analytics.test.d.ts +4 -0
  60. package/dist/api/v1/analytics.test.js +27 -0
  61. package/dist/api/v1/charts.d.ts +13 -2
  62. package/dist/api/v1/charts.js +26 -30
  63. package/dist/api/v1/charts.test.js +35 -28
  64. package/dist/api/v1/dashboards.d.ts +42 -2
  65. package/dist/api/v1/dashboards.js +39 -14
  66. package/dist/api/v1/dashboards.test.js +126 -12
  67. package/dist/api/v1/explores.d.ts +4 -2
  68. package/dist/api/v1/explores.js +20 -29
  69. package/dist/api/v1/explores.test.js +31 -21
  70. package/dist/api/v1/groups.d.ts +1 -1
  71. package/dist/api/v1/groups.js +25 -51
  72. package/dist/api/v1/groups.test.js +15 -24
  73. package/dist/api/v1/metrics.d.ts +2 -2
  74. package/dist/api/v1/metrics.js +4 -17
  75. package/dist/api/v1/metrics.test.js +6 -15
  76. package/dist/api/v1/organizations.d.ts +1 -1
  77. package/dist/api/v1/organizations.js +2 -13
  78. package/dist/api/v1/organizations.test.js +3 -12
  79. package/dist/api/v1/project-access.d.ts +1 -1
  80. package/dist/api/v1/project-access.js +18 -45
  81. package/dist/api/v1/project-access.test.js +27 -36
  82. package/dist/api/v1/projects.d.ts +1 -1
  83. package/dist/api/v1/projects.js +6 -21
  84. package/dist/api/v1/projects.test.js +9 -18
  85. package/dist/api/v1/query.d.ts +5 -2
  86. package/dist/api/v1/query.js +8 -18
  87. package/dist/api/v1/query.test.js +6 -15
  88. package/dist/api/v1/schedulers.d.ts +2 -2
  89. package/dist/api/v1/schedulers.js +4 -17
  90. package/dist/api/v1/schedulers.test.js +6 -15
  91. package/dist/api/v1/spaces.d.ts +1 -1
  92. package/dist/api/v1/spaces.js +18 -45
  93. package/dist/api/v1/spaces.test.js +27 -36
  94. package/dist/api/v1/tags.d.ts +1 -1
  95. package/dist/api/v1/tags.js +4 -17
  96. package/dist/api/v1/tags.test.js +6 -15
  97. package/dist/api/v1/users.d.ts +3 -1
  98. package/dist/api/v1/users.js +22 -39
  99. package/dist/api/v1/users.test.js +44 -30
  100. package/dist/api/v1/validation.d.ts +9 -2
  101. package/dist/api/v1/validation.js +16 -18
  102. package/dist/api/v1/validation.test.js +22 -15
  103. package/dist/api/v2/charts.d.ts +12 -0
  104. package/dist/api/v2/charts.js +18 -0
  105. package/dist/api/v2/charts.test.d.ts +4 -0
  106. package/dist/api/v2/charts.test.js +45 -0
  107. package/dist/api/v2/content.d.ts +20 -3
  108. package/dist/api/v2/content.js +18 -14
  109. package/dist/api/v2/content.test.js +44 -12
  110. package/dist/api/v2/dashboards.d.ts +16 -0
  111. package/dist/api/v2/dashboards.js +22 -0
  112. package/dist/api/v2/dashboards.test.d.ts +4 -0
  113. package/dist/api/v2/dashboards.test.js +61 -0
  114. package/dist/api/v2/organization-roles.d.ts +1 -1
  115. package/dist/api/v2/organization-roles.js +21 -50
  116. package/dist/api/v2/organization-roles.test.js +33 -42
  117. package/dist/api/v2/parameters.d.ts +20 -0
  118. package/dist/api/v2/parameters.js +22 -0
  119. package/dist/api/v2/parameters.test.d.ts +4 -0
  120. package/dist/api/v2/parameters.test.js +39 -0
  121. package/dist/api/v2/project-role-assignments.d.ts +1 -1
  122. package/dist/api/v2/project-role-assignments.js +12 -33
  123. package/dist/api/v2/project-role-assignments.test.js +18 -27
  124. package/dist/api/v2/query.d.ts +16 -1
  125. package/dist/api/v2/query.js +26 -29
  126. package/dist/api/v2/query.test.js +31 -24
  127. package/dist/api/v2/validation.d.ts +28 -0
  128. package/dist/api/v2/validation.js +23 -0
  129. package/dist/client.d.ts +24 -14
  130. package/dist/client.js +26 -16
  131. package/dist/client.test.js +2 -0
  132. package/dist/config.d.ts +35 -10
  133. package/dist/http/axios-client.d.ts +4 -4
  134. package/dist/http/http-client.d.ts +3 -14
  135. package/dist/http/http-client.js +20 -43
  136. package/dist/http/interceptors.d.ts +3 -3
  137. package/dist/http/interceptors.js +16 -3
  138. package/dist/http/rate-limiter.js +2 -13
  139. package/dist/http/rate-limiter.test.js +15 -24
  140. package/dist/http/unwrap-api-success.d.ts +26 -0
  141. package/dist/http/unwrap-api-success.js +25 -0
  142. package/dist/http/unwrap-api-success.test.d.ts +1 -0
  143. package/dist/http/unwrap-api-success.test.js +19 -0
  144. package/dist/index.d.ts +13 -3
  145. package/dist/index.js +17 -1
  146. package/dist/index.test.js +13 -5
  147. package/dist/pagination/fetch-all-pages.js +18 -29
  148. package/dist/pagination/fetch-all-pages.test.js +15 -24
  149. package/dist/types/api.d.ts +1 -1
  150. package/dist/utils/env.d.ts +11 -2
  151. package/dist/utils/env.js +41 -8
  152. package/dist/utils/env.test.js +14 -4
  153. package/dist/utils/logger.js +5 -4
  154. package/dist/utils/retry.js +17 -28
  155. package/dist/utils/retry.test.js +9 -18
  156. package/dist/utils/secret-string.test.d.ts +1 -0
  157. package/dist/utils/secret-string.test.js +25 -0
  158. package/package.json +12 -4
  159. package/src/agentops/apply-agent-change.ts +82 -0
  160. package/src/agentops/apply-bundle-diff.test.ts +453 -0
  161. package/src/agentops/apply-bundle-diff.ts +63 -0
  162. package/src/agentops/apply-context.ts +23 -0
  163. package/src/agentops/apply-evaluation-change.ts +125 -0
  164. package/src/agentops/fetch-bundle-state.test.ts +51 -0
  165. package/src/agentops/fetch-bundle-state.ts +33 -0
  166. package/src/agentops/index.ts +11 -0
  167. package/src/agentops/resolve-evaluation-run.ts +94 -0
  168. package/src/api/v1/ai-agents/admin.ts +41 -0
  169. package/src/api/v1/ai-agents/agents.ts +40 -0
  170. package/src/api/v1/ai-agents/artifacts.test.ts +84 -0
  171. package/src/api/v1/ai-agents/artifacts.ts +92 -0
  172. package/src/api/v1/ai-agents/discovery.test.ts +102 -0
  173. package/src/api/v1/ai-agents/discovery.ts +79 -0
  174. package/src/api/v1/ai-agents/evaluations.ts +152 -0
  175. package/src/api/v1/ai-agents/facade.ts +489 -0
  176. package/src/api/v1/ai-agents/feedback.test.ts +30 -0
  177. package/src/api/v1/ai-agents/feedback.ts +24 -0
  178. package/src/api/v1/ai-agents/index.ts +1 -0
  179. package/src/api/v1/ai-agents/mcp-servers.test.ts +81 -0
  180. package/src/api/v1/ai-agents/mcp-servers.ts +67 -0
  181. package/src/api/v1/ai-agents/request-options.ts +32 -0
  182. package/src/api/v1/ai-agents/sql-approval.test.ts +32 -0
  183. package/src/api/v1/ai-agents/sql-approval.ts +24 -0
  184. package/src/api/v1/ai-agents/threads.test.ts +55 -0
  185. package/src/api/v1/ai-agents/threads.ts +216 -0
  186. package/src/api/v1/ai-agents.test.ts +189 -13
  187. package/src/api/v1/analytics.test.ts +32 -0
  188. package/src/api/v1/analytics.ts +16 -0
  189. package/src/api/v1/charts.test.ts +26 -6
  190. package/src/api/v1/charts.ts +25 -4
  191. package/src/api/v1/dashboards.test.ts +142 -0
  192. package/src/api/v1/dashboards.ts +127 -2
  193. package/src/api/v1/explores.test.ts +22 -0
  194. package/src/api/v1/explores.ts +13 -2
  195. package/src/api/v1/groups.test.ts +2 -0
  196. package/src/api/v1/groups.ts +9 -7
  197. package/src/api/v1/metrics.test.ts +2 -0
  198. package/src/api/v1/metrics.ts +3 -2
  199. package/src/api/v1/organizations.test.ts +2 -0
  200. package/src/api/v1/organizations.ts +2 -1
  201. package/src/api/v1/project-access.test.ts +3 -1
  202. package/src/api/v1/project-access.ts +2 -1
  203. package/src/api/v1/projects.test.ts +2 -0
  204. package/src/api/v1/projects.ts +2 -1
  205. package/src/api/v1/query.test.ts +2 -0
  206. package/src/api/v1/query.ts +6 -2
  207. package/src/api/v1/schedulers.test.ts +2 -0
  208. package/src/api/v1/schedulers.ts +3 -2
  209. package/src/api/v1/spaces.test.ts +2 -0
  210. package/src/api/v1/spaces.ts +2 -1
  211. package/src/api/v1/tags.test.ts +2 -0
  212. package/src/api/v1/tags.ts +2 -1
  213. package/src/api/v1/users.test.ts +26 -0
  214. package/src/api/v1/users.ts +8 -2
  215. package/src/api/v1/validation.test.ts +20 -0
  216. package/src/api/v1/validation.ts +26 -2
  217. package/src/api/v2/charts.test.ts +53 -0
  218. package/src/api/v2/charts.ts +23 -0
  219. package/src/api/v2/content.test.ts +47 -0
  220. package/src/api/v2/content.ts +37 -3
  221. package/src/api/v2/dashboards.test.ts +71 -0
  222. package/src/api/v2/dashboards.ts +40 -0
  223. package/src/api/v2/organization-roles.test.ts +2 -0
  224. package/src/api/v2/organization-roles.ts +2 -1
  225. package/src/api/v2/parameters.test.ts +45 -0
  226. package/src/api/v2/parameters.ts +38 -0
  227. package/src/api/v2/project-role-assignments.test.ts +2 -0
  228. package/src/api/v2/project-role-assignments.ts +2 -1
  229. package/src/api/v2/query.test.ts +20 -0
  230. package/src/api/v2/query.ts +55 -1
  231. package/src/api/v2/validation.ts +48 -0
  232. package/src/client.test.ts +3 -0
  233. package/src/client.ts +33 -17
  234. package/src/config.ts +38 -10
  235. package/src/errors.test.ts +1 -0
  236. package/src/http/axios-client.ts +8 -5
  237. package/src/http/http-client.ts +8 -21
  238. package/src/http/interceptors.ts +23 -10
  239. package/src/http/rate-limiter.test.ts +1 -0
  240. package/src/http/rate-limiter.ts +3 -1
  241. package/src/http/unwrap-api-success.test.ts +23 -0
  242. package/src/http/unwrap-api-success.ts +40 -0
  243. package/src/index.test.ts +16 -7
  244. package/src/index.ts +37 -2
  245. package/src/pagination/fetch-all-pages.test.ts +2 -0
  246. package/src/types/api.ts +1 -1
  247. package/src/utils/env.test.ts +16 -4
  248. package/src/utils/env.ts +61 -10
  249. package/src/utils/logger.ts +6 -4
  250. package/src/utils/retry.test.ts +1 -0
  251. package/src/utils/retry.ts +2 -1
  252. package/src/utils/secret-string.test.ts +27 -0
  253. package/tsconfig.json +4 -2
  254. package/dist/api/v1/ai-agents.d.ts +0 -63
  255. package/dist/api/v1/ai-agents.js +0 -173
  256. package/src/api/v1/ai-agents.ts +0 -252
@@ -1,13 +1,4 @@
1
1
  "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
2
  Object.defineProperty(exports, "__esModule", { value: true });
12
3
  const vitest_1 = require("vitest");
13
4
  const project_access_1 = require("./project-access");
@@ -22,7 +13,7 @@ const project_access_1 = require("./project-access");
22
13
  delete: vitest_1.vi.fn(),
23
14
  };
24
15
  });
25
- (0, vitest_1.it)('listProjectAccess should call GET /projects/{projectUuid}/access', () => __awaiter(void 0, void 0, void 0, function* () {
16
+ (0, vitest_1.it)('listProjectAccess should call GET /projects/{projectUuid}/access', async () => {
26
17
  const client = new project_access_1.ProjectAccessClient(mockHttp);
27
18
  const list = [
28
19
  {
@@ -35,18 +26,18 @@ const project_access_1 = require("./project-access");
35
26
  },
36
27
  ];
37
28
  vitest_1.vi.mocked(mockHttp.get).mockResolvedValue(list);
38
- const result = yield client.listProjectAccess('p1');
29
+ const result = await client.listProjectAccess('p1');
39
30
  (0, vitest_1.expect)(mockHttp.get).toHaveBeenCalledWith('/projects/p1/access');
40
31
  (0, vitest_1.expect)(result).toEqual(list);
41
- }));
42
- (0, vitest_1.it)('grantProjectAccessToUser should call POST /projects/{projectUuid}/access with body', () => __awaiter(void 0, void 0, void 0, function* () {
32
+ });
33
+ (0, vitest_1.it)('grantProjectAccessToUser should call POST /projects/{projectUuid}/access with body', async () => {
43
34
  const client = new project_access_1.ProjectAccessClient(mockHttp);
44
35
  vitest_1.vi.mocked(mockHttp.post).mockResolvedValue(undefined);
45
36
  const body = { email: 'u@example.com', role: 'viewer', sendEmail: true };
46
- yield client.grantProjectAccessToUser('p1', body);
37
+ await client.grantProjectAccessToUser('p1', body);
47
38
  (0, vitest_1.expect)(mockHttp.post).toHaveBeenCalledWith('/projects/p1/access', body);
48
- }));
49
- (0, vitest_1.it)('getProjectMemberAccess should call GET /projects/{projectUuid}/user/{userUuid}', () => __awaiter(void 0, void 0, void 0, function* () {
39
+ });
40
+ (0, vitest_1.it)('getProjectMemberAccess should call GET /projects/{projectUuid}/user/{userUuid}', async () => {
50
41
  const client = new project_access_1.ProjectAccessClient(mockHttp);
51
42
  const member = {
52
43
  userUuid: 'u1',
@@ -57,53 +48,53 @@ const project_access_1 = require("./project-access");
57
48
  projectUuid: 'p1',
58
49
  };
59
50
  vitest_1.vi.mocked(mockHttp.get).mockResolvedValue(member);
60
- const result = yield client.getProjectMemberAccess('p1', 'u1');
51
+ const result = await client.getProjectMemberAccess('p1', 'u1');
61
52
  (0, vitest_1.expect)(mockHttp.get).toHaveBeenCalledWith('/projects/p1/user/u1');
62
53
  (0, vitest_1.expect)(result).toEqual(member);
63
- }));
64
- (0, vitest_1.it)('updateProjectAccessForUser should call PATCH /projects/{projectUuid}/access/{userUuid}', () => __awaiter(void 0, void 0, void 0, function* () {
54
+ });
55
+ (0, vitest_1.it)('updateProjectAccessForUser should call PATCH /projects/{projectUuid}/access/{userUuid}', async () => {
65
56
  const client = new project_access_1.ProjectAccessClient(mockHttp);
66
57
  vitest_1.vi.mocked(mockHttp.patch).mockResolvedValue(undefined);
67
58
  const body = { role: 'editor' };
68
- yield client.updateProjectAccessForUser('p1', 'u1', body);
59
+ await client.updateProjectAccessForUser('p1', 'u1', body);
69
60
  (0, vitest_1.expect)(mockHttp.patch).toHaveBeenCalledWith('/projects/p1/access/u1', body);
70
- }));
71
- (0, vitest_1.it)('revokeProjectAccessForUser should call DELETE /projects/{projectUuid}/access/{userUuid}', () => __awaiter(void 0, void 0, void 0, function* () {
61
+ });
62
+ (0, vitest_1.it)('revokeProjectAccessForUser should call DELETE /projects/{projectUuid}/access/{userUuid}', async () => {
72
63
  const client = new project_access_1.ProjectAccessClient(mockHttp);
73
64
  vitest_1.vi.mocked(mockHttp.delete).mockResolvedValue(undefined);
74
- yield client.revokeProjectAccessForUser('p1', 'u1');
65
+ await client.revokeProjectAccessForUser('p1', 'u1');
75
66
  (0, vitest_1.expect)(mockHttp.delete).toHaveBeenCalledWith('/projects/p1/access/u1');
76
- }));
77
- (0, vitest_1.it)('listProjectGroupAccesses should call GET /projects/{projectUuid}/groupAccesses', () => __awaiter(void 0, void 0, void 0, function* () {
67
+ });
68
+ (0, vitest_1.it)('listProjectGroupAccesses should call GET /projects/{projectUuid}/groupAccesses', async () => {
78
69
  const client = new project_access_1.ProjectAccessClient(mockHttp);
79
70
  const list = [{ groupUuid: 'g1', projectUuid: 'p1', role: 'viewer' }];
80
71
  vitest_1.vi.mocked(mockHttp.get).mockResolvedValue(list);
81
- const result = yield client.listProjectGroupAccesses('p1');
72
+ const result = await client.listProjectGroupAccesses('p1');
82
73
  (0, vitest_1.expect)(mockHttp.get).toHaveBeenCalledWith('/projects/p1/groupAccesses');
83
74
  (0, vitest_1.expect)(result).toEqual(list);
84
- }));
85
- (0, vitest_1.it)('addProjectAccessToGroup should call POST /groups/{groupUuid}/projects/{projectUuid}', () => __awaiter(void 0, void 0, void 0, function* () {
75
+ });
76
+ (0, vitest_1.it)('addProjectAccessToGroup should call POST /groups/{groupUuid}/projects/{projectUuid}', async () => {
86
77
  const client = new project_access_1.ProjectAccessClient(mockHttp);
87
78
  const created = { groupUuid: 'g1', projectUuid: 'p1', role: 'viewer' };
88
79
  vitest_1.vi.mocked(mockHttp.post).mockResolvedValue(created);
89
80
  const body = { role: 'viewer' };
90
- const result = yield client.addProjectAccessToGroup('g1', 'p1', body);
81
+ const result = await client.addProjectAccessToGroup('g1', 'p1', body);
91
82
  (0, vitest_1.expect)(mockHttp.post).toHaveBeenCalledWith('/groups/g1/projects/p1', body);
92
83
  (0, vitest_1.expect)(result).toEqual(created);
93
- }));
94
- (0, vitest_1.it)('removeProjectAccessFromGroup should call DELETE /groups/{groupUuid}/projects/{projectUuid}', () => __awaiter(void 0, void 0, void 0, function* () {
84
+ });
85
+ (0, vitest_1.it)('removeProjectAccessFromGroup should call DELETE /groups/{groupUuid}/projects/{projectUuid}', async () => {
95
86
  const client = new project_access_1.ProjectAccessClient(mockHttp);
96
87
  vitest_1.vi.mocked(mockHttp.delete).mockResolvedValue(undefined);
97
- yield client.removeProjectAccessFromGroup('g1', 'p1');
88
+ await client.removeProjectAccessFromGroup('g1', 'p1');
98
89
  (0, vitest_1.expect)(mockHttp.delete).toHaveBeenCalledWith('/groups/g1/projects/p1');
99
- }));
100
- (0, vitest_1.it)('updateProjectAccessForGroup should call PATCH /groups/{groupUuid}/projects/{projectUuid}', () => __awaiter(void 0, void 0, void 0, function* () {
90
+ });
91
+ (0, vitest_1.it)('updateProjectAccessForGroup should call PATCH /groups/{groupUuid}/projects/{projectUuid}', async () => {
101
92
  const client = new project_access_1.ProjectAccessClient(mockHttp);
102
93
  const updated = { groupUuid: 'g1', projectUuid: 'p1', role: 'editor' };
103
94
  vitest_1.vi.mocked(mockHttp.patch).mockResolvedValue(updated);
104
95
  const body = { role: 'editor' };
105
- const result = yield client.updateProjectAccessForGroup('g1', 'p1', body);
96
+ const result = await client.updateProjectAccessForGroup('g1', 'p1', body);
106
97
  (0, vitest_1.expect)(mockHttp.patch).toHaveBeenCalledWith('/groups/g1/projects/p1', body);
107
98
  (0, vitest_1.expect)(result).toEqual(updated);
108
- }));
99
+ });
109
100
  });
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * Projects API client. Endpoints for project and project-scoped resources.
3
3
  */
4
- import type { Project, OrganizationProject, SpaceQuery } from '@lightdash-tools/common';
5
4
  import { BaseApiClient } from '../base-client';
5
+ import type { Project, OrganizationProject, SpaceQuery } from '@lightdash-tools/common';
6
6
  export declare class ProjectsClient extends BaseApiClient {
7
7
  /** Get a project by UUID. */
8
8
  getProject(projectUuid: string): Promise<Project>;
@@ -2,36 +2,21 @@
2
2
  /**
3
3
  * Projects API client. Endpoints for project and project-scoped resources.
4
4
  */
5
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
6
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
7
- return new (P || (P = Promise))(function (resolve, reject) {
8
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
9
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
10
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
11
- step((generator = generator.apply(thisArg, _arguments || [])).next());
12
- });
13
- };
14
5
  Object.defineProperty(exports, "__esModule", { value: true });
15
6
  exports.ProjectsClient = void 0;
16
7
  const base_client_1 = require("../base-client");
17
8
  class ProjectsClient extends base_client_1.BaseApiClient {
18
9
  /** Get a project by UUID. */
19
- getProject(projectUuid) {
20
- return __awaiter(this, void 0, void 0, function* () {
21
- return this.http.get(`/projects/${projectUuid}`);
22
- });
10
+ async getProject(projectUuid) {
11
+ return this.http.get(`/projects/${projectUuid}`);
23
12
  }
24
13
  /** List all projects in the current organization. */
25
- listProjects() {
26
- return __awaiter(this, void 0, void 0, function* () {
27
- return this.http.get('/org/projects');
28
- });
14
+ async listProjects() {
15
+ return this.http.get('/org/projects');
29
16
  }
30
17
  /** List charts in a project. */
31
- listChartsInProject(projectUuid) {
32
- return __awaiter(this, void 0, void 0, function* () {
33
- return this.http.get(`/projects/${projectUuid}/charts`);
34
- });
18
+ async listChartsInProject(projectUuid) {
19
+ return this.http.get(`/projects/${projectUuid}/charts`);
35
20
  }
36
21
  }
37
22
  exports.ProjectsClient = ProjectsClient;
@@ -1,13 +1,4 @@
1
1
  "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
2
  Object.defineProperty(exports, "__esModule", { value: true });
12
3
  const vitest_1 = require("vitest");
13
4
  const projects_1 = require("./projects");
@@ -22,28 +13,28 @@ const projects_1 = require("./projects");
22
13
  delete: vitest_1.vi.fn(),
23
14
  };
24
15
  });
25
- (0, vitest_1.it)('getProject should call GET /projects/{projectUuid}', () => __awaiter(void 0, void 0, void 0, function* () {
16
+ (0, vitest_1.it)('getProject should call GET /projects/{projectUuid}', async () => {
26
17
  const client = new projects_1.ProjectsClient(mockHttp);
27
18
  const project = { projectUuid: 'p1', name: 'Test' };
28
19
  vitest_1.vi.mocked(mockHttp.get).mockResolvedValue(project);
29
- const result = yield client.getProject('p1');
20
+ const result = await client.getProject('p1');
30
21
  (0, vitest_1.expect)(mockHttp.get).toHaveBeenCalledWith('/projects/p1');
31
22
  (0, vitest_1.expect)(result).toEqual(project);
32
- }));
33
- (0, vitest_1.it)('listProjects should call GET /org/projects', () => __awaiter(void 0, void 0, void 0, function* () {
23
+ });
24
+ (0, vitest_1.it)('listProjects should call GET /org/projects', async () => {
34
25
  const client = new projects_1.ProjectsClient(mockHttp);
35
26
  const list = [{ projectUuid: 'p1', name: 'P1' }];
36
27
  vitest_1.vi.mocked(mockHttp.get).mockResolvedValue(list);
37
- const result = yield client.listProjects();
28
+ const result = await client.listProjects();
38
29
  (0, vitest_1.expect)(mockHttp.get).toHaveBeenCalledWith('/org/projects');
39
30
  (0, vitest_1.expect)(result).toEqual(list);
40
- }));
41
- (0, vitest_1.it)('listChartsInProject should call GET /projects/{projectUuid}/charts', () => __awaiter(void 0, void 0, void 0, function* () {
31
+ });
32
+ (0, vitest_1.it)('listChartsInProject should call GET /projects/{projectUuid}/charts', async () => {
42
33
  const client = new projects_1.ProjectsClient(mockHttp);
43
34
  const charts = [];
44
35
  vitest_1.vi.mocked(mockHttp.get).mockResolvedValue(charts);
45
- const result = yield client.listChartsInProject('p1');
36
+ const result = await client.listChartsInProject('p1');
46
37
  (0, vitest_1.expect)(mockHttp.get).toHaveBeenCalledWith('/projects/p1/charts');
47
38
  (0, vitest_1.expect)(result).toEqual(charts);
48
- }));
39
+ });
49
40
  });
@@ -1,10 +1,13 @@
1
1
  /**
2
2
  * Query API client. Run metric/SQL/underlying data queries.
3
3
  */
4
- import type { MetricQueryRequest, RunQueryResults, CompileQueryRequest, CompiledQueryResults } from '@lightdash-tools/common';
5
4
  import { BaseApiClient } from '../base-client';
5
+ import type { MetricQueryRequest, RunQueryResults, CompileQueryRequest, CompiledQueryResults } from '@lightdash-tools/common';
6
6
  export declare class QueryClient extends BaseApiClient {
7
- /** Run a metric query for an explore. */
7
+ /**
8
+ * Run a metric query for an explore.
9
+ * @deprecated This API endpoint is deprecated in Lightdash. Use v2 query API instead.
10
+ */
8
11
  runQuery(projectUuid: string, exploreId: string, body: MetricQueryRequest): Promise<RunQueryResults>;
9
12
  /** Compile a metric query for an explore. */
10
13
  compileQuery(projectUuid: string, exploreId: string, body: CompileQueryRequest): Promise<CompiledQueryResults>;
@@ -2,30 +2,20 @@
2
2
  /**
3
3
  * Query API client. Run metric/SQL/underlying data queries.
4
4
  */
5
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
6
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
7
- return new (P || (P = Promise))(function (resolve, reject) {
8
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
9
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
10
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
11
- step((generator = generator.apply(thisArg, _arguments || [])).next());
12
- });
13
- };
14
5
  Object.defineProperty(exports, "__esModule", { value: true });
15
6
  exports.QueryClient = void 0;
16
7
  const base_client_1 = require("../base-client");
17
8
  class QueryClient extends base_client_1.BaseApiClient {
18
- /** Run a metric query for an explore. */
19
- runQuery(projectUuid, exploreId, body) {
20
- return __awaiter(this, void 0, void 0, function* () {
21
- return this.http.post(`/projects/${projectUuid}/explores/${exploreId}/runQuery`, body);
22
- });
9
+ /**
10
+ * Run a metric query for an explore.
11
+ * @deprecated This API endpoint is deprecated in Lightdash. Use v2 query API instead.
12
+ */
13
+ async runQuery(projectUuid, exploreId, body) {
14
+ return this.http.post(`/projects/${projectUuid}/explores/${exploreId}/runQuery`, body);
23
15
  }
24
16
  /** Compile a metric query for an explore. */
25
- compileQuery(projectUuid, exploreId, body) {
26
- return __awaiter(this, void 0, void 0, function* () {
27
- return this.http.post(`/projects/${projectUuid}/explores/${exploreId}/compileQuery`, body);
28
- });
17
+ async compileQuery(projectUuid, exploreId, body) {
18
+ return this.http.post(`/projects/${projectUuid}/explores/${exploreId}/compileQuery`, body);
29
19
  }
30
20
  }
31
21
  exports.QueryClient = QueryClient;
@@ -1,13 +1,4 @@
1
1
  "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
2
  Object.defineProperty(exports, "__esModule", { value: true });
12
3
  const vitest_1 = require("vitest");
13
4
  const query_1 = require("./query");
@@ -22,16 +13,16 @@ const query_1 = require("./query");
22
13
  delete: vitest_1.vi.fn(),
23
14
  };
24
15
  });
25
- (0, vitest_1.it)('runQuery should call POST /projects/{projectUuid}/explores/{exploreId}/runQuery with body', () => __awaiter(void 0, void 0, void 0, function* () {
16
+ (0, vitest_1.it)('runQuery should call POST /projects/{projectUuid}/explores/{exploreId}/runQuery with body', async () => {
26
17
  const client = new query_1.QueryClient(mockHttp);
27
18
  const body = { dimensions: [], metrics: [], filters: {} };
28
19
  const results = { rows: [], metricQuery: {} };
29
20
  vitest_1.vi.mocked(mockHttp.post).mockResolvedValue(results);
30
- const result = yield client.runQuery('p1', 'explore1', body);
21
+ const result = await client.runQuery('p1', 'explore1', body);
31
22
  (0, vitest_1.expect)(mockHttp.post).toHaveBeenCalledWith('/projects/p1/explores/explore1/runQuery', body);
32
23
  (0, vitest_1.expect)(result).toEqual(results);
33
- }));
34
- (0, vitest_1.it)('compileQuery should call POST /projects/{projectUuid}/explores/{exploreId}/compileQuery with body', () => __awaiter(void 0, void 0, void 0, function* () {
24
+ });
25
+ (0, vitest_1.it)('compileQuery should call POST /projects/{projectUuid}/explores/{exploreId}/compileQuery with body', async () => {
35
26
  const client = new query_1.QueryClient(mockHttp);
36
27
  const body = {
37
28
  dimensions: [],
@@ -44,8 +35,8 @@ const query_1 = require("./query");
44
35
  };
45
36
  const results = { query: 'SELECT ...', parameterReferences: [] };
46
37
  vitest_1.vi.mocked(mockHttp.post).mockResolvedValue(results);
47
- const result = yield client.compileQuery('p1', 'explore1', body);
38
+ const result = await client.compileQuery('p1', 'explore1', body);
48
39
  (0, vitest_1.expect)(mockHttp.post).toHaveBeenCalledWith('/projects/p1/explores/explore1/compileQuery', body);
49
40
  (0, vitest_1.expect)(result).toEqual(results);
50
- }));
41
+ });
51
42
  });
@@ -1,14 +1,14 @@
1
1
  /**
2
2
  * Schedulers API client.
3
3
  */
4
- import type { LightdashApi } from '@lightdash-tools/common';
5
4
  import { BaseApiClient } from '../base-client';
5
+ import type { LightdashApi } from '@lightdash-tools/common';
6
6
  /** Query params for listing schedulers. */
7
7
  export interface ListSchedulersParams {
8
8
  pageSize?: number;
9
9
  page?: number;
10
10
  searchQuery?: string;
11
- sortBy?: 'name' | 'createdAt';
11
+ sortBy?: 'createdAt' | 'name';
12
12
  sortDirection?: 'asc' | 'desc';
13
13
  createdByUserUuids?: string;
14
14
  formats?: string;
@@ -2,30 +2,17 @@
2
2
  /**
3
3
  * Schedulers API client.
4
4
  */
5
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
6
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
7
- return new (P || (P = Promise))(function (resolve, reject) {
8
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
9
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
10
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
11
- step((generator = generator.apply(thisArg, _arguments || [])).next());
12
- });
13
- };
14
5
  Object.defineProperty(exports, "__esModule", { value: true });
15
6
  exports.SchedulersClient = void 0;
16
7
  const base_client_1 = require("../base-client");
17
8
  class SchedulersClient extends base_client_1.BaseApiClient {
18
9
  /** List schedulers in a project. */
19
- listSchedulers(projectUuid, params) {
20
- return __awaiter(this, void 0, void 0, function* () {
21
- return this.http.get(`/schedulers/${projectUuid}/list`, { params });
22
- });
10
+ async listSchedulers(projectUuid, params) {
11
+ return this.http.get(`/schedulers/${projectUuid}/list`, { params });
23
12
  }
24
13
  /** Get a scheduler by UUID. */
25
- getScheduler(schedulerUuid) {
26
- return __awaiter(this, void 0, void 0, function* () {
27
- return this.http.get(`/schedulers/${schedulerUuid}`);
28
- });
14
+ async getScheduler(schedulerUuid) {
15
+ return this.http.get(`/schedulers/${schedulerUuid}`);
29
16
  }
30
17
  }
31
18
  exports.SchedulersClient = SchedulersClient;
@@ -1,13 +1,4 @@
1
1
  "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
2
  Object.defineProperty(exports, "__esModule", { value: true });
12
3
  const vitest_1 = require("vitest");
13
4
  const schedulers_1 = require("./schedulers");
@@ -22,22 +13,22 @@ const schedulers_1 = require("./schedulers");
22
13
  delete: vitest_1.vi.fn(),
23
14
  };
24
15
  });
25
- (0, vitest_1.it)('listSchedulers should call GET /schedulers/{projectUuid}/list', () => __awaiter(void 0, void 0, void 0, function* () {
16
+ (0, vitest_1.it)('listSchedulers should call GET /schedulers/{projectUuid}/list', async () => {
26
17
  const client = new schedulers_1.SchedulersClient(mockHttp);
27
18
  const mockResponse = { status: 'ok', results: [] };
28
19
  vitest_1.vi.mocked(mockHttp.get).mockResolvedValue(mockResponse);
29
- const result = yield client.listSchedulers('p1', { page: 1 });
20
+ const result = await client.listSchedulers('p1', { page: 1 });
30
21
  (0, vitest_1.expect)(mockHttp.get).toHaveBeenCalledWith('/schedulers/p1/list', {
31
22
  params: { page: 1 },
32
23
  });
33
24
  (0, vitest_1.expect)(result).toEqual(mockResponse);
34
- }));
35
- (0, vitest_1.it)('getScheduler should call GET /schedulers/{schedulerUuid}', () => __awaiter(void 0, void 0, void 0, function* () {
25
+ });
26
+ (0, vitest_1.it)('getScheduler should call GET /schedulers/{schedulerUuid}', async () => {
36
27
  const client = new schedulers_1.SchedulersClient(mockHttp);
37
28
  const mockResponse = { status: 'ok', results: {} };
38
29
  vitest_1.vi.mocked(mockHttp.get).mockResolvedValue(mockResponse);
39
- const result = yield client.getScheduler('s1');
30
+ const result = await client.getScheduler('s1');
40
31
  (0, vitest_1.expect)(mockHttp.get).toHaveBeenCalledWith('/schedulers/s1');
41
32
  (0, vitest_1.expect)(result).toEqual(mockResponse);
42
- }));
33
+ });
43
34
  });
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * Spaces API client.
3
3
  */
4
- import type { LightdashApi, SpaceSummary, CreateSpace, UpdateSpace, AddSpaceUserAccess, AddSpaceGroupAccess } from '@lightdash-tools/common';
5
4
  import { BaseApiClient } from '../base-client';
5
+ import type { LightdashApi, SpaceSummary, CreateSpace, UpdateSpace, AddSpaceUserAccess, AddSpaceGroupAccess } from '@lightdash-tools/common';
6
6
  export declare class SpacesClient extends BaseApiClient {
7
7
  /** List spaces in a project. */
8
8
  listSpacesInProject(projectUuid: string): Promise<SpaceSummary[]>;
@@ -2,72 +2,45 @@
2
2
  /**
3
3
  * Spaces API client.
4
4
  */
5
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
6
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
7
- return new (P || (P = Promise))(function (resolve, reject) {
8
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
9
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
10
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
11
- step((generator = generator.apply(thisArg, _arguments || [])).next());
12
- });
13
- };
14
5
  Object.defineProperty(exports, "__esModule", { value: true });
15
6
  exports.SpacesClient = void 0;
16
7
  const base_client_1 = require("../base-client");
17
8
  class SpacesClient extends base_client_1.BaseApiClient {
18
9
  /** List spaces in a project. */
19
- listSpacesInProject(projectUuid) {
20
- return __awaiter(this, void 0, void 0, function* () {
21
- return this.http.get(`/projects/${projectUuid}/spaces`);
22
- });
10
+ async listSpacesInProject(projectUuid) {
11
+ return this.http.get(`/projects/${projectUuid}/spaces`);
23
12
  }
24
13
  /** Get a space by project and space UUID. */
25
- getSpace(projectUuid, spaceUuid) {
26
- return __awaiter(this, void 0, void 0, function* () {
27
- return this.http.get(`/projects/${projectUuid}/spaces/${spaceUuid}`);
28
- });
14
+ async getSpace(projectUuid, spaceUuid) {
15
+ return this.http.get(`/projects/${projectUuid}/spaces/${spaceUuid}`);
29
16
  }
30
17
  /** Create a space in a project. */
31
- createSpace(projectUuid, body) {
32
- return __awaiter(this, void 0, void 0, function* () {
33
- return this.http.post(`/projects/${projectUuid}/spaces`, body);
34
- });
18
+ async createSpace(projectUuid, body) {
19
+ return this.http.post(`/projects/${projectUuid}/spaces`, body);
35
20
  }
36
21
  /** Update a space. */
37
- updateSpace(projectUuid, spaceUuid, body) {
38
- return __awaiter(this, void 0, void 0, function* () {
39
- return this.http.patch(`/projects/${projectUuid}/spaces/${spaceUuid}`, body);
40
- });
22
+ async updateSpace(projectUuid, spaceUuid, body) {
23
+ return this.http.patch(`/projects/${projectUuid}/spaces/${spaceUuid}`, body);
41
24
  }
42
25
  /** Delete a space. */
43
- deleteSpace(projectUuid, spaceUuid) {
44
- return __awaiter(this, void 0, void 0, function* () {
45
- yield this.http.delete(`/projects/${projectUuid}/spaces/${spaceUuid}`);
46
- });
26
+ async deleteSpace(projectUuid, spaceUuid) {
27
+ await this.http.delete(`/projects/${projectUuid}/spaces/${spaceUuid}`);
47
28
  }
48
29
  /** Grant a user access to a space. */
49
- grantUserAccessToSpace(projectUuid, spaceUuid, body) {
50
- return __awaiter(this, void 0, void 0, function* () {
51
- yield this.http.post(`/projects/${projectUuid}/spaces/${spaceUuid}/share`, body);
52
- });
30
+ async grantUserAccessToSpace(projectUuid, spaceUuid, body) {
31
+ await this.http.post(`/projects/${projectUuid}/spaces/${spaceUuid}/share`, body);
53
32
  }
54
33
  /** Revoke a user's access to a space. */
55
- revokeUserAccessToSpace(projectUuid, spaceUuid, userUuid) {
56
- return __awaiter(this, void 0, void 0, function* () {
57
- yield this.http.delete(`/projects/${projectUuid}/spaces/${spaceUuid}/share/${userUuid}`);
58
- });
34
+ async revokeUserAccessToSpace(projectUuid, spaceUuid, userUuid) {
35
+ await this.http.delete(`/projects/${projectUuid}/spaces/${spaceUuid}/share/${userUuid}`);
59
36
  }
60
37
  /** Grant a group access to a space. */
61
- grantGroupAccessToSpace(projectUuid, spaceUuid, body) {
62
- return __awaiter(this, void 0, void 0, function* () {
63
- yield this.http.post(`/projects/${projectUuid}/spaces/${spaceUuid}/group/share`, body);
64
- });
38
+ async grantGroupAccessToSpace(projectUuid, spaceUuid, body) {
39
+ await this.http.post(`/projects/${projectUuid}/spaces/${spaceUuid}/group/share`, body);
65
40
  }
66
41
  /** Revoke a group's access to a space. */
67
- revokeGroupAccessToSpace(projectUuid, spaceUuid, groupUuid) {
68
- return __awaiter(this, void 0, void 0, function* () {
69
- yield this.http.delete(`/projects/${projectUuid}/spaces/${spaceUuid}/group/share/${groupUuid}`);
70
- });
42
+ async revokeGroupAccessToSpace(projectUuid, spaceUuid, groupUuid) {
43
+ await this.http.delete(`/projects/${projectUuid}/spaces/${spaceUuid}/group/share/${groupUuid}`);
71
44
  }
72
45
  }
73
46
  exports.SpacesClient = SpacesClient;