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/apis/index.d.ts
CHANGED
|
@@ -23,206 +23,6 @@ declare enum Events {
|
|
|
23
23
|
PaymentResult = "action.payment.result"
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
type AsyncCallbackFailObject = {
|
|
27
|
-
code: number;
|
|
28
|
-
message?: string | undefined;
|
|
29
|
-
api?: string | undefined;
|
|
30
|
-
[key: string]: any;
|
|
31
|
-
};
|
|
32
|
-
type AsyncCallback<T = any> = {
|
|
33
|
-
success?: ((res: T) => void) | undefined;
|
|
34
|
-
fail?: ((err: AsyncCallbackFailObject) => void) | undefined;
|
|
35
|
-
};
|
|
36
|
-
type AsyncVoidCallback = {
|
|
37
|
-
success?: () => void;
|
|
38
|
-
fail?: ((err: AsyncCallbackFailObject) => void) | undefined;
|
|
39
|
-
};
|
|
40
|
-
type GetLocationReturns = {
|
|
41
|
-
/** latitude */
|
|
42
|
-
latitude?: string;
|
|
43
|
-
/** longitude */
|
|
44
|
-
longitude?: string;
|
|
45
|
-
/** timestamp */
|
|
46
|
-
timestamp?: string;
|
|
47
|
-
/** provider */
|
|
48
|
-
provider?: string;
|
|
49
|
-
token?: string;
|
|
50
|
-
};
|
|
51
|
-
interface SystemInfo {
|
|
52
|
-
/** Mini app version */
|
|
53
|
-
version: string;
|
|
54
|
-
/** SDK version */
|
|
55
|
-
apiVersion: string;
|
|
56
|
-
/** Zalo version */
|
|
57
|
-
zaloVersion: string;
|
|
58
|
-
/** Client platform */
|
|
59
|
-
platform: string;
|
|
60
|
-
/** Language set in Zalo */
|
|
61
|
-
language: string;
|
|
62
|
-
/** Language set in Zalo */
|
|
63
|
-
zaloLanguage: string;
|
|
64
|
-
/** Theme set in Zalo */
|
|
65
|
-
zaloTheme: string;
|
|
66
|
-
}
|
|
67
|
-
type SetStorageReturns = {
|
|
68
|
-
errorKeys: string[];
|
|
69
|
-
};
|
|
70
|
-
type GetStorageReturns = {
|
|
71
|
-
[key: string]: any;
|
|
72
|
-
};
|
|
73
|
-
type StorageInfo = {
|
|
74
|
-
currentSize: number;
|
|
75
|
-
limitSize: number;
|
|
76
|
-
};
|
|
77
|
-
type RemoveStorageReturns = {
|
|
78
|
-
errorKeys: string[];
|
|
79
|
-
};
|
|
80
|
-
type GetUserInfoReturns = {
|
|
81
|
-
userInfo: {
|
|
82
|
-
id: string;
|
|
83
|
-
name: string;
|
|
84
|
-
avatar: string;
|
|
85
|
-
idByOA?: string;
|
|
86
|
-
isSensitive?: boolean;
|
|
87
|
-
followedOA?: boolean;
|
|
88
|
-
};
|
|
89
|
-
};
|
|
90
|
-
type GetNetworkTypeReturns = {
|
|
91
|
-
networkType: NetworkType;
|
|
92
|
-
};
|
|
93
|
-
type iBeaconInfo = {
|
|
94
|
-
/** The iBeacon device broadcast UUID. */
|
|
95
|
-
uuid: string;
|
|
96
|
-
/** The iBeacon device primary ID. */
|
|
97
|
-
major: string;
|
|
98
|
-
/** The iBeacon device secondary ID. */
|
|
99
|
-
minor: string;
|
|
100
|
-
/** The iBeacon device distance. */
|
|
101
|
-
distance: number;
|
|
102
|
-
/** The signal strength of the device. */
|
|
103
|
-
rssi: number;
|
|
104
|
-
};
|
|
105
|
-
type GetBeaconDiscoveryReturns = {
|
|
106
|
-
beacons: Array<iBeaconInfo>;
|
|
107
|
-
};
|
|
108
|
-
type ScanQRCodeReturns = {
|
|
109
|
-
content: string;
|
|
110
|
-
};
|
|
111
|
-
type OpenPostFeedReturns = {
|
|
112
|
-
status: 0 | 1;
|
|
113
|
-
shareType: 0 | 1 | 2;
|
|
114
|
-
numberOfUser: number;
|
|
115
|
-
};
|
|
116
|
-
type OpenShareSheetReturns = {
|
|
117
|
-
status: 0 | 2 | 1;
|
|
118
|
-
shareType: 0 | 2 | 1;
|
|
119
|
-
numberOfUser: number;
|
|
120
|
-
};
|
|
121
|
-
type RequestCameraPermissionReturns = {
|
|
122
|
-
userAllow: boolean;
|
|
123
|
-
message: string;
|
|
124
|
-
};
|
|
125
|
-
type CheckZaloCameraPermissionReturns = {
|
|
126
|
-
userAllow: boolean;
|
|
127
|
-
};
|
|
128
|
-
type OpenBioAuthenticationReturns = {
|
|
129
|
-
code: number;
|
|
130
|
-
message: string;
|
|
131
|
-
data: {
|
|
132
|
-
domain: string;
|
|
133
|
-
code: number;
|
|
134
|
-
message: string;
|
|
135
|
-
payToken: string;
|
|
136
|
-
};
|
|
137
|
-
};
|
|
138
|
-
type CheckStateBioAuthenticationReturns = {
|
|
139
|
-
bioState: string;
|
|
140
|
-
};
|
|
141
|
-
type KeepScreenReturns = {
|
|
142
|
-
success: boolean;
|
|
143
|
-
};
|
|
144
|
-
type OpenWebviewReturns = {
|
|
145
|
-
success: boolean;
|
|
146
|
-
};
|
|
147
|
-
type GetAppInfoReturns = {
|
|
148
|
-
description: string;
|
|
149
|
-
version: string;
|
|
150
|
-
name: string;
|
|
151
|
-
appUrl: string;
|
|
152
|
-
qrCodeUrl: string;
|
|
153
|
-
logoUrl?: string;
|
|
154
|
-
};
|
|
155
|
-
type GetPhoneNumberReturns = {
|
|
156
|
-
number?: string;
|
|
157
|
-
token?: string;
|
|
158
|
-
};
|
|
159
|
-
type OpenProfilePickerReturns = {
|
|
160
|
-
users: {
|
|
161
|
-
id: string;
|
|
162
|
-
profile: {
|
|
163
|
-
name: string;
|
|
164
|
-
avatar: string;
|
|
165
|
-
};
|
|
166
|
-
code: number;
|
|
167
|
-
message: string;
|
|
168
|
-
}[];
|
|
169
|
-
};
|
|
170
|
-
type OpenMediaPickerReturns = {
|
|
171
|
-
data: string;
|
|
172
|
-
};
|
|
173
|
-
/**
|
|
174
|
-
* Context info
|
|
175
|
-
*/
|
|
176
|
-
type ContextInfo = {
|
|
177
|
-
type?: string;
|
|
178
|
-
id?: string;
|
|
179
|
-
};
|
|
180
|
-
type GetAuthCodeReturns = {
|
|
181
|
-
authCode: string;
|
|
182
|
-
authCodeVerify: string;
|
|
183
|
-
};
|
|
184
|
-
type GetZPITokenReturns = {
|
|
185
|
-
utoken: string;
|
|
186
|
-
gtoken: string;
|
|
187
|
-
zpp: string;
|
|
188
|
-
zpt: string;
|
|
189
|
-
};
|
|
190
|
-
type ChooseImageReturns = {
|
|
191
|
-
filePaths: Array<string>;
|
|
192
|
-
tempFiles: Array<{
|
|
193
|
-
path: string;
|
|
194
|
-
size: number;
|
|
195
|
-
}>;
|
|
196
|
-
};
|
|
197
|
-
type CreateOrderReturns = {
|
|
198
|
-
orderId: string;
|
|
199
|
-
};
|
|
200
|
-
type CheckTransactionReturns = {
|
|
201
|
-
msg: string;
|
|
202
|
-
orderId: string;
|
|
203
|
-
transId: string;
|
|
204
|
-
resultCode: number;
|
|
205
|
-
transTime: string;
|
|
206
|
-
createdAt: string;
|
|
207
|
-
};
|
|
208
|
-
type CreateOrderIAPReturns = {
|
|
209
|
-
orderId: string;
|
|
210
|
-
};
|
|
211
|
-
type AuthenResponse = {
|
|
212
|
-
[key: string]: boolean;
|
|
213
|
-
};
|
|
214
|
-
type GetSettingReturn = {
|
|
215
|
-
authSetting: AuthenResponse;
|
|
216
|
-
};
|
|
217
|
-
|
|
218
|
-
declare function login(args?: AsyncCallback<string>): Promise<string>;
|
|
219
|
-
|
|
220
|
-
declare function getAccessToken(args?: AsyncCallback<string>): Promise<string>;
|
|
221
|
-
|
|
222
|
-
declare function getVersion(): string;
|
|
223
|
-
|
|
224
|
-
declare function getSystemInfo(): SystemInfo;
|
|
225
|
-
|
|
226
26
|
declare type Primitive = string | number | symbol | bigint | boolean | null | undefined;
|
|
227
27
|
|
|
228
28
|
declare namespace util {
|
|
@@ -1165,6 +965,208 @@ declare enum ZodFirstPartyTypeKind {
|
|
|
1165
965
|
ZodPipeline = "ZodPipeline"
|
|
1166
966
|
}
|
|
1167
967
|
|
|
968
|
+
type AsyncCallbackFailObject = {
|
|
969
|
+
code: number;
|
|
970
|
+
message?: string | undefined;
|
|
971
|
+
api?: string | undefined;
|
|
972
|
+
[key: string]: any;
|
|
973
|
+
};
|
|
974
|
+
type AsyncCallback<T = any> = {
|
|
975
|
+
success?: ((res: T) => void) | undefined;
|
|
976
|
+
fail?: ((err: AsyncCallbackFailObject) => void) | undefined;
|
|
977
|
+
};
|
|
978
|
+
type AsyncVoidCallback = {
|
|
979
|
+
success?: () => void;
|
|
980
|
+
fail?: ((err: AsyncCallbackFailObject) => void) | undefined;
|
|
981
|
+
};
|
|
982
|
+
type GetLocationReturns = {
|
|
983
|
+
/** latitude */
|
|
984
|
+
latitude?: string;
|
|
985
|
+
/** longitude */
|
|
986
|
+
longitude?: string;
|
|
987
|
+
/** timestamp */
|
|
988
|
+
timestamp?: string;
|
|
989
|
+
/** provider */
|
|
990
|
+
provider?: string;
|
|
991
|
+
token?: string;
|
|
992
|
+
};
|
|
993
|
+
interface SystemInfo {
|
|
994
|
+
/** Mini app version */
|
|
995
|
+
version: string;
|
|
996
|
+
/** SDK version */
|
|
997
|
+
apiVersion: string;
|
|
998
|
+
/** Zalo version */
|
|
999
|
+
zaloVersion: string;
|
|
1000
|
+
/** Client platform */
|
|
1001
|
+
platform: string;
|
|
1002
|
+
/** Language set in Zalo */
|
|
1003
|
+
language: string;
|
|
1004
|
+
/** Language set in Zalo */
|
|
1005
|
+
zaloLanguage: string;
|
|
1006
|
+
/** Theme set in Zalo */
|
|
1007
|
+
zaloTheme: string;
|
|
1008
|
+
}
|
|
1009
|
+
type SetStorageReturns = {
|
|
1010
|
+
errorKeys: string[];
|
|
1011
|
+
};
|
|
1012
|
+
type GetStorageReturns = {
|
|
1013
|
+
[key: string]: any;
|
|
1014
|
+
};
|
|
1015
|
+
type StorageInfo = {
|
|
1016
|
+
currentSize: number;
|
|
1017
|
+
limitSize: number;
|
|
1018
|
+
};
|
|
1019
|
+
type RemoveStorageReturns = {
|
|
1020
|
+
errorKeys: string[];
|
|
1021
|
+
};
|
|
1022
|
+
type GetUserInfoReturns = {
|
|
1023
|
+
userInfo: {
|
|
1024
|
+
id: string;
|
|
1025
|
+
name: string;
|
|
1026
|
+
avatar: string;
|
|
1027
|
+
idByOA?: string;
|
|
1028
|
+
isSensitive?: boolean;
|
|
1029
|
+
followedOA?: boolean;
|
|
1030
|
+
};
|
|
1031
|
+
};
|
|
1032
|
+
type GetNetworkTypeReturns = {
|
|
1033
|
+
networkType: NetworkType;
|
|
1034
|
+
};
|
|
1035
|
+
type iBeaconInfo = {
|
|
1036
|
+
/** The iBeacon device broadcast UUID. */
|
|
1037
|
+
uuid: string;
|
|
1038
|
+
/** The iBeacon device primary ID. */
|
|
1039
|
+
major: string;
|
|
1040
|
+
/** The iBeacon device secondary ID. */
|
|
1041
|
+
minor: string;
|
|
1042
|
+
/** The iBeacon device distance. */
|
|
1043
|
+
distance: number;
|
|
1044
|
+
/** The signal strength of the device. */
|
|
1045
|
+
rssi: number;
|
|
1046
|
+
};
|
|
1047
|
+
type GetBeaconDiscoveryReturns = {
|
|
1048
|
+
beacons: Array<iBeaconInfo>;
|
|
1049
|
+
};
|
|
1050
|
+
type ScanQRCodeReturns = {
|
|
1051
|
+
content: string;
|
|
1052
|
+
};
|
|
1053
|
+
type OpenPostFeedReturns = {
|
|
1054
|
+
status: 0 | 1;
|
|
1055
|
+
shareType: 0 | 1 | 2;
|
|
1056
|
+
numberOfUser: number;
|
|
1057
|
+
};
|
|
1058
|
+
type OpenShareSheetReturns = {
|
|
1059
|
+
status: 0 | 2 | 1;
|
|
1060
|
+
shareType: 0 | 2 | 1;
|
|
1061
|
+
numberOfUser: number;
|
|
1062
|
+
};
|
|
1063
|
+
type RequestCameraPermissionReturns = {
|
|
1064
|
+
userAllow: boolean;
|
|
1065
|
+
message: string;
|
|
1066
|
+
};
|
|
1067
|
+
type CheckZaloCameraPermissionReturns = {
|
|
1068
|
+
userAllow: boolean;
|
|
1069
|
+
};
|
|
1070
|
+
type OpenBioAuthenticationReturns = {
|
|
1071
|
+
code: number;
|
|
1072
|
+
message: string;
|
|
1073
|
+
data: {
|
|
1074
|
+
domain: string;
|
|
1075
|
+
code: number;
|
|
1076
|
+
message: string;
|
|
1077
|
+
payToken: string;
|
|
1078
|
+
};
|
|
1079
|
+
};
|
|
1080
|
+
type CheckStateBioAuthenticationReturns = {
|
|
1081
|
+
bioState: string;
|
|
1082
|
+
};
|
|
1083
|
+
type KeepScreenReturns = {
|
|
1084
|
+
success: boolean;
|
|
1085
|
+
};
|
|
1086
|
+
type OpenWebviewReturns = {
|
|
1087
|
+
success: boolean;
|
|
1088
|
+
};
|
|
1089
|
+
type GetAppInfoReturns = {
|
|
1090
|
+
description: string;
|
|
1091
|
+
version: string;
|
|
1092
|
+
name: string;
|
|
1093
|
+
appUrl: string;
|
|
1094
|
+
qrCodeUrl: string;
|
|
1095
|
+
logoUrl?: string;
|
|
1096
|
+
};
|
|
1097
|
+
type GetPhoneNumberReturns = {
|
|
1098
|
+
number?: string;
|
|
1099
|
+
token?: string;
|
|
1100
|
+
};
|
|
1101
|
+
type OpenProfilePickerReturns = {
|
|
1102
|
+
users: {
|
|
1103
|
+
id: string;
|
|
1104
|
+
profile: {
|
|
1105
|
+
name: string;
|
|
1106
|
+
avatar: string;
|
|
1107
|
+
};
|
|
1108
|
+
code: number;
|
|
1109
|
+
message: string;
|
|
1110
|
+
}[];
|
|
1111
|
+
};
|
|
1112
|
+
type OpenMediaPickerReturns = {
|
|
1113
|
+
data: string;
|
|
1114
|
+
};
|
|
1115
|
+
/**
|
|
1116
|
+
* Context info
|
|
1117
|
+
*/
|
|
1118
|
+
type ContextInfo = {
|
|
1119
|
+
type?: string;
|
|
1120
|
+
id?: string;
|
|
1121
|
+
};
|
|
1122
|
+
type GetAuthCodeReturns = {
|
|
1123
|
+
authCode: string;
|
|
1124
|
+
authCodeVerify: string;
|
|
1125
|
+
};
|
|
1126
|
+
type GetZPITokenReturns = {
|
|
1127
|
+
utoken: string;
|
|
1128
|
+
gtoken: string;
|
|
1129
|
+
zpp: string;
|
|
1130
|
+
zpt: string;
|
|
1131
|
+
};
|
|
1132
|
+
type ChooseImageReturns = {
|
|
1133
|
+
filePaths: Array<string>;
|
|
1134
|
+
tempFiles: Array<{
|
|
1135
|
+
path: string;
|
|
1136
|
+
size: number;
|
|
1137
|
+
}>;
|
|
1138
|
+
};
|
|
1139
|
+
type CreateOrderReturns = {
|
|
1140
|
+
orderId: string;
|
|
1141
|
+
};
|
|
1142
|
+
type CheckTransactionReturns = {
|
|
1143
|
+
msg: string;
|
|
1144
|
+
orderId: string;
|
|
1145
|
+
transId: string;
|
|
1146
|
+
resultCode: number;
|
|
1147
|
+
transTime: string;
|
|
1148
|
+
createdAt: string;
|
|
1149
|
+
};
|
|
1150
|
+
type CreateOrderIAPReturns = {
|
|
1151
|
+
orderId: string;
|
|
1152
|
+
};
|
|
1153
|
+
declare const AuthenScopeProperty: ZodEnum<["scope.userInfo", "scope.userLocation", "scope.userPhonenumber"]>;
|
|
1154
|
+
type AuthenScopeType = TypeOf<typeof AuthenScopeProperty>;
|
|
1155
|
+
type AuthenResponse = Partial<{
|
|
1156
|
+
[key in AuthenScopeType]: boolean;
|
|
1157
|
+
}>;
|
|
1158
|
+
type GetSettingReturn = {
|
|
1159
|
+
authSetting: AuthenResponse;
|
|
1160
|
+
};
|
|
1161
|
+
|
|
1162
|
+
declare function login(args?: AsyncCallback<string>): Promise<string>;
|
|
1163
|
+
|
|
1164
|
+
declare function getAccessToken(args?: AsyncCallback<string>): Promise<string>;
|
|
1165
|
+
|
|
1166
|
+
declare function getVersion(): string;
|
|
1167
|
+
|
|
1168
|
+
declare function getSystemInfo(): SystemInfo;
|
|
1169
|
+
|
|
1168
1170
|
declare const setNavigationBarTitleArgs: ZodOptional<ZodObject<{
|
|
1169
1171
|
title: ZodString;
|
|
1170
1172
|
}, "strip", ZodTypeAny, {
|
|
@@ -1414,15 +1416,15 @@ declare const openPostFeedArgs: ZodUnion<[ZodObject<{
|
|
|
1414
1416
|
imageUrl?: string | undefined;
|
|
1415
1417
|
}>;
|
|
1416
1418
|
}, "strip", ZodTypeAny, {
|
|
1419
|
+
type: "image";
|
|
1417
1420
|
data: {
|
|
1418
1421
|
imageUrl?: string | undefined;
|
|
1419
1422
|
};
|
|
1420
|
-
type: "image";
|
|
1421
1423
|
}, {
|
|
1424
|
+
type: "image";
|
|
1422
1425
|
data: {
|
|
1423
1426
|
imageUrl?: string | undefined;
|
|
1424
1427
|
};
|
|
1425
|
-
type: "image";
|
|
1426
1428
|
}>, ZodObject<{
|
|
1427
1429
|
type: ZodEnum<["link"]>;
|
|
1428
1430
|
data: ZodObject<{
|
|
@@ -1442,21 +1444,21 @@ declare const openPostFeedArgs: ZodUnion<[ZodObject<{
|
|
|
1442
1444
|
link: string;
|
|
1443
1445
|
}>;
|
|
1444
1446
|
}, "strip", ZodTypeAny, {
|
|
1447
|
+
type: "link";
|
|
1445
1448
|
data: {
|
|
1446
1449
|
description?: string | undefined;
|
|
1447
1450
|
title?: string | undefined;
|
|
1448
1451
|
thumb?: string | undefined;
|
|
1449
1452
|
link: string;
|
|
1450
1453
|
};
|
|
1451
|
-
type: "link";
|
|
1452
1454
|
}, {
|
|
1455
|
+
type: "link";
|
|
1453
1456
|
data: {
|
|
1454
1457
|
description?: string | undefined;
|
|
1455
1458
|
title?: string | undefined;
|
|
1456
1459
|
thumb?: string | undefined;
|
|
1457
1460
|
link: string;
|
|
1458
1461
|
};
|
|
1459
|
-
type: "link";
|
|
1460
1462
|
}>, ZodObject<{
|
|
1461
1463
|
type: ZodEnum<["profile"]>;
|
|
1462
1464
|
data: ZodObject<{
|
|
@@ -1467,15 +1469,15 @@ declare const openPostFeedArgs: ZodUnion<[ZodObject<{
|
|
|
1467
1469
|
id?: string | undefined;
|
|
1468
1470
|
}>;
|
|
1469
1471
|
}, "strip", ZodTypeAny, {
|
|
1472
|
+
type: "profile";
|
|
1470
1473
|
data: {
|
|
1471
1474
|
id?: string | undefined;
|
|
1472
1475
|
};
|
|
1473
|
-
type: "profile";
|
|
1474
1476
|
}, {
|
|
1477
|
+
type: "profile";
|
|
1475
1478
|
data: {
|
|
1476
1479
|
id?: string | undefined;
|
|
1477
1480
|
};
|
|
1478
|
-
type: "profile";
|
|
1479
1481
|
}>]>[];
|
|
1480
1482
|
declare function openPostFeed(args: AsyncCallback<OpenPostFeedReturns> & TypeOf<(typeof openPostFeedArgs)[0]>): Promise<OpenPostFeedReturns>;
|
|
1481
1483
|
|
|
@@ -1513,17 +1515,17 @@ declare const openShareSheetArgs: ZodUnion<[ZodObject<{
|
|
|
1513
1515
|
imageUrl: string;
|
|
1514
1516
|
}>;
|
|
1515
1517
|
}, "strip", ZodTypeAny, {
|
|
1518
|
+
type: "image";
|
|
1516
1519
|
data: {
|
|
1517
1520
|
imageUrls?: string[] | undefined;
|
|
1518
1521
|
imageUrl: string;
|
|
1519
1522
|
};
|
|
1520
|
-
type: "image";
|
|
1521
1523
|
}, {
|
|
1524
|
+
type: "image";
|
|
1522
1525
|
data: {
|
|
1523
1526
|
imageUrls?: string[] | undefined;
|
|
1524
1527
|
imageUrl: string;
|
|
1525
1528
|
};
|
|
1526
|
-
type: "image";
|
|
1527
1529
|
}>, ZodObject<{
|
|
1528
1530
|
type: ZodEnum<["link"]>;
|
|
1529
1531
|
data: ZodObject<{
|
|
@@ -1537,17 +1539,17 @@ declare const openShareSheetArgs: ZodUnion<[ZodObject<{
|
|
|
1537
1539
|
link: string;
|
|
1538
1540
|
}>;
|
|
1539
1541
|
}, "strip", ZodTypeAny, {
|
|
1542
|
+
type: "link";
|
|
1540
1543
|
data: {
|
|
1541
1544
|
chatOnly?: boolean | undefined;
|
|
1542
1545
|
link: string;
|
|
1543
1546
|
};
|
|
1544
|
-
type: "link";
|
|
1545
1547
|
}, {
|
|
1548
|
+
type: "link";
|
|
1546
1549
|
data: {
|
|
1547
1550
|
chatOnly?: boolean | undefined;
|
|
1548
1551
|
link: string;
|
|
1549
1552
|
};
|
|
1550
|
-
type: "link";
|
|
1551
1553
|
}>, ZodObject<{
|
|
1552
1554
|
type: ZodEnum<["oa"]>;
|
|
1553
1555
|
data: ZodObject<{
|
|
@@ -1558,15 +1560,15 @@ declare const openShareSheetArgs: ZodUnion<[ZodObject<{
|
|
|
1558
1560
|
id: string;
|
|
1559
1561
|
}>;
|
|
1560
1562
|
}, "strip", ZodTypeAny, {
|
|
1563
|
+
type: "oa";
|
|
1561
1564
|
data: {
|
|
1562
1565
|
id: string;
|
|
1563
1566
|
};
|
|
1564
|
-
type: "oa";
|
|
1565
1567
|
}, {
|
|
1568
|
+
type: "oa";
|
|
1566
1569
|
data: {
|
|
1567
1570
|
id: string;
|
|
1568
1571
|
};
|
|
1569
|
-
type: "oa";
|
|
1570
1572
|
}>, ZodObject<{
|
|
1571
1573
|
type: ZodEnum<["gif"]>;
|
|
1572
1574
|
data: ZodObject<{
|
|
@@ -1586,21 +1588,21 @@ declare const openShareSheetArgs: ZodUnion<[ZodObject<{
|
|
|
1586
1588
|
gifUrl: string;
|
|
1587
1589
|
}>;
|
|
1588
1590
|
}, "strip", ZodTypeAny, {
|
|
1591
|
+
type: "gif";
|
|
1589
1592
|
data: {
|
|
1590
1593
|
imageUrl?: string | undefined;
|
|
1591
1594
|
width?: number | undefined;
|
|
1592
1595
|
height?: number | undefined;
|
|
1593
1596
|
gifUrl: string;
|
|
1594
1597
|
};
|
|
1595
|
-
type: "gif";
|
|
1596
1598
|
}, {
|
|
1599
|
+
type: "gif";
|
|
1597
1600
|
data: {
|
|
1598
1601
|
imageUrl?: string | undefined;
|
|
1599
1602
|
width?: number | undefined;
|
|
1600
1603
|
height?: number | undefined;
|
|
1601
1604
|
gifUrl: string;
|
|
1602
1605
|
};
|
|
1603
|
-
type: "gif";
|
|
1604
1606
|
}>, ZodObject<{
|
|
1605
1607
|
type: ZodEnum<["video"]>;
|
|
1606
1608
|
data: ZodObject<{
|
|
@@ -1620,21 +1622,21 @@ declare const openShareSheetArgs: ZodUnion<[ZodObject<{
|
|
|
1620
1622
|
videoUrl: string;
|
|
1621
1623
|
}>;
|
|
1622
1624
|
}, "strip", ZodTypeAny, {
|
|
1625
|
+
type: "video";
|
|
1623
1626
|
data: {
|
|
1624
1627
|
width?: number | undefined;
|
|
1625
1628
|
height?: number | undefined;
|
|
1626
1629
|
videoThumb: string;
|
|
1627
1630
|
videoUrl: string;
|
|
1628
1631
|
};
|
|
1629
|
-
type: "video";
|
|
1630
1632
|
}, {
|
|
1633
|
+
type: "video";
|
|
1631
1634
|
data: {
|
|
1632
1635
|
width?: number | undefined;
|
|
1633
1636
|
height?: number | undefined;
|
|
1634
1637
|
videoThumb: string;
|
|
1635
1638
|
videoUrl: string;
|
|
1636
1639
|
};
|
|
1637
|
-
type: "video";
|
|
1638
1640
|
}>, ZodObject<{
|
|
1639
1641
|
type: ZodEnum<["zmp", "zmp_deep_link"]>;
|
|
1640
1642
|
data: ZodObject<{
|
|
@@ -1643,32 +1645,32 @@ declare const openShareSheetArgs: ZodUnion<[ZodObject<{
|
|
|
1643
1645
|
path: ZodOptional<ZodString>;
|
|
1644
1646
|
description: ZodOptional<ZodDefault<ZodString>>;
|
|
1645
1647
|
}, "strip", ZodTypeAny, {
|
|
1646
|
-
description?: string | undefined;
|
|
1647
1648
|
path?: string | undefined;
|
|
1649
|
+
description?: string | undefined;
|
|
1648
1650
|
title: string;
|
|
1649
1651
|
thumbnail: string;
|
|
1650
1652
|
}, {
|
|
1651
|
-
description?: string | undefined;
|
|
1652
1653
|
path?: string | undefined;
|
|
1654
|
+
description?: string | undefined;
|
|
1653
1655
|
title: string;
|
|
1654
1656
|
thumbnail: string;
|
|
1655
1657
|
}>;
|
|
1656
1658
|
}, "strip", ZodTypeAny, {
|
|
1659
|
+
type: "zmp" | "zmp_deep_link";
|
|
1657
1660
|
data: {
|
|
1658
|
-
description?: string | undefined;
|
|
1659
1661
|
path?: string | undefined;
|
|
1662
|
+
description?: string | undefined;
|
|
1660
1663
|
title: string;
|
|
1661
1664
|
thumbnail: string;
|
|
1662
1665
|
};
|
|
1663
|
-
type: "zmp" | "zmp_deep_link";
|
|
1664
1666
|
}, {
|
|
1667
|
+
type: "zmp" | "zmp_deep_link";
|
|
1665
1668
|
data: {
|
|
1666
|
-
description?: string | undefined;
|
|
1667
1669
|
path?: string | undefined;
|
|
1670
|
+
description?: string | undefined;
|
|
1668
1671
|
title: string;
|
|
1669
1672
|
thumbnail: string;
|
|
1670
1673
|
};
|
|
1671
|
-
type: "zmp" | "zmp_deep_link";
|
|
1672
1674
|
}>]>[];
|
|
1673
1675
|
declare function openShareSheet(args: AsyncCallback<OpenShareSheetReturns> & TypeOf<(typeof openShareSheetArgs)[0]>): Promise<OpenShareSheetReturns>;
|
|
1674
1676
|
|
|
@@ -1932,8 +1934,8 @@ declare const getShareableLinkArgs: ZodObject<{
|
|
|
1932
1934
|
description: string;
|
|
1933
1935
|
title: string;
|
|
1934
1936
|
}, {
|
|
1935
|
-
description?: string | undefined;
|
|
1936
1937
|
path?: string | undefined;
|
|
1938
|
+
description?: string | undefined;
|
|
1937
1939
|
thumbnail?: string | undefined;
|
|
1938
1940
|
title: string;
|
|
1939
1941
|
}>[];
|
|
@@ -2003,16 +2005,19 @@ declare const createOrderArgs: ZodObject<{
|
|
|
2003
2005
|
item: ZodArray<ZodRecord<ZodString, ZodAny>, "many">;
|
|
2004
2006
|
desc: ZodString;
|
|
2005
2007
|
extradata: ZodOptional<ZodAny>;
|
|
2008
|
+
payload: ZodOptional<ZodAny>;
|
|
2006
2009
|
method: ZodOptional<ZodEnum<["MOMO", "ZALOPAY", "MOMO_SANDBOX", "ZALOPAY_SANDBOX", "CC", "CC_SANDBOX", "ATM", "ATM_SANDBOX", "VNPAY", "VNPAY_SANDBOX"]>>;
|
|
2007
2010
|
}, "strip", ZodTypeAny, {
|
|
2008
2011
|
method?: "ZALOPAY" | "MOMO" | "ZALOPAY_SANDBOX" | "MOMO_SANDBOX" | "ATM" | "ATM_SANDBOX" | "CC" | "CC_SANDBOX" | "VNPAY" | "VNPAY_SANDBOX" | undefined;
|
|
2009
2012
|
extradata?: any;
|
|
2013
|
+
payload?: any;
|
|
2010
2014
|
desc: string;
|
|
2011
2015
|
amount: string | number;
|
|
2012
2016
|
item: Record<string, any>[];
|
|
2013
2017
|
}, {
|
|
2014
2018
|
method?: "ZALOPAY" | "MOMO" | "ZALOPAY_SANDBOX" | "MOMO_SANDBOX" | "ATM" | "ATM_SANDBOX" | "CC" | "CC_SANDBOX" | "VNPAY" | "VNPAY_SANDBOX" | undefined;
|
|
2015
2019
|
extradata?: any;
|
|
2020
|
+
payload?: any;
|
|
2016
2021
|
desc: string;
|
|
2017
2022
|
amount: string | number;
|
|
2018
2023
|
item: Record<string, any>[];
|
|
@@ -2299,11 +2304,11 @@ declare function checkIsAllowedInteractWithOA(args: AsyncVoidCallback & TypeOf<(
|
|
|
2299
2304
|
declare function getSetting(args?: AsyncCallback<GetSettingReturn>): Promise<GetSettingReturn>;
|
|
2300
2305
|
|
|
2301
2306
|
declare const authorizeArgs: ZodOptional<ZodObject<{
|
|
2302
|
-
scopes: ZodOptional<ZodArray<
|
|
2307
|
+
scopes: ZodOptional<ZodArray<ZodEnum<["scope.userInfo", "scope.userLocation", "scope.userPhonenumber"]>, "many">>;
|
|
2303
2308
|
}, "strip", ZodTypeAny, {
|
|
2304
|
-
scopes?:
|
|
2309
|
+
scopes?: ("scope.userInfo" | "scope.userLocation" | "scope.userPhonenumber")[] | undefined;
|
|
2305
2310
|
}, {
|
|
2306
|
-
scopes?:
|
|
2311
|
+
scopes?: ("scope.userInfo" | "scope.userLocation" | "scope.userPhonenumber")[] | undefined;
|
|
2307
2312
|
}>>[];
|
|
2308
2313
|
declare function authorize(args?: AsyncVoidCallback & TypeOf<(typeof authorizeArgs)[0]>): Promise<AuthenResponse>;
|
|
2309
2314
|
|
package/apis/package.json.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var r="2.35.
|
|
1
|
+
var r="2.35.5";export{r as version};
|