diff --git a/examples/node/src/rest/api/v2010/account.ts b/examples/node/src/rest/api/v2010/account.ts index b6855f885..e4d3c63de 100644 --- a/examples/node/src/rest/api/v2010/account.ts +++ b/examples/node/src/rest/api/v2010/account.ts @@ -28,7 +28,7 @@ export class TestResponseObjectTestArrayOfObjects { "description"?: string; } -type TestStatus = +export type TestStatus = | "in-progress" | "paused" | "stopped" diff --git a/examples/node/src/rest/api/v2010/account/call.ts b/examples/node/src/rest/api/v2010/account/call.ts index fe6351909..ce1bd8eea 100644 --- a/examples/node/src/rest/api/v2010/account/call.ts +++ b/examples/node/src/rest/api/v2010/account/call.ts @@ -25,7 +25,7 @@ export class TestResponseObjectTestArrayOfObjects { "description"?: string; } -type TestStatus = +export type TestStatus = | "in-progress" | "paused" | "stopped" diff --git a/examples/node/src/rest/api/v2010/account/call/feedbackCallSummary.ts b/examples/node/src/rest/api/v2010/account/call/feedbackCallSummary.ts index f13988c0e..6d08fe8f2 100644 --- a/examples/node/src/rest/api/v2010/account/call/feedbackCallSummary.ts +++ b/examples/node/src/rest/api/v2010/account/call/feedbackCallSummary.ts @@ -24,7 +24,7 @@ export class TestResponseObjectTestArrayOfObjects { "description"?: string; } -type TestStatus = +export type TestStatus = | "in-progress" | "paused" | "stopped" diff --git a/examples/node/src/rest/flexApi/v1/credential/newCredentials.ts b/examples/node/src/rest/flexApi/v1/credential/newCredentials.ts index 819840712..bb81baa33 100644 --- a/examples/node/src/rest/flexApi/v1/credential/newCredentials.ts +++ b/examples/node/src/rest/flexApi/v1/credential/newCredentials.ts @@ -18,7 +18,7 @@ const deserialize = require("../../../../base/deserialize"); const serialize = require("../../../../base/serialize"); import { isValidPathParam } from "../../../../base/utility"; -type TestStatus = +export type TestStatus = | "in-progress" | "paused" | "stopped" diff --git a/src/main/resources/twilio-node/model.mustache b/src/main/resources/twilio-node/model.mustache index c44138d4d..a5407697f 100644 --- a/src/main/resources/twilio-node/model.mustache +++ b/src/main/resources/twilio-node/model.mustache @@ -19,6 +19,6 @@ export class {{classname}} {{#parent}}extends {{{parent}}} {{/parent}}{ {{/isEnum}} {{#isEnum}} -type {{classname}} = {{#allowableValues}}{{#enumVars}}{{{value}}}{{^-last}}|{{/-last}}{{/enumVars}}{{/allowableValues}}; +export type {{classname}} = {{#allowableValues}}{{#enumVars}}{{{value}}}{{^-last}}|{{/-last}}{{/enumVars}}{{/allowableValues}}; {{/isEnum}} {{/models}}