tencentcloud-sdk-nodejs 4.0.553 → 4.0.555
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/CHANGELOG.md +395 -0
- package/SERVICE_CHANGELOG.md +487 -198
- package/package.json +1 -1
- package/products.md +57 -58
- package/src/common/sdk_version.ts +1 -1
- package/src/services/as/v20180419/as_client.ts +0 -1
- package/src/services/bpaas/v20181217/bpaas_models.ts +6 -0
- package/src/services/ccc/v20200210/ccc_models.ts +5 -5
- package/src/services/clb/v20180317/clb_models.ts +13 -1
- package/src/services/cls/v20201016/cls_models.ts +7 -0
- package/src/services/cvm/v20170312/cvm_client.ts +21 -3
- package/src/services/cvm/v20170312/cvm_models.ts +333 -21
- package/src/services/cwp/v20180228/cwp_models.ts +5 -0
- package/src/services/essbasic/v20210526/essbasic_client.ts +29 -1
- package/src/services/essbasic/v20210526/essbasic_models.ts +293 -9
- package/src/services/gaap/v20180529/gaap_models.ts +1 -1
- package/src/services/index.ts +0 -1
- package/src/services/monitor/v20180724/monitor_models.ts +27 -2
- package/src/services/mps/v20190612/mps_client.ts +22 -6
- package/src/services/mps/v20190612/mps_models.ts +324 -128
- package/src/services/oceanus/v20190422/oceanus_client.ts +1 -0
- package/src/services/oceanus/v20190422/oceanus_models.ts +68 -15
- package/src/services/tcbr/v20220217/tcbr_models.ts +7 -2
- package/src/services/tdmq/v20200217/tdmq_client.ts +76 -38
- package/src/services/tke/v20180525/tke_models.ts +19 -19
- package/src/services/trtc/v20190722/trtc_client.ts +1 -0
- package/src/services/trtc/v20190722/trtc_models.ts +55 -1
- package/src/services/vod/v20180717/vod_models.ts +4 -4
- package/src/services/vpc/v20170312/vpc_models.ts +1 -1
- package/src/services/wedata/v20210820/wedata_client.ts +1 -0
- package/src/services/wedata/v20210820/wedata_models.ts +111 -22
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/as/v20180419/as_client.d.ts +0 -1
- package/tencentcloud/services/as/v20180419/as_client.js +0 -1
- package/tencentcloud/services/bpaas/v20181217/bpaas_models.d.ts +5 -0
- package/tencentcloud/services/ccc/v20200210/ccc_models.d.ts +4 -4
- package/tencentcloud/services/clb/v20180317/clb_models.d.ts +11 -1
- package/tencentcloud/services/cls/v20201016/cls_models.d.ts +6 -0
- package/tencentcloud/services/cvm/v20170312/cvm_client.d.ts +10 -1
- package/tencentcloud/services/cvm/v20170312/cvm_client.js +11 -0
- package/tencentcloud/services/cvm/v20170312/cvm_models.d.ts +291 -19
- package/tencentcloud/services/cwp/v20180228/cwp_models.d.ts +4 -0
- package/tencentcloud/services/essbasic/v20210526/essbasic_client.d.ts +9 -1
- package/tencentcloud/services/essbasic/v20210526/essbasic_client.js +12 -0
- package/tencentcloud/services/essbasic/v20210526/essbasic_models.d.ts +249 -9
- package/tencentcloud/services/gaap/v20180529/gaap_models.d.ts +1 -1
- package/tencentcloud/services/index.d.ts +0 -1
- package/tencentcloud/services/index.js +0 -2
- package/tencentcloud/services/monitor/v20180724/monitor_models.d.ts +24 -2
- package/tencentcloud/services/mps/v20190612/mps_client.d.ts +5 -1
- package/tencentcloud/services/mps/v20190612/mps_client.js +6 -0
- package/tencentcloud/services/mps/v20190612/mps_models.d.ts +278 -111
- package/tencentcloud/services/oceanus/v20190422/oceanus_models.d.ts +60 -15
- package/tencentcloud/services/tcbr/v20220217/tcbr_models.d.ts +6 -2
- package/tencentcloud/services/tdmq/v20200217/tdmq_client.d.ts +57 -19
- package/tencentcloud/services/tdmq/v20200217/tdmq_client.js +57 -19
- package/tencentcloud/services/tke/v20180525/tke_models.d.ts +19 -19
- package/tencentcloud/services/trtc/v20190722/trtc_models.d.ts +46 -1
- package/tencentcloud/services/vod/v20180717/vod_models.d.ts +4 -4
- package/tencentcloud/services/vpc/v20170312/vpc_models.d.ts +1 -1
- package/tencentcloud/services/wedata/v20210820/wedata_models.d.ts +93 -18
- package/test/cvm.v20170312.test.js +10 -0
- package/test/essbasic.v20210526.test.js +20 -0
- package/test/mps.v20190612.test.js +10 -0
- package/src/services/intlpartnersmgt/index.ts +0 -5
- package/src/services/intlpartnersmgt/v20220928/index.ts +0 -6
- package/src/services/intlpartnersmgt/v20220928/intlpartnersmgt_client.ts +0 -178
- package/src/services/intlpartnersmgt/v20220928/intlpartnersmgt_models.ts +0 -608
- package/tencentcloud/services/intlpartnersmgt/index.d.ts +0 -6
- package/tencentcloud/services/intlpartnersmgt/index.js +0 -7
- package/tencentcloud/services/intlpartnersmgt/v20220928/index.d.ts +0 -6
- package/tencentcloud/services/intlpartnersmgt/v20220928/index.js +0 -9
- package/tencentcloud/services/intlpartnersmgt/v20220928/intlpartnersmgt_client.d.ts +0 -62
- package/tencentcloud/services/intlpartnersmgt/v20220928/intlpartnersmgt_client.js +0 -105
- package/tencentcloud/services/intlpartnersmgt/v20220928/intlpartnersmgt_models.d.ts +0 -500
- package/tencentcloud/services/intlpartnersmgt/v20220928/intlpartnersmgt_models.js +0 -18
- package/test/intlpartnersmgt.v20220928.test.js +0 -131
|
@@ -2546,6 +2546,46 @@ export interface UpdatePublishCdnStreamResponse {
|
|
|
2546
2546
|
*/
|
|
2547
2547
|
RequestId?: string;
|
|
2548
2548
|
}
|
|
2549
|
+
/**
|
|
2550
|
+
* 文字水印参数。
|
|
2551
|
+
*/
|
|
2552
|
+
export interface McuWaterMarkText {
|
|
2553
|
+
/**
|
|
2554
|
+
* 文字水印内容。
|
|
2555
|
+
*/
|
|
2556
|
+
Text: string;
|
|
2557
|
+
/**
|
|
2558
|
+
* 水印在输出时的宽。单位为像素值。
|
|
2559
|
+
*/
|
|
2560
|
+
WaterMarkWidth: number;
|
|
2561
|
+
/**
|
|
2562
|
+
* 水印在输出时的高。单位为像素值。
|
|
2563
|
+
*/
|
|
2564
|
+
WaterMarkHeight: number;
|
|
2565
|
+
/**
|
|
2566
|
+
* 水印在输出时的X偏移。单位为像素值。
|
|
2567
|
+
*/
|
|
2568
|
+
LocationX: number;
|
|
2569
|
+
/**
|
|
2570
|
+
* 水印在输出时的Y偏移。单位为像素值。
|
|
2571
|
+
*/
|
|
2572
|
+
LocationY: number;
|
|
2573
|
+
/**
|
|
2574
|
+
* 字体大小
|
|
2575
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2576
|
+
*/
|
|
2577
|
+
FontSize: number;
|
|
2578
|
+
/**
|
|
2579
|
+
* 字体颜色,默认为白色。常用的颜色有: 红色:0xcc0033。 黄色:0xcc9900。 绿色:0xcccc33。 蓝色:0x99CCFF。 黑色:0x000000。 白色:0xFFFFFF。 灰色:0x999999。
|
|
2580
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2581
|
+
*/
|
|
2582
|
+
FontColor?: string;
|
|
2583
|
+
/**
|
|
2584
|
+
* 字体背景色,不配置默认为透明。常用的颜色有: 红色:0xcc0033。 黄色:0xcc9900。 绿色:0xcccc33。 蓝色:0x99CCFF。 黑色:0x000000。 白色:0xFFFFFF。 灰色:0x999999。
|
|
2585
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2586
|
+
*/
|
|
2587
|
+
BackGroundColor?: string;
|
|
2588
|
+
}
|
|
2549
2589
|
/**
|
|
2550
2590
|
* RemoveUserByStrRoomId请求参数结构体
|
|
2551
2591
|
*/
|
|
@@ -2762,13 +2802,18 @@ export interface PublishCdnParams {
|
|
|
2762
2802
|
*/
|
|
2763
2803
|
export interface McuWaterMarkParams {
|
|
2764
2804
|
/**
|
|
2765
|
-
* 水印类型,0
|
|
2805
|
+
* 水印类型,0为图片(默认),1为文字。
|
|
2766
2806
|
*/
|
|
2767
2807
|
WaterMarkType?: number;
|
|
2768
2808
|
/**
|
|
2769
2809
|
* 图片水印参数。WaterMarkType为0指定。
|
|
2770
2810
|
*/
|
|
2771
2811
|
WaterMarkImage?: McuWaterMarkImage;
|
|
2812
|
+
/**
|
|
2813
|
+
* 文字水印参数。WaterMarkType为1指定。
|
|
2814
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2815
|
+
*/
|
|
2816
|
+
WaterMarkText?: McuWaterMarkText;
|
|
2772
2817
|
}
|
|
2773
2818
|
/**
|
|
2774
2819
|
* 用户的异常体验及可能的原因
|
|
@@ -4651,19 +4651,19 @@ export interface SimpleHlsClipResponse {
|
|
|
4651
4651
|
/**
|
|
4652
4652
|
* 裁剪后的视频地址。
|
|
4653
4653
|
*/
|
|
4654
|
-
Url
|
|
4654
|
+
Url?: string;
|
|
4655
4655
|
/**
|
|
4656
4656
|
* 裁剪后的视频元信息。目前`Size`,`Rotate`,`VideoDuration`,`AudioDuration` 几个字段暂时缺省,没有真实数据。
|
|
4657
4657
|
*/
|
|
4658
|
-
MetaData
|
|
4658
|
+
MetaData?: MediaMetaData;
|
|
4659
4659
|
/**
|
|
4660
4660
|
* 剪辑固化后的视频的媒体文件的唯一标识。
|
|
4661
4661
|
*/
|
|
4662
|
-
FileId
|
|
4662
|
+
FileId?: string;
|
|
4663
4663
|
/**
|
|
4664
4664
|
* 剪辑固化后的视频任务流 ID。
|
|
4665
4665
|
*/
|
|
4666
|
-
TaskId
|
|
4666
|
+
TaskId?: string;
|
|
4667
4667
|
/**
|
|
4668
4668
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
4669
4669
|
*/
|
|
@@ -1152,7 +1152,7 @@ export interface DescribeFlowLogsRequest {
|
|
|
1152
1152
|
*/
|
|
1153
1153
|
Limit?: number;
|
|
1154
1154
|
/**
|
|
1155
|
-
* 过滤条件,参数不支持同时指定
|
|
1155
|
+
* 过滤条件,参数不支持同时指定FlowLogId和Filters。
|
|
1156
1156
|
<li>tag-key - String -是否必填:否- (过滤条件)按照标签键进行过滤。</li>
|
|
1157
1157
|
<li>tag:tag-key - String - 是否必填:否 - (过滤条件)按照标签键值对进行过滤。 tag-key使用具体的标签键进行替换。</li>
|
|
1158
1158
|
*/
|
|
@@ -952,10 +952,6 @@ export interface AlarmEventInfo {
|
|
|
952
952
|
* 告警级别,0表示普通,1表示重要,2表示紧急
|
|
953
953
|
*/
|
|
954
954
|
AlarmLevel: number;
|
|
955
|
-
/**
|
|
956
|
-
* 告警指标,0表示任务失败,1表示任务运行超时,2表示任务停止,3表示任务暂停
|
|
957
|
-
*/
|
|
958
|
-
AlarmIndicator: number;
|
|
959
955
|
/**
|
|
960
956
|
* 告警方式,多个用逗号隔开(1:邮件,2:短信,3:微信,4:语音,5:代表企业微信,6:http)
|
|
961
957
|
*/
|
|
@@ -968,6 +964,10 @@ export interface AlarmEventInfo {
|
|
|
968
964
|
* 项目ID
|
|
969
965
|
*/
|
|
970
966
|
ProjectId: string;
|
|
967
|
+
/**
|
|
968
|
+
* 告警指标,0表示任务失败,1表示任务运行超时,2表示任务停止,3表示任务暂停
|
|
969
|
+
*/
|
|
970
|
+
AlarmIndicator?: number;
|
|
971
971
|
/**
|
|
972
972
|
* 告警指标描述
|
|
973
973
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
@@ -3577,6 +3577,16 @@ export interface IntegrationTaskInfo {
|
|
|
3577
3577
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
3578
3578
|
*/
|
|
3579
3579
|
InLongManagerVersion?: string;
|
|
3580
|
+
/**
|
|
3581
|
+
* dataproxy url
|
|
3582
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
3583
|
+
*/
|
|
3584
|
+
DataProxyUrl?: Array<string>;
|
|
3585
|
+
/**
|
|
3586
|
+
* 任务版本是否已提交运维
|
|
3587
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
3588
|
+
*/
|
|
3589
|
+
Submit?: boolean;
|
|
3580
3590
|
}
|
|
3581
3591
|
/**
|
|
3582
3592
|
* SubmitTask返回参数结构体
|
|
@@ -4614,28 +4624,14 @@ export interface TaskAlarmInfo {
|
|
|
4614
4624
|
* 告警级别(0表示普通,1表示重要,2表示紧急)
|
|
4615
4625
|
*/
|
|
4616
4626
|
AlarmLevel: number;
|
|
4617
|
-
/**
|
|
4618
|
-
* 告警指标,0表示任务失败,1表示任务运行超时,2表示任务停止,3表示任务暂停
|
|
4619
|
-
,4写入速度,5读取速度,6读取吞吐,7写入吞吐, 8脏数据字节数,9脏数据条数
|
|
4620
|
-
*/
|
|
4621
|
-
AlarmIndicator: number;
|
|
4622
4627
|
/**
|
|
4623
4628
|
* 告警方式,多个用逗号隔开(1:邮件,2:短信,3:微信,4:语音,5:代表企业微信,6:http)
|
|
4624
4629
|
*/
|
|
4625
4630
|
AlarmWay: string;
|
|
4626
|
-
/**
|
|
4627
|
-
* 告警接收人ID,多个用逗号隔开
|
|
4628
|
-
*/
|
|
4629
|
-
AlarmRecipientId: string;
|
|
4630
4631
|
/**
|
|
4631
4632
|
* 任务类型(201表示实时,202表示离线)
|
|
4632
4633
|
*/
|
|
4633
4634
|
TaskType: number;
|
|
4634
|
-
/**
|
|
4635
|
-
* 告警接收人昵称,多个用逗号隔开
|
|
4636
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
4637
|
-
*/
|
|
4638
|
-
AlarmRecipientName: string;
|
|
4639
4635
|
/**
|
|
4640
4636
|
* 主键ID
|
|
4641
4637
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
@@ -4645,6 +4641,11 @@ export interface TaskAlarmInfo {
|
|
|
4645
4641
|
* 规则ID
|
|
4646
4642
|
*/
|
|
4647
4643
|
RegularId?: string;
|
|
4644
|
+
/**
|
|
4645
|
+
* 告警指标,0表示任务失败,1表示任务运行超时,2表示任务停止,3表示任务暂停
|
|
4646
|
+
,4写入速度,5读取速度,6读取吞吐,7写入吞吐, 8脏数据字节数,9脏数据条数
|
|
4647
|
+
*/
|
|
4648
|
+
AlarmIndicator?: number;
|
|
4648
4649
|
/**
|
|
4649
4650
|
* 指标阈值(1表示离线任务第一次运行失败,2表示离线任务所有重试完成后失败)
|
|
4650
4651
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
@@ -4655,6 +4656,10 @@ export interface TaskAlarmInfo {
|
|
|
4655
4656
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
4656
4657
|
*/
|
|
4657
4658
|
EstimatedTime?: number;
|
|
4659
|
+
/**
|
|
4660
|
+
* 告警接收人ID,多个用逗号隔开
|
|
4661
|
+
*/
|
|
4662
|
+
AlarmRecipientId?: string;
|
|
4658
4663
|
/**
|
|
4659
4664
|
* 项目ID
|
|
4660
4665
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
@@ -4665,6 +4670,11 @@ export interface TaskAlarmInfo {
|
|
|
4665
4670
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
4666
4671
|
*/
|
|
4667
4672
|
Creater?: string;
|
|
4673
|
+
/**
|
|
4674
|
+
* 告警接收人昵称,多个用逗号隔开
|
|
4675
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4676
|
+
*/
|
|
4677
|
+
AlarmRecipientName?: string;
|
|
4668
4678
|
/**
|
|
4669
4679
|
* 告警指标描述
|
|
4670
4680
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
@@ -4685,6 +4695,21 @@ export interface TaskAlarmInfo {
|
|
|
4685
4695
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
4686
4696
|
*/
|
|
4687
4697
|
NodeName?: string;
|
|
4698
|
+
/**
|
|
4699
|
+
* 指标列表
|
|
4700
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4701
|
+
*/
|
|
4702
|
+
AlarmIndicatorInfos?: Array<AlarmIndicatorInfo>;
|
|
4703
|
+
/**
|
|
4704
|
+
* 告警接收人类型,0指定人员;1任务责任人
|
|
4705
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4706
|
+
*/
|
|
4707
|
+
AlarmRecipientType?: number;
|
|
4708
|
+
/**
|
|
4709
|
+
* 企业微信群Hook地址,多个hook地址使用,隔开
|
|
4710
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4711
|
+
*/
|
|
4712
|
+
WeComHook?: string;
|
|
4688
4713
|
}
|
|
4689
4714
|
/**
|
|
4690
4715
|
* DescribeClusterNamespaceList请求参数结构体
|
|
@@ -4735,6 +4760,11 @@ export interface AlarmReceiverInfo {
|
|
|
4735
4760
|
* http,0:未设置,1:成功,2:失败
|
|
4736
4761
|
*/
|
|
4737
4762
|
Http: number;
|
|
4763
|
+
/**
|
|
4764
|
+
* 企业微信群,0:未设置,1:成功,2:失败
|
|
4765
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4766
|
+
*/
|
|
4767
|
+
WecomGroup?: number;
|
|
4738
4768
|
}
|
|
4739
4769
|
/**
|
|
4740
4770
|
* Spark SQL配置参数
|
|
@@ -5462,6 +5492,16 @@ export interface TableInfo {
|
|
|
5462
5492
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
5463
5493
|
*/
|
|
5464
5494
|
TableName: string;
|
|
5495
|
+
/**
|
|
5496
|
+
* 表databaseName
|
|
5497
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
5498
|
+
*/
|
|
5499
|
+
OriginDatabaseName: string;
|
|
5500
|
+
/**
|
|
5501
|
+
* 表schemaName
|
|
5502
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
5503
|
+
*/
|
|
5504
|
+
OriginSchemaName: string;
|
|
5465
5505
|
}
|
|
5466
5506
|
/**
|
|
5467
5507
|
* DescribeProject请求参数结构体
|
|
@@ -8497,6 +8537,41 @@ export interface DescribeRuleTemplatesRequest {
|
|
|
8497
8537
|
*/
|
|
8498
8538
|
SourceEngineTypes?: Array<number>;
|
|
8499
8539
|
}
|
|
8540
|
+
/**
|
|
8541
|
+
* 告警指标
|
|
8542
|
+
*/
|
|
8543
|
+
export interface AlarmIndicatorInfo {
|
|
8544
|
+
/**
|
|
8545
|
+
* 指标id
|
|
8546
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
8547
|
+
*/
|
|
8548
|
+
Id?: string;
|
|
8549
|
+
/**
|
|
8550
|
+
* 告警指标,0表示任务失败,1表示任务运行超时,2表示任务停止,3表示任务暂停
|
|
8551
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
8552
|
+
*/
|
|
8553
|
+
AlarmIndicator?: number;
|
|
8554
|
+
/**
|
|
8555
|
+
* 告警指标描述
|
|
8556
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
8557
|
+
*/
|
|
8558
|
+
AlarmIndicatorDesc?: string;
|
|
8559
|
+
/**
|
|
8560
|
+
* 指标阈值,1表示离线任务第一次运行失败,2表示离线任务所有重试完成后失败
|
|
8561
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
8562
|
+
*/
|
|
8563
|
+
TriggerType?: number;
|
|
8564
|
+
/**
|
|
8565
|
+
* 预计的超时时间,分钟级别
|
|
8566
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
8567
|
+
*/
|
|
8568
|
+
EstimatedTime?: number;
|
|
8569
|
+
/**
|
|
8570
|
+
* 实时任务告警需要的参数
|
|
8571
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
8572
|
+
*/
|
|
8573
|
+
Operator?: number;
|
|
8574
|
+
}
|
|
8500
8575
|
/**
|
|
8501
8576
|
* RegisterEvent返回参数结构体
|
|
8502
8577
|
*/
|
|
@@ -608,6 +608,16 @@ it("cvm.v20170312.DescribeKeyPairs", async function () {
|
|
|
608
608
|
}
|
|
609
609
|
})
|
|
610
610
|
|
|
611
|
+
it("cvm.v20170312.DescribeTaskInfo", async function () {
|
|
612
|
+
try {
|
|
613
|
+
const data = await client.DescribeTaskInfo({})
|
|
614
|
+
expect(data).to.be.ok
|
|
615
|
+
} catch(error) {
|
|
616
|
+
expect(error.requestId).to.be.ok
|
|
617
|
+
expect(error.code).to.be.ok
|
|
618
|
+
}
|
|
619
|
+
})
|
|
620
|
+
|
|
611
621
|
it("cvm.v20170312.DescribeReservedInstancesOfferings", async function () {
|
|
612
622
|
try {
|
|
613
623
|
const data = await client.DescribeReservedInstancesOfferings({})
|
|
@@ -178,6 +178,16 @@ it("essbasic.v20210526.ChannelCreateBoundFlows", async function () {
|
|
|
178
178
|
}
|
|
179
179
|
})
|
|
180
180
|
|
|
181
|
+
it("essbasic.v20210526.ChannelCreatePrepareFlow", async function () {
|
|
182
|
+
try {
|
|
183
|
+
const data = await client.ChannelCreatePrepareFlow({})
|
|
184
|
+
expect(data).to.be.ok
|
|
185
|
+
} catch(error) {
|
|
186
|
+
expect(error.requestId).to.be.ok
|
|
187
|
+
expect(error.code).to.be.ok
|
|
188
|
+
}
|
|
189
|
+
})
|
|
190
|
+
|
|
181
191
|
it("essbasic.v20210526.ChannelCreateBatchCancelFlowUrl", async function () {
|
|
182
192
|
try {
|
|
183
193
|
const data = await client.ChannelCreateBatchCancelFlowUrl({})
|
|
@@ -388,6 +398,16 @@ it("essbasic.v20210526.ChannelCreateFlowGroupByFiles", async function () {
|
|
|
388
398
|
}
|
|
389
399
|
})
|
|
390
400
|
|
|
401
|
+
it("essbasic.v20210526.ChannelCreateEmbedWebUrl", async function () {
|
|
402
|
+
try {
|
|
403
|
+
const data = await client.ChannelCreateEmbedWebUrl({})
|
|
404
|
+
expect(data).to.be.ok
|
|
405
|
+
} catch(error) {
|
|
406
|
+
expect(error.requestId).to.be.ok
|
|
407
|
+
expect(error.code).to.be.ok
|
|
408
|
+
}
|
|
409
|
+
})
|
|
410
|
+
|
|
391
411
|
it("essbasic.v20210526.DescribeFlowDetailInfo", async function () {
|
|
392
412
|
try {
|
|
393
413
|
const data = await client.DescribeFlowDetailInfo({})
|
|
@@ -758,6 +758,16 @@ it("mps.v20190612.DescribeImageSpriteTemplates", async function () {
|
|
|
758
758
|
}
|
|
759
759
|
})
|
|
760
760
|
|
|
761
|
+
it("mps.v20190612.WithdrawsWatermark", async function () {
|
|
762
|
+
try {
|
|
763
|
+
const data = await client.WithdrawsWatermark({})
|
|
764
|
+
expect(data).to.be.ok
|
|
765
|
+
} catch(error) {
|
|
766
|
+
expect(error.requestId).to.be.ok
|
|
767
|
+
expect(error.code).to.be.ok
|
|
768
|
+
}
|
|
769
|
+
})
|
|
770
|
+
|
|
761
771
|
it("mps.v20190612.DeleteContentReviewTemplate", async function () {
|
|
762
772
|
try {
|
|
763
773
|
const data = await client.DeleteContentReviewTemplate({})
|
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
2
|
-
/*
|
|
3
|
-
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing,
|
|
12
|
-
* software distributed under the License is distributed on an
|
|
13
|
-
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
-
* KIND, either express or implied. See the License for the
|
|
15
|
-
* specific language governing permissions and limitations
|
|
16
|
-
* under the License.
|
|
17
|
-
*/
|
|
18
|
-
import { AbstractClient } from "../../../common/abstract_client"
|
|
19
|
-
import { ClientConfig } from "../../../common/interface"
|
|
20
|
-
import {
|
|
21
|
-
GetCountryCodesRequest,
|
|
22
|
-
QueryPartnerCreditResponse,
|
|
23
|
-
QueryVoucherListByUinRequest,
|
|
24
|
-
QueryVoucherAmountByUinResponse,
|
|
25
|
-
QueryVoucherAmountByUinItem,
|
|
26
|
-
QueryCreditAllocationHistoryData,
|
|
27
|
-
AllocateCustomerCreditRequest,
|
|
28
|
-
GetCountryCodesResponse,
|
|
29
|
-
QueryCustomersCreditRequest,
|
|
30
|
-
QueryCreditByUinListRequest,
|
|
31
|
-
CreateAccountResponse,
|
|
32
|
-
QueryPartnerCreditRequest,
|
|
33
|
-
QueryCreditByUinListResponse,
|
|
34
|
-
QueryVoucherPoolResponse,
|
|
35
|
-
QueryCreditAllocationHistoryResponse,
|
|
36
|
-
CreateAccountRequest,
|
|
37
|
-
QueryDirectCustomersCreditRequest,
|
|
38
|
-
AllocateCustomerCreditResponse,
|
|
39
|
-
QueryVoucherListByUinVoucherItem,
|
|
40
|
-
QueryVoucherAmountByUinRequest,
|
|
41
|
-
QueryDirectCustomersCreditData,
|
|
42
|
-
QueryCreditAllocationHistoryRequest,
|
|
43
|
-
CountryCodeItem,
|
|
44
|
-
QueryDirectCustomersCreditResponse,
|
|
45
|
-
QueryVoucherListByUinResponse,
|
|
46
|
-
QueryVoucherPoolRequest,
|
|
47
|
-
QueryVoucherListByUinItem,
|
|
48
|
-
QueryCustomersCreditData,
|
|
49
|
-
QueryCustomersCreditResponse,
|
|
50
|
-
} from "./intlpartnersmgt_models"
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* intlpartnersmgt client
|
|
54
|
-
* @class
|
|
55
|
-
*/
|
|
56
|
-
export class Client extends AbstractClient {
|
|
57
|
-
constructor(clientConfig: ClientConfig) {
|
|
58
|
-
super("intlpartnersmgt.tencentcloudapi.com", "2022-09-28", clientConfig)
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* 查询用户列表信用
|
|
63
|
-
*/
|
|
64
|
-
async QueryCreditByUinList(
|
|
65
|
-
req: QueryCreditByUinListRequest,
|
|
66
|
-
cb?: (error: string, rep: QueryCreditByUinListResponse) => void
|
|
67
|
-
): Promise<QueryCreditByUinListResponse> {
|
|
68
|
-
return this.request("QueryCreditByUinList", req, cb)
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* 查询代金券额度池
|
|
73
|
-
*/
|
|
74
|
-
async QueryVoucherPool(
|
|
75
|
-
req?: QueryVoucherPoolRequest,
|
|
76
|
-
cb?: (error: string, rep: QueryVoucherPoolResponse) => void
|
|
77
|
-
): Promise<QueryVoucherPoolResponse> {
|
|
78
|
-
return this.request("QueryVoucherPool", req, cb)
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* 查询直接子客信用
|
|
83
|
-
*/
|
|
84
|
-
async QueryDirectCustomersCredit(
|
|
85
|
-
req?: QueryDirectCustomersCreditRequest,
|
|
86
|
-
cb?: (error: string, rep: QueryDirectCustomersCreditResponse) => void
|
|
87
|
-
): Promise<QueryDirectCustomersCreditResponse> {
|
|
88
|
-
return this.request("QueryDirectCustomersCredit", req, cb)
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* 在合作伙伴平台,创建腾讯云账号,子客户注册完成后,自动与合作伙伴账号绑定。
|
|
93
|
-
|
|
94
|
-
注意事项:<br>
|
|
95
|
-
1、创建腾讯云账号,输入的邮箱、手机号,需要合作伙伴做有效性验证。<br>
|
|
96
|
-
2、客户首次登录需要补充个人信息
|
|
97
|
-
*/
|
|
98
|
-
async CreateAccount(
|
|
99
|
-
req: CreateAccountRequest,
|
|
100
|
-
cb?: (error: string, rep: CreateAccountResponse) => void
|
|
101
|
-
): Promise<CreateAccountResponse> {
|
|
102
|
-
return this.request("CreateAccount", req, cb)
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
* 根据客户uin查询代金券列表
|
|
107
|
-
*/
|
|
108
|
-
async QueryVoucherListByUin(
|
|
109
|
-
req: QueryVoucherListByUinRequest,
|
|
110
|
-
cb?: (error: string, rep: QueryVoucherListByUinResponse) => void
|
|
111
|
-
): Promise<QueryVoucherListByUinResponse> {
|
|
112
|
-
return this.request("QueryVoucherListByUin", req, cb)
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
* 查询合作伙伴自己的总信用额度、可用信用额度、已使用信用额度,单位为美元
|
|
117
|
-
*/
|
|
118
|
-
async QueryPartnerCredit(
|
|
119
|
-
req?: QueryPartnerCreditRequest,
|
|
120
|
-
cb?: (error: string, rep: QueryPartnerCreditResponse) => void
|
|
121
|
-
): Promise<QueryPartnerCreditResponse> {
|
|
122
|
-
return this.request("QueryPartnerCredit", req, cb)
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
/**
|
|
126
|
-
* 合作伙伴可以为关联客户设置信用额度,包括调高额度、降低额度、设置额度为0
|
|
127
|
-
1、信用额度长期有效,不会定期清0;
|
|
128
|
-
2、可用信用额度为0,会触发客户停服,请谨慎操作;
|
|
129
|
-
3、如需限制客户新购,但不影响已购产品使用,可与渠道经理申请客户欠费不停服特权后,设置可用信用额度为0;
|
|
130
|
-
4、设置的额度,为当前可用信用额度的增量,最大不能超过合作伙伴可分配的剩余额度,设置负数代表回收额度,可用信用额度最低设置为0。
|
|
131
|
-
*/
|
|
132
|
-
async AllocateCustomerCredit(
|
|
133
|
-
req: AllocateCustomerCreditRequest,
|
|
134
|
-
cb?: (error: string, rep: AllocateCustomerCreditResponse) => void
|
|
135
|
-
): Promise<AllocateCustomerCreditResponse> {
|
|
136
|
-
return this.request("AllocateCustomerCredit", req, cb)
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
/**
|
|
140
|
-
* 获取国家和地区的代码
|
|
141
|
-
*/
|
|
142
|
-
async GetCountryCodes(
|
|
143
|
-
req?: GetCountryCodesRequest,
|
|
144
|
-
cb?: (error: string, rep: GetCountryCodesResponse) => void
|
|
145
|
-
): Promise<GetCountryCodesResponse> {
|
|
146
|
-
return this.request("GetCountryCodes", req, cb)
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
/**
|
|
150
|
-
* 查询单个客户的全部历史分配记录
|
|
151
|
-
*/
|
|
152
|
-
async QueryCreditAllocationHistory(
|
|
153
|
-
req: QueryCreditAllocationHistoryRequest,
|
|
154
|
-
cb?: (error: string, rep: QueryCreditAllocationHistoryResponse) => void
|
|
155
|
-
): Promise<QueryCreditAllocationHistoryResponse> {
|
|
156
|
-
return this.request("QueryCreditAllocationHistory", req, cb)
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
/**
|
|
160
|
-
* 合作伙伴可以查询关联客户的信用额度,以及客户的基础信息
|
|
161
|
-
*/
|
|
162
|
-
async QueryCustomersCredit(
|
|
163
|
-
req: QueryCustomersCreditRequest,
|
|
164
|
-
cb?: (error: string, rep: QueryCustomersCreditResponse) => void
|
|
165
|
-
): Promise<QueryCustomersCreditResponse> {
|
|
166
|
-
return this.request("QueryCustomersCredit", req, cb)
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
/**
|
|
170
|
-
* 根据客户uin查询代金券额度
|
|
171
|
-
*/
|
|
172
|
-
async QueryVoucherAmountByUin(
|
|
173
|
-
req: QueryVoucherAmountByUinRequest,
|
|
174
|
-
cb?: (error: string, rep: QueryVoucherAmountByUinResponse) => void
|
|
175
|
-
): Promise<QueryVoucherAmountByUinResponse> {
|
|
176
|
-
return this.request("QueryVoucherAmountByUin", req, cb)
|
|
177
|
-
}
|
|
178
|
-
}
|