@hubs101/js-api-skd-client 1.0.10327 → 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 +4 -4
- package/lib/api/public/types.d.ts +11 -0
- package/lib/types/base.d.ts +7 -7
- package/package.json +1 -1
package/lib/api/event/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { 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,9 +24,9 @@ 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<
|
|
29
|
-
export declare const _deleteDiscount: (basePath: string, token: string, discountId: string) => 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
|
+
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>;
|
|
32
32
|
export declare const _updateLocation: (basePath: string, token: string, locationId: string, data: any) => Promise<any>;
|
|
@@ -131,3 +131,14 @@ 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
|
+
};
|
|
140
|
+
export type DeleteServerType = {
|
|
141
|
+
status: string | number;
|
|
142
|
+
message?: string;
|
|
143
|
+
message_code?: number;
|
|
144
|
+
};
|
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 { 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";
|
|
@@ -146,9 +146,9 @@ export type BaseAPIType = {
|
|
|
146
146
|
addOnsiteAttendee: (basePath: string, token: string, attendeeId: string) => Promise<any>;
|
|
147
147
|
removeOnsiteAttendee: (basePath: string, token: string, attendeeId: string) => Promise<any>;
|
|
148
148
|
checkAvailabilityAttendee: (basePath: string, token: string, attendeeId: string) => Promise<any>;
|
|
149
|
-
deleteDiscount: (basePath: string, token: string, discountId: string) => Promise<
|
|
150
|
-
updateDiscount: (basePath: string, token: string, discountId: string, data: any) => Promise<
|
|
151
|
-
createDiscount: (basePath: string, token: string, data: any) => Promise<
|
|
149
|
+
deleteDiscount: (basePath: string, token: string, discountId: string) => Promise<DeleteServerType>;
|
|
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>;
|
|
@@ -356,9 +356,9 @@ export type EventAPIType = {
|
|
|
356
356
|
addOnsiteAttendee: (attendeeId: string) => Promise<any>;
|
|
357
357
|
removeOnsiteAttendee: (attendeeId: string) => Promise<any>;
|
|
358
358
|
checkAvailabilityAttendee: (attendeeId: string) => Promise<any>;
|
|
359
|
-
deleteDiscount: (discountId: string) => Promise<
|
|
360
|
-
updateDiscount: (discountId: string, data: any) => Promise<
|
|
361
|
-
createDiscount: (data: any) => Promise<
|
|
359
|
+
deleteDiscount: (discountId: string) => Promise<DeleteServerType>;
|
|
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>;
|