@tripian/core 9.0.10 → 9.0.12
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/api/API.d.ts +3 -1
- package/index.js +2 -2
- package/index.js.map +1 -1
- package/package.json +2 -2
- package/tcore.umd.js +2 -2
- package/tcore.umd.js.map +1 -1
package/api/API.d.ts
CHANGED
|
@@ -104,6 +104,7 @@ declare class API {
|
|
|
104
104
|
* Step
|
|
105
105
|
*/
|
|
106
106
|
stepAdd: (planId: number, poiId: string, startTime?: string, endTime?: string) => Promise<Model.Step>;
|
|
107
|
+
customStepAdd: (planId: number, customPoi: Model.CustomPoi, stepType: string, startTime?: string, endTime?: string) => Promise<Model.Step>;
|
|
107
108
|
stepUpdateTimes: (stepId: number, startTime: string, endTime: string) => Promise<Model.Step>;
|
|
108
109
|
stepReplace: (stepId: number, newPoiId: string) => Promise<Model.Step>;
|
|
109
110
|
stepDelete: (stepId: number) => Promise<number>;
|
|
@@ -193,7 +194,7 @@ declare class API {
|
|
|
193
194
|
/**
|
|
194
195
|
* Coupon
|
|
195
196
|
*/
|
|
196
|
-
businessCouponApplications: (page: number, limit?: number) => Promise<Model.DataPayload<Model.CouponApplication[]>>;
|
|
197
|
+
businessCouponApplications: (page: number, status: 'waiting' | 'reviewed', limit?: number) => Promise<Model.DataPayload<Model.CouponApplication[]>>;
|
|
197
198
|
businessCouponApplication: (applicationId: number) => Promise<Model.CouponApplication | undefined>;
|
|
198
199
|
businessCouponApplicationAdd: (couponApplicationRequest: Model.CouponApplicationRequest) => Promise<number>;
|
|
199
200
|
private businessCouponApplicationUserUpdate;
|
|
@@ -251,6 +252,7 @@ declare class API {
|
|
|
251
252
|
* Step Combo
|
|
252
253
|
*/
|
|
253
254
|
stepAdd: (planId: number, poiId: string, tripHash: string, startTime?: string, endTime?: string) => Promise<Model.Trip>;
|
|
255
|
+
customStepAdd: (planId: number, customPoi: Model.CustomPoi, tripHash: string, stepType: string, startTime?: string, endTime?: string) => Promise<Model.Trip>;
|
|
254
256
|
stepUpdateTimes: (stepId: number, startTime: string, endTime: string, tripHash: string) => Promise<Model.Trip>;
|
|
255
257
|
stepReplace: (stepId: number, newPoiId: string, tripHash: string) => Promise<Model.Trip>;
|
|
256
258
|
stepDelete: (stepId: number, tripHash: string) => Promise<Model.Trip>;
|