npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@inipa/common

v1.0.86

Published

```bash npm install @inipa/common;

Downloads

2,428

Readme

Getting Started

npm install @inipa/common;

import {Ihttp} from '@inipa/common';

使用例子:

注:当需要请求验证接口时,要求传入token. 下面的接口会依次说明 const http = new Ihttp(token?:string);

const result = await http.getTrademarkByNumber("TM_NEW_CHINA_2026022116146743879136"); console.log(result);

===============================以下方法无需登陆============================================

login 会员登陆

  • param: email: string (注册邮箱)
  • param: password: string (密码)
  • 调用方式: await http.login(email, password);
  • 操作结果: token ,请此token保存并在需要验证的方法上传入实例化对象

register(data:RegisterDto) 会员注册

  • RegisterDto: { email: string; username: string; password: string; confirmPassword: string; captcha: string; }
  • 调用方式: await http.register({email:'xxxx', password: 'xxxxx', confirmPassword: 'xxxx', captcha: 'xxxx'})
  • 操作结果: 注册成功或错误提示

sendEmailCaptcha 发送邮箱验证码

  • param: email: string (注册邮箱)
  • 调用方式: await http.sendEmailCaptcha(email);
  • 操作结果: 提示信息,并发送验证码到对应邮箱

getContinent() 方法及数据字段说明

  • 调用方式: await http.getContinent();
  • 获取五大洲数据,返回数组格式如下:
  • 操作结果:[{chineseName: "亚洲", id:1, name:"Asia"}]

getCountryByContinent(continentId: number) 获取各大洲下的国家信息

  • 调用方式: await http.getCountryByContinent(1);
  • chinesename : string (中文名)
  • isHotAnnuityManagement : boolean (年金管理热门国家)
  • isHotCopyrightRegistration : boolean (版本登记热门国家)
  • isHotDesignPatent : boolen (外观专利热门国家)
  • isHotInventionPatent : boolean (发明专利热门国家)
  • isHotTrademark : boolean (商标注册热门国家)
  • isHotUtilityModel : boolean (实用新型热门国家)
  • name : string (英文名)
  • currency : string (货币)
  • abbrCn : string (中文简称)
  • abbrIso2 : string (ISO 3166-1 alpha-2 英文简称)
  • abbrIso3 : string (ISO 3166-1 alpha-3 英文简称)
  • projects { id : number (项目ID) name: string (项目英文名称:Trademark Registration、Invention Patent、Utility Model、Design Patent、Annuity Management、Copyright Registration) chineseName: string (项目中文名称:商标注册、发明专利、实用新型、外观专利、年金管理、版本登记) services { id: number (服务ID) name: string (服务英文名称) chineseName: string (服务中文名称:如新申请、续展等) items { // 对应服务费 amount: number (费用) type: string (类型:根据上面服务名称确定,如officalFee,如果对应项目是商标注册,服务是新申请,即为为商标注册-新申请-官费,以此类推) currency: string (货币,根据这个用汇率进行转换) } } }
  • projects/services/items - type : 部分费用类型解释:officialFee(官费)inipaFee(INIPA 服务费)attorneyOptimalFee(最优(竞价)本地律师费)attorneyDirectFilingFee(直接提交 本地律师费)attorneyStandardServiceFee(标准服务 本地律师费) 'ipPriorityClaimFee'(发明专利 - 声明优先权费用) | 'ipRequestExamFee'(发明专利-请求实审费用) | 'ipRequestEarlyPublicFee'(发明专利 - 请求提前公开费用) | 'umPriorityClaimFee'(实用新型 - 声明优先权费用) | 'umEvaluationReportFee'(实用新型 - 评估报告) | 'dpPriorityClaimFee'(外观专利 - 声明优先权费用) | 'dpRequestDefermentFee'(外观专利 - 申请延期费用) | 'dpDrawingsServiceFee'(外观专利 - 专业绘图服务费用) | 'amLatePaymentFee'(年金管理 - 逾期缴纳费用) | 'amRequireInvoiceFee'(年金管理 - 发票费用) | 'crStandardFilingFee'(版权登记 - 标准递交费用) | 'crExpeditedOrPriorityFee';(版本登记 - 加急/优先处理费用)

getServices() 获取服务内容

  • 调用方式: await http.getServices()

  • 返回数组结构如下

  • [{id:1, chineseName: '商标注册', name: 'Trademark Registration', services: [{id:1, name: 'New Application', chineseName: '新申请'}]}]

  • 说明,这个数组第一层为项目,对应我们六大项目,每个项目下有对应的服务

    getGuidelinesRequirements(serviceId:number, countryId:number) 获取申请指南与要求资料

  • 调用方式: await http.getGuidelinesRequirements(1,12)

  • 操作结果: data :{ files:{ id: number, text: string, textEn: string }[], notes: { id: number, text: string textEn: string }[] }

    files: 保存的是必备文件列表 notes: 保存的是注意事项列表

getServiceFee(serviceId:number) 获取服务收费设置

  • 调用方式: await http.getServiceFee(1)

  • 操作结果: items :{ id qtyFrom:number 开始数量 qtyTo: number 结束数量 amount: number 金额 type: string 类型:officialFee(官费),attorneyDirectFilingFee(律师直通提交价费用),attorneyOptimalFee(律师最优(竞价)费用),attorneyStandardServiceFee(律师标准服务费用),inipaFee(INIPA 服务费),ipPriorityClaimFee(发明专利:优先声明权费用),ipRequestExamFee(发明专利:请求实审费用),ipRequestEarlyPublicFee(发明专利:请求提前公开费用),umPriorityClaimFee(实用新型:优先声明权费用),umEvaluationReportFee(实用新型:评估报告费用),dpPriorityClaimFee(外观专利:优先声明权费用),dpRequestDefermentFee(外观专利:请求延期公开费用),dpDrawingsServiceFee(外观专利:专业绘图服务费用),amLatePaymentFee(年金管理:逾期缴纳费用),amRequireInvoiceFee(年金管理:需要发票费用),crStandardFilingFee(版权登记:标准递交费用),crExpeditedOrPriorityFee(版权登记:加急/优先费用) currency: string 货币,可根据汇率切换美元 }[] country :{ id chinesename: string name: string currency: string; // 新增 isHotTrademark isHotInventionPatent isHotUtilityModel isHotDesignPatent isHotAnnuityManagement isHotCopyrightRegistration sortNumber }

    officialFee: number 官方规定费用 calculationMethod: number 官方服务费计算方式: 1(固定金额,无关数量)2(递增固定金额,从第二件开始每件增加50元)3(倍增,官方费用和本地律师费乘以件数) incrementOfficalFee: number 官方服务费递增固定金额, 当calculationMethod等于2时使用 incrementAttorneyFee: number 本地律师服务费递增固定金额, 当calculationMethod等于2时使用 attorneyDirectFilingFee: number 律师直通提交价 attorneyOptimalFee: number 律师最优(竞价) attorneyStandardServiceFee: number 律师标准服务 inipaFee: number INIPA 服务费 optionalFee: number 附加费用 optionalFeeReason: string 附加费用原因 remark: string 备注

  • 注: qtyFrom 和 qtyTo 用于判断数量对应价格,如:qtyFrom=1, qtyTo=5,表示在这个区间内的数量都以这个设定价格

    getServiceFeeByProject(projectId: number, limit:number) 通过服务项目ID获取服务费列表

  • 调用方式: await http.getServiceFeeByProject(1,18);

  • 操作结果: data: { serviceFeeListByProject: { jurisdiction: string, currency: string, time: string, gov: string, svc: string }[] }

    getMemberGrade() 获取会员等级

  • 调用方式: await http.getMemberGrade();

  • 操作结果: data: { memberGradeList: { id: number, name: string, // 等级名称 subTitle: string, // 等级子标题 description: string, // 等级描述 inipaFee: number, // INIPA POS服务费 totalSpending: number, // 累计消费金额 purchaseAmount: number, // 购买等级所需金额 certification: boolean, // 是否需要誰 whiteLabelReports: boolean, // 白标报告 apiAccess: boolean, // API 接口 dedicatedConsultant: string, // 专属顾问 radarKeywords: string, // 雷达关键词 aiToolsAccess: string, // AI 工具权限 paymentTerms: string, // 付款周期 upgradeCondition: string, // 升级条件 }[] }

getExchangeRate(date?:string) 获取当日或指定日期货币汇率, 每日只需要请求一次接口,数据保存在本地,数据每天凌晨1点采集

  • 调用方式:await http.getExchangeRate(date?:string) // 当date参数没有传值时,获取当天货币汇率
  • 操作结果: code: "SUCCESS" data: [{conversionRate: 1,yestodayConversionRate:1.1,currency: "USD",date:"2026-03-28T17:29:54.000Z"},...] message: "数据获取成功" statusCode: 200
  • 字段说明: conversionRate : 相对于美元的汇率 currency : 货币 date : 采集时间

===============================以下方法都需要先登陆后才可以操作===============================

请在初始化实例时传入token

  • const http = new Ihttp('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJtZW1iZXJJZCI6MSwibWVtYmVyRW1haWwiOiIxMTM2NzAwNDJAcXEuY29tIiwiY3JlYXRlZERhdGUiOiIyMDI2LTAzLTIwVDEzOjMxOjQyLjAwMFoiLCJpYXQiOjE3NzQwODM2OTIsImV4cCI6MTc3NDA4NzI5Mn0.mlKJzMhlEwp1qQMgWBUFzjJCvBtpu-epVpl1jEZTAm4')

getProfile() 获取会员个人资料

  • 调用方式: await http.getProfile()
  • 操作结果: id: number email: string (邮箱) gender: string (性别) name: string (姓名) address: stirng (详细地址) avatar: string (头像) balance: number (帐户余额) billingAddress: string (账单地址) company:string (公司名称) country:string (国家) city: string (所在城市) createdDate:Date (创建时间) dingding: string (钉钉) facebook:string grade: number (会员等级) instagram: string province: string (省份) taxId: string (税号) totalAmount: number 消息总金额 (包括未付款,已付款,已取消) totalCancelOrders: number (取消订单总数) totalOrders: number (订单总数) totalPaidOrders: number (已付款订单总数) totalSpending: number (总消费金额,只包括已付款) totalUnpaidOrders: number (未付款订单总数) username: string (用户名) weCom: string (微信企业号) website: string (公司网址) wechat: string (微信) whatsapp: string xiaohongshu: string (小红书)

createTrademark(data: TrademarkDto) 创建商标注册新申请订单

  • 先import {TrademarkServiceType,LocalAttorneyFeeTireType,ProjectType} from '@inipa/common'

  • 调用方式: await http.createTrademark(data)

  • 操作结果,{id: number(自增ID), number: string (订单号), paymentUrl: string(支付链接)}

  • 测试支付说明: 请使用银行卡号,如4242 4242 4242 4242。在管理平台或任何支付表单中输入该卡号。 使用有效的未来日期,例如 12/34。 使用任意三位数 CVC(American Express 卡为四位)。 其他表单字段可以使用任意值。

  • 字段说明: interface TrademarkDto { country: string; 国家 currency: string; 货币 remark?: string; 备注 localAttorneyFeeTire: LocalAttorneyFeeTireType.OptimalBid | LocalAttorneyFeeTireType.DirectFiling | LocalAttorneyFeeTireType.StandardService; 本地律师服务费等级,Optimal Bid(最优竞标), Direct Filing(直接递交),Standard Service(标准服务) service:TrademarkServiceType.NewApplication | TrademarkServiceType.Renewal | TrademarkServiceType.InformationChange | TrademarkServiceType.Transfer | TrademarkServiceType.OAReply; // 服务项目:新申请,续展,信息变更,转让,OA答复 project: | ProjectType.TrademarkRegistration | ProjectType.InventionPatent | ProjectType.UtilityModel | ProjectType.DesignPatent | ProjectType.AnnuityManagement | ProjectType.CopyrightRegistration; trademarkName: string; // 商标名称 applicantName: string; // 申请人名称或公司名称 priorityClaim: boolean; // 优先权声明 priorityCountry?: string | null; // 优先权国家 priorityDate?: Date | null; // 优先权日期 priorityNumber?: string | null; // 优先权号 servicesList: string; // 商品与服务清单 quantity: number; // 数量 docs: string; // 上传文件之后,会返回一个shasum,将所有shasum用半角逗号 , 拼接起来。 $2b$10$bH9fUB5lhDl9HEM96ebSW.TLeTOg74zYcVLnpTna6bfqSedkm34Iu,$2b$10$kMx1aWFaecYbQT8zDkoFQOjyiJ0la6ZM2Ff5RB0A1lBIQdUXbQuky }

getTrademarkById(orderId:number) 通过订单ID 或 getTrademarkByNumber(number:string)通过订单号获取商标注册订单信息

  • 调用方式:await http.getTrademarkById(1);
  • 操作结果: id: number number: string // 订单号 service: string // 服务类型 country: string // 国家 totalAmount: number // 总金额 officialFee: number // 官方规定费用 localAttorneyFee: number // 本地律师费 serviceFee: number // INIPO 服务费 currency: string // 货币 remark: string // 备注 paymentStatus: number; // 支付状态, 0(未付款)1(已付款)2(退款中)3(部分退款)4(全额退款)5(退款失败)
    status: number // 订单状态:0(待处理)1(处理中)2(已完成)3(已取消) createdDate: Date // 创建时间 localAttorneyFeeTire: string // 本地律师服务费等级 quantity: number // 数量 trademarkName: string // 商标名称 applicantName: string; // 申请人名称或公司名称 priorityClaim: boolean; // 优先权声明 priorityCountry?: string | null; // 优先权国家 priorityDate?: Date | null; // 优先权日期 priorityNumber?: string | null; // 优先权号 servicesList: string; // 商品与服务清单 files { // 相关文档 originalName: string; // 文档名称 shasum: string; 文件校验码 }

uploadFile(file:File) 文件上传

  • 调用方式: await http.uploadFile(file)
  • 操作结果 originalName: "01KGRGSMX7CXPB56007DBCFE2Q.jpeg" shasum: "$2b$10$Z1oYiLh71TFmtasIFpwzqOWkPjcDvFKFMOYVIL1UITOBKcOsS80YS url: https://upload.inipaipos.com/uploads/files/a4a7fa4f-263f-4e5a-8f83-c39917396235.jpeg
  • 字段说明: originalName: 文件名 shasum: 文件校验码, 此字段在提交订单时放到docs字段中,多个文件以半角逗号隔开 url: 文件地址

updateProfile(data:ProfileDto)更新会员个人资料

  • 调用方式:await http.updateProfile(data)

  • 操作结果: 返回最新结果

  • ProfileDto 字段说明 name?: string; // 姓名 company?: string; // 公司名称 taxId?: string; // 税号 website?: string; // 公司网站 billingAddress?: string; // 帐单与邮寄地址 wechat?: string; // 微信 weCom?: string; // 企业微信 dingding?: string; // 钉钉 whatsapp?: string; // Whatsapp facebook?: string; // Facebook instagram?: string; // Instagram xiaohongshu?: string; // 小红书 country?: string; // 国家 city?: string; // 城市 gender?: string; // 性别 address?: string; // 详细地址 mobile?: string; // 手机号码

    getOrders(data:OrderDto) 获取订单列表

    • 调用方式:await http.getOrders(data)
    • 操作结果: code: "SUCCESS" data: { list: [{…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}], meta: {itemsPerPage: 10, totalItems: 34, currentPage: 1, totalPages: 4} } message: "数据获取成功" statusCode: 200
    • OrderDto 字段说明 page: number; // 当前页面 pageSize?: number; // 每页显示记录数 orderBy?: string; // 几种排序方式:id: ASC | DESC, number: ASC | DESC, status: ASC | DESC, service: ASC | DESC, createdDate: ASC | DESC
    • 注: list 数组里面的对象内容可参考getTrademarkById获取的内容介绍

    getCases(data:CaseDto) 获取订单列表

    • 调用方式:await http.getOrders(data)
    • 操作结果: code: "SUCCESS" data: { list: [{…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}], meta: {itemsPerPage: 10, totalItems: 34, currentPage: 1, totalPages: 4} } message: "数据获取成功" statusCode: 200
    • CaseDto 字段说明 page: number; // 当前页面 pageSize?: number; // 每页显示记录数 orderBy?: string; // 几种排序方式:id: ASC | DESC, number: ASC | DESC, status: ASC | DESC, service: ASC | DESC, createdDate: ASC | DESC
    • 注: list 数组里面的对象内容可参考getCaseById获取的内容介绍

    getCaseById(caseId:number) 通过案件ID 或 getCaseByNumber(number:string)通过案件编号获取案件信息

  • 调用方式:await http.getCaseById(1);

  • 操作结果: name: string; // 客户/案名 number: string; // 案件编号 status: string; // 当前状态 service: string; // 服务类型 createdDate: Date; // 创建时间 files { // 相关文档 originalName: string; // 文档名称 shasum: string; 文件校验码 } timelines { // 进度时间轴 name: string; // 进度名称 date: Date; // 时间 status: string; // 状态 }

createInventionPatent(data: InventionPatentDto) 创建发明专利新申请订单

  • 先import {FilingRouteType,InventionPatentServiceType,LocalAttorneyFeeTireType,ProjectType} from '@inipa/common'
  • 调用方式: await http.createInventionPatent(data)
  • 操作结果,返回提示信息及订单号
  • 字段说明: InventionPatentDto { country: string; currency: string; remark?: string; localAttorneyFeeTire: LocalAttorneyFeeTireType.OptimalBid | LocalAttorneyFeeTireType.DirectFiling | LocalAttorneyFeeTireType.StandardService; 本地律师服务费等级,Optimal Bid(最优竞标), Direct Filing(直接递交),Standard Service(标准服务) service: | InventionPatentServiceType.NewApplication | InventionPatentServiceType.Examination | InventionPatentServiceType.BiblioChange | InventionPatentServiceType.Assignment | InventionPatentServiceType.GrantFee | InventionPatentServiceType.Publication; project: | ProjectType.TrademarkRegistration | ProjectType.InventionPatent | ProjectType.UtilityModel | ProjectType.DesignPatent | ProjectType.AnnuityManagement | ProjectType.CopyrightRegistration; inventionName: string; // 发明名称 clientReferentNumber: string; // 客户案号 filingRoute: FilingRouteType.DivisionalApply | FilingRouteType.PCTNationalPhase | FilingRouteType.StandardRoute; // 递交路径 applicantName: string; // 申请人名称或公司名称 priorityClaim: boolean; // 优先权声明 priorityCountry?: string | null; // 优先权国家 priorityDate?: Date | null; // 优先权日期 priorityNumber?: string | null; // 优先权号 inventor: string; // 发明人 requestExam?: boolean;// 请求实审 requestEarlyPublic?: boolean; // 请求提前公开 quantity: number; docs: string; // 上传文件之后,会返回一个shasum,将所有shasum用半角逗号 , 拼接起来。 $2b$10$bH9fUB5lhDl9HEM96ebSW.TLeTOg74zYcVLnpTna6bfqSedkm34Iu,$2b$10$kMx1aWFaecYbQT8zDkoFQOjyiJ0la6ZM2Ff5RB0A1lBIQdUXbQuky }

getInventionPatentById(orderId:number) 通过订单ID 或 getInventionPatentByNumber(number:string)通过订单号获取发明专利单信息

  • 调用方式:await http.getInventionPatentById(1);
  • 操作结果: id: number number: string // 订单号 service: string // 服务类型 country: string // 国家 totalAmount: number // 总金额 officialFee: number // 官方规定费用 localAttorneyFee: number // 本地律师费 serviceFee: number // INIPO 服务费 currency: string // 货币 remark: string // 备注 status: number // 订单状态:0(待处理)1(处理中)2(已完成)3(已取消) createdDate: Date // 创建时间 localAttorneyFeeTire: string // 本地律师服务费等级 quantity: number // 数量 inventionName: string; //发明名称 clientReferentNumber: string; //客户案号 filingRoute: FilingRouteType // 递交路径 inventor: string; // 发明人 applicantName: string; // 申请人名称或公司名称 priorityClaim: boolean; // 优先权声明 priorityCountry?: string | null; // 优先权国家 priorityDate?: Date | null; // 优先权日期 priorityNumber?: string | null; // 优先权号 requestExam: boolean; // 请求实审 requestEarlyPublic: boolean; // 请求提前公开 files { // 相关文档 originalName: string; // 文档名称 shasum: string; 文件校验码 }

createUtilityModel(data: UtilityModelDto) 创建实用新型订单

  • 先import {FilingRouteType,UtilityModelServiceType,LocalAttorneyFeeTireType,ProjectType,ChangeItemType} from '@inipa/common'
  • 调用方式: await http.createUtilityModel(data)
  • 操作结果,返回提示信息及订单号
  • 字段说明: UtilityModelDto { country: string; currency: string; localAttorneyFeeTire: LocalAttorneyFeeTireType.OptimalBid | LocalAttorneyFeeTireType.DirectFiling | LocalAttorneyFeeTireType. service: | UtilityModelServiceType.NewApplication | UtilityModelServiceType.EvaluationReport | UtilityModelServiceType.GrantFee | UtilityModelServiceType.BiblioChange | UtilityModelServiceType.Assignment; project: | ProjectType.TrademarkRegistration | ProjectType.InventionPatent | ProjectType.UtilityModel | ProjectType.DesignPatent | ProjectType.AnnuityManagement | ProjectType.CopyrightRegistration; utilityModelName: string; // 实用新型名称 clientReferentNumber: string; // 客户案号 filingRoute: FilingRouteType.DivisionalApply | FilingRouteType.PCTNationalPhase | FilingRouteType.StandardRoute; // 递交路径 priorityClaim: boolean; // 优先权声明 priorityCountry?: string | null; // 优先权国家 priorityDate?: Date | null; // 优先权日期 priorityNumber?: string | null; // 优先权号 applicantName: string; // 申请人名称或公司名称 inventor: string; // 发明人 valuationReport?: boolean; // 请求实审 changeItem:ChangeItemType.Name | ChangeItemType.Address | ChangeItemType.Designer; //变更项目 changeNewInformation?: string; // 新信息 assignor?: string; // 转让人 assignee?: string; // 受让人 quantity: number; remark?: string; docs: string; // 上传文件之后,会返回一个shasum,将所有shasum用半角逗号 , 拼接起来。 $2b$10$bH9fUB5lhDl9HEM96ebSW.TLeTOg74zYcVLnpTna6bfqSedkm34Iu,$2b$10$kMx1aWFaecYbQT8zDkoFQOjyiJ0la6ZM2Ff5RB0A1lBIQdUXbQuky }

getUtilityModelDetailById(orderId:number) 通过订单ID 或 getUtilityModelDetailByNumber(number:string)通过订单号获取实用新型单信息

  • 调用方式:await http.getUtilityModelById(1);
  • 操作结果: id: number number: string // 订单号 service: string // 服务类型 country: string // 国家 totalAmount: number // 总金额 officialFee: number // 官方规定费用 localAttorneyFee: number // 本地律师费 serviceFee: number // INIPO 服务费 currency: string // 货币 remark: string // 备注 status: number // 订单状态:0(待处理)1(处理中)2(已完成)3(已取消) createdDate: Date // 创建时间 localAttorneyFeeTire: string // 本地律师服务费等级 quantity: number // 数量 utilityModelName: string; //实用新型名称 clientReferentNumber: string; //客户案号 filingRoute: FilingRouteType // 递交路径 inventor: string; // 发明人 applicantName: string; // 申请人名称或公司名称 priorityClaim: boolean; // 优先权声明 priorityCountry?: string | null; // 优先权国家 priorityDate?: Date | null; // 优先权日期 priorityNumber?: string | null; // 优先权号 valuationReport: boolean; // 评估报告 changeItem: string; //变更项目 changeNewInformation: string; // 新信息 assignor: string; // 转让人 assignee: string; // 受让人 files { // 相关文档 originalName: string; // 文档名称 shasum: string; 文件校验码 }

createDesignPatent(data: DesignPatentDto) 创建外观专利订单

  • 先import {FilingRouteType,DesignPatentServiceType,LocalAttorneyFeeTireType,ProjectType,ChangeItemType} from '@inipa/common'
  • 调用方式: await http.createDesignPatent(data)
  • 操作结果,返回提示信息及订单号
  • 字段说明: UtilityModelDto { country: string; currency: string; localAttorneyFeeTire: LocalAttorneyFeeTireType.OptimalBid | LocalAttorneyFeeTireType.DirectFiling | LocalAttorneyFeeTireType. service: | DesignPatentServiceType.NewApplication | DesignPatentServiceType.EvaluationReport | DesignPatentServiceType.Renewal | DesignPatentServiceType.BiblioChange | DesignPatentServiceType.Assignment; project: | ProjectType.TrademarkRegistration | ProjectType.InventionPatent | ProjectType.UtilityModel | ProjectType.DesignPatent | ProjectType.AnnuityManagement | ProjectType.CopyrightRegistration; designPatentlName: string; // 外观名称 clientReferentNumber: string; // 客户案号 locarnoClass: string; // 洛迦诺分类 priorityClaim: boolean; // 优先权声明 priorityCountry?: string | null; // 优先权国家 priorityDate?: Date | null; // 优先权日期 priorityNumber?: string | null; // 优先权号 applicantName: string; // 申请人名称或公司名称 designer: string; // 设计人 requestDeferment?: boolean; // 请求延时公开 drawingsService?: boolean; // 专业绘图服务 changeItem:ChangeItemType.Name | ChangeItemType.Address | ChangeItemType.Designer; //变更项目 changeNewInformation?: string; // 新信息 assignor?: string; // 转让人 assignee?: string; // 受让人 quantity: number; remark?: string; docs: string; // 上传文件之后,会返回一个shasum,将所有shasum用半角逗号 , 拼接起来。 $2b$10$bH9fUB5lhDl9HEM96ebSW.TLeTOg74zYcVLnpTna6bfqSedkm34Iu,$2b$10$kMx1aWFaecYbQT8zDkoFQOjyiJ0la6ZM2Ff5RB0A1lBIQdUXbQuky }

getDesignPatentDetailById(orderId:number) 通过订单ID 或 getDesignPatentDetailByNumber(number:string)通过订单号获取外观专利单信息

  • 调用方式:await http.getDesignPatentDetailById(1);
  • 操作结果: id: number number: string // 订单号 service: string // 服务类型 country: string // 国家 totalAmount: number // 总金额 officialFee: number // 官方规定费用 localAttorneyFee: number // 本地律师费 serviceFee: number // INIPO 服务费 currency: string // 货币 remark: string // 备注 status: number // 订单状态:0(待处理)1(处理中)2(已完成)3(已取消) createdDate: Date // 创建时间 localAttorneyFeeTire: string // 本地律师服务费等级 quantity: number // 数量 designPatentlName: string; // 外观名称 clientReferentNumber: string; //客户案号 locarnoClass: string; // 洛迦诺分类 designer: string; // 设计人 applicantName: string; // 申请人名称或公司名称 priorityClaim: boolean; // 优先权声明 priorityCountry?: string | null; // 优先权国家 priorityDate?: Date | null; // 优先权日期 priorityNumber?: string | null; // 优先权号 requestDeferment?: boolean; // 请求延时公开 drawingsService?: boolean; // 专业绘图服务 changeItem: string; //变更项目 changeNewInformation: string; // 新信息 assignor: string; // 转让人 assignee: string; // 受让人 files { // 相关文档 originalName: string; // 文档名称 shasum: string; 文件校验码 }

createCopyrightRegistration(data: CopyrightRegistrationDto) 创建版权登记订单

  • 先import {FilingRouteType,CopyrightRegistrationServiceType,LocalAttorneyFeeTireType,ProjectType,PublicationStatusType,ProcessingSpeedType} from '@inipa/common'
  • 调用方式: await http.createCopyrightRegistration(data)
  • 操作结果,返回提示信息及订单号
  • 字段说明: UtilityModelDto { country: string; currency: string; localAttorneyFeeTire: LocalAttorneyFeeTireType.OptimalBid | LocalAttorneyFeeTireType.DirectFiling | LocalAttorneyFeeTireType. service: | CopyrightRegistrationServiceType.SoftwareApp | CopyrightRegistrationServiceType.ArtDesignLogo | CopyrightRegistrationServiceType.LiteraryMedia; project: | ProjectType.TrademarkRegistration | ProjectType.InventionPatent | ProjectType.UtilityModel | ProjectType.DesignPatent | ProjectType.AnnuityManagement | ProjectType.CopyrightRegistration; titleOfTheWork: string; // 作品名称 author: string; // 作者、权利人 creationDate: Date; // 创作日期 publicationStatus: PublicationStatusType.Unpublished | PublicationStatusType.Published; // 发表状态:未发表(Unpublished) 已发表(Published) processingSpeed: ProcessingSpeedType.StandardFiling | ProcessingSpeedType.ExpeditedPriority; // 处理速度 quantity: number; remark?: string; docs: string; // 上传文件之后,会返回一个shasum,将所有shasum用半角逗号 , 拼接起来。 $2b$10$bH9fUB5lhDl9HEM96ebSW.TLeTOg74zYcVLnpTna6bfqSedkm34Iu,$2b$10$kMx1aWFaecYbQT8zDkoFQOjyiJ0la6ZM2Ff5RB0A1lBIQdUXbQuky }

getCopyrightRegistrationlDetailById(orderId:number) 通过订单ID 或 getCopyrightRegistrationlDetailByNumber(number:string)通过订单号获取版权登记信息

  • 调用方式:await http.getCopyrightRegistrationlDetailById(1);
  • 操作结果: id: number number: string // 订单号 service: string // 服务类型 country: string // 国家 totalAmount: number // 总金额 officialFee: number // 官方规定费用 localAttorneyFee: number // 本地律师费 serviceFee: number // INIPO 服务费 currency: string // 货币 remark: string // 备注 status: number // 订单状态:0(待处理)1(处理中)2(已完成)3(已取消) createdDate: Date // 创建时间 localAttorneyFeeTire: string // 本地律师服务费等级 quantity: number // 数量 titleOfTheWork: string; // 作品名称 author: string; // 作者、权利人 creationDate: Date; // 创作日期 publicationStatus: PublicationStatusType; processingSpeed: ProcessingSpeedType; // 处理速度 files { // 相关文档 originalName: string; // 文档名称 shasum: string; 文件校验码 }

createAnnuityManagement(data: AnnuityManagementDto) 创建年金管理订单

  • 先import {AnnuityManagementServiceType,LocalAttorneyFeeTireType,ProjectType} from '@inipa/common'

  • 调用方式: await http.createAnnuityManagement(data)

  • 操作结果,返回提示信息及订单号

  • 字段说明: UtilityModelDto { country: string; currency: string; localAttorneyFeeTire: LocalAttorneyFeeTireType.OptimalBid | LocalAttorneyFeeTireType.DirectFiling | LocalAttorneyFeeTireType. service: | AnnuityManagementServiceType.Invention | AnnuityManagementServiceType.UtilityModel | AnnuityManagementServiceType.Design; project: | ProjectType.TrademarkRegistration | ProjectType.InventionPatent | ProjectType.UtilityModel | ProjectType.DesignPatent | ProjectType.AnnuityManagement | ProjectType.CopyrightRegistration; officialApplicationNumber: string; // 官方申请号 applicantName: string; // 申请人名称或公司名称 annuityYear: number; // 年金年度 latePayment: boolean; // 逾期缴纳 requireInvoice: boolean; // 需要发票 maintenanceFeePeriod: number; // 年费缴纳周期: 1(第一次续展), 2(第二次续展), 3(第三次续展) quantity: number; docs: string; // 上传文件之后,会返回一个shasum,将所有shasum用半角逗号 , 拼接起来。 $2b$10$bH9fUB5lhDl9HEM96ebSW.TLeTOg74zYcVLnpTna6bfqSedkm34Iu,$2b$10$kMx1aWFaecYbQT8zDkoFQOjyiJ0la6ZM2Ff5RB0A1lBIQdUXbQuky }

    getAnnuityManagementDetailById(orderId:number) 通过订单ID 或 getAnnuityManagementDetailByNumber(number:string)通过订单号获取版权登记信息

  • 调用方式:await http.getAnnuityManagementDetailById(1);

  • 操作结果: id: number number: string // 订单号 service: string // 服务类型 country: string // 国家 totalAmount: number // 总金额 officialFee: number // 官方规定费用 localAttorneyFee: number // 本地律师费 serviceFee: number // INIPO 服务费 currency: string // 货币 remark: string // 备注 status: number // 订单状态:0(待处理)1(处理中)2(已完成)3(已取消) createdDate: Date // 创建时间 localAttorneyFeeTire: string // 本地律师服务费等级 quantity: number // 数量 officialApplicationNumber: string; // 官方申请号 applicantName: string; // 申请人名称或公司名称 annuityYear: number; // 年金年度 latePayment: boolean; // 逾期缴纳 requireInvoice: boolean; // 需要发票 maintenanceFeePeriod: number; // 年费缴纳周期: 1(第一次续展), 2(第二次续展), 3(第三次续展) files { // 相关文档 originalName: string; // 文档名称 shasum: string; 文件校验码 }