@tripian/core 8.2.5 → 8.3.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.
package/Random.d.ts CHANGED
@@ -96,7 +96,7 @@ declare class Random {
96
96
  * random reservation
97
97
  *
98
98
  */
99
- static randomNewUserReservation: (poiId: number, tripHash: string) => Model.UserReservationRequest;
99
+ static randomNewUserReservation: (poiId: string, tripHash: string) => Model.UserReservationRequest;
100
100
  /**
101
101
  * random password
102
102
  * @returns {string} random username start with pass
package/api/API.d.ts CHANGED
@@ -28,8 +28,8 @@ declare class API {
28
28
  poisSearchAutoComplete: () => Promise<string[]>;
29
29
  poisCoordinateSearch: ({ poiCategories, coordinate, distance, bounds, limit }: Model.PoisRequestCoordinate) => Promise<Model.Poi[]>;
30
30
  poisMustTrySearch: ({ cityId, mustTryIds, limit }: Model.PoisRequestMustTry) => Promise<Model.Poi[]>;
31
- pois: (poiIds: number[], cityId?: number) => Promise<Model.Poi[]>;
32
- poi: (poiId: number) => Promise<Model.Poi>;
31
+ pois: (poiIds: string[], cityId?: number) => Promise<Model.Poi[]>;
32
+ poi: (poiId: string) => Promise<Model.Poi>;
33
33
  /**
34
34
  * Top 10
35
35
  */
@@ -79,7 +79,7 @@ declare class API {
79
79
  * Favorites
80
80
  */
81
81
  favorites: (cityId: number) => Promise<Model.Favorite[]>;
82
- favoriteAdd: (poiId: number, tripHash?: string) => Promise<Model.Favorite>;
82
+ favoriteAdd: (poiId: string, tripHash?: string) => Promise<Model.Favorite>;
83
83
  favoriteDelete: (favoriteId: number) => Promise<number>;
84
84
  /**
85
85
  * Reactions
@@ -101,9 +101,9 @@ declare class API {
101
101
  /**
102
102
  * Step
103
103
  */
104
- stepAdd: (planId: number, poiId: number, startTime?: string, endTime?: string) => Promise<Model.Step>;
104
+ stepAdd: (planId: number, poiId: string, startTime?: string, endTime?: string) => Promise<Model.Step>;
105
105
  stepUpdateTimes: (stepId: number, startTime: string, endTime: string) => Promise<Model.Step>;
106
- stepReplace: (stepId: number, newPoiId: number) => Promise<Model.Step>;
106
+ stepReplace: (stepId: number, newPoiId: string) => Promise<Model.Step>;
107
107
  stepDelete: (stepId: number) => Promise<number>;
108
108
  /**
109
109
  * Questions
@@ -133,7 +133,7 @@ declare class API {
133
133
  /**
134
134
  * Reservations
135
135
  */
136
- reservations: (cityId?: number, tripHash?: string, poiId?: number, provider?: string, startDate?: string, endDate?: string, limit?: number) => Promise<Model.UserReservation[]>;
136
+ reservations: (cityId?: number, tripHash?: string, poiId?: string, provider?: string, startDate?: string, endDate?: string, limit?: number) => Promise<Model.UserReservation[]>;
137
137
  reservationAdd: (reservationRequest: Model.UserReservationRequest) => Promise<Model.UserReservation>;
138
138
  reservationUpdate: (reservation: Model.UserReservation) => Promise<Model.UserReservation>;
139
139
  reservationDelete: (reservationId: number) => Promise<number>;
@@ -158,7 +158,7 @@ declare class API {
158
158
  * Small Business Tools
159
159
  */
160
160
  businessSearch: (q: string, cityId: number, bounds?: string) => Promise<Model.BusinessSearch[]>;
161
- businessAssign: (tripianPoiId: number) => Promise<Model.User>;
161
+ businessAssign: (tripianPoiId: string) => Promise<Model.User>;
162
162
  startVerify: (to_: string, channel: Model.VERIFY_CHANNEL) => Promise<Model.BusinessVerify>;
163
163
  checkVerify: (to_: string, channel: Model.VERIFY_CHANNEL, code: string) => Promise<Model.BusinessVerify>;
164
164
  business: () => Promise<Model.Business>;
@@ -240,9 +240,9 @@ declare class API {
240
240
  *
241
241
  * Step Combo
242
242
  */
243
- stepAdd: (planId: number, poiId: number, tripHash: string, startTime?: string, endTime?: string) => Promise<Model.Trip>;
243
+ stepAdd: (planId: number, poiId: string, tripHash: string, startTime?: string, endTime?: string) => Promise<Model.Trip>;
244
244
  stepUpdateTimes: (stepId: number, startTime: string, endTime: string, tripHash: string) => Promise<Model.Trip>;
245
- stepReplace: (stepId: number, newPoiId: number, tripHash: string) => Promise<Model.Trip>;
245
+ stepReplace: (stepId: number, newPoiId: string, tripHash: string) => Promise<Model.Trip>;
246
246
  stepDelete: (stepId: number, tripHash: string) => Promise<Model.Trip>;
247
247
  /**
248
248
  *
@@ -256,7 +256,7 @@ declare class API {
256
256
  *
257
257
  * Favorite Combo
258
258
  */
259
- favoriteAdd: (tripHash: string, poiId: number, cityId: number) => Promise<Model.Favorite[]>;
259
+ favoriteAdd: (tripHash: string, poiId: string, cityId: number) => Promise<Model.Favorite[]>;
260
260
  favoriteDelete: (favoriteId: number, cityId: number) => Promise<Model.Favorite[]>;
261
261
  /**
262
262
  *
package/easy/easy.d.ts CHANGED
@@ -16,7 +16,7 @@ declare const easy: {
16
16
  * @param {number} id
17
17
  * @returns {string} stringQuery.replace('{id}', id);
18
18
  */
19
- setParameterId: (stringQuery: string, id: number, key: string) => string;
19
+ setParameterId: (stringQuery: string, id: number | string, key: string) => string;
20
20
  /**
21
21
  * Replace stringQuery, all param.key with all param.value foreach params parameter
22
22
  * @param {string} stringQuery
@@ -29,8 +29,8 @@ declare class Cached {
29
29
  * POI
30
30
  *
31
31
  */
32
- static poi: (poiId: number) => Model.Poi | undefined;
33
- static pois: (poiIds: number[]) => Model.Poi[] | undefined;
32
+ static poi: (poiId: string) => Model.Poi | undefined;
33
+ static pois: (poiIds: string[]) => Model.Poi[] | undefined;
34
34
  static poisAll: (cityId: number, category: string) => Model.DataPayload<Model.Poi[]> | undefined;
35
35
  /**
36
36
  ******************************************************************************