@bzbs/react-api-client 1.0.8 → 1.0.10

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
@@ -1169,6 +1169,9 @@ declare class AuthenticateApi extends BaseService {
1169
1169
  * @param params - The parameters.
1170
1170
  * @param params.appId - Your application id.
1171
1171
  * @param params.uuid - The unique device identifier.
1172
+ * @param params.otp - The OTP to confirm. (For Login with OTP only)
1173
+ * @param params.refcode - The reference code for the OTP. (For Login with OTP only)
1174
+ * @param params.contact_number - The contact number for the user. (For Login with OTP only)
1172
1175
  * @param params.options - (Optional) Additional params for the request.
1173
1176
  * @param requestOptions - Optional request options.
1174
1177
  * @returns A promise that resolves to a ServiceResponse containing the login response.
@@ -1182,6 +1185,10 @@ declare class AuthenticateApi extends BaseService {
1182
1185
  deviceNotificationEnabled: boolean;
1183
1186
  clientVersion: string;
1184
1187
  deviceToken: string;
1188
+ macAddress: string;
1189
+ otp?: string;
1190
+ refcode?: string;
1191
+ contact_number?: string;
1185
1192
  options?: {
1186
1193
  [key: string]: unknown;
1187
1194
  };
@@ -1207,6 +1214,7 @@ declare class AuthenticateApi extends BaseService {
1207
1214
  deviceNotificationEnabled: boolean;
1208
1215
  clientVersion: string;
1209
1216
  deviceToken: string;
1217
+ macAddress: string;
1210
1218
  options?: {
1211
1219
  [key: string]: unknown;
1212
1220
  };
@@ -1232,6 +1240,7 @@ declare class AuthenticateApi extends BaseService {
1232
1240
  deviceNotificationEnabled: boolean;
1233
1241
  clientVersion: string;
1234
1242
  deviceToken: string;
1243
+ macAddress: string;
1235
1244
  options?: {
1236
1245
  [key: string]: unknown;
1237
1246
  };
@@ -1260,6 +1269,7 @@ declare class AuthenticateApi extends BaseService {
1260
1269
  deviceNotificationEnabled: boolean;
1261
1270
  clientVersion: string;
1262
1271
  deviceToken: string;
1272
+ macAddress: string;
1263
1273
  options?: {
1264
1274
  [key: string]: unknown;
1265
1275
  };
@@ -1287,6 +1297,7 @@ declare class AuthenticateApi extends BaseService {
1287
1297
  deviceNotificationEnabled: boolean;
1288
1298
  clientVersion: string;
1289
1299
  deviceToken: string;
1300
+ macAddress: string;
1290
1301
  options?: {
1291
1302
  [key: string]: unknown;
1292
1303
  };
@@ -1313,6 +1324,7 @@ declare class AuthenticateApi extends BaseService {
1313
1324
  deviceNotificationEnabled: boolean;
1314
1325
  clientVersion: string;
1315
1326
  deviceToken: string;
1327
+ macAddress: string;
1316
1328
  options?: {
1317
1329
  [key: string]: unknown;
1318
1330
  };
@@ -1452,6 +1464,7 @@ declare class AuthenticateApi extends BaseService {
1452
1464
  appId: string;
1453
1465
  clientVersion?: string;
1454
1466
  deviceToken?: string;
1467
+ macAddress?: string;
1455
1468
  options?: {
1456
1469
  [key: string]: unknown;
1457
1470
  };
@@ -1473,6 +1486,7 @@ declare class AuthenticateApi extends BaseService {
1473
1486
  appId: string;
1474
1487
  clientVersion?: string;
1475
1488
  deviceToken?: string;
1489
+ macAddress?: string;
1476
1490
  options?: {
1477
1491
  [key: string]: unknown;
1478
1492
  };
package/dist/index.d.ts CHANGED
@@ -1169,6 +1169,9 @@ declare class AuthenticateApi extends BaseService {
1169
1169
  * @param params - The parameters.
1170
1170
  * @param params.appId - Your application id.
1171
1171
  * @param params.uuid - The unique device identifier.
1172
+ * @param params.otp - The OTP to confirm. (For Login with OTP only)
1173
+ * @param params.refcode - The reference code for the OTP. (For Login with OTP only)
1174
+ * @param params.contact_number - The contact number for the user. (For Login with OTP only)
1172
1175
  * @param params.options - (Optional) Additional params for the request.
1173
1176
  * @param requestOptions - Optional request options.
1174
1177
  * @returns A promise that resolves to a ServiceResponse containing the login response.
@@ -1182,6 +1185,10 @@ declare class AuthenticateApi extends BaseService {
1182
1185
  deviceNotificationEnabled: boolean;
1183
1186
  clientVersion: string;
1184
1187
  deviceToken: string;
1188
+ macAddress: string;
1189
+ otp?: string;
1190
+ refcode?: string;
1191
+ contact_number?: string;
1185
1192
  options?: {
1186
1193
  [key: string]: unknown;
1187
1194
  };
@@ -1207,6 +1214,7 @@ declare class AuthenticateApi extends BaseService {
1207
1214
  deviceNotificationEnabled: boolean;
1208
1215
  clientVersion: string;
1209
1216
  deviceToken: string;
1217
+ macAddress: string;
1210
1218
  options?: {
1211
1219
  [key: string]: unknown;
1212
1220
  };
@@ -1232,6 +1240,7 @@ declare class AuthenticateApi extends BaseService {
1232
1240
  deviceNotificationEnabled: boolean;
1233
1241
  clientVersion: string;
1234
1242
  deviceToken: string;
1243
+ macAddress: string;
1235
1244
  options?: {
1236
1245
  [key: string]: unknown;
1237
1246
  };
@@ -1260,6 +1269,7 @@ declare class AuthenticateApi extends BaseService {
1260
1269
  deviceNotificationEnabled: boolean;
1261
1270
  clientVersion: string;
1262
1271
  deviceToken: string;
1272
+ macAddress: string;
1263
1273
  options?: {
1264
1274
  [key: string]: unknown;
1265
1275
  };
@@ -1287,6 +1297,7 @@ declare class AuthenticateApi extends BaseService {
1287
1297
  deviceNotificationEnabled: boolean;
1288
1298
  clientVersion: string;
1289
1299
  deviceToken: string;
1300
+ macAddress: string;
1290
1301
  options?: {
1291
1302
  [key: string]: unknown;
1292
1303
  };
@@ -1313,6 +1324,7 @@ declare class AuthenticateApi extends BaseService {
1313
1324
  deviceNotificationEnabled: boolean;
1314
1325
  clientVersion: string;
1315
1326
  deviceToken: string;
1327
+ macAddress: string;
1316
1328
  options?: {
1317
1329
  [key: string]: unknown;
1318
1330
  };
@@ -1452,6 +1464,7 @@ declare class AuthenticateApi extends BaseService {
1452
1464
  appId: string;
1453
1465
  clientVersion?: string;
1454
1466
  deviceToken?: string;
1467
+ macAddress?: string;
1455
1468
  options?: {
1456
1469
  [key: string]: unknown;
1457
1470
  };
@@ -1473,6 +1486,7 @@ declare class AuthenticateApi extends BaseService {
1473
1486
  appId: string;
1474
1487
  clientVersion?: string;
1475
1488
  deviceToken?: string;
1489
+ macAddress?: string;
1476
1490
  options?: {
1477
1491
  [key: string]: unknown;
1478
1492
  };
package/dist/index.js CHANGED
@@ -207,6 +207,9 @@ var AuthenticateApi = class extends BaseService {
207
207
  * @param params - The parameters.
208
208
  * @param params.appId - Your application id.
209
209
  * @param params.uuid - The unique device identifier.
210
+ * @param params.otp - The OTP to confirm. (For Login with OTP only)
211
+ * @param params.refcode - The reference code for the OTP. (For Login with OTP only)
212
+ * @param params.contact_number - The contact number for the user. (For Login with OTP only)
210
213
  * @param params.options - (Optional) Additional params for the request.
211
214
  * @param requestOptions - Optional request options.
212
215
  * @returns A promise that resolves to a ServiceResponse containing the login response.
@@ -221,9 +224,13 @@ var AuthenticateApi = class extends BaseService {
221
224
  device_locale: params.deviceLocale,
222
225
  os: params.os,
223
226
  platform: params.platform,
227
+ mac_address: params.macAddress,
224
228
  device_noti_enable: true,
225
229
  client_version: params.clientVersion,
226
- device_token: params.deviceToken
230
+ device_token: params.deviceToken,
231
+ otp: params.otp,
232
+ refcode: params.refcode,
233
+ contact_number: params.contact_number
227
234
  }, params.options),
228
235
  {
229
236
  headers: __spreadValues({
@@ -257,6 +264,7 @@ var AuthenticateApi = class extends BaseService {
257
264
  device_locale: params.deviceLocale,
258
265
  os: params.os,
259
266
  platform: params.platform,
267
+ mac_address: params.macAddress,
260
268
  device_noti_enable: true,
261
269
  client_version: params.clientVersion,
262
270
  device_token: params.deviceToken
@@ -293,6 +301,7 @@ var AuthenticateApi = class extends BaseService {
293
301
  device_locale: params.deviceLocale,
294
302
  os: params.os,
295
303
  platform: params.platform,
304
+ mac_address: params.macAddress,
296
305
  device_noti_enable: true,
297
306
  client_version: params.clientVersion,
298
307
  device_token: params.deviceToken
@@ -332,6 +341,7 @@ var AuthenticateApi = class extends BaseService {
332
341
  device_locale: params.deviceLocale,
333
342
  os: params.os,
334
343
  platform: params.platform,
344
+ mac_address: params.macAddress,
335
345
  device_noti_enable: true,
336
346
  client_version: params.clientVersion,
337
347
  device_token: params.deviceToken
@@ -370,6 +380,7 @@ var AuthenticateApi = class extends BaseService {
370
380
  device_locale: params.deviceLocale,
371
381
  os: params.os,
372
382
  platform: params.platform,
383
+ mac_address: params.macAddress,
373
384
  device_noti_enable: true,
374
385
  client_version: params.clientVersion,
375
386
  device_token: params.deviceToken
@@ -407,6 +418,7 @@ var AuthenticateApi = class extends BaseService {
407
418
  device_locale: params.deviceLocale,
408
419
  os: params.os,
409
420
  platform: params.platform,
421
+ mac_address: params.macAddress,
410
422
  device_noti_enable: true,
411
423
  client_version: params.clientVersion,
412
424
  device_token: params.deviceToken
@@ -605,7 +617,8 @@ var AuthenticateApi = class extends BaseService {
605
617
  uuid: params.uuid,
606
618
  app_id: params.appId,
607
619
  client_version: params.clientVersion,
608
- device_token: params.deviceToken
620
+ device_token: params.deviceToken,
621
+ mac_address: params.macAddress
609
622
  }, params.options),
610
623
  {
611
624
  headers: __spreadValues({
@@ -637,7 +650,8 @@ var AuthenticateApi = class extends BaseService {
637
650
  uuid: params.uuid,
638
651
  app_id: params.appId,
639
652
  client_version: params.clientVersion,
640
- device_token: params.deviceToken
653
+ device_token: params.deviceToken,
654
+ mac_address: params.macAddress
641
655
  }, params.options),
642
656
  {
643
657
  headers: __spreadValues({