@tripian/model 4.2.0 → 5.0.0

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.
Files changed (129) hide show
  1. package/api/{v3 → v4}/enums/BOOKING_PRODUCT_INFO.d.ts +0 -0
  2. package/api/v4/enums/OFFER_CURRENCY.d.ts +4 -0
  3. package/api/v4/enums/OFFER_RECEIVE_METHOD.d.ts +4 -0
  4. package/api/v4/enums/OFFER_STATUS.d.ts +5 -0
  5. package/api/v4/enums/OFFER_TYPE.d.ts +5 -0
  6. package/api/{v3 → v4}/enums/POI_CATEGORY_GROUP.d.ts +0 -0
  7. package/api/v4/enums/PRODUCT_TYPE_NAME.d.ts +5 -0
  8. package/api/{v3 → v4}/enums/PROVIDER_ID.d.ts +0 -0
  9. package/api/{v3 → v4}/enums/PROVIDER_NAME.d.ts +0 -0
  10. package/api/v4/enums/QUESTIONS_CATEGORY.d.ts +5 -0
  11. package/api/v4/enums/REACTION.d.ts +5 -0
  12. package/api/{v3 → v4}/enums/REACTION_COMMENT.d.ts +0 -0
  13. package/api/v4/enums/RESPONSE_STATUS.d.ts +8 -0
  14. package/api/v4/enums/VERIFY_CHANNEL.d.ts +4 -0
  15. package/api/{v3 → v4}/index.d.ts +62 -39
  16. package/api/v4/models/Accommodation.d.ts +7 -0
  17. package/api/v4/models/Booking.d.ts +8 -0
  18. package/api/{v3 → v4}/models/BookingProduct.d.ts +7 -7
  19. package/api/v4/models/Business.d.ts +18 -0
  20. package/api/v4/models/BusinessInfoCategory.d.ts +6 -0
  21. package/api/v4/models/BusinessNameAddress.d.ts +4 -0
  22. package/api/v4/models/BusinessSearch.d.ts +7 -0
  23. package/api/v4/models/BusinessVerify.d.ts +4 -0
  24. package/api/{v3 → v4}/models/City.d.ts +6 -6
  25. package/api/{v3 → v4}/models/Companion.d.ts +3 -3
  26. package/api/{v3 → v4}/models/Continent.d.ts +1 -0
  27. package/api/{v3 → v4}/models/Coordinate.d.ts +0 -0
  28. package/api/{v3 → v4}/models/Country.d.ts +1 -1
  29. package/api/v4/models/Device.d.ts +7 -0
  30. package/api/v4/models/Favorite.d.ts +6 -0
  31. package/api/{v3 → v4}/models/HourFormat.d.ts +0 -0
  32. package/api/{v3 → v4}/models/Image.d.ts +2 -2
  33. package/api/{v3 → v4}/models/ImageOwner.d.ts +0 -1
  34. package/api/v4/models/Notification.d.ts +8 -0
  35. package/api/v4/models/NotificationMetaData.d.ts +4 -0
  36. package/api/v4/models/NotificationSettings.d.ts +6 -0
  37. package/api/v4/models/NotificationUnseen.d.ts +3 -0
  38. package/api/v4/models/Offer.d.ts +27 -0
  39. package/api/v4/models/OfferCustomer.d.ts +6 -0
  40. package/api/v4/models/OfferImage.d.ts +4 -0
  41. package/api/v4/models/OfferProductType.d.ts +7 -0
  42. package/api/{v3 → v4}/models/Plan.d.ts +4 -4
  43. package/api/{v3 → v4}/models/Poi.d.ts +23 -22
  44. package/api/{v3 → v4}/models/PoiCategory.d.ts +1 -1
  45. package/api/{v3 → v4}/models/PoiCategoryGroup.d.ts +0 -0
  46. package/api/v4/models/PoiCategoryParent.d.ts +5 -0
  47. package/api/{v3 → v4}/models/PoiReference.d.ts +4 -4
  48. package/api/v4/models/Question.d.ts +11 -0
  49. package/api/v4/models/QuestionAnswer.d.ts +6 -0
  50. package/api/{v3 → v4}/models/Recommendation.d.ts +2 -2
  51. package/api/{v3 → v4}/models/Step.d.ts +2 -4
  52. package/api/{v3/models/SubOption.d.ts → v4/models/SubAnswer.d.ts} +1 -1
  53. package/api/{v3 → v4}/models/TasteItem.d.ts +4 -3
  54. package/api/v4/models/TimeFrame.d.ts +4 -0
  55. package/api/{v3 → v4}/models/Token.d.ts +1 -1
  56. package/api/v4/models/TokenPayload.d.ts +28 -0
  57. package/api/v4/models/TokenRefresh.d.ts +5 -0
  58. package/api/{v3 → v4}/models/TopTen.d.ts +1 -1
  59. package/api/{v3 → v4}/models/Trip.d.ts +2 -2
  60. package/api/v4/models/TripProfile.d.ts +13 -0
  61. package/api/{v3 → v4}/models/TripReference.d.ts +4 -4
  62. package/api/v4/models/User.d.ts +6 -0
  63. package/api/v4/models/UserReaction.d.ts +9 -0
  64. package/api/{v3 → v4}/models/UserReservation.d.ts +5 -5
  65. package/api/v4/models/UserResetPassword.d.ts +6 -0
  66. package/api/{v3 → v4}/requests/CompanionRequest.d.ts +3 -3
  67. package/api/v4/requests/LoginRequest.d.ts +6 -0
  68. package/api/v4/requests/OfferAddRequest.d.ts +22 -0
  69. package/api/v4/requests/OfferRequest.d.ts +9 -0
  70. package/api/v4/requests/PlanUpdateRequest.d.ts +5 -0
  71. package/api/v4/requests/PoisRequest.d.ts +16 -0
  72. package/api/{v3 → v4}/requests/PoisRequestCoordinate.d.ts +2 -3
  73. package/api/{v3 → v4}/requests/PoisRequestMustTry.d.ts +1 -1
  74. package/api/{v3 → v4}/requests/PoisRequestName.d.ts +2 -2
  75. package/api/v4/requests/RegisterRequest.d.ts +11 -0
  76. package/api/v4/requests/TokenRefreshRequest.d.ts +5 -0
  77. package/api/v4/requests/UserReactionRequest.d.ts +7 -0
  78. package/api/{v3 → v4}/requests/UserReservationRequest.d.ts +3 -3
  79. package/api/v4/requests/UserUpdateRequest.d.ts +7 -0
  80. package/api/{v3 → v4}/responses/DataPayload.d.ts +0 -0
  81. package/api/v4/responses/DeleteUpdateResponse.d.ts +3 -0
  82. package/api/v4/responses/ErrorResponse.d.ts +7 -0
  83. package/api/v4/responses/Pagination.d.ts +7 -0
  84. package/api/{v3 → v4}/responses/SuccessResponse.d.ts +3 -1
  85. package/helper/index.d.ts +9 -9
  86. package/index.d.ts +1 -1
  87. package/index.js +1 -1
  88. package/index.js.map +1 -1
  89. package/package.json +2 -39
  90. package/providers/bb/SearchAccommodationResponse.d.ts +1 -1
  91. package/providers/bb/SearchCarRentResponse.d.ts +99 -0
  92. package/providers/bb/index.d.ts +1 -0
  93. package/api/v3/enums/REACTION.d.ts +0 -5
  94. package/api/v3/enums/TRIP_PROFILE_PACE.d.ts +0 -5
  95. package/api/v3/models/Accommodation.d.ts +0 -7
  96. package/api/v3/models/Booking.d.ts +0 -6
  97. package/api/v3/models/Favorite.d.ts +0 -6
  98. package/api/v3/models/Option.d.ts +0 -6
  99. package/api/v3/models/PoiCategoryParent.d.ts +0 -4
  100. package/api/v3/models/PoiHours.d.ts +0 -4
  101. package/api/v3/models/Question.d.ts +0 -10
  102. package/api/v3/models/StepHours.d.ts +0 -4
  103. package/api/v3/models/TasteItemImage.d.ts +0 -5
  104. package/api/v3/models/TokenPayload.d.ts +0 -13
  105. package/api/v3/models/TokenRefresh.d.ts +0 -5
  106. package/api/v3/models/TripProfile.d.ts +0 -14
  107. package/api/v3/models/User.d.ts +0 -8
  108. package/api/v3/models/UserProfile.d.ts +0 -4
  109. package/api/v3/models/UserReaction.d.ts +0 -12
  110. package/api/v3/requests/Device.d.ts +0 -7
  111. package/api/v3/requests/FavoriteRequest.d.ts +0 -4
  112. package/api/v3/requests/FavoriteUpdateRequest.d.ts +0 -4
  113. package/api/v3/requests/LoginRequestEmail.d.ts +0 -6
  114. package/api/v3/requests/LoginRequestTripHash.d.ts +0 -5
  115. package/api/v3/requests/LoginRequestUsername.d.ts +0 -5
  116. package/api/v3/requests/PlanUpdateRequest.d.ts +0 -5
  117. package/api/v3/requests/PoisRequest.d.ts +0 -12
  118. package/api/v3/requests/RecommendationRequest.d.ts +0 -14
  119. package/api/v3/requests/RegisterRequestEmail.d.ts +0 -8
  120. package/api/v3/requests/RegisterRequestUsername.d.ts +0 -7
  121. package/api/v3/requests/StepRequest.d.ts +0 -5
  122. package/api/v3/requests/StepUpdateRequest.d.ts +0 -4
  123. package/api/v3/requests/TokenRefreshRequest.d.ts +0 -3
  124. package/api/v3/requests/UserProfileRequest.d.ts +0 -4
  125. package/api/v3/requests/UserReactionRequest.d.ts +0 -8
  126. package/api/v3/requests/UserUpdateRequest.d.ts +0 -7
  127. package/api/v3/responses/ErrorResponse.d.ts +0 -6
  128. package/api/v3/responses/Pagination.d.ts +0 -9
  129. package/api/v3/responses/PaginationLinks.d.ts +0 -4
File without changes
@@ -0,0 +1,4 @@
1
+ export declare enum OFFER_CURRENCY {
2
+ USD = "USD",
3
+ CAD = "CAD"
4
+ }
@@ -0,0 +1,4 @@
1
+ export declare enum OFFER_RECEIVE_METHOD {
2
+ TAKEOUT = "take-out",
3
+ DINEIN = "dine-in"
4
+ }
@@ -0,0 +1,5 @@
1
+ export declare enum OFFER_STATUS {
2
+ ACTIVE = "active",
3
+ INACTIVE = "inactive",
4
+ ARCHİVE = "archive"
5
+ }
@@ -0,0 +1,5 @@
1
+ export declare enum OFFER_TYPE {
2
+ PERCENTAGE = "percentage",
3
+ AMOUNT = "amount",
4
+ QUANTITY = "quantity"
5
+ }
File without changes
@@ -0,0 +1,5 @@
1
+ export declare enum PRODUCT_TYPE_NAME {
2
+ FOOD = "food",
3
+ DRINK = "drink",
4
+ RETAIL = "retail"
5
+ }
File without changes
File without changes
@@ -0,0 +1,5 @@
1
+ export declare enum QUESTIONS_CATEGORY {
2
+ TRIP = "trip",
3
+ PROFILE = "profile",
4
+ COMPANION = "companion"
5
+ }
@@ -0,0 +1,5 @@
1
+ export declare enum REACTION {
2
+ THUMBS_UP = "Thumbs Up",
3
+ THUMBS_DOWN = "Thumbs Down",
4
+ NEUTRAL = "Neutral"
5
+ }
File without changes
@@ -0,0 +1,8 @@
1
+ export declare enum RESPONSE_STATUS {
2
+ SUCCESS = 200,
3
+ BAD_REQUEST = 400,
4
+ UNAUTHORIZED = 401,
5
+ FORBIDDEN = 403,
6
+ NOTFLICT = 409,
7
+ INTERNAL_SERVER_ERROR = 500
8
+ }
@@ -0,0 +1,4 @@
1
+ export declare enum VERIFY_CHANNEL {
2
+ SMS = "sms",
3
+ CALL = "call"
4
+ }
@@ -1,69 +1,92 @@
1
- export * from './models/Accommodation';
1
+ /**
2
+ * Enum
3
+ */
2
4
  export * from './enums/BOOKING_PRODUCT_INFO';
5
+ export * from './enums/OFFER_CURRENCY';
6
+ export * from './enums/OFFER_RECEIVE_METHOD';
7
+ export * from './enums/OFFER_STATUS';
8
+ export * from './enums/OFFER_TYPE';
9
+ export * from './enums/POI_CATEGORY_GROUP';
10
+ export * from './enums/PRODUCT_TYPE_NAME';
11
+ export * from './enums/PROVIDER_ID';
12
+ export * from './enums/PROVIDER_NAME';
13
+ export * from './enums/REACTION';
14
+ export * from './enums/REACTION_COMMENT';
15
+ export * from './enums/RESPONSE_STATUS';
16
+ export * from './enums/QUESTIONS_CATEGORY';
17
+ export * from './enums/VERIFY_CHANNEL';
18
+ /**
19
+ * Models
20
+ */
21
+ export * from './models/Accommodation';
3
22
  export * from './models/Booking';
4
23
  export * from './models/BookingProduct';
24
+ export * from './models/Business';
25
+ export * from './models/Business';
26
+ export * from './models/BusinessInfoCategory';
27
+ export * from './models/BusinessSearch';
28
+ export * from './models/BusinessVerify';
5
29
  export * from './models/City';
6
30
  export * from './models/Companion';
7
- export * from './requests/CompanionRequest';
8
31
  export * from './models/Continent';
9
32
  export * from './models/Coordinate';
10
33
  export * from './models/Country';
11
- export * from './responses/DataPayload';
12
- export * from './requests/Device';
13
- export * from './responses/ErrorResponse';
34
+ export * from './models/Device';
14
35
  export * from './models/Favorite';
15
- export * from './requests/FavoriteRequest';
16
- export * from './requests/FavoriteUpdateRequest';
17
36
  export * from './models/Image';
18
37
  export * from './models/ImageOwner';
19
- export * from './models/TopTen';
20
- export * from './requests/LoginRequestEmail';
21
- export * from './requests/LoginRequestTripHash';
22
- export * from './requests/LoginRequestUsername';
23
- export * from './models/Option';
24
- export * from './responses/Pagination';
25
- export * from './responses/PaginationLinks';
38
+ export * from './models/Notification';
39
+ export * from './models/NotificationMetaData';
40
+ export * from './models/NotificationSettings';
41
+ export * from './models/NotificationUnseen';
42
+ export * from './models/Offer';
43
+ export * from './models/OfferCustomer';
44
+ export * from './models/OfferImage';
45
+ export * from './models/OfferProductType';
26
46
  export * from './models/Plan';
27
- export * from './requests/PlanUpdateRequest';
28
47
  export * from './models/Poi';
29
- export * from './enums/POI_CATEGORY_GROUP';
30
48
  export * from './models/PoiCategory';
31
- export * from './models/PoiHours';
49
+ export * from './models/PoiCategoryParent';
32
50
  export * from './models/PoiReference';
33
- export * from './requests/PoisRequest';
34
- export * from './requests/PoisRequestCoordinate';
35
- export * from './requests/PoisRequestMustTry';
36
- export * from './requests/PoisRequestName';
37
- export * from './enums/PROVIDER_ID';
38
- export * from './enums/PROVIDER_NAME';
39
51
  export * from './models/Question';
40
- export * from './enums/REACTION_COMMENT';
41
- export * from './enums/REACTION';
42
52
  export * from './models/Recommendation';
43
- export * from './requests/RecommendationRequest';
44
- export * from './requests/RegisterRequestEmail';
45
- export * from './requests/RegisterRequestUsername';
46
53
  export * from './models/Step';
47
- export * from './models/StepHours';
48
- export * from './requests/StepRequest';
49
- export * from './requests/StepUpdateRequest';
50
- export * from './models/SubOption';
51
- export * from './responses/SuccessResponse';
54
+ export * from './models/SubAnswer';
52
55
  export * from './models/TasteItem';
53
- export * from './models/TasteItemImage';
56
+ export * from './models/TimeFrame';
54
57
  export * from './models/Token';
55
58
  export * from './models/TokenPayload';
56
59
  export * from './models/TokenRefresh';
57
- export * from './requests/TokenRefreshRequest';
58
- export * from './enums/TRIP_PROFILE_PACE';
60
+ export * from './models/TopTen';
59
61
  export * from './models/Trip';
60
62
  export * from './models/TripProfile';
61
63
  export * from './models/TripReference';
62
64
  export * from './models/User';
63
- export * from './models/UserProfile';
64
- export * from './requests/UserProfileRequest';
65
65
  export * from './models/UserReaction';
66
- export * from './requests/UserReactionRequest';
67
66
  export * from './models/UserReservation';
67
+ export * from './models/UserResetPassword';
68
+ /**
69
+ * Requests
70
+ */
71
+ export * from './requests/CompanionRequest';
72
+ export * from './requests/LoginRequest';
73
+ export * from './requests/OfferAddRequest';
74
+ export * from './requests/OfferRequest';
75
+ export * from './requests/PlanUpdateRequest';
76
+ export * from './requests/PoisRequest';
77
+ export * from './requests/PoisRequestCoordinate';
78
+ export * from './requests/PoisRequestMustTry';
79
+ export * from './requests/PoisRequestName';
80
+ export * from './requests/RegisterRequest';
81
+ export * from './requests/TokenRefreshRequest';
82
+ export * from './requests/UserReactionRequest';
68
83
  export * from './requests/UserReservationRequest';
69
84
  export * from './requests/UserUpdateRequest';
85
+ /**
86
+ * Responses
87
+ */
88
+ export * from './responses/DataPayload';
89
+ export * from './responses/DeleteUpdateResponse';
90
+ export * from './responses/ErrorResponse';
91
+ export * from './responses/Pagination';
92
+ export * from './responses/SuccessResponse';
@@ -0,0 +1,7 @@
1
+ import { Coordinate } from './Coordinate';
2
+ export declare type Accommodation = {
3
+ refID: string | null;
4
+ name: string | null;
5
+ address: string | null;
6
+ coordinate: Coordinate | null;
7
+ };
@@ -0,0 +1,8 @@
1
+ import { PROVIDER_ID } from '../enums/PROVIDER_ID';
2
+ import { PROVIDER_NAME } from '../enums/PROVIDER_NAME';
3
+ import { BookingProduct } from './BookingProduct';
4
+ export declare type Booking = {
5
+ providerId: PROVIDER_ID;
6
+ providerName: PROVIDER_NAME;
7
+ products: BookingProduct[];
8
+ };
@@ -1,13 +1,13 @@
1
1
  export declare type BookingProduct = {
2
- info?: string[] | null;
2
+ id: number;
3
+ title: string;
3
4
  currency: string | null;
4
- duration: string | null;
5
- id: string;
6
- image: string | null;
7
5
  price: number | null;
8
- price_description: string | null;
6
+ priceDescription: string | null;
7
+ image: string | null;
9
8
  rating: number | null;
10
- rating_count: number | null;
11
- title: string;
9
+ ratingCount: number | null;
10
+ duration: string | null;
12
11
  url: string | null;
12
+ info: string[];
13
13
  };
@@ -0,0 +1,18 @@
1
+ import { BusinessNameAddress } from './BusinessNameAddress';
2
+ import { Coordinate } from './Coordinate';
3
+ import { Image } from './Image';
4
+ export declare type Business = BusinessNameAddress & {
5
+ id: number;
6
+ name: string;
7
+ image: Image;
8
+ gallery: Image[];
9
+ coordinates: Coordinate;
10
+ businessHours: string | null;
11
+ price: number | null;
12
+ rating: number | null;
13
+ ratingCount: number | null;
14
+ web: string | null;
15
+ phone: string;
16
+ address: string;
17
+ isVerified: boolean;
18
+ };
@@ -0,0 +1,6 @@
1
+ export declare type BusinessInfoCategory = {
2
+ id: number;
3
+ name: string;
4
+ description: string | null;
5
+ parentCategoryId: number;
6
+ };
@@ -0,0 +1,4 @@
1
+ export declare type BusinessNameAddress = {
2
+ name: string;
3
+ address: string;
4
+ };
@@ -0,0 +1,7 @@
1
+ import { BusinessNameAddress } from './BusinessNameAddress';
2
+ export declare type BusinessSearch = {
3
+ business: BusinessNameAddress;
4
+ origin: string;
5
+ tripianPoiId?: number;
6
+ googlePlaceId?: string;
7
+ };
@@ -0,0 +1,4 @@
1
+ export declare type BusinessVerify = {
2
+ verificationStatus: string;
3
+ valid: boolean;
4
+ };
@@ -1,15 +1,15 @@
1
+ import { Image } from './Image';
1
2
  import { Coordinate } from './Coordinate';
2
3
  import { Country } from './Country';
3
- import { Image } from './Image';
4
4
  import { TasteItem } from './TasteItem';
5
5
  export declare type City = {
6
+ id: number;
7
+ name: string;
8
+ image: Image;
6
9
  boundary: number[];
7
10
  coordinate: Coordinate;
8
11
  country: Country;
9
- description: string;
10
- id: number;
11
- image: Image;
12
- name: string;
12
+ mustTries: TasteItem[];
13
+ description: string | null;
13
14
  status: boolean;
14
- tastes: TasteItem[];
15
15
  };
@@ -1,8 +1,8 @@
1
1
  export declare type Companion = {
2
- age: number | null;
3
- answers: number[];
4
2
  id: number;
5
- name: string;
6
3
  title: string;
4
+ name: string;
5
+ answers: number[];
6
+ age: number;
7
7
  trips: string[];
8
8
  };
@@ -1,3 +1,4 @@
1
1
  export declare type Continent = {
2
2
  name: string;
3
+ slug: string;
3
4
  };
File without changes
@@ -1,6 +1,6 @@
1
1
  import { Continent } from './Continent';
2
2
  export declare type Country = {
3
+ name: string;
3
4
  code: string;
4
5
  continent: Continent;
5
- name: string;
6
6
  };
@@ -0,0 +1,7 @@
1
+ export declare type Device = {
2
+ deviceId: string;
3
+ serviceToken: string | null;
4
+ deviceOs: string;
5
+ osVersion: string;
6
+ bundleId: string;
7
+ };
@@ -0,0 +1,6 @@
1
+ export declare type Favorite = {
2
+ id: number;
3
+ poiId: number;
4
+ cityId: number;
5
+ tripHash: string | null;
6
+ };
File without changes
@@ -1,7 +1,7 @@
1
1
  import { ImageOwner } from './ImageOwner';
2
2
  export declare type Image = {
3
- image_owner: ImageOwner | null;
3
+ width: number | null;
4
4
  height: number | null;
5
5
  url: string;
6
- width: number | null;
6
+ imageOwner: ImageOwner | null;
7
7
  };
@@ -1,5 +1,4 @@
1
1
  export declare type ImageOwner = {
2
- avatar: string | null;
3
2
  title: string | null;
4
3
  url: string | null;
5
4
  };
@@ -0,0 +1,8 @@
1
+ import { NotificationMetaData } from './NotificationMetaData';
2
+ export declare type Notification = {
3
+ notificationTitle: string;
4
+ notificationBody: string;
5
+ metadata: NotificationMetaData | null;
6
+ notificationType: string;
7
+ hasSeen: boolean;
8
+ };
@@ -0,0 +1,4 @@
1
+ export declare type NotificationMetaData = {
2
+ offerId: number;
3
+ poiId: number | null;
4
+ };
@@ -0,0 +1,6 @@
1
+ export declare type NotificationSettings = {
2
+ id: number;
3
+ name: string;
4
+ description: string | null;
5
+ checked: boolean;
6
+ };
@@ -0,0 +1,3 @@
1
+ export declare type NotificationUnseen = {
2
+ anyUnseenNotification: boolean;
3
+ };
@@ -0,0 +1,27 @@
1
+ import { OFFER_CURRENCY } from '../enums/OFFER_CURRENCY';
2
+ import { OFFER_STATUS } from '../enums/OFFER_STATUS';
3
+ import { OFFER_TYPE } from '../enums/OFFER_TYPE';
4
+ import { OfferImage } from './OfferImage';
5
+ import { OfferProductType } from './OfferProductType';
6
+ import { TimeFrame } from './TimeFrame';
7
+ export declare type Offer = {
8
+ id: number;
9
+ tripianPoiId: number;
10
+ businessId: number;
11
+ title: string;
12
+ description: string | null;
13
+ currency: OFFER_CURRENCY;
14
+ caption: string;
15
+ productName: string;
16
+ threshold: number;
17
+ discount: number;
18
+ discountedProductCount: number;
19
+ quantity: number;
20
+ timeframe: TimeFrame | null;
21
+ image: OfferImage;
22
+ productType: OfferProductType;
23
+ offerType: OFFER_TYPE;
24
+ usage: number;
25
+ optIn: boolean;
26
+ status: OFFER_STATUS;
27
+ };
@@ -0,0 +1,6 @@
1
+ export declare type OfferCustomer = {
2
+ customerFirstName: string;
3
+ customerLastName: string;
4
+ offerClaimDate: string;
5
+ ImInDatetime: string;
6
+ };
@@ -0,0 +1,4 @@
1
+ export declare type OfferImage = {
2
+ id: number;
3
+ url: string;
4
+ };
@@ -0,0 +1,7 @@
1
+ import { OFFER_RECEIVE_METHOD } from '../enums/OFFER_RECEIVE_METHOD';
2
+ import { PRODUCT_TYPE_NAME } from '../enums/PRODUCT_TYPE_NAME';
3
+ export declare type OfferProductType = {
4
+ id: number;
5
+ name: PRODUCT_TYPE_NAME;
6
+ receiveMethod: OFFER_RECEIVE_METHOD;
7
+ };
@@ -1,9 +1,9 @@
1
1
  import { Step } from './Step';
2
2
  export declare type Plan = {
3
- date: string;
4
- end_time: string;
5
- generated_status: number;
6
3
  id: number;
7
- start_time: string;
4
+ date: string;
5
+ startTime: string;
6
+ endTime: string;
7
+ generatedStatus: number;
8
8
  steps: Array<Step>;
9
9
  };
@@ -1,33 +1,34 @@
1
1
  import { Image } from './Image';
2
2
  import { Coordinate } from './Coordinate';
3
3
  import { PoiCategory } from './PoiCategory';
4
- import { Booking } from './Booking';
5
4
  import { TasteItem } from './TasteItem';
5
+ import { Booking } from './Booking';
6
+ import { Offer } from './Offer';
6
7
  export declare type Poi = {
7
- address: string | null;
8
- attention: string | null;
9
- booking: Booking[];
10
- category: PoiCategory[];
11
- city_id: number;
12
- closed: number[];
13
- coordinate: Coordinate;
14
- cuisines: string | null;
15
- description: string | null;
16
- distance: number | null;
17
- gallery: Image[];
18
- hours: string | null;
19
- icon: string;
20
8
  id: number;
21
- image: Image;
22
- marker_coordinate: Coordinate;
23
- must_tries: TasteItem[];
9
+ cityId: number;
24
10
  name: string;
25
- phone: string | null;
11
+ image: Image;
12
+ gallery: Image[];
26
13
  price: number | null;
27
14
  rating: number | null;
28
- rating_count: number | null;
29
- safety: string[] | null;
30
- status: boolean;
31
- tags: string[];
15
+ ratingCount: number | null;
16
+ description: string | null;
32
17
  web: string | null;
18
+ phone: string | null;
19
+ address: string;
20
+ icon: string;
21
+ coordinate: Coordinate;
22
+ bookings: Booking[];
23
+ category: PoiCategory[];
24
+ tags: string[];
25
+ mustTries: TasteItem[];
26
+ cuisines: string | null;
27
+ attention: string | null;
28
+ hours: string | null;
29
+ closed: number[];
30
+ distance: number | null;
31
+ safety: string[];
32
+ status: boolean;
33
+ offers: Offer[];
33
34
  };
@@ -1,7 +1,7 @@
1
1
  import { PoiCategoryParent } from './PoiCategoryParent';
2
2
  export declare type PoiCategory = {
3
- description: string | null;
4
3
  id: number;
5
4
  name: string;
5
+ description: string | null;
6
6
  parent: PoiCategoryParent | null;
7
7
  };
File without changes
@@ -0,0 +1,5 @@
1
+ export declare type PoiCategoryParent = {
2
+ id: number;
3
+ name: string;
4
+ description: string | null;
5
+ };
@@ -1,10 +1,10 @@
1
1
  import { Coordinate } from './Coordinate';
2
- import { Image } from './Image';
3
2
  import { PoiCategory } from './PoiCategory';
3
+ import { Image } from './Image';
4
4
  export declare type PoiReference = {
5
- category: PoiCategory[];
6
5
  id: number;
7
- image: Image;
8
- marker_coordinate: Coordinate;
9
6
  name: string;
7
+ image: Image | null;
8
+ coordinate: Coordinate | null;
9
+ category: PoiCategory[];
10
10
  };
@@ -0,0 +1,11 @@
1
+ import { QUESTIONS_CATEGORY } from '../enums/QUESTIONS_CATEGORY';
2
+ import { QuestionAnswer } from './QuestionAnswer';
3
+ export declare type Question = {
4
+ id: number;
5
+ skippable: boolean;
6
+ selectMultiple: boolean;
7
+ name: string;
8
+ category: QUESTIONS_CATEGORY;
9
+ order: number;
10
+ answers: QuestionAnswer[];
11
+ };
@@ -0,0 +1,6 @@
1
+ import { SubAnswer } from './SubAnswer';
2
+ export declare type QuestionAnswer = {
3
+ id: number;
4
+ name: string;
5
+ subAnswers: SubAnswer[];
6
+ };
@@ -1,5 +1,5 @@
1
1
  import { PoiReference } from './PoiReference';
2
2
  export declare type Recommendation = {
3
- poi_ref: PoiReference;
4
- score: number | null;
3
+ poiRef: PoiReference;
4
+ score: number;
5
5
  };
@@ -1,10 +1,8 @@
1
1
  import { Poi } from './Poi';
2
- import { StepHours } from './StepHours';
3
2
  export declare type Step = {
4
- alternatives: number[];
5
- hours: StepHours;
6
3
  id: number;
7
- order: number;
8
4
  poi: Poi;
9
5
  score: number | null;
6
+ order: number;
7
+ alternatives: number[];
10
8
  };
@@ -1,4 +1,4 @@
1
- export declare type SubOption = {
1
+ export declare type SubAnswer = {
2
2
  id: number;
3
3
  name: string;
4
4
  };
@@ -1,7 +1,8 @@
1
- import { TasteItemImage } from './TasteItemImage';
1
+ import { Image } from './Image';
2
2
  export declare type TasteItem = {
3
3
  id: number;
4
- description: string | null;
5
- image: TasteItemImage;
6
4
  name: string;
5
+ poiCount: number | null;
6
+ description: string | null;
7
+ image: Image;
7
8
  };
@@ -0,0 +1,4 @@
1
+ export declare type TimeFrame = {
2
+ start: string;
3
+ end: string;
4
+ };