polyv-live-api-sdk 1.0.10 → 1.0.12
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/dist/index.cjs +14 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +288 -33
- package/dist/index.js +14 -10
- package/dist/index.js.map +1 -1
- package/dist/services/v4/channel.service.d.ts.map +1 -1
- package/dist/types/v4-channel.d.ts +288 -33
- package/dist/types/v4-channel.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -10945,7 +10945,7 @@ var V4ChannelService = class {
|
|
|
10945
10945
|
async getChannel(params) {
|
|
10946
10946
|
this.validateChannelId(params.channelId);
|
|
10947
10947
|
const response = await this.client.httpClient.get(
|
|
10948
|
-
"/live/v4/channel/
|
|
10948
|
+
"/live/v4/channel/basic/get",
|
|
10949
10949
|
{ params }
|
|
10950
10950
|
);
|
|
10951
10951
|
return response;
|
|
@@ -11487,9 +11487,11 @@ var V4ChannelService = class {
|
|
|
11487
11487
|
*/
|
|
11488
11488
|
async lotteryActivityCreate(params) {
|
|
11489
11489
|
this.validateChannelId(params.channelId);
|
|
11490
|
+
const { channelId, ...body } = params;
|
|
11490
11491
|
const response = await this.client.httpClient.post(
|
|
11491
|
-
"/live/v4/channel/lottery-activity/
|
|
11492
|
-
|
|
11492
|
+
"/live/v4/channel/lottery-activity/create",
|
|
11493
|
+
body,
|
|
11494
|
+
{ params: { channelId } }
|
|
11493
11495
|
);
|
|
11494
11496
|
return response;
|
|
11495
11497
|
}
|
|
@@ -11502,7 +11504,7 @@ var V4ChannelService = class {
|
|
|
11502
11504
|
async lotteryActivityGet(params) {
|
|
11503
11505
|
this.validateChannelId(params.channelId);
|
|
11504
11506
|
const response = await this.client.httpClient.get(
|
|
11505
|
-
"/live/v4/channel/lottery-activity/
|
|
11507
|
+
"/live/v4/channel/lottery-activity/get",
|
|
11506
11508
|
{ params }
|
|
11507
11509
|
);
|
|
11508
11510
|
return response;
|
|
@@ -11517,7 +11519,7 @@ var V4ChannelService = class {
|
|
|
11517
11519
|
this.validateChannelId(params.channelId);
|
|
11518
11520
|
this.validatePaginationParams(params);
|
|
11519
11521
|
const response = await this.client.httpClient.get(
|
|
11520
|
-
"/live/v4/channel/lottery-activity/
|
|
11522
|
+
"/live/v4/channel/lottery-activity/list",
|
|
11521
11523
|
{ params }
|
|
11522
11524
|
);
|
|
11523
11525
|
return response;
|
|
@@ -11529,9 +11531,11 @@ var V4ChannelService = class {
|
|
|
11529
11531
|
*/
|
|
11530
11532
|
async lotteryActivityUpdate(params) {
|
|
11531
11533
|
this.validateChannelId(params.channelId);
|
|
11534
|
+
const { channelId, ...body } = params;
|
|
11532
11535
|
await this.client.httpClient.post(
|
|
11533
|
-
"/live/v4/channel/lottery-activity/
|
|
11534
|
-
|
|
11536
|
+
"/live/v4/channel/lottery-activity/update",
|
|
11537
|
+
body,
|
|
11538
|
+
{ params: { channelId } }
|
|
11535
11539
|
);
|
|
11536
11540
|
}
|
|
11537
11541
|
/**
|
|
@@ -11542,9 +11546,9 @@ var V4ChannelService = class {
|
|
|
11542
11546
|
async lotteryActivityDelete(params) {
|
|
11543
11547
|
this.validateChannelId(params.channelId);
|
|
11544
11548
|
await this.client.httpClient.post(
|
|
11545
|
-
"/live/v4/channel/lottery-activity/
|
|
11546
|
-
|
|
11547
|
-
{ params }
|
|
11549
|
+
"/live/v4/channel/lottery-activity/delete",
|
|
11550
|
+
{ id: params.id },
|
|
11551
|
+
{ params: { channelId: params.channelId } }
|
|
11548
11552
|
);
|
|
11549
11553
|
}
|
|
11550
11554
|
/**
|