🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@keyiis/payroll-interface

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@keyiis/payroll-interface - npm Package Compare versions

Comparing version
0.0.21
to
0.0.22
+216
-22
index.d.ts

@@ -56,2 +56,6 @@ import { Options } from 'amqplib';

/**
* payroll api
*/
payroll_api?: string;
/**
* 访问其它后端应用鉴权使用

@@ -62,2 +66,3 @@ */

appSecretKey: string;
innerEmpIds: number[];
/**

@@ -82,2 +87,3 @@ * 数据库配置

rabbitMq: IRabbitmqEnvConfig;
[key: string]: any;
}

@@ -215,2 +221,29 @@

/**
* 薪酬项目
*/
interface IItem extends ICommonItem {
/**
* 雇主id
* 标识私有项目
*/
employerId?: number;
/**
* 创建的用户id
*/
createByClient?: number;
/**
* 用户创建的时间
*/
createAtClient?: number;
/**
* 更新的用户id
*/
updateByClient?: number;
/**
* 用户更新的时间
*/
updateAtClient?: number;
}
interface IItemFormulaExpression {

@@ -458,3 +491,3 @@ /**

*/
interface IItem extends ICommonFields {
interface ICommonItem extends ICommonFields {
id?: string;

@@ -478,7 +511,2 @@ /**

/**
* 雇主id
* 标识私有项目
*/
employerId?: number;
/**
* 类别Id

@@ -492,21 +520,17 @@ */

/**
* 配置
* + 整数,- 负数,NA 非数字类型
*/
config?: IItemConfig;
signFlag?: string;
/**
* 创建的用户id
* 父工资项code, 模板id会变化,直接使用code处理
*/
createByClient?: number;
parentCode?: string;
/**
* 用户创建的时间
* 工资单分组id
*/
createAtClient?: number;
payrollGroupId?: string;
/**
* 更新的用户id
* 配置
*/
updateByClient?: number;
/**
* 用户更新的时间
*/
updateAtClient?: number;
config?: IItemConfig;
}

@@ -917,2 +941,3 @@

interface IQueryPolicy {
erId?: number;
key?: string;

@@ -1078,2 +1103,6 @@ /**

interface IErConfigDetail {
/**
* 隔月报税
*/
isNextMonthTax?: boolean;
}

@@ -1086,2 +1115,3 @@

id?: string;
version?: number;
/**

@@ -1096,2 +1126,6 @@ * 计算时使用的模板配置

/**
* 租户id
*/
tenantId?: number;
/**
* 雇主id

@@ -1133,2 +1167,14 @@ */

/**
* 是否继承
*/
inherit?: boolean;
/**
* API数据状态:0 创建工资单,1 开始数据合并完成,2 数据合并完成,3 计算完成
*/
apiStatus?: number;
/**
* 创建来源:0 WEB, 1 API
*/
source?: number;
/**
* 计算批次号,仅在后台计算时会设置

@@ -1165,2 +1211,6 @@ */

publishPsAt?: number;
/**
* 最近一次生成工资单的时间(目前工资在src为gzt1时生效)
*/
generatePsAt?: number;
}

@@ -1206,2 +1256,6 @@ /**

employerNameNotContain?: string;
/**
* 最近一次生成工资单的时间
*/
isGeneratePs?: boolean;
status?: TPayrollStatus;

@@ -1305,2 +1359,6 @@ period?: {

/**
* 创建来源:0 WEB, 1 API
*/
source?: number;
/**
* 查错辅助

@@ -1322,2 +1380,6 @@ */

calulatedAt?: number;
/**
* 最近一次的读取时间
*/
readAt?: number;
}

@@ -1407,2 +1469,3 @@ /**

id?: number;
sn?: string;
/**

@@ -1459,2 +1522,6 @@ * 短链代码

/**
* 工资单是否有商业健康保险
*/
hasCommercialInsurance?: number;
/**
* 雇主唯一标识

@@ -1503,2 +1570,3 @@ */

sendAt?: number;
sendStatus?: number;
/**

@@ -1536,2 +1604,3 @@ * 发送结果

publishConfig?: any;
updatedAt?: number;
}

@@ -1541,3 +1610,3 @@ /**

*/
declare type TEePayslipSrc = 'gzg' | 'gzt' | 'hrone';
declare type TEePayslipSrc = 'gzg' | 'gzt' | 'gzt1' | 'hrone';
/**

@@ -1733,7 +1802,29 @@ * 雇员工资单的工资项目数据

/**
* 雇主自定义公式
* 通用薪酬项目
*/
interface IErItemFormula extends ICommonFields {
interface ICommonItemFormula extends ICommonFields {
id?: string;
/**
* 工资项id
*/
itemId?: string;
/**
* 工资项
*/
item?: IItem;
/**
* 是否启用
*/
enable?: boolean;
/**
* 公式
*/
formula?: IItemConfigByFormula;
}
/**
* 雇主自定义公式
*/
interface IErItemFormula extends ICommonItemFormula {
/**
* 雇主id

@@ -1758,2 +1849,6 @@ */

formula?: IItemConfigByFormula;
/**
* 自定义配置项
*/
userInput?: IItemConfigUserInput;
}

@@ -1923,2 +2018,6 @@

/**
* 邮箱
*/
email?: string;
/**
* 证件号码

@@ -1974,2 +2073,6 @@ */

enable?: boolean;
/**
* 组类型: 1 工资单,2 payroll(做工资)
*/
groupType?: number;
}

@@ -2036,5 +2139,88 @@

employerId?: number;
itemId?: string;
}
/**
* 专业版薪酬模板
*/
interface IProPayrollTpl extends ICommonFields {
id?: string;
/**
* 名称
*/
name?: string;
/**
* 专业版公司id
*/
compId?: number;
/**
* 工资配置
*/
items?: IErPayrollTplItem[];
/**
* 模板id
*/
tplId?: string;
/**
* 版本号
*/
version?: number;
}
interface IQueryProTplOptions {
/**
* 专业版公司id
*/
compId?: number;
/**
* 公司名称(支持模糊检索)
*/
name?: string;
}
/**
* 薪酬项目
*/
interface ITplItem extends ICommonItem {
/**
* 模板id
* 标识私有项目
*/
tplId?: string;
/**
* 租户id
*/
companyId?: number;
}
/**
* 模板自定义公式
*/
interface ITplItemFormula extends ICommonItemFormula {
/**
* 模板id
*/
tplId?: string;
/**
* 租户id
*/
companyId?: number;
}
interface IQueryTplFormulaOptions {
/**
* 模板id
*/
tplId?: string;
/**
* 租户id
*/
companyId?: number;
/**
* 工资项id
*/
itemId?: string;
}
/**
* 计划任务

@@ -2342,2 +2528,10 @@ */

}
interface PayslipResp<T = any> {
/**
* 为错误代码,0表示成功,其他表示错误。
*/
code: any;
msg?: string;
data?: T;
}

@@ -2355,2 +2549,2 @@ /**

export { ApiResponse, CalItemType, IArticle, IClientUser, ICommonEnv, ICommonFields, ICreatePayrollOptions, IDistrict, IEePayslip, IEePayslipItemData, IEmpInfoMap, IEmpInfoMapConfig, IErConfig, IErConfigDetail, IErItemConfig, IErItemFormula, IErPayroll, IErPayrollConfigDetail, IErPayrollConfirmRecoder, IErPayrollConfirmRecoderStatistics, IErPayrollEntry, IErPayrollEntryConfig, IErPayrollEntryData, IErPayrollEntryDiff, IErPayrollEntryItemData, IErPayrollEntryRemoved, IErPayrollScheduleMsgBody, IErPayrollTpl, IErPayrollTplItem, IErPayrollTplItemConfig, IErRoster, IErRosterOtherInfo, IErSysEmpNo, IGztPayroll, IGztPayrollEntry, IGztPayrollEntryData, IGztPayrollEntryQueryOptions, IGztPayrollPublishConfig, IGztPayrollQueryOptions, IInformalLocalPolicy, IInformalLocalPolicyLog, IItem, IItemCat, IItemConfig, IItemConfigByDate, IItemConfigByFormula, IItemConfigByNumber, IItemConfigBySelect, IItemConfigByString, IItemConfigUserInput, IItemFormulaExpression, IItemGroup, IItemGroupItemConfig, IItemTypeCommon, IItemUserInputTypeConfig, ILocalPolicy, ILocalPolicyCommon, IPageQueryOptions, IPayrollListWhereOptions, IPayrollTpl, IPayrollTplItemConfig, IPayslipTpl, IPolicyConfig, IPolicyErrorStatistics, IPolicyNullStatistics, IQueryErFormulaOptions, IQueryErItemsWhereOptions, IQueryErRosterWhereOptions, IQueryFormalLocalPolicy, IQueryInFormalLocalPolicy, IQueryItemGroupWhereOptions, IQueryItemsWhereOptions, IQueryOptions, IQueryPayrollEntryDiffOptions, IQueryPayrollEntryOptions, IQueryPayslipOptions, IQueryPolicy, IQueryResults, IQueryTaxPolicy, IRabbitMqExchange, IRabbitMqQueue, IRabbitmqEnvConfig, ISchedule, IScheduleAction, IScheduleRule, IScheduleType, ITaxPolicy, ITaxPolicyData, IValueFormula, TEePayslipSrc, TGztWageType, TInheritValue, TPayrollStatus, TZygzxValue };
export { ApiResponse, CalItemType, IArticle, IClientUser, ICommonEnv, ICommonFields, ICommonItem, ICreatePayrollOptions, IDistrict, IEePayslip, IEePayslipItemData, IEmpInfoMap, IEmpInfoMapConfig, IErConfig, IErConfigDetail, IErItemConfig, IErItemFormula, IErPayroll, IErPayrollConfigDetail, IErPayrollConfirmRecoder, IErPayrollConfirmRecoderStatistics, IErPayrollEntry, IErPayrollEntryConfig, IErPayrollEntryData, IErPayrollEntryDiff, IErPayrollEntryItemData, IErPayrollEntryRemoved, IErPayrollScheduleMsgBody, IErPayrollTpl, IErPayrollTplItem, IErPayrollTplItemConfig, IErRoster, IErRosterOtherInfo, IErSysEmpNo, IGztPayroll, IGztPayrollEntry, IGztPayrollEntryData, IGztPayrollEntryQueryOptions, IGztPayrollPublishConfig, IGztPayrollQueryOptions, IInformalLocalPolicy, IInformalLocalPolicyLog, IItem, IItemCat, IItemConfig, IItemConfigByDate, IItemConfigByFormula, IItemConfigByNumber, IItemConfigBySelect, IItemConfigByString, IItemConfigUserInput, IItemFormulaExpression, IItemGroup, IItemGroupItemConfig, IItemTypeCommon, IItemUserInputTypeConfig, ILocalPolicy, ILocalPolicyCommon, IPageQueryOptions, IPayrollListWhereOptions, IPayrollTpl, IPayrollTplItemConfig, IPayslipTpl, IPolicyConfig, IPolicyErrorStatistics, IPolicyNullStatistics, IProPayrollTpl, IQueryErFormulaOptions, IQueryErItemsWhereOptions, IQueryErRosterWhereOptions, IQueryFormalLocalPolicy, IQueryInFormalLocalPolicy, IQueryItemGroupWhereOptions, IQueryItemsWhereOptions, IQueryOptions, IQueryPayrollEntryDiffOptions, IQueryPayrollEntryOptions, IQueryPayslipOptions, IQueryPolicy, IQueryProTplOptions, IQueryResults, IQueryTaxPolicy, IQueryTplFormulaOptions, IRabbitMqExchange, IRabbitMqQueue, IRabbitmqEnvConfig, ISchedule, IScheduleAction, IScheduleRule, IScheduleType, ITaxPolicy, ITaxPolicyData, ITplItem, ITplItemFormula, IValueFormula, PayslipResp, TEePayslipSrc, TGztWageType, TInheritValue, TPayrollStatus, TZygzxValue };
+1
-1
{
"name": "@keyiis/payroll-interface",
"version": "0.0.21",
"version": "0.0.22",
"description": "server interface",

@@ -5,0 +5,0 @@ "types": "index.d.ts",