sm-types 1.8.0 → 1.8.2

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/common/enums.d.ts CHANGED
@@ -32,6 +32,7 @@ export declare enum JustificationPolicy {
32
32
  }
33
33
  export declare enum IndicationRewardStatus {
34
34
  UNAVAILABLE = "UNAVAILABLE",
35
+ ALMOST_READY = "ALMOST_READY",
35
36
  READY = "READY",
36
37
  RESERVED = "RESERVED",
37
38
  USED = "USED",
@@ -40,5 +41,38 @@ export declare enum IndicationRewardStatus {
40
41
  export declare enum IndicationStatus {
41
42
  IN_NEGOTIATION = "IN_NEGOTIATION",
42
43
  CONVERTED = "CONVERTED",
43
- REWARD_REACHED = "REWARD_REACHED"
44
+ REWARD_REACHED = "REWARD_REACHED",
45
+ NOT_REACHED = "NOT_REACHED"
46
+ }
47
+ export declare enum EmailType {
48
+ INVITE_EVENT = "INVITE_EVENT",
49
+ UPDATE_EVENT = "UPDATE_EVENT"
50
+ }
51
+ export declare enum BookingFeeStatus {
52
+ NONE = "NONE",
53
+ UNITIATED = "UNITIATED",
54
+ PENDING = "PENDING",
55
+ PAID = "PAID",
56
+ FAILED = "FAILED"
57
+ }
58
+ export declare enum NavanStatus {
59
+ UNITIATED = "UNITIATED",
60
+ EXPORTED = "EXPORTED",
61
+ FAILED = "FAILED"
62
+ }
63
+ export declare enum BookingStatus {
64
+ UNITIATED = "UNITIATED",
65
+ PENDING = "PENDING",
66
+ FAILED = "FAILED",
67
+ DROPPED = "DROPPED",
68
+ EMITTED = "EMITTED"
69
+ }
70
+ export declare enum ServiceType {
71
+ FLIGHT = "flight",
72
+ HOTEL = "hotel",
73
+ CAR = "car",
74
+ BUS = "bus",
75
+ RIDE = "ride",
76
+ SMARTRIPS = "smartrips",
77
+ INSURANCE = "insurance"
44
78
  }
package/common/enums.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.IndicationStatus = exports.IndicationRewardStatus = exports.JustificationPolicy = exports.CabinClass = exports.DealOwnerEnum = exports.SuppliersEnum = exports.RentabilityTypeEnum = exports.TravelCustomFieldEnum = void 0;
3
+ exports.ServiceType = exports.BookingStatus = exports.NavanStatus = exports.BookingFeeStatus = exports.EmailType = exports.IndicationStatus = exports.IndicationRewardStatus = exports.JustificationPolicy = exports.CabinClass = exports.DealOwnerEnum = exports.SuppliersEnum = exports.RentabilityTypeEnum = exports.TravelCustomFieldEnum = void 0;
4
4
  var TravelCustomFieldEnum;
5
5
  (function (TravelCustomFieldEnum) {
6
6
  TravelCustomFieldEnum["TRIP_PURPOSE"] = "TRIP_PURPOSE";
@@ -42,6 +42,7 @@ var JustificationPolicy;
42
42
  var IndicationRewardStatus;
43
43
  (function (IndicationRewardStatus) {
44
44
  IndicationRewardStatus["UNAVAILABLE"] = "UNAVAILABLE";
45
+ IndicationRewardStatus["ALMOST_READY"] = "ALMOST_READY";
45
46
  IndicationRewardStatus["READY"] = "READY";
46
47
  IndicationRewardStatus["RESERVED"] = "RESERVED";
47
48
  IndicationRewardStatus["USED"] = "USED";
@@ -52,4 +53,42 @@ var IndicationStatus;
52
53
  IndicationStatus["IN_NEGOTIATION"] = "IN_NEGOTIATION";
53
54
  IndicationStatus["CONVERTED"] = "CONVERTED";
54
55
  IndicationStatus["REWARD_REACHED"] = "REWARD_REACHED";
56
+ IndicationStatus["NOT_REACHED"] = "NOT_REACHED";
55
57
  })(IndicationStatus = exports.IndicationStatus || (exports.IndicationStatus = {}));
58
+ var EmailType;
59
+ (function (EmailType) {
60
+ EmailType["INVITE_EVENT"] = "INVITE_EVENT";
61
+ EmailType["UPDATE_EVENT"] = "UPDATE_EVENT";
62
+ })(EmailType = exports.EmailType || (exports.EmailType = {}));
63
+ var BookingFeeStatus;
64
+ (function (BookingFeeStatus) {
65
+ BookingFeeStatus["NONE"] = "NONE";
66
+ BookingFeeStatus["UNITIATED"] = "UNITIATED";
67
+ BookingFeeStatus["PENDING"] = "PENDING";
68
+ BookingFeeStatus["PAID"] = "PAID";
69
+ BookingFeeStatus["FAILED"] = "FAILED";
70
+ })(BookingFeeStatus = exports.BookingFeeStatus || (exports.BookingFeeStatus = {}));
71
+ var NavanStatus;
72
+ (function (NavanStatus) {
73
+ NavanStatus["UNITIATED"] = "UNITIATED";
74
+ NavanStatus["EXPORTED"] = "EXPORTED";
75
+ NavanStatus["FAILED"] = "FAILED";
76
+ })(NavanStatus = exports.NavanStatus || (exports.NavanStatus = {}));
77
+ var BookingStatus;
78
+ (function (BookingStatus) {
79
+ BookingStatus["UNITIATED"] = "UNITIATED";
80
+ BookingStatus["PENDING"] = "PENDING";
81
+ BookingStatus["FAILED"] = "FAILED";
82
+ BookingStatus["DROPPED"] = "DROPPED";
83
+ BookingStatus["EMITTED"] = "EMITTED";
84
+ })(BookingStatus = exports.BookingStatus || (exports.BookingStatus = {}));
85
+ var ServiceType;
86
+ (function (ServiceType) {
87
+ ServiceType["FLIGHT"] = "flight";
88
+ ServiceType["HOTEL"] = "hotel";
89
+ ServiceType["CAR"] = "car";
90
+ ServiceType["BUS"] = "bus";
91
+ ServiceType["RIDE"] = "ride";
92
+ ServiceType["SMARTRIPS"] = "smartrips";
93
+ ServiceType["INSURANCE"] = "insurance";
94
+ })(ServiceType = exports.ServiceType || (exports.ServiceType = {}));
package/common/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import { EventPrivacy } from '../sm-company-events/enums';
1
2
  import { CabinClass, JustificationPolicy } from './enums';
2
3
  import * as SharedTypes from './shared';
3
4
  export * from './enums';
@@ -41,3 +42,399 @@ export declare const CABIN_CLASS_TYPES: {
41
42
  readonly value: "first";
42
43
  };
43
44
  };
45
+ export type OfferJSON = IBusJSON | ICarJSON | IHotelJSON | IRideJSON | IFlightJSON;
46
+ export interface IFlightJSON {
47
+ price: number;
48
+ search: IOfferSearch;
49
+ international: boolean;
50
+ inbound?: IFlightBound;
51
+ outbound: IFlightBound;
52
+ stopType: string;
53
+ cabinClass: string;
54
+ itineraryId: number;
55
+ travelIdentification: string;
56
+ }
57
+ export interface IFlightBound {
58
+ type: string;
59
+ stops: IStop[];
60
+ family: string;
61
+ origin: IAirportLocale;
62
+ arrival: string;
63
+ baggage: boolean;
64
+ carrier: ICarrier;
65
+ daysDiff: number;
66
+ segments: IFlightSegment[];
67
+ departure: string;
68
+ cabinClass: string;
69
+ totalStops: number;
70
+ arrivalHour: string;
71
+ destination: IAirportLocale;
72
+ baggagePieces: number;
73
+ baggageWeight: number;
74
+ departureHour: string;
75
+ durationHours: string;
76
+ arrivalWeekDay?: string;
77
+ arrivalTextDate?: string;
78
+ durationMinutes: number;
79
+ departureWeekDay?: string;
80
+ departureTextDate?: string;
81
+ }
82
+ export interface IFlightSegment {
83
+ family: string;
84
+ origin: IAirportLocale;
85
+ arrival: string;
86
+ baggage: boolean;
87
+ carrier: ICarrier;
88
+ seller: ICarrier;
89
+ daysDiff: number;
90
+ fareInfo: IFareInfo;
91
+ departure: string;
92
+ cabinClass: string;
93
+ familyCode: string;
94
+ flightCode: string;
95
+ arrivalHour: string;
96
+ destination: IAirportLocale;
97
+ flightNumber: number;
98
+ arrivalMoment?: string;
99
+ baggagePieces: number;
100
+ baggageWeight: number;
101
+ departureHour: string;
102
+ durationHours: string;
103
+ arrivalWeekDay?: string;
104
+ arrivalTextDate?: string;
105
+ arrivalDateTime?: string;
106
+ departureMoment?: string;
107
+ durationMinutes: number;
108
+ departureWeekDay?: string;
109
+ departureTextDate?: string;
110
+ departureDateTime?: string;
111
+ }
112
+ export interface IAirportLocale {
113
+ code: string;
114
+ name: string;
115
+ type: string;
116
+ }
117
+ export interface ICarrier {
118
+ code: string;
119
+ name: string;
120
+ imageUrl: string;
121
+ }
122
+ export interface IFareInfo {
123
+ base: string;
124
+ class: string;
125
+ flightNumber: number;
126
+ }
127
+ export interface IStop {
128
+ code: string;
129
+ long: boolean;
130
+ name: string;
131
+ type: string;
132
+ daysDiff: number;
133
+ airportChange: boolean;
134
+ durationHours: string;
135
+ durationMinutes: number;
136
+ }
137
+ export interface IOfferSearch {
138
+ initialDate: string | Date;
139
+ initialHour?: string;
140
+ endDate?: string | Date;
141
+ endHour?: string;
142
+ }
143
+ export interface IHotelJSON {
144
+ search: IOfferSearch;
145
+ id: number;
146
+ city: string;
147
+ name: string;
148
+ type: {
149
+ id: string;
150
+ name: string;
151
+ };
152
+ infos: {
153
+ id: number;
154
+ supplier: string;
155
+ }[];
156
+ checkin: string;
157
+ checkout: string;
158
+ totalGuests?: number;
159
+ price: number;
160
+ stars: number;
161
+ roomId: number;
162
+ address: string;
163
+ latitude: number;
164
+ roomName: string;
165
+ supplier: {
166
+ name: string;
167
+ room_id: number;
168
+ hotel_id: string | number;
169
+ search_token: string;
170
+ };
171
+ checkInHour?: string;
172
+ checkOutHour?: string;
173
+ amenities: {
174
+ refund: boolean;
175
+ breakfast: boolean;
176
+ };
177
+ longitude: number;
178
+ prePayment: boolean;
179
+ nightlyPrice: number;
180
+ mainPictureUrl: string;
181
+ freeCancelationUntil: Date;
182
+ }
183
+ export interface ICarJSON {
184
+ search: IOfferSearch;
185
+ pickup: {
186
+ date: string;
187
+ time: string;
188
+ address: string;
189
+ latitude: number;
190
+ longitude: number;
191
+ storeCode: number;
192
+ storeName: string;
193
+ };
194
+ dropoff: {
195
+ date: string;
196
+ time: string;
197
+ address: string;
198
+ latitude: number;
199
+ longitude: number;
200
+ storeCode: number;
201
+ storeName: string;
202
+ };
203
+ carDetails: {
204
+ type: string;
205
+ class: string;
206
+ image: string;
207
+ features: {
208
+ abs: unknown;
209
+ air: boolean;
210
+ doors: number;
211
+ airbag: unknown;
212
+ baggages: unknown;
213
+ steering: unknown;
214
+ passengers: number;
215
+ transmission: string;
216
+ };
217
+ sippCode: string;
218
+ modelTitle: string;
219
+ modelDescription: string;
220
+ supplierCarGroupCode: string;
221
+ };
222
+ supplierInfo: {
223
+ id: number;
224
+ supplier: string;
225
+ };
226
+ rentalDetails: {
227
+ id: string;
228
+ logo: string;
229
+ name: string;
230
+ };
231
+ contractDetails: {
232
+ features: {
233
+ ali: boolean;
234
+ ldw: boolean;
235
+ unlimitedKm: boolean;
236
+ mandatoryDriverCreditCard: number;
237
+ };
238
+ feesInfo: any[];
239
+ dailyInfo: {
240
+ total: unknown;
241
+ discount: number;
242
+ netPrice: unknown;
243
+ quantity: unknown;
244
+ rawPrice: unknown;
245
+ };
246
+ extraHoursInfo: {
247
+ total: number;
248
+ discount: number;
249
+ netPrice: number;
250
+ quantity: number;
251
+ rawPrice: number;
252
+ };
253
+ finalPriceInfo: {
254
+ discount: number;
255
+ netTotal: number;
256
+ rawTotal: number;
257
+ };
258
+ additionalsInfo: any[];
259
+ freeCancelationUntil: Date;
260
+ };
261
+ }
262
+ export interface IFlightSearchMetadata {
263
+ average_price: number;
264
+ cheapest_fare: {
265
+ family: string;
266
+ fare_basis: string;
267
+ class: string;
268
+ baggage_pieces: number;
269
+ price: number;
270
+ };
271
+ }
272
+ export interface IHotelSearchMetadata {
273
+ favourite_average_nightly_price: number;
274
+ selected_hotel_offers_quantity: number;
275
+ selected_hotel_average_nightly_price: number;
276
+ selected_hotel_cheapest_offer: {
277
+ has_negotiation: boolean;
278
+ has_breakfast: boolean;
279
+ nightly_price: number;
280
+ price: number;
281
+ room_name: number;
282
+ };
283
+ }
284
+ export interface IBusJSON {
285
+ search: IOfferSearch;
286
+ returnTrip: IBusTrip;
287
+ departureTrip: IBusTrip;
288
+ }
289
+ export interface IRideJSON {
290
+ search: IOfferSearch;
291
+ }
292
+ export interface IBusTrip {
293
+ id: number;
294
+ to: string;
295
+ from: string;
296
+ type: string;
297
+ parts: IBusTripPart[];
298
+ price: number;
299
+ arrival: string;
300
+ duration: string;
301
+ departure: string;
302
+ arrivalHour: string;
303
+ waitingTime: string;
304
+ departureHour: string;
305
+ originalPrice: string;
306
+ selectedPrice: number;
307
+ arrivalWeekDay: string;
308
+ referencePrice: string;
309
+ departureWeekDay: string;
310
+ supplierCommission: number;
311
+ discountPercentageApplied: number;
312
+ roundedDiscountPercentageApplied: number;
313
+ }
314
+ export interface IBusTripPart {
315
+ bus: {
316
+ id: string;
317
+ name: string;
318
+ };
319
+ price: number;
320
+ tripId: string;
321
+ arrival: {
322
+ place: {
323
+ id: number;
324
+ city: string;
325
+ name: string;
326
+ slug: string;
327
+ state: string;
328
+ country: string;
329
+ terminal: string;
330
+ };
331
+ schedule: {
332
+ date: string;
333
+ time: string;
334
+ timezone: string;
335
+ };
336
+ };
337
+ lowFare: boolean;
338
+ currency: string;
339
+ duration: string;
340
+ metadata: any;
341
+ departure: {
342
+ place: {
343
+ id: number;
344
+ city: string;
345
+ name: string;
346
+ slug: string;
347
+ state: string;
348
+ country: string;
349
+ terminal: string;
350
+ };
351
+ schedule: {
352
+ date: string;
353
+ time: string;
354
+ timezone: string;
355
+ };
356
+ scheduleDateTime: number[];
357
+ };
358
+ boardingPass: boolean;
359
+ isReservable: boolean;
360
+ originalPrice: string;
361
+ serviceNumber: string;
362
+ travelCompany: {
363
+ id: string;
364
+ logo: string;
365
+ name: string;
366
+ slug: string;
367
+ };
368
+ availableSeats: number;
369
+ referencePrice: string;
370
+ departureDateTime: number[];
371
+ electronicBoardingPass: boolean;
372
+ }
373
+ export type EmailData = InviteEventEmailData | EventUpdateEmailData;
374
+ export type EventUpdateEmailData = {
375
+ event: {
376
+ token: string;
377
+ name: string;
378
+ privacy: EventPrivacy;
379
+ location: {
380
+ city: string;
381
+ state: string;
382
+ country: string;
383
+ };
384
+ startDate: Date;
385
+ endDate: Date;
386
+ };
387
+ creator: {
388
+ email: string;
389
+ firstName: string;
390
+ lastName: string;
391
+ };
392
+ eventUpdate: {
393
+ isModification: boolean;
394
+ text: string;
395
+ important: boolean;
396
+ };
397
+ participants: {
398
+ email: string;
399
+ fullName: string;
400
+ }[];
401
+ agency: {
402
+ name: string;
403
+ cnpj: string;
404
+ phone: Nullable<string>;
405
+ whatsapp: Nullable<string>;
406
+ email: string;
407
+ };
408
+ appUrl: string;
409
+ };
410
+ export type InviteEventEmailData = {
411
+ event: {
412
+ token: string;
413
+ name: string;
414
+ privacy: EventPrivacy;
415
+ location: {
416
+ city: string;
417
+ state: string;
418
+ country: string;
419
+ };
420
+ startDate: Date;
421
+ endDate: Date;
422
+ };
423
+ inviter: {
424
+ message: string;
425
+ email: string;
426
+ firstName: string;
427
+ lastName: string;
428
+ };
429
+ invitees: {
430
+ email: string;
431
+ }[];
432
+ agency: {
433
+ name: string;
434
+ cnpj: string;
435
+ phone: Nullable<string>;
436
+ whatsapp: Nullable<string>;
437
+ email: string;
438
+ };
439
+ appUrl: string;
440
+ };
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "author": "Smartrips",
4
4
  "license": "ISC",
5
5
  "keywords": [],
6
- "version": "1.8.0",
6
+ "version": "1.8.2",
7
7
  "description": "",
8
8
  "repository": {
9
9
  "type": "git",
@@ -0,0 +1,127 @@
1
+ import { BookingFeeStatus, BookingStatus, NavanStatus, Nullable, OfferJSON, ServiceType } from "../../common";
2
+ import { BookerParticipantType, CompanyEventStatus, EventInviteStatus, EventParticipantType, EventPrivacy, ParticipantioStatus } from "../enums";
3
+ 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
+ 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
+ };
57
+ export type AcceptCompanyEventDto = BasicEventParticipant;
58
+ export type CreateCompanyEventDto = BasicCompanyEvent;
59
+ export type CreateEventTravelDto = {
60
+ travel_token: string;
61
+ traveler_token: string;
62
+ booker_token: string;
63
+ client_token: string;
64
+ agency_token: string;
65
+ company_area_token?: string;
66
+ project_token?: string;
67
+ navan_status: NavanStatus;
68
+ navan_exported_at: Date | null;
69
+ cost_center_token?: string;
70
+ billing_profile_token: string;
71
+ copy_from?: string;
72
+ travel_name: string;
73
+ flight: boolean;
74
+ hotel: boolean;
75
+ car: boolean;
76
+ bus: boolean;
77
+ trip_purpose_token: string | null;
78
+ flight_purpose_token: string | null;
79
+ hotel_purpose_token: string | null;
80
+ active: boolean;
81
+ initialized: boolean;
82
+ travel_start: Date | string;
83
+ travel_end: Date | string;
84
+ advance_days: number;
85
+ status: number;
86
+ payment_transaction_id: string;
87
+ fee_value: number;
88
+ booking_fee_status: BookingFeeStatus;
89
+ booking_fee_credit_card_token: string | null;
90
+ fee_scheduled_at: Date;
91
+ fee_paid_at: Date;
92
+ copy_status: number;
93
+ friend_house_status: number;
94
+ created_at: Date;
95
+ updated_at: Date;
96
+ };
97
+ export type CreateEventUpdateDto = BasicEventUpdate & {
98
+ full_name: string;
99
+ email: string;
100
+ };
101
+ export type EditCompanyEventDto = BasicCompanyEvent;
102
+ export type EditEventParticipantDto = BasicEventParticipant;
103
+ export type GetUserCompanyEventDto = BasicCompanyEvent & {
104
+ status: CompanyEventStatus;
105
+ is_deleteable: boolean;
106
+ viewer_info: CompleteViewerInfo;
107
+ };
108
+ export type InviteEventParticipantsDto = BasicEventParticipant;
109
+ export type ListEventParticipantsDto = (BasicEventParticipant & {
110
+ can_be_organizer: boolean;
111
+ travel_Info: Nullable<TravelInfo>;
112
+ })[];
113
+ export type ListEventUpdatesDto = (BasicEventUpdate & {
114
+ creator_name: string;
115
+ creator_email: string;
116
+ })[];
117
+ export type ListUserCompanyEventsDto = (BasicCompanyEvent & {
118
+ viewer_info: BasicViewerInfo;
119
+ })[];
120
+ export type SearchEventTargetsDto = {
121
+ user_token: string;
122
+ email: string;
123
+ full_name: string;
124
+ invite_status: EventInviteStatus | 'UNINVITED';
125
+ travel_token: Nullable<string>;
126
+ }[];
127
+ export {};
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,29 @@
1
+ export declare enum EventPrivacy {
2
+ INVITED_ONLY = "INVITED_ONLY",
3
+ PUBLIC = "PUBLIC"
4
+ }
5
+ export declare enum EventInviteStatus {
6
+ PENDING = "PENDING",
7
+ ACCEPTED = "ACCEPTED",
8
+ DECLINED = "DECLINED"
9
+ }
10
+ export declare enum EventParticipantType {
11
+ ORGANIZER = "ORGANIZER",
12
+ TRAVELER = "TRAVELER"
13
+ }
14
+ export declare const enum CompanyEventStatus {
15
+ UPCOMING = "UPCOMING",
16
+ IN_PROGRESS = "IN_PROGRESS",
17
+ ENDED = "ENDED"
18
+ }
19
+ export declare enum ParticipantioStatus {
20
+ VIRTUAL_PENDING = "VIRTUAL_PENDING",
21
+ REALLY_PENDING = "REALLY_PENDING",
22
+ DECLINED = "DECLINED",
23
+ ACCEPTED = "ACCEPTED"
24
+ }
25
+ export declare enum BookerParticipantType {
26
+ FOR_ALL = "FOR_ALL",
27
+ SELF_ONLY = "SELF_ONLY",
28
+ CANNOT_BOOK = "CANNOT_BOOK"
29
+ }
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BookerParticipantType = exports.ParticipantioStatus = exports.EventParticipantType = exports.EventInviteStatus = exports.EventPrivacy = void 0;
4
+ var EventPrivacy;
5
+ (function (EventPrivacy) {
6
+ EventPrivacy["INVITED_ONLY"] = "INVITED_ONLY";
7
+ EventPrivacy["PUBLIC"] = "PUBLIC";
8
+ })(EventPrivacy = exports.EventPrivacy || (exports.EventPrivacy = {}));
9
+ var EventInviteStatus;
10
+ (function (EventInviteStatus) {
11
+ EventInviteStatus["PENDING"] = "PENDING";
12
+ EventInviteStatus["ACCEPTED"] = "ACCEPTED";
13
+ EventInviteStatus["DECLINED"] = "DECLINED";
14
+ })(EventInviteStatus = exports.EventInviteStatus || (exports.EventInviteStatus = {}));
15
+ var EventParticipantType;
16
+ (function (EventParticipantType) {
17
+ EventParticipantType["ORGANIZER"] = "ORGANIZER";
18
+ EventParticipantType["TRAVELER"] = "TRAVELER";
19
+ })(EventParticipantType = exports.EventParticipantType || (exports.EventParticipantType = {}));
20
+ var ParticipantioStatus;
21
+ (function (ParticipantioStatus) {
22
+ ParticipantioStatus["VIRTUAL_PENDING"] = "VIRTUAL_PENDING";
23
+ ParticipantioStatus["REALLY_PENDING"] = "REALLY_PENDING";
24
+ ParticipantioStatus["DECLINED"] = "DECLINED";
25
+ ParticipantioStatus["ACCEPTED"] = "ACCEPTED";
26
+ })(ParticipantioStatus = exports.ParticipantioStatus || (exports.ParticipantioStatus = {}));
27
+ var BookerParticipantType;
28
+ (function (BookerParticipantType) {
29
+ BookerParticipantType["FOR_ALL"] = "FOR_ALL";
30
+ BookerParticipantType["SELF_ONLY"] = "SELF_ONLY";
31
+ BookerParticipantType["CANNOT_BOOK"] = "CANNOT_BOOK";
32
+ })(BookerParticipantType = exports.BookerParticipantType || (exports.BookerParticipantType = {}));
@@ -0,0 +1,2 @@
1
+ export { BookerParticipantType, CompanyEventStatus, EventInviteStatus, EventParticipantType, EventPrivacy, ParticipantioStatus } from "./enums";
2
+ export { CreateCompanyEventDto, AcceptCompanyEventDto, CreateEventTravelDto, CreateEventUpdateDto, EditCompanyEventDto, EditEventParticipantDto, GetUserCompanyEventDto, InviteEventParticipantsDto, ListEventParticipantsDto, ListEventUpdatesDto, ListUserCompanyEventsDto, SearchEventTargetsDto, } from './dtos/response';
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ParticipantioStatus = exports.EventPrivacy = exports.EventParticipantType = exports.EventInviteStatus = exports.BookerParticipantType = void 0;
4
+ var enums_1 = require("./enums");
5
+ Object.defineProperty(exports, "BookerParticipantType", { enumerable: true, get: function () { return enums_1.BookerParticipantType; } });
6
+ Object.defineProperty(exports, "EventInviteStatus", { enumerable: true, get: function () { return enums_1.EventInviteStatus; } });
7
+ Object.defineProperty(exports, "EventParticipantType", { enumerable: true, get: function () { return enums_1.EventParticipantType; } });
8
+ Object.defineProperty(exports, "EventPrivacy", { enumerable: true, get: function () { return enums_1.EventPrivacy; } });
9
+ Object.defineProperty(exports, "ParticipantioStatus", { enumerable: true, get: function () { return enums_1.ParticipantioStatus; } });