@hubs101/js-api-skd-client 1.0.10465 → 1.0.10467
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/README.md +10 -0
- package/lib/api/event/index.d.ts +2 -3
- package/lib/api/event/index.js +13 -32
- package/lib/api/event/types.d.ts +6 -0
- package/lib/api/meetings/index.d.ts +1 -1
- package/lib/index.js +7 -13
- package/lib/types/base.d.ts +3 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+

|
|
2
|
+

|
|
3
|
+

|
|
4
|
+

|
|
5
|
+

|
|
6
|
+
|
|
7
|
+
## Install Size
|
|
8
|
+
|
|
9
|
+
Check out the package's install size on [Packagephobia](https://packagephobia.com/result?p=js-api-skd-client).
|
|
10
|
+
|
|
1
11
|
## API Doc
|
|
2
12
|
|
|
3
13
|
[API Documentation](https://github.com/We-Conect/event-app-api/blob/main/src/README.md)
|
package/lib/api/event/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GenericResponseServerType, ResponsePaginationType, ResponseServerType } from "../public/types";
|
|
2
2
|
import { ExhibitionReport, FetchCurrentEventAttendeesActionsResponse } from "../types";
|
|
3
|
-
import { Account, AccountInput, BlogPage, BlogPageInput, Booking, BookingDetails, Directory, DirectoryFiles, DiscountServerResponse, DocumentType, Event, EventLocation, EventRegistration, EventServerResponse, EventStream, Exhibition, ExhibitionInput, FileDetails, GroupServerResponse, OptionServerResponse, Portfolio, PortfolioInput, Stream, StreamInput, TicketServerResponse, UserRegistrationsEvent, ZoomParams } from "./types";
|
|
3
|
+
import { Account, AccountInput, BlogPage, BlogPageInput, Booking, BookingDetails, Directory, DirectoryFiles, DiscountServerResponse, DocumentType, Event, EventLocation, EventRegistration, EventServerResponse, EventStream, Exhibition, ExhibitionInput, FileDetails, GroupServerResponse, OptionServerResponse, Portfolio, PortfolioInput, ResponseAPIType1, Stream, StreamInput, TicketServerResponse, UserRegistrationsEvent, ZoomParams } from "./types";
|
|
4
4
|
import { APIResponse } from "../../types/base";
|
|
5
5
|
import { Page } from "../pages/types";
|
|
6
6
|
export declare const _fetchEventRegistrations: (basePath: string, token: string, eventId: string) => Promise<EventRegistration[]>;
|
|
@@ -124,8 +124,7 @@ export declare const _deletePortfolioBlogPage: (basePath: string, token: string,
|
|
|
124
124
|
export declare const _fetchMediaDirectories: (basePath: string, token: string, accountId: string, path: string) => Promise<Directory>;
|
|
125
125
|
export declare const _fetchMediaDirectoryFiles: (basePath: string, token: string, accountId: string, path: string) => Promise<DirectoryFiles>;
|
|
126
126
|
export declare const _fetchMediaFileDetails: (basePath: string, token: string, accountId: string, filepath: string) => Promise<FileDetails>;
|
|
127
|
-
export declare const _uploadImageToFolder: (basePath: string, token: string, accountId: string, folderPath: string, fileName: string, blob: Blob) => Promise<APIResponse>;
|
|
128
|
-
export declare const _renameFolder: (basePath: string, token: string, accountId: string, path: string, name_old: string, name_new: string) => Promise<APIResponse>;
|
|
129
127
|
export declare const _deleteMediaDirectories: (basePath: string, token: string, accountId: string, path: string, name: string) => Promise<APIResponse>;
|
|
130
128
|
export declare const _deleteMediaDirectoryFiles: (basePath: string, token: string, accountId: string, filepath: string) => Promise<APIResponse>;
|
|
131
129
|
export declare const _addMediaFolder: (basePath: string, token: string, accountId: string, path: string, name: string) => Promise<APIResponse>;
|
|
130
|
+
export declare const _updateEventWebsite: (basePath: string, token: string, eventId: string, keyData: string, data: Record<string, string>[]) => Promise<ResponseAPIType1>;
|
package/lib/api/event/index.js
CHANGED
|
@@ -11,7 +11,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports._fetchMyBookings = exports._createBooking = exports._checkBooking = exports._resendBookingEmail = exports._resendTicketEmail = exports._fetchEventAttendeeActions = exports._fetchEventGroups = exports._unpinExhibition = exports._pinExhibition = exports._unpinDocument = exports._pinDocument = exports._reportExhibitionAction = exports._deleteDocument = exports._updateDocument = exports._createDocument = exports._assignDocumentToEvent = exports._fetchEventDocuments = exports._fetchUserRegistrationsEvents = exports._fetchEventStreams = exports._fetchEventLocations = exports._deleteLocation = exports._updateLocation = exports._createLocation = exports._fetchExhibitionDetails = exports._deleteDiscount = exports._updateDiscount = exports._createDiscount = exports._fetchEventDiscounts = exports._deleteTicket = exports._updateTicket = exports._createTicket = exports._deleteOption = exports._updateOption = exports._createOption = exports._deleteGroup = exports._updateGroup = exports._createGroup = exports._importAgenda = exports._fetchAttendeesAvailabilities = exports._updateEventTemplates = exports._fetchEventTemplates = exports._fetchEventNotifications = exports._sendSingleNotification = exports._sendNotification = exports._fetchEventDetails = exports._fetchExhibitions = exports._fetchEventsForAccount = exports._fetchTickets = exports._fetchAccounts = exports._fetchEventRegistrations = void 0;
|
|
13
13
|
exports._fetchMediaDirectories = exports._deletePortfolioBlogPage = exports._updatePortfolioBlogPage = exports._createBlogPage = exports._fetchBlogPages = exports._fetchPortfolioEvents = exports._fetchPortfolioDetails = exports._updatePortfolio = exports._createPortfolio = exports._unassignPortfolio = exports._assignPortfolio = exports._deletePortfolio = exports._fetchPortfolios = exports._deleteExhibition = exports._updateExhibition = exports._importExhibition = exports._createExhibition = exports._fetchMyExhibitions = exports._fetchAllExhibitions = exports._deleteStream = exports._updateStream = exports._createStream = exports._fetchYoutubeContent = exports._fetchZoomContent = exports._createEvent = exports._unassignPaymentAccount = exports._assignPaymentAccount = exports._fetchEventOptions = exports._fetchEventTickets = exports._updateEvent = exports._deletePage = exports._updatePage = exports._createPage = exports._fetchEventPages = exports._updateAccountWithFiles = exports._fetchMySessions = exports._fetchEditableEvents = exports._fetchSpeakers = exports._fetchAccountDetails = exports._eventInvitationRegistration = exports._createFreeTrialAccount = exports._fetchEventOrderedTickets = exports._confirmBooking = exports._fetchEventBookings = exports._acceptInternTicket = exports._acceptTicket = exports._postTicketDetails = exports._fetchTicketDetails = exports._assignTicket = exports._fetchAccountBookings = void 0;
|
|
14
|
-
exports.
|
|
14
|
+
exports._updateEventWebsite = exports._addMediaFolder = exports._deleteMediaDirectoryFiles = exports._deleteMediaDirectories = exports._fetchMediaFileDetails = exports._fetchMediaDirectoryFiles = void 0;
|
|
15
15
|
const api_1 = require("../../utils/api");
|
|
16
16
|
const base_1 = require("../../utils/base");
|
|
17
17
|
const _fetchEventRegistrations = (basePath, token, eventId) => __awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -634,47 +634,22 @@ const _deletePortfolioBlogPage = (basePath, token, portfolioId, blogPostId) => _
|
|
|
634
634
|
exports._deletePortfolioBlogPage = _deletePortfolioBlogPage;
|
|
635
635
|
const _fetchMediaDirectories = (basePath, token, accountId, path) => __awaiter(void 0, void 0, void 0, function* () {
|
|
636
636
|
const base = (0, base_1.getBasePath)(basePath);
|
|
637
|
-
const { data } = yield (0, api_1.getRequest)(`${base.ACCOUNTS}/media/${accountId}/directories?path=${path}`, token);
|
|
638
|
-
return (
|
|
637
|
+
const { data: portfolioPages } = yield (0, api_1.getRequest)(`${base.ACCOUNTS}/media/${accountId}/directories?path=${path}`, token);
|
|
638
|
+
return (portfolioPages === null || portfolioPages === void 0 ? void 0 : portfolioPages.data) || portfolioPages;
|
|
639
639
|
});
|
|
640
640
|
exports._fetchMediaDirectories = _fetchMediaDirectories;
|
|
641
641
|
const _fetchMediaDirectoryFiles = (basePath, token, accountId, path) => __awaiter(void 0, void 0, void 0, function* () {
|
|
642
642
|
const base = (0, base_1.getBasePath)(basePath);
|
|
643
|
-
const { data } = yield (0, api_1.getRequest)(`${base.ACCOUNTS}/media/${accountId}/files?path=${path}`, token);
|
|
644
|
-
return (
|
|
643
|
+
const { data: portfolioPages } = yield (0, api_1.getRequest)(`${base.ACCOUNTS}/media/${accountId}/files?path=${path}`, token);
|
|
644
|
+
return (portfolioPages === null || portfolioPages === void 0 ? void 0 : portfolioPages.data) || portfolioPages;
|
|
645
645
|
});
|
|
646
646
|
exports._fetchMediaDirectoryFiles = _fetchMediaDirectoryFiles;
|
|
647
647
|
const _fetchMediaFileDetails = (basePath, token, accountId, filepath) => __awaiter(void 0, void 0, void 0, function* () {
|
|
648
648
|
const base = (0, base_1.getBasePath)(basePath);
|
|
649
|
-
const { data } = yield (0, api_1.getRequest)(`${base.ACCOUNTS}/media/${accountId}/filedetails?filepath=${filepath}`, token);
|
|
650
|
-
return (
|
|
649
|
+
const { data: portfolioPages } = yield (0, api_1.getRequest)(`${base.ACCOUNTS}/media/${accountId}/filedetails?filepath=${filepath}`, token);
|
|
650
|
+
return (portfolioPages === null || portfolioPages === void 0 ? void 0 : portfolioPages.data) || portfolioPages;
|
|
651
651
|
});
|
|
652
652
|
exports._fetchMediaFileDetails = _fetchMediaFileDetails;
|
|
653
|
-
const _uploadImageToFolder = (basePath, token, accountId, folderPath, fileName, blob) => __awaiter(void 0, void 0, void 0, function* () {
|
|
654
|
-
const base = (0, base_1.getBasePath)(basePath);
|
|
655
|
-
const f = new File([blob], fileName);
|
|
656
|
-
const formData = new FormData();
|
|
657
|
-
formData.append("file", {
|
|
658
|
-
uri: f,
|
|
659
|
-
name: fileName,
|
|
660
|
-
type: f.type,
|
|
661
|
-
});
|
|
662
|
-
const { response } = yield (0, api_1.postFilesAndDataRequest)(`${base.ACCOUNTS}/media/${accountId}/file?path=${folderPath}`, {
|
|
663
|
-
image: f,
|
|
664
|
-
}, [formData], token);
|
|
665
|
-
return (response === null || response === void 0 ? void 0 : response.data) || response;
|
|
666
|
-
});
|
|
667
|
-
exports._uploadImageToFolder = _uploadImageToFolder;
|
|
668
|
-
const _renameFolder = (basePath, token, accountId, path, name_old, name_new) => __awaiter(void 0, void 0, void 0, function* () {
|
|
669
|
-
const base = (0, base_1.getBasePath)(basePath);
|
|
670
|
-
const { data } = yield (0, api_1.postFilesAndDataRequest)(`${base.ACCOUNTS}/media/${accountId}/directory`, {
|
|
671
|
-
path,
|
|
672
|
-
name_old,
|
|
673
|
-
name: name_new,
|
|
674
|
-
}, [], token, "put");
|
|
675
|
-
return (data === null || data === void 0 ? void 0 : data.data) || data;
|
|
676
|
-
});
|
|
677
|
-
exports._renameFolder = _renameFolder;
|
|
678
653
|
const _deleteMediaDirectories = (basePath, token, accountId, path, name) => __awaiter(void 0, void 0, void 0, function* () {
|
|
679
654
|
const base = (0, base_1.getBasePath)(basePath);
|
|
680
655
|
const response = yield (0, api_1.deleteRequest)(`${base.ACCOUNTS}/media/${accountId}/directory?path=${path}&name=${name}`, { path, name }, token);
|
|
@@ -693,3 +668,9 @@ const _addMediaFolder = (basePath, token, accountId, path, name) => __awaiter(vo
|
|
|
693
668
|
return response;
|
|
694
669
|
});
|
|
695
670
|
exports._addMediaFolder = _addMediaFolder;
|
|
671
|
+
const _updateEventWebsite = (basePath, token, eventId, keyData, data) => __awaiter(void 0, void 0, void 0, function* () {
|
|
672
|
+
const base = (0, base_1.getBasePath)(basePath);
|
|
673
|
+
const response = yield (0, api_1.putRequest)(`${base.EVENTS}/${eventId}/websitedata/${keyData}`, token, data);
|
|
674
|
+
return response === null || response === void 0 ? void 0 : response.result;
|
|
675
|
+
});
|
|
676
|
+
exports._updateEventWebsite = _updateEventWebsite;
|
package/lib/api/event/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { APIResponse } from "../../types/base";
|
|
2
1
|
import { EventMeetingStatisticsItem, MeetingItem } from "./types";
|
|
2
|
+
import { APIResponse } from "../../types/base";
|
|
3
3
|
export declare const _fetchMeetings: (basePath: string, token: string) => Promise<MeetingItem[]>;
|
|
4
4
|
export declare const _fetchArrangedMeetings: (basePath: string, token: string, eventId: string) => Promise<MeetingItem[]>;
|
|
5
5
|
export declare const _fetchLocation: (basePath: string, token: string, locationId: string) => Promise<APIResponse>;
|
package/lib/index.js
CHANGED
|
@@ -74,7 +74,7 @@ function EventAPIProvider(props) {
|
|
|
74
74
|
if (!baseUrl) {
|
|
75
75
|
return false;
|
|
76
76
|
}
|
|
77
|
-
setConfig({ baseUrl
|
|
77
|
+
setConfig({ baseUrl });
|
|
78
78
|
return true;
|
|
79
79
|
}, [config]);
|
|
80
80
|
const fetchEventRegistrations = react_1.default.useCallback((eventId) => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -149,6 +149,10 @@ function EventAPIProvider(props) {
|
|
|
149
149
|
(0, api_1.validateConfig)(config);
|
|
150
150
|
return (0, event_1._addMediaFolder)(config.baseUrl, config.token, accountId, path, name);
|
|
151
151
|
}), [config, config.baseUrl, config.token]);
|
|
152
|
+
const updateEventWebsite = (0, react_1.useCallback)((eventId, keyData, data) => __awaiter(this, void 0, void 0, function* () {
|
|
153
|
+
(0, api_1.validateConfig)(config);
|
|
154
|
+
return (0, event_1._updateEventWebsite)(config.baseUrl, config.token, eventId, keyData, data);
|
|
155
|
+
}), [config, config.baseUrl, config.token]);
|
|
152
156
|
const deleteMediaDirectoryFiles = (0, react_1.useCallback)((accountId, filepath) => __awaiter(this, void 0, void 0, function* () {
|
|
153
157
|
(0, api_1.validateConfig)(config);
|
|
154
158
|
return (0, event_1._deleteMediaDirectoryFiles)(config.baseUrl, config.token, accountId, filepath);
|
|
@@ -945,14 +949,6 @@ function EventAPIProvider(props) {
|
|
|
945
949
|
(0, api_1.validateConfig)(config);
|
|
946
950
|
return (0, event_1._fetchMediaFileDetails)(config.baseUrl, config.token, accountId, path);
|
|
947
951
|
}), [config, config.baseUrl, config.token]);
|
|
948
|
-
const uploadImageToFolder = react_1.default.useCallback((accountId, folderPath, fileName, blob) => __awaiter(this, void 0, void 0, function* () {
|
|
949
|
-
(0, api_1.validateConfig)(config);
|
|
950
|
-
return (0, event_1._uploadImageToFolder)(config.baseUrl, config.token, accountId, folderPath, fileName, blob);
|
|
951
|
-
}), [config, config.baseUrl, config.token]);
|
|
952
|
-
const renameFolder = react_1.default.useCallback((accountId, path, name_old, name_new) => __awaiter(this, void 0, void 0, function* () {
|
|
953
|
-
(0, api_1.validateConfig)(config);
|
|
954
|
-
return (0, event_1._renameFolder)(config.baseUrl, config.token, accountId, path, name_old, name_new);
|
|
955
|
-
}), [config, config.baseUrl, config.token]);
|
|
956
952
|
return (react_1.default.createElement(EventAPIContext_1.default.Provider, { value: {
|
|
957
953
|
config,
|
|
958
954
|
init,
|
|
@@ -974,6 +970,7 @@ function EventAPIProvider(props) {
|
|
|
974
970
|
fetchEventGroups,
|
|
975
971
|
deleteMediaDirectories,
|
|
976
972
|
addMediaFolder,
|
|
973
|
+
updateEventWebsite,
|
|
977
974
|
deleteMediaDirectoryFiles,
|
|
978
975
|
updateAccountGroup,
|
|
979
976
|
updateVisibilityAttendee,
|
|
@@ -1174,8 +1171,6 @@ function EventAPIProvider(props) {
|
|
|
1174
1171
|
fetchMediaDirectories,
|
|
1175
1172
|
fetchMediaDirectoryFiles,
|
|
1176
1173
|
fetchMediaFileDetails,
|
|
1177
|
-
uploadImageToFolder,
|
|
1178
|
-
renameFolder,
|
|
1179
1174
|
} }, props.children));
|
|
1180
1175
|
}
|
|
1181
1176
|
exports.EventAPIProvider = EventAPIProvider;
|
|
@@ -1196,6 +1191,7 @@ exports.BaseAPI = {
|
|
|
1196
1191
|
fetchEventGroups: event_1._fetchEventGroups,
|
|
1197
1192
|
deleteMediaDirectories: event_1._deleteMediaDirectories,
|
|
1198
1193
|
addMediaFolder: event_1._addMediaFolder,
|
|
1194
|
+
updateEventWebsite: event_1._updateEventWebsite,
|
|
1199
1195
|
deleteMediaDirectoryFiles: event_1._deleteMediaDirectoryFiles,
|
|
1200
1196
|
updateAccountGroup: authentication_1._updateAccountGroup,
|
|
1201
1197
|
updateVisibilityAttendee: attendee_1._updateVisibilityAttendee,
|
|
@@ -1398,7 +1394,5 @@ exports.BaseAPI = {
|
|
|
1398
1394
|
fetchMediaDirectories: event_1._fetchMediaDirectories,
|
|
1399
1395
|
fetchMediaDirectoryFiles: event_1._fetchMediaDirectoryFiles,
|
|
1400
1396
|
fetchMediaFileDetails: event_1._fetchMediaFileDetails,
|
|
1401
|
-
uploadImageToFolder: event_1._uploadImageToFolder,
|
|
1402
|
-
renameFolder: event_1._renameFolder,
|
|
1403
1397
|
};
|
|
1404
1398
|
exports.useAPIContext = EventAPIContext_1.useAPIContext;
|
package/lib/types/base.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Attendee, AttendeeInput, AttendeeProfile, Note, NoteUpdateInput, UserNotification } from "../api/attendee/types";
|
|
2
2
|
import { ColocatedEventsGroupInputType, ColocatedEventsGroupType, GroupInputType, GroupResponseType, PublicGroupResponseType, RegisterManagerInput, ResponseAccountEventsType } from "../api/authentication/types";
|
|
3
3
|
import { LoginResponse, SendResetPasswordBody } from "../api/context/types";
|
|
4
|
-
import { Account, AccountInput, Answer, BlogPage, BlogPageInput, Booking, BookingDetails, Directory, DirectoryFiles, DiscountServerResponse, DocumentType, Event, EventLocation, EventRegistration, EventServerResponse, EventStream, Exhibition, ExhibitionInput, FileDetails, GroupServerResponse, GroupType, OptionServerResponse, Portfolio, PortfolioInput, Stream, StreamInput, TicketServerResponse, UserRegistrationsEvent, ZoomParams } from "../api/event/types";
|
|
4
|
+
import { Account, AccountInput, Answer, BlogPage, BlogPageInput, Booking, BookingDetails, Directory, DirectoryFiles, DiscountServerResponse, DocumentType, Event, EventLocation, EventRegistration, EventServerResponse, EventStream, Exhibition, ExhibitionInput, FileDetails, GroupServerResponse, GroupType, OptionServerResponse, Portfolio, PortfolioInput, ResponseAPIType1, Stream, StreamInput, TicketServerResponse, UserRegistrationsEvent, ZoomParams } from "../api/event/types";
|
|
5
5
|
import { EventMeetingStatisticsItem, MeetingItem } from "../api/meetings/types";
|
|
6
6
|
import { CommentBody, Post, PostBody, UpdatePostBody } from "../api/posts/types";
|
|
7
7
|
import { GenericResponseServerType, PublicEventItem, ResponsePaginationType, ResponseServerType } from "../api/public/types";
|
|
@@ -91,6 +91,7 @@ export type BaseAPIType = {
|
|
|
91
91
|
fetchEventGroups: (basePath: string, token: string, eventId: string) => Promise<GroupServerResponse[]>;
|
|
92
92
|
deleteMediaDirectories: (basePath: string, token: string, accountId: string, path: string, name: string) => Promise<APIResponse>;
|
|
93
93
|
addMediaFolder: (basePath: string, token: string, accountId: string, path: string, name: string) => Promise<APIResponse>;
|
|
94
|
+
updateEventWebsite: (basePath: string, token: string, eventId: string, keyData: string, data: Record<string, string>[]) => Promise<ResponseAPIType1>;
|
|
94
95
|
deleteMediaDirectoryFiles: (basePath: string, token: string, accountId: string, filepath: string) => Promise<APIResponse>;
|
|
95
96
|
updateAccountGroup: (basePath: string, token: string, accountId: string, groupId: string, data: GroupInputType) => Promise<GroupResponseType>;
|
|
96
97
|
fetchAccountGroups: (basePath: string, token: string, accountId: string, type: GroupType) => Promise<ResponsePaginationType<GroupResponseType>>;
|
|
@@ -318,8 +319,6 @@ export type BaseAPIType = {
|
|
|
318
319
|
fetchMediaDirectories: (basePath: string, token: string, accountId: string, path: string) => Promise<Directory>;
|
|
319
320
|
fetchMediaDirectoryFiles: (basePath: string, token: string, accountId: string, path: string) => Promise<DirectoryFiles>;
|
|
320
321
|
fetchMediaFileDetails: (basePath: string, token: string, accountId: string, filepath: string) => Promise<FileDetails>;
|
|
321
|
-
uploadImageToFolder: (basePath: string, token: string, accountId: string, folderPath: string, fileName: string, blob: Blob) => Promise<APIResponse>;
|
|
322
|
-
renameFolder: (basePath: string, token: string, accountId: string, path: string, name_old: string, name_new: string) => Promise<APIResponse>;
|
|
323
322
|
};
|
|
324
323
|
export type EventAPIType = {
|
|
325
324
|
config: BaseAPIConfigType;
|
|
@@ -342,6 +341,7 @@ export type EventAPIType = {
|
|
|
342
341
|
fetchEventGroups: (eventId: string) => Promise<GroupServerResponse[]>;
|
|
343
342
|
deleteMediaDirectories: (accountId: string, path: string, name: string) => Promise<APIResponse>;
|
|
344
343
|
addMediaFolder: (accountId: string, path: string, name: string) => Promise<APIResponse>;
|
|
344
|
+
updateEventWebsite: (eventId: string, keyData: string, data: Record<string, string>[]) => Promise<ResponseAPIType1>;
|
|
345
345
|
deleteMediaDirectoryFiles: (accountId: string, filepath: string) => Promise<APIResponse>;
|
|
346
346
|
updateAccountGroup: (accountId: string, groupId: string, data: GroupInputType) => Promise<GroupResponseType>;
|
|
347
347
|
fetchAccountGroups: (accountId: string, type: GroupType) => Promise<ResponsePaginationType<GroupResponseType>>;
|
|
@@ -566,8 +566,6 @@ export type EventAPIType = {
|
|
|
566
566
|
fetchMediaDirectories: (accountId: string, path: string) => Promise<Directory>;
|
|
567
567
|
fetchMediaDirectoryFiles: (accountId: string, path: string) => Promise<DirectoryFiles>;
|
|
568
568
|
fetchMediaFileDetails: (accountId: string, filepath: string) => Promise<FileDetails>;
|
|
569
|
-
uploadImageToFolder: (accountId: string, folderPath: string, fileName: string, blob: Blob) => Promise<APIResponse>;
|
|
570
|
-
renameFolder: (accountId: string, path: string, name_old: string, name_new: string) => Promise<APIResponse>;
|
|
571
569
|
};
|
|
572
570
|
export type BaseAPIConfigType = {
|
|
573
571
|
baseUrl?: string;
|