@tripian/core 6.1.1 → 6.1.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/api/API.d.ts CHANGED
@@ -169,13 +169,25 @@ declare class API {
169
169
  * Business Pre Registers
170
170
  */
171
171
  businessPreRegister: (preRegister: Model.PreRegister) => Promise<boolean>;
172
+ /**
173
+ * Campaign
174
+ */
175
+ businessCampaigns: (page: number, limit?: number) => Promise<Model.DataPayload<Model.Campaign[]>>;
176
+ businessCampaign: (campaignId: number) => Promise<Model.Campaign | undefined>;
177
+ businessCampaignUpdate: (campaignRequest: Model.CampaignUpdateRequest) => Promise<number>;
178
+ businessCampaignAdd: (campaignRequest: Model.CampaignAddRequest) => Promise<number>;
172
179
  /**
173
180
  * Coupon
174
181
  */
182
+ businessCouponApplications: (page: number, limit?: number) => Promise<Model.DataPayload<Model.CouponApplication[]>>;
183
+ businessCouponApplication: (applicationId: number) => Promise<Model.CouponApplication | undefined>;
184
+ businessCouponApplicationAdd: (couponApplicationRequest: Model.CouponApplicationRequest) => Promise<number>;
185
+ private businessCouponApplicationUserUpdate;
186
+ businessCouponApplicationUserApprove: (applicationId: number, travelerId: number, campaignId: number) => Promise<Model.CouponApplication>;
187
+ businessCouponApplicationUserReject: (applicationId: number, travelerId: number, notes: string) => Promise<Model.CouponApplication>;
175
188
  businessCouponApplicationFileUpload: (file: string) => Promise<{
176
189
  url: string;
177
190
  }>;
178
- businessCouponApplicationAdd: (couponApplication: Model.CouponApplication) => Promise<number>;
179
191
  /**
180
192
  * Logs
181
193
  */
@@ -93,8 +93,15 @@ interface ApiConstModel {
93
93
  BUSINESS_OFFER_CUSTOMERS: ApiConst;
94
94
  BUSINESS_OFFER_FILE_UPLOAD: ApiConst;
95
95
  RECOMMENDATIONS: ApiConst;
96
- BUSINESS_COUPON_FILE_UPLOAD: ApiConst;
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 };