@hubs101/js-api-skd-client 1.0.10321 → 1.0.10323
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 +3 -3
- package/lib/api/public/types.d.ts +4 -0
- package/lib/api/types.d.ts +19 -1
- package/lib/types/base.d.ts +1 -1
- package/package.json +1 -1
package/lib/api/event/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ResponsePaginationType } from "../public/types";
|
|
2
|
-
import { ExhibitionReport } from "../types";
|
|
1
|
+
import { ResponsePaginationType, ResponseServerType } from "../public/types";
|
|
2
|
+
import { ExhibitionReport, FetchCurrentEventAttendeesActionsResponse } from "../types";
|
|
3
3
|
import { Account, AccountInput, Booking, BookingDetails, 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[]>;
|
|
5
5
|
export declare const _fetchAccounts: (basePath: string, token: string) => Promise<Account[]>;
|
|
@@ -45,7 +45,7 @@ export declare const _unpinDocument: (basePath: string, token: string, eventId:
|
|
|
45
45
|
export declare const _pinExhibition: (basePath: string, token: string, exhibitionId: string) => Promise<boolean>;
|
|
46
46
|
export declare const _unpinExhibition: (basePath: string, token: string, exhibitionId: string) => Promise<boolean>;
|
|
47
47
|
export declare const _fetchEventGroups: (basePath: string, token: string, eventId: string) => Promise<GroupServerResponse[]>;
|
|
48
|
-
export declare const _fetchEventAttendeeActions: (basePath: string, token: string, eventId: string) => Promise<
|
|
48
|
+
export declare const _fetchEventAttendeeActions: (basePath: string, token: string, eventId: string) => Promise<ResponseServerType<FetchCurrentEventAttendeesActionsResponse[]>>;
|
|
49
49
|
export declare const _resendTicketEmail: (basePath: string, token: string, ticketId: string) => Promise<any>;
|
|
50
50
|
export declare const _resendBookingEmail: (basePath: string, token: string, bookingId: string) => Promise<any>;
|
|
51
51
|
export declare const _checkBooking: (basePath: string, body: any, lang: string) => Promise<any>;
|
|
@@ -127,3 +127,7 @@ export type PublicEventsContextType = {
|
|
|
127
127
|
fetchAgenda: (eventId: string, nbPage?: number, params?: string) => Promise<any>;
|
|
128
128
|
selectPublicEvent: (selectedPublicEvent: PublicEventItem) => void;
|
|
129
129
|
} & PublicEventsProviderState;
|
|
130
|
+
export type ResponseServerType<T> = {
|
|
131
|
+
status: string | number;
|
|
132
|
+
data: T;
|
|
133
|
+
};
|
package/lib/api/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ACTION_CATEGORY, ACTION_NAME, ACTION_RESOURCE_NAME } from "../constants/api";
|
|
1
|
+
import { ACTION_CATEGORY, ACTION_NAME, ACTION_REFERENCE_TYPE, ACTION_RESOURCE_NAME } from "../constants/api";
|
|
2
2
|
export type ObjectValue<T extends Record<string, unknown>> = T[keyof T];
|
|
3
3
|
export type ValidAttendeeAction = ObjectValue<typeof ATTENDEE_ACTION>;
|
|
4
4
|
export declare const ATTENDEE_ACTION: {
|
|
@@ -89,3 +89,21 @@ export type SessionReport = {
|
|
|
89
89
|
type: any;
|
|
90
90
|
resource: ActionResourceName;
|
|
91
91
|
};
|
|
92
|
+
type ActionReferenceType = ObjectValue<typeof ACTION_REFERENCE_TYPE>;
|
|
93
|
+
export type TrackingServerResponseItem = Readonly<{
|
|
94
|
+
date: string;
|
|
95
|
+
type: ActionReferenceType;
|
|
96
|
+
action: ActionName;
|
|
97
|
+
profile: string;
|
|
98
|
+
category: ActionCategory;
|
|
99
|
+
resource: ActionResourceName;
|
|
100
|
+
reference: string;
|
|
101
|
+
processedAt: string;
|
|
102
|
+
}>;
|
|
103
|
+
export type FetchCurrentEventAttendeesActionsResponse = {
|
|
104
|
+
event: string;
|
|
105
|
+
profile: string;
|
|
106
|
+
id: string;
|
|
107
|
+
trackings: TrackingServerResponseItem[];
|
|
108
|
+
}[];
|
|
109
|
+
export {};
|
package/lib/types/base.d.ts
CHANGED
|
@@ -297,7 +297,7 @@ export type EventAPIType = {
|
|
|
297
297
|
pinExhibition: (exhibitionId: string) => Promise<boolean>;
|
|
298
298
|
unpinExhibition: (exhibitionId: string) => Promise<boolean>;
|
|
299
299
|
fetchEventGroups: (eventId: string) => Promise<GroupServerResponse[]>;
|
|
300
|
-
fetchEventAttendeeActions: (
|
|
300
|
+
fetchEventAttendeeActions: (eventId: string) => Promise<any>;
|
|
301
301
|
fetchAccountBookings: (accountId: string, params?: string) => Promise<ResponsePaginationType<Booking>>;
|
|
302
302
|
resendTicketEmail: (ticketId: string) => Promise<any>;
|
|
303
303
|
resendBookingEmail: (bookingId: string) => Promise<any>;
|