zmp-sdk 2.43.2 → 2.43.4
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/native-storage/index.js +1 -0
- package/apis/apis/openPostFeed.js +1 -1
- package/apis/apis/payment/checkTransaction.js +1 -0
- package/apis/apis/payment/createOrder.js +1 -0
- package/apis/apis/payment/createOrderIAP.js +1 -0
- package/apis/apis/payment/index.js +1 -0
- package/apis/apis/payment/purchase.js +1 -0
- package/apis/apis/payment/selectPaymentMethod.js +1 -0
- package/apis/common/apis/general/openPostFeed.js +1 -1
- package/apis/index.d.ts +67 -30
- package/apis/index.es.js +1 -1
- package/apis/index.js +1 -1
- package/apis/package.json.js +1 -1
- package/apis/types/enum.js +1 -1
- package/browser.min.js +2 -2
- package/index.d.ts +229 -204
- 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/checkTransaction.js +0 -1
- package/apis/apis/createOrder.js +0 -1
- package/apis/apis/createOrderIAP.js +0 -1
- package/apis/apis/purchase.js +0 -1
- package/apis/apis/selectPaymentMethod.js +0 -1
package/index.d.ts
CHANGED
|
@@ -1,144 +1,5 @@
|
|
|
1
1
|
import { StreamType as StreamType$1, MediaConstraints as MediaConstraints$1, PhotoConstraint as PhotoConstraint$1, PhotoFrame as PhotoFrame$1, MediaDevice as MediaDevice$1, CameraEvents as CameraEvents$1 } from '@mp-types';
|
|
2
2
|
|
|
3
|
-
/**
|
|
4
|
-
* Minimal `EventEmitter` interface that is molded against the Node.js
|
|
5
|
-
* `EventEmitter` interface.
|
|
6
|
-
*/
|
|
7
|
-
declare class EventEmitter<
|
|
8
|
-
EventTypes extends EventEmitter.ValidEventTypes = string | symbol,
|
|
9
|
-
Context extends any = any
|
|
10
|
-
> {
|
|
11
|
-
static prefixed: string | boolean;
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Return an array listing the events for which the emitter has registered
|
|
15
|
-
* listeners.
|
|
16
|
-
*/
|
|
17
|
-
eventNames(): Array<EventEmitter.EventNames<EventTypes>>;
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Return the listeners registered for a given event.
|
|
21
|
-
*/
|
|
22
|
-
listeners<T extends EventEmitter.EventNames<EventTypes>>(
|
|
23
|
-
event: T
|
|
24
|
-
): Array<EventEmitter.EventListener<EventTypes, T>>;
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* Return the number of listeners listening to a given event.
|
|
28
|
-
*/
|
|
29
|
-
listenerCount(event: EventEmitter.EventNames<EventTypes>): number;
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* Calls each of the listeners registered for a given event.
|
|
33
|
-
*/
|
|
34
|
-
emit<T extends EventEmitter.EventNames<EventTypes>>(
|
|
35
|
-
event: T,
|
|
36
|
-
...args: EventEmitter.EventArgs<EventTypes, T>
|
|
37
|
-
): boolean;
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Add a listener for a given event.
|
|
41
|
-
*/
|
|
42
|
-
on<T extends EventEmitter.EventNames<EventTypes>>(
|
|
43
|
-
event: T,
|
|
44
|
-
fn: EventEmitter.EventListener<EventTypes, T>,
|
|
45
|
-
context?: Context
|
|
46
|
-
): this;
|
|
47
|
-
addListener<T extends EventEmitter.EventNames<EventTypes>>(
|
|
48
|
-
event: T,
|
|
49
|
-
fn: EventEmitter.EventListener<EventTypes, T>,
|
|
50
|
-
context?: Context
|
|
51
|
-
): this;
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* Add a one-time listener for a given event.
|
|
55
|
-
*/
|
|
56
|
-
once<T extends EventEmitter.EventNames<EventTypes>>(
|
|
57
|
-
event: T,
|
|
58
|
-
fn: EventEmitter.EventListener<EventTypes, T>,
|
|
59
|
-
context?: Context
|
|
60
|
-
): this;
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* Remove the listeners of a given event.
|
|
64
|
-
*/
|
|
65
|
-
removeListener<T extends EventEmitter.EventNames<EventTypes>>(
|
|
66
|
-
event: T,
|
|
67
|
-
fn?: EventEmitter.EventListener<EventTypes, T>,
|
|
68
|
-
context?: Context,
|
|
69
|
-
once?: boolean
|
|
70
|
-
): this;
|
|
71
|
-
off<T extends EventEmitter.EventNames<EventTypes>>(
|
|
72
|
-
event: T,
|
|
73
|
-
fn?: EventEmitter.EventListener<EventTypes, T>,
|
|
74
|
-
context?: Context,
|
|
75
|
-
once?: boolean
|
|
76
|
-
): this;
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* Remove all listeners, or those of the specified event.
|
|
80
|
-
*/
|
|
81
|
-
removeAllListeners(event?: EventEmitter.EventNames<EventTypes>): this;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
declare namespace EventEmitter {
|
|
85
|
-
export interface ListenerFn<Args extends any[] = any[]> {
|
|
86
|
-
(...args: Args): void;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
export interface EventEmitterStatic {
|
|
90
|
-
new <
|
|
91
|
-
EventTypes extends ValidEventTypes = string | symbol,
|
|
92
|
-
Context = any
|
|
93
|
-
>(): EventEmitter<EventTypes, Context>;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* `object` should be in either of the following forms:
|
|
98
|
-
* ```
|
|
99
|
-
* interface EventTypes {
|
|
100
|
-
* 'event-with-parameters': any[]
|
|
101
|
-
* 'event-with-example-handler': (...args: any[]) => void
|
|
102
|
-
* }
|
|
103
|
-
* ```
|
|
104
|
-
*/
|
|
105
|
-
export type ValidEventTypes = string | symbol | object;
|
|
106
|
-
|
|
107
|
-
export type EventNames<T extends ValidEventTypes> = T extends string | symbol
|
|
108
|
-
? T
|
|
109
|
-
: keyof T;
|
|
110
|
-
|
|
111
|
-
export type ArgumentMap<T extends object> = {
|
|
112
|
-
[K in keyof T]: T[K] extends (...args: any[]) => void
|
|
113
|
-
? Parameters<T[K]>
|
|
114
|
-
: T[K] extends any[]
|
|
115
|
-
? T[K]
|
|
116
|
-
: any[];
|
|
117
|
-
};
|
|
118
|
-
|
|
119
|
-
export type EventListener<
|
|
120
|
-
T extends ValidEventTypes,
|
|
121
|
-
K extends EventNames<T>
|
|
122
|
-
> = T extends string | symbol
|
|
123
|
-
? (...args: any[]) => void
|
|
124
|
-
: (
|
|
125
|
-
...args: ArgumentMap<Exclude<T, string | symbol>>[Extract<K, keyof T>]
|
|
126
|
-
) => void;
|
|
127
|
-
|
|
128
|
-
export type EventArgs<
|
|
129
|
-
T extends ValidEventTypes,
|
|
130
|
-
K extends EventNames<T>
|
|
131
|
-
> = Parameters<EventListener<T, K>>;
|
|
132
|
-
|
|
133
|
-
export const EventEmitter: EventEmitterStatic;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
declare namespace eventemitter3 {
|
|
137
|
-
export {
|
|
138
|
-
EventEmitter as default,
|
|
139
|
-
};
|
|
140
|
-
}
|
|
141
|
-
|
|
142
3
|
/**
|
|
143
4
|
* @typedef {"none" | "wifi" | "cellular" | "unknown"} NetworkType
|
|
144
5
|
*/
|
|
@@ -188,6 +49,7 @@ declare enum ChatType {
|
|
|
188
49
|
}
|
|
189
50
|
declare enum PostFeedType {
|
|
190
51
|
image = 1,
|
|
52
|
+
multi_image = 2,
|
|
191
53
|
link = 4,
|
|
192
54
|
profile = 5
|
|
193
55
|
}
|
|
@@ -1306,13 +1168,7 @@ type PhotoConstraint = {
|
|
|
1306
1168
|
minScreenshotHeight?: number;
|
|
1307
1169
|
};
|
|
1308
1170
|
|
|
1309
|
-
declare function
|
|
1310
|
-
|
|
1311
|
-
declare function getAccessToken(args?: AsyncCallback<string>): Promise<string>;
|
|
1312
|
-
|
|
1313
|
-
declare function getVersion(): string;
|
|
1314
|
-
|
|
1315
|
-
declare function getSystemInfo(): SystemInfo;
|
|
1171
|
+
declare function getStorageInfoSync(): StorageInfo;
|
|
1316
1172
|
|
|
1317
1173
|
declare type Primitive = string | number | symbol | bigint | boolean | null | undefined;
|
|
1318
1174
|
|
|
@@ -2256,6 +2112,164 @@ declare enum ZodFirstPartyTypeKind {
|
|
|
2256
2112
|
ZodPipeline = "ZodPipeline"
|
|
2257
2113
|
}
|
|
2258
2114
|
|
|
2115
|
+
declare const removeItemArgs: ZodString[];
|
|
2116
|
+
declare function removeItem(key: TypeOf<(typeof removeItemArgs)[0]>): void;
|
|
2117
|
+
|
|
2118
|
+
declare function clear(): void;
|
|
2119
|
+
|
|
2120
|
+
declare const setItemArgs: ZodString[];
|
|
2121
|
+
declare function setItem(key: TypeOf<(typeof setItemArgs)[0]>, value: TypeOf<(typeof setItemArgs)[1]>): void;
|
|
2122
|
+
|
|
2123
|
+
declare const getItemArgs: ZodString[];
|
|
2124
|
+
declare function getItem(key: TypeOf<(typeof getItemArgs)[0]>): string;
|
|
2125
|
+
|
|
2126
|
+
/**
|
|
2127
|
+
* Minimal `EventEmitter` interface that is molded against the Node.js
|
|
2128
|
+
* `EventEmitter` interface.
|
|
2129
|
+
*/
|
|
2130
|
+
declare class EventEmitter<
|
|
2131
|
+
EventTypes extends EventEmitter.ValidEventTypes = string | symbol,
|
|
2132
|
+
Context extends any = any
|
|
2133
|
+
> {
|
|
2134
|
+
static prefixed: string | boolean;
|
|
2135
|
+
|
|
2136
|
+
/**
|
|
2137
|
+
* Return an array listing the events for which the emitter has registered
|
|
2138
|
+
* listeners.
|
|
2139
|
+
*/
|
|
2140
|
+
eventNames(): Array<EventEmitter.EventNames<EventTypes>>;
|
|
2141
|
+
|
|
2142
|
+
/**
|
|
2143
|
+
* Return the listeners registered for a given event.
|
|
2144
|
+
*/
|
|
2145
|
+
listeners<T extends EventEmitter.EventNames<EventTypes>>(
|
|
2146
|
+
event: T
|
|
2147
|
+
): Array<EventEmitter.EventListener<EventTypes, T>>;
|
|
2148
|
+
|
|
2149
|
+
/**
|
|
2150
|
+
* Return the number of listeners listening to a given event.
|
|
2151
|
+
*/
|
|
2152
|
+
listenerCount(event: EventEmitter.EventNames<EventTypes>): number;
|
|
2153
|
+
|
|
2154
|
+
/**
|
|
2155
|
+
* Calls each of the listeners registered for a given event.
|
|
2156
|
+
*/
|
|
2157
|
+
emit<T extends EventEmitter.EventNames<EventTypes>>(
|
|
2158
|
+
event: T,
|
|
2159
|
+
...args: EventEmitter.EventArgs<EventTypes, T>
|
|
2160
|
+
): boolean;
|
|
2161
|
+
|
|
2162
|
+
/**
|
|
2163
|
+
* Add a listener for a given event.
|
|
2164
|
+
*/
|
|
2165
|
+
on<T extends EventEmitter.EventNames<EventTypes>>(
|
|
2166
|
+
event: T,
|
|
2167
|
+
fn: EventEmitter.EventListener<EventTypes, T>,
|
|
2168
|
+
context?: Context
|
|
2169
|
+
): this;
|
|
2170
|
+
addListener<T extends EventEmitter.EventNames<EventTypes>>(
|
|
2171
|
+
event: T,
|
|
2172
|
+
fn: EventEmitter.EventListener<EventTypes, T>,
|
|
2173
|
+
context?: Context
|
|
2174
|
+
): this;
|
|
2175
|
+
|
|
2176
|
+
/**
|
|
2177
|
+
* Add a one-time listener for a given event.
|
|
2178
|
+
*/
|
|
2179
|
+
once<T extends EventEmitter.EventNames<EventTypes>>(
|
|
2180
|
+
event: T,
|
|
2181
|
+
fn: EventEmitter.EventListener<EventTypes, T>,
|
|
2182
|
+
context?: Context
|
|
2183
|
+
): this;
|
|
2184
|
+
|
|
2185
|
+
/**
|
|
2186
|
+
* Remove the listeners of a given event.
|
|
2187
|
+
*/
|
|
2188
|
+
removeListener<T extends EventEmitter.EventNames<EventTypes>>(
|
|
2189
|
+
event: T,
|
|
2190
|
+
fn?: EventEmitter.EventListener<EventTypes, T>,
|
|
2191
|
+
context?: Context,
|
|
2192
|
+
once?: boolean
|
|
2193
|
+
): this;
|
|
2194
|
+
off<T extends EventEmitter.EventNames<EventTypes>>(
|
|
2195
|
+
event: T,
|
|
2196
|
+
fn?: EventEmitter.EventListener<EventTypes, T>,
|
|
2197
|
+
context?: Context,
|
|
2198
|
+
once?: boolean
|
|
2199
|
+
): this;
|
|
2200
|
+
|
|
2201
|
+
/**
|
|
2202
|
+
* Remove all listeners, or those of the specified event.
|
|
2203
|
+
*/
|
|
2204
|
+
removeAllListeners(event?: EventEmitter.EventNames<EventTypes>): this;
|
|
2205
|
+
}
|
|
2206
|
+
|
|
2207
|
+
declare namespace EventEmitter {
|
|
2208
|
+
export interface ListenerFn<Args extends any[] = any[]> {
|
|
2209
|
+
(...args: Args): void;
|
|
2210
|
+
}
|
|
2211
|
+
|
|
2212
|
+
export interface EventEmitterStatic {
|
|
2213
|
+
new <
|
|
2214
|
+
EventTypes extends ValidEventTypes = string | symbol,
|
|
2215
|
+
Context = any
|
|
2216
|
+
>(): EventEmitter<EventTypes, Context>;
|
|
2217
|
+
}
|
|
2218
|
+
|
|
2219
|
+
/**
|
|
2220
|
+
* `object` should be in either of the following forms:
|
|
2221
|
+
* ```
|
|
2222
|
+
* interface EventTypes {
|
|
2223
|
+
* 'event-with-parameters': any[]
|
|
2224
|
+
* 'event-with-example-handler': (...args: any[]) => void
|
|
2225
|
+
* }
|
|
2226
|
+
* ```
|
|
2227
|
+
*/
|
|
2228
|
+
export type ValidEventTypes = string | symbol | object;
|
|
2229
|
+
|
|
2230
|
+
export type EventNames<T extends ValidEventTypes> = T extends string | symbol
|
|
2231
|
+
? T
|
|
2232
|
+
: keyof T;
|
|
2233
|
+
|
|
2234
|
+
export type ArgumentMap<T extends object> = {
|
|
2235
|
+
[K in keyof T]: T[K] extends (...args: any[]) => void
|
|
2236
|
+
? Parameters<T[K]>
|
|
2237
|
+
: T[K] extends any[]
|
|
2238
|
+
? T[K]
|
|
2239
|
+
: any[];
|
|
2240
|
+
};
|
|
2241
|
+
|
|
2242
|
+
export type EventListener<
|
|
2243
|
+
T extends ValidEventTypes,
|
|
2244
|
+
K extends EventNames<T>
|
|
2245
|
+
> = T extends string | symbol
|
|
2246
|
+
? (...args: any[]) => void
|
|
2247
|
+
: (
|
|
2248
|
+
...args: ArgumentMap<Exclude<T, string | symbol>>[Extract<K, keyof T>]
|
|
2249
|
+
) => void;
|
|
2250
|
+
|
|
2251
|
+
export type EventArgs<
|
|
2252
|
+
T extends ValidEventTypes,
|
|
2253
|
+
K extends EventNames<T>
|
|
2254
|
+
> = Parameters<EventListener<T, K>>;
|
|
2255
|
+
|
|
2256
|
+
export const EventEmitter: EventEmitterStatic;
|
|
2257
|
+
}
|
|
2258
|
+
|
|
2259
|
+
declare namespace eventemitter3 {
|
|
2260
|
+
export {
|
|
2261
|
+
EventEmitter as default,
|
|
2262
|
+
};
|
|
2263
|
+
}
|
|
2264
|
+
|
|
2265
|
+
declare function login(args?: AsyncCallback<string>): Promise<string>;
|
|
2266
|
+
|
|
2267
|
+
declare function getAccessToken(args?: AsyncCallback<string>): Promise<string>;
|
|
2268
|
+
|
|
2269
|
+
declare function getVersion(): string;
|
|
2270
|
+
|
|
2271
|
+
declare function getSystemInfo(): SystemInfo;
|
|
2272
|
+
|
|
2259
2273
|
declare const setNavigationBarTitleArgs: ZodOptional<ZodObject<{
|
|
2260
2274
|
title: ZodString;
|
|
2261
2275
|
}, "strip", ZodTypeAny, {
|
|
@@ -2516,20 +2530,25 @@ declare function openChat(args: AsyncVoidCallback & TypeOf<(typeof openChatArgs)
|
|
|
2516
2530
|
declare const openPostFeedArgs: ZodUnion<[ZodObject<{
|
|
2517
2531
|
type: ZodEnum<["image"]>;
|
|
2518
2532
|
data: ZodObject<{
|
|
2519
|
-
imageUrl: ZodOptional<
|
|
2533
|
+
imageUrl: ZodOptional<ZodString>;
|
|
2534
|
+
imageUrls: ZodOptional<ZodArray<ZodString, "many">>;
|
|
2520
2535
|
}, "strip", ZodTypeAny, {
|
|
2521
|
-
imageUrl?: string |
|
|
2536
|
+
imageUrl?: string | undefined;
|
|
2537
|
+
imageUrls?: string[] | undefined;
|
|
2522
2538
|
}, {
|
|
2523
|
-
imageUrl?: string |
|
|
2539
|
+
imageUrl?: string | undefined;
|
|
2540
|
+
imageUrls?: string[] | undefined;
|
|
2524
2541
|
}>;
|
|
2525
2542
|
}, "strip", ZodTypeAny, {
|
|
2526
2543
|
data: {
|
|
2527
|
-
imageUrl?: string |
|
|
2544
|
+
imageUrl?: string | undefined;
|
|
2545
|
+
imageUrls?: string[] | undefined;
|
|
2528
2546
|
};
|
|
2529
2547
|
type: "image";
|
|
2530
2548
|
}, {
|
|
2531
2549
|
data: {
|
|
2532
|
-
imageUrl?: string |
|
|
2550
|
+
imageUrl?: string | undefined;
|
|
2551
|
+
imageUrls?: string[] | undefined;
|
|
2533
2552
|
};
|
|
2534
2553
|
type: "image";
|
|
2535
2554
|
}>, ZodObject<{
|
|
@@ -3255,6 +3274,30 @@ declare const checkTransactionArgs: ZodObject<{
|
|
|
3255
3274
|
}>[];
|
|
3256
3275
|
declare function checkTransaction(args: AsyncCallback<CheckTransactionReturns> & TypeOf<(typeof checkTransactionArgs)[0]>): Promise<CheckTransactionReturns>;
|
|
3257
3276
|
|
|
3277
|
+
declare const createOrderIAPArgs: ZodObject<{
|
|
3278
|
+
productId: ZodString;
|
|
3279
|
+
payType: ZodOptional<ZodEnum<["ONETIME", "SUBSCRIPTION"]>>;
|
|
3280
|
+
prorationMode: ZodOptional<ZodDefault<ZodEnum<["DEFERRED", "IMMEDIATE_AND_CHARGE_FULL_PRICE"]>>>;
|
|
3281
|
+
utm: ZodOptional<ZodString>;
|
|
3282
|
+
method: ZodOptional<ZodEnum<["IAP", "IAP_SANDBOX"]>>;
|
|
3283
|
+
merchantTransId: ZodOptional<ZodString>;
|
|
3284
|
+
}, "strip", ZodTypeAny, {
|
|
3285
|
+
method?: "IAP" | "IAP_SANDBOX" | undefined;
|
|
3286
|
+
payType?: "SUBSCRIPTION" | "ONETIME" | undefined;
|
|
3287
|
+
utm?: string | undefined;
|
|
3288
|
+
merchantTransId?: string | undefined;
|
|
3289
|
+
prorationMode?: "DEFERRED" | "IMMEDIATE_AND_CHARGE_FULL_PRICE" | undefined;
|
|
3290
|
+
productId: string;
|
|
3291
|
+
}, {
|
|
3292
|
+
method?: "IAP" | "IAP_SANDBOX" | undefined;
|
|
3293
|
+
payType?: "SUBSCRIPTION" | "ONETIME" | undefined;
|
|
3294
|
+
utm?: string | undefined;
|
|
3295
|
+
merchantTransId?: string | undefined;
|
|
3296
|
+
prorationMode?: "DEFERRED" | "IMMEDIATE_AND_CHARGE_FULL_PRICE" | undefined;
|
|
3297
|
+
productId: string;
|
|
3298
|
+
}>[];
|
|
3299
|
+
declare function createOrderIAP(args: AsyncCallback<CreateOrderIAPReturns> & TypeOf<(typeof createOrderIAPArgs)[0]>): Promise<CreateOrderIAPReturns>;
|
|
3300
|
+
|
|
3258
3301
|
declare const events: EventEmitter;
|
|
3259
3302
|
|
|
3260
3303
|
declare const setAndroidBottomNavigationBarArgs: ZodOptional<ZodObject<{
|
|
@@ -3336,30 +3379,6 @@ declare const configAppViewArgs: ZodObject<{
|
|
|
3336
3379
|
}>[];
|
|
3337
3380
|
declare function configAppView(args: AsyncVoidCallback & TypeOf<(typeof configAppViewArgs)[0]>): Promise<void>;
|
|
3338
3381
|
|
|
3339
|
-
declare const createOrderIAPArgs: ZodObject<{
|
|
3340
|
-
productId: ZodString;
|
|
3341
|
-
payType: ZodOptional<ZodEnum<["ONETIME", "SUBSCRIPTION"]>>;
|
|
3342
|
-
prorationMode: ZodOptional<ZodDefault<ZodEnum<["DEFERRED", "IMMEDIATE_AND_CHARGE_FULL_PRICE"]>>>;
|
|
3343
|
-
utm: ZodOptional<ZodString>;
|
|
3344
|
-
method: ZodOptional<ZodEnum<["IAP", "IAP_SANDBOX"]>>;
|
|
3345
|
-
merchantTransId: ZodOptional<ZodString>;
|
|
3346
|
-
}, "strip", ZodTypeAny, {
|
|
3347
|
-
method?: "IAP" | "IAP_SANDBOX" | undefined;
|
|
3348
|
-
payType?: "SUBSCRIPTION" | "ONETIME" | undefined;
|
|
3349
|
-
utm?: string | undefined;
|
|
3350
|
-
merchantTransId?: string | undefined;
|
|
3351
|
-
prorationMode?: "DEFERRED" | "IMMEDIATE_AND_CHARGE_FULL_PRICE" | undefined;
|
|
3352
|
-
productId: string;
|
|
3353
|
-
}, {
|
|
3354
|
-
method?: "IAP" | "IAP_SANDBOX" | undefined;
|
|
3355
|
-
payType?: "SUBSCRIPTION" | "ONETIME" | undefined;
|
|
3356
|
-
utm?: string | undefined;
|
|
3357
|
-
merchantTransId?: string | undefined;
|
|
3358
|
-
prorationMode?: "DEFERRED" | "IMMEDIATE_AND_CHARGE_FULL_PRICE" | undefined;
|
|
3359
|
-
productId: string;
|
|
3360
|
-
}>[];
|
|
3361
|
-
declare function createOrderIAP(args: AsyncCallback<CreateOrderIAPReturns> & TypeOf<(typeof createOrderIAPArgs)[0]>): Promise<CreateOrderIAPReturns>;
|
|
3362
|
-
|
|
3363
3382
|
declare function minimizeApp(args?: AsyncVoidCallback): Promise<void>;
|
|
3364
3383
|
|
|
3365
3384
|
declare function openPermissionSetting(args?: AsyncVoidCallback): Promise<void>;
|
|
@@ -3661,18 +3680,24 @@ declare function scanNFC(args: AsyncCallback & TypeOf<(typeof scanNFCArgs)[0]>):
|
|
|
3661
3680
|
|
|
3662
3681
|
declare function checkNFC(args: AsyncVoidCallback): Promise<any>;
|
|
3663
3682
|
|
|
3664
|
-
declare const
|
|
3665
|
-
|
|
3666
|
-
|
|
3667
|
-
|
|
3668
|
-
|
|
3669
|
-
|
|
3670
|
-
|
|
3671
|
-
|
|
3672
|
-
declare const removeItemArgs: ZodString[];
|
|
3673
|
-
declare function removeItem(key: TypeOf<(typeof removeItemArgs)[0]>): void;
|
|
3683
|
+
declare const nativeStorage: {
|
|
3684
|
+
getItem: typeof getItem;
|
|
3685
|
+
setItem: typeof setItem;
|
|
3686
|
+
clear: typeof clear;
|
|
3687
|
+
removeItem: typeof removeItem;
|
|
3688
|
+
getStorageInfo: typeof getStorageInfoSync;
|
|
3689
|
+
};
|
|
3674
3690
|
|
|
3675
|
-
declare
|
|
3691
|
+
declare const Payment: {
|
|
3692
|
+
createOrder: typeof createOrder;
|
|
3693
|
+
checkTransaction: typeof checkTransaction;
|
|
3694
|
+
createOrderIAP: typeof createOrderIAP;
|
|
3695
|
+
selectPaymentMethod: typeof selectPaymentMethod;
|
|
3696
|
+
};
|
|
3697
|
+
declare const CheckoutSDK: {
|
|
3698
|
+
purchase: typeof purchase;
|
|
3699
|
+
selectPaymentMethod: typeof selectPaymentMethod;
|
|
3700
|
+
};
|
|
3676
3701
|
|
|
3677
3702
|
declare const otherApis: {
|
|
3678
3703
|
Events: typeof Events;
|
|
@@ -3771,28 +3796,28 @@ declare const otherApis: {
|
|
|
3771
3796
|
showFunctionButtonWidget: typeof showFunctionButtonWidget;
|
|
3772
3797
|
scanNFC: typeof scanNFC;
|
|
3773
3798
|
checkNFC: typeof checkNFC;
|
|
3799
|
+
nativeStorage: {
|
|
3800
|
+
getItem: typeof getItem;
|
|
3801
|
+
setItem: typeof setItem;
|
|
3802
|
+
clear: typeof clear;
|
|
3803
|
+
removeItem: typeof removeItem;
|
|
3804
|
+
getStorageInfo: typeof getStorageInfoSync;
|
|
3805
|
+
};
|
|
3806
|
+
Payment: {
|
|
3807
|
+
createOrder: typeof createOrder;
|
|
3808
|
+
checkTransaction: typeof checkTransaction;
|
|
3809
|
+
createOrderIAP: typeof createOrderIAP;
|
|
3810
|
+
selectPaymentMethod: typeof selectPaymentMethod;
|
|
3811
|
+
};
|
|
3812
|
+
CheckoutSDK: {
|
|
3813
|
+
purchase: typeof purchase;
|
|
3814
|
+
selectPaymentMethod: typeof selectPaymentMethod;
|
|
3815
|
+
};
|
|
3774
3816
|
FacingMode: typeof FacingMode;
|
|
3775
3817
|
PhotoFormat: typeof PhotoFormat;
|
|
3776
3818
|
PhotoQuality: typeof PhotoQuality;
|
|
3777
3819
|
StreamType: typeof StreamType;
|
|
3778
3820
|
ZMACameraImp: typeof ZMACameraImp;
|
|
3779
3821
|
};
|
|
3780
|
-
declare const storage: {
|
|
3781
|
-
getItem: typeof getItem;
|
|
3782
|
-
setItem: typeof setItem;
|
|
3783
|
-
removeItem: typeof removeItem;
|
|
3784
|
-
clear: typeof clear;
|
|
3785
|
-
getStorageInfo: typeof getStorageInfoSync;
|
|
3786
|
-
};
|
|
3787
|
-
declare const payment: {
|
|
3788
|
-
createOrder: typeof createOrder;
|
|
3789
|
-
checkTransaction: typeof checkTransaction;
|
|
3790
|
-
createOrderIAP: typeof createOrderIAP;
|
|
3791
|
-
selectPaymentMethod: typeof selectPaymentMethod;
|
|
3792
|
-
};
|
|
3793
|
-
declare const checkout: {
|
|
3794
|
-
selectPaymentMethod: typeof selectPaymentMethod;
|
|
3795
|
-
purchase: typeof purchase;
|
|
3796
|
-
};
|
|
3797
3822
|
|
|
3798
|
-
export { Action, AndroidBottomNavigationBarType, AsyncCallback, AsyncCallbackFailObject, AsyncVoidCallback, AuthorizeType, CameraEvents, CameraParams, ChatType, CheckStateBioAuthenticationReturns, CheckTransactionReturns, CheckZaloCameraPermissionReturns,
|
|
3823
|
+
export { Action, AndroidBottomNavigationBarType, AsyncCallback, AsyncCallbackFailObject, AsyncVoidCallback, AuthorizeType, CameraEvents, CameraParams, ChatType, CheckStateBioAuthenticationReturns, CheckTransactionReturns, CheckZaloCameraPermissionReturns, CheckoutSDK, ChooseImageReturns, Common, ContextInfo, CreateOrderIAPReturns, CreateOrderReturns, Events as EventName, Events, FacingMode, FunctionProps, GetAppInfoReturns, GetAuthCodeReturns, GetBeaconDiscoveryReturns, GetLocationReturns, GetNetworkTypeReturns, GetPhoneNumberReturns, GetSettingReturn, GetStorageReturns, GetUserInfoReturns, GetZPITokenReturns, IAPMethodType, IAPPayType, IAPPayTypeType, IOSSafeAreaBottomType, JumpStatus, KeepScreenReturns, LogData, MediaConstraints, MediaDevice, MediaPickerType, NativeCallBackData, NetworkType, OpenBioAuthenticationReturns, OpenMediaPickerReturns, OpenPostFeedReturns, OpenProfilePickerReturns, OpenShareSheetReturns, OpenWebviewReturns, OrientationType, Payment, PhotoConstraint, PhotoFormat, PhotoFrame, PhotoQuality, PickAttr, PlatformType, PostFeedType, ProfileType, ProrationMode, ProrationModeType, RemoveStorageReturns, RequestCameraPermissionReturns, ScanNFCType, ScanQRCodeReturns, SelectPaymentMethodReturns, SetStorageReturns, ShareSheetType, StatusBarType, StorageInfo, StreamType, SystemInfo, TextAlignType, VibrateType, ZMACamera, ZMACameraImp, addRating, authorize, checkNFC, checkStateBioAuthentication, checkTransaction, checkZaloCameraPermission, chooseImage, clearStorage, closeApp, closeLoading, configAppView, connectWifi, createCameraContext, createOrder, createOrderIAP, createShortcut, otherApis as default, displayAd, 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, loadAd, login, minimizeApp, nativeStorage, offConfirmToExit, offKeepScreen, onCallbackData, onConfirmToExit, onKeepScreen, onNetworkStatusChange, openBioAuthentication, openChat, openGroupList, openMediaPicker, openMiniApp, openOutApp, openPermissionSetting, openPhone, openPostFeed, openProfile, openProfilePicker, openSMS, openShareSheet, openWebview, purchase, refreshAd, removeStorage, requestCameraPermission, requestSendNotification, requestUpdateZalo, saveImageToGallery, scanNFC, scanQRCode, selectPaymentMethod, sendDataToPreviousMiniApp, setAccessToken, setAndroidBottomNavigationBar, setIOSBottomSafeArea, setNavigationBarColor, setNavigationBarLeftButton, setNavigationBarTitle, setStatusBar, setStorage, setupAd, showFunctionButtonWidget, showOAWidget, showToast, startBeaconDiscovery, stopBeaconDiscovery, unfollowOA, vibrate, viewOAQr };
|