@inipa/common 1.0.38 → 1.0.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,48 +1,61 @@
1
1
  ## Getting Started
2
2
 
3
-
4
3
  ```bash
5
4
  npm install @inipa/common;
6
5
 
7
6
  import {Ihttp} from '@inipa/common';
8
7
 
9
8
  ```
9
+
10
10
  ## 使用例子:
11
+
11
12
  注:当需要请求验证接口时,要求传入token. 下面的接口会依次说明
12
13
  const http = new Ihttp(token?:string);
13
14
 
14
15
  const result = await http.getTrademarkByNumber("TM_NEW_CHINA_2026022116146743879136");
15
16
  console.log(result);
17
+
16
18
  ## ===============================以下方法无需登陆============================================
19
+
17
20
  ## login 会员登陆
21
+
18
22
  - param: email: string (注册邮箱)
19
23
  - param: password: string (密码)
20
- - 调用方式: await http.login(email, password);
24
+ - 调用方式: await http.login(email, password);
21
25
  - 操作结果: token ,请此token保存并在需要验证的方法上传入实例化对象
26
+
22
27
  ## register(data:RegisterDto) 会员注册
28
+
23
29
  - RegisterDto: {
24
- email: string;
25
- username: string;
26
- password: string;
27
- confirmPassword: string;
28
- captcha: string;
30
+ email: string;
31
+ username: string;
32
+ password: string;
33
+ confirmPassword: string;
34
+ captcha: string;
29
35
  }
30
36
  - 调用方式: await http.register({email:'xxxx', password: 'xxxxx', confirmPassword: 'xxxx', captcha: 'xxxx'})
31
37
  - 操作结果: 注册成功或错误提示
38
+
32
39
  ## sendEmailCaptcha 发送邮箱验证码
40
+
33
41
  - param: email: string (注册邮箱)
34
42
  - 调用方式: await http.sendEmailCaptcha(email);
35
43
  - 操作结果: 提示信息,并发送验证码到对应邮箱
36
44
 
37
45
  ## ===============================以下方法都需要先登陆后才可以操作===============================
38
- ## 请在初始化实例时传入token
46
+
47
+ ## 请在初始化实例时传入token
48
+
39
49
  - const http = new Ihttp('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJtZW1iZXJJZCI6MSwibWVtYmVyRW1haWwiOiIxMTM2NzAwNDJAcXEuY29tIiwiY3JlYXRlZERhdGUiOiIyMDI2LTAzLTIwVDEzOjMxOjQyLjAwMFoiLCJpYXQiOjE3NzQwODM2OTIsImV4cCI6MTc3NDA4NzI5Mn0.mlKJzMhlEwp1qQMgWBUFzjJCvBtpu-epVpl1jEZTAm4')
50
+
40
51
  ## getContinent() 方法及数据字段说明
52
+
41
53
  - 调用方式: await http.getContinent();
42
54
  - 获取五大洲数据,返回数组格式如下:
43
55
  - 操作结果:[{chineseName: "亚洲", id:1, name:"Asia"}]
44
56
 
45
57
  ## getCountryByContinent(continentId: number) 获取各大洲下的国家信息
58
+
46
59
  - 调用方式: await http.getCountryByContinent(1);
47
60
  - chinesename : string (中文名)
48
61
  - isHotAnnuityManagement : boolean (年金管理热门国家)
@@ -54,85 +67,89 @@ console.log(result);
54
67
  - name : string (英文名)
55
68
 
56
69
  ## getServices() 获取服务内容
70
+
57
71
  - 调用方式: await http.getServices()
58
72
  - 返回数组结构如下
59
73
  - [{id:1, chineseName: '商标注册', name: 'Trademark Registration', services: [{id:1, name: 'New Application', chineseName: '新申请'}]}]
60
74
  - 说明,这个数组第一层为项目,对应我们六大项目,每个项目下有对应的服务
61
75
 
62
76
  ## getProfile() 获取会员个人资料
77
+
63
78
  - 调用方式: await http.getProfile()
64
- - 操作结果:
65
- id: number
66
- email: string (邮箱)
67
- gender: string (性别)
68
- name: string (姓名)
69
- address: stirng (详细地址)
70
- avatar: string (头像)
71
- balance: number (帐户余额)
72
- billingAddress: string (账单地址)
73
- company:string (公司名称)
74
- country:string (国家)
75
- city: string (所在城市)
76
- createdDate:Date (创建时间)
77
- dingding: string (钉钉)
78
- facebook:string
79
- grade: number (会员等级)
80
- instagram: string
81
- province: string (省份)
82
- taxId: string (税号)
83
- totalAmount: number 消息总金额 (包括未付款,已付款,已取消)
84
- totalCancelOrders: number (取消订单总数)
85
- totalOrders: number (订单总数)
86
- totalPaidOrders: number (已付款订单总数)
87
- totalSpending: number (总消费金额,只包括已付款)
88
- totalUnpaidOrders: number (未付款订单总数)
89
- username: string (用户名)
90
- weCom: string (微信企业号)
91
- website: string (公司网址)
92
- wechat: string (微信)
93
- whatsapp: string
94
- xiaohongshu: string (小红书)
79
+ - 操作结果:
80
+ id: number
81
+ email: string (邮箱)
82
+ gender: string (性别)
83
+ name: string (姓名)
84
+ address: stirng (详细地址)
85
+ avatar: string (头像)
86
+ balance: number (帐户余额)
87
+ billingAddress: string (账单地址)
88
+ company:string (公司名称)
89
+ country:string (国家)
90
+ city: string (所在城市)
91
+ createdDate:Date (创建时间)
92
+ dingding: string (钉钉)
93
+ facebook:string
94
+ grade: number (会员等级)
95
+ instagram: string
96
+ province: string (省份)
97
+ taxId: string (税号)
98
+ totalAmount: number 消息总金额 (包括未付款,已付款,已取消)
99
+ totalCancelOrders: number (取消订单总数)
100
+ totalOrders: number (订单总数)
101
+ totalPaidOrders: number (已付款订单总数)
102
+ totalSpending: number (总消费金额,只包括已付款)
103
+ totalUnpaidOrders: number (未付款订单总数)
104
+ username: string (用户名)
105
+ weCom: string (微信企业号)
106
+ website: string (公司网址)
107
+ wechat: string (微信)
108
+ whatsapp: string
109
+ xiaohongshu: string (小红书)
95
110
 
96
111
  ## getServiceFee(serviceId:number) 获取服务收费设置
112
+
97
113
  - 调用方式: await http.getServiceFee(1)
98
114
  - 操作结果:
99
- qtyFrom:number 开始数量
100
- qtyTo: number 结束数量
101
- officialFee: number 官方规定费用
102
- calculationMethod: number 官方服务费计算方式: 1(固定金额,无关数量)2(递增固定金额,从第二件开始每件增加50元)3(倍增,官方费用和本地律师费乘以件数)
103
- incrementOfficalFee: number 官方服务费递增固定金额, 当calculationMethod等于3时使用
104
- incrementAttorneyFee: number 本地律师服务费递增固定金额, 当calculationMethod等于3时使用
105
- attorneyDirectFilingFee: number 律师直通提交价
106
- attorneyOptimalFee: number 律师最优(竞价)
107
- attorneyStandardServiceFee: number 律师标准服务
108
- inipaFee: number INIPA 服务费
109
- optionalFee: number 附加费用
110
- optionalFeeReason: string 附加费用原因
111
- remark: string 备注
115
+ qtyFrom:number 开始数量
116
+ qtyTo: number 结束数量
117
+ officialFee: number 官方规定费用
118
+ calculationMethod: number 官方服务费计算方式: 1(固定金额,无关数量)2(递增固定金额,从第二件开始每件增加50元)3(倍增,官方费用和本地律师费乘以件数)
119
+ incrementOfficalFee: number 官方服务费递增固定金额, 当calculationMethod等于3时使用
120
+ incrementAttorneyFee: number 本地律师服务费递增固定金额, 当calculationMethod等于3时使用
121
+ attorneyDirectFilingFee: number 律师直通提交价
122
+ attorneyOptimalFee: number 律师最优(竞价)
123
+ attorneyStandardServiceFee: number 律师标准服务
124
+ inipaFee: number INIPA 服务费
125
+ optionalFee: number 附加费用
126
+ optionalFeeReason: string 附加费用原因
127
+ remark: string 备注
112
128
  - 注: qtyFrom 和 qtyTo 用于判断数量对应价格,如:qtyFrom=1, qtyTo=5,表示在这个区间内的数量都以这个设定价格
113
129
 
114
130
  ## createTrademark(data: TrademarkDto) 创建商标注册新申请订单
131
+
115
132
  - 先import {TrademarkServiceType,LocalAttorneyFeeTireType,ProjectType} from '@inipa/common'
116
133
  - 调用方式: await http.createTrademark(data)
117
134
  - 操作结果,返回提示信息及订单号
118
135
  - 字段说明:
119
- interface TrademarkDto {
136
+ interface TrademarkDto {
120
137
  country: string; 国家
121
138
  currency: string; 货币
122
139
  remark?: string; 备注
123
140
  localAttorneyFeeTire: LocalAttorneyFeeTireType.OptimalBid | LocalAttorneyFeeTireType.DirectFiling | LocalAttorneyFeeTireType.StandardService; 本地律师服务费等级,Optimal Bid(最优竞标), Direct Filing(直接递交),Standard Service(标准服务)
124
141
  service:TrademarkServiceType.NewApplication
125
- | TrademarkServiceType.Renewal
126
- | TrademarkServiceType.InformationChange
127
- | TrademarkServiceType.Transfer
128
- | TrademarkServiceType.OAReply; // 服务项目:新申请,续展,信息变更,转让,OA答复
142
+ | TrademarkServiceType.Renewal
143
+ | TrademarkServiceType.InformationChange
144
+ | TrademarkServiceType.Transfer
145
+ | TrademarkServiceType.OAReply; // 服务项目:新申请,续展,信息变更,转让,OA答复
129
146
  project:
130
- | ProjectType.TrademarkRegistration
131
- | ProjectType.InventionPatent
132
- | ProjectType.UtilityModel
133
- | ProjectType.DesignPatent
134
- | ProjectType.AnnuityManagement
135
- | ProjectType.CopyrightRegistration;
147
+ | ProjectType.TrademarkRegistration
148
+ | ProjectType.InventionPatent
149
+ | ProjectType.UtilityModel
150
+ | ProjectType.DesignPatent
151
+ | ProjectType.AnnuityManagement
152
+ | ProjectType.CopyrightRegistration;
136
153
  trademarkName: string; // 商标名称
137
154
  applicantName: string; // 申请人名称或公司名称
138
155
  priorityClaim: boolean; // 优先权声明
@@ -142,38 +159,40 @@ interface TrademarkDto {
142
159
  servicesList: string; // 商品与服务清单
143
160
  quantity: number; // 数量
144
161
  docs: string; // 上传文件之后,会返回一个shasum,将所有shasum用半角逗号 , 拼接起来。 $2b$10$bH9fUB5lhDl9HEM96ebSW.TLeTOg74zYcVLnpTna6bfqSedkm34Iu,$2b$10$kMx1aWFaecYbQT8zDkoFQOjyiJ0la6ZM2Ff5RB0A1lBIQdUXbQuky
145
- }
162
+ }
146
163
 
147
164
  ## getTrademarkById(orderId:number) 通过订单ID 或 getTrademarkByNumber(number:string)通过订单号获取商标注册订单信息
165
+
148
166
  - 调用方式:await http.getTrademarkById(1);
149
167
  - 操作结果:
150
- id: number
151
- number: string // 订单号
152
- service: string // 服务类型
153
- country: string // 国家
154
- totalAmount: number // 总金额
155
- officialFee: number // 官方规定费用
156
- localAttorneyFee: number // 本地律师费
157
- serviceFee: number // INIPO 服务费
158
- currency: string // 货币
159
- remark: string // 备注
160
- status: number // 订单状态:0(待处理)1(处理中)2(已完成)3(已取消)
161
- createdDate: Date // 创建时间
162
- localAttorneyFeeTire: string // 本地律师服务费等级
163
- quantity: number // 数量
164
- trademarkName: string // 商标名称
165
- applicantName: string; // 申请人名称或公司名称
166
- priorityClaim: boolean; // 优先权声明
167
- priorityCountry?: string | null; // 优先权国家
168
- priorityDate?: Date | null; // 优先权日期
169
- priorityNumber?: string | null; // 优先权号
170
- servicesList: string; // 商品与服务清单
171
- files { // 相关文档
172
- originalName: string; // 文档名称
173
- shasum: string; 文件校验码
174
- }
168
+ id: number
169
+ number: string // 订单号
170
+ service: string // 服务类型
171
+ country: string // 国家
172
+ totalAmount: number // 总金额
173
+ officialFee: number // 官方规定费用
174
+ localAttorneyFee: number // 本地律师费
175
+ serviceFee: number // INIPO 服务费
176
+ currency: string // 货币
177
+ remark: string // 备注
178
+ status: number // 订单状态:0(待处理)1(处理中)2(已完成)3(已取消)
179
+ createdDate: Date // 创建时间
180
+ localAttorneyFeeTire: string // 本地律师服务费等级
181
+ quantity: number // 数量
182
+ trademarkName: string // 商标名称
183
+ applicantName: string; // 申请人名称或公司名称
184
+ priorityClaim: boolean; // 优先权声明
185
+ priorityCountry?: string | null; // 优先权国家
186
+ priorityDate?: Date | null; // 优先权日期
187
+ priorityNumber?: string | null; // 优先权号
188
+ servicesList: string; // 商品与服务清单
189
+ files { // 相关文档
190
+ originalName: string; // 文档名称
191
+ shasum: string; 文件校验码
192
+ }
175
193
 
176
194
  ## getExchangeRate() 获取当日货币汇率, 每日只需要请求一次接口,数据保存在本地,数据每天凌晨1点采集
195
+
177
196
  - 调用方式:await http.getExchangeRate()
178
197
  - 操作结果:
179
198
  code: "SUCCESS"
@@ -186,6 +205,7 @@ interface TrademarkDto {
186
205
  date : 采集时间
187
206
 
188
207
  ## uploadFile(file:File) 文件上传
208
+
189
209
  - 调用方式: await http.uploadFile(file)
190
210
  - 操作结果
191
211
  originalName: "01KGRGSMX7CXPB56007DBCFE2Q.jpeg"
@@ -197,6 +217,7 @@ interface TrademarkDto {
197
217
  url: 文件地址
198
218
 
199
219
  ## updateProfile(data:ProfileDto)更新会员个人资料
220
+
200
221
  - 调用方式:await http.updateProfile(data)
201
222
  - 操作结果:
202
223
  返回最新结果
@@ -224,8 +245,8 @@ interface TrademarkDto {
224
245
  - 操作结果:
225
246
  code: "SUCCESS"
226
247
  data: {
227
- list: [{…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}],
228
- meta: {itemsPerPage: 10, totalItems: 34, currentPage: 1, totalPages: 4}
248
+ list: [{…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}],
249
+ meta: {itemsPerPage: 10, totalItems: 34, currentPage: 1, totalPages: 4}
229
250
  }
230
251
  message: "数据获取成功"
231
252
  statusCode: 200
@@ -240,8 +261,8 @@ interface TrademarkDto {
240
261
  - 操作结果:
241
262
  code: "SUCCESS"
242
263
  data: {
243
- list: [{…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}],
244
- meta: {itemsPerPage: 10, totalItems: 34, currentPage: 1, totalPages: 4}
264
+ list: [{…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}],
265
+ meta: {itemsPerPage: 10, totalItems: 34, currentPage: 1, totalPages: 4}
245
266
  }
246
267
  message: "数据获取成功"
247
268
  statusCode: 200
@@ -252,46 +273,49 @@ interface TrademarkDto {
252
273
  - 注: list 数组里面的对象内容可参考getCaseById获取的内容介绍
253
274
 
254
275
  ## getCaseById(caseId:number) 通过案件ID 或 getCaseByNumber(number:string)通过案件编号获取案件信息
276
+
255
277
  - 调用方式:await http.getCaseById(1);
256
278
  - 操作结果:
257
- name: string; // 客户/案名
258
- number: string; // 案件编号
259
- status: string; // 当前状态
260
- service: string; // 服务类型
261
- createdDate: Date; // 创建时间
262
- files { // 相关文档
263
- originalName: string; // 文档名称
264
- shasum: string; 文件校验码
265
- }
266
- timelines { // 进度时间轴
267
- name: string; // 进度名称
268
- date: Date; // 时间
269
- status: string; // 状态
270
- }
279
+ name: string; // 客户/案名
280
+ number: string; // 案件编号
281
+ status: string; // 当前状态
282
+ service: string; // 服务类型
283
+ createdDate: Date; // 创建时间
284
+ files { // 相关文档
285
+ originalName: string; // 文档名称
286
+ shasum: string; 文件校验码
287
+ }
288
+ timelines { // 进度时间轴
289
+ name: string; // 进度名称
290
+ date: Date; // 时间
291
+ status: string; // 状态
292
+ }
293
+
271
294
  ## createInventionPatent(data: InventionPatentDto) 创建发明专利新申请订单
295
+
272
296
  - 先import {FilingRouteType,InventionPatentServiceType,LocalAttorneyFeeTireType,ProjectType} from '@inipa/common'
273
297
  - 调用方式: await http.createInventionPatent(data)
274
298
  - 操作结果,返回提示信息及订单号
275
299
  - 字段说明:
276
- InventionPatentDto {
300
+ InventionPatentDto {
277
301
  country: string;
278
302
  currency: string;
279
303
  remark?: string;
280
304
  localAttorneyFeeTire: LocalAttorneyFeeTireType.OptimalBid | LocalAttorneyFeeTireType.DirectFiling | LocalAttorneyFeeTireType.StandardService; 本地律师服务费等级,Optimal Bid(最优竞标), Direct Filing(直接递交),Standard Service(标准服务)
281
305
  service:
282
- | InventionPatentServiceType.NewApplication
283
- | InventionPatentServiceType.Examination
284
- | InventionPatentServiceType.BiblioChange
285
- | InventionPatentServiceType.Assignment
286
- | InventionPatentServiceType.GrantFee
287
- | InventionPatentServiceType.Publication;
306
+ | InventionPatentServiceType.NewApplication
307
+ | InventionPatentServiceType.Examination
308
+ | InventionPatentServiceType.BiblioChange
309
+ | InventionPatentServiceType.Assignment
310
+ | InventionPatentServiceType.GrantFee
311
+ | InventionPatentServiceType.Publication;
288
312
  project:
289
- | ProjectType.TrademarkRegistration
290
- | ProjectType.InventionPatent
291
- | ProjectType.UtilityModel
292
- | ProjectType.DesignPatent
293
- | ProjectType.AnnuityManagement
294
- | ProjectType.CopyrightRegistration;
313
+ | ProjectType.TrademarkRegistration
314
+ | ProjectType.InventionPatent
315
+ | ProjectType.UtilityModel
316
+ | ProjectType.DesignPatent
317
+ | ProjectType.AnnuityManagement
318
+ | ProjectType.CopyrightRegistration;
295
319
  inventionName: string; // 发明名称
296
320
  clientReferentNumber: string; // 客户案号
297
321
  filingRoute: FilingRouteType.DivisionalApply | FilingRouteType.PCTNationalPhase | FilingRouteType.StandardRoute; // 递交路径
@@ -305,63 +329,66 @@ InventionPatentDto {
305
329
  requestEarlyPublic?: boolean; // 请求提前公开
306
330
  quantity: number;
307
331
  docs: string; // 上传文件之后,会返回一个shasum,将所有shasum用半角逗号 , 拼接起来。 $2b$10$bH9fUB5lhDl9HEM96ebSW.TLeTOg74zYcVLnpTna6bfqSedkm34Iu,$2b$10$kMx1aWFaecYbQT8zDkoFQOjyiJ0la6ZM2Ff5RB0A1lBIQdUXbQuky
308
- }
332
+ }
333
+
309
334
  ## getInventionPatentById(orderId:number) 通过订单ID 或 getInventionPatentByNumber(number:string)通过订单号获取发明专利单信息
335
+
310
336
  - 调用方式:await http.getInventionPatentById(1);
311
337
  - 操作结果:
312
- id: number
313
- number: string // 订单号
314
- service: string // 服务类型
315
- country: string // 国家
316
- totalAmount: number // 总金额
317
- officialFee: number // 官方规定费用
318
- localAttorneyFee: number // 本地律师费
319
- serviceFee: number // INIPO 服务费
320
- currency: string // 货币
321
- remark: string // 备注
322
- status: number // 订单状态:0(待处理)1(处理中)2(已完成)3(已取消)
323
- createdDate: Date // 创建时间
324
- localAttorneyFeeTire: string // 本地律师服务费等级
325
- quantity: number // 数量
326
- inventionName: string; //发明名称
327
- clientReferentNumber: string; //客户案号
328
- filingRoute: FilingRouteType // 递交路径
329
- inventor: string; // 发明人
330
- applicantName: string; // 申请人名称或公司名称
331
- priorityClaim: boolean; // 优先权声明
332
- priorityCountry?: string | null; // 优先权国家
333
- priorityDate?: Date | null; // 优先权日期
334
- priorityNumber?: string | null; // 优先权号
335
- requestExam: boolean; // 请求实审
336
- requestEarlyPublic: boolean; // 请求提前公开
337
- files { // 相关文档
338
- originalName: string; // 文档名称
339
- shasum: string; 文件校验码
340
- }
338
+ id: number
339
+ number: string // 订单号
340
+ service: string // 服务类型
341
+ country: string // 国家
342
+ totalAmount: number // 总金额
343
+ officialFee: number // 官方规定费用
344
+ localAttorneyFee: number // 本地律师费
345
+ serviceFee: number // INIPO 服务费
346
+ currency: string // 货币
347
+ remark: string // 备注
348
+ status: number // 订单状态:0(待处理)1(处理中)2(已完成)3(已取消)
349
+ createdDate: Date // 创建时间
350
+ localAttorneyFeeTire: string // 本地律师服务费等级
351
+ quantity: number // 数量
352
+ inventionName: string; //发明名称
353
+ clientReferentNumber: string; //客户案号
354
+ filingRoute: FilingRouteType // 递交路径
355
+ inventor: string; // 发明人
356
+ applicantName: string; // 申请人名称或公司名称
357
+ priorityClaim: boolean; // 优先权声明
358
+ priorityCountry?: string | null; // 优先权国家
359
+ priorityDate?: Date | null; // 优先权日期
360
+ priorityNumber?: string | null; // 优先权号
361
+ requestExam: boolean; // 请求实审
362
+ requestEarlyPublic: boolean; // 请求提前公开
363
+ files { // 相关文档
364
+ originalName: string; // 文档名称
365
+ shasum: string; 文件校验码
366
+ }
341
367
 
342
368
  ## createUtilityModel(data: UtilityModelDto) 创建实用新型订单
369
+
343
370
  - 先import {FilingRouteType,InventionPatentServiceType,LocalAttorneyFeeTireType,ProjectType,ChangeItemType} from '@inipa/common'
344
371
  - 调用方式: await http.createUtilityModel(data)
345
372
  - 操作结果,返回提示信息及订单号
346
373
  - 字段说明:
347
- UtilityModelDto {
374
+ UtilityModelDto {
348
375
  country: string;
349
376
  currency: string;
350
377
  localAttorneyFeeTire: LocalAttorneyFeeTireType.OptimalBid | LocalAttorneyFeeTireType.DirectFiling | LocalAttorneyFeeTireType.
351
378
  service:
352
- | InventionPatentServiceType.NewApplication
353
- | InventionPatentServiceType.Examination
354
- | InventionPatentServiceType.BiblioChange
355
- | InventionPatentServiceType.Assignment
356
- | InventionPatentServiceType.GrantFee
357
- | InventionPatentServiceType.Publication;
379
+ | InventionPatentServiceType.NewApplication
380
+ | InventionPatentServiceType.Examination
381
+ | InventionPatentServiceType.BiblioChange
382
+ | InventionPatentServiceType.Assignment
383
+ | InventionPatentServiceType.GrantFee
384
+ | InventionPatentServiceType.Publication;
358
385
  project:
359
- | ProjectType.TrademarkRegistration
360
- | ProjectType.InventionPatent
361
- | ProjectType.UtilityModel
362
- | ProjectType.DesignPatent
363
- | ProjectType.AnnuityManagement
364
- | ProjectType.CopyrightRegistration;
386
+ | ProjectType.TrademarkRegistration
387
+ | ProjectType.InventionPatent
388
+ | ProjectType.UtilityModel
389
+ | ProjectType.DesignPatent
390
+ | ProjectType.AnnuityManagement
391
+ | ProjectType.CopyrightRegistration;
365
392
  utilityModelName: string; // 实用新型名称
366
393
  clientReferentNumber: string; // 客户案号
367
394
  filingRoute: FilingRouteType.DivisionalApply | FilingRouteType.PCTNationalPhase | FilingRouteType.StandardRoute; // 递交路径
@@ -379,67 +406,69 @@ UtilityModelDto {
379
406
  quantity: number;
380
407
  remark?: string;
381
408
  docs: string; // 上传文件之后,会返回一个shasum,将所有shasum用半角逗号 , 拼接起来。 $2b$10$bH9fUB5lhDl9HEM96ebSW.TLeTOg74zYcVLnpTna6bfqSedkm34Iu,$2b$10$kMx1aWFaecYbQT8zDkoFQOjyiJ0la6ZM2Ff5RB0A1lBIQdUXbQuky
382
- }
409
+ }
383
410
 
384
411
  ## getUtilityModelDetailById(orderId:number) 通过订单ID 或 getUtilityModelDetailByNumber(number:string)通过订单号获取实用新型单信息
412
+
385
413
  - 调用方式:await http.getUtilityModelById(1);
386
414
  - 操作结果:
387
- id: number
388
- number: string // 订单号
389
- service: string // 服务类型
390
- country: string // 国家
391
- totalAmount: number // 总金额
392
- officialFee: number // 官方规定费用
393
- localAttorneyFee: number // 本地律师费
394
- serviceFee: number // INIPO 服务费
395
- currency: string // 货币
396
- remark: string // 备注
397
- status: number // 订单状态:0(待处理)1(处理中)2(已完成)3(已取消)
398
- createdDate: Date // 创建时间
399
- localAttorneyFeeTire: string // 本地律师服务费等级
400
- quantity: number // 数量
401
- utilityModelName: string; //实用新型名称
402
- clientReferentNumber: string; //客户案号
403
- filingRoute: FilingRouteType // 递交路径
404
- inventor: string; // 发明人
405
- applicantName: string; // 申请人名称或公司名称
406
- priorityClaim: boolean; // 优先权声明
407
- priorityCountry?: string | null; // 优先权国家
408
- priorityDate?: Date | null; // 优先权日期
409
- priorityNumber?: string | null; // 优先权号
410
- valuationReport: boolean; // 评估报告
411
- changeItem: string; //变更项目
412
- changeNewInformation: string; // 新信息
413
- assignor: string; // 转让人
414
- assignee: string; // 受让人
415
- files { // 相关文档
416
- originalName: string; // 文档名称
417
- shasum: string; 文件校验码
418
- }
415
+ id: number
416
+ number: string // 订单号
417
+ service: string // 服务类型
418
+ country: string // 国家
419
+ totalAmount: number // 总金额
420
+ officialFee: number // 官方规定费用
421
+ localAttorneyFee: number // 本地律师费
422
+ serviceFee: number // INIPO 服务费
423
+ currency: string // 货币
424
+ remark: string // 备注
425
+ status: number // 订单状态:0(待处理)1(处理中)2(已完成)3(已取消)
426
+ createdDate: Date // 创建时间
427
+ localAttorneyFeeTire: string // 本地律师服务费等级
428
+ quantity: number // 数量
429
+ utilityModelName: string; //实用新型名称
430
+ clientReferentNumber: string; //客户案号
431
+ filingRoute: FilingRouteType // 递交路径
432
+ inventor: string; // 发明人
433
+ applicantName: string; // 申请人名称或公司名称
434
+ priorityClaim: boolean; // 优先权声明
435
+ priorityCountry?: string | null; // 优先权国家
436
+ priorityDate?: Date | null; // 优先权日期
437
+ priorityNumber?: string | null; // 优先权号
438
+ valuationReport: boolean; // 评估报告
439
+ changeItem: string; //变更项目
440
+ changeNewInformation: string; // 新信息
441
+ assignor: string; // 转让人
442
+ assignee: string; // 受让人
443
+ files { // 相关文档
444
+ originalName: string; // 文档名称
445
+ shasum: string; 文件校验码
446
+ }
419
447
 
420
448
  ## createDesignPatent(data: DesignPatentDto) 创建外观专利订单
449
+
421
450
  - 先import {FilingRouteType,InventionPatentServiceType,LocalAttorneyFeeTireType,ProjectType,ChangeItemType} from '@inipa/common'
422
- - 调用方式: await http.createUtilityModel(data)
451
+ - 调用方式: await http.createDesignPatent(data)
423
452
  - 操作结果,返回提示信息及订单号
424
453
  - 字段说明:
425
- UtilityModelDto {
454
+ UtilityModelDto {
426
455
  country: string;
427
456
  currency: string;
428
457
  localAttorneyFeeTire: LocalAttorneyFeeTireType.OptimalBid | LocalAttorneyFeeTireType.DirectFiling | LocalAttorneyFeeTireType.
429
458
  service:
430
- | InventionPatentServiceType.NewApplication
431
- | InventionPatentServiceType.Examination
432
- | InventionPatentServiceType.BiblioChange
433
- | InventionPatentServiceType.Assignment
434
- | InventionPatentServiceType.GrantFee
435
- | InventionPatentServiceType.Publication;
459
+ | InventionPatentServiceType.NewApplication
460
+ | InventionPatentServiceType.Examination
461
+ | InventionPatentServiceType.BiblioChange
462
+ | InventionPatentServiceType.Assignment
463
+ | InventionPatentServiceType.GrantFee
464
+ | InventionPatentServiceType.Publication;
436
465
  project:
437
- | ProjectType.TrademarkRegistration
438
- | ProjectType.InventionPatent
439
- | ProjectType.UtilityModel
440
- | ProjectType.DesignPatent
441
- | ProjectType.AnnuityManagement
442
- | ProjectType.CopyrightRegistration;
466
+ | ProjectType.TrademarkRegistration
467
+ | ProjectType.InventionPatent
468
+ | ProjectType.UtilityModel
469
+ | ProjectType.DesignPatent
470
+ | ProjectType.AnnuityManagement
471
+ | ProjectType.CopyrightRegistration;
443
472
  designPatentlName: string; // 外观名称
444
473
  clientReferentNumber: string; // 客户案号
445
474
  locarnoClass: string; // 洛迦诺分类
@@ -458,40 +487,104 @@ UtilityModelDto {
458
487
  quantity: number;
459
488
  remark?: string;
460
489
  docs: string; // 上传文件之后,会返回一个shasum,将所有shasum用半角逗号 , 拼接起来。 $2b$10$bH9fUB5lhDl9HEM96ebSW.TLeTOg74zYcVLnpTna6bfqSedkm34Iu,$2b$10$kMx1aWFaecYbQT8zDkoFQOjyiJ0la6ZM2Ff5RB0A1lBIQdUXbQuky
461
- }
462
- ## getDesignPatentDetailById(orderId:number) 通过订单ID 或 getDesignPatentDetailByNumber(number:string)通过订单号获取实用新型单信息
463
- - 调用方式:await http.getUtilityModelById(1);
490
+ }
491
+
492
+ ## getDesignPatentDetailById(orderId:number) 通过订单ID 或 getDesignPatentDetailByNumber(number:string)通过订单号获取外观专利单信息
493
+
494
+ - 调用方式:await http.getDesignPatentDetailById(1);
495
+ - 操作结果:
496
+ id: number
497
+ number: string // 订单号
498
+ service: string // 服务类型
499
+ country: string // 国家
500
+ totalAmount: number // 总金额
501
+ officialFee: number // 官方规定费用
502
+ localAttorneyFee: number // 本地律师费
503
+ serviceFee: number // INIPO 服务费
504
+ currency: string // 货币
505
+ remark: string // 备注
506
+ status: number // 订单状态:0(待处理)1(处理中)2(已完成)3(已取消)
507
+ createdDate: Date // 创建时间
508
+ localAttorneyFeeTire: string // 本地律师服务费等级
509
+ quantity: number // 数量
510
+ designPatentlName: string; // 外观名称
511
+ clientReferentNumber: string; //客户案号
512
+ locarnoClass: string; // 洛迦诺分类
513
+ designer: string; // 设计人
514
+ applicantName: string; // 申请人名称或公司名称
515
+ priorityClaim: boolean; // 优先权声明
516
+ priorityCountry?: string | null; // 优先权国家
517
+ priorityDate?: Date | null; // 优先权日期
518
+ priorityNumber?: string | null; // 优先权号
519
+ requestDeferment?: boolean; // 请求延时公开
520
+ drawingsService?: boolean; // 专业绘图服务
521
+ changeItem: string; //变更项目
522
+ changeNewInformation: string; // 新信息
523
+ assignor: string; // 转让人
524
+ assignee: string; // 受让人
525
+ files { // 相关文档
526
+ originalName: string; // 文档名称
527
+ shasum: string; 文件校验码
528
+ }
529
+
530
+ ## createCopyrightRegistration(data: CopyrightRegistrationDto) 创建版权登记订单
531
+
532
+ - 先import {FilingRouteType,InventionPatentServiceType,LocalAttorneyFeeTireType,ProjectType,PublicationStatusType,ProcessingSpeedType} from '@inipa/common'
533
+ - 调用方式: await http.createCopyrightRegistration(data)
534
+ - 操作结果,返回提示信息及订单号
535
+ - 字段说明:
536
+ UtilityModelDto {
537
+ country: string;
538
+ currency: string;
539
+ localAttorneyFeeTire: LocalAttorneyFeeTireType.OptimalBid | LocalAttorneyFeeTireType.DirectFiling | LocalAttorneyFeeTireType.
540
+ service:
541
+ | InventionPatentServiceType.NewApplication
542
+ | InventionPatentServiceType.Examination
543
+ | InventionPatentServiceType.BiblioChange
544
+ | InventionPatentServiceType.Assignment
545
+ | InventionPatentServiceType.GrantFee
546
+ | InventionPatentServiceType.Publication;
547
+ project:
548
+ | ProjectType.TrademarkRegistration
549
+ | ProjectType.InventionPatent
550
+ | ProjectType.UtilityModel
551
+ | ProjectType.DesignPatent
552
+ | ProjectType.AnnuityManagement
553
+ | ProjectType.CopyrightRegistration;
554
+ titleOfTheWork: string; // 作品名称
555
+ author: string; // 作者、权利人
556
+ creationDate: Date; // 创作日期
557
+ publicationStatus: PublicationStatusType.Unpublished | PublicationStatusType.Published; // 发表状态:未发表(Unpublished) 已发表(Published)
558
+ processingSpeed: ProcessingSpeedType.StandardFiling | ProcessingSpeedType.ExpeditedPriority; // 处理速度
559
+ quantity: number;
560
+ remark?: string;
561
+ docs: string; // 上传文件之后,会返回一个shasum,将所有shasum用半角逗号 , 拼接起来。 $2b$10$bH9fUB5lhDl9HEM96ebSW.TLeTOg74zYcVLnpTna6bfqSedkm34Iu,$2b$10$kMx1aWFaecYbQT8zDkoFQOjyiJ0la6ZM2Ff5RB0A1lBIQdUXbQuky
562
+ }
563
+
564
+ ## getCopyrightRegistrationlDetailById(orderId:number) 通过订单ID 或 getCopyrightRegistrationlDetailByNumber(number:string)通过订单号获取版权登记信息
565
+
566
+ - 调用方式:await http.getCopyrightRegistrationlDetailById(1);
464
567
  - 操作结果:
465
- id: number
466
- number: string // 订单号
467
- service: string // 服务类型
468
- country: string // 国家
469
- totalAmount: number // 总金额
470
- officialFee: number // 官方规定费用
471
- localAttorneyFee: number // 本地律师费
472
- serviceFee: number // INIPO 服务费
473
- currency: string // 货币
474
- remark: string // 备注
475
- status: number // 订单状态:0(待处理)1(处理中)2(已完成)3(已取消)
476
- createdDate: Date // 创建时间
477
- localAttorneyFeeTire: string // 本地律师服务费等级
478
- quantity: number // 数量
479
- designPatentlName: string; // 外观名称
480
- clientReferentNumber: string; //客户案号
481
- locarnoClass: string; // 洛迦诺分类
482
- designer: string; // 设计人
483
- applicantName: string; // 申请人名称或公司名称
484
- priorityClaim: boolean; // 优先权声明
485
- priorityCountry?: string | null; // 优先权国家
486
- priorityDate?: Date | null; // 优先权日期
487
- priorityNumber?: string | null; // 优先权号
488
- requestDeferment?: boolean; // 请求延时公开
489
- drawingsService?: boolean; // 专业绘图服务
490
- changeItem: string; //变更项目
491
- changeNewInformation: string; // 新信息
492
- assignor: string; // 转让人
493
- assignee: string; // 受让人
494
- files { // 相关文档
495
- originalName: string; // 文档名称
496
- shasum: string; 文件校验码
497
- }
568
+ id: number
569
+ number: string // 订单号
570
+ service: string // 服务类型
571
+ country: string // 国家
572
+ totalAmount: number // 总金额
573
+ officialFee: number // 官方规定费用
574
+ localAttorneyFee: number // 本地律师费
575
+ serviceFee: number // INIPO 服务费
576
+ currency: string // 货币
577
+ remark: string // 备注
578
+ status: number // 订单状态:0(待处理)1(处理中)2(已完成)3(已取消)
579
+ createdDate: Date // 创建时间
580
+ localAttorneyFeeTire: string // 本地律师服务费等级
581
+ quantity: number // 数量
582
+ titleOfTheWork: string; // 作品名称
583
+ author: string; // 作者、权利人
584
+ creationDate: Date; // 创作日期
585
+ publicationStatus: PublicationStatusType;
586
+ processingSpeed: ProcessingSpeedType; // 处理速度
587
+ files { // 相关文档
588
+ originalName: string; // 文档名称
589
+ shasum: string; 文件校验码
590
+ }
@@ -1224,7 +1224,7 @@ class Ihttp {
1224
1224
  return formatError(err);
1225
1225
  }
1226
1226
  }
1227
- //创建外观专利
1227
+ //创建版权登记
1228
1228
  async createCopyrightRegistration(data) {
1229
1229
  const query = (0, graphql_request_1.gql) `
1230
1230
  mutation CreateCopyrightRegistration {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inipa/common",
3
- "version": "1.0.38",
3
+ "version": "1.0.39",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",