zmp-sdk 2.12.0-5 → 2.12.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser.min.js +64 -13
- package/dist/index.es.js +64 -13
- package/dist/index.js +3 -3
- package/dist/index.umd.js +3 -3
- package/dist/types/src/constants.d.ts +1 -0
- package/dist/types/src/controller/index.d.ts +1 -0
- package/dist/types/src/controller/interface.d.ts +1 -0
- package/dist/types/src/controller/sdk.d.ts +2 -0
- package/dist/types/src/services/openApi.d.ts +9 -0
- package/dist/types/src/types/callbackData.d.ts +7 -0
- package/dist/types/src/types/inputData.d.ts +4 -0
- package/package.json +1 -1
package/dist/browser.min.js
CHANGED
|
@@ -17414,7 +17414,8 @@
|
|
|
17414
17414
|
CHANGE_ACTIONBAR: 'action.change.actionbar',
|
|
17415
17415
|
INTERACTIVE_VIBRATION: 'action.interactive.vibration',
|
|
17416
17416
|
ZBROWSER_MPDS: 'action.zbrowser.mpds',
|
|
17417
|
-
WEBVIEW_SET_RESULT: "action.webview.set.result"
|
|
17417
|
+
WEBVIEW_SET_RESULT: "action.webview.set.result",
|
|
17418
|
+
MP_GET_NUMBER: "action.mp.get.number"
|
|
17418
17419
|
};
|
|
17419
17420
|
const ACTION_HAVE_CALLBACK = [
|
|
17420
17421
|
ACTION.GET_DOWNLOADED_STICKER,
|
|
@@ -17607,11 +17608,11 @@
|
|
|
17607
17608
|
.substr(2, RANDOM_STRING_LENGTH)}`;
|
|
17608
17609
|
};
|
|
17609
17610
|
const parseJSON = (str) => {
|
|
17610
|
-
const formattedStr = str
|
|
17611
|
-
.replace(/\n/g, '\\n')
|
|
17612
|
-
.replace(/\r/g, '\\r')
|
|
17613
|
-
.replace(/\t/g, '\\t');
|
|
17614
17611
|
if (lodash.isObject(JSON) && JSON.parse && lodash.isString(str)) {
|
|
17612
|
+
const formattedStr = str
|
|
17613
|
+
.replace(/\n/g, '\\n')
|
|
17614
|
+
.replace(/\r/g, '\\r')
|
|
17615
|
+
.replace(/\t/g, '\\t');
|
|
17615
17616
|
return JSON.parse(formattedStr, (key, value) => {
|
|
17616
17617
|
return value;
|
|
17617
17618
|
});
|
|
@@ -17676,12 +17677,15 @@
|
|
|
17676
17677
|
const stringToData = (data) => {
|
|
17677
17678
|
try {
|
|
17678
17679
|
if (data) {
|
|
17680
|
+
console.log(data);
|
|
17679
17681
|
const formattedValue = data.replace(/\\/g, '').replace(/'/g, "'");
|
|
17682
|
+
console.log('formattedValue', formattedValue, JSON.parse(formattedValue), typeof JSON.parse(formattedValue));
|
|
17680
17683
|
return JSON.parse(formattedValue);
|
|
17681
17684
|
}
|
|
17682
17685
|
return null;
|
|
17683
17686
|
}
|
|
17684
17687
|
catch (error) {
|
|
17688
|
+
console.log(error);
|
|
17685
17689
|
return data;
|
|
17686
17690
|
}
|
|
17687
17691
|
};
|
|
@@ -35262,7 +35266,7 @@
|
|
|
35262
35266
|
var data = item.split("=");
|
|
35263
35267
|
if (!data || data.length != 2)
|
|
35264
35268
|
return;
|
|
35265
|
-
params[data[0]] = decodeURIComponent(data[1]);
|
|
35269
|
+
params[data[0]] = decodeURIComponent(data[1].replace(/\+/g, " "));
|
|
35266
35270
|
});
|
|
35267
35271
|
return params;
|
|
35268
35272
|
}
|
|
@@ -35782,7 +35786,7 @@
|
|
|
35782
35786
|
}
|
|
35783
35787
|
};
|
|
35784
35788
|
|
|
35785
|
-
var version = "2.12.
|
|
35789
|
+
var version = "2.12.2";
|
|
35786
35790
|
|
|
35787
35791
|
class Basics {
|
|
35788
35792
|
/**
|
|
@@ -37303,6 +37307,31 @@
|
|
|
37303
37307
|
};
|
|
37304
37308
|
});
|
|
37305
37309
|
}
|
|
37310
|
+
/**
|
|
37311
|
+
* Gets user phone number.
|
|
37312
|
+
*
|
|
37313
|
+
* @async
|
|
37314
|
+
* @function getPhoneNumer
|
|
37315
|
+
* @category OpenAPI
|
|
37316
|
+
*
|
|
37317
|
+
*/
|
|
37318
|
+
static getPhoneNumer(object) {
|
|
37319
|
+
return new Promise((resolve, reject) => {
|
|
37320
|
+
this.callNative(ACTION.MP_GET_NUMBER, {}, {
|
|
37321
|
+
isMultiCallback: true,
|
|
37322
|
+
callback: (nativeData, error) => {
|
|
37323
|
+
if (error)
|
|
37324
|
+
reject(error);
|
|
37325
|
+
if (nativeData.error_code === 0) {
|
|
37326
|
+
const res = {
|
|
37327
|
+
number: nativeData.data
|
|
37328
|
+
};
|
|
37329
|
+
resolve(res);
|
|
37330
|
+
}
|
|
37331
|
+
}
|
|
37332
|
+
});
|
|
37333
|
+
});
|
|
37334
|
+
}
|
|
37306
37335
|
}
|
|
37307
37336
|
|
|
37308
37337
|
class Window {
|
|
@@ -37381,9 +37410,10 @@
|
|
|
37381
37410
|
return new Promise((resolve, reject) => {
|
|
37382
37411
|
this.callNative(ACTION.GET_LOCATION, {
|
|
37383
37412
|
silent_request: false,
|
|
37384
|
-
permission_description: ''
|
|
37413
|
+
permission_description: 'Cho phép Zalo truy cập vào vị trí của thiết bị này?'
|
|
37385
37414
|
}, {
|
|
37386
37415
|
isMultiCallback: true,
|
|
37416
|
+
haveTimeout: false,
|
|
37387
37417
|
callback: (nativeData, error) => {
|
|
37388
37418
|
if (error)
|
|
37389
37419
|
reject(error);
|
|
@@ -37504,7 +37534,9 @@
|
|
|
37504
37534
|
return yield this.callNative(ACTION.OPEN_PROFILE, {
|
|
37505
37535
|
uId: object.id,
|
|
37506
37536
|
type: ProfileType[object.type],
|
|
37507
|
-
zapp: this.getZAppId()
|
|
37537
|
+
zapp: this.getZAppId(),
|
|
37538
|
+
sourceId: object.sourceId,
|
|
37539
|
+
sourceIndex: object.sourceIndex
|
|
37508
37540
|
});
|
|
37509
37541
|
});
|
|
37510
37542
|
}
|
|
@@ -37520,7 +37552,9 @@
|
|
|
37520
37552
|
return yield this.callNative(ACTION.OPEN_CHAT, {
|
|
37521
37553
|
uId: object.id,
|
|
37522
37554
|
type: ChatType[object.type],
|
|
37523
|
-
zapp: this.getZAppId()
|
|
37555
|
+
zapp: this.getZAppId(),
|
|
37556
|
+
sourceId: object.sourceId,
|
|
37557
|
+
sourceIndex: object.sourceIndex
|
|
37524
37558
|
});
|
|
37525
37559
|
});
|
|
37526
37560
|
}
|
|
@@ -37710,7 +37744,7 @@
|
|
|
37710
37744
|
static redirectToPreviousMiniApp(object) {
|
|
37711
37745
|
return __awaiter(this, void 0, void 0, function* () {
|
|
37712
37746
|
return yield this.callNative(ACTION.WEBVIEW_SET_RESULT, {
|
|
37713
|
-
|
|
37747
|
+
result: stringifyData(object.data)
|
|
37714
37748
|
});
|
|
37715
37749
|
});
|
|
37716
37750
|
}
|
|
@@ -37725,9 +37759,11 @@
|
|
|
37725
37759
|
static onCallbackData(callback) {
|
|
37726
37760
|
return __awaiter(this, void 0, void 0, function* () {
|
|
37727
37761
|
yield this.listenerEventNative('h5.event.webview.result', '', (eventData) => {
|
|
37762
|
+
console.log(eventData);
|
|
37728
37763
|
const res = {
|
|
37729
37764
|
data: stringToData(eventData)
|
|
37730
37765
|
};
|
|
37766
|
+
console.log(typeof res.data);
|
|
37731
37767
|
callback(res);
|
|
37732
37768
|
});
|
|
37733
37769
|
});
|
|
@@ -37797,7 +37833,8 @@
|
|
|
37797
37833
|
const jsToken = cookies.find((cookie) => cookie.name === CONT.COOKIE_NAME.JS_TOKEN);
|
|
37798
37834
|
if (jsToken) {
|
|
37799
37835
|
this.setJSToken(jsToken.value);
|
|
37800
|
-
window.ZJSBridge.setJSToken &&
|
|
37836
|
+
window.ZJSBridge.setJSToken &&
|
|
37837
|
+
window.ZJSBridge.setJSToken(jsToken.value);
|
|
37801
37838
|
}
|
|
37802
37839
|
resolve(cookies);
|
|
37803
37840
|
})
|
|
@@ -37863,6 +37900,7 @@
|
|
|
37863
37900
|
this.getAppInfo = Basics.getAppInfo;
|
|
37864
37901
|
this.redirectToPreviousMiniApp = Routing.redirectToPreviousMiniApp;
|
|
37865
37902
|
this.onCallbackData = Routing.onCallbackData;
|
|
37903
|
+
this.getPhoneNumber = OpenApi.getPhoneNumer;
|
|
37866
37904
|
__classPrivateFieldSet(this, _ZaloMiniProgramSDK_zOAuth, null);
|
|
37867
37905
|
__classPrivateFieldSet(this, _ZaloMiniProgramSDK_accessToken, null);
|
|
37868
37906
|
this.isShowNavBar = true;
|
|
@@ -37914,7 +37952,8 @@
|
|
|
37914
37952
|
__classPrivateFieldGet(this, _ZaloMiniProgramSDK_cache).timer.getToken = window.setInterval(runTimer, expiredIn);
|
|
37915
37953
|
}
|
|
37916
37954
|
this.setZAccSession(__classPrivateFieldGet(this, _ZaloMiniProgramSDK_accessToken) || '');
|
|
37917
|
-
window.ZJSBridge.setZAccSession &&
|
|
37955
|
+
window.ZJSBridge.setZAccSession &&
|
|
37956
|
+
window.ZJSBridge.setZAccSession(__classPrivateFieldGet(this, _ZaloMiniProgramSDK_accessToken) || '');
|
|
37918
37957
|
return __classPrivateFieldGet(this, _ZaloMiniProgramSDK_accessToken);
|
|
37919
37958
|
}
|
|
37920
37959
|
return null;
|
|
@@ -38226,6 +38265,12 @@
|
|
|
38226
38265
|
callback(res);
|
|
38227
38266
|
return Promise.resolve();
|
|
38228
38267
|
};
|
|
38268
|
+
this.getPhoneNumber = () => {
|
|
38269
|
+
console.warn('This api only works on zalo app');
|
|
38270
|
+
return Promise.resolve({
|
|
38271
|
+
number: ''
|
|
38272
|
+
});
|
|
38273
|
+
};
|
|
38229
38274
|
}
|
|
38230
38275
|
}
|
|
38231
38276
|
_MockSDK_appId = new WeakMap(), _MockSDK_appConfig = new WeakMap(), _MockSDK_zOAuth = new WeakMap(), _MockSDK_accessToken = new WeakMap(), _MockSDK_cache = new WeakMap();
|
|
@@ -39864,6 +39909,9 @@
|
|
|
39864
39909
|
return yield __classPrivateFieldGet(this, _SDKCreator_sdk).onCallbackData(callback);
|
|
39865
39910
|
});
|
|
39866
39911
|
}
|
|
39912
|
+
getPhoneNumber(object) {
|
|
39913
|
+
return __classPrivateFieldGet(this, _SDKCreator_sdk).getPhoneNumber();
|
|
39914
|
+
}
|
|
39867
39915
|
}
|
|
39868
39916
|
_SDKCreator_sdk = new WeakMap();
|
|
39869
39917
|
__decorate([
|
|
@@ -40194,6 +40242,9 @@
|
|
|
40194
40242
|
__decorate([
|
|
40195
40243
|
handleError
|
|
40196
40244
|
], SDKCreator.prototype, "onCallbackData", null);
|
|
40245
|
+
__decorate([
|
|
40246
|
+
handleError
|
|
40247
|
+
], SDKCreator.prototype, "getPhoneNumber", null);
|
|
40197
40248
|
class ZaloMiniAppSDKCreator extends SDKCreator {
|
|
40198
40249
|
getInstance() {
|
|
40199
40250
|
return ZaloMiniProgramSDK.getInstance();
|
package/dist/index.es.js
CHANGED
|
@@ -17411,7 +17411,8 @@ const ACTION = {
|
|
|
17411
17411
|
CHANGE_ACTIONBAR: 'action.change.actionbar',
|
|
17412
17412
|
INTERACTIVE_VIBRATION: 'action.interactive.vibration',
|
|
17413
17413
|
ZBROWSER_MPDS: 'action.zbrowser.mpds',
|
|
17414
|
-
WEBVIEW_SET_RESULT: "action.webview.set.result"
|
|
17414
|
+
WEBVIEW_SET_RESULT: "action.webview.set.result",
|
|
17415
|
+
MP_GET_NUMBER: "action.mp.get.number"
|
|
17415
17416
|
};
|
|
17416
17417
|
const ACTION_HAVE_CALLBACK = [
|
|
17417
17418
|
ACTION.GET_DOWNLOADED_STICKER,
|
|
@@ -17604,11 +17605,11 @@ const generateUniqueString = (str = '') => {
|
|
|
17604
17605
|
.substr(2, RANDOM_STRING_LENGTH)}`;
|
|
17605
17606
|
};
|
|
17606
17607
|
const parseJSON = (str) => {
|
|
17607
|
-
const formattedStr = str
|
|
17608
|
-
.replace(/\n/g, '\\n')
|
|
17609
|
-
.replace(/\r/g, '\\r')
|
|
17610
|
-
.replace(/\t/g, '\\t');
|
|
17611
17608
|
if (lodash.isObject(JSON) && JSON.parse && lodash.isString(str)) {
|
|
17609
|
+
const formattedStr = str
|
|
17610
|
+
.replace(/\n/g, '\\n')
|
|
17611
|
+
.replace(/\r/g, '\\r')
|
|
17612
|
+
.replace(/\t/g, '\\t');
|
|
17612
17613
|
return JSON.parse(formattedStr, (key, value) => {
|
|
17613
17614
|
return value;
|
|
17614
17615
|
});
|
|
@@ -17673,12 +17674,15 @@ const stringifyData = (data) => {
|
|
|
17673
17674
|
const stringToData = (data) => {
|
|
17674
17675
|
try {
|
|
17675
17676
|
if (data) {
|
|
17677
|
+
console.log(data);
|
|
17676
17678
|
const formattedValue = data.replace(/\\/g, '').replace(/'/g, "'");
|
|
17679
|
+
console.log('formattedValue', formattedValue, JSON.parse(formattedValue), typeof JSON.parse(formattedValue));
|
|
17677
17680
|
return JSON.parse(formattedValue);
|
|
17678
17681
|
}
|
|
17679
17682
|
return null;
|
|
17680
17683
|
}
|
|
17681
17684
|
catch (error) {
|
|
17685
|
+
console.log(error);
|
|
17682
17686
|
return data;
|
|
17683
17687
|
}
|
|
17684
17688
|
};
|
|
@@ -35259,7 +35263,7 @@ function getParamsAsObject(query) {
|
|
|
35259
35263
|
var data = item.split("=");
|
|
35260
35264
|
if (!data || data.length != 2)
|
|
35261
35265
|
return;
|
|
35262
|
-
params[data[0]] = decodeURIComponent(data[1]);
|
|
35266
|
+
params[data[0]] = decodeURIComponent(data[1].replace(/\+/g, " "));
|
|
35263
35267
|
});
|
|
35264
35268
|
return params;
|
|
35265
35269
|
}
|
|
@@ -35779,7 +35783,7 @@ const apiResponse = {
|
|
|
35779
35783
|
}
|
|
35780
35784
|
};
|
|
35781
35785
|
|
|
35782
|
-
var version = "2.12.
|
|
35786
|
+
var version = "2.12.2";
|
|
35783
35787
|
|
|
35784
35788
|
class Basics {
|
|
35785
35789
|
/**
|
|
@@ -37300,6 +37304,31 @@ class OpenApi {
|
|
|
37300
37304
|
};
|
|
37301
37305
|
});
|
|
37302
37306
|
}
|
|
37307
|
+
/**
|
|
37308
|
+
* Gets user phone number.
|
|
37309
|
+
*
|
|
37310
|
+
* @async
|
|
37311
|
+
* @function getPhoneNumer
|
|
37312
|
+
* @category OpenAPI
|
|
37313
|
+
*
|
|
37314
|
+
*/
|
|
37315
|
+
static getPhoneNumer(object) {
|
|
37316
|
+
return new Promise((resolve, reject) => {
|
|
37317
|
+
this.callNative(ACTION.MP_GET_NUMBER, {}, {
|
|
37318
|
+
isMultiCallback: true,
|
|
37319
|
+
callback: (nativeData, error) => {
|
|
37320
|
+
if (error)
|
|
37321
|
+
reject(error);
|
|
37322
|
+
if (nativeData.error_code === 0) {
|
|
37323
|
+
const res = {
|
|
37324
|
+
number: nativeData.data
|
|
37325
|
+
};
|
|
37326
|
+
resolve(res);
|
|
37327
|
+
}
|
|
37328
|
+
}
|
|
37329
|
+
});
|
|
37330
|
+
});
|
|
37331
|
+
}
|
|
37303
37332
|
}
|
|
37304
37333
|
|
|
37305
37334
|
class Window {
|
|
@@ -37378,9 +37407,10 @@ class Location {
|
|
|
37378
37407
|
return new Promise((resolve, reject) => {
|
|
37379
37408
|
this.callNative(ACTION.GET_LOCATION, {
|
|
37380
37409
|
silent_request: false,
|
|
37381
|
-
permission_description: ''
|
|
37410
|
+
permission_description: 'Cho phép Zalo truy cập vào vị trí của thiết bị này?'
|
|
37382
37411
|
}, {
|
|
37383
37412
|
isMultiCallback: true,
|
|
37413
|
+
haveTimeout: false,
|
|
37384
37414
|
callback: (nativeData, error) => {
|
|
37385
37415
|
if (error)
|
|
37386
37416
|
reject(error);
|
|
@@ -37501,7 +37531,9 @@ class Zalo {
|
|
|
37501
37531
|
return yield this.callNative(ACTION.OPEN_PROFILE, {
|
|
37502
37532
|
uId: object.id,
|
|
37503
37533
|
type: ProfileType[object.type],
|
|
37504
|
-
zapp: this.getZAppId()
|
|
37534
|
+
zapp: this.getZAppId(),
|
|
37535
|
+
sourceId: object.sourceId,
|
|
37536
|
+
sourceIndex: object.sourceIndex
|
|
37505
37537
|
});
|
|
37506
37538
|
});
|
|
37507
37539
|
}
|
|
@@ -37517,7 +37549,9 @@ class Zalo {
|
|
|
37517
37549
|
return yield this.callNative(ACTION.OPEN_CHAT, {
|
|
37518
37550
|
uId: object.id,
|
|
37519
37551
|
type: ChatType[object.type],
|
|
37520
|
-
zapp: this.getZAppId()
|
|
37552
|
+
zapp: this.getZAppId(),
|
|
37553
|
+
sourceId: object.sourceId,
|
|
37554
|
+
sourceIndex: object.sourceIndex
|
|
37521
37555
|
});
|
|
37522
37556
|
});
|
|
37523
37557
|
}
|
|
@@ -37707,7 +37741,7 @@ class Routing {
|
|
|
37707
37741
|
static redirectToPreviousMiniApp(object) {
|
|
37708
37742
|
return __awaiter(this, void 0, void 0, function* () {
|
|
37709
37743
|
return yield this.callNative(ACTION.WEBVIEW_SET_RESULT, {
|
|
37710
|
-
|
|
37744
|
+
result: stringifyData(object.data)
|
|
37711
37745
|
});
|
|
37712
37746
|
});
|
|
37713
37747
|
}
|
|
@@ -37722,9 +37756,11 @@ class Routing {
|
|
|
37722
37756
|
static onCallbackData(callback) {
|
|
37723
37757
|
return __awaiter(this, void 0, void 0, function* () {
|
|
37724
37758
|
yield this.listenerEventNative('h5.event.webview.result', '', (eventData) => {
|
|
37759
|
+
console.log(eventData);
|
|
37725
37760
|
const res = {
|
|
37726
37761
|
data: stringToData(eventData)
|
|
37727
37762
|
};
|
|
37763
|
+
console.log(typeof res.data);
|
|
37728
37764
|
callback(res);
|
|
37729
37765
|
});
|
|
37730
37766
|
});
|
|
@@ -37794,7 +37830,8 @@ class ZaloMiniProgramSDK extends ZJSBridgeProvider {
|
|
|
37794
37830
|
const jsToken = cookies.find((cookie) => cookie.name === CONT.COOKIE_NAME.JS_TOKEN);
|
|
37795
37831
|
if (jsToken) {
|
|
37796
37832
|
this.setJSToken(jsToken.value);
|
|
37797
|
-
window.ZJSBridge.setJSToken &&
|
|
37833
|
+
window.ZJSBridge.setJSToken &&
|
|
37834
|
+
window.ZJSBridge.setJSToken(jsToken.value);
|
|
37798
37835
|
}
|
|
37799
37836
|
resolve(cookies);
|
|
37800
37837
|
})
|
|
@@ -37860,6 +37897,7 @@ class ZaloMiniProgramSDK extends ZJSBridgeProvider {
|
|
|
37860
37897
|
this.getAppInfo = Basics.getAppInfo;
|
|
37861
37898
|
this.redirectToPreviousMiniApp = Routing.redirectToPreviousMiniApp;
|
|
37862
37899
|
this.onCallbackData = Routing.onCallbackData;
|
|
37900
|
+
this.getPhoneNumber = OpenApi.getPhoneNumer;
|
|
37863
37901
|
__classPrivateFieldSet(this, _ZaloMiniProgramSDK_zOAuth, null);
|
|
37864
37902
|
__classPrivateFieldSet(this, _ZaloMiniProgramSDK_accessToken, null);
|
|
37865
37903
|
this.isShowNavBar = true;
|
|
@@ -37911,7 +37949,8 @@ class ZaloMiniProgramSDK extends ZJSBridgeProvider {
|
|
|
37911
37949
|
__classPrivateFieldGet(this, _ZaloMiniProgramSDK_cache).timer.getToken = window.setInterval(runTimer, expiredIn);
|
|
37912
37950
|
}
|
|
37913
37951
|
this.setZAccSession(__classPrivateFieldGet(this, _ZaloMiniProgramSDK_accessToken) || '');
|
|
37914
|
-
window.ZJSBridge.setZAccSession &&
|
|
37952
|
+
window.ZJSBridge.setZAccSession &&
|
|
37953
|
+
window.ZJSBridge.setZAccSession(__classPrivateFieldGet(this, _ZaloMiniProgramSDK_accessToken) || '');
|
|
37915
37954
|
return __classPrivateFieldGet(this, _ZaloMiniProgramSDK_accessToken);
|
|
37916
37955
|
}
|
|
37917
37956
|
return null;
|
|
@@ -38223,6 +38262,12 @@ class MockSDK {
|
|
|
38223
38262
|
callback(res);
|
|
38224
38263
|
return Promise.resolve();
|
|
38225
38264
|
};
|
|
38265
|
+
this.getPhoneNumber = () => {
|
|
38266
|
+
console.warn('This api only works on zalo app');
|
|
38267
|
+
return Promise.resolve({
|
|
38268
|
+
number: ''
|
|
38269
|
+
});
|
|
38270
|
+
};
|
|
38226
38271
|
}
|
|
38227
38272
|
}
|
|
38228
38273
|
_MockSDK_appId = new WeakMap(), _MockSDK_appConfig = new WeakMap(), _MockSDK_zOAuth = new WeakMap(), _MockSDK_accessToken = new WeakMap(), _MockSDK_cache = new WeakMap();
|
|
@@ -39861,6 +39906,9 @@ class SDKCreator {
|
|
|
39861
39906
|
return yield __classPrivateFieldGet(this, _SDKCreator_sdk).onCallbackData(callback);
|
|
39862
39907
|
});
|
|
39863
39908
|
}
|
|
39909
|
+
getPhoneNumber(object) {
|
|
39910
|
+
return __classPrivateFieldGet(this, _SDKCreator_sdk).getPhoneNumber();
|
|
39911
|
+
}
|
|
39864
39912
|
}
|
|
39865
39913
|
_SDKCreator_sdk = new WeakMap();
|
|
39866
39914
|
__decorate([
|
|
@@ -40191,6 +40239,9 @@ __decorate([
|
|
|
40191
40239
|
__decorate([
|
|
40192
40240
|
handleError
|
|
40193
40241
|
], SDKCreator.prototype, "onCallbackData", null);
|
|
40242
|
+
__decorate([
|
|
40243
|
+
handleError
|
|
40244
|
+
], SDKCreator.prototype, "getPhoneNumber", null);
|
|
40194
40245
|
class ZaloMiniAppSDKCreator extends SDKCreator {
|
|
40195
40246
|
getInstance() {
|
|
40196
40247
|
return ZaloMiniProgramSDK.getInstance();
|