@hubs101/js-api-skd-client 1.0.10230 → 1.0.10231
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 +2 -2
- package/lib/index.js +2 -2
- package/lib/types/base.d.ts +1 -1
- package/package.json +1 -1
package/lib/api/event/index.d.ts
CHANGED
|
@@ -46,7 +46,7 @@ export declare const _unpinExhibition: (basePath: string, token: string, exhibit
|
|
|
46
46
|
export declare const _fetchEventGroups: (basePath: string, token: string, eventId: string) => Promise<GroupServerResponse[]>;
|
|
47
47
|
export declare const _assignTicket: (basePath: string, token: string, bookingId: string, ticketId: string, data: any) => Promise<any>;
|
|
48
48
|
export declare const _fetchTicketDetails: (basePath: string, eventId: string, profileId: string, access: string) => Promise<ResponsePaginationType<BookingDetails>>;
|
|
49
|
-
export declare const _acceptTicket: (basePath: string, ticketId: string, body: any) => Promise<any>;
|
|
49
|
+
export declare const _acceptTicket: (basePath: string, ticketId: string, access: string, body: any) => Promise<any>;
|
|
50
50
|
export declare const _fetchEventBookings: (basePath: string, token: string, eventId: string) => Promise<ResponsePaginationType<Booking>>;
|
|
51
51
|
export declare const _createFreeTrialAccount: (basePath: string, token: string, data: any) => Promise<any>;
|
|
52
52
|
export declare const _eventInvitationRegistration: (basePath: string, token: string, userId: string, data: any) => Promise<any>;
|
package/lib/api/event/index.js
CHANGED
|
@@ -298,9 +298,9 @@ const _fetchTicketDetails = (basePath, eventId, profileId, access) => __awaiter(
|
|
|
298
298
|
return data;
|
|
299
299
|
});
|
|
300
300
|
exports._fetchTicketDetails = _fetchTicketDetails;
|
|
301
|
-
const _acceptTicket = (basePath, ticketId, body) => __awaiter(void 0, void 0, void 0, function* () {
|
|
301
|
+
const _acceptTicket = (basePath, ticketId, access, body) => __awaiter(void 0, void 0, void 0, function* () {
|
|
302
302
|
const base = (0, base_1.getBasePath)(basePath);
|
|
303
|
-
const response = yield (0, api_1.postRequestWE)(`${base.
|
|
303
|
+
const response = yield (0, api_1.postRequestWE)(`${base.PUBLIC_INVITATIONS}/tickets/${ticketId}/accept?access=${access}`, body);
|
|
304
304
|
return response;
|
|
305
305
|
});
|
|
306
306
|
exports._acceptTicket = _acceptTicket;
|
package/lib/index.js
CHANGED
|
@@ -144,9 +144,9 @@ function EventAPIProvider(props) {
|
|
|
144
144
|
(0, api_1.validateConfig)(config);
|
|
145
145
|
return (0, event_1._assignTicket)(config.baseUrl, config.token, bookingId, ticketId, data);
|
|
146
146
|
}), [config, config.baseUrl, config.token]);
|
|
147
|
-
const acceptTicket = (0, react_1.useCallback)((ticketId, body) => __awaiter(this, void 0, void 0, function* () {
|
|
147
|
+
const acceptTicket = (0, react_1.useCallback)((ticketId, access, body) => __awaiter(this, void 0, void 0, function* () {
|
|
148
148
|
(0, api_1.validateConfig)(config);
|
|
149
|
-
return (0, event_1._acceptTicket)(config.baseUrl, ticketId, body);
|
|
149
|
+
return (0, event_1._acceptTicket)(config.baseUrl, ticketId, access, body);
|
|
150
150
|
}), [config, config.baseUrl, config.token]);
|
|
151
151
|
const fetchTicketDetails = (0, react_1.useCallback)((eventId, profileId, access) => __awaiter(this, void 0, void 0, function* () {
|
|
152
152
|
(0, api_1.validateConfig)(config);
|
package/lib/types/base.d.ts
CHANGED
|
@@ -84,7 +84,7 @@ export type BaseAPIType = {
|
|
|
84
84
|
unpinExhibition: (basePath: string, token: string, exhibitionId: string) => Promise<boolean>;
|
|
85
85
|
fetchEventGroups: (basePath: string, token: string, eventId: string) => Promise<GroupServerResponse[]>;
|
|
86
86
|
assignTicket: (basePath: string, token: string, bookingId: string, ticketId: string, data: any) => Promise<any>;
|
|
87
|
-
acceptTicket: (basePath: string, ticketId: string, body: any) => Promise<any>;
|
|
87
|
+
acceptTicket: (basePath: string, ticketId: string, access: string, body: any) => Promise<any>;
|
|
88
88
|
fetchTicketDetails: (basePath: string, eventId: string, profileId: string, access: string) => Promise<ResponsePaginationType<BookingDetails>>;
|
|
89
89
|
fetchEventBookings: (basePath: string, token: string, eventId: string) => Promise<ResponsePaginationType<Booking>>;
|
|
90
90
|
createFreeTrialAccount: (basePath: string, token: string, data: any) => Promise<any>;
|