Skip to content

Commit

Permalink
chore: remove preview sync api (#1041)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbansla authored Oct 24, 2024
1 parent b68e81f commit 3723901
Show file tree
Hide file tree
Showing 12 changed files with 0 additions and 6,233 deletions.
9 changes: 0 additions & 9 deletions src/rest/Preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { AuthorizationDocumentListInstance } from "./preview/hosted_numbers/auth
import { HostedNumberOrderListInstance } from "./preview/hosted_numbers/hostedNumberOrder";
import { AvailableAddOnListInstance } from "./preview/marketplace/availableAddOn";
import { InstalledAddOnListInstance } from "./preview/marketplace/installedAddOn";
import { ServiceListInstance } from "./preview/sync/service";
import { CommandListInstance } from "./preview/wireless/command";
import { RatePlanListInstance } from "./preview/wireless/ratePlan";
import { SimListInstance } from "./preview/wireless/sim";
Expand Down Expand Up @@ -49,14 +48,6 @@ class Preview extends PreviewBase {
return this.marketplace.installedAddOns;
}

/**
* @deprecated - Use sync.services instead
*/
get services(): ServiceListInstance {
console.warn("services is deprecated. Use sync.services instead.");
return this.sync.services;
}

/**
* @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 @@ -11,13 +11,11 @@

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

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

Expand All @@ -34,10 +32,6 @@ class PreviewBase extends Domain {
this._hosted_numbers = this._hosted_numbers || new HostedNumbers(this);
return this._hosted_numbers;
}
get sync(): Sync {
this._sync = this._sync || new Sync(this);
return this._sync;
}
get marketplace(): Marketplace {
this._marketplace = this._marketplace || new Marketplace(this);
return this._marketplace;
Expand Down
37 changes: 0 additions & 37 deletions src/rest/preview/Sync.ts

This file was deleted.

Loading

0 comments on commit 3723901

Please sign in to comment.