( name: string, groups: string[], parentId?: number, )
| 59 | }; |
| 60 | |
| 61 | const createCollection = ( |
| 62 | name: string, |
| 63 | groups: string[], |
| 64 | parentId?: number, |
| 65 | ): Promise<Response> => |
| 66 | fetch(BASE_PATH + 'api/collection', { |
| 67 | method: 'POST', |
| 68 | headers: DEFAULT_HEADERS, |
| 69 | body: JSON.stringify({ |
| 70 | name: name, |
| 71 | groups: groups, |
| 72 | parentId, |
| 73 | }), |
| 74 | }); |
| 75 | |
| 76 | const duplicateCollection = (id: number, name: string): Promise<Response> => |
| 77 | fetch(BASE_PATH + `api/collection/${id}/duplicate`, { |
nothing calls this directly
no outgoing calls
no test coverage detected