Skip to content

Commit

Permalink
feat: export enum types (#917)
Browse files Browse the repository at this point in the history
  • Loading branch information
childish-sambino authored Feb 22, 2023
1 parent d0ed963 commit aaac4e3
Show file tree
Hide file tree
Showing 193 changed files with 428 additions and 347 deletions.
4 changes: 2 additions & 2 deletions src/rest/api/v2010/account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ import { TranscriptionListInstance } from "./account/transcription";
import { UsageListInstance } from "./account/usage";
import { ValidationRequestListInstance } from "./account/validationRequest";

type AccountStatus = "active" | "suspended" | "closed";
export type AccountStatus = "active" | "suspended" | "closed";

type AccountType = "Trial" | "Full";
export type AccountType = "Trial" | "Full";

/**
* Options to pass to update a AccountInstance
Expand Down
4 changes: 2 additions & 2 deletions src/rest/api/v2010/account/address/dependentPhoneNumber.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ const deserialize = require("../../../../../base/deserialize");
const serialize = require("../../../../../base/serialize");
import { isValidPathParam } from "../../../../../base/utility";

type DependentPhoneNumberAddressRequirement =
export type DependentPhoneNumberAddressRequirement =
| "none"
| "any"
| "local"
| "foreign";

type DependentPhoneNumberEmergencyStatus = "Active" | "Inactive";
export type DependentPhoneNumberEmergencyStatus = "Active" | "Inactive";

/**
* Options to pass to each
Expand Down
2 changes: 1 addition & 1 deletion src/rest/api/v2010/account/authorizedConnectApp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const deserialize = require("../../../../base/deserialize");
const serialize = require("../../../../base/serialize");
import { isValidPathParam } from "../../../../base/utility";

type AuthorizedConnectAppPermission = "get-all" | "post-all";
export type AuthorizedConnectAppPermission = "get-all" | "post-all";

/**
* Options to pass to each
Expand Down
4 changes: 2 additions & 2 deletions src/rest/api/v2010/account/call.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import { UserDefinedMessageListInstance } from "./call/userDefinedMessage";
import { UserDefinedMessageSubscriptionListInstance } from "./call/userDefinedMessageSubscription";
import TwiML from "../../../../twiml/TwiML";

type CallStatus =
export type CallStatus =
| "queued"
| "ringing"
| "in-progress"
Expand All @@ -41,7 +41,7 @@ type CallStatus =
| "no-answer"
| "canceled";

type CallUpdateStatus = "canceled" | "completed";
export type CallUpdateStatus = "canceled" | "completed";

/**
* Options to pass to update a CallInstance
Expand Down
2 changes: 1 addition & 1 deletion src/rest/api/v2010/account/call/feedback.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const deserialize = require("../../../../../base/deserialize");
const serialize = require("../../../../../base/serialize");
import { isValidPathParam } from "../../../../../base/utility";

type CallFeedbackIssues =
export type CallFeedbackIssues =
| "audio-latency"
| "digits-not-captured"
| "dropped-call"
Expand Down
2 changes: 1 addition & 1 deletion src/rest/api/v2010/account/call/feedbackSummary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const deserialize = require("../../../../../base/deserialize");
const serialize = require("../../../../../base/serialize");
import { isValidPathParam } from "../../../../../base/utility";

type CallFeedbackSummaryStatus =
export type CallFeedbackSummaryStatus =
| "queued"
| "in-progress"
| "completed"
Expand Down
10 changes: 5 additions & 5 deletions src/rest/api/v2010/account/call/payment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,24 +18,24 @@ const deserialize = require("../../../../../base/deserialize");
const serialize = require("../../../../../base/serialize");
import { isValidPathParam } from "../../../../../base/utility";

type PaymentsBankAccountType =
export type PaymentsBankAccountType =
| "consumer-checking"
| "consumer-savings"
| "commercial-checking";

type PaymentsCapture =
export type PaymentsCapture =
| "payment-card-number"
| "expiration-date"
| "security-code"
| "postal-code"
| "bank-routing-number"
| "bank-account-number";

type PaymentsPaymentMethod = "credit-card" | "ach-debit";
export type PaymentsPaymentMethod = "credit-card" | "ach-debit";

type PaymentsStatus = "complete" | "cancel";
export type PaymentsStatus = "complete" | "cancel";

type PaymentsTokenType = "one-time" | "reusable";
export type PaymentsTokenType = "one-time" | "reusable";

/**
* Options to pass to update a PaymentInstance
Expand Down
4 changes: 2 additions & 2 deletions src/rest/api/v2010/account/call/recording.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const deserialize = require("../../../../../base/deserialize");
const serialize = require("../../../../../base/serialize");
import { isValidPathParam } from "../../../../../base/utility";

type CallRecordingSource =
export type CallRecordingSource =
| "DialVerb"
| "Conference"
| "OutboundAPI"
Expand All @@ -29,7 +29,7 @@ type CallRecordingSource =
| "StartCallRecordingAPI"
| "StartConferenceRecordingAPI";

type CallRecordingStatus =
export type CallRecordingStatus =
| "in-progress"
| "paused"
| "stopped"
Expand Down
6 changes: 3 additions & 3 deletions src/rest/api/v2010/account/call/siprec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ const deserialize = require("../../../../../base/deserialize");
const serialize = require("../../../../../base/serialize");
import { isValidPathParam } from "../../../../../base/utility";

type SiprecStatus = "in-progress" | "stopped";
export type SiprecStatus = "in-progress" | "stopped";

type SiprecTrack = "inbound_track" | "outbound_track" | "both_tracks";
export type SiprecTrack = "inbound_track" | "outbound_track" | "both_tracks";

type SiprecUpdateStatus = "stopped";
export type SiprecUpdateStatus = "stopped";

/**
* Options to pass to update a SiprecInstance
Expand Down
6 changes: 3 additions & 3 deletions src/rest/api/v2010/account/call/stream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ const deserialize = require("../../../../../base/deserialize");
const serialize = require("../../../../../base/serialize");
import { isValidPathParam } from "../../../../../base/utility";

type StreamStatus = "in-progress" | "stopped";
export type StreamStatus = "in-progress" | "stopped";

type StreamTrack = "inbound_track" | "outbound_track" | "both_tracks";
export type StreamTrack = "inbound_track" | "outbound_track" | "both_tracks";

type StreamUpdateStatus = "stopped";
export type StreamUpdateStatus = "stopped";

/**
* Options to pass to update a StreamInstance
Expand Down
6 changes: 3 additions & 3 deletions src/rest/api/v2010/account/conference.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,16 @@ import { isValidPathParam } from "../../../../base/utility";
import { ParticipantListInstance } from "./conference/participant";
import { RecordingListInstance } from "./conference/recording";

type ConferenceReasonConferenceEnded =
export type ConferenceReasonConferenceEnded =
| "conference-ended-via-api"
| "participant-with-end-conference-on-exit-left"
| "participant-with-end-conference-on-exit-kicked"
| "last-participant-kicked"
| "last-participant-left";

type ConferenceStatus = "init" | "in-progress" | "completed";
export type ConferenceStatus = "init" | "in-progress" | "completed";

type ConferenceUpdateStatus = "completed";
export type ConferenceUpdateStatus = "completed";

/**
* Options to pass to update a ConferenceInstance
Expand Down
2 changes: 1 addition & 1 deletion src/rest/api/v2010/account/conference/participant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const deserialize = require("../../../../../base/deserialize");
const serialize = require("../../../../../base/serialize");
import { isValidPathParam } from "../../../../../base/utility";

type ParticipantStatus =
export type ParticipantStatus =
| "queued"
| "connecting"
| "ringing"
Expand Down
4 changes: 2 additions & 2 deletions src/rest/api/v2010/account/conference/recording.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const deserialize = require("../../../../../base/deserialize");
const serialize = require("../../../../../base/serialize");
import { isValidPathParam } from "../../../../../base/utility";

type ConferenceRecordingSource =
export type ConferenceRecordingSource =
| "DialVerb"
| "Conference"
| "OutboundAPI"
Expand All @@ -29,7 +29,7 @@ type ConferenceRecordingSource =
| "StartCallRecordingAPI"
| "StartConferenceRecordingAPI";

type ConferenceRecordingStatus =
export type ConferenceRecordingStatus =
| "in-progress"
| "paused"
| "stopped"
Expand Down
2 changes: 1 addition & 1 deletion src/rest/api/v2010/account/connectApp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const deserialize = require("../../../../base/deserialize");
const serialize = require("../../../../base/serialize");
import { isValidPathParam } from "../../../../base/utility";

type ConnectAppPermission = "get-all" | "post-all";
export type ConnectAppPermission = "get-all" | "post-all";

/**
* Options to pass to update a ConnectAppInstance
Expand Down
8 changes: 4 additions & 4 deletions src/rest/api/v2010/account/incomingPhoneNumber.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,23 +25,23 @@ import { MobileListInstance } from "./incomingPhoneNumber/mobile";
import { TollFreeListInstance } from "./incomingPhoneNumber/tollFree";
import { PhoneNumberCapabilities } from "../../../../interfaces";

type IncomingPhoneNumberAddressRequirement =
export type IncomingPhoneNumberAddressRequirement =
| "none"
| "any"
| "local"
| "foreign";

type IncomingPhoneNumberEmergencyAddressStatus =
export type IncomingPhoneNumberEmergencyAddressStatus =
| "registered"
| "unregistered"
| "pending-registration"
| "registration-failure"
| "pending-unregistration"
| "unregistration-failure";

type IncomingPhoneNumberEmergencyStatus = "Active" | "Inactive";
export type IncomingPhoneNumberEmergencyStatus = "Active" | "Inactive";

type IncomingPhoneNumberVoiceReceiveMode = "voice" | "fax";
export type IncomingPhoneNumberVoiceReceiveMode = "voice" | "fax";

/**
* Options to pass to update a IncomingPhoneNumberInstance
Expand Down
8 changes: 4 additions & 4 deletions src/rest/api/v2010/account/incomingPhoneNumber/local.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,23 @@ const serialize = require("../../../../../base/serialize");
import { isValidPathParam } from "../../../../../base/utility";
import { PhoneNumberCapabilities } from "../../../../../interfaces";

type IncomingPhoneNumberLocalAddressRequirement =
export type IncomingPhoneNumberLocalAddressRequirement =
| "none"
| "any"
| "local"
| "foreign";

type IncomingPhoneNumberLocalEmergencyAddressStatus =
export type IncomingPhoneNumberLocalEmergencyAddressStatus =
| "registered"
| "unregistered"
| "pending-registration"
| "registration-failure"
| "pending-unregistration"
| "unregistration-failure";

type IncomingPhoneNumberLocalEmergencyStatus = "Active" | "Inactive";
export type IncomingPhoneNumberLocalEmergencyStatus = "Active" | "Inactive";

type IncomingPhoneNumberLocalVoiceReceiveMode = "voice" | "fax";
export type IncomingPhoneNumberLocalVoiceReceiveMode = "voice" | "fax";

/**
* Options to pass to create a LocalInstance
Expand Down
8 changes: 4 additions & 4 deletions src/rest/api/v2010/account/incomingPhoneNumber/mobile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,23 @@ const serialize = require("../../../../../base/serialize");
import { isValidPathParam } from "../../../../../base/utility";
import { PhoneNumberCapabilities } from "../../../../../interfaces";

type IncomingPhoneNumberMobileAddressRequirement =
export type IncomingPhoneNumberMobileAddressRequirement =
| "none"
| "any"
| "local"
| "foreign";

type IncomingPhoneNumberMobileEmergencyAddressStatus =
export type IncomingPhoneNumberMobileEmergencyAddressStatus =
| "registered"
| "unregistered"
| "pending-registration"
| "registration-failure"
| "pending-unregistration"
| "unregistration-failure";

type IncomingPhoneNumberMobileEmergencyStatus = "Active" | "Inactive";
export type IncomingPhoneNumberMobileEmergencyStatus = "Active" | "Inactive";

type IncomingPhoneNumberMobileVoiceReceiveMode = "voice" | "fax";
export type IncomingPhoneNumberMobileVoiceReceiveMode = "voice" | "fax";

/**
* Options to pass to create a MobileInstance
Expand Down
8 changes: 4 additions & 4 deletions src/rest/api/v2010/account/incomingPhoneNumber/tollFree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,23 @@ const serialize = require("../../../../../base/serialize");
import { isValidPathParam } from "../../../../../base/utility";
import { PhoneNumberCapabilities } from "../../../../../interfaces";

type IncomingPhoneNumberTollFreeAddressRequirement =
export type IncomingPhoneNumberTollFreeAddressRequirement =
| "none"
| "any"
| "local"
| "foreign";

type IncomingPhoneNumberTollFreeEmergencyAddressStatus =
export type IncomingPhoneNumberTollFreeEmergencyAddressStatus =
| "registered"
| "unregistered"
| "pending-registration"
| "registration-failure"
| "pending-unregistration"
| "unregistration-failure";

type IncomingPhoneNumberTollFreeEmergencyStatus = "Active" | "Inactive";
export type IncomingPhoneNumberTollFreeEmergencyStatus = "Active" | "Inactive";

type IncomingPhoneNumberTollFreeVoiceReceiveMode = "voice" | "fax";
export type IncomingPhoneNumberTollFreeVoiceReceiveMode = "voice" | "fax";

/**
* Options to pass to create a TollFreeInstance
Expand Down
12 changes: 6 additions & 6 deletions src/rest/api/v2010/account/message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,19 @@ import { isValidPathParam } from "../../../../base/utility";
import { FeedbackListInstance } from "./message/feedback";
import { MediaListInstance } from "./message/media";

type MessageAddressRetention = "retain";
export type MessageAddressRetention = "retain";

type MessageContentRetention = "retain";
export type MessageContentRetention = "retain";

type MessageDirection =
export type MessageDirection =
| "inbound"
| "outbound-api"
| "outbound-call"
| "outbound-reply";

type MessageScheduleType = "fixed";
export type MessageScheduleType = "fixed";

type MessageStatus =
export type MessageStatus =
| "queued"
| "sending"
| "sent"
Expand All @@ -49,7 +49,7 @@ type MessageStatus =
| "partially_delivered"
| "canceled";

type MessageUpdateStatus = "canceled";
export type MessageUpdateStatus = "canceled";

/**
* Options to pass to update a MessageInstance
Expand Down
2 changes: 1 addition & 1 deletion src/rest/api/v2010/account/message/feedback.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const deserialize = require("../../../../../base/deserialize");
const serialize = require("../../../../../base/serialize");
import { isValidPathParam } from "../../../../../base/utility";

type MessageFeedbackOutcome = "confirmed" | "unconfirmed";
export type MessageFeedbackOutcome = "confirmed" | "unconfirmed";

/**
* Options to pass to create a FeedbackInstance
Expand Down
4 changes: 2 additions & 2 deletions src/rest/api/v2010/account/recording.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import { isValidPathParam } from "../../../../base/utility";
import { AddOnResultListInstance } from "./recording/addOnResult";
import { TranscriptionListInstance } from "./recording/transcription";

type RecordingSource =
export type RecordingSource =
| "DialVerb"
| "Conference"
| "OutboundAPI"
Expand All @@ -31,7 +31,7 @@ type RecordingSource =
| "StartCallRecordingAPI"
| "StartConferenceRecordingAPI";

type RecordingStatus =
export type RecordingStatus =
| "in-progress"
| "paused"
| "stopped"
Expand Down
2 changes: 1 addition & 1 deletion src/rest/api/v2010/account/recording/addOnResult.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const serialize = require("../../../../../base/serialize");
import { isValidPathParam } from "../../../../../base/utility";
import { PayloadListInstance } from "./addOnResult/payload";

type RecordingAddOnResultStatus =
export type RecordingAddOnResultStatus =
| "canceled"
| "completed"
| "deleted"
Expand Down
Loading

0 comments on commit aaac4e3

Please sign in to comment.