@tripian/core 6.1.1 → 6.1.4
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 +14 -1
- package/api/const/ApiConstModel.d.ts +8 -1
- package/index.js +3 -3
- package/index.js.map +1 -1
- package/package.json +2 -2
- package/tcore.umd.js +3 -3
- package/tcore.umd.js.map +1 -1
package/api/API.d.ts
CHANGED
|
@@ -157,6 +157,7 @@ declare class API {
|
|
|
157
157
|
business: () => Promise<Model.Business>;
|
|
158
158
|
businessOffers: (statuses: Model.OFFER_STATUS[], page?: number, limit?: number) => Promise<Model.DataPayload<Model.Offer[]>>;
|
|
159
159
|
businessOfferAdd: (offerAddRequest: Model.OfferAddRequest) => Promise<Model.Offer>;
|
|
160
|
+
businessVoucherOfferAdd: (voucherOfferAddRequest: Model.VoucherOfferAddRequest) => Promise<Model.VoucherOffer>;
|
|
160
161
|
businessOffer: (offerId: number) => Promise<Model.Offer>;
|
|
161
162
|
businessOfferStatusUpdate: (offerId: number, status: Model.OFFER_STATUS) => Promise<Model.Offer>;
|
|
162
163
|
businessOfferImageUpdate: (offerId: number, imageUrl: string) => Promise<Model.Offer>;
|
|
@@ -169,13 +170,25 @@ declare class API {
|
|
|
169
170
|
* Business Pre Registers
|
|
170
171
|
*/
|
|
171
172
|
businessPreRegister: (preRegister: Model.PreRegister) => Promise<boolean>;
|
|
173
|
+
/**
|
|
174
|
+
* Campaign
|
|
175
|
+
*/
|
|
176
|
+
businessCampaigns: (page: number, limit?: number) => Promise<Model.DataPayload<Model.Campaign[]>>;
|
|
177
|
+
businessCampaign: (campaignId: number) => Promise<Model.Campaign | undefined>;
|
|
178
|
+
businessCampaignUpdate: (campaignRequest: Model.CampaignUpdateRequest) => Promise<boolean>;
|
|
179
|
+
businessCampaignAdd: (campaignRequest: Model.CampaignAddRequest) => Promise<number>;
|
|
172
180
|
/**
|
|
173
181
|
* Coupon
|
|
174
182
|
*/
|
|
183
|
+
businessCouponApplications: (page: number, limit?: number) => Promise<Model.DataPayload<Model.CouponApplication[]>>;
|
|
184
|
+
businessCouponApplication: (applicationId: number) => Promise<Model.CouponApplication | undefined>;
|
|
185
|
+
businessCouponApplicationAdd: (couponApplicationRequest: Model.CouponApplicationRequest) => Promise<number>;
|
|
186
|
+
private businessCouponApplicationUserUpdate;
|
|
187
|
+
businessCouponApplicationUserApprove: (applicationId: number, travelerId: number, campaignId: number) => Promise<Model.CouponApplication>;
|
|
188
|
+
businessCouponApplicationUserReject: (applicationId: number, travelerId: number, notes: string) => Promise<Model.CouponApplication>;
|
|
175
189
|
businessCouponApplicationFileUpload: (file: string) => Promise<{
|
|
176
190
|
url: string;
|
|
177
191
|
}>;
|
|
178
|
-
businessCouponApplicationAdd: (couponApplication: Model.CouponApplication) => Promise<number>;
|
|
179
192
|
/**
|
|
180
193
|
* Logs
|
|
181
194
|
*/
|
|
@@ -93,8 +93,15 @@ interface ApiConstModel {
|
|
|
93
93
|
BUSINESS_OFFER_CUSTOMERS: ApiConst;
|
|
94
94
|
BUSINESS_OFFER_FILE_UPLOAD: ApiConst;
|
|
95
95
|
RECOMMENDATIONS: ApiConst;
|
|
96
|
-
|
|
96
|
+
BUSINESS_CAMPAIGNS: ApiConst;
|
|
97
|
+
BUSINESS_CAMPAIGN: ApiConst;
|
|
98
|
+
BUSINESS_CAMPAIGN_ADD: ApiConst;
|
|
99
|
+
BUSINESS_CAMPAIGN_UPDATE: ApiConst;
|
|
100
|
+
BUSINESS_COUPON_APPLICATIONS: ApiConst;
|
|
101
|
+
BUSINESS_COUPON_APPLICATION: ApiConst;
|
|
97
102
|
BUSINESS_COUPON_APPLICATION_ADD: ApiConst;
|
|
103
|
+
BUSINESS_COUPON_APPLICATION_USER_UPDATE: ApiConst;
|
|
104
|
+
BUSINESS_COUPON_FILE_UPLOAD: ApiConst;
|
|
98
105
|
LOGS: ApiConst;
|
|
99
106
|
}
|
|
100
107
|
export { ApiConst, ApiConstModel };
|