@bzbs/react-api-client 1.2.0 → 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 CHANGED
@@ -139,6 +139,7 @@ interface Badge {
139
139
  Description?: string;
140
140
  FbDescription?: string;
141
141
  Points?: number;
142
+ PointUnit?: string;
142
143
  Active?: boolean;
143
144
  MaxLevels?: number;
144
145
  StartDate?: any;
@@ -196,6 +197,9 @@ interface Mission {
196
197
  Value?: number;
197
198
  Current?: number;
198
199
  IsComplete?: boolean;
200
+ Name?: string;
201
+ ApplyStartDate?: number;
202
+ ApplyEndDate?: number;
199
203
  }
200
204
 
201
205
  interface PointUnit {
@@ -1720,6 +1724,9 @@ declare class CampaignApi extends BaseService {
1720
1724
  * @param params - The parameters.
1721
1725
  * @param params.id - The ID of the campaign to redeem.
1722
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.
1723
1730
  * @param params.options - Additional options for the redemption.
1724
1731
  * @param requestOptions - The options for the HTTP request.
1725
1732
  * @returns A promise that resolves to a service response containing the redeem response.
@@ -1727,6 +1734,9 @@ declare class CampaignApi extends BaseService {
1727
1734
  bulkRedeem(params: {
1728
1735
  id: string;
1729
1736
  quantity: number;
1737
+ addressKey?: string;
1738
+ contactNumber?: string;
1739
+ pointUnit?: string;
1730
1740
  options?: {
1731
1741
  [key: string]: unknown;
1732
1742
  };
package/dist/index.d.ts CHANGED
@@ -139,6 +139,7 @@ interface Badge {
139
139
  Description?: string;
140
140
  FbDescription?: string;
141
141
  Points?: number;
142
+ PointUnit?: string;
142
143
  Active?: boolean;
143
144
  MaxLevels?: number;
144
145
  StartDate?: any;
@@ -196,6 +197,9 @@ interface Mission {
196
197
  Value?: number;
197
198
  Current?: number;
198
199
  IsComplete?: boolean;
200
+ Name?: string;
201
+ ApplyStartDate?: number;
202
+ ApplyEndDate?: number;
199
203
  }
200
204
 
201
205
  interface PointUnit {
@@ -1720,6 +1724,9 @@ declare class CampaignApi extends BaseService {
1720
1724
  * @param params - The parameters.
1721
1725
  * @param params.id - The ID of the campaign to redeem.
1722
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.
1723
1730
  * @param params.options - Additional options for the redemption.
1724
1731
  * @param requestOptions - The options for the HTTP request.
1725
1732
  * @returns A promise that resolves to a service response containing the redeem response.
@@ -1727,6 +1734,9 @@ declare class CampaignApi extends BaseService {
1727
1734
  bulkRedeem(params: {
1728
1735
  id: string;
1729
1736
  quantity: number;
1737
+ addressKey?: string;
1738
+ contactNumber?: string;
1739
+ pointUnit?: string;
1730
1740
  options?: {
1731
1741
  [key: string]: unknown;
1732
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
  );