zmp-sdk 2.35.3 → 2.35.5
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/apis/apis/authorize.js +1 -1
- package/apis/apis/createOrder.js +1 -1
- package/apis/apis/index.js +1 -0
- package/apis/common/apis/general/payment/createOrder.js +1 -1
- package/apis/common/call/zaloNative.js +1 -1
- package/apis/constants.js +1 -1
- package/apis/index.d.ts +231 -225
- package/apis/package.json.js +1 -1
- package/browser.min.js +2 -2
- package/index.d.ts +235 -229
- package/index.es.js +2 -2
- package/index.js +2 -2
- package/index.umd.js +3 -3
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -285,208 +285,6 @@ type LogData = {
|
|
|
285
285
|
data: any;
|
|
286
286
|
};
|
|
287
287
|
|
|
288
|
-
type AsyncCallbackFailObject = {
|
|
289
|
-
code: number;
|
|
290
|
-
message?: string | undefined;
|
|
291
|
-
api?: string | undefined;
|
|
292
|
-
[key: string]: any;
|
|
293
|
-
};
|
|
294
|
-
type IAPPayTypeType = "SUBSCRIPTION" | "ONETIME";
|
|
295
|
-
type IAPMethodType = "IAP" | "IAP_SANDBOX";
|
|
296
|
-
type ProrationModeType = "UNKNOW" | "DEFERRED" | "IMMEDIATE_AND_CHARGE_FULL_PRICE";
|
|
297
|
-
type AsyncCallback<T = any> = {
|
|
298
|
-
success?: ((res: T) => void) | undefined;
|
|
299
|
-
fail?: ((err: AsyncCallbackFailObject) => void) | undefined;
|
|
300
|
-
};
|
|
301
|
-
type AsyncVoidCallback = {
|
|
302
|
-
success?: () => void;
|
|
303
|
-
fail?: ((err: AsyncCallbackFailObject) => void) | undefined;
|
|
304
|
-
};
|
|
305
|
-
type GetLocationReturns = {
|
|
306
|
-
/** latitude */
|
|
307
|
-
latitude?: string;
|
|
308
|
-
/** longitude */
|
|
309
|
-
longitude?: string;
|
|
310
|
-
/** timestamp */
|
|
311
|
-
timestamp?: string;
|
|
312
|
-
/** provider */
|
|
313
|
-
provider?: string;
|
|
314
|
-
token?: string;
|
|
315
|
-
};
|
|
316
|
-
interface SystemInfo {
|
|
317
|
-
/** Mini app version */
|
|
318
|
-
version: string;
|
|
319
|
-
/** SDK version */
|
|
320
|
-
apiVersion: string;
|
|
321
|
-
/** Zalo version */
|
|
322
|
-
zaloVersion: string;
|
|
323
|
-
/** Client platform */
|
|
324
|
-
platform: string;
|
|
325
|
-
/** Language set in Zalo */
|
|
326
|
-
language: string;
|
|
327
|
-
/** Language set in Zalo */
|
|
328
|
-
zaloLanguage: string;
|
|
329
|
-
/** Theme set in Zalo */
|
|
330
|
-
zaloTheme: string;
|
|
331
|
-
}
|
|
332
|
-
type SetStorageReturns = {
|
|
333
|
-
errorKeys: string[];
|
|
334
|
-
};
|
|
335
|
-
type GetStorageReturns = {
|
|
336
|
-
[key: string]: any;
|
|
337
|
-
};
|
|
338
|
-
type StorageInfo = {
|
|
339
|
-
currentSize: number;
|
|
340
|
-
limitSize: number;
|
|
341
|
-
};
|
|
342
|
-
type RemoveStorageReturns = {
|
|
343
|
-
errorKeys: string[];
|
|
344
|
-
};
|
|
345
|
-
type GetUserInfoReturns = {
|
|
346
|
-
userInfo: {
|
|
347
|
-
id: string;
|
|
348
|
-
name: string;
|
|
349
|
-
avatar: string;
|
|
350
|
-
idByOA?: string;
|
|
351
|
-
isSensitive?: boolean;
|
|
352
|
-
};
|
|
353
|
-
};
|
|
354
|
-
type GetNetworkTypeReturns = {
|
|
355
|
-
networkType: NetworkType;
|
|
356
|
-
};
|
|
357
|
-
type iBeaconInfo = {
|
|
358
|
-
/** The iBeacon device broadcast UUID. */
|
|
359
|
-
uuid: string;
|
|
360
|
-
/** The iBeacon device primary ID. */
|
|
361
|
-
major: string;
|
|
362
|
-
/** The iBeacon device secondary ID. */
|
|
363
|
-
minor: string;
|
|
364
|
-
/** The iBeacon device distance. */
|
|
365
|
-
distance: number;
|
|
366
|
-
/** The signal strength of the device. */
|
|
367
|
-
rssi: number;
|
|
368
|
-
};
|
|
369
|
-
type GetBeaconDiscoveryReturns = {
|
|
370
|
-
beacons: Array<iBeaconInfo>;
|
|
371
|
-
};
|
|
372
|
-
type ScanQRCodeReturns = {
|
|
373
|
-
content: string;
|
|
374
|
-
};
|
|
375
|
-
type OpenPostFeedReturns = {
|
|
376
|
-
status: 0 | 1;
|
|
377
|
-
shareType: 0 | 1 | 2;
|
|
378
|
-
numberOfUser: number;
|
|
379
|
-
};
|
|
380
|
-
type OpenShareSheetReturns = {
|
|
381
|
-
status: 0 | 2 | 1;
|
|
382
|
-
shareType: 0 | 2 | 1;
|
|
383
|
-
numberOfUser: number;
|
|
384
|
-
};
|
|
385
|
-
type RequestCameraPermissionReturns = {
|
|
386
|
-
userAllow: boolean;
|
|
387
|
-
message: string;
|
|
388
|
-
};
|
|
389
|
-
type CheckZaloCameraPermissionReturns = {
|
|
390
|
-
userAllow: boolean;
|
|
391
|
-
};
|
|
392
|
-
type OpenBioAuthenticationReturns = {
|
|
393
|
-
code: number;
|
|
394
|
-
message: string;
|
|
395
|
-
data: {
|
|
396
|
-
domain: string;
|
|
397
|
-
code: number;
|
|
398
|
-
message: string;
|
|
399
|
-
payToken: string;
|
|
400
|
-
};
|
|
401
|
-
};
|
|
402
|
-
type CheckStateBioAuthenticationReturns = {
|
|
403
|
-
bioState: string;
|
|
404
|
-
};
|
|
405
|
-
type KeepScreenReturns = {
|
|
406
|
-
success: boolean;
|
|
407
|
-
};
|
|
408
|
-
type OpenWebviewReturns = {
|
|
409
|
-
success: boolean;
|
|
410
|
-
};
|
|
411
|
-
type GetAppInfoReturns = {
|
|
412
|
-
description: string;
|
|
413
|
-
version: string;
|
|
414
|
-
name: string;
|
|
415
|
-
appUrl: string;
|
|
416
|
-
qrCodeUrl: string;
|
|
417
|
-
logoUrl?: string;
|
|
418
|
-
};
|
|
419
|
-
type GetPhoneNumberReturns = {
|
|
420
|
-
number?: string;
|
|
421
|
-
token?: string;
|
|
422
|
-
};
|
|
423
|
-
type OpenProfilePickerReturns = {
|
|
424
|
-
users: {
|
|
425
|
-
id: string;
|
|
426
|
-
profile: {
|
|
427
|
-
name: string;
|
|
428
|
-
avatar: string;
|
|
429
|
-
};
|
|
430
|
-
code: number;
|
|
431
|
-
message: string;
|
|
432
|
-
}[];
|
|
433
|
-
};
|
|
434
|
-
type OpenMediaPickerReturns = {
|
|
435
|
-
data: string;
|
|
436
|
-
};
|
|
437
|
-
/**
|
|
438
|
-
* Context info
|
|
439
|
-
*/
|
|
440
|
-
type ContextInfo = {
|
|
441
|
-
type?: string;
|
|
442
|
-
id?: string;
|
|
443
|
-
};
|
|
444
|
-
type GetAuthCodeReturns = {
|
|
445
|
-
authCode: string;
|
|
446
|
-
authCodeVerify: string;
|
|
447
|
-
};
|
|
448
|
-
type GetZPITokenReturns = {
|
|
449
|
-
utoken: string;
|
|
450
|
-
gtoken: string;
|
|
451
|
-
zpp: string;
|
|
452
|
-
zpt: string;
|
|
453
|
-
};
|
|
454
|
-
type ChooseImageReturns = {
|
|
455
|
-
filePaths: Array<string>;
|
|
456
|
-
tempFiles: Array<{
|
|
457
|
-
path: string;
|
|
458
|
-
size: number;
|
|
459
|
-
}>;
|
|
460
|
-
};
|
|
461
|
-
type CreateOrderReturns = {
|
|
462
|
-
orderId: string;
|
|
463
|
-
};
|
|
464
|
-
type CheckTransactionReturns = {
|
|
465
|
-
msg: string;
|
|
466
|
-
orderId: string;
|
|
467
|
-
transId: string;
|
|
468
|
-
resultCode: number;
|
|
469
|
-
transTime: string;
|
|
470
|
-
createdAt: string;
|
|
471
|
-
};
|
|
472
|
-
type CreateOrderIAPReturns = {
|
|
473
|
-
orderId: string;
|
|
474
|
-
};
|
|
475
|
-
type AuthenResponse = {
|
|
476
|
-
[key: string]: boolean;
|
|
477
|
-
};
|
|
478
|
-
type GetSettingReturn = {
|
|
479
|
-
authSetting: AuthenResponse;
|
|
480
|
-
};
|
|
481
|
-
|
|
482
|
-
declare function login(args?: AsyncCallback<string>): Promise<string>;
|
|
483
|
-
|
|
484
|
-
declare function getAccessToken(args?: AsyncCallback<string>): Promise<string>;
|
|
485
|
-
|
|
486
|
-
declare function getVersion(): string;
|
|
487
|
-
|
|
488
|
-
declare function getSystemInfo(): SystemInfo;
|
|
489
|
-
|
|
490
288
|
declare type Primitive = string | number | symbol | bigint | boolean | null | undefined;
|
|
491
289
|
|
|
492
290
|
declare namespace util {
|
|
@@ -1429,6 +1227,211 @@ declare enum ZodFirstPartyTypeKind {
|
|
|
1429
1227
|
ZodPipeline = "ZodPipeline"
|
|
1430
1228
|
}
|
|
1431
1229
|
|
|
1230
|
+
type AsyncCallbackFailObject = {
|
|
1231
|
+
code: number;
|
|
1232
|
+
message?: string | undefined;
|
|
1233
|
+
api?: string | undefined;
|
|
1234
|
+
[key: string]: any;
|
|
1235
|
+
};
|
|
1236
|
+
type IAPPayTypeType = "SUBSCRIPTION" | "ONETIME";
|
|
1237
|
+
type IAPMethodType = "IAP" | "IAP_SANDBOX";
|
|
1238
|
+
type ProrationModeType = "UNKNOW" | "DEFERRED" | "IMMEDIATE_AND_CHARGE_FULL_PRICE";
|
|
1239
|
+
type AsyncCallback<T = any> = {
|
|
1240
|
+
success?: ((res: T) => void) | undefined;
|
|
1241
|
+
fail?: ((err: AsyncCallbackFailObject) => void) | undefined;
|
|
1242
|
+
};
|
|
1243
|
+
type AsyncVoidCallback = {
|
|
1244
|
+
success?: () => void;
|
|
1245
|
+
fail?: ((err: AsyncCallbackFailObject) => void) | undefined;
|
|
1246
|
+
};
|
|
1247
|
+
type GetLocationReturns = {
|
|
1248
|
+
/** latitude */
|
|
1249
|
+
latitude?: string;
|
|
1250
|
+
/** longitude */
|
|
1251
|
+
longitude?: string;
|
|
1252
|
+
/** timestamp */
|
|
1253
|
+
timestamp?: string;
|
|
1254
|
+
/** provider */
|
|
1255
|
+
provider?: string;
|
|
1256
|
+
token?: string;
|
|
1257
|
+
};
|
|
1258
|
+
interface SystemInfo {
|
|
1259
|
+
/** Mini app version */
|
|
1260
|
+
version: string;
|
|
1261
|
+
/** SDK version */
|
|
1262
|
+
apiVersion: string;
|
|
1263
|
+
/** Zalo version */
|
|
1264
|
+
zaloVersion: string;
|
|
1265
|
+
/** Client platform */
|
|
1266
|
+
platform: string;
|
|
1267
|
+
/** Language set in Zalo */
|
|
1268
|
+
language: string;
|
|
1269
|
+
/** Language set in Zalo */
|
|
1270
|
+
zaloLanguage: string;
|
|
1271
|
+
/** Theme set in Zalo */
|
|
1272
|
+
zaloTheme: string;
|
|
1273
|
+
}
|
|
1274
|
+
type SetStorageReturns = {
|
|
1275
|
+
errorKeys: string[];
|
|
1276
|
+
};
|
|
1277
|
+
type GetStorageReturns = {
|
|
1278
|
+
[key: string]: any;
|
|
1279
|
+
};
|
|
1280
|
+
type StorageInfo = {
|
|
1281
|
+
currentSize: number;
|
|
1282
|
+
limitSize: number;
|
|
1283
|
+
};
|
|
1284
|
+
type RemoveStorageReturns = {
|
|
1285
|
+
errorKeys: string[];
|
|
1286
|
+
};
|
|
1287
|
+
type GetUserInfoReturns = {
|
|
1288
|
+
userInfo: {
|
|
1289
|
+
id: string;
|
|
1290
|
+
name: string;
|
|
1291
|
+
avatar: string;
|
|
1292
|
+
idByOA?: string;
|
|
1293
|
+
isSensitive?: boolean;
|
|
1294
|
+
followedOA?: boolean;
|
|
1295
|
+
};
|
|
1296
|
+
};
|
|
1297
|
+
type GetNetworkTypeReturns = {
|
|
1298
|
+
networkType: NetworkType;
|
|
1299
|
+
};
|
|
1300
|
+
type iBeaconInfo = {
|
|
1301
|
+
/** The iBeacon device broadcast UUID. */
|
|
1302
|
+
uuid: string;
|
|
1303
|
+
/** The iBeacon device primary ID. */
|
|
1304
|
+
major: string;
|
|
1305
|
+
/** The iBeacon device secondary ID. */
|
|
1306
|
+
minor: string;
|
|
1307
|
+
/** The iBeacon device distance. */
|
|
1308
|
+
distance: number;
|
|
1309
|
+
/** The signal strength of the device. */
|
|
1310
|
+
rssi: number;
|
|
1311
|
+
};
|
|
1312
|
+
type GetBeaconDiscoveryReturns = {
|
|
1313
|
+
beacons: Array<iBeaconInfo>;
|
|
1314
|
+
};
|
|
1315
|
+
type ScanQRCodeReturns = {
|
|
1316
|
+
content: string;
|
|
1317
|
+
};
|
|
1318
|
+
type OpenPostFeedReturns = {
|
|
1319
|
+
status: 0 | 1;
|
|
1320
|
+
shareType: 0 | 1 | 2;
|
|
1321
|
+
numberOfUser: number;
|
|
1322
|
+
};
|
|
1323
|
+
type OpenShareSheetReturns = {
|
|
1324
|
+
status: 0 | 2 | 1;
|
|
1325
|
+
shareType: 0 | 2 | 1;
|
|
1326
|
+
numberOfUser: number;
|
|
1327
|
+
};
|
|
1328
|
+
type RequestCameraPermissionReturns = {
|
|
1329
|
+
userAllow: boolean;
|
|
1330
|
+
message: string;
|
|
1331
|
+
};
|
|
1332
|
+
type CheckZaloCameraPermissionReturns = {
|
|
1333
|
+
userAllow: boolean;
|
|
1334
|
+
};
|
|
1335
|
+
type OpenBioAuthenticationReturns = {
|
|
1336
|
+
code: number;
|
|
1337
|
+
message: string;
|
|
1338
|
+
data: {
|
|
1339
|
+
domain: string;
|
|
1340
|
+
code: number;
|
|
1341
|
+
message: string;
|
|
1342
|
+
payToken: string;
|
|
1343
|
+
};
|
|
1344
|
+
};
|
|
1345
|
+
type CheckStateBioAuthenticationReturns = {
|
|
1346
|
+
bioState: string;
|
|
1347
|
+
};
|
|
1348
|
+
type KeepScreenReturns = {
|
|
1349
|
+
success: boolean;
|
|
1350
|
+
};
|
|
1351
|
+
type OpenWebviewReturns = {
|
|
1352
|
+
success: boolean;
|
|
1353
|
+
};
|
|
1354
|
+
type GetAppInfoReturns = {
|
|
1355
|
+
description: string;
|
|
1356
|
+
version: string;
|
|
1357
|
+
name: string;
|
|
1358
|
+
appUrl: string;
|
|
1359
|
+
qrCodeUrl: string;
|
|
1360
|
+
logoUrl?: string;
|
|
1361
|
+
};
|
|
1362
|
+
type GetPhoneNumberReturns = {
|
|
1363
|
+
number?: string;
|
|
1364
|
+
token?: string;
|
|
1365
|
+
};
|
|
1366
|
+
type OpenProfilePickerReturns = {
|
|
1367
|
+
users: {
|
|
1368
|
+
id: string;
|
|
1369
|
+
profile: {
|
|
1370
|
+
name: string;
|
|
1371
|
+
avatar: string;
|
|
1372
|
+
};
|
|
1373
|
+
code: number;
|
|
1374
|
+
message: string;
|
|
1375
|
+
}[];
|
|
1376
|
+
};
|
|
1377
|
+
type OpenMediaPickerReturns = {
|
|
1378
|
+
data: string;
|
|
1379
|
+
};
|
|
1380
|
+
/**
|
|
1381
|
+
* Context info
|
|
1382
|
+
*/
|
|
1383
|
+
type ContextInfo = {
|
|
1384
|
+
type?: string;
|
|
1385
|
+
id?: string;
|
|
1386
|
+
};
|
|
1387
|
+
type GetAuthCodeReturns = {
|
|
1388
|
+
authCode: string;
|
|
1389
|
+
authCodeVerify: string;
|
|
1390
|
+
};
|
|
1391
|
+
type GetZPITokenReturns = {
|
|
1392
|
+
utoken: string;
|
|
1393
|
+
gtoken: string;
|
|
1394
|
+
zpp: string;
|
|
1395
|
+
zpt: string;
|
|
1396
|
+
};
|
|
1397
|
+
type ChooseImageReturns = {
|
|
1398
|
+
filePaths: Array<string>;
|
|
1399
|
+
tempFiles: Array<{
|
|
1400
|
+
path: string;
|
|
1401
|
+
size: number;
|
|
1402
|
+
}>;
|
|
1403
|
+
};
|
|
1404
|
+
type CreateOrderReturns = {
|
|
1405
|
+
orderId: string;
|
|
1406
|
+
};
|
|
1407
|
+
type CheckTransactionReturns = {
|
|
1408
|
+
msg: string;
|
|
1409
|
+
orderId: string;
|
|
1410
|
+
transId: string;
|
|
1411
|
+
resultCode: number;
|
|
1412
|
+
transTime: string;
|
|
1413
|
+
createdAt: string;
|
|
1414
|
+
};
|
|
1415
|
+
type CreateOrderIAPReturns = {
|
|
1416
|
+
orderId: string;
|
|
1417
|
+
};
|
|
1418
|
+
declare const AuthenScopeProperty: ZodEnum<["scope.userInfo", "scope.userLocation", "scope.userPhonenumber"]>;
|
|
1419
|
+
type AuthenScopeType = TypeOf<typeof AuthenScopeProperty>;
|
|
1420
|
+
type AuthenResponse = Partial<{
|
|
1421
|
+
[key in AuthenScopeType]: boolean;
|
|
1422
|
+
}>;
|
|
1423
|
+
type GetSettingReturn = {
|
|
1424
|
+
authSetting: AuthenResponse;
|
|
1425
|
+
};
|
|
1426
|
+
|
|
1427
|
+
declare function login(args?: AsyncCallback<string>): Promise<string>;
|
|
1428
|
+
|
|
1429
|
+
declare function getAccessToken(args?: AsyncCallback<string>): Promise<string>;
|
|
1430
|
+
|
|
1431
|
+
declare function getVersion(): string;
|
|
1432
|
+
|
|
1433
|
+
declare function getSystemInfo(): SystemInfo;
|
|
1434
|
+
|
|
1432
1435
|
declare const setNavigationBarTitleArgs: ZodOptional<ZodObject<{
|
|
1433
1436
|
title: ZodString;
|
|
1434
1437
|
}, "strip", ZodTypeAny, {
|
|
@@ -1678,15 +1681,15 @@ declare const openPostFeedArgs: ZodUnion<[ZodObject<{
|
|
|
1678
1681
|
imageUrl?: string | undefined;
|
|
1679
1682
|
}>;
|
|
1680
1683
|
}, "strip", ZodTypeAny, {
|
|
1684
|
+
type: "image";
|
|
1681
1685
|
data: {
|
|
1682
1686
|
imageUrl?: string | undefined;
|
|
1683
1687
|
};
|
|
1684
|
-
type: "image";
|
|
1685
1688
|
}, {
|
|
1689
|
+
type: "image";
|
|
1686
1690
|
data: {
|
|
1687
1691
|
imageUrl?: string | undefined;
|
|
1688
1692
|
};
|
|
1689
|
-
type: "image";
|
|
1690
1693
|
}>, ZodObject<{
|
|
1691
1694
|
type: ZodEnum<["link"]>;
|
|
1692
1695
|
data: ZodObject<{
|
|
@@ -1706,21 +1709,21 @@ declare const openPostFeedArgs: ZodUnion<[ZodObject<{
|
|
|
1706
1709
|
link: string;
|
|
1707
1710
|
}>;
|
|
1708
1711
|
}, "strip", ZodTypeAny, {
|
|
1712
|
+
type: "link";
|
|
1709
1713
|
data: {
|
|
1710
1714
|
description?: string | undefined;
|
|
1711
1715
|
title?: string | undefined;
|
|
1712
1716
|
thumb?: string | undefined;
|
|
1713
1717
|
link: string;
|
|
1714
1718
|
};
|
|
1715
|
-
type: "link";
|
|
1716
1719
|
}, {
|
|
1720
|
+
type: "link";
|
|
1717
1721
|
data: {
|
|
1718
1722
|
description?: string | undefined;
|
|
1719
1723
|
title?: string | undefined;
|
|
1720
1724
|
thumb?: string | undefined;
|
|
1721
1725
|
link: string;
|
|
1722
1726
|
};
|
|
1723
|
-
type: "link";
|
|
1724
1727
|
}>, ZodObject<{
|
|
1725
1728
|
type: ZodEnum<["profile"]>;
|
|
1726
1729
|
data: ZodObject<{
|
|
@@ -1731,15 +1734,15 @@ declare const openPostFeedArgs: ZodUnion<[ZodObject<{
|
|
|
1731
1734
|
id?: string | undefined;
|
|
1732
1735
|
}>;
|
|
1733
1736
|
}, "strip", ZodTypeAny, {
|
|
1737
|
+
type: "profile";
|
|
1734
1738
|
data: {
|
|
1735
1739
|
id?: string | undefined;
|
|
1736
1740
|
};
|
|
1737
|
-
type: "profile";
|
|
1738
1741
|
}, {
|
|
1742
|
+
type: "profile";
|
|
1739
1743
|
data: {
|
|
1740
1744
|
id?: string | undefined;
|
|
1741
1745
|
};
|
|
1742
|
-
type: "profile";
|
|
1743
1746
|
}>]>[];
|
|
1744
1747
|
declare function openPostFeed(args: AsyncCallback<OpenPostFeedReturns> & TypeOf<(typeof openPostFeedArgs)[0]>): Promise<OpenPostFeedReturns>;
|
|
1745
1748
|
|
|
@@ -1777,17 +1780,17 @@ declare const openShareSheetArgs: ZodUnion<[ZodObject<{
|
|
|
1777
1780
|
imageUrl: string;
|
|
1778
1781
|
}>;
|
|
1779
1782
|
}, "strip", ZodTypeAny, {
|
|
1783
|
+
type: "image";
|
|
1780
1784
|
data: {
|
|
1781
1785
|
imageUrls?: string[] | undefined;
|
|
1782
1786
|
imageUrl: string;
|
|
1783
1787
|
};
|
|
1784
|
-
type: "image";
|
|
1785
1788
|
}, {
|
|
1789
|
+
type: "image";
|
|
1786
1790
|
data: {
|
|
1787
1791
|
imageUrls?: string[] | undefined;
|
|
1788
1792
|
imageUrl: string;
|
|
1789
1793
|
};
|
|
1790
|
-
type: "image";
|
|
1791
1794
|
}>, ZodObject<{
|
|
1792
1795
|
type: ZodEnum<["link"]>;
|
|
1793
1796
|
data: ZodObject<{
|
|
@@ -1801,17 +1804,17 @@ declare const openShareSheetArgs: ZodUnion<[ZodObject<{
|
|
|
1801
1804
|
link: string;
|
|
1802
1805
|
}>;
|
|
1803
1806
|
}, "strip", ZodTypeAny, {
|
|
1807
|
+
type: "link";
|
|
1804
1808
|
data: {
|
|
1805
1809
|
chatOnly?: boolean | undefined;
|
|
1806
1810
|
link: string;
|
|
1807
1811
|
};
|
|
1808
|
-
type: "link";
|
|
1809
1812
|
}, {
|
|
1813
|
+
type: "link";
|
|
1810
1814
|
data: {
|
|
1811
1815
|
chatOnly?: boolean | undefined;
|
|
1812
1816
|
link: string;
|
|
1813
1817
|
};
|
|
1814
|
-
type: "link";
|
|
1815
1818
|
}>, ZodObject<{
|
|
1816
1819
|
type: ZodEnum<["oa"]>;
|
|
1817
1820
|
data: ZodObject<{
|
|
@@ -1822,15 +1825,15 @@ declare const openShareSheetArgs: ZodUnion<[ZodObject<{
|
|
|
1822
1825
|
id: string;
|
|
1823
1826
|
}>;
|
|
1824
1827
|
}, "strip", ZodTypeAny, {
|
|
1828
|
+
type: "oa";
|
|
1825
1829
|
data: {
|
|
1826
1830
|
id: string;
|
|
1827
1831
|
};
|
|
1828
|
-
type: "oa";
|
|
1829
1832
|
}, {
|
|
1833
|
+
type: "oa";
|
|
1830
1834
|
data: {
|
|
1831
1835
|
id: string;
|
|
1832
1836
|
};
|
|
1833
|
-
type: "oa";
|
|
1834
1837
|
}>, ZodObject<{
|
|
1835
1838
|
type: ZodEnum<["gif"]>;
|
|
1836
1839
|
data: ZodObject<{
|
|
@@ -1850,21 +1853,21 @@ declare const openShareSheetArgs: ZodUnion<[ZodObject<{
|
|
|
1850
1853
|
gifUrl: string;
|
|
1851
1854
|
}>;
|
|
1852
1855
|
}, "strip", ZodTypeAny, {
|
|
1856
|
+
type: "gif";
|
|
1853
1857
|
data: {
|
|
1854
1858
|
imageUrl?: string | undefined;
|
|
1855
1859
|
width?: number | undefined;
|
|
1856
1860
|
height?: number | undefined;
|
|
1857
1861
|
gifUrl: string;
|
|
1858
1862
|
};
|
|
1859
|
-
type: "gif";
|
|
1860
1863
|
}, {
|
|
1864
|
+
type: "gif";
|
|
1861
1865
|
data: {
|
|
1862
1866
|
imageUrl?: string | undefined;
|
|
1863
1867
|
width?: number | undefined;
|
|
1864
1868
|
height?: number | undefined;
|
|
1865
1869
|
gifUrl: string;
|
|
1866
1870
|
};
|
|
1867
|
-
type: "gif";
|
|
1868
1871
|
}>, ZodObject<{
|
|
1869
1872
|
type: ZodEnum<["video"]>;
|
|
1870
1873
|
data: ZodObject<{
|
|
@@ -1884,21 +1887,21 @@ declare const openShareSheetArgs: ZodUnion<[ZodObject<{
|
|
|
1884
1887
|
videoUrl: string;
|
|
1885
1888
|
}>;
|
|
1886
1889
|
}, "strip", ZodTypeAny, {
|
|
1890
|
+
type: "video";
|
|
1887
1891
|
data: {
|
|
1888
1892
|
width?: number | undefined;
|
|
1889
1893
|
height?: number | undefined;
|
|
1890
1894
|
videoThumb: string;
|
|
1891
1895
|
videoUrl: string;
|
|
1892
1896
|
};
|
|
1893
|
-
type: "video";
|
|
1894
1897
|
}, {
|
|
1898
|
+
type: "video";
|
|
1895
1899
|
data: {
|
|
1896
1900
|
width?: number | undefined;
|
|
1897
1901
|
height?: number | undefined;
|
|
1898
1902
|
videoThumb: string;
|
|
1899
1903
|
videoUrl: string;
|
|
1900
1904
|
};
|
|
1901
|
-
type: "video";
|
|
1902
1905
|
}>, ZodObject<{
|
|
1903
1906
|
type: ZodEnum<["zmp", "zmp_deep_link"]>;
|
|
1904
1907
|
data: ZodObject<{
|
|
@@ -1907,32 +1910,32 @@ declare const openShareSheetArgs: ZodUnion<[ZodObject<{
|
|
|
1907
1910
|
path: ZodOptional<ZodString>;
|
|
1908
1911
|
description: ZodOptional<ZodDefault<ZodString>>;
|
|
1909
1912
|
}, "strip", ZodTypeAny, {
|
|
1910
|
-
description?: string | undefined;
|
|
1911
1913
|
path?: string | undefined;
|
|
1914
|
+
description?: string | undefined;
|
|
1912
1915
|
title: string;
|
|
1913
1916
|
thumbnail: string;
|
|
1914
1917
|
}, {
|
|
1915
|
-
description?: string | undefined;
|
|
1916
1918
|
path?: string | undefined;
|
|
1919
|
+
description?: string | undefined;
|
|
1917
1920
|
title: string;
|
|
1918
1921
|
thumbnail: string;
|
|
1919
1922
|
}>;
|
|
1920
1923
|
}, "strip", ZodTypeAny, {
|
|
1924
|
+
type: "zmp" | "zmp_deep_link";
|
|
1921
1925
|
data: {
|
|
1922
|
-
description?: string | undefined;
|
|
1923
1926
|
path?: string | undefined;
|
|
1927
|
+
description?: string | undefined;
|
|
1924
1928
|
title: string;
|
|
1925
1929
|
thumbnail: string;
|
|
1926
1930
|
};
|
|
1927
|
-
type: "zmp" | "zmp_deep_link";
|
|
1928
1931
|
}, {
|
|
1932
|
+
type: "zmp" | "zmp_deep_link";
|
|
1929
1933
|
data: {
|
|
1930
|
-
description?: string | undefined;
|
|
1931
1934
|
path?: string | undefined;
|
|
1935
|
+
description?: string | undefined;
|
|
1932
1936
|
title: string;
|
|
1933
1937
|
thumbnail: string;
|
|
1934
1938
|
};
|
|
1935
|
-
type: "zmp" | "zmp_deep_link";
|
|
1936
1939
|
}>]>[];
|
|
1937
1940
|
declare function openShareSheet(args: AsyncCallback<OpenShareSheetReturns> & TypeOf<(typeof openShareSheetArgs)[0]>): Promise<OpenShareSheetReturns>;
|
|
1938
1941
|
|
|
@@ -2196,8 +2199,8 @@ declare const getShareableLinkArgs: ZodObject<{
|
|
|
2196
2199
|
description: string;
|
|
2197
2200
|
title: string;
|
|
2198
2201
|
}, {
|
|
2199
|
-
description?: string | undefined;
|
|
2200
2202
|
path?: string | undefined;
|
|
2203
|
+
description?: string | undefined;
|
|
2201
2204
|
thumbnail?: string | undefined;
|
|
2202
2205
|
title: string;
|
|
2203
2206
|
}>[];
|
|
@@ -2267,16 +2270,19 @@ declare const createOrderArgs: ZodObject<{
|
|
|
2267
2270
|
item: ZodArray<ZodRecord<ZodString, ZodAny>, "many">;
|
|
2268
2271
|
desc: ZodString;
|
|
2269
2272
|
extradata: ZodOptional<ZodAny>;
|
|
2273
|
+
payload: ZodOptional<ZodAny>;
|
|
2270
2274
|
method: ZodOptional<ZodEnum<["MOMO", "ZALOPAY", "MOMO_SANDBOX", "ZALOPAY_SANDBOX", "CC", "CC_SANDBOX", "ATM", "ATM_SANDBOX", "VNPAY", "VNPAY_SANDBOX"]>>;
|
|
2271
2275
|
}, "strip", ZodTypeAny, {
|
|
2272
2276
|
method?: "ZALOPAY" | "MOMO" | "ZALOPAY_SANDBOX" | "MOMO_SANDBOX" | "ATM" | "ATM_SANDBOX" | "CC" | "CC_SANDBOX" | "VNPAY" | "VNPAY_SANDBOX" | undefined;
|
|
2273
2277
|
extradata?: any;
|
|
2278
|
+
payload?: any;
|
|
2274
2279
|
desc: string;
|
|
2275
2280
|
amount: string | number;
|
|
2276
2281
|
item: Record<string, any>[];
|
|
2277
2282
|
}, {
|
|
2278
2283
|
method?: "ZALOPAY" | "MOMO" | "ZALOPAY_SANDBOX" | "MOMO_SANDBOX" | "ATM" | "ATM_SANDBOX" | "CC" | "CC_SANDBOX" | "VNPAY" | "VNPAY_SANDBOX" | undefined;
|
|
2279
2284
|
extradata?: any;
|
|
2285
|
+
payload?: any;
|
|
2280
2286
|
desc: string;
|
|
2281
2287
|
amount: string | number;
|
|
2282
2288
|
item: Record<string, any>[];
|
|
@@ -2430,11 +2436,11 @@ declare function checkIsAllowedInteractWithOA(args: AsyncVoidCallback & TypeOf<(
|
|
|
2430
2436
|
declare function getSetting(args?: AsyncCallback<GetSettingReturn>): Promise<GetSettingReturn>;
|
|
2431
2437
|
|
|
2432
2438
|
declare const authorizeArgs: ZodOptional<ZodObject<{
|
|
2433
|
-
scopes: ZodOptional<ZodArray<
|
|
2439
|
+
scopes: ZodOptional<ZodArray<ZodEnum<["scope.userInfo", "scope.userLocation", "scope.userPhonenumber"]>, "many">>;
|
|
2434
2440
|
}, "strip", ZodTypeAny, {
|
|
2435
|
-
scopes?:
|
|
2441
|
+
scopes?: ("scope.userInfo" | "scope.userLocation" | "scope.userPhonenumber")[] | undefined;
|
|
2436
2442
|
}, {
|
|
2437
|
-
scopes?:
|
|
2443
|
+
scopes?: ("scope.userInfo" | "scope.userLocation" | "scope.userPhonenumber")[] | undefined;
|
|
2438
2444
|
}>>[];
|
|
2439
2445
|
declare function authorize(args?: AsyncVoidCallback & TypeOf<(typeof authorizeArgs)[0]>): Promise<AuthenResponse>;
|
|
2440
2446
|
|
|
@@ -2538,4 +2544,4 @@ declare const payment: {
|
|
|
2538
2544
|
createOrderIAP: typeof createOrderIAP;
|
|
2539
2545
|
};
|
|
2540
2546
|
|
|
2541
|
-
export { Action, AndroidBottomNavigationBarType, AsyncCallback, AsyncCallbackFailObject, AsyncVoidCallback, AuthenResponse, ChatType, CheckStateBioAuthenticationReturns, CheckTransactionReturns, CheckZaloCameraPermissionReturns, ChooseImageReturns, Common, ContextInfo, CreateOrderIAPReturns, CreateOrderReturns, Events as EventName, Events, GetAppInfoReturns, GetAuthCodeReturns, GetBeaconDiscoveryReturns, GetLocationReturns, GetNetworkTypeReturns, GetPhoneNumberReturns, GetSettingReturn, GetStorageReturns, GetUserInfoReturns, GetZPITokenReturns, IAPMethodType, IAPPayType, IAPPayTypeType, IOSSafeAreaBottomType, JumpStatus, KeepScreenReturns, LogData, MediaPickerType, NativeCallBackData, NetworkType, OpenBioAuthenticationReturns, OpenMediaPickerReturns, OpenPostFeedReturns, OpenProfilePickerReturns, OpenShareSheetReturns, OpenWebviewReturns, OrientationType, payment as Payment, PickAttr, PlatformType, PostFeedType, ProfileType, ProrationMode, ProrationModeType, RemoveStorageReturns, RequestCameraPermissionReturns, ScanQRCodeReturns, SetStorageReturns, ShareSheetType, StatusBarType, StorageInfo, SystemInfo, TextAlignType, VibrateType, addRating, authorize, checkStateBioAuthentication, checkTransaction, checkZaloCameraPermission, chooseImage, clearStorage, closeApp, closeLoading, configAppView, connectWifi, createOrder, createOrderIAP, createShortcut, otherApis as default, events, favoriteApp, followOA, getAccessToken, getAppInfo, getAuthCode, getBeacons, getContext, getContextAsync, getDeviceId, getDeviceIdAsync, getIDToken, getLocation, getNetworkType, getPhoneNumber, getRouteParams, getSetting, getShareableLink, getStorage, getStorageInfo, getSystemInfo, getUserID, getUserInfo, getVersion, getZPIToken, hideKeyboard, iBeaconInfo, interactOA, interactOA as interactOa, checkIsAllowedInteractWithOA as isAllowedInteractWithOA, keepScreen, login, minimizeApp, offConfirmToExit, offKeepScreen, onCallbackData, onConfirmToExit, onKeepScreen, onNetworkStatusChange, openBioAuthentication, openChat, openGroupList, openMediaPicker, openMiniApp, openOutApp, openPermissionSetting, openPhone, openPostFeed, openProfile, openProfilePicker, openSMS, openShareSheet, openWebview, removeStorage, requestCameraPermission, requestSendNotification, requestUpdateZalo, saveImageToGallery, scanQRCode, sendDataToPreviousMiniApp, setAccessToken, setAndroidBottomNavigationBar, setIOSBottomSafeArea, setNavigationBarColor, setNavigationBarLeftButton, setNavigationBarTitle, setStatusBar, setStorage, showToast, startBeaconDiscovery, stopBeaconDiscovery, unfollowOA, vibrate, viewOAQr };
|
|
2547
|
+
export { Action, AndroidBottomNavigationBarType, AsyncCallback, AsyncCallbackFailObject, AsyncVoidCallback, AuthenResponse, AuthenScopeType, ChatType, CheckStateBioAuthenticationReturns, CheckTransactionReturns, CheckZaloCameraPermissionReturns, ChooseImageReturns, Common, ContextInfo, CreateOrderIAPReturns, CreateOrderReturns, Events as EventName, Events, GetAppInfoReturns, GetAuthCodeReturns, GetBeaconDiscoveryReturns, GetLocationReturns, GetNetworkTypeReturns, GetPhoneNumberReturns, GetSettingReturn, GetStorageReturns, GetUserInfoReturns, GetZPITokenReturns, IAPMethodType, IAPPayType, IAPPayTypeType, IOSSafeAreaBottomType, JumpStatus, KeepScreenReturns, LogData, MediaPickerType, NativeCallBackData, NetworkType, OpenBioAuthenticationReturns, OpenMediaPickerReturns, OpenPostFeedReturns, OpenProfilePickerReturns, OpenShareSheetReturns, OpenWebviewReturns, OrientationType, payment as Payment, PickAttr, PlatformType, PostFeedType, ProfileType, ProrationMode, ProrationModeType, RemoveStorageReturns, RequestCameraPermissionReturns, ScanQRCodeReturns, SetStorageReturns, ShareSheetType, StatusBarType, StorageInfo, SystemInfo, TextAlignType, VibrateType, addRating, authorize, checkStateBioAuthentication, checkTransaction, checkZaloCameraPermission, chooseImage, clearStorage, closeApp, closeLoading, configAppView, connectWifi, createOrder, createOrderIAP, createShortcut, otherApis as default, events, favoriteApp, followOA, getAccessToken, getAppInfo, getAuthCode, getBeacons, getContext, getContextAsync, getDeviceId, getDeviceIdAsync, getIDToken, getLocation, getNetworkType, getPhoneNumber, getRouteParams, getSetting, getShareableLink, getStorage, getStorageInfo, getSystemInfo, getUserID, getUserInfo, getVersion, getZPIToken, hideKeyboard, iBeaconInfo, interactOA, interactOA as interactOa, checkIsAllowedInteractWithOA as isAllowedInteractWithOA, keepScreen, login, minimizeApp, offConfirmToExit, offKeepScreen, onCallbackData, onConfirmToExit, onKeepScreen, onNetworkStatusChange, openBioAuthentication, openChat, openGroupList, openMediaPicker, openMiniApp, openOutApp, openPermissionSetting, openPhone, openPostFeed, openProfile, openProfilePicker, openSMS, openShareSheet, openWebview, removeStorage, requestCameraPermission, requestSendNotification, requestUpdateZalo, saveImageToGallery, scanQRCode, sendDataToPreviousMiniApp, setAccessToken, setAndroidBottomNavigationBar, setIOSBottomSafeArea, setNavigationBarColor, setNavigationBarLeftButton, setNavigationBarTitle, setStatusBar, setStorage, showToast, startBeaconDiscovery, stopBeaconDiscovery, unfollowOA, vibrate, viewOAQr };
|