polyv-live-api-sdk 1.0.11 → 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/LICENSE +21 -0
- package/dist/index.cjs +13 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +288 -33
- package/dist/index.js +13 -9
- 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 +16 -17
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 PolyV Team
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/index.cjs
CHANGED
|
@@ -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
|
/**
|