@bzbs/react-api-client 1.2.2 → 1.2.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/dist/index.d.mts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1706,6 +1706,7 @@ declare class CampaignApi extends BaseService {
|
|
|
1706
1706
|
* @param params.addressKey - The address key of a user's address.
|
|
1707
1707
|
* @param params.contactNumber - The contact number of the user.
|
|
1708
1708
|
* @param params.options - Additional options for the redemption.
|
|
1709
|
+
* @param params.spPoints - Point Per Unit x Quantity (Donate only).
|
|
1709
1710
|
* @param requestOptions - The options for the HTTP request.
|
|
1710
1711
|
* @returns A promise that resolves to a service response containing the redeem response.
|
|
1711
1712
|
*/
|
|
@@ -1714,6 +1715,7 @@ declare class CampaignApi extends BaseService {
|
|
|
1714
1715
|
addressKey?: string;
|
|
1715
1716
|
contactNumber?: string;
|
|
1716
1717
|
pointUnit?: string;
|
|
1718
|
+
spPoints?: number;
|
|
1717
1719
|
options?: {
|
|
1718
1720
|
[key: string]: unknown;
|
|
1719
1721
|
};
|
|
@@ -1727,6 +1729,7 @@ declare class CampaignApi extends BaseService {
|
|
|
1727
1729
|
* @param params.addressKey - The address key of a user's address.
|
|
1728
1730
|
* @param params.contactNumber - The contact number of the user.
|
|
1729
1731
|
* @param params.pointUnit - The point unit of the campaign.
|
|
1732
|
+
* @param params.spPoints - Point Per Unit x Quantity (Donate only).
|
|
1730
1733
|
* @param params.options - Additional options for the redemption.
|
|
1731
1734
|
* @param requestOptions - The options for the HTTP request.
|
|
1732
1735
|
* @returns A promise that resolves to a service response containing the redeem response.
|
|
@@ -1737,6 +1740,7 @@ declare class CampaignApi extends BaseService {
|
|
|
1737
1740
|
addressKey?: string;
|
|
1738
1741
|
contactNumber?: string;
|
|
1739
1742
|
pointUnit?: string;
|
|
1743
|
+
spPoints?: number;
|
|
1740
1744
|
options?: {
|
|
1741
1745
|
[key: string]: unknown;
|
|
1742
1746
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1706,6 +1706,7 @@ declare class CampaignApi extends BaseService {
|
|
|
1706
1706
|
* @param params.addressKey - The address key of a user's address.
|
|
1707
1707
|
* @param params.contactNumber - The contact number of the user.
|
|
1708
1708
|
* @param params.options - Additional options for the redemption.
|
|
1709
|
+
* @param params.spPoints - Point Per Unit x Quantity (Donate only).
|
|
1709
1710
|
* @param requestOptions - The options for the HTTP request.
|
|
1710
1711
|
* @returns A promise that resolves to a service response containing the redeem response.
|
|
1711
1712
|
*/
|
|
@@ -1714,6 +1715,7 @@ declare class CampaignApi extends BaseService {
|
|
|
1714
1715
|
addressKey?: string;
|
|
1715
1716
|
contactNumber?: string;
|
|
1716
1717
|
pointUnit?: string;
|
|
1718
|
+
spPoints?: number;
|
|
1717
1719
|
options?: {
|
|
1718
1720
|
[key: string]: unknown;
|
|
1719
1721
|
};
|
|
@@ -1727,6 +1729,7 @@ declare class CampaignApi extends BaseService {
|
|
|
1727
1729
|
* @param params.addressKey - The address key of a user's address.
|
|
1728
1730
|
* @param params.contactNumber - The contact number of the user.
|
|
1729
1731
|
* @param params.pointUnit - The point unit of the campaign.
|
|
1732
|
+
* @param params.spPoints - Point Per Unit x Quantity (Donate only).
|
|
1730
1733
|
* @param params.options - Additional options for the redemption.
|
|
1731
1734
|
* @param requestOptions - The options for the HTTP request.
|
|
1732
1735
|
* @returns A promise that resolves to a service response containing the redeem response.
|
|
@@ -1737,6 +1740,7 @@ declare class CampaignApi extends BaseService {
|
|
|
1737
1740
|
addressKey?: string;
|
|
1738
1741
|
contactNumber?: string;
|
|
1739
1742
|
pointUnit?: string;
|
|
1743
|
+
spPoints?: number;
|
|
1740
1744
|
options?: {
|
|
1741
1745
|
[key: string]: unknown;
|
|
1742
1746
|
};
|
package/dist/index.js
CHANGED
|
@@ -884,6 +884,7 @@ var CampaignApi = class extends BaseService {
|
|
|
884
884
|
* @param params.addressKey - The address key of a user's address.
|
|
885
885
|
* @param params.contactNumber - The contact number of the user.
|
|
886
886
|
* @param params.options - Additional options for the redemption.
|
|
887
|
+
* @param params.spPoints - Point Per Unit x Quantity (Donate only).
|
|
887
888
|
* @param requestOptions - The options for the HTTP request.
|
|
888
889
|
* @returns A promise that resolves to a service response containing the redeem response.
|
|
889
890
|
*/
|
|
@@ -894,7 +895,8 @@ var CampaignApi = class extends BaseService {
|
|
|
894
895
|
__spreadValues({
|
|
895
896
|
address_key: params.addressKey,
|
|
896
897
|
contact_number: params.contactNumber,
|
|
897
|
-
pointUnit: params.pointUnit
|
|
898
|
+
pointUnit: params.pointUnit,
|
|
899
|
+
sp_points: params.spPoints
|
|
898
900
|
}, params.options),
|
|
899
901
|
{
|
|
900
902
|
headers: __spreadValues({
|
|
@@ -915,6 +917,7 @@ var CampaignApi = class extends BaseService {
|
|
|
915
917
|
* @param params.addressKey - The address key of a user's address.
|
|
916
918
|
* @param params.contactNumber - The contact number of the user.
|
|
917
919
|
* @param params.pointUnit - The point unit of the campaign.
|
|
920
|
+
* @param params.spPoints - Point Per Unit x Quantity (Donate only).
|
|
918
921
|
* @param params.options - Additional options for the redemption.
|
|
919
922
|
* @param requestOptions - The options for the HTTP request.
|
|
920
923
|
* @returns A promise that resolves to a service response containing the redeem response.
|
|
@@ -927,7 +930,8 @@ var CampaignApi = class extends BaseService {
|
|
|
927
930
|
quantity: params.quantity,
|
|
928
931
|
address_key: params.addressKey,
|
|
929
932
|
contact_number: params.contactNumber,
|
|
930
|
-
pointUnit: params.pointUnit
|
|
933
|
+
pointUnit: params.pointUnit,
|
|
934
|
+
sp_points: params.spPoints
|
|
931
935
|
}, params.options),
|
|
932
936
|
requestOptions
|
|
933
937
|
);
|