zmp-sdk 2.35.4 → 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 -226
- package/apis/package.json.js +1 -1
- package/browser.min.js +2 -2
- package/index.d.ts +235 -230
- package/index.es.js +2 -2
- package/index.js +2 -2
- package/index.umd.js +3 -3
- package/package.json +1 -1
- package/apis/apis/downloadFile.js +0 -1
- package/apis/apis/getFileInfo.js +0 -1
- package/apis/apis/getSavedFileList.js +0 -1
- package/apis/apis/removeSavedFile.js +0 -1
- package/apis/apis/saveFile.js +0 -1
- package/apis/common/apis/general/getFileInfo.js +0 -1
- package/apis/common/apis/general/getSavedFileList.js +0 -1
- package/apis/common/apis/general/lfsSaveFile.js +0 -1
- package/apis/common/apis/general/removeSavedFile.js +0 -1
- package/apis/common/apis/general/saveFile.js +0 -1
package/index.d.ts
CHANGED
|
@@ -285,209 +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
|
-
followedOA?: boolean;
|
|
353
|
-
};
|
|
354
|
-
};
|
|
355
|
-
type GetNetworkTypeReturns = {
|
|
356
|
-
networkType: NetworkType;
|
|
357
|
-
};
|
|
358
|
-
type iBeaconInfo = {
|
|
359
|
-
/** The iBeacon device broadcast UUID. */
|
|
360
|
-
uuid: string;
|
|
361
|
-
/** The iBeacon device primary ID. */
|
|
362
|
-
major: string;
|
|
363
|
-
/** The iBeacon device secondary ID. */
|
|
364
|
-
minor: string;
|
|
365
|
-
/** The iBeacon device distance. */
|
|
366
|
-
distance: number;
|
|
367
|
-
/** The signal strength of the device. */
|
|
368
|
-
rssi: number;
|
|
369
|
-
};
|
|
370
|
-
type GetBeaconDiscoveryReturns = {
|
|
371
|
-
beacons: Array<iBeaconInfo>;
|
|
372
|
-
};
|
|
373
|
-
type ScanQRCodeReturns = {
|
|
374
|
-
content: string;
|
|
375
|
-
};
|
|
376
|
-
type OpenPostFeedReturns = {
|
|
377
|
-
status: 0 | 1;
|
|
378
|
-
shareType: 0 | 1 | 2;
|
|
379
|
-
numberOfUser: number;
|
|
380
|
-
};
|
|
381
|
-
type OpenShareSheetReturns = {
|
|
382
|
-
status: 0 | 2 | 1;
|
|
383
|
-
shareType: 0 | 2 | 1;
|
|
384
|
-
numberOfUser: number;
|
|
385
|
-
};
|
|
386
|
-
type RequestCameraPermissionReturns = {
|
|
387
|
-
userAllow: boolean;
|
|
388
|
-
message: string;
|
|
389
|
-
};
|
|
390
|
-
type CheckZaloCameraPermissionReturns = {
|
|
391
|
-
userAllow: boolean;
|
|
392
|
-
};
|
|
393
|
-
type OpenBioAuthenticationReturns = {
|
|
394
|
-
code: number;
|
|
395
|
-
message: string;
|
|
396
|
-
data: {
|
|
397
|
-
domain: string;
|
|
398
|
-
code: number;
|
|
399
|
-
message: string;
|
|
400
|
-
payToken: string;
|
|
401
|
-
};
|
|
402
|
-
};
|
|
403
|
-
type CheckStateBioAuthenticationReturns = {
|
|
404
|
-
bioState: string;
|
|
405
|
-
};
|
|
406
|
-
type KeepScreenReturns = {
|
|
407
|
-
success: boolean;
|
|
408
|
-
};
|
|
409
|
-
type OpenWebviewReturns = {
|
|
410
|
-
success: boolean;
|
|
411
|
-
};
|
|
412
|
-
type GetAppInfoReturns = {
|
|
413
|
-
description: string;
|
|
414
|
-
version: string;
|
|
415
|
-
name: string;
|
|
416
|
-
appUrl: string;
|
|
417
|
-
qrCodeUrl: string;
|
|
418
|
-
logoUrl?: string;
|
|
419
|
-
};
|
|
420
|
-
type GetPhoneNumberReturns = {
|
|
421
|
-
number?: string;
|
|
422
|
-
token?: string;
|
|
423
|
-
};
|
|
424
|
-
type OpenProfilePickerReturns = {
|
|
425
|
-
users: {
|
|
426
|
-
id: string;
|
|
427
|
-
profile: {
|
|
428
|
-
name: string;
|
|
429
|
-
avatar: string;
|
|
430
|
-
};
|
|
431
|
-
code: number;
|
|
432
|
-
message: string;
|
|
433
|
-
}[];
|
|
434
|
-
};
|
|
435
|
-
type OpenMediaPickerReturns = {
|
|
436
|
-
data: string;
|
|
437
|
-
};
|
|
438
|
-
/**
|
|
439
|
-
* Context info
|
|
440
|
-
*/
|
|
441
|
-
type ContextInfo = {
|
|
442
|
-
type?: string;
|
|
443
|
-
id?: string;
|
|
444
|
-
};
|
|
445
|
-
type GetAuthCodeReturns = {
|
|
446
|
-
authCode: string;
|
|
447
|
-
authCodeVerify: string;
|
|
448
|
-
};
|
|
449
|
-
type GetZPITokenReturns = {
|
|
450
|
-
utoken: string;
|
|
451
|
-
gtoken: string;
|
|
452
|
-
zpp: string;
|
|
453
|
-
zpt: string;
|
|
454
|
-
};
|
|
455
|
-
type ChooseImageReturns = {
|
|
456
|
-
filePaths: Array<string>;
|
|
457
|
-
tempFiles: Array<{
|
|
458
|
-
path: string;
|
|
459
|
-
size: number;
|
|
460
|
-
}>;
|
|
461
|
-
};
|
|
462
|
-
type CreateOrderReturns = {
|
|
463
|
-
orderId: string;
|
|
464
|
-
};
|
|
465
|
-
type CheckTransactionReturns = {
|
|
466
|
-
msg: string;
|
|
467
|
-
orderId: string;
|
|
468
|
-
transId: string;
|
|
469
|
-
resultCode: number;
|
|
470
|
-
transTime: string;
|
|
471
|
-
createdAt: string;
|
|
472
|
-
};
|
|
473
|
-
type CreateOrderIAPReturns = {
|
|
474
|
-
orderId: string;
|
|
475
|
-
};
|
|
476
|
-
type AuthenResponse = {
|
|
477
|
-
[key: string]: boolean;
|
|
478
|
-
};
|
|
479
|
-
type GetSettingReturn = {
|
|
480
|
-
authSetting: AuthenResponse;
|
|
481
|
-
};
|
|
482
|
-
|
|
483
|
-
declare function login(args?: AsyncCallback<string>): Promise<string>;
|
|
484
|
-
|
|
485
|
-
declare function getAccessToken(args?: AsyncCallback<string>): Promise<string>;
|
|
486
|
-
|
|
487
|
-
declare function getVersion(): string;
|
|
488
|
-
|
|
489
|
-
declare function getSystemInfo(): SystemInfo;
|
|
490
|
-
|
|
491
288
|
declare type Primitive = string | number | symbol | bigint | boolean | null | undefined;
|
|
492
289
|
|
|
493
290
|
declare namespace util {
|
|
@@ -1430,6 +1227,211 @@ declare enum ZodFirstPartyTypeKind {
|
|
|
1430
1227
|
ZodPipeline = "ZodPipeline"
|
|
1431
1228
|
}
|
|
1432
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
|
+
|
|
1433
1435
|
declare const setNavigationBarTitleArgs: ZodOptional<ZodObject<{
|
|
1434
1436
|
title: ZodString;
|
|
1435
1437
|
}, "strip", ZodTypeAny, {
|
|
@@ -1679,15 +1681,15 @@ declare const openPostFeedArgs: ZodUnion<[ZodObject<{
|
|
|
1679
1681
|
imageUrl?: string | undefined;
|
|
1680
1682
|
}>;
|
|
1681
1683
|
}, "strip", ZodTypeAny, {
|
|
1684
|
+
type: "image";
|
|
1682
1685
|
data: {
|
|
1683
1686
|
imageUrl?: string | undefined;
|
|
1684
1687
|
};
|
|
1685
|
-
type: "image";
|
|
1686
1688
|
}, {
|
|
1689
|
+
type: "image";
|
|
1687
1690
|
data: {
|
|
1688
1691
|
imageUrl?: string | undefined;
|
|
1689
1692
|
};
|
|
1690
|
-
type: "image";
|
|
1691
1693
|
}>, ZodObject<{
|
|
1692
1694
|
type: ZodEnum<["link"]>;
|
|
1693
1695
|
data: ZodObject<{
|
|
@@ -1707,21 +1709,21 @@ declare const openPostFeedArgs: ZodUnion<[ZodObject<{
|
|
|
1707
1709
|
link: string;
|
|
1708
1710
|
}>;
|
|
1709
1711
|
}, "strip", ZodTypeAny, {
|
|
1712
|
+
type: "link";
|
|
1710
1713
|
data: {
|
|
1711
1714
|
description?: string | undefined;
|
|
1712
1715
|
title?: string | undefined;
|
|
1713
1716
|
thumb?: string | undefined;
|
|
1714
1717
|
link: string;
|
|
1715
1718
|
};
|
|
1716
|
-
type: "link";
|
|
1717
1719
|
}, {
|
|
1720
|
+
type: "link";
|
|
1718
1721
|
data: {
|
|
1719
1722
|
description?: string | undefined;
|
|
1720
1723
|
title?: string | undefined;
|
|
1721
1724
|
thumb?: string | undefined;
|
|
1722
1725
|
link: string;
|
|
1723
1726
|
};
|
|
1724
|
-
type: "link";
|
|
1725
1727
|
}>, ZodObject<{
|
|
1726
1728
|
type: ZodEnum<["profile"]>;
|
|
1727
1729
|
data: ZodObject<{
|
|
@@ -1732,15 +1734,15 @@ declare const openPostFeedArgs: ZodUnion<[ZodObject<{
|
|
|
1732
1734
|
id?: string | undefined;
|
|
1733
1735
|
}>;
|
|
1734
1736
|
}, "strip", ZodTypeAny, {
|
|
1737
|
+
type: "profile";
|
|
1735
1738
|
data: {
|
|
1736
1739
|
id?: string | undefined;
|
|
1737
1740
|
};
|
|
1738
|
-
type: "profile";
|
|
1739
1741
|
}, {
|
|
1742
|
+
type: "profile";
|
|
1740
1743
|
data: {
|
|
1741
1744
|
id?: string | undefined;
|
|
1742
1745
|
};
|
|
1743
|
-
type: "profile";
|
|
1744
1746
|
}>]>[];
|
|
1745
1747
|
declare function openPostFeed(args: AsyncCallback<OpenPostFeedReturns> & TypeOf<(typeof openPostFeedArgs)[0]>): Promise<OpenPostFeedReturns>;
|
|
1746
1748
|
|
|
@@ -1778,17 +1780,17 @@ declare const openShareSheetArgs: ZodUnion<[ZodObject<{
|
|
|
1778
1780
|
imageUrl: string;
|
|
1779
1781
|
}>;
|
|
1780
1782
|
}, "strip", ZodTypeAny, {
|
|
1783
|
+
type: "image";
|
|
1781
1784
|
data: {
|
|
1782
1785
|
imageUrls?: string[] | undefined;
|
|
1783
1786
|
imageUrl: string;
|
|
1784
1787
|
};
|
|
1785
|
-
type: "image";
|
|
1786
1788
|
}, {
|
|
1789
|
+
type: "image";
|
|
1787
1790
|
data: {
|
|
1788
1791
|
imageUrls?: string[] | undefined;
|
|
1789
1792
|
imageUrl: string;
|
|
1790
1793
|
};
|
|
1791
|
-
type: "image";
|
|
1792
1794
|
}>, ZodObject<{
|
|
1793
1795
|
type: ZodEnum<["link"]>;
|
|
1794
1796
|
data: ZodObject<{
|
|
@@ -1802,17 +1804,17 @@ declare const openShareSheetArgs: ZodUnion<[ZodObject<{
|
|
|
1802
1804
|
link: string;
|
|
1803
1805
|
}>;
|
|
1804
1806
|
}, "strip", ZodTypeAny, {
|
|
1807
|
+
type: "link";
|
|
1805
1808
|
data: {
|
|
1806
1809
|
chatOnly?: boolean | undefined;
|
|
1807
1810
|
link: string;
|
|
1808
1811
|
};
|
|
1809
|
-
type: "link";
|
|
1810
1812
|
}, {
|
|
1813
|
+
type: "link";
|
|
1811
1814
|
data: {
|
|
1812
1815
|
chatOnly?: boolean | undefined;
|
|
1813
1816
|
link: string;
|
|
1814
1817
|
};
|
|
1815
|
-
type: "link";
|
|
1816
1818
|
}>, ZodObject<{
|
|
1817
1819
|
type: ZodEnum<["oa"]>;
|
|
1818
1820
|
data: ZodObject<{
|
|
@@ -1823,15 +1825,15 @@ declare const openShareSheetArgs: ZodUnion<[ZodObject<{
|
|
|
1823
1825
|
id: string;
|
|
1824
1826
|
}>;
|
|
1825
1827
|
}, "strip", ZodTypeAny, {
|
|
1828
|
+
type: "oa";
|
|
1826
1829
|
data: {
|
|
1827
1830
|
id: string;
|
|
1828
1831
|
};
|
|
1829
|
-
type: "oa";
|
|
1830
1832
|
}, {
|
|
1833
|
+
type: "oa";
|
|
1831
1834
|
data: {
|
|
1832
1835
|
id: string;
|
|
1833
1836
|
};
|
|
1834
|
-
type: "oa";
|
|
1835
1837
|
}>, ZodObject<{
|
|
1836
1838
|
type: ZodEnum<["gif"]>;
|
|
1837
1839
|
data: ZodObject<{
|
|
@@ -1851,21 +1853,21 @@ declare const openShareSheetArgs: ZodUnion<[ZodObject<{
|
|
|
1851
1853
|
gifUrl: string;
|
|
1852
1854
|
}>;
|
|
1853
1855
|
}, "strip", ZodTypeAny, {
|
|
1856
|
+
type: "gif";
|
|
1854
1857
|
data: {
|
|
1855
1858
|
imageUrl?: string | undefined;
|
|
1856
1859
|
width?: number | undefined;
|
|
1857
1860
|
height?: number | undefined;
|
|
1858
1861
|
gifUrl: string;
|
|
1859
1862
|
};
|
|
1860
|
-
type: "gif";
|
|
1861
1863
|
}, {
|
|
1864
|
+
type: "gif";
|
|
1862
1865
|
data: {
|
|
1863
1866
|
imageUrl?: string | undefined;
|
|
1864
1867
|
width?: number | undefined;
|
|
1865
1868
|
height?: number | undefined;
|
|
1866
1869
|
gifUrl: string;
|
|
1867
1870
|
};
|
|
1868
|
-
type: "gif";
|
|
1869
1871
|
}>, ZodObject<{
|
|
1870
1872
|
type: ZodEnum<["video"]>;
|
|
1871
1873
|
data: ZodObject<{
|
|
@@ -1885,21 +1887,21 @@ declare const openShareSheetArgs: ZodUnion<[ZodObject<{
|
|
|
1885
1887
|
videoUrl: string;
|
|
1886
1888
|
}>;
|
|
1887
1889
|
}, "strip", ZodTypeAny, {
|
|
1890
|
+
type: "video";
|
|
1888
1891
|
data: {
|
|
1889
1892
|
width?: number | undefined;
|
|
1890
1893
|
height?: number | undefined;
|
|
1891
1894
|
videoThumb: string;
|
|
1892
1895
|
videoUrl: string;
|
|
1893
1896
|
};
|
|
1894
|
-
type: "video";
|
|
1895
1897
|
}, {
|
|
1898
|
+
type: "video";
|
|
1896
1899
|
data: {
|
|
1897
1900
|
width?: number | undefined;
|
|
1898
1901
|
height?: number | undefined;
|
|
1899
1902
|
videoThumb: string;
|
|
1900
1903
|
videoUrl: string;
|
|
1901
1904
|
};
|
|
1902
|
-
type: "video";
|
|
1903
1905
|
}>, ZodObject<{
|
|
1904
1906
|
type: ZodEnum<["zmp", "zmp_deep_link"]>;
|
|
1905
1907
|
data: ZodObject<{
|
|
@@ -1908,32 +1910,32 @@ declare const openShareSheetArgs: ZodUnion<[ZodObject<{
|
|
|
1908
1910
|
path: ZodOptional<ZodString>;
|
|
1909
1911
|
description: ZodOptional<ZodDefault<ZodString>>;
|
|
1910
1912
|
}, "strip", ZodTypeAny, {
|
|
1911
|
-
description?: string | undefined;
|
|
1912
1913
|
path?: string | undefined;
|
|
1914
|
+
description?: string | undefined;
|
|
1913
1915
|
title: string;
|
|
1914
1916
|
thumbnail: string;
|
|
1915
1917
|
}, {
|
|
1916
|
-
description?: string | undefined;
|
|
1917
1918
|
path?: string | undefined;
|
|
1919
|
+
description?: string | undefined;
|
|
1918
1920
|
title: string;
|
|
1919
1921
|
thumbnail: string;
|
|
1920
1922
|
}>;
|
|
1921
1923
|
}, "strip", ZodTypeAny, {
|
|
1924
|
+
type: "zmp" | "zmp_deep_link";
|
|
1922
1925
|
data: {
|
|
1923
|
-
description?: string | undefined;
|
|
1924
1926
|
path?: string | undefined;
|
|
1927
|
+
description?: string | undefined;
|
|
1925
1928
|
title: string;
|
|
1926
1929
|
thumbnail: string;
|
|
1927
1930
|
};
|
|
1928
|
-
type: "zmp" | "zmp_deep_link";
|
|
1929
1931
|
}, {
|
|
1932
|
+
type: "zmp" | "zmp_deep_link";
|
|
1930
1933
|
data: {
|
|
1931
|
-
description?: string | undefined;
|
|
1932
1934
|
path?: string | undefined;
|
|
1935
|
+
description?: string | undefined;
|
|
1933
1936
|
title: string;
|
|
1934
1937
|
thumbnail: string;
|
|
1935
1938
|
};
|
|
1936
|
-
type: "zmp" | "zmp_deep_link";
|
|
1937
1939
|
}>]>[];
|
|
1938
1940
|
declare function openShareSheet(args: AsyncCallback<OpenShareSheetReturns> & TypeOf<(typeof openShareSheetArgs)[0]>): Promise<OpenShareSheetReturns>;
|
|
1939
1941
|
|
|
@@ -2197,8 +2199,8 @@ declare const getShareableLinkArgs: ZodObject<{
|
|
|
2197
2199
|
description: string;
|
|
2198
2200
|
title: string;
|
|
2199
2201
|
}, {
|
|
2200
|
-
description?: string | undefined;
|
|
2201
2202
|
path?: string | undefined;
|
|
2203
|
+
description?: string | undefined;
|
|
2202
2204
|
thumbnail?: string | undefined;
|
|
2203
2205
|
title: string;
|
|
2204
2206
|
}>[];
|
|
@@ -2268,16 +2270,19 @@ declare const createOrderArgs: ZodObject<{
|
|
|
2268
2270
|
item: ZodArray<ZodRecord<ZodString, ZodAny>, "many">;
|
|
2269
2271
|
desc: ZodString;
|
|
2270
2272
|
extradata: ZodOptional<ZodAny>;
|
|
2273
|
+
payload: ZodOptional<ZodAny>;
|
|
2271
2274
|
method: ZodOptional<ZodEnum<["MOMO", "ZALOPAY", "MOMO_SANDBOX", "ZALOPAY_SANDBOX", "CC", "CC_SANDBOX", "ATM", "ATM_SANDBOX", "VNPAY", "VNPAY_SANDBOX"]>>;
|
|
2272
2275
|
}, "strip", ZodTypeAny, {
|
|
2273
2276
|
method?: "ZALOPAY" | "MOMO" | "ZALOPAY_SANDBOX" | "MOMO_SANDBOX" | "ATM" | "ATM_SANDBOX" | "CC" | "CC_SANDBOX" | "VNPAY" | "VNPAY_SANDBOX" | undefined;
|
|
2274
2277
|
extradata?: any;
|
|
2278
|
+
payload?: any;
|
|
2275
2279
|
desc: string;
|
|
2276
2280
|
amount: string | number;
|
|
2277
2281
|
item: Record<string, any>[];
|
|
2278
2282
|
}, {
|
|
2279
2283
|
method?: "ZALOPAY" | "MOMO" | "ZALOPAY_SANDBOX" | "MOMO_SANDBOX" | "ATM" | "ATM_SANDBOX" | "CC" | "CC_SANDBOX" | "VNPAY" | "VNPAY_SANDBOX" | undefined;
|
|
2280
2284
|
extradata?: any;
|
|
2285
|
+
payload?: any;
|
|
2281
2286
|
desc: string;
|
|
2282
2287
|
amount: string | number;
|
|
2283
2288
|
item: Record<string, any>[];
|
|
@@ -2431,11 +2436,11 @@ declare function checkIsAllowedInteractWithOA(args: AsyncVoidCallback & TypeOf<(
|
|
|
2431
2436
|
declare function getSetting(args?: AsyncCallback<GetSettingReturn>): Promise<GetSettingReturn>;
|
|
2432
2437
|
|
|
2433
2438
|
declare const authorizeArgs: ZodOptional<ZodObject<{
|
|
2434
|
-
scopes: ZodOptional<ZodArray<
|
|
2439
|
+
scopes: ZodOptional<ZodArray<ZodEnum<["scope.userInfo", "scope.userLocation", "scope.userPhonenumber"]>, "many">>;
|
|
2435
2440
|
}, "strip", ZodTypeAny, {
|
|
2436
|
-
scopes?:
|
|
2441
|
+
scopes?: ("scope.userInfo" | "scope.userLocation" | "scope.userPhonenumber")[] | undefined;
|
|
2437
2442
|
}, {
|
|
2438
|
-
scopes?:
|
|
2443
|
+
scopes?: ("scope.userInfo" | "scope.userLocation" | "scope.userPhonenumber")[] | undefined;
|
|
2439
2444
|
}>>[];
|
|
2440
2445
|
declare function authorize(args?: AsyncVoidCallback & TypeOf<(typeof authorizeArgs)[0]>): Promise<AuthenResponse>;
|
|
2441
2446
|
|
|
@@ -2539,4 +2544,4 @@ declare const payment: {
|
|
|
2539
2544
|
createOrderIAP: typeof createOrderIAP;
|
|
2540
2545
|
};
|
|
2541
2546
|
|
|
2542
|
-
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 };
|