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

@imedx/ics-chromely-plugin-imedx

Package Overview
Dependencies
Maintainers
13
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@imedx/ics-chromely-plugin-imedx - npm Package Compare versions

Comparing version 0.0.0-beta.2 to 0.0.0-beta.3

26

dist/ics-chromely-plugin-imedx.es5.js
import icsChromelyRequest from '@icreate/ics-chromely-js-sdk';
var LogoType;
(function (LogoType) {
LogoType[LogoType["square"] = 1] = "square";
LogoType[LogoType["oblong"] = 2] = "oblong";
})(LogoType || (LogoType = {}));
/*

@@ -35,2 +41,20 @@ * @Author: 文贝

};
/**
* 获取职工电子签名
* @param staffId 职工ID
* @returns base64图片
*/
IMedxHelper.GetStaffSign = function (staffId) {
return this.OperateEx('Staff/Sign', { id: staffId });
};
/**
* 获取机构徽标
* @param orgId 机构ID
* @param type logo类型 square:正方形 oblong:长方形
* @returns base64图片
*/
IMedxHelper.GetOrgLogo = function (orgId, type) {
if (type === void 0) { type = LogoType.square; }
return this.OperateEx('Org/Logo', { id: orgId, type: LogoType[type] });
};
return IMedxHelper;

@@ -48,3 +72,3 @@ }());

export { IMedxHelper as default };
export { IMedxHelper, LogoType, IMedxHelper as default };
//# sourceMappingURL=ics-chromely-plugin-imedx.es5.js.map
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('@icreate/ics-chromely-js-sdk')) :
typeof define === 'function' && define.amd ? define(['@icreate/ics-chromely-js-sdk'], factory) :
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.icsChromelyPluginImedx = factory(global.icsChromelyRequest));
})(this, (function (icsChromelyRequest) { 'use strict';
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@icreate/ics-chromely-js-sdk')) :
typeof define === 'function' && define.amd ? define(['exports', '@icreate/ics-chromely-js-sdk'], factory) :
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.icsChromelyPluginImedx = {}, global.icsChromelyRequest));
})(this, (function (exports, icsChromelyRequest) { 'use strict';

@@ -11,2 +11,8 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }

exports.LogoType = void 0;
(function (LogoType) {
LogoType[LogoType["square"] = 1] = "square";
LogoType[LogoType["oblong"] = 2] = "oblong";
})(exports.LogoType || (exports.LogoType = {}));
/*

@@ -44,2 +50,20 @@ * @Author: 文贝

};
/**
* 获取职工电子签名
* @param staffId 职工ID
* @returns base64图片
*/
IMedxHelper.GetStaffSign = function (staffId) {
return this.OperateEx('Staff/Sign', { id: staffId });
};
/**
* 获取机构徽标
* @param orgId 机构ID
* @param type logo类型 square:正方形 oblong:长方形
* @returns base64图片
*/
IMedxHelper.GetOrgLogo = function (orgId, type) {
if (type === void 0) { type = exports.LogoType.square; }
return this.OperateEx('Org/Logo', { id: orgId, type: exports.LogoType[type] });
};
return IMedxHelper;

@@ -57,5 +81,8 @@ }());

return IMedxHelper;
exports.IMedxHelper = IMedxHelper;
exports["default"] = IMedxHelper;
Object.defineProperty(exports, '__esModule', { value: true });
}));
//# sourceMappingURL=ics-chromely-plugin-imedx.umd.js.map

@@ -12,2 +12,3 @@ "use strict";

var ics_chromely_js_sdk_1 = require("@icreate/ics-chromely-js-sdk");
var interfaces_1 = require("../interfaces/interfaces");
var IMedxHelper = /** @class */ (function () {

@@ -37,2 +38,20 @@ function IMedxHelper() {

};
/**
* 获取职工电子签名
* @param staffId 职工ID
* @returns base64图片
*/
IMedxHelper.GetStaffSign = function (staffId) {
return this.OperateEx('Staff/Sign', { id: staffId });
};
/**
* 获取机构徽标
* @param orgId 机构ID
* @param type logo类型 square:正方形 oblong:长方形
* @returns base64图片
*/
IMedxHelper.GetOrgLogo = function (orgId, type) {
if (type === void 0) { type = interfaces_1.LogoType.square; }
return this.OperateEx('Org/Logo', { id: orgId, type: interfaces_1.LogoType[type] });
};
return IMedxHelper;

@@ -39,0 +58,0 @@ }());

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.LogoType = exports.IMedxHelper = void 0;
/*

@@ -12,3 +13,6 @@ * @Author: 文贝

var imedx_1 = require("./core/imedx");
exports.IMedxHelper = imedx_1.default;
var interfaces_1 = require("./interfaces/interfaces");
Object.defineProperty(exports, "LogoType", { enumerable: true, get: function () { return interfaces_1.LogoType; } });
exports.default = imedx_1.default;
//# sourceMappingURL=ics-chromely-plugin-imedx.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.LogoType = void 0;
var LogoType;
(function (LogoType) {
LogoType[LogoType["square"] = 1] = "square";
LogoType[LogoType["oblong"] = 2] = "oblong";
})(LogoType = exports.LogoType || (exports.LogoType = {}));
//# sourceMappingURL=interfaces.js.map

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

import { LogoType } from '../interfaces/interfaces';
export default class IMedxHelper {

@@ -13,2 +14,15 @@ private static OperateEx;

static CheckLogin(userName: string): Promise<any>;
/**
* 获取职工电子签名
* @param staffId 职工ID
* @returns base64图片
*/
static GetStaffSign(staffId: string): Promise<any>;
/**
* 获取机构徽标
* @param orgId 机构ID
* @param type logo类型 square:正方形 oblong:长方形
* @returns base64图片
*/
static GetOrgLogo(orgId: string, type?: LogoType): Promise<any>;
}
import IMedxHelper from './core/imedx';
import { LogoType } from './interfaces/interfaces';
export { IMedxHelper, LogoType };
export default IMedxHelper;
export default interface IIMedx {
GetNow(): Promise<any>;
CheckLogin(userName: string): Promise<any>;
GetStaffSign(staffId: string): Promise<any>;
GetOrgLogo(orgId: string, type: LogoType): Promise<any>;
}
export declare enum LogoType {
square = 1,
oblong = 2
}

2

package.json
{
"name": "@imedx/ics-chromely-plugin-imedx",
"version": "0.0.0-beta.2",
"version": "0.0.0-beta.3",
"description": "提供获取IMedx客户端本地信息,例如当前日期时间等",

@@ -5,0 +5,0 @@ "keywords": [],

@@ -16,2 +16,3 @@ <!--

```
0.0.0-beta.3 新增获取电子签名和机构Logo
0.0.0-beta.2 新增CheckLogin方法

@@ -18,0 +19,0 @@ 0.0.0-beta.1 新增获取本地时间函数GetNow

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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