@neuralinnovations/dataisland-sdk 0.0.1-dev22 → 0.0.1-dev24

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 (35) hide show
  1. package/dist/package.json +1 -1
  2. package/dist/src/index.d.ts +3 -0
  3. package/dist/src/index.d.ts.map +1 -1
  4. package/dist/src/index.js +5 -1
  5. package/dist/src/index.js.map +1 -1
  6. package/dist/src/storages/groups/group.d.ts +63 -0
  7. package/dist/src/storages/groups/group.d.ts.map +1 -0
  8. package/dist/src/storages/groups/group.impl.d.ts +37 -0
  9. package/dist/src/storages/groups/group.impl.d.ts.map +1 -0
  10. package/dist/src/storages/groups/group.impl.js +205 -0
  11. package/dist/src/storages/groups/group.impl.js.map +1 -0
  12. package/dist/src/storages/groups/group.js +15 -0
  13. package/dist/src/storages/groups/group.js.map +1 -0
  14. package/dist/src/storages/groups/groups.d.ts +3 -60
  15. package/dist/src/storages/groups/groups.d.ts.map +1 -1
  16. package/dist/src/storages/groups/groups.impl.d.ts +2 -35
  17. package/dist/src/storages/groups/groups.impl.d.ts.map +1 -1
  18. package/dist/src/storages/groups/groups.impl.js +14 -193
  19. package/dist/src/storages/groups/groups.impl.js.map +1 -1
  20. package/dist/src/storages/groups/groups.js +7 -13
  21. package/dist/src/storages/groups/groups.js.map +1 -1
  22. package/dist/src/storages/organizations/organization.d.ts +2 -1
  23. package/dist/src/storages/organizations/organization.d.ts.map +1 -1
  24. package/dist/src/storages/organizations/organization.js.map +1 -1
  25. package/dist/src/storages/organizations/organizations.impl.d.ts.map +1 -1
  26. package/dist/src/storages/organizations/organizations.impl.js +12 -6
  27. package/dist/src/storages/organizations/organizations.impl.js.map +1 -1
  28. package/package.json +1 -1
  29. package/src/index.ts +3 -0
  30. package/src/storages/groups/group.impl.ts +267 -0
  31. package/src/storages/groups/group.ts +73 -0
  32. package/src/storages/groups/groups.impl.ts +17 -252
  33. package/src/storages/groups/groups.ts +3 -70
  34. package/src/storages/organizations/organization.ts +2 -1
  35. package/src/storages/organizations/organizations.impl.ts +17 -8
@@ -0,0 +1,267 @@
1
+ import { Group, GroupEvent, GroupId } from "./group"
2
+ import { Disposable } from "../../disposable"
3
+ import {
4
+ AccessGroupDto,
5
+ AccessGroupResponse
6
+ } from "../../dto/accessGroupResponse"
7
+ import { UserDto } from "../../dto/userInfoResponse"
8
+ import { Workspace } from "../workspaces/workspace"
9
+ import { Context } from "../../context"
10
+ import { Organization } from "../organizations/organization"
11
+ import { RpcService } from "../../services/rpcService"
12
+ import { ResponseUtils } from "../../services/responseUtils"
13
+ import { WorkspacesResponse } from "../../dto/workspacesResponse"
14
+ import { WorkspaceId } from "../workspaces/workspaces"
15
+ import { UserId } from "../user/userProfile"
16
+
17
+ export class GroupImpl extends Group implements Disposable {
18
+ private _isDisposed: boolean = false
19
+ private _content?: AccessGroupDto
20
+ private _members?: UserDto[]
21
+ private _workspaces: Workspace[] = []
22
+
23
+ constructor(
24
+ private readonly context: Context,
25
+ public readonly organization: Organization
26
+ ) {
27
+ super()
28
+ }
29
+
30
+ async initFrom(id: GroupId): Promise<Group> {
31
+ await this.reloadGroup(id)
32
+ await this.reloadWorkspaces()
33
+ return this
34
+ }
35
+
36
+ async reloadGroup(id: GroupId): Promise<void> {
37
+ // fetch group
38
+ const response = await this.context.resolve(RpcService)
39
+ ?.requestBuilder("api/v1/AccessGroups")
40
+ .searchParam("groupId", id)
41
+ .sendGet()
42
+
43
+ // check response status
44
+ if (ResponseUtils.isFail(response)) {
45
+ await ResponseUtils.throwError(`Failed to get group: ${id}, organization: ${this.organization.id}`, response)
46
+ }
47
+
48
+ // parse group from the server's response
49
+ const group = (await response!.json()) as AccessGroupResponse
50
+ // init group
51
+ this._content = group.group
52
+ this._members = group.members
53
+ }
54
+
55
+ async reloadWorkspaces(): Promise<void> {
56
+ const groupWorkspaces = await this.loadWorkspaces(this.id)
57
+ this._workspaces.length = 0
58
+ this._workspaces.push(...groupWorkspaces)
59
+ }
60
+
61
+ async loadWorkspaces(groupId: GroupId): Promise<Workspace[]> {
62
+ // fetch workspaces
63
+ const response = await this.context.resolve(RpcService)
64
+ ?.requestBuilder("api/v1/AccessGroups/workspaces")
65
+ .searchParam("groupId", groupId)
66
+ .sendGet()
67
+
68
+ if (ResponseUtils.isFail(response)) {
69
+ await ResponseUtils.throwError(`Failed to get workspaces for group: ${this.id}, organization: ${this.organization.id}`, response)
70
+ }
71
+
72
+ // parse workspaces from the server's response
73
+ const workspaces = (await response!.json()) as WorkspacesResponse
74
+
75
+ // get workspaces
76
+ const result: Workspace[] = []
77
+ for (const workspaceDto of workspaces.workspaces) {
78
+ result.push(this.organization.workspaces.get(workspaceDto.id))
79
+ }
80
+
81
+ return result
82
+ }
83
+
84
+ get id(): GroupId {
85
+ if (this._content) {
86
+ return this._content.id
87
+ }
88
+ throw new Error("Access group is not loaded.")
89
+ }
90
+
91
+ get group(): AccessGroupDto {
92
+ if (this._content) {
93
+ return this._content
94
+ }
95
+ throw new Error("Access group is not loaded.")
96
+ }
97
+
98
+ get workspaces(): readonly Workspace[] {
99
+ return this._workspaces
100
+ }
101
+
102
+ get members(): UserDto[] {
103
+ if (this._members) {
104
+ return this._members
105
+ }
106
+ throw new Error("Access group is not loaded.")
107
+ }
108
+
109
+ async setName(name: string): Promise<void> {
110
+ if (name === undefined || name === null) {
111
+ throw new Error("Groups change, name is undefined or null")
112
+ }
113
+ if (name.length === 0 || name.trim().length === 0) {
114
+ throw new Error("Groups change, name is empty")
115
+ }
116
+ // send request to the server
117
+ const response = await this.context
118
+ .resolve(RpcService)
119
+ ?.requestBuilder("api/v1/AccessGroups/name")
120
+ .sendPutJson({
121
+ groupId: this.id,
122
+ name: name
123
+ })
124
+
125
+ // check response status
126
+ if (ResponseUtils.isFail(response)) {
127
+ await ResponseUtils.throwError(`Failed to change group name, group: ${this.id}, organization: ${this.organization.id}`, response)
128
+ }
129
+
130
+ // change name
131
+ if (this._content) {
132
+ this._content.name = name
133
+ }
134
+
135
+ // dispatch event
136
+ this.dispatch({
137
+ type: GroupEvent.UPDATED,
138
+ data: this
139
+ })
140
+ }
141
+
142
+ async setPermits(permits: { isAdmin: boolean }): Promise<void> {
143
+ // send request to the server
144
+ const response = await this.context
145
+ .resolve(RpcService)
146
+ ?.requestBuilder("api/v1/AccessGroups/permits")
147
+ .sendPutJson({
148
+ groupId: this.id,
149
+ permits: permits
150
+ })
151
+
152
+ if (ResponseUtils.isFail(response)) {
153
+ await ResponseUtils.throwError(`Failed to change group permits, group: ${this.id}, organization: ${this.organization.id}`, response)
154
+ }
155
+ }
156
+
157
+ async setWorkspaces(workspaces: string[]): Promise<void> {
158
+ if (workspaces === null || workspaces === undefined) {
159
+ throw new Error("Group add workspaces, workspaces is undefined or null")
160
+ }
161
+
162
+ // send request to the server
163
+ const response = await this.context
164
+ .resolve(RpcService)
165
+ ?.requestBuilder("api/v1/AccessGroups/workspaces")
166
+ .sendPutJson({
167
+ groupId: this.id,
168
+ actualWorkspaceIds: workspaces
169
+ })
170
+
171
+ if (ResponseUtils.isFail(response)) {
172
+ await ResponseUtils.throwError(`Failed to set workspaces for group: ${this.id}, organization: ${this.organization.id}`, response)
173
+ }
174
+
175
+ // reload workspaces
176
+ await this.reloadWorkspaces()
177
+
178
+ // dispatch event
179
+ this.dispatch({
180
+ type: GroupEvent.UPDATED,
181
+ data: this
182
+ })
183
+ }
184
+
185
+ async removeWorkspaces(workspaces: WorkspaceId[]): Promise<void> {
186
+ if (workspaces === null || workspaces === undefined) {
187
+ throw new Error("Group removeWorkspaces, workspaces is undefined or null")
188
+ }
189
+
190
+ // make set of workspaces
191
+ const groupWorkspaces = new Set(this.workspaces.map(w => w.id))
192
+
193
+ // check argument
194
+ if (!workspaces.every(w => groupWorkspaces.has(w))) {
195
+ const notExistingWorkspaces = workspaces.filter(workspaceId => !groupWorkspaces.has(workspaceId))
196
+ throw new Error(`Group removeWorkspaces, workspaces contains not existing workspaces: ${notExistingWorkspaces}`)
197
+ }
198
+
199
+ // remove workspaces
200
+ for (const id of workspaces) {
201
+ groupWorkspaces.delete(id)
202
+ }
203
+
204
+ // send request to the server
205
+ await this.setWorkspaces(Array.from(groupWorkspaces))
206
+ }
207
+
208
+ async setMembersIds(members: UserId[]) {
209
+ if (members === null || members === undefined) {
210
+ throw new Error("Group setMembersIds, members is undefined or null")
211
+ }
212
+
213
+ // send request to the server
214
+ const response = await this.context
215
+ .resolve(RpcService)
216
+ ?.requestBuilder("api/v1/AccessGroups/members")
217
+ .sendPutJson({
218
+ groupId: this.id,
219
+ memberIds: members
220
+ })
221
+
222
+ if (ResponseUtils.isFail(response)) {
223
+ await ResponseUtils.throwError(`Failed to set members for group: ${this.id}, organization: ${this.organization.id}`, response)
224
+ }
225
+
226
+ // reload group
227
+ await this.reloadGroup(this.id)
228
+
229
+ // dispatch event
230
+ this.dispatch({
231
+ type: GroupEvent.UPDATED,
232
+ data: this
233
+ })
234
+ }
235
+
236
+ async removeMembers(members: UserId[]): Promise<void> {
237
+ // check members
238
+ if (members === null || members === undefined) {
239
+ throw new Error("Group removeMembers, members is undefined or null")
240
+ }
241
+
242
+ // make set of members
243
+ const groupMembers = new Set(this.members.map(m => m.id))
244
+
245
+ // check argument
246
+ if (!members.every(m => groupMembers.has(m))) {
247
+ const notExistingMembers = members.filter(memberId => !groupMembers.has(memberId))
248
+ throw new Error(`Group removeMembers, members contains not existing members: ${notExistingMembers}`)
249
+ }
250
+
251
+ // remove members
252
+ for (const id of members) {
253
+ groupMembers.delete(id)
254
+ }
255
+
256
+ // send request to the server
257
+ await this.setMembersIds(Array.from(groupMembers))
258
+ }
259
+
260
+ get isDisposed(): boolean {
261
+ return this._isDisposed
262
+ }
263
+
264
+ dispose(): void {
265
+ this._isDisposed = true
266
+ }
267
+ }
@@ -0,0 +1,73 @@
1
+ import { EventDispatcher } from "../../events"
2
+ import { AccessGroupDto } from "../../dto/accessGroupResponse"
3
+ import { UserDto } from "../../dto/userInfoResponse"
4
+ import { Workspace } from "../workspaces/workspace"
5
+ import { WorkspaceId } from "../workspaces/workspaces"
6
+ import { UserId } from "../user/userProfile"
7
+
8
+ /**
9
+ * Group id.
10
+ */
11
+ export type GroupId = string
12
+
13
+ export enum GroupEvent {
14
+ UPDATED = "updated"
15
+ }
16
+
17
+ /**
18
+ * Group.
19
+ */
20
+ export abstract class Group extends EventDispatcher<GroupEvent, Group> {
21
+
22
+ /**
23
+ * Group id.
24
+ */
25
+ abstract get id(): GroupId
26
+
27
+ /**
28
+ * Group information.
29
+ */
30
+ abstract get group(): AccessGroupDto
31
+
32
+ /**
33
+ * Group members.
34
+ */
35
+ abstract get members(): UserDto[]
36
+
37
+ /**
38
+ * Group workspaces.
39
+ */
40
+ abstract get workspaces(): readonly Workspace[]
41
+
42
+ /**
43
+ * Set workspaces.
44
+ */
45
+ abstract setWorkspaces(workspaces: WorkspaceId[]): Promise<void>
46
+
47
+ /**
48
+ * Set name.
49
+ */
50
+ abstract setName(name: string): Promise<void>
51
+
52
+ /**
53
+ * Set permits.
54
+ */
55
+ abstract setPermits(permits: { isAdmin: boolean }): Promise<void>
56
+
57
+ /**
58
+ * Set members.
59
+ */
60
+ abstract setMembersIds(members: UserId[]): Promise<void>
61
+
62
+ /**
63
+ * Remove members.
64
+ * @param members
65
+ */
66
+ abstract removeMembers(members: UserId[]): Promise<void>
67
+
68
+ /**
69
+ * Remove workspaces.
70
+ * @param workspaces
71
+ */
72
+ abstract removeWorkspaces(workspaces: WorkspaceId[]): Promise<void>
73
+ }
@@ -1,254 +1,14 @@
1
1
  import { Context } from "../../context"
2
- import { Disposable } from "../../disposable"
3
2
  import {
4
- AccessGroupDto,
5
3
  AccessGroupResponse,
6
4
  AccessGroupsResponse
7
5
  } from "../../dto/accessGroupResponse"
8
- import { UserDto } from "../../dto/userInfoResponse"
9
- import { WorkspacesResponse } from "../../dto/workspacesResponse"
10
6
  import { RpcService } from "../../services/rpcService"
11
- import { Group, GroupEvent, GroupId, Groups } from "./groups"
7
+ import { Groups, GroupsEvent } from "./groups"
12
8
  import { OrganizationImpl } from "../organizations/organization.impl"
13
9
  import { ResponseUtils } from "../../services/responseUtils"
14
- import { Organization } from "../organizations/organization"
15
- import { UserId } from "../user/userProfile"
16
- import { Workspace } from "../workspaces/workspace"
17
- import { WorkspaceId } from "../workspaces/workspaces"
18
-
19
- export class GroupImpl extends Group implements Disposable {
20
- private _isDisposed: boolean = false
21
- private _content?: AccessGroupDto
22
- private _members?: UserDto[]
23
- private _workspaces: Workspace[] = []
24
-
25
- constructor(
26
- private readonly context: Context,
27
- public readonly organization: Organization
28
- ) {
29
- super()
30
- }
31
-
32
- async initFrom(id: GroupId): Promise<Group> {
33
- await this.reloadGroup(id)
34
- await this.reloadWorkspaces()
35
- return this
36
- }
37
-
38
- async reloadGroup(id: GroupId): Promise<void> {
39
- // fetch group
40
- const response = await this.context.resolve(RpcService)
41
- ?.requestBuilder("api/v1/AccessGroups")
42
- .searchParam("groupId", id)
43
- .sendGet()
44
-
45
- // check response status
46
- if (ResponseUtils.isFail(response)) {
47
- await ResponseUtils.throwError(`Failed to get group: ${id}, organization: ${this.organization.id}`, response)
48
- }
49
-
50
- // parse group from the server's response
51
- const group = (await response!.json()) as AccessGroupResponse
52
- // init group
53
- this._content = group.group
54
- this._members = group.members
55
- }
56
-
57
- async reloadWorkspaces(): Promise<void> {
58
- const groupWorkspaces = await this.loadWorkspaces(this.id)
59
- this._workspaces.length = 0
60
- this._workspaces.push(...groupWorkspaces)
61
- }
62
-
63
- async loadWorkspaces(groupId: GroupId): Promise<Workspace[]> {
64
- // fetch workspaces
65
- const response = await this.context.resolve(RpcService)
66
- ?.requestBuilder("api/v1/AccessGroups/workspaces")
67
- .searchParam("groupId", groupId)
68
- .sendGet()
69
-
70
- if (ResponseUtils.isFail(response)) {
71
- await ResponseUtils.throwError(`Failed to get workspaces for group: ${this.id}, organization: ${this.organization.id}`, response)
72
- }
73
-
74
- // parse workspaces from the server's response
75
- const workspaces = (await response!.json()) as WorkspacesResponse
76
-
77
- // get workspaces
78
- const result: Workspace[] = []
79
- for (const workspaceDto of workspaces.workspaces) {
80
- result.push(this.organization.workspaces.get(workspaceDto.id))
81
- }
82
-
83
- return result
84
- }
85
-
86
- get id(): GroupId {
87
- if (this._content) {
88
- return this._content.id
89
- }
90
- throw new Error("Access group is not loaded.")
91
- }
92
-
93
- get group(): AccessGroupDto {
94
- if (this._content) {
95
- return this._content
96
- }
97
- throw new Error("Access group is not loaded.")
98
- }
99
-
100
- get workspaces(): readonly Workspace[] {
101
- return this._workspaces
102
- }
103
-
104
- get members(): UserDto[] {
105
- if (this._members) {
106
- return this._members
107
- }
108
- throw new Error("Access group is not loaded.")
109
- }
110
-
111
- async setName(name: string): Promise<void> {
112
- if (name === undefined || name === null) {
113
- throw new Error("Groups change, name is undefined or null")
114
- }
115
- if (name.length === 0 || name.trim().length === 0) {
116
- throw new Error("Groups change, name is empty")
117
- }
118
- // send request to the server
119
- const response = await this.context
120
- .resolve(RpcService)
121
- ?.requestBuilder("api/v1/AccessGroups/name")
122
- .sendPutJson({
123
- groupId: this.id,
124
- name: name
125
- })
126
-
127
- // check response status
128
- if (ResponseUtils.isFail(response)) {
129
- await ResponseUtils.throwError(`Failed to change group name, group: ${this.id}, organization: ${this.organization.id}`, response)
130
- }
131
-
132
- // change name
133
- if (this._content) {
134
- this._content.name = name
135
- }
136
- }
137
-
138
- async setPermits(permits: { isAdmin: boolean }): Promise<void> {
139
- // send request to the server
140
- const response = await this.context
141
- .resolve(RpcService)
142
- ?.requestBuilder("api/v1/AccessGroups/permits")
143
- .sendPutJson({
144
- groupId: this.id,
145
- permits: permits
146
- })
147
-
148
- if (ResponseUtils.isFail(response)) {
149
- await ResponseUtils.throwError(`Failed to change group permits, group: ${this.id}, organization: ${this.organization.id}`, response)
150
- }
151
- }
152
-
153
- async setWorkspaces(workspaces: string[]): Promise<void> {
154
- if (workspaces === null || workspaces === undefined) {
155
- throw new Error("Group add workspaces, workspaces is undefined or null")
156
- }
157
-
158
- // send request to the server
159
- const response = await this.context
160
- .resolve(RpcService)
161
- ?.requestBuilder("api/v1/AccessGroups/workspaces")
162
- .sendPutJson({
163
- groupId: this.id,
164
- actualWorkspaceIds: workspaces
165
- })
166
-
167
- if (ResponseUtils.isFail(response)) {
168
- await ResponseUtils.throwError(`Failed to set workspaces for group: ${this.id}, organization: ${this.organization.id}`, response)
169
- }
170
-
171
- // reload workspaces
172
- await this.reloadWorkspaces()
173
- }
174
-
175
- async removeWorkspaces(workspaces: WorkspaceId[]): Promise<void> {
176
- if (workspaces === null || workspaces === undefined) {
177
- throw new Error("Group removeWorkspaces, workspaces is undefined or null")
178
- }
179
-
180
- // make set of workspaces
181
- const groupWorkspaces = new Set(this.workspaces.map(w => w.id))
182
-
183
- // check argument
184
- if (!workspaces.every(w => groupWorkspaces.has(w))) {
185
- const notExistingWorkspaces = workspaces.filter(workspaceId => !groupWorkspaces.has(workspaceId))
186
- throw new Error(`Group removeWorkspaces, workspaces contains not existing workspaces: ${notExistingWorkspaces}`)
187
- }
188
-
189
- // remove workspaces
190
- for (const id of workspaces) {
191
- groupWorkspaces.delete(id)
192
- }
193
-
194
- // send request to the server
195
- await this.setWorkspaces(Array.from(groupWorkspaces))
196
- }
197
-
198
- async setMembersIds(members: UserId[]) {
199
- if (members === null || members === undefined) {
200
- throw new Error("Group setMembersIds, members is undefined or null")
201
- }
202
-
203
- // send request to the server
204
- const response = await this.context
205
- .resolve(RpcService)
206
- ?.requestBuilder("api/v1/AccessGroups/members")
207
- .sendPutJson({
208
- groupId: this.id,
209
- memberIds: members
210
- })
211
-
212
- if (ResponseUtils.isFail(response)) {
213
- await ResponseUtils.throwError(`Failed to set members for group: ${this.id}, organization: ${this.organization.id}`, response)
214
- }
215
-
216
- // reload group
217
- await this.reloadGroup(this.id)
218
- }
219
-
220
- async removeMembers(members: UserId[]): Promise<void> {
221
- // check members
222
- if (members === null || members === undefined) {
223
- throw new Error("Group removeMembers, members is undefined or null")
224
- }
225
-
226
- // make set of members
227
- const groupMembers = new Set(this.members.map(m => m.id))
228
-
229
- // check argument
230
- if (!members.every(m => groupMembers.has(m))) {
231
- const notExistingMembers = members.filter(memberId => !groupMembers.has(memberId))
232
- throw new Error(`Group removeMembers, members contains not existing members: ${notExistingMembers}`)
233
- }
234
-
235
- // remove members
236
- for (const id of members) {
237
- groupMembers.delete(id)
238
- }
239
-
240
- // send request to the server
241
- await this.setMembersIds(Array.from(groupMembers))
242
- }
243
-
244
- get isDisposed(): boolean {
245
- return this._isDisposed
246
- }
247
-
248
- dispose(): void {
249
- this._isDisposed = true
250
- }
251
- }
10
+ import { Group, GroupId } from "./group"
11
+ import { GroupImpl } from "./group.impl"
252
12
 
253
13
  export class GroupsImpl extends Groups {
254
14
 
@@ -305,19 +65,24 @@ export class GroupsImpl extends Groups {
305
65
  // parse groups from the server's response
306
66
  const groups = (await response!.json()) as AccessGroupsResponse
307
67
 
68
+ const wait: Promise<Group>[] = []
69
+
308
70
  // init groups
309
71
  for (const gr of groups.groups) {
310
72
  // create group implementation
311
- const group = await new GroupImpl(this.context, this.organization).initFrom(gr.id)
73
+ const group = new GroupImpl(this.context, this.organization).initFrom(gr.id)
74
+
75
+ // add to the wait list
76
+ wait.push(group)
77
+ }
312
78
 
79
+ // wait for all groups
80
+ const groupsResult = await Promise.all(wait)
81
+
82
+ // add groups to the collection
83
+ for (const group of groupsResult) {
313
84
  // add group to the collection
314
85
  this._groups.push(group)
315
-
316
- // dispatch event
317
- this.dispatch({
318
- type: GroupEvent.ADDED,
319
- data: group
320
- })
321
86
  }
322
87
  }
323
88
 
@@ -357,7 +122,7 @@ export class GroupsImpl extends Groups {
357
122
 
358
123
  // dispatch event
359
124
  this.dispatch({
360
- type: GroupEvent.ADDED,
125
+ type: GroupsEvent.ADDED,
361
126
  data: group
362
127
  })
363
128
 
@@ -400,7 +165,7 @@ export class GroupsImpl extends Groups {
400
165
 
401
166
  // dispatch event, group removed
402
167
  this.dispatch({
403
- type: GroupEvent.REMOVED,
168
+ type: GroupsEvent.REMOVED,
404
169
  data: group
405
170
  })
406
171