sm-types 1.8.2 → 1.8.3
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
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { BookingStatus, OfferJSON, ServiceType } from "../../common";
|
|
2
|
+
import { BookerParticipantType, EventInviteStatus, EventParticipantType, EventPrivacy, ParticipantioStatus } from "../enums";
|
|
3
|
+
export type BasicCompanyEvent = {
|
|
4
|
+
token: string;
|
|
5
|
+
client_token: string;
|
|
6
|
+
privacy: EventPrivacy;
|
|
7
|
+
name: string;
|
|
8
|
+
description: string;
|
|
9
|
+
start_date: Date;
|
|
10
|
+
end_date: Date;
|
|
11
|
+
city: string;
|
|
12
|
+
state: string;
|
|
13
|
+
country: string;
|
|
14
|
+
active: boolean;
|
|
15
|
+
updated_at: Date;
|
|
16
|
+
created_at: Date;
|
|
17
|
+
};
|
|
18
|
+
export type TravelInfo = {
|
|
19
|
+
travel_token: string;
|
|
20
|
+
offers: OfferInfo[];
|
|
21
|
+
};
|
|
22
|
+
export type OfferInfo = {
|
|
23
|
+
offer_token: string;
|
|
24
|
+
status: BookingStatus;
|
|
25
|
+
type: ServiceType;
|
|
26
|
+
offer: OfferJSON;
|
|
27
|
+
};
|
|
28
|
+
export type BasicEventParticipant = {
|
|
29
|
+
token: string;
|
|
30
|
+
event_token: string;
|
|
31
|
+
user_token: string;
|
|
32
|
+
invite_status: EventInviteStatus;
|
|
33
|
+
participant_type: EventParticipantType;
|
|
34
|
+
updated_at: Date;
|
|
35
|
+
created_at: Date;
|
|
36
|
+
full_name: string;
|
|
37
|
+
email: string;
|
|
38
|
+
};
|
|
39
|
+
export type BasicEventUpdate = {
|
|
40
|
+
token: string;
|
|
41
|
+
event_token: string;
|
|
42
|
+
text: string;
|
|
43
|
+
on_top: boolean;
|
|
44
|
+
created_by: string;
|
|
45
|
+
active: boolean;
|
|
46
|
+
updated_at: Date;
|
|
47
|
+
created_at: Date;
|
|
48
|
+
};
|
|
49
|
+
export type BasicViewerInfo = {
|
|
50
|
+
participation_status: ParticipantioStatus;
|
|
51
|
+
is_organizer: boolean;
|
|
52
|
+
};
|
|
53
|
+
export type CompleteViewerInfo = BasicViewerInfo & {
|
|
54
|
+
have_travel: boolean;
|
|
55
|
+
booker_type: BookerParticipantType;
|
|
56
|
+
};
|
|
@@ -1,61 +1,10 @@
|
|
|
1
|
-
import { BookingFeeStatus,
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
token: string;
|
|
5
|
-
client_token: string;
|
|
6
|
-
privacy: EventPrivacy;
|
|
7
|
-
name: string;
|
|
8
|
-
description: string;
|
|
9
|
-
start_date: Date;
|
|
10
|
-
end_date: Date;
|
|
11
|
-
city: string;
|
|
12
|
-
state: string;
|
|
13
|
-
country: string;
|
|
14
|
-
active: boolean;
|
|
15
|
-
updated_at: Date;
|
|
16
|
-
created_at: Date;
|
|
17
|
-
};
|
|
18
|
-
type TravelInfo = {
|
|
19
|
-
travel_token: string;
|
|
20
|
-
offers: OfferInfo[];
|
|
21
|
-
};
|
|
22
|
-
type OfferInfo = {
|
|
23
|
-
offer_token: string;
|
|
24
|
-
status: BookingStatus;
|
|
25
|
-
type: ServiceType;
|
|
26
|
-
offer: OfferJSON;
|
|
27
|
-
};
|
|
28
|
-
type BasicEventParticipant = {
|
|
29
|
-
token: string;
|
|
30
|
-
event_token: string;
|
|
31
|
-
user_token: string;
|
|
32
|
-
invite_status: EventInviteStatus;
|
|
33
|
-
participant_type: EventParticipantType;
|
|
34
|
-
updated_at: Date;
|
|
35
|
-
created_at: Date;
|
|
36
|
-
full_name: string;
|
|
37
|
-
email: string;
|
|
38
|
-
};
|
|
39
|
-
type BasicEventUpdate = {
|
|
40
|
-
token: string;
|
|
41
|
-
event_token: string;
|
|
42
|
-
text: string;
|
|
43
|
-
on_top: boolean;
|
|
44
|
-
created_by: string;
|
|
45
|
-
active: boolean;
|
|
46
|
-
updated_at: Date;
|
|
47
|
-
created_at: Date;
|
|
48
|
-
};
|
|
49
|
-
type BasicViewerInfo = {
|
|
50
|
-
participation_status: ParticipantioStatus;
|
|
51
|
-
is_organizer: boolean;
|
|
52
|
-
};
|
|
53
|
-
type CompleteViewerInfo = BasicViewerInfo & {
|
|
54
|
-
have_travel: boolean;
|
|
55
|
-
booker_type: BookerParticipantType;
|
|
56
|
-
};
|
|
1
|
+
import { BookingFeeStatus, NavanStatus, Nullable } from "../../common";
|
|
2
|
+
import { BasicCompanyEvent, BasicEventParticipant, BasicEventUpdate, BasicViewerInfo, CompleteViewerInfo, TravelInfo } from "../common";
|
|
3
|
+
import { CompanyEventStatus, EventInviteStatus } from "../enums";
|
|
57
4
|
export type AcceptCompanyEventDto = BasicEventParticipant;
|
|
58
5
|
export type CreateCompanyEventDto = BasicCompanyEvent;
|
|
6
|
+
export type DeclineCompanyEvenDto = BasicEventParticipant;
|
|
7
|
+
export type EditEventUpdateDto = BasicEventUpdate;
|
|
59
8
|
export type CreateEventTravelDto = {
|
|
60
9
|
travel_token: string;
|
|
61
10
|
traveler_token: string;
|
|
@@ -105,7 +54,7 @@ export type GetUserCompanyEventDto = BasicCompanyEvent & {
|
|
|
105
54
|
is_deleteable: boolean;
|
|
106
55
|
viewer_info: CompleteViewerInfo;
|
|
107
56
|
};
|
|
108
|
-
export type InviteEventParticipantsDto = BasicEventParticipant;
|
|
57
|
+
export type InviteEventParticipantsDto = BasicEventParticipant[];
|
|
109
58
|
export type ListEventParticipantsDto = (BasicEventParticipant & {
|
|
110
59
|
can_be_organizer: boolean;
|
|
111
60
|
travel_Info: Nullable<TravelInfo>;
|
|
@@ -124,4 +73,3 @@ export type SearchEventTargetsDto = {
|
|
|
124
73
|
invite_status: EventInviteStatus | 'UNINVITED';
|
|
125
74
|
travel_token: Nullable<string>;
|
|
126
75
|
}[];
|
|
127
|
-
export {};
|
|
@@ -1,2 +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, } from './dtos/response';
|
|
3
|
+
export { BasicCompanyEvent, TravelInfo, OfferInfo, BasicEventParticipant, BasicViewerInfo, CompleteViewerInfo } from './common';
|