-
Notifications
You must be signed in to change notification settings - Fork 4
/
groups.js
88 lines (87 loc) · 1.99 KB
/
groups.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
import {
clearApiCache,
invokeFetch
} from "./chunks/AMO5NATA.js";
import "./chunks/UV5COPU3.js";
import "./chunks/2ZQ3ZX7F.js";
// src/public/rest/groups.ts
var getGroups = async (query, options) => invokeFetch("groups", {
method: "get",
pathTemplate: "/api/v1/groups",
query,
options
});
var createGroup = async (body, options) => invokeFetch("groups", {
method: "post",
pathTemplate: "/api/v1/groups",
body,
contentType: "application/json",
options
});
var filterGroups = async (query, body, options) => invokeFetch("groups", {
method: "post",
pathTemplate: "/api/v1/groups/actions/filter",
query,
body,
contentType: "application/json",
options
});
var getGroupsSettings = async (options) => invokeFetch("groups", {
method: "get",
pathTemplate: "/api/v1/groups/settings",
options
});
var patchGroupsSettings = async (body, options) => invokeFetch("groups", {
method: "patch",
pathTemplate: "/api/v1/groups/settings",
body,
contentType: "application/json",
options
});
var deleteGroup = async (groupId, options) => invokeFetch("groups", {
method: "delete",
pathTemplate: "/api/v1/groups/{groupId}",
pathVariables: { groupId },
options
});
var getGroup = async (groupId, options) => invokeFetch("groups", {
method: "get",
pathTemplate: "/api/v1/groups/{groupId}",
pathVariables: { groupId },
options
});
var patchGroup = async (groupId, body, options) => invokeFetch("groups", {
method: "patch",
pathTemplate: "/api/v1/groups/{groupId}",
pathVariables: { groupId },
body,
contentType: "application/json",
options
});
function clearCache() {
return clearApiCache("groups");
}
var groupsExport = {
getGroups,
createGroup,
filterGroups,
getGroupsSettings,
patchGroupsSettings,
deleteGroup,
getGroup,
patchGroup,
clearCache
};
var groups_default = groupsExport;
export {
clearCache,
createGroup,
groups_default as default,
deleteGroup,
filterGroups,
getGroup,
getGroups,
getGroupsSettings,
patchGroup,
patchGroupsSettings
};