tencentcloud-sdk-nodejs 4.0.460 → 4.0.462

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.
Files changed (78) hide show
  1. package/CHANGELOG.md +359 -0
  2. package/SERVICE_CHANGELOG.md +363 -110
  3. package/package.json +1 -1
  4. package/products.md +16 -16
  5. package/src/common/sdk_version.ts +1 -1
  6. package/src/services/bma/v20210624/bma_client.ts +14 -2
  7. package/src/services/bma/v20210624/bma_models.ts +112 -42
  8. package/src/services/captcha/v20190722/captcha_client.ts +12 -0
  9. package/src/services/captcha/v20190722/captcha_models.ts +15 -0
  10. package/src/services/cynosdb/v20190107/cynosdb_client.ts +67 -16
  11. package/src/services/cynosdb/v20190107/cynosdb_models.ts +570 -202
  12. package/src/services/essbasic/v20210526/essbasic_client.ts +7 -20
  13. package/src/services/essbasic/v20210526/essbasic_models.ts +0 -35
  14. package/src/services/faceid/v20180301/faceid_client.ts +189 -62
  15. package/src/services/faceid/v20180301/faceid_models.ts +2264 -1531
  16. package/src/services/iotvideo/v20211125/iotvideo_models.ts +6 -0
  17. package/src/services/lcic/v20220817/lcic_client.ts +27 -15
  18. package/src/services/lcic/v20220817/lcic_models.ts +42 -22
  19. package/src/services/redis/v20180412/redis_models.ts +35 -30
  20. package/src/services/ssl/v20191205/ssl_client.ts +15 -1
  21. package/src/services/ssl/v20191205/ssl_models.ts +191 -6
  22. package/src/services/tdmq/v20200217/tdmq_models.ts +1 -1
  23. package/src/services/teo/v20220901/teo_models.ts +1 -1
  24. package/src/services/tke/v20180525/tke_client.ts +1 -0
  25. package/src/services/tke/v20180525/tke_models.ts +34 -0
  26. package/src/services/trp/v20210515/trp_client.ts +202 -67
  27. package/src/services/trp/v20210515/trp_models.ts +1370 -690
  28. package/src/services/trtc/v20190722/trtc_client.ts +79 -5
  29. package/src/services/trtc/v20190722/trtc_models.ts +691 -106
  30. package/src/services/wedata/v20210820/wedata_client.ts +116 -40
  31. package/src/services/wedata/v20210820/wedata_models.ts +646 -166
  32. package/tencentcloud/common/sdk_version.d.ts +1 -1
  33. package/tencentcloud/common/sdk_version.js +1 -1
  34. package/tencentcloud/services/bma/v20210624/bma_client.d.ts +5 -1
  35. package/tencentcloud/services/bma/v20210624/bma_client.js +6 -0
  36. package/tencentcloud/services/bma/v20210624/bma_models.d.ts +96 -38
  37. package/tencentcloud/services/captcha/v20190722/captcha_client.d.ts +5 -1
  38. package/tencentcloud/services/captcha/v20190722/captcha_client.js +6 -0
  39. package/tencentcloud/services/captcha/v20190722/captcha_models.d.ts +13 -0
  40. package/tencentcloud/services/cynosdb/v20190107/cynosdb_client.d.ts +19 -3
  41. package/tencentcloud/services/cynosdb/v20190107/cynosdb_client.js +27 -3
  42. package/tencentcloud/services/cynosdb/v20190107/cynosdb_models.d.ts +476 -168
  43. package/tencentcloud/services/essbasic/v20210526/essbasic_client.d.ts +3 -8
  44. package/tencentcloud/services/essbasic/v20210526/essbasic_client.js +3 -10
  45. package/tencentcloud/services/essbasic/v20210526/essbasic_models.d.ts +0 -30
  46. package/tencentcloud/services/faceid/v20180301/faceid_client.d.ts +46 -3
  47. package/tencentcloud/services/faceid/v20180301/faceid_client.js +66 -3
  48. package/tencentcloud/services/faceid/v20180301/faceid_models.d.ts +2142 -1511
  49. package/tencentcloud/services/iotvideo/v20211125/iotvideo_models.d.ts +6 -0
  50. package/tencentcloud/services/lcic/v20220817/lcic_client.d.ts +9 -5
  51. package/tencentcloud/services/lcic/v20220817/lcic_client.js +12 -6
  52. package/tencentcloud/services/lcic/v20220817/lcic_models.d.ts +38 -20
  53. package/tencentcloud/services/redis/v20180412/redis_models.d.ts +34 -30
  54. package/tencentcloud/services/ssl/v20191205/ssl_client.d.ts +5 -1
  55. package/tencentcloud/services/ssl/v20191205/ssl_client.js +6 -0
  56. package/tencentcloud/services/ssl/v20191205/ssl_models.d.ts +159 -6
  57. package/tencentcloud/services/tdmq/v20200217/tdmq_models.d.ts +1 -1
  58. package/tencentcloud/services/teo/v20220901/teo_models.d.ts +1 -1
  59. package/tencentcloud/services/tke/v20180525/tke_models.d.ts +29 -0
  60. package/tencentcloud/services/trp/v20210515/trp_client.d.ts +51 -7
  61. package/tencentcloud/services/trp/v20210515/trp_client.js +75 -9
  62. package/tencentcloud/services/trp/v20210515/trp_models.d.ts +1203 -625
  63. package/tencentcloud/services/trtc/v20190722/trtc_client.d.ts +32 -1
  64. package/tencentcloud/services/trtc/v20190722/trtc_client.js +37 -0
  65. package/tencentcloud/services/trtc/v20190722/trtc_models.d.ts +556 -60
  66. package/tencentcloud/services/wedata/v20210820/wedata_client.d.ts +36 -12
  67. package/tencentcloud/services/wedata/v20210820/wedata_client.js +51 -15
  68. package/tencentcloud/services/wedata/v20210820/wedata_models.d.ts +554 -149
  69. package/test/bma.v20210624.test.js +10 -0
  70. package/test/captcha.v20190722.test.js +10 -0
  71. package/test/cynosdb.v20190107.test.js +42 -2
  72. package/test/essbasic.v20210526.test.js +2 -12
  73. package/test/faceid.v20180301.test.js +102 -2
  74. package/test/lcic.v20220817.test.js +14 -4
  75. package/test/ssl.v20191205.test.js +10 -0
  76. package/test/trp.v20210515.test.js +116 -6
  77. package/test/trtc.v20190722.test.js +30 -0
  78. package/test/wedata.v20210820.test.js +68 -8
@@ -13,7 +13,7 @@ export interface CodeBatch {
13
13
  */
14
14
  CorpId: number;
15
15
  /**
16
- *
16
+ * 批次编码(未使用)
17
17
  注意:此字段可能返回 null,表示取不到有效值。
18
18
  */
19
19
  BatchCode: string;
@@ -48,7 +48,7 @@ export interface CodeBatch {
48
48
  */
49
49
  MpTpl: string;
50
50
  /**
51
- * 状态
51
+ * 批次状态 0: 未激活 1: 已激活 -1: 已冻结
52
52
  注意:此字段可能返回 null,表示取不到有效值。
53
53
  */
54
54
  Status: number;
@@ -89,493 +89,502 @@ export interface CodeBatch {
89
89
  Job?: Job;
90
90
  }
91
91
  /**
92
- * DeleteProduct请求参数结构体
93
- */
94
- export interface DeleteProductRequest {
95
- /**
96
- * 商品ID
97
- */
98
- ProductId: string;
99
- /**
100
- * 企业ID
101
- */
102
- CorpId?: number;
103
- }
104
- /**
105
- * ModifyCodeBatch请求参数结构体
92
+ * DescribeProducts请求参数结构体
106
93
  */
107
- export interface ModifyCodeBatchRequest {
108
- /**
109
- * 批次ID
110
- */
111
- BatchId: string;
112
- /**
113
- * 企业ID
114
- */
115
- CorpId?: number;
94
+ export interface DescribeProductsRequest {
116
95
  /**
117
- * 状态 0: 未激活 1: 已激活 -1: 已冻结
96
+ * 商品名称
118
97
  */
119
- Status?: number;
98
+ Name?: string;
120
99
  /**
121
- * 模板ID
100
+ * 条数
122
101
  */
123
- MpTpl?: string;
102
+ PageSize?: number;
124
103
  /**
125
- * 商户ID
104
+ * 页数
126
105
  */
127
- MerchantId?: string;
106
+ PageNumber?: number;
128
107
  /**
129
108
  * 商品ID
130
109
  */
131
- ProductId?: string;
110
+ MerchantId?: string;
132
111
  /**
133
- * 备注
112
+ * 企业ID
134
113
  */
135
- Remark?: string;
114
+ CorpId?: number;
136
115
  }
137
116
  /**
138
- * CreateCodeBatch返回参数结构体
117
+ * ModifyProduct返回参数结构体
139
118
  */
140
- export interface CreateCodeBatchResponse {
119
+ export interface ModifyProductResponse {
141
120
  /**
142
- * 批次ID
121
+ * 商品ID
122
+ 注意:此字段可能返回 null,表示取不到有效值。
143
123
  */
144
- BatchId: string;
124
+ ProductId: string;
145
125
  /**
146
126
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
147
127
  */
148
128
  RequestId?: string;
149
129
  }
150
130
  /**
151
- * DescribeProductById请求参数结构体
131
+ * ModifyProduct请求参数结构体
152
132
  */
153
- export interface DescribeProductByIdRequest {
133
+ export interface ModifyProductRequest {
134
+ /**
135
+ * 商品名称
136
+ */
137
+ Name: string;
154
138
  /**
155
139
  * 商品ID
156
140
  */
157
141
  ProductId: string;
158
142
  /**
159
- * 企业ID
143
+ * 备注
160
144
  */
161
- CorpId?: number;
162
- }
163
- /**
164
- * ModifyTraceDataRanks请求参数结构体
165
- */
166
- export interface ModifyTraceDataRanksRequest {
145
+ Remark?: string;
167
146
  /**
168
- * 企业ID
147
+ * 商品规格
169
148
  */
170
- CorpId?: number;
149
+ Specification?: string;
171
150
  /**
172
- * 批次ID
151
+ * 商品图片
173
152
  */
174
- BatchId?: string;
153
+ Logo?: Array<string>;
175
154
  /**
176
- * 生产任务ID
155
+ * 企业ID
177
156
  */
178
- TaskId?: string;
157
+ CorpId?: number;
179
158
  /**
180
- * 溯源ID
159
+ * 预留字段
181
160
  */
182
- TraceIds?: Array<string>;
161
+ Ext?: Ext;
183
162
  }
184
163
  /**
185
- * CreateTraceCodes返回参数结构体
164
+ * ModifyCustomRule请求参数结构体
186
165
  */
187
- export interface CreateTraceCodesResponse {
166
+ export interface ModifyCustomRuleRequest {
188
167
  /**
189
- * 批次ID
168
+ * 码规则ID
190
169
  */
191
- BatchId: string;
170
+ CustomId: string;
192
171
  /**
193
- * 导入成功码数量
172
+ * 规则名称
194
173
  */
195
- ActiveCnt: number;
174
+ Name: string;
196
175
  /**
197
- * 批次码数量
176
+ * 码长度
198
177
  */
199
- CodeCnt: number;
178
+ CodeLength: number;
200
179
  /**
201
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
180
+ * 码段配置
202
181
  */
203
- RequestId?: string;
182
+ CodeParts: Array<CodePart>;
183
+ /**
184
+ * 企业ID
185
+ */
186
+ CorpId?: number;
204
187
  }
205
188
  /**
206
- * DescribeTraceCodes返回参数结构体
189
+ * 码段配置
207
190
  */
208
- export interface DescribeTraceCodesResponse {
191
+ export interface CodePart {
209
192
  /**
210
- * 标识列表
193
+ * 码段名称
211
194
  注意:此字段可能返回 null,表示取不到有效值。
212
195
  */
213
- TraceCodes: Array<TraceCode>;
196
+ Name: string;
214
197
  /**
215
- * 条数
198
+ * 码段类型
216
199
  注意:此字段可能返回 null,表示取不到有效值。
217
200
  */
218
- TotalCount: number;
201
+ Type: string;
219
202
  /**
220
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
203
+ * 码段内容
204
+ 注意:此字段可能返回 null,表示取不到有效值。
221
205
  */
222
- RequestId?: string;
223
- }
224
- /**
225
- * DeleteTraceData请求参数结构体
226
- */
227
- export interface DeleteTraceDataRequest {
206
+ Value: string;
228
207
  /**
229
- * 溯源ID
208
+ * 码段长度
230
209
  */
231
- TraceId: string;
210
+ Length: number;
232
211
  /**
233
- * 企业ID
212
+ * 扩展字段
213
+ 注意:此字段可能返回 null,表示取不到有效值。
234
214
  */
235
- CorpId?: number;
215
+ Ext: string;
236
216
  }
237
217
  /**
238
- * ModifyMerchant请求参数结构体
218
+ * 码包类型
239
219
  */
240
- export interface ModifyMerchantRequest {
220
+ export interface CodePack {
241
221
  /**
242
- * 商户名称
222
+ * 码id
223
+ 注意:此字段可能返回 null,表示取不到有效值。
243
224
  */
244
- Name: string;
225
+ PackId: string;
245
226
  /**
246
- * 商户标识码
227
+ * 企业id
228
+ 注意:此字段可能返回 null,表示取不到有效值。
229
+ */
230
+ CorpId: number;
231
+ /**
232
+ * 商户id
233
+ 注意:此字段可能返回 null,表示取不到有效值。
247
234
  */
248
235
  MerchantId: string;
249
236
  /**
250
- * 备注
237
+ * 创建时间
238
+ 注意:此字段可能返回 null,表示取不到有效值。
251
239
  */
252
- Remark?: string;
240
+ CreateTime: string;
253
241
  /**
254
- * 企业ID
242
+ * 更新时间
243
+ 注意:此字段可能返回 null,表示取不到有效值。
255
244
  */
256
- CorpId?: number;
245
+ UpdateTime: string;
257
246
  /**
258
- * 码包来源 0:自建, 1:第三码包,暂不支持修改
247
+ * 状态
248
+ 注意:此字段可能返回 null,表示取不到有效值。
259
249
  */
260
- CodeType?: number;
250
+ Status: string;
261
251
  /**
262
- * 码包前缀地址 第三方码包时必填
252
+ * 记录
253
+ 注意:此字段可能返回 null,表示取不到有效值。
263
254
  */
264
- CodeUrl?: string;
265
- }
266
- /**
267
- * ModifyProduct返回参数结构体
268
- */
269
- export interface ModifyProductResponse {
255
+ Log: string;
270
256
  /**
271
- * 商品ID
257
+ * 创建人
272
258
  注意:此字段可能返回 null,表示取不到有效值。
273
259
  */
274
- ProductId: string;
260
+ CreateUser: string;
275
261
  /**
276
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
262
+ * 码数
263
+ 注意:此字段可能返回 null,表示取不到有效值。
277
264
  */
278
- RequestId?: string;
279
- }
280
- /**
281
- * ModifyTraceData请求参数结构体
282
- */
283
- export interface ModifyTraceDataRequest {
265
+ Amount: number;
284
266
  /**
285
- * 溯源ID
267
+ * 码长度
268
+ 注意:此字段可能返回 null,表示取不到有效值。
286
269
  */
287
- TraceId?: string;
270
+ CodeLength: number;
288
271
  /**
289
- * 批次ID
272
+ * 码类型
273
+ 注意:此字段可能返回 null,表示取不到有效值。
290
274
  */
291
- BatchId?: string;
275
+ CodeType: string;
292
276
  /**
293
- * 生产溯源任务ID
277
+ * 是否暗码
278
+ 注意:此字段可能返回 null,表示取不到有效值。
294
279
  */
295
- TaskId?: string;
280
+ Cipher: number;
296
281
  /**
297
- * 溯源信息
282
+ * 文字码地址
283
+ 注意:此字段可能返回 null,表示取不到有效值。
298
284
  */
299
- TraceItems?: Array<TraceItem>;
285
+ TextUrl: string;
300
286
  /**
301
- * 溯源阶段名称
287
+ * 二维码地址
288
+ 注意:此字段可能返回 null,表示取不到有效值。
302
289
  */
303
- PhaseName?: string;
290
+ PackUrl: string;
304
291
  /**
305
- * [无效] 类型
292
+ * 商户名
293
+ 注意:此字段可能返回 null,表示取不到有效值。
306
294
  */
307
- Type?: number;
295
+ MerchantName: string;
308
296
  /**
309
- * [无效] 溯源码
297
+ * 码规则类型 0: 默认, 1: 自定义
298
+ 注意:此字段可能返回 null,表示取不到有效值。
310
299
  */
311
- Code?: string;
300
+ RuleType: number;
312
301
  /**
313
- * [无效] 排序
302
+ * 自定义码规则ID
303
+ 注意:此字段可能返回 null,表示取不到有效值。
314
304
  */
315
- Rank?: number;
305
+ CustomId: string;
316
306
  /**
317
- * [无效] 溯源阶段 0:商品 1:通用 2:物流
307
+ * 码包类型 0: 普通码包 1: 层级码包
308
+ 注意:此字段可能返回 null,表示取不到有效值。
318
309
  */
319
- Phase?: number;
310
+ PackType: number;
320
311
  /**
321
- * [无效] 溯源时间
312
+ * 生码层级
313
+ 注意:此字段可能返回 null,表示取不到有效值。
322
314
  */
323
- TraceTime?: string;
315
+ PackLevel: number;
324
316
  /**
325
- * [无效] 创建时间
317
+ * 层级码配置
318
+ 注意:此字段可能返回 null,表示取不到有效值。
326
319
  */
327
- CreateTime?: string;
320
+ PackSpec: Array<PackSpec>;
321
+ }
322
+ /**
323
+ * DeleteCodeBatch请求参数结构体
324
+ */
325
+ export interface DeleteCodeBatchRequest {
328
326
  /**
329
- * [无效] 上链状态
327
+ * 企业ID
330
328
  */
331
- ChainStatus?: number;
329
+ CorpId?: number;
332
330
  /**
333
- * [无效] 上链时间
331
+ * 批次ID
334
332
  */
335
- ChainTime?: string;
333
+ BatchId?: string;
334
+ }
335
+ /**
336
+ * DescribeMerchants请求参数结构体
337
+ */
338
+ export interface DescribeMerchantsRequest {
336
339
  /**
337
- * [无效] 上链数据
340
+ * 搜索商户名称
338
341
  */
339
- ChainData?: ChainData;
342
+ Name?: string;
340
343
  /**
341
- * 企业ID
344
+ * 条数
342
345
  */
343
- CorpId?: number;
346
+ PageSize?: number;
344
347
  /**
345
- * 溯源状态 0: 无效, 1: 有效
348
+ * 页数
346
349
  */
347
- Status?: number;
350
+ PageNumber?: number;
348
351
  /**
349
- * 环节数据
352
+ * 企业ID
350
353
  */
351
- PhaseData?: PhaseData;
354
+ CorpId?: number;
355
+ /**
356
+ * 码来源类型 0:自建, 1:第三方
357
+ */
358
+ CodeType?: number;
352
359
  }
353
360
  /**
354
- * CreateMerchant返回参数结构体
361
+ * ModifyTraceCode请求参数结构体
355
362
  */
356
- export interface CreateMerchantResponse {
363
+ export interface ModifyTraceCodeRequest {
357
364
  /**
358
- * 商户标识码
359
- 注意:此字段可能返回 null,表示取不到有效值。
360
- */
361
- MerchantId: string;
362
- /**
363
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
364
- */
365
- RequestId?: string;
366
- }
367
- /**
368
- * DescribeMerchantById请求参数结构体
369
- */
370
- export interface DescribeMerchantByIdRequest {
371
- /**
372
- * 商户标识码
365
+ * 二维码
373
366
  */
374
- MerchantId: string;
367
+ Code: string;
375
368
  /**
376
369
  * 企业ID
377
370
  */
378
371
  CorpId?: number;
372
+ /**
373
+ * 状态 0: 冻结 1: 激活
374
+ */
375
+ Status?: number;
379
376
  }
380
377
  /**
381
- * ModifyTraceDataRanks返回参数结构体
378
+ * DescribeCustomRules返回参数结构体
382
379
  */
383
- export interface ModifyTraceDataRanksResponse {
380
+ export interface DescribeCustomRulesResponse {
384
381
  /**
385
- * 批次ID
382
+ * 码规则列表
386
383
  注意:此字段可能返回 null,表示取不到有效值。
387
384
  */
388
- BatchId: string;
385
+ CustomRules: Array<CustomRule>;
386
+ /**
387
+ * 总数
388
+ 注意:此字段可能返回 null,表示取不到有效值。
389
+ */
390
+ TotalCount: number;
389
391
  /**
390
392
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
391
393
  */
392
394
  RequestId?: string;
393
395
  }
394
396
  /**
395
- * 商户信息
397
+ * CreateMerchant请求参数结构体
396
398
  */
397
- export interface Merchant {
398
- /**
399
- * 商户标识码
400
- */
401
- MerchantId: string;
402
- /**
403
- * 企业id
404
- */
405
- CorpId: number;
399
+ export interface CreateMerchantRequest {
406
400
  /**
407
401
  * 商户名称
408
402
  */
409
403
  Name: string;
410
404
  /**
411
405
  * 备注
412
- 注意:此字段可能返回 null,表示取不到有效值。
413
- */
414
- Remark: string;
415
- /**
416
- * 创建时间
417
406
  */
418
- CreateTime: string;
419
- /**
420
- * 更新时间
421
- */
422
- UpdateTime: string;
407
+ Remark?: string;
423
408
  /**
424
- * 商户码规则
409
+ * 企业ID
425
410
  */
426
- CodeRule: string;
411
+ CorpId?: number;
427
412
  /**
428
- * 码来源类型 0: 安心平台 1: 第三方码
413
+ * 码包来源 0:自建, 1:第三发
429
414
  */
430
- CodeType: number;
415
+ CodeType?: number;
431
416
  /**
432
- * 第三方码域名前缀
433
- 注意:此字段可能返回 null,表示取不到有效值。
417
+ * 码包前缀地址 第三方码包时必填
434
418
  */
435
- CodeUrl: string;
419
+ CodeUrl?: string;
436
420
  }
437
421
  /**
438
- * CreateTraceCodes请求参数结构体
422
+ * DescribeCodeBatchById请求参数结构体
439
423
  */
440
- export interface CreateTraceCodesRequest {
441
- /**
442
- * 批次ID
443
- */
444
- BatchId: string;
424
+ export interface DescribeCodeBatchByIdRequest {
445
425
  /**
446
426
  * 企业ID
447
427
  */
448
428
  CorpId?: number;
449
429
  /**
450
- *
430
+ * 批次ID
451
431
  */
452
- Codes?: Array<CodeItem>;
432
+ BatchId?: string;
453
433
  }
454
434
  /**
455
- * DeleteProduct返回参数结构体
435
+ * DescribeTraceCodeById返回参数结构体
456
436
  */
457
- export interface DeleteProductResponse {
437
+ export interface DescribeTraceCodeByIdResponse {
458
438
  /**
459
- * 商品ID
460
- 注意:此字段可能返回 null,表示取不到有效值。
439
+ *
461
440
  */
462
- ProductId: string;
441
+ TraceCode: TraceCode;
463
442
  /**
464
443
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
465
444
  */
466
445
  RequestId?: string;
467
446
  }
468
447
  /**
469
- * DescribeCodeBatchs请求参数结构体
448
+ * 码规则
470
449
  */
471
- export interface DescribeCodeBatchsRequest {
450
+ export interface CustomRule {
472
451
  /**
473
- * 查询商户ID
452
+ * 码规则ID
474
453
  */
475
- MerchantId?: string;
454
+ CustomId: string;
476
455
  /**
477
- * 查询商品ID
456
+ * 码规则名
457
+ 注意:此字段可能返回 null,表示取不到有效值。
478
458
  */
479
- ProductId?: string;
459
+ Name: string;
480
460
  /**
481
- * 查询关键字
461
+ * 企业ID
462
+ 注意:此字段可能返回 null,表示取不到有效值。
482
463
  */
483
- Keyword?: string;
464
+ CorpId: number;
484
465
  /**
485
- * 条数
466
+ * 商户ID
467
+ 注意:此字段可能返回 null,表示取不到有效值。
486
468
  */
487
- PageSize?: number;
469
+ MerchantId: string;
488
470
  /**
489
- * 页数
471
+ * 码ID长度
490
472
  */
491
- PageNumber?: number;
473
+ CodeLength: number;
492
474
  /**
493
- * 批次类型 0:溯源 1:营销
475
+ * 规则状态
494
476
  */
495
- BatchType?: string;
477
+ Status: number;
496
478
  /**
497
- * 企业ID
479
+ * 码段配置
498
480
  */
499
- CorpId?: number;
481
+ CodeParts: Array<CodePart>;
482
+ /**
483
+ * 创建时间
484
+ */
485
+ CreateTime: string;
486
+ /**
487
+ * 更新时间
488
+ */
489
+ UpdateTime: string;
500
490
  }
501
491
  /**
502
- * DescribeProducts请求参数结构体
492
+ * DescribeProducts返回参数结构体
503
493
  */
504
- export interface DescribeProductsRequest {
494
+ export interface DescribeProductsResponse {
505
495
  /**
506
- * 商品名称
496
+ * 商品列表
497
+ 注意:此字段可能返回 null,表示取不到有效值。
507
498
  */
508
- Name?: string;
499
+ Products: Array<Product>;
509
500
  /**
510
- * 条数
501
+ * 总数
502
+ 注意:此字段可能返回 null,表示取不到有效值。
511
503
  */
512
- PageSize?: number;
504
+ TotalCount: number;
513
505
  /**
514
- * 页数
506
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
515
507
  */
516
- PageNumber?: number;
508
+ RequestId?: string;
509
+ }
510
+ /**
511
+ * CreateCodeBatch返回参数结构体
512
+ */
513
+ export interface CreateCodeBatchResponse {
517
514
  /**
518
- * 商品ID
515
+ * 批次ID
519
516
  */
520
- MerchantId?: string;
517
+ BatchId: string;
521
518
  /**
522
- * 企业ID
519
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
523
520
  */
524
- CorpId?: number;
521
+ RequestId?: string;
525
522
  }
526
523
  /**
527
- * DescribeCodeBatchById返回参数结构体
524
+ * DescribeTraceDataList返回参数结构体
528
525
  */
529
- export interface DescribeCodeBatchByIdResponse {
526
+ export interface DescribeTraceDataListResponse {
530
527
  /**
531
- * 批次
528
+ * 数量
532
529
  */
533
- CodeBatch: CodeBatch;
530
+ TotalCount: number;
531
+ /**
532
+ * 无
533
+ */
534
+ TraceDataList: Array<TraceData>;
534
535
  /**
535
536
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
536
537
  */
537
538
  RequestId?: string;
538
539
  }
539
540
  /**
540
- * ModifyProduct请求参数结构体
541
+ * DescribeTraceCodes请求参数结构体
541
542
  */
542
- export interface ModifyProductRequest {
543
+ export interface DescribeTraceCodesRequest {
543
544
  /**
544
- * 商品名称
545
+ * 搜索关键字 码标识,或者批次ID
545
546
  */
546
- Name: string;
547
+ Keyword?: string;
547
548
  /**
548
- * 商品ID
549
+ * 条数
549
550
  */
550
- ProductId: string;
551
+ PageNumber?: number;
551
552
  /**
552
- * 备注
553
+ * 页码
553
554
  */
554
- Remark?: string;
555
+ PageSize?: number;
555
556
  /**
556
- * 商品规格
557
+ * 批次ID,弃用
557
558
  */
558
- Specification?: string;
559
+ BatchId?: string;
559
560
  /**
560
- * 商品图片
561
+ * 企业ID
561
562
  */
562
- Logo?: Array<string>;
563
+ CorpId?: number;
564
+ }
565
+ /**
566
+ * CreateTraceCodesAsync请求参数结构体
567
+ */
568
+ export interface CreateTraceCodesAsyncRequest {
563
569
  /**
564
570
  * 企业ID
565
571
  */
566
572
  CorpId?: number;
567
573
  /**
568
- * 预留字段
574
+ * 批次ID
569
575
  */
570
- Ext?: Ext;
576
+ BatchId?: string;
577
+ /**
578
+ * 上传文件Key,仅支持 csv 或者 zip 类型
579
+ */
580
+ FileKey?: string;
571
581
  }
572
582
  /**
573
- * DeleteTraceData返回参数结构体
583
+ * ModifyTraceData返回参数结构体
574
584
  */
575
- export interface DeleteTraceDataResponse {
585
+ export interface ModifyTraceDataResponse {
576
586
  /**
577
- * 溯源id
578
- 注意:此字段可能返回 null,表示取不到有效值。
587
+ * 溯源ID
579
588
  */
580
589
  TraceId: string;
581
590
  /**
@@ -584,92 +593,362 @@ export interface DeleteTraceDataResponse {
584
593
  RequestId?: string;
585
594
  }
586
595
  /**
587
- * 通用调度任务
596
+ * DeleteProduct请求参数结构体
588
597
  */
589
- export interface Job {
598
+ export interface DeleteProductRequest {
590
599
  /**
591
- * 调度ID
600
+ * 商品ID
592
601
  */
593
- JobId: number;
602
+ ProductId: string;
594
603
  /**
595
- * 执行状态 init:初始化, pending: 执行中, done: 执行成功, error: 执行失败
604
+ * 企业ID
596
605
  */
597
- Status: string;
606
+ CorpId?: number;
598
607
  }
599
608
  /**
600
- * CreateCodePack返回参数结构体
609
+ * CreateTraceChain返回参数结构体
601
610
  */
602
- export interface CreateCodePackResponse {
611
+ export interface CreateTraceChainResponse {
603
612
  /**
604
- * 码包ID
613
+ * 溯源ID
605
614
  */
606
- PackId: string;
615
+ TraceId: string;
607
616
  /**
608
617
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
609
618
  */
610
619
  RequestId?: string;
611
620
  }
612
621
  /**
613
- * DescribeMerchants返回参数结构体
622
+ * CreateCustomRule请求参数结构体
614
623
  */
615
- export interface DescribeMerchantsResponse {
624
+ export interface CreateCustomRuleRequest {
616
625
  /**
617
- * 商户列表
618
- 注意:此字段可能返回 null,表示取不到有效值。
626
+ * 规则名称
619
627
  */
620
- Merchants: Array<Merchant>;
628
+ Name: string;
621
629
  /**
622
- * 总数
623
- 注意:此字段可能返回 null,表示取不到有效值。
630
+ * 商户ID
624
631
  */
625
- TotalCount: number;
632
+ MerchantId: string;
626
633
  /**
627
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
634
+ * 码长度
628
635
  */
629
- RequestId?: string;
630
- }
631
- /**
632
- * DescribeTraceDataList请求参数结构体
633
- */
634
- export interface DescribeTraceDataListRequest {
636
+ CodeLength: number;
637
+ /**
638
+ * 码段配置
639
+ */
640
+ CodeParts: Array<CodePart>;
635
641
  /**
636
642
  * 企业ID
637
643
  */
638
644
  CorpId?: number;
645
+ }
646
+ /**
647
+ * DescribeCodePackStatus请求参数结构体
648
+ */
649
+ export interface DescribeCodePackStatusRequest {
639
650
  /**
640
- * 批次ID
651
+ * 码包ID
641
652
  */
642
- BatchId?: string;
653
+ PackId: string;
643
654
  /**
644
- * 任务ID 用于外部溯源
655
+ * 企业ID
656
+ */
657
+ CorpId?: number;
658
+ }
659
+ /**
660
+ * ModifyTraceData请求参数结构体
661
+ */
662
+ export interface ModifyTraceDataRequest {
663
+ /**
664
+ * 溯源ID
665
+ */
666
+ TraceId?: string;
667
+ /**
668
+ * 批次ID
669
+ */
670
+ BatchId?: string;
671
+ /**
672
+ * 生产溯源任务ID
645
673
  */
646
674
  TaskId?: string;
647
675
  /**
648
- * 页数
676
+ * 溯源信息
649
677
  */
650
- PageNumber?: number;
678
+ TraceItems?: Array<TraceItem>;
651
679
  /**
652
- * 二维码
680
+ * 溯源阶段名称
681
+ */
682
+ PhaseName?: string;
683
+ /**
684
+ * [无效] 类型
685
+ */
686
+ Type?: number;
687
+ /**
688
+ * [无效] 溯源码
653
689
  */
654
690
  Code?: string;
655
691
  /**
656
- * 溯源阶段 0:商品 1:通用 2:内部溯源 3:外部溯源
692
+ * [无效] 排序
693
+ */
694
+ Rank?: number;
695
+ /**
696
+ * [无效] 溯源阶段 0:商品 1:通用 2:物流
657
697
  */
658
698
  Phase?: number;
659
699
  /**
660
- * 数量
700
+ * [无效] 溯源时间
701
+ */
702
+ TraceTime?: string;
703
+ /**
704
+ * [无效] 创建时间
705
+ */
706
+ CreateTime?: string;
707
+ /**
708
+ * [无效] 上链状态
709
+ */
710
+ ChainStatus?: number;
711
+ /**
712
+ * [无效] 上链时间
713
+ */
714
+ ChainTime?: string;
715
+ /**
716
+ * [无效] 上链数据
717
+ */
718
+ ChainData?: ChainData;
719
+ /**
720
+ * 企业ID
721
+ */
722
+ CorpId?: number;
723
+ /**
724
+ * 溯源状态 0: 无效, 1: 有效
725
+ */
726
+ Status?: number;
727
+ /**
728
+ * 环节数据
729
+ */
730
+ PhaseData?: PhaseData;
731
+ }
732
+ /**
733
+ * DescribeCodeBatchs请求参数结构体
734
+ */
735
+ export interface DescribeCodeBatchsRequest {
736
+ /**
737
+ * 查询商户ID
738
+ */
739
+ MerchantId?: string;
740
+ /**
741
+ * 查询商品ID
742
+ */
743
+ ProductId?: string;
744
+ /**
745
+ * 查询关键字
746
+ */
747
+ Keyword?: string;
748
+ /**
749
+ * 条数
661
750
  */
662
751
  PageSize?: number;
752
+ /**
753
+ * 页数
754
+ */
755
+ PageNumber?: number;
756
+ /**
757
+ * 批次类型 0:溯源 1:营销
758
+ */
759
+ BatchType?: string;
760
+ /**
761
+ * 企业ID
762
+ */
763
+ CorpId?: number;
663
764
  }
664
765
  /**
665
- * DescribeMerchantById返回参数结构体
766
+ * ModifyTraceDataRanks返回参数结构体
666
767
  */
667
- export interface DescribeMerchantByIdResponse {
768
+ export interface ModifyTraceDataRanksResponse {
668
769
  /**
669
- * 商户信息
770
+ * 批次ID
670
771
  注意:此字段可能返回 null,表示取不到有效值。
671
772
  */
672
- Merchant: Merchant;
773
+ BatchId: string;
774
+ /**
775
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
776
+ */
777
+ RequestId?: string;
778
+ }
779
+ /**
780
+ * CreateTraceCodes请求参数结构体
781
+ */
782
+ export interface CreateTraceCodesRequest {
783
+ /**
784
+ * 批次ID
785
+ */
786
+ BatchId: string;
787
+ /**
788
+ * 企业ID
789
+ */
790
+ CorpId?: number;
791
+ /**
792
+ * 码
793
+ */
794
+ Codes?: Array<CodeItem>;
795
+ }
796
+ /**
797
+ * DescribeCodeBatchById返回参数结构体
798
+ */
799
+ export interface DescribeCodeBatchByIdResponse {
800
+ /**
801
+ * 批次
802
+ */
803
+ CodeBatch: CodeBatch;
804
+ /**
805
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
806
+ */
807
+ RequestId?: string;
808
+ }
809
+ /**
810
+ * DescribeCodePackStatus返回参数结构体
811
+ */
812
+ export interface DescribeCodePackStatusResponse {
813
+ /**
814
+ * 码包状态 init: 初始化, pending: 执行中, done: 完成, error: 失败
815
+ 注意:此字段可能返回 null,表示取不到有效值。
816
+ */
817
+ Status: string;
818
+ /**
819
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
820
+ */
821
+ RequestId?: string;
822
+ }
823
+ /**
824
+ * 通用调度任务
825
+ */
826
+ export interface Job {
827
+ /**
828
+ * 调度ID
829
+ */
830
+ JobId: number;
831
+ /**
832
+ * 执行状态 init:初始化, pending: 执行中, done: 执行成功, error: 执行失败
833
+ */
834
+ Status: string;
835
+ }
836
+ /**
837
+ * 溯源数据
838
+ */
839
+ export interface TraceData {
840
+ /**
841
+ * 溯源ID
842
+ 注意:此字段可能返回 null,表示取不到有效值。
843
+ */
844
+ TraceId: string;
845
+ /**
846
+ * 企业ID
847
+ 注意:此字段可能返回 null,表示取不到有效值。
848
+ */
849
+ CorpId: number;
850
+ /**
851
+ * 码类型 0: 批次, 1: 码, 2: 生产任务
852
+ 注意:此字段可能返回 null,表示取不到有效值。
853
+ */
854
+ Type: number;
855
+ /**
856
+ * 码值,跟码类型一一对应
857
+ 注意:此字段可能返回 null,表示取不到有效值。
858
+ */
859
+ Code: string;
860
+ /**
861
+ * 排序,在Phase相同情况下,值越小排名靠前
862
+ 注意:此字段可能返回 null,表示取不到有效值。
863
+ */
864
+ Rank: number;
865
+ /**
866
+ * 溯源阶段 0:商品 1:通用 2:物流
867
+ 注意:此字段可能返回 null,表示取不到有效值。
868
+ */
869
+ Phase: number;
870
+ /**
871
+ * 环节名称
872
+ 注意:此字段可能返回 null,表示取不到有效值。
873
+ */
874
+ PhaseName: string;
875
+ /**
876
+ * 时间
877
+ 注意:此字段可能返回 null,表示取不到有效值。
878
+ */
879
+ TraceTime: string;
880
+ /**
881
+ * 无
882
+ 注意:此字段可能返回 null,表示取不到有效值。
883
+ */
884
+ TraceItems: Array<TraceItem>;
885
+ /**
886
+ * 创建时间
887
+ 注意:此字段可能返回 null,表示取不到有效值。
888
+ */
889
+ CreateTime: string;
890
+ /**
891
+ * 上链状态 0: 未上链 1: 上链中 2: 已上链 -1: 异常
892
+ 注意:此字段可能返回 null,表示取不到有效值。
893
+ */
894
+ ChainStatus: number;
895
+ /**
896
+ * 上链时间
897
+ 注意:此字段可能返回 null,表示取不到有效值。
898
+ */
899
+ ChainTime: string;
900
+ /**
901
+ * 上链数据
902
+ 注意:此字段可能返回 null,表示取不到有效值。
903
+ */
904
+ ChainData: ChainData;
905
+ /**
906
+ * 溯源阶段配置
907
+ 注意:此字段可能返回 null,表示取不到有效值。
908
+ */
909
+ PhaseData: PhaseData;
910
+ /**
911
+ * 溯源阶段状态 0: 无效, 1: 有效
912
+ 注意:此字段可能返回 null,表示取不到有效值。
913
+ */
914
+ Status: number;
915
+ }
916
+ /**
917
+ * 层级码配置
918
+ */
919
+ export interface PackSpec {
920
+ /**
921
+ * 层级
922
+ */
923
+ Level: number;
924
+ /**
925
+ * 比例
926
+ */
927
+ Rate: number;
928
+ /**
929
+ * 数量
930
+ */
931
+ Amount: number;
932
+ /**
933
+ * 码规则ID
934
+ 注意:此字段可能返回 null,表示取不到有效值。
935
+ */
936
+ CustomId?: string;
937
+ /**
938
+ * 码段配置
939
+ 注意:此字段可能返回 null,表示取不到有效值。
940
+ */
941
+ CodeParts?: Array<CodePart>;
942
+ }
943
+ /**
944
+ * ModifyCustomRule返回参数结构体
945
+ */
946
+ export interface ModifyCustomRuleResponse {
947
+ /**
948
+ * 码规则ID
949
+ 注意:此字段可能返回 null,表示取不到有效值。
950
+ */
951
+ CustomId: string;
673
952
  /**
674
953
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
675
954
  */
@@ -690,14 +969,14 @@ export interface ModifyMerchantResponse {
690
969
  RequestId?: string;
691
970
  }
692
971
  /**
693
- * DeleteMerchant返回参数结构体
972
+ * DeleteProduct返回参数结构体
694
973
  */
695
- export interface DeleteMerchantResponse {
974
+ export interface DeleteProductResponse {
696
975
  /**
697
- * 商户标识码
976
+ * 商品ID
698
977
  注意:此字段可能返回 null,表示取不到有效值。
699
978
  */
700
- MerchantId: string;
979
+ ProductId: string;
701
980
  /**
702
981
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
703
982
  */
@@ -711,54 +990,189 @@ export interface DescribeCodesByPackResponse {
711
990
  * 码列表
712
991
  注意:此字段可能返回 null,表示取不到有效值。
713
992
  */
714
- Codes: Array<CodeItem>;
993
+ Codes: Array<CodeItem>;
994
+ /**
995
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
996
+ */
997
+ RequestId?: string;
998
+ }
999
+ /**
1000
+ * CreateTraceData请求参数结构体
1001
+ */
1002
+ export interface CreateTraceDataRequest {
1003
+ /**
1004
+ * 企业ID
1005
+ */
1006
+ CorpId?: number;
1007
+ /**
1008
+ * 批次ID
1009
+ */
1010
+ BatchId?: string;
1011
+ /**
1012
+ * 任务ID
1013
+ */
1014
+ TaskId?: string;
1015
+ /**
1016
+ * 溯源阶段 0:商品 1:通用 2:内部溯源 3:外部溯源
1017
+ */
1018
+ Phase?: number;
1019
+ /**
1020
+ * 溯源阶段名称
1021
+ */
1022
+ PhaseName?: string;
1023
+ /**
1024
+ * [无效] 上链状态
1025
+ */
1026
+ ChainStatus?: number;
1027
+ /**
1028
+ * [无效] 码类型 0: 批次, 1: 码, 2: 生产任务, 3: 物流信息
1029
+ */
1030
+ Type?: number;
1031
+ /**
1032
+ * [无效] 溯源ID
1033
+ */
1034
+ TraceId?: string;
1035
+ /**
1036
+ * 溯源信息
1037
+ */
1038
+ TraceItems?: Array<TraceItem>;
1039
+ /**
1040
+ * 溯源状态 0: 无效, 1: 有效
1041
+ */
1042
+ Status?: number;
1043
+ /**
1044
+ * 环节数据
1045
+ */
1046
+ PhaseData?: PhaseData;
1047
+ }
1048
+ /**
1049
+ * 预留字段
1050
+ */
1051
+ export declare type Ext = null;
1052
+ /**
1053
+ * CreateProduct返回参数结构体
1054
+ */
1055
+ export interface CreateProductResponse {
1056
+ /**
1057
+ * 商品ID
1058
+ 注意:此字段可能返回 null,表示取不到有效值。
1059
+ */
1060
+ ProductId: string;
1061
+ /**
1062
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1063
+ */
1064
+ RequestId?: string;
1065
+ }
1066
+ /**
1067
+ * CreateCustomPack请求参数结构体
1068
+ */
1069
+ export interface CreateCustomPackRequest {
1070
+ /**
1071
+ * 商户ID
1072
+ */
1073
+ MerchantId: string;
1074
+ /**
1075
+ * 生码数量, 普通码包时必填
1076
+ */
1077
+ Amount?: number;
1078
+ /**
1079
+ * 企业ID
1080
+ */
1081
+ CorpId?: number;
1082
+ /**
1083
+ * 码包类型 0: 普通码包 1: 层级码包
1084
+ */
1085
+ PackType?: number;
1086
+ /**
1087
+ * 码包层级
1088
+ */
1089
+ PackLevel?: number;
1090
+ /**
1091
+ * 层级码包规则
1092
+ */
1093
+ PackSpec?: Array<PackSpec>;
1094
+ /**
1095
+ * 码规则ID, 和CodeParts二选一必填
1096
+ */
1097
+ CustomId?: string;
1098
+ /**
1099
+ * 码段配置,和CustomId二选一必填
1100
+ */
1101
+ CodeParts?: Array<CodePart>;
1102
+ }
1103
+ /**
1104
+ * CreateCodePack请求参数结构体
1105
+ */
1106
+ export interface CreateCodePackRequest {
1107
+ /**
1108
+ * 商户ID
1109
+ */
1110
+ MerchantId: string;
1111
+ /**
1112
+ * 码长度
1113
+ */
1114
+ CodeLength: number;
1115
+ /**
1116
+ * 码类型 alphabet 字母, number 数字, mixin 混合
1117
+ */
1118
+ CodeType: string;
1119
+ /**
1120
+ * 生码数量 普通码包时必填
1121
+ */
1122
+ Amount?: number;
1123
+ /**
1124
+ * 企业ID
1125
+ */
1126
+ CorpId?: number;
1127
+ /**
1128
+ * 码包类型 0: 普通码包 1: 层级码包
1129
+ */
1130
+ PackType?: number;
1131
+ /**
1132
+ * 码包层级
1133
+ */
1134
+ PackLevel?: number;
715
1135
  /**
716
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1136
+ * 码包规格
717
1137
  */
718
- RequestId?: string;
1138
+ PackSpec?: Array<PackSpec>;
719
1139
  }
720
1140
  /**
721
- * DeleteCodeBatch返回参数结构体
1141
+ * CreateCodeBatch请求参数结构体
722
1142
  */
723
- export interface DeleteCodeBatchResponse {
1143
+ export interface CreateCodeBatchRequest {
724
1144
  /**
725
- * 批次ID
1145
+ * 企业ID
726
1146
  */
727
- BatchId: string;
1147
+ CorpId?: number;
728
1148
  /**
729
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1149
+ * 商户ID
730
1150
  */
731
- RequestId?: string;
732
- }
733
- /**
734
- * DescribeTraceDataList返回参数结构体
735
- */
736
- export interface DescribeTraceDataListResponse {
1151
+ MerchantId?: string;
737
1152
  /**
738
- * 数量
1153
+ * 产品ID
739
1154
  */
740
- TotalCount: number;
1155
+ ProductId?: string;
741
1156
  /**
742
- *
1157
+ * 批次类型 0:溯源 1:营销
743
1158
  */
744
- TraceDataList: Array<TraceData>;
1159
+ BatchType?: number;
745
1160
  /**
746
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1161
+ * 批次ID,系统自动生成
747
1162
  */
748
- RequestId?: string;
749
- }
750
- /**
751
- * CreateTraceChain请求参数结构体
752
- */
753
- export interface CreateTraceChainRequest {
1163
+ BatchId?: string;
754
1164
  /**
755
- * 企业ID
1165
+ * 备注
756
1166
  */
757
- CorpId?: number;
1167
+ Remark?: string;
758
1168
  /**
759
- * 溯源ID
1169
+ * 活动ID
760
1170
  */
761
- TraceId?: string;
1171
+ MpTpl?: string;
1172
+ /**
1173
+ * 克隆批次ID
1174
+ */
1175
+ CloneId?: string;
762
1176
  }
763
1177
  /**
764
1178
  * 溯源数据
@@ -806,333 +1220,312 @@ export interface TraceItem {
806
1220
  Ext: string;
807
1221
  }
808
1222
  /**
809
- * DeleteCodeBatch请求参数结构体
1223
+ * DescribeCustomRuleById请求参数结构体
810
1224
  */
811
- export interface DeleteCodeBatchRequest {
1225
+ export interface DescribeCustomRuleByIdRequest {
812
1226
  /**
813
- * 企业ID
1227
+ * 码规则ID
814
1228
  */
815
- CorpId?: number;
1229
+ CustomId: string;
816
1230
  /**
817
- * 批次ID
1231
+ * 企业ID
818
1232
  */
819
- BatchId?: string;
1233
+ CorpId?: number;
820
1234
  }
821
1235
  /**
822
- * 预留字段
823
- */
824
- export declare type Ext = null;
825
- /**
826
- * DescribeMerchants请求参数结构体
1236
+ * 上链数据
827
1237
  */
828
- export interface DescribeMerchantsRequest {
1238
+ export interface ChainData {
829
1239
  /**
830
- * 搜索商户名称
1240
+ * 区块hash
1241
+ 注意:此字段可能返回 null,表示取不到有效值。
831
1242
  */
832
- Name?: string;
1243
+ BlockHash: string;
833
1244
  /**
834
- * 条数
1245
+ * 区块高度
1246
+ 注意:此字段可能返回 null,表示取不到有效值。
835
1247
  */
836
- PageSize?: number;
1248
+ BlockHeight: string;
837
1249
  /**
838
- * 页数
1250
+ * 区块时间
1251
+ 注意:此字段可能返回 null,表示取不到有效值。
839
1252
  */
840
- PageNumber?: number;
1253
+ BlockTime: string;
1254
+ }
1255
+ /**
1256
+ * 环节数据
1257
+ */
1258
+ export interface PhaseData {
841
1259
  /**
842
- * 企业ID
1260
+ * 启用头
843
1261
  */
844
- CorpId?: number;
1262
+ HeadEnabled?: boolean;
845
1263
  /**
846
- * 码来源类型 0:自建, 1:第三方
1264
+ * 标题
847
1265
  */
848
- CodeType?: number;
849
- }
850
- /**
851
- * 码类型
852
- */
853
- export interface CodeItem {
1266
+ HeadTitle?: string;
854
1267
  /**
855
- *
1268
+ * 标识符
856
1269
  */
857
- Code?: string;
858
- }
859
- /**
860
- * ModifyTraceCode请求参数结构体
861
- */
862
- export interface ModifyTraceCodeRequest {
1270
+ Key?: string;
863
1271
  /**
864
- * 二维码
1272
+ * 小程序AppId
865
1273
  */
866
- Code: string;
1274
+ AppId?: string;
867
1275
  /**
868
- * 企业ID
1276
+ * 小程序AppPath
869
1277
  */
870
- CorpId?: number;
1278
+ AppPath?: string;
871
1279
  /**
872
- * 状态 0: 冻结 1: 激活
1280
+ * 小程序名称AppName
873
1281
  */
874
- Status?: number;
1282
+ AppName?: string;
875
1283
  }
876
1284
  /**
877
- * CreateProduct返回参数结构体
1285
+ * ModifyCustomRuleStatus返回参数结构体
878
1286
  */
879
- export interface CreateProductResponse {
1287
+ export interface ModifyCustomRuleStatusResponse {
880
1288
  /**
881
- * 商品ID
1289
+ * 码规则ID
882
1290
  注意:此字段可能返回 null,表示取不到有效值。
883
1291
  */
884
- ProductId: string;
1292
+ CustomId: string;
885
1293
  /**
886
1294
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
887
1295
  */
888
1296
  RequestId?: string;
889
1297
  }
890
1298
  /**
891
- * CreateTraceData返回参数结构体
1299
+ * CreateCustomPack返回参数结构体
892
1300
  */
893
- export interface CreateTraceDataResponse {
1301
+ export interface CreateCustomPackResponse {
894
1302
  /**
895
- * 溯源ID
1303
+ * 码包ID
896
1304
  */
897
- TraceId: string;
1305
+ PackId: string;
898
1306
  /**
899
1307
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
900
1308
  */
901
1309
  RequestId?: string;
902
1310
  }
903
1311
  /**
904
- * CreateTraceData请求参数结构体
1312
+ * ModifyMerchant请求参数结构体
905
1313
  */
906
- export interface CreateTraceDataRequest {
907
- /**
908
- * 企业ID
909
- */
910
- CorpId?: number;
911
- /**
912
- * 批次ID
913
- */
914
- BatchId?: string;
915
- /**
916
- * 任务ID
917
- */
918
- TaskId?: string;
1314
+ export interface ModifyMerchantRequest {
919
1315
  /**
920
- * 溯源阶段 0:商品 1:通用 2:内部溯源 3:外部溯源
1316
+ * 商户名称
921
1317
  */
922
- Phase?: number;
1318
+ Name: string;
923
1319
  /**
924
- * 溯源阶段名称
1320
+ * 商户标识码
925
1321
  */
926
- PhaseName?: string;
1322
+ MerchantId: string;
927
1323
  /**
928
- * [无效] 上链状态
1324
+ * 备注
929
1325
  */
930
- ChainStatus?: number;
1326
+ Remark?: string;
931
1327
  /**
932
- * [无效] 码类型 0: 批次, 1: 码, 2: 生产任务, 3: 物流信息
1328
+ * 企业ID
933
1329
  */
934
- Type?: number;
1330
+ CorpId?: number;
935
1331
  /**
936
- * [无效] 溯源ID
1332
+ * 码包来源 0:自建, 1:第三码包,暂不支持修改
937
1333
  */
938
- TraceId?: string;
1334
+ CodeType?: number;
939
1335
  /**
940
- * 溯源信息
1336
+ * 码包前缀地址 第三方码包时必填
941
1337
  */
942
- TraceItems?: Array<TraceItem>;
1338
+ CodeUrl?: string;
1339
+ }
1340
+ /**
1341
+ * DescribeTmpToken返回参数结构体
1342
+ */
1343
+ export interface DescribeTmpTokenResponse {
943
1344
  /**
944
- * 溯源状态 0: 无效, 1: 有效
1345
+ * 临时token
1346
+ 注意:此字段可能返回 null,表示取不到有效值。
945
1347
  */
946
- Status?: number;
1348
+ Token: string;
947
1349
  /**
948
- * 环节数据
1350
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
949
1351
  */
950
- PhaseData?: PhaseData;
1352
+ RequestId?: string;
951
1353
  }
952
1354
  /**
953
- * CreateMerchant请求参数结构体
1355
+ * DescribeCodePackUrl请求参数结构体
954
1356
  */
955
- export interface CreateMerchantRequest {
1357
+ export interface DescribeCodePackUrlRequest {
956
1358
  /**
957
- * 商户名称
1359
+ * 码包ID
958
1360
  */
959
- Name: string;
1361
+ PackId: string;
960
1362
  /**
961
- * 备注
1363
+ * 企业ID
962
1364
  */
963
- Remark?: string;
1365
+ CorpId?: number;
1366
+ }
1367
+ /**
1368
+ * ModifyTraceDataRanks请求参数结构体
1369
+ */
1370
+ export interface ModifyTraceDataRanksRequest {
964
1371
  /**
965
1372
  * 企业ID
966
1373
  */
967
1374
  CorpId?: number;
968
1375
  /**
969
- * 码包来源 0:自建, 1:第三发
1376
+ * 批次ID
970
1377
  */
971
- CodeType?: number;
1378
+ BatchId?: string;
972
1379
  /**
973
- * 码包前缀地址 第三方码包时必填
1380
+ * 生产任务ID
974
1381
  */
975
- CodeUrl?: string;
1382
+ TaskId?: string;
1383
+ /**
1384
+ * 溯源ID
1385
+ */
1386
+ TraceIds?: Array<string>;
976
1387
  }
977
1388
  /**
978
- * DescribeCodeBatchs返回参数结构体
1389
+ * DeleteTraceData返回参数结构体
979
1390
  */
980
- export interface DescribeCodeBatchsResponse {
981
- /**
982
- * 批次列表
983
- 注意:此字段可能返回 null,表示取不到有效值。
984
- */
985
- CodeBatchs: Array<CodeBatch>;
1391
+ export interface DeleteTraceDataResponse {
986
1392
  /**
987
- * 总条数
1393
+ * 溯源id
988
1394
  注意:此字段可能返回 null,表示取不到有效值。
989
1395
  */
990
- TotalCount: number;
1396
+ TraceId: string;
991
1397
  /**
992
1398
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
993
1399
  */
994
1400
  RequestId?: string;
995
1401
  }
996
1402
  /**
997
- * DescribeCodeBatchById请求参数结构体
1403
+ * ModifyCustomRuleStatus请求参数结构体
998
1404
  */
999
- export interface DescribeCodeBatchByIdRequest {
1405
+ export interface ModifyCustomRuleStatusRequest {
1000
1406
  /**
1001
- * 企业ID
1407
+ * 码规则ID
1002
1408
  */
1003
- CorpId?: number;
1409
+ CustomId: string;
1004
1410
  /**
1005
- * 批次ID
1411
+ * 码规则状态 0:未生效 1:已生效 -1:已失效
1006
1412
  */
1007
- BatchId?: string;
1413
+ Status: number;
1008
1414
  }
1009
1415
  /**
1010
- * DescribeTraceCodeById返回参数结构体
1416
+ * CreateCodePack返回参数结构体
1011
1417
  */
1012
- export interface DescribeTraceCodeByIdResponse {
1418
+ export interface CreateCodePackResponse {
1013
1419
  /**
1014
- *
1420
+ * 码包ID
1015
1421
  */
1016
- TraceCode: TraceCode;
1422
+ PackId: string;
1423
+ /**
1424
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1425
+ */
1426
+ RequestId?: string;
1427
+ }
1428
+ /**
1429
+ * DescribeMerchantById返回参数结构体
1430
+ */
1431
+ export interface DescribeMerchantByIdResponse {
1432
+ /**
1433
+ * 商户信息
1434
+ 注意:此字段可能返回 null,表示取不到有效值。
1435
+ */
1436
+ Merchant: Merchant;
1017
1437
  /**
1018
1438
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1019
1439
  */
1020
1440
  RequestId?: string;
1021
1441
  }
1022
1442
  /**
1023
- * DescribeCodePacks返回参数结构体
1443
+ * 码类型
1024
1444
  */
1025
- export interface DescribeCodePacksResponse {
1445
+ export interface CodeItem {
1026
1446
  /**
1027
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1447
+ *
1028
1448
  */
1029
- RequestId?: string;
1449
+ Code?: string;
1030
1450
  }
1031
1451
  /**
1032
- * 溯源数据
1452
+ * CreateTraceData返回参数结构体
1033
1453
  */
1034
- export interface TraceData {
1454
+ export interface CreateTraceDataResponse {
1035
1455
  /**
1036
1456
  * 溯源ID
1037
- 注意:此字段可能返回 null,表示取不到有效值。
1038
1457
  */
1039
1458
  TraceId: string;
1040
1459
  /**
1041
- * 企业ID
1042
- 注意:此字段可能返回 null,表示取不到有效值。
1043
- */
1044
- CorpId: number;
1045
- /**
1046
- * 0
1047
- 注意:此字段可能返回 null,表示取不到有效值。
1048
- */
1049
- Type: number;
1050
- /**
1051
- * 码
1052
- 注意:此字段可能返回 null,表示取不到有效值。
1053
- */
1054
- Code: string;
1055
- /**
1056
- * 排序
1057
- 注意:此字段可能返回 null,表示取不到有效值。
1058
- */
1059
- Rank: number;
1060
- /**
1061
- * 溯源阶段 0:商品 1:通用 2:物流
1062
- 注意:此字段可能返回 null,表示取不到有效值。
1063
- */
1064
- Phase: number;
1065
- /**
1066
- * 环节名称
1067
- 注意:此字段可能返回 null,表示取不到有效值。
1068
- */
1069
- PhaseName: string;
1070
- /**
1071
- * 时间
1072
- 注意:此字段可能返回 null,表示取不到有效值。
1460
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1073
1461
  */
1074
- TraceTime: string;
1462
+ RequestId?: string;
1463
+ }
1464
+ /**
1465
+ * DescribeCustomRuleById返回参数结构体
1466
+ */
1467
+ export interface DescribeCustomRuleByIdResponse {
1075
1468
  /**
1076
- *
1469
+ * 码规则信息
1077
1470
  注意:此字段可能返回 null,表示取不到有效值。
1078
1471
  */
1079
- TraceItems: Array<TraceItem>;
1472
+ CustomRule: CustomRule;
1080
1473
  /**
1081
- * 创建时间
1082
- 注意:此字段可能返回 null,表示取不到有效值。
1474
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1083
1475
  */
1084
- CreateTime: string;
1476
+ RequestId?: string;
1477
+ }
1478
+ /**
1479
+ * DescribeCodeBatchs返回参数结构体
1480
+ */
1481
+ export interface DescribeCodeBatchsResponse {
1085
1482
  /**
1086
- * 上链状态 0: 未上链 1: 上链中 2: 已上链 -1: 异常
1483
+ * 批次列表
1087
1484
  注意:此字段可能返回 null,表示取不到有效值。
1088
1485
  */
1089
- ChainStatus: number;
1486
+ CodeBatchs: Array<CodeBatch>;
1090
1487
  /**
1091
- * 上链时间
1488
+ * 总条数
1092
1489
  注意:此字段可能返回 null,表示取不到有效值。
1093
1490
  */
1094
- ChainTime: string;
1491
+ TotalCount: number;
1095
1492
  /**
1096
- *
1097
- 注意:此字段可能返回 null,表示取不到有效值。
1493
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1098
1494
  */
1099
- ChainData: ChainData;
1495
+ RequestId?: string;
1100
1496
  }
1101
1497
  /**
1102
- * DescribeProductById返回参数结构体
1498
+ * CreateCustomRule返回参数结构体
1103
1499
  */
1104
- export interface DescribeProductByIdResponse {
1500
+ export interface CreateCustomRuleResponse {
1105
1501
  /**
1106
- * 商品信息
1502
+ * 码规则ID
1107
1503
  注意:此字段可能返回 null,表示取不到有效值。
1108
1504
  */
1109
- Product: Product;
1505
+ CustomId: string;
1110
1506
  /**
1111
1507
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1112
1508
  */
1113
1509
  RequestId?: string;
1114
1510
  }
1115
1511
  /**
1116
- * 层级码配置
1512
+ * DescribeCodePacks返回参数结构体
1117
1513
  */
1118
- export interface PackSpec {
1119
- /**
1120
- * 层级
1121
- */
1122
- Level: number;
1514
+ export interface DescribeCodePacksResponse {
1123
1515
  /**
1124
- * 比例
1516
+ * 码列表
1517
+ 注意:此字段可能返回 null,表示取不到有效值。
1125
1518
  */
1126
- Rate: number;
1519
+ CodePacks: Array<CodePack>;
1127
1520
  /**
1128
- * 数量
1521
+ * 总数
1522
+ 注意:此字段可能返回 null,表示取不到有效值。
1129
1523
  */
1130
- Amount: number;
1524
+ TotalCount: number;
1131
1525
  /**
1132
- * 码规则ID
1133
- 注意:此字段可能返回 null,表示取不到有效值。
1526
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1134
1527
  */
1135
- CustomId?: string;
1528
+ RequestId?: string;
1136
1529
  }
1137
1530
  /**
1138
1531
  * DescribeCodesByPack请求参数结构体
@@ -1148,44 +1541,60 @@ export interface DescribeCodesByPackRequest {
1148
1541
  CorpId?: number;
1149
1542
  }
1150
1543
  /**
1151
- * DescribeCodePacks请求参数结构体
1544
+ * DescribeJobFileUrl请求参数结构体
1152
1545
  */
1153
- export interface DescribeCodePacksRequest {
1546
+ export interface DescribeJobFileUrlRequest {
1154
1547
  /**
1155
- * 每页数量
1548
+ * 调度ID
1156
1549
  */
1157
- PageSize?: number;
1550
+ JobId: number;
1158
1551
  /**
1159
- * 页数
1552
+ * 企业ID
1160
1553
  */
1161
- PageNumber?: number;
1554
+ CorpId?: number;
1555
+ }
1556
+ /**
1557
+ * CreateTraceCodesAsync返回参数结构体
1558
+ */
1559
+ export interface CreateTraceCodesAsyncResponse {
1162
1560
  /**
1163
- * 查询关键字
1561
+ * 批次ID
1562
+ 注意:此字段可能返回 null,表示取不到有效值。
1164
1563
  */
1165
- Keyword?: string;
1564
+ BatchId: string;
1166
1565
  /**
1167
- * 企业ID
1566
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1168
1567
  */
1169
- CorpId?: number;
1568
+ RequestId?: string;
1170
1569
  }
1171
1570
  /**
1172
- * DescribeProducts返回参数结构体
1571
+ * DescribeCustomRules请求参数结构体
1173
1572
  */
1174
- export interface DescribeProductsResponse {
1573
+ export interface DescribeCustomRulesRequest {
1175
1574
  /**
1176
- * 商品列表
1177
- 注意:此字段可能返回 null,表示取不到有效值。
1575
+ * 搜索关键字
1178
1576
  */
1179
- Products: Array<Product>;
1577
+ Keyword?: string;
1180
1578
  /**
1181
- * 总数
1182
- 注意:此字段可能返回 null,表示取不到有效值。
1579
+ * 条数
1183
1580
  */
1184
- TotalCount: number;
1581
+ PageSize?: number;
1185
1582
  /**
1186
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1583
+ * 页数
1187
1584
  */
1188
- RequestId?: string;
1585
+ PageNumber?: number;
1586
+ /**
1587
+ * 企业ID
1588
+ */
1589
+ CorpId?: number;
1590
+ /**
1591
+ * 码规则状态 0:未生效 1:已生效 -1:已失效
1592
+ */
1593
+ Status?: number;
1594
+ /**
1595
+ * 商户ID
1596
+ */
1597
+ MerchantId?: string;
1189
1598
  }
1190
1599
  /**
1191
1600
  * CreateProduct请求参数结构体
@@ -1225,117 +1634,146 @@ export interface CreateProductRequest {
1225
1634
  Ext?: Ext;
1226
1635
  }
1227
1636
  /**
1228
- * CreateTraceChain返回参数结构体
1637
+ * ModifyCodeBatch请求参数结构体
1229
1638
  */
1230
- export interface CreateTraceChainResponse {
1639
+ export interface ModifyCodeBatchRequest {
1231
1640
  /**
1232
- * 溯源ID
1641
+ * 批次ID
1233
1642
  */
1234
- TraceId: string;
1643
+ BatchId: string;
1235
1644
  /**
1236
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1645
+ * 企业ID
1237
1646
  */
1238
- RequestId?: string;
1647
+ CorpId?: number;
1648
+ /**
1649
+ * 状态 0: 未激活 1: 已激活 -1: 已冻结
1650
+ */
1651
+ Status?: number;
1652
+ /**
1653
+ * 模板ID
1654
+ */
1655
+ MpTpl?: string;
1656
+ /**
1657
+ * 商户ID
1658
+ */
1659
+ MerchantId?: string;
1660
+ /**
1661
+ * 商品ID
1662
+ */
1663
+ ProductId?: string;
1664
+ /**
1665
+ * 备注
1666
+ */
1667
+ Remark?: string;
1239
1668
  }
1240
1669
  /**
1241
- * DescribeTraceCodeById请求参数结构体
1670
+ * DescribeProductById请求参数结构体
1242
1671
  */
1243
- export interface DescribeTraceCodeByIdRequest {
1672
+ export interface DescribeProductByIdRequest {
1244
1673
  /**
1245
- * 企业ID
1674
+ * 商品ID
1246
1675
  */
1247
- CorpId?: number;
1676
+ ProductId: string;
1248
1677
  /**
1249
- * 二维码
1678
+ * 企业ID
1250
1679
  */
1251
- Code?: string;
1680
+ CorpId?: number;
1252
1681
  }
1253
1682
  /**
1254
- * CreateCodePack请求参数结构体
1683
+ * DescribeTraceCodes返回参数结构体
1255
1684
  */
1256
- export interface CreateCodePackRequest {
1257
- /**
1258
- * 商户ID
1259
- */
1260
- MerchantId: string;
1685
+ export interface DescribeTraceCodesResponse {
1261
1686
  /**
1262
- * 码长度
1687
+ * 标识列表
1688
+ 注意:此字段可能返回 null,表示取不到有效值。
1263
1689
  */
1264
- CodeLength: number;
1690
+ TraceCodes: Array<TraceCode>;
1265
1691
  /**
1266
- * 码类型 alphabet 字母, number 数字, mixin 混合
1692
+ * 条数
1693
+ 注意:此字段可能返回 null,表示取不到有效值。
1267
1694
  */
1268
- CodeType: string;
1695
+ TotalCount: number;
1269
1696
  /**
1270
- * 生码数量 普通码包时必填
1697
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1271
1698
  */
1272
- Amount?: number;
1699
+ RequestId?: string;
1700
+ }
1701
+ /**
1702
+ * CreateTraceCodes返回参数结构体
1703
+ */
1704
+ export interface CreateTraceCodesResponse {
1273
1705
  /**
1274
- * 企业ID
1706
+ * 批次ID
1275
1707
  */
1276
- CorpId?: number;
1708
+ BatchId: string;
1277
1709
  /**
1278
- * 码包类型 0: 普通码包 1: 层级码包
1710
+ * 导入成功码数量
1279
1711
  */
1280
- PackType?: number;
1712
+ ActiveCnt: number;
1281
1713
  /**
1282
- * 码包层级
1714
+ * 批次码数量
1283
1715
  */
1284
- PackLevel?: number;
1716
+ CodeCnt: number;
1285
1717
  /**
1286
- * 码包规格
1718
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1287
1719
  */
1288
- PackSpec?: Array<PackSpec>;
1720
+ RequestId?: string;
1289
1721
  }
1290
1722
  /**
1291
- * CreateCodeBatch请求参数结构体
1723
+ * DeleteTraceData请求参数结构体
1292
1724
  */
1293
- export interface CreateCodeBatchRequest {
1725
+ export interface DeleteTraceDataRequest {
1294
1726
  /**
1295
- * 企业ID
1727
+ * 溯源ID
1296
1728
  */
1297
- CorpId?: number;
1729
+ TraceId: string;
1298
1730
  /**
1299
- * 商户ID
1731
+ * 企业ID
1300
1732
  */
1301
- MerchantId?: string;
1733
+ CorpId?: number;
1734
+ }
1735
+ /**
1736
+ * 商户信息
1737
+ */
1738
+ export interface Merchant {
1302
1739
  /**
1303
- * 产品ID
1740
+ * 商户标识码
1304
1741
  */
1305
- ProductId?: string;
1742
+ MerchantId: string;
1306
1743
  /**
1307
- * 批次类型 0:溯源 1:营销
1744
+ * 企业id
1308
1745
  */
1309
- BatchType?: number;
1746
+ CorpId: number;
1310
1747
  /**
1311
- * 批次ID,系统自动生成
1748
+ * 商户名称
1312
1749
  */
1313
- BatchId?: string;
1750
+ Name: string;
1314
1751
  /**
1315
1752
  * 备注
1753
+ 注意:此字段可能返回 null,表示取不到有效值。
1316
1754
  */
1317
- Remark?: string;
1755
+ Remark: string;
1318
1756
  /**
1319
- * 活动ID
1757
+ * 创建时间
1320
1758
  */
1321
- MpTpl?: string;
1759
+ CreateTime: string;
1322
1760
  /**
1323
- * 克隆批次ID
1761
+ * 更新时间
1324
1762
  */
1325
- CloneId?: string;
1326
- }
1327
- /**
1328
- * ModifyCodeBatch返回参数结构体
1329
- */
1330
- export interface ModifyCodeBatchResponse {
1763
+ UpdateTime: string;
1331
1764
  /**
1332
- * 批次ID
1765
+ * 商户码规则
1333
1766
  */
1334
- BatchId: string;
1767
+ CodeRule: string;
1335
1768
  /**
1336
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1769
+ * 码来源类型 0: 安心平台 1: 第三方码
1337
1770
  */
1338
- RequestId?: string;
1771
+ CodeType: number;
1772
+ /**
1773
+ * 第三方码域名前缀
1774
+ 注意:此字段可能返回 null,表示取不到有效值。
1775
+ */
1776
+ CodeUrl: string;
1339
1777
  }
1340
1778
  /**
1341
1779
  * 商品信息
@@ -1395,25 +1833,9 @@ export interface Product {
1395
1833
  MerchantName: string;
1396
1834
  }
1397
1835
  /**
1398
- * DescribeTraceCodes请求参数结构体
1836
+ * DescribeTmpToken请求参数结构体
1399
1837
  */
1400
- export interface DescribeTraceCodesRequest {
1401
- /**
1402
- * 搜索关键字 码标识,或者批次ID
1403
- */
1404
- Keyword?: string;
1405
- /**
1406
- * 条数
1407
- */
1408
- PageNumber?: number;
1409
- /**
1410
- * 页码
1411
- */
1412
- PageSize?: number;
1413
- /**
1414
- * 批次ID,弃用
1415
- */
1416
- BatchId?: string;
1838
+ export interface DescribeTmpTokenRequest {
1417
1839
  /**
1418
1840
  * 企业ID
1419
1841
  */
@@ -1469,62 +1891,185 @@ export interface TraceCode {
1469
1891
  ProductName: string;
1470
1892
  }
1471
1893
  /**
1472
- * ModifyTraceCode返回参数结构体
1894
+ * CreateMerchant返回参数结构体
1473
1895
  */
1474
- export interface ModifyTraceCodeResponse {
1896
+ export interface CreateMerchantResponse {
1897
+ /**
1898
+ * 商户标识码
1899
+ 注意:此字段可能返回 null,表示取不到有效值。
1900
+ */
1901
+ MerchantId: string;
1475
1902
  /**
1476
1903
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1477
1904
  */
1478
1905
  RequestId?: string;
1479
1906
  }
1480
1907
  /**
1481
- * 上链数据
1908
+ * DescribeMerchants返回参数结构体
1482
1909
  */
1483
- export interface ChainData {
1910
+ export interface DescribeMerchantsResponse {
1484
1911
  /**
1485
- * 区块hash
1912
+ * 商户列表
1486
1913
  注意:此字段可能返回 null,表示取不到有效值。
1487
1914
  */
1488
- BlockHash: string;
1915
+ Merchants: Array<Merchant>;
1489
1916
  /**
1490
- * 区块高度
1917
+ * 总数
1491
1918
  注意:此字段可能返回 null,表示取不到有效值。
1492
1919
  */
1493
- BlockHeight: string;
1920
+ TotalCount: number;
1494
1921
  /**
1495
- * 区块时间
1922
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1923
+ */
1924
+ RequestId?: string;
1925
+ }
1926
+ /**
1927
+ * DescribeTraceDataList请求参数结构体
1928
+ */
1929
+ export interface DescribeTraceDataListRequest {
1930
+ /**
1931
+ * 企业ID
1932
+ */
1933
+ CorpId?: number;
1934
+ /**
1935
+ * 批次ID
1936
+ */
1937
+ BatchId?: string;
1938
+ /**
1939
+ * 任务ID 用于外部溯源
1940
+ */
1941
+ TaskId?: string;
1942
+ /**
1943
+ * 页数
1944
+ */
1945
+ PageNumber?: number;
1946
+ /**
1947
+ * 二维码
1948
+ */
1949
+ Code?: string;
1950
+ /**
1951
+ * 溯源阶段 0:商品 1:通用 2:内部溯源 3:外部溯源
1952
+ */
1953
+ Phase?: number;
1954
+ /**
1955
+ * 数量
1956
+ */
1957
+ PageSize?: number;
1958
+ }
1959
+ /**
1960
+ * DeleteMerchant返回参数结构体
1961
+ */
1962
+ export interface DeleteMerchantResponse {
1963
+ /**
1964
+ * 商户标识码
1496
1965
  注意:此字段可能返回 null,表示取不到有效值。
1497
1966
  */
1498
- BlockTime: string;
1967
+ MerchantId: string;
1968
+ /**
1969
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1970
+ */
1971
+ RequestId?: string;
1499
1972
  }
1500
1973
  /**
1501
- * 环节数据
1974
+ * DeleteCodeBatch返回参数结构体
1502
1975
  */
1503
- export interface PhaseData {
1976
+ export interface DeleteCodeBatchResponse {
1504
1977
  /**
1505
- * 启用头
1978
+ * 批次ID
1506
1979
  */
1507
- HeadEnabled?: boolean;
1980
+ BatchId: string;
1508
1981
  /**
1509
- * 标题
1982
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1510
1983
  */
1511
- HeadTitle?: string;
1984
+ RequestId?: string;
1985
+ }
1986
+ /**
1987
+ * CreateTraceChain请求参数结构体
1988
+ */
1989
+ export interface CreateTraceChainRequest {
1512
1990
  /**
1513
- * 标识符
1991
+ * 企业ID
1514
1992
  */
1515
- Key?: string;
1993
+ CorpId?: number;
1516
1994
  /**
1517
- * 小程序AppId
1995
+ * 溯源ID
1518
1996
  */
1519
- AppId?: string;
1997
+ TraceId?: string;
1998
+ }
1999
+ /**
2000
+ * DescribeMerchantById请求参数结构体
2001
+ */
2002
+ export interface DescribeMerchantByIdRequest {
1520
2003
  /**
1521
- * 小程序AppPath
2004
+ * 商户标识码
1522
2005
  */
1523
- AppPath?: string;
2006
+ MerchantId: string;
1524
2007
  /**
1525
- * 小程序名称AppName
2008
+ * 企业ID
1526
2009
  */
1527
- AppName?: string;
2010
+ CorpId?: number;
2011
+ }
2012
+ /**
2013
+ * DescribeProductById返回参数结构体
2014
+ */
2015
+ export interface DescribeProductByIdResponse {
2016
+ /**
2017
+ * 商品信息
2018
+ 注意:此字段可能返回 null,表示取不到有效值。
2019
+ */
2020
+ Product: Product;
2021
+ /**
2022
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2023
+ */
2024
+ RequestId?: string;
2025
+ }
2026
+ /**
2027
+ * DescribeCodePacks请求参数结构体
2028
+ */
2029
+ export interface DescribeCodePacksRequest {
2030
+ /**
2031
+ * 每页数量
2032
+ */
2033
+ PageSize?: number;
2034
+ /**
2035
+ * 页数
2036
+ */
2037
+ PageNumber?: number;
2038
+ /**
2039
+ * 查询关键字
2040
+ */
2041
+ Keyword?: string;
2042
+ /**
2043
+ * 企业ID
2044
+ */
2045
+ CorpId?: number;
2046
+ }
2047
+ /**
2048
+ * DescribeJobFileUrl返回参数结构体
2049
+ */
2050
+ export interface DescribeJobFileUrlResponse {
2051
+ /**
2052
+ * 码包地址
2053
+ 注意:此字段可能返回 null,表示取不到有效值。
2054
+ */
2055
+ Url: string;
2056
+ /**
2057
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2058
+ */
2059
+ RequestId?: string;
2060
+ }
2061
+ /**
2062
+ * DescribeTraceCodeById请求参数结构体
2063
+ */
2064
+ export interface DescribeTraceCodeByIdRequest {
2065
+ /**
2066
+ * 企业ID
2067
+ */
2068
+ CorpId?: number;
2069
+ /**
2070
+ * 二维码
2071
+ */
2072
+ Code?: string;
1528
2073
  }
1529
2074
  /**
1530
2075
  * DeleteMerchant请求参数结构体
@@ -1540,13 +2085,46 @@ export interface DeleteMerchantRequest {
1540
2085
  CorpId?: number;
1541
2086
  }
1542
2087
  /**
1543
- * ModifyTraceData返回参数结构体
2088
+ * ModifyTraceCode返回参数结构体
1544
2089
  */
1545
- export interface ModifyTraceDataResponse {
2090
+ export interface ModifyTraceCodeResponse {
1546
2091
  /**
1547
- * 溯源ID
2092
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1548
2093
  */
1549
- TraceId: string;
2094
+ RequestId?: string;
2095
+ }
2096
+ /**
2097
+ * DescribeCodePackUrl返回参数结构体
2098
+ */
2099
+ export interface DescribeCodePackUrlResponse {
2100
+ /**
2101
+ * 文字码包地址
2102
+ 注意:此字段可能返回 null,表示取不到有效值。
2103
+ */
2104
+ Url: string;
2105
+ /**
2106
+ * 图片码包地址,可能为空
2107
+ 注意:此字段可能返回 null,表示取不到有效值。
2108
+ */
2109
+ ImgUrl: string;
2110
+ /**
2111
+ * 文字码包Key,用于上传导入
2112
+ 注意:此字段可能返回 null,表示取不到有效值。
2113
+ */
2114
+ FileKey: string;
2115
+ /**
2116
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2117
+ */
2118
+ RequestId?: string;
2119
+ }
2120
+ /**
2121
+ * ModifyCodeBatch返回参数结构体
2122
+ */
2123
+ export interface ModifyCodeBatchResponse {
2124
+ /**
2125
+ * 批次ID
2126
+ */
2127
+ BatchId: string;
1550
2128
  /**
1551
2129
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1552
2130
  */