@hubs101/js-api-skd-client 1.0.10459 → 1.0.10461
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/types/base.d.ts +2 -0
- package/lib/utils/api.js +1 -0
- package/package.json +1 -1
package/lib/types/base.d.ts
CHANGED
|
@@ -337,6 +337,8 @@ export type EventAPIType = {
|
|
|
337
337
|
pinExhibition: (exhibitionId: string) => Promise<boolean>;
|
|
338
338
|
unpinExhibition: (exhibitionId: string) => Promise<boolean>;
|
|
339
339
|
fetchEventGroups: (eventId: string) => Promise<GroupServerResponse[]>;
|
|
340
|
+
deleteMediaDirectories: (accountId: string, path: string, name: string) => Promise<APIResponse>;
|
|
341
|
+
deleteMediaDirectoryFiles: (accountId: string, filepath: string) => Promise<APIResponse>;
|
|
340
342
|
updateAccountGroup: (accountId: string, groupId: string, data: GroupInputType) => Promise<GroupResponseType>;
|
|
341
343
|
fetchAccountGroups: (accountId: string, type: GroupType) => Promise<ResponsePaginationType<GroupResponseType>>;
|
|
342
344
|
fetchEventAttendeeActions: (eventId: string) => Promise<ResponseServerType<FetchCurrentEventAttendeesActionsResponse[]>>;
|
package/lib/utils/api.js
CHANGED
|
@@ -107,6 +107,7 @@ const deleteRequest = (url, body, token, headers) => __awaiter(void 0, void 0, v
|
|
|
107
107
|
const response = yield fetch(url, {
|
|
108
108
|
method: "DELETE",
|
|
109
109
|
headers: Object.assign({ Authorization: `Bearer ${token}` }, headers),
|
|
110
|
+
body: form,
|
|
110
111
|
});
|
|
111
112
|
const data = yield response.json();
|
|
112
113
|
if (String(data.status).startsWith("4")) {
|