Skip to content

Commit

Permalink
chore: Removing tests related to Autopilot and Understand Endpoints -…
Browse files Browse the repository at this point in the history
… product EoL (#985)
  • Loading branch information
miriamela authored Jan 8, 2024
1 parent dc1e741 commit 2144440
Show file tree
Hide file tree
Showing 36 changed files with 0 additions and 16,375 deletions.
25 changes: 0 additions & 25 deletions src/rest/Autopilot.ts

This file was deleted.

33 changes: 0 additions & 33 deletions src/rest/AutopilotBase.ts

This file was deleted.

11 changes: 0 additions & 11 deletions src/rest/Preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { HostedNumberOrderListInstance } from "./preview/hosted_numbers/hostedNu
import { AvailableAddOnListInstance } from "./preview/marketplace/availableAddOn";
import { InstalledAddOnListInstance } from "./preview/marketplace/installedAddOn";
import { ServiceListInstance } from "./preview/sync/service";
import { AssistantListInstance } from "./preview/understand/assistant";
import { CommandListInstance } from "./preview/wireless/command";
import { RatePlanListInstance } from "./preview/wireless/ratePlan";
import { SimListInstance } from "./preview/wireless/sim";
Expand Down Expand Up @@ -67,16 +66,6 @@ class Preview extends PreviewBase {
return this.sync.services;
}

/**
* @deprecated - Use understand.assistants instead
*/
get assistants(): AssistantListInstance {
console.warn(
"assistants is deprecated. Use understand.assistants instead."
);
return this.understand.assistants;
}

/**
* @deprecated - Use wireless.commands instead
*/
Expand Down
6 changes: 0 additions & 6 deletions src/rest/PreviewBase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,13 @@ import DeployedDevices from "./preview/DeployedDevices";
import HostedNumbers from "./preview/HostedNumbers";
import Sync from "./preview/Sync";
import Marketplace from "./preview/Marketplace";
import Understand from "./preview/Understand";
import Wireless from "./preview/Wireless";

class PreviewBase extends Domain {
_deployed_devices?: DeployedDevices;
_hosted_numbers?: HostedNumbers;
_sync?: Sync;
_marketplace?: Marketplace;
_understand?: Understand;
_wireless?: Wireless;

/**
Expand Down Expand Up @@ -51,10 +49,6 @@ class PreviewBase extends Domain {
this._marketplace = this._marketplace || new Marketplace(this);
return this._marketplace;
}
get understand(): Understand {
this._understand = this._understand || new Understand(this);
return this._understand;
}
get wireless(): Wireless {
this._wireless = this._wireless || new Wireless(this);
return this._wireless;
Expand Down
10 changes: 0 additions & 10 deletions src/rest/Twilio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -81,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 */
Expand Down Expand Up @@ -167,7 +164,6 @@ class Twilio extends Client {
if (this.opts?.lazyLoading === false) {
this.accounts;
this.api;
this.autopilot;
this.bulkexports;
this.chat;
this.content;
Expand Down Expand Up @@ -214,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 (
Expand Down
47 changes: 0 additions & 47 deletions src/rest/autopilot/V1.ts

This file was deleted.

Loading

0 comments on commit 2144440

Please sign in to comment.