sm-types 1.8.4 → 1.8.6

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/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "author": "Smartrips",
4
4
  "license": "ISC",
5
5
  "keywords": [],
6
- "version": "1.8.4",
6
+ "version": "1.8.6",
7
7
  "description": "",
8
8
  "repository": {
9
9
  "type": "git",
@@ -1,4 +1,4 @@
1
- import { BookingStatus, OfferJSON, ServiceType } from "../../common";
1
+ import { BookingStatus, Nullable, OfferJSON, ServiceType } from "../../common";
2
2
  import { BookerParticipantType, EventInviteStatus, EventParticipantType, EventPrivacy, ParticipantioStatus } from "../enums";
3
3
  export type BasicCompanyEvent = {
4
4
  token: string;
@@ -15,8 +15,14 @@ export type BasicCompanyEvent = {
15
15
  updated_at: Date;
16
16
  created_at: Date;
17
17
  };
18
- export type TravelInfo = {
19
- travel_token: string;
18
+ export type BasicTravelInfo = {
19
+ token: string;
20
+ name: Nullable<string>;
21
+ startDate: Date;
22
+ endDate: Date;
23
+ bookerToken: string;
24
+ };
25
+ export type CompleteTravelInfo = BasicTravelInfo & {
20
26
  offers: OfferInfo[];
21
27
  };
22
28
  export type OfferInfo = {
@@ -51,6 +57,6 @@ export type BasicViewerInfo = {
51
57
  is_organizer: boolean;
52
58
  };
53
59
  export type CompleteViewerInfo = BasicViewerInfo & {
54
- have_travel: boolean;
60
+ travel_info: Nullable<BasicTravelInfo>;
55
61
  booker_type: BookerParticipantType;
56
62
  };
@@ -1,5 +1,5 @@
1
1
  import { BookingFeeStatus, NavanStatus, Nullable } from "../../common";
2
- import { BasicCompanyEvent, BasicEventParticipant, BasicEventUpdate, BasicViewerInfo, CompleteViewerInfo, TravelInfo } from "../common";
2
+ import { BasicCompanyEvent, BasicEventParticipant, BasicEventUpdate, BasicViewerInfo, CompleteViewerInfo, CompleteTravelInfo } from "../common";
3
3
  import { CompanyEventStatus, EventInviteStatus } from "../enums";
4
4
  export type AcceptCompanyEventDto = BasicEventParticipant;
5
5
  export type CreateCompanyEventDto = BasicCompanyEvent;
@@ -57,7 +57,7 @@ export type GetUserCompanyEventDto = BasicCompanyEvent & {
57
57
  export type InviteEventParticipantsDto = BasicEventParticipant[];
58
58
  export type ListEventParticipantsDto = (BasicEventParticipant & {
59
59
  can_be_organizer: boolean;
60
- travel_Info: Nullable<TravelInfo>;
60
+ travel_info: Nullable<CompleteTravelInfo>;
61
61
  })[];
62
62
  export type ListEventUpdatesDto = (BasicEventUpdate & {
63
63
  creator_name: string;
@@ -1,3 +1,3 @@
1
1
  export { BookerParticipantType, CompanyEventStatus, EventInviteStatus, EventParticipantType, EventPrivacy, ParticipantioStatus } from "./enums";
2
2
  export { CreateCompanyEventDto, AcceptCompanyEventDto, CreateEventTravelDto, CreateEventUpdateDto, EditCompanyEventDto, EditEventParticipantDto, GetUserCompanyEventDto, InviteEventParticipantsDto, ListEventParticipantsDto, ListEventUpdatesDto, ListUserCompanyEventsDto, SearchEventTargetsDto, EditEventUpdateDto, DeclineCompanyEvenDto } from './dtos/response';
3
- export { BasicCompanyEvent, TravelInfo, OfferInfo, BasicEventParticipant, BasicViewerInfo, CompleteViewerInfo } from './common';
3
+ export { BasicCompanyEvent, CompleteTravelInfo, BasicTravelInfo, OfferInfo, BasicEventParticipant, BasicViewerInfo, CompleteViewerInfo } from './common';