@hubs101/js-api-skd-client 1.0.10595 → 1.0.10598
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/api/event/index.d.ts +1 -1
- package/lib/api/event/index.js +5 -5
- package/lib/index.js +2 -2
- package/lib/types/base.d.ts +2 -2
- package/package.json +1 -1
package/lib/api/event/index.d.ts
CHANGED
|
@@ -157,7 +157,7 @@ export declare const _updateTestimonial: (basePath: string, token: string, event
|
|
|
157
157
|
export declare const _createStatistic: (basePath: string, token: string, eventId: string, data: StatisticInput) => Promise<StatisticResponse>;
|
|
158
158
|
export declare const _updateStatistic: (basePath: string, token: string, eventId: string, statisticId: string, data: StatisticInput) => Promise<StatisticResponse>;
|
|
159
159
|
export declare const _createKeyTopic: (basePath: string, token: string, eventId: string, data: KeyTopicInput, files?: any) => Promise<KeyTopicResponse>;
|
|
160
|
-
export declare const _updateKeyTopic: (basePath: string, token: string, eventId: string, keyTopicId: string, data: KeyTopicInput
|
|
160
|
+
export declare const _updateKeyTopic: (basePath: string, token: string, eventId: string, keyTopicId: string, data: KeyTopicInput) => Promise<KeyTopicResponse>;
|
|
161
161
|
export declare const _importTickets: (basePath: string, token: string, eventId: string, ticketsList: string[]) => Promise<ResponsePaginationType<TicketServerResponse>>;
|
|
162
162
|
export declare const _fetchPublicEventAdvertisement: (basePath: string, eventId: string) => Promise<GenericResponseServerType<PublicAdResponse[]>>;
|
|
163
163
|
export declare const _activateDataManagers: (basePath: string, token: string, eventId: string, attendeeIds: string[]) => Promise<Attendee[]>;
|
package/lib/api/event/index.js
CHANGED
|
@@ -777,25 +777,25 @@ const _updateTestimonial = (basePath, token, eventId, testimonialId, data, files
|
|
|
777
777
|
exports._updateTestimonial = _updateTestimonial;
|
|
778
778
|
const _createStatistic = (basePath, token, eventId, data) => __awaiter(void 0, void 0, void 0, function* () {
|
|
779
779
|
const base = (0, base_1.getBasePath)(basePath);
|
|
780
|
-
const response = yield (0, api_1.postRequestWE)(`${base.EVENTS}/${eventId}/statistics`, data, token);
|
|
780
|
+
const response = yield (0, api_1.postRequestWE)(`${base.EVENTS}/${eventId}/statistics`, data, token, "put");
|
|
781
781
|
return response === null || response === void 0 ? void 0 : response.data;
|
|
782
782
|
});
|
|
783
783
|
exports._createStatistic = _createStatistic;
|
|
784
784
|
const _updateStatistic = (basePath, token, eventId, statisticId, data) => __awaiter(void 0, void 0, void 0, function* () {
|
|
785
785
|
const base = (0, base_1.getBasePath)(basePath);
|
|
786
|
-
const response = yield (0, api_1.
|
|
786
|
+
const response = yield (0, api_1.postRequestWE)(`${base.EVENTS}/${eventId}/statistics/${statisticId}`, data, token, "put");
|
|
787
787
|
return response === null || response === void 0 ? void 0 : response.data;
|
|
788
788
|
});
|
|
789
789
|
exports._updateStatistic = _updateStatistic;
|
|
790
790
|
const _createKeyTopic = (basePath, token, eventId, data, files) => __awaiter(void 0, void 0, void 0, function* () {
|
|
791
791
|
const base = (0, base_1.getBasePath)(basePath);
|
|
792
|
-
const response = yield (0, api_1.postFilesAndDataRequest)(`${base.EVENTS}/${eventId}/keytopics`, data, files !== null && files !== void 0 ? files : [], token);
|
|
792
|
+
const response = yield (0, api_1.postFilesAndDataRequest)(`${base.EVENTS}/${eventId}/keytopics`, data, files !== null && files !== void 0 ? files : [], token, "put");
|
|
793
793
|
return response === null || response === void 0 ? void 0 : response.data;
|
|
794
794
|
});
|
|
795
795
|
exports._createKeyTopic = _createKeyTopic;
|
|
796
|
-
const _updateKeyTopic = (basePath, token, eventId, keyTopicId, data
|
|
796
|
+
const _updateKeyTopic = (basePath, token, eventId, keyTopicId, data) => __awaiter(void 0, void 0, void 0, function* () {
|
|
797
797
|
const base = (0, base_1.getBasePath)(basePath);
|
|
798
|
-
const response = yield (0, api_1.
|
|
798
|
+
const response = yield (0, api_1.postRequestWE)(`${base.EVENTS}/${eventId}/keytopics/${keyTopicId}`, data, token, "put");
|
|
799
799
|
return response === null || response === void 0 ? void 0 : response.data;
|
|
800
800
|
});
|
|
801
801
|
exports._updateKeyTopic = _updateKeyTopic;
|
package/lib/index.js
CHANGED
|
@@ -244,9 +244,9 @@ function EventAPIProvider(props) {
|
|
|
244
244
|
(0, api_1.validateConfig)(config);
|
|
245
245
|
return (0, event_1._createKeyTopic)(config.baseUrl, config.token, eventId, data, files);
|
|
246
246
|
}), [config, config.baseUrl, config.token]);
|
|
247
|
-
const updateKeyTopic = (0, react_1.useCallback)((eventId, keyTopicId, data
|
|
247
|
+
const updateKeyTopic = (0, react_1.useCallback)((eventId, keyTopicId, data) => __awaiter(this, void 0, void 0, function* () {
|
|
248
248
|
(0, api_1.validateConfig)(config);
|
|
249
|
-
return (0, event_1._updateKeyTopic)(config.baseUrl, config.token, eventId, keyTopicId, data
|
|
249
|
+
return (0, event_1._updateKeyTopic)(config.baseUrl, config.token, eventId, keyTopicId, data);
|
|
250
250
|
}), [config, config.baseUrl, config.token]);
|
|
251
251
|
const resendTicketEmail = react_1.default.useCallback((ticketId) => __awaiter(this, void 0, void 0, function* () {
|
|
252
252
|
(0, api_1.validateConfig)(config);
|
package/lib/types/base.d.ts
CHANGED
|
@@ -375,7 +375,7 @@ export type BaseAPIType = {
|
|
|
375
375
|
createStatistic: (basePath: string, token: string, eventId: string, data: StatisticInput) => Promise<StatisticResponse>;
|
|
376
376
|
updateStatistic: (basePath: string, token: string, eventId: string, statisticId: string, data: StatisticInput) => Promise<StatisticResponse>;
|
|
377
377
|
createKeyTopic: (basePath: string, token: string, eventId: string, data: KeyTopicInput, files?: any) => Promise<KeyTopicResponse>;
|
|
378
|
-
updateKeyTopic: (basePath: string, token: string, eventId: string, keyTopicId: string, data: KeyTopicInput
|
|
378
|
+
updateKeyTopic: (basePath: string, token: string, eventId: string, keyTopicId: string, data: KeyTopicInput) => Promise<KeyTopicResponse>;
|
|
379
379
|
};
|
|
380
380
|
export type EventAPIType = {
|
|
381
381
|
config: BaseAPIConfigType;
|
|
@@ -676,7 +676,7 @@ export type EventAPIType = {
|
|
|
676
676
|
createStatistic: (eventId: string, data: StatisticInput) => Promise<StatisticResponse>;
|
|
677
677
|
updateStatistic: (eventId: string, statisticId: string, data: StatisticInput) => Promise<StatisticResponse>;
|
|
678
678
|
createKeyTopic: (eventId: string, data: KeyTopicInput, files?: any) => Promise<KeyTopicResponse>;
|
|
679
|
-
updateKeyTopic: (eventId: string, keyTopicId: string, data: KeyTopicInput
|
|
679
|
+
updateKeyTopic: (eventId: string, keyTopicId: string, data: KeyTopicInput) => Promise<KeyTopicResponse>;
|
|
680
680
|
};
|
|
681
681
|
export type BaseAPIConfigType = {
|
|
682
682
|
baseUrl?: string;
|