zmp-sdk 2.14.2 → 2.14.3

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/index.es.js CHANGED
@@ -34671,38 +34671,51 @@ var zlib$2 = /*#__PURE__*/Object.freeze({
34671
34671
  'default': zlib$1
34672
34672
  });
34673
34673
 
34674
- var name = "axios";
34675
- var version$1 = "0.21.1";
34676
- var description = "Promise based HTTP client for the browser and node.js";
34677
- var main = "index.js";
34678
- var scripts = {
34679
- test: "grunt test && bundlesize",
34680
- start: "node ./sandbox/server.js",
34681
- build: "NODE_ENV=production grunt build",
34682
- preversion: "npm test",
34683
- version: "npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",
34684
- postversion: "git push && git push --tags",
34685
- examples: "node ./examples/server.js",
34686
- coveralls: "cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
34687
- fix: "eslint --fix lib/**/*.js"
34674
+ var _from = "axios@0.21.1";
34675
+ var _id = "axios@0.21.1";
34676
+ var _inBundle = false;
34677
+ var _integrity = "sha512-dKQiRHxGD9PPRIUNIWvZhPTPpl1rf/OxTYKsqKUDjBwYylTvV7SjSHJb9ratfyzM6wCdLCOYLzs73qpg5c4iGA==";
34678
+ var _location = "/zmp-sdk/axios";
34679
+ var _phantomChildren = {
34688
34680
  };
34689
- var repository = {
34690
- type: "git",
34691
- url: "https://github.com/axios/axios.git"
34681
+ var _requested = {
34682
+ type: "version",
34683
+ registry: true,
34684
+ raw: "axios@0.21.1",
34685
+ name: "axios",
34686
+ escapedName: "axios",
34687
+ rawSpec: "0.21.1",
34688
+ saveSpec: null,
34689
+ fetchSpec: "0.21.1"
34692
34690
  };
34693
- var keywords = [
34694
- "xhr",
34695
- "http",
34696
- "ajax",
34697
- "promise",
34698
- "node"
34691
+ var _requiredBy = [
34692
+ "/zmp-sdk"
34699
34693
  ];
34700
- var author = "Matt Zabriskie";
34701
- var license = "MIT";
34694
+ var _resolved = "https://registry.npmjs.org/axios/-/axios-0.21.1.tgz";
34695
+ var _shasum = "22563481962f4d6bde9a76d516ef0e5d3c09b2b8";
34696
+ var _spec = "axios@0.21.1";
34697
+ var _where = "/Users/nguyentuankiet/Work/Zalo/Projects/ZaloMiniProgram/TestNewFunction";
34698
+ var author = {
34699
+ name: "Matt Zabriskie"
34700
+ };
34701
+ var browser = {
34702
+ "./lib/adapters/http.js": "./lib/adapters/xhr.js"
34703
+ };
34702
34704
  var bugs = {
34703
34705
  url: "https://github.com/axios/axios/issues"
34704
34706
  };
34705
- var homepage = "https://github.com/axios/axios";
34707
+ var bundleDependencies = false;
34708
+ var bundlesize = [
34709
+ {
34710
+ path: "./dist/axios.min.js",
34711
+ threshold: "5kB"
34712
+ }
34713
+ ];
34714
+ var dependencies = {
34715
+ "follow-redirects": "^1.10.0"
34716
+ };
34717
+ var deprecated = false;
34718
+ var description = "Promise based HTTP client for the browser and node.js";
34706
34719
  var devDependencies = {
34707
34720
  bundlesize: "^0.17.0",
34708
34721
  coveralls: "^3.0.0",
@@ -34740,62 +34753,105 @@ var devDependencies = {
34740
34753
  webpack: "^1.13.1",
34741
34754
  "webpack-dev-server": "^1.14.1"
34742
34755
  };
34743
- var browser = {
34744
- "./lib/adapters/http.js": "./lib/adapters/xhr.js"
34745
- };
34756
+ var homepage = "https://github.com/axios/axios";
34746
34757
  var jsdelivr = "dist/axios.min.js";
34747
- var unpkg = "dist/axios.min.js";
34748
- var typings = "./index.d.ts";
34749
- var dependencies = {
34750
- "follow-redirects": "^1.10.0"
34751
- };
34752
- var bundlesize = [
34753
- {
34754
- path: "./dist/axios.min.js",
34755
- threshold: "5kB"
34756
- }
34758
+ var keywords = [
34759
+ "xhr",
34760
+ "http",
34761
+ "ajax",
34762
+ "promise",
34763
+ "node"
34757
34764
  ];
34765
+ var license = "MIT";
34766
+ var main = "index.js";
34767
+ var name = "axios";
34768
+ var repository = {
34769
+ type: "git",
34770
+ url: "git+https://github.com/axios/axios.git"
34771
+ };
34772
+ var scripts = {
34773
+ build: "NODE_ENV=production grunt build",
34774
+ coveralls: "cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
34775
+ examples: "node ./examples/server.js",
34776
+ fix: "eslint --fix lib/**/*.js",
34777
+ postversion: "git push && git push --tags",
34778
+ preversion: "npm test",
34779
+ start: "node ./sandbox/server.js",
34780
+ test: "grunt test && bundlesize",
34781
+ version: "npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json"
34782
+ };
34783
+ var typings = "./index.d.ts";
34784
+ var unpkg = "dist/axios.min.js";
34785
+ var version$1 = "0.21.1";
34758
34786
  var _package = {
34759
- name: name,
34760
- version: version$1,
34761
- description: description,
34762
- main: main,
34763
- scripts: scripts,
34764
- repository: repository,
34765
- keywords: keywords,
34787
+ _from: _from,
34788
+ _id: _id,
34789
+ _inBundle: _inBundle,
34790
+ _integrity: _integrity,
34791
+ _location: _location,
34792
+ _phantomChildren: _phantomChildren,
34793
+ _requested: _requested,
34794
+ _requiredBy: _requiredBy,
34795
+ _resolved: _resolved,
34796
+ _shasum: _shasum,
34797
+ _spec: _spec,
34798
+ _where: _where,
34766
34799
  author: author,
34767
- license: license,
34800
+ browser: browser,
34768
34801
  bugs: bugs,
34769
- homepage: homepage,
34802
+ bundleDependencies: bundleDependencies,
34803
+ bundlesize: bundlesize,
34804
+ dependencies: dependencies,
34805
+ deprecated: deprecated,
34806
+ description: description,
34770
34807
  devDependencies: devDependencies,
34771
- browser: browser,
34808
+ homepage: homepage,
34772
34809
  jsdelivr: jsdelivr,
34773
- unpkg: unpkg,
34810
+ keywords: keywords,
34811
+ license: license,
34812
+ main: main,
34813
+ name: name,
34814
+ repository: repository,
34815
+ scripts: scripts,
34774
34816
  typings: typings,
34775
- dependencies: dependencies,
34776
- bundlesize: bundlesize
34817
+ unpkg: unpkg,
34818
+ version: version$1
34777
34819
  };
34778
34820
 
34779
34821
  var _package$1 = /*#__PURE__*/Object.freeze({
34780
34822
  __proto__: null,
34781
- name: name,
34782
- version: version$1,
34783
- description: description,
34784
- main: main,
34785
- scripts: scripts,
34786
- repository: repository,
34787
- keywords: keywords,
34823
+ _from: _from,
34824
+ _id: _id,
34825
+ _inBundle: _inBundle,
34826
+ _integrity: _integrity,
34827
+ _location: _location,
34828
+ _phantomChildren: _phantomChildren,
34829
+ _requested: _requested,
34830
+ _requiredBy: _requiredBy,
34831
+ _resolved: _resolved,
34832
+ _shasum: _shasum,
34833
+ _spec: _spec,
34834
+ _where: _where,
34788
34835
  author: author,
34789
- license: license,
34836
+ browser: browser,
34790
34837
  bugs: bugs,
34791
- homepage: homepage,
34838
+ bundleDependencies: bundleDependencies,
34839
+ bundlesize: bundlesize,
34840
+ dependencies: dependencies,
34841
+ deprecated: deprecated,
34842
+ description: description,
34792
34843
  devDependencies: devDependencies,
34793
- browser: browser,
34844
+ homepage: homepage,
34794
34845
  jsdelivr: jsdelivr,
34795
- unpkg: unpkg,
34846
+ keywords: keywords,
34847
+ license: license,
34848
+ main: main,
34849
+ name: name,
34850
+ repository: repository,
34851
+ scripts: scripts,
34796
34852
  typings: typings,
34797
- dependencies: dependencies,
34798
- bundlesize: bundlesize,
34853
+ unpkg: unpkg,
34854
+ version: version$1,
34799
34855
  'default': _package
34800
34856
  });
34801
34857
 
@@ -36095,6 +36151,16 @@ const handleError = (target, propertyName, descriptor) => {
36095
36151
  }
36096
36152
  }
36097
36153
  catch (error) {
36154
+ if ((error === null || error === void 0 ? void 0 : error.code) === RESPONSE_CODE.UNAUTHORIZED ||
36155
+ (error === null || error === void 0 ? void 0 : error.code) === RESPONSE_CODE.FORBIDDEN) {
36156
+ let loggedIn = false;
36157
+ if (this instanceof SDKCreator) {
36158
+ loggedIn = this.getLoginStatus();
36159
+ }
36160
+ if (!loggedIn) {
36161
+ error = new CommonError(RESPONSE_CODE.UNAUTHORIZED, MESSAGES.LOGIN_REQUIRED);
36162
+ }
36163
+ }
36098
36164
  const { handler } = catchDecoratorStore;
36099
36165
  const errorParsed = handler.call(null, propertyName, error, this);
36100
36166
  window.zmpSentry && window.zmpSentry.throwError(errorParsed.toString());
@@ -36117,6 +36183,16 @@ const handleErrorSync = (target, key, descriptor) => {
36117
36183
  return fn.apply(this, args);
36118
36184
  }
36119
36185
  catch (error) {
36186
+ if ((error === null || error === void 0 ? void 0 : error.code) === RESPONSE_CODE.UNAUTHORIZED ||
36187
+ (error === null || error === void 0 ? void 0 : error.code) === RESPONSE_CODE.FORBIDDEN) {
36188
+ let loggedIn = false;
36189
+ if (this instanceof SDKCreator) {
36190
+ loggedIn = this.getLoginStatus();
36191
+ }
36192
+ if (!loggedIn) {
36193
+ error = new CommonError(RESPONSE_CODE.UNAUTHORIZED, MESSAGES.LOGIN_REQUIRED);
36194
+ }
36195
+ }
36120
36196
  const { handler } = catchDecoratorStore;
36121
36197
  if (!lodash.isNull(handler) && lodash.isFunction(handler)) {
36122
36198
  handler.call(null, key, error, this);
@@ -36145,31 +36221,71 @@ class ZJSBridgeProvider {
36145
36221
  }
36146
36222
  callNative(action, data, option) {
36147
36223
  return new Promise((resolve, reject) => {
36148
- const fn = (cb) => {
36149
- if (cb && cb.error_code >= 0 && cb.action == action) {
36150
- resolve(cb.data || {});
36151
- if (option === null || option === void 0 ? void 0 : option.callback) {
36152
- option.callback(cb, null);
36153
- }
36154
- }
36155
- else if (cb && cb.error_code < 0) {
36224
+ const fn = (cb) => __awaiter(this, void 0, void 0, function* () {
36225
+ try {
36156
36226
  const error = new NativeError(cb.error_code, `${cb.action}: ${cb.error_message}`);
36157
- try {
36158
- window.zmpSentry &&
36159
- window.zmpSentry.captureMessage(`${action}: call native fail`, {
36160
- extra: {
36161
- data: data,
36162
- rs: cb
36227
+ if (cb.action === action) {
36228
+ if (option === null || option === void 0 ? void 0 : option.callback) {
36229
+ const res = yield option.callback(cb, error);
36230
+ resolve(res);
36231
+ }
36232
+ else {
36233
+ if (cb && cb.error_code >= 0) {
36234
+ resolve(cb.data || {});
36235
+ }
36236
+ else if (cb && cb.error_code < 0) {
36237
+ try {
36238
+ window.zmpSentry &&
36239
+ window.zmpSentry.captureMessage(`${action}: call native fail`, {
36240
+ extra: {
36241
+ data: data,
36242
+ rs: cb
36243
+ }
36244
+ });
36163
36245
  }
36164
- });
36246
+ catch (error) { }
36247
+ reject(error);
36248
+ }
36249
+ }
36165
36250
  }
36166
- catch (error) { }
36251
+ }
36252
+ catch (error) {
36167
36253
  reject(error);
36168
- if (option === null || option === void 0 ? void 0 : option.callback) {
36169
- option.callback(cb, error);
36170
- }
36171
36254
  }
36172
- };
36255
+ // if (cb && cb.error_code >= 0 && cb.action == action) {
36256
+ // resolve(cb.data || {});
36257
+ // if (option?.callback) {
36258
+ // try {
36259
+ // await option.callback(cb, null);
36260
+ // } catch (error) {
36261
+ // reject(error);
36262
+ // }
36263
+ // }
36264
+ // } else if (cb && cb.error_code < 0) {
36265
+ // const error = new NativeError(
36266
+ // cb.error_code,
36267
+ // `${cb.action}: ${cb.error_message}`
36268
+ // );
36269
+ // try {
36270
+ // window.zmpSentry &&
36271
+ // window.zmpSentry.captureMessage(`${action}: call native fail`, {
36272
+ // extra: {
36273
+ // data: data,
36274
+ // rs: cb
36275
+ // }
36276
+ // });
36277
+ // } catch (error) {}
36278
+ // if (option?.callback) {
36279
+ // try {
36280
+ // await option.callback(cb, error);
36281
+ // } catch (error) {
36282
+ // reject(error);
36283
+ // }
36284
+ // } else {
36285
+ // reject(error);
36286
+ // }
36287
+ // }
36288
+ });
36173
36289
  __classPrivateFieldGet(this, _ZJSBridgeProvider_bridge).jsCall(action, data, fn, option === null || option === void 0 ? void 0 : option.isMultiCallback, option === null || option === void 0 ? void 0 : option.nRetry, option === null || option === void 0 ? void 0 : option.haveTimeout);
36174
36290
  });
36175
36291
  }
@@ -36185,7 +36301,7 @@ const apiResponse = {
36185
36301
  }
36186
36302
  };
36187
36303
 
36188
- var version = "2.14.2";
36304
+ var version = "2.14.3";
36189
36305
 
36190
36306
  class Basics {
36191
36307
  /**
@@ -37691,17 +37807,18 @@ class OpenApi {
37691
37807
  *
37692
37808
  */
37693
37809
  static getPhoneNumber(object) {
37694
- return new Promise((resolve, reject) => {
37695
- this.callNative(ACTION.MP_GET_NUMBER, {}, {
37810
+ return __awaiter(this, void 0, void 0, function* () {
37811
+ return yield this.callNative(ACTION.MP_GET_NUMBER, {}, {
37696
37812
  isMultiCallback: true,
37697
37813
  callback: (nativeData, error) => {
37698
- if (error)
37699
- reject(error);
37700
37814
  if (nativeData.error_code === 0) {
37701
37815
  const res = {
37702
37816
  number: nativeData.data
37703
37817
  };
37704
- resolve(res);
37818
+ return Promise.resolve(res);
37819
+ }
37820
+ else {
37821
+ return Promise.reject(error);
37705
37822
  }
37706
37823
  }
37707
37824
  });
@@ -37782,16 +37899,14 @@ class Location {
37782
37899
  *
37783
37900
  */
37784
37901
  static getLocation(object) {
37785
- return new Promise((resolve, reject) => {
37786
- this.callNative(ACTION.GET_LOCATION, {
37902
+ return __awaiter(this, void 0, void 0, function* () {
37903
+ return yield this.callNative(ACTION.GET_LOCATION, {
37787
37904
  silent_request: false,
37788
37905
  permission_description: 'Cho phép Zalo truy cập vào vị trí của thiết bị này?'
37789
37906
  }, {
37790
37907
  isMultiCallback: true,
37791
37908
  haveTimeout: false,
37792
37909
  callback: (nativeData, error) => {
37793
- if (error)
37794
- reject(error);
37795
37910
  if (nativeData.error_code === 0) {
37796
37911
  const data = nativeData.data;
37797
37912
  const res = {
@@ -37804,7 +37919,10 @@ class Location {
37804
37919
  /** provider */
37805
37920
  provider: data.provider
37806
37921
  };
37807
- resolve(res);
37922
+ return Promise.resolve(res);
37923
+ }
37924
+ else {
37925
+ return Promise.reject(error);
37808
37926
  }
37809
37927
  }
37810
37928
  });
@@ -37839,17 +37957,17 @@ class Media {
37839
37957
  *
37840
37958
  */
37841
37959
  static requestCameraPermission(object) {
37842
- return new Promise((resolve, reject) => {
37843
- this.callNative(ACTION.REQUEST_PERMISSION_CAMERA, {}, {
37960
+ return __awaiter(this, void 0, void 0, function* () {
37961
+ return yield this.callNative(ACTION.REQUEST_PERMISSION_CAMERA, {}, {
37844
37962
  callback: (nativeData, error) => {
37845
37963
  if (nativeData.error_code === -2 || nativeData.error_code >= 0) {
37846
- resolve({
37964
+ return Promise.resolve({
37847
37965
  userAllow: nativeData.error_code === -2 ? false : true,
37848
37966
  message: nativeData.error_message
37849
37967
  });
37850
37968
  }
37851
37969
  else {
37852
- reject(error);
37970
+ return Promise.reject(error);
37853
37971
  }
37854
37972
  }
37855
37973
  });
@@ -38143,7 +38261,7 @@ class Routing {
38143
38261
  }
38144
38262
  }
38145
38263
 
38146
- var _ZaloMiniProgramSDK_zAppId, _ZaloMiniProgramSDK_appId, _ZaloMiniProgramSDK_appConfig, _ZaloMiniProgramSDK_zOAuth, _ZaloMiniProgramSDK_accessToken, _ZaloMiniProgramSDK_cache, _ZaloMiniProgramSDK_configWindow, _ZaloMiniProgramSDK_configApp, _ZaloMiniProgramSDK_callJump, _ZaloMiniProgramSDK_setNavigationBarRightButton;
38264
+ var _ZaloMiniProgramSDK_zAppId, _ZaloMiniProgramSDK_appId, _ZaloMiniProgramSDK_appConfig, _ZaloMiniProgramSDK_zOAuth, _ZaloMiniProgramSDK_accessToken, _ZaloMiniProgramSDK_cache, _ZaloMiniProgramSDK_loggedIn, _ZaloMiniProgramSDK_configWindow, _ZaloMiniProgramSDK_configApp, _ZaloMiniProgramSDK_callJump, _ZaloMiniProgramSDK_setNavigationBarRightButton;
38147
38265
  class ZaloMiniProgramSDK extends ZJSBridgeProvider {
38148
38266
  constructor() {
38149
38267
  super();
@@ -38157,6 +38275,7 @@ class ZaloMiniProgramSDK extends ZJSBridgeProvider {
38157
38275
  getToken: 0
38158
38276
  }
38159
38277
  });
38278
+ _ZaloMiniProgramSDK_loggedIn.set(this, false);
38160
38279
  this.events = ZMPEEmitter.getInstance();
38161
38280
  _ZaloMiniProgramSDK_configWindow.set(this, () => {
38162
38281
  const appConfig = __classPrivateFieldGet(this, _ZaloMiniProgramSDK_appConfig).app || null;
@@ -38286,6 +38405,9 @@ class ZaloMiniProgramSDK extends ZJSBridgeProvider {
38286
38405
  }
38287
38406
  return ZaloMiniProgramSDK.instance;
38288
38407
  }
38408
+ getLoginStatus() {
38409
+ return __classPrivateFieldGet(this, _ZaloMiniProgramSDK_loggedIn);
38410
+ }
38289
38411
  getAppId() {
38290
38412
  return __classPrivateFieldGet(this, _ZaloMiniProgramSDK_appId);
38291
38413
  }
@@ -38324,11 +38446,13 @@ class ZaloMiniProgramSDK extends ZJSBridgeProvider {
38324
38446
  if (!__classPrivateFieldGet(this, _ZaloMiniProgramSDK_cache).timer.getToken) {
38325
38447
  __classPrivateFieldGet(this, _ZaloMiniProgramSDK_cache).timer.getToken = window.setInterval(runTimer, expiredIn);
38326
38448
  }
38449
+ __classPrivateFieldSet(this, _ZaloMiniProgramSDK_loggedIn, true);
38327
38450
  this.setZAccSession(__classPrivateFieldGet(this, _ZaloMiniProgramSDK_accessToken) || '');
38328
38451
  window.ZJSBridge.setZAccSession &&
38329
38452
  window.ZJSBridge.setZAccSession(__classPrivateFieldGet(this, _ZaloMiniProgramSDK_accessToken) || '');
38330
38453
  return __classPrivateFieldGet(this, _ZaloMiniProgramSDK_accessToken);
38331
38454
  }
38455
+ __classPrivateFieldSet(this, _ZaloMiniProgramSDK_loggedIn, false);
38332
38456
  return null;
38333
38457
  });
38334
38458
  });
@@ -38347,9 +38471,9 @@ class ZaloMiniProgramSDK extends ZJSBridgeProvider {
38347
38471
  });
38348
38472
  }
38349
38473
  }
38350
- _ZaloMiniProgramSDK_zAppId = new WeakMap(), _ZaloMiniProgramSDK_appId = new WeakMap(), _ZaloMiniProgramSDK_appConfig = new WeakMap(), _ZaloMiniProgramSDK_zOAuth = new WeakMap(), _ZaloMiniProgramSDK_accessToken = new WeakMap(), _ZaloMiniProgramSDK_cache = new WeakMap(), _ZaloMiniProgramSDK_configWindow = new WeakMap(), _ZaloMiniProgramSDK_configApp = new WeakMap(), _ZaloMiniProgramSDK_callJump = new WeakMap(), _ZaloMiniProgramSDK_setNavigationBarRightButton = new WeakMap();
38474
+ _ZaloMiniProgramSDK_zAppId = new WeakMap(), _ZaloMiniProgramSDK_appId = new WeakMap(), _ZaloMiniProgramSDK_appConfig = new WeakMap(), _ZaloMiniProgramSDK_zOAuth = new WeakMap(), _ZaloMiniProgramSDK_accessToken = new WeakMap(), _ZaloMiniProgramSDK_cache = new WeakMap(), _ZaloMiniProgramSDK_loggedIn = new WeakMap(), _ZaloMiniProgramSDK_configWindow = new WeakMap(), _ZaloMiniProgramSDK_configApp = new WeakMap(), _ZaloMiniProgramSDK_callJump = new WeakMap(), _ZaloMiniProgramSDK_setNavigationBarRightButton = new WeakMap();
38351
38475
 
38352
- var _MockSDK_appId, _MockSDK_appConfig, _MockSDK_zOAuth, _MockSDK_accessToken, _MockSDK_cache;
38476
+ var _MockSDK_appId, _MockSDK_appConfig, _MockSDK_zOAuth, _MockSDK_accessToken, _MockSDK_cache, _MockSDK_loggedId;
38353
38477
  class MockSDK {
38354
38478
  constructor() {
38355
38479
  _MockSDK_appId.set(this, window.zAppID);
@@ -38361,10 +38485,15 @@ class MockSDK {
38361
38485
  getToken: 0
38362
38486
  }
38363
38487
  });
38488
+ _MockSDK_loggedId.set(this, false);
38489
+ this.getLoginStatus = () => {
38490
+ return __classPrivateFieldGet(this, _MockSDK_loggedId);
38491
+ };
38364
38492
  this.getAppId = () => {
38365
38493
  return __classPrivateFieldGet(this, _MockSDK_appId);
38366
38494
  };
38367
38495
  this.login = () => {
38496
+ __classPrivateFieldSet(this, _MockSDK_loggedId, true);
38368
38497
  return Promise.resolve(__classPrivateFieldGet(this, _MockSDK_zOAuth));
38369
38498
  };
38370
38499
  this.getAccessToken = () => {
@@ -38410,7 +38539,7 @@ class MockSDK {
38410
38539
  return yield storage.clearStorage();
38411
38540
  });
38412
38541
  this.getUserInfo = () => {
38413
- console.warn("birthday and gender are deprecated");
38542
+ console.warn('birthday and gender are deprecated');
38414
38543
  return Promise.resolve({
38415
38544
  userInfo: {
38416
38545
  id: '3368637342326461234',
@@ -38659,7 +38788,7 @@ class MockSDK {
38659
38788
  throw new Error('Method not implemented.');
38660
38789
  }
38661
38790
  }
38662
- _MockSDK_appId = new WeakMap(), _MockSDK_appConfig = new WeakMap(), _MockSDK_zOAuth = new WeakMap(), _MockSDK_accessToken = new WeakMap(), _MockSDK_cache = new WeakMap();
38791
+ _MockSDK_appId = new WeakMap(), _MockSDK_appConfig = new WeakMap(), _MockSDK_zOAuth = new WeakMap(), _MockSDK_accessToken = new WeakMap(), _MockSDK_cache = new WeakMap(), _MockSDK_loggedId = new WeakMap();
38663
38792
 
38664
38793
  /*! *****************************************************************************
38665
38794
  Copyright (C) Microsoft. All rights reserved.
@@ -39900,7 +40029,6 @@ class SDKCreator {
39900
40029
  _SDKCreator_sdkManager.set(this, void 0);
39901
40030
  __classPrivateFieldSet(this, _SDKCreator_sdkManager, this.getInstance());
39902
40031
  this.events.addListener = (event, fn, context) => {
39903
- console.log(123123);
39904
40032
  const stringifyEventName = event;
39905
40033
  return this.events.addListener(Events[stringifyEventName], fn, context);
39906
40034
  };
@@ -39925,6 +40053,9 @@ class SDKCreator {
39925
40053
  return yield __classPrivateFieldGet(this, _SDKCreator_sdkManager).login(object);
39926
40054
  });
39927
40055
  }
40056
+ getLoginStatus() {
40057
+ return __classPrivateFieldGet(this, _SDKCreator_sdkManager).getLoginStatus();
40058
+ }
39928
40059
  /**
39929
40060
  * Get Access Token.
39930
40061
  *
@@ -40297,13 +40428,18 @@ class SDKCreator {
40297
40428
  });
40298
40429
  }
40299
40430
  getPhoneNumber(object) {
40300
- return __classPrivateFieldGet(this, _SDKCreator_sdkManager).getPhoneNumber();
40431
+ return __awaiter(this, void 0, void 0, function* () {
40432
+ return yield __classPrivateFieldGet(this, _SDKCreator_sdkManager).getPhoneNumber();
40433
+ });
40301
40434
  }
40302
40435
  }
40303
40436
  _SDKCreator_sdkManager = new WeakMap();
40304
40437
  __decorate([
40305
40438
  handleError
40306
40439
  ], SDKCreator.prototype, "login", null);
40440
+ __decorate([
40441
+ handleErrorSync
40442
+ ], SDKCreator.prototype, "getLoginStatus", null);
40307
40443
  __decorate([
40308
40444
  handleError
40309
40445
  ], SDKCreator.prototype, "getAccessToken", null);