Skip to content

Commit

Permalink
chore: remove autopilot reference (#1007)
Browse files Browse the repository at this point in the history
* chore: removing auotpilot references

* chore: enables cluster tests
  • Loading branch information
tiwarishubham635 committed Feb 29, 2024
1 parent b7a0826 commit 64cbacd
Show file tree
Hide file tree
Showing 20 changed files with 14 additions and 8,538 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/test-and-deploy.yml
Expand Up @@ -33,20 +33,20 @@ jobs:
- name: Run Unit Tests
run: npm run ci

# - name: Run Cluster Tests
# if: (!github.event.pull_request.head.repo.fork)
# env:
# TWILIO_ACCOUNT_SID: ${{ secrets.TWILIO_ACCOUNT_SID }}
# TWILIO_API_KEY: ${{ secrets.TWILIO_CLUSTER_TEST_API_KEY}}
# TWILIO_API_SECRET: ${{ secrets.TWILIO_CLUSTER_TEST_API_KEY_SECRET }}
# TWILIO_FROM_NUMBER: ${{ secrets.TWILIO_FROM_NUMBER }}
# TWILIO_TO_NUMBER: ${{ secrets.TWILIO_TO_NUMBER }}
# run: |
# npm pack
# tar -xzf twilio*.tgz
# cd spec/cluster
# npm install
# npm run test
- name: Run Cluster Tests
if: (!github.event.pull_request.head.repo.fork)
env:
TWILIO_ACCOUNT_SID: ${{ secrets.TWILIO_ACCOUNT_SID }}
TWILIO_API_KEY: ${{ secrets.TWILIO_CLUSTER_TEST_API_KEY}}
TWILIO_API_SECRET: ${{ secrets.TWILIO_CLUSTER_TEST_API_KEY_SECRET }}
TWILIO_FROM_NUMBER: ${{ secrets.TWILIO_FROM_NUMBER }}
TWILIO_TO_NUMBER: ${{ secrets.TWILIO_TO_NUMBER }}
run: |
npm pack
tar -xzf twilio*.tgz
cd spec/cluster
npm install
npm run test
- name: SonarCloud Scan
if: ${{ (github.event_name == 'pull_request' || github.ref_type == 'branch') && matrix.node == '18' && !github.event.pull_request.head.repo.fork }}
Expand Down
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.

10 changes: 0 additions & 10 deletions src/rest/Twilio.ts
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 @@ -82,8 +81,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 @@ -170,7 +167,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 @@ -218,12 +214,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.

0 comments on commit 64cbacd

Please sign in to comment.