Add files via upload

This commit is contained in:
shahramdj
2022-10-07 15:45:45 -04:00
committed by GitHub
parent 8ddcc312b7
commit 91c72d107e
78 changed files with 6467 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
import TwitterApiv2LabsReadWrite from './client.v2.labs.write';
/**
* Twitter v2 labs client with all rights (read/write/DMs)
*/
export declare class TwitterApiv2Labs extends TwitterApiv2LabsReadWrite {
protected _prefix: string;
/**
* Get a client with read/write rights.
*/
get readWrite(): TwitterApiv2LabsReadWrite;
}
export default TwitterApiv2Labs;

View File

@@ -0,0 +1,25 @@
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.TwitterApiv2Labs = void 0;
const globals_1 = require("../globals");
const client_v2_labs_write_1 = __importDefault(require("./client.v2.labs.write"));
/**
* Twitter v2 labs client with all rights (read/write/DMs)
*/
class TwitterApiv2Labs extends client_v2_labs_write_1.default {
constructor() {
super(...arguments);
this._prefix = globals_1.API_V2_LABS_PREFIX;
}
/**
* Get a client with read/write rights.
*/
get readWrite() {
return this;
}
}
exports.TwitterApiv2Labs = TwitterApiv2Labs;
exports.default = TwitterApiv2Labs;

View File

@@ -0,0 +1,7 @@
import TwitterApiSubClient from '../client.subclient';
/**
* Base Twitter v2 labs client with only read right.
*/
export default class TwitterApiv2LabsReadOnly extends TwitterApiSubClient {
protected _prefix: string;
}

View File

@@ -0,0 +1,17 @@
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const client_subclient_1 = __importDefault(require("../client.subclient"));
const globals_1 = require("../globals");
/**
* Base Twitter v2 labs client with only read right.
*/
class TwitterApiv2LabsReadOnly extends client_subclient_1.default {
constructor() {
super(...arguments);
this._prefix = globals_1.API_V2_LABS_PREFIX;
}
}
exports.default = TwitterApiv2LabsReadOnly;

View File

@@ -0,0 +1,11 @@
import TwitterApiv2LabsReadOnly from './client.v2.labs.read';
/**
* Base Twitter v2 labs client with read/write rights.
*/
export default class TwitterApiv2LabsReadWrite extends TwitterApiv2LabsReadOnly {
protected _prefix: string;
/**
* Get a client with only read rights.
*/
get readOnly(): TwitterApiv2LabsReadOnly;
}

View File

@@ -0,0 +1,23 @@
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const globals_1 = require("../globals");
const client_v2_labs_read_1 = __importDefault(require("./client.v2.labs.read"));
/**
* Base Twitter v2 labs client with read/write rights.
*/
class TwitterApiv2LabsReadWrite extends client_v2_labs_read_1.default {
constructor() {
super(...arguments);
this._prefix = globals_1.API_V2_LABS_PREFIX;
}
/**
* Get a client with only read rights.
*/
get readOnly() {
return this;
}
}
exports.default = TwitterApiv2LabsReadWrite;