@keyiis/payroll-interface
Advanced tools
+81
-21
@@ -0,2 +1,24 @@ | ||
| import { Options } from 'amqplib'; | ||
| import { RecurrenceRule, RecurrenceSpecDateRange, RecurrenceSpecObjLit } from 'node-schedule'; | ||
| /** | ||
| * RabbitMq环境配置 | ||
| */ | ||
| interface IRabbitmqEnvConfig { | ||
| /** | ||
| * amqp监听地址 | ||
| */ | ||
| url: string; | ||
| } | ||
| interface IRabbitMqExchange { | ||
| "name": string; | ||
| "type": string; | ||
| options?: Options.AssertExchange; | ||
| } | ||
| interface IRabbitMqQueue { | ||
| "name": string; | ||
| options?: Options.AssertQueue; | ||
| } | ||
| /** | ||
| * 通用环境配置 | ||
@@ -57,23 +79,4 @@ */ | ||
| */ | ||
| rabbitMq: { | ||
| /** | ||
| * amqp监听地址 | ||
| */ | ||
| url: string; | ||
| /** | ||
| * 交换机列表 | ||
| */ | ||
| exchanges: { | ||
| [key: string]: IRabbitMqExchange; | ||
| }; | ||
| /** | ||
| * 接收其它用户通知的队列 | ||
| */ | ||
| queues: {}; | ||
| }; | ||
| rabbitMq: IRabbitmqEnvConfig; | ||
| } | ||
| interface IRabbitMqExchange { | ||
| "name": string; | ||
| "type": string; | ||
| } | ||
@@ -1058,2 +1061,10 @@ /** | ||
| deletedAt?: number; | ||
| /** | ||
| * 计划发布时间 | ||
| */ | ||
| scheduledAt?: number; | ||
| /** | ||
| * 计划的id | ||
| */ | ||
| scheduledId?: string; | ||
| } | ||
@@ -1102,2 +1113,15 @@ /** | ||
| } | ||
| /** | ||
| * rabbitMq发送和接受定时发布工资单的消息体 | ||
| */ | ||
| interface IErPayrollScheduleMsgBody { | ||
| /** | ||
| * 工资表id | ||
| */ | ||
| payrollId: string; | ||
| /** | ||
| * 计划发送的时间 | ||
| */ | ||
| time: number; | ||
| } | ||
@@ -1720,2 +1744,38 @@ /** | ||
| /** | ||
| * 计划任务 | ||
| */ | ||
| interface ISchedule { | ||
| seq?: number; | ||
| id?: string; | ||
| /** | ||
| * 任务类型 | ||
| */ | ||
| type?: IScheduleType; | ||
| /** | ||
| * 触发规则 | ||
| */ | ||
| rule?: IScheduleRule; | ||
| /** | ||
| * 动作 | ||
| */ | ||
| action?: IScheduleAction; | ||
| /** | ||
| * 创建时间 | ||
| */ | ||
| createdAt?: number; | ||
| createBy?: number; | ||
| } | ||
| declare type IScheduleType = 'OneTime' | 'Repeat'; | ||
| declare type IScheduleRule = string | number | Date | RecurrenceRule | RecurrenceSpecDateRange | RecurrenceSpecObjLit; | ||
| interface IScheduleAction { | ||
| /** | ||
| * 交换机,需要提前创建 | ||
| */ | ||
| exchange: string; | ||
| routeKey: string; | ||
| message: string; | ||
| options?: Options.Publish; | ||
| } | ||
| /** | ||
| * 服务器api接口接口返回的结果 | ||
@@ -1743,2 +1803,2 @@ */ | ||
| export { ApiResponse, CalItemType, IClientUser, ICommonEnv, ICommonFields, ICreatePayrollOptions, IEePayslip, IEePayslipItemData, IEmpInfoMap, IEmpInfoMapConfig, IErConfig, IErConfigDetail, IErItemConfig, IErItemFormula, IErPayroll, IErPayrollConfigDetail, IErPayrollConfirmRecoder, IErPayrollConfirmRecoderStatistics, IErPayrollEntry, IErPayrollEntryConfig, IErPayrollEntryData, IErPayrollEntryDiff, IErPayrollEntryItemData, IErPayrollEntryRemoved, IErPayrollTpl, IErPayrollTplItem, IErPayrollTplItemConfig, IErSysEmpNo, 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, IQueryErFormulaOptions, IQueryErItemsWhereOptions, IQueryFormalLocalPolicy, IQueryInFormalLocalPolicy, IQueryItemGroupWhereOptions, IQueryItemsWhereOptions, IQueryOptions, IQueryPayrollEntryDiffOptions, IQueryPayrollEntryOptions, IQueryPayslipOptions, IQueryPolicy, IQueryResults, IQueryTaxPolicy, IRabbitMqExchange, ITaxPolicy, ITaxPolicyData, IValueFormula, TInheritValue, TPayrollStatus, TZygzxValue }; | ||
| export { ApiResponse, CalItemType, IClientUser, ICommonEnv, ICommonFields, ICreatePayrollOptions, IEePayslip, IEePayslipItemData, IEmpInfoMap, IEmpInfoMapConfig, IErConfig, IErConfigDetail, IErItemConfig, IErItemFormula, IErPayroll, IErPayrollConfigDetail, IErPayrollConfirmRecoder, IErPayrollConfirmRecoderStatistics, IErPayrollEntry, IErPayrollEntryConfig, IErPayrollEntryData, IErPayrollEntryDiff, IErPayrollEntryItemData, IErPayrollEntryRemoved, IErPayrollScheduleMsgBody, IErPayrollTpl, IErPayrollTplItem, IErPayrollTplItemConfig, IErSysEmpNo, 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, IQueryErFormulaOptions, IQueryErItemsWhereOptions, IQueryFormalLocalPolicy, IQueryInFormalLocalPolicy, IQueryItemGroupWhereOptions, IQueryItemsWhereOptions, IQueryOptions, IQueryPayrollEntryDiffOptions, IQueryPayrollEntryOptions, IQueryPayslipOptions, IQueryPolicy, IQueryResults, IQueryTaxPolicy, IRabbitMqExchange, IRabbitMqQueue, IRabbitmqEnvConfig, ISchedule, IScheduleAction, IScheduleRule, IScheduleType, ITaxPolicy, ITaxPolicyData, IValueFormula, TInheritValue, TPayrollStatus, TZygzxValue }; |
+1
-1
| { | ||
| "name": "@keyiis/payroll-interface", | ||
| "version": "0.0.14", | ||
| "version": "0.0.15", | ||
| "description": "server interface", | ||
@@ -5,0 +5,0 @@ "types": "index.d.ts", |
35524
3.75%1767
3.33%