@bzbs/react-api-client 2.0.0 → 2.0.1
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 +9 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.js +11 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -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
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -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
|
};
|
package/dist/index.js
CHANGED
|
@@ -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
|
-
|
|
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
|
);
|