New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

oberknecht-api

Package Overview
Dependencies
Maintainers
1
Versions
116
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

oberknecht-api - npm Package Compare versions

Comparing version 1.0.7 to 1.0.8

7

lib-js/api/oberknecht.api.d.ts

@@ -9,2 +9,4 @@ import { jsonsplitter } from "@jubewe/jsonsplitter";

import { getStreamsFiltersType } from "../types/endpoints/getStreams";
import { channelData as channelDataType } from "../types/endpoints/updateChannel";
import { choices, pollStatusType } from "../types/endpoints/poll";
export declare class oberknechtAPI {

@@ -70,2 +72,7 @@ #private;

getBroadcasterSubscriptions: (customtoken: string, user_id?: string, first?: string, after?: string, before?: string) => Promise<import("../types/endpoints/getBroadcasterSubscriptions").getBroadcasterSubscriptionsResponse>;
getChannels: (broadcaster_ids: string | string[], customtoken?: string) => Promise<import("../types/endpoints/getChannels").getChannelsResponse>;
updateChannel: (channelData: channelDataType, customtoken?: string) => Promise<void>;
getPolls: (id?: string, first?: string, after?: string) => Promise<import("../types/endpoints/poll").getPollResponse>;
createPoll: (title: string, choices: choices, duration: number, channelPointsVotingEnabled?: boolean, channelPointsPerVote?: number, customtoken?: string) => Promise<import("../types/endpoints/poll").createPollResponse>;
endPoll: (id: string, status: pollStatusType, customtoken?: string) => Promise<import("../types/endpoints/poll").endPollResponse>;
}

@@ -42,2 +42,7 @@ "use strict";

const getBroadcasterSubscriptions_1 = require("../endpoints/getBroadcasterSubscriptions");
const getChannels_1 = require("../endpoints/getChannels");
const updateChannel_1 = require("../endpoints/updateChannel");
const getPolls_1 = require("../endpoints/getPolls");
const createPoll_1 = require("../endpoints/createPoll");
const endPoll_1 = require("../endpoints/endPoll");
class oberknechtAPI {

@@ -164,4 +169,9 @@ #symbol = String(Symbol());

getBroadcasterSubscriptions = (customtoken, user_id, first, after, before) => { return (0, getBroadcasterSubscriptions_1.getBroadcasterSubscriptions)(this.symbol, customtoken, user_id, first, after, before); };
getChannels = (broadcaster_ids, customtoken) => { return (0, getChannels_1.getChannels)(this.symbol, broadcaster_ids, customtoken); };
updateChannel = (channelData, customtoken) => { return (0, updateChannel_1.updateChannel)(this.symbol, channelData, customtoken); };
getPolls = (id, first, after) => { return (0, getPolls_1.getPolls)(this.symbol, id, first, after, after); };
createPoll = (title, choices, duration, channelPointsVotingEnabled, channelPointsPerVote, customtoken) => { return (0, createPoll_1.createPoll)(this.symbol, title, choices, duration, channelPointsVotingEnabled, channelPointsPerVote, customtoken); };
endPoll = (id, status, customtoken) => { return (0, endPoll_1.endPoll)(this.symbol, id, status, customtoken); };
}
exports.oberknechtAPI = oberknechtAPI;
;

2

lib-js/endpoints/createPoll.d.ts
import { choices as choices_, createPollResponse } from "../types/endpoints/poll";
export declare function createPoll(sym: string, title: string, choices: choices_, duration: Number, channelPointsVotingEnabled?: boolean, channelPointsPerVote?: boolean, customtoken?: string): Promise<createPollResponse>;
export declare function createPoll(sym: string, title: string, choices: choices_, duration: Number, channelPointsVotingEnabled?: boolean, channelPointsPerVote?: number, customtoken?: string): Promise<createPollResponse>;

@@ -45,4 +45,11 @@ import { i } from "../index";

import { chatSettingEntry } from "../types/endpoints/chatSettings";
import { oberknechtAPIOptions, oberknechtAPIOptionsType } from "../types/oberknechtAPIOptions";
import { oberknechtAPIOptionsType } from "../types/oberknechtAPIOptions";
import { getStreamsFiltersType } from "../types/endpoints/getStreams";
import { getChannels } from "../endpoints/getChannels";
import { updateChannel } from "../endpoints/updateChannel";
import { channelData as channelDataType } from "../types/endpoints/updateChannel";
import { getPolls } from "../endpoints/getPolls";
import { createPoll } from "../endpoints/createPoll";
import { choices, pollStatusType } from "../types/endpoints/poll";
import { endPoll } from "../endpoints/endPoll";

@@ -183,2 +190,8 @@ export class oberknechtAPI {

getBroadcasterSubscriptions = (customtoken: string, user_id?: string, first?: string, after?: string, before?: string) => { return getBroadcasterSubscriptions(this.symbol, customtoken, user_id, first, after, before) };
getChannels = (broadcaster_ids: string | string[], customtoken?: string) => { return getChannels(this.symbol, broadcaster_ids, customtoken) };
updateChannel = (channelData: channelDataType, customtoken?: string) => { return updateChannel(this.symbol, channelData, customtoken) };
getPolls = (id?: string, first?: string, after?: string) => { return getPolls(this.symbol, id, first, after, after) };
createPoll = (title: string, choices: choices, duration: number, channelPointsVotingEnabled?: boolean, channelPointsPerVote?: number, customtoken?: string) => { return createPoll(this.symbol, title, choices, duration, channelPointsVotingEnabled, channelPointsPerVote, customtoken) };
endPoll = (id: string, status: pollStatusType, customtoken?: string) => { return endPoll(this.symbol, id, status, customtoken) };
};

@@ -7,3 +7,3 @@ import { request } from "oberknecht-request";

export async function createPoll(sym: string, title: string, choices: choices_ /* Min. 2, Max. 5 */, duration: Number /* in Seconds, Min. 15, Max 1800 */, channelPointsVotingEnabled?: boolean, channelPointsPerVote?: boolean, customtoken?: string) {
export async function createPoll(sym: string, title: string, choices: choices_ /* Min. 2, Max. 5 */, duration: Number /* in Seconds, Min. 15, Max 1800 */, channelPointsVotingEnabled?: boolean, channelPointsPerVote?: number, customtoken?: string) {
return new Promise<createPollResponse>(async (resolve, reject) => {

@@ -10,0 +10,0 @@ if ((!(sym ?? undefined) && !(customtoken ?? undefined))) return reject(Error(`sym and customtoken are undefined`));

{
"name": "oberknecht-api",
"version": "1.0.7",
"version": "1.0.8",
"description": "A client for easy usage of the Twitch API (Helix)",

@@ -5,0 +5,0 @@ "main": "./export",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc