@bzbs/react-api-client 2.0.0 → 2.0.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/dist/index.d.mts CHANGED
@@ -1587,7 +1587,7 @@ declare class AuthenticateApi extends BaseService {
1587
1587
  options?: {
1588
1588
  [key: string]: unknown;
1589
1589
  };
1590
- }, requestOptions?: RequestOptions): Promise<ServiceResponse<ForgetPasswordResponse>>;
1590
+ }, requestOptions?: RequestOptions, version?: number): Promise<ServiceResponse<ForgetPasswordResponse>>;
1591
1591
  /**
1592
1592
  * Resets the password for a user.
1593
1593
  *
@@ -1608,7 +1608,7 @@ declare class AuthenticateApi extends BaseService {
1608
1608
  options?: {
1609
1609
  [key: string]: unknown;
1610
1610
  };
1611
- }, requestOptions?: RequestOptions): Promise<ServiceResponse<StatusResponse>>;
1611
+ }, requestOptions?: RequestOptions, version?: number): Promise<ServiceResponse<StatusResponse>>;
1612
1612
  /**
1613
1613
  * Sends an OTP (One-Time Password) to the user for authentication (GET method).
1614
1614
  *
@@ -1825,14 +1825,18 @@ declare class CampaignApi extends BaseService {
1825
1825
  * @param params.deviceLocale - The device locale for the campaigns.
1826
1826
  * @param params.locale - The locale for the campaigns.
1827
1827
  * @param params.keyword - The keyword for the campaigns.
1828
- * @param params.startDate - The start date for the campaigns.
1828
+ * @param params.startDate - The start date for the campaigns. Example: 2017-07-21T17:32:28Z
1829
1829
  * @param params.sponsorId - The sponsor ID for the campaigns.
1830
1830
  * @param params.maxPoints - The maximum points for the campaigns.
1831
1831
  * @param params.minPoints - The minimum points for the campaigns.
1832
+ * @param params.minPrice - The minimum price for the campaigns.
1833
+ * @param params.maxPrice - The maximum price for the campaigns.
1832
1834
  * @param params.sortBy - The sort order for the campaigns.
1833
1835
  * @param params.center - The coordinates for the center of the campaigns.
1834
1836
  * @param params.hashTags - The hash tags for the campaigns.
1835
1837
  * @param params.locationAgencyId - The location agency ID for the campaigns.
1838
+ * @param params.campaignservice - Use campaign service.
1839
+ * @param params.mode - The mode for the campaigns.
1836
1840
  * @param params.options - (Optional) Additional params for the request.
1837
1841
  * @param requestOptions - The options for the HTTP request.
1838
1842
  * @returns A promise that resolves to a ServiceResponse containing an array of Campaign objects.
@@ -1850,10 +1854,14 @@ declare class CampaignApi extends BaseService {
1850
1854
  sponsorId?: string;
1851
1855
  maxPoints?: string;
1852
1856
  minPoints?: string;
1857
+ minPrice?: string;
1858
+ maxPrice?: string;
1853
1859
  sortBy?: string;
1854
1860
  center?: string;
1855
1861
  hashTags?: string;
1856
1862
  locationAgencyId?: string;
1863
+ campaignservice?: boolean;
1864
+ mode?: string | 'hot' | 'all' | 'bzbs' | 'sponsor' | 'draw' | 'free' | 'deal' | 'buy' | 'ads' | 'full' | 'cart';
1857
1865
  options?: {
1858
1866
  [key: string]: unknown;
1859
1867
  };
@@ -2477,7 +2485,7 @@ declare class ProfileApi extends BaseService {
2477
2485
  options?: {
2478
2486
  [key: string]: unknown;
2479
2487
  };
2480
- }, requestOptions?: RequestOptions): Promise<ServiceResponse<StatusResponse>>;
2488
+ }, requestOptions?: RequestOptions, version?: number): Promise<ServiceResponse<StatusResponse>>;
2481
2489
  /**
2482
2490
  * Updates the shipping information for the user.
2483
2491
  *
@@ -2709,7 +2717,7 @@ declare class RegistrationApi extends BaseService {
2709
2717
  options: {
2710
2718
  [key: string]: unknown;
2711
2719
  };
2712
- }, requestOptions?: RequestOptions): Promise<ServiceResponse<RegistrationResponse>>;
2720
+ }, requestOptions?: RequestOptions, version?: number): Promise<ServiceResponse<RegistrationResponse>>;
2713
2721
  }
2714
2722
 
2715
2723
  declare class AddressApi extends BaseService {
package/dist/index.d.ts CHANGED
@@ -1587,7 +1587,7 @@ declare class AuthenticateApi extends BaseService {
1587
1587
  options?: {
1588
1588
  [key: string]: unknown;
1589
1589
  };
1590
- }, requestOptions?: RequestOptions): Promise<ServiceResponse<ForgetPasswordResponse>>;
1590
+ }, requestOptions?: RequestOptions, version?: number): Promise<ServiceResponse<ForgetPasswordResponse>>;
1591
1591
  /**
1592
1592
  * Resets the password for a user.
1593
1593
  *
@@ -1608,7 +1608,7 @@ declare class AuthenticateApi extends BaseService {
1608
1608
  options?: {
1609
1609
  [key: string]: unknown;
1610
1610
  };
1611
- }, requestOptions?: RequestOptions): Promise<ServiceResponse<StatusResponse>>;
1611
+ }, requestOptions?: RequestOptions, version?: number): Promise<ServiceResponse<StatusResponse>>;
1612
1612
  /**
1613
1613
  * Sends an OTP (One-Time Password) to the user for authentication (GET method).
1614
1614
  *
@@ -1825,14 +1825,18 @@ declare class CampaignApi extends BaseService {
1825
1825
  * @param params.deviceLocale - The device locale for the campaigns.
1826
1826
  * @param params.locale - The locale for the campaigns.
1827
1827
  * @param params.keyword - The keyword for the campaigns.
1828
- * @param params.startDate - The start date for the campaigns.
1828
+ * @param params.startDate - The start date for the campaigns. Example: 2017-07-21T17:32:28Z
1829
1829
  * @param params.sponsorId - The sponsor ID for the campaigns.
1830
1830
  * @param params.maxPoints - The maximum points for the campaigns.
1831
1831
  * @param params.minPoints - The minimum points for the campaigns.
1832
+ * @param params.minPrice - The minimum price for the campaigns.
1833
+ * @param params.maxPrice - The maximum price for the campaigns.
1832
1834
  * @param params.sortBy - The sort order for the campaigns.
1833
1835
  * @param params.center - The coordinates for the center of the campaigns.
1834
1836
  * @param params.hashTags - The hash tags for the campaigns.
1835
1837
  * @param params.locationAgencyId - The location agency ID for the campaigns.
1838
+ * @param params.campaignservice - Use campaign service.
1839
+ * @param params.mode - The mode for the campaigns.
1836
1840
  * @param params.options - (Optional) Additional params for the request.
1837
1841
  * @param requestOptions - The options for the HTTP request.
1838
1842
  * @returns A promise that resolves to a ServiceResponse containing an array of Campaign objects.
@@ -1850,10 +1854,14 @@ declare class CampaignApi extends BaseService {
1850
1854
  sponsorId?: string;
1851
1855
  maxPoints?: string;
1852
1856
  minPoints?: string;
1857
+ minPrice?: string;
1858
+ maxPrice?: string;
1853
1859
  sortBy?: string;
1854
1860
  center?: string;
1855
1861
  hashTags?: string;
1856
1862
  locationAgencyId?: string;
1863
+ campaignservice?: boolean;
1864
+ mode?: string | 'hot' | 'all' | 'bzbs' | 'sponsor' | 'draw' | 'free' | 'deal' | 'buy' | 'ads' | 'full' | 'cart';
1857
1865
  options?: {
1858
1866
  [key: string]: unknown;
1859
1867
  };
@@ -2477,7 +2485,7 @@ declare class ProfileApi extends BaseService {
2477
2485
  options?: {
2478
2486
  [key: string]: unknown;
2479
2487
  };
2480
- }, requestOptions?: RequestOptions): Promise<ServiceResponse<StatusResponse>>;
2488
+ }, requestOptions?: RequestOptions, version?: number): Promise<ServiceResponse<StatusResponse>>;
2481
2489
  /**
2482
2490
  * Updates the shipping information for the user.
2483
2491
  *
@@ -2709,7 +2717,7 @@ declare class RegistrationApi extends BaseService {
2709
2717
  options: {
2710
2718
  [key: string]: unknown;
2711
2719
  };
2712
- }, requestOptions?: RequestOptions): Promise<ServiceResponse<RegistrationResponse>>;
2720
+ }, requestOptions?: RequestOptions, version?: number): Promise<ServiceResponse<RegistrationResponse>>;
2713
2721
  }
2714
2722
 
2715
2723
  declare class AddressApi extends BaseService {
package/dist/index.js CHANGED
@@ -611,10 +611,10 @@ var AuthenticateApi = class extends BaseService {
611
611
  * @param requestOptions - Optional request options.
612
612
  * @returns A promise that resolves to a ServiceResponse containing the forget password response.
613
613
  */
614
- forgetPassword(params, requestOptions) {
614
+ forgetPassword(params, requestOptions, version = 2) {
615
615
  return __async(this, null, function* () {
616
616
  return yield this.get(
617
- "profile/forget_password",
617
+ `profile/forget_password${version}`,
618
618
  __spreadValues({
619
619
  id: params.contact,
620
620
  type: params.type
@@ -635,10 +635,10 @@ var AuthenticateApi = class extends BaseService {
635
635
  * @param requestOptions - (Optional) Additional options for the request.
636
636
  * @returns A promise that resolves to a ServiceResponse containing the status response.
637
637
  */
638
- resetPassword(params, requestOptions) {
638
+ resetPassword(params, requestOptions, version = 2) {
639
639
  return __async(this, null, function* () {
640
640
  return yield this.post(
641
- "profile/forget_password",
641
+ `profile/forget_password${version}`,
642
642
  __spreadValues({
643
643
  id: params.contact,
644
644
  refcode: params.refCode,
@@ -919,14 +919,18 @@ var CampaignApi = class extends BaseService {
919
919
  * @param params.deviceLocale - The device locale for the campaigns.
920
920
  * @param params.locale - The locale for the campaigns.
921
921
  * @param params.keyword - The keyword for the campaigns.
922
- * @param params.startDate - The start date for the campaigns.
922
+ * @param params.startDate - The start date for the campaigns. Example: 2017-07-21T17:32:28Z
923
923
  * @param params.sponsorId - The sponsor ID for the campaigns.
924
924
  * @param params.maxPoints - The maximum points for the campaigns.
925
925
  * @param params.minPoints - The minimum points for the campaigns.
926
+ * @param params.minPrice - The minimum price for the campaigns.
927
+ * @param params.maxPrice - The maximum price for the campaigns.
926
928
  * @param params.sortBy - The sort order for the campaigns.
927
929
  * @param params.center - The coordinates for the center of the campaigns.
928
930
  * @param params.hashTags - The hash tags for the campaigns.
929
931
  * @param params.locationAgencyId - The location agency ID for the campaigns.
932
+ * @param params.campaignservice - Use campaign service.
933
+ * @param params.mode - The mode for the campaigns.
930
934
  * @param params.options - (Optional) Additional params for the request.
931
935
  * @param requestOptions - The options for the HTTP request.
932
936
  * @returns A promise that resolves to a ServiceResponse containing an array of Campaign objects.
@@ -948,10 +952,14 @@ var CampaignApi = class extends BaseService {
948
952
  sponsorId: params.sponsorId,
949
953
  maxpoints: params.maxPoints,
950
954
  minpoints: params.minPoints,
951
- sortBy: params.sortBy,
955
+ sortby: params.sortBy,
952
956
  center: params.center,
953
957
  tags: params.hashTags,
954
- locationAgencyId: params.locationAgencyId
958
+ locationAgencyId: params.locationAgencyId,
959
+ campaignservice: params.campaignservice,
960
+ mode: params.mode,
961
+ minprice: params.minPrice,
962
+ maxprice: params.maxPrice
955
963
  }, params.options),
956
964
  requestOptions
957
965
  );
@@ -1763,10 +1771,10 @@ var ProfileApi = class extends BaseService {
1763
1771
  * @param requestOptions - Optional request options.
1764
1772
  * @returns A promise that resolves to a ServiceResponse containing the status response.
1765
1773
  */
1766
- changePassword(params, requestOptions) {
1774
+ changePassword(params, requestOptions, version = 2) {
1767
1775
  return __async(this, null, function* () {
1768
1776
  return yield this.post(
1769
- "profile/change_password",
1777
+ `profile/change_password${version}`,
1770
1778
  __spreadValues({
1771
1779
  current: params.current,
1772
1780
  change: params.change
@@ -2029,10 +2037,10 @@ var RegistrationApi = class extends BaseService {
2029
2037
  * @param requestOptions - The optional request options.
2030
2038
  * @returns A promise that resolves to a service response containing the registration response.
2031
2039
  */
2032
- register(params, requestOptions) {
2040
+ register(params, requestOptions, version = 2) {
2033
2041
  return __async(this, null, function* () {
2034
2042
  return yield this.post(
2035
- "auth/register",
2043
+ `auth/register${version}`,
2036
2044
  __spreadValues({
2037
2045
  app_id: params.appId,
2038
2046
  uuid: params.uuid,