@hubs101/js-api-skd-client 1.0.10329 → 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, GenericResponseServerType, 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[]>;
@@ -25,8 +25,8 @@ export declare const _updateTicket: (basePath: string, token: string, ticketId:
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
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>;
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<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,7 +128,7 @@ 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
134
  export type GenericResponseServerType<T> = {
@@ -137,8 +137,3 @@ export type GenericResponseServerType<T> = {
137
137
  data: T;
138
138
  };
139
139
  };
140
- export type DeleteServerType = {
141
- status: string | number;
142
- message?: string;
143
- message_code?: number;
144
- };
@@ -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, GenericResponseServerType, 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,8 +146,8 @@ 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>;
150
- updateDiscount: (basePath: string, token: string, discountId: string, data: any) => Promise<GenericResponseServerType<DiscountServerResponse>>;
149
+ deleteDiscount: (basePath: string, token: string, discountId: string) => Promise<string>;
150
+ updateDiscount: (basePath: string, token: string, discountId: string, data: any) => Promise<ResponseServerType<DiscountServerResponse>>;
151
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>;
@@ -356,8 +356,8 @@ 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>;
360
- updateDiscount: (discountId: string, data: any) => Promise<GenericResponseServerType<DiscountServerResponse>>;
359
+ deleteDiscount: (discountId: string) => Promise<string>;
360
+ updateDiscount: (discountId: string, data: any) => Promise<ResponseServerType<DiscountServerResponse>>;
361
361
  createDiscount: (data: any) => Promise<GenericResponseServerType<DiscountServerResponse>>;
362
362
  fetchEventDiscounts: (eventId: string) => Promise<ResponsePaginationType<DiscountServerResponse>>;
363
363
  deleteTicket: (ticketId: string) => Promise<any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hubs101/js-api-skd-client",
3
- "version": "1.0.10329",
3
+ "version": "1.0.10330",
4
4
  "author": "Liveware",
5
5
  "scripts": {
6
6
  "test": "jest --config jestconfig.json",