polyv-live-api-sdk 1.0.11 → 1.0.13
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/LICENSE +21 -0
- package/dist/index.cjs +380 -128
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +478 -169
- package/dist/index.js +380 -128
- package/dist/index.js.map +1 -1
- package/dist/services/account.service.d.ts +4 -2
- package/dist/services/account.service.d.ts.map +1 -1
- package/dist/services/live-interaction.service.d.ts +10 -1
- package/dist/services/live-interaction.service.d.ts.map +1 -1
- package/dist/services/v4/channel.service.d.ts +38 -13
- package/dist/services/v4/channel.service.d.ts.map +1 -1
- package/dist/services/v4/user.service.d.ts.map +1 -1
- package/dist/types/account.d.ts +16 -3
- package/dist/types/account.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/live-interaction.d.ts +80 -26
- package/dist/types/live-interaction.d.ts.map +1 -1
- package/dist/types/v4-channel.d.ts +308 -124
- package/dist/types/v4-channel.d.ts.map +1 -1
- package/dist/types/v4-user.d.ts +13 -4
- package/dist/types/v4-user.d.ts.map +1 -1
- package/package.json +16 -17
|
@@ -817,11 +817,14 @@ export interface DonateSettings {
|
|
|
817
817
|
/** Channel ID */
|
|
818
818
|
channelId: string;
|
|
819
819
|
/** Donate enabled */
|
|
820
|
-
donateEnabled
|
|
820
|
+
donateEnabled?: YNFlag;
|
|
821
|
+
donateGiftEnabled?: YNFlag;
|
|
821
822
|
/** Donate tips */
|
|
822
|
-
donateTips
|
|
823
|
+
donateTips?: string;
|
|
823
824
|
/** Donate amounts */
|
|
824
|
-
donateAmounts
|
|
825
|
+
donateAmounts?: number[];
|
|
826
|
+
giftDonate?: GiftDonateConfig;
|
|
827
|
+
[key: string]: unknown;
|
|
825
828
|
}
|
|
826
829
|
/**
|
|
827
830
|
* Parameters for getting donate settings
|
|
@@ -838,10 +841,32 @@ export interface UpdateDonateParams {
|
|
|
838
841
|
channelId: string;
|
|
839
842
|
/** Donate enabled */
|
|
840
843
|
donateEnabled?: YNFlag;
|
|
844
|
+
donateGiftEnabled?: YNFlag;
|
|
841
845
|
/** Donate tips */
|
|
842
846
|
donateTips?: string;
|
|
843
847
|
/** Donate amounts */
|
|
844
848
|
donateAmounts?: number[];
|
|
849
|
+
giftDonate?: GiftDonateConfig;
|
|
850
|
+
}
|
|
851
|
+
export interface GiftDonatePayItem {
|
|
852
|
+
name?: string;
|
|
853
|
+
enabled?: YNFlag;
|
|
854
|
+
imgType?: 'STATIC' | 'DYNAMIC' | string;
|
|
855
|
+
img?: string;
|
|
856
|
+
dynamicImg?: string;
|
|
857
|
+
dynamicFile?: string;
|
|
858
|
+
price?: number | string;
|
|
859
|
+
}
|
|
860
|
+
export interface GiftDonateConfig {
|
|
861
|
+
payWay?: 'CASH' | 'POINT' | string;
|
|
862
|
+
pointUnit?: string;
|
|
863
|
+
cashPays?: GiftDonatePayItem[];
|
|
864
|
+
pointPays?: GiftDonatePayItem[];
|
|
865
|
+
}
|
|
866
|
+
export interface UpdateDonateGiftParams {
|
|
867
|
+
channelId: string | number;
|
|
868
|
+
donateGiftEnabled: YNFlag;
|
|
869
|
+
giftDonate?: GiftDonateConfig;
|
|
845
870
|
}
|
|
846
871
|
/**
|
|
847
872
|
* Distribute info
|
|
@@ -1027,68 +1052,139 @@ export interface QueryWinnerViewerResponse {
|
|
|
1027
1052
|
/** Contents */
|
|
1028
1053
|
contents: WinnerViewerInfo[];
|
|
1029
1054
|
}
|
|
1055
|
+
export interface LotteryReceiveInfo {
|
|
1056
|
+
type?: 'userName' | 'userPhone' | 'custom' | string;
|
|
1057
|
+
field: string;
|
|
1058
|
+
tips?: string;
|
|
1059
|
+
required?: boolean;
|
|
1060
|
+
}
|
|
1061
|
+
export interface LotteryPrizeInfo {
|
|
1062
|
+
prizeItem: string;
|
|
1063
|
+
correctAnswerCount: number;
|
|
1064
|
+
[key: string]: unknown;
|
|
1065
|
+
}
|
|
1030
1066
|
/**
|
|
1031
1067
|
* Lottery activity info
|
|
1032
1068
|
*/
|
|
1033
1069
|
export interface LotteryActivity {
|
|
1034
1070
|
/** Activity ID */
|
|
1035
|
-
|
|
1071
|
+
id: number;
|
|
1036
1072
|
/** Channel ID */
|
|
1037
|
-
channelId
|
|
1073
|
+
channelId?: string;
|
|
1038
1074
|
/** Activity name */
|
|
1039
|
-
|
|
1040
|
-
/**
|
|
1041
|
-
|
|
1075
|
+
activityName: string;
|
|
1076
|
+
/** Lottery condition type */
|
|
1077
|
+
lotteryCondition: 'none' | 'invite' | 'duration' | 'comment' | 'question' | string;
|
|
1042
1078
|
/** Status */
|
|
1043
|
-
status
|
|
1044
|
-
/**
|
|
1045
|
-
|
|
1046
|
-
/**
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1079
|
+
status?: string | null;
|
|
1080
|
+
/** Winner count */
|
|
1081
|
+
amount: number;
|
|
1082
|
+
/** Prize name */
|
|
1083
|
+
prizeName: string;
|
|
1084
|
+
hiddenWinnerAmount?: YNFlag;
|
|
1085
|
+
lotteryRange?: 'all' | 'customGroup' | string;
|
|
1086
|
+
customGroup?: Array<Record<string, unknown>>;
|
|
1087
|
+
customGroupIds?: Array<string | number>;
|
|
1088
|
+
customGroupLotteryType?: 'average' | 'random' | string;
|
|
1089
|
+
customGroupLotteryAmount?: number | null;
|
|
1090
|
+
hiddenAttendeeNumber?: YNFlag;
|
|
1091
|
+
repeatWinEnabled?: YNFlag;
|
|
1092
|
+
receiveEnabled?: YNFlag;
|
|
1093
|
+
receiveInfo?: LotteryReceiveInfo[] | null;
|
|
1094
|
+
thumbnail?: string | null;
|
|
1095
|
+
activityDuration?: string | number | null;
|
|
1096
|
+
activityDurationType?: 'second' | 'minute' | 'hour' | string | null;
|
|
1097
|
+
inviteType?: 'poster' | 'external' | string | null;
|
|
1098
|
+
externalListLink?: string | null;
|
|
1099
|
+
externalInviteNumLink?: string | null;
|
|
1100
|
+
inviteNum?: number | null;
|
|
1101
|
+
duration?: number | null;
|
|
1102
|
+
comment?: string | null;
|
|
1103
|
+
acceptType?: 'form' | 'link' | 'qrCode' | string | null;
|
|
1104
|
+
formInfo?: LotteryReceiveInfo[] | null;
|
|
1105
|
+
prizeUrl?: string | null;
|
|
1106
|
+
qrCode?: string | null;
|
|
1107
|
+
qrCodeTips?: string | null;
|
|
1108
|
+
realPrice?: number | null;
|
|
1109
|
+
price?: number | null;
|
|
1110
|
+
prizeInfo?: LotteryPrizeInfo[] | null;
|
|
1111
|
+
questionGroupId?: number | null;
|
|
1112
|
+
perAnswerDuration?: number | null;
|
|
1113
|
+
lotteryOnlineEnabled?: YNFlag;
|
|
1114
|
+
answerType?: 'pushQuestion' | 'autonomyAnswer' | string;
|
|
1115
|
+
showWinnerCode?: YNFlag;
|
|
1116
|
+
showWinners?: YNFlag;
|
|
1117
|
+
[key: string]: unknown;
|
|
1050
1118
|
}
|
|
1051
1119
|
/**
|
|
1052
1120
|
* Parameters for creating lottery activity
|
|
1053
1121
|
*/
|
|
1054
1122
|
export interface LotteryActivityCreateParams {
|
|
1055
1123
|
/** Channel ID */
|
|
1056
|
-
channelId: string;
|
|
1124
|
+
channelId: string | number;
|
|
1057
1125
|
/** Activity name */
|
|
1058
|
-
|
|
1059
|
-
/**
|
|
1060
|
-
|
|
1061
|
-
/**
|
|
1062
|
-
|
|
1063
|
-
/**
|
|
1064
|
-
|
|
1126
|
+
activityName: string;
|
|
1127
|
+
/** Lottery condition type */
|
|
1128
|
+
lotteryCondition: 'none' | 'invite' | 'duration' | 'comment' | 'question' | string;
|
|
1129
|
+
/** Winner count */
|
|
1130
|
+
amount: number;
|
|
1131
|
+
/** Prize name */
|
|
1132
|
+
prizeName: string;
|
|
1133
|
+
hiddenWinnerAmount?: YNFlag;
|
|
1134
|
+
lotteryRange?: 'all' | 'customGroup' | string;
|
|
1135
|
+
customGroupIds?: Array<string | number>;
|
|
1136
|
+
customGroupLotteryType?: 'average' | 'random' | string;
|
|
1137
|
+
customGroupLotteryAmount?: number;
|
|
1138
|
+
hiddenAttendeeNumber?: YNFlag;
|
|
1139
|
+
repeatWinEnabled?: YNFlag;
|
|
1140
|
+
receiveEnabled?: YNFlag;
|
|
1141
|
+
receiveInfo?: LotteryReceiveInfo[];
|
|
1142
|
+
thumbnail?: string;
|
|
1143
|
+
activityDuration?: string | number;
|
|
1144
|
+
activityDurationType?: 'second' | 'minute' | 'hour' | string;
|
|
1145
|
+
inviteType?: 'poster' | 'external' | string;
|
|
1146
|
+
externalListLink?: string;
|
|
1147
|
+
externalInviteNumLink?: string;
|
|
1148
|
+
inviteNum?: number;
|
|
1149
|
+
duration?: number;
|
|
1150
|
+
comment?: string;
|
|
1151
|
+
acceptType?: 'form' | 'link' | 'qrCode' | string;
|
|
1152
|
+
formInfo?: LotteryReceiveInfo[];
|
|
1153
|
+
prizeUrl?: string;
|
|
1154
|
+
qrCode?: string;
|
|
1155
|
+
qrCodeTips?: string;
|
|
1156
|
+
realPrice?: number;
|
|
1157
|
+
price?: number;
|
|
1158
|
+
prizeInfo?: LotteryPrizeInfo[];
|
|
1159
|
+
questionGroupId?: number;
|
|
1160
|
+
perAnswerDuration?: number;
|
|
1161
|
+
lotteryOnlineEnabled?: YNFlag;
|
|
1162
|
+
answerType?: 'pushQuestion' | 'autonomyAnswer' | string;
|
|
1163
|
+
showWinnerCode?: YNFlag;
|
|
1164
|
+
showWinners?: YNFlag;
|
|
1065
1165
|
}
|
|
1066
1166
|
/**
|
|
1067
1167
|
* Response for creating lottery activity
|
|
1068
1168
|
*/
|
|
1069
1169
|
export interface LotteryActivityCreateResponse {
|
|
1070
1170
|
/** Activity ID */
|
|
1071
|
-
|
|
1171
|
+
id: number;
|
|
1072
1172
|
}
|
|
1073
1173
|
/**
|
|
1074
1174
|
* Parameters for getting lottery activity
|
|
1075
1175
|
*/
|
|
1076
1176
|
export interface LotteryActivityGetParams {
|
|
1077
1177
|
/** Channel ID */
|
|
1078
|
-
channelId: string;
|
|
1178
|
+
channelId: string | number;
|
|
1079
1179
|
/** Activity ID */
|
|
1080
|
-
|
|
1180
|
+
id: string | number;
|
|
1081
1181
|
}
|
|
1082
1182
|
/**
|
|
1083
1183
|
* Parameters for listing lottery activities
|
|
1084
1184
|
*/
|
|
1085
|
-
export interface LotteryActivityListParams {
|
|
1185
|
+
export interface LotteryActivityListParams extends V4PaginationParams {
|
|
1086
1186
|
/** Channel ID */
|
|
1087
|
-
channelId: string;
|
|
1088
|
-
/** Page number */
|
|
1089
|
-
pageNumber?: number;
|
|
1090
|
-
/** Page size */
|
|
1091
|
-
pageSize?: number;
|
|
1187
|
+
channelId: string | number;
|
|
1092
1188
|
}
|
|
1093
1189
|
/**
|
|
1094
1190
|
* Response for listing lottery activities
|
|
@@ -1108,26 +1204,58 @@ export interface LotteryActivityListResponse {
|
|
|
1108
1204
|
*/
|
|
1109
1205
|
export interface LotteryActivityUpdateParams {
|
|
1110
1206
|
/** Channel ID */
|
|
1111
|
-
channelId: string;
|
|
1207
|
+
channelId: string | number;
|
|
1112
1208
|
/** Activity ID */
|
|
1113
|
-
|
|
1209
|
+
id: string | number;
|
|
1114
1210
|
/** Activity name */
|
|
1115
|
-
|
|
1116
|
-
/**
|
|
1117
|
-
|
|
1118
|
-
/**
|
|
1119
|
-
|
|
1120
|
-
/**
|
|
1121
|
-
|
|
1211
|
+
activityName: string;
|
|
1212
|
+
/** Lottery condition type */
|
|
1213
|
+
lotteryCondition: 'none' | 'invite' | 'duration' | 'comment' | 'question' | string;
|
|
1214
|
+
/** Winner count */
|
|
1215
|
+
amount: number;
|
|
1216
|
+
/** Prize name */
|
|
1217
|
+
prizeName: string;
|
|
1218
|
+
hiddenWinnerAmount?: YNFlag;
|
|
1219
|
+
lotteryRange?: 'all' | 'customGroup' | string;
|
|
1220
|
+
customGroupIds?: Array<string | number>;
|
|
1221
|
+
customGroupLotteryType?: 'average' | 'random' | string;
|
|
1222
|
+
customGroupLotteryAmount?: number;
|
|
1223
|
+
hiddenAttendeeNumber?: YNFlag;
|
|
1224
|
+
repeatWinEnabled?: YNFlag;
|
|
1225
|
+
receiveEnabled?: YNFlag;
|
|
1226
|
+
receiveInfo?: LotteryReceiveInfo[];
|
|
1227
|
+
thumbnail?: string;
|
|
1228
|
+
activityDuration?: string | number;
|
|
1229
|
+
activityDurationType?: 'second' | 'minute' | 'hour' | string;
|
|
1230
|
+
inviteType?: 'poster' | 'external' | string;
|
|
1231
|
+
externalListLink?: string;
|
|
1232
|
+
externalInviteNumLink?: string;
|
|
1233
|
+
inviteNum?: number;
|
|
1234
|
+
duration?: number;
|
|
1235
|
+
comment?: string;
|
|
1236
|
+
acceptType?: 'form' | 'link' | 'qrCode' | string;
|
|
1237
|
+
formInfo?: LotteryReceiveInfo[];
|
|
1238
|
+
prizeUrl?: string;
|
|
1239
|
+
qrCode?: string;
|
|
1240
|
+
qrCodeTips?: string;
|
|
1241
|
+
realPrice?: number;
|
|
1242
|
+
price?: number;
|
|
1243
|
+
prizeInfo?: LotteryPrizeInfo[];
|
|
1244
|
+
questionGroupId?: number;
|
|
1245
|
+
perAnswerDuration?: number;
|
|
1246
|
+
lotteryOnlineEnabled?: YNFlag;
|
|
1247
|
+
answerType?: 'pushQuestion' | 'autonomyAnswer' | string;
|
|
1248
|
+
showWinnerCode?: YNFlag;
|
|
1249
|
+
showWinners?: YNFlag;
|
|
1122
1250
|
}
|
|
1123
1251
|
/**
|
|
1124
1252
|
* Parameters for deleting lottery activity
|
|
1125
1253
|
*/
|
|
1126
1254
|
export interface LotteryActivityDeleteParams {
|
|
1127
1255
|
/** Channel ID */
|
|
1128
|
-
channelId: string;
|
|
1256
|
+
channelId: string | number;
|
|
1129
1257
|
/** Activity ID */
|
|
1130
|
-
|
|
1258
|
+
id: string | number;
|
|
1131
1259
|
}
|
|
1132
1260
|
/**
|
|
1133
1261
|
* Parameters for adding to blacklist
|
|
@@ -1414,126 +1542,137 @@ export interface DiskVideoScriptDeleteParams {
|
|
|
1414
1542
|
* Share settings
|
|
1415
1543
|
*/
|
|
1416
1544
|
export interface ShareSettings {
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1545
|
+
shareBtnEnable?: YNFlag;
|
|
1546
|
+
titleType?: 'follow' | 'custom' | string;
|
|
1547
|
+
weixinShareTitle?: string;
|
|
1548
|
+
weixinShareDesc?: string;
|
|
1549
|
+
weixinShareCustomUrl?: string;
|
|
1550
|
+
webShareCustomUrl?: string;
|
|
1551
|
+
weixinShareCustomUrlWithParamEnabled?: YNFlag;
|
|
1552
|
+
webShareCustomUrlWithParamEnabled?: YNFlag;
|
|
1553
|
+
[key: string]: unknown;
|
|
1425
1554
|
}
|
|
1426
1555
|
/**
|
|
1427
1556
|
* Parameters for getting share settings
|
|
1428
1557
|
*/
|
|
1429
1558
|
export interface ShareGetParams {
|
|
1430
1559
|
/** Channel ID */
|
|
1431
|
-
channelId: string;
|
|
1560
|
+
channelId: string | number;
|
|
1432
1561
|
}
|
|
1433
1562
|
/**
|
|
1434
1563
|
* Parameters for updating share settings
|
|
1435
1564
|
*/
|
|
1436
1565
|
export interface ShareUpdateParams {
|
|
1437
1566
|
/** Channel ID */
|
|
1438
|
-
channelId: string;
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1567
|
+
channelId: string | number;
|
|
1568
|
+
shareBtnEnable: YNFlag;
|
|
1569
|
+
titleType: 'follow' | 'custom' | string;
|
|
1570
|
+
weixinShareTitle?: string;
|
|
1571
|
+
weixinShareDesc?: string;
|
|
1572
|
+
weixinShareCustomUrl?: string;
|
|
1573
|
+
webShareCustomUrl?: string;
|
|
1574
|
+
weixinShareCustomUrlWithParamEnabled?: YNFlag;
|
|
1575
|
+
webShareCustomUrlWithParamEnabled?: YNFlag;
|
|
1445
1576
|
}
|
|
1446
1577
|
/**
|
|
1447
1578
|
* Card push info
|
|
1448
1579
|
*/
|
|
1449
1580
|
export interface CardPushInfo {
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
type: string;
|
|
1460
|
-
/** Card URL */
|
|
1461
|
-
url: string;
|
|
1462
|
-
/** Created time */
|
|
1463
|
-
createdTime: number;
|
|
1581
|
+
cardPushId?: number | string;
|
|
1582
|
+
channelId?: string | number;
|
|
1583
|
+
cardType?: 'common' | 'qrCode' | string;
|
|
1584
|
+
imageType?: 'giftbox' | 'redpack' | 'custom' | 'weixinWork' | string;
|
|
1585
|
+
title?: string;
|
|
1586
|
+
link?: string;
|
|
1587
|
+
duration?: 0 | 5 | 10 | 20 | 30 | number;
|
|
1588
|
+
showCondition?: 'PUSH' | 'WATCH' | string;
|
|
1589
|
+
[key: string]: unknown;
|
|
1464
1590
|
}
|
|
1465
1591
|
/**
|
|
1466
1592
|
* Parameters for creating card push
|
|
1467
1593
|
*/
|
|
1468
1594
|
export interface CardPushCreateParams {
|
|
1469
1595
|
/** Channel ID */
|
|
1470
|
-
channelId: string;
|
|
1471
|
-
|
|
1596
|
+
channelId: string | number;
|
|
1597
|
+
cardType?: 'common' | 'qrCode' | string;
|
|
1598
|
+
imageType: 'giftbox' | 'redpack' | 'custom' | 'weixinWork' | string;
|
|
1472
1599
|
title: string;
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1600
|
+
link: string;
|
|
1601
|
+
duration: 0 | 5 | 10 | 20 | 30 | number;
|
|
1602
|
+
durationPosition?: 'bottom' | 'top' | string;
|
|
1603
|
+
showCondition: 'PUSH' | 'WATCH' | string;
|
|
1604
|
+
conditionValue?: number;
|
|
1605
|
+
conditionUnit?: 'SECONDS' | 'MINUTES' | string;
|
|
1606
|
+
countdownMsg?: string;
|
|
1607
|
+
enterEnabled?: YNFlag;
|
|
1608
|
+
linkEnabled?: YNFlag;
|
|
1609
|
+
redirectType?: 'iframe' | 'tab' | string;
|
|
1610
|
+
enterImage?: string;
|
|
1611
|
+
cardImage?: string;
|
|
1612
|
+
weixinWordQrCodeId?: string;
|
|
1613
|
+
qrCodeImage?: string;
|
|
1614
|
+
hrefType?: 'common' | 'multiplatform' | string;
|
|
1615
|
+
pcLink?: string;
|
|
1616
|
+
mobileLink?: string;
|
|
1617
|
+
wxMiniprogramOriginalId?: string;
|
|
1618
|
+
wxMiniprogramAppId?: string;
|
|
1619
|
+
wxMiniprogramLink?: string;
|
|
1620
|
+
mobileAppLink?: string;
|
|
1479
1621
|
}
|
|
1480
1622
|
/**
|
|
1481
1623
|
* Response for creating card push
|
|
1482
1624
|
*/
|
|
1483
1625
|
export interface CardPushCreateResponse {
|
|
1484
1626
|
/** Card push ID */
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
/**
|
|
1488
|
-
* Parameters for getting card push
|
|
1489
|
-
*/
|
|
1490
|
-
export interface CardPushGetParams {
|
|
1491
|
-
/** Channel ID */
|
|
1492
|
-
channelId: string;
|
|
1493
|
-
/** Card push ID */
|
|
1494
|
-
id: number;
|
|
1627
|
+
cardPushId?: number | string;
|
|
1628
|
+
[key: string]: unknown;
|
|
1495
1629
|
}
|
|
1496
1630
|
/**
|
|
1497
1631
|
* Parameters for updating card push
|
|
1498
1632
|
*/
|
|
1499
1633
|
export interface CardPushUpdateParams {
|
|
1500
1634
|
/** Channel ID */
|
|
1501
|
-
channelId: string;
|
|
1635
|
+
channelId: string | number;
|
|
1502
1636
|
/** Card push ID */
|
|
1503
|
-
|
|
1504
|
-
/** Card title */
|
|
1637
|
+
cardPushId: string | number;
|
|
1505
1638
|
title?: string;
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1639
|
+
duration?: 0 | 5 | 10 | 20 | 30 | number;
|
|
1640
|
+
imageType?: 'giftbox' | 'redpack' | 'custom' | 'weixinWork' | string;
|
|
1641
|
+
link?: string;
|
|
1642
|
+
showCondition?: 'PUSH' | 'WATCH' | string;
|
|
1643
|
+
conditionValue?: number;
|
|
1644
|
+
conditionUnit?: 'SECONDS' | 'MINUTES' | string;
|
|
1645
|
+
countdownMsg?: string;
|
|
1646
|
+
enterEnabled?: YNFlag;
|
|
1647
|
+
linkEnabled?: YNFlag;
|
|
1648
|
+
[key: string]: unknown;
|
|
1510
1649
|
}
|
|
1511
1650
|
/**
|
|
1512
1651
|
* Parameters for deleting card push
|
|
1513
1652
|
*/
|
|
1514
1653
|
export interface CardPushDeleteParams {
|
|
1515
1654
|
/** Channel ID */
|
|
1516
|
-
channelId: string;
|
|
1655
|
+
channelId: string | number;
|
|
1517
1656
|
/** Card push ID */
|
|
1518
|
-
|
|
1657
|
+
cardPushId: string | number;
|
|
1519
1658
|
}
|
|
1520
1659
|
/**
|
|
1521
1660
|
* Parameters for pushing card
|
|
1522
1661
|
*/
|
|
1523
1662
|
export interface CardPushPushParams {
|
|
1524
1663
|
/** Channel ID */
|
|
1525
|
-
channelId: string;
|
|
1664
|
+
channelId: string | number;
|
|
1526
1665
|
/** Card push ID */
|
|
1527
|
-
|
|
1666
|
+
cardPushId: string | number;
|
|
1528
1667
|
}
|
|
1529
1668
|
/**
|
|
1530
1669
|
* Parameters for canceling card push
|
|
1531
1670
|
*/
|
|
1532
1671
|
export interface CardPushCancelPushParams {
|
|
1533
1672
|
/** Channel ID */
|
|
1534
|
-
channelId: string;
|
|
1673
|
+
channelId: string | number;
|
|
1535
1674
|
/** Card push ID */
|
|
1536
|
-
|
|
1675
|
+
cardPushId: string | number;
|
|
1537
1676
|
}
|
|
1538
1677
|
/**
|
|
1539
1678
|
* Parameters for browsers summary
|
|
@@ -1767,67 +1906,64 @@ export interface ProductStatsPageResponse {
|
|
|
1767
1906
|
*/
|
|
1768
1907
|
export interface ProductTag {
|
|
1769
1908
|
/** Tag ID */
|
|
1770
|
-
|
|
1909
|
+
id?: number | string;
|
|
1771
1910
|
/** Tag name */
|
|
1772
|
-
name
|
|
1773
|
-
|
|
1774
|
-
color: string;
|
|
1911
|
+
name?: string;
|
|
1912
|
+
[key: string]: unknown;
|
|
1775
1913
|
}
|
|
1776
1914
|
/**
|
|
1777
1915
|
* Parameters for creating product tag
|
|
1778
1916
|
*/
|
|
1779
1917
|
export interface ProductTagCreateParams {
|
|
1780
1918
|
/** Channel ID */
|
|
1781
|
-
channelId: string;
|
|
1919
|
+
channelId: string | number;
|
|
1782
1920
|
/** Tag name */
|
|
1783
1921
|
name: string;
|
|
1784
|
-
/** Tag color */
|
|
1785
|
-
color?: string;
|
|
1786
1922
|
}
|
|
1787
1923
|
/**
|
|
1788
1924
|
* Response for creating product tag
|
|
1789
1925
|
*/
|
|
1790
1926
|
export interface ProductTagCreateResponse {
|
|
1791
1927
|
/** Tag ID */
|
|
1792
|
-
|
|
1928
|
+
id?: number | string;
|
|
1929
|
+
name?: string;
|
|
1930
|
+
[key: string]: unknown;
|
|
1793
1931
|
}
|
|
1794
1932
|
/**
|
|
1795
1933
|
* Parameters for getting product tag
|
|
1796
1934
|
*/
|
|
1797
1935
|
export interface ProductTagGetParams {
|
|
1798
1936
|
/** Channel ID */
|
|
1799
|
-
channelId: string;
|
|
1937
|
+
channelId: string | number;
|
|
1800
1938
|
/** Tag ID */
|
|
1801
|
-
|
|
1939
|
+
id: string | number;
|
|
1802
1940
|
}
|
|
1803
1941
|
/**
|
|
1804
1942
|
* Parameters for listing product tags
|
|
1805
1943
|
*/
|
|
1806
|
-
export interface ProductTagListParams {
|
|
1944
|
+
export interface ProductTagListParams extends V4PaginationParams {
|
|
1807
1945
|
/** Channel ID */
|
|
1808
|
-
channelId: string;
|
|
1946
|
+
channelId: string | number;
|
|
1809
1947
|
}
|
|
1810
1948
|
/**
|
|
1811
1949
|
* Parameters for updating product tag
|
|
1812
1950
|
*/
|
|
1813
1951
|
export interface ProductTagUpdateParams {
|
|
1814
1952
|
/** Channel ID */
|
|
1815
|
-
channelId: string;
|
|
1953
|
+
channelId: string | number;
|
|
1816
1954
|
/** Tag ID */
|
|
1817
|
-
|
|
1955
|
+
id: string | number;
|
|
1818
1956
|
/** Tag name */
|
|
1819
|
-
name
|
|
1820
|
-
/** Tag color */
|
|
1821
|
-
color?: string;
|
|
1957
|
+
name: string;
|
|
1822
1958
|
}
|
|
1823
1959
|
/**
|
|
1824
1960
|
* Parameters for deleting product tag
|
|
1825
1961
|
*/
|
|
1826
1962
|
export interface ProductTagDeleteParams {
|
|
1827
1963
|
/** Channel ID */
|
|
1828
|
-
channelId: string;
|
|
1964
|
+
channelId: string | number;
|
|
1829
1965
|
/** Tag ID */
|
|
1830
|
-
|
|
1966
|
+
id: string | number;
|
|
1831
1967
|
}
|
|
1832
1968
|
/**
|
|
1833
1969
|
* Parameters for paging gifts
|
|
@@ -1900,6 +2036,48 @@ export interface LikeInfo {
|
|
|
1900
2036
|
/** Like time */
|
|
1901
2037
|
likeTime: number;
|
|
1902
2038
|
}
|
|
2039
|
+
export interface RewardGiftRecord {
|
|
2040
|
+
viewerId?: string;
|
|
2041
|
+
viewerName?: string;
|
|
2042
|
+
giftName?: string;
|
|
2043
|
+
price?: number;
|
|
2044
|
+
count?: number;
|
|
2045
|
+
createTime?: number;
|
|
2046
|
+
[key: string]: unknown;
|
|
2047
|
+
}
|
|
2048
|
+
export interface ListRewardGiftsParams extends V4PaginationParams {
|
|
2049
|
+
channelId: string | number;
|
|
2050
|
+
start: number;
|
|
2051
|
+
end: number;
|
|
2052
|
+
}
|
|
2053
|
+
export interface ListRewardGiftsResponse {
|
|
2054
|
+
pageNumber?: number;
|
|
2055
|
+
pageSize?: number;
|
|
2056
|
+
totalItems?: number;
|
|
2057
|
+
totalPages?: number;
|
|
2058
|
+
contents?: RewardGiftRecord[];
|
|
2059
|
+
[key: string]: unknown;
|
|
2060
|
+
}
|
|
2061
|
+
export interface RewardLikeRecord {
|
|
2062
|
+
viewerId?: string;
|
|
2063
|
+
viewerName?: string;
|
|
2064
|
+
likeCount?: number;
|
|
2065
|
+
createTime?: number;
|
|
2066
|
+
[key: string]: unknown;
|
|
2067
|
+
}
|
|
2068
|
+
export interface ListRewardLikesParams extends V4PaginationParams {
|
|
2069
|
+
channelId: string | number;
|
|
2070
|
+
start?: number;
|
|
2071
|
+
end?: number;
|
|
2072
|
+
}
|
|
2073
|
+
export interface ListRewardLikesResponse {
|
|
2074
|
+
pageNumber?: number;
|
|
2075
|
+
pageSize?: number;
|
|
2076
|
+
totalItems?: number;
|
|
2077
|
+
totalPages?: number;
|
|
2078
|
+
contents?: RewardLikeRecord[];
|
|
2079
|
+
[key: string]: unknown;
|
|
2080
|
+
}
|
|
1903
2081
|
/**
|
|
1904
2082
|
* Response for paging likes
|
|
1905
2083
|
*/
|
|
@@ -2307,6 +2485,10 @@ export interface LiveSessionInfo {
|
|
|
2307
2485
|
/** Max viewer count */
|
|
2308
2486
|
maxViewerCount: number;
|
|
2309
2487
|
}
|
|
2488
|
+
export interface ListCardPushesParams {
|
|
2489
|
+
channelId: string | number;
|
|
2490
|
+
}
|
|
2491
|
+
export type ListCardPushesResponse = CardPushInfo[];
|
|
2310
2492
|
/** V4 Pagination parameters */
|
|
2311
2493
|
export interface V4PaginationParams {
|
|
2312
2494
|
/** Page number (1-based) */
|
|
@@ -2327,6 +2509,7 @@ export interface V4PaginatedResponse<T> {
|
|
|
2327
2509
|
/** Page size */
|
|
2328
2510
|
pageSize?: number;
|
|
2329
2511
|
}
|
|
2512
|
+
export type V4ChannelPageResponse<T> = V4PaginatedResponse<T>;
|
|
2330
2513
|
/** Channel ID parameter */
|
|
2331
2514
|
export interface ChannelIdParam {
|
|
2332
2515
|
/** Channel ID */
|
|
@@ -2358,6 +2541,7 @@ export type CreateLotteryActivityParams = LotteryActivityCreateParams;
|
|
|
2358
2541
|
export type CreateLotteryActivityResponse = LotteryActivityCreateResponse;
|
|
2359
2542
|
export type GetLotteryActivityParams = LotteryActivityGetParams;
|
|
2360
2543
|
export type ListLotteryActivitiesParams = LotteryActivityListParams;
|
|
2544
|
+
export type ListLotteryActivitiesResponse = LotteryActivityListResponse;
|
|
2361
2545
|
export type UpdateLotteryActivityParams = LotteryActivityUpdateParams;
|
|
2362
2546
|
export type DeleteLotteryActivityParams = LotteryActivityDeleteParams;
|
|
2363
2547
|
export type GroupResponse = GroupAddResponse;
|
|
@@ -2367,7 +2551,6 @@ export type GetShareParams = ShareGetParams;
|
|
|
2367
2551
|
export type UpdateShareParams = ShareUpdateParams;
|
|
2368
2552
|
export type CreateCardPushParams = CardPushCreateParams;
|
|
2369
2553
|
export type CreateCardPushResponse = CardPushCreateResponse;
|
|
2370
|
-
export type GetCardPushParams = CardPushGetParams;
|
|
2371
2554
|
export type UpdateCardPushParams = CardPushUpdateParams;
|
|
2372
2555
|
export type DeleteCardPushParams = CardPushDeleteParams;
|
|
2373
2556
|
export type PushCardParams = CardPushPushParams;
|
|
@@ -2382,6 +2565,7 @@ export type CreateProductTagParams = ProductTagCreateParams;
|
|
|
2382
2565
|
export type CreateProductTagResponse = ProductTagCreateResponse;
|
|
2383
2566
|
export type GetProductTagParams = ProductTagGetParams;
|
|
2384
2567
|
export type ListProductTagsParams = ProductTagListParams;
|
|
2568
|
+
export type ListChannelProductTagsResponse = V4ChannelPageResponse<ProductTag>;
|
|
2385
2569
|
export type UpdateProductTagParams = ProductTagUpdateParams;
|
|
2386
2570
|
export type DeleteProductTagParams = ProductTagDeleteParams;
|
|
2387
2571
|
export type GiftItem = GiftInfo;
|