@hubs101/js-api-skd-client 1.0.10328 → 1.0.10330

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.
@@ -1,4 +1,4 @@
1
- import { DeleteServerType, ResponsePaginationType, ResponseServerType } from "../public/types";
1
+ import { 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<ResponseServerType<DiscountServerResponse>>;
27
+ export declare const _createDiscount: (basePath: string, token: string, data: any) => Promise<GenericResponseServerType<DiscountServerResponse>>;
28
28
  export declare const _updateDiscount: (basePath: string, token: string, discountId: string, data: any) => Promise<ResponseServerType<DiscountServerResponse>>;
29
- export declare const _deleteDiscount: (basePath: string, token: string, discountId: string) => Promise<DeleteServerType>;
29
+ export declare const _deleteDiscount: (basePath: string, token: string, discountId: string) => Promise<string>;
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>;
@@ -128,11 +128,12 @@ export type PublicEventsContextType = {
128
128
  selectPublicEvent: (selectedPublicEvent: PublicEventItem) => void;
129
129
  } & PublicEventsProviderState;
130
130
  export type ResponseServerType<T> = {
131
- status: string | number;
131
+ status?: string | number;
132
132
  data: T;
133
133
  };
134
- export type DeleteServerType = {
134
+ export type GenericResponseServerType<T> = {
135
135
  status: string | number;
136
- message?: string;
137
- message_code?: number;
136
+ result: {
137
+ data: T;
138
+ };
138
139
  };
@@ -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 { 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<DeleteServerType>;
149
+ deleteDiscount: (basePath: string, token: string, discountId: string) => Promise<string>;
150
150
  updateDiscount: (basePath: string, token: string, discountId: string, data: any) => Promise<ResponseServerType<DiscountServerResponse>>;
151
- createDiscount: (basePath: string, token: string, data: any) => Promise<ResponseServerType<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<DeleteServerType>;
359
+ deleteDiscount: (discountId: string) => Promise<string>;
360
360
  updateDiscount: (discountId: string, data: any) => Promise<ResponseServerType<DiscountServerResponse>>;
361
- createDiscount: (data: any) => Promise<ResponseServerType<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>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hubs101/js-api-skd-client",
3
- "version": "1.0.10328",
3
+ "version": "1.0.10330",
4
4
  "author": "Liveware",
5
5
  "scripts": {
6
6
  "test": "jest --config jestconfig.json",