zmp-sdk 2.16.4 → 2.16.7

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.
@@ -1,4 +1,4 @@
1
- import { SDKInterface } from '../types/interface';
1
+ import { SDKServiceInterface } from '../types/interface';
2
2
  import { ZMPEEmitter } from '../event-emitter';
3
3
  import * as InputDataType from '../types/inputData';
4
4
  import * as CallbackDataType from '../types/callbackData';
@@ -6,7 +6,7 @@ export declare abstract class SDKCreator {
6
6
  #private;
7
7
  events: ZMPEEmitter;
8
8
  constructor();
9
- protected abstract getInstance(): SDKInterface;
9
+ protected abstract getServiceInstance(): SDKServiceInterface;
10
10
  /**
11
11
  * Login to call more action.
12
12
  *
@@ -111,8 +111,8 @@ export declare abstract class SDKCreator {
111
111
  getShareableLink(object: InputDataType.GetShareableLink<string>): Promise<string>;
112
112
  }
113
113
  export declare class ZaloMiniAppSDKCreator extends SDKCreator {
114
- protected getInstance(): SDKInterface;
114
+ protected getServiceInstance(): SDKServiceInterface;
115
115
  }
116
116
  export declare class MockSDKCreator extends SDKCreator {
117
- protected getInstance(): SDKInterface;
117
+ protected getServiceInstance(): SDKServiceInterface;
118
118
  }
@@ -1,4 +1,4 @@
1
- import { SDKCreator } from './controller';
1
+ import { SDKCreator } from './apis';
2
2
  declare let app: SDKCreator;
3
3
  export * from './types/inputData';
4
4
  export * from './types/callbackData';
@@ -1,5 +1,5 @@
1
1
  import * as DataType from '../types/inputData';
2
- import ZaloMiniProgramSDK from '../controller/zalo-mp-manager';
2
+ import ZaloMiniProgramSDK from './zalo-mp-service';
3
3
  export declare class Background {
4
4
  /**
5
5
  * Dynamically sets the background color of the window.
@@ -1,4 +1,4 @@
1
- import ZaloMiniProgramSDK from '../controller/zalo-mp-manager';
1
+ import ZaloMiniProgramSDK from './zalo-mp-service';
2
2
  import * as CallbackDataType from '../types/callbackData';
3
3
  import { systemInfo } from '../types/entity';
4
4
  export declare class Basics {
@@ -1,5 +1,5 @@
1
1
  import * as InputDataType from '../types/inputData';
2
- import ZaloMiniProgramSDK from '../controller/zalo-mp-manager';
2
+ import ZaloMiniProgramSDK from './zalo-mp-service';
3
3
  export declare class DataCaching {
4
4
  /**
5
5
  * Stores data in the specified key in the local cache.
@@ -1,6 +1,6 @@
1
1
  import * as InputDataType from '../types/inputData';
2
2
  import * as CallbackDataType from '../types/callbackData';
3
- import ZaloMiniProgramSDK from '../controller/zalo-mp-manager';
3
+ import ZaloMiniProgramSDK from './zalo-mp-service';
4
4
  export declare class Device {
5
5
  /**
6
6
  * Sets the device orientation.
@@ -1,4 +1,4 @@
1
- import ZaloMiniProgramSDK from '../controller/zalo-mp-manager';
1
+ import ZaloMiniProgramSDK from './zalo-mp-service';
2
2
  import * as InputDataType from '../types/inputData';
3
3
  import * as CallbackDataType from '../types/callbackData';
4
4
  export declare class Location {
@@ -1,6 +1,6 @@
1
1
  import * as InputDataType from '../types/inputData';
2
2
  import * as CallbackDataType from '../types/callbackData';
3
- import ZaloMiniProgramSDK from '../controller/zalo-mp-manager';
3
+ import ZaloMiniProgramSDK from './zalo-mp-service';
4
4
  export declare class Media {
5
5
  /**
6
6
  * Yêu cầu quyền camera
@@ -1,10 +1,10 @@
1
1
  import * as InputDataType from '../types/inputData';
2
2
  import * as CallbackDataType from '../types/callbackData';
3
- import { Basics } from '../services/basic';
4
- import { Routing } from '../services/routing';
3
+ import { Basics } from './basic';
4
+ import { Routing } from './routing';
5
5
  import * as Enum from '../types/enum';
6
- import { SDKInterface } from '../types/interface';
7
- export default class MockSDK implements SDKInterface {
6
+ import { SDKServiceInterface } from '../types/interface';
7
+ export default class MockSDKService implements SDKServiceInterface {
8
8
  #private;
9
9
  getLoginStatus: () => boolean;
10
10
  getAppId: () => string;
@@ -1,5 +1,5 @@
1
1
  import * as DataType from '../types/inputData';
2
- import ZaloMiniProgramSDK from '../controller/zalo-mp-manager';
2
+ import ZaloMiniProgramSDK from './zalo-mp-service';
3
3
  export declare class NavigationBar {
4
4
  /**
5
5
  * A promise for the user's favorite color.
@@ -1,4 +1,4 @@
1
- import ZaloMiniProgramSDK from '../controller/zalo-mp-manager';
1
+ import ZaloMiniProgramSDK from './zalo-mp-service';
2
2
  import * as InputDataType from '../types/inputData';
3
3
  import * as CallbackDataType from '../types/callbackData';
4
4
  export declare class OpenApi {
@@ -1,4 +1,4 @@
1
- import ZaloMiniProgramSDK from '../controller/zalo-mp-manager';
1
+ import ZaloMiniProgramSDK from './zalo-mp-service';
2
2
  import * as InputDataType from '../types/inputData';
3
3
  export declare class Routing {
4
4
  /**
@@ -1,5 +1,5 @@
1
1
  import * as InputDataType from '../types/inputData';
2
- import ZaloMiniProgramSDK from '../controller/zalo-mp-manager';
2
+ import ZaloMiniProgramSDK from './zalo-mp-service';
3
3
  export declare class Window {
4
4
  /**
5
5
  * Force close App.
@@ -1,25 +1,25 @@
1
1
  import { ZJSBridgeProvider } from '../bridgeProvider';
2
2
  import * as InputDataType from '../types/inputData';
3
- import { Basics } from '../services/basic';
4
- import { NavigationBar } from '../services/navigationBar';
5
- import { Background } from '../services/background';
6
- import { Device } from '../services/device';
7
- import { DataCaching } from '../services/dataCaching';
8
- import { OpenApi } from '../services/openApi';
9
- import { Window } from '../services/window';
10
- import { Location } from '../services/location';
11
- import { Media } from '../services/media';
12
- import { Zalo } from '../services/zalo';
13
- import { Routing } from '../services/routing';
14
- import { SDKInterface } from '../types/interface';
3
+ import { Basics } from './basic';
4
+ import { NavigationBar } from './navigationBar';
5
+ import { Background } from './background';
6
+ import { Device } from './device';
7
+ import { DataCaching } from './dataCaching';
8
+ import { OpenApi } from './openApi';
9
+ import { Window } from './window';
10
+ import { Location } from './location';
11
+ import { Media } from './media';
12
+ import { Zalo } from './zalo';
13
+ import { Routing } from './routing';
14
+ import { SDKServiceInterface } from '../types/interface';
15
15
  import { ZMPEEmitter } from '../event-emitter';
16
- export default class ZaloMiniProgramSDK extends ZJSBridgeProvider implements SDKInterface {
16
+ export default class ZaloMiniProgramSDKService extends ZJSBridgeProvider implements SDKServiceInterface {
17
17
  #private;
18
18
  events: ZMPEEmitter;
19
19
  isShowNavBar: boolean;
20
20
  isIOS: boolean;
21
21
  private static instance;
22
- static getInstance(): ZaloMiniProgramSDK;
22
+ static getInstance(): ZaloMiniProgramSDKService;
23
23
  constructor();
24
24
  getActionBarConfig: () => InputDataType.ActionBarConfig;
25
25
  setActionBarConfig: (setState: (state: InputDataType.ActionBarConfig) => InputDataType.ActionBarConfig) => void;
@@ -1,7 +1,7 @@
1
1
  import * as InputDataType from '../types/inputData';
2
2
  import * as CallbackDataType from '../types/callbackData';
3
3
  import { MediaPickerType } from '../types/enum';
4
- import ZaloMiniProgramSDK from '../controller/zalo-mp-manager';
4
+ import ZaloMiniProgramSDK from './zalo-mp-service';
5
5
  export declare class Zalo {
6
6
  /**
7
7
  * View QR.
@@ -2,7 +2,7 @@ import * as InputDataType from './inputData';
2
2
  import * as CallbackDataType from './callbackData';
3
3
  import { systemInfo } from './entity';
4
4
  import { MediaPickerType } from './enum';
5
- export interface SDKInterface {
5
+ export interface SDKServiceInterface {
6
6
  getAppId: () => string;
7
7
  login: (object?: InputDataType.CallbackType) => Promise<string>;
8
8
  getLoginStatus: () => boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zmp-sdk",
3
- "version": "2.16.4",
3
+ "version": "2.16.7",
4
4
  "description": "Zalo Mini App SDK",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",