Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Sync for IoT has reached EOL; removing reference to Deployed Devices #1037

Merged
merged 1 commit into from
Sep 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading