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: remove preview sync api #1041

Merged
merged 2 commits into from
Oct 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
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
Loading