From b8a6bde3b8bf2cbf886dfd5815bf2d652962fd67 Mon Sep 17 00:00:00 2001 From: Shubham Tiwari Date: Sat, 27 Jan 2024 11:44:15 +0530 Subject: [PATCH] chore: removed static files for oath and autopilot --- src/rest/Autopilot.ts | 5 ----- src/rest/AutopilotBase.ts | 33 --------------------------------- src/rest/Oauth.ts | 5 ----- src/rest/OauthBase.ts | 33 --------------------------------- src/rest/Twilio.ts | 18 ------------------ 5 files changed, 94 deletions(-) delete mode 100644 src/rest/Autopilot.ts delete mode 100644 src/rest/AutopilotBase.ts delete mode 100644 src/rest/Oauth.ts delete mode 100644 src/rest/OauthBase.ts diff --git a/src/rest/Autopilot.ts b/src/rest/Autopilot.ts deleted file mode 100644 index 06641612fb..0000000000 --- a/src/rest/Autopilot.ts +++ /dev/null @@ -1,5 +0,0 @@ -import AutopilotBase from "./AutopilotBase"; - -class Autopilot extends AutopilotBase {} - -export = Autopilot; diff --git a/src/rest/AutopilotBase.ts b/src/rest/AutopilotBase.ts deleted file mode 100644 index 59242a4497..0000000000 --- a/src/rest/AutopilotBase.ts +++ /dev/null @@ -1,33 +0,0 @@ -/* - * This code was generated by - * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ - * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ - * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ - * - * NOTE: This class is auto generated by OpenAPI Generator. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import Domain from "../base/Domain"; -import V1 from "./autopilot/V1"; - -class AutopilotBase extends Domain { - _v1?: V1; - - /** - * Initialize autopilot domain - * - * @param twilio - The twilio client - */ - constructor(twilio: any) { - super(twilio, "https://autopilot.twilio.com"); - } - - get v1(): V1 { - this._v1 = this._v1 || new V1(this); - return this._v1; - } -} - -export = AutopilotBase; diff --git a/src/rest/Oauth.ts b/src/rest/Oauth.ts deleted file mode 100644 index 62ea7c5e57..0000000000 --- a/src/rest/Oauth.ts +++ /dev/null @@ -1,5 +0,0 @@ -import OauthBase from "./OauthBase"; - -class Oauth extends OauthBase {} - -export = Oauth; diff --git a/src/rest/OauthBase.ts b/src/rest/OauthBase.ts deleted file mode 100644 index 513dd037f3..0000000000 --- a/src/rest/OauthBase.ts +++ /dev/null @@ -1,33 +0,0 @@ -/* - * This code was generated by - * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ - * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ - * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ - * - * NOTE: This class is auto generated by OpenAPI Generator. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import Domain from "../base/Domain"; -import V1 from "./oauth/V1"; - -class OauthBase extends Domain { - _v1?: V1; - - /** - * Initialize oauth domain - * - * @param twilio - The twilio client - */ - constructor(twilio: any) { - super(twilio, "https://oauth.twilio.com"); - } - - get v1(): V1 { - this._v1 = this._v1 || new V1(this); - return this._v1; - } -} - -export = OauthBase; diff --git a/src/rest/Twilio.ts b/src/rest/Twilio.ts index 1a21d3a500..ca69fa3b22 100644 --- a/src/rest/Twilio.ts +++ b/src/rest/Twilio.ts @@ -12,7 +12,6 @@ import { Client, ClientOpts, RequestOpts } from "../base/BaseTwilio"; import Accounts from "./Accounts"; import Api from "./Api"; -import Autopilot from "./Autopilot"; import Bulkexports from "./Bulkexports"; import Chat from "./Chat"; import Content from "./Content"; @@ -30,7 +29,6 @@ import Microvisor from "./Microvisor"; import Monitor from "./Monitor"; import Notify from "./Notify"; import Numbers from "./Numbers"; -import Oauth from "./Oauth"; import Preview from "./Preview"; import Pricing from "./Pricing"; import Proxy from "./Proxy"; @@ -82,8 +80,6 @@ class Twilio extends Client { _accounts?: Accounts; /** (Twilio.Api) - api domain */ _api?: Api; - /** (Twilio.Autopilot) - autopilot domain */ - _autopilot?: Autopilot; /** (Twilio.Bulkexports) - bulkexports domain */ _bulkexports?: Bulkexports; /** (Twilio.Chat) - chat domain */ @@ -118,8 +114,6 @@ class Twilio extends Client { _notify?: Notify; /** (Twilio.Numbers) - numbers domain */ _numbers?: Numbers; - /** (Twilio.Oauth) - oauth domain */ - _oauth?: Oauth; /** (Twilio.Preview) - preview domain */ _preview?: Preview; /** (Twilio.Pricing) - pricing domain */ @@ -170,7 +164,6 @@ class Twilio extends Client { if (this.opts?.lazyLoading === false) { this.accounts; this.api; - this.autopilot; this.bulkexports; this.chat; this.content; @@ -188,7 +181,6 @@ class Twilio extends Client { this.monitor; this.notify; this.numbers; - this.oauth; this.preview; this.pricing; this.proxy; @@ -218,12 +210,6 @@ class Twilio extends Client { get api(): Api { return this._api ?? (this._api = new (require("./Api"))(this)); } - /** Getter for (Twilio.Autopilot) domain */ - get autopilot(): Autopilot { - return ( - this._autopilot ?? (this._autopilot = new (require("./Autopilot"))(this)) - ); - } /** Getter for (Twilio.Bulkexports) domain */ get bulkexports(): Bulkexports { return ( @@ -314,10 +300,6 @@ class Twilio extends Client { get numbers(): Numbers { return this._numbers ?? (this._numbers = new (require("./Numbers"))(this)); } - /** Getter for (Twilio.Oauth) domain */ - get oauth(): Oauth { - return this._oauth ?? (this._oauth = new (require("./Oauth"))(this)); - } /** Getter for (Twilio.Preview) domain */ get preview(): Preview { return this._preview ?? (this._preview = new (require("./Preview"))(this));