@bzbs/react-api-client 1.0.11 → 1.0.13

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
@@ -121,71 +121,67 @@ interface ForgetPasswordResponse {
121
121
  }
122
122
 
123
123
  interface Badge {
124
- name?: string;
125
- description?: string;
126
- fbDescription?: string;
127
- points?: number;
128
- active?: boolean;
129
- maxLevels?: number;
130
- startDate?: any;
131
- endDate?: any;
132
- period?: string;
133
- isSpecific?: boolean;
134
- isSkipNoti?: boolean;
135
- grouping?: string;
136
- autoRedeemCampaignId?: any;
137
- autoRedeemBadgeLevel?: any;
138
- autoRedeemContinueEveryLevel?: boolean;
139
- agencyId?: any;
140
- appId?: any;
141
- dependencyBadge?: any;
142
- dependencyBadgeType?: any;
143
- userLevel?: number;
144
- userLevelExpireDate?: any;
145
- userLevelExpireIn?: any;
146
- userLevelExpirePeriod?: any;
147
- userLevelExpireInRounding?: boolean;
148
- customInfo?: any;
149
- sequence?: number;
150
- nextNotificationDate?: any;
151
- nextNotificationPeriod?: any;
152
- nextNotification?: any;
153
- nextNotificationRounding?: boolean;
154
- reset?: boolean;
155
- redeemMedia?: any;
156
- isSkipNotiWhenNotEarnPoints?: boolean;
157
- level?: number;
158
- isSkipNotiAutoRedeem?: boolean;
159
- pushNotiMessage?: any;
160
- lineMessageSetting?: any;
161
- pushCampaignId?: any;
162
- pushCampaignMessage?: any;
163
- deleted?: boolean;
164
- refreshFromTraceProfile?: boolean;
165
- missions?: Mission[];
166
- partitionKey?: string;
167
- rowKey?: string;
168
- timestamp?: number;
169
- eTag?: string;
170
- isObtain?: boolean;
171
- obtainOn?: any;
172
- percentage?: number;
173
- id?: string;
124
+ Name?: string;
125
+ Description?: string;
126
+ FbDescription?: string;
127
+ Points?: number;
128
+ Active?: boolean;
129
+ MaxLevels?: number;
130
+ StartDate?: any;
131
+ EndDate?: any;
132
+ Period?: string;
133
+ IsSpecific?: boolean;
134
+ IsSkipNoti?: boolean;
135
+ Grouping?: string;
136
+ AutoRedeemCampaignId?: any;
137
+ AutoRedeemBadgeLevel?: any;
138
+ AutoRedeemContinueEveryLevel?: boolean;
139
+ AgencyId?: any;
140
+ AppId?: any;
141
+ DependencyBadge?: any;
142
+ DependencyBadgeType?: any;
143
+ UserLevel?: number;
144
+ UserLevelExpireDate?: any;
145
+ UserLevelExpireIn?: any;
146
+ UserLevelExpirePeriod?: any;
147
+ UserLevelExpireInRounding?: boolean;
148
+ CustomInfo?: any;
149
+ Sequence?: number;
150
+ NextNotificationDate?: any;
151
+ NextNotificationPeriod?: any;
152
+ NextNotification?: any;
153
+ NextNotificationRounding?: boolean;
154
+ Reset?: boolean;
155
+ RedeemMedia?: any;
156
+ IsSkipNotiWhenNotEarnPoints?: boolean;
157
+ Level?: number;
158
+ IsSkipNotiAutoRedeem?: boolean;
159
+ PushNotiMessage?: any;
160
+ LineMessageSetting?: any;
161
+ PushCampaignId?: any;
162
+ PushCampaignMessage?: any;
163
+ Deleted?: boolean;
164
+ RefreshFromTraceProfile?: boolean;
165
+ Missions?: Mission[];
166
+ PartitionKey?: string;
167
+ RowKey?: string;
168
+ Timestamp?: number;
169
+ ETag?: string;
170
+ IsObtain?: boolean;
171
+ ObtainOn?: any;
172
+ Percentage?: number;
173
+ Id?: string;
174
174
  unlocked_by_others?: boolean;
175
175
  auto_redeem?: any;
176
176
  fb_description?: string;
177
- IsSkipNoti?: boolean;
178
- CustomInfo?: any;
179
- UserLevel?: number;
180
177
  IsSkipNextNoti?: boolean;
181
- error?: any;
182
- LineMessageSetting?: any;
178
+ Error?: any;
183
179
  }
184
180
  interface Mission {
185
- tracePlanId?: string;
186
- value?: number;
187
- current?: number;
188
- isComplete?: boolean;
181
+ TracePlanId?: string;
182
+ Value?: number;
183
+ Current?: number;
184
+ IsComplete?: boolean;
189
185
  }
190
186
 
191
187
  interface CampaignDetail {
@@ -699,6 +695,7 @@ interface ProfileResponse {
699
695
  NotificationMarketing?: number;
700
696
  LineMarketing?: number;
701
697
  updated_points?: UpdatedPoints;
698
+ usercode?: string;
702
699
  Token?: string;
703
700
  Jwt?: string;
704
701
  Info1?: string;
@@ -2248,6 +2245,26 @@ declare class ProfileApi extends BaseService {
2248
2245
  [key: string]: unknown;
2249
2246
  };
2250
2247
  }, requestOptions?: RequestOptions): Promise<ServiceResponse<any>>;
2248
+ /**
2249
+ * Changes the contact number for the current user.
2250
+ *
2251
+ * @param params - The parameters for changing the contact number.
2252
+ * @param params.contactNumber - The new contact number.
2253
+ * @param params.otp - The one-time password for verification.
2254
+ * @param params.refCode - The reference code for verification.
2255
+ * @param params.options - Additional options for the request.
2256
+ * @param requestOptions - The options for the request.
2257
+ * @returns A promise that resolves to a ServiceResponse containing the result of the request.
2258
+ */
2259
+ changeContactNumberV3(params: {
2260
+ userId: string;
2261
+ contactNumber: string;
2262
+ otp: string;
2263
+ refCode: string;
2264
+ options?: {
2265
+ [key: string]: unknown;
2266
+ };
2267
+ }, requestOptions?: RequestOptions): Promise<ServiceResponse<any>>;
2251
2268
  /**
2252
2269
  * Retrieves the updated points for the current user's profile.
2253
2270
  *
package/dist/index.d.ts CHANGED
@@ -121,71 +121,67 @@ interface ForgetPasswordResponse {
121
121
  }
122
122
 
123
123
  interface Badge {
124
- name?: string;
125
- description?: string;
126
- fbDescription?: string;
127
- points?: number;
128
- active?: boolean;
129
- maxLevels?: number;
130
- startDate?: any;
131
- endDate?: any;
132
- period?: string;
133
- isSpecific?: boolean;
134
- isSkipNoti?: boolean;
135
- grouping?: string;
136
- autoRedeemCampaignId?: any;
137
- autoRedeemBadgeLevel?: any;
138
- autoRedeemContinueEveryLevel?: boolean;
139
- agencyId?: any;
140
- appId?: any;
141
- dependencyBadge?: any;
142
- dependencyBadgeType?: any;
143
- userLevel?: number;
144
- userLevelExpireDate?: any;
145
- userLevelExpireIn?: any;
146
- userLevelExpirePeriod?: any;
147
- userLevelExpireInRounding?: boolean;
148
- customInfo?: any;
149
- sequence?: number;
150
- nextNotificationDate?: any;
151
- nextNotificationPeriod?: any;
152
- nextNotification?: any;
153
- nextNotificationRounding?: boolean;
154
- reset?: boolean;
155
- redeemMedia?: any;
156
- isSkipNotiWhenNotEarnPoints?: boolean;
157
- level?: number;
158
- isSkipNotiAutoRedeem?: boolean;
159
- pushNotiMessage?: any;
160
- lineMessageSetting?: any;
161
- pushCampaignId?: any;
162
- pushCampaignMessage?: any;
163
- deleted?: boolean;
164
- refreshFromTraceProfile?: boolean;
165
- missions?: Mission[];
166
- partitionKey?: string;
167
- rowKey?: string;
168
- timestamp?: number;
169
- eTag?: string;
170
- isObtain?: boolean;
171
- obtainOn?: any;
172
- percentage?: number;
173
- id?: string;
124
+ Name?: string;
125
+ Description?: string;
126
+ FbDescription?: string;
127
+ Points?: number;
128
+ Active?: boolean;
129
+ MaxLevels?: number;
130
+ StartDate?: any;
131
+ EndDate?: any;
132
+ Period?: string;
133
+ IsSpecific?: boolean;
134
+ IsSkipNoti?: boolean;
135
+ Grouping?: string;
136
+ AutoRedeemCampaignId?: any;
137
+ AutoRedeemBadgeLevel?: any;
138
+ AutoRedeemContinueEveryLevel?: boolean;
139
+ AgencyId?: any;
140
+ AppId?: any;
141
+ DependencyBadge?: any;
142
+ DependencyBadgeType?: any;
143
+ UserLevel?: number;
144
+ UserLevelExpireDate?: any;
145
+ UserLevelExpireIn?: any;
146
+ UserLevelExpirePeriod?: any;
147
+ UserLevelExpireInRounding?: boolean;
148
+ CustomInfo?: any;
149
+ Sequence?: number;
150
+ NextNotificationDate?: any;
151
+ NextNotificationPeriod?: any;
152
+ NextNotification?: any;
153
+ NextNotificationRounding?: boolean;
154
+ Reset?: boolean;
155
+ RedeemMedia?: any;
156
+ IsSkipNotiWhenNotEarnPoints?: boolean;
157
+ Level?: number;
158
+ IsSkipNotiAutoRedeem?: boolean;
159
+ PushNotiMessage?: any;
160
+ LineMessageSetting?: any;
161
+ PushCampaignId?: any;
162
+ PushCampaignMessage?: any;
163
+ Deleted?: boolean;
164
+ RefreshFromTraceProfile?: boolean;
165
+ Missions?: Mission[];
166
+ PartitionKey?: string;
167
+ RowKey?: string;
168
+ Timestamp?: number;
169
+ ETag?: string;
170
+ IsObtain?: boolean;
171
+ ObtainOn?: any;
172
+ Percentage?: number;
173
+ Id?: string;
174
174
  unlocked_by_others?: boolean;
175
175
  auto_redeem?: any;
176
176
  fb_description?: string;
177
- IsSkipNoti?: boolean;
178
- CustomInfo?: any;
179
- UserLevel?: number;
180
177
  IsSkipNextNoti?: boolean;
181
- error?: any;
182
- LineMessageSetting?: any;
178
+ Error?: any;
183
179
  }
184
180
  interface Mission {
185
- tracePlanId?: string;
186
- value?: number;
187
- current?: number;
188
- isComplete?: boolean;
181
+ TracePlanId?: string;
182
+ Value?: number;
183
+ Current?: number;
184
+ IsComplete?: boolean;
189
185
  }
190
186
 
191
187
  interface CampaignDetail {
@@ -699,6 +695,7 @@ interface ProfileResponse {
699
695
  NotificationMarketing?: number;
700
696
  LineMarketing?: number;
701
697
  updated_points?: UpdatedPoints;
698
+ usercode?: string;
702
699
  Token?: string;
703
700
  Jwt?: string;
704
701
  Info1?: string;
@@ -2248,6 +2245,26 @@ declare class ProfileApi extends BaseService {
2248
2245
  [key: string]: unknown;
2249
2246
  };
2250
2247
  }, requestOptions?: RequestOptions): Promise<ServiceResponse<any>>;
2248
+ /**
2249
+ * Changes the contact number for the current user.
2250
+ *
2251
+ * @param params - The parameters for changing the contact number.
2252
+ * @param params.contactNumber - The new contact number.
2253
+ * @param params.otp - The one-time password for verification.
2254
+ * @param params.refCode - The reference code for verification.
2255
+ * @param params.options - Additional options for the request.
2256
+ * @param requestOptions - The options for the request.
2257
+ * @returns A promise that resolves to a ServiceResponse containing the result of the request.
2258
+ */
2259
+ changeContactNumberV3(params: {
2260
+ userId: string;
2261
+ contactNumber: string;
2262
+ otp: string;
2263
+ refCode: string;
2264
+ options?: {
2265
+ [key: string]: unknown;
2266
+ };
2267
+ }, requestOptions?: RequestOptions): Promise<ServiceResponse<any>>;
2251
2268
  /**
2252
2269
  * Retrieves the updated points for the current user's profile.
2253
2270
  *
package/dist/index.js CHANGED
@@ -1706,6 +1706,36 @@ var ProfileApi = class extends BaseService {
1706
1706
  );
1707
1707
  });
1708
1708
  }
1709
+ /**
1710
+ * Changes the contact number for the current user.
1711
+ *
1712
+ * @param params - The parameters for changing the contact number.
1713
+ * @param params.contactNumber - The new contact number.
1714
+ * @param params.otp - The one-time password for verification.
1715
+ * @param params.refCode - The reference code for verification.
1716
+ * @param params.options - Additional options for the request.
1717
+ * @param requestOptions - The options for the request.
1718
+ * @returns A promise that resolves to a ServiceResponse containing the result of the request.
1719
+ */
1720
+ changeContactNumberV3(params, requestOptions) {
1721
+ return __async(this, null, function* () {
1722
+ return yield this.post(
1723
+ `profile/${params.userId}/contact_number`,
1724
+ __spreadValues({
1725
+ contact_number: params.contactNumber,
1726
+ otp: params.otp,
1727
+ refcode: params.refCode
1728
+ }, params.options),
1729
+ {
1730
+ headers: __spreadValues({
1731
+ "Content-Type": "application/x-www-form-urlencoded"
1732
+ }, requestOptions == null ? void 0 : requestOptions.headers),
1733
+ data: requestOptions == null ? void 0 : requestOptions.data,
1734
+ params: requestOptions == null ? void 0 : requestOptions.params
1735
+ }
1736
+ );
1737
+ });
1738
+ }
1709
1739
  /**
1710
1740
  * Retrieves the updated points for the current user's profile.
1711
1741
  *