@hubs101/js-api-skd-client 1.0.10328 → 1.0.10329
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
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DeleteServerType, ResponsePaginationType, ResponseServerType } from "../public/types";
|
|
1
|
+
import { DeleteServerType, GenericResponseServerType, ResponsePaginationType, ResponseServerType } from "../public/types";
|
|
2
2
|
import { ExhibitionReport, FetchCurrentEventAttendeesActionsResponse } from "../types";
|
|
3
3
|
import { Account, AccountInput, Booking, BookingDetails, DiscountServerResponse, DocumentType, Event, EventLocation, EventRegistration, EventServerResponse, EventStream, Exhibition, ExhibitionInput, GroupServerResponse, OptionServerResponse, Stream, StreamInput, TicketServerResponse, UserRegistrationsEvent, ZoomParams } from "./types";
|
|
4
4
|
export declare const _fetchEventRegistrations: (basePath: string, token: string, eventId: string) => Promise<EventRegistration[]>;
|
|
@@ -24,8 +24,8 @@ export declare const _createTicket: (basePath: string, token: string, data: any)
|
|
|
24
24
|
export declare const _updateTicket: (basePath: string, token: string, ticketId: string, data: any) => Promise<any>;
|
|
25
25
|
export declare const _deleteTicket: (basePath: string, token: string, ticketId: string) => Promise<any>;
|
|
26
26
|
export declare const _fetchEventDiscounts: (basePath: string, token: string, eventId: string) => Promise<ResponsePaginationType<DiscountServerResponse>>;
|
|
27
|
-
export declare const _createDiscount: (basePath: string, token: string, data: any) => Promise<
|
|
28
|
-
export declare const _updateDiscount: (basePath: string, token: string, discountId: string, data: any) => Promise<
|
|
27
|
+
export declare const _createDiscount: (basePath: string, token: string, data: any) => Promise<GenericResponseServerType<DiscountServerResponse>>;
|
|
28
|
+
export declare const _updateDiscount: (basePath: string, token: string, discountId: string, data: any) => Promise<GenericResponseServerType<DiscountServerResponse>>;
|
|
29
29
|
export declare const _deleteDiscount: (basePath: string, token: string, discountId: string) => Promise<DeleteServerType>;
|
|
30
30
|
export declare const _fetchExhibitionDetails: (basePath: string, token: string, exhibitionId: string) => Promise<Exhibition>;
|
|
31
31
|
export declare const _createLocation: (basePath: string, token: string, files: any, data: any) => Promise<any>;
|
|
@@ -131,6 +131,12 @@ export type ResponseServerType<T> = {
|
|
|
131
131
|
status: string | number;
|
|
132
132
|
data: T;
|
|
133
133
|
};
|
|
134
|
+
export type GenericResponseServerType<T> = {
|
|
135
|
+
status: string | number;
|
|
136
|
+
result: {
|
|
137
|
+
data: T;
|
|
138
|
+
};
|
|
139
|
+
};
|
|
134
140
|
export type DeleteServerType = {
|
|
135
141
|
status: string | number;
|
|
136
142
|
message?: string;
|
package/lib/types/base.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { Account, AccountInput, Answer, Booking, BookingDetails, DiscountServerR
|
|
|
6
6
|
import { EventMeetingStatisticsItem, MeetingItem } from "../api/meetings/types";
|
|
7
7
|
import { Page } from "../api/pages/types";
|
|
8
8
|
import { CommentBody, Post, PostBody, UpdatePostBody } from "../api/posts/types";
|
|
9
|
-
import { DeleteServerType, PublicEventItem, ResponsePaginationType, ResponseServerType } from "../api/public/types";
|
|
9
|
+
import { DeleteServerType, GenericResponseServerType, PublicEventItem, ResponsePaginationType, ResponseServerType } from "../api/public/types";
|
|
10
10
|
import { Session, SessionFull, SessionInput } from "../api/sessions/types";
|
|
11
11
|
import { Track } from "../api/tracks/types";
|
|
12
12
|
import { AttendeeReport, ExhibitionReport, FetchCurrentEventAttendeesActionsResponse, SessionReport } from "../api/types";
|
|
@@ -147,8 +147,8 @@ export type BaseAPIType = {
|
|
|
147
147
|
removeOnsiteAttendee: (basePath: string, token: string, attendeeId: string) => Promise<any>;
|
|
148
148
|
checkAvailabilityAttendee: (basePath: string, token: string, attendeeId: string) => Promise<any>;
|
|
149
149
|
deleteDiscount: (basePath: string, token: string, discountId: string) => Promise<DeleteServerType>;
|
|
150
|
-
updateDiscount: (basePath: string, token: string, discountId: string, data: any) => Promise<
|
|
151
|
-
createDiscount: (basePath: string, token: string, data: any) => Promise<
|
|
150
|
+
updateDiscount: (basePath: string, token: string, discountId: string, data: any) => Promise<GenericResponseServerType<DiscountServerResponse>>;
|
|
151
|
+
createDiscount: (basePath: string, token: string, data: any) => Promise<GenericResponseServerType<DiscountServerResponse>>;
|
|
152
152
|
fetchEventDiscounts: (basePath: string, token: string, eventId: string) => Promise<ResponsePaginationType<DiscountServerResponse>>;
|
|
153
153
|
deleteTicket: (basePath: string, token: string, ticketId: string) => Promise<any>;
|
|
154
154
|
updateTicket: (basePath: string, token: string, ticketId: string, data: any) => Promise<any>;
|
|
@@ -357,8 +357,8 @@ export type EventAPIType = {
|
|
|
357
357
|
removeOnsiteAttendee: (attendeeId: string) => Promise<any>;
|
|
358
358
|
checkAvailabilityAttendee: (attendeeId: string) => Promise<any>;
|
|
359
359
|
deleteDiscount: (discountId: string) => Promise<DeleteServerType>;
|
|
360
|
-
updateDiscount: (discountId: string, data: any) => Promise<
|
|
361
|
-
createDiscount: (data: any) => Promise<
|
|
360
|
+
updateDiscount: (discountId: string, data: any) => Promise<GenericResponseServerType<DiscountServerResponse>>;
|
|
361
|
+
createDiscount: (data: any) => Promise<GenericResponseServerType<DiscountServerResponse>>;
|
|
362
362
|
fetchEventDiscounts: (eventId: string) => Promise<ResponsePaginationType<DiscountServerResponse>>;
|
|
363
363
|
deleteTicket: (ticketId: string) => Promise<any>;
|
|
364
364
|
updateTicket: (ticketId: string, data: any) => Promise<any>;
|