Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@byhealth/native-app-jssdk

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@byhealth/native-app-jssdk - npm Package Compare versions

Comparing version 2.0.2 to 2.1.0

12

dist/index.d.ts

@@ -1,2 +0,2 @@

import { ShareInfo, UserInfo } from './types/MemberAppJs';
import { ShareInfo, UserInfo, NewUserInfo } from './types/MemberAppJs';
import * as NativeView from './nativeView';

@@ -60,2 +60,3 @@ /**

export declare function getUserInfo(): Promise<UserInfo>;
export declare function getNewUserInfo(): Promise<NewUserInfo>;
/**

@@ -84,2 +85,11 @@ * 弹出原生消息提示框

/**
* 监听关闭按钮事件(iOS有效)
* @param fn 回调事件
*/
export declare function listenClose(fn: () => void): void;
/**
* 取消监听关闭按钮事件(iOS有效)
*/
export declare function unlistenClose(): void;
/**
* 调用手机振动

@@ -86,0 +96,0 @@ */

@@ -124,2 +124,8 @@ "use strict";

exports.getUserInfo = getUserInfo;
function getNewUserInfo() {
return new Promise(function (resolve) {
nativeBridge_1.default('getNewUserInfo', createCallback_1.default(resolve));
});
}
exports.getNewUserInfo = getNewUserInfo;
/**

@@ -163,2 +169,17 @@ * 弹出原生消息提示框

/**
* 监听关闭按钮事件(iOS有效)
* @param fn 回调事件
*/
function listenClose(fn) {
nativeBridge_1.default('setCloseCallBack', 0, createCallback_1.default(fn, false));
}
exports.listenClose = listenClose;
/**
* 取消监听关闭按钮事件(iOS有效)
*/
function unlistenClose() {
nativeBridge_1.default('setCloseCallBack', 1, createCallback_1.default(function () { }));
}
exports.unlistenClose = unlistenClose;
/**
* 调用手机振动

@@ -165,0 +186,0 @@ */

@@ -99,2 +99,7 @@ /*

}
export function getNewUserInfo() {
return new Promise(function (resolve) {
nativeBridge('getNewUserInfo', createCallback(resolve));
});
}
/**

@@ -134,2 +139,15 @@ * 弹出原生消息提示框

/**
* 监听关闭按钮事件(iOS有效)
* @param fn 回调事件
*/
export function listenClose(fn) {
nativeBridge('setCloseCallBack', 0, createCallback(fn, false));
}
/**
* 取消监听关闭按钮事件(iOS有效)
*/
export function unlistenClose() {
nativeBridge('setCloseCallBack', 1, createCallback(function () { }));
}
/**
* 调用手机振动

@@ -136,0 +154,0 @@ */

@@ -205,1 +205,77 @@ /*

})(Gender || (Gender = {}));
/**
* [新版]用户性别
*/
export var NewUserGender;
(function (NewUserGender) {
/**
* 未知
*/
NewUserGender[NewUserGender["Unknow"] = 0] = "Unknow";
/**
* 男
*/
NewUserGender[NewUserGender["Male"] = 1] = "Male";
/**
* 女
*/
NewUserGender[NewUserGender["Female"] = 2] = "Female";
})(NewUserGender || (NewUserGender = {}));
/**
* [新版]用户类型
*/
export var NewMemberType;
(function (NewMemberType) {
/**
* 粉丝
*/
NewMemberType[NewMemberType["Fans"] = 0] = "Fans";
/**
* 会员
*/
NewMemberType[NewMemberType["Member"] = 1] = "Member";
/**
* 内部人员
*/
NewMemberType[NewMemberType["Insider"] = 2] = "Insider";
/**
* 同时是会员和内部人员
*/
NewMemberType[NewMemberType["InsiderMember"] = 3] = "InsiderMember";
})(NewMemberType || (NewMemberType = {}));
/**
* [新版]用户角色
*/
export var NewUserRole;
(function (NewUserRole) {
/**
* 店长
*/
NewUserRole[NewUserRole["StoreManager"] = 1] = "StoreManager";
/**
* 店员
*/
NewUserRole[NewUserRole["StoreAssistant"] = 1] = "StoreAssistant";
})(NewUserRole || (NewUserRole = {}));
/**
* [新版]店员状态
*/
export var NewUserStatus;
(function (NewUserStatus) {
/**
* 未激活
*/
NewUserStatus[NewUserStatus["Inactive"] = 0] = "Inactive";
/**
* 启用
*/
NewUserStatus[NewUserStatus["Enabled"] = 1] = "Enabled";
/**
* 禁用
*/
NewUserStatus[NewUserStatus["Disabled"] = 2] = "Disabled";
/**
* 作废
*/
NewUserStatus[NewUserStatus["Deactivate"] = 3] = "Deactivate";
})(NewUserStatus || (NewUserStatus = {}));

@@ -253,2 +253,195 @@ /**

/**
* [新版]用户性别
*/
export declare enum NewUserGender {
/**
* 未知
*/
Unknow = 0,
/**
* 男
*/
Male = 1,
/**
* 女
*/
Female = 2
}
/**
* [新版]用户类型
*/
export declare enum NewMemberType {
/**
* 粉丝
*/
Fans = 0,
/**
* 会员
*/
Member = 1,
/**
* 内部人员
*/
Insider = 2,
/**
* 同时是会员和内部人员
*/
InsiderMember = 3
}
/**
* [新版]用户角色
*/
export declare enum NewUserRole {
/**
* 店长
*/
StoreManager = 1,
/**
* 店员
*/
StoreAssistant = 1
}
/**
* [新版]店员状态
*/
export declare enum NewUserStatus {
/**
* 未激活
*/
Inactive = 0,
/**
* 启用
*/
Enabled = 1,
/**
* 禁用
*/
Disabled = 2,
/**
* 作废
*/
Deactivate = 3
}
/**
* [新版]用户信息
*/
export interface NewUserInfo {
/**
* 员工ID (店员ID)
*/
memberId: number;
/**
* 登陆认证授权token
*/
authToken: string;
/**
* 员工名称 (店员名称)
*/
memberName: string;
/**
* 员工昵称 (店员昵称)
*/
nickName: string;
/**
* 手机
*/
mobilePhone: string;
/**
* 座机
*/
telephone: string;
/**
* 1:男性2:女性0:未知
*/
gender: NewUserGender;
/**
* 生日(YYYY-MM-DD)
*/
birthday: string;
/**
* 会员类型
*/
memberType: NewMemberType;
/**
* 头像链接
*/
headimg: string;
/**
* 省份ID
*/
regionProvinceId: number;
/**
* 市/行政区ID
*/
regionCityId: number;
/**
* 城市ID
*/
regionCountyId: number;
/**
* 地址
*/
address: string;
/**
* 工作
*/
job: string;
/**
* 兴趣爱好
*/
hobby: string;
/**
* 公司名称
*/
company: string;
/**
* 电子邮件
*/
email: string;
/**
* 邮政编码
*/
postCode: string;
/**
* 月收入
*/
incomeMonth: string;
/**
* 身份证号
*/
idcard: string;
/**
* 机构ID (门店ID)
*/
orgId: string;
/**
* 机构编号 (门店编号)
*/
orgNo: string;
/**
* 角色
*/
roles: NewUserRole[];
/**
* 可用汤币
*/
availableMoney: number;
/**
* 冻结汤币
*/
freezingMoney: number;
/**
* 用户状态
*/
status: NewUserStatus;
/**
* 创建时间 (2018-11-20T06:27:06.121Z)
*/
createTime: string;
/**
* 更新时间 (2018-11-20T06:27:06.121Z)
*/
updateTime: string;
}
/**
* 分享信息

@@ -255,0 +448,0 @@ */

@@ -207,1 +207,77 @@ "use strict";

})(Gender = exports.Gender || (exports.Gender = {}));
/**
* [新版]用户性别
*/
var NewUserGender;
(function (NewUserGender) {
/**
* 未知
*/
NewUserGender[NewUserGender["Unknow"] = 0] = "Unknow";
/**
* 男
*/
NewUserGender[NewUserGender["Male"] = 1] = "Male";
/**
* 女
*/
NewUserGender[NewUserGender["Female"] = 2] = "Female";
})(NewUserGender = exports.NewUserGender || (exports.NewUserGender = {}));
/**
* [新版]用户类型
*/
var NewMemberType;
(function (NewMemberType) {
/**
* 粉丝
*/
NewMemberType[NewMemberType["Fans"] = 0] = "Fans";
/**
* 会员
*/
NewMemberType[NewMemberType["Member"] = 1] = "Member";
/**
* 内部人员
*/
NewMemberType[NewMemberType["Insider"] = 2] = "Insider";
/**
* 同时是会员和内部人员
*/
NewMemberType[NewMemberType["InsiderMember"] = 3] = "InsiderMember";
})(NewMemberType = exports.NewMemberType || (exports.NewMemberType = {}));
/**
* [新版]用户角色
*/
var NewUserRole;
(function (NewUserRole) {
/**
* 店长
*/
NewUserRole[NewUserRole["StoreManager"] = 1] = "StoreManager";
/**
* 店员
*/
NewUserRole[NewUserRole["StoreAssistant"] = 1] = "StoreAssistant";
})(NewUserRole = exports.NewUserRole || (exports.NewUserRole = {}));
/**
* [新版]店员状态
*/
var NewUserStatus;
(function (NewUserStatus) {
/**
* 未激活
*/
NewUserStatus[NewUserStatus["Inactive"] = 0] = "Inactive";
/**
* 启用
*/
NewUserStatus[NewUserStatus["Enabled"] = 1] = "Enabled";
/**
* 禁用
*/
NewUserStatus[NewUserStatus["Disabled"] = 2] = "Disabled";
/**
* 作废
*/
NewUserStatus[NewUserStatus["Deactivate"] = 3] = "Deactivate";
})(NewUserStatus = exports.NewUserStatus || (exports.NewUserStatus = {}));

2

package.json
{
"name": "@byhealth/native-app-jssdk",
"version": "2.0.2",
"version": "2.1.0",
"description": "By-Health Native App Jssdk.",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc