@bzbs/react-api-client 1.2.1 → 1.2.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 +6 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +7 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1724,6 +1724,9 @@ declare class CampaignApi extends BaseService {
|
|
|
1724
1724
|
* @param params - The parameters.
|
|
1725
1725
|
* @param params.id - The ID of the campaign to redeem.
|
|
1726
1726
|
* @param params.quantity - The quantity to redeem.
|
|
1727
|
+
* @param params.addressKey - The address key of a user's address.
|
|
1728
|
+
* @param params.contactNumber - The contact number of the user.
|
|
1729
|
+
* @param params.pointUnit - The point unit of the campaign.
|
|
1727
1730
|
* @param params.options - Additional options for the redemption.
|
|
1728
1731
|
* @param requestOptions - The options for the HTTP request.
|
|
1729
1732
|
* @returns A promise that resolves to a service response containing the redeem response.
|
|
@@ -1731,6 +1734,9 @@ declare class CampaignApi extends BaseService {
|
|
|
1731
1734
|
bulkRedeem(params: {
|
|
1732
1735
|
id: string;
|
|
1733
1736
|
quantity: number;
|
|
1737
|
+
addressKey?: string;
|
|
1738
|
+
contactNumber?: string;
|
|
1739
|
+
pointUnit?: string;
|
|
1734
1740
|
options?: {
|
|
1735
1741
|
[key: string]: unknown;
|
|
1736
1742
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1724,6 +1724,9 @@ declare class CampaignApi extends BaseService {
|
|
|
1724
1724
|
* @param params - The parameters.
|
|
1725
1725
|
* @param params.id - The ID of the campaign to redeem.
|
|
1726
1726
|
* @param params.quantity - The quantity to redeem.
|
|
1727
|
+
* @param params.addressKey - The address key of a user's address.
|
|
1728
|
+
* @param params.contactNumber - The contact number of the user.
|
|
1729
|
+
* @param params.pointUnit - The point unit of the campaign.
|
|
1727
1730
|
* @param params.options - Additional options for the redemption.
|
|
1728
1731
|
* @param requestOptions - The options for the HTTP request.
|
|
1729
1732
|
* @returns A promise that resolves to a service response containing the redeem response.
|
|
@@ -1731,6 +1734,9 @@ declare class CampaignApi extends BaseService {
|
|
|
1731
1734
|
bulkRedeem(params: {
|
|
1732
1735
|
id: string;
|
|
1733
1736
|
quantity: number;
|
|
1737
|
+
addressKey?: string;
|
|
1738
|
+
contactNumber?: string;
|
|
1739
|
+
pointUnit?: string;
|
|
1734
1740
|
options?: {
|
|
1735
1741
|
[key: string]: unknown;
|
|
1736
1742
|
};
|
package/dist/index.js
CHANGED
|
@@ -912,6 +912,9 @@ var CampaignApi = class extends BaseService {
|
|
|
912
912
|
* @param params - The parameters.
|
|
913
913
|
* @param params.id - The ID of the campaign to redeem.
|
|
914
914
|
* @param params.quantity - The quantity to redeem.
|
|
915
|
+
* @param params.addressKey - The address key of a user's address.
|
|
916
|
+
* @param params.contactNumber - The contact number of the user.
|
|
917
|
+
* @param params.pointUnit - The point unit of the campaign.
|
|
915
918
|
* @param params.options - Additional options for the redemption.
|
|
916
919
|
* @param requestOptions - The options for the HTTP request.
|
|
917
920
|
* @returns A promise that resolves to a service response containing the redeem response.
|
|
@@ -921,7 +924,10 @@ var CampaignApi = class extends BaseService {
|
|
|
921
924
|
return yield this.post(
|
|
922
925
|
`campaign/${params.id}/bulkredeem`,
|
|
923
926
|
__spreadValues({
|
|
924
|
-
quantity: params.quantity
|
|
927
|
+
quantity: params.quantity,
|
|
928
|
+
address_key: params.addressKey,
|
|
929
|
+
contact_number: params.contactNumber,
|
|
930
|
+
pointUnit: params.pointUnit
|
|
925
931
|
}, params.options),
|
|
926
932
|
requestOptions
|
|
927
933
|
);
|