Skip to content

Commit

Permalink
Sync for IoT has reached EOL; removing reference to Deployed Devices (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
wanjunsli authored Sep 24, 2024
1 parent 6033208 commit 34e7fbc
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 3,708 deletions.
9 changes: 0 additions & 9 deletions src/rest/Preview.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { FleetListInstance } from "./preview/deployed_devices/fleet";
import { AuthorizationDocumentListInstance } from "./preview/hosted_numbers/authorizationDocument";
import { HostedNumberOrderListInstance } from "./preview/hosted_numbers/hostedNumberOrder";
import { AvailableAddOnListInstance } from "./preview/marketplace/availableAddOn";
Expand All @@ -10,14 +9,6 @@ import { SimListInstance } from "./preview/wireless/sim";
import PreviewBase from "./PreviewBase";

class Preview extends PreviewBase {
/**
* @deprecated - Use deployed_devices.fleets instead
*/
get fleets(): FleetListInstance {
console.warn("fleets is deprecated. Use deployed_devices.fleets instead.");
return this.deployed_devices.fleets;
}

/**
* @deprecated - Use hosted_numbers.authorizationDocuments instead
*/
Expand Down
8 changes: 0 additions & 8 deletions src/rest/PreviewBase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,12 @@
*/

import Domain from "../base/Domain";
import DeployedDevices from "./preview/DeployedDevices";
import HostedNumbers from "./preview/HostedNumbers";
import Sync from "./preview/Sync";
import Marketplace from "./preview/Marketplace";
import Wireless from "./preview/Wireless";

class PreviewBase extends Domain {
_deployed_devices?: DeployedDevices;
_hosted_numbers?: HostedNumbers;
_sync?: Sync;
_marketplace?: Marketplace;
Expand All @@ -31,12 +29,6 @@ class PreviewBase extends Domain {
constructor(twilio: any) {
super(twilio, "https://preview.twilio.com");
}

get deployed_devices(): DeployedDevices {
this._deployed_devices =
this._deployed_devices || new DeployedDevices(this);
return this._deployed_devices;
}
get hosted_numbers(): HostedNumbers {
this._hosted_numbers = this._hosted_numbers || new HostedNumbers(this);
return this._hosted_numbers;
Expand Down
37 changes: 0 additions & 37 deletions src/rest/preview/DeployedDevices.ts

This file was deleted.

Loading

0 comments on commit 34e7fbc

Please sign in to comment.