diff --git a/.eslintignore b/.eslintignore deleted file mode 100644 index 0e7fd1a8..00000000 --- a/.eslintignore +++ /dev/null @@ -1,4 +0,0 @@ -node_modules/ -.github/ -.yarn/ -lib/ diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index 1d2bd46b..00000000 --- a/.eslintrc.js +++ /dev/null @@ -1,9 +0,0 @@ -module.exports = { - extends: ['alloy', 'alloy/typescript', 'prettier'], - plugins: ['prettier'], - rules: { - 'prettier/prettier': ['error'], - quotes: ['error', 'single', { avoidEscape: true }], - 'prefer-const': ['error'], - }, -}; diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index f13663f9..c9a7a3a6 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -2,9 +2,9 @@ name: Node.js on: push: - branches: [ master ] + branches: [master] pull_request: - branches: [ master ] + branches: [master] jobs: build: @@ -12,18 +12,18 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 - with: - node-version: 21.x - - run: yarn install - - run: yarn reset - - run: yarn compile - - run: yarn test - env: - RINGCENTRAL_SERVER_URL: ${{ secrets.RINGCENTRAL_SERVER_URL }} - RINGCENTRAL_CLIENT_ID: ${{ secrets.RINGCENTRAL_CLIENT_ID }} - RINGCENTRAL_CLIENT_SECRET: ${{ secrets.RINGCENTRAL_CLIENT_SECRET }} - RINGCENTRAL_JWT_TOKEN: ${{ secrets.RINGCENTRAL_JWT_TOKEN }} - RINGCENTRAL_SENDER: ${{ secrets.RINGCENTRAL_SENDER }} - RINGCENTRAL_RECEIVER: ${{ secrets.RINGCENTRAL_RECEIVER }} + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: 21.x + - run: yarn install + - run: yarn reset + - run: yarn compile + - run: yarn test + env: + RINGCENTRAL_SERVER_URL: ${{ secrets.RINGCENTRAL_SERVER_URL }} + RINGCENTRAL_CLIENT_ID: ${{ secrets.RINGCENTRAL_CLIENT_ID }} + RINGCENTRAL_CLIENT_SECRET: ${{ secrets.RINGCENTRAL_CLIENT_SECRET }} + RINGCENTRAL_JWT_TOKEN: ${{ secrets.RINGCENTRAL_JWT_TOKEN }} + RINGCENTRAL_SENDER: ${{ secrets.RINGCENTRAL_SENDER }} + RINGCENTRAL_RECEIVER: ${{ secrets.RINGCENTRAL_RECEIVER }} diff --git a/.prettierignore b/.prettierignore deleted file mode 100644 index 0e7fd1a8..00000000 --- a/.prettierignore +++ /dev/null @@ -1,4 +0,0 @@ -node_modules/ -.github/ -.yarn/ -lib/ diff --git a/.prettierrc.js b/.prettierrc.js deleted file mode 100644 index 25ca558e..00000000 --- a/.prettierrc.js +++ /dev/null @@ -1,3 +0,0 @@ -module.exports = { - ...require('eslint-config-alloy/.prettierrc.js'), -}; diff --git a/README.md b/README.md index 3c1dec0c..573d37a8 100644 --- a/README.md +++ b/README.md @@ -2,12 +2,18 @@ [![Build Status](https://github.com/ringcentral/ringcentral-extensible/actions/workflows/node.js.yml/badge.svg)](https://github.com/ringcentral/ringcentral-extensible/actions) -RingCentral Extensible is a SDK with a tiny core and lots of extensions. -It is an endeavour to get rid of bloated SDK. You install extensions on demand. +RingCentral Extensible is a SDK with a tiny core and lots of extensions. It is +an endeavour to get rid of bloated SDK. You install extensions on demand. ## Getting help and support -If you are having difficulty using this SDK, or working with the RingCentral API, please visit our [developer community forums](https://community.ringcentral.com/spaces/144/) for help and to get quick answers to your questions. If you wish to contact the RingCentral Developer Support team directly, please [submit a help ticket](https://developers.ringcentral.com/support/create-case) from our developer website. +If you are having difficulty using this SDK, or working with the RingCentral +API, please visit our +[developer community forums](https://community.ringcentral.com/spaces/144/) for +help and to get quick answers to your questions. If you wish to contact the +RingCentral Developer Support team directly, please +[submit a help ticket](https://developers.ringcentral.com/support/create-case) +from our developer website. ## Installation @@ -18,7 +24,7 @@ yarn add @rc-ex/core Then you should be able to import the SDK like this: ```ts -import RingCentral from '@rc-ex/core'; +import RingCentral from "@rc-ex/core"; ``` ## Usage @@ -29,13 +35,15 @@ You can also find lots of useful code snippets from [test cases](./test). ## [Extensions](./packages/extensions) -This SDK supports [extensions](./packages/extensions). You can enable features by installing extensions. +This SDK supports [extensions](./packages/extensions). You can enable features +by installing extensions. If you want to add features to this SDK, create an extension. ## Logging -The logging implementation copies [AWS SDK logging](https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/logging-sdk-calls.html). +The logging implementation copies +[AWS SDK logging](https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/logging-sdk-calls.html). To enable logging: @@ -46,7 +54,7 @@ RingCentral.config.logger = console; Or you could use a third-party logger: ```ts -import winston from 'winston'; +import winston from "winston"; const logger = winston.createLogger({ transports: [ @@ -69,15 +77,19 @@ Sample log entries: ## Binary content downloading -Some [sample code](./packages/core/src/samples.md) for binary content downloading may not work. +Some [sample code](./packages/core/src/samples.md) for binary content +downloading may not work. -Because RingCentral is gradually migrating binary content to CDN such as `media.ringcentral.com`. +Because RingCentral is gradually migrating binary content to CDN such as +`media.ringcentral.com`. For example, to download the attachment of a fax: ```ts // `message` is the fax message object -const r = await rc.get(message.attachments[0].uri, undefined, { responseType: 'arraybuffer' }); +const r = await rc.get(message.attachments[0].uri, undefined, { + responseType: "arraybuffer", +}); const content = r.data; ``` @@ -96,15 +108,17 @@ const content = await rc ### Rule of thumb -But not all binary content has been migrated to CDN. -If the resource to download provides you with a CDN uri, use that CDN uri. -If there is no CDN uri provided, construct the uri as [sample code](./packages/core/src/samples.md) shows. +But not all binary content has been migrated to CDN. If the resource to download +provides you with a CDN uri, use that CDN uri. If there is no CDN uri provided, +construct the uri as [sample code](./packages/core/src/samples.md) shows. ## For maintainers ### Regenerate code using latest swagger spec -Please refer to the [RingCentral Code Generator](https://github.com/tylerlong/ringcentral-code-generator-typescript) project. +Please refer to the +[RingCentral Code Generator](https://github.com/tylerlong/ringcentral-code-generator-typescript) +project. ### Test @@ -133,7 +147,8 @@ As I just tried, it works without `from-package` option. ### NPM 2FA -I don't know how to make it work with lerna and I have to disable it via npmjs.com GUI: I disabled "Require two-factor authentication for write actions". +I don't know how to make it work with lerna and I have to disable it via +npmjs.com GUI: I disabled "Require two-factor authentication for write actions". ## Add dependency diff --git a/package.json b/package.json index a7b82080..21183065 100644 --- a/package.json +++ b/package.json @@ -11,20 +11,13 @@ ], "scripts": { "compile": "lerna exec tsc --scope=@rc-ex/core && lerna exec tsc --no-private --ignore=@rc-ex/core", - "lint": "eslint --fix '**/*.{ts,tsx,js,jsx}' && prettier --write . && sort-package-json", "prepublishOnly": "yarn reset && yarn compile", "reset": "lerna exec 'rm -rf lib'", "test": "yarn workspace @rc-ex/test run jest -w 1 --detectOpenHandles -c jest.config.ts $t", "upgrade-all": "yarn-upgrade-all -W && yarn workspaces run yarn-upgrade-all && yarn install" }, "devDependencies": { - "@types/node": "^22.10.7", - "@typescript-eslint/eslint-plugin": "^8.20.0", - "@typescript-eslint/parser": "^8.20.0", - "eslint": "^8.57.0", - "eslint-config-alloy": "^5.1.2", - "eslint-config-prettier": "^10.0.1", - "eslint-plugin-prettier": "^5.2.2", + "@types/node": "^22.10.10", "lerna": "^8.1.9", "prettier": "^3.4.2", "sort-package-json": "^2.14.0", @@ -32,10 +25,5 @@ "ttpt": "^0.13.0", "typescript": "^5.7.3", "yarn-upgrade-all": "^0.7.4" - }, - "yarn-upgrade-all": { - "ignore": [ - "eslint" - ] } } diff --git a/packages/core/README.md b/packages/core/README.md index 507baaeb..98129a77 100644 --- a/packages/core/README.md +++ b/packages/core/README.md @@ -1,3 +1,5 @@ # Core of RingCentral Extension SDK -Please read the readme file of the [parent project](https://github.com/ringcentral/ringcentral-extensible) for more information. +Please read the readme file of the +[parent project](https://github.com/ringcentral/ringcentral-extensible) for more +information. diff --git a/packages/core/code-generator.ts b/packages/core/code-generator.ts index 2ba77c15..488ba3bd 100644 --- a/packages/core/code-generator.ts +++ b/packages/core/code-generator.ts @@ -1,4 +1,4 @@ -import generate from 'ringcentral-code-generator'; -import path from 'path'; +import generate from "ringcentral-code-generator"; +import path from "path"; -generate(process.env.SPEC_FILE_PATH!, path.join(__dirname, 'src')); +generate(process.env.SPEC_FILE_PATH!, path.join(__dirname, "src")); diff --git a/packages/core/src/FormData.ts b/packages/core/src/FormData.ts index 006072ad..0e362281 100644 --- a/packages/core/src/FormData.ts +++ b/packages/core/src/FormData.ts @@ -1,17 +1,20 @@ -import type { Stream } from 'stream'; +import type { Stream } from "stream"; -import type { FormFile } from './types'; +import type { FormFile } from "./types"; async function stream2buffer(stream: Stream): Promise { return new Promise((resolve, reject) => { const buf = Array(); - stream.on('data', (chunk) => buf.push(chunk)); - stream.on('end', () => resolve(Buffer.concat(buf))); - stream.on('error', (err) => reject(new Error(`error converting stream - ${err}`))); + stream.on("data", (chunk) => buf.push(chunk)); + stream.on("end", () => resolve(Buffer.concat(buf))); + stream.on( + "error", + (err) => reject(new Error(`error converting stream - ${err}`)), + ); }); } -export const boundary = 'ad05fc42-a66d-4a94-b807-f1c91136c17b'; +export const boundary = "ad05fc42-a66d-4a94-b807-f1c91136c17b"; class FormData { public files: FormFile[] = []; @@ -28,11 +31,12 @@ class FormData { for (const formFile of this.files) { let temp = `--${boundary}\r\n`; temp += `Content-Type: ${formFile.contentType}\r\n`; - temp += `Content-Disposition: form-data; name="${formFile.name}"; filename="${formFile.filename}"\r\n\r\n`; - buffer = Buffer.concat([buffer, Buffer.from(temp, 'utf-8')]); + temp += + `Content-Disposition: form-data; name="${formFile.name}"; filename="${formFile.filename}"\r\n\r\n`; + buffer = Buffer.concat([buffer, Buffer.from(temp, "utf-8")]); let fileBuffer = Buffer.alloc(0); - if (typeof formFile.content === 'string') { - fileBuffer = Buffer.from(`${formFile.content}\r\n`, 'utf-8'); + if (typeof formFile.content === "string") { + fileBuffer = Buffer.from(`${formFile.content}\r\n`, "utf-8"); } else if (Buffer.isBuffer(formFile.content)) { fileBuffer = formFile.content; } else if (formFile.content instanceof Blob) { @@ -43,7 +47,10 @@ class FormData { } buffer = Buffer.concat([buffer, fileBuffer]); } - return Buffer.concat([buffer, Buffer.from(`\r\n--${boundary}--\r\n`, 'utf8')]); + return Buffer.concat([ + buffer, + Buffer.from(`\r\n--${boundary}--\r\n`, "utf8"), + ]); } } diff --git a/packages/core/src/RestException.ts b/packages/core/src/RestException.ts index b9538074..e803e772 100644 --- a/packages/core/src/RestException.ts +++ b/packages/core/src/RestException.ts @@ -1,5 +1,5 @@ -import type { RestResponse } from './types'; -import Utils from './Utils'; +import type { RestResponse } from "./types"; +import Utils from "./Utils"; class RestException extends Error { public response: RestResponse; diff --git a/packages/core/src/SdkExtension.ts b/packages/core/src/SdkExtension.ts index e1687459..f6774d76 100644 --- a/packages/core/src/SdkExtension.ts +++ b/packages/core/src/SdkExtension.ts @@ -1,4 +1,4 @@ -import type { RingCentralInterface } from './types'; +import type { RingCentralInterface } from "./types"; abstract class SdkExtension { public enabled = true; diff --git a/packages/core/src/Utils.ts b/packages/core/src/Utils.ts index ff76d7e4..b592bff7 100644 --- a/packages/core/src/Utils.ts +++ b/packages/core/src/Utils.ts @@ -1,42 +1,49 @@ -import FormData from './FormData'; +import FormData from "./FormData"; -import type Attachment from './definitions/Attachment'; -import type { RestResponse } from './types'; +import type Attachment from "./definitions/Attachment"; +import type { RestResponse } from "./types"; class Utils { public static formatTraffic(r: RestResponse): string { - return `HTTP ${r.status} ${r.statusText}${r.data.message ? ` - ${r.data.message}` : ''} + return `HTTP ${r.status} ${r.statusText}${ + r.data.message ? ` - ${r.data.message}` : "" + } Response: - ${JSON.stringify( - { - data: r.data, - status: r.status, - statusText: r.statusText, - headers: r.headers, - }, - null, - 2, - )} + ${ + JSON.stringify( + { + data: r.data, + status: r.status, + statusText: r.statusText, + headers: r.headers, + }, + null, + 2, + ) + } Request: - ${JSON.stringify( - { - method: r.config.method, - baseURL: r.config.baseURL, - url: r.config.url, - params: r.config.params, - data: Buffer.isBuffer(r.config.data) ? '' : r.config.data, - headers: r.config.headers, - }, - null, - 2, - )} + ${ + JSON.stringify( + { + method: r.config.method, + baseURL: r.config.baseURL, + url: r.config.url, + params: r.config.params, + data: Buffer.isBuffer(r.config.data) ? "" : r.config.data, + headers: r.config.headers, + }, + null, + 2, + ) + } `; } public static isAttachment(obj: {}): boolean { - return typeof obj === 'object' && obj !== null && 'filename' in obj && 'content' in obj; + return typeof obj === "object" && obj !== null && "filename" in obj && + "content" in obj; } public static getFormData(...objects: {}[]): Promise { @@ -73,9 +80,9 @@ class Utils { } if (Object.keys(obj).length > 0) { formData.prepend({ - name: 'request.json', - filename: 'request.json', - contentType: 'application/json', + name: "request.json", + filename: "request.json", + contentType: "application/json", content: JSON.stringify(obj), }); } diff --git a/packages/core/src/definitions/ADGErrorResponse.ts b/packages/core/src/definitions/ADGErrorResponse.ts index 00c3c21c..39ae1549 100644 --- a/packages/core/src/definitions/ADGErrorResponse.ts +++ b/packages/core/src/definitions/ADGErrorResponse.ts @@ -1,4 +1,4 @@ -import type ADGError from './ADGError'; +import type ADGError from "./ADGError"; /** * Format of response in case that any error occurred during request processing diff --git a/packages/core/src/definitions/AIInsights.ts b/packages/core/src/definitions/AIInsights.ts index 79bbaeae..4c5adbdb 100644 --- a/packages/core/src/definitions/AIInsights.ts +++ b/packages/core/src/definitions/AIInsights.ts @@ -1,33 +1,27 @@ -import type TranscriptInsightUnit from './TranscriptInsightUnit'; -import type SummaryInsightUnit from './SummaryInsightUnit'; -import type HighlightsInsightUnit from './HighlightsInsightUnit'; -import type NextStepsInsightUnit from './NextStepsInsightUnit'; -import type BulletedSummaryInsightUnit from './BulletedSummaryInsightUnit'; -import type AIScoreInsightUnit from './AIScoreInsightUnit'; +import type TranscriptInsightUnit from "./TranscriptInsightUnit"; +import type SummaryInsightUnit from "./SummaryInsightUnit"; +import type HighlightsInsightUnit from "./HighlightsInsightUnit"; +import type NextStepsInsightUnit from "./NextStepsInsightUnit"; +import type BulletedSummaryInsightUnit from "./BulletedSummaryInsightUnit"; +import type AIScoreInsightUnit from "./AIScoreInsightUnit"; interface AIInsights { - /** - */ + /** */ Transcript?: TranscriptInsightUnit[]; - /** - */ + /** */ Summary?: SummaryInsightUnit[]; - /** - */ + /** */ Highlights?: HighlightsInsightUnit[]; - /** - */ + /** */ NextSteps?: NextStepsInsightUnit[]; - /** - */ + /** */ BulletedSummary?: BulletedSummaryInsightUnit[]; - /** - */ + /** */ AIScore?: AIScoreInsightUnit[]; } diff --git a/packages/core/src/definitions/APNSInfo.ts b/packages/core/src/definitions/APNSInfo.ts index 2569ba3a..f123324c 100644 --- a/packages/core/src/definitions/APNSInfo.ts +++ b/packages/core/src/definitions/APNSInfo.ts @@ -1,11 +1,10 @@ -import type APSInfo from './APSInfo'; +import type APSInfo from "./APSInfo"; /** * APNS (Apple Push Notification Service) information */ interface APNSInfo { - /** - */ + /** */ aps?: APSInfo; } diff --git a/packages/core/src/definitions/APSInfo.ts b/packages/core/src/definitions/APSInfo.ts index eb7e974f..68144f1d 100644 --- a/packages/core/src/definitions/APSInfo.ts +++ b/packages/core/src/definitions/APSInfo.ts @@ -6,7 +6,7 @@ interface APSInfo { * If the value is '1' then notification is turned on even if the application is in background * Format: int32 */ - 'content-available'?: number; + "content-available"?: number; } export default APSInfo; diff --git a/packages/core/src/definitions/AccountBusinessAddressResource.ts b/packages/core/src/definitions/AccountBusinessAddressResource.ts index 66c37923..f1a51382 100644 --- a/packages/core/src/definitions/AccountBusinessAddressResource.ts +++ b/packages/core/src/definitions/AccountBusinessAddressResource.ts @@ -1,4 +1,4 @@ -import type ContactBusinessAddressInfo from './ContactBusinessAddressInfo'; +import type ContactBusinessAddressInfo from "./ContactBusinessAddressInfo"; interface AccountBusinessAddressResource { /** @@ -6,8 +6,7 @@ interface AccountBusinessAddressResource { */ uri?: string; - /** - */ + /** */ businessAddress?: ContactBusinessAddressInfo; /** diff --git a/packages/core/src/definitions/AccountDeviceUpdate.ts b/packages/core/src/definitions/AccountDeviceUpdate.ts index bc9db2d9..5a5b0ca7 100644 --- a/packages/core/src/definitions/AccountDeviceUpdate.ts +++ b/packages/core/src/definitions/AccountDeviceUpdate.ts @@ -1,23 +1,19 @@ -import type EmergencyServiceAddressResourceRequest from './EmergencyServiceAddressResourceRequest'; -import type DeviceEmergencyInfo from './DeviceEmergencyInfo'; -import type DeviceUpdateExtensionInfo from './DeviceUpdateExtensionInfo'; -import type DeviceUpdatePhoneLinesInfo from './DeviceUpdatePhoneLinesInfo'; +import type EmergencyServiceAddressResourceRequest from "./EmergencyServiceAddressResourceRequest"; +import type DeviceEmergencyInfo from "./DeviceEmergencyInfo"; +import type DeviceUpdateExtensionInfo from "./DeviceUpdateExtensionInfo"; +import type DeviceUpdatePhoneLinesInfo from "./DeviceUpdatePhoneLinesInfo"; interface AccountDeviceUpdate { - /** - */ + /** */ emergencyServiceAddress?: EmergencyServiceAddressResourceRequest; - /** - */ + /** */ emergency?: DeviceEmergencyInfo; - /** - */ + /** */ extension?: DeviceUpdateExtensionInfo; - /** - */ + /** */ phoneLines?: DeviceUpdatePhoneLinesInfo; /** diff --git a/packages/core/src/definitions/AccountHistoryPublicRecord.ts b/packages/core/src/definitions/AccountHistoryPublicRecord.ts index 61a45e28..4c6af718 100644 --- a/packages/core/src/definitions/AccountHistoryPublicRecord.ts +++ b/packages/core/src/definitions/AccountHistoryPublicRecord.ts @@ -1,6 +1,6 @@ -import type AccountHistoryRecordPublicInitiator from './AccountHistoryRecordPublicInitiator'; -import type AccountHistoryRecordTarget from './AccountHistoryRecordTarget'; -import type AccountHistoryRecordPublicDetails from './AccountHistoryRecordPublicDetails'; +import type AccountHistoryRecordPublicInitiator from "./AccountHistoryRecordPublicInitiator"; +import type AccountHistoryRecordTarget from "./AccountHistoryRecordTarget"; +import type AccountHistoryRecordPublicDetails from "./AccountHistoryRecordPublicDetails"; interface AccountHistoryPublicRecord { /** @@ -15,8 +15,7 @@ interface AccountHistoryPublicRecord { */ eventTime?: string; - /** - */ + /** */ initiator?: AccountHistoryRecordPublicInitiator; /** @@ -43,8 +42,7 @@ interface AccountHistoryPublicRecord { */ accountName?: string; - /** - */ + /** */ target?: AccountHistoryRecordTarget; /** @@ -58,8 +56,7 @@ interface AccountHistoryPublicRecord { */ comment?: string; - /** - */ + /** */ details?: AccountHistoryRecordPublicDetails; } diff --git a/packages/core/src/definitions/AccountHistoryRecordPublicDetails.ts b/packages/core/src/definitions/AccountHistoryRecordPublicDetails.ts index e8c1eddb..e31dd3e7 100644 --- a/packages/core/src/definitions/AccountHistoryRecordPublicDetails.ts +++ b/packages/core/src/definitions/AccountHistoryRecordPublicDetails.ts @@ -1,4 +1,4 @@ -import type AccountHistoryRecordDetailsParameters from './AccountHistoryRecordDetailsParameters'; +import type AccountHistoryRecordDetailsParameters from "./AccountHistoryRecordDetailsParameters"; interface AccountHistoryRecordPublicDetails { /** diff --git a/packages/core/src/definitions/AccountHistoryRecordTarget.ts b/packages/core/src/definitions/AccountHistoryRecordTarget.ts index 0e60ff0f..fe6e0320 100644 --- a/packages/core/src/definitions/AccountHistoryRecordTarget.ts +++ b/packages/core/src/definitions/AccountHistoryRecordTarget.ts @@ -12,7 +12,7 @@ interface AccountHistoryRecordTarget { * Type of the entity. * Example: Extension */ - objectType?: 'Extension' | 'Account' | 'Company' | 'Template'; + objectType?: "Extension" | "Account" | "Company" | "Template"; /** * Target extension name diff --git a/packages/core/src/definitions/AccountHistorySearchPublicRequest.ts b/packages/core/src/definitions/AccountHistorySearchPublicRequest.ts index 20855f7d..6c465010 100644 --- a/packages/core/src/definitions/AccountHistorySearchPublicRequest.ts +++ b/packages/core/src/definitions/AccountHistorySearchPublicRequest.ts @@ -46,7 +46,7 @@ interface AccountHistorySearchPublicRequest { * List of action IDs (exact keys) to search for (alternatively "excludeActionIds" option can be used). * Example: CHANGE_SECRET_INFO,CHANGE_USER_INFO */ - actionIds?: ('CHANGE_SECRET_INFO' | 'CHANGE_USER_INFO')[]; + actionIds?: ("CHANGE_SECRET_INFO" | "CHANGE_USER_INFO")[]; /** * The (sub)string to search, applied to the following fields: @@ -65,7 +65,7 @@ interface AccountHistorySearchPublicRequest { * List of action IDs (exact keys) to exclude from your search (alternatively "actionIds" option can be used). * Example: CHANGE_SECRET_INFO,CHANGE_USER_INFO */ - excludeActionIds?: ('CHANGE_SECRET_INFO' | 'CHANGE_USER_INFO')[]; + excludeActionIds?: ("CHANGE_SECRET_INFO" | "CHANGE_USER_INFO")[]; } export default AccountHistorySearchPublicRequest; diff --git a/packages/core/src/definitions/AccountHistorySearchPublicResponse.ts b/packages/core/src/definitions/AccountHistorySearchPublicResponse.ts index ce0d2a4a..32794a65 100644 --- a/packages/core/src/definitions/AccountHistorySearchPublicResponse.ts +++ b/packages/core/src/definitions/AccountHistorySearchPublicResponse.ts @@ -1,5 +1,5 @@ -import type AccountHistoryPublicRecord from './AccountHistoryPublicRecord'; -import type AccountHistoryPaging from './AccountHistoryPaging'; +import type AccountHistoryPublicRecord from "./AccountHistoryPublicRecord"; +import type AccountHistoryPaging from "./AccountHistoryPaging"; interface AccountHistorySearchPublicResponse { /** @@ -7,8 +7,7 @@ interface AccountHistorySearchPublicResponse { */ records?: AccountHistoryPublicRecord[]; - /** - */ + /** */ paging?: AccountHistoryPaging; } diff --git a/packages/core/src/definitions/AccountInfo.ts b/packages/core/src/definitions/AccountInfo.ts index cf6cb30f..001f361c 100644 --- a/packages/core/src/definitions/AccountInfo.ts +++ b/packages/core/src/definitions/AccountInfo.ts @@ -1,6 +1,6 @@ -import type PostalAddress from './PostalAddress'; -import type ServiceInfoV2 from './ServiceInfoV2'; -import type SystemUserContactInfo from './SystemUserContactInfo'; +import type PostalAddress from "./PostalAddress"; +import type ServiceInfoV2 from "./ServiceInfoV2"; +import type SystemUserContactInfo from "./SystemUserContactInfo"; interface AccountInfo { /** @@ -27,7 +27,7 @@ interface AccountInfo { * Status of an account * Required */ - status?: 'Initial' | 'Unconfirmed' | 'Confirmed' | 'Disabled'; + status?: "Initial" | "Unconfirmed" | "Confirmed" | "Disabled"; /** * Company name @@ -35,8 +35,7 @@ interface AccountInfo { */ companyName?: string; - /** - */ + /** */ companyAddress?: PostalAddress; /** @@ -44,8 +43,7 @@ interface AccountInfo { */ serviceInfo?: ServiceInfoV2; - /** - */ + /** */ contactInfo?: SystemUserContactInfo; /** diff --git a/packages/core/src/definitions/AccountLockSettingRecordResponse.ts b/packages/core/src/definitions/AccountLockSettingRecordResponse.ts index 1073e12f..35bada9c 100644 --- a/packages/core/src/definitions/AccountLockSettingRecordResponse.ts +++ b/packages/core/src/definitions/AccountLockSettingRecordResponse.ts @@ -1,30 +1,23 @@ interface AccountLockSettingRecordResponse { - /** - */ + /** */ localRecording?: boolean; - /** - */ + /** */ cloudRecording?: boolean; - /** - */ + /** */ autoRecording?: boolean; - /** - */ + /** */ cloudRecordingDownload?: boolean; - /** - */ + /** */ hostDeleteCloudRecording?: boolean; - /** - */ + /** */ accountUserAccessRecording?: boolean; - /** - */ + /** */ autoDeleteCmr?: boolean; } diff --git a/packages/core/src/definitions/AccountLockedSettingResponse.ts b/packages/core/src/definitions/AccountLockedSettingResponse.ts index b4957be1..09cebf54 100644 --- a/packages/core/src/definitions/AccountLockedSettingResponse.ts +++ b/packages/core/src/definitions/AccountLockedSettingResponse.ts @@ -1,13 +1,11 @@ -import type ScheduleMeetingResponse from './ScheduleMeetingResponse'; -import type AccountLockSettingRecordResponse from './AccountLockSettingRecordResponse'; +import type ScheduleMeetingResponse from "./ScheduleMeetingResponse"; +import type AccountLockSettingRecordResponse from "./AccountLockSettingRecordResponse"; interface AccountLockedSettingResponse { - /** - */ + /** */ scheduleMeeting?: ScheduleMeetingResponse; - /** - */ + /** */ recording?: AccountLockSettingRecordResponse; } diff --git a/packages/core/src/definitions/AccountOperatorInfo.ts b/packages/core/src/definitions/AccountOperatorInfo.ts index a063a4a3..783d8956 100644 --- a/packages/core/src/definitions/AccountOperatorInfo.ts +++ b/packages/core/src/definitions/AccountOperatorInfo.ts @@ -1,7 +1,6 @@ /** * Operator extension information. This extension will receive * all calls and messages addressed to an operator. - * */ interface AccountOperatorInfo { /** diff --git a/packages/core/src/definitions/AccountPhoneNumberInfo.ts b/packages/core/src/definitions/AccountPhoneNumberInfo.ts index b4afdf61..34f481ea 100644 --- a/packages/core/src/definitions/AccountPhoneNumberInfo.ts +++ b/packages/core/src/definitions/AccountPhoneNumberInfo.ts @@ -1,5 +1,5 @@ -import type ContactCenterProvider from './ContactCenterProvider'; -import type AccountPhoneNumberInfoExtension from './AccountPhoneNumberInfoExtension'; +import type ContactCenterProvider from "./ContactCenterProvider"; +import type AccountPhoneNumberInfoExtension from "./AccountPhoneNumberInfoExtension"; interface AccountPhoneNumberInfo { /** @@ -19,43 +19,41 @@ interface AccountPhoneNumberInfo { /** * Type of a phone number */ - type?: 'VoiceFax' | 'VoiceOnly' | 'FaxOnly'; + type?: "VoiceFax" | "VoiceOnly" | "FaxOnly"; /** * Indicates if a number is toll or toll-free * Required * Example: Toll */ - tollType?: 'Toll' | 'TollFree'; + tollType?: "Toll" | "TollFree"; /** * Usage type of phone number * Required */ usageType?: - | 'MainCompanyNumber' - | 'DirectNumber' - | 'Inventory' - | 'InventoryPartnerBusinessMobileNumber' - | 'PartnerBusinessMobileNumber' - | 'AdditionalCompanyNumber' - | 'CompanyNumber' - | 'PhoneLine' - | 'CompanyFaxNumber' - | 'ForwardedNumber' - | 'ForwardedCompanyNumber' - | 'ContactCenterNumber' - | 'ConferencingNumber' - | 'MeetingsNumber' - | 'BusinessMobileNumber' - | 'ELIN'; + | "MainCompanyNumber" + | "DirectNumber" + | "Inventory" + | "InventoryPartnerBusinessMobileNumber" + | "PartnerBusinessMobileNumber" + | "AdditionalCompanyNumber" + | "CompanyNumber" + | "PhoneLine" + | "CompanyFaxNumber" + | "ForwardedNumber" + | "ForwardedCompanyNumber" + | "ContactCenterNumber" + | "ConferencingNumber" + | "MeetingsNumber" + | "BusinessMobileNumber" + | "ELIN"; - /** - */ + /** */ byocNumber?: boolean; - /** - */ + /** */ contactCenterProvider?: ContactCenterProvider; /** @@ -64,7 +62,7 @@ interface AccountPhoneNumberInfo { * ported to RingCentral * Required */ - status?: 'Normal' | 'Pending' | 'PortedIn' | 'Temporary' | 'Unknown'; + status?: "Normal" | "Pending" | "PortedIn" | "Temporary" | "Unknown"; /** * Reference to the extension this number is assigned to. Omitted for company numbers diff --git a/packages/core/src/definitions/AccountPhoneNumberList.ts b/packages/core/src/definitions/AccountPhoneNumberList.ts index 6eeb32d9..ad0cc28f 100644 --- a/packages/core/src/definitions/AccountPhoneNumberList.ts +++ b/packages/core/src/definitions/AccountPhoneNumberList.ts @@ -1,5 +1,5 @@ -import type AccountPhoneNumberInfo from './AccountPhoneNumberInfo'; -import type EnumeratedPagingModel from './EnumeratedPagingModel'; +import type AccountPhoneNumberInfo from "./AccountPhoneNumberInfo"; +import type EnumeratedPagingModel from "./EnumeratedPagingModel"; interface AccountPhoneNumberList { /** diff --git a/packages/core/src/definitions/AccountPhoneNumbers.ts b/packages/core/src/definitions/AccountPhoneNumbers.ts index 01db21b2..b1d7bcbf 100644 --- a/packages/core/src/definitions/AccountPhoneNumbers.ts +++ b/packages/core/src/definitions/AccountPhoneNumbers.ts @@ -1,6 +1,6 @@ -import type CompanyPhoneNumberInfo from './CompanyPhoneNumberInfo'; -import type PageNavigationModel from './PageNavigationModel'; -import type EnumeratedPagingModel from './EnumeratedPagingModel'; +import type CompanyPhoneNumberInfo from "./CompanyPhoneNumberInfo"; +import type PageNavigationModel from "./PageNavigationModel"; +import type EnumeratedPagingModel from "./EnumeratedPagingModel"; interface AccountPhoneNumbers { /** @@ -14,12 +14,10 @@ interface AccountPhoneNumbers { */ records?: CompanyPhoneNumberInfo[]; - /** - */ + /** */ navigation?: PageNavigationModel; - /** - */ + /** */ paging?: EnumeratedPagingModel; } diff --git a/packages/core/src/definitions/AccountPresenceEvent.ts b/packages/core/src/definitions/AccountPresenceEvent.ts index ac2b2a6b..861b0040 100644 --- a/packages/core/src/definitions/AccountPresenceEvent.ts +++ b/packages/core/src/definitions/AccountPresenceEvent.ts @@ -1,4 +1,4 @@ -import type AccountPresenceEventBody from './AccountPresenceEventBody'; +import type AccountPresenceEventBody from "./AccountPresenceEventBody"; interface AccountPresenceEvent { /** @@ -22,8 +22,7 @@ interface AccountPresenceEvent { */ subscriptionId?: string; - /** - */ + /** */ body?: AccountPresenceEventBody; } diff --git a/packages/core/src/definitions/AccountPresenceEventBody.ts b/packages/core/src/definitions/AccountPresenceEventBody.ts index 5bc0c63b..33cfde62 100644 --- a/packages/core/src/definitions/AccountPresenceEventBody.ts +++ b/packages/core/src/definitions/AccountPresenceEventBody.ts @@ -11,7 +11,12 @@ interface AccountPresenceEventBody { /** * Telephony presence status. Returned if telephony status is changed */ - telephonyStatus?: 'NoCall' | 'CallConnected' | 'Ringing' | 'OnHold' | 'ParkedCall'; + telephonyStatus?: + | "NoCall" + | "CallConnected" + | "Ringing" + | "OnHold" + | "ParkedCall"; /** * Order number of a notification to state the chronology @@ -22,22 +27,26 @@ interface AccountPresenceEventBody { /** * Aggregated presence status, calculated from a number of sources */ - presenceStatus?: 'Offline' | 'Busy' | 'Available'; + presenceStatus?: "Offline" | "Busy" | "Available"; /** * User-defined presence status (as previously published by the user) */ - userStatus?: 'Offline' | 'Busy' | 'Available'; + userStatus?: "Offline" | "Busy" | "Available"; /** * Extended DnD (Do not Disturb) status */ - dndStatus?: 'TakeAllCalls' | 'DoNotAcceptAnyCalls' | 'DoNotAcceptDepartmentCalls' | 'TakeDepartmentCallsOnly'; + dndStatus?: + | "TakeAllCalls" + | "DoNotAcceptAnyCalls" + | "DoNotAcceptDepartmentCalls" + | "TakeDepartmentCallsOnly"; /** * Meetings presence status. Specifies if a user is on a meeting */ - meetingStatus?: 'Connected' | 'Disconnected'; + meetingStatus?: "Connected" | "Disconnected"; /** * If `true` enables other extensions to see the extension presence status diff --git a/packages/core/src/definitions/AccountPresenceInfo.ts b/packages/core/src/definitions/AccountPresenceInfo.ts index cc1146b2..a42396c9 100644 --- a/packages/core/src/definitions/AccountPresenceInfo.ts +++ b/packages/core/src/definitions/AccountPresenceInfo.ts @@ -1,6 +1,6 @@ -import type GetPresenceInfo from './GetPresenceInfo'; -import type PresenceNavigationInfo from './PresenceNavigationInfo'; -import type PresencePagingInfo from './PresencePagingInfo'; +import type GetPresenceInfo from "./GetPresenceInfo"; +import type PresenceNavigationInfo from "./PresenceNavigationInfo"; +import type PresencePagingInfo from "./PresencePagingInfo"; interface AccountPresenceInfo { /** @@ -14,12 +14,10 @@ interface AccountPresenceInfo { */ records?: GetPresenceInfo[]; - /** - */ + /** */ navigation?: PresenceNavigationInfo; - /** - */ + /** */ paging?: PresencePagingInfo; } diff --git a/packages/core/src/definitions/AccountRegionalSettings.ts b/packages/core/src/definitions/AccountRegionalSettings.ts index 15764fa6..565e50f4 100644 --- a/packages/core/src/definitions/AccountRegionalSettings.ts +++ b/packages/core/src/definitions/AccountRegionalSettings.ts @@ -1,43 +1,36 @@ -import type CountryInfoShortModel from './CountryInfoShortModel'; -import type TimezoneInfo from './TimezoneInfo'; -import type RegionalLanguageInfo from './RegionalLanguageInfo'; -import type GreetingLanguageInfo from './GreetingLanguageInfo'; -import type FormattingLocaleInfo from './FormattingLocaleInfo'; -import type CurrencyInfo from './CurrencyInfo'; +import type CountryInfoShortModel from "./CountryInfoShortModel"; +import type TimezoneInfo from "./TimezoneInfo"; +import type RegionalLanguageInfo from "./RegionalLanguageInfo"; +import type GreetingLanguageInfo from "./GreetingLanguageInfo"; +import type FormattingLocaleInfo from "./FormattingLocaleInfo"; +import type CurrencyInfo from "./CurrencyInfo"; /** * Account level region data (web service Auto-Receptionist settings) - * */ interface AccountRegionalSettings { - /** - */ + /** */ homeCountry?: CountryInfoShortModel; - /** - */ + /** */ timezone?: TimezoneInfo; - /** - */ + /** */ language?: RegionalLanguageInfo; - /** - */ + /** */ greetingLanguage?: GreetingLanguageInfo; - /** - */ + /** */ formattingLocale?: FormattingLocaleInfo; /** * Time format (12-hours or 24-hours). * Default: 12h */ - timeFormat?: '12h' | '24h'; + timeFormat?: "12h" | "24h"; - /** - */ + /** */ currency?: CurrencyInfo; } diff --git a/packages/core/src/definitions/AccountResource.ts b/packages/core/src/definitions/AccountResource.ts index c8afa6e2..db401655 100644 --- a/packages/core/src/definitions/AccountResource.ts +++ b/packages/core/src/definitions/AccountResource.ts @@ -1,4 +1,4 @@ -import type PhoneNumberResource from './PhoneNumberResource'; +import type PhoneNumberResource from "./PhoneNumberResource"; interface AccountResource { /** @@ -17,8 +17,7 @@ interface AccountResource { */ id?: string; - /** - */ + /** */ mainNumber?: PhoneNumberResource; } diff --git a/packages/core/src/definitions/AccountServiceInfo.ts b/packages/core/src/definitions/AccountServiceInfo.ts index b912cabe..7744deb2 100644 --- a/packages/core/src/definitions/AccountServiceInfo.ts +++ b/packages/core/src/definitions/AccountServiceInfo.ts @@ -1,16 +1,15 @@ -import type BrandInfo from './BrandInfo'; -import type CountryInfoShortModel from './CountryInfoShortModel'; -import type ServicePlanInfo from './ServicePlanInfo'; -import type TargetServicePlanInfo from './TargetServicePlanInfo'; -import type BillingPlanInfo from './BillingPlanInfo'; -import type ServiceFeatureInfo from './ServiceFeatureInfo'; -import type AccountLimits from './AccountLimits'; -import type BillingPackageInfo from './BillingPackageInfo'; -import type UBrandInfo from './UBrandInfo'; +import type BrandInfo from "./BrandInfo"; +import type CountryInfoShortModel from "./CountryInfoShortModel"; +import type ServicePlanInfo from "./ServicePlanInfo"; +import type TargetServicePlanInfo from "./TargetServicePlanInfo"; +import type BillingPlanInfo from "./BillingPlanInfo"; +import type ServiceFeatureInfo from "./ServiceFeatureInfo"; +import type AccountLimits from "./AccountLimits"; +import type BillingPackageInfo from "./BillingPackageInfo"; +import type UBrandInfo from "./UBrandInfo"; /** * Account service information, including brand, service plan and billing plan - * */ interface AccountServiceInfo { /** @@ -24,24 +23,19 @@ interface AccountServiceInfo { */ servicePlanName?: string; - /** - */ + /** */ brand?: BrandInfo; - /** - */ + /** */ contractedCountry?: CountryInfoShortModel; - /** - */ + /** */ servicePlan?: ServicePlanInfo; - /** - */ + /** */ targetServicePlan?: TargetServicePlanInfo; - /** - */ + /** */ billingPlan?: BillingPlanInfo; /** @@ -49,16 +43,13 @@ interface AccountServiceInfo { */ serviceFeatures?: ServiceFeatureInfo[]; - /** - */ + /** */ limits?: AccountLimits; - /** - */ + /** */ package?: BillingPackageInfo; - /** - */ + /** */ uBrand?: UBrandInfo; } diff --git a/packages/core/src/definitions/AccountServiceInfoRequest.ts b/packages/core/src/definitions/AccountServiceInfoRequest.ts index 7cf05b53..3eb66c58 100644 --- a/packages/core/src/definitions/AccountServiceInfoRequest.ts +++ b/packages/core/src/definitions/AccountServiceInfoRequest.ts @@ -1,15 +1,14 @@ -import type BrandInfo from './BrandInfo'; -import type CountryInfoShortModel from './CountryInfoShortModel'; -import type ServicePlanInfo from './ServicePlanInfo'; -import type TargetServicePlanInfo from './TargetServicePlanInfo'; -import type BillingPlanInfo from './BillingPlanInfo'; -import type ServiceFeatureInfo from './ServiceFeatureInfo'; -import type AccountLimits from './AccountLimits'; -import type BillingPackageInfo from './BillingPackageInfo'; +import type BrandInfo from "./BrandInfo"; +import type CountryInfoShortModel from "./CountryInfoShortModel"; +import type ServicePlanInfo from "./ServicePlanInfo"; +import type TargetServicePlanInfo from "./TargetServicePlanInfo"; +import type BillingPlanInfo from "./BillingPlanInfo"; +import type ServiceFeatureInfo from "./ServiceFeatureInfo"; +import type AccountLimits from "./AccountLimits"; +import type BillingPackageInfo from "./BillingPackageInfo"; /** * Account service information, including brand, service plan and billing plan - * */ interface AccountServiceInfoRequest { /** @@ -23,24 +22,19 @@ interface AccountServiceInfoRequest { */ servicePlanName?: string; - /** - */ + /** */ brand?: BrandInfo; - /** - */ + /** */ contractedCountry?: CountryInfoShortModel; - /** - */ + /** */ servicePlan?: ServicePlanInfo; - /** - */ + /** */ targetServicePlan?: TargetServicePlanInfo; - /** - */ + /** */ billingPlan?: BillingPlanInfo; /** @@ -48,12 +42,10 @@ interface AccountServiceInfoRequest { */ serviceFeatures?: ServiceFeatureInfo[]; - /** - */ + /** */ limits?: AccountLimits; - /** - */ + /** */ package?: BillingPackageInfo; } diff --git a/packages/core/src/definitions/AccountStatusInfo.ts b/packages/core/src/definitions/AccountStatusInfo.ts index 6d59768b..32531044 100644 --- a/packages/core/src/definitions/AccountStatusInfo.ts +++ b/packages/core/src/definitions/AccountStatusInfo.ts @@ -6,7 +6,11 @@ interface AccountStatusInfo { * Type of suspension, voluntarily or not * Example: CancelledVoluntarily */ - reason?: 'SuspendedVoluntarily' | 'SuspendedInvoluntarily' | 'CancelledVoluntarily' | 'CancelledInvoluntarily'; + reason?: + | "SuspendedVoluntarily" + | "SuspendedInvoluntarily" + | "CancelledVoluntarily" + | "CancelledInvoluntarily"; /** * A meaningful description of the reason to change the status diff --git a/packages/core/src/definitions/AccountTelephonySessionsEvent.ts b/packages/core/src/definitions/AccountTelephonySessionsEvent.ts index b33e89d4..a21f97d2 100644 --- a/packages/core/src/definitions/AccountTelephonySessionsEvent.ts +++ b/packages/core/src/definitions/AccountTelephonySessionsEvent.ts @@ -1,4 +1,4 @@ -import type TelephonySessionsEventBody from './TelephonySessionsEventBody'; +import type TelephonySessionsEventBody from "./TelephonySessionsEventBody"; interface AccountTelephonySessionsEvent { /** @@ -26,8 +26,7 @@ interface AccountTelephonySessionsEvent { */ ownerId?: string; - /** - */ + /** */ body?: TelephonySessionsEventBody; } diff --git a/packages/core/src/definitions/ActionAdaptiveCardInfo.ts b/packages/core/src/definitions/ActionAdaptiveCardInfo.ts index b481715c..23b4eb17 100644 --- a/packages/core/src/definitions/ActionAdaptiveCardInfo.ts +++ b/packages/core/src/definitions/ActionAdaptiveCardInfo.ts @@ -1,12 +1,10 @@ -import type ActionCardBody from './ActionCardBody'; +import type ActionCardBody from "./ActionCardBody"; interface ActionAdaptiveCardInfo { - /** - */ - type?: 'AdaptiveCard'; + /** */ + type?: "AdaptiveCard"; - /** - */ + /** */ body?: ActionCardBody[]; } diff --git a/packages/core/src/definitions/ActionCardBody.ts b/packages/core/src/definitions/ActionCardBody.ts index bab89757..68580494 100644 --- a/packages/core/src/definitions/ActionCardBody.ts +++ b/packages/core/src/definitions/ActionCardBody.ts @@ -1,10 +1,8 @@ interface ActionCardBody { - /** - */ - type?: 'Input.Text'; + /** */ + type?: "Input.Text"; - /** - */ + /** */ id?: string; /** diff --git a/packages/core/src/definitions/ActiveCallInfo.ts b/packages/core/src/definitions/ActiveCallInfo.ts index 2ecb8752..9c5d7bdf 100644 --- a/packages/core/src/definitions/ActiveCallInfo.ts +++ b/packages/core/src/definitions/ActiveCallInfo.ts @@ -1,14 +1,12 @@ -import type DetailedCallInfo from './DetailedCallInfo'; -import type CallInfoCQ from './CallInfoCQ'; +import type DetailedCallInfo from "./DetailedCallInfo"; +import type CallInfoCQ from "./CallInfoCQ"; interface ActiveCallInfo { - /** - */ + /** */ id?: string; - /** - */ - direction?: 'Inbound' | 'Outbound'; + /** */ + direction?: "Inbound" | "Outbound"; /** * Identifies if a call belongs to the call queue @@ -44,14 +42,17 @@ interface ActiveCallInfo { /** * Telephony presence status */ - telephonyStatus?: 'NoCall' | 'CallConnected' | 'Ringing' | 'OnHold' | 'ParkedCall'; + telephonyStatus?: + | "NoCall" + | "CallConnected" + | "Ringing" + | "OnHold" + | "ParkedCall"; - /** - */ + /** */ sipData?: DetailedCallInfo; - /** - */ + /** */ sessionId?: string; /** @@ -69,12 +70,10 @@ interface ActiveCallInfo { */ partyId?: string; - /** - */ + /** */ terminationType?: string; - /** - */ + /** */ callInfo?: CallInfoCQ; } diff --git a/packages/core/src/definitions/ActiveCallInfoWithoutSIP.ts b/packages/core/src/definitions/ActiveCallInfoWithoutSIP.ts index a36273b4..2737d017 100644 --- a/packages/core/src/definitions/ActiveCallInfoWithoutSIP.ts +++ b/packages/core/src/definitions/ActiveCallInfoWithoutSIP.ts @@ -1,4 +1,4 @@ -import type CallInfoCQ from './CallInfoCQ'; +import type CallInfoCQ from "./CallInfoCQ"; interface ActiveCallInfoWithoutSIP { /** @@ -9,7 +9,7 @@ interface ActiveCallInfoWithoutSIP { /** * Call direction */ - direction?: 'Inbound' | 'Outbound'; + direction?: "Inbound" | "Outbound"; /** * Identifies if a call belongs to the call queue @@ -60,15 +60,19 @@ interface ActiveCallInfoWithoutSIP { /** * Telephony call status */ - telephonyStatus?: 'NoCall' | 'CallConnected' | 'Ringing' | 'OnHold' | 'ParkedCall'; + telephonyStatus?: + | "NoCall" + | "CallConnected" + | "Ringing" + | "OnHold" + | "ParkedCall"; /** * Type of call termination. Supported for calls in 'NoCall' status. If the returned termination type is 'intermediate' it means the call is not actually ended, the connection is established on one of the devices */ - terminationType?: 'final' | 'intermediate'; + terminationType?: "final" | "intermediate"; - /** - */ + /** */ callInfo?: CallInfoCQ; } diff --git a/packages/core/src/definitions/ActivePermissionResource.ts b/packages/core/src/definitions/ActivePermissionResource.ts index 2ca3d880..d529e385 100644 --- a/packages/core/src/definitions/ActivePermissionResource.ts +++ b/packages/core/src/definitions/ActivePermissionResource.ts @@ -1,25 +1,22 @@ -import type PermissionIdResource from './PermissionIdResource'; -import type RoleIdResource from './RoleIdResource'; +import type PermissionIdResource from "./PermissionIdResource"; +import type RoleIdResource from "./RoleIdResource"; interface ActivePermissionResource { - /** - */ + /** */ permission?: PermissionIdResource; - /** - */ + /** */ effectiveRole?: RoleIdResource; - /** - */ + /** */ scopes?: ( - | 'Account' - | 'AllExtensions' - | 'Federation' - | 'NonUserExtensions' - | 'RoleBased' - | 'Self' - | 'UserExtensions' + | "Account" + | "AllExtensions" + | "Federation" + | "NonUserExtensions" + | "RoleBased" + | "Self" + | "UserExtensions" )[]; } diff --git a/packages/core/src/definitions/AdaptiveCardAction.ts b/packages/core/src/definitions/AdaptiveCardAction.ts index 7c804959..23afb561 100644 --- a/packages/core/src/definitions/AdaptiveCardAction.ts +++ b/packages/core/src/definitions/AdaptiveCardAction.ts @@ -1,16 +1,17 @@ -import type ActionAdaptiveCardInfo from './ActionAdaptiveCardInfo'; +import type ActionAdaptiveCardInfo from "./ActionAdaptiveCardInfo"; interface AdaptiveCardAction { - /** - */ - type?: 'Action.ShowCard' | 'Action.Submit' | 'Action.OpenUrl' | 'Action.ToggleVisibility'; + /** */ + type?: + | "Action.ShowCard" + | "Action.Submit" + | "Action.OpenUrl" + | "Action.ToggleVisibility"; - /** - */ + /** */ title?: string; - /** - */ + /** */ card?: ActionAdaptiveCardInfo; /** diff --git a/packages/core/src/definitions/AdaptiveCardColumnInfo.ts b/packages/core/src/definitions/AdaptiveCardColumnInfo.ts index ef6ab1ce..31d464d8 100644 --- a/packages/core/src/definitions/AdaptiveCardColumnInfo.ts +++ b/packages/core/src/definitions/AdaptiveCardColumnInfo.ts @@ -1,16 +1,13 @@ -import type AdaptiveCardColumnItemInfo from './AdaptiveCardColumnItemInfo'; +import type AdaptiveCardColumnItemInfo from "./AdaptiveCardColumnItemInfo"; interface AdaptiveCardColumnInfo { - /** - */ + /** */ type?: string; - /** - */ + /** */ width?: string; - /** - */ + /** */ items?: AdaptiveCardColumnItemInfo[]; } diff --git a/packages/core/src/definitions/AdaptiveCardColumnItemInfo.ts b/packages/core/src/definitions/AdaptiveCardColumnItemInfo.ts index ae85f5e6..b71c602a 100644 --- a/packages/core/src/definitions/AdaptiveCardColumnItemInfo.ts +++ b/packages/core/src/definitions/AdaptiveCardColumnItemInfo.ts @@ -1,6 +1,5 @@ interface AdaptiveCardColumnItemInfo { - /** - */ + /** */ type?: string; /** @@ -8,28 +7,22 @@ interface AdaptiveCardColumnItemInfo { */ url?: string; - /** - */ + /** */ size?: string; - /** - */ + /** */ style?: string; - /** - */ + /** */ wrap?: boolean; - /** - */ + /** */ spacing?: string; - /** - */ + /** */ text?: string; - /** - */ + /** */ isSubtle?: boolean; } diff --git a/packages/core/src/definitions/AdaptiveCardInfo.ts b/packages/core/src/definitions/AdaptiveCardInfo.ts index 7a454e58..5b082d2a 100644 --- a/packages/core/src/definitions/AdaptiveCardInfo.ts +++ b/packages/core/src/definitions/AdaptiveCardInfo.ts @@ -1,8 +1,8 @@ -import type AdaptiveCardCreator from './AdaptiveCardCreator'; -import type AdaptiveCardInfoRequest from './AdaptiveCardInfoRequest'; -import type AdaptiveCardAction from './AdaptiveCardAction'; -import type AdaptiveCardSelectAction from './AdaptiveCardSelectAction'; -import type BackgroundImage from './BackgroundImage'; +import type AdaptiveCardCreator from "./AdaptiveCardCreator"; +import type AdaptiveCardInfoRequest from "./AdaptiveCardInfoRequest"; +import type AdaptiveCardAction from "./AdaptiveCardAction"; +import type AdaptiveCardSelectAction from "./AdaptiveCardSelectAction"; +import type BackgroundImage from "./BackgroundImage"; interface AdaptiveCardInfo { /** @@ -28,17 +28,15 @@ interface AdaptiveCardInfo { */ $schema?: string; - /** - */ - type?: 'AdaptiveCard'; + /** */ + type?: "AdaptiveCard"; /** * Version of an adaptive card */ version?: string; - /** - */ + /** */ creator?: AdaptiveCardCreator; /** @@ -51,12 +49,10 @@ interface AdaptiveCardInfo { */ body?: AdaptiveCardInfoRequest[]; - /** - */ + /** */ actions?: AdaptiveCardAction[]; - /** - */ + /** */ selectAction?: AdaptiveCardSelectAction; /** @@ -83,12 +79,12 @@ interface AdaptiveCardInfo { /** * The 2-letter ISO-639-1 language used in the card. Used to localize any date/time functions */ - lang?: 'en' | 'fr' | 'es'; + lang?: "en" | "fr" | "es"; /** * Defines how the content should be aligned vertically within the container. Only relevant for fixed-height cards, or cards with a `minHeight` specified */ - verticalContentAlignment?: 'top' | 'center' | 'bottom'; + verticalContentAlignment?: "top" | "center" | "bottom"; } export default AdaptiveCardInfo; diff --git a/packages/core/src/definitions/AdaptiveCardInfoBackgroundImage.ts b/packages/core/src/definitions/AdaptiveCardInfoBackgroundImage.ts index 935e1a53..d371e9f9 100644 --- a/packages/core/src/definitions/AdaptiveCardInfoBackgroundImage.ts +++ b/packages/core/src/definitions/AdaptiveCardInfoBackgroundImage.ts @@ -2,7 +2,7 @@ interface AdaptiveCardInfoBackgroundImage { /** * Must be `BackgroundImage` */ - type?: 'BackgroundImage'; + type?: "BackgroundImage"; /** * The URL/data URL of an image to be used as a background of a card. Acceptable formats are PNG, JPEG, and GIF @@ -13,17 +13,17 @@ interface AdaptiveCardInfoBackgroundImage { /** * Describes how the image should fill the area */ - fillMode?: 'cover' | 'repeatHorizontally' | 'repeatVertically' | 'repeat'; + fillMode?: "cover" | "repeatHorizontally" | "repeatVertically" | "repeat"; /** * Describes how the image should be aligned if it must be cropped or if using repeat fill mode */ - horizontalAlignment?: 'left' | 'center' | 'right'; + horizontalAlignment?: "left" | "center" | "right"; /** * Describes how the image should be aligned if it must be cropped or if using repeat fill mode */ - verticalAlignment?: 'top' | 'center' | 'bottom'; + verticalAlignment?: "top" | "center" | "bottom"; } export default AdaptiveCardInfoBackgroundImage; diff --git a/packages/core/src/definitions/AdaptiveCardInfoRequest.ts b/packages/core/src/definitions/AdaptiveCardInfoRequest.ts index e20ecee7..cffedb5b 100644 --- a/packages/core/src/definitions/AdaptiveCardInfoRequest.ts +++ b/packages/core/src/definitions/AdaptiveCardInfoRequest.ts @@ -1,12 +1,10 @@ -import type AdaptiveCardInfoRequestItem from './AdaptiveCardInfoRequestItem'; +import type AdaptiveCardInfoRequestItem from "./AdaptiveCardInfoRequestItem"; interface AdaptiveCardInfoRequest { - /** - */ - type?: 'Container'; + /** */ + type?: "Container"; - /** - */ + /** */ items?: AdaptiveCardInfoRequestItem[]; } diff --git a/packages/core/src/definitions/AdaptiveCardInfoRequestItem.ts b/packages/core/src/definitions/AdaptiveCardInfoRequestItem.ts index fd595b13..71bef581 100644 --- a/packages/core/src/definitions/AdaptiveCardInfoRequestItem.ts +++ b/packages/core/src/definitions/AdaptiveCardInfoRequestItem.ts @@ -1,24 +1,19 @@ -import type AdaptiveCardColumnInfo from './AdaptiveCardColumnInfo'; +import type AdaptiveCardColumnInfo from "./AdaptiveCardColumnInfo"; interface AdaptiveCardInfoRequestItem { - /** - */ - type?: 'TextBlock' | 'ColumnSet' | 'Column' | 'FactSet'; + /** */ + type?: "TextBlock" | "ColumnSet" | "Column" | "FactSet"; - /** - */ + /** */ text?: string; - /** - */ + /** */ weight?: string; - /** - */ + /** */ size?: string; - /** - */ + /** */ columns?: AdaptiveCardColumnInfo[]; } diff --git a/packages/core/src/definitions/AdaptiveCardRequest.ts b/packages/core/src/definitions/AdaptiveCardRequest.ts index d5841564..0e69952b 100644 --- a/packages/core/src/definitions/AdaptiveCardRequest.ts +++ b/packages/core/src/definitions/AdaptiveCardRequest.ts @@ -1,7 +1,7 @@ -import type AdaptiveCardInfoRequest from './AdaptiveCardInfoRequest'; -import type AdaptiveCardAction from './AdaptiveCardAction'; -import type AdaptiveCardSelectAction from './AdaptiveCardSelectAction'; -import type BackgroundImage from './BackgroundImage'; +import type AdaptiveCardInfoRequest from "./AdaptiveCardInfoRequest"; +import type AdaptiveCardAction from "./AdaptiveCardAction"; +import type AdaptiveCardSelectAction from "./AdaptiveCardSelectAction"; +import type BackgroundImage from "./BackgroundImage"; interface AdaptiveCardRequest { /** @@ -9,7 +9,7 @@ interface AdaptiveCardRequest { * will be ignored if set in request body * Required */ - type?: 'AdaptiveCard'; + type?: "AdaptiveCard"; /** * Version. This field is mandatory and filled on server side - @@ -23,16 +23,13 @@ interface AdaptiveCardRequest { */ body?: AdaptiveCardInfoRequest[]; - /** - */ + /** */ actions?: AdaptiveCardAction[]; - /** - */ + /** */ selectAction?: AdaptiveCardSelectAction; - /** - */ + /** */ fallbackText?: string; /** @@ -54,12 +51,12 @@ interface AdaptiveCardRequest { /** * The 2-letter ISO-639-1 language used in the card. Used to localize any date/time functions */ - lang?: 'en' | 'fr' | 'es'; + lang?: "en" | "fr" | "es"; /** * Defines how the content should be aligned vertically within the container. Only relevant for fixed-height cards, or cards with a `minHeight` specified */ - verticalContentAlignment?: 'top' | 'center' | 'bottom'; + verticalContentAlignment?: "top" | "center" | "bottom"; } export default AdaptiveCardRequest; diff --git a/packages/core/src/definitions/AdaptiveCardRequestBackgroundImage.ts b/packages/core/src/definitions/AdaptiveCardRequestBackgroundImage.ts index 00bae23c..f33e894a 100644 --- a/packages/core/src/definitions/AdaptiveCardRequestBackgroundImage.ts +++ b/packages/core/src/definitions/AdaptiveCardRequestBackgroundImage.ts @@ -2,7 +2,7 @@ interface AdaptiveCardRequestBackgroundImage { /** * Must be `BackgroundImage` */ - type?: 'BackgroundImage'; + type?: "BackgroundImage"; /** * The URL/data URL of an image to be used as a background of a card. Acceptable formats are PNG, JPEG, and GIF @@ -13,17 +13,17 @@ interface AdaptiveCardRequestBackgroundImage { /** * Describes how the image should fill the area */ - fillMode?: 'cover' | 'repeatHorizontally' | 'repeatVertically' | 'repeat'; + fillMode?: "cover" | "repeatHorizontally" | "repeatVertically" | "repeat"; /** * Describes how the image should be aligned if it must be cropped or if using repeat fill mode */ - horizontalAlignment?: 'left' | 'center' | 'right'; + horizontalAlignment?: "left" | "center" | "right"; /** * Describes how the image should be aligned if it must be cropped or if using repeat fill mode */ - verticalAlignment?: 'top' | 'center' | 'bottom'; + verticalAlignment?: "top" | "center" | "bottom"; } export default AdaptiveCardRequestBackgroundImage; diff --git a/packages/core/src/definitions/AdaptiveCardSelectAction.ts b/packages/core/src/definitions/AdaptiveCardSelectAction.ts index 84c16e56..9eb37277 100644 --- a/packages/core/src/definitions/AdaptiveCardSelectAction.ts +++ b/packages/core/src/definitions/AdaptiveCardSelectAction.ts @@ -5,7 +5,7 @@ interface AdaptiveCardSelectAction { /** * Required */ - type?: 'Action.Submit' | 'Action.OpenUrl' | 'Action.ToggleVisibility'; + type?: "Action.Submit" | "Action.OpenUrl" | "Action.ToggleVisibility"; } export default AdaptiveCardSelectAction; diff --git a/packages/core/src/definitions/AdaptiveCardShortInfo.ts b/packages/core/src/definitions/AdaptiveCardShortInfo.ts index a3ff4905..79b0394a 100644 --- a/packages/core/src/definitions/AdaptiveCardShortInfo.ts +++ b/packages/core/src/definitions/AdaptiveCardShortInfo.ts @@ -1,4 +1,4 @@ -import type AdaptiveCardCreator from './AdaptiveCardCreator'; +import type AdaptiveCardCreator from "./AdaptiveCardCreator"; interface AdaptiveCardShortInfo { /** @@ -23,17 +23,15 @@ interface AdaptiveCardShortInfo { */ $schema?: string; - /** - */ - type?: 'AdaptiveCard'; + /** */ + type?: "AdaptiveCard"; /** * Version of an adaptive card. Filled on server-side */ version?: string; - /** - */ + /** */ creator?: AdaptiveCardCreator; /** diff --git a/packages/core/src/definitions/AddBlockedAllowedPhoneNumber.ts b/packages/core/src/definitions/AddBlockedAllowedPhoneNumber.ts index a0a1940c..501a0f1f 100644 --- a/packages/core/src/definitions/AddBlockedAllowedPhoneNumber.ts +++ b/packages/core/src/definitions/AddBlockedAllowedPhoneNumber.ts @@ -16,7 +16,7 @@ interface AddBlockedAllowedPhoneNumber { * Status of a phone number * Default: Blocked */ - status?: 'Blocked' | 'Allowed'; + status?: "Blocked" | "Allowed"; } export default AddBlockedAllowedPhoneNumber; diff --git a/packages/core/src/definitions/AddDeviceToInventoryRequest.ts b/packages/core/src/definitions/AddDeviceToInventoryRequest.ts index c4866ee6..7e9b2df5 100644 --- a/packages/core/src/definitions/AddDeviceToInventoryRequest.ts +++ b/packages/core/src/definitions/AddDeviceToInventoryRequest.ts @@ -1,11 +1,11 @@ -import type AddDeviceToInventoryRequestSite from './AddDeviceToInventoryRequestSite'; +import type AddDeviceToInventoryRequestSite from "./AddDeviceToInventoryRequestSite"; interface AddDeviceToInventoryRequest { /** * Device type. Use `OtherPhone` to indicate BYOD (customer provided) device * Required */ - type?: 'OtherPhone'; + type?: "OtherPhone"; /** * Quantity of devices (total quantity should not exceed 50) @@ -16,8 +16,7 @@ interface AddDeviceToInventoryRequest { */ quantity?: number; - /** - */ + /** */ site?: AddDeviceToInventoryRequestSite; } diff --git a/packages/core/src/definitions/AddDeviceToInventoryResponse.ts b/packages/core/src/definitions/AddDeviceToInventoryResponse.ts index aea169e1..0c20f604 100644 --- a/packages/core/src/definitions/AddDeviceToInventoryResponse.ts +++ b/packages/core/src/definitions/AddDeviceToInventoryResponse.ts @@ -1,5 +1,5 @@ -import type AddDeviceToInventoryResponseDevices from './AddDeviceToInventoryResponseDevices'; -import type SiteBasicInfo from './SiteBasicInfo'; +import type AddDeviceToInventoryResponseDevices from "./AddDeviceToInventoryResponseDevices"; +import type SiteBasicInfo from "./SiteBasicInfo"; interface AddDeviceToInventoryResponse { /** diff --git a/packages/core/src/definitions/AddInviteeRequest.ts b/packages/core/src/definitions/AddInviteeRequest.ts index 68acf278..cd25d8d0 100644 --- a/packages/core/src/definitions/AddInviteeRequest.ts +++ b/packages/core/src/definitions/AddInviteeRequest.ts @@ -1,4 +1,4 @@ -import type RcwDomainUserModel from './RcwDomainUserModel'; +import type RcwDomainUserModel from "./RcwDomainUserModel"; /** * The attribute declaration to indicate webinar session participant/invitee role @@ -29,8 +29,7 @@ interface AddInviteeRequest { */ jobTitle?: string; - /** - */ + /** */ linkedUser?: RcwDomainUserModel; /** @@ -39,13 +38,13 @@ interface AddInviteeRequest { * Required * Example: Panelist */ - role?: 'Panelist' | 'CoHost' | 'Host' | 'Attendee'; + role?: "Panelist" | "CoHost" | "Host" | "Attendee"; /** * The type of the webinar invitee * Default: User */ - type?: 'User' | 'Room'; + type?: "User" | "Room"; /** * Indicates if invite/cancellation emails have to be sent to this invitee. diff --git a/packages/core/src/definitions/AddPhoneNumberRequestItem.ts b/packages/core/src/definitions/AddPhoneNumberRequestItem.ts index 96e6b6aa..4f067cbe 100644 --- a/packages/core/src/definitions/AddPhoneNumberRequestItem.ts +++ b/packages/core/src/definitions/AddPhoneNumberRequestItem.ts @@ -13,12 +13,15 @@ interface AddPhoneNumberRequestItem { * Required * Default: Inventory */ - usageType?: 'Inventory' | 'InventoryPartnerBusinessMobileNumber' | 'PartnerBusinessMobileNumber'; + usageType?: + | "Inventory" + | "InventoryPartnerBusinessMobileNumber" + | "PartnerBusinessMobileNumber"; /** * Phone number activation status. Determine whether phone number migration is completed on the partner side. */ - activationStatus?: 'Active' | 'Inactive'; + activationStatus?: "Active" | "Inactive"; } export default AddPhoneNumberRequestItem; diff --git a/packages/core/src/definitions/AddPhoneNumbersRequest.ts b/packages/core/src/definitions/AddPhoneNumbersRequest.ts index 384273f3..05998f8c 100644 --- a/packages/core/src/definitions/AddPhoneNumbersRequest.ts +++ b/packages/core/src/definitions/AddPhoneNumbersRequest.ts @@ -1,4 +1,4 @@ -import type AddPhoneNumberRequestItem from './AddPhoneNumberRequestItem'; +import type AddPhoneNumberRequestItem from "./AddPhoneNumberRequestItem"; interface AddPhoneNumbersRequest { /** diff --git a/packages/core/src/definitions/AddPhoneNumbersResponse.ts b/packages/core/src/definitions/AddPhoneNumbersResponse.ts index ad7c4f4f..0509d2b3 100644 --- a/packages/core/src/definitions/AddPhoneNumbersResponse.ts +++ b/packages/core/src/definitions/AddPhoneNumbersResponse.ts @@ -1,4 +1,4 @@ -import type AddPhoneNumbersResponseItem from './AddPhoneNumbersResponseItem'; +import type AddPhoneNumbersResponseItem from "./AddPhoneNumbersResponseItem"; interface AddPhoneNumbersResponse { /** diff --git a/packages/core/src/definitions/AddPhoneNumbersResponseItem.ts b/packages/core/src/definitions/AddPhoneNumbersResponseItem.ts index 4f180743..708068f7 100644 --- a/packages/core/src/definitions/AddPhoneNumbersResponseItem.ts +++ b/packages/core/src/definitions/AddPhoneNumbersResponseItem.ts @@ -1,4 +1,4 @@ -import type ApiError from './ApiError'; +import type ApiError from "./ApiError"; interface AddPhoneNumbersResponseItem { /** @@ -31,7 +31,7 @@ interface AddPhoneNumbersResponseItem { /** * Phone number activation status. Determine whether phone number migration is completed on the partner side. */ - activationStatus?: 'Active' | 'Inactive'; + activationStatus?: "Active" | "Inactive"; } export default AddPhoneNumbersResponseItem; diff --git a/packages/core/src/definitions/AdditionalCQInfo.ts b/packages/core/src/definitions/AdditionalCQInfo.ts index f058eae4..8b6b41f4 100644 --- a/packages/core/src/definitions/AdditionalCQInfo.ts +++ b/packages/core/src/definitions/AdditionalCQInfo.ts @@ -6,13 +6,13 @@ interface AdditionalCQInfo { * Call information to be displayed as 'Line 2' for a call queue call session */ type?: - | 'PhoneNumberLabel' - | 'PhoneNumber' - | 'QueueExtension' - | 'QueueName' - | 'CallerIdName' - | 'CallerIdNumber' - | 'None'; + | "PhoneNumberLabel" + | "PhoneNumber" + | "QueueExtension" + | "QueueName" + | "CallerIdName" + | "CallerIdNumber" + | "None"; /** * Call information value diff --git a/packages/core/src/definitions/AddonInfo.ts b/packages/core/src/definitions/AddonInfo.ts index 15aa7139..0e8f9f30 100644 --- a/packages/core/src/definitions/AddonInfo.ts +++ b/packages/core/src/definitions/AddonInfo.ts @@ -1,10 +1,8 @@ interface AddonInfo { - /** - */ + /** */ id?: string; - /** - */ + /** */ name?: string; /** diff --git a/packages/core/src/definitions/AddressBookBulkContactResource.ts b/packages/core/src/definitions/AddressBookBulkContactResource.ts index 1707f15e..d1a2b328 100644 --- a/packages/core/src/definitions/AddressBookBulkContactResource.ts +++ b/packages/core/src/definitions/AddressBookBulkContactResource.ts @@ -1,4 +1,4 @@ -import type AddressBookBulkContactAddressInfo from './AddressBookBulkContactAddressInfo'; +import type AddressBookBulkContactAddressInfo from "./AddressBookBulkContactAddressInfo"; interface AddressBookBulkContactResource { /** @@ -148,16 +148,13 @@ interface AddressBookBulkContactResource { */ callbackPhone?: string; - /** - */ + /** */ businessAddress?: AddressBookBulkContactAddressInfo; - /** - */ + /** */ homeAddress?: AddressBookBulkContactAddressInfo; - /** - */ + /** */ otherAddress?: AddressBookBulkContactAddressInfo; } diff --git a/packages/core/src/definitions/AddressBookBulkUploadRequest.ts b/packages/core/src/definitions/AddressBookBulkUploadRequest.ts index 90153b39..56ae908a 100644 --- a/packages/core/src/definitions/AddressBookBulkUploadRequest.ts +++ b/packages/core/src/definitions/AddressBookBulkUploadRequest.ts @@ -1,4 +1,4 @@ -import type AddressBookBulkUploadResource from './AddressBookBulkUploadResource'; +import type AddressBookBulkUploadResource from "./AddressBookBulkUploadResource"; interface AddressBookBulkUploadRequest { /** diff --git a/packages/core/src/definitions/AddressBookBulkUploadResource.ts b/packages/core/src/definitions/AddressBookBulkUploadResource.ts index 371eb2b1..bc0ba719 100644 --- a/packages/core/src/definitions/AddressBookBulkUploadResource.ts +++ b/packages/core/src/definitions/AddressBookBulkUploadResource.ts @@ -1,4 +1,4 @@ -import type AddressBookBulkContactResource from './AddressBookBulkContactResource'; +import type AddressBookBulkContactResource from "./AddressBookBulkContactResource"; interface AddressBookBulkUploadResource { /** diff --git a/packages/core/src/definitions/AddressBookBulkUploadResponse.ts b/packages/core/src/definitions/AddressBookBulkUploadResponse.ts index 1eaf66e5..a3e25e8f 100644 --- a/packages/core/src/definitions/AddressBookBulkUploadResponse.ts +++ b/packages/core/src/definitions/AddressBookBulkUploadResponse.ts @@ -1,8 +1,7 @@ -import type AddressBookBulkUploadTaskResult from './AddressBookBulkUploadTaskResult'; +import type AddressBookBulkUploadTaskResult from "./AddressBookBulkUploadTaskResult"; /** * Information on a task for adding multiple contacts to multiple extensions - * */ interface AddressBookBulkUploadResponse { /** @@ -22,7 +21,7 @@ interface AddressBookBulkUploadResponse { * Task status * Required */ - status?: 'Accepted' | 'InProgress' | 'Completed' | 'Failed'; + status?: "Accepted" | "InProgress" | "Completed" | "Failed"; /** * Date/time of a task creation @@ -38,8 +37,7 @@ interface AddressBookBulkUploadResponse { */ lastModifiedTime?: string; - /** - */ + /** */ results?: AddressBookBulkUploadTaskResult; } diff --git a/packages/core/src/definitions/AddressBookBulkUploadTaskResult.ts b/packages/core/src/definitions/AddressBookBulkUploadTaskResult.ts index 5961dc43..f213d286 100644 --- a/packages/core/src/definitions/AddressBookBulkUploadTaskResult.ts +++ b/packages/core/src/definitions/AddressBookBulkUploadTaskResult.ts @@ -1,13 +1,11 @@ -import type AddressBookBulkUploadResource from './AddressBookBulkUploadResource'; -import type ErrorEntity from './ErrorEntity'; +import type AddressBookBulkUploadResource from "./AddressBookBulkUploadResource"; +import type ErrorEntity from "./ErrorEntity"; interface AddressBookBulkUploadTaskResult { - /** - */ + /** */ affectedItems?: AddressBookBulkUploadResource[]; - /** - */ + /** */ errors?: ErrorEntity[]; } diff --git a/packages/core/src/definitions/AddressBookSync.ts b/packages/core/src/definitions/AddressBookSync.ts index cf565c3d..38431f70 100644 --- a/packages/core/src/definitions/AddressBookSync.ts +++ b/packages/core/src/definitions/AddressBookSync.ts @@ -1,5 +1,5 @@ -import type PersonalContactResource from './PersonalContactResource'; -import type SyncInfo from './SyncInfo'; +import type PersonalContactResource from "./PersonalContactResource"; +import type SyncInfo from "./SyncInfo"; interface AddressBookSync { /** @@ -7,12 +7,10 @@ interface AddressBookSync { */ uri?: string; - /** - */ + /** */ records?: PersonalContactResource[]; - /** - */ + /** */ syncInfo?: SyncInfo; /** diff --git a/packages/core/src/definitions/AdvancedTimeSettings.ts b/packages/core/src/definitions/AdvancedTimeSettings.ts index a0356da3..65091072 100644 --- a/packages/core/src/definitions/AdvancedTimeSettings.ts +++ b/packages/core/src/definitions/AdvancedTimeSettings.ts @@ -1,4 +1,4 @@ -import type HoursInterval from './HoursInterval'; +import type HoursInterval from "./HoursInterval"; /** * Allows more granular control over time included in the report @@ -7,7 +7,15 @@ interface AdvancedTimeSettings { /** * Days of the week for which the report is calculated */ - includeDays?: ('Sunday' | 'Monday' | 'Tuesday' | 'Wednesday' | 'Thursday' | 'Friday' | 'Saturday')[]; + includeDays?: ( + | "Sunday" + | "Monday" + | "Tuesday" + | "Wednesday" + | "Thursday" + | "Friday" + | "Saturday" + )[]; /** * Hours of the day for which the report is calculated diff --git a/packages/core/src/definitions/AggregateA2PSMSStatusesParameters.ts b/packages/core/src/definitions/AggregateA2PSMSStatusesParameters.ts index 3fb67ae8..d6327074 100644 --- a/packages/core/src/definitions/AggregateA2PSMSStatusesParameters.ts +++ b/packages/core/src/definitions/AggregateA2PSMSStatusesParameters.ts @@ -12,7 +12,7 @@ interface AggregateA2PSMSStatusesParameters { * Direction of the SMS message * Example: Inbound */ - direction?: 'Inbound' | 'Outbound'; + direction?: "Inbound" | "Outbound"; /** * The end of the time range to filter the results in ISO 8601 format including timezone. Default is the 'dateTo' minus 24 hours diff --git a/packages/core/src/definitions/AggregationRequest.ts b/packages/core/src/definitions/AggregationRequest.ts index b4c83f75..d6754aeb 100644 --- a/packages/core/src/definitions/AggregationRequest.ts +++ b/packages/core/src/definitions/AggregationRequest.ts @@ -1,7 +1,7 @@ -import type Grouping from './Grouping'; -import type TimeSettings from './TimeSettings'; -import type CallFilters from './CallFilters'; -import type AggregationResponseOptions from './AggregationResponseOptions'; +import type Grouping from "./Grouping"; +import type TimeSettings from "./TimeSettings"; +import type CallFilters from "./CallFilters"; +import type AggregationResponseOptions from "./AggregationResponseOptions"; interface AggregationRequest { /** @@ -14,8 +14,7 @@ interface AggregationRequest { */ timeSettings?: TimeSettings; - /** - */ + /** */ callFilters?: CallFilters; /** diff --git a/packages/core/src/definitions/AggregationResponse.ts b/packages/core/src/definitions/AggregationResponse.ts index 97e5bff0..0e162c74 100644 --- a/packages/core/src/definitions/AggregationResponse.ts +++ b/packages/core/src/definitions/AggregationResponse.ts @@ -1,5 +1,5 @@ -import type ResponsePaging from './ResponsePaging'; -import type AggregationResponseData from './AggregationResponseData'; +import type ResponsePaging from "./ResponsePaging"; +import type AggregationResponseData from "./AggregationResponseData"; interface AggregationResponse { /** diff --git a/packages/core/src/definitions/AggregationResponseData.ts b/packages/core/src/definitions/AggregationResponseData.ts index f8f27b5f..59be255d 100644 --- a/packages/core/src/definitions/AggregationResponseData.ts +++ b/packages/core/src/definitions/AggregationResponseData.ts @@ -1,4 +1,4 @@ -import type AggregationResponseRecord from './AggregationResponseRecord'; +import type AggregationResponseRecord from "./AggregationResponseRecord"; /** * Aggregation result @@ -9,15 +9,15 @@ interface AggregationResponseData { * Required */ groupedBy?: - | 'Company' - | 'CompanyNumbers' - | 'Users' - | 'Queues' - | 'IVRs' - | 'SharedLines' - | 'UserGroups' - | 'Sites' - | 'Departments'; + | "Company" + | "CompanyNumbers" + | "Users" + | "Queues" + | "IVRs" + | "SharedLines" + | "UserGroups" + | "Sites" + | "Departments"; /** * A list of call aggregations as per the grouping and filtering options specified in the request diff --git a/packages/core/src/definitions/AggregationResponseOptions.ts b/packages/core/src/definitions/AggregationResponseOptions.ts index 34349690..79f145f7 100644 --- a/packages/core/src/definitions/AggregationResponseOptions.ts +++ b/packages/core/src/definitions/AggregationResponseOptions.ts @@ -1,16 +1,14 @@ -import type AggregationResponseOptionsCounters from './AggregationResponseOptionsCounters'; -import type AggregationResponseOptionsTimers from './AggregationResponseOptionsTimers'; +import type AggregationResponseOptionsCounters from "./AggregationResponseOptionsCounters"; +import type AggregationResponseOptionsTimers from "./AggregationResponseOptionsTimers"; /** * This field provides mapping of possible breakdown options for call aggregation and aggregation formula */ interface AggregationResponseOptions { - /** - */ + /** */ counters?: AggregationResponseOptionsCounters; - /** - */ + /** */ timers?: AggregationResponseOptionsTimers; } diff --git a/packages/core/src/definitions/AggregationResponseOptionsCounters.ts b/packages/core/src/definitions/AggregationResponseOptionsCounters.ts index 41b96ee1..689795dd 100644 --- a/packages/core/src/definitions/AggregationResponseOptionsCounters.ts +++ b/packages/core/src/definitions/AggregationResponseOptionsCounters.ts @@ -1,14 +1,14 @@ -import type AggregationResponseOptionsCountersAllCalls from './AggregationResponseOptionsCountersAllCalls'; -import type AggregationResponseOptionsCountersCallsByDirection from './AggregationResponseOptionsCountersCallsByDirection'; -import type AggregationResponseOptionsCountersCallsByOrigin from './AggregationResponseOptionsCountersCallsByOrigin'; -import type AggregationResponseOptionsCountersCallsByResponse from './AggregationResponseOptionsCountersCallsByResponse'; -import type AggregationResponseOptionsCountersCallsSegments from './AggregationResponseOptionsCountersCallsSegments'; -import type AggregationResponseOptionsCountersCallsByResult from './AggregationResponseOptionsCountersCallsByResult'; -import type AggregationResponseOptionsCountersCallsByCompanyHours from './AggregationResponseOptionsCountersCallsByCompanyHours'; -import type AggregationResponseOptionsCountersCallsByQueueSla from './AggregationResponseOptionsCountersCallsByQueueSla'; -import type AggregationResponseOptionsCountersCallsByActions from './AggregationResponseOptionsCountersCallsByActions'; -import type AggregationResponseOptionsCountersCallsByType from './AggregationResponseOptionsCountersCallsByType'; -import type AggregationResponseOptionsCountersQueueOpportunities from './AggregationResponseOptionsCountersQueueOpportunities'; +import type AggregationResponseOptionsCountersAllCalls from "./AggregationResponseOptionsCountersAllCalls"; +import type AggregationResponseOptionsCountersCallsByDirection from "./AggregationResponseOptionsCountersCallsByDirection"; +import type AggregationResponseOptionsCountersCallsByOrigin from "./AggregationResponseOptionsCountersCallsByOrigin"; +import type AggregationResponseOptionsCountersCallsByResponse from "./AggregationResponseOptionsCountersCallsByResponse"; +import type AggregationResponseOptionsCountersCallsSegments from "./AggregationResponseOptionsCountersCallsSegments"; +import type AggregationResponseOptionsCountersCallsByResult from "./AggregationResponseOptionsCountersCallsByResult"; +import type AggregationResponseOptionsCountersCallsByCompanyHours from "./AggregationResponseOptionsCountersCallsByCompanyHours"; +import type AggregationResponseOptionsCountersCallsByQueueSla from "./AggregationResponseOptionsCountersCallsByQueueSla"; +import type AggregationResponseOptionsCountersCallsByActions from "./AggregationResponseOptionsCountersCallsByActions"; +import type AggregationResponseOptionsCountersCallsByType from "./AggregationResponseOptionsCountersCallsByType"; +import type AggregationResponseOptionsCountersQueueOpportunities from "./AggregationResponseOptionsCountersQueueOpportunities"; /** * The formula is defined by `aggregationType` and `aggregationInterval` for every counter individually. diff --git a/packages/core/src/definitions/AggregationResponseOptionsCountersAllCalls.ts b/packages/core/src/definitions/AggregationResponseOptionsCountersAllCalls.ts index 192b2526..116106ae 100644 --- a/packages/core/src/definitions/AggregationResponseOptionsCountersAllCalls.ts +++ b/packages/core/src/definitions/AggregationResponseOptionsCountersAllCalls.ts @@ -2,12 +2,12 @@ interface AggregationResponseOptionsCountersAllCalls { /** * Counter aggregation type. Can be `Sum`, `Average`, `Min`, `Max` or `Percent` */ - aggregationType?: 'Sum' | 'Average' | 'Max' | 'Min' | 'Percent'; + aggregationType?: "Sum" | "Average" | "Max" | "Min" | "Percent"; /** * Time interval which will be used for aggregation. Can be `Hour`, `Day`, `Week` or `Month` */ - aggregationInterval?: 'Hour' | 'Day' | 'Week' | 'Month'; + aggregationInterval?: "Hour" | "Day" | "Week" | "Month"; } export default AggregationResponseOptionsCountersAllCalls; diff --git a/packages/core/src/definitions/AggregationResponseOptionsCountersCallsByActions.ts b/packages/core/src/definitions/AggregationResponseOptionsCountersCallsByActions.ts index bfec6e63..798e5dd0 100644 --- a/packages/core/src/definitions/AggregationResponseOptionsCountersCallsByActions.ts +++ b/packages/core/src/definitions/AggregationResponseOptionsCountersCallsByActions.ts @@ -2,12 +2,12 @@ interface AggregationResponseOptionsCountersCallsByActions { /** * Counter aggregation type. Can be `Sum`, `Average`, `Min`, `Max` or `Percent` */ - aggregationType?: 'Sum' | 'Average' | 'Max' | 'Min' | 'Percent'; + aggregationType?: "Sum" | "Average" | "Max" | "Min" | "Percent"; /** * Time interval which will be used for aggregation. Can be `Hour`, `Day`, `Week` or `Month` */ - aggregationInterval?: 'Hour' | 'Day' | 'Week' | 'Month'; + aggregationInterval?: "Hour" | "Day" | "Week" | "Month"; } export default AggregationResponseOptionsCountersCallsByActions; diff --git a/packages/core/src/definitions/AggregationResponseOptionsCountersCallsByCompanyHours.ts b/packages/core/src/definitions/AggregationResponseOptionsCountersCallsByCompanyHours.ts index a2bc7e6b..fc821f38 100644 --- a/packages/core/src/definitions/AggregationResponseOptionsCountersCallsByCompanyHours.ts +++ b/packages/core/src/definitions/AggregationResponseOptionsCountersCallsByCompanyHours.ts @@ -2,12 +2,12 @@ interface AggregationResponseOptionsCountersCallsByCompanyHours { /** * Counter aggregation type. Can be `Sum`, `Average`, `Min`, `Max` or `Percent` */ - aggregationType?: 'Sum' | 'Average' | 'Max' | 'Min' | 'Percent'; + aggregationType?: "Sum" | "Average" | "Max" | "Min" | "Percent"; /** * Time interval which will be used for aggregation. Can be `Hour`, `Day`, `Week` or `Month` */ - aggregationInterval?: 'Hour' | 'Day' | 'Week' | 'Month'; + aggregationInterval?: "Hour" | "Day" | "Week" | "Month"; } export default AggregationResponseOptionsCountersCallsByCompanyHours; diff --git a/packages/core/src/definitions/AggregationResponseOptionsCountersCallsByDirection.ts b/packages/core/src/definitions/AggregationResponseOptionsCountersCallsByDirection.ts index fa497d61..1d88eb99 100644 --- a/packages/core/src/definitions/AggregationResponseOptionsCountersCallsByDirection.ts +++ b/packages/core/src/definitions/AggregationResponseOptionsCountersCallsByDirection.ts @@ -2,12 +2,12 @@ interface AggregationResponseOptionsCountersCallsByDirection { /** * Counter aggregation type. Can be `Sum`, `Average`, `Min`, `Max` or `Percent` */ - aggregationType?: 'Sum' | 'Average' | 'Max' | 'Min' | 'Percent'; + aggregationType?: "Sum" | "Average" | "Max" | "Min" | "Percent"; /** * Time interval which will be used for aggregation. Can be `Hour`, `Day`, `Week` or `Month` */ - aggregationInterval?: 'Hour' | 'Day' | 'Week' | 'Month'; + aggregationInterval?: "Hour" | "Day" | "Week" | "Month"; } export default AggregationResponseOptionsCountersCallsByDirection; diff --git a/packages/core/src/definitions/AggregationResponseOptionsCountersCallsByOrigin.ts b/packages/core/src/definitions/AggregationResponseOptionsCountersCallsByOrigin.ts index 05830a33..d58201ee 100644 --- a/packages/core/src/definitions/AggregationResponseOptionsCountersCallsByOrigin.ts +++ b/packages/core/src/definitions/AggregationResponseOptionsCountersCallsByOrigin.ts @@ -2,12 +2,12 @@ interface AggregationResponseOptionsCountersCallsByOrigin { /** * Counter aggregation type. Can be `Sum`, `Average`, `Min`, `Max` or `Percent` */ - aggregationType?: 'Sum' | 'Average' | 'Max' | 'Min' | 'Percent'; + aggregationType?: "Sum" | "Average" | "Max" | "Min" | "Percent"; /** * Time interval which will be used for aggregation. Can be `Hour`, `Day`, `Week` or `Month` */ - aggregationInterval?: 'Hour' | 'Day' | 'Week' | 'Month'; + aggregationInterval?: "Hour" | "Day" | "Week" | "Month"; } export default AggregationResponseOptionsCountersCallsByOrigin; diff --git a/packages/core/src/definitions/AggregationResponseOptionsCountersCallsByQueueSla.ts b/packages/core/src/definitions/AggregationResponseOptionsCountersCallsByQueueSla.ts index 461583bc..5c90d760 100644 --- a/packages/core/src/definitions/AggregationResponseOptionsCountersCallsByQueueSla.ts +++ b/packages/core/src/definitions/AggregationResponseOptionsCountersCallsByQueueSla.ts @@ -2,12 +2,12 @@ interface AggregationResponseOptionsCountersCallsByQueueSla { /** * Counter aggregation type. Can be `Sum`, `Average`, `Min`, `Max` or `Percent` */ - aggregationType?: 'Sum' | 'Average' | 'Max' | 'Min' | 'Percent'; + aggregationType?: "Sum" | "Average" | "Max" | "Min" | "Percent"; /** * Time interval which will be used for aggregation. Can be `Hour`, `Day`, `Week` or `Month` */ - aggregationInterval?: 'Hour' | 'Day' | 'Week' | 'Month'; + aggregationInterval?: "Hour" | "Day" | "Week" | "Month"; } export default AggregationResponseOptionsCountersCallsByQueueSla; diff --git a/packages/core/src/definitions/AggregationResponseOptionsCountersCallsByResponse.ts b/packages/core/src/definitions/AggregationResponseOptionsCountersCallsByResponse.ts index 99aeaa74..9999f427 100644 --- a/packages/core/src/definitions/AggregationResponseOptionsCountersCallsByResponse.ts +++ b/packages/core/src/definitions/AggregationResponseOptionsCountersCallsByResponse.ts @@ -2,12 +2,12 @@ interface AggregationResponseOptionsCountersCallsByResponse { /** * Counter aggregation type. Can be `Sum`, `Average`, `Min`, `Max` or `Percent` */ - aggregationType?: 'Sum' | 'Average' | 'Max' | 'Min' | 'Percent'; + aggregationType?: "Sum" | "Average" | "Max" | "Min" | "Percent"; /** * Time interval which will be used for aggregation. Can be `Hour`, `Day`, `Week` or `Month` */ - aggregationInterval?: 'Hour' | 'Day' | 'Week' | 'Month'; + aggregationInterval?: "Hour" | "Day" | "Week" | "Month"; } export default AggregationResponseOptionsCountersCallsByResponse; diff --git a/packages/core/src/definitions/AggregationResponseOptionsCountersCallsByResult.ts b/packages/core/src/definitions/AggregationResponseOptionsCountersCallsByResult.ts index c833b7e8..40b871b9 100644 --- a/packages/core/src/definitions/AggregationResponseOptionsCountersCallsByResult.ts +++ b/packages/core/src/definitions/AggregationResponseOptionsCountersCallsByResult.ts @@ -2,12 +2,12 @@ interface AggregationResponseOptionsCountersCallsByResult { /** * Counter aggregation type. Can be `Sum`, `Average`, `Min`, `Max` or `Percent` */ - aggregationType?: 'Sum' | 'Average' | 'Max' | 'Min' | 'Percent'; + aggregationType?: "Sum" | "Average" | "Max" | "Min" | "Percent"; /** * Time interval which will be used for aggregation. Can be `Hour`, `Day`, `Week` or `Month` */ - aggregationInterval?: 'Hour' | 'Day' | 'Week' | 'Month'; + aggregationInterval?: "Hour" | "Day" | "Week" | "Month"; } export default AggregationResponseOptionsCountersCallsByResult; diff --git a/packages/core/src/definitions/AggregationResponseOptionsCountersCallsByType.ts b/packages/core/src/definitions/AggregationResponseOptionsCountersCallsByType.ts index b4b7c329..bda5d433 100644 --- a/packages/core/src/definitions/AggregationResponseOptionsCountersCallsByType.ts +++ b/packages/core/src/definitions/AggregationResponseOptionsCountersCallsByType.ts @@ -2,12 +2,12 @@ interface AggregationResponseOptionsCountersCallsByType { /** * Counter aggregation type. Can be `Sum`, `Average`, `Min`, `Max` or `Percent` */ - aggregationType?: 'Sum' | 'Average' | 'Max' | 'Min' | 'Percent'; + aggregationType?: "Sum" | "Average" | "Max" | "Min" | "Percent"; /** * Time interval which will be used for aggregation. Can be `Hour`, `Day`, `Week` or `Month` */ - aggregationInterval?: 'Hour' | 'Day' | 'Week' | 'Month'; + aggregationInterval?: "Hour" | "Day" | "Week" | "Month"; } export default AggregationResponseOptionsCountersCallsByType; diff --git a/packages/core/src/definitions/AggregationResponseOptionsCountersCallsSegments.ts b/packages/core/src/definitions/AggregationResponseOptionsCountersCallsSegments.ts index 8d3b82c7..c4dc0298 100644 --- a/packages/core/src/definitions/AggregationResponseOptionsCountersCallsSegments.ts +++ b/packages/core/src/definitions/AggregationResponseOptionsCountersCallsSegments.ts @@ -2,12 +2,12 @@ interface AggregationResponseOptionsCountersCallsSegments { /** * Counter aggregation type. Can be `Sum`, `Average`, `Min`, `Max` or `Percent` */ - aggregationType?: 'Sum' | 'Average' | 'Max' | 'Min' | 'Percent'; + aggregationType?: "Sum" | "Average" | "Max" | "Min" | "Percent"; /** * Time interval which will be used for aggregation. Can be `Hour`, `Day`, `Week` or `Month` */ - aggregationInterval?: 'Hour' | 'Day' | 'Week' | 'Month'; + aggregationInterval?: "Hour" | "Day" | "Week" | "Month"; } export default AggregationResponseOptionsCountersCallsSegments; diff --git a/packages/core/src/definitions/AggregationResponseOptionsCountersQueueOpportunities.ts b/packages/core/src/definitions/AggregationResponseOptionsCountersQueueOpportunities.ts index 7e17d5f7..6d25647d 100644 --- a/packages/core/src/definitions/AggregationResponseOptionsCountersQueueOpportunities.ts +++ b/packages/core/src/definitions/AggregationResponseOptionsCountersQueueOpportunities.ts @@ -2,7 +2,7 @@ interface AggregationResponseOptionsCountersQueueOpportunities { /** * Counter aggregation type for queue opportunities, limited to `Sum` only. */ - aggregationType?: 'Sum'; + aggregationType?: "Sum"; } export default AggregationResponseOptionsCountersQueueOpportunities; diff --git a/packages/core/src/definitions/AggregationResponseOptionsTimers.ts b/packages/core/src/definitions/AggregationResponseOptionsTimers.ts index 0ac352c4..4de79fc1 100644 --- a/packages/core/src/definitions/AggregationResponseOptionsTimers.ts +++ b/packages/core/src/definitions/AggregationResponseOptionsTimers.ts @@ -1,12 +1,12 @@ -import type AggregationResponseOptionsTimersAllCallsDuration from './AggregationResponseOptionsTimersAllCallsDuration'; -import type AggregationResponseOptionsTimersCallsDurationByDirection from './AggregationResponseOptionsTimersCallsDurationByDirection'; -import type AggregationResponseOptionsTimersCallsDurationByOrigin from './AggregationResponseOptionsTimersCallsDurationByOrigin'; -import type AggregationResponseOptionsTimersCallsDurationByResponse from './AggregationResponseOptionsTimersCallsDurationByResponse'; -import type AggregationResponseOptionsTimersCallsSegmentsDuration from './AggregationResponseOptionsTimersCallsSegmentsDuration'; -import type AggregationResponseOptionsTimersCallsDurationByResult from './AggregationResponseOptionsTimersCallsDurationByResult'; -import type AggregationResponseOptionsTimersCallsDurationByCompanyHours from './AggregationResponseOptionsTimersCallsDurationByCompanyHours'; -import type AggregationResponseOptionsTimersCallsDurationByQueueSla from './AggregationResponseOptionsTimersCallsDurationByQueueSla'; -import type AggregationResponseOptionsTimersCallsDurationByType from './AggregationResponseOptionsTimersCallsDurationByType'; +import type AggregationResponseOptionsTimersAllCallsDuration from "./AggregationResponseOptionsTimersAllCallsDuration"; +import type AggregationResponseOptionsTimersCallsDurationByDirection from "./AggregationResponseOptionsTimersCallsDurationByDirection"; +import type AggregationResponseOptionsTimersCallsDurationByOrigin from "./AggregationResponseOptionsTimersCallsDurationByOrigin"; +import type AggregationResponseOptionsTimersCallsDurationByResponse from "./AggregationResponseOptionsTimersCallsDurationByResponse"; +import type AggregationResponseOptionsTimersCallsSegmentsDuration from "./AggregationResponseOptionsTimersCallsSegmentsDuration"; +import type AggregationResponseOptionsTimersCallsDurationByResult from "./AggregationResponseOptionsTimersCallsDurationByResult"; +import type AggregationResponseOptionsTimersCallsDurationByCompanyHours from "./AggregationResponseOptionsTimersCallsDurationByCompanyHours"; +import type AggregationResponseOptionsTimersCallsDurationByQueueSla from "./AggregationResponseOptionsTimersCallsDurationByQueueSla"; +import type AggregationResponseOptionsTimersCallsDurationByType from "./AggregationResponseOptionsTimersCallsDurationByType"; /** * The formula is defined by `aggregationType` and `aggregationInterval` for every timer individually. @@ -23,7 +23,8 @@ interface AggregationResponseOptionsTimers { /** * Aggregation of calls duration by direction (Inbound, Outbound) */ - callsDurationByDirection?: AggregationResponseOptionsTimersCallsDurationByDirection; + callsDurationByDirection?: + AggregationResponseOptionsTimersCallsDurationByDirection; /** * Aggregation of calls duration by origin (Internal, External) @@ -33,7 +34,8 @@ interface AggregationResponseOptionsTimers { /** * Aggregation of calls duration by response (Answered, NotAnswered, Connected, NotConnected) */ - callsDurationByResponse?: AggregationResponseOptionsTimersCallsDurationByResponse; + callsDurationByResponse?: + AggregationResponseOptionsTimersCallsDurationByResponse; /** * Aggregation of calls duration by segments (Ringing, LiveTalk, Hold, Park, Transfer, IvrPrompt, Voicemail, VmGreeting, Setup) @@ -48,12 +50,14 @@ interface AggregationResponseOptionsTimers { /** * Aggregation of calls duration by company hours (BusinessHours, AfterHours) */ - callsDurationByCompanyHours?: AggregationResponseOptionsTimersCallsDurationByCompanyHours; + callsDurationByCompanyHours?: + AggregationResponseOptionsTimersCallsDurationByCompanyHours; /** * Aggregation of calls duration by queue SLA (InSLA, OutSLA). This timer is only applicable to Queues grouping */ - callsDurationByQueueSla?: AggregationResponseOptionsTimersCallsDurationByQueueSla; + callsDurationByQueueSla?: + AggregationResponseOptionsTimersCallsDurationByQueueSla; /** * Aggregation of calls duration by type (Direct, FromQueue, ParkRetrieval, Transferred, Outbound) diff --git a/packages/core/src/definitions/AggregationResponseOptionsTimersAllCallsDuration.ts b/packages/core/src/definitions/AggregationResponseOptionsTimersAllCallsDuration.ts index 17ae03b2..25909f69 100644 --- a/packages/core/src/definitions/AggregationResponseOptionsTimersAllCallsDuration.ts +++ b/packages/core/src/definitions/AggregationResponseOptionsTimersAllCallsDuration.ts @@ -2,12 +2,12 @@ interface AggregationResponseOptionsTimersAllCallsDuration { /** * Counter aggregation type. Can be `Sum`, `Average`, `Min`, `Max` or `Percent` */ - aggregationType?: 'Sum' | 'Average' | 'Max' | 'Min' | 'Percent'; + aggregationType?: "Sum" | "Average" | "Max" | "Min" | "Percent"; /** * Time interval which will be used for aggregation. Can be `Hour`, `Day`, `Week` or `Month` */ - aggregationInterval?: 'Hour' | 'Day' | 'Week' | 'Month'; + aggregationInterval?: "Hour" | "Day" | "Week" | "Month"; } export default AggregationResponseOptionsTimersAllCallsDuration; diff --git a/packages/core/src/definitions/AggregationResponseOptionsTimersCallsDurationByCompanyHours.ts b/packages/core/src/definitions/AggregationResponseOptionsTimersCallsDurationByCompanyHours.ts index 63dc8f0c..dee02cb5 100644 --- a/packages/core/src/definitions/AggregationResponseOptionsTimersCallsDurationByCompanyHours.ts +++ b/packages/core/src/definitions/AggregationResponseOptionsTimersCallsDurationByCompanyHours.ts @@ -2,12 +2,12 @@ interface AggregationResponseOptionsTimersCallsDurationByCompanyHours { /** * Counter aggregation type. Can be `Sum`, `Average`, `Min`, `Max` or `Percent` */ - aggregationType?: 'Sum' | 'Average' | 'Max' | 'Min' | 'Percent'; + aggregationType?: "Sum" | "Average" | "Max" | "Min" | "Percent"; /** * Time interval which will be used for aggregation. Can be `Hour`, `Day`, `Week` or `Month` */ - aggregationInterval?: 'Hour' | 'Day' | 'Week' | 'Month'; + aggregationInterval?: "Hour" | "Day" | "Week" | "Month"; } export default AggregationResponseOptionsTimersCallsDurationByCompanyHours; diff --git a/packages/core/src/definitions/AggregationResponseOptionsTimersCallsDurationByDirection.ts b/packages/core/src/definitions/AggregationResponseOptionsTimersCallsDurationByDirection.ts index c3dfec67..5659328d 100644 --- a/packages/core/src/definitions/AggregationResponseOptionsTimersCallsDurationByDirection.ts +++ b/packages/core/src/definitions/AggregationResponseOptionsTimersCallsDurationByDirection.ts @@ -2,12 +2,12 @@ interface AggregationResponseOptionsTimersCallsDurationByDirection { /** * Counter aggregation type. Can be `Sum`, `Average`, `Min`, `Max` or `Percent` */ - aggregationType?: 'Sum' | 'Average' | 'Max' | 'Min' | 'Percent'; + aggregationType?: "Sum" | "Average" | "Max" | "Min" | "Percent"; /** * Time interval which will be used for aggregation. Can be `Hour`, `Day`, `Week` or `Month` */ - aggregationInterval?: 'Hour' | 'Day' | 'Week' | 'Month'; + aggregationInterval?: "Hour" | "Day" | "Week" | "Month"; } export default AggregationResponseOptionsTimersCallsDurationByDirection; diff --git a/packages/core/src/definitions/AggregationResponseOptionsTimersCallsDurationByOrigin.ts b/packages/core/src/definitions/AggregationResponseOptionsTimersCallsDurationByOrigin.ts index acef5c4a..436a1ef4 100644 --- a/packages/core/src/definitions/AggregationResponseOptionsTimersCallsDurationByOrigin.ts +++ b/packages/core/src/definitions/AggregationResponseOptionsTimersCallsDurationByOrigin.ts @@ -2,12 +2,12 @@ interface AggregationResponseOptionsTimersCallsDurationByOrigin { /** * Counter aggregation type. Can be `Sum`, `Average`, `Min`, `Max` or `Percent` */ - aggregationType?: 'Sum' | 'Average' | 'Max' | 'Min' | 'Percent'; + aggregationType?: "Sum" | "Average" | "Max" | "Min" | "Percent"; /** * Time interval which will be used for aggregation. Can be `Hour`, `Day`, `Week` or `Month` */ - aggregationInterval?: 'Hour' | 'Day' | 'Week' | 'Month'; + aggregationInterval?: "Hour" | "Day" | "Week" | "Month"; } export default AggregationResponseOptionsTimersCallsDurationByOrigin; diff --git a/packages/core/src/definitions/AggregationResponseOptionsTimersCallsDurationByQueueSla.ts b/packages/core/src/definitions/AggregationResponseOptionsTimersCallsDurationByQueueSla.ts index a8172657..cc5d80f1 100644 --- a/packages/core/src/definitions/AggregationResponseOptionsTimersCallsDurationByQueueSla.ts +++ b/packages/core/src/definitions/AggregationResponseOptionsTimersCallsDurationByQueueSla.ts @@ -2,12 +2,12 @@ interface AggregationResponseOptionsTimersCallsDurationByQueueSla { /** * Counter aggregation type. Can be `Sum`, `Average`, `Min`, `Max` or `Percent` */ - aggregationType?: 'Sum' | 'Average' | 'Max' | 'Min' | 'Percent'; + aggregationType?: "Sum" | "Average" | "Max" | "Min" | "Percent"; /** * Time interval which will be used for aggregation. Can be `Hour`, `Day`, `Week` or `Month` */ - aggregationInterval?: 'Hour' | 'Day' | 'Week' | 'Month'; + aggregationInterval?: "Hour" | "Day" | "Week" | "Month"; } export default AggregationResponseOptionsTimersCallsDurationByQueueSla; diff --git a/packages/core/src/definitions/AggregationResponseOptionsTimersCallsDurationByResponse.ts b/packages/core/src/definitions/AggregationResponseOptionsTimersCallsDurationByResponse.ts index e57ddd42..1aa583a1 100644 --- a/packages/core/src/definitions/AggregationResponseOptionsTimersCallsDurationByResponse.ts +++ b/packages/core/src/definitions/AggregationResponseOptionsTimersCallsDurationByResponse.ts @@ -2,12 +2,12 @@ interface AggregationResponseOptionsTimersCallsDurationByResponse { /** * Counter aggregation type. Can be `Sum`, `Average`, `Min`, `Max` or `Percent` */ - aggregationType?: 'Sum' | 'Average' | 'Max' | 'Min' | 'Percent'; + aggregationType?: "Sum" | "Average" | "Max" | "Min" | "Percent"; /** * Time interval which will be used for aggregation. Can be `Hour`, `Day`, `Week` or `Month` */ - aggregationInterval?: 'Hour' | 'Day' | 'Week' | 'Month'; + aggregationInterval?: "Hour" | "Day" | "Week" | "Month"; } export default AggregationResponseOptionsTimersCallsDurationByResponse; diff --git a/packages/core/src/definitions/AggregationResponseOptionsTimersCallsDurationByResult.ts b/packages/core/src/definitions/AggregationResponseOptionsTimersCallsDurationByResult.ts index e626646e..8b37c523 100644 --- a/packages/core/src/definitions/AggregationResponseOptionsTimersCallsDurationByResult.ts +++ b/packages/core/src/definitions/AggregationResponseOptionsTimersCallsDurationByResult.ts @@ -2,12 +2,12 @@ interface AggregationResponseOptionsTimersCallsDurationByResult { /** * Counter aggregation type. Can be `Sum`, `Average`, `Min`, `Max` or `Percent` */ - aggregationType?: 'Sum' | 'Average' | 'Max' | 'Min' | 'Percent'; + aggregationType?: "Sum" | "Average" | "Max" | "Min" | "Percent"; /** * Time interval which will be used for aggregation. Can be `Hour`, `Day`, `Week` or `Month` */ - aggregationInterval?: 'Hour' | 'Day' | 'Week' | 'Month'; + aggregationInterval?: "Hour" | "Day" | "Week" | "Month"; } export default AggregationResponseOptionsTimersCallsDurationByResult; diff --git a/packages/core/src/definitions/AggregationResponseOptionsTimersCallsDurationByType.ts b/packages/core/src/definitions/AggregationResponseOptionsTimersCallsDurationByType.ts index 6f841aa0..1a0070fd 100644 --- a/packages/core/src/definitions/AggregationResponseOptionsTimersCallsDurationByType.ts +++ b/packages/core/src/definitions/AggregationResponseOptionsTimersCallsDurationByType.ts @@ -2,12 +2,12 @@ interface AggregationResponseOptionsTimersCallsDurationByType { /** * Counter aggregation type. Can be `Sum`, `Average`, `Min`, `Max` or `Percent` */ - aggregationType?: 'Sum' | 'Average' | 'Max' | 'Min' | 'Percent'; + aggregationType?: "Sum" | "Average" | "Max" | "Min" | "Percent"; /** * Time interval which will be used for aggregation. Can be `Hour`, `Day`, `Week` or `Month` */ - aggregationInterval?: 'Hour' | 'Day' | 'Week' | 'Month'; + aggregationInterval?: "Hour" | "Day" | "Week" | "Month"; } export default AggregationResponseOptionsTimersCallsDurationByType; diff --git a/packages/core/src/definitions/AggregationResponseOptionsTimersCallsSegmentsDuration.ts b/packages/core/src/definitions/AggregationResponseOptionsTimersCallsSegmentsDuration.ts index 0b7a2edd..e45f96c0 100644 --- a/packages/core/src/definitions/AggregationResponseOptionsTimersCallsSegmentsDuration.ts +++ b/packages/core/src/definitions/AggregationResponseOptionsTimersCallsSegmentsDuration.ts @@ -2,12 +2,12 @@ interface AggregationResponseOptionsTimersCallsSegmentsDuration { /** * Counter aggregation type. Can be `Sum`, `Average`, `Min`, `Max` or `Percent` */ - aggregationType?: 'Sum' | 'Average' | 'Max' | 'Min' | 'Percent'; + aggregationType?: "Sum" | "Average" | "Max" | "Min" | "Percent"; /** * Time interval which will be used for aggregation. Can be `Hour`, `Day`, `Week` or `Month` */ - aggregationInterval?: 'Hour' | 'Day' | 'Week' | 'Month'; + aggregationInterval?: "Hour" | "Day" | "Week" | "Month"; } export default AggregationResponseOptionsTimersCallsSegmentsDuration; diff --git a/packages/core/src/definitions/AggregationResponseRecord.ts b/packages/core/src/definitions/AggregationResponseRecord.ts index d2e0b848..056dbceb 100644 --- a/packages/core/src/definitions/AggregationResponseRecord.ts +++ b/packages/core/src/definitions/AggregationResponseRecord.ts @@ -1,6 +1,6 @@ -import type KeyInfo from './KeyInfo'; -import type CallsTimers from './CallsTimers'; -import type CallsCounters from './CallsCounters'; +import type KeyInfo from "./KeyInfo"; +import type CallsTimers from "./CallsTimers"; +import type CallsCounters from "./CallsCounters"; interface AggregationResponseRecord { /** @@ -9,16 +9,13 @@ interface AggregationResponseRecord { */ key?: string; - /** - */ + /** */ info?: KeyInfo; - /** - */ + /** */ timers?: CallsTimers; - /** - */ + /** */ counters?: CallsCounters; } diff --git a/packages/core/src/definitions/AllCalls.ts b/packages/core/src/definitions/AllCalls.ts index 90a14da2..1cbf23be 100644 --- a/packages/core/src/definitions/AllCalls.ts +++ b/packages/core/src/definitions/AllCalls.ts @@ -6,7 +6,7 @@ interface AllCalls { * Unit of the result value * Required */ - valueType?: 'Percent' | 'Seconds' | 'Instances'; + valueType?: "Percent" | "Seconds" | "Instances"; /** * Value for all calls diff --git a/packages/core/src/definitions/AnalyticsCallsTimelineFetchParameters.ts b/packages/core/src/definitions/AnalyticsCallsTimelineFetchParameters.ts index f89f6430..30f69bb9 100644 --- a/packages/core/src/definitions/AnalyticsCallsTimelineFetchParameters.ts +++ b/packages/core/src/definitions/AnalyticsCallsTimelineFetchParameters.ts @@ -5,7 +5,7 @@ interface AnalyticsCallsTimelineFetchParameters { /** * Aggregation interval */ - interval?: 'Hour' | 'Day' | 'Week' | 'Month'; + interval?: "Hour" | "Day" | "Week" | "Month"; /** * The current page number (positive numbers only) diff --git a/packages/core/src/definitions/ApiErrorResponseModel.ts b/packages/core/src/definitions/ApiErrorResponseModel.ts index ab04137c..e51d89b3 100644 --- a/packages/core/src/definitions/ApiErrorResponseModel.ts +++ b/packages/core/src/definitions/ApiErrorResponseModel.ts @@ -1,4 +1,4 @@ -import type ApiError from './ApiError'; +import type ApiError from "./ApiError"; /** * Standard error response model which is returned in case of any unsuccessful operation diff --git a/packages/core/src/definitions/ApiVersionsList.ts b/packages/core/src/definitions/ApiVersionsList.ts index af9a6473..2b8179dc 100644 --- a/packages/core/src/definitions/ApiVersionsList.ts +++ b/packages/core/src/definitions/ApiVersionsList.ts @@ -1,4 +1,4 @@ -import type ApiVersionInfo from './ApiVersionInfo'; +import type ApiVersionInfo from "./ApiVersionInfo"; interface ApiVersionsList { /** diff --git a/packages/core/src/definitions/AsrApiResponse.ts b/packages/core/src/definitions/AsrApiResponse.ts index 85244fda..2999cbd9 100644 --- a/packages/core/src/definitions/AsrApiResponse.ts +++ b/packages/core/src/definitions/AsrApiResponse.ts @@ -1,12 +1,10 @@ -import type AsrApiResponseResponse from './AsrApiResponseResponse'; +import type AsrApiResponseResponse from "./AsrApiResponseResponse"; interface AsrApiResponse { - /** - */ - status?: 'Success' | 'Fail'; + /** */ + status?: "Success" | "Fail"; - /** - */ + /** */ response?: AsrApiResponseResponse; } diff --git a/packages/core/src/definitions/AsrApiResponseResponse.ts b/packages/core/src/definitions/AsrApiResponseResponse.ts index 9f64eb5b..77b0119a 100644 --- a/packages/core/src/definitions/AsrApiResponseResponse.ts +++ b/packages/core/src/definitions/AsrApiResponseResponse.ts @@ -1,5 +1,5 @@ -import type UtteranceObject from './UtteranceObject'; -import type WordSegment from './WordSegment'; +import type UtteranceObject from "./UtteranceObject"; +import type WordSegment from "./WordSegment"; interface AsrApiResponseResponse { /** @@ -14,8 +14,7 @@ interface AsrApiResponseResponse { */ utterances?: UtteranceObject[]; - /** - */ + /** */ words?: WordSegment[]; /** diff --git a/packages/core/src/definitions/AsrInput.ts b/packages/core/src/definitions/AsrInput.ts index d375fece..c182dc5f 100644 --- a/packages/core/src/definitions/AsrInput.ts +++ b/packages/core/src/definitions/AsrInput.ts @@ -1,4 +1,4 @@ -import type SpeechContextPhrasesInput from './SpeechContextPhrasesInput'; +import type SpeechContextPhrasesInput from "./SpeechContextPhrasesInput"; interface AsrInput { /** @@ -12,7 +12,7 @@ interface AsrInput { * Required * Example: Wav */ - encoding?: 'Mpeg' | 'Mp4' | 'Wav' | 'Webm' | 'Webp' | 'Aac' | 'Avi' | 'Ogg'; + encoding?: "Mpeg" | "Mp4" | "Wav" | "Webm" | "Webp" | "Aac" | "Avi" | "Ogg"; /** * Language spoken in the audio file. @@ -31,7 +31,13 @@ interface AsrInput { * Type of the audio * Example: CallCenter */ - audioType?: 'CallCenter' | 'Meeting' | 'EarningsCalls' | 'Interview' | 'PressConference' | 'Voicemail'; + audioType?: + | "CallCenter" + | "Meeting" + | "EarningsCalls" + | "Interview" + | "PressConference" + | "Voicemail"; /** * Indicates that the input audio is multi-channel and each channel has a separate speaker. diff --git a/packages/core/src/definitions/AssignMultipleDevicesAutomaticLocationUpdates.ts b/packages/core/src/definitions/AssignMultipleDevicesAutomaticLocationUpdates.ts index b8c1905f..7a808022 100644 --- a/packages/core/src/definitions/AssignMultipleDevicesAutomaticLocationUpdates.ts +++ b/packages/core/src/definitions/AssignMultipleDevicesAutomaticLocationUpdates.ts @@ -1,10 +1,8 @@ interface AssignMultipleDevicesAutomaticLocationUpdates { - /** - */ + /** */ enabledDeviceIds?: string[]; - /** - */ + /** */ disabledDeviceIds?: string[]; } diff --git a/packages/core/src/definitions/AssignPhoneNumberRequest.ts b/packages/core/src/definitions/AssignPhoneNumberRequest.ts index 7e7f3a29..c46fdaa0 100644 --- a/packages/core/src/definitions/AssignPhoneNumberRequest.ts +++ b/packages/core/src/definitions/AssignPhoneNumberRequest.ts @@ -1,28 +1,29 @@ -import type AssignPhoneNumberRequestExtension from './AssignPhoneNumberRequestExtension'; -import type ContactCenterProvider from './ContactCenterProvider'; +import type AssignPhoneNumberRequestExtension from "./AssignPhoneNumberRequestExtension"; +import type ContactCenterProvider from "./ContactCenterProvider"; interface AssignPhoneNumberRequest { /** * Type of a phone number */ - type?: 'VoiceFax' | 'VoiceOnly' | 'FaxOnly'; + type?: "VoiceFax" | "VoiceOnly" | "FaxOnly"; /** * Target usage type of phone number (only listed values are supported) * Required */ - usageType?: 'MainCompanyNumber' | 'CompanyNumber' | 'DirectNumber' | 'ContactCenterNumber'; + usageType?: + | "MainCompanyNumber" + | "CompanyNumber" + | "DirectNumber" + | "ContactCenterNumber"; - /** - */ + /** */ extension?: AssignPhoneNumberRequestExtension; - /** - */ + /** */ costCenterId?: string; - /** - */ + /** */ contactCenterProvider?: ContactCenterProvider; } diff --git a/packages/core/src/definitions/AssignedRolesResource.ts b/packages/core/src/definitions/AssignedRolesResource.ts index 8507714b..85285aee 100644 --- a/packages/core/src/definitions/AssignedRolesResource.ts +++ b/packages/core/src/definitions/AssignedRolesResource.ts @@ -1,4 +1,4 @@ -import type AssignedRoleResource from './AssignedRoleResource'; +import type AssignedRoleResource from "./AssignedRoleResource"; interface AssignedRolesResource { /** @@ -6,8 +6,7 @@ interface AssignedRolesResource { */ uri?: string; - /** - */ + /** */ records?: AssignedRoleResource[]; } diff --git a/packages/core/src/definitions/AssistantResource.ts b/packages/core/src/definitions/AssistantResource.ts index ba402f1e..94554fe8 100644 --- a/packages/core/src/definitions/AssistantResource.ts +++ b/packages/core/src/definitions/AssistantResource.ts @@ -1,10 +1,8 @@ interface AssistantResource { - /** - */ + /** */ id?: string; - /** - */ + /** */ name?: string; } diff --git a/packages/core/src/definitions/AssistantsResource.ts b/packages/core/src/definitions/AssistantsResource.ts index 18fc8e15..471d3709 100644 --- a/packages/core/src/definitions/AssistantsResource.ts +++ b/packages/core/src/definitions/AssistantsResource.ts @@ -1,8 +1,7 @@ -import type AssistantResource from './AssistantResource'; +import type AssistantResource from "./AssistantResource"; interface AssistantsResource { - /** - */ + /** */ records?: AssistantResource[]; } diff --git a/packages/core/src/definitions/AssistedUserResource.ts b/packages/core/src/definitions/AssistedUserResource.ts index 1aab074f..cdba4213 100644 --- a/packages/core/src/definitions/AssistedUserResource.ts +++ b/packages/core/src/definitions/AssistedUserResource.ts @@ -1,10 +1,8 @@ interface AssistedUserResource { - /** - */ + /** */ id?: string; - /** - */ + /** */ name?: string; } diff --git a/packages/core/src/definitions/AssistedUsersResource.ts b/packages/core/src/definitions/AssistedUsersResource.ts index 1d648783..b046fca4 100644 --- a/packages/core/src/definitions/AssistedUsersResource.ts +++ b/packages/core/src/definitions/AssistedUsersResource.ts @@ -1,8 +1,7 @@ -import type AssistedUserResource from './AssistedUserResource'; +import type AssistedUserResource from "./AssistedUserResource"; interface AssistedUsersResource { - /** - */ + /** */ records?: AssistedUserResource[]; } diff --git a/packages/core/src/definitions/AudioInput.ts b/packages/core/src/definitions/AudioInput.ts index 089d7a2d..b33b508e 100644 --- a/packages/core/src/definitions/AudioInput.ts +++ b/packages/core/src/definitions/AudioInput.ts @@ -10,7 +10,7 @@ interface AudioInput { * Required * Example: Wav */ - encoding?: 'Mpeg' | 'Mp4' | 'Wav' | 'Webm' | 'Webp' | 'Aac' | 'Avi' | 'Ogg'; + encoding?: "Mpeg" | "Mp4" | "Wav" | "Webm" | "Webp" | "Aac" | "Avi" | "Ogg"; /** * Language spoken in the audio file. @@ -29,7 +29,13 @@ interface AudioInput { * Type of the audio * Example: CallCenter */ - audioType?: 'CallCenter' | 'Meeting' | 'EarningsCalls' | 'Interview' | 'PressConference' | 'Voicemail'; + audioType?: + | "CallCenter" + | "Meeting" + | "EarningsCalls" + | "Interview" + | "PressConference" + | "Voicemail"; } export default AudioInput; diff --git a/packages/core/src/definitions/AuthCodeTokenRequest.ts b/packages/core/src/definitions/AuthCodeTokenRequest.ts index eac11706..0de3a074 100644 --- a/packages/core/src/definitions/AuthCodeTokenRequest.ts +++ b/packages/core/src/definitions/AuthCodeTokenRequest.ts @@ -1,14 +1,13 @@ /** * Token endpoint request parameters used in the "Authorization Code" and "Authorization code with PKCE" flows * with the `authorization_code` grant type - * */ interface AuthCodeTokenRequest { /** * Grant type * Required */ - grant_type?: 'authorization_code'; + grant_type?: "authorization_code"; /** * For `authorization_code` grant type only. User's authorization code diff --git a/packages/core/src/definitions/AuthProfileCheckResource.ts b/packages/core/src/definitions/AuthProfileCheckResource.ts index 07de2c0c..1a54b682 100644 --- a/packages/core/src/definitions/AuthProfileCheckResource.ts +++ b/packages/core/src/definitions/AuthProfileCheckResource.ts @@ -1,4 +1,4 @@ -import type ActivePermissionResource from './ActivePermissionResource'; +import type ActivePermissionResource from "./ActivePermissionResource"; interface AuthProfileCheckResource { /** @@ -6,12 +6,10 @@ interface AuthProfileCheckResource { */ uri?: string; - /** - */ + /** */ successful?: boolean; - /** - */ + /** */ details?: ActivePermissionResource; } diff --git a/packages/core/src/definitions/AuthProfileResource.ts b/packages/core/src/definitions/AuthProfileResource.ts index c31ec695..b1b472c1 100644 --- a/packages/core/src/definitions/AuthProfileResource.ts +++ b/packages/core/src/definitions/AuthProfileResource.ts @@ -1,4 +1,4 @@ -import type ActivePermissionResource from './ActivePermissionResource'; +import type ActivePermissionResource from "./ActivePermissionResource"; interface AuthProfileResource { /** @@ -6,8 +6,7 @@ interface AuthProfileResource { */ uri?: string; - /** - */ + /** */ permissions?: ActivePermissionResource[]; } diff --git a/packages/core/src/definitions/AuthorizeParameters.ts b/packages/core/src/definitions/AuthorizeParameters.ts index a78ebcd6..9d742ebf 100644 --- a/packages/core/src/definitions/AuthorizeParameters.ts +++ b/packages/core/src/definitions/AuthorizeParameters.ts @@ -11,7 +11,7 @@ interface AuthorizeParameters { /** * Determines authorization flow type. The only supported value is `code` which corresponds to OAuth 2.0 "Authorization Code Flow" */ - response_type?: 'code'; + response_type?: "code"; /** * This is the URI where the Authorization Server redirects the User Agent to at the end of the authorization flow. @@ -37,7 +37,7 @@ interface AuthorizeParameters { * Specifies how the Authorization Server displays the authentication and consent user interface pages to the End-User. * Default: page */ - display?: 'page' | 'popup' | 'touch' | 'mobile'; + display?: "page" | "popup" | "touch" | "mobile"; /** * Space-delimited, case-sensitive list of ASCII string values that specifies whether the Authorization Server prompts the End-User for @@ -79,7 +79,7 @@ interface AuthorizeParameters { * [RFC-7636 "Proof Key for Code Exchange by OAuth Public Clients"](https://datatracker.ietf.org/doc/html/rfc7636) * Default: plain */ - code_challenge_method?: 'plain' | 'S256'; + code_challenge_method?: "plain" | "S256"; /** * String value used to associate a Client session with an ID Token, and to mitigate replay attacks. The value is passed through unmodified from the Authentication Request to the ID Token. diff --git a/packages/core/src/definitions/AuthorizeRequest.ts b/packages/core/src/definitions/AuthorizeRequest.ts index 43a44ad0..d9058088 100644 --- a/packages/core/src/definitions/AuthorizeRequest.ts +++ b/packages/core/src/definitions/AuthorizeRequest.ts @@ -3,7 +3,7 @@ interface AuthorizeRequest { * Determines authorization flow type. The only supported value is `code` which corresponds to OAuth 2.0 "Authorization Code Flow" * Required */ - response_type?: 'code'; + response_type?: "code"; /** * This is the URI where the Authorization Server redirects the User Agent to at the end of the authorization flow. @@ -36,7 +36,7 @@ interface AuthorizeRequest { * Specifies how the Authorization Server displays the authentication and consent user interface pages to the End-User. * Default: page */ - display?: 'page' | 'popup' | 'touch' | 'mobile'; + display?: "page" | "popup" | "touch" | "mobile"; /** * Space-delimited, case-sensitive list of ASCII string values that specifies whether the Authorization Server prompts the End-User for @@ -72,7 +72,7 @@ interface AuthorizeRequest { * [RFC-7636 "Proof Key for Code Exchange by OAuth Public Clients"](https://datatracker.ietf.org/doc/html/rfc7636) * Default: plain */ - code_challenge_method?: 'plain' | 'S256'; + code_challenge_method?: "plain" | "S256"; /** * String value used to associate a Client session with an ID Token, and to mitigate replay attacks. The value is passed through unmodified from the Authentication Request to the ID Token. @@ -96,8 +96,7 @@ interface AuthorizeRequest { */ brand_id?: string; - /** - */ + /** */ accept_language?: string; } diff --git a/packages/core/src/definitions/AutomaticLocationUpdatesDeviceInfo.ts b/packages/core/src/definitions/AutomaticLocationUpdatesDeviceInfo.ts index f7c6b19f..d112339d 100644 --- a/packages/core/src/definitions/AutomaticLocationUpdatesDeviceInfo.ts +++ b/packages/core/src/definitions/AutomaticLocationUpdatesDeviceInfo.ts @@ -1,6 +1,6 @@ -import type AutomaticLocationUpdatesModelInfo from './AutomaticLocationUpdatesModelInfo'; -import type AutomaticLocationUpdatesSiteInfo from './AutomaticLocationUpdatesSiteInfo'; -import type AutomaticLocationUpdatesPhoneLine from './AutomaticLocationUpdatesPhoneLine'; +import type AutomaticLocationUpdatesModelInfo from "./AutomaticLocationUpdatesModelInfo"; +import type AutomaticLocationUpdatesSiteInfo from "./AutomaticLocationUpdatesSiteInfo"; +import type AutomaticLocationUpdatesPhoneLine from "./AutomaticLocationUpdatesPhoneLine"; interface AutomaticLocationUpdatesDeviceInfo { /** @@ -12,7 +12,7 @@ interface AutomaticLocationUpdatesDeviceInfo { * Device type * Default: HardPhone */ - type?: 'HardPhone' | 'SoftPhone' | 'OtherPhone'; + type?: "HardPhone" | "SoftPhone" | "OtherPhone"; /** * Serial number for HardPhone (is returned only when the phone is shipped and provisioned) @@ -29,12 +29,10 @@ interface AutomaticLocationUpdatesDeviceInfo { */ name?: string; - /** - */ + /** */ model?: AutomaticLocationUpdatesModelInfo; - /** - */ + /** */ site?: AutomaticLocationUpdatesSiteInfo; /** diff --git a/packages/core/src/definitions/AutomaticLocationUpdatesModelInfo.ts b/packages/core/src/definitions/AutomaticLocationUpdatesModelInfo.ts index b49737c5..da0a293e 100644 --- a/packages/core/src/definitions/AutomaticLocationUpdatesModelInfo.ts +++ b/packages/core/src/definitions/AutomaticLocationUpdatesModelInfo.ts @@ -15,7 +15,7 @@ interface AutomaticLocationUpdatesModelInfo { /** * Device feature or multiple features supported */ - features?: ('BLA' | 'Intercom' | 'Paging' | 'HELD')[]; + features?: ("BLA" | "Intercom" | "Paging" | "HELD")[]; } export default AutomaticLocationUpdatesModelInfo; diff --git a/packages/core/src/definitions/AutomaticLocationUpdatesPhoneLine.ts b/packages/core/src/definitions/AutomaticLocationUpdatesPhoneLine.ts index 5341d19e..bc91451c 100644 --- a/packages/core/src/definitions/AutomaticLocationUpdatesPhoneLine.ts +++ b/packages/core/src/definitions/AutomaticLocationUpdatesPhoneLine.ts @@ -1,12 +1,16 @@ -import type AutomaticLocationUpdatesPhoneNumberInfo from './AutomaticLocationUpdatesPhoneNumberInfo'; +import type AutomaticLocationUpdatesPhoneNumberInfo from "./AutomaticLocationUpdatesPhoneNumberInfo"; interface AutomaticLocationUpdatesPhoneLine { - /** - */ - lineType?: 'Unknown' | 'Standalone' | 'StandaloneFree' | 'BlaPrimary' | 'BlaSecondary' | 'BLF'; + /** */ + lineType?: + | "Unknown" + | "Standalone" + | "StandaloneFree" + | "BlaPrimary" + | "BlaSecondary" + | "BLF"; - /** - */ + /** */ phoneInfo?: AutomaticLocationUpdatesPhoneNumberInfo; } diff --git a/packages/core/src/definitions/AutomaticLocationUpdatesSiteInfo.ts b/packages/core/src/definitions/AutomaticLocationUpdatesSiteInfo.ts index 16c56425..2e95b585 100644 --- a/packages/core/src/definitions/AutomaticLocationUpdatesSiteInfo.ts +++ b/packages/core/src/definitions/AutomaticLocationUpdatesSiteInfo.ts @@ -2,7 +2,6 @@ * Site data. If multi-site feature is turned on for the account, * then ID of a site must be specified. In order to assign a wireless * point to the main site (company) site ID should be set to `main-site` - * */ interface AutomaticLocationUpdatesSiteInfo { /** diff --git a/packages/core/src/definitions/AutomaticLocationUpdatesTaskInfo.ts b/packages/core/src/definitions/AutomaticLocationUpdatesTaskInfo.ts index 34e2ed90..55eec416 100644 --- a/packages/core/src/definitions/AutomaticLocationUpdatesTaskInfo.ts +++ b/packages/core/src/definitions/AutomaticLocationUpdatesTaskInfo.ts @@ -1,4 +1,4 @@ -import type TaskResultInfo from './TaskResultInfo'; +import type TaskResultInfo from "./TaskResultInfo"; interface AutomaticLocationUpdatesTaskInfo { /** @@ -9,7 +9,7 @@ interface AutomaticLocationUpdatesTaskInfo { /** * Status of a task */ - status?: 'Accepted' | 'InProgress' | 'Completed' | 'Failed'; + status?: "Accepted" | "InProgress" | "Completed" | "Failed"; /** * Task creation time @@ -26,10 +26,13 @@ interface AutomaticLocationUpdatesTaskInfo { /** * Type of task */ - type?: 'WirelessPointsBulkCreate' | 'WirelessPointsBulkUpdate' | 'SwitchesBulkCreate' | 'SwitchesBulkUpdate'; + type?: + | "WirelessPointsBulkCreate" + | "WirelessPointsBulkUpdate" + | "SwitchesBulkCreate" + | "SwitchesBulkUpdate"; - /** - */ + /** */ result?: TaskResultInfo; } diff --git a/packages/core/src/definitions/AutomaticLocationUpdatesUserInfo.ts b/packages/core/src/definitions/AutomaticLocationUpdatesUserInfo.ts index 64a2419b..fdd395d5 100644 --- a/packages/core/src/definitions/AutomaticLocationUpdatesUserInfo.ts +++ b/packages/core/src/definitions/AutomaticLocationUpdatesUserInfo.ts @@ -1,4 +1,4 @@ -import type AutomaticLocationUpdatesSiteInfo from './AutomaticLocationUpdatesSiteInfo'; +import type AutomaticLocationUpdatesSiteInfo from "./AutomaticLocationUpdatesSiteInfo"; interface AutomaticLocationUpdatesUserInfo { /** @@ -11,8 +11,7 @@ interface AutomaticLocationUpdatesUserInfo { */ fullName?: string; - /** - */ + /** */ extensionNumber?: string; /** @@ -23,10 +22,9 @@ interface AutomaticLocationUpdatesUserInfo { /** * User extension type */ - type?: 'User' | 'Limited'; + type?: "User" | "Limited"; - /** - */ + /** */ site?: AutomaticLocationUpdatesSiteInfo; /** diff --git a/packages/core/src/definitions/AutomaticLocationUpdatesUserList.ts b/packages/core/src/definitions/AutomaticLocationUpdatesUserList.ts index bfc699aa..8891debb 100644 --- a/packages/core/src/definitions/AutomaticLocationUpdatesUserList.ts +++ b/packages/core/src/definitions/AutomaticLocationUpdatesUserList.ts @@ -1,6 +1,6 @@ -import type AutomaticLocationUpdatesUserInfo from './AutomaticLocationUpdatesUserInfo'; -import type PageNavigationModel from './PageNavigationModel'; -import type EnumeratedPagingModel from './EnumeratedPagingModel'; +import type AutomaticLocationUpdatesUserInfo from "./AutomaticLocationUpdatesUserInfo"; +import type PageNavigationModel from "./PageNavigationModel"; +import type EnumeratedPagingModel from "./EnumeratedPagingModel"; interface AutomaticLocationUpdatesUserList { /** @@ -9,16 +9,13 @@ interface AutomaticLocationUpdatesUserList { */ uri?: string; - /** - */ + /** */ records?: AutomaticLocationUpdatesUserInfo[]; - /** - */ + /** */ navigation?: PageNavigationModel; - /** - */ + /** */ paging?: EnumeratedPagingModel; } diff --git a/packages/core/src/definitions/BackgroundImage.ts b/packages/core/src/definitions/BackgroundImage.ts index 508b3e60..0e54b63b 100644 --- a/packages/core/src/definitions/BackgroundImage.ts +++ b/packages/core/src/definitions/BackgroundImage.ts @@ -5,7 +5,7 @@ interface BackgroundImage { /** * Must be `BackgroundImage` */ - type?: 'BackgroundImage'; + type?: "BackgroundImage"; /** * The URL/data URL of an image to be used as a background of a card. Acceptable formats are PNG, JPEG, and GIF @@ -17,17 +17,17 @@ interface BackgroundImage { /** * Describes how the image should fill the area */ - fillMode?: 'cover' | 'repeatHorizontally' | 'repeatVertically' | 'repeat'; + fillMode?: "cover" | "repeatHorizontally" | "repeatVertically" | "repeat"; /** * Describes how the image should be aligned if it must be cropped or if using repeat fill mode */ - horizontalAlignment?: 'left' | 'center' | 'right'; + horizontalAlignment?: "left" | "center" | "right"; /** * Describes how the image should be aligned if it must be cropped or if using repeat fill mode */ - verticalAlignment?: 'top' | 'center' | 'bottom'; + verticalAlignment?: "top" | "center" | "bottom"; } export default BackgroundImage; diff --git a/packages/core/src/definitions/BaseCallLogRecord.ts b/packages/core/src/definitions/BaseCallLogRecord.ts index 8a6d8d18..953bff7a 100644 --- a/packages/core/src/definitions/BaseCallLogRecord.ts +++ b/packages/core/src/definitions/BaseCallLogRecord.ts @@ -1,19 +1,18 @@ -import type ExtensionInfoCallLog from './ExtensionInfoCallLog'; -import type BaseCallLogRecordTransferTarget from './BaseCallLogRecordTransferTarget'; -import type BaseCallLogRecordTransferee from './BaseCallLogRecordTransferee'; -import type CallLogFromParty from './CallLogFromParty'; -import type CallLogToParty from './CallLogToParty'; -import type CallLogRecordMessage from './CallLogRecordMessage'; -import type CallLogDelegateInfo from './CallLogDelegateInfo'; -import type CallLogRecordingInfo from './CallLogRecordingInfo'; -import type BillingInfo from './BillingInfo'; +import type ExtensionInfoCallLog from "./ExtensionInfoCallLog"; +import type BaseCallLogRecordTransferTarget from "./BaseCallLogRecordTransferTarget"; +import type BaseCallLogRecordTransferee from "./BaseCallLogRecordTransferee"; +import type CallLogFromParty from "./CallLogFromParty"; +import type CallLogToParty from "./CallLogToParty"; +import type CallLogRecordMessage from "./CallLogRecordMessage"; +import type CallLogDelegateInfo from "./CallLogDelegateInfo"; +import type CallLogRecordingInfo from "./CallLogRecordingInfo"; +import type BillingInfo from "./BillingInfo"; /** * Base schema for CallLogRecord and CallLogRecordLegInfo */ interface BaseCallLogRecord { - /** - */ + /** */ extension?: ExtensionInfoCallLog; /** @@ -26,12 +25,10 @@ interface BaseCallLogRecord { */ sipUuidInfo?: string; - /** - */ + /** */ transferTarget?: BaseCallLogRecordTransferTarget; - /** - */ + /** */ transferee?: BaseCallLogRecordTransferee; /** @@ -43,129 +40,125 @@ interface BaseCallLogRecord { * The type of call transport. 'PSTN' indicates that a call leg was initiated * from the PSTN network provider; 'VoIP' - from an RC phone. */ - transport?: 'PSTN' | 'VoIP'; + transport?: "PSTN" | "VoIP"; - /** - */ + /** */ from?: CallLogFromParty; - /** - */ + /** */ to?: CallLogToParty; /** * The type of call * Required */ - type?: 'Voice' | 'Fax'; + type?: "Voice" | "Fax"; /** * The direction of a call * Required */ - direction?: 'Inbound' | 'Outbound'; + direction?: "Inbound" | "Outbound"; - /** - */ + /** */ message?: CallLogRecordMessage; - /** - */ + /** */ delegate?: CallLogDelegateInfo; /** * Call delegation type */ - delegationType?: 'Coworker' | 'Unknown'; + delegationType?: "Coworker" | "Unknown"; /** * The internal action corresponding to the call operation * Required */ action?: - | 'Accept Call' - | 'Barge In Call' - | 'Call Park' - | 'Call Return' - | 'CallOut-CallMe' - | 'Calling Card' - | 'Conference Call' - | 'E911 Update' - | 'Emergency' - | 'External Application' - | 'FindMe' - | 'FollowMe' - | 'FreeSPDL' - | 'Hunting' - | 'Incoming Fax' - | 'Monitoring' - | 'Move' - | 'Outgoing Fax' - | 'Paging' - | 'Park Location' - | 'Phone Call' - | 'Phone Login' - | 'Pickup' - | 'RC Meetings' - | 'Ring Directly' - | 'RingMe' - | 'RingOut Mobile' - | 'RingOut PC' - | 'RingOut Web' - | 'Sip Forwarding' - | 'Support' - | 'Text Relay' - | 'Transfer' - | 'Unknown' - | 'VoIP Call'; + | "Accept Call" + | "Barge In Call" + | "Call Park" + | "Call Return" + | "CallOut-CallMe" + | "Calling Card" + | "Conference Call" + | "E911 Update" + | "Emergency" + | "External Application" + | "FindMe" + | "FollowMe" + | "FreeSPDL" + | "Hunting" + | "Incoming Fax" + | "Monitoring" + | "Move" + | "Outgoing Fax" + | "Paging" + | "Park Location" + | "Phone Call" + | "Phone Login" + | "Pickup" + | "RC Meetings" + | "Ring Directly" + | "RingMe" + | "RingOut Mobile" + | "RingOut PC" + | "RingOut Web" + | "Sip Forwarding" + | "Support" + | "Text Relay" + | "Transfer" + | "Unknown" + | "VoIP Call"; /** * The result of the call operation */ result?: - | '911' - | '933' - | 'Abandoned' - | 'Accepted' - | 'Answered Not Accepted' - | 'Blocked' - | 'Busy' - | 'Call Failed' - | 'Call Failure' - | 'Call connected' - | 'Carrier is not active' - | 'Declined' - | 'EDGE trunk misconfigured' - | 'Fax Not Sent' - | 'Fax Partially Sent' - | 'Fax Poor Line' - | 'Fax Receipt Error' - | 'Fax on Demand' - | 'Hang Up' - | 'IP Phone Offline' - | 'In Progress' - | 'Internal Error' - | 'International Disabled' - | 'International Restricted' - | 'Missed' - | 'No Answer' - | 'No Calling Credit' - | 'Not Allowed' - | 'Partial Receive' - | 'Phone Login' - | 'Receive Error' - | 'Received' - | 'Rejected' - | 'Reply' - | 'Restricted Number' - | 'Send Error' - | 'Sent' - | 'Sent to Voicemail' - | 'Stopped' - | 'Suspended account' - | 'Unknown' - | 'Voicemail' - | 'Wrong Number'; + | "911" + | "933" + | "Abandoned" + | "Accepted" + | "Answered Not Accepted" + | "Blocked" + | "Busy" + | "Call Failed" + | "Call Failure" + | "Call connected" + | "Carrier is not active" + | "Declined" + | "EDGE trunk misconfigured" + | "Fax Not Sent" + | "Fax Partially Sent" + | "Fax Poor Line" + | "Fax Receipt Error" + | "Fax on Demand" + | "Hang Up" + | "IP Phone Offline" + | "In Progress" + | "Internal Error" + | "International Disabled" + | "International Restricted" + | "Missed" + | "No Answer" + | "No Calling Credit" + | "Not Allowed" + | "Partial Receive" + | "Phone Login" + | "Receive Error" + | "Received" + | "Rejected" + | "Reply" + | "Restricted Number" + | "Send Error" + | "Sent" + | "Sent to Voicemail" + | "Stopped" + | "Suspended account" + | "Unknown" + | "Voicemail" + | "Wrong Number"; /** * The reason of the call result: @@ -209,45 +202,45 @@ interface BaseCallLogRecord { * * `Receive Error` - Fax receive error */ reason?: - | 'Accepted' - | 'Bad Number' - | 'Call Loop' - | 'Calls Not Accepted' - | 'Carrier is not active' - | 'Connected' - | 'Customer 611 Restricted' - | 'EDGE trunk misconfigured' - | 'Emergency Address not defined' - | 'Failed Try Again' - | 'Fax Not Received' - | 'Fax Not Sent' - | 'Fax Partially Sent' - | 'Fax Poor Line' - | 'Fax Prepare Error' - | 'Fax Save Error' - | 'Fax Send Error' - | 'Hang Up' - | 'Info 411 Restricted' - | 'Internal Call Error' - | 'Internal Error' - | 'International Disabled' - | 'International Restricted' - | 'Line Busy' - | 'Max Call Limit' - | 'No Answer' - | 'No Credit' - | 'No Digital Line' - | 'Not Answered' - | 'Number Blocked' - | 'Number Disabled' - | 'Number Not Allowed' - | 'Receive Error' - | 'Resource Error' - | 'Restricted Number' - | 'Stopped' - | 'Too Many Calls' - | 'Unknown' - | 'Wrong Number'; + | "Accepted" + | "Bad Number" + | "Call Loop" + | "Calls Not Accepted" + | "Carrier is not active" + | "Connected" + | "Customer 611 Restricted" + | "EDGE trunk misconfigured" + | "Emergency Address not defined" + | "Failed Try Again" + | "Fax Not Received" + | "Fax Not Sent" + | "Fax Partially Sent" + | "Fax Poor Line" + | "Fax Prepare Error" + | "Fax Save Error" + | "Fax Send Error" + | "Hang Up" + | "Info 411 Restricted" + | "Internal Call Error" + | "Internal Error" + | "International Disabled" + | "International Restricted" + | "Line Busy" + | "Max Call Limit" + | "No Answer" + | "No Credit" + | "No Digital Line" + | "Not Answered" + | "Number Blocked" + | "Number Disabled" + | "Number Not Allowed" + | "Receive Error" + | "Resource Error" + | "Restricted Number" + | "Stopped" + | "Too Many Calls" + | "Unknown" + | "Wrong Number"; /** * The detailed reason description of the call result @@ -273,8 +266,7 @@ interface BaseCallLogRecord { */ durationMs?: number; - /** - */ + /** */ recording?: CallLogRecordingInfo; /** @@ -282,28 +274,27 @@ interface BaseCallLogRecord { */ shortRecording?: boolean; - /** - */ + /** */ billing?: BillingInfo; /** * The internal type of the call */ internalType?: - | 'Local' - | 'LongDistance' - | 'International' - | 'Sip' - | 'RingMe' - | 'RingOut' - | 'Usual' - | 'TollFreeNumber' - | 'VerificationNumber' - | 'Vma' - | 'LocalNumber' - | 'ImsOutgoing' - | 'ImsIncoming' - | 'Unknown'; + | "Local" + | "LongDistance" + | "International" + | "Sip" + | "RingMe" + | "RingOut" + | "Usual" + | "TollFreeNumber" + | "VerificationNumber" + | "Vma" + | "LocalNumber" + | "ImsOutgoing" + | "ImsIncoming" + | "Unknown"; } export default BaseCallLogRecord; diff --git a/packages/core/src/definitions/BaseTokenRequest.ts b/packages/core/src/definitions/BaseTokenRequest.ts index 2b90b4c6..46cad76e 100644 --- a/packages/core/src/definitions/BaseTokenRequest.ts +++ b/packages/core/src/definitions/BaseTokenRequest.ts @@ -4,18 +4,18 @@ interface BaseTokenRequest { * Required */ grant_type?: - | 'authorization_code' - | 'password' - | 'refresh_token' - | 'client_credentials' - | 'urn:ietf:params:oauth:grant-type:jwt-bearer' - | 'urn:ietf:params:oauth:grant-type:device_code' - | 'device_certificate' - | 'partner_jwt' - | 'guest' - | 'personal_jwt' - | 'otp' - | 'ivr_pin'; + | "authorization_code" + | "password" + | "refresh_token" + | "client_credentials" + | "urn:ietf:params:oauth:grant-type:jwt-bearer" + | "urn:ietf:params:oauth:grant-type:device_code" + | "device_certificate" + | "partner_jwt" + | "guest" + | "personal_jwt" + | "otp" + | "ivr_pin"; /** * The list of application permissions (OAuth scopes) requested. diff --git a/packages/core/src/definitions/BasicExtensionInfoResource.ts b/packages/core/src/definitions/BasicExtensionInfoResource.ts index a3ce044f..62e60030 100644 --- a/packages/core/src/definitions/BasicExtensionInfoResource.ts +++ b/packages/core/src/definitions/BasicExtensionInfoResource.ts @@ -1,14 +1,11 @@ interface BasicExtensionInfoResource { - /** - */ + /** */ id?: string; - /** - */ + /** */ name?: string; - /** - */ + /** */ extensionNumber?: string; } diff --git a/packages/core/src/definitions/BatchListResponse.ts b/packages/core/src/definitions/BatchListResponse.ts index 17102a61..826f8ee0 100644 --- a/packages/core/src/definitions/BatchListResponse.ts +++ b/packages/core/src/definitions/BatchListResponse.ts @@ -1,5 +1,5 @@ -import type MessageBatchResponse from './MessageBatchResponse'; -import type NonEnumeratedPagingModel from './NonEnumeratedPagingModel'; +import type MessageBatchResponse from "./MessageBatchResponse"; +import type NonEnumeratedPagingModel from "./NonEnumeratedPagingModel"; /** * The list of batches retrieved for an account and other filter criteria such as fromPhoneNumber, date specified in the request. @@ -10,8 +10,7 @@ interface BatchListResponse { */ records?: MessageBatchResponse[]; - /** - */ + /** */ paging?: NonEnumeratedPagingModel; } diff --git a/packages/core/src/definitions/BatchProvisionErrorItem.ts b/packages/core/src/definitions/BatchProvisionErrorItem.ts index e2143f17..af1e2d90 100644 --- a/packages/core/src/definitions/BatchProvisionErrorItem.ts +++ b/packages/core/src/definitions/BatchProvisionErrorItem.ts @@ -1,4 +1,4 @@ -import type ApiErrorWithParameter from './ApiErrorWithParameter'; +import type ApiErrorWithParameter from "./ApiErrorWithParameter"; interface BatchProvisionErrorItem { /** diff --git a/packages/core/src/definitions/BatchProvisionUsersRequest.ts b/packages/core/src/definitions/BatchProvisionUsersRequest.ts index f598763a..8ddb0614 100644 --- a/packages/core/src/definitions/BatchProvisionUsersRequest.ts +++ b/packages/core/src/definitions/BatchProvisionUsersRequest.ts @@ -1,4 +1,4 @@ -import type BatchProvisionUsersRequestItem from './BatchProvisionUsersRequestItem'; +import type BatchProvisionUsersRequestItem from "./BatchProvisionUsersRequestItem"; /** * Describes request for user extension provisioning diff --git a/packages/core/src/definitions/BatchProvisionUsersRequestItem.ts b/packages/core/src/definitions/BatchProvisionUsersRequestItem.ts index a21b45d5..ee022656 100644 --- a/packages/core/src/definitions/BatchProvisionUsersRequestItem.ts +++ b/packages/core/src/definitions/BatchProvisionUsersRequestItem.ts @@ -1,7 +1,7 @@ -import type BatchProvisionUsersRequestItemContact from './BatchProvisionUsersRequestItemContact'; -import type BatchProvisionUsersRequestItemCostCenter from './BatchProvisionUsersRequestItemCostCenter'; -import type BatchProvisionUsersRequestItemRoles from './BatchProvisionUsersRequestItemRoles'; -import type BatchProvisionUsersRequestItemDevices from './BatchProvisionUsersRequestItemDevices'; +import type BatchProvisionUsersRequestItemContact from "./BatchProvisionUsersRequestItemContact"; +import type BatchProvisionUsersRequestItemCostCenter from "./BatchProvisionUsersRequestItemCostCenter"; +import type BatchProvisionUsersRequestItemRoles from "./BatchProvisionUsersRequestItemRoles"; +import type BatchProvisionUsersRequestItemDevices from "./BatchProvisionUsersRequestItemDevices"; /** * Describes request for user extension provisioning @@ -19,7 +19,7 @@ interface BatchProvisionUsersRequestItem { * Required * Default: Enabled */ - status?: 'Enabled'; + status?: "Enabled"; /** * Personal contact information @@ -27,16 +27,13 @@ interface BatchProvisionUsersRequestItem { */ contact?: BatchProvisionUsersRequestItemContact; - /** - */ + /** */ costCenter?: BatchProvisionUsersRequestItemCostCenter; - /** - */ + /** */ roles?: BatchProvisionUsersRequestItemRoles[]; - /** - */ + /** */ devices?: BatchProvisionUsersRequestItemDevices[]; } diff --git a/packages/core/src/definitions/BatchProvisionUsersRequestItemContact.ts b/packages/core/src/definitions/BatchProvisionUsersRequestItemContact.ts index 7c5d171f..d25eadca 100644 --- a/packages/core/src/definitions/BatchProvisionUsersRequestItemContact.ts +++ b/packages/core/src/definitions/BatchProvisionUsersRequestItemContact.ts @@ -1,4 +1,4 @@ -import type TransitionInfo from './TransitionInfo'; +import type TransitionInfo from "./TransitionInfo"; interface BatchProvisionUsersRequestItemContact { /** @@ -33,8 +33,7 @@ interface BatchProvisionUsersRequestItemContact { */ emailAsLoginName?: boolean; - /** - */ + /** */ transition?: TransitionInfo; } diff --git a/packages/core/src/definitions/BatchProvisionUsersRequestItemDevices.ts b/packages/core/src/definitions/BatchProvisionUsersRequestItemDevices.ts index ff5e1c6c..fe5282c8 100644 --- a/packages/core/src/definitions/BatchProvisionUsersRequestItemDevices.ts +++ b/packages/core/src/definitions/BatchProvisionUsersRequestItemDevices.ts @@ -1,8 +1,7 @@ -import type DeviceDefinition from './DeviceDefinition'; +import type DeviceDefinition from "./DeviceDefinition"; interface BatchProvisionUsersRequestItemDevices { - /** - */ + /** */ deviceInfo?: DeviceDefinition; } diff --git a/packages/core/src/definitions/BatchProvisionUsersResponse.ts b/packages/core/src/definitions/BatchProvisionUsersResponse.ts index b3189b4a..747b561e 100644 --- a/packages/core/src/definitions/BatchProvisionUsersResponse.ts +++ b/packages/core/src/definitions/BatchProvisionUsersResponse.ts @@ -1,4 +1,4 @@ -import type BatchProvisionUsersResponseResults from './BatchProvisionUsersResponseResults'; +import type BatchProvisionUsersResponseResults from "./BatchProvisionUsersResponseResults"; interface BatchProvisionUsersResponse { /** diff --git a/packages/core/src/definitions/BatchProvisionUsersResponseResults.ts b/packages/core/src/definitions/BatchProvisionUsersResponseResults.ts index 2aebbafe..5cd41977 100644 --- a/packages/core/src/definitions/BatchProvisionUsersResponseResults.ts +++ b/packages/core/src/definitions/BatchProvisionUsersResponseResults.ts @@ -1,5 +1,5 @@ -import type BatchProvisionUsersResponseResultsExtension from './BatchProvisionUsersResponseResultsExtension'; -import type ApiErrorWithParameter from './ApiErrorWithParameter'; +import type BatchProvisionUsersResponseResultsExtension from "./BatchProvisionUsersResponseResultsExtension"; +import type ApiErrorWithParameter from "./ApiErrorWithParameter"; interface BatchProvisionUsersResponseResults { /** @@ -7,12 +7,10 @@ interface BatchProvisionUsersResponseResults { */ successful?: boolean; - /** - */ + /** */ extension?: BatchProvisionUsersResponseResultsExtension; - /** - */ + /** */ errors?: ApiErrorWithParameter[]; } diff --git a/packages/core/src/definitions/BatchProvisionUsersResponseResultsExtension.ts b/packages/core/src/definitions/BatchProvisionUsersResponseResultsExtension.ts index 708054f8..e0c8f190 100644 --- a/packages/core/src/definitions/BatchProvisionUsersResponseResultsExtension.ts +++ b/packages/core/src/definitions/BatchProvisionUsersResponseResultsExtension.ts @@ -1,4 +1,4 @@ -import type BatchProvisionUsersResponseResultsExtensionDevices from './BatchProvisionUsersResponseResultsExtensionDevices'; +import type BatchProvisionUsersResponseResultsExtensionDevices from "./BatchProvisionUsersResponseResultsExtensionDevices"; interface BatchProvisionUsersResponseResultsExtension { /** @@ -7,8 +7,7 @@ interface BatchProvisionUsersResponseResultsExtension { */ id?: string; - /** - */ + /** */ devices?: BatchProvisionUsersResponseResultsExtensionDevices[]; } diff --git a/packages/core/src/definitions/BatchProvisionUsersSuccessItem.ts b/packages/core/src/definitions/BatchProvisionUsersSuccessItem.ts index 3474b5ed..3b0c40ba 100644 --- a/packages/core/src/definitions/BatchProvisionUsersSuccessItem.ts +++ b/packages/core/src/definitions/BatchProvisionUsersSuccessItem.ts @@ -1,4 +1,4 @@ -import type BatchProvisionUsersSuccessItemExtension from './BatchProvisionUsersSuccessItemExtension'; +import type BatchProvisionUsersSuccessItemExtension from "./BatchProvisionUsersSuccessItemExtension"; interface BatchProvisionUsersSuccessItem { /** diff --git a/packages/core/src/definitions/BatchProvisionUsersSuccessItemExtension.ts b/packages/core/src/definitions/BatchProvisionUsersSuccessItemExtension.ts index 23c9625d..3dca1f11 100644 --- a/packages/core/src/definitions/BatchProvisionUsersSuccessItemExtension.ts +++ b/packages/core/src/definitions/BatchProvisionUsersSuccessItemExtension.ts @@ -1,4 +1,4 @@ -import type BatchProvisionUsersSuccessItemExtensionDevices from './BatchProvisionUsersSuccessItemExtensionDevices'; +import type BatchProvisionUsersSuccessItemExtensionDevices from "./BatchProvisionUsersSuccessItemExtensionDevices"; interface BatchProvisionUsersSuccessItemExtension { /** @@ -7,8 +7,7 @@ interface BatchProvisionUsersSuccessItemExtension { */ id?: string; - /** - */ + /** */ devices?: BatchProvisionUsersSuccessItemExtensionDevices[]; } diff --git a/packages/core/src/definitions/BillingPlanInfo.ts b/packages/core/src/definitions/BillingPlanInfo.ts index 40861563..b2c65ed2 100644 --- a/packages/core/src/definitions/BillingPlanInfo.ts +++ b/packages/core/src/definitions/BillingPlanInfo.ts @@ -15,7 +15,7 @@ interface BillingPlanInfo { /** * Duration period */ - durationUnit?: 'Day' | 'Month' | 'Year'; + durationUnit?: "Day" | "Month" | "Year"; /** * Number of duration units @@ -26,7 +26,7 @@ interface BillingPlanInfo { /** * Billing plan type */ - type?: 'Initial' | 'Regular' | 'Suspended' | 'Trial' | 'TrialNoCC' | 'Free'; + type?: "Initial" | "Regular" | "Suspended" | "Trial" | "TrialNoCC" | "Free"; /** * Included digital lines count diff --git a/packages/core/src/definitions/BillingStatementCharges.ts b/packages/core/src/definitions/BillingStatementCharges.ts index 119bcd2a..4390341b 100644 --- a/packages/core/src/definitions/BillingStatementCharges.ts +++ b/packages/core/src/definitions/BillingStatementCharges.ts @@ -1,6 +1,5 @@ interface BillingStatementCharges { - /** - */ + /** */ description?: string; /** @@ -8,8 +7,7 @@ interface BillingStatementCharges { */ amount?: number; - /** - */ + /** */ feature?: string; /** diff --git a/packages/core/src/definitions/BillingStatementFees.ts b/packages/core/src/definitions/BillingStatementFees.ts index 3052de2f..db30f57e 100644 --- a/packages/core/src/definitions/BillingStatementFees.ts +++ b/packages/core/src/definitions/BillingStatementFees.ts @@ -1,6 +1,5 @@ interface BillingStatementFees { - /** - */ + /** */ description?: string; /** diff --git a/packages/core/src/definitions/BillingStatementInfo.ts b/packages/core/src/definitions/BillingStatementInfo.ts index fdc2ffcb..71823818 100644 --- a/packages/core/src/definitions/BillingStatementInfo.ts +++ b/packages/core/src/definitions/BillingStatementInfo.ts @@ -1,10 +1,9 @@ -import type BillingStatementCharges from './BillingStatementCharges'; -import type BillingStatementFees from './BillingStatementFees'; +import type BillingStatementCharges from "./BillingStatementCharges"; +import type BillingStatementFees from "./BillingStatementFees"; /** * Billing information. Returned for device update request if `prestatement` * query parameter is set to 'true' - * */ interface BillingStatementInfo { /** @@ -13,12 +12,10 @@ interface BillingStatementInfo { */ currency?: string; - /** - */ + /** */ charges?: BillingStatementCharges[]; - /** - */ + /** */ fees?: BillingStatementFees[]; /** diff --git a/packages/core/src/definitions/BlockedAllowedPhoneNumberInfo.ts b/packages/core/src/definitions/BlockedAllowedPhoneNumberInfo.ts index 5c19ea94..9fba2297 100644 --- a/packages/core/src/definitions/BlockedAllowedPhoneNumberInfo.ts +++ b/packages/core/src/definitions/BlockedAllowedPhoneNumberInfo.ts @@ -27,7 +27,7 @@ interface BlockedAllowedPhoneNumberInfo { * Status of a phone number * Default: Blocked */ - status?: 'Blocked' | 'Allowed'; + status?: "Blocked" | "Allowed"; } export default BlockedAllowedPhoneNumberInfo; diff --git a/packages/core/src/definitions/BlockedAllowedPhoneNumbersList.ts b/packages/core/src/definitions/BlockedAllowedPhoneNumbersList.ts index 8dd93408..1945730b 100644 --- a/packages/core/src/definitions/BlockedAllowedPhoneNumbersList.ts +++ b/packages/core/src/definitions/BlockedAllowedPhoneNumbersList.ts @@ -1,6 +1,6 @@ -import type BlockedAllowedPhoneNumberInfo from './BlockedAllowedPhoneNumberInfo'; -import type PageNavigationModel from './PageNavigationModel'; -import type EnumeratedPagingModel from './EnumeratedPagingModel'; +import type BlockedAllowedPhoneNumberInfo from "./BlockedAllowedPhoneNumberInfo"; +import type PageNavigationModel from "./PageNavigationModel"; +import type EnumeratedPagingModel from "./EnumeratedPagingModel"; /** * List of blocked or allowed phone numbers @@ -12,16 +12,13 @@ interface BlockedAllowedPhoneNumbersList { */ uri?: string; - /** - */ + /** */ records?: BlockedAllowedPhoneNumberInfo[]; - /** - */ + /** */ navigation?: PageNavigationModel; - /** - */ + /** */ paging?: EnumeratedPagingModel; } diff --git a/packages/core/src/definitions/BlockedCallerGreetingInfo.ts b/packages/core/src/definitions/BlockedCallerGreetingInfo.ts index 6e858827..22f3747a 100644 --- a/packages/core/src/definitions/BlockedCallerGreetingInfo.ts +++ b/packages/core/src/definitions/BlockedCallerGreetingInfo.ts @@ -1,4 +1,4 @@ -import type PresetInfo from './PresetInfo'; +import type PresetInfo from "./PresetInfo"; interface BlockedCallerGreetingInfo { /** @@ -6,8 +6,7 @@ interface BlockedCallerGreetingInfo { */ type?: string; - /** - */ + /** */ preset?: PresetInfo; } diff --git a/packages/core/src/definitions/BrandInfo.ts b/packages/core/src/definitions/BrandInfo.ts index 9f40eeea..8958b527 100644 --- a/packages/core/src/definitions/BrandInfo.ts +++ b/packages/core/src/definitions/BrandInfo.ts @@ -1,4 +1,4 @@ -import type CountryInfoShortModel from './CountryInfoShortModel'; +import type CountryInfoShortModel from "./CountryInfoShortModel"; /** * Information on account brand @@ -14,8 +14,7 @@ interface BrandInfo { */ name?: string; - /** - */ + /** */ homeCountry?: CountryInfoShortModel; } diff --git a/packages/core/src/definitions/BridgeJoinPreferences.ts b/packages/core/src/definitions/BridgeJoinPreferences.ts index e2132803..8e1fd837 100644 --- a/packages/core/src/definitions/BridgeJoinPreferences.ts +++ b/packages/core/src/definitions/BridgeJoinPreferences.ts @@ -1,4 +1,4 @@ -import type BridgeJoinPstnPreferences from './BridgeJoinPstnPreferences'; +import type BridgeJoinPstnPreferences from "./BridgeJoinPstnPreferences"; interface BridgeJoinPreferences { /** @@ -23,10 +23,9 @@ interface BridgeJoinPreferences { * - Instant, Scheduled -> Nobody * Example: Nobody */ - waitingRoomRequired?: 'Nobody' | 'Everybody' | 'GuestsOnly' | 'OtherAccount'; + waitingRoomRequired?: "Nobody" | "Everybody" | "GuestsOnly" | "OtherAccount"; - /** - */ + /** */ pstn?: BridgeJoinPstnPreferences; } diff --git a/packages/core/src/definitions/BridgePins.ts b/packages/core/src/definitions/BridgePins.ts index de59629d..3444a7ea 100644 --- a/packages/core/src/definitions/BridgePins.ts +++ b/packages/core/src/definitions/BridgePins.ts @@ -1,8 +1,7 @@ -import type BridgePstnPins from './BridgePstnPins'; +import type BridgePstnPins from "./BridgePstnPins"; interface BridgePins { - /** - */ + /** */ pstn?: BridgePstnPins; /** diff --git a/packages/core/src/definitions/BridgePinsWithAliases.ts b/packages/core/src/definitions/BridgePinsWithAliases.ts index 274e9609..f88c0993 100644 --- a/packages/core/src/definitions/BridgePinsWithAliases.ts +++ b/packages/core/src/definitions/BridgePinsWithAliases.ts @@ -1,8 +1,7 @@ -import type BridgePstnPins from './BridgePstnPins'; +import type BridgePstnPins from "./BridgePstnPins"; interface BridgePinsWithAliases { - /** - */ + /** */ pstn?: BridgePstnPins; /** diff --git a/packages/core/src/definitions/BridgePreferences.ts b/packages/core/src/definitions/BridgePreferences.ts index 8d3b05fa..e8c5b6f9 100644 --- a/packages/core/src/definitions/BridgePreferences.ts +++ b/packages/core/src/definitions/BridgePreferences.ts @@ -1,9 +1,8 @@ -import type BridgeJoinPreferences from './BridgeJoinPreferences'; -import type RecordingsPreferences from './RecordingsPreferences'; +import type BridgeJoinPreferences from "./BridgeJoinPreferences"; +import type RecordingsPreferences from "./RecordingsPreferences"; interface BridgePreferences { - /** - */ + /** */ join?: BridgeJoinPreferences; /** @@ -14,7 +13,7 @@ interface BridgePreferences { * 4) EnterOnly - Only enter tones switched on. * Default: Off */ - playTones?: 'On' | 'Off' | 'ExitOnly' | 'EnterOnly'; + playTones?: "On" | "Off" | "ExitOnly" | "EnterOnly"; /** * Specifies whether to play music on hold when alone @@ -41,16 +40,15 @@ interface BridgePreferences { * Controls whether recordings are enabled automatically or by user decision * Example: User */ - recordingsMode?: 'Auto' | 'ForceAuto' | 'User'; + recordingsMode?: "Auto" | "ForceAuto" | "User"; /** * Controls whether transcriptions are enabled automatically or by user decision * Example: User */ - transcriptionsMode?: 'Auto' | 'ForceAuto' | 'User'; + transcriptionsMode?: "Auto" | "ForceAuto" | "User"; - /** - */ + /** */ recordings?: RecordingsPreferences; /** diff --git a/packages/core/src/definitions/BridgeResponse.ts b/packages/core/src/definitions/BridgeResponse.ts index 590e1074..c4cdd79c 100644 --- a/packages/core/src/definitions/BridgeResponse.ts +++ b/packages/core/src/definitions/BridgeResponse.ts @@ -1,8 +1,8 @@ -import type User from './User'; -import type BridgePinsWithAliases from './BridgePinsWithAliases'; -import type BridgeResponseSecurity from './BridgeResponseSecurity'; -import type BridgePreferences from './BridgePreferences'; -import type BridgeDiscovery from './BridgeDiscovery'; +import type User from "./User"; +import type BridgePinsWithAliases from "./BridgePinsWithAliases"; +import type BridgeResponseSecurity from "./BridgeResponseSecurity"; +import type BridgePreferences from "./BridgePreferences"; +import type BridgeDiscovery from "./BridgeDiscovery"; interface BridgeResponse { /** @@ -27,26 +27,21 @@ interface BridgeResponse { * from the system. * Example: Instant */ - type?: 'Instant' | 'Scheduled' | 'PMI'; + type?: "Instant" | "Scheduled" | "PMI"; - /** - */ + /** */ host?: User; - /** - */ + /** */ pins?: BridgePinsWithAliases; - /** - */ + /** */ security?: BridgeResponseSecurity; - /** - */ + /** */ preferences?: BridgePreferences; - /** - */ + /** */ discovery?: BridgeDiscovery; } diff --git a/packages/core/src/definitions/BridgeResponseSecurity.ts b/packages/core/src/definitions/BridgeResponseSecurity.ts index d8adc03c..d634ccbc 100644 --- a/packages/core/src/definitions/BridgeResponseSecurity.ts +++ b/packages/core/src/definitions/BridgeResponseSecurity.ts @@ -1,4 +1,4 @@ -import type BridgeResponseSecurityPassword from './BridgeResponseSecurityPassword'; +import type BridgeResponseSecurityPassword from "./BridgeResponseSecurityPassword"; interface BridgeResponseSecurity { /** @@ -6,8 +6,7 @@ interface BridgeResponseSecurity { */ passwordProtected?: boolean; - /** - */ + /** */ password?: BridgeResponseSecurityPassword; /** diff --git a/packages/core/src/definitions/BulkAccountCallRecordingsResource.ts b/packages/core/src/definitions/BulkAccountCallRecordingsResource.ts index e9944f99..1efd8729 100644 --- a/packages/core/src/definitions/BulkAccountCallRecordingsResource.ts +++ b/packages/core/src/definitions/BulkAccountCallRecordingsResource.ts @@ -1,16 +1,13 @@ -import type CallRecordingExtensionResource from './CallRecordingExtensionResource'; +import type CallRecordingExtensionResource from "./CallRecordingExtensionResource"; interface BulkAccountCallRecordingsResource { - /** - */ + /** */ addedExtensions?: CallRecordingExtensionResource[]; - /** - */ + /** */ updatedExtensions?: CallRecordingExtensionResource[]; - /** - */ + /** */ removedExtensions?: CallRecordingExtensionResource[]; } diff --git a/packages/core/src/definitions/BulkAddDevicesErrorItem.ts b/packages/core/src/definitions/BulkAddDevicesErrorItem.ts index da192dce..65793cc1 100644 --- a/packages/core/src/definitions/BulkAddDevicesErrorItem.ts +++ b/packages/core/src/definitions/BulkAddDevicesErrorItem.ts @@ -1,4 +1,4 @@ -import type ApiErrorWithParameter from './ApiErrorWithParameter'; +import type ApiErrorWithParameter from "./ApiErrorWithParameter"; interface BulkAddDevicesErrorItem { /** diff --git a/packages/core/src/definitions/BulkAddDevicesItem.ts b/packages/core/src/definitions/BulkAddDevicesItem.ts index bfb63570..c710ba81 100644 --- a/packages/core/src/definitions/BulkAddDevicesItem.ts +++ b/packages/core/src/definitions/BulkAddDevicesItem.ts @@ -1,6 +1,6 @@ -import type BulkOperationExtensionReference from './BulkOperationExtensionReference'; -import type BulkAddDevicesItemEmergency from './BulkAddDevicesItemEmergency'; -import type BulkAddDevicesItemPhoneInfo from './BulkAddDevicesItemPhoneInfo'; +import type BulkOperationExtensionReference from "./BulkOperationExtensionReference"; +import type BulkAddDevicesItemEmergency from "./BulkAddDevicesItemEmergency"; +import type BulkAddDevicesItemPhoneInfo from "./BulkAddDevicesItemPhoneInfo"; interface BulkAddDevicesItem { /** @@ -18,7 +18,7 @@ interface BulkAddDevicesItem { * Device type. Only "OtherPhone" and "WebRTC" device types are supported at the moment * Required */ - type?: 'OtherPhone' | 'WebRTC'; + type?: "OtherPhone" | "WebRTC"; /** * Only "address" is supported at the moment diff --git a/packages/core/src/definitions/BulkAddDevicesItemEmergency.ts b/packages/core/src/definitions/BulkAddDevicesItemEmergency.ts index e83da388..9ec647d4 100644 --- a/packages/core/src/definitions/BulkAddDevicesItemEmergency.ts +++ b/packages/core/src/definitions/BulkAddDevicesItemEmergency.ts @@ -1,13 +1,11 @@ -import type PostalAddress from './PostalAddress'; -import type BulkAddDevicesItemEmergencyLocation from './BulkAddDevicesItemEmergencyLocation'; +import type PostalAddress from "./PostalAddress"; +import type BulkAddDevicesItemEmergencyLocation from "./BulkAddDevicesItemEmergencyLocation"; interface BulkAddDevicesItemEmergency { - /** - */ + /** */ address?: PostalAddress; - /** - */ + /** */ location?: BulkAddDevicesItemEmergencyLocation; } diff --git a/packages/core/src/definitions/BulkAddDevicesItemPhoneInfo.ts b/packages/core/src/definitions/BulkAddDevicesItemPhoneInfo.ts index 2dbd1244..51e03dd7 100644 --- a/packages/core/src/definitions/BulkAddDevicesItemPhoneInfo.ts +++ b/packages/core/src/definitions/BulkAddDevicesItemPhoneInfo.ts @@ -3,7 +3,7 @@ interface BulkAddDevicesItemPhoneInfo { * Indicates if a number is toll or toll-free * Example: Toll */ - tollType?: 'Toll' | 'TollFree'; + tollType?: "Toll" | "TollFree"; /** * Preferred area code to use if numbers available diff --git a/packages/core/src/definitions/BulkAddDevicesRequest.ts b/packages/core/src/definitions/BulkAddDevicesRequest.ts index bed69250..befebcea 100644 --- a/packages/core/src/definitions/BulkAddDevicesRequest.ts +++ b/packages/core/src/definitions/BulkAddDevicesRequest.ts @@ -1,4 +1,4 @@ -import type BulkAddDevicesItem from './BulkAddDevicesItem'; +import type BulkAddDevicesItem from "./BulkAddDevicesItem"; interface BulkAddDevicesRequest { /** diff --git a/packages/core/src/definitions/BulkAddDevicesResponse.ts b/packages/core/src/definitions/BulkAddDevicesResponse.ts index cb2b880c..49fcb226 100644 --- a/packages/core/src/definitions/BulkAddDevicesResponse.ts +++ b/packages/core/src/definitions/BulkAddDevicesResponse.ts @@ -1,4 +1,4 @@ -import type BulkAddDevicesResponseResults from './BulkAddDevicesResponseResults'; +import type BulkAddDevicesResponseResults from "./BulkAddDevicesResponseResults"; interface BulkAddDevicesResponse { /** diff --git a/packages/core/src/definitions/BulkAddDevicesResponseResults.ts b/packages/core/src/definitions/BulkAddDevicesResponseResults.ts index b5d4968f..698444c6 100644 --- a/packages/core/src/definitions/BulkAddDevicesResponseResults.ts +++ b/packages/core/src/definitions/BulkAddDevicesResponseResults.ts @@ -1,5 +1,5 @@ -import type BulkOperationExtensionReference from './BulkOperationExtensionReference'; -import type ApiErrorWithParameter from './ApiErrorWithParameter'; +import type BulkOperationExtensionReference from "./BulkOperationExtensionReference"; +import type ApiErrorWithParameter from "./ApiErrorWithParameter"; interface BulkAddDevicesResponseResults { /** @@ -13,8 +13,7 @@ interface BulkAddDevicesResponseResults { */ id?: string; - /** - */ + /** */ extension?: BulkOperationExtensionReference; /** @@ -23,8 +22,7 @@ interface BulkAddDevicesResponseResults { */ phoneNumber?: string; - /** - */ + /** */ errors?: ApiErrorWithParameter[]; } diff --git a/packages/core/src/definitions/BulkAddDevicesSuccessItem.ts b/packages/core/src/definitions/BulkAddDevicesSuccessItem.ts index 2d8e51eb..cd92f4db 100644 --- a/packages/core/src/definitions/BulkAddDevicesSuccessItem.ts +++ b/packages/core/src/definitions/BulkAddDevicesSuccessItem.ts @@ -1,4 +1,4 @@ -import type BulkOperationExtensionReference from './BulkOperationExtensionReference'; +import type BulkOperationExtensionReference from "./BulkOperationExtensionReference"; interface BulkAddDevicesSuccessItem { /** diff --git a/packages/core/src/definitions/BulkAssignItem.ts b/packages/core/src/definitions/BulkAssignItem.ts index c7ae3305..f9a4b6e1 100644 --- a/packages/core/src/definitions/BulkAssignItem.ts +++ b/packages/core/src/definitions/BulkAssignItem.ts @@ -1,14 +1,11 @@ interface BulkAssignItem { - /** - */ + /** */ departmentId?: string; - /** - */ + /** */ addedExtensionIds?: string[]; - /** - */ + /** */ removedExtensionIds?: string[]; } diff --git a/packages/core/src/definitions/BulkDeleteUsersRequest.ts b/packages/core/src/definitions/BulkDeleteUsersRequest.ts index 7e66ad40..09a74734 100644 --- a/packages/core/src/definitions/BulkDeleteUsersRequest.ts +++ b/packages/core/src/definitions/BulkDeleteUsersRequest.ts @@ -1,4 +1,4 @@ -import type BulkOperationExtensionReference from './BulkOperationExtensionReference'; +import type BulkOperationExtensionReference from "./BulkOperationExtensionReference"; interface BulkDeleteUsersRequest { /** diff --git a/packages/core/src/definitions/BulkDeleteUsersResponse.ts b/packages/core/src/definitions/BulkDeleteUsersResponse.ts index 95ddd270..a8f7b8ab 100644 --- a/packages/core/src/definitions/BulkDeleteUsersResponse.ts +++ b/packages/core/src/definitions/BulkDeleteUsersResponse.ts @@ -1,4 +1,4 @@ -import type BulkDeleteUsersResponseRecords from './BulkDeleteUsersResponseRecords'; +import type BulkDeleteUsersResponseRecords from "./BulkDeleteUsersResponseRecords"; interface BulkDeleteUsersResponse { /** diff --git a/packages/core/src/definitions/BulkDeleteUsersResponseRecords.ts b/packages/core/src/definitions/BulkDeleteUsersResponseRecords.ts index f954f867..4c8a7291 100644 --- a/packages/core/src/definitions/BulkDeleteUsersResponseRecords.ts +++ b/packages/core/src/definitions/BulkDeleteUsersResponseRecords.ts @@ -1,4 +1,4 @@ -import type ApiError from './ApiError'; +import type ApiError from "./ApiError"; interface BulkDeleteUsersResponseRecords { /** diff --git a/packages/core/src/definitions/BulkItemResultModel.ts b/packages/core/src/definitions/BulkItemResultModel.ts index 2c991861..cc8a9dad 100644 --- a/packages/core/src/definitions/BulkItemResultModel.ts +++ b/packages/core/src/definitions/BulkItemResultModel.ts @@ -1,4 +1,4 @@ -import type ApiError from './ApiError'; +import type ApiError from "./ApiError"; interface BulkItemResultModel { /** diff --git a/packages/core/src/definitions/BulkRoleAssignResource.ts b/packages/core/src/definitions/BulkRoleAssignResource.ts index 82d4f380..8e284dbb 100644 --- a/packages/core/src/definitions/BulkRoleAssignResource.ts +++ b/packages/core/src/definitions/BulkRoleAssignResource.ts @@ -4,8 +4,7 @@ interface BulkRoleAssignResource { */ siteRestricted?: boolean; - /** - */ + /** */ siteCompatible?: boolean; /** @@ -13,12 +12,10 @@ interface BulkRoleAssignResource { */ uri?: string; - /** - */ + /** */ addedExtensionIds?: string[]; - /** - */ + /** */ removedExtensionIds?: string[]; } diff --git a/packages/core/src/definitions/BulkTaskInfo.ts b/packages/core/src/definitions/BulkTaskInfo.ts index dfd4f9e9..91718daa 100644 --- a/packages/core/src/definitions/BulkTaskInfo.ts +++ b/packages/core/src/definitions/BulkTaskInfo.ts @@ -7,7 +7,7 @@ interface BulkTaskInfo { /** * Status of a task */ - status?: 'Accepted' | 'Failed'; + status?: "Accepted" | "Failed"; /** * Task creation time diff --git a/packages/core/src/definitions/BulkUpdateInviteesRequest.ts b/packages/core/src/definitions/BulkUpdateInviteesRequest.ts index 10bead42..645fbfd0 100644 --- a/packages/core/src/definitions/BulkUpdateInviteesRequest.ts +++ b/packages/core/src/definitions/BulkUpdateInviteesRequest.ts @@ -1,18 +1,15 @@ -import type AddInviteeRequest from './AddInviteeRequest'; -import type BulkUpdateInviteesRequestUpdatedInvitees from './BulkUpdateInviteesRequestUpdatedInvitees'; -import type RcwResourceIdModel from './RcwResourceIdModel'; +import type AddInviteeRequest from "./AddInviteeRequest"; +import type BulkUpdateInviteesRequestUpdatedInvitees from "./BulkUpdateInviteesRequestUpdatedInvitees"; +import type RcwResourceIdModel from "./RcwResourceIdModel"; interface BulkUpdateInviteesRequest { - /** - */ + /** */ addedInvitees?: AddInviteeRequest[]; - /** - */ + /** */ updatedInvitees?: BulkUpdateInviteesRequestUpdatedInvitees[]; - /** - */ + /** */ deletedInvitees?: RcwResourceIdModel[]; } diff --git a/packages/core/src/definitions/BulkUpdateInviteesRequestUpdatedInvitees.ts b/packages/core/src/definitions/BulkUpdateInviteesRequestUpdatedInvitees.ts index 59af8f9d..a40fd8da 100644 --- a/packages/core/src/definitions/BulkUpdateInviteesRequestUpdatedInvitees.ts +++ b/packages/core/src/definitions/BulkUpdateInviteesRequestUpdatedInvitees.ts @@ -35,13 +35,13 @@ interface BulkUpdateInviteesRequestUpdatedInvitees { * See also: [Understanding Webinar Roles](https://support.ringcentral.com/webinar/getting-started/understanding-ringcentral-webinar-roles.html) * Example: Panelist */ - role?: 'Panelist' | 'CoHost' | 'Host' | 'Attendee'; + role?: "Panelist" | "CoHost" | "Host" | "Attendee"; /** * The type of the webinar invitee * Default: User */ - type?: 'User' | 'Room'; + type?: "User" | "Room"; /** * Indicates if invite/cancellation emails have to be sent to this invitee. diff --git a/packages/core/src/definitions/BulkUpdateInviteesResponse.ts b/packages/core/src/definitions/BulkUpdateInviteesResponse.ts index 15be78e9..898c0966 100644 --- a/packages/core/src/definitions/BulkUpdateInviteesResponse.ts +++ b/packages/core/src/definitions/BulkUpdateInviteesResponse.ts @@ -1,17 +1,14 @@ -import type InviteeResource from './InviteeResource'; -import type RcwResourceIdModel from './RcwResourceIdModel'; +import type InviteeResource from "./InviteeResource"; +import type RcwResourceIdModel from "./RcwResourceIdModel"; interface BulkUpdateInviteesResponse { - /** - */ + /** */ addedInvitees?: InviteeResource[]; - /** - */ + /** */ updatedInvitees?: InviteeResource[]; - /** - */ + /** */ deletedInvitees?: RcwResourceIdModel[]; } diff --git a/packages/core/src/definitions/BusinessSiteCollectionRequest.ts b/packages/core/src/definitions/BusinessSiteCollectionRequest.ts index 88dc8f72..622909ff 100644 --- a/packages/core/src/definitions/BusinessSiteCollectionRequest.ts +++ b/packages/core/src/definitions/BusinessSiteCollectionRequest.ts @@ -1,8 +1,7 @@ -import type RolesBusinessSiteResource from './RolesBusinessSiteResource'; +import type RolesBusinessSiteResource from "./RolesBusinessSiteResource"; interface BusinessSiteCollectionRequest { - /** - */ + /** */ records?: RolesBusinessSiteResource[]; } diff --git a/packages/core/src/definitions/BusinessSiteCollectionResource.ts b/packages/core/src/definitions/BusinessSiteCollectionResource.ts index 4aaac910..f7d807aa 100644 --- a/packages/core/src/definitions/BusinessSiteCollectionResource.ts +++ b/packages/core/src/definitions/BusinessSiteCollectionResource.ts @@ -1,4 +1,4 @@ -import type RolesBusinessSiteResource from './RolesBusinessSiteResource'; +import type RolesBusinessSiteResource from "./RolesBusinessSiteResource"; interface BusinessSiteCollectionResource { /** @@ -6,8 +6,7 @@ interface BusinessSiteCollectionResource { */ uri?: string; - /** - */ + /** */ records?: RolesBusinessSiteResource[]; } diff --git a/packages/core/src/definitions/CaiAsyncApiResponse.ts b/packages/core/src/definitions/CaiAsyncApiResponse.ts index 8ba65d9e..8c64beb9 100644 --- a/packages/core/src/definitions/CaiAsyncApiResponse.ts +++ b/packages/core/src/definitions/CaiAsyncApiResponse.ts @@ -1,6 +1,5 @@ interface CaiAsyncApiResponse { - /** - */ + /** */ jobId?: string; } diff --git a/packages/core/src/definitions/CaiErrorCodeResponse.ts b/packages/core/src/definitions/CaiErrorCodeResponse.ts index 612aceb3..f60371c8 100644 --- a/packages/core/src/definitions/CaiErrorCodeResponse.ts +++ b/packages/core/src/definitions/CaiErrorCodeResponse.ts @@ -3,16 +3,16 @@ interface CaiErrorCodeResponse { * Required */ errorCode?: - | 'CAI-101' - | 'CAI-102' - | 'CAI-103' - | 'CAI-104' - | 'CAI-105' - | 'CAI-106' - | 'CAI-107' - | 'CAI-108' - | 'CAI-109' - | 'CAI-110'; + | "CAI-101" + | "CAI-102" + | "CAI-103" + | "CAI-104" + | "CAI-105" + | "CAI-106" + | "CAI-107" + | "CAI-108" + | "CAI-109" + | "CAI-110"; /** * Helpful description of the errorCode diff --git a/packages/core/src/definitions/CaiErrorResponse.ts b/packages/core/src/definitions/CaiErrorResponse.ts index 9069ca99..3af9e766 100644 --- a/packages/core/src/definitions/CaiErrorResponse.ts +++ b/packages/core/src/definitions/CaiErrorResponse.ts @@ -1,8 +1,7 @@ -import type CaiErrorCodeResponse from './CaiErrorCodeResponse'; +import type CaiErrorCodeResponse from "./CaiErrorCodeResponse"; interface CaiErrorResponse { - /** - */ + /** */ errors?: CaiErrorCodeResponse[]; } diff --git a/packages/core/src/definitions/CallFilters.ts b/packages/core/src/definitions/CallFilters.ts index cd5dfbc2..a75de4b5 100644 --- a/packages/core/src/definitions/CallFilters.ts +++ b/packages/core/src/definitions/CallFilters.ts @@ -1,14 +1,13 @@ -import type ExtensionFilters from './ExtensionFilters'; -import type CallSegmentFilter from './CallSegmentFilter'; -import type CallDurationFilter from './CallDurationFilter'; -import type TimeSpentFilter from './TimeSpentFilter'; +import type ExtensionFilters from "./ExtensionFilters"; +import type CallSegmentFilter from "./CallSegmentFilter"; +import type CallDurationFilter from "./CallDurationFilter"; +import type TimeSpentFilter from "./TimeSpentFilter"; /** * Optional filters that limit the scope of calls (joined via AND) */ interface CallFilters { - /** - */ + /** */ extensionFilters?: ExtensionFilters; /** @@ -24,22 +23,29 @@ interface CallFilters { /** * Specifies the call directions relative to the scope specified in grouping object (joined via OR). Not applicable to internal origin calls with company scope */ - directions?: ('Inbound' | 'Outbound')[]; + directions?: ("Inbound" | "Outbound")[]; /** * Specifies whether an external party was present in the initial segment of the call (joined via OR) */ - origins?: ('Internal' | 'External')[]; + origins?: ("Internal" | "External")[]; /** * Filtering of calls by first response (joined via OR) */ - callResponses?: ('Answered' | 'NotAnswered' | 'Connected' | 'NotConnected')[]; + callResponses?: ("Answered" | "NotAnswered" | "Connected" | "NotConnected")[]; /** * Filtering of calls by the nature of call result (joined via OR) */ - callResults?: ('Completed' | 'Abandoned' | 'Voicemail' | 'Unknown' | 'Missed' | 'Accepted')[]; + callResults?: ( + | "Completed" + | "Abandoned" + | "Voicemail" + | "Unknown" + | "Missed" + | "Accepted" + )[]; /** * Filtering of calls by presence of specific segment (joined via OR) @@ -49,30 +55,43 @@ interface CallFilters { /** * Filtering of calls by presence of specific action (joined via OR) */ - callActions?: ('HoldOff' | 'HoldOn' | 'ParkOn' | 'ParkOff' | 'BlindTransfer' | 'WarmTransfer' | 'DTMFTransfer')[]; + callActions?: ( + | "HoldOff" + | "HoldOn" + | "ParkOn" + | "ParkOff" + | "BlindTransfer" + | "WarmTransfer" + | "DTMFTransfer" + )[]; /** * Filtering of calls by company's business hours or after hours (joined via OR) */ - companyHours?: ('BusinessHours' | 'AfterHours')[]; + companyHours?: ("BusinessHours" | "AfterHours")[]; - /** - */ + /** */ callDuration?: CallDurationFilter; - /** - */ + /** */ timeSpent?: TimeSpentFilter; /** * Filtering calls that were within or out of queue SLA (joined via OR). Only applicable to Queues grouping */ - queueSla?: ('InSla' | 'OutSla')[]; + queueSla?: ("InSla" | "OutSla")[]; /** * Filtering of calls based on how the call started from the callee perspective (joined via OR). If the call is outbound relative to the grouping scope, CallType is Outbound */ - callTypes?: ('Direct' | 'FromQueue' | 'ParkRetrieval' | 'Transferred' | 'Outbound' | 'Overflow')[]; + callTypes?: ( + | "Direct" + | "FromQueue" + | "ParkRetrieval" + | "Transferred" + | "Outbound" + | "Overflow" + )[]; } export default CallFilters; diff --git a/packages/core/src/definitions/CallFlipNumberListResource.ts b/packages/core/src/definitions/CallFlipNumberListResource.ts index 62a3735f..2cf6f639 100644 --- a/packages/core/src/definitions/CallFlipNumberListResource.ts +++ b/packages/core/src/definitions/CallFlipNumberListResource.ts @@ -1,4 +1,4 @@ -import type CallFlipNumberResource from './CallFlipNumberResource'; +import type CallFlipNumberResource from "./CallFlipNumberResource"; interface CallFlipNumberListResource { /** diff --git a/packages/core/src/definitions/CallFlipNumberResource.ts b/packages/core/src/definitions/CallFlipNumberResource.ts index 35f9c2e0..378983bd 100644 --- a/packages/core/src/definitions/CallFlipNumberResource.ts +++ b/packages/core/src/definitions/CallFlipNumberResource.ts @@ -15,7 +15,7 @@ interface CallFlipNumberResource { * Flip number type * Example: PhoneLine */ - type?: 'PhoneLine' | 'External'; + type?: "PhoneLine" | "External"; /** * Flip number label, device name for Digital Line case diff --git a/packages/core/src/definitions/CallHandlingRuleInfo.ts b/packages/core/src/definitions/CallHandlingRuleInfo.ts index bc3ee248..fc4f97aa 100644 --- a/packages/core/src/definitions/CallHandlingRuleInfo.ts +++ b/packages/core/src/definitions/CallHandlingRuleInfo.ts @@ -1,14 +1,14 @@ -import type ScheduleInfo from './ScheduleInfo'; -import type CalledNumberInfo from './CalledNumberInfo'; -import type CallersInfo from './CallersInfo'; -import type ForwardingInfo from './ForwardingInfo'; -import type UnconditionalForwardingInfo from './UnconditionalForwardingInfo'; -import type QueueInfo from './QueueInfo'; -import type TransferredExtensionInfo from './TransferredExtensionInfo'; -import type VoicemailInfo from './VoicemailInfo'; -import type GreetingInfo from './GreetingInfo'; -import type SharedLinesInfo from './SharedLinesInfo'; -import type MissedCallInfo from './MissedCallInfo'; +import type ScheduleInfo from "./ScheduleInfo"; +import type CalledNumberInfo from "./CalledNumberInfo"; +import type CallersInfo from "./CallersInfo"; +import type ForwardingInfo from "./ForwardingInfo"; +import type UnconditionalForwardingInfo from "./UnconditionalForwardingInfo"; +import type QueueInfo from "./QueueInfo"; +import type TransferredExtensionInfo from "./TransferredExtensionInfo"; +import type VoicemailInfo from "./VoicemailInfo"; +import type GreetingInfo from "./GreetingInfo"; +import type SharedLinesInfo from "./SharedLinesInfo"; +import type MissedCallInfo from "./MissedCallInfo"; interface CallHandlingRuleInfo { /** @@ -25,7 +25,7 @@ interface CallHandlingRuleInfo { /** * Type of an answering rule */ - type?: 'BusinessHours' | 'AfterHours' | 'Custom'; + type?: "BusinessHours" | "AfterHours" | "Custom"; /** * Name of an answering rule specified by user @@ -37,8 +37,7 @@ interface CallHandlingRuleInfo { */ enabled?: boolean; - /** - */ + /** */ schedule?: ScheduleInfo; /** @@ -55,32 +54,27 @@ interface CallHandlingRuleInfo { * Specifies how incoming calls are forwarded */ callHandlingAction?: - | 'ForwardCalls' - | 'UnconditionalForwarding' - | 'AgentQueue' - | 'TransferToExtension' - | 'TakeMessagesOnly' - | 'PlayAnnouncementOnly' - | 'SharedLines'; - - /** - */ + | "ForwardCalls" + | "UnconditionalForwarding" + | "AgentQueue" + | "TransferToExtension" + | "TakeMessagesOnly" + | "PlayAnnouncementOnly" + | "SharedLines"; + + /** */ forwarding?: ForwardingInfo; - /** - */ + /** */ unconditionalForwarding?: UnconditionalForwardingInfo; - /** - */ + /** */ queue?: QueueInfo; - /** - */ + /** */ transfer?: TransferredExtensionInfo; - /** - */ + /** */ voicemail?: VoicemailInfo; /** @@ -92,14 +86,12 @@ interface CallHandlingRuleInfo { * Call screening status. 'Off' - no call screening; 'NoCallerId' - if caller ID is missing, then callers are asked to say their name before connecting; 'UnknownCallerId' - if caller ID is not in contact list, then callers are asked to say their name before connecting; 'Always' - the callers are always asked to say their name before connecting. The default value is 'Off' * Default: Off */ - screening?: 'Off' | 'NoCallerId' | 'UnknownCallerId' | 'Always'; + screening?: "Off" | "NoCallerId" | "UnknownCallerId" | "Always"; - /** - */ + /** */ sharedLines?: SharedLinesInfo; - /** - */ + /** */ missedCall?: MissedCallInfo; } diff --git a/packages/core/src/definitions/CallInfoCQ.ts b/packages/core/src/definitions/CallInfoCQ.ts index db837823..0800baee 100644 --- a/packages/core/src/definitions/CallInfoCQ.ts +++ b/packages/core/src/definitions/CallInfoCQ.ts @@ -1,16 +1,14 @@ -import type PrimaryCQInfo from './PrimaryCQInfo'; -import type AdditionalCQInfo from './AdditionalCQInfo'; +import type PrimaryCQInfo from "./PrimaryCQInfo"; +import type AdditionalCQInfo from "./AdditionalCQInfo"; /** * Primary/additional CQ information */ interface CallInfoCQ { - /** - */ + /** */ primary?: PrimaryCQInfo; - /** - */ + /** */ additional?: AdditionalCQInfo; } diff --git a/packages/core/src/definitions/CallLogFromParty.ts b/packages/core/src/definitions/CallLogFromParty.ts index 63e8bbcc..2b3d75e0 100644 --- a/packages/core/src/definitions/CallLogFromParty.ts +++ b/packages/core/src/definitions/CallLogFromParty.ts @@ -1,4 +1,4 @@ -import type CallLogRecordDeviceInfo from './CallLogRecordDeviceInfo'; +import type CallLogRecordDeviceInfo from "./CallLogRecordDeviceInfo"; /** * Sender/initiator caller information @@ -29,8 +29,7 @@ interface CallLogFromParty { */ location?: string; - /** - */ + /** */ device?: CallLogRecordDeviceInfo; /** diff --git a/packages/core/src/definitions/CallLogParty.ts b/packages/core/src/definitions/CallLogParty.ts index 1406a372..5836f872 100644 --- a/packages/core/src/definitions/CallLogParty.ts +++ b/packages/core/src/definitions/CallLogParty.ts @@ -1,4 +1,4 @@ -import type CallLogRecordDeviceInfo from './CallLogRecordDeviceInfo'; +import type CallLogRecordDeviceInfo from "./CallLogRecordDeviceInfo"; /** * Base schema for CallLogFromParty and CallLogToParty @@ -29,8 +29,7 @@ interface CallLogParty { */ location?: string; - /** - */ + /** */ device?: CallLogRecordDeviceInfo; } diff --git a/packages/core/src/definitions/CallLogRecord.ts b/packages/core/src/definitions/CallLogRecord.ts index eec44acf..51b70a30 100644 --- a/packages/core/src/definitions/CallLogRecord.ts +++ b/packages/core/src/definitions/CallLogRecord.ts @@ -1,20 +1,19 @@ -import type ExtensionInfoCallLog from './ExtensionInfoCallLog'; -import type CallLogRecordTransferTarget from './CallLogRecordTransferTarget'; -import type CallLogRecordTransferee from './CallLogRecordTransferee'; -import type CallLogFromParty from './CallLogFromParty'; -import type CallLogToParty from './CallLogToParty'; -import type CallLogRecordMessage from './CallLogRecordMessage'; -import type CallLogDelegateInfo from './CallLogDelegateInfo'; -import type CallLogRecordingInfo from './CallLogRecordingInfo'; -import type BillingInfo from './BillingInfo'; -import type CallLogRecordLegInfo from './CallLogRecordLegInfo'; +import type ExtensionInfoCallLog from "./ExtensionInfoCallLog"; +import type CallLogRecordTransferTarget from "./CallLogRecordTransferTarget"; +import type CallLogRecordTransferee from "./CallLogRecordTransferee"; +import type CallLogFromParty from "./CallLogFromParty"; +import type CallLogToParty from "./CallLogToParty"; +import type CallLogRecordMessage from "./CallLogRecordMessage"; +import type CallLogDelegateInfo from "./CallLogDelegateInfo"; +import type CallLogRecordingInfo from "./CallLogRecordingInfo"; +import type BillingInfo from "./BillingInfo"; +import type CallLogRecordLegInfo from "./CallLogRecordLegInfo"; /** * Call log record */ interface CallLogRecord { - /** - */ + /** */ extension?: ExtensionInfoCallLog; /** @@ -27,12 +26,10 @@ interface CallLogRecord { */ sipUuidInfo?: string; - /** - */ + /** */ transferTarget?: CallLogRecordTransferTarget; - /** - */ + /** */ transferee?: CallLogRecordTransferee; /** @@ -44,129 +41,125 @@ interface CallLogRecord { * The type of call transport. 'PSTN' indicates that a call leg was initiated * from the PSTN network provider; 'VoIP' - from an RC phone. */ - transport?: 'PSTN' | 'VoIP'; + transport?: "PSTN" | "VoIP"; - /** - */ + /** */ from?: CallLogFromParty; - /** - */ + /** */ to?: CallLogToParty; /** * The type of call * Required */ - type?: 'Voice' | 'Fax'; + type?: "Voice" | "Fax"; /** * The direction of a call * Required */ - direction?: 'Inbound' | 'Outbound'; + direction?: "Inbound" | "Outbound"; - /** - */ + /** */ message?: CallLogRecordMessage; - /** - */ + /** */ delegate?: CallLogDelegateInfo; /** * Call delegation type */ - delegationType?: 'Coworker' | 'Unknown'; + delegationType?: "Coworker" | "Unknown"; /** * The internal action corresponding to the call operation * Required */ action?: - | 'Accept Call' - | 'Barge In Call' - | 'Call Park' - | 'Call Return' - | 'CallOut-CallMe' - | 'Calling Card' - | 'Conference Call' - | 'E911 Update' - | 'Emergency' - | 'External Application' - | 'FindMe' - | 'FollowMe' - | 'FreeSPDL' - | 'Hunting' - | 'Incoming Fax' - | 'Monitoring' - | 'Move' - | 'Outgoing Fax' - | 'Paging' - | 'Park Location' - | 'Phone Call' - | 'Phone Login' - | 'Pickup' - | 'RC Meetings' - | 'Ring Directly' - | 'RingMe' - | 'RingOut Mobile' - | 'RingOut PC' - | 'RingOut Web' - | 'Sip Forwarding' - | 'Support' - | 'Text Relay' - | 'Transfer' - | 'Unknown' - | 'VoIP Call'; + | "Accept Call" + | "Barge In Call" + | "Call Park" + | "Call Return" + | "CallOut-CallMe" + | "Calling Card" + | "Conference Call" + | "E911 Update" + | "Emergency" + | "External Application" + | "FindMe" + | "FollowMe" + | "FreeSPDL" + | "Hunting" + | "Incoming Fax" + | "Monitoring" + | "Move" + | "Outgoing Fax" + | "Paging" + | "Park Location" + | "Phone Call" + | "Phone Login" + | "Pickup" + | "RC Meetings" + | "Ring Directly" + | "RingMe" + | "RingOut Mobile" + | "RingOut PC" + | "RingOut Web" + | "Sip Forwarding" + | "Support" + | "Text Relay" + | "Transfer" + | "Unknown" + | "VoIP Call"; /** * The result of the call operation */ result?: - | '911' - | '933' - | 'Abandoned' - | 'Accepted' - | 'Answered Not Accepted' - | 'Blocked' - | 'Busy' - | 'Call Failed' - | 'Call Failure' - | 'Call connected' - | 'Carrier is not active' - | 'Declined' - | 'EDGE trunk misconfigured' - | 'Fax Not Sent' - | 'Fax Partially Sent' - | 'Fax Poor Line' - | 'Fax Receipt Error' - | 'Fax on Demand' - | 'Hang Up' - | 'IP Phone Offline' - | 'In Progress' - | 'Internal Error' - | 'International Disabled' - | 'International Restricted' - | 'Missed' - | 'No Answer' - | 'No Calling Credit' - | 'Not Allowed' - | 'Partial Receive' - | 'Phone Login' - | 'Receive Error' - | 'Received' - | 'Rejected' - | 'Reply' - | 'Restricted Number' - | 'Send Error' - | 'Sent' - | 'Sent to Voicemail' - | 'Stopped' - | 'Suspended account' - | 'Unknown' - | 'Voicemail' - | 'Wrong Number'; + | "911" + | "933" + | "Abandoned" + | "Accepted" + | "Answered Not Accepted" + | "Blocked" + | "Busy" + | "Call Failed" + | "Call Failure" + | "Call connected" + | "Carrier is not active" + | "Declined" + | "EDGE trunk misconfigured" + | "Fax Not Sent" + | "Fax Partially Sent" + | "Fax Poor Line" + | "Fax Receipt Error" + | "Fax on Demand" + | "Hang Up" + | "IP Phone Offline" + | "In Progress" + | "Internal Error" + | "International Disabled" + | "International Restricted" + | "Missed" + | "No Answer" + | "No Calling Credit" + | "Not Allowed" + | "Partial Receive" + | "Phone Login" + | "Receive Error" + | "Received" + | "Rejected" + | "Reply" + | "Restricted Number" + | "Send Error" + | "Sent" + | "Sent to Voicemail" + | "Stopped" + | "Suspended account" + | "Unknown" + | "Voicemail" + | "Wrong Number"; /** * The reason of the call result: @@ -210,45 +203,45 @@ interface CallLogRecord { * * `Receive Error` - Fax receive error */ reason?: - | 'Accepted' - | 'Bad Number' - | 'Call Loop' - | 'Calls Not Accepted' - | 'Carrier is not active' - | 'Connected' - | 'Customer 611 Restricted' - | 'EDGE trunk misconfigured' - | 'Emergency Address not defined' - | 'Failed Try Again' - | 'Fax Not Received' - | 'Fax Not Sent' - | 'Fax Partially Sent' - | 'Fax Poor Line' - | 'Fax Prepare Error' - | 'Fax Save Error' - | 'Fax Send Error' - | 'Hang Up' - | 'Info 411 Restricted' - | 'Internal Call Error' - | 'Internal Error' - | 'International Disabled' - | 'International Restricted' - | 'Line Busy' - | 'Max Call Limit' - | 'No Answer' - | 'No Credit' - | 'No Digital Line' - | 'Not Answered' - | 'Number Blocked' - | 'Number Disabled' - | 'Number Not Allowed' - | 'Receive Error' - | 'Resource Error' - | 'Restricted Number' - | 'Stopped' - | 'Too Many Calls' - | 'Unknown' - | 'Wrong Number'; + | "Accepted" + | "Bad Number" + | "Call Loop" + | "Calls Not Accepted" + | "Carrier is not active" + | "Connected" + | "Customer 611 Restricted" + | "EDGE trunk misconfigured" + | "Emergency Address not defined" + | "Failed Try Again" + | "Fax Not Received" + | "Fax Not Sent" + | "Fax Partially Sent" + | "Fax Poor Line" + | "Fax Prepare Error" + | "Fax Save Error" + | "Fax Send Error" + | "Hang Up" + | "Info 411 Restricted" + | "Internal Call Error" + | "Internal Error" + | "International Disabled" + | "International Restricted" + | "Line Busy" + | "Max Call Limit" + | "No Answer" + | "No Credit" + | "No Digital Line" + | "Not Answered" + | "Number Blocked" + | "Number Disabled" + | "Number Not Allowed" + | "Receive Error" + | "Resource Error" + | "Restricted Number" + | "Stopped" + | "Too Many Calls" + | "Unknown" + | "Wrong Number"; /** * The detailed reason description of the call result @@ -274,8 +267,7 @@ interface CallLogRecord { */ durationMs?: number; - /** - */ + /** */ recording?: CallLogRecordingInfo; /** @@ -283,28 +275,27 @@ interface CallLogRecord { */ shortRecording?: boolean; - /** - */ + /** */ billing?: BillingInfo; /** * The internal type of the call */ internalType?: - | 'Local' - | 'LongDistance' - | 'International' - | 'Sip' - | 'RingMe' - | 'RingOut' - | 'Usual' - | 'TollFreeNumber' - | 'VerificationNumber' - | 'Vma' - | 'LocalNumber' - | 'ImsOutgoing' - | 'ImsIncoming' - | 'Unknown'; + | "Local" + | "LongDistance" + | "International" + | "Sip" + | "RingMe" + | "RingOut" + | "Usual" + | "TollFreeNumber" + | "VerificationNumber" + | "Vma" + | "LocalNumber" + | "ImsOutgoing" + | "ImsIncoming" + | "Unknown"; /** * Internal identifier of a call log record diff --git a/packages/core/src/definitions/CallLogRecordLegInfo.ts b/packages/core/src/definitions/CallLogRecordLegInfo.ts index 66b91cd3..ffbd833b 100644 --- a/packages/core/src/definitions/CallLogRecordLegInfo.ts +++ b/packages/core/src/definitions/CallLogRecordLegInfo.ts @@ -1,19 +1,18 @@ -import type ExtensionInfoCallLog from './ExtensionInfoCallLog'; -import type CallLogRecordLegInfoTransferTarget from './CallLogRecordLegInfoTransferTarget'; -import type CallLogRecordLegInfoTransferee from './CallLogRecordLegInfoTransferee'; -import type CallLogFromParty from './CallLogFromParty'; -import type CallLogToParty from './CallLogToParty'; -import type CallLogRecordMessage from './CallLogRecordMessage'; -import type CallLogDelegateInfo from './CallLogDelegateInfo'; -import type CallLogRecordingInfo from './CallLogRecordingInfo'; -import type BillingInfo from './BillingInfo'; +import type ExtensionInfoCallLog from "./ExtensionInfoCallLog"; +import type CallLogRecordLegInfoTransferTarget from "./CallLogRecordLegInfoTransferTarget"; +import type CallLogRecordLegInfoTransferee from "./CallLogRecordLegInfoTransferee"; +import type CallLogFromParty from "./CallLogFromParty"; +import type CallLogToParty from "./CallLogToParty"; +import type CallLogRecordMessage from "./CallLogRecordMessage"; +import type CallLogDelegateInfo from "./CallLogDelegateInfo"; +import type CallLogRecordingInfo from "./CallLogRecordingInfo"; +import type BillingInfo from "./BillingInfo"; /** * Call leg record */ interface CallLogRecordLegInfo { - /** - */ + /** */ extension?: ExtensionInfoCallLog; /** @@ -26,12 +25,10 @@ interface CallLogRecordLegInfo { */ sipUuidInfo?: string; - /** - */ + /** */ transferTarget?: CallLogRecordLegInfoTransferTarget; - /** - */ + /** */ transferee?: CallLogRecordLegInfoTransferee; /** @@ -43,129 +40,125 @@ interface CallLogRecordLegInfo { * The type of call transport. 'PSTN' indicates that a call leg was initiated * from the PSTN network provider; 'VoIP' - from an RC phone. */ - transport?: 'PSTN' | 'VoIP'; + transport?: "PSTN" | "VoIP"; - /** - */ + /** */ from?: CallLogFromParty; - /** - */ + /** */ to?: CallLogToParty; /** * The type of call * Required */ - type?: 'Voice' | 'Fax'; + type?: "Voice" | "Fax"; /** * The direction of a call * Required */ - direction?: 'Inbound' | 'Outbound'; + direction?: "Inbound" | "Outbound"; - /** - */ + /** */ message?: CallLogRecordMessage; - /** - */ + /** */ delegate?: CallLogDelegateInfo; /** * Call delegation type */ - delegationType?: 'Coworker' | 'Unknown'; + delegationType?: "Coworker" | "Unknown"; /** * The internal action corresponding to the call operation * Required */ action?: - | 'Accept Call' - | 'Barge In Call' - | 'Call Park' - | 'Call Return' - | 'CallOut-CallMe' - | 'Calling Card' - | 'Conference Call' - | 'E911 Update' - | 'Emergency' - | 'External Application' - | 'FindMe' - | 'FollowMe' - | 'FreeSPDL' - | 'Hunting' - | 'Incoming Fax' - | 'Monitoring' - | 'Move' - | 'Outgoing Fax' - | 'Paging' - | 'Park Location' - | 'Phone Call' - | 'Phone Login' - | 'Pickup' - | 'RC Meetings' - | 'Ring Directly' - | 'RingMe' - | 'RingOut Mobile' - | 'RingOut PC' - | 'RingOut Web' - | 'Sip Forwarding' - | 'Support' - | 'Text Relay' - | 'Transfer' - | 'Unknown' - | 'VoIP Call'; + | "Accept Call" + | "Barge In Call" + | "Call Park" + | "Call Return" + | "CallOut-CallMe" + | "Calling Card" + | "Conference Call" + | "E911 Update" + | "Emergency" + | "External Application" + | "FindMe" + | "FollowMe" + | "FreeSPDL" + | "Hunting" + | "Incoming Fax" + | "Monitoring" + | "Move" + | "Outgoing Fax" + | "Paging" + | "Park Location" + | "Phone Call" + | "Phone Login" + | "Pickup" + | "RC Meetings" + | "Ring Directly" + | "RingMe" + | "RingOut Mobile" + | "RingOut PC" + | "RingOut Web" + | "Sip Forwarding" + | "Support" + | "Text Relay" + | "Transfer" + | "Unknown" + | "VoIP Call"; /** * The result of the call operation */ result?: - | '911' - | '933' - | 'Abandoned' - | 'Accepted' - | 'Answered Not Accepted' - | 'Blocked' - | 'Busy' - | 'Call Failed' - | 'Call Failure' - | 'Call connected' - | 'Carrier is not active' - | 'Declined' - | 'EDGE trunk misconfigured' - | 'Fax Not Sent' - | 'Fax Partially Sent' - | 'Fax Poor Line' - | 'Fax Receipt Error' - | 'Fax on Demand' - | 'Hang Up' - | 'IP Phone Offline' - | 'In Progress' - | 'Internal Error' - | 'International Disabled' - | 'International Restricted' - | 'Missed' - | 'No Answer' - | 'No Calling Credit' - | 'Not Allowed' - | 'Partial Receive' - | 'Phone Login' - | 'Receive Error' - | 'Received' - | 'Rejected' - | 'Reply' - | 'Restricted Number' - | 'Send Error' - | 'Sent' - | 'Sent to Voicemail' - | 'Stopped' - | 'Suspended account' - | 'Unknown' - | 'Voicemail' - | 'Wrong Number'; + | "911" + | "933" + | "Abandoned" + | "Accepted" + | "Answered Not Accepted" + | "Blocked" + | "Busy" + | "Call Failed" + | "Call Failure" + | "Call connected" + | "Carrier is not active" + | "Declined" + | "EDGE trunk misconfigured" + | "Fax Not Sent" + | "Fax Partially Sent" + | "Fax Poor Line" + | "Fax Receipt Error" + | "Fax on Demand" + | "Hang Up" + | "IP Phone Offline" + | "In Progress" + | "Internal Error" + | "International Disabled" + | "International Restricted" + | "Missed" + | "No Answer" + | "No Calling Credit" + | "Not Allowed" + | "Partial Receive" + | "Phone Login" + | "Receive Error" + | "Received" + | "Rejected" + | "Reply" + | "Restricted Number" + | "Send Error" + | "Sent" + | "Sent to Voicemail" + | "Stopped" + | "Suspended account" + | "Unknown" + | "Voicemail" + | "Wrong Number"; /** * The reason of the call result: @@ -209,45 +202,45 @@ interface CallLogRecordLegInfo { * * `Receive Error` - Fax receive error */ reason?: - | 'Accepted' - | 'Bad Number' - | 'Call Loop' - | 'Calls Not Accepted' - | 'Carrier is not active' - | 'Connected' - | 'Customer 611 Restricted' - | 'EDGE trunk misconfigured' - | 'Emergency Address not defined' - | 'Failed Try Again' - | 'Fax Not Received' - | 'Fax Not Sent' - | 'Fax Partially Sent' - | 'Fax Poor Line' - | 'Fax Prepare Error' - | 'Fax Save Error' - | 'Fax Send Error' - | 'Hang Up' - | 'Info 411 Restricted' - | 'Internal Call Error' - | 'Internal Error' - | 'International Disabled' - | 'International Restricted' - | 'Line Busy' - | 'Max Call Limit' - | 'No Answer' - | 'No Credit' - | 'No Digital Line' - | 'Not Answered' - | 'Number Blocked' - | 'Number Disabled' - | 'Number Not Allowed' - | 'Receive Error' - | 'Resource Error' - | 'Restricted Number' - | 'Stopped' - | 'Too Many Calls' - | 'Unknown' - | 'Wrong Number'; + | "Accepted" + | "Bad Number" + | "Call Loop" + | "Calls Not Accepted" + | "Carrier is not active" + | "Connected" + | "Customer 611 Restricted" + | "EDGE trunk misconfigured" + | "Emergency Address not defined" + | "Failed Try Again" + | "Fax Not Received" + | "Fax Not Sent" + | "Fax Partially Sent" + | "Fax Poor Line" + | "Fax Prepare Error" + | "Fax Save Error" + | "Fax Send Error" + | "Hang Up" + | "Info 411 Restricted" + | "Internal Call Error" + | "Internal Error" + | "International Disabled" + | "International Restricted" + | "Line Busy" + | "Max Call Limit" + | "No Answer" + | "No Credit" + | "No Digital Line" + | "Not Answered" + | "Number Blocked" + | "Number Disabled" + | "Number Not Allowed" + | "Receive Error" + | "Resource Error" + | "Restricted Number" + | "Stopped" + | "Too Many Calls" + | "Unknown" + | "Wrong Number"; /** * The detailed reason description of the call result @@ -273,8 +266,7 @@ interface CallLogRecordLegInfo { */ durationMs?: number; - /** - */ + /** */ recording?: CallLogRecordingInfo; /** @@ -282,76 +274,75 @@ interface CallLogRecordLegInfo { */ shortRecording?: boolean; - /** - */ + /** */ billing?: BillingInfo; /** * The internal type of the call */ internalType?: - | 'Local' - | 'LongDistance' - | 'International' - | 'Sip' - | 'RingMe' - | 'RingOut' - | 'Usual' - | 'TollFreeNumber' - | 'VerificationNumber' - | 'Vma' - | 'LocalNumber' - | 'ImsOutgoing' - | 'ImsIncoming' - | 'Unknown'; + | "Local" + | "LongDistance" + | "International" + | "Sip" + | "RingMe" + | "RingOut" + | "Usual" + | "TollFreeNumber" + | "VerificationNumber" + | "Vma" + | "LocalNumber" + | "ImsOutgoing" + | "ImsIncoming" + | "Unknown"; /** * Leg type * Required */ legType?: - | 'SipForwarding' - | 'ServiceMinus2' - | 'ServiceMinus3' - | 'PstnToSip' - | 'Accept' - | 'FindMe' - | 'FollowMe' - | 'TestCall' - | 'FaxSent' - | 'CallBack' - | 'CallingCard' - | 'RingDirectly' - | 'RingOutWebToSubscriber' - | 'RingOutWebToCaller' - | 'SipToPstnMetered' - | 'RingOutClientToSubscriber' - | 'RingOutClientToCaller' - | 'RingMe' - | 'TransferCall' - | 'SipToPstnUnmetered' - | 'RingOutDeviceToSubscriber' - | 'RingOutDeviceToCaller' - | 'RingOutOneLegToCaller' - | 'ExtensionToExtension' - | 'CallPark' - | 'PagingServer' - | 'Hunting' - | 'OutgoingFreeSpDl' - | 'ParkLocation' - | 'CallMeCallOut' - | 'ConferenceCall' - | 'MobileApp' - | 'MoveToConference' - | 'Unknown' - | 'MeetingsCall' - | 'SilentMonitoring' - | 'Monitoring' - | 'Pickup' - | 'ImsCall' - | 'JoinCall' - | 'TextRelay' - | 'IvaCall'; + | "SipForwarding" + | "ServiceMinus2" + | "ServiceMinus3" + | "PstnToSip" + | "Accept" + | "FindMe" + | "FollowMe" + | "TestCall" + | "FaxSent" + | "CallBack" + | "CallingCard" + | "RingDirectly" + | "RingOutWebToSubscriber" + | "RingOutWebToCaller" + | "SipToPstnMetered" + | "RingOutClientToSubscriber" + | "RingOutClientToCaller" + | "RingMe" + | "TransferCall" + | "SipToPstnUnmetered" + | "RingOutDeviceToSubscriber" + | "RingOutDeviceToCaller" + | "RingOutOneLegToCaller" + | "ExtensionToExtension" + | "CallPark" + | "PagingServer" + | "Hunting" + | "OutgoingFreeSpDl" + | "ParkLocation" + | "CallMeCallOut" + | "ConferenceCall" + | "MobileApp" + | "MoveToConference" + | "Unknown" + | "MeetingsCall" + | "SilentMonitoring" + | "Monitoring" + | "Pickup" + | "ImsCall" + | "JoinCall" + | "TextRelay" + | "IvaCall"; /** * Returned for 'Detailed' call log. Specifies if the leg is master-leg diff --git a/packages/core/src/definitions/CallLogRecordingInfo.ts b/packages/core/src/definitions/CallLogRecordingInfo.ts index 4b6df6e2..18241274 100644 --- a/packages/core/src/definitions/CallLogRecordingInfo.ts +++ b/packages/core/src/definitions/CallLogRecordingInfo.ts @@ -19,7 +19,7 @@ interface CallLogRecordingInfo { * Indicates recording mode used * Required */ - type?: 'Automatic' | 'OnDemand'; + type?: "Automatic" | "OnDemand"; /** * Link to a call recording binary content. Has to be retrieved with proper authorization diff --git a/packages/core/src/definitions/CallLogResponse.ts b/packages/core/src/definitions/CallLogResponse.ts index 69bdb116..454aed83 100644 --- a/packages/core/src/definitions/CallLogResponse.ts +++ b/packages/core/src/definitions/CallLogResponse.ts @@ -1,6 +1,6 @@ -import type CallLogRecord from './CallLogRecord'; -import type PageNavigationModel from './PageNavigationModel'; -import type EnumeratedPagingModel from './EnumeratedPagingModel'; +import type CallLogRecord from "./CallLogRecord"; +import type PageNavigationModel from "./PageNavigationModel"; +import type EnumeratedPagingModel from "./EnumeratedPagingModel"; interface CallLogResponse { /** diff --git a/packages/core/src/definitions/CallLogSyncInfo.ts b/packages/core/src/definitions/CallLogSyncInfo.ts index e8a29cbc..3ec57d04 100644 --- a/packages/core/src/definitions/CallLogSyncInfo.ts +++ b/packages/core/src/definitions/CallLogSyncInfo.ts @@ -3,7 +3,7 @@ interface CallLogSyncInfo { * Type of call log synchronization request: full or incremental sync * Required */ - syncType?: 'FSync' | 'ISync'; + syncType?: "FSync" | "ISync"; /** * Synchronization token diff --git a/packages/core/src/definitions/CallLogSyncResponse.ts b/packages/core/src/definitions/CallLogSyncResponse.ts index a74eb5f0..15dc9e67 100644 --- a/packages/core/src/definitions/CallLogSyncResponse.ts +++ b/packages/core/src/definitions/CallLogSyncResponse.ts @@ -1,5 +1,5 @@ -import type CallLogRecord from './CallLogRecord'; -import type CallLogSyncInfo from './CallLogSyncInfo'; +import type CallLogRecord from "./CallLogRecord"; +import type CallLogSyncInfo from "./CallLogSyncInfo"; interface CallLogSyncResponse { /** diff --git a/packages/core/src/definitions/CallLogToParty.ts b/packages/core/src/definitions/CallLogToParty.ts index 638645cc..39458035 100644 --- a/packages/core/src/definitions/CallLogToParty.ts +++ b/packages/core/src/definitions/CallLogToParty.ts @@ -1,4 +1,4 @@ -import type CallLogRecordDeviceInfo from './CallLogRecordDeviceInfo'; +import type CallLogRecordDeviceInfo from "./CallLogRecordDeviceInfo"; /** * Target caller information @@ -29,8 +29,7 @@ interface CallLogToParty { */ location?: string; - /** - */ + /** */ device?: CallLogRecordDeviceInfo; /** diff --git a/packages/core/src/definitions/CallMonitoringBulkAssign.ts b/packages/core/src/definitions/CallMonitoringBulkAssign.ts index 1732a453..b9edfe94 100644 --- a/packages/core/src/definitions/CallMonitoringBulkAssign.ts +++ b/packages/core/src/definitions/CallMonitoringBulkAssign.ts @@ -1,16 +1,13 @@ -import type CallMonitoringExtensionInfo from './CallMonitoringExtensionInfo'; +import type CallMonitoringExtensionInfo from "./CallMonitoringExtensionInfo"; interface CallMonitoringBulkAssign { - /** - */ + /** */ addedExtensions?: CallMonitoringExtensionInfo[]; - /** - */ + /** */ updatedExtensions?: CallMonitoringExtensionInfo[]; - /** - */ + /** */ removedExtensions?: CallMonitoringExtensionInfo[]; } diff --git a/packages/core/src/definitions/CallMonitoringExtensionInfo.ts b/packages/core/src/definitions/CallMonitoringExtensionInfo.ts index 5168af1b..bde18df3 100644 --- a/packages/core/src/definitions/CallMonitoringExtensionInfo.ts +++ b/packages/core/src/definitions/CallMonitoringExtensionInfo.ts @@ -10,7 +10,7 @@ interface CallMonitoringExtensionInfo { * extension. In order to remove a specified extension from a call monitoring * group use an empty value */ - permissions?: ('Monitoring' | 'Monitored')[]; + permissions?: ("Monitoring" | "Monitored")[]; } export default CallMonitoringExtensionInfo; diff --git a/packages/core/src/definitions/CallMonitoringGroup.ts b/packages/core/src/definitions/CallMonitoringGroup.ts index 1fbf6add..447ab3f5 100644 --- a/packages/core/src/definitions/CallMonitoringGroup.ts +++ b/packages/core/src/definitions/CallMonitoringGroup.ts @@ -1,4 +1,4 @@ -import type CallMonitoringGroupSite from './CallMonitoringGroupSite'; +import type CallMonitoringGroupSite from "./CallMonitoringGroupSite"; interface CallMonitoringGroup { /** @@ -17,8 +17,7 @@ interface CallMonitoringGroup { */ name?: string; - /** - */ + /** */ site?: CallMonitoringGroupSite; } diff --git a/packages/core/src/definitions/CallMonitoringGroupMemberInfo.ts b/packages/core/src/definitions/CallMonitoringGroupMemberInfo.ts index 21163a95..58a99926 100644 --- a/packages/core/src/definitions/CallMonitoringGroupMemberInfo.ts +++ b/packages/core/src/definitions/CallMonitoringGroupMemberInfo.ts @@ -15,9 +15,8 @@ interface CallMonitoringGroupMemberInfo { */ extensionNumber?: string; - /** - */ - permissions?: ('Monitoring' | 'Monitored')[]; + /** */ + permissions?: ("Monitoring" | "Monitored")[]; } export default CallMonitoringGroupMemberInfo; diff --git a/packages/core/src/definitions/CallMonitoringGroupMemberList.ts b/packages/core/src/definitions/CallMonitoringGroupMemberList.ts index 9c6ca84c..83567c5b 100644 --- a/packages/core/src/definitions/CallMonitoringGroupMemberList.ts +++ b/packages/core/src/definitions/CallMonitoringGroupMemberList.ts @@ -1,6 +1,6 @@ -import type CallMonitoringGroupMemberInfo from './CallMonitoringGroupMemberInfo'; -import type PageNavigationModel from './PageNavigationModel'; -import type EnumeratedPagingModel from './EnumeratedPagingModel'; +import type CallMonitoringGroupMemberInfo from "./CallMonitoringGroupMemberInfo"; +import type PageNavigationModel from "./PageNavigationModel"; +import type EnumeratedPagingModel from "./EnumeratedPagingModel"; interface CallMonitoringGroupMemberList { /** diff --git a/packages/core/src/definitions/CallMonitoringGroups.ts b/packages/core/src/definitions/CallMonitoringGroups.ts index 3eb30ebc..b84c218a 100644 --- a/packages/core/src/definitions/CallMonitoringGroups.ts +++ b/packages/core/src/definitions/CallMonitoringGroups.ts @@ -1,6 +1,6 @@ -import type CallMonitoringGroup from './CallMonitoringGroup'; -import type PageNavigationModel from './PageNavigationModel'; -import type EnumeratedPagingModel from './EnumeratedPagingModel'; +import type CallMonitoringGroup from "./CallMonitoringGroup"; +import type PageNavigationModel from "./PageNavigationModel"; +import type EnumeratedPagingModel from "./EnumeratedPagingModel"; interface CallMonitoringGroups { /** diff --git a/packages/core/src/definitions/CallParty.ts b/packages/core/src/definitions/CallParty.ts index e174b665..788edda7 100644 --- a/packages/core/src/definitions/CallParty.ts +++ b/packages/core/src/definitions/CallParty.ts @@ -1,9 +1,9 @@ -import type CallStatusInfo from './CallStatusInfo'; -import type ParkInfo from './ParkInfo'; -import type PartyInfo from './PartyInfo'; -import type OwnerInfo from './OwnerInfo'; -import type RecordingInfo from './RecordingInfo'; -import type MetaData from './MetaData'; +import type CallStatusInfo from "./CallStatusInfo"; +import type ParkInfo from "./ParkInfo"; +import type PartyInfo from "./PartyInfo"; +import type OwnerInfo from "./OwnerInfo"; +import type RecordingInfo from "./RecordingInfo"; +import type MetaData from "./MetaData"; /** * Information on a party of a call session @@ -14,8 +14,7 @@ interface CallParty { */ id?: string; - /** - */ + /** */ status?: CallStatusInfo; /** @@ -34,41 +33,37 @@ interface CallParty { */ standAlone?: boolean; - /** - */ + /** */ park?: ParkInfo; - /** - */ + /** */ from?: PartyInfo; - /** - */ + /** */ to?: PartyInfo; - /** - */ + /** */ owner?: OwnerInfo; /** * Direction of a call */ - direction?: 'Inbound' | 'Outbound'; + direction?: "Inbound" | "Outbound"; /** * A party's role in the conference scenarios. For calls of 'Conference' type only */ - conferenceRole?: 'Host' | 'Participant'; + conferenceRole?: "Host" | "Participant"; /** * A party's role in 'Ring Me'/'RingOut' scenarios. For calls of 'Ringout' type only */ - ringOutRole?: 'Initiator' | 'Target'; + ringOutRole?: "Initiator" | "Target"; /** * A party's role in 'Ring Me'/'RingOut' scenarios. For calls of 'Ringme' type only */ - ringMeRole?: 'Initiator' | 'Target'; + ringMeRole?: "Initiator" | "Target"; /** * Active recordings list diff --git a/packages/core/src/definitions/CallPartyReply.ts b/packages/core/src/definitions/CallPartyReply.ts index 27a5cb03..b577fd6e 100644 --- a/packages/core/src/definitions/CallPartyReply.ts +++ b/packages/core/src/definitions/CallPartyReply.ts @@ -1,4 +1,4 @@ -import type ReplyWithPattern from './ReplyWithPattern'; +import type ReplyWithPattern from "./ReplyWithPattern"; interface CallPartyReply { /** @@ -6,8 +6,7 @@ interface CallPartyReply { */ replyWithText?: string; - /** - */ + /** */ replyWithPattern?: ReplyWithPattern; } diff --git a/packages/core/src/definitions/CallQueueBulkAssignResource.ts b/packages/core/src/definitions/CallQueueBulkAssignResource.ts index e747975d..63a05d43 100644 --- a/packages/core/src/definitions/CallQueueBulkAssignResource.ts +++ b/packages/core/src/definitions/CallQueueBulkAssignResource.ts @@ -1,10 +1,8 @@ interface CallQueueBulkAssignResource { - /** - */ + /** */ addedExtensionIds?: string[]; - /** - */ + /** */ removedExtensionIds?: string[]; } diff --git a/packages/core/src/definitions/CallQueueDetails.ts b/packages/core/src/definitions/CallQueueDetails.ts index 5303ed1d..468e7c9a 100644 --- a/packages/core/src/definitions/CallQueueDetails.ts +++ b/packages/core/src/definitions/CallQueueDetails.ts @@ -1,5 +1,5 @@ -import type SiteBasicInfo from './SiteBasicInfo'; -import type CallQueueServiceLevelSettings from './CallQueueServiceLevelSettings'; +import type SiteBasicInfo from "./SiteBasicInfo"; +import type CallQueueServiceLevelSettings from "./CallQueueServiceLevelSettings"; interface CallQueueDetails { /** @@ -26,19 +26,17 @@ interface CallQueueDetails { /** * Group extension status */ - status?: 'Enabled' | 'Disabled' | 'NotActivated'; + status?: "Enabled" | "Disabled" | "NotActivated"; /** * Indicates whether it is an emergency call queue extension or not */ - subType?: 'Emergency'; + subType?: "Emergency"; - /** - */ + /** */ site?: SiteBasicInfo; - /** - */ + /** */ serviceLevelSettings?: CallQueueServiceLevelSettings; /** diff --git a/packages/core/src/definitions/CallQueueDetailsForUpdate.ts b/packages/core/src/definitions/CallQueueDetailsForUpdate.ts index 7c5feed1..85db4a7c 100644 --- a/packages/core/src/definitions/CallQueueDetailsForUpdate.ts +++ b/packages/core/src/definitions/CallQueueDetailsForUpdate.ts @@ -1,5 +1,5 @@ -import type SiteReference from './SiteReference'; -import type CallQueueServiceLevelSettings from './CallQueueServiceLevelSettings'; +import type SiteReference from "./SiteReference"; +import type CallQueueServiceLevelSettings from "./CallQueueServiceLevelSettings"; interface CallQueueDetailsForUpdate { /** @@ -15,19 +15,17 @@ interface CallQueueDetailsForUpdate { /** * Group extension status */ - status?: 'Enabled' | 'Disabled' | 'NotActivated'; + status?: "Enabled" | "Disabled" | "NotActivated"; /** * Indicates whether it is an emergency call queue extension or not */ - subType?: 'Emergency'; + subType?: "Emergency"; - /** - */ + /** */ site?: SiteReference; - /** - */ + /** */ serviceLevelSettings?: CallQueueServiceLevelSettings; /** diff --git a/packages/core/src/definitions/CallQueueExtensionInfo.ts b/packages/core/src/definitions/CallQueueExtensionInfo.ts index ed4eeeff..64388c09 100644 --- a/packages/core/src/definitions/CallQueueExtensionInfo.ts +++ b/packages/core/src/definitions/CallQueueExtensionInfo.ts @@ -2,7 +2,6 @@ * For Call Queue extension type only. Please note that legacy * 'Department' extension type corresponds to 'Call Queue' extensions * in modern RingCentral product terminology - * */ interface CallQueueExtensionInfo { /** diff --git a/packages/core/src/definitions/CallQueueInfo.ts b/packages/core/src/definitions/CallQueueInfo.ts index 1ebb9218..fd63a88c 100644 --- a/packages/core/src/definitions/CallQueueInfo.ts +++ b/packages/core/src/definitions/CallQueueInfo.ts @@ -1,4 +1,4 @@ -import type SiteBasicInfo from './SiteBasicInfo'; +import type SiteBasicInfo from "./SiteBasicInfo"; interface CallQueueInfo { /** @@ -25,15 +25,14 @@ interface CallQueueInfo { /** * Group extension status */ - status?: 'Enabled' | 'Disabled' | 'NotActivated'; + status?: "Enabled" | "Disabled" | "NotActivated"; /** * Indicates whether it is an emergency call queue extension or not */ - subType?: 'Emergency'; + subType?: "Emergency"; - /** - */ + /** */ site?: SiteBasicInfo; } diff --git a/packages/core/src/definitions/CallQueueInfoRequest.ts b/packages/core/src/definitions/CallQueueInfoRequest.ts index f2c4a6fb..24ff65dc 100644 --- a/packages/core/src/definitions/CallQueueInfoRequest.ts +++ b/packages/core/src/definitions/CallQueueInfoRequest.ts @@ -2,7 +2,6 @@ * For Call Queue extension type only. Please note that legacy 'Department' * extension type corresponds to 'Call Queue' extensions in modern RingCentral * product terminology - * */ interface CallQueueInfoRequest { /** @@ -17,8 +16,7 @@ interface CallQueueInfoRequest { */ slaThresholdSeconds?: number; - /** - */ + /** */ includeAbandonedCalls?: boolean; /** diff --git a/packages/core/src/definitions/CallQueueList.ts b/packages/core/src/definitions/CallQueueList.ts index ad36a1a7..95499472 100644 --- a/packages/core/src/definitions/CallQueueList.ts +++ b/packages/core/src/definitions/CallQueueList.ts @@ -1,6 +1,6 @@ -import type CallQueueInfo from './CallQueueInfo'; -import type PageNavigationModel from './PageNavigationModel'; -import type EnumeratedPagingModel from './EnumeratedPagingModel'; +import type CallQueueInfo from "./CallQueueInfo"; +import type PageNavigationModel from "./PageNavigationModel"; +import type EnumeratedPagingModel from "./EnumeratedPagingModel"; interface CallQueueList { /** diff --git a/packages/core/src/definitions/CallQueueMember.ts b/packages/core/src/definitions/CallQueueMember.ts index 88644ad4..0ed6c3db 100644 --- a/packages/core/src/definitions/CallQueueMember.ts +++ b/packages/core/src/definitions/CallQueueMember.ts @@ -1,4 +1,4 @@ -import type SiteBasicInfo from './SiteBasicInfo'; +import type SiteBasicInfo from "./SiteBasicInfo"; /** * Call queue member information @@ -19,8 +19,7 @@ interface CallQueueMember { */ extensionNumber?: string; - /** - */ + /** */ site?: SiteBasicInfo; } diff --git a/packages/core/src/definitions/CallQueueMemberPresence.ts b/packages/core/src/definitions/CallQueueMemberPresence.ts index 17231101..2662b877 100644 --- a/packages/core/src/definitions/CallQueueMemberPresence.ts +++ b/packages/core/src/definitions/CallQueueMemberPresence.ts @@ -1,8 +1,7 @@ -import type CallQueueMember from './CallQueueMember'; +import type CallQueueMember from "./CallQueueMember"; interface CallQueueMemberPresence { - /** - */ + /** */ member?: CallQueueMember; /** diff --git a/packages/core/src/definitions/CallQueueMembers.ts b/packages/core/src/definitions/CallQueueMembers.ts index 3b6cccf6..d25ba443 100644 --- a/packages/core/src/definitions/CallQueueMembers.ts +++ b/packages/core/src/definitions/CallQueueMembers.ts @@ -1,6 +1,6 @@ -import type CallQueueMemberInfo from './CallQueueMemberInfo'; -import type PageNavigationModel from './PageNavigationModel'; -import type EnumeratedPagingModel from './EnumeratedPagingModel'; +import type CallQueueMemberInfo from "./CallQueueMemberInfo"; +import type PageNavigationModel from "./PageNavigationModel"; +import type EnumeratedPagingModel from "./EnumeratedPagingModel"; interface CallQueueMembers { /** diff --git a/packages/core/src/definitions/CallQueueOverflowSettings.ts b/packages/core/src/definitions/CallQueueOverflowSettings.ts index 254ca055..e56be247 100644 --- a/packages/core/src/definitions/CallQueueOverflowSettings.ts +++ b/packages/core/src/definitions/CallQueueOverflowSettings.ts @@ -1,4 +1,4 @@ -import type CallQueueInfo from './CallQueueInfo'; +import type CallQueueInfo from "./CallQueueInfo"; interface CallQueueOverflowSettings { /** @@ -6,8 +6,7 @@ interface CallQueueOverflowSettings { */ enabled?: boolean; - /** - */ + /** */ items?: CallQueueInfo[]; } diff --git a/packages/core/src/definitions/CallQueueOverflowSettingsRequestResource.ts b/packages/core/src/definitions/CallQueueOverflowSettingsRequestResource.ts index cb98df9a..e15c3154 100644 --- a/packages/core/src/definitions/CallQueueOverflowSettingsRequestResource.ts +++ b/packages/core/src/definitions/CallQueueOverflowSettingsRequestResource.ts @@ -1,4 +1,4 @@ -import type CallQueueIdResource from './CallQueueIdResource'; +import type CallQueueIdResource from "./CallQueueIdResource"; interface CallQueueOverflowSettingsRequestResource { /** @@ -6,8 +6,7 @@ interface CallQueueOverflowSettingsRequestResource { */ enabled?: boolean; - /** - */ + /** */ items?: CallQueueIdResource[]; } diff --git a/packages/core/src/definitions/CallQueuePresence.ts b/packages/core/src/definitions/CallQueuePresence.ts index b3b4bf6b..2d8d5a7d 100644 --- a/packages/core/src/definitions/CallQueuePresence.ts +++ b/packages/core/src/definitions/CallQueuePresence.ts @@ -1,8 +1,7 @@ -import type CallQueueMemberPresence from './CallQueueMemberPresence'; +import type CallQueueMemberPresence from "./CallQueueMemberPresence"; interface CallQueuePresence { - /** - */ + /** */ records?: CallQueueMemberPresence[]; } diff --git a/packages/core/src/definitions/CallQueuePresenceEvent.ts b/packages/core/src/definitions/CallQueuePresenceEvent.ts index 0ef54dee..a5efb6d8 100644 --- a/packages/core/src/definitions/CallQueuePresenceEvent.ts +++ b/packages/core/src/definitions/CallQueuePresenceEvent.ts @@ -1,4 +1,4 @@ -import type CallQueuePresenceEventBody from './CallQueuePresenceEventBody'; +import type CallQueuePresenceEventBody from "./CallQueuePresenceEventBody"; interface CallQueuePresenceEvent { /** @@ -22,8 +22,7 @@ interface CallQueuePresenceEvent { */ subscriptionId?: string; - /** - */ + /** */ body?: CallQueuePresenceEventBody; } diff --git a/packages/core/src/definitions/CallQueueUpdateMemberPresence.ts b/packages/core/src/definitions/CallQueueUpdateMemberPresence.ts index 8b57d13e..0c3960ff 100644 --- a/packages/core/src/definitions/CallQueueUpdateMemberPresence.ts +++ b/packages/core/src/definitions/CallQueueUpdateMemberPresence.ts @@ -1,8 +1,7 @@ -import type CallQueueMemberId from './CallQueueMemberId'; +import type CallQueueMemberId from "./CallQueueMemberId"; interface CallQueueUpdateMemberPresence { - /** - */ + /** */ member?: CallQueueMemberId; /** diff --git a/packages/core/src/definitions/CallQueueUpdatePresence.ts b/packages/core/src/definitions/CallQueueUpdatePresence.ts index 6365142a..2692fed6 100644 --- a/packages/core/src/definitions/CallQueueUpdatePresence.ts +++ b/packages/core/src/definitions/CallQueueUpdatePresence.ts @@ -1,8 +1,7 @@ -import type CallQueueUpdateMemberPresence from './CallQueueUpdateMemberPresence'; +import type CallQueueUpdateMemberPresence from "./CallQueueUpdateMemberPresence"; interface CallQueueUpdatePresence { - /** - */ + /** */ records?: CallQueueUpdateMemberPresence[]; } diff --git a/packages/core/src/definitions/CallRecordingCustomGreeting.ts b/packages/core/src/definitions/CallRecordingCustomGreeting.ts index 6e15a432..f1a044fc 100644 --- a/packages/core/src/definitions/CallRecordingCustomGreeting.ts +++ b/packages/core/src/definitions/CallRecordingCustomGreeting.ts @@ -1,17 +1,14 @@ -import type CallRecordingCustomGreetingData from './CallRecordingCustomGreetingData'; -import type CallRecordingCustomGreetingLanguage from './CallRecordingCustomGreetingLanguage'; +import type CallRecordingCustomGreetingData from "./CallRecordingCustomGreetingData"; +import type CallRecordingCustomGreetingLanguage from "./CallRecordingCustomGreetingLanguage"; interface CallRecordingCustomGreeting { - /** - */ - type?: 'StartRecording' | 'StopRecording' | 'AutomaticRecording'; + /** */ + type?: "StartRecording" | "StopRecording" | "AutomaticRecording"; - /** - */ + /** */ custom?: CallRecordingCustomGreetingData; - /** - */ + /** */ language?: CallRecordingCustomGreetingLanguage; } diff --git a/packages/core/src/definitions/CallRecordingCustomGreetings.ts b/packages/core/src/definitions/CallRecordingCustomGreetings.ts index 47c911d5..ca90a01f 100644 --- a/packages/core/src/definitions/CallRecordingCustomGreetings.ts +++ b/packages/core/src/definitions/CallRecordingCustomGreetings.ts @@ -1,11 +1,10 @@ -import type CallRecordingCustomGreeting from './CallRecordingCustomGreeting'; +import type CallRecordingCustomGreeting from "./CallRecordingCustomGreeting"; /** * Returns data on call recording custom greetings. */ interface CallRecordingCustomGreetings { - /** - */ + /** */ records?: CallRecordingCustomGreeting[]; } diff --git a/packages/core/src/definitions/CallRecordingExtensionResource.ts b/packages/core/src/definitions/CallRecordingExtensionResource.ts index 6e20b7a4..e474f248 100644 --- a/packages/core/src/definitions/CallRecordingExtensionResource.ts +++ b/packages/core/src/definitions/CallRecordingExtensionResource.ts @@ -9,18 +9,16 @@ interface CallRecordingExtensionResource { */ uri?: string; - /** - */ + /** */ extensionNumber?: string; - /** - */ + /** */ type?: string; /** * Direction of call */ - callDirection?: 'Outbound' | 'Inbound' | 'All'; + callDirection?: "Outbound" | "Inbound" | "All"; } export default CallRecordingExtensionResource; diff --git a/packages/core/src/definitions/CallRecordingExtensions.ts b/packages/core/src/definitions/CallRecordingExtensions.ts index 0129b392..0b06704d 100644 --- a/packages/core/src/definitions/CallRecordingExtensions.ts +++ b/packages/core/src/definitions/CallRecordingExtensions.ts @@ -1,6 +1,6 @@ -import type CallRecordingExtensionInfo from './CallRecordingExtensionInfo'; -import type PageNavigationModel from './PageNavigationModel'; -import type EnumeratedPagingModel from './EnumeratedPagingModel'; +import type CallRecordingExtensionInfo from "./CallRecordingExtensionInfo"; +import type PageNavigationModel from "./PageNavigationModel"; +import type EnumeratedPagingModel from "./EnumeratedPagingModel"; interface CallRecordingExtensions { /** @@ -9,16 +9,13 @@ interface CallRecordingExtensions { */ uri?: string; - /** - */ + /** */ records?: CallRecordingExtensionInfo[]; - /** - */ + /** */ navigation?: PageNavigationModel; - /** - */ + /** */ paging?: EnumeratedPagingModel; } diff --git a/packages/core/src/definitions/CallRecordingGreetingResource.ts b/packages/core/src/definitions/CallRecordingGreetingResource.ts index 78f7b1d6..4481ab29 100644 --- a/packages/core/src/definitions/CallRecordingGreetingResource.ts +++ b/packages/core/src/definitions/CallRecordingGreetingResource.ts @@ -1,14 +1,13 @@ interface CallRecordingGreetingResource { - /** - */ - type?: 'StartRecording' | 'StopRecording' | 'AutomaticRecording'; + /** */ + type?: "StartRecording" | "StopRecording" | "AutomaticRecording"; /** * Here `Default` indicates that all greetings of that type * (in all languages) are default. If at least one greeting (in any language) * of the specified type is custom, then `Custom` is returned. */ - mode?: 'Default' | 'Custom'; + mode?: "Default" | "Custom"; } export default CallRecordingGreetingResource; diff --git a/packages/core/src/definitions/CallRecordingSettingsResource.ts b/packages/core/src/definitions/CallRecordingSettingsResource.ts index 5e319a34..d0e537c3 100644 --- a/packages/core/src/definitions/CallRecordingSettingsResource.ts +++ b/packages/core/src/definitions/CallRecordingSettingsResource.ts @@ -1,14 +1,12 @@ -import type OnDemandResource from './OnDemandResource'; -import type AutomaticRecordingResource from './AutomaticRecordingResource'; -import type CallRecordingGreetingResource from './CallRecordingGreetingResource'; +import type OnDemandResource from "./OnDemandResource"; +import type AutomaticRecordingResource from "./AutomaticRecordingResource"; +import type CallRecordingGreetingResource from "./CallRecordingGreetingResource"; interface CallRecordingSettingsResource { - /** - */ + /** */ onDemand?: OnDemandResource; - /** - */ + /** */ automatic?: AutomaticRecordingResource; /** diff --git a/packages/core/src/definitions/CallSegmentFilter.ts b/packages/core/src/definitions/CallSegmentFilter.ts index aace51a6..ad346df0 100644 --- a/packages/core/src/definitions/CallSegmentFilter.ts +++ b/packages/core/src/definitions/CallSegmentFilter.ts @@ -1,14 +1,22 @@ -import type CallSegmentLengthFilter from './CallSegmentLengthFilter'; +import type CallSegmentLengthFilter from "./CallSegmentLengthFilter"; interface CallSegmentFilter { /** * Call segment for filtering * Required */ - segment?: 'Ringing' | 'LiveTalk' | 'Hold' | 'Park' | 'Transfer' | 'IvrPrompt' | 'Voicemail' | 'VmGreeting' | 'Setup'; + segment?: + | "Ringing" + | "LiveTalk" + | "Hold" + | "Park" + | "Transfer" + | "IvrPrompt" + | "Voicemail" + | "VmGreeting" + | "Setup"; - /** - */ + /** */ length?: CallSegmentLengthFilter; } diff --git a/packages/core/src/definitions/CallSession.ts b/packages/core/src/definitions/CallSession.ts index 4b79be94..b64c29ee 100644 --- a/packages/core/src/definitions/CallSession.ts +++ b/packages/core/src/definitions/CallSession.ts @@ -1,8 +1,7 @@ -import type CallSessionObject from './CallSessionObject'; +import type CallSessionObject from "./CallSessionObject"; interface CallSession { - /** - */ + /** */ session?: CallSessionObject; } diff --git a/packages/core/src/definitions/CallSessionObject.ts b/packages/core/src/definitions/CallSessionObject.ts index 046cfc64..d829f094 100644 --- a/packages/core/src/definitions/CallSessionObject.ts +++ b/packages/core/src/definitions/CallSessionObject.ts @@ -1,5 +1,5 @@ -import type OriginInfo from './OriginInfo'; -import type CallParty from './CallParty'; +import type OriginInfo from "./OriginInfo"; +import type CallParty from "./CallParty"; /** * Call session information @@ -10,8 +10,7 @@ interface CallSessionObject { */ id?: string; - /** - */ + /** */ origin?: OriginInfo; /** @@ -19,8 +18,7 @@ interface CallSessionObject { */ voiceCallToken?: string; - /** - */ + /** */ parties?: CallParty[]; /** diff --git a/packages/core/src/definitions/CallStatusInfo.ts b/packages/core/src/definitions/CallStatusInfo.ts index 985ec7d3..b90cd831 100644 --- a/packages/core/src/definitions/CallStatusInfo.ts +++ b/packages/core/src/definitions/CallStatusInfo.ts @@ -1,5 +1,5 @@ -import type PeerInfo from './PeerInfo'; -import type MobilePickupData from './MobilePickupData'; +import type PeerInfo from "./PeerInfo"; +import type MobilePickupData from "./MobilePickupData"; /** * Status data of a call session @@ -9,52 +9,52 @@ interface CallStatusInfo { * Status code of a call */ code?: - | 'Setup' - | 'Proceeding' - | 'Answered' - | 'Disconnected' - | 'Gone' - | 'Parked' - | 'Hold' - | 'VoiceMail' - | 'FaxReceive' - | 'Tds' - | 'VoiceMailScreening'; + | "Setup" + | "Proceeding" + | "Answered" + | "Disconnected" + | "Gone" + | "Parked" + | "Hold" + | "VoiceMail" + | "FaxReceive" + | "Tds" + | "VoiceMailScreening"; /** * Reason for a call status, might be specified for some codes */ reason?: - | 'Pickup' - | 'Supervising' - | 'TakeOver' - | 'Timeout' - | 'BlindTransfer' - | 'RccTransfer' - | 'AttendedTransfer' - | 'CallerInputRedirect' - | 'CallFlip' - | 'ParkLocation' - | 'DtmfTransfer' - | 'AgentAnswered' - | 'AgentDropped' - | 'Rejected' - | 'Cancelled' - | 'InternalError' - | 'NoAnswer' - | 'TargetBusy' - | 'InvalidNumber' - | 'InternationalDisabled' - | 'DestinationBlocked' - | 'NotEnoughFunds' - | 'NoSuchUser' - | 'CallPark' - | 'CallRedirected' - | 'CallReplied' - | 'CallSwitch' - | 'CallFinished' - | 'CallDropped' - | 'Voicemail'; + | "Pickup" + | "Supervising" + | "TakeOver" + | "Timeout" + | "BlindTransfer" + | "RccTransfer" + | "AttendedTransfer" + | "CallerInputRedirect" + | "CallFlip" + | "ParkLocation" + | "DtmfTransfer" + | "AgentAnswered" + | "AgentDropped" + | "Rejected" + | "Cancelled" + | "InternalError" + | "NoAnswer" + | "TargetBusy" + | "InvalidNumber" + | "InternationalDisabled" + | "DestinationBlocked" + | "NotEnoughFunds" + | "NoSuchUser" + | "CallPark" + | "CallRedirected" + | "CallReplied" + | "CallSwitch" + | "CallFinished" + | "CallDropped" + | "Voicemail"; /** * Optional message @@ -66,12 +66,10 @@ interface CallStatusInfo { */ parkData?: string; - /** - */ + /** */ peerId?: PeerInfo; - /** - */ + /** */ mobilePickupData?: MobilePickupData; /** diff --git a/packages/core/src/definitions/CallerBlockingSettings.ts b/packages/core/src/definitions/CallerBlockingSettings.ts index 086c190e..49575b44 100644 --- a/packages/core/src/definitions/CallerBlockingSettings.ts +++ b/packages/core/src/definitions/CallerBlockingSettings.ts @@ -1,4 +1,4 @@ -import type BlockedCallerGreetingInfo from './BlockedCallerGreetingInfo'; +import type BlockedCallerGreetingInfo from "./BlockedCallerGreetingInfo"; /** * Returns the lists of blocked and allowed phone numbers @@ -7,17 +7,17 @@ interface CallerBlockingSettings { /** * Call blocking options: either specific or all calls and faxes */ - mode?: 'Specific' | 'All'; + mode?: "Specific" | "All"; /** * Determines how to handle calls with no caller ID in `Specific` mode */ - noCallerId?: 'BlockCallsAndFaxes' | 'BlockFaxes' | 'Allow'; + noCallerId?: "BlockCallsAndFaxes" | "BlockFaxes" | "Allow"; /** * Blocking settings for pay phones */ - payPhones?: 'Block' | 'Allow'; + payPhones?: "Block" | "Allow"; /** * List of greetings played for blocked callers diff --git a/packages/core/src/definitions/CallerBlockingSettingsUpdate.ts b/packages/core/src/definitions/CallerBlockingSettingsUpdate.ts index 417ba63e..f366a136 100644 --- a/packages/core/src/definitions/CallerBlockingSettingsUpdate.ts +++ b/packages/core/src/definitions/CallerBlockingSettingsUpdate.ts @@ -1,4 +1,4 @@ -import type BlockedCallerGreetingInfo from './BlockedCallerGreetingInfo'; +import type BlockedCallerGreetingInfo from "./BlockedCallerGreetingInfo"; /** * Returns the lists of blocked and allowed phone numbers @@ -7,17 +7,17 @@ interface CallerBlockingSettingsUpdate { /** * Call blocking options: either specific or all calls and faxes */ - mode?: 'Specific' | 'All'; + mode?: "Specific" | "All"; /** * Determines how to handle calls with no caller ID in 'Specific' mode */ - noCallerId?: 'BlockCallsAndFaxes' | 'BlockFaxes' | 'Allow'; + noCallerId?: "BlockCallsAndFaxes" | "BlockFaxes" | "Allow"; /** * Blocking settings for pay phones */ - payPhones?: 'Block' | 'Allow'; + payPhones?: "Block" | "Allow"; /** * List of greetings played for blocked callers diff --git a/packages/core/src/definitions/CallerIdByDevice.ts b/packages/core/src/definitions/CallerIdByDevice.ts index 504a6d42..1e6b663a 100644 --- a/packages/core/src/definitions/CallerIdByDevice.ts +++ b/packages/core/src/definitions/CallerIdByDevice.ts @@ -1,16 +1,14 @@ -import type CallerIdDeviceInfo from './CallerIdDeviceInfo'; -import type CallerIdByDeviceInfo from './CallerIdByDeviceInfo'; +import type CallerIdDeviceInfo from "./CallerIdDeviceInfo"; +import type CallerIdByDeviceInfo from "./CallerIdByDeviceInfo"; /** * Caller ID settings by device */ interface CallerIdByDevice { - /** - */ + /** */ device?: CallerIdDeviceInfo; - /** - */ + /** */ callerId?: CallerIdByDeviceInfo; } diff --git a/packages/core/src/definitions/CallerIdByDeviceInfo.ts b/packages/core/src/definitions/CallerIdByDeviceInfo.ts index 8271c67d..83871b92 100644 --- a/packages/core/src/definitions/CallerIdByDeviceInfo.ts +++ b/packages/core/src/definitions/CallerIdByDeviceInfo.ts @@ -1,4 +1,4 @@ -import type CallerIdPhoneInfo from './CallerIdPhoneInfo'; +import type CallerIdPhoneInfo from "./CallerIdPhoneInfo"; interface CallerIdByDeviceInfo { /** @@ -10,8 +10,7 @@ interface CallerIdByDeviceInfo { */ type?: string; - /** - */ + /** */ phoneInfo?: CallerIdPhoneInfo; } diff --git a/packages/core/src/definitions/CallerIdByDeviceInfoRequest.ts b/packages/core/src/definitions/CallerIdByDeviceInfoRequest.ts index 47be5478..eba5f7b5 100644 --- a/packages/core/src/definitions/CallerIdByDeviceInfoRequest.ts +++ b/packages/core/src/definitions/CallerIdByDeviceInfoRequest.ts @@ -1,4 +1,4 @@ -import type CallerIdPhoneInfoRequest from './CallerIdPhoneInfoRequest'; +import type CallerIdPhoneInfoRequest from "./CallerIdPhoneInfoRequest"; interface CallerIdByDeviceInfoRequest { /** @@ -10,8 +10,7 @@ interface CallerIdByDeviceInfoRequest { */ type?: string; - /** - */ + /** */ phoneInfo?: CallerIdPhoneInfoRequest; } diff --git a/packages/core/src/definitions/CallerIdByDeviceRequest.ts b/packages/core/src/definitions/CallerIdByDeviceRequest.ts index 00be934f..e6fabcdc 100644 --- a/packages/core/src/definitions/CallerIdByDeviceRequest.ts +++ b/packages/core/src/definitions/CallerIdByDeviceRequest.ts @@ -1,16 +1,14 @@ -import type CallerIdDeviceInfoRequest from './CallerIdDeviceInfoRequest'; -import type CallerIdByDeviceInfoRequest from './CallerIdByDeviceInfoRequest'; +import type CallerIdDeviceInfoRequest from "./CallerIdDeviceInfoRequest"; +import type CallerIdByDeviceInfoRequest from "./CallerIdByDeviceInfoRequest"; /** * Caller ID settings by device */ interface CallerIdByDeviceRequest { - /** - */ + /** */ device?: CallerIdDeviceInfoRequest; - /** - */ + /** */ callerId?: CallerIdByDeviceInfoRequest; } diff --git a/packages/core/src/definitions/CallerIdByFeature.ts b/packages/core/src/definitions/CallerIdByFeature.ts index 2b4fb355..678671c5 100644 --- a/packages/core/src/definitions/CallerIdByFeature.ts +++ b/packages/core/src/definitions/CallerIdByFeature.ts @@ -1,24 +1,22 @@ -import type CallerIdByFeatureInfo from './CallerIdByFeatureInfo'; +import type CallerIdByFeatureInfo from "./CallerIdByFeatureInfo"; /** * Caller ID settings by feature */ interface CallerIdByFeature { - /** - */ + /** */ feature?: - | 'RingOut' - | 'RingMe' - | 'CallFlip' - | 'FaxNumber' - | 'AdditionalSoftphone' - | 'Alternate' - | 'CommonPhone' - | 'MobileApp' - | 'Delegated'; + | "RingOut" + | "RingMe" + | "CallFlip" + | "FaxNumber" + | "AdditionalSoftphone" + | "Alternate" + | "CommonPhone" + | "MobileApp" + | "Delegated"; - /** - */ + /** */ callerId?: CallerIdByFeatureInfo; } diff --git a/packages/core/src/definitions/CallerIdByFeatureInfo.ts b/packages/core/src/definitions/CallerIdByFeatureInfo.ts index 2b7b3017..d8524a68 100644 --- a/packages/core/src/definitions/CallerIdByFeatureInfo.ts +++ b/packages/core/src/definitions/CallerIdByFeatureInfo.ts @@ -1,4 +1,4 @@ -import type CallerIdPhoneInfo from './CallerIdPhoneInfo'; +import type CallerIdPhoneInfo from "./CallerIdPhoneInfo"; interface CallerIdByFeatureInfo { /** @@ -10,8 +10,7 @@ interface CallerIdByFeatureInfo { */ type?: string; - /** - */ + /** */ phoneInfo?: CallerIdPhoneInfo; } diff --git a/packages/core/src/definitions/CallerIdByFeatureInfoRequest.ts b/packages/core/src/definitions/CallerIdByFeatureInfoRequest.ts index a6444709..54c2d159 100644 --- a/packages/core/src/definitions/CallerIdByFeatureInfoRequest.ts +++ b/packages/core/src/definitions/CallerIdByFeatureInfoRequest.ts @@ -1,4 +1,4 @@ -import type CallerIdPhoneInfoRequest from './CallerIdPhoneInfoRequest'; +import type CallerIdPhoneInfoRequest from "./CallerIdPhoneInfoRequest"; interface CallerIdByFeatureInfoRequest { /** @@ -10,8 +10,7 @@ interface CallerIdByFeatureInfoRequest { */ type?: string; - /** - */ + /** */ phoneInfo?: CallerIdPhoneInfoRequest; } diff --git a/packages/core/src/definitions/CallerIdByFeatureRequest.ts b/packages/core/src/definitions/CallerIdByFeatureRequest.ts index f6117dde..c8024d2a 100644 --- a/packages/core/src/definitions/CallerIdByFeatureRequest.ts +++ b/packages/core/src/definitions/CallerIdByFeatureRequest.ts @@ -1,24 +1,22 @@ -import type CallerIdByFeatureInfoRequest from './CallerIdByFeatureInfoRequest'; +import type CallerIdByFeatureInfoRequest from "./CallerIdByFeatureInfoRequest"; /** * Caller ID settings by feature */ interface CallerIdByFeatureRequest { - /** - */ + /** */ feature?: - | 'RingOut' - | 'RingMe' - | 'CallFlip' - | 'FaxNumber' - | 'AdditionalSoftphone' - | 'Alternate' - | 'CommonPhone' - | 'MobileApp' - | 'Delegated'; + | "RingOut" + | "RingMe" + | "CallFlip" + | "FaxNumber" + | "AdditionalSoftphone" + | "Alternate" + | "CommonPhone" + | "MobileApp" + | "Delegated"; - /** - */ + /** */ callerId?: CallerIdByFeatureInfoRequest; } diff --git a/packages/core/src/definitions/CallsByActions.ts b/packages/core/src/definitions/CallsByActions.ts index 2af39b5e..e650c613 100644 --- a/packages/core/src/definitions/CallsByActions.ts +++ b/packages/core/src/definitions/CallsByActions.ts @@ -1,4 +1,4 @@ -import type CallsByActionsBreakdown from './CallsByActionsBreakdown'; +import type CallsByActionsBreakdown from "./CallsByActionsBreakdown"; /** * Data for calls with breakdown by action (HoldOff, HoldOn, ParkOn, ParkOff, BlindTransfer, WarmTransfer, DTMFTransfer) @@ -8,7 +8,7 @@ interface CallsByActions { * Unit of the result value * Required */ - valueType?: 'Percent' | 'Seconds' | 'Instances'; + valueType?: "Percent" | "Seconds" | "Instances"; /** * Required diff --git a/packages/core/src/definitions/CallsByCompanyHours.ts b/packages/core/src/definitions/CallsByCompanyHours.ts index 8fe1b41f..e8bc7b61 100644 --- a/packages/core/src/definitions/CallsByCompanyHours.ts +++ b/packages/core/src/definitions/CallsByCompanyHours.ts @@ -1,4 +1,4 @@ -import type CallsByCompanyHoursBreakdown from './CallsByCompanyHoursBreakdown'; +import type CallsByCompanyHoursBreakdown from "./CallsByCompanyHoursBreakdown"; /** * Data for calls with breakdown by company hours (BusinessHours, AfterHours) @@ -8,7 +8,7 @@ interface CallsByCompanyHours { * Unit of the result value * Required */ - valueType?: 'Percent' | 'Seconds' | 'Instances'; + valueType?: "Percent" | "Seconds" | "Instances"; /** * Required diff --git a/packages/core/src/definitions/CallsByDirection.ts b/packages/core/src/definitions/CallsByDirection.ts index 15e6a4c6..0cc1e12a 100644 --- a/packages/core/src/definitions/CallsByDirection.ts +++ b/packages/core/src/definitions/CallsByDirection.ts @@ -1,4 +1,4 @@ -import type CallsByDirectionBreakdown from './CallsByDirectionBreakdown'; +import type CallsByDirectionBreakdown from "./CallsByDirectionBreakdown"; /** * Data for calls with breakdown by direction (Inbound, Outbound) @@ -8,7 +8,7 @@ interface CallsByDirection { * Unit of the result value * Required */ - valueType?: 'Percent' | 'Seconds' | 'Instances'; + valueType?: "Percent" | "Seconds" | "Instances"; /** * Required diff --git a/packages/core/src/definitions/CallsByOrigin.ts b/packages/core/src/definitions/CallsByOrigin.ts index 20bb3e52..a0e19e10 100644 --- a/packages/core/src/definitions/CallsByOrigin.ts +++ b/packages/core/src/definitions/CallsByOrigin.ts @@ -1,4 +1,4 @@ -import type CallsByOriginBreakdown from './CallsByOriginBreakdown'; +import type CallsByOriginBreakdown from "./CallsByOriginBreakdown"; /** * Data for calls with breakdown by origin (Internal, External) @@ -8,7 +8,7 @@ interface CallsByOrigin { * Unit of the result value * Required */ - valueType?: 'Percent' | 'Seconds' | 'Instances'; + valueType?: "Percent" | "Seconds" | "Instances"; /** * Required diff --git a/packages/core/src/definitions/CallsByQueueSla.ts b/packages/core/src/definitions/CallsByQueueSla.ts index 83c2d1e5..1176c19c 100644 --- a/packages/core/src/definitions/CallsByQueueSla.ts +++ b/packages/core/src/definitions/CallsByQueueSla.ts @@ -1,4 +1,4 @@ -import type CallsByQueueSlaBreakdown from './CallsByQueueSlaBreakdown'; +import type CallsByQueueSlaBreakdown from "./CallsByQueueSlaBreakdown"; /** * Data for calls with breakdown by queue SLA (InSLA, OutSLA). This counter is only applicable to Queues grouping @@ -8,7 +8,7 @@ interface CallsByQueueSla { * Unit of the result value * Required */ - valueType?: 'Percent' | 'Seconds' | 'Instances'; + valueType?: "Percent" | "Seconds" | "Instances"; /** * Required diff --git a/packages/core/src/definitions/CallsByResponse.ts b/packages/core/src/definitions/CallsByResponse.ts index f07c112a..d89099d1 100644 --- a/packages/core/src/definitions/CallsByResponse.ts +++ b/packages/core/src/definitions/CallsByResponse.ts @@ -1,4 +1,4 @@ -import type CallsByResponseBreakdown from './CallsByResponseBreakdown'; +import type CallsByResponseBreakdown from "./CallsByResponseBreakdown"; /** * Data for calls with breakdown by response (Answered, NotAnswered, Connected, NotConnected) @@ -8,7 +8,7 @@ interface CallsByResponse { * Unit of the result value * Required */ - valueType?: 'Percent' | 'Seconds' | 'Instances'; + valueType?: "Percent" | "Seconds" | "Instances"; /** * Required diff --git a/packages/core/src/definitions/CallsByResult.ts b/packages/core/src/definitions/CallsByResult.ts index 85c53b17..4573b8f4 100644 --- a/packages/core/src/definitions/CallsByResult.ts +++ b/packages/core/src/definitions/CallsByResult.ts @@ -1,4 +1,4 @@ -import type CallsByResultBreakdown from './CallsByResultBreakdown'; +import type CallsByResultBreakdown from "./CallsByResultBreakdown"; /** * Data for calls with breakdown by result (Completed, Abandoned, Voicemail, Unknown, Missed, Accepted) @@ -8,7 +8,7 @@ interface CallsByResult { * Unit of the result value * Required */ - valueType?: 'Percent' | 'Seconds' | 'Instances'; + valueType?: "Percent" | "Seconds" | "Instances"; /** * Required diff --git a/packages/core/src/definitions/CallsBySegments.ts b/packages/core/src/definitions/CallsBySegments.ts index 716ab86e..1be60e0b 100644 --- a/packages/core/src/definitions/CallsBySegments.ts +++ b/packages/core/src/definitions/CallsBySegments.ts @@ -1,4 +1,4 @@ -import type CallsBySegmentsBreakdown from './CallsBySegmentsBreakdown'; +import type CallsBySegmentsBreakdown from "./CallsBySegmentsBreakdown"; /** * Data for calls with breakdown by segments (Ringing, LiveTalk, Hold, Park, Transfer, IvrPrompt, Voicemail, VmGreeting, Setup) @@ -8,7 +8,7 @@ interface CallsBySegments { * Unit of the result value * Required */ - valueType?: 'Percent' | 'Seconds' | 'Instances'; + valueType?: "Percent" | "Seconds" | "Instances"; /** * Required diff --git a/packages/core/src/definitions/CallsByType.ts b/packages/core/src/definitions/CallsByType.ts index 7d10e7db..4959e890 100644 --- a/packages/core/src/definitions/CallsByType.ts +++ b/packages/core/src/definitions/CallsByType.ts @@ -1,4 +1,4 @@ -import type CallsByTypeBreakdown from './CallsByTypeBreakdown'; +import type CallsByTypeBreakdown from "./CallsByTypeBreakdown"; /** * Data for calls with breakdown by type (Direct, FromQueue, ParkRetrieval, Transferred, Outbound, Overflow) @@ -8,7 +8,7 @@ interface CallsByType { * Unit of the result value * Required */ - valueType?: 'Percent' | 'Seconds' | 'Instances'; + valueType?: "Percent" | "Seconds" | "Instances"; /** * Required diff --git a/packages/core/src/definitions/CallsCounters.ts b/packages/core/src/definitions/CallsCounters.ts index ae01486d..4a049f83 100644 --- a/packages/core/src/definitions/CallsCounters.ts +++ b/packages/core/src/definitions/CallsCounters.ts @@ -1,61 +1,50 @@ -import type AllCalls from './AllCalls'; -import type CallsByDirection from './CallsByDirection'; -import type CallsByOrigin from './CallsByOrigin'; -import type CallsByResponse from './CallsByResponse'; -import type CallsBySegments from './CallsBySegments'; -import type CallsByResult from './CallsByResult'; -import type CallsByActions from './CallsByActions'; -import type CallsByCompanyHours from './CallsByCompanyHours'; -import type CallsByQueueSla from './CallsByQueueSla'; -import type CallsByType from './CallsByType'; -import type QueueOpportunities from './QueueOpportunities'; +import type AllCalls from "./AllCalls"; +import type CallsByDirection from "./CallsByDirection"; +import type CallsByOrigin from "./CallsByOrigin"; +import type CallsByResponse from "./CallsByResponse"; +import type CallsBySegments from "./CallsBySegments"; +import type CallsByResult from "./CallsByResult"; +import type CallsByActions from "./CallsByActions"; +import type CallsByCompanyHours from "./CallsByCompanyHours"; +import type CallsByQueueSla from "./CallsByQueueSla"; +import type CallsByType from "./CallsByType"; +import type QueueOpportunities from "./QueueOpportunities"; /** * Call volume data for the specified grouping */ interface CallsCounters { - /** - */ + /** */ allCalls?: AllCalls; - /** - */ + /** */ callsByDirection?: CallsByDirection; - /** - */ + /** */ callsByOrigin?: CallsByOrigin; - /** - */ + /** */ callsByResponse?: CallsByResponse; - /** - */ + /** */ callsSegments?: CallsBySegments; - /** - */ + /** */ callsByResult?: CallsByResult; - /** - */ + /** */ callsActions?: CallsByActions; - /** - */ + /** */ callsByCompanyHours?: CallsByCompanyHours; - /** - */ + /** */ callsByQueueSla?: CallsByQueueSla; - /** - */ + /** */ callsByType?: CallsByType; - /** - */ + /** */ queueOpportunities?: QueueOpportunities; } diff --git a/packages/core/src/definitions/CallsTimers.ts b/packages/core/src/definitions/CallsTimers.ts index 8c6da4d2..43f7ad08 100644 --- a/packages/core/src/definitions/CallsTimers.ts +++ b/packages/core/src/definitions/CallsTimers.ts @@ -1,51 +1,42 @@ -import type AllCalls from './AllCalls'; -import type CallsByDirection from './CallsByDirection'; -import type CallsByOrigin from './CallsByOrigin'; -import type CallsByResponse from './CallsByResponse'; -import type CallsBySegments from './CallsBySegments'; -import type CallsByResult from './CallsByResult'; -import type CallsByCompanyHours from './CallsByCompanyHours'; -import type CallsByQueueSla from './CallsByQueueSla'; -import type CallsByType from './CallsByType'; +import type AllCalls from "./AllCalls"; +import type CallsByDirection from "./CallsByDirection"; +import type CallsByOrigin from "./CallsByOrigin"; +import type CallsByResponse from "./CallsByResponse"; +import type CallsBySegments from "./CallsBySegments"; +import type CallsByResult from "./CallsByResult"; +import type CallsByCompanyHours from "./CallsByCompanyHours"; +import type CallsByQueueSla from "./CallsByQueueSla"; +import type CallsByType from "./CallsByType"; /** * Call length data for the specified grouping */ interface CallsTimers { - /** - */ + /** */ allCalls?: AllCalls; - /** - */ + /** */ callsByDirection?: CallsByDirection; - /** - */ + /** */ callsByOrigin?: CallsByOrigin; - /** - */ + /** */ callsByResponse?: CallsByResponse; - /** - */ + /** */ callsSegments?: CallsBySegments; - /** - */ + /** */ callsByResult?: CallsByResult; - /** - */ + /** */ callsByCompanyHours?: CallsByCompanyHours; - /** - */ + /** */ callsByQueueSla?: CallsByQueueSla; - /** - */ + /** */ callsByType?: CallsByType; } diff --git a/packages/core/src/definitions/CheckUserPermissionParameters.ts b/packages/core/src/definitions/CheckUserPermissionParameters.ts index 440dfe0b..f97ebaa5 100644 --- a/packages/core/src/definitions/CheckUserPermissionParameters.ts +++ b/packages/core/src/definitions/CheckUserPermissionParameters.ts @@ -2,12 +2,10 @@ * Query parameters for operation checkUserPermission */ interface CheckUserPermissionParameters { - /** - */ + /** */ permissionId?: string; - /** - */ + /** */ targetExtensionId?: string; } diff --git a/packages/core/src/definitions/ClientAuthJwtModel.ts b/packages/core/src/definitions/ClientAuthJwtModel.ts index 07c9378c..a5f7dab0 100644 --- a/packages/core/src/definitions/ClientAuthJwtModel.ts +++ b/packages/core/src/definitions/ClientAuthJwtModel.ts @@ -4,7 +4,8 @@ interface ClientAuthJwtModel { * as defined by [RFC-7523](https://datatracker.ietf.org/doc/html/rfc7523#section-2.2). * This parameter is mandatory if the client authentication is required and a client decided to use one of these authentication types */ - client_assertion_type?: 'urn:ietf:params:oauth:client-assertion-type:jwt-bearer'; + client_assertion_type?: + "urn:ietf:params:oauth:client-assertion-type:jwt-bearer"; /** * Client assertion (JWT) for the `client_secret_jwt` or `private_key_jwt` client authentication types, diff --git a/packages/core/src/definitions/ClientCredentialsBase.ts b/packages/core/src/definitions/ClientCredentialsBase.ts index 8c153d8f..432c30e7 100644 --- a/packages/core/src/definitions/ClientCredentialsBase.ts +++ b/packages/core/src/definitions/ClientCredentialsBase.ts @@ -1,14 +1,13 @@ /** * Token endpoint request parameters used in the "Client Credentials" authorization flow * with the `client_credentials` grant type - * */ interface ClientCredentialsBase { /** * Grant type * Required */ - grant_type?: 'client_credentials'; + grant_type?: "client_credentials"; } export default ClientCredentialsBase; diff --git a/packages/core/src/definitions/ClientCredentialsByAccount.ts b/packages/core/src/definitions/ClientCredentialsByAccount.ts index 707f5263..61f20d7b 100644 --- a/packages/core/src/definitions/ClientCredentialsByAccount.ts +++ b/packages/core/src/definitions/ClientCredentialsByAccount.ts @@ -1,14 +1,13 @@ /** * Token endpoint request parameters used in the "Client Credentials" authorization flow * with the `client_credentials` grant type - * */ interface ClientCredentialsByAccount { /** * Grant type * Required */ - grant_type?: 'client_credentials'; + grant_type?: "client_credentials"; /** * RingCentral internal account ID diff --git a/packages/core/src/definitions/ClientCredentialsByBrand.ts b/packages/core/src/definitions/ClientCredentialsByBrand.ts index bd0603b9..660cd220 100644 --- a/packages/core/src/definitions/ClientCredentialsByBrand.ts +++ b/packages/core/src/definitions/ClientCredentialsByBrand.ts @@ -1,14 +1,13 @@ /** * Token endpoint request parameters used in the "Client Credentials" authorization flow * with the `client_credentials` grant type - * */ interface ClientCredentialsByBrand { /** * Grant type * Required */ - grant_type?: 'client_credentials'; + grant_type?: "client_credentials"; /** * RingCentral Brand identifier diff --git a/packages/core/src/definitions/ClientCredentialsByPartnerAccount.ts b/packages/core/src/definitions/ClientCredentialsByPartnerAccount.ts index fd8a0003..ff61e8ad 100644 --- a/packages/core/src/definitions/ClientCredentialsByPartnerAccount.ts +++ b/packages/core/src/definitions/ClientCredentialsByPartnerAccount.ts @@ -1,14 +1,13 @@ /** * Token endpoint request parameters used in the "Client Credentials" authorization flow * with the `client_credentials` grant type - * */ interface ClientCredentialsByPartnerAccount { /** * Grant type * Required */ - grant_type?: 'client_credentials'; + grant_type?: "client_credentials"; /** * RingCentral Brand identifier diff --git a/packages/core/src/definitions/ClientCredentialsTokenRequest.ts b/packages/core/src/definitions/ClientCredentialsTokenRequest.ts index 950f7418..7a0a2eb6 100644 --- a/packages/core/src/definitions/ClientCredentialsTokenRequest.ts +++ b/packages/core/src/definitions/ClientCredentialsTokenRequest.ts @@ -1,14 +1,13 @@ /** * Token endpoint request parameters used in the "Client Credentials" authorization flow * with the `client_credentials` grant type - * */ interface ClientCredentialsTokenRequest { /** * Grant type * Required */ - grant_type?: 'client_credentials'; + grant_type?: "client_credentials"; /** * RingCentral Brand identifier diff --git a/packages/core/src/definitions/CloudRecording.ts b/packages/core/src/definitions/CloudRecording.ts index e86e3f27..cc7dac94 100644 --- a/packages/core/src/definitions/CloudRecording.ts +++ b/packages/core/src/definitions/CloudRecording.ts @@ -1,4 +1,4 @@ -import type Host from './Host'; +import type Host from "./Host"; /** * Recording information diff --git a/packages/core/src/definitions/CloudRecordings.ts b/packages/core/src/definitions/CloudRecordings.ts index 31ca279f..da04b470 100644 --- a/packages/core/src/definitions/CloudRecordings.ts +++ b/packages/core/src/definitions/CloudRecordings.ts @@ -1,5 +1,5 @@ -import type CloudRecording from './CloudRecording'; -import type Paging from './Paging'; +import type CloudRecording from "./CloudRecording"; +import type Paging from "./Paging"; /** * Recordings page diff --git a/packages/core/src/definitions/CommonEmergencyLocationResource.ts b/packages/core/src/definitions/CommonEmergencyLocationResource.ts index 1454c432..0b8eabcc 100644 --- a/packages/core/src/definitions/CommonEmergencyLocationResource.ts +++ b/packages/core/src/definitions/CommonEmergencyLocationResource.ts @@ -1,6 +1,6 @@ -import type CommonEmergencyLocationAddressInfo from './CommonEmergencyLocationAddressInfo'; -import type ShortSiteInfo from './ShortSiteInfo'; -import type LocationOwnerInfo from './LocationOwnerInfo'; +import type CommonEmergencyLocationAddressInfo from "./CommonEmergencyLocationAddressInfo"; +import type ShortSiteInfo from "./ShortSiteInfo"; +import type LocationOwnerInfo from "./LocationOwnerInfo"; /** * Company emergency response location details @@ -11,8 +11,7 @@ interface CommonEmergencyLocationResource { */ id?: string; - /** - */ + /** */ address?: CommonEmergencyLocationAddressInfo; /** @@ -20,29 +19,34 @@ interface CommonEmergencyLocationResource { */ name?: string; - /** - */ + /** */ site?: ShortSiteInfo; /** * Emergency address status */ - addressStatus?: 'Valid' | 'Invalid' | 'Provisioning'; + addressStatus?: "Valid" | "Invalid" | "Provisioning"; /** * Status of emergency response location usage. */ - usageStatus?: 'Active' | 'Inactive'; + usageStatus?: "Active" | "Inactive"; /** * Resulting status of emergency address synchronization. Returned * if `syncEmergencyAddress` parameter is set to `true` */ - syncStatus?: 'Verified' | 'Updated' | 'Deleted' | 'ActivationProcess' | 'NotRequired' | 'Unsupported' | 'Failed'; + syncStatus?: + | "Verified" + | "Updated" + | "Deleted" + | "ActivationProcess" + | "NotRequired" + | "Unsupported" + | "Failed"; - /** - */ - addressType?: 'LocationWithElins' | 'LocationWithEndpoint'; + /** */ + addressType?: "LocationWithElins" | "LocationWithEndpoint"; /** * Visibility of an emergency response location. If `Private` @@ -50,7 +54,7 @@ interface CommonEmergencyLocationResource { * specified in `owners` array * Default: Public */ - visibility?: 'Private' | 'Public'; + visibility?: "Private" | "Public"; /** * List of private location owners diff --git a/packages/core/src/definitions/CompanyAnsweringRuleInfo.ts b/packages/core/src/definitions/CompanyAnsweringRuleInfo.ts index b9b71d20..0087aa50 100644 --- a/packages/core/src/definitions/CompanyAnsweringRuleInfo.ts +++ b/packages/core/src/definitions/CompanyAnsweringRuleInfo.ts @@ -1,8 +1,8 @@ -import type CompanyAnsweringRuleCallersInfoRequest from './CompanyAnsweringRuleCallersInfoRequest'; -import type CompanyAnsweringRuleCalledNumberInfoRequest from './CompanyAnsweringRuleCalledNumberInfoRequest'; -import type CompanyAnsweringRuleScheduleInfo from './CompanyAnsweringRuleScheduleInfo'; -import type CompanyAnsweringRuleExtensionInfoRequest from './CompanyAnsweringRuleExtensionInfoRequest'; -import type GreetingInfo from './GreetingInfo'; +import type CompanyAnsweringRuleCallersInfoRequest from "./CompanyAnsweringRuleCallersInfoRequest"; +import type CompanyAnsweringRuleCalledNumberInfoRequest from "./CompanyAnsweringRuleCalledNumberInfoRequest"; +import type CompanyAnsweringRuleScheduleInfo from "./CompanyAnsweringRuleScheduleInfo"; +import type CompanyAnsweringRuleExtensionInfoRequest from "./CompanyAnsweringRuleExtensionInfoRequest"; +import type GreetingInfo from "./GreetingInfo"; interface CompanyAnsweringRuleInfo { /** @@ -26,7 +26,7 @@ interface CompanyAnsweringRuleInfo { * Type of an answering rule * Default: Custom */ - type?: 'BusinessHours' | 'AfterHours' | 'Custom'; + type?: "BusinessHours" | "AfterHours" | "Custom"; /** * Name of an answering rule specified by user. Max number of symbols is 30. The default value is 'My Rule N' where 'N' is the first free number @@ -43,17 +43,15 @@ interface CompanyAnsweringRuleInfo { */ calledNumbers?: CompanyAnsweringRuleCalledNumberInfoRequest[]; - /** - */ + /** */ schedule?: CompanyAnsweringRuleScheduleInfo; /** * Specifies how incoming calls are forwarded. The default value is 'Operator' 'Operator' - play company greeting and forward to operator extension 'Disconnect' - play company greeting and disconnect 'Bypass' - bypass greeting to go to selected extension = ['Operator', 'Disconnect', 'Bypass'] */ - callHandlingAction?: 'Operator' | 'Disconnect' | 'Bypass'; + callHandlingAction?: "Operator" | "Disconnect" | "Bypass"; - /** - */ + /** */ extension?: CompanyAnsweringRuleExtensionInfoRequest; /** diff --git a/packages/core/src/definitions/CompanyAnsweringRuleList.ts b/packages/core/src/definitions/CompanyAnsweringRuleList.ts index 6c7a702a..3bfe961a 100644 --- a/packages/core/src/definitions/CompanyAnsweringRuleList.ts +++ b/packages/core/src/definitions/CompanyAnsweringRuleList.ts @@ -1,6 +1,6 @@ -import type ListCompanyAnsweringRuleInfo from './ListCompanyAnsweringRuleInfo'; -import type EnumeratedPagingModel from './EnumeratedPagingModel'; -import type PageNavigationModel from './PageNavigationModel'; +import type ListCompanyAnsweringRuleInfo from "./ListCompanyAnsweringRuleInfo"; +import type EnumeratedPagingModel from "./EnumeratedPagingModel"; +import type PageNavigationModel from "./PageNavigationModel"; interface CompanyAnsweringRuleList { /** @@ -14,12 +14,10 @@ interface CompanyAnsweringRuleList { */ records?: ListCompanyAnsweringRuleInfo[]; - /** - */ + /** */ paging?: EnumeratedPagingModel; - /** - */ + /** */ navigation?: PageNavigationModel; } diff --git a/packages/core/src/definitions/CompanyAnsweringRuleRequest.ts b/packages/core/src/definitions/CompanyAnsweringRuleRequest.ts index a4b94f4e..98535b01 100644 --- a/packages/core/src/definitions/CompanyAnsweringRuleRequest.ts +++ b/packages/core/src/definitions/CompanyAnsweringRuleRequest.ts @@ -1,8 +1,8 @@ -import type CompanyAnsweringRuleCallersInfoRequest from './CompanyAnsweringRuleCallersInfoRequest'; -import type CompanyAnsweringRuleCalledNumberInfo from './CompanyAnsweringRuleCalledNumberInfo'; -import type CompanyAnsweringRuleScheduleInfoRequest from './CompanyAnsweringRuleScheduleInfoRequest'; -import type CompanyAnsweringRuleExtensionInfoRequest from './CompanyAnsweringRuleExtensionInfoRequest'; -import type GreetingInfo from './GreetingInfo'; +import type CompanyAnsweringRuleCallersInfoRequest from "./CompanyAnsweringRuleCallersInfoRequest"; +import type CompanyAnsweringRuleCalledNumberInfo from "./CompanyAnsweringRuleCalledNumberInfo"; +import type CompanyAnsweringRuleScheduleInfoRequest from "./CompanyAnsweringRuleScheduleInfoRequest"; +import type CompanyAnsweringRuleExtensionInfoRequest from "./CompanyAnsweringRuleExtensionInfoRequest"; +import type GreetingInfo from "./GreetingInfo"; interface CompanyAnsweringRuleRequest { /** @@ -19,7 +19,7 @@ interface CompanyAnsweringRuleRequest { /** * Type of an answering rule, the default value is 'Custom' = ['BusinessHours', 'AfterHours', 'Custom'] */ - type?: 'BusinessHours' | 'AfterHours' | 'Custom'; + type?: "BusinessHours" | "AfterHours" | "Custom"; /** * Answering rule will be applied when calls are received from the specified caller(s) @@ -31,17 +31,15 @@ interface CompanyAnsweringRuleRequest { */ calledNumbers?: CompanyAnsweringRuleCalledNumberInfo[]; - /** - */ + /** */ schedule?: CompanyAnsweringRuleScheduleInfoRequest; /** * Specifies how incoming calls are forwarded. The default value is 'Operator' 'Operator' - play company greeting and forward to operator extension 'Disconnect' - play company greeting and disconnect 'Bypass' - bypass greeting to go to selected extension = ['Operator', 'Disconnect', 'Bypass'] */ - callHandlingAction?: 'Operator' | 'Disconnect' | 'Bypass'; + callHandlingAction?: "Operator" | "Disconnect" | "Bypass"; - /** - */ + /** */ extension?: CompanyAnsweringRuleExtensionInfoRequest; /** diff --git a/packages/core/src/definitions/CompanyAnsweringRuleScheduleInfo.ts b/packages/core/src/definitions/CompanyAnsweringRuleScheduleInfo.ts index 8f8043d9..91d447ac 100644 --- a/packages/core/src/definitions/CompanyAnsweringRuleScheduleInfo.ts +++ b/packages/core/src/definitions/CompanyAnsweringRuleScheduleInfo.ts @@ -1,12 +1,11 @@ -import type CompanyAnsweringRuleWeeklyScheduleInfoRequest from './CompanyAnsweringRuleWeeklyScheduleInfoRequest'; -import type RangesInfo from './RangesInfo'; +import type CompanyAnsweringRuleWeeklyScheduleInfoRequest from "./CompanyAnsweringRuleWeeklyScheduleInfoRequest"; +import type RangesInfo from "./RangesInfo"; /** * Schedule when an answering rule should be applied */ interface CompanyAnsweringRuleScheduleInfo { - /** - */ + /** */ weeklyRanges?: CompanyAnsweringRuleWeeklyScheduleInfoRequest; /** @@ -17,7 +16,7 @@ interface CompanyAnsweringRuleScheduleInfo { /** * Reference to Business Hours or After Hours schedule = ['BusinessHours', 'AfterHours'] */ - ref?: 'BusinessHours' | 'AfterHours'; + ref?: "BusinessHours" | "AfterHours"; } export default CompanyAnsweringRuleScheduleInfo; diff --git a/packages/core/src/definitions/CompanyAnsweringRuleScheduleInfoRequest.ts b/packages/core/src/definitions/CompanyAnsweringRuleScheduleInfoRequest.ts index d2125a53..bb34b51c 100644 --- a/packages/core/src/definitions/CompanyAnsweringRuleScheduleInfoRequest.ts +++ b/packages/core/src/definitions/CompanyAnsweringRuleScheduleInfoRequest.ts @@ -1,12 +1,11 @@ -import type CompanyAnsweringRuleWeeklyScheduleInfoRequest from './CompanyAnsweringRuleWeeklyScheduleInfoRequest'; -import type RangesInfo from './RangesInfo'; +import type CompanyAnsweringRuleWeeklyScheduleInfoRequest from "./CompanyAnsweringRuleWeeklyScheduleInfoRequest"; +import type RangesInfo from "./RangesInfo"; /** * Schedule when an answering rule should be applied */ interface CompanyAnsweringRuleScheduleInfoRequest { - /** - */ + /** */ weeklyRanges?: CompanyAnsweringRuleWeeklyScheduleInfoRequest; /** @@ -17,7 +16,7 @@ interface CompanyAnsweringRuleScheduleInfoRequest { /** * Reference to Business Hours or After Hours schedule */ - ref?: 'BusinessHours' | 'AfterHours'; + ref?: "BusinessHours" | "AfterHours"; } export default CompanyAnsweringRuleScheduleInfoRequest; diff --git a/packages/core/src/definitions/CompanyAnsweringRuleUpdate.ts b/packages/core/src/definitions/CompanyAnsweringRuleUpdate.ts index babbe480..d0772fd1 100644 --- a/packages/core/src/definitions/CompanyAnsweringRuleUpdate.ts +++ b/packages/core/src/definitions/CompanyAnsweringRuleUpdate.ts @@ -1,7 +1,7 @@ -import type CompanyAnsweringRuleCallersInfoRequest from './CompanyAnsweringRuleCallersInfoRequest'; -import type CompanyAnsweringRuleCalledNumberInfo from './CompanyAnsweringRuleCalledNumberInfo'; -import type CompanyAnsweringRuleScheduleInfoRequest from './CompanyAnsweringRuleScheduleInfoRequest'; -import type GreetingInfo from './GreetingInfo'; +import type CompanyAnsweringRuleCallersInfoRequest from "./CompanyAnsweringRuleCallersInfoRequest"; +import type CompanyAnsweringRuleCalledNumberInfo from "./CompanyAnsweringRuleCalledNumberInfo"; +import type CompanyAnsweringRuleScheduleInfoRequest from "./CompanyAnsweringRuleScheduleInfoRequest"; +import type GreetingInfo from "./GreetingInfo"; interface CompanyAnsweringRuleUpdate { /** @@ -28,23 +28,21 @@ interface CompanyAnsweringRuleUpdate { */ calledNumbers?: CompanyAnsweringRuleCalledNumberInfo[]; - /** - */ + /** */ schedule?: CompanyAnsweringRuleScheduleInfoRequest; /** * Specifies how incoming calls are forwarded. The default value is 'Operator' 'Operator' - play company greeting and forward to operator extension 'Disconnect' - play company greeting and disconnect 'Bypass' - bypass greeting to go to selected extension = ['Operator', 'Disconnect','Bypass'] */ - callHandlingAction?: 'Operator' | 'Disconnect' | 'Bypass'; + callHandlingAction?: "Operator" | "Disconnect" | "Bypass"; /** * Type of an answering rule * Default: Custom */ - type?: 'BusinessHours' | 'AfterHours' | 'Custom'; + type?: "BusinessHours" | "AfterHours" | "Custom"; - /** - */ + /** */ extension?: CompanyAnsweringRuleCallersInfoRequest; /** diff --git a/packages/core/src/definitions/CompanyAnsweringRuleWeeklyScheduleInfoRequest.ts b/packages/core/src/definitions/CompanyAnsweringRuleWeeklyScheduleInfoRequest.ts index ea232386..ed34ea6c 100644 --- a/packages/core/src/definitions/CompanyAnsweringRuleWeeklyScheduleInfoRequest.ts +++ b/packages/core/src/definitions/CompanyAnsweringRuleWeeklyScheduleInfoRequest.ts @@ -1,4 +1,4 @@ -import type CompanyAnsweringRuleTimeIntervalRequest from './CompanyAnsweringRuleTimeIntervalRequest'; +import type CompanyAnsweringRuleTimeIntervalRequest from "./CompanyAnsweringRuleTimeIntervalRequest"; /** * Weekly schedule. If specified, ranges cannot be specified diff --git a/packages/core/src/definitions/CompanyBusinessHours.ts b/packages/core/src/definitions/CompanyBusinessHours.ts index 2126ad2c..f310da9f 100644 --- a/packages/core/src/definitions/CompanyBusinessHours.ts +++ b/packages/core/src/definitions/CompanyBusinessHours.ts @@ -1,4 +1,4 @@ -import type CompanyBusinessHoursScheduleInfo from './CompanyBusinessHoursScheduleInfo'; +import type CompanyBusinessHoursScheduleInfo from "./CompanyBusinessHoursScheduleInfo"; interface CompanyBusinessHours { /** @@ -7,8 +7,7 @@ interface CompanyBusinessHours { */ uri?: string; - /** - */ + /** */ schedule?: CompanyBusinessHoursScheduleInfo; } diff --git a/packages/core/src/definitions/CompanyBusinessHoursScheduleInfo.ts b/packages/core/src/definitions/CompanyBusinessHoursScheduleInfo.ts index 2ab9eeb5..0d6d6d5c 100644 --- a/packages/core/src/definitions/CompanyBusinessHoursScheduleInfo.ts +++ b/packages/core/src/definitions/CompanyBusinessHoursScheduleInfo.ts @@ -1,11 +1,10 @@ -import type WeeklyScheduleInfo from './WeeklyScheduleInfo'; +import type WeeklyScheduleInfo from "./WeeklyScheduleInfo"; /** * Schedule when an answering rule is applied */ interface CompanyBusinessHoursScheduleInfo { - /** - */ + /** */ weeklyRanges?: WeeklyScheduleInfo; } diff --git a/packages/core/src/definitions/CompanyBusinessHoursUpdateRequest.ts b/packages/core/src/definitions/CompanyBusinessHoursUpdateRequest.ts index 8fcf9ecc..fb578e0c 100644 --- a/packages/core/src/definitions/CompanyBusinessHoursUpdateRequest.ts +++ b/packages/core/src/definitions/CompanyBusinessHoursUpdateRequest.ts @@ -1,8 +1,7 @@ -import type CompanyBusinessHoursScheduleInfo from './CompanyBusinessHoursScheduleInfo'; +import type CompanyBusinessHoursScheduleInfo from "./CompanyBusinessHoursScheduleInfo"; interface CompanyBusinessHoursUpdateRequest { - /** - */ + /** */ schedule?: CompanyBusinessHoursScheduleInfo; } diff --git a/packages/core/src/definitions/CompanyPhoneNumberInfo.ts b/packages/core/src/definitions/CompanyPhoneNumberInfo.ts index 0dcfb49a..918a69dd 100644 --- a/packages/core/src/definitions/CompanyPhoneNumberInfo.ts +++ b/packages/core/src/definitions/CompanyPhoneNumberInfo.ts @@ -1,7 +1,7 @@ -import type CountryInfoBasicModel from './CountryInfoBasicModel'; -import type ExtensionInfo from './ExtensionInfo'; -import type TemporaryNumberInfo from './TemporaryNumberInfo'; -import type ContactCenterProvider from './ContactCenterProvider'; +import type CountryInfoBasicModel from "./CountryInfoBasicModel"; +import type ExtensionInfo from "./ExtensionInfo"; +import type TemporaryNumberInfo from "./TemporaryNumberInfo"; +import type ContactCenterProvider from "./ContactCenterProvider"; interface CompanyPhoneNumberInfo { /** @@ -16,12 +16,10 @@ interface CompanyPhoneNumberInfo { */ id?: number; - /** - */ + /** */ country?: CountryInfoBasicModel; - /** - */ + /** */ extension?: ExtensionInfo; /** @@ -39,12 +37,12 @@ interface CompanyPhoneNumberInfo { * which are not terminated in the RingCentral phone system */ paymentType?: - | 'External' - | 'TollFree' - | 'Local' - | 'BusinessMobileNumberProvider' - | 'ExternalNumberProvider' - | 'ExternalNumberProviderTollFree'; + | "External" + | "TollFree" + | "Local" + | "BusinessMobileNumberProvider" + | "ExternalNumberProvider" + | "ExternalNumberProviderTollFree"; /** * Phone number @@ -56,12 +54,12 @@ interface CompanyPhoneNumberInfo { * number is ready to be used. Otherwise, it is an external number not yet * ported to RingCentral */ - status?: 'Normal' | 'Pending' | 'PortedIn' | 'Temporary' | 'Unknown'; + status?: "Normal" | "Pending" | "PortedIn" | "Temporary" | "Unknown"; /** * Type of a phone number */ - type?: 'VoiceFax' | 'VoiceOnly' | 'FaxOnly'; + type?: "VoiceFax" | "VoiceOnly" | "FaxOnly"; /** * Usage type of phone number. Usage type of phone number. @@ -69,27 +67,25 @@ interface CompanyPhoneNumberInfo { * requests */ usageType?: - | 'MainCompanyNumber' - | 'AdditionalCompanyNumber' - | 'CompanyNumber' - | 'DirectNumber' - | 'CompanyFaxNumber' - | 'ForwardedNumber' - | 'ForwardedCompanyNumber' - | 'ContactCenterNumber' - | 'ConferencingNumber' - | 'MeetingsNumber' - | 'NumberPool' - | 'BusinessMobileNumber' - | 'PartnerBusinessMobileNumber' - | 'IntegrationNumber'; - - /** - */ + | "MainCompanyNumber" + | "AdditionalCompanyNumber" + | "CompanyNumber" + | "DirectNumber" + | "CompanyFaxNumber" + | "ForwardedNumber" + | "ForwardedCompanyNumber" + | "ContactCenterNumber" + | "ConferencingNumber" + | "MeetingsNumber" + | "NumberPool" + | "BusinessMobileNumber" + | "PartnerBusinessMobileNumber" + | "IntegrationNumber"; + + /** */ temporaryNumber?: TemporaryNumberInfo; - /** - */ + /** */ contactCenterProvider?: ContactCenterProvider; /** @@ -105,7 +101,7 @@ interface CompanyPhoneNumberInfo { /** * Phone number activation status. Determine whether phone number migration is completed on the partner side. */ - activationStatus?: 'Active' | 'Inactive'; + activationStatus?: "Active" | "Inactive"; } export default CompanyPhoneNumberInfo; diff --git a/packages/core/src/definitions/ContactAddressInfoResource.ts b/packages/core/src/definitions/ContactAddressInfoResource.ts index 576ee55c..fca56bf0 100644 --- a/packages/core/src/definitions/ContactAddressInfoResource.ts +++ b/packages/core/src/definitions/ContactAddressInfoResource.ts @@ -1,22 +1,17 @@ interface ContactAddressInfoResource { - /** - */ + /** */ street?: string; - /** - */ + /** */ city?: string; - /** - */ + /** */ state?: string; - /** - */ + /** */ zip?: string; - /** - */ + /** */ country?: string; } diff --git a/packages/core/src/definitions/ContactBusinessAddressInfo.ts b/packages/core/src/definitions/ContactBusinessAddressInfo.ts index cd48a147..3348854f 100644 --- a/packages/core/src/definitions/ContactBusinessAddressInfo.ts +++ b/packages/core/src/definitions/ContactBusinessAddressInfo.ts @@ -1,7 +1,6 @@ /** * User's business address. The default is * Company (Auto-Receptionist) settings - * */ interface ContactBusinessAddressInfo { /** diff --git a/packages/core/src/definitions/ContactCenterProvider.ts b/packages/core/src/definitions/ContactCenterProvider.ts index b7820b9a..a055291a 100644 --- a/packages/core/src/definitions/ContactCenterProvider.ts +++ b/packages/core/src/definitions/ContactCenterProvider.ts @@ -1,7 +1,6 @@ /** * CCRN (Contact Center Routing Number) provider. If not specified * then the default value 'InContact/North America' is used, its ID is '1' - * */ interface ContactCenterProvider { /** diff --git a/packages/core/src/definitions/ContactInfo.ts b/packages/core/src/definitions/ContactInfo.ts index c7ae6f04..ccb4c09b 100644 --- a/packages/core/src/definitions/ContactInfo.ts +++ b/packages/core/src/definitions/ContactInfo.ts @@ -1,5 +1,5 @@ -import type ContactBusinessAddressInfo from './ContactBusinessAddressInfo'; -import type PronouncedNameInfo from './PronouncedNameInfo'; +import type ContactBusinessAddressInfo from "./ContactBusinessAddressInfo"; +import type PronouncedNameInfo from "./PronouncedNameInfo"; /** * Detailed contact information @@ -48,8 +48,7 @@ interface ContactInfo { */ mobilePhone?: string; - /** - */ + /** */ businessAddress?: ContactBusinessAddressInfo; /** @@ -58,8 +57,7 @@ interface ContactInfo { */ emailAsLoginName?: boolean; - /** - */ + /** */ pronouncedName?: PronouncedNameInfo; /** diff --git a/packages/core/src/definitions/ContactInfoCreationRequest.ts b/packages/core/src/definitions/ContactInfoCreationRequest.ts index 89ef2bfc..62c7d600 100644 --- a/packages/core/src/definitions/ContactInfoCreationRequest.ts +++ b/packages/core/src/definitions/ContactInfoCreationRequest.ts @@ -1,5 +1,5 @@ -import type ContactBusinessAddressInfo from './ContactBusinessAddressInfo'; -import type PronouncedNameInfo from './PronouncedNameInfo'; +import type ContactBusinessAddressInfo from "./ContactBusinessAddressInfo"; +import type PronouncedNameInfo from "./PronouncedNameInfo"; /** * Contact Information @@ -20,8 +20,7 @@ interface ContactInfoCreationRequest { */ company?: string; - /** - */ + /** */ jobTitle?: string; /** @@ -44,8 +43,7 @@ interface ContactInfoCreationRequest { */ mobilePhone?: string; - /** - */ + /** */ businessAddress?: ContactBusinessAddressInfo; /** @@ -55,8 +53,7 @@ interface ContactInfoCreationRequest { */ emailAsLoginName?: boolean; - /** - */ + /** */ pronouncedName?: PronouncedNameInfo; /** diff --git a/packages/core/src/definitions/ContactInfoUpdateRequest.ts b/packages/core/src/definitions/ContactInfoUpdateRequest.ts index 7948698f..7cbdf401 100644 --- a/packages/core/src/definitions/ContactInfoUpdateRequest.ts +++ b/packages/core/src/definitions/ContactInfoUpdateRequest.ts @@ -1,5 +1,5 @@ -import type ContactBusinessAddressInfo from './ContactBusinessAddressInfo'; -import type PronouncedNameInfo from './PronouncedNameInfo'; +import type ContactBusinessAddressInfo from "./ContactBusinessAddressInfo"; +import type PronouncedNameInfo from "./PronouncedNameInfo"; interface ContactInfoUpdateRequest { /** @@ -17,8 +17,7 @@ interface ContactInfoUpdateRequest { */ company?: string; - /** - */ + /** */ jobTitle?: string; /** @@ -41,8 +40,7 @@ interface ContactInfoUpdateRequest { */ mobilePhone?: string; - /** - */ + /** */ businessAddress?: ContactBusinessAddressInfo; /** @@ -52,8 +50,7 @@ interface ContactInfoUpdateRequest { */ emailAsLoginName?: boolean; - /** - */ + /** */ pronouncedName?: PronouncedNameInfo; /** diff --git a/packages/core/src/definitions/ContactList.ts b/packages/core/src/definitions/ContactList.ts index 1ac82e7c..7d486e6d 100644 --- a/packages/core/src/definitions/ContactList.ts +++ b/packages/core/src/definitions/ContactList.ts @@ -1,7 +1,7 @@ -import type PersonalContactResource from './PersonalContactResource'; -import type UserContactsNavigationInfo from './UserContactsNavigationInfo'; -import type UserContactsPagingInfo from './UserContactsPagingInfo'; -import type UserContactsGroupsInfo from './UserContactsGroupsInfo'; +import type PersonalContactResource from "./PersonalContactResource"; +import type UserContactsNavigationInfo from "./UserContactsNavigationInfo"; +import type UserContactsPagingInfo from "./UserContactsPagingInfo"; +import type UserContactsGroupsInfo from "./UserContactsGroupsInfo"; interface ContactList { /** @@ -15,16 +15,13 @@ interface ContactList { */ records?: PersonalContactResource[]; - /** - */ + /** */ navigation?: UserContactsNavigationInfo; - /** - */ + /** */ paging?: UserContactsPagingInfo; - /** - */ + /** */ groups?: UserContactsGroupsInfo; } diff --git a/packages/core/src/definitions/ContactResource.ts b/packages/core/src/definitions/ContactResource.ts index 2e5f031e..a0c39f13 100644 --- a/packages/core/src/definitions/ContactResource.ts +++ b/packages/core/src/definitions/ContactResource.ts @@ -1,9 +1,9 @@ -import type AccountResource from './AccountResource'; -import type PhoneNumberResource from './PhoneNumberResource'; -import type AccountDirectoryProfileImageResource from './AccountDirectoryProfileImageResource'; -import type BusinessSiteResource from './BusinessSiteResource'; -import type CustomFieldResource from './CustomFieldResource'; -import type ExternalIntegrationResource from './ExternalIntegrationResource'; +import type AccountResource from "./AccountResource"; +import type PhoneNumberResource from "./PhoneNumberResource"; +import type AccountDirectoryProfileImageResource from "./AccountDirectoryProfileImageResource"; +import type BusinessSiteResource from "./BusinessSiteResource"; +import type CustomFieldResource from "./CustomFieldResource"; +import type ExternalIntegrationResource from "./ExternalIntegrationResource"; interface ContactResource { /** @@ -18,34 +18,39 @@ interface ContactResource { * Example: User */ type?: - | 'User' - | 'Department' - | 'Announcement' - | 'Voicemail' - | 'SharedLinesGroup' - | 'PagingOnly' - | 'ParkLocation' - | 'IvrMenu' - | 'Limited' - | 'ApplicationExtension' - | 'Site' - | 'Bot' - | 'Room' - | 'ProxyAdmin' - | 'DelegatedLinesGroup' - | 'GroupCallPickup' - | 'External' - | 'RoomConnector' - | 'Unknown'; + | "User" + | "Department" + | "Announcement" + | "Voicemail" + | "SharedLinesGroup" + | "PagingOnly" + | "ParkLocation" + | "IvrMenu" + | "Limited" + | "ApplicationExtension" + | "Site" + | "Bot" + | "Room" + | "ProxyAdmin" + | "DelegatedLinesGroup" + | "GroupCallPickup" + | "External" + | "RoomConnector" + | "Unknown"; /** * Contact status * Example: Enabled */ - status?: 'Enabled' | 'Disabled' | 'Frozen' | 'NotActivated' | 'Unassigned' | 'Unknown'; + status?: + | "Enabled" + | "Disabled" + | "Frozen" + | "NotActivated" + | "Unassigned" + | "Unknown"; - /** - */ + /** */ account?: AccountResource; /** @@ -87,28 +92,22 @@ interface ContactResource { */ jobTitle?: string; - /** - */ + /** */ phoneNumbers?: PhoneNumberResource[]; - /** - */ + /** */ profileImage?: AccountDirectoryProfileImageResource; - /** - */ + /** */ site?: BusinessSiteResource; - /** - */ + /** */ hidden?: boolean; - /** - */ + /** */ customFields?: CustomFieldResource[]; - /** - */ + /** */ integration?: ExternalIntegrationResource; } diff --git a/packages/core/src/definitions/ContractedCountryListResponse.ts b/packages/core/src/definitions/ContractedCountryListResponse.ts index 81dbac43..18e11bbf 100644 --- a/packages/core/src/definitions/ContractedCountryListResponse.ts +++ b/packages/core/src/definitions/ContractedCountryListResponse.ts @@ -1,4 +1,4 @@ -import type ContractedCountryListResponseRecords from './ContractedCountryListResponseRecords'; +import type ContractedCountryListResponseRecords from "./ContractedCountryListResponseRecords"; interface ContractedCountryListResponse { /** diff --git a/packages/core/src/definitions/ConversationalInsightsUnit.ts b/packages/core/src/definitions/ConversationalInsightsUnit.ts index b8789cfd..c8f47e25 100644 --- a/packages/core/src/definitions/ConversationalInsightsUnit.ts +++ b/packages/core/src/definitions/ConversationalInsightsUnit.ts @@ -1,4 +1,4 @@ -import type ConversationalInsightsUnitValues from './ConversationalInsightsUnitValues'; +import type ConversationalInsightsUnitValues from "./ConversationalInsightsUnitValues"; interface ConversationalInsightsUnit { /** @@ -6,13 +6,13 @@ interface ConversationalInsightsUnit { * Example: KeyPhrases */ name?: - | 'ExtractiveSummary' - | 'AbstractiveSummaryLong' - | 'AbstractiveSummaryShort' - | 'KeyPhrases' - | 'QuestionsAsked' - | 'OverallSentiment' - | 'Topics'; + | "ExtractiveSummary" + | "AbstractiveSummaryLong" + | "AbstractiveSummaryShort" + | "KeyPhrases" + | "QuestionsAsked" + | "OverallSentiment" + | "Topics"; /** * Required diff --git a/packages/core/src/definitions/CostCenterItem.ts b/packages/core/src/definitions/CostCenterItem.ts index e97fc3d4..9cf6d833 100644 --- a/packages/core/src/definitions/CostCenterItem.ts +++ b/packages/core/src/definitions/CostCenterItem.ts @@ -1,4 +1,4 @@ -import type TaxLocation from './TaxLocation'; +import type TaxLocation from "./TaxLocation"; interface CostCenterItem { /** diff --git a/packages/core/src/definitions/CostCenterList.ts b/packages/core/src/definitions/CostCenterList.ts index 7427aa33..cce72db8 100644 --- a/packages/core/src/definitions/CostCenterList.ts +++ b/packages/core/src/definitions/CostCenterList.ts @@ -1,4 +1,4 @@ -import type CostCenterItem from './CostCenterItem'; +import type CostCenterItem from "./CostCenterItem"; interface CostCenterList { /** diff --git a/packages/core/src/definitions/CountryListDictionaryModel.ts b/packages/core/src/definitions/CountryListDictionaryModel.ts index cea246df..567da45a 100644 --- a/packages/core/src/definitions/CountryListDictionaryModel.ts +++ b/packages/core/src/definitions/CountryListDictionaryModel.ts @@ -1,6 +1,6 @@ -import type CountryInfoDictionaryModel from './CountryInfoDictionaryModel'; -import type PageNavigationModel from './PageNavigationModel'; -import type EnumeratedPagingModel from './EnumeratedPagingModel'; +import type CountryInfoDictionaryModel from "./CountryInfoDictionaryModel"; +import type PageNavigationModel from "./PageNavigationModel"; +import type EnumeratedPagingModel from "./EnumeratedPagingModel"; interface CountryListDictionaryModel { /** diff --git a/packages/core/src/definitions/CreateAnsweringRuleForwardingNumberInfo.ts b/packages/core/src/definitions/CreateAnsweringRuleForwardingNumberInfo.ts index 4bfeb2d3..6303bab2 100644 --- a/packages/core/src/definitions/CreateAnsweringRuleForwardingNumberInfo.ts +++ b/packages/core/src/definitions/CreateAnsweringRuleForwardingNumberInfo.ts @@ -24,15 +24,15 @@ interface CreateAnsweringRuleForwardingNumberInfo { * Type of forwarding number */ type?: - | 'Home' - | 'Mobile' - | 'Work' - | 'PhoneLine' - | 'Outage' - | 'Other' - | 'BusinessMobilePhone' - | 'ExternalCarrier' - | 'ExtensionApps'; + | "Home" + | "Mobile" + | "Work" + | "PhoneLine" + | "Outage" + | "Other" + | "BusinessMobilePhone" + | "ExternalCarrier" + | "ExtensionApps"; } export default CreateAnsweringRuleForwardingNumberInfo; diff --git a/packages/core/src/definitions/CreateAnsweringRuleRequest.ts b/packages/core/src/definitions/CreateAnsweringRuleRequest.ts index be8533a8..791bf730 100644 --- a/packages/core/src/definitions/CreateAnsweringRuleRequest.ts +++ b/packages/core/src/definitions/CreateAnsweringRuleRequest.ts @@ -1,13 +1,13 @@ -import type CallersInfoRequest from './CallersInfoRequest'; -import type CalledNumberInfo from './CalledNumberInfo'; -import type ScheduleInfo from './ScheduleInfo'; -import type ForwardingInfo from './ForwardingInfo'; -import type UnconditionalForwardingInfo from './UnconditionalForwardingInfo'; -import type QueueInfo from './QueueInfo'; -import type TransferredExtensionInfo from './TransferredExtensionInfo'; -import type VoicemailInfo from './VoicemailInfo'; -import type MissedCallInfo from './MissedCallInfo'; -import type GreetingInfo from './GreetingInfo'; +import type CallersInfoRequest from "./CallersInfoRequest"; +import type CalledNumberInfo from "./CalledNumberInfo"; +import type ScheduleInfo from "./ScheduleInfo"; +import type ForwardingInfo from "./ForwardingInfo"; +import type UnconditionalForwardingInfo from "./UnconditionalForwardingInfo"; +import type QueueInfo from "./QueueInfo"; +import type TransferredExtensionInfo from "./TransferredExtensionInfo"; +import type VoicemailInfo from "./VoicemailInfo"; +import type MissedCallInfo from "./MissedCallInfo"; +import type GreetingInfo from "./GreetingInfo"; interface CreateAnsweringRuleRequest { /** @@ -38,44 +38,37 @@ interface CreateAnsweringRuleRequest { */ calledNumbers?: CalledNumberInfo[]; - /** - */ + /** */ schedule?: ScheduleInfo; /** * Specifies how incoming calls are forwarded */ callHandlingAction?: - | 'ForwardCalls' - | 'UnconditionalForwarding' - | 'AgentQueue' - | 'TransferToExtension' - | 'TakeMessagesOnly' - | 'PlayAnnouncementOnly' - | 'SharedLines'; - - /** - */ + | "ForwardCalls" + | "UnconditionalForwarding" + | "AgentQueue" + | "TransferToExtension" + | "TakeMessagesOnly" + | "PlayAnnouncementOnly" + | "SharedLines"; + + /** */ forwarding?: ForwardingInfo; - /** - */ + /** */ unconditionalForwarding?: UnconditionalForwardingInfo; - /** - */ + /** */ queue?: QueueInfo; - /** - */ + /** */ transfer?: TransferredExtensionInfo; - /** - */ + /** */ voicemail?: VoicemailInfo; - /** - */ + /** */ missedCall?: MissedCallInfo; /** @@ -93,7 +86,7 @@ interface CreateAnsweringRuleRequest { * value is 'Off' * Default: Off */ - screening?: 'Off' | 'NoCallerId' | 'UnknownCallerId' | 'Always'; + screening?: "Off" | "NoCallerId" | "UnknownCallerId" | "Always"; } export default CreateAnsweringRuleRequest; diff --git a/packages/core/src/definitions/CreateBridgeRequest.ts b/packages/core/src/definitions/CreateBridgeRequest.ts index 8d420bd6..6309bd71 100644 --- a/packages/core/src/definitions/CreateBridgeRequest.ts +++ b/packages/core/src/definitions/CreateBridgeRequest.ts @@ -1,6 +1,6 @@ -import type BridgePins from './BridgePins'; -import type BridgeRequestSecurity from './BridgeRequestSecurity'; -import type BridgePreferences from './BridgePreferences'; +import type BridgePins from "./BridgePins"; +import type BridgeRequestSecurity from "./BridgeRequestSecurity"; +import type BridgePreferences from "./BridgePreferences"; interface CreateBridgeRequest { /** @@ -19,18 +19,15 @@ interface CreateBridgeRequest { * from the system. * Default: Instant */ - type?: 'Instant' | 'Scheduled' | 'PMI'; + type?: "Instant" | "Scheduled" | "PMI"; - /** - */ + /** */ pins?: BridgePins; - /** - */ + /** */ security?: BridgeRequestSecurity; - /** - */ + /** */ preferences?: BridgePreferences; } diff --git a/packages/core/src/definitions/CreateCallMonitoringGroupRequest.ts b/packages/core/src/definitions/CreateCallMonitoringGroupRequest.ts index 1f073003..1af8c7e1 100644 --- a/packages/core/src/definitions/CreateCallMonitoringGroupRequest.ts +++ b/packages/core/src/definitions/CreateCallMonitoringGroupRequest.ts @@ -1,4 +1,4 @@ -import type CreateCallMonitoringGroupRequestSite from './CreateCallMonitoringGroupRequestSite'; +import type CreateCallMonitoringGroupRequestSite from "./CreateCallMonitoringGroupRequestSite"; interface CreateCallMonitoringGroupRequest { /** @@ -7,8 +7,7 @@ interface CreateCallMonitoringGroupRequest { */ name?: string; - /** - */ + /** */ site?: CreateCallMonitoringGroupRequestSite; } diff --git a/packages/core/src/definitions/CreateCompanyGreetingRequest.ts b/packages/core/src/definitions/CreateCompanyGreetingRequest.ts index b7087f5e..8eaf0601 100644 --- a/packages/core/src/definitions/CreateCompanyGreetingRequest.ts +++ b/packages/core/src/definitions/CreateCompanyGreetingRequest.ts @@ -1,5 +1,5 @@ -import type Attachment from './Attachment'; -import type GreetingAnsweringRuleId from './GreetingAnsweringRuleId'; +import type Attachment from "./Attachment"; +import type GreetingAnsweringRuleId from "./GreetingAnsweringRuleId"; /** * Request body for operation createCompanyGreeting @@ -10,7 +10,12 @@ interface CreateCompanyGreetingRequest { * is played. * Required */ - type?: 'Company' | 'StartRecording' | 'StopRecording' | 'AutomaticRecording' | 'TemplateGreeting'; + type?: + | "Company" + | "StartRecording" + | "StopRecording" + | "AutomaticRecording" + | "TemplateGreeting"; /** * Internal identifier of a language. See Get Language @@ -24,8 +29,7 @@ interface CreateCompanyGreetingRequest { */ binary?: Attachment; - /** - */ + /** */ answeringRule?: GreetingAnsweringRuleId; } diff --git a/packages/core/src/definitions/CreateConversationRequest.ts b/packages/core/src/definitions/CreateConversationRequest.ts index c5c60c93..659bd8d4 100644 --- a/packages/core/src/definitions/CreateConversationRequest.ts +++ b/packages/core/src/definitions/CreateConversationRequest.ts @@ -1,4 +1,4 @@ -import type CreateConversationRequestMembers from './CreateConversationRequestMembers'; +import type CreateConversationRequestMembers from "./CreateConversationRequestMembers"; interface CreateConversationRequest { /** diff --git a/packages/core/src/definitions/CreateCustomUserGreetingRequest.ts b/packages/core/src/definitions/CreateCustomUserGreetingRequest.ts index 716988e8..1e60369e 100644 --- a/packages/core/src/definitions/CreateCustomUserGreetingRequest.ts +++ b/packages/core/src/definitions/CreateCustomUserGreetingRequest.ts @@ -1,5 +1,5 @@ -import type Attachment from './Attachment'; -import type GreetingAnsweringRuleId from './GreetingAnsweringRuleId'; +import type Attachment from "./Attachment"; +import type GreetingAnsweringRuleId from "./GreetingAnsweringRuleId"; /** * Request body for operation createCustomUserGreeting @@ -10,14 +10,14 @@ interface CreateCustomUserGreetingRequest { * Required */ type?: - | 'Introductory' - | 'Announcement' - | 'ConnectingMessage' - | 'ConnectingAudio' - | 'Voicemail' - | 'Unavailable' - | 'HoldMusic' - | 'TemplateGreeting'; + | "Introductory" + | "Announcement" + | "ConnectingMessage" + | "ConnectingAudio" + | "Voicemail" + | "Unavailable" + | "HoldMusic" + | "TemplateGreeting"; /** * Media file to upload @@ -25,8 +25,7 @@ interface CreateCustomUserGreetingRequest { */ binary?: Attachment; - /** - */ + /** */ answeringRule?: GreetingAnsweringRuleId; } diff --git a/packages/core/src/definitions/CreateDataExportTaskRequest.ts b/packages/core/src/definitions/CreateDataExportTaskRequest.ts index 837e79e7..9059d3b7 100644 --- a/packages/core/src/definitions/CreateDataExportTaskRequest.ts +++ b/packages/core/src/definitions/CreateDataExportTaskRequest.ts @@ -1,4 +1,4 @@ -import type DataExportTaskContactInfo from './DataExportTaskContactInfo'; +import type DataExportTaskContactInfo from "./DataExportTaskContactInfo"; interface CreateDataExportTaskRequest { /** diff --git a/packages/core/src/definitions/CreateFaxMessageRequest.ts b/packages/core/src/definitions/CreateFaxMessageRequest.ts index 8dc5e2dc..64beb02c 100644 --- a/packages/core/src/definitions/CreateFaxMessageRequest.ts +++ b/packages/core/src/definitions/CreateFaxMessageRequest.ts @@ -1,5 +1,5 @@ -import type FaxReceiver from './FaxReceiver'; -import type Attachment from './Attachment'; +import type FaxReceiver from "./FaxReceiver"; +import type Attachment from "./Attachment"; /** * Request body for operation createFaxMessage @@ -10,7 +10,7 @@ interface CreateFaxMessageRequest { * white image scanned at 200 dpi, 'Low' for black and white image scanned * at 100 dpi */ - faxResolution?: 'High' | 'Low'; + faxResolution?: "High" | "Low"; /** * Recipient's phone number(s) diff --git a/packages/core/src/definitions/CreateForwardingNumberDeviceInfo.ts b/packages/core/src/definitions/CreateForwardingNumberDeviceInfo.ts index 65152813..e17a5401 100644 --- a/packages/core/src/definitions/CreateForwardingNumberDeviceInfo.ts +++ b/packages/core/src/definitions/CreateForwardingNumberDeviceInfo.ts @@ -1,7 +1,6 @@ /** * Forwarding device information. Applicable for 'PhoneLine' type only. * Cannot be specified together with 'phoneNumber' parameter - * */ interface CreateForwardingNumberDeviceInfo { /** diff --git a/packages/core/src/definitions/CreateForwardingNumberRequest.ts b/packages/core/src/definitions/CreateForwardingNumberRequest.ts index c943a688..88004cbd 100644 --- a/packages/core/src/definitions/CreateForwardingNumberRequest.ts +++ b/packages/core/src/definitions/CreateForwardingNumberRequest.ts @@ -1,4 +1,4 @@ -import type CreateForwardingNumberDeviceInfo from './CreateForwardingNumberDeviceInfo'; +import type CreateForwardingNumberDeviceInfo from "./CreateForwardingNumberDeviceInfo"; interface CreateForwardingNumberRequest { /** @@ -20,10 +20,9 @@ interface CreateForwardingNumberRequest { /** * Forwarding/Call flip phone type. If specified, 'label' attribute value is ignored. The default value is 'Other' */ - type?: 'PhoneLine' | 'Home' | 'Mobile' | 'Work' | 'Other'; + type?: "PhoneLine" | "Home" | "Mobile" | "Work" | "Other"; - /** - */ + /** */ device?: CreateForwardingNumberDeviceInfo; } diff --git a/packages/core/src/definitions/CreateGlipFileNewRequest.ts b/packages/core/src/definitions/CreateGlipFileNewRequest.ts index ca4d179d..eba3ee7b 100644 --- a/packages/core/src/definitions/CreateGlipFileNewRequest.ts +++ b/packages/core/src/definitions/CreateGlipFileNewRequest.ts @@ -1,4 +1,4 @@ -import type Attachment from './Attachment'; +import type Attachment from "./Attachment"; /** * Request body for operation createGlipFileNew diff --git a/packages/core/src/definitions/CreateIVRPromptRequest.ts b/packages/core/src/definitions/CreateIVRPromptRequest.ts index 58012cbb..86789413 100644 --- a/packages/core/src/definitions/CreateIVRPromptRequest.ts +++ b/packages/core/src/definitions/CreateIVRPromptRequest.ts @@ -1,4 +1,4 @@ -import type Attachment from './Attachment'; +import type Attachment from "./Attachment"; /** * Request body for operation createIVRPrompt diff --git a/packages/core/src/definitions/CreateInternalTextMessageRequest.ts b/packages/core/src/definitions/CreateInternalTextMessageRequest.ts index 52d7705d..2dac6f16 100644 --- a/packages/core/src/definitions/CreateInternalTextMessageRequest.ts +++ b/packages/core/src/definitions/CreateInternalTextMessageRequest.ts @@ -1,8 +1,7 @@ -import type PagerCallerInfoRequest from './PagerCallerInfoRequest'; +import type PagerCallerInfoRequest from "./PagerCallerInfoRequest"; interface CreateInternalTextMessageRequest { - /** - */ + /** */ from?: PagerCallerInfoRequest; /** diff --git a/packages/core/src/definitions/CreateMMSMessage.ts b/packages/core/src/definitions/CreateMMSMessage.ts index 95f9de2b..4618b1db 100644 --- a/packages/core/src/definitions/CreateMMSMessage.ts +++ b/packages/core/src/definitions/CreateMMSMessage.ts @@ -1,6 +1,6 @@ -import type MessageStoreCallerInfoRequest from './MessageStoreCallerInfoRequest'; -import type SmsRequestCountryInfo from './SmsRequestCountryInfo'; -import type Attachment from './Attachment'; +import type MessageStoreCallerInfoRequest from "./MessageStoreCallerInfoRequest"; +import type SmsRequestCountryInfo from "./SmsRequestCountryInfo"; +import type Attachment from "./Attachment"; interface CreateMMSMessage { /** @@ -21,8 +21,7 @@ interface CreateMMSMessage { */ text?: string; - /** - */ + /** */ country?: SmsRequestCountryInfo; /** diff --git a/packages/core/src/definitions/CreateMessageStoreReportRequest.ts b/packages/core/src/definitions/CreateMessageStoreReportRequest.ts index 3fbc392d..4cee436b 100644 --- a/packages/core/src/definitions/CreateMessageStoreReportRequest.ts +++ b/packages/core/src/definitions/CreateMessageStoreReportRequest.ts @@ -17,7 +17,7 @@ interface CreateMessageStoreReportRequest { * Types of messages to be collected. If not specified, all messages without message type filtering will be returned. Multiple values are accepted * Example: Fax,VoiceMail */ - messageTypes?: ('Fax' | 'SMS' | 'VoiceMail' | 'Pager')[]; + messageTypes?: ("Fax" | "SMS" | "VoiceMail" | "Pager")[]; } export default CreateMessageStoreReportRequest; diff --git a/packages/core/src/definitions/CreateMultipleSwitchesRequest.ts b/packages/core/src/definitions/CreateMultipleSwitchesRequest.ts index 9e90bfba..e678105d 100644 --- a/packages/core/src/definitions/CreateMultipleSwitchesRequest.ts +++ b/packages/core/src/definitions/CreateMultipleSwitchesRequest.ts @@ -1,8 +1,7 @@ -import type CreateSwitchInfo from './CreateSwitchInfo'; +import type CreateSwitchInfo from "./CreateSwitchInfo"; interface CreateMultipleSwitchesRequest { - /** - */ + /** */ records?: CreateSwitchInfo[]; } diff --git a/packages/core/src/definitions/CreateMultipleSwitchesResponse.ts b/packages/core/src/definitions/CreateMultipleSwitchesResponse.ts index 4e1f221e..cbe534ad 100644 --- a/packages/core/src/definitions/CreateMultipleSwitchesResponse.ts +++ b/packages/core/src/definitions/CreateMultipleSwitchesResponse.ts @@ -1,11 +1,10 @@ -import type BulkTaskInfo from './BulkTaskInfo'; +import type BulkTaskInfo from "./BulkTaskInfo"; /** * Information on a task for multiple switches creation */ interface CreateMultipleSwitchesResponse { - /** - */ + /** */ task?: BulkTaskInfo[]; } diff --git a/packages/core/src/definitions/CreateMultipleWirelessPointsRequest.ts b/packages/core/src/definitions/CreateMultipleWirelessPointsRequest.ts index d90c2e07..cbe9513c 100644 --- a/packages/core/src/definitions/CreateMultipleWirelessPointsRequest.ts +++ b/packages/core/src/definitions/CreateMultipleWirelessPointsRequest.ts @@ -1,8 +1,7 @@ -import type CreateWirelessPoint from './CreateWirelessPoint'; +import type CreateWirelessPoint from "./CreateWirelessPoint"; interface CreateMultipleWirelessPointsRequest { - /** - */ + /** */ records?: CreateWirelessPoint[]; } diff --git a/packages/core/src/definitions/CreateMultipleWirelessPointsResponse.ts b/packages/core/src/definitions/CreateMultipleWirelessPointsResponse.ts index a8edc06b..cd7b87fd 100644 --- a/packages/core/src/definitions/CreateMultipleWirelessPointsResponse.ts +++ b/packages/core/src/definitions/CreateMultipleWirelessPointsResponse.ts @@ -1,8 +1,7 @@ -import type BulkTaskInfo from './BulkTaskInfo'; +import type BulkTaskInfo from "./BulkTaskInfo"; interface CreateMultipleWirelessPointsResponse { - /** - */ + /** */ task?: BulkTaskInfo; } diff --git a/packages/core/src/definitions/CreateNetworkRequest.ts b/packages/core/src/definitions/CreateNetworkRequest.ts index 7ec2d320..288e13c1 100644 --- a/packages/core/src/definitions/CreateNetworkRequest.ts +++ b/packages/core/src/definitions/CreateNetworkRequest.ts @@ -1,6 +1,6 @@ -import type AutomaticLocationUpdatesSiteInfo from './AutomaticLocationUpdatesSiteInfo'; -import type PublicIpRangeInfo from './PublicIpRangeInfo'; -import type PrivateIpRangeInfoRequest from './PrivateIpRangeInfoRequest'; +import type AutomaticLocationUpdatesSiteInfo from "./AutomaticLocationUpdatesSiteInfo"; +import type PublicIpRangeInfo from "./PublicIpRangeInfo"; +import type PrivateIpRangeInfoRequest from "./PrivateIpRangeInfoRequest"; interface CreateNetworkRequest { /** @@ -8,8 +8,7 @@ interface CreateNetworkRequest { */ name?: string; - /** - */ + /** */ site?: AutomaticLocationUpdatesSiteInfo; /** diff --git a/packages/core/src/definitions/CreateSMSMessage.ts b/packages/core/src/definitions/CreateSMSMessage.ts index 05b3ad0f..d3c8690d 100644 --- a/packages/core/src/definitions/CreateSMSMessage.ts +++ b/packages/core/src/definitions/CreateSMSMessage.ts @@ -1,5 +1,5 @@ -import type MessageStoreCallerInfoRequest from './MessageStoreCallerInfoRequest'; -import type SmsRequestCountryInfo from './SmsRequestCountryInfo'; +import type MessageStoreCallerInfoRequest from "./MessageStoreCallerInfoRequest"; +import type SmsRequestCountryInfo from "./SmsRequestCountryInfo"; interface CreateSMSMessage { /** @@ -21,8 +21,7 @@ interface CreateSMSMessage { */ text?: string; - /** - */ + /** */ country?: SmsRequestCountryInfo; } diff --git a/packages/core/src/definitions/CreateSipRegistrationRequest.ts b/packages/core/src/definitions/CreateSipRegistrationRequest.ts index 57f67e28..b969951c 100644 --- a/packages/core/src/definitions/CreateSipRegistrationRequest.ts +++ b/packages/core/src/definitions/CreateSipRegistrationRequest.ts @@ -1,9 +1,8 @@ -import type DeviceInfoRequest from './DeviceInfoRequest'; -import type SIPInfoRequest from './SIPInfoRequest'; +import type DeviceInfoRequest from "./DeviceInfoRequest"; +import type SIPInfoRequest from "./SIPInfoRequest"; interface CreateSipRegistrationRequest { - /** - */ + /** */ device?: DeviceInfoRequest; /** @@ -17,7 +16,7 @@ interface CreateSipRegistrationRequest { * then SPR-131 error code will be returned. * Default: None */ - softPhoneLineReassignment?: 'None' | 'Initialize' | 'Reassign'; + softPhoneLineReassignment?: "None" | "Initialize" | "Reassign"; } export default CreateSipRegistrationRequest; diff --git a/packages/core/src/definitions/CreateSipRegistrationResponse.ts b/packages/core/src/definitions/CreateSipRegistrationResponse.ts index d6e8a2b9..74a22ca9 100644 --- a/packages/core/src/definitions/CreateSipRegistrationResponse.ts +++ b/packages/core/src/definitions/CreateSipRegistrationResponse.ts @@ -1,6 +1,6 @@ -import type SipRegistrationDeviceInfo from './SipRegistrationDeviceInfo'; -import type SipInfoResponse from './SipInfoResponse'; -import type SipFlagsResponse from './SipFlagsResponse'; +import type SipRegistrationDeviceInfo from "./SipRegistrationDeviceInfo"; +import type SipInfoResponse from "./SipInfoResponse"; +import type SipFlagsResponse from "./SipFlagsResponse"; interface CreateSipRegistrationResponse { /** @@ -24,8 +24,7 @@ interface CreateSipRegistrationResponse { */ sipFlags?: SipFlagsResponse; - /** - */ + /** */ sipErrorCodes?: string[]; /** diff --git a/packages/core/src/definitions/CreateSiteRequest.ts b/packages/core/src/definitions/CreateSiteRequest.ts index 6e8e3544..604d2025 100644 --- a/packages/core/src/definitions/CreateSiteRequest.ts +++ b/packages/core/src/definitions/CreateSiteRequest.ts @@ -1,6 +1,6 @@ -import type ContactBusinessAddressInfo from './ContactBusinessAddressInfo'; -import type RegionalSettings from './RegionalSettings'; -import type SiteOperatorReference from './SiteOperatorReference'; +import type ContactBusinessAddressInfo from "./ContactBusinessAddressInfo"; +import type RegionalSettings from "./RegionalSettings"; +import type SiteOperatorReference from "./SiteOperatorReference"; interface CreateSiteRequest { /** @@ -25,25 +25,21 @@ interface CreateSiteRequest { */ email?: string; - /** - */ + /** */ businessAddress?: ContactBusinessAddressInfo; - /** - */ + /** */ regionalSettings?: RegionalSettings; - /** - */ + /** */ operator?: SiteOperatorReference; /** * Site access status for cross-site limitation */ - siteAccess?: 'Limited' | 'Unlimited'; + siteAccess?: "Limited" | "Unlimited"; - /** - */ + /** */ accessibleSiteIds?: string[]; /** diff --git a/packages/core/src/definitions/CreateSubscriptionRequest.ts b/packages/core/src/definitions/CreateSubscriptionRequest.ts index 052c2821..f1e73dc7 100644 --- a/packages/core/src/definitions/CreateSubscriptionRequest.ts +++ b/packages/core/src/definitions/CreateSubscriptionRequest.ts @@ -1,4 +1,4 @@ -import type NotificationDeliveryModeRequest from './NotificationDeliveryModeRequest'; +import type NotificationDeliveryModeRequest from "./NotificationDeliveryModeRequest"; interface CreateSubscriptionRequest { /** diff --git a/packages/core/src/definitions/CreateSwitchInfo.ts b/packages/core/src/definitions/CreateSwitchInfo.ts index 49505e0f..191ad06d 100644 --- a/packages/core/src/definitions/CreateSwitchInfo.ts +++ b/packages/core/src/definitions/CreateSwitchInfo.ts @@ -1,6 +1,6 @@ -import type SwitchSiteInfo from './SwitchSiteInfo'; -import type EmergencyAddressInfo from './EmergencyAddressInfo'; -import type EmergencyLocationInfo from './EmergencyLocationInfo'; +import type SwitchSiteInfo from "./SwitchSiteInfo"; +import type EmergencyAddressInfo from "./EmergencyAddressInfo"; +import type EmergencyLocationInfo from "./EmergencyLocationInfo"; interface CreateSwitchInfo { /** @@ -19,16 +19,13 @@ interface CreateSwitchInfo { */ name?: string; - /** - */ + /** */ site?: SwitchSiteInfo; - /** - */ + /** */ emergencyAddress?: EmergencyAddressInfo; - /** - */ + /** */ emergencyLocation?: EmergencyLocationInfo; } diff --git a/packages/core/src/definitions/CreateUserEmergencyLocationRequest.ts b/packages/core/src/definitions/CreateUserEmergencyLocationRequest.ts index baa0fe44..c3155850 100644 --- a/packages/core/src/definitions/CreateUserEmergencyLocationRequest.ts +++ b/packages/core/src/definitions/CreateUserEmergencyLocationRequest.ts @@ -1,4 +1,4 @@ -import type CommonEmergencyLocationAddressInfo from './CommonEmergencyLocationAddressInfo'; +import type CommonEmergencyLocationAddressInfo from "./CommonEmergencyLocationAddressInfo"; interface CreateUserEmergencyLocationRequest { /** @@ -17,8 +17,7 @@ interface CreateUserEmergencyLocationRequest { */ trusted?: boolean; - /** - */ + /** */ address?: CommonEmergencyLocationAddressInfo; } diff --git a/packages/core/src/definitions/CreateUserMeetingProfileImageRequest.ts b/packages/core/src/definitions/CreateUserMeetingProfileImageRequest.ts index f8c3523a..f90761d7 100644 --- a/packages/core/src/definitions/CreateUserMeetingProfileImageRequest.ts +++ b/packages/core/src/definitions/CreateUserMeetingProfileImageRequest.ts @@ -1,4 +1,4 @@ -import type Attachment from './Attachment'; +import type Attachment from "./Attachment"; /** * Request body for operation createUserMeetingProfileImage diff --git a/packages/core/src/definitions/CreateUserProfileImageRequest.ts b/packages/core/src/definitions/CreateUserProfileImageRequest.ts index a65870fa..b4dd94ba 100644 --- a/packages/core/src/definitions/CreateUserProfileImageRequest.ts +++ b/packages/core/src/definitions/CreateUserProfileImageRequest.ts @@ -1,4 +1,4 @@ -import type Attachment from './Attachment'; +import type Attachment from "./Attachment"; /** * Request body for operation createUserProfileImage diff --git a/packages/core/src/definitions/CreateWebhookSubscriptionRequest.ts b/packages/core/src/definitions/CreateWebhookSubscriptionRequest.ts index 625c6ef3..60318173 100644 --- a/packages/core/src/definitions/CreateWebhookSubscriptionRequest.ts +++ b/packages/core/src/definitions/CreateWebhookSubscriptionRequest.ts @@ -1,4 +1,4 @@ -import type WebhookDeliveryModeRequest from './WebhookDeliveryModeRequest'; +import type WebhookDeliveryModeRequest from "./WebhookDeliveryModeRequest"; interface CreateWebhookSubscriptionRequest { /** diff --git a/packages/core/src/definitions/CreateWirelessPoint.ts b/packages/core/src/definitions/CreateWirelessPoint.ts index 72e4ffb3..eb278bd0 100644 --- a/packages/core/src/definitions/CreateWirelessPoint.ts +++ b/packages/core/src/definitions/CreateWirelessPoint.ts @@ -1,6 +1,6 @@ -import type EmergencyAddressAutoUpdateSiteInfo from './EmergencyAddressAutoUpdateSiteInfo'; -import type EmergencyAddressInfo from './EmergencyAddressInfo'; -import type EmergencyLocationInfo from './EmergencyLocationInfo'; +import type EmergencyAddressAutoUpdateSiteInfo from "./EmergencyAddressAutoUpdateSiteInfo"; +import type EmergencyAddressInfo from "./EmergencyAddressInfo"; +import type EmergencyLocationInfo from "./EmergencyLocationInfo"; interface CreateWirelessPoint { /** @@ -15,16 +15,13 @@ interface CreateWirelessPoint { */ name?: string; - /** - */ + /** */ site?: EmergencyAddressAutoUpdateSiteInfo; - /** - */ + /** */ emergencyAddress?: EmergencyAddressInfo; - /** - */ + /** */ emergencyLocation?: EmergencyLocationInfo; } diff --git a/packages/core/src/definitions/CurrencyResource.ts b/packages/core/src/definitions/CurrencyResource.ts index a35b50a6..bcceab41 100644 --- a/packages/core/src/definitions/CurrencyResource.ts +++ b/packages/core/src/definitions/CurrencyResource.ts @@ -1,22 +1,17 @@ interface CurrencyResource { - /** - */ + /** */ id?: string; - /** - */ + /** */ code?: string; - /** - */ + /** */ name?: string; - /** - */ + /** */ symbol?: string; - /** - */ + /** */ minorSymbol?: string; } diff --git a/packages/core/src/definitions/CustomAnsweringRuleInfo.ts b/packages/core/src/definitions/CustomAnsweringRuleInfo.ts index 6cb26841..a39eb93b 100644 --- a/packages/core/src/definitions/CustomAnsweringRuleInfo.ts +++ b/packages/core/src/definitions/CustomAnsweringRuleInfo.ts @@ -1,13 +1,13 @@ -import type ScheduleInfo from './ScheduleInfo'; -import type CalledNumberInfo from './CalledNumberInfo'; -import type CallersInfo from './CallersInfo'; -import type ForwardingInfo from './ForwardingInfo'; -import type UnconditionalForwardingInfo from './UnconditionalForwardingInfo'; -import type QueueInfo from './QueueInfo'; -import type TransferredExtensionInfo from './TransferredExtensionInfo'; -import type VoicemailInfo from './VoicemailInfo'; -import type GreetingInfo from './GreetingInfo'; -import type SharedLinesInfo from './SharedLinesInfo'; +import type ScheduleInfo from "./ScheduleInfo"; +import type CalledNumberInfo from "./CalledNumberInfo"; +import type CallersInfo from "./CallersInfo"; +import type ForwardingInfo from "./ForwardingInfo"; +import type UnconditionalForwardingInfo from "./UnconditionalForwardingInfo"; +import type QueueInfo from "./QueueInfo"; +import type TransferredExtensionInfo from "./TransferredExtensionInfo"; +import type VoicemailInfo from "./VoicemailInfo"; +import type GreetingInfo from "./GreetingInfo"; +import type SharedLinesInfo from "./SharedLinesInfo"; interface CustomAnsweringRuleInfo { /** @@ -24,7 +24,7 @@ interface CustomAnsweringRuleInfo { /** * Type of an answering rule */ - type?: 'BusinessHours' | 'AfterHours' | 'Custom'; + type?: "BusinessHours" | "AfterHours" | "Custom"; /** * Name of an answering rule specified by user @@ -36,8 +36,7 @@ interface CustomAnsweringRuleInfo { */ enabled?: boolean; - /** - */ + /** */ schedule?: ScheduleInfo; /** @@ -54,32 +53,27 @@ interface CustomAnsweringRuleInfo { * Specifies how incoming calls are forwarded */ callHandlingAction?: - | 'ForwardCalls' - | 'UnconditionalForwarding' - | 'AgentQueue' - | 'TransferToExtension' - | 'TakeMessagesOnly' - | 'PlayAnnouncementOnly' - | 'SharedLines'; - - /** - */ + | "ForwardCalls" + | "UnconditionalForwarding" + | "AgentQueue" + | "TransferToExtension" + | "TakeMessagesOnly" + | "PlayAnnouncementOnly" + | "SharedLines"; + + /** */ forwarding?: ForwardingInfo; - /** - */ + /** */ unconditionalForwarding?: UnconditionalForwardingInfo; - /** - */ + /** */ queue?: QueueInfo; - /** - */ + /** */ transfer?: TransferredExtensionInfo; - /** - */ + /** */ voicemail?: VoicemailInfo; /** @@ -91,10 +85,9 @@ interface CustomAnsweringRuleInfo { * Call screening status. 'Off' - no call screening; 'NoCallerId' - if caller ID is missing, then callers are asked to say their name before connecting; 'UnknownCallerId' - if caller ID is not in contact list, then callers are asked to say their name before connecting; 'Always' - the callers are always asked to say their name before connecting. The default value is 'Off' * Default: Off */ - screening?: 'Off' | 'NoCallerId' | 'UnknownCallerId' | 'Always'; + screening?: "Off" | "NoCallerId" | "UnknownCallerId" | "Always"; - /** - */ + /** */ sharedLines?: SharedLinesInfo; } diff --git a/packages/core/src/definitions/CustomCompanyGreetingInfo.ts b/packages/core/src/definitions/CustomCompanyGreetingInfo.ts index 2f73394c..d83dc9ad 100644 --- a/packages/core/src/definitions/CustomCompanyGreetingInfo.ts +++ b/packages/core/src/definitions/CustomCompanyGreetingInfo.ts @@ -1,5 +1,5 @@ -import type CustomGreetingAnsweringRuleInfo from './CustomGreetingAnsweringRuleInfo'; -import type CustomCompanyGreetingLanguageInfo from './CustomCompanyGreetingLanguageInfo'; +import type CustomGreetingAnsweringRuleInfo from "./CustomGreetingAnsweringRuleInfo"; +import type CustomCompanyGreetingLanguageInfo from "./CustomCompanyGreetingLanguageInfo"; interface CustomCompanyGreetingInfo { /** @@ -16,12 +16,17 @@ interface CustomCompanyGreetingInfo { /** * Type of a company greeting */ - type?: 'Company' | 'StartRecording' | 'StopRecording' | 'AutomaticRecording' | 'TemplateGreeting'; + type?: + | "Company" + | "StartRecording" + | "StopRecording" + | "AutomaticRecording" + | "TemplateGreeting"; /** * Content media type */ - contentType?: 'audio/mpeg' | 'audio/wav'; + contentType?: "audio/mpeg" | "audio/wav"; /** * Link to a greeting content (audio file) @@ -29,12 +34,10 @@ interface CustomCompanyGreetingInfo { */ contentUri?: string; - /** - */ + /** */ answeringRule?: CustomGreetingAnsweringRuleInfo; - /** - */ + /** */ language?: CustomCompanyGreetingLanguageInfo; } diff --git a/packages/core/src/definitions/CustomFieldCreateRequest.ts b/packages/core/src/definitions/CustomFieldCreateRequest.ts index 823d8504..75e8785d 100644 --- a/packages/core/src/definitions/CustomFieldCreateRequest.ts +++ b/packages/core/src/definitions/CustomFieldCreateRequest.ts @@ -2,7 +2,7 @@ interface CustomFieldCreateRequest { /** * Object category to attach custom fields */ - category?: 'User'; + category?: "User"; /** * Custom field display name diff --git a/packages/core/src/definitions/CustomFieldInfo.ts b/packages/core/src/definitions/CustomFieldInfo.ts index 9d700361..9e88003d 100644 --- a/packages/core/src/definitions/CustomFieldInfo.ts +++ b/packages/core/src/definitions/CustomFieldInfo.ts @@ -9,8 +9,7 @@ interface CustomFieldInfo { */ value?: string; - /** - */ + /** */ displayName?: string; } diff --git a/packages/core/src/definitions/CustomFieldList.ts b/packages/core/src/definitions/CustomFieldList.ts index d20a2fb4..ee8c6c0e 100644 --- a/packages/core/src/definitions/CustomFieldList.ts +++ b/packages/core/src/definitions/CustomFieldList.ts @@ -1,8 +1,7 @@ -import type CustomFieldModel from './CustomFieldModel'; +import type CustomFieldModel from "./CustomFieldModel"; interface CustomFieldList { - /** - */ + /** */ records?: CustomFieldModel[]; } diff --git a/packages/core/src/definitions/CustomFieldModel.ts b/packages/core/src/definitions/CustomFieldModel.ts index 44338152..1a2403bd 100644 --- a/packages/core/src/definitions/CustomFieldModel.ts +++ b/packages/core/src/definitions/CustomFieldModel.ts @@ -7,7 +7,7 @@ interface CustomFieldModel { /** * Object category to attach custom fields */ - category?: 'User'; + category?: "User"; /** * Custom field display name diff --git a/packages/core/src/definitions/CustomUserGreetingInfo.ts b/packages/core/src/definitions/CustomUserGreetingInfo.ts index 823bcc20..7080c7e5 100644 --- a/packages/core/src/definitions/CustomUserGreetingInfo.ts +++ b/packages/core/src/definitions/CustomUserGreetingInfo.ts @@ -1,4 +1,4 @@ -import type CustomGreetingAnsweringRuleInfo from './CustomGreetingAnsweringRuleInfo'; +import type CustomGreetingAnsweringRuleInfo from "./CustomGreetingAnsweringRuleInfo"; interface CustomUserGreetingInfo { /** @@ -16,21 +16,21 @@ interface CustomUserGreetingInfo { * Type of custom user greeting */ type?: - | 'Introductory' - | 'Announcement' - | 'InterruptPrompt' - | 'ConnectingAudio' - | 'ConnectingMessage' - | 'Voicemail' - | 'Unavailable' - | 'HoldMusic' - | 'PronouncedName' - | 'TemplateGreeting'; + | "Introductory" + | "Announcement" + | "InterruptPrompt" + | "ConnectingAudio" + | "ConnectingMessage" + | "Voicemail" + | "Unavailable" + | "HoldMusic" + | "PronouncedName" + | "TemplateGreeting"; /** * Content media type */ - contentType?: 'audio/mpeg' | 'audio/wav'; + contentType?: "audio/mpeg" | "audio/wav"; /** * Link to a greeting content (audio file) @@ -38,8 +38,7 @@ interface CustomUserGreetingInfo { */ contentUri?: string; - /** - */ + /** */ answeringRule?: CustomGreetingAnsweringRuleInfo; } diff --git a/packages/core/src/definitions/DataExportTask.ts b/packages/core/src/definitions/DataExportTask.ts index 2775c12b..ad91bafb 100644 --- a/packages/core/src/definitions/DataExportTask.ts +++ b/packages/core/src/definitions/DataExportTask.ts @@ -1,6 +1,6 @@ -import type CreatorInfo from './CreatorInfo'; -import type SpecificInfo from './SpecificInfo'; -import type ExportTaskResultInfo from './ExportTaskResultInfo'; +import type CreatorInfo from "./CreatorInfo"; +import type SpecificInfo from "./SpecificInfo"; +import type ExportTaskResultInfo from "./ExportTaskResultInfo"; interface DataExportTask { /** @@ -28,14 +28,12 @@ interface DataExportTask { /** * Task status */ - status?: 'Accepted' | 'InProgress' | 'Completed' | 'Failed' | 'Expired'; + status?: "Accepted" | "InProgress" | "Completed" | "Failed" | "Expired"; - /** - */ + /** */ creator?: CreatorInfo; - /** - */ + /** */ specific?: SpecificInfo; /** diff --git a/packages/core/src/definitions/DataExportTaskList.ts b/packages/core/src/definitions/DataExportTaskList.ts index 965cb78a..9d8c536a 100644 --- a/packages/core/src/definitions/DataExportTaskList.ts +++ b/packages/core/src/definitions/DataExportTaskList.ts @@ -1,18 +1,15 @@ -import type DataExportTask from './DataExportTask'; -import type GlipDataExportNavigationInfo from './GlipDataExportNavigationInfo'; -import type GlipDataExportPagingInfo from './GlipDataExportPagingInfo'; +import type DataExportTask from "./DataExportTask"; +import type GlipDataExportNavigationInfo from "./GlipDataExportNavigationInfo"; +import type GlipDataExportPagingInfo from "./GlipDataExportPagingInfo"; interface DataExportTaskList { - /** - */ + /** */ tasks?: DataExportTask[]; - /** - */ + /** */ navigation?: GlipDataExportNavigationInfo; - /** - */ + /** */ paging?: GlipDataExportPagingInfo; } diff --git a/packages/core/src/definitions/DelegatorsListResult.ts b/packages/core/src/definitions/DelegatorsListResult.ts index 9ec2f435..0fc97b20 100644 --- a/packages/core/src/definitions/DelegatorsListResult.ts +++ b/packages/core/src/definitions/DelegatorsListResult.ts @@ -1,8 +1,7 @@ -import type Delegate from './Delegate'; +import type Delegate from "./Delegate"; interface DelegatorsListResult { - /** - */ + /** */ items?: Delegate[]; } diff --git a/packages/core/src/definitions/DeleteDeviceFromInventoryRequest.ts b/packages/core/src/definitions/DeleteDeviceFromInventoryRequest.ts index 3441f547..c759322c 100644 --- a/packages/core/src/definitions/DeleteDeviceFromInventoryRequest.ts +++ b/packages/core/src/definitions/DeleteDeviceFromInventoryRequest.ts @@ -1,4 +1,4 @@ -import type DeleteDeviceFromInventoryRequestRecords from './DeleteDeviceFromInventoryRequestRecords'; +import type DeleteDeviceFromInventoryRequestRecords from "./DeleteDeviceFromInventoryRequestRecords"; interface DeleteDeviceFromInventoryRequest { /** diff --git a/packages/core/src/definitions/DeleteDeviceFromInventoryResponse.ts b/packages/core/src/definitions/DeleteDeviceFromInventoryResponse.ts index 781cc807..9511fd72 100644 --- a/packages/core/src/definitions/DeleteDeviceFromInventoryResponse.ts +++ b/packages/core/src/definitions/DeleteDeviceFromInventoryResponse.ts @@ -1,4 +1,4 @@ -import type DeleteDeviceFromInventoryResponseRecords from './DeleteDeviceFromInventoryResponseRecords'; +import type DeleteDeviceFromInventoryResponseRecords from "./DeleteDeviceFromInventoryResponseRecords"; interface DeleteDeviceFromInventoryResponse { /** diff --git a/packages/core/src/definitions/DeleteDeviceFromInventoryResponseRecords.ts b/packages/core/src/definitions/DeleteDeviceFromInventoryResponseRecords.ts index 6b92b28a..b6692795 100644 --- a/packages/core/src/definitions/DeleteDeviceFromInventoryResponseRecords.ts +++ b/packages/core/src/definitions/DeleteDeviceFromInventoryResponseRecords.ts @@ -1,4 +1,4 @@ -import type ApiError from './ApiError'; +import type ApiError from "./ApiError"; interface DeleteDeviceFromInventoryResponseRecords { /** diff --git a/packages/core/src/definitions/DeleteExtensionParameters.ts b/packages/core/src/definitions/DeleteExtensionParameters.ts index ee7fb265..9ce82895 100644 --- a/packages/core/src/definitions/DeleteExtensionParameters.ts +++ b/packages/core/src/definitions/DeleteExtensionParameters.ts @@ -2,8 +2,7 @@ * Query parameters for operation deleteExtension */ interface DeleteExtensionParameters { - /** - */ + /** */ savePhoneLines?: boolean; /** diff --git a/packages/core/src/definitions/DeleteForwardingNumbersRequest.ts b/packages/core/src/definitions/DeleteForwardingNumbersRequest.ts index 7574fd48..a96d5bc3 100644 --- a/packages/core/src/definitions/DeleteForwardingNumbersRequest.ts +++ b/packages/core/src/definitions/DeleteForwardingNumbersRequest.ts @@ -1,4 +1,4 @@ -import type ForwardingNumberId from './ForwardingNumberId'; +import type ForwardingNumberId from "./ForwardingNumberId"; interface DeleteForwardingNumbersRequest { /** diff --git a/packages/core/src/definitions/DeleteMessageByFilterParameters.ts b/packages/core/src/definitions/DeleteMessageByFilterParameters.ts index e38711a3..9cb31b32 100644 --- a/packages/core/src/definitions/DeleteMessageByFilterParameters.ts +++ b/packages/core/src/definitions/DeleteMessageByFilterParameters.ts @@ -2,8 +2,7 @@ * Query parameters for operation deleteMessageByFilter */ interface DeleteMessageByFilterParameters { - /** - */ + /** */ conversationId?: string[]; /** @@ -17,7 +16,7 @@ interface DeleteMessageByFilterParameters { * Type of messages to be deleted * Default: All */ - type?: 'Fax' | 'SMS' | 'VoiceMail' | 'Pager' | 'Text' | 'All'; + type?: "Fax" | "SMS" | "VoiceMail" | "Pager" | "Text" | "All"; } export default DeleteMessageByFilterParameters; diff --git a/packages/core/src/definitions/DeletePhoneNumbersRequest.ts b/packages/core/src/definitions/DeletePhoneNumbersRequest.ts index b1e8bf31..7d204a9f 100644 --- a/packages/core/src/definitions/DeletePhoneNumbersRequest.ts +++ b/packages/core/src/definitions/DeletePhoneNumbersRequest.ts @@ -1,4 +1,4 @@ -import type DeletePhoneNumbersRequestItem from './DeletePhoneNumbersRequestItem'; +import type DeletePhoneNumbersRequestItem from "./DeletePhoneNumbersRequestItem"; interface DeletePhoneNumbersRequest { /** diff --git a/packages/core/src/definitions/DeletePhoneNumbersResponse.ts b/packages/core/src/definitions/DeletePhoneNumbersResponse.ts index 48cdacc7..22e63897 100644 --- a/packages/core/src/definitions/DeletePhoneNumbersResponse.ts +++ b/packages/core/src/definitions/DeletePhoneNumbersResponse.ts @@ -1,4 +1,4 @@ -import type DeletePhoneNumbersResponseItem from './DeletePhoneNumbersResponseItem'; +import type DeletePhoneNumbersResponseItem from "./DeletePhoneNumbersResponseItem"; interface DeletePhoneNumbersResponse { /** diff --git a/packages/core/src/definitions/DeletePhoneNumbersResponseItem.ts b/packages/core/src/definitions/DeletePhoneNumbersResponseItem.ts index ac3030be..ef590763 100644 --- a/packages/core/src/definitions/DeletePhoneNumbersResponseItem.ts +++ b/packages/core/src/definitions/DeletePhoneNumbersResponseItem.ts @@ -1,4 +1,4 @@ -import type ApiError from './ApiError'; +import type ApiError from "./ApiError"; interface DeletePhoneNumbersResponseItem { /** diff --git a/packages/core/src/definitions/DepartmentBulkAssignResource.ts b/packages/core/src/definitions/DepartmentBulkAssignResource.ts index fcaccf13..9a4e9cb7 100644 --- a/packages/core/src/definitions/DepartmentBulkAssignResource.ts +++ b/packages/core/src/definitions/DepartmentBulkAssignResource.ts @@ -1,13 +1,11 @@ -import type BulkAssignItem from './BulkAssignItem'; +import type BulkAssignItem from "./BulkAssignItem"; /** * Please note that legacy 'Department' extension type corresponds to * 'Call Queue' extensions in modern RingCentral product terminology - * */ interface DepartmentBulkAssignResource { - /** - */ + /** */ items?: BulkAssignItem[]; } diff --git a/packages/core/src/definitions/DepartmentInfo.ts b/packages/core/src/definitions/DepartmentInfo.ts index a218ca12..3be8993c 100644 --- a/packages/core/src/definitions/DepartmentInfo.ts +++ b/packages/core/src/definitions/DepartmentInfo.ts @@ -1,7 +1,6 @@ /** * Please note that the `Department` extension type corresponds to * 'Call Queue' extensions in modern RingCentral product terminology - * */ interface DepartmentInfo { /** diff --git a/packages/core/src/definitions/DepartmentMemberList.ts b/packages/core/src/definitions/DepartmentMemberList.ts index bf8341a4..195e637a 100644 --- a/packages/core/src/definitions/DepartmentMemberList.ts +++ b/packages/core/src/definitions/DepartmentMemberList.ts @@ -1,11 +1,10 @@ -import type ExtensionInfo from './ExtensionInfo'; -import type PageNavigationModel from './PageNavigationModel'; -import type EnumeratedPagingModel from './EnumeratedPagingModel'; +import type ExtensionInfo from "./ExtensionInfo"; +import type PageNavigationModel from "./PageNavigationModel"; +import type EnumeratedPagingModel from "./EnumeratedPagingModel"; /** * Please note that legacy 'Department' extension type corresponds to * 'Call Queue' extensions in modern RingCentral product terminology - * */ interface DepartmentMemberList { /** @@ -19,12 +18,10 @@ interface DepartmentMemberList { */ records?: ExtensionInfo[]; - /** - */ + /** */ navigation?: PageNavigationModel; - /** - */ + /** */ paging?: EnumeratedPagingModel; } diff --git a/packages/core/src/definitions/DetailedCallInfo.ts b/packages/core/src/definitions/DetailedCallInfo.ts index 69dc2412..7e48c4e5 100644 --- a/packages/core/src/definitions/DetailedCallInfo.ts +++ b/packages/core/src/definitions/DetailedCallInfo.ts @@ -1,14 +1,11 @@ interface DetailedCallInfo { - /** - */ + /** */ callId?: string; - /** - */ + /** */ toTag?: string; - /** - */ + /** */ fromTag?: string; /** @@ -21,8 +18,7 @@ interface DetailedCallInfo { */ localUri?: string; - /** - */ + /** */ rcSessionId?: string; } diff --git a/packages/core/src/definitions/DetailedExtensionPresenceEvent.ts b/packages/core/src/definitions/DetailedExtensionPresenceEvent.ts index 27cb3564..8b53f7d0 100644 --- a/packages/core/src/definitions/DetailedExtensionPresenceEvent.ts +++ b/packages/core/src/definitions/DetailedExtensionPresenceEvent.ts @@ -1,4 +1,4 @@ -import type DetailedExtensionPresenceEventBody from './DetailedExtensionPresenceEventBody'; +import type DetailedExtensionPresenceEventBody from "./DetailedExtensionPresenceEventBody"; interface DetailedExtensionPresenceEvent { /** @@ -22,8 +22,7 @@ interface DetailedExtensionPresenceEvent { */ subscriptionId?: string; - /** - */ + /** */ body?: DetailedExtensionPresenceEventBody; } diff --git a/packages/core/src/definitions/DetailedExtensionPresenceEventBody.ts b/packages/core/src/definitions/DetailedExtensionPresenceEventBody.ts index 05c4ead2..e0aa86b4 100644 --- a/packages/core/src/definitions/DetailedExtensionPresenceEventBody.ts +++ b/packages/core/src/definitions/DetailedExtensionPresenceEventBody.ts @@ -1,4 +1,4 @@ -import type ActiveCallInfoWithoutSIP from './ActiveCallInfoWithoutSIP'; +import type ActiveCallInfoWithoutSIP from "./ActiveCallInfoWithoutSIP"; /** * Notification payload body @@ -13,7 +13,12 @@ interface DetailedExtensionPresenceEventBody { /** * Telephony presence status. Returned if telephony status is changed. */ - telephonyStatus?: 'NoCall' | 'CallConnected' | 'Ringing' | 'OnHold' | 'ParkedCall'; + telephonyStatus?: + | "NoCall" + | "CallConnected" + | "Ringing" + | "OnHold" + | "ParkedCall"; /** * List of the latest 7 active calls on extension @@ -29,22 +34,26 @@ interface DetailedExtensionPresenceEventBody { /** * Aggregated presence status, calculated from a number of sources */ - presenceStatus?: 'Offline' | 'Busy' | 'Available'; + presenceStatus?: "Offline" | "Busy" | "Available"; /** * User-defined presence status (as previously published by the user) */ - userStatus?: 'Offline' | 'Busy' | 'Available'; + userStatus?: "Offline" | "Busy" | "Available"; /** * Meetings presence status */ - meetingStatus?: 'Connected' | 'Disconnected'; + meetingStatus?: "Connected" | "Disconnected"; /** * Extended DnD (Do not Disturb) status */ - dndStatus?: 'TakeAllCalls' | 'DoNotAcceptAnyCalls' | 'DoNotAcceptDepartmentCalls' | 'TakeDepartmentCallsOnly'; + dndStatus?: + | "TakeAllCalls" + | "DoNotAcceptAnyCalls" + | "DoNotAcceptDepartmentCalls" + | "TakeDepartmentCallsOnly"; /** * If `true` enables other extensions to see the extension presence status diff --git a/packages/core/src/definitions/DetailedExtensionPresenceWithSIPEvent.ts b/packages/core/src/definitions/DetailedExtensionPresenceWithSIPEvent.ts index 1282716b..648be625 100644 --- a/packages/core/src/definitions/DetailedExtensionPresenceWithSIPEvent.ts +++ b/packages/core/src/definitions/DetailedExtensionPresenceWithSIPEvent.ts @@ -1,4 +1,4 @@ -import type DetailedExtensionPresenceWithSIPEventBody from './DetailedExtensionPresenceWithSIPEventBody'; +import type DetailedExtensionPresenceWithSIPEventBody from "./DetailedExtensionPresenceWithSIPEventBody"; interface DetailedExtensionPresenceWithSIPEvent { /** @@ -22,8 +22,7 @@ interface DetailedExtensionPresenceWithSIPEvent { */ subscriptionId?: string; - /** - */ + /** */ body?: DetailedExtensionPresenceWithSIPEventBody; } diff --git a/packages/core/src/definitions/DetailedExtensionPresenceWithSIPEventBody.ts b/packages/core/src/definitions/DetailedExtensionPresenceWithSIPEventBody.ts index 9a7f7f66..dcb6324a 100644 --- a/packages/core/src/definitions/DetailedExtensionPresenceWithSIPEventBody.ts +++ b/packages/core/src/definitions/DetailedExtensionPresenceWithSIPEventBody.ts @@ -1,4 +1,4 @@ -import type ActiveCallInfo from './ActiveCallInfo'; +import type ActiveCallInfo from "./ActiveCallInfo"; /** * Notification payload body @@ -13,7 +13,12 @@ interface DetailedExtensionPresenceWithSIPEventBody { /** * Telephony presence status. Returned if telephony status is changed. */ - telephonyStatus?: 'NoCall' | 'CallConnected' | 'Ringing' | 'OnHold' | 'ParkedCall'; + telephonyStatus?: + | "NoCall" + | "CallConnected" + | "Ringing" + | "OnHold" + | "ParkedCall"; /** * List of the latest 7 active calls on extension @@ -29,22 +34,26 @@ interface DetailedExtensionPresenceWithSIPEventBody { /** * Aggregated presence status, calculated from a number of sources */ - presenceStatus?: 'Offline' | 'Busy' | 'Available'; + presenceStatus?: "Offline" | "Busy" | "Available"; /** * User-defined presence status (as previously published by the user) */ - userStatus?: 'Offline' | 'Busy' | 'Available'; + userStatus?: "Offline" | "Busy" | "Available"; /** * Meetings presence status */ - meetingStatus?: 'Connected' | 'Disconnected'; + meetingStatus?: "Connected" | "Disconnected"; /** * Extended DnD (Do not Disturb) status */ - dndStatus?: 'TakeAllCalls' | 'DoNotAcceptAnyCalls' | 'DoNotAcceptDepartmentCalls' | 'TakeDepartmentCallsOnly'; + dndStatus?: + | "TakeAllCalls" + | "DoNotAcceptAnyCalls" + | "DoNotAcceptDepartmentCalls" + | "TakeDepartmentCallsOnly"; /** * If `true` enables other extensions to see the extension presence status diff --git a/packages/core/src/definitions/DeviceAddonInfo.ts b/packages/core/src/definitions/DeviceAddonInfo.ts index 60687a47..8461b5f6 100644 --- a/packages/core/src/definitions/DeviceAddonInfo.ts +++ b/packages/core/src/definitions/DeviceAddonInfo.ts @@ -1,10 +1,8 @@ interface DeviceAddonInfo { - /** - */ + /** */ id?: string; - /** - */ + /** */ name?: string; /** diff --git a/packages/core/src/definitions/DeviceCodeTokenRequest.ts b/packages/core/src/definitions/DeviceCodeTokenRequest.ts index df9ba10b..b95f40e5 100644 --- a/packages/core/src/definitions/DeviceCodeTokenRequest.ts +++ b/packages/core/src/definitions/DeviceCodeTokenRequest.ts @@ -1,14 +1,13 @@ /** * Token endpoint request parameters used in the "Device Authorization" flow * with the `urn:ietf:params:oauth:grant-type:device_code` grant type - * */ interface DeviceCodeTokenRequest { /** * Grant type * Required */ - grant_type?: 'urn:ietf:params:oauth:grant-type:device_code'; + grant_type?: "urn:ietf:params:oauth:grant-type:device_code"; /** * For `urn:ietf:params:oauth:grant-type:device_code` grant type only. diff --git a/packages/core/src/definitions/DeviceDefinition.ts b/packages/core/src/definitions/DeviceDefinition.ts index d9dbf7a2..e4c48fe9 100644 --- a/packages/core/src/definitions/DeviceDefinition.ts +++ b/packages/core/src/definitions/DeviceDefinition.ts @@ -1,12 +1,12 @@ -import type DeviceDefinitionEmergency from './DeviceDefinitionEmergency'; -import type DeviceDefinitionPhoneInfo from './DeviceDefinitionPhoneInfo'; +import type DeviceDefinitionEmergency from "./DeviceDefinitionEmergency"; +import type DeviceDefinitionPhoneInfo from "./DeviceDefinitionPhoneInfo"; interface DeviceDefinition { /** * Device type. Only "OtherPhone" and "WebRTC" device types are supported at the moment * Required */ - type?: 'OtherPhone' | 'WebRTC'; + type?: "OtherPhone" | "WebRTC"; /** * Only "address" is supported at the moment diff --git a/packages/core/src/definitions/DeviceDefinitionEmergency.ts b/packages/core/src/definitions/DeviceDefinitionEmergency.ts index 8b8b89fc..873ee0a9 100644 --- a/packages/core/src/definitions/DeviceDefinitionEmergency.ts +++ b/packages/core/src/definitions/DeviceDefinitionEmergency.ts @@ -1,13 +1,11 @@ -import type PostalAddress from './PostalAddress'; -import type DeviceDefinitionEmergencyLocation from './DeviceDefinitionEmergencyLocation'; +import type PostalAddress from "./PostalAddress"; +import type DeviceDefinitionEmergencyLocation from "./DeviceDefinitionEmergencyLocation"; interface DeviceDefinitionEmergency { - /** - */ + /** */ address?: PostalAddress; - /** - */ + /** */ location?: DeviceDefinitionEmergencyLocation; } diff --git a/packages/core/src/definitions/DeviceDefinitionPhoneInfo.ts b/packages/core/src/definitions/DeviceDefinitionPhoneInfo.ts index a4b36be1..f3e33751 100644 --- a/packages/core/src/definitions/DeviceDefinitionPhoneInfo.ts +++ b/packages/core/src/definitions/DeviceDefinitionPhoneInfo.ts @@ -3,7 +3,7 @@ interface DeviceDefinitionPhoneInfo { * Indicates if a number is toll or toll-free * Example: Toll */ - tollType?: 'Toll' | 'TollFree'; + tollType?: "Toll" | "TollFree"; /** * Preferred area code to use if numbers available diff --git a/packages/core/src/definitions/DeviceEmergencyInfo.ts b/packages/core/src/definitions/DeviceEmergencyInfo.ts index c95640d3..b57e83db 100644 --- a/packages/core/src/definitions/DeviceEmergencyInfo.ts +++ b/packages/core/src/definitions/DeviceEmergencyInfo.ts @@ -1,16 +1,14 @@ -import type CommonEmergencyLocationAddressInfoDefault from './CommonEmergencyLocationAddressInfoDefault'; -import type DeviceEmergencyLocationInfo from './DeviceEmergencyLocationInfo'; +import type CommonEmergencyLocationAddressInfoDefault from "./CommonEmergencyLocationAddressInfoDefault"; +import type DeviceEmergencyLocationInfo from "./DeviceEmergencyLocationInfo"; /** * Device emergency settings */ interface DeviceEmergencyInfo { - /** - */ + /** */ address?: CommonEmergencyLocationAddressInfoDefault; - /** - */ + /** */ location?: DeviceEmergencyLocationInfo; /** @@ -21,26 +19,32 @@ interface DeviceEmergencyInfo { /** * Emergency address status */ - addressStatus?: 'Valid' | 'Invalid' | 'Provisioning'; + addressStatus?: "Valid" | "Invalid" | "Provisioning"; /** * Visibility of an emergency response location. If `Private` * is set, then location is visible only for the restricted number of users, * specified in `owners` array */ - visibility?: 'Private' | 'Public'; + visibility?: "Private" | "Public"; /** * Resulting status of the emergency address synchronization. Returned * if `syncEmergencyAddress` parameter is set to `true` */ - syncStatus?: 'Verified' | 'Updated' | 'Deleted' | 'NotRequired' | 'Unsupported' | 'Failed'; + syncStatus?: + | "Verified" + | "Updated" + | "Deleted" + | "NotRequired" + | "Unsupported" + | "Failed"; /** * Ability to register new emergency address for a phone line * using devices sharing this line or only main device (line owner) */ - addressEditableStatus?: 'MainDevice' | 'AnyDevice'; + addressEditableStatus?: "MainDevice" | "AnyDevice"; } export default DeviceEmergencyInfo; diff --git a/packages/core/src/definitions/DeviceEmergencyServiceAddressResourceAu.ts b/packages/core/src/definitions/DeviceEmergencyServiceAddressResourceAu.ts index ad9f91db..89fcf43a 100644 --- a/packages/core/src/definitions/DeviceEmergencyServiceAddressResourceAu.ts +++ b/packages/core/src/definitions/DeviceEmergencyServiceAddressResourceAu.ts @@ -2,24 +2,19 @@ * Address for emergency cases. The same emergency address is assigned to all the numbers of one device */ interface DeviceEmergencyServiceAddressResourceAu { - /** - */ + /** */ street?: string; - /** - */ + /** */ street2?: string; - /** - */ + /** */ city?: string; - /** - */ + /** */ zip?: string; - /** - */ + /** */ customerName?: string; /** diff --git a/packages/core/src/definitions/DeviceEmergencyServiceAddressResourceDefault.ts b/packages/core/src/definitions/DeviceEmergencyServiceAddressResourceDefault.ts index a77db175..92190a59 100644 --- a/packages/core/src/definitions/DeviceEmergencyServiceAddressResourceDefault.ts +++ b/packages/core/src/definitions/DeviceEmergencyServiceAddressResourceDefault.ts @@ -2,24 +2,19 @@ * Address for emergency cases. The same emergency address is assigned to all the numbers of one device */ interface DeviceEmergencyServiceAddressResourceDefault { - /** - */ + /** */ street?: string; - /** - */ + /** */ street2?: string; - /** - */ + /** */ city?: string; - /** - */ + /** */ zip?: string; - /** - */ + /** */ customerName?: string; /** diff --git a/packages/core/src/definitions/DeviceEmergencyServiceAddressResourceFr.ts b/packages/core/src/definitions/DeviceEmergencyServiceAddressResourceFr.ts index 205ff9d2..43c2461d 100644 --- a/packages/core/src/definitions/DeviceEmergencyServiceAddressResourceFr.ts +++ b/packages/core/src/definitions/DeviceEmergencyServiceAddressResourceFr.ts @@ -2,24 +2,19 @@ * Address for emergency cases. The same emergency address is assigned to all the numbers of one device */ interface DeviceEmergencyServiceAddressResourceFr { - /** - */ + /** */ street?: string; - /** - */ + /** */ street2?: string; - /** - */ + /** */ city?: string; - /** - */ + /** */ zip?: string; - /** - */ + /** */ customerName?: string; /** diff --git a/packages/core/src/definitions/DeviceModelInfo.ts b/packages/core/src/definitions/DeviceModelInfo.ts index 8b9ba344..42f2ecaf 100644 --- a/packages/core/src/definitions/DeviceModelInfo.ts +++ b/packages/core/src/definitions/DeviceModelInfo.ts @@ -1,4 +1,4 @@ -import type DeviceAddonInfo from './DeviceAddonInfo'; +import type DeviceAddonInfo from "./DeviceAddonInfo"; /** * HardPhone model information @@ -23,7 +23,7 @@ interface DeviceModelInfo { /** * Device feature or multiple features supported */ - features?: ('BLA' | 'Intercom' | 'Paging' | 'HELD')[]; + features?: ("BLA" | "Intercom" | "Paging" | "HELD")[]; } export default DeviceModelInfo; diff --git a/packages/core/src/definitions/DevicePhoneLinesInfo.ts b/packages/core/src/definitions/DevicePhoneLinesInfo.ts index 80de5412..ae29bfec 100644 --- a/packages/core/src/definitions/DevicePhoneLinesInfo.ts +++ b/packages/core/src/definitions/DevicePhoneLinesInfo.ts @@ -1,5 +1,5 @@ -import type DevicePhoneLinesEmergencyAddressInfo from './DevicePhoneLinesEmergencyAddressInfo'; -import type DevicePhoneNumberInfo from './DevicePhoneNumberInfo'; +import type DevicePhoneLinesEmergencyAddressInfo from "./DevicePhoneLinesEmergencyAddressInfo"; +import type DevicePhoneNumberInfo from "./DevicePhoneNumberInfo"; interface DevicePhoneLinesInfo { /** @@ -10,14 +10,12 @@ interface DevicePhoneLinesInfo { /** * Type of phone line */ - lineType?: 'Standalone' | 'StandaloneFree' | 'BlaPrimary' | 'BlaSecondary'; + lineType?: "Standalone" | "StandaloneFree" | "BlaPrimary" | "BlaSecondary"; - /** - */ + /** */ emergencyAddress?: DevicePhoneLinesEmergencyAddressInfo; - /** - */ + /** */ phoneInfo?: DevicePhoneNumberInfo; } diff --git a/packages/core/src/definitions/DevicePhoneNumberInfo.ts b/packages/core/src/definitions/DevicePhoneNumberInfo.ts index 4c786dd9..218391f9 100644 --- a/packages/core/src/definitions/DevicePhoneNumberInfo.ts +++ b/packages/core/src/definitions/DevicePhoneNumberInfo.ts @@ -1,4 +1,4 @@ -import type DevicePhoneNumberCountryInfo from './DevicePhoneNumberCountryInfo'; +import type DevicePhoneNumberCountryInfo from "./DevicePhoneNumberCountryInfo"; /** * Phone number information @@ -10,36 +10,34 @@ interface DevicePhoneNumberInfo { */ id?: number; - /** - */ + /** */ country?: DevicePhoneNumberCountryInfo; /** * Payment type. 'External' is returned for forwarded numbers which are not terminated in the RingCentral phone system = ['External', 'TollFree', 'Local'] */ - paymentType?: 'External' | 'TollFree' | 'Local'; + paymentType?: "External" | "TollFree" | "Local"; /** * Phone number */ phoneNumber?: string; - /** - */ + /** */ usageType?: - | 'CompanyNumber' - | 'MainCompanyNumber' - | 'AdditionalCompanyNumber' - | 'DirectNumber' - | 'CompanyFaxNumber' - | 'ForwardedNumber' - | 'ForwardedCompanyNumber' - | 'ContactCenterNumber'; + | "CompanyNumber" + | "MainCompanyNumber" + | "AdditionalCompanyNumber" + | "DirectNumber" + | "CompanyFaxNumber" + | "ForwardedNumber" + | "ForwardedCompanyNumber" + | "ContactCenterNumber"; /** * Type of phone number */ - type?: 'VoiceFax' | 'FaxOnly' | 'VoiceOnly'; + type?: "VoiceFax" | "FaxOnly" | "VoiceOnly"; } export default DevicePhoneNumberInfo; diff --git a/packages/core/src/definitions/DeviceResource.ts b/packages/core/src/definitions/DeviceResource.ts index 6c83bafd..7bb35de2 100644 --- a/packages/core/src/definitions/DeviceResource.ts +++ b/packages/core/src/definitions/DeviceResource.ts @@ -1,11 +1,11 @@ -import type ModelInfo from './ModelInfo'; -import type ExtensionInfoIntId from './ExtensionInfoIntId'; -import type DeviceEmergencyInfo from './DeviceEmergencyInfo'; -import type EmergencyServiceAddressResource from './EmergencyServiceAddressResource'; -import type PhoneLinesInfo from './PhoneLinesInfo'; -import type ShippingInfo from './ShippingInfo'; -import type DeviceSiteInfo from './DeviceSiteInfo'; -import type BillingStatementInfo from './BillingStatementInfo'; +import type ModelInfo from "./ModelInfo"; +import type ExtensionInfoIntId from "./ExtensionInfoIntId"; +import type DeviceEmergencyInfo from "./DeviceEmergencyInfo"; +import type EmergencyServiceAddressResource from "./EmergencyServiceAddressResource"; +import type PhoneLinesInfo from "./PhoneLinesInfo"; +import type ShippingInfo from "./ShippingInfo"; +import type DeviceSiteInfo from "./DeviceSiteInfo"; +import type BillingStatementInfo from "./BillingStatementInfo"; interface DeviceResource { /** @@ -31,7 +31,15 @@ interface DeviceResource { * Device type * Default: HardPhone */ - type?: 'BLA' | 'SoftPhone' | 'OtherPhone' | 'HardPhone' | 'WebPhone' | 'Paging' | 'Room' | 'WebRTC'; + type?: + | "BLA" + | "SoftPhone" + | "OtherPhone" + | "HardPhone" + | "WebPhone" + | "Paging" + | "Room" + | "WebRTC"; /** * Device name. Mandatory if ordering SoftPhone or OtherPhone. @@ -50,27 +58,23 @@ interface DeviceResource { /** * Device status */ - status?: 'Offline' | 'Online'; + status?: "Offline" | "Online"; /** * Computer name (for devices of `SoftPhone` type only) */ computerName?: string; - /** - */ + /** */ model?: ModelInfo; - /** - */ + /** */ extension?: ExtensionInfoIntId; - /** - */ + /** */ emergency?: DeviceEmergencyInfo; - /** - */ + /** */ emergencyServiceAddress?: EmergencyServiceAddressResource; /** @@ -78,8 +82,7 @@ interface DeviceResource { */ phoneLines?: PhoneLinesInfo[]; - /** - */ + /** */ shipping?: ShippingInfo; /** @@ -110,8 +113,7 @@ interface DeviceResource { */ inCompanyNet?: boolean; - /** - */ + /** */ site?: DeviceSiteInfo; /** @@ -128,10 +130,9 @@ interface DeviceResource { * - `Guest` - device with a linked phone line; * - `None` - device without a phone line or with a specific line (free, BLA, etc.) */ - linePooling?: 'Host' | 'Guest' | 'None'; + linePooling?: "Host" | "Guest" | "None"; - /** - */ + /** */ billingStatement?: BillingStatementInfo; /** diff --git a/packages/core/src/definitions/DeviceUpdatePhoneLinesInfo.ts b/packages/core/src/definitions/DeviceUpdatePhoneLinesInfo.ts index 22468d07..89de3419 100644 --- a/packages/core/src/definitions/DeviceUpdatePhoneLinesInfo.ts +++ b/packages/core/src/definitions/DeviceUpdatePhoneLinesInfo.ts @@ -1,4 +1,4 @@ -import type UpdateDevicePhoneInfo from './UpdateDevicePhoneInfo'; +import type UpdateDevicePhoneInfo from "./UpdateDevicePhoneInfo"; /** * Information on phone lines added to a device diff --git a/packages/core/src/definitions/DialInNumberResource.ts b/packages/core/src/definitions/DialInNumberResource.ts index 3412e876..472228ca 100644 --- a/packages/core/src/definitions/DialInNumberResource.ts +++ b/packages/core/src/definitions/DialInNumberResource.ts @@ -1,20 +1,16 @@ -import type MeetingsCountryResource from './MeetingsCountryResource'; +import type MeetingsCountryResource from "./MeetingsCountryResource"; interface DialInNumberResource { - /** - */ + /** */ phoneNumber?: string; - /** - */ + /** */ formattedNumber?: string; - /** - */ + /** */ location?: string; - /** - */ + /** */ country?: MeetingsCountryResource; } diff --git a/packages/core/src/definitions/DiarizeApiResponse.ts b/packages/core/src/definitions/DiarizeApiResponse.ts index 5fccdbab..a1899dda 100644 --- a/packages/core/src/definitions/DiarizeApiResponse.ts +++ b/packages/core/src/definitions/DiarizeApiResponse.ts @@ -1,12 +1,10 @@ -import type DiarizeApiResponseResponse from './DiarizeApiResponseResponse'; +import type DiarizeApiResponseResponse from "./DiarizeApiResponseResponse"; interface DiarizeApiResponse { - /** - */ - status?: 'Success' | 'Fail'; + /** */ + status?: "Success" | "Fail"; - /** - */ + /** */ response?: DiarizeApiResponseResponse; } diff --git a/packages/core/src/definitions/DiarizeApiResponseResponse.ts b/packages/core/src/definitions/DiarizeApiResponseResponse.ts index b7834e1b..7661c43e 100644 --- a/packages/core/src/definitions/DiarizeApiResponseResponse.ts +++ b/packages/core/src/definitions/DiarizeApiResponseResponse.ts @@ -1,4 +1,4 @@ -import type DiarizeSegment from './DiarizeSegment'; +import type DiarizeSegment from "./DiarizeSegment"; interface DiarizeApiResponseResponse { /** @@ -7,8 +7,7 @@ interface DiarizeApiResponseResponse { */ speakerCount?: number; - /** - */ + /** */ utterances?: DiarizeSegment[]; } diff --git a/packages/core/src/definitions/DiarizeInput.ts b/packages/core/src/definitions/DiarizeInput.ts index f9cbd928..9389a80e 100644 --- a/packages/core/src/definitions/DiarizeInput.ts +++ b/packages/core/src/definitions/DiarizeInput.ts @@ -10,7 +10,7 @@ interface DiarizeInput { * Required * Example: Wav */ - encoding?: 'Mpeg' | 'Mp4' | 'Wav' | 'Webm' | 'Webp' | 'Aac' | 'Avi' | 'Ogg'; + encoding?: "Mpeg" | "Mp4" | "Wav" | "Webm" | "Webp" | "Aac" | "Avi" | "Ogg"; /** * Language spoken in the audio file. @@ -29,7 +29,13 @@ interface DiarizeInput { * Type of the audio * Example: CallCenter */ - audioType?: 'CallCenter' | 'Meeting' | 'EarningsCalls' | 'Interview' | 'PressConference' | 'Voicemail'; + audioType?: + | "CallCenter" + | "Meeting" + | "EarningsCalls" + | "Interview" + | "PressConference" + | "Voicemail"; /** * Set to True if the input audio is multi-channel and each channel has a separate speaker. diff --git a/packages/core/src/definitions/DiarizedObject.ts b/packages/core/src/definitions/DiarizedObject.ts index 9fc59555..7004dbb7 100644 --- a/packages/core/src/definitions/DiarizedObject.ts +++ b/packages/core/src/definitions/DiarizedObject.ts @@ -1,4 +1,4 @@ -import type DiarizeSegment from './DiarizeSegment'; +import type DiarizeSegment from "./DiarizeSegment"; interface DiarizedObject { /** diff --git a/packages/core/src/definitions/DictionaryGreetingInfo.ts b/packages/core/src/definitions/DictionaryGreetingInfo.ts index 4f3a842f..8adb82fc 100644 --- a/packages/core/src/definitions/DictionaryGreetingInfo.ts +++ b/packages/core/src/definitions/DictionaryGreetingInfo.ts @@ -1,5 +1,5 @@ -import type PageNavigationModel from './PageNavigationModel'; -import type EnumeratedPagingModel from './EnumeratedPagingModel'; +import type PageNavigationModel from "./PageNavigationModel"; +import type EnumeratedPagingModel from "./EnumeratedPagingModel"; interface DictionaryGreetingInfo { /** @@ -22,17 +22,17 @@ interface DictionaryGreetingInfo { * Usage type of greeting, specifying if the greeting is applied for user extension or department (call queue) extension. */ usageType?: - | 'UserExtensionAnsweringRule' - | 'ExtensionAnsweringRule' - | 'DepartmentExtensionAnsweringRule' - | 'BlockedCalls' - | 'CallRecording' - | 'CompanyAnsweringRule' - | 'CompanyAfterHoursAnsweringRule' - | 'LimitedExtensionAnsweringRule' - | 'VoicemailExtensionAnsweringRule' - | 'AnnouncementExtensionAnsweringRule' - | 'SharedLinesGroupAnsweringRule'; + | "UserExtensionAnsweringRule" + | "ExtensionAnsweringRule" + | "DepartmentExtensionAnsweringRule" + | "BlockedCalls" + | "CallRecording" + | "CompanyAnsweringRule" + | "CompanyAfterHoursAnsweringRule" + | "LimitedExtensionAnsweringRule" + | "VoicemailExtensionAnsweringRule" + | "AnnouncementExtensionAnsweringRule" + | "SharedLinesGroupAnsweringRule"; /** * Text of a greeting, if any @@ -49,34 +49,32 @@ interface DictionaryGreetingInfo { * Type of greeting, specifying the case when the greeting is played. */ type?: - | 'Introductory' - | 'Announcement' - | 'AutomaticRecording' - | 'BlockedCallersAll' - | 'BlockedCallersSpecific' - | 'BlockedNoCallerId' - | 'BlockedPayPhones' - | 'ConnectingMessage' - | 'ConnectingAudio' - | 'StartRecording' - | 'StopRecording' - | 'Voicemail' - | 'Unavailable' - | 'InterruptPrompt' - | 'HoldMusic' - | 'Company'; + | "Introductory" + | "Announcement" + | "AutomaticRecording" + | "BlockedCallersAll" + | "BlockedCallersSpecific" + | "BlockedNoCallerId" + | "BlockedPayPhones" + | "ConnectingMessage" + | "ConnectingAudio" + | "StartRecording" + | "StopRecording" + | "Voicemail" + | "Unavailable" + | "InterruptPrompt" + | "HoldMusic" + | "Company"; /** * Category of a greeting, specifying data form. The category value 'None' specifies that greetings of a certain type ('Introductory', 'ConnectingAudio', etc.) are switched off for an extension = ['Music', 'Message', 'RingTones', 'None'] */ - category?: 'Music' | 'Message' | 'RingTones' | 'None'; + category?: "Music" | "Message" | "RingTones" | "None"; - /** - */ + /** */ navigation?: PageNavigationModel; - /** - */ + /** */ paging?: EnumeratedPagingModel; } diff --git a/packages/core/src/definitions/DictionaryGreetingList.ts b/packages/core/src/definitions/DictionaryGreetingList.ts index 6b5ebbe0..3f539a2a 100644 --- a/packages/core/src/definitions/DictionaryGreetingList.ts +++ b/packages/core/src/definitions/DictionaryGreetingList.ts @@ -1,6 +1,6 @@ -import type DictionaryGreetingInfo from './DictionaryGreetingInfo'; -import type PageNavigationModel from './PageNavigationModel'; -import type EnumeratedPagingModel from './EnumeratedPagingModel'; +import type DictionaryGreetingInfo from "./DictionaryGreetingInfo"; +import type PageNavigationModel from "./PageNavigationModel"; +import type EnumeratedPagingModel from "./EnumeratedPagingModel"; interface DictionaryGreetingList { /** @@ -14,12 +14,10 @@ interface DictionaryGreetingList { */ records?: DictionaryGreetingInfo[]; - /** - */ + /** */ navigation?: PageNavigationModel; - /** - */ + /** */ paging?: EnumeratedPagingModel; } diff --git a/packages/core/src/definitions/DirectGrouping.ts b/packages/core/src/definitions/DirectGrouping.ts index 0ede5639..fce409b2 100644 --- a/packages/core/src/definitions/DirectGrouping.ts +++ b/packages/core/src/definitions/DirectGrouping.ts @@ -7,15 +7,15 @@ interface DirectGrouping { * Required */ groupBy?: - | 'Company' - | 'CompanyNumbers' - | 'Users' - | 'Queues' - | 'IVRs' - | 'SharedLines' - | 'UserGroups' - | 'Sites' - | 'Departments'; + | "Company" + | "CompanyNumbers" + | "Users" + | "Queues" + | "IVRs" + | "SharedLines" + | "UserGroups" + | "Sites" + | "Departments"; /** * This field can be used to specify unique identifiers of entities selected in `groupBy` field. The response data will be limited to these entities only diff --git a/packages/core/src/definitions/DirectoryResource.ts b/packages/core/src/definitions/DirectoryResource.ts index fc128d0c..64232c4e 100644 --- a/packages/core/src/definitions/DirectoryResource.ts +++ b/packages/core/src/definitions/DirectoryResource.ts @@ -1,5 +1,5 @@ -import type EnumeratedPagingModel from './EnumeratedPagingModel'; -import type ContactResource from './ContactResource'; +import type EnumeratedPagingModel from "./EnumeratedPagingModel"; +import type ContactResource from "./ContactResource"; interface DirectoryResource { /** diff --git a/packages/core/src/definitions/EmailRecipientInfo.ts b/packages/core/src/definitions/EmailRecipientInfo.ts index 9658c8a4..661598de 100644 --- a/packages/core/src/definitions/EmailRecipientInfo.ts +++ b/packages/core/src/definitions/EmailRecipientInfo.ts @@ -17,7 +17,7 @@ interface EmailRecipientInfo { /** * Extension status */ - status?: 'Enabled' | 'Disabled' | 'Frozen' | 'NotActivated' | 'Unassigned'; + status?: "Enabled" | "Disabled" | "Frozen" | "NotActivated" | "Unassigned"; /** * List of user email addresses from extension notification settings. @@ -28,7 +28,7 @@ interface EmailRecipientInfo { /** * Call queue manager permission */ - permission?: 'FullAccess' | 'Messages' | 'MemberManagement'; + permission?: "FullAccess" | "Messages" | "MemberManagement"; } export default EmailRecipientInfo; diff --git a/packages/core/src/definitions/EmergencyAddress.ts b/packages/core/src/definitions/EmergencyAddress.ts index 45cb3ed4..459c8007 100644 --- a/packages/core/src/definitions/EmergencyAddress.ts +++ b/packages/core/src/definitions/EmergencyAddress.ts @@ -12,7 +12,7 @@ interface EmergencyAddress { /** * This status is associated with a phone line provision state */ - lineProvisioningStatus?: 'Valid' | 'Provisioning' | 'Invalid'; + lineProvisioningStatus?: "Valid" | "Provisioning" | "Invalid"; } export default EmergencyAddress; diff --git a/packages/core/src/definitions/EmergencyAddressAutoUpdateUsersBulkAssignResource.ts b/packages/core/src/definitions/EmergencyAddressAutoUpdateUsersBulkAssignResource.ts index dc1fa910..32b50ee3 100644 --- a/packages/core/src/definitions/EmergencyAddressAutoUpdateUsersBulkAssignResource.ts +++ b/packages/core/src/definitions/EmergencyAddressAutoUpdateUsersBulkAssignResource.ts @@ -1,10 +1,8 @@ interface EmergencyAddressAutoUpdateUsersBulkAssignResource { - /** - */ + /** */ enabledUserIds?: string[]; - /** - */ + /** */ disabledUserIds?: string[]; } diff --git a/packages/core/src/definitions/EmergencyAddressInfo.ts b/packages/core/src/definitions/EmergencyAddressInfo.ts index 0ea8c92b..750a9fcf 100644 --- a/packages/core/src/definitions/EmergencyAddressInfo.ts +++ b/packages/core/src/definitions/EmergencyAddressInfo.ts @@ -91,7 +91,13 @@ interface EmergencyAddressInfo { * for 'Get Device Info' request if `syncEmergencyAddress` parameter is set * to `true` */ - syncStatus?: 'Verified' | 'Updated' | 'Deleted' | 'NotRequired' | 'Unsupported' | 'Failed'; + syncStatus?: + | "Verified" + | "Updated" + | "Deleted" + | "NotRequired" + | "Unsupported" + | "Failed"; } export default EmergencyAddressInfo; diff --git a/packages/core/src/definitions/EmergencyLocationRequestResource.ts b/packages/core/src/definitions/EmergencyLocationRequestResource.ts index a86c5772..b300a82b 100644 --- a/packages/core/src/definitions/EmergencyLocationRequestResource.ts +++ b/packages/core/src/definitions/EmergencyLocationRequestResource.ts @@ -1,5 +1,5 @@ -import type CommonEmergencyLocationAddressInfo from './CommonEmergencyLocationAddressInfo'; -import type ShortSiteInfo from './ShortSiteInfo'; +import type CommonEmergencyLocationAddressInfo from "./CommonEmergencyLocationAddressInfo"; +import type ShortSiteInfo from "./ShortSiteInfo"; interface EmergencyLocationRequestResource { /** @@ -7,8 +7,7 @@ interface EmergencyLocationRequestResource { */ id?: string; - /** - */ + /** */ address?: CommonEmergencyLocationAddressInfo; /** @@ -16,19 +15,18 @@ interface EmergencyLocationRequestResource { */ name?: string; - /** - */ + /** */ site?: ShortSiteInfo; /** * Emergency address status */ - addressStatus?: 'Valid' | 'Invalid'; + addressStatus?: "Valid" | "Invalid"; /** * Status of an emergency response location usage. */ - usageStatus?: 'Active' | 'Inactive'; + usageStatus?: "Active" | "Inactive"; /** * Address format ID @@ -41,7 +39,7 @@ interface EmergencyLocationRequestResource { * specified in `owners` array * Default: Public */ - visibility?: 'Public'; + visibility?: "Public"; /** * Specifies emergency address validation during the ERL creation/update. diff --git a/packages/core/src/definitions/EmergencyLocationResponseResource.ts b/packages/core/src/definitions/EmergencyLocationResponseResource.ts index 565a55fc..07e2b958 100644 --- a/packages/core/src/definitions/EmergencyLocationResponseResource.ts +++ b/packages/core/src/definitions/EmergencyLocationResponseResource.ts @@ -1,6 +1,6 @@ -import type CommonEmergencyLocationAddressInfo from './CommonEmergencyLocationAddressInfo'; -import type ShortSiteInfo from './ShortSiteInfo'; -import type LocationOwnerInfo from './LocationOwnerInfo'; +import type CommonEmergencyLocationAddressInfo from "./CommonEmergencyLocationAddressInfo"; +import type ShortSiteInfo from "./ShortSiteInfo"; +import type LocationOwnerInfo from "./LocationOwnerInfo"; /** * Company emergency response location details @@ -11,8 +11,7 @@ interface EmergencyLocationResponseResource { */ id?: string; - /** - */ + /** */ address?: CommonEmergencyLocationAddressInfo; /** @@ -20,29 +19,34 @@ interface EmergencyLocationResponseResource { */ name?: string; - /** - */ + /** */ site?: ShortSiteInfo; /** * Emergency address status */ - addressStatus?: 'Valid' | 'Invalid' | 'Provisioning'; + addressStatus?: "Valid" | "Invalid" | "Provisioning"; /** * Status of emergency response location usage. */ - usageStatus?: 'Active' | 'Inactive'; + usageStatus?: "Active" | "Inactive"; /** * Resulting status of emergency address synchronization. Returned * if `syncEmergencyAddress` parameter is set to `true` */ - syncStatus?: 'Verified' | 'Updated' | 'Deleted' | 'ActivationProcess' | 'NotRequired' | 'Unsupported' | 'Failed'; + syncStatus?: + | "Verified" + | "Updated" + | "Deleted" + | "ActivationProcess" + | "NotRequired" + | "Unsupported" + | "Failed"; - /** - */ - addressType?: 'LocationWithElins' | 'LocationWithEndpoint'; + /** */ + addressType?: "LocationWithElins" | "LocationWithEndpoint"; /** * Visibility of an emergency response location. If `Private` @@ -50,7 +54,7 @@ interface EmergencyLocationResponseResource { * specified in `owners` array * Default: Public */ - visibility?: 'Private' | 'Public'; + visibility?: "Private" | "Public"; /** * List of private location owners diff --git a/packages/core/src/definitions/EmergencyLocationsResource.ts b/packages/core/src/definitions/EmergencyLocationsResource.ts index e065b5b4..02efdb43 100644 --- a/packages/core/src/definitions/EmergencyLocationsResource.ts +++ b/packages/core/src/definitions/EmergencyLocationsResource.ts @@ -1,13 +1,11 @@ -import type CommonEmergencyLocationResource from './CommonEmergencyLocationResource'; -import type EmergencyLocationsPaging from './EmergencyLocationsPaging'; +import type CommonEmergencyLocationResource from "./CommonEmergencyLocationResource"; +import type EmergencyLocationsPaging from "./EmergencyLocationsPaging"; interface EmergencyLocationsResource { - /** - */ + /** */ records?: CommonEmergencyLocationResource[]; - /** - */ + /** */ paging?: EmergencyLocationsPaging; } diff --git a/packages/core/src/definitions/EmergencyServiceAddressResource.ts b/packages/core/src/definitions/EmergencyServiceAddressResource.ts index e5f00ae3..083ab31f 100644 --- a/packages/core/src/definitions/EmergencyServiceAddressResource.ts +++ b/packages/core/src/definitions/EmergencyServiceAddressResource.ts @@ -1,27 +1,21 @@ /** * Address for emergency cases. The same emergency address is assigned * to all the numbers of one device - * */ interface EmergencyServiceAddressResource { - /** - */ + /** */ street?: string; - /** - */ + /** */ street2?: string; - /** - */ + /** */ city?: string; - /** - */ + /** */ zip?: string; - /** - */ + /** */ customerName?: string; /** @@ -74,7 +68,13 @@ interface EmergencyServiceAddressResource { * Resulting status of emergency address synchronization. Returned * if `syncEmergencyAddress` parameter is set to `true` */ - syncStatus?: 'Verified' | 'Updated' | 'Deleted' | 'NotRequired' | 'Unsupported' | 'Failed'; + syncStatus?: + | "Verified" + | "Updated" + | "Deleted" + | "NotRequired" + | "Unsupported" + | "Failed"; /** * Name of an additional contact person. Should be specified for @@ -111,7 +111,7 @@ interface EmergencyServiceAddressResource { /** * Status of digital line provisioning */ - lineProvisioningStatus?: 'Provisioning' | 'Valid' | 'Invalid'; + lineProvisioningStatus?: "Provisioning" | "Valid" | "Invalid"; /** * Internal identifier of a tax diff --git a/packages/core/src/definitions/EmergencyServiceAddressResourceRequest.ts b/packages/core/src/definitions/EmergencyServiceAddressResourceRequest.ts index 00411dc0..222aece1 100644 --- a/packages/core/src/definitions/EmergencyServiceAddressResourceRequest.ts +++ b/packages/core/src/definitions/EmergencyServiceAddressResourceRequest.ts @@ -2,27 +2,21 @@ * Address for emergency cases. The same emergency address is assigned to all * numbers of a single device. If the emergency address is also specified in * `emergency` resource, then this value is ignored - * */ interface EmergencyServiceAddressResourceRequest { - /** - */ + /** */ street?: string; - /** - */ + /** */ street2?: string; - /** - */ + /** */ city?: string; - /** - */ + /** */ zip?: string; - /** - */ + /** */ customerName?: string; /** diff --git a/packages/core/src/definitions/EmotionApiResponse.ts b/packages/core/src/definitions/EmotionApiResponse.ts index 59b4840d..e673f572 100644 --- a/packages/core/src/definitions/EmotionApiResponse.ts +++ b/packages/core/src/definitions/EmotionApiResponse.ts @@ -1,12 +1,10 @@ -import type EmotionSegment from './EmotionSegment'; +import type EmotionSegment from "./EmotionSegment"; interface EmotionApiResponse { - /** - */ - status?: 'Success' | 'Fail'; + /** */ + status?: "Success" | "Fail"; - /** - */ + /** */ response?: EmotionSegment[]; } diff --git a/packages/core/src/definitions/EmotionSegment.ts b/packages/core/src/definitions/EmotionSegment.ts index c2bd1f25..55d510ff 100644 --- a/packages/core/src/definitions/EmotionSegment.ts +++ b/packages/core/src/definitions/EmotionSegment.ts @@ -17,7 +17,13 @@ interface EmotionSegment { * Required * Example: Neutral */ - emotion?: 'Anger' | 'Excitement' | 'Frustration' | 'Joy' | 'Sadness' | 'Neutral'; + emotion?: + | "Anger" + | "Excitement" + | "Frustration" + | "Joy" + | "Sadness" + | "Neutral"; /** * Format: float diff --git a/packages/core/src/definitions/EnrollmentInput.ts b/packages/core/src/definitions/EnrollmentInput.ts index 4013270b..c56905c9 100644 --- a/packages/core/src/definitions/EnrollmentInput.ts +++ b/packages/core/src/definitions/EnrollmentInput.ts @@ -4,7 +4,7 @@ interface EnrollmentInput { * Required * Example: Wav */ - encoding?: 'Mpeg' | 'Mp4' | 'Wav' | 'Webm' | 'Webp' | 'Aac' | 'Avi' | 'Ogg'; + encoding?: "Mpeg" | "Mp4" | "Wav" | "Webm" | "Webp" | "Aac" | "Avi" | "Ogg"; /** * Language spoken in the audio file. diff --git a/packages/core/src/definitions/EnrollmentPatchInput.ts b/packages/core/src/definitions/EnrollmentPatchInput.ts index bf4d269e..121abf7e 100644 --- a/packages/core/src/definitions/EnrollmentPatchInput.ts +++ b/packages/core/src/definitions/EnrollmentPatchInput.ts @@ -4,7 +4,7 @@ interface EnrollmentPatchInput { * Required * Example: Wav */ - encoding?: 'Mpeg' | 'Mp4' | 'Wav' | 'Webm' | 'Webp' | 'Aac' | 'Avi' | 'Ogg'; + encoding?: "Mpeg" | "Mp4" | "Wav" | "Webm" | "Webp" | "Aac" | "Avi" | "Ogg"; /** * Language spoken in the audio file. diff --git a/packages/core/src/definitions/EnrollmentStatus.ts b/packages/core/src/definitions/EnrollmentStatus.ts index 333405d3..958f02d9 100644 --- a/packages/core/src/definitions/EnrollmentStatus.ts +++ b/packages/core/src/definitions/EnrollmentStatus.ts @@ -3,7 +3,7 @@ interface EnrollmentStatus { * Quality of the enrollment. * Example: Average */ - enrollmentQuality?: 'Poor' | 'Average' | 'Good' | 'High'; + enrollmentQuality?: "Poor" | "Average" | "Good" | "High"; /** * Status of the enrollment. diff --git a/packages/core/src/definitions/EventRecurrenceInfo.ts b/packages/core/src/definitions/EventRecurrenceInfo.ts index 331bd116..d87ee6ef 100644 --- a/packages/core/src/definitions/EventRecurrenceInfo.ts +++ b/packages/core/src/definitions/EventRecurrenceInfo.ts @@ -4,12 +4,12 @@ interface EventRecurrenceInfo { * is `None`. Must be greater or equal to event duration: 1- Day/Weekday; * 7 - Week; 28 - Month; 365 - Year */ - schedule?: 'None' | 'Day' | 'Weekday' | 'Week' | 'Month' | 'Year'; + schedule?: "None" | "Day" | "Weekday" | "Week" | "Month" | "Year"; /** * Condition of ending an event */ - endingCondition?: 'None' | 'Count' | 'Date'; + endingCondition?: "None" | "Count" | "Date"; /** * Count of event iterations. For periodic events only. Value range is 1 - 10. diff --git a/packages/core/src/definitions/EveryoneTeamInfo.ts b/packages/core/src/definitions/EveryoneTeamInfo.ts index f833418a..f511f331 100644 --- a/packages/core/src/definitions/EveryoneTeamInfo.ts +++ b/packages/core/src/definitions/EveryoneTeamInfo.ts @@ -7,7 +7,7 @@ interface EveryoneTeamInfo { /** * Type of chat */ - type?: 'Everyone'; + type?: "Everyone"; /** * Chat name diff --git a/packages/core/src/definitions/ExtensionBulkUpdateInfo.ts b/packages/core/src/definitions/ExtensionBulkUpdateInfo.ts index e59f1b63..9dbcb5c3 100644 --- a/packages/core/src/definitions/ExtensionBulkUpdateInfo.ts +++ b/packages/core/src/definitions/ExtensionBulkUpdateInfo.ts @@ -1,12 +1,12 @@ -import type ExtensionStatusInfo from './ExtensionStatusInfo'; -import type ContactInfoUpdateRequest from './ContactInfoUpdateRequest'; -import type ExtensionRegionalSettingRequest from './ExtensionRegionalSettingRequest'; -import type CallQueueInfoRequest from './CallQueueInfoRequest'; -import type UserTransitionInfo from './UserTransitionInfo'; -import type CostCenterInfo from './CostCenterInfo'; -import type CustomFieldInfo from './CustomFieldInfo'; -import type ProvisioningSiteInfo from './ProvisioningSiteInfo'; -import type ReferenceInfo from './ReferenceInfo'; +import type ExtensionStatusInfo from "./ExtensionStatusInfo"; +import type ContactInfoUpdateRequest from "./ContactInfoUpdateRequest"; +import type ExtensionRegionalSettingRequest from "./ExtensionRegionalSettingRequest"; +import type CallQueueInfoRequest from "./CallQueueInfoRequest"; +import type UserTransitionInfo from "./UserTransitionInfo"; +import type CostCenterInfo from "./CostCenterInfo"; +import type CustomFieldInfo from "./CustomFieldInfo"; +import type ProvisioningSiteInfo from "./ProvisioningSiteInfo"; +import type ReferenceInfo from "./ReferenceInfo"; interface ExtensionBulkUpdateInfo { /** @@ -17,10 +17,9 @@ interface ExtensionBulkUpdateInfo { /** * Extension status */ - status?: 'Enabled' | 'Disabled' | 'Frozen' | 'NotActivated'; + status?: "Enabled" | "Disabled" | "Frozen" | "NotActivated"; - /** - */ + /** */ statusInfo?: ExtensionStatusInfo; /** @@ -38,19 +37,17 @@ interface ExtensionBulkUpdateInfo { */ extensionNumber?: string; - /** - */ + /** */ contact?: ContactInfoUpdateRequest; - /** - */ + /** */ regionalSettings?: ExtensionRegionalSettingRequest; /** * Initial configuration wizard state * Default: NotStarted */ - setupWizardState?: 'NotStarted' | 'Incomplete' | 'Completed'; + setupWizardState?: "NotStarted" | "Incomplete" | "Completed"; /** * Additional extension identifier created by partner application @@ -68,20 +65,16 @@ interface ExtensionBulkUpdateInfo { */ password?: string; - /** - */ + /** */ callQueueInfo?: CallQueueInfoRequest; - /** - */ + /** */ transition?: UserTransitionInfo; - /** - */ + /** */ costCenter?: CostCenterInfo; - /** - */ + /** */ customFields?: CustomFieldInfo[]; /** @@ -89,8 +82,7 @@ interface ExtensionBulkUpdateInfo { */ hidden?: boolean; - /** - */ + /** */ site?: ProvisioningSiteInfo; /** @@ -99,19 +91,19 @@ interface ExtensionBulkUpdateInfo { * product terminology */ type?: - | 'User' - | 'FaxUser' - | 'VirtualUser' - | 'DigitalUser' - | 'Department' - | 'Announcement' - | 'Voicemail' - | 'SharedLinesGroup' - | 'PagingOnly' - | 'IvrMenu' - | 'ApplicationExtension' - | 'ParkLocation' - | 'DelegatedLinesGroup'; + | "User" + | "FaxUser" + | "VirtualUser" + | "DigitalUser" + | "Department" + | "Announcement" + | "Voicemail" + | "SharedLinesGroup" + | "PagingOnly" + | "IvrMenu" + | "ApplicationExtension" + | "ParkLocation" + | "DelegatedLinesGroup"; /** * List of non-RC internal identifiers assigned to an extension diff --git a/packages/core/src/definitions/ExtensionBulkUpdateRequest.ts b/packages/core/src/definitions/ExtensionBulkUpdateRequest.ts index c857047e..442ef8f3 100644 --- a/packages/core/src/definitions/ExtensionBulkUpdateRequest.ts +++ b/packages/core/src/definitions/ExtensionBulkUpdateRequest.ts @@ -1,4 +1,4 @@ -import type ExtensionBulkUpdateInfo from './ExtensionBulkUpdateInfo'; +import type ExtensionBulkUpdateInfo from "./ExtensionBulkUpdateInfo"; /** * List of extensions to be updated diff --git a/packages/core/src/definitions/ExtensionBulkUpdateTaskResource.ts b/packages/core/src/definitions/ExtensionBulkUpdateTaskResource.ts index fb3fddbb..49b3d9ca 100644 --- a/packages/core/src/definitions/ExtensionBulkUpdateTaskResource.ts +++ b/packages/core/src/definitions/ExtensionBulkUpdateTaskResource.ts @@ -1,8 +1,7 @@ -import type ExtensionBulkUpdateTaskResult from './ExtensionBulkUpdateTaskResult'; +import type ExtensionBulkUpdateTaskResult from "./ExtensionBulkUpdateTaskResult"; /** * Information on a task for updating multiple extensions - * */ interface ExtensionBulkUpdateTaskResource { /** @@ -22,7 +21,7 @@ interface ExtensionBulkUpdateTaskResource { * Task status * Required */ - status?: 'Accepted' | 'InProgress' | 'Completed' | 'Failed'; + status?: "Accepted" | "InProgress" | "Completed" | "Failed"; /** * Task creation date/time @@ -38,8 +37,7 @@ interface ExtensionBulkUpdateTaskResource { */ lastModifiedTime?: string; - /** - */ + /** */ result?: ExtensionBulkUpdateTaskResult; } diff --git a/packages/core/src/definitions/ExtensionBulkUpdateTaskResult.ts b/packages/core/src/definitions/ExtensionBulkUpdateTaskResult.ts index 7e9f94c3..b1795711 100644 --- a/packages/core/src/definitions/ExtensionBulkUpdateTaskResult.ts +++ b/packages/core/src/definitions/ExtensionBulkUpdateTaskResult.ts @@ -1,16 +1,14 @@ -import type ExtensionBulkUpdateTaskResultAffectedItems from './ExtensionBulkUpdateTaskResultAffectedItems'; -import type ErrorEntity from './ErrorEntity'; +import type ExtensionBulkUpdateTaskResultAffectedItems from "./ExtensionBulkUpdateTaskResultAffectedItems"; +import type ErrorEntity from "./ErrorEntity"; /** * Resulting record of a task on multiple extensions update */ interface ExtensionBulkUpdateTaskResult { - /** - */ + /** */ affectedItems?: ExtensionBulkUpdateTaskResultAffectedItems; - /** - */ + /** */ errors?: ErrorEntity[]; } diff --git a/packages/core/src/definitions/ExtensionBulkUpdateTaskResultAffectedItems.ts b/packages/core/src/definitions/ExtensionBulkUpdateTaskResultAffectedItems.ts index f2ac9f5a..7e730eb5 100644 --- a/packages/core/src/definitions/ExtensionBulkUpdateTaskResultAffectedItems.ts +++ b/packages/core/src/definitions/ExtensionBulkUpdateTaskResultAffectedItems.ts @@ -1,8 +1,7 @@ -import type ExtensionUpdateShortResult from './ExtensionUpdateShortResult'; +import type ExtensionUpdateShortResult from "./ExtensionUpdateShortResult"; interface ExtensionBulkUpdateTaskResultAffectedItems { - /** - */ + /** */ result?: ExtensionUpdateShortResult[]; } diff --git a/packages/core/src/definitions/ExtensionCallQueuePresence.ts b/packages/core/src/definitions/ExtensionCallQueuePresence.ts index 184e72ff..8d88c311 100644 --- a/packages/core/src/definitions/ExtensionCallQueuePresence.ts +++ b/packages/core/src/definitions/ExtensionCallQueuePresence.ts @@ -1,8 +1,7 @@ -import type PresenceCallQueueInfo from './PresenceCallQueueInfo'; +import type PresenceCallQueueInfo from "./PresenceCallQueueInfo"; interface ExtensionCallQueuePresence { - /** - */ + /** */ callQueue?: PresenceCallQueueInfo; /** diff --git a/packages/core/src/definitions/ExtensionCallQueuePresenceList.ts b/packages/core/src/definitions/ExtensionCallQueuePresenceList.ts index 9f8dea18..f443370b 100644 --- a/packages/core/src/definitions/ExtensionCallQueuePresenceList.ts +++ b/packages/core/src/definitions/ExtensionCallQueuePresenceList.ts @@ -1,8 +1,7 @@ -import type ExtensionCallQueuePresence from './ExtensionCallQueuePresence'; +import type ExtensionCallQueuePresence from "./ExtensionCallQueuePresence"; interface ExtensionCallQueuePresenceList { - /** - */ + /** */ records?: ExtensionCallQueuePresence[]; } diff --git a/packages/core/src/definitions/ExtensionCallQueueUpdatePresence.ts b/packages/core/src/definitions/ExtensionCallQueueUpdatePresence.ts index 1de76ed7..3e5ab70f 100644 --- a/packages/core/src/definitions/ExtensionCallQueueUpdatePresence.ts +++ b/packages/core/src/definitions/ExtensionCallQueueUpdatePresence.ts @@ -1,8 +1,7 @@ -import type CallQueueId from './CallQueueId'; +import type CallQueueId from "./CallQueueId"; interface ExtensionCallQueueUpdatePresence { - /** - */ + /** */ callQueue?: CallQueueId; /** diff --git a/packages/core/src/definitions/ExtensionCallQueueUpdatePresenceList.ts b/packages/core/src/definitions/ExtensionCallQueueUpdatePresenceList.ts index 2e1ba5dd..d14aeab7 100644 --- a/packages/core/src/definitions/ExtensionCallQueueUpdatePresenceList.ts +++ b/packages/core/src/definitions/ExtensionCallQueueUpdatePresenceList.ts @@ -1,8 +1,7 @@ -import type ExtensionCallQueueUpdatePresence from './ExtensionCallQueueUpdatePresence'; +import type ExtensionCallQueueUpdatePresence from "./ExtensionCallQueueUpdatePresence"; interface ExtensionCallQueueUpdatePresenceList { - /** - */ + /** */ records?: ExtensionCallQueueUpdatePresence[]; } diff --git a/packages/core/src/definitions/ExtensionCallerIdInfo.ts b/packages/core/src/definitions/ExtensionCallerIdInfo.ts index b6a9e227..876debc2 100644 --- a/packages/core/src/definitions/ExtensionCallerIdInfo.ts +++ b/packages/core/src/definitions/ExtensionCallerIdInfo.ts @@ -1,5 +1,5 @@ -import type CallerIdByDevice from './CallerIdByDevice'; -import type CallerIdByFeature from './CallerIdByFeature'; +import type CallerIdByDevice from "./CallerIdByDevice"; +import type CallerIdByFeature from "./CallerIdByFeature"; interface ExtensionCallerIdInfo { /** @@ -8,12 +8,10 @@ interface ExtensionCallerIdInfo { */ uri?: string; - /** - */ + /** */ byDevice?: CallerIdByDevice[]; - /** - */ + /** */ byFeature?: CallerIdByFeature[]; /** diff --git a/packages/core/src/definitions/ExtensionCallerIdInfoRequest.ts b/packages/core/src/definitions/ExtensionCallerIdInfoRequest.ts index e95c5c20..d692501e 100644 --- a/packages/core/src/definitions/ExtensionCallerIdInfoRequest.ts +++ b/packages/core/src/definitions/ExtensionCallerIdInfoRequest.ts @@ -1,5 +1,5 @@ -import type CallerIdByDeviceRequest from './CallerIdByDeviceRequest'; -import type CallerIdByFeatureRequest from './CallerIdByFeatureRequest'; +import type CallerIdByDeviceRequest from "./CallerIdByDeviceRequest"; +import type CallerIdByFeatureRequest from "./CallerIdByFeatureRequest"; interface ExtensionCallerIdInfoRequest { /** @@ -8,12 +8,10 @@ interface ExtensionCallerIdInfoRequest { */ uri?: string; - /** - */ + /** */ byDevice?: CallerIdByDeviceRequest[]; - /** - */ + /** */ byFeature?: CallerIdByFeatureRequest[]; /** diff --git a/packages/core/src/definitions/ExtensionCreationRequest.ts b/packages/core/src/definitions/ExtensionCreationRequest.ts index 7f4d500e..5c16982e 100644 --- a/packages/core/src/definitions/ExtensionCreationRequest.ts +++ b/packages/core/src/definitions/ExtensionCreationRequest.ts @@ -1,14 +1,13 @@ -import type ContactInfoCreationRequest from './ContactInfoCreationRequest'; -import type CostCenterInfo from './CostCenterInfo'; -import type CustomFieldInfo from './CustomFieldInfo'; -import type ReferenceInfo from './ReferenceInfo'; -import type RegionalSettings from './RegionalSettings'; -import type SiteInfo from './SiteInfo'; -import type ExtensionStatusInfo from './ExtensionStatusInfo'; +import type ContactInfoCreationRequest from "./ContactInfoCreationRequest"; +import type CostCenterInfo from "./CostCenterInfo"; +import type CustomFieldInfo from "./CustomFieldInfo"; +import type ReferenceInfo from "./ReferenceInfo"; +import type RegionalSettings from "./RegionalSettings"; +import type SiteInfo from "./SiteInfo"; +import type ExtensionStatusInfo from "./ExtensionStatusInfo"; interface ExtensionCreationRequest { - /** - */ + /** */ contact?: ContactInfoCreationRequest; /** @@ -16,12 +15,10 @@ interface ExtensionCreationRequest { */ extensionNumber?: string; - /** - */ + /** */ costCenter?: CostCenterInfo; - /** - */ + /** */ customFields?: CustomFieldInfo[]; /** @@ -34,8 +31,7 @@ interface ExtensionCreationRequest { */ references?: ReferenceInfo[]; - /** - */ + /** */ regionalSettings?: RegionalSettings; /** @@ -53,19 +49,17 @@ interface ExtensionCreationRequest { * Initial configuration wizard state * Default: NotStarted */ - setupWizardState?: 'NotStarted' | 'Incomplete' | 'Completed'; + setupWizardState?: "NotStarted" | "Incomplete" | "Completed"; - /** - */ + /** */ site?: SiteInfo; /** * Extension status */ - status?: 'Enabled' | 'Disabled' | 'Frozen' | 'NotActivated' | 'Unassigned'; + status?: "Enabled" | "Disabled" | "Frozen" | "NotActivated" | "Unassigned"; - /** - */ + /** */ statusInfo?: ExtensionStatusInfo; /** @@ -74,17 +68,17 @@ interface ExtensionCreationRequest { * terminology */ type?: - | 'User' - | 'VirtualUser' - | 'DigitalUser' - | 'FlexibleUser' - | 'Department' - | 'Announcement' - | 'Voicemail' - | 'SharedLinesGroup' - | 'PagingOnly' - | 'ParkLocation' - | 'Limited'; + | "User" + | "VirtualUser" + | "DigitalUser" + | "FlexibleUser" + | "Department" + | "Announcement" + | "Voicemail" + | "SharedLinesGroup" + | "PagingOnly" + | "ParkLocation" + | "Limited"; /** * Hides extension from showing in company directory. Supported diff --git a/packages/core/src/definitions/ExtensionCreationResponse.ts b/packages/core/src/definitions/ExtensionCreationResponse.ts index 4ddab06b..3cffe077 100644 --- a/packages/core/src/definitions/ExtensionCreationResponse.ts +++ b/packages/core/src/definitions/ExtensionCreationResponse.ts @@ -1,14 +1,14 @@ -import type ContactInfo from './ContactInfo'; -import type CostCenterInfo from './CostCenterInfo'; -import type CustomFieldInfo from './CustomFieldInfo'; -import type ExtensionPermissions from './ExtensionPermissions'; -import type ProfileImageInfo from './ProfileImageInfo'; -import type ReferenceInfo from './ReferenceInfo'; -import type RegionalSettings from './RegionalSettings'; -import type ExtensionServiceFeatureInfo from './ExtensionServiceFeatureInfo'; -import type ProvisioningSiteInfo from './ProvisioningSiteInfo'; -import type ExtensionStatusInfo from './ExtensionStatusInfo'; -import type AssignedCountryInfo from './AssignedCountryInfo'; +import type ContactInfo from "./ContactInfo"; +import type CostCenterInfo from "./CostCenterInfo"; +import type CustomFieldInfo from "./CustomFieldInfo"; +import type ExtensionPermissions from "./ExtensionPermissions"; +import type ProfileImageInfo from "./ProfileImageInfo"; +import type ReferenceInfo from "./ReferenceInfo"; +import type RegionalSettings from "./RegionalSettings"; +import type ExtensionServiceFeatureInfo from "./ExtensionServiceFeatureInfo"; +import type ProvisioningSiteInfo from "./ProvisioningSiteInfo"; +import type ExtensionStatusInfo from "./ExtensionStatusInfo"; +import type AssignedCountryInfo from "./AssignedCountryInfo"; interface ExtensionCreationResponse { /** @@ -23,16 +23,13 @@ interface ExtensionCreationResponse { */ uri?: string; - /** - */ + /** */ contact?: ContactInfo; - /** - */ + /** */ costCenter?: CostCenterInfo; - /** - */ + /** */ customFields?: CustomFieldInfo[]; /** @@ -58,12 +55,10 @@ interface ExtensionCreationResponse { */ partnerId?: string; - /** - */ + /** */ permissions?: ExtensionPermissions; - /** - */ + /** */ profileImage?: ProfileImageInfo; /** @@ -71,8 +66,7 @@ interface ExtensionCreationResponse { */ references?: ReferenceInfo[]; - /** - */ + /** */ regionalSettings?: RegionalSettings; /** @@ -86,19 +80,17 @@ interface ExtensionCreationResponse { * Initial configuration wizard state * Default: NotStarted */ - setupWizardState?: 'NotStarted' | 'Incomplete' | 'Completed'; + setupWizardState?: "NotStarted" | "Incomplete" | "Completed"; - /** - */ + /** */ site?: ProvisioningSiteInfo; /** * Extension status */ - status?: 'Enabled' | 'Disabled' | 'Frozen' | 'NotActivated' | 'Unassigned'; + status?: "Enabled" | "Disabled" | "Frozen" | "NotActivated" | "Unassigned"; - /** - */ + /** */ statusInfo?: ExtensionStatusInfo; /** @@ -106,17 +98,17 @@ interface ExtensionCreationResponse { * corresponds to 'Call Queue' extensions in modern RingCentral product terminology */ type?: - | 'User' - | 'VirtualUser' - | 'DigitalUser' - | 'FlexibleUser' - | 'Department' - | 'Announcement' - | 'Voicemail' - | 'SharedLinesGroup' - | 'PagingOnly' - | 'ParkLocation' - | 'Limited'; + | "User" + | "VirtualUser" + | "DigitalUser" + | "FlexibleUser" + | "Department" + | "Announcement" + | "Voicemail" + | "SharedLinesGroup" + | "PagingOnly" + | "ParkLocation" + | "Limited"; /** * Hides an extension from showing in company directory. Supported @@ -124,8 +116,7 @@ interface ExtensionCreationResponse { */ hidden?: boolean; - /** - */ + /** */ assignedCountry?: AssignedCountryInfo; } diff --git a/packages/core/src/definitions/ExtensionFavoritesEvent.ts b/packages/core/src/definitions/ExtensionFavoritesEvent.ts index 47f34b87..a748ef13 100644 --- a/packages/core/src/definitions/ExtensionFavoritesEvent.ts +++ b/packages/core/src/definitions/ExtensionFavoritesEvent.ts @@ -1,4 +1,4 @@ -import type ExtensionFavoritesEventBody from './ExtensionFavoritesEventBody'; +import type ExtensionFavoritesEventBody from "./ExtensionFavoritesEventBody"; interface ExtensionFavoritesEvent { /** @@ -24,8 +24,7 @@ interface ExtensionFavoritesEvent { */ subscriptionId?: string; - /** - */ + /** */ body?: ExtensionFavoritesEventBody; } diff --git a/packages/core/src/definitions/ExtensionGrantListEvent.ts b/packages/core/src/definitions/ExtensionGrantListEvent.ts index 2eefebfa..00a0fde7 100644 --- a/packages/core/src/definitions/ExtensionGrantListEvent.ts +++ b/packages/core/src/definitions/ExtensionGrantListEvent.ts @@ -1,4 +1,4 @@ -import type ExtensionGrantListEventBody from './ExtensionGrantListEventBody'; +import type ExtensionGrantListEventBody from "./ExtensionGrantListEventBody"; interface ExtensionGrantListEvent { /** @@ -23,8 +23,7 @@ interface ExtensionGrantListEvent { */ subscriptionId?: string; - /** - */ + /** */ body?: ExtensionGrantListEventBody; } diff --git a/packages/core/src/definitions/ExtensionInfo.ts b/packages/core/src/definitions/ExtensionInfo.ts index 0320964d..27eaf3b2 100644 --- a/packages/core/src/definitions/ExtensionInfo.ts +++ b/packages/core/src/definitions/ExtensionInfo.ts @@ -1,7 +1,6 @@ /** * Information on the extension, to which the phone number is assigned. * Returned only for the request of Account phone number list - * */ interface ExtensionInfo { /** diff --git a/packages/core/src/definitions/ExtensionInfoEvent.ts b/packages/core/src/definitions/ExtensionInfoEvent.ts index 45c7efa8..a87512d1 100644 --- a/packages/core/src/definitions/ExtensionInfoEvent.ts +++ b/packages/core/src/definitions/ExtensionInfoEvent.ts @@ -1,4 +1,4 @@ -import type ExtensionInfoEventBody from './ExtensionInfoEventBody'; +import type ExtensionInfoEventBody from "./ExtensionInfoEventBody"; interface ExtensionInfoEvent { /** @@ -23,8 +23,7 @@ interface ExtensionInfoEvent { */ subscriptionId?: string; - /** - */ + /** */ body?: ExtensionInfoEventBody; } diff --git a/packages/core/src/definitions/ExtensionInfoEventBody.ts b/packages/core/src/definitions/ExtensionInfoEventBody.ts index 53601599..b2235ece 100644 --- a/packages/core/src/definitions/ExtensionInfoEventBody.ts +++ b/packages/core/src/definitions/ExtensionInfoEventBody.ts @@ -10,23 +10,23 @@ interface ExtensionInfoEventBody { /** * Type of extension info change */ - eventType?: 'Update' | 'Delete'; + eventType?: "Update" | "Delete"; /** * Returned for 'Update' event type only */ hints?: ( - | 'AccountSettings' - | 'AccountStatus' - | 'AnsweringRules' - | 'CompanyNumbers' - | 'DialingPlan' - | 'ExtensionInfo' - | 'Features' - | 'Limits' - | 'Permissions' - | 'ProfileImage' - | 'VideoConfiguration' + | "AccountSettings" + | "AccountStatus" + | "AnsweringRules" + | "CompanyNumbers" + | "DialingPlan" + | "ExtensionInfo" + | "Features" + | "Limits" + | "Permissions" + | "ProfileImage" + | "VideoConfiguration" )[]; /** diff --git a/packages/core/src/definitions/ExtensionInfoGrants.ts b/packages/core/src/definitions/ExtensionInfoGrants.ts index 121a5a63..69a9ec23 100644 --- a/packages/core/src/definitions/ExtensionInfoGrants.ts +++ b/packages/core/src/definitions/ExtensionInfoGrants.ts @@ -29,19 +29,19 @@ interface ExtensionInfoGrants { * product terminology */ type?: - | 'User' - | 'Fax User' - | 'VirtualUser' - | 'DigitalUser' - | 'Department' - | 'Announcement' - | 'Voicemail' - | 'SharedLinesGroup' - | 'PagingOnly' - | 'IvrMenu' - | 'ApplicationExtension' - | 'ParkLocation' - | 'DelegatedLinesGroup'; + | "User" + | "Fax User" + | "VirtualUser" + | "DigitalUser" + | "Department" + | "Announcement" + | "Voicemail" + | "SharedLinesGroup" + | "PagingOnly" + | "IvrMenu" + | "ApplicationExtension" + | "ParkLocation" + | "DelegatedLinesGroup"; } export default ExtensionInfoGrants; diff --git a/packages/core/src/definitions/ExtensionListEvent.ts b/packages/core/src/definitions/ExtensionListEvent.ts index e08caf70..e765c189 100644 --- a/packages/core/src/definitions/ExtensionListEvent.ts +++ b/packages/core/src/definitions/ExtensionListEvent.ts @@ -1,4 +1,4 @@ -import type ExtensionListEventBody from './ExtensionListEventBody'; +import type ExtensionListEventBody from "./ExtensionListEventBody"; interface ExtensionListEvent { /** @@ -23,8 +23,7 @@ interface ExtensionListEvent { */ subscriptionId?: string; - /** - */ + /** */ body?: ExtensionListEventBody; } diff --git a/packages/core/src/definitions/ExtensionListEventBody.ts b/packages/core/src/definitions/ExtensionListEventBody.ts index 125702f4..92193533 100644 --- a/packages/core/src/definitions/ExtensionListEventBody.ts +++ b/packages/core/src/definitions/ExtensionListEventBody.ts @@ -10,7 +10,7 @@ interface ExtensionListEventBody { /** * Type of extension info change */ - eventType?: 'Create' | 'Update' | 'Delete'; + eventType?: "Create" | "Update" | "Delete"; /** * Internal identifier of a subscription owner extension diff --git a/packages/core/src/definitions/ExtensionPermissions.ts b/packages/core/src/definitions/ExtensionPermissions.ts index 39d3f924..18544ae7 100644 --- a/packages/core/src/definitions/ExtensionPermissions.ts +++ b/packages/core/src/definitions/ExtensionPermissions.ts @@ -1,18 +1,15 @@ -import type PermissionInfoAdmin from './PermissionInfoAdmin'; -import type PermissionInfoInt from './PermissionInfoInt'; +import type PermissionInfoAdmin from "./PermissionInfoAdmin"; +import type PermissionInfoInt from "./PermissionInfoInt"; /** * Extension permissions, corresponding to the Service Web permissions * 'Admin' and 'InternationalCalling' - * */ interface ExtensionPermissions { - /** - */ + /** */ admin?: PermissionInfoAdmin; - /** - */ + /** */ internationalCalling?: PermissionInfoInt; } diff --git a/packages/core/src/definitions/ExtensionPresenceEvent.ts b/packages/core/src/definitions/ExtensionPresenceEvent.ts index b3113cb0..4b3c54b1 100644 --- a/packages/core/src/definitions/ExtensionPresenceEvent.ts +++ b/packages/core/src/definitions/ExtensionPresenceEvent.ts @@ -1,4 +1,4 @@ -import type ExtensionPresenceEventBody from './ExtensionPresenceEventBody'; +import type ExtensionPresenceEventBody from "./ExtensionPresenceEventBody"; interface ExtensionPresenceEvent { /** @@ -22,8 +22,7 @@ interface ExtensionPresenceEvent { */ subscriptionId?: string; - /** - */ + /** */ body?: ExtensionPresenceEventBody; } diff --git a/packages/core/src/definitions/ExtensionPresenceEventBody.ts b/packages/core/src/definitions/ExtensionPresenceEventBody.ts index ca8ceadf..30e8d13d 100644 --- a/packages/core/src/definitions/ExtensionPresenceEventBody.ts +++ b/packages/core/src/definitions/ExtensionPresenceEventBody.ts @@ -8,7 +8,12 @@ interface ExtensionPresenceEventBody { /** * Telephony presence status. Returned if telephony status is changed. */ - telephonyStatus?: 'NoCall' | 'CallConnected' | 'Ringing' | 'OnHold' | 'ParkedCall'; + telephonyStatus?: + | "NoCall" + | "CallConnected" + | "Ringing" + | "OnHold" + | "ParkedCall"; /** * Order number of a notification to state the chronology @@ -19,17 +24,21 @@ interface ExtensionPresenceEventBody { /** * Aggregated presence status, calculated from a number of sources */ - presenceStatus?: 'Offline' | 'Busy' | 'Available'; + presenceStatus?: "Offline" | "Busy" | "Available"; /** * User-defined presence status (as previously published by the user) */ - userStatus?: 'Offline' | 'Busy' | 'Available'; + userStatus?: "Offline" | "Busy" | "Available"; /** * Extended DnD (Do not Disturb) status */ - dndStatus?: 'TakeAllCalls' | 'DoNotAcceptAnyCalls' | 'DoNotAcceptDepartmentCalls' | 'TakeDepartmentCallsOnly'; + dndStatus?: + | "TakeAllCalls" + | "DoNotAcceptAnyCalls" + | "DoNotAcceptDepartmentCalls" + | "TakeDepartmentCallsOnly"; /** * If `true` enables other extensions to see the extension presence status diff --git a/packages/core/src/definitions/ExtensionRegionalSettingRequest.ts b/packages/core/src/definitions/ExtensionRegionalSettingRequest.ts index 3db8a737..f793d82c 100644 --- a/packages/core/src/definitions/ExtensionRegionalSettingRequest.ts +++ b/packages/core/src/definitions/ExtensionRegionalSettingRequest.ts @@ -1,45 +1,38 @@ -import type ExtensionCountryInfoRequest from './ExtensionCountryInfoRequest'; -import type ExtensionTimezoneInfoRequest from './ExtensionTimezoneInfoRequest'; -import type ExtensionLanguageInfoRequest from './ExtensionLanguageInfoRequest'; -import type ExtensionGreetingLanguageInfoRequest from './ExtensionGreetingLanguageInfoRequest'; -import type ExtensionFormattingLocaleInfoRequest from './ExtensionFormattingLocaleInfoRequest'; -import type ExtensionCurrencyInfoRequest from './ExtensionCurrencyInfoRequest'; +import type ExtensionCountryInfoRequest from "./ExtensionCountryInfoRequest"; +import type ExtensionTimezoneInfoRequest from "./ExtensionTimezoneInfoRequest"; +import type ExtensionLanguageInfoRequest from "./ExtensionLanguageInfoRequest"; +import type ExtensionGreetingLanguageInfoRequest from "./ExtensionGreetingLanguageInfoRequest"; +import type ExtensionFormattingLocaleInfoRequest from "./ExtensionFormattingLocaleInfoRequest"; +import type ExtensionCurrencyInfoRequest from "./ExtensionCurrencyInfoRequest"; /** * Regional data (timezone, home country, language) of an extension. * The default is Company (Auto-Receptionist) settings - * */ interface ExtensionRegionalSettingRequest { - /** - */ + /** */ homeCountry?: ExtensionCountryInfoRequest; - /** - */ + /** */ timezone?: ExtensionTimezoneInfoRequest; - /** - */ + /** */ language?: ExtensionLanguageInfoRequest; - /** - */ + /** */ greetingLanguage?: ExtensionGreetingLanguageInfoRequest; - /** - */ + /** */ formattingLocale?: ExtensionFormattingLocaleInfoRequest; - /** - */ + /** */ currency?: ExtensionCurrencyInfoRequest; /** * Time format (12-hours or 24-hours). * Default: 12h */ - timeFormat?: '12h' | '24h'; + timeFormat?: "12h" | "24h"; } export default ExtensionRegionalSettingRequest; diff --git a/packages/core/src/definitions/ExtensionServiceFeatureInfo.ts b/packages/core/src/definitions/ExtensionServiceFeatureInfo.ts index ad61bf27..a7eae6c6 100644 --- a/packages/core/src/definitions/ExtensionServiceFeatureInfo.ts +++ b/packages/core/src/definitions/ExtensionServiceFeatureInfo.ts @@ -8,66 +8,66 @@ interface ExtensionServiceFeatureInfo { * Feature name */ featureName?: - | 'AccountFederation' - | 'Archiver' - | 'AutomaticCallRecordingMute' - | 'AutomaticInboundCallRecording' - | 'AutomaticOutboundCallRecording' - | 'BlockedMessageForwarding' - | 'Calendar' - | 'CallerIdControl' - | 'CallForwarding' - | 'CallPark' - | 'CallParkLocations' - | 'CallSupervision' - | 'CallSwitch' - | 'CallQualitySurvey' - | 'Conferencing' - | 'ConferencingNumber' - | 'ConfigureDelegates' - | 'DeveloperPortal' - | 'DND' - | 'DynamicConference' - | 'EmergencyAddressAutoUpdate' - | 'EmergencyCalling' - | 'EncryptionAtRest' - | 'ExternalDirectoryIntegration' - | 'Fax' - | 'FaxReceiving' - | 'FreeSoftPhoneLines' - | 'HDVoice' - | 'HipaaCompliance' - | 'Intercom' - | 'InternationalCalling' - | 'InternationalSMS' - | 'LinkedSoftphoneLines' - | 'MMS' - | 'MobileVoipEmergencyCalling' - | 'OnDemandCallRecording' - | 'Pager' - | 'PagerReceiving' - | 'Paging' - | 'PasswordAuth' - | 'PromoMessage' - | 'Reports' - | 'Presence' - | 'RCTeams' - | 'RingOut' - | 'SalesForce' - | 'SharedLines' - | 'SingleExtensionUI' - | 'SiteCodes' - | 'SMS' - | 'SMSReceiving' - | 'SoftPhoneUpdate' - | 'TelephonySessions' - | 'UserManagement' - | 'VideoConferencing' - | 'VoipCalling' - | 'VoipCallingOnMobile' - | 'Voicemail' - | 'VoicemailToText' - | 'WebPhone'; + | "AccountFederation" + | "Archiver" + | "AutomaticCallRecordingMute" + | "AutomaticInboundCallRecording" + | "AutomaticOutboundCallRecording" + | "BlockedMessageForwarding" + | "Calendar" + | "CallerIdControl" + | "CallForwarding" + | "CallPark" + | "CallParkLocations" + | "CallSupervision" + | "CallSwitch" + | "CallQualitySurvey" + | "Conferencing" + | "ConferencingNumber" + | "ConfigureDelegates" + | "DeveloperPortal" + | "DND" + | "DynamicConference" + | "EmergencyAddressAutoUpdate" + | "EmergencyCalling" + | "EncryptionAtRest" + | "ExternalDirectoryIntegration" + | "Fax" + | "FaxReceiving" + | "FreeSoftPhoneLines" + | "HDVoice" + | "HipaaCompliance" + | "Intercom" + | "InternationalCalling" + | "InternationalSMS" + | "LinkedSoftphoneLines" + | "MMS" + | "MobileVoipEmergencyCalling" + | "OnDemandCallRecording" + | "Pager" + | "PagerReceiving" + | "Paging" + | "PasswordAuth" + | "PromoMessage" + | "Reports" + | "Presence" + | "RCTeams" + | "RingOut" + | "SalesForce" + | "SharedLines" + | "SingleExtensionUI" + | "SiteCodes" + | "SMS" + | "SMSReceiving" + | "SoftPhoneUpdate" + | "TelephonySessions" + | "UserManagement" + | "VideoConferencing" + | "VoipCalling" + | "VoipCallingOnMobile" + | "Voicemail" + | "VoicemailToText" + | "WebPhone"; /** * Reason for limitation of a particular service feature. Returned diff --git a/packages/core/src/definitions/ExtensionStatusInfo.ts b/packages/core/src/definitions/ExtensionStatusInfo.ts index 896ff32c..e703f53d 100644 --- a/packages/core/src/definitions/ExtensionStatusInfo.ts +++ b/packages/core/src/definitions/ExtensionStatusInfo.ts @@ -1,6 +1,5 @@ /** * Status information (reason, comment). Returned for `Disabled` extensions only - * */ interface ExtensionStatusInfo { /** @@ -11,7 +10,7 @@ interface ExtensionStatusInfo { /** * Type of suspension */ - reason?: 'Voluntarily' | 'Involuntarily'; + reason?: "Voluntarily" | "Involuntarily"; } export default ExtensionStatusInfo; diff --git a/packages/core/src/definitions/ExtensionTelephonySessionsEvent.ts b/packages/core/src/definitions/ExtensionTelephonySessionsEvent.ts index dbe7e8f0..f94b732e 100644 --- a/packages/core/src/definitions/ExtensionTelephonySessionsEvent.ts +++ b/packages/core/src/definitions/ExtensionTelephonySessionsEvent.ts @@ -1,4 +1,4 @@ -import type TelephonySessionsEventBody from './TelephonySessionsEventBody'; +import type TelephonySessionsEventBody from "./TelephonySessionsEventBody"; interface ExtensionTelephonySessionsEvent { /** @@ -27,8 +27,7 @@ interface ExtensionTelephonySessionsEvent { */ ownerId?: string; - /** - */ + /** */ body?: TelephonySessionsEventBody; } diff --git a/packages/core/src/definitions/ExtensionUpdateRequest.ts b/packages/core/src/definitions/ExtensionUpdateRequest.ts index 24df3de7..4183e86b 100644 --- a/packages/core/src/definitions/ExtensionUpdateRequest.ts +++ b/packages/core/src/definitions/ExtensionUpdateRequest.ts @@ -1,20 +1,19 @@ -import type ExtensionStatusInfo from './ExtensionStatusInfo'; -import type ContactInfoUpdateRequest from './ContactInfoUpdateRequest'; -import type ExtensionRegionalSettingRequest from './ExtensionRegionalSettingRequest'; -import type CallQueueInfoRequest from './CallQueueInfoRequest'; -import type UserTransitionInfo from './UserTransitionInfo'; -import type CustomFieldInfo from './CustomFieldInfo'; -import type SiteReference from './SiteReference'; -import type ReferenceInfo from './ReferenceInfo'; +import type ExtensionStatusInfo from "./ExtensionStatusInfo"; +import type ContactInfoUpdateRequest from "./ContactInfoUpdateRequest"; +import type ExtensionRegionalSettingRequest from "./ExtensionRegionalSettingRequest"; +import type CallQueueInfoRequest from "./CallQueueInfoRequest"; +import type UserTransitionInfo from "./UserTransitionInfo"; +import type CustomFieldInfo from "./CustomFieldInfo"; +import type SiteReference from "./SiteReference"; +import type ReferenceInfo from "./ReferenceInfo"; interface ExtensionUpdateRequest { /** * Extension status */ - status?: 'Enabled' | 'Disabled' | 'Frozen' | 'NotActivated'; + status?: "Enabled" | "Disabled" | "Frozen" | "NotActivated"; - /** - */ + /** */ statusInfo?: ExtensionStatusInfo; /** @@ -22,19 +21,17 @@ interface ExtensionUpdateRequest { */ extensionNumber?: string; - /** - */ + /** */ contact?: ContactInfoUpdateRequest; - /** - */ + /** */ regionalSettings?: ExtensionRegionalSettingRequest; /** * Initial configuration wizard state * Default: NotStarted */ - setupWizardState?: 'NotStarted' | 'Incomplete' | 'Completed'; + setupWizardState?: "NotStarted" | "Incomplete" | "Completed"; /** * Additional extension identifier, created by partner application @@ -52,20 +49,16 @@ interface ExtensionUpdateRequest { */ password?: string; - /** - */ + /** */ callQueueInfo?: CallQueueInfoRequest; - /** - */ + /** */ transition?: UserTransitionInfo; - /** - */ + /** */ customFields?: CustomFieldInfo[]; - /** - */ + /** */ site?: SiteReference; /** @@ -74,27 +67,32 @@ interface ExtensionUpdateRequest { * product terminology */ type?: - | 'User' - | 'FaxUser' - | 'FlexibleUser' - | 'VirtualUser' - | 'DigitalUser' - | 'Department' - | 'Announcement' - | 'Voicemail' - | 'SharedLinesGroup' - | 'PagingOnly' - | 'IvrMenu' - | 'ApplicationExtension' - | 'ParkLocation' - | 'DelegatedLinesGroup' - | 'GroupCallPickup'; + | "User" + | "FaxUser" + | "FlexibleUser" + | "VirtualUser" + | "DigitalUser" + | "Department" + | "Announcement" + | "Voicemail" + | "SharedLinesGroup" + | "PagingOnly" + | "IvrMenu" + | "ApplicationExtension" + | "ParkLocation" + | "DelegatedLinesGroup" + | "GroupCallPickup"; /** * Extension subtype, if applicable. For any unsupported subtypes * the 'Unknown' value will be returned */ - subType?: 'VideoPro' | 'VideoProPlus' | 'DigitalSignageOnlyRooms' | 'Unknown' | 'Emergency'; + subType?: + | "VideoPro" + | "VideoProPlus" + | "DigitalSignageOnlyRooms" + | "Unknown" + | "Emergency"; /** * List of non-RC internal identifiers assigned to an extension diff --git a/packages/core/src/definitions/ExtensionUpdateShortResult.ts b/packages/core/src/definitions/ExtensionUpdateShortResult.ts index 874681cd..dfd7dca2 100644 --- a/packages/core/src/definitions/ExtensionUpdateShortResult.ts +++ b/packages/core/src/definitions/ExtensionUpdateShortResult.ts @@ -1,4 +1,4 @@ -import type ErrorEntity from './ErrorEntity'; +import type ErrorEntity from "./ErrorEntity"; interface ExtensionUpdateShortResult { /** @@ -9,10 +9,9 @@ interface ExtensionUpdateShortResult { /** * Extension update status */ - status?: 'Fail' | 'Success'; + status?: "Fail" | "Success"; - /** - */ + /** */ errors?: ErrorEntity[]; } diff --git a/packages/core/src/definitions/ExtensionWithRolesCollectionResource.ts b/packages/core/src/definitions/ExtensionWithRolesCollectionResource.ts index 4ee36b9f..f94869fc 100644 --- a/packages/core/src/definitions/ExtensionWithRolesCollectionResource.ts +++ b/packages/core/src/definitions/ExtensionWithRolesCollectionResource.ts @@ -1,6 +1,6 @@ -import type ExtensionWithRolesResource from './ExtensionWithRolesResource'; -import type EnumeratedPagingModel from './EnumeratedPagingModel'; -import type PageNavigationModel from './PageNavigationModel'; +import type ExtensionWithRolesResource from "./ExtensionWithRolesResource"; +import type EnumeratedPagingModel from "./EnumeratedPagingModel"; +import type PageNavigationModel from "./PageNavigationModel"; interface ExtensionWithRolesCollectionResource { /** @@ -8,16 +8,13 @@ interface ExtensionWithRolesCollectionResource { */ uri?: string; - /** - */ + /** */ records?: ExtensionWithRolesResource[]; - /** - */ + /** */ paging?: EnumeratedPagingModel; - /** - */ + /** */ navigation?: PageNavigationModel; } diff --git a/packages/core/src/definitions/ExtensionWithRolesResource.ts b/packages/core/src/definitions/ExtensionWithRolesResource.ts index 5de20ac9..daa7d1b7 100644 --- a/packages/core/src/definitions/ExtensionWithRolesResource.ts +++ b/packages/core/src/definitions/ExtensionWithRolesResource.ts @@ -1,4 +1,4 @@ -import type AssignedRoleResource from './AssignedRoleResource'; +import type AssignedRoleResource from "./AssignedRoleResource"; interface ExtensionWithRolesResource { /** @@ -6,12 +6,10 @@ interface ExtensionWithRolesResource { */ uri?: string; - /** - */ + /** */ extensionId?: string; - /** - */ + /** */ roles?: AssignedRoleResource[]; } diff --git a/packages/core/src/definitions/FavoriteCollection.ts b/packages/core/src/definitions/FavoriteCollection.ts index fa70478c..5d06965d 100644 --- a/packages/core/src/definitions/FavoriteCollection.ts +++ b/packages/core/src/definitions/FavoriteCollection.ts @@ -1,8 +1,7 @@ -import type FavoriteContactResource from './FavoriteContactResource'; +import type FavoriteContactResource from "./FavoriteContactResource"; interface FavoriteCollection { - /** - */ + /** */ records?: FavoriteContactResource[]; } diff --git a/packages/core/src/definitions/FavoriteContactList.ts b/packages/core/src/definitions/FavoriteContactList.ts index 12df392b..d8aaa975 100644 --- a/packages/core/src/definitions/FavoriteContactList.ts +++ b/packages/core/src/definitions/FavoriteContactList.ts @@ -1,4 +1,4 @@ -import type FavoriteContactResource from './FavoriteContactResource'; +import type FavoriteContactResource from "./FavoriteContactResource"; interface FavoriteContactList { /** @@ -6,8 +6,7 @@ interface FavoriteContactList { */ uri?: string; - /** - */ + /** */ records?: FavoriteContactResource[]; } diff --git a/packages/core/src/definitions/FavoriteContactResource.ts b/packages/core/src/definitions/FavoriteContactResource.ts index 372cb259..49abf3ef 100644 --- a/packages/core/src/definitions/FavoriteContactResource.ts +++ b/packages/core/src/definitions/FavoriteContactResource.ts @@ -4,16 +4,13 @@ interface FavoriteContactResource { */ id?: number; - /** - */ + /** */ extensionId?: string; - /** - */ + /** */ accountId?: string; - /** - */ + /** */ contactId?: string; } diff --git a/packages/core/src/definitions/FaxResponse.ts b/packages/core/src/definitions/FaxResponse.ts index 55533e3c..9447d0ec 100644 --- a/packages/core/src/definitions/FaxResponse.ts +++ b/packages/core/src/definitions/FaxResponse.ts @@ -1,6 +1,6 @@ -import type MessageStoreCallerInfoResponseFrom from './MessageStoreCallerInfoResponseFrom'; -import type FaxResponseTo from './FaxResponseTo'; -import type MessageAttachmentInfoIntId from './MessageAttachmentInfoIntId'; +import type MessageStoreCallerInfoResponseFrom from "./MessageStoreCallerInfoResponseFrom"; +import type FaxResponseTo from "./FaxResponseTo"; +import type MessageAttachmentInfoIntId from "./MessageAttachmentInfoIntId"; interface FaxResponse { /** @@ -18,10 +18,9 @@ interface FaxResponse { /** * Message type - 'Fax' */ - type?: 'Fax'; + type?: "Fax"; - /** - */ + /** */ from?: MessageStoreCallerInfoResponseFrom; /** @@ -39,12 +38,12 @@ interface FaxResponse { /** * Message read status */ - readStatus?: 'Read' | 'Unread'; + readStatus?: "Read" | "Unread"; /** * Message priority */ - priority?: 'Normal' | 'High'; + priority?: "Normal" | "High"; /** * List of message attachments @@ -56,7 +55,7 @@ interface FaxResponse { * directions are allowed. For example voicemail messages can * be only inbound */ - direction?: 'Inbound' | 'Outbound'; + direction?: "Inbound" | "Outbound"; /** * Message availability status. Message in 'Deleted' state is still @@ -64,7 +63,7 @@ interface FaxResponse { * that all attachments are already deleted and the message itself is about * to be physically deleted shortly */ - availability?: 'Alive' | 'Deleted' | 'Purged'; + availability?: "Alive" | "Deleted" | "Purged"; /** * Message status. Different message types may have different @@ -74,14 +73,20 @@ interface FaxResponse { * 'SendingFailed', then the 'SendingFailed' value is returned. In other cases * the 'Sent' status is returned */ - messageStatus?: 'Queued' | 'Sent' | 'Delivered' | 'DeliveryFailed' | 'SendingFailed' | 'Received'; + messageStatus?: + | "Queued" + | "Sent" + | "Delivered" + | "DeliveryFailed" + | "SendingFailed" + | "Received"; /** * Fax only. Resolution of a fax message. 'High' for black and * white image scanned at 200 dpi, 'Low' for black and white image scanned * at 100 dpi */ - faxResolution?: 'High' | 'Low'; + faxResolution?: "High" | "Low"; /** * Page count in a fax message diff --git a/packages/core/src/definitions/FaxResponseTo.ts b/packages/core/src/definitions/FaxResponseTo.ts index 3f4f11e6..871b8051 100644 --- a/packages/core/src/definitions/FaxResponseTo.ts +++ b/packages/core/src/definitions/FaxResponseTo.ts @@ -23,7 +23,13 @@ interface FaxResponseTo { * 'SendingFailed', then the 'SendingFailed' value is returned. In other cases * the 'Sent' status is returned */ - messageStatus?: 'Queued' | 'Sent' | 'Delivered' | 'DeliveryFailed' | 'SendingFailed' | 'Received'; + messageStatus?: + | "Queued" + | "Sent" + | "Delivered" + | "DeliveryFailed" + | "SendingFailed" + | "Received"; /** * Contains party location (city, state) if one can be determined diff --git a/packages/core/src/definitions/FeatureInfo.ts b/packages/core/src/definitions/FeatureInfo.ts index 018bff39..752f53b2 100644 --- a/packages/core/src/definitions/FeatureInfo.ts +++ b/packages/core/src/definitions/FeatureInfo.ts @@ -1,5 +1,5 @@ -import type ParamsInfo from './ParamsInfo'; -import type ReasonInfo from './ReasonInfo'; +import type ParamsInfo from "./ParamsInfo"; +import type ReasonInfo from "./ReasonInfo"; interface FeatureInfo { /** @@ -16,12 +16,10 @@ interface FeatureInfo { */ available?: boolean; - /** - */ + /** */ params?: ParamsInfo[]; - /** - */ + /** */ reason?: ReasonInfo; } diff --git a/packages/core/src/definitions/FeatureList.ts b/packages/core/src/definitions/FeatureList.ts index 99475b85..3c60db55 100644 --- a/packages/core/src/definitions/FeatureList.ts +++ b/packages/core/src/definitions/FeatureList.ts @@ -1,8 +1,7 @@ -import type FeatureInfo from './FeatureInfo'; +import type FeatureInfo from "./FeatureInfo"; interface FeatureList { - /** - */ + /** */ records?: FeatureInfo[]; } diff --git a/packages/core/src/definitions/FederatedAccountResource.ts b/packages/core/src/definitions/FederatedAccountResource.ts index 7fe88d66..f3f98218 100644 --- a/packages/core/src/definitions/FederatedAccountResource.ts +++ b/packages/core/src/definitions/FederatedAccountResource.ts @@ -1,8 +1,7 @@ -import type PhoneNumberResource from './PhoneNumberResource'; +import type PhoneNumberResource from "./PhoneNumberResource"; interface FederatedAccountResource { - /** - */ + /** */ companyName?: string; /** @@ -10,8 +9,7 @@ interface FederatedAccountResource { */ conflictCount?: number; - /** - */ + /** */ federatedName?: string; /** @@ -24,8 +22,7 @@ interface FederatedAccountResource { */ linkCreationTime?: string; - /** - */ + /** */ mainNumber?: PhoneNumberResource; } diff --git a/packages/core/src/definitions/FederationResource.ts b/packages/core/src/definitions/FederationResource.ts index f62b7934..16f1fdab 100644 --- a/packages/core/src/definitions/FederationResource.ts +++ b/packages/core/src/definitions/FederationResource.ts @@ -1,8 +1,7 @@ -import type FederatedAccountResource from './FederatedAccountResource'; +import type FederatedAccountResource from "./FederatedAccountResource"; interface FederationResource { - /** - */ + /** */ accounts?: FederatedAccountResource[]; /** @@ -10,12 +9,10 @@ interface FederationResource { */ creationTime?: string; - /** - */ + /** */ displayName?: string; - /** - */ + /** */ id?: string; /** @@ -26,7 +23,7 @@ interface FederationResource { /** * Federation type */ - type?: 'Regular' | 'AdminOnly'; + type?: "Regular" | "AdminOnly"; } export default FederationResource; diff --git a/packages/core/src/definitions/FixedOrderAgents.ts b/packages/core/src/definitions/FixedOrderAgents.ts index 6cae9211..d35f3e65 100644 --- a/packages/core/src/definitions/FixedOrderAgents.ts +++ b/packages/core/src/definitions/FixedOrderAgents.ts @@ -1,8 +1,7 @@ -import type FixedOrderAgentsExtensionInfo from './FixedOrderAgentsExtensionInfo'; +import type FixedOrderAgentsExtensionInfo from "./FixedOrderAgentsExtensionInfo"; interface FixedOrderAgents { - /** - */ + /** */ extension?: FixedOrderAgentsExtensionInfo; /** diff --git a/packages/core/src/definitions/FormattingLocaleInfo.ts b/packages/core/src/definitions/FormattingLocaleInfo.ts index aaaa41e7..200640e6 100644 --- a/packages/core/src/definitions/FormattingLocaleInfo.ts +++ b/packages/core/src/definitions/FormattingLocaleInfo.ts @@ -1,6 +1,5 @@ /** * Formatting language preferences for numbers, dates and currencies - * */ interface FormattingLocaleInfo { /** diff --git a/packages/core/src/definitions/ForwardAllCallsReason.ts b/packages/core/src/definitions/ForwardAllCallsReason.ts index 1e22ceee..b9bef857 100644 --- a/packages/core/src/definitions/ForwardAllCallsReason.ts +++ b/packages/core/src/definitions/ForwardAllCallsReason.ts @@ -3,7 +3,7 @@ interface ForwardAllCallsReason { * Specifies the type of limitation. `ExtensionLimitation` means that the feature is turned off for this particular extension. * `FeatureLimitation` means that the user may enable this feature and setup the rule via the Service Web UI */ - code?: 'ExtensionLimitation' | 'FeatureLimitation'; + code?: "ExtensionLimitation" | "FeatureLimitation"; /** * Error message depending on the type of limitation diff --git a/packages/core/src/definitions/ForwardAllCompanyCallsInfo.ts b/packages/core/src/definitions/ForwardAllCompanyCallsInfo.ts index eb661231..31edfd1c 100644 --- a/packages/core/src/definitions/ForwardAllCompanyCallsInfo.ts +++ b/packages/core/src/definitions/ForwardAllCompanyCallsInfo.ts @@ -1,6 +1,6 @@ -import type RangesInfo from './RangesInfo'; -import type ExtensionShortInfoResource from './ExtensionShortInfoResource'; -import type ForwardAllCallsReason from './ForwardAllCallsReason'; +import type RangesInfo from "./RangesInfo"; +import type ExtensionShortInfoResource from "./ExtensionShortInfoResource"; +import type ForwardAllCallsReason from "./ForwardAllCallsReason"; interface ForwardAllCompanyCallsInfo { /** @@ -20,14 +20,12 @@ interface ForwardAllCompanyCallsInfo { * - bypass greeting to go to selected extension = ['Operator', 'Disconnect', * 'Bypass'] */ - callHandlingAction?: 'Operator' | 'Disconnect' | 'Bypass'; + callHandlingAction?: "Operator" | "Disconnect" | "Bypass"; - /** - */ + /** */ extension?: ExtensionShortInfoResource; - /** - */ + /** */ reason?: ForwardAllCallsReason; } diff --git a/packages/core/src/definitions/ForwardCallPartyResponse.ts b/packages/core/src/definitions/ForwardCallPartyResponse.ts index e3b77a22..59274e7c 100644 --- a/packages/core/src/definitions/ForwardCallPartyResponse.ts +++ b/packages/core/src/definitions/ForwardCallPartyResponse.ts @@ -1,8 +1,8 @@ -import type CallStatusInfo from './CallStatusInfo'; -import type ParkInfo from './ParkInfo'; -import type PartyInfo from './PartyInfo'; -import type OwnerInfo from './OwnerInfo'; -import type RecordingInfo from './RecordingInfo'; +import type CallStatusInfo from "./CallStatusInfo"; +import type ParkInfo from "./ParkInfo"; +import type PartyInfo from "./PartyInfo"; +import type OwnerInfo from "./OwnerInfo"; +import type RecordingInfo from "./RecordingInfo"; /** * Information on a party of a call session @@ -13,8 +13,7 @@ interface ForwardCallPartyResponse { */ id?: string; - /** - */ + /** */ status?: CallStatusInfo; /** @@ -33,41 +32,37 @@ interface ForwardCallPartyResponse { */ standAlone?: boolean; - /** - */ + /** */ park?: ParkInfo; - /** - */ + /** */ from?: PartyInfo; - /** - */ + /** */ to?: PartyInfo; - /** - */ + /** */ owner?: OwnerInfo; /** * Direction of a call */ - direction?: 'Inbound' | 'Outbound'; + direction?: "Inbound" | "Outbound"; /** * A party's role in the conference scenarios. For calls of 'Conference' type only */ - conferenceRole?: 'Host' | 'Participant'; + conferenceRole?: "Host" | "Participant"; /** * A party's role in 'Ring Me'/'RingOut' scenarios. For calls of 'Ringout' type only */ - ringOutRole?: 'Initiator' | 'Target'; + ringOutRole?: "Initiator" | "Target"; /** * A party's role in 'Ring Me'/'RingOut' scenarios. For calls of 'Ringme' type only */ - ringMeRole?: 'Initiator' | 'Target'; + ringMeRole?: "Initiator" | "Target"; /** * Active recordings list diff --git a/packages/core/src/definitions/ForwardTarget.ts b/packages/core/src/definitions/ForwardTarget.ts index 36323df0..ec75280a 100644 --- a/packages/core/src/definitions/ForwardTarget.ts +++ b/packages/core/src/definitions/ForwardTarget.ts @@ -1,7 +1,6 @@ /** * Identifier of a call party the call will be forwarded to. Only **one of** these parameters: * `phoneNumber`, `voicemail` or `extensionNumber` must be specified, otherwise an error is returned. - * */ interface ForwardTarget { /** diff --git a/packages/core/src/definitions/ForwardingInfo.ts b/packages/core/src/definitions/ForwardingInfo.ts index d6aa564b..cd5c05f2 100644 --- a/packages/core/src/definitions/ForwardingInfo.ts +++ b/packages/core/src/definitions/ForwardingInfo.ts @@ -1,4 +1,4 @@ -import type ForwardingRuleInfo from './ForwardingRuleInfo'; +import type ForwardingRuleInfo from "./ForwardingRuleInfo"; /** * Forwarding parameters. Returned if 'ForwardCalls' is specified in 'callHandlingAction'. These settings determine the forwarding numbers to which the call will be forwarded @@ -29,7 +29,7 @@ interface ForwardingInfo { /** * Specifies the order in which the forwarding numbers ring. 'Sequentially' means that forwarding numbers are ringing one at a time, in order of priority. 'Simultaneously' means that forwarding numbers are ring all at the same time */ - ringingMode?: 'Sequentially' | 'Simultaneously'; + ringingMode?: "Sequentially" | "Simultaneously"; /** * Information on a call forwarding rule diff --git a/packages/core/src/definitions/ForwardingInfoCreateRuleRequest.ts b/packages/core/src/definitions/ForwardingInfoCreateRuleRequest.ts index e25b237e..f36e9004 100644 --- a/packages/core/src/definitions/ForwardingInfoCreateRuleRequest.ts +++ b/packages/core/src/definitions/ForwardingInfoCreateRuleRequest.ts @@ -1,4 +1,4 @@ -import type ForwardingRuleCreateRequest from './ForwardingRuleCreateRequest'; +import type ForwardingRuleCreateRequest from "./ForwardingRuleCreateRequest"; /** * Forwarding parameters. Returned if 'ForwardCalls' is specified in 'callHandlingAction'. These settings determine the forwarding numbers to which the call will be forwarded @@ -29,7 +29,7 @@ interface ForwardingInfoCreateRuleRequest { /** * Specifies the order in which forwarding numbers ring. 'Sequentially' means that forwarding numbers are ringing one at a time, in order of priority. 'Simultaneously' means that forwarding numbers are ringing all at the same time. The default value is 'Sequentially' */ - ringingMode?: 'Sequentially' | 'Simultaneously'; + ringingMode?: "Sequentially" | "Simultaneously"; /** * Information on a call forwarding rule diff --git a/packages/core/src/definitions/ForwardingNumberInfo.ts b/packages/core/src/definitions/ForwardingNumberInfo.ts index 00b293ff..4b554f7b 100644 --- a/packages/core/src/definitions/ForwardingNumberInfo.ts +++ b/packages/core/src/definitions/ForwardingNumberInfo.ts @@ -1,5 +1,5 @@ -import type CreateForwardingNumberDeviceInfo from './CreateForwardingNumberDeviceInfo'; -import type ForwardingNumberInfoExtension from './ForwardingNumberInfoExtension'; +import type CreateForwardingNumberDeviceInfo from "./CreateForwardingNumberDeviceInfo"; +import type ForwardingNumberInfoExtension from "./ForwardingNumberInfoExtension"; interface ForwardingNumberInfo { /** @@ -26,30 +26,29 @@ interface ForwardingNumberInfo { /** * Type of option this phone number is used for. Multiple values are accepted */ - features?: ('CallFlip' | 'CallForwarding')[]; + features?: ("CallFlip" | "CallForwarding")[]; /** * Number assigned to the call flip phone number, corresponds to the shortcut dial number */ flipNumber?: string; - /** - */ + /** */ device?: CreateForwardingNumberDeviceInfo; /** * Forwarding phone number type */ type?: - | 'Home' - | 'Mobile' - | 'Work' - | 'PhoneLine' - | 'Outage' - | 'Other' - | 'BusinessMobilePhone' - | 'ExternalCarrier' - | 'ExtensionApps'; + | "Home" + | "Mobile" + | "Work" + | "PhoneLine" + | "Outage" + | "Other" + | "BusinessMobilePhone" + | "ExternalCarrier" + | "ExtensionApps"; /** * Extension information. Returned only if extension type is 'ExtensionApps' diff --git a/packages/core/src/definitions/ForwardingNumberInfoRulesCreateRuleRequest.ts b/packages/core/src/definitions/ForwardingNumberInfoRulesCreateRuleRequest.ts index 92f5766d..2ee43f51 100644 --- a/packages/core/src/definitions/ForwardingNumberInfoRulesCreateRuleRequest.ts +++ b/packages/core/src/definitions/ForwardingNumberInfoRulesCreateRuleRequest.ts @@ -8,15 +8,15 @@ interface ForwardingNumberInfoRulesCreateRuleRequest { * Forwarding phone number type */ type?: - | 'Home' - | 'Mobile' - | 'Work' - | 'PhoneLine' - | 'Outage' - | 'Other' - | 'BusinessMobilePhone' - | 'ExternalCarrier' - | 'ExtensionApps'; + | "Home" + | "Mobile" + | "Work" + | "PhoneLine" + | "Outage" + | "Other" + | "BusinessMobilePhone" + | "ExternalCarrier" + | "ExtensionApps"; /** * Forwarding/Call flip phone number diff --git a/packages/core/src/definitions/ForwardingNumberResource.ts b/packages/core/src/definitions/ForwardingNumberResource.ts index 25ac58da..b67e356f 100644 --- a/packages/core/src/definitions/ForwardingNumberResource.ts +++ b/packages/core/src/definitions/ForwardingNumberResource.ts @@ -4,30 +4,25 @@ interface ForwardingNumberResource { */ uri?: string; - /** - */ + /** */ id?: string; - /** - */ + /** */ phoneNumber?: string; - /** - */ + /** */ label?: string; - /** - */ - features?: ('CallFlip' | 'CallForwarding')[]; + /** */ + features?: ("CallFlip" | "CallForwarding")[]; - /** - */ + /** */ flipNumber?: string; /** * Forwarding phone number type */ - type?: 'Home' | 'Mobile' | 'Work' | 'PhoneLine' | 'Outage' | 'Other'; + type?: "Home" | "Mobile" | "Work" | "PhoneLine" | "Outage" | "Other"; } export default ForwardingNumberResource; diff --git a/packages/core/src/definitions/ForwardingRuleCreateRequest.ts b/packages/core/src/definitions/ForwardingRuleCreateRequest.ts index 2681e59f..8fbddd37 100644 --- a/packages/core/src/definitions/ForwardingRuleCreateRequest.ts +++ b/packages/core/src/definitions/ForwardingRuleCreateRequest.ts @@ -1,4 +1,4 @@ -import type ForwardingNumberInfoRulesCreateRuleRequest from './ForwardingNumberInfoRulesCreateRuleRequest'; +import type ForwardingNumberInfoRulesCreateRuleRequest from "./ForwardingNumberInfoRulesCreateRuleRequest"; interface ForwardingRuleCreateRequest { /** diff --git a/packages/core/src/definitions/ForwardingRuleInfo.ts b/packages/core/src/definitions/ForwardingRuleInfo.ts index ca10f1d5..584eb2f9 100644 --- a/packages/core/src/definitions/ForwardingRuleInfo.ts +++ b/packages/core/src/definitions/ForwardingRuleInfo.ts @@ -1,4 +1,4 @@ -import type CreateAnsweringRuleForwardingNumberInfo from './CreateAnsweringRuleForwardingNumberInfo'; +import type CreateAnsweringRuleForwardingNumberInfo from "./CreateAnsweringRuleForwardingNumberInfo"; interface ForwardingRuleInfo { /** diff --git a/packages/core/src/definitions/GetAccountInfoResponse.ts b/packages/core/src/definitions/GetAccountInfoResponse.ts index b4d923bb..5560f688 100644 --- a/packages/core/src/definitions/GetAccountInfoResponse.ts +++ b/packages/core/src/definitions/GetAccountInfoResponse.ts @@ -1,9 +1,9 @@ -import type AccountOperatorInfo from './AccountOperatorInfo'; -import type ServiceInfo from './ServiceInfo'; -import type SignupInfoResource from './SignupInfoResource'; -import type AccountStatusInfo from './AccountStatusInfo'; -import type AccountRegionalSettings from './AccountRegionalSettings'; -import type AccountLimits from './AccountLimits'; +import type AccountOperatorInfo from "./AccountOperatorInfo"; +import type ServiceInfo from "./ServiceInfo"; +import type SignupInfoResource from "./SignupInfoResource"; +import type AccountStatusInfo from "./AccountStatusInfo"; +import type AccountRegionalSettings from "./AccountRegionalSettings"; +import type AccountLimits from "./AccountLimits"; interface GetAccountInfoResponse { /** @@ -28,8 +28,7 @@ interface GetAccountInfoResponse { */ mainNumber?: string; - /** - */ + /** */ operator?: AccountOperatorInfo; /** @@ -38,30 +37,26 @@ interface GetAccountInfoResponse { */ partnerId?: string; - /** - */ + /** */ serviceInfo?: ServiceInfo; /** * Initial configuration wizard state */ - setupWizardState?: 'NotStarted' | 'Incomplete' | 'Completed' | 'Unknown'; + setupWizardState?: "NotStarted" | "Incomplete" | "Completed" | "Unknown"; - /** - */ + /** */ signupInfo?: SignupInfoResource; /** * Status of an account */ - status?: 'Initial' | 'Unconfirmed' | 'Confirmed' | 'Disabled'; + status?: "Initial" | "Unconfirmed" | "Confirmed" | "Disabled"; - /** - */ + /** */ statusInfo?: AccountStatusInfo; - /** - */ + /** */ regionalSettings?: AccountRegionalSettings; /** @@ -85,8 +80,7 @@ interface GetAccountInfoResponse { */ cfid?: string; - /** - */ + /** */ limits?: AccountLimits; } diff --git a/packages/core/src/definitions/GetBulkAddTaskResultsV2Response.ts b/packages/core/src/definitions/GetBulkAddTaskResultsV2Response.ts index 6603ab69..3a9970fc 100644 --- a/packages/core/src/definitions/GetBulkAddTaskResultsV2Response.ts +++ b/packages/core/src/definitions/GetBulkAddTaskResultsV2Response.ts @@ -1,4 +1,4 @@ -import type AddPhoneNumbersResponseItem from './AddPhoneNumbersResponseItem'; +import type AddPhoneNumbersResponseItem from "./AddPhoneNumbersResponseItem"; interface GetBulkAddTaskResultsV2Response { /** diff --git a/packages/core/src/definitions/GetConferencingInfoResponse.ts b/packages/core/src/definitions/GetConferencingInfoResponse.ts index 1c449a74..bc2b1c1b 100644 --- a/packages/core/src/definitions/GetConferencingInfoResponse.ts +++ b/packages/core/src/definitions/GetConferencingInfoResponse.ts @@ -1,4 +1,4 @@ -import type PhoneNumberInfoConferencing from './PhoneNumberInfoConferencing'; +import type PhoneNumberInfoConferencing from "./PhoneNumberInfoConferencing"; interface GetConferencingInfoResponse { /** diff --git a/packages/core/src/definitions/GetExtensionDevicesResponse.ts b/packages/core/src/definitions/GetExtensionDevicesResponse.ts index 607c5762..e0dc4802 100644 --- a/packages/core/src/definitions/GetExtensionDevicesResponse.ts +++ b/packages/core/src/definitions/GetExtensionDevicesResponse.ts @@ -1,6 +1,6 @@ -import type DeviceResource from './DeviceResource'; -import type PageNavigationModel from './PageNavigationModel'; -import type EnumeratedPagingModel from './EnumeratedPagingModel'; +import type DeviceResource from "./DeviceResource"; +import type PageNavigationModel from "./PageNavigationModel"; +import type EnumeratedPagingModel from "./EnumeratedPagingModel"; interface GetExtensionDevicesResponse { /** diff --git a/packages/core/src/definitions/GetExtensionEmergencyLocationsParameters.ts b/packages/core/src/definitions/GetExtensionEmergencyLocationsParameters.ts index 3d220b70..11081050 100644 --- a/packages/core/src/definitions/GetExtensionEmergencyLocationsParameters.ts +++ b/packages/core/src/definitions/GetExtensionEmergencyLocationsParameters.ts @@ -16,8 +16,7 @@ interface GetExtensionEmergencyLocationsParameters { */ searchString?: string; - /** - */ + /** */ domesticCountryId?: string; /** @@ -27,18 +26,18 @@ interface GetExtensionEmergencyLocationsParameters { * Default: +visibility */ orderBy?: - | '+name' - | '+siteName' - | '+address' - | '+addressStatus' - | '+usageStatus' - | '+visibility' - | '-name' - | '-siteName' - | '-address' - | '-addressStatus' - | '-usageStatus' - | '-visibility'; + | "+name" + | "+siteName" + | "+address" + | "+addressStatus" + | "+usageStatus" + | "+visibility" + | "-name" + | "-siteName" + | "-address" + | "-addressStatus" + | "-usageStatus" + | "-visibility"; /** * Indicates a page size (number of items). The values supported: @@ -56,8 +55,7 @@ interface GetExtensionEmergencyLocationsParameters { */ page?: number; - /** - */ + /** */ visibility?: string; } diff --git a/packages/core/src/definitions/GetExtensionForwardingNumberListResponse.ts b/packages/core/src/definitions/GetExtensionForwardingNumberListResponse.ts index 6b328426..08b67be3 100644 --- a/packages/core/src/definitions/GetExtensionForwardingNumberListResponse.ts +++ b/packages/core/src/definitions/GetExtensionForwardingNumberListResponse.ts @@ -1,6 +1,6 @@ -import type ForwardingNumberInfo from './ForwardingNumberInfo'; -import type PageNavigationModel from './PageNavigationModel'; -import type EnumeratedPagingModel from './EnumeratedPagingModel'; +import type ForwardingNumberInfo from "./ForwardingNumberInfo"; +import type PageNavigationModel from "./PageNavigationModel"; +import type EnumeratedPagingModel from "./EnumeratedPagingModel"; interface GetExtensionForwardingNumberListResponse { /** @@ -14,12 +14,10 @@ interface GetExtensionForwardingNumberListResponse { */ records?: ForwardingNumberInfo[]; - /** - */ + /** */ navigation?: PageNavigationModel; - /** - */ + /** */ paging?: EnumeratedPagingModel; } diff --git a/packages/core/src/definitions/GetExtensionGrantListResponse.ts b/packages/core/src/definitions/GetExtensionGrantListResponse.ts index b87bc445..8b6e3d6d 100644 --- a/packages/core/src/definitions/GetExtensionGrantListResponse.ts +++ b/packages/core/src/definitions/GetExtensionGrantListResponse.ts @@ -1,6 +1,6 @@ -import type GrantInfo from './GrantInfo'; -import type PageNavigationModel from './PageNavigationModel'; -import type EnumeratedPagingModel from './EnumeratedPagingModel'; +import type GrantInfo from "./GrantInfo"; +import type PageNavigationModel from "./PageNavigationModel"; +import type EnumeratedPagingModel from "./EnumeratedPagingModel"; interface GetExtensionGrantListResponse { /** diff --git a/packages/core/src/definitions/GetExtensionInfoResponse.ts b/packages/core/src/definitions/GetExtensionInfoResponse.ts index e0225f97..157b4541 100644 --- a/packages/core/src/definitions/GetExtensionInfoResponse.ts +++ b/packages/core/src/definitions/GetExtensionInfoResponse.ts @@ -1,18 +1,18 @@ -import type GetExtensionAccountInfo from './GetExtensionAccountInfo'; -import type ContactInfo from './ContactInfo'; -import type CostCenterInfo from './CostCenterInfo'; -import type CustomFieldInfo from './CustomFieldInfo'; -import type DepartmentInfo from './DepartmentInfo'; -import type ExtensionPermissions from './ExtensionPermissions'; -import type ProfileImageInfo from './ProfileImageInfo'; -import type ReferenceInfo from './ReferenceInfo'; -import type Roles from './Roles'; -import type RegionalSettings from './RegionalSettings'; -import type ExtensionServiceFeatureInfo from './ExtensionServiceFeatureInfo'; -import type ExtensionStatusInfo from './ExtensionStatusInfo'; -import type CallQueueExtensionInfo from './CallQueueExtensionInfo'; -import type ProvisioningSiteInfo from './ProvisioningSiteInfo'; -import type AssignedCountryInfo from './AssignedCountryInfo'; +import type GetExtensionAccountInfo from "./GetExtensionAccountInfo"; +import type ContactInfo from "./ContactInfo"; +import type CostCenterInfo from "./CostCenterInfo"; +import type CustomFieldInfo from "./CustomFieldInfo"; +import type DepartmentInfo from "./DepartmentInfo"; +import type ExtensionPermissions from "./ExtensionPermissions"; +import type ProfileImageInfo from "./ProfileImageInfo"; +import type ReferenceInfo from "./ReferenceInfo"; +import type Roles from "./Roles"; +import type RegionalSettings from "./RegionalSettings"; +import type ExtensionServiceFeatureInfo from "./ExtensionServiceFeatureInfo"; +import type ExtensionStatusInfo from "./ExtensionStatusInfo"; +import type CallQueueExtensionInfo from "./CallQueueExtensionInfo"; +import type ProvisioningSiteInfo from "./ProvisioningSiteInfo"; +import type AssignedCountryInfo from "./AssignedCountryInfo"; interface GetExtensionInfoResponse { /** @@ -27,20 +27,16 @@ interface GetExtensionInfoResponse { */ uri?: string; - /** - */ + /** */ account?: GetExtensionAccountInfo; - /** - */ + /** */ contact?: ContactInfo; - /** - */ + /** */ costCenter?: CostCenterInfo; - /** - */ + /** */ customFields?: CustomFieldInfo[]; /** @@ -57,8 +53,7 @@ interface GetExtensionInfoResponse { */ extensionNumber?: string; - /** - */ + /** */ extensionNumbers?: string[]; /** @@ -79,12 +74,10 @@ interface GetExtensionInfoResponse { */ partnerId?: string; - /** - */ + /** */ permissions?: ExtensionPermissions; - /** - */ + /** */ profileImage?: ProfileImageInfo; /** @@ -92,12 +85,10 @@ interface GetExtensionInfoResponse { */ references?: ReferenceInfo[]; - /** - */ + /** */ roles?: Roles[]; - /** - */ + /** */ regionalSettings?: RegionalSettings; /** @@ -111,15 +102,14 @@ interface GetExtensionInfoResponse { * Initial configuration wizard state * Default: NotStarted */ - setupWizardState?: 'NotStarted' | 'Incomplete' | 'Completed'; + setupWizardState?: "NotStarted" | "Incomplete" | "Completed"; /** * Extension status */ - status?: 'Enabled' | 'Disabled' | 'Frozen' | 'NotActivated' | 'Unassigned'; + status?: "Enabled" | "Disabled" | "Frozen" | "NotActivated" | "Unassigned"; - /** - */ + /** */ statusInfo?: ExtensionStatusInfo; /** @@ -128,36 +118,40 @@ interface GetExtensionInfoResponse { * terminology */ type?: - | 'User' - | 'FaxUser' - | 'FlexibleUser' - | 'VirtualUser' - | 'DigitalUser' - | 'Department' - | 'Announcement' - | 'Voicemail' - | 'SharedLinesGroup' - | 'PagingOnly' - | 'IvrMenu' - | 'ApplicationExtension' - | 'ParkLocation' - | 'Bot' - | 'Room' - | 'RoomConnector' - | 'Limited' - | 'Site' - | 'ProxyAdmin' - | 'DelegatedLinesGroup' - | 'GroupCallPickup'; + | "User" + | "FaxUser" + | "FlexibleUser" + | "VirtualUser" + | "DigitalUser" + | "Department" + | "Announcement" + | "Voicemail" + | "SharedLinesGroup" + | "PagingOnly" + | "IvrMenu" + | "ApplicationExtension" + | "ParkLocation" + | "Bot" + | "Room" + | "RoomConnector" + | "Limited" + | "Site" + | "ProxyAdmin" + | "DelegatedLinesGroup" + | "GroupCallPickup"; /** * Extension subtype, if applicable. For any unsupported subtypes the * `Unknown` value will be returned */ - subType?: 'VideoPro' | 'VideoProPlus' | 'DigitalSignage' | 'Unknown' | 'Emergency'; + subType?: + | "VideoPro" + | "VideoProPlus" + | "DigitalSignage" + | "Unknown" + | "Emergency"; - /** - */ + /** */ callQueueInfo?: CallQueueExtensionInfo; /** @@ -166,12 +160,10 @@ interface GetExtensionInfoResponse { */ hidden?: boolean; - /** - */ + /** */ site?: ProvisioningSiteInfo; - /** - */ + /** */ assignedCountry?: AssignedCountryInfo; /** @@ -184,7 +176,7 @@ interface GetExtensionInfoResponse { /** * Site access status for cross-site limitation */ - siteAccess?: 'Limited' | 'Unlimited'; + siteAccess?: "Limited" | "Unlimited"; } export default GetExtensionInfoResponse; diff --git a/packages/core/src/definitions/GetExtensionListInfoResponse.ts b/packages/core/src/definitions/GetExtensionListInfoResponse.ts index 86b8dfe6..e7fc25f4 100644 --- a/packages/core/src/definitions/GetExtensionListInfoResponse.ts +++ b/packages/core/src/definitions/GetExtensionListInfoResponse.ts @@ -1,10 +1,10 @@ -import type ContactInfo from './ContactInfo'; -import type ExtensionPermissions from './ExtensionPermissions'; -import type ProfileImageInfo from './ProfileImageInfo'; -import type CallQueueExtensionInfo from './CallQueueExtensionInfo'; -import type ProvisioningSiteInfo from './ProvisioningSiteInfo'; -import type AssignedCountryInfo from './AssignedCountryInfo'; -import type CostCenterInfo from './CostCenterInfo'; +import type ContactInfo from "./ContactInfo"; +import type ExtensionPermissions from "./ExtensionPermissions"; +import type ProfileImageInfo from "./ProfileImageInfo"; +import type CallQueueExtensionInfo from "./CallQueueExtensionInfo"; +import type ProvisioningSiteInfo from "./ProvisioningSiteInfo"; +import type AssignedCountryInfo from "./AssignedCountryInfo"; +import type CostCenterInfo from "./CostCenterInfo"; interface GetExtensionListInfoResponse { /** @@ -19,8 +19,7 @@ interface GetExtensionListInfoResponse { */ uri?: string; - /** - */ + /** */ contact?: ContactInfo; /** @@ -34,18 +33,16 @@ interface GetExtensionListInfoResponse { */ name?: string; - /** - */ + /** */ permissions?: ExtensionPermissions; - /** - */ + /** */ profileImage?: ProfileImageInfo; /** * Extension status */ - status?: 'Enabled' | 'Disabled' | 'Frozen' | 'NotActivated' | 'Unassigned'; + status?: "Enabled" | "Disabled" | "Frozen" | "NotActivated" | "Unassigned"; /** * Extension type. Please note that legacy `Department` extension type @@ -53,35 +50,39 @@ interface GetExtensionListInfoResponse { * terminology */ type?: - | 'User' - | 'FaxUser' - | 'FlexibleUser' - | 'VirtualUser' - | 'DigitalUser' - | 'Department' - | 'Announcement' - | 'Voicemail' - | 'SharedLinesGroup' - | 'PagingOnly' - | 'IvrMenu' - | 'ApplicationExtension' - | 'ParkLocation' - | 'Bot' - | 'Room' - | 'Limited' - | 'Site' - | 'ProxyAdmin' - | 'DelegatedLinesGroup' - | 'GroupCallPickup'; + | "User" + | "FaxUser" + | "FlexibleUser" + | "VirtualUser" + | "DigitalUser" + | "Department" + | "Announcement" + | "Voicemail" + | "SharedLinesGroup" + | "PagingOnly" + | "IvrMenu" + | "ApplicationExtension" + | "ParkLocation" + | "Bot" + | "Room" + | "Limited" + | "Site" + | "ProxyAdmin" + | "DelegatedLinesGroup" + | "GroupCallPickup"; /** * Extension subtype, if applicable. For any unsupported subtypes the * `Unknown` value will be returned */ - subType?: 'VideoPro' | 'VideoProPlus' | 'DigitalSignage' | 'Unknown' | 'Emergency'; + subType?: + | "VideoPro" + | "VideoProPlus" + | "DigitalSignage" + | "Unknown" + | "Emergency"; - /** - */ + /** */ callQueueInfo?: CallQueueExtensionInfo; /** @@ -90,16 +91,13 @@ interface GetExtensionListInfoResponse { */ hidden?: boolean; - /** - */ + /** */ site?: ProvisioningSiteInfo; - /** - */ + /** */ assignedCountry?: AssignedCountryInfo; - /** - */ + /** */ costCenter?: CostCenterInfo; /** diff --git a/packages/core/src/definitions/GetExtensionListResponse.ts b/packages/core/src/definitions/GetExtensionListResponse.ts index 47633741..fb9f4def 100644 --- a/packages/core/src/definitions/GetExtensionListResponse.ts +++ b/packages/core/src/definitions/GetExtensionListResponse.ts @@ -1,6 +1,6 @@ -import type GetExtensionListInfoResponse from './GetExtensionListInfoResponse'; -import type PageNavigationModel from './PageNavigationModel'; -import type EnumeratedPagingModel from './EnumeratedPagingModel'; +import type GetExtensionListInfoResponse from "./GetExtensionListInfoResponse"; +import type PageNavigationModel from "./PageNavigationModel"; +import type EnumeratedPagingModel from "./EnumeratedPagingModel"; interface GetExtensionListResponse { /** @@ -15,12 +15,10 @@ interface GetExtensionListResponse { */ records?: GetExtensionListInfoResponse[]; - /** - */ + /** */ navigation?: PageNavigationModel; - /** - */ + /** */ paging?: EnumeratedPagingModel; } diff --git a/packages/core/src/definitions/GetExtensionPhoneNumbersResponse.ts b/packages/core/src/definitions/GetExtensionPhoneNumbersResponse.ts index 35b7f700..2e1ce4d3 100644 --- a/packages/core/src/definitions/GetExtensionPhoneNumbersResponse.ts +++ b/packages/core/src/definitions/GetExtensionPhoneNumbersResponse.ts @@ -1,6 +1,6 @@ -import type UserPhoneNumberInfo from './UserPhoneNumberInfo'; -import type PageNavigationModel from './PageNavigationModel'; -import type EnumeratedPagingModel from './EnumeratedPagingModel'; +import type UserPhoneNumberInfo from "./UserPhoneNumberInfo"; +import type PageNavigationModel from "./PageNavigationModel"; +import type EnumeratedPagingModel from "./EnumeratedPagingModel"; interface GetExtensionPhoneNumbersResponse { /** diff --git a/packages/core/src/definitions/GetInternalTextMessageInfoResponse.ts b/packages/core/src/definitions/GetInternalTextMessageInfoResponse.ts index 6cc2c9c3..ae5937fd 100644 --- a/packages/core/src/definitions/GetInternalTextMessageInfoResponse.ts +++ b/packages/core/src/definitions/GetInternalTextMessageInfoResponse.ts @@ -1,7 +1,7 @@ -import type MessageAttachmentInfo from './MessageAttachmentInfo'; -import type ConversationInfo from './ConversationInfo'; -import type MessageStoreCallerInfoResponseFrom from './MessageStoreCallerInfoResponseFrom'; -import type MessageStoreCallerInfoResponseTo from './MessageStoreCallerInfoResponseTo'; +import type MessageAttachmentInfo from "./MessageAttachmentInfo"; +import type ConversationInfo from "./ConversationInfo"; +import type MessageStoreCallerInfoResponseFrom from "./MessageStoreCallerInfoResponseFrom"; +import type MessageStoreCallerInfoResponseTo from "./MessageStoreCallerInfoResponseTo"; interface GetInternalTextMessageInfoResponse { /** @@ -27,7 +27,7 @@ interface GetInternalTextMessageInfoResponse { * that all attachments are already deleted and the message itself is about * to be physically deleted shortly */ - availability?: 'Alive' | 'Deleted' | 'Purged'; + availability?: "Alive" | "Deleted" | "Purged"; /** * SMS and Pager only. Identifier of a conversation that the message @@ -36,8 +36,7 @@ interface GetInternalTextMessageInfoResponse { */ conversationId?: number; - /** - */ + /** */ conversation?: ConversationInfo; /** @@ -52,10 +51,9 @@ interface GetInternalTextMessageInfoResponse { * directions are allowed. For example voicemail messages can * be only inbound */ - direction?: 'Inbound' | 'Outbound'; + direction?: "Inbound" | "Outbound"; - /** - */ + /** */ from?: MessageStoreCallerInfoResponseFrom; /** @@ -73,7 +71,13 @@ interface GetInternalTextMessageInfoResponse { * 'SendingFailed', then the 'SendingFailed' value is returned. In other cases * the 'Sent' status is returned */ - messageStatus?: 'Queued' | 'Sent' | 'Delivered' | 'DeliveryFailed' | 'SendingFailed' | 'Received'; + messageStatus?: + | "Queued" + | "Sent" + | "Delivered" + | "DeliveryFailed" + | "SendingFailed" + | "Received"; /** * Pager only. `true` if at least one of a message recipients @@ -84,12 +88,12 @@ interface GetInternalTextMessageInfoResponse { /** * Message priority */ - priority?: 'Normal' | 'High'; + priority?: "Normal" | "High"; /** * Message read status */ - readStatus?: 'Read' | 'Unread'; + readStatus?: "Read" | "Unread"; /** * Message subject. For SMS and Pager messages it replicates message @@ -105,7 +109,7 @@ interface GetInternalTextMessageInfoResponse { /** * Message type */ - type?: 'Fax' | 'SMS' | 'VoiceMail' | 'Pager' | 'Text'; + type?: "Fax" | "SMS" | "VoiceMail" | "Pager" | "Text"; } export default GetInternalTextMessageInfoResponse; diff --git a/packages/core/src/definitions/GetLocationDeletionMultiResponse.ts b/packages/core/src/definitions/GetLocationDeletionMultiResponse.ts index 99bea192..144d5bba 100644 --- a/packages/core/src/definitions/GetLocationDeletionMultiResponse.ts +++ b/packages/core/src/definitions/GetLocationDeletionMultiResponse.ts @@ -1,16 +1,13 @@ -import type LocationDeletionInfo from './LocationDeletionInfo'; +import type LocationDeletionInfo from "./LocationDeletionInfo"; interface GetLocationDeletionMultiResponse { - /** - */ - deletion?: 'Forbidden' | 'Restricted' | 'Allowed'; + /** */ + deletion?: "Forbidden" | "Restricted" | "Allowed"; - /** - */ - reassignment?: 'Forbidden' | 'Allowed'; + /** */ + reassignment?: "Forbidden" | "Allowed"; - /** - */ + /** */ emergencyLocations?: LocationDeletionInfo[]; } diff --git a/packages/core/src/definitions/GetLocationListResponse.ts b/packages/core/src/definitions/GetLocationListResponse.ts index a3e03574..9732d56f 100644 --- a/packages/core/src/definitions/GetLocationListResponse.ts +++ b/packages/core/src/definitions/GetLocationListResponse.ts @@ -1,6 +1,6 @@ -import type LocationInfo from './LocationInfo'; -import type PageNavigationModel from './PageNavigationModel'; -import type EnumeratedPagingModel from './EnumeratedPagingModel'; +import type LocationInfo from "./LocationInfo"; +import type PageNavigationModel from "./PageNavigationModel"; +import type EnumeratedPagingModel from "./EnumeratedPagingModel"; interface GetLocationListResponse { /** diff --git a/packages/core/src/definitions/GetMessageInfoMultiResponse.ts b/packages/core/src/definitions/GetMessageInfoMultiResponse.ts index a0f29727..bec48226 100644 --- a/packages/core/src/definitions/GetMessageInfoMultiResponse.ts +++ b/packages/core/src/definitions/GetMessageInfoMultiResponse.ts @@ -1,4 +1,4 @@ -import type GetMessageInfoResponse from './GetMessageInfoResponse'; +import type GetMessageInfoResponse from "./GetMessageInfoResponse"; interface GetMessageInfoMultiResponse { /** diff --git a/packages/core/src/definitions/GetMessageInfoResponse.ts b/packages/core/src/definitions/GetMessageInfoResponse.ts index 5db01eec..462ee4c5 100644 --- a/packages/core/src/definitions/GetMessageInfoResponse.ts +++ b/packages/core/src/definitions/GetMessageInfoResponse.ts @@ -1,8 +1,8 @@ -import type MessageAttachmentInfo from './MessageAttachmentInfo'; -import type ConversationInfo from './ConversationInfo'; -import type MessageStoreCallerInfoResponseFrom from './MessageStoreCallerInfoResponseFrom'; -import type MessageStoreCallerInfoResponseTo from './MessageStoreCallerInfoResponseTo'; -import type VoicemailOwnerResource from './VoicemailOwnerResource'; +import type MessageAttachmentInfo from "./MessageAttachmentInfo"; +import type ConversationInfo from "./ConversationInfo"; +import type MessageStoreCallerInfoResponseFrom from "./MessageStoreCallerInfoResponseFrom"; +import type MessageStoreCallerInfoResponseTo from "./MessageStoreCallerInfoResponseTo"; +import type VoicemailOwnerResource from "./VoicemailOwnerResource"; interface GetMessageInfoResponse { /** @@ -34,7 +34,7 @@ interface GetMessageInfoResponse { * that all attachments are already deleted and the message itself is about * to be physically deleted shortly */ - availability?: 'Alive' | 'Deleted' | 'Purged'; + availability?: "Alive" | "Deleted" | "Purged"; /** * SMS and Pager only. Identifier of a conversation the message @@ -43,8 +43,7 @@ interface GetMessageInfoResponse { */ conversationId?: number; - /** - */ + /** */ conversation?: ConversationInfo; /** @@ -59,7 +58,7 @@ interface GetMessageInfoResponse { * directions are allowed. For example voicemail messages can * be only inbound */ - direction?: 'Inbound' | 'Outbound'; + direction?: "Inbound" | "Outbound"; /** * Fax only. Page count in a fax message @@ -72,10 +71,9 @@ interface GetMessageInfoResponse { * white image scanned at 200 dpi, 'Low' for black and white image scanned * at 100 dpi */ - faxResolution?: 'High' | 'Low'; + faxResolution?: "High" | "Low"; - /** - */ + /** */ from?: MessageStoreCallerInfoResponseFrom; /** @@ -93,7 +91,13 @@ interface GetMessageInfoResponse { * 'SendingFailed', then the 'SendingFailed' value is returned. In other cases * the 'Sent' status is returned */ - messageStatus?: 'Queued' | 'Sent' | 'Delivered' | 'DeliveryFailed' | 'SendingFailed' | 'Received'; + messageStatus?: + | "Queued" + | "Sent" + | "Delivered" + | "DeliveryFailed" + | "SendingFailed" + | "Received"; /** * Pager only. `true` if at least one of the message recipients is @@ -104,12 +108,12 @@ interface GetMessageInfoResponse { /** * Message priority */ - priority?: 'Normal' | 'High'; + priority?: "Normal" | "High"; /** * Message read status */ - readStatus?: 'Read' | 'Unread'; + readStatus?: "Read" | "Unread"; /** * SMS only. Date/time when outbound SMS was delivered to recipient's @@ -141,7 +145,7 @@ interface GetMessageInfoResponse { /** * Message type */ - type?: 'Fax' | 'SMS' | 'VoiceMail' | 'Pager' | 'Text'; + type?: "Fax" | "SMS" | "VoiceMail" | "Pager" | "Text"; /** * Voicemail only. Status of a voicemail to text transcription. @@ -149,13 +153,13 @@ interface GetMessageInfoResponse { * the 'NotAvailable' value is returned */ vmTranscriptionStatus?: - | 'NotAvailable' - | 'InProgress' - | 'TimedOut' - | 'Completed' - | 'CompletedPartially' - | 'Failed' - | 'Unknown'; + | "NotAvailable" + | "InProgress" + | "TimedOut" + | "Completed" + | "CompletedPartially" + | "Failed" + | "Unknown"; /** * Cover page identifier. If coverIndex is set to '0' (zero) cover @@ -173,8 +177,7 @@ interface GetMessageInfoResponse { */ coverPageText?: string; - /** - */ + /** */ owner?: VoicemailOwnerResource; } diff --git a/packages/core/src/definitions/GetMessageList.ts b/packages/core/src/definitions/GetMessageList.ts index beddea2f..dd7499aa 100644 --- a/packages/core/src/definitions/GetMessageList.ts +++ b/packages/core/src/definitions/GetMessageList.ts @@ -1,6 +1,6 @@ -import type GetMessageInfoResponse from './GetMessageInfoResponse'; -import type MessagingNavigationInfo from './MessagingNavigationInfo'; -import type MessagingPagingInfo from './MessagingPagingInfo'; +import type GetMessageInfoResponse from "./GetMessageInfoResponse"; +import type MessagingNavigationInfo from "./MessagingNavigationInfo"; +import type MessagingPagingInfo from "./MessagingPagingInfo"; interface GetMessageList { /** diff --git a/packages/core/src/definitions/GetMessageSyncResponse.ts b/packages/core/src/definitions/GetMessageSyncResponse.ts index ccf792e1..86f12dec 100644 --- a/packages/core/src/definitions/GetMessageSyncResponse.ts +++ b/packages/core/src/definitions/GetMessageSyncResponse.ts @@ -1,5 +1,5 @@ -import type GetMessageInfoResponse from './GetMessageInfoResponse'; -import type SyncInfoMessages from './SyncInfoMessages'; +import type GetMessageInfoResponse from "./GetMessageInfoResponse"; +import type SyncInfoMessages from "./SyncInfoMessages"; interface GetMessageSyncResponse { /** diff --git a/packages/core/src/definitions/GetPresenceInfo.ts b/packages/core/src/definitions/GetPresenceInfo.ts index edacea3b..5843dfc9 100644 --- a/packages/core/src/definitions/GetPresenceInfo.ts +++ b/packages/core/src/definitions/GetPresenceInfo.ts @@ -1,5 +1,5 @@ -import type GetPresenceExtensionInfo from './GetPresenceExtensionInfo'; -import type ActiveCallInfo from './ActiveCallInfo'; +import type GetPresenceExtensionInfo from "./GetPresenceExtensionInfo"; +import type ActiveCallInfo from "./ActiveCallInfo"; interface GetPresenceInfo { /** @@ -17,7 +17,7 @@ interface GetPresenceInfo { * Configures the user presence visibility. When the `allowSeeMyPresence` parameter is set to `true`, * the following visibility options are supported via this parameter - All, None, PermittedUsers */ - callerIdVisibility?: 'All' | 'None' | 'PermittedUsers'; + callerIdVisibility?: "All" | "None" | "PermittedUsers"; /** * Extended DnD (Do not Disturb) status. Cannot be set for Department/Announcement/Voicemail @@ -29,10 +29,13 @@ interface GetPresenceInfo { * status can be set through the old RingCentral user interface and is available * for some migrated accounts only. */ - dndStatus?: 'TakeAllCalls' | 'DoNotAcceptAnyCalls' | 'DoNotAcceptDepartmentCalls' | 'TakeDepartmentCallsOnly'; + dndStatus?: + | "TakeAllCalls" + | "DoNotAcceptAnyCalls" + | "DoNotAcceptDepartmentCalls" + | "TakeDepartmentCallsOnly"; - /** - */ + /** */ extension?: GetPresenceExtensionInfo; /** @@ -48,7 +51,7 @@ interface GetPresenceInfo { /** * Aggregated presence status, calculated from a number of sources */ - presenceStatus?: 'Offline' | 'Busy' | 'Available'; + presenceStatus?: "Offline" | "Busy" | "Available"; /** * If `true` enables to ring extension phone, if any user monitored by this extension is ringing @@ -58,17 +61,22 @@ interface GetPresenceInfo { /** * Telephony presence status */ - telephonyStatus?: 'NoCall' | 'CallConnected' | 'Ringing' | 'OnHold' | 'ParkedCall'; + telephonyStatus?: + | "NoCall" + | "CallConnected" + | "Ringing" + | "OnHold" + | "ParkedCall"; /** * User-defined presence status (as previously published by the user) */ - userStatus?: 'Offline' | 'Busy' | 'Available'; + userStatus?: "Offline" | "Busy" | "Available"; /** * RingCentral Meetings presence */ - meetingStatus?: 'Connected' | 'Disconnected'; + meetingStatus?: "Connected" | "Disconnected"; /** * Information on active calls diff --git a/packages/core/src/definitions/GetRecordingInsightsParameters.ts b/packages/core/src/definitions/GetRecordingInsightsParameters.ts index 8e1c9784..b3ff1647 100644 --- a/packages/core/src/definitions/GetRecordingInsightsParameters.ts +++ b/packages/core/src/definitions/GetRecordingInsightsParameters.ts @@ -5,7 +5,14 @@ interface GetRecordingInsightsParameters { /** * AI Insight Types */ - insightTypes?: ('NextSteps' | 'Transcript' | 'Summary' | 'Highlights' | 'BulletedSummary' | 'AIScore')[]; + insightTypes?: ( + | "NextSteps" + | "Transcript" + | "Summary" + | "Highlights" + | "BulletedSummary" + | "AIScore" + )[]; } export default GetRecordingInsightsParameters; diff --git a/packages/core/src/definitions/GetRingOutStatusResponse.ts b/packages/core/src/definitions/GetRingOutStatusResponse.ts index a59c9bde..d8fdf1b1 100644 --- a/packages/core/src/definitions/GetRingOutStatusResponse.ts +++ b/packages/core/src/definitions/GetRingOutStatusResponse.ts @@ -1,4 +1,4 @@ -import type RingOutStatusInfo from './RingOutStatusInfo'; +import type RingOutStatusInfo from "./RingOutStatusInfo"; interface GetRingOutStatusResponse { /** @@ -12,8 +12,7 @@ interface GetRingOutStatusResponse { */ uri?: string; - /** - */ + /** */ status?: RingOutStatusInfo; } diff --git a/packages/core/src/definitions/GetSMSMessageInfoResponse.ts b/packages/core/src/definitions/GetSMSMessageInfoResponse.ts index 61eeec56..054bbeaa 100644 --- a/packages/core/src/definitions/GetSMSMessageInfoResponse.ts +++ b/packages/core/src/definitions/GetSMSMessageInfoResponse.ts @@ -1,7 +1,7 @@ -import type MessageAttachmentInfo from './MessageAttachmentInfo'; -import type ConversationInfo from './ConversationInfo'; -import type MessageStoreCallerInfoResponseFrom from './MessageStoreCallerInfoResponseFrom'; -import type MessageStoreCallerInfoResponseTo from './MessageStoreCallerInfoResponseTo'; +import type MessageAttachmentInfo from "./MessageAttachmentInfo"; +import type ConversationInfo from "./ConversationInfo"; +import type MessageStoreCallerInfoResponseFrom from "./MessageStoreCallerInfoResponseFrom"; +import type MessageStoreCallerInfoResponseTo from "./MessageStoreCallerInfoResponseTo"; interface GetSMSMessageInfoResponse { /** @@ -27,7 +27,7 @@ interface GetSMSMessageInfoResponse { * that all attachments are already deleted and the message itself is about * to be physically deleted shortly */ - availability?: 'Alive' | 'Deleted' | 'Purged'; + availability?: "Alive" | "Deleted" | "Purged"; /** * SMS and Pager only. Identifier of a conversation that the message @@ -36,8 +36,7 @@ interface GetSMSMessageInfoResponse { */ conversationId?: number; - /** - */ + /** */ conversation?: ConversationInfo; /** @@ -52,10 +51,9 @@ interface GetSMSMessageInfoResponse { * directions are allowed. For example voicemail messages can * be only inbound */ - direction?: 'Inbound' | 'Outbound'; + direction?: "Inbound" | "Outbound"; - /** - */ + /** */ from?: MessageStoreCallerInfoResponseFrom; /** @@ -73,17 +71,23 @@ interface GetSMSMessageInfoResponse { * 'SendingFailed', then the 'SendingFailed' value is returned. In other cases * the 'Sent' status is returned */ - messageStatus?: 'Queued' | 'Sent' | 'Delivered' | 'DeliveryFailed' | 'SendingFailed' | 'Received'; + messageStatus?: + | "Queued" + | "Sent" + | "Delivered" + | "DeliveryFailed" + | "SendingFailed" + | "Received"; /** * Message priority */ - priority?: 'Normal' | 'High'; + priority?: "Normal" | "High"; /** * Message read status */ - readStatus?: 'Read' | 'Unread'; + readStatus?: "Read" | "Unread"; /** * SMS only. The date/time when outbound SMS was delivered to @@ -115,7 +119,7 @@ interface GetSMSMessageInfoResponse { /** * Message type */ - type?: 'Fax' | 'SMS' | 'VoiceMail' | 'Pager' | 'Text'; + type?: "Fax" | "SMS" | "VoiceMail" | "Pager" | "Text"; } export default GetSMSMessageInfoResponse; diff --git a/packages/core/src/definitions/GetStateInfoResponse.ts b/packages/core/src/definitions/GetStateInfoResponse.ts index 146996eb..5e4f581f 100644 --- a/packages/core/src/definitions/GetStateInfoResponse.ts +++ b/packages/core/src/definitions/GetStateInfoResponse.ts @@ -1,4 +1,4 @@ -import type CountryInfoMinimalModel from './CountryInfoMinimalModel'; +import type CountryInfoMinimalModel from "./CountryInfoMinimalModel"; interface GetStateInfoResponse { /** @@ -12,8 +12,7 @@ interface GetStateInfoResponse { */ uri?: string; - /** - */ + /** */ country?: CountryInfoMinimalModel; /** diff --git a/packages/core/src/definitions/GetStateListResponse.ts b/packages/core/src/definitions/GetStateListResponse.ts index bef58ccb..822ab2d0 100644 --- a/packages/core/src/definitions/GetStateListResponse.ts +++ b/packages/core/src/definitions/GetStateListResponse.ts @@ -1,6 +1,6 @@ -import type GetStateInfoResponse from './GetStateInfoResponse'; -import type PageNavigationModel from './PageNavigationModel'; -import type EnumeratedPagingModel from './EnumeratedPagingModel'; +import type GetStateInfoResponse from "./GetStateInfoResponse"; +import type PageNavigationModel from "./PageNavigationModel"; +import type EnumeratedPagingModel from "./EnumeratedPagingModel"; interface GetStateListResponse { /** @@ -14,12 +14,10 @@ interface GetStateListResponse { */ records?: GetStateInfoResponse[]; - /** - */ + /** */ navigation?: PageNavigationModel; - /** - */ + /** */ paging?: EnumeratedPagingModel; } diff --git a/packages/core/src/definitions/GetTimezoneInfoResponse.ts b/packages/core/src/definitions/GetTimezoneInfoResponse.ts index 45d61a1f..149b297a 100644 --- a/packages/core/src/definitions/GetTimezoneInfoResponse.ts +++ b/packages/core/src/definitions/GetTimezoneInfoResponse.ts @@ -20,8 +20,7 @@ interface GetTimezoneInfoResponse { */ description?: string; - /** - */ + /** */ bias?: string; } diff --git a/packages/core/src/definitions/GetTimezoneListResponse.ts b/packages/core/src/definitions/GetTimezoneListResponse.ts index d198b926..a3b69c4a 100644 --- a/packages/core/src/definitions/GetTimezoneListResponse.ts +++ b/packages/core/src/definitions/GetTimezoneListResponse.ts @@ -1,6 +1,6 @@ -import type GetTimezoneInfoResponse from './GetTimezoneInfoResponse'; -import type PageNavigationModel from './PageNavigationModel'; -import type EnumeratedPagingModel from './EnumeratedPagingModel'; +import type GetTimezoneInfoResponse from "./GetTimezoneInfoResponse"; +import type PageNavigationModel from "./PageNavigationModel"; +import type EnumeratedPagingModel from "./EnumeratedPagingModel"; interface GetTimezoneListResponse { /** diff --git a/packages/core/src/definitions/GetTokenRequest.ts b/packages/core/src/definitions/GetTokenRequest.ts index e33a3dbd..f01e75b0 100644 --- a/packages/core/src/definitions/GetTokenRequest.ts +++ b/packages/core/src/definitions/GetTokenRequest.ts @@ -1,7 +1,6 @@ /** * Token endpoint request parameters used in the "Guest" authorization flow * with the `guest` grant type - * */ interface GetTokenRequest { /** @@ -9,7 +8,8 @@ interface GetTokenRequest { * as defined by [RFC-7523](https://datatracker.ietf.org/doc/html/rfc7523#section-2.2). * This parameter is mandatory if the client authentication is required and a client decided to use one of these authentication types */ - client_assertion_type?: 'urn:ietf:params:oauth:client-assertion-type:jwt-bearer'; + client_assertion_type?: + "urn:ietf:params:oauth:client-assertion-type:jwt-bearer"; /** * Client assertion (JWT) for the `client_secret_jwt` or `private_key_jwt` client authentication types, @@ -23,18 +23,18 @@ interface GetTokenRequest { * Required */ grant_type?: - | 'authorization_code' - | 'password' - | 'refresh_token' - | 'client_credentials' - | 'urn:ietf:params:oauth:grant-type:jwt-bearer' - | 'urn:ietf:params:oauth:grant-type:device_code' - | 'device_certificate' - | 'partner_jwt' - | 'guest' - | 'personal_jwt' - | 'otp' - | 'ivr_pin'; + | "authorization_code" + | "password" + | "refresh_token" + | "client_credentials" + | "urn:ietf:params:oauth:grant-type:jwt-bearer" + | "urn:ietf:params:oauth:grant-type:device_code" + | "device_certificate" + | "partner_jwt" + | "guest" + | "personal_jwt" + | "otp" + | "ivr_pin"; /** * The list of application permissions (OAuth scopes) requested. diff --git a/packages/core/src/definitions/GetUserBusinessHoursResponse.ts b/packages/core/src/definitions/GetUserBusinessHoursResponse.ts index 4e3d0449..1a2057ae 100644 --- a/packages/core/src/definitions/GetUserBusinessHoursResponse.ts +++ b/packages/core/src/definitions/GetUserBusinessHoursResponse.ts @@ -1,4 +1,4 @@ -import type ScheduleInfoUserBusinessHours from './ScheduleInfoUserBusinessHours'; +import type ScheduleInfoUserBusinessHours from "./ScheduleInfoUserBusinessHours"; interface GetUserBusinessHoursResponse { /** @@ -7,8 +7,7 @@ interface GetUserBusinessHoursResponse { */ uri?: string; - /** - */ + /** */ schedule?: ScheduleInfoUserBusinessHours; } diff --git a/packages/core/src/definitions/GlipDataExportNavigationInfo.ts b/packages/core/src/definitions/GlipDataExportNavigationInfo.ts index 56b10fdb..8f4655be 100644 --- a/packages/core/src/definitions/GlipDataExportNavigationInfo.ts +++ b/packages/core/src/definitions/GlipDataExportNavigationInfo.ts @@ -1,20 +1,16 @@ -import type GlipDataExportNavigationInfoUri from './GlipDataExportNavigationInfoUri'; +import type GlipDataExportNavigationInfoUri from "./GlipDataExportNavigationInfoUri"; interface GlipDataExportNavigationInfo { - /** - */ + /** */ firstPage?: GlipDataExportNavigationInfoUri; - /** - */ + /** */ nextPage?: GlipDataExportNavigationInfoUri; - /** - */ + /** */ previousPage?: GlipDataExportNavigationInfoUri; - /** - */ + /** */ lastPage?: GlipDataExportNavigationInfoUri; } diff --git a/packages/core/src/definitions/GlobalDialInCountryResponse.ts b/packages/core/src/definitions/GlobalDialInCountryResponse.ts index f9fae3ac..8a0622d5 100644 --- a/packages/core/src/definitions/GlobalDialInCountryResponse.ts +++ b/packages/core/src/definitions/GlobalDialInCountryResponse.ts @@ -1,14 +1,11 @@ interface GlobalDialInCountryResponse { - /** - */ + /** */ countryCode?: string; - /** - */ + /** */ countryName?: string; - /** - */ + /** */ checked?: boolean; /** diff --git a/packages/core/src/definitions/GrantInfo.ts b/packages/core/src/definitions/GrantInfo.ts index e40d02ca..2330b7f4 100644 --- a/packages/core/src/definitions/GrantInfo.ts +++ b/packages/core/src/definitions/GrantInfo.ts @@ -1,4 +1,4 @@ -import type ExtensionInfoGrants from './ExtensionInfoGrants'; +import type ExtensionInfoGrants from "./ExtensionInfoGrants"; interface GrantInfo { /** @@ -7,8 +7,7 @@ interface GrantInfo { */ uri?: string; - /** - */ + /** */ extension?: ExtensionInfoGrants; /** diff --git a/packages/core/src/definitions/GreetingInfo.ts b/packages/core/src/definitions/GreetingInfo.ts index 5468f6d3..785ae318 100644 --- a/packages/core/src/definitions/GreetingInfo.ts +++ b/packages/core/src/definitions/GreetingInfo.ts @@ -1,34 +1,32 @@ -import type PresetInfo from './PresetInfo'; -import type CustomGreetingInfoRequest from './CustomGreetingInfoRequest'; +import type PresetInfo from "./PresetInfo"; +import type CustomGreetingInfoRequest from "./CustomGreetingInfoRequest"; interface GreetingInfo { /** * Type of greeting, specifying the case when the greeting is played. */ type?: - | 'Introductory' - | 'Announcement' - | 'AutomaticRecording' - | 'BlockedCallersAll' - | 'BlockedCallersSpecific' - | 'BlockedNoCallerId' - | 'BlockedPayPhones' - | 'ConnectingMessage' - | 'ConnectingAudio' - | 'StartRecording' - | 'StopRecording' - | 'Voicemail' - | 'Unavailable' - | 'InterruptPrompt' - | 'HoldMusic' - | 'Company'; + | "Introductory" + | "Announcement" + | "AutomaticRecording" + | "BlockedCallersAll" + | "BlockedCallersSpecific" + | "BlockedNoCallerId" + | "BlockedPayPhones" + | "ConnectingMessage" + | "ConnectingAudio" + | "StartRecording" + | "StopRecording" + | "Voicemail" + | "Unavailable" + | "InterruptPrompt" + | "HoldMusic" + | "Company"; - /** - */ + /** */ preset?: PresetInfo; - /** - */ + /** */ custom?: CustomGreetingInfoRequest; } diff --git a/packages/core/src/definitions/GreetingLanguageInfo.ts b/packages/core/src/definitions/GreetingLanguageInfo.ts index 9f1d8563..441f648e 100644 --- a/packages/core/src/definitions/GreetingLanguageInfo.ts +++ b/packages/core/src/definitions/GreetingLanguageInfo.ts @@ -1,6 +1,5 @@ /** * Information on language used for telephony greetings - * */ interface GreetingLanguageInfo { /** diff --git a/packages/core/src/definitions/Grouping.ts b/packages/core/src/definitions/Grouping.ts index c2889a7f..924a07e2 100644 --- a/packages/core/src/definitions/Grouping.ts +++ b/packages/core/src/definitions/Grouping.ts @@ -7,15 +7,15 @@ interface Grouping { * Required */ groupBy?: - | 'Company' - | 'CompanyNumbers' - | 'Users' - | 'Queues' - | 'IVRs' - | 'SharedLines' - | 'UserGroups' - | 'Sites' - | 'Departments'; + | "Company" + | "CompanyNumbers" + | "Users" + | "Queues" + | "IVRs" + | "SharedLines" + | "UserGroups" + | "Sites" + | "Departments"; /** * This field can be used to further limit the users selection by specifying unique identifiers of corresponding entities. For example, providing unique queue ids along with `Queue` in `groupByMembers` field will limit the response to users that are queue agents in at least one of these queues @@ -26,7 +26,7 @@ interface Grouping { * The selected data scope * Required */ - groupByMembers?: 'Department' | 'UserGroup' | 'Queue' | 'Site'; + groupByMembers?: "Department" | "UserGroup" | "Queue" | "Site"; } export default Grouping; diff --git a/packages/core/src/definitions/GroupingByMembers.ts b/packages/core/src/definitions/GroupingByMembers.ts index cf662744..002486d5 100644 --- a/packages/core/src/definitions/GroupingByMembers.ts +++ b/packages/core/src/definitions/GroupingByMembers.ts @@ -6,7 +6,7 @@ interface GroupingByMembers { * The selected data scope * Required */ - groupByMembers?: 'Department' | 'UserGroup' | 'Queue' | 'Site'; + groupByMembers?: "Department" | "UserGroup" | "Queue" | "Site"; /** * This field can be used to further limit the users selection by specifying unique identifiers of corresponding entities. For example, providing unique queue ids along with `Queue` in `groupByMembers` field will limit the response to users that are queue agents in at least one of these queues diff --git a/packages/core/src/definitions/GuestTokenRequest.ts b/packages/core/src/definitions/GuestTokenRequest.ts index 8e922137..f1b8c2d1 100644 --- a/packages/core/src/definitions/GuestTokenRequest.ts +++ b/packages/core/src/definitions/GuestTokenRequest.ts @@ -1,14 +1,13 @@ /** * Token endpoint request parameters used in the "Guest" authorization flow * with the `guest` grant type - * */ interface GuestTokenRequest { /** * Grant type * Required */ - grant_type?: 'guest'; + grant_type?: "guest"; /** * RingCentral Brand identifier. diff --git a/packages/core/src/definitions/HoldCallPartyRequest.ts b/packages/core/src/definitions/HoldCallPartyRequest.ts index 038748e1..ecd16a91 100644 --- a/packages/core/src/definitions/HoldCallPartyRequest.ts +++ b/packages/core/src/definitions/HoldCallPartyRequest.ts @@ -3,7 +3,7 @@ interface HoldCallPartyRequest { * Protocol for hold mode initiation * Default: Auto */ - proto?: 'Auto' | 'RC' | 'BroadWorks' | 'DisconnectHolder'; + proto?: "Auto" | "RC" | "BroadWorks" | "DisconnectHolder"; } export default HoldCallPartyRequest; diff --git a/packages/core/src/definitions/HostModel.ts b/packages/core/src/definitions/HostModel.ts index 77257616..26fca040 100644 --- a/packages/core/src/definitions/HostModel.ts +++ b/packages/core/src/definitions/HostModel.ts @@ -1,4 +1,4 @@ -import type RcwDomainUserModel from './RcwDomainUserModel'; +import type RcwDomainUserModel from "./RcwDomainUserModel"; /** * The internal IDs of RC-authenticated users. @@ -16,8 +16,7 @@ interface HostModel { */ lastName?: string; - /** - */ + /** */ linkedUser?: RcwDomainUserModel; } diff --git a/packages/core/src/definitions/IVRMenuActionsInfo.ts b/packages/core/src/definitions/IVRMenuActionsInfo.ts index c49e7f04..4f3c5324 100644 --- a/packages/core/src/definitions/IVRMenuActionsInfo.ts +++ b/packages/core/src/definitions/IVRMenuActionsInfo.ts @@ -1,4 +1,4 @@ -import type IVRMenuExtensionInfo from './IVRMenuExtensionInfo'; +import type IVRMenuExtensionInfo from "./IVRMenuExtensionInfo"; interface IVRMenuActionsInfo { /** @@ -10,20 +10,19 @@ interface IVRMenuActionsInfo { * Internal identifier of an answering rule */ action?: - | 'Connect' - | 'Voicemail' - | 'DialByName' - | 'Transfer' - | 'Repeat' - | 'ReturnToRoot' - | 'ReturnToPrevious' - | 'Disconnect' - | 'ReturnToTopLevelMenu' - | 'DoNothing' - | 'ConnectToOperator'; + | "Connect" + | "Voicemail" + | "DialByName" + | "Transfer" + | "Repeat" + | "ReturnToRoot" + | "ReturnToPrevious" + | "Disconnect" + | "ReturnToTopLevelMenu" + | "DoNothing" + | "ConnectToOperator"; - /** - */ + /** */ extension?: IVRMenuExtensionInfo; /** diff --git a/packages/core/src/definitions/IVRMenuInfo.ts b/packages/core/src/definitions/IVRMenuInfo.ts index 4054e91a..69796ebf 100644 --- a/packages/core/src/definitions/IVRMenuInfo.ts +++ b/packages/core/src/definitions/IVRMenuInfo.ts @@ -1,6 +1,6 @@ -import type IvrMenuSiteInfo from './IvrMenuSiteInfo'; -import type IvrMenuPromptInfo from './IvrMenuPromptInfo'; -import type IVRMenuActionsInfo from './IVRMenuActionsInfo'; +import type IvrMenuSiteInfo from "./IvrMenuSiteInfo"; +import type IvrMenuPromptInfo from "./IvrMenuPromptInfo"; +import type IVRMenuActionsInfo from "./IVRMenuActionsInfo"; interface IVRMenuInfo { /** @@ -24,12 +24,10 @@ interface IVRMenuInfo { */ extensionNumber?: string; - /** - */ + /** */ site?: IvrMenuSiteInfo; - /** - */ + /** */ prompt?: IvrMenuPromptInfo; /** diff --git a/packages/core/src/definitions/IVRMenuList.ts b/packages/core/src/definitions/IVRMenuList.ts index 583c92b5..90a2a71d 100644 --- a/packages/core/src/definitions/IVRMenuList.ts +++ b/packages/core/src/definitions/IVRMenuList.ts @@ -1,4 +1,4 @@ -import type IVRMenuListInfo from './IVRMenuListInfo'; +import type IVRMenuListInfo from "./IVRMenuListInfo"; interface IVRMenuList { /** diff --git a/packages/core/src/definitions/IdentifyInput.ts b/packages/core/src/definitions/IdentifyInput.ts index 0e70881b..0597ebcf 100644 --- a/packages/core/src/definitions/IdentifyInput.ts +++ b/packages/core/src/definitions/IdentifyInput.ts @@ -10,7 +10,7 @@ interface IdentifyInput { * Required * Example: Wav */ - encoding?: 'Mpeg' | 'Mp4' | 'Wav' | 'Webm' | 'Webp' | 'Aac' | 'Avi' | 'Ogg'; + encoding?: "Mpeg" | "Mp4" | "Wav" | "Webm" | "Webp" | "Aac" | "Avi" | "Ogg"; /** * Language spoken in the audio file. @@ -29,7 +29,13 @@ interface IdentifyInput { * Type of the audio * Example: CallCenter */ - audioType?: 'CallCenter' | 'Meeting' | 'EarningsCalls' | 'Interview' | 'PressConference' | 'Voicemail'; + audioType?: + | "CallCenter" + | "Meeting" + | "EarningsCalls" + | "Interview" + | "PressConference" + | "Voicemail"; /** * Set of enrolled speakers to be identified from the media. diff --git a/packages/core/src/definitions/InboundMessageEvent.ts b/packages/core/src/definitions/InboundMessageEvent.ts index 17623547..305c5531 100644 --- a/packages/core/src/definitions/InboundMessageEvent.ts +++ b/packages/core/src/definitions/InboundMessageEvent.ts @@ -1,8 +1,7 @@ -import type NotificationInfo from './NotificationInfo'; +import type NotificationInfo from "./NotificationInfo"; interface InboundMessageEvent { - /** - */ + /** */ aps?: NotificationInfo; /** diff --git a/packages/core/src/definitions/IncomingCallEvent.ts b/packages/core/src/definitions/IncomingCallEvent.ts index ae5e335c..f4275c70 100644 --- a/packages/core/src/definitions/IncomingCallEvent.ts +++ b/packages/core/src/definitions/IncomingCallEvent.ts @@ -1,8 +1,7 @@ -import type APSInfo from './APSInfo'; +import type APSInfo from "./APSInfo"; interface IncomingCallEvent { - /** - */ + /** */ aps?: APSInfo; /** diff --git a/packages/core/src/definitions/InstantMessageEvent.ts b/packages/core/src/definitions/InstantMessageEvent.ts index c5d177dc..ea7ca253 100644 --- a/packages/core/src/definitions/InstantMessageEvent.ts +++ b/packages/core/src/definitions/InstantMessageEvent.ts @@ -1,4 +1,4 @@ -import type InstantMessageEventBody from './InstantMessageEventBody'; +import type InstantMessageEventBody from "./InstantMessageEventBody"; interface InstantMessageEvent { /** @@ -22,8 +22,7 @@ interface InstantMessageEvent { */ subscriptionId?: string; - /** - */ + /** */ body?: InstantMessageEventBody; } diff --git a/packages/core/src/definitions/InstantMessageEventBody.ts b/packages/core/src/definitions/InstantMessageEventBody.ts index e278fb49..e41e642d 100644 --- a/packages/core/src/definitions/InstantMessageEventBody.ts +++ b/packages/core/src/definitions/InstantMessageEventBody.ts @@ -1,7 +1,7 @@ -import type NotificationRecipientInfo from './NotificationRecipientInfo'; -import type SenderInfo from './SenderInfo'; -import type MessageAttachmentInfo from './MessageAttachmentInfo'; -import type ConversationInfo from './ConversationInfo'; +import type NotificationRecipientInfo from "./NotificationRecipientInfo"; +import type SenderInfo from "./SenderInfo"; +import type MessageAttachmentInfo from "./MessageAttachmentInfo"; +import type ConversationInfo from "./ConversationInfo"; /** * Notification payload body @@ -17,8 +17,7 @@ interface InstantMessageEventBody { */ to?: NotificationRecipientInfo[]; - /** - */ + /** */ from?: SenderInfo; /** @@ -43,12 +42,12 @@ interface InstantMessageEventBody { /** * Message read status */ - readStatus?: 'Read' | 'Unread'; + readStatus?: "Read" | "Unread"; /** * Message priority */ - priority?: 'Normal' | 'High'; + priority?: "Normal" | "High"; /** * Message attachment data @@ -60,7 +59,7 @@ interface InstantMessageEventBody { * directions are allowed. For example voicemail messages can * be only inbound */ - direction?: 'Inbound' | 'Outbound'; + direction?: "Inbound" | "Outbound"; /** * Message availability status. Message in 'Deleted' state is still @@ -68,7 +67,7 @@ interface InstantMessageEventBody { * that all attachments are already deleted and the message itself is about * to be physically deleted shortly */ - availability?: 'Alive' | 'Deleted' | 'Purged'; + availability?: "Alive" | "Deleted" | "Purged"; /** * Message subject. It replicates message text which is also returned @@ -84,7 +83,13 @@ interface InstantMessageEventBody { * 'SendingFailed', then the 'SendingFailed' value is returned. In other cases * the 'Sent' status is returned */ - messageStatus?: 'Queued' | 'Sent' | 'Delivered' | 'DeliveryFailed' | 'SendingFailed' | 'Received'; + messageStatus?: + | "Queued" + | "Sent" + | "Delivered" + | "DeliveryFailed" + | "SendingFailed" + | "Received"; /** * Deprecated. Identifier of a conversation the message belongs @@ -92,8 +97,7 @@ interface InstantMessageEventBody { */ conversationId?: string; - /** - */ + /** */ conversation?: ConversationInfo; /** diff --git a/packages/core/src/definitions/InteractionApiResponse.ts b/packages/core/src/definitions/InteractionApiResponse.ts index 65adb281..1f94c23a 100644 --- a/packages/core/src/definitions/InteractionApiResponse.ts +++ b/packages/core/src/definitions/InteractionApiResponse.ts @@ -1,12 +1,10 @@ -import type InteractionApiResponseResponse from './InteractionApiResponseResponse'; +import type InteractionApiResponseResponse from "./InteractionApiResponseResponse"; interface InteractionApiResponse { - /** - */ - status?: 'Success' | 'Fail'; + /** */ + status?: "Success" | "Fail"; - /** - */ + /** */ response?: InteractionApiResponseResponse; } diff --git a/packages/core/src/definitions/InteractionApiResponseResponse.ts b/packages/core/src/definitions/InteractionApiResponseResponse.ts index 6615a96b..55d54308 100644 --- a/packages/core/src/definitions/InteractionApiResponseResponse.ts +++ b/packages/core/src/definitions/InteractionApiResponseResponse.ts @@ -1,18 +1,15 @@ -import type UtteranceInsightsObject from './UtteranceInsightsObject'; -import type SpeakerInsightsObject from './SpeakerInsightsObject'; -import type ConversationalInsightsUnit from './ConversationalInsightsUnit'; +import type UtteranceInsightsObject from "./UtteranceInsightsObject"; +import type SpeakerInsightsObject from "./SpeakerInsightsObject"; +import type ConversationalInsightsUnit from "./ConversationalInsightsUnit"; interface InteractionApiResponseResponse { - /** - */ + /** */ utteranceInsights?: UtteranceInsightsObject[]; - /** - */ + /** */ speakerInsights?: SpeakerInsightsObject; - /** - */ + /** */ conversationalInsights?: ConversationalInsightsUnit[]; } diff --git a/packages/core/src/definitions/InteractionInput.ts b/packages/core/src/definitions/InteractionInput.ts index 4019e33c..db704e3c 100644 --- a/packages/core/src/definitions/InteractionInput.ts +++ b/packages/core/src/definitions/InteractionInput.ts @@ -1,4 +1,4 @@ -import type SpeechContextPhrasesInput from './SpeechContextPhrasesInput'; +import type SpeechContextPhrasesInput from "./SpeechContextPhrasesInput"; interface InteractionInput { /** @@ -12,7 +12,7 @@ interface InteractionInput { * Required * Example: Wav */ - encoding?: 'Mpeg' | 'Mp4' | 'Wav' | 'Webm' | 'Webp' | 'Aac' | 'Avi' | 'Ogg'; + encoding?: "Mpeg" | "Mp4" | "Wav" | "Webm" | "Webp" | "Aac" | "Avi" | "Ogg"; /** * Language spoken in the audio file. @@ -31,7 +31,13 @@ interface InteractionInput { * Type of the audio * Example: CallCenter */ - audioType?: 'CallCenter' | 'Meeting' | 'EarningsCalls' | 'Interview' | 'PressConference' | 'Voicemail'; + audioType?: + | "CallCenter" + | "Meeting" + | "EarningsCalls" + | "Interview" + | "PressConference" + | "Voicemail"; /** * Set to True if the input audio is multi-channel and each channel has a separate speaker. @@ -56,20 +62,19 @@ interface InteractionInput { */ enableVoiceActivityDetection?: boolean; - /** - */ + /** */ insights?: ( - | 'All' - | 'KeyPhrases' - | 'Emotion' - | 'AbstractiveSummaryLong' - | 'AbstractiveSummaryShort' - | 'ExtractiveSummary' - | 'Topics' - | 'TalkToListenRatio' - | 'Energy' - | 'Pace' - | 'QuestionsAsked' + | "All" + | "KeyPhrases" + | "Emotion" + | "AbstractiveSummaryLong" + | "AbstractiveSummaryShort" + | "ExtractiveSummary" + | "Topics" + | "TalkToListenRatio" + | "Energy" + | "Pace" + | "QuestionsAsked" )[]; /** diff --git a/packages/core/src/definitions/InteractionObject.ts b/packages/core/src/definitions/InteractionObject.ts index af5d911e..beeadaa3 100644 --- a/packages/core/src/definitions/InteractionObject.ts +++ b/packages/core/src/definitions/InteractionObject.ts @@ -1,18 +1,15 @@ -import type UtteranceInsightsObject from './UtteranceInsightsObject'; -import type SpeakerInsightsObject from './SpeakerInsightsObject'; -import type ConversationalInsightsUnit from './ConversationalInsightsUnit'; +import type UtteranceInsightsObject from "./UtteranceInsightsObject"; +import type SpeakerInsightsObject from "./SpeakerInsightsObject"; +import type ConversationalInsightsUnit from "./ConversationalInsightsUnit"; interface InteractionObject { - /** - */ + /** */ utteranceInsights?: UtteranceInsightsObject[]; - /** - */ + /** */ speakerInsights?: SpeakerInsightsObject; - /** - */ + /** */ conversationalInsights?: ConversationalInsightsUnit[]; } diff --git a/packages/core/src/definitions/InternalDeliveryMode.ts b/packages/core/src/definitions/InternalDeliveryMode.ts index 69c99caa..5c42ea6b 100644 --- a/packages/core/src/definitions/InternalDeliveryMode.ts +++ b/packages/core/src/definitions/InternalDeliveryMode.ts @@ -3,7 +3,7 @@ interface InternalDeliveryMode { * The transport type for this subscription, or the channel by which an app should be notified of an event * Required */ - transportType?: 'Internal'; + transportType?: "Internal"; /** * The name of internal channel (defined in the backend service configuration) to deliver notifications through. diff --git a/packages/core/src/definitions/InviteeBaseModel.ts b/packages/core/src/definitions/InviteeBaseModel.ts index 802cf8b6..ea57bfe9 100644 --- a/packages/core/src/definitions/InviteeBaseModel.ts +++ b/packages/core/src/definitions/InviteeBaseModel.ts @@ -1,4 +1,4 @@ -import type RcwDomainUserModel from './RcwDomainUserModel'; +import type RcwDomainUserModel from "./RcwDomainUserModel"; /** * The attribute declaration to indicate webinar session participant/invitee role @@ -49,8 +49,7 @@ interface InviteeBaseModel { */ jobTitle?: string; - /** - */ + /** */ linkedUser?: RcwDomainUserModel; /** @@ -59,13 +58,13 @@ interface InviteeBaseModel { * Required * Example: Panelist */ - role?: 'Panelist' | 'CoHost' | 'Host' | 'Attendee'; + role?: "Panelist" | "CoHost" | "Host" | "Attendee"; /** * The type of the webinar invitee * Default: User */ - type?: 'User' | 'Room'; + type?: "User" | "Room"; /** * Indicates if invite/cancellation emails have to be sent to this invitee. diff --git a/packages/core/src/definitions/InviteeListResource.ts b/packages/core/src/definitions/InviteeListResource.ts index 26452ce2..53a10ef7 100644 --- a/packages/core/src/definitions/InviteeListResource.ts +++ b/packages/core/src/definitions/InviteeListResource.ts @@ -1,5 +1,5 @@ -import type InviteeModel from './InviteeModel'; -import type RcwPagingModel from './RcwPagingModel'; +import type InviteeModel from "./InviteeModel"; +import type RcwPagingModel from "./RcwPagingModel"; interface InviteeListResource { /** diff --git a/packages/core/src/definitions/InviteeModel.ts b/packages/core/src/definitions/InviteeModel.ts index d355c21d..c58dbc70 100644 --- a/packages/core/src/definitions/InviteeModel.ts +++ b/packages/core/src/definitions/InviteeModel.ts @@ -1,4 +1,4 @@ -import type RcwDomainUserModel from './RcwDomainUserModel'; +import type RcwDomainUserModel from "./RcwDomainUserModel"; /** * The internal IDs of RC-authenticated users. @@ -28,7 +28,7 @@ interface InviteeModel { * Required * Example: Panelist */ - role?: 'Panelist' | 'CoHost' | 'Host' | 'Attendee'; + role?: "Panelist" | "CoHost" | "Host" | "Attendee"; /** * The role of the webinar session participant/invitee. @@ -36,10 +36,9 @@ interface InviteeModel { * Required * Example: Panelist */ - originalRole?: 'Panelist' | 'CoHost' | 'Host' | 'Attendee'; + originalRole?: "Panelist" | "CoHost" | "Host" | "Attendee"; - /** - */ + /** */ linkedUser?: RcwDomainUserModel; /** @@ -53,7 +52,7 @@ interface InviteeModel { * Required * Default: User */ - type?: 'User' | 'Room'; + type?: "User" | "Room"; /** * User's contact email diff --git a/packages/core/src/definitions/InviteeResource.ts b/packages/core/src/definitions/InviteeResource.ts index 77eaee2f..a9c2161c 100644 --- a/packages/core/src/definitions/InviteeResource.ts +++ b/packages/core/src/definitions/InviteeResource.ts @@ -1,4 +1,4 @@ -import type RcwDomainUserModel from './RcwDomainUserModel'; +import type RcwDomainUserModel from "./RcwDomainUserModel"; /** * The attribute declaration to indicate webinar session participant/invitee role @@ -49,8 +49,7 @@ interface InviteeResource { */ jobTitle?: string; - /** - */ + /** */ linkedUser?: RcwDomainUserModel; /** @@ -59,13 +58,13 @@ interface InviteeResource { * Required * Example: Panelist */ - role?: 'Panelist' | 'CoHost' | 'Host' | 'Attendee'; + role?: "Panelist" | "CoHost" | "Host" | "Attendee"; /** * The type of the webinar invitee * Default: User */ - type?: 'User' | 'Room'; + type?: "User" | "Room"; /** * Indicates if invite/cancellation emails have to be sent to this invitee. diff --git a/packages/core/src/definitions/InviteeSettingsModel.ts b/packages/core/src/definitions/InviteeSettingsModel.ts index 22013ee7..dc6b04b7 100644 --- a/packages/core/src/definitions/InviteeSettingsModel.ts +++ b/packages/core/src/definitions/InviteeSettingsModel.ts @@ -3,7 +3,7 @@ interface InviteeSettingsModel { * The type of the webinar invitee * Default: User */ - type?: 'User' | 'Room'; + type?: "User" | "Room"; /** * Indicates if invite/cancellation emails have to be sent to this invitee. diff --git a/packages/core/src/definitions/IvrMenuPromptInfo.ts b/packages/core/src/definitions/IvrMenuPromptInfo.ts index cba0b7eb..c83c8043 100644 --- a/packages/core/src/definitions/IvrMenuPromptInfo.ts +++ b/packages/core/src/definitions/IvrMenuPromptInfo.ts @@ -1,5 +1,5 @@ -import type AudioPromptInfo from './AudioPromptInfo'; -import type PromptLanguageInfo from './PromptLanguageInfo'; +import type AudioPromptInfo from "./AudioPromptInfo"; +import type PromptLanguageInfo from "./PromptLanguageInfo"; /** * Prompt metadata @@ -8,10 +8,9 @@ interface IvrMenuPromptInfo { /** * Prompt mode: custom media or text */ - mode?: 'Audio' | 'TextToSpeech'; + mode?: "Audio" | "TextToSpeech"; - /** - */ + /** */ audio?: AudioPromptInfo; /** @@ -19,8 +18,7 @@ interface IvrMenuPromptInfo { */ text?: string; - /** - */ + /** */ language?: PromptLanguageInfo; } diff --git a/packages/core/src/definitions/IvrPinTokenRequest.ts b/packages/core/src/definitions/IvrPinTokenRequest.ts index 26293ad0..1bbec699 100644 --- a/packages/core/src/definitions/IvrPinTokenRequest.ts +++ b/packages/core/src/definitions/IvrPinTokenRequest.ts @@ -1,13 +1,12 @@ /** * Token endpoint request parameters used in the "IVR Pin" authorization flow with the `ivr_pin` grant type - * */ interface IvrPinTokenRequest { /** * Grant type * Required */ - grant_type?: 'ivr_pin'; + grant_type?: "ivr_pin"; /** * For `ivr_pin` grant type only. User's IVR pin. diff --git a/packages/core/src/definitions/IvrPrompts.ts b/packages/core/src/definitions/IvrPrompts.ts index 1ac8ec86..4351fe47 100644 --- a/packages/core/src/definitions/IvrPrompts.ts +++ b/packages/core/src/definitions/IvrPrompts.ts @@ -1,6 +1,6 @@ -import type PromptInfo from './PromptInfo'; -import type PageNavigationModel from './PageNavigationModel'; -import type EnumeratedPagingModel from './EnumeratedPagingModel'; +import type PromptInfo from "./PromptInfo"; +import type PageNavigationModel from "./PageNavigationModel"; +import type EnumeratedPagingModel from "./EnumeratedPagingModel"; interface IvrPrompts { /** @@ -14,12 +14,10 @@ interface IvrPrompts { */ records?: PromptInfo[]; - /** - */ + /** */ navigation?: PageNavigationModel; - /** - */ + /** */ paging?: EnumeratedPagingModel; } diff --git a/packages/core/src/definitions/JobStatusResponse.ts b/packages/core/src/definitions/JobStatusResponse.ts index e1225d8d..4eda019c 100644 --- a/packages/core/src/definitions/JobStatusResponse.ts +++ b/packages/core/src/definitions/JobStatusResponse.ts @@ -1,8 +1,7 @@ -import type JobStatusResponseResponse from './JobStatusResponseResponse'; +import type JobStatusResponseResponse from "./JobStatusResponseResponse"; interface JobStatusResponse { - /** - */ + /** */ jobId?: string; /** @@ -20,12 +19,10 @@ interface JobStatusResponse { */ expirationTime?: string; - /** - */ - status?: 'Success' | 'Fail'; + /** */ + status?: "Success" | "Fail"; - /** - */ + /** */ response?: JobStatusResponseResponse; } diff --git a/packages/core/src/definitions/JobStatusResponseResponse.ts b/packages/core/src/definitions/JobStatusResponseResponse.ts index 9e8e3ab2..01164865 100644 --- a/packages/core/src/definitions/JobStatusResponseResponse.ts +++ b/packages/core/src/definitions/JobStatusResponseResponse.ts @@ -1,8 +1,8 @@ -import type UtteranceObject from './UtteranceObject'; -import type WordSegment from './WordSegment'; -import type UtteranceInsightsObject from './UtteranceInsightsObject'; -import type SpeakerInsightsObject from './SpeakerInsightsObject'; -import type ConversationalInsightsUnit from './ConversationalInsightsUnit'; +import type UtteranceObject from "./UtteranceObject"; +import type WordSegment from "./WordSegment"; +import type UtteranceInsightsObject from "./UtteranceInsightsObject"; +import type SpeakerInsightsObject from "./SpeakerInsightsObject"; +import type ConversationalInsightsUnit from "./ConversationalInsightsUnit"; interface JobStatusResponseResponse { /** @@ -17,8 +17,7 @@ interface JobStatusResponseResponse { */ utterances?: UtteranceObject[]; - /** - */ + /** */ words?: WordSegment[]; /** @@ -32,16 +31,13 @@ interface JobStatusResponseResponse { */ transcript?: string; - /** - */ + /** */ utteranceInsights?: UtteranceInsightsObject[]; - /** - */ + /** */ speakerInsights?: SpeakerInsightsObject; - /** - */ + /** */ conversationalInsights?: ConversationalInsightsUnit[]; } diff --git a/packages/core/src/definitions/JwtTokenRequest.ts b/packages/core/src/definitions/JwtTokenRequest.ts index 71c2e664..87e7b835 100644 --- a/packages/core/src/definitions/JwtTokenRequest.ts +++ b/packages/core/src/definitions/JwtTokenRequest.ts @@ -1,14 +1,13 @@ /** * Token endpoint request parameters used in the "Personal JWT", "JWT Bearer" and "Partner JWT" authorization flows * with the `urn:ietf:params:oauth:grant-type:jwt-bearer` and `partner_jwt` grant types - * */ interface JwtTokenRequest { /** * Grant type * Required */ - grant_type?: 'urn:ietf:params:oauth:grant-type:jwt-bearer' | 'partner_jwt'; + grant_type?: "urn:ietf:params:oauth:grant-type:jwt-bearer" | "partner_jwt"; /** * For `urn:ietf:params:oauth:grant-type:jwt-bearer` or `partner_jwt` grant types only. diff --git a/packages/core/src/definitions/LanguageList.ts b/packages/core/src/definitions/LanguageList.ts index ccf13cb5..1ed13d70 100644 --- a/packages/core/src/definitions/LanguageList.ts +++ b/packages/core/src/definitions/LanguageList.ts @@ -1,6 +1,6 @@ -import type LanguageInfo from './LanguageInfo'; -import type PageNavigationModel from './PageNavigationModel'; -import type EnumeratedPagingModel from './EnumeratedPagingModel'; +import type LanguageInfo from "./LanguageInfo"; +import type PageNavigationModel from "./PageNavigationModel"; +import type EnumeratedPagingModel from "./EnumeratedPagingModel"; interface LanguageList { /** @@ -14,12 +14,10 @@ interface LanguageList { */ records?: LanguageInfo[]; - /** - */ + /** */ navigation?: PageNavigationModel; - /** - */ + /** */ paging?: EnumeratedPagingModel; } diff --git a/packages/core/src/definitions/ListA2PBatchesParameters.ts b/packages/core/src/definitions/ListA2PBatchesParameters.ts index 4571cac4..44a3a087 100644 --- a/packages/core/src/definitions/ListA2PBatchesParameters.ts +++ b/packages/core/src/definitions/ListA2PBatchesParameters.ts @@ -26,7 +26,7 @@ interface ListA2PBatchesParameters { * A list of batch statuses to filter the results * Example: Queued,Processing */ - status?: ('Queued' | 'Processing' | 'Sent' | 'Completed')[]; + status?: ("Queued" | "Processing" | "Sent" | "Completed")[]; /** * The page token of the page to be retrieved diff --git a/packages/core/src/definitions/ListA2PSMSParameters.ts b/packages/core/src/definitions/ListA2PSMSParameters.ts index aac55d6f..2aab19ad 100644 --- a/packages/core/src/definitions/ListA2PSMSParameters.ts +++ b/packages/core/src/definitions/ListA2PSMSParameters.ts @@ -12,7 +12,7 @@ interface ListA2PSMSParameters { * Direction of the SMS message * Example: Inbound */ - direction?: 'Inbound' | 'Outbound'; + direction?: "Inbound" | "Outbound"; /** * The end of the time range to filter the results in ISO 8601 format including timezone. Default is the 'dateTo' minus 24 hours @@ -32,7 +32,7 @@ interface ListA2PSMSParameters { * Indicates if the response has to be detailed, includes text in the response if detailed * Default: Simple */ - view?: 'Simple' | 'Detailed'; + view?: "Simple" | "Detailed"; /** * List of phone numbers (specified in 'to' or 'from' fields of a message) to filter the results. Maximum number of phone numbers allowed to be specified as filters is 15 diff --git a/packages/core/src/definitions/ListAccountPhoneNumbersParameters.ts b/packages/core/src/definitions/ListAccountPhoneNumbersParameters.ts index 5405a140..60ee0ba8 100644 --- a/packages/core/src/definitions/ListAccountPhoneNumbersParameters.ts +++ b/packages/core/src/definitions/ListAccountPhoneNumbersParameters.ts @@ -21,19 +21,19 @@ interface ListAccountPhoneNumbersParameters { * Usage type of phone number */ usageType?: ( - | 'MainCompanyNumber' - | 'AdditionalCompanyNumber' - | 'CompanyNumber' - | 'DirectNumber' - | 'CompanyFaxNumber' - | 'ForwardedNumber' - | 'ForwardedCompanyNumber' - | 'ContactCenterNumber' - | 'ConferencingNumber' - | 'MeetingsNumber' - | 'BusinessMobileNumber' - | 'PartnerBusinessMobileNumber' - | 'IntegrationNumber' + | "MainCompanyNumber" + | "AdditionalCompanyNumber" + | "CompanyNumber" + | "DirectNumber" + | "CompanyFaxNumber" + | "ForwardedNumber" + | "ForwardedCompanyNumber" + | "ContactCenterNumber" + | "ConferencingNumber" + | "MeetingsNumber" + | "BusinessMobileNumber" + | "PartnerBusinessMobileNumber" + | "IntegrationNumber" )[]; /** @@ -41,19 +41,19 @@ interface ListAccountPhoneNumbersParameters { * which are not terminated in the RingCentral phone system */ paymentType?: - | 'External' - | 'TollFree' - | 'Local' - | 'BusinessMobileNumberProvider' - | 'ExternalNumberProvider' - | 'ExternalNumberProviderTollFree'; + | "External" + | "TollFree" + | "Local" + | "BusinessMobileNumberProvider" + | "ExternalNumberProvider" + | "ExternalNumberProviderTollFree"; /** * Status of a phone number. If the value is `Normal`, the phone * number is ready to be used. Otherwise, it is an external number not yet * ported to RingCentral */ - status?: 'Normal' | 'Pending' | 'PortedIn' | 'Temporary' | 'Unknown'; + status?: "Normal" | "Pending" | "PortedIn" | "Temporary" | "Unknown"; } export default ListAccountPhoneNumbersParameters; diff --git a/packages/core/src/definitions/ListAccountPhoneNumbersV2Parameters.ts b/packages/core/src/definitions/ListAccountPhoneNumbersV2Parameters.ts index 35e1ad1c..a45a8cda 100644 --- a/packages/core/src/definitions/ListAccountPhoneNumbersV2Parameters.ts +++ b/packages/core/src/definitions/ListAccountPhoneNumbersV2Parameters.ts @@ -26,28 +26,28 @@ interface ListAccountPhoneNumbersV2Parameters { /** * Types of phone numbers to be returned */ - type?: ('VoiceFax' | 'VoiceOnly' | 'FaxOnly')[]; + type?: ("VoiceFax" | "VoiceOnly" | "FaxOnly")[]; /** * Usage type(s) of phone numbers to be returned */ usageType?: ( - | 'MainCompanyNumber' - | 'DirectNumber' - | 'Inventory' - | 'InventoryPartnerBusinessMobileNumber' - | 'PartnerBusinessMobileNumber' - | 'AdditionalCompanyNumber' - | 'CompanyNumber' - | 'PhoneLine' - | 'CompanyFaxNumber' - | 'ForwardedNumber' - | 'ForwardedCompanyNumber' - | 'ContactCenterNumber' - | 'ConferencingNumber' - | 'MeetingsNumber' - | 'BusinessMobileNumber' - | 'ELIN' + | "MainCompanyNumber" + | "DirectNumber" + | "Inventory" + | "InventoryPartnerBusinessMobileNumber" + | "PartnerBusinessMobileNumber" + | "AdditionalCompanyNumber" + | "CompanyNumber" + | "PhoneLine" + | "CompanyFaxNumber" + | "ForwardedNumber" + | "ForwardedCompanyNumber" + | "ContactCenterNumber" + | "ConferencingNumber" + | "MeetingsNumber" + | "BusinessMobileNumber" + | "ELIN" )[]; /** @@ -55,18 +55,23 @@ interface ListAccountPhoneNumbersV2Parameters { * number is ready to be used. Otherwise, it is an external number not yet * ported to RingCentral */ - status?: 'Normal' | 'Pending' | 'PortedIn' | 'Temporary' | 'Unknown'; + status?: "Normal" | "Pending" | "PortedIn" | "Temporary" | "Unknown"; /** * Indicates if a number is toll or toll-free * Example: Toll */ - tollType?: 'Toll' | 'TollFree'; + tollType?: "Toll" | "TollFree"; /** * Extension status */ - extensionStatus?: 'Enabled' | 'Disabled' | 'Frozen' | 'NotActivated' | 'Unassigned'; + extensionStatus?: + | "Enabled" + | "Disabled" + | "Frozen" + | "NotActivated" + | "Unassigned"; /** * The parameter reflects whether this number is BYOC or not diff --git a/packages/core/src/definitions/ListAnsweringRulesParameters.ts b/packages/core/src/definitions/ListAnsweringRulesParameters.ts index 91cb06cb..507daba2 100644 --- a/packages/core/src/definitions/ListAnsweringRulesParameters.ts +++ b/packages/core/src/definitions/ListAnsweringRulesParameters.ts @@ -5,12 +5,12 @@ interface ListAnsweringRulesParameters { /** * Filters custom call handling rules of the extension */ - type?: 'Custom'; + type?: "Custom"; /** * Default: Simple */ - view?: 'Detailed' | 'Simple'; + view?: "Detailed" | "Simple"; /** * If true, then only active call handling rules are returned diff --git a/packages/core/src/definitions/ListAutomaticLocationUpdatesUsersParameters.ts b/packages/core/src/definitions/ListAutomaticLocationUpdatesUsersParameters.ts index 66221a05..724e7267 100644 --- a/packages/core/src/definitions/ListAutomaticLocationUpdatesUsersParameters.ts +++ b/packages/core/src/definitions/ListAutomaticLocationUpdatesUsersParameters.ts @@ -5,7 +5,7 @@ interface ListAutomaticLocationUpdatesUsersParameters { /** * Extension type. Multiple values are supported */ - type?: ('User' | 'Limited')[]; + type?: ("User" | "Limited")[]; /** * Filters entries containing the specified substring in user name, diff --git a/packages/core/src/definitions/ListBlockedAllowedNumbersParameters.ts b/packages/core/src/definitions/ListBlockedAllowedNumbersParameters.ts index 41a121b3..974597d8 100644 --- a/packages/core/src/definitions/ListBlockedAllowedNumbersParameters.ts +++ b/packages/core/src/definitions/ListBlockedAllowedNumbersParameters.ts @@ -27,7 +27,7 @@ interface ListBlockedAllowedNumbersParameters { * Status of a phone number * Default: Blocked */ - status?: 'Blocked' | 'Allowed'; + status?: "Blocked" | "Allowed"; } export default ListBlockedAllowedNumbersParameters; diff --git a/packages/core/src/definitions/ListCallRecordingCustomGreetingsParameters.ts b/packages/core/src/definitions/ListCallRecordingCustomGreetingsParameters.ts index f3b432b7..c7a5cecb 100644 --- a/packages/core/src/definitions/ListCallRecordingCustomGreetingsParameters.ts +++ b/packages/core/src/definitions/ListCallRecordingCustomGreetingsParameters.ts @@ -2,9 +2,8 @@ * Query parameters for operation listCallRecordingCustomGreetings */ interface ListCallRecordingCustomGreetingsParameters { - /** - */ - type?: 'StartRecording' | 'StopRecording' | 'AutomaticRecording'; + /** */ + type?: "StartRecording" | "StopRecording" | "AutomaticRecording"; } export default ListCallRecordingCustomGreetingsParameters; diff --git a/packages/core/src/definitions/ListChatNotesNewParameters.ts b/packages/core/src/definitions/ListChatNotesNewParameters.ts index 1affaecd..9da0d31c 100644 --- a/packages/core/src/definitions/ListChatNotesNewParameters.ts +++ b/packages/core/src/definitions/ListChatNotesNewParameters.ts @@ -25,7 +25,7 @@ interface ListChatNotesNewParameters { * Status of notes to be fetched; if not specified all notes are * fetched by default. */ - status?: 'Active' | 'Draft'; + status?: "Active" | "Draft"; /** * Pagination token diff --git a/packages/core/src/definitions/ListChatTasksNewParameters.ts b/packages/core/src/definitions/ListChatTasksNewParameters.ts index 62898d43..6f6f1207 100644 --- a/packages/core/src/definitions/ListChatTasksNewParameters.ts +++ b/packages/core/src/definitions/ListChatTasksNewParameters.ts @@ -23,12 +23,12 @@ interface ListChatTasksNewParameters { /** * Task execution status */ - status?: ('Pending' | 'InProgress' | 'Completed')[]; + status?: ("Pending" | "InProgress" | "Completed")[]; /** * Task assignment status */ - assignmentStatus?: 'Unassigned' | 'Assigned'; + assignmentStatus?: "Unassigned" | "Assigned"; /** * Internal identifier of a task assignee @@ -38,7 +38,7 @@ interface ListChatTasksNewParameters { /** * Task execution status by assignee(-s) specified in assigneeId */ - assigneeStatus?: 'Pending' | 'Completed'; + assigneeStatus?: "Pending" | "Completed"; /** * Token of the current page. If token is omitted then the first diff --git a/packages/core/src/definitions/ListCompanyActiveCallsParameters.ts b/packages/core/src/definitions/ListCompanyActiveCallsParameters.ts index c67a19ae..de92800b 100644 --- a/packages/core/src/definitions/ListCompanyActiveCallsParameters.ts +++ b/packages/core/src/definitions/ListCompanyActiveCallsParameters.ts @@ -6,29 +6,29 @@ interface ListCompanyActiveCallsParameters { * The direction of call records to be included in the result. If omitted, both * inbound and outbound calls are returned. Multiple values are supported */ - direction?: ('Inbound' | 'Outbound')[]; + direction?: ("Inbound" | "Outbound")[]; /** * Defines the level of details for returned call records * Default: Simple */ - view?: 'Simple' | 'Detailed'; + view?: "Simple" | "Detailed"; /** * The type of call records to be included in the result. * If omitted, all call types are returned. Multiple values are supported */ - type?: ('Voice' | 'Fax')[]; + type?: ("Voice" | "Fax")[]; /** * The type of call transport. Multiple values are supported. By default, this filter is disabled */ - transport?: ('PSTN' | 'VoIP')[]; + transport?: ("PSTN" | "VoIP")[]; /** * Conference call type: RCC or RC Meetings. If not specified, no conference call filter applied */ - conferenceType?: ('AudioConferencing' | 'Meetings')[]; + conferenceType?: ("AudioConferencing" | "Meetings")[]; /** * Indicates the page number to retrieve. Only positive number values are accepted diff --git a/packages/core/src/definitions/ListCompanyAnsweringRuleInfo.ts b/packages/core/src/definitions/ListCompanyAnsweringRuleInfo.ts index 13eac7e8..ad48b6be 100644 --- a/packages/core/src/definitions/ListCompanyAnsweringRuleInfo.ts +++ b/packages/core/src/definitions/ListCompanyAnsweringRuleInfo.ts @@ -1,5 +1,5 @@ -import type CalledNumberInfo from './CalledNumberInfo'; -import type CompanyAnsweringRuleExtensionInfo from './CompanyAnsweringRuleExtensionInfo'; +import type CalledNumberInfo from "./CalledNumberInfo"; +import type CompanyAnsweringRuleExtensionInfo from "./CompanyAnsweringRuleExtensionInfo"; interface ListCompanyAnsweringRuleInfo { /** @@ -22,7 +22,7 @@ interface ListCompanyAnsweringRuleInfo { /** * Type of an answering rule, the default value is 'Custom' = ['BusinessHours', 'AfterHours', 'Custom'] */ - type?: 'BusinessHours' | 'AfterHours' | 'Custom'; + type?: "BusinessHours" | "AfterHours" | "Custom"; /** * Name of an answering rule specified by user. Max number of symbols is 30. The default value is 'My Rule N' where 'N' is the first free number @@ -34,8 +34,7 @@ interface ListCompanyAnsweringRuleInfo { */ calledNumbers?: CalledNumberInfo[]; - /** - */ + /** */ extension?: CompanyAnsweringRuleExtensionInfo; } diff --git a/packages/core/src/definitions/ListContactsParameters.ts b/packages/core/src/definitions/ListContactsParameters.ts index b816acc6..98b49763 100644 --- a/packages/core/src/definitions/ListContactsParameters.ts +++ b/packages/core/src/definitions/ListContactsParameters.ts @@ -11,7 +11,7 @@ interface ListContactsParameters { /** * Sorts results by the specified property */ - sortBy?: ('FirstName' | 'LastName' | 'Company')[]; + sortBy?: ("FirstName" | "LastName" | "Company")[]; /** * The result set page number (1-indexed) to return diff --git a/packages/core/src/definitions/ListDataExportTasksNewParameters.ts b/packages/core/src/definitions/ListDataExportTasksNewParameters.ts index be2b19dc..d844914d 100644 --- a/packages/core/src/definitions/ListDataExportTasksNewParameters.ts +++ b/packages/core/src/definitions/ListDataExportTasksNewParameters.ts @@ -5,7 +5,7 @@ interface ListDataExportTasksNewParameters { /** * Status of the task(s) to be returned. Multiple values are supported */ - status?: 'Accepted' | 'InProgress' | 'Completed' | 'Failed' | 'Expired'; + status?: "Accepted" | "InProgress" | "Completed" | "Failed" | "Expired"; /** * Page number to be retrieved; value range is > 0 diff --git a/packages/core/src/definitions/ListDevicesAutomaticLocationUpdates.ts b/packages/core/src/definitions/ListDevicesAutomaticLocationUpdates.ts index d19c5a62..4c34c3e9 100644 --- a/packages/core/src/definitions/ListDevicesAutomaticLocationUpdates.ts +++ b/packages/core/src/definitions/ListDevicesAutomaticLocationUpdates.ts @@ -1,6 +1,6 @@ -import type AutomaticLocationUpdatesDeviceInfo from './AutomaticLocationUpdatesDeviceInfo'; -import type PageNavigationModel from './PageNavigationModel'; -import type EnumeratedPagingModel from './EnumeratedPagingModel'; +import type AutomaticLocationUpdatesDeviceInfo from "./AutomaticLocationUpdatesDeviceInfo"; +import type PageNavigationModel from "./PageNavigationModel"; +import type EnumeratedPagingModel from "./EnumeratedPagingModel"; interface ListDevicesAutomaticLocationUpdates { /** @@ -15,12 +15,10 @@ interface ListDevicesAutomaticLocationUpdates { */ records?: AutomaticLocationUpdatesDeviceInfo[]; - /** - */ + /** */ navigation?: PageNavigationModel; - /** - */ + /** */ paging?: EnumeratedPagingModel; } diff --git a/packages/core/src/definitions/ListDirectoryEntriesParameters.ts b/packages/core/src/definitions/ListDirectoryEntriesParameters.ts index 45d9c9d2..5193e4e0 100644 --- a/packages/core/src/definitions/ListDirectoryEntriesParameters.ts +++ b/packages/core/src/definitions/ListDirectoryEntriesParameters.ts @@ -18,21 +18,21 @@ interface ListDirectoryEntriesParameters { * Type of an extension. Please note that legacy 'Department' extension type corresponds to 'Call Queue' extensions in modern RingCentral product terminology */ type?: - | 'User' - | 'Department' - | 'Announcement' - | 'Voicemail' - | 'SharedLinesGroup' - | 'PagingOnly' - | 'IvrMenu' - | 'ParkLocation' - | 'Limited' - | 'External'; + | "User" + | "Department" + | "Announcement" + | "Voicemail" + | "SharedLinesGroup" + | "PagingOnly" + | "IvrMenu" + | "ParkLocation" + | "Limited" + | "External"; /** * Type of extension group */ - typeGroup?: 'User' | 'NonUser'; + typeGroup?: "User" | "NonUser"; /** * Page number @@ -49,7 +49,7 @@ interface ListDirectoryEntriesParameters { * Format: int32 * Default: 1000 */ - perPage?: 'max' | 'all'; + perPage?: "max" | "all"; /** * Internal identifier of the business site to which extensions belong diff --git a/packages/core/src/definitions/ListEmergencyLocationsParameters.ts b/packages/core/src/definitions/ListEmergencyLocationsParameters.ts index af6a4d22..cb1eed6b 100644 --- a/packages/core/src/definitions/ListEmergencyLocationsParameters.ts +++ b/packages/core/src/definitions/ListEmergencyLocationsParameters.ts @@ -19,14 +19,12 @@ interface ListEmergencyLocationsParameters { /** * Emergency address status */ - addressStatus?: 'Valid' | 'Invalid' | 'Provisioning'; + addressStatus?: "Valid" | "Invalid" | "Provisioning"; - /** - */ - usageStatus?: 'Active' | 'Inactive'; + /** */ + usageStatus?: "Active" | "Inactive"; - /** - */ + /** */ domesticCountryId?: string; /** @@ -35,16 +33,16 @@ interface ListEmergencyLocationsParameters { * Default: +address */ orderBy?: - | '+name' - | '+siteName' - | '+address' - | '+addressStatus' - | '+usageStatus' - | '-name' - | '-siteName' - | '-address' - | '-addressStatus' - | '-usageStatus'; + | "+name" + | "+siteName" + | "+address" + | "+addressStatus" + | "+usageStatus" + | "-name" + | "-siteName" + | "-address" + | "-addressStatus" + | "-usageStatus"; /** * Indicates a page size (number of items). The values diff --git a/packages/core/src/definitions/ListEnrolledSpeakers.ts b/packages/core/src/definitions/ListEnrolledSpeakers.ts index b4d245e3..cb8df5d7 100644 --- a/packages/core/src/definitions/ListEnrolledSpeakers.ts +++ b/packages/core/src/definitions/ListEnrolledSpeakers.ts @@ -1,5 +1,5 @@ -import type PagingSchema from './PagingSchema'; -import type EnrollmentStatus from './EnrollmentStatus'; +import type PagingSchema from "./PagingSchema"; +import type EnrollmentStatus from "./EnrollmentStatus"; interface ListEnrolledSpeakers { /** diff --git a/packages/core/src/definitions/ListExtensionActiveCallsParameters.ts b/packages/core/src/definitions/ListExtensionActiveCallsParameters.ts index 372a7d8b..9aa28bdf 100644 --- a/packages/core/src/definitions/ListExtensionActiveCallsParameters.ts +++ b/packages/core/src/definitions/ListExtensionActiveCallsParameters.ts @@ -6,29 +6,29 @@ interface ListExtensionActiveCallsParameters { * The direction of call records to be included in the result. If omitted, both * inbound and outbound calls are returned. Multiple values are supported */ - direction?: ('Inbound' | 'Outbound')[]; + direction?: ("Inbound" | "Outbound")[]; /** * Defines the level of details for returned call records * Default: Simple */ - view?: 'Simple' | 'Detailed'; + view?: "Simple" | "Detailed"; /** * The type of call records to be included in the result. * If omitted, all call types are returned. Multiple values are supported */ - type?: ('Voice' | 'Fax')[]; + type?: ("Voice" | "Fax")[]; /** * The type of call transport. Multiple values are supported. By default, this filter is disabled */ - transport?: ('PSTN' | 'VoIP')[]; + transport?: ("PSTN" | "VoIP")[]; /** * Conference call type: RCC or RC Meetings. If not specified, no conference call filter applied */ - conferenceType?: ('AudioConferencing' | 'Meetings')[]; + conferenceType?: ("AudioConferencing" | "Meetings")[]; /** * Indicates the page number to retrieve. Only positive number values are allowed diff --git a/packages/core/src/definitions/ListExtensionDevicesParameters.ts b/packages/core/src/definitions/ListExtensionDevicesParameters.ts index 1e4f196d..8aea8a57 100644 --- a/packages/core/src/definitions/ListExtensionDevicesParameters.ts +++ b/packages/core/src/definitions/ListExtensionDevicesParameters.ts @@ -26,23 +26,37 @@ interface ListExtensionDevicesParameters { /** * Pooling type of device - Host - a device with standalone paid phone line which can be linked to a soft client instance - Guest - a device with a linked phone line - None - a device without a phone line or with specific line (free, BLA, etc.) */ - linePooling?: 'Host' | 'Guest' | 'None'; + linePooling?: "Host" | "Guest" | "None"; /** * Device feature or multiple features supported */ - feature?: ('BLA' | 'CommonPhone' | 'Intercom' | 'Paging' | 'HELD')[]; + feature?: ("BLA" | "CommonPhone" | "Intercom" | "Paging" | "HELD")[]; /** * Device type * Default: HardPhone */ - type?: 'HardPhone' | 'SoftPhone' | 'OtherPhone' | 'MobileDevice' | 'BLA' | 'Paging' | 'WebPhone' | 'WebRTC' | 'Room'; + type?: + | "HardPhone" + | "SoftPhone" + | "OtherPhone" + | "MobileDevice" + | "BLA" + | "Paging" + | "WebPhone" + | "WebRTC" + | "Room"; /** * The type of phone line */ - lineType?: 'Unknown' | 'Standalone' | 'StandaloneFree' | 'BlaPrimary' | 'BlaSecondary'; + lineType?: + | "Unknown" + | "Standalone" + | "StandaloneFree" + | "BlaPrimary" + | "BlaSecondary"; } export default ListExtensionDevicesParameters; diff --git a/packages/core/src/definitions/ListExtensionGrantsParameters.ts b/packages/core/src/definitions/ListExtensionGrantsParameters.ts index 8239b501..d7e7f9af 100644 --- a/packages/core/src/definitions/ListExtensionGrantsParameters.ts +++ b/packages/core/src/definitions/ListExtensionGrantsParameters.ts @@ -8,22 +8,22 @@ interface ListExtensionGrantsParameters { * to 'Call Queue' extensions in modern RingCentral product terminology */ extensionType?: - | 'User' - | 'FaxUser' - | 'VirtualUser' - | 'DigitalUser' - | 'Department' - | 'Announcement' - | 'Voicemail' - | 'SharedLinesGroup' - | 'PagingOnly' - | 'IvrMenu' - | 'ApplicationExtension' - | 'ParkLocation' - | 'Limited' - | 'Bot' - | 'Room' - | 'DelegatedLinesGroup'; + | "User" + | "FaxUser" + | "VirtualUser" + | "DigitalUser" + | "Department" + | "Announcement" + | "Voicemail" + | "SharedLinesGroup" + | "PagingOnly" + | "IvrMenu" + | "ApplicationExtension" + | "ParkLocation" + | "Limited" + | "Bot" + | "Room" + | "DelegatedLinesGroup"; /** * Indicates a page number to retrieve. Only positive number values diff --git a/packages/core/src/definitions/ListExtensionPhoneNumbersParameters.ts b/packages/core/src/definitions/ListExtensionPhoneNumbersParameters.ts index 958b400a..2013c2de 100644 --- a/packages/core/src/definitions/ListExtensionPhoneNumbersParameters.ts +++ b/packages/core/src/definitions/ListExtensionPhoneNumbersParameters.ts @@ -7,22 +7,22 @@ interface ListExtensionPhoneNumbersParameters { * number is ready to be used. Otherwise, it is an external number not yet * ported to RingCentral */ - status?: 'Normal' | 'Pending' | 'PortedIn' | 'Temporary' | 'Unknown'; + status?: "Normal" | "Pending" | "PortedIn" | "Temporary" | "Unknown"; /** * Usage type of phone number */ usageType?: ( - | 'MainCompanyNumber' - | 'AdditionalCompanyNumber' - | 'CompanyNumber' - | 'DirectNumber' - | 'CompanyFaxNumber' - | 'ForwardedNumber' - | 'ForwardedCompanyNumber' - | 'BusinessMobileNumber' - | 'PartnerBusinessMobileNumber' - | 'IntegrationNumber' + | "MainCompanyNumber" + | "AdditionalCompanyNumber" + | "CompanyNumber" + | "DirectNumber" + | "CompanyFaxNumber" + | "ForwardedNumber" + | "ForwardedCompanyNumber" + | "BusinessMobileNumber" + | "PartnerBusinessMobileNumber" + | "IntegrationNumber" )[]; /** diff --git a/packages/core/src/definitions/ListExtensionsParameters.ts b/packages/core/src/definitions/ListExtensionsParameters.ts index 3ff45d04..d4adf7be 100644 --- a/packages/core/src/definitions/ListExtensionsParameters.ts +++ b/packages/core/src/definitions/ListExtensionsParameters.ts @@ -33,7 +33,8 @@ interface ListExtensionsParameters { * is specified, then extensions without `extensionNumber` attribute are returned. * If not specified, then all extensions are returned */ - status?: ('Enabled' | 'Disabled' | 'Frozen' | 'NotActivated' | 'Unassigned')[]; + status?: + ("Enabled" | "Disabled" | "Frozen" | "NotActivated" | "Unassigned")[]; /** * Extension type. Multiple values are supported. Please note @@ -41,24 +42,24 @@ interface ListExtensionsParameters { * extensions in modern RingCentral product terminology */ type?: ( - | 'User' - | 'FaxUser' - | 'FlexibleUser' - | 'VirtualUser' - | 'DigitalUser' - | 'Department' - | 'Announcement' - | 'Voicemail' - | 'SharedLinesGroup' - | 'PagingOnly' - | 'IvrMenu' - | 'ApplicationExtension' - | 'ParkLocation' - | 'Limited' - | 'Bot' - | 'ProxyAdmin' - | 'DelegatedLinesGroup' - | 'Site' + | "User" + | "FaxUser" + | "FlexibleUser" + | "VirtualUser" + | "DigitalUser" + | "Department" + | "Announcement" + | "Voicemail" + | "SharedLinesGroup" + | "PagingOnly" + | "IvrMenu" + | "ApplicationExtension" + | "ParkLocation" + | "Limited" + | "Bot" + | "ProxyAdmin" + | "DelegatedLinesGroup" + | "Site" )[]; } diff --git a/packages/core/src/definitions/ListFaxCoverPagesResponse.ts b/packages/core/src/definitions/ListFaxCoverPagesResponse.ts index 235a9aae..d620194d 100644 --- a/packages/core/src/definitions/ListFaxCoverPagesResponse.ts +++ b/packages/core/src/definitions/ListFaxCoverPagesResponse.ts @@ -1,6 +1,6 @@ -import type FaxCoverPageInfo from './FaxCoverPageInfo'; -import type PageNavigationModel from './PageNavigationModel'; -import type EnumeratedPagingModel from './EnumeratedPagingModel'; +import type FaxCoverPageInfo from "./FaxCoverPageInfo"; +import type PageNavigationModel from "./PageNavigationModel"; +import type EnumeratedPagingModel from "./EnumeratedPagingModel"; interface ListFaxCoverPagesResponse { /** @@ -8,16 +8,13 @@ interface ListFaxCoverPagesResponse { */ uri?: string; - /** - */ + /** */ records?: FaxCoverPageInfo[]; - /** - */ + /** */ navigation?: PageNavigationModel; - /** - */ + /** */ paging?: EnumeratedPagingModel; } diff --git a/packages/core/src/definitions/ListGlipChatsNewParameters.ts b/packages/core/src/definitions/ListGlipChatsNewParameters.ts index ed207f69..bfee9c2f 100644 --- a/packages/core/src/definitions/ListGlipChatsNewParameters.ts +++ b/packages/core/src/definitions/ListGlipChatsNewParameters.ts @@ -5,7 +5,7 @@ interface ListGlipChatsNewParameters { /** * Type of chats to be fetched. By default, all type of chats will be fetched */ - type?: ('Personal' | 'Direct' | 'Group' | 'Team' | 'Everyone')[]; + type?: ("Personal" | "Direct" | "Group" | "Team" | "Everyone")[]; /** * Number of chats to be fetched by one request. The maximum value is 250, by default - 30. diff --git a/packages/core/src/definitions/ListLocationsParameters.ts b/packages/core/src/definitions/ListLocationsParameters.ts index d9b1a1ff..8810eb49 100644 --- a/packages/core/src/definitions/ListLocationsParameters.ts +++ b/packages/core/src/definitions/ListLocationsParameters.ts @@ -6,7 +6,7 @@ interface ListLocationsParameters { * Sorts results by the property specified * Default: City */ - orderBy?: 'Npa' | 'City'; + orderBy?: "Npa" | "City"; /** * Indicates a page number to retrieve. Only positive number values diff --git a/packages/core/src/definitions/ListMeetingRecordingsResponse.ts b/packages/core/src/definitions/ListMeetingRecordingsResponse.ts index 5589ac06..ae40a879 100644 --- a/packages/core/src/definitions/ListMeetingRecordingsResponse.ts +++ b/packages/core/src/definitions/ListMeetingRecordingsResponse.ts @@ -1,18 +1,15 @@ -import type MeetingRecordings from './MeetingRecordings'; -import type EnumeratedPagingModel from './EnumeratedPagingModel'; -import type PageNavigationModel from './PageNavigationModel'; +import type MeetingRecordings from "./MeetingRecordings"; +import type EnumeratedPagingModel from "./EnumeratedPagingModel"; +import type PageNavigationModel from "./PageNavigationModel"; interface ListMeetingRecordingsResponse { - /** - */ + /** */ records?: MeetingRecordings[]; - /** - */ + /** */ paging?: EnumeratedPagingModel; - /** - */ + /** */ navigation?: PageNavigationModel; } diff --git a/packages/core/src/definitions/ListMessagesParameters.ts b/packages/core/src/definitions/ListMessagesParameters.ts index c7db3b91..2722ef1b 100644 --- a/packages/core/src/definitions/ListMessagesParameters.ts +++ b/packages/core/src/definitions/ListMessagesParameters.ts @@ -6,7 +6,7 @@ interface ListMessagesParameters { * Specifies the availability status for resulting messages. * Multiple values are accepted */ - availability?: ('Alive' | 'Deleted' | 'Purged')[]; + availability?: ("Alive" | "Deleted" | "Purged")[]; /** * Specifies a conversation identifier for the resulting messages @@ -33,7 +33,7 @@ interface ListMessagesParameters { * Direction for resulting messages. If not specified, both * inbound and outbound messages are returned. Multiple values are accepted */ - direction?: ('Inbound' | 'Outbound')[]; + direction?: ("Inbound" | "Outbound")[]; /** * If `true`, then the latest messages per every conversation ID @@ -45,13 +45,13 @@ interface ListMessagesParameters { * Type of resulting messages. If not specified, all messages * without message type filtering are returned. Multiple values are accepted */ - messageType?: ('Fax' | 'SMS' | 'VoiceMail' | 'Pager')[]; + messageType?: ("Fax" | "SMS" | "VoiceMail" | "Pager")[]; /** * Read status for resulting messages. Multiple values are * accepted */ - readStatus?: ('Read' | 'Unread')[]; + readStatus?: ("Read" | "Unread")[]; /** * Indicates a page number to retrieve. Only positive number values diff --git a/packages/core/src/definitions/ListRecentChatsNewParameters.ts b/packages/core/src/definitions/ListRecentChatsNewParameters.ts index 4738981a..f2586aea 100644 --- a/packages/core/src/definitions/ListRecentChatsNewParameters.ts +++ b/packages/core/src/definitions/ListRecentChatsNewParameters.ts @@ -5,7 +5,7 @@ interface ListRecentChatsNewParameters { /** * Type of chats to be fetched. By default, all chat types are returned */ - type?: ('Everyone' | 'Group' | 'Personal' | 'Direct' | 'Team')[]; + type?: ("Everyone" | "Group" | "Personal" | "Direct" | "Team")[]; /** * Max number of chats to be fetched by one request (Not more than 250). diff --git a/packages/core/src/definitions/ListStandardGreetingsParameters.ts b/packages/core/src/definitions/ListStandardGreetingsParameters.ts index 170b8226..005e0064 100644 --- a/packages/core/src/definitions/ListStandardGreetingsParameters.ts +++ b/packages/core/src/definitions/ListStandardGreetingsParameters.ts @@ -27,27 +27,27 @@ interface ListStandardGreetingsParameters { * Type of greeting, specifying the case when the greeting is played */ type?: - | 'Introductory' - | 'Announcement' - | 'ConnectingMessage' - | 'ConnectingAudio' - | 'Voicemail' - | 'Unavailable' - | 'HoldMusic' - | 'Company'; + | "Introductory" + | "Announcement" + | "ConnectingMessage" + | "ConnectingAudio" + | "Voicemail" + | "Unavailable" + | "HoldMusic" + | "Company"; /** * Usage type of greeting, specifying if the greeting is applied for user extension or department (call queue) extension */ usageType?: - | 'UserExtensionAnsweringRule' - | 'ExtensionAnsweringRule' - | 'DepartmentExtensionAnsweringRule' - | 'CompanyAnsweringRule' - | 'CompanyAfterHoursAnsweringRule' - | 'VoicemailExtensionAnsweringRule' - | 'AnnouncementExtensionAnsweringRule' - | 'SharedLinesGroupAnsweringRule'; + | "UserExtensionAnsweringRule" + | "ExtensionAnsweringRule" + | "DepartmentExtensionAnsweringRule" + | "CompanyAnsweringRule" + | "CompanyAfterHoursAnsweringRule" + | "VoicemailExtensionAnsweringRule" + | "AnnouncementExtensionAnsweringRule" + | "SharedLinesGroupAnsweringRule"; } export default ListStandardGreetingsParameters; diff --git a/packages/core/src/definitions/ListUserMessageTemplatesParameters.ts b/packages/core/src/definitions/ListUserMessageTemplatesParameters.ts index f0504241..6ec37a31 100644 --- a/packages/core/src/definitions/ListUserMessageTemplatesParameters.ts +++ b/packages/core/src/definitions/ListUserMessageTemplatesParameters.ts @@ -11,7 +11,7 @@ interface ListUserMessageTemplatesParameters { /** * Specifies if a template is available on a user (Personal) or a company (Company) level */ - scope?: 'Company' | 'Personal'; + scope?: "Company" | "Personal"; } export default ListUserMessageTemplatesParameters; diff --git a/packages/core/src/definitions/ListUserTemplatesParameters.ts b/packages/core/src/definitions/ListUserTemplatesParameters.ts index 92ca35c0..305d8568 100644 --- a/packages/core/src/definitions/ListUserTemplatesParameters.ts +++ b/packages/core/src/definitions/ListUserTemplatesParameters.ts @@ -5,7 +5,7 @@ interface ListUserTemplatesParameters { /** * Type of template */ - type?: 'UserSettings' | 'CallHandling' | 'LimitedExtensions'; + type?: "UserSettings" | "CallHandling" | "LimitedExtensions"; /** * Indicates a page number to retrieve. Only positive number values diff --git a/packages/core/src/definitions/ListVideoMeetingsParameters.ts b/packages/core/src/definitions/ListVideoMeetingsParameters.ts index ef490335..0aee476b 100644 --- a/packages/core/src/definitions/ListVideoMeetingsParameters.ts +++ b/packages/core/src/definitions/ListVideoMeetingsParameters.ts @@ -27,7 +27,7 @@ interface ListVideoMeetingsParameters { * `Shared` - access rights of meeting is equal to Alive AND requested acc/ext is in watcher list AND not HOST * `Deleted` - access rights of meeting is equal to Delete and requested acc/ext is host OR deputy */ - type?: 'All' | 'My' | 'Deleted' | 'Shared'; + type?: "All" | "My" | "Deleted" | "Shared"; /** * Unix timestamp in milliseconds (inclusive) indicates the start time of meetings which should be included in response diff --git a/packages/core/src/definitions/LocationDeletionInfo.ts b/packages/core/src/definitions/LocationDeletionInfo.ts index b11c5307..8858d6a7 100644 --- a/packages/core/src/definitions/LocationDeletionInfo.ts +++ b/packages/core/src/definitions/LocationDeletionInfo.ts @@ -1,22 +1,19 @@ -import type LocationDeletionErrorInfo from './LocationDeletionErrorInfo'; +import type LocationDeletionErrorInfo from "./LocationDeletionErrorInfo"; interface LocationDeletionInfo { - /** - */ + /** */ id?: string; - /** - */ + /** */ name?: string; /** * Identifies the possibility and status of emergency location * deletion */ - deletion?: 'Failed' | 'Completed' | 'Forbidden' | 'Restricted' | 'Allowed'; + deletion?: "Failed" | "Completed" | "Forbidden" | "Restricted" | "Allowed"; - /** - */ + /** */ errors?: LocationDeletionErrorInfo; } diff --git a/packages/core/src/definitions/LocationInfo.ts b/packages/core/src/definitions/LocationInfo.ts index 8e133845..461f124e 100644 --- a/packages/core/src/definitions/LocationInfo.ts +++ b/packages/core/src/definitions/LocationInfo.ts @@ -1,4 +1,4 @@ -import type LocationStateInfo from './LocationStateInfo'; +import type LocationStateInfo from "./LocationStateInfo"; interface LocationInfo { /** @@ -33,8 +33,7 @@ interface LocationInfo { */ nxx?: string; - /** - */ + /** */ state?: LocationStateInfo; } diff --git a/packages/core/src/definitions/LocationUpdatesEmergencyAddressInfoRequest.ts b/packages/core/src/definitions/LocationUpdatesEmergencyAddressInfoRequest.ts index b978bbab..f1f5389b 100644 --- a/packages/core/src/definitions/LocationUpdatesEmergencyAddressInfoRequest.ts +++ b/packages/core/src/definitions/LocationUpdatesEmergencyAddressInfoRequest.ts @@ -1,7 +1,6 @@ /** * Emergency address assigned to the switch. Only one of a pair `emergencyAddress` * or `emergencyLocationId` should be specified, otherwise the error is returned - * */ interface LocationUpdatesEmergencyAddressInfoRequest { /** diff --git a/packages/core/src/definitions/MakeCallOutRequest.ts b/packages/core/src/definitions/MakeCallOutRequest.ts index 27ff43de..caaa9078 100644 --- a/packages/core/src/definitions/MakeCallOutRequest.ts +++ b/packages/core/src/definitions/MakeCallOutRequest.ts @@ -1,5 +1,5 @@ -import type MakeCallOutCallerInfoRequestFrom from './MakeCallOutCallerInfoRequestFrom'; -import type MakeCallOutCallerInfoRequestTo from './MakeCallOutCallerInfoRequestTo'; +import type MakeCallOutCallerInfoRequestFrom from "./MakeCallOutCallerInfoRequestFrom"; +import type MakeCallOutCallerInfoRequestTo from "./MakeCallOutCallerInfoRequestTo"; interface MakeCallOutRequest { /** diff --git a/packages/core/src/definitions/MakeRingOutCallerInfoRequestFrom.ts b/packages/core/src/definitions/MakeRingOutCallerInfoRequestFrom.ts index 3ba4cbb3..9dd93165 100644 --- a/packages/core/src/definitions/MakeRingOutCallerInfoRequestFrom.ts +++ b/packages/core/src/definitions/MakeRingOutCallerInfoRequestFrom.ts @@ -2,7 +2,6 @@ * Phone number of a caller. This number corresponds to the 1st * leg of a RingOut call. This number can be one of the user's configured forwarding * numbers or an arbitrary number - * */ interface MakeRingOutCallerInfoRequestFrom { /** diff --git a/packages/core/src/definitions/MakeRingOutCallerInfoRequestTo.ts b/packages/core/src/definitions/MakeRingOutCallerInfoRequestTo.ts index 357584b7..47d3475f 100644 --- a/packages/core/src/definitions/MakeRingOutCallerInfoRequestTo.ts +++ b/packages/core/src/definitions/MakeRingOutCallerInfoRequestTo.ts @@ -1,7 +1,6 @@ /** * Phone number of a called party. This number corresponds to the * 2nd leg of a RingOut call - * */ interface MakeRingOutCallerInfoRequestTo { /** diff --git a/packages/core/src/definitions/MakeRingOutCountryInfo.ts b/packages/core/src/definitions/MakeRingOutCountryInfo.ts index 87b08822..a769571d 100644 --- a/packages/core/src/definitions/MakeRingOutCountryInfo.ts +++ b/packages/core/src/definitions/MakeRingOutCountryInfo.ts @@ -1,7 +1,6 @@ /** * Optional. Dialing plan country data. If not specified, then an extension * home country is applied by default - * */ interface MakeRingOutCountryInfo { /** diff --git a/packages/core/src/definitions/MakeRingOutRequest.ts b/packages/core/src/definitions/MakeRingOutRequest.ts index a0575a01..4549cc59 100644 --- a/packages/core/src/definitions/MakeRingOutRequest.ts +++ b/packages/core/src/definitions/MakeRingOutRequest.ts @@ -1,7 +1,7 @@ -import type MakeRingOutCallerInfoRequestFrom from './MakeRingOutCallerInfoRequestFrom'; -import type MakeRingOutCallerInfoRequestTo from './MakeRingOutCallerInfoRequestTo'; -import type MakeRingOutCallerIdInfo from './MakeRingOutCallerIdInfo'; -import type MakeRingOutCountryInfo from './MakeRingOutCountryInfo'; +import type MakeRingOutCallerInfoRequestFrom from "./MakeRingOutCallerInfoRequestFrom"; +import type MakeRingOutCallerInfoRequestTo from "./MakeRingOutCallerInfoRequestTo"; +import type MakeRingOutCallerIdInfo from "./MakeRingOutCallerIdInfo"; +import type MakeRingOutCountryInfo from "./MakeRingOutCountryInfo"; interface MakeRingOutRequest { /** @@ -14,8 +14,7 @@ interface MakeRingOutRequest { */ to?: MakeRingOutCallerInfoRequestTo; - /** - */ + /** */ callerId?: MakeRingOutCallerIdInfo; /** @@ -24,8 +23,7 @@ interface MakeRingOutRequest { */ playPrompt?: boolean; - /** - */ + /** */ country?: MakeRingOutCountryInfo; } diff --git a/packages/core/src/definitions/Meeting.ts b/packages/core/src/definitions/Meeting.ts index a3a11879..9ba10888 100644 --- a/packages/core/src/definitions/Meeting.ts +++ b/packages/core/src/definitions/Meeting.ts @@ -1,6 +1,6 @@ -import type Host from './Host'; -import type Participant from './Participant'; -import type Recording from './Recording'; +import type Host from "./Host"; +import type Participant from "./Participant"; +import type Recording from "./Recording"; /** * Meeting information @@ -48,13 +48,13 @@ interface Meeting { * Meeting type * Required */ - type?: 'Meeting' | 'Call'; + type?: "Meeting" | "Call"; /** * Meeting status * Required */ - status?: 'InProgress' | 'Done'; + status?: "InProgress" | "Done"; /** * Required @@ -65,7 +65,7 @@ interface Meeting { * Describe access rights which has participants to meeting * Required */ - rights?: ('delete' | 'download' | 'share')[]; + rights?: ("delete" | "download" | "share")[]; /** * During meeting AI team analyze code and after meeting finished generates text summary about this meeting diff --git a/packages/core/src/definitions/MeetingExternalUserInfoResource.ts b/packages/core/src/definitions/MeetingExternalUserInfoResource.ts index 6c2a3fba..e596eeca 100644 --- a/packages/core/src/definitions/MeetingExternalUserInfoResource.ts +++ b/packages/core/src/definitions/MeetingExternalUserInfoResource.ts @@ -4,12 +4,10 @@ interface MeetingExternalUserInfoResource { */ uri?: string; - /** - */ + /** */ userId?: string; - /** - */ + /** */ accountId?: string; /** @@ -17,16 +15,13 @@ interface MeetingExternalUserInfoResource { */ userType?: number; - /** - */ + /** */ userToken?: string; - /** - */ + /** */ hostKey?: string; - /** - */ + /** */ personalMeetingId?: string; /** @@ -35,8 +30,7 @@ interface MeetingExternalUserInfoResource { */ personalLink?: string; - /** - */ + /** */ personalLinkName?: string; /** diff --git a/packages/core/src/definitions/MeetingInfo.ts b/packages/core/src/definitions/MeetingInfo.ts index 36589e91..1ece75a6 100644 --- a/packages/core/src/definitions/MeetingInfo.ts +++ b/packages/core/src/definitions/MeetingInfo.ts @@ -4,12 +4,10 @@ interface MeetingInfo { */ uuid?: string; - /** - */ + /** */ id?: string; - /** - */ + /** */ topic?: string; /** diff --git a/packages/core/src/definitions/MeetingPage.ts b/packages/core/src/definitions/MeetingPage.ts index 2a2ede61..620a56ec 100644 --- a/packages/core/src/definitions/MeetingPage.ts +++ b/packages/core/src/definitions/MeetingPage.ts @@ -1,5 +1,5 @@ -import type Meeting from './Meeting'; -import type Paging from './Paging'; +import type Meeting from "./Meeting"; +import type Paging from "./Paging"; /** * Meetings page diff --git a/packages/core/src/definitions/MeetingRecordingInfo.ts b/packages/core/src/definitions/MeetingRecordingInfo.ts index 4b641e85..88d1dda2 100644 --- a/packages/core/src/definitions/MeetingRecordingInfo.ts +++ b/packages/core/src/definitions/MeetingRecordingInfo.ts @@ -4,8 +4,7 @@ interface MeetingRecordingInfo { */ uuid?: string; - /** - */ + /** */ id?: string; /** @@ -14,9 +13,8 @@ interface MeetingRecordingInfo { */ contentDownloadUri?: string; - /** - */ - contentType?: 'video/mp4' | 'audio/m4a' | 'text/vtt'; + /** */ + contentType?: "video/mp4" | "audio/m4a" | "text/vtt"; /** * Format: int32 @@ -35,9 +33,8 @@ interface MeetingRecordingInfo { */ endTime?: string; - /** - */ - status?: 'Completed' | 'Processing'; + /** */ + status?: "Completed" | "Processing"; } export default MeetingRecordingInfo; diff --git a/packages/core/src/definitions/MeetingRecordings.ts b/packages/core/src/definitions/MeetingRecordings.ts index 1aff114b..36948274 100644 --- a/packages/core/src/definitions/MeetingRecordings.ts +++ b/packages/core/src/definitions/MeetingRecordings.ts @@ -1,13 +1,11 @@ -import type MeetingInfo from './MeetingInfo'; -import type MeetingRecordingInfo from './MeetingRecordingInfo'; +import type MeetingInfo from "./MeetingInfo"; +import type MeetingRecordingInfo from "./MeetingRecordingInfo"; interface MeetingRecordings { - /** - */ + /** */ meeting?: MeetingInfo; - /** - */ + /** */ recordings?: MeetingRecordingInfo[]; } diff --git a/packages/core/src/definitions/MeetingRequestResource.ts b/packages/core/src/definitions/MeetingRequestResource.ts index 67a2583a..2ec2f50d 100644 --- a/packages/core/src/definitions/MeetingRequestResource.ts +++ b/packages/core/src/definitions/MeetingRequestResource.ts @@ -1,6 +1,6 @@ -import type MeetingScheduleResource from './MeetingScheduleResource'; -import type HostInfoRequest from './HostInfoRequest'; -import type RecurrenceInfo from './RecurrenceInfo'; +import type MeetingScheduleResource from "./MeetingScheduleResource"; +import type HostInfoRequest from "./HostInfoRequest"; +import type RecurrenceInfo from "./RecurrenceInfo"; interface MeetingRequestResource { /** @@ -8,12 +8,10 @@ interface MeetingRequestResource { */ topic?: string; - /** - */ - meetingType?: 'Instant' | 'Scheduled' | 'ScheduledRecurring' | 'Recurring'; + /** */ + meetingType?: "Instant" | "Scheduled" | "ScheduledRecurring" | "Recurring"; - /** - */ + /** */ schedule?: MeetingScheduleResource; /** @@ -22,16 +20,13 @@ interface MeetingRequestResource { */ password?: string; - /** - */ + /** */ host?: HostInfoRequest; - /** - */ + /** */ allowJoinBeforeHost?: boolean; - /** - */ + /** */ startHostVideo?: boolean; /** @@ -44,19 +39,17 @@ interface MeetingRequestResource { */ usePersonalMeetingId?: boolean; - /** - */ - audioOptions?: ('Phone' | 'ComputerAudio')[]; + /** */ + audioOptions?: ("Phone" | "ComputerAudio")[]; - /** - */ + /** */ recurrence?: RecurrenceInfo; /** * Automatic record type * Default: none */ - autoRecordType?: 'local' | 'cloud' | 'none'; + autoRecordType?: "local" | "cloud" | "none"; /** * If true, then only signed-in users can join this meeting @@ -78,8 +71,7 @@ interface MeetingRequestResource { */ globalDialInCountries?: string[]; - /** - */ + /** */ alternativeHosts?: string; } diff --git a/packages/core/src/definitions/MeetingResponseResource.ts b/packages/core/src/definitions/MeetingResponseResource.ts index 2cb035d3..41134f82 100644 --- a/packages/core/src/definitions/MeetingResponseResource.ts +++ b/packages/core/src/definitions/MeetingResponseResource.ts @@ -1,8 +1,8 @@ -import type MeetingLinks from './MeetingLinks'; -import type MeetingScheduleResource from './MeetingScheduleResource'; -import type HostInfoRequest from './HostInfoRequest'; -import type RecurrenceInfo from './RecurrenceInfo'; -import type MeetingOccurrenceInfo from './MeetingOccurrenceInfo'; +import type MeetingLinks from "./MeetingLinks"; +import type MeetingScheduleResource from "./MeetingScheduleResource"; +import type HostInfoRequest from "./HostInfoRequest"; +import type RecurrenceInfo from "./RecurrenceInfo"; +import type MeetingOccurrenceInfo from "./MeetingOccurrenceInfo"; interface MeetingResponseResource { /** @@ -26,17 +26,15 @@ interface MeetingResponseResource { */ topic?: string; - /** - */ - meetingType?: 'Instant' | 'Scheduled' | 'ScheduledRecurring' | 'Recurring'; + /** */ + meetingType?: "Instant" | "Scheduled" | "ScheduledRecurring" | "Recurring"; /** * Meeting password */ password?: string; - /** - */ + /** */ h323Password?: string; /** @@ -44,16 +42,13 @@ interface MeetingResponseResource { */ status?: string; - /** - */ + /** */ links?: MeetingLinks; - /** - */ + /** */ schedule?: MeetingScheduleResource; - /** - */ + /** */ host?: HostInfoRequest; /** @@ -71,19 +66,17 @@ interface MeetingResponseResource { */ startParticipantsVideo?: boolean; - /** - */ - audioOptions?: ('Phone' | 'ComputerAudio')[]; + /** */ + audioOptions?: ("Phone" | "ComputerAudio")[]; - /** - */ + /** */ recurrence?: RecurrenceInfo; /** * Automatic record type * Default: none */ - autoRecordType?: 'local' | 'cloud' | 'none'; + autoRecordType?: "local" | "cloud" | "none"; /** * If true, then only signed-in users can join this meeting @@ -95,8 +88,7 @@ interface MeetingResponseResource { */ muteParticipantsOnEntry?: boolean; - /** - */ + /** */ occurrences?: MeetingOccurrenceInfo[]; /** @@ -109,8 +101,7 @@ interface MeetingResponseResource { */ globalDialInCountries?: string[]; - /** - */ + /** */ alternativeHosts?: string; } diff --git a/packages/core/src/definitions/MeetingScheduleResource.ts b/packages/core/src/definitions/MeetingScheduleResource.ts index 24fa7e7a..183ca002 100644 --- a/packages/core/src/definitions/MeetingScheduleResource.ts +++ b/packages/core/src/definitions/MeetingScheduleResource.ts @@ -1,4 +1,4 @@ -import type MeetingsTimezoneResource from './MeetingsTimezoneResource'; +import type MeetingsTimezoneResource from "./MeetingsTimezoneResource"; /** * Timing of a meeting @@ -14,8 +14,7 @@ interface MeetingScheduleResource { */ durationInMinutes?: number; - /** - */ + /** */ timeZone?: MeetingsTimezoneResource; } diff --git a/packages/core/src/definitions/MeetingServiceInfoRequest.ts b/packages/core/src/definitions/MeetingServiceInfoRequest.ts index 6e50f2ae..1c1a9444 100644 --- a/packages/core/src/definitions/MeetingServiceInfoRequest.ts +++ b/packages/core/src/definitions/MeetingServiceInfoRequest.ts @@ -1,8 +1,7 @@ -import type MeetingExternalUserInfoResource from './MeetingExternalUserInfoResource'; +import type MeetingExternalUserInfoResource from "./MeetingExternalUserInfoResource"; interface MeetingServiceInfoRequest { - /** - */ + /** */ externalUserInfo?: MeetingExternalUserInfoResource; } diff --git a/packages/core/src/definitions/MeetingServiceInfoResource.ts b/packages/core/src/definitions/MeetingServiceInfoResource.ts index 08754a15..c8e0f5dd 100644 --- a/packages/core/src/definitions/MeetingServiceInfoResource.ts +++ b/packages/core/src/definitions/MeetingServiceInfoResource.ts @@ -1,5 +1,5 @@ -import type MeetingExternalUserInfoResource from './MeetingExternalUserInfoResource'; -import type DialInNumberResource from './DialInNumberResource'; +import type MeetingExternalUserInfoResource from "./MeetingExternalUserInfoResource"; +import type DialInNumberResource from "./DialInNumberResource"; interface MeetingServiceInfoResource { /** @@ -17,12 +17,10 @@ interface MeetingServiceInfoResource { */ intlDialInNumbersUri?: string; - /** - */ + /** */ externalUserInfo?: MeetingExternalUserInfoResource; - /** - */ + /** */ dialInNumbers?: DialInNumberResource[]; } diff --git a/packages/core/src/definitions/MeetingUserSettingsResponse.ts b/packages/core/src/definitions/MeetingUserSettingsResponse.ts index fbf380ac..79df2444 100644 --- a/packages/core/src/definitions/MeetingUserSettingsResponse.ts +++ b/packages/core/src/definitions/MeetingUserSettingsResponse.ts @@ -1,23 +1,19 @@ -import type UserMeetingRecordingSetting from './UserMeetingRecordingSetting'; -import type ScheduleUserMeetingInfo from './ScheduleUserMeetingInfo'; -import type TelephonyUserMeetingSettings from './TelephonyUserMeetingSettings'; -import type UserInMeetingResponse from './UserInMeetingResponse'; +import type UserMeetingRecordingSetting from "./UserMeetingRecordingSetting"; +import type ScheduleUserMeetingInfo from "./ScheduleUserMeetingInfo"; +import type TelephonyUserMeetingSettings from "./TelephonyUserMeetingSettings"; +import type UserInMeetingResponse from "./UserInMeetingResponse"; interface MeetingUserSettingsResponse { - /** - */ + /** */ recording?: UserMeetingRecordingSetting; - /** - */ + /** */ scheduleMeeting?: ScheduleUserMeetingInfo; - /** - */ + /** */ telephony?: TelephonyUserMeetingSettings; - /** - */ + /** */ inMeetings?: UserInMeetingResponse; } diff --git a/packages/core/src/definitions/MeetingsCountryResource.ts b/packages/core/src/definitions/MeetingsCountryResource.ts index 6de32cc0..109e093e 100644 --- a/packages/core/src/definitions/MeetingsCountryResource.ts +++ b/packages/core/src/definitions/MeetingsCountryResource.ts @@ -4,12 +4,10 @@ interface MeetingsCountryResource { */ uri?: string; - /** - */ + /** */ id?: string; - /** - */ + /** */ name?: string; /** @@ -26,16 +24,13 @@ interface MeetingsCountryResource { */ callingCode?: string; - /** - */ + /** */ emergencyCalling?: boolean; - /** - */ + /** */ numberSelling?: boolean; - /** - */ + /** */ loginAllowed?: boolean; } diff --git a/packages/core/src/definitions/MeetingsResource.ts b/packages/core/src/definitions/MeetingsResource.ts index e1c408ae..54ff1699 100644 --- a/packages/core/src/definitions/MeetingsResource.ts +++ b/packages/core/src/definitions/MeetingsResource.ts @@ -1,6 +1,6 @@ -import type MeetingResponseResource from './MeetingResponseResource'; -import type EnumeratedPagingModel from './EnumeratedPagingModel'; -import type PageNavigationModel from './PageNavigationModel'; +import type MeetingResponseResource from "./MeetingResponseResource"; +import type EnumeratedPagingModel from "./EnumeratedPagingModel"; +import type PageNavigationModel from "./PageNavigationModel"; interface MeetingsResource { /** @@ -8,16 +8,13 @@ interface MeetingsResource { */ uri?: string; - /** - */ + /** */ records?: MeetingResponseResource[]; - /** - */ + /** */ paging?: EnumeratedPagingModel; - /** - */ + /** */ navigation?: PageNavigationModel; } diff --git a/packages/core/src/definitions/MeetingsTimezoneResource.ts b/packages/core/src/definitions/MeetingsTimezoneResource.ts index 2b6345e8..71bd2cc3 100644 --- a/packages/core/src/definitions/MeetingsTimezoneResource.ts +++ b/packages/core/src/definitions/MeetingsTimezoneResource.ts @@ -4,16 +4,13 @@ interface MeetingsTimezoneResource { */ uri?: string; - /** - */ + /** */ id?: string; - /** - */ + /** */ name?: string; - /** - */ + /** */ description?: string; } diff --git a/packages/core/src/definitions/MessageAttachmentInfo.ts b/packages/core/src/definitions/MessageAttachmentInfo.ts index 132250e7..63d6004d 100644 --- a/packages/core/src/definitions/MessageAttachmentInfo.ts +++ b/packages/core/src/definitions/MessageAttachmentInfo.ts @@ -14,7 +14,13 @@ interface MessageAttachmentInfo { /** * Type of message attachment */ - type?: 'AudioRecording' | 'AudioTranscription' | 'Text' | 'SourceDocument' | 'RenderedDocument' | 'MmsAttachment'; + type?: + | "AudioRecording" + | "AudioTranscription" + | "Text" + | "SourceDocument" + | "RenderedDocument" + | "MmsAttachment"; /** * MIME type for a given attachment, for instance 'audio/wav' diff --git a/packages/core/src/definitions/MessageAttachmentInfoIntId.ts b/packages/core/src/definitions/MessageAttachmentInfoIntId.ts index d2f245c9..82bcde79 100644 --- a/packages/core/src/definitions/MessageAttachmentInfoIntId.ts +++ b/packages/core/src/definitions/MessageAttachmentInfoIntId.ts @@ -14,7 +14,13 @@ interface MessageAttachmentInfoIntId { /** * Type of message attachment */ - type?: 'AudioRecording' | 'AudioTranscription' | 'Text' | 'SourceDocument' | 'RenderedDocument' | 'MmsAttachment'; + type?: + | "AudioRecording" + | "AudioTranscription" + | "Text" + | "SourceDocument" + | "RenderedDocument" + | "MmsAttachment"; /** * MIME type for a given attachment, for instance 'audio/wav' diff --git a/packages/core/src/definitions/MessageBatchCreateRequest.ts b/packages/core/src/definitions/MessageBatchCreateRequest.ts index 32e28f85..078a9e2c 100644 --- a/packages/core/src/definitions/MessageBatchCreateRequest.ts +++ b/packages/core/src/definitions/MessageBatchCreateRequest.ts @@ -1,4 +1,4 @@ -import type MessageCreateRequest from './MessageCreateRequest'; +import type MessageCreateRequest from "./MessageCreateRequest"; /** * Batch of A2P SMS messages. This object provides specification to @@ -6,7 +6,6 @@ import type MessageCreateRequest from './MessageCreateRequest'; * as `text` which apply to all `messages`. In addition to that, it is possible * to override this attribute for each message. This way a single API call may * be used to send individual messages to many recipients. - * */ interface MessageBatchCreateRequest { /** diff --git a/packages/core/src/definitions/MessageBatchResponse.ts b/packages/core/src/definitions/MessageBatchResponse.ts index 731fa074..8335b751 100644 --- a/packages/core/src/definitions/MessageBatchResponse.ts +++ b/packages/core/src/definitions/MessageBatchResponse.ts @@ -1,11 +1,10 @@ -import type RejectedRecipientResponseResource from './RejectedRecipientResponseResource'; +import type RejectedRecipientResponseResource from "./RejectedRecipientResponseResource"; /** * Batch of A2P SMS messages. This object provides a specification * to send message(s) to many recipients. It contains top-level attributes which apply to all messages. In addition * to that, it is possible to override this attribute for each message. This * way a single API call may be used to send individual messages to many recipients - * */ interface MessageBatchResponse { /** @@ -44,7 +43,7 @@ interface MessageBatchResponse { * Current status of a message batch * Example: Processing */ - status?: 'Processing' | 'Completed'; + status?: "Processing" | "Completed"; /** * The time at which the batch was created diff --git a/packages/core/src/definitions/MessageChanges.ts b/packages/core/src/definitions/MessageChanges.ts index 4e9fde00..4dfc11a9 100644 --- a/packages/core/src/definitions/MessageChanges.ts +++ b/packages/core/src/definitions/MessageChanges.ts @@ -2,7 +2,7 @@ interface MessageChanges { /** * Type of the message */ - type?: 'Fax' | 'SMS' | 'VoiceMail' | 'Pager'; + type?: "Fax" | "SMS" | "VoiceMail" | "Pager"; /** * Number of new messages. Can be omitted if the value is zero diff --git a/packages/core/src/definitions/MessageDetailsResponse.ts b/packages/core/src/definitions/MessageDetailsResponse.ts index f2bdf174..10bfad63 100644 --- a/packages/core/src/definitions/MessageDetailsResponse.ts +++ b/packages/core/src/definitions/MessageDetailsResponse.ts @@ -42,7 +42,12 @@ interface MessageDetailsResponse { * Current status of a message * Example: Queued */ - messageStatus?: 'Queued' | 'Delivered' | 'Sent' | 'SendingFailed' | 'DeliveryFailed'; + messageStatus?: + | "Queued" + | "Delivered" + | "Sent" + | "SendingFailed" + | "DeliveryFailed"; /** * Number of segments of a message @@ -67,7 +72,7 @@ interface MessageDetailsResponse { /** * Direction of the SMS message */ - direction?: 'Inbound' | 'Outbound'; + direction?: "Inbound" | "Outbound"; /** * The RC error code of the message sending failure reason diff --git a/packages/core/src/definitions/MessageEvent.ts b/packages/core/src/definitions/MessageEvent.ts index aed7cbff..dcdbdee4 100644 --- a/packages/core/src/definitions/MessageEvent.ts +++ b/packages/core/src/definitions/MessageEvent.ts @@ -1,4 +1,4 @@ -import type MessageEventBody from './MessageEventBody'; +import type MessageEventBody from "./MessageEventBody"; interface MessageEvent { /** @@ -22,8 +22,7 @@ interface MessageEvent { */ subscriptionId?: string; - /** - */ + /** */ body?: MessageEventBody; } diff --git a/packages/core/src/definitions/MessageEventBody.ts b/packages/core/src/definitions/MessageEventBody.ts index a2c1c3e2..e86e84c0 100644 --- a/packages/core/src/definitions/MessageEventBody.ts +++ b/packages/core/src/definitions/MessageEventBody.ts @@ -1,4 +1,4 @@ -import type MessageChanges from './MessageChanges'; +import type MessageChanges from "./MessageChanges"; /** * Notification payload body diff --git a/packages/core/src/definitions/MessageListMessageResponse.ts b/packages/core/src/definitions/MessageListMessageResponse.ts index 3ea4b9dc..37d14a19 100644 --- a/packages/core/src/definitions/MessageListMessageResponse.ts +++ b/packages/core/src/definitions/MessageListMessageResponse.ts @@ -43,7 +43,12 @@ interface MessageListMessageResponse { * Current status of a message * Example: Queued */ - messageStatus?: 'Queued' | 'Delivered' | 'Sent' | 'SendingFailed' | 'DeliveryFailed'; + messageStatus?: + | "Queued" + | "Delivered" + | "Sent" + | "SendingFailed" + | "DeliveryFailed"; /** * Number of segments of a message @@ -67,7 +72,7 @@ interface MessageListMessageResponse { /** * Direction of the SMS message */ - direction?: 'Inbound' | 'Outbound'; + direction?: "Inbound" | "Outbound"; /** * The RC error code of the message sending failure reason diff --git a/packages/core/src/definitions/MessageListResponse.ts b/packages/core/src/definitions/MessageListResponse.ts index 28395c58..2807b5e1 100644 --- a/packages/core/src/definitions/MessageListResponse.ts +++ b/packages/core/src/definitions/MessageListResponse.ts @@ -1,5 +1,5 @@ -import type MessageListMessageResponse from './MessageListMessageResponse'; -import type NonEnumeratedPagingModel from './NonEnumeratedPagingModel'; +import type MessageListMessageResponse from "./MessageListMessageResponse"; +import type NonEnumeratedPagingModel from "./NonEnumeratedPagingModel"; /** * List of messages retrieved for an account and other filter criteria such as `batchId` and `fromPhoneNumber` specified in the request @@ -10,8 +10,7 @@ interface MessageListResponse { */ records?: MessageListMessageResponse[]; - /** - */ + /** */ paging?: NonEnumeratedPagingModel; } diff --git a/packages/core/src/definitions/MessageStatusesResponse.ts b/packages/core/src/definitions/MessageStatusesResponse.ts index fa87da82..34d7dcd9 100644 --- a/packages/core/src/definitions/MessageStatusesResponse.ts +++ b/packages/core/src/definitions/MessageStatusesResponse.ts @@ -1,27 +1,22 @@ -import type MessageStatusCounts from './MessageStatusCounts'; +import type MessageStatusCounts from "./MessageStatusCounts"; /** * The messages status object with details of each status */ interface MessageStatusesResponse { - /** - */ + /** */ queued?: MessageStatusCounts; - /** - */ + /** */ delivered?: MessageStatusCounts; - /** - */ + /** */ deliveryFailed?: MessageStatusCounts; - /** - */ + /** */ sent?: MessageStatusCounts; - /** - */ + /** */ sendingFailed?: MessageStatusCounts; } diff --git a/packages/core/src/definitions/MessageStoreCallerInfoRequest.ts b/packages/core/src/definitions/MessageStoreCallerInfoRequest.ts index ddfe0707..64a32c40 100644 --- a/packages/core/src/definitions/MessageStoreCallerInfoRequest.ts +++ b/packages/core/src/definitions/MessageStoreCallerInfoRequest.ts @@ -1,7 +1,6 @@ /** * Message sender information. The `phoneNumber` value should be one * the account phone numbers allowed to send the current type of messages - * */ interface MessageStoreCallerInfoRequest { /** diff --git a/packages/core/src/definitions/MessageStoreCallerInfoResponseTo.ts b/packages/core/src/definitions/MessageStoreCallerInfoResponseTo.ts index 42a67c74..26569823 100644 --- a/packages/core/src/definitions/MessageStoreCallerInfoResponseTo.ts +++ b/packages/core/src/definitions/MessageStoreCallerInfoResponseTo.ts @@ -7,8 +7,7 @@ interface MessageStoreCallerInfoResponseTo { */ extensionNumber?: string; - /** - */ + /** */ extensionId?: string; /** @@ -34,45 +33,50 @@ interface MessageStoreCallerInfoResponseTo { * 'SendingFailed', then the 'SendingFailed' value is returned. In other cases * the 'Sent' status is returned */ - messageStatus?: 'Queued' | 'Sent' | 'Delivered' | 'DeliveryFailed' | 'SendingFailed' | 'Received'; + messageStatus?: + | "Queued" + | "Sent" + | "Delivered" + | "DeliveryFailed" + | "SendingFailed" + | "Received"; - /** - */ + /** */ faxErrorCode?: - | 'AllLinesInUse' - | 'Undefined' - | 'NoFaxSendPermission' - | 'NoInternationalPermission' - | 'NoFaxMachine' - | 'NoAnswer' - | 'LineBusy' - | 'CallerHungUp' - | 'NotEnoughCredits' - | 'SentPartially' - | 'InternationalCallingDisabled' - | 'DestinationCountryDisabled' - | 'UnknownCountryCode' - | 'NotAccepted' - | 'InvalidNumber' - | 'CallDeclined' - | 'TooManyCallsPerLine' - | 'CallFailed' - | 'RenderingFailed' - | 'TooManyPages' - | 'ReturnToDBQueue' - | 'NoCallTime' - | 'WrongNumber' - | 'ProhibitedNumber' - | 'InternalError' - | 'FaxSendingProhibited' - | 'ThePhoneIsBlacklisted' - | 'UserNotFound' - | 'ConvertError' - | 'DBGeneralError' - | 'SkypeBillingFailed' - | 'AccountSuspended' - | 'ProhibitedDestination' - | 'InternationalDisabled'; + | "AllLinesInUse" + | "Undefined" + | "NoFaxSendPermission" + | "NoInternationalPermission" + | "NoFaxMachine" + | "NoAnswer" + | "LineBusy" + | "CallerHungUp" + | "NotEnoughCredits" + | "SentPartially" + | "InternationalCallingDisabled" + | "DestinationCountryDisabled" + | "UnknownCountryCode" + | "NotAccepted" + | "InvalidNumber" + | "CallDeclined" + | "TooManyCallsPerLine" + | "CallFailed" + | "RenderingFailed" + | "TooManyPages" + | "ReturnToDBQueue" + | "NoCallTime" + | "WrongNumber" + | "ProhibitedNumber" + | "InternalError" + | "FaxSendingProhibited" + | "ThePhoneIsBlacklisted" + | "UserNotFound" + | "ConvertError" + | "DBGeneralError" + | "SkypeBillingFailed" + | "AccountSuspended" + | "ProhibitedDestination" + | "InternationalDisabled"; /** * Symbolic name associated with a party. If the phone does not diff --git a/packages/core/src/definitions/MessageStoreReport.ts b/packages/core/src/definitions/MessageStoreReport.ts index a822e3cf..86d746c0 100644 --- a/packages/core/src/definitions/MessageStoreReport.ts +++ b/packages/core/src/definitions/MessageStoreReport.ts @@ -14,7 +14,14 @@ interface MessageStoreReport { /** * Status of a message store report task */ - status?: 'Accepted' | 'Pending' | 'InProgress' | 'AttemptFailed' | 'Failed' | 'Completed' | 'Cancelled'; + status?: + | "Accepted" + | "Pending" + | "InProgress" + | "AttemptFailed" + | "Failed" + | "Completed" + | "Cancelled"; /** * Internal identifier of an account @@ -54,7 +61,7 @@ interface MessageStoreReport { * Type of messages to be collected. * Example: Fax,VoiceMail */ - messageTypes?: ('Fax' | 'SMS' | 'VoiceMail' | 'Pager')[]; + messageTypes?: ("Fax" | "SMS" | "VoiceMail" | "Pager")[]; } export default MessageStoreReport; diff --git a/packages/core/src/definitions/MessageStoreReportArchive.ts b/packages/core/src/definitions/MessageStoreReportArchive.ts index 99d55697..1473bd01 100644 --- a/packages/core/src/definitions/MessageStoreReportArchive.ts +++ b/packages/core/src/definitions/MessageStoreReportArchive.ts @@ -1,8 +1,7 @@ -import type ArchiveInfo from './ArchiveInfo'; +import type ArchiveInfo from "./ArchiveInfo"; interface MessageStoreReportArchive { - /** - */ + /** */ records?: ArchiveInfo[]; } diff --git a/packages/core/src/definitions/MessageTemplateRequest.ts b/packages/core/src/definitions/MessageTemplateRequest.ts index bfda2d96..38c337cd 100644 --- a/packages/core/src/definitions/MessageTemplateRequest.ts +++ b/packages/core/src/definitions/MessageTemplateRequest.ts @@ -1,5 +1,5 @@ -import type MessageTemplateInfo from './MessageTemplateInfo'; -import type Site from './Site'; +import type MessageTemplateInfo from "./MessageTemplateInfo"; +import type Site from "./Site"; interface MessageTemplateRequest { /** @@ -13,8 +13,7 @@ interface MessageTemplateRequest { */ body?: MessageTemplateInfo; - /** - */ + /** */ site?: Site; } diff --git a/packages/core/src/definitions/MessageTemplateResponse.ts b/packages/core/src/definitions/MessageTemplateResponse.ts index fad1c420..9bfca27c 100644 --- a/packages/core/src/definitions/MessageTemplateResponse.ts +++ b/packages/core/src/definitions/MessageTemplateResponse.ts @@ -1,5 +1,5 @@ -import type MessageTemplateInfo from './MessageTemplateInfo'; -import type Site from './Site'; +import type MessageTemplateInfo from "./MessageTemplateInfo"; +import type Site from "./Site"; interface MessageTemplateResponse { /** @@ -12,17 +12,15 @@ interface MessageTemplateResponse { */ displayName?: string; - /** - */ + /** */ body?: MessageTemplateInfo; /** * Specifies if a template is available on a user (Personal) or a company (Company) level */ - scope?: 'Company' | 'Personal'; + scope?: "Company" | "Personal"; - /** - */ + /** */ site?: Site; } diff --git a/packages/core/src/definitions/MessageTemplateUpdateRequest.ts b/packages/core/src/definitions/MessageTemplateUpdateRequest.ts index de1c30d0..1d58d064 100644 --- a/packages/core/src/definitions/MessageTemplateUpdateRequest.ts +++ b/packages/core/src/definitions/MessageTemplateUpdateRequest.ts @@ -1,5 +1,5 @@ -import type MessageTemplateInfo from './MessageTemplateInfo'; -import type Site from './Site'; +import type MessageTemplateInfo from "./MessageTemplateInfo"; +import type Site from "./Site"; interface MessageTemplateUpdateRequest { /** @@ -12,8 +12,7 @@ interface MessageTemplateUpdateRequest { */ body?: MessageTemplateInfo; - /** - */ + /** */ site?: Site; } diff --git a/packages/core/src/definitions/MessageTemplatesListResponse.ts b/packages/core/src/definitions/MessageTemplatesListResponse.ts index 01788b15..3aaad291 100644 --- a/packages/core/src/definitions/MessageTemplatesListResponse.ts +++ b/packages/core/src/definitions/MessageTemplatesListResponse.ts @@ -1,4 +1,4 @@ -import type MessageTemplateResponse from './MessageTemplateResponse'; +import type MessageTemplateResponse from "./MessageTemplateResponse"; interface MessageTemplatesListResponse { /** diff --git a/packages/core/src/definitions/MessagingNavigationInfo.ts b/packages/core/src/definitions/MessagingNavigationInfo.ts index 029b6747..c08a56d0 100644 --- a/packages/core/src/definitions/MessagingNavigationInfo.ts +++ b/packages/core/src/definitions/MessagingNavigationInfo.ts @@ -1,23 +1,19 @@ -import type MessagingNavigationInfoURI from './MessagingNavigationInfoURI'; +import type MessagingNavigationInfoURI from "./MessagingNavigationInfoURI"; /** * Information on navigation */ interface MessagingNavigationInfo { - /** - */ + /** */ firstPage?: MessagingNavigationInfoURI; - /** - */ + /** */ nextPage?: MessagingNavigationInfoURI; - /** - */ + /** */ previousPage?: MessagingNavigationInfoURI; - /** - */ + /** */ lastPage?: MessagingNavigationInfoURI; } diff --git a/packages/core/src/definitions/MetaData.ts b/packages/core/src/definitions/MetaData.ts index cb3f324e..bfd937a6 100644 --- a/packages/core/src/definitions/MetaData.ts +++ b/packages/core/src/definitions/MetaData.ts @@ -1,4 +1,4 @@ -import type MetaDataValues from './MetaDataValues'; +import type MetaDataValues from "./MetaDataValues"; /** * Call metadata. diff --git a/packages/core/src/definitions/MissedCallEvent.ts b/packages/core/src/definitions/MissedCallEvent.ts index a2ed6f2b..7ca2dd2a 100644 --- a/packages/core/src/definitions/MissedCallEvent.ts +++ b/packages/core/src/definitions/MissedCallEvent.ts @@ -1,4 +1,4 @@ -import type APNSInfo from './APNSInfo'; +import type APNSInfo from "./APNSInfo"; interface MissedCallEvent { /** @@ -6,8 +6,7 @@ interface MissedCallEvent { */ uuid?: string; - /** - */ + /** */ pn_apns?: APNSInfo; /** diff --git a/packages/core/src/definitions/MissedCallExtensionInfo.ts b/packages/core/src/definitions/MissedCallExtensionInfo.ts index 04537fcd..eca7d56b 100644 --- a/packages/core/src/definitions/MissedCallExtensionInfo.ts +++ b/packages/core/src/definitions/MissedCallExtensionInfo.ts @@ -1,4 +1,4 @@ -import type MissedCallExtensionInfoExternalNumber from './MissedCallExtensionInfoExternalNumber'; +import type MissedCallExtensionInfoExternalNumber from "./MissedCallExtensionInfoExternalNumber"; /** * Specifies an extension (a calling group) which should be used for the missed call transfer. Returned only if the `actionType` is set to 'ConnectToExtension' @@ -9,8 +9,7 @@ interface MissedCallExtensionInfo { */ id?: string; - /** - */ + /** */ externalNumber?: MissedCallExtensionInfoExternalNumber; } diff --git a/packages/core/src/definitions/MissedCallInfo.ts b/packages/core/src/definitions/MissedCallInfo.ts index e601b3d1..83d13bb0 100644 --- a/packages/core/src/definitions/MissedCallInfo.ts +++ b/packages/core/src/definitions/MissedCallInfo.ts @@ -1,4 +1,4 @@ -import type MissedCallExtensionInfo from './MissedCallExtensionInfo'; +import type MissedCallExtensionInfo from "./MissedCallExtensionInfo"; /** * Specifies behavior for the missed call scenario. Returned only if `enabled` parameter of a voicemail is set to 'false' @@ -7,10 +7,12 @@ interface MissedCallInfo { /** * Specifies the action that should be executed on a missed call. It can either be playing greeting message and disconnection, or sending call to a calling group. If 'ConnectToExtension' is set, then calling group extension should be specified */ - actionType?: 'PlayGreetingAndDisconnect' | 'ConnectToExtension' | 'ConnectToExternalNumber'; + actionType?: + | "PlayGreetingAndDisconnect" + | "ConnectToExtension" + | "ConnectToExternalNumber"; - /** - */ + /** */ extension?: MissedCallExtensionInfo; } diff --git a/packages/core/src/definitions/MobileDeliveryMode.ts b/packages/core/src/definitions/MobileDeliveryMode.ts index dd8e380b..c4a97488 100644 --- a/packages/core/src/definitions/MobileDeliveryMode.ts +++ b/packages/core/src/definitions/MobileDeliveryMode.ts @@ -3,7 +3,7 @@ interface MobileDeliveryMode { * The transport type for this subscription, or the channel by which an app should be notified of an event * Required */ - transportType?: 'RC/APNS' | 'RC/GCM'; + transportType?: "RC/APNS" | "RC/GCM"; /** * Certificate name for mobile notification transports diff --git a/packages/core/src/definitions/MobileDeliveryModeRequest.ts b/packages/core/src/definitions/MobileDeliveryModeRequest.ts index 31d31808..42262321 100644 --- a/packages/core/src/definitions/MobileDeliveryModeRequest.ts +++ b/packages/core/src/definitions/MobileDeliveryModeRequest.ts @@ -3,7 +3,7 @@ interface MobileDeliveryModeRequest { * The transport type for this subscription, or the channel by which an app should be notified of an event * Required */ - transportType?: 'RC/APNS' | 'RC/GCM'; + transportType?: "RC/APNS" | "RC/GCM"; /** * Certificate name for mobile notification transports diff --git a/packages/core/src/definitions/ModelInfo.ts b/packages/core/src/definitions/ModelInfo.ts index 5de0c272..7bbe3ce5 100644 --- a/packages/core/src/definitions/ModelInfo.ts +++ b/packages/core/src/definitions/ModelInfo.ts @@ -1,4 +1,4 @@ -import type AddonInfo from './AddonInfo'; +import type AddonInfo from "./AddonInfo"; /** * HardPhone model information @@ -19,14 +19,13 @@ interface ModelInfo { */ addons?: AddonInfo[]; - /** - */ + /** */ deviceClass?: string; /** * Device feature or multiple features supported */ - features?: ('BLA' | 'CommonPhone' | 'Intercom' | 'Paging' | 'HELD')[]; + features?: ("BLA" | "CommonPhone" | "Intercom" | "Paging" | "HELD")[]; /** * Max supported count of phone lines diff --git a/packages/core/src/definitions/ModifyAccountBusinessAddressRequest.ts b/packages/core/src/definitions/ModifyAccountBusinessAddressRequest.ts index 0d2142b2..d13d70fb 100644 --- a/packages/core/src/definitions/ModifyAccountBusinessAddressRequest.ts +++ b/packages/core/src/definitions/ModifyAccountBusinessAddressRequest.ts @@ -1,4 +1,4 @@ -import type BusinessAddressInfo from './BusinessAddressInfo'; +import type BusinessAddressInfo from "./BusinessAddressInfo"; interface ModifyAccountBusinessAddressRequest { /** @@ -12,8 +12,7 @@ interface ModifyAccountBusinessAddressRequest { */ email?: string; - /** - */ + /** */ businessAddress?: BusinessAddressInfo; /** diff --git a/packages/core/src/definitions/NetworkInfo.ts b/packages/core/src/definitions/NetworkInfo.ts index 711438a1..2ca76e53 100644 --- a/packages/core/src/definitions/NetworkInfo.ts +++ b/packages/core/src/definitions/NetworkInfo.ts @@ -1,6 +1,6 @@ -import type AutomaticLocationUpdatesSiteInfo from './AutomaticLocationUpdatesSiteInfo'; -import type PublicIpRangeInfo from './PublicIpRangeInfo'; -import type PrivateIpRangeInfo from './PrivateIpRangeInfo'; +import type AutomaticLocationUpdatesSiteInfo from "./AutomaticLocationUpdatesSiteInfo"; +import type PublicIpRangeInfo from "./PublicIpRangeInfo"; +import type PrivateIpRangeInfo from "./PrivateIpRangeInfo"; interface NetworkInfo { /** @@ -14,20 +14,16 @@ interface NetworkInfo { */ uri?: string; - /** - */ + /** */ name?: string; - /** - */ + /** */ site?: AutomaticLocationUpdatesSiteInfo; - /** - */ + /** */ publicIpRanges?: PublicIpRangeInfo[]; - /** - */ + /** */ privateIpRanges?: PrivateIpRangeInfo[]; } diff --git a/packages/core/src/definitions/NetworksList.ts b/packages/core/src/definitions/NetworksList.ts index 3b1a0e6c..9c1d9f9c 100644 --- a/packages/core/src/definitions/NetworksList.ts +++ b/packages/core/src/definitions/NetworksList.ts @@ -1,6 +1,6 @@ -import type NetworkInfo from './NetworkInfo'; -import type PageNavigationModel from './PageNavigationModel'; -import type EnumeratedPagingModel from './EnumeratedPagingModel'; +import type NetworkInfo from "./NetworkInfo"; +import type PageNavigationModel from "./PageNavigationModel"; +import type EnumeratedPagingModel from "./EnumeratedPagingModel"; interface NetworksList { /** @@ -9,16 +9,13 @@ interface NetworksList { */ uri?: string; - /** - */ + /** */ records?: NetworkInfo[]; - /** - */ + /** */ navigation?: PageNavigationModel; - /** - */ + /** */ paging?: EnumeratedPagingModel; } diff --git a/packages/core/src/definitions/NotificationDeliveryMode.ts b/packages/core/src/definitions/NotificationDeliveryMode.ts index b1113575..15d366ec 100644 --- a/packages/core/src/definitions/NotificationDeliveryMode.ts +++ b/packages/core/src/definitions/NotificationDeliveryMode.ts @@ -6,7 +6,13 @@ interface NotificationDeliveryMode { * The transport type for this subscription, or the channel by which an app should be notified of an event * Required */ - transportType?: 'WebHook' | 'RC/APNS' | 'RC/GCM' | 'PubNub' | 'WebSocket' | 'Internal'; + transportType?: + | "WebHook" + | "RC/APNS" + | "RC/GCM" + | "PubNub" + | "WebSocket" + | "Internal"; /** * PubNub channel name @@ -53,7 +59,7 @@ interface NotificationDeliveryMode { * (Only for a "PubNub" transport, returned only if `encryption` is `true`) * Encryption algorithm used */ - encryptionAlgorithm?: 'AES'; + encryptionAlgorithm?: "AES"; /** * (Only for a "PubNub" transport, returned only if `encryption` is `true`) diff --git a/packages/core/src/definitions/NotificationDeliveryModeRequest.ts b/packages/core/src/definitions/NotificationDeliveryModeRequest.ts index 0991aced..29a5914b 100644 --- a/packages/core/src/definitions/NotificationDeliveryModeRequest.ts +++ b/packages/core/src/definitions/NotificationDeliveryModeRequest.ts @@ -6,7 +6,7 @@ interface NotificationDeliveryModeRequest { * The transport type for this subscription, or the channel by which an app should be notified of an event * Required */ - transportType?: 'WebHook' | 'RC/APNS' | 'RC/GCM' | 'PubNub'; + transportType?: "WebHook" | "RC/APNS" | "RC/GCM" | "PubNub"; /** * The URL to which notifications should be delivered. This is only applicable for the `WebHook` transport type, for which it is a required field. diff --git a/packages/core/src/definitions/NotificationInfo.ts b/packages/core/src/definitions/NotificationInfo.ts index 64a846b9..2086bae6 100644 --- a/packages/core/src/definitions/NotificationInfo.ts +++ b/packages/core/src/definitions/NotificationInfo.ts @@ -1,11 +1,10 @@ -import type AlertInfo from './AlertInfo'; +import type AlertInfo from "./AlertInfo"; /** * Information on a notification */ interface NotificationInfo { - /** - */ + /** */ alert?: AlertInfo; /** @@ -21,7 +20,7 @@ interface NotificationInfo { /** * Content availability */ - 'content-available'?: string; + "content-available"?: string; /** * Category of a message diff --git a/packages/core/src/definitions/NotificationSettings.ts b/packages/core/src/definitions/NotificationSettings.ts index 6690d5bb..ce5058b1 100644 --- a/packages/core/src/definitions/NotificationSettings.ts +++ b/packages/core/src/definitions/NotificationSettings.ts @@ -1,9 +1,9 @@ -import type EmailRecipientInfo from './EmailRecipientInfo'; -import type VoicemailsInfo from './VoicemailsInfo'; -import type InboundFaxesInfo from './InboundFaxesInfo'; -import type OutboundFaxesInfo from './OutboundFaxesInfo'; -import type InboundTextsInfo from './InboundTextsInfo'; -import type MissedCallsInfo from './MissedCallsInfo'; +import type EmailRecipientInfo from "./EmailRecipientInfo"; +import type VoicemailsInfo from "./VoicemailsInfo"; +import type InboundFaxesInfo from "./InboundFaxesInfo"; +import type OutboundFaxesInfo from "./OutboundFaxesInfo"; +import type InboundTextsInfo from "./InboundTextsInfo"; +import type MissedCallsInfo from "./MissedCallsInfo"; interface NotificationSettings { /** @@ -44,24 +44,19 @@ interface NotificationSettings { */ advancedMode?: boolean; - /** - */ + /** */ voicemails?: VoicemailsInfo; - /** - */ + /** */ inboundFaxes?: InboundFaxesInfo; - /** - */ + /** */ outboundFaxes?: OutboundFaxesInfo; - /** - */ + /** */ inboundTexts?: InboundTextsInfo; - /** - */ + /** */ missedCalls?: MissedCallsInfo; } diff --git a/packages/core/src/definitions/NotificationSettingsUpdateRequest.ts b/packages/core/src/definitions/NotificationSettingsUpdateRequest.ts index 2b3af58a..9c843252 100644 --- a/packages/core/src/definitions/NotificationSettingsUpdateRequest.ts +++ b/packages/core/src/definitions/NotificationSettingsUpdateRequest.ts @@ -1,8 +1,8 @@ -import type VoicemailsInfo from './VoicemailsInfo'; -import type InboundFaxesInfo from './InboundFaxesInfo'; -import type OutboundFaxesInfo from './OutboundFaxesInfo'; -import type InboundTextsInfo from './InboundTextsInfo'; -import type MissedCallsInfo from './MissedCallsInfo'; +import type VoicemailsInfo from "./VoicemailsInfo"; +import type InboundFaxesInfo from "./InboundFaxesInfo"; +import type OutboundFaxesInfo from "./OutboundFaxesInfo"; +import type InboundTextsInfo from "./InboundTextsInfo"; +import type MissedCallsInfo from "./MissedCallsInfo"; interface NotificationSettingsUpdateRequest { /** @@ -25,24 +25,19 @@ interface NotificationSettingsUpdateRequest { */ advancedMode?: boolean; - /** - */ + /** */ voicemails?: VoicemailsInfo; - /** - */ + /** */ inboundFaxes?: InboundFaxesInfo; - /** - */ + /** */ outboundFaxes?: OutboundFaxesInfo; - /** - */ + /** */ inboundTexts?: InboundTextsInfo; - /** - */ + /** */ missedCalls?: MissedCallsInfo; /** diff --git a/packages/core/src/definitions/OperatorInfo.ts b/packages/core/src/definitions/OperatorInfo.ts index c062219a..af10d0f4 100644 --- a/packages/core/src/definitions/OperatorInfo.ts +++ b/packages/core/src/definitions/OperatorInfo.ts @@ -1,7 +1,6 @@ /** * Site Fax/SMS recipient (operator) reference. Multi-level IVR should * be enabled - * */ interface OperatorInfo { /** diff --git a/packages/core/src/definitions/OptOutBulkAssignResponse.ts b/packages/core/src/definitions/OptOutBulkAssignResponse.ts index 5025d873..d1d3dc7a 100644 --- a/packages/core/src/definitions/OptOutBulkAssignResponse.ts +++ b/packages/core/src/definitions/OptOutBulkAssignResponse.ts @@ -1,5 +1,5 @@ -import type OptOutBulkAssignResponseOptIns from './OptOutBulkAssignResponseOptIns'; -import type OptOutBulkAssignResponseOptOuts from './OptOutBulkAssignResponseOptOuts'; +import type OptOutBulkAssignResponseOptIns from "./OptOutBulkAssignResponseOptIns"; +import type OptOutBulkAssignResponseOptOuts from "./OptOutBulkAssignResponseOptOuts"; /** * The results of adding opt-outs and opt-ins diff --git a/packages/core/src/definitions/OptOutBulkAssignResponseOptIns.ts b/packages/core/src/definitions/OptOutBulkAssignResponseOptIns.ts index 89424d64..7215f6ce 100644 --- a/packages/core/src/definitions/OptOutBulkAssignResponseOptIns.ts +++ b/packages/core/src/definitions/OptOutBulkAssignResponseOptIns.ts @@ -1,4 +1,4 @@ -import type OptOutBulkAssignFailedEntry from './OptOutBulkAssignFailedEntry'; +import type OptOutBulkAssignFailedEntry from "./OptOutBulkAssignFailedEntry"; interface OptOutBulkAssignResponseOptIns { /** diff --git a/packages/core/src/definitions/OptOutBulkAssignResponseOptOuts.ts b/packages/core/src/definitions/OptOutBulkAssignResponseOptOuts.ts index e72f9afd..89a74b1e 100644 --- a/packages/core/src/definitions/OptOutBulkAssignResponseOptOuts.ts +++ b/packages/core/src/definitions/OptOutBulkAssignResponseOptOuts.ts @@ -1,4 +1,4 @@ -import type OptOutBulkAssignFailedEntry from './OptOutBulkAssignFailedEntry'; +import type OptOutBulkAssignFailedEntry from "./OptOutBulkAssignFailedEntry"; interface OptOutBulkAssignResponseOptOuts { /** diff --git a/packages/core/src/definitions/OptOutListResponse.ts b/packages/core/src/definitions/OptOutListResponse.ts index ac4fb76d..f9a227e0 100644 --- a/packages/core/src/definitions/OptOutListResponse.ts +++ b/packages/core/src/definitions/OptOutListResponse.ts @@ -1,5 +1,5 @@ -import type OptOutResponse from './OptOutResponse'; -import type NonEnumeratedPagingModel from './NonEnumeratedPagingModel'; +import type OptOutResponse from "./OptOutResponse"; +import type NonEnumeratedPagingModel from "./NonEnumeratedPagingModel"; /** * The list of opt outs @@ -10,8 +10,7 @@ interface OptOutListResponse { */ records?: OptOutResponse[]; - /** - */ + /** */ paging?: NonEnumeratedPagingModel; } diff --git a/packages/core/src/definitions/OptOutResponse.ts b/packages/core/src/definitions/OptOutResponse.ts index 24d29322..bd3ea545 100644 --- a/packages/core/src/definitions/OptOutResponse.ts +++ b/packages/core/src/definitions/OptOutResponse.ts @@ -17,11 +17,10 @@ interface OptOutResponse { /** * Status of a phone number */ - status?: 'OptIn' | 'OptOut'; + status?: "OptIn" | "OptOut"; - /** - */ - source?: 'Recipient' | 'Account' | 'Upstream' | 'Carrier'; + /** */ + source?: "Recipient" | "Account" | "Upstream" | "Carrier"; } export default OptOutResponse; diff --git a/packages/core/src/definitions/OrderBy.ts b/packages/core/src/definitions/OrderBy.ts index d55fb37d..72ebf6d5 100644 --- a/packages/core/src/definitions/OrderBy.ts +++ b/packages/core/src/definitions/OrderBy.ts @@ -11,14 +11,21 @@ interface OrderBy { * Field name by which to sort the contacts * Example: department */ - fieldName?: 'firstName' | 'lastName' | 'extensionNumber' | 'phoneNumber' | 'email' | 'jobTitle' | 'department'; + fieldName?: + | "firstName" + | "lastName" + | "extensionNumber" + | "phoneNumber" + | "email" + | "jobTitle" + | "department"; /** * Sorting direction * Example: Asc * Default: Asc */ - direction?: 'Asc' | 'Desc'; + direction?: "Asc" | "Desc"; } export default OrderBy; diff --git a/packages/core/src/definitions/OriginInfo.ts b/packages/core/src/definitions/OriginInfo.ts index 01e469eb..5abbee85 100644 --- a/packages/core/src/definitions/OriginInfo.ts +++ b/packages/core/src/definitions/OriginInfo.ts @@ -5,7 +5,15 @@ interface OriginInfo { /** * Session origin type */ - type?: 'Call' | 'RingOut' | 'RingMe' | 'Conference' | 'GreetingsRecording' | 'VerificationCall' | 'Zoom' | 'CallOut'; + type?: + | "Call" + | "RingOut" + | "RingMe" + | "Conference" + | "GreetingsRecording" + | "VerificationCall" + | "Zoom" + | "CallOut"; } export default OriginInfo; diff --git a/packages/core/src/definitions/OriginalRoleModel.ts b/packages/core/src/definitions/OriginalRoleModel.ts index 3210c0b0..a722dae1 100644 --- a/packages/core/src/definitions/OriginalRoleModel.ts +++ b/packages/core/src/definitions/OriginalRoleModel.ts @@ -8,7 +8,7 @@ interface OriginalRoleModel { * Required * Example: Panelist */ - originalRole?: 'Panelist' | 'CoHost' | 'Host' | 'Attendee'; + originalRole?: "Panelist" | "CoHost" | "Host" | "Attendee"; } export default OriginalRoleModel; diff --git a/packages/core/src/definitions/OtpTokenRequest.ts b/packages/core/src/definitions/OtpTokenRequest.ts index 17626644..50b288a2 100644 --- a/packages/core/src/definitions/OtpTokenRequest.ts +++ b/packages/core/src/definitions/OtpTokenRequest.ts @@ -1,14 +1,13 @@ /** * Token endpoint request parameters used in the "One-time Password" (OTP) authorization flow * with the `otp` grant type - * */ interface OtpTokenRequest { /** * Grant type * Required */ - grant_type?: 'otp'; + grant_type?: "otp"; /** * For `otp` grant type only. diff --git a/packages/core/src/definitions/PageNavigationModel.ts b/packages/core/src/definitions/PageNavigationModel.ts index c85348a4..99bb4084 100644 --- a/packages/core/src/definitions/PageNavigationModel.ts +++ b/packages/core/src/definitions/PageNavigationModel.ts @@ -1,23 +1,19 @@ -import type PageNavigationUri from './PageNavigationUri'; +import type PageNavigationUri from "./PageNavigationUri"; /** * Links to other pages of the current result set */ interface PageNavigationModel { - /** - */ + /** */ firstPage?: PageNavigationUri; - /** - */ + /** */ nextPage?: PageNavigationUri; - /** - */ + /** */ previousPage?: PageNavigationUri; - /** - */ + /** */ lastPage?: PageNavigationUri; } diff --git a/packages/core/src/definitions/PagingOnlyGroupDevices.ts b/packages/core/src/definitions/PagingOnlyGroupDevices.ts index a0267ddb..88d31f27 100644 --- a/packages/core/src/definitions/PagingOnlyGroupDevices.ts +++ b/packages/core/src/definitions/PagingOnlyGroupDevices.ts @@ -1,6 +1,6 @@ -import type PagingDeviceInfo from './PagingDeviceInfo'; -import type PageNavigationModel from './PageNavigationModel'; -import type EnumeratedPagingModel from './EnumeratedPagingModel'; +import type PagingDeviceInfo from "./PagingDeviceInfo"; +import type PageNavigationModel from "./PageNavigationModel"; +import type EnumeratedPagingModel from "./EnumeratedPagingModel"; interface PagingOnlyGroupDevices { /** @@ -14,12 +14,10 @@ interface PagingOnlyGroupDevices { */ records?: PagingDeviceInfo[]; - /** - */ + /** */ navigation?: PageNavigationModel; - /** - */ + /** */ paging?: EnumeratedPagingModel; } diff --git a/packages/core/src/definitions/PagingOnlyGroupUsers.ts b/packages/core/src/definitions/PagingOnlyGroupUsers.ts index c24e5d1a..1737ea89 100644 --- a/packages/core/src/definitions/PagingOnlyGroupUsers.ts +++ b/packages/core/src/definitions/PagingOnlyGroupUsers.ts @@ -1,6 +1,6 @@ -import type PagingGroupExtensionInfo from './PagingGroupExtensionInfo'; -import type PageNavigationModel from './PageNavigationModel'; -import type EnumeratedPagingModel from './EnumeratedPagingModel'; +import type PagingGroupExtensionInfo from "./PagingGroupExtensionInfo"; +import type PageNavigationModel from "./PageNavigationModel"; +import type EnumeratedPagingModel from "./EnumeratedPagingModel"; interface PagingOnlyGroupUsers { /** @@ -14,12 +14,10 @@ interface PagingOnlyGroupUsers { */ records?: PagingGroupExtensionInfo[]; - /** - */ + /** */ navigation?: PageNavigationModel; - /** - */ + /** */ paging?: EnumeratedPagingModel; } diff --git a/packages/core/src/definitions/ParameterizedErrorResponseModel.ts b/packages/core/src/definitions/ParameterizedErrorResponseModel.ts index fc39a438..9b2eb290 100644 --- a/packages/core/src/definitions/ParameterizedErrorResponseModel.ts +++ b/packages/core/src/definitions/ParameterizedErrorResponseModel.ts @@ -1,4 +1,4 @@ -import type ApiErrorWithParameter from './ApiErrorWithParameter'; +import type ApiErrorWithParameter from "./ApiErrorWithParameter"; /** * Standard error response which may include parameterized errors diff --git a/packages/core/src/definitions/ParsePhoneNumberResponse.ts b/packages/core/src/definitions/ParsePhoneNumberResponse.ts index c54d4987..949e9de7 100644 --- a/packages/core/src/definitions/ParsePhoneNumberResponse.ts +++ b/packages/core/src/definitions/ParsePhoneNumberResponse.ts @@ -1,5 +1,5 @@ -import type GetCountryInfoNumberParser from './GetCountryInfoNumberParser'; -import type PhoneNumberInfoNumberParser from './PhoneNumberInfoNumberParser'; +import type GetCountryInfoNumberParser from "./GetCountryInfoNumberParser"; +import type PhoneNumberInfoNumberParser from "./PhoneNumberInfoNumberParser"; interface ParsePhoneNumberResponse { /** diff --git a/packages/core/src/definitions/ParticipantBaseModel.ts b/packages/core/src/definitions/ParticipantBaseModel.ts index 3ba2e923..905f21ab 100644 --- a/packages/core/src/definitions/ParticipantBaseModel.ts +++ b/packages/core/src/definitions/ParticipantBaseModel.ts @@ -1,4 +1,4 @@ -import type RcwDomainUserModel from './RcwDomainUserModel'; +import type RcwDomainUserModel from "./RcwDomainUserModel"; /** * The internal IDs of RC-authenticated users. @@ -28,7 +28,7 @@ interface ParticipantBaseModel { * Required * Example: Panelist */ - role?: 'Panelist' | 'CoHost' | 'Host' | 'Attendee'; + role?: "Panelist" | "CoHost" | "Host" | "Attendee"; /** * The role of the webinar session participant/invitee. @@ -36,10 +36,9 @@ interface ParticipantBaseModel { * Required * Example: Panelist */ - originalRole?: 'Panelist' | 'CoHost' | 'Host' | 'Attendee'; + originalRole?: "Panelist" | "CoHost" | "Host" | "Attendee"; - /** - */ + /** */ linkedUser?: RcwDomainUserModel; /** @@ -53,7 +52,7 @@ interface ParticipantBaseModel { * Required * Default: User */ - type?: 'User' | 'Room'; + type?: "User" | "Room"; /** * User's contact email diff --git a/packages/core/src/definitions/ParticipantExtendedModel.ts b/packages/core/src/definitions/ParticipantExtendedModel.ts index bf6d8343..af49e524 100644 --- a/packages/core/src/definitions/ParticipantExtendedModel.ts +++ b/packages/core/src/definitions/ParticipantExtendedModel.ts @@ -1,4 +1,4 @@ -import type RcwDomainUserModel from './RcwDomainUserModel'; +import type RcwDomainUserModel from "./RcwDomainUserModel"; /** * The internal IDs of RC-authenticated users. @@ -28,7 +28,7 @@ interface ParticipantExtendedModel { * Required * Example: Panelist */ - role?: 'Panelist' | 'CoHost' | 'Host' | 'Attendee'; + role?: "Panelist" | "CoHost" | "Host" | "Attendee"; /** * The role of the webinar session participant/invitee. @@ -36,10 +36,9 @@ interface ParticipantExtendedModel { * Required * Example: Panelist */ - originalRole?: 'Panelist' | 'CoHost' | 'Host' | 'Attendee'; + originalRole?: "Panelist" | "CoHost" | "Host" | "Attendee"; - /** - */ + /** */ linkedUser?: RcwDomainUserModel; /** @@ -53,7 +52,7 @@ interface ParticipantExtendedModel { * Required * Default: User */ - type?: 'User' | 'Room'; + type?: "User" | "Room"; /** * User's contact email diff --git a/packages/core/src/definitions/ParticipantListResource.ts b/packages/core/src/definitions/ParticipantListResource.ts index 3a14edf0..b5ce1e26 100644 --- a/packages/core/src/definitions/ParticipantListResource.ts +++ b/packages/core/src/definitions/ParticipantListResource.ts @@ -1,5 +1,5 @@ -import type ParticipantExtendedModel from './ParticipantExtendedModel'; -import type RcwPagingModel from './RcwPagingModel'; +import type ParticipantExtendedModel from "./ParticipantExtendedModel"; +import type RcwPagingModel from "./RcwPagingModel"; interface ParticipantListResource { /** diff --git a/packages/core/src/definitions/ParticipantReducedModel.ts b/packages/core/src/definitions/ParticipantReducedModel.ts index 20729a42..d5ab2f08 100644 --- a/packages/core/src/definitions/ParticipantReducedModel.ts +++ b/packages/core/src/definitions/ParticipantReducedModel.ts @@ -1,4 +1,4 @@ -import type RcwDomainUserModel from './RcwDomainUserModel'; +import type RcwDomainUserModel from "./RcwDomainUserModel"; /** * The internal IDs of RC-authenticated users. @@ -28,7 +28,7 @@ interface ParticipantReducedModel { * Required * Example: Panelist */ - role?: 'Panelist' | 'CoHost' | 'Host' | 'Attendee'; + role?: "Panelist" | "CoHost" | "Host" | "Attendee"; /** * The role of the webinar session participant/invitee. @@ -36,10 +36,9 @@ interface ParticipantReducedModel { * Required * Example: Panelist */ - originalRole?: 'Panelist' | 'CoHost' | 'Host' | 'Attendee'; + originalRole?: "Panelist" | "CoHost" | "Host" | "Attendee"; - /** - */ + /** */ linkedUser?: RcwDomainUserModel; /** @@ -53,7 +52,7 @@ interface ParticipantReducedModel { * Required * Default: User */ - type?: 'User' | 'Room'; + type?: "User" | "Room"; } export default ParticipantReducedModel; diff --git a/packages/core/src/definitions/ParticipantTypeModel.ts b/packages/core/src/definitions/ParticipantTypeModel.ts index 2ca6d796..6b921920 100644 --- a/packages/core/src/definitions/ParticipantTypeModel.ts +++ b/packages/core/src/definitions/ParticipantTypeModel.ts @@ -4,7 +4,7 @@ interface ParticipantTypeModel { * Required * Default: User */ - type?: 'User' | 'Room'; + type?: "User" | "Room"; } export default ParticipantTypeModel; diff --git a/packages/core/src/definitions/PartySuperviseRequest.ts b/packages/core/src/definitions/PartySuperviseRequest.ts index c119250c..709a7257 100644 --- a/packages/core/src/definitions/PartySuperviseRequest.ts +++ b/packages/core/src/definitions/PartySuperviseRequest.ts @@ -4,7 +4,7 @@ interface PartySuperviseRequest { * Required * Example: Listen */ - mode?: 'Listen'; + mode?: "Listen"; /** * Internal identifier of a supervisor's device @@ -29,7 +29,7 @@ interface PartySuperviseRequest { /** * Specifies session description protocol (SDP) setting. The possible values are 'sendOnly' (only sending) meaning one-way audio streaming; and 'sendRecv' (sending/receiving) meaning two-way audio streaming */ - mediaSDP?: 'sendOnly' | 'sendRecv'; + mediaSDP?: "sendOnly" | "sendRecv"; } export default PartySuperviseRequest; diff --git a/packages/core/src/definitions/PartySuperviseResponse.ts b/packages/core/src/definitions/PartySuperviseResponse.ts index 5b5e0eb7..eab29356 100644 --- a/packages/core/src/definitions/PartySuperviseResponse.ts +++ b/packages/core/src/definitions/PartySuperviseResponse.ts @@ -1,20 +1,18 @@ -import type PartyInfo from './PartyInfo'; -import type OwnerInfo from './OwnerInfo'; -import type CallStatusInfo from './CallStatusInfo'; +import type PartyInfo from "./PartyInfo"; +import type OwnerInfo from "./OwnerInfo"; +import type CallStatusInfo from "./CallStatusInfo"; interface PartySuperviseResponse { - /** - */ + /** */ from?: PartyInfo; - /** - */ + /** */ to?: PartyInfo; /** * Direction of a call */ - direction?: 'Outbound' | 'Inbound'; + direction?: "Outbound" | "Inbound"; /** * Internal identifier of a party that monitors a call @@ -36,8 +34,7 @@ interface PartySuperviseResponse { */ muted?: boolean; - /** - */ + /** */ owner?: OwnerInfo; /** @@ -47,8 +44,7 @@ interface PartySuperviseResponse { */ standAlone?: boolean; - /** - */ + /** */ status?: CallStatusInfo; } diff --git a/packages/core/src/definitions/PartyUpdateRequest.ts b/packages/core/src/definitions/PartyUpdateRequest.ts index 2a95d644..b653959c 100644 --- a/packages/core/src/definitions/PartyUpdateRequest.ts +++ b/packages/core/src/definitions/PartyUpdateRequest.ts @@ -1,8 +1,7 @@ -import type PartyUpdateInfo from './PartyUpdateInfo'; +import type PartyUpdateInfo from "./PartyUpdateInfo"; interface PartyUpdateRequest { - /** - */ + /** */ party?: PartyUpdateInfo; } diff --git a/packages/core/src/definitions/PatchMessageRequest.ts b/packages/core/src/definitions/PatchMessageRequest.ts index 16e92693..07fbf7ed 100644 --- a/packages/core/src/definitions/PatchMessageRequest.ts +++ b/packages/core/src/definitions/PatchMessageRequest.ts @@ -5,7 +5,7 @@ interface PatchMessageRequest { /** * Message read status */ - readStatus?: 'Read' | 'Unread'; + readStatus?: "Read" | "Unread"; /** * Message availability status. Message in 'Deleted' state is still @@ -13,7 +13,7 @@ interface PatchMessageRequest { * that all attachments are already deleted and the message itself is about * to be physically deleted shortly */ - availability?: 'Alive' | 'Deleted' | 'Purged'; + availability?: "Alive" | "Deleted" | "Purged"; } export default PatchMessageRequest; diff --git a/packages/core/src/definitions/PeerInfo.ts b/packages/core/src/definitions/PeerInfo.ts index a82df81f..42245a73 100644 --- a/packages/core/src/definitions/PeerInfo.ts +++ b/packages/core/src/definitions/PeerInfo.ts @@ -2,16 +2,13 @@ * Peer (linked) session/party details. Valid in 'Gone' state of a call */ interface PeerInfo { - /** - */ + /** */ sessionId?: string; - /** - */ + /** */ telephonySessionId?: string; - /** - */ + /** */ partyId?: string; } diff --git a/packages/core/src/definitions/PermissionCategoryCollectionResource.ts b/packages/core/src/definitions/PermissionCategoryCollectionResource.ts index f860adc4..8490d572 100644 --- a/packages/core/src/definitions/PermissionCategoryCollectionResource.ts +++ b/packages/core/src/definitions/PermissionCategoryCollectionResource.ts @@ -1,6 +1,6 @@ -import type PermissionCategoryResource from './PermissionCategoryResource'; -import type EnumeratedPagingModel from './EnumeratedPagingModel'; -import type PageNavigationModel from './PageNavigationModel'; +import type PermissionCategoryResource from "./PermissionCategoryResource"; +import type EnumeratedPagingModel from "./EnumeratedPagingModel"; +import type PageNavigationModel from "./PageNavigationModel"; interface PermissionCategoryCollectionResource { /** @@ -8,16 +8,13 @@ interface PermissionCategoryCollectionResource { */ uri?: string; - /** - */ + /** */ records?: PermissionCategoryResource[]; - /** - */ + /** */ paging?: EnumeratedPagingModel; - /** - */ + /** */ navigation?: PageNavigationModel; } diff --git a/packages/core/src/definitions/PermissionCategoryIdResource.ts b/packages/core/src/definitions/PermissionCategoryIdResource.ts index 70a9ce67..740a02e0 100644 --- a/packages/core/src/definitions/PermissionCategoryIdResource.ts +++ b/packages/core/src/definitions/PermissionCategoryIdResource.ts @@ -4,8 +4,7 @@ interface PermissionCategoryIdResource { */ uri?: string; - /** - */ + /** */ id?: string; } diff --git a/packages/core/src/definitions/PermissionCategoryResource.ts b/packages/core/src/definitions/PermissionCategoryResource.ts index ebede4a7..76a27caf 100644 --- a/packages/core/src/definitions/PermissionCategoryResource.ts +++ b/packages/core/src/definitions/PermissionCategoryResource.ts @@ -4,16 +4,13 @@ interface PermissionCategoryResource { */ uri?: string; - /** - */ + /** */ id?: string; - /** - */ + /** */ displayName?: string; - /** - */ + /** */ description?: string; } diff --git a/packages/core/src/definitions/PermissionCollectionResource.ts b/packages/core/src/definitions/PermissionCollectionResource.ts index 52f76a2b..1a76998d 100644 --- a/packages/core/src/definitions/PermissionCollectionResource.ts +++ b/packages/core/src/definitions/PermissionCollectionResource.ts @@ -1,6 +1,6 @@ -import type PermissionResource from './PermissionResource'; -import type EnumeratedPagingModel from './EnumeratedPagingModel'; -import type PageNavigationModel from './PageNavigationModel'; +import type PermissionResource from "./PermissionResource"; +import type EnumeratedPagingModel from "./EnumeratedPagingModel"; +import type PageNavigationModel from "./PageNavigationModel"; interface PermissionCollectionResource { /** @@ -8,16 +8,13 @@ interface PermissionCollectionResource { */ uri?: string; - /** - */ + /** */ records?: PermissionResource[]; - /** - */ + /** */ paging?: EnumeratedPagingModel; - /** - */ + /** */ navigation?: PageNavigationModel; } diff --git a/packages/core/src/definitions/PermissionIdResource.ts b/packages/core/src/definitions/PermissionIdResource.ts index 8354d883..0eb7ab38 100644 --- a/packages/core/src/definitions/PermissionIdResource.ts +++ b/packages/core/src/definitions/PermissionIdResource.ts @@ -1,4 +1,4 @@ -import type PermissionsCapabilities from './PermissionsCapabilities'; +import type PermissionsCapabilities from "./PermissionsCapabilities"; interface PermissionIdResource { /** @@ -6,14 +6,13 @@ interface PermissionIdResource { */ uri?: string; - /** - */ + /** */ id?: string; /** * Site compatibility flag set for permission */ - siteCompatible?: 'Compatible' | 'Incompatible' | 'Independent'; + siteCompatible?: "Compatible" | "Incompatible" | "Independent"; /** * Specifies if the permission is editable on UI (if set to `true`) or not (if set to `false`) @@ -25,8 +24,7 @@ interface PermissionIdResource { */ assignable?: boolean; - /** - */ + /** */ permissionsCapabilities?: PermissionsCapabilities; } diff --git a/packages/core/src/definitions/PermissionResource.ts b/packages/core/src/definitions/PermissionResource.ts index 3d28115d..08050f2b 100644 --- a/packages/core/src/definitions/PermissionResource.ts +++ b/packages/core/src/definitions/PermissionResource.ts @@ -1,5 +1,5 @@ -import type PermissionCategoryIdResource from './PermissionCategoryIdResource'; -import type PermissionIdResource from './PermissionIdResource'; +import type PermissionCategoryIdResource from "./PermissionCategoryIdResource"; +import type PermissionIdResource from "./PermissionIdResource"; interface PermissionResource { /** @@ -7,37 +7,30 @@ interface PermissionResource { */ uri?: string; - /** - */ + /** */ id?: string; - /** - */ + /** */ displayName?: string; - /** - */ + /** */ description?: string; - /** - */ + /** */ assignable?: boolean; - /** - */ + /** */ readOnly?: boolean; /** * Site compatibility flag set for permission */ - siteCompatible?: 'Incompatible' | 'Compatible' | 'Independent'; + siteCompatible?: "Incompatible" | "Compatible" | "Independent"; - /** - */ + /** */ category?: PermissionCategoryIdResource; - /** - */ + /** */ includedPermissions?: PermissionIdResource[]; } diff --git a/packages/core/src/definitions/PersonalContactRequest.ts b/packages/core/src/definitions/PersonalContactRequest.ts index b5ca2fb0..b67458f4 100644 --- a/packages/core/src/definitions/PersonalContactRequest.ts +++ b/packages/core/src/definitions/PersonalContactRequest.ts @@ -1,4 +1,4 @@ -import type ContactAddressInfo from './ContactAddressInfo'; +import type ContactAddressInfo from "./ContactAddressInfo"; interface PersonalContactRequest { /** @@ -149,16 +149,13 @@ interface PersonalContactRequest { */ callbackPhone?: string; - /** - */ + /** */ homeAddress?: ContactAddressInfo; - /** - */ + /** */ businessAddress?: ContactAddressInfo; - /** - */ + /** */ otherAddress?: ContactAddressInfo; /** diff --git a/packages/core/src/definitions/PersonalContactResource.ts b/packages/core/src/definitions/PersonalContactResource.ts index 5a4dfc96..341c7b3e 100644 --- a/packages/core/src/definitions/PersonalContactResource.ts +++ b/packages/core/src/definitions/PersonalContactResource.ts @@ -1,4 +1,4 @@ -import type ContactAddressInfo from './ContactAddressInfo'; +import type ContactAddressInfo from "./ContactAddressInfo"; interface PersonalContactResource { /** @@ -13,7 +13,7 @@ interface PersonalContactResource { * (e.g. a contact can be `Deleted`). For simple contact list reading it * has always the default value - `Alive` */ - availability?: 'Alive' | 'Deleted' | 'Purged'; + availability?: "Alive" | "Deleted" | "Purged"; /** * Email of a contact @@ -170,16 +170,13 @@ interface PersonalContactResource { */ callbackPhone?: string; - /** - */ + /** */ businessAddress?: ContactAddressInfo; - /** - */ + /** */ homeAddress?: ContactAddressInfo; - /** - */ + /** */ otherAddress?: ContactAddressInfo; /** diff --git a/packages/core/src/definitions/PhoneLinesInfo.ts b/packages/core/src/definitions/PhoneLinesInfo.ts index 1e48d492..b9bd6f41 100644 --- a/packages/core/src/definitions/PhoneLinesInfo.ts +++ b/packages/core/src/definitions/PhoneLinesInfo.ts @@ -1,5 +1,5 @@ -import type PhoneNumberInfoIntId from './PhoneNumberInfoIntId'; -import type EmergencyAddress from './EmergencyAddress'; +import type PhoneNumberInfoIntId from "./PhoneNumberInfoIntId"; +import type EmergencyAddress from "./EmergencyAddress"; interface PhoneLinesInfo { /** @@ -10,14 +10,17 @@ interface PhoneLinesInfo { /** * The type of phone line */ - lineType?: 'Unknown' | 'Standalone' | 'StandaloneFree' | 'BlaPrimary' | 'BlaSecondary'; + lineType?: + | "Unknown" + | "Standalone" + | "StandaloneFree" + | "BlaPrimary" + | "BlaSecondary"; - /** - */ + /** */ phoneInfo?: PhoneNumberInfoIntId; - /** - */ + /** */ emergencyAddress?: EmergencyAddress; } diff --git a/packages/core/src/definitions/PhoneNumberDefinitionTollType.ts b/packages/core/src/definitions/PhoneNumberDefinitionTollType.ts index 818dbb36..eecb93c3 100644 --- a/packages/core/src/definitions/PhoneNumberDefinitionTollType.ts +++ b/packages/core/src/definitions/PhoneNumberDefinitionTollType.ts @@ -7,7 +7,7 @@ interface PhoneNumberDefinitionTollType { * Required * Example: Toll */ - tollType?: 'Toll' | 'TollFree'; + tollType?: "Toll" | "TollFree"; } export default PhoneNumberDefinitionTollType; diff --git a/packages/core/src/definitions/PhoneNumberInfoConferencing.ts b/packages/core/src/definitions/PhoneNumberInfoConferencing.ts index d6bd07ed..00e9bba0 100644 --- a/packages/core/src/definitions/PhoneNumberInfoConferencing.ts +++ b/packages/core/src/definitions/PhoneNumberInfoConferencing.ts @@ -1,8 +1,7 @@ -import type CountryInfoShortModel from './CountryInfoShortModel'; +import type CountryInfoShortModel from "./CountryInfoShortModel"; interface PhoneNumberInfoConferencing { - /** - */ + /** */ country?: CountryInfoShortModel; /** diff --git a/packages/core/src/definitions/PhoneNumberInfoIntId.ts b/packages/core/src/definitions/PhoneNumberInfoIntId.ts index 5d088b6c..a26ee527 100644 --- a/packages/core/src/definitions/PhoneNumberInfoIntId.ts +++ b/packages/core/src/definitions/PhoneNumberInfoIntId.ts @@ -1,5 +1,5 @@ -import type PhoneNumberCountryInfo from './PhoneNumberCountryInfo'; -import type DeviceProvisioningExtensionInfo from './DeviceProvisioningExtensionInfo'; +import type PhoneNumberCountryInfo from "./PhoneNumberCountryInfo"; +import type DeviceProvisioningExtensionInfo from "./DeviceProvisioningExtensionInfo"; /** * Phone number information @@ -11,12 +11,10 @@ interface PhoneNumberInfoIntId { */ id?: number; - /** - */ + /** */ country?: PhoneNumberCountryInfo; - /** - */ + /** */ extension?: DeviceProvisioningExtensionInfo; /** @@ -33,7 +31,7 @@ interface PhoneNumberInfoIntId { * Payment type. 'External' is returned for forwarded numbers * which are not terminated in the RingCentral phone system */ - paymentType?: 'External' | 'Local'; + paymentType?: "External" | "Local"; /** * Phone number @@ -50,20 +48,20 @@ interface PhoneNumberInfoIntId { /** * Type of a phone number */ - type?: 'VoiceFax' | 'VoiceOnly' | 'FaxOnly'; + type?: "VoiceFax" | "VoiceOnly" | "FaxOnly"; /** * Usage type of the phone number */ usageType?: - | 'MainCompanyNumber' - | 'AdditionalCompanyNumber' - | 'CompanyNumber' - | 'DirectNumber' - | 'CompanyFaxNumber' - | 'ForwardedNumber' - | 'ForwardedCompanyNumber' - | 'ContactCenterNumber'; + | "MainCompanyNumber" + | "AdditionalCompanyNumber" + | "CompanyNumber" + | "DirectNumber" + | "CompanyFaxNumber" + | "ForwardedNumber" + | "ForwardedCompanyNumber" + | "ContactCenterNumber"; } export default PhoneNumberInfoIntId; diff --git a/packages/core/src/definitions/PhoneNumberInfoNumberParser.ts b/packages/core/src/definitions/PhoneNumberInfoNumberParser.ts index a2e9f094..b36d4cdb 100644 --- a/packages/core/src/definitions/PhoneNumberInfoNumberParser.ts +++ b/packages/core/src/definitions/PhoneNumberInfoNumberParser.ts @@ -1,4 +1,4 @@ -import type GetCountryInfoNumberParser from './GetCountryInfoNumberParser'; +import type GetCountryInfoNumberParser from "./GetCountryInfoNumberParser"; interface PhoneNumberInfoNumberParser { /** @@ -7,8 +7,7 @@ interface PhoneNumberInfoNumberParser { */ originalString?: string; - /** - */ + /** */ country?: GetCountryInfoNumberParser; /** diff --git a/packages/core/src/definitions/PhoneNumberResource.ts b/packages/core/src/definitions/PhoneNumberResource.ts index 6fa5da3d..518c125b 100644 --- a/packages/core/src/definitions/PhoneNumberResource.ts +++ b/packages/core/src/definitions/PhoneNumberResource.ts @@ -24,7 +24,11 @@ interface PhoneNumberResource { * Usage type of phone number * Example: DirectNumber */ - usageType?: 'MobileNumber' | 'ContactNumber' | 'DirectNumber' | 'ForwardedNumber'; + usageType?: + | "MobileNumber" + | "ContactNumber" + | "DirectNumber" + | "ForwardedNumber"; /** * Specifies if a phone number should be hidden or not diff --git a/packages/core/src/definitions/PresenceInfoRequest.ts b/packages/core/src/definitions/PresenceInfoRequest.ts index 07741662..cca7e0ff 100644 --- a/packages/core/src/definitions/PresenceInfoRequest.ts +++ b/packages/core/src/definitions/PresenceInfoRequest.ts @@ -1,38 +1,32 @@ interface PresenceInfoRequest { - /** - */ - userStatus?: 'Offline' | 'Busy' | 'Available'; + /** */ + userStatus?: "Offline" | "Busy" | "Available"; - /** - */ + /** */ dndStatus?: - | 'TakeAllCalls' - | 'DoNotAcceptDepartmentCalls' - | 'TakeDepartmentCallsOnly' - | 'DoNotAcceptAnyCalls' - | 'Unknown'; + | "TakeAllCalls" + | "DoNotAcceptDepartmentCalls" + | "TakeDepartmentCallsOnly" + | "DoNotAcceptAnyCalls" + | "Unknown"; - /** - */ + /** */ message?: string; - /** - */ + /** */ allowSeeMyPresence?: boolean; - /** - */ + /** */ ringOnMonitoredCall?: boolean; - /** - */ + /** */ pickUpCallsOnHold?: boolean; /** * Configures the user presence visibility. When the `allowSeeMyPresence` parameter is set to `true`, * the following visibility options are supported via this parameter - All, None, PermittedUsers */ - callerIdVisibility?: 'All' | 'None' | 'PermittedUsers'; + callerIdVisibility?: "All" | "None" | "PermittedUsers"; } export default PresenceInfoRequest; diff --git a/packages/core/src/definitions/PresenceInfoResponse.ts b/packages/core/src/definitions/PresenceInfoResponse.ts index a5be20a9..d51cacb4 100644 --- a/packages/core/src/definitions/PresenceInfoResponse.ts +++ b/packages/core/src/definitions/PresenceInfoResponse.ts @@ -1,5 +1,5 @@ -import type ActiveCallInfo from './ActiveCallInfo'; -import type GetPresenceExtensionInfo from './GetPresenceExtensionInfo'; +import type ActiveCallInfo from "./ActiveCallInfo"; +import type GetPresenceExtensionInfo from "./GetPresenceExtensionInfo"; interface PresenceInfoResponse { /** @@ -8,63 +8,60 @@ interface PresenceInfoResponse { */ uri?: string; - /** - */ - userStatus?: 'Offline' | 'Busy' | 'Available'; + /** */ + userStatus?: "Offline" | "Busy" | "Available"; - /** - */ + /** */ dndStatus?: - | 'TakeAllCalls' - | 'DoNotAcceptDepartmentCalls' - | 'TakeDepartmentCallsOnly' - | 'DoNotAcceptAnyCalls' - | 'Unknown'; + | "TakeAllCalls" + | "DoNotAcceptDepartmentCalls" + | "TakeDepartmentCallsOnly" + | "DoNotAcceptAnyCalls" + | "Unknown"; - /** - */ + /** */ message?: string; - /** - */ + /** */ allowSeeMyPresence?: boolean; /** * Configures the user presence visibility. When the `allowSeeMyPresence` parameter is set to `true`, * the following visibility options are supported via this parameter - All, None, PermittedUsers */ - callerIdVisibility?: 'All' | 'None' | 'PermittedUsers'; + callerIdVisibility?: "All" | "None" | "PermittedUsers"; - /** - */ + /** */ ringOnMonitoredCall?: boolean; - /** - */ + /** */ pickUpCallsOnHold?: boolean; - /** - */ + /** */ activeCalls?: ActiveCallInfo[]; - /** - */ + /** */ extension?: GetPresenceExtensionInfo; /** * Meetings presence status */ - meetingStatus?: 'Connected' | 'Disconnected'; + meetingStatus?: "Connected" | "Disconnected"; /** * Telephony presence status. Returned if telephony status is changed */ - telephonyStatus?: 'NoCall' | 'CallConnected' | 'Ringing' | 'OnHold' | 'ParkedCall'; + telephonyStatus?: + | "NoCall" + | "CallConnected" + | "Ringing" + | "OnHold" + | "ParkedCall"; /** * Aggregated presence status, calculated from a number of sources */ - presenceStatus?: 'Offline' | 'Busy' | 'Available'; + presenceStatus?: "Offline" | "Busy" | "Available"; } export default PresenceInfoResponse; diff --git a/packages/core/src/definitions/PresenceNavigationInfo.ts b/packages/core/src/definitions/PresenceNavigationInfo.ts index 2069d145..e107fde6 100644 --- a/packages/core/src/definitions/PresenceNavigationInfo.ts +++ b/packages/core/src/definitions/PresenceNavigationInfo.ts @@ -1,23 +1,19 @@ -import type PresenceNavigationInfoURI from './PresenceNavigationInfoURI'; +import type PresenceNavigationInfoURI from "./PresenceNavigationInfoURI"; /** * Information on navigation */ interface PresenceNavigationInfo { - /** - */ + /** */ firstPage?: PresenceNavigationInfoURI; - /** - */ + /** */ nextPage?: PresenceNavigationInfoURI; - /** - */ + /** */ previousPage?: PresenceNavigationInfoURI; - /** - */ + /** */ lastPage?: PresenceNavigationInfoURI; } diff --git a/packages/core/src/definitions/PrimaryCQInfo.ts b/packages/core/src/definitions/PrimaryCQInfo.ts index 8ca81964..2e12c9d6 100644 --- a/packages/core/src/definitions/PrimaryCQInfo.ts +++ b/packages/core/src/definitions/PrimaryCQInfo.ts @@ -6,13 +6,13 @@ interface PrimaryCQInfo { * Call information to be displayed as 'Line 1' for a call queue call session */ type?: - | 'PhoneNumberLabel' - | 'PhoneNumber' - | 'QueueExtension' - | 'QueueName' - | 'CallerIdName' - | 'CallerIdNumber' - | 'None'; + | "PhoneNumberLabel" + | "PhoneNumber" + | "QueueExtension" + | "QueueName" + | "CallerIdName" + | "CallerIdNumber" + | "None"; /** * Call information value diff --git a/packages/core/src/definitions/PrivateIpRangeInfo.ts b/packages/core/src/definitions/PrivateIpRangeInfo.ts index 75a4c255..c35c2157 100644 --- a/packages/core/src/definitions/PrivateIpRangeInfo.ts +++ b/packages/core/src/definitions/PrivateIpRangeInfo.ts @@ -1,17 +1,14 @@ -import type CommonEmergencyLocationAddressInfo from './CommonEmergencyLocationAddressInfo'; -import type EmergencyLocationInfo from './EmergencyLocationInfo'; +import type CommonEmergencyLocationAddressInfo from "./CommonEmergencyLocationAddressInfo"; +import type EmergencyLocationInfo from "./EmergencyLocationInfo"; interface PrivateIpRangeInfo { - /** - */ + /** */ id?: string; - /** - */ + /** */ startIp?: string; - /** - */ + /** */ endIp?: string; /** @@ -19,8 +16,7 @@ interface PrivateIpRangeInfo { */ name?: string; - /** - */ + /** */ emergencyAddress?: CommonEmergencyLocationAddressInfo; /** @@ -30,12 +26,10 @@ interface PrivateIpRangeInfo { */ emergencyLocationId?: string; - /** - */ + /** */ matched?: boolean; - /** - */ + /** */ emergencyLocation?: EmergencyLocationInfo; } diff --git a/packages/core/src/definitions/PrivateIpRangeInfoRequest.ts b/packages/core/src/definitions/PrivateIpRangeInfoRequest.ts index b6acfbcb..859a4fee 100644 --- a/packages/core/src/definitions/PrivateIpRangeInfoRequest.ts +++ b/packages/core/src/definitions/PrivateIpRangeInfoRequest.ts @@ -1,17 +1,14 @@ -import type LocationUpdatesEmergencyAddressInfoRequest from './LocationUpdatesEmergencyAddressInfoRequest'; -import type ERLLocationInfo from './ERLLocationInfo'; +import type LocationUpdatesEmergencyAddressInfoRequest from "./LocationUpdatesEmergencyAddressInfoRequest"; +import type ERLLocationInfo from "./ERLLocationInfo"; interface PrivateIpRangeInfoRequest { - /** - */ + /** */ id?: string; - /** - */ + /** */ startIp?: string; - /** - */ + /** */ endIp?: string; /** @@ -19,8 +16,7 @@ interface PrivateIpRangeInfoRequest { */ name?: string; - /** - */ + /** */ emergencyAddress?: LocationUpdatesEmergencyAddressInfoRequest; /** @@ -30,8 +26,7 @@ interface PrivateIpRangeInfoRequest { */ emergencyLocationId?: string; - /** - */ + /** */ emergencyLocation?: ERLLocationInfo; } diff --git a/packages/core/src/definitions/ProfileImageInfo.ts b/packages/core/src/definitions/ProfileImageInfo.ts index e6a08a24..f7c5fe33 100644 --- a/packages/core/src/definitions/ProfileImageInfo.ts +++ b/packages/core/src/definitions/ProfileImageInfo.ts @@ -1,4 +1,4 @@ -import type ProfileImageInfoURI from './ProfileImageInfoURI'; +import type ProfileImageInfoURI from "./ProfileImageInfoURI"; /** * Information on profile image diff --git a/packages/core/src/definitions/PronouncedNameInfo.ts b/packages/core/src/definitions/PronouncedNameInfo.ts index 9209fdf7..c7aa3513 100644 --- a/packages/core/src/definitions/PronouncedNameInfo.ts +++ b/packages/core/src/definitions/PronouncedNameInfo.ts @@ -1,4 +1,4 @@ -import type PronouncedNamePromptInfo from './PronouncedNamePromptInfo'; +import type PronouncedNamePromptInfo from "./PronouncedNamePromptInfo"; interface PronouncedNameInfo { /** @@ -7,15 +7,14 @@ interface PronouncedNameInfo { * - `TextToSpeech` - custom text specified by a user pronounced using text-to-speech; * - `Recorded` - custom audio uploaded by a user, the name recorded in user's own voice (supported only for extension retrieval). */ - type?: 'Default' | 'TextToSpeech' | 'Recorded'; + type?: "Default" | "TextToSpeech" | "Recorded"; /** * Custom text (for `TextToSpeech` type only) */ text?: string; - /** - */ + /** */ prompt?: PronouncedNamePromptInfo; } diff --git a/packages/core/src/definitions/PronouncedNamePromptInfo.ts b/packages/core/src/definitions/PronouncedNamePromptInfo.ts index cc26f8b8..8c66d09d 100644 --- a/packages/core/src/definitions/PronouncedNamePromptInfo.ts +++ b/packages/core/src/definitions/PronouncedNamePromptInfo.ts @@ -1,6 +1,5 @@ interface PronouncedNamePromptInfo { - /** - */ + /** */ id?: string; /** @@ -12,7 +11,7 @@ interface PronouncedNamePromptInfo { /** * Content media type */ - contentType?: 'audio/mpeg' | 'audio/wav'; + contentType?: "audio/mpeg" | "audio/wav"; } export default PronouncedNamePromptInfo; diff --git a/packages/core/src/definitions/ProvisioningSiteInfo.ts b/packages/core/src/definitions/ProvisioningSiteInfo.ts index e47e33e9..19a31fc1 100644 --- a/packages/core/src/definitions/ProvisioningSiteInfo.ts +++ b/packages/core/src/definitions/ProvisioningSiteInfo.ts @@ -2,7 +2,6 @@ * Site data. If multi-site feature is turned on for an account, * then ID of a site must be specified. In order to assign a wireless * point to the main site (company) the site ID should be set to `main-site` - * */ interface ProvisioningSiteInfo { /** diff --git a/packages/core/src/definitions/PubNubDeliveryMode.ts b/packages/core/src/definitions/PubNubDeliveryMode.ts index ed815baf..9fa3a6cc 100644 --- a/packages/core/src/definitions/PubNubDeliveryMode.ts +++ b/packages/core/src/definitions/PubNubDeliveryMode.ts @@ -3,7 +3,7 @@ interface PubNubDeliveryMode { * The transport type for this subscription, or the channel by which an app should be notified of an event * Required */ - transportType?: 'PubNub'; + transportType?: "PubNub"; /** * Optional. Specifies if notification messages will be encrypted @@ -36,7 +36,7 @@ interface PubNubDeliveryMode { * (Only for a "PubNub" transport, returned only if `encryption` is `true`) * Encryption algorithm used */ - encryptionAlgorithm?: 'AES'; + encryptionAlgorithm?: "AES"; /** * (Only for a "PubNub" transport, returned only if `encryption` is `true`) diff --git a/packages/core/src/definitions/PubNubDeliveryModeRequest.ts b/packages/core/src/definitions/PubNubDeliveryModeRequest.ts index 6652bca3..3eedf3ff 100644 --- a/packages/core/src/definitions/PubNubDeliveryModeRequest.ts +++ b/packages/core/src/definitions/PubNubDeliveryModeRequest.ts @@ -3,7 +3,7 @@ interface PubNubDeliveryModeRequest { * The transport type for this subscription, or the channel by which an app should be notified of an event * Required */ - transportType?: 'PubNub'; + transportType?: "PubNub"; /** * Optional. Specifies if notification messages will be encrypted diff --git a/packages/core/src/definitions/PublicIpRangeInfo.ts b/packages/core/src/definitions/PublicIpRangeInfo.ts index e5745b0f..950380f2 100644 --- a/packages/core/src/definitions/PublicIpRangeInfo.ts +++ b/packages/core/src/definitions/PublicIpRangeInfo.ts @@ -1,18 +1,14 @@ interface PublicIpRangeInfo { - /** - */ + /** */ id?: string; - /** - */ + /** */ startIp?: string; - /** - */ + /** */ endIp?: string; - /** - */ + /** */ matched?: boolean; } diff --git a/packages/core/src/definitions/PunctuateApiOutput.ts b/packages/core/src/definitions/PunctuateApiOutput.ts index ae5d14e6..655f5ae7 100644 --- a/packages/core/src/definitions/PunctuateApiOutput.ts +++ b/packages/core/src/definitions/PunctuateApiOutput.ts @@ -1,12 +1,10 @@ -import type PunctuateApiResponse from './PunctuateApiResponse'; +import type PunctuateApiResponse from "./PunctuateApiResponse"; interface PunctuateApiOutput { - /** - */ - status?: 'Success' | 'Fail'; + /** */ + status?: "Success" | "Fail"; - /** - */ + /** */ response?: PunctuateApiResponse; } diff --git a/packages/core/src/definitions/QueueInfo.ts b/packages/core/src/definitions/QueueInfo.ts index a8e9c30a..af967582 100644 --- a/packages/core/src/definitions/QueueInfo.ts +++ b/packages/core/src/definitions/QueueInfo.ts @@ -1,17 +1,16 @@ -import type TransferInfo from './TransferInfo'; -import type FixedOrderAgents from './FixedOrderAgents'; -import type UnconditionalForwardingInfo from './UnconditionalForwardingInfo'; +import type TransferInfo from "./TransferInfo"; +import type FixedOrderAgents from "./FixedOrderAgents"; +import type UnconditionalForwardingInfo from "./UnconditionalForwardingInfo"; /** * Queue settings applied for department (call queue) extension type, * with the 'AgentQueue' value specified as a call handling action - * */ interface QueueInfo { /** * Specifies how calls are transferred to group members */ - transferMode?: 'Rotating' | 'Simultaneous' | 'FixedOrder'; + transferMode?: "Rotating" | "Simultaneous" | "FixedOrder"; /** * Call transfer information @@ -25,11 +24,11 @@ interface QueueInfo { * 'WaitPrimaryMembers' and 'WaitPrimaryAndOverflowMembers' are supported */ noAnswerAction?: - | 'WaitPrimaryMembers' - | 'WaitPrimaryAndOverflowMembers' - | 'Voicemail' - | 'TransferToExtension' - | 'UnconditionalForwarding'; + | "WaitPrimaryMembers" + | "WaitPrimaryAndOverflowMembers" + | "Voicemail" + | "TransferToExtension" + | "UnconditionalForwarding"; /** * Information on a call forwarding rule @@ -39,7 +38,7 @@ interface QueueInfo { /** * Connecting audio interruption mode */ - holdAudioInterruptionMode?: 'Never' | 'WhenMusicEnds' | 'Periodically'; + holdAudioInterruptionMode?: "Never" | "WhenMusicEnds" | "Periodically"; /** * Connecting audio interruption message period in seconds @@ -54,7 +53,10 @@ interface QueueInfo { * The default value is `Voicemail` * Default: Voicemail */ - holdTimeExpirationAction?: 'TransferToExtension' | 'UnconditionalForwarding' | 'Voicemail'; + holdTimeExpirationAction?: + | "TransferToExtension" + | "UnconditionalForwarding" + | "Voicemail"; /** * Maximum time in seconds to wait for a call queue member before trying the next member @@ -87,10 +89,13 @@ interface QueueInfo { /** * Specifies the type of action to be taken if count of callers on hold exceeds the supported maximum */ - maxCallersAction?: 'Voicemail' | 'Announcement' | 'TransferToExtension' | 'UnconditionalForwarding'; + maxCallersAction?: + | "Voicemail" + | "Announcement" + | "TransferToExtension" + | "UnconditionalForwarding"; - /** - */ + /** */ unconditionalForwarding?: UnconditionalForwardingInfo[]; } diff --git a/packages/core/src/definitions/QueueOpportunities.ts b/packages/core/src/definitions/QueueOpportunities.ts index 12589e77..2fd8cca5 100644 --- a/packages/core/src/definitions/QueueOpportunities.ts +++ b/packages/core/src/definitions/QueueOpportunities.ts @@ -6,7 +6,7 @@ interface QueueOpportunities { * Unit of the result value * Required */ - valueType?: 'Percent' | 'Seconds' | 'Instances'; + valueType?: "Percent" | "Seconds" | "Instances"; /** * Value for queue opportunities diff --git a/packages/core/src/definitions/RcwConfigListAllCompanySessionsParameters.ts b/packages/core/src/definitions/RcwConfigListAllCompanySessionsParameters.ts index ef63711b..4d40c5b7 100644 --- a/packages/core/src/definitions/RcwConfigListAllCompanySessionsParameters.ts +++ b/packages/core/src/definitions/RcwConfigListAllCompanySessionsParameters.ts @@ -6,7 +6,7 @@ interface RcwConfigListAllCompanySessionsParameters { * Session status (for the purposes of Configuration service) * Example: Scheduled */ - status?: 'Scheduled' | 'Active' | 'Finished'; + status?: "Scheduled" | "Active" | "Finished"; /** * The beginning of the time window by 'endTime' (it is calculated as scheduledStartTime+scheduledDuration) diff --git a/packages/core/src/definitions/RcwConfigListAllSessionsParameters.ts b/packages/core/src/definitions/RcwConfigListAllSessionsParameters.ts index 5ab8124b..3a41016b 100644 --- a/packages/core/src/definitions/RcwConfigListAllSessionsParameters.ts +++ b/packages/core/src/definitions/RcwConfigListAllSessionsParameters.ts @@ -12,7 +12,7 @@ interface RcwConfigListAllSessionsParameters { * Session status (for the purposes of Configuration service) * Example: Scheduled */ - status?: 'Scheduled' | 'Active' | 'Finished'; + status?: "Scheduled" | "Active" | "Finished"; /** * The beginning of the time window by 'endTime' (it is calculated as scheduledStartTime+scheduledDuration) diff --git a/packages/core/src/definitions/RcwDomainUserModel.ts b/packages/core/src/definitions/RcwDomainUserModel.ts index 22db2438..f201a159 100644 --- a/packages/core/src/definitions/RcwDomainUserModel.ts +++ b/packages/core/src/definitions/RcwDomainUserModel.ts @@ -16,7 +16,7 @@ interface RcwDomainUserModel { * Required * Default: pbx */ - domain?: 'pbx' | 'ilm'; + domain?: "pbx" | "ilm"; } export default RcwDomainUserModel; diff --git a/packages/core/src/definitions/RcwHistoryAdminListRecordingsParameters.ts b/packages/core/src/definitions/RcwHistoryAdminListRecordingsParameters.ts index 340a955e..93b5e72b 100644 --- a/packages/core/src/definitions/RcwHistoryAdminListRecordingsParameters.ts +++ b/packages/core/src/definitions/RcwHistoryAdminListRecordingsParameters.ts @@ -23,7 +23,7 @@ interface RcwHistoryAdminListRecordingsParameters { /** * The status of the recording. */ - status?: ('Processing' | 'Available' | 'Failed' | 'Purged')[]; + status?: ("Processing" | "Available" | "Failed" | "Purged")[]; /** * Identifier of the user who hosts a webinar (if omitted, webinars hosted by all company users will be returned) diff --git a/packages/core/src/definitions/RcwHistoryGetRecordingDownloadParameters.ts b/packages/core/src/definitions/RcwHistoryGetRecordingDownloadParameters.ts index 286150be..a10588a2 100644 --- a/packages/core/src/definitions/RcwHistoryGetRecordingDownloadParameters.ts +++ b/packages/core/src/definitions/RcwHistoryGetRecordingDownloadParameters.ts @@ -7,7 +7,7 @@ interface RcwHistoryGetRecordingDownloadParameters { * Example: Video * Default: Video */ - recordingMediaType?: 'Video' | 'Audio'; + recordingMediaType?: "Video" | "Audio"; } export default RcwHistoryGetRecordingDownloadParameters; diff --git a/packages/core/src/definitions/RcwHistoryListAllCompanySessionsParameters.ts b/packages/core/src/definitions/RcwHistoryListAllCompanySessionsParameters.ts index 46f21aa1..335b0ecc 100644 --- a/packages/core/src/definitions/RcwHistoryListAllCompanySessionsParameters.ts +++ b/packages/core/src/definitions/RcwHistoryListAllCompanySessionsParameters.ts @@ -12,7 +12,7 @@ interface RcwHistoryListAllCompanySessionsParameters { * Filter to return only webinar sessions in certain status. Multiple values are supported. * Example: Active,Finished */ - status?: ('Scheduled' | 'Active' | 'Finished')[]; + status?: ("Scheduled" | "Active" | "Finished")[]; /** * The beginning of the time window by 'endTime' . diff --git a/packages/core/src/definitions/RcwHistoryListAllSessionsParameters.ts b/packages/core/src/definitions/RcwHistoryListAllSessionsParameters.ts index f154a211..5af07b28 100644 --- a/packages/core/src/definitions/RcwHistoryListAllSessionsParameters.ts +++ b/packages/core/src/definitions/RcwHistoryListAllSessionsParameters.ts @@ -12,7 +12,7 @@ interface RcwHistoryListAllSessionsParameters { * Filter to return only webinar sessions in certain status. Multiple values are supported. * Example: Active,Finished */ - status?: ('Scheduled' | 'Active' | 'Finished')[]; + status?: ("Scheduled" | "Active" | "Finished")[]; /** * The beginning of the time window by 'endTime' . diff --git a/packages/core/src/definitions/RcwHistoryListInviteesParameters.ts b/packages/core/src/definitions/RcwHistoryListInviteesParameters.ts index d267e6c0..af0bb3a7 100644 --- a/packages/core/src/definitions/RcwHistoryListInviteesParameters.ts +++ b/packages/core/src/definitions/RcwHistoryListInviteesParameters.ts @@ -5,12 +5,12 @@ interface RcwHistoryListInviteesParameters { /** * The role of the invitee/participant. */ - role?: ('Panelist' | 'CoHost' | 'Host' | 'Attendee')[]; + role?: ("Panelist" | "CoHost" | "Host" | "Attendee")[]; /** * The original role of the invitee/participant. */ - originalRole?: ('Panelist' | 'CoHost' | 'Host' | 'Attendee')[]; + originalRole?: ("Panelist" | "CoHost" | "Host" | "Attendee")[]; /** * The number of items per page. If provided value in the request diff --git a/packages/core/src/definitions/RcwHistoryListParticipantsParameters.ts b/packages/core/src/definitions/RcwHistoryListParticipantsParameters.ts index b468a4f9..adc6d2e4 100644 --- a/packages/core/src/definitions/RcwHistoryListParticipantsParameters.ts +++ b/packages/core/src/definitions/RcwHistoryListParticipantsParameters.ts @@ -5,12 +5,12 @@ interface RcwHistoryListParticipantsParameters { /** * The role of the invitee/participant. */ - role?: ('Panelist' | 'CoHost' | 'Host' | 'Attendee')[]; + role?: ("Panelist" | "CoHost" | "Host" | "Attendee")[]; /** * The original role of the invitee/participant. */ - originalRole?: ('Panelist' | 'CoHost' | 'Host' | 'Attendee')[]; + originalRole?: ("Panelist" | "CoHost" | "Host" | "Attendee")[]; /** * The number of items per page. If provided value in the request diff --git a/packages/core/src/definitions/RcwHistoryListRecordingsParameters.ts b/packages/core/src/definitions/RcwHistoryListRecordingsParameters.ts index 1166f6ed..1f561d6a 100644 --- a/packages/core/src/definitions/RcwHistoryListRecordingsParameters.ts +++ b/packages/core/src/definitions/RcwHistoryListRecordingsParameters.ts @@ -17,7 +17,7 @@ interface RcwHistoryListRecordingsParameters { /** * The status of the recording. */ - status?: ('Processing' | 'Available' | 'Failed' | 'Purged')[]; + status?: ("Processing" | "Available" | "Failed" | "Purged")[]; /** * The number of items per page. If provided value in the request diff --git a/packages/core/src/definitions/RcwLinkedUserModel.ts b/packages/core/src/definitions/RcwLinkedUserModel.ts index 092e7817..77f7eedc 100644 --- a/packages/core/src/definitions/RcwLinkedUserModel.ts +++ b/packages/core/src/definitions/RcwLinkedUserModel.ts @@ -1,11 +1,10 @@ -import type RcwDomainUserModel from './RcwDomainUserModel'; +import type RcwDomainUserModel from "./RcwDomainUserModel"; /** * The internal IDs of RC-authenticated users. */ interface RcwLinkedUserModel { - /** - */ + /** */ linkedUser?: RcwDomainUserModel; } diff --git a/packages/core/src/definitions/RcwRoleAttributeModel.ts b/packages/core/src/definitions/RcwRoleAttributeModel.ts index 73a50acf..e6650173 100644 --- a/packages/core/src/definitions/RcwRoleAttributeModel.ts +++ b/packages/core/src/definitions/RcwRoleAttributeModel.ts @@ -8,7 +8,7 @@ interface RcwRoleAttributeModel { * Required * Example: Panelist */ - role?: 'Panelist' | 'CoHost' | 'Host' | 'Attendee'; + role?: "Panelist" | "CoHost" | "Host" | "Attendee"; } export default RcwRoleAttributeModel; diff --git a/packages/core/src/definitions/ReadA2PSMSOptOutsParameters.ts b/packages/core/src/definitions/ReadA2PSMSOptOutsParameters.ts index 2044b839..cce1af9a 100644 --- a/packages/core/src/definitions/ReadA2PSMSOptOutsParameters.ts +++ b/packages/core/src/definitions/ReadA2PSMSOptOutsParameters.ts @@ -20,7 +20,7 @@ interface ReadA2PSMSOptOutsParameters { * Example: optout * Default: optout */ - status?: 'optout' | 'optin' | 'all'; + status?: "optout" | "optin" | "all"; /** * The page token of the page to be retrieved diff --git a/packages/core/src/definitions/ReadAccountGreetingContentParameters.ts b/packages/core/src/definitions/ReadAccountGreetingContentParameters.ts index 7ea5a0e3..f7ac998b 100644 --- a/packages/core/src/definitions/ReadAccountGreetingContentParameters.ts +++ b/packages/core/src/definitions/ReadAccountGreetingContentParameters.ts @@ -5,7 +5,7 @@ interface ReadAccountGreetingContentParameters { /** * Whether the content is expected to be displayed in the browser, or downloaded and saved locally */ - contentDisposition?: 'Inline' | 'Attachment'; + contentDisposition?: "Inline" | "Attachment"; /** * The default filename of the file to be downloaded diff --git a/packages/core/src/definitions/ReadAuthorizationProfileParameters.ts b/packages/core/src/definitions/ReadAuthorizationProfileParameters.ts index 44021910..f1429ec0 100644 --- a/packages/core/src/definitions/ReadAuthorizationProfileParameters.ts +++ b/packages/core/src/definitions/ReadAuthorizationProfileParameters.ts @@ -2,8 +2,7 @@ * Query parameters for operation readAuthorizationProfile */ interface ReadAuthorizationProfileParameters { - /** - */ + /** */ targetExtensionId?: string; } diff --git a/packages/core/src/definitions/ReadCallRecordingContentParameters.ts b/packages/core/src/definitions/ReadCallRecordingContentParameters.ts index 8ecf7499..99cfe96e 100644 --- a/packages/core/src/definitions/ReadCallRecordingContentParameters.ts +++ b/packages/core/src/definitions/ReadCallRecordingContentParameters.ts @@ -5,7 +5,7 @@ interface ReadCallRecordingContentParameters { /** * Whether the content is expected to be displayed in the browser, or downloaded and saved locally */ - contentDisposition?: 'Inline' | 'Attachment'; + contentDisposition?: "Inline" | "Attachment"; /** * The default filename of the file to be downloaded diff --git a/packages/core/src/definitions/ReadCompanyCallLogParameters.ts b/packages/core/src/definitions/ReadCompanyCallLogParameters.ts index 5581dc1c..4f4ac41e 100644 --- a/packages/core/src/definitions/ReadCompanyCallLogParameters.ts +++ b/packages/core/src/definitions/ReadCompanyCallLogParameters.ts @@ -20,19 +20,19 @@ interface ReadCompanyCallLogParameters { * The direction of call records to be included in the result. If omitted, both * inbound and outbound calls are returned. Multiple values are supported */ - direction?: ('Inbound' | 'Outbound')[]; + direction?: ("Inbound" | "Outbound")[]; /** * The type of call records to be included in the result. * If omitted, all call types are returned. Multiple values are supported */ - type?: ('Voice' | 'Fax')[]; + type?: ("Voice" | "Fax")[]; /** * Defines the level of details for returned call records * Default: Simple */ - view?: 'Simple' | 'Detailed'; + view?: "Simple" | "Detailed"; /** * Deprecated, replaced with `recordingType` filter, still supported for compatibility reasons. @@ -46,7 +46,7 @@ interface ReadCompanyCallLogParameters { * Indicates that call records with recordings of particular type should be returned. * If omitted, then calls with and without recordings are returned */ - recordingType?: 'Automatic' | 'OnDemand' | 'All'; + recordingType?: "Automatic" | "OnDemand" | "All"; /** * The beginning of the time range to return call records in ISO 8601 format including timezone, diff --git a/packages/core/src/definitions/ReadCompanyCallRecordParameters.ts b/packages/core/src/definitions/ReadCompanyCallRecordParameters.ts index f5aa56ce..f62732a2 100644 --- a/packages/core/src/definitions/ReadCompanyCallRecordParameters.ts +++ b/packages/core/src/definitions/ReadCompanyCallRecordParameters.ts @@ -6,7 +6,7 @@ interface ReadCompanyCallRecordParameters { * Defines the level of details for returned call records * Default: Simple */ - view?: 'Simple' | 'Detailed'; + view?: "Simple" | "Detailed"; } export default ReadCompanyCallRecordParameters; diff --git a/packages/core/src/definitions/ReadDirectoryFederationParameters.ts b/packages/core/src/definitions/ReadDirectoryFederationParameters.ts index 6dfb838e..cfc68606 100644 --- a/packages/core/src/definitions/ReadDirectoryFederationParameters.ts +++ b/packages/core/src/definitions/ReadDirectoryFederationParameters.ts @@ -5,7 +5,7 @@ interface ReadDirectoryFederationParameters { /** * Federation types for search */ - types?: 'All' | 'Regular' | 'AdminOnly'; + types?: "All" | "Regular" | "AdminOnly"; } export default ReadDirectoryFederationParameters; diff --git a/packages/core/src/definitions/ReadEmergencyLocationParameters.ts b/packages/core/src/definitions/ReadEmergencyLocationParameters.ts index 9d331659..be8a93a2 100644 --- a/packages/core/src/definitions/ReadEmergencyLocationParameters.ts +++ b/packages/core/src/definitions/ReadEmergencyLocationParameters.ts @@ -2,8 +2,7 @@ * Query parameters for operation readEmergencyLocation */ interface ReadEmergencyLocationParameters { - /** - */ + /** */ syncEmergencyAddress?: boolean; } diff --git a/packages/core/src/definitions/ReadGreetingContentParameters.ts b/packages/core/src/definitions/ReadGreetingContentParameters.ts index 4690b464..b893c5b6 100644 --- a/packages/core/src/definitions/ReadGreetingContentParameters.ts +++ b/packages/core/src/definitions/ReadGreetingContentParameters.ts @@ -5,7 +5,7 @@ interface ReadGreetingContentParameters { /** * Whether the content is expected to be displayed in the browser, or downloaded and saved locally */ - contentDisposition?: 'Inline' | 'Attachment'; + contentDisposition?: "Inline" | "Attachment"; /** * The default filename of the file to be downloaded diff --git a/packages/core/src/definitions/ReadIVRPromptContentParameters.ts b/packages/core/src/definitions/ReadIVRPromptContentParameters.ts index 3b6d2cd0..b1ab14f9 100644 --- a/packages/core/src/definitions/ReadIVRPromptContentParameters.ts +++ b/packages/core/src/definitions/ReadIVRPromptContentParameters.ts @@ -5,7 +5,7 @@ interface ReadIVRPromptContentParameters { /** * Whether the content is expected to be displayed in the browser, or downloaded and saved locally */ - contentDisposition?: 'Inline' | 'Attachment'; + contentDisposition?: "Inline" | "Attachment"; /** * The default filename of the file to be downloaded diff --git a/packages/core/src/definitions/ReadMessageContentParameters.ts b/packages/core/src/definitions/ReadMessageContentParameters.ts index 260851b0..b1256528 100644 --- a/packages/core/src/definitions/ReadMessageContentParameters.ts +++ b/packages/core/src/definitions/ReadMessageContentParameters.ts @@ -5,7 +5,7 @@ interface ReadMessageContentParameters { /** * Whether the content is expected to be displayed in the browser, or downloaded and saved locally */ - contentDisposition?: 'Inline' | 'Attachment'; + contentDisposition?: "Inline" | "Attachment"; /** * The default filename of the file to be downloaded diff --git a/packages/core/src/definitions/ReadMultichannelCallRecordingContentParameters.ts b/packages/core/src/definitions/ReadMultichannelCallRecordingContentParameters.ts index 1932ba93..4ac1270d 100644 --- a/packages/core/src/definitions/ReadMultichannelCallRecordingContentParameters.ts +++ b/packages/core/src/definitions/ReadMultichannelCallRecordingContentParameters.ts @@ -5,7 +5,7 @@ interface ReadMultichannelCallRecordingContentParameters { /** * Whether the content is expected to be displayed in the browser, or downloaded and saved locally */ - contentDisposition?: 'Inline' | 'Attachment'; + contentDisposition?: "Inline" | "Attachment"; /** * The default filename of the file to be downloaded diff --git a/packages/core/src/definitions/ReadScaledProfileImageParameters.ts b/packages/core/src/definitions/ReadScaledProfileImageParameters.ts index 071c62e7..45fec027 100644 --- a/packages/core/src/definitions/ReadScaledProfileImageParameters.ts +++ b/packages/core/src/definitions/ReadScaledProfileImageParameters.ts @@ -5,7 +5,7 @@ interface ReadScaledProfileImageParameters { /** * Whether the content is expected to be displayed in the browser, or downloaded and saved locally */ - contentDisposition?: 'Inline' | 'Attachment'; + contentDisposition?: "Inline" | "Attachment"; /** * The default filename of the file to be downloaded diff --git a/packages/core/src/definitions/ReadUserCallLogParameters.ts b/packages/core/src/definitions/ReadUserCallLogParameters.ts index 7f503148..fe8c20a1 100644 --- a/packages/core/src/definitions/ReadUserCallLogParameters.ts +++ b/packages/core/src/definitions/ReadUserCallLogParameters.ts @@ -26,7 +26,7 @@ interface ReadUserCallLogParameters { * The direction of call records to be included in the result. If omitted, both * inbound and outbound calls are returned. Multiple values are supported */ - direction?: ('Inbound' | 'Outbound')[]; + direction?: ("Inbound" | "Outbound")[]; /** * Internal identifier of a call session @@ -37,18 +37,18 @@ interface ReadUserCallLogParameters { * The type of call records to be included in the result. * If omitted, all call types are returned. Multiple values are supported */ - type?: ('Voice' | 'Fax')[]; + type?: ("Voice" | "Fax")[]; /** * The type of call transport. Multiple values are supported. By default, this filter is disabled */ - transport?: ('PSTN' | 'VoIP')[]; + transport?: ("PSTN" | "VoIP")[]; /** * Defines the level of details for returned call records * Default: Simple */ - view?: 'Simple' | 'Detailed'; + view?: "Simple" | "Detailed"; /** * Deprecated, replaced with `recordingType` filter, still supported for compatibility reasons. @@ -62,7 +62,7 @@ interface ReadUserCallLogParameters { * Indicates that call records with recordings of particular type should be returned. * If omitted, then calls with and without recordings are returned */ - recordingType?: 'Automatic' | 'OnDemand' | 'All'; + recordingType?: "Automatic" | "OnDemand" | "All"; /** * The end of the time range to return call records in ISO 8601 format including timezone, diff --git a/packages/core/src/definitions/ReadUserCallRecordParameters.ts b/packages/core/src/definitions/ReadUserCallRecordParameters.ts index c5d506f3..524addf3 100644 --- a/packages/core/src/definitions/ReadUserCallRecordParameters.ts +++ b/packages/core/src/definitions/ReadUserCallRecordParameters.ts @@ -6,7 +6,7 @@ interface ReadUserCallRecordParameters { * Defines the level of details for returned call records * Default: Simple */ - view?: 'Simple' | 'Detailed'; + view?: "Simple" | "Detailed"; } export default ReadUserCallRecordParameters; diff --git a/packages/core/src/definitions/ReasonInfo.ts b/packages/core/src/definitions/ReasonInfo.ts index 110068cd..f55fdcfd 100644 --- a/packages/core/src/definitions/ReasonInfo.ts +++ b/packages/core/src/definitions/ReasonInfo.ts @@ -1,27 +1,25 @@ /** * Reason for the feature unavailability. Returned only if `available` * is set to `false` - * */ interface ReasonInfo { /** * Reason code */ code?: - | 'ServicePlanLimitation' - | 'AccountLimitation' - | 'ExtensionTypeLimitation' - | 'ExtensionLimitation' - | 'InsufficientPermissions' - | 'ConfigurationLimitation'; + | "ServicePlanLimitation" + | "AccountLimitation" + | "ExtensionTypeLimitation" + | "ExtensionLimitation" + | "InsufficientPermissions" + | "ConfigurationLimitation"; /** * Reason description */ message?: string; - /** - */ + /** */ permission?: string; } diff --git a/packages/core/src/definitions/Recording.ts b/packages/core/src/definitions/Recording.ts index d6e099b1..cbb71a5b 100644 --- a/packages/core/src/definitions/Recording.ts +++ b/packages/core/src/definitions/Recording.ts @@ -1,4 +1,4 @@ -import type JsValue from './JsValue'; +import type JsValue from "./JsValue"; /** * Recording information @@ -21,20 +21,26 @@ interface Recording { */ url?: string; - /** - */ + /** */ metadata?: JsValue; /** * Recording processing status */ - status?: 'Processing' | 'Processed' | 'Error' | 'Corrupted' | 'InProgress' | 'Purged' | 'Failed'; + status?: + | "Processing" + | "Processed" + | "Error" + | "Corrupted" + | "InProgress" + | "Purged" + | "Failed"; /** * Availability status * Required */ - availabilityStatus?: 'Alive' | 'Deleted' | 'Purged' | 'NotAvailable'; + availabilityStatus?: "Alive" | "Deleted" | "Purged" | "NotAvailable"; /** * During meeting AI team analyze code and after meeting finished generates text summary about this meeting diff --git a/packages/core/src/definitions/RecordingAdminExtendedItemModel.ts b/packages/core/src/definitions/RecordingAdminExtendedItemModel.ts index 47b1d70e..bff6f162 100644 --- a/packages/core/src/definitions/RecordingAdminExtendedItemModel.ts +++ b/packages/core/src/definitions/RecordingAdminExtendedItemModel.ts @@ -1,5 +1,5 @@ -import type ApiError from './ApiError'; -import type SessionRefAdminModel from './SessionRefAdminModel'; +import type ApiError from "./ApiError"; +import type SessionRefAdminModel from "./SessionRefAdminModel"; interface RecordingAdminExtendedItemModel { /** @@ -27,10 +27,9 @@ interface RecordingAdminExtendedItemModel { * Required * Example: Available */ - status?: 'Processing' | 'Available' | 'Failed' | 'Purged'; + status?: "Processing" | "Available" | "Failed" | "Purged"; - /** - */ + /** */ failureReason?: ApiError; /** @@ -63,8 +62,7 @@ interface RecordingAdminExtendedItemModel { */ recordingSharedUri?: string; - /** - */ + /** */ session?: SessionRefAdminModel; } diff --git a/packages/core/src/definitions/RecordingAdminListResource.ts b/packages/core/src/definitions/RecordingAdminListResource.ts index 59d911d2..6046b491 100644 --- a/packages/core/src/definitions/RecordingAdminListResource.ts +++ b/packages/core/src/definitions/RecordingAdminListResource.ts @@ -1,5 +1,5 @@ -import type RecordingAdminModel from './RecordingAdminModel'; -import type RcwPagingModel from './RcwPagingModel'; +import type RecordingAdminModel from "./RecordingAdminModel"; +import type RcwPagingModel from "./RcwPagingModel"; interface RecordingAdminListResource { /** diff --git a/packages/core/src/definitions/RecordingAdminModel.ts b/packages/core/src/definitions/RecordingAdminModel.ts index 8640fa08..f6342bbe 100644 --- a/packages/core/src/definitions/RecordingAdminModel.ts +++ b/packages/core/src/definitions/RecordingAdminModel.ts @@ -1,5 +1,5 @@ -import type ApiError from './ApiError'; -import type SessionRefAdminModel from './SessionRefAdminModel'; +import type ApiError from "./ApiError"; +import type SessionRefAdminModel from "./SessionRefAdminModel"; interface RecordingAdminModel { /** @@ -27,10 +27,9 @@ interface RecordingAdminModel { * Required * Example: Available */ - status?: 'Processing' | 'Available' | 'Failed' | 'Purged'; + status?: "Processing" | "Available" | "Failed" | "Purged"; - /** - */ + /** */ failureReason?: ApiError; /** @@ -55,8 +54,7 @@ interface RecordingAdminModel { */ sharedUriExpirationTime?: string; - /** - */ + /** */ session?: SessionRefAdminModel; } diff --git a/packages/core/src/definitions/RecordingBaseModel.ts b/packages/core/src/definitions/RecordingBaseModel.ts index 79d234cd..c6ff9590 100644 --- a/packages/core/src/definitions/RecordingBaseModel.ts +++ b/packages/core/src/definitions/RecordingBaseModel.ts @@ -1,4 +1,4 @@ -import type ApiError from './ApiError'; +import type ApiError from "./ApiError"; interface RecordingBaseModel { /** @@ -6,10 +6,9 @@ interface RecordingBaseModel { * Required * Example: Available */ - status?: 'Processing' | 'Available' | 'Failed' | 'Purged'; + status?: "Processing" | "Available" | "Failed" | "Purged"; - /** - */ + /** */ failureReason?: ApiError; /** diff --git a/packages/core/src/definitions/RecordingDownloadModel.ts b/packages/core/src/definitions/RecordingDownloadModel.ts index 286223cd..3d9ea9fe 100644 --- a/packages/core/src/definitions/RecordingDownloadModel.ts +++ b/packages/core/src/definitions/RecordingDownloadModel.ts @@ -11,7 +11,7 @@ interface RecordingDownloadModel { * Required * Default: video/mp4 */ - downloadContentType?: 'video/mp4' | 'audio/m4a'; + downloadContentType?: "video/mp4" | "audio/m4a"; /** * Download file size in bytes diff --git a/packages/core/src/definitions/RecordingExtendedModel.ts b/packages/core/src/definitions/RecordingExtendedModel.ts index 5e450697..3153297a 100644 --- a/packages/core/src/definitions/RecordingExtendedModel.ts +++ b/packages/core/src/definitions/RecordingExtendedModel.ts @@ -1,4 +1,4 @@ -import type ApiError from './ApiError'; +import type ApiError from "./ApiError"; interface RecordingExtendedModel { /** @@ -26,10 +26,9 @@ interface RecordingExtendedModel { * Required * Example: Available */ - status?: 'Processing' | 'Available' | 'Failed' | 'Purged'; + status?: "Processing" | "Available" | "Failed" | "Purged"; - /** - */ + /** */ failureReason?: ApiError; /** diff --git a/packages/core/src/definitions/RecordingInsights.ts b/packages/core/src/definitions/RecordingInsights.ts index 3a2f286f..61d93377 100644 --- a/packages/core/src/definitions/RecordingInsights.ts +++ b/packages/core/src/definitions/RecordingInsights.ts @@ -1,4 +1,4 @@ -import type AIInsights from './AIInsights'; +import type AIInsights from "./AIInsights"; interface RecordingInsights { /** @@ -19,7 +19,7 @@ interface RecordingInsights { * Required * Example: pbx */ - domain?: 'pbx'; + domain?: "pbx"; /** * Recording ID of the domain @@ -39,7 +39,7 @@ interface RecordingInsights { * Optional call direction in case of phone call recording * Example: Inbound */ - callDirection?: 'Inbound' | 'Outbound'; + callDirection?: "Inbound" | "Outbound"; /** * Extension id of the call recording owner diff --git a/packages/core/src/definitions/RecordingItemExtendedModel.ts b/packages/core/src/definitions/RecordingItemExtendedModel.ts index 5b203cb4..ab57ba29 100644 --- a/packages/core/src/definitions/RecordingItemExtendedModel.ts +++ b/packages/core/src/definitions/RecordingItemExtendedModel.ts @@ -1,5 +1,5 @@ -import type ApiError from './ApiError'; -import type SessionRefModel from './SessionRefModel'; +import type ApiError from "./ApiError"; +import type SessionRefModel from "./SessionRefModel"; interface RecordingItemExtendedModel { /** @@ -27,10 +27,9 @@ interface RecordingItemExtendedModel { * Required * Example: Available */ - status?: 'Processing' | 'Available' | 'Failed' | 'Purged'; + status?: "Processing" | "Available" | "Failed" | "Purged"; - /** - */ + /** */ failureReason?: ApiError; /** @@ -63,8 +62,7 @@ interface RecordingItemExtendedModel { */ recordingSharedUri?: string; - /** - */ + /** */ session?: SessionRefModel; } diff --git a/packages/core/src/definitions/RecordingItemModel.ts b/packages/core/src/definitions/RecordingItemModel.ts index 951281be..c0b0528e 100644 --- a/packages/core/src/definitions/RecordingItemModel.ts +++ b/packages/core/src/definitions/RecordingItemModel.ts @@ -1,5 +1,5 @@ -import type ApiError from './ApiError'; -import type SessionRefModel from './SessionRefModel'; +import type ApiError from "./ApiError"; +import type SessionRefModel from "./SessionRefModel"; interface RecordingItemModel { /** @@ -27,10 +27,9 @@ interface RecordingItemModel { * Required * Example: Available */ - status?: 'Processing' | 'Available' | 'Failed' | 'Purged'; + status?: "Processing" | "Available" | "Failed" | "Purged"; - /** - */ + /** */ failureReason?: ApiError; /** @@ -55,8 +54,7 @@ interface RecordingItemModel { */ sharedUriExpirationTime?: string; - /** - */ + /** */ session?: SessionRefModel; } diff --git a/packages/core/src/definitions/RecordingListResource.ts b/packages/core/src/definitions/RecordingListResource.ts index eb1929f7..c3ab9f74 100644 --- a/packages/core/src/definitions/RecordingListResource.ts +++ b/packages/core/src/definitions/RecordingListResource.ts @@ -1,5 +1,5 @@ -import type RecordingItemModel from './RecordingItemModel'; -import type RcwPagingModel from './RcwPagingModel'; +import type RecordingItemModel from "./RecordingItemModel"; +import type RcwPagingModel from "./RcwPagingModel"; interface RecordingListResource { /** diff --git a/packages/core/src/definitions/RecordingModel.ts b/packages/core/src/definitions/RecordingModel.ts index c8b6a0dd..833a517a 100644 --- a/packages/core/src/definitions/RecordingModel.ts +++ b/packages/core/src/definitions/RecordingModel.ts @@ -1,4 +1,4 @@ -import type ApiError from './ApiError'; +import type ApiError from "./ApiError"; interface RecordingModel { /** @@ -26,10 +26,9 @@ interface RecordingModel { * Required * Example: Available */ - status?: 'Processing' | 'Available' | 'Failed' | 'Purged'; + status?: "Processing" | "Available" | "Failed" | "Purged"; - /** - */ + /** */ failureReason?: ApiError; /** diff --git a/packages/core/src/definitions/RecordingsPreferences.ts b/packages/core/src/definitions/RecordingsPreferences.ts index add9a5e1..4a5b7fb4 100644 --- a/packages/core/src/definitions/RecordingsPreferences.ts +++ b/packages/core/src/definitions/RecordingsPreferences.ts @@ -1,16 +1,14 @@ -import type EveryoneCanControl from './EveryoneCanControl'; -import type AutoShared from './AutoShared'; +import type EveryoneCanControl from "./EveryoneCanControl"; +import type AutoShared from "./AutoShared"; /** * Recordings preferences */ interface RecordingsPreferences { - /** - */ + /** */ everyoneCanControl?: EveryoneCanControl; - /** - */ + /** */ autoShared?: AutoShared; } diff --git a/packages/core/src/definitions/RecurrenceInfo.ts b/packages/core/src/definitions/RecurrenceInfo.ts index 7022b7eb..91fa1766 100644 --- a/packages/core/src/definitions/RecurrenceInfo.ts +++ b/packages/core/src/definitions/RecurrenceInfo.ts @@ -2,7 +2,7 @@ interface RecurrenceInfo { /** * Recurrence time frame */ - frequency?: 'Daily' | 'Weekly' | 'Monthly'; + frequency?: "Daily" | "Weekly" | "Monthly"; /** * Recurrence interval. The supported ranges are: 1-90 for `Daily`; @@ -11,9 +11,16 @@ interface RecurrenceInfo { */ interval?: number; - /** - */ - weeklyByDays?: ('Sunday' | 'Monday' | 'Tuesday' | 'Wednesday' | 'Thursday' | 'Friday' | 'Saturday')[]; + /** */ + weeklyByDays?: ( + | "Sunday" + | "Monday" + | "Tuesday" + | "Wednesday" + | "Thursday" + | "Friday" + | "Saturday" + )[]; /** * The supported range is 1-31 @@ -24,12 +31,19 @@ interface RecurrenceInfo { /** * Supported together with `weeklyByDay` */ - monthlyByWeek?: 'Last' | 'First' | 'Second' | 'Third' | 'Fourth'; + monthlyByWeek?: "Last" | "First" | "Second" | "Third" | "Fourth"; /** * This field is used only if you're scheduling a recurring meeting of type `3` to state a specific day in a week when the monthly meeting should recur; it works together with `MonthlyByWeek` field. The values are: 1 - Sunday; 2 - Monday; 3 - Tuesday; 4 - Wednesday; 5 - Thursday; 6 - Friday; 7- Saturday */ - monthlyByWeekDay?: 'Sunday' | 'Monday' | 'Tuesday' | 'Wednesday' | 'Thursday' | 'Friday' | 'Saturday'; + monthlyByWeekDay?: + | "Sunday" + | "Monday" + | "Tuesday" + | "Wednesday" + | "Thursday" + | "Friday" + | "Saturday"; /** * Number of meeting occurrences diff --git a/packages/core/src/definitions/ReferenceInfo.ts b/packages/core/src/definitions/ReferenceInfo.ts index 1f428217..3d933101 100644 --- a/packages/core/src/definitions/ReferenceInfo.ts +++ b/packages/core/src/definitions/ReferenceInfo.ts @@ -7,7 +7,7 @@ interface ReferenceInfo { /** * Type of external identifier */ - type?: 'PartnerId' | 'CustomerDirectoryId'; + type?: "PartnerId" | "CustomerDirectoryId"; /** * Primary federation admin account identifier diff --git a/packages/core/src/definitions/RefreshTokenRequest.ts b/packages/core/src/definitions/RefreshTokenRequest.ts index 39a43cea..2101f5f0 100644 --- a/packages/core/src/definitions/RefreshTokenRequest.ts +++ b/packages/core/src/definitions/RefreshTokenRequest.ts @@ -1,14 +1,13 @@ /** * Token endpoint request parameters used in the "Refresh Token" flow * with the `refresh_token` grant type - * */ interface RefreshTokenRequest { /** * Grant type * Required */ - grant_type?: 'refresh_token'; + grant_type?: "refresh_token"; /** * For `refresh_token` grant type only. Previously issued refresh token. diff --git a/packages/core/src/definitions/RegSessionModel.ts b/packages/core/src/definitions/RegSessionModel.ts index 4c2520e4..36fe205f 100644 --- a/packages/core/src/definitions/RegSessionModel.ts +++ b/packages/core/src/definitions/RegSessionModel.ts @@ -1,4 +1,4 @@ -import type RegSessionModelSettings from './RegSessionModelSettings'; +import type RegSessionModelSettings from "./RegSessionModelSettings"; interface RegSessionModel { /** @@ -13,7 +13,7 @@ interface RegSessionModel { * Required * Example: Open */ - registrationStatus?: 'Open' | 'Closed'; + registrationStatus?: "Open" | "Closed"; /** * The URI of the registration landing page @@ -57,8 +57,7 @@ interface RegSessionModel { */ icalendarSequence?: number; - /** - */ + /** */ settings?: RegSessionModelSettings; } diff --git a/packages/core/src/definitions/RegSessionModelSettings.ts b/packages/core/src/definitions/RegSessionModelSettings.ts index c758bb17..7819b2c5 100644 --- a/packages/core/src/definitions/RegSessionModelSettings.ts +++ b/packages/core/src/definitions/RegSessionModelSettings.ts @@ -35,7 +35,12 @@ interface RegSessionModelSettings { * Duration of on-demand webinar. The default value can only be used if the session is on demand. * Default: SixMonths */ - onDemandDuration?: 'OneMonth' | 'TwoMonths' | 'ThreeMonths' | 'SixMonths' | 'OneYear'; + onDemandDuration?: + | "OneMonth" + | "TwoMonths" + | "ThreeMonths" + | "SixMonths" + | "OneYear"; /** * Indicates that recording exists for the session. diff --git a/packages/core/src/definitions/RegionalSettings.ts b/packages/core/src/definitions/RegionalSettings.ts index dae1ba45..0fe1fa05 100644 --- a/packages/core/src/definitions/RegionalSettings.ts +++ b/packages/core/src/definitions/RegionalSettings.ts @@ -1,40 +1,34 @@ -import type CountryInfoShortModel from './CountryInfoShortModel'; -import type TimezoneInfo from './TimezoneInfo'; -import type RegionalLanguageInfo from './RegionalLanguageInfo'; -import type GreetingLanguageInfo from './GreetingLanguageInfo'; -import type FormattingLocaleInfo from './FormattingLocaleInfo'; +import type CountryInfoShortModel from "./CountryInfoShortModel"; +import type TimezoneInfo from "./TimezoneInfo"; +import type RegionalLanguageInfo from "./RegionalLanguageInfo"; +import type GreetingLanguageInfo from "./GreetingLanguageInfo"; +import type FormattingLocaleInfo from "./FormattingLocaleInfo"; /** * Regional data (timezone, home country, language) of an extension/account. * The default is Company (Auto-Receptionist) settings - * */ interface RegionalSettings { - /** - */ + /** */ homeCountry?: CountryInfoShortModel; - /** - */ + /** */ timezone?: TimezoneInfo; - /** - */ + /** */ language?: RegionalLanguageInfo; - /** - */ + /** */ greetingLanguage?: GreetingLanguageInfo; - /** - */ + /** */ formattingLocale?: FormattingLocaleInfo; /** * Time format (12-hours or 24-hours). * Default: 12h */ - timeFormat?: '12h' | '24h'; + timeFormat?: "12h" | "24h"; } export default RegionalSettings; diff --git a/packages/core/src/definitions/RegistrantBaseModelWithQuestionnaire.ts b/packages/core/src/definitions/RegistrantBaseModelWithQuestionnaire.ts index e0dfce20..67fa05fa 100644 --- a/packages/core/src/definitions/RegistrantBaseModelWithQuestionnaire.ts +++ b/packages/core/src/definitions/RegistrantBaseModelWithQuestionnaire.ts @@ -1,4 +1,4 @@ -import type RegAnswerModel from './RegAnswerModel'; +import type RegAnswerModel from "./RegAnswerModel"; interface RegistrantBaseModelWithQuestionnaire { /** diff --git a/packages/core/src/definitions/RegistrantListResource.ts b/packages/core/src/definitions/RegistrantListResource.ts index e0fb1a8b..110b78f1 100644 --- a/packages/core/src/definitions/RegistrantListResource.ts +++ b/packages/core/src/definitions/RegistrantListResource.ts @@ -1,5 +1,5 @@ -import type RegistrantModelWithQuestionnaire from './RegistrantModelWithQuestionnaire'; -import type RcwPagingForwardModel from './RcwPagingForwardModel'; +import type RegistrantModelWithQuestionnaire from "./RegistrantModelWithQuestionnaire"; +import type RcwPagingForwardModel from "./RcwPagingForwardModel"; interface RegistrantListResource { /** diff --git a/packages/core/src/definitions/RegistrantModelResponsePostWithQuestionnaire.ts b/packages/core/src/definitions/RegistrantModelResponsePostWithQuestionnaire.ts index 32c60040..85fc3936 100644 --- a/packages/core/src/definitions/RegistrantModelResponsePostWithQuestionnaire.ts +++ b/packages/core/src/definitions/RegistrantModelResponsePostWithQuestionnaire.ts @@ -1,4 +1,4 @@ -import type RegAnswerModel from './RegAnswerModel'; +import type RegAnswerModel from "./RegAnswerModel"; interface RegistrantModelResponsePostWithQuestionnaire { /** diff --git a/packages/core/src/definitions/RegistrantModelWithQuestionnaire.ts b/packages/core/src/definitions/RegistrantModelWithQuestionnaire.ts index ca7827d0..e7e32ca7 100644 --- a/packages/core/src/definitions/RegistrantModelWithQuestionnaire.ts +++ b/packages/core/src/definitions/RegistrantModelWithQuestionnaire.ts @@ -1,4 +1,4 @@ -import type RegAnswerModel from './RegAnswerModel'; +import type RegAnswerModel from "./RegAnswerModel"; interface RegistrantModelWithQuestionnaire { /** diff --git a/packages/core/src/definitions/RemoveLineResponse.ts b/packages/core/src/definitions/RemoveLineResponse.ts index 608f3ce9..bda23b9f 100644 --- a/packages/core/src/definitions/RemoveLineResponse.ts +++ b/packages/core/src/definitions/RemoveLineResponse.ts @@ -11,18 +11,18 @@ interface RemoveLineResponse { * Default: HardPhone */ type?: - | 'HardPhone' - | 'SoftPhone' - | 'OtherPhone' - | 'MobileDevice' - | 'BLA' - | 'Paging' - | 'WebPhone' - | 'WebRTC' - | 'ZoomMobile' - | 'ZoomPhone' - | 'Room' - | 'Unknown'; + | "HardPhone" + | "SoftPhone" + | "OtherPhone" + | "MobileDevice" + | "BLA" + | "Paging" + | "WebPhone" + | "WebRTC" + | "ZoomMobile" + | "ZoomPhone" + | "Room" + | "Unknown"; /** * The display name of a source device diff --git a/packages/core/src/definitions/ReplyParty.ts b/packages/core/src/definitions/ReplyParty.ts index 6ae2d892..99c95afa 100644 --- a/packages/core/src/definitions/ReplyParty.ts +++ b/packages/core/src/definitions/ReplyParty.ts @@ -1,7 +1,7 @@ -import type CallStatusInfo from './CallStatusInfo'; -import type ParkInfo from './ParkInfo'; -import type PartyInfo from './PartyInfo'; -import type OwnerInfo from './OwnerInfo'; +import type CallStatusInfo from "./CallStatusInfo"; +import type ParkInfo from "./ParkInfo"; +import type PartyInfo from "./PartyInfo"; +import type OwnerInfo from "./OwnerInfo"; interface ReplyParty { /** @@ -9,8 +9,7 @@ interface ReplyParty { */ id?: string; - /** - */ + /** */ status?: CallStatusInfo; /** @@ -23,26 +22,22 @@ interface ReplyParty { */ standAlone?: boolean; - /** - */ + /** */ park?: ParkInfo; - /** - */ + /** */ from?: PartyInfo; - /** - */ + /** */ to?: PartyInfo; - /** - */ + /** */ owner?: OwnerInfo; /** * Direction of a call */ - direction?: 'Inbound' | 'Outbound'; + direction?: "Inbound" | "Outbound"; } export default ReplyParty; diff --git a/packages/core/src/definitions/ReplyWithPattern.ts b/packages/core/src/definitions/ReplyWithPattern.ts index d2b61a49..9eb92778 100644 --- a/packages/core/src/definitions/ReplyWithPattern.ts +++ b/packages/core/src/definitions/ReplyWithPattern.ts @@ -4,14 +4,14 @@ interface ReplyWithPattern { * Example: OnMyWay */ pattern?: - | 'WillCallYouBack' - | 'CallMeBack' - | 'OnMyWay' - | 'OnTheOtherLine' - | 'WillCallYouBackLater' - | 'CallMeBackLater' - | 'InAMeeting' - | 'OnTheOtherLineNoCall'; + | "WillCallYouBack" + | "CallMeBack" + | "OnMyWay" + | "OnTheOtherLine" + | "WillCallYouBackLater" + | "CallMeBackLater" + | "InAMeeting" + | "OnTheOtherLineNoCall"; /** * Number of time units. Applicable only to WillCallYouBack, CallMeBack patterns. @@ -24,7 +24,7 @@ interface ReplyWithPattern { * Time unit name. * Example: Minute */ - timeUnit?: 'Minute' | 'Hour' | 'Day'; + timeUnit?: "Minute" | "Hour" | "Day"; } export default ReplyWithPattern; diff --git a/packages/core/src/definitions/RevokeTokenRequest.ts b/packages/core/src/definitions/RevokeTokenRequest.ts index 08c2476b..95f93d08 100644 --- a/packages/core/src/definitions/RevokeTokenRequest.ts +++ b/packages/core/src/definitions/RevokeTokenRequest.ts @@ -10,7 +10,8 @@ interface RevokeTokenRequest { * as defined by [RFC-7523](https://datatracker.ietf.org/doc/html/rfc7523#section-2.2). * This parameter is mandatory if the client authentication is required and a client decided to use one of these authentication types */ - client_assertion_type?: 'urn:ietf:params:oauth:client-assertion-type:jwt-bearer'; + client_assertion_type?: + "urn:ietf:params:oauth:client-assertion-type:jwt-bearer"; /** * Client assertion (JWT) for the `client_secret_jwt` or `private_key_jwt` client authentication types, diff --git a/packages/core/src/definitions/RingOutStatusInfo.ts b/packages/core/src/definitions/RingOutStatusInfo.ts index 4c6d501a..0e706293 100644 --- a/packages/core/src/definitions/RingOutStatusInfo.ts +++ b/packages/core/src/definitions/RingOutStatusInfo.ts @@ -6,52 +6,52 @@ interface RingOutStatusInfo { * Status of a call */ callStatus?: - | 'Invalid' - | 'Success' - | 'InProgress' - | 'Busy' - | 'NoAnswer' - | 'Rejected' - | 'GenericError' - | 'Finished' - | 'InternationalDisabled' - | 'DestinationBlocked' - | 'NotEnoughFunds' - | 'NoSuchUser'; + | "Invalid" + | "Success" + | "InProgress" + | "Busy" + | "NoAnswer" + | "Rejected" + | "GenericError" + | "Finished" + | "InternationalDisabled" + | "DestinationBlocked" + | "NotEnoughFunds" + | "NoSuchUser"; /** * Status of a calling party */ callerStatus?: - | 'Invalid' - | 'Success' - | 'InProgress' - | 'Busy' - | 'NoAnswer' - | 'Rejected' - | 'GenericError' - | 'Finished' - | 'InternationalDisabled' - | 'DestinationBlocked' - | 'NotEnoughFunds' - | 'NoSuchUser'; + | "Invalid" + | "Success" + | "InProgress" + | "Busy" + | "NoAnswer" + | "Rejected" + | "GenericError" + | "Finished" + | "InternationalDisabled" + | "DestinationBlocked" + | "NotEnoughFunds" + | "NoSuchUser"; /** * Status of a called party */ calleeStatus?: - | 'Invalid' - | 'Success' - | 'InProgress' - | 'Busy' - | 'NoAnswer' - | 'Rejected' - | 'GenericError' - | 'Finished' - | 'InternationalDisabled' - | 'DestinationBlocked' - | 'NotEnoughFunds' - | 'NoSuchUser'; + | "Invalid" + | "Success" + | "InProgress" + | "Busy" + | "NoAnswer" + | "Rejected" + | "GenericError" + | "Finished" + | "InternationalDisabled" + | "DestinationBlocked" + | "NotEnoughFunds" + | "NoSuchUser"; } export default RingOutStatusInfo; diff --git a/packages/core/src/definitions/RoleIdResource.ts b/packages/core/src/definitions/RoleIdResource.ts index 031782c1..12c1bf3d 100644 --- a/packages/core/src/definitions/RoleIdResource.ts +++ b/packages/core/src/definitions/RoleIdResource.ts @@ -4,8 +4,7 @@ interface RoleIdResource { */ uri?: string; - /** - */ + /** */ id?: string; } diff --git a/packages/core/src/definitions/RoleResource.ts b/packages/core/src/definitions/RoleResource.ts index 70a88a9c..c526bf0e 100644 --- a/packages/core/src/definitions/RoleResource.ts +++ b/packages/core/src/definitions/RoleResource.ts @@ -1,4 +1,4 @@ -import type PermissionIdResource from './PermissionIdResource'; +import type PermissionIdResource from "./PermissionIdResource"; interface RoleResource { /** @@ -38,17 +38,16 @@ interface RoleResource { * Specifies resource for permission */ scope?: - | 'Account' - | 'AllExtensions' - | 'Federation' - | 'Group' - | 'NonUserExtensions' - | 'RoleBased' - | 'Self' - | 'UserExtensions'; - - /** - */ + | "Account" + | "AllExtensions" + | "Federation" + | "Group" + | "NonUserExtensions" + | "RoleBased" + | "Self" + | "UserExtensions"; + + /** */ hidden?: boolean; /** @@ -56,8 +55,7 @@ interface RoleResource { */ lastUpdated?: string; - /** - */ + /** */ permissions?: PermissionIdResource[]; } diff --git a/packages/core/src/definitions/Roles.ts b/packages/core/src/definitions/Roles.ts index f9d7867e..577be912 100644 --- a/packages/core/src/definitions/Roles.ts +++ b/packages/core/src/definitions/Roles.ts @@ -10,20 +10,16 @@ interface Roles { */ id?: string; - /** - */ + /** */ autoAssigned?: boolean; - /** - */ + /** */ displayName?: string; - /** - */ + /** */ siteCompatible?: boolean; - /** - */ + /** */ siteRestricted?: boolean; } diff --git a/packages/core/src/definitions/RolesBusinessSiteResource.ts b/packages/core/src/definitions/RolesBusinessSiteResource.ts index faff7f44..08148443 100644 --- a/packages/core/src/definitions/RolesBusinessSiteResource.ts +++ b/packages/core/src/definitions/RolesBusinessSiteResource.ts @@ -1,6 +1,6 @@ -import type BasicExtensionInfoResource from './BasicExtensionInfoResource'; -import type RolesRegionalSettingsResource from './RolesRegionalSettingsResource'; -import type ContactAddressInfoResource from './ContactAddressInfoResource'; +import type BasicExtensionInfoResource from "./BasicExtensionInfoResource"; +import type RolesRegionalSettingsResource from "./RolesRegionalSettingsResource"; +import type ContactAddressInfoResource from "./ContactAddressInfoResource"; interface RolesBusinessSiteResource { /** @@ -18,32 +18,25 @@ interface RolesBusinessSiteResource { */ email?: string; - /** - */ + /** */ code?: string; - /** - */ + /** */ name?: string; - /** - */ + /** */ extensionNumber?: string; - /** - */ + /** */ callerIdName?: string; - /** - */ + /** */ operator?: BasicExtensionInfoResource; - /** - */ + /** */ regionalSettings?: RolesRegionalSettingsResource; - /** - */ + /** */ businessAddress?: ContactAddressInfoResource; } diff --git a/packages/core/src/definitions/RolesCollectionResource.ts b/packages/core/src/definitions/RolesCollectionResource.ts index 0a4dd768..96f58f62 100644 --- a/packages/core/src/definitions/RolesCollectionResource.ts +++ b/packages/core/src/definitions/RolesCollectionResource.ts @@ -1,6 +1,6 @@ -import type RoleResource from './RoleResource'; -import type EnumeratedPagingModel from './EnumeratedPagingModel'; -import type PageNavigationModel from './PageNavigationModel'; +import type RoleResource from "./RoleResource"; +import type EnumeratedPagingModel from "./EnumeratedPagingModel"; +import type PageNavigationModel from "./PageNavigationModel"; interface RolesCollectionResource { /** @@ -8,16 +8,13 @@ interface RolesCollectionResource { */ uri?: string; - /** - */ + /** */ records?: RoleResource[]; - /** - */ + /** */ paging?: EnumeratedPagingModel; - /** - */ + /** */ navigation?: PageNavigationModel; } diff --git a/packages/core/src/definitions/RolesCountryResource.ts b/packages/core/src/definitions/RolesCountryResource.ts index 8bf8294d..e817b934 100644 --- a/packages/core/src/definitions/RolesCountryResource.ts +++ b/packages/core/src/definitions/RolesCountryResource.ts @@ -4,12 +4,10 @@ interface RolesCountryResource { */ uri?: string; - /** - */ + /** */ id?: string; - /** - */ + /** */ name?: string; /** @@ -26,24 +24,19 @@ interface RolesCountryResource { */ callingCode?: string; - /** - */ + /** */ emergencyCalling?: boolean; - /** - */ + /** */ numberSelling?: boolean; - /** - */ + /** */ loginAllowed?: boolean; - /** - */ + /** */ freeSoftphoneLine?: boolean; - /** - */ + /** */ signupAllowed?: boolean; } diff --git a/packages/core/src/definitions/RolesLanguageResource.ts b/packages/core/src/definitions/RolesLanguageResource.ts index f642adfc..b6280af5 100644 --- a/packages/core/src/definitions/RolesLanguageResource.ts +++ b/packages/core/src/definitions/RolesLanguageResource.ts @@ -1,14 +1,11 @@ interface RolesLanguageResource { - /** - */ + /** */ id?: string; - /** - */ + /** */ name?: string; - /** - */ + /** */ localeCode?: string; } diff --git a/packages/core/src/definitions/RolesRegionalSettingsResource.ts b/packages/core/src/definitions/RolesRegionalSettingsResource.ts index 1c0ef401..cba076b3 100644 --- a/packages/core/src/definitions/RolesRegionalSettingsResource.ts +++ b/packages/core/src/definitions/RolesRegionalSettingsResource.ts @@ -1,37 +1,31 @@ -import type RolesTimezoneResource from './RolesTimezoneResource'; -import type RolesCountryResource from './RolesCountryResource'; -import type RolesLanguageResource from './RolesLanguageResource'; -import type CurrencyResource from './CurrencyResource'; +import type RolesTimezoneResource from "./RolesTimezoneResource"; +import type RolesCountryResource from "./RolesCountryResource"; +import type RolesLanguageResource from "./RolesLanguageResource"; +import type CurrencyResource from "./CurrencyResource"; interface RolesRegionalSettingsResource { - /** - */ + /** */ timezone?: RolesTimezoneResource; - /** - */ + /** */ homeCountry?: RolesCountryResource; - /** - */ + /** */ language?: RolesLanguageResource; - /** - */ + /** */ greetingLanguage?: RolesLanguageResource; - /** - */ + /** */ formattingLocale?: RolesLanguageResource; /** * Time format (12-hours or 24-hours). * Default: 12h */ - timeFormat?: '12h' | '24h'; + timeFormat?: "12h" | "24h"; - /** - */ + /** */ currency?: CurrencyResource; } diff --git a/packages/core/src/definitions/RolesTimezoneResource.ts b/packages/core/src/definitions/RolesTimezoneResource.ts index 1744a19a..f8895759 100644 --- a/packages/core/src/definitions/RolesTimezoneResource.ts +++ b/packages/core/src/definitions/RolesTimezoneResource.ts @@ -4,20 +4,16 @@ interface RolesTimezoneResource { */ uri?: string; - /** - */ + /** */ id?: string; - /** - */ + /** */ name?: string; - /** - */ + /** */ description?: string; - /** - */ + /** */ bias?: string; } diff --git a/packages/core/src/definitions/RopcTokenRequest.ts b/packages/core/src/definitions/RopcTokenRequest.ts index 488a9eff..bfa5ed30 100644 --- a/packages/core/src/definitions/RopcTokenRequest.ts +++ b/packages/core/src/definitions/RopcTokenRequest.ts @@ -1,14 +1,13 @@ /** * Token endpoint request parameters used in the "Password" (also known as "Resource Owner Password Credentials" - ROPC) * authorization flow with the `password` grant type - * */ interface RopcTokenRequest { /** * Grant type * Required */ - grant_type?: 'password'; + grant_type?: "password"; /** * For `password` grant type only. User login name: email or phone number in E.164 format diff --git a/packages/core/src/definitions/SIPInfoRequest.ts b/packages/core/src/definitions/SIPInfoRequest.ts index 746dae12..c7fa2f14 100644 --- a/packages/core/src/definitions/SIPInfoRequest.ts +++ b/packages/core/src/definitions/SIPInfoRequest.ts @@ -2,7 +2,7 @@ interface SIPInfoRequest { /** * Supported transport. SIP info will be returned for this transport if supported */ - transport?: 'UDP' | 'TCP' | 'TLS' | 'WSS'; + transport?: "UDP" | "TCP" | "TLS" | "WSS"; } export default SIPInfoRequest; diff --git a/packages/core/src/definitions/ScheduleInfo.ts b/packages/core/src/definitions/ScheduleInfo.ts index 3f3057b0..cc477014 100644 --- a/packages/core/src/definitions/ScheduleInfo.ts +++ b/packages/core/src/definitions/ScheduleInfo.ts @@ -1,12 +1,11 @@ -import type WeeklyScheduleInfo from './WeeklyScheduleInfo'; -import type RangesInfo from './RangesInfo'; +import type WeeklyScheduleInfo from "./WeeklyScheduleInfo"; +import type RangesInfo from "./RangesInfo"; /** * Schedule when an answering rule should be applied */ interface ScheduleInfo { - /** - */ + /** */ weeklyRanges?: WeeklyScheduleInfo; /** @@ -17,7 +16,7 @@ interface ScheduleInfo { /** * The user's schedule specified for business hours or after hours; it can also be set/retrieved calling the corresponding method */ - ref?: 'BusinessHours' | 'AfterHours'; + ref?: "BusinessHours" | "AfterHours"; } export default ScheduleInfo; diff --git a/packages/core/src/definitions/ScheduleInfoUserBusinessHours.ts b/packages/core/src/definitions/ScheduleInfoUserBusinessHours.ts index 167d8857..d587fda5 100644 --- a/packages/core/src/definitions/ScheduleInfoUserBusinessHours.ts +++ b/packages/core/src/definitions/ScheduleInfoUserBusinessHours.ts @@ -1,11 +1,10 @@ -import type WeeklyScheduleInfo from './WeeklyScheduleInfo'; +import type WeeklyScheduleInfo from "./WeeklyScheduleInfo"; /** * Schedule when an answering rule is applied */ interface ScheduleInfoUserBusinessHours { - /** - */ + /** */ weeklyRanges?: WeeklyScheduleInfo; } diff --git a/packages/core/src/definitions/ScheduleMeetingResponse.ts b/packages/core/src/definitions/ScheduleMeetingResponse.ts index a494d909..781f49b5 100644 --- a/packages/core/src/definitions/ScheduleMeetingResponse.ts +++ b/packages/core/src/definitions/ScheduleMeetingResponse.ts @@ -1,34 +1,26 @@ interface ScheduleMeetingResponse { - /** - */ + /** */ startHostVideo?: boolean; - /** - */ + /** */ startParticipantVideo?: boolean; - /** - */ + /** */ audioOptions?: boolean; - /** - */ + /** */ allowJoinBeforeHost?: boolean; - /** - */ + /** */ requirePasswordForSchedulingNewMeetings?: boolean; - /** - */ + /** */ requirePasswordForInstantMeetings?: boolean; - /** - */ + /** */ requirePasswordForPmiMeetings?: boolean; - /** - */ + /** */ enforceLogin?: boolean; } diff --git a/packages/core/src/definitions/ScheduleUserMeetingInfo.ts b/packages/core/src/definitions/ScheduleUserMeetingInfo.ts index 70781917..96aae58a 100644 --- a/packages/core/src/definitions/ScheduleUserMeetingInfo.ts +++ b/packages/core/src/definitions/ScheduleUserMeetingInfo.ts @@ -20,7 +20,7 @@ interface ScheduleUserMeetingInfo { /** * Determines how participants can join the audio channel of a meeting */ - audioOptions?: ('Phone' | 'ComputerAudio' | 'ThirdParty')[]; + audioOptions?: ("Phone" | "ComputerAudio" | "ThirdParty")[]; /** * Allows participants to join the meeting before the host arrives @@ -60,7 +60,7 @@ interface ScheduleUserMeetingInfo { /** * Specifies whether to require a password for meetings using Personal Meeting ID (PMI). The supported values are: 'none', 'all' and 'jbhOnly' (joined before host only) */ - requirePasswordForPmiMeetings?: 'all' | 'none' | 'jbhOnly'; + requirePasswordForPmiMeetings?: "all" | "none" | "jbhOnly"; /** * The default password for Personal Meeting ID (PMI) meetings @@ -72,8 +72,7 @@ interface ScheduleUserMeetingInfo { */ pstnPasswordProtected?: boolean; - /** - */ + /** */ muteParticipantsOnEntry?: boolean; } diff --git a/packages/core/src/definitions/ScimAuthenticationScheme.ts b/packages/core/src/definitions/ScimAuthenticationScheme.ts index dc5476dc..5603559f 100644 --- a/packages/core/src/definitions/ScimAuthenticationScheme.ts +++ b/packages/core/src/definitions/ScimAuthenticationScheme.ts @@ -1,22 +1,17 @@ interface ScimAuthenticationScheme { - /** - */ + /** */ description?: string; - /** - */ + /** */ documentationUri?: string; - /** - */ + /** */ name?: string; - /** - */ + /** */ specUri?: string; - /** - */ + /** */ primary?: boolean; } diff --git a/packages/core/src/definitions/ScimBulkSupported.ts b/packages/core/src/definitions/ScimBulkSupported.ts index 098e1ec7..3fd9c384 100644 --- a/packages/core/src/definitions/ScimBulkSupported.ts +++ b/packages/core/src/definitions/ScimBulkSupported.ts @@ -9,8 +9,7 @@ interface ScimBulkSupported { */ maxPayloadSize?: number; - /** - */ + /** */ supported?: boolean; } diff --git a/packages/core/src/definitions/ScimEmail.ts b/packages/core/src/definitions/ScimEmail.ts index 5f7b5d22..116ec70c 100644 --- a/packages/core/src/definitions/ScimEmail.ts +++ b/packages/core/src/definitions/ScimEmail.ts @@ -2,7 +2,7 @@ interface ScimEmail { /** * Required */ - type?: 'work'; + type?: "work"; /** * Required diff --git a/packages/core/src/definitions/ScimEnterpriseUser.ts b/packages/core/src/definitions/ScimEnterpriseUser.ts index 6737f337..9b47e8f9 100644 --- a/packages/core/src/definitions/ScimEnterpriseUser.ts +++ b/packages/core/src/definitions/ScimEnterpriseUser.ts @@ -1,6 +1,5 @@ interface ScimEnterpriseUser { - /** - */ + /** */ department?: string; } diff --git a/packages/core/src/definitions/ScimErrorResponse.ts b/packages/core/src/definitions/ScimErrorResponse.ts index 8963ad77..715d8311 100644 --- a/packages/core/src/definitions/ScimErrorResponse.ts +++ b/packages/core/src/definitions/ScimErrorResponse.ts @@ -4,24 +4,23 @@ interface ScimErrorResponse { */ detail?: string; - /** - */ - schemas?: 'urn:ietf:params:scim:api:messages:2.0:Error'[]; + /** */ + schemas?: "urn:ietf:params:scim:api:messages:2.0:Error"[]; /** * Bad request type when status code is 400 */ scimType?: - | 'uniqueness' - | 'tooMany' - | 'mutability' - | 'sensitive' - | 'invalidSyntax' - | 'invalidFilter' - | 'invalidPath' - | 'invalidValue' - | 'invalidVers' - | 'noTarget'; + | "uniqueness" + | "tooMany" + | "mutability" + | "sensitive" + | "invalidSyntax" + | "invalidFilter" + | "invalidPath" + | "invalidValue" + | "invalidVers" + | "noTarget"; /** * Same as HTTP status code, e.g. 400, 401, etc. diff --git a/packages/core/src/definitions/ScimFilterSupported.ts b/packages/core/src/definitions/ScimFilterSupported.ts index b1602798..68ed48d7 100644 --- a/packages/core/src/definitions/ScimFilterSupported.ts +++ b/packages/core/src/definitions/ScimFilterSupported.ts @@ -4,8 +4,7 @@ interface ScimFilterSupported { */ maxResults?: number; - /** - */ + /** */ supported?: boolean; } diff --git a/packages/core/src/definitions/ScimMeta.ts b/packages/core/src/definitions/ScimMeta.ts index acc1cb8a..806e4981 100644 --- a/packages/core/src/definitions/ScimMeta.ts +++ b/packages/core/src/definitions/ScimMeta.ts @@ -17,9 +17,8 @@ interface ScimMeta { */ location?: string; - /** - */ - resourceType?: 'User' | 'Group' | 'ResourceType' | 'Schema'; + /** */ + resourceType?: "User" | "Group" | "ResourceType" | "Schema"; } export default ScimMeta; diff --git a/packages/core/src/definitions/ScimPatchOperation.ts b/packages/core/src/definitions/ScimPatchOperation.ts index 03fa0bb4..83aa4d00 100644 --- a/packages/core/src/definitions/ScimPatchOperation.ts +++ b/packages/core/src/definitions/ScimPatchOperation.ts @@ -2,10 +2,9 @@ interface ScimPatchOperation { /** * Required */ - op?: 'add' | 'replace' | 'remove'; + op?: "add" | "replace" | "remove"; - /** - */ + /** */ path?: string; /** diff --git a/packages/core/src/definitions/ScimPhoneNumber.ts b/packages/core/src/definitions/ScimPhoneNumber.ts index ba5c789d..aa55fb69 100644 --- a/packages/core/src/definitions/ScimPhoneNumber.ts +++ b/packages/core/src/definitions/ScimPhoneNumber.ts @@ -2,7 +2,7 @@ interface ScimPhoneNumber { /** * Required */ - type?: 'work' | 'mobile' | 'other'; + type?: "work" | "mobile" | "other"; /** * Required diff --git a/packages/core/src/definitions/ScimPhoto.ts b/packages/core/src/definitions/ScimPhoto.ts index 6cb99848..ccc8158a 100644 --- a/packages/core/src/definitions/ScimPhoto.ts +++ b/packages/core/src/definitions/ScimPhoto.ts @@ -2,7 +2,7 @@ interface ScimPhoto { /** * Required */ - type?: 'photo'; + type?: "photo"; /** * Required diff --git a/packages/core/src/definitions/ScimProviderConfig.ts b/packages/core/src/definitions/ScimProviderConfig.ts index 1a121d4e..65833df5 100644 --- a/packages/core/src/definitions/ScimProviderConfig.ts +++ b/packages/core/src/definitions/ScimProviderConfig.ts @@ -1,43 +1,34 @@ -import type ScimAuthenticationScheme from './ScimAuthenticationScheme'; -import type ScimBulkSupported from './ScimBulkSupported'; -import type ScimSupported from './ScimSupported'; -import type ScimFilterSupported from './ScimFilterSupported'; +import type ScimAuthenticationScheme from "./ScimAuthenticationScheme"; +import type ScimBulkSupported from "./ScimBulkSupported"; +import type ScimSupported from "./ScimSupported"; +import type ScimFilterSupported from "./ScimFilterSupported"; interface ScimProviderConfig { - /** - */ + /** */ authenticationSchemes?: ScimAuthenticationScheme[]; - /** - */ + /** */ bulk?: ScimBulkSupported; - /** - */ + /** */ changePassword?: ScimSupported; - /** - */ + /** */ etag?: ScimSupported; - /** - */ + /** */ filter?: ScimFilterSupported; - /** - */ + /** */ patch?: ScimSupported; - /** - */ - schemas?: 'urn:ietf:params:scim:schemas:core:2.0:ServiceProviderConfig'[]; + /** */ + schemas?: "urn:ietf:params:scim:schemas:core:2.0:ServiceProviderConfig"[]; - /** - */ + /** */ sort?: ScimSupported; - /** - */ + /** */ xmlDataFormat?: ScimSupported; } diff --git a/packages/core/src/definitions/ScimResourceTypeResponse.ts b/packages/core/src/definitions/ScimResourceTypeResponse.ts index cc366ca5..c0230ce5 100644 --- a/packages/core/src/definitions/ScimResourceTypeResponse.ts +++ b/packages/core/src/definitions/ScimResourceTypeResponse.ts @@ -1,5 +1,5 @@ -import type ScimSchemaExtension from './ScimSchemaExtension'; -import type ScimMeta from './ScimMeta'; +import type ScimSchemaExtension from "./ScimSchemaExtension"; +import type ScimMeta from "./ScimMeta"; interface ScimResourceTypeResponse { /** @@ -27,14 +27,12 @@ interface ScimResourceTypeResponse { /** * Required */ - schema?: 'urn:ietf:params:scim:schemas:core:2.0:User'; + schema?: "urn:ietf:params:scim:schemas:core:2.0:User"; - /** - */ + /** */ schemaExtensions?: ScimSchemaExtension[]; - /** - */ + /** */ meta?: ScimMeta; } diff --git a/packages/core/src/definitions/ScimResourceTypeSearchResponse.ts b/packages/core/src/definitions/ScimResourceTypeSearchResponse.ts index ddd54d4c..e266adea 100644 --- a/packages/core/src/definitions/ScimResourceTypeSearchResponse.ts +++ b/packages/core/src/definitions/ScimResourceTypeSearchResponse.ts @@ -1,4 +1,4 @@ -import type ScimResourceTypeResponse from './ScimResourceTypeResponse'; +import type ScimResourceTypeResponse from "./ScimResourceTypeResponse"; interface ScimResourceTypeSearchResponse { /** @@ -11,9 +11,8 @@ interface ScimResourceTypeSearchResponse { */ itemsPerPage?: number; - /** - */ - schemas?: 'urn:ietf:params:scim:api:messages:2.0:ListResponse'[]; + /** */ + schemas?: "urn:ietf:params:scim:api:messages:2.0:ListResponse"[]; /** * Format: int64 diff --git a/packages/core/src/definitions/ScimSchemaAttribute.ts b/packages/core/src/definitions/ScimSchemaAttribute.ts index 69749f34..0857f17f 100644 --- a/packages/core/src/definitions/ScimSchemaAttribute.ts +++ b/packages/core/src/definitions/ScimSchemaAttribute.ts @@ -8,10 +8,16 @@ interface ScimSchemaAttribute { /** * Required */ - type?: 'string' | 'boolean' | 'decimal' | 'integer' | 'dateTime' | 'reference' | 'complex'; + type?: + | "string" + | "boolean" + | "decimal" + | "integer" + | "dateTime" + | "reference" + | "complex"; - /** - */ + /** */ subAttributes?: ScimSchemaAttribute[]; /** @@ -35,27 +41,26 @@ interface ScimSchemaAttribute { */ canonicalValues?: string[]; - /** - */ + /** */ caseExact?: boolean; /** * Indicates the circumstances under which the value of the attribute can be (re)defined * Required */ - mutability?: 'readOnly' | 'readWrite' | 'immutable' | 'writeOnly'; + mutability?: "readOnly" | "readWrite" | "immutable" | "writeOnly"; /** * Indicates when an attribute and associated values are returned * Required */ - returned?: 'always' | 'never' | 'default' | 'request'; + returned?: "always" | "never" | "default" | "request"; /** * Specifies how the service provider enforces uniqueness of attribute values * Required */ - uniqueness?: 'none' | 'server' | 'global'; + uniqueness?: "none" | "server" | "global"; /** * Indicates the SCIM resource types that be referenced diff --git a/packages/core/src/definitions/ScimSchemaExtension.ts b/packages/core/src/definitions/ScimSchemaExtension.ts index 40531a91..80346ef3 100644 --- a/packages/core/src/definitions/ScimSchemaExtension.ts +++ b/packages/core/src/definitions/ScimSchemaExtension.ts @@ -2,7 +2,7 @@ interface ScimSchemaExtension { /** * Required */ - schema?: 'urn:ietf:params:scim:schemas:extension:enterprise:2.0:User'; + schema?: "urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"; /** * Required diff --git a/packages/core/src/definitions/ScimSchemaResponse.ts b/packages/core/src/definitions/ScimSchemaResponse.ts index b0df12dd..eef010c9 100644 --- a/packages/core/src/definitions/ScimSchemaResponse.ts +++ b/packages/core/src/definitions/ScimSchemaResponse.ts @@ -1,5 +1,5 @@ -import type ScimSchemaAttribute from './ScimSchemaAttribute'; -import type ScimMeta from './ScimMeta'; +import type ScimSchemaAttribute from "./ScimSchemaAttribute"; +import type ScimMeta from "./ScimMeta"; interface ScimSchemaResponse { /** @@ -18,12 +18,10 @@ interface ScimSchemaResponse { */ description?: string; - /** - */ + /** */ attributes?: ScimSchemaAttribute[]; - /** - */ + /** */ meta?: ScimMeta; } diff --git a/packages/core/src/definitions/ScimSchemaSearchResponse.ts b/packages/core/src/definitions/ScimSchemaSearchResponse.ts index 088fbb68..983d79ce 100644 --- a/packages/core/src/definitions/ScimSchemaSearchResponse.ts +++ b/packages/core/src/definitions/ScimSchemaSearchResponse.ts @@ -1,4 +1,4 @@ -import type ScimSchemaResponse from './ScimSchemaResponse'; +import type ScimSchemaResponse from "./ScimSchemaResponse"; interface ScimSchemaSearchResponse { /** @@ -11,9 +11,8 @@ interface ScimSchemaSearchResponse { */ itemsPerPage?: number; - /** - */ - schemas?: 'urn:ietf:params:scim:api:messages:2.0:ListResponse'[]; + /** */ + schemas?: "urn:ietf:params:scim:api:messages:2.0:ListResponse"[]; /** * Format: int64 diff --git a/packages/core/src/definitions/ScimSearchRequest.ts b/packages/core/src/definitions/ScimSearchRequest.ts index 1f8df6f2..3f40c460 100644 --- a/packages/core/src/definitions/ScimSearchRequest.ts +++ b/packages/core/src/definitions/ScimSearchRequest.ts @@ -10,9 +10,8 @@ interface ScimSearchRequest { */ filter?: string; - /** - */ - schemas?: 'urn:ietf:params:scim:api:messages:2.0:SearchRequest'[]; + /** */ + schemas?: "urn:ietf:params:scim:api:messages:2.0:SearchRequest"[]; /** * Start index (1-based) diff --git a/packages/core/src/definitions/ScimSupported.ts b/packages/core/src/definitions/ScimSupported.ts index 82faa9d4..4bdc9abf 100644 --- a/packages/core/src/definitions/ScimSupported.ts +++ b/packages/core/src/definitions/ScimSupported.ts @@ -1,6 +1,5 @@ interface ScimSupported { - /** - */ + /** */ supported?: boolean; } diff --git a/packages/core/src/definitions/ScimUser.ts b/packages/core/src/definitions/ScimUser.ts index fed0a502..9543c7d7 100644 --- a/packages/core/src/definitions/ScimUser.ts +++ b/packages/core/src/definitions/ScimUser.ts @@ -1,9 +1,9 @@ -import type ScimUserAddress from './ScimUserAddress'; -import type ScimEmail from './ScimEmail'; -import type ScimName from './ScimName'; -import type ScimPhoneNumber from './ScimPhoneNumber'; -import type ScimPhoto from './ScimPhoto'; -import type ScimEnterpriseUser from './ScimEnterpriseUser'; +import type ScimUserAddress from "./ScimUserAddress"; +import type ScimEmail from "./ScimEmail"; +import type ScimName from "./ScimName"; +import type ScimPhoneNumber from "./ScimPhoneNumber"; +import type ScimPhoto from "./ScimPhoto"; +import type ScimEnterpriseUser from "./ScimEnterpriseUser"; interface ScimUser { /** @@ -11,8 +11,7 @@ interface ScimUser { */ active?: boolean; - /** - */ + /** */ addresses?: ScimUserAddress[]; /** @@ -35,27 +34,25 @@ interface ScimUser { */ name?: ScimName; - /** - */ + /** */ phoneNumbers?: ScimPhoneNumber[]; - /** - */ + /** */ photos?: ScimPhoto[]; /** * Required */ - schemas?: 'urn:ietf:params:scim:schemas:core:2.0:User'[]; + schemas?: "urn:ietf:params:scim:schemas:core:2.0:User"[]; /** * User title */ title?: string; - /** - */ - 'urn:ietf:params:scim:schemas:extension:enterprise:2.0:User'?: ScimEnterpriseUser; + /** */ + "urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"?: + ScimEnterpriseUser; /** * MUST be same as work type email address diff --git a/packages/core/src/definitions/ScimUserAddress.ts b/packages/core/src/definitions/ScimUserAddress.ts index a56d588f..a6c66cab 100644 --- a/packages/core/src/definitions/ScimUserAddress.ts +++ b/packages/core/src/definitions/ScimUserAddress.ts @@ -1,28 +1,23 @@ interface ScimUserAddress { - /** - */ + /** */ country?: string; - /** - */ + /** */ locality?: string; - /** - */ + /** */ postalCode?: string; - /** - */ + /** */ region?: string; - /** - */ + /** */ streetAddress?: string; /** * Required */ - type?: 'work'; + type?: "work"; } export default ScimUserAddress; diff --git a/packages/core/src/definitions/ScimUserPatch.ts b/packages/core/src/definitions/ScimUserPatch.ts index 9aef9b25..63098da1 100644 --- a/packages/core/src/definitions/ScimUserPatch.ts +++ b/packages/core/src/definitions/ScimUserPatch.ts @@ -1,4 +1,4 @@ -import type ScimPatchOperation from './ScimPatchOperation'; +import type ScimPatchOperation from "./ScimPatchOperation"; interface ScimUserPatch { /** @@ -10,7 +10,7 @@ interface ScimUserPatch { /** * Required */ - schemas?: 'urn:ietf:params:scim:api:messages:2.0:PatchOp'[]; + schemas?: "urn:ietf:params:scim:api:messages:2.0:PatchOp"[]; } export default ScimUserPatch; diff --git a/packages/core/src/definitions/ScimUserResponse.ts b/packages/core/src/definitions/ScimUserResponse.ts index 5e10c641..0a877cdc 100644 --- a/packages/core/src/definitions/ScimUserResponse.ts +++ b/packages/core/src/definitions/ScimUserResponse.ts @@ -1,10 +1,10 @@ -import type ScimUserAddress from './ScimUserAddress'; -import type ScimEmail from './ScimEmail'; -import type ScimName from './ScimName'; -import type ScimPhoneNumber from './ScimPhoneNumber'; -import type ScimPhoto from './ScimPhoto'; -import type ScimEnterpriseUser from './ScimEnterpriseUser'; -import type ScimMeta from './ScimMeta'; +import type ScimUserAddress from "./ScimUserAddress"; +import type ScimEmail from "./ScimEmail"; +import type ScimName from "./ScimName"; +import type ScimPhoneNumber from "./ScimPhoneNumber"; +import type ScimPhoto from "./ScimPhoto"; +import type ScimEnterpriseUser from "./ScimEnterpriseUser"; +import type ScimMeta from "./ScimMeta"; interface ScimUserResponse { /** @@ -12,8 +12,7 @@ interface ScimUserResponse { */ active?: boolean; - /** - */ + /** */ addresses?: ScimUserAddress[]; /** @@ -36,27 +35,25 @@ interface ScimUserResponse { */ name?: ScimName; - /** - */ + /** */ phoneNumbers?: ScimPhoneNumber[]; - /** - */ + /** */ photos?: ScimPhoto[]; /** * Required */ - schemas?: 'urn:ietf:params:scim:schemas:core:2.0:User'[]; + schemas?: "urn:ietf:params:scim:schemas:core:2.0:User"[]; /** * User title */ title?: string; - /** - */ - 'urn:ietf:params:scim:schemas:extension:enterprise:2.0:User'?: ScimEnterpriseUser; + /** */ + "urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"?: + ScimEnterpriseUser; /** * MUST be same as work type email address @@ -64,8 +61,7 @@ interface ScimUserResponse { */ userName?: string; - /** - */ + /** */ meta?: ScimMeta; } diff --git a/packages/core/src/definitions/ScimUserSearchResponse.ts b/packages/core/src/definitions/ScimUserSearchResponse.ts index fae47993..b737216a 100644 --- a/packages/core/src/definitions/ScimUserSearchResponse.ts +++ b/packages/core/src/definitions/ScimUserSearchResponse.ts @@ -1,4 +1,4 @@ -import type ScimUserShortInfo from './ScimUserShortInfo'; +import type ScimUserShortInfo from "./ScimUserShortInfo"; interface ScimUserSearchResponse { /** @@ -11,9 +11,8 @@ interface ScimUserSearchResponse { */ itemsPerPage?: number; - /** - */ - schemas?: 'urn:ietf:params:scim:api:messages:2.0:ListResponse'[]; + /** */ + schemas?: "urn:ietf:params:scim:api:messages:2.0:ListResponse"[]; /** * Format: int64 diff --git a/packages/core/src/definitions/ScimUserShortInfo.ts b/packages/core/src/definitions/ScimUserShortInfo.ts index c92a7f68..2101c134 100644 --- a/packages/core/src/definitions/ScimUserShortInfo.ts +++ b/packages/core/src/definitions/ScimUserShortInfo.ts @@ -1,8 +1,8 @@ -import type ScimEmail from './ScimEmail'; -import type ScimName from './ScimName'; -import type ScimPhoto from './ScimPhoto'; -import type ScimEnterpriseUser from './ScimEnterpriseUser'; -import type ScimMeta from './ScimMeta'; +import type ScimEmail from "./ScimEmail"; +import type ScimName from "./ScimName"; +import type ScimPhoto from "./ScimPhoto"; +import type ScimEnterpriseUser from "./ScimEnterpriseUser"; +import type ScimMeta from "./ScimMeta"; interface ScimUserShortInfo { /** @@ -30,23 +30,22 @@ interface ScimUserShortInfo { */ name?: ScimName; - /** - */ + /** */ photos?: ScimPhoto[]; /** * Required */ - schemas?: 'urn:ietf:params:scim:schemas:core:2.0:User'[]; + schemas?: "urn:ietf:params:scim:schemas:core:2.0:User"[]; /** * User title */ title?: string; - /** - */ - 'urn:ietf:params:scim:schemas:extension:enterprise:2.0:User'?: ScimEnterpriseUser; + /** */ + "urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"?: + ScimEnterpriseUser; /** * MUST be same as work type email address @@ -54,8 +53,7 @@ interface ScimUserShortInfo { */ userName?: string; - /** - */ + /** */ meta?: ScimMeta; } diff --git a/packages/core/src/definitions/SearchDirectoryEntriesParameters.ts b/packages/core/src/definitions/SearchDirectoryEntriesParameters.ts index 6c726685..a705ccbf 100644 --- a/packages/core/src/definitions/SearchDirectoryEntriesParameters.ts +++ b/packages/core/src/definitions/SearchDirectoryEntriesParameters.ts @@ -37,27 +37,27 @@ interface SearchDirectoryEntriesParameters { * Example: User */ extensionType?: - | 'User' - | 'Department' - | 'Announcement' - | 'Voicemail' - | 'DigitalUser' - | 'VirtualUser' - | 'FaxUser' - | 'PagingOnly' - | 'SharedLinesGroup' - | 'IvrMenu' - | 'ApplicationExtension' - | 'ParkLocation' - | 'Limited' - | 'Bot' - | 'Site' - | 'Room' - | 'ProxyAdmin' - | 'DelegatedLinesGroup' - | 'FlexibleUser' - | 'GroupCallPickup' - | 'RoomConnector'; + | "User" + | "Department" + | "Announcement" + | "Voicemail" + | "DigitalUser" + | "VirtualUser" + | "FaxUser" + | "PagingOnly" + | "SharedLinesGroup" + | "IvrMenu" + | "ApplicationExtension" + | "ParkLocation" + | "Limited" + | "Bot" + | "Site" + | "Room" + | "ProxyAdmin" + | "DelegatedLinesGroup" + | "FlexibleUser" + | "GroupCallPickup" + | "RoomConnector"; } export default SearchDirectoryEntriesParameters; diff --git a/packages/core/src/definitions/SearchDirectoryEntriesRequest.ts b/packages/core/src/definitions/SearchDirectoryEntriesRequest.ts index 389540d9..dfb624d9 100644 --- a/packages/core/src/definitions/SearchDirectoryEntriesRequest.ts +++ b/packages/core/src/definitions/SearchDirectoryEntriesRequest.ts @@ -1,4 +1,4 @@ -import type OrderBy from './OrderBy'; +import type OrderBy from "./OrderBy"; interface SearchDirectoryEntriesRequest { /** @@ -12,14 +12,14 @@ interface SearchDirectoryEntriesRequest { * The list of field to be searched for */ searchFields?: ( - | 'firstName' - | 'lastName' - | 'extensionNumber' - | 'phoneNumber' - | 'email' - | 'jobTitle' - | 'department' - | 'customFieldValue' + | "firstName" + | "lastName" + | "extensionNumber" + | "phoneNumber" + | "email" + | "jobTitle" + | "department" + | "customFieldValue" )[]; /** @@ -37,22 +37,22 @@ interface SearchDirectoryEntriesRequest { * Example: User */ extensionType?: - | 'User' - | 'Department' - | 'Announcement' - | 'Voicemail' - | 'SharedLinesGroup' - | 'PagingOnly' - | 'ParkLocation' - | 'IvrMenu' - | 'Limited' - | 'ApplicationExtension' - | 'Site' - | 'Bot' - | 'Room' - | 'DelegatedLinesGroup' - | 'GroupCallPickup' - | 'External'; + | "User" + | "Department" + | "Announcement" + | "Voicemail" + | "SharedLinesGroup" + | "PagingOnly" + | "ParkLocation" + | "IvrMenu" + | "Limited" + | "ApplicationExtension" + | "Site" + | "Bot" + | "Room" + | "DelegatedLinesGroup" + | "GroupCallPickup" + | "External"; /** * Internal identifier of the business site to which extensions belong @@ -85,33 +85,33 @@ interface SearchDirectoryEntriesRequest { /** * Extension current state. */ - extensionStatuses?: ('Enabled' | 'Disabled' | 'NotActivated')[]; + extensionStatuses?: ("Enabled" | "Disabled" | "NotActivated")[]; /** * Types of extension to filter the contacts */ extensionTypes?: ( - | 'User' - | 'Department' - | 'Announcement' - | 'Voicemail' - | 'DigitalUser' - | 'VirtualUser' - | 'FaxUser' - | 'PagingOnly' - | 'SharedLinesGroup' - | 'IvrMenu' - | 'ApplicationExtension' - | 'ParkLocation' - | 'Limited' - | 'Bot' - | 'Site' - | 'Room' - | 'ProxyAdmin' - | 'DelegatedLinesGroup' - | 'FlexibleUser' - | 'GroupCallPickup' - | 'RoomConnector' + | "User" + | "Department" + | "Announcement" + | "Voicemail" + | "DigitalUser" + | "VirtualUser" + | "FaxUser" + | "PagingOnly" + | "SharedLinesGroup" + | "IvrMenu" + | "ApplicationExtension" + | "ParkLocation" + | "Limited" + | "Bot" + | "Site" + | "Room" + | "ProxyAdmin" + | "DelegatedLinesGroup" + | "FlexibleUser" + | "GroupCallPickup" + | "RoomConnector" )[]; /** diff --git a/packages/core/src/definitions/ServiceFeatureInfo.ts b/packages/core/src/definitions/ServiceFeatureInfo.ts index b6ca9d93..099b7b18 100644 --- a/packages/core/src/definitions/ServiceFeatureInfo.ts +++ b/packages/core/src/definitions/ServiceFeatureInfo.ts @@ -3,66 +3,66 @@ interface ServiceFeatureInfo { * Feature name */ featureName?: - | 'AccountFederation' - | 'Archiver' - | 'AutomaticCallRecordingMute' - | 'AutomaticInboundCallRecording' - | 'AutomaticOutboundCallRecording' - | 'BlockedMessageForwarding' - | 'Calendar' - | 'CallerIdControl' - | 'CallForwarding' - | 'CallPark' - | 'CallParkLocations' - | 'CallSupervision' - | 'CallSwitch' - | 'CallQualitySurvey' - | 'Conferencing' - | 'ConferencingNumber' - | 'ConfigureDelegates' - | 'DeveloperPortal' - | 'DND' - | 'DynamicConference' - | 'EmergencyAddressAutoUpdate' - | 'EmergencyCalling' - | 'EncryptionAtRest' - | 'ExternalDirectoryIntegration' - | 'Fax' - | 'FaxReceiving' - | 'FreeSoftPhoneLines' - | 'HDVoice' - | 'HipaaCompliance' - | 'Intercom' - | 'InternationalCalling' - | 'InternationalSMS' - | 'LinkedSoftphoneLines' - | 'MMS' - | 'MobileVoipEmergencyCalling' - | 'OnDemandCallRecording' - | 'Pager' - | 'PagerReceiving' - | 'Paging' - | 'PasswordAuth' - | 'PromoMessage' - | 'Reports' - | 'Presence' - | 'RCTeams' - | 'RingOut' - | 'SalesForce' - | 'SharedLines' - | 'SingleExtensionUI' - | 'SiteCodes' - | 'SMS' - | 'SMSReceiving' - | 'SoftPhoneUpdate' - | 'TelephonySessions' - | 'UserManagement' - | 'VideoConferencing' - | 'VoipCalling' - | 'VoipCallingOnMobile' - | 'Voicemail' - | 'VoicemailToText' - | 'WebPhone'; + | "AccountFederation" + | "Archiver" + | "AutomaticCallRecordingMute" + | "AutomaticInboundCallRecording" + | "AutomaticOutboundCallRecording" + | "BlockedMessageForwarding" + | "Calendar" + | "CallerIdControl" + | "CallForwarding" + | "CallPark" + | "CallParkLocations" + | "CallSupervision" + | "CallSwitch" + | "CallQualitySurvey" + | "Conferencing" + | "ConferencingNumber" + | "ConfigureDelegates" + | "DeveloperPortal" + | "DND" + | "DynamicConference" + | "EmergencyAddressAutoUpdate" + | "EmergencyCalling" + | "EncryptionAtRest" + | "ExternalDirectoryIntegration" + | "Fax" + | "FaxReceiving" + | "FreeSoftPhoneLines" + | "HDVoice" + | "HipaaCompliance" + | "Intercom" + | "InternationalCalling" + | "InternationalSMS" + | "LinkedSoftphoneLines" + | "MMS" + | "MobileVoipEmergencyCalling" + | "OnDemandCallRecording" + | "Pager" + | "PagerReceiving" + | "Paging" + | "PasswordAuth" + | "PromoMessage" + | "Reports" + | "Presence" + | "RCTeams" + | "RingOut" + | "SalesForce" + | "SharedLines" + | "SingleExtensionUI" + | "SiteCodes" + | "SMS" + | "SMSReceiving" + | "SoftPhoneUpdate" + | "TelephonySessions" + | "UserManagement" + | "VideoConferencing" + | "VoipCalling" + | "VoipCallingOnMobile" + | "Voicemail" + | "VoicemailToText" + | "WebPhone"; /** * Feature status, shows feature availability for the extension diff --git a/packages/core/src/definitions/ServiceInfo.ts b/packages/core/src/definitions/ServiceInfo.ts index c32a57d8..fa5b15a7 100644 --- a/packages/core/src/definitions/ServiceInfo.ts +++ b/packages/core/src/definitions/ServiceInfo.ts @@ -1,14 +1,13 @@ -import type BillingPlanInfo from './BillingPlanInfo'; -import type BrandInfo from './BrandInfo'; -import type ServicePlanInfo from './ServicePlanInfo'; -import type TargetServicePlanInfo from './TargetServicePlanInfo'; -import type CountryInfoShortModel from './CountryInfoShortModel'; -import type UBrandInfo from './UBrandInfo'; +import type BillingPlanInfo from "./BillingPlanInfo"; +import type BrandInfo from "./BrandInfo"; +import type ServicePlanInfo from "./ServicePlanInfo"; +import type TargetServicePlanInfo from "./TargetServicePlanInfo"; +import type CountryInfoShortModel from "./CountryInfoShortModel"; +import type UBrandInfo from "./UBrandInfo"; /** * Account service information, including brand, sub-brand, service plan and * billing plan - * */ interface ServiceInfo { /** @@ -17,28 +16,22 @@ interface ServiceInfo { */ uri?: string; - /** - */ + /** */ billingPlan?: BillingPlanInfo; - /** - */ + /** */ brand?: BrandInfo; - /** - */ + /** */ servicePlan?: ServicePlanInfo; - /** - */ + /** */ targetServicePlan?: TargetServicePlanInfo; - /** - */ + /** */ contractedCountry?: CountryInfoShortModel; - /** - */ + /** */ uBrand?: UBrandInfo; } diff --git a/packages/core/src/definitions/ServiceInfoPackage.ts b/packages/core/src/definitions/ServiceInfoPackage.ts index 3ca063dc..d1deddb1 100644 --- a/packages/core/src/definitions/ServiceInfoPackage.ts +++ b/packages/core/src/definitions/ServiceInfoPackage.ts @@ -13,7 +13,7 @@ interface ServiceInfoPackage { * Billing package version * Required */ - version?: '1'; + version?: "1"; } export default ServiceInfoPackage; diff --git a/packages/core/src/definitions/ServiceInfoV2.ts b/packages/core/src/definitions/ServiceInfoV2.ts index 2c1c2652..893568e5 100644 --- a/packages/core/src/definitions/ServiceInfoV2.ts +++ b/packages/core/src/definitions/ServiceInfoV2.ts @@ -1,8 +1,8 @@ -import type ServiceInfoPackage from './ServiceInfoPackage'; -import type ServiceInfoBrand from './ServiceInfoBrand'; -import type ServiceInfoContractedCountryId from './ServiceInfoContractedCountryId'; -import type ServiceInfoUBrand from './ServiceInfoUBrand'; -import type ServiceInfoPlanV2 from './ServiceInfoPlanV2'; +import type ServiceInfoPackage from "./ServiceInfoPackage"; +import type ServiceInfoBrand from "./ServiceInfoBrand"; +import type ServiceInfoContractedCountryId from "./ServiceInfoContractedCountryId"; +import type ServiceInfoUBrand from "./ServiceInfoUBrand"; +import type ServiceInfoPlanV2 from "./ServiceInfoPlanV2"; /** * Service Plan information (billing package, brand, etc.) @@ -13,24 +13,19 @@ interface ServiceInfoV2 { */ package?: ServiceInfoPackage; - /** - */ + /** */ partnerPackage?: ServiceInfoPackage; - /** - */ + /** */ brand?: ServiceInfoBrand; - /** - */ + /** */ contractedCountry?: ServiceInfoContractedCountryId; - /** - */ + /** */ uBrand?: ServiceInfoUBrand; - /** - */ + /** */ servicePlan?: ServiceInfoPlanV2; } diff --git a/packages/core/src/definitions/ServicePlanInfo.ts b/packages/core/src/definitions/ServicePlanInfo.ts index 929a7afb..2ff3bac8 100644 --- a/packages/core/src/definitions/ServicePlanInfo.ts +++ b/packages/core/src/definitions/ServicePlanInfo.ts @@ -17,9 +17,8 @@ interface ServicePlanInfo { */ edition?: string; - /** - */ - freemiumProductType?: 'Freyja' | 'Phoenix'; + /** */ + freemiumProductType?: "Freyja" | "Phoenix"; } export default ServicePlanInfo; diff --git a/packages/core/src/definitions/SessionBaseModel.ts b/packages/core/src/definitions/SessionBaseModel.ts index 88a0911f..9697dbe5 100644 --- a/packages/core/src/definitions/SessionBaseModel.ts +++ b/packages/core/src/definitions/SessionBaseModel.ts @@ -80,13 +80,19 @@ interface SessionBaseModel { * Webinar session status * Example: Finished */ - status?: 'Scheduled' | 'Active' | 'Finished'; + status?: "Scheduled" | "Active" | "Finished"; /** * Session runtime status (for 'Active' Sessions only). * It is omitted (or null) if the status is not Active */ - runtimeStatus?: 'Idle' | 'Practice' | 'GoingLive' | 'Live' | 'Break' | 'Debrief'; + runtimeStatus?: + | "Idle" + | "Practice" + | "GoingLive" + | "Live" + | "Break" + | "Debrief"; /** * The number of participants (of all roles) who joined the webinar diff --git a/packages/core/src/definitions/SessionGlobalListEntry.ts b/packages/core/src/definitions/SessionGlobalListEntry.ts index c9a9034e..b7a7aa97 100644 --- a/packages/core/src/definitions/SessionGlobalListEntry.ts +++ b/packages/core/src/definitions/SessionGlobalListEntry.ts @@ -1,4 +1,4 @@ -import type WcsWebinarRefModel from './WcsWebinarRefModel'; +import type WcsWebinarRefModel from "./WcsWebinarRefModel"; interface SessionGlobalListEntry { /** @@ -80,7 +80,7 @@ interface SessionGlobalListEntry { * Session status (for the purposes of Configuration service) * Example: Scheduled */ - status?: 'Scheduled' | 'Active' | 'Finished'; + status?: "Scheduled" | "Active" | "Finished"; /** * The URI to join the webinar as a host diff --git a/packages/core/src/definitions/SessionGlobalListResource.ts b/packages/core/src/definitions/SessionGlobalListResource.ts index 3db8caa5..1ce8485f 100644 --- a/packages/core/src/definitions/SessionGlobalListResource.ts +++ b/packages/core/src/definitions/SessionGlobalListResource.ts @@ -1,5 +1,5 @@ -import type SessionGlobalResource from './SessionGlobalResource'; -import type RcwPagingModel from './RcwPagingModel'; +import type SessionGlobalResource from "./SessionGlobalResource"; +import type RcwPagingModel from "./RcwPagingModel"; interface SessionGlobalListResource { /** diff --git a/packages/core/src/definitions/SessionGlobalResource.ts b/packages/core/src/definitions/SessionGlobalResource.ts index ee092236..2f476142 100644 --- a/packages/core/src/definitions/SessionGlobalResource.ts +++ b/packages/core/src/definitions/SessionGlobalResource.ts @@ -1,6 +1,6 @@ -import type WebinarRefModel from './WebinarRefModel'; -import type RecordingModel from './RecordingModel'; -import type SessionLivestreamMinimalModel from './SessionLivestreamMinimalModel'; +import type WebinarRefModel from "./WebinarRefModel"; +import type RecordingModel from "./RecordingModel"; +import type SessionLivestreamMinimalModel from "./SessionLivestreamMinimalModel"; interface SessionGlobalResource { /** @@ -109,13 +109,19 @@ interface SessionGlobalResource { * Webinar session status * Example: Finished */ - status?: 'Scheduled' | 'Active' | 'Finished'; + status?: "Scheduled" | "Active" | "Finished"; /** * Session runtime status (for 'Active' Sessions only). * It is omitted (or null) if the status is not Active */ - runtimeStatus?: 'Idle' | 'Practice' | 'GoingLive' | 'Live' | 'Break' | 'Debrief'; + runtimeStatus?: + | "Idle" + | "Practice" + | "GoingLive" + | "Live" + | "Break" + | "Debrief"; /** * The number of participants (of all roles) who joined the webinar @@ -151,8 +157,7 @@ interface SessionGlobalResource { */ videoBridgeId?: string; - /** - */ + /** */ recording?: RecordingModel; /** diff --git a/packages/core/src/definitions/SessionLivestreamListModel.ts b/packages/core/src/definitions/SessionLivestreamListModel.ts index ff1e4ea9..b892b6c6 100644 --- a/packages/core/src/definitions/SessionLivestreamListModel.ts +++ b/packages/core/src/definitions/SessionLivestreamListModel.ts @@ -1,4 +1,4 @@ -import type SessionLivestreamMinimalModel from './SessionLivestreamMinimalModel'; +import type SessionLivestreamMinimalModel from "./SessionLivestreamMinimalModel"; interface SessionLivestreamListModel { /** diff --git a/packages/core/src/definitions/SessionLivestreamMinimalModel.ts b/packages/core/src/definitions/SessionLivestreamMinimalModel.ts index 211631b1..20f8f0fd 100644 --- a/packages/core/src/definitions/SessionLivestreamMinimalModel.ts +++ b/packages/core/src/definitions/SessionLivestreamMinimalModel.ts @@ -1,4 +1,4 @@ -import type ApiError from './ApiError'; +import type ApiError from "./ApiError"; interface SessionLivestreamMinimalModel { /** @@ -23,16 +23,16 @@ interface SessionLivestreamMinimalModel { * Example: Initialized */ livestreamStatus?: - | 'Initialized' - | 'Authorized' - | 'Configured' - | 'PublishSetup' - | 'Publishing' - | 'Paused' - | 'Error' - | 'Break' - | 'Deleted' - | 'Completed'; + | "Initialized" + | "Authorized" + | "Configured" + | "PublishSetup" + | "Publishing" + | "Paused" + | "Error" + | "Break" + | "Deleted" + | "Completed"; /** * Last known state of the livestream as notified by Webinar Livestreaming Controller Service (WLCS). @@ -41,16 +41,16 @@ interface SessionLivestreamMinimalModel { * Example: Initialized */ previousLivestreamStatus?: - | 'Initialized' - | 'Authorized' - | 'Configured' - | 'PublishSetup' - | 'Publishing' - | 'Paused' - | 'Error' - | 'Break' - | 'Deleted' - | 'Completed'; + | "Initialized" + | "Authorized" + | "Configured" + | "PublishSetup" + | "Publishing" + | "Paused" + | "Error" + | "Break" + | "Deleted" + | "Completed"; /** * Time at which the session started to publish media to livestream service provider. @@ -58,8 +58,7 @@ interface SessionLivestreamMinimalModel { */ livestreamStartTime?: string; - /** - */ + /** */ error?: ApiError; } diff --git a/packages/core/src/definitions/SessionRecordingExtendedModel.ts b/packages/core/src/definitions/SessionRecordingExtendedModel.ts index fd281226..c71e9cd9 100644 --- a/packages/core/src/definitions/SessionRecordingExtendedModel.ts +++ b/packages/core/src/definitions/SessionRecordingExtendedModel.ts @@ -1,8 +1,7 @@ -import type RecordingExtendedModel from './RecordingExtendedModel'; +import type RecordingExtendedModel from "./RecordingExtendedModel"; interface SessionRecordingExtendedModel { - /** - */ + /** */ recording?: RecordingExtendedModel; } diff --git a/packages/core/src/definitions/SessionRecordingModel.ts b/packages/core/src/definitions/SessionRecordingModel.ts index 7bf445ff..ebe472c2 100644 --- a/packages/core/src/definitions/SessionRecordingModel.ts +++ b/packages/core/src/definitions/SessionRecordingModel.ts @@ -1,8 +1,7 @@ -import type RecordingModel from './RecordingModel'; +import type RecordingModel from "./RecordingModel"; interface SessionRecordingModel { - /** - */ + /** */ recording?: RecordingModel; } diff --git a/packages/core/src/definitions/SessionRefAdminModel.ts b/packages/core/src/definitions/SessionRefAdminModel.ts index 38d3f411..6699c661 100644 --- a/packages/core/src/definitions/SessionRefAdminModel.ts +++ b/packages/core/src/definitions/SessionRefAdminModel.ts @@ -1,4 +1,4 @@ -import type WebinarRefModel from './WebinarRefModel'; +import type WebinarRefModel from "./WebinarRefModel"; interface SessionRefAdminModel { /** @@ -38,8 +38,7 @@ interface SessionRefAdminModel { */ description?: string; - /** - */ + /** */ webinar?: WebinarRefModel; } diff --git a/packages/core/src/definitions/SessionRefModel.ts b/packages/core/src/definitions/SessionRefModel.ts index 33eb4356..3f87f2cd 100644 --- a/packages/core/src/definitions/SessionRefModel.ts +++ b/packages/core/src/definitions/SessionRefModel.ts @@ -1,4 +1,4 @@ -import type WebinarRefModel from './WebinarRefModel'; +import type WebinarRefModel from "./WebinarRefModel"; interface SessionRefModel { /** @@ -38,8 +38,7 @@ interface SessionRefModel { */ description?: string; - /** - */ + /** */ webinar?: WebinarRefModel; } diff --git a/packages/core/src/definitions/SessionResource.ts b/packages/core/src/definitions/SessionResource.ts index db6321e6..c945ded3 100644 --- a/packages/core/src/definitions/SessionResource.ts +++ b/packages/core/src/definitions/SessionResource.ts @@ -1,5 +1,5 @@ -import type RecordingExtendedModel from './RecordingExtendedModel'; -import type SessionLivestreamMinimalModel from './SessionLivestreamMinimalModel'; +import type RecordingExtendedModel from "./RecordingExtendedModel"; +import type SessionLivestreamMinimalModel from "./SessionLivestreamMinimalModel"; interface SessionResource { /** @@ -103,13 +103,19 @@ interface SessionResource { * Webinar session status * Example: Finished */ - status?: 'Scheduled' | 'Active' | 'Finished'; + status?: "Scheduled" | "Active" | "Finished"; /** * Session runtime status (for 'Active' Sessions only). * It is omitted (or null) if the status is not Active */ - runtimeStatus?: 'Idle' | 'Practice' | 'GoingLive' | 'Live' | 'Break' | 'Debrief'; + runtimeStatus?: + | "Idle" + | "Practice" + | "GoingLive" + | "Live" + | "Break" + | "Debrief"; /** * The number of participants (of all roles) who joined the webinar @@ -145,8 +151,7 @@ interface SessionResource { */ videoBridgeId?: string; - /** - */ + /** */ recording?: RecordingExtendedModel; /** diff --git a/packages/core/src/definitions/ShippingAddressInfo.ts b/packages/core/src/definitions/ShippingAddressInfo.ts index d0816149..079429f9 100644 --- a/packages/core/src/definitions/ShippingAddressInfo.ts +++ b/packages/core/src/definitions/ShippingAddressInfo.ts @@ -3,7 +3,6 @@ * Service Address, then can be omitted. By default, the same value as the * emergencyServiceAddress. Multiple addresses can be specified; in case * an order contains several devices, they can be delivered to different addresses - * */ interface ShippingAddressInfo { /** diff --git a/packages/core/src/definitions/ShippingInfo.ts b/packages/core/src/definitions/ShippingInfo.ts index 8e5626ae..04ce8507 100644 --- a/packages/core/src/definitions/ShippingInfo.ts +++ b/packages/core/src/definitions/ShippingInfo.ts @@ -1,11 +1,10 @@ -import type ShippingMethodInfo from './ShippingMethodInfo'; -import type ShippingAddressInfo from './ShippingAddressInfo'; +import type ShippingMethodInfo from "./ShippingMethodInfo"; +import type ShippingAddressInfo from "./ShippingAddressInfo"; /** * Shipping information, according to which devices (in case of HardPhone) * or e911 stickers (in case of SoftPhone and OtherPhone) will be delivered * to the customer - * */ interface ShippingInfo { /** @@ -14,7 +13,7 @@ interface ShippingInfo { * Finally, it is changed to `Shipped` which means that the distributor has shipped the device. * Example: Shipped */ - status?: 'Initial' | 'Accepted' | 'Shipped' | "Won't ship"; + status?: "Initial" | "Accepted" | "Shipped" | "Won't ship"; /** * Shipping carrier name. Appears only if the device status is 'Shipped' @@ -26,12 +25,10 @@ interface ShippingInfo { */ trackingNumber?: string; - /** - */ + /** */ method?: ShippingMethodInfo; - /** - */ + /** */ address?: ShippingAddressInfo; } diff --git a/packages/core/src/definitions/ShippingMethodIdModel.ts b/packages/core/src/definitions/ShippingMethodIdModel.ts index efeae3cf..67bd0b76 100644 --- a/packages/core/src/definitions/ShippingMethodIdModel.ts +++ b/packages/core/src/definitions/ShippingMethodIdModel.ts @@ -2,7 +2,6 @@ * Devices shipping method. It is required if devices are ordered. * Availability of different shipping methods depends on package * definition. - * */ interface ShippingMethodIdModel { /** @@ -13,7 +12,7 @@ interface ShippingMethodIdModel { * Required * Default: 1 */ - id?: '1' | '2' | '3'; + id?: "1" | "2" | "3"; } export default ShippingMethodIdModel; diff --git a/packages/core/src/definitions/ShippingMethodInfo.ts b/packages/core/src/definitions/ShippingMethodInfo.ts index 87ca0ae2..93b6550b 100644 --- a/packages/core/src/definitions/ShippingMethodInfo.ts +++ b/packages/core/src/definitions/ShippingMethodInfo.ts @@ -2,7 +2,6 @@ * Devices shipping method. It is required if devices are ordered. * Availability of different shipping methods depends on package * definition. - * */ interface ShippingMethodInfo { /** @@ -13,12 +12,12 @@ interface ShippingMethodInfo { * Required * Default: 1 */ - id?: '1' | '2' | '3'; + id?: "1" | "2" | "3"; /** * Method name, corresponding to the identifier */ - name?: 'Ground' | '2 Day' | 'Overnight'; + name?: "Ground" | "2 Day" | "Overnight"; } export default ShippingMethodInfo; diff --git a/packages/core/src/definitions/SignupInfoResource.ts b/packages/core/src/definitions/SignupInfoResource.ts index feb346d5..8549f2c8 100644 --- a/packages/core/src/definitions/SignupInfoResource.ts +++ b/packages/core/src/definitions/SignupInfoResource.ts @@ -2,39 +2,36 @@ * Account sign up data */ interface SignupInfoResource { - /** - */ + /** */ tosAccepted?: boolean; - /** - */ + /** */ signupState?: ( - | 'AccountCreated' - | 'BillingEntered' - | 'CreditCardApproved' - | 'AccountConfirmed' - | 'PhoneVerificationRequired' - | 'PhoneVerificationPassed' + | "AccountCreated" + | "BillingEntered" + | "CreditCardApproved" + | "AccountConfirmed" + | "PhoneVerificationRequired" + | "PhoneVerificationPassed" )[]; - /** - */ + /** */ verificationReason?: - | 'CC_Failed' - | 'Phone_Suspicious' - | 'CC_Phone_Not_Match' - | 'AVS_Not_Available' - | 'MaxMind' - | 'CC_Blacklisted' - | 'Email_Blacklisted' - | 'Phone_Blacklisted' - | 'Cookie_Blacklisted' - | 'Device_Blacklisted' - | 'IP_Blacklisted' - | 'Agent_Instance_Blacklisted' - | 'Charge_Limit' - | 'Other_Country' - | 'Unknown'; + | "CC_Failed" + | "Phone_Suspicious" + | "CC_Phone_Not_Match" + | "AVS_Not_Available" + | "MaxMind" + | "CC_Blacklisted" + | "Email_Blacklisted" + | "Phone_Blacklisted" + | "Cookie_Blacklisted" + | "Device_Blacklisted" + | "IP_Blacklisted" + | "Agent_Instance_Blacklisted" + | "Charge_Limit" + | "Other_Country" + | "Unknown"; /** * Updates 'Send Marketing Information' flag on web interface diff --git a/packages/core/src/definitions/SipData.ts b/packages/core/src/definitions/SipData.ts index d6a78c4d..d5a15b91 100644 --- a/packages/core/src/definitions/SipData.ts +++ b/packages/core/src/definitions/SipData.ts @@ -1,7 +1,6 @@ /** * SIP (Session Initiation Protocol) information. * Returned if query parameter sipData is set to 'True' - * */ interface SipData { /** diff --git a/packages/core/src/definitions/SipFlagsResponse.ts b/packages/core/src/definitions/SipFlagsResponse.ts index 21940311..f080e327 100644 --- a/packages/core/src/definitions/SipFlagsResponse.ts +++ b/packages/core/src/definitions/SipFlagsResponse.ts @@ -17,8 +17,7 @@ interface SipFlagsResponse { */ outboundCallsEnabled?: boolean; - /** - */ + /** */ dscpEnabled?: boolean; /** diff --git a/packages/core/src/definitions/SipInfoResource.ts b/packages/core/src/definitions/SipInfoResource.ts index d5819c9b..f40c7bff 100644 --- a/packages/core/src/definitions/SipInfoResource.ts +++ b/packages/core/src/definitions/SipInfoResource.ts @@ -1,4 +1,4 @@ -import type OutboundProxyInfo from './OutboundProxyInfo'; +import type OutboundProxyInfo from "./OutboundProxyInfo"; interface SipInfoResource { /** diff --git a/packages/core/src/definitions/SipInfoResponse.ts b/packages/core/src/definitions/SipInfoResponse.ts index 4f459330..18a71e67 100644 --- a/packages/core/src/definitions/SipInfoResponse.ts +++ b/packages/core/src/definitions/SipInfoResponse.ts @@ -13,7 +13,7 @@ interface SipInfoResponse { /** * Supported authorization types and their priority for clients */ - authorizationTypes?: ('SipDigest' | 'BearerToken')[]; + authorizationTypes?: ("SipDigest" | "BearerToken")[]; /** * Identifier for SIP authorization @@ -48,7 +48,7 @@ interface SipInfoResponse { /** * Preferred transport. SIP info will be returned for this transport if supported */ - transport?: 'UDP' | 'TCP' | 'TLS' | 'WSS'; + transport?: "UDP" | "TCP" | "TLS" | "WSS"; /** * For TLS transport only, Base64 encoded certificate diff --git a/packages/core/src/definitions/SipRegistrationDeviceEmergencyInfo.ts b/packages/core/src/definitions/SipRegistrationDeviceEmergencyInfo.ts index b9c1f694..eb49f702 100644 --- a/packages/core/src/definitions/SipRegistrationDeviceEmergencyInfo.ts +++ b/packages/core/src/definitions/SipRegistrationDeviceEmergencyInfo.ts @@ -1,5 +1,5 @@ -import type SipRegistrationDeviceEmergencyInfoAddress from './SipRegistrationDeviceEmergencyInfoAddress'; -import type SipRegistrationDeviceLocationInfo from './SipRegistrationDeviceLocationInfo'; +import type SipRegistrationDeviceEmergencyInfoAddress from "./SipRegistrationDeviceEmergencyInfoAddress"; +import type SipRegistrationDeviceLocationInfo from "./SipRegistrationDeviceLocationInfo"; /** * Emergency response location settings of a device @@ -10,8 +10,7 @@ interface SipRegistrationDeviceEmergencyInfo { */ address?: SipRegistrationDeviceEmergencyInfoAddress; - /** - */ + /** */ location?: SipRegistrationDeviceLocationInfo; /** @@ -22,24 +21,30 @@ interface SipRegistrationDeviceEmergencyInfo { /** * Emergency address status */ - addressStatus?: 'Valid' | 'Invalid' | 'Processing'; + addressStatus?: "Valid" | "Invalid" | "Processing"; /** * Specifies whether to return only private or only public (company) ERLs (Emergency Response Locations) */ - visibility?: 'Private' | 'Public'; + visibility?: "Private" | "Public"; /** * Resulting status of emergency address synchronization. Returned * if `syncEmergencyAddress` parameter is set to `true` */ - syncStatus?: 'Verified' | 'Updated' | 'Deleted' | 'NotRequired' | 'Unsupported' | 'Failed'; + syncStatus?: + | "Verified" + | "Updated" + | "Deleted" + | "NotRequired" + | "Unsupported" + | "Failed"; /** * Ability to register new emergency address for a phone line * using devices sharing this line or only main device (line owner) */ - addressEditableStatus?: 'MainDevice' | 'AnyDevice'; + addressEditableStatus?: "MainDevice" | "AnyDevice"; /** * Indicates if emergency address is required for the country of a phone line diff --git a/packages/core/src/definitions/SipRegistrationDeviceEmergencyInfoAddress.ts b/packages/core/src/definitions/SipRegistrationDeviceEmergencyInfoAddress.ts index 3678d0ca..06929416 100644 --- a/packages/core/src/definitions/SipRegistrationDeviceEmergencyInfoAddress.ts +++ b/packages/core/src/definitions/SipRegistrationDeviceEmergencyInfoAddress.ts @@ -1,22 +1,17 @@ interface SipRegistrationDeviceEmergencyInfoAddress { - /** - */ + /** */ street?: string; - /** - */ + /** */ street2?: string; - /** - */ + /** */ city?: string; - /** - */ + /** */ zip?: string; - /** - */ + /** */ customerName?: string; /** diff --git a/packages/core/src/definitions/SipRegistrationDeviceInfo.ts b/packages/core/src/definitions/SipRegistrationDeviceInfo.ts index 83f5f6fa..be16c210 100644 --- a/packages/core/src/definitions/SipRegistrationDeviceInfo.ts +++ b/packages/core/src/definitions/SipRegistrationDeviceInfo.ts @@ -1,10 +1,10 @@ -import type DeviceModelInfo from './DeviceModelInfo'; -import type DeviceExtensionInfo from './DeviceExtensionInfo'; -import type DeviceEmergencyServiceAddressResourceDefault from './DeviceEmergencyServiceAddressResourceDefault'; -import type SipRegistrationDeviceEmergencyInfo from './SipRegistrationDeviceEmergencyInfo'; -import type ShippingInfo from './ShippingInfo'; -import type DevicePhoneLinesInfo from './DevicePhoneLinesInfo'; -import type DeviceSiteInfo from './DeviceSiteInfo'; +import type DeviceModelInfo from "./DeviceModelInfo"; +import type DeviceExtensionInfo from "./DeviceExtensionInfo"; +import type DeviceEmergencyServiceAddressResourceDefault from "./DeviceEmergencyServiceAddressResourceDefault"; +import type SipRegistrationDeviceEmergencyInfo from "./SipRegistrationDeviceEmergencyInfo"; +import type ShippingInfo from "./ShippingInfo"; +import type DevicePhoneLinesInfo from "./DevicePhoneLinesInfo"; +import type DeviceSiteInfo from "./DeviceSiteInfo"; interface SipRegistrationDeviceInfo { /** @@ -21,7 +21,13 @@ interface SipRegistrationDeviceInfo { /** * Device type */ - type?: 'HardPhone' | 'SoftPhone' | 'OtherPhone' | 'Paging' | 'WebPhone' | 'Room'; + type?: + | "HardPhone" + | "SoftPhone" + | "OtherPhone" + | "Paging" + | "WebPhone" + | "Room"; /** * Device identification number (SKU, Stock Keeping Unit) in the format @@ -31,9 +37,8 @@ interface SipRegistrationDeviceInfo { */ sku?: string; - /** - */ - status?: 'Online' | 'Offline'; + /** */ + status?: "Online" | "Offline"; /** * Device name. Mandatory if ordering SoftPhone or OtherPhone. @@ -53,24 +58,19 @@ interface SipRegistrationDeviceInfo { */ computerName?: string; - /** - */ + /** */ model?: DeviceModelInfo; - /** - */ + /** */ extension?: DeviceExtensionInfo; - /** - */ + /** */ emergencyServiceAddress?: DeviceEmergencyServiceAddressResourceDefault; - /** - */ + /** */ emergency?: SipRegistrationDeviceEmergencyInfo; - /** - */ + /** */ shipping?: ShippingInfo; /** @@ -95,7 +95,7 @@ interface SipRegistrationDeviceInfo { * - `Guest` - device with a linked phone line; * - `None` - device without a phone line or with a specific line (free, BLA, etc.) */ - linePooling?: 'Host' | 'Guest' | 'None'; + linePooling?: "Host" | "Guest" | "None"; /** * Network location status. `true` if the device is located in @@ -105,8 +105,7 @@ interface SipRegistrationDeviceInfo { */ inCompanyNet?: boolean; - /** - */ + /** */ site?: DeviceSiteInfo; /** diff --git a/packages/core/src/definitions/Site.ts b/packages/core/src/definitions/Site.ts index d239e163..39ba4258 100644 --- a/packages/core/src/definitions/Site.ts +++ b/packages/core/src/definitions/Site.ts @@ -1,7 +1,6 @@ /** * Specifies a site that message template is associated with. Supported only if the Sites feature is enabled. * The default is `main-site` value. - * */ interface Site { /** diff --git a/packages/core/src/definitions/SiteIVRSettings.ts b/packages/core/src/definitions/SiteIVRSettings.ts index cb62f324..8d4a6f38 100644 --- a/packages/core/src/definitions/SiteIVRSettings.ts +++ b/packages/core/src/definitions/SiteIVRSettings.ts @@ -1,13 +1,11 @@ -import type SiteIVRTopMenu from './SiteIVRTopMenu'; -import type SiteIvrActions from './SiteIvrActions'; +import type SiteIVRTopMenu from "./SiteIVRTopMenu"; +import type SiteIvrActions from "./SiteIvrActions"; interface SiteIVRSettings { - /** - */ + /** */ topMenu?: SiteIVRTopMenu; - /** - */ + /** */ actions?: SiteIvrActions[]; } diff --git a/packages/core/src/definitions/SiteIVRSettingsUpdate.ts b/packages/core/src/definitions/SiteIVRSettingsUpdate.ts index fd392a3a..bcb623da 100644 --- a/packages/core/src/definitions/SiteIVRSettingsUpdate.ts +++ b/packages/core/src/definitions/SiteIVRSettingsUpdate.ts @@ -1,13 +1,11 @@ -import type SiteIVRTopMenuUpdate from './SiteIVRTopMenuUpdate'; -import type SiteIvrActionsUpdate from './SiteIvrActionsUpdate'; +import type SiteIVRTopMenuUpdate from "./SiteIVRTopMenuUpdate"; +import type SiteIvrActionsUpdate from "./SiteIvrActionsUpdate"; interface SiteIVRSettingsUpdate { - /** - */ + /** */ topMenu?: SiteIVRTopMenuUpdate; - /** - */ + /** */ actions?: SiteIvrActionsUpdate[]; } diff --git a/packages/core/src/definitions/SiteIVRTopMenu.ts b/packages/core/src/definitions/SiteIVRTopMenu.ts index a782fab0..e0616dc2 100644 --- a/packages/core/src/definitions/SiteIVRTopMenu.ts +++ b/packages/core/src/definitions/SiteIVRTopMenu.ts @@ -1,6 +1,5 @@ /** * Top IVR Menu extension. Mandatory for MultiLevel mode - * */ interface SiteIVRTopMenu { /** diff --git a/packages/core/src/definitions/SiteInfo.ts b/packages/core/src/definitions/SiteInfo.ts index 35259ae8..c6c3dff9 100644 --- a/packages/core/src/definitions/SiteInfo.ts +++ b/packages/core/src/definitions/SiteInfo.ts @@ -1,6 +1,6 @@ -import type ContactBusinessAddressInfo from './ContactBusinessAddressInfo'; -import type RegionalSettings from './RegionalSettings'; -import type OperatorInfo from './OperatorInfo'; +import type ContactBusinessAddressInfo from "./ContactBusinessAddressInfo"; +import type RegionalSettings from "./RegionalSettings"; +import type OperatorInfo from "./OperatorInfo"; interface SiteInfo { /** @@ -36,21 +36,18 @@ interface SiteInfo { */ email?: string; - /** - */ + /** */ businessAddress?: ContactBusinessAddressInfo; - /** - */ + /** */ regionalSettings?: RegionalSettings; /** * Site access status for cross-site limitation */ - siteAccess?: 'Limited' | 'Unlimited'; + siteAccess?: "Limited" | "Unlimited"; - /** - */ + /** */ operator?: OperatorInfo; /** diff --git a/packages/core/src/definitions/SiteIvrActions.ts b/packages/core/src/definitions/SiteIvrActions.ts index 78f70506..dc82d77e 100644 --- a/packages/core/src/definitions/SiteIvrActions.ts +++ b/packages/core/src/definitions/SiteIvrActions.ts @@ -1,12 +1,11 @@ -import type SiteIVRActionsExtensionInfo from './SiteIVRActionsExtensionInfo'; +import type SiteIVRActionsExtensionInfo from "./SiteIVRActionsExtensionInfo"; /** * Keys handling settings */ interface SiteIvrActions { - /** - */ - input?: 'Star' | 'Hash' | 'NoInput'; + /** */ + input?: "Star" | "Hash" | "NoInput"; /** * Key handling action: @@ -17,16 +16,15 @@ interface SiteIvrActions { * - Disconnect - end call, for NoInput only. */ action?: - | 'Repeat' - | 'ReturnToRoot' - | 'ReturnToPrevious' - | 'ReturnToTopLevelMenu' - | 'Connect' - | 'Disconnect' - | 'DoNothing'; + | "Repeat" + | "ReturnToRoot" + | "ReturnToPrevious" + | "ReturnToTopLevelMenu" + | "Connect" + | "Disconnect" + | "DoNothing"; - /** - */ + /** */ extension?: SiteIVRActionsExtensionInfo; } diff --git a/packages/core/src/definitions/SiteIvrActionsUpdate.ts b/packages/core/src/definitions/SiteIvrActionsUpdate.ts index b161184e..0c58923a 100644 --- a/packages/core/src/definitions/SiteIvrActionsUpdate.ts +++ b/packages/core/src/definitions/SiteIvrActionsUpdate.ts @@ -1,12 +1,11 @@ -import type SiteIVRActionsExtensionInfoUpdate from './SiteIVRActionsExtensionInfoUpdate'; +import type SiteIVRActionsExtensionInfoUpdate from "./SiteIVRActionsExtensionInfoUpdate"; /** * Keys handling settings */ interface SiteIvrActionsUpdate { - /** - */ - input?: 'Star' | 'Hash' | 'NoInput' | '0'; + /** */ + input?: "Star" | "Hash" | "NoInput" | "0"; /** * Key handling action: @@ -17,17 +16,16 @@ interface SiteIvrActionsUpdate { * - Disconnect - end call, for NoInput only. */ action?: - | 'Repeat' - | 'ReturnToRoot' - | 'ReturnToPrevious' - | 'ReturnToTopLevelMenu' - | 'Connect' - | 'ConnectToOperator' - | 'Disconnect' - | 'DoNothing'; + | "Repeat" + | "ReturnToRoot" + | "ReturnToPrevious" + | "ReturnToTopLevelMenu" + | "Connect" + | "ConnectToOperator" + | "Disconnect" + | "DoNothing"; - /** - */ + /** */ extension?: SiteIVRActionsExtensionInfoUpdate; } diff --git a/packages/core/src/definitions/SiteMemberInfo.ts b/packages/core/src/definitions/SiteMemberInfo.ts index 79d696e0..802a85f0 100644 --- a/packages/core/src/definitions/SiteMemberInfo.ts +++ b/packages/core/src/definitions/SiteMemberInfo.ts @@ -9,16 +9,13 @@ interface SiteMemberInfo { */ uri?: string; - /** - */ + /** */ extensionNumber?: string; - /** - */ + /** */ type?: string; - /** - */ + /** */ name?: string; } diff --git a/packages/core/src/definitions/SiteMembersList.ts b/packages/core/src/definitions/SiteMembersList.ts index 0a1d61d9..e9c48766 100644 --- a/packages/core/src/definitions/SiteMembersList.ts +++ b/packages/core/src/definitions/SiteMembersList.ts @@ -1,6 +1,6 @@ -import type SiteMemberInfo from './SiteMemberInfo'; -import type PageNavigationModel from './PageNavigationModel'; -import type EnumeratedPagingModel from './EnumeratedPagingModel'; +import type SiteMemberInfo from "./SiteMemberInfo"; +import type PageNavigationModel from "./PageNavigationModel"; +import type EnumeratedPagingModel from "./EnumeratedPagingModel"; interface SiteMembersList { /** @@ -9,16 +9,13 @@ interface SiteMembersList { */ uri?: string; - /** - */ + /** */ records?: SiteMemberInfo[]; - /** - */ + /** */ navigation?: PageNavigationModel; - /** - */ + /** */ paging?: EnumeratedPagingModel; } diff --git a/packages/core/src/definitions/SiteOperatorReference.ts b/packages/core/src/definitions/SiteOperatorReference.ts index 58e63116..789e7fbe 100644 --- a/packages/core/src/definitions/SiteOperatorReference.ts +++ b/packages/core/src/definitions/SiteOperatorReference.ts @@ -1,7 +1,6 @@ /** * Site Fax/SMS recipient (operator) reference. Multi-level IVR should * be enabled - * */ interface SiteOperatorReference { /** diff --git a/packages/core/src/definitions/SiteUpdateRequest.ts b/packages/core/src/definitions/SiteUpdateRequest.ts index 2fa64702..fb41dd5a 100644 --- a/packages/core/src/definitions/SiteUpdateRequest.ts +++ b/packages/core/src/definitions/SiteUpdateRequest.ts @@ -1,6 +1,6 @@ -import type ContactBusinessAddressInfo from './ContactBusinessAddressInfo'; -import type RegionalSettings from './RegionalSettings'; -import type OperatorInfo from './OperatorInfo'; +import type ContactBusinessAddressInfo from "./ContactBusinessAddressInfo"; +import type RegionalSettings from "./RegionalSettings"; +import type OperatorInfo from "./OperatorInfo"; interface SiteUpdateRequest { /** @@ -26,25 +26,21 @@ interface SiteUpdateRequest { */ email?: string; - /** - */ + /** */ businessAddress?: ContactBusinessAddressInfo; - /** - */ + /** */ regionalSettings?: RegionalSettings; - /** - */ + /** */ operator?: OperatorInfo; /** * Site access status for cross-site limitation */ - siteAccess?: 'Limited' | 'Unlimited'; + siteAccess?: "Limited" | "Unlimited"; - /** - */ + /** */ accessibleSiteIds?: string[]; } diff --git a/packages/core/src/definitions/SitesList.ts b/packages/core/src/definitions/SitesList.ts index f4746431..00a1a6b1 100644 --- a/packages/core/src/definitions/SitesList.ts +++ b/packages/core/src/definitions/SitesList.ts @@ -1,6 +1,6 @@ -import type SiteInfo from './SiteInfo'; -import type PageNavigationModel from './PageNavigationModel'; -import type EnumeratedPagingModel from './EnumeratedPagingModel'; +import type SiteInfo from "./SiteInfo"; +import type PageNavigationModel from "./PageNavigationModel"; +import type EnumeratedPagingModel from "./EnumeratedPagingModel"; interface SitesList { /** @@ -9,16 +9,13 @@ interface SitesList { */ uri?: string; - /** - */ + /** */ records?: SiteInfo[]; - /** - */ + /** */ navigation?: PageNavigationModel; - /** - */ + /** */ paging?: EnumeratedPagingModel; } diff --git a/packages/core/src/definitions/SpeakerIdentificationObject.ts b/packages/core/src/definitions/SpeakerIdentificationObject.ts index 459eba3d..707db5cc 100644 --- a/packages/core/src/definitions/SpeakerIdentificationObject.ts +++ b/packages/core/src/definitions/SpeakerIdentificationObject.ts @@ -1,4 +1,4 @@ -import type DiarizeSegment from './DiarizeSegment'; +import type DiarizeSegment from "./DiarizeSegment"; interface SpeakerIdentificationObject { /** diff --git a/packages/core/src/definitions/SpeakerIdentifyApiResponse.ts b/packages/core/src/definitions/SpeakerIdentifyApiResponse.ts index 5f679ece..30d41f98 100644 --- a/packages/core/src/definitions/SpeakerIdentifyApiResponse.ts +++ b/packages/core/src/definitions/SpeakerIdentifyApiResponse.ts @@ -1,12 +1,10 @@ -import type SpeakerIdentifyApiResponseResponse from './SpeakerIdentifyApiResponseResponse'; +import type SpeakerIdentifyApiResponseResponse from "./SpeakerIdentifyApiResponseResponse"; interface SpeakerIdentifyApiResponse { - /** - */ - status?: 'Success' | 'Fail'; + /** */ + status?: "Success" | "Fail"; - /** - */ + /** */ response?: SpeakerIdentifyApiResponseResponse; } diff --git a/packages/core/src/definitions/SpeakerIdentifyApiResponseResponse.ts b/packages/core/src/definitions/SpeakerIdentifyApiResponseResponse.ts index 1fe0592b..fcc8b8fa 100644 --- a/packages/core/src/definitions/SpeakerIdentifyApiResponseResponse.ts +++ b/packages/core/src/definitions/SpeakerIdentifyApiResponseResponse.ts @@ -1,8 +1,7 @@ -import type DiarizeSegment from './DiarizeSegment'; +import type DiarizeSegment from "./DiarizeSegment"; interface SpeakerIdentifyApiResponseResponse { - /** - */ + /** */ utterances?: DiarizeSegment[]; } diff --git a/packages/core/src/definitions/SpeakerInsightsObject.ts b/packages/core/src/definitions/SpeakerInsightsObject.ts index 4c8348f1..dbb76852 100644 --- a/packages/core/src/definitions/SpeakerInsightsObject.ts +++ b/packages/core/src/definitions/SpeakerInsightsObject.ts @@ -1,4 +1,4 @@ -import type SpeakerInsightsUnit from './SpeakerInsightsUnit'; +import type SpeakerInsightsUnit from "./SpeakerInsightsUnit"; interface SpeakerInsightsObject { /** @@ -7,8 +7,7 @@ interface SpeakerInsightsObject { */ speakerCount?: number; - /** - */ + /** */ insights?: SpeakerInsightsUnit[]; } diff --git a/packages/core/src/definitions/SpeakerInsightsUnit.ts b/packages/core/src/definitions/SpeakerInsightsUnit.ts index cd26decf..346a838d 100644 --- a/packages/core/src/definitions/SpeakerInsightsUnit.ts +++ b/packages/core/src/definitions/SpeakerInsightsUnit.ts @@ -1,11 +1,11 @@ -import type SpeakerInsightsValuesItems from './SpeakerInsightsValuesItems'; +import type SpeakerInsightsValuesItems from "./SpeakerInsightsValuesItems"; interface SpeakerInsightsUnit { /** * Required * Example: TalkToListenRatio */ - name?: 'Energy' | 'Pace' | 'TalkToListenRatio' | 'QuestionsAsked'; + name?: "Energy" | "Pace" | "TalkToListenRatio" | "QuestionsAsked"; /** * Required diff --git a/packages/core/src/definitions/SpecificInfo.ts b/packages/core/src/definitions/SpecificInfo.ts index 984b8e79..686208f7 100644 --- a/packages/core/src/definitions/SpecificInfo.ts +++ b/packages/core/src/definitions/SpecificInfo.ts @@ -1,4 +1,4 @@ -import type DataExportTaskContactInfo from './DataExportTaskContactInfo'; +import type DataExportTaskContactInfo from "./DataExportTaskContactInfo"; /** * Information specified in request @@ -16,8 +16,7 @@ interface SpecificInfo { */ timeTo?: string; - /** - */ + /** */ contacts?: DataExportTaskContactInfo[]; /** diff --git a/packages/core/src/definitions/SubscriptionInfo.ts b/packages/core/src/definitions/SubscriptionInfo.ts index bbe3c64f..be2a1c0f 100644 --- a/packages/core/src/definitions/SubscriptionInfo.ts +++ b/packages/core/src/definitions/SubscriptionInfo.ts @@ -1,6 +1,6 @@ -import type DisabledFilterInfo from './DisabledFilterInfo'; -import type NotificationDeliveryMode from './NotificationDeliveryMode'; -import type SubscriptionInfoBlacklistedData from './SubscriptionInfoBlacklistedData'; +import type DisabledFilterInfo from "./DisabledFilterInfo"; +import type NotificationDeliveryMode from "./NotificationDeliveryMode"; +import type SubscriptionInfoBlacklistedData from "./SubscriptionInfoBlacklistedData"; interface SubscriptionInfo { /** @@ -48,7 +48,7 @@ interface SubscriptionInfo { * Subscription status * Required */ - status?: 'Active' | 'Blacklisted'; + status?: "Active" | "Blacklisted"; /** * Subscription creation time in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) diff --git a/packages/core/src/definitions/SubscriptionListResource.ts b/packages/core/src/definitions/SubscriptionListResource.ts index 8e6722e3..66d7a0e4 100644 --- a/packages/core/src/definitions/SubscriptionListResource.ts +++ b/packages/core/src/definitions/SubscriptionListResource.ts @@ -1,4 +1,4 @@ -import type SubscriptionInfo from './SubscriptionInfo'; +import type SubscriptionInfo from "./SubscriptionInfo"; interface SubscriptionListResource { /** diff --git a/packages/core/src/definitions/SummaryApiOutput.ts b/packages/core/src/definitions/SummaryApiOutput.ts index 25a87039..dfc9ab84 100644 --- a/packages/core/src/definitions/SummaryApiOutput.ts +++ b/packages/core/src/definitions/SummaryApiOutput.ts @@ -1,12 +1,10 @@ -import type SummaryApiResponse from './SummaryApiResponse'; +import type SummaryApiResponse from "./SummaryApiResponse"; interface SummaryApiOutput { - /** - */ - status?: 'Success' | 'Fail'; + /** */ + status?: "Success" | "Fail"; - /** - */ + /** */ response?: SummaryApiResponse; } diff --git a/packages/core/src/definitions/SummaryApiResponse.ts b/packages/core/src/definitions/SummaryApiResponse.ts index 6f5bbbf0..d896a2c0 100644 --- a/packages/core/src/definitions/SummaryApiResponse.ts +++ b/packages/core/src/definitions/SummaryApiResponse.ts @@ -1,8 +1,7 @@ -import type SummaryOutputUnit from './SummaryOutputUnit'; +import type SummaryOutputUnit from "./SummaryOutputUnit"; interface SummaryApiResponse { - /** - */ + /** */ summaries?: SummaryOutputUnit[]; } diff --git a/packages/core/src/definitions/SummaryInput.ts b/packages/core/src/definitions/SummaryInput.ts index 6dcf1dac..52f83275 100644 --- a/packages/core/src/definitions/SummaryInput.ts +++ b/packages/core/src/definitions/SummaryInput.ts @@ -1,4 +1,4 @@ -import type SummaryUnit from './SummaryUnit'; +import type SummaryUnit from "./SummaryUnit"; interface SummaryInput { /** @@ -6,7 +6,12 @@ interface SummaryInput { * Required * Example: AbstractiveShort */ - summaryType?: 'Extractive' | 'AbstractiveShort' | 'AbstractiveLong' | 'AbstractiveAll' | 'All'; + summaryType?: + | "Extractive" + | "AbstractiveShort" + | "AbstractiveLong" + | "AbstractiveAll" + | "All"; /** * Required diff --git a/packages/core/src/definitions/SummaryOutput.ts b/packages/core/src/definitions/SummaryOutput.ts index 9d7a2753..000822f8 100644 --- a/packages/core/src/definitions/SummaryOutput.ts +++ b/packages/core/src/definitions/SummaryOutput.ts @@ -1,8 +1,7 @@ -import type SummaryOutputUnit from './SummaryOutputUnit'; +import type SummaryOutputUnit from "./SummaryOutputUnit"; interface SummaryOutput { - /** - */ + /** */ summaries?: SummaryOutputUnit[]; } diff --git a/packages/core/src/definitions/SummaryOutputUnit.ts b/packages/core/src/definitions/SummaryOutputUnit.ts index 9b74798c..d8f80938 100644 --- a/packages/core/src/definitions/SummaryOutputUnit.ts +++ b/packages/core/src/definitions/SummaryOutputUnit.ts @@ -1,10 +1,10 @@ -import type SummaryTimingsUnit from './SummaryTimingsUnit'; +import type SummaryTimingsUnit from "./SummaryTimingsUnit"; interface SummaryOutputUnit { /** * Example: AbstractiveShort */ - name?: 'Extractive' | 'AbstractiveLong' | 'AbstractiveShort' | 'All'; + name?: "Extractive" | "AbstractiveLong" | "AbstractiveShort" | "All"; /** * Summary output units sorted by their occurrence in the conversation diff --git a/packages/core/src/definitions/SuperviseCallSessionRequest.ts b/packages/core/src/definitions/SuperviseCallSessionRequest.ts index 57bceb29..5d0def29 100644 --- a/packages/core/src/definitions/SuperviseCallSessionRequest.ts +++ b/packages/core/src/definitions/SuperviseCallSessionRequest.ts @@ -4,7 +4,7 @@ interface SuperviseCallSessionRequest { * Required * Example: Listen */ - mode?: 'Listen'; + mode?: "Listen"; /** * Internal identifier of a supervisor's device which will be used for call session monitoring @@ -28,7 +28,7 @@ interface SuperviseCallSessionRequest { /** * Specifies session description protocol setting */ - mediaSDP?: 'sendOnly' | 'sendRecv'; + mediaSDP?: "sendOnly" | "sendRecv"; } export default SuperviseCallSessionRequest; diff --git a/packages/core/src/definitions/SuperviseCallSessionResponse.ts b/packages/core/src/definitions/SuperviseCallSessionResponse.ts index d5650063..f9c44219 100644 --- a/packages/core/src/definitions/SuperviseCallSessionResponse.ts +++ b/packages/core/src/definitions/SuperviseCallSessionResponse.ts @@ -1,20 +1,18 @@ -import type PartyInfo from './PartyInfo'; -import type OwnerInfo from './OwnerInfo'; -import type CallStatusInfo from './CallStatusInfo'; +import type PartyInfo from "./PartyInfo"; +import type OwnerInfo from "./OwnerInfo"; +import type CallStatusInfo from "./CallStatusInfo"; interface SuperviseCallSessionResponse { - /** - */ + /** */ from?: PartyInfo; - /** - */ + /** */ to?: PartyInfo; /** * Direction of a call */ - direction?: 'Outbound' | 'Inbound'; + direction?: "Outbound" | "Inbound"; /** * Internal identifier of a party that monitors a call @@ -36,8 +34,7 @@ interface SuperviseCallSessionResponse { */ muted?: boolean; - /** - */ + /** */ owner?: OwnerInfo; /** @@ -45,8 +42,7 @@ interface SuperviseCallSessionResponse { */ standAlone?: boolean; - /** - */ + /** */ status?: CallStatusInfo; } diff --git a/packages/core/src/definitions/SwitchInfo.ts b/packages/core/src/definitions/SwitchInfo.ts index b925daf2..d2657056 100644 --- a/packages/core/src/definitions/SwitchInfo.ts +++ b/packages/core/src/definitions/SwitchInfo.ts @@ -1,6 +1,6 @@ -import type SwitchSiteInfo from './SwitchSiteInfo'; -import type EmergencyAddressInfo from './EmergencyAddressInfo'; -import type EmergencyLocationInfo from './EmergencyLocationInfo'; +import type SwitchSiteInfo from "./SwitchSiteInfo"; +import type EmergencyAddressInfo from "./EmergencyAddressInfo"; +import type EmergencyLocationInfo from "./EmergencyLocationInfo"; interface SwitchInfo { /** @@ -29,16 +29,13 @@ interface SwitchInfo { */ name?: string; - /** - */ + /** */ site?: SwitchSiteInfo; - /** - */ + /** */ emergencyAddress?: EmergencyAddressInfo; - /** - */ + /** */ emergencyLocation?: EmergencyLocationInfo; } diff --git a/packages/core/src/definitions/SwitchValidated.ts b/packages/core/src/definitions/SwitchValidated.ts index a189f8e6..09941d3a 100644 --- a/packages/core/src/definitions/SwitchValidated.ts +++ b/packages/core/src/definitions/SwitchValidated.ts @@ -1,4 +1,4 @@ -import type ValidationError from './ValidationError'; +import type ValidationError from "./ValidationError"; interface SwitchValidated { /** @@ -19,10 +19,9 @@ interface SwitchValidated { /** * Validation result status */ - status?: 'Valid' | 'Invalid'; + status?: "Valid" | "Invalid"; - /** - */ + /** */ errors?: ValidationError[]; } diff --git a/packages/core/src/definitions/SwitchesList.ts b/packages/core/src/definitions/SwitchesList.ts index ca1b0486..7e431c58 100644 --- a/packages/core/src/definitions/SwitchesList.ts +++ b/packages/core/src/definitions/SwitchesList.ts @@ -1,6 +1,6 @@ -import type SwitchInfo from './SwitchInfo'; -import type PageNavigationModel from './PageNavigationModel'; -import type EnumeratedPagingModel from './EnumeratedPagingModel'; +import type SwitchInfo from "./SwitchInfo"; +import type PageNavigationModel from "./PageNavigationModel"; +import type EnumeratedPagingModel from "./EnumeratedPagingModel"; interface SwitchesList { /** @@ -8,12 +8,10 @@ interface SwitchesList { */ records?: SwitchInfo[]; - /** - */ + /** */ navigation?: PageNavigationModel; - /** - */ + /** */ paging?: EnumeratedPagingModel; } diff --git a/packages/core/src/definitions/SyncAccountCallLogParameters.ts b/packages/core/src/definitions/SyncAccountCallLogParameters.ts index 9c8135f3..79e2e426 100644 --- a/packages/core/src/definitions/SyncAccountCallLogParameters.ts +++ b/packages/core/src/definitions/SyncAccountCallLogParameters.ts @@ -6,7 +6,7 @@ interface SyncAccountCallLogParameters { * Type of call log synchronization request: full or incremental sync * Default: FSync */ - syncType?: 'FSync' | 'ISync'; + syncType?: "FSync" | "ISync"; /** * Value of syncToken property of last sync request response. Mandatory parameter for 'ISync' sync type @@ -35,13 +35,13 @@ interface SyncAccountCallLogParameters { /** * Type of calls to be returned */ - statusGroup?: ('Missed' | 'All')[]; + statusGroup?: ("Missed" | "All")[]; /** * Defines the level of details for returned call records * Default: Simple */ - view?: 'Simple' | 'Detailed'; + view?: "Simple" | "Detailed"; /** * Supported for `ISync` mode. Indicates that deleted call records should be returned @@ -60,7 +60,7 @@ interface SyncAccountCallLogParameters { * Indicates that call records with recordings of particular type should be returned. * If omitted, then calls with and without recordings are returned */ - recordingType?: 'Automatic' | 'OnDemand' | 'All'; + recordingType?: "Automatic" | "OnDemand" | "All"; } export default SyncAccountCallLogParameters; diff --git a/packages/core/src/definitions/SyncAddressBookParameters.ts b/packages/core/src/definitions/SyncAddressBookParameters.ts index 0b95c08f..f3dccd90 100644 --- a/packages/core/src/definitions/SyncAddressBookParameters.ts +++ b/packages/core/src/definitions/SyncAddressBookParameters.ts @@ -5,7 +5,7 @@ interface SyncAddressBookParameters { /** * Type of synchronization */ - syncType?: 'FSync' | 'ISync'; + syncType?: "FSync" | "ISync"; /** * Value of syncToken property of the last sync request response diff --git a/packages/core/src/definitions/SyncInfo.ts b/packages/core/src/definitions/SyncInfo.ts index cfd0ed6e..a649c6cc 100644 --- a/packages/core/src/definitions/SyncInfo.ts +++ b/packages/core/src/definitions/SyncInfo.ts @@ -1,10 +1,8 @@ interface SyncInfo { - /** - */ - syncType?: 'FSync' | 'ISync'; + /** */ + syncType?: "FSync" | "ISync"; - /** - */ + /** */ syncToken?: string; /** @@ -12,8 +10,7 @@ interface SyncInfo { */ syncTime?: string; - /** - */ + /** */ olderRecordsExist?: boolean; } diff --git a/packages/core/src/definitions/SyncInfoMessages.ts b/packages/core/src/definitions/SyncInfoMessages.ts index a126d548..92db72d0 100644 --- a/packages/core/src/definitions/SyncInfoMessages.ts +++ b/packages/core/src/definitions/SyncInfoMessages.ts @@ -7,7 +7,7 @@ interface SyncInfoMessages { * - FSync -- full sync * - ISync -- incremental sync */ - syncType?: 'FSync' | 'ISync'; + syncType?: "FSync" | "ISync"; /** * Synchronization token @@ -21,8 +21,7 @@ interface SyncInfoMessages { */ syncTime?: string; - /** - */ + /** */ olderRecordsExist?: boolean; } diff --git a/packages/core/src/definitions/SyncMessagesParameters.ts b/packages/core/src/definitions/SyncMessagesParameters.ts index 26079173..7d2eee3b 100644 --- a/packages/core/src/definitions/SyncMessagesParameters.ts +++ b/packages/core/src/definitions/SyncMessagesParameters.ts @@ -29,7 +29,7 @@ interface SyncMessagesParameters { * Direction for the resulting messages. If not specified, both * inbound and outbound messages are returned. Multiple values are accepted */ - direction?: ('Inbound' | 'Outbound')[]; + direction?: ("Inbound" | "Outbound")[]; /** * If `true`, then the latest messages per every conversation ID @@ -41,7 +41,7 @@ interface SyncMessagesParameters { * Type for the resulting messages. If not specified, all types * of messages are returned. Multiple values are accepted */ - messageType?: ('Fax' | 'SMS' | 'VoiceMail' | 'Pager')[]; + messageType?: ("Fax" | "SMS" | "VoiceMail" | "Pager")[]; /** * Limits the number of records to be returned (works in combination @@ -60,7 +60,7 @@ interface SyncMessagesParameters { * - FSync -- full sync * - ISync -- incremental sync */ - syncType?: 'FSync' | 'ISync'; + syncType?: "FSync" | "ISync"; /** * Filters voicemail messages based on the owner extension. Supported if the 'SharedVoicemail' diff --git a/packages/core/src/definitions/SyncUserCallLogParameters.ts b/packages/core/src/definitions/SyncUserCallLogParameters.ts index c21e0eb5..b2b6a60e 100644 --- a/packages/core/src/definitions/SyncUserCallLogParameters.ts +++ b/packages/core/src/definitions/SyncUserCallLogParameters.ts @@ -6,7 +6,7 @@ interface SyncUserCallLogParameters { * Type of call log synchronization request: full or incremental sync * Default: FSync */ - syncType?: 'FSync' | 'ISync'; + syncType?: "FSync" | "ISync"; /** * A `syncToken` value from the previous sync response (for `ISync` mode only, mandatory) @@ -34,13 +34,13 @@ interface SyncUserCallLogParameters { /** * Type of calls to be returned */ - statusGroup?: ('Missed' | 'All')[]; + statusGroup?: ("Missed" | "All")[]; /** * Defines the level of details for returned call records * Default: Simple */ - view?: 'Simple' | 'Detailed'; + view?: "Simple" | "Detailed"; /** * Supported for `ISync` mode. Indicates that deleted call records should be returned @@ -59,7 +59,7 @@ interface SyncUserCallLogParameters { * Indicates that call records with recordings of particular type should be returned. * If omitted, then calls with and without recordings are returned */ - recordingType?: 'Automatic' | 'OnDemand' | 'All'; + recordingType?: "Automatic" | "OnDemand" | "All"; } export default SyncUserCallLogParameters; diff --git a/packages/core/src/definitions/TMAddTeamMembersRequest.ts b/packages/core/src/definitions/TMAddTeamMembersRequest.ts index 1611a06f..4543231f 100644 --- a/packages/core/src/definitions/TMAddTeamMembersRequest.ts +++ b/packages/core/src/definitions/TMAddTeamMembersRequest.ts @@ -1,4 +1,4 @@ -import type TMAddTeamMembersRequestMembers from './TMAddTeamMembersRequestMembers'; +import type TMAddTeamMembersRequestMembers from "./TMAddTeamMembersRequestMembers"; interface TMAddTeamMembersRequest { /** diff --git a/packages/core/src/definitions/TMAttachmentFieldsInfo.ts b/packages/core/src/definitions/TMAttachmentFieldsInfo.ts index cdcd62a1..e493de01 100644 --- a/packages/core/src/definitions/TMAttachmentFieldsInfo.ts +++ b/packages/core/src/definitions/TMAttachmentFieldsInfo.ts @@ -13,7 +13,7 @@ interface TMAttachmentFieldsInfo { * Style of width span applied to a field * Default: Short */ - style?: 'Short' | 'Long'; + style?: "Short" | "Long"; } export default TMAttachmentFieldsInfo; diff --git a/packages/core/src/definitions/TMAttachmentInfo.ts b/packages/core/src/definitions/TMAttachmentInfo.ts index 78b5a7c8..d1becb79 100644 --- a/packages/core/src/definitions/TMAttachmentInfo.ts +++ b/packages/core/src/definitions/TMAttachmentInfo.ts @@ -7,7 +7,7 @@ interface TMAttachmentInfo { /** * Type of an attachment */ - type?: 'File' | 'Note' | 'Event' | 'Card'; + type?: "File" | "Note" | "Event" | "Card"; } export default TMAttachmentInfo; diff --git a/packages/core/src/definitions/TMChatInfo.ts b/packages/core/src/definitions/TMChatInfo.ts index 3b1b6005..9cb98c89 100644 --- a/packages/core/src/definitions/TMChatInfo.ts +++ b/packages/core/src/definitions/TMChatInfo.ts @@ -1,4 +1,4 @@ -import type TMChatMemberInfo from './TMChatMemberInfo'; +import type TMChatMemberInfo from "./TMChatMemberInfo"; interface TMChatInfo { /** @@ -9,7 +9,7 @@ interface TMChatInfo { /** * Type of chat */ - type?: 'Everyone' | 'Team' | 'Group' | 'Direct' | 'Personal'; + type?: "Everyone" | "Team" | "Group" | "Direct" | "Personal"; /** * For 'Team' chat type only. Team access level. @@ -29,7 +29,7 @@ interface TMChatInfo { /** * For 'Team' chat type only. Team status. */ - status?: 'Active' | 'Archived'; + status?: "Active" | "Archived"; /** * Chat creation datetime in ISO 8601 format @@ -43,8 +43,7 @@ interface TMChatInfo { */ lastModifiedTime?: string; - /** - */ + /** */ members?: TMChatMemberInfo[]; } diff --git a/packages/core/src/definitions/TMChatList.ts b/packages/core/src/definitions/TMChatList.ts index fb05a49a..e562c066 100644 --- a/packages/core/src/definitions/TMChatList.ts +++ b/packages/core/src/definitions/TMChatList.ts @@ -1,5 +1,5 @@ -import type TMChatInfo from './TMChatInfo'; -import type TMNavigationInfo from './TMNavigationInfo'; +import type TMChatInfo from "./TMChatInfo"; +import type TMNavigationInfo from "./TMNavigationInfo"; interface TMChatList { /** @@ -8,8 +8,7 @@ interface TMChatList { */ records?: TMChatInfo[]; - /** - */ + /** */ navigation?: TMNavigationInfo; } diff --git a/packages/core/src/definitions/TMChatListWithoutNavigation.ts b/packages/core/src/definitions/TMChatListWithoutNavigation.ts index c1f7e085..33eb72c6 100644 --- a/packages/core/src/definitions/TMChatListWithoutNavigation.ts +++ b/packages/core/src/definitions/TMChatListWithoutNavigation.ts @@ -1,4 +1,4 @@ -import type TMChatInfo from './TMChatInfo'; +import type TMChatInfo from "./TMChatInfo"; interface TMChatListWithoutNavigation { /** diff --git a/packages/core/src/definitions/TMCompleteTaskRequest.ts b/packages/core/src/definitions/TMCompleteTaskRequest.ts index e552ca84..9b443682 100644 --- a/packages/core/src/definitions/TMCompleteTaskRequest.ts +++ b/packages/core/src/definitions/TMCompleteTaskRequest.ts @@ -1,13 +1,12 @@ -import type TMCompleteTaskRequestAssignees from './TMCompleteTaskRequestAssignees'; +import type TMCompleteTaskRequestAssignees from "./TMCompleteTaskRequestAssignees"; interface TMCompleteTaskRequest { /** * Completeness status */ - status?: 'Incomplete' | 'Complete'; + status?: "Incomplete" | "Complete"; - /** - */ + /** */ assignees?: TMCompleteTaskRequestAssignees[]; /** diff --git a/packages/core/src/definitions/TMConversationInfo.ts b/packages/core/src/definitions/TMConversationInfo.ts index 06d92552..252675bb 100644 --- a/packages/core/src/definitions/TMConversationInfo.ts +++ b/packages/core/src/definitions/TMConversationInfo.ts @@ -1,4 +1,4 @@ -import type TMChatMemberInfo from './TMChatMemberInfo'; +import type TMChatMemberInfo from "./TMChatMemberInfo"; interface TMConversationInfo { /** @@ -9,7 +9,7 @@ interface TMConversationInfo { /** * Type of conversation */ - type?: 'Direct' | 'Personal' | 'Group'; + type?: "Direct" | "Personal" | "Group"; /** * Conversation creation datetime in ISO 8601 format @@ -23,8 +23,7 @@ interface TMConversationInfo { */ lastModifiedTime?: string; - /** - */ + /** */ members?: TMChatMemberInfo[]; } diff --git a/packages/core/src/definitions/TMConversationList.ts b/packages/core/src/definitions/TMConversationList.ts index b6fe8882..e29a0d23 100644 --- a/packages/core/src/definitions/TMConversationList.ts +++ b/packages/core/src/definitions/TMConversationList.ts @@ -1,5 +1,5 @@ -import type TMConversationInfo from './TMConversationInfo'; -import type TMNavigationInfo from './TMNavigationInfo'; +import type TMConversationInfo from "./TMConversationInfo"; +import type TMNavigationInfo from "./TMNavigationInfo"; interface TMConversationList { /** @@ -8,8 +8,7 @@ interface TMConversationList { */ records?: TMConversationInfo[]; - /** - */ + /** */ navigation?: TMNavigationInfo; } diff --git a/packages/core/src/definitions/TMCreateEventRequest.ts b/packages/core/src/definitions/TMCreateEventRequest.ts index c6616118..730fc2cb 100644 --- a/packages/core/src/definitions/TMCreateEventRequest.ts +++ b/packages/core/src/definitions/TMCreateEventRequest.ts @@ -1,4 +1,4 @@ -import type EventRecurrenceInfo from './EventRecurrenceInfo'; +import type EventRecurrenceInfo from "./EventRecurrenceInfo"; interface TMCreateEventRequest { /** @@ -36,15 +36,22 @@ interface TMCreateEventRequest { */ allDay?: boolean; - /** - */ + /** */ recurrence?: EventRecurrenceInfo; /** * Color of Event title (including its presentation in Calendar) * Default: Black */ - color?: 'Black' | 'Red' | 'Orange' | 'Yellow' | 'Green' | 'Blue' | 'Purple' | 'Magenta'; + color?: + | "Black" + | "Red" + | "Orange" + | "Yellow" + | "Green" + | "Blue" + | "Purple" + | "Magenta"; /** * Event location diff --git a/packages/core/src/definitions/TMCreatePostRequest.ts b/packages/core/src/definitions/TMCreatePostRequest.ts index 19af8c78..a7ffc9b0 100644 --- a/packages/core/src/definitions/TMCreatePostRequest.ts +++ b/packages/core/src/definitions/TMCreatePostRequest.ts @@ -1,4 +1,4 @@ -import type TMAttachmentInfo from './TMAttachmentInfo'; +import type TMAttachmentInfo from "./TMAttachmentInfo"; /** * Post data. At least one attribute should be provided (text or attachments) diff --git a/packages/core/src/definitions/TMCreateTaskRequest.ts b/packages/core/src/definitions/TMCreateTaskRequest.ts index a05b58b2..0e9fb196 100644 --- a/packages/core/src/definitions/TMCreateTaskRequest.ts +++ b/packages/core/src/definitions/TMCreateTaskRequest.ts @@ -1,6 +1,6 @@ -import type TMCreateTaskRequestAssignees from './TMCreateTaskRequestAssignees'; -import type TaskRecurrenceInfo from './TaskRecurrenceInfo'; -import type TaskAttachment from './TaskAttachment'; +import type TMCreateTaskRequestAssignees from "./TMCreateTaskRequestAssignees"; +import type TaskRecurrenceInfo from "./TaskRecurrenceInfo"; +import type TaskAttachment from "./TaskAttachment"; interface TMCreateTaskRequest { /** @@ -17,7 +17,7 @@ interface TMCreateTaskRequest { /** * Default: Simple */ - completenessCondition?: 'Simple' | 'AllAssignees' | 'Percentage'; + completenessCondition?: "Simple" | "AllAssignees" | "Percentage"; /** * Task start date in UTC time zone. @@ -34,7 +34,15 @@ interface TMCreateTaskRequest { /** * Default: Black */ - color?: 'Black' | 'Red' | 'Orange' | 'Yellow' | 'Green' | 'Blue' | 'Purple' | 'Magenta'; + color?: + | "Black" + | "Red" + | "Orange" + | "Yellow" + | "Green" + | "Blue" + | "Purple" + | "Magenta"; /** * Task section to group / search by. Max allowed length is 100 characters. @@ -46,12 +54,10 @@ interface TMCreateTaskRequest { */ description?: string; - /** - */ + /** */ recurrence?: TaskRecurrenceInfo; - /** - */ + /** */ attachments?: TaskAttachment[]; } diff --git a/packages/core/src/definitions/TMCreateTeamRequest.ts b/packages/core/src/definitions/TMCreateTeamRequest.ts index acd071e4..9c8e14a4 100644 --- a/packages/core/src/definitions/TMCreateTeamRequest.ts +++ b/packages/core/src/definitions/TMCreateTeamRequest.ts @@ -1,4 +1,4 @@ -import type TMCreateTeamRequestMembers from './TMCreateTeamRequestMembers'; +import type TMCreateTeamRequestMembers from "./TMCreateTeamRequestMembers"; interface TMCreateTeamRequest { /** diff --git a/packages/core/src/definitions/TMEventInfo.ts b/packages/core/src/definitions/TMEventInfo.ts index 253ffd72..85b270b3 100644 --- a/packages/core/src/definitions/TMEventInfo.ts +++ b/packages/core/src/definitions/TMEventInfo.ts @@ -1,4 +1,4 @@ -import type EventRecurrenceInfo from './EventRecurrenceInfo'; +import type EventRecurrenceInfo from "./EventRecurrenceInfo"; interface TMEventInfo { /** @@ -33,15 +33,22 @@ interface TMEventInfo { */ allDay?: boolean; - /** - */ + /** */ recurrence?: EventRecurrenceInfo; /** * Color of Event title (including its presentation in Calendar) * Default: Black */ - color?: 'Black' | 'Red' | 'Orange' | 'Yellow' | 'Green' | 'Blue' | 'Purple' | 'Magenta'; + color?: + | "Black" + | "Red" + | "Orange" + | "Yellow" + | "Green" + | "Blue" + | "Purple" + | "Magenta"; /** * Event location diff --git a/packages/core/src/definitions/TMEventList.ts b/packages/core/src/definitions/TMEventList.ts index f0fca518..0b0b71df 100644 --- a/packages/core/src/definitions/TMEventList.ts +++ b/packages/core/src/definitions/TMEventList.ts @@ -1,5 +1,5 @@ -import type TMEventInfo from './TMEventInfo'; -import type TMNavigationInfo from './TMNavigationInfo'; +import type TMEventInfo from "./TMEventInfo"; +import type TMNavigationInfo from "./TMNavigationInfo"; interface TMEventList { /** @@ -7,8 +7,7 @@ interface TMEventList { */ records?: TMEventInfo[]; - /** - */ + /** */ navigation?: TMNavigationInfo; } diff --git a/packages/core/src/definitions/TMMentionsInfo.ts b/packages/core/src/definitions/TMMentionsInfo.ts index cb7b89c4..473cc7f8 100644 --- a/packages/core/src/definitions/TMMentionsInfo.ts +++ b/packages/core/src/definitions/TMMentionsInfo.ts @@ -7,7 +7,15 @@ interface TMMentionsInfo { /** * Type of mention */ - type?: 'Person' | 'Team' | 'File' | 'Link' | 'Event' | 'Task' | 'Note' | 'Card'; + type?: + | "Person" + | "Team" + | "File" + | "Link" + | "Event" + | "Task" + | "Note" + | "Card"; /** * Name of a user diff --git a/packages/core/src/definitions/TMMessageAttachmentInfo.ts b/packages/core/src/definitions/TMMessageAttachmentInfo.ts index cf58c9be..6d44df21 100644 --- a/packages/core/src/definitions/TMMessageAttachmentInfo.ts +++ b/packages/core/src/definitions/TMMessageAttachmentInfo.ts @@ -1,7 +1,7 @@ -import type TMAttachmentAuthorInfo from './TMAttachmentAuthorInfo'; -import type TMAttachmentFieldsInfo from './TMAttachmentFieldsInfo'; -import type TMAttachmentFootnoteInfo from './TMAttachmentFootnoteInfo'; -import type EventRecurrenceInfo from './EventRecurrenceInfo'; +import type TMAttachmentAuthorInfo from "./TMAttachmentAuthorInfo"; +import type TMAttachmentFieldsInfo from "./TMAttachmentFieldsInfo"; +import type TMAttachmentFootnoteInfo from "./TMAttachmentFootnoteInfo"; +import type EventRecurrenceInfo from "./EventRecurrenceInfo"; interface TMMessageAttachmentInfo { /** @@ -13,7 +13,7 @@ interface TMMessageAttachmentInfo { * Type of an attachment * Default: Card */ - type?: 'Card' | 'Event' | 'File' | 'Note' | 'Task'; + type?: "Card" | "Event" | "File" | "Note" | "Task"; /** * Link to a binary content @@ -36,8 +36,7 @@ interface TMMessageAttachmentInfo { */ intro?: string; - /** - */ + /** */ author?: TMAttachmentAuthorInfo; /** @@ -67,8 +66,7 @@ interface TMMessageAttachmentInfo { */ fields?: TMAttachmentFieldsInfo[]; - /** - */ + /** */ footnote?: TMAttachmentFootnoteInfo; /** @@ -93,15 +91,22 @@ interface TMMessageAttachmentInfo { */ allDay?: boolean; - /** - */ + /** */ recurrence?: EventRecurrenceInfo; /** * Color of Event title, including its presentation in Calendar; or the color of the side border of an interactive message of a Card * Default: Black */ - color?: 'Black' | 'Red' | 'Orange' | 'Yellow' | 'Green' | 'Blue' | 'Purple' | 'Magenta'; + color?: + | "Black" + | "Red" + | "Orange" + | "Yellow" + | "Green" + | "Blue" + | "Purple" + | "Magenta"; /** * Event location diff --git a/packages/core/src/definitions/TMNoteInfo.ts b/packages/core/src/definitions/TMNoteInfo.ts index 20dfcff2..91cb56da 100644 --- a/packages/core/src/definitions/TMNoteInfo.ts +++ b/packages/core/src/definitions/TMNoteInfo.ts @@ -1,6 +1,6 @@ -import type TMCreatorInfo from './TMCreatorInfo'; -import type LastModifiedByInfo from './LastModifiedByInfo'; -import type LockedByInfo from './LockedByInfo'; +import type TMCreatorInfo from "./TMCreatorInfo"; +import type LastModifiedByInfo from "./LastModifiedByInfo"; +import type LockedByInfo from "./LockedByInfo"; interface TMNoteInfo { /** @@ -23,22 +23,19 @@ interface TMNoteInfo { */ preview?: string; - /** - */ + /** */ creator?: TMCreatorInfo; - /** - */ + /** */ lastModifiedBy?: LastModifiedByInfo; - /** - */ + /** */ lockedBy?: LockedByInfo; /** * Note publishing status. Any note is created in 'Draft' status. After it is posted it becomes 'Active' */ - status?: 'Active' | 'Draft'; + status?: "Active" | "Draft"; /** * Creation time @@ -52,9 +49,8 @@ interface TMNoteInfo { */ lastModifiedTime?: string; - /** - */ - type?: 'Note'; + /** */ + type?: "Note"; } export default TMNoteInfo; diff --git a/packages/core/src/definitions/TMNoteList.ts b/packages/core/src/definitions/TMNoteList.ts index de0e04d5..62908592 100644 --- a/packages/core/src/definitions/TMNoteList.ts +++ b/packages/core/src/definitions/TMNoteList.ts @@ -1,13 +1,11 @@ -import type TMNoteInfo from './TMNoteInfo'; -import type TMNavigationInfo from './TMNavigationInfo'; +import type TMNoteInfo from "./TMNoteInfo"; +import type TMNavigationInfo from "./TMNavigationInfo"; interface TMNoteList { - /** - */ + /** */ records?: TMNoteInfo[]; - /** - */ + /** */ navigation?: TMNavigationInfo; } diff --git a/packages/core/src/definitions/TMNoteWithBodyInfo.ts b/packages/core/src/definitions/TMNoteWithBodyInfo.ts index dc28dd85..fa814cae 100644 --- a/packages/core/src/definitions/TMNoteWithBodyInfo.ts +++ b/packages/core/src/definitions/TMNoteWithBodyInfo.ts @@ -1,6 +1,6 @@ -import type TMCreatorInfo from './TMCreatorInfo'; -import type LastModifiedByInfo from './LastModifiedByInfo'; -import type LockedByInfo from './LockedByInfo'; +import type TMCreatorInfo from "./TMCreatorInfo"; +import type LastModifiedByInfo from "./LastModifiedByInfo"; +import type LockedByInfo from "./LockedByInfo"; interface TMNoteWithBodyInfo { /** @@ -23,22 +23,19 @@ interface TMNoteWithBodyInfo { */ preview?: string; - /** - */ + /** */ creator?: TMCreatorInfo; - /** - */ + /** */ lastModifiedBy?: LastModifiedByInfo; - /** - */ + /** */ lockedBy?: LockedByInfo; /** * Note publishing status. Any note is created in 'Draft' status. After it is posted it becomes 'Active' */ - status?: 'Active' | 'Draft'; + status?: "Active" | "Draft"; /** * Creation time @@ -52,9 +49,8 @@ interface TMNoteWithBodyInfo { */ lastModifiedTime?: string; - /** - */ - type?: 'Note'; + /** */ + type?: "Note"; /** * Text of a note diff --git a/packages/core/src/definitions/TMPostInfo.ts b/packages/core/src/definitions/TMPostInfo.ts index 568a4ba2..51166391 100644 --- a/packages/core/src/definitions/TMPostInfo.ts +++ b/packages/core/src/definitions/TMPostInfo.ts @@ -1,5 +1,5 @@ -import type TMMessageAttachmentInfo from './TMMessageAttachmentInfo'; -import type TMMentionsInfo from './TMMentionsInfo'; +import type TMMessageAttachmentInfo from "./TMMessageAttachmentInfo"; +import type TMMentionsInfo from "./TMMentionsInfo"; interface TMPostInfo { /** @@ -15,7 +15,7 @@ interface TMPostInfo { /** * Type of post */ - type?: 'TextMessage' | 'PersonJoined' | 'PersonsAdded'; + type?: "TextMessage" | "PersonJoined" | "PersonsAdded"; /** * For 'TextMessage' post type only. Text of a message @@ -49,8 +49,7 @@ interface TMPostInfo { */ attachments?: TMMessageAttachmentInfo[]; - /** - */ + /** */ mentions?: TMMentionsInfo[]; /** diff --git a/packages/core/src/definitions/TMPostsList.ts b/packages/core/src/definitions/TMPostsList.ts index f182e08f..b1e11981 100644 --- a/packages/core/src/definitions/TMPostsList.ts +++ b/packages/core/src/definitions/TMPostsList.ts @@ -1,5 +1,5 @@ -import type TMPostInfo from './TMPostInfo'; -import type TMNavigationInfo from './TMNavigationInfo'; +import type TMPostInfo from "./TMPostInfo"; +import type TMNavigationInfo from "./TMNavigationInfo"; interface TMPostsList { /** @@ -8,8 +8,7 @@ interface TMPostsList { */ records?: TMPostInfo[]; - /** - */ + /** */ navigation?: TMNavigationInfo; } diff --git a/packages/core/src/definitions/TMRemoveTeamMembersRequest.ts b/packages/core/src/definitions/TMRemoveTeamMembersRequest.ts index 0e3a1d2e..60d8168f 100644 --- a/packages/core/src/definitions/TMRemoveTeamMembersRequest.ts +++ b/packages/core/src/definitions/TMRemoveTeamMembersRequest.ts @@ -1,4 +1,4 @@ -import type TMRemoveTeamMembersRequestMembers from './TMRemoveTeamMembersRequestMembers'; +import type TMRemoveTeamMembersRequestMembers from "./TMRemoveTeamMembersRequestMembers"; interface TMRemoveTeamMembersRequest { /** diff --git a/packages/core/src/definitions/TMTaskInfo.ts b/packages/core/src/definitions/TMTaskInfo.ts index 53d347b4..c140ef4a 100644 --- a/packages/core/src/definitions/TMTaskInfo.ts +++ b/packages/core/src/definitions/TMTaskInfo.ts @@ -1,7 +1,7 @@ -import type TMTaskInfoCreator from './TMTaskInfoCreator'; -import type TMTaskInfoAssignees from './TMTaskInfoAssignees'; -import type TaskRecurrenceInfo from './TaskRecurrenceInfo'; -import type TaskAttachment from './TaskAttachment'; +import type TMTaskInfoCreator from "./TMTaskInfoCreator"; +import type TMTaskInfoAssignees from "./TMTaskInfoAssignees"; +import type TaskRecurrenceInfo from "./TaskRecurrenceInfo"; +import type TaskAttachment from "./TaskAttachment"; interface TMTaskInfo { /** @@ -24,10 +24,9 @@ interface TMTaskInfo { /** * Task type */ - type?: 'Task'; + type?: "Task"; - /** - */ + /** */ creator?: TMTaskInfoCreator; /** @@ -38,7 +37,7 @@ interface TMTaskInfo { /** * Task execution status */ - status?: 'Pending' | 'InProgress' | 'Completed'; + status?: "Pending" | "InProgress" | "Completed"; /** * Task name/subject @@ -53,7 +52,7 @@ interface TMTaskInfo { /** * How the task completeness should be determined */ - completenessCondition?: 'Simple' | 'AllAssignees' | 'Percentage'; + completenessCondition?: "Simple" | "AllAssignees" | "Percentage"; /** * Current completeness percentage of the task with the specified percentage completeness condition @@ -77,7 +76,15 @@ interface TMTaskInfo { /** * Font color of a post with the current task */ - color?: 'Black' | 'Red' | 'Orange' | 'Yellow' | 'Green' | 'Blue' | 'Purple' | 'Magenta'; + color?: + | "Black" + | "Red" + | "Orange" + | "Yellow" + | "Green" + | "Blue" + | "Purple" + | "Magenta"; /** * Task section to group / search by @@ -89,12 +96,10 @@ interface TMTaskInfo { */ description?: string; - /** - */ + /** */ recurrence?: TaskRecurrenceInfo; - /** - */ + /** */ attachments?: TaskAttachment[]; } diff --git a/packages/core/src/definitions/TMTaskInfoAssignees.ts b/packages/core/src/definitions/TMTaskInfoAssignees.ts index a1978d0f..fa662a91 100644 --- a/packages/core/src/definitions/TMTaskInfoAssignees.ts +++ b/packages/core/src/definitions/TMTaskInfoAssignees.ts @@ -7,7 +7,7 @@ interface TMTaskInfoAssignees { /** * Task execution status by assignee */ - status?: 'Pending' | 'Completed'; + status?: "Pending" | "Completed"; } export default TMTaskInfoAssignees; diff --git a/packages/core/src/definitions/TMTaskList.ts b/packages/core/src/definitions/TMTaskList.ts index 76612f3f..71915ff4 100644 --- a/packages/core/src/definitions/TMTaskList.ts +++ b/packages/core/src/definitions/TMTaskList.ts @@ -1,13 +1,11 @@ -import type TMTaskInfo from './TMTaskInfo'; -import type TMNavigationInfo from './TMNavigationInfo'; +import type TMTaskInfo from "./TMTaskInfo"; +import type TMNavigationInfo from "./TMNavigationInfo"; interface TMTaskList { - /** - */ + /** */ records?: TMTaskInfo[]; - /** - */ + /** */ navigation?: TMNavigationInfo; } diff --git a/packages/core/src/definitions/TMTeamInfo.ts b/packages/core/src/definitions/TMTeamInfo.ts index d5236f9c..eb4a7143 100644 --- a/packages/core/src/definitions/TMTeamInfo.ts +++ b/packages/core/src/definitions/TMTeamInfo.ts @@ -7,7 +7,7 @@ interface TMTeamInfo { /** * Type of chat */ - type?: 'Team'; + type?: "Team"; /** * Team access level @@ -27,7 +27,7 @@ interface TMTeamInfo { /** * Team status */ - status?: 'Active' | 'Archived'; + status?: "Active" | "Archived"; /** * Team creation datetime in ISO 8601 format diff --git a/packages/core/src/definitions/TMTeamList.ts b/packages/core/src/definitions/TMTeamList.ts index 8206b7b9..f3429c3e 100644 --- a/packages/core/src/definitions/TMTeamList.ts +++ b/packages/core/src/definitions/TMTeamList.ts @@ -1,5 +1,5 @@ -import type TMTeamInfo from './TMTeamInfo'; -import type TMNavigationInfo from './TMNavigationInfo'; +import type TMTeamInfo from "./TMTeamInfo"; +import type TMNavigationInfo from "./TMNavigationInfo"; interface TMTeamList { /** @@ -8,8 +8,7 @@ interface TMTeamList { */ records?: TMTeamInfo[]; - /** - */ + /** */ navigation?: TMNavigationInfo; } diff --git a/packages/core/src/definitions/TMUpdateTaskRequest.ts b/packages/core/src/definitions/TMUpdateTaskRequest.ts index 7d129426..2358da8a 100644 --- a/packages/core/src/definitions/TMUpdateTaskRequest.ts +++ b/packages/core/src/definitions/TMUpdateTaskRequest.ts @@ -1,6 +1,6 @@ -import type TMUpdateTaskRequestAssignees from './TMUpdateTaskRequestAssignees'; -import type TaskRecurrenceInfo from './TaskRecurrenceInfo'; -import type TMAttachmentInfo from './TMAttachmentInfo'; +import type TMUpdateTaskRequestAssignees from "./TMUpdateTaskRequestAssignees"; +import type TaskRecurrenceInfo from "./TaskRecurrenceInfo"; +import type TMAttachmentInfo from "./TMAttachmentInfo"; interface TMUpdateTaskRequest { /** @@ -8,13 +8,11 @@ interface TMUpdateTaskRequest { */ subject?: string; - /** - */ + /** */ assignees?: TMUpdateTaskRequestAssignees[]; - /** - */ - completenessCondition?: 'Simple' | 'AllAssignees' | 'Percentage'; + /** */ + completenessCondition?: "Simple" | "AllAssignees" | "Percentage"; /** * Task start date in UTC time zone @@ -28,9 +26,16 @@ interface TMUpdateTaskRequest { */ dueDate?: string; - /** - */ - color?: 'Black' | 'Red' | 'Orange' | 'Yellow' | 'Green' | 'Blue' | 'Purple' | 'Magenta'; + /** */ + color?: + | "Black" + | "Red" + | "Orange" + | "Yellow" + | "Green" + | "Blue" + | "Purple" + | "Magenta"; /** * Task section to group / search by. Max allowed length is 100 characters. @@ -42,12 +47,10 @@ interface TMUpdateTaskRequest { */ description?: string; - /** - */ + /** */ recurrence?: TaskRecurrenceInfo; - /** - */ + /** */ attachments?: TMAttachmentInfo[]; } diff --git a/packages/core/src/definitions/TMWebhookInfo.ts b/packages/core/src/definitions/TMWebhookInfo.ts index 231ae8b5..5945d7dd 100644 --- a/packages/core/src/definitions/TMWebhookInfo.ts +++ b/packages/core/src/definitions/TMWebhookInfo.ts @@ -35,7 +35,7 @@ interface TMWebhookInfo { /** * Current status of a webhook */ - status?: 'Active' | 'Suspended' | 'Deleted'; + status?: "Active" | "Suspended" | "Deleted"; } export default TMWebhookInfo; diff --git a/packages/core/src/definitions/TMWebhookList.ts b/packages/core/src/definitions/TMWebhookList.ts index 63815a87..ecd95de0 100644 --- a/packages/core/src/definitions/TMWebhookList.ts +++ b/packages/core/src/definitions/TMWebhookList.ts @@ -1,8 +1,7 @@ -import type TMWebhookInfo from './TMWebhookInfo'; +import type TMWebhookInfo from "./TMWebhookInfo"; interface TMWebhookList { - /** - */ + /** */ records?: TMWebhookInfo[]; } diff --git a/packages/core/src/definitions/TargetServicePlanInfo.ts b/packages/core/src/definitions/TargetServicePlanInfo.ts index 5524543a..96908647 100644 --- a/packages/core/src/definitions/TargetServicePlanInfo.ts +++ b/packages/core/src/definitions/TargetServicePlanInfo.ts @@ -17,9 +17,8 @@ interface TargetServicePlanInfo { */ edition?: string; - /** - */ - freemiumProductType?: 'Freyja' | 'Phoenix'; + /** */ + freemiumProductType?: "Freyja" | "Phoenix"; } export default TargetServicePlanInfo; diff --git a/packages/core/src/definitions/TaskAttachment.ts b/packages/core/src/definitions/TaskAttachment.ts index 3d766fa0..65ae81d3 100644 --- a/packages/core/src/definitions/TaskAttachment.ts +++ b/packages/core/src/definitions/TaskAttachment.ts @@ -7,7 +7,7 @@ interface TaskAttachment { /** * Possible value - File. Attachment type (currently, only File is possible) */ - type?: 'File'; + type?: "File"; /** * Name of the attached file (incl. extension name) diff --git a/packages/core/src/definitions/TaskRecurrenceInfo.ts b/packages/core/src/definitions/TaskRecurrenceInfo.ts index 2d455762..86f9caa6 100644 --- a/packages/core/src/definitions/TaskRecurrenceInfo.ts +++ b/packages/core/src/definitions/TaskRecurrenceInfo.ts @@ -6,13 +6,13 @@ interface TaskRecurrenceInfo { * Recurrence settings of a task. None for non-periodic tasks * Default: None */ - schedule?: 'None' | 'Daily' | 'Weekdays' | 'Weekly' | 'Monthly' | 'Yearly'; + schedule?: "None" | "Daily" | "Weekdays" | "Weekly" | "Monthly" | "Yearly"; /** * Ending condition of a task * Default: None */ - endingCondition?: 'None' | 'Count' | 'Date'; + endingCondition?: "None" | "Count" | "Date"; /** * Count of iterations of periodic tasks diff --git a/packages/core/src/definitions/TaskResultInfo.ts b/packages/core/src/definitions/TaskResultInfo.ts index 5ae0a19c..f1835011 100644 --- a/packages/core/src/definitions/TaskResultInfo.ts +++ b/packages/core/src/definitions/TaskResultInfo.ts @@ -1,4 +1,4 @@ -import type TaskResultRecord from './TaskResultRecord'; +import type TaskResultRecord from "./TaskResultRecord"; /** * Task detailed result. Returned for failed and completed tasks diff --git a/packages/core/src/definitions/TaskResultRecord.ts b/packages/core/src/definitions/TaskResultRecord.ts index f401ed27..a6bd2743 100644 --- a/packages/core/src/definitions/TaskResultRecord.ts +++ b/packages/core/src/definitions/TaskResultRecord.ts @@ -1,4 +1,4 @@ -import type TaskResultRecordErrorsInfo from './TaskResultRecordErrorsInfo'; +import type TaskResultRecordErrorsInfo from "./TaskResultRecordErrorsInfo"; interface TaskResultRecord { /** @@ -26,8 +26,7 @@ interface TaskResultRecord { */ status?: string; - /** - */ + /** */ errors?: TaskResultRecordErrorsInfo[]; } diff --git a/packages/core/src/definitions/TaskResultRecordErrorsInfo.ts b/packages/core/src/definitions/TaskResultRecordErrorsInfo.ts index 55c0636b..9f38fed6 100644 --- a/packages/core/src/definitions/TaskResultRecordErrorsInfo.ts +++ b/packages/core/src/definitions/TaskResultRecordErrorsInfo.ts @@ -1,18 +1,14 @@ interface TaskResultRecordErrorsInfo { - /** - */ + /** */ errorCode?: string; - /** - */ + /** */ message?: string; - /** - */ + /** */ parameterName?: string; - /** - */ + /** */ description?: string; } diff --git a/packages/core/src/definitions/TaxLocation.ts b/packages/core/src/definitions/TaxLocation.ts index 5d2d2e87..06c5b81f 100644 --- a/packages/core/src/definitions/TaxLocation.ts +++ b/packages/core/src/definitions/TaxLocation.ts @@ -1,4 +1,4 @@ -import type PostalAddress from './PostalAddress'; +import type PostalAddress from "./PostalAddress"; interface TaxLocation { /** @@ -21,7 +21,7 @@ interface TaxLocation { * Required * Example: TaxLocation */ - type?: 'BillingAddress' | 'TaxLocation' | 'Site'; + type?: "BillingAddress" | "TaxLocation" | "Site"; /** * Unique identifier of a tax location in the partner's system diff --git a/packages/core/src/definitions/TelephonySessionsEventBody.ts b/packages/core/src/definitions/TelephonySessionsEventBody.ts index 9e13b3d0..c1b90737 100644 --- a/packages/core/src/definitions/TelephonySessionsEventBody.ts +++ b/packages/core/src/definitions/TelephonySessionsEventBody.ts @@ -1,5 +1,5 @@ -import type OriginInfo from './OriginInfo'; -import type TelephonySessionsEventPartyInfo from './TelephonySessionsEventPartyInfo'; +import type OriginInfo from "./OriginInfo"; +import type TelephonySessionsEventPartyInfo from "./TelephonySessionsEventPartyInfo"; /** * Notification payload body @@ -32,8 +32,7 @@ interface TelephonySessionsEventBody { */ eventTime?: string; - /** - */ + /** */ origin?: OriginInfo; /** diff --git a/packages/core/src/definitions/TelephonySessionsEventPartyInfo.ts b/packages/core/src/definitions/TelephonySessionsEventPartyInfo.ts index eaa6acea..47b81f24 100644 --- a/packages/core/src/definitions/TelephonySessionsEventPartyInfo.ts +++ b/packages/core/src/definitions/TelephonySessionsEventPartyInfo.ts @@ -1,9 +1,9 @@ -import type CallPartyInfo from './CallPartyInfo'; -import type RecordingInfo from './RecordingInfo'; -import type CallStatusInfo from './CallStatusInfo'; -import type ParkInfo from './ParkInfo'; -import type SipData from './SipData'; -import type UiCallInfo from './UiCallInfo'; +import type CallPartyInfo from "./CallPartyInfo"; +import type RecordingInfo from "./RecordingInfo"; +import type CallStatusInfo from "./CallStatusInfo"; +import type ParkInfo from "./ParkInfo"; +import type SipData from "./SipData"; +import type UiCallInfo from "./UiCallInfo"; interface TelephonySessionsEventPartyInfo { /** @@ -24,26 +24,21 @@ interface TelephonySessionsEventPartyInfo { /** * Call direction */ - direction?: 'Inbound' | 'Outbound'; + direction?: "Inbound" | "Outbound"; - /** - */ + /** */ to?: CallPartyInfo; - /** - */ + /** */ from?: CallPartyInfo; - /** - */ + /** */ recordings?: RecordingInfo[]; - /** - */ + /** */ status?: CallStatusInfo; - /** - */ + /** */ park?: ParkInfo; /** @@ -75,14 +70,12 @@ interface TelephonySessionsEventPartyInfo { /** * Defines party role in Server Side Conference */ - conferenceRole?: 'Host' | 'Participant'; + conferenceRole?: "Host" | "Participant"; - /** - */ + /** */ sipData?: SipData; - /** - */ + /** */ uiCallInfo?: UiCallInfo; } diff --git a/packages/core/src/definitions/TelephonyUserMeetingSettings.ts b/packages/core/src/definitions/TelephonyUserMeetingSettings.ts index eca42073..89877bd4 100644 --- a/packages/core/src/definitions/TelephonyUserMeetingSettings.ts +++ b/packages/core/src/definitions/TelephonyUserMeetingSettings.ts @@ -1,4 +1,4 @@ -import type GlobalDialInCountryResponse from './GlobalDialInCountryResponse'; +import type GlobalDialInCountryResponse from "./GlobalDialInCountryResponse"; interface TelephonyUserMeetingSettings { /** @@ -11,8 +11,7 @@ interface TelephonyUserMeetingSettings { */ audioConferenceInfo?: boolean; - /** - */ + /** */ globalDialCountries?: GlobalDialInCountryResponse[]; } diff --git a/packages/core/src/definitions/TemplateInfo.ts b/packages/core/src/definitions/TemplateInfo.ts index 50b0fbf9..762d5b4c 100644 --- a/packages/core/src/definitions/TemplateInfo.ts +++ b/packages/core/src/definitions/TemplateInfo.ts @@ -15,9 +15,8 @@ interface TemplateInfo { */ description?: string; - /** - */ - type?: 'UserSettings' | 'CallHandling' | 'LimitedExtensions'; + /** */ + type?: "UserSettings" | "CallHandling" | "LimitedExtensions"; /** * Name of a template diff --git a/packages/core/src/definitions/TemporaryNumberInfo.ts b/packages/core/src/definitions/TemporaryNumberInfo.ts index 463358fb..f622d178 100644 --- a/packages/core/src/definitions/TemporaryNumberInfo.ts +++ b/packages/core/src/definitions/TemporaryNumberInfo.ts @@ -1,6 +1,5 @@ /** * Temporary phone number, if any. Returned for phone numbers in `Pending` porting status only - * */ interface TemporaryNumberInfo { /** diff --git a/packages/core/src/definitions/TimeSettings.ts b/packages/core/src/definitions/TimeSettings.ts index 3d755b8b..f4ea609f 100644 --- a/packages/core/src/definitions/TimeSettings.ts +++ b/packages/core/src/definitions/TimeSettings.ts @@ -1,5 +1,5 @@ -import type TimeRange from './TimeRange'; -import type AdvancedTimeSettings from './AdvancedTimeSettings'; +import type TimeRange from "./TimeRange"; +import type AdvancedTimeSettings from "./AdvancedTimeSettings"; /** * Date-time range for the calls. The call is considered to be within time range if it started within time range. Both borders are inclusive @@ -16,8 +16,7 @@ interface TimeSettings { */ timeRange?: TimeRange; - /** - */ + /** */ advancedTimeSettings?: AdvancedTimeSettings; } diff --git a/packages/core/src/definitions/TimelineRequest.ts b/packages/core/src/definitions/TimelineRequest.ts index 78bf64c0..69d5643b 100644 --- a/packages/core/src/definitions/TimelineRequest.ts +++ b/packages/core/src/definitions/TimelineRequest.ts @@ -1,7 +1,7 @@ -import type Grouping from './Grouping'; -import type TimeSettings from './TimeSettings'; -import type CallFilters from './CallFilters'; -import type TimelineResponseOptions from './TimelineResponseOptions'; +import type Grouping from "./Grouping"; +import type TimeSettings from "./TimeSettings"; +import type CallFilters from "./CallFilters"; +import type TimelineResponseOptions from "./TimelineResponseOptions"; interface TimelineRequest { /** @@ -14,8 +14,7 @@ interface TimelineRequest { */ timeSettings?: TimeSettings; - /** - */ + /** */ callFilters?: CallFilters; /** diff --git a/packages/core/src/definitions/TimelineResponse.ts b/packages/core/src/definitions/TimelineResponse.ts index 0257b126..dd2fc25e 100644 --- a/packages/core/src/definitions/TimelineResponse.ts +++ b/packages/core/src/definitions/TimelineResponse.ts @@ -1,5 +1,5 @@ -import type ResponsePaging from './ResponsePaging'; -import type TimelineResponseData from './TimelineResponseData'; +import type ResponsePaging from "./ResponsePaging"; +import type TimelineResponseData from "./TimelineResponseData"; interface TimelineResponse { /** diff --git a/packages/core/src/definitions/TimelineResponseData.ts b/packages/core/src/definitions/TimelineResponseData.ts index 0b39b7be..ed832cfd 100644 --- a/packages/core/src/definitions/TimelineResponseData.ts +++ b/packages/core/src/definitions/TimelineResponseData.ts @@ -1,4 +1,4 @@ -import type TimelineResponseRecord from './TimelineResponseRecord'; +import type TimelineResponseRecord from "./TimelineResponseRecord"; /** * A list of time-value points of call data as per the grouping and filtering options specified in the request @@ -9,15 +9,15 @@ interface TimelineResponseData { * Required */ groupedBy?: - | 'Company' - | 'CompanyNumbers' - | 'Users' - | 'Queues' - | 'IVRs' - | 'SharedLines' - | 'UserGroups' - | 'Sites' - | 'Departments'; + | "Company" + | "CompanyNumbers" + | "Users" + | "Queues" + | "IVRs" + | "SharedLines" + | "UserGroups" + | "Sites" + | "Departments"; /** * List of call data as per the grouping and filtering options specified in the request diff --git a/packages/core/src/definitions/TimelineResponseOptions.ts b/packages/core/src/definitions/TimelineResponseOptions.ts index 78309291..5a3571e0 100644 --- a/packages/core/src/definitions/TimelineResponseOptions.ts +++ b/packages/core/src/definitions/TimelineResponseOptions.ts @@ -1,16 +1,14 @@ -import type TimelineResponseOptionsCounters from './TimelineResponseOptionsCounters'; -import type TimelineResponseOptionsTimers from './TimelineResponseOptionsTimers'; +import type TimelineResponseOptionsCounters from "./TimelineResponseOptionsCounters"; +import type TimelineResponseOptionsTimers from "./TimelineResponseOptionsTimers"; /** * Counters and timers options for calls breakdown */ interface TimelineResponseOptions { - /** - */ + /** */ counters?: TimelineResponseOptionsCounters; - /** - */ + /** */ timers?: TimelineResponseOptionsTimers; } diff --git a/packages/core/src/definitions/TimelineResponsePoint.ts b/packages/core/src/definitions/TimelineResponsePoint.ts index a3f059a4..226bdca8 100644 --- a/packages/core/src/definitions/TimelineResponsePoint.ts +++ b/packages/core/src/definitions/TimelineResponsePoint.ts @@ -1,5 +1,5 @@ -import type CallsTimers from './CallsTimers'; -import type CallsCounters from './CallsCounters'; +import type CallsTimers from "./CallsTimers"; +import type CallsCounters from "./CallsCounters"; interface TimelineResponsePoint { /** @@ -9,12 +9,10 @@ interface TimelineResponsePoint { */ time?: string; - /** - */ + /** */ timers?: CallsTimers; - /** - */ + /** */ counters?: CallsCounters; } diff --git a/packages/core/src/definitions/TimelineResponseRecord.ts b/packages/core/src/definitions/TimelineResponseRecord.ts index fa913415..cffbaeef 100644 --- a/packages/core/src/definitions/TimelineResponseRecord.ts +++ b/packages/core/src/definitions/TimelineResponseRecord.ts @@ -1,5 +1,5 @@ -import type KeyInfo from './KeyInfo'; -import type TimelineResponsePoint from './TimelineResponsePoint'; +import type KeyInfo from "./KeyInfo"; +import type TimelineResponsePoint from "./TimelineResponsePoint"; interface TimelineResponseRecord { /** @@ -8,8 +8,7 @@ interface TimelineResponseRecord { */ key?: string; - /** - */ + /** */ info?: KeyInfo; /** diff --git a/packages/core/src/definitions/TimezoneInfo.ts b/packages/core/src/definitions/TimezoneInfo.ts index fcb62b4e..501a42c2 100644 --- a/packages/core/src/definitions/TimezoneInfo.ts +++ b/packages/core/src/definitions/TimezoneInfo.ts @@ -23,8 +23,7 @@ interface TimezoneInfo { */ description?: string; - /** - */ + /** */ bias?: string; } diff --git a/packages/core/src/definitions/TokenInfo.ts b/packages/core/src/definitions/TokenInfo.ts index 4739e30e..45071670 100644 --- a/packages/core/src/definitions/TokenInfo.ts +++ b/packages/core/src/definitions/TokenInfo.ts @@ -39,7 +39,7 @@ interface TokenInfo { * Required * Example: bearer */ - token_type?: 'bearer'; + token_type?: "bearer"; /** * Token owner's identifier. Contains RingCentral user (extension) ID diff --git a/packages/core/src/definitions/TranscribedObject.ts b/packages/core/src/definitions/TranscribedObject.ts index b47d6423..69f0184f 100644 --- a/packages/core/src/definitions/TranscribedObject.ts +++ b/packages/core/src/definitions/TranscribedObject.ts @@ -1,5 +1,5 @@ -import type UtteranceObject from './UtteranceObject'; -import type WordSegment from './WordSegment'; +import type UtteranceObject from "./UtteranceObject"; +import type WordSegment from "./WordSegment"; interface TranscribedObject { /** diff --git a/packages/core/src/definitions/TransferInfo.ts b/packages/core/src/definitions/TransferInfo.ts index 03135815..54a36d1c 100644 --- a/packages/core/src/definitions/TransferInfo.ts +++ b/packages/core/src/definitions/TransferInfo.ts @@ -1,14 +1,13 @@ -import type TransferExtensionInfo from './TransferExtensionInfo'; +import type TransferExtensionInfo from "./TransferExtensionInfo"; interface TransferInfo { - /** - */ + /** */ extension?: TransferExtensionInfo; /** * Event that initiates transferring to the specified extension */ - action?: 'HoldTimeExpiration' | 'MaxCallers' | 'NoAnswer'; + action?: "HoldTimeExpiration" | "MaxCallers" | "NoAnswer"; } export default TransferInfo; diff --git a/packages/core/src/definitions/TransferredExtensionInfo.ts b/packages/core/src/definitions/TransferredExtensionInfo.ts index c41733a6..db8b7fab 100644 --- a/packages/core/src/definitions/TransferredExtensionInfo.ts +++ b/packages/core/src/definitions/TransferredExtensionInfo.ts @@ -1,8 +1,7 @@ -import type TransferredExtension from './TransferredExtension'; +import type TransferredExtension from "./TransferredExtension"; interface TransferredExtensionInfo { - /** - */ + /** */ extension?: TransferredExtension; } diff --git a/packages/core/src/definitions/TransitionInfo.ts b/packages/core/src/definitions/TransitionInfo.ts index bf1b6953..c14e56b7 100644 --- a/packages/core/src/definitions/TransitionInfo.ts +++ b/packages/core/src/definitions/TransitionInfo.ts @@ -1,4 +1,4 @@ -import type ExtensionRegionalSettingRequest from './ExtensionRegionalSettingRequest'; +import type ExtensionRegionalSettingRequest from "./ExtensionRegionalSettingRequest"; interface TransitionInfo { /** @@ -8,8 +8,7 @@ interface TransitionInfo { */ sendWelcomeEmail?: boolean; - /** - */ + /** */ regionalSettings?: ExtensionRegionalSettingRequest; } diff --git a/packages/core/src/definitions/UiCallInfo.ts b/packages/core/src/definitions/UiCallInfo.ts index 2a753930..ccd94172 100644 --- a/packages/core/src/definitions/UiCallInfo.ts +++ b/packages/core/src/definitions/UiCallInfo.ts @@ -1,15 +1,13 @@ -import type UiCallInfoRecord from './UiCallInfoRecord'; +import type UiCallInfoRecord from "./UiCallInfoRecord"; /** * Call information on user interface */ interface UiCallInfo { - /** - */ + /** */ primary?: UiCallInfoRecord; - /** - */ + /** */ additional?: UiCallInfoRecord; } diff --git a/packages/core/src/definitions/UiCallInfoRecord.ts b/packages/core/src/definitions/UiCallInfoRecord.ts index 9c9e14ee..c2e81a1c 100644 --- a/packages/core/src/definitions/UiCallInfoRecord.ts +++ b/packages/core/src/definitions/UiCallInfoRecord.ts @@ -2,7 +2,7 @@ interface UiCallInfoRecord { /** * UI call info type */ - type?: 'QueueName' | 'CallerIdName'; + type?: "QueueName" | "CallerIdName"; /** * UI call info value diff --git a/packages/core/src/definitions/UnconditionalForwardingInfo.ts b/packages/core/src/definitions/UnconditionalForwardingInfo.ts index 303c723f..2aef83fc 100644 --- a/packages/core/src/definitions/UnconditionalForwardingInfo.ts +++ b/packages/core/src/definitions/UnconditionalForwardingInfo.ts @@ -1,7 +1,6 @@ /** * Unconditional forwarding parameters. * Returned if 'UnconditionalForwarding' value is specified for the `callHandlingAction` parameter - * */ interface UnconditionalForwardingInfo { /** @@ -16,7 +15,7 @@ interface UnconditionalForwardingInfo { /** * Event that initiates forwarding to the specified phone number */ - action?: 'HoldTimeExpiration' | 'MaxCallers' | 'NoAnswer'; + action?: "HoldTimeExpiration" | "MaxCallers" | "NoAnswer"; } export default UnconditionalForwardingInfo; diff --git a/packages/core/src/definitions/UnifiedPresence.ts b/packages/core/src/definitions/UnifiedPresence.ts index 604e8566..4d1b5ed8 100644 --- a/packages/core/src/definitions/UnifiedPresence.ts +++ b/packages/core/src/definitions/UnifiedPresence.ts @@ -1,23 +1,20 @@ -import type UnifiedPresenceGlip from './UnifiedPresenceGlip'; -import type UnifiedPresenceTelephony from './UnifiedPresenceTelephony'; -import type UnifiedPresenceMeeting from './UnifiedPresenceMeeting'; +import type UnifiedPresenceGlip from "./UnifiedPresenceGlip"; +import type UnifiedPresenceTelephony from "./UnifiedPresenceTelephony"; +import type UnifiedPresenceMeeting from "./UnifiedPresenceMeeting"; interface UnifiedPresence { /** * Aggregated presence status of the user */ - status?: 'Available' | 'Offline' | 'DND' | 'Busy'; + status?: "Available" | "Offline" | "DND" | "Busy"; - /** - */ + /** */ glip?: UnifiedPresenceGlip; - /** - */ + /** */ telephony?: UnifiedPresenceTelephony; - /** - */ + /** */ meeting?: UnifiedPresenceMeeting; } diff --git a/packages/core/src/definitions/UnifiedPresenceGlip.ts b/packages/core/src/definitions/UnifiedPresenceGlip.ts index d5377e22..979c0056 100644 --- a/packages/core/src/definitions/UnifiedPresenceGlip.ts +++ b/packages/core/src/definitions/UnifiedPresenceGlip.ts @@ -5,17 +5,17 @@ interface UnifiedPresenceGlip { /** * Glip connection status calculated from all user's apps. Returned always for the requester's extension; returned for another users if their glip visibility is set to 'Visible' */ - status?: 'Offline' | 'Online'; + status?: "Offline" | "Online"; /** * Visibility setting allowing other users to see the user's Glip presence status; returned only for requester's extension */ - visibility?: 'Visible' | 'Invisible'; + visibility?: "Visible" | "Invisible"; /** * Shows whether user wants to receive Glip notifications or not. */ - availability?: 'Available' | 'DND'; + availability?: "Available" | "DND"; } export default UnifiedPresenceGlip; diff --git a/packages/core/src/definitions/UnifiedPresenceListEntry.ts b/packages/core/src/definitions/UnifiedPresenceListEntry.ts index 0e223c31..1cd11b0d 100644 --- a/packages/core/src/definitions/UnifiedPresenceListEntry.ts +++ b/packages/core/src/definitions/UnifiedPresenceListEntry.ts @@ -1,4 +1,4 @@ -import type UnifiedPresence from './UnifiedPresence'; +import type UnifiedPresence from "./UnifiedPresence"; interface UnifiedPresenceListEntry { /** @@ -12,8 +12,7 @@ interface UnifiedPresenceListEntry { */ status?: number; - /** - */ + /** */ body?: UnifiedPresence; } diff --git a/packages/core/src/definitions/UnifiedPresenceMeeting.ts b/packages/core/src/definitions/UnifiedPresenceMeeting.ts index d5852464..680c9c18 100644 --- a/packages/core/src/definitions/UnifiedPresenceMeeting.ts +++ b/packages/core/src/definitions/UnifiedPresenceMeeting.ts @@ -5,7 +5,7 @@ interface UnifiedPresenceMeeting { /** * Meeting status calculated from all user`s meetings */ - status?: 'NoMeeting' | 'InMeeting'; + status?: "NoMeeting" | "InMeeting"; } export default UnifiedPresenceMeeting; diff --git a/packages/core/src/definitions/UnifiedPresenceTelephony.ts b/packages/core/src/definitions/UnifiedPresenceTelephony.ts index 2e846259..e0697828 100644 --- a/packages/core/src/definitions/UnifiedPresenceTelephony.ts +++ b/packages/core/src/definitions/UnifiedPresenceTelephony.ts @@ -5,17 +5,20 @@ interface UnifiedPresenceTelephony { /** * Telephony status calculated from all user's phone numbers. Returned always for the requester's extension; returned for another users if their telephony visibility is set to 'Visible' */ - status?: 'NoCall' | 'Ringing' | 'CallConnected' | 'OnHold' | 'ParkedCall'; + status?: "NoCall" | "Ringing" | "CallConnected" | "OnHold" | "ParkedCall"; /** * Specifies if the user's phone presence status is visible to other users; returned only for requester's extension */ - visibility?: 'Visible' | 'Invisible'; + visibility?: "Visible" | "Invisible"; /** * Telephony DND status. Returned if *DND* feature is switched on */ - availability?: 'TakeAllCalls' | 'DoNotAcceptAnyCalls' | 'DoNotAcceptQueueCalls'; + availability?: + | "TakeAllCalls" + | "DoNotAcceptAnyCalls" + | "DoNotAcceptQueueCalls"; } export default UnifiedPresenceTelephony; diff --git a/packages/core/src/definitions/UpdateAnsweringRuleRequest.ts b/packages/core/src/definitions/UpdateAnsweringRuleRequest.ts index 9cd569b9..dea4465d 100644 --- a/packages/core/src/definitions/UpdateAnsweringRuleRequest.ts +++ b/packages/core/src/definitions/UpdateAnsweringRuleRequest.ts @@ -1,13 +1,13 @@ -import type ForwardingInfoCreateRuleRequest from './ForwardingInfoCreateRuleRequest'; -import type CallersInfoRequest from './CallersInfoRequest'; -import type CalledNumberInfo from './CalledNumberInfo'; -import type ScheduleInfo from './ScheduleInfo'; -import type UnconditionalForwardingInfo from './UnconditionalForwardingInfo'; -import type QueueInfo from './QueueInfo'; -import type VoicemailInfo from './VoicemailInfo'; -import type MissedCallInfo from './MissedCallInfo'; -import type GreetingInfo from './GreetingInfo'; -import type TransferredExtensionInfo from './TransferredExtensionInfo'; +import type ForwardingInfoCreateRuleRequest from "./ForwardingInfoCreateRuleRequest"; +import type CallersInfoRequest from "./CallersInfoRequest"; +import type CalledNumberInfo from "./CalledNumberInfo"; +import type ScheduleInfo from "./ScheduleInfo"; +import type UnconditionalForwardingInfo from "./UnconditionalForwardingInfo"; +import type QueueInfo from "./QueueInfo"; +import type VoicemailInfo from "./VoicemailInfo"; +import type MissedCallInfo from "./MissedCallInfo"; +import type GreetingInfo from "./GreetingInfo"; +import type TransferredExtensionInfo from "./TransferredExtensionInfo"; interface UpdateAnsweringRuleRequest { /** @@ -15,8 +15,7 @@ interface UpdateAnsweringRuleRequest { */ id?: string; - /** - */ + /** */ forwarding?: ForwardingInfoCreateRuleRequest; /** @@ -39,41 +38,36 @@ interface UpdateAnsweringRuleRequest { */ calledNumbers?: CalledNumberInfo[]; - /** - */ + /** */ schedule?: ScheduleInfo; /** * Specifies how incoming calls are forwarded */ callHandlingAction?: - | 'ForwardCalls' - | 'UnconditionalForwarding' - | 'AgentQueue' - | 'TransferToExtension' - | 'TakeMessagesOnly' - | 'PlayAnnouncementOnly' - | 'SharedLines'; + | "ForwardCalls" + | "UnconditionalForwarding" + | "AgentQueue" + | "TransferToExtension" + | "TakeMessagesOnly" + | "PlayAnnouncementOnly" + | "SharedLines"; /** * Type of an answering rule */ - type?: 'BusinessHours' | 'AfterHours' | 'Custom'; + type?: "BusinessHours" | "AfterHours" | "Custom"; - /** - */ + /** */ unconditionalForwarding?: UnconditionalForwardingInfo; - /** - */ + /** */ queue?: QueueInfo; - /** - */ + /** */ voicemail?: VoicemailInfo; - /** - */ + /** */ missedCall?: MissedCallInfo; /** @@ -91,15 +85,14 @@ interface UpdateAnsweringRuleRequest { * value is 'Off' * Default: Off */ - screening?: 'Off' | 'NoCallerId' | 'UnknownCallerId' | 'Always'; + screening?: "Off" | "NoCallerId" | "UnknownCallerId" | "Always"; /** * Indicates whether inactive numbers should be returned or not */ showInactiveNumbers?: boolean; - /** - */ + /** */ transfer?: TransferredExtensionInfo; } diff --git a/packages/core/src/definitions/UpdateBridgeRequest.ts b/packages/core/src/definitions/UpdateBridgeRequest.ts index 1ca3a799..8ea505c6 100644 --- a/packages/core/src/definitions/UpdateBridgeRequest.ts +++ b/packages/core/src/definitions/UpdateBridgeRequest.ts @@ -1,6 +1,6 @@ -import type BridgePinsWithoutPstn from './BridgePinsWithoutPstn'; -import type BridgeRequestSecurity from './BridgeRequestSecurity'; -import type BridgePreferences from './BridgePreferences'; +import type BridgePinsWithoutPstn from "./BridgePinsWithoutPstn"; +import type BridgeRequestSecurity from "./BridgeRequestSecurity"; +import type BridgePreferences from "./BridgePreferences"; interface UpdateBridgeRequest { /** @@ -9,16 +9,13 @@ interface UpdateBridgeRequest { */ name?: string; - /** - */ + /** */ pins?: BridgePinsWithoutPstn; - /** - */ + /** */ security?: BridgeRequestSecurity; - /** - */ + /** */ preferences?: BridgePreferences; } diff --git a/packages/core/src/definitions/UpdateConferencingInfoRequest.ts b/packages/core/src/definitions/UpdateConferencingInfoRequest.ts index 279da835..be1b378e 100644 --- a/packages/core/src/definitions/UpdateConferencingInfoRequest.ts +++ b/packages/core/src/definitions/UpdateConferencingInfoRequest.ts @@ -1,4 +1,4 @@ -import type ConferencePhoneNumberInfo from './ConferencePhoneNumberInfo'; +import type ConferencePhoneNumberInfo from "./ConferencePhoneNumberInfo"; interface UpdateConferencingInfoRequest { /** diff --git a/packages/core/src/definitions/UpdateDeviceParameters.ts b/packages/core/src/definitions/UpdateDeviceParameters.ts index 261746a7..c59fe90d 100644 --- a/packages/core/src/definitions/UpdateDeviceParameters.ts +++ b/packages/core/src/definitions/UpdateDeviceParameters.ts @@ -2,8 +2,7 @@ * Query parameters for operation updateDevice */ interface UpdateDeviceParameters { - /** - */ + /** */ prestatement?: boolean; } diff --git a/packages/core/src/definitions/UpdateForwardingNumberRequest.ts b/packages/core/src/definitions/UpdateForwardingNumberRequest.ts index 94c5d510..952ee0e8 100644 --- a/packages/core/src/definitions/UpdateForwardingNumberRequest.ts +++ b/packages/core/src/definitions/UpdateForwardingNumberRequest.ts @@ -17,7 +17,15 @@ interface UpdateForwardingNumberRequest { /** * Forwarding phone number type */ - type?: 'Home' | 'Mobile' | 'Work' | 'PhoneLine' | 'Outage' | 'Other' | 'BusinessMobilePhone' | 'ExternalCarrier'; + type?: + | "Home" + | "Mobile" + | "Work" + | "PhoneLine" + | "Outage" + | "Other" + | "BusinessMobilePhone" + | "ExternalCarrier"; } export default UpdateForwardingNumberRequest; diff --git a/packages/core/src/definitions/UpdateInviteeRequest.ts b/packages/core/src/definitions/UpdateInviteeRequest.ts index a8dc7b9e..ed9df7d5 100644 --- a/packages/core/src/definitions/UpdateInviteeRequest.ts +++ b/packages/core/src/definitions/UpdateInviteeRequest.ts @@ -33,13 +33,13 @@ interface UpdateInviteeRequest { * Required * Example: Panelist */ - role?: 'Panelist' | 'CoHost' | 'Host' | 'Attendee'; + role?: "Panelist" | "CoHost" | "Host" | "Attendee"; /** * The type of the webinar invitee * Default: User */ - type?: 'User' | 'Room'; + type?: "User" | "Room"; /** * Indicates if invite/cancellation emails have to be sent to this invitee. diff --git a/packages/core/src/definitions/UpdateMessageRequest.ts b/packages/core/src/definitions/UpdateMessageRequest.ts index cdceb424..815e7d30 100644 --- a/packages/core/src/definitions/UpdateMessageRequest.ts +++ b/packages/core/src/definitions/UpdateMessageRequest.ts @@ -3,7 +3,7 @@ interface UpdateMessageRequest { * Message read status * Required */ - readStatus?: 'Read' | 'Unread'; + readStatus?: "Read" | "Unread"; } export default UpdateMessageRequest; diff --git a/packages/core/src/definitions/UpdateMultipleSwitchesRequest.ts b/packages/core/src/definitions/UpdateMultipleSwitchesRequest.ts index c44a5a65..94d600d7 100644 --- a/packages/core/src/definitions/UpdateMultipleSwitchesRequest.ts +++ b/packages/core/src/definitions/UpdateMultipleSwitchesRequest.ts @@ -1,8 +1,7 @@ -import type UpdateSwitchInfo from './UpdateSwitchInfo'; +import type UpdateSwitchInfo from "./UpdateSwitchInfo"; interface UpdateMultipleSwitchesRequest { - /** - */ + /** */ records?: UpdateSwitchInfo[]; } diff --git a/packages/core/src/definitions/UpdateMultipleSwitchesResponse.ts b/packages/core/src/definitions/UpdateMultipleSwitchesResponse.ts index c3bfa479..572c0e1e 100644 --- a/packages/core/src/definitions/UpdateMultipleSwitchesResponse.ts +++ b/packages/core/src/definitions/UpdateMultipleSwitchesResponse.ts @@ -1,8 +1,7 @@ -import type BulkTaskInfo from './BulkTaskInfo'; +import type BulkTaskInfo from "./BulkTaskInfo"; interface UpdateMultipleSwitchesResponse { - /** - */ + /** */ task?: BulkTaskInfo; } diff --git a/packages/core/src/definitions/UpdateMultipleWirelessPointsRequest.ts b/packages/core/src/definitions/UpdateMultipleWirelessPointsRequest.ts index 74618aa1..ab7ad90d 100644 --- a/packages/core/src/definitions/UpdateMultipleWirelessPointsRequest.ts +++ b/packages/core/src/definitions/UpdateMultipleWirelessPointsRequest.ts @@ -1,8 +1,7 @@ -import type UpdateWirelessPoint from './UpdateWirelessPoint'; +import type UpdateWirelessPoint from "./UpdateWirelessPoint"; interface UpdateMultipleWirelessPointsRequest { - /** - */ + /** */ records?: UpdateWirelessPoint[]; } diff --git a/packages/core/src/definitions/UpdateMultipleWirelessPointsResponse.ts b/packages/core/src/definitions/UpdateMultipleWirelessPointsResponse.ts index 6e0e8f8d..e314d747 100644 --- a/packages/core/src/definitions/UpdateMultipleWirelessPointsResponse.ts +++ b/packages/core/src/definitions/UpdateMultipleWirelessPointsResponse.ts @@ -1,8 +1,7 @@ -import type BulkTaskInfo from './BulkTaskInfo'; +import type BulkTaskInfo from "./BulkTaskInfo"; interface UpdateMultipleWirelessPointsResponse { - /** - */ + /** */ task?: BulkTaskInfo; } diff --git a/packages/core/src/definitions/UpdateNetworkRequest.ts b/packages/core/src/definitions/UpdateNetworkRequest.ts index ef2baee6..9db4fd9f 100644 --- a/packages/core/src/definitions/UpdateNetworkRequest.ts +++ b/packages/core/src/definitions/UpdateNetworkRequest.ts @@ -1,6 +1,6 @@ -import type AutomaticLocationUpdatesSiteInfo from './AutomaticLocationUpdatesSiteInfo'; -import type PublicIpRangeInfo from './PublicIpRangeInfo'; -import type PrivateIpRangeInfoRequest from './PrivateIpRangeInfoRequest'; +import type AutomaticLocationUpdatesSiteInfo from "./AutomaticLocationUpdatesSiteInfo"; +import type PublicIpRangeInfo from "./PublicIpRangeInfo"; +import type PrivateIpRangeInfoRequest from "./PrivateIpRangeInfoRequest"; interface UpdateNetworkRequest { /** @@ -14,8 +14,7 @@ interface UpdateNetworkRequest { */ name?: string; - /** - */ + /** */ site?: AutomaticLocationUpdatesSiteInfo; /** diff --git a/packages/core/src/definitions/UpdateSwitchInfo.ts b/packages/core/src/definitions/UpdateSwitchInfo.ts index 8efcc103..58ae4839 100644 --- a/packages/core/src/definitions/UpdateSwitchInfo.ts +++ b/packages/core/src/definitions/UpdateSwitchInfo.ts @@ -1,5 +1,5 @@ -import type SwitchSiteInfo from './SwitchSiteInfo'; -import type EmergencyAddressInfo from './EmergencyAddressInfo'; +import type SwitchSiteInfo from "./SwitchSiteInfo"; +import type EmergencyAddressInfo from "./EmergencyAddressInfo"; interface UpdateSwitchInfo { /** @@ -24,12 +24,10 @@ interface UpdateSwitchInfo { */ name?: string; - /** - */ + /** */ site?: SwitchSiteInfo; - /** - */ + /** */ emergencyAddress?: EmergencyAddressInfo; } diff --git a/packages/core/src/definitions/UpdateUnifiedPresence.ts b/packages/core/src/definitions/UpdateUnifiedPresence.ts index 7490b1e9..ebf70c01 100644 --- a/packages/core/src/definitions/UpdateUnifiedPresence.ts +++ b/packages/core/src/definitions/UpdateUnifiedPresence.ts @@ -1,13 +1,11 @@ -import type UpdateUnifiedPresenceGlip from './UpdateUnifiedPresenceGlip'; -import type UpdateUnifiedPresenceTelephony from './UpdateUnifiedPresenceTelephony'; +import type UpdateUnifiedPresenceGlip from "./UpdateUnifiedPresenceGlip"; +import type UpdateUnifiedPresenceTelephony from "./UpdateUnifiedPresenceTelephony"; interface UpdateUnifiedPresence { - /** - */ + /** */ glip?: UpdateUnifiedPresenceGlip; - /** - */ + /** */ telephony?: UpdateUnifiedPresenceTelephony; } diff --git a/packages/core/src/definitions/UpdateUnifiedPresenceGlip.ts b/packages/core/src/definitions/UpdateUnifiedPresenceGlip.ts index b764fd17..f5bdd6b8 100644 --- a/packages/core/src/definitions/UpdateUnifiedPresenceGlip.ts +++ b/packages/core/src/definitions/UpdateUnifiedPresenceGlip.ts @@ -2,12 +2,12 @@ interface UpdateUnifiedPresenceGlip { /** * Visibility setting allowing other users to see Glip presence status */ - visibility?: 'Visible' | 'Invisible'; + visibility?: "Visible" | "Invisible"; /** * Availability setting specifying whether to receive Glip notifications or not */ - availability?: 'Available' | 'DND'; + availability?: "Available" | "DND"; } export default UpdateUnifiedPresenceGlip; diff --git a/packages/core/src/definitions/UpdateUnifiedPresenceTelephony.ts b/packages/core/src/definitions/UpdateUnifiedPresenceTelephony.ts index a8db9ea1..0807162e 100644 --- a/packages/core/src/definitions/UpdateUnifiedPresenceTelephony.ts +++ b/packages/core/src/definitions/UpdateUnifiedPresenceTelephony.ts @@ -2,7 +2,10 @@ interface UpdateUnifiedPresenceTelephony { /** * Telephony DND status */ - availability?: 'TakeAllCalls' | 'DoNotAcceptAnyCalls' | 'DoNotAcceptQueueCalls'; + availability?: + | "TakeAllCalls" + | "DoNotAcceptAnyCalls" + | "DoNotAcceptQueueCalls"; } export default UpdateUnifiedPresenceTelephony; diff --git a/packages/core/src/definitions/UpdateUserProfileImageRequest.ts b/packages/core/src/definitions/UpdateUserProfileImageRequest.ts index 4f9ccd40..998f25b1 100644 --- a/packages/core/src/definitions/UpdateUserProfileImageRequest.ts +++ b/packages/core/src/definitions/UpdateUserProfileImageRequest.ts @@ -1,11 +1,10 @@ -import type Attachment from './Attachment'; +import type Attachment from "./Attachment"; /** * Request body for operation updateUserProfileImage */ interface UpdateUserProfileImageRequest { - /** - */ + /** */ image?: Attachment; } diff --git a/packages/core/src/definitions/UpdateWirelessPoint.ts b/packages/core/src/definitions/UpdateWirelessPoint.ts index 36fad983..53159d2c 100644 --- a/packages/core/src/definitions/UpdateWirelessPoint.ts +++ b/packages/core/src/definitions/UpdateWirelessPoint.ts @@ -1,5 +1,5 @@ -import type EmergencyAddressAutoUpdateSiteInfo from './EmergencyAddressAutoUpdateSiteInfo'; -import type EmergencyAddressInfo from './EmergencyAddressInfo'; +import type EmergencyAddressAutoUpdateSiteInfo from "./EmergencyAddressAutoUpdateSiteInfo"; +import type EmergencyAddressInfo from "./EmergencyAddressInfo"; interface UpdateWirelessPoint { /** @@ -19,12 +19,10 @@ interface UpdateWirelessPoint { */ name?: string; - /** - */ + /** */ site?: EmergencyAddressAutoUpdateSiteInfo; - /** - */ + /** */ emergencyAddress?: EmergencyAddressInfo; } diff --git a/packages/core/src/definitions/UserAnsweringRuleList.ts b/packages/core/src/definitions/UserAnsweringRuleList.ts index 17cd81b1..2b69b5c6 100644 --- a/packages/core/src/definitions/UserAnsweringRuleList.ts +++ b/packages/core/src/definitions/UserAnsweringRuleList.ts @@ -1,6 +1,6 @@ -import type CallHandlingRuleInfo from './CallHandlingRuleInfo'; -import type EnumeratedPagingModel from './EnumeratedPagingModel'; -import type PageNavigationModel from './PageNavigationModel'; +import type CallHandlingRuleInfo from "./CallHandlingRuleInfo"; +import type EnumeratedPagingModel from "./EnumeratedPagingModel"; +import type PageNavigationModel from "./PageNavigationModel"; interface UserAnsweringRuleList { /** @@ -15,12 +15,10 @@ interface UserAnsweringRuleList { */ records?: CallHandlingRuleInfo[]; - /** - */ + /** */ paging?: EnumeratedPagingModel; - /** - */ + /** */ navigation?: PageNavigationModel; } diff --git a/packages/core/src/definitions/UserBusinessHoursScheduleInfo.ts b/packages/core/src/definitions/UserBusinessHoursScheduleInfo.ts index 6aaa92ae..7f7905be 100644 --- a/packages/core/src/definitions/UserBusinessHoursScheduleInfo.ts +++ b/packages/core/src/definitions/UserBusinessHoursScheduleInfo.ts @@ -1,11 +1,10 @@ -import type WeeklyScheduleInfo from './WeeklyScheduleInfo'; +import type WeeklyScheduleInfo from "./WeeklyScheduleInfo"; /** * Schedule when an answering rule is applied */ interface UserBusinessHoursScheduleInfo { - /** - */ + /** */ weeklyRanges?: WeeklyScheduleInfo; } diff --git a/packages/core/src/definitions/UserBusinessHoursUpdateRequest.ts b/packages/core/src/definitions/UserBusinessHoursUpdateRequest.ts index fad45d54..cd68a9bd 100644 --- a/packages/core/src/definitions/UserBusinessHoursUpdateRequest.ts +++ b/packages/core/src/definitions/UserBusinessHoursUpdateRequest.ts @@ -1,4 +1,4 @@ -import type UserBusinessHoursScheduleInfo from './UserBusinessHoursScheduleInfo'; +import type UserBusinessHoursScheduleInfo from "./UserBusinessHoursScheduleInfo"; interface UserBusinessHoursUpdateRequest { /** diff --git a/packages/core/src/definitions/UserBusinessHoursUpdateResponse.ts b/packages/core/src/definitions/UserBusinessHoursUpdateResponse.ts index 19177e6f..4517c6e5 100644 --- a/packages/core/src/definitions/UserBusinessHoursUpdateResponse.ts +++ b/packages/core/src/definitions/UserBusinessHoursUpdateResponse.ts @@ -1,4 +1,4 @@ -import type UserBusinessHoursScheduleInfo from './UserBusinessHoursScheduleInfo'; +import type UserBusinessHoursScheduleInfo from "./UserBusinessHoursScheduleInfo"; interface UserBusinessHoursUpdateResponse { /** @@ -7,8 +7,7 @@ interface UserBusinessHoursUpdateResponse { */ uri?: string; - /** - */ + /** */ schedule?: UserBusinessHoursScheduleInfo; } diff --git a/packages/core/src/definitions/UserCallQueues.ts b/packages/core/src/definitions/UserCallQueues.ts index a0a4f810..2d244c26 100644 --- a/packages/core/src/definitions/UserCallQueues.ts +++ b/packages/core/src/definitions/UserCallQueues.ts @@ -1,4 +1,4 @@ -import type QueueShortInfoResource from './QueueShortInfoResource'; +import type QueueShortInfoResource from "./QueueShortInfoResource"; interface UserCallQueues { /** diff --git a/packages/core/src/definitions/UserContactsNavigationInfo.ts b/packages/core/src/definitions/UserContactsNavigationInfo.ts index d94c3f07..3e33fbb3 100644 --- a/packages/core/src/definitions/UserContactsNavigationInfo.ts +++ b/packages/core/src/definitions/UserContactsNavigationInfo.ts @@ -1,23 +1,19 @@ -import type UserContactsNavigationInfoUri from './UserContactsNavigationInfoUri'; +import type UserContactsNavigationInfoUri from "./UserContactsNavigationInfoUri"; /** * Information on navigation */ interface UserContactsNavigationInfo { - /** - */ + /** */ firstPage?: UserContactsNavigationInfoUri; - /** - */ + /** */ nextPage?: UserContactsNavigationInfoUri; - /** - */ + /** */ previousPage?: UserContactsNavigationInfoUri; - /** - */ + /** */ lastPage?: UserContactsNavigationInfoUri; } diff --git a/packages/core/src/definitions/UserInMeetingResponse.ts b/packages/core/src/definitions/UserInMeetingResponse.ts index c959008f..c7cabe3a 100644 --- a/packages/core/src/definitions/UserInMeetingResponse.ts +++ b/packages/core/src/definitions/UserInMeetingResponse.ts @@ -1,34 +1,26 @@ interface UserInMeetingResponse { - /** - */ + /** */ enableWaitingRoom?: boolean; - /** - */ + /** */ breakoutRoom?: boolean; - /** - */ + /** */ chat?: boolean; - /** - */ + /** */ polling?: boolean; - /** - */ + /** */ annotation?: boolean; - /** - */ + /** */ virtualBackground?: boolean; - /** - */ + /** */ screenSharing?: boolean; - /** - */ + /** */ requestPermissionToUnmute?: boolean; } diff --git a/packages/core/src/definitions/UserMeetingRecordingSetting.ts b/packages/core/src/definitions/UserMeetingRecordingSetting.ts index 8b6bd9f1..f57607be 100644 --- a/packages/core/src/definitions/UserMeetingRecordingSetting.ts +++ b/packages/core/src/definitions/UserMeetingRecordingSetting.ts @@ -41,7 +41,7 @@ interface UserMeetingRecordingSetting { * Automatic recording (local/cloud/none) of meetings as they start * Default: local */ - autoRecording?: 'local' | 'cloud' | 'none'; + autoRecording?: "local" | "cloud" | "none"; /** * Automatic deletion of cloud recordings diff --git a/packages/core/src/definitions/UserPhoneNumberExtensionInfo.ts b/packages/core/src/definitions/UserPhoneNumberExtensionInfo.ts index f3789fa2..0d75749c 100644 --- a/packages/core/src/definitions/UserPhoneNumberExtensionInfo.ts +++ b/packages/core/src/definitions/UserPhoneNumberExtensionInfo.ts @@ -1,9 +1,8 @@ -import type ContactCenterProvider from './ContactCenterProvider'; +import type ContactCenterProvider from "./ContactCenterProvider"; /** * Information on the extension, to which the phone number is assigned. * Returned only for the request of Account phone number list - * */ interface UserPhoneNumberExtensionInfo { /** @@ -40,22 +39,21 @@ interface UserPhoneNumberExtensionInfo { * corresponds to 'Call Queue' extensions in modern RingCentral product terminology */ type?: - | 'User' - | 'FaxUser' - | 'VirtualUser' - | 'DigitalUser' - | 'Department' - | 'Announcement' - | 'Voicemail' - | 'SharedLinesGroup' - | 'PagingOnly' - | 'IvrMenu' - | 'ApplicationExtension' - | 'ParkLocation' - | 'Site'; + | "User" + | "FaxUser" + | "VirtualUser" + | "DigitalUser" + | "Department" + | "Announcement" + | "Voicemail" + | "SharedLinesGroup" + | "PagingOnly" + | "IvrMenu" + | "ApplicationExtension" + | "ParkLocation" + | "Site"; - /** - */ + /** */ contactCenterProvider?: ContactCenterProvider; /** diff --git a/packages/core/src/definitions/UserPhoneNumberInfo.ts b/packages/core/src/definitions/UserPhoneNumberInfo.ts index d9547885..523cdd8f 100644 --- a/packages/core/src/definitions/UserPhoneNumberInfo.ts +++ b/packages/core/src/definitions/UserPhoneNumberInfo.ts @@ -1,6 +1,6 @@ -import type CountryInfoBasicModel from './CountryInfoBasicModel'; -import type ContactCenterProvider from './ContactCenterProvider'; -import type UserPhoneNumberExtensionInfo from './UserPhoneNumberExtensionInfo'; +import type CountryInfoBasicModel from "./CountryInfoBasicModel"; +import type ContactCenterProvider from "./ContactCenterProvider"; +import type UserPhoneNumberExtensionInfo from "./UserPhoneNumberExtensionInfo"; interface UserPhoneNumberInfo { /** @@ -15,16 +15,13 @@ interface UserPhoneNumberInfo { */ id?: number; - /** - */ + /** */ country?: CountryInfoBasicModel; - /** - */ + /** */ contactCenterProvider?: ContactCenterProvider; - /** - */ + /** */ extension?: UserPhoneNumberExtensionInfo; /** @@ -42,12 +39,12 @@ interface UserPhoneNumberInfo { * which are not terminated in the RingCentral phone system */ paymentType?: - | 'External' - | 'TollFree' - | 'Local' - | 'BusinessMobileNumberProvider' - | 'ExternalNumberProvider' - | 'ExternalNumberProviderTollFree'; + | "External" + | "TollFree" + | "Local" + | "BusinessMobileNumberProvider" + | "ExternalNumberProvider" + | "ExternalNumberProviderTollFree"; /** * Phone number @@ -64,40 +61,52 @@ interface UserPhoneNumberInfo { * number is ready to be used. Otherwise, it is an external number not yet * ported to RingCentral */ - status?: 'Normal' | 'Pending' | 'PortedIn' | 'Temporary' | 'Unknown'; + status?: "Normal" | "Pending" | "PortedIn" | "Temporary" | "Unknown"; /** * Type of a phone number */ - type?: 'VoiceFax' | 'VoiceOnly' | 'FaxOnly'; + type?: "VoiceFax" | "VoiceOnly" | "FaxOnly"; /** * Extension subtype, if applicable. For any unsupported subtypes the 'Unknown' value will be returned */ - subType?: 'VideoPro' | 'VideoProPlus' | 'DigitalSignage' | 'Unknown' | 'Emergency'; + subType?: + | "VideoPro" + | "VideoProPlus" + | "DigitalSignage" + | "Unknown" + | "Emergency"; /** * Usage type of phone number. Numbers of 'NumberPool' type will not be returned for phone number list requests */ usageType?: - | 'MainCompanyNumber' - | 'AdditionalCompanyNumber' - | 'CompanyNumber' - | 'DirectNumber' - | 'CompanyFaxNumber' - | 'ForwardedNumber' - | 'ForwardedCompanyNumber' - | 'ContactCenterNumber' - | 'ConferencingNumber' - | 'NumberPool' - | 'BusinessMobileNumber' - | 'PartnerBusinessMobileNumber' - | 'IntegrationNumber'; + | "MainCompanyNumber" + | "AdditionalCompanyNumber" + | "CompanyNumber" + | "DirectNumber" + | "CompanyFaxNumber" + | "ForwardedNumber" + | "ForwardedCompanyNumber" + | "ContactCenterNumber" + | "ConferencingNumber" + | "NumberPool" + | "BusinessMobileNumber" + | "PartnerBusinessMobileNumber" + | "IntegrationNumber"; /** * List of features of a phone number */ - features?: ('CallerId' | 'SmsSender' | 'A2PSmsSender' | 'MmsSender' | 'InternationalSmsSender' | 'Delegated')[]; + features?: ( + | "CallerId" + | "SmsSender" + | "A2PSmsSender" + | "MmsSender" + | "InternationalSmsSender" + | "Delegated" + )[]; } export default UserPhoneNumberInfo; diff --git a/packages/core/src/definitions/UserTemplates.ts b/packages/core/src/definitions/UserTemplates.ts index dec6c7ad..0caa1076 100644 --- a/packages/core/src/definitions/UserTemplates.ts +++ b/packages/core/src/definitions/UserTemplates.ts @@ -1,6 +1,6 @@ -import type TemplateInfo from './TemplateInfo'; -import type PageNavigationModel from './PageNavigationModel'; -import type EnumeratedPagingModel from './EnumeratedPagingModel'; +import type TemplateInfo from "./TemplateInfo"; +import type PageNavigationModel from "./PageNavigationModel"; +import type EnumeratedPagingModel from "./EnumeratedPagingModel"; interface UserTemplates { /** diff --git a/packages/core/src/definitions/UserTransitionInfo.ts b/packages/core/src/definitions/UserTransitionInfo.ts index 4e55dc73..6cb0b58a 100644 --- a/packages/core/src/definitions/UserTransitionInfo.ts +++ b/packages/core/src/definitions/UserTransitionInfo.ts @@ -1,6 +1,5 @@ /** * For `NotActivated` extensions only. Welcome email settings - * */ interface UserTransitionInfo { /** diff --git a/packages/core/src/definitions/UserVideoConfiguration.ts b/packages/core/src/definitions/UserVideoConfiguration.ts index 4a9913fe..276e1771 100644 --- a/packages/core/src/definitions/UserVideoConfiguration.ts +++ b/packages/core/src/definitions/UserVideoConfiguration.ts @@ -2,12 +2,12 @@ interface UserVideoConfiguration { /** * Video provider of the user */ - provider?: 'RCMeetings' | 'RCVideo' | 'None'; + provider?: "RCMeetings" | "RCVideo" | "None"; /** * Specifies if the user is 'paid' (has meeting license) or 'free' (w/o meeting license) */ - userLicenseType?: 'Paid' | 'Free'; + userLicenseType?: "Paid" | "Free"; } export default UserVideoConfiguration; diff --git a/packages/core/src/definitions/UtteranceInsightsObject.ts b/packages/core/src/definitions/UtteranceInsightsObject.ts index 46e86f4f..d30a16f0 100644 --- a/packages/core/src/definitions/UtteranceInsightsObject.ts +++ b/packages/core/src/definitions/UtteranceInsightsObject.ts @@ -1,5 +1,5 @@ -import type WordTimingsUnit from './WordTimingsUnit'; -import type UtteranceInsightsUnit from './UtteranceInsightsUnit'; +import type WordTimingsUnit from "./WordTimingsUnit"; +import type UtteranceInsightsUnit from "./UtteranceInsightsUnit"; interface UtteranceInsightsObject { /** @@ -33,12 +33,10 @@ interface UtteranceInsightsObject { */ speakerId?: string; - /** - */ + /** */ wordTimings?: WordTimingsUnit[]; - /** - */ + /** */ insights?: UtteranceInsightsUnit[]; } diff --git a/packages/core/src/definitions/UtteranceInsightsUnit.ts b/packages/core/src/definitions/UtteranceInsightsUnit.ts index 0647f436..6a10c50b 100644 --- a/packages/core/src/definitions/UtteranceInsightsUnit.ts +++ b/packages/core/src/definitions/UtteranceInsightsUnit.ts @@ -3,7 +3,7 @@ interface UtteranceInsightsUnit { * Required * Example: Emotion */ - name?: 'Emotion'; + name?: "Emotion"; /** * Required diff --git a/packages/core/src/definitions/UtteranceObject.ts b/packages/core/src/definitions/UtteranceObject.ts index f48b7a74..444480c6 100644 --- a/packages/core/src/definitions/UtteranceObject.ts +++ b/packages/core/src/definitions/UtteranceObject.ts @@ -1,4 +1,4 @@ -import type WordTimingsUnit from './WordTimingsUnit'; +import type WordTimingsUnit from "./WordTimingsUnit"; interface UtteranceObject { /** @@ -32,8 +32,7 @@ interface UtteranceObject { */ speakerId?: string; - /** - */ + /** */ wordTimings?: WordTimingsUnit[]; } diff --git a/packages/core/src/definitions/ValidateMultipleSwitchesRequest.ts b/packages/core/src/definitions/ValidateMultipleSwitchesRequest.ts index f83769ff..30b6f8f8 100644 --- a/packages/core/src/definitions/ValidateMultipleSwitchesRequest.ts +++ b/packages/core/src/definitions/ValidateMultipleSwitchesRequest.ts @@ -1,8 +1,7 @@ -import type SwitchInfo from './SwitchInfo'; +import type SwitchInfo from "./SwitchInfo"; interface ValidateMultipleSwitchesRequest { - /** - */ + /** */ records?: SwitchInfo[]; } diff --git a/packages/core/src/definitions/ValidateMultipleSwitchesResponse.ts b/packages/core/src/definitions/ValidateMultipleSwitchesResponse.ts index 0473db92..b496c494 100644 --- a/packages/core/src/definitions/ValidateMultipleSwitchesResponse.ts +++ b/packages/core/src/definitions/ValidateMultipleSwitchesResponse.ts @@ -1,8 +1,7 @@ -import type SwitchValidated from './SwitchValidated'; +import type SwitchValidated from "./SwitchValidated"; interface ValidateMultipleSwitchesResponse { - /** - */ + /** */ records?: SwitchValidated[]; } diff --git a/packages/core/src/definitions/ValidateMultipleWirelessPointsRequest.ts b/packages/core/src/definitions/ValidateMultipleWirelessPointsRequest.ts index de973cb7..26ecf679 100644 --- a/packages/core/src/definitions/ValidateMultipleWirelessPointsRequest.ts +++ b/packages/core/src/definitions/ValidateMultipleWirelessPointsRequest.ts @@ -1,8 +1,7 @@ -import type WirelessPointInfo from './WirelessPointInfo'; +import type WirelessPointInfo from "./WirelessPointInfo"; interface ValidateMultipleWirelessPointsRequest { - /** - */ + /** */ records?: WirelessPointInfo[]; } diff --git a/packages/core/src/definitions/ValidateMultipleWirelessPointsResponse.ts b/packages/core/src/definitions/ValidateMultipleWirelessPointsResponse.ts index 8603c0c1..78d5f5f2 100644 --- a/packages/core/src/definitions/ValidateMultipleWirelessPointsResponse.ts +++ b/packages/core/src/definitions/ValidateMultipleWirelessPointsResponse.ts @@ -1,8 +1,7 @@ -import type WirelessPointValidated from './WirelessPointValidated'; +import type WirelessPointValidated from "./WirelessPointValidated"; interface ValidateMultipleWirelessPointsResponse { - /** - */ + /** */ records?: WirelessPointValidated[]; } diff --git a/packages/core/src/definitions/VoicemailInfo.ts b/packages/core/src/definitions/VoicemailInfo.ts index a9a34eee..d49eed76 100644 --- a/packages/core/src/definitions/VoicemailInfo.ts +++ b/packages/core/src/definitions/VoicemailInfo.ts @@ -1,4 +1,4 @@ -import type RecipientInfo from './RecipientInfo'; +import type RecipientInfo from "./RecipientInfo"; /** * Specifies whether to take a voicemail and who should do it @@ -9,8 +9,7 @@ interface VoicemailInfo { */ enabled?: boolean; - /** - */ + /** */ recipient?: RecipientInfo; } diff --git a/packages/core/src/definitions/VoicemailMessageEvent.ts b/packages/core/src/definitions/VoicemailMessageEvent.ts index cf35869a..ab36229c 100644 --- a/packages/core/src/definitions/VoicemailMessageEvent.ts +++ b/packages/core/src/definitions/VoicemailMessageEvent.ts @@ -1,4 +1,4 @@ -import type VoicemailMessageEventBody from './VoicemailMessageEventBody'; +import type VoicemailMessageEventBody from "./VoicemailMessageEventBody"; interface VoicemailMessageEvent { /** @@ -26,8 +26,7 @@ interface VoicemailMessageEvent { */ ownerId?: string; - /** - */ + /** */ body?: VoicemailMessageEventBody; } diff --git a/packages/core/src/definitions/VoicemailMessageEventBody.ts b/packages/core/src/definitions/VoicemailMessageEventBody.ts index a2e16daf..f288b48a 100644 --- a/packages/core/src/definitions/VoicemailMessageEventBody.ts +++ b/packages/core/src/definitions/VoicemailMessageEventBody.ts @@ -1,6 +1,6 @@ -import type NotificationRecipientInfo from './NotificationRecipientInfo'; -import type SenderInfo from './SenderInfo'; -import type MessageAttachmentInfo from './MessageAttachmentInfo'; +import type NotificationRecipientInfo from "./NotificationRecipientInfo"; +import type SenderInfo from "./SenderInfo"; +import type MessageAttachmentInfo from "./MessageAttachmentInfo"; /** * Notification payload body @@ -17,14 +17,13 @@ interface VoicemailMessageEventBody { */ to?: NotificationRecipientInfo[]; - /** - */ + /** */ from?: SenderInfo; /** * Type of message */ - type?: 'Voicemail'; + type?: "Voicemail"; /** * Message creation date/time in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) @@ -43,12 +42,12 @@ interface VoicemailMessageEventBody { /** * Message read status */ - readStatus?: 'Read' | 'Unread'; + readStatus?: "Read" | "Unread"; /** * Message priority */ - priority?: 'Normal' | 'High'; + priority?: "Normal" | "High"; /** * Message attachment data @@ -60,7 +59,7 @@ interface VoicemailMessageEventBody { * directions are allowed. For example voicemail messages can * be only inbound */ - direction?: 'Inbound' | 'Outbound'; + direction?: "Inbound" | "Outbound"; /** * Message availability status. Message in 'Deleted' state is still @@ -68,7 +67,7 @@ interface VoicemailMessageEventBody { * that all attachments are already deleted and the message itself is about * to be physically deleted shortly */ - availability?: 'Alive' | 'Deleted' | 'Purged'; + availability?: "Alive" | "Deleted" | "Purged"; /** * Message subject. It replicates message text which is also returned as an attachment @@ -83,20 +82,26 @@ interface VoicemailMessageEventBody { * 'SendingFailed', then the 'SendingFailed' value is returned. In other cases * the 'Sent' status is returned */ - messageStatus?: 'Queued' | 'Sent' | 'Delivered' | 'DeliveryFailed' | 'SendingFailed' | 'Received'; + messageStatus?: + | "Queued" + | "Sent" + | "Delivered" + | "DeliveryFailed" + | "SendingFailed" + | "Received"; /** * Status of a voicemail to text transcription. Specifies if a voicemail message transcription is already completed or not * If 'VoicemailToText' feature is not activated for account, the 'NotAvailable' value is returned */ vmTranscriptionStatus?: - | 'NotAvailable' - | 'InProgress' - | 'TimedOut' - | 'Completed' - | 'CompletedPartially' - | 'Failed' - | 'Unknown'; + | "NotAvailable" + | "InProgress" + | "TimedOut" + | "Completed" + | "CompletedPartially" + | "Failed" + | "Unknown"; } export default VoicemailMessageEventBody; diff --git a/packages/core/src/definitions/WcsHostModel.ts b/packages/core/src/definitions/WcsHostModel.ts index 233c630e..ac78c36f 100644 --- a/packages/core/src/definitions/WcsHostModel.ts +++ b/packages/core/src/definitions/WcsHostModel.ts @@ -1,4 +1,4 @@ -import type RcwDomainUserModel from './RcwDomainUserModel'; +import type RcwDomainUserModel from "./RcwDomainUserModel"; /** * The internal IDs of RC-authenticated users. @@ -22,8 +22,7 @@ interface WcsHostModel { */ accountId?: string; - /** - */ + /** */ linkedUser?: RcwDomainUserModel; } diff --git a/packages/core/src/definitions/WcsInviteeListResource.ts b/packages/core/src/definitions/WcsInviteeListResource.ts index e5f36db8..56f84c0b 100644 --- a/packages/core/src/definitions/WcsInviteeListResource.ts +++ b/packages/core/src/definitions/WcsInviteeListResource.ts @@ -1,5 +1,5 @@ -import type InviteeResource from './InviteeResource'; -import type RcwPagingModel from './RcwPagingModel'; +import type InviteeResource from "./InviteeResource"; +import type RcwPagingModel from "./RcwPagingModel"; interface WcsInviteeListResource { /** diff --git a/packages/core/src/definitions/WcsSessionBaseModel.ts b/packages/core/src/definitions/WcsSessionBaseModel.ts index 69cc22d8..69481c95 100644 --- a/packages/core/src/definitions/WcsSessionBaseModel.ts +++ b/packages/core/src/definitions/WcsSessionBaseModel.ts @@ -53,7 +53,7 @@ interface WcsSessionBaseModel { * Session status (for the purposes of Configuration service) * Example: Scheduled */ - status?: 'Scheduled' | 'Active' | 'Finished'; + status?: "Scheduled" | "Active" | "Finished"; /** * The URI to join the webinar as a host diff --git a/packages/core/src/definitions/WcsSessionGlobalListResource.ts b/packages/core/src/definitions/WcsSessionGlobalListResource.ts index 2f514be8..4b92f913 100644 --- a/packages/core/src/definitions/WcsSessionGlobalListResource.ts +++ b/packages/core/src/definitions/WcsSessionGlobalListResource.ts @@ -1,5 +1,5 @@ -import type SessionGlobalListEntry from './SessionGlobalListEntry'; -import type RcwPagingModel from './RcwPagingModel'; +import type SessionGlobalListEntry from "./SessionGlobalListEntry"; +import type RcwPagingModel from "./RcwPagingModel"; interface WcsSessionGlobalListResource { /** diff --git a/packages/core/src/definitions/WcsSessionResource.ts b/packages/core/src/definitions/WcsSessionResource.ts index c3533f88..8c98d04a 100644 --- a/packages/core/src/definitions/WcsSessionResource.ts +++ b/packages/core/src/definitions/WcsSessionResource.ts @@ -73,7 +73,7 @@ interface WcsSessionResource { * Session status (for the purposes of Configuration service) * Example: Scheduled */ - status?: 'Scheduled' | 'Active' | 'Finished'; + status?: "Scheduled" | "Active" | "Finished"; /** * The URI to join the webinar as a host diff --git a/packages/core/src/definitions/WcsSessionWithLocaleCodeModel.ts b/packages/core/src/definitions/WcsSessionWithLocaleCodeModel.ts index e4a10658..9ee61170 100644 --- a/packages/core/src/definitions/WcsSessionWithLocaleCodeModel.ts +++ b/packages/core/src/definitions/WcsSessionWithLocaleCodeModel.ts @@ -53,7 +53,7 @@ interface WcsSessionWithLocaleCodeModel { * Session status (for the purposes of Configuration service) * Example: Scheduled */ - status?: 'Scheduled' | 'Active' | 'Finished'; + status?: "Scheduled" | "Active" | "Finished"; /** * The URI to join the webinar as a host diff --git a/packages/core/src/definitions/WcsWebinarRefModel.ts b/packages/core/src/definitions/WcsWebinarRefModel.ts index b0bccbd6..2b080744 100644 --- a/packages/core/src/definitions/WcsWebinarRefModel.ts +++ b/packages/core/src/definitions/WcsWebinarRefModel.ts @@ -1,4 +1,4 @@ -import type RcwLinkedUserModel from './RcwLinkedUserModel'; +import type RcwLinkedUserModel from "./RcwLinkedUserModel"; interface WcsWebinarRefModel { /** @@ -20,8 +20,7 @@ interface WcsWebinarRefModel { */ description?: string; - /** - */ + /** */ host?: RcwLinkedUserModel; } diff --git a/packages/core/src/definitions/WcsWebinarResource.ts b/packages/core/src/definitions/WcsWebinarResource.ts index 9eb0cc72..fe17021e 100644 --- a/packages/core/src/definitions/WcsWebinarResource.ts +++ b/packages/core/src/definitions/WcsWebinarResource.ts @@ -1,5 +1,5 @@ -import type WcsWebinarSettingsModel from './WcsWebinarSettingsModel'; -import type WcsHostModel from './WcsHostModel'; +import type WcsWebinarSettingsModel from "./WcsWebinarSettingsModel"; +import type WcsHostModel from "./WcsHostModel"; interface WcsWebinarResource { /** @@ -34,8 +34,7 @@ interface WcsWebinarResource { */ description?: string; - /** - */ + /** */ settings?: WcsWebinarSettingsModel; /** diff --git a/packages/core/src/definitions/WcsWebinarSettingsModel.ts b/packages/core/src/definitions/WcsWebinarSettingsModel.ts index 70a9ca00..470ac6ee 100644 --- a/packages/core/src/definitions/WcsWebinarSettingsModel.ts +++ b/packages/core/src/definitions/WcsWebinarSettingsModel.ts @@ -64,20 +64,29 @@ interface WcsWebinarSettingsModel { * Indicates if Panelists have to be authenticated users * Default: Guest */ - panelistAuthentication?: 'Guest' | 'AuthenticatedUser' | 'AuthenticatedCoworker'; + panelistAuthentication?: + | "Guest" + | "AuthenticatedUser" + | "AuthenticatedCoworker"; /** * Indicates if attendees have to be authenticated users * Default: Guest */ - attendeeAuthentication?: 'Guest' | 'AuthenticatedUser' | 'AuthenticatedCoworker'; + attendeeAuthentication?: + | "Guest" + | "AuthenticatedUser" + | "AuthenticatedCoworker"; /** * Indicates who can access webinar artifacts. Applies to recordings at present. * Applicable to other artifacts such as Q&A, Polls in the future. * Default: AuthenticatedUser */ - artifactsAccessAuthentication?: 'Guest' | 'AuthenticatedUser' | 'AuthenticatedCoworker'; + artifactsAccessAuthentication?: + | "Guest" + | "AuthenticatedUser" + | "AuthenticatedCoworker"; /** * Indicates if dial-in PSTN audio option is enabled for Panelists diff --git a/packages/core/src/definitions/WebSocketDeliveryMode.ts b/packages/core/src/definitions/WebSocketDeliveryMode.ts index ab4ad172..5228f630 100644 --- a/packages/core/src/definitions/WebSocketDeliveryMode.ts +++ b/packages/core/src/definitions/WebSocketDeliveryMode.ts @@ -3,7 +3,7 @@ interface WebSocketDeliveryMode { * The transport type for this subscription, or the channel by which an app should be notified of an event * Required */ - transportType?: 'WebSocket'; + transportType?: "WebSocket"; } export default WebSocketDeliveryMode; diff --git a/packages/core/src/definitions/WebhookDeliveryMode.ts b/packages/core/src/definitions/WebhookDeliveryMode.ts index 384ea781..c1f22094 100644 --- a/packages/core/src/definitions/WebhookDeliveryMode.ts +++ b/packages/core/src/definitions/WebhookDeliveryMode.ts @@ -3,7 +3,7 @@ interface WebhookDeliveryMode { * The transport type for this subscription, or the channel by which an app should be notified of an event * Required */ - transportType?: 'WebHook'; + transportType?: "WebHook"; /** * The URL to which notifications should be delivered. This is only applicable for the `WebHook` transport type, for which it is a required field. diff --git a/packages/core/src/definitions/WebhookDeliveryModeRequest.ts b/packages/core/src/definitions/WebhookDeliveryModeRequest.ts index d77b3d8e..10eb6a4d 100644 --- a/packages/core/src/definitions/WebhookDeliveryModeRequest.ts +++ b/packages/core/src/definitions/WebhookDeliveryModeRequest.ts @@ -3,7 +3,7 @@ interface WebhookDeliveryModeRequest { * The transport type for this subscription, or the channel by which an app should be notified of an event * Required */ - transportType?: 'WebHook'; + transportType?: "WebHook"; /** * The URL to which notifications should be delivered. This is only applicable for the `WebHook` transport type, for which it is a required field. diff --git a/packages/core/src/definitions/WebinarBaseModel.ts b/packages/core/src/definitions/WebinarBaseModel.ts index 201b99b1..75e75f51 100644 --- a/packages/core/src/definitions/WebinarBaseModel.ts +++ b/packages/core/src/definitions/WebinarBaseModel.ts @@ -1,4 +1,4 @@ -import type WcsWebinarSettingsModel from './WcsWebinarSettingsModel'; +import type WcsWebinarSettingsModel from "./WcsWebinarSettingsModel"; interface WebinarBaseModel { /** @@ -13,8 +13,7 @@ interface WebinarBaseModel { */ description?: string; - /** - */ + /** */ settings?: WcsWebinarSettingsModel; } diff --git a/packages/core/src/definitions/WebinarCreationRequest.ts b/packages/core/src/definitions/WebinarCreationRequest.ts index 48959e41..030e6fec 100644 --- a/packages/core/src/definitions/WebinarCreationRequest.ts +++ b/packages/core/src/definitions/WebinarCreationRequest.ts @@ -1,5 +1,5 @@ -import type WcsWebinarSettingsModel from './WcsWebinarSettingsModel'; -import type RcwLinkedUserModel from './RcwLinkedUserModel'; +import type WcsWebinarSettingsModel from "./WcsWebinarSettingsModel"; +import type RcwLinkedUserModel from "./RcwLinkedUserModel"; interface WebinarCreationRequest { /** @@ -15,12 +15,10 @@ interface WebinarCreationRequest { */ description?: string; - /** - */ + /** */ settings?: WcsWebinarSettingsModel; - /** - */ + /** */ host?: RcwLinkedUserModel; } diff --git a/packages/core/src/definitions/WebinarGeneratedModel.ts b/packages/core/src/definitions/WebinarGeneratedModel.ts index 97ea068a..645e44e9 100644 --- a/packages/core/src/definitions/WebinarGeneratedModel.ts +++ b/packages/core/src/definitions/WebinarGeneratedModel.ts @@ -1,4 +1,4 @@ -import type WcsHostModel from './WcsHostModel'; +import type WcsHostModel from "./WcsHostModel"; interface WebinarGeneratedModel { /** diff --git a/packages/core/src/definitions/WebinarHostModel.ts b/packages/core/src/definitions/WebinarHostModel.ts index 0b2574ce..974df5bb 100644 --- a/packages/core/src/definitions/WebinarHostModel.ts +++ b/packages/core/src/definitions/WebinarHostModel.ts @@ -1,4 +1,4 @@ -import type HostModel from './HostModel'; +import type HostModel from "./HostModel"; interface WebinarHostModel { /** diff --git a/packages/core/src/definitions/WebinarListResource.ts b/packages/core/src/definitions/WebinarListResource.ts index db29c0b6..9851e6d3 100644 --- a/packages/core/src/definitions/WebinarListResource.ts +++ b/packages/core/src/definitions/WebinarListResource.ts @@ -1,5 +1,5 @@ -import type WcsWebinarResource from './WcsWebinarResource'; -import type RcwPagingModel from './RcwPagingModel'; +import type WcsWebinarResource from "./WcsWebinarResource"; +import type RcwPagingModel from "./RcwPagingModel"; interface WebinarListResource { /** diff --git a/packages/core/src/definitions/WebinarRefModel.ts b/packages/core/src/definitions/WebinarRefModel.ts index 5c3ccc51..d4e5c08b 100644 --- a/packages/core/src/definitions/WebinarRefModel.ts +++ b/packages/core/src/definitions/WebinarRefModel.ts @@ -1,4 +1,4 @@ -import type HostModel from './HostModel'; +import type HostModel from "./HostModel"; interface WebinarRefModel { /** diff --git a/packages/core/src/definitions/WebinarResource.ts b/packages/core/src/definitions/WebinarResource.ts index 5ba98895..50ddaf64 100644 --- a/packages/core/src/definitions/WebinarResource.ts +++ b/packages/core/src/definitions/WebinarResource.ts @@ -1,5 +1,5 @@ -import type WebinarSettingsModel from './WebinarSettingsModel'; -import type HostModel from './HostModel'; +import type WebinarSettingsModel from "./WebinarSettingsModel"; +import type HostModel from "./HostModel"; interface WebinarResource { /** @@ -35,8 +35,7 @@ interface WebinarResource { */ description?: string; - /** - */ + /** */ settings?: WebinarSettingsModel; /** diff --git a/packages/core/src/definitions/WebinarSettingsModel.ts b/packages/core/src/definitions/WebinarSettingsModel.ts index fd4d1971..8c1c292b 100644 --- a/packages/core/src/definitions/WebinarSettingsModel.ts +++ b/packages/core/src/definitions/WebinarSettingsModel.ts @@ -65,20 +65,29 @@ interface WebinarSettingsModel { * Indicates if Panelists have to be authenticated users * Default: AuthenticatedCoworker */ - panelistAuthentication?: 'Guest' | 'AuthenticatedUser' | 'AuthenticatedCoworker'; + panelistAuthentication?: + | "Guest" + | "AuthenticatedUser" + | "AuthenticatedCoworker"; /** * Indicates if attendees have to be authenticated users * Default: AuthenticatedCoworker */ - attendeeAuthentication?: 'Guest' | 'AuthenticatedUser' | 'AuthenticatedCoworker'; + attendeeAuthentication?: + | "Guest" + | "AuthenticatedUser" + | "AuthenticatedCoworker"; /** * Indicates who can access webinar artifacts. Applies to recordings at present. * Applicable to other artifacts such as Q&A, Polls in the future. * Default: AuthenticatedUser */ - artifactsAccessAuthentication?: 'Guest' | 'AuthenticatedUser' | 'AuthenticatedCoworker'; + artifactsAccessAuthentication?: + | "Guest" + | "AuthenticatedUser" + | "AuthenticatedCoworker"; /** * Indicates if dial-in PSTN audio option is enabled by default diff --git a/packages/core/src/definitions/WeeklyScheduleInfo.ts b/packages/core/src/definitions/WeeklyScheduleInfo.ts index 363db4e7..04abc618 100644 --- a/packages/core/src/definitions/WeeklyScheduleInfo.ts +++ b/packages/core/src/definitions/WeeklyScheduleInfo.ts @@ -1,4 +1,4 @@ -import type TimeInterval from './TimeInterval'; +import type TimeInterval from "./TimeInterval"; /** * Weekly schedule diff --git a/packages/core/src/definitions/WirelessPointInfo.ts b/packages/core/src/definitions/WirelessPointInfo.ts index c6db4617..88a9f1ed 100644 --- a/packages/core/src/definitions/WirelessPointInfo.ts +++ b/packages/core/src/definitions/WirelessPointInfo.ts @@ -1,6 +1,6 @@ -import type EmergencyAddressAutoUpdateSiteInfo from './EmergencyAddressAutoUpdateSiteInfo'; -import type EmergencyAddressInfo from './EmergencyAddressInfo'; -import type ERLLocationInfo from './ERLLocationInfo'; +import type EmergencyAddressAutoUpdateSiteInfo from "./EmergencyAddressAutoUpdateSiteInfo"; +import type EmergencyAddressInfo from "./EmergencyAddressInfo"; +import type ERLLocationInfo from "./ERLLocationInfo"; interface WirelessPointInfo { /** @@ -26,8 +26,7 @@ interface WirelessPointInfo { */ name?: string; - /** - */ + /** */ site?: EmergencyAddressAutoUpdateSiteInfo; /** @@ -35,8 +34,7 @@ interface WirelessPointInfo { */ emergencyAddress?: EmergencyAddressInfo; - /** - */ + /** */ emergencyLocation?: ERLLocationInfo; /** diff --git a/packages/core/src/definitions/WirelessPointValidated.ts b/packages/core/src/definitions/WirelessPointValidated.ts index 0f2b0753..f591cd59 100644 --- a/packages/core/src/definitions/WirelessPointValidated.ts +++ b/packages/core/src/definitions/WirelessPointValidated.ts @@ -1,4 +1,4 @@ -import type ValidationError from './ValidationError'; +import type ValidationError from "./ValidationError"; interface WirelessPointValidated { /** @@ -15,10 +15,9 @@ interface WirelessPointValidated { /** * Validation result status */ - status?: 'Valid' | 'Invalid'; + status?: "Valid" | "Invalid"; - /** - */ + /** */ errors?: ValidationError[]; } diff --git a/packages/core/src/definitions/WirelessPointsList.ts b/packages/core/src/definitions/WirelessPointsList.ts index 256dfb00..338a711f 100644 --- a/packages/core/src/definitions/WirelessPointsList.ts +++ b/packages/core/src/definitions/WirelessPointsList.ts @@ -1,6 +1,6 @@ -import type WirelessPointInfo from './WirelessPointInfo'; -import type PageNavigationModel from './PageNavigationModel'; -import type EnumeratedPagingModel from './EnumeratedPagingModel'; +import type WirelessPointInfo from "./WirelessPointInfo"; +import type PageNavigationModel from "./PageNavigationModel"; +import type EnumeratedPagingModel from "./EnumeratedPagingModel"; interface WirelessPointsList { /** @@ -14,12 +14,10 @@ interface WirelessPointsList { */ records?: WirelessPointInfo[]; - /** - */ + /** */ navigation?: PageNavigationModel; - /** - */ + /** */ paging?: EnumeratedPagingModel; } diff --git a/packages/core/src/index.ts b/packages/core/src/index.ts index 3806fc39..642c36c4 100644 --- a/packages/core/src/index.ts +++ b/packages/core/src/index.ts @@ -1,16 +1,22 @@ -import Rest from './Rest'; -import type GetTokenRequest from './definitions/GetTokenRequest'; -import type TokenInfo from './definitions/TokenInfo'; -import Restapi from './paths/Restapi'; -import Scim from './paths/Scim'; -import type SdkExtension from './SdkExtension'; -import Analytics from './paths/Analytics'; -import Ai from './paths/Ai'; -import Rcvideo from './paths/Rcvideo'; -import Webinar from './paths/Webinar'; -import type RestException from './RestException'; -import type { RestRequestConfig, RestResponse, RingCentralInterface, RestMethod, RestOptions } from './types'; -import TeamMessaging from './paths/TeamMessaging'; +import Rest from "./Rest"; +import type GetTokenRequest from "./definitions/GetTokenRequest"; +import type TokenInfo from "./definitions/TokenInfo"; +import Restapi from "./paths/Restapi"; +import Scim from "./paths/Scim"; +import type SdkExtension from "./SdkExtension"; +import Analytics from "./paths/Analytics"; +import Ai from "./paths/Ai"; +import Rcvideo from "./paths/Rcvideo"; +import Webinar from "./paths/Webinar"; +import type RestException from "./RestException"; +import type { + RestMethod, + RestOptions, + RestRequestConfig, + RestResponse, + RingCentralInterface, +} from "./types"; +import TeamMessaging from "./paths/TeamMessaging"; interface JwtFlowOptions { jwt: string; @@ -75,9 +81,17 @@ class RingCentral implements RingCentralInterface { config?: RestRequestConfig, ): Promise> { try { - const r = await this.rest.request(method, endpoint, content, queryParams, config); + const r = await this.rest.request( + method, + endpoint, + content, + queryParams, + config, + ); RingCentral.config.logger.info( - `[${new Date().toLocaleString()} HTTP ${method} ${r.status} ${r.statusText}] ${this.rest.server} ${endpoint}`, + `[${ + new Date().toLocaleString() + } HTTP ${method} ${r.status} ${r.statusText}] ${this.rest.server} ${endpoint}`, ); return r; } catch (e) { @@ -85,15 +99,21 @@ class RingCentral implements RingCentralInterface { if (re.response) { const r = re.response; RingCentral.config.logger.info( - `[${new Date().toLocaleString()} HTTP ${method} ${r.status} ${r.statusText}] ${this.rest.server} ${endpoint}`, + `[${ + new Date().toLocaleString() + } HTTP ${method} ${r.status} ${r.statusText}] ${this.rest.server} ${endpoint}`, ); } throw e; } } - public async get(endpoint: string, queryParams?: {}, config?: RestRequestConfig): Promise> { - return this.request('GET', endpoint, undefined, queryParams, config); + public async get( + endpoint: string, + queryParams?: {}, + config?: RestRequestConfig, + ): Promise> { + return this.request("GET", endpoint, undefined, queryParams, config); } // eslint-disable-next-line max-params @@ -103,7 +123,7 @@ class RingCentral implements RingCentralInterface { queryParams?: {}, config?: RestRequestConfig, ): Promise> { - return this.request('DELETE', endpoint, content, queryParams, config); + return this.request("DELETE", endpoint, content, queryParams, config); } // eslint-disable-next-line max-params @@ -113,7 +133,7 @@ class RingCentral implements RingCentralInterface { queryParams?: {}, config?: RestRequestConfig, ): Promise> { - return this.request('POST', endpoint, content, queryParams, config); + return this.request("POST", endpoint, content, queryParams, config); } // eslint-disable-next-line max-params @@ -123,7 +143,7 @@ class RingCentral implements RingCentralInterface { queryParams?: {}, config?: RestRequestConfig, ): Promise> { - return this.request('PUT', endpoint, content, queryParams, config); + return this.request("PUT", endpoint, content, queryParams, config); } // eslint-disable-next-line max-params @@ -133,7 +153,7 @@ class RingCentral implements RingCentralInterface { queryParams?: {}, config?: RestRequestConfig, ): Promise> { - return this.request('PATCH', endpoint, content, queryParams, config); + return this.request("PATCH", endpoint, content, queryParams, config); } public async getToken(getTokenRequest: GetTokenRequest): Promise { @@ -142,26 +162,31 @@ class RingCentral implements RingCentralInterface { return this.token; } - public async authorize(options: PasswordFlowOptions | AuthCodeFlowOptions | JwtFlowOptions): Promise { + public async authorize( + options: PasswordFlowOptions | AuthCodeFlowOptions | JwtFlowOptions, + ): Promise { const getTokenRequest: GetTokenRequest = {}; - if ('username' in options) { + if ("username" in options) { // eslint-disable-next-line no-console - console.warn('Username/password authentication is deprecated. Please migrate to the JWT grant type.'); - getTokenRequest.grant_type = 'password'; + console.warn( + "Username/password authentication is deprecated. Please migrate to the JWT grant type.", + ); + getTokenRequest.grant_type = "password"; getTokenRequest.username = options.username; getTokenRequest.extension = options.extension; getTokenRequest.password = options.password; - } else if ('code' in options) { - getTokenRequest.grant_type = 'authorization_code'; + } else if ("code" in options) { + getTokenRequest.grant_type = "authorization_code"; getTokenRequest.code = options.code; getTokenRequest.redirect_uri = options.redirect_uri; // PKCE: https://medium.com/ringcentral-developers/use-authorization-code-pkce-for-ringcentral-api-in-client-app-e9108f04b5f0 getTokenRequest.code_verifier = options.code_verifier; - } else if ('jwt' in options) { - getTokenRequest.grant_type = 'urn:ietf:params:oauth:grant-type:jwt-bearer'; + } else if ("jwt" in options) { + getTokenRequest.grant_type = + "urn:ietf:params:oauth:grant-type:jwt-bearer"; getTokenRequest.assertion = options.jwt; } else { - throw new Error('Unsupported authorization flow'); + throw new Error("Unsupported authorization flow"); } return this.getToken(getTokenRequest); } @@ -169,7 +194,9 @@ class RingCentral implements RingCentralInterface { /** * Just a synonym of authorize */ - public async login(options: PasswordFlowOptions | AuthCodeFlowOptions | JwtFlowOptions): Promise { + public async login( + options: PasswordFlowOptions | AuthCodeFlowOptions | JwtFlowOptions, + ): Promise { return this.authorize(options); } @@ -184,10 +211,10 @@ class RingCentral implements RingCentralInterface { public async refresh(refreshToken?: string): Promise { const tokenToRefresh = refreshToken ?? this.token?.refresh_token; if (!tokenToRefresh) { - throw new Error('tokenToRefresh must be specified.'); + throw new Error("tokenToRefresh must be specified."); } const getTokenRequest: GetTokenRequest = {}; - getTokenRequest.grant_type = 'refresh_token'; + getTokenRequest.grant_type = "refresh_token"; getTokenRequest.refresh_token = tokenToRefresh; return this.getToken(getTokenRequest); } @@ -213,7 +240,8 @@ class RingCentral implements RingCentralInterface { // no clientSecret is fine, since PKCE doesn't have clientSecret return; } - const temp = tokenToRevoke ?? this.token?.access_token ?? this.token?.refresh_token; + const temp = tokenToRevoke ?? this.token?.access_token ?? + this.token?.refresh_token; await this.restapi(null) .oauth() .revoke() @@ -221,11 +249,11 @@ class RingCentral implements RingCentralInterface { this.token = undefined; } - public restapi(apiVersion: string | null = 'v1.0'): Restapi { + public restapi(apiVersion: string | null = "v1.0"): Restapi { return new Restapi(this, apiVersion); } - public scim(version: string | null = 'v2'): Scim { + public scim(version: string | null = "v2"): Scim { return new Scim(this, version); } diff --git a/packages/core/src/paths/Ai/Audio/V1/Async/SpeakerDiarize/index.ts b/packages/core/src/paths/Ai/Audio/V1/Async/SpeakerDiarize/index.ts index d7f0273b..5aecf8c3 100644 --- a/packages/core/src/paths/Ai/Audio/V1/Async/SpeakerDiarize/index.ts +++ b/packages/core/src/paths/Ai/Audio/V1/Async/SpeakerDiarize/index.ts @@ -1,7 +1,11 @@ -import type CaiAsyncApiResponse from '../../../../../../definitions/CaiAsyncApiResponse'; -import type CaiSpeakerDiarizeParameters from '../../../../../../definitions/CaiSpeakerDiarizeParameters'; -import type DiarizeInput from '../../../../../../definitions/DiarizeInput'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../../types'; +import type CaiAsyncApiResponse from "../../../../../../definitions/CaiAsyncApiResponse"; +import type CaiSpeakerDiarizeParameters from "../../../../../../definitions/CaiSpeakerDiarizeParameters"; +import type DiarizeInput from "../../../../../../definitions/DiarizeInput"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../../types"; class Index { public rc: RingCentralInterface; @@ -28,7 +32,12 @@ class Index { queryParams?: CaiSpeakerDiarizeParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.post(this.path(), diarizeInput, queryParams, restRequestConfig); + const r = await this.rc.post( + this.path(), + diarizeInput, + queryParams, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Ai/Audio/V1/Async/SpeakerIdentify/index.ts b/packages/core/src/paths/Ai/Audio/V1/Async/SpeakerIdentify/index.ts index 493ffe93..4275ca3d 100644 --- a/packages/core/src/paths/Ai/Audio/V1/Async/SpeakerIdentify/index.ts +++ b/packages/core/src/paths/Ai/Audio/V1/Async/SpeakerIdentify/index.ts @@ -1,7 +1,11 @@ -import type CaiAsyncApiResponse from '../../../../../../definitions/CaiAsyncApiResponse'; -import type CaiSpeakerIdentifyParameters from '../../../../../../definitions/CaiSpeakerIdentifyParameters'; -import type IdentifyInput from '../../../../../../definitions/IdentifyInput'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../../types'; +import type CaiAsyncApiResponse from "../../../../../../definitions/CaiAsyncApiResponse"; +import type CaiSpeakerIdentifyParameters from "../../../../../../definitions/CaiSpeakerIdentifyParameters"; +import type IdentifyInput from "../../../../../../definitions/IdentifyInput"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../../types"; class Index { public rc: RingCentralInterface; @@ -26,7 +30,12 @@ class Index { queryParams?: CaiSpeakerIdentifyParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.post(this.path(), identifyInput, queryParams, restRequestConfig); + const r = await this.rc.post( + this.path(), + identifyInput, + queryParams, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Ai/Audio/V1/Async/SpeechToText/index.ts b/packages/core/src/paths/Ai/Audio/V1/Async/SpeechToText/index.ts index b7c43197..ec8576ba 100644 --- a/packages/core/src/paths/Ai/Audio/V1/Async/SpeechToText/index.ts +++ b/packages/core/src/paths/Ai/Audio/V1/Async/SpeechToText/index.ts @@ -1,7 +1,11 @@ -import type CaiAsyncApiResponse from '../../../../../../definitions/CaiAsyncApiResponse'; -import type CaiSpeechToTextParameters from '../../../../../../definitions/CaiSpeechToTextParameters'; -import type AsrInput from '../../../../../../definitions/AsrInput'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../../types'; +import type CaiAsyncApiResponse from "../../../../../../definitions/CaiAsyncApiResponse"; +import type CaiSpeechToTextParameters from "../../../../../../definitions/CaiSpeechToTextParameters"; +import type AsrInput from "../../../../../../definitions/AsrInput"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../../types"; class Index { public rc: RingCentralInterface; @@ -26,7 +30,12 @@ class Index { queryParams?: CaiSpeechToTextParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.post(this.path(), asrInput, queryParams, restRequestConfig); + const r = await this.rc.post( + this.path(), + asrInput, + queryParams, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Ai/Audio/V1/Async/index.ts b/packages/core/src/paths/Ai/Audio/V1/Async/index.ts index cf39ced8..ec4f25af 100644 --- a/packages/core/src/paths/Ai/Audio/V1/Async/index.ts +++ b/packages/core/src/paths/Ai/Audio/V1/Async/index.ts @@ -1,7 +1,10 @@ -import SpeakerIdentify from './SpeakerIdentify'; -import SpeakerDiarize from './SpeakerDiarize'; -import SpeechToText from './SpeechToText'; -import type { RingCentralInterface, ParentInterface } from '../../../../../types'; +import SpeakerIdentify from "./SpeakerIdentify"; +import SpeakerDiarize from "./SpeakerDiarize"; +import SpeechToText from "./SpeechToText"; +import type { + ParentInterface, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; diff --git a/packages/core/src/paths/Ai/Audio/V1/Enrollments/index.ts b/packages/core/src/paths/Ai/Audio/V1/Enrollments/index.ts index e104a5d4..597bda41 100644 --- a/packages/core/src/paths/Ai/Audio/V1/Enrollments/index.ts +++ b/packages/core/src/paths/Ai/Audio/V1/Enrollments/index.ts @@ -1,16 +1,23 @@ -import type EnrollmentPatchInput from '../../../../../definitions/EnrollmentPatchInput'; -import type EnrollmentStatus from '../../../../../definitions/EnrollmentStatus'; -import type EnrollmentInput from '../../../../../definitions/EnrollmentInput'; -import type ListEnrolledSpeakers from '../../../../../definitions/ListEnrolledSpeakers'; -import type CaiEnrollmentsListParameters from '../../../../../definitions/CaiEnrollmentsListParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type EnrollmentPatchInput from "../../../../../definitions/EnrollmentPatchInput"; +import type EnrollmentStatus from "../../../../../definitions/EnrollmentStatus"; +import type EnrollmentInput from "../../../../../definitions/EnrollmentInput"; +import type ListEnrolledSpeakers from "../../../../../definitions/ListEnrolledSpeakers"; +import type CaiEnrollmentsListParameters from "../../../../../definitions/CaiEnrollmentsListParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; public _parent: ParentInterface; public speakerId: string | null; - public constructor(_parent: ParentInterface, speakerId: string | null = null) { + public constructor( + _parent: ParentInterface, + speakerId: string | null = null, + ) { this._parent = _parent; this.rc = _parent.rc; this.speakerId = speakerId; @@ -32,7 +39,11 @@ class Index { queryParams?: CaiEnrollmentsListParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(false), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(false), + queryParams, + restRequestConfig, + ); return r.data; } @@ -47,7 +58,12 @@ class Index { enrollmentInput: EnrollmentInput, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.post(this.path(false), enrollmentInput, undefined, restRequestConfig); + const r = await this.rc.post( + this.path(false), + enrollmentInput, + undefined, + restRequestConfig, + ); return r.data; } @@ -58,11 +74,17 @@ class Index { * Rate Limit Group: Heavy * App Permission: AI */ - public async get(restRequestConfig?: RestRequestConfig): Promise { + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { if (this.speakerId === null) { - throw new Error('speakerId must be specified.'); + throw new Error("speakerId must be specified."); } - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } @@ -75,9 +97,14 @@ class Index { */ public async delete(restRequestConfig?: RestRequestConfig): Promise { if (this.speakerId === null) { - throw new Error('speakerId must be specified.'); + throw new Error("speakerId must be specified."); } - const r = await this.rc.delete(this.path(), {}, undefined, restRequestConfig); + const r = await this.rc.delete( + this.path(), + {}, + undefined, + restRequestConfig, + ); return r.data; } @@ -93,9 +120,14 @@ class Index { restRequestConfig?: RestRequestConfig, ): Promise { if (this.speakerId === null) { - throw new Error('speakerId must be specified.'); + throw new Error("speakerId must be specified."); } - const r = await this.rc.patch(this.path(), enrollmentPatchInput, undefined, restRequestConfig); + const r = await this.rc.patch( + this.path(), + enrollmentPatchInput, + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Ai/Audio/V1/index.ts b/packages/core/src/paths/Ai/Audio/V1/index.ts index 19ff0653..4ef14bb8 100644 --- a/packages/core/src/paths/Ai/Audio/V1/index.ts +++ b/packages/core/src/paths/Ai/Audio/V1/index.ts @@ -1,6 +1,6 @@ -import Enrollments from './Enrollments'; -import Async from './Async'; -import type { RingCentralInterface, ParentInterface } from '../../../../types'; +import Enrollments from "./Enrollments"; +import Async from "./Async"; +import type { ParentInterface, RingCentralInterface } from "../../../../types"; class Index { public rc: RingCentralInterface; diff --git a/packages/core/src/paths/Ai/Audio/index.ts b/packages/core/src/paths/Ai/Audio/index.ts index 1c31c7c3..4a9cec1b 100644 --- a/packages/core/src/paths/Ai/Audio/index.ts +++ b/packages/core/src/paths/Ai/Audio/index.ts @@ -1,5 +1,5 @@ -import V1 from './V1'; -import type { RingCentralInterface, ParentInterface } from '../../../types'; +import V1 from "./V1"; +import type { ParentInterface, RingCentralInterface } from "../../../types"; class Index { public rc: RingCentralInterface; diff --git a/packages/core/src/paths/Ai/Insights/V1/Async/AnalyzeInteraction/index.ts b/packages/core/src/paths/Ai/Insights/V1/Async/AnalyzeInteraction/index.ts index c9130ac5..71fe1b09 100644 --- a/packages/core/src/paths/Ai/Insights/V1/Async/AnalyzeInteraction/index.ts +++ b/packages/core/src/paths/Ai/Insights/V1/Async/AnalyzeInteraction/index.ts @@ -1,7 +1,11 @@ -import type CaiAsyncApiResponse from '../../../../../../definitions/CaiAsyncApiResponse'; -import type CaiAnalyzeInteractionParameters from '../../../../../../definitions/CaiAnalyzeInteractionParameters'; -import type InteractionInput from '../../../../../../definitions/InteractionInput'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../../types'; +import type CaiAsyncApiResponse from "../../../../../../definitions/CaiAsyncApiResponse"; +import type CaiAnalyzeInteractionParameters from "../../../../../../definitions/CaiAnalyzeInteractionParameters"; +import type InteractionInput from "../../../../../../definitions/InteractionInput"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../../types"; class Index { public rc: RingCentralInterface; @@ -27,7 +31,12 @@ class Index { queryParams?: CaiAnalyzeInteractionParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.post(this.path(), interactionInput, queryParams, restRequestConfig); + const r = await this.rc.post( + this.path(), + interactionInput, + queryParams, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Ai/Insights/V1/Async/index.ts b/packages/core/src/paths/Ai/Insights/V1/Async/index.ts index 69223b12..d032b059 100644 --- a/packages/core/src/paths/Ai/Insights/V1/Async/index.ts +++ b/packages/core/src/paths/Ai/Insights/V1/Async/index.ts @@ -1,5 +1,8 @@ -import AnalyzeInteraction from './AnalyzeInteraction'; -import type { RingCentralInterface, ParentInterface } from '../../../../../types'; +import AnalyzeInteraction from "./AnalyzeInteraction"; +import type { + ParentInterface, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; diff --git a/packages/core/src/paths/Ai/Insights/V1/index.ts b/packages/core/src/paths/Ai/Insights/V1/index.ts index 60bcc3e6..63ee80a5 100644 --- a/packages/core/src/paths/Ai/Insights/V1/index.ts +++ b/packages/core/src/paths/Ai/Insights/V1/index.ts @@ -1,5 +1,5 @@ -import Async from './Async'; -import type { RingCentralInterface, ParentInterface } from '../../../../types'; +import Async from "./Async"; +import type { ParentInterface, RingCentralInterface } from "../../../../types"; class Index { public rc: RingCentralInterface; diff --git a/packages/core/src/paths/Ai/Insights/index.ts b/packages/core/src/paths/Ai/Insights/index.ts index 4324125a..5bdfc319 100644 --- a/packages/core/src/paths/Ai/Insights/index.ts +++ b/packages/core/src/paths/Ai/Insights/index.ts @@ -1,5 +1,5 @@ -import V1 from './V1'; -import type { RingCentralInterface, ParentInterface } from '../../../types'; +import V1 from "./V1"; +import type { ParentInterface, RingCentralInterface } from "../../../types"; class Index { public rc: RingCentralInterface; diff --git a/packages/core/src/paths/Ai/Ringsense/V1/Public/Accounts/Domains/Records/Insights/index.ts b/packages/core/src/paths/Ai/Ringsense/V1/Public/Accounts/Domains/Records/Insights/index.ts index 5494c0cc..3232fbaf 100644 --- a/packages/core/src/paths/Ai/Ringsense/V1/Public/Accounts/Domains/Records/Insights/index.ts +++ b/packages/core/src/paths/Ai/Ringsense/V1/Public/Accounts/Domains/Records/Insights/index.ts @@ -1,6 +1,10 @@ -import type RecordingInsights from '../../../../../../../../../definitions/RecordingInsights'; -import type GetRecordingInsightsParameters from '../../../../../../../../../definitions/GetRecordingInsightsParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../../../../../types'; +import type RecordingInsights from "../../../../../../../../../definitions/RecordingInsights"; +import type GetRecordingInsightsParameters from "../../../../../../../../../definitions/GetRecordingInsightsParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../../../../../types"; class Index { public rc: RingCentralInterface; @@ -24,7 +28,11 @@ class Index { queryParams?: GetRecordingInsightsParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(), + queryParams, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Ai/Ringsense/V1/Public/Accounts/Domains/Records/index.ts b/packages/core/src/paths/Ai/Ringsense/V1/Public/Accounts/Domains/Records/index.ts index 9c553b8e..a8aebe9a 100644 --- a/packages/core/src/paths/Ai/Ringsense/V1/Public/Accounts/Domains/Records/index.ts +++ b/packages/core/src/paths/Ai/Ringsense/V1/Public/Accounts/Domains/Records/index.ts @@ -1,12 +1,18 @@ -import Insights from './Insights'; -import type { RingCentralInterface, ParentInterface } from '../../../../../../../../types'; +import Insights from "./Insights"; +import type { + ParentInterface, + RingCentralInterface, +} from "../../../../../../../../types"; class Index { public rc: RingCentralInterface; public _parent: ParentInterface; public sourceRecordId: string | null; - public constructor(_parent: ParentInterface, sourceRecordId: string | null = null) { + public constructor( + _parent: ParentInterface, + sourceRecordId: string | null = null, + ) { this._parent = _parent; this.rc = _parent.rc; this.sourceRecordId = sourceRecordId; diff --git a/packages/core/src/paths/Ai/Ringsense/V1/Public/Accounts/Domains/index.ts b/packages/core/src/paths/Ai/Ringsense/V1/Public/Accounts/Domains/index.ts index 9521cd69..3a5f13e7 100644 --- a/packages/core/src/paths/Ai/Ringsense/V1/Public/Accounts/Domains/index.ts +++ b/packages/core/src/paths/Ai/Ringsense/V1/Public/Accounts/Domains/index.ts @@ -1,5 +1,8 @@ -import Records from './Records'; -import type { RingCentralInterface, ParentInterface } from '../../../../../../../types'; +import Records from "./Records"; +import type { + ParentInterface, + RingCentralInterface, +} from "../../../../../../../types"; class Index { public rc: RingCentralInterface; diff --git a/packages/core/src/paths/Ai/Ringsense/V1/Public/Accounts/index.ts b/packages/core/src/paths/Ai/Ringsense/V1/Public/Accounts/index.ts index cec105bc..8deae926 100644 --- a/packages/core/src/paths/Ai/Ringsense/V1/Public/Accounts/index.ts +++ b/packages/core/src/paths/Ai/Ringsense/V1/Public/Accounts/index.ts @@ -1,12 +1,18 @@ -import Domains from './Domains'; -import type { RingCentralInterface, ParentInterface } from '../../../../../../types'; +import Domains from "./Domains"; +import type { + ParentInterface, + RingCentralInterface, +} from "../../../../../../types"; class Index { public rc: RingCentralInterface; public _parent: ParentInterface; public accountId: string | null; - public constructor(_parent: ParentInterface, accountId: string | null = null) { + public constructor( + _parent: ParentInterface, + accountId: string | null = null, + ) { this._parent = _parent; this.rc = _parent.rc; this.accountId = accountId; diff --git a/packages/core/src/paths/Ai/Ringsense/V1/Public/index.ts b/packages/core/src/paths/Ai/Ringsense/V1/Public/index.ts index b265a406..8f97047b 100644 --- a/packages/core/src/paths/Ai/Ringsense/V1/Public/index.ts +++ b/packages/core/src/paths/Ai/Ringsense/V1/Public/index.ts @@ -1,5 +1,8 @@ -import Accounts from './Accounts'; -import type { RingCentralInterface, ParentInterface } from '../../../../../types'; +import Accounts from "./Accounts"; +import type { + ParentInterface, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; diff --git a/packages/core/src/paths/Ai/Ringsense/V1/index.ts b/packages/core/src/paths/Ai/Ringsense/V1/index.ts index 0176dc29..f0b11e4d 100644 --- a/packages/core/src/paths/Ai/Ringsense/V1/index.ts +++ b/packages/core/src/paths/Ai/Ringsense/V1/index.ts @@ -1,5 +1,5 @@ -import Public from './Public'; -import type { RingCentralInterface, ParentInterface } from '../../../../types'; +import Public from "./Public"; +import type { ParentInterface, RingCentralInterface } from "../../../../types"; class Index { public rc: RingCentralInterface; diff --git a/packages/core/src/paths/Ai/Ringsense/index.ts b/packages/core/src/paths/Ai/Ringsense/index.ts index 3d22147b..1933668b 100644 --- a/packages/core/src/paths/Ai/Ringsense/index.ts +++ b/packages/core/src/paths/Ai/Ringsense/index.ts @@ -1,5 +1,5 @@ -import V1 from './V1'; -import type { RingCentralInterface, ParentInterface } from '../../../types'; +import V1 from "./V1"; +import type { ParentInterface, RingCentralInterface } from "../../../types"; class Index { public rc: RingCentralInterface; diff --git a/packages/core/src/paths/Ai/Status/V1/Jobs/index.ts b/packages/core/src/paths/Ai/Status/V1/Jobs/index.ts index 9deea231..0f4a3bc9 100644 --- a/packages/core/src/paths/Ai/Status/V1/Jobs/index.ts +++ b/packages/core/src/paths/Ai/Status/V1/Jobs/index.ts @@ -1,5 +1,9 @@ -import type JobStatusResponse from '../../../../../definitions/JobStatusResponse'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type JobStatusResponse from "../../../../../definitions/JobStatusResponse"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -24,11 +28,17 @@ class Index { * Rate Limit Group: Heavy * App Permission: AI */ - public async get(restRequestConfig?: RestRequestConfig): Promise { + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { if (this.jobId === null) { - throw new Error('jobId must be specified.'); + throw new Error("jobId must be specified."); } - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Ai/Status/V1/index.ts b/packages/core/src/paths/Ai/Status/V1/index.ts index fdd1f5b1..d6c618f1 100644 --- a/packages/core/src/paths/Ai/Status/V1/index.ts +++ b/packages/core/src/paths/Ai/Status/V1/index.ts @@ -1,5 +1,5 @@ -import Jobs from './Jobs'; -import type { RingCentralInterface, ParentInterface } from '../../../../types'; +import Jobs from "./Jobs"; +import type { ParentInterface, RingCentralInterface } from "../../../../types"; class Index { public rc: RingCentralInterface; diff --git a/packages/core/src/paths/Ai/Status/index.ts b/packages/core/src/paths/Ai/Status/index.ts index 49513c52..b15b4d64 100644 --- a/packages/core/src/paths/Ai/Status/index.ts +++ b/packages/core/src/paths/Ai/Status/index.ts @@ -1,5 +1,5 @@ -import V1 from './V1'; -import type { RingCentralInterface, ParentInterface } from '../../../types'; +import V1 from "./V1"; +import type { ParentInterface, RingCentralInterface } from "../../../types"; class Index { public rc: RingCentralInterface; diff --git a/packages/core/src/paths/Ai/Text/V1/Async/Punctuate/index.ts b/packages/core/src/paths/Ai/Text/V1/Async/Punctuate/index.ts index 43e8293d..a0b2fd4d 100644 --- a/packages/core/src/paths/Ai/Text/V1/Async/Punctuate/index.ts +++ b/packages/core/src/paths/Ai/Text/V1/Async/Punctuate/index.ts @@ -1,7 +1,11 @@ -import type CaiAsyncApiResponse from '../../../../../../definitions/CaiAsyncApiResponse'; -import type CaiPunctuateParameters from '../../../../../../definitions/CaiPunctuateParameters'; -import type PunctuateInput from '../../../../../../definitions/PunctuateInput'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../../types'; +import type CaiAsyncApiResponse from "../../../../../../definitions/CaiAsyncApiResponse"; +import type CaiPunctuateParameters from "../../../../../../definitions/CaiPunctuateParameters"; +import type PunctuateInput from "../../../../../../definitions/PunctuateInput"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../../types"; class Index { public rc: RingCentralInterface; @@ -26,7 +30,12 @@ class Index { queryParams?: CaiPunctuateParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.post(this.path(), punctuateInput, queryParams, restRequestConfig); + const r = await this.rc.post( + this.path(), + punctuateInput, + queryParams, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Ai/Text/V1/Async/Summarize/index.ts b/packages/core/src/paths/Ai/Text/V1/Async/Summarize/index.ts index 894f6898..46fce17d 100644 --- a/packages/core/src/paths/Ai/Text/V1/Async/Summarize/index.ts +++ b/packages/core/src/paths/Ai/Text/V1/Async/Summarize/index.ts @@ -1,7 +1,11 @@ -import type CaiAsyncApiResponse from '../../../../../../definitions/CaiAsyncApiResponse'; -import type CaiSummarizeParameters from '../../../../../../definitions/CaiSummarizeParameters'; -import type SummaryInput from '../../../../../../definitions/SummaryInput'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../../types'; +import type CaiAsyncApiResponse from "../../../../../../definitions/CaiAsyncApiResponse"; +import type CaiSummarizeParameters from "../../../../../../definitions/CaiSummarizeParameters"; +import type SummaryInput from "../../../../../../definitions/SummaryInput"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../../types"; class Index { public rc: RingCentralInterface; @@ -28,7 +32,12 @@ class Index { queryParams?: CaiSummarizeParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.post(this.path(), summaryInput, queryParams, restRequestConfig); + const r = await this.rc.post( + this.path(), + summaryInput, + queryParams, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Ai/Text/V1/Async/index.ts b/packages/core/src/paths/Ai/Text/V1/Async/index.ts index f14b3e54..6aded169 100644 --- a/packages/core/src/paths/Ai/Text/V1/Async/index.ts +++ b/packages/core/src/paths/Ai/Text/V1/Async/index.ts @@ -1,6 +1,9 @@ -import Punctuate from './Punctuate'; -import Summarize from './Summarize'; -import type { RingCentralInterface, ParentInterface } from '../../../../../types'; +import Punctuate from "./Punctuate"; +import Summarize from "./Summarize"; +import type { + ParentInterface, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; diff --git a/packages/core/src/paths/Ai/Text/V1/index.ts b/packages/core/src/paths/Ai/Text/V1/index.ts index 60bcc3e6..63ee80a5 100644 --- a/packages/core/src/paths/Ai/Text/V1/index.ts +++ b/packages/core/src/paths/Ai/Text/V1/index.ts @@ -1,5 +1,5 @@ -import Async from './Async'; -import type { RingCentralInterface, ParentInterface } from '../../../../types'; +import Async from "./Async"; +import type { ParentInterface, RingCentralInterface } from "../../../../types"; class Index { public rc: RingCentralInterface; diff --git a/packages/core/src/paths/Ai/Text/index.ts b/packages/core/src/paths/Ai/Text/index.ts index aef06a6e..db1132b5 100644 --- a/packages/core/src/paths/Ai/Text/index.ts +++ b/packages/core/src/paths/Ai/Text/index.ts @@ -1,5 +1,5 @@ -import V1 from './V1'; -import type { RingCentralInterface, ParentInterface } from '../../../types'; +import V1 from "./V1"; +import type { ParentInterface, RingCentralInterface } from "../../../types"; class Index { public rc: RingCentralInterface; diff --git a/packages/core/src/paths/Ai/index.ts b/packages/core/src/paths/Ai/index.ts index 67a26efb..a80ca68e 100644 --- a/packages/core/src/paths/Ai/index.ts +++ b/packages/core/src/paths/Ai/index.ts @@ -1,9 +1,9 @@ -import Ringsense from './Ringsense'; -import Insights from './Insights'; -import Status from './Status'; -import Audio from './Audio'; -import Text from './Text'; -import type { RingCentralInterface } from '../../types'; +import Ringsense from "./Ringsense"; +import Insights from "./Insights"; +import Status from "./Status"; +import Audio from "./Audio"; +import Text from "./Text"; +import type { RingCentralInterface } from "../../types"; class Index { public rc: RingCentralInterface; @@ -12,7 +12,7 @@ class Index { this.rc = rc; } public path(): string { - return '/ai'; + return "/ai"; } public text(): Text { diff --git a/packages/core/src/paths/Analytics/Calls/V1/Accounts/Aggregation/Fetch/index.ts b/packages/core/src/paths/Analytics/Calls/V1/Accounts/Aggregation/Fetch/index.ts index 18544cf6..d4fd436e 100644 --- a/packages/core/src/paths/Analytics/Calls/V1/Accounts/Aggregation/Fetch/index.ts +++ b/packages/core/src/paths/Analytics/Calls/V1/Accounts/Aggregation/Fetch/index.ts @@ -1,7 +1,11 @@ -import type AggregationResponse from '../../../../../../../definitions/AggregationResponse'; -import type AnalyticsCallsAggregationFetchParameters from '../../../../../../../definitions/AnalyticsCallsAggregationFetchParameters'; -import type AggregationRequest from '../../../../../../../definitions/AggregationRequest'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../../../types'; +import type AggregationResponse from "../../../../../../../definitions/AggregationResponse"; +import type AnalyticsCallsAggregationFetchParameters from "../../../../../../../definitions/AnalyticsCallsAggregationFetchParameters"; +import type AggregationRequest from "../../../../../../../definitions/AggregationRequest"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../../../types"; class Index { public rc: RingCentralInterface; @@ -26,7 +30,12 @@ class Index { queryParams?: AnalyticsCallsAggregationFetchParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.post(this.path(), aggregationRequest, queryParams, restRequestConfig); + const r = await this.rc.post( + this.path(), + aggregationRequest, + queryParams, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Analytics/Calls/V1/Accounts/Aggregation/index.ts b/packages/core/src/paths/Analytics/Calls/V1/Accounts/Aggregation/index.ts index 6f606e97..5a71104d 100644 --- a/packages/core/src/paths/Analytics/Calls/V1/Accounts/Aggregation/index.ts +++ b/packages/core/src/paths/Analytics/Calls/V1/Accounts/Aggregation/index.ts @@ -1,5 +1,8 @@ -import Fetch from './Fetch'; -import type { RingCentralInterface, ParentInterface } from '../../../../../../types'; +import Fetch from "./Fetch"; +import type { + ParentInterface, + RingCentralInterface, +} from "../../../../../../types"; class Index { public rc: RingCentralInterface; diff --git a/packages/core/src/paths/Analytics/Calls/V1/Accounts/Timeline/Fetch/index.ts b/packages/core/src/paths/Analytics/Calls/V1/Accounts/Timeline/Fetch/index.ts index ea0784e8..04dbbc68 100644 --- a/packages/core/src/paths/Analytics/Calls/V1/Accounts/Timeline/Fetch/index.ts +++ b/packages/core/src/paths/Analytics/Calls/V1/Accounts/Timeline/Fetch/index.ts @@ -1,7 +1,11 @@ -import type TimelineResponse from '../../../../../../../definitions/TimelineResponse'; -import type AnalyticsCallsTimelineFetchParameters from '../../../../../../../definitions/AnalyticsCallsTimelineFetchParameters'; -import type TimelineRequest from '../../../../../../../definitions/TimelineRequest'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../../../types'; +import type TimelineResponse from "../../../../../../../definitions/TimelineResponse"; +import type AnalyticsCallsTimelineFetchParameters from "../../../../../../../definitions/AnalyticsCallsTimelineFetchParameters"; +import type TimelineRequest from "../../../../../../../definitions/TimelineRequest"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../../../types"; class Index { public rc: RingCentralInterface; @@ -26,7 +30,12 @@ class Index { queryParams?: AnalyticsCallsTimelineFetchParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.post(this.path(), timelineRequest, queryParams, restRequestConfig); + const r = await this.rc.post( + this.path(), + timelineRequest, + queryParams, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Analytics/Calls/V1/Accounts/Timeline/index.ts b/packages/core/src/paths/Analytics/Calls/V1/Accounts/Timeline/index.ts index 99472c51..1482bed7 100644 --- a/packages/core/src/paths/Analytics/Calls/V1/Accounts/Timeline/index.ts +++ b/packages/core/src/paths/Analytics/Calls/V1/Accounts/Timeline/index.ts @@ -1,5 +1,8 @@ -import Fetch from './Fetch'; -import type { RingCentralInterface, ParentInterface } from '../../../../../../types'; +import Fetch from "./Fetch"; +import type { + ParentInterface, + RingCentralInterface, +} from "../../../../../../types"; class Index { public rc: RingCentralInterface; diff --git a/packages/core/src/paths/Analytics/Calls/V1/Accounts/index.ts b/packages/core/src/paths/Analytics/Calls/V1/Accounts/index.ts index e77f7561..1b10ed0b 100644 --- a/packages/core/src/paths/Analytics/Calls/V1/Accounts/index.ts +++ b/packages/core/src/paths/Analytics/Calls/V1/Accounts/index.ts @@ -1,13 +1,19 @@ -import Aggregation from './Aggregation'; -import Timeline from './Timeline'; -import type { RingCentralInterface, ParentInterface } from '../../../../../types'; +import Aggregation from "./Aggregation"; +import Timeline from "./Timeline"; +import type { + ParentInterface, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; public _parent: ParentInterface; public accountId: string | null; - public constructor(_parent: ParentInterface, accountId: string | null = null) { + public constructor( + _parent: ParentInterface, + accountId: string | null = null, + ) { this._parent = _parent; this.rc = _parent.rc; this.accountId = accountId; diff --git a/packages/core/src/paths/Analytics/Calls/V1/index.ts b/packages/core/src/paths/Analytics/Calls/V1/index.ts index 3b95111f..f701bccd 100644 --- a/packages/core/src/paths/Analytics/Calls/V1/index.ts +++ b/packages/core/src/paths/Analytics/Calls/V1/index.ts @@ -1,5 +1,5 @@ -import Accounts from './Accounts'; -import type { RingCentralInterface, ParentInterface } from '../../../../types'; +import Accounts from "./Accounts"; +import type { ParentInterface, RingCentralInterface } from "../../../../types"; class Index { public rc: RingCentralInterface; diff --git a/packages/core/src/paths/Analytics/Calls/index.ts b/packages/core/src/paths/Analytics/Calls/index.ts index 6f9835d2..4e4c4cc8 100644 --- a/packages/core/src/paths/Analytics/Calls/index.ts +++ b/packages/core/src/paths/Analytics/Calls/index.ts @@ -1,5 +1,5 @@ -import V1 from './V1'; -import type { RingCentralInterface, ParentInterface } from '../../../types'; +import V1 from "./V1"; +import type { ParentInterface, RingCentralInterface } from "../../../types"; class Index { public rc: RingCentralInterface; diff --git a/packages/core/src/paths/Analytics/index.ts b/packages/core/src/paths/Analytics/index.ts index 6630e851..4b07e35d 100644 --- a/packages/core/src/paths/Analytics/index.ts +++ b/packages/core/src/paths/Analytics/index.ts @@ -1,5 +1,5 @@ -import Calls from './Calls'; -import type { RingCentralInterface } from '../../types'; +import Calls from "./Calls"; +import type { RingCentralInterface } from "../../types"; class Index { public rc: RingCentralInterface; @@ -8,7 +8,7 @@ class Index { this.rc = rc; } public path(): string { - return '/analytics'; + return "/analytics"; } public calls(): Calls { diff --git a/packages/core/src/paths/Rcvideo/V1/Account/Extension/Recordings/index.ts b/packages/core/src/paths/Rcvideo/V1/Account/Extension/Recordings/index.ts index 450eb838..19d35aa0 100644 --- a/packages/core/src/paths/Rcvideo/V1/Account/Extension/Recordings/index.ts +++ b/packages/core/src/paths/Rcvideo/V1/Account/Extension/Recordings/index.ts @@ -1,6 +1,10 @@ -import type CloudRecordings from '../../../../../../definitions/CloudRecordings'; -import type GetExtensionRecordingsParameters from '../../../../../../definitions/GetExtensionRecordingsParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../../types'; +import type CloudRecordings from "../../../../../../definitions/CloudRecordings"; +import type GetExtensionRecordingsParameters from "../../../../../../definitions/GetExtensionRecordingsParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../../types"; class Index { public rc: RingCentralInterface; @@ -26,7 +30,11 @@ class Index { queryParams?: GetExtensionRecordingsParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(), + queryParams, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Rcvideo/V1/Account/Extension/index.ts b/packages/core/src/paths/Rcvideo/V1/Account/Extension/index.ts index faf89ea2..dfb618f3 100644 --- a/packages/core/src/paths/Rcvideo/V1/Account/Extension/index.ts +++ b/packages/core/src/paths/Rcvideo/V1/Account/Extension/index.ts @@ -1,12 +1,18 @@ -import Recordings from './Recordings'; -import type { RingCentralInterface, ParentInterface } from '../../../../../types'; +import Recordings from "./Recordings"; +import type { + ParentInterface, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; public _parent: ParentInterface; public extensionId: string | null; - public constructor(_parent: ParentInterface, extensionId: string | null = null) { + public constructor( + _parent: ParentInterface, + extensionId: string | null = null, + ) { this._parent = _parent; this.rc = _parent.rc; this.extensionId = extensionId; diff --git a/packages/core/src/paths/Rcvideo/V1/Account/Recordings/index.ts b/packages/core/src/paths/Rcvideo/V1/Account/Recordings/index.ts index 2aea48d9..82fcd73a 100644 --- a/packages/core/src/paths/Rcvideo/V1/Account/Recordings/index.ts +++ b/packages/core/src/paths/Rcvideo/V1/Account/Recordings/index.ts @@ -1,6 +1,10 @@ -import type CloudRecordings from '../../../../../definitions/CloudRecordings'; -import type GetAccountRecordingsParameters from '../../../../../definitions/GetAccountRecordingsParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type CloudRecordings from "../../../../../definitions/CloudRecordings"; +import type GetAccountRecordingsParameters from "../../../../../definitions/GetAccountRecordingsParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -26,7 +30,11 @@ class Index { queryParams?: GetAccountRecordingsParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(), + queryParams, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Rcvideo/V1/Account/index.ts b/packages/core/src/paths/Rcvideo/V1/Account/index.ts index 38088976..1f8b064b 100644 --- a/packages/core/src/paths/Rcvideo/V1/Account/index.ts +++ b/packages/core/src/paths/Rcvideo/V1/Account/index.ts @@ -1,13 +1,16 @@ -import Recordings from './Recordings'; -import Extension from './Extension'; -import type { RingCentralInterface, ParentInterface } from '../../../../types'; +import Recordings from "./Recordings"; +import Extension from "./Extension"; +import type { ParentInterface, RingCentralInterface } from "../../../../types"; class Index { public rc: RingCentralInterface; public _parent: ParentInterface; public accountId: string | null; - public constructor(_parent: ParentInterface, accountId: string | null = null) { + public constructor( + _parent: ParentInterface, + accountId: string | null = null, + ) { this._parent = _parent; this.rc = _parent.rc; this.accountId = accountId; diff --git a/packages/core/src/paths/Rcvideo/V1/Accounts/Extensions/Delegators/index.ts b/packages/core/src/paths/Rcvideo/V1/Accounts/Extensions/Delegators/index.ts index b2de868d..6c13ed0b 100644 --- a/packages/core/src/paths/Rcvideo/V1/Accounts/Extensions/Delegators/index.ts +++ b/packages/core/src/paths/Rcvideo/V1/Accounts/Extensions/Delegators/index.ts @@ -1,5 +1,9 @@ -import type DelegatorsListResult from '../../../../../../definitions/DelegatorsListResult'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../../types'; +import type DelegatorsListResult from "../../../../../../definitions/DelegatorsListResult"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../../types"; class Index { public rc: RingCentralInterface; @@ -19,8 +23,14 @@ class Index { * Rate Limit Group: Medium * App Permission: Video */ - public async get(restRequestConfig?: RestRequestConfig): Promise { - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Rcvideo/V1/Accounts/Extensions/index.ts b/packages/core/src/paths/Rcvideo/V1/Accounts/Extensions/index.ts index 54526fc1..57d2b24e 100644 --- a/packages/core/src/paths/Rcvideo/V1/Accounts/Extensions/index.ts +++ b/packages/core/src/paths/Rcvideo/V1/Accounts/Extensions/index.ts @@ -1,12 +1,18 @@ -import Delegators from './Delegators'; -import type { RingCentralInterface, ParentInterface } from '../../../../../types'; +import Delegators from "./Delegators"; +import type { + ParentInterface, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; public _parent: ParentInterface; public extensionId: string | null; - public constructor(_parent: ParentInterface, extensionId: string | null = null) { + public constructor( + _parent: ParentInterface, + extensionId: string | null = null, + ) { this._parent = _parent; this.rc = _parent.rc; this.extensionId = extensionId; diff --git a/packages/core/src/paths/Rcvideo/V1/Accounts/index.ts b/packages/core/src/paths/Rcvideo/V1/Accounts/index.ts index 664aa129..f4c5171d 100644 --- a/packages/core/src/paths/Rcvideo/V1/Accounts/index.ts +++ b/packages/core/src/paths/Rcvideo/V1/Accounts/index.ts @@ -1,12 +1,15 @@ -import Extensions from './Extensions'; -import type { RingCentralInterface, ParentInterface } from '../../../../types'; +import Extensions from "./Extensions"; +import type { ParentInterface, RingCentralInterface } from "../../../../types"; class Index { public rc: RingCentralInterface; public _parent: ParentInterface; public accountId: string | null; - public constructor(_parent: ParentInterface, accountId: string | null = null) { + public constructor( + _parent: ParentInterface, + accountId: string | null = null, + ) { this._parent = _parent; this.rc = _parent.rc; this.accountId = accountId; diff --git a/packages/core/src/paths/Rcvideo/V1/History/Meetings/index.ts b/packages/core/src/paths/Rcvideo/V1/History/Meetings/index.ts index 17843553..e43dfdb9 100644 --- a/packages/core/src/paths/Rcvideo/V1/History/Meetings/index.ts +++ b/packages/core/src/paths/Rcvideo/V1/History/Meetings/index.ts @@ -1,14 +1,21 @@ -import type Meeting from '../../../../../definitions/Meeting'; -import type MeetingPage from '../../../../../definitions/MeetingPage'; -import type ListVideoMeetingsParameters from '../../../../../definitions/ListVideoMeetingsParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type Meeting from "../../../../../definitions/Meeting"; +import type MeetingPage from "../../../../../definitions/MeetingPage"; +import type ListVideoMeetingsParameters from "../../../../../definitions/ListVideoMeetingsParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; public _parent: ParentInterface; public meetingId: string | null; - public constructor(_parent: ParentInterface, meetingId: string | null = null) { + public constructor( + _parent: ParentInterface, + meetingId: string | null = null, + ) { this._parent = _parent; this.rc = _parent.rc; this.meetingId = meetingId; @@ -30,7 +37,11 @@ class Index { queryParams?: ListVideoMeetingsParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(false), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(false), + queryParams, + restRequestConfig, + ); return r.data; } @@ -43,9 +54,13 @@ class Index { */ public async get(restRequestConfig?: RestRequestConfig): Promise { if (this.meetingId === null) { - throw new Error('meetingId must be specified.'); + throw new Error("meetingId must be specified."); } - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Rcvideo/V1/History/index.ts b/packages/core/src/paths/Rcvideo/V1/History/index.ts index cc44660b..054b20bf 100644 --- a/packages/core/src/paths/Rcvideo/V1/History/index.ts +++ b/packages/core/src/paths/Rcvideo/V1/History/index.ts @@ -1,5 +1,5 @@ -import Meetings from './Meetings'; -import type { RingCentralInterface, ParentInterface } from '../../../../types'; +import Meetings from "./Meetings"; +import type { ParentInterface, RingCentralInterface } from "../../../../types"; class Index { public rc: RingCentralInterface; diff --git a/packages/core/src/paths/Rcvideo/V1/index.ts b/packages/core/src/paths/Rcvideo/V1/index.ts index 58e86301..ee100f67 100644 --- a/packages/core/src/paths/Rcvideo/V1/index.ts +++ b/packages/core/src/paths/Rcvideo/V1/index.ts @@ -1,7 +1,7 @@ -import Accounts from './Accounts'; -import History from './History'; -import Account from './Account'; -import type { RingCentralInterface, ParentInterface } from '../../../types'; +import Accounts from "./Accounts"; +import History from "./History"; +import Account from "./Account"; +import type { ParentInterface, RingCentralInterface } from "../../../types"; class Index { public rc: RingCentralInterface; diff --git a/packages/core/src/paths/Rcvideo/V2/Account/Extension/Bridges/Default/index.ts b/packages/core/src/paths/Rcvideo/V2/Account/Extension/Bridges/Default/index.ts index 4d8a04a3..09b64809 100644 --- a/packages/core/src/paths/Rcvideo/V2/Account/Extension/Bridges/Default/index.ts +++ b/packages/core/src/paths/Rcvideo/V2/Account/Extension/Bridges/Default/index.ts @@ -1,5 +1,9 @@ -import type BridgeResponse from '../../../../../../../definitions/BridgeResponse'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../../../types'; +import type BridgeResponse from "../../../../../../../definitions/BridgeResponse"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../../../types"; class Index { public rc: RingCentralInterface; @@ -21,8 +25,14 @@ class Index { * Rate Limit Group: Medium * App Permission: Video */ - public async get(restRequestConfig?: RestRequestConfig): Promise { - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Rcvideo/V2/Account/Extension/Bridges/index.ts b/packages/core/src/paths/Rcvideo/V2/Account/Extension/Bridges/index.ts index 5e12bb11..6d8391ca 100644 --- a/packages/core/src/paths/Rcvideo/V2/Account/Extension/Bridges/index.ts +++ b/packages/core/src/paths/Rcvideo/V2/Account/Extension/Bridges/index.ts @@ -1,7 +1,11 @@ -import Default from './Default'; -import type BridgeResponse from '../../../../../../definitions/BridgeResponse'; -import type CreateBridgeRequest from '../../../../../../definitions/CreateBridgeRequest'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../../types'; +import Default from "./Default"; +import type BridgeResponse from "../../../../../../definitions/BridgeResponse"; +import type CreateBridgeRequest from "../../../../../../definitions/CreateBridgeRequest"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../../types"; class Index { public rc: RingCentralInterface; @@ -28,7 +32,12 @@ class Index { createBridgeRequest: CreateBridgeRequest, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.post(this.path(), createBridgeRequest, undefined, restRequestConfig); + const r = await this.rc.post( + this.path(), + createBridgeRequest, + undefined, + restRequestConfig, + ); return r.data; } diff --git a/packages/core/src/paths/Rcvideo/V2/Account/Extension/index.ts b/packages/core/src/paths/Rcvideo/V2/Account/Extension/index.ts index ce2325e3..976e313a 100644 --- a/packages/core/src/paths/Rcvideo/V2/Account/Extension/index.ts +++ b/packages/core/src/paths/Rcvideo/V2/Account/Extension/index.ts @@ -1,12 +1,18 @@ -import Bridges from './Bridges'; -import type { RingCentralInterface, ParentInterface } from '../../../../../types'; +import Bridges from "./Bridges"; +import type { + ParentInterface, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; public _parent: ParentInterface; public extensionId: string | null; - public constructor(_parent: ParentInterface, extensionId: string | null = null) { + public constructor( + _parent: ParentInterface, + extensionId: string | null = null, + ) { this._parent = _parent; this.rc = _parent.rc; this.extensionId = extensionId; diff --git a/packages/core/src/paths/Rcvideo/V2/Account/index.ts b/packages/core/src/paths/Rcvideo/V2/Account/index.ts index 351e6664..e9ac998c 100644 --- a/packages/core/src/paths/Rcvideo/V2/Account/index.ts +++ b/packages/core/src/paths/Rcvideo/V2/Account/index.ts @@ -1,12 +1,15 @@ -import Extension from './Extension'; -import type { RingCentralInterface, ParentInterface } from '../../../../types'; +import Extension from "./Extension"; +import type { ParentInterface, RingCentralInterface } from "../../../../types"; class Index { public rc: RingCentralInterface; public _parent: ParentInterface; public accountId: string | null; - public constructor(_parent: ParentInterface, accountId: string | null = null) { + public constructor( + _parent: ParentInterface, + accountId: string | null = null, + ) { this._parent = _parent; this.rc = _parent.rc; this.accountId = accountId; diff --git a/packages/core/src/paths/Rcvideo/V2/Bridges/Pin/Pstn/index.ts b/packages/core/src/paths/Rcvideo/V2/Bridges/Pin/Pstn/index.ts index 93ffc83f..a7303426 100644 --- a/packages/core/src/paths/Rcvideo/V2/Bridges/Pin/Pstn/index.ts +++ b/packages/core/src/paths/Rcvideo/V2/Bridges/Pin/Pstn/index.ts @@ -1,6 +1,10 @@ -import type BridgeResponse from '../../../../../../definitions/BridgeResponse'; -import type GetBridgeByPstnPinParameters from '../../../../../../definitions/GetBridgeByPstnPinParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../../types'; +import type BridgeResponse from "../../../../../../definitions/BridgeResponse"; +import type GetBridgeByPstnPinParameters from "../../../../../../definitions/GetBridgeByPstnPinParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../../types"; class Index { public rc: RingCentralInterface; @@ -30,9 +34,13 @@ class Index { restRequestConfig?: RestRequestConfig, ): Promise { if (this.pin === null) { - throw new Error('pin must be specified.'); + throw new Error("pin must be specified."); } - const r = await this.rc.get(this.path(), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(), + queryParams, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Rcvideo/V2/Bridges/Pin/Web/index.ts b/packages/core/src/paths/Rcvideo/V2/Bridges/Pin/Web/index.ts index 01a7d9f9..9611fb98 100644 --- a/packages/core/src/paths/Rcvideo/V2/Bridges/Pin/Web/index.ts +++ b/packages/core/src/paths/Rcvideo/V2/Bridges/Pin/Web/index.ts @@ -1,6 +1,10 @@ -import type BridgeResponse from '../../../../../../definitions/BridgeResponse'; -import type GetBridgeByWebPinParameters from '../../../../../../definitions/GetBridgeByWebPinParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../../types'; +import type BridgeResponse from "../../../../../../definitions/BridgeResponse"; +import type GetBridgeByWebPinParameters from "../../../../../../definitions/GetBridgeByWebPinParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../../types"; class Index { public rc: RingCentralInterface; @@ -32,9 +36,13 @@ class Index { restRequestConfig?: RestRequestConfig, ): Promise { if (this.pin === null) { - throw new Error('pin must be specified.'); + throw new Error("pin must be specified."); } - const r = await this.rc.get(this.path(), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(), + queryParams, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Rcvideo/V2/Bridges/Pin/index.ts b/packages/core/src/paths/Rcvideo/V2/Bridges/Pin/index.ts index 0d35c0fd..0b7dc8a2 100644 --- a/packages/core/src/paths/Rcvideo/V2/Bridges/Pin/index.ts +++ b/packages/core/src/paths/Rcvideo/V2/Bridges/Pin/index.ts @@ -1,6 +1,9 @@ -import Pstn from './Pstn'; -import Web from './Web'; -import type { RingCentralInterface, ParentInterface } from '../../../../../types'; +import Pstn from "./Pstn"; +import Web from "./Web"; +import type { + ParentInterface, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; diff --git a/packages/core/src/paths/Rcvideo/V2/Bridges/index.ts b/packages/core/src/paths/Rcvideo/V2/Bridges/index.ts index e2f4a320..f0a303b1 100644 --- a/packages/core/src/paths/Rcvideo/V2/Bridges/index.ts +++ b/packages/core/src/paths/Rcvideo/V2/Bridges/index.ts @@ -1,8 +1,12 @@ -import Pin from './Pin'; -import type UpdateBridgeRequest from '../../../../definitions/UpdateBridgeRequest'; -import type BridgeResponse from '../../../../definitions/BridgeResponse'; -import type GetBridgeParameters from '../../../../definitions/GetBridgeParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../types'; +import Pin from "./Pin"; +import type UpdateBridgeRequest from "../../../../definitions/UpdateBridgeRequest"; +import type BridgeResponse from "../../../../definitions/BridgeResponse"; +import type GetBridgeParameters from "../../../../definitions/GetBridgeParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../types"; class Index { public rc: RingCentralInterface; @@ -27,11 +31,18 @@ class Index { * Rate Limit Group: Medium * App Permission: Video */ - public async get(queryParams?: GetBridgeParameters, restRequestConfig?: RestRequestConfig): Promise { + public async get( + queryParams?: GetBridgeParameters, + restRequestConfig?: RestRequestConfig, + ): Promise { if (this.bridgeId === null) { - throw new Error('bridgeId must be specified.'); + throw new Error("bridgeId must be specified."); } - const r = await this.rc.get(this.path(), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(), + queryParams, + restRequestConfig, + ); return r.data; } @@ -46,9 +57,14 @@ class Index { */ public async delete(restRequestConfig?: RestRequestConfig): Promise { if (this.bridgeId === null) { - throw new Error('bridgeId must be specified.'); + throw new Error("bridgeId must be specified."); } - const r = await this.rc.delete(this.path(), {}, undefined, restRequestConfig); + const r = await this.rc.delete( + this.path(), + {}, + undefined, + restRequestConfig, + ); return r.data; } @@ -66,9 +82,14 @@ class Index { restRequestConfig?: RestRequestConfig, ): Promise { if (this.bridgeId === null) { - throw new Error('bridgeId must be specified.'); + throw new Error("bridgeId must be specified."); } - const r = await this.rc.patch(this.path(), updateBridgeRequest, undefined, restRequestConfig); + const r = await this.rc.patch( + this.path(), + updateBridgeRequest, + undefined, + restRequestConfig, + ); return r.data; } diff --git a/packages/core/src/paths/Rcvideo/V2/index.ts b/packages/core/src/paths/Rcvideo/V2/index.ts index cbd41062..0d4e7d6c 100644 --- a/packages/core/src/paths/Rcvideo/V2/index.ts +++ b/packages/core/src/paths/Rcvideo/V2/index.ts @@ -1,6 +1,6 @@ -import Bridges from './Bridges'; -import Account from './Account'; -import type { RingCentralInterface, ParentInterface } from '../../../types'; +import Bridges from "./Bridges"; +import Account from "./Account"; +import type { ParentInterface, RingCentralInterface } from "../../../types"; class Index { public rc: RingCentralInterface; diff --git a/packages/core/src/paths/Rcvideo/index.ts b/packages/core/src/paths/Rcvideo/index.ts index 8285d421..f2e41a2e 100644 --- a/packages/core/src/paths/Rcvideo/index.ts +++ b/packages/core/src/paths/Rcvideo/index.ts @@ -1,6 +1,6 @@ -import V2 from './V2'; -import V1 from './V1'; -import type { RingCentralInterface } from '../../types'; +import V2 from "./V2"; +import V1 from "./V1"; +import type { RingCentralInterface } from "../../types"; class Index { public rc: RingCentralInterface; @@ -9,7 +9,7 @@ class Index { this.rc = rc; } public path(): string { - return '/rcvideo'; + return "/rcvideo"; } public v1(): V1 { diff --git a/packages/core/src/paths/Restapi/Account/A2pSms/Batches/index.ts b/packages/core/src/paths/Restapi/Account/A2pSms/Batches/index.ts index a505f30b..78af4cba 100644 --- a/packages/core/src/paths/Restapi/Account/A2pSms/Batches/index.ts +++ b/packages/core/src/paths/Restapi/Account/A2pSms/Batches/index.ts @@ -1,8 +1,12 @@ -import type MessageBatchResponse from '../../../../../definitions/MessageBatchResponse'; -import type MessageBatchCreateRequest from '../../../../../definitions/MessageBatchCreateRequest'; -import type BatchListResponse from '../../../../../definitions/BatchListResponse'; -import type ListA2PBatchesParameters from '../../../../../definitions/ListA2PBatchesParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type MessageBatchResponse from "../../../../../definitions/MessageBatchResponse"; +import type MessageBatchCreateRequest from "../../../../../definitions/MessageBatchCreateRequest"; +import type BatchListResponse from "../../../../../definitions/BatchListResponse"; +import type ListA2PBatchesParameters from "../../../../../definitions/ListA2PBatchesParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -33,7 +37,11 @@ class Index { queryParams?: ListA2PBatchesParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(false), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(false), + queryParams, + restRequestConfig, + ); return r.data; } @@ -67,11 +75,17 @@ class Index { * Rate Limit Group: Light * App Permission: A2PSMS */ - public async get(restRequestConfig?: RestRequestConfig): Promise { + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { if (this.batchId === null) { - throw new Error('batchId must be specified.'); + throw new Error("batchId must be specified."); } - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Account/A2pSms/Messages/index.ts b/packages/core/src/paths/Restapi/Account/A2pSms/Messages/index.ts index 0c562e17..70236019 100644 --- a/packages/core/src/paths/Restapi/Account/A2pSms/Messages/index.ts +++ b/packages/core/src/paths/Restapi/Account/A2pSms/Messages/index.ts @@ -1,14 +1,21 @@ -import type MessageDetailsResponse from '../../../../../definitions/MessageDetailsResponse'; -import type MessageListResponse from '../../../../../definitions/MessageListResponse'; -import type ListA2PSMSParameters from '../../../../../definitions/ListA2PSMSParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type MessageDetailsResponse from "../../../../../definitions/MessageDetailsResponse"; +import type MessageListResponse from "../../../../../definitions/MessageListResponse"; +import type ListA2PSMSParameters from "../../../../../definitions/ListA2PSMSParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; public _parent: ParentInterface; public messageId: string | null; - public constructor(_parent: ParentInterface, messageId: string | null = null) { + public constructor( + _parent: ParentInterface, + messageId: string | null = null, + ) { this._parent = _parent; this.rc = _parent.rc; this.messageId = messageId; @@ -30,7 +37,11 @@ class Index { queryParams?: ListA2PSMSParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(false), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(false), + queryParams, + restRequestConfig, + ); return r.data; } @@ -41,11 +52,17 @@ class Index { * Rate Limit Group: Light * App Permission: A2PSMS */ - public async get(restRequestConfig?: RestRequestConfig): Promise { + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { if (this.messageId === null) { - throw new Error('messageId must be specified.'); + throw new Error("messageId must be specified."); } - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Account/A2pSms/OptOuts/BulkAssign/index.ts b/packages/core/src/paths/Restapi/Account/A2pSms/OptOuts/BulkAssign/index.ts index e3ab8bc5..3ec36419 100644 --- a/packages/core/src/paths/Restapi/Account/A2pSms/OptOuts/BulkAssign/index.ts +++ b/packages/core/src/paths/Restapi/Account/A2pSms/OptOuts/BulkAssign/index.ts @@ -1,6 +1,10 @@ -import type OptOutBulkAssignResponse from '../../../../../../definitions/OptOutBulkAssignResponse'; -import type OptOutBulkAssignRequest from '../../../../../../definitions/OptOutBulkAssignRequest'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../../types'; +import type OptOutBulkAssignResponse from "../../../../../../definitions/OptOutBulkAssignResponse"; +import type OptOutBulkAssignRequest from "../../../../../../definitions/OptOutBulkAssignRequest"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../../types"; class Index { public rc: RingCentralInterface; diff --git a/packages/core/src/paths/Restapi/Account/A2pSms/OptOuts/index.ts b/packages/core/src/paths/Restapi/Account/A2pSms/OptOuts/index.ts index 58c425b5..da1f2708 100644 --- a/packages/core/src/paths/Restapi/Account/A2pSms/OptOuts/index.ts +++ b/packages/core/src/paths/Restapi/Account/A2pSms/OptOuts/index.ts @@ -1,7 +1,11 @@ -import BulkAssign from './BulkAssign'; -import type OptOutListResponse from '../../../../../definitions/OptOutListResponse'; -import type ReadA2PSMSOptOutsParameters from '../../../../../definitions/ReadA2PSMSOptOutsParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import BulkAssign from "./BulkAssign"; +import type OptOutListResponse from "../../../../../definitions/OptOutListResponse"; +import type ReadA2PSMSOptOutsParameters from "../../../../../definitions/ReadA2PSMSOptOutsParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -28,7 +32,11 @@ class Index { queryParams?: ReadA2PSMSOptOutsParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(), + queryParams, + restRequestConfig, + ); return r.data; } diff --git a/packages/core/src/paths/Restapi/Account/A2pSms/Statuses/index.ts b/packages/core/src/paths/Restapi/Account/A2pSms/Statuses/index.ts index d9432b20..6e629d83 100644 --- a/packages/core/src/paths/Restapi/Account/A2pSms/Statuses/index.ts +++ b/packages/core/src/paths/Restapi/Account/A2pSms/Statuses/index.ts @@ -1,6 +1,10 @@ -import type MessageStatusesResponse from '../../../../../definitions/MessageStatusesResponse'; -import type AggregateA2PSMSStatusesParameters from '../../../../../definitions/AggregateA2PSMSStatusesParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type MessageStatusesResponse from "../../../../../definitions/MessageStatusesResponse"; +import type AggregateA2PSMSStatusesParameters from "../../../../../definitions/AggregateA2PSMSStatusesParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -24,7 +28,11 @@ class Index { queryParams?: AggregateA2PSMSStatusesParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(), + queryParams, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Account/A2pSms/index.ts b/packages/core/src/paths/Restapi/Account/A2pSms/index.ts index 2acd6ba1..02c9e84e 100644 --- a/packages/core/src/paths/Restapi/Account/A2pSms/index.ts +++ b/packages/core/src/paths/Restapi/Account/A2pSms/index.ts @@ -1,8 +1,8 @@ -import OptOuts from './OptOuts'; -import Statuses from './Statuses'; -import Messages from './Messages'; -import Batches from './Batches'; -import type { RingCentralInterface, ParentInterface } from '../../../../types'; +import OptOuts from "./OptOuts"; +import Statuses from "./Statuses"; +import Messages from "./Messages"; +import Batches from "./Batches"; +import type { ParentInterface, RingCentralInterface } from "../../../../types"; class Index { public rc: RingCentralInterface; diff --git a/packages/core/src/paths/Restapi/Account/ActiveCalls/index.ts b/packages/core/src/paths/Restapi/Account/ActiveCalls/index.ts index 51c70a85..1263ef0a 100644 --- a/packages/core/src/paths/Restapi/Account/ActiveCalls/index.ts +++ b/packages/core/src/paths/Restapi/Account/ActiveCalls/index.ts @@ -1,6 +1,10 @@ -import type CallLogResponse from '../../../../definitions/CallLogResponse'; -import type ListCompanyActiveCallsParameters from '../../../../definitions/ListCompanyActiveCallsParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../types'; +import type CallLogResponse from "../../../../definitions/CallLogResponse"; +import type ListCompanyActiveCallsParameters from "../../../../definitions/ListCompanyActiveCallsParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../types"; class Index { public rc: RingCentralInterface; @@ -25,7 +29,11 @@ class Index { queryParams?: ListCompanyActiveCallsParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(), + queryParams, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Account/AddressBookBulkUpload/Tasks/index.ts b/packages/core/src/paths/Restapi/Account/AddressBookBulkUpload/Tasks/index.ts index 42b0b0c1..fc5d7be5 100644 --- a/packages/core/src/paths/Restapi/Account/AddressBookBulkUpload/Tasks/index.ts +++ b/packages/core/src/paths/Restapi/Account/AddressBookBulkUpload/Tasks/index.ts @@ -1,5 +1,9 @@ -import type AddressBookBulkUploadResponse from '../../../../../definitions/AddressBookBulkUploadResponse'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type AddressBookBulkUploadResponse from "../../../../../definitions/AddressBookBulkUploadResponse"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -26,11 +30,17 @@ class Index { * App Permission: Contacts * User Permission: EditPersonalContacts */ - public async get(restRequestConfig?: RestRequestConfig): Promise { + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { if (this.taskId === null) { - throw new Error('taskId must be specified.'); + throw new Error("taskId must be specified."); } - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Account/AddressBookBulkUpload/index.ts b/packages/core/src/paths/Restapi/Account/AddressBookBulkUpload/index.ts index 3a5f26a3..6c3911d0 100644 --- a/packages/core/src/paths/Restapi/Account/AddressBookBulkUpload/index.ts +++ b/packages/core/src/paths/Restapi/Account/AddressBookBulkUpload/index.ts @@ -1,7 +1,11 @@ -import Tasks from './Tasks'; -import type AddressBookBulkUploadResponse from '../../../../definitions/AddressBookBulkUploadResponse'; -import type AddressBookBulkUploadRequest from '../../../../definitions/AddressBookBulkUploadRequest'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../types'; +import Tasks from "./Tasks"; +import type AddressBookBulkUploadResponse from "../../../../definitions/AddressBookBulkUploadResponse"; +import type AddressBookBulkUploadRequest from "../../../../definitions/AddressBookBulkUploadRequest"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../types"; class Index { public rc: RingCentralInterface; diff --git a/packages/core/src/paths/Restapi/Account/AnsweringRule/index.ts b/packages/core/src/paths/Restapi/Account/AnsweringRule/index.ts index 1fdf67eb..e116afe8 100644 --- a/packages/core/src/paths/Restapi/Account/AnsweringRule/index.ts +++ b/packages/core/src/paths/Restapi/Account/AnsweringRule/index.ts @@ -1,9 +1,13 @@ -import type CompanyAnsweringRuleUpdate from '../../../../definitions/CompanyAnsweringRuleUpdate'; -import type CompanyAnsweringRuleInfo from '../../../../definitions/CompanyAnsweringRuleInfo'; -import type CompanyAnsweringRuleRequest from '../../../../definitions/CompanyAnsweringRuleRequest'; -import type CompanyAnsweringRuleList from '../../../../definitions/CompanyAnsweringRuleList'; -import type ListCompanyAnsweringRulesParameters from '../../../../definitions/ListCompanyAnsweringRulesParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../types'; +import type CompanyAnsweringRuleUpdate from "../../../../definitions/CompanyAnsweringRuleUpdate"; +import type CompanyAnsweringRuleInfo from "../../../../definitions/CompanyAnsweringRuleInfo"; +import type CompanyAnsweringRuleRequest from "../../../../definitions/CompanyAnsweringRuleRequest"; +import type CompanyAnsweringRuleList from "../../../../definitions/CompanyAnsweringRuleList"; +import type ListCompanyAnsweringRulesParameters from "../../../../definitions/ListCompanyAnsweringRulesParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../types"; class Index { public rc: RingCentralInterface; @@ -33,7 +37,11 @@ class Index { queryParams?: ListCompanyAnsweringRulesParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(false), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(false), + queryParams, + restRequestConfig, + ); return r.data; } @@ -66,11 +74,17 @@ class Index { * App Permission: ReadAccounts * User Permission: ReadCompanyAnsweringRules */ - public async get(restRequestConfig?: RestRequestConfig): Promise { + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { if (this.ruleId === null) { - throw new Error('ruleId must be specified.'); + throw new Error("ruleId must be specified."); } - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } @@ -87,7 +101,7 @@ class Index { restRequestConfig?: RestRequestConfig, ): Promise { if (this.ruleId === null) { - throw new Error('ruleId must be specified.'); + throw new Error("ruleId must be specified."); } const r = await this.rc.put( this.path(), @@ -108,9 +122,14 @@ class Index { */ public async delete(restRequestConfig?: RestRequestConfig): Promise { if (this.ruleId === null) { - throw new Error('ruleId must be specified.'); + throw new Error("ruleId must be specified."); } - const r = await this.rc.delete(this.path(), {}, undefined, restRequestConfig); + const r = await this.rc.delete( + this.path(), + {}, + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Account/AssignedRole/index.ts b/packages/core/src/paths/Restapi/Account/AssignedRole/index.ts index 02226cc9..631d279b 100644 --- a/packages/core/src/paths/Restapi/Account/AssignedRole/index.ts +++ b/packages/core/src/paths/Restapi/Account/AssignedRole/index.ts @@ -1,6 +1,10 @@ -import type ExtensionWithRolesCollectionResource from '../../../../definitions/ExtensionWithRolesCollectionResource'; -import type ListAssignedRolesParameters from '../../../../definitions/ListAssignedRolesParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../types'; +import type ExtensionWithRolesCollectionResource from "../../../../definitions/ExtensionWithRolesCollectionResource"; +import type ListAssignedRolesParameters from "../../../../definitions/ListAssignedRolesParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../types"; class Index { public rc: RingCentralInterface; @@ -25,7 +29,11 @@ class Index { queryParams?: ListAssignedRolesParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(), + queryParams, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Account/AuditTrail/Search/index.ts b/packages/core/src/paths/Restapi/Account/AuditTrail/Search/index.ts index 464652de..55ecbf46 100644 --- a/packages/core/src/paths/Restapi/Account/AuditTrail/Search/index.ts +++ b/packages/core/src/paths/Restapi/Account/AuditTrail/Search/index.ts @@ -1,6 +1,10 @@ -import type AccountHistorySearchPublicResponse from '../../../../../definitions/AccountHistorySearchPublicResponse'; -import type AccountHistorySearchPublicRequest from '../../../../../definitions/AccountHistorySearchPublicRequest'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type AccountHistorySearchPublicResponse from "../../../../../definitions/AccountHistorySearchPublicResponse"; +import type AccountHistorySearchPublicRequest from "../../../../../definitions/AccountHistorySearchPublicRequest"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; diff --git a/packages/core/src/paths/Restapi/Account/AuditTrail/index.ts b/packages/core/src/paths/Restapi/Account/AuditTrail/index.ts index df49104d..1621d685 100644 --- a/packages/core/src/paths/Restapi/Account/AuditTrail/index.ts +++ b/packages/core/src/paths/Restapi/Account/AuditTrail/index.ts @@ -1,5 +1,5 @@ -import Search from './Search'; -import type { RingCentralInterface, ParentInterface } from '../../../../types'; +import Search from "./Search"; +import type { ParentInterface, RingCentralInterface } from "../../../../types"; class Index { public rc: RingCentralInterface; diff --git a/packages/core/src/paths/Restapi/Account/BusinessAddress/index.ts b/packages/core/src/paths/Restapi/Account/BusinessAddress/index.ts index ec720bfe..05e54e79 100644 --- a/packages/core/src/paths/Restapi/Account/BusinessAddress/index.ts +++ b/packages/core/src/paths/Restapi/Account/BusinessAddress/index.ts @@ -1,6 +1,10 @@ -import type ModifyAccountBusinessAddressRequest from '../../../../definitions/ModifyAccountBusinessAddressRequest'; -import type AccountBusinessAddressResource from '../../../../definitions/AccountBusinessAddressResource'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../types'; +import type ModifyAccountBusinessAddressRequest from "../../../../definitions/ModifyAccountBusinessAddressRequest"; +import type AccountBusinessAddressResource from "../../../../definitions/AccountBusinessAddressResource"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../types"; class Index { public rc: RingCentralInterface; @@ -22,8 +26,14 @@ class Index { * App Permission: ReadAccounts * User Permission: ReadCompanyInfo */ - public async get(restRequestConfig?: RestRequestConfig): Promise { - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } diff --git a/packages/core/src/paths/Restapi/Account/BusinessHours/index.ts b/packages/core/src/paths/Restapi/Account/BusinessHours/index.ts index 28591a56..e70a10a2 100644 --- a/packages/core/src/paths/Restapi/Account/BusinessHours/index.ts +++ b/packages/core/src/paths/Restapi/Account/BusinessHours/index.ts @@ -1,6 +1,10 @@ -import type CompanyBusinessHoursUpdateRequest from '../../../../definitions/CompanyBusinessHoursUpdateRequest'; -import type CompanyBusinessHours from '../../../../definitions/CompanyBusinessHours'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../types'; +import type CompanyBusinessHoursUpdateRequest from "../../../../definitions/CompanyBusinessHoursUpdateRequest"; +import type CompanyBusinessHours from "../../../../definitions/CompanyBusinessHours"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../types"; class Index { public rc: RingCentralInterface; @@ -21,8 +25,14 @@ class Index { * App Permission: ReadAccounts * User Permission: ReadCompanyAnsweringRules */ - public async get(restRequestConfig?: RestRequestConfig): Promise { - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } diff --git a/packages/core/src/paths/Restapi/Account/CallLog/index.ts b/packages/core/src/paths/Restapi/Account/CallLog/index.ts index 4718a5f1..2a7b37b4 100644 --- a/packages/core/src/paths/Restapi/Account/CallLog/index.ts +++ b/packages/core/src/paths/Restapi/Account/CallLog/index.ts @@ -1,15 +1,22 @@ -import type CallLogRecord from '../../../../definitions/CallLogRecord'; -import type ReadCompanyCallRecordParameters from '../../../../definitions/ReadCompanyCallRecordParameters'; -import type CallLogResponse from '../../../../definitions/CallLogResponse'; -import type ReadCompanyCallLogParameters from '../../../../definitions/ReadCompanyCallLogParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../types'; +import type CallLogRecord from "../../../../definitions/CallLogRecord"; +import type ReadCompanyCallRecordParameters from "../../../../definitions/ReadCompanyCallRecordParameters"; +import type CallLogResponse from "../../../../definitions/CallLogResponse"; +import type ReadCompanyCallLogParameters from "../../../../definitions/ReadCompanyCallLogParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../types"; class Index { public rc: RingCentralInterface; public _parent: ParentInterface; public callRecordId: string | null; - public constructor(_parent: ParentInterface, callRecordId: string | null = null) { + public constructor( + _parent: ParentInterface, + callRecordId: string | null = null, + ) { this._parent = _parent; this.rc = _parent.rc; this.callRecordId = callRecordId; @@ -32,7 +39,11 @@ class Index { queryParams?: ReadCompanyCallLogParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(false), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(false), + queryParams, + restRequestConfig, + ); return r.data; } @@ -51,9 +62,13 @@ class Index { restRequestConfig?: RestRequestConfig, ): Promise { if (this.callRecordId === null) { - throw new Error('callRecordId must be specified.'); + throw new Error("callRecordId must be specified."); } - const r = await this.rc.get(this.path(), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(), + queryParams, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Account/CallLogSync/index.ts b/packages/core/src/paths/Restapi/Account/CallLogSync/index.ts index ffbeb3b1..1ed0ecf2 100644 --- a/packages/core/src/paths/Restapi/Account/CallLogSync/index.ts +++ b/packages/core/src/paths/Restapi/Account/CallLogSync/index.ts @@ -1,6 +1,10 @@ -import type CallLogSyncResponse from '../../../../definitions/CallLogSyncResponse'; -import type SyncAccountCallLogParameters from '../../../../definitions/SyncAccountCallLogParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../types'; +import type CallLogSyncResponse from "../../../../definitions/CallLogSyncResponse"; +import type SyncAccountCallLogParameters from "../../../../definitions/SyncAccountCallLogParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../types"; class Index { public rc: RingCentralInterface; @@ -25,7 +29,11 @@ class Index { queryParams?: SyncAccountCallLogParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(), + queryParams, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Account/CallMonitoringGroups/BulkAssign/index.ts b/packages/core/src/paths/Restapi/Account/CallMonitoringGroups/BulkAssign/index.ts index 5aecdafd..ba730798 100644 --- a/packages/core/src/paths/Restapi/Account/CallMonitoringGroups/BulkAssign/index.ts +++ b/packages/core/src/paths/Restapi/Account/CallMonitoringGroups/BulkAssign/index.ts @@ -1,5 +1,9 @@ -import type CallMonitoringBulkAssign from '../../../../../definitions/CallMonitoringBulkAssign'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type CallMonitoringBulkAssign from "../../../../../definitions/CallMonitoringBulkAssign"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -25,7 +29,12 @@ class Index { callMonitoringBulkAssign: CallMonitoringBulkAssign, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.post(this.path(), callMonitoringBulkAssign, undefined, restRequestConfig); + const r = await this.rc.post( + this.path(), + callMonitoringBulkAssign, + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Account/CallMonitoringGroups/Members/index.ts b/packages/core/src/paths/Restapi/Account/CallMonitoringGroups/Members/index.ts index 6e6fae84..bb569a6f 100644 --- a/packages/core/src/paths/Restapi/Account/CallMonitoringGroups/Members/index.ts +++ b/packages/core/src/paths/Restapi/Account/CallMonitoringGroups/Members/index.ts @@ -1,6 +1,10 @@ -import type CallMonitoringGroupMemberList from '../../../../../definitions/CallMonitoringGroupMemberList'; -import type ListCallMonitoringGroupMembersParameters from '../../../../../definitions/ListCallMonitoringGroupMembersParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type CallMonitoringGroupMemberList from "../../../../../definitions/CallMonitoringGroupMemberList"; +import type ListCallMonitoringGroupMembersParameters from "../../../../../definitions/ListCallMonitoringGroupMembersParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -26,7 +30,11 @@ class Index { queryParams?: ListCallMonitoringGroupMembersParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(), + queryParams, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Account/CallMonitoringGroups/index.ts b/packages/core/src/paths/Restapi/Account/CallMonitoringGroups/index.ts index 7219ebf5..8a25f4f8 100644 --- a/packages/core/src/paths/Restapi/Account/CallMonitoringGroups/index.ts +++ b/packages/core/src/paths/Restapi/Account/CallMonitoringGroups/index.ts @@ -1,10 +1,14 @@ -import BulkAssign from './BulkAssign'; -import Members from './Members'; -import type CallMonitoringGroup from '../../../../definitions/CallMonitoringGroup'; -import type CreateCallMonitoringGroupRequest from '../../../../definitions/CreateCallMonitoringGroupRequest'; -import type CallMonitoringGroups from '../../../../definitions/CallMonitoringGroups'; -import type ListCallMonitoringGroupsParameters from '../../../../definitions/ListCallMonitoringGroupsParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../types'; +import BulkAssign from "./BulkAssign"; +import Members from "./Members"; +import type CallMonitoringGroup from "../../../../definitions/CallMonitoringGroup"; +import type CreateCallMonitoringGroupRequest from "../../../../definitions/CreateCallMonitoringGroupRequest"; +import type CallMonitoringGroups from "../../../../definitions/CallMonitoringGroups"; +import type ListCallMonitoringGroupsParameters from "../../../../definitions/ListCallMonitoringGroupsParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../types"; class Index { public rc: RingCentralInterface; @@ -35,7 +39,11 @@ class Index { queryParams?: ListCallMonitoringGroupsParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(false), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(false), + queryParams, + restRequestConfig, + ); return r.data; } @@ -75,7 +83,7 @@ class Index { restRequestConfig?: RestRequestConfig, ): Promise { if (this.groupId === null) { - throw new Error('groupId must be specified.'); + throw new Error("groupId must be specified."); } const r = await this.rc.put( this.path(), @@ -97,9 +105,14 @@ class Index { */ public async delete(restRequestConfig?: RestRequestConfig): Promise { if (this.groupId === null) { - throw new Error('groupId must be specified.'); + throw new Error("groupId must be specified."); } - const r = await this.rc.delete(this.path(), {}, undefined, restRequestConfig); + const r = await this.rc.delete( + this.path(), + {}, + undefined, + restRequestConfig, + ); return r.data; } diff --git a/packages/core/src/paths/Restapi/Account/CallQueues/BulkAssign/index.ts b/packages/core/src/paths/Restapi/Account/CallQueues/BulkAssign/index.ts index 9d3db7a7..c6ca8732 100644 --- a/packages/core/src/paths/Restapi/Account/CallQueues/BulkAssign/index.ts +++ b/packages/core/src/paths/Restapi/Account/CallQueues/BulkAssign/index.ts @@ -1,5 +1,9 @@ -import type CallQueueBulkAssignResource from '../../../../../definitions/CallQueueBulkAssignResource'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type CallQueueBulkAssignResource from "../../../../../definitions/CallQueueBulkAssignResource"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -25,7 +29,12 @@ class Index { callQueueBulkAssignResource: CallQueueBulkAssignResource, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.post(this.path(), callQueueBulkAssignResource, undefined, restRequestConfig); + const r = await this.rc.post( + this.path(), + callQueueBulkAssignResource, + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Account/CallQueues/Members/index.ts b/packages/core/src/paths/Restapi/Account/CallQueues/Members/index.ts index b152c658..2a463bdb 100644 --- a/packages/core/src/paths/Restapi/Account/CallQueues/Members/index.ts +++ b/packages/core/src/paths/Restapi/Account/CallQueues/Members/index.ts @@ -1,6 +1,10 @@ -import type CallQueueMembers from '../../../../../definitions/CallQueueMembers'; -import type ListCallQueueMembersParameters from '../../../../../definitions/ListCallQueueMembersParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type CallQueueMembers from "../../../../../definitions/CallQueueMembers"; +import type ListCallQueueMembersParameters from "../../../../../definitions/ListCallQueueMembersParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -26,7 +30,11 @@ class Index { queryParams?: ListCallQueueMembersParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(), + queryParams, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Account/CallQueues/Presence/index.ts b/packages/core/src/paths/Restapi/Account/CallQueues/Presence/index.ts index 83af3803..5f7e0ee5 100644 --- a/packages/core/src/paths/Restapi/Account/CallQueues/Presence/index.ts +++ b/packages/core/src/paths/Restapi/Account/CallQueues/Presence/index.ts @@ -1,6 +1,10 @@ -import type CallQueueUpdatePresence from '../../../../../definitions/CallQueueUpdatePresence'; -import type CallQueuePresence from '../../../../../definitions/CallQueuePresence'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type CallQueueUpdatePresence from "../../../../../definitions/CallQueueUpdatePresence"; +import type CallQueuePresence from "../../../../../definitions/CallQueuePresence"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -20,8 +24,14 @@ class Index { * Rate Limit Group: Light * App Permission: ReadPresence */ - public async get(restRequestConfig?: RestRequestConfig): Promise { - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } @@ -36,7 +46,12 @@ class Index { callQueueUpdatePresence: CallQueueUpdatePresence, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.put(this.path(), callQueueUpdatePresence, undefined, restRequestConfig); + const r = await this.rc.put( + this.path(), + callQueueUpdatePresence, + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Account/CallQueues/index.ts b/packages/core/src/paths/Restapi/Account/CallQueues/index.ts index 454f6b9d..f3be6fa2 100644 --- a/packages/core/src/paths/Restapi/Account/CallQueues/index.ts +++ b/packages/core/src/paths/Restapi/Account/CallQueues/index.ts @@ -1,11 +1,15 @@ -import BulkAssign from './BulkAssign'; -import Presence from './Presence'; -import Members from './Members'; -import type CallQueueDetailsForUpdate from '../../../../definitions/CallQueueDetailsForUpdate'; -import type CallQueueDetails from '../../../../definitions/CallQueueDetails'; -import type CallQueueList from '../../../../definitions/CallQueueList'; -import type ListCallQueuesParameters from '../../../../definitions/ListCallQueuesParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../types'; +import BulkAssign from "./BulkAssign"; +import Presence from "./Presence"; +import Members from "./Members"; +import type CallQueueDetailsForUpdate from "../../../../definitions/CallQueueDetailsForUpdate"; +import type CallQueueDetails from "../../../../definitions/CallQueueDetails"; +import type CallQueueList from "../../../../definitions/CallQueueList"; +import type ListCallQueuesParameters from "../../../../definitions/ListCallQueuesParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../types"; class Index { public rc: RingCentralInterface; @@ -35,7 +39,11 @@ class Index { queryParams?: ListCallQueuesParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(false), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(false), + queryParams, + restRequestConfig, + ); return r.data; } @@ -47,11 +55,17 @@ class Index { * App Permission: ReadAccounts * User Permission: ReadExtensions */ - public async get(restRequestConfig?: RestRequestConfig): Promise { + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { if (this.groupId === null) { - throw new Error('groupId must be specified.'); + throw new Error("groupId must be specified."); } - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } @@ -69,9 +83,14 @@ class Index { restRequestConfig?: RestRequestConfig, ): Promise { if (this.groupId === null) { - throw new Error('groupId must be specified.'); + throw new Error("groupId must be specified."); } - const r = await this.rc.put(this.path(), callQueueDetailsForUpdate, undefined, restRequestConfig); + const r = await this.rc.put( + this.path(), + callQueueDetailsForUpdate, + undefined, + restRequestConfig, + ); return r.data; } diff --git a/packages/core/src/paths/Restapi/Account/CallRecording/BulkAssign/index.ts b/packages/core/src/paths/Restapi/Account/CallRecording/BulkAssign/index.ts index 19acc542..871e0a31 100644 --- a/packages/core/src/paths/Restapi/Account/CallRecording/BulkAssign/index.ts +++ b/packages/core/src/paths/Restapi/Account/CallRecording/BulkAssign/index.ts @@ -1,5 +1,9 @@ -import type BulkAccountCallRecordingsResource from '../../../../../definitions/BulkAccountCallRecordingsResource'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type BulkAccountCallRecordingsResource from "../../../../../definitions/BulkAccountCallRecordingsResource"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -24,7 +28,12 @@ class Index { bulkAccountCallRecordingsResource: BulkAccountCallRecordingsResource, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.post(this.path(), bulkAccountCallRecordingsResource, undefined, restRequestConfig); + const r = await this.rc.post( + this.path(), + bulkAccountCallRecordingsResource, + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Account/CallRecording/CustomGreetings/index.ts b/packages/core/src/paths/Restapi/Account/CallRecording/CustomGreetings/index.ts index d10598e1..0a012d52 100644 --- a/packages/core/src/paths/Restapi/Account/CallRecording/CustomGreetings/index.ts +++ b/packages/core/src/paths/Restapi/Account/CallRecording/CustomGreetings/index.ts @@ -1,13 +1,20 @@ -import type CallRecordingCustomGreetings from '../../../../../definitions/CallRecordingCustomGreetings'; -import type ListCallRecordingCustomGreetingsParameters from '../../../../../definitions/ListCallRecordingCustomGreetingsParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type CallRecordingCustomGreetings from "../../../../../definitions/CallRecordingCustomGreetings"; +import type ListCallRecordingCustomGreetingsParameters from "../../../../../definitions/ListCallRecordingCustomGreetingsParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; public _parent: ParentInterface; public greetingId: string | null; - public constructor(_parent: ParentInterface, greetingId: string | null = null) { + public constructor( + _parent: ParentInterface, + greetingId: string | null = null, + ) { this._parent = _parent; this.rc = _parent.rc; this.greetingId = greetingId; @@ -30,7 +37,11 @@ class Index { queryParams?: ListCallRecordingCustomGreetingsParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(false), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(false), + queryParams, + restRequestConfig, + ); return r.data; } @@ -42,8 +53,15 @@ class Index { * App Permission: EditAccounts * User Permission: EditCompanyInfo */ - public async deleteAll(restRequestConfig?: RestRequestConfig): Promise { - const r = await this.rc.delete(this.path(false), {}, undefined, restRequestConfig); + public async deleteAll( + restRequestConfig?: RestRequestConfig, + ): Promise { + const r = await this.rc.delete( + this.path(false), + {}, + undefined, + restRequestConfig, + ); return r.data; } @@ -57,9 +75,14 @@ class Index { */ public async delete(restRequestConfig?: RestRequestConfig): Promise { if (this.greetingId === null) { - throw new Error('greetingId must be specified.'); + throw new Error("greetingId must be specified."); } - const r = await this.rc.delete(this.path(), {}, undefined, restRequestConfig); + const r = await this.rc.delete( + this.path(), + {}, + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Account/CallRecording/Extensions/index.ts b/packages/core/src/paths/Restapi/Account/CallRecording/Extensions/index.ts index 345beb8d..2e157441 100644 --- a/packages/core/src/paths/Restapi/Account/CallRecording/Extensions/index.ts +++ b/packages/core/src/paths/Restapi/Account/CallRecording/Extensions/index.ts @@ -1,5 +1,9 @@ -import type CallRecordingExtensions from '../../../../../definitions/CallRecordingExtensions'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type CallRecordingExtensions from "../../../../../definitions/CallRecordingExtensions"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -20,8 +24,14 @@ class Index { * App Permission: ReadAccounts * User Permission: ReadCompanyInfo */ - public async get(restRequestConfig?: RestRequestConfig): Promise { - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Account/CallRecording/index.ts b/packages/core/src/paths/Restapi/Account/CallRecording/index.ts index 4b65b943..b3060484 100644 --- a/packages/core/src/paths/Restapi/Account/CallRecording/index.ts +++ b/packages/core/src/paths/Restapi/Account/CallRecording/index.ts @@ -1,8 +1,12 @@ -import CustomGreetings from './CustomGreetings'; -import BulkAssign from './BulkAssign'; -import Extensions from './Extensions'; -import type CallRecordingSettingsResource from '../../../../definitions/CallRecordingSettingsResource'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../types'; +import CustomGreetings from "./CustomGreetings"; +import BulkAssign from "./BulkAssign"; +import Extensions from "./Extensions"; +import type CallRecordingSettingsResource from "../../../../definitions/CallRecordingSettingsResource"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../types"; class Index { public rc: RingCentralInterface; @@ -23,8 +27,14 @@ class Index { * App Permission: ReadAccounts * User Permission: ReadCompanyInfo */ - public async get(restRequestConfig?: RestRequestConfig): Promise { - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } diff --git a/packages/core/src/paths/Restapi/Account/CallRecordings/index.ts b/packages/core/src/paths/Restapi/Account/CallRecordings/index.ts index 16557a5a..22d94893 100644 --- a/packages/core/src/paths/Restapi/Account/CallRecordings/index.ts +++ b/packages/core/src/paths/Restapi/Account/CallRecordings/index.ts @@ -1,5 +1,9 @@ -import type CallRecordingIds from '../../../../definitions/CallRecordingIds'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../types'; +import type CallRecordingIds from "../../../../definitions/CallRecordingIds"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../types"; class Index { public rc: RingCentralInterface; @@ -22,8 +26,16 @@ class Index { * App Permission: EditCallLog * User Permission: EditCompanyCallRecordings */ - public async delete(callRecordingIds: CallRecordingIds, restRequestConfig?: RestRequestConfig): Promise { - const r = await this.rc.delete(this.path(), callRecordingIds, undefined, restRequestConfig); + public async delete( + callRecordingIds: CallRecordingIds, + restRequestConfig?: RestRequestConfig, + ): Promise { + const r = await this.rc.delete( + this.path(), + callRecordingIds, + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Account/CustomFields/index.ts b/packages/core/src/paths/Restapi/Account/CustomFields/index.ts index d6f5b85c..ee008081 100644 --- a/packages/core/src/paths/Restapi/Account/CustomFields/index.ts +++ b/packages/core/src/paths/Restapi/Account/CustomFields/index.ts @@ -1,8 +1,12 @@ -import type CustomFieldUpdateRequest from '../../../../definitions/CustomFieldUpdateRequest'; -import type CustomFieldModel from '../../../../definitions/CustomFieldModel'; -import type CustomFieldCreateRequest from '../../../../definitions/CustomFieldCreateRequest'; -import type CustomFieldList from '../../../../definitions/CustomFieldList'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../types'; +import type CustomFieldUpdateRequest from "../../../../definitions/CustomFieldUpdateRequest"; +import type CustomFieldModel from "../../../../definitions/CustomFieldModel"; +import type CustomFieldCreateRequest from "../../../../definitions/CustomFieldCreateRequest"; +import type CustomFieldList from "../../../../definitions/CustomFieldList"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../types"; class Index { public rc: RingCentralInterface; @@ -28,8 +32,14 @@ class Index { * App Permission: ReadAccounts * User Permission: ReadUserInfo */ - public async get(restRequestConfig?: RestRequestConfig): Promise { - const r = await this.rc.get(this.path(false), undefined, restRequestConfig); + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { + const r = await this.rc.get( + this.path(false), + undefined, + restRequestConfig, + ); return r.data; } @@ -67,9 +77,14 @@ class Index { restRequestConfig?: RestRequestConfig, ): Promise { if (this.fieldId === null) { - throw new Error('fieldId must be specified.'); + throw new Error("fieldId must be specified."); } - const r = await this.rc.put(this.path(), customFieldUpdateRequest, undefined, restRequestConfig); + const r = await this.rc.put( + this.path(), + customFieldUpdateRequest, + undefined, + restRequestConfig, + ); return r.data; } @@ -83,9 +98,14 @@ class Index { */ public async delete(restRequestConfig?: RestRequestConfig): Promise { if (this.fieldId === null) { - throw new Error('fieldId must be specified.'); + throw new Error("fieldId must be specified."); } - const r = await this.rc.delete(this.path(), {}, undefined, restRequestConfig); + const r = await this.rc.delete( + this.path(), + {}, + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Account/Device/Emergency/index.ts b/packages/core/src/paths/Restapi/Account/Device/Emergency/index.ts index c337fc70..fee43e29 100644 --- a/packages/core/src/paths/Restapi/Account/Device/Emergency/index.ts +++ b/packages/core/src/paths/Restapi/Account/Device/Emergency/index.ts @@ -1,6 +1,10 @@ -import type DeviceResource from '../../../../../definitions/DeviceResource'; -import type AccountDeviceUpdate from '../../../../../definitions/AccountDeviceUpdate'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type DeviceResource from "../../../../../definitions/DeviceResource"; +import type AccountDeviceUpdate from "../../../../../definitions/AccountDeviceUpdate"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -25,7 +29,12 @@ class Index { accountDeviceUpdate: AccountDeviceUpdate, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.put(this.path(), accountDeviceUpdate, undefined, restRequestConfig); + const r = await this.rc.put( + this.path(), + accountDeviceUpdate, + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Account/Device/SipInfo/index.ts b/packages/core/src/paths/Restapi/Account/Device/SipInfo/index.ts index 8c1a8655..fb246f9c 100644 --- a/packages/core/src/paths/Restapi/Account/Device/SipInfo/index.ts +++ b/packages/core/src/paths/Restapi/Account/Device/SipInfo/index.ts @@ -1,5 +1,9 @@ -import type SipInfoResource from '../../../../../definitions/SipInfoResource'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type SipInfoResource from "../../../../../definitions/SipInfoResource"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -20,8 +24,14 @@ class Index { * App Permission: ReadAccounts * User Permission: ReadCompanyDevices */ - public async get(restRequestConfig?: RestRequestConfig): Promise { - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Account/Device/index.ts b/packages/core/src/paths/Restapi/Account/Device/index.ts index d99c0060..b31ca0a0 100644 --- a/packages/core/src/paths/Restapi/Account/Device/index.ts +++ b/packages/core/src/paths/Restapi/Account/Device/index.ts @@ -1,10 +1,14 @@ -import Emergency from './Emergency'; -import SipInfo from './SipInfo'; -import type UpdateDeviceParameters from '../../../../definitions/UpdateDeviceParameters'; -import type AccountDeviceUpdate from '../../../../definitions/AccountDeviceUpdate'; -import type DeviceResource from '../../../../definitions/DeviceResource'; -import type ReadDeviceParameters from '../../../../definitions/ReadDeviceParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../types'; +import Emergency from "./Emergency"; +import SipInfo from "./SipInfo"; +import type UpdateDeviceParameters from "../../../../definitions/UpdateDeviceParameters"; +import type AccountDeviceUpdate from "../../../../definitions/AccountDeviceUpdate"; +import type DeviceResource from "../../../../definitions/DeviceResource"; +import type ReadDeviceParameters from "../../../../definitions/ReadDeviceParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../types"; class Index { public rc: RingCentralInterface; @@ -30,11 +34,18 @@ class Index { * App Permission: ReadAccounts * User Permission: ReadCompanyDevices */ - public async get(queryParams?: ReadDeviceParameters, restRequestConfig?: RestRequestConfig): Promise { + public async get( + queryParams?: ReadDeviceParameters, + restRequestConfig?: RestRequestConfig, + ): Promise { if (this.deviceId === null) { - throw new Error('deviceId must be specified.'); + throw new Error("deviceId must be specified."); } - const r = await this.rc.get(this.path(), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(), + queryParams, + restRequestConfig, + ); return r.data; } @@ -52,9 +63,14 @@ class Index { restRequestConfig?: RestRequestConfig, ): Promise { if (this.deviceId === null) { - throw new Error('deviceId must be specified.'); + throw new Error("deviceId must be specified."); } - const r = await this.rc.put(this.path(), accountDeviceUpdate, queryParams, restRequestConfig); + const r = await this.rc.put( + this.path(), + accountDeviceUpdate, + queryParams, + restRequestConfig, + ); return r.data; } diff --git a/packages/core/src/paths/Restapi/Account/Directory/Entries/Search/index.ts b/packages/core/src/paths/Restapi/Account/Directory/Entries/Search/index.ts index b98c4180..9f2a2269 100644 --- a/packages/core/src/paths/Restapi/Account/Directory/Entries/Search/index.ts +++ b/packages/core/src/paths/Restapi/Account/Directory/Entries/Search/index.ts @@ -1,7 +1,11 @@ -import type DirectoryResource from '../../../../../../definitions/DirectoryResource'; -import type SearchDirectoryEntriesParameters from '../../../../../../definitions/SearchDirectoryEntriesParameters'; -import type SearchDirectoryEntriesRequest from '../../../../../../definitions/SearchDirectoryEntriesRequest'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../../types'; +import type DirectoryResource from "../../../../../../definitions/DirectoryResource"; +import type SearchDirectoryEntriesParameters from "../../../../../../definitions/SearchDirectoryEntriesParameters"; +import type SearchDirectoryEntriesRequest from "../../../../../../definitions/SearchDirectoryEntriesRequest"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../../types"; class Index { public rc: RingCentralInterface; diff --git a/packages/core/src/paths/Restapi/Account/Directory/Entries/index.ts b/packages/core/src/paths/Restapi/Account/Directory/Entries/index.ts index 46c39768..a4bd264c 100644 --- a/packages/core/src/paths/Restapi/Account/Directory/Entries/index.ts +++ b/packages/core/src/paths/Restapi/Account/Directory/Entries/index.ts @@ -1,9 +1,13 @@ -import Search from './Search'; -import type ContactResource from '../../../../../definitions/ContactResource'; -import type ReadDirectoryEntryParameters from '../../../../../definitions/ReadDirectoryEntryParameters'; -import type DirectoryResource from '../../../../../definitions/DirectoryResource'; -import type ListDirectoryEntriesParameters from '../../../../../definitions/ListDirectoryEntriesParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import Search from "./Search"; +import type ContactResource from "../../../../../definitions/ContactResource"; +import type ReadDirectoryEntryParameters from "../../../../../definitions/ReadDirectoryEntryParameters"; +import type DirectoryResource from "../../../../../definitions/DirectoryResource"; +import type ListDirectoryEntriesParameters from "../../../../../definitions/ListDirectoryEntriesParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -32,7 +36,11 @@ class Index { queryParams?: ListDirectoryEntriesParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(false), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(false), + queryParams, + restRequestConfig, + ); return r.data; } @@ -48,9 +56,13 @@ class Index { restRequestConfig?: RestRequestConfig, ): Promise { if (this.entryId === null) { - throw new Error('entryId must be specified.'); + throw new Error("entryId must be specified."); } - const r = await this.rc.get(this.path(), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(), + queryParams, + restRequestConfig, + ); return r.data; } diff --git a/packages/core/src/paths/Restapi/Account/Directory/Federation/index.ts b/packages/core/src/paths/Restapi/Account/Directory/Federation/index.ts index 34f043c4..9311787c 100644 --- a/packages/core/src/paths/Restapi/Account/Directory/Federation/index.ts +++ b/packages/core/src/paths/Restapi/Account/Directory/Federation/index.ts @@ -1,6 +1,10 @@ -import type FederationResource from '../../../../../definitions/FederationResource'; -import type ReadDirectoryFederationParameters from '../../../../../definitions/ReadDirectoryFederationParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type FederationResource from "../../../../../definitions/FederationResource"; +import type ReadDirectoryFederationParameters from "../../../../../definitions/ReadDirectoryFederationParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -25,7 +29,11 @@ class Index { queryParams?: ReadDirectoryFederationParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(), + queryParams, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Account/Directory/index.ts b/packages/core/src/paths/Restapi/Account/Directory/index.ts index 58cd2e06..8f54584d 100644 --- a/packages/core/src/paths/Restapi/Account/Directory/index.ts +++ b/packages/core/src/paths/Restapi/Account/Directory/index.ts @@ -1,6 +1,6 @@ -import Federation from './Federation'; -import Entries from './Entries'; -import type { RingCentralInterface, ParentInterface } from '../../../../types'; +import Federation from "./Federation"; +import Entries from "./Entries"; +import type { ParentInterface, RingCentralInterface } from "../../../../types"; class Index { public rc: RingCentralInterface; diff --git a/packages/core/src/paths/Restapi/Account/EmergencyAddressAutoUpdate/Devices/BulkAssign/index.ts b/packages/core/src/paths/Restapi/Account/EmergencyAddressAutoUpdate/Devices/BulkAssign/index.ts index 07bdd1cc..b45549a1 100644 --- a/packages/core/src/paths/Restapi/Account/EmergencyAddressAutoUpdate/Devices/BulkAssign/index.ts +++ b/packages/core/src/paths/Restapi/Account/EmergencyAddressAutoUpdate/Devices/BulkAssign/index.ts @@ -1,5 +1,9 @@ -import type AssignMultipleDevicesAutomaticLocationUpdates from '../../../../../../definitions/AssignMultipleDevicesAutomaticLocationUpdates'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../../types'; +import type AssignMultipleDevicesAutomaticLocationUpdates from "../../../../../../definitions/AssignMultipleDevicesAutomaticLocationUpdates"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../../types"; class Index { public rc: RingCentralInterface; @@ -23,7 +27,8 @@ class Index { * User Permission: ConfigureEmergencyMaps */ public async post( - assignMultipleDevicesAutomaticLocationUpdates: AssignMultipleDevicesAutomaticLocationUpdates, + assignMultipleDevicesAutomaticLocationUpdates: + AssignMultipleDevicesAutomaticLocationUpdates, restRequestConfig?: RestRequestConfig, ): Promise { const r = await this.rc.post( diff --git a/packages/core/src/paths/Restapi/Account/EmergencyAddressAutoUpdate/Devices/index.ts b/packages/core/src/paths/Restapi/Account/EmergencyAddressAutoUpdate/Devices/index.ts index d5e3fcfd..ac557810 100644 --- a/packages/core/src/paths/Restapi/Account/EmergencyAddressAutoUpdate/Devices/index.ts +++ b/packages/core/src/paths/Restapi/Account/EmergencyAddressAutoUpdate/Devices/index.ts @@ -1,7 +1,11 @@ -import BulkAssign from './BulkAssign'; -import type ListDevicesAutomaticLocationUpdates from '../../../../../definitions/ListDevicesAutomaticLocationUpdates'; -import type ListDevicesAutomaticLocationUpdatesParameters from '../../../../../definitions/ListDevicesAutomaticLocationUpdatesParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import BulkAssign from "./BulkAssign"; +import type ListDevicesAutomaticLocationUpdates from "../../../../../definitions/ListDevicesAutomaticLocationUpdates"; +import type ListDevicesAutomaticLocationUpdatesParameters from "../../../../../definitions/ListDevicesAutomaticLocationUpdatesParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -28,7 +32,11 @@ class Index { queryParams?: ListDevicesAutomaticLocationUpdatesParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(), + queryParams, + restRequestConfig, + ); return r.data; } diff --git a/packages/core/src/paths/Restapi/Account/EmergencyAddressAutoUpdate/Networks/index.ts b/packages/core/src/paths/Restapi/Account/EmergencyAddressAutoUpdate/Networks/index.ts index 21cb12a4..1d4794be 100644 --- a/packages/core/src/paths/Restapi/Account/EmergencyAddressAutoUpdate/Networks/index.ts +++ b/packages/core/src/paths/Restapi/Account/EmergencyAddressAutoUpdate/Networks/index.ts @@ -1,16 +1,23 @@ -import type UpdateNetworkRequest from '../../../../../definitions/UpdateNetworkRequest'; -import type NetworkInfo from '../../../../../definitions/NetworkInfo'; -import type CreateNetworkRequest from '../../../../../definitions/CreateNetworkRequest'; -import type NetworksList from '../../../../../definitions/NetworksList'; -import type ListNetworksParameters from '../../../../../definitions/ListNetworksParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type UpdateNetworkRequest from "../../../../../definitions/UpdateNetworkRequest"; +import type NetworkInfo from "../../../../../definitions/NetworkInfo"; +import type CreateNetworkRequest from "../../../../../definitions/CreateNetworkRequest"; +import type NetworksList from "../../../../../definitions/NetworksList"; +import type ListNetworksParameters from "../../../../../definitions/ListNetworksParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; public _parent: ParentInterface; public networkId: string | null; - public constructor(_parent: ParentInterface, networkId: string | null = null) { + public constructor( + _parent: ParentInterface, + networkId: string | null = null, + ) { this._parent = _parent; this.rc = _parent.rc; this.networkId = networkId; @@ -35,7 +42,11 @@ class Index { queryParams?: ListNetworksParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(false), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(false), + queryParams, + restRequestConfig, + ); return r.data; } @@ -53,7 +64,12 @@ class Index { createNetworkRequest: CreateNetworkRequest, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.post(this.path(false), createNetworkRequest, undefined, restRequestConfig); + const r = await this.rc.post( + this.path(false), + createNetworkRequest, + undefined, + restRequestConfig, + ); return r.data; } @@ -67,11 +83,17 @@ class Index { * App Permission: EditAccounts * User Permission: ConfigureEmergencyMaps */ - public async get(restRequestConfig?: RestRequestConfig): Promise { + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { if (this.networkId === null) { - throw new Error('networkId must be specified.'); + throw new Error("networkId must be specified."); } - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } @@ -90,9 +112,14 @@ class Index { restRequestConfig?: RestRequestConfig, ): Promise { if (this.networkId === null) { - throw new Error('networkId must be specified.'); + throw new Error("networkId must be specified."); } - const r = await this.rc.put(this.path(), updateNetworkRequest, undefined, restRequestConfig); + const r = await this.rc.put( + this.path(), + updateNetworkRequest, + undefined, + restRequestConfig, + ); return r.data; } @@ -108,9 +135,14 @@ class Index { */ public async delete(restRequestConfig?: RestRequestConfig): Promise { if (this.networkId === null) { - throw new Error('networkId must be specified.'); + throw new Error("networkId must be specified."); } - const r = await this.rc.delete(this.path(), {}, undefined, restRequestConfig); + const r = await this.rc.delete( + this.path(), + {}, + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Account/EmergencyAddressAutoUpdate/Switches/index.ts b/packages/core/src/paths/Restapi/Account/EmergencyAddressAutoUpdate/Switches/index.ts index 9602d519..764d7d4e 100644 --- a/packages/core/src/paths/Restapi/Account/EmergencyAddressAutoUpdate/Switches/index.ts +++ b/packages/core/src/paths/Restapi/Account/EmergencyAddressAutoUpdate/Switches/index.ts @@ -1,9 +1,13 @@ -import type UpdateSwitchInfo from '../../../../../definitions/UpdateSwitchInfo'; -import type SwitchInfo from '../../../../../definitions/SwitchInfo'; -import type CreateSwitchInfo from '../../../../../definitions/CreateSwitchInfo'; -import type SwitchesList from '../../../../../definitions/SwitchesList'; -import type ListAccountSwitchesParameters from '../../../../../definitions/ListAccountSwitchesParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type UpdateSwitchInfo from "../../../../../definitions/UpdateSwitchInfo"; +import type SwitchInfo from "../../../../../definitions/SwitchInfo"; +import type CreateSwitchInfo from "../../../../../definitions/CreateSwitchInfo"; +import type SwitchesList from "../../../../../definitions/SwitchesList"; +import type ListAccountSwitchesParameters from "../../../../../definitions/ListAccountSwitchesParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -35,7 +39,11 @@ class Index { queryParams?: ListAccountSwitchesParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(false), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(false), + queryParams, + restRequestConfig, + ); return r.data; } @@ -49,8 +57,16 @@ class Index { * App Permission: EditAccounts * User Permission: ConfigureEmergencyMaps */ - public async post(createSwitchInfo: CreateSwitchInfo, restRequestConfig?: RestRequestConfig): Promise { - const r = await this.rc.post(this.path(false), createSwitchInfo, undefined, restRequestConfig); + public async post( + createSwitchInfo: CreateSwitchInfo, + restRequestConfig?: RestRequestConfig, + ): Promise { + const r = await this.rc.post( + this.path(false), + createSwitchInfo, + undefined, + restRequestConfig, + ); return r.data; } @@ -64,9 +80,13 @@ class Index { */ public async get(restRequestConfig?: RestRequestConfig): Promise { if (this.switchId === null) { - throw new Error('switchId must be specified.'); + throw new Error("switchId must be specified."); } - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } @@ -81,11 +101,19 @@ class Index { * App Permission: EditAccounts * User Permission: ConfigureEmergencyMaps */ - public async put(updateSwitchInfo: UpdateSwitchInfo, restRequestConfig?: RestRequestConfig): Promise { + public async put( + updateSwitchInfo: UpdateSwitchInfo, + restRequestConfig?: RestRequestConfig, + ): Promise { if (this.switchId === null) { - throw new Error('switchId must be specified.'); + throw new Error("switchId must be specified."); } - const r = await this.rc.put(this.path(), updateSwitchInfo, undefined, restRequestConfig); + const r = await this.rc.put( + this.path(), + updateSwitchInfo, + undefined, + restRequestConfig, + ); return r.data; } @@ -101,9 +129,14 @@ class Index { */ public async delete(restRequestConfig?: RestRequestConfig): Promise { if (this.switchId === null) { - throw new Error('switchId must be specified.'); + throw new Error("switchId must be specified."); } - const r = await this.rc.delete(this.path(), {}, undefined, restRequestConfig); + const r = await this.rc.delete( + this.path(), + {}, + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Account/EmergencyAddressAutoUpdate/SwitchesBulkCreate/index.ts b/packages/core/src/paths/Restapi/Account/EmergencyAddressAutoUpdate/SwitchesBulkCreate/index.ts index 89b89d7e..9272d479 100644 --- a/packages/core/src/paths/Restapi/Account/EmergencyAddressAutoUpdate/SwitchesBulkCreate/index.ts +++ b/packages/core/src/paths/Restapi/Account/EmergencyAddressAutoUpdate/SwitchesBulkCreate/index.ts @@ -1,6 +1,10 @@ -import type CreateMultipleSwitchesResponse from '../../../../../definitions/CreateMultipleSwitchesResponse'; -import type CreateMultipleSwitchesRequest from '../../../../../definitions/CreateMultipleSwitchesRequest'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type CreateMultipleSwitchesResponse from "../../../../../definitions/CreateMultipleSwitchesResponse"; +import type CreateMultipleSwitchesRequest from "../../../../../definitions/CreateMultipleSwitchesRequest"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; diff --git a/packages/core/src/paths/Restapi/Account/EmergencyAddressAutoUpdate/SwitchesBulkUpdate/index.ts b/packages/core/src/paths/Restapi/Account/EmergencyAddressAutoUpdate/SwitchesBulkUpdate/index.ts index 12193c1a..f0b8ca94 100644 --- a/packages/core/src/paths/Restapi/Account/EmergencyAddressAutoUpdate/SwitchesBulkUpdate/index.ts +++ b/packages/core/src/paths/Restapi/Account/EmergencyAddressAutoUpdate/SwitchesBulkUpdate/index.ts @@ -1,6 +1,10 @@ -import type UpdateMultipleSwitchesResponse from '../../../../../definitions/UpdateMultipleSwitchesResponse'; -import type UpdateMultipleSwitchesRequest from '../../../../../definitions/UpdateMultipleSwitchesRequest'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type UpdateMultipleSwitchesResponse from "../../../../../definitions/UpdateMultipleSwitchesResponse"; +import type UpdateMultipleSwitchesRequest from "../../../../../definitions/UpdateMultipleSwitchesRequest"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; diff --git a/packages/core/src/paths/Restapi/Account/EmergencyAddressAutoUpdate/SwitchesBulkValidate/index.ts b/packages/core/src/paths/Restapi/Account/EmergencyAddressAutoUpdate/SwitchesBulkValidate/index.ts index d18fbb68..9f3d5fdc 100644 --- a/packages/core/src/paths/Restapi/Account/EmergencyAddressAutoUpdate/SwitchesBulkValidate/index.ts +++ b/packages/core/src/paths/Restapi/Account/EmergencyAddressAutoUpdate/SwitchesBulkValidate/index.ts @@ -1,6 +1,10 @@ -import type ValidateMultipleSwitchesResponse from '../../../../../definitions/ValidateMultipleSwitchesResponse'; -import type ValidateMultipleSwitchesRequest from '../../../../../definitions/ValidateMultipleSwitchesRequest'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type ValidateMultipleSwitchesResponse from "../../../../../definitions/ValidateMultipleSwitchesResponse"; +import type ValidateMultipleSwitchesRequest from "../../../../../definitions/ValidateMultipleSwitchesRequest"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; diff --git a/packages/core/src/paths/Restapi/Account/EmergencyAddressAutoUpdate/Tasks/index.ts b/packages/core/src/paths/Restapi/Account/EmergencyAddressAutoUpdate/Tasks/index.ts index 698ba514..487af836 100644 --- a/packages/core/src/paths/Restapi/Account/EmergencyAddressAutoUpdate/Tasks/index.ts +++ b/packages/core/src/paths/Restapi/Account/EmergencyAddressAutoUpdate/Tasks/index.ts @@ -1,5 +1,9 @@ -import type AutomaticLocationUpdatesTaskInfo from '../../../../../definitions/AutomaticLocationUpdatesTaskInfo'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type AutomaticLocationUpdatesTaskInfo from "../../../../../definitions/AutomaticLocationUpdatesTaskInfo"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -29,11 +33,17 @@ class Index { * App Permission: EditAccounts * User Permission: ConfigureEmergencyMaps */ - public async get(restRequestConfig?: RestRequestConfig): Promise { + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { if (this.taskId === null) { - throw new Error('taskId must be specified.'); + throw new Error("taskId must be specified."); } - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Account/EmergencyAddressAutoUpdate/Users/BulkAssign/index.ts b/packages/core/src/paths/Restapi/Account/EmergencyAddressAutoUpdate/Users/BulkAssign/index.ts index a6d07ac9..8f0b0afb 100644 --- a/packages/core/src/paths/Restapi/Account/EmergencyAddressAutoUpdate/Users/BulkAssign/index.ts +++ b/packages/core/src/paths/Restapi/Account/EmergencyAddressAutoUpdate/Users/BulkAssign/index.ts @@ -1,5 +1,9 @@ -import type EmergencyAddressAutoUpdateUsersBulkAssignResource from '../../../../../../definitions/EmergencyAddressAutoUpdateUsersBulkAssignResource'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../../types'; +import type EmergencyAddressAutoUpdateUsersBulkAssignResource from "../../../../../../definitions/EmergencyAddressAutoUpdateUsersBulkAssignResource"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../../types"; class Index { public rc: RingCentralInterface; @@ -23,7 +27,8 @@ class Index { * User Permission: ConfigureEmergencyMaps */ public async post( - emergencyAddressAutoUpdateUsersBulkAssignResource: EmergencyAddressAutoUpdateUsersBulkAssignResource, + emergencyAddressAutoUpdateUsersBulkAssignResource: + EmergencyAddressAutoUpdateUsersBulkAssignResource, restRequestConfig?: RestRequestConfig, ): Promise { const r = await this.rc.post( diff --git a/packages/core/src/paths/Restapi/Account/EmergencyAddressAutoUpdate/Users/index.ts b/packages/core/src/paths/Restapi/Account/EmergencyAddressAutoUpdate/Users/index.ts index b3437a74..9e9ce881 100644 --- a/packages/core/src/paths/Restapi/Account/EmergencyAddressAutoUpdate/Users/index.ts +++ b/packages/core/src/paths/Restapi/Account/EmergencyAddressAutoUpdate/Users/index.ts @@ -1,7 +1,11 @@ -import BulkAssign from './BulkAssign'; -import type AutomaticLocationUpdatesUserList from '../../../../../definitions/AutomaticLocationUpdatesUserList'; -import type ListAutomaticLocationUpdatesUsersParameters from '../../../../../definitions/ListAutomaticLocationUpdatesUsersParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import BulkAssign from "./BulkAssign"; +import type AutomaticLocationUpdatesUserList from "../../../../../definitions/AutomaticLocationUpdatesUserList"; +import type ListAutomaticLocationUpdatesUsersParameters from "../../../../../definitions/ListAutomaticLocationUpdatesUsersParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -28,7 +32,11 @@ class Index { queryParams?: ListAutomaticLocationUpdatesUsersParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(), + queryParams, + restRequestConfig, + ); return r.data; } diff --git a/packages/core/src/paths/Restapi/Account/EmergencyAddressAutoUpdate/WirelessPoints/index.ts b/packages/core/src/paths/Restapi/Account/EmergencyAddressAutoUpdate/WirelessPoints/index.ts index 110cdc7e..cdb49d86 100644 --- a/packages/core/src/paths/Restapi/Account/EmergencyAddressAutoUpdate/WirelessPoints/index.ts +++ b/packages/core/src/paths/Restapi/Account/EmergencyAddressAutoUpdate/WirelessPoints/index.ts @@ -1,9 +1,13 @@ -import type UpdateWirelessPoint from '../../../../../definitions/UpdateWirelessPoint'; -import type WirelessPointInfo from '../../../../../definitions/WirelessPointInfo'; -import type CreateWirelessPoint from '../../../../../definitions/CreateWirelessPoint'; -import type WirelessPointsList from '../../../../../definitions/WirelessPointsList'; -import type ListWirelessPointsParameters from '../../../../../definitions/ListWirelessPointsParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type UpdateWirelessPoint from "../../../../../definitions/UpdateWirelessPoint"; +import type WirelessPointInfo from "../../../../../definitions/WirelessPointInfo"; +import type CreateWirelessPoint from "../../../../../definitions/CreateWirelessPoint"; +import type WirelessPointsList from "../../../../../definitions/WirelessPointsList"; +import type ListWirelessPointsParameters from "../../../../../definitions/ListWirelessPointsParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -35,7 +39,11 @@ class Index { queryParams?: ListWirelessPointsParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(false), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(false), + queryParams, + restRequestConfig, + ); return r.data; } @@ -72,11 +80,17 @@ class Index { * App Permission: EditAccounts * User Permission: ConfigureEmergencyMaps */ - public async get(restRequestConfig?: RestRequestConfig): Promise { + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { if (this.pointId === null) { - throw new Error('pointId must be specified.'); + throw new Error("pointId must be specified."); } - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } @@ -95,9 +109,14 @@ class Index { restRequestConfig?: RestRequestConfig, ): Promise { if (this.pointId === null) { - throw new Error('pointId must be specified.'); + throw new Error("pointId must be specified."); } - const r = await this.rc.put(this.path(), updateWirelessPoint, undefined, restRequestConfig); + const r = await this.rc.put( + this.path(), + updateWirelessPoint, + undefined, + restRequestConfig, + ); return r.data; } @@ -111,9 +130,14 @@ class Index { */ public async delete(restRequestConfig?: RestRequestConfig): Promise { if (this.pointId === null) { - throw new Error('pointId must be specified.'); + throw new Error("pointId must be specified."); } - const r = await this.rc.delete(this.path(), {}, undefined, restRequestConfig); + const r = await this.rc.delete( + this.path(), + {}, + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Account/EmergencyAddressAutoUpdate/WirelessPointsBulkCreate/index.ts b/packages/core/src/paths/Restapi/Account/EmergencyAddressAutoUpdate/WirelessPointsBulkCreate/index.ts index 7e88d034..3147b39b 100644 --- a/packages/core/src/paths/Restapi/Account/EmergencyAddressAutoUpdate/WirelessPointsBulkCreate/index.ts +++ b/packages/core/src/paths/Restapi/Account/EmergencyAddressAutoUpdate/WirelessPointsBulkCreate/index.ts @@ -1,6 +1,10 @@ -import type CreateMultipleWirelessPointsResponse from '../../../../../definitions/CreateMultipleWirelessPointsResponse'; -import type CreateMultipleWirelessPointsRequest from '../../../../../definitions/CreateMultipleWirelessPointsRequest'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type CreateMultipleWirelessPointsResponse from "../../../../../definitions/CreateMultipleWirelessPointsResponse"; +import type CreateMultipleWirelessPointsRequest from "../../../../../definitions/CreateMultipleWirelessPointsRequest"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; diff --git a/packages/core/src/paths/Restapi/Account/EmergencyAddressAutoUpdate/WirelessPointsBulkUpdate/index.ts b/packages/core/src/paths/Restapi/Account/EmergencyAddressAutoUpdate/WirelessPointsBulkUpdate/index.ts index ff554fa7..326ba216 100644 --- a/packages/core/src/paths/Restapi/Account/EmergencyAddressAutoUpdate/WirelessPointsBulkUpdate/index.ts +++ b/packages/core/src/paths/Restapi/Account/EmergencyAddressAutoUpdate/WirelessPointsBulkUpdate/index.ts @@ -1,6 +1,10 @@ -import type UpdateMultipleWirelessPointsResponse from '../../../../../definitions/UpdateMultipleWirelessPointsResponse'; -import type UpdateMultipleWirelessPointsRequest from '../../../../../definitions/UpdateMultipleWirelessPointsRequest'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type UpdateMultipleWirelessPointsResponse from "../../../../../definitions/UpdateMultipleWirelessPointsResponse"; +import type UpdateMultipleWirelessPointsRequest from "../../../../../definitions/UpdateMultipleWirelessPointsRequest"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; diff --git a/packages/core/src/paths/Restapi/Account/EmergencyAddressAutoUpdate/WirelessPointsBulkValidate/index.ts b/packages/core/src/paths/Restapi/Account/EmergencyAddressAutoUpdate/WirelessPointsBulkValidate/index.ts index 529f39dc..bcb9188b 100644 --- a/packages/core/src/paths/Restapi/Account/EmergencyAddressAutoUpdate/WirelessPointsBulkValidate/index.ts +++ b/packages/core/src/paths/Restapi/Account/EmergencyAddressAutoUpdate/WirelessPointsBulkValidate/index.ts @@ -1,6 +1,10 @@ -import type ValidateMultipleWirelessPointsResponse from '../../../../../definitions/ValidateMultipleWirelessPointsResponse'; -import type ValidateMultipleWirelessPointsRequest from '../../../../../definitions/ValidateMultipleWirelessPointsRequest'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type ValidateMultipleWirelessPointsResponse from "../../../../../definitions/ValidateMultipleWirelessPointsResponse"; +import type ValidateMultipleWirelessPointsRequest from "../../../../../definitions/ValidateMultipleWirelessPointsRequest"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -24,7 +28,8 @@ class Index { * User Permission: ConfigureEmergencyMaps */ public async post( - validateMultipleWirelessPointsRequest: ValidateMultipleWirelessPointsRequest, + validateMultipleWirelessPointsRequest: + ValidateMultipleWirelessPointsRequest, restRequestConfig?: RestRequestConfig, ): Promise { const r = await this.rc.post( diff --git a/packages/core/src/paths/Restapi/Account/EmergencyAddressAutoUpdate/index.ts b/packages/core/src/paths/Restapi/Account/EmergencyAddressAutoUpdate/index.ts index 4d21cb07..5d5d3116 100644 --- a/packages/core/src/paths/Restapi/Account/EmergencyAddressAutoUpdate/index.ts +++ b/packages/core/src/paths/Restapi/Account/EmergencyAddressAutoUpdate/index.ts @@ -1,16 +1,16 @@ -import WirelessPointsBulkValidate from './WirelessPointsBulkValidate'; -import WirelessPointsBulkUpdate from './WirelessPointsBulkUpdate'; -import WirelessPointsBulkCreate from './WirelessPointsBulkCreate'; -import SwitchesBulkValidate from './SwitchesBulkValidate'; -import SwitchesBulkUpdate from './SwitchesBulkUpdate'; -import SwitchesBulkCreate from './SwitchesBulkCreate'; -import WirelessPoints from './WirelessPoints'; -import Switches from './Switches'; -import Networks from './Networks'; -import Devices from './Devices'; -import Users from './Users'; -import Tasks from './Tasks'; -import type { RingCentralInterface, ParentInterface } from '../../../../types'; +import WirelessPointsBulkValidate from "./WirelessPointsBulkValidate"; +import WirelessPointsBulkUpdate from "./WirelessPointsBulkUpdate"; +import WirelessPointsBulkCreate from "./WirelessPointsBulkCreate"; +import SwitchesBulkValidate from "./SwitchesBulkValidate"; +import SwitchesBulkUpdate from "./SwitchesBulkUpdate"; +import SwitchesBulkCreate from "./SwitchesBulkCreate"; +import WirelessPoints from "./WirelessPoints"; +import Switches from "./Switches"; +import Networks from "./Networks"; +import Devices from "./Devices"; +import Users from "./Users"; +import Tasks from "./Tasks"; +import type { ParentInterface, RingCentralInterface } from "../../../../types"; class Index { public rc: RingCentralInterface; diff --git a/packages/core/src/paths/Restapi/Account/EmergencyLocations/index.ts b/packages/core/src/paths/Restapi/Account/EmergencyLocations/index.ts index 4408a1d7..ea1fa4a5 100644 --- a/packages/core/src/paths/Restapi/Account/EmergencyLocations/index.ts +++ b/packages/core/src/paths/Restapi/Account/EmergencyLocations/index.ts @@ -1,18 +1,25 @@ -import type DeleteEmergencyLocationParameters from '../../../../definitions/DeleteEmergencyLocationParameters'; -import type CommonEmergencyLocationResource from '../../../../definitions/CommonEmergencyLocationResource'; -import type ReadEmergencyLocationParameters from '../../../../definitions/ReadEmergencyLocationParameters'; -import type EmergencyLocationResponseResource from '../../../../definitions/EmergencyLocationResponseResource'; -import type EmergencyLocationRequestResource from '../../../../definitions/EmergencyLocationRequestResource'; -import type EmergencyLocationsResource from '../../../../definitions/EmergencyLocationsResource'; -import type ListEmergencyLocationsParameters from '../../../../definitions/ListEmergencyLocationsParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../types'; +import type DeleteEmergencyLocationParameters from "../../../../definitions/DeleteEmergencyLocationParameters"; +import type CommonEmergencyLocationResource from "../../../../definitions/CommonEmergencyLocationResource"; +import type ReadEmergencyLocationParameters from "../../../../definitions/ReadEmergencyLocationParameters"; +import type EmergencyLocationResponseResource from "../../../../definitions/EmergencyLocationResponseResource"; +import type EmergencyLocationRequestResource from "../../../../definitions/EmergencyLocationRequestResource"; +import type EmergencyLocationsResource from "../../../../definitions/EmergencyLocationsResource"; +import type ListEmergencyLocationsParameters from "../../../../definitions/ListEmergencyLocationsParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../types"; class Index { public rc: RingCentralInterface; public _parent: ParentInterface; public locationId: string | null; - public constructor(_parent: ParentInterface, locationId: string | null = null) { + public constructor( + _parent: ParentInterface, + locationId: string | null = null, + ) { this._parent = _parent; this.rc = _parent.rc; this.locationId = locationId; @@ -35,7 +42,11 @@ class Index { queryParams?: ListEmergencyLocationsParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(false), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(false), + queryParams, + restRequestConfig, + ); return r.data; } @@ -73,9 +84,13 @@ class Index { restRequestConfig?: RestRequestConfig, ): Promise { if (this.locationId === null) { - throw new Error('locationId must be specified.'); + throw new Error("locationId must be specified."); } - const r = await this.rc.get(this.path(), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(), + queryParams, + restRequestConfig, + ); return r.data; } @@ -92,7 +107,7 @@ class Index { restRequestConfig?: RestRequestConfig, ): Promise { if (this.locationId === null) { - throw new Error('locationId must be specified.'); + throw new Error("locationId must be specified."); } const r = await this.rc.put( this.path(), @@ -116,9 +131,14 @@ class Index { restRequestConfig?: RestRequestConfig, ): Promise { if (this.locationId === null) { - throw new Error('locationId must be specified.'); + throw new Error("locationId must be specified."); } - const r = await this.rc.delete(this.path(), {}, queryParams, restRequestConfig); + const r = await this.rc.delete( + this.path(), + {}, + queryParams, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Account/Extension/ActiveCalls/index.ts b/packages/core/src/paths/Restapi/Account/Extension/ActiveCalls/index.ts index f83ffc1d..7f67fb01 100644 --- a/packages/core/src/paths/Restapi/Account/Extension/ActiveCalls/index.ts +++ b/packages/core/src/paths/Restapi/Account/Extension/ActiveCalls/index.ts @@ -1,6 +1,10 @@ -import type CallLogResponse from '../../../../../definitions/CallLogResponse'; -import type ListExtensionActiveCallsParameters from '../../../../../definitions/ListExtensionActiveCallsParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type CallLogResponse from "../../../../../definitions/CallLogResponse"; +import type ListExtensionActiveCallsParameters from "../../../../../definitions/ListExtensionActiveCallsParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -27,7 +31,11 @@ class Index { queryParams?: ListExtensionActiveCallsParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(), + queryParams, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Account/Extension/AddressBook/Contact/index.ts b/packages/core/src/paths/Restapi/Account/Extension/AddressBook/Contact/index.ts index e8751ef7..26db238f 100644 --- a/packages/core/src/paths/Restapi/Account/Extension/AddressBook/Contact/index.ts +++ b/packages/core/src/paths/Restapi/Account/Extension/AddressBook/Contact/index.ts @@ -1,18 +1,25 @@ -import type PatchContactParameters from '../../../../../../definitions/PatchContactParameters'; -import type UpdateContactParameters from '../../../../../../definitions/UpdateContactParameters'; -import type PersonalContactResource from '../../../../../../definitions/PersonalContactResource'; -import type CreateContactParameters from '../../../../../../definitions/CreateContactParameters'; -import type PersonalContactRequest from '../../../../../../definitions/PersonalContactRequest'; -import type ContactList from '../../../../../../definitions/ContactList'; -import type ListContactsParameters from '../../../../../../definitions/ListContactsParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../../types'; +import type PatchContactParameters from "../../../../../../definitions/PatchContactParameters"; +import type UpdateContactParameters from "../../../../../../definitions/UpdateContactParameters"; +import type PersonalContactResource from "../../../../../../definitions/PersonalContactResource"; +import type CreateContactParameters from "../../../../../../definitions/CreateContactParameters"; +import type PersonalContactRequest from "../../../../../../definitions/PersonalContactRequest"; +import type ContactList from "../../../../../../definitions/ContactList"; +import type ListContactsParameters from "../../../../../../definitions/ListContactsParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../../types"; class Index { public rc: RingCentralInterface; public _parent: ParentInterface; public contactId: string | null; - public constructor(_parent: ParentInterface, contactId: string | null = null) { + public constructor( + _parent: ParentInterface, + contactId: string | null = null, + ) { this._parent = _parent; this.rc = _parent.rc; this.contactId = contactId; @@ -32,8 +39,15 @@ class Index { * App Permission: ReadContacts * User Permission: ReadPersonalContacts */ - public async list(queryParams?: ListContactsParameters, restRequestConfig?: RestRequestConfig): Promise { - const r = await this.rc.get(this.path(false), queryParams, restRequestConfig); + public async list( + queryParams?: ListContactsParameters, + restRequestConfig?: RestRequestConfig, + ): Promise { + const r = await this.rc.get( + this.path(false), + queryParams, + restRequestConfig, + ); return r.data; } @@ -70,11 +84,17 @@ class Index { * App Permission: ReadContacts * User Permission: ReadPersonalContacts */ - public async get(restRequestConfig?: RestRequestConfig): Promise { + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { if (this.contactId === null) { - throw new Error('contactId must be specified.'); + throw new Error("contactId must be specified."); } - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } @@ -94,7 +114,7 @@ class Index { restRequestConfig?: RestRequestConfig, ): Promise { if (this.contactId === null) { - throw new Error('contactId must be specified.'); + throw new Error("contactId must be specified."); } const r = await this.rc.put( this.path(), @@ -117,9 +137,14 @@ class Index { */ public async delete(restRequestConfig?: RestRequestConfig): Promise { if (this.contactId === null) { - throw new Error('contactId must be specified.'); + throw new Error("contactId must be specified."); } - const r = await this.rc.delete(this.path(), {}, undefined, restRequestConfig); + const r = await this.rc.delete( + this.path(), + {}, + undefined, + restRequestConfig, + ); return r.data; } @@ -139,7 +164,7 @@ class Index { restRequestConfig?: RestRequestConfig, ): Promise { if (this.contactId === null) { - throw new Error('contactId must be specified.'); + throw new Error("contactId must be specified."); } const r = await this.rc.patch( this.path(), diff --git a/packages/core/src/paths/Restapi/Account/Extension/AddressBook/index.ts b/packages/core/src/paths/Restapi/Account/Extension/AddressBook/index.ts index b1a0c22b..4ce45fe6 100644 --- a/packages/core/src/paths/Restapi/Account/Extension/AddressBook/index.ts +++ b/packages/core/src/paths/Restapi/Account/Extension/AddressBook/index.ts @@ -1,5 +1,8 @@ -import Contact from './Contact'; -import type { RingCentralInterface, ParentInterface } from '../../../../../types'; +import Contact from "./Contact"; +import type { + ParentInterface, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; diff --git a/packages/core/src/paths/Restapi/Account/Extension/AddressBookSync/index.ts b/packages/core/src/paths/Restapi/Account/Extension/AddressBookSync/index.ts index f02dd742..1ef8f023 100644 --- a/packages/core/src/paths/Restapi/Account/Extension/AddressBookSync/index.ts +++ b/packages/core/src/paths/Restapi/Account/Extension/AddressBookSync/index.ts @@ -1,6 +1,10 @@ -import type AddressBookSync from '../../../../../definitions/AddressBookSync'; -import type SyncAddressBookParameters from '../../../../../definitions/SyncAddressBookParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type AddressBookSync from "../../../../../definitions/AddressBookSync"; +import type SyncAddressBookParameters from "../../../../../definitions/SyncAddressBookParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -26,7 +30,11 @@ class Index { queryParams?: SyncAddressBookParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(), + queryParams, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Account/Extension/AdministeredSites/index.ts b/packages/core/src/paths/Restapi/Account/Extension/AdministeredSites/index.ts index c877b760..4f2cb1b9 100644 --- a/packages/core/src/paths/Restapi/Account/Extension/AdministeredSites/index.ts +++ b/packages/core/src/paths/Restapi/Account/Extension/AdministeredSites/index.ts @@ -1,6 +1,10 @@ -import type BusinessSiteCollectionRequest from '../../../../../definitions/BusinessSiteCollectionRequest'; -import type BusinessSiteCollectionResource from '../../../../../definitions/BusinessSiteCollectionResource'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type BusinessSiteCollectionRequest from "../../../../../definitions/BusinessSiteCollectionRequest"; +import type BusinessSiteCollectionResource from "../../../../../definitions/BusinessSiteCollectionResource"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -21,8 +25,14 @@ class Index { * App Permission: ReadAccounts * User Permission: ReadExtensions */ - public async get(restRequestConfig?: RestRequestConfig): Promise { - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } diff --git a/packages/core/src/paths/Restapi/Account/Extension/AnsweringRule/index.ts b/packages/core/src/paths/Restapi/Account/Extension/AnsweringRule/index.ts index 11aa7f3e..ed722832 100644 --- a/packages/core/src/paths/Restapi/Account/Extension/AnsweringRule/index.ts +++ b/packages/core/src/paths/Restapi/Account/Extension/AnsweringRule/index.ts @@ -1,11 +1,15 @@ -import type UpdateAnsweringRuleRequest from '../../../../../definitions/UpdateAnsweringRuleRequest'; -import type CallHandlingRuleInfo from '../../../../../definitions/CallHandlingRuleInfo'; -import type ReadAnsweringRuleParameters from '../../../../../definitions/ReadAnsweringRuleParameters'; -import type CustomAnsweringRuleInfo from '../../../../../definitions/CustomAnsweringRuleInfo'; -import type CreateAnsweringRuleRequest from '../../../../../definitions/CreateAnsweringRuleRequest'; -import type UserAnsweringRuleList from '../../../../../definitions/UserAnsweringRuleList'; -import type ListAnsweringRulesParameters from '../../../../../definitions/ListAnsweringRulesParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type UpdateAnsweringRuleRequest from "../../../../../definitions/UpdateAnsweringRuleRequest"; +import type CallHandlingRuleInfo from "../../../../../definitions/CallHandlingRuleInfo"; +import type ReadAnsweringRuleParameters from "../../../../../definitions/ReadAnsweringRuleParameters"; +import type CustomAnsweringRuleInfo from "../../../../../definitions/CustomAnsweringRuleInfo"; +import type CreateAnsweringRuleRequest from "../../../../../definitions/CreateAnsweringRuleRequest"; +import type UserAnsweringRuleList from "../../../../../definitions/UserAnsweringRuleList"; +import type ListAnsweringRulesParameters from "../../../../../definitions/ListAnsweringRulesParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -35,7 +39,11 @@ class Index { queryParams?: ListAnsweringRulesParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(false), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(false), + queryParams, + restRequestConfig, + ); return r.data; } @@ -73,9 +81,13 @@ class Index { restRequestConfig?: RestRequestConfig, ): Promise { if (this.ruleId === null) { - throw new Error('ruleId must be specified.'); + throw new Error("ruleId must be specified."); } - const r = await this.rc.get(this.path(), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(), + queryParams, + restRequestConfig, + ); return r.data; } @@ -92,7 +104,7 @@ class Index { restRequestConfig?: RestRequestConfig, ): Promise { if (this.ruleId === null) { - throw new Error('ruleId must be specified.'); + throw new Error("ruleId must be specified."); } const r = await this.rc.put( this.path(), @@ -113,9 +125,14 @@ class Index { */ public async delete(restRequestConfig?: RestRequestConfig): Promise { if (this.ruleId === null) { - throw new Error('ruleId must be specified.'); + throw new Error("ruleId must be specified."); } - const r = await this.rc.delete(this.path(), {}, undefined, restRequestConfig); + const r = await this.rc.delete( + this.path(), + {}, + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Account/Extension/AssignableRoles/index.ts b/packages/core/src/paths/Restapi/Account/Extension/AssignableRoles/index.ts index b155fdf5..033a243c 100644 --- a/packages/core/src/paths/Restapi/Account/Extension/AssignableRoles/index.ts +++ b/packages/core/src/paths/Restapi/Account/Extension/AssignableRoles/index.ts @@ -1,6 +1,10 @@ -import type RolesCollectionResource from '../../../../../definitions/RolesCollectionResource'; -import type ListOfAvailableForAssigningRolesParameters from '../../../../../definitions/ListOfAvailableForAssigningRolesParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type RolesCollectionResource from "../../../../../definitions/RolesCollectionResource"; +import type ListOfAvailableForAssigningRolesParameters from "../../../../../definitions/ListOfAvailableForAssigningRolesParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -24,7 +28,11 @@ class Index { queryParams?: ListOfAvailableForAssigningRolesParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(), + queryParams, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Account/Extension/AssignedRole/Default/index.ts b/packages/core/src/paths/Restapi/Account/Extension/AssignedRole/Default/index.ts index b4eb9eb1..3805e357 100644 --- a/packages/core/src/paths/Restapi/Account/Extension/AssignedRole/Default/index.ts +++ b/packages/core/src/paths/Restapi/Account/Extension/AssignedRole/Default/index.ts @@ -1,5 +1,9 @@ -import type AssignedRolesResource from '../../../../../../definitions/AssignedRolesResource'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../../types'; +import type AssignedRolesResource from "../../../../../../definitions/AssignedRolesResource"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../../types"; class Index { public rc: RingCentralInterface; @@ -20,8 +24,15 @@ class Index { * App Permission: RoleManagement * User Permission: Users */ - public async put(restRequestConfig?: RestRequestConfig): Promise { - const r = await this.rc.put(this.path(), {}, undefined, restRequestConfig); + public async put( + restRequestConfig?: RestRequestConfig, + ): Promise { + const r = await this.rc.put( + this.path(), + {}, + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Account/Extension/AssignedRole/index.ts b/packages/core/src/paths/Restapi/Account/Extension/AssignedRole/index.ts index 78c92de5..d6e7bc84 100644 --- a/packages/core/src/paths/Restapi/Account/Extension/AssignedRole/index.ts +++ b/packages/core/src/paths/Restapi/Account/Extension/AssignedRole/index.ts @@ -1,7 +1,11 @@ -import Default from './Default'; -import type AssignedRolesResource from '../../../../../definitions/AssignedRolesResource'; -import type ListUserAssignedRolesParameters from '../../../../../definitions/ListUserAssignedRolesParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import Default from "./Default"; +import type AssignedRolesResource from "../../../../../definitions/AssignedRolesResource"; +import type ListUserAssignedRolesParameters from "../../../../../definitions/ListUserAssignedRolesParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -26,7 +30,11 @@ class Index { queryParams?: ListUserAssignedRolesParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(), + queryParams, + restRequestConfig, + ); return r.data; } diff --git a/packages/core/src/paths/Restapi/Account/Extension/AuthzProfile/Check/index.ts b/packages/core/src/paths/Restapi/Account/Extension/AuthzProfile/Check/index.ts index cba8d9fc..32c9c72e 100644 --- a/packages/core/src/paths/Restapi/Account/Extension/AuthzProfile/Check/index.ts +++ b/packages/core/src/paths/Restapi/Account/Extension/AuthzProfile/Check/index.ts @@ -1,6 +1,10 @@ -import type AuthProfileCheckResource from '../../../../../../definitions/AuthProfileCheckResource'; -import type CheckUserPermissionParameters from '../../../../../../definitions/CheckUserPermissionParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../../types'; +import type AuthProfileCheckResource from "../../../../../../definitions/AuthProfileCheckResource"; +import type CheckUserPermissionParameters from "../../../../../../definitions/CheckUserPermissionParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../../types"; class Index { public rc: RingCentralInterface; @@ -23,7 +27,11 @@ class Index { queryParams?: CheckUserPermissionParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(), + queryParams, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Account/Extension/AuthzProfile/index.ts b/packages/core/src/paths/Restapi/Account/Extension/AuthzProfile/index.ts index ba196c04..a1d4f4a3 100644 --- a/packages/core/src/paths/Restapi/Account/Extension/AuthzProfile/index.ts +++ b/packages/core/src/paths/Restapi/Account/Extension/AuthzProfile/index.ts @@ -1,7 +1,11 @@ -import Check from './Check'; -import type AuthProfileResource from '../../../../../definitions/AuthProfileResource'; -import type ReadAuthorizationProfileParameters from '../../../../../definitions/ReadAuthorizationProfileParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import Check from "./Check"; +import type AuthProfileResource from "../../../../../definitions/AuthProfileResource"; +import type ReadAuthorizationProfileParameters from "../../../../../definitions/ReadAuthorizationProfileParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -26,7 +30,11 @@ class Index { queryParams?: ReadAuthorizationProfileParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(), + queryParams, + restRequestConfig, + ); return r.data; } diff --git a/packages/core/src/paths/Restapi/Account/Extension/BusinessHours/index.ts b/packages/core/src/paths/Restapi/Account/Extension/BusinessHours/index.ts index 8f34fa04..67238f54 100644 --- a/packages/core/src/paths/Restapi/Account/Extension/BusinessHours/index.ts +++ b/packages/core/src/paths/Restapi/Account/Extension/BusinessHours/index.ts @@ -1,7 +1,11 @@ -import type UserBusinessHoursUpdateResponse from '../../../../../definitions/UserBusinessHoursUpdateResponse'; -import type UserBusinessHoursUpdateRequest from '../../../../../definitions/UserBusinessHoursUpdateRequest'; -import type GetUserBusinessHoursResponse from '../../../../../definitions/GetUserBusinessHoursResponse'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type UserBusinessHoursUpdateResponse from "../../../../../definitions/UserBusinessHoursUpdateResponse"; +import type UserBusinessHoursUpdateRequest from "../../../../../definitions/UserBusinessHoursUpdateRequest"; +import type GetUserBusinessHoursResponse from "../../../../../definitions/GetUserBusinessHoursResponse"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -22,8 +26,14 @@ class Index { * App Permission: ReadAccounts * User Permission: ReadExtensions */ - public async get(restRequestConfig?: RestRequestConfig): Promise { - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } diff --git a/packages/core/src/paths/Restapi/Account/Extension/CallLog/index.ts b/packages/core/src/paths/Restapi/Account/Extension/CallLog/index.ts index 2c75f01a..9468d94d 100644 --- a/packages/core/src/paths/Restapi/Account/Extension/CallLog/index.ts +++ b/packages/core/src/paths/Restapi/Account/Extension/CallLog/index.ts @@ -1,16 +1,23 @@ -import type CallLogRecord from '../../../../../definitions/CallLogRecord'; -import type ReadUserCallRecordParameters from '../../../../../definitions/ReadUserCallRecordParameters'; -import type DeleteUserCallLogParameters from '../../../../../definitions/DeleteUserCallLogParameters'; -import type CallLogResponse from '../../../../../definitions/CallLogResponse'; -import type ReadUserCallLogParameters from '../../../../../definitions/ReadUserCallLogParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type CallLogRecord from "../../../../../definitions/CallLogRecord"; +import type ReadUserCallRecordParameters from "../../../../../definitions/ReadUserCallRecordParameters"; +import type DeleteUserCallLogParameters from "../../../../../definitions/DeleteUserCallLogParameters"; +import type CallLogResponse from "../../../../../definitions/CallLogResponse"; +import type ReadUserCallLogParameters from "../../../../../definitions/ReadUserCallLogParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; public _parent: ParentInterface; public callRecordId: string | null; - public constructor(_parent: ParentInterface, callRecordId: string | null = null) { + public constructor( + _parent: ParentInterface, + callRecordId: string | null = null, + ) { this._parent = _parent; this.rc = _parent.rc; this.callRecordId = callRecordId; @@ -33,7 +40,11 @@ class Index { queryParams?: ReadUserCallLogParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(false), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(false), + queryParams, + restRequestConfig, + ); return r.data; } @@ -49,7 +60,12 @@ class Index { queryParams?: DeleteUserCallLogParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.delete(this.path(false), {}, queryParams, restRequestConfig); + const r = await this.rc.delete( + this.path(false), + {}, + queryParams, + restRequestConfig, + ); return r.data; } @@ -66,9 +82,13 @@ class Index { restRequestConfig?: RestRequestConfig, ): Promise { if (this.callRecordId === null) { - throw new Error('callRecordId must be specified.'); + throw new Error("callRecordId must be specified."); } - const r = await this.rc.get(this.path(), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(), + queryParams, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Account/Extension/CallLogSync/index.ts b/packages/core/src/paths/Restapi/Account/Extension/CallLogSync/index.ts index 19cde6af..12ece8ff 100644 --- a/packages/core/src/paths/Restapi/Account/Extension/CallLogSync/index.ts +++ b/packages/core/src/paths/Restapi/Account/Extension/CallLogSync/index.ts @@ -1,6 +1,10 @@ -import type CallLogSyncResponse from '../../../../../definitions/CallLogSyncResponse'; -import type SyncUserCallLogParameters from '../../../../../definitions/SyncUserCallLogParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type CallLogSyncResponse from "../../../../../definitions/CallLogSyncResponse"; +import type SyncUserCallLogParameters from "../../../../../definitions/SyncUserCallLogParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -25,7 +29,11 @@ class Index { queryParams?: SyncUserCallLogParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(), + queryParams, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Account/Extension/CallQueuePresence/index.ts b/packages/core/src/paths/Restapi/Account/Extension/CallQueuePresence/index.ts index f119e304..2dc23400 100644 --- a/packages/core/src/paths/Restapi/Account/Extension/CallQueuePresence/index.ts +++ b/packages/core/src/paths/Restapi/Account/Extension/CallQueuePresence/index.ts @@ -1,7 +1,11 @@ -import type ExtensionCallQueueUpdatePresenceList from '../../../../../definitions/ExtensionCallQueueUpdatePresenceList'; -import type ExtensionCallQueuePresenceList from '../../../../../definitions/ExtensionCallQueuePresenceList'; -import type ReadExtensionCallQueuePresenceParameters from '../../../../../definitions/ReadExtensionCallQueuePresenceParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type ExtensionCallQueueUpdatePresenceList from "../../../../../definitions/ExtensionCallQueueUpdatePresenceList"; +import type ExtensionCallQueuePresenceList from "../../../../../definitions/ExtensionCallQueuePresenceList"; +import type ReadExtensionCallQueuePresenceParameters from "../../../../../definitions/ReadExtensionCallQueuePresenceParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -25,7 +29,11 @@ class Index { queryParams?: ReadExtensionCallQueuePresenceParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(), + queryParams, + restRequestConfig, + ); return r.data; } diff --git a/packages/core/src/paths/Restapi/Account/Extension/CallQueues/index.ts b/packages/core/src/paths/Restapi/Account/Extension/CallQueues/index.ts index e067a438..85ff35d8 100644 --- a/packages/core/src/paths/Restapi/Account/Extension/CallQueues/index.ts +++ b/packages/core/src/paths/Restapi/Account/Extension/CallQueues/index.ts @@ -1,5 +1,9 @@ -import type UserCallQueues from '../../../../../definitions/UserCallQueues'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type UserCallQueues from "../../../../../definitions/UserCallQueues"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -24,8 +28,16 @@ class Index { * App Permission: EditAccounts * User Permission: EditCallQueuePresence */ - public async put(userCallQueues: UserCallQueues, restRequestConfig?: RestRequestConfig): Promise { - const r = await this.rc.put(this.path(), userCallQueues, undefined, restRequestConfig); + public async put( + userCallQueues: UserCallQueues, + restRequestConfig?: RestRequestConfig, + ): Promise { + const r = await this.rc.put( + this.path(), + userCallQueues, + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Account/Extension/CallerBlocking/PhoneNumbers/index.ts b/packages/core/src/paths/Restapi/Account/Extension/CallerBlocking/PhoneNumbers/index.ts index b87497a4..d0560498 100644 --- a/packages/core/src/paths/Restapi/Account/Extension/CallerBlocking/PhoneNumbers/index.ts +++ b/packages/core/src/paths/Restapi/Account/Extension/CallerBlocking/PhoneNumbers/index.ts @@ -1,15 +1,22 @@ -import type BlockedAllowedPhoneNumberInfo from '../../../../../../definitions/BlockedAllowedPhoneNumberInfo'; -import type AddBlockedAllowedPhoneNumber from '../../../../../../definitions/AddBlockedAllowedPhoneNumber'; -import type BlockedAllowedPhoneNumbersList from '../../../../../../definitions/BlockedAllowedPhoneNumbersList'; -import type ListBlockedAllowedNumbersParameters from '../../../../../../definitions/ListBlockedAllowedNumbersParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../../types'; +import type BlockedAllowedPhoneNumberInfo from "../../../../../../definitions/BlockedAllowedPhoneNumberInfo"; +import type AddBlockedAllowedPhoneNumber from "../../../../../../definitions/AddBlockedAllowedPhoneNumber"; +import type BlockedAllowedPhoneNumbersList from "../../../../../../definitions/BlockedAllowedPhoneNumbersList"; +import type ListBlockedAllowedNumbersParameters from "../../../../../../definitions/ListBlockedAllowedNumbersParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../../types"; class Index { public rc: RingCentralInterface; public _parent: ParentInterface; public blockedNumberId: string | null; - public constructor(_parent: ParentInterface, blockedNumberId: string | null = null) { + public constructor( + _parent: ParentInterface, + blockedNumberId: string | null = null, + ) { this._parent = _parent; this.rc = _parent.rc; this.blockedNumberId = blockedNumberId; @@ -32,7 +39,11 @@ class Index { queryParams?: ListBlockedAllowedNumbersParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(false), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(false), + queryParams, + restRequestConfig, + ); return r.data; } @@ -67,11 +78,17 @@ class Index { * App Permission: ReadAccounts * User Permission: ReadBlockedNumbers */ - public async get(restRequestConfig?: RestRequestConfig): Promise { + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { if (this.blockedNumberId === null) { - throw new Error('blockedNumberId must be specified.'); + throw new Error("blockedNumberId must be specified."); } - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } @@ -90,7 +107,7 @@ class Index { restRequestConfig?: RestRequestConfig, ): Promise { if (this.blockedNumberId === null) { - throw new Error('blockedNumberId must be specified.'); + throw new Error("blockedNumberId must be specified."); } const r = await this.rc.put( this.path(), @@ -113,9 +130,14 @@ class Index { */ public async delete(restRequestConfig?: RestRequestConfig): Promise { if (this.blockedNumberId === null) { - throw new Error('blockedNumberId must be specified.'); + throw new Error("blockedNumberId must be specified."); } - const r = await this.rc.delete(this.path(), {}, undefined, restRequestConfig); + const r = await this.rc.delete( + this.path(), + {}, + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Account/Extension/CallerBlocking/index.ts b/packages/core/src/paths/Restapi/Account/Extension/CallerBlocking/index.ts index e172d9b5..9d8b3f6e 100644 --- a/packages/core/src/paths/Restapi/Account/Extension/CallerBlocking/index.ts +++ b/packages/core/src/paths/Restapi/Account/Extension/CallerBlocking/index.ts @@ -1,7 +1,11 @@ -import PhoneNumbers from './PhoneNumbers'; -import type CallerBlockingSettingsUpdate from '../../../../../definitions/CallerBlockingSettingsUpdate'; -import type CallerBlockingSettings from '../../../../../definitions/CallerBlockingSettings'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import PhoneNumbers from "./PhoneNumbers"; +import type CallerBlockingSettingsUpdate from "../../../../../definitions/CallerBlockingSettingsUpdate"; +import type CallerBlockingSettings from "../../../../../definitions/CallerBlockingSettings"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -22,8 +26,14 @@ class Index { * App Permission: ReadAccounts * User Permission: ReadBlockedNumbers */ - public async get(restRequestConfig?: RestRequestConfig): Promise { - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } diff --git a/packages/core/src/paths/Restapi/Account/Extension/CallerId/index.ts b/packages/core/src/paths/Restapi/Account/Extension/CallerId/index.ts index 58c21e44..cb087eb0 100644 --- a/packages/core/src/paths/Restapi/Account/Extension/CallerId/index.ts +++ b/packages/core/src/paths/Restapi/Account/Extension/CallerId/index.ts @@ -1,6 +1,10 @@ -import type ExtensionCallerIdInfoRequest from '../../../../../definitions/ExtensionCallerIdInfoRequest'; -import type ExtensionCallerIdInfo from '../../../../../definitions/ExtensionCallerIdInfo'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type ExtensionCallerIdInfoRequest from "../../../../../definitions/ExtensionCallerIdInfoRequest"; +import type ExtensionCallerIdInfo from "../../../../../definitions/ExtensionCallerIdInfo"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -22,8 +26,14 @@ class Index { * App Permission: ReadAccounts * User Permission: ReadCallerIDSettings */ - public async get(restRequestConfig?: RestRequestConfig): Promise { - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } diff --git a/packages/core/src/paths/Restapi/Account/Extension/CompanyPager/index.ts b/packages/core/src/paths/Restapi/Account/Extension/CompanyPager/index.ts index 13b73682..df522cc2 100644 --- a/packages/core/src/paths/Restapi/Account/Extension/CompanyPager/index.ts +++ b/packages/core/src/paths/Restapi/Account/Extension/CompanyPager/index.ts @@ -1,6 +1,10 @@ -import type GetInternalTextMessageInfoResponse from '../../../../../definitions/GetInternalTextMessageInfoResponse'; -import type CreateInternalTextMessageRequest from '../../../../../definitions/CreateInternalTextMessageRequest'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type GetInternalTextMessageInfoResponse from "../../../../../definitions/GetInternalTextMessageInfoResponse"; +import type CreateInternalTextMessageRequest from "../../../../../definitions/CreateInternalTextMessageRequest"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; diff --git a/packages/core/src/paths/Restapi/Account/Extension/Conferencing/index.ts b/packages/core/src/paths/Restapi/Account/Extension/Conferencing/index.ts index 2f2940c8..afacce30 100644 --- a/packages/core/src/paths/Restapi/Account/Extension/Conferencing/index.ts +++ b/packages/core/src/paths/Restapi/Account/Extension/Conferencing/index.ts @@ -1,7 +1,11 @@ -import type UpdateConferencingInfoRequest from '../../../../../definitions/UpdateConferencingInfoRequest'; -import type GetConferencingInfoResponse from '../../../../../definitions/GetConferencingInfoResponse'; -import type ReadConferencingSettingsParameters from '../../../../../definitions/ReadConferencingSettingsParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type UpdateConferencingInfoRequest from "../../../../../definitions/UpdateConferencingInfoRequest"; +import type GetConferencingInfoResponse from "../../../../../definitions/GetConferencingInfoResponse"; +import type ReadConferencingSettingsParameters from "../../../../../definitions/ReadConferencingSettingsParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -28,7 +32,11 @@ class Index { queryParams?: ReadConferencingSettingsParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(), + queryParams, + restRequestConfig, + ); return r.data; } diff --git a/packages/core/src/paths/Restapi/Account/Extension/Device/index.ts b/packages/core/src/paths/Restapi/Account/Extension/Device/index.ts index a4f2e807..0911fe9e 100644 --- a/packages/core/src/paths/Restapi/Account/Extension/Device/index.ts +++ b/packages/core/src/paths/Restapi/Account/Extension/Device/index.ts @@ -1,6 +1,10 @@ -import type GetExtensionDevicesResponse from '../../../../../definitions/GetExtensionDevicesResponse'; -import type ListExtensionDevicesParameters from '../../../../../definitions/ListExtensionDevicesParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type GetExtensionDevicesResponse from "../../../../../definitions/GetExtensionDevicesResponse"; +import type ListExtensionDevicesParameters from "../../../../../definitions/ListExtensionDevicesParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -27,7 +31,11 @@ class Index { queryParams?: ListExtensionDevicesParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(), + queryParams, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Account/Extension/EmergencyLocations/index.ts b/packages/core/src/paths/Restapi/Account/Extension/EmergencyLocations/index.ts index da88bdac..cfb7353a 100644 --- a/packages/core/src/paths/Restapi/Account/Extension/EmergencyLocations/index.ts +++ b/packages/core/src/paths/Restapi/Account/Extension/EmergencyLocations/index.ts @@ -1,18 +1,25 @@ -import type DeleteExtensionEmergencyLocationParameters from '../../../../../definitions/DeleteExtensionEmergencyLocationParameters'; -import type EmergencyLocationRequestResource from '../../../../../definitions/EmergencyLocationRequestResource'; -import type CommonEmergencyLocationResource from '../../../../../definitions/CommonEmergencyLocationResource'; -import type EmergencyLocationResponseResource from '../../../../../definitions/EmergencyLocationResponseResource'; -import type CreateUserEmergencyLocationRequest from '../../../../../definitions/CreateUserEmergencyLocationRequest'; -import type EmergencyLocationsResource from '../../../../../definitions/EmergencyLocationsResource'; -import type GetExtensionEmergencyLocationsParameters from '../../../../../definitions/GetExtensionEmergencyLocationsParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type DeleteExtensionEmergencyLocationParameters from "../../../../../definitions/DeleteExtensionEmergencyLocationParameters"; +import type EmergencyLocationRequestResource from "../../../../../definitions/EmergencyLocationRequestResource"; +import type CommonEmergencyLocationResource from "../../../../../definitions/CommonEmergencyLocationResource"; +import type EmergencyLocationResponseResource from "../../../../../definitions/EmergencyLocationResponseResource"; +import type CreateUserEmergencyLocationRequest from "../../../../../definitions/CreateUserEmergencyLocationRequest"; +import type EmergencyLocationsResource from "../../../../../definitions/EmergencyLocationsResource"; +import type GetExtensionEmergencyLocationsParameters from "../../../../../definitions/GetExtensionEmergencyLocationsParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; public _parent: ParentInterface; public locationId: string | null; - public constructor(_parent: ParentInterface, locationId: string | null = null) { + public constructor( + _parent: ParentInterface, + locationId: string | null = null, + ) { this._parent = _parent; this.rc = _parent.rc; this.locationId = locationId; @@ -34,7 +41,11 @@ class Index { queryParams?: GetExtensionEmergencyLocationsParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(false), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(false), + queryParams, + restRequestConfig, + ); return r.data; } @@ -66,11 +77,17 @@ class Index { * Rate Limit Group: Light * App Permission: ReadAccounts */ - public async get(restRequestConfig?: RestRequestConfig): Promise { + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { if (this.locationId === null) { - throw new Error('locationId must be specified.'); + throw new Error("locationId must be specified."); } - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } @@ -88,7 +105,7 @@ class Index { restRequestConfig?: RestRequestConfig, ): Promise { if (this.locationId === null) { - throw new Error('locationId must be specified.'); + throw new Error("locationId must be specified."); } const r = await this.rc.put( this.path(), @@ -115,9 +132,14 @@ class Index { restRequestConfig?: RestRequestConfig, ): Promise { if (this.locationId === null) { - throw new Error('locationId must be specified.'); + throw new Error("locationId must be specified."); } - const r = await this.rc.delete(this.path(), {}, queryParams, restRequestConfig); + const r = await this.rc.delete( + this.path(), + {}, + queryParams, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Account/Extension/Favorite/index.ts b/packages/core/src/paths/Restapi/Account/Extension/Favorite/index.ts index f280f573..9a9f2c50 100644 --- a/packages/core/src/paths/Restapi/Account/Extension/Favorite/index.ts +++ b/packages/core/src/paths/Restapi/Account/Extension/Favorite/index.ts @@ -1,6 +1,10 @@ -import type FavoriteCollection from '../../../../../definitions/FavoriteCollection'; -import type FavoriteContactList from '../../../../../definitions/FavoriteContactList'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type FavoriteCollection from "../../../../../definitions/FavoriteCollection"; +import type FavoriteContactList from "../../../../../definitions/FavoriteContactList"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -24,8 +28,14 @@ class Index { * App Permission: ReadContacts * User Permission: ReadPersonalContacts */ - public async get(restRequestConfig?: RestRequestConfig): Promise { - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } @@ -45,7 +55,12 @@ class Index { favoriteCollection: FavoriteCollection, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.put(this.path(), favoriteCollection, undefined, restRequestConfig); + const r = await this.rc.put( + this.path(), + favoriteCollection, + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Account/Extension/Fax/index.ts b/packages/core/src/paths/Restapi/Account/Extension/Fax/index.ts index cd7279a0..84f07c52 100644 --- a/packages/core/src/paths/Restapi/Account/Extension/Fax/index.ts +++ b/packages/core/src/paths/Restapi/Account/Extension/Fax/index.ts @@ -1,7 +1,11 @@ -import Utils from '../../../../../Utils'; -import type FaxResponse from '../../../../../definitions/FaxResponse'; -import type CreateFaxMessageRequest from '../../../../../definitions/CreateFaxMessageRequest'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import Utils from "../../../../../Utils"; +import type FaxResponse from "../../../../../definitions/FaxResponse"; +import type CreateFaxMessageRequest from "../../../../../definitions/CreateFaxMessageRequest"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -30,7 +34,12 @@ class Index { restRequestConfig?: RestRequestConfig, ): Promise { const formData = await Utils.getFormData(createFaxMessageRequest); - const r = await this.rc.post(this.path(), formData, undefined, restRequestConfig); + const r = await this.rc.post( + this.path(), + formData, + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Account/Extension/Features/index.ts b/packages/core/src/paths/Restapi/Account/Extension/Features/index.ts index 46757e7d..07612e78 100644 --- a/packages/core/src/paths/Restapi/Account/Extension/Features/index.ts +++ b/packages/core/src/paths/Restapi/Account/Extension/Features/index.ts @@ -1,6 +1,10 @@ -import type FeatureList from '../../../../../definitions/FeatureList'; -import type ReadExtensionFeaturesParameters from '../../../../../definitions/ReadExtensionFeaturesParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type FeatureList from "../../../../../definitions/FeatureList"; +import type ReadExtensionFeaturesParameters from "../../../../../definitions/ReadExtensionFeaturesParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -53,7 +57,11 @@ class Index { queryParams?: ReadExtensionFeaturesParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(), + queryParams, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Account/Extension/ForwardingNumber/index.ts b/packages/core/src/paths/Restapi/Account/Extension/ForwardingNumber/index.ts index deea5d5f..198a2545 100644 --- a/packages/core/src/paths/Restapi/Account/Extension/ForwardingNumber/index.ts +++ b/packages/core/src/paths/Restapi/Account/Extension/ForwardingNumber/index.ts @@ -1,18 +1,25 @@ -import type UpdateForwardingNumberRequest from '../../../../../definitions/UpdateForwardingNumberRequest'; -import type ForwardingNumberResource from '../../../../../definitions/ForwardingNumberResource'; -import type DeleteForwardingNumbersRequest from '../../../../../definitions/DeleteForwardingNumbersRequest'; -import type ForwardingNumberInfo from '../../../../../definitions/ForwardingNumberInfo'; -import type CreateForwardingNumberRequest from '../../../../../definitions/CreateForwardingNumberRequest'; -import type GetExtensionForwardingNumberListResponse from '../../../../../definitions/GetExtensionForwardingNumberListResponse'; -import type ListForwardingNumbersParameters from '../../../../../definitions/ListForwardingNumbersParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type UpdateForwardingNumberRequest from "../../../../../definitions/UpdateForwardingNumberRequest"; +import type ForwardingNumberResource from "../../../../../definitions/ForwardingNumberResource"; +import type DeleteForwardingNumbersRequest from "../../../../../definitions/DeleteForwardingNumbersRequest"; +import type ForwardingNumberInfo from "../../../../../definitions/ForwardingNumberInfo"; +import type CreateForwardingNumberRequest from "../../../../../definitions/CreateForwardingNumberRequest"; +import type GetExtensionForwardingNumberListResponse from "../../../../../definitions/GetExtensionForwardingNumberListResponse"; +import type ListForwardingNumbersParameters from "../../../../../definitions/ListForwardingNumbersParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; public _parent: ParentInterface; public forwardingNumberId: string | null; - public constructor(_parent: ParentInterface, forwardingNumberId: string | null = null) { + public constructor( + _parent: ParentInterface, + forwardingNumberId: string | null = null, + ) { this._parent = _parent; this.rc = _parent.rc; this.forwardingNumberId = forwardingNumberId; @@ -96,11 +103,17 @@ class Index { * App Permission: ReadAccounts * User Permission: ReadUserForwardingFlipNumbers */ - public async get(restRequestConfig?: RestRequestConfig): Promise { + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { if (this.forwardingNumberId === null) { - throw new Error('forwardingNumberId must be specified.'); + throw new Error("forwardingNumberId must be specified."); } - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } @@ -117,7 +130,7 @@ class Index { restRequestConfig?: RestRequestConfig, ): Promise { if (this.forwardingNumberId === null) { - throw new Error('forwardingNumberId must be specified.'); + throw new Error("forwardingNumberId must be specified."); } const r = await this.rc.put( this.path(), @@ -138,9 +151,14 @@ class Index { */ public async delete(restRequestConfig?: RestRequestConfig): Promise { if (this.forwardingNumberId === null) { - throw new Error('forwardingNumberId must be specified.'); + throw new Error("forwardingNumberId must be specified."); } - const r = await this.rc.delete(this.path(), {}, undefined, restRequestConfig); + const r = await this.rc.delete( + this.path(), + {}, + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Account/Extension/Grant/index.ts b/packages/core/src/paths/Restapi/Account/Extension/Grant/index.ts index 8804b9c1..9b06fb91 100644 --- a/packages/core/src/paths/Restapi/Account/Extension/Grant/index.ts +++ b/packages/core/src/paths/Restapi/Account/Extension/Grant/index.ts @@ -1,6 +1,10 @@ -import type GetExtensionGrantListResponse from '../../../../../definitions/GetExtensionGrantListResponse'; -import type ListExtensionGrantsParameters from '../../../../../definitions/ListExtensionGrantsParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type GetExtensionGrantListResponse from "../../../../../definitions/GetExtensionGrantListResponse"; +import type ListExtensionGrantsParameters from "../../../../../definitions/ListExtensionGrantsParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -29,7 +33,11 @@ class Index { queryParams?: ListExtensionGrantsParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(), + queryParams, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Account/Extension/Greeting/Content/index.ts b/packages/core/src/paths/Restapi/Account/Extension/Greeting/Content/index.ts index bcbb57b8..643eee08 100644 --- a/packages/core/src/paths/Restapi/Account/Extension/Greeting/Content/index.ts +++ b/packages/core/src/paths/Restapi/Account/Extension/Greeting/Content/index.ts @@ -1,5 +1,9 @@ -import type ReadGreetingContentParameters from '../../../../../../definitions/ReadGreetingContentParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../../types'; +import type ReadGreetingContentParameters from "../../../../../../definitions/ReadGreetingContentParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../../types"; class Index { public rc: RingCentralInterface; @@ -28,7 +32,7 @@ class Index { ): Promise { const r = await this.rc.get(this.path(), queryParams, { ...restRequestConfig, - responseType: 'arraybuffer', + responseType: "arraybuffer", }); return r.data; } diff --git a/packages/core/src/paths/Restapi/Account/Extension/Greeting/index.ts b/packages/core/src/paths/Restapi/Account/Extension/Greeting/index.ts index f3be7fca..018d3991 100644 --- a/packages/core/src/paths/Restapi/Account/Extension/Greeting/index.ts +++ b/packages/core/src/paths/Restapi/Account/Extension/Greeting/index.ts @@ -1,16 +1,23 @@ -import Content from './Content'; -import Utils from '../../../../../Utils'; -import type CustomUserGreetingInfo from '../../../../../definitions/CustomUserGreetingInfo'; -import type CreateCustomUserGreetingParameters from '../../../../../definitions/CreateCustomUserGreetingParameters'; -import type CreateCustomUserGreetingRequest from '../../../../../definitions/CreateCustomUserGreetingRequest'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import Content from "./Content"; +import Utils from "../../../../../Utils"; +import type CustomUserGreetingInfo from "../../../../../definitions/CustomUserGreetingInfo"; +import type CreateCustomUserGreetingParameters from "../../../../../definitions/CreateCustomUserGreetingParameters"; +import type CreateCustomUserGreetingRequest from "../../../../../definitions/CreateCustomUserGreetingRequest"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; public _parent: ParentInterface; public greetingId: string | null; - public constructor(_parent: ParentInterface, greetingId: string | null = null) { + public constructor( + _parent: ParentInterface, + greetingId: string | null = null, + ) { this._parent = _parent; this.rc = _parent.rc; this.greetingId = greetingId; @@ -35,7 +42,12 @@ class Index { restRequestConfig?: RestRequestConfig, ): Promise { const formData = await Utils.getFormData(createCustomUserGreetingRequest); - const r = await this.rc.post(this.path(false), formData, queryParams, restRequestConfig); + const r = await this.rc.post( + this.path(false), + formData, + queryParams, + restRequestConfig, + ); return r.data; } @@ -47,11 +59,17 @@ class Index { * App Permission: ReadAccounts * User Permission: ReadUserInfo */ - public async get(restRequestConfig?: RestRequestConfig): Promise { + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { if (this.greetingId === null) { - throw new Error('greetingId must be specified.'); + throw new Error("greetingId must be specified."); } - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } diff --git a/packages/core/src/paths/Restapi/Account/Extension/MessageStore/Content/index.ts b/packages/core/src/paths/Restapi/Account/Extension/MessageStore/Content/index.ts index c6da6f8a..fbbbe202 100644 --- a/packages/core/src/paths/Restapi/Account/Extension/MessageStore/Content/index.ts +++ b/packages/core/src/paths/Restapi/Account/Extension/MessageStore/Content/index.ts @@ -1,12 +1,19 @@ -import type ReadMessageContentParameters from '../../../../../../definitions/ReadMessageContentParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../../types'; +import type ReadMessageContentParameters from "../../../../../../definitions/ReadMessageContentParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../../types"; class Index { public rc: RingCentralInterface; public _parent: ParentInterface; public attachmentId: string | null; - public constructor(_parent: ParentInterface, attachmentId: string | null = null) { + public constructor( + _parent: ParentInterface, + attachmentId: string | null = null, + ) { this._parent = _parent; this.rc = _parent.rc; this.attachmentId = attachmentId; @@ -29,13 +36,16 @@ class Index { * Rate Limit Group: Medium * App Permission: ReadMessages */ - public async get(queryParams?: ReadMessageContentParameters, restRequestConfig?: RestRequestConfig): Promise { + public async get( + queryParams?: ReadMessageContentParameters, + restRequestConfig?: RestRequestConfig, + ): Promise { if (this.attachmentId === null) { - throw new Error('attachmentId must be specified.'); + throw new Error("attachmentId must be specified."); } const r = await this.rc.get(this.path(), queryParams, { ...restRequestConfig, - responseType: 'arraybuffer', + responseType: "arraybuffer", }); return r.data; } diff --git a/packages/core/src/paths/Restapi/Account/Extension/MessageStore/index.ts b/packages/core/src/paths/Restapi/Account/Extension/MessageStore/index.ts index 736aad25..32368324 100644 --- a/packages/core/src/paths/Restapi/Account/Extension/MessageStore/index.ts +++ b/packages/core/src/paths/Restapi/Account/Extension/MessageStore/index.ts @@ -1,19 +1,26 @@ -import Content from './Content'; -import type PatchMessageRequest from '../../../../../definitions/PatchMessageRequest'; -import type DeleteMessageParameters from '../../../../../definitions/DeleteMessageParameters'; -import type UpdateMessageRequest from '../../../../../definitions/UpdateMessageRequest'; -import type GetMessageInfoResponse from '../../../../../definitions/GetMessageInfoResponse'; -import type DeleteMessageByFilterParameters from '../../../../../definitions/DeleteMessageByFilterParameters'; -import type GetMessageList from '../../../../../definitions/GetMessageList'; -import type ListMessagesParameters from '../../../../../definitions/ListMessagesParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import Content from "./Content"; +import type PatchMessageRequest from "../../../../../definitions/PatchMessageRequest"; +import type DeleteMessageParameters from "../../../../../definitions/DeleteMessageParameters"; +import type UpdateMessageRequest from "../../../../../definitions/UpdateMessageRequest"; +import type GetMessageInfoResponse from "../../../../../definitions/GetMessageInfoResponse"; +import type DeleteMessageByFilterParameters from "../../../../../definitions/DeleteMessageByFilterParameters"; +import type GetMessageList from "../../../../../definitions/GetMessageList"; +import type ListMessagesParameters from "../../../../../definitions/ListMessagesParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; public _parent: ParentInterface; public messageId: string | null; - public constructor(_parent: ParentInterface, messageId: string | null = null) { + public constructor( + _parent: ParentInterface, + messageId: string | null = null, + ) { this._parent = _parent; this.rc = _parent.rc; this.messageId = messageId; @@ -36,7 +43,11 @@ class Index { queryParams?: ListMessagesParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(false), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(false), + queryParams, + restRequestConfig, + ); return r.data; } @@ -57,7 +68,12 @@ class Index { queryParams?: DeleteMessageByFilterParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.delete(this.path(false), {}, queryParams, restRequestConfig); + const r = await this.rc.delete( + this.path(false), + {}, + queryParams, + restRequestConfig, + ); return r.data; } @@ -72,11 +88,17 @@ class Index { * App Permission: ReadMessages * User Permission: ReadMessages */ - public async get(restRequestConfig?: RestRequestConfig): Promise { + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { if (this.messageId === null) { - throw new Error('messageId must be specified.'); + throw new Error("messageId must be specified."); } - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } @@ -100,7 +122,7 @@ class Index { restRequestConfig?: RestRequestConfig, ): Promise { if (this.messageId === null) { - throw new Error('messageId must be specified.'); + throw new Error("messageId must be specified."); } const r = await this.rc.put( this.path(), @@ -130,9 +152,14 @@ class Index { restRequestConfig?: RestRequestConfig, ): Promise { if (this.messageId === null) { - throw new Error('messageId must be specified.'); + throw new Error("messageId must be specified."); } - const r = await this.rc.delete(this.path(), deleteMessageBulkRequest, queryParams, restRequestConfig); + const r = await this.rc.delete( + this.path(), + deleteMessageBulkRequest, + queryParams, + restRequestConfig, + ); return r.data; } @@ -158,7 +185,7 @@ class Index { restRequestConfig?: RestRequestConfig, ): Promise { if (this.messageId === null) { - throw new Error('messageId must be specified.'); + throw new Error("messageId must be specified."); } const r = await this.rc.patch( this.path(), diff --git a/packages/core/src/paths/Restapi/Account/Extension/MessageStoreTemplates/index.ts b/packages/core/src/paths/Restapi/Account/Extension/MessageStoreTemplates/index.ts index c175c209..542817a2 100644 --- a/packages/core/src/paths/Restapi/Account/Extension/MessageStoreTemplates/index.ts +++ b/packages/core/src/paths/Restapi/Account/Extension/MessageStoreTemplates/index.ts @@ -1,16 +1,23 @@ -import type MessageTemplateUpdateRequest from '../../../../../definitions/MessageTemplateUpdateRequest'; -import type MessageTemplateResponse from '../../../../../definitions/MessageTemplateResponse'; -import type MessageTemplateRequest from '../../../../../definitions/MessageTemplateRequest'; -import type MessageTemplatesListResponse from '../../../../../definitions/MessageTemplatesListResponse'; -import type ListUserMessageTemplatesParameters from '../../../../../definitions/ListUserMessageTemplatesParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type MessageTemplateUpdateRequest from "../../../../../definitions/MessageTemplateUpdateRequest"; +import type MessageTemplateResponse from "../../../../../definitions/MessageTemplateResponse"; +import type MessageTemplateRequest from "../../../../../definitions/MessageTemplateRequest"; +import type MessageTemplatesListResponse from "../../../../../definitions/MessageTemplatesListResponse"; +import type ListUserMessageTemplatesParameters from "../../../../../definitions/ListUserMessageTemplatesParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; public _parent: ParentInterface; public templateId: string | null; - public constructor(_parent: ParentInterface, templateId: string | null = null) { + public constructor( + _parent: ParentInterface, + templateId: string | null = null, + ) { this._parent = _parent; this.rc = _parent.rc; this.templateId = templateId; @@ -32,7 +39,11 @@ class Index { queryParams?: ListUserMessageTemplatesParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(false), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(false), + queryParams, + restRequestConfig, + ); return r.data; } @@ -66,11 +77,17 @@ class Index { * Rate Limit Group: Light * App Permission: ReadAccounts */ - public async get(restRequestConfig?: RestRequestConfig): Promise { + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { if (this.templateId === null) { - throw new Error('templateId must be specified.'); + throw new Error("templateId must be specified."); } - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } @@ -86,7 +103,7 @@ class Index { restRequestConfig?: RestRequestConfig, ): Promise { if (this.templateId === null) { - throw new Error('templateId must be specified.'); + throw new Error("templateId must be specified."); } const r = await this.rc.put( this.path(), @@ -106,9 +123,14 @@ class Index { */ public async delete(restRequestConfig?: RestRequestConfig): Promise { if (this.templateId === null) { - throw new Error('templateId must be specified.'); + throw new Error("templateId must be specified."); } - const r = await this.rc.delete(this.path(), {}, undefined, restRequestConfig); + const r = await this.rc.delete( + this.path(), + {}, + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Account/Extension/MessageSync/index.ts b/packages/core/src/paths/Restapi/Account/Extension/MessageSync/index.ts index 41cc70be..eb9bdd05 100644 --- a/packages/core/src/paths/Restapi/Account/Extension/MessageSync/index.ts +++ b/packages/core/src/paths/Restapi/Account/Extension/MessageSync/index.ts @@ -1,6 +1,10 @@ -import type GetMessageSyncResponse from '../../../../../definitions/GetMessageSyncResponse'; -import type SyncMessagesParameters from '../../../../../definitions/SyncMessagesParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type GetMessageSyncResponse from "../../../../../definitions/GetMessageSyncResponse"; +import type SyncMessagesParameters from "../../../../../definitions/SyncMessagesParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -25,7 +29,11 @@ class Index { queryParams?: SyncMessagesParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(), + queryParams, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Account/Extension/Mms/index.ts b/packages/core/src/paths/Restapi/Account/Extension/Mms/index.ts index 0b6cce7e..72b90306 100644 --- a/packages/core/src/paths/Restapi/Account/Extension/Mms/index.ts +++ b/packages/core/src/paths/Restapi/Account/Extension/Mms/index.ts @@ -1,7 +1,11 @@ -import Utils from '../../../../../Utils'; -import type GetSMSMessageInfoResponse from '../../../../../definitions/GetSMSMessageInfoResponse'; -import type CreateMMSMessage from '../../../../../definitions/CreateMMSMessage'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import Utils from "../../../../../Utils"; +import type GetSMSMessageInfoResponse from "../../../../../definitions/GetSMSMessageInfoResponse"; +import type CreateMMSMessage from "../../../../../definitions/CreateMMSMessage"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -30,7 +34,12 @@ class Index { restRequestConfig?: RestRequestConfig, ): Promise { const formData = await Utils.getFormData(createMMSMessage); - const r = await this.rc.post(this.path(), formData, undefined, restRequestConfig); + const r = await this.rc.post( + this.path(), + formData, + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Account/Extension/NotificationSettings/index.ts b/packages/core/src/paths/Restapi/Account/Extension/NotificationSettings/index.ts index 6aff79b1..b61f55ca 100644 --- a/packages/core/src/paths/Restapi/Account/Extension/NotificationSettings/index.ts +++ b/packages/core/src/paths/Restapi/Account/Extension/NotificationSettings/index.ts @@ -1,6 +1,10 @@ -import type NotificationSettingsUpdateRequest from '../../../../../definitions/NotificationSettingsUpdateRequest'; -import type NotificationSettings from '../../../../../definitions/NotificationSettings'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type NotificationSettingsUpdateRequest from "../../../../../definitions/NotificationSettingsUpdateRequest"; +import type NotificationSettings from "../../../../../definitions/NotificationSettings"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -24,8 +28,14 @@ class Index { * App Permission: ReadAccounts * User Permission: ReadMessagesNotificationsSettings */ - public async get(restRequestConfig?: RestRequestConfig): Promise { - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } diff --git a/packages/core/src/paths/Restapi/Account/Extension/OverflowSettings/index.ts b/packages/core/src/paths/Restapi/Account/Extension/OverflowSettings/index.ts index a8fbc42c..c5b9352b 100644 --- a/packages/core/src/paths/Restapi/Account/Extension/OverflowSettings/index.ts +++ b/packages/core/src/paths/Restapi/Account/Extension/OverflowSettings/index.ts @@ -1,6 +1,10 @@ -import type CallQueueOverflowSettingsRequestResource from '../../../../../definitions/CallQueueOverflowSettingsRequestResource'; -import type CallQueueOverflowSettings from '../../../../../definitions/CallQueueOverflowSettings'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type CallQueueOverflowSettingsRequestResource from "../../../../../definitions/CallQueueOverflowSettingsRequestResource"; +import type CallQueueOverflowSettings from "../../../../../definitions/CallQueueOverflowSettings"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -21,8 +25,14 @@ class Index { * App Permission: ReadAccounts * User Permission: CallQueueToCallQueue */ - public async get(restRequestConfig?: RestRequestConfig): Promise { - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } @@ -35,7 +45,8 @@ class Index { * User Permission: CallQueueToCallQueue */ public async put( - callQueueOverflowSettingsRequestResource: CallQueueOverflowSettingsRequestResource, + callQueueOverflowSettingsRequestResource: + CallQueueOverflowSettingsRequestResource, restRequestConfig?: RestRequestConfig, ): Promise { const r = await this.rc.put( diff --git a/packages/core/src/paths/Restapi/Account/Extension/PhoneNumber/index.ts b/packages/core/src/paths/Restapi/Account/Extension/PhoneNumber/index.ts index 1040ccd3..62cc6615 100644 --- a/packages/core/src/paths/Restapi/Account/Extension/PhoneNumber/index.ts +++ b/packages/core/src/paths/Restapi/Account/Extension/PhoneNumber/index.ts @@ -1,6 +1,10 @@ -import type GetExtensionPhoneNumbersResponse from '../../../../../definitions/GetExtensionPhoneNumbersResponse'; -import type ListExtensionPhoneNumbersParameters from '../../../../../definitions/ListExtensionPhoneNumbersParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type GetExtensionPhoneNumbersResponse from "../../../../../definitions/GetExtensionPhoneNumbersResponse"; +import type ListExtensionPhoneNumbersParameters from "../../../../../definitions/ListExtensionPhoneNumbersParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -30,7 +34,11 @@ class Index { queryParams?: ListExtensionPhoneNumbersParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(), + queryParams, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Account/Extension/Presence/index.ts b/packages/core/src/paths/Restapi/Account/Extension/Presence/index.ts index a1fae0a9..2522f186 100644 --- a/packages/core/src/paths/Restapi/Account/Extension/Presence/index.ts +++ b/packages/core/src/paths/Restapi/Account/Extension/Presence/index.ts @@ -1,8 +1,12 @@ -import type PresenceInfoResponse from '../../../../../definitions/PresenceInfoResponse'; -import type PresenceInfoRequest from '../../../../../definitions/PresenceInfoRequest'; -import type GetPresenceInfo from '../../../../../definitions/GetPresenceInfo'; -import type ReadUserPresenceStatusParameters from '../../../../../definitions/ReadUserPresenceStatusParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type PresenceInfoResponse from "../../../../../definitions/PresenceInfoResponse"; +import type PresenceInfoRequest from "../../../../../definitions/PresenceInfoRequest"; +import type GetPresenceInfo from "../../../../../definitions/GetPresenceInfo"; +import type ReadUserPresenceStatusParameters from "../../../../../definitions/ReadUserPresenceStatusParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -34,7 +38,11 @@ class Index { queryParams?: ReadUserPresenceStatusParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(), + queryParams, + restRequestConfig, + ); return r.data; } @@ -49,7 +57,12 @@ class Index { presenceInfoRequest: PresenceInfoRequest, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.put(this.path(), presenceInfoRequest, undefined, restRequestConfig); + const r = await this.rc.put( + this.path(), + presenceInfoRequest, + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Account/Extension/ProfileImage/index.ts b/packages/core/src/paths/Restapi/Account/Extension/ProfileImage/index.ts index 94fd517d..e5718a5c 100644 --- a/packages/core/src/paths/Restapi/Account/Extension/ProfileImage/index.ts +++ b/packages/core/src/paths/Restapi/Account/Extension/ProfileImage/index.ts @@ -1,15 +1,22 @@ -import Utils from '../../../../../Utils'; -import type ReadScaledProfileImageParameters from '../../../../../definitions/ReadScaledProfileImageParameters'; -import type UpdateUserProfileImageRequest from '../../../../../definitions/UpdateUserProfileImageRequest'; -import type CreateUserProfileImageRequest from '../../../../../definitions/CreateUserProfileImageRequest'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import Utils from "../../../../../Utils"; +import type ReadScaledProfileImageParameters from "../../../../../definitions/ReadScaledProfileImageParameters"; +import type UpdateUserProfileImageRequest from "../../../../../definitions/UpdateUserProfileImageRequest"; +import type CreateUserProfileImageRequest from "../../../../../definitions/CreateUserProfileImageRequest"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; public _parent: ParentInterface; public scaleSize: string | null; - public constructor(_parent: ParentInterface, scaleSize: string | null = null) { + public constructor( + _parent: ParentInterface, + scaleSize: string | null = null, + ) { this._parent = _parent; this.rc = _parent.rc; this.scaleSize = scaleSize; @@ -32,7 +39,7 @@ class Index { public async list(restRequestConfig?: RestRequestConfig): Promise { const r = await this.rc.get(this.path(false), undefined, { ...restRequestConfig, - responseType: 'arraybuffer', + responseType: "arraybuffer", }); return r.data; } @@ -51,7 +58,12 @@ class Index { restRequestConfig?: RestRequestConfig, ): Promise { const formData = await Utils.getFormData(createUserProfileImageRequest); - const r = await this.rc.post(this.path(false), formData, undefined, restRequestConfig); + const r = await this.rc.post( + this.path(false), + formData, + undefined, + restRequestConfig, + ); return r.data; } @@ -69,7 +81,12 @@ class Index { restRequestConfig?: RestRequestConfig, ): Promise { const formData = await Utils.getFormData(updateUserProfileImageRequest); - const r = await this.rc.put(this.path(false), formData, undefined, restRequestConfig); + const r = await this.rc.put( + this.path(false), + formData, + undefined, + restRequestConfig, + ); return r.data; } @@ -83,7 +100,12 @@ class Index { * User Permission: EditUserInfo */ public async delete(restRequestConfig?: RestRequestConfig): Promise { - const r = await this.rc.delete(this.path(false), {}, undefined, restRequestConfig); + const r = await this.rc.delete( + this.path(false), + {}, + undefined, + restRequestConfig, + ); return r.data; } @@ -102,11 +124,11 @@ class Index { restRequestConfig?: RestRequestConfig, ): Promise { if (this.scaleSize === null) { - throw new Error('scaleSize must be specified.'); + throw new Error("scaleSize must be specified."); } const r = await this.rc.get(this.path(), queryParams, { ...restRequestConfig, - responseType: 'arraybuffer', + responseType: "arraybuffer", }); return r.data; } diff --git a/packages/core/src/paths/Restapi/Account/Extension/RingOut/index.ts b/packages/core/src/paths/Restapi/Account/Extension/RingOut/index.ts index 29b1495c..4a008955 100644 --- a/packages/core/src/paths/Restapi/Account/Extension/RingOut/index.ts +++ b/packages/core/src/paths/Restapi/Account/Extension/RingOut/index.ts @@ -1,13 +1,20 @@ -import type GetRingOutStatusResponse from '../../../../../definitions/GetRingOutStatusResponse'; -import type MakeRingOutRequest from '../../../../../definitions/MakeRingOutRequest'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type GetRingOutStatusResponse from "../../../../../definitions/GetRingOutStatusResponse"; +import type MakeRingOutRequest from "../../../../../definitions/MakeRingOutRequest"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; public _parent: ParentInterface; public ringoutId: string | null; - public constructor(_parent: ParentInterface, ringoutId: string | null = null) { + public constructor( + _parent: ParentInterface, + ringoutId: string | null = null, + ) { this._parent = _parent; this.rc = _parent.rc; this.ringoutId = ringoutId; @@ -45,11 +52,17 @@ class Index { * Rate Limit Group: Light * App Permission: RingOut */ - public async get(restRequestConfig?: RestRequestConfig): Promise { + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { if (this.ringoutId === null) { - throw new Error('ringoutId must be specified.'); + throw new Error("ringoutId must be specified."); } - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } @@ -62,9 +75,14 @@ class Index { */ public async delete(restRequestConfig?: RestRequestConfig): Promise { if (this.ringoutId === null) { - throw new Error('ringoutId must be specified.'); + throw new Error("ringoutId must be specified."); } - const r = await this.rc.delete(this.path(), {}, undefined, restRequestConfig); + const r = await this.rc.delete( + this.path(), + {}, + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Account/Extension/Sms/index.ts b/packages/core/src/paths/Restapi/Account/Extension/Sms/index.ts index 76936b77..c36c78b4 100644 --- a/packages/core/src/paths/Restapi/Account/Extension/Sms/index.ts +++ b/packages/core/src/paths/Restapi/Account/Extension/Sms/index.ts @@ -1,7 +1,11 @@ -import Utils from '../../../../../Utils'; -import type GetSMSMessageInfoResponse from '../../../../../definitions/GetSMSMessageInfoResponse'; -import type CreateSMSMessage from '../../../../../definitions/CreateSMSMessage'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import Utils from "../../../../../Utils"; +import type GetSMSMessageInfoResponse from "../../../../../definitions/GetSMSMessageInfoResponse"; +import type CreateSMSMessage from "../../../../../definitions/CreateSMSMessage"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -33,7 +37,12 @@ class Index { restRequestConfig?: RestRequestConfig, ): Promise { const formData = await Utils.getFormData(createSMSMessage); - const r = await this.rc.post(this.path(), formData, undefined, restRequestConfig); + const r = await this.rc.post( + this.path(), + formData, + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Account/Extension/UnifiedPresence/index.ts b/packages/core/src/paths/Restapi/Account/Extension/UnifiedPresence/index.ts index c3892f1c..9523b225 100644 --- a/packages/core/src/paths/Restapi/Account/Extension/UnifiedPresence/index.ts +++ b/packages/core/src/paths/Restapi/Account/Extension/UnifiedPresence/index.ts @@ -1,6 +1,10 @@ -import type UpdateUnifiedPresence from '../../../../../definitions/UpdateUnifiedPresence'; -import type UnifiedPresence from '../../../../../definitions/UnifiedPresence'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type UpdateUnifiedPresence from "../../../../../definitions/UpdateUnifiedPresence"; +import type UnifiedPresence from "../../../../../definitions/UnifiedPresence"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -21,8 +25,14 @@ class Index { * App Permission: ReadPresence * User Permission: ReadPresenceStatus */ - public async get(restRequestConfig?: RestRequestConfig): Promise { - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } @@ -38,7 +48,12 @@ class Index { updateUnifiedPresence: UpdateUnifiedPresence, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.patch(this.path(), updateUnifiedPresence, undefined, restRequestConfig); + const r = await this.rc.patch( + this.path(), + updateUnifiedPresence, + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Account/Extension/VideoConfiguration/index.ts b/packages/core/src/paths/Restapi/Account/Extension/VideoConfiguration/index.ts index 957dfdec..7ac5ab6a 100644 --- a/packages/core/src/paths/Restapi/Account/Extension/VideoConfiguration/index.ts +++ b/packages/core/src/paths/Restapi/Account/Extension/VideoConfiguration/index.ts @@ -1,5 +1,9 @@ -import type UserVideoConfiguration from '../../../../../definitions/UserVideoConfiguration'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type UserVideoConfiguration from "../../../../../definitions/UserVideoConfiguration"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -21,8 +25,14 @@ class Index { * App Permission: ReadAccounts * User Permission: Meetings */ - public async get(restRequestConfig?: RestRequestConfig): Promise { - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Account/Extension/index.ts b/packages/core/src/paths/Restapi/Account/Extension/index.ts index a266e7c8..48bcb799 100644 --- a/packages/core/src/paths/Restapi/Account/Extension/index.ts +++ b/packages/core/src/paths/Restapi/Account/Extension/index.ts @@ -1,55 +1,62 @@ -import MessageStoreTemplates from './MessageStoreTemplates'; -import NotificationSettings from './NotificationSettings'; -import CallQueuePresence from './CallQueuePresence'; -import VideoConfiguration from './VideoConfiguration'; -import EmergencyLocations from './EmergencyLocations'; -import AdministeredSites from './AdministeredSites'; -import OverflowSettings from './OverflowSettings'; -import AddressBookSync from './AddressBookSync'; -import ForwardingNumber from './ForwardingNumber'; -import UnifiedPresence from './UnifiedPresence'; -import AssignableRoles from './AssignableRoles'; -import CallerBlocking from './CallerBlocking'; -import BusinessHours from './BusinessHours'; -import AnsweringRule from './AnsweringRule'; -import AssignedRole from './AssignedRole'; -import AuthzProfile from './AuthzProfile'; -import CompanyPager from './CompanyPager'; -import CallLogSync from './CallLogSync'; -import MessageStore from './MessageStore'; -import ProfileImage from './ProfileImage'; -import PhoneNumber from './PhoneNumber'; -import ActiveCalls from './ActiveCalls'; -import MessageSync from './MessageSync'; -import Conferencing from './Conferencing'; -import AddressBook from './AddressBook'; -import CallQueues from './CallQueues'; -import CallerId from './CallerId'; -import Features from './Features'; -import Presence from './Presence'; -import Favorite from './Favorite'; -import RingOut from './RingOut'; -import Greeting from './Greeting'; -import CallLog from './CallLog'; -import Device from './Device'; -import Grant from './Grant'; -import Mms from './Mms'; -import Sms from './Sms'; -import Fax from './Fax'; -import type ExtensionUpdateRequest from '../../../../definitions/ExtensionUpdateRequest'; -import type GetExtensionInfoResponse from '../../../../definitions/GetExtensionInfoResponse'; -import type ExtensionCreationResponse from '../../../../definitions/ExtensionCreationResponse'; -import type ExtensionCreationRequest from '../../../../definitions/ExtensionCreationRequest'; -import type GetExtensionListResponse from '../../../../definitions/GetExtensionListResponse'; -import type ListExtensionsParameters from '../../../../definitions/ListExtensionsParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../types'; +import MessageStoreTemplates from "./MessageStoreTemplates"; +import NotificationSettings from "./NotificationSettings"; +import CallQueuePresence from "./CallQueuePresence"; +import VideoConfiguration from "./VideoConfiguration"; +import EmergencyLocations from "./EmergencyLocations"; +import AdministeredSites from "./AdministeredSites"; +import OverflowSettings from "./OverflowSettings"; +import AddressBookSync from "./AddressBookSync"; +import ForwardingNumber from "./ForwardingNumber"; +import UnifiedPresence from "./UnifiedPresence"; +import AssignableRoles from "./AssignableRoles"; +import CallerBlocking from "./CallerBlocking"; +import BusinessHours from "./BusinessHours"; +import AnsweringRule from "./AnsweringRule"; +import AssignedRole from "./AssignedRole"; +import AuthzProfile from "./AuthzProfile"; +import CompanyPager from "./CompanyPager"; +import CallLogSync from "./CallLogSync"; +import MessageStore from "./MessageStore"; +import ProfileImage from "./ProfileImage"; +import PhoneNumber from "./PhoneNumber"; +import ActiveCalls from "./ActiveCalls"; +import MessageSync from "./MessageSync"; +import Conferencing from "./Conferencing"; +import AddressBook from "./AddressBook"; +import CallQueues from "./CallQueues"; +import CallerId from "./CallerId"; +import Features from "./Features"; +import Presence from "./Presence"; +import Favorite from "./Favorite"; +import RingOut from "./RingOut"; +import Greeting from "./Greeting"; +import CallLog from "./CallLog"; +import Device from "./Device"; +import Grant from "./Grant"; +import Mms from "./Mms"; +import Sms from "./Sms"; +import Fax from "./Fax"; +import type ExtensionUpdateRequest from "../../../../definitions/ExtensionUpdateRequest"; +import type GetExtensionInfoResponse from "../../../../definitions/GetExtensionInfoResponse"; +import type ExtensionCreationResponse from "../../../../definitions/ExtensionCreationResponse"; +import type ExtensionCreationRequest from "../../../../definitions/ExtensionCreationRequest"; +import type GetExtensionListResponse from "../../../../definitions/GetExtensionListResponse"; +import type ListExtensionsParameters from "../../../../definitions/ListExtensionsParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../types"; class Index { public rc: RingCentralInterface; public _parent: ParentInterface; public extensionId: string | null; - public constructor(_parent: ParentInterface, extensionId: string | null = '~') { + public constructor( + _parent: ParentInterface, + extensionId: string | null = "~", + ) { this._parent = _parent; this.rc = _parent.rc; this.extensionId = extensionId; @@ -74,7 +81,11 @@ class Index { queryParams?: ListExtensionsParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(false), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(false), + queryParams, + restRequestConfig, + ); return r.data; } @@ -109,11 +120,17 @@ class Index { * App Permission: ReadAccounts * User Permission: ReadExtensions */ - public async get(restRequestConfig?: RestRequestConfig): Promise { + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { if (this.extensionId === null) { - throw new Error('extensionId must be specified.'); + throw new Error("extensionId must be specified."); } - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } @@ -130,7 +147,7 @@ class Index { restRequestConfig?: RestRequestConfig, ): Promise { if (this.extensionId === null) { - throw new Error('extensionId must be specified.'); + throw new Error("extensionId must be specified."); } const r = await this.rc.put( this.path(), @@ -257,7 +274,9 @@ class Index { return new UnifiedPresence(this); } - public forwardingNumber(forwardingNumberId: string | null = null): ForwardingNumber { + public forwardingNumber( + forwardingNumberId: string | null = null, + ): ForwardingNumber { return new ForwardingNumber(this, forwardingNumberId); } @@ -273,7 +292,9 @@ class Index { return new AdministeredSites(this); } - public emergencyLocations(locationId: string | null = null): EmergencyLocations { + public emergencyLocations( + locationId: string | null = null, + ): EmergencyLocations { return new EmergencyLocations(this, locationId); } @@ -289,7 +310,9 @@ class Index { return new NotificationSettings(this); } - public messageStoreTemplates(templateId: string | null = null): MessageStoreTemplates { + public messageStoreTemplates( + templateId: string | null = null, + ): MessageStoreTemplates { return new MessageStoreTemplates(this, templateId); } } diff --git a/packages/core/src/paths/Restapi/Account/ExtensionBulkUpdate/Tasks/index.ts b/packages/core/src/paths/Restapi/Account/ExtensionBulkUpdate/Tasks/index.ts index cdecd754..a90be912 100644 --- a/packages/core/src/paths/Restapi/Account/ExtensionBulkUpdate/Tasks/index.ts +++ b/packages/core/src/paths/Restapi/Account/ExtensionBulkUpdate/Tasks/index.ts @@ -1,5 +1,9 @@ -import type ExtensionBulkUpdateTaskResource from '../../../../../definitions/ExtensionBulkUpdateTaskResource'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type ExtensionBulkUpdateTaskResource from "../../../../../definitions/ExtensionBulkUpdateTaskResource"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -26,11 +30,17 @@ class Index { * App Permission: EditExtensions * User Permission: EditExtensionInfo */ - public async get(restRequestConfig?: RestRequestConfig): Promise { + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { if (this.taskId === null) { - throw new Error('taskId must be specified.'); + throw new Error("taskId must be specified."); } - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Account/ExtensionBulkUpdate/index.ts b/packages/core/src/paths/Restapi/Account/ExtensionBulkUpdate/index.ts index 6b7a211d..f7444418 100644 --- a/packages/core/src/paths/Restapi/Account/ExtensionBulkUpdate/index.ts +++ b/packages/core/src/paths/Restapi/Account/ExtensionBulkUpdate/index.ts @@ -1,7 +1,11 @@ -import Tasks from './Tasks'; -import type ExtensionBulkUpdateTaskResource from '../../../../definitions/ExtensionBulkUpdateTaskResource'; -import type ExtensionBulkUpdateRequest from '../../../../definitions/ExtensionBulkUpdateRequest'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../types'; +import Tasks from "./Tasks"; +import type ExtensionBulkUpdateTaskResource from "../../../../definitions/ExtensionBulkUpdateTaskResource"; +import type ExtensionBulkUpdateRequest from "../../../../definitions/ExtensionBulkUpdateRequest"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../types"; class Index { public rc: RingCentralInterface; diff --git a/packages/core/src/paths/Restapi/Account/ForwardAllCalls/index.ts b/packages/core/src/paths/Restapi/Account/ForwardAllCalls/index.ts index c31f2f09..235ffe02 100644 --- a/packages/core/src/paths/Restapi/Account/ForwardAllCalls/index.ts +++ b/packages/core/src/paths/Restapi/Account/ForwardAllCalls/index.ts @@ -1,6 +1,10 @@ -import type ForwardAllCompanyCallsRequest from '../../../../definitions/ForwardAllCompanyCallsRequest'; -import type ForwardAllCompanyCallsInfo from '../../../../definitions/ForwardAllCompanyCallsInfo'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../types'; +import type ForwardAllCompanyCallsRequest from "../../../../definitions/ForwardAllCompanyCallsRequest"; +import type ForwardAllCompanyCallsInfo from "../../../../definitions/ForwardAllCompanyCallsInfo"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../types"; class Index { public rc: RingCentralInterface; @@ -21,8 +25,14 @@ class Index { * App Permission: ReadAccounts * User Permission: ReadCompanyAnsweringRules */ - public async get(restRequestConfig?: RestRequestConfig): Promise { - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } diff --git a/packages/core/src/paths/Restapi/Account/Greeting/Content/index.ts b/packages/core/src/paths/Restapi/Account/Greeting/Content/index.ts index f4bd8d75..881b7daa 100644 --- a/packages/core/src/paths/Restapi/Account/Greeting/Content/index.ts +++ b/packages/core/src/paths/Restapi/Account/Greeting/Content/index.ts @@ -1,5 +1,9 @@ -import type ReadAccountGreetingContentParameters from '../../../../../definitions/ReadAccountGreetingContentParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type ReadAccountGreetingContentParameters from "../../../../../definitions/ReadAccountGreetingContentParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -28,7 +32,7 @@ class Index { ): Promise { const r = await this.rc.get(this.path(), queryParams, { ...restRequestConfig, - responseType: 'arraybuffer', + responseType: "arraybuffer", }); return r.data; } diff --git a/packages/core/src/paths/Restapi/Account/Greeting/index.ts b/packages/core/src/paths/Restapi/Account/Greeting/index.ts index 466b773a..75b6f746 100644 --- a/packages/core/src/paths/Restapi/Account/Greeting/index.ts +++ b/packages/core/src/paths/Restapi/Account/Greeting/index.ts @@ -1,8 +1,12 @@ -import Content from './Content'; -import Utils from '../../../../Utils'; -import type CustomCompanyGreetingInfo from '../../../../definitions/CustomCompanyGreetingInfo'; -import type CreateCompanyGreetingRequest from '../../../../definitions/CreateCompanyGreetingRequest'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../types'; +import Content from "./Content"; +import Utils from "../../../../Utils"; +import type CustomCompanyGreetingInfo from "../../../../definitions/CustomCompanyGreetingInfo"; +import type CreateCompanyGreetingRequest from "../../../../definitions/CreateCompanyGreetingRequest"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../types"; class Index { public rc: RingCentralInterface; @@ -28,7 +32,12 @@ class Index { restRequestConfig?: RestRequestConfig, ): Promise { const formData = await Utils.getFormData(createCompanyGreetingRequest); - const r = await this.rc.post(this.path(), formData, undefined, restRequestConfig); + const r = await this.rc.post( + this.path(), + formData, + undefined, + restRequestConfig, + ); return r.data; } diff --git a/packages/core/src/paths/Restapi/Account/IvrMenus/index.ts b/packages/core/src/paths/Restapi/Account/IvrMenus/index.ts index 520804a6..d780c566 100644 --- a/packages/core/src/paths/Restapi/Account/IvrMenus/index.ts +++ b/packages/core/src/paths/Restapi/Account/IvrMenus/index.ts @@ -1,13 +1,20 @@ -import type IVRMenuInfo from '../../../../definitions/IVRMenuInfo'; -import type IVRMenuList from '../../../../definitions/IVRMenuList'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../types'; +import type IVRMenuInfo from "../../../../definitions/IVRMenuInfo"; +import type IVRMenuList from "../../../../definitions/IVRMenuList"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../types"; class Index { public rc: RingCentralInterface; public _parent: ParentInterface; public ivrMenuId: string | null; - public constructor(_parent: ParentInterface, ivrMenuId: string | null = null) { + public constructor( + _parent: ParentInterface, + ivrMenuId: string | null = null, + ) { this._parent = _parent; this.rc = _parent.rc; this.ivrMenuId = ivrMenuId; @@ -25,8 +32,14 @@ class Index { * Rate Limit Group: Medium * App Permission: ReadAccounts */ - public async list(restRequestConfig?: RestRequestConfig): Promise { - const r = await this.rc.get(this.path(false), undefined, restRequestConfig); + public async list( + restRequestConfig?: RestRequestConfig, + ): Promise { + const r = await this.rc.get( + this.path(false), + undefined, + restRequestConfig, + ); return r.data; } @@ -38,8 +51,16 @@ class Index { * App Permission: EditAccounts * User Permission: AutoReceptionist */ - public async post(iVRMenuInfo: IVRMenuInfo, restRequestConfig?: RestRequestConfig): Promise { - const r = await this.rc.post(this.path(false), iVRMenuInfo, undefined, restRequestConfig); + public async post( + iVRMenuInfo: IVRMenuInfo, + restRequestConfig?: RestRequestConfig, + ): Promise { + const r = await this.rc.post( + this.path(false), + iVRMenuInfo, + undefined, + restRequestConfig, + ); return r.data; } @@ -51,11 +72,17 @@ class Index { * App Permission: ReadAccounts * User Permission: AutoReceptionist */ - public async get(restRequestConfig?: RestRequestConfig): Promise { + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { if (this.ivrMenuId === null) { - throw new Error('ivrMenuId must be specified.'); + throw new Error("ivrMenuId must be specified."); } - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } @@ -67,11 +94,19 @@ class Index { * App Permission: ReadAccounts * User Permission: AutoReceptionist */ - public async put(iVRMenuInfo: IVRMenuInfo, restRequestConfig?: RestRequestConfig): Promise { + public async put( + iVRMenuInfo: IVRMenuInfo, + restRequestConfig?: RestRequestConfig, + ): Promise { if (this.ivrMenuId === null) { - throw new Error('ivrMenuId must be specified.'); + throw new Error("ivrMenuId must be specified."); } - const r = await this.rc.put(this.path(), iVRMenuInfo, undefined, restRequestConfig); + const r = await this.rc.put( + this.path(), + iVRMenuInfo, + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Account/IvrPrompts/Content/index.ts b/packages/core/src/paths/Restapi/Account/IvrPrompts/Content/index.ts index 62145fd9..cc3cd371 100644 --- a/packages/core/src/paths/Restapi/Account/IvrPrompts/Content/index.ts +++ b/packages/core/src/paths/Restapi/Account/IvrPrompts/Content/index.ts @@ -1,5 +1,9 @@ -import type ReadIVRPromptContentParameters from '../../../../../definitions/ReadIVRPromptContentParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type ReadIVRPromptContentParameters from "../../../../../definitions/ReadIVRPromptContentParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -28,7 +32,7 @@ class Index { ): Promise { const r = await this.rc.get(this.path(), queryParams, { ...restRequestConfig, - responseType: 'arraybuffer', + responseType: "arraybuffer", }); return r.data; } diff --git a/packages/core/src/paths/Restapi/Account/IvrPrompts/index.ts b/packages/core/src/paths/Restapi/Account/IvrPrompts/index.ts index 07f966a3..53513414 100644 --- a/packages/core/src/paths/Restapi/Account/IvrPrompts/index.ts +++ b/packages/core/src/paths/Restapi/Account/IvrPrompts/index.ts @@ -1,10 +1,14 @@ -import Content from './Content'; -import Utils from '../../../../Utils'; -import type UpdateIVRPromptRequest from '../../../../definitions/UpdateIVRPromptRequest'; -import type PromptInfo from '../../../../definitions/PromptInfo'; -import type CreateIVRPromptRequest from '../../../../definitions/CreateIVRPromptRequest'; -import type IvrPrompts from '../../../../definitions/IvrPrompts'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../types'; +import Content from "./Content"; +import Utils from "../../../../Utils"; +import type UpdateIVRPromptRequest from "../../../../definitions/UpdateIVRPromptRequest"; +import type PromptInfo from "../../../../definitions/PromptInfo"; +import type CreateIVRPromptRequest from "../../../../definitions/CreateIVRPromptRequest"; +import type IvrPrompts from "../../../../definitions/IvrPrompts"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../types"; class Index { public rc: RingCentralInterface; @@ -30,8 +34,14 @@ class Index { * App Permission: ReadAccounts * User Permission: ReadCompanyGreetings */ - public async list(restRequestConfig?: RestRequestConfig): Promise { - const r = await this.rc.get(this.path(false), undefined, restRequestConfig); + public async list( + restRequestConfig?: RestRequestConfig, + ): Promise { + const r = await this.rc.get( + this.path(false), + undefined, + restRequestConfig, + ); return r.data; } @@ -48,7 +58,12 @@ class Index { restRequestConfig?: RestRequestConfig, ): Promise { const formData = await Utils.getFormData(createIVRPromptRequest); - const r = await this.rc.post(this.path(false), formData, undefined, restRequestConfig); + const r = await this.rc.post( + this.path(false), + formData, + undefined, + restRequestConfig, + ); return r.data; } @@ -62,9 +77,13 @@ class Index { */ public async get(restRequestConfig?: RestRequestConfig): Promise { if (this.promptId === null) { - throw new Error('promptId must be specified.'); + throw new Error("promptId must be specified."); } - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } @@ -81,9 +100,14 @@ class Index { restRequestConfig?: RestRequestConfig, ): Promise { if (this.promptId === null) { - throw new Error('promptId must be specified.'); + throw new Error("promptId must be specified."); } - const r = await this.rc.put(this.path(), updateIVRPromptRequest, undefined, restRequestConfig); + const r = await this.rc.put( + this.path(), + updateIVRPromptRequest, + undefined, + restRequestConfig, + ); return r.data; } @@ -97,9 +121,14 @@ class Index { */ public async delete(restRequestConfig?: RestRequestConfig): Promise { if (this.promptId === null) { - throw new Error('promptId must be specified.'); + throw new Error("promptId must be specified."); } - const r = await this.rc.delete(this.path(), {}, undefined, restRequestConfig); + const r = await this.rc.delete( + this.path(), + {}, + undefined, + restRequestConfig, + ); return r.data; } diff --git a/packages/core/src/paths/Restapi/Account/MessageStoreConfiguration/index.ts b/packages/core/src/paths/Restapi/Account/MessageStoreConfiguration/index.ts index 5f3b21d3..760e6705 100644 --- a/packages/core/src/paths/Restapi/Account/MessageStoreConfiguration/index.ts +++ b/packages/core/src/paths/Restapi/Account/MessageStoreConfiguration/index.ts @@ -1,5 +1,9 @@ -import type MessageStoreConfiguration from '../../../../definitions/MessageStoreConfiguration'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../types'; +import type MessageStoreConfiguration from "../../../../definitions/MessageStoreConfiguration"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../types"; class Index { public rc: RingCentralInterface; @@ -20,8 +24,14 @@ class Index { * App Permission: EditAccounts * User Permission: AccountAdministration */ - public async get(restRequestConfig?: RestRequestConfig): Promise { - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } diff --git a/packages/core/src/paths/Restapi/Account/MessageStoreReport/Archive/index.ts b/packages/core/src/paths/Restapi/Account/MessageStoreReport/Archive/index.ts index 015e2666..7196645a 100644 --- a/packages/core/src/paths/Restapi/Account/MessageStoreReport/Archive/index.ts +++ b/packages/core/src/paths/Restapi/Account/MessageStoreReport/Archive/index.ts @@ -1,5 +1,9 @@ -import type MessageStoreReportArchive from '../../../../../definitions/MessageStoreReportArchive'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type MessageStoreReportArchive from "../../../../../definitions/MessageStoreReportArchive"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -20,8 +24,14 @@ class Index { * App Permission: ReadMessages * User Permission: Users */ - public async get(restRequestConfig?: RestRequestConfig): Promise { - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Account/MessageStoreReport/index.ts b/packages/core/src/paths/Restapi/Account/MessageStoreReport/index.ts index 4d79a16d..400451a4 100644 --- a/packages/core/src/paths/Restapi/Account/MessageStoreReport/index.ts +++ b/packages/core/src/paths/Restapi/Account/MessageStoreReport/index.ts @@ -1,7 +1,11 @@ -import Archive from './Archive'; -import type MessageStoreReport from '../../../../definitions/MessageStoreReport'; -import type CreateMessageStoreReportRequest from '../../../../definitions/CreateMessageStoreReportRequest'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../types'; +import Archive from "./Archive"; +import type MessageStoreReport from "../../../../definitions/MessageStoreReport"; +import type CreateMessageStoreReportRequest from "../../../../definitions/CreateMessageStoreReportRequest"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../types"; class Index { public rc: RingCentralInterface; @@ -50,11 +54,17 @@ class Index { * App Permission: ReadMessages * User Permission: Users */ - public async get(restRequestConfig?: RestRequestConfig): Promise { + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { if (this.taskId === null) { - throw new Error('taskId must be specified.'); + throw new Error("taskId must be specified."); } - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } diff --git a/packages/core/src/paths/Restapi/Account/MessageStoreTemplates/index.ts b/packages/core/src/paths/Restapi/Account/MessageStoreTemplates/index.ts index e8478c05..d65f757b 100644 --- a/packages/core/src/paths/Restapi/Account/MessageStoreTemplates/index.ts +++ b/packages/core/src/paths/Restapi/Account/MessageStoreTemplates/index.ts @@ -1,16 +1,23 @@ -import type MessageTemplateUpdateRequest from '../../../../definitions/MessageTemplateUpdateRequest'; -import type MessageTemplateResponse from '../../../../definitions/MessageTemplateResponse'; -import type MessageTemplateRequest from '../../../../definitions/MessageTemplateRequest'; -import type MessageTemplatesListResponse from '../../../../definitions/MessageTemplatesListResponse'; -import type ListCompanyMessageTemplatesParameters from '../../../../definitions/ListCompanyMessageTemplatesParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../types'; +import type MessageTemplateUpdateRequest from "../../../../definitions/MessageTemplateUpdateRequest"; +import type MessageTemplateResponse from "../../../../definitions/MessageTemplateResponse"; +import type MessageTemplateRequest from "../../../../definitions/MessageTemplateRequest"; +import type MessageTemplatesListResponse from "../../../../definitions/MessageTemplatesListResponse"; +import type ListCompanyMessageTemplatesParameters from "../../../../definitions/ListCompanyMessageTemplatesParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../types"; class Index { public rc: RingCentralInterface; public _parent: ParentInterface; public templateId: string | null; - public constructor(_parent: ParentInterface, templateId: string | null = null) { + public constructor( + _parent: ParentInterface, + templateId: string | null = null, + ) { this._parent = _parent; this.rc = _parent.rc; this.templateId = templateId; @@ -32,7 +39,11 @@ class Index { queryParams?: ListCompanyMessageTemplatesParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(false), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(false), + queryParams, + restRequestConfig, + ); return r.data; } @@ -63,11 +74,17 @@ class Index { * Rate Limit Group: Light * App Permission: ReadAccounts */ - public async get(restRequestConfig?: RestRequestConfig): Promise { + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { if (this.templateId === null) { - throw new Error('templateId must be specified.'); + throw new Error("templateId must be specified."); } - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } @@ -83,7 +100,7 @@ class Index { restRequestConfig?: RestRequestConfig, ): Promise { if (this.templateId === null) { - throw new Error('templateId must be specified.'); + throw new Error("templateId must be specified."); } const r = await this.rc.put( this.path(), @@ -103,9 +120,14 @@ class Index { */ public async delete(restRequestConfig?: RestRequestConfig): Promise { if (this.templateId === null) { - throw new Error('templateId must be specified.'); + throw new Error("templateId must be specified."); } - const r = await this.rc.delete(this.path(), {}, undefined, restRequestConfig); + const r = await this.rc.delete( + this.path(), + {}, + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Account/PagingOnlyGroups/BulkAssign/index.ts b/packages/core/src/paths/Restapi/Account/PagingOnlyGroups/BulkAssign/index.ts index 0a01c50a..d10a163d 100644 --- a/packages/core/src/paths/Restapi/Account/PagingOnlyGroups/BulkAssign/index.ts +++ b/packages/core/src/paths/Restapi/Account/PagingOnlyGroups/BulkAssign/index.ts @@ -1,5 +1,9 @@ -import type EditPagingGroupRequest from '../../../../../definitions/EditPagingGroupRequest'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type EditPagingGroupRequest from "../../../../../definitions/EditPagingGroupRequest"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -25,7 +29,12 @@ class Index { editPagingGroupRequest: EditPagingGroupRequest, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.post(this.path(), editPagingGroupRequest, undefined, restRequestConfig); + const r = await this.rc.post( + this.path(), + editPagingGroupRequest, + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Account/PagingOnlyGroups/Devices/index.ts b/packages/core/src/paths/Restapi/Account/PagingOnlyGroups/Devices/index.ts index fb947195..2e2283b9 100644 --- a/packages/core/src/paths/Restapi/Account/PagingOnlyGroups/Devices/index.ts +++ b/packages/core/src/paths/Restapi/Account/PagingOnlyGroups/Devices/index.ts @@ -1,6 +1,10 @@ -import type PagingOnlyGroupDevices from '../../../../../definitions/PagingOnlyGroupDevices'; -import type ListPagingGroupDevicesParameters from '../../../../../definitions/ListPagingGroupDevicesParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type PagingOnlyGroupDevices from "../../../../../definitions/PagingOnlyGroupDevices"; +import type ListPagingGroupDevicesParameters from "../../../../../definitions/ListPagingGroupDevicesParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -26,7 +30,11 @@ class Index { queryParams?: ListPagingGroupDevicesParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(), + queryParams, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Account/PagingOnlyGroups/Users/index.ts b/packages/core/src/paths/Restapi/Account/PagingOnlyGroups/Users/index.ts index a13ac7ae..4146d2c0 100644 --- a/packages/core/src/paths/Restapi/Account/PagingOnlyGroups/Users/index.ts +++ b/packages/core/src/paths/Restapi/Account/PagingOnlyGroups/Users/index.ts @@ -1,6 +1,10 @@ -import type PagingOnlyGroupUsers from '../../../../../definitions/PagingOnlyGroupUsers'; -import type ListPagingGroupUsersParameters from '../../../../../definitions/ListPagingGroupUsersParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type PagingOnlyGroupUsers from "../../../../../definitions/PagingOnlyGroupUsers"; +import type ListPagingGroupUsersParameters from "../../../../../definitions/ListPagingGroupUsersParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -26,7 +30,11 @@ class Index { queryParams?: ListPagingGroupUsersParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(), + queryParams, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Account/PagingOnlyGroups/index.ts b/packages/core/src/paths/Restapi/Account/PagingOnlyGroups/index.ts index c92a5fe9..1ed4437a 100644 --- a/packages/core/src/paths/Restapi/Account/PagingOnlyGroups/index.ts +++ b/packages/core/src/paths/Restapi/Account/PagingOnlyGroups/index.ts @@ -1,14 +1,17 @@ -import BulkAssign from './BulkAssign'; -import Devices from './Devices'; -import Users from './Users'; -import type { RingCentralInterface, ParentInterface } from '../../../../types'; +import BulkAssign from "./BulkAssign"; +import Devices from "./Devices"; +import Users from "./Users"; +import type { ParentInterface, RingCentralInterface } from "../../../../types"; class Index { public rc: RingCentralInterface; public _parent: ParentInterface; public pagingOnlyGroupId: string | null; - public constructor(_parent: ParentInterface, pagingOnlyGroupId: string | null = null) { + public constructor( + _parent: ParentInterface, + pagingOnlyGroupId: string | null = null, + ) { this._parent = _parent; this.rc = _parent.rc; this.pagingOnlyGroupId = pagingOnlyGroupId; diff --git a/packages/core/src/paths/Restapi/Account/PhoneNumber/index.ts b/packages/core/src/paths/Restapi/Account/PhoneNumber/index.ts index 5e873a74..46da55a7 100644 --- a/packages/core/src/paths/Restapi/Account/PhoneNumber/index.ts +++ b/packages/core/src/paths/Restapi/Account/PhoneNumber/index.ts @@ -1,14 +1,21 @@ -import type CompanyPhoneNumberInfo from '../../../../definitions/CompanyPhoneNumberInfo'; -import type AccountPhoneNumbers from '../../../../definitions/AccountPhoneNumbers'; -import type ListAccountPhoneNumbersParameters from '../../../../definitions/ListAccountPhoneNumbersParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../types'; +import type CompanyPhoneNumberInfo from "../../../../definitions/CompanyPhoneNumberInfo"; +import type AccountPhoneNumbers from "../../../../definitions/AccountPhoneNumbers"; +import type ListAccountPhoneNumbersParameters from "../../../../definitions/ListAccountPhoneNumbersParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../types"; class Index { public rc: RingCentralInterface; public _parent: ParentInterface; public phoneNumberId: string | null; - public constructor(_parent: ParentInterface, phoneNumberId: string | null = null) { + public constructor( + _parent: ParentInterface, + phoneNumberId: string | null = null, + ) { this._parent = _parent; this.rc = _parent.rc; this.phoneNumberId = phoneNumberId; @@ -33,7 +40,11 @@ class Index { queryParams?: ListAccountPhoneNumbersParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(false), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(false), + queryParams, + restRequestConfig, + ); return r.data; } @@ -47,11 +58,17 @@ class Index { * App Permission: ReadAccounts * User Permission: ReadCompanyPhoneNumbers */ - public async get(restRequestConfig?: RestRequestConfig): Promise { + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { if (this.phoneNumberId === null) { - throw new Error('phoneNumberId must be specified.'); + throw new Error("phoneNumberId must be specified."); } - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Account/Presence/index.ts b/packages/core/src/paths/Restapi/Account/Presence/index.ts index 14093a2a..ae5864e4 100644 --- a/packages/core/src/paths/Restapi/Account/Presence/index.ts +++ b/packages/core/src/paths/Restapi/Account/Presence/index.ts @@ -1,6 +1,10 @@ -import type AccountPresenceInfo from '../../../../definitions/AccountPresenceInfo'; -import type ReadAccountPresenceParameters from '../../../../definitions/ReadAccountPresenceParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../types'; +import type AccountPresenceInfo from "../../../../definitions/AccountPresenceInfo"; +import type ReadAccountPresenceParameters from "../../../../definitions/ReadAccountPresenceParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../types"; class Index { public rc: RingCentralInterface; @@ -25,7 +29,11 @@ class Index { queryParams?: ReadAccountPresenceParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(), + queryParams, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Account/Recording/Content/index.ts b/packages/core/src/paths/Restapi/Account/Recording/Content/index.ts index 5a9b9734..dc4b00ce 100644 --- a/packages/core/src/paths/Restapi/Account/Recording/Content/index.ts +++ b/packages/core/src/paths/Restapi/Account/Recording/Content/index.ts @@ -1,5 +1,9 @@ -import type ReadCallRecordingContentParameters from '../../../../../definitions/ReadCallRecordingContentParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type ReadCallRecordingContentParameters from "../../../../../definitions/ReadCallRecordingContentParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -28,7 +32,7 @@ class Index { ): Promise { const r = await this.rc.get(this.path(), queryParams, { ...restRequestConfig, - responseType: 'arraybuffer', + responseType: "arraybuffer", }); return r.data; } diff --git a/packages/core/src/paths/Restapi/Account/Recording/index.ts b/packages/core/src/paths/Restapi/Account/Recording/index.ts index b971c92d..6662ede9 100644 --- a/packages/core/src/paths/Restapi/Account/Recording/index.ts +++ b/packages/core/src/paths/Restapi/Account/Recording/index.ts @@ -1,13 +1,20 @@ -import Content from './Content'; -import type GetCallRecordingResponse from '../../../../definitions/GetCallRecordingResponse'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../types'; +import Content from "./Content"; +import type GetCallRecordingResponse from "../../../../definitions/GetCallRecordingResponse"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../types"; class Index { public rc: RingCentralInterface; public _parent: ParentInterface; public recordingId: string | null; - public constructor(_parent: ParentInterface, recordingId: string | null = null) { + public constructor( + _parent: ParentInterface, + recordingId: string | null = null, + ) { this._parent = _parent; this.rc = _parent.rc; this.recordingId = recordingId; @@ -26,11 +33,17 @@ class Index { * App Permission: ReadCallRecording * User Permission: ReadCallRecording */ - public async get(restRequestConfig?: RestRequestConfig): Promise { + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { if (this.recordingId === null) { - throw new Error('recordingId must be specified.'); + throw new Error("recordingId must be specified."); } - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } diff --git a/packages/core/src/paths/Restapi/Account/ServiceInfo/index.ts b/packages/core/src/paths/Restapi/Account/ServiceInfo/index.ts index d59ecc20..cd5da09b 100644 --- a/packages/core/src/paths/Restapi/Account/ServiceInfo/index.ts +++ b/packages/core/src/paths/Restapi/Account/ServiceInfo/index.ts @@ -1,5 +1,9 @@ -import type AccountServiceInfo from '../../../../definitions/AccountServiceInfo'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../types'; +import type AccountServiceInfo from "../../../../definitions/AccountServiceInfo"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../types"; class Index { public rc: RingCentralInterface; @@ -22,8 +26,14 @@ class Index { * App Permission: ReadAccounts * User Permission: ReadCompanyInfo */ - public async get(restRequestConfig?: RestRequestConfig): Promise { - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Account/Sites/BulkAssign/index.ts b/packages/core/src/paths/Restapi/Account/Sites/BulkAssign/index.ts index d1a9e4f6..04edd74e 100644 --- a/packages/core/src/paths/Restapi/Account/Sites/BulkAssign/index.ts +++ b/packages/core/src/paths/Restapi/Account/Sites/BulkAssign/index.ts @@ -1,5 +1,9 @@ -import type SiteMembersBulkUpdate from '../../../../../definitions/SiteMembersBulkUpdate'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type SiteMembersBulkUpdate from "../../../../../definitions/SiteMembersBulkUpdate"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -25,7 +29,12 @@ class Index { siteMembersBulkUpdate: SiteMembersBulkUpdate, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.post(this.path(), siteMembersBulkUpdate, undefined, restRequestConfig); + const r = await this.rc.post( + this.path(), + siteMembersBulkUpdate, + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Account/Sites/Ivr/index.ts b/packages/core/src/paths/Restapi/Account/Sites/Ivr/index.ts index ba189027..be4af928 100644 --- a/packages/core/src/paths/Restapi/Account/Sites/Ivr/index.ts +++ b/packages/core/src/paths/Restapi/Account/Sites/Ivr/index.ts @@ -1,6 +1,10 @@ -import type SiteIVRSettingsUpdate from '../../../../../definitions/SiteIVRSettingsUpdate'; -import type SiteIVRSettings from '../../../../../definitions/SiteIVRSettings'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type SiteIVRSettingsUpdate from "../../../../../definitions/SiteIVRSettingsUpdate"; +import type SiteIVRSettings from "../../../../../definitions/SiteIVRSettings"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -22,8 +26,14 @@ class Index { * App Permission: ReadAccounts * User Permission: ReadExtensions */ - public async get(restRequestConfig?: RestRequestConfig): Promise { - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } @@ -40,7 +50,12 @@ class Index { siteIVRSettingsUpdate: SiteIVRSettingsUpdate, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.put(this.path(), siteIVRSettingsUpdate, undefined, restRequestConfig); + const r = await this.rc.put( + this.path(), + siteIVRSettingsUpdate, + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Account/Sites/Members/index.ts b/packages/core/src/paths/Restapi/Account/Sites/Members/index.ts index 2d8ade0a..e4c68c1a 100644 --- a/packages/core/src/paths/Restapi/Account/Sites/Members/index.ts +++ b/packages/core/src/paths/Restapi/Account/Sites/Members/index.ts @@ -1,5 +1,9 @@ -import type SiteMembersList from '../../../../../definitions/SiteMembersList'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type SiteMembersList from "../../../../../definitions/SiteMembersList"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -21,8 +25,14 @@ class Index { * App Permission: ReadAccounts * User Permission: ReadExtensions */ - public async get(restRequestConfig?: RestRequestConfig): Promise { - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Account/Sites/index.ts b/packages/core/src/paths/Restapi/Account/Sites/index.ts index e11c6a1e..0a4569e9 100644 --- a/packages/core/src/paths/Restapi/Account/Sites/index.ts +++ b/packages/core/src/paths/Restapi/Account/Sites/index.ts @@ -1,11 +1,15 @@ -import BulkAssign from './BulkAssign'; -import Members from './Members'; -import Ivr from './Ivr'; -import type SiteUpdateRequest from '../../../../definitions/SiteUpdateRequest'; -import type SiteInfo from '../../../../definitions/SiteInfo'; -import type CreateSiteRequest from '../../../../definitions/CreateSiteRequest'; -import type SitesList from '../../../../definitions/SitesList'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../types'; +import BulkAssign from "./BulkAssign"; +import Members from "./Members"; +import Ivr from "./Ivr"; +import type SiteUpdateRequest from "../../../../definitions/SiteUpdateRequest"; +import type SiteInfo from "../../../../definitions/SiteInfo"; +import type CreateSiteRequest from "../../../../definitions/CreateSiteRequest"; +import type SitesList from "../../../../definitions/SitesList"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../types"; class Index { public rc: RingCentralInterface; @@ -33,7 +37,11 @@ class Index { * User Permission: ReadExtensions */ public async list(restRequestConfig?: RestRequestConfig): Promise { - const r = await this.rc.get(this.path(false), undefined, restRequestConfig); + const r = await this.rc.get( + this.path(false), + undefined, + restRequestConfig, + ); return r.data; } @@ -45,8 +53,16 @@ class Index { * Rate Limit Group: Medium * App Permission: EditAccounts */ - public async post(createSiteRequest: CreateSiteRequest, restRequestConfig?: RestRequestConfig): Promise { - const r = await this.rc.post(this.path(false), createSiteRequest, undefined, restRequestConfig); + public async post( + createSiteRequest: CreateSiteRequest, + restRequestConfig?: RestRequestConfig, + ): Promise { + const r = await this.rc.post( + this.path(false), + createSiteRequest, + undefined, + restRequestConfig, + ); return r.data; } @@ -61,9 +77,13 @@ class Index { */ public async get(restRequestConfig?: RestRequestConfig): Promise { if (this.siteId === null) { - throw new Error('siteId must be specified.'); + throw new Error("siteId must be specified."); } - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } @@ -76,11 +96,19 @@ class Index { * App Permission: EditExtensions * User Permission: Sites */ - public async put(siteUpdateRequest: SiteUpdateRequest, restRequestConfig?: RestRequestConfig): Promise { + public async put( + siteUpdateRequest: SiteUpdateRequest, + restRequestConfig?: RestRequestConfig, + ): Promise { if (this.siteId === null) { - throw new Error('siteId must be specified.'); + throw new Error("siteId must be specified."); } - const r = await this.rc.put(this.path(), siteUpdateRequest, undefined, restRequestConfig); + const r = await this.rc.put( + this.path(), + siteUpdateRequest, + undefined, + restRequestConfig, + ); return r.data; } @@ -95,9 +123,14 @@ class Index { */ public async delete(restRequestConfig?: RestRequestConfig): Promise { if (this.siteId === null) { - throw new Error('siteId must be specified.'); + throw new Error("siteId must be specified."); } - const r = await this.rc.delete(this.path(), {}, undefined, restRequestConfig); + const r = await this.rc.delete( + this.path(), + {}, + undefined, + restRequestConfig, + ); return r.data; } diff --git a/packages/core/src/paths/Restapi/Account/Telephony/CallOut/index.ts b/packages/core/src/paths/Restapi/Account/Telephony/CallOut/index.ts index 63a394fa..2bc9a452 100644 --- a/packages/core/src/paths/Restapi/Account/Telephony/CallOut/index.ts +++ b/packages/core/src/paths/Restapi/Account/Telephony/CallOut/index.ts @@ -1,6 +1,10 @@ -import type CallSession from '../../../../../definitions/CallSession'; -import type MakeCallOutRequest from '../../../../../definitions/MakeCallOutRequest'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type CallSession from "../../../../../definitions/CallSession"; +import type MakeCallOutRequest from "../../../../../definitions/MakeCallOutRequest"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -24,7 +28,12 @@ class Index { makeCallOutRequest: MakeCallOutRequest, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.post(this.path(), makeCallOutRequest, undefined, restRequestConfig); + const r = await this.rc.post( + this.path(), + makeCallOutRequest, + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Account/Telephony/Conference/index.ts b/packages/core/src/paths/Restapi/Account/Telephony/Conference/index.ts index c5a73b85..625f2ab9 100644 --- a/packages/core/src/paths/Restapi/Account/Telephony/Conference/index.ts +++ b/packages/core/src/paths/Restapi/Account/Telephony/Conference/index.ts @@ -1,5 +1,9 @@ -import type CallSession from '../../../../../definitions/CallSession'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type CallSession from "../../../../../definitions/CallSession"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -19,8 +23,15 @@ class Index { * Rate Limit Group: Heavy * App Permission: CallControl */ - public async post(restRequestConfig?: RestRequestConfig): Promise { - const r = await this.rc.post(this.path(), {}, undefined, restRequestConfig); + public async post( + restRequestConfig?: RestRequestConfig, + ): Promise { + const r = await this.rc.post( + this.path(), + {}, + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Account/Telephony/Metadata/MultichannelRecordings/Content/index.ts b/packages/core/src/paths/Restapi/Account/Telephony/Metadata/MultichannelRecordings/Content/index.ts index dcd9784f..31ec6e19 100644 --- a/packages/core/src/paths/Restapi/Account/Telephony/Metadata/MultichannelRecordings/Content/index.ts +++ b/packages/core/src/paths/Restapi/Account/Telephony/Metadata/MultichannelRecordings/Content/index.ts @@ -1,5 +1,9 @@ -import type ReadMultichannelCallRecordingContentParameters from '../../../../../../../definitions/ReadMultichannelCallRecordingContentParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../../../types'; +import type ReadMultichannelCallRecordingContentParameters from "../../../../../../../definitions/ReadMultichannelCallRecordingContentParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../../../types"; class Index { public rc: RingCentralInterface; @@ -26,7 +30,11 @@ class Index { queryParams?: ReadMultichannelCallRecordingContentParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(), + queryParams, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Account/Telephony/Metadata/MultichannelRecordings/index.ts b/packages/core/src/paths/Restapi/Account/Telephony/Metadata/MultichannelRecordings/index.ts index 9b2e29be..cc298606 100644 --- a/packages/core/src/paths/Restapi/Account/Telephony/Metadata/MultichannelRecordings/index.ts +++ b/packages/core/src/paths/Restapi/Account/Telephony/Metadata/MultichannelRecordings/index.ts @@ -1,12 +1,18 @@ -import Content from './Content'; -import type { RingCentralInterface, ParentInterface } from '../../../../../../types'; +import Content from "./Content"; +import type { + ParentInterface, + RingCentralInterface, +} from "../../../../../../types"; class Index { public rc: RingCentralInterface; public _parent: ParentInterface; public metadataId: string | null; - public constructor(_parent: ParentInterface, metadataId: string | null = null) { + public constructor( + _parent: ParentInterface, + metadataId: string | null = null, + ) { this._parent = _parent; this.rc = _parent.rc; this.metadataId = metadataId; diff --git a/packages/core/src/paths/Restapi/Account/Telephony/Metadata/index.ts b/packages/core/src/paths/Restapi/Account/Telephony/Metadata/index.ts index c7002fde..8cd552b0 100644 --- a/packages/core/src/paths/Restapi/Account/Telephony/Metadata/index.ts +++ b/packages/core/src/paths/Restapi/Account/Telephony/Metadata/index.ts @@ -1,5 +1,8 @@ -import MultichannelRecordings from './MultichannelRecordings'; -import type { RingCentralInterface, ParentInterface } from '../../../../../types'; +import MultichannelRecordings from "./MultichannelRecordings"; +import type { + ParentInterface, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -13,7 +16,9 @@ class Index { return `${this._parent.path(false)}/metadata`; } - public multichannelRecordings(metadataId: string | null = null): MultichannelRecordings { + public multichannelRecordings( + metadataId: string | null = null, + ): MultichannelRecordings { return new MultichannelRecordings(this, metadataId); } } diff --git a/packages/core/src/paths/Restapi/Account/Telephony/Sessions/Parties/Answer/index.ts b/packages/core/src/paths/Restapi/Account/Telephony/Sessions/Parties/Answer/index.ts index c657b110..e78e4375 100644 --- a/packages/core/src/paths/Restapi/Account/Telephony/Sessions/Parties/Answer/index.ts +++ b/packages/core/src/paths/Restapi/Account/Telephony/Sessions/Parties/Answer/index.ts @@ -1,6 +1,10 @@ -import type CallParty from '../../../../../../../definitions/CallParty'; -import type AnswerTarget from '../../../../../../../definitions/AnswerTarget'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../../../types'; +import type CallParty from "../../../../../../../definitions/CallParty"; +import type AnswerTarget from "../../../../../../../definitions/AnswerTarget"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../../../types"; class Index { public rc: RingCentralInterface; @@ -20,8 +24,16 @@ class Index { * Rate Limit Group: Light * App Permission: CallControl */ - public async post(answerTarget: AnswerTarget, restRequestConfig?: RestRequestConfig): Promise { - const r = await this.rc.post(this.path(), answerTarget, undefined, restRequestConfig); + public async post( + answerTarget: AnswerTarget, + restRequestConfig?: RestRequestConfig, + ): Promise { + const r = await this.rc.post( + this.path(), + answerTarget, + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Account/Telephony/Sessions/Parties/Bridge/index.ts b/packages/core/src/paths/Restapi/Account/Telephony/Sessions/Parties/Bridge/index.ts index 0fa08737..ced63ec6 100644 --- a/packages/core/src/paths/Restapi/Account/Telephony/Sessions/Parties/Bridge/index.ts +++ b/packages/core/src/paths/Restapi/Account/Telephony/Sessions/Parties/Bridge/index.ts @@ -1,6 +1,10 @@ -import type CallParty from '../../../../../../../definitions/CallParty'; -import type BridgeTargetRequest from '../../../../../../../definitions/BridgeTargetRequest'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../../../types'; +import type CallParty from "../../../../../../../definitions/CallParty"; +import type BridgeTargetRequest from "../../../../../../../definitions/BridgeTargetRequest"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../../../types"; class Index { public rc: RingCentralInterface; @@ -29,7 +33,12 @@ class Index { bridgeTargetRequest: BridgeTargetRequest, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.post(this.path(), bridgeTargetRequest, undefined, restRequestConfig); + const r = await this.rc.post( + this.path(), + bridgeTargetRequest, + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Account/Telephony/Sessions/Parties/BringIn/index.ts b/packages/core/src/paths/Restapi/Account/Telephony/Sessions/Parties/BringIn/index.ts index 09b7ae3d..5489bd06 100644 --- a/packages/core/src/paths/Restapi/Account/Telephony/Sessions/Parties/BringIn/index.ts +++ b/packages/core/src/paths/Restapi/Account/Telephony/Sessions/Parties/BringIn/index.ts @@ -1,6 +1,10 @@ -import type CallParty from '../../../../../../../definitions/CallParty'; -import type AddPartyRequest from '../../../../../../../definitions/AddPartyRequest'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../../../types'; +import type CallParty from "../../../../../../../definitions/CallParty"; +import type AddPartyRequest from "../../../../../../../definitions/AddPartyRequest"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../../../types"; class Index { public rc: RingCentralInterface; @@ -24,8 +28,16 @@ class Index { * Rate Limit Group: Light * App Permission: CallControl */ - public async post(addPartyRequest: AddPartyRequest, restRequestConfig?: RestRequestConfig): Promise { - const r = await this.rc.post(this.path(), addPartyRequest, undefined, restRequestConfig); + public async post( + addPartyRequest: AddPartyRequest, + restRequestConfig?: RestRequestConfig, + ): Promise { + const r = await this.rc.post( + this.path(), + addPartyRequest, + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Account/Telephony/Sessions/Parties/Flip/index.ts b/packages/core/src/paths/Restapi/Account/Telephony/Sessions/Parties/Flip/index.ts index 8442ab72..4f3b4281 100644 --- a/packages/core/src/paths/Restapi/Account/Telephony/Sessions/Parties/Flip/index.ts +++ b/packages/core/src/paths/Restapi/Account/Telephony/Sessions/Parties/Flip/index.ts @@ -1,5 +1,9 @@ -import type CallPartyFlip from '../../../../../../../definitions/CallPartyFlip'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../../../types'; +import type CallPartyFlip from "../../../../../../../definitions/CallPartyFlip"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../../../types"; class Index { public rc: RingCentralInterface; @@ -19,8 +23,16 @@ class Index { * Rate Limit Group: Light * App Permission: CallControl */ - public async post(callPartyFlip: CallPartyFlip, restRequestConfig?: RestRequestConfig): Promise { - const r = await this.rc.post(this.path(), callPartyFlip, undefined, restRequestConfig); + public async post( + callPartyFlip: CallPartyFlip, + restRequestConfig?: RestRequestConfig, + ): Promise { + const r = await this.rc.post( + this.path(), + callPartyFlip, + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Account/Telephony/Sessions/Parties/Forward/index.ts b/packages/core/src/paths/Restapi/Account/Telephony/Sessions/Parties/Forward/index.ts index f6364d4c..14d46ee9 100644 --- a/packages/core/src/paths/Restapi/Account/Telephony/Sessions/Parties/Forward/index.ts +++ b/packages/core/src/paths/Restapi/Account/Telephony/Sessions/Parties/Forward/index.ts @@ -1,6 +1,10 @@ -import type ForwardCallPartyResponse from '../../../../../../../definitions/ForwardCallPartyResponse'; -import type ForwardTarget from '../../../../../../../definitions/ForwardTarget'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../../../types'; +import type ForwardCallPartyResponse from "../../../../../../../definitions/ForwardCallPartyResponse"; +import type ForwardTarget from "../../../../../../../definitions/ForwardTarget"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../../../types"; class Index { public rc: RingCentralInterface; @@ -24,7 +28,12 @@ class Index { forwardTarget: ForwardTarget, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.post(this.path(), forwardTarget, undefined, restRequestConfig); + const r = await this.rc.post( + this.path(), + forwardTarget, + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Account/Telephony/Sessions/Parties/Hold/index.ts b/packages/core/src/paths/Restapi/Account/Telephony/Sessions/Parties/Hold/index.ts index 2e056079..9a329a9b 100644 --- a/packages/core/src/paths/Restapi/Account/Telephony/Sessions/Parties/Hold/index.ts +++ b/packages/core/src/paths/Restapi/Account/Telephony/Sessions/Parties/Hold/index.ts @@ -1,6 +1,10 @@ -import type CallParty from '../../../../../../../definitions/CallParty'; -import type HoldCallPartyRequest from '../../../../../../../definitions/HoldCallPartyRequest'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../../../types'; +import type CallParty from "../../../../../../../definitions/CallParty"; +import type HoldCallPartyRequest from "../../../../../../../definitions/HoldCallPartyRequest"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../../../types"; class Index { public rc: RingCentralInterface; @@ -24,7 +28,12 @@ class Index { holdCallPartyRequest: HoldCallPartyRequest, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.post(this.path(), holdCallPartyRequest, undefined, restRequestConfig); + const r = await this.rc.post( + this.path(), + holdCallPartyRequest, + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Account/Telephony/Sessions/Parties/Ignore/index.ts b/packages/core/src/paths/Restapi/Account/Telephony/Sessions/Parties/Ignore/index.ts index f47d8ff7..5610ef52 100644 --- a/packages/core/src/paths/Restapi/Account/Telephony/Sessions/Parties/Ignore/index.ts +++ b/packages/core/src/paths/Restapi/Account/Telephony/Sessions/Parties/Ignore/index.ts @@ -1,5 +1,9 @@ -import type IgnoreRequestBody from '../../../../../../../definitions/IgnoreRequestBody'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../../../types'; +import type IgnoreRequestBody from "../../../../../../../definitions/IgnoreRequestBody"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../../../types"; class Index { public rc: RingCentralInterface; @@ -19,8 +23,16 @@ class Index { * Rate Limit Group: Light * App Permission: CallControl */ - public async post(ignoreRequestBody: IgnoreRequestBody, restRequestConfig?: RestRequestConfig): Promise { - const r = await this.rc.post(this.path(), ignoreRequestBody, undefined, restRequestConfig); + public async post( + ignoreRequestBody: IgnoreRequestBody, + restRequestConfig?: RestRequestConfig, + ): Promise { + const r = await this.rc.post( + this.path(), + ignoreRequestBody, + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Account/Telephony/Sessions/Parties/Park/index.ts b/packages/core/src/paths/Restapi/Account/Telephony/Sessions/Parties/Park/index.ts index 89b7e8ca..2b5c0b48 100644 --- a/packages/core/src/paths/Restapi/Account/Telephony/Sessions/Parties/Park/index.ts +++ b/packages/core/src/paths/Restapi/Account/Telephony/Sessions/Parties/Park/index.ts @@ -1,5 +1,9 @@ -import type CallParty from '../../../../../../../definitions/CallParty'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../../../types'; +import type CallParty from "../../../../../../../definitions/CallParty"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../../../types"; class Index { public rc: RingCentralInterface; @@ -20,7 +24,12 @@ class Index { * App Permission: CallControl */ public async post(restRequestConfig?: RestRequestConfig): Promise { - const r = await this.rc.post(this.path(), {}, undefined, restRequestConfig); + const r = await this.rc.post( + this.path(), + {}, + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Account/Telephony/Sessions/Parties/Pickup/index.ts b/packages/core/src/paths/Restapi/Account/Telephony/Sessions/Parties/Pickup/index.ts index d09d6f1a..0fdcf6e2 100644 --- a/packages/core/src/paths/Restapi/Account/Telephony/Sessions/Parties/Pickup/index.ts +++ b/packages/core/src/paths/Restapi/Account/Telephony/Sessions/Parties/Pickup/index.ts @@ -1,6 +1,10 @@ -import type CallParty from '../../../../../../../definitions/CallParty'; -import type PickupTarget from '../../../../../../../definitions/PickupTarget'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../../../types'; +import type CallParty from "../../../../../../../definitions/CallParty"; +import type PickupTarget from "../../../../../../../definitions/PickupTarget"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../../../types"; class Index { public rc: RingCentralInterface; @@ -20,8 +24,16 @@ class Index { * Rate Limit Group: Light * App Permission: CallControl */ - public async post(pickupTarget: PickupTarget, restRequestConfig?: RestRequestConfig): Promise { - const r = await this.rc.post(this.path(), pickupTarget, undefined, restRequestConfig); + public async post( + pickupTarget: PickupTarget, + restRequestConfig?: RestRequestConfig, + ): Promise { + const r = await this.rc.post( + this.path(), + pickupTarget, + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Account/Telephony/Sessions/Parties/Recordings/index.ts b/packages/core/src/paths/Restapi/Account/Telephony/Sessions/Parties/Recordings/index.ts index 9c9c469d..56305b90 100644 --- a/packages/core/src/paths/Restapi/Account/Telephony/Sessions/Parties/Recordings/index.ts +++ b/packages/core/src/paths/Restapi/Account/Telephony/Sessions/Parties/Recordings/index.ts @@ -1,14 +1,21 @@ -import type CallRecording from '../../../../../../../definitions/CallRecording'; -import type PauseResumeCallRecordingParameters from '../../../../../../../definitions/PauseResumeCallRecordingParameters'; -import type CallRecordingUpdate from '../../../../../../../definitions/CallRecordingUpdate'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../../../types'; +import type CallRecording from "../../../../../../../definitions/CallRecording"; +import type PauseResumeCallRecordingParameters from "../../../../../../../definitions/PauseResumeCallRecordingParameters"; +import type CallRecordingUpdate from "../../../../../../../definitions/CallRecordingUpdate"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../../../types"; class Index { public rc: RingCentralInterface; public _parent: ParentInterface; public recordingId: string | null; - public constructor(_parent: ParentInterface, recordingId: string | null = null) { + public constructor( + _parent: ParentInterface, + recordingId: string | null = null, + ) { this._parent = _parent; this.rc = _parent.rc; this.recordingId = recordingId; @@ -29,7 +36,12 @@ class Index { * App Permission: CallControl */ public async post(restRequestConfig?: RestRequestConfig): Promise { - const r = await this.rc.post(this.path(false), {}, undefined, restRequestConfig); + const r = await this.rc.post( + this.path(false), + {}, + undefined, + restRequestConfig, + ); return r.data; } @@ -46,9 +58,14 @@ class Index { restRequestConfig?: RestRequestConfig, ): Promise { if (this.recordingId === null) { - throw new Error('recordingId must be specified.'); + throw new Error("recordingId must be specified."); } - const r = await this.rc.patch(this.path(), callRecordingUpdate, queryParams, restRequestConfig); + const r = await this.rc.patch( + this.path(), + callRecordingUpdate, + queryParams, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Account/Telephony/Sessions/Parties/Reject/index.ts b/packages/core/src/paths/Restapi/Account/Telephony/Sessions/Parties/Reject/index.ts index eaf295c2..56498888 100644 --- a/packages/core/src/paths/Restapi/Account/Telephony/Sessions/Parties/Reject/index.ts +++ b/packages/core/src/paths/Restapi/Account/Telephony/Sessions/Parties/Reject/index.ts @@ -1,4 +1,8 @@ -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../../../types'; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../../../types"; class Index { public rc: RingCentralInterface; @@ -19,7 +23,12 @@ class Index { * App Permission: CallControl */ public async post(restRequestConfig?: RestRequestConfig): Promise { - const r = await this.rc.post(this.path(), {}, undefined, restRequestConfig); + const r = await this.rc.post( + this.path(), + {}, + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Account/Telephony/Sessions/Parties/Reply/index.ts b/packages/core/src/paths/Restapi/Account/Telephony/Sessions/Parties/Reply/index.ts index b5988fcf..1f17388b 100644 --- a/packages/core/src/paths/Restapi/Account/Telephony/Sessions/Parties/Reply/index.ts +++ b/packages/core/src/paths/Restapi/Account/Telephony/Sessions/Parties/Reply/index.ts @@ -1,6 +1,10 @@ -import type ReplyParty from '../../../../../../../definitions/ReplyParty'; -import type CallPartyReply from '../../../../../../../definitions/CallPartyReply'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../../../types'; +import type ReplyParty from "../../../../../../../definitions/ReplyParty"; +import type CallPartyReply from "../../../../../../../definitions/CallPartyReply"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../../../types"; class Index { public rc: RingCentralInterface; @@ -20,8 +24,16 @@ class Index { * Rate Limit Group: Light * App Permission: CallControl */ - public async post(callPartyReply: CallPartyReply, restRequestConfig?: RestRequestConfig): Promise { - const r = await this.rc.post(this.path(), callPartyReply, undefined, restRequestConfig); + public async post( + callPartyReply: CallPartyReply, + restRequestConfig?: RestRequestConfig, + ): Promise { + const r = await this.rc.post( + this.path(), + callPartyReply, + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Account/Telephony/Sessions/Parties/Supervise/index.ts b/packages/core/src/paths/Restapi/Account/Telephony/Sessions/Parties/Supervise/index.ts index ac6002dc..a863ffe9 100644 --- a/packages/core/src/paths/Restapi/Account/Telephony/Sessions/Parties/Supervise/index.ts +++ b/packages/core/src/paths/Restapi/Account/Telephony/Sessions/Parties/Supervise/index.ts @@ -1,6 +1,10 @@ -import type PartySuperviseResponse from '../../../../../../../definitions/PartySuperviseResponse'; -import type PartySuperviseRequest from '../../../../../../../definitions/PartySuperviseRequest'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../../../types'; +import type PartySuperviseResponse from "../../../../../../../definitions/PartySuperviseResponse"; +import type PartySuperviseRequest from "../../../../../../../definitions/PartySuperviseRequest"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../../../types"; class Index { public rc: RingCentralInterface; diff --git a/packages/core/src/paths/Restapi/Account/Telephony/Sessions/Parties/Transfer/index.ts b/packages/core/src/paths/Restapi/Account/Telephony/Sessions/Parties/Transfer/index.ts index c70de987..23e79cdf 100644 --- a/packages/core/src/paths/Restapi/Account/Telephony/Sessions/Parties/Transfer/index.ts +++ b/packages/core/src/paths/Restapi/Account/Telephony/Sessions/Parties/Transfer/index.ts @@ -1,6 +1,10 @@ -import type CallParty from '../../../../../../../definitions/CallParty'; -import type TransferTarget from '../../../../../../../definitions/TransferTarget'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../../../types'; +import type CallParty from "../../../../../../../definitions/CallParty"; +import type TransferTarget from "../../../../../../../definitions/TransferTarget"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../../../types"; class Index { public rc: RingCentralInterface; @@ -20,8 +24,16 @@ class Index { * Rate Limit Group: Light * App Permission: CallControl */ - public async post(transferTarget: TransferTarget, restRequestConfig?: RestRequestConfig): Promise { - const r = await this.rc.post(this.path(), transferTarget, undefined, restRequestConfig); + public async post( + transferTarget: TransferTarget, + restRequestConfig?: RestRequestConfig, + ): Promise { + const r = await this.rc.post( + this.path(), + transferTarget, + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Account/Telephony/Sessions/Parties/Unhold/index.ts b/packages/core/src/paths/Restapi/Account/Telephony/Sessions/Parties/Unhold/index.ts index bc523f06..08161a6d 100644 --- a/packages/core/src/paths/Restapi/Account/Telephony/Sessions/Parties/Unhold/index.ts +++ b/packages/core/src/paths/Restapi/Account/Telephony/Sessions/Parties/Unhold/index.ts @@ -1,5 +1,9 @@ -import type CallParty from '../../../../../../../definitions/CallParty'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../../../types'; +import type CallParty from "../../../../../../../definitions/CallParty"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../../../types"; class Index { public rc: RingCentralInterface; @@ -20,7 +24,12 @@ class Index { * App Permission: CallControl */ public async post(restRequestConfig?: RestRequestConfig): Promise { - const r = await this.rc.post(this.path(), {}, undefined, restRequestConfig); + const r = await this.rc.post( + this.path(), + {}, + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Account/Telephony/Sessions/Parties/index.ts b/packages/core/src/paths/Restapi/Account/Telephony/Sessions/Parties/index.ts index 83c05456..dcbb4c96 100644 --- a/packages/core/src/paths/Restapi/Account/Telephony/Sessions/Parties/index.ts +++ b/packages/core/src/paths/Restapi/Account/Telephony/Sessions/Parties/index.ts @@ -1,21 +1,25 @@ -import Recordings from './Recordings'; -import Supervise from './Supervise'; -import BringIn from './BringIn'; -import Transfer from './Transfer'; -import Forward from './Forward'; -import Pickup from './Pickup'; -import Answer from './Answer'; -import Reject from './Reject'; -import Ignore from './Ignore'; -import Bridge from './Bridge'; -import Unhold from './Unhold'; -import Reply from './Reply'; -import Hold from './Hold'; -import Flip from './Flip'; -import Park from './Park'; -import type PartyUpdateRequest from '../../../../../../definitions/PartyUpdateRequest'; -import type CallParty from '../../../../../../definitions/CallParty'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../../types'; +import Recordings from "./Recordings"; +import Supervise from "./Supervise"; +import BringIn from "./BringIn"; +import Transfer from "./Transfer"; +import Forward from "./Forward"; +import Pickup from "./Pickup"; +import Answer from "./Answer"; +import Reject from "./Reject"; +import Ignore from "./Ignore"; +import Bridge from "./Bridge"; +import Unhold from "./Unhold"; +import Reply from "./Reply"; +import Hold from "./Hold"; +import Flip from "./Flip"; +import Park from "./Park"; +import type PartyUpdateRequest from "../../../../../../definitions/PartyUpdateRequest"; +import type CallParty from "../../../../../../definitions/CallParty"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../../types"; class Index { public rc: RingCentralInterface; @@ -42,9 +46,13 @@ class Index { */ public async get(restRequestConfig?: RestRequestConfig): Promise { if (this.partyId === null) { - throw new Error('partyId must be specified.'); + throw new Error("partyId must be specified."); } - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } @@ -57,9 +65,14 @@ class Index { */ public async delete(restRequestConfig?: RestRequestConfig): Promise { if (this.partyId === null) { - throw new Error('partyId must be specified.'); + throw new Error("partyId must be specified."); } - const r = await this.rc.delete(this.path(), {}, undefined, restRequestConfig); + const r = await this.rc.delete( + this.path(), + {}, + undefined, + restRequestConfig, + ); return r.data; } @@ -75,9 +88,14 @@ class Index { restRequestConfig?: RestRequestConfig, ): Promise { if (this.partyId === null) { - throw new Error('partyId must be specified.'); + throw new Error("partyId must be specified."); } - const r = await this.rc.patch(this.path(), partyUpdateRequest, undefined, restRequestConfig); + const r = await this.rc.patch( + this.path(), + partyUpdateRequest, + undefined, + restRequestConfig, + ); return r.data; } diff --git a/packages/core/src/paths/Restapi/Account/Telephony/Sessions/Supervise/index.ts b/packages/core/src/paths/Restapi/Account/Telephony/Sessions/Supervise/index.ts index c1558fc5..4b929342 100644 --- a/packages/core/src/paths/Restapi/Account/Telephony/Sessions/Supervise/index.ts +++ b/packages/core/src/paths/Restapi/Account/Telephony/Sessions/Supervise/index.ts @@ -1,6 +1,10 @@ -import type SuperviseCallSessionResponse from '../../../../../../definitions/SuperviseCallSessionResponse'; -import type SuperviseCallSessionRequest from '../../../../../../definitions/SuperviseCallSessionRequest'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../../types'; +import type SuperviseCallSessionResponse from "../../../../../../definitions/SuperviseCallSessionResponse"; +import type SuperviseCallSessionRequest from "../../../../../../definitions/SuperviseCallSessionRequest"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../../types"; class Index { public rc: RingCentralInterface; diff --git a/packages/core/src/paths/Restapi/Account/Telephony/Sessions/index.ts b/packages/core/src/paths/Restapi/Account/Telephony/Sessions/index.ts index 7d468256..22f7facb 100644 --- a/packages/core/src/paths/Restapi/Account/Telephony/Sessions/index.ts +++ b/packages/core/src/paths/Restapi/Account/Telephony/Sessions/index.ts @@ -1,15 +1,22 @@ -import Supervise from './Supervise'; -import Parties from './Parties'; -import type CallSessionObject from '../../../../../definitions/CallSessionObject'; -import type ReadCallSessionStatusParameters from '../../../../../definitions/ReadCallSessionStatusParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import Supervise from "./Supervise"; +import Parties from "./Parties"; +import type CallSessionObject from "../../../../../definitions/CallSessionObject"; +import type ReadCallSessionStatusParameters from "../../../../../definitions/ReadCallSessionStatusParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; public _parent: ParentInterface; public telephonySessionId: string | null; - public constructor(_parent: ParentInterface, telephonySessionId: string | null = null) { + public constructor( + _parent: ParentInterface, + telephonySessionId: string | null = null, + ) { this._parent = _parent; this.rc = _parent.rc; this.telephonySessionId = telephonySessionId; @@ -32,9 +39,13 @@ class Index { restRequestConfig?: RestRequestConfig, ): Promise { if (this.telephonySessionId === null) { - throw new Error('telephonySessionId must be specified.'); + throw new Error("telephonySessionId must be specified."); } - const r = await this.rc.get(this.path(), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(), + queryParams, + restRequestConfig, + ); return r.data; } @@ -47,9 +58,14 @@ class Index { */ public async delete(restRequestConfig?: RestRequestConfig): Promise { if (this.telephonySessionId === null) { - throw new Error('telephonySessionId must be specified.'); + throw new Error("telephonySessionId must be specified."); } - const r = await this.rc.delete(this.path(), {}, undefined, restRequestConfig); + const r = await this.rc.delete( + this.path(), + {}, + undefined, + restRequestConfig, + ); return r.data; } diff --git a/packages/core/src/paths/Restapi/Account/Telephony/index.ts b/packages/core/src/paths/Restapi/Account/Telephony/index.ts index 7a25f8c7..4b052a38 100644 --- a/packages/core/src/paths/Restapi/Account/Telephony/index.ts +++ b/packages/core/src/paths/Restapi/Account/Telephony/index.ts @@ -1,8 +1,8 @@ -import Conference from './Conference'; -import CallOut from './CallOut'; -import Sessions from './Sessions'; -import Metadata from './Metadata'; -import type { RingCentralInterface, ParentInterface } from '../../../../types'; +import Conference from "./Conference"; +import CallOut from "./CallOut"; +import Sessions from "./Sessions"; +import Metadata from "./Metadata"; +import type { ParentInterface, RingCentralInterface } from "../../../../types"; class Index { public rc: RingCentralInterface; diff --git a/packages/core/src/paths/Restapi/Account/Templates/index.ts b/packages/core/src/paths/Restapi/Account/Templates/index.ts index 27476212..d3d05888 100644 --- a/packages/core/src/paths/Restapi/Account/Templates/index.ts +++ b/packages/core/src/paths/Restapi/Account/Templates/index.ts @@ -1,14 +1,21 @@ -import type TemplateInfo from '../../../../definitions/TemplateInfo'; -import type UserTemplates from '../../../../definitions/UserTemplates'; -import type ListUserTemplatesParameters from '../../../../definitions/ListUserTemplatesParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../types'; +import type TemplateInfo from "../../../../definitions/TemplateInfo"; +import type UserTemplates from "../../../../definitions/UserTemplates"; +import type ListUserTemplatesParameters from "../../../../definitions/ListUserTemplatesParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../types"; class Index { public rc: RingCentralInterface; public _parent: ParentInterface; public templateId: string | null; - public constructor(_parent: ParentInterface, templateId: string | null = null) { + public constructor( + _parent: ParentInterface, + templateId: string | null = null, + ) { this._parent = _parent; this.rc = _parent.rc; this.templateId = templateId; @@ -32,7 +39,11 @@ class Index { queryParams?: ListUserTemplatesParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(false), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(false), + queryParams, + restRequestConfig, + ); return r.data; } @@ -45,11 +56,17 @@ class Index { * App Permission: ReadAccounts * User Permission: ReadCompanyInfo */ - public async get(restRequestConfig?: RestRequestConfig): Promise { + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { if (this.templateId === null) { - throw new Error('templateId must be specified.'); + throw new Error("templateId must be specified."); } - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Account/UserRole/BulkAssign/index.ts b/packages/core/src/paths/Restapi/Account/UserRole/BulkAssign/index.ts index 65720c3e..272f8fd8 100644 --- a/packages/core/src/paths/Restapi/Account/UserRole/BulkAssign/index.ts +++ b/packages/core/src/paths/Restapi/Account/UserRole/BulkAssign/index.ts @@ -1,5 +1,9 @@ -import type BulkRoleAssignResource from '../../../../../definitions/BulkRoleAssignResource'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type BulkRoleAssignResource from "../../../../../definitions/BulkRoleAssignResource"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -24,7 +28,12 @@ class Index { bulkRoleAssignResource: BulkRoleAssignResource, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.post(this.path(), bulkRoleAssignResource, undefined, restRequestConfig); + const r = await this.rc.post( + this.path(), + bulkRoleAssignResource, + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Account/UserRole/Default/index.ts b/packages/core/src/paths/Restapi/Account/UserRole/Default/index.ts index 28db07b4..0a4b29db 100644 --- a/packages/core/src/paths/Restapi/Account/UserRole/Default/index.ts +++ b/packages/core/src/paths/Restapi/Account/UserRole/Default/index.ts @@ -1,6 +1,10 @@ -import type DefaultUserRoleRequest from '../../../../../definitions/DefaultUserRoleRequest'; -import type DefaultUserRole from '../../../../../definitions/DefaultUserRole'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type DefaultUserRoleRequest from "../../../../../definitions/DefaultUserRoleRequest"; +import type DefaultUserRole from "../../../../../definitions/DefaultUserRole"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -21,8 +25,14 @@ class Index { * App Permission: RoleManagement * User Permission: Roles */ - public async get(restRequestConfig?: RestRequestConfig): Promise { - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } @@ -38,7 +48,12 @@ class Index { defaultUserRoleRequest: DefaultUserRoleRequest, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.put(this.path(), defaultUserRoleRequest, undefined, restRequestConfig); + const r = await this.rc.put( + this.path(), + defaultUserRoleRequest, + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Account/UserRole/index.ts b/packages/core/src/paths/Restapi/Account/UserRole/index.ts index 6a2cab02..da5f490a 100644 --- a/packages/core/src/paths/Restapi/Account/UserRole/index.ts +++ b/packages/core/src/paths/Restapi/Account/UserRole/index.ts @@ -1,11 +1,15 @@ -import BulkAssign from './BulkAssign'; -import Default from './Default'; -import type DeleteCustomRoleParameters from '../../../../definitions/DeleteCustomRoleParameters'; -import type ReadUserRoleParameters from '../../../../definitions/ReadUserRoleParameters'; -import type RoleResource from '../../../../definitions/RoleResource'; -import type RolesCollectionResource from '../../../../definitions/RolesCollectionResource'; -import type ListUserRolesParameters from '../../../../definitions/ListUserRolesParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../types'; +import BulkAssign from "./BulkAssign"; +import Default from "./Default"; +import type DeleteCustomRoleParameters from "../../../../definitions/DeleteCustomRoleParameters"; +import type ReadUserRoleParameters from "../../../../definitions/ReadUserRoleParameters"; +import type RoleResource from "../../../../definitions/RoleResource"; +import type RolesCollectionResource from "../../../../definitions/RolesCollectionResource"; +import type ListUserRolesParameters from "../../../../definitions/ListUserRolesParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../types"; class Index { public rc: RingCentralInterface; @@ -35,7 +39,11 @@ class Index { queryParams?: ListUserRolesParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(false), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(false), + queryParams, + restRequestConfig, + ); return r.data; } @@ -47,8 +55,16 @@ class Index { * App Permission: RoleManagement * User Permission: EditUserRoles */ - public async post(roleResource: RoleResource, restRequestConfig?: RestRequestConfig): Promise { - const r = await this.rc.post(this.path(false), roleResource, undefined, restRequestConfig); + public async post( + roleResource: RoleResource, + restRequestConfig?: RestRequestConfig, + ): Promise { + const r = await this.rc.post( + this.path(false), + roleResource, + undefined, + restRequestConfig, + ); return r.data; } @@ -60,11 +76,18 @@ class Index { * App Permission: ReadAccounts * User Permission: ReadUserRoles */ - public async get(queryParams?: ReadUserRoleParameters, restRequestConfig?: RestRequestConfig): Promise { + public async get( + queryParams?: ReadUserRoleParameters, + restRequestConfig?: RestRequestConfig, + ): Promise { if (this.roleId === null) { - throw new Error('roleId must be specified.'); + throw new Error("roleId must be specified."); } - const r = await this.rc.get(this.path(), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(), + queryParams, + restRequestConfig, + ); return r.data; } @@ -76,11 +99,19 @@ class Index { * App Permission: RoleManagement * User Permission: EditUserRoles */ - public async put(roleResource: RoleResource, restRequestConfig?: RestRequestConfig): Promise { + public async put( + roleResource: RoleResource, + restRequestConfig?: RestRequestConfig, + ): Promise { if (this.roleId === null) { - throw new Error('roleId must be specified.'); + throw new Error("roleId must be specified."); } - const r = await this.rc.put(this.path(), roleResource, undefined, restRequestConfig); + const r = await this.rc.put( + this.path(), + roleResource, + undefined, + restRequestConfig, + ); return r.data; } @@ -97,9 +128,14 @@ class Index { restRequestConfig?: RestRequestConfig, ): Promise { if (this.roleId === null) { - throw new Error('roleId must be specified.'); + throw new Error("roleId must be specified."); } - const r = await this.rc.delete(this.path(), {}, queryParams, restRequestConfig); + const r = await this.rc.delete( + this.path(), + {}, + queryParams, + restRequestConfig, + ); return r.data; } diff --git a/packages/core/src/paths/Restapi/Account/index.ts b/packages/core/src/paths/Restapi/Account/index.ts index bf808d4d..f446cef0 100644 --- a/packages/core/src/paths/Restapi/Account/index.ts +++ b/packages/core/src/paths/Restapi/Account/index.ts @@ -1,49 +1,53 @@ -import EmergencyAddressAutoUpdate from './EmergencyAddressAutoUpdate'; -import MessageStoreConfiguration from './MessageStoreConfiguration'; -import AddressBookBulkUpload from './AddressBookBulkUpload'; -import MessageStoreTemplates from './MessageStoreTemplates'; -import CallMonitoringGroups from './CallMonitoringGroups'; -import ExtensionBulkUpdate from './ExtensionBulkUpdate'; -import MessageStoreReport from './MessageStoreReport'; -import EmergencyLocations from './EmergencyLocations'; -import PagingOnlyGroups from './PagingOnlyGroups'; -import ForwardAllCalls from './ForwardAllCalls'; -import BusinessAddress from './BusinessAddress'; -import CallRecordings from './CallRecordings'; -import CallRecording from './CallRecording'; -import BusinessHours from './BusinessHours'; -import AnsweringRule from './AnsweringRule'; -import AssignedRole from './AssignedRole'; -import CallLogSync from './CallLogSync'; -import CustomFields from './CustomFields'; -import ActiveCalls from './ActiveCalls'; -import ServiceInfo from './ServiceInfo'; -import PhoneNumber from './PhoneNumber'; -import CallQueues from './CallQueues'; -import IvrPrompts from './IvrPrompts'; -import AuditTrail from './AuditTrail'; -import UserRole from './UserRole'; -import IvrMenus from './IvrMenus'; -import Templates from './Templates'; -import Extension from './Extension'; -import Recording from './Recording'; -import Telephony from './Telephony'; -import Directory from './Directory'; -import Greeting from './Greeting'; -import Presence from './Presence'; -import CallLog from './CallLog'; -import A2pSms from './A2pSms'; -import Device from './Device'; -import Sites from './Sites'; -import type GetAccountInfoResponse from '../../../definitions/GetAccountInfoResponse'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../types'; +import EmergencyAddressAutoUpdate from "./EmergencyAddressAutoUpdate"; +import MessageStoreConfiguration from "./MessageStoreConfiguration"; +import AddressBookBulkUpload from "./AddressBookBulkUpload"; +import MessageStoreTemplates from "./MessageStoreTemplates"; +import CallMonitoringGroups from "./CallMonitoringGroups"; +import ExtensionBulkUpdate from "./ExtensionBulkUpdate"; +import MessageStoreReport from "./MessageStoreReport"; +import EmergencyLocations from "./EmergencyLocations"; +import PagingOnlyGroups from "./PagingOnlyGroups"; +import ForwardAllCalls from "./ForwardAllCalls"; +import BusinessAddress from "./BusinessAddress"; +import CallRecordings from "./CallRecordings"; +import CallRecording from "./CallRecording"; +import BusinessHours from "./BusinessHours"; +import AnsweringRule from "./AnsweringRule"; +import AssignedRole from "./AssignedRole"; +import CallLogSync from "./CallLogSync"; +import CustomFields from "./CustomFields"; +import ActiveCalls from "./ActiveCalls"; +import ServiceInfo from "./ServiceInfo"; +import PhoneNumber from "./PhoneNumber"; +import CallQueues from "./CallQueues"; +import IvrPrompts from "./IvrPrompts"; +import AuditTrail from "./AuditTrail"; +import UserRole from "./UserRole"; +import IvrMenus from "./IvrMenus"; +import Templates from "./Templates"; +import Extension from "./Extension"; +import Recording from "./Recording"; +import Telephony from "./Telephony"; +import Directory from "./Directory"; +import Greeting from "./Greeting"; +import Presence from "./Presence"; +import CallLog from "./CallLog"; +import A2pSms from "./A2pSms"; +import Device from "./Device"; +import Sites from "./Sites"; +import type GetAccountInfoResponse from "../../../definitions/GetAccountInfoResponse"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../types"; class Index { public rc: RingCentralInterface; public _parent: ParentInterface; public accountId: string | null; - public constructor(_parent: ParentInterface, accountId: string | null = '~') { + public constructor(_parent: ParentInterface, accountId: string | null = "~") { this._parent = _parent; this.rc = _parent.rc; this.accountId = accountId; @@ -63,11 +67,17 @@ class Index { * App Permission: ReadAccounts * User Permission: ReadCompanyInfo */ - public async get(restRequestConfig?: RestRequestConfig): Promise { + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { if (this.accountId === null) { - throw new Error('accountId must be specified.'); + throw new Error("accountId must be specified."); } - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } @@ -107,7 +117,7 @@ class Index { return new Recording(this, recordingId); } - public extension(extensionId: string | null = '~'): Extension { + public extension(extensionId: string | null = "~"): Extension { return new Extension(this, extensionId); } @@ -183,11 +193,15 @@ class Index { return new ForwardAllCalls(this); } - public pagingOnlyGroups(pagingOnlyGroupId: string | null = null): PagingOnlyGroups { + public pagingOnlyGroups( + pagingOnlyGroupId: string | null = null, + ): PagingOnlyGroups { return new PagingOnlyGroups(this, pagingOnlyGroupId); } - public emergencyLocations(locationId: string | null = null): EmergencyLocations { + public emergencyLocations( + locationId: string | null = null, + ): EmergencyLocations { return new EmergencyLocations(this, locationId); } @@ -199,11 +213,15 @@ class Index { return new ExtensionBulkUpdate(this); } - public callMonitoringGroups(groupId: string | null = null): CallMonitoringGroups { + public callMonitoringGroups( + groupId: string | null = null, + ): CallMonitoringGroups { return new CallMonitoringGroups(this, groupId); } - public messageStoreTemplates(templateId: string | null = null): MessageStoreTemplates { + public messageStoreTemplates( + templateId: string | null = null, + ): MessageStoreTemplates { return new MessageStoreTemplates(this, templateId); } diff --git a/packages/core/src/paths/Restapi/ClientInfo/SipProvision/index.ts b/packages/core/src/paths/Restapi/ClientInfo/SipProvision/index.ts index 9da67c34..18dabc64 100644 --- a/packages/core/src/paths/Restapi/ClientInfo/SipProvision/index.ts +++ b/packages/core/src/paths/Restapi/ClientInfo/SipProvision/index.ts @@ -1,6 +1,10 @@ -import type CreateSipRegistrationResponse from '../../../../definitions/CreateSipRegistrationResponse'; -import type CreateSipRegistrationRequest from '../../../../definitions/CreateSipRegistrationRequest'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../types'; +import type CreateSipRegistrationResponse from "../../../../definitions/CreateSipRegistrationResponse"; +import type CreateSipRegistrationRequest from "../../../../definitions/CreateSipRegistrationRequest"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../types"; class Index { public rc: RingCentralInterface; diff --git a/packages/core/src/paths/Restapi/ClientInfo/index.ts b/packages/core/src/paths/Restapi/ClientInfo/index.ts index d07c3e9c..07397444 100644 --- a/packages/core/src/paths/Restapi/ClientInfo/index.ts +++ b/packages/core/src/paths/Restapi/ClientInfo/index.ts @@ -1,5 +1,5 @@ -import SipProvision from './SipProvision'; -import type { RingCentralInterface, ParentInterface } from '../../../types'; +import SipProvision from "./SipProvision"; +import type { ParentInterface, RingCentralInterface } from "../../../types"; class Index { public rc: RingCentralInterface; diff --git a/packages/core/src/paths/Restapi/Dictionary/Brand/ContractedCountry/index.ts b/packages/core/src/paths/Restapi/Dictionary/Brand/ContractedCountry/index.ts index b6b62ce7..5ce3e274 100644 --- a/packages/core/src/paths/Restapi/Dictionary/Brand/ContractedCountry/index.ts +++ b/packages/core/src/paths/Restapi/Dictionary/Brand/ContractedCountry/index.ts @@ -1,14 +1,21 @@ -import type CountryListDictionaryModel from '../../../../../definitions/CountryListDictionaryModel'; -import type ListDomesticCountriesParameters from '../../../../../definitions/ListDomesticCountriesParameters'; -import type ContractedCountryListResponse from '../../../../../definitions/ContractedCountryListResponse'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type CountryListDictionaryModel from "../../../../../definitions/CountryListDictionaryModel"; +import type ListDomesticCountriesParameters from "../../../../../definitions/ListDomesticCountriesParameters"; +import type ContractedCountryListResponse from "../../../../../definitions/ContractedCountryListResponse"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; public _parent: ParentInterface; public contractedCountryId: string | null; - public constructor(_parent: ParentInterface, contractedCountryId: string | null = null) { + public constructor( + _parent: ParentInterface, + contractedCountryId: string | null = null, + ) { this._parent = _parent; this.rc = _parent.rc; this.contractedCountryId = contractedCountryId; @@ -25,8 +32,14 @@ class Index { * Endpoint: /restapi/{apiVersion}/dictionary/brand/{brandId}/contracted-country * Rate Limit Group: Light */ - public async list(restRequestConfig?: RestRequestConfig): Promise { - const r = await this.rc.get(this.path(false), undefined, restRequestConfig); + public async list( + restRequestConfig?: RestRequestConfig, + ): Promise { + const r = await this.rc.get( + this.path(false), + undefined, + restRequestConfig, + ); return r.data; } @@ -42,9 +55,13 @@ class Index { restRequestConfig?: RestRequestConfig, ): Promise { if (this.contractedCountryId === null) { - throw new Error('contractedCountryId must be specified.'); + throw new Error("contractedCountryId must be specified."); } - const r = await this.rc.get(this.path(), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(), + queryParams, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Dictionary/Brand/index.ts b/packages/core/src/paths/Restapi/Dictionary/Brand/index.ts index 0d798c62..2b178fce 100644 --- a/packages/core/src/paths/Restapi/Dictionary/Brand/index.ts +++ b/packages/core/src/paths/Restapi/Dictionary/Brand/index.ts @@ -1,5 +1,5 @@ -import ContractedCountry from './ContractedCountry'; -import type { RingCentralInterface, ParentInterface } from '../../../../types'; +import ContractedCountry from "./ContractedCountry"; +import type { ParentInterface, RingCentralInterface } from "../../../../types"; class Index { public rc: RingCentralInterface; @@ -18,7 +18,9 @@ class Index { return `${this._parent.path()}/brand`; } - public contractedCountry(contractedCountryId: string | null = null): ContractedCountry { + public contractedCountry( + contractedCountryId: string | null = null, + ): ContractedCountry { return new ContractedCountry(this, contractedCountryId); } } diff --git a/packages/core/src/paths/Restapi/Dictionary/Country/index.ts b/packages/core/src/paths/Restapi/Dictionary/Country/index.ts index b7995d9d..56ce64ec 100644 --- a/packages/core/src/paths/Restapi/Dictionary/Country/index.ts +++ b/packages/core/src/paths/Restapi/Dictionary/Country/index.ts @@ -1,14 +1,21 @@ -import type CountryInfoDictionaryModel from '../../../../definitions/CountryInfoDictionaryModel'; -import type CountryListDictionaryModel from '../../../../definitions/CountryListDictionaryModel'; -import type ListCountriesParameters from '../../../../definitions/ListCountriesParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../types'; +import type CountryInfoDictionaryModel from "../../../../definitions/CountryInfoDictionaryModel"; +import type CountryListDictionaryModel from "../../../../definitions/CountryListDictionaryModel"; +import type ListCountriesParameters from "../../../../definitions/ListCountriesParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../types"; class Index { public rc: RingCentralInterface; public _parent: ParentInterface; public countryId: string | null; - public constructor(_parent: ParentInterface, countryId: string | null = null) { + public constructor( + _parent: ParentInterface, + countryId: string | null = null, + ) { this._parent = _parent; this.rc = _parent.rc; this.countryId = countryId; @@ -30,7 +37,11 @@ class Index { queryParams?: ListCountriesParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(false), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(false), + queryParams, + restRequestConfig, + ); return r.data; } @@ -41,11 +52,17 @@ class Index { * Endpoint: /restapi/{apiVersion}/dictionary/country/{countryId} * Rate Limit Group: Light */ - public async get(restRequestConfig?: RestRequestConfig): Promise { + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { if (this.countryId === null) { - throw new Error('countryId must be specified.'); + throw new Error("countryId must be specified."); } - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Dictionary/FaxCoverPage/index.ts b/packages/core/src/paths/Restapi/Dictionary/FaxCoverPage/index.ts index 1fe07662..a5e75f6a 100644 --- a/packages/core/src/paths/Restapi/Dictionary/FaxCoverPage/index.ts +++ b/packages/core/src/paths/Restapi/Dictionary/FaxCoverPage/index.ts @@ -1,6 +1,10 @@ -import type ListFaxCoverPagesResponse from '../../../../definitions/ListFaxCoverPagesResponse'; -import type ListFaxCoverPagesParameters from '../../../../definitions/ListFaxCoverPagesParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../types'; +import type ListFaxCoverPagesResponse from "../../../../definitions/ListFaxCoverPagesResponse"; +import type ListFaxCoverPagesParameters from "../../../../definitions/ListFaxCoverPagesParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../types"; class Index { public rc: RingCentralInterface; @@ -23,7 +27,11 @@ class Index { queryParams?: ListFaxCoverPagesParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(), + queryParams, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Dictionary/Greeting/index.ts b/packages/core/src/paths/Restapi/Dictionary/Greeting/index.ts index 20c7586b..35b7e139 100644 --- a/packages/core/src/paths/Restapi/Dictionary/Greeting/index.ts +++ b/packages/core/src/paths/Restapi/Dictionary/Greeting/index.ts @@ -1,14 +1,21 @@ -import type DictionaryGreetingInfo from '../../../../definitions/DictionaryGreetingInfo'; -import type DictionaryGreetingList from '../../../../definitions/DictionaryGreetingList'; -import type ListStandardGreetingsParameters from '../../../../definitions/ListStandardGreetingsParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../types'; +import type DictionaryGreetingInfo from "../../../../definitions/DictionaryGreetingInfo"; +import type DictionaryGreetingList from "../../../../definitions/DictionaryGreetingList"; +import type ListStandardGreetingsParameters from "../../../../definitions/ListStandardGreetingsParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../types"; class Index { public rc: RingCentralInterface; public _parent: ParentInterface; public greetingId: string | null; - public constructor(_parent: ParentInterface, greetingId: string | null = null) { + public constructor( + _parent: ParentInterface, + greetingId: string | null = null, + ) { this._parent = _parent; this.rc = _parent.rc; this.greetingId = greetingId; @@ -32,7 +39,11 @@ class Index { queryParams?: ListStandardGreetingsParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(false), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(false), + queryParams, + restRequestConfig, + ); return r.data; } @@ -42,11 +53,17 @@ class Index { * Endpoint: /restapi/{apiVersion}/dictionary/greeting/{greetingId} * Rate Limit Group: Medium */ - public async get(restRequestConfig?: RestRequestConfig): Promise { + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { if (this.greetingId === null) { - throw new Error('greetingId must be specified.'); + throw new Error("greetingId must be specified."); } - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Dictionary/Language/index.ts b/packages/core/src/paths/Restapi/Dictionary/Language/index.ts index 73ee79d7..031b8212 100644 --- a/packages/core/src/paths/Restapi/Dictionary/Language/index.ts +++ b/packages/core/src/paths/Restapi/Dictionary/Language/index.ts @@ -1,13 +1,20 @@ -import type LanguageInfo from '../../../../definitions/LanguageInfo'; -import type LanguageList from '../../../../definitions/LanguageList'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../types'; +import type LanguageInfo from "../../../../definitions/LanguageInfo"; +import type LanguageList from "../../../../definitions/LanguageList"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../types"; class Index { public rc: RingCentralInterface; public _parent: ParentInterface; public languageId: string | null; - public constructor(_parent: ParentInterface, languageId: string | null = null) { + public constructor( + _parent: ParentInterface, + languageId: string | null = null, + ) { this._parent = _parent; this.rc = _parent.rc; this.languageId = languageId; @@ -25,8 +32,14 @@ class Index { * Endpoint: /restapi/{apiVersion}/dictionary/language * Rate Limit Group: Light */ - public async list(restRequestConfig?: RestRequestConfig): Promise { - const r = await this.rc.get(this.path(false), undefined, restRequestConfig); + public async list( + restRequestConfig?: RestRequestConfig, + ): Promise { + const r = await this.rc.get( + this.path(false), + undefined, + restRequestConfig, + ); return r.data; } @@ -37,11 +50,17 @@ class Index { * Endpoint: /restapi/{apiVersion}/dictionary/language/{languageId} * Rate Limit Group: Light */ - public async get(restRequestConfig?: RestRequestConfig): Promise { + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { if (this.languageId === null) { - throw new Error('languageId must be specified.'); + throw new Error("languageId must be specified."); } - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Dictionary/Location/index.ts b/packages/core/src/paths/Restapi/Dictionary/Location/index.ts index 1fe419b8..bb448b36 100644 --- a/packages/core/src/paths/Restapi/Dictionary/Location/index.ts +++ b/packages/core/src/paths/Restapi/Dictionary/Location/index.ts @@ -1,6 +1,10 @@ -import type GetLocationListResponse from '../../../../definitions/GetLocationListResponse'; -import type ListLocationsParameters from '../../../../definitions/ListLocationsParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../types'; +import type GetLocationListResponse from "../../../../definitions/GetLocationListResponse"; +import type ListLocationsParameters from "../../../../definitions/ListLocationsParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../types"; class Index { public rc: RingCentralInterface; @@ -24,7 +28,11 @@ class Index { queryParams?: ListLocationsParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(), + queryParams, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Dictionary/Permission/index.ts b/packages/core/src/paths/Restapi/Dictionary/Permission/index.ts index 855282a8..e9d41f92 100644 --- a/packages/core/src/paths/Restapi/Dictionary/Permission/index.ts +++ b/packages/core/src/paths/Restapi/Dictionary/Permission/index.ts @@ -1,14 +1,21 @@ -import type PermissionResource from '../../../../definitions/PermissionResource'; -import type PermissionCollectionResource from '../../../../definitions/PermissionCollectionResource'; -import type ListPermissionsParameters from '../../../../definitions/ListPermissionsParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../types'; +import type PermissionResource from "../../../../definitions/PermissionResource"; +import type PermissionCollectionResource from "../../../../definitions/PermissionCollectionResource"; +import type ListPermissionsParameters from "../../../../definitions/ListPermissionsParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../types"; class Index { public rc: RingCentralInterface; public _parent: ParentInterface; public permissionId: string | null; - public constructor(_parent: ParentInterface, permissionId: string | null = null) { + public constructor( + _parent: ParentInterface, + permissionId: string | null = null, + ) { this._parent = _parent; this.rc = _parent.rc; this.permissionId = permissionId; @@ -29,7 +36,11 @@ class Index { queryParams?: ListPermissionsParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(false), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(false), + queryParams, + restRequestConfig, + ); return r.data; } @@ -39,11 +50,17 @@ class Index { * Endpoint: /restapi/{apiVersion}/dictionary/permission/{permissionId} * Rate Limit Group: Light */ - public async get(restRequestConfig?: RestRequestConfig): Promise { + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { if (this.permissionId === null) { - throw new Error('permissionId must be specified.'); + throw new Error("permissionId must be specified."); } - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Dictionary/PermissionCategory/index.ts b/packages/core/src/paths/Restapi/Dictionary/PermissionCategory/index.ts index 0d62403e..89765820 100644 --- a/packages/core/src/paths/Restapi/Dictionary/PermissionCategory/index.ts +++ b/packages/core/src/paths/Restapi/Dictionary/PermissionCategory/index.ts @@ -1,14 +1,21 @@ -import type PermissionCategoryResource from '../../../../definitions/PermissionCategoryResource'; -import type PermissionCategoryCollectionResource from '../../../../definitions/PermissionCategoryCollectionResource'; -import type ListPermissionCategoriesParameters from '../../../../definitions/ListPermissionCategoriesParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../types'; +import type PermissionCategoryResource from "../../../../definitions/PermissionCategoryResource"; +import type PermissionCategoryCollectionResource from "../../../../definitions/PermissionCategoryCollectionResource"; +import type ListPermissionCategoriesParameters from "../../../../definitions/ListPermissionCategoriesParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../types"; class Index { public rc: RingCentralInterface; public _parent: ParentInterface; public permissionCategoryId: string | null; - public constructor(_parent: ParentInterface, permissionCategoryId: string | null = null) { + public constructor( + _parent: ParentInterface, + permissionCategoryId: string | null = null, + ) { this._parent = _parent; this.rc = _parent.rc; this.permissionCategoryId = permissionCategoryId; @@ -29,7 +36,11 @@ class Index { queryParams?: ListPermissionCategoriesParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(false), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(false), + queryParams, + restRequestConfig, + ); return r.data; } @@ -39,11 +50,17 @@ class Index { * Endpoint: /restapi/{apiVersion}/dictionary/permission-category/{permissionCategoryId} * Rate Limit Group: Light */ - public async get(restRequestConfig?: RestRequestConfig): Promise { + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { if (this.permissionCategoryId === null) { - throw new Error('permissionCategoryId must be specified.'); + throw new Error("permissionCategoryId must be specified."); } - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Dictionary/State/index.ts b/packages/core/src/paths/Restapi/Dictionary/State/index.ts index 00a5fb40..37af4784 100644 --- a/packages/core/src/paths/Restapi/Dictionary/State/index.ts +++ b/packages/core/src/paths/Restapi/Dictionary/State/index.ts @@ -1,7 +1,11 @@ -import type GetStateInfoResponse from '../../../../definitions/GetStateInfoResponse'; -import type GetStateListResponse from '../../../../definitions/GetStateListResponse'; -import type ListStatesParameters from '../../../../definitions/ListStatesParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../types'; +import type GetStateInfoResponse from "../../../../definitions/GetStateInfoResponse"; +import type GetStateListResponse from "../../../../definitions/GetStateListResponse"; +import type ListStatesParameters from "../../../../definitions/ListStatesParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../types"; class Index { public rc: RingCentralInterface; @@ -30,7 +34,11 @@ class Index { queryParams?: ListStatesParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(false), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(false), + queryParams, + restRequestConfig, + ); return r.data; } @@ -41,11 +49,17 @@ class Index { * Endpoint: /restapi/{apiVersion}/dictionary/state/{stateId} * Rate Limit Group: Light */ - public async get(restRequestConfig?: RestRequestConfig): Promise { + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { if (this.stateId === null) { - throw new Error('stateId must be specified.'); + throw new Error("stateId must be specified."); } - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Dictionary/Timezone/index.ts b/packages/core/src/paths/Restapi/Dictionary/Timezone/index.ts index 452ca6bf..263b0407 100644 --- a/packages/core/src/paths/Restapi/Dictionary/Timezone/index.ts +++ b/packages/core/src/paths/Restapi/Dictionary/Timezone/index.ts @@ -1,14 +1,21 @@ -import type GetTimezoneInfoResponse from '../../../../definitions/GetTimezoneInfoResponse'; -import type GetTimezoneListResponse from '../../../../definitions/GetTimezoneListResponse'; -import type ListTimezonesParameters from '../../../../definitions/ListTimezonesParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../types'; +import type GetTimezoneInfoResponse from "../../../../definitions/GetTimezoneInfoResponse"; +import type GetTimezoneListResponse from "../../../../definitions/GetTimezoneListResponse"; +import type ListTimezonesParameters from "../../../../definitions/ListTimezonesParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../types"; class Index { public rc: RingCentralInterface; public _parent: ParentInterface; public timezoneId: string | null; - public constructor(_parent: ParentInterface, timezoneId: string | null = null) { + public constructor( + _parent: ParentInterface, + timezoneId: string | null = null, + ) { this._parent = _parent; this.rc = _parent.rc; this.timezoneId = timezoneId; @@ -30,7 +37,11 @@ class Index { queryParams?: ListTimezonesParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(false), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(false), + queryParams, + restRequestConfig, + ); return r.data; } @@ -41,11 +52,17 @@ class Index { * Endpoint: /restapi/{apiVersion}/dictionary/timezone/{timezoneId} * Rate Limit Group: Light */ - public async get(restRequestConfig?: RestRequestConfig): Promise { + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { if (this.timezoneId === null) { - throw new Error('timezoneId must be specified.'); + throw new Error("timezoneId must be specified."); } - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Dictionary/UserRole/index.ts b/packages/core/src/paths/Restapi/Dictionary/UserRole/index.ts index be490001..0ba09e4a 100644 --- a/packages/core/src/paths/Restapi/Dictionary/UserRole/index.ts +++ b/packages/core/src/paths/Restapi/Dictionary/UserRole/index.ts @@ -1,7 +1,11 @@ -import type RoleResource from '../../../../definitions/RoleResource'; -import type RolesCollectionResource from '../../../../definitions/RolesCollectionResource'; -import type ListStandardUserRoleParameters from '../../../../definitions/ListStandardUserRoleParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../types'; +import type RoleResource from "../../../../definitions/RoleResource"; +import type RolesCollectionResource from "../../../../definitions/RolesCollectionResource"; +import type ListStandardUserRoleParameters from "../../../../definitions/ListStandardUserRoleParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../types"; class Index { public rc: RingCentralInterface; @@ -29,7 +33,11 @@ class Index { queryParams?: ListStandardUserRoleParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(false), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(false), + queryParams, + restRequestConfig, + ); return r.data; } @@ -39,11 +47,17 @@ class Index { * Endpoint: /restapi/{apiVersion}/dictionary/user-role/{roleId} * Rate Limit Group: Light */ - public async get(restRequestConfig?: RestRequestConfig): Promise { + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { if (this.roleId === null) { - throw new Error('roleId must be specified.'); + throw new Error("roleId must be specified."); } - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Dictionary/index.ts b/packages/core/src/paths/Restapi/Dictionary/index.ts index bbc9cdbe..e23d435e 100644 --- a/packages/core/src/paths/Restapi/Dictionary/index.ts +++ b/packages/core/src/paths/Restapi/Dictionary/index.ts @@ -1,15 +1,15 @@ -import PermissionCategory from './PermissionCategory'; -import FaxCoverPage from './FaxCoverPage'; -import Permission from './Permission'; -import UserRole from './UserRole'; -import Location from './Location'; -import Timezone from './Timezone'; -import Greeting from './Greeting'; -import Language from './Language'; -import Country from './Country'; -import State from './State'; -import Brand from './Brand'; -import type { RingCentralInterface, ParentInterface } from '../../../types'; +import PermissionCategory from "./PermissionCategory"; +import FaxCoverPage from "./FaxCoverPage"; +import Permission from "./Permission"; +import UserRole from "./UserRole"; +import Location from "./Location"; +import Timezone from "./Timezone"; +import Greeting from "./Greeting"; +import Language from "./Language"; +import Country from "./Country"; +import State from "./State"; +import Brand from "./Brand"; +import type { ParentInterface, RingCentralInterface } from "../../../types"; class Index { public rc: RingCentralInterface; @@ -63,7 +63,9 @@ class Index { return new FaxCoverPage(this); } - public permissionCategory(permissionCategoryId: string | null = null): PermissionCategory { + public permissionCategory( + permissionCategoryId: string | null = null, + ): PermissionCategory { return new PermissionCategory(this, permissionCategoryId); } } diff --git a/packages/core/src/paths/Restapi/NumberParser/Parse/index.ts b/packages/core/src/paths/Restapi/NumberParser/Parse/index.ts index 9c18d5e8..a03437b2 100644 --- a/packages/core/src/paths/Restapi/NumberParser/Parse/index.ts +++ b/packages/core/src/paths/Restapi/NumberParser/Parse/index.ts @@ -1,7 +1,11 @@ -import type ParsePhoneNumberResponse from '../../../../definitions/ParsePhoneNumberResponse'; -import type ParsePhoneNumberParameters from '../../../../definitions/ParsePhoneNumberParameters'; -import type ParsePhoneNumberRequest from '../../../../definitions/ParsePhoneNumberRequest'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../types'; +import type ParsePhoneNumberResponse from "../../../../definitions/ParsePhoneNumberResponse"; +import type ParsePhoneNumberParameters from "../../../../definitions/ParsePhoneNumberParameters"; +import type ParsePhoneNumberRequest from "../../../../definitions/ParsePhoneNumberRequest"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../types"; class Index { public rc: RingCentralInterface; diff --git a/packages/core/src/paths/Restapi/NumberParser/index.ts b/packages/core/src/paths/Restapi/NumberParser/index.ts index 47f7e1f4..ec21cc93 100644 --- a/packages/core/src/paths/Restapi/NumberParser/index.ts +++ b/packages/core/src/paths/Restapi/NumberParser/index.ts @@ -1,5 +1,5 @@ -import Parse from './Parse'; -import type { RingCentralInterface, ParentInterface } from '../../../types'; +import Parse from "./Parse"; +import type { ParentInterface, RingCentralInterface } from "../../../types"; class Index { public rc: RingCentralInterface; diff --git a/packages/core/src/paths/Restapi/Oauth/Authorize/index.ts b/packages/core/src/paths/Restapi/Oauth/Authorize/index.ts index b71e2ae0..570114f5 100644 --- a/packages/core/src/paths/Restapi/Oauth/Authorize/index.ts +++ b/packages/core/src/paths/Restapi/Oauth/Authorize/index.ts @@ -1,6 +1,10 @@ -import type AuthorizeRequest from '../../../../definitions/AuthorizeRequest'; -import type AuthorizeParameters from '../../../../definitions/AuthorizeParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../types'; +import type AuthorizeRequest from "../../../../definitions/AuthorizeRequest"; +import type AuthorizeParameters from "../../../../definitions/AuthorizeParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../types"; class Index { public rc: RingCentralInterface; @@ -26,8 +30,15 @@ class Index { * Endpoint: /restapi/oauth/authorize * Rate Limit Group: Auth */ - public async get(queryParams?: AuthorizeParameters, restRequestConfig?: RestRequestConfig): Promise { - const r = await this.rc.get(this.path(), queryParams, restRequestConfig); + public async get( + queryParams?: AuthorizeParameters, + restRequestConfig?: RestRequestConfig, + ): Promise { + const r = await this.rc.get( + this.path(), + queryParams, + restRequestConfig, + ); return r.data; } @@ -44,8 +55,16 @@ class Index { * Endpoint: /restapi/oauth/authorize * Rate Limit Group: Auth */ - public async post(authorizeRequest: AuthorizeRequest, restRequestConfig?: RestRequestConfig): Promise { - const r = await this.rc.post(this.path(), authorizeRequest, undefined, restRequestConfig); + public async post( + authorizeRequest: AuthorizeRequest, + restRequestConfig?: RestRequestConfig, + ): Promise { + const r = await this.rc.post( + this.path(), + authorizeRequest, + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Oauth/Revoke/index.ts b/packages/core/src/paths/Restapi/Oauth/Revoke/index.ts index 60b56e6a..be32f1e9 100644 --- a/packages/core/src/paths/Restapi/Oauth/Revoke/index.ts +++ b/packages/core/src/paths/Restapi/Oauth/Revoke/index.ts @@ -1,6 +1,10 @@ -import type RevokeTokenParameters from '../../../../definitions/RevokeTokenParameters'; -import type RevokeTokenRequest from '../../../../definitions/RevokeTokenRequest'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../types'; +import type RevokeTokenParameters from "../../../../definitions/RevokeTokenParameters"; +import type RevokeTokenRequest from "../../../../definitions/RevokeTokenRequest"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../types"; class Index { public rc: RingCentralInterface; @@ -32,7 +36,12 @@ class Index { queryParams?: RevokeTokenParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.post(this.path(), revokeTokenRequest, queryParams, restRequestConfig); + const r = await this.rc.post( + this.path(), + revokeTokenRequest, + queryParams, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Oauth/Token/index.ts b/packages/core/src/paths/Restapi/Oauth/Token/index.ts index d163dc7b..8fce7b00 100644 --- a/packages/core/src/paths/Restapi/Oauth/Token/index.ts +++ b/packages/core/src/paths/Restapi/Oauth/Token/index.ts @@ -1,6 +1,10 @@ -import type TokenInfo from '../../../../definitions/TokenInfo'; -import type GetTokenRequest from '../../../../definitions/GetTokenRequest'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../types'; +import type TokenInfo from "../../../../definitions/TokenInfo"; +import type GetTokenRequest from "../../../../definitions/GetTokenRequest"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../types"; class Index { public rc: RingCentralInterface; @@ -27,8 +31,16 @@ class Index { * Endpoint: /restapi/oauth/token * Rate Limit Group: Auth */ - public async post(getTokenRequest: GetTokenRequest, restRequestConfig?: RestRequestConfig): Promise { - const r = await this.rc.post(this.path(), getTokenRequest, undefined, restRequestConfig); + public async post( + getTokenRequest: GetTokenRequest, + restRequestConfig?: RestRequestConfig, + ): Promise { + const r = await this.rc.post( + this.path(), + getTokenRequest, + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Oauth/index.ts b/packages/core/src/paths/Restapi/Oauth/index.ts index 98f2eccd..9ad53ffc 100644 --- a/packages/core/src/paths/Restapi/Oauth/index.ts +++ b/packages/core/src/paths/Restapi/Oauth/index.ts @@ -1,7 +1,7 @@ -import Authorize from './Authorize'; -import Revoke from './Revoke'; -import Token from './Token'; -import type { RingCentralInterface, ParentInterface } from '../../../types'; +import Authorize from "./Authorize"; +import Revoke from "./Revoke"; +import Token from "./Token"; +import type { ParentInterface, RingCentralInterface } from "../../../types"; class Index { public rc: RingCentralInterface; diff --git a/packages/core/src/paths/Restapi/Subscription/Renew/index.ts b/packages/core/src/paths/Restapi/Subscription/Renew/index.ts index 88ae0fa6..34d38e64 100644 --- a/packages/core/src/paths/Restapi/Subscription/Renew/index.ts +++ b/packages/core/src/paths/Restapi/Subscription/Renew/index.ts @@ -1,5 +1,9 @@ -import type SubscriptionInfo from '../../../../definitions/SubscriptionInfo'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../types'; +import type SubscriptionInfo from "../../../../definitions/SubscriptionInfo"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../types"; class Index { public rc: RingCentralInterface; @@ -21,8 +25,15 @@ class Index { * Endpoint: /restapi/{apiVersion}/subscription/{subscriptionId}/renew * Rate Limit Group: Light */ - public async post(restRequestConfig?: RestRequestConfig): Promise { - const r = await this.rc.post(this.path(), {}, undefined, restRequestConfig); + public async post( + restRequestConfig?: RestRequestConfig, + ): Promise { + const r = await this.rc.post( + this.path(), + {}, + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/Subscription/index.ts b/packages/core/src/paths/Restapi/Subscription/index.ts index 3e78825f..616503dc 100644 --- a/packages/core/src/paths/Restapi/Subscription/index.ts +++ b/packages/core/src/paths/Restapi/Subscription/index.ts @@ -1,16 +1,23 @@ -import Renew from './Renew'; -import type UpdateSubscriptionRequest from '../../../definitions/UpdateSubscriptionRequest'; -import type SubscriptionInfo from '../../../definitions/SubscriptionInfo'; -import type CreateSubscriptionRequest from '../../../definitions/CreateSubscriptionRequest'; -import type SubscriptionListResource from '../../../definitions/SubscriptionListResource'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../types'; +import Renew from "./Renew"; +import type UpdateSubscriptionRequest from "../../../definitions/UpdateSubscriptionRequest"; +import type SubscriptionInfo from "../../../definitions/SubscriptionInfo"; +import type CreateSubscriptionRequest from "../../../definitions/CreateSubscriptionRequest"; +import type SubscriptionListResource from "../../../definitions/SubscriptionListResource"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../types"; class Index { public rc: RingCentralInterface; public _parent: ParentInterface; public subscriptionId: string | null; - public constructor(_parent: ParentInterface, subscriptionId: string | null = null) { + public constructor( + _parent: ParentInterface, + subscriptionId: string | null = null, + ) { this._parent = _parent; this.rc = _parent.rc; this.subscriptionId = subscriptionId; @@ -28,8 +35,14 @@ class Index { * Endpoint: /restapi/{apiVersion}/subscription * Rate Limit Group: Light */ - public async list(restRequestConfig?: RestRequestConfig): Promise { - const r = await this.rc.get(this.path(false), undefined, restRequestConfig); + public async list( + restRequestConfig?: RestRequestConfig, + ): Promise { + const r = await this.rc.get( + this.path(false), + undefined, + restRequestConfig, + ); return r.data; } @@ -91,11 +104,17 @@ class Index { * Endpoint: /restapi/{apiVersion}/subscription/{subscriptionId} * Rate Limit Group: Light */ - public async get(restRequestConfig?: RestRequestConfig): Promise { + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { if (this.subscriptionId === null) { - throw new Error('subscriptionId must be specified.'); + throw new Error("subscriptionId must be specified."); } - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } @@ -124,9 +143,14 @@ class Index { restRequestConfig?: RestRequestConfig, ): Promise { if (this.subscriptionId === null) { - throw new Error('subscriptionId must be specified.'); + throw new Error("subscriptionId must be specified."); } - const r = await this.rc.put(this.path(), updateSubscriptionRequest, undefined, restRequestConfig); + const r = await this.rc.put( + this.path(), + updateSubscriptionRequest, + undefined, + restRequestConfig, + ); return r.data; } @@ -138,9 +162,14 @@ class Index { */ public async delete(restRequestConfig?: RestRequestConfig): Promise { if (this.subscriptionId === null) { - throw new Error('subscriptionId must be specified.'); + throw new Error("subscriptionId must be specified."); } - const r = await this.rc.delete(this.path(), {}, undefined, restRequestConfig); + const r = await this.rc.delete( + this.path(), + {}, + undefined, + restRequestConfig, + ); return r.data; } diff --git a/packages/core/src/paths/Restapi/V2/Accounts/BatchProvisioning/Users/index.ts b/packages/core/src/paths/Restapi/V2/Accounts/BatchProvisioning/Users/index.ts index d6cecd8d..c104e50d 100644 --- a/packages/core/src/paths/Restapi/V2/Accounts/BatchProvisioning/Users/index.ts +++ b/packages/core/src/paths/Restapi/V2/Accounts/BatchProvisioning/Users/index.ts @@ -1,6 +1,10 @@ -import type BatchProvisionUsersResponse from '../../../../../../definitions/BatchProvisionUsersResponse'; -import type BatchProvisionUsersRequest from '../../../../../../definitions/BatchProvisionUsersRequest'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../../types'; +import type BatchProvisionUsersResponse from "../../../../../../definitions/BatchProvisionUsersResponse"; +import type BatchProvisionUsersRequest from "../../../../../../definitions/BatchProvisionUsersRequest"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../../types"; class Index { public rc: RingCentralInterface; diff --git a/packages/core/src/paths/Restapi/V2/Accounts/BatchProvisioning/index.ts b/packages/core/src/paths/Restapi/V2/Accounts/BatchProvisioning/index.ts index 6df2a11d..cb4d6d77 100644 --- a/packages/core/src/paths/Restapi/V2/Accounts/BatchProvisioning/index.ts +++ b/packages/core/src/paths/Restapi/V2/Accounts/BatchProvisioning/index.ts @@ -1,5 +1,8 @@ -import Users from './Users'; -import type { RingCentralInterface, ParentInterface } from '../../../../../types'; +import Users from "./Users"; +import type { + ParentInterface, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; diff --git a/packages/core/src/paths/Restapi/V2/Accounts/CostCenters/index.ts b/packages/core/src/paths/Restapi/V2/Accounts/CostCenters/index.ts index 6556cc7e..c0eff9a1 100644 --- a/packages/core/src/paths/Restapi/V2/Accounts/CostCenters/index.ts +++ b/packages/core/src/paths/Restapi/V2/Accounts/CostCenters/index.ts @@ -1,5 +1,9 @@ -import type CostCenterList from '../../../../../definitions/CostCenterList'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type CostCenterList from "../../../../../definitions/CostCenterList"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -20,8 +24,14 @@ class Index { * App Permission: ReadAccounts * User Permission: CostCenterManagement */ - public async get(restRequestConfig?: RestRequestConfig): Promise { - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/V2/Accounts/DeviceInventory/index.ts b/packages/core/src/paths/Restapi/V2/Accounts/DeviceInventory/index.ts index ea4e2836..fc87fd15 100644 --- a/packages/core/src/paths/Restapi/V2/Accounts/DeviceInventory/index.ts +++ b/packages/core/src/paths/Restapi/V2/Accounts/DeviceInventory/index.ts @@ -1,8 +1,12 @@ -import type DeleteDeviceFromInventoryResponse from '../../../../../definitions/DeleteDeviceFromInventoryResponse'; -import type DeleteDeviceFromInventoryRequest from '../../../../../definitions/DeleteDeviceFromInventoryRequest'; -import type AddDeviceToInventoryResponse from '../../../../../definitions/AddDeviceToInventoryResponse'; -import type AddDeviceToInventoryRequest from '../../../../../definitions/AddDeviceToInventoryRequest'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type DeleteDeviceFromInventoryResponse from "../../../../../definitions/DeleteDeviceFromInventoryResponse"; +import type DeleteDeviceFromInventoryRequest from "../../../../../definitions/DeleteDeviceFromInventoryRequest"; +import type AddDeviceToInventoryResponse from "../../../../../definitions/AddDeviceToInventoryResponse"; +import type AddDeviceToInventoryRequest from "../../../../../definitions/AddDeviceToInventoryRequest"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; diff --git a/packages/core/src/paths/Restapi/V2/Accounts/Devices/BulkAdd/index.ts b/packages/core/src/paths/Restapi/V2/Accounts/Devices/BulkAdd/index.ts index a2ab95b3..7e94300a 100644 --- a/packages/core/src/paths/Restapi/V2/Accounts/Devices/BulkAdd/index.ts +++ b/packages/core/src/paths/Restapi/V2/Accounts/Devices/BulkAdd/index.ts @@ -1,6 +1,10 @@ -import type BulkAddDevicesResponse from '../../../../../../definitions/BulkAddDevicesResponse'; -import type BulkAddDevicesRequest from '../../../../../../definitions/BulkAddDevicesRequest'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../../types'; +import type BulkAddDevicesResponse from "../../../../../../definitions/BulkAddDevicesResponse"; +import type BulkAddDevicesRequest from "../../../../../../definitions/BulkAddDevicesRequest"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../../types"; class Index { public rc: RingCentralInterface; diff --git a/packages/core/src/paths/Restapi/V2/Accounts/Devices/index.ts b/packages/core/src/paths/Restapi/V2/Accounts/Devices/index.ts index 43c5d4d3..dc5143c4 100644 --- a/packages/core/src/paths/Restapi/V2/Accounts/Devices/index.ts +++ b/packages/core/src/paths/Restapi/V2/Accounts/Devices/index.ts @@ -1,7 +1,11 @@ -import BulkAdd from './BulkAdd'; -import type RemoveLineResponse from '../../../../../definitions/RemoveLineResponse'; -import type RemoveLineRequest from '../../../../../definitions/RemoveLineRequest'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import BulkAdd from "./BulkAdd"; +import type RemoveLineResponse from "../../../../../definitions/RemoveLineResponse"; +import type RemoveLineRequest from "../../../../../definitions/RemoveLineRequest"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -38,9 +42,14 @@ class Index { restRequestConfig?: RestRequestConfig, ): Promise { if (this.deviceId === null) { - throw new Error('deviceId must be specified.'); + throw new Error("deviceId must be specified."); } - const r = await this.rc.delete(this.path(), removeLineRequest, undefined, restRequestConfig); + const r = await this.rc.delete( + this.path(), + removeLineRequest, + undefined, + restRequestConfig, + ); return r.data; } diff --git a/packages/core/src/paths/Restapi/V2/Accounts/Extensions/CallFlipNumbers/index.ts b/packages/core/src/paths/Restapi/V2/Accounts/Extensions/CallFlipNumbers/index.ts index f328f949..c1f72ddd 100644 --- a/packages/core/src/paths/Restapi/V2/Accounts/Extensions/CallFlipNumbers/index.ts +++ b/packages/core/src/paths/Restapi/V2/Accounts/Extensions/CallFlipNumbers/index.ts @@ -1,5 +1,9 @@ -import type CallFlipNumberListResource from '../../../../../../definitions/CallFlipNumberListResource'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../../types'; +import type CallFlipNumberListResource from "../../../../../../definitions/CallFlipNumberListResource"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../../types"; class Index { public rc: RingCentralInterface; @@ -29,8 +33,14 @@ class Index { * Rate Limit Group: Light * App Permission: ReadAccounts */ - public async get(restRequestConfig?: RestRequestConfig): Promise { - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } diff --git a/packages/core/src/paths/Restapi/V2/Accounts/Extensions/Devices/Replace/index.ts b/packages/core/src/paths/Restapi/V2/Accounts/Extensions/Devices/Replace/index.ts index 0011abc5..d8a5d61d 100644 --- a/packages/core/src/paths/Restapi/V2/Accounts/Extensions/Devices/Replace/index.ts +++ b/packages/core/src/paths/Restapi/V2/Accounts/Extensions/Devices/Replace/index.ts @@ -1,5 +1,9 @@ -import type SwapDeviceRequest from '../../../../../../../definitions/SwapDeviceRequest'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../../../types'; +import type SwapDeviceRequest from "../../../../../../../definitions/SwapDeviceRequest"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../../../types"; class Index { public rc: RingCentralInterface; @@ -33,8 +37,16 @@ class Index { * App Permission: EditAccounts * User Permission: EditUserDevices */ - public async post(swapDeviceRequest: SwapDeviceRequest, restRequestConfig?: RestRequestConfig): Promise { - const r = await this.rc.post(this.path(), swapDeviceRequest, undefined, restRequestConfig); + public async post( + swapDeviceRequest: SwapDeviceRequest, + restRequestConfig?: RestRequestConfig, + ): Promise { + const r = await this.rc.post( + this.path(), + swapDeviceRequest, + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/V2/Accounts/Extensions/Devices/index.ts b/packages/core/src/paths/Restapi/V2/Accounts/Extensions/Devices/index.ts index d46bd97c..a21842d2 100644 --- a/packages/core/src/paths/Restapi/V2/Accounts/Extensions/Devices/index.ts +++ b/packages/core/src/paths/Restapi/V2/Accounts/Extensions/Devices/index.ts @@ -1,5 +1,8 @@ -import Replace from './Replace'; -import type { RingCentralInterface, ParentInterface } from '../../../../../../types'; +import Replace from "./Replace"; +import type { + ParentInterface, + RingCentralInterface, +} from "../../../../../../types"; class Index { public rc: RingCentralInterface; diff --git a/packages/core/src/paths/Restapi/V2/Accounts/Extensions/index.ts b/packages/core/src/paths/Restapi/V2/Accounts/Extensions/index.ts index 039c9b91..465a9e34 100644 --- a/packages/core/src/paths/Restapi/V2/Accounts/Extensions/index.ts +++ b/packages/core/src/paths/Restapi/V2/Accounts/Extensions/index.ts @@ -1,8 +1,12 @@ -import CallFlipNumbers from './CallFlipNumbers'; -import Devices from './Devices'; -import type BulkDeleteUsersResponse from '../../../../../definitions/BulkDeleteUsersResponse'; -import type BulkDeleteUsersRequest from '../../../../../definitions/BulkDeleteUsersRequest'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import CallFlipNumbers from "./CallFlipNumbers"; +import Devices from "./Devices"; +import type BulkDeleteUsersResponse from "../../../../../definitions/BulkDeleteUsersResponse"; +import type BulkDeleteUsersRequest from "../../../../../definitions/BulkDeleteUsersRequest"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; diff --git a/packages/core/src/paths/Restapi/V2/Accounts/PhoneNumbers/BulkAdd/index.ts b/packages/core/src/paths/Restapi/V2/Accounts/PhoneNumbers/BulkAdd/index.ts index 3d99033d..925f1daf 100644 --- a/packages/core/src/paths/Restapi/V2/Accounts/PhoneNumbers/BulkAdd/index.ts +++ b/packages/core/src/paths/Restapi/V2/Accounts/PhoneNumbers/BulkAdd/index.ts @@ -1,7 +1,11 @@ -import type GetBulkAddTaskResultsV2Response from '../../../../../../definitions/GetBulkAddTaskResultsV2Response'; -import type AddPhoneNumbersResponse from '../../../../../../definitions/AddPhoneNumbersResponse'; -import type AddPhoneNumbersRequest from '../../../../../../definitions/AddPhoneNumbersRequest'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../../types'; +import type GetBulkAddTaskResultsV2Response from "../../../../../../definitions/GetBulkAddTaskResultsV2Response"; +import type AddPhoneNumbersResponse from "../../../../../../definitions/AddPhoneNumbersResponse"; +import type AddPhoneNumbersRequest from "../../../../../../definitions/AddPhoneNumbersRequest"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../../types"; class Index { public rc: RingCentralInterface; @@ -51,11 +55,17 @@ class Index { * App Permission: EditAccounts * User Permission: EditCompanyPhoneNumbers */ - public async get(restRequestConfig?: RestRequestConfig): Promise { + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { if (this.taskId === null) { - throw new Error('taskId must be specified.'); + throw new Error("taskId must be specified."); } - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/V2/Accounts/PhoneNumbers/Replace/index.ts b/packages/core/src/paths/Restapi/V2/Accounts/PhoneNumbers/Replace/index.ts index e407212c..751dec00 100644 --- a/packages/core/src/paths/Restapi/V2/Accounts/PhoneNumbers/Replace/index.ts +++ b/packages/core/src/paths/Restapi/V2/Accounts/PhoneNumbers/Replace/index.ts @@ -1,6 +1,10 @@ -import type AccountPhoneNumberInfo from '../../../../../../definitions/AccountPhoneNumberInfo'; -import type ReplacePhoneNumberRequest from '../../../../../../definitions/ReplacePhoneNumberRequest'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../../types'; +import type AccountPhoneNumberInfo from "../../../../../../definitions/AccountPhoneNumberInfo"; +import type ReplacePhoneNumberRequest from "../../../../../../definitions/ReplacePhoneNumberRequest"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../../types"; class Index { public rc: RingCentralInterface; diff --git a/packages/core/src/paths/Restapi/V2/Accounts/PhoneNumbers/index.ts b/packages/core/src/paths/Restapi/V2/Accounts/PhoneNumbers/index.ts index 7465b2ac..4d42a726 100644 --- a/packages/core/src/paths/Restapi/V2/Accounts/PhoneNumbers/index.ts +++ b/packages/core/src/paths/Restapi/V2/Accounts/PhoneNumbers/index.ts @@ -1,19 +1,26 @@ -import BulkAdd from './BulkAdd'; -import Replace from './Replace'; -import type AccountPhoneNumberInfo from '../../../../../definitions/AccountPhoneNumberInfo'; -import type AssignPhoneNumberRequest from '../../../../../definitions/AssignPhoneNumberRequest'; -import type DeletePhoneNumbersResponse from '../../../../../definitions/DeletePhoneNumbersResponse'; -import type DeletePhoneNumbersRequest from '../../../../../definitions/DeletePhoneNumbersRequest'; -import type AccountPhoneNumberList from '../../../../../definitions/AccountPhoneNumberList'; -import type ListAccountPhoneNumbersV2Parameters from '../../../../../definitions/ListAccountPhoneNumbersV2Parameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import BulkAdd from "./BulkAdd"; +import Replace from "./Replace"; +import type AccountPhoneNumberInfo from "../../../../../definitions/AccountPhoneNumberInfo"; +import type AssignPhoneNumberRequest from "../../../../../definitions/AssignPhoneNumberRequest"; +import type DeletePhoneNumbersResponse from "../../../../../definitions/DeletePhoneNumbersResponse"; +import type DeletePhoneNumbersRequest from "../../../../../definitions/DeletePhoneNumbersRequest"; +import type AccountPhoneNumberList from "../../../../../definitions/AccountPhoneNumberList"; +import type ListAccountPhoneNumbersV2Parameters from "../../../../../definitions/ListAccountPhoneNumbersV2Parameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; public _parent: ParentInterface; public phoneNumberId: string | null; - public constructor(_parent: ParentInterface, phoneNumberId: string | null = null) { + public constructor( + _parent: ParentInterface, + phoneNumberId: string | null = null, + ) { this._parent = _parent; this.rc = _parent.rc; this.phoneNumberId = phoneNumberId; @@ -39,7 +46,11 @@ class Index { queryParams?: ListAccountPhoneNumbersV2Parameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(false), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(false), + queryParams, + restRequestConfig, + ); return r.data; } @@ -95,7 +106,7 @@ class Index { restRequestConfig?: RestRequestConfig, ): Promise { if (this.phoneNumberId === null) { - throw new Error('phoneNumberId must be specified.'); + throw new Error("phoneNumberId must be specified."); } const r = await this.rc.patch( this.path(), diff --git a/packages/core/src/paths/Restapi/V2/Accounts/SendActivationEmail/index.ts b/packages/core/src/paths/Restapi/V2/Accounts/SendActivationEmail/index.ts index 2696cff2..625fac66 100644 --- a/packages/core/src/paths/Restapi/V2/Accounts/SendActivationEmail/index.ts +++ b/packages/core/src/paths/Restapi/V2/Accounts/SendActivationEmail/index.ts @@ -1,4 +1,8 @@ -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -20,7 +24,12 @@ class Index { * User Permission: AccountAdministration */ public async post(restRequestConfig?: RestRequestConfig): Promise { - const r = await this.rc.post(this.path(), {}, undefined, restRequestConfig); + const r = await this.rc.post( + this.path(), + {}, + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/V2/Accounts/SendWelcomeEmail/index.ts b/packages/core/src/paths/Restapi/V2/Accounts/SendWelcomeEmail/index.ts index dcc8ac15..3307dd4b 100644 --- a/packages/core/src/paths/Restapi/V2/Accounts/SendWelcomeEmail/index.ts +++ b/packages/core/src/paths/Restapi/V2/Accounts/SendWelcomeEmail/index.ts @@ -1,5 +1,9 @@ -import type SendWelcomeEmailV2Request from '../../../../../definitions/SendWelcomeEmailV2Request'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type SendWelcomeEmailV2Request from "../../../../../definitions/SendWelcomeEmailV2Request"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -24,7 +28,12 @@ class Index { sendWelcomeEmailV2Request: SendWelcomeEmailV2Request, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.post(this.path(), sendWelcomeEmailV2Request, undefined, restRequestConfig); + const r = await this.rc.post( + this.path(), + sendWelcomeEmailV2Request, + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Restapi/V2/Accounts/index.ts b/packages/core/src/paths/Restapi/V2/Accounts/index.ts index ca3a9512..1d368188 100644 --- a/packages/core/src/paths/Restapi/V2/Accounts/index.ts +++ b/packages/core/src/paths/Restapi/V2/Accounts/index.ts @@ -1,20 +1,24 @@ -import SendActivationEmail from './SendActivationEmail'; -import SendWelcomeEmail from './SendWelcomeEmail'; -import BatchProvisioning from './BatchProvisioning'; -import DeviceInventory from './DeviceInventory'; -import PhoneNumbers from './PhoneNumbers'; -import CostCenters from './CostCenters'; -import Extensions from './Extensions'; -import Devices from './Devices'; -import type AccountInfo from '../../../../definitions/AccountInfo'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../types'; +import SendActivationEmail from "./SendActivationEmail"; +import SendWelcomeEmail from "./SendWelcomeEmail"; +import BatchProvisioning from "./BatchProvisioning"; +import DeviceInventory from "./DeviceInventory"; +import PhoneNumbers from "./PhoneNumbers"; +import CostCenters from "./CostCenters"; +import Extensions from "./Extensions"; +import Devices from "./Devices"; +import type AccountInfo from "../../../../definitions/AccountInfo"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../types"; class Index { public rc: RingCentralInterface; public _parent: ParentInterface; public accountId: string | null; - public constructor(_parent: ParentInterface, accountId: string | null = '~') { + public constructor(_parent: ParentInterface, accountId: string | null = "~") { this._parent = _parent; this.rc = _parent.rc; this.accountId = accountId; @@ -33,11 +37,17 @@ class Index { * App Permission: ReadAccounts * User Permission: ReadCompanyInfo */ - public async get(restRequestConfig?: RestRequestConfig): Promise { + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { if (this.accountId === null) { - throw new Error('accountId must be specified.'); + throw new Error("accountId must be specified."); } - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } diff --git a/packages/core/src/paths/Restapi/V2/index.ts b/packages/core/src/paths/Restapi/V2/index.ts index a5dcc61a..233858e1 100644 --- a/packages/core/src/paths/Restapi/V2/index.ts +++ b/packages/core/src/paths/Restapi/V2/index.ts @@ -1,5 +1,5 @@ -import Accounts from './Accounts'; -import type { RingCentralInterface, ParentInterface } from '../../../types'; +import Accounts from "./Accounts"; +import type { ParentInterface, RingCentralInterface } from "../../../types"; class Index { public rc: RingCentralInterface; @@ -13,7 +13,7 @@ class Index { return `${this._parent.path(false)}/v2`; } - public accounts(accountId: string | null = '~'): Accounts { + public accounts(accountId: string | null = "~"): Accounts { return new Accounts(this, accountId); } } diff --git a/packages/core/src/paths/Restapi/index.ts b/packages/core/src/paths/Restapi/index.ts index 9ab7935c..2c013e01 100644 --- a/packages/core/src/paths/Restapi/index.ts +++ b/packages/core/src/paths/Restapi/index.ts @@ -1,19 +1,22 @@ -import NumberParser from './NumberParser'; -import Subscription from './Subscription'; -import ClientInfo from './ClientInfo'; -import Dictionary from './Dictionary'; -import Account from './Account'; -import Oauth from './Oauth'; -import V2 from './V2'; -import type ApiVersionInfo from '../../definitions/ApiVersionInfo'; -import type ApiVersionsList from '../../definitions/ApiVersionsList'; -import type { RingCentralInterface, RestRequestConfig } from '../../types'; +import NumberParser from "./NumberParser"; +import Subscription from "./Subscription"; +import ClientInfo from "./ClientInfo"; +import Dictionary from "./Dictionary"; +import Account from "./Account"; +import Oauth from "./Oauth"; +import V2 from "./V2"; +import type ApiVersionInfo from "../../definitions/ApiVersionInfo"; +import type ApiVersionsList from "../../definitions/ApiVersionsList"; +import type { RestRequestConfig, RingCentralInterface } from "../../types"; class Index { public rc: RingCentralInterface; public apiVersion: string | null; - public constructor(rc: RingCentralInterface, apiVersion: string | null = 'v1.0') { + public constructor( + rc: RingCentralInterface, + apiVersion: string | null = "v1.0", + ) { this.rc = rc; this.apiVersion = apiVersion; } @@ -21,7 +24,7 @@ class Index { if (withParameter && this.apiVersion !== null) { return `/restapi/${this.apiVersion}`; } - return '/restapi'; + return "/restapi"; } /** * Returns current API version(s) and server info. @@ -29,8 +32,14 @@ class Index { * Endpoint: /restapi * Rate Limit Group: NoThrottling */ - public async list(restRequestConfig?: RestRequestConfig): Promise { - const r = await this.rc.get(this.path(false), undefined, restRequestConfig); + public async list( + restRequestConfig?: RestRequestConfig, + ): Promise { + const r = await this.rc.get( + this.path(false), + undefined, + restRequestConfig, + ); return r.data; } @@ -40,11 +49,17 @@ class Index { * Endpoint: /restapi/{apiVersion} * Rate Limit Group: NoThrottling */ - public async get(restRequestConfig?: RestRequestConfig): Promise { + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { if (this.apiVersion === null) { - throw new Error('apiVersion must be specified.'); + throw new Error("apiVersion must be specified."); } - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } @@ -56,7 +71,7 @@ class Index { return new Oauth(this); } - public account(accountId: string | null = '~'): Account { + public account(accountId: string | null = "~"): Account { return new Account(this, accountId); } diff --git a/packages/core/src/paths/Scim/ResourceTypes/index.ts b/packages/core/src/paths/Scim/ResourceTypes/index.ts index b816d1ae..4ba402a8 100644 --- a/packages/core/src/paths/Scim/ResourceTypes/index.ts +++ b/packages/core/src/paths/Scim/ResourceTypes/index.ts @@ -1,6 +1,10 @@ -import type ScimResourceTypeResponse from '../../../definitions/ScimResourceTypeResponse'; -import type ScimResourceTypeSearchResponse from '../../../definitions/ScimResourceTypeSearchResponse'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../types'; +import type ScimResourceTypeResponse from "../../../definitions/ScimResourceTypeResponse"; +import type ScimResourceTypeSearchResponse from "../../../definitions/ScimResourceTypeSearchResponse"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../types"; class Index { public rc: RingCentralInterface; @@ -25,8 +29,14 @@ class Index { * Rate Limit Group: Light * App Permission: ReadAccounts */ - public async list(restRequestConfig?: RestRequestConfig): Promise { - const r = await this.rc.get(this.path(false), undefined, restRequestConfig); + public async list( + restRequestConfig?: RestRequestConfig, + ): Promise { + const r = await this.rc.get( + this.path(false), + undefined, + restRequestConfig, + ); return r.data; } @@ -37,11 +47,17 @@ class Index { * Rate Limit Group: Light * App Permission: ReadAccounts */ - public async get(restRequestConfig?: RestRequestConfig): Promise { + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { if (this.type === null) { - throw new Error('type must be specified.'); + throw new Error("type must be specified."); } - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Scim/Schemas/index.ts b/packages/core/src/paths/Scim/Schemas/index.ts index b636b23b..792ad317 100644 --- a/packages/core/src/paths/Scim/Schemas/index.ts +++ b/packages/core/src/paths/Scim/Schemas/index.ts @@ -1,6 +1,10 @@ -import type ScimSchemaResponse from '../../../definitions/ScimSchemaResponse'; -import type ScimSchemaSearchResponse from '../../../definitions/ScimSchemaSearchResponse'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../types'; +import type ScimSchemaResponse from "../../../definitions/ScimSchemaResponse"; +import type ScimSchemaSearchResponse from "../../../definitions/ScimSchemaSearchResponse"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../types"; class Index { public rc: RingCentralInterface; @@ -25,8 +29,14 @@ class Index { * Rate Limit Group: Light * App Permission: ReadAccounts */ - public async list(restRequestConfig?: RestRequestConfig): Promise { - const r = await this.rc.get(this.path(false), undefined, restRequestConfig); + public async list( + restRequestConfig?: RestRequestConfig, + ): Promise { + const r = await this.rc.get( + this.path(false), + undefined, + restRequestConfig, + ); return r.data; } @@ -37,11 +47,17 @@ class Index { * Rate Limit Group: Light * App Permission: ReadAccounts */ - public async get(restRequestConfig?: RestRequestConfig): Promise { + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { if (this.uri === null) { - throw new Error('uri must be specified.'); + throw new Error("uri must be specified."); } - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Scim/ServiceProviderConfig/index.ts b/packages/core/src/paths/Scim/ServiceProviderConfig/index.ts index 040dd84a..bc312ee1 100644 --- a/packages/core/src/paths/Scim/ServiceProviderConfig/index.ts +++ b/packages/core/src/paths/Scim/ServiceProviderConfig/index.ts @@ -1,5 +1,9 @@ -import type ScimProviderConfig from '../../../definitions/ScimProviderConfig'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../types'; +import type ScimProviderConfig from "../../../definitions/ScimProviderConfig"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../types"; class Index { public rc: RingCentralInterface; @@ -19,8 +23,14 @@ class Index { * Rate Limit Group: Light * App Permission: ReadAccounts */ - public async get(restRequestConfig?: RestRequestConfig): Promise { - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Scim/Users/DotSearch/index.ts b/packages/core/src/paths/Scim/Users/DotSearch/index.ts index 316c80e5..15590426 100644 --- a/packages/core/src/paths/Scim/Users/DotSearch/index.ts +++ b/packages/core/src/paths/Scim/Users/DotSearch/index.ts @@ -1,6 +1,10 @@ -import type ScimUserSearchResponse from '../../../../definitions/ScimUserSearchResponse'; -import type ScimSearchRequest from '../../../../definitions/ScimSearchRequest'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../types'; +import type ScimUserSearchResponse from "../../../../definitions/ScimUserSearchResponse"; +import type ScimSearchRequest from "../../../../definitions/ScimSearchRequest"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../types"; class Index { public rc: RingCentralInterface; @@ -24,7 +28,12 @@ class Index { scimSearchRequest: ScimSearchRequest, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.post(this.path(), scimSearchRequest, undefined, restRequestConfig); + const r = await this.rc.post( + this.path(), + scimSearchRequest, + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Scim/Users/index.ts b/packages/core/src/paths/Scim/Users/index.ts index 36e836fb..e529c90f 100644 --- a/packages/core/src/paths/Scim/Users/index.ts +++ b/packages/core/src/paths/Scim/Users/index.ts @@ -1,17 +1,24 @@ -import DotSearch from './DotSearch'; -import type ScimUserPatch from '../../../definitions/ScimUserPatch'; -import type ScimUserResponse from '../../../definitions/ScimUserResponse'; -import type ScimUser from '../../../definitions/ScimUser'; -import type ScimUserSearchResponse from '../../../definitions/ScimUserSearchResponse'; -import type ScimSearchViaGet2Parameters from '../../../definitions/ScimSearchViaGet2Parameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../types'; +import DotSearch from "./DotSearch"; +import type ScimUserPatch from "../../../definitions/ScimUserPatch"; +import type ScimUserResponse from "../../../definitions/ScimUserResponse"; +import type ScimUser from "../../../definitions/ScimUser"; +import type ScimUserSearchResponse from "../../../definitions/ScimUserSearchResponse"; +import type ScimSearchViaGet2Parameters from "../../../definitions/ScimSearchViaGet2Parameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../types"; class Index { public rc: RingCentralInterface; public _parent: ParentInterface; public scimUserId: string | null; - public constructor(_parent: ParentInterface, scimUserId: string | null = null) { + public constructor( + _parent: ParentInterface, + scimUserId: string | null = null, + ) { this._parent = _parent; this.rc = _parent.rc; this.scimUserId = scimUserId; @@ -33,7 +40,11 @@ class Index { queryParams?: ScimSearchViaGet2Parameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(false), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(false), + queryParams, + restRequestConfig, + ); return r.data; } @@ -44,8 +55,16 @@ class Index { * Rate Limit Group: Heavy * App Permission: EditAccounts */ - public async post(scimUser: ScimUser, restRequestConfig?: RestRequestConfig): Promise { - const r = await this.rc.post(this.path(false), scimUser, undefined, restRequestConfig); + public async post( + scimUser: ScimUser, + restRequestConfig?: RestRequestConfig, + ): Promise { + const r = await this.rc.post( + this.path(false), + scimUser, + undefined, + restRequestConfig, + ); return r.data; } @@ -56,11 +75,17 @@ class Index { * Rate Limit Group: Light * App Permission: ReadAccounts */ - public async get(restRequestConfig?: RestRequestConfig): Promise { + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { if (this.scimUserId === null) { - throw new Error('scimUserId must be specified.'); + throw new Error("scimUserId must be specified."); } - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } @@ -71,11 +96,19 @@ class Index { * Rate Limit Group: Heavy * App Permission: EditAccounts */ - public async put(scimUser: ScimUser, restRequestConfig?: RestRequestConfig): Promise { + public async put( + scimUser: ScimUser, + restRequestConfig?: RestRequestConfig, + ): Promise { if (this.scimUserId === null) { - throw new Error('scimUserId must be specified.'); + throw new Error("scimUserId must be specified."); } - const r = await this.rc.put(this.path(), scimUser, undefined, restRequestConfig); + const r = await this.rc.put( + this.path(), + scimUser, + undefined, + restRequestConfig, + ); return r.data; } @@ -88,9 +121,14 @@ class Index { */ public async delete(restRequestConfig?: RestRequestConfig): Promise { if (this.scimUserId === null) { - throw new Error('scimUserId must be specified.'); + throw new Error("scimUserId must be specified."); } - const r = await this.rc.delete(this.path(), {}, undefined, restRequestConfig); + const r = await this.rc.delete( + this.path(), + {}, + undefined, + restRequestConfig, + ); return r.data; } @@ -101,11 +139,19 @@ class Index { * Rate Limit Group: Heavy * App Permission: EditAccounts */ - public async patch(scimUserPatch: ScimUserPatch, restRequestConfig?: RestRequestConfig): Promise { + public async patch( + scimUserPatch: ScimUserPatch, + restRequestConfig?: RestRequestConfig, + ): Promise { if (this.scimUserId === null) { - throw new Error('scimUserId must be specified.'); + throw new Error("scimUserId must be specified."); } - const r = await this.rc.patch(this.path(), scimUserPatch, undefined, restRequestConfig); + const r = await this.rc.patch( + this.path(), + scimUserPatch, + undefined, + restRequestConfig, + ); return r.data; } diff --git a/packages/core/src/paths/Scim/index.ts b/packages/core/src/paths/Scim/index.ts index 983e4130..59d7d066 100644 --- a/packages/core/src/paths/Scim/index.ts +++ b/packages/core/src/paths/Scim/index.ts @@ -1,14 +1,14 @@ -import ServiceProviderConfig from './ServiceProviderConfig'; -import ResourceTypes from './ResourceTypes'; -import Schemas from './Schemas'; -import Users from './Users'; -import type { RingCentralInterface } from '../../types'; +import ServiceProviderConfig from "./ServiceProviderConfig"; +import ResourceTypes from "./ResourceTypes"; +import Schemas from "./Schemas"; +import Users from "./Users"; +import type { RingCentralInterface } from "../../types"; class Index { public rc: RingCentralInterface; public version: string | null; - public constructor(rc: RingCentralInterface, version: string | null = 'v2') { + public constructor(rc: RingCentralInterface, version: string | null = "v2") { this.rc = rc; this.version = version; } @@ -16,7 +16,7 @@ class Index { if (withParameter && this.version !== null) { return `/scim/${this.version}`; } - return '/scim'; + return "/scim"; } public users(scimUserId: string | null = null): Users { diff --git a/packages/core/src/paths/TeamMessaging/V1/AdaptiveCards/index.ts b/packages/core/src/paths/TeamMessaging/V1/AdaptiveCards/index.ts index c46a11ab..16468243 100644 --- a/packages/core/src/paths/TeamMessaging/V1/AdaptiveCards/index.ts +++ b/packages/core/src/paths/TeamMessaging/V1/AdaptiveCards/index.ts @@ -1,7 +1,11 @@ -import type AdaptiveCardShortInfo from '../../../../definitions/AdaptiveCardShortInfo'; -import type AdaptiveCardRequest from '../../../../definitions/AdaptiveCardRequest'; -import type AdaptiveCardInfo from '../../../../definitions/AdaptiveCardInfo'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../types'; +import type AdaptiveCardShortInfo from "../../../../definitions/AdaptiveCardShortInfo"; +import type AdaptiveCardRequest from "../../../../definitions/AdaptiveCardRequest"; +import type AdaptiveCardInfo from "../../../../definitions/AdaptiveCardInfo"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../types"; class Index { public rc: RingCentralInterface; @@ -26,11 +30,17 @@ class Index { * Rate Limit Group: Medium * App Permission: TeamMessaging */ - public async get(restRequestConfig?: RestRequestConfig): Promise { + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { if (this.cardId === null) { - throw new Error('cardId must be specified.'); + throw new Error("cardId must be specified."); } - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } @@ -46,9 +56,14 @@ class Index { restRequestConfig?: RestRequestConfig, ): Promise { if (this.cardId === null) { - throw new Error('cardId must be specified.'); + throw new Error("cardId must be specified."); } - const r = await this.rc.put(this.path(), adaptiveCardRequest, undefined, restRequestConfig); + const r = await this.rc.put( + this.path(), + adaptiveCardRequest, + undefined, + restRequestConfig, + ); return r.data; } @@ -61,9 +76,14 @@ class Index { */ public async delete(restRequestConfig?: RestRequestConfig): Promise { if (this.cardId === null) { - throw new Error('cardId must be specified.'); + throw new Error("cardId must be specified."); } - const r = await this.rc.delete(this.path(), {}, undefined, restRequestConfig); + const r = await this.rc.delete( + this.path(), + {}, + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/TeamMessaging/V1/Chats/AdaptiveCards/index.ts b/packages/core/src/paths/TeamMessaging/V1/Chats/AdaptiveCards/index.ts index ea3269e7..0e4aa98a 100644 --- a/packages/core/src/paths/TeamMessaging/V1/Chats/AdaptiveCards/index.ts +++ b/packages/core/src/paths/TeamMessaging/V1/Chats/AdaptiveCards/index.ts @@ -1,6 +1,10 @@ -import type AdaptiveCardShortInfo from '../../../../../definitions/AdaptiveCardShortInfo'; -import type AdaptiveCardRequest from '../../../../../definitions/AdaptiveCardRequest'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type AdaptiveCardShortInfo from "../../../../../definitions/AdaptiveCardShortInfo"; +import type AdaptiveCardRequest from "../../../../../definitions/AdaptiveCardRequest"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -24,7 +28,12 @@ class Index { adaptiveCardRequest: AdaptiveCardRequest, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.post(this.path(), adaptiveCardRequest, undefined, restRequestConfig); + const r = await this.rc.post( + this.path(), + adaptiveCardRequest, + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/TeamMessaging/V1/Chats/Favorite/index.ts b/packages/core/src/paths/TeamMessaging/V1/Chats/Favorite/index.ts index 15f345aa..e6e3b27b 100644 --- a/packages/core/src/paths/TeamMessaging/V1/Chats/Favorite/index.ts +++ b/packages/core/src/paths/TeamMessaging/V1/Chats/Favorite/index.ts @@ -1,4 +1,8 @@ -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -19,7 +23,12 @@ class Index { * App Permission: TeamMessaging */ public async post(restRequestConfig?: RestRequestConfig): Promise { - const r = await this.rc.post(this.path(), {}, undefined, restRequestConfig); + const r = await this.rc.post( + this.path(), + {}, + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/TeamMessaging/V1/Chats/Notes/index.ts b/packages/core/src/paths/TeamMessaging/V1/Chats/Notes/index.ts index 0ec67f28..eb7351e9 100644 --- a/packages/core/src/paths/TeamMessaging/V1/Chats/Notes/index.ts +++ b/packages/core/src/paths/TeamMessaging/V1/Chats/Notes/index.ts @@ -1,8 +1,12 @@ -import type TMNoteInfo from '../../../../../definitions/TMNoteInfo'; -import type TMCreateNoteRequest from '../../../../../definitions/TMCreateNoteRequest'; -import type TMNoteList from '../../../../../definitions/TMNoteList'; -import type ListChatNotesNewParameters from '../../../../../definitions/ListChatNotesNewParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type TMNoteInfo from "../../../../../definitions/TMNoteInfo"; +import type TMCreateNoteRequest from "../../../../../definitions/TMCreateNoteRequest"; +import type TMNoteList from "../../../../../definitions/TMNoteList"; +import type ListChatNotesNewParameters from "../../../../../definitions/ListChatNotesNewParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -26,7 +30,11 @@ class Index { queryParams?: ListChatNotesNewParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(), + queryParams, + restRequestConfig, + ); return r.data; } @@ -41,7 +49,12 @@ class Index { tMCreateNoteRequest: TMCreateNoteRequest, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.post(this.path(), tMCreateNoteRequest, undefined, restRequestConfig); + const r = await this.rc.post( + this.path(), + tMCreateNoteRequest, + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/TeamMessaging/V1/Chats/Posts/index.ts b/packages/core/src/paths/TeamMessaging/V1/Chats/Posts/index.ts index 016c79bb..44655045 100644 --- a/packages/core/src/paths/TeamMessaging/V1/Chats/Posts/index.ts +++ b/packages/core/src/paths/TeamMessaging/V1/Chats/Posts/index.ts @@ -1,9 +1,13 @@ -import type TMUpdatePostRequest from '../../../../../definitions/TMUpdatePostRequest'; -import type TMPostInfo from '../../../../../definitions/TMPostInfo'; -import type TMCreatePostRequest from '../../../../../definitions/TMCreatePostRequest'; -import type TMPostsList from '../../../../../definitions/TMPostsList'; -import type ReadGlipPostsNewParameters from '../../../../../definitions/ReadGlipPostsNewParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type TMUpdatePostRequest from "../../../../../definitions/TMUpdatePostRequest"; +import type TMPostInfo from "../../../../../definitions/TMPostInfo"; +import type TMCreatePostRequest from "../../../../../definitions/TMCreatePostRequest"; +import type TMPostsList from "../../../../../definitions/TMPostsList"; +import type ReadGlipPostsNewParameters from "../../../../../definitions/ReadGlipPostsNewParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -32,7 +36,11 @@ class Index { queryParams?: ReadGlipPostsNewParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(false), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(false), + queryParams, + restRequestConfig, + ); return r.data; } @@ -51,7 +59,12 @@ class Index { tMCreatePostRequest: TMCreatePostRequest, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.post(this.path(false), tMCreatePostRequest, undefined, restRequestConfig); + const r = await this.rc.post( + this.path(false), + tMCreatePostRequest, + undefined, + restRequestConfig, + ); return r.data; } @@ -64,9 +77,13 @@ class Index { */ public async get(restRequestConfig?: RestRequestConfig): Promise { if (this.postId === null) { - throw new Error('postId must be specified.'); + throw new Error("postId must be specified."); } - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } @@ -79,9 +96,14 @@ class Index { */ public async delete(restRequestConfig?: RestRequestConfig): Promise { if (this.postId === null) { - throw new Error('postId must be specified.'); + throw new Error("postId must be specified."); } - const r = await this.rc.delete(this.path(), {}, undefined, restRequestConfig); + const r = await this.rc.delete( + this.path(), + {}, + undefined, + restRequestConfig, + ); return r.data; } @@ -97,9 +119,14 @@ class Index { restRequestConfig?: RestRequestConfig, ): Promise { if (this.postId === null) { - throw new Error('postId must be specified.'); + throw new Error("postId must be specified."); } - const r = await this.rc.patch(this.path(), tMUpdatePostRequest, undefined, restRequestConfig); + const r = await this.rc.patch( + this.path(), + tMUpdatePostRequest, + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/TeamMessaging/V1/Chats/Tasks/index.ts b/packages/core/src/paths/TeamMessaging/V1/Chats/Tasks/index.ts index cbf33b49..52588962 100644 --- a/packages/core/src/paths/TeamMessaging/V1/Chats/Tasks/index.ts +++ b/packages/core/src/paths/TeamMessaging/V1/Chats/Tasks/index.ts @@ -1,8 +1,12 @@ -import type TMTaskInfo from '../../../../../definitions/TMTaskInfo'; -import type TMCreateTaskRequest from '../../../../../definitions/TMCreateTaskRequest'; -import type TMTaskList from '../../../../../definitions/TMTaskList'; -import type ListChatTasksNewParameters from '../../../../../definitions/ListChatTasksNewParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type TMTaskInfo from "../../../../../definitions/TMTaskInfo"; +import type TMCreateTaskRequest from "../../../../../definitions/TMCreateTaskRequest"; +import type TMTaskList from "../../../../../definitions/TMTaskList"; +import type ListChatTasksNewParameters from "../../../../../definitions/ListChatTasksNewParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -26,7 +30,11 @@ class Index { queryParams?: ListChatTasksNewParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(), + queryParams, + restRequestConfig, + ); return r.data; } @@ -41,7 +49,12 @@ class Index { tMCreateTaskRequest: TMCreateTaskRequest, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.post(this.path(), tMCreateTaskRequest, undefined, restRequestConfig); + const r = await this.rc.post( + this.path(), + tMCreateTaskRequest, + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/TeamMessaging/V1/Chats/Unfavorite/index.ts b/packages/core/src/paths/TeamMessaging/V1/Chats/Unfavorite/index.ts index c1cbb253..e877bb1a 100644 --- a/packages/core/src/paths/TeamMessaging/V1/Chats/Unfavorite/index.ts +++ b/packages/core/src/paths/TeamMessaging/V1/Chats/Unfavorite/index.ts @@ -1,4 +1,8 @@ -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -19,7 +23,12 @@ class Index { * App Permission: TeamMessaging */ public async post(restRequestConfig?: RestRequestConfig): Promise { - const r = await this.rc.post(this.path(), {}, undefined, restRequestConfig); + const r = await this.rc.post( + this.path(), + {}, + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/TeamMessaging/V1/Chats/index.ts b/packages/core/src/paths/TeamMessaging/V1/Chats/index.ts index 5a4e3cba..069c872a 100644 --- a/packages/core/src/paths/TeamMessaging/V1/Chats/index.ts +++ b/packages/core/src/paths/TeamMessaging/V1/Chats/index.ts @@ -1,13 +1,17 @@ -import AdaptiveCards from './AdaptiveCards'; -import Unfavorite from './Unfavorite'; -import Favorite from './Favorite'; -import Notes from './Notes'; -import Tasks from './Tasks'; -import Posts from './Posts'; -import type TMChatInfo from '../../../../definitions/TMChatInfo'; -import type TMChatList from '../../../../definitions/TMChatList'; -import type ListGlipChatsNewParameters from '../../../../definitions/ListGlipChatsNewParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../types'; +import AdaptiveCards from "./AdaptiveCards"; +import Unfavorite from "./Unfavorite"; +import Favorite from "./Favorite"; +import Notes from "./Notes"; +import Tasks from "./Tasks"; +import Posts from "./Posts"; +import type TMChatInfo from "../../../../definitions/TMChatInfo"; +import type TMChatList from "../../../../definitions/TMChatList"; +import type ListGlipChatsNewParameters from "../../../../definitions/ListGlipChatsNewParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../types"; class Index { public rc: RingCentralInterface; @@ -49,7 +53,11 @@ class Index { queryParams?: ListGlipChatsNewParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(false), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(false), + queryParams, + restRequestConfig, + ); return r.data; } @@ -65,9 +73,13 @@ class Index { */ public async get(restRequestConfig?: RestRequestConfig): Promise { if (this.chatId === null) { - throw new Error('chatId must be specified.'); + throw new Error("chatId must be specified."); } - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } diff --git a/packages/core/src/paths/TeamMessaging/V1/Companies/index.ts b/packages/core/src/paths/TeamMessaging/V1/Companies/index.ts index c74244d0..3a1a2c61 100644 --- a/packages/core/src/paths/TeamMessaging/V1/Companies/index.ts +++ b/packages/core/src/paths/TeamMessaging/V1/Companies/index.ts @@ -1,12 +1,19 @@ -import type TMCompanyInfo from '../../../../definitions/TMCompanyInfo'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../types'; +import type TMCompanyInfo from "../../../../definitions/TMCompanyInfo"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../types"; class Index { public rc: RingCentralInterface; public _parent: ParentInterface; public companyId: string | null; - public constructor(_parent: ParentInterface, companyId: string | null = null) { + public constructor( + _parent: ParentInterface, + companyId: string | null = null, + ) { this._parent = _parent; this.rc = _parent.rc; this.companyId = companyId; @@ -24,11 +31,17 @@ class Index { * Rate Limit Group: Light * App Permission: TeamMessaging */ - public async get(restRequestConfig?: RestRequestConfig): Promise { + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { if (this.companyId === null) { - throw new Error('companyId must be specified.'); + throw new Error("companyId must be specified."); } - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/TeamMessaging/V1/Conversations/index.ts b/packages/core/src/paths/TeamMessaging/V1/Conversations/index.ts index 7de45f83..6d1cd1d5 100644 --- a/packages/core/src/paths/TeamMessaging/V1/Conversations/index.ts +++ b/packages/core/src/paths/TeamMessaging/V1/Conversations/index.ts @@ -1,8 +1,12 @@ -import type TMConversationInfo from '../../../../definitions/TMConversationInfo'; -import type CreateConversationRequest from '../../../../definitions/CreateConversationRequest'; -import type TMConversationList from '../../../../definitions/TMConversationList'; -import type ListGlipConversationsNewParameters from '../../../../definitions/ListGlipConversationsNewParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../types'; +import type TMConversationInfo from "../../../../definitions/TMConversationInfo"; +import type CreateConversationRequest from "../../../../definitions/CreateConversationRequest"; +import type TMConversationList from "../../../../definitions/TMConversationList"; +import type ListGlipConversationsNewParameters from "../../../../definitions/ListGlipConversationsNewParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../types"; class Index { public rc: RingCentralInterface; @@ -31,7 +35,11 @@ class Index { queryParams?: ListGlipConversationsNewParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(false), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(false), + queryParams, + restRequestConfig, + ); return r.data; } @@ -62,11 +70,17 @@ class Index { * Rate Limit Group: Light * App Permission: TeamMessaging */ - public async get(restRequestConfig?: RestRequestConfig): Promise { + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { if (this.chatId === null) { - throw new Error('chatId must be specified.'); + throw new Error("chatId must be specified."); } - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/TeamMessaging/V1/DataExport/index.ts b/packages/core/src/paths/TeamMessaging/V1/DataExport/index.ts index 187f2749..323972d7 100644 --- a/packages/core/src/paths/TeamMessaging/V1/DataExport/index.ts +++ b/packages/core/src/paths/TeamMessaging/V1/DataExport/index.ts @@ -1,8 +1,12 @@ -import type DataExportTask from '../../../../definitions/DataExportTask'; -import type CreateDataExportTaskRequest from '../../../../definitions/CreateDataExportTaskRequest'; -import type DataExportTaskList from '../../../../definitions/DataExportTaskList'; -import type ListDataExportTasksNewParameters from '../../../../definitions/ListDataExportTasksNewParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../types'; +import type DataExportTask from "../../../../definitions/DataExportTask"; +import type CreateDataExportTaskRequest from "../../../../definitions/CreateDataExportTaskRequest"; +import type DataExportTaskList from "../../../../definitions/DataExportTaskList"; +import type ListDataExportTasksNewParameters from "../../../../definitions/ListDataExportTasksNewParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../types"; class Index { public rc: RingCentralInterface; @@ -32,7 +36,11 @@ class Index { queryParams?: ListDataExportTasksNewParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(false), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(false), + queryParams, + restRequestConfig, + ); return r.data; } @@ -65,11 +73,17 @@ class Index { * App Permission: TeamMessaging * User Permission: Glip */ - public async get(restRequestConfig?: RestRequestConfig): Promise { + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { if (this.taskId === null) { - throw new Error('taskId must be specified.'); + throw new Error("taskId must be specified."); } - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/TeamMessaging/V1/Events/index.ts b/packages/core/src/paths/TeamMessaging/V1/Events/index.ts index b3559b7b..d7f1b957 100644 --- a/packages/core/src/paths/TeamMessaging/V1/Events/index.ts +++ b/packages/core/src/paths/TeamMessaging/V1/Events/index.ts @@ -1,8 +1,12 @@ -import type TMEventInfo from '../../../../definitions/TMEventInfo'; -import type TMCreateEventRequest from '../../../../definitions/TMCreateEventRequest'; -import type TMEventList from '../../../../definitions/TMEventList'; -import type ReadGlipEventsNewParameters from '../../../../definitions/ReadGlipEventsNewParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../types'; +import type TMEventInfo from "../../../../definitions/TMEventInfo"; +import type TMCreateEventRequest from "../../../../definitions/TMCreateEventRequest"; +import type TMEventList from "../../../../definitions/TMEventList"; +import type ReadGlipEventsNewParameters from "../../../../definitions/ReadGlipEventsNewParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../types"; class Index { public rc: RingCentralInterface; @@ -31,7 +35,11 @@ class Index { queryParams?: ReadGlipEventsNewParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(false), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(false), + queryParams, + restRequestConfig, + ); return r.data; } @@ -46,7 +54,12 @@ class Index { tMCreateEventRequest: TMCreateEventRequest, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.post(this.path(false), tMCreateEventRequest, undefined, restRequestConfig); + const r = await this.rc.post( + this.path(false), + tMCreateEventRequest, + undefined, + restRequestConfig, + ); return r.data; } @@ -57,11 +70,17 @@ class Index { * Rate Limit Group: Medium * App Permission: TeamMessaging */ - public async get(restRequestConfig?: RestRequestConfig): Promise { + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { if (this.eventId === null) { - throw new Error('eventId must be specified.'); + throw new Error("eventId must be specified."); } - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } @@ -77,9 +96,14 @@ class Index { restRequestConfig?: RestRequestConfig, ): Promise { if (this.eventId === null) { - throw new Error('eventId must be specified.'); + throw new Error("eventId must be specified."); } - const r = await this.rc.put(this.path(), tMCreateEventRequest, undefined, restRequestConfig); + const r = await this.rc.put( + this.path(), + tMCreateEventRequest, + undefined, + restRequestConfig, + ); return r.data; } @@ -92,9 +116,14 @@ class Index { */ public async delete(restRequestConfig?: RestRequestConfig): Promise { if (this.eventId === null) { - throw new Error('eventId must be specified.'); + throw new Error("eventId must be specified."); } - const r = await this.rc.delete(this.path(), {}, undefined, restRequestConfig); + const r = await this.rc.delete( + this.path(), + {}, + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/TeamMessaging/V1/Everyone/index.ts b/packages/core/src/paths/TeamMessaging/V1/Everyone/index.ts index e949d553..74cd7b75 100644 --- a/packages/core/src/paths/TeamMessaging/V1/Everyone/index.ts +++ b/packages/core/src/paths/TeamMessaging/V1/Everyone/index.ts @@ -1,6 +1,10 @@ -import type UpdateEveryoneTeamRequest from '../../../../definitions/UpdateEveryoneTeamRequest'; -import type EveryoneTeamInfo from '../../../../definitions/EveryoneTeamInfo'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../types'; +import type UpdateEveryoneTeamRequest from "../../../../definitions/UpdateEveryoneTeamRequest"; +import type EveryoneTeamInfo from "../../../../definitions/EveryoneTeamInfo"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../types"; class Index { public rc: RingCentralInterface; @@ -20,8 +24,14 @@ class Index { * Rate Limit Group: Light * App Permission: TeamMessaging */ - public async get(restRequestConfig?: RestRequestConfig): Promise { - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } diff --git a/packages/core/src/paths/TeamMessaging/V1/Favorites/index.ts b/packages/core/src/paths/TeamMessaging/V1/Favorites/index.ts index b8624807..fbac8c50 100644 --- a/packages/core/src/paths/TeamMessaging/V1/Favorites/index.ts +++ b/packages/core/src/paths/TeamMessaging/V1/Favorites/index.ts @@ -1,6 +1,10 @@ -import type TMChatListWithoutNavigation from '../../../../definitions/TMChatListWithoutNavigation'; -import type ListFavoriteChatsNewParameters from '../../../../definitions/ListFavoriteChatsNewParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../types'; +import type TMChatListWithoutNavigation from "../../../../definitions/TMChatListWithoutNavigation"; +import type ListFavoriteChatsNewParameters from "../../../../definitions/ListFavoriteChatsNewParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../types"; class Index { public rc: RingCentralInterface; @@ -24,7 +28,11 @@ class Index { queryParams?: ListFavoriteChatsNewParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(), + queryParams, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/TeamMessaging/V1/Files/index.ts b/packages/core/src/paths/TeamMessaging/V1/Files/index.ts index c3f1473b..1cc4563f 100644 --- a/packages/core/src/paths/TeamMessaging/V1/Files/index.ts +++ b/packages/core/src/paths/TeamMessaging/V1/Files/index.ts @@ -1,8 +1,12 @@ -import Utils from '../../../../Utils'; -import type TMAddFileRequest from '../../../../definitions/TMAddFileRequest'; -import type CreateGlipFileNewParameters from '../../../../definitions/CreateGlipFileNewParameters'; -import type CreateGlipFileNewRequest from '../../../../definitions/CreateGlipFileNewRequest'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../types'; +import Utils from "../../../../Utils"; +import type TMAddFileRequest from "../../../../definitions/TMAddFileRequest"; +import type CreateGlipFileNewParameters from "../../../../definitions/CreateGlipFileNewParameters"; +import type CreateGlipFileNewRequest from "../../../../definitions/CreateGlipFileNewRequest"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../types"; class Index { public rc: RingCentralInterface; @@ -28,7 +32,12 @@ class Index { restRequestConfig?: RestRequestConfig, ): Promise { const formData = await Utils.getFormData(createGlipFileNewRequest); - const r = await this.rc.post(this.path(), formData, queryParams, restRequestConfig); + const r = await this.rc.post( + this.path(), + formData, + queryParams, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/TeamMessaging/V1/Groups/Events/index.ts b/packages/core/src/paths/TeamMessaging/V1/Groups/Events/index.ts index 9989e8ca..473ea399 100644 --- a/packages/core/src/paths/TeamMessaging/V1/Groups/Events/index.ts +++ b/packages/core/src/paths/TeamMessaging/V1/Groups/Events/index.ts @@ -1,6 +1,10 @@ -import type TMCreateEventRequest from '../../../../../definitions/TMCreateEventRequest'; -import type TMEventInfo from '../../../../../definitions/TMEventInfo'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type TMCreateEventRequest from "../../../../../definitions/TMCreateEventRequest"; +import type TMEventInfo from "../../../../../definitions/TMEventInfo"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -20,8 +24,14 @@ class Index { * Rate Limit Group: Medium * App Permission: TeamMessaging */ - public async get(restRequestConfig?: RestRequestConfig): Promise { - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } @@ -36,7 +46,12 @@ class Index { tMCreateEventRequest: TMCreateEventRequest, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.post(this.path(), tMCreateEventRequest, undefined, restRequestConfig); + const r = await this.rc.post( + this.path(), + tMCreateEventRequest, + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/TeamMessaging/V1/Groups/Webhooks/index.ts b/packages/core/src/paths/TeamMessaging/V1/Groups/Webhooks/index.ts index 1404ca8a..d5c3d4f7 100644 --- a/packages/core/src/paths/TeamMessaging/V1/Groups/Webhooks/index.ts +++ b/packages/core/src/paths/TeamMessaging/V1/Groups/Webhooks/index.ts @@ -1,6 +1,10 @@ -import type TMWebhookInfo from '../../../../../definitions/TMWebhookInfo'; -import type TMWebhookList from '../../../../../definitions/TMWebhookList'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type TMWebhookInfo from "../../../../../definitions/TMWebhookInfo"; +import type TMWebhookList from "../../../../../definitions/TMWebhookList"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -20,8 +24,14 @@ class Index { * Rate Limit Group: Medium * App Permission: TeamMessaging */ - public async get(restRequestConfig?: RestRequestConfig): Promise { - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } @@ -32,8 +42,15 @@ class Index { * Rate Limit Group: Medium * App Permission: TeamMessaging */ - public async post(restRequestConfig?: RestRequestConfig): Promise { - const r = await this.rc.post(this.path(), {}, undefined, restRequestConfig); + public async post( + restRequestConfig?: RestRequestConfig, + ): Promise { + const r = await this.rc.post( + this.path(), + {}, + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/TeamMessaging/V1/Groups/index.ts b/packages/core/src/paths/TeamMessaging/V1/Groups/index.ts index f47f76c5..dc27981a 100644 --- a/packages/core/src/paths/TeamMessaging/V1/Groups/index.ts +++ b/packages/core/src/paths/TeamMessaging/V1/Groups/index.ts @@ -1,6 +1,6 @@ -import Webhooks from './Webhooks'; -import Events from './Events'; -import type { RingCentralInterface, ParentInterface } from '../../../../types'; +import Webhooks from "./Webhooks"; +import Events from "./Events"; +import type { ParentInterface, RingCentralInterface } from "../../../../types"; class Index { public rc: RingCentralInterface; diff --git a/packages/core/src/paths/TeamMessaging/V1/Notes/Lock/index.ts b/packages/core/src/paths/TeamMessaging/V1/Notes/Lock/index.ts index f453b6ae..d7f40b49 100644 --- a/packages/core/src/paths/TeamMessaging/V1/Notes/Lock/index.ts +++ b/packages/core/src/paths/TeamMessaging/V1/Notes/Lock/index.ts @@ -1,4 +1,8 @@ -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -19,7 +23,12 @@ class Index { * App Permission: TeamMessaging */ public async post(restRequestConfig?: RestRequestConfig): Promise { - const r = await this.rc.post(this.path(), {}, undefined, restRequestConfig); + const r = await this.rc.post( + this.path(), + {}, + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/TeamMessaging/V1/Notes/Publish/index.ts b/packages/core/src/paths/TeamMessaging/V1/Notes/Publish/index.ts index 0eb4f893..ca3f6c7f 100644 --- a/packages/core/src/paths/TeamMessaging/V1/Notes/Publish/index.ts +++ b/packages/core/src/paths/TeamMessaging/V1/Notes/Publish/index.ts @@ -1,5 +1,9 @@ -import type TMNoteInfo from '../../../../../definitions/TMNoteInfo'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type TMNoteInfo from "../../../../../definitions/TMNoteInfo"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -19,8 +23,15 @@ class Index { * Rate Limit Group: Medium * App Permission: TeamMessaging */ - public async post(restRequestConfig?: RestRequestConfig): Promise { - const r = await this.rc.post(this.path(), {}, undefined, restRequestConfig); + public async post( + restRequestConfig?: RestRequestConfig, + ): Promise { + const r = await this.rc.post( + this.path(), + {}, + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/TeamMessaging/V1/Notes/Unlock/index.ts b/packages/core/src/paths/TeamMessaging/V1/Notes/Unlock/index.ts index cf9f69c1..a450245a 100644 --- a/packages/core/src/paths/TeamMessaging/V1/Notes/Unlock/index.ts +++ b/packages/core/src/paths/TeamMessaging/V1/Notes/Unlock/index.ts @@ -1,4 +1,8 @@ -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -19,7 +23,12 @@ class Index { * App Permission: TeamMessaging */ public async post(restRequestConfig?: RestRequestConfig): Promise { - const r = await this.rc.post(this.path(), {}, undefined, restRequestConfig); + const r = await this.rc.post( + this.path(), + {}, + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/TeamMessaging/V1/Notes/index.ts b/packages/core/src/paths/TeamMessaging/V1/Notes/index.ts index d9b5d17a..7d71a87d 100644 --- a/packages/core/src/paths/TeamMessaging/V1/Notes/index.ts +++ b/packages/core/src/paths/TeamMessaging/V1/Notes/index.ts @@ -1,11 +1,15 @@ -import Publish from './Publish'; -import Unlock from './Unlock'; -import Lock from './Lock'; -import type TMNoteInfo from '../../../../definitions/TMNoteInfo'; -import type PatchNoteNewParameters from '../../../../definitions/PatchNoteNewParameters'; -import type TMCreateNoteRequest from '../../../../definitions/TMCreateNoteRequest'; -import type TMNoteWithBodyInfo from '../../../../definitions/TMNoteWithBodyInfo'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../types'; +import Publish from "./Publish"; +import Unlock from "./Unlock"; +import Lock from "./Lock"; +import type TMNoteInfo from "../../../../definitions/TMNoteInfo"; +import type PatchNoteNewParameters from "../../../../definitions/PatchNoteNewParameters"; +import type TMCreateNoteRequest from "../../../../definitions/TMCreateNoteRequest"; +import type TMNoteWithBodyInfo from "../../../../definitions/TMNoteWithBodyInfo"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../types"; class Index { public rc: RingCentralInterface; @@ -30,11 +34,17 @@ class Index { * Rate Limit Group: Medium * App Permission: TeamMessaging */ - public async get(restRequestConfig?: RestRequestConfig): Promise { + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { if (this.noteId === null) { - throw new Error('noteId must be specified.'); + throw new Error("noteId must be specified."); } - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } @@ -47,9 +57,14 @@ class Index { */ public async delete(restRequestConfig?: RestRequestConfig): Promise { if (this.noteId === null) { - throw new Error('noteId must be specified.'); + throw new Error("noteId must be specified."); } - const r = await this.rc.delete(this.path(), {}, undefined, restRequestConfig); + const r = await this.rc.delete( + this.path(), + {}, + undefined, + restRequestConfig, + ); return r.data; } @@ -66,9 +81,14 @@ class Index { restRequestConfig?: RestRequestConfig, ): Promise { if (this.noteId === null) { - throw new Error('noteId must be specified.'); + throw new Error("noteId must be specified."); } - const r = await this.rc.patch(this.path(), tMCreateNoteRequest, queryParams, restRequestConfig); + const r = await this.rc.patch( + this.path(), + tMCreateNoteRequest, + queryParams, + restRequestConfig, + ); return r.data; } diff --git a/packages/core/src/paths/TeamMessaging/V1/Persons/index.ts b/packages/core/src/paths/TeamMessaging/V1/Persons/index.ts index 8cc5b98d..46ceb083 100644 --- a/packages/core/src/paths/TeamMessaging/V1/Persons/index.ts +++ b/packages/core/src/paths/TeamMessaging/V1/Persons/index.ts @@ -1,5 +1,9 @@ -import type TMPersonInfo from '../../../../definitions/TMPersonInfo'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../types'; +import type TMPersonInfo from "../../../../definitions/TMPersonInfo"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../types"; class Index { public rc: RingCentralInterface; @@ -26,11 +30,17 @@ class Index { * Rate Limit Group: Light * App Permission: TeamMessaging */ - public async get(restRequestConfig?: RestRequestConfig): Promise { + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { if (this.personId === null) { - throw new Error('personId must be specified.'); + throw new Error("personId must be specified."); } - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/TeamMessaging/V1/Recent/Chats/index.ts b/packages/core/src/paths/TeamMessaging/V1/Recent/Chats/index.ts index 82be3ef3..2140eece 100644 --- a/packages/core/src/paths/TeamMessaging/V1/Recent/Chats/index.ts +++ b/packages/core/src/paths/TeamMessaging/V1/Recent/Chats/index.ts @@ -1,6 +1,10 @@ -import type TMChatListWithoutNavigation from '../../../../../definitions/TMChatListWithoutNavigation'; -import type ListRecentChatsNewParameters from '../../../../../definitions/ListRecentChatsNewParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type TMChatListWithoutNavigation from "../../../../../definitions/TMChatListWithoutNavigation"; +import type ListRecentChatsNewParameters from "../../../../../definitions/ListRecentChatsNewParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -24,7 +28,11 @@ class Index { queryParams?: ListRecentChatsNewParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(), + queryParams, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/TeamMessaging/V1/Recent/index.ts b/packages/core/src/paths/TeamMessaging/V1/Recent/index.ts index 6ddfcf6d..9fbf6d51 100644 --- a/packages/core/src/paths/TeamMessaging/V1/Recent/index.ts +++ b/packages/core/src/paths/TeamMessaging/V1/Recent/index.ts @@ -1,5 +1,5 @@ -import Chats from './Chats'; -import type { RingCentralInterface, ParentInterface } from '../../../../types'; +import Chats from "./Chats"; +import type { ParentInterface, RingCentralInterface } from "../../../../types"; class Index { public rc: RingCentralInterface; diff --git a/packages/core/src/paths/TeamMessaging/V1/Tasks/Complete/index.ts b/packages/core/src/paths/TeamMessaging/V1/Tasks/Complete/index.ts index 4d506959..bee9f9ae 100644 --- a/packages/core/src/paths/TeamMessaging/V1/Tasks/Complete/index.ts +++ b/packages/core/src/paths/TeamMessaging/V1/Tasks/Complete/index.ts @@ -1,5 +1,9 @@ -import type TMCompleteTaskRequest from '../../../../../definitions/TMCompleteTaskRequest'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type TMCompleteTaskRequest from "../../../../../definitions/TMCompleteTaskRequest"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -23,7 +27,12 @@ class Index { tMCompleteTaskRequest: TMCompleteTaskRequest, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.post(this.path(), tMCompleteTaskRequest, undefined, restRequestConfig); + const r = await this.rc.post( + this.path(), + tMCompleteTaskRequest, + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/TeamMessaging/V1/Tasks/index.ts b/packages/core/src/paths/TeamMessaging/V1/Tasks/index.ts index 41474e8d..4ac08e51 100644 --- a/packages/core/src/paths/TeamMessaging/V1/Tasks/index.ts +++ b/packages/core/src/paths/TeamMessaging/V1/Tasks/index.ts @@ -1,8 +1,12 @@ -import Complete from './Complete'; -import type TMTaskList from '../../../../definitions/TMTaskList'; -import type TMUpdateTaskRequest from '../../../../definitions/TMUpdateTaskRequest'; -import type TMTaskInfo from '../../../../definitions/TMTaskInfo'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../types'; +import Complete from "./Complete"; +import type TMTaskList from "../../../../definitions/TMTaskList"; +import type TMUpdateTaskRequest from "../../../../definitions/TMUpdateTaskRequest"; +import type TMTaskInfo from "../../../../definitions/TMTaskInfo"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../types"; class Index { public rc: RingCentralInterface; @@ -29,9 +33,13 @@ class Index { */ public async get(restRequestConfig?: RestRequestConfig): Promise { if (this.taskId === null) { - throw new Error('taskId must be specified.'); + throw new Error("taskId must be specified."); } - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } @@ -44,9 +52,14 @@ class Index { */ public async delete(restRequestConfig?: RestRequestConfig): Promise { if (this.taskId === null) { - throw new Error('taskId must be specified.'); + throw new Error("taskId must be specified."); } - const r = await this.rc.delete(this.path(), {}, undefined, restRequestConfig); + const r = await this.rc.delete( + this.path(), + {}, + undefined, + restRequestConfig, + ); return r.data; } @@ -62,9 +75,14 @@ class Index { restRequestConfig?: RestRequestConfig, ): Promise { if (this.taskId === null) { - throw new Error('taskId must be specified.'); + throw new Error("taskId must be specified."); } - const r = await this.rc.patch(this.path(), tMUpdateTaskRequest, undefined, restRequestConfig); + const r = await this.rc.patch( + this.path(), + tMUpdateTaskRequest, + undefined, + restRequestConfig, + ); return r.data; } diff --git a/packages/core/src/paths/TeamMessaging/V1/Teams/Add/index.ts b/packages/core/src/paths/TeamMessaging/V1/Teams/Add/index.ts index fa26081c..4f40668d 100644 --- a/packages/core/src/paths/TeamMessaging/V1/Teams/Add/index.ts +++ b/packages/core/src/paths/TeamMessaging/V1/Teams/Add/index.ts @@ -1,5 +1,9 @@ -import type TMAddTeamMembersRequest from '../../../../../definitions/TMAddTeamMembersRequest'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type TMAddTeamMembersRequest from "../../../../../definitions/TMAddTeamMembersRequest"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -23,7 +27,12 @@ class Index { tMAddTeamMembersRequest: TMAddTeamMembersRequest, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.post(this.path(), tMAddTeamMembersRequest, undefined, restRequestConfig); + const r = await this.rc.post( + this.path(), + tMAddTeamMembersRequest, + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/TeamMessaging/V1/Teams/Archive/index.ts b/packages/core/src/paths/TeamMessaging/V1/Teams/Archive/index.ts index 744ea6cb..192987c3 100644 --- a/packages/core/src/paths/TeamMessaging/V1/Teams/Archive/index.ts +++ b/packages/core/src/paths/TeamMessaging/V1/Teams/Archive/index.ts @@ -1,4 +1,8 @@ -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -19,7 +23,12 @@ class Index { * App Permission: TeamMessaging */ public async post(restRequestConfig?: RestRequestConfig): Promise { - const r = await this.rc.post(this.path(), {}, undefined, restRequestConfig); + const r = await this.rc.post( + this.path(), + {}, + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/TeamMessaging/V1/Teams/Join/index.ts b/packages/core/src/paths/TeamMessaging/V1/Teams/Join/index.ts index 001cab5d..a84b47d0 100644 --- a/packages/core/src/paths/TeamMessaging/V1/Teams/Join/index.ts +++ b/packages/core/src/paths/TeamMessaging/V1/Teams/Join/index.ts @@ -1,4 +1,8 @@ -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -19,7 +23,12 @@ class Index { * App Permission: TeamMessaging */ public async post(restRequestConfig?: RestRequestConfig): Promise { - const r = await this.rc.post(this.path(), {}, undefined, restRequestConfig); + const r = await this.rc.post( + this.path(), + {}, + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/TeamMessaging/V1/Teams/Leave/index.ts b/packages/core/src/paths/TeamMessaging/V1/Teams/Leave/index.ts index 05e3d60b..7770080b 100644 --- a/packages/core/src/paths/TeamMessaging/V1/Teams/Leave/index.ts +++ b/packages/core/src/paths/TeamMessaging/V1/Teams/Leave/index.ts @@ -1,4 +1,8 @@ -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -19,7 +23,12 @@ class Index { * App Permission: TeamMessaging */ public async post(restRequestConfig?: RestRequestConfig): Promise { - const r = await this.rc.post(this.path(), {}, undefined, restRequestConfig); + const r = await this.rc.post( + this.path(), + {}, + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/TeamMessaging/V1/Teams/Remove/index.ts b/packages/core/src/paths/TeamMessaging/V1/Teams/Remove/index.ts index 1cbe073d..c1ec6970 100644 --- a/packages/core/src/paths/TeamMessaging/V1/Teams/Remove/index.ts +++ b/packages/core/src/paths/TeamMessaging/V1/Teams/Remove/index.ts @@ -1,5 +1,9 @@ -import type TMRemoveTeamMembersRequest from '../../../../../definitions/TMRemoveTeamMembersRequest'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type TMRemoveTeamMembersRequest from "../../../../../definitions/TMRemoveTeamMembersRequest"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -23,7 +27,12 @@ class Index { tMRemoveTeamMembersRequest: TMRemoveTeamMembersRequest, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.post(this.path(), tMRemoveTeamMembersRequest, undefined, restRequestConfig); + const r = await this.rc.post( + this.path(), + tMRemoveTeamMembersRequest, + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/TeamMessaging/V1/Teams/Unarchive/index.ts b/packages/core/src/paths/TeamMessaging/V1/Teams/Unarchive/index.ts index 2a0b6491..5142eaa2 100644 --- a/packages/core/src/paths/TeamMessaging/V1/Teams/Unarchive/index.ts +++ b/packages/core/src/paths/TeamMessaging/V1/Teams/Unarchive/index.ts @@ -1,4 +1,8 @@ -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -19,7 +23,12 @@ class Index { * App Permission: TeamMessaging */ public async post(restRequestConfig?: RestRequestConfig): Promise { - const r = await this.rc.post(this.path(), {}, undefined, restRequestConfig); + const r = await this.rc.post( + this.path(), + {}, + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/TeamMessaging/V1/Teams/index.ts b/packages/core/src/paths/TeamMessaging/V1/Teams/index.ts index 5ee90f33..bd6b535f 100644 --- a/packages/core/src/paths/TeamMessaging/V1/Teams/index.ts +++ b/packages/core/src/paths/TeamMessaging/V1/Teams/index.ts @@ -1,15 +1,19 @@ -import Unarchive from './Unarchive'; -import Archive from './Archive'; -import Remove from './Remove'; -import Leave from './Leave'; -import Join from './Join'; -import Add from './Add'; -import type TMUpdateTeamRequest from '../../../../definitions/TMUpdateTeamRequest'; -import type TMTeamInfo from '../../../../definitions/TMTeamInfo'; -import type TMCreateTeamRequest from '../../../../definitions/TMCreateTeamRequest'; -import type TMTeamList from '../../../../definitions/TMTeamList'; -import type ListGlipTeamsNewParameters from '../../../../definitions/ListGlipTeamsNewParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../types'; +import Unarchive from "./Unarchive"; +import Archive from "./Archive"; +import Remove from "./Remove"; +import Leave from "./Leave"; +import Join from "./Join"; +import Add from "./Add"; +import type TMUpdateTeamRequest from "../../../../definitions/TMUpdateTeamRequest"; +import type TMTeamInfo from "../../../../definitions/TMTeamInfo"; +import type TMCreateTeamRequest from "../../../../definitions/TMCreateTeamRequest"; +import type TMTeamList from "../../../../definitions/TMTeamList"; +import type ListGlipTeamsNewParameters from "../../../../definitions/ListGlipTeamsNewParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../types"; class Index { public rc: RingCentralInterface; @@ -38,7 +42,11 @@ class Index { queryParams?: ListGlipTeamsNewParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(false), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(false), + queryParams, + restRequestConfig, + ); return r.data; } @@ -53,7 +61,12 @@ class Index { tMCreateTeamRequest: TMCreateTeamRequest, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.post(this.path(false), tMCreateTeamRequest, undefined, restRequestConfig); + const r = await this.rc.post( + this.path(false), + tMCreateTeamRequest, + undefined, + restRequestConfig, + ); return r.data; } @@ -66,9 +79,13 @@ class Index { */ public async get(restRequestConfig?: RestRequestConfig): Promise { if (this.chatId === null) { - throw new Error('chatId must be specified.'); + throw new Error("chatId must be specified."); } - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } @@ -81,9 +98,14 @@ class Index { */ public async delete(restRequestConfig?: RestRequestConfig): Promise { if (this.chatId === null) { - throw new Error('chatId must be specified.'); + throw new Error("chatId must be specified."); } - const r = await this.rc.delete(this.path(), {}, undefined, restRequestConfig); + const r = await this.rc.delete( + this.path(), + {}, + undefined, + restRequestConfig, + ); return r.data; } @@ -99,9 +121,14 @@ class Index { restRequestConfig?: RestRequestConfig, ): Promise { if (this.chatId === null) { - throw new Error('chatId must be specified.'); + throw new Error("chatId must be specified."); } - const r = await this.rc.patch(this.path(), tMUpdateTeamRequest, undefined, restRequestConfig); + const r = await this.rc.patch( + this.path(), + tMUpdateTeamRequest, + undefined, + restRequestConfig, + ); return r.data; } diff --git a/packages/core/src/paths/TeamMessaging/V1/Webhooks/Activate/index.ts b/packages/core/src/paths/TeamMessaging/V1/Webhooks/Activate/index.ts index 26391dcf..c9407b2f 100644 --- a/packages/core/src/paths/TeamMessaging/V1/Webhooks/Activate/index.ts +++ b/packages/core/src/paths/TeamMessaging/V1/Webhooks/Activate/index.ts @@ -1,4 +1,8 @@ -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -19,7 +23,12 @@ class Index { * App Permission: TeamMessaging */ public async post(restRequestConfig?: RestRequestConfig): Promise { - const r = await this.rc.post(this.path(), {}, undefined, restRequestConfig); + const r = await this.rc.post( + this.path(), + {}, + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/TeamMessaging/V1/Webhooks/Suspend/index.ts b/packages/core/src/paths/TeamMessaging/V1/Webhooks/Suspend/index.ts index 9dc9037d..ddb1b954 100644 --- a/packages/core/src/paths/TeamMessaging/V1/Webhooks/Suspend/index.ts +++ b/packages/core/src/paths/TeamMessaging/V1/Webhooks/Suspend/index.ts @@ -1,4 +1,8 @@ -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -19,7 +23,12 @@ class Index { * App Permission: TeamMessaging */ public async post(restRequestConfig?: RestRequestConfig): Promise { - const r = await this.rc.post(this.path(), {}, undefined, restRequestConfig); + const r = await this.rc.post( + this.path(), + {}, + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/TeamMessaging/V1/Webhooks/index.ts b/packages/core/src/paths/TeamMessaging/V1/Webhooks/index.ts index 0942eb29..01590bc5 100644 --- a/packages/core/src/paths/TeamMessaging/V1/Webhooks/index.ts +++ b/packages/core/src/paths/TeamMessaging/V1/Webhooks/index.ts @@ -1,14 +1,21 @@ -import Activate from './Activate'; -import Suspend from './Suspend'; -import type TMWebhookList from '../../../../definitions/TMWebhookList'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../types'; +import Activate from "./Activate"; +import Suspend from "./Suspend"; +import type TMWebhookList from "../../../../definitions/TMWebhookList"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../types"; class Index { public rc: RingCentralInterface; public _parent: ParentInterface; public webhookId: string | null; - public constructor(_parent: ParentInterface, webhookId: string | null = null) { + public constructor( + _parent: ParentInterface, + webhookId: string | null = null, + ) { this._parent = _parent; this.rc = _parent.rc; this.webhookId = webhookId; @@ -26,8 +33,14 @@ class Index { * Rate Limit Group: Medium * App Permission: TeamMessaging */ - public async list(restRequestConfig?: RestRequestConfig): Promise { - const r = await this.rc.get(this.path(false), undefined, restRequestConfig); + public async list( + restRequestConfig?: RestRequestConfig, + ): Promise { + const r = await this.rc.get( + this.path(false), + undefined, + restRequestConfig, + ); return r.data; } @@ -38,11 +51,17 @@ class Index { * Rate Limit Group: Medium * App Permission: TeamMessaging */ - public async get(restRequestConfig?: RestRequestConfig): Promise { + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { if (this.webhookId === null) { - throw new Error('webhookId must be specified.'); + throw new Error("webhookId must be specified."); } - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } @@ -55,9 +74,14 @@ class Index { */ public async delete(restRequestConfig?: RestRequestConfig): Promise { if (this.webhookId === null) { - throw new Error('webhookId must be specified.'); + throw new Error("webhookId must be specified."); } - const r = await this.rc.delete(this.path(), {}, undefined, restRequestConfig); + const r = await this.rc.delete( + this.path(), + {}, + undefined, + restRequestConfig, + ); return r.data; } diff --git a/packages/core/src/paths/TeamMessaging/V1/index.ts b/packages/core/src/paths/TeamMessaging/V1/index.ts index e612c94f..954c8bc6 100644 --- a/packages/core/src/paths/TeamMessaging/V1/index.ts +++ b/packages/core/src/paths/TeamMessaging/V1/index.ts @@ -1,20 +1,20 @@ -import AdaptiveCards from './AdaptiveCards'; -import Conversations from './Conversations'; -import DataExport from './DataExport'; -import Favorites from './Favorites'; -import Companies from './Companies'; -import Everyone from './Everyone'; -import Webhooks from './Webhooks'; -import Persons from './Persons'; -import Events from './Events'; -import Recent from './Recent'; -import Groups from './Groups'; -import Files from './Files'; -import Notes from './Notes'; -import Teams from './Teams'; -import Chats from './Chats'; -import Tasks from './Tasks'; -import type { RingCentralInterface, ParentInterface } from '../../../types'; +import AdaptiveCards from "./AdaptiveCards"; +import Conversations from "./Conversations"; +import DataExport from "./DataExport"; +import Favorites from "./Favorites"; +import Companies from "./Companies"; +import Everyone from "./Everyone"; +import Webhooks from "./Webhooks"; +import Persons from "./Persons"; +import Events from "./Events"; +import Recent from "./Recent"; +import Groups from "./Groups"; +import Files from "./Files"; +import Notes from "./Notes"; +import Teams from "./Teams"; +import Chats from "./Chats"; +import Tasks from "./Tasks"; +import type { ParentInterface, RingCentralInterface } from "../../../types"; class Index { public rc: RingCentralInterface; diff --git a/packages/core/src/paths/TeamMessaging/index.ts b/packages/core/src/paths/TeamMessaging/index.ts index 4c10c65a..587c41bd 100644 --- a/packages/core/src/paths/TeamMessaging/index.ts +++ b/packages/core/src/paths/TeamMessaging/index.ts @@ -1,5 +1,5 @@ -import V1 from './V1'; -import type { RingCentralInterface } from '../../types'; +import V1 from "./V1"; +import type { RingCentralInterface } from "../../types"; class Index { public rc: RingCentralInterface; @@ -8,7 +8,7 @@ class Index { this.rc = rc; } public path(): string { - return '/team-messaging'; + return "/team-messaging"; } public v1(): V1 { diff --git a/packages/core/src/paths/Webinar/Configuration/V1/Company/Sessions/index.ts b/packages/core/src/paths/Webinar/Configuration/V1/Company/Sessions/index.ts index f40d4aa1..7a2ff8d8 100644 --- a/packages/core/src/paths/Webinar/Configuration/V1/Company/Sessions/index.ts +++ b/packages/core/src/paths/Webinar/Configuration/V1/Company/Sessions/index.ts @@ -1,6 +1,10 @@ -import type WcsSessionGlobalListResource from '../../../../../../definitions/WcsSessionGlobalListResource'; -import type RcwConfigListAllCompanySessionsParameters from '../../../../../../definitions/RcwConfigListAllCompanySessionsParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../../types'; +import type WcsSessionGlobalListResource from "../../../../../../definitions/WcsSessionGlobalListResource"; +import type RcwConfigListAllCompanySessionsParameters from "../../../../../../definitions/RcwConfigListAllCompanySessionsParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../../types"; class Index { public rc: RingCentralInterface; @@ -27,7 +31,11 @@ class Index { queryParams?: RcwConfigListAllCompanySessionsParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(), + queryParams, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Webinar/Configuration/V1/Company/index.ts b/packages/core/src/paths/Webinar/Configuration/V1/Company/index.ts index f92f01a6..8523215d 100644 --- a/packages/core/src/paths/Webinar/Configuration/V1/Company/index.ts +++ b/packages/core/src/paths/Webinar/Configuration/V1/Company/index.ts @@ -1,5 +1,8 @@ -import Sessions from './Sessions'; -import type { RingCentralInterface, ParentInterface } from '../../../../../types'; +import Sessions from "./Sessions"; +import type { + ParentInterface, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; diff --git a/packages/core/src/paths/Webinar/Configuration/V1/Sessions/index.ts b/packages/core/src/paths/Webinar/Configuration/V1/Sessions/index.ts index 1dc60a8e..83722767 100644 --- a/packages/core/src/paths/Webinar/Configuration/V1/Sessions/index.ts +++ b/packages/core/src/paths/Webinar/Configuration/V1/Sessions/index.ts @@ -1,6 +1,10 @@ -import type WcsSessionGlobalListResource from '../../../../../definitions/WcsSessionGlobalListResource'; -import type RcwConfigListAllSessionsParameters from '../../../../../definitions/RcwConfigListAllSessionsParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type WcsSessionGlobalListResource from "../../../../../definitions/WcsSessionGlobalListResource"; +import type RcwConfigListAllSessionsParameters from "../../../../../definitions/RcwConfigListAllSessionsParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -26,7 +30,11 @@ class Index { queryParams?: RcwConfigListAllSessionsParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(), + queryParams, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Webinar/Configuration/V1/Webinars/Sessions/Invitees/index.ts b/packages/core/src/paths/Webinar/Configuration/V1/Webinars/Sessions/Invitees/index.ts index d2f8e2f0..34e55975 100644 --- a/packages/core/src/paths/Webinar/Configuration/V1/Webinars/Sessions/Invitees/index.ts +++ b/packages/core/src/paths/Webinar/Configuration/V1/Webinars/Sessions/Invitees/index.ts @@ -1,17 +1,24 @@ -import type UpdateInviteeRequest from '../../../../../../../definitions/UpdateInviteeRequest'; -import type InviteeResource from '../../../../../../../definitions/InviteeResource'; -import type BulkUpdateInviteesResponse from '../../../../../../../definitions/BulkUpdateInviteesResponse'; -import type BulkUpdateInviteesRequest from '../../../../../../../definitions/BulkUpdateInviteesRequest'; -import type WcsInviteeListResource from '../../../../../../../definitions/WcsInviteeListResource'; -import type RcwConfigListInviteesParameters from '../../../../../../../definitions/RcwConfigListInviteesParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../../../types'; +import type UpdateInviteeRequest from "../../../../../../../definitions/UpdateInviteeRequest"; +import type InviteeResource from "../../../../../../../definitions/InviteeResource"; +import type BulkUpdateInviteesResponse from "../../../../../../../definitions/BulkUpdateInviteesResponse"; +import type BulkUpdateInviteesRequest from "../../../../../../../definitions/BulkUpdateInviteesRequest"; +import type WcsInviteeListResource from "../../../../../../../definitions/WcsInviteeListResource"; +import type RcwConfigListInviteesParameters from "../../../../../../../definitions/RcwConfigListInviteesParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../../../types"; class Index { public rc: RingCentralInterface; public _parent: ParentInterface; public inviteeId: string | null; - public constructor(_parent: ParentInterface, inviteeId: string | null = null) { + public constructor( + _parent: ParentInterface, + inviteeId: string | null = null, + ) { this._parent = _parent; this.rc = _parent.rc; this.inviteeId = inviteeId; @@ -36,7 +43,11 @@ class Index { queryParams?: RcwConfigListInviteesParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(false), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(false), + queryParams, + restRequestConfig, + ); return r.data; } @@ -77,11 +88,17 @@ class Index { * Rate Limit Group: Heavy * App Permission: ReadWebinars */ - public async get(restRequestConfig?: RestRequestConfig): Promise { + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { if (this.inviteeId === null) { - throw new Error('inviteeId must be specified.'); + throw new Error("inviteeId must be specified."); } - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } @@ -102,9 +119,14 @@ class Index { restRequestConfig?: RestRequestConfig, ): Promise { if (this.inviteeId === null) { - throw new Error('inviteeId must be specified.'); + throw new Error("inviteeId must be specified."); } - const r = await this.rc.put(this.path(), updateInviteeRequest, undefined, restRequestConfig); + const r = await this.rc.put( + this.path(), + updateInviteeRequest, + undefined, + restRequestConfig, + ); return r.data; } @@ -119,9 +141,14 @@ class Index { */ public async delete(restRequestConfig?: RestRequestConfig): Promise { if (this.inviteeId === null) { - throw new Error('inviteeId must be specified.'); + throw new Error("inviteeId must be specified."); } - const r = await this.rc.delete(this.path(), {}, undefined, restRequestConfig); + const r = await this.rc.delete( + this.path(), + {}, + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Webinar/Configuration/V1/Webinars/Sessions/index.ts b/packages/core/src/paths/Webinar/Configuration/V1/Webinars/Sessions/index.ts index 59b6ebf1..cb322590 100644 --- a/packages/core/src/paths/Webinar/Configuration/V1/Webinars/Sessions/index.ts +++ b/packages/core/src/paths/Webinar/Configuration/V1/Webinars/Sessions/index.ts @@ -1,14 +1,21 @@ -import Invitees from './Invitees'; -import type WcsSessionResource from '../../../../../../definitions/WcsSessionResource'; -import type WcsSessionWithLocaleCodeModel from '../../../../../../definitions/WcsSessionWithLocaleCodeModel'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../../types'; +import Invitees from "./Invitees"; +import type WcsSessionResource from "../../../../../../definitions/WcsSessionResource"; +import type WcsSessionWithLocaleCodeModel from "../../../../../../definitions/WcsSessionWithLocaleCodeModel"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../../types"; class Index { public rc: RingCentralInterface; public _parent: ParentInterface; public sessionId: string | null; - public constructor(_parent: ParentInterface, sessionId: string | null = null) { + public constructor( + _parent: ParentInterface, + sessionId: string | null = null, + ) { this._parent = _parent; this.rc = _parent.rc; this.sessionId = sessionId; @@ -46,11 +53,17 @@ class Index { * Rate Limit Group: Heavy * App Permission: ReadWebinars */ - public async get(restRequestConfig?: RestRequestConfig): Promise { + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { if (this.sessionId === null) { - throw new Error('sessionId must be specified.'); + throw new Error("sessionId must be specified."); } - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } @@ -65,9 +78,14 @@ class Index { */ public async delete(restRequestConfig?: RestRequestConfig): Promise { if (this.sessionId === null) { - throw new Error('sessionId must be specified.'); + throw new Error("sessionId must be specified."); } - const r = await this.rc.delete(this.path(), {}, undefined, restRequestConfig); + const r = await this.rc.delete( + this.path(), + {}, + undefined, + restRequestConfig, + ); return r.data; } @@ -87,7 +105,7 @@ class Index { restRequestConfig?: RestRequestConfig, ): Promise { if (this.sessionId === null) { - throw new Error('sessionId must be specified.'); + throw new Error("sessionId must be specified."); } const r = await this.rc.patch( this.path(), diff --git a/packages/core/src/paths/Webinar/Configuration/V1/Webinars/index.ts b/packages/core/src/paths/Webinar/Configuration/V1/Webinars/index.ts index 005e91b1..68241b82 100644 --- a/packages/core/src/paths/Webinar/Configuration/V1/Webinars/index.ts +++ b/packages/core/src/paths/Webinar/Configuration/V1/Webinars/index.ts @@ -1,17 +1,24 @@ -import Sessions from './Sessions'; -import type WebinarBaseModel from '../../../../../definitions/WebinarBaseModel'; -import type WcsWebinarResource from '../../../../../definitions/WcsWebinarResource'; -import type WebinarCreationRequest from '../../../../../definitions/WebinarCreationRequest'; -import type WebinarListResource from '../../../../../definitions/WebinarListResource'; -import type RcwConfigListWebinarsParameters from '../../../../../definitions/RcwConfigListWebinarsParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import Sessions from "./Sessions"; +import type WebinarBaseModel from "../../../../../definitions/WebinarBaseModel"; +import type WcsWebinarResource from "../../../../../definitions/WcsWebinarResource"; +import type WebinarCreationRequest from "../../../../../definitions/WebinarCreationRequest"; +import type WebinarListResource from "../../../../../definitions/WebinarListResource"; +import type RcwConfigListWebinarsParameters from "../../../../../definitions/RcwConfigListWebinarsParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; public _parent: ParentInterface; public webinarId: string | null; - public constructor(_parent: ParentInterface, webinarId: string | null = null) { + public constructor( + _parent: ParentInterface, + webinarId: string | null = null, + ) { this._parent = _parent; this.rc = _parent.rc; this.webinarId = webinarId; @@ -34,7 +41,11 @@ class Index { queryParams?: RcwConfigListWebinarsParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(false), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(false), + queryParams, + restRequestConfig, + ); return r.data; } @@ -75,11 +86,17 @@ class Index { * Rate Limit Group: Heavy * App Permission: ReadWebinars */ - public async get(restRequestConfig?: RestRequestConfig): Promise { + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { if (this.webinarId === null) { - throw new Error('webinarId must be specified.'); + throw new Error("webinarId must be specified."); } - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } @@ -94,9 +111,14 @@ class Index { */ public async delete(restRequestConfig?: RestRequestConfig): Promise { if (this.webinarId === null) { - throw new Error('webinarId must be specified.'); + throw new Error("webinarId must be specified."); } - const r = await this.rc.delete(this.path(), {}, undefined, restRequestConfig); + const r = await this.rc.delete( + this.path(), + {}, + undefined, + restRequestConfig, + ); return r.data; } @@ -118,9 +140,14 @@ class Index { restRequestConfig?: RestRequestConfig, ): Promise { if (this.webinarId === null) { - throw new Error('webinarId must be specified.'); + throw new Error("webinarId must be specified."); } - const r = await this.rc.patch(this.path(), webinarBaseModel, undefined, restRequestConfig); + const r = await this.rc.patch( + this.path(), + webinarBaseModel, + undefined, + restRequestConfig, + ); return r.data; } diff --git a/packages/core/src/paths/Webinar/Configuration/V1/index.ts b/packages/core/src/paths/Webinar/Configuration/V1/index.ts index 75fb1f95..2f9b155f 100644 --- a/packages/core/src/paths/Webinar/Configuration/V1/index.ts +++ b/packages/core/src/paths/Webinar/Configuration/V1/index.ts @@ -1,7 +1,7 @@ -import Sessions from './Sessions'; -import Webinars from './Webinars'; -import Company from './Company'; -import type { RingCentralInterface, ParentInterface } from '../../../../types'; +import Sessions from "./Sessions"; +import Webinars from "./Webinars"; +import Company from "./Company"; +import type { ParentInterface, RingCentralInterface } from "../../../../types"; class Index { public rc: RingCentralInterface; diff --git a/packages/core/src/paths/Webinar/Configuration/index.ts b/packages/core/src/paths/Webinar/Configuration/index.ts index 49e96169..3b722c25 100644 --- a/packages/core/src/paths/Webinar/Configuration/index.ts +++ b/packages/core/src/paths/Webinar/Configuration/index.ts @@ -1,5 +1,5 @@ -import V1 from './V1'; -import type { RingCentralInterface, ParentInterface } from '../../../types'; +import V1 from "./V1"; +import type { ParentInterface, RingCentralInterface } from "../../../types"; class Index { public rc: RingCentralInterface; diff --git a/packages/core/src/paths/Webinar/History/V1/Company/Recordings/index.ts b/packages/core/src/paths/Webinar/History/V1/Company/Recordings/index.ts index 0b9f8e95..9540a188 100644 --- a/packages/core/src/paths/Webinar/History/V1/Company/Recordings/index.ts +++ b/packages/core/src/paths/Webinar/History/V1/Company/Recordings/index.ts @@ -1,14 +1,21 @@ -import type RecordingAdminExtendedItemModel from '../../../../../../definitions/RecordingAdminExtendedItemModel'; -import type RecordingAdminListResource from '../../../../../../definitions/RecordingAdminListResource'; -import type RcwHistoryAdminListRecordingsParameters from '../../../../../../definitions/RcwHistoryAdminListRecordingsParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../../types'; +import type RecordingAdminExtendedItemModel from "../../../../../../definitions/RecordingAdminExtendedItemModel"; +import type RecordingAdminListResource from "../../../../../../definitions/RecordingAdminListResource"; +import type RcwHistoryAdminListRecordingsParameters from "../../../../../../definitions/RcwHistoryAdminListRecordingsParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../../types"; class Index { public rc: RingCentralInterface; public _parent: ParentInterface; public recordingId: string | null; - public constructor(_parent: ParentInterface, recordingId: string | null = null) { + public constructor( + _parent: ParentInterface, + recordingId: string | null = null, + ) { this._parent = _parent; this.rc = _parent.rc; this.recordingId = recordingId; @@ -32,7 +39,11 @@ class Index { queryParams?: RcwHistoryAdminListRecordingsParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(false), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(false), + queryParams, + restRequestConfig, + ); return r.data; } @@ -46,11 +57,17 @@ class Index { * Rate Limit Group: Heavy * App Permission: ReadWebinars */ - public async get(restRequestConfig?: RestRequestConfig): Promise { + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { if (this.recordingId === null) { - throw new Error('recordingId must be specified.'); + throw new Error("recordingId must be specified."); } - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Webinar/History/V1/Company/Sessions/index.ts b/packages/core/src/paths/Webinar/History/V1/Company/Sessions/index.ts index d693e809..853009c1 100644 --- a/packages/core/src/paths/Webinar/History/V1/Company/Sessions/index.ts +++ b/packages/core/src/paths/Webinar/History/V1/Company/Sessions/index.ts @@ -1,6 +1,10 @@ -import type SessionGlobalListResource from '../../../../../../definitions/SessionGlobalListResource'; -import type RcwHistoryListAllCompanySessionsParameters from '../../../../../../definitions/RcwHistoryListAllCompanySessionsParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../../types'; +import type SessionGlobalListResource from "../../../../../../definitions/SessionGlobalListResource"; +import type RcwHistoryListAllCompanySessionsParameters from "../../../../../../definitions/RcwHistoryListAllCompanySessionsParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../../types"; class Index { public rc: RingCentralInterface; @@ -28,7 +32,11 @@ class Index { queryParams?: RcwHistoryListAllCompanySessionsParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(), + queryParams, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Webinar/History/V1/Company/index.ts b/packages/core/src/paths/Webinar/History/V1/Company/index.ts index ba443cef..b61e7206 100644 --- a/packages/core/src/paths/Webinar/History/V1/Company/index.ts +++ b/packages/core/src/paths/Webinar/History/V1/Company/index.ts @@ -1,6 +1,9 @@ -import Recordings from './Recordings'; -import Sessions from './Sessions'; -import type { RingCentralInterface, ParentInterface } from '../../../../../types'; +import Recordings from "./Recordings"; +import Sessions from "./Sessions"; +import type { + ParentInterface, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; diff --git a/packages/core/src/paths/Webinar/History/V1/Recordings/Download/index.ts b/packages/core/src/paths/Webinar/History/V1/Recordings/Download/index.ts index c03b4648..333b0df3 100644 --- a/packages/core/src/paths/Webinar/History/V1/Recordings/Download/index.ts +++ b/packages/core/src/paths/Webinar/History/V1/Recordings/Download/index.ts @@ -1,6 +1,10 @@ -import type RecordingDownloadModel from '../../../../../../definitions/RecordingDownloadModel'; -import type RcwHistoryGetRecordingDownloadParameters from '../../../../../../definitions/RcwHistoryGetRecordingDownloadParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../../types'; +import type RecordingDownloadModel from "../../../../../../definitions/RecordingDownloadModel"; +import type RcwHistoryGetRecordingDownloadParameters from "../../../../../../definitions/RcwHistoryGetRecordingDownloadParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../../types"; class Index { public rc: RingCentralInterface; @@ -28,7 +32,11 @@ class Index { queryParams?: RcwHistoryGetRecordingDownloadParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(), + queryParams, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Webinar/History/V1/Recordings/index.ts b/packages/core/src/paths/Webinar/History/V1/Recordings/index.ts index 241f5ed6..6e4cffe9 100644 --- a/packages/core/src/paths/Webinar/History/V1/Recordings/index.ts +++ b/packages/core/src/paths/Webinar/History/V1/Recordings/index.ts @@ -1,15 +1,22 @@ -import Download from './Download'; -import type RecordingItemExtendedModel from '../../../../../definitions/RecordingItemExtendedModel'; -import type RecordingListResource from '../../../../../definitions/RecordingListResource'; -import type RcwHistoryListRecordingsParameters from '../../../../../definitions/RcwHistoryListRecordingsParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import Download from "./Download"; +import type RecordingItemExtendedModel from "../../../../../definitions/RecordingItemExtendedModel"; +import type RecordingListResource from "../../../../../definitions/RecordingListResource"; +import type RcwHistoryListRecordingsParameters from "../../../../../definitions/RcwHistoryListRecordingsParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; public _parent: ParentInterface; public recordingId: string | null; - public constructor(_parent: ParentInterface, recordingId: string | null = null) { + public constructor( + _parent: ParentInterface, + recordingId: string | null = null, + ) { this._parent = _parent; this.rc = _parent.rc; this.recordingId = recordingId; @@ -32,7 +39,11 @@ class Index { queryParams?: RcwHistoryListRecordingsParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(false), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(false), + queryParams, + restRequestConfig, + ); return r.data; } @@ -45,11 +56,17 @@ class Index { * Rate Limit Group: Heavy * App Permission: ReadWebinars */ - public async get(restRequestConfig?: RestRequestConfig): Promise { + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { if (this.recordingId === null) { - throw new Error('recordingId must be specified.'); + throw new Error("recordingId must be specified."); } - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } diff --git a/packages/core/src/paths/Webinar/History/V1/Sessions/index.ts b/packages/core/src/paths/Webinar/History/V1/Sessions/index.ts index 90a823c0..406ed4b2 100644 --- a/packages/core/src/paths/Webinar/History/V1/Sessions/index.ts +++ b/packages/core/src/paths/Webinar/History/V1/Sessions/index.ts @@ -1,6 +1,10 @@ -import type SessionGlobalListResource from '../../../../../definitions/SessionGlobalListResource'; -import type RcwHistoryListAllSessionsParameters from '../../../../../definitions/RcwHistoryListAllSessionsParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import type SessionGlobalListResource from "../../../../../definitions/SessionGlobalListResource"; +import type RcwHistoryListAllSessionsParameters from "../../../../../definitions/RcwHistoryListAllSessionsParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; @@ -27,7 +31,11 @@ class Index { queryParams?: RcwHistoryListAllSessionsParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(), + queryParams, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Webinar/History/V1/Webinars/Sessions/Invitees/index.ts b/packages/core/src/paths/Webinar/History/V1/Webinars/Sessions/Invitees/index.ts index 68586e40..53164839 100644 --- a/packages/core/src/paths/Webinar/History/V1/Webinars/Sessions/Invitees/index.ts +++ b/packages/core/src/paths/Webinar/History/V1/Webinars/Sessions/Invitees/index.ts @@ -1,14 +1,21 @@ -import type InviteeModel from '../../../../../../../definitions/InviteeModel'; -import type InviteeListResource from '../../../../../../../definitions/InviteeListResource'; -import type RcwHistoryListInviteesParameters from '../../../../../../../definitions/RcwHistoryListInviteesParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../../../types'; +import type InviteeModel from "../../../../../../../definitions/InviteeModel"; +import type InviteeListResource from "../../../../../../../definitions/InviteeListResource"; +import type RcwHistoryListInviteesParameters from "../../../../../../../definitions/RcwHistoryListInviteesParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../../../types"; class Index { public rc: RingCentralInterface; public _parent: ParentInterface; public inviteeId: string | null; - public constructor(_parent: ParentInterface, inviteeId: string | null = null) { + public constructor( + _parent: ParentInterface, + inviteeId: string | null = null, + ) { this._parent = _parent; this.rc = _parent.rc; this.inviteeId = inviteeId; @@ -32,7 +39,11 @@ class Index { queryParams?: RcwHistoryListInviteesParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(false), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(false), + queryParams, + restRequestConfig, + ); return r.data; } @@ -43,11 +54,17 @@ class Index { * Rate Limit Group: Heavy * App Permission: ReadWebinars */ - public async get(restRequestConfig?: RestRequestConfig): Promise { + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { if (this.inviteeId === null) { - throw new Error('inviteeId must be specified.'); + throw new Error("inviteeId must be specified."); } - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Webinar/History/V1/Webinars/Sessions/Participants/Self/index.ts b/packages/core/src/paths/Webinar/History/V1/Webinars/Sessions/Participants/Self/index.ts index 9342c974..ee5012e7 100644 --- a/packages/core/src/paths/Webinar/History/V1/Webinars/Sessions/Participants/Self/index.ts +++ b/packages/core/src/paths/Webinar/History/V1/Webinars/Sessions/Participants/Self/index.ts @@ -1,5 +1,9 @@ -import type ParticipantReducedModel from '../../../../../../../../definitions/ParticipantReducedModel'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../../../../types'; +import type ParticipantReducedModel from "../../../../../../../../definitions/ParticipantReducedModel"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../../../../types"; class Index { public rc: RingCentralInterface; @@ -21,8 +25,14 @@ class Index { * Rate Limit Group: Heavy * App Permission: ReadWebinars */ - public async get(restRequestConfig?: RestRequestConfig): Promise { - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Webinar/History/V1/Webinars/Sessions/Participants/index.ts b/packages/core/src/paths/Webinar/History/V1/Webinars/Sessions/Participants/index.ts index ebfc7df9..b129580d 100644 --- a/packages/core/src/paths/Webinar/History/V1/Webinars/Sessions/Participants/index.ts +++ b/packages/core/src/paths/Webinar/History/V1/Webinars/Sessions/Participants/index.ts @@ -1,7 +1,11 @@ -import Self from './Self'; -import type ParticipantListResource from '../../../../../../../definitions/ParticipantListResource'; -import type RcwHistoryListParticipantsParameters from '../../../../../../../definitions/RcwHistoryListParticipantsParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../../../types'; +import Self from "./Self"; +import type ParticipantListResource from "../../../../../../../definitions/ParticipantListResource"; +import type RcwHistoryListParticipantsParameters from "../../../../../../../definitions/RcwHistoryListParticipantsParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../../../types"; class Index { public rc: RingCentralInterface; @@ -26,7 +30,11 @@ class Index { queryParams?: RcwHistoryListParticipantsParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(), + queryParams, + restRequestConfig, + ); return r.data; } diff --git a/packages/core/src/paths/Webinar/History/V1/Webinars/Sessions/index.ts b/packages/core/src/paths/Webinar/History/V1/Webinars/Sessions/index.ts index 2b304c9d..4b82050b 100644 --- a/packages/core/src/paths/Webinar/History/V1/Webinars/Sessions/index.ts +++ b/packages/core/src/paths/Webinar/History/V1/Webinars/Sessions/index.ts @@ -1,14 +1,21 @@ -import Participants from './Participants'; -import Invitees from './Invitees'; -import type SessionResource from '../../../../../../definitions/SessionResource'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../../types'; +import Participants from "./Participants"; +import Invitees from "./Invitees"; +import type SessionResource from "../../../../../../definitions/SessionResource"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../../types"; class Index { public rc: RingCentralInterface; public _parent: ParentInterface; public sessionId: string | null; - public constructor(_parent: ParentInterface, sessionId: string | null = null) { + public constructor( + _parent: ParentInterface, + sessionId: string | null = null, + ) { this._parent = _parent; this.rc = _parent.rc; this.sessionId = sessionId; @@ -26,11 +33,17 @@ class Index { * Rate Limit Group: Heavy * App Permission: ReadWebinars */ - public async get(restRequestConfig?: RestRequestConfig): Promise { + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { if (this.sessionId === null) { - throw new Error('sessionId must be specified.'); + throw new Error("sessionId must be specified."); } - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } diff --git a/packages/core/src/paths/Webinar/History/V1/Webinars/index.ts b/packages/core/src/paths/Webinar/History/V1/Webinars/index.ts index a7a75673..4624937e 100644 --- a/packages/core/src/paths/Webinar/History/V1/Webinars/index.ts +++ b/packages/core/src/paths/Webinar/History/V1/Webinars/index.ts @@ -1,13 +1,20 @@ -import Sessions from './Sessions'; -import type WebinarResource from '../../../../../definitions/WebinarResource'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import Sessions from "./Sessions"; +import type WebinarResource from "../../../../../definitions/WebinarResource"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; public _parent: ParentInterface; public webinarId: string | null; - public constructor(_parent: ParentInterface, webinarId: string | null = null) { + public constructor( + _parent: ParentInterface, + webinarId: string | null = null, + ) { this._parent = _parent; this.rc = _parent.rc; this.webinarId = webinarId; @@ -25,11 +32,17 @@ class Index { * Rate Limit Group: Heavy * App Permission: ReadWebinars */ - public async get(restRequestConfig?: RestRequestConfig): Promise { + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { if (this.webinarId === null) { - throw new Error('webinarId must be specified.'); + throw new Error("webinarId must be specified."); } - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } diff --git a/packages/core/src/paths/Webinar/History/V1/index.ts b/packages/core/src/paths/Webinar/History/V1/index.ts index 8ff774ea..e9692e26 100644 --- a/packages/core/src/paths/Webinar/History/V1/index.ts +++ b/packages/core/src/paths/Webinar/History/V1/index.ts @@ -1,8 +1,8 @@ -import Recordings from './Recordings'; -import Sessions from './Sessions'; -import Webinars from './Webinars'; -import Company from './Company'; -import type { RingCentralInterface, ParentInterface } from '../../../../types'; +import Recordings from "./Recordings"; +import Sessions from "./Sessions"; +import Webinars from "./Webinars"; +import Company from "./Company"; +import type { ParentInterface, RingCentralInterface } from "../../../../types"; class Index { public rc: RingCentralInterface; diff --git a/packages/core/src/paths/Webinar/History/index.ts b/packages/core/src/paths/Webinar/History/index.ts index 737b42c8..bbe51c71 100644 --- a/packages/core/src/paths/Webinar/History/index.ts +++ b/packages/core/src/paths/Webinar/History/index.ts @@ -1,5 +1,5 @@ -import V1 from './V1'; -import type { RingCentralInterface, ParentInterface } from '../../../types'; +import V1 from "./V1"; +import type { ParentInterface, RingCentralInterface } from "../../../types"; class Index { public rc: RingCentralInterface; diff --git a/packages/core/src/paths/Webinar/Notifications/V1/Subscriptions/Renew/index.ts b/packages/core/src/paths/Webinar/Notifications/V1/Subscriptions/Renew/index.ts index 4e82d39e..0c2b9e94 100644 --- a/packages/core/src/paths/Webinar/Notifications/V1/Subscriptions/Renew/index.ts +++ b/packages/core/src/paths/Webinar/Notifications/V1/Subscriptions/Renew/index.ts @@ -1,5 +1,9 @@ -import type SubscriptionInfo from '../../../../../../definitions/SubscriptionInfo'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../../types'; +import type SubscriptionInfo from "../../../../../../definitions/SubscriptionInfo"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../../types"; class Index { public rc: RingCentralInterface; @@ -18,8 +22,15 @@ class Index { * Endpoint: /webinar/notifications/v1/subscriptions/{subscriptionId}/renew * Rate Limit Group: Light */ - public async post(restRequestConfig?: RestRequestConfig): Promise { - const r = await this.rc.post(this.path(), {}, undefined, restRequestConfig); + public async post( + restRequestConfig?: RestRequestConfig, + ): Promise { + const r = await this.rc.post( + this.path(), + {}, + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Webinar/Notifications/V1/Subscriptions/index.ts b/packages/core/src/paths/Webinar/Notifications/V1/Subscriptions/index.ts index eadee47b..62435224 100644 --- a/packages/core/src/paths/Webinar/Notifications/V1/Subscriptions/index.ts +++ b/packages/core/src/paths/Webinar/Notifications/V1/Subscriptions/index.ts @@ -1,16 +1,23 @@ -import Renew from './Renew'; -import type UpdateSubscriptionRequest from '../../../../../definitions/UpdateSubscriptionRequest'; -import type SubscriptionInfo from '../../../../../definitions/SubscriptionInfo'; -import type CreateWebhookSubscriptionRequest from '../../../../../definitions/CreateWebhookSubscriptionRequest'; -import type SubscriptionListResource from '../../../../../definitions/SubscriptionListResource'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import Renew from "./Renew"; +import type UpdateSubscriptionRequest from "../../../../../definitions/UpdateSubscriptionRequest"; +import type SubscriptionInfo from "../../../../../definitions/SubscriptionInfo"; +import type CreateWebhookSubscriptionRequest from "../../../../../definitions/CreateWebhookSubscriptionRequest"; +import type SubscriptionListResource from "../../../../../definitions/SubscriptionListResource"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; public _parent: ParentInterface; public subscriptionId: string | null; - public constructor(_parent: ParentInterface, subscriptionId: string | null = null) { + public constructor( + _parent: ParentInterface, + subscriptionId: string | null = null, + ) { this._parent = _parent; this.rc = _parent.rc; this.subscriptionId = subscriptionId; @@ -27,8 +34,14 @@ class Index { * Endpoint: /webinar/notifications/v1/subscriptions * Rate Limit Group: Light */ - public async list(restRequestConfig?: RestRequestConfig): Promise { - const r = await this.rc.get(this.path(false), undefined, restRequestConfig); + public async list( + restRequestConfig?: RestRequestConfig, + ): Promise { + const r = await this.rc.get( + this.path(false), + undefined, + restRequestConfig, + ); return r.data; } @@ -57,11 +70,17 @@ class Index { * Endpoint: /webinar/notifications/v1/subscriptions/{subscriptionId} * Rate Limit Group: Light */ - public async get(restRequestConfig?: RestRequestConfig): Promise { + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { if (this.subscriptionId === null) { - throw new Error('subscriptionId must be specified.'); + throw new Error("subscriptionId must be specified."); } - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } @@ -83,9 +102,14 @@ class Index { restRequestConfig?: RestRequestConfig, ): Promise { if (this.subscriptionId === null) { - throw new Error('subscriptionId must be specified.'); + throw new Error("subscriptionId must be specified."); } - const r = await this.rc.put(this.path(), updateSubscriptionRequest, undefined, restRequestConfig); + const r = await this.rc.put( + this.path(), + updateSubscriptionRequest, + undefined, + restRequestConfig, + ); return r.data; } @@ -97,9 +121,14 @@ class Index { */ public async delete(restRequestConfig?: RestRequestConfig): Promise { if (this.subscriptionId === null) { - throw new Error('subscriptionId must be specified.'); + throw new Error("subscriptionId must be specified."); } - const r = await this.rc.delete(this.path(), {}, undefined, restRequestConfig); + const r = await this.rc.delete( + this.path(), + {}, + undefined, + restRequestConfig, + ); return r.data; } diff --git a/packages/core/src/paths/Webinar/Notifications/V1/index.ts b/packages/core/src/paths/Webinar/Notifications/V1/index.ts index d4010331..4ba13b93 100644 --- a/packages/core/src/paths/Webinar/Notifications/V1/index.ts +++ b/packages/core/src/paths/Webinar/Notifications/V1/index.ts @@ -1,5 +1,5 @@ -import Subscriptions from './Subscriptions'; -import type { RingCentralInterface, ParentInterface } from '../../../../types'; +import Subscriptions from "./Subscriptions"; +import type { ParentInterface, RingCentralInterface } from "../../../../types"; class Index { public rc: RingCentralInterface; diff --git a/packages/core/src/paths/Webinar/Notifications/index.ts b/packages/core/src/paths/Webinar/Notifications/index.ts index 5503c25e..de1ba04d 100644 --- a/packages/core/src/paths/Webinar/Notifications/index.ts +++ b/packages/core/src/paths/Webinar/Notifications/index.ts @@ -1,5 +1,5 @@ -import V1 from './V1'; -import type { RingCentralInterface, ParentInterface } from '../../../types'; +import V1 from "./V1"; +import type { ParentInterface, RingCentralInterface } from "../../../types"; class Index { public rc: RingCentralInterface; diff --git a/packages/core/src/paths/Webinar/Registration/V1/Sessions/Registrants/index.ts b/packages/core/src/paths/Webinar/Registration/V1/Sessions/Registrants/index.ts index b0012cad..b9e5b9b3 100644 --- a/packages/core/src/paths/Webinar/Registration/V1/Sessions/Registrants/index.ts +++ b/packages/core/src/paths/Webinar/Registration/V1/Sessions/Registrants/index.ts @@ -1,17 +1,24 @@ -import type RegistrantModelWithQuestionnaire from '../../../../../../definitions/RegistrantModelWithQuestionnaire'; -import type RcwRegGetRegistrantParameters from '../../../../../../definitions/RcwRegGetRegistrantParameters'; -import type RegistrantModelResponsePostWithQuestionnaire from '../../../../../../definitions/RegistrantModelResponsePostWithQuestionnaire'; -import type RegistrantBaseModelWithQuestionnaire from '../../../../../../definitions/RegistrantBaseModelWithQuestionnaire'; -import type RegistrantListResource from '../../../../../../definitions/RegistrantListResource'; -import type RcwRegListRegistrantsParameters from '../../../../../../definitions/RcwRegListRegistrantsParameters'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../../types'; +import type RegistrantModelWithQuestionnaire from "../../../../../../definitions/RegistrantModelWithQuestionnaire"; +import type RcwRegGetRegistrantParameters from "../../../../../../definitions/RcwRegGetRegistrantParameters"; +import type RegistrantModelResponsePostWithQuestionnaire from "../../../../../../definitions/RegistrantModelResponsePostWithQuestionnaire"; +import type RegistrantBaseModelWithQuestionnaire from "../../../../../../definitions/RegistrantBaseModelWithQuestionnaire"; +import type RegistrantListResource from "../../../../../../definitions/RegistrantListResource"; +import type RcwRegListRegistrantsParameters from "../../../../../../definitions/RcwRegListRegistrantsParameters"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../../types"; class Index { public rc: RingCentralInterface; public _parent: ParentInterface; public registrantId: string | null; - public constructor(_parent: ParentInterface, registrantId: string | null = null) { + public constructor( + _parent: ParentInterface, + registrantId: string | null = null, + ) { this._parent = _parent; this.rc = _parent.rc; this.registrantId = registrantId; @@ -37,7 +44,11 @@ class Index { queryParams?: RcwRegListRegistrantsParameters, restRequestConfig?: RestRequestConfig, ): Promise { - const r = await this.rc.get(this.path(false), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(false), + queryParams, + restRequestConfig, + ); return r.data; } @@ -83,9 +94,13 @@ class Index { restRequestConfig?: RestRequestConfig, ): Promise { if (this.registrantId === null) { - throw new Error('registrantId must be specified.'); + throw new Error("registrantId must be specified."); } - const r = await this.rc.get(this.path(), queryParams, restRequestConfig); + const r = await this.rc.get( + this.path(), + queryParams, + restRequestConfig, + ); return r.data; } @@ -104,9 +119,14 @@ class Index { */ public async delete(restRequestConfig?: RestRequestConfig): Promise { if (this.registrantId === null) { - throw new Error('registrantId must be specified.'); + throw new Error("registrantId must be specified."); } - const r = await this.rc.delete(this.path(), {}, undefined, restRequestConfig); + const r = await this.rc.delete( + this.path(), + {}, + undefined, + restRequestConfig, + ); return r.data; } } diff --git a/packages/core/src/paths/Webinar/Registration/V1/Sessions/index.ts b/packages/core/src/paths/Webinar/Registration/V1/Sessions/index.ts index 7710663c..0a06fab9 100644 --- a/packages/core/src/paths/Webinar/Registration/V1/Sessions/index.ts +++ b/packages/core/src/paths/Webinar/Registration/V1/Sessions/index.ts @@ -1,13 +1,20 @@ -import Registrants from './Registrants'; -import type RegSessionModel from '../../../../../definitions/RegSessionModel'; -import type { RingCentralInterface, ParentInterface, RestRequestConfig } from '../../../../../types'; +import Registrants from "./Registrants"; +import type RegSessionModel from "../../../../../definitions/RegSessionModel"; +import type { + ParentInterface, + RestRequestConfig, + RingCentralInterface, +} from "../../../../../types"; class Index { public rc: RingCentralInterface; public _parent: ParentInterface; public sessionId: string | null; - public constructor(_parent: ParentInterface, sessionId: string | null = null) { + public constructor( + _parent: ParentInterface, + sessionId: string | null = null, + ) { this._parent = _parent; this.rc = _parent.rc; this.sessionId = sessionId; @@ -29,11 +36,17 @@ class Index { * Rate Limit Group: Heavy * App Permission: ReadWebinars */ - public async get(restRequestConfig?: RestRequestConfig): Promise { + public async get( + restRequestConfig?: RestRequestConfig, + ): Promise { if (this.sessionId === null) { - throw new Error('sessionId must be specified.'); + throw new Error("sessionId must be specified."); } - const r = await this.rc.get(this.path(), undefined, restRequestConfig); + const r = await this.rc.get( + this.path(), + undefined, + restRequestConfig, + ); return r.data; } @@ -57,9 +70,14 @@ class Index { restRequestConfig?: RestRequestConfig, ): Promise { if (this.sessionId === null) { - throw new Error('sessionId must be specified.'); + throw new Error("sessionId must be specified."); } - const r = await this.rc.patch(this.path(), regSessionModel, undefined, restRequestConfig); + const r = await this.rc.patch( + this.path(), + regSessionModel, + undefined, + restRequestConfig, + ); return r.data; } diff --git a/packages/core/src/paths/Webinar/Registration/V1/index.ts b/packages/core/src/paths/Webinar/Registration/V1/index.ts index b960d259..97b987e4 100644 --- a/packages/core/src/paths/Webinar/Registration/V1/index.ts +++ b/packages/core/src/paths/Webinar/Registration/V1/index.ts @@ -1,5 +1,5 @@ -import Sessions from './Sessions'; -import type { RingCentralInterface, ParentInterface } from '../../../../types'; +import Sessions from "./Sessions"; +import type { ParentInterface, RingCentralInterface } from "../../../../types"; class Index { public rc: RingCentralInterface; diff --git a/packages/core/src/paths/Webinar/Registration/index.ts b/packages/core/src/paths/Webinar/Registration/index.ts index f0775626..5e21ce7f 100644 --- a/packages/core/src/paths/Webinar/Registration/index.ts +++ b/packages/core/src/paths/Webinar/Registration/index.ts @@ -1,5 +1,5 @@ -import V1 from './V1'; -import type { RingCentralInterface, ParentInterface } from '../../../types'; +import V1 from "./V1"; +import type { ParentInterface, RingCentralInterface } from "../../../types"; class Index { public rc: RingCentralInterface; diff --git a/packages/core/src/paths/Webinar/index.ts b/packages/core/src/paths/Webinar/index.ts index b88b5dd3..cca98fcb 100644 --- a/packages/core/src/paths/Webinar/index.ts +++ b/packages/core/src/paths/Webinar/index.ts @@ -1,8 +1,8 @@ -import Configuration from './Configuration'; -import Notifications from './Notifications'; -import Registration from './Registration'; -import History from './History'; -import type { RingCentralInterface } from '../../types'; +import Configuration from "./Configuration"; +import Notifications from "./Notifications"; +import Registration from "./Registration"; +import History from "./History"; +import type { RingCentralInterface } from "../../types"; class Index { public rc: RingCentralInterface; @@ -11,7 +11,7 @@ class Index { this.rc = rc; } public path(): string { - return '/webinar'; + return "/webinar"; } public history(): History { diff --git a/packages/core/src/samples.md b/packages/core/src/samples.md index c478fa4a..ae1ce22c 100644 --- a/packages/core/src/samples.md +++ b/packages/core/src/samples.md @@ -21,7 +21,8 @@ await rc.revoke(); - `result` is of type [ApiVersionsList](./definitions/ApiVersionsList.ts) -[Try it out](https://developer.ringcentral.com/api-reference#API-Info-readAPIVersions) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#API-Info-readAPIVersions) +in API Explorer. ## readAPIVersion @@ -45,7 +46,8 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - `result` is of type [ApiVersionInfo](./definitions/ApiVersionInfo.ts) -[Try it out](https://developer.ringcentral.com/api-reference#API-Info-readAPIVersion) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#API-Info-readAPIVersion) +in API Explorer. ## scimSearchViaGet2 @@ -67,10 +69,13 @@ await rc.revoke(); ``` - Parameter `version` is optional with default value `v2` -- `scimSearchViaGet2Parameters` is of type [ScimSearchViaGet2Parameters](./definitions/ScimSearchViaGet2Parameters.ts) -- `result` is of type [ScimUserSearchResponse](./definitions/ScimUserSearchResponse.ts) +- `scimSearchViaGet2Parameters` is of type + [ScimSearchViaGet2Parameters](./definitions/ScimSearchViaGet2Parameters.ts) +- `result` is of type + [ScimUserSearchResponse](./definitions/ScimUserSearchResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#SCIM-scimSearchViaGet2) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#SCIM-scimSearchViaGet2) +in API Explorer. ## scimCreateUser2 @@ -95,7 +100,8 @@ await rc.revoke(); - `scimUser` is of type [ScimUser](./definitions/ScimUser.ts) - `result` is of type [ScimUserResponse](./definitions/ScimUserResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#SCIM-scimCreateUser2) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#SCIM-scimCreateUser2) +in API Explorer. ## scimGetUser2 @@ -119,7 +125,8 @@ await rc.revoke(); - Parameter `version` is optional with default value `v2` - `result` is of type [ScimUserResponse](./definitions/ScimUserResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#SCIM-scimGetUser2) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#SCIM-scimGetUser2) +in API Explorer. ## scimUpdateUser2 @@ -144,7 +151,8 @@ await rc.revoke(); - `scimUser` is of type [ScimUser](./definitions/ScimUser.ts) - `result` is of type [ScimUserResponse](./definitions/ScimUserResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#SCIM-scimUpdateUser2) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#SCIM-scimUpdateUser2) +in API Explorer. ## scimDeleteUser2 @@ -168,7 +176,8 @@ await rc.revoke(); - Parameter `version` is optional with default value `v2` - `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#SCIM-scimDeleteUser2) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#SCIM-scimDeleteUser2) +in API Explorer. ## scimPatchUser2 @@ -193,7 +202,8 @@ await rc.revoke(); - `scimUserPatch` is of type [ScimUserPatch](./definitions/ScimUserPatch.ts) - `result` is of type [ScimUserResponse](./definitions/ScimUserResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#SCIM-scimPatchUser2) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#SCIM-scimPatchUser2) +in API Explorer. ## scimListSchemas2 @@ -215,9 +225,11 @@ await rc.revoke(); ``` - Parameter `version` is optional with default value `v2` -- `result` is of type [ScimSchemaSearchResponse](./definitions/ScimSchemaSearchResponse.ts) +- `result` is of type + [ScimSchemaSearchResponse](./definitions/ScimSchemaSearchResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#SCIM-scimListSchemas2) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#SCIM-scimListSchemas2) +in API Explorer. ## scimGetSchema2 @@ -241,7 +253,8 @@ await rc.revoke(); - Parameter `version` is optional with default value `v2` - `result` is of type [ScimSchemaResponse](./definitions/ScimSchemaResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#SCIM-scimGetSchema2) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#SCIM-scimGetSchema2) +in API Explorer. ## readAccountInfo @@ -264,9 +277,11 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `result` is of type [GetAccountInfoResponse](./definitions/GetAccountInfoResponse.ts) +- `result` is of type + [GetAccountInfoResponse](./definitions/GetAccountInfoResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Company-readAccountInfo) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Company-readAccountInfo) +in API Explorer. ## caiJobStatusGet @@ -289,7 +304,8 @@ await rc.revoke(); - `result` is of type [JobStatusResponse](./definitions/JobStatusResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Status-caiJobStatusGet) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Status-caiJobStatusGet) +in API Explorer. ## getBridge @@ -310,10 +326,12 @@ var result = await rc.rcvideo().v2().bridges(bridgeId).get(getBridgeParameters); await rc.revoke(); ``` -- `getBridgeParameters` is of type [GetBridgeParameters](./definitions/GetBridgeParameters.ts) +- `getBridgeParameters` is of type + [GetBridgeParameters](./definitions/GetBridgeParameters.ts) - `result` is of type [BridgeResponse](./definitions/BridgeResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Bridge-Management-getBridge) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Bridge-Management-getBridge) +in API Explorer. ## deleteBridge @@ -336,7 +354,8 @@ await rc.revoke(); - `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Bridge-Management-deleteBridge) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Bridge-Management-deleteBridge) +in API Explorer. ## updateBridge @@ -353,14 +372,18 @@ Update Bridge ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.rcvideo().v2().bridges(bridgeId).patch(updateBridgeRequest); +var result = await rc.rcvideo().v2().bridges(bridgeId).patch( + updateBridgeRequest, +); await rc.revoke(); ``` -- `updateBridgeRequest` is of type [UpdateBridgeRequest](./definitions/UpdateBridgeRequest.ts) +- `updateBridgeRequest` is of type + [UpdateBridgeRequest](./definitions/UpdateBridgeRequest.ts) - `result` is of type [BridgeResponse](./definitions/BridgeResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Bridge-Management-updateBridge) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Bridge-Management-updateBridge) +in API Explorer. ## scimListResourceTypes2 @@ -382,9 +405,11 @@ await rc.revoke(); ``` - Parameter `version` is optional with default value `v2` -- `result` is of type [ScimResourceTypeSearchResponse](./definitions/ScimResourceTypeSearchResponse.ts) +- `result` is of type + [ScimResourceTypeSearchResponse](./definitions/ScimResourceTypeSearchResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#SCIM-scimListResourceTypes2) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#SCIM-scimListResourceTypes2) +in API Explorer. ## scimGetResourceType2 @@ -406,9 +431,11 @@ await rc.revoke(); ``` - Parameter `version` is optional with default value `v2` -- `result` is of type [ScimResourceTypeResponse](./definitions/ScimResourceTypeResponse.ts) +- `result` is of type + [ScimResourceTypeResponse](./definitions/ScimResourceTypeResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#SCIM-scimGetResourceType2) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#SCIM-scimGetResourceType2) +in API Explorer. ## getToken @@ -429,10 +456,12 @@ var result = await rc.restapi().oauth().token().post(getTokenRequest); await rc.revoke(); ``` -- `getTokenRequest` is of type [GetTokenRequest](./definitions/GetTokenRequest.ts) +- `getTokenRequest` is of type + [GetTokenRequest](./definitions/GetTokenRequest.ts) - `result` is of type [TokenInfo](./definitions/TokenInfo.ts) -[Try it out](https://developer.ringcentral.com/api-reference#OAuth-and-OpenID-Connect-getToken) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#OAuth-and-OpenID-Connect-getToken) +in API Explorer. ## caiSpeakerDiarize @@ -449,15 +478,21 @@ Speaker Diarization ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.ai().audio().v1().async().speakerDiarize().post(diarizeInput, caiSpeakerDiarizeParameters); +var result = await rc.ai().audio().v1().async().speakerDiarize().post( + diarizeInput, + caiSpeakerDiarizeParameters, +); await rc.revoke(); ``` - `diarizeInput` is of type [DiarizeInput](./definitions/DiarizeInput.ts) -- `caiSpeakerDiarizeParameters` is of type [CaiSpeakerDiarizeParameters](./definitions/CaiSpeakerDiarizeParameters.ts) -- `result` is of type [CaiAsyncApiResponse](./definitions/CaiAsyncApiResponse.ts) +- `caiSpeakerDiarizeParameters` is of type + [CaiSpeakerDiarizeParameters](./definitions/CaiSpeakerDiarizeParameters.ts) +- `result` is of type + [CaiAsyncApiResponse](./definitions/CaiAsyncApiResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Audio-caiSpeakerDiarize) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Audio-caiSpeakerDiarize) +in API Explorer. ## caiSpeakerIdentify @@ -474,15 +509,21 @@ Speaker Identification ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.ai().audio().v1().async().speakerIdentify().post(identifyInput, caiSpeakerIdentifyParameters); +var result = await rc.ai().audio().v1().async().speakerIdentify().post( + identifyInput, + caiSpeakerIdentifyParameters, +); await rc.revoke(); ``` - `identifyInput` is of type [IdentifyInput](./definitions/IdentifyInput.ts) -- `caiSpeakerIdentifyParameters` is of type [CaiSpeakerIdentifyParameters](./definitions/CaiSpeakerIdentifyParameters.ts) -- `result` is of type [CaiAsyncApiResponse](./definitions/CaiAsyncApiResponse.ts) +- `caiSpeakerIdentifyParameters` is of type + [CaiSpeakerIdentifyParameters](./definitions/CaiSpeakerIdentifyParameters.ts) +- `result` is of type + [CaiAsyncApiResponse](./definitions/CaiAsyncApiResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Audio-caiSpeakerIdentify) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Audio-caiSpeakerIdentify) +in API Explorer. ## caiEnrollmentsList @@ -499,14 +540,19 @@ List Enrolled Speakers ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.ai().audio().v1().enrollments().list(caiEnrollmentsListParameters); +var result = await rc.ai().audio().v1().enrollments().list( + caiEnrollmentsListParameters, +); await rc.revoke(); ``` -- `caiEnrollmentsListParameters` is of type [CaiEnrollmentsListParameters](./definitions/CaiEnrollmentsListParameters.ts) -- `result` is of type [ListEnrolledSpeakers](./definitions/ListEnrolledSpeakers.ts) +- `caiEnrollmentsListParameters` is of type + [CaiEnrollmentsListParameters](./definitions/CaiEnrollmentsListParameters.ts) +- `result` is of type + [ListEnrolledSpeakers](./definitions/ListEnrolledSpeakers.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Audio-caiEnrollmentsList) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Audio-caiEnrollmentsList) +in API Explorer. ## caiEnrollmentsCreate @@ -527,10 +573,12 @@ var result = await rc.ai().audio().v1().enrollments().post(enrollmentInput); await rc.revoke(); ``` -- `enrollmentInput` is of type [EnrollmentInput](./definitions/EnrollmentInput.ts) +- `enrollmentInput` is of type + [EnrollmentInput](./definitions/EnrollmentInput.ts) - `result` is of type [EnrollmentStatus](./definitions/EnrollmentStatus.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Audio-caiEnrollmentsCreate) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Audio-caiEnrollmentsCreate) +in API Explorer. ## caiEnrollmentsGet @@ -553,7 +601,8 @@ await rc.revoke(); - `result` is of type [EnrollmentStatus](./definitions/EnrollmentStatus.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Audio-caiEnrollmentsGet) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Audio-caiEnrollmentsGet) +in API Explorer. ## caiEnrollmentsDelete @@ -576,7 +625,8 @@ await rc.revoke(); - `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Audio-caiEnrollmentsDelete) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Audio-caiEnrollmentsDelete) +in API Explorer. ## caiEnrollmentsUpdate @@ -593,14 +643,18 @@ Update Speaker Enrollment ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.ai().audio().v1().enrollments(speakerId).patch(enrollmentPatchInput); +var result = await rc.ai().audio().v1().enrollments(speakerId).patch( + enrollmentPatchInput, +); await rc.revoke(); ``` -- `enrollmentPatchInput` is of type [EnrollmentPatchInput](./definitions/EnrollmentPatchInput.ts) +- `enrollmentPatchInput` is of type + [EnrollmentPatchInput](./definitions/EnrollmentPatchInput.ts) - `result` is of type [EnrollmentStatus](./definitions/EnrollmentStatus.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Audio-caiEnrollmentsUpdate) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Audio-caiEnrollmentsUpdate) +in API Explorer. ## createBridge @@ -617,16 +671,19 @@ Create Bridge ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.rcvideo().v2().account(accountId).extension(extensionId).bridges().post(createBridgeRequest); +var result = await rc.rcvideo().v2().account(accountId).extension(extensionId) + .bridges().post(createBridgeRequest); await rc.revoke(); ``` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `createBridgeRequest` is of type [CreateBridgeRequest](./definitions/CreateBridgeRequest.ts) +- `createBridgeRequest` is of type + [CreateBridgeRequest](./definitions/CreateBridgeRequest.ts) - `result` is of type [BridgeResponse](./definitions/BridgeResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Bridge-Management-createBridge) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Bridge-Management-createBridge) +in API Explorer. ## revokeToken @@ -643,15 +700,21 @@ OAuth 2.0 Token Revocation Endpoint ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi().oauth().revoke().post(revokeTokenRequest, revokeTokenParameters); +var result = await rc.restapi().oauth().revoke().post( + revokeTokenRequest, + revokeTokenParameters, +); await rc.revoke(); ``` -- `revokeTokenRequest` is of type [RevokeTokenRequest](./definitions/RevokeTokenRequest.ts) -- `revokeTokenParameters` is of type [RevokeTokenParameters](./definitions/RevokeTokenParameters.ts) +- `revokeTokenRequest` is of type + [RevokeTokenRequest](./definitions/RevokeTokenRequest.ts) +- `revokeTokenParameters` is of type + [RevokeTokenParameters](./definitions/RevokeTokenParameters.ts) - `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#OAuth-and-OpenID-Connect-revokeToken) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#OAuth-and-OpenID-Connect-revokeToken) +in API Explorer. ## getAccountInfoV2 @@ -674,7 +737,8 @@ await rc.revoke(); - `result` is of type [AccountInfo](./definitions/AccountInfo.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Company-getAccountInfoV2) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Company-getAccountInfoV2) +in API Explorer. ## addDeviceToInventory @@ -691,14 +755,19 @@ Add Phone to Inventory ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi().v2().accounts(accountId).deviceInventory().post(addDeviceToInventoryRequest); +var result = await rc.restapi().v2().accounts(accountId).deviceInventory().post( + addDeviceToInventoryRequest, +); await rc.revoke(); ``` -- `addDeviceToInventoryRequest` is of type [AddDeviceToInventoryRequest](./definitions/AddDeviceToInventoryRequest.ts) -- `result` is of type [AddDeviceToInventoryResponse](./definitions/AddDeviceToInventoryResponse.ts) +- `addDeviceToInventoryRequest` is of type + [AddDeviceToInventoryRequest](./definitions/AddDeviceToInventoryRequest.ts) +- `result` is of type + [AddDeviceToInventoryResponse](./definitions/AddDeviceToInventoryResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Devices-addDeviceToInventory) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Devices-addDeviceToInventory) +in API Explorer. ## deleteDeviceFromInventory @@ -715,14 +784,18 @@ Delete Device from Inventory ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi().v2().accounts(accountId).deviceInventory().delete(deleteDeviceFromInventoryRequest); +var result = await rc.restapi().v2().accounts(accountId).deviceInventory() + .delete(deleteDeviceFromInventoryRequest); await rc.revoke(); ``` -- `deleteDeviceFromInventoryRequest` is of type [DeleteDeviceFromInventoryRequest](./definitions/DeleteDeviceFromInventoryRequest.ts) -- `result` is of type [DeleteDeviceFromInventoryResponse](./definitions/DeleteDeviceFromInventoryResponse.ts) +- `deleteDeviceFromInventoryRequest` is of type + [DeleteDeviceFromInventoryRequest](./definitions/DeleteDeviceFromInventoryRequest.ts) +- `result` is of type + [DeleteDeviceFromInventoryResponse](./definitions/DeleteDeviceFromInventoryResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Devices-deleteDeviceFromInventory) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Devices-deleteDeviceFromInventory) +in API Explorer. ## bulkAddDevicesV2 @@ -739,14 +812,18 @@ Add BYOD Devices ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi().v2().accounts(accountId).devices().bulkAdd().post(bulkAddDevicesRequest); +var result = await rc.restapi().v2().accounts(accountId).devices().bulkAdd() + .post(bulkAddDevicesRequest); await rc.revoke(); ``` -- `bulkAddDevicesRequest` is of type [BulkAddDevicesRequest](./definitions/BulkAddDevicesRequest.ts) -- `result` is of type [BulkAddDevicesResponse](./definitions/BulkAddDevicesResponse.ts) +- `bulkAddDevicesRequest` is of type + [BulkAddDevicesRequest](./definitions/BulkAddDevicesRequest.ts) +- `result` is of type + [BulkAddDevicesResponse](./definitions/BulkAddDevicesResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Devices-bulkAddDevicesV2) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Devices-bulkAddDevicesV2) +in API Explorer. ## auditTrailSearch @@ -774,10 +851,13 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `accountHistorySearchPublicRequest` is of type [AccountHistorySearchPublicRequest](./definitions/AccountHistorySearchPublicRequest.ts) -- `result` is of type [AccountHistorySearchPublicResponse](./definitions/AccountHistorySearchPublicResponse.ts) +- `accountHistorySearchPublicRequest` is of type + [AccountHistorySearchPublicRequest](./definitions/AccountHistorySearchPublicRequest.ts) +- `result` is of type + [AccountHistorySearchPublicResponse](./definitions/AccountHistorySearchPublicResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Audit-Trail-auditTrailSearch) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Audit-Trail-auditTrailSearch) +in API Explorer. ## listCallQueueMembers @@ -805,10 +885,12 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `listCallQueueMembersParameters` is of type [ListCallQueueMembersParameters](./definitions/ListCallQueueMembersParameters.ts) +- `listCallQueueMembersParameters` is of type + [ListCallQueueMembersParameters](./definitions/ListCallQueueMembersParameters.ts) - `result` is of type [CallQueueMembers](./definitions/CallQueueMembers.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Call-Queues-listCallQueueMembers) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Queues-listCallQueueMembers) +in API Explorer. ## readCallQueuePresence @@ -825,7 +907,8 @@ Get Call Queue Presence ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).callQueues(groupId).presence().get(); +var result = await rc.restapi(apiVersion).account(accountId).callQueues(groupId) + .presence().get(); await rc.revoke(); ``` @@ -833,7 +916,8 @@ await rc.revoke(); - Parameter `accountId` is optional with default value `~` - `result` is of type [CallQueuePresence](./definitions/CallQueuePresence.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Presence-readCallQueuePresence) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Presence-readCallQueuePresence) +in API Explorer. ## updateCallQueuePresence @@ -861,10 +945,12 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `callQueueUpdatePresence` is of type [CallQueueUpdatePresence](./definitions/CallQueueUpdatePresence.ts) +- `callQueueUpdatePresence` is of type + [CallQueueUpdatePresence](./definitions/CallQueueUpdatePresence.ts) - `result` is of type [CallQueuePresence](./definitions/CallQueuePresence.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Presence-updateCallQueuePresence) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Presence-updateCallQueuePresence) +in API Explorer. ## readDevice @@ -881,16 +967,19 @@ Get Device ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).device(deviceId).get(readDeviceParameters); +var result = await rc.restapi(apiVersion).account(accountId).device(deviceId) + .get(readDeviceParameters); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `readDeviceParameters` is of type [ReadDeviceParameters](./definitions/ReadDeviceParameters.ts) +- `readDeviceParameters` is of type + [ReadDeviceParameters](./definitions/ReadDeviceParameters.ts) - `result` is of type [DeviceResource](./definitions/DeviceResource.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Devices-readDevice) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Devices-readDevice) +in API Explorer. ## updateDevice @@ -917,11 +1006,14 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `accountDeviceUpdate` is of type [AccountDeviceUpdate](./definitions/AccountDeviceUpdate.ts) -- `updateDeviceParameters` is of type [UpdateDeviceParameters](./definitions/UpdateDeviceParameters.ts) +- `accountDeviceUpdate` is of type + [AccountDeviceUpdate](./definitions/AccountDeviceUpdate.ts) +- `updateDeviceParameters` is of type + [UpdateDeviceParameters](./definitions/UpdateDeviceParameters.ts) - `result` is of type [DeviceResource](./definitions/DeviceResource.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Devices-updateDevice) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Devices-updateDevice) +in API Explorer. ## listDirectoryEntries @@ -938,16 +1030,19 @@ Get Company Directory Entries ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).directory().entries().list(listDirectoryEntriesParameters); +var result = await rc.restapi(apiVersion).account(accountId).directory() + .entries().list(listDirectoryEntriesParameters); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `listDirectoryEntriesParameters` is of type [ListDirectoryEntriesParameters](./definitions/ListDirectoryEntriesParameters.ts) +- `listDirectoryEntriesParameters` is of type + [ListDirectoryEntriesParameters](./definitions/ListDirectoryEntriesParameters.ts) - `result` is of type [DirectoryResource](./definitions/DirectoryResource.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Internal-Contacts-listDirectoryEntries) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Internal-Contacts-listDirectoryEntries) +in API Explorer. ## readDirectoryEntry @@ -975,10 +1070,12 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `readDirectoryEntryParameters` is of type [ReadDirectoryEntryParameters](./definitions/ReadDirectoryEntryParameters.ts) +- `readDirectoryEntryParameters` is of type + [ReadDirectoryEntryParameters](./definitions/ReadDirectoryEntryParameters.ts) - `result` is of type [ContactResource](./definitions/ContactResource.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Internal-Contacts-readDirectoryEntry) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Internal-Contacts-readDirectoryEntry) +in API Explorer. ## readDirectoryFederation @@ -1006,10 +1103,12 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `readDirectoryFederationParameters` is of type [ReadDirectoryFederationParameters](./definitions/ReadDirectoryFederationParameters.ts) +- `readDirectoryFederationParameters` is of type + [ReadDirectoryFederationParameters](./definitions/ReadDirectoryFederationParameters.ts) - `result` is of type [FederationResource](./definitions/FederationResource.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Internal-Contacts-readDirectoryFederation) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Internal-Contacts-readDirectoryFederation) +in API Explorer. ## listEmergencyLocations @@ -1036,10 +1135,13 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `listEmergencyLocationsParameters` is of type [ListEmergencyLocationsParameters](./definitions/ListEmergencyLocationsParameters.ts) -- `result` is of type [EmergencyLocationsResource](./definitions/EmergencyLocationsResource.ts) +- `listEmergencyLocationsParameters` is of type + [ListEmergencyLocationsParameters](./definitions/ListEmergencyLocationsParameters.ts) +- `result` is of type + [EmergencyLocationsResource](./definitions/EmergencyLocationsResource.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-listEmergencyLocations) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-listEmergencyLocations) +in API Explorer. ## createEmergencyLocation @@ -1066,10 +1168,13 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `emergencyLocationRequestResource` is of type [EmergencyLocationRequestResource](./definitions/EmergencyLocationRequestResource.ts) -- `result` is of type [EmergencyLocationResponseResource](./definitions/EmergencyLocationResponseResource.ts) +- `emergencyLocationRequestResource` is of type + [EmergencyLocationRequestResource](./definitions/EmergencyLocationRequestResource.ts) +- `result` is of type + [EmergencyLocationResponseResource](./definitions/EmergencyLocationResponseResource.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-createEmergencyLocation) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-createEmergencyLocation) +in API Explorer. ## readEmergencyLocation @@ -1096,10 +1201,13 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `readEmergencyLocationParameters` is of type [ReadEmergencyLocationParameters](./definitions/ReadEmergencyLocationParameters.ts) -- `result` is of type [CommonEmergencyLocationResource](./definitions/CommonEmergencyLocationResource.ts) +- `readEmergencyLocationParameters` is of type + [ReadEmergencyLocationParameters](./definitions/ReadEmergencyLocationParameters.ts) +- `result` is of type + [CommonEmergencyLocationResource](./definitions/CommonEmergencyLocationResource.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-readEmergencyLocation) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-readEmergencyLocation) +in API Explorer. ## updateEmergencyLocation @@ -1126,10 +1234,13 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `emergencyLocationRequestResource` is of type [EmergencyLocationRequestResource](./definitions/EmergencyLocationRequestResource.ts) -- `result` is of type [EmergencyLocationResponseResource](./definitions/EmergencyLocationResponseResource.ts) +- `emergencyLocationRequestResource` is of type + [EmergencyLocationRequestResource](./definitions/EmergencyLocationRequestResource.ts) +- `result` is of type + [EmergencyLocationResponseResource](./definitions/EmergencyLocationResponseResource.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-updateEmergencyLocation) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-updateEmergencyLocation) +in API Explorer. ## deleteEmergencyLocation @@ -1156,10 +1267,12 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `deleteEmergencyLocationParameters` is of type [DeleteEmergencyLocationParameters](./definitions/DeleteEmergencyLocationParameters.ts) +- `deleteEmergencyLocationParameters` is of type + [DeleteEmergencyLocationParameters](./definitions/DeleteEmergencyLocationParameters.ts) - `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-deleteEmergencyLocation) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-deleteEmergencyLocation) +in API Explorer. ## extensionBulkUpdate @@ -1176,16 +1289,20 @@ Update Multiple Extensions ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).extensionBulkUpdate().post(extensionBulkUpdateRequest); +var result = await rc.restapi(apiVersion).account(accountId) + .extensionBulkUpdate().post(extensionBulkUpdateRequest); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `extensionBulkUpdateRequest` is of type [ExtensionBulkUpdateRequest](./definitions/ExtensionBulkUpdateRequest.ts) -- `result` is of type [ExtensionBulkUpdateTaskResource](./definitions/ExtensionBulkUpdateTaskResource.ts) +- `extensionBulkUpdateRequest` is of type + [ExtensionBulkUpdateRequest](./definitions/ExtensionBulkUpdateRequest.ts) +- `result` is of type + [ExtensionBulkUpdateTaskResource](./definitions/ExtensionBulkUpdateTaskResource.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Extensions-extensionBulkUpdate) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Extensions-extensionBulkUpdate) +in API Explorer. ## readUserCallLog @@ -1214,10 +1331,12 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `readUserCallLogParameters` is of type [ReadUserCallLogParameters](./definitions/ReadUserCallLogParameters.ts) +- `readUserCallLogParameters` is of type + [ReadUserCallLogParameters](./definitions/ReadUserCallLogParameters.ts) - `result` is of type [CallLogResponse](./definitions/CallLogResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Call-Log-readUserCallLog) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Log-readUserCallLog) +in API Explorer. ## deleteUserCallLog @@ -1246,10 +1365,12 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `deleteUserCallLogParameters` is of type [DeleteUserCallLogParameters](./definitions/DeleteUserCallLogParameters.ts) +- `deleteUserCallLogParameters` is of type + [DeleteUserCallLogParameters](./definitions/DeleteUserCallLogParameters.ts) - `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Call-Log-deleteUserCallLog) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Log-deleteUserCallLog) +in API Explorer. ## readUserCallRecord @@ -1278,10 +1399,12 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `readUserCallRecordParameters` is of type [ReadUserCallRecordParameters](./definitions/ReadUserCallRecordParameters.ts) +- `readUserCallRecordParameters` is of type + [ReadUserCallRecordParameters](./definitions/ReadUserCallRecordParameters.ts) - `result` is of type [CallLogRecord](./definitions/CallLogRecord.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Call-Log-readUserCallRecord) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Log-readUserCallRecord) +in API Explorer. ## updateUserCallQueues @@ -1298,7 +1421,9 @@ Update User Call Queues ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).extension(extensionId).callQueues().put(userCallQueues); +var result = await rc.restapi(apiVersion).account(accountId).extension( + extensionId, +).callQueues().put(userCallQueues); await rc.revoke(); ``` @@ -1308,7 +1433,8 @@ await rc.revoke(); - `userCallQueues` is of type [UserCallQueues](./definitions/UserCallQueues.ts) - `result` is of type [UserCallQueues](./definitions/UserCallQueues.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Call-Queues-updateUserCallQueues) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Queues-updateUserCallQueues) +in API Explorer. ## readExtensionCallerId @@ -1325,16 +1451,20 @@ Get Extension Caller ID ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).extension(extensionId).callerId().get(); +var result = await rc.restapi(apiVersion).account(accountId).extension( + extensionId, +).callerId().get(); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `result` is of type [ExtensionCallerIdInfo](./definitions/ExtensionCallerIdInfo.ts) +- `result` is of type + [ExtensionCallerIdInfo](./definitions/ExtensionCallerIdInfo.ts) -[Try it out](https://developer.ringcentral.com/api-reference#User-Settings-readExtensionCallerId) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#User-Settings-readExtensionCallerId) +in API Explorer. ## updateExtensionCallerId @@ -1363,10 +1493,13 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `extensionCallerIdInfoRequest` is of type [ExtensionCallerIdInfoRequest](./definitions/ExtensionCallerIdInfoRequest.ts) -- `result` is of type [ExtensionCallerIdInfo](./definitions/ExtensionCallerIdInfo.ts) +- `extensionCallerIdInfoRequest` is of type + [ExtensionCallerIdInfoRequest](./definitions/ExtensionCallerIdInfoRequest.ts) +- `result` is of type + [ExtensionCallerIdInfo](./definitions/ExtensionCallerIdInfo.ts) -[Try it out](https://developer.ringcentral.com/api-reference#User-Settings-updateExtensionCallerId) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#User-Settings-updateExtensionCallerId) +in API Explorer. ## listFavoriteContacts @@ -1383,16 +1516,20 @@ List Favorite Contacts ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).extension(extensionId).favorite().get(); +var result = await rc.restapi(apiVersion).account(accountId).extension( + extensionId, +).favorite().get(); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `result` is of type [FavoriteContactList](./definitions/FavoriteContactList.ts) +- `result` is of type + [FavoriteContactList](./definitions/FavoriteContactList.ts) -[Try it out](https://developer.ringcentral.com/api-reference#External-Contacts-listFavoriteContacts) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#External-Contacts-listFavoriteContacts) +in API Explorer. ## updateFavoriteContactList @@ -1409,17 +1546,22 @@ Update Favorite Contact List ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).extension(extensionId).favorite().put(favoriteCollection); +var result = await rc.restapi(apiVersion).account(accountId).extension( + extensionId, +).favorite().put(favoriteCollection); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `favoriteCollection` is of type [FavoriteCollection](./definitions/FavoriteCollection.ts) -- `result` is of type [FavoriteContactList](./definitions/FavoriteContactList.ts) +- `favoriteCollection` is of type + [FavoriteCollection](./definitions/FavoriteCollection.ts) +- `result` is of type + [FavoriteContactList](./definitions/FavoriteContactList.ts) -[Try it out](https://developer.ringcentral.com/api-reference#External-Contacts-updateFavoriteContactList) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#External-Contacts-updateFavoriteContactList) +in API Explorer. ## readExtensionFeatures @@ -1448,10 +1590,12 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `readExtensionFeaturesParameters` is of type [ReadExtensionFeaturesParameters](./definitions/ReadExtensionFeaturesParameters.ts) +- `readExtensionFeaturesParameters` is of type + [ReadExtensionFeaturesParameters](./definitions/ReadExtensionFeaturesParameters.ts) - `result` is of type [FeatureList](./definitions/FeatureList.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Features-readExtensionFeatures) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Features-readExtensionFeatures) +in API Explorer. ## createCustomUserGreeting @@ -1480,11 +1624,15 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `createCustomUserGreetingRequest` is of type [CreateCustomUserGreetingRequest](./definitions/CreateCustomUserGreetingRequest.ts) -- `createCustomUserGreetingParameters` is of type [CreateCustomUserGreetingParameters](./definitions/CreateCustomUserGreetingParameters.ts) -- `result` is of type [CustomUserGreetingInfo](./definitions/CustomUserGreetingInfo.ts) +- `createCustomUserGreetingRequest` is of type + [CreateCustomUserGreetingRequest](./definitions/CreateCustomUserGreetingRequest.ts) +- `createCustomUserGreetingParameters` is of type + [CreateCustomUserGreetingParameters](./definitions/CreateCustomUserGreetingParameters.ts) +- `result` is of type + [CustomUserGreetingInfo](./definitions/CustomUserGreetingInfo.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Greetings-createCustomUserGreeting) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Greetings-createCustomUserGreeting) +in API Explorer. ## readCustomGreeting @@ -1501,16 +1649,20 @@ Get Custom Greeting ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).extension(extensionId).greeting(greetingId).get(); +var result = await rc.restapi(apiVersion).account(accountId).extension( + extensionId, +).greeting(greetingId).get(); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `result` is of type [CustomUserGreetingInfo](./definitions/CustomUserGreetingInfo.ts) +- `result` is of type + [CustomUserGreetingInfo](./definitions/CustomUserGreetingInfo.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Greetings-readCustomGreeting) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Greetings-readCustomGreeting) +in API Explorer. ## readUserPresenceStatus @@ -1539,10 +1691,12 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `readUserPresenceStatusParameters` is of type [ReadUserPresenceStatusParameters](./definitions/ReadUserPresenceStatusParameters.ts) +- `readUserPresenceStatusParameters` is of type + [ReadUserPresenceStatusParameters](./definitions/ReadUserPresenceStatusParameters.ts) - `result` is of type [GetPresenceInfo](./definitions/GetPresenceInfo.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Presence-readUserPresenceStatus) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Presence-readUserPresenceStatus) +in API Explorer. ## updateUserPresenceStatus @@ -1559,17 +1713,22 @@ Update User Presence Status ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).extension(extensionId).presence().put(presenceInfoRequest); +var result = await rc.restapi(apiVersion).account(accountId).extension( + extensionId, +).presence().put(presenceInfoRequest); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `presenceInfoRequest` is of type [PresenceInfoRequest](./definitions/PresenceInfoRequest.ts) -- `result` is of type [PresenceInfoResponse](./definitions/PresenceInfoResponse.ts) +- `presenceInfoRequest` is of type + [PresenceInfoRequest](./definitions/PresenceInfoRequest.ts) +- `result` is of type + [PresenceInfoResponse](./definitions/PresenceInfoResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Presence-updateUserPresenceStatus) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Presence-updateUserPresenceStatus) +in API Explorer. ## createRingOutCall @@ -1586,17 +1745,22 @@ Make RingOut Call ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).extension(extensionId).ringOut().post(makeRingOutRequest); +var result = await rc.restapi(apiVersion).account(accountId).extension( + extensionId, +).ringOut().post(makeRingOutRequest); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `makeRingOutRequest` is of type [MakeRingOutRequest](./definitions/MakeRingOutRequest.ts) -- `result` is of type [GetRingOutStatusResponse](./definitions/GetRingOutStatusResponse.ts) +- `makeRingOutRequest` is of type + [MakeRingOutRequest](./definitions/MakeRingOutRequest.ts) +- `result` is of type + [GetRingOutStatusResponse](./definitions/GetRingOutStatusResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#RingOut-createRingOutCall) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#RingOut-createRingOutCall) +in API Explorer. ## readRingOutCallStatus @@ -1613,16 +1777,20 @@ Get RingOut Call Status ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).extension(extensionId).ringOut(ringoutId).get(); +var result = await rc.restapi(apiVersion).account(accountId).extension( + extensionId, +).ringOut(ringoutId).get(); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `result` is of type [GetRingOutStatusResponse](./definitions/GetRingOutStatusResponse.ts) +- `result` is of type + [GetRingOutStatusResponse](./definitions/GetRingOutStatusResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#RingOut-readRingOutCallStatus) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#RingOut-readRingOutCallStatus) +in API Explorer. ## deleteRingOutCall @@ -1639,7 +1807,9 @@ Cancel RingOut Call ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).extension(extensionId).ringOut(ringoutId).delete(); +var result = await rc.restapi(apiVersion).account(accountId).extension( + extensionId, +).ringOut(ringoutId).delete(); await rc.revoke(); ``` @@ -1648,7 +1818,8 @@ await rc.revoke(); - Parameter `extensionId` is optional with default value `~` - `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#RingOut-deleteRingOutCall) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#RingOut-deleteRingOutCall) +in API Explorer. ## getForwardAllCompanyCalls @@ -1665,15 +1836,18 @@ Get Forward All Company Calls ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).forwardAllCalls().get(); +var result = await rc.restapi(apiVersion).account(accountId).forwardAllCalls() + .get(); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `result` is of type [ForwardAllCompanyCallsInfo](./definitions/ForwardAllCompanyCallsInfo.ts) +- `result` is of type + [ForwardAllCompanyCallsInfo](./definitions/ForwardAllCompanyCallsInfo.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Call-Handling-Rules-getForwardAllCompanyCalls) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Handling-Rules-getForwardAllCompanyCalls) +in API Explorer. ## updateForwardAllCompanyCalls @@ -1690,16 +1864,20 @@ Update Forward All Company Calls ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).forwardAllCalls().patch(forwardAllCompanyCallsRequest); +var result = await rc.restapi(apiVersion).account(accountId).forwardAllCalls() + .patch(forwardAllCompanyCallsRequest); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `forwardAllCompanyCallsRequest` is of type [ForwardAllCompanyCallsRequest](./definitions/ForwardAllCompanyCallsRequest.ts) -- `result` is of type [ForwardAllCompanyCallsInfo](./definitions/ForwardAllCompanyCallsInfo.ts) +- `forwardAllCompanyCallsRequest` is of type + [ForwardAllCompanyCallsRequest](./definitions/ForwardAllCompanyCallsRequest.ts) +- `result` is of type + [ForwardAllCompanyCallsInfo](./definitions/ForwardAllCompanyCallsInfo.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Call-Handling-Rules-updateForwardAllCompanyCalls) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Handling-Rules-updateForwardAllCompanyCalls) +in API Explorer. ## readIVRPromptContent @@ -1727,14 +1905,17 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `readIVRPromptContentParameters` is of type [ReadIVRPromptContentParameters](./definitions/ReadIVRPromptContentParameters.ts) +- `readIVRPromptContentParameters` is of type + [ReadIVRPromptContentParameters](./definitions/ReadIVRPromptContentParameters.ts) - `result` is of type `byte[]` ### ❗❗❗ Code sample above may not work -Please refer to [Binary content downloading](/README.md#Binary-content-downloading). +Please refer to +[Binary content downloading](/README.md#Binary-content-downloading). -[Try it out](https://developer.ringcentral.com/api-reference#IVR-readIVRPromptContent) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#IVR-readIVRPromptContent) +in API Explorer. ## createMessageStoreReport @@ -1751,16 +1932,19 @@ Create Message Store Report ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).messageStoreReport().post(createMessageStoreReportRequest); +var result = await rc.restapi(apiVersion).account(accountId) + .messageStoreReport().post(createMessageStoreReportRequest); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `createMessageStoreReportRequest` is of type [CreateMessageStoreReportRequest](./definitions/CreateMessageStoreReportRequest.ts) +- `createMessageStoreReportRequest` is of type + [CreateMessageStoreReportRequest](./definitions/CreateMessageStoreReportRequest.ts) - `result` is of type [MessageStoreReport](./definitions/MessageStoreReport.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Message-Exports-createMessageStoreReport) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Message-Exports-createMessageStoreReport) +in API Explorer. ## readMessageStoreReportTask @@ -1777,7 +1961,9 @@ Get Message Store Report Task ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).messageStoreReport(taskId).get(); +var result = await rc.restapi(apiVersion).account(accountId).messageStoreReport( + taskId, +).get(); await rc.revoke(); ``` @@ -1785,7 +1971,8 @@ await rc.revoke(); - Parameter `accountId` is optional with default value `~` - `result` is of type [MessageStoreReport](./definitions/MessageStoreReport.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Message-Exports-readMessageStoreReportTask) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Message-Exports-readMessageStoreReportTask) +in API Explorer. ## listSites @@ -1810,7 +1997,8 @@ await rc.revoke(); - Parameter `accountId` is optional with default value `~` - `result` is of type [SitesList](./definitions/SitesList.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Multi-Site-listSites) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Multi-Site-listSites) +in API Explorer. ## createSite @@ -1827,16 +2015,20 @@ Create Site ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).sites().post(createSiteRequest); +var result = await rc.restapi(apiVersion).account(accountId).sites().post( + createSiteRequest, +); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `createSiteRequest` is of type [CreateSiteRequest](./definitions/CreateSiteRequest.ts) +- `createSiteRequest` is of type + [CreateSiteRequest](./definitions/CreateSiteRequest.ts) - `result` is of type [SiteInfo](./definitions/SiteInfo.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Multi-Site-createSite) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Multi-Site-createSite) +in API Explorer. ## readSite @@ -1853,7 +2045,8 @@ Get Site ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).sites(siteId).get(); +var result = await rc.restapi(apiVersion).account(accountId).sites(siteId) + .get(); await rc.revoke(); ``` @@ -1861,7 +2054,8 @@ await rc.revoke(); - Parameter `accountId` is optional with default value `~` - `result` is of type [SiteInfo](./definitions/SiteInfo.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Multi-Site-readSite) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Multi-Site-readSite) +in API Explorer. ## updateSite @@ -1878,16 +2072,20 @@ Update Site ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).sites(siteId).put(siteUpdateRequest); +var result = await rc.restapi(apiVersion).account(accountId).sites(siteId).put( + siteUpdateRequest, +); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `siteUpdateRequest` is of type [SiteUpdateRequest](./definitions/SiteUpdateRequest.ts) +- `siteUpdateRequest` is of type + [SiteUpdateRequest](./definitions/SiteUpdateRequest.ts) - `result` is of type [SiteInfo](./definitions/SiteInfo.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Multi-Site-updateSite) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Multi-Site-updateSite) +in API Explorer. ## deleteSite @@ -1904,7 +2102,8 @@ Delete Site ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).sites(siteId).delete(); +var result = await rc.restapi(apiVersion).account(accountId).sites(siteId) + .delete(); await rc.revoke(); ``` @@ -1912,7 +2111,8 @@ await rc.revoke(); - Parameter `accountId` is optional with default value `~` - `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Multi-Site-deleteSite) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Multi-Site-deleteSite) +in API Explorer. ## assignMultipleSites @@ -1929,16 +2129,19 @@ Edit Sites ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).sites(siteId).bulkAssign().post(siteMembersBulkUpdate); +var result = await rc.restapi(apiVersion).account(accountId).sites(siteId) + .bulkAssign().post(siteMembersBulkUpdate); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `siteMembersBulkUpdate` is of type [SiteMembersBulkUpdate](./definitions/SiteMembersBulkUpdate.ts) +- `siteMembersBulkUpdate` is of type + [SiteMembersBulkUpdate](./definitions/SiteMembersBulkUpdate.ts) - `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Multi-Site-assignMultipleSites) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Multi-Site-assignMultipleSites) +in API Explorer. ## createCallOutCallSession @@ -1955,16 +2158,19 @@ Make CallOut ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).telephony().callOut().post(makeCallOutRequest); +var result = await rc.restapi(apiVersion).account(accountId).telephony() + .callOut().post(makeCallOutRequest); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `makeCallOutRequest` is of type [MakeCallOutRequest](./definitions/MakeCallOutRequest.ts) +- `makeCallOutRequest` is of type + [MakeCallOutRequest](./definitions/MakeCallOutRequest.ts) - `result` is of type [CallSession](./definitions/CallSession.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Call-Control-createCallOutCallSession) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Control-createCallOutCallSession) +in API Explorer. ## createConferenceCallSession @@ -1981,7 +2187,8 @@ Start Conference Call Session ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).telephony().conference().post(); +var result = await rc.restapi(apiVersion).account(accountId).telephony() + .conference().post(); await rc.revoke(); ``` @@ -1989,7 +2196,8 @@ await rc.revoke(); - Parameter `accountId` is optional with default value `~` - `result` is of type [CallSession](./definitions/CallSession.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Call-Control-createConferenceCallSession) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Control-createConferenceCallSession) +in API Explorer. ## readCallSessionStatus @@ -2017,10 +2225,12 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `readCallSessionStatusParameters` is of type [ReadCallSessionStatusParameters](./definitions/ReadCallSessionStatusParameters.ts) +- `readCallSessionStatusParameters` is of type + [ReadCallSessionStatusParameters](./definitions/ReadCallSessionStatusParameters.ts) - `result` is of type [CallSessionObject](./definitions/CallSessionObject.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Call-Control-readCallSessionStatus) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Control-readCallSessionStatus) +in API Explorer. ## deleteCallSession @@ -2037,7 +2247,8 @@ Drop Call Session ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).telephony().sessions(telephonySessionId).delete(); +var result = await rc.restapi(apiVersion).account(accountId).telephony() + .sessions(telephonySessionId).delete(); await rc.revoke(); ``` @@ -2045,7 +2256,8 @@ await rc.revoke(); - Parameter `accountId` is optional with default value `~` - `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Call-Control-deleteCallSession) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Control-deleteCallSession) +in API Explorer. ## readDefaultRole @@ -2062,7 +2274,8 @@ Get Default User Role ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).userRole().default().get(); +var result = await rc.restapi(apiVersion).account(accountId).userRole() + .default().get(); await rc.revoke(); ``` @@ -2070,7 +2283,8 @@ await rc.revoke(); - Parameter `accountId` is optional with default value `~` - `result` is of type [DefaultUserRole](./definitions/DefaultUserRole.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Role-Management-readDefaultRole) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Role-Management-readDefaultRole) +in API Explorer. ## updateDefaultUserRole @@ -2087,16 +2301,19 @@ Set Default User Role ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).userRole().default().put(defaultUserRoleRequest); +var result = await rc.restapi(apiVersion).account(accountId).userRole() + .default().put(defaultUserRoleRequest); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `defaultUserRoleRequest` is of type [DefaultUserRoleRequest](./definitions/DefaultUserRoleRequest.ts) +- `defaultUserRoleRequest` is of type + [DefaultUserRoleRequest](./definitions/DefaultUserRoleRequest.ts) - `result` is of type [DefaultUserRole](./definitions/DefaultUserRole.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Role-Management-updateDefaultUserRole) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Role-Management-updateDefaultUserRole) +in API Explorer. ## assignMultipleUserRoles @@ -2113,16 +2330,19 @@ Assign Multiple User Roles ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).userRole(roleId).bulkAssign().post(bulkRoleAssignResource); +var result = await rc.restapi(apiVersion).account(accountId).userRole(roleId) + .bulkAssign().post(bulkRoleAssignResource); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `bulkRoleAssignResource` is of type [BulkRoleAssignResource](./definitions/BulkRoleAssignResource.ts) +- `bulkRoleAssignResource` is of type + [BulkRoleAssignResource](./definitions/BulkRoleAssignResource.ts) - `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Role-Management-assignMultipleUserRoles) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Role-Management-assignMultipleUserRoles) +in API Explorer. ## createSIPRegistration @@ -2139,15 +2359,20 @@ Register Device ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).clientInfo().sipProvision().post(createSipRegistrationRequest); +var result = await rc.restapi(apiVersion).clientInfo().sipProvision().post( + createSipRegistrationRequest, +); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `createSipRegistrationRequest` is of type [CreateSipRegistrationRequest](./definitions/CreateSipRegistrationRequest.ts) -- `result` is of type [CreateSipRegistrationResponse](./definitions/CreateSipRegistrationResponse.ts) +- `createSipRegistrationRequest` is of type + [CreateSipRegistrationRequest](./definitions/CreateSipRegistrationRequest.ts) +- `result` is of type + [CreateSipRegistrationResponse](./definitions/CreateSipRegistrationResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Device-SIP-Registration-createSIPRegistration) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Device-SIP-Registration-createSIPRegistration) +in API Explorer. ## listFaxCoverPages @@ -2164,15 +2389,20 @@ List Fax Cover Pages ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).dictionary().faxCoverPage().get(listFaxCoverPagesParameters); +var result = await rc.restapi(apiVersion).dictionary().faxCoverPage().get( + listFaxCoverPagesParameters, +); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `listFaxCoverPagesParameters` is of type [ListFaxCoverPagesParameters](./definitions/ListFaxCoverPagesParameters.ts) -- `result` is of type [ListFaxCoverPagesResponse](./definitions/ListFaxCoverPagesResponse.ts) +- `listFaxCoverPagesParameters` is of type + [ListFaxCoverPagesParameters](./definitions/ListFaxCoverPagesParameters.ts) +- `result` is of type + [ListFaxCoverPagesResponse](./definitions/ListFaxCoverPagesResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Fax-listFaxCoverPages) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Fax-listFaxCoverPages) +in API Explorer. ## listSubscriptions @@ -2194,9 +2424,11 @@ await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `result` is of type [SubscriptionListResource](./definitions/SubscriptionListResource.ts) +- `result` is of type + [SubscriptionListResource](./definitions/SubscriptionListResource.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Subscriptions-listSubscriptions) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Subscriptions-listSubscriptions) +in API Explorer. ## createSubscription @@ -2213,15 +2445,19 @@ Create Subscription ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).subscription().post(createSubscriptionRequest); +var result = await rc.restapi(apiVersion).subscription().post( + createSubscriptionRequest, +); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `createSubscriptionRequest` is of type [CreateSubscriptionRequest](./definitions/CreateSubscriptionRequest.ts) +- `createSubscriptionRequest` is of type + [CreateSubscriptionRequest](./definitions/CreateSubscriptionRequest.ts) - `result` is of type [SubscriptionInfo](./definitions/SubscriptionInfo.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Subscriptions-createSubscription) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Subscriptions-createSubscription) +in API Explorer. ## readSubscription @@ -2245,7 +2481,8 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - `result` is of type [SubscriptionInfo](./definitions/SubscriptionInfo.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Subscriptions-readSubscription) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Subscriptions-readSubscription) +in API Explorer. ## updateSubscription @@ -2262,15 +2499,19 @@ Update Subscription ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).subscription(subscriptionId).put(updateSubscriptionRequest); +var result = await rc.restapi(apiVersion).subscription(subscriptionId).put( + updateSubscriptionRequest, +); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `updateSubscriptionRequest` is of type [UpdateSubscriptionRequest](./definitions/UpdateSubscriptionRequest.ts) +- `updateSubscriptionRequest` is of type + [UpdateSubscriptionRequest](./definitions/UpdateSubscriptionRequest.ts) - `result` is of type [SubscriptionInfo](./definitions/SubscriptionInfo.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Subscriptions-updateSubscription) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Subscriptions-updateSubscription) +in API Explorer. ## deleteSubscription @@ -2294,7 +2535,8 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Subscriptions-deleteSubscription) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Subscriptions-deleteSubscription) +in API Explorer. ## scimSearchViaPost2 @@ -2316,10 +2558,13 @@ await rc.revoke(); ``` - Parameter `version` is optional with default value `v2` -- `scimSearchRequest` is of type [ScimSearchRequest](./definitions/ScimSearchRequest.ts) -- `result` is of type [ScimUserSearchResponse](./definitions/ScimUserSearchResponse.ts) +- `scimSearchRequest` is of type + [ScimSearchRequest](./definitions/ScimSearchRequest.ts) +- `result` is of type + [ScimUserSearchResponse](./definitions/ScimUserSearchResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#SCIM-scimSearchViaPost2) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#SCIM-scimSearchViaPost2) +in API Explorer. ## authorize @@ -2340,10 +2585,12 @@ var result = await rc.restapi().oauth().authorize().get(authorizeParameters); await rc.revoke(); ``` -- `authorizeParameters` is of type [AuthorizeParameters](./definitions/AuthorizeParameters.ts) +- `authorizeParameters` is of type + [AuthorizeParameters](./definitions/AuthorizeParameters.ts) - `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#OAuth-and-OpenID-Connect-authorize) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#OAuth-and-OpenID-Connect-authorize) +in API Explorer. ## authorize2 @@ -2364,10 +2611,12 @@ var result = await rc.restapi().oauth().authorize().post(authorizeRequest); await rc.revoke(); ``` -- `authorizeRequest` is of type [AuthorizeRequest](./definitions/AuthorizeRequest.ts) +- `authorizeRequest` is of type + [AuthorizeRequest](./definitions/AuthorizeRequest.ts) - `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#OAuth-and-OpenID-Connect-authorize2) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#OAuth-and-OpenID-Connect-authorize2) +in API Explorer. ## readCompanyCallLog @@ -2384,16 +2633,20 @@ List Company Call Records ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).callLog().list(readCompanyCallLogParameters); +var result = await rc.restapi(apiVersion).account(accountId).callLog().list( + readCompanyCallLogParameters, +); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `readCompanyCallLogParameters` is of type [ReadCompanyCallLogParameters](./definitions/ReadCompanyCallLogParameters.ts) +- `readCompanyCallLogParameters` is of type + [ReadCompanyCallLogParameters](./definitions/ReadCompanyCallLogParameters.ts) - `result` is of type [CallLogResponse](./definitions/CallLogResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Call-Log-readCompanyCallLog) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Log-readCompanyCallLog) +in API Explorer. ## readCompanyCallRecord @@ -2410,16 +2663,20 @@ Get Company Call Record(s) ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).callLog(callRecordId).get(readCompanyCallRecordParameters); +var result = await rc.restapi(apiVersion).account(accountId).callLog( + callRecordId, +).get(readCompanyCallRecordParameters); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `readCompanyCallRecordParameters` is of type [ReadCompanyCallRecordParameters](./definitions/ReadCompanyCallRecordParameters.ts) +- `readCompanyCallRecordParameters` is of type + [ReadCompanyCallRecordParameters](./definitions/ReadCompanyCallRecordParameters.ts) - `result` is of type [CallLogRecord](./definitions/CallLogRecord.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Call-Log-readCompanyCallRecord) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Log-readCompanyCallRecord) +in API Explorer. ## listExtensions @@ -2436,16 +2693,21 @@ List Extensions ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).extension().list(listExtensionsParameters); +var result = await rc.restapi(apiVersion).account(accountId).extension().list( + listExtensionsParameters, +); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `listExtensionsParameters` is of type [ListExtensionsParameters](./definitions/ListExtensionsParameters.ts) -- `result` is of type [GetExtensionListResponse](./definitions/GetExtensionListResponse.ts) +- `listExtensionsParameters` is of type + [ListExtensionsParameters](./definitions/ListExtensionsParameters.ts) +- `result` is of type + [GetExtensionListResponse](./definitions/GetExtensionListResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Extensions-listExtensions) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Extensions-listExtensions) +in API Explorer. ## createExtension @@ -2462,16 +2724,21 @@ Create Extension ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).extension().post(extensionCreationRequest); +var result = await rc.restapi(apiVersion).account(accountId).extension().post( + extensionCreationRequest, +); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `extensionCreationRequest` is of type [ExtensionCreationRequest](./definitions/ExtensionCreationRequest.ts) -- `result` is of type [ExtensionCreationResponse](./definitions/ExtensionCreationResponse.ts) +- `extensionCreationRequest` is of type + [ExtensionCreationRequest](./definitions/ExtensionCreationRequest.ts) +- `result` is of type + [ExtensionCreationResponse](./definitions/ExtensionCreationResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Extensions-createExtension) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Extensions-createExtension) +in API Explorer. ## readExtension @@ -2488,16 +2755,20 @@ Get Extension ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).extension(extensionId).get(); +var result = await rc.restapi(apiVersion).account(accountId).extension( + extensionId, +).get(); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `result` is of type [GetExtensionInfoResponse](./definitions/GetExtensionInfoResponse.ts) +- `result` is of type + [GetExtensionInfoResponse](./definitions/GetExtensionInfoResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#User-Settings-readExtension) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#User-Settings-readExtension) +in API Explorer. ## updateExtension @@ -2514,17 +2785,22 @@ Update Extension ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).extension(extensionId).put(extensionUpdateRequest); +var result = await rc.restapi(apiVersion).account(accountId).extension( + extensionId, +).put(extensionUpdateRequest); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `extensionUpdateRequest` is of type [ExtensionUpdateRequest](./definitions/ExtensionUpdateRequest.ts) -- `result` is of type [GetExtensionInfoResponse](./definitions/GetExtensionInfoResponse.ts) +- `extensionUpdateRequest` is of type + [ExtensionUpdateRequest](./definitions/ExtensionUpdateRequest.ts) +- `result` is of type + [GetExtensionInfoResponse](./definitions/GetExtensionInfoResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#User-Settings-updateExtension) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#User-Settings-updateExtension) +in API Explorer. ## createCompanyGreeting @@ -2541,16 +2817,21 @@ Create Company Greeting ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).greeting().post(createCompanyGreetingRequest); +var result = await rc.restapi(apiVersion).account(accountId).greeting().post( + createCompanyGreetingRequest, +); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `createCompanyGreetingRequest` is of type [CreateCompanyGreetingRequest](./definitions/CreateCompanyGreetingRequest.ts) -- `result` is of type [CustomCompanyGreetingInfo](./definitions/CustomCompanyGreetingInfo.ts) +- `createCompanyGreetingRequest` is of type + [CreateCompanyGreetingRequest](./definitions/CreateCompanyGreetingRequest.ts) +- `result` is of type + [CustomCompanyGreetingInfo](./definitions/CustomCompanyGreetingInfo.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Greetings-createCompanyGreeting) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Greetings-createCompanyGreeting) +in API Explorer. ## readIVRMenuList @@ -2575,7 +2856,8 @@ await rc.revoke(); - Parameter `accountId` is optional with default value `~` - `result` is of type [IVRMenuList](./definitions/IVRMenuList.ts) -[Try it out](https://developer.ringcentral.com/api-reference#IVR-readIVRMenuList) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#IVR-readIVRMenuList) +in API Explorer. ## createIVRMenu @@ -2592,7 +2874,9 @@ Create IVR Menu ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).ivrMenus().post(iVRMenuInfo); +var result = await rc.restapi(apiVersion).account(accountId).ivrMenus().post( + iVRMenuInfo, +); await rc.revoke(); ``` @@ -2601,7 +2885,8 @@ await rc.revoke(); - `iVRMenuInfo` is of type [IVRMenuInfo](./definitions/IVRMenuInfo.ts) - `result` is of type [IVRMenuInfo](./definitions/IVRMenuInfo.ts) -[Try it out](https://developer.ringcentral.com/api-reference#IVR-createIVRMenu) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#IVR-createIVRMenu) +in API Explorer. ## readIVRMenu @@ -2618,7 +2903,8 @@ Get IVR Menu ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).ivrMenus(ivrMenuId).get(); +var result = await rc.restapi(apiVersion).account(accountId).ivrMenus(ivrMenuId) + .get(); await rc.revoke(); ``` @@ -2626,7 +2912,8 @@ await rc.revoke(); - Parameter `accountId` is optional with default value `~` - `result` is of type [IVRMenuInfo](./definitions/IVRMenuInfo.ts) -[Try it out](https://developer.ringcentral.com/api-reference#IVR-readIVRMenu) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#IVR-readIVRMenu) in +API Explorer. ## updateIVRMenu @@ -2643,7 +2930,8 @@ Update IVR Menu ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).ivrMenus(ivrMenuId).put(iVRMenuInfo); +var result = await rc.restapi(apiVersion).account(accountId).ivrMenus(ivrMenuId) + .put(iVRMenuInfo); await rc.revoke(); ``` @@ -2652,7 +2940,8 @@ await rc.revoke(); - `iVRMenuInfo` is of type [IVRMenuInfo](./definitions/IVRMenuInfo.ts) - `result` is of type [IVRMenuInfo](./definitions/IVRMenuInfo.ts) -[Try it out](https://developer.ringcentral.com/api-reference#IVR-updateIVRMenu) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#IVR-updateIVRMenu) +in API Explorer. ## readAccountPresence @@ -2669,16 +2958,21 @@ Get User Presence Status List ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).presence().get(readAccountPresenceParameters); +var result = await rc.restapi(apiVersion).account(accountId).presence().get( + readAccountPresenceParameters, +); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `readAccountPresenceParameters` is of type [ReadAccountPresenceParameters](./definitions/ReadAccountPresenceParameters.ts) -- `result` is of type [AccountPresenceInfo](./definitions/AccountPresenceInfo.ts) +- `readAccountPresenceParameters` is of type + [ReadAccountPresenceParameters](./definitions/ReadAccountPresenceParameters.ts) +- `result` is of type + [AccountPresenceInfo](./definitions/AccountPresenceInfo.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Presence-readAccountPresence) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Presence-readAccountPresence) +in API Explorer. ## readCallRecording @@ -2695,15 +2989,19 @@ Get Call Recording ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).recording(recordingId).get(); +var result = await rc.restapi(apiVersion).account(accountId).recording( + recordingId, +).get(); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `result` is of type [GetCallRecordingResponse](./definitions/GetCallRecordingResponse.ts) +- `result` is of type + [GetCallRecordingResponse](./definitions/GetCallRecordingResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Call-Recordings-readCallRecording) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Recordings-readCallRecording) +in API Explorer. ## readSiteIvrSettings @@ -2720,7 +3018,8 @@ Get Site IVR Settings ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).sites(siteId).ivr().get(); +var result = await rc.restapi(apiVersion).account(accountId).sites(siteId).ivr() + .get(); await rc.revoke(); ``` @@ -2728,7 +3027,8 @@ await rc.revoke(); - Parameter `accountId` is optional with default value `~` - `result` is of type [SiteIVRSettings](./definitions/SiteIVRSettings.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Multi-Site-readSiteIvrSettings) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Multi-Site-readSiteIvrSettings) +in API Explorer. ## updateSiteIvrSettings @@ -2745,16 +3045,19 @@ Update Site IVR Settings ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).sites(siteId).ivr().put(siteIVRSettingsUpdate); +var result = await rc.restapi(apiVersion).account(accountId).sites(siteId).ivr() + .put(siteIVRSettingsUpdate); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `siteIVRSettingsUpdate` is of type [SiteIVRSettingsUpdate](./definitions/SiteIVRSettingsUpdate.ts) +- `siteIVRSettingsUpdate` is of type + [SiteIVRSettingsUpdate](./definitions/SiteIVRSettingsUpdate.ts) - `result` is of type [SiteIVRSettings](./definitions/SiteIVRSettings.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Multi-Site-updateSiteIvrSettings) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Multi-Site-updateSiteIvrSettings) +in API Explorer. ## listUserTemplates @@ -2771,16 +3074,20 @@ List User Templates ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).templates().list(listUserTemplatesParameters); +var result = await rc.restapi(apiVersion).account(accountId).templates().list( + listUserTemplatesParameters, +); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `listUserTemplatesParameters` is of type [ListUserTemplatesParameters](./definitions/ListUserTemplatesParameters.ts) +- `listUserTemplatesParameters` is of type + [ListUserTemplatesParameters](./definitions/ListUserTemplatesParameters.ts) - `result` is of type [UserTemplates](./definitions/UserTemplates.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Extensions-listUserTemplates) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Extensions-listUserTemplates) +in API Explorer. ## readUserTemplate @@ -2797,7 +3104,9 @@ Get User Template ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).templates(templateId).get(); +var result = await rc.restapi(apiVersion).account(accountId).templates( + templateId, +).get(); await rc.revoke(); ``` @@ -2805,7 +3114,8 @@ await rc.revoke(); - Parameter `accountId` is optional with default value `~` - `result` is of type [TemplateInfo](./definitions/TemplateInfo.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Extensions-readUserTemplate) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Extensions-readUserTemplate) +in API Explorer. ## listUserRoles @@ -2822,16 +3132,21 @@ List Company User Roles ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).userRole().list(listUserRolesParameters); +var result = await rc.restapi(apiVersion).account(accountId).userRole().list( + listUserRolesParameters, +); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `listUserRolesParameters` is of type [ListUserRolesParameters](./definitions/ListUserRolesParameters.ts) -- `result` is of type [RolesCollectionResource](./definitions/RolesCollectionResource.ts) +- `listUserRolesParameters` is of type + [ListUserRolesParameters](./definitions/ListUserRolesParameters.ts) +- `result` is of type + [RolesCollectionResource](./definitions/RolesCollectionResource.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Role-Management-listUserRoles) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Role-Management-listUserRoles) +in API Explorer. ## createCustomRole @@ -2848,7 +3163,9 @@ Create Custom Role ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).userRole().post(roleResource); +var result = await rc.restapi(apiVersion).account(accountId).userRole().post( + roleResource, +); await rc.revoke(); ``` @@ -2857,7 +3174,8 @@ await rc.revoke(); - `roleResource` is of type [RoleResource](./definitions/RoleResource.ts) - `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Role-Management-createCustomRole) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Role-Management-createCustomRole) +in API Explorer. ## readUserRole @@ -2874,16 +3192,19 @@ Get User Role ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).userRole(roleId).get(readUserRoleParameters); +var result = await rc.restapi(apiVersion).account(accountId).userRole(roleId) + .get(readUserRoleParameters); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `readUserRoleParameters` is of type [ReadUserRoleParameters](./definitions/ReadUserRoleParameters.ts) +- `readUserRoleParameters` is of type + [ReadUserRoleParameters](./definitions/ReadUserRoleParameters.ts) - `result` is of type [RoleResource](./definitions/RoleResource.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Role-Management-readUserRole) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Role-Management-readUserRole) +in API Explorer. ## updateUserRole @@ -2900,7 +3221,8 @@ Update User Role ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).userRole(roleId).put(roleResource); +var result = await rc.restapi(apiVersion).account(accountId).userRole(roleId) + .put(roleResource); await rc.revoke(); ``` @@ -2909,7 +3231,8 @@ await rc.revoke(); - `roleResource` is of type [RoleResource](./definitions/RoleResource.ts) - `result` is of type [RoleResource](./definitions/RoleResource.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Role-Management-updateUserRole) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Role-Management-updateUserRole) +in API Explorer. ## deleteCustomRole @@ -2926,16 +3249,19 @@ Delete Custom Role ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).userRole(roleId).delete(deleteCustomRoleParameters); +var result = await rc.restapi(apiVersion).account(accountId).userRole(roleId) + .delete(deleteCustomRoleParameters); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `deleteCustomRoleParameters` is of type [DeleteCustomRoleParameters](./definitions/DeleteCustomRoleParameters.ts) +- `deleteCustomRoleParameters` is of type + [DeleteCustomRoleParameters](./definitions/DeleteCustomRoleParameters.ts) - `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Role-Management-deleteCustomRole) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Role-Management-deleteCustomRole) +in API Explorer. ## listStates @@ -2952,15 +3278,20 @@ List States ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).dictionary().state().list(listStatesParameters); +var result = await rc.restapi(apiVersion).dictionary().state().list( + listStatesParameters, +); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `listStatesParameters` is of type [ListStatesParameters](./definitions/ListStatesParameters.ts) -- `result` is of type [GetStateListResponse](./definitions/GetStateListResponse.ts) +- `listStatesParameters` is of type + [ListStatesParameters](./definitions/ListStatesParameters.ts) +- `result` is of type + [GetStateListResponse](./definitions/GetStateListResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Regional-Settings-listStates) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Regional-Settings-listStates) +in API Explorer. ## readState @@ -2982,9 +3313,11 @@ await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `result` is of type [GetStateInfoResponse](./definitions/GetStateInfoResponse.ts) +- `result` is of type + [GetStateInfoResponse](./definitions/GetStateInfoResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Regional-Settings-readState) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Regional-Settings-readState) +in API Explorer. ## listGlipChatsNew @@ -3001,14 +3334,18 @@ List Chats ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.teamMessaging().v1().chats().list(listGlipChatsNewParameters); +var result = await rc.teamMessaging().v1().chats().list( + listGlipChatsNewParameters, +); await rc.revoke(); ``` -- `listGlipChatsNewParameters` is of type [ListGlipChatsNewParameters](./definitions/ListGlipChatsNewParameters.ts) +- `listGlipChatsNewParameters` is of type + [ListGlipChatsNewParameters](./definitions/ListGlipChatsNewParameters.ts) - `result` is of type [TMChatList](./definitions/TMChatList.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Chats-listGlipChatsNew) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Chats-listGlipChatsNew) +in API Explorer. ## readGlipChatNew @@ -3031,7 +3368,8 @@ await rc.revoke(); - `result` is of type [TMChatInfo](./definitions/TMChatInfo.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Chats-readGlipChatNew) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Chats-readGlipChatNew) +in API Explorer. ## readGlipEventsNew @@ -3048,14 +3386,18 @@ List User Events ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.teamMessaging().v1().events().list(readGlipEventsNewParameters); +var result = await rc.teamMessaging().v1().events().list( + readGlipEventsNewParameters, +); await rc.revoke(); ``` -- `readGlipEventsNewParameters` is of type [ReadGlipEventsNewParameters](./definitions/ReadGlipEventsNewParameters.ts) +- `readGlipEventsNewParameters` is of type + [ReadGlipEventsNewParameters](./definitions/ReadGlipEventsNewParameters.ts) - `result` is of type [TMEventList](./definitions/TMEventList.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Calendar-Events-readGlipEventsNew) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Calendar-Events-readGlipEventsNew) +in API Explorer. ## createEventNew @@ -3076,10 +3418,12 @@ var result = await rc.teamMessaging().v1().events().post(tMCreateEventRequest); await rc.revoke(); ``` -- `tMCreateEventRequest` is of type [TMCreateEventRequest](./definitions/TMCreateEventRequest.ts) +- `tMCreateEventRequest` is of type + [TMCreateEventRequest](./definitions/TMCreateEventRequest.ts) - `result` is of type [TMEventInfo](./definitions/TMEventInfo.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Calendar-Events-createEventNew) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Calendar-Events-createEventNew) +in API Explorer. ## readEventNew @@ -3102,7 +3446,8 @@ await rc.revoke(); - `result` is of type [TMEventInfo](./definitions/TMEventInfo.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Calendar-Events-readEventNew) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Calendar-Events-readEventNew) +in API Explorer. ## updateEventNew @@ -3119,14 +3464,18 @@ Update Event ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.teamMessaging().v1().events(eventId).put(tMCreateEventRequest); +var result = await rc.teamMessaging().v1().events(eventId).put( + tMCreateEventRequest, +); await rc.revoke(); ``` -- `tMCreateEventRequest` is of type [TMCreateEventRequest](./definitions/TMCreateEventRequest.ts) +- `tMCreateEventRequest` is of type + [TMCreateEventRequest](./definitions/TMCreateEventRequest.ts) - `result` is of type [TMEventInfo](./definitions/TMEventInfo.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Calendar-Events-updateEventNew) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Calendar-Events-updateEventNew) +in API Explorer. ## deleteEventNew @@ -3149,7 +3498,8 @@ await rc.revoke(); - `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Calendar-Events-deleteEventNew) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Calendar-Events-deleteEventNew) +in API Explorer. ## createGlipFileNew @@ -3166,15 +3516,21 @@ Upload File ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.teamMessaging().v1().files().post(createGlipFileNewRequest, createGlipFileNewParameters); +var result = await rc.teamMessaging().v1().files().post( + createGlipFileNewRequest, + createGlipFileNewParameters, +); await rc.revoke(); ``` -- `createGlipFileNewRequest` is of type [CreateGlipFileNewRequest](./definitions/CreateGlipFileNewRequest.ts) -- `createGlipFileNewParameters` is of type [CreateGlipFileNewParameters](./definitions/CreateGlipFileNewParameters.ts) +- `createGlipFileNewRequest` is of type + [CreateGlipFileNewRequest](./definitions/CreateGlipFileNewRequest.ts) +- `createGlipFileNewParameters` is of type + [CreateGlipFileNewParameters](./definitions/CreateGlipFileNewParameters.ts) - `result` is of type [TMAddFileRequest](./definitions/TMAddFileRequest.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Posts-createGlipFileNew) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Posts-createGlipFileNew) +in API Explorer. ## readUserNoteNew @@ -3197,7 +3553,8 @@ await rc.revoke(); - `result` is of type [TMNoteWithBodyInfo](./definitions/TMNoteWithBodyInfo.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Notes-readUserNoteNew) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Notes-readUserNoteNew) +in API Explorer. ## deleteNoteNew @@ -3220,7 +3577,8 @@ await rc.revoke(); - `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Notes-deleteNoteNew) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Notes-deleteNoteNew) +in API Explorer. ## patchNoteNew @@ -3237,15 +3595,21 @@ Update Note ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.teamMessaging().v1().notes(noteId).patch(tMCreateNoteRequest, patchNoteNewParameters); +var result = await rc.teamMessaging().v1().notes(noteId).patch( + tMCreateNoteRequest, + patchNoteNewParameters, +); await rc.revoke(); ``` -- `tMCreateNoteRequest` is of type [TMCreateNoteRequest](./definitions/TMCreateNoteRequest.ts) -- `patchNoteNewParameters` is of type [PatchNoteNewParameters](./definitions/PatchNoteNewParameters.ts) +- `tMCreateNoteRequest` is of type + [TMCreateNoteRequest](./definitions/TMCreateNoteRequest.ts) +- `patchNoteNewParameters` is of type + [PatchNoteNewParameters](./definitions/PatchNoteNewParameters.ts) - `result` is of type [TMNoteInfo](./definitions/TMNoteInfo.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Notes-patchNoteNew) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Notes-patchNoteNew) +in API Explorer. ## readTaskNew @@ -3268,7 +3632,8 @@ await rc.revoke(); - `result` is of type [TMTaskInfo](./definitions/TMTaskInfo.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Tasks-readTaskNew) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Tasks-readTaskNew) +in API Explorer. ## deleteTaskNew @@ -3291,7 +3656,8 @@ await rc.revoke(); - `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Tasks-deleteTaskNew) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Tasks-deleteTaskNew) +in API Explorer. ## patchTaskNew @@ -3308,14 +3674,18 @@ Update Task ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.teamMessaging().v1().tasks(taskId).patch(tMUpdateTaskRequest); +var result = await rc.teamMessaging().v1().tasks(taskId).patch( + tMUpdateTaskRequest, +); await rc.revoke(); ``` -- `tMUpdateTaskRequest` is of type [TMUpdateTaskRequest](./definitions/TMUpdateTaskRequest.ts) +- `tMUpdateTaskRequest` is of type + [TMUpdateTaskRequest](./definitions/TMUpdateTaskRequest.ts) - `result` is of type [TMTaskList](./definitions/TMTaskList.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Tasks-patchTaskNew) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Tasks-patchTaskNew) +in API Explorer. ## listGlipTeamsNew @@ -3332,14 +3702,18 @@ List Teams ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.teamMessaging().v1().teams().list(listGlipTeamsNewParameters); +var result = await rc.teamMessaging().v1().teams().list( + listGlipTeamsNewParameters, +); await rc.revoke(); ``` -- `listGlipTeamsNewParameters` is of type [ListGlipTeamsNewParameters](./definitions/ListGlipTeamsNewParameters.ts) +- `listGlipTeamsNewParameters` is of type + [ListGlipTeamsNewParameters](./definitions/ListGlipTeamsNewParameters.ts) - `result` is of type [TMTeamList](./definitions/TMTeamList.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Teams-listGlipTeamsNew) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Teams-listGlipTeamsNew) +in API Explorer. ## createGlipTeamNew @@ -3360,10 +3734,12 @@ var result = await rc.teamMessaging().v1().teams().post(tMCreateTeamRequest); await rc.revoke(); ``` -- `tMCreateTeamRequest` is of type [TMCreateTeamRequest](./definitions/TMCreateTeamRequest.ts) +- `tMCreateTeamRequest` is of type + [TMCreateTeamRequest](./definitions/TMCreateTeamRequest.ts) - `result` is of type [TMTeamInfo](./definitions/TMTeamInfo.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Teams-createGlipTeamNew) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Teams-createGlipTeamNew) +in API Explorer. ## readGlipTeamNew @@ -3386,7 +3762,8 @@ await rc.revoke(); - `result` is of type [TMTeamInfo](./definitions/TMTeamInfo.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Teams-readGlipTeamNew) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Teams-readGlipTeamNew) +in API Explorer. ## deleteGlipTeamNew @@ -3409,7 +3786,8 @@ await rc.revoke(); - `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Teams-deleteGlipTeamNew) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Teams-deleteGlipTeamNew) +in API Explorer. ## patchGlipTeamNew @@ -3426,14 +3804,18 @@ Update Team ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.teamMessaging().v1().teams(chatId).patch(tMUpdateTeamRequest); +var result = await rc.teamMessaging().v1().teams(chatId).patch( + tMUpdateTeamRequest, +); await rc.revoke(); ``` -- `tMUpdateTeamRequest` is of type [TMUpdateTeamRequest](./definitions/TMUpdateTeamRequest.ts) +- `tMUpdateTeamRequest` is of type + [TMUpdateTeamRequest](./definitions/TMUpdateTeamRequest.ts) - `result` is of type [TMTeamInfo](./definitions/TMTeamInfo.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Teams-patchGlipTeamNew) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Teams-patchGlipTeamNew) +in API Explorer. ## readGlipPersonNew @@ -3456,7 +3838,8 @@ await rc.revoke(); - `result` is of type [TMPersonInfo](./definitions/TMPersonInfo.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Profile-readGlipPersonNew) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Profile-readGlipPersonNew) +in API Explorer. ## caiPunctuate @@ -3473,15 +3856,21 @@ Smart Punctuation ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.ai().text().v1().async().punctuate().post(punctuateInput, caiPunctuateParameters); +var result = await rc.ai().text().v1().async().punctuate().post( + punctuateInput, + caiPunctuateParameters, +); await rc.revoke(); ``` - `punctuateInput` is of type [PunctuateInput](./definitions/PunctuateInput.ts) -- `caiPunctuateParameters` is of type [CaiPunctuateParameters](./definitions/CaiPunctuateParameters.ts) -- `result` is of type [CaiAsyncApiResponse](./definitions/CaiAsyncApiResponse.ts) +- `caiPunctuateParameters` is of type + [CaiPunctuateParameters](./definitions/CaiPunctuateParameters.ts) +- `result` is of type + [CaiAsyncApiResponse](./definitions/CaiAsyncApiResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Text-caiPunctuate) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Text-caiPunctuate) +in API Explorer. ## caiSummarize @@ -3498,15 +3887,21 @@ Conversational Summarization ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.ai().text().v1().async().summarize().post(summaryInput, caiSummarizeParameters); +var result = await rc.ai().text().v1().async().summarize().post( + summaryInput, + caiSummarizeParameters, +); await rc.revoke(); ``` - `summaryInput` is of type [SummaryInput](./definitions/SummaryInput.ts) -- `caiSummarizeParameters` is of type [CaiSummarizeParameters](./definitions/CaiSummarizeParameters.ts) -- `result` is of type [CaiAsyncApiResponse](./definitions/CaiAsyncApiResponse.ts) +- `caiSummarizeParameters` is of type + [CaiSummarizeParameters](./definitions/CaiSummarizeParameters.ts) +- `result` is of type + [CaiAsyncApiResponse](./definitions/CaiAsyncApiResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Text-caiSummarize) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Text-caiSummarize) +in API Explorer. ## listVideoMeetings @@ -3523,14 +3918,18 @@ List Video Meetings ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.rcvideo().v1().history().meetings().list(listVideoMeetingsParameters); +var result = await rc.rcvideo().v1().history().meetings().list( + listVideoMeetingsParameters, +); await rc.revoke(); ``` -- `listVideoMeetingsParameters` is of type [ListVideoMeetingsParameters](./definitions/ListVideoMeetingsParameters.ts) +- `listVideoMeetingsParameters` is of type + [ListVideoMeetingsParameters](./definitions/ListVideoMeetingsParameters.ts) - `result` is of type [MeetingPage](./definitions/MeetingPage.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Meetings-History-listVideoMeetings) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Meetings-History-listVideoMeetings) +in API Explorer. ## getVideoMeeting @@ -3553,7 +3952,8 @@ await rc.revoke(); - `result` is of type [Meeting](./definitions/Meeting.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Meetings-History-getVideoMeeting) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Meetings-History-getVideoMeeting) +in API Explorer. ## getBridgeByPstnPin @@ -3570,14 +3970,18 @@ Search Bridge by PSTN PIN ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.rcvideo().v2().bridges().pin().pstn(pin).get(getBridgeByPstnPinParameters); +var result = await rc.rcvideo().v2().bridges().pin().pstn(pin).get( + getBridgeByPstnPinParameters, +); await rc.revoke(); ``` -- `getBridgeByPstnPinParameters` is of type [GetBridgeByPstnPinParameters](./definitions/GetBridgeByPstnPinParameters.ts) +- `getBridgeByPstnPinParameters` is of type + [GetBridgeByPstnPinParameters](./definitions/GetBridgeByPstnPinParameters.ts) - `result` is of type [BridgeResponse](./definitions/BridgeResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Bridge-Management-getBridgeByPstnPin) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Bridge-Management-getBridgeByPstnPin) +in API Explorer. ## getBridgeByWebPin @@ -3594,14 +3998,18 @@ Search Bridge by Web PIN ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.rcvideo().v2().bridges().pin().web(pin).get(getBridgeByWebPinParameters); +var result = await rc.rcvideo().v2().bridges().pin().web(pin).get( + getBridgeByWebPinParameters, +); await rc.revoke(); ``` -- `getBridgeByWebPinParameters` is of type [GetBridgeByWebPinParameters](./definitions/GetBridgeByWebPinParameters.ts) +- `getBridgeByWebPinParameters` is of type + [GetBridgeByWebPinParameters](./definitions/GetBridgeByWebPinParameters.ts) - `result` is of type [BridgeResponse](./definitions/BridgeResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Bridge-Management-getBridgeByWebPin) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Bridge-Management-getBridgeByWebPin) +in API Explorer. ## removeLineJWSPublic @@ -3618,14 +4026,17 @@ Remove Phone Line ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi().v2().accounts(accountId).devices(deviceId).delete(removeLineRequest); +var result = await rc.restapi().v2().accounts(accountId).devices(deviceId) + .delete(removeLineRequest); await rc.revoke(); ``` -- `removeLineRequest` is of type [RemoveLineRequest](./definitions/RemoveLineRequest.ts) +- `removeLineRequest` is of type + [RemoveLineRequest](./definitions/RemoveLineRequest.ts) - `result` is of type [RemoveLineResponse](./definitions/RemoveLineResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Devices-removeLineJWSPublic) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Devices-removeLineJWSPublic) +in API Explorer. ## listCompanyActiveCalls @@ -3642,16 +4053,20 @@ List Company Active Calls ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).activeCalls().get(listCompanyActiveCallsParameters); +var result = await rc.restapi(apiVersion).account(accountId).activeCalls().get( + listCompanyActiveCallsParameters, +); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `listCompanyActiveCallsParameters` is of type [ListCompanyActiveCallsParameters](./definitions/ListCompanyActiveCallsParameters.ts) +- `listCompanyActiveCallsParameters` is of type + [ListCompanyActiveCallsParameters](./definitions/ListCompanyActiveCallsParameters.ts) - `result` is of type [CallLogResponse](./definitions/CallLogResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Call-Log-listCompanyActiveCalls) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Log-listCompanyActiveCalls) +in API Explorer. ## listCallQueues @@ -3668,16 +4083,20 @@ List Call Queues ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).callQueues().list(listCallQueuesParameters); +var result = await rc.restapi(apiVersion).account(accountId).callQueues().list( + listCallQueuesParameters, +); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `listCallQueuesParameters` is of type [ListCallQueuesParameters](./definitions/ListCallQueuesParameters.ts) +- `listCallQueuesParameters` is of type + [ListCallQueuesParameters](./definitions/ListCallQueuesParameters.ts) - `result` is of type [CallQueueList](./definitions/CallQueueList.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Call-Queues-listCallQueues) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Queues-listCallQueues) +in API Explorer. ## readCallQueueInfo @@ -3694,7 +4113,8 @@ Get Call Queue ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).callQueues(groupId).get(); +var result = await rc.restapi(apiVersion).account(accountId).callQueues(groupId) + .get(); await rc.revoke(); ``` @@ -3702,7 +4122,8 @@ await rc.revoke(); - Parameter `accountId` is optional with default value `~` - `result` is of type [CallQueueDetails](./definitions/CallQueueDetails.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Call-Queues-readCallQueueInfo) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Queues-readCallQueueInfo) +in API Explorer. ## updateCallQueueInfo @@ -3719,16 +4140,19 @@ Update Call Queue ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).callQueues(groupId).put(callQueueDetailsForUpdate); +var result = await rc.restapi(apiVersion).account(accountId).callQueues(groupId) + .put(callQueueDetailsForUpdate); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `callQueueDetailsForUpdate` is of type [CallQueueDetailsForUpdate](./definitions/CallQueueDetailsForUpdate.ts) +- `callQueueDetailsForUpdate` is of type + [CallQueueDetailsForUpdate](./definitions/CallQueueDetailsForUpdate.ts) - `result` is of type [CallQueueDetails](./definitions/CallQueueDetails.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Call-Queues-updateCallQueueInfo) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Queues-updateCallQueueInfo) +in API Explorer. ## listCustomFields @@ -3745,7 +4169,8 @@ Get Custom Field List ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).customFields().get(); +var result = await rc.restapi(apiVersion).account(accountId).customFields() + .get(); await rc.revoke(); ``` @@ -3753,7 +4178,8 @@ await rc.revoke(); - Parameter `accountId` is optional with default value `~` - `result` is of type [CustomFieldList](./definitions/CustomFieldList.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Custom-Fields-listCustomFields) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Custom-Fields-listCustomFields) +in API Explorer. ## createCustomField @@ -3770,16 +4196,19 @@ Create Custom Field ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).customFields().post(customFieldCreateRequest); +var result = await rc.restapi(apiVersion).account(accountId).customFields() + .post(customFieldCreateRequest); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `customFieldCreateRequest` is of type [CustomFieldCreateRequest](./definitions/CustomFieldCreateRequest.ts) +- `customFieldCreateRequest` is of type + [CustomFieldCreateRequest](./definitions/CustomFieldCreateRequest.ts) - `result` is of type [CustomFieldModel](./definitions/CustomFieldModel.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Custom-Fields-createCustomField) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Custom-Fields-createCustomField) +in API Explorer. ## updateCustomField @@ -3796,16 +4225,20 @@ Update Custom Field ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).customFields(fieldId).put(customFieldUpdateRequest); +var result = await rc.restapi(apiVersion).account(accountId).customFields( + fieldId, +).put(customFieldUpdateRequest); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `customFieldUpdateRequest` is of type [CustomFieldUpdateRequest](./definitions/CustomFieldUpdateRequest.ts) +- `customFieldUpdateRequest` is of type + [CustomFieldUpdateRequest](./definitions/CustomFieldUpdateRequest.ts) - `result` is of type [CustomFieldModel](./definitions/CustomFieldModel.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Custom-Fields-updateCustomField) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Custom-Fields-updateCustomField) +in API Explorer. ## deleteCustomField @@ -3822,7 +4255,9 @@ Delete Custom Field ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).customFields(fieldId).delete(); +var result = await rc.restapi(apiVersion).account(accountId).customFields( + fieldId, +).delete(); await rc.revoke(); ``` @@ -3830,7 +4265,8 @@ await rc.revoke(); - Parameter `accountId` is optional with default value `~` - `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Custom-Fields-deleteCustomField) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Custom-Fields-deleteCustomField) +in API Explorer. ## createFaxMessage @@ -3847,17 +4283,21 @@ Create Fax Message ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).extension(extensionId).fax().post(createFaxMessageRequest); +var result = await rc.restapi(apiVersion).account(accountId).extension( + extensionId, +).fax().post(createFaxMessageRequest); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `createFaxMessageRequest` is of type [CreateFaxMessageRequest](./definitions/CreateFaxMessageRequest.ts) +- `createFaxMessageRequest` is of type + [CreateFaxMessageRequest](./definitions/CreateFaxMessageRequest.ts) - `result` is of type [FaxResponse](./definitions/FaxResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Fax-createFaxMessage) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Fax-createFaxMessage) +in API Explorer. ## createMMS @@ -3874,17 +4314,22 @@ Send MMS ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).extension(extensionId).mms().post(createMMSMessage); +var result = await rc.restapi(apiVersion).account(accountId).extension( + extensionId, +).mms().post(createMMSMessage); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `createMMSMessage` is of type [CreateMMSMessage](./definitions/CreateMMSMessage.ts) -- `result` is of type [GetSMSMessageInfoResponse](./definitions/GetSMSMessageInfoResponse.ts) +- `createMMSMessage` is of type + [CreateMMSMessage](./definitions/CreateMMSMessage.ts) +- `result` is of type + [GetSMSMessageInfoResponse](./definitions/GetSMSMessageInfoResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#SMS-createMMS) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#SMS-createMMS) in +API Explorer. ## createSMSMessage @@ -3901,17 +4346,22 @@ Send SMS ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).extension(extensionId).sms().post(createSMSMessage); +var result = await rc.restapi(apiVersion).account(accountId).extension( + extensionId, +).sms().post(createSMSMessage); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `createSMSMessage` is of type [CreateSMSMessage](./definitions/CreateSMSMessage.ts) -- `result` is of type [GetSMSMessageInfoResponse](./definitions/GetSMSMessageInfoResponse.ts) +- `createSMSMessage` is of type + [CreateSMSMessage](./definitions/CreateSMSMessage.ts) +- `result` is of type + [GetSMSMessageInfoResponse](./definitions/GetSMSMessageInfoResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#SMS-createSMSMessage) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#SMS-createSMSMessage) +in API Explorer. ## listIvrPrompts @@ -3928,7 +4378,8 @@ List IVR Prompts ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).ivrPrompts().list(); +var result = await rc.restapi(apiVersion).account(accountId).ivrPrompts() + .list(); await rc.revoke(); ``` @@ -3936,7 +4387,8 @@ await rc.revoke(); - Parameter `accountId` is optional with default value `~` - `result` is of type [IvrPrompts](./definitions/IvrPrompts.ts) -[Try it out](https://developer.ringcentral.com/api-reference#IVR-listIvrPrompts) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#IVR-listIvrPrompts) +in API Explorer. ## createIVRPrompt @@ -3953,16 +4405,20 @@ Create IVR Prompts ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).ivrPrompts().post(createIVRPromptRequest); +var result = await rc.restapi(apiVersion).account(accountId).ivrPrompts().post( + createIVRPromptRequest, +); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `createIVRPromptRequest` is of type [CreateIVRPromptRequest](./definitions/CreateIVRPromptRequest.ts) +- `createIVRPromptRequest` is of type + [CreateIVRPromptRequest](./definitions/CreateIVRPromptRequest.ts) - `result` is of type [PromptInfo](./definitions/PromptInfo.ts) -[Try it out](https://developer.ringcentral.com/api-reference#IVR-createIVRPrompt) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#IVR-createIVRPrompt) +in API Explorer. ## readIVRPrompt @@ -3979,7 +4435,9 @@ Get IVR Prompt ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).ivrPrompts(promptId).get(); +var result = await rc.restapi(apiVersion).account(accountId).ivrPrompts( + promptId, +).get(); await rc.revoke(); ``` @@ -3987,7 +4445,8 @@ await rc.revoke(); - Parameter `accountId` is optional with default value `~` - `result` is of type [PromptInfo](./definitions/PromptInfo.ts) -[Try it out](https://developer.ringcentral.com/api-reference#IVR-readIVRPrompt) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#IVR-readIVRPrompt) +in API Explorer. ## updateIVRPrompt @@ -4004,16 +4463,20 @@ Update IVR Prompt ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).ivrPrompts(promptId).put(updateIVRPromptRequest); +var result = await rc.restapi(apiVersion).account(accountId).ivrPrompts( + promptId, +).put(updateIVRPromptRequest); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `updateIVRPromptRequest` is of type [UpdateIVRPromptRequest](./definitions/UpdateIVRPromptRequest.ts) +- `updateIVRPromptRequest` is of type + [UpdateIVRPromptRequest](./definitions/UpdateIVRPromptRequest.ts) - `result` is of type [PromptInfo](./definitions/PromptInfo.ts) -[Try it out](https://developer.ringcentral.com/api-reference#IVR-updateIVRPrompt) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#IVR-updateIVRPrompt) +in API Explorer. ## deleteIVRPrompt @@ -4030,7 +4493,9 @@ Delete IVR Prompt ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).ivrPrompts(promptId).delete(); +var result = await rc.restapi(apiVersion).account(accountId).ivrPrompts( + promptId, +).delete(); await rc.revoke(); ``` @@ -4038,7 +4503,8 @@ await rc.revoke(); - Parameter `accountId` is optional with default value `~` - `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#IVR-deleteIVRPrompt) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#IVR-deleteIVRPrompt) +in API Explorer. ## listAccountPhoneNumbers @@ -4055,16 +4521,21 @@ List Company Phone Numbers ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).phoneNumber().list(listAccountPhoneNumbersParameters); +var result = await rc.restapi(apiVersion).account(accountId).phoneNumber().list( + listAccountPhoneNumbersParameters, +); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `listAccountPhoneNumbersParameters` is of type [ListAccountPhoneNumbersParameters](./definitions/ListAccountPhoneNumbersParameters.ts) -- `result` is of type [AccountPhoneNumbers](./definitions/AccountPhoneNumbers.ts) +- `listAccountPhoneNumbersParameters` is of type + [ListAccountPhoneNumbersParameters](./definitions/ListAccountPhoneNumbersParameters.ts) +- `result` is of type + [AccountPhoneNumbers](./definitions/AccountPhoneNumbers.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Phone-Numbers-listAccountPhoneNumbers) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Phone-Numbers-listAccountPhoneNumbers) +in API Explorer. ## readAccountPhoneNumber @@ -4081,15 +4552,19 @@ Get Phone Number ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).phoneNumber(phoneNumberId).get(); +var result = await rc.restapi(apiVersion).account(accountId).phoneNumber( + phoneNumberId, +).get(); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `result` is of type [CompanyPhoneNumberInfo](./definitions/CompanyPhoneNumberInfo.ts) +- `result` is of type + [CompanyPhoneNumberInfo](./definitions/CompanyPhoneNumberInfo.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Phone-Numbers-readAccountPhoneNumber) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Phone-Numbers-readAccountPhoneNumber) +in API Explorer. ## readAccountServiceInfo @@ -4106,7 +4581,8 @@ Get Account Service Info ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).serviceInfo().get(); +var result = await rc.restapi(apiVersion).account(accountId).serviceInfo() + .get(); await rc.revoke(); ``` @@ -4114,7 +4590,8 @@ await rc.revoke(); - Parameter `accountId` is optional with default value `~` - `result` is of type [AccountServiceInfo](./definitions/AccountServiceInfo.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Company-readAccountServiceInfo) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Company-readAccountServiceInfo) +in API Explorer. ## listSiteMembers @@ -4131,7 +4608,8 @@ List Site Members ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).sites(siteId).members().get(); +var result = await rc.restapi(apiVersion).account(accountId).sites(siteId) + .members().get(); await rc.revoke(); ``` @@ -4139,7 +4617,8 @@ await rc.revoke(); - Parameter `accountId` is optional with default value `~` - `result` is of type [SiteMembersList](./definitions/SiteMembersList.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Multi-Site-listSiteMembers) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Multi-Site-listSiteMembers) +in API Explorer. ## listCountries @@ -4156,15 +4635,20 @@ List Countries ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).dictionary().country().list(listCountriesParameters); +var result = await rc.restapi(apiVersion).dictionary().country().list( + listCountriesParameters, +); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `listCountriesParameters` is of type [ListCountriesParameters](./definitions/ListCountriesParameters.ts) -- `result` is of type [CountryListDictionaryModel](./definitions/CountryListDictionaryModel.ts) +- `listCountriesParameters` is of type + [ListCountriesParameters](./definitions/ListCountriesParameters.ts) +- `result` is of type + [CountryListDictionaryModel](./definitions/CountryListDictionaryModel.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Regional-Settings-listCountries) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Regional-Settings-listCountries) +in API Explorer. ## readCountry @@ -4186,9 +4670,11 @@ await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `result` is of type [CountryInfoDictionaryModel](./definitions/CountryInfoDictionaryModel.ts) +- `result` is of type + [CountryInfoDictionaryModel](./definitions/CountryInfoDictionaryModel.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Regional-Settings-readCountry) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Regional-Settings-readCountry) +in API Explorer. ## listStandardGreetings @@ -4205,15 +4691,20 @@ List Standard Greetings ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).dictionary().greeting().list(listStandardGreetingsParameters); +var result = await rc.restapi(apiVersion).dictionary().greeting().list( + listStandardGreetingsParameters, +); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `listStandardGreetingsParameters` is of type [ListStandardGreetingsParameters](./definitions/ListStandardGreetingsParameters.ts) -- `result` is of type [DictionaryGreetingList](./definitions/DictionaryGreetingList.ts) +- `listStandardGreetingsParameters` is of type + [ListStandardGreetingsParameters](./definitions/ListStandardGreetingsParameters.ts) +- `result` is of type + [DictionaryGreetingList](./definitions/DictionaryGreetingList.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Greetings-listStandardGreetings) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Greetings-listStandardGreetings) +in API Explorer. ## readStandardGreeting @@ -4230,14 +4721,17 @@ Get Standard Greeting ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).dictionary().greeting(greetingId).get(); +var result = await rc.restapi(apiVersion).dictionary().greeting(greetingId) + .get(); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `result` is of type [DictionaryGreetingInfo](./definitions/DictionaryGreetingInfo.ts) +- `result` is of type + [DictionaryGreetingInfo](./definitions/DictionaryGreetingInfo.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Greetings-readStandardGreeting) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Greetings-readStandardGreeting) +in API Explorer. ## listLanguages @@ -4261,7 +4755,8 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - `result` is of type [LanguageList](./definitions/LanguageList.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Regional-Settings-listLanguages) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Regional-Settings-listLanguages) +in API Explorer. ## readLanguage @@ -4278,14 +4773,16 @@ Get Language ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).dictionary().language(languageId).get(); +var result = await rc.restapi(apiVersion).dictionary().language(languageId) + .get(); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - `result` is of type [LanguageInfo](./definitions/LanguageInfo.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Regional-Settings-readLanguage) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Regional-Settings-readLanguage) +in API Explorer. ## listLocations @@ -4302,15 +4799,20 @@ List Locations ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).dictionary().location().get(listLocationsParameters); +var result = await rc.restapi(apiVersion).dictionary().location().get( + listLocationsParameters, +); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `listLocationsParameters` is of type [ListLocationsParameters](./definitions/ListLocationsParameters.ts) -- `result` is of type [GetLocationListResponse](./definitions/GetLocationListResponse.ts) +- `listLocationsParameters` is of type + [ListLocationsParameters](./definitions/ListLocationsParameters.ts) +- `result` is of type + [GetLocationListResponse](./definitions/GetLocationListResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Regional-Settings-listLocations) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Regional-Settings-listLocations) +in API Explorer. ## listPermissions @@ -4327,15 +4829,20 @@ List Permissions ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).dictionary().permission().list(listPermissionsParameters); +var result = await rc.restapi(apiVersion).dictionary().permission().list( + listPermissionsParameters, +); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `listPermissionsParameters` is of type [ListPermissionsParameters](./definitions/ListPermissionsParameters.ts) -- `result` is of type [PermissionCollectionResource](./definitions/PermissionCollectionResource.ts) +- `listPermissionsParameters` is of type + [ListPermissionsParameters](./definitions/ListPermissionsParameters.ts) +- `result` is of type + [PermissionCollectionResource](./definitions/PermissionCollectionResource.ts) -[Try it out](https://developer.ringcentral.com/api-reference#User-Permissions-listPermissions) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#User-Permissions-listPermissions) +in API Explorer. ## readPermission @@ -4352,14 +4859,16 @@ Get Permission ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).dictionary().permission(permissionId).get(); +var result = await rc.restapi(apiVersion).dictionary().permission(permissionId) + .get(); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - `result` is of type [PermissionResource](./definitions/PermissionResource.ts) -[Try it out](https://developer.ringcentral.com/api-reference#User-Permissions-readPermission) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#User-Permissions-readPermission) +in API Explorer. ## listTimezones @@ -4376,15 +4885,20 @@ List Timezones ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).dictionary().timezone().list(listTimezonesParameters); +var result = await rc.restapi(apiVersion).dictionary().timezone().list( + listTimezonesParameters, +); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `listTimezonesParameters` is of type [ListTimezonesParameters](./definitions/ListTimezonesParameters.ts) -- `result` is of type [GetTimezoneListResponse](./definitions/GetTimezoneListResponse.ts) +- `listTimezonesParameters` is of type + [ListTimezonesParameters](./definitions/ListTimezonesParameters.ts) +- `result` is of type + [GetTimezoneListResponse](./definitions/GetTimezoneListResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Regional-Settings-listTimezones) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Regional-Settings-listTimezones) +in API Explorer. ## readTimezone @@ -4401,14 +4915,17 @@ Get Timezone ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).dictionary().timezone(timezoneId).get(); +var result = await rc.restapi(apiVersion).dictionary().timezone(timezoneId) + .get(); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `result` is of type [GetTimezoneInfoResponse](./definitions/GetTimezoneInfoResponse.ts) +- `result` is of type + [GetTimezoneInfoResponse](./definitions/GetTimezoneInfoResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Regional-Settings-readTimezone) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Regional-Settings-readTimezone) +in API Explorer. ## listStandardUserRole @@ -4425,15 +4942,20 @@ List Standard User Roles ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).dictionary().userRole().list(listStandardUserRoleParameters); +var result = await rc.restapi(apiVersion).dictionary().userRole().list( + listStandardUserRoleParameters, +); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `listStandardUserRoleParameters` is of type [ListStandardUserRoleParameters](./definitions/ListStandardUserRoleParameters.ts) -- `result` is of type [RolesCollectionResource](./definitions/RolesCollectionResource.ts) +- `listStandardUserRoleParameters` is of type + [ListStandardUserRoleParameters](./definitions/ListStandardUserRoleParameters.ts) +- `result` is of type + [RolesCollectionResource](./definitions/RolesCollectionResource.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Role-Management-listStandardUserRole) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Role-Management-listStandardUserRole) +in API Explorer. ## readStandardUserRole @@ -4457,7 +4979,8 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - `result` is of type [RoleResource](./definitions/RoleResource.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Role-Management-readStandardUserRole) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Role-Management-readStandardUserRole) +in API Explorer. ## parsePhoneNumber @@ -4483,11 +5006,15 @@ await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `parsePhoneNumberRequest` is of type [ParsePhoneNumberRequest](./definitions/ParsePhoneNumberRequest.ts) -- `parsePhoneNumberParameters` is of type [ParsePhoneNumberParameters](./definitions/ParsePhoneNumberParameters.ts) -- `result` is of type [ParsePhoneNumberResponse](./definitions/ParsePhoneNumberResponse.ts) +- `parsePhoneNumberRequest` is of type + [ParsePhoneNumberRequest](./definitions/ParsePhoneNumberRequest.ts) +- `parsePhoneNumberParameters` is of type + [ParsePhoneNumberParameters](./definitions/ParsePhoneNumberParameters.ts) +- `result` is of type + [ParsePhoneNumberResponse](./definitions/ParsePhoneNumberResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Phone-Numbers-parsePhoneNumber) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Phone-Numbers-parsePhoneNumber) +in API Explorer. ## renewSubscription @@ -4504,14 +5031,16 @@ Renew Subscription ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).subscription(subscriptionId).renew().post(); +var result = await rc.restapi(apiVersion).subscription(subscriptionId).renew() + .post(); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - `result` is of type [SubscriptionInfo](./definitions/SubscriptionInfo.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Subscriptions-renewSubscription) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Subscriptions-renewSubscription) +in API Explorer. ## scimGetProviderConfig2 @@ -4535,7 +5064,8 @@ await rc.revoke(); - Parameter `version` is optional with default value `v2` - `result` is of type [ScimProviderConfig](./definitions/ScimProviderConfig.ts) -[Try it out](https://developer.ringcentral.com/api-reference#SCIM-scimGetProviderConfig2) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#SCIM-scimGetProviderConfig2) +in API Explorer. ## readGlipPostsNew @@ -4552,14 +5082,18 @@ List Posts ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.teamMessaging().v1().chats(chatId).posts().list(readGlipPostsNewParameters); +var result = await rc.teamMessaging().v1().chats(chatId).posts().list( + readGlipPostsNewParameters, +); await rc.revoke(); ``` -- `readGlipPostsNewParameters` is of type [ReadGlipPostsNewParameters](./definitions/ReadGlipPostsNewParameters.ts) +- `readGlipPostsNewParameters` is of type + [ReadGlipPostsNewParameters](./definitions/ReadGlipPostsNewParameters.ts) - `result` is of type [TMPostsList](./definitions/TMPostsList.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Posts-readGlipPostsNew) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Posts-readGlipPostsNew) +in API Explorer. ## createGlipPostNew @@ -4576,14 +5110,18 @@ Create Post ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.teamMessaging().v1().chats(chatId).posts().post(tMCreatePostRequest); +var result = await rc.teamMessaging().v1().chats(chatId).posts().post( + tMCreatePostRequest, +); await rc.revoke(); ``` -- `tMCreatePostRequest` is of type [TMCreatePostRequest](./definitions/TMCreatePostRequest.ts) +- `tMCreatePostRequest` is of type + [TMCreatePostRequest](./definitions/TMCreatePostRequest.ts) - `result` is of type [TMPostInfo](./definitions/TMPostInfo.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Posts-createGlipPostNew) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Posts-createGlipPostNew) +in API Explorer. ## readGlipPostNew @@ -4606,7 +5144,8 @@ await rc.revoke(); - `result` is of type [TMPostInfo](./definitions/TMPostInfo.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Posts-readGlipPostNew) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Posts-readGlipPostNew) +in API Explorer. ## deleteGlipPostNew @@ -4629,7 +5168,8 @@ await rc.revoke(); - `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Posts-deleteGlipPostNew) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Posts-deleteGlipPostNew) +in API Explorer. ## patchGlipPostNew @@ -4646,14 +5186,18 @@ Update Post ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.teamMessaging().v1().chats(chatId).posts(postId).patch(tMUpdatePostRequest); +var result = await rc.teamMessaging().v1().chats(chatId).posts(postId).patch( + tMUpdatePostRequest, +); await rc.revoke(); ``` -- `tMUpdatePostRequest` is of type [TMUpdatePostRequest](./definitions/TMUpdatePostRequest.ts) +- `tMUpdatePostRequest` is of type + [TMUpdatePostRequest](./definitions/TMUpdatePostRequest.ts) - `result` is of type [TMPostInfo](./definitions/TMPostInfo.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Posts-patchGlipPostNew) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Posts-patchGlipPostNew) +in API Explorer. ## unfavoriteGlipChatNew @@ -4676,7 +5220,8 @@ await rc.revoke(); - `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Chats-unfavoriteGlipChatNew) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Chats-unfavoriteGlipChatNew) +in API Explorer. ## readTMCompanyInfoNew @@ -4699,7 +5244,8 @@ await rc.revoke(); - `result` is of type [TMCompanyInfo](./definitions/TMCompanyInfo.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Profile-readTMCompanyInfoNew) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Profile-readTMCompanyInfoNew) +in API Explorer. ## readGlipEveryoneNew @@ -4722,7 +5268,8 @@ await rc.revoke(); - `result` is of type [EveryoneTeamInfo](./definitions/EveryoneTeamInfo.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Teams-readGlipEveryoneNew) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Teams-readGlipEveryoneNew) +in API Explorer. ## patchGlipEveryoneNew @@ -4739,14 +5286,18 @@ Update Everyone Chat ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.teamMessaging().v1().everyone().patch(updateEveryoneTeamRequest); +var result = await rc.teamMessaging().v1().everyone().patch( + updateEveryoneTeamRequest, +); await rc.revoke(); ``` -- `updateEveryoneTeamRequest` is of type [UpdateEveryoneTeamRequest](./definitions/UpdateEveryoneTeamRequest.ts) +- `updateEveryoneTeamRequest` is of type + [UpdateEveryoneTeamRequest](./definitions/UpdateEveryoneTeamRequest.ts) - `result` is of type [EveryoneTeamInfo](./definitions/EveryoneTeamInfo.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Teams-patchGlipEveryoneNew) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Teams-patchGlipEveryoneNew) +in API Explorer. ## listFavoriteChatsNew @@ -4763,14 +5314,19 @@ List Favorite Chats ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.teamMessaging().v1().favorites().get(listFavoriteChatsNewParameters); +var result = await rc.teamMessaging().v1().favorites().get( + listFavoriteChatsNewParameters, +); await rc.revoke(); ``` -- `listFavoriteChatsNewParameters` is of type [ListFavoriteChatsNewParameters](./definitions/ListFavoriteChatsNewParameters.ts) -- `result` is of type [TMChatListWithoutNavigation](./definitions/TMChatListWithoutNavigation.ts) +- `listFavoriteChatsNewParameters` is of type + [ListFavoriteChatsNewParameters](./definitions/ListFavoriteChatsNewParameters.ts) +- `result` is of type + [TMChatListWithoutNavigation](./definitions/TMChatListWithoutNavigation.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Chats-listFavoriteChatsNew) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Chats-listFavoriteChatsNew) +in API Explorer. ## listGlipGroupWebhooksNew @@ -4793,7 +5349,8 @@ await rc.revoke(); - `result` is of type [TMWebhookList](./definitions/TMWebhookList.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Incoming-Webhooks-listGlipGroupWebhooksNew) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Incoming-Webhooks-listGlipGroupWebhooksNew) +in API Explorer. ## createGlipGroupWebhookNew @@ -4816,7 +5373,8 @@ await rc.revoke(); - `result` is of type [TMWebhookInfo](./definitions/TMWebhookInfo.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Incoming-Webhooks-createGlipGroupWebhookNew) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Incoming-Webhooks-createGlipGroupWebhookNew) +in API Explorer. ## lockNoteNew @@ -4839,7 +5397,8 @@ await rc.revoke(); - `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Notes-lockNoteNew) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Notes-lockNoteNew) +in API Explorer. ## joinGlipTeamNew @@ -4862,7 +5421,8 @@ await rc.revoke(); - `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Teams-joinGlipTeamNew) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Teams-joinGlipTeamNew) +in API Explorer. ## unarchiveGlipTeamNew @@ -4885,7 +5445,8 @@ await rc.revoke(); - `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Teams-unarchiveGlipTeamNew) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Teams-unarchiveGlipTeamNew) +in API Explorer. ## listGlipWebhooksNew @@ -4908,7 +5469,8 @@ await rc.revoke(); - `result` is of type [TMWebhookList](./definitions/TMWebhookList.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Incoming-Webhooks-listGlipWebhooksNew) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Incoming-Webhooks-listGlipWebhooksNew) +in API Explorer. ## readGlipWebhookNew @@ -4931,7 +5493,8 @@ await rc.revoke(); - `result` is of type [TMWebhookList](./definitions/TMWebhookList.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Incoming-Webhooks-readGlipWebhookNew) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Incoming-Webhooks-readGlipWebhookNew) +in API Explorer. ## deleteGlipWebhookNew @@ -4954,7 +5517,8 @@ await rc.revoke(); - `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Incoming-Webhooks-deleteGlipWebhookNew) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Incoming-Webhooks-deleteGlipWebhookNew) +in API Explorer. ## addGlipTeamMembersNew @@ -4971,14 +5535,18 @@ Add Team Members ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.teamMessaging().v1().teams(chatId).add().post(tMAddTeamMembersRequest); +var result = await rc.teamMessaging().v1().teams(chatId).add().post( + tMAddTeamMembersRequest, +); await rc.revoke(); ``` -- `tMAddTeamMembersRequest` is of type [TMAddTeamMembersRequest](./definitions/TMAddTeamMembersRequest.ts) +- `tMAddTeamMembersRequest` is of type + [TMAddTeamMembersRequest](./definitions/TMAddTeamMembersRequest.ts) - `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Teams-addGlipTeamMembersNew) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Teams-addGlipTeamMembersNew) +in API Explorer. ## rcwConfigListAllSessions @@ -4995,14 +5563,19 @@ List Sessions across Multiple Webinars ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.webinar().configuration().v1().sessions().get(rcwConfigListAllSessionsParameters); +var result = await rc.webinar().configuration().v1().sessions().get( + rcwConfigListAllSessionsParameters, +); await rc.revoke(); ``` -- `rcwConfigListAllSessionsParameters` is of type [RcwConfigListAllSessionsParameters](./definitions/RcwConfigListAllSessionsParameters.ts) -- `result` is of type [WcsSessionGlobalListResource](./definitions/WcsSessionGlobalListResource.ts) +- `rcwConfigListAllSessionsParameters` is of type + [RcwConfigListAllSessionsParameters](./definitions/RcwConfigListAllSessionsParameters.ts) +- `result` is of type + [WcsSessionGlobalListResource](./definitions/WcsSessionGlobalListResource.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Webinars-and-Sessions-rcwConfigListAllSessions) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Webinars-and-Sessions-rcwConfigListAllSessions) +in API Explorer. ## rcwConfigListWebinars @@ -5019,14 +5592,19 @@ List User's Webinars ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.webinar().configuration().v1().webinars().list(rcwConfigListWebinarsParameters); +var result = await rc.webinar().configuration().v1().webinars().list( + rcwConfigListWebinarsParameters, +); await rc.revoke(); ``` -- `rcwConfigListWebinarsParameters` is of type [RcwConfigListWebinarsParameters](./definitions/RcwConfigListWebinarsParameters.ts) -- `result` is of type [WebinarListResource](./definitions/WebinarListResource.ts) +- `rcwConfigListWebinarsParameters` is of type + [RcwConfigListWebinarsParameters](./definitions/RcwConfigListWebinarsParameters.ts) +- `result` is of type + [WebinarListResource](./definitions/WebinarListResource.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Webinars-and-Sessions-rcwConfigListWebinars) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Webinars-and-Sessions-rcwConfigListWebinars) +in API Explorer. ## rcwConfigCreateWebinar @@ -5043,14 +5621,18 @@ Create Webinar ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.webinar().configuration().v1().webinars().post(webinarCreationRequest); +var result = await rc.webinar().configuration().v1().webinars().post( + webinarCreationRequest, +); await rc.revoke(); ``` -- `webinarCreationRequest` is of type [WebinarCreationRequest](./definitions/WebinarCreationRequest.ts) +- `webinarCreationRequest` is of type + [WebinarCreationRequest](./definitions/WebinarCreationRequest.ts) - `result` is of type [WcsWebinarResource](./definitions/WcsWebinarResource.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Webinars-and-Sessions-rcwConfigCreateWebinar) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Webinars-and-Sessions-rcwConfigCreateWebinar) +in API Explorer. ## rcwConfigGetWebinar @@ -5073,7 +5655,8 @@ await rc.revoke(); - `result` is of type [WcsWebinarResource](./definitions/WcsWebinarResource.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Webinars-and-Sessions-rcwConfigGetWebinar) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Webinars-and-Sessions-rcwConfigGetWebinar) +in API Explorer. ## rcwConfigDeleteWebinar @@ -5090,13 +5673,15 @@ Delete Webinar ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.webinar().configuration().v1().webinars(webinarId).delete(); +var result = await rc.webinar().configuration().v1().webinars(webinarId) + .delete(); await rc.revoke(); ``` - `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Webinars-and-Sessions-rcwConfigDeleteWebinar) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Webinars-and-Sessions-rcwConfigDeleteWebinar) +in API Explorer. ## rcwConfigUpdateWebinar @@ -5113,14 +5698,18 @@ Update Webinar ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.webinar().configuration().v1().webinars(webinarId).patch(webinarBaseModel); +var result = await rc.webinar().configuration().v1().webinars(webinarId).patch( + webinarBaseModel, +); await rc.revoke(); ``` -- `webinarBaseModel` is of type [WebinarBaseModel](./definitions/WebinarBaseModel.ts) +- `webinarBaseModel` is of type + [WebinarBaseModel](./definitions/WebinarBaseModel.ts) - `result` is of type [WcsWebinarResource](./definitions/WcsWebinarResource.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Webinars-and-Sessions-rcwConfigUpdateWebinar) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Webinars-and-Sessions-rcwConfigUpdateWebinar) +in API Explorer. ## rcwHistoryListAllSessions @@ -5137,14 +5726,19 @@ List Historical Webinar Sessions across Multiple Webinars ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.webinar().history().v1().sessions().get(rcwHistoryListAllSessionsParameters); +var result = await rc.webinar().history().v1().sessions().get( + rcwHistoryListAllSessionsParameters, +); await rc.revoke(); ``` -- `rcwHistoryListAllSessionsParameters` is of type [RcwHistoryListAllSessionsParameters](./definitions/RcwHistoryListAllSessionsParameters.ts) -- `result` is of type [SessionGlobalListResource](./definitions/SessionGlobalListResource.ts) +- `rcwHistoryListAllSessionsParameters` is of type + [RcwHistoryListAllSessionsParameters](./definitions/RcwHistoryListAllSessionsParameters.ts) +- `result` is of type + [SessionGlobalListResource](./definitions/SessionGlobalListResource.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Historical-Webinars-rcwHistoryListAllSessions) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Historical-Webinars-rcwHistoryListAllSessions) +in API Explorer. ## rcwHistoryGetWebinar @@ -5167,7 +5761,8 @@ await rc.revoke(); - `result` is of type [WebinarResource](./definitions/WebinarResource.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Historical-Webinars-rcwHistoryGetWebinar) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Historical-Webinars-rcwHistoryGetWebinar) +in API Explorer. ## caiSpeechToText @@ -5184,15 +5779,21 @@ Speech to Text Conversion ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.ai().audio().v1().async().speechToText().post(asrInput, caiSpeechToTextParameters); +var result = await rc.ai().audio().v1().async().speechToText().post( + asrInput, + caiSpeechToTextParameters, +); await rc.revoke(); ``` - `asrInput` is of type [AsrInput](./definitions/AsrInput.ts) -- `caiSpeechToTextParameters` is of type [CaiSpeechToTextParameters](./definitions/CaiSpeechToTextParameters.ts) -- `result` is of type [CaiAsyncApiResponse](./definitions/CaiAsyncApiResponse.ts) +- `caiSpeechToTextParameters` is of type + [CaiSpeechToTextParameters](./definitions/CaiSpeechToTextParameters.ts) +- `result` is of type + [CaiAsyncApiResponse](./definitions/CaiAsyncApiResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Audio-caiSpeechToText) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Audio-caiSpeechToText) +in API Explorer. ## getAccountRecordings @@ -5209,15 +5810,19 @@ List Account Recordings ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.rcvideo().v1().account(accountId).recordings().get(getAccountRecordingsParameters); +var result = await rc.rcvideo().v1().account(accountId).recordings().get( + getAccountRecordingsParameters, +); await rc.revoke(); ``` - Parameter `accountId` is optional with default value `~` -- `getAccountRecordingsParameters` is of type [GetAccountRecordingsParameters](./definitions/GetAccountRecordingsParameters.ts) +- `getAccountRecordingsParameters` is of type + [GetAccountRecordingsParameters](./definitions/GetAccountRecordingsParameters.ts) - `result` is of type [CloudRecordings](./definitions/CloudRecordings.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Meeting-Recordings-getAccountRecordings) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Meeting-Recordings-getAccountRecordings) +in API Explorer. ## listCostCenters @@ -5240,7 +5845,8 @@ await rc.revoke(); - `result` is of type [CostCenterList](./definitions/CostCenterList.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Cost-Centers-listCostCenters) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Cost-Centers-listCostCenters) +in API Explorer. ## bulkDeleteUsersV2 @@ -5257,14 +5863,19 @@ Delete User Extensions ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi().v2().accounts(accountId).extensions().delete(bulkDeleteUsersRequest); +var result = await rc.restapi().v2().accounts(accountId).extensions().delete( + bulkDeleteUsersRequest, +); await rc.revoke(); ``` -- `bulkDeleteUsersRequest` is of type [BulkDeleteUsersRequest](./definitions/BulkDeleteUsersRequest.ts) -- `result` is of type [BulkDeleteUsersResponse](./definitions/BulkDeleteUsersResponse.ts) +- `bulkDeleteUsersRequest` is of type + [BulkDeleteUsersRequest](./definitions/BulkDeleteUsersRequest.ts) +- `result` is of type + [BulkDeleteUsersResponse](./definitions/BulkDeleteUsersResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#User-Settings-bulkDeleteUsersV2) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#User-Settings-bulkDeleteUsersV2) +in API Explorer. ## listAccountPhoneNumbersV2 @@ -5281,14 +5892,19 @@ List Account Phone Numbers ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi().v2().accounts(accountId).phoneNumbers().get(listAccountPhoneNumbersV2Parameters); +var result = await rc.restapi().v2().accounts(accountId).phoneNumbers().get( + listAccountPhoneNumbersV2Parameters, +); await rc.revoke(); ``` -- `listAccountPhoneNumbersV2Parameters` is of type [ListAccountPhoneNumbersV2Parameters](./definitions/ListAccountPhoneNumbersV2Parameters.ts) -- `result` is of type [AccountPhoneNumberList](./definitions/AccountPhoneNumberList.ts) +- `listAccountPhoneNumbersV2Parameters` is of type + [ListAccountPhoneNumbersV2Parameters](./definitions/ListAccountPhoneNumbersV2Parameters.ts) +- `result` is of type + [AccountPhoneNumberList](./definitions/AccountPhoneNumberList.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Phone-Numbers-listAccountPhoneNumbersV2) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Phone-Numbers-listAccountPhoneNumbersV2) +in API Explorer. ## deleteNumbersFromInventoryV2 @@ -5305,14 +5921,19 @@ Delete Numbers from Inventory ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi().v2().accounts(accountId).phoneNumbers().delete(deletePhoneNumbersRequest); +var result = await rc.restapi().v2().accounts(accountId).phoneNumbers().delete( + deletePhoneNumbersRequest, +); await rc.revoke(); ``` -- `deletePhoneNumbersRequest` is of type [DeletePhoneNumbersRequest](./definitions/DeletePhoneNumbersRequest.ts) -- `result` is of type [DeletePhoneNumbersResponse](./definitions/DeletePhoneNumbersResponse.ts) +- `deletePhoneNumbersRequest` is of type + [DeletePhoneNumbersRequest](./definitions/DeletePhoneNumbersRequest.ts) +- `result` is of type + [DeletePhoneNumbersResponse](./definitions/DeletePhoneNumbersResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Phone-Numbers-deleteNumbersFromInventoryV2) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Phone-Numbers-deleteNumbersFromInventoryV2) +in API Explorer. ## assignPhoneNumberV2 @@ -5329,14 +5950,19 @@ Assign Phone Number ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi().v2().accounts(accountId).phoneNumbers(phoneNumberId).patch(assignPhoneNumberRequest); +var result = await rc.restapi().v2().accounts(accountId).phoneNumbers( + phoneNumberId, +).patch(assignPhoneNumberRequest); await rc.revoke(); ``` -- `assignPhoneNumberRequest` is of type [AssignPhoneNumberRequest](./definitions/AssignPhoneNumberRequest.ts) -- `result` is of type [AccountPhoneNumberInfo](./definitions/AccountPhoneNumberInfo.ts) +- `assignPhoneNumberRequest` is of type + [AssignPhoneNumberRequest](./definitions/AssignPhoneNumberRequest.ts) +- `result` is of type + [AccountPhoneNumberInfo](./definitions/AccountPhoneNumberInfo.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Phone-Numbers-assignPhoneNumberV2) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Phone-Numbers-assignPhoneNumberV2) +in API Explorer. ## listA2PBatches @@ -5353,16 +5979,19 @@ List A2P SMS Batches ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).a2pSms().batches().list(listA2PBatchesParameters); +var result = await rc.restapi(apiVersion).account(accountId).a2pSms().batches() + .list(listA2PBatchesParameters); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `listA2PBatchesParameters` is of type [ListA2PBatchesParameters](./definitions/ListA2PBatchesParameters.ts) +- `listA2PBatchesParameters` is of type + [ListA2PBatchesParameters](./definitions/ListA2PBatchesParameters.ts) - `result` is of type [BatchListResponse](./definitions/BatchListResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#High-Volume-SMS-listA2PBatches) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#High-Volume-SMS-listA2PBatches) +in API Explorer. ## createA2PSMS @@ -5379,16 +6008,20 @@ Send A2P SMS ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).a2pSms().batches().post(messageBatchCreateRequest); +var result = await rc.restapi(apiVersion).account(accountId).a2pSms().batches() + .post(messageBatchCreateRequest); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `messageBatchCreateRequest` is of type [MessageBatchCreateRequest](./definitions/MessageBatchCreateRequest.ts) -- `result` is of type [MessageBatchResponse](./definitions/MessageBatchResponse.ts) +- `messageBatchCreateRequest` is of type + [MessageBatchCreateRequest](./definitions/MessageBatchCreateRequest.ts) +- `result` is of type + [MessageBatchResponse](./definitions/MessageBatchResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#High-Volume-SMS-createA2PSMS) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#High-Volume-SMS-createA2PSMS) +in API Explorer. ## readA2PBatch @@ -5405,15 +6038,19 @@ Get A2P SMS Batch ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).a2pSms().batches(batchId).get(); +var result = await rc.restapi(apiVersion).account(accountId).a2pSms().batches( + batchId, +).get(); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `result` is of type [MessageBatchResponse](./definitions/MessageBatchResponse.ts) +- `result` is of type + [MessageBatchResponse](./definitions/MessageBatchResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#High-Volume-SMS-readA2PBatch) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#High-Volume-SMS-readA2PBatch) +in API Explorer. ## listA2PSMS @@ -5430,16 +6067,20 @@ List A2P SMS Messages ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).a2pSms().messages().list(listA2PSMSParameters); +var result = await rc.restapi(apiVersion).account(accountId).a2pSms().messages() + .list(listA2PSMSParameters); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `listA2PSMSParameters` is of type [ListA2PSMSParameters](./definitions/ListA2PSMSParameters.ts) -- `result` is of type [MessageListResponse](./definitions/MessageListResponse.ts) +- `listA2PSMSParameters` is of type + [ListA2PSMSParameters](./definitions/ListA2PSMSParameters.ts) +- `result` is of type + [MessageListResponse](./definitions/MessageListResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#High-Volume-SMS-listA2PSMS) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#High-Volume-SMS-listA2PSMS) +in API Explorer. ## readA2PSMS @@ -5456,15 +6097,19 @@ Get A2P SMS ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).a2pSms().messages(messageId).get(); +var result = await rc.restapi(apiVersion).account(accountId).a2pSms().messages( + messageId, +).get(); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `result` is of type [MessageDetailsResponse](./definitions/MessageDetailsResponse.ts) +- `result` is of type + [MessageDetailsResponse](./definitions/MessageDetailsResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#High-Volume-SMS-readA2PSMS) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#High-Volume-SMS-readA2PSMS) +in API Explorer. ## readA2PSMSOptOuts @@ -5481,16 +6126,19 @@ List Opted Out Numbers ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).a2pSms().optOuts().get(readA2PSMSOptOutsParameters); +var result = await rc.restapi(apiVersion).account(accountId).a2pSms().optOuts() + .get(readA2PSMSOptOutsParameters); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `readA2PSMSOptOutsParameters` is of type [ReadA2PSMSOptOutsParameters](./definitions/ReadA2PSMSOptOutsParameters.ts) +- `readA2PSMSOptOutsParameters` is of type + [ReadA2PSMSOptOutsParameters](./definitions/ReadA2PSMSOptOutsParameters.ts) - `result` is of type [OptOutListResponse](./definitions/OptOutListResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#High-Volume-SMS-readA2PSMSOptOuts) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#High-Volume-SMS-readA2PSMSOptOuts) +in API Explorer. ## aggregateA2PSMSStatuses @@ -5507,16 +6155,20 @@ List A2P SMS Statuses ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).a2pSms().statuses().get(aggregateA2PSMSStatusesParameters); +var result = await rc.restapi(apiVersion).account(accountId).a2pSms().statuses() + .get(aggregateA2PSMSStatusesParameters); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `aggregateA2PSMSStatusesParameters` is of type [AggregateA2PSMSStatusesParameters](./definitions/AggregateA2PSMSStatusesParameters.ts) -- `result` is of type [MessageStatusesResponse](./definitions/MessageStatusesResponse.ts) +- `aggregateA2PSMSStatusesParameters` is of type + [AggregateA2PSMSStatusesParameters](./definitions/AggregateA2PSMSStatusesParameters.ts) +- `result` is of type + [MessageStatusesResponse](./definitions/MessageStatusesResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#High-Volume-SMS-aggregateA2PSMSStatuses) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#High-Volume-SMS-aggregateA2PSMSStatuses) +in API Explorer. ## listCompanyAnsweringRules @@ -5533,16 +6185,20 @@ List Company Call Handling Rules ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).answeringRule().list(listCompanyAnsweringRulesParameters); +var result = await rc.restapi(apiVersion).account(accountId).answeringRule() + .list(listCompanyAnsweringRulesParameters); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `listCompanyAnsweringRulesParameters` is of type [ListCompanyAnsweringRulesParameters](./definitions/ListCompanyAnsweringRulesParameters.ts) -- `result` is of type [CompanyAnsweringRuleList](./definitions/CompanyAnsweringRuleList.ts) +- `listCompanyAnsweringRulesParameters` is of type + [ListCompanyAnsweringRulesParameters](./definitions/ListCompanyAnsweringRulesParameters.ts) +- `result` is of type + [CompanyAnsweringRuleList](./definitions/CompanyAnsweringRuleList.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Call-Handling-Rules-listCompanyAnsweringRules) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Handling-Rules-listCompanyAnsweringRules) +in API Explorer. ## createCompanyAnsweringRule @@ -5559,16 +6215,20 @@ Create Company Call Handling Rule ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).answeringRule().post(companyAnsweringRuleRequest); +var result = await rc.restapi(apiVersion).account(accountId).answeringRule() + .post(companyAnsweringRuleRequest); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `companyAnsweringRuleRequest` is of type [CompanyAnsweringRuleRequest](./definitions/CompanyAnsweringRuleRequest.ts) -- `result` is of type [CompanyAnsweringRuleInfo](./definitions/CompanyAnsweringRuleInfo.ts) +- `companyAnsweringRuleRequest` is of type + [CompanyAnsweringRuleRequest](./definitions/CompanyAnsweringRuleRequest.ts) +- `result` is of type + [CompanyAnsweringRuleInfo](./definitions/CompanyAnsweringRuleInfo.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Call-Handling-Rules-createCompanyAnsweringRule) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Handling-Rules-createCompanyAnsweringRule) +in API Explorer. ## readCompanyAnsweringRule @@ -5585,15 +6245,19 @@ Get Company Call Handling Rule ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).answeringRule(ruleId).get(); +var result = await rc.restapi(apiVersion).account(accountId).answeringRule( + ruleId, +).get(); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `result` is of type [CompanyAnsweringRuleInfo](./definitions/CompanyAnsweringRuleInfo.ts) +- `result` is of type + [CompanyAnsweringRuleInfo](./definitions/CompanyAnsweringRuleInfo.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Call-Handling-Rules-readCompanyAnsweringRule) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Handling-Rules-readCompanyAnsweringRule) +in API Explorer. ## updateCompanyAnsweringRule @@ -5610,16 +6274,21 @@ Update Company Call Handling Rule ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).answeringRule(ruleId).put(companyAnsweringRuleUpdate); +var result = await rc.restapi(apiVersion).account(accountId).answeringRule( + ruleId, +).put(companyAnsweringRuleUpdate); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `companyAnsweringRuleUpdate` is of type [CompanyAnsweringRuleUpdate](./definitions/CompanyAnsweringRuleUpdate.ts) -- `result` is of type [CompanyAnsweringRuleInfo](./definitions/CompanyAnsweringRuleInfo.ts) +- `companyAnsweringRuleUpdate` is of type + [CompanyAnsweringRuleUpdate](./definitions/CompanyAnsweringRuleUpdate.ts) +- `result` is of type + [CompanyAnsweringRuleInfo](./definitions/CompanyAnsweringRuleInfo.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Call-Handling-Rules-updateCompanyAnsweringRule) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Handling-Rules-updateCompanyAnsweringRule) +in API Explorer. ## deleteCompanyAnsweringRule @@ -5636,7 +6305,9 @@ Delete Company Call Handling Rule ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).answeringRule(ruleId).delete(); +var result = await rc.restapi(apiVersion).account(accountId).answeringRule( + ruleId, +).delete(); await rc.revoke(); ``` @@ -5644,7 +6315,8 @@ await rc.revoke(); - Parameter `accountId` is optional with default value `~` - `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Call-Handling-Rules-deleteCompanyAnsweringRule) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Handling-Rules-deleteCompanyAnsweringRule) +in API Explorer. ## listAssignedRoles @@ -5661,16 +6333,21 @@ List Company Assigned Roles ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).assignedRole().get(listAssignedRolesParameters); +var result = await rc.restapi(apiVersion).account(accountId).assignedRole().get( + listAssignedRolesParameters, +); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `listAssignedRolesParameters` is of type [ListAssignedRolesParameters](./definitions/ListAssignedRolesParameters.ts) -- `result` is of type [ExtensionWithRolesCollectionResource](./definitions/ExtensionWithRolesCollectionResource.ts) +- `listAssignedRolesParameters` is of type + [ListAssignedRolesParameters](./definitions/ListAssignedRolesParameters.ts) +- `result` is of type + [ExtensionWithRolesCollectionResource](./definitions/ExtensionWithRolesCollectionResource.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Role-Management-listAssignedRoles) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Role-Management-listAssignedRoles) +in API Explorer. ## readAccountBusinessAddress @@ -5687,15 +6364,18 @@ Get Account Business Address ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).businessAddress().get(); +var result = await rc.restapi(apiVersion).account(accountId).businessAddress() + .get(); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `result` is of type [AccountBusinessAddressResource](./definitions/AccountBusinessAddressResource.ts) +- `result` is of type + [AccountBusinessAddressResource](./definitions/AccountBusinessAddressResource.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Company-readAccountBusinessAddress) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Company-readAccountBusinessAddress) +in API Explorer. ## updateAccountBusinessAddress @@ -5712,16 +6392,20 @@ Update Company Business Address ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).businessAddress().put(modifyAccountBusinessAddressRequest); +var result = await rc.restapi(apiVersion).account(accountId).businessAddress() + .put(modifyAccountBusinessAddressRequest); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `modifyAccountBusinessAddressRequest` is of type [ModifyAccountBusinessAddressRequest](./definitions/ModifyAccountBusinessAddressRequest.ts) -- `result` is of type [AccountBusinessAddressResource](./definitions/AccountBusinessAddressResource.ts) +- `modifyAccountBusinessAddressRequest` is of type + [ModifyAccountBusinessAddressRequest](./definitions/ModifyAccountBusinessAddressRequest.ts) +- `result` is of type + [AccountBusinessAddressResource](./definitions/AccountBusinessAddressResource.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Company-updateAccountBusinessAddress) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Company-updateAccountBusinessAddress) +in API Explorer. ## readCompanyBusinessHours @@ -5738,15 +6422,18 @@ Get Company Business Hours ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).businessHours().get(); +var result = await rc.restapi(apiVersion).account(accountId).businessHours() + .get(); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `result` is of type [CompanyBusinessHours](./definitions/CompanyBusinessHours.ts) +- `result` is of type + [CompanyBusinessHours](./definitions/CompanyBusinessHours.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Business-Hours-readCompanyBusinessHours) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Business-Hours-readCompanyBusinessHours) +in API Explorer. ## updateCompanyBusinessHours @@ -5763,16 +6450,20 @@ Update Company Business Hours ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).businessHours().put(companyBusinessHoursUpdateRequest); +var result = await rc.restapi(apiVersion).account(accountId).businessHours() + .put(companyBusinessHoursUpdateRequest); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `companyBusinessHoursUpdateRequest` is of type [CompanyBusinessHoursUpdateRequest](./definitions/CompanyBusinessHoursUpdateRequest.ts) -- `result` is of type [CompanyBusinessHours](./definitions/CompanyBusinessHours.ts) +- `companyBusinessHoursUpdateRequest` is of type + [CompanyBusinessHoursUpdateRequest](./definitions/CompanyBusinessHoursUpdateRequest.ts) +- `result` is of type + [CompanyBusinessHours](./definitions/CompanyBusinessHours.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Business-Hours-updateCompanyBusinessHours) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Business-Hours-updateCompanyBusinessHours) +in API Explorer. ## syncAccountCallLog @@ -5789,16 +6480,21 @@ Sync Company Call Log ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).callLogSync().get(syncAccountCallLogParameters); +var result = await rc.restapi(apiVersion).account(accountId).callLogSync().get( + syncAccountCallLogParameters, +); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `syncAccountCallLogParameters` is of type [SyncAccountCallLogParameters](./definitions/SyncAccountCallLogParameters.ts) -- `result` is of type [CallLogSyncResponse](./definitions/CallLogSyncResponse.ts) +- `syncAccountCallLogParameters` is of type + [SyncAccountCallLogParameters](./definitions/SyncAccountCallLogParameters.ts) +- `result` is of type + [CallLogSyncResponse](./definitions/CallLogSyncResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Call-Log-syncAccountCallLog) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Log-syncAccountCallLog) +in API Explorer. ## readCallRecordingSettings @@ -5815,15 +6511,18 @@ Get Call Recording Settings ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).callRecording().get(); +var result = await rc.restapi(apiVersion).account(accountId).callRecording() + .get(); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `result` is of type [CallRecordingSettingsResource](./definitions/CallRecordingSettingsResource.ts) +- `result` is of type + [CallRecordingSettingsResource](./definitions/CallRecordingSettingsResource.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Call-Recording-Settings-readCallRecordingSettings) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Recording-Settings-readCallRecordingSettings) +in API Explorer. ## updateCallRecordingSettings @@ -5840,16 +6539,20 @@ Update Call Recording Settings ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).callRecording().put(callRecordingSettingsResource); +var result = await rc.restapi(apiVersion).account(accountId).callRecording() + .put(callRecordingSettingsResource); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `callRecordingSettingsResource` is of type [CallRecordingSettingsResource](./definitions/CallRecordingSettingsResource.ts) -- `result` is of type [CallRecordingSettingsResource](./definitions/CallRecordingSettingsResource.ts) +- `callRecordingSettingsResource` is of type + [CallRecordingSettingsResource](./definitions/CallRecordingSettingsResource.ts) +- `result` is of type + [CallRecordingSettingsResource](./definitions/CallRecordingSettingsResource.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Call-Recording-Settings-updateCallRecordingSettings) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Recording-Settings-updateCallRecordingSettings) +in API Explorer. ## deleteCompanyCallRecordings @@ -5866,16 +6569,19 @@ Delete Company Call Recordings ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).callRecordings().delete(callRecordingIds); +var result = await rc.restapi(apiVersion).account(accountId).callRecordings() + .delete(callRecordingIds); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `callRecordingIds` is of type [CallRecordingIds](./definitions/CallRecordingIds.ts) +- `callRecordingIds` is of type + [CallRecordingIds](./definitions/CallRecordingIds.ts) - `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Call-Recordings-deleteCompanyCallRecordings) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Recordings-deleteCompanyCallRecordings) +in API Explorer. ## updateDeviceEmergency @@ -5892,16 +6598,19 @@ Update Device Emergency Info ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).device(deviceId).emergency().put(accountDeviceUpdate); +var result = await rc.restapi(apiVersion).account(accountId).device(deviceId) + .emergency().put(accountDeviceUpdate); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `accountDeviceUpdate` is of type [AccountDeviceUpdate](./definitions/AccountDeviceUpdate.ts) +- `accountDeviceUpdate` is of type + [AccountDeviceUpdate](./definitions/AccountDeviceUpdate.ts) - `result` is of type [DeviceResource](./definitions/DeviceResource.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Devices-updateDeviceEmergency) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Devices-updateDeviceEmergency) +in API Explorer. ## readDeviceSipInfo @@ -5918,7 +6627,8 @@ Get Device SIP Info ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).device(deviceId).sipInfo().get(); +var result = await rc.restapi(apiVersion).account(accountId).device(deviceId) + .sipInfo().get(); await rc.revoke(); ``` @@ -5926,7 +6636,8 @@ await rc.revoke(); - Parameter `accountId` is optional with default value `~` - `result` is of type [SipInfoResource](./definitions/SipInfoResource.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Devices-readDeviceSipInfo) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Devices-readDeviceSipInfo) +in API Explorer. ## listExtensionDevices @@ -5955,10 +6666,13 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `listExtensionDevicesParameters` is of type [ListExtensionDevicesParameters](./definitions/ListExtensionDevicesParameters.ts) -- `result` is of type [GetExtensionDevicesResponse](./definitions/GetExtensionDevicesResponse.ts) +- `listExtensionDevicesParameters` is of type + [ListExtensionDevicesParameters](./definitions/ListExtensionDevicesParameters.ts) +- `result` is of type + [GetExtensionDevicesResponse](./definitions/GetExtensionDevicesResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Devices-listExtensionDevices) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Devices-listExtensionDevices) +in API Explorer. ## listExtensionGrants @@ -5987,10 +6701,13 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `listExtensionGrantsParameters` is of type [ListExtensionGrantsParameters](./definitions/ListExtensionGrantsParameters.ts) -- `result` is of type [GetExtensionGrantListResponse](./definitions/GetExtensionGrantListResponse.ts) +- `listExtensionGrantsParameters` is of type + [ListExtensionGrantsParameters](./definitions/ListExtensionGrantsParameters.ts) +- `result` is of type + [GetExtensionGrantListResponse](./definitions/GetExtensionGrantListResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#User-Settings-listExtensionGrants) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#User-Settings-listExtensionGrants) +in API Explorer. ## readAccountGreetingContent @@ -6018,14 +6735,17 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `readAccountGreetingContentParameters` is of type [ReadAccountGreetingContentParameters](./definitions/ReadAccountGreetingContentParameters.ts) +- `readAccountGreetingContentParameters` is of type + [ReadAccountGreetingContentParameters](./definitions/ReadAccountGreetingContentParameters.ts) - `result` is of type `byte[]` ### ❗❗❗ Code sample above may not work -Please refer to [Binary content downloading](/README.md#Binary-content-downloading). +Please refer to +[Binary content downloading](/README.md#Binary-content-downloading). -[Try it out](https://developer.ringcentral.com/api-reference#Greetings-readAccountGreetingContent) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Greetings-readAccountGreetingContent) +in API Explorer. ## readCallRecordingContent @@ -6053,14 +6773,17 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `readCallRecordingContentParameters` is of type [ReadCallRecordingContentParameters](./definitions/ReadCallRecordingContentParameters.ts) +- `readCallRecordingContentParameters` is of type + [ReadCallRecordingContentParameters](./definitions/ReadCallRecordingContentParameters.ts) - `result` is of type `byte[]` ### ❗❗❗ Code sample above may not work -Please refer to [Binary content downloading](/README.md#Binary-content-downloading). +Please refer to +[Binary content downloading](/README.md#Binary-content-downloading). -[Try it out](https://developer.ringcentral.com/api-reference#Call-Recordings-readCallRecordingContent) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Recordings-readCallRecordingContent) +in API Explorer. ## getGlipAdaptiveCardNew @@ -6083,7 +6806,8 @@ await rc.revoke(); - `result` is of type [AdaptiveCardInfo](./definitions/AdaptiveCardInfo.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Adaptive-Cards-getGlipAdaptiveCardNew) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Adaptive-Cards-getGlipAdaptiveCardNew) +in API Explorer. ## updateGlipAdaptiveCardNew @@ -6100,14 +6824,19 @@ Update Adaptive Card ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.teamMessaging().v1().adaptiveCards(cardId).put(adaptiveCardRequest); +var result = await rc.teamMessaging().v1().adaptiveCards(cardId).put( + adaptiveCardRequest, +); await rc.revoke(); ``` -- `adaptiveCardRequest` is of type [AdaptiveCardRequest](./definitions/AdaptiveCardRequest.ts) -- `result` is of type [AdaptiveCardShortInfo](./definitions/AdaptiveCardShortInfo.ts) +- `adaptiveCardRequest` is of type + [AdaptiveCardRequest](./definitions/AdaptiveCardRequest.ts) +- `result` is of type + [AdaptiveCardShortInfo](./definitions/AdaptiveCardShortInfo.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Adaptive-Cards-updateGlipAdaptiveCardNew) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Adaptive-Cards-updateGlipAdaptiveCardNew) +in API Explorer. ## deleteGlipAdaptiveCardNew @@ -6130,7 +6859,8 @@ await rc.revoke(); - `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Adaptive-Cards-deleteGlipAdaptiveCardNew) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Adaptive-Cards-deleteGlipAdaptiveCardNew) +in API Explorer. ## favoriteGlipChatNew @@ -6153,7 +6883,8 @@ await rc.revoke(); - `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Chats-favoriteGlipChatNew) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Chats-favoriteGlipChatNew) +in API Explorer. ## listChatNotesNew @@ -6170,14 +6901,18 @@ List Notes ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.teamMessaging().v1().chats(chatId).notes().get(listChatNotesNewParameters); +var result = await rc.teamMessaging().v1().chats(chatId).notes().get( + listChatNotesNewParameters, +); await rc.revoke(); ``` -- `listChatNotesNewParameters` is of type [ListChatNotesNewParameters](./definitions/ListChatNotesNewParameters.ts) +- `listChatNotesNewParameters` is of type + [ListChatNotesNewParameters](./definitions/ListChatNotesNewParameters.ts) - `result` is of type [TMNoteList](./definitions/TMNoteList.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Notes-listChatNotesNew) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Notes-listChatNotesNew) +in API Explorer. ## createChatNoteNew @@ -6194,14 +6929,18 @@ Create Note ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.teamMessaging().v1().chats(chatId).notes().post(tMCreateNoteRequest); +var result = await rc.teamMessaging().v1().chats(chatId).notes().post( + tMCreateNoteRequest, +); await rc.revoke(); ``` -- `tMCreateNoteRequest` is of type [TMCreateNoteRequest](./definitions/TMCreateNoteRequest.ts) +- `tMCreateNoteRequest` is of type + [TMCreateNoteRequest](./definitions/TMCreateNoteRequest.ts) - `result` is of type [TMNoteInfo](./definitions/TMNoteInfo.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Notes-createChatNoteNew) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Notes-createChatNoteNew) +in API Explorer. ## listChatTasksNew @@ -6218,14 +6957,18 @@ List Chat Tasks ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.teamMessaging().v1().chats(chatId).tasks().get(listChatTasksNewParameters); +var result = await rc.teamMessaging().v1().chats(chatId).tasks().get( + listChatTasksNewParameters, +); await rc.revoke(); ``` -- `listChatTasksNewParameters` is of type [ListChatTasksNewParameters](./definitions/ListChatTasksNewParameters.ts) +- `listChatTasksNewParameters` is of type + [ListChatTasksNewParameters](./definitions/ListChatTasksNewParameters.ts) - `result` is of type [TMTaskList](./definitions/TMTaskList.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Tasks-listChatTasksNew) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Tasks-listChatTasksNew) +in API Explorer. ## createTaskNew @@ -6242,14 +6985,18 @@ Create Task ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.teamMessaging().v1().chats(chatId).tasks().post(tMCreateTaskRequest); +var result = await rc.teamMessaging().v1().chats(chatId).tasks().post( + tMCreateTaskRequest, +); await rc.revoke(); ``` -- `tMCreateTaskRequest` is of type [TMCreateTaskRequest](./definitions/TMCreateTaskRequest.ts) +- `tMCreateTaskRequest` is of type + [TMCreateTaskRequest](./definitions/TMCreateTaskRequest.ts) - `result` is of type [TMTaskInfo](./definitions/TMTaskInfo.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Tasks-createTaskNew) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Tasks-createTaskNew) +in API Explorer. ## listGlipConversationsNew @@ -6266,14 +7013,18 @@ List Conversations ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.teamMessaging().v1().conversations().list(listGlipConversationsNewParameters); +var result = await rc.teamMessaging().v1().conversations().list( + listGlipConversationsNewParameters, +); await rc.revoke(); ``` -- `listGlipConversationsNewParameters` is of type [ListGlipConversationsNewParameters](./definitions/ListGlipConversationsNewParameters.ts) +- `listGlipConversationsNewParameters` is of type + [ListGlipConversationsNewParameters](./definitions/ListGlipConversationsNewParameters.ts) - `result` is of type [TMConversationList](./definitions/TMConversationList.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Conversations-listGlipConversationsNew) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Conversations-listGlipConversationsNew) +in API Explorer. ## createGlipConversationNew @@ -6290,14 +7041,18 @@ Create/Open Conversation ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.teamMessaging().v1().conversations().post(createConversationRequest); +var result = await rc.teamMessaging().v1().conversations().post( + createConversationRequest, +); await rc.revoke(); ``` -- `createConversationRequest` is of type [CreateConversationRequest](./definitions/CreateConversationRequest.ts) +- `createConversationRequest` is of type + [CreateConversationRequest](./definitions/CreateConversationRequest.ts) - `result` is of type [TMConversationInfo](./definitions/TMConversationInfo.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Conversations-createGlipConversationNew) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Conversations-createGlipConversationNew) +in API Explorer. ## readGlipConversationNew @@ -6320,7 +7075,8 @@ await rc.revoke(); - `result` is of type [TMConversationInfo](./definitions/TMConversationInfo.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Conversations-readGlipConversationNew) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Conversations-readGlipConversationNew) +in API Explorer. ## listDataExportTasksNew @@ -6337,14 +7093,18 @@ List Data Export Tasks ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.teamMessaging().v1().dataExport().list(listDataExportTasksNewParameters); +var result = await rc.teamMessaging().v1().dataExport().list( + listDataExportTasksNewParameters, +); await rc.revoke(); ``` -- `listDataExportTasksNewParameters` is of type [ListDataExportTasksNewParameters](./definitions/ListDataExportTasksNewParameters.ts) +- `listDataExportTasksNewParameters` is of type + [ListDataExportTasksNewParameters](./definitions/ListDataExportTasksNewParameters.ts) - `result` is of type [DataExportTaskList](./definitions/DataExportTaskList.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Compliance-Exports-listDataExportTasksNew) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Compliance-Exports-listDataExportTasksNew) +in API Explorer. ## createDataExportTaskNew @@ -6361,14 +7121,18 @@ Create Data Export Task ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.teamMessaging().v1().dataExport().post(createDataExportTaskRequest); +var result = await rc.teamMessaging().v1().dataExport().post( + createDataExportTaskRequest, +); await rc.revoke(); ``` -- `createDataExportTaskRequest` is of type [CreateDataExportTaskRequest](./definitions/CreateDataExportTaskRequest.ts) +- `createDataExportTaskRequest` is of type + [CreateDataExportTaskRequest](./definitions/CreateDataExportTaskRequest.ts) - `result` is of type [DataExportTask](./definitions/DataExportTask.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Compliance-Exports-createDataExportTaskNew) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Compliance-Exports-createDataExportTaskNew) +in API Explorer. ## readDataExportTaskNew @@ -6391,7 +7155,8 @@ await rc.revoke(); - `result` is of type [DataExportTask](./definitions/DataExportTask.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Compliance-Exports-readDataExportTaskNew) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Compliance-Exports-readDataExportTaskNew) +in API Explorer. ## listGroupEventsNew @@ -6414,7 +7179,8 @@ await rc.revoke(); - `result` is of type [TMEventInfo](./definitions/TMEventInfo.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Calendar-Events-listGroupEventsNew) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Calendar-Events-listGroupEventsNew) +in API Explorer. ## createEventByGroupIdNew @@ -6431,14 +7197,18 @@ Create Event by Group ID ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.teamMessaging().v1().groups(groupId).events().post(tMCreateEventRequest); +var result = await rc.teamMessaging().v1().groups(groupId).events().post( + tMCreateEventRequest, +); await rc.revoke(); ``` -- `tMCreateEventRequest` is of type [TMCreateEventRequest](./definitions/TMCreateEventRequest.ts) +- `tMCreateEventRequest` is of type + [TMCreateEventRequest](./definitions/TMCreateEventRequest.ts) - `result` is of type [TMEventInfo](./definitions/TMEventInfo.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Calendar-Events-createEventByGroupIdNew) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Calendar-Events-createEventByGroupIdNew) +in API Explorer. ## publishNoteNew @@ -6461,7 +7231,8 @@ await rc.revoke(); - `result` is of type [TMNoteInfo](./definitions/TMNoteInfo.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Notes-publishNoteNew) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Notes-publishNoteNew) +in API Explorer. ## unlockNoteNew @@ -6484,7 +7255,8 @@ await rc.revoke(); - `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Notes-unlockNoteNew) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Notes-unlockNoteNew) +in API Explorer. ## listRecentChatsNew @@ -6501,14 +7273,19 @@ List Recent Chats ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.teamMessaging().v1().recent().chats().get(listRecentChatsNewParameters); +var result = await rc.teamMessaging().v1().recent().chats().get( + listRecentChatsNewParameters, +); await rc.revoke(); ``` -- `listRecentChatsNewParameters` is of type [ListRecentChatsNewParameters](./definitions/ListRecentChatsNewParameters.ts) -- `result` is of type [TMChatListWithoutNavigation](./definitions/TMChatListWithoutNavigation.ts) +- `listRecentChatsNewParameters` is of type + [ListRecentChatsNewParameters](./definitions/ListRecentChatsNewParameters.ts) +- `result` is of type + [TMChatListWithoutNavigation](./definitions/TMChatListWithoutNavigation.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Chats-listRecentChatsNew) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Chats-listRecentChatsNew) +in API Explorer. ## leaveGlipTeamNew @@ -6531,7 +7308,8 @@ await rc.revoke(); - `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Teams-leaveGlipTeamNew) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Teams-leaveGlipTeamNew) +in API Explorer. ## rcwHistoryListRecordings @@ -6548,14 +7326,19 @@ List Webinar Recordings ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.webinar().history().v1().recordings().list(rcwHistoryListRecordingsParameters); +var result = await rc.webinar().history().v1().recordings().list( + rcwHistoryListRecordingsParameters, +); await rc.revoke(); ``` -- `rcwHistoryListRecordingsParameters` is of type [RcwHistoryListRecordingsParameters](./definitions/RcwHistoryListRecordingsParameters.ts) -- `result` is of type [RecordingListResource](./definitions/RecordingListResource.ts) +- `rcwHistoryListRecordingsParameters` is of type + [RcwHistoryListRecordingsParameters](./definitions/RcwHistoryListRecordingsParameters.ts) +- `result` is of type + [RecordingListResource](./definitions/RecordingListResource.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Historical-Recordings-rcwHistoryListRecordings) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Historical-Recordings-rcwHistoryListRecordings) +in API Explorer. ## rcwHistoryGetRecording @@ -6576,9 +7359,11 @@ var result = await rc.webinar().history().v1().recordings(recordingId).get(); await rc.revoke(); ``` -- `result` is of type [RecordingItemExtendedModel](./definitions/RecordingItemExtendedModel.ts) +- `result` is of type + [RecordingItemExtendedModel](./definitions/RecordingItemExtendedModel.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Historical-Recordings-rcwHistoryGetRecording) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Historical-Recordings-rcwHistoryGetRecording) +in API Explorer. ## removeGlipTeamMembersNew @@ -6595,14 +7380,18 @@ Remove Team Members ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.teamMessaging().v1().teams(chatId).remove().post(tMRemoveTeamMembersRequest); +var result = await rc.teamMessaging().v1().teams(chatId).remove().post( + tMRemoveTeamMembersRequest, +); await rc.revoke(); ``` -- `tMRemoveTeamMembersRequest` is of type [TMRemoveTeamMembersRequest](./definitions/TMRemoveTeamMembersRequest.ts) +- `tMRemoveTeamMembersRequest` is of type + [TMRemoveTeamMembersRequest](./definitions/TMRemoveTeamMembersRequest.ts) - `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Teams-removeGlipTeamMembersNew) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Teams-removeGlipTeamMembersNew) +in API Explorer. ## archiveGlipTeamNew @@ -6625,7 +7414,8 @@ await rc.revoke(); - `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Teams-archiveGlipTeamNew) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Teams-archiveGlipTeamNew) +in API Explorer. ## completeTaskNew @@ -6642,14 +7432,18 @@ Complete Task ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.teamMessaging().v1().tasks(taskId).complete().post(tMCompleteTaskRequest); +var result = await rc.teamMessaging().v1().tasks(taskId).complete().post( + tMCompleteTaskRequest, +); await rc.revoke(); ``` -- `tMCompleteTaskRequest` is of type [TMCompleteTaskRequest](./definitions/TMCompleteTaskRequest.ts) +- `tMCompleteTaskRequest` is of type + [TMCompleteTaskRequest](./definitions/TMCompleteTaskRequest.ts) - `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Tasks-completeTaskNew) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Tasks-completeTaskNew) +in API Explorer. ## rcwRegGetSession @@ -6672,7 +7466,8 @@ await rc.revoke(); - `result` is of type [RegSessionModel](./definitions/RegSessionModel.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Registration-Management-rcwRegGetSession) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Registration-Management-rcwRegGetSession) +in API Explorer. ## rcwRegUpdateSession @@ -6689,14 +7484,18 @@ Update Registration Session ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.webinar().registration().v1().sessions(sessionId).patch(regSessionModel); +var result = await rc.webinar().registration().v1().sessions(sessionId).patch( + regSessionModel, +); await rc.revoke(); ``` -- `regSessionModel` is of type [RegSessionModel](./definitions/RegSessionModel.ts) +- `regSessionModel` is of type + [RegSessionModel](./definitions/RegSessionModel.ts) - `result` is of type [RegSessionModel](./definitions/RegSessionModel.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Registration-Management-rcwRegUpdateSession) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Registration-Management-rcwRegUpdateSession) +in API Explorer. ## activateGlipWebhookNew @@ -6713,13 +7512,15 @@ Activate Webhook ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.teamMessaging().v1().webhooks(webhookId).activate().post(); +var result = await rc.teamMessaging().v1().webhooks(webhookId).activate() + .post(); await rc.revoke(); ``` - `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Incoming-Webhooks-activateGlipWebhookNew) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Incoming-Webhooks-activateGlipWebhookNew) +in API Explorer. ## suspendGlipWebhookNew @@ -6742,7 +7543,8 @@ await rc.revoke(); - `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Incoming-Webhooks-suspendGlipWebhookNew) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Incoming-Webhooks-suspendGlipWebhookNew) +in API Explorer. ## rcwHistoryAdminListRecordings @@ -6759,14 +7561,19 @@ List Webinar Recordings (Admin) ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.webinar().history().v1().company().recordings().list(rcwHistoryAdminListRecordingsParameters); +var result = await rc.webinar().history().v1().company().recordings().list( + rcwHistoryAdminListRecordingsParameters, +); await rc.revoke(); ``` -- `rcwHistoryAdminListRecordingsParameters` is of type [RcwHistoryAdminListRecordingsParameters](./definitions/RcwHistoryAdminListRecordingsParameters.ts) -- `result` is of type [RecordingAdminListResource](./definitions/RecordingAdminListResource.ts) +- `rcwHistoryAdminListRecordingsParameters` is of type + [RcwHistoryAdminListRecordingsParameters](./definitions/RcwHistoryAdminListRecordingsParameters.ts) +- `result` is of type + [RecordingAdminListResource](./definitions/RecordingAdminListResource.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Historical-Recordings-rcwHistoryAdminListRecordings) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Historical-Recordings-rcwHistoryAdminListRecordings) +in API Explorer. ## rcwHistoryAdminGetRecording @@ -6783,13 +7590,16 @@ Get Webinar Recording (Admin) ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.webinar().history().v1().company().recordings(recordingId).get(); +var result = await rc.webinar().history().v1().company().recordings(recordingId) + .get(); await rc.revoke(); ``` -- `result` is of type [RecordingAdminExtendedItemModel](./definitions/RecordingAdminExtendedItemModel.ts) +- `result` is of type + [RecordingAdminExtendedItemModel](./definitions/RecordingAdminExtendedItemModel.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Historical-Recordings-rcwHistoryAdminGetRecording) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Historical-Recordings-rcwHistoryAdminGetRecording) +in API Explorer. ## rcwHistoryListAllCompanySessions @@ -6806,14 +7616,19 @@ List Historical Webinar Sessions across Multiple Webinars / Hosts ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.webinar().history().v1().company().sessions().get(rcwHistoryListAllCompanySessionsParameters); +var result = await rc.webinar().history().v1().company().sessions().get( + rcwHistoryListAllCompanySessionsParameters, +); await rc.revoke(); ``` -- `rcwHistoryListAllCompanySessionsParameters` is of type [RcwHistoryListAllCompanySessionsParameters](./definitions/RcwHistoryListAllCompanySessionsParameters.ts) -- `result` is of type [SessionGlobalListResource](./definitions/SessionGlobalListResource.ts) +- `rcwHistoryListAllCompanySessionsParameters` is of type + [RcwHistoryListAllCompanySessionsParameters](./definitions/RcwHistoryListAllCompanySessionsParameters.ts) +- `result` is of type + [SessionGlobalListResource](./definitions/SessionGlobalListResource.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Historical-Webinars-rcwHistoryListAllCompanySessions) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Historical-Webinars-rcwHistoryListAllCompanySessions) +in API Explorer. ## rcwHistoryGetSession @@ -6830,13 +7645,16 @@ Get Historical Webinar Session ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.webinar().history().v1().webinars(webinarId).sessions(sessionId).get(); +var result = await rc.webinar().history().v1().webinars(webinarId).sessions( + sessionId, +).get(); await rc.revoke(); ``` - `result` is of type [SessionResource](./definitions/SessionResource.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Historical-Webinars-rcwHistoryGetSession) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Historical-Webinars-rcwHistoryGetSession) +in API Explorer. ## caiAnalyzeInteraction @@ -6863,11 +7681,15 @@ var result = await rc await rc.revoke(); ``` -- `interactionInput` is of type [InteractionInput](./definitions/InteractionInput.ts) -- `caiAnalyzeInteractionParameters` is of type [CaiAnalyzeInteractionParameters](./definitions/CaiAnalyzeInteractionParameters.ts) -- `result` is of type [CaiAsyncApiResponse](./definitions/CaiAsyncApiResponse.ts) +- `interactionInput` is of type + [InteractionInput](./definitions/InteractionInput.ts) +- `caiAnalyzeInteractionParameters` is of type + [CaiAnalyzeInteractionParameters](./definitions/CaiAnalyzeInteractionParameters.ts) +- `result` is of type + [CaiAsyncApiResponse](./definitions/CaiAsyncApiResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Insights-caiAnalyzeInteraction) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Insights-caiAnalyzeInteraction) +in API Explorer. ## getExtensionRecordings @@ -6896,10 +7718,12 @@ await rc.revoke(); - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `getExtensionRecordingsParameters` is of type [GetExtensionRecordingsParameters](./definitions/GetExtensionRecordingsParameters.ts) +- `getExtensionRecordingsParameters` is of type + [GetExtensionRecordingsParameters](./definitions/GetExtensionRecordingsParameters.ts) - `result` is of type [CloudRecordings](./definitions/CloudRecordings.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Meeting-Recordings-getExtensionRecordings) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Meeting-Recordings-getExtensionRecordings) +in API Explorer. ## rcvListDelegators @@ -6916,13 +7740,16 @@ Get Delegators ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.rcvideo().v1().accounts(accountId).extensions(extensionId).delegators().get(); +var result = await rc.rcvideo().v1().accounts(accountId).extensions(extensionId) + .delegators().get(); await rc.revoke(); ``` -- `result` is of type [DelegatorsListResult](./definitions/DelegatorsListResult.ts) +- `result` is of type + [DelegatorsListResult](./definitions/DelegatorsListResult.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Delegation-Management-rcvListDelegators) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Delegation-Management-rcvListDelegators) +in API Explorer. ## replacePhoneNumberV2 @@ -6949,10 +7776,13 @@ var result = await rc await rc.revoke(); ``` -- `replacePhoneNumberRequest` is of type [ReplacePhoneNumberRequest](./definitions/ReplacePhoneNumberRequest.ts) -- `result` is of type [AccountPhoneNumberInfo](./definitions/AccountPhoneNumberInfo.ts) +- `replacePhoneNumberRequest` is of type + [ReplacePhoneNumberRequest](./definitions/ReplacePhoneNumberRequest.ts) +- `result` is of type + [AccountPhoneNumberInfo](./definitions/AccountPhoneNumberInfo.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Phone-Numbers-replacePhoneNumberV2) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Phone-Numbers-replacePhoneNumberV2) +in API Explorer. ## sendActivationEmailV2 @@ -6969,13 +7799,15 @@ Send/Resend Activation Email ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi().v2().accounts(accountId).sendActivationEmail().post(); +var result = await rc.restapi().v2().accounts(accountId).sendActivationEmail() + .post(); await rc.revoke(); ``` - `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Company-sendActivationEmailV2) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Company-sendActivationEmailV2) +in API Explorer. ## sendWelcomeEmailV2 @@ -6992,14 +7824,17 @@ Send/Resend Welcome Email ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi().v2().accounts(accountId).sendWelcomeEmail().post(sendWelcomeEmailV2Request); +var result = await rc.restapi().v2().accounts(accountId).sendWelcomeEmail() + .post(sendWelcomeEmailV2Request); await rc.revoke(); ``` -- `sendWelcomeEmailV2Request` is of type [SendWelcomeEmailV2Request](./definitions/SendWelcomeEmailV2Request.ts) +- `sendWelcomeEmailV2Request` is of type + [SendWelcomeEmailV2Request](./definitions/SendWelcomeEmailV2Request.ts) - `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Company-sendWelcomeEmailV2) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Company-sendWelcomeEmailV2) +in API Explorer. ## addressBookBulkUpload @@ -7016,16 +7851,20 @@ Upload Multiple User Contacts ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).addressBookBulkUpload().post(addressBookBulkUploadRequest); +var result = await rc.restapi(apiVersion).account(accountId) + .addressBookBulkUpload().post(addressBookBulkUploadRequest); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `addressBookBulkUploadRequest` is of type [AddressBookBulkUploadRequest](./definitions/AddressBookBulkUploadRequest.ts) -- `result` is of type [AddressBookBulkUploadResponse](./definitions/AddressBookBulkUploadResponse.ts) +- `addressBookBulkUploadRequest` is of type + [AddressBookBulkUploadRequest](./definitions/AddressBookBulkUploadRequest.ts) +- `result` is of type + [AddressBookBulkUploadResponse](./definitions/AddressBookBulkUploadResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#External-Contacts-addressBookBulkUpload) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#External-Contacts-addressBookBulkUpload) +in API Explorer. ## listCallMonitoringGroups @@ -7052,10 +7891,13 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `listCallMonitoringGroupsParameters` is of type [ListCallMonitoringGroupsParameters](./definitions/ListCallMonitoringGroupsParameters.ts) -- `result` is of type [CallMonitoringGroups](./definitions/CallMonitoringGroups.ts) +- `listCallMonitoringGroupsParameters` is of type + [ListCallMonitoringGroupsParameters](./definitions/ListCallMonitoringGroupsParameters.ts) +- `result` is of type + [CallMonitoringGroups](./definitions/CallMonitoringGroups.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Call-Monitoring-Groups-listCallMonitoringGroups) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Monitoring-Groups-listCallMonitoringGroups) +in API Explorer. ## createCallMonitoringGroup @@ -7082,10 +7924,13 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `createCallMonitoringGroupRequest` is of type [CreateCallMonitoringGroupRequest](./definitions/CreateCallMonitoringGroupRequest.ts) -- `result` is of type [CallMonitoringGroup](./definitions/CallMonitoringGroup.ts) +- `createCallMonitoringGroupRequest` is of type + [CreateCallMonitoringGroupRequest](./definitions/CreateCallMonitoringGroupRequest.ts) +- `result` is of type + [CallMonitoringGroup](./definitions/CallMonitoringGroup.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Call-Monitoring-Groups-createCallMonitoringGroup) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Monitoring-Groups-createCallMonitoringGroup) +in API Explorer. ## updateCallMonitoringGroup @@ -7112,10 +7957,13 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `createCallMonitoringGroupRequest` is of type [CreateCallMonitoringGroupRequest](./definitions/CreateCallMonitoringGroupRequest.ts) -- `result` is of type [CallMonitoringGroup](./definitions/CallMonitoringGroup.ts) +- `createCallMonitoringGroupRequest` is of type + [CreateCallMonitoringGroupRequest](./definitions/CreateCallMonitoringGroupRequest.ts) +- `result` is of type + [CallMonitoringGroup](./definitions/CallMonitoringGroup.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Call-Monitoring-Groups-updateCallMonitoringGroup) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Monitoring-Groups-updateCallMonitoringGroup) +in API Explorer. ## deleteCallMonitoringGroup @@ -7132,7 +7980,8 @@ Delete Call Monitoring Group ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).callMonitoringGroups(groupId).delete(); +var result = await rc.restapi(apiVersion).account(accountId) + .callMonitoringGroups(groupId).delete(); await rc.revoke(); ``` @@ -7140,7 +7989,8 @@ await rc.revoke(); - Parameter `accountId` is optional with default value `~` - `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Call-Monitoring-Groups-deleteCallMonitoringGroup) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Monitoring-Groups-deleteCallMonitoringGroup) +in API Explorer. ## assignMultipleCallQueueMembers @@ -7168,10 +8018,12 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `callQueueBulkAssignResource` is of type [CallQueueBulkAssignResource](./definitions/CallQueueBulkAssignResource.ts) +- `callQueueBulkAssignResource` is of type + [CallQueueBulkAssignResource](./definitions/CallQueueBulkAssignResource.ts) - `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Call-Queues-assignMultipleCallQueueMembers) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Queues-assignMultipleCallQueueMembers) +in API Explorer. ## listCallRecordingExtensions @@ -7188,15 +8040,18 @@ Get Call Recording Extension List ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).callRecording().extensions().get(); +var result = await rc.restapi(apiVersion).account(accountId).callRecording() + .extensions().get(); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `result` is of type [CallRecordingExtensions](./definitions/CallRecordingExtensions.ts) +- `result` is of type + [CallRecordingExtensions](./definitions/CallRecordingExtensions.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Call-Recording-Settings-listCallRecordingExtensions) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Recording-Settings-listCallRecordingExtensions) +in API Explorer. ## searchDirectoryEntries @@ -7225,11 +8080,14 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `searchDirectoryEntriesRequest` is of type [SearchDirectoryEntriesRequest](./definitions/SearchDirectoryEntriesRequest.ts) -- `searchDirectoryEntriesParameters` is of type [SearchDirectoryEntriesParameters](./definitions/SearchDirectoryEntriesParameters.ts) +- `searchDirectoryEntriesRequest` is of type + [SearchDirectoryEntriesRequest](./definitions/SearchDirectoryEntriesRequest.ts) +- `searchDirectoryEntriesParameters` is of type + [SearchDirectoryEntriesParameters](./definitions/SearchDirectoryEntriesParameters.ts) - `result` is of type [DirectoryResource](./definitions/DirectoryResource.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Internal-Contacts-searchDirectoryEntries) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Internal-Contacts-searchDirectoryEntries) +in API Explorer. ## listExtensionActiveCalls @@ -7258,10 +8116,12 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `listExtensionActiveCallsParameters` is of type [ListExtensionActiveCallsParameters](./definitions/ListExtensionActiveCallsParameters.ts) +- `listExtensionActiveCallsParameters` is of type + [ListExtensionActiveCallsParameters](./definitions/ListExtensionActiveCallsParameters.ts) - `result` is of type [CallLogResponse](./definitions/CallLogResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Call-Log-listExtensionActiveCalls) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Log-listExtensionActiveCalls) +in API Explorer. ## listAnsweringRules @@ -7290,10 +8150,13 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `listAnsweringRulesParameters` is of type [ListAnsweringRulesParameters](./definitions/ListAnsweringRulesParameters.ts) -- `result` is of type [UserAnsweringRuleList](./definitions/UserAnsweringRuleList.ts) +- `listAnsweringRulesParameters` is of type + [ListAnsweringRulesParameters](./definitions/ListAnsweringRulesParameters.ts) +- `result` is of type + [UserAnsweringRuleList](./definitions/UserAnsweringRuleList.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Call-Handling-Rules-listAnsweringRules) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Handling-Rules-listAnsweringRules) +in API Explorer. ## createAnsweringRule @@ -7322,10 +8185,13 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `createAnsweringRuleRequest` is of type [CreateAnsweringRuleRequest](./definitions/CreateAnsweringRuleRequest.ts) -- `result` is of type [CustomAnsweringRuleInfo](./definitions/CustomAnsweringRuleInfo.ts) +- `createAnsweringRuleRequest` is of type + [CreateAnsweringRuleRequest](./definitions/CreateAnsweringRuleRequest.ts) +- `result` is of type + [CustomAnsweringRuleInfo](./definitions/CustomAnsweringRuleInfo.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Call-Handling-Rules-createAnsweringRule) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Handling-Rules-createAnsweringRule) +in API Explorer. ## readAnsweringRule @@ -7354,10 +8220,13 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `readAnsweringRuleParameters` is of type [ReadAnsweringRuleParameters](./definitions/ReadAnsweringRuleParameters.ts) -- `result` is of type [CallHandlingRuleInfo](./definitions/CallHandlingRuleInfo.ts) +- `readAnsweringRuleParameters` is of type + [ReadAnsweringRuleParameters](./definitions/ReadAnsweringRuleParameters.ts) +- `result` is of type + [CallHandlingRuleInfo](./definitions/CallHandlingRuleInfo.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Call-Handling-Rules-readAnsweringRule) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Handling-Rules-readAnsweringRule) +in API Explorer. ## updateAnsweringRule @@ -7386,10 +8255,13 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `updateAnsweringRuleRequest` is of type [UpdateAnsweringRuleRequest](./definitions/UpdateAnsweringRuleRequest.ts) -- `result` is of type [CallHandlingRuleInfo](./definitions/CallHandlingRuleInfo.ts) +- `updateAnsweringRuleRequest` is of type + [UpdateAnsweringRuleRequest](./definitions/UpdateAnsweringRuleRequest.ts) +- `result` is of type + [CallHandlingRuleInfo](./definitions/CallHandlingRuleInfo.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Call-Handling-Rules-updateAnsweringRule) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Handling-Rules-updateAnsweringRule) +in API Explorer. ## deleteAnsweringRule @@ -7406,7 +8278,9 @@ Delete Call Handling Rule ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).extension(extensionId).answeringRule(ruleId).delete(); +var result = await rc.restapi(apiVersion).account(accountId).extension( + extensionId, +).answeringRule(ruleId).delete(); await rc.revoke(); ``` @@ -7415,7 +8289,8 @@ await rc.revoke(); - Parameter `extensionId` is optional with default value `~` - `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Call-Handling-Rules-deleteAnsweringRule) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Handling-Rules-deleteAnsweringRule) +in API Explorer. ## listUserAssignedRoles @@ -7444,10 +8319,13 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `listUserAssignedRolesParameters` is of type [ListUserAssignedRolesParameters](./definitions/ListUserAssignedRolesParameters.ts) -- `result` is of type [AssignedRolesResource](./definitions/AssignedRolesResource.ts) +- `listUserAssignedRolesParameters` is of type + [ListUserAssignedRolesParameters](./definitions/ListUserAssignedRolesParameters.ts) +- `result` is of type + [AssignedRolesResource](./definitions/AssignedRolesResource.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Role-Management-listUserAssignedRoles) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Role-Management-listUserAssignedRoles) +in API Explorer. ## updateUserAssignedRoles @@ -7476,10 +8354,13 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `assignedRolesResource` is of type [AssignedRolesResource](./definitions/AssignedRolesResource.ts) -- `result` is of type [AssignedRolesResource](./definitions/AssignedRolesResource.ts) +- `assignedRolesResource` is of type + [AssignedRolesResource](./definitions/AssignedRolesResource.ts) +- `result` is of type + [AssignedRolesResource](./definitions/AssignedRolesResource.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Role-Management-updateUserAssignedRoles) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Role-Management-updateUserAssignedRoles) +in API Explorer. ## readAuthorizationProfile @@ -7508,10 +8389,13 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `readAuthorizationProfileParameters` is of type [ReadAuthorizationProfileParameters](./definitions/ReadAuthorizationProfileParameters.ts) -- `result` is of type [AuthProfileResource](./definitions/AuthProfileResource.ts) +- `readAuthorizationProfileParameters` is of type + [ReadAuthorizationProfileParameters](./definitions/ReadAuthorizationProfileParameters.ts) +- `result` is of type + [AuthProfileResource](./definitions/AuthProfileResource.ts) -[Try it out](https://developer.ringcentral.com/api-reference#User-Permissions-readAuthorizationProfile) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#User-Permissions-readAuthorizationProfile) +in API Explorer. ## readUserBusinessHours @@ -7528,16 +8412,20 @@ Get User Business Hours ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).extension(extensionId).businessHours().get(); +var result = await rc.restapi(apiVersion).account(accountId).extension( + extensionId, +).businessHours().get(); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `result` is of type [GetUserBusinessHoursResponse](./definitions/GetUserBusinessHoursResponse.ts) +- `result` is of type + [GetUserBusinessHoursResponse](./definitions/GetUserBusinessHoursResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Business-Hours-readUserBusinessHours) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Business-Hours-readUserBusinessHours) +in API Explorer. ## updateUserBusinessHours @@ -7566,10 +8454,13 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `userBusinessHoursUpdateRequest` is of type [UserBusinessHoursUpdateRequest](./definitions/UserBusinessHoursUpdateRequest.ts) -- `result` is of type [UserBusinessHoursUpdateResponse](./definitions/UserBusinessHoursUpdateResponse.ts) +- `userBusinessHoursUpdateRequest` is of type + [UserBusinessHoursUpdateRequest](./definitions/UserBusinessHoursUpdateRequest.ts) +- `result` is of type + [UserBusinessHoursUpdateResponse](./definitions/UserBusinessHoursUpdateResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Business-Hours-updateUserBusinessHours) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Business-Hours-updateUserBusinessHours) +in API Explorer. ## syncUserCallLog @@ -7598,10 +8489,13 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `syncUserCallLogParameters` is of type [SyncUserCallLogParameters](./definitions/SyncUserCallLogParameters.ts) -- `result` is of type [CallLogSyncResponse](./definitions/CallLogSyncResponse.ts) +- `syncUserCallLogParameters` is of type + [SyncUserCallLogParameters](./definitions/SyncUserCallLogParameters.ts) +- `result` is of type + [CallLogSyncResponse](./definitions/CallLogSyncResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Call-Log-syncUserCallLog) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Log-syncUserCallLog) +in API Explorer. ## readCallerBlockingSettings @@ -7618,16 +8512,20 @@ Get Caller Blocking Settings ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).extension(extensionId).callerBlocking().get(); +var result = await rc.restapi(apiVersion).account(accountId).extension( + extensionId, +).callerBlocking().get(); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `result` is of type [CallerBlockingSettings](./definitions/CallerBlockingSettings.ts) +- `result` is of type + [CallerBlockingSettings](./definitions/CallerBlockingSettings.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Call-Blocking-readCallerBlockingSettings) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Blocking-readCallerBlockingSettings) +in API Explorer. ## updateCallerBlockingSettings @@ -7656,10 +8554,13 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `callerBlockingSettingsUpdate` is of type [CallerBlockingSettingsUpdate](./definitions/CallerBlockingSettingsUpdate.ts) -- `result` is of type [CallerBlockingSettings](./definitions/CallerBlockingSettings.ts) +- `callerBlockingSettingsUpdate` is of type + [CallerBlockingSettingsUpdate](./definitions/CallerBlockingSettingsUpdate.ts) +- `result` is of type + [CallerBlockingSettings](./definitions/CallerBlockingSettings.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Call-Blocking-updateCallerBlockingSettings) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Blocking-updateCallerBlockingSettings) +in API Explorer. ## createInternalTextMessage @@ -7688,10 +8589,13 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `createInternalTextMessageRequest` is of type [CreateInternalTextMessageRequest](./definitions/CreateInternalTextMessageRequest.ts) -- `result` is of type [GetInternalTextMessageInfoResponse](./definitions/GetInternalTextMessageInfoResponse.ts) +- `createInternalTextMessageRequest` is of type + [CreateInternalTextMessageRequest](./definitions/CreateInternalTextMessageRequest.ts) +- `result` is of type + [GetInternalTextMessageInfoResponse](./definitions/GetInternalTextMessageInfoResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Pager-Messages-createInternalTextMessage) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Pager-Messages-createInternalTextMessage) +in API Explorer. ## readConferencingSettings @@ -7720,10 +8624,13 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `readConferencingSettingsParameters` is of type [ReadConferencingSettingsParameters](./definitions/ReadConferencingSettingsParameters.ts) -- `result` is of type [GetConferencingInfoResponse](./definitions/GetConferencingInfoResponse.ts) +- `readConferencingSettingsParameters` is of type + [ReadConferencingSettingsParameters](./definitions/ReadConferencingSettingsParameters.ts) +- `result` is of type + [GetConferencingInfoResponse](./definitions/GetConferencingInfoResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#User-Settings-readConferencingSettings) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#User-Settings-readConferencingSettings) +in API Explorer. ## updateConferencingSettings @@ -7752,10 +8659,13 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `updateConferencingInfoRequest` is of type [UpdateConferencingInfoRequest](./definitions/UpdateConferencingInfoRequest.ts) -- `result` is of type [GetConferencingInfoResponse](./definitions/GetConferencingInfoResponse.ts) +- `updateConferencingInfoRequest` is of type + [UpdateConferencingInfoRequest](./definitions/UpdateConferencingInfoRequest.ts) +- `result` is of type + [GetConferencingInfoResponse](./definitions/GetConferencingInfoResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#User-Settings-updateConferencingSettings) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#User-Settings-updateConferencingSettings) +in API Explorer. ## readGreetingContent @@ -7785,14 +8695,17 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `readGreetingContentParameters` is of type [ReadGreetingContentParameters](./definitions/ReadGreetingContentParameters.ts) +- `readGreetingContentParameters` is of type + [ReadGreetingContentParameters](./definitions/ReadGreetingContentParameters.ts) - `result` is of type `byte[]` ### ❗❗❗ Code sample above may not work -Please refer to [Binary content downloading](/README.md#Binary-content-downloading). +Please refer to +[Binary content downloading](/README.md#Binary-content-downloading). -[Try it out](https://developer.ringcentral.com/api-reference#Greetings-readGreetingContent) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Greetings-readGreetingContent) +in API Explorer. ## listMessages @@ -7821,10 +8734,12 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `listMessagesParameters` is of type [ListMessagesParameters](./definitions/ListMessagesParameters.ts) +- `listMessagesParameters` is of type + [ListMessagesParameters](./definitions/ListMessagesParameters.ts) - `result` is of type [GetMessageList](./definitions/GetMessageList.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Message-Store-listMessages) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Message-Store-listMessages) +in API Explorer. ## deleteMessageByFilter @@ -7853,10 +8768,12 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `deleteMessageByFilterParameters` is of type [DeleteMessageByFilterParameters](./definitions/DeleteMessageByFilterParameters.ts) +- `deleteMessageByFilterParameters` is of type + [DeleteMessageByFilterParameters](./definitions/DeleteMessageByFilterParameters.ts) - `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Message-Store-deleteMessageByFilter) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Message-Store-deleteMessageByFilter) +in API Explorer. ## readMessage @@ -7873,16 +8790,20 @@ Get Message(s) ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).extension(extensionId).messageStore(messageId).get(); +var result = await rc.restapi(apiVersion).account(accountId).extension( + extensionId, +).messageStore(messageId).get(); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `result` is of type [GetMessageInfoResponse](./definitions/GetMessageInfoResponse.ts) +- `result` is of type + [GetMessageInfoResponse](./definitions/GetMessageInfoResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Message-Store-readMessage) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Message-Store-readMessage) +in API Explorer. ## updateMessage @@ -7911,10 +8832,13 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `updateMessageRequest` is of type [UpdateMessageRequest](./definitions/UpdateMessageRequest.ts) -- `result` is of type [GetMessageInfoResponse](./definitions/GetMessageInfoResponse.ts) +- `updateMessageRequest` is of type + [UpdateMessageRequest](./definitions/UpdateMessageRequest.ts) +- `result` is of type + [GetMessageInfoResponse](./definitions/GetMessageInfoResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Message-Store-updateMessage) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Message-Store-updateMessage) +in API Explorer. ## deleteMessage @@ -7943,11 +8867,14 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `deleteMessageBulkRequest` is of type [DeleteMessageBulkRequest](./definitions/DeleteMessageBulkRequest.ts) -- `deleteMessageParameters` is of type [DeleteMessageParameters](./definitions/DeleteMessageParameters.ts) +- `deleteMessageBulkRequest` is of type + [DeleteMessageBulkRequest](./definitions/DeleteMessageBulkRequest.ts) +- `deleteMessageParameters` is of type + [DeleteMessageParameters](./definitions/DeleteMessageParameters.ts) - `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Message-Store-deleteMessage) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Message-Store-deleteMessage) +in API Explorer. ## patchMessage @@ -7976,10 +8903,13 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `patchMessageRequest` is of type [PatchMessageRequest](./definitions/PatchMessageRequest.ts) -- `result` is of type [GetMessageInfoResponse](./definitions/GetMessageInfoResponse.ts) +- `patchMessageRequest` is of type + [PatchMessageRequest](./definitions/PatchMessageRequest.ts) +- `result` is of type + [GetMessageInfoResponse](./definitions/GetMessageInfoResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Message-Store-patchMessage) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Message-Store-patchMessage) +in API Explorer. ## syncMessages @@ -8008,10 +8938,13 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `syncMessagesParameters` is of type [SyncMessagesParameters](./definitions/SyncMessagesParameters.ts) -- `result` is of type [GetMessageSyncResponse](./definitions/GetMessageSyncResponse.ts) +- `syncMessagesParameters` is of type + [SyncMessagesParameters](./definitions/SyncMessagesParameters.ts) +- `result` is of type + [GetMessageSyncResponse](./definitions/GetMessageSyncResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Message-Store-syncMessages) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Message-Store-syncMessages) +in API Explorer. ## listExtensionPhoneNumbers @@ -8040,10 +8973,13 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `listExtensionPhoneNumbersParameters` is of type [ListExtensionPhoneNumbersParameters](./definitions/ListExtensionPhoneNumbersParameters.ts) -- `result` is of type [GetExtensionPhoneNumbersResponse](./definitions/GetExtensionPhoneNumbersResponse.ts) +- `listExtensionPhoneNumbersParameters` is of type + [ListExtensionPhoneNumbersParameters](./definitions/ListExtensionPhoneNumbersParameters.ts) +- `result` is of type + [GetExtensionPhoneNumbersResponse](./definitions/GetExtensionPhoneNumbersResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Phone-Numbers-listExtensionPhoneNumbers) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Phone-Numbers-listExtensionPhoneNumbers) +in API Explorer. ## readUserProfileImageLegacy @@ -8060,7 +8996,9 @@ Get User Profile Image ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).extension(extensionId).profileImage().list(); +var result = await rc.restapi(apiVersion).account(accountId).extension( + extensionId, +).profileImage().list(); await rc.revoke(); ``` @@ -8071,9 +9009,11 @@ await rc.revoke(); ### ❗❗❗ Code sample above may not work -Please refer to [Binary content downloading](/README.md#Binary-content-downloading). +Please refer to +[Binary content downloading](/README.md#Binary-content-downloading). -[Try it out](https://developer.ringcentral.com/api-reference#User-Settings-readUserProfileImageLegacy) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#User-Settings-readUserProfileImageLegacy) +in API Explorer. ## createUserProfileImage @@ -8102,10 +9042,12 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `createUserProfileImageRequest` is of type [CreateUserProfileImageRequest](./definitions/CreateUserProfileImageRequest.ts) +- `createUserProfileImageRequest` is of type + [CreateUserProfileImageRequest](./definitions/CreateUserProfileImageRequest.ts) - `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#User-Settings-createUserProfileImage) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#User-Settings-createUserProfileImage) +in API Explorer. ## updateUserProfileImage @@ -8134,10 +9076,12 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `updateUserProfileImageRequest` is of type [UpdateUserProfileImageRequest](./definitions/UpdateUserProfileImageRequest.ts) +- `updateUserProfileImageRequest` is of type + [UpdateUserProfileImageRequest](./definitions/UpdateUserProfileImageRequest.ts) - `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#User-Settings-updateUserProfileImage) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#User-Settings-updateUserProfileImage) +in API Explorer. ## deleteUserProfileImage @@ -8154,7 +9098,9 @@ Delete User Profile Image ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).extension(extensionId).profileImage().delete(); +var result = await rc.restapi(apiVersion).account(accountId).extension( + extensionId, +).profileImage().delete(); await rc.revoke(); ``` @@ -8163,7 +9109,8 @@ await rc.revoke(); - Parameter `extensionId` is optional with default value `~` - `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#User-Settings-deleteUserProfileImage) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#User-Settings-deleteUserProfileImage) +in API Explorer. ## readScaledProfileImage @@ -8192,14 +9139,17 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `readScaledProfileImageParameters` is of type [ReadScaledProfileImageParameters](./definitions/ReadScaledProfileImageParameters.ts) +- `readScaledProfileImageParameters` is of type + [ReadScaledProfileImageParameters](./definitions/ReadScaledProfileImageParameters.ts) - `result` is of type `byte[]` ### ❗❗❗ Code sample above may not work -Please refer to [Binary content downloading](/README.md#Binary-content-downloading). +Please refer to +[Binary content downloading](/README.md#Binary-content-downloading). -[Try it out](https://developer.ringcentral.com/api-reference#User-Settings-readScaledProfileImage) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#User-Settings-readScaledProfileImage) +in API Explorer. ## listCompanyMessageTemplates @@ -8226,10 +9176,13 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `listCompanyMessageTemplatesParameters` is of type [ListCompanyMessageTemplatesParameters](./definitions/ListCompanyMessageTemplatesParameters.ts) -- `result` is of type [MessageTemplatesListResponse](./definitions/MessageTemplatesListResponse.ts) +- `listCompanyMessageTemplatesParameters` is of type + [ListCompanyMessageTemplatesParameters](./definitions/ListCompanyMessageTemplatesParameters.ts) +- `result` is of type + [MessageTemplatesListResponse](./definitions/MessageTemplatesListResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#SMS-Templates-listCompanyMessageTemplates) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#SMS-Templates-listCompanyMessageTemplates) +in API Explorer. ## createCompanyMessageTemplate @@ -8246,16 +9199,20 @@ Create Company Message Template ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).messageStoreTemplates().post(messageTemplateRequest); +var result = await rc.restapi(apiVersion).account(accountId) + .messageStoreTemplates().post(messageTemplateRequest); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `messageTemplateRequest` is of type [MessageTemplateRequest](./definitions/MessageTemplateRequest.ts) -- `result` is of type [MessageTemplateResponse](./definitions/MessageTemplateResponse.ts) +- `messageTemplateRequest` is of type + [MessageTemplateRequest](./definitions/MessageTemplateRequest.ts) +- `result` is of type + [MessageTemplateResponse](./definitions/MessageTemplateResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#SMS-Templates-createCompanyMessageTemplate) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#SMS-Templates-createCompanyMessageTemplate) +in API Explorer. ## readCompanyMessageTemplate @@ -8272,15 +9229,18 @@ Get Company Message Template ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).messageStoreTemplates(templateId).get(); +var result = await rc.restapi(apiVersion).account(accountId) + .messageStoreTemplates(templateId).get(); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `result` is of type [MessageTemplateResponse](./definitions/MessageTemplateResponse.ts) +- `result` is of type + [MessageTemplateResponse](./definitions/MessageTemplateResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#SMS-Templates-readCompanyMessageTemplate) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#SMS-Templates-readCompanyMessageTemplate) +in API Explorer. ## updateCompanyMessageTemplate @@ -8307,10 +9267,13 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `messageTemplateUpdateRequest` is of type [MessageTemplateUpdateRequest](./definitions/MessageTemplateUpdateRequest.ts) -- `result` is of type [MessageTemplateResponse](./definitions/MessageTemplateResponse.ts) +- `messageTemplateUpdateRequest` is of type + [MessageTemplateUpdateRequest](./definitions/MessageTemplateUpdateRequest.ts) +- `result` is of type + [MessageTemplateResponse](./definitions/MessageTemplateResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#SMS-Templates-updateCompanyMessageTemplate) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#SMS-Templates-updateCompanyMessageTemplate) +in API Explorer. ## deleteCompanyMessageTemplate @@ -8327,7 +9290,8 @@ Delete Company Message Template ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).messageStoreTemplates(templateId).delete(); +var result = await rc.restapi(apiVersion).account(accountId) + .messageStoreTemplates(templateId).delete(); await rc.revoke(); ``` @@ -8335,7 +9299,8 @@ await rc.revoke(); - Parameter `accountId` is optional with default value `~` - `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#SMS-Templates-deleteCompanyMessageTemplate) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#SMS-Templates-deleteCompanyMessageTemplate) +in API Explorer. ## listPagingGroupUsers @@ -8363,10 +9328,13 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `listPagingGroupUsersParameters` is of type [ListPagingGroupUsersParameters](./definitions/ListPagingGroupUsersParameters.ts) -- `result` is of type [PagingOnlyGroupUsers](./definitions/PagingOnlyGroupUsers.ts) +- `listPagingGroupUsersParameters` is of type + [ListPagingGroupUsersParameters](./definitions/ListPagingGroupUsersParameters.ts) +- `result` is of type + [PagingOnlyGroupUsers](./definitions/PagingOnlyGroupUsers.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Paging-Only-Groups-listPagingGroupUsers) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Paging-Only-Groups-listPagingGroupUsers) +in API Explorer. ## readCallPartyStatus @@ -8397,7 +9365,8 @@ await rc.revoke(); - Parameter `accountId` is optional with default value `~` - `result` is of type [CallParty](./definitions/CallParty.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Call-Control-readCallPartyStatus) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Control-readCallPartyStatus) +in API Explorer. ## deleteCallParty @@ -8428,7 +9397,8 @@ await rc.revoke(); - Parameter `accountId` is optional with default value `~` - `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Call-Control-deleteCallParty) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Control-deleteCallParty) +in API Explorer. ## updateCallParty @@ -8457,10 +9427,12 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `partyUpdateRequest` is of type [PartyUpdateRequest](./definitions/PartyUpdateRequest.ts) +- `partyUpdateRequest` is of type + [PartyUpdateRequest](./definitions/PartyUpdateRequest.ts) - `result` is of type [CallParty](./definitions/CallParty.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Call-Control-updateCallParty) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Control-updateCallParty) +in API Explorer. ## listPermissionCategories @@ -8477,15 +9449,19 @@ List Permission Categories ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).dictionary().permissionCategory().list(listPermissionCategoriesParameters); +var result = await rc.restapi(apiVersion).dictionary().permissionCategory() + .list(listPermissionCategoriesParameters); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `listPermissionCategoriesParameters` is of type [ListPermissionCategoriesParameters](./definitions/ListPermissionCategoriesParameters.ts) -- `result` is of type [PermissionCategoryCollectionResource](./definitions/PermissionCategoryCollectionResource.ts) +- `listPermissionCategoriesParameters` is of type + [ListPermissionCategoriesParameters](./definitions/ListPermissionCategoriesParameters.ts) +- `result` is of type + [PermissionCategoryCollectionResource](./definitions/PermissionCategoryCollectionResource.ts) -[Try it out](https://developer.ringcentral.com/api-reference#User-Permissions-listPermissionCategories) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#User-Permissions-listPermissionCategories) +in API Explorer. ## readPermissionCategory @@ -8502,14 +9478,18 @@ Get Permission Category ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).dictionary().permissionCategory(permissionCategoryId).get(); +var result = await rc.restapi(apiVersion).dictionary().permissionCategory( + permissionCategoryId, +).get(); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `result` is of type [PermissionCategoryResource](./definitions/PermissionCategoryResource.ts) +- `result` is of type + [PermissionCategoryResource](./definitions/PermissionCategoryResource.ts) -[Try it out](https://developer.ringcentral.com/api-reference#User-Permissions-readPermissionCategory) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#User-Permissions-readPermissionCategory) +in API Explorer. ## createGlipAdaptiveCardNew @@ -8526,14 +9506,19 @@ Create Adaptive Card ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.teamMessaging().v1().chats(chatId).adaptiveCards().post(adaptiveCardRequest); +var result = await rc.teamMessaging().v1().chats(chatId).adaptiveCards().post( + adaptiveCardRequest, +); await rc.revoke(); ``` -- `adaptiveCardRequest` is of type [AdaptiveCardRequest](./definitions/AdaptiveCardRequest.ts) -- `result` is of type [AdaptiveCardShortInfo](./definitions/AdaptiveCardShortInfo.ts) +- `adaptiveCardRequest` is of type + [AdaptiveCardRequest](./definitions/AdaptiveCardRequest.ts) +- `result` is of type + [AdaptiveCardShortInfo](./definitions/AdaptiveCardShortInfo.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Adaptive-Cards-createGlipAdaptiveCardNew) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Adaptive-Cards-createGlipAdaptiveCardNew) +in API Explorer. ## rcwConfigListAllCompanySessions @@ -8560,10 +9545,13 @@ var result = await rc await rc.revoke(); ``` -- `rcwConfigListAllCompanySessionsParameters` is of type [RcwConfigListAllCompanySessionsParameters](./definitions/RcwConfigListAllCompanySessionsParameters.ts) -- `result` is of type [WcsSessionGlobalListResource](./definitions/WcsSessionGlobalListResource.ts) +- `rcwConfigListAllCompanySessionsParameters` is of type + [RcwConfigListAllCompanySessionsParameters](./definitions/RcwConfigListAllCompanySessionsParameters.ts) +- `result` is of type + [WcsSessionGlobalListResource](./definitions/WcsSessionGlobalListResource.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Webinars-and-Sessions-rcwConfigListAllCompanySessions) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Webinars-and-Sessions-rcwConfigListAllCompanySessions) +in API Explorer. ## rcwHistoryGetRecordingDownload @@ -8590,10 +9578,13 @@ var result = await rc await rc.revoke(); ``` -- `rcwHistoryGetRecordingDownloadParameters` is of type [RcwHistoryGetRecordingDownloadParameters](./definitions/RcwHistoryGetRecordingDownloadParameters.ts) -- `result` is of type [RecordingDownloadModel](./definitions/RecordingDownloadModel.ts) +- `rcwHistoryGetRecordingDownloadParameters` is of type + [RcwHistoryGetRecordingDownloadParameters](./definitions/RcwHistoryGetRecordingDownloadParameters.ts) +- `result` is of type + [RecordingDownloadModel](./definitions/RecordingDownloadModel.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Historical-Recordings-rcwHistoryGetRecordingDownload) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Historical-Recordings-rcwHistoryGetRecordingDownload) +in API Explorer. ## rcwN11sListSubscriptions @@ -8614,9 +9605,11 @@ var result = await rc.webinar().notifications().v1().subscriptions().list(); await rc.revoke(); ``` -- `result` is of type [SubscriptionListResource](./definitions/SubscriptionListResource.ts) +- `result` is of type + [SubscriptionListResource](./definitions/SubscriptionListResource.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Webinar-Subscriptions-rcwN11sListSubscriptions) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Webinar-Subscriptions-rcwN11sListSubscriptions) +in API Explorer. ## rcwN11sCreateSubscription @@ -8633,14 +9626,18 @@ Create Webinar Subscription ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.webinar().notifications().v1().subscriptions().post(createWebhookSubscriptionRequest); +var result = await rc.webinar().notifications().v1().subscriptions().post( + createWebhookSubscriptionRequest, +); await rc.revoke(); ``` -- `createWebhookSubscriptionRequest` is of type [CreateWebhookSubscriptionRequest](./definitions/CreateWebhookSubscriptionRequest.ts) +- `createWebhookSubscriptionRequest` is of type + [CreateWebhookSubscriptionRequest](./definitions/CreateWebhookSubscriptionRequest.ts) - `result` is of type [SubscriptionInfo](./definitions/SubscriptionInfo.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Webinar-Subscriptions-rcwN11sCreateSubscription) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Webinar-Subscriptions-rcwN11sCreateSubscription) +in API Explorer. ## rcwN11sGetSubscription @@ -8657,13 +9654,16 @@ Get Webinar Subscription ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.webinar().notifications().v1().subscriptions(subscriptionId).get(); +var result = await rc.webinar().notifications().v1().subscriptions( + subscriptionId, +).get(); await rc.revoke(); ``` - `result` is of type [SubscriptionInfo](./definitions/SubscriptionInfo.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Webinar-Subscriptions-rcwN11sGetSubscription) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Webinar-Subscriptions-rcwN11sGetSubscription) +in API Explorer. ## rcwN11sUpdateSubscription @@ -8680,14 +9680,18 @@ Update Webinar Subscription ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.webinar().notifications().v1().subscriptions(subscriptionId).put(updateSubscriptionRequest); +var result = await rc.webinar().notifications().v1().subscriptions( + subscriptionId, +).put(updateSubscriptionRequest); await rc.revoke(); ``` -- `updateSubscriptionRequest` is of type [UpdateSubscriptionRequest](./definitions/UpdateSubscriptionRequest.ts) +- `updateSubscriptionRequest` is of type + [UpdateSubscriptionRequest](./definitions/UpdateSubscriptionRequest.ts) - `result` is of type [SubscriptionInfo](./definitions/SubscriptionInfo.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Webinar-Subscriptions-rcwN11sUpdateSubscription) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Webinar-Subscriptions-rcwN11sUpdateSubscription) +in API Explorer. ## rcwN11sDeleteSubscription @@ -8704,13 +9708,16 @@ Cancel Webinar Subscription ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.webinar().notifications().v1().subscriptions(subscriptionId).delete(); +var result = await rc.webinar().notifications().v1().subscriptions( + subscriptionId, +).delete(); await rc.revoke(); ``` - `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Webinar-Subscriptions-rcwN11sDeleteSubscription) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Webinar-Subscriptions-rcwN11sDeleteSubscription) +in API Explorer. ## analyticsCallsAggregationFetch @@ -8738,11 +9745,15 @@ var result = await rc await rc.revoke(); ``` -- `aggregationRequest` is of type [AggregationRequest](./definitions/AggregationRequest.ts) -- `analyticsCallsAggregationFetchParameters` is of type [AnalyticsCallsAggregationFetchParameters](./definitions/AnalyticsCallsAggregationFetchParameters.ts) -- `result` is of type [AggregationResponse](./definitions/AggregationResponse.ts) +- `aggregationRequest` is of type + [AggregationRequest](./definitions/AggregationRequest.ts) +- `analyticsCallsAggregationFetchParameters` is of type + [AnalyticsCallsAggregationFetchParameters](./definitions/AnalyticsCallsAggregationFetchParameters.ts) +- `result` is of type + [AggregationResponse](./definitions/AggregationResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Business-Analytics-analyticsCallsAggregationFetch) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Business-Analytics-analyticsCallsAggregationFetch) +in API Explorer. ## analyticsCallsTimelineFetch @@ -8770,11 +9781,14 @@ var result = await rc await rc.revoke(); ``` -- `timelineRequest` is of type [TimelineRequest](./definitions/TimelineRequest.ts) -- `analyticsCallsTimelineFetchParameters` is of type [AnalyticsCallsTimelineFetchParameters](./definitions/AnalyticsCallsTimelineFetchParameters.ts) +- `timelineRequest` is of type + [TimelineRequest](./definitions/TimelineRequest.ts) +- `analyticsCallsTimelineFetchParameters` is of type + [AnalyticsCallsTimelineFetchParameters](./definitions/AnalyticsCallsTimelineFetchParameters.ts) - `result` is of type [TimelineResponse](./definitions/TimelineResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Business-Analytics-analyticsCallsTimelineFetch) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Business-Analytics-analyticsCallsTimelineFetch) +in API Explorer. ## getDefaultBridge @@ -8791,7 +9805,8 @@ Get User's Default Bridge ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.rcvideo().v2().account(accountId).extension(extensionId).bridges().default().get(); +var result = await rc.rcvideo().v2().account(accountId).extension(extensionId) + .bridges().default().get(); await rc.revoke(); ``` @@ -8799,7 +9814,8 @@ await rc.revoke(); - Parameter `extensionId` is optional with default value `~` - `result` is of type [BridgeResponse](./definitions/BridgeResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Bridge-Management-getDefaultBridge) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Bridge-Management-getDefaultBridge) +in API Explorer. ## postBatchProvisionUsers @@ -8816,14 +9832,18 @@ Create Multiple User Extensions ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi().v2().accounts(accountId).batchProvisioning().users().post(batchProvisionUsersRequest); +var result = await rc.restapi().v2().accounts(accountId).batchProvisioning() + .users().post(batchProvisionUsersRequest); await rc.revoke(); ``` -- `batchProvisionUsersRequest` is of type [BatchProvisionUsersRequest](./definitions/BatchProvisionUsersRequest.ts) -- `result` is of type [BatchProvisionUsersResponse](./definitions/BatchProvisionUsersResponse.ts) +- `batchProvisionUsersRequest` is of type + [BatchProvisionUsersRequest](./definitions/BatchProvisionUsersRequest.ts) +- `result` is of type + [BatchProvisionUsersResponse](./definitions/BatchProvisionUsersResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#User-Settings-postBatchProvisionUsers) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#User-Settings-postBatchProvisionUsers) +in API Explorer. ## replaceDevicesJWSPublic @@ -8851,10 +9871,12 @@ var result = await rc await rc.revoke(); ``` -- `swapDeviceRequest` is of type [SwapDeviceRequest](./definitions/SwapDeviceRequest.ts) +- `swapDeviceRequest` is of type + [SwapDeviceRequest](./definitions/SwapDeviceRequest.ts) - `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Devices-replaceDevicesJWSPublic) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Devices-replaceDevicesJWSPublic) +in API Explorer. ## addNumbersToInventoryV2 @@ -8871,14 +9893,18 @@ Add Numbers to Inventory ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi().v2().accounts(accountId).phoneNumbers().bulkAdd().post(addPhoneNumbersRequest); +var result = await rc.restapi().v2().accounts(accountId).phoneNumbers() + .bulkAdd().post(addPhoneNumbersRequest); await rc.revoke(); ``` -- `addPhoneNumbersRequest` is of type [AddPhoneNumbersRequest](./definitions/AddPhoneNumbersRequest.ts) -- `result` is of type [AddPhoneNumbersResponse](./definitions/AddPhoneNumbersResponse.ts) +- `addPhoneNumbersRequest` is of type + [AddPhoneNumbersRequest](./definitions/AddPhoneNumbersRequest.ts) +- `result` is of type + [AddPhoneNumbersResponse](./definitions/AddPhoneNumbersResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Phone-Numbers-addNumbersToInventoryV2) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Phone-Numbers-addNumbersToInventoryV2) +in API Explorer. ## getBulkAddTaskResultsV2 @@ -8895,13 +9921,17 @@ Get Add Numbers Task Results ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi().v2().accounts(accountId).phoneNumbers().bulkAdd(taskId).get(); +var result = await rc.restapi().v2().accounts(accountId).phoneNumbers().bulkAdd( + taskId, +).get(); await rc.revoke(); ``` -- `result` is of type [GetBulkAddTaskResultsV2Response](./definitions/GetBulkAddTaskResultsV2Response.ts) +- `result` is of type + [GetBulkAddTaskResultsV2Response](./definitions/GetBulkAddTaskResultsV2Response.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Phone-Numbers-getBulkAddTaskResultsV2) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Phone-Numbers-getBulkAddTaskResultsV2) +in API Explorer. ## addA2PSMSOptOuts @@ -8930,10 +9960,13 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `optOutBulkAssignRequest` is of type [OptOutBulkAssignRequest](./definitions/OptOutBulkAssignRequest.ts) -- `result` is of type [OptOutBulkAssignResponse](./definitions/OptOutBulkAssignResponse.ts) +- `optOutBulkAssignRequest` is of type + [OptOutBulkAssignRequest](./definitions/OptOutBulkAssignRequest.ts) +- `result` is of type + [OptOutBulkAssignResponse](./definitions/OptOutBulkAssignResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#High-Volume-SMS-addA2PSMSOptOuts) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#High-Volume-SMS-addA2PSMSOptOuts) +in API Explorer. ## getAddressBookBulkUploadTask @@ -8950,15 +9983,18 @@ Get Contacts Upload Task ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).addressBookBulkUpload().tasks(taskId).get(); +var result = await rc.restapi(apiVersion).account(accountId) + .addressBookBulkUpload().tasks(taskId).get(); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `result` is of type [AddressBookBulkUploadResponse](./definitions/AddressBookBulkUploadResponse.ts) +- `result` is of type + [AddressBookBulkUploadResponse](./definitions/AddressBookBulkUploadResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#External-Contacts-getAddressBookBulkUploadTask) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#External-Contacts-getAddressBookBulkUploadTask) +in API Explorer. ## listCallMonitoringGroupMembers @@ -8986,10 +10022,13 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `listCallMonitoringGroupMembersParameters` is of type [ListCallMonitoringGroupMembersParameters](./definitions/ListCallMonitoringGroupMembersParameters.ts) -- `result` is of type [CallMonitoringGroupMemberList](./definitions/CallMonitoringGroupMemberList.ts) +- `listCallMonitoringGroupMembersParameters` is of type + [ListCallMonitoringGroupMembersParameters](./definitions/ListCallMonitoringGroupMembersParameters.ts) +- `result` is of type + [CallMonitoringGroupMemberList](./definitions/CallMonitoringGroupMemberList.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Call-Monitoring-Groups-listCallMonitoringGroupMembers) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Monitoring-Groups-listCallMonitoringGroupMembers) +in API Explorer. ## updateCallRecordingExtensionList @@ -9017,10 +10056,12 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `bulkAccountCallRecordingsResource` is of type [BulkAccountCallRecordingsResource](./definitions/BulkAccountCallRecordingsResource.ts) +- `bulkAccountCallRecordingsResource` is of type + [BulkAccountCallRecordingsResource](./definitions/BulkAccountCallRecordingsResource.ts) - `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Call-Recording-Settings-updateCallRecordingExtensionList) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Recording-Settings-updateCallRecordingExtensionList) +in API Explorer. ## listCallRecordingCustomGreetings @@ -9048,10 +10089,13 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `listCallRecordingCustomGreetingsParameters` is of type [ListCallRecordingCustomGreetingsParameters](./definitions/ListCallRecordingCustomGreetingsParameters.ts) -- `result` is of type [CallRecordingCustomGreetings](./definitions/CallRecordingCustomGreetings.ts) +- `listCallRecordingCustomGreetingsParameters` is of type + [ListCallRecordingCustomGreetingsParameters](./definitions/ListCallRecordingCustomGreetingsParameters.ts) +- `result` is of type + [CallRecordingCustomGreetings](./definitions/CallRecordingCustomGreetings.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Call-Recording-Settings-listCallRecordingCustomGreetings) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Recording-Settings-listCallRecordingCustomGreetings) +in API Explorer. ## deleteCallRecordingCustomGreetingList @@ -9068,7 +10112,8 @@ Delete Call Recording Custom Greeting List ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).callRecording().customGreetings().deleteAll(); +var result = await rc.restapi(apiVersion).account(accountId).callRecording() + .customGreetings().deleteAll(); await rc.revoke(); ``` @@ -9076,7 +10121,8 @@ await rc.revoke(); - Parameter `accountId` is optional with default value `~` - `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Call-Recording-Settings-deleteCallRecordingCustomGreetingList) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Recording-Settings-deleteCallRecordingCustomGreetingList) +in API Explorer. ## deleteCallRecordingCustomGreeting @@ -9093,7 +10139,8 @@ Delete Call Recording Custom Greeting ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).callRecording().customGreetings(greetingId).delete(); +var result = await rc.restapi(apiVersion).account(accountId).callRecording() + .customGreetings(greetingId).delete(); await rc.revoke(); ``` @@ -9101,7 +10148,8 @@ await rc.revoke(); - Parameter `accountId` is optional with default value `~` - `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Call-Recording-Settings-deleteCallRecordingCustomGreeting) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Recording-Settings-deleteCallRecordingCustomGreeting) +in API Explorer. ## getExtensionBulkUpdateTask @@ -9118,15 +10166,18 @@ Get Extension Update Task Status ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).extensionBulkUpdate().tasks(taskId).get(); +var result = await rc.restapi(apiVersion).account(accountId) + .extensionBulkUpdate().tasks(taskId).get(); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `result` is of type [ExtensionBulkUpdateTaskResource](./definitions/ExtensionBulkUpdateTaskResource.ts) +- `result` is of type + [ExtensionBulkUpdateTaskResource](./definitions/ExtensionBulkUpdateTaskResource.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Extensions-getExtensionBulkUpdateTask) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Extensions-getExtensionBulkUpdateTask) +in API Explorer. ## getCallQueueOverflowSettings @@ -9143,15 +10194,19 @@ Get Call Queue Overflow Settings ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).extension(callQueueId).overflowSettings().get(); +var result = await rc.restapi(apiVersion).account(accountId).extension( + callQueueId, +).overflowSettings().get(); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `result` is of type [CallQueueOverflowSettings](./definitions/CallQueueOverflowSettings.ts) +- `result` is of type + [CallQueueOverflowSettings](./definitions/CallQueueOverflowSettings.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Call-Queues-getCallQueueOverflowSettings) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Queues-getCallQueueOverflowSettings) +in API Explorer. ## updateCallQueueOverflowSettings @@ -9179,10 +10234,13 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `callQueueOverflowSettingsRequestResource` is of type [CallQueueOverflowSettingsRequestResource](./definitions/CallQueueOverflowSettingsRequestResource.ts) -- `result` is of type [CallQueueOverflowSettings](./definitions/CallQueueOverflowSettings.ts) +- `callQueueOverflowSettingsRequestResource` is of type + [CallQueueOverflowSettingsRequestResource](./definitions/CallQueueOverflowSettingsRequestResource.ts) +- `result` is of type + [CallQueueOverflowSettings](./definitions/CallQueueOverflowSettings.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Call-Queues-updateCallQueueOverflowSettings) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Queues-updateCallQueueOverflowSettings) +in API Explorer. ## syncAddressBook @@ -9211,10 +10269,12 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `syncAddressBookParameters` is of type [SyncAddressBookParameters](./definitions/SyncAddressBookParameters.ts) +- `syncAddressBookParameters` is of type + [SyncAddressBookParameters](./definitions/SyncAddressBookParameters.ts) - `result` is of type [AddressBookSync](./definitions/AddressBookSync.ts) -[Try it out](https://developer.ringcentral.com/api-reference#External-Contacts-syncAddressBook) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#External-Contacts-syncAddressBook) +in API Explorer. ## listContacts @@ -9244,10 +10304,12 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `listContactsParameters` is of type [ListContactsParameters](./definitions/ListContactsParameters.ts) +- `listContactsParameters` is of type + [ListContactsParameters](./definitions/ListContactsParameters.ts) - `result` is of type [ContactList](./definitions/ContactList.ts) -[Try it out](https://developer.ringcentral.com/api-reference#External-Contacts-listContacts) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#External-Contacts-listContacts) +in API Explorer. ## createContact @@ -9277,11 +10339,15 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `personalContactRequest` is of type [PersonalContactRequest](./definitions/PersonalContactRequest.ts) -- `createContactParameters` is of type [CreateContactParameters](./definitions/CreateContactParameters.ts) -- `result` is of type [PersonalContactResource](./definitions/PersonalContactResource.ts) +- `personalContactRequest` is of type + [PersonalContactRequest](./definitions/PersonalContactRequest.ts) +- `createContactParameters` is of type + [CreateContactParameters](./definitions/CreateContactParameters.ts) +- `result` is of type + [PersonalContactResource](./definitions/PersonalContactResource.ts) -[Try it out](https://developer.ringcentral.com/api-reference#External-Contacts-createContact) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#External-Contacts-createContact) +in API Explorer. ## readContact @@ -9311,9 +10377,11 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `result` is of type [PersonalContactResource](./definitions/PersonalContactResource.ts) +- `result` is of type + [PersonalContactResource](./definitions/PersonalContactResource.ts) -[Try it out](https://developer.ringcentral.com/api-reference#External-Contacts-readContact) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#External-Contacts-readContact) +in API Explorer. ## updateContact @@ -9343,11 +10411,15 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `personalContactRequest` is of type [PersonalContactRequest](./definitions/PersonalContactRequest.ts) -- `updateContactParameters` is of type [UpdateContactParameters](./definitions/UpdateContactParameters.ts) -- `result` is of type [PersonalContactResource](./definitions/PersonalContactResource.ts) +- `personalContactRequest` is of type + [PersonalContactRequest](./definitions/PersonalContactRequest.ts) +- `updateContactParameters` is of type + [UpdateContactParameters](./definitions/UpdateContactParameters.ts) +- `result` is of type + [PersonalContactResource](./definitions/PersonalContactResource.ts) -[Try it out](https://developer.ringcentral.com/api-reference#External-Contacts-updateContact) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#External-Contacts-updateContact) +in API Explorer. ## deleteContact @@ -9379,7 +10451,8 @@ await rc.revoke(); - Parameter `extensionId` is optional with default value `~` - `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#External-Contacts-deleteContact) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#External-Contacts-deleteContact) +in API Explorer. ## patchContact @@ -9409,11 +10482,15 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `personalContactRequest` is of type [PersonalContactRequest](./definitions/PersonalContactRequest.ts) -- `patchContactParameters` is of type [PatchContactParameters](./definitions/PatchContactParameters.ts) -- `result` is of type [PersonalContactResource](./definitions/PersonalContactResource.ts) +- `personalContactRequest` is of type + [PersonalContactRequest](./definitions/PersonalContactRequest.ts) +- `patchContactParameters` is of type + [PatchContactParameters](./definitions/PatchContactParameters.ts) +- `result` is of type + [PersonalContactResource](./definitions/PersonalContactResource.ts) -[Try it out](https://developer.ringcentral.com/api-reference#External-Contacts-patchContact) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#External-Contacts-patchContact) +in API Explorer. ## listAdministeredSites @@ -9430,16 +10507,20 @@ List User Administered Sites ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).extension(extensionId).administeredSites().get(); +var result = await rc.restapi(apiVersion).account(accountId).extension( + extensionId, +).administeredSites().get(); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `result` is of type [BusinessSiteCollectionResource](./definitions/BusinessSiteCollectionResource.ts) +- `result` is of type + [BusinessSiteCollectionResource](./definitions/BusinessSiteCollectionResource.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Site-Administration-listAdministeredSites) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Site-Administration-listAdministeredSites) +in API Explorer. ## updateUserAdministeredSites @@ -9468,10 +10549,13 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `businessSiteCollectionRequest` is of type [BusinessSiteCollectionRequest](./definitions/BusinessSiteCollectionRequest.ts) -- `result` is of type [BusinessSiteCollectionResource](./definitions/BusinessSiteCollectionResource.ts) +- `businessSiteCollectionRequest` is of type + [BusinessSiteCollectionRequest](./definitions/BusinessSiteCollectionRequest.ts) +- `result` is of type + [BusinessSiteCollectionResource](./definitions/BusinessSiteCollectionResource.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Site-Administration-updateUserAdministeredSites) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Site-Administration-updateUserAdministeredSites) +in API Explorer. ## listOfAvailableForAssigningRoles @@ -9500,10 +10584,13 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `listOfAvailableForAssigningRolesParameters` is of type [ListOfAvailableForAssigningRolesParameters](./definitions/ListOfAvailableForAssigningRolesParameters.ts) -- `result` is of type [RolesCollectionResource](./definitions/RolesCollectionResource.ts) +- `listOfAvailableForAssigningRolesParameters` is of type + [ListOfAvailableForAssigningRolesParameters](./definitions/ListOfAvailableForAssigningRolesParameters.ts) +- `result` is of type + [RolesCollectionResource](./definitions/RolesCollectionResource.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Role-Management-listOfAvailableForAssigningRoles) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Role-Management-listOfAvailableForAssigningRoles) +in API Explorer. ## assignDefaultRole @@ -9520,16 +10607,20 @@ Assign Default Role ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).extension(extensionId).assignedRole().default().put(); +var result = await rc.restapi(apiVersion).account(accountId).extension( + extensionId, +).assignedRole().default().put(); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `result` is of type [AssignedRolesResource](./definitions/AssignedRolesResource.ts) +- `result` is of type + [AssignedRolesResource](./definitions/AssignedRolesResource.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Role-Management-assignDefaultRole) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Role-Management-assignDefaultRole) +in API Explorer. ## checkUserPermission @@ -9559,10 +10650,13 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `checkUserPermissionParameters` is of type [CheckUserPermissionParameters](./definitions/CheckUserPermissionParameters.ts) -- `result` is of type [AuthProfileCheckResource](./definitions/AuthProfileCheckResource.ts) +- `checkUserPermissionParameters` is of type + [CheckUserPermissionParameters](./definitions/CheckUserPermissionParameters.ts) +- `result` is of type + [AuthProfileCheckResource](./definitions/AuthProfileCheckResource.ts) -[Try it out](https://developer.ringcentral.com/api-reference#User-Permissions-checkUserPermission) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#User-Permissions-checkUserPermission) +in API Explorer. ## readExtensionCallQueuePresence @@ -9591,10 +10685,13 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `readExtensionCallQueuePresenceParameters` is of type [ReadExtensionCallQueuePresenceParameters](./definitions/ReadExtensionCallQueuePresenceParameters.ts) -- `result` is of type [ExtensionCallQueuePresenceList](./definitions/ExtensionCallQueuePresenceList.ts) +- `readExtensionCallQueuePresenceParameters` is of type + [ReadExtensionCallQueuePresenceParameters](./definitions/ReadExtensionCallQueuePresenceParameters.ts) +- `result` is of type + [ExtensionCallQueuePresenceList](./definitions/ExtensionCallQueuePresenceList.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Presence-readExtensionCallQueuePresence) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Presence-readExtensionCallQueuePresence) +in API Explorer. ## updateExtensionCallQueuePresence @@ -9623,10 +10720,13 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `extensionCallQueueUpdatePresenceList` is of type [ExtensionCallQueueUpdatePresenceList](./definitions/ExtensionCallQueueUpdatePresenceList.ts) -- `result` is of type [ExtensionCallQueuePresenceList](./definitions/ExtensionCallQueuePresenceList.ts) +- `extensionCallQueueUpdatePresenceList` is of type + [ExtensionCallQueueUpdatePresenceList](./definitions/ExtensionCallQueueUpdatePresenceList.ts) +- `result` is of type + [ExtensionCallQueuePresenceList](./definitions/ExtensionCallQueuePresenceList.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Presence-updateExtensionCallQueuePresence) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Presence-updateExtensionCallQueuePresence) +in API Explorer. ## getExtensionEmergencyLocations @@ -9655,10 +10755,13 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `getExtensionEmergencyLocationsParameters` is of type [GetExtensionEmergencyLocationsParameters](./definitions/GetExtensionEmergencyLocationsParameters.ts) -- `result` is of type [EmergencyLocationsResource](./definitions/EmergencyLocationsResource.ts) +- `getExtensionEmergencyLocationsParameters` is of type + [GetExtensionEmergencyLocationsParameters](./definitions/GetExtensionEmergencyLocationsParameters.ts) +- `result` is of type + [EmergencyLocationsResource](./definitions/EmergencyLocationsResource.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-getExtensionEmergencyLocations) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-getExtensionEmergencyLocations) +in API Explorer. ## createExtensionEmergencyLocation @@ -9687,10 +10790,13 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `createUserEmergencyLocationRequest` is of type [CreateUserEmergencyLocationRequest](./definitions/CreateUserEmergencyLocationRequest.ts) -- `result` is of type [EmergencyLocationResponseResource](./definitions/EmergencyLocationResponseResource.ts) +- `createUserEmergencyLocationRequest` is of type + [CreateUserEmergencyLocationRequest](./definitions/CreateUserEmergencyLocationRequest.ts) +- `result` is of type + [EmergencyLocationResponseResource](./definitions/EmergencyLocationResponseResource.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-createExtensionEmergencyLocation) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-createExtensionEmergencyLocation) +in API Explorer. ## getExtensionEmergencyLocation @@ -9719,9 +10825,11 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `result` is of type [CommonEmergencyLocationResource](./definitions/CommonEmergencyLocationResource.ts) +- `result` is of type + [CommonEmergencyLocationResource](./definitions/CommonEmergencyLocationResource.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-getExtensionEmergencyLocation) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-getExtensionEmergencyLocation) +in API Explorer. ## updateExtensionEmergencyLocation @@ -9750,10 +10858,13 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `emergencyLocationRequestResource` is of type [EmergencyLocationRequestResource](./definitions/EmergencyLocationRequestResource.ts) -- `result` is of type [EmergencyLocationResponseResource](./definitions/EmergencyLocationResponseResource.ts) +- `emergencyLocationRequestResource` is of type + [EmergencyLocationRequestResource](./definitions/EmergencyLocationRequestResource.ts) +- `result` is of type + [EmergencyLocationResponseResource](./definitions/EmergencyLocationResponseResource.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-updateExtensionEmergencyLocation) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-updateExtensionEmergencyLocation) +in API Explorer. ## deleteExtensionEmergencyLocation @@ -9782,10 +10893,12 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `deleteExtensionEmergencyLocationParameters` is of type [DeleteExtensionEmergencyLocationParameters](./definitions/DeleteExtensionEmergencyLocationParameters.ts) +- `deleteExtensionEmergencyLocationParameters` is of type + [DeleteExtensionEmergencyLocationParameters](./definitions/DeleteExtensionEmergencyLocationParameters.ts) - `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-deleteExtensionEmergencyLocation) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-deleteExtensionEmergencyLocation) +in API Explorer. ## listForwardingNumbers @@ -9814,10 +10927,13 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `listForwardingNumbersParameters` is of type [ListForwardingNumbersParameters](./definitions/ListForwardingNumbersParameters.ts) -- `result` is of type [GetExtensionForwardingNumberListResponse](./definitions/GetExtensionForwardingNumberListResponse.ts) +- `listForwardingNumbersParameters` is of type + [ListForwardingNumbersParameters](./definitions/ListForwardingNumbersParameters.ts) +- `result` is of type + [GetExtensionForwardingNumberListResponse](./definitions/GetExtensionForwardingNumberListResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Call-Forwarding-listForwardingNumbers) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Forwarding-listForwardingNumbers) +in API Explorer. ## createForwardingNumber @@ -9846,10 +10962,13 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `createForwardingNumberRequest` is of type [CreateForwardingNumberRequest](./definitions/CreateForwardingNumberRequest.ts) -- `result` is of type [ForwardingNumberInfo](./definitions/ForwardingNumberInfo.ts) +- `createForwardingNumberRequest` is of type + [CreateForwardingNumberRequest](./definitions/CreateForwardingNumberRequest.ts) +- `result` is of type + [ForwardingNumberInfo](./definitions/ForwardingNumberInfo.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Call-Forwarding-createForwardingNumber) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Forwarding-createForwardingNumber) +in API Explorer. ## deleteForwardingNumbers @@ -9878,10 +10997,12 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `deleteForwardingNumbersRequest` is of type [DeleteForwardingNumbersRequest](./definitions/DeleteForwardingNumbersRequest.ts) +- `deleteForwardingNumbersRequest` is of type + [DeleteForwardingNumbersRequest](./definitions/DeleteForwardingNumbersRequest.ts) - `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Call-Forwarding-deleteForwardingNumbers) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Forwarding-deleteForwardingNumbers) +in API Explorer. ## readForwardingNumber @@ -9910,9 +11031,11 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `result` is of type [ForwardingNumberResource](./definitions/ForwardingNumberResource.ts) +- `result` is of type + [ForwardingNumberResource](./definitions/ForwardingNumberResource.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Call-Forwarding-readForwardingNumber) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Forwarding-readForwardingNumber) +in API Explorer. ## updateForwardingNumber @@ -9941,10 +11064,13 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `updateForwardingNumberRequest` is of type [UpdateForwardingNumberRequest](./definitions/UpdateForwardingNumberRequest.ts) -- `result` is of type [ForwardingNumberInfo](./definitions/ForwardingNumberInfo.ts) +- `updateForwardingNumberRequest` is of type + [UpdateForwardingNumberRequest](./definitions/UpdateForwardingNumberRequest.ts) +- `result` is of type + [ForwardingNumberInfo](./definitions/ForwardingNumberInfo.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Call-Forwarding-updateForwardingNumber) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Forwarding-updateForwardingNumber) +in API Explorer. ## deleteForwardingNumber @@ -9975,7 +11101,8 @@ await rc.revoke(); - Parameter `extensionId` is optional with default value `~` - `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Call-Forwarding-deleteForwardingNumber) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Forwarding-deleteForwardingNumber) +in API Explorer. ## readMessageContent @@ -10005,14 +11132,17 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `readMessageContentParameters` is of type [ReadMessageContentParameters](./definitions/ReadMessageContentParameters.ts) +- `readMessageContentParameters` is of type + [ReadMessageContentParameters](./definitions/ReadMessageContentParameters.ts) - `result` is of type `byte[]` ### ❗❗❗ Code sample above may not work -Please refer to [Binary content downloading](/README.md#Binary-content-downloading). +Please refer to +[Binary content downloading](/README.md#Binary-content-downloading). -[Try it out](https://developer.ringcentral.com/api-reference#Message-Store-readMessageContent) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Message-Store-readMessageContent) +in API Explorer. ## readNotificationSettings @@ -10029,16 +11159,20 @@ Get Notification Settings ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).extension(extensionId).notificationSettings().get(); +var result = await rc.restapi(apiVersion).account(accountId).extension( + extensionId, +).notificationSettings().get(); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `result` is of type [NotificationSettings](./definitions/NotificationSettings.ts) +- `result` is of type + [NotificationSettings](./definitions/NotificationSettings.ts) -[Try it out](https://developer.ringcentral.com/api-reference#User-Settings-readNotificationSettings) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#User-Settings-readNotificationSettings) +in API Explorer. ## updateNotificationSettings @@ -10067,10 +11201,13 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `notificationSettingsUpdateRequest` is of type [NotificationSettingsUpdateRequest](./definitions/NotificationSettingsUpdateRequest.ts) -- `result` is of type [NotificationSettings](./definitions/NotificationSettings.ts) +- `notificationSettingsUpdateRequest` is of type + [NotificationSettingsUpdateRequest](./definitions/NotificationSettingsUpdateRequest.ts) +- `result` is of type + [NotificationSettings](./definitions/NotificationSettings.ts) -[Try it out](https://developer.ringcentral.com/api-reference#User-Settings-updateNotificationSettings) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#User-Settings-updateNotificationSettings) +in API Explorer. ## readUnifiedPresence @@ -10087,7 +11224,9 @@ Get Unified Presence ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).extension(extensionId).unifiedPresence().get(); +var result = await rc.restapi(apiVersion).account(accountId).extension( + extensionId, +).unifiedPresence().get(); await rc.revoke(); ``` @@ -10096,7 +11235,8 @@ await rc.revoke(); - Parameter `extensionId` is optional with default value `~` - `result` is of type [UnifiedPresence](./definitions/UnifiedPresence.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Presence-readUnifiedPresence) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Presence-readUnifiedPresence) +in API Explorer. ## updateUnifiedPresence @@ -10125,10 +11265,12 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `updateUnifiedPresence` is of type [UpdateUnifiedPresence](./definitions/UpdateUnifiedPresence.ts) +- `updateUnifiedPresence` is of type + [UpdateUnifiedPresence](./definitions/UpdateUnifiedPresence.ts) - `result` is of type [UnifiedPresence](./definitions/UnifiedPresence.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Presence-updateUnifiedPresence) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Presence-updateUnifiedPresence) +in API Explorer. ## readUserVideoConfiguration @@ -10145,16 +11287,20 @@ Get User Video Configuration ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).extension(extensionId).videoConfiguration().get(); +var result = await rc.restapi(apiVersion).account(accountId).extension( + extensionId, +).videoConfiguration().get(); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `result` is of type [UserVideoConfiguration](./definitions/UserVideoConfiguration.ts) +- `result` is of type + [UserVideoConfiguration](./definitions/UserVideoConfiguration.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Video-Configuration-readUserVideoConfiguration) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Video-Configuration-readUserVideoConfiguration) +in API Explorer. ## readMessageStoreConfiguration @@ -10171,15 +11317,18 @@ Get Message Store Configuration ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).messageStoreConfiguration().get(); +var result = await rc.restapi(apiVersion).account(accountId) + .messageStoreConfiguration().get(); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `result` is of type [MessageStoreConfiguration](./definitions/MessageStoreConfiguration.ts) +- `result` is of type + [MessageStoreConfiguration](./definitions/MessageStoreConfiguration.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Message-Store-readMessageStoreConfiguration) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Message-Store-readMessageStoreConfiguration) +in API Explorer. ## updateMessageStoreConfiguration @@ -10196,16 +11345,20 @@ Update Message Store Configuration ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).messageStoreConfiguration().put(messageStoreConfiguration); +var result = await rc.restapi(apiVersion).account(accountId) + .messageStoreConfiguration().put(messageStoreConfiguration); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `messageStoreConfiguration` is of type [MessageStoreConfiguration](./definitions/MessageStoreConfiguration.ts) -- `result` is of type [MessageStoreConfiguration](./definitions/MessageStoreConfiguration.ts) +- `messageStoreConfiguration` is of type + [MessageStoreConfiguration](./definitions/MessageStoreConfiguration.ts) +- `result` is of type + [MessageStoreConfiguration](./definitions/MessageStoreConfiguration.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Message-Store-updateMessageStoreConfiguration) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Message-Store-updateMessageStoreConfiguration) +in API Explorer. ## readMessageStoreReportArchive @@ -10222,15 +11375,19 @@ Get Message Store Report Archive ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).messageStoreReport(taskId).archive().get(); +var result = await rc.restapi(apiVersion).account(accountId).messageStoreReport( + taskId, +).archive().get(); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `result` is of type [MessageStoreReportArchive](./definitions/MessageStoreReportArchive.ts) +- `result` is of type + [MessageStoreReportArchive](./definitions/MessageStoreReportArchive.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Message-Exports-readMessageStoreReportArchive) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Message-Exports-readMessageStoreReportArchive) +in API Explorer. ## assignMultiplePagingGroupUsersDevices @@ -10258,10 +11415,12 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `editPagingGroupRequest` is of type [EditPagingGroupRequest](./definitions/EditPagingGroupRequest.ts) +- `editPagingGroupRequest` is of type + [EditPagingGroupRequest](./definitions/EditPagingGroupRequest.ts) - `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Paging-Only-Groups-assignMultiplePagingGroupUsersDevices) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Paging-Only-Groups-assignMultiplePagingGroupUsersDevices) +in API Explorer. ## listPagingGroupDevices @@ -10289,10 +11448,13 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `listPagingGroupDevicesParameters` is of type [ListPagingGroupDevicesParameters](./definitions/ListPagingGroupDevicesParameters.ts) -- `result` is of type [PagingOnlyGroupDevices](./definitions/PagingOnlyGroupDevices.ts) +- `listPagingGroupDevicesParameters` is of type + [ListPagingGroupDevicesParameters](./definitions/ListPagingGroupDevicesParameters.ts) +- `result` is of type + [PagingOnlyGroupDevices](./definitions/PagingOnlyGroupDevices.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Paging-Only-Groups-listPagingGroupDevices) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Paging-Only-Groups-listPagingGroupDevices) +in API Explorer. ## callFlipParty @@ -10325,7 +11487,8 @@ await rc.revoke(); - `callPartyFlip` is of type [CallPartyFlip](./definitions/CallPartyFlip.ts) - `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Call-Control-callFlipParty) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Control-callFlipParty) +in API Explorer. ## holdCallParty @@ -10355,10 +11518,12 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `holdCallPartyRequest` is of type [HoldCallPartyRequest](./definitions/HoldCallPartyRequest.ts) +- `holdCallPartyRequest` is of type + [HoldCallPartyRequest](./definitions/HoldCallPartyRequest.ts) - `result` is of type [CallParty](./definitions/CallParty.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Call-Control-holdCallParty) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Control-holdCallParty) +in API Explorer. ## callParkParty @@ -10390,7 +11555,8 @@ await rc.revoke(); - Parameter `accountId` is optional with default value `~` - `result` is of type [CallParty](./definitions/CallParty.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Call-Control-callParkParty) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Control-callParkParty) +in API Explorer. ## superviseCallSession @@ -10419,10 +11585,13 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `superviseCallSessionRequest` is of type [SuperviseCallSessionRequest](./definitions/SuperviseCallSessionRequest.ts) -- `result` is of type [SuperviseCallSessionResponse](./definitions/SuperviseCallSessionResponse.ts) +- `superviseCallSessionRequest` is of type + [SuperviseCallSessionRequest](./definitions/SuperviseCallSessionRequest.ts) +- `result` is of type + [SuperviseCallSessionResponse](./definitions/SuperviseCallSessionResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Call-Control-superviseCallSession) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Control-superviseCallSession) +in API Explorer. ## listContractedCountries @@ -10439,14 +11608,17 @@ List Contracted Countries ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).dictionary().brand(brandId).contractedCountry().list(); +var result = await rc.restapi(apiVersion).dictionary().brand(brandId) + .contractedCountry().list(); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `result` is of type [ContractedCountryListResponse](./definitions/ContractedCountryListResponse.ts) +- `result` is of type + [ContractedCountryListResponse](./definitions/ContractedCountryListResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Company-listContractedCountries) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Company-listContractedCountries) +in API Explorer. ## listDomesticCountries @@ -10473,10 +11645,13 @@ await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` -- `listDomesticCountriesParameters` is of type [ListDomesticCountriesParameters](./definitions/ListDomesticCountriesParameters.ts) -- `result` is of type [CountryListDictionaryModel](./definitions/CountryListDictionaryModel.ts) +- `listDomesticCountriesParameters` is of type + [ListDomesticCountriesParameters](./definitions/ListDomesticCountriesParameters.ts) +- `result` is of type + [CountryListDictionaryModel](./definitions/CountryListDictionaryModel.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Company-listDomesticCountries) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Company-listDomesticCountries) +in API Explorer. ## rcwConfigCreateSession @@ -10493,14 +11668,17 @@ Create Webinar Session ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.webinar().configuration().v1().webinars(webinarId).sessions().post(wcsSessionWithLocaleCodeModel); +var result = await rc.webinar().configuration().v1().webinars(webinarId) + .sessions().post(wcsSessionWithLocaleCodeModel); await rc.revoke(); ``` -- `wcsSessionWithLocaleCodeModel` is of type [WcsSessionWithLocaleCodeModel](./definitions/WcsSessionWithLocaleCodeModel.ts) +- `wcsSessionWithLocaleCodeModel` is of type + [WcsSessionWithLocaleCodeModel](./definitions/WcsSessionWithLocaleCodeModel.ts) - `result` is of type [WcsSessionResource](./definitions/WcsSessionResource.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Webinars-and-Sessions-rcwConfigCreateSession) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Webinars-and-Sessions-rcwConfigCreateSession) +in API Explorer. ## rcwConfigGetSession @@ -10517,13 +11695,15 @@ Get Webinar Session ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.webinar().configuration().v1().webinars(webinarId).sessions(sessionId).get(); +var result = await rc.webinar().configuration().v1().webinars(webinarId) + .sessions(sessionId).get(); await rc.revoke(); ``` - `result` is of type [WcsSessionResource](./definitions/WcsSessionResource.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Webinars-and-Sessions-rcwConfigGetSession) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Webinars-and-Sessions-rcwConfigGetSession) +in API Explorer. ## rcwConfigDeleteSession @@ -10540,13 +11720,15 @@ Delete Webinar Session ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.webinar().configuration().v1().webinars(webinarId).sessions(sessionId).delete(); +var result = await rc.webinar().configuration().v1().webinars(webinarId) + .sessions(sessionId).delete(); await rc.revoke(); ``` - `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Webinars-and-Sessions-rcwConfigDeleteSession) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Webinars-and-Sessions-rcwConfigDeleteSession) +in API Explorer. ## rcwConfigUpdateSession @@ -10573,10 +11755,12 @@ var result = await rc await rc.revoke(); ``` -- `wcsSessionWithLocaleCodeModel` is of type [WcsSessionWithLocaleCodeModel](./definitions/WcsSessionWithLocaleCodeModel.ts) +- `wcsSessionWithLocaleCodeModel` is of type + [WcsSessionWithLocaleCodeModel](./definitions/WcsSessionWithLocaleCodeModel.ts) - `result` is of type [WcsSessionResource](./definitions/WcsSessionResource.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Webinars-and-Sessions-rcwConfigUpdateSession) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Webinars-and-Sessions-rcwConfigUpdateSession) +in API Explorer. ## rcwHistoryListInvitees @@ -10604,10 +11788,13 @@ var result = await rc await rc.revoke(); ``` -- `rcwHistoryListInviteesParameters` is of type [RcwHistoryListInviteesParameters](./definitions/RcwHistoryListInviteesParameters.ts) -- `result` is of type [InviteeListResource](./definitions/InviteeListResource.ts) +- `rcwHistoryListInviteesParameters` is of type + [RcwHistoryListInviteesParameters](./definitions/RcwHistoryListInviteesParameters.ts) +- `result` is of type + [InviteeListResource](./definitions/InviteeListResource.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Historical-Webinars-rcwHistoryListInvitees) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Historical-Webinars-rcwHistoryListInvitees) +in API Explorer. ## rcwHistoryGetInvitee @@ -10624,13 +11811,16 @@ Get Session Invitee ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.webinar().history().v1().webinars(webinarId).sessions(sessionId).invitees(inviteeId).get(); +var result = await rc.webinar().history().v1().webinars(webinarId).sessions( + sessionId, +).invitees(inviteeId).get(); await rc.revoke(); ``` - `result` is of type [InviteeModel](./definitions/InviteeModel.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Historical-Webinars-rcwHistoryGetInvitee) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Historical-Webinars-rcwHistoryGetInvitee) +in API Explorer. ## rcwN11sRenewSubscription @@ -10647,13 +11837,16 @@ Renew Webinar Subscription ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.webinar().notifications().v1().subscriptions(subscriptionId).renew().post(); +var result = await rc.webinar().notifications().v1().subscriptions( + subscriptionId, +).renew().post(); await rc.revoke(); ``` - `result` is of type [SubscriptionInfo](./definitions/SubscriptionInfo.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Webinar-Subscriptions-rcwN11sRenewSubscription) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Webinar-Subscriptions-rcwN11sRenewSubscription) +in API Explorer. ## rcwRegListRegistrants @@ -10680,10 +11873,13 @@ var result = await rc await rc.revoke(); ``` -- `rcwRegListRegistrantsParameters` is of type [RcwRegListRegistrantsParameters](./definitions/RcwRegListRegistrantsParameters.ts) -- `result` is of type [RegistrantListResource](./definitions/RegistrantListResource.ts) +- `rcwRegListRegistrantsParameters` is of type + [RcwRegListRegistrantsParameters](./definitions/RcwRegListRegistrantsParameters.ts) +- `result` is of type + [RegistrantListResource](./definitions/RegistrantListResource.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Registrants-rcwRegListRegistrants) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Registrants-rcwRegListRegistrants) +in API Explorer. ## rcwRegCreateRegistrant @@ -10710,10 +11906,13 @@ var result = await rc await rc.revoke(); ``` -- `registrantBaseModelWithQuestionnaire` is of type [RegistrantBaseModelWithQuestionnaire](./definitions/RegistrantBaseModelWithQuestionnaire.ts) -- `result` is of type [RegistrantModelResponsePostWithQuestionnaire](./definitions/RegistrantModelResponsePostWithQuestionnaire.ts) +- `registrantBaseModelWithQuestionnaire` is of type + [RegistrantBaseModelWithQuestionnaire](./definitions/RegistrantBaseModelWithQuestionnaire.ts) +- `result` is of type + [RegistrantModelResponsePostWithQuestionnaire](./definitions/RegistrantModelResponsePostWithQuestionnaire.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Registrants-rcwRegCreateRegistrant) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Registrants-rcwRegCreateRegistrant) +in API Explorer. ## rcwRegGetRegistrant @@ -10740,10 +11939,13 @@ var result = await rc await rc.revoke(); ``` -- `rcwRegGetRegistrantParameters` is of type [RcwRegGetRegistrantParameters](./definitions/RcwRegGetRegistrantParameters.ts) -- `result` is of type [RegistrantModelWithQuestionnaire](./definitions/RegistrantModelWithQuestionnaire.ts) +- `rcwRegGetRegistrantParameters` is of type + [RcwRegGetRegistrantParameters](./definitions/RcwRegGetRegistrantParameters.ts) +- `result` is of type + [RegistrantModelWithQuestionnaire](./definitions/RegistrantModelWithQuestionnaire.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Registrants-rcwRegGetRegistrant) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Registrants-rcwRegGetRegistrant) +in API Explorer. ## rcwRegDeleteRegistrant @@ -10760,13 +11962,15 @@ Delete Registrant ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.webinar().registration().v1().sessions(sessionId).registrants(registrantId).delete(); +var result = await rc.webinar().registration().v1().sessions(sessionId) + .registrants(registrantId).delete(); await rc.revoke(); ``` - `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Registrants-rcwRegDeleteRegistrant) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Registrants-rcwRegDeleteRegistrant) +in API Explorer. ## getRecordingInsights @@ -10796,10 +12000,12 @@ var result = await rc await rc.revoke(); ``` -- `getRecordingInsightsParameters` is of type [GetRecordingInsightsParameters](./definitions/GetRecordingInsightsParameters.ts) +- `getRecordingInsightsParameters` is of type + [GetRecordingInsightsParameters](./definitions/GetRecordingInsightsParameters.ts) - `result` is of type [RecordingInsights](./definitions/RecordingInsights.ts) -[Try it out](https://developer.ringcentral.com/api-reference#RingSense-getRecordingInsights) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#RingSense-getRecordingInsights) +in API Explorer. ## readCallFlipSettings @@ -10816,13 +12022,16 @@ Get Call Flip Settings ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi().v2().accounts(accountId).extensions(extensionId).callFlipNumbers().get(); +var result = await rc.restapi().v2().accounts(accountId).extensions(extensionId) + .callFlipNumbers().get(); await rc.revoke(); ``` -- `result` is of type [CallFlipNumberListResource](./definitions/CallFlipNumberListResource.ts) +- `result` is of type + [CallFlipNumberListResource](./definitions/CallFlipNumberListResource.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Call-Flip-readCallFlipSettings) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Flip-readCallFlipSettings) +in API Explorer. ## updateCallFlipSettings @@ -10849,10 +12058,13 @@ var result = await rc await rc.revoke(); ``` -- `callFlipNumberListResource` is of type [CallFlipNumberListResource](./definitions/CallFlipNumberListResource.ts) -- `result` is of type [CallFlipNumberListResource](./definitions/CallFlipNumberListResource.ts) +- `callFlipNumberListResource` is of type + [CallFlipNumberListResource](./definitions/CallFlipNumberListResource.ts) +- `result` is of type + [CallFlipNumberListResource](./definitions/CallFlipNumberListResource.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Call-Flip-updateCallFlipSettings) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Flip-updateCallFlipSettings) +in API Explorer. ## updateCallMonitoringGroupList @@ -10880,10 +12092,12 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `callMonitoringBulkAssign` is of type [CallMonitoringBulkAssign](./definitions/CallMonitoringBulkAssign.ts) +- `callMonitoringBulkAssign` is of type + [CallMonitoringBulkAssign](./definitions/CallMonitoringBulkAssign.ts) - `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Call-Monitoring-Groups-updateCallMonitoringGroupList) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Monitoring-Groups-updateCallMonitoringGroupList) +in API Explorer. ## listDevicesAutomaticLocationUpdates @@ -10911,10 +12125,13 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `listDevicesAutomaticLocationUpdatesParameters` is of type [ListDevicesAutomaticLocationUpdatesParameters](./definitions/ListDevicesAutomaticLocationUpdatesParameters.ts) -- `result` is of type [ListDevicesAutomaticLocationUpdates](./definitions/ListDevicesAutomaticLocationUpdates.ts) +- `listDevicesAutomaticLocationUpdatesParameters` is of type + [ListDevicesAutomaticLocationUpdatesParameters](./definitions/ListDevicesAutomaticLocationUpdatesParameters.ts) +- `result` is of type + [ListDevicesAutomaticLocationUpdates](./definitions/ListDevicesAutomaticLocationUpdates.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-listDevicesAutomaticLocationUpdates) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-listDevicesAutomaticLocationUpdates) +in API Explorer. ## assignMultipleDevicesAutomaticLocationUpdates @@ -10943,10 +12160,12 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `assignMultipleDevicesAutomaticLocationUpdates` is of type [AssignMultipleDevicesAutomaticLocationUpdates](./definitions/AssignMultipleDevicesAutomaticLocationUpdates.ts) +- `assignMultipleDevicesAutomaticLocationUpdates` is of type + [AssignMultipleDevicesAutomaticLocationUpdates](./definitions/AssignMultipleDevicesAutomaticLocationUpdates.ts) - `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-assignMultipleDevicesAutomaticLocationUpdates) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-assignMultipleDevicesAutomaticLocationUpdates) +in API Explorer. ## listNetworks @@ -10974,10 +12193,12 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `listNetworksParameters` is of type [ListNetworksParameters](./definitions/ListNetworksParameters.ts) +- `listNetworksParameters` is of type + [ListNetworksParameters](./definitions/ListNetworksParameters.ts) - `result` is of type [NetworksList](./definitions/NetworksList.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-listNetworks) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-listNetworks) +in API Explorer. ## createNetwork @@ -11005,10 +12226,12 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `createNetworkRequest` is of type [CreateNetworkRequest](./definitions/CreateNetworkRequest.ts) +- `createNetworkRequest` is of type + [CreateNetworkRequest](./definitions/CreateNetworkRequest.ts) - `result` is of type [NetworkInfo](./definitions/NetworkInfo.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-createNetwork) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-createNetwork) +in API Explorer. ## readNetwork @@ -11025,7 +12248,8 @@ Get Network ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).emergencyAddressAutoUpdate().networks(networkId).get(); +var result = await rc.restapi(apiVersion).account(accountId) + .emergencyAddressAutoUpdate().networks(networkId).get(); await rc.revoke(); ``` @@ -11033,7 +12257,8 @@ await rc.revoke(); - Parameter `accountId` is optional with default value `~` - `result` is of type [NetworkInfo](./definitions/NetworkInfo.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-readNetwork) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-readNetwork) +in API Explorer. ## updateNetwork @@ -11061,10 +12286,12 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `updateNetworkRequest` is of type [UpdateNetworkRequest](./definitions/UpdateNetworkRequest.ts) +- `updateNetworkRequest` is of type + [UpdateNetworkRequest](./definitions/UpdateNetworkRequest.ts) - `result` is of type [NetworkInfo](./definitions/NetworkInfo.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-updateNetwork) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-updateNetwork) +in API Explorer. ## deleteNetwork @@ -11081,7 +12308,8 @@ Delete Network ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).emergencyAddressAutoUpdate().networks(networkId).delete(); +var result = await rc.restapi(apiVersion).account(accountId) + .emergencyAddressAutoUpdate().networks(networkId).delete(); await rc.revoke(); ``` @@ -11089,7 +12317,8 @@ await rc.revoke(); - Parameter `accountId` is optional with default value `~` - `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-deleteNetwork) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-deleteNetwork) +in API Explorer. ## listAccountSwitches @@ -11117,10 +12346,12 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `listAccountSwitchesParameters` is of type [ListAccountSwitchesParameters](./definitions/ListAccountSwitchesParameters.ts) +- `listAccountSwitchesParameters` is of type + [ListAccountSwitchesParameters](./definitions/ListAccountSwitchesParameters.ts) - `result` is of type [SwitchesList](./definitions/SwitchesList.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-listAccountSwitches) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-listAccountSwitches) +in API Explorer. ## createSwitch @@ -11148,10 +12379,12 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `createSwitchInfo` is of type [CreateSwitchInfo](./definitions/CreateSwitchInfo.ts) +- `createSwitchInfo` is of type + [CreateSwitchInfo](./definitions/CreateSwitchInfo.ts) - `result` is of type [SwitchInfo](./definitions/SwitchInfo.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-createSwitch) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-createSwitch) +in API Explorer. ## readSwitch @@ -11168,7 +12401,8 @@ Get Switch ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).emergencyAddressAutoUpdate().switches(switchId).get(); +var result = await rc.restapi(apiVersion).account(accountId) + .emergencyAddressAutoUpdate().switches(switchId).get(); await rc.revoke(); ``` @@ -11176,7 +12410,8 @@ await rc.revoke(); - Parameter `accountId` is optional with default value `~` - `result` is of type [SwitchInfo](./definitions/SwitchInfo.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-readSwitch) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-readSwitch) +in API Explorer. ## updateSwitch @@ -11204,10 +12439,12 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `updateSwitchInfo` is of type [UpdateSwitchInfo](./definitions/UpdateSwitchInfo.ts) +- `updateSwitchInfo` is of type + [UpdateSwitchInfo](./definitions/UpdateSwitchInfo.ts) - `result` is of type [SwitchInfo](./definitions/SwitchInfo.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-updateSwitch) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-updateSwitch) +in API Explorer. ## deleteSwitch @@ -11224,7 +12461,8 @@ Delete Switch ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).emergencyAddressAutoUpdate().switches(switchId).delete(); +var result = await rc.restapi(apiVersion).account(accountId) + .emergencyAddressAutoUpdate().switches(switchId).delete(); await rc.revoke(); ``` @@ -11232,7 +12470,8 @@ await rc.revoke(); - Parameter `accountId` is optional with default value `~` - `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-deleteSwitch) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-deleteSwitch) +in API Explorer. ## createMultipleSwitches @@ -11260,10 +12499,13 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `createMultipleSwitchesRequest` is of type [CreateMultipleSwitchesRequest](./definitions/CreateMultipleSwitchesRequest.ts) -- `result` is of type [CreateMultipleSwitchesResponse](./definitions/CreateMultipleSwitchesResponse.ts) +- `createMultipleSwitchesRequest` is of type + [CreateMultipleSwitchesRequest](./definitions/CreateMultipleSwitchesRequest.ts) +- `result` is of type + [CreateMultipleSwitchesResponse](./definitions/CreateMultipleSwitchesResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-createMultipleSwitches) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-createMultipleSwitches) +in API Explorer. ## updateMultipleSwitches @@ -11291,10 +12533,13 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `updateMultipleSwitchesRequest` is of type [UpdateMultipleSwitchesRequest](./definitions/UpdateMultipleSwitchesRequest.ts) -- `result` is of type [UpdateMultipleSwitchesResponse](./definitions/UpdateMultipleSwitchesResponse.ts) +- `updateMultipleSwitchesRequest` is of type + [UpdateMultipleSwitchesRequest](./definitions/UpdateMultipleSwitchesRequest.ts) +- `result` is of type + [UpdateMultipleSwitchesResponse](./definitions/UpdateMultipleSwitchesResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-updateMultipleSwitches) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-updateMultipleSwitches) +in API Explorer. ## validateMultipleSwitches @@ -11322,10 +12567,13 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `validateMultipleSwitchesRequest` is of type [ValidateMultipleSwitchesRequest](./definitions/ValidateMultipleSwitchesRequest.ts) -- `result` is of type [ValidateMultipleSwitchesResponse](./definitions/ValidateMultipleSwitchesResponse.ts) +- `validateMultipleSwitchesRequest` is of type + [ValidateMultipleSwitchesRequest](./definitions/ValidateMultipleSwitchesRequest.ts) +- `result` is of type + [ValidateMultipleSwitchesResponse](./definitions/ValidateMultipleSwitchesResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-validateMultipleSwitches) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-validateMultipleSwitches) +in API Explorer. ## readAutomaticLocationUpdatesTask @@ -11342,15 +12590,18 @@ Get Emergency Map Configuration Task ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).emergencyAddressAutoUpdate().tasks(taskId).get(); +var result = await rc.restapi(apiVersion).account(accountId) + .emergencyAddressAutoUpdate().tasks(taskId).get(); await rc.revoke(); ``` - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `result` is of type [AutomaticLocationUpdatesTaskInfo](./definitions/AutomaticLocationUpdatesTaskInfo.ts) +- `result` is of type + [AutomaticLocationUpdatesTaskInfo](./definitions/AutomaticLocationUpdatesTaskInfo.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-readAutomaticLocationUpdatesTask) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-readAutomaticLocationUpdatesTask) +in API Explorer. ## listAutomaticLocationUpdatesUsers @@ -11378,10 +12629,13 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `listAutomaticLocationUpdatesUsersParameters` is of type [ListAutomaticLocationUpdatesUsersParameters](./definitions/ListAutomaticLocationUpdatesUsersParameters.ts) -- `result` is of type [AutomaticLocationUpdatesUserList](./definitions/AutomaticLocationUpdatesUserList.ts) +- `listAutomaticLocationUpdatesUsersParameters` is of type + [ListAutomaticLocationUpdatesUsersParameters](./definitions/ListAutomaticLocationUpdatesUsersParameters.ts) +- `result` is of type + [AutomaticLocationUpdatesUserList](./definitions/AutomaticLocationUpdatesUserList.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-listAutomaticLocationUpdatesUsers) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-listAutomaticLocationUpdatesUsers) +in API Explorer. ## assignMultipleAutomaticLocationUpdatesUsers @@ -11410,10 +12664,12 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `emergencyAddressAutoUpdateUsersBulkAssignResource` is of type [EmergencyAddressAutoUpdateUsersBulkAssignResource](./definitions/EmergencyAddressAutoUpdateUsersBulkAssignResource.ts) +- `emergencyAddressAutoUpdateUsersBulkAssignResource` is of type + [EmergencyAddressAutoUpdateUsersBulkAssignResource](./definitions/EmergencyAddressAutoUpdateUsersBulkAssignResource.ts) - `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-assignMultipleAutomaticLocationUpdatesUsers) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-assignMultipleAutomaticLocationUpdatesUsers) +in API Explorer. ## listWirelessPoints @@ -11441,10 +12697,12 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `listWirelessPointsParameters` is of type [ListWirelessPointsParameters](./definitions/ListWirelessPointsParameters.ts) +- `listWirelessPointsParameters` is of type + [ListWirelessPointsParameters](./definitions/ListWirelessPointsParameters.ts) - `result` is of type [WirelessPointsList](./definitions/WirelessPointsList.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-listWirelessPoints) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-listWirelessPoints) +in API Explorer. ## createWirelessPoint @@ -11472,10 +12730,12 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `createWirelessPoint` is of type [CreateWirelessPoint](./definitions/CreateWirelessPoint.ts) +- `createWirelessPoint` is of type + [CreateWirelessPoint](./definitions/CreateWirelessPoint.ts) - `result` is of type [WirelessPointInfo](./definitions/WirelessPointInfo.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-createWirelessPoint) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-createWirelessPoint) +in API Explorer. ## readWirelessPoint @@ -11492,7 +12752,8 @@ Get Wireless Point ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.restapi(apiVersion).account(accountId).emergencyAddressAutoUpdate().wirelessPoints(pointId).get(); +var result = await rc.restapi(apiVersion).account(accountId) + .emergencyAddressAutoUpdate().wirelessPoints(pointId).get(); await rc.revoke(); ``` @@ -11500,7 +12761,8 @@ await rc.revoke(); - Parameter `accountId` is optional with default value `~` - `result` is of type [WirelessPointInfo](./definitions/WirelessPointInfo.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-readWirelessPoint) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-readWirelessPoint) +in API Explorer. ## updateWirelessPoint @@ -11528,10 +12790,12 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `updateWirelessPoint` is of type [UpdateWirelessPoint](./definitions/UpdateWirelessPoint.ts) +- `updateWirelessPoint` is of type + [UpdateWirelessPoint](./definitions/UpdateWirelessPoint.ts) - `result` is of type [WirelessPointInfo](./definitions/WirelessPointInfo.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-updateWirelessPoint) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-updateWirelessPoint) +in API Explorer. ## deleteWirelessPoint @@ -11561,7 +12825,8 @@ await rc.revoke(); - Parameter `accountId` is optional with default value `~` - `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-deleteWirelessPoint) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-deleteWirelessPoint) +in API Explorer. ## createMultipleWirelessPoints @@ -11589,10 +12854,13 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `createMultipleWirelessPointsRequest` is of type [CreateMultipleWirelessPointsRequest](./definitions/CreateMultipleWirelessPointsRequest.ts) -- `result` is of type [CreateMultipleWirelessPointsResponse](./definitions/CreateMultipleWirelessPointsResponse.ts) +- `createMultipleWirelessPointsRequest` is of type + [CreateMultipleWirelessPointsRequest](./definitions/CreateMultipleWirelessPointsRequest.ts) +- `result` is of type + [CreateMultipleWirelessPointsResponse](./definitions/CreateMultipleWirelessPointsResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-createMultipleWirelessPoints) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-createMultipleWirelessPoints) +in API Explorer. ## updateMultipleWirelessPoints @@ -11620,10 +12888,13 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `updateMultipleWirelessPointsRequest` is of type [UpdateMultipleWirelessPointsRequest](./definitions/UpdateMultipleWirelessPointsRequest.ts) -- `result` is of type [UpdateMultipleWirelessPointsResponse](./definitions/UpdateMultipleWirelessPointsResponse.ts) +- `updateMultipleWirelessPointsRequest` is of type + [UpdateMultipleWirelessPointsRequest](./definitions/UpdateMultipleWirelessPointsRequest.ts) +- `result` is of type + [UpdateMultipleWirelessPointsResponse](./definitions/UpdateMultipleWirelessPointsResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-updateMultipleWirelessPoints) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-updateMultipleWirelessPoints) +in API Explorer. ## validateMultipleWirelessPoints @@ -11651,10 +12922,13 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `validateMultipleWirelessPointsRequest` is of type [ValidateMultipleWirelessPointsRequest](./definitions/ValidateMultipleWirelessPointsRequest.ts) -- `result` is of type [ValidateMultipleWirelessPointsResponse](./definitions/ValidateMultipleWirelessPointsResponse.ts) +- `validateMultipleWirelessPointsRequest` is of type + [ValidateMultipleWirelessPointsRequest](./definitions/ValidateMultipleWirelessPointsRequest.ts) +- `result` is of type + [ValidateMultipleWirelessPointsResponse](./definitions/ValidateMultipleWirelessPointsResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-validateMultipleWirelessPoints) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Automatic-Location-Updates-validateMultipleWirelessPoints) +in API Explorer. ## listBlockedAllowedNumbers @@ -11684,10 +12958,13 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `listBlockedAllowedNumbersParameters` is of type [ListBlockedAllowedNumbersParameters](./definitions/ListBlockedAllowedNumbersParameters.ts) -- `result` is of type [BlockedAllowedPhoneNumbersList](./definitions/BlockedAllowedPhoneNumbersList.ts) +- `listBlockedAllowedNumbersParameters` is of type + [ListBlockedAllowedNumbersParameters](./definitions/ListBlockedAllowedNumbersParameters.ts) +- `result` is of type + [BlockedAllowedPhoneNumbersList](./definitions/BlockedAllowedPhoneNumbersList.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Call-Blocking-listBlockedAllowedNumbers) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Blocking-listBlockedAllowedNumbers) +in API Explorer. ## createBlockedAllowedNumber @@ -11717,10 +12994,13 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `addBlockedAllowedPhoneNumber` is of type [AddBlockedAllowedPhoneNumber](./definitions/AddBlockedAllowedPhoneNumber.ts) -- `result` is of type [BlockedAllowedPhoneNumberInfo](./definitions/BlockedAllowedPhoneNumberInfo.ts) +- `addBlockedAllowedPhoneNumber` is of type + [AddBlockedAllowedPhoneNumber](./definitions/AddBlockedAllowedPhoneNumber.ts) +- `result` is of type + [BlockedAllowedPhoneNumberInfo](./definitions/BlockedAllowedPhoneNumberInfo.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Call-Blocking-createBlockedAllowedNumber) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Blocking-createBlockedAllowedNumber) +in API Explorer. ## readBlockedAllowedNumber @@ -11750,9 +13030,11 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `result` is of type [BlockedAllowedPhoneNumberInfo](./definitions/BlockedAllowedPhoneNumberInfo.ts) +- `result` is of type + [BlockedAllowedPhoneNumberInfo](./definitions/BlockedAllowedPhoneNumberInfo.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Call-Blocking-readBlockedAllowedNumber) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Blocking-readBlockedAllowedNumber) +in API Explorer. ## updateBlockedAllowedNumber @@ -11782,10 +13064,13 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `addBlockedAllowedPhoneNumber` is of type [AddBlockedAllowedPhoneNumber](./definitions/AddBlockedAllowedPhoneNumber.ts) -- `result` is of type [BlockedAllowedPhoneNumberInfo](./definitions/BlockedAllowedPhoneNumberInfo.ts) +- `addBlockedAllowedPhoneNumber` is of type + [AddBlockedAllowedPhoneNumber](./definitions/AddBlockedAllowedPhoneNumber.ts) +- `result` is of type + [BlockedAllowedPhoneNumberInfo](./definitions/BlockedAllowedPhoneNumberInfo.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Call-Blocking-updateBlockedAllowedNumber) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Blocking-updateBlockedAllowedNumber) +in API Explorer. ## deleteBlockedAllowedNumber @@ -11817,7 +13102,8 @@ await rc.revoke(); - Parameter `extensionId` is optional with default value `~` - `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Call-Blocking-deleteBlockedAllowedNumber) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Blocking-deleteBlockedAllowedNumber) +in API Explorer. ## listUserMessageTemplates @@ -11846,10 +13132,13 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `listUserMessageTemplatesParameters` is of type [ListUserMessageTemplatesParameters](./definitions/ListUserMessageTemplatesParameters.ts) -- `result` is of type [MessageTemplatesListResponse](./definitions/MessageTemplatesListResponse.ts) +- `listUserMessageTemplatesParameters` is of type + [ListUserMessageTemplatesParameters](./definitions/ListUserMessageTemplatesParameters.ts) +- `result` is of type + [MessageTemplatesListResponse](./definitions/MessageTemplatesListResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#SMS-Templates-listUserMessageTemplates) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#SMS-Templates-listUserMessageTemplates) +in API Explorer. ## createUserMessageTemplate @@ -11878,10 +13167,13 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `messageTemplateRequest` is of type [MessageTemplateRequest](./definitions/MessageTemplateRequest.ts) -- `result` is of type [MessageTemplateResponse](./definitions/MessageTemplateResponse.ts) +- `messageTemplateRequest` is of type + [MessageTemplateRequest](./definitions/MessageTemplateRequest.ts) +- `result` is of type + [MessageTemplateResponse](./definitions/MessageTemplateResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#SMS-Templates-createUserMessageTemplate) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#SMS-Templates-createUserMessageTemplate) +in API Explorer. ## readUserMessageTemplate @@ -11910,9 +13202,11 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `result` is of type [MessageTemplateResponse](./definitions/MessageTemplateResponse.ts) +- `result` is of type + [MessageTemplateResponse](./definitions/MessageTemplateResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#SMS-Templates-readUserMessageTemplate) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#SMS-Templates-readUserMessageTemplate) +in API Explorer. ## updateUserMessageTemplate @@ -11941,10 +13235,13 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - Parameter `extensionId` is optional with default value `~` -- `messageTemplateUpdateRequest` is of type [MessageTemplateUpdateRequest](./definitions/MessageTemplateUpdateRequest.ts) -- `result` is of type [MessageTemplateResponse](./definitions/MessageTemplateResponse.ts) +- `messageTemplateUpdateRequest` is of type + [MessageTemplateUpdateRequest](./definitions/MessageTemplateUpdateRequest.ts) +- `result` is of type + [MessageTemplateResponse](./definitions/MessageTemplateResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#SMS-Templates-updateUserMessageTemplate) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#SMS-Templates-updateUserMessageTemplate) +in API Explorer. ## deleteUserMessageTemplate @@ -11975,7 +13272,8 @@ await rc.revoke(); - Parameter `extensionId` is optional with default value `~` - `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#SMS-Templates-deleteUserMessageTemplate) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#SMS-Templates-deleteUserMessageTemplate) +in API Explorer. ## readMultichannelCallRecordingContent @@ -12005,10 +13303,12 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `readMultichannelCallRecordingContentParameters` is of type [ReadMultichannelCallRecordingContentParameters](./definitions/ReadMultichannelCallRecordingContentParameters.ts) +- `readMultichannelCallRecordingContentParameters` is of type + [ReadMultichannelCallRecordingContentParameters](./definitions/ReadMultichannelCallRecordingContentParameters.ts) - `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Telephony-Metadata-readMultichannelCallRecordingContent) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Telephony-Metadata-readMultichannelCallRecordingContent) +in API Explorer. ## createCallPartyWithBringIn @@ -12038,10 +13338,12 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `addPartyRequest` is of type [AddPartyRequest](./definitions/AddPartyRequest.ts) +- `addPartyRequest` is of type + [AddPartyRequest](./definitions/AddPartyRequest.ts) - `result` is of type [CallParty](./definitions/CallParty.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Call-Control-createCallPartyWithBringIn) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Control-createCallPartyWithBringIn) +in API Explorer. ## answerCallParty @@ -12074,7 +13376,8 @@ await rc.revoke(); - `answerTarget` is of type [AnswerTarget](./definitions/AnswerTarget.ts) - `result` is of type [CallParty](./definitions/CallParty.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Call-Control-answerCallParty) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Control-answerCallParty) +in API Explorer. ## bridgeCallParty @@ -12104,10 +13407,12 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `bridgeTargetRequest` is of type [BridgeTargetRequest](./definitions/BridgeTargetRequest.ts) +- `bridgeTargetRequest` is of type + [BridgeTargetRequest](./definitions/BridgeTargetRequest.ts) - `result` is of type [CallParty](./definitions/CallParty.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Call-Control-bridgeCallParty) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Control-bridgeCallParty) +in API Explorer. ## forwardCallParty @@ -12138,9 +13443,11 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` - `forwardTarget` is of type [ForwardTarget](./definitions/ForwardTarget.ts) -- `result` is of type [ForwardCallPartyResponse](./definitions/ForwardCallPartyResponse.ts) +- `result` is of type + [ForwardCallPartyResponse](./definitions/ForwardCallPartyResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Call-Control-forwardCallParty) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Control-forwardCallParty) +in API Explorer. ## ignoreCallInQueue @@ -12170,10 +13477,12 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `ignoreRequestBody` is of type [IgnoreRequestBody](./definitions/IgnoreRequestBody.ts) +- `ignoreRequestBody` is of type + [IgnoreRequestBody](./definitions/IgnoreRequestBody.ts) - `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Call-Control-ignoreCallInQueue) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Control-ignoreCallInQueue) +in API Explorer. ## pickupCallParty @@ -12206,7 +13515,8 @@ await rc.revoke(); - `pickupTarget` is of type [PickupTarget](./definitions/PickupTarget.ts) - `result` is of type [CallParty](./definitions/CallParty.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Call-Control-pickupCallParty) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Control-pickupCallParty) +in API Explorer. ## startCallRecording @@ -12238,7 +13548,8 @@ await rc.revoke(); - Parameter `accountId` is optional with default value `~` - `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Call-Control-startCallRecording) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Control-startCallRecording) +in API Explorer. ## pauseResumeCallRecording @@ -12268,11 +13579,14 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `callRecordingUpdate` is of type [CallRecordingUpdate](./definitions/CallRecordingUpdate.ts) -- `pauseResumeCallRecordingParameters` is of type [PauseResumeCallRecordingParameters](./definitions/PauseResumeCallRecordingParameters.ts) +- `callRecordingUpdate` is of type + [CallRecordingUpdate](./definitions/CallRecordingUpdate.ts) +- `pauseResumeCallRecordingParameters` is of type + [PauseResumeCallRecordingParameters](./definitions/PauseResumeCallRecordingParameters.ts) - `result` is of type [CallRecording](./definitions/CallRecording.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Call-Control-pauseResumeCallRecording) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Control-pauseResumeCallRecording) +in API Explorer. ## rejectParty @@ -12304,7 +13618,8 @@ await rc.revoke(); - Parameter `accountId` is optional with default value `~` - `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Call-Control-rejectParty) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Control-rejectParty) +in API Explorer. ## replyParty @@ -12337,7 +13652,8 @@ await rc.revoke(); - `callPartyReply` is of type [CallPartyReply](./definitions/CallPartyReply.ts) - `result` is of type [ReplyParty](./definitions/ReplyParty.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Call-Control-replyParty) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Control-replyParty) +in API Explorer. ## superviseCallParty @@ -12367,10 +13683,13 @@ await rc.revoke(); - Parameter `apiVersion` is optional with default value `v1.0` - Parameter `accountId` is optional with default value `~` -- `partySuperviseRequest` is of type [PartySuperviseRequest](./definitions/PartySuperviseRequest.ts) -- `result` is of type [PartySuperviseResponse](./definitions/PartySuperviseResponse.ts) +- `partySuperviseRequest` is of type + [PartySuperviseRequest](./definitions/PartySuperviseRequest.ts) +- `result` is of type + [PartySuperviseResponse](./definitions/PartySuperviseResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Call-Control-superviseCallParty) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Control-superviseCallParty) +in API Explorer. ## transferCallParty @@ -12403,7 +13722,8 @@ await rc.revoke(); - `transferTarget` is of type [TransferTarget](./definitions/TransferTarget.ts) - `result` is of type [CallParty](./definitions/CallParty.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Call-Control-transferCallParty) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Control-transferCallParty) +in API Explorer. ## unholdCallParty @@ -12435,7 +13755,8 @@ await rc.revoke(); - Parameter `accountId` is optional with default value `~` - `result` is of type [CallParty](./definitions/CallParty.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Call-Control-unholdCallParty) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Call-Control-unholdCallParty) +in API Explorer. ## rcwConfigListInvitees @@ -12463,10 +13784,13 @@ var result = await rc await rc.revoke(); ``` -- `rcwConfigListInviteesParameters` is of type [RcwConfigListInviteesParameters](./definitions/RcwConfigListInviteesParameters.ts) -- `result` is of type [WcsInviteeListResource](./definitions/WcsInviteeListResource.ts) +- `rcwConfigListInviteesParameters` is of type + [RcwConfigListInviteesParameters](./definitions/RcwConfigListInviteesParameters.ts) +- `result` is of type + [WcsInviteeListResource](./definitions/WcsInviteeListResource.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Invitees-rcwConfigListInvitees) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Invitees-rcwConfigListInvitees) +in API Explorer. ## rcwConfigUpdateInvitees @@ -12494,10 +13818,13 @@ var result = await rc await rc.revoke(); ``` -- `bulkUpdateInviteesRequest` is of type [BulkUpdateInviteesRequest](./definitions/BulkUpdateInviteesRequest.ts) -- `result` is of type [BulkUpdateInviteesResponse](./definitions/BulkUpdateInviteesResponse.ts) +- `bulkUpdateInviteesRequest` is of type + [BulkUpdateInviteesRequest](./definitions/BulkUpdateInviteesRequest.ts) +- `result` is of type + [BulkUpdateInviteesResponse](./definitions/BulkUpdateInviteesResponse.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Invitees-rcwConfigUpdateInvitees) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Invitees-rcwConfigUpdateInvitees) +in API Explorer. ## rcwConfigGetInvitee @@ -12514,13 +13841,15 @@ Get Session Invitee ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.webinar().configuration().v1().webinars(webinarId).sessions(sessionId).invitees(inviteeId).get(); +var result = await rc.webinar().configuration().v1().webinars(webinarId) + .sessions(sessionId).invitees(inviteeId).get(); await rc.revoke(); ``` - `result` is of type [InviteeResource](./definitions/InviteeResource.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Invitees-rcwConfigGetInvitee) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Invitees-rcwConfigGetInvitee) +in API Explorer. ## rcwConfigUpdateInvitee @@ -12548,10 +13877,12 @@ var result = await rc await rc.revoke(); ``` -- `updateInviteeRequest` is of type [UpdateInviteeRequest](./definitions/UpdateInviteeRequest.ts) +- `updateInviteeRequest` is of type + [UpdateInviteeRequest](./definitions/UpdateInviteeRequest.ts) - `result` is of type [InviteeResource](./definitions/InviteeResource.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Invitees-rcwConfigUpdateInvitee) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Invitees-rcwConfigUpdateInvitee) +in API Explorer. ## rcwConfigDeleteInvitee @@ -12581,7 +13912,8 @@ await rc.revoke(); - `result` is an empty string -[Try it out](https://developer.ringcentral.com/api-reference#Invitees-rcwConfigDeleteInvitee) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Invitees-rcwConfigDeleteInvitee) +in API Explorer. ## rcwHistoryListParticipants @@ -12609,10 +13941,13 @@ var result = await rc await rc.revoke(); ``` -- `rcwHistoryListParticipantsParameters` is of type [RcwHistoryListParticipantsParameters](./definitions/RcwHistoryListParticipantsParameters.ts) -- `result` is of type [ParticipantListResource](./definitions/ParticipantListResource.ts) +- `rcwHistoryListParticipantsParameters` is of type + [RcwHistoryListParticipantsParameters](./definitions/RcwHistoryListParticipantsParameters.ts) +- `result` is of type + [ParticipantListResource](./definitions/ParticipantListResource.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Historical-Webinars-rcwHistoryListParticipants) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Historical-Webinars-rcwHistoryListParticipants) +in API Explorer. ## rcwHistoryGetParticipantInfo @@ -12629,10 +13964,14 @@ Get Participant Information ```ts const rc = new RingCentral({ clientId, clientSecret, server }); await rc.authorize({ jwt }); -var result = await rc.webinar().history().v1().webinars(webinarId).sessions(sessionId).participants().self().get(); +var result = await rc.webinar().history().v1().webinars(webinarId).sessions( + sessionId, +).participants().self().get(); await rc.revoke(); ``` -- `result` is of type [ParticipantReducedModel](./definitions/ParticipantReducedModel.ts) +- `result` is of type + [ParticipantReducedModel](./definitions/ParticipantReducedModel.ts) -[Try it out](https://developer.ringcentral.com/api-reference#Historical-Webinars-rcwHistoryGetParticipantInfo) in API Explorer. +[Try it out](https://developer.ringcentral.com/api-reference#Historical-Webinars-rcwHistoryGetParticipantInfo) +in API Explorer. diff --git a/packages/core/src/types.ts b/packages/core/src/types.ts index 9e9b9bf2..2d936c4b 100644 --- a/packages/core/src/types.ts +++ b/packages/core/src/types.ts @@ -1,16 +1,40 @@ -import type { AxiosRequestConfig, AxiosResponse, Method } from 'axios'; -import type TokenInfo from './definitions/TokenInfo'; +import type { AxiosRequestConfig, AxiosResponse, Method } from "axios"; +import type TokenInfo from "./definitions/TokenInfo"; export interface RingCentralInterface { - get: (endpoint: string, queryParams?: {}, config?: RestRequestConfig) => Promise>; + get: ( + endpoint: string, + queryParams?: {}, + config?: RestRequestConfig, + ) => Promise>; - delete: (endpoint: string, content?: {}, queryParams?: {}, config?: RestRequestConfig) => Promise>; + delete: ( + endpoint: string, + content?: {}, + queryParams?: {}, + config?: RestRequestConfig, + ) => Promise>; - post: (endpoint: string, content?: {}, queryParams?: {}, config?: RestRequestConfig) => Promise>; + post: ( + endpoint: string, + content?: {}, + queryParams?: {}, + config?: RestRequestConfig, + ) => Promise>; - put: (endpoint: string, content?: {}, queryParams?: {}, config?: RestRequestConfig) => Promise>; + put: ( + endpoint: string, + content?: {}, + queryParams?: {}, + config?: RestRequestConfig, + ) => Promise>; - patch: (endpoint: string, content: {}, queryParams?: {}, config?: RestRequestConfig) => Promise>; + patch: ( + endpoint: string, + content: {}, + queryParams?: {}, + config?: RestRequestConfig, + ) => Promise>; } export interface ParentInterface { diff --git a/packages/extensions/README.md b/packages/extensions/README.md index a75cb637..942834c6 100644 --- a/packages/extensions/README.md +++ b/packages/extensions/README.md @@ -1,12 +1,14 @@ # Extensions -This folder contains features which are not considered to be the core of the SDK. +This folder contains features which are not considered to be the core of the +SDK. We provide them as extensions so you can install them on demand. ## Usage -Here we provide general usage guidance for extensions. You need to read each extension's README page in case there are special instructions. +Here we provide general usage guidance for extensions. You need to read each +extension's README page in case there are special instructions. Let's say an extension's name is `AbcExtension`: @@ -21,21 +23,25 @@ await rc.installExtension(abcExtension); ## Enable & Disable -By default, an extension is enabled after installation. You can disable it by `abcExtension.disable();`. +By default, an extension is enabled after installation. You can disable it by +`abcExtension.disable();`. You can re-enabled it by `abcExtension.enable();`. ## [Debug Extension](./debug) -Debug extension prints details about API traffic so you can inspect the request and response data. +Debug extension prints details about API traffic so you can inspect the request +and response data. ## [Retry Extension](./retry) -Retry Extension auto retries API calls based on specified condition and interval. +Retry Extension auto retries API calls based on specified condition and +interval. ## [Rate Limit Extension](./rate-limit) -Rate limit extension handles rate limit automatically by delaying and retrying API calls. +Rate limit extension handles rate limit automatically by delaying and retrying +API calls. ## [Events Extension](./events) @@ -43,7 +49,9 @@ Events Extension emits API call related events. ## [RingCentral SDK Extension](./rcsdk) -RingCentral Extension makes [@ringcentral/sdk](https://www.npmjs.com/package/@ringcentral/sdk) the HTTP engine. +RingCentral Extension makes +[@ringcentral/sdk](https://www.npmjs.com/package/@ringcentral/sdk) the HTTP +engine. ## [WebSocket Extension](./ws) @@ -55,4 +63,5 @@ Authorize URI Extension provides utility methods to easily build URIs for OAuth. ## [Auto Refresh Extension](./auto-refresh) -Auto Refresh Extension automatically refreshes token every 30 minutes (configurable). +Auto Refresh Extension automatically refreshes token every 30 minutes +(configurable). diff --git a/packages/extensions/authorize-uri/README.md b/packages/extensions/authorize-uri/README.md index 02d615f2..7eb9ac8d 100644 --- a/packages/extensions/authorize-uri/README.md +++ b/packages/extensions/authorize-uri/README.md @@ -23,21 +23,24 @@ const authorizeUri = authorizeUriExtension.buildUri({ }); ``` -For a working sample, please check this [test case](../../../test/authorize-uri-extension.spec.ts). +For a working sample, please check this +[test case](../../../test/authorize-uri-extension.spec.ts). ## PKCE -Ref: https://medium.com/ringcentral-developers/use-authorization-code-pkce-for-ringcentral-api-in-client-app-e9108f04b5f0 +Ref: +https://medium.com/ringcentral-developers/use-authorization-code-pkce-for-ringcentral-api-in-client-app-e9108f04b5f0 -First and foremost, you should not specify client secret in your project, that's the whole point of PKCE. +First and foremost, you should not specify client secret in your project, that's +the whole point of PKCE. Secondly, specify `code_challenge_method: 'S256'`: ```ts const authorizeUri = authorizeUriExtension.buildUri({ - state: 'hello', - redirect_uri: 'https://example.com', - code_challenge_method: 'S256', + state: "hello", + redirect_uri: "https://example.com", + code_challenge_method: "S256", }); ``` @@ -53,8 +56,8 @@ And when you make the authorize API call, remember to specify `code_verifier`: ```ts await rc.authorize({ - code: '...', - redirect_uri: '...', + code: "...", + redirect_uri: "...", code_verifier: codeVerifier, }); ``` @@ -66,5 +69,6 @@ await rc.authorize({ ## Base Authorization URI -Optionally, you can specify `baseAuthorizationUri` as parameter to the constructor of this extension. -If it's not specified, `${rc.rest.server}/restapi/oauth/authorize` is used as `baseAuthorizationUri`. +Optionally, you can specify `baseAuthorizationUri` as parameter to the +constructor of this extension. If it's not specified, +`${rc.rest.server}/restapi/oauth/authorize` is used as `baseAuthorizationUri`. diff --git a/packages/extensions/authorize-uri/src/index.ts b/packages/extensions/authorize-uri/src/index.ts index 185f9df0..33bd3f6c 100644 --- a/packages/extensions/authorize-uri/src/index.ts +++ b/packages/extensions/authorize-uri/src/index.ts @@ -1,9 +1,9 @@ -import type RingCentral from '@rc-ex/core'; -import SdkExtension from '@rc-ex/core/lib/SdkExtension'; -import type AuthorizeRequest from '@rc-ex/core/lib/definitions/AuthorizeRequest'; -import type { QueryDataMap } from 'urijs'; -import URI from 'urijs'; -import { createHash, randomBytes } from 'crypto'; +import type RingCentral from "@rc-ex/core"; +import SdkExtension from "@rc-ex/core/lib/SdkExtension"; +import type AuthorizeRequest from "@rc-ex/core/lib/definitions/AuthorizeRequest"; +import type { QueryDataMap } from "urijs"; +import URI from "urijs"; +import { createHash, randomBytes } from "crypto"; export interface AuthorizeUriOptions { baseUri?: string; @@ -28,29 +28,30 @@ class AuthorizeUriExtension extends SdkExtension { public buildUri(_authorizeRequest: AuthorizeRequest): string { const authorizeRequest = _authorizeRequest; if (!authorizeRequest.response_type) { - authorizeRequest.response_type = 'code'; + authorizeRequest.response_type = "code"; } if (!authorizeRequest.client_id) { authorizeRequest.client_id = this.rc.rest.clientId; } // PKCE: https://medium.com/ringcentral-developers/use-authorization-code-pkce-for-ringcentral-api-in-client-app-e9108f04b5f0 - if (authorizeRequest.code_challenge_method === 'S256') { - this.codeVerifier = randomBytes(32).toString('base64').replace(/\+/g, '-').replace(/\//g, '_').replace(/=/g, ''); - authorizeRequest.code_challenge = createHash('sha256') + if (authorizeRequest.code_challenge_method === "S256") { + this.codeVerifier = randomBytes(32).toString("base64").replace(/\+/g, "-") + .replace(/\//g, "_").replace(/=/g, ""); + authorizeRequest.code_challenge = createHash("sha256") .update(this.codeVerifier) .digest() - .toString('base64') - .replace(/\+/g, '-') - .replace(/\//g, '_') - .replace(/=/g, ''); + .toString("base64") + .replace(/\+/g, "-") + .replace(/\//g, "_") + .replace(/=/g, ""); } let uri; if (this.options.baseUri) { uri = new URI(this.options.baseUri); } else { - uri = new URI(this.rc.rest.server).directory('/restapi/oauth/authorize'); + uri = new URI(this.rc.rest.server).directory("/restapi/oauth/authorize"); } return uri.search(authorizeRequest as QueryDataMap).toString(); } diff --git a/packages/extensions/auto-refresh/README.md b/packages/extensions/auto-refresh/README.md index 8164aa3d..0b52db7f 100644 --- a/packages/extensions/auto-refresh/README.md +++ b/packages/extensions/auto-refresh/README.md @@ -21,8 +21,14 @@ autoRefreshExtension.start(); // autoRefreshExtension.stop(); ``` -For a working sample, please check this [test case](../../../test/auto-refresh-extension.spec.ts). +For a working sample, please check this +[test case](../../../test/auto-refresh-extension.spec.ts). ## Disclaimer -[Token management](https://medium.com/ringcentral-developers/ringcentral-token-management-477578f00954) is a complicated topic. There is no one-fit-all solution. This extension is an quick-and-dirty out-of-box solution to refresh your token. It is by no means the best practice. It simply starts a background timers to refresh your token periodically. For serious production applications, you may need better token management strategy. +[Token management](https://medium.com/ringcentral-developers/ringcentral-token-management-477578f00954) +is a complicated topic. There is no one-fit-all solution. This extension is an +quick-and-dirty out-of-box solution to refresh your token. It is by no means the +best practice. It simply starts a background timers to refresh your token +periodically. For serious production applications, you may need better token +management strategy. diff --git a/packages/extensions/auto-refresh/src/index.ts b/packages/extensions/auto-refresh/src/index.ts index 8aa3ac1c..7d24027a 100644 --- a/packages/extensions/auto-refresh/src/index.ts +++ b/packages/extensions/auto-refresh/src/index.ts @@ -1,5 +1,5 @@ -import type RingCentral from '@rc-ex/core'; -import SdkExtension from '@rc-ex/core/lib/SdkExtension'; +import type RingCentral from "@rc-ex/core"; +import SdkExtension from "@rc-ex/core/lib/SdkExtension"; export interface AutoRefreshOptions { interval: number; @@ -10,7 +10,9 @@ class AutoRefreshExtension extends SdkExtension { public options: AutoRefreshOptions; private timeout?: NodeJS.Timeout; - public constructor(options: AutoRefreshOptions = { interval: 1000 * 60 * 30 }) { + public constructor( + options: AutoRefreshOptions = { interval: 1000 * 60 * 30 }, + ) { super(); this.options = options; } diff --git a/packages/extensions/debug/README.md b/packages/extensions/debug/README.md index e7e182b5..63b9c4f4 100644 --- a/packages/extensions/debug/README.md +++ b/packages/extensions/debug/README.md @@ -19,9 +19,11 @@ const debugExtension = new DebugExtension(); await rc.installExtension(debugExtension); ``` -With this extension installed, details for every API request traffic will be printed using `console.debug`. +With this extension installed, details for every API request traffic will be +printed using `console.debug`. -Below is sample output for `await rc.restapi().account().extension().messageStore().list()`: +Below is sample output for +`await rc.restapi().account().extension().messageStore().list()`: ``` console.debug @@ -80,11 +82,13 @@ Request: } ``` -For a working sample, please check this [test case](../../../test/debug-extension.spec.ts). +For a working sample, please check this +[test case](../../../test/debug-extension.spec.ts). ## loggingAction -Optionally, you can specify a `loggingAction` function to the extension constructor. +Optionally, you can specify a `loggingAction` function to the extension +constructor. ```ts export type LoggingAction = (message: string) => void; @@ -93,5 +97,5 @@ export type LoggingAction = (message: string) => void; `loggingAction` determines how debug messages are logged. By default it is: ```ts -(message) => console.debug(message); +((message) => console.debug(message)); ``` diff --git a/packages/extensions/debug/src/index.ts b/packages/extensions/debug/src/index.ts index 9602b7ca..37167f85 100644 --- a/packages/extensions/debug/src/index.ts +++ b/packages/extensions/debug/src/index.ts @@ -1,7 +1,11 @@ -import type RingCentral from '@rc-ex/core'; -import type { RestRequestConfig, RestResponse, RestMethod } from '@rc-ex/core/lib/types'; -import Utils from '@rc-ex/core/lib/Utils'; -import SdkExtension from '@rc-ex/core/lib/SdkExtension'; +import type RingCentral from "@rc-ex/core"; +import type { + RestMethod, + RestRequestConfig, + RestResponse, +} from "@rc-ex/core/lib/types"; +import Utils from "@rc-ex/core/lib/Utils"; +import SdkExtension from "@rc-ex/core/lib/SdkExtension"; export interface DebugOptions { loggingAction?: (message: string) => void; @@ -30,7 +34,13 @@ class DebugExtension extends SdkExtension { if (!this.enabled) { return request(method, endpoint, content, queryParams, config); } - const r = await request(method, endpoint, content, queryParams, config); + const r = await request( + method, + endpoint, + content, + queryParams, + config, + ); this.options.loggingAction!(Utils.formatTraffic(r)); return r; }; diff --git a/packages/extensions/events/README.md b/packages/extensions/events/README.md index 17f10446..a4168fcf 100644 --- a/packages/extensions/events/README.md +++ b/packages/extensions/events/README.md @@ -23,7 +23,8 @@ eventsExtension.eventEmitter.on(Events.requestSuccess, r => { }) ``` -For a working sample, please check this [test case](../../../test/events-extension.spec.ts). +For a working sample, please check this +[test case](../../../test/events-extension.spec.ts). ## EventsOptions @@ -41,22 +42,22 @@ type EventsOptions = { ```ts enum Events { - beforeRequest = 'beforeRequest', - requestSuccess = 'requestSuccess', - requestError = 'requestError', + beforeRequest = "beforeRequest", + requestSuccess = "requestSuccess", + requestError = "requestError", // enum values below are from // https://github.com/ringcentral/ringcentral-js/blob/master/sdk/src/platform/Platform.ts - beforeLogin = 'beforeLogin', - loginSuccess = 'loginSuccess', - loginError = 'loginError', - beforeRefresh = 'beforeRefresh', - refreshSuccess = 'refreshSuccess', - refreshError = 'refreshError', - beforeLogout = 'beforeLogout', - logoutSuccess = 'logoutSuccess', - logoutError = 'logoutError', - rateLimitError = 'rateLimitError', + beforeLogin = "beforeLogin", + loginSuccess = "loginSuccess", + loginError = "loginError", + beforeRefresh = "beforeRefresh", + refreshSuccess = "refreshSuccess", + refreshError = "refreshError", + beforeLogout = "beforeLogout", + logoutSuccess = "logoutSuccess", + logoutError = "logoutError", + rateLimitError = "rateLimitError", } ``` diff --git a/packages/extensions/events/src/index.ts b/packages/extensions/events/src/index.ts index ae890153..45fd5258 100644 --- a/packages/extensions/events/src/index.ts +++ b/packages/extensions/events/src/index.ts @@ -1,27 +1,31 @@ -import type RingCentral from '@rc-ex/core'; -import type { RestRequestConfig, RestResponse, RestMethod } from '@rc-ex/core/lib/types'; -import SdkExtension from '@rc-ex/core/lib/SdkExtension'; -import type GetTokenRequest from '@rc-ex/core/lib/definitions/GetTokenRequest'; -import RestException from '@rc-ex/core/lib/RestException'; -import { EventEmitter } from 'events'; +import type RingCentral from "@rc-ex/core"; +import type { + RestMethod, + RestRequestConfig, + RestResponse, +} from "@rc-ex/core/lib/types"; +import SdkExtension from "@rc-ex/core/lib/SdkExtension"; +import type GetTokenRequest from "@rc-ex/core/lib/definitions/GetTokenRequest"; +import RestException from "@rc-ex/core/lib/RestException"; +import { EventEmitter } from "events"; export enum Events { - beforeRequest = 'beforeRequest', - requestSuccess = 'requestSuccess', - requestError = 'requestError', + beforeRequest = "beforeRequest", + requestSuccess = "requestSuccess", + requestError = "requestError", // enum values below are from // https://github.com/ringcentral/ringcentral-js/blob/master/sdk/src/platform/Platform.ts - beforeLogin = 'beforeLogin', - loginSuccess = 'loginSuccess', - loginError = 'loginError', - beforeRefresh = 'beforeRefresh', - refreshSuccess = 'refreshSuccess', - refreshError = 'refreshError', - beforeLogout = 'beforeLogout', - logoutSuccess = 'logoutSuccess', - logoutError = 'logoutError', - rateLimitError = 'rateLimitError', + beforeLogin = "beforeLogin", + loginSuccess = "loginSuccess", + loginError = "loginError", + beforeRefresh = "beforeRefresh", + refreshSuccess = "refreshSuccess", + refreshError = "refreshError", + beforeLogout = "beforeLogout", + logoutSuccess = "logoutSuccess", + logoutError = "logoutError", + rateLimitError = "rateLimitError", } export interface EventsOptions { @@ -40,7 +44,9 @@ class EventsExtension extends SdkExtension { // eslint-disable-next-line @typescript-eslint/no-explicit-any public emit(event: Events, data: any) { - if (!this.options.enabledEvents || this.options.enabledEvents.includes(event)) { + if ( + !this.options.enabledEvents || this.options.enabledEvents.includes(event) + ) { this.eventEmitter.emit(event, data); } } @@ -66,42 +72,48 @@ class EventsExtension extends SdkExtension { config, }; this.emit(Events.beforeRequest, params); - if (method === 'POST') { - if (endpoint === '/restapi/oauth/token') { - if ((content as GetTokenRequest).grant_type === 'refresh_token') { + if (method === "POST") { + if (endpoint === "/restapi/oauth/token") { + if ((content as GetTokenRequest).grant_type === "refresh_token") { this.emit(Events.beforeRefresh, params); } else { this.emit(Events.beforeLogin, params); } - } else if (endpoint === '/restapi/oauth/revoke') { + } else if (endpoint === "/restapi/oauth/revoke") { this.emit(Events.beforeLogout, params); } } try { - const r = await request(method, endpoint, content, queryParams, config); + const r = await request( + method, + endpoint, + content, + queryParams, + config, + ); this.emit(Events.requestSuccess, r); - if (method === 'POST') { - if (endpoint === '/restapi/oauth/token') { - if ((content as GetTokenRequest).grant_type === 'refresh_token') { + if (method === "POST") { + if (endpoint === "/restapi/oauth/token") { + if ((content as GetTokenRequest).grant_type === "refresh_token") { this.emit(Events.refreshSuccess, r); } else { this.emit(Events.loginSuccess, r); } - } else if (endpoint === '/restapi/oauth/revoke') { + } else if (endpoint === "/restapi/oauth/revoke") { this.emit(Events.logoutSuccess, r); } } return r; } catch (e) { this.emit(Events.requestError, e); - if (method === 'POST') { - if (endpoint === '/restapi/oauth/token') { - if ((content as GetTokenRequest).grant_type === 'refresh_token') { + if (method === "POST") { + if (endpoint === "/restapi/oauth/token") { + if ((content as GetTokenRequest).grant_type === "refresh_token") { this.emit(Events.refreshError, e); } else { this.emit(Events.loginError, e); } - } else if (endpoint === '/restapi/oauth/revoke') { + } else if (endpoint === "/restapi/oauth/revoke") { this.emit(Events.logoutError, e); } } diff --git a/packages/extensions/rate-limit/README.md b/packages/extensions/rate-limit/README.md index df5fa444..f9a83bf5 100644 --- a/packages/extensions/rate-limit/README.md +++ b/packages/extensions/rate-limit/README.md @@ -1,6 +1,7 @@ # Rate Limit Extension -Rate limit extension handles rate limit automatically by delaying and retrying API calls. +Rate limit extension handles rate limit automatically by delaying and retrying +API calls. This extension is based on the [Retry Extension](../retry). @@ -40,8 +41,10 @@ Default value is 3. ### rateLimitWindow -`rateLimitWindow` defines the rate limit window. This parameter will only take effect when there is no `x-rate-limit-window` HTTP header available. +`rateLimitWindow` defines the rate limit window. This parameter will only take +effect when there is no `x-rate-limit-window` HTTP header available. Default value is 60 (seconds). -Its value is used to determine the [retryInterval](https://github.com/ringcentral/ringcentral-extensible/tree/master/packages/extensions/retry#retryinterval). +Its value is used to determine the +[retryInterval](https://github.com/ringcentral/ringcentral-extensible/tree/master/packages/extensions/retry#retryinterval). diff --git a/packages/extensions/rate-limit/src/index.ts b/packages/extensions/rate-limit/src/index.ts index 78dbc4b3..9d0a2f27 100644 --- a/packages/extensions/rate-limit/src/index.ts +++ b/packages/extensions/rate-limit/src/index.ts @@ -1,4 +1,4 @@ -import RetryExtension from '@rc-ex/retry/src'; +import RetryExtension from "@rc-ex/retry/src"; export interface RateLimitOptions { maxRetries?: number; @@ -9,11 +9,15 @@ class RateLimitExtension extends RetryExtension { public constructor(options?: RateLimitOptions) { super({ shouldRetry: (restException, retriesAttempted) => - retriesAttempted < (options?.maxRetries ?? 3) && restException.response.status === 429, + retriesAttempted < (options?.maxRetries ?? 3) && + restException.response.status === 429, retryInterval: (restException, retriesAttempted) => { - const rateLimitWindow = restException.response.headers['x-rate-limit-window']; + const rateLimitWindow = + restException.response.headers["x-rate-limit-window"]; return ( - (rateLimitWindow ? parseInt(rateLimitWindow, 10) : (options?.rateLimitWindow ?? 60)) * + (rateLimitWindow + ? parseInt(rateLimitWindow, 10) + : (options?.rateLimitWindow ?? 60)) * 1000 * 2 ** retriesAttempted // exponential back off ); diff --git a/packages/extensions/rcsdk/README.md b/packages/extensions/rcsdk/README.md index d991da72..ca326f46 100644 --- a/packages/extensions/rcsdk/README.md +++ b/packages/extensions/rcsdk/README.md @@ -1,6 +1,8 @@ # RingCentral SDK extension -This extension makes [@ringcentral/sdk](https://www.npmjs.com/package/@ringcentral/sdk) the HTTP engine. +This extension makes +[@ringcentral/sdk](https://www.npmjs.com/package/@ringcentral/sdk) the HTTP +engine. ## Install @@ -11,9 +13,9 @@ yarn add @rc-ex/rcsdk ## Usage ```ts -import SDK from '@ringcentral/sdk'; -import RingCentral from '@rc-ex/core'; -import RcSdkExtension from '@rc-ex/rcsdk'; +import SDK from "@ringcentral/sdk"; +import RingCentral from "@rc-ex/core"; +import RcSdkExtension from "@rc-ex/rcsdk"; // @ringcentral/sdk const sdk = new SDK({ clientId, clientSecret, server }); @@ -28,19 +30,25 @@ await rc.installExtension(rcSdkExtension); const extensionInfo = await rc.restapi().account().extension().get(); ``` -For a working sample, please check this [test case](../../../test/rcsdk-extension.spec.ts). +For a working sample, please check this +[test case](../../../test/rcsdk-extension.spec.ts). ## Known issues -`multipart/form-data` does not work, because `@rc-ex/core` is originally designed for [axios](https://github.com/axios/axios). -For such cases, please use `@ringcentral/sdk` directly, such as `await sdk.post('/restapi/v1.0/account/~/extension/~/fax', ...);` +`multipart/form-data` does not work, because `@rc-ex/core` is originally +designed for [axios](https://github.com/axios/axios). For such cases, please use +`@ringcentral/sdk` directly, such as +`await sdk.post('/restapi/v1.0/account/~/extension/~/fax', ...);` -Some extensions don't work with this extension. For example, the Retry Extension and RateLimit Extension because they rely on RestException object which `@ringcentral/sdk` doesn't throw. +Some extensions don't work with this extension. For example, the Retry Extension +and RateLimit Extension because they rely on RestException object which +`@ringcentral/sdk` doesn't throw. ## Switch between @ringcentral/sdk and axios -[axios][https://github.com/axios/axios] is the default HTTP engine. -This extension makes `@ringcentral/sdk` as HTTP engine. to switch back to `axios`, just disable this extension: +[axios][https://github.com/axios/axios] is the default HTTP engine. This +extension makes `@ringcentral/sdk` as HTTP engine. to switch back to `axios`, +just disable this extension: ```ts // ringcentral-extensible + rcsdk extension @@ -56,5 +64,6 @@ rcSdkExtension.disable(); const extensionInfo2 = await rc.restapi().account().extension().get(); ``` -Please note that by default `@ringcentral/sdk` and `axios` doesn't share tokens. You may need to manage tokens separately. -Or you can make them share tokens explicitly by getting token from one and setting to the other. +Please note that by default `@ringcentral/sdk` and `axios` doesn't share tokens. +You may need to manage tokens separately. Or you can make them share tokens +explicitly by getting token from one and setting to the other. diff --git a/packages/extensions/rcsdk/src/index.ts b/packages/extensions/rcsdk/src/index.ts index aaa0d54a..f2dee3ef 100644 --- a/packages/extensions/rcsdk/src/index.ts +++ b/packages/extensions/rcsdk/src/index.ts @@ -1,8 +1,12 @@ -import type RingCentral from '@rc-ex/core'; -import type { RestRequestConfig, RestResponse, RestMethod } from '@rc-ex/core/lib/types'; -import SdkExtension from '@rc-ex/core/lib/SdkExtension'; -import RestException from '@rc-ex/core/lib/RestException'; -import type SDK from '@ringcentral/sdk'; +import type RingCentral from "@rc-ex/core"; +import type { + RestMethod, + RestRequestConfig, + RestResponse, +} from "@rc-ex/core/lib/types"; +import SdkExtension from "@rc-ex/core/lib/SdkExtension"; +import RestException from "@rc-ex/core/lib/RestException"; +import type SDK from "@ringcentral/sdk"; export interface RcSdkOptions { rcSdk: SDK; @@ -17,7 +21,7 @@ class RcSdkExtension extends SdkExtension { } public async install(rc: RingCentral) { - Object.defineProperty(rc, 'token', { + Object.defineProperty(rc, "token", { get: async () => this.options.rcSdk.platform().auth().data(), }); const request = rc.request.bind(rc); diff --git a/packages/extensions/retry/README.md b/packages/extensions/retry/README.md index ed8da562..5d710197 100644 --- a/packages/extensions/retry/README.md +++ b/packages/extensions/retry/README.md @@ -37,15 +37,20 @@ type RetryOptions = { `ShouldRetry` defines condition about should retry or abort: ```ts -type ShouldRetry = (restException: RestException, retriesAttempted: number) => boolean; +type ShouldRetry = ( + restException: RestException, + retriesAttempted: number, +) => boolean; ``` -By default, `ShouldRetry` returns true when `restException.response.status` is 429 or 503 and `retriesAttempted` is smaller than 3: +By default, `ShouldRetry` returns true when `restException.response.status` is +429 or 503 and `retriesAttempted` is smaller than 3: ```ts -(restException, retriesAttempted) => { - return retriesAttempted < 3 && [429, 503].includes(restException.response.status); -}; +((restException, retriesAttempted) => { + return retriesAttempted < 3 && + [429, 503].includes(restException.response.status); +}); ``` ### RetryInterval @@ -53,13 +58,16 @@ By default, `ShouldRetry` returns true when `restException.response.status` is 4 `RetryInterval` defines how long should wait before try: ```ts -type RetryInterval = (restException: RestException, retriesAttempted: number) => number; +type RetryInterval = ( + restException: RestException, + retriesAttempted: number, +) => number; ``` By default `RetryInterval` is 60 seconds with exponential back off: ```ts -(restException, retriesAttempted) => { +((restException, retriesAttempted) => { return 60 * 1000 * Math.pow(2, retriesAttempted); // exponential back off -}; +}); ``` diff --git a/packages/extensions/retry/src/index.ts b/packages/extensions/retry/src/index.ts index a4af0cb7..0d7d2019 100644 --- a/packages/extensions/retry/src/index.ts +++ b/packages/extensions/retry/src/index.ts @@ -1,11 +1,21 @@ -import type RingCentral from '@rc-ex/core'; -import type { RestRequestConfig, RestResponse, RestMethod } from '@rc-ex/core/lib/types'; -import SdkExtension from '@rc-ex/core/lib/SdkExtension'; -import RestException from '@rc-ex/core/lib/RestException'; -import waitFor from 'wait-for-async'; +import type RingCentral from "@rc-ex/core"; +import type { + RestMethod, + RestRequestConfig, + RestResponse, +} from "@rc-ex/core/lib/types"; +import SdkExtension from "@rc-ex/core/lib/SdkExtension"; +import RestException from "@rc-ex/core/lib/RestException"; +import waitFor from "wait-for-async"; -export type ShouldRetry = (restException: RestException, retriesAttempted: number) => boolean; -export type RetryInterval = (restException: RestException, retriesAttempted: number) => number; +export type ShouldRetry = ( + restException: RestException, + retriesAttempted: number, +) => boolean; +export type RetryInterval = ( + restException: RestException, + retriesAttempted: number, +) => number; export interface RetryOptions { shouldRetry?: ShouldRetry; retryInterval?: RetryInterval; @@ -18,8 +28,10 @@ class RetryExtension extends SdkExtension { super(); this.options = options; this.options.shouldRetry ??= (restException, retriesAttempted) => - retriesAttempted < 3 && [429, 503].includes(restException.response.status); - this.options.retryInterval ??= (restException, retriesAttempted) => 60 * 1000 * 2 ** retriesAttempted; // exponential back off + retriesAttempted < 3 && + [429, 503].includes(restException.response.status); + this.options.retryInterval ??= (restException, retriesAttempted) => + 60 * 1000 * 2 ** retriesAttempted; // exponential back off } public async install(rc: RingCentral) { @@ -44,7 +56,14 @@ class RetryExtension extends SdkExtension { await waitFor({ interval: this.options.retryInterval!(e, retriesAttempted), }); - return await newRequest(method, endpoint, content, queryParams, config, retriesAttempted + 1); + return await newRequest( + method, + endpoint, + content, + queryParams, + config, + retriesAttempted + 1, + ); } } throw e; diff --git a/packages/extensions/ws/README.md b/packages/extensions/ws/README.md index 1ccd18a4..cb31997d 100644 --- a/packages/extensions/ws/README.md +++ b/packages/extensions/ws/README.md @@ -2,7 +2,8 @@ WebSocket Extension adds support for WebSocket protocol. -Please read this article: [Create WebSocket subscriptions using RingCentral JavaScript SDKs](https://medium.com/@tylerlong/create-websocket-subscriptions-using-ringcentral-javascript-sdks-1204ce5843b8). +Please read this article: +[Create WebSocket subscriptions using RingCentral JavaScript SDKs](https://medium.com/@tylerlong/create-websocket-subscriptions-using-ringcentral-javascript-sdks-1204ce5843b8). ## Install @@ -32,7 +33,8 @@ await webSocketExtension.subscribe( ); ``` -You can also make Rest API calls over WebSocket if you specified `webSocketOptions.restOverWebSocket` as `true`: +You can also make Rest API calls over WebSocket if you specified +`webSocketOptions.restOverWebSocket` as `true`: ```ts const webSocketExtension = new WebSocketExtension({ @@ -46,8 +48,10 @@ console.log(extInfo.id); ## Known limitations -Each `WebSocketExtension` can only have 1 subscription. Trying to invoke `subscribe` multiple times will **override** the previous subscriptions. -If you need to create multiple subscriptions, you need to create multiple `WebSocketExtension`. +Each `WebSocketExtension` can only have 1 subscription. Trying to invoke +`subscribe` multiple times will **override** the previous subscriptions. If you +need to create multiple subscriptions, you need to create multiple +`WebSocketExtension`. ## WebSocketOptions @@ -63,17 +67,20 @@ type WebSocketOptions = { ### restOverWebSocket -`restOverWebSocket` indicates whether to make Rest API call over WebSocket protocol. +`restOverWebSocket` indicates whether to make Rest API call over WebSocket +protocol. Default value is false. -Please note that, not all Rest API calls can be done over WebSocket protocol. The following are not supported at the moment: +Please note that, not all Rest API calls can be done over WebSocket protocol. +The following are not supported at the moment: - Binary downloading - `form-data/multipart` POST / PUT - Authorization, such as get token and revoke token -If `restOverWebSocket` is true and an Rest API call cannot be done over WebSocket, it will be done over HTTPS instead. +If `restOverWebSocket` is true and an Rest API call cannot be done over +WebSocket, it will be done over HTTPS instead. ### debugMode @@ -81,15 +88,18 @@ If `restOverWebSocket` is true and an Rest API call cannot be done over WebSocke Default value is false. -If enabled, WebSocket incoming message and outgoing message will be printed using `console.debug`. +If enabled, WebSocket incoming message and outgoing message will be printed +using `console.debug`. ### autoRecover -`autoRecover` indicates whether to auto recover when WebSocket connection is lost. +`autoRecover` indicates whether to auto recover when WebSocket connection is +lost. Default value is true. -If disabled, you need to manually invoke `await webSocketExtension.recover()` whenever WebSocket connection is lost. +If disabled, you need to manually invoke `await webSocketExtension.recover()` +whenever WebSocket connection is lost. ## Access WebSocket object @@ -97,8 +107,10 @@ If disabled, you need to manually invoke `await webSocketExtension.recover()` wh webSocketExtension.ws; ``` -gives you the WebSocket object. But if the network is unstable and `autoRecover` is enabled, sometimes a new WebSocket connection will be created to replace the current one. -You can listen for `autoRecoverSuccess` & `autoRecoverFailed` events: +gives you the WebSocket object. But if the network is unstable and `autoRecover` +is enabled, sometimes a new WebSocket connection will be created to replace the +current one. You can listen for `autoRecoverSuccess` & `autoRecoverFailed` +events: ```ts import {Events} from '@rc-ex/ws'; @@ -131,31 +143,46 @@ webSocketExtension.eventEmitter.on(Events.autoRecoverError, (error) => { }); ``` -- Note #1: `autoRecoverError` means cannot connect to WebSocket server at all. There will be more tries. So `autoRecoverError` does NOT mean auto recover gives up trying. - - This is most likely caused by local network issue, or in rare cases remote WebSocket server is down. +- Note #1: `autoRecoverError` means cannot connect to WebSocket server at all. + There will be more tries. So `autoRecoverError` does NOT mean auto recover + gives up trying. + - This is most likely caused by local network issue, or in rare cases remote + WebSocket server is down. - This means a local exception or error. -- Note #2: `autoRecoverFailed` means connection to WebSocket server has been restored, but existing subscriptions haven't. The SDK automatically created new subscriptions for you. +- Note #2: `autoRecoverFailed` means connection to WebSocket server has been + restored, but existing subscriptions haven't. The SDK automatically created + new subscriptions for you. - Notifications during WebSocket disconnection are all lost. - - It could mean `recoveryTimeout` and client side gives up recovery but creates brand new connection instead. - - It could mean a message from WebSocket server with `"recoveryState": "Failed"` -- Note #3: `autoRecoverSuccess` means connection to WebSocket server has been restored, and existing subscriptions have been restored too. And server side keeps your notification messages in a buffer and it will send you the messages soon. - - There is a `recoveryBufferSize` setting on server side. If there are too many messages queued before session recover success, oldest messages will be discarded. + - It could mean `recoveryTimeout` and client side gives up recovery but + creates brand new connection instead. + - It could mean a message from WebSocket server with + `"recoveryState": "Failed"` +- Note #3: `autoRecoverSuccess` means connection to WebSocket server has been + restored, and existing subscriptions have been restored too. And server side + keeps your notification messages in a buffer and it will send you the messages + soon. + - There is a `recoveryBufferSize` setting on server side. If there are too + many messages queued before session recover success, oldest messages will be + discarded. ### Manual recover -In case of network outage and the WebSocket connection is lost, you can restore the session by: +In case of network outage and the WebSocket connection is lost, you can restore +the session by: ```ts await webSocketExtension.recover(); ``` -Command above will create a new WebSocket connection and make sure that subscriptions are recovered. +Command above will create a new WebSocket connection and make sure that +subscriptions are recovered. ## How to recover after page refresh? When you refresh page, you lost everything currently in the page's memory. -Below is the recommended way to recover. It may not be the best practice, but we have tested it and it does work. +Below is the recommended way to recover. It may not be the best practice, but we +have tested it and it does work. Ref: https://github.com/tylerlong/rc-ws-refresh-page-demo/blob/main/src/index.ts diff --git a/packages/extensions/ws/package.json b/packages/extensions/ws/package.json index c251c4a1..a8f79a88 100644 --- a/packages/extensions/ws/package.json +++ b/packages/extensions/ws/package.json @@ -18,7 +18,7 @@ "access": "public" }, "dependencies": { - "@types/ws": "^8.5.13", + "@types/ws": "^8.5.14", "http-status-codes": "^2.3.0", "hyperid": "^3.3.0", "isomorphic-ws": "^5.0.0", diff --git a/packages/extensions/ws/src/exceptions/ClosedException.ts b/packages/extensions/ws/src/exceptions/ClosedException.ts index 2cadc53e..1f979c6f 100644 --- a/packages/extensions/ws/src/exceptions/ClosedException.ts +++ b/packages/extensions/ws/src/exceptions/ClosedException.ts @@ -1,6 +1,6 @@ class ClosedException extends Error { public constructor(message?: string) { - super(message ?? 'WebSocket has been closed'); + super(message ?? "WebSocket has been closed"); } } diff --git a/packages/extensions/ws/src/exceptions/ConnectionException.ts b/packages/extensions/ws/src/exceptions/ConnectionException.ts index b97d1fd6..4fafa61e 100644 --- a/packages/extensions/ws/src/exceptions/ConnectionException.ts +++ b/packages/extensions/ws/src/exceptions/ConnectionException.ts @@ -1,5 +1,5 @@ -import type { WsgError, WsgEvent, WsgMeta } from '../types'; -import Utils from '../utils'; +import type { WsgError, WsgEvent, WsgMeta } from "../types"; +import Utils from "../utils"; class ConnectionException extends Error { public wsgEvent: WsgEvent; diff --git a/packages/extensions/ws/src/exceptions/TimeoutException.ts b/packages/extensions/ws/src/exceptions/TimeoutException.ts index 9e48f3cc..ebf7c3a3 100644 --- a/packages/extensions/ws/src/exceptions/TimeoutException.ts +++ b/packages/extensions/ws/src/exceptions/TimeoutException.ts @@ -1,6 +1,6 @@ class TimeoutException extends Error { public constructor(message?: string) { - super(message ?? 'Failed to receive expected WebSocket message in time.'); + super(message ?? "Failed to receive expected WebSocket message in time."); } } diff --git a/packages/extensions/ws/src/index.ts b/packages/extensions/ws/src/index.ts index 86fe204b..cd68c12b 100644 --- a/packages/extensions/ws/src/index.ts +++ b/packages/extensions/ws/src/index.ts @@ -1,20 +1,31 @@ /* eslint-disable no-console */ -import type RingCentral from '@rc-ex/core'; -import type { RestMethod, RestRequestConfig, RestResponse } from '@rc-ex/core/lib/types'; -import SdkExtension from '@rc-ex/core/lib/SdkExtension'; -import type { MessageEvent } from 'isomorphic-ws'; -import WS from 'isomorphic-ws'; -import hyperid from 'hyperid'; -import { EventEmitter } from 'events'; -import waitFor from 'wait-for-async'; -import RestException from '@rc-ex/core/lib/RestException'; -import type SubscriptionInfo from '@rc-ex/core/lib/definitions/SubscriptionInfo'; - -import { request } from './rest'; -import type { WsToken, ConnectionDetails, WebSocketOptions, WsgEvent, Wsc, WebSocketExtensionInterface } from './types'; -import Subscription from './subscription'; -import ConnectionException from './exceptions/ConnectionException'; -import Utils from './utils'; +import type RingCentral from "@rc-ex/core"; +import type { + RestMethod, + RestRequestConfig, + RestResponse, +} from "@rc-ex/core/lib/types"; +import SdkExtension from "@rc-ex/core/lib/SdkExtension"; +import type { MessageEvent } from "isomorphic-ws"; +import WS from "isomorphic-ws"; +import hyperid from "hyperid"; +import { EventEmitter } from "events"; +import waitFor from "wait-for-async"; +import RestException from "@rc-ex/core/lib/RestException"; +import type SubscriptionInfo from "@rc-ex/core/lib/definitions/SubscriptionInfo"; + +import { request } from "./rest"; +import type { + ConnectionDetails, + WebSocketExtensionInterface, + WebSocketOptions, + Wsc, + WsgEvent, + WsToken, +} from "./types"; +import Subscription from "./subscription"; +import ConnectionException from "./exceptions/ConnectionException"; +import Utils from "./utils"; const CONNECTING = 0; const OPEN = 1; @@ -22,12 +33,12 @@ const OPEN = 1; const uuid = hyperid(); export enum Events { - autoRecoverSuccess = 'autoRecoverSuccess', - autoRecoverFailed = 'autoRecoverFailed', - autoRecoverError = 'autoRecoverError', - newWebSocketObject = 'newWebSocketObject', - newWsc = 'newWsc', - connectionReady = 'connectionReady', + autoRecoverSuccess = "autoRecoverSuccess", + autoRecoverFailed = "autoRecoverFailed", + autoRecoverError = "autoRecoverError", + newWebSocketObject = "newWebSocketObject", + newWsc = "newWsc", + connectionReady = "connectionReady", } class WebSocketExtension extends SdkExtension { @@ -101,9 +112,11 @@ class WebSocketExtension extends SdkExtension { } if ( // the following cannot be done with WebSocket - config?.headers?.getContentType?.toString()?.includes('multipart/form-data') || - config?.responseType === 'arraybuffer' || - endpoint.startsWith('/restapi/oauth/') // token, revoke, wstoken + config?.headers?.getContentType?.toString()?.includes( + "multipart/form-data", + ) || + config?.responseType === "arraybuffer" || + endpoint.startsWith("/restapi/oauth/") // token, revoke, wstoken ) { return request(method, endpoint, content, queryParams, config); } @@ -134,7 +147,7 @@ class WebSocketExtension extends SdkExtension { throw e; // such as InsufficientPermissions } if (this.options.debugMode) { - console.debug('Initial connect failed:', e); + console.debug("Initial connect failed:", e); } } let retriesAttempted = 0; @@ -156,10 +169,12 @@ class WebSocketExtension extends SdkExtension { await this.recover(); retriesAttempted = 0; if (this.options.debugMode) { - console.debug(`Auto recover done, recoveryState: ${this.connectionDetails.recoveryState}`); + console.debug( + `Auto recover done, recoveryState: ${this.connectionDetails.recoveryState}`, + ); } this.eventEmitter.emit( - this.connectionDetails.recoveryState === 'Successful' + this.connectionDetails.recoveryState === "Successful" ? Events.autoRecoverSuccess : Events.autoRecoverFailed, this.ws, @@ -170,25 +185,31 @@ class WebSocketExtension extends SdkExtension { } retriesAttempted += 1; if (this.options.debugMode) { - console.debug('Auto recover error:', e); + console.debug("Auto recover error:", e); } this.eventEmitter.emit(Events.autoRecoverError, e); } - this.intervalHandle = setInterval(check, this.options.autoRecover!.checkInterval!(retriesAttempted)); + this.intervalHandle = setInterval( + check, + this.options.autoRecover!.checkInterval!(retriesAttempted), + ); } checking = false; }; - this.intervalHandle = setInterval(check, this.options.autoRecover!.checkInterval!(retriesAttempted)); + this.intervalHandle = setInterval( + check, + this.options.autoRecover!.checkInterval!(retriesAttempted), + ); // browser only code start - if (typeof window !== 'undefined' && window.addEventListener) { - window.addEventListener('offline', () => { + if (typeof window !== "undefined" && window.addEventListener) { + window.addEventListener("offline", () => { if (this.pingServerHandle) { clearTimeout(this.pingServerHandle); } this.ws?.close(); }); - window.addEventListener('online', () => { + window.addEventListener("online", () => { check(); }); } @@ -221,15 +242,16 @@ class WebSocketExtension extends SdkExtension { } if ( this.connectionDetails !== undefined && - Date.now() - this.recoverTimestamp > this.connectionDetails.recoveryTimeout * 1000 + Date.now() - this.recoverTimestamp > + this.connectionDetails.recoveryTimeout * 1000 ) { if (this.options.debugMode) { - console.debug('connect to WSG but do not recover'); + console.debug("connect to WSG but do not recover"); } await this.connect(false); // connect to WSG but do not recover } else { if (this.options.debugMode) { - console.debug('connect to WSG and recover'); + console.debug("connect to WSG and recover"); } await this.connect(true); // connect to WSG and recover } @@ -248,7 +270,7 @@ class WebSocketExtension extends SdkExtension { await this.ws.send( JSON.stringify([ { - type: 'Heartbeat', + type: "Heartbeat", messageId: uuid(), }, ]), @@ -274,12 +296,14 @@ class WebSocketExtension extends SdkExtension { public async _connect(recoverSession = false) { if (!this.wsToken || Date.now() > this.wsTokenExpiresAt) { - const r = await this.rc.post('/restapi/oauth/wstoken'); + const r = await this.rc.post("/restapi/oauth/wstoken"); this.wsToken = r.data as WsToken; // `expires_in` default value is 600 seconds. That's why we `* 0.8` this.wsTokenExpiresAt = Date.now() + this.wsToken.expires_in * 0.8 * 1000; } - let wsUri = `${this.wsToken!.uri}?access_token=${this.wsToken!.ws_access_token}`; + let wsUri = `${this.wsToken!.uri}?access_token=${ + this.wsToken!.ws_access_token + }`; if (recoverSession && this.wsc) { wsUri += `&wsc=${this.wsc.token}`; } @@ -299,11 +323,14 @@ class WebSocketExtension extends SdkExtension { }; if (this.options.autoRecover?.enabled) { - this.ws.addEventListener('message', () => { + this.ws.addEventListener("message", () => { if (this.pingServerHandle) { clearTimeout(this.pingServerHandle); } - this.pingServerHandle = setTimeout(() => this.pingServer(), this.options.autoRecover!.pingServerInterval); + this.pingServerHandle = setTimeout( + () => this.pingServer(), + this.options.autoRecover!.pingServerInterval, + ); }); } @@ -313,13 +340,13 @@ class WebSocketExtension extends SdkExtension { } // listen for new wsc data - this.ws.addEventListener('message', (mEvent: MessageEvent) => { + this.ws.addEventListener("message", (mEvent: MessageEvent) => { const event = mEvent as WsgEvent; const [meta, body] = Utils.splitWsgData(event.data); if ( meta.wsc && (!this.wsc || - (meta.type === 'ConnectionDetails' && body.recoveryState) || + (meta.type === "ConnectionDetails" && body.recoveryState) || this.wsc.sequence < meta.wsc.sequence) ) { this.wsc = meta.wsc; @@ -330,9 +357,9 @@ class WebSocketExtension extends SdkExtension { // get initial ConnectionDetails data const [meta, body, event] = await Utils.waitForWebSocketMessage( this.ws, - (meta) => meta.type === 'ConnectionDetails' || meta.type === 'Error', + (meta) => meta.type === "ConnectionDetails" || meta.type === "Error", ); - if (meta.type === 'Error') { + if (meta.type === "Error") { throw new ConnectionException(event); } this.connectionDetails = body; @@ -344,7 +371,9 @@ class WebSocketExtension extends SdkExtension { if (this.subscription && this.subscription.enabled) { // because we have a new ws object this.subscription.setupWsEventListener(); - if (!recoverSession || this.connectionDetails.recoveryState === 'Failed') { + if ( + !recoverSession || this.connectionDetails.recoveryState === "Failed" + ) { // create new subscription if don't recover existing one await this.subscription.subscribe(); } @@ -373,7 +402,11 @@ class WebSocketExtension extends SdkExtension { callback: (event: {}) => void, cache: SubscriptionInfo | undefined | null = undefined, ) { - const subscription = new Subscription(this as WebSocketExtensionInterface, eventFilters, callback); + const subscription = new Subscription( + this as WebSocketExtensionInterface, + eventFilters, + callback, + ); if (cache === undefined || cache === null) { await subscription.subscribe(); } else { diff --git a/packages/extensions/ws/src/rest.ts b/packages/extensions/ws/src/rest.ts index 2791fc69..7c5cda69 100644 --- a/packages/extensions/ws/src/rest.ts +++ b/packages/extensions/ws/src/rest.ts @@ -1,12 +1,16 @@ -import type { RestMethod, RestRequestConfig, RestResponse } from '@rc-ex/core/lib/types'; -import RestException from '@rc-ex/core/lib/RestException'; -import hyperid from 'hyperid'; -import { getReasonPhrase } from 'http-status-codes'; +import type { + RestMethod, + RestRequestConfig, + RestResponse, +} from "@rc-ex/core/lib/types"; +import RestException from "@rc-ex/core/lib/RestException"; +import hyperid from "hyperid"; +import { getReasonPhrase } from "http-status-codes"; -import Utils from './utils'; -import type { WebSocketExtensionInterface } from './types'; +import Utils from "./utils"; +import type { WebSocketExtensionInterface } from "./types"; -const version = '0.16'; +const version = "0.16"; const uuid = hyperid(); @@ -29,12 +33,14 @@ export async function request( }; newConfig.headers = { ...newConfig.headers, - 'X-User-Agent': `${this.rc.rest!.appName}/${this.rc.rest!.appVersion} ringcentral-extensible/ws/${version}`, + "X-User-Agent": `${this.rc.rest!.appName}/${ + this.rc.rest!.appVersion + } ringcentral-extensible/ws/${version}`, } as any; const messageId = uuid(); const requestBody = [ { - type: 'ClientRequest', + type: "ClientRequest", messageId, method: newConfig.method, path: newConfig.url, @@ -46,7 +52,10 @@ export async function request( requestBody.push(newConfig.data); } await this.ws.send(JSON.stringify(requestBody)); - const [meta, body] = await Utils.waitForWebSocketMessage(this.ws, (_meta) => _meta.messageId === messageId); + const [meta, body] = await Utils.waitForWebSocketMessage( + this.ws, + (_meta) => _meta.messageId === messageId, + ); const response: RestResponse = { data: body as T, status: meta.status, @@ -54,7 +63,9 @@ export async function request( headers: meta.headers, config: newConfig as any, }; - if (meta.type === 'ClientRequest' && meta.status >= 200 && meta.status < 300) { + if ( + meta.type === "ClientRequest" && meta.status >= 200 && meta.status < 300 + ) { return response; } throw new RestException(response); diff --git a/packages/extensions/ws/src/subscription.ts b/packages/extensions/ws/src/subscription.ts index c99aab60..7615b872 100644 --- a/packages/extensions/ws/src/subscription.ts +++ b/packages/extensions/ws/src/subscription.ts @@ -1,11 +1,11 @@ /* eslint-disable no-console */ -import type CreateSubscriptionRequest from '@rc-ex/core/lib/definitions/CreateSubscriptionRequest'; -import type SubscriptionInfo from '@rc-ex/core/lib/definitions/SubscriptionInfo'; -import type { RestResponse } from '@rc-ex/core/lib/types'; -import type { MessageEvent } from 'ws'; +import type CreateSubscriptionRequest from "@rc-ex/core/lib/definitions/CreateSubscriptionRequest"; +import type SubscriptionInfo from "@rc-ex/core/lib/definitions/SubscriptionInfo"; +import type { RestResponse } from "@rc-ex/core/lib/types"; +import type { MessageEvent } from "ws"; -import type { WsgEvent, WsgMeta, WebSocketExtensionInterface } from './types'; -import Utils from './utils'; +import type { WebSocketExtensionInterface, WsgEvent, WsgMeta } from "./types"; +import Utils from "./utils"; class Subscription { public subscriptionInfo?: SubscriptionInfo; @@ -20,13 +20,21 @@ class Subscription { public enabled = true; - public constructor(wse: WebSocketExtensionInterface, eventFilters: string[], callback: (event: {}) => void) { + public constructor( + wse: WebSocketExtensionInterface, + eventFilters: string[], + callback: (event: {}) => void, + ) { this.wse = wse; this.eventFilters = eventFilters; this.eventListener = (mEvent: MessageEvent) => { const event = mEvent as WsgEvent; - const [meta, body]: [WsgMeta, { subscriptionId: string }] = Utils.splitWsgData(event.data); - if (this.enabled && meta.type === 'ServerNotification' && body.subscriptionId === this.subscriptionInfo!.id) { + const [meta, body]: [WsgMeta, { subscriptionId: string }] = Utils + .splitWsgData(event.data); + if ( + this.enabled && meta.type === "ServerNotification" && + body.subscriptionId === this.subscriptionInfo!.id + ) { callback(body); } }; @@ -34,19 +42,23 @@ class Subscription { } public setupWsEventListener() { - this.wse.ws.addEventListener('message', this.eventListener); + this.wse.ws.addEventListener("message", this.eventListener); } public get requestBody(): CreateSubscriptionRequest { return { - deliveryMode: { transportType: 'WebSocket' as any }, // because WebSocket is not in spec + deliveryMode: { transportType: "WebSocket" as any }, // because WebSocket is not in spec eventFilters: this.eventFilters, }; } public async subscribe() { this.subscriptionInfo = ( - await this.wse.request('POST', '/restapi/v1.0/subscription', this.requestBody) + await this.wse.request( + "POST", + "/restapi/v1.0/subscription", + this.requestBody, + ) ).data; } @@ -57,7 +69,7 @@ class Subscription { try { this.subscriptionInfo = ( await this.wse.request( - 'PUT', + "PUT", `/restapi/v1.0/subscription/${this.subscriptionInfo!.id}`, this.requestBody, ) @@ -76,18 +88,25 @@ class Subscription { return; } try { - await this.wse.request('DELETE', `/restapi/v1.0/subscription/${this.subscriptionInfo!.id}`); + await this.wse.request( + "DELETE", + `/restapi/v1.0/subscription/${this.subscriptionInfo!.id}`, + ); } catch (e) { const re = e as { response: RestResponse }; if (re.response && re.response.status === 404) { // ignore if (this.wse.options.debugMode) { - console.debug(`Subscription ${this.subscriptionInfo!.id} doesn't exist on server side`); + console.debug( + `Subscription ${ + this.subscriptionInfo!.id + } doesn't exist on server side`, + ); } } else if (re.response && re.response.status === 401) { // ignore if (this.wse.options.debugMode) { - console.debug('Token invalid when trying to revoke subscription'); + console.debug("Token invalid when trying to revoke subscription"); } } else { throw e; @@ -104,7 +123,7 @@ class Subscription { this.enabled = false; this.subscriptionInfo = undefined; if (this.wse.ws) { - this.wse.ws.removeEventListener('message', this.eventListener); + this.wse.ws.removeEventListener("message", this.eventListener); } this.wse.subscription = undefined; } diff --git a/packages/extensions/ws/src/types.ts b/packages/extensions/ws/src/types.ts index 79577f5f..0c4af0a7 100644 --- a/packages/extensions/ws/src/types.ts +++ b/packages/extensions/ws/src/types.ts @@ -1,6 +1,10 @@ -import type RingCentral from '@rc-ex/core'; -import type { RestMethod, RestRequestConfig, RestResponse } from '@rc-ex/core/lib/types'; -import type WS from 'isomorphic-ws'; +import type RingCentral from "@rc-ex/core"; +import type { + RestMethod, + RestRequestConfig, + RestResponse, +} from "@rc-ex/core/lib/types"; +import type WS from "isomorphic-ws"; export interface WsToken { uri: string; @@ -30,7 +34,12 @@ export interface Wsc { } export interface WsgMeta { - type: 'ClientRequest' | 'ServerNotification' | 'Error' | 'ConnectionDetails' | 'Heartbeat'; + type: + | "ClientRequest" + | "ServerNotification" + | "Error" + | "ConnectionDetails" + | "Heartbeat"; messageId: string; status: number; headers: { @@ -52,7 +61,7 @@ export interface ConnectionDetails { idleTimeout: number; absoluteTimeout: number; maxActiveRequests: number; - recoveryState?: 'Successful' | 'Failed'; + recoveryState?: "Successful" | "Failed"; recoveryErrorCode?: string; } diff --git a/packages/extensions/ws/src/utils.ts b/packages/extensions/ws/src/utils.ts index 0f98a0ae..3d6a282c 100644 --- a/packages/extensions/ws/src/utils.ts +++ b/packages/extensions/ws/src/utils.ts @@ -1,17 +1,20 @@ /* eslint-disable no-console */ -import type { MessageEvent } from 'isomorphic-ws'; -import type WS from 'isomorphic-ws'; +import type { MessageEvent } from "isomorphic-ws"; +import type WS from "isomorphic-ws"; -import type { WsgMeta, WsgEvent } from './types'; -import ClosedException from './exceptions/ClosedException'; -import TimeoutException from './exceptions/TimeoutException'; +import type { WsgEvent, WsgMeta } from "./types"; +import ClosedException from "./exceptions/ClosedException"; +import TimeoutException from "./exceptions/TimeoutException"; class Utils { // eslint-disable-next-line @typescript-eslint/no-explicit-any public static splitWsgData(wsgData: string): [WsgMeta, any] { - if (wsgData.includes(',--Boundary')) { - const index = wsgData.indexOf(',--Boundary'); - return [JSON.parse(wsgData.substring(1, index)), wsgData.substring(index + 1, wsgData.length - 1)]; + if (wsgData.includes(",--Boundary")) { + const index = wsgData.indexOf(",--Boundary"); + return [ + JSON.parse(wsgData.substring(1, index)), + wsgData.substring(index + 1, wsgData.length - 1), + ]; } return JSON.parse(wsgData); } @@ -27,7 +30,7 @@ ${JSON.stringify(JSON.parse(str), null, 2)} ******`, ); }; - ws.addEventListener('message', (mEvent: MessageEvent) => { + ws.addEventListener("message", (mEvent: MessageEvent) => { const event = mEvent as WsgEvent; console.debug( `*** WebSocket incoming message: *** @@ -35,18 +38,22 @@ ${JSON.stringify(JSON.parse(event.data), null, 2)} ******`, ); }); - ws.addEventListener('open', (event) => { - console.debug('WebSocket open event:', event); + ws.addEventListener("open", (event) => { + console.debug("WebSocket open event:", event); }); - ws.addEventListener('error', (event) => { - console.debug('WebSocket error event:', event); + ws.addEventListener("error", (event) => { + console.debug("WebSocket error event:", event); }); - ws.addEventListener('close', (event) => { - console.debug('WebSocket close event:', event); + ws.addEventListener("close", (event) => { + console.debug("WebSocket close event:", event); }); } - public static waitForWebSocketMessage(ws: WS, matchCondition: (meta: WsgMeta) => boolean, timeout = 60000) { + public static waitForWebSocketMessage( + ws: WS, + matchCondition: (meta: WsgMeta) => boolean, + timeout = 60000, + ) { // eslint-disable-next-line @typescript-eslint/no-explicit-any return new Promise<[WsgMeta, any, WsgEvent]>((resolve, reject) => { const checkHandle = setInterval(() => { @@ -57,7 +64,7 @@ ${JSON.stringify(JSON.parse(event.data), null, 2)} }, 1000); const timeoutHandle = setTimeout(() => { // eslint-disable-next-line @typescript-eslint/no-use-before-define - ws.removeEventListener('message', handler); + ws.removeEventListener("message", handler); clearInterval(checkHandle); reject(new TimeoutException()); }, timeout); @@ -65,13 +72,13 @@ ${JSON.stringify(JSON.parse(event.data), null, 2)} const event = mEvent as WsgEvent; const [meta, body] = Utils.splitWsgData(event.data); if (matchCondition(meta)) { - ws.removeEventListener('message', handler); + ws.removeEventListener("message", handler); clearInterval(checkHandle); clearTimeout(timeoutHandle); resolve([meta, body, event]); } }; - ws.addEventListener('message', handler); + ws.addEventListener("message", handler); }); } } diff --git a/test/a2p.spec.ts b/test/a2p.spec.ts index cfdd6504..21cd0bc3 100644 --- a/test/a2p.spec.ts +++ b/test/a2p.spec.ts @@ -1,13 +1,13 @@ -import path from 'path'; -import dotenv from 'dotenv-override-true'; -import DebugExtension from '@rc-ex/debug'; -import ReusableRestClient from './reusable-rest-client'; +import path from "path"; +import dotenv from "dotenv-override-true"; +import DebugExtension from "@rc-ex/debug"; +import ReusableRestClient from "./reusable-rest-client"; -dotenv.config({ path: path.join(__dirname, '.env.a2p') }); +dotenv.config({ path: path.join(__dirname, ".env.a2p") }); -describe('SMS', () => { - test('send', async () => { - if (process.env.IS_A2P_ENV !== 'true') { +describe("SMS", () => { + test("send", async () => { + if (process.env.IS_A2P_ENV !== "true") { return; } const rc = await ReusableRestClient.getInstance(); @@ -21,11 +21,11 @@ describe('SMS', () => { .batches() .post({ from: process.env.RINGCENTRAL_FROM!, - text: 'hello world', + text: "hello world", messages: [ { to: [process.env.RINGCENTRAL_TO!], - text: 'hello world 2', // override 'hello world' + text: "hello world 2", // override 'hello world' }, ], }); diff --git a/test/address-book.spec.ts b/test/address-book.spec.ts index 29302154..65fa0b84 100644 --- a/test/address-book.spec.ts +++ b/test/address-book.spec.ts @@ -1,15 +1,16 @@ -import ReusableRestClient from './reusable-rest-client'; +import ReusableRestClient from "./reusable-rest-client"; -describe('Address Book', () => { - test('contacts', async () => { +describe("Address Book", () => { + test("contacts", async () => { const rc = await ReusableRestClient.getInstance(); - const r = await rc.restapi().account().extension().addressBook().contact().list(); + const r = await rc.restapi().account().extension().addressBook().contact() + .list(); expect(r).toBeDefined(); expect(r.records).toBeDefined(); expect(r.records!.length).toBeGreaterThanOrEqual(0); // by default address book is empty }); - test('extensions', async () => { + test("extensions", async () => { const rc = await ReusableRestClient.getInstance(); const r = await rc .restapi() diff --git a/test/authorize-uri-extension.spec.ts b/test/authorize-uri-extension.spec.ts index 60166e72..51d06acd 100644 --- a/test/authorize-uri-extension.spec.ts +++ b/test/authorize-uri-extension.spec.ts @@ -1,8 +1,8 @@ -import RingCentral from '@rc-ex/core'; -import AuthorizeUriExtension from '@rc-ex/authorize-uri'; +import RingCentral from "@rc-ex/core"; +import AuthorizeUriExtension from "@rc-ex/authorize-uri"; -describe('Authorize URI Extension', () => { - test('default', async () => { +describe("Authorize URI Extension", () => { + test("default", async () => { const rc = new RingCentral({ clientId: process.env.RINGCENTRAL_CLIENT_ID!, clientSecret: process.env.RINGCENTRAL_CLIENT_SECRET!, @@ -11,11 +11,11 @@ describe('Authorize URI Extension', () => { const authorizeUriExtension = new AuthorizeUriExtension(); await rc.installExtension(authorizeUriExtension); const authorizeUri = authorizeUriExtension.buildUri({ - state: 'hello', - redirect_uri: 'https://example.com', + state: "hello", + redirect_uri: "https://example.com", }); expect(authorizeUri).toBeDefined(); - expect(authorizeUri.indexOf('state=hello')).not.toBe(-1); + expect(authorizeUri.indexOf("state=hello")).not.toBe(-1); expect(authorizeUri.startsWith(rc.rest.server)).toBeTruthy(); await authorizeUriExtension.revoke(); }); diff --git a/test/authorize.spec.ts b/test/authorize.spec.ts index 6c338404..7101f3bf 100644 --- a/test/authorize.spec.ts +++ b/test/authorize.spec.ts @@ -1,7 +1,7 @@ -import ReusableRestClient from './reusable-rest-client'; +import ReusableRestClient from "./reusable-rest-client"; -describe('authorize', () => { - test('password flow', async () => { +describe("authorize", () => { + test("password flow", async () => { // because password flow is deprecated, we don't test it // const rc = new RingCentral({ // clientId: process.env.RINGCENTRAL_CLIENT_ID!, @@ -18,7 +18,7 @@ describe('authorize', () => { // await rc.revoke(); }); - test('refresh', async () => { + test("refresh", async () => { const rc = await ReusableRestClient.getInstance(); const tokenInfo = rc.token!; const newTokenInfo = await rc.refresh(); diff --git a/test/auto-refresh-extension.spec.ts b/test/auto-refresh-extension.spec.ts index 5933462d..79bfcf9c 100644 --- a/test/auto-refresh-extension.spec.ts +++ b/test/auto-refresh-extension.spec.ts @@ -1,12 +1,14 @@ -import AutoRefreshExtension from '@rc-ex/auto-refresh'; -import waitFor from 'wait-for-async'; +import AutoRefreshExtension from "@rc-ex/auto-refresh"; +import waitFor from "wait-for-async"; -import ReusableRestClient from './reusable-rest-client'; +import ReusableRestClient from "./reusable-rest-client"; -describe('Auto Refresh Extension', () => { - test('default', async () => { +describe("Auto Refresh Extension", () => { + test("default", async () => { const rc = await ReusableRestClient.getInstance(); - const autoRefreshExtension = new AutoRefreshExtension({ interval: 1000 * 2 }); // refresh every 2 seconds + const autoRefreshExtension = new AutoRefreshExtension({ + interval: 1000 * 2, + }); // refresh every 2 seconds await rc.installExtension(autoRefreshExtension); let accessToken = rc.token?.access_token; autoRefreshExtension.start(); diff --git a/test/batch-get.spec.ts b/test/batch-get.spec.ts index 9dab18a4..13448fc0 100644 --- a/test/batch-get.spec.ts +++ b/test/batch-get.spec.ts @@ -1,6 +1,6 @@ -import ReusableRestClient from './reusable-rest-client'; +import ReusableRestClient from "./reusable-rest-client"; -describe('batch get', () => { +describe("batch get", () => { test("get extension's presence info", async () => { const rc = await ReusableRestClient.getInstance(); const extensions = await rc.restapi().account().extension().list({ @@ -8,10 +8,12 @@ describe('batch get', () => { }); // batch requests limited to 30 max expect(extensions.records?.length).toBeGreaterThan(1); const r = await rc.get( - `/restapi/v1.0/account/~/extension/${extensions.records?.map((record) => record.id).join(',')}/presence`, + `/restapi/v1.0/account/~/extension/${ + extensions.records?.map((record) => record.id).join(",") + }/presence`, ); expect(r).not.toBeNull(); expect(r.data).not.toBeNull(); - expect(r.data).toContain('--Boundary'); + expect(r.data).toContain("--Boundary"); }); }); diff --git a/test/call-log.spec.ts b/test/call-log.spec.ts index 4ea564cf..ad328222 100644 --- a/test/call-log.spec.ts +++ b/test/call-log.spec.ts @@ -1,6 +1,6 @@ // import winston from 'winston'; -import ReusableRestClient from './reusable-rest-client'; +import ReusableRestClient from "./reusable-rest-client"; // const logger = winston.createLogger({ // transports: [ @@ -13,24 +13,26 @@ import ReusableRestClient from './reusable-rest-client'; // RingCentral.config.logger = console; -describe('call log', () => { - test('list call log', async () => { +describe("call log", () => { + test("list call log", async () => { const rc = await ReusableRestClient.getInstance(); const callLogs = await rc.restapi().account().extension().callLog().list({ - dateFrom: '2020-06-08T15:41:00.000Z', - dateTo: '2020-06-08T16:12:00.000Z', + dateFrom: "2020-06-08T15:41:00.000Z", + dateTo: "2020-06-08T16:12:00.000Z", }); expect(callLogs).not.toBeUndefined(); expect(callLogs.records).not.toBeUndefined(); }); - test('call log sync', async () => { + test("call log sync", async () => { const rc = await ReusableRestClient.getInstance(); - const callLogs = await rc.restapi().account().extension().callLogSync().get({ - syncType: 'FSync', - dateFrom: '2020-06-08T15:41:00.000Z', - recordCount: 5, - }); + const callLogs = await rc.restapi().account().extension().callLogSync().get( + { + syncType: "FSync", + dateFrom: "2020-06-08T15:41:00.000Z", + recordCount: 5, + }, + ); expect(callLogs).not.toBeUndefined(); expect(callLogs.records).not.toBeUndefined(); @@ -40,7 +42,7 @@ describe('call log', () => { .extension() .callLogSync() .get({ - syncType: 'ISync', + syncType: "ISync", recordCount: 5, syncToken: callLogs.syncInfo!.syncToken, }); diff --git a/test/debug-extension.spec.ts b/test/debug-extension.spec.ts index b4090dbd..528c5e04 100644 --- a/test/debug-extension.spec.ts +++ b/test/debug-extension.spec.ts @@ -1,9 +1,9 @@ -import DebugExtension from '@rc-ex/debug'; +import DebugExtension from "@rc-ex/debug"; -import ReusableRestClient from './reusable-rest-client'; +import ReusableRestClient from "./reusable-rest-client"; -describe('Debug Extension', () => { - test('default', async () => { +describe("Debug Extension", () => { + test("default", async () => { const rc = await ReusableRestClient.getInstance(); const debugExtension = new DebugExtension(); await rc.installExtension(debugExtension); diff --git a/test/download-fax.spec.ts b/test/download-fax.spec.ts index e6953907..6acc6e7f 100644 --- a/test/download-fax.spec.ts +++ b/test/download-fax.spec.ts @@ -1,10 +1,10 @@ -import fs from 'fs'; -import path from 'path'; +import fs from "fs"; +import path from "path"; -import ReusableRestClient from './reusable-rest-client'; +import ReusableRestClient from "./reusable-rest-client"; -describe('fax', () => { - test('download fax', async () => { +describe("fax", () => { + test("download fax", async () => { const rc = await ReusableRestClient.getInstance(); const faxMessages = await rc .restapi() @@ -12,20 +12,24 @@ describe('fax', () => { .extension() .messageStore() .list({ - messageType: ['Fax'], - direction: ['Inbound'], - dateFrom: '2010-04-15T17:18:00.000Z', + messageType: ["Fax"], + direction: ["Inbound"], + dateFrom: "2010-04-15T17:18:00.000Z", }); if (faxMessages.records?.length === 0) { return; } - const r = await rc.get(faxMessages.records?.[0].attachments?.[0].uri ?? '', undefined, { - responseType: 'arraybuffer', - }); - fs.writeFileSync(path.join(__dirname, 'temp.pdf'), r.data); + const r = await rc.get( + faxMessages.records?.[0].attachments?.[0].uri ?? "", + undefined, + { + responseType: "arraybuffer", + }, + ); + fs.writeFileSync(path.join(__dirname, "temp.pdf"), r.data); }); - test('CDN URI', async () => { + test("CDN URI", async () => { const rc = await ReusableRestClient.getInstance(); const faxMessages = await rc .restapi() @@ -33,15 +37,15 @@ describe('fax', () => { .extension() .messageStore() .list({ - messageType: ['Fax'], - direction: ['Inbound'], - dateFrom: '2010-04-15T17:18:00.000Z', + messageType: ["Fax"], + direction: ["Inbound"], + dateFrom: "2010-04-15T17:18:00.000Z", }); if (faxMessages.records?.length === 0) { return; } expect( - faxMessages.records?.[0].attachments?.[0].uri!.startsWith('https://'), // absolute CDN uri + faxMessages.records?.[0].attachments?.[0].uri!.startsWith("https://"), // absolute CDN uri ).toBeTruthy(); }); }); diff --git a/test/events-extension.spec.ts b/test/events-extension.spec.ts index 284c6db2..ac004d28 100644 --- a/test/events-extension.spec.ts +++ b/test/events-extension.spec.ts @@ -1,10 +1,10 @@ -import EventsExtension, { Events } from '@rc-ex/events'; -import Utils from '@rc-ex/core/lib/Utils'; +import EventsExtension, { Events } from "@rc-ex/events"; +import Utils from "@rc-ex/core/lib/Utils"; -import ReusableRestClient from './reusable-rest-client'; +import ReusableRestClient from "./reusable-rest-client"; -describe('Event Emitter Extension', () => { - test('default', async () => { +describe("Event Emitter Extension", () => { + test("default", async () => { const rc = await ReusableRestClient.getInstance(); const eventsExtension = new EventsExtension(); await rc.installExtension(eventsExtension); diff --git a/test/exceptions.spec.ts b/test/exceptions.spec.ts index 5003fa68..cc34b2e7 100644 --- a/test/exceptions.spec.ts +++ b/test/exceptions.spec.ts @@ -1,15 +1,17 @@ -import type { RestResponse } from '@rc-ex/core/lib/types'; -import RestException from '@rc-ex/core/lib/RestException'; +import type { RestResponse } from "@rc-ex/core/lib/types"; +import RestException from "@rc-ex/core/lib/RestException"; -import ReusableRestClient from './reusable-rest-client'; +import ReusableRestClient from "./reusable-rest-client"; -describe('Exceptions', () => { - test('400', async () => { +describe("Exceptions", () => { + test("400", async () => { const rc = await ReusableRestClient.getInstance(); let exception = false; try { // no to number - await rc.restapi().account().extension().sms().post({ text: 'Hello world' }); + await rc.restapi().account().extension().sms().post({ + text: "Hello world", + }); } catch (e) { exception = true; expect(e instanceof RestException).toBeTruthy(); @@ -20,11 +22,14 @@ describe('Exceptions', () => { } }); - test('404', async () => { + test("404", async () => { const rc = await ReusableRestClient.getInstance(); let exception = false; try { - await rc.post(`${rc.restapi().account().extension().path(true)}/does-not-exist`, { text: 'Hello world' }); + await rc.post( + `${rc.restapi().account().extension().path(true)}/does-not-exist`, + { text: "Hello world" }, + ); } catch (e) { exception = true; expect(e instanceof RestException).toBeTruthy(); diff --git a/test/extension-info.spec.ts b/test/extension-info.spec.ts index daa50cec..6b053211 100644 --- a/test/extension-info.spec.ts +++ b/test/extension-info.spec.ts @@ -1,7 +1,7 @@ -import ReusableRestClient from './reusable-rest-client'; +import ReusableRestClient from "./reusable-rest-client"; -describe('HTTP GET', () => { - test('get extension info', async () => { +describe("HTTP GET", () => { + test("get extension info", async () => { const rc = await ReusableRestClient.getInstance(); const extensionInfo = await rc.restapi().account().extension().get(); expect(extensionInfo).not.toBeUndefined(); diff --git a/test/fax-cover-pages.spec.ts b/test/fax-cover-pages.spec.ts index 4a982376..2082832a 100644 --- a/test/fax-cover-pages.spec.ts +++ b/test/fax-cover-pages.spec.ts @@ -1,10 +1,10 @@ -import ReusableRestClient from './reusable-rest-client'; +import ReusableRestClient from "./reusable-rest-client"; -describe('fax cover pages', () => { - test('fax cover pages', async () => { +describe("fax cover pages", () => { + test("fax cover pages", async () => { const rc = await ReusableRestClient.getInstance(); const faxCoverPages = await rc.restapi().dictionary().faxCoverPage().get(); expect(faxCoverPages.records?.length).toBeGreaterThan(0); - expect(faxCoverPages.records?.[0].name).toBe('None'); + expect(faxCoverPages.records?.[0].name).toBe("None"); }); }); diff --git a/test/fax-fail-reason.spec.ts b/test/fax-fail-reason.spec.ts index 70c0443d..6e641ee0 100644 --- a/test/fax-fail-reason.spec.ts +++ b/test/fax-fail-reason.spec.ts @@ -1,7 +1,7 @@ -import ReusableRestClient from './reusable-rest-client'; +import ReusableRestClient from "./reusable-rest-client"; -describe('fax fail reason', () => { - test('default', async () => { +describe("fax fail reason", () => { + test("default", async () => { const rc = await ReusableRestClient.getInstance(); const messages = await rc .restapi() @@ -9,13 +9,17 @@ describe('fax fail reason', () => { .extension() .messageStore() .list({ - messageType: ['Fax'], - direction: ['Outbound'], - dateFrom: '2010-04-15T17:18:00.000Z', + messageType: ["Fax"], + direction: ["Outbound"], + dateFrom: "2010-04-15T17:18:00.000Z", }); - const failedFaxes = messages.records?.filter((m) => m.messageStatus === 'SendingFailed'); + const failedFaxes = messages.records?.filter((m) => + m.messageStatus === "SendingFailed" + ); for (const failedFax of failedFaxes ?? []) { - expect(failedFax.to?.some((t) => t.faxErrorCode && t.faxErrorCode.length > 0)).toBeTruthy(); + expect( + failedFax.to?.some((t) => t.faxErrorCode && t.faxErrorCode.length > 0), + ).toBeTruthy(); } }); }); diff --git a/test/fax.spec.ts b/test/fax.spec.ts index e25c28f6..79a07b5b 100644 --- a/test/fax.spec.ts +++ b/test/fax.spec.ts @@ -1,46 +1,53 @@ -import type CreateFaxMessageRequest from '@rc-ex/core/lib/definitions/CreateFaxMessageRequest'; -import type Attachment from '@rc-ex/core/lib/definitions/Attachment'; -import type FaxResponse from '@rc-ex/core/lib/definitions/FaxResponse'; -import Utils from '@rc-ex/core/lib/Utils'; -import fs from 'fs'; -import path from 'path'; +import type CreateFaxMessageRequest from "@rc-ex/core/lib/definitions/CreateFaxMessageRequest"; +import type Attachment from "@rc-ex/core/lib/definitions/Attachment"; +import type FaxResponse from "@rc-ex/core/lib/definitions/FaxResponse"; +import Utils from "@rc-ex/core/lib/Utils"; +import fs from "fs"; +import path from "path"; -import ReusableRestClient from './reusable-rest-client'; +import ReusableRestClient from "./reusable-rest-client"; -describe('fax', () => { - test('send fax', async () => { +describe("fax", () => { + test("send fax", async () => { const rc = await ReusableRestClient.getInstance(); const createFaxMessageRequest: CreateFaxMessageRequest = {}; - createFaxMessageRequest.to = [{ phoneNumber: process.env.RINGCENTRAL_RECEIVER }]; + createFaxMessageRequest.to = [{ + phoneNumber: process.env.RINGCENTRAL_RECEIVER, + }]; const attachment1: Attachment = {}; - attachment1.filename = 'text.txt'; - attachment1.content = 'hello world'; - attachment1.contentType = 'text/plain'; + attachment1.filename = "text.txt"; + attachment1.content = "hello world"; + attachment1.contentType = "text/plain"; const attachment2: Attachment = {}; - attachment2.filename = 'text.png'; - attachment2.content = fs.createReadStream(path.join(__dirname, 'test.png')); - attachment2.contentType = 'image/png'; + attachment2.filename = "text.png"; + attachment2.content = fs.createReadStream(path.join(__dirname, "test.png")); + attachment2.contentType = "image/png"; createFaxMessageRequest.attachments = [attachment1, attachment2]; - const messageInfo = await rc.restapi().account().extension().fax().post(createFaxMessageRequest); + const messageInfo = await rc.restapi().account().extension().fax().post( + createFaxMessageRequest, + ); expect(messageInfo).not.toBeUndefined(); expect(messageInfo.id).not.toBeUndefined(); }); - test('send fax - low level api', async () => { + test("send fax - low level api", async () => { const rc = await ReusableRestClient.getInstance(); const attachment1: Attachment = {}; - attachment1.filename = 'text.txt'; - attachment1.content = 'hello world'; - attachment1.contentType = 'text/plain'; + attachment1.filename = "text.txt"; + attachment1.content = "hello world"; + attachment1.contentType = "text/plain"; const attachment2: Attachment = {}; - attachment2.filename = 'text.png'; - attachment2.content = fs.createReadStream(path.join(__dirname, 'test.png')); - attachment2.contentType = 'image/png'; + attachment2.filename = "text.png"; + attachment2.content = fs.createReadStream(path.join(__dirname, "test.png")); + attachment2.contentType = "image/png"; const formData = await Utils.getFormData({ attachments: [attachment1, attachment2], - to: [{ phoneNumber: process.env.RINGCENTRAL_RECEIVER, name: 'To Name' }], + to: [{ phoneNumber: process.env.RINGCENTRAL_RECEIVER, name: "To Name" }], }); - const r = await rc.post('/restapi/v1.0/account/~/extension/~/fax', formData); + const r = await rc.post( + "/restapi/v1.0/account/~/extension/~/fax", + formData, + ); const messageInfo = r.data; expect(messageInfo).not.toBeUndefined(); expect(messageInfo.id).not.toBeUndefined(); diff --git a/test/forward-all-company-calls.spec.ts b/test/forward-all-company-calls.spec.ts index 845a4c12..c6b2de49 100644 --- a/test/forward-all-company-calls.spec.ts +++ b/test/forward-all-company-calls.spec.ts @@ -1,7 +1,7 @@ -import ReusableRestClient from './reusable-rest-client'; +import ReusableRestClient from "./reusable-rest-client"; -describe('Forward all company calls', () => { - test('patch', async () => { +describe("Forward all company calls", () => { + test("patch", async () => { const rc = await ReusableRestClient.getInstance(); const r = await rc.restapi().account().forwardAllCalls().patch({ enabled: false, diff --git a/test/jest.config.ts b/test/jest.config.ts index 4fcda378..8f29b694 100644 --- a/test/jest.config.ts +++ b/test/jest.config.ts @@ -1,7 +1,7 @@ const config = { - preset: 'ts-jest', - testEnvironment: 'node', - setupFiles: ['dotenv-override-true/config'], + preset: "ts-jest", + testEnvironment: "node", + setupFiles: ["dotenv-override-true/config"], testTimeout: 256000, }; diff --git a/test/list-meetings.spec.ts b/test/list-meetings.spec.ts index 9b454b6b..6db406ad 100644 --- a/test/list-meetings.spec.ts +++ b/test/list-meetings.spec.ts @@ -1,7 +1,7 @@ // import ReusableRestClient from './reusable-rest-client'; -describe('list meetings', () => { - test('default', async () => { +describe("list meetings", () => { + test("default", async () => { // meetings have been replaced with RCV, so this test is no longer valid // const rc = await ReusableRestClient.getInstance(); // const meetingList = await rc.restapi().account().extension().meeting().list(); diff --git a/test/low-level-api.spec.ts b/test/low-level-api.spec.ts index a8502c91..8684d3a7 100644 --- a/test/low-level-api.spec.ts +++ b/test/low-level-api.spec.ts @@ -1,48 +1,54 @@ -import Utils from '@rc-ex/core/lib/Utils'; -import type FaxResponse from '@rc-ex/core/lib/definitions/FaxResponse'; -import type GetSMSMessageInfoResponse from '@rc-ex/core/lib/definitions/GetSMSMessageInfoResponse'; -import fs from 'fs'; -import path from 'path'; +import Utils from "@rc-ex/core/lib/Utils"; +import type FaxResponse from "@rc-ex/core/lib/definitions/FaxResponse"; +import type GetSMSMessageInfoResponse from "@rc-ex/core/lib/definitions/GetSMSMessageInfoResponse"; +import fs from "fs"; +import path from "path"; -import ReusableRestClient from './reusable-rest-client'; +import ReusableRestClient from "./reusable-rest-client"; -describe('low level API', () => { - test('sms', async () => { +describe("low level API", () => { + test("sms", async () => { const rc = await ReusableRestClient.getInstance(); - const r = await rc.post('/restapi/v1.0/account/~/extension/~/sms', { - from: { - phoneNumber: process.env.RINGCENTRAL_SENDER!, - }, - to: [ - { - phoneNumber: process.env.RINGCENTRAL_RECEIVER, + const r = await rc.post( + "/restapi/v1.0/account/~/extension/~/sms", + { + from: { + phoneNumber: process.env.RINGCENTRAL_SENDER!, }, - ], - text: 'hello world', - }); + to: [ + { + phoneNumber: process.env.RINGCENTRAL_RECEIVER, + }, + ], + text: "hello world", + }, + ); const messageInfo = r.data; expect(messageInfo).not.toBeUndefined(); expect(messageInfo.id).not.toBeUndefined(); }); - test('fax', async () => { + test("fax", async () => { const rc = await ReusableRestClient.getInstance(); const requestBody = { to: [{ phoneNumber: process.env.RINGCENTRAL_RECEIVER }], attachments: [ { - filename: 'test.txt', - content: 'hello world', - contentType: 'text/plain', + filename: "test.txt", + content: "hello world", + contentType: "text/plain", }, { - filename: 'test.png', - content: fs.createReadStream(path.join(__dirname, 'test.png')), - contentType: 'image/png', + filename: "test.png", + content: fs.createReadStream(path.join(__dirname, "test.png")), + contentType: "image/png", }, ], }; const formData = await Utils.getFormData(requestBody); - const r = await rc.post('/restapi/v1.0/account/~/extension/~/fax', formData); + const r = await rc.post( + "/restapi/v1.0/account/~/extension/~/fax", + formData, + ); const messageInfo = r.data; expect(messageInfo).not.toBeUndefined(); expect(messageInfo.id).not.toBeUndefined(); diff --git a/test/manage-token.spec.ts b/test/manage-token.spec.ts index 3f34fa61..2e3b1a86 100644 --- a/test/manage-token.spec.ts +++ b/test/manage-token.spec.ts @@ -1,7 +1,7 @@ -import ReusableRestClient from './reusable-rest-client'; +import ReusableRestClient from "./reusable-rest-client"; -describe('manage token', () => { - test('get and set token', async () => { +describe("manage token", () => { + test("get and set token", async () => { const rc = await ReusableRestClient.getInstance(); // get token diff --git a/test/message-store.spec.ts b/test/message-store.spec.ts index 4945ac0d..a80c7d1c 100644 --- a/test/message-store.spec.ts +++ b/test/message-store.spec.ts @@ -1,7 +1,7 @@ -import ReusableRestClient from './reusable-rest-client'; +import ReusableRestClient from "./reusable-rest-client"; -describe('message store', () => { - test('every inbound fax should have from info', async () => { +describe("message store", () => { + test("every inbound fax should have from info", async () => { const rc = await ReusableRestClient.getInstance(); const messageList = await rc .restapi() @@ -9,15 +9,17 @@ describe('message store', () => { .extension() .messageStore() .list({ - messageType: ['Fax'], - direction: ['Inbound'], - dateFrom: '2010-04-15T17:18:00.000Z', + messageType: ["Fax"], + direction: ["Inbound"], + dateFrom: "2010-04-15T17:18:00.000Z", }); if (messageList.records?.length === 0) { return; } expect(messageList.records?.length).toBeGreaterThan(0); - expect(messageList.records?.filter((r) => 'from' in r).length).toBe(messageList.records?.length); + expect(messageList.records?.filter((r) => "from" in r).length).toBe( + messageList.records?.length, + ); const messageInfo = await rc .restapi() .account() diff --git a/test/mms.spec.ts b/test/mms.spec.ts index 00c20737..6cc53690 100644 --- a/test/mms.spec.ts +++ b/test/mms.spec.ts @@ -1,21 +1,23 @@ -import type CreateMMSMessage from '@rc-ex/core/lib/definitions/CreateMMSMessage'; -import type Attachment from '@rc-ex/core/lib/definitions/Attachment'; -import fs from 'fs'; -import path from 'path'; -import ReusableRestClient from './reusable-rest-client'; +import type CreateMMSMessage from "@rc-ex/core/lib/definitions/CreateMMSMessage"; +import type Attachment from "@rc-ex/core/lib/definitions/Attachment"; +import fs from "fs"; +import path from "path"; +import ReusableRestClient from "./reusable-rest-client"; -describe('mms', () => { - test('send mms', async () => { +describe("mms", () => { + test("send mms", async () => { const rc = await ReusableRestClient.getInstance(); const createMMSMessage: CreateMMSMessage = {}; createMMSMessage.from = { phoneNumber: process.env.RINGCENTRAL_SENDER! }; createMMSMessage.to = [{ phoneNumber: process.env.RINGCENTRAL_RECEIVER }]; const attachment: Attachment = {}; - attachment.filename = 'text.png'; - attachment.content = fs.createReadStream(path.join(__dirname, 'test.png')); - attachment.contentType = 'image/png'; + attachment.filename = "text.png"; + attachment.content = fs.createReadStream(path.join(__dirname, "test.png")); + attachment.contentType = "image/png"; createMMSMessage.attachments = [attachment]; - const messageInfo = await rc.restapi().account().extension().mms().post(createMMSMessage); + const messageInfo = await rc.restapi().account().extension().mms().post( + createMMSMessage, + ); expect(messageInfo).not.toBeUndefined(); expect(messageInfo.id).not.toBeUndefined(); }); diff --git a/test/multiple-extensions.spec.ts b/test/multiple-extensions.spec.ts index 7ab84aa7..bd1d0889 100644 --- a/test/multiple-extensions.spec.ts +++ b/test/multiple-extensions.spec.ts @@ -1,16 +1,16 @@ -import { SDK } from '@ringcentral/sdk'; -import waitFor from 'wait-for-async'; +import { SDK } from "@ringcentral/sdk"; +import waitFor from "wait-for-async"; // import dotenv from 'dotenv-override-true'; // import path from 'path'; -import RingCentral from '@rc-ex/core'; -import RcSdkExtension from '@rc-ex/rcsdk'; -import WebSocketExtension from '@rc-ex/ws'; +import RingCentral from "@rc-ex/core"; +import RcSdkExtension from "@rc-ex/rcsdk"; +import WebSocketExtension from "@rc-ex/ws"; // dotenv.config({path: path.join(__dirname, '.env.lab')}); -describe('extensions', () => { - test('RingCentral Extension + WebSocket Extension', async () => { +describe("extensions", () => { + test("RingCentral Extension + WebSocket Extension", async () => { // if (process.env.IS_LAB_ENV !== 'true') { // return; // } @@ -36,7 +36,9 @@ describe('extensions', () => { // setup subscription let eventCount = 0; - await webSocketExtension.subscribe(['/restapi/v1.0/account/~/extension/~/message-store'], (event) => { + await webSocketExtension.subscribe([ + "/restapi/v1.0/account/~/extension/~/message-store", + ], (event) => { expect(event).toBeDefined(); eventCount += 1; }); @@ -51,7 +53,7 @@ describe('extensions', () => { .post({ from: { extensionId: token!.owner_id! }, to: [{ extensionId: token!.owner_id! }], // send pager to oneself - text: 'Hello world', + text: "Hello world", }); const successful = await waitFor({ diff --git a/test/profile-image.spec.ts b/test/profile-image.spec.ts index 6c443d5d..22498dff 100644 --- a/test/profile-image.spec.ts +++ b/test/profile-image.spec.ts @@ -1,16 +1,17 @@ -import fs from 'fs'; -import path from 'path'; -import ReusableRestClient from './reusable-rest-client'; +import fs from "fs"; +import path from "path"; +import ReusableRestClient from "./reusable-rest-client"; -describe('Profile image', () => { - test('download', async () => { +describe("Profile image", () => { + test("download", async () => { const rc = await ReusableRestClient.getInstance(); - const buffer = await rc.restapi().account().extension().profileImage().list(); - expect(buffer.constructor.name).toBe('Buffer'); - fs.writeFileSync(path.join(__dirname, 'temp.png'), buffer); + const buffer = await rc.restapi().account().extension().profileImage() + .list(); + expect(buffer.constructor.name).toBe("Buffer"); + fs.writeFileSync(path.join(__dirname, "temp.png"), buffer); }); - test('upload', async () => { + test("upload", async () => { const rc = await ReusableRestClient.getInstance(); await rc .restapi() @@ -19,14 +20,14 @@ describe('Profile image', () => { .profileImage() .post({ image: { - filename: 'rc.png', - contentType: 'image/png', - content: fs.readFileSync('./test.png'), + filename: "rc.png", + contentType: "image/png", + content: fs.readFileSync("./test.png"), }, }); }); - test('download others', async () => { + test("download others", async () => { // const rc = new RingCentral({ // clientId: process.env.RINGCENTRAL_CLIENT_ID!, // clientSecret: process.env.RINGCENTRAL_CLIENT_SECRET!, diff --git a/test/rcsdk-extension/default.spec.ts b/test/rcsdk-extension/default.spec.ts index 4fe4d546..0959225a 100644 --- a/test/rcsdk-extension/default.spec.ts +++ b/test/rcsdk-extension/default.spec.ts @@ -1,9 +1,9 @@ -import RingCentral from '@rc-ex/core'; -import RcSdkExtension from '@rc-ex/rcsdk'; -import { SDK } from '@ringcentral/sdk'; +import RingCentral from "@rc-ex/core"; +import RcSdkExtension from "@rc-ex/rcsdk"; +import { SDK } from "@ringcentral/sdk"; -describe('RingCentral extension', () => { - test('default', async () => { +describe("RingCentral extension", () => { + test("default", async () => { const sdk = new SDK({ clientId: process.env.RINGCENTRAL_CLIENT_ID!, clientSecret: process.env.RINGCENTRAL_CLIENT_SECRET!, diff --git a/test/reusable-rest-client.ts b/test/reusable-rest-client.ts index 730d9af5..41823657 100644 --- a/test/reusable-rest-client.ts +++ b/test/reusable-rest-client.ts @@ -1,4 +1,4 @@ -import RingCentral from '@rc-ex/core'; +import RingCentral from "@rc-ex/core"; class ReusableRestClient { private static rc: RingCentral; diff --git a/test/schedule-meeting.spec.ts b/test/schedule-meeting.spec.ts index 47be846c..f2228fae 100644 --- a/test/schedule-meeting.spec.ts +++ b/test/schedule-meeting.spec.ts @@ -8,8 +8,8 @@ // import {createRingCentral} from './utils'; // meetings has been replaced by RCV -describe('schedule meeting', () => { - test('for myself', async () => { +describe("schedule meeting", () => { + test("for myself", async () => { // const rc = await ReusableRestClient.getInstance(); // // schedule a meeting // const meetingRequestResource = new MeetingRequestResource(); @@ -41,7 +41,7 @@ describe('schedule meeting', () => { // await rc.revoke(); }); - test('for others', async () => { + test("for others", async () => { // const rc = await ReusableRestClient.getInstance(); // const rc2 = new RingCentral({ // clientId: process.env.RINGCENTRAL_CLIENT_ID!, diff --git a/test/sms.spec.ts b/test/sms.spec.ts index 8d51676c..189e0a26 100644 --- a/test/sms.spec.ts +++ b/test/sms.spec.ts @@ -1,7 +1,7 @@ -import ReusableRestClient from './reusable-rest-client'; +import ReusableRestClient from "./reusable-rest-client"; -describe('SMS', () => { - test('send', async () => { +describe("SMS", () => { + test("send", async () => { const rc = await ReusableRestClient.getInstance(); const messageInfo = await rc .restapi() @@ -17,7 +17,7 @@ describe('SMS', () => { phoneNumber: process.env.RINGCENTRAL_RECEIVER, }, ], - text: 'hello world', + text: "hello world", }); expect(messageInfo).not.toBeUndefined(); expect(messageInfo.id).not.toBeUndefined(); diff --git a/test/types.d.ts b/test/types.d.ts index c327941e..39da67e5 100644 --- a/test/types.d.ts +++ b/test/types.d.ts @@ -1 +1 @@ -declare module 'dotenv-override-true'; +declare module "dotenv-override-true"; diff --git a/test/update-extension.spec.ts b/test/update-extension.spec.ts index 771cbcac..8a7d5a42 100644 --- a/test/update-extension.spec.ts +++ b/test/update-extension.spec.ts @@ -1,7 +1,7 @@ -import ReusableRestClient from './reusable-rest-client'; +import ReusableRestClient from "./reusable-rest-client"; -describe('Update extension', () => { - test('default', async () => { +describe("Update extension", () => { + test("default", async () => { const rc = await ReusableRestClient.getInstance(); let extensionInfo = await rc.restapi().account().extension().get(); const firstName = extensionInfo.contact?.firstName; @@ -13,12 +13,12 @@ describe('Update extension', () => { .extension() .put({ contact: { - lastName: 'lastName', - firstName: 'firstName', + lastName: "lastName", + firstName: "firstName", }, }); extensionInfo = await rc.restapi().account().extension().get(); - expect(extensionInfo.contact?.firstName).toEqual('firstName'); + expect(extensionInfo.contact?.firstName).toEqual("firstName"); await rc.restapi().account().extension().put({ contact: { diff --git a/test/upload-ivr-audio.spec.ts b/test/upload-ivr-audio.spec.ts index c7094348..69f33b87 100644 --- a/test/upload-ivr-audio.spec.ts +++ b/test/upload-ivr-audio.spec.ts @@ -1,20 +1,20 @@ -import fs from 'fs'; +import fs from "fs"; -import ReusableRestClient from './reusable-rest-client'; +import ReusableRestClient from "./reusable-rest-client"; -describe('IVR Audio', () => { - test('upload', async () => { +describe("IVR Audio", () => { + test("upload", async () => { const rc = await ReusableRestClient.getInstance(); await rc .restapi() .account() .ivrPrompts() .post({ - name: 'Uploaded via API', + name: "Uploaded via API", attachment: { - filename: 'test.mp3', - contentType: 'audio/mpeg', - content: fs.readFileSync('./test.mp3'), + filename: "test.mp3", + contentType: "audio/mpeg", + content: fs.readFileSync("./test.mp3"), }, }); }); diff --git a/test/v2.spec.ts b/test/v2.spec.ts index 83e7f885..fdda8763 100644 --- a/test/v2.spec.ts +++ b/test/v2.spec.ts @@ -1,9 +1,9 @@ -import ReusableRestClient from './reusable-rest-client'; +import ReusableRestClient from "./reusable-rest-client"; -describe('SMS', () => { - test('send', async () => { +describe("SMS", () => { + test("send", async () => { const rc = await ReusableRestClient.getInstance(); const path = await rc.restapi().v2().accounts().path(); - expect(path).toEqual('/restapi/v2/accounts/~'); + expect(path).toEqual("/restapi/v2/accounts/~"); }); }); diff --git a/test/ws-extension/auto-recover.spec.ts b/test/ws-extension/auto-recover.spec.ts index 74861f21..4ced6cce 100644 --- a/test/ws-extension/auto-recover.spec.ts +++ b/test/ws-extension/auto-recover.spec.ts @@ -1,11 +1,11 @@ -import WebSocketExtension from '@rc-ex/ws'; -import waitFor from 'wait-for-async'; -import ReusableRestClient from '../reusable-rest-client'; +import WebSocketExtension from "@rc-ex/ws"; +import waitFor from "wait-for-async"; +import ReusableRestClient from "../reusable-rest-client"; jest.setTimeout(999999999); -describe('WebSocket', () => { - test('auto recover', async () => { +describe("WebSocket", () => { + test("auto recover", async () => { const rc = await ReusableRestClient.getInstance(); const webSocketExtension = new WebSocketExtension({ // debugMode: true, @@ -13,7 +13,9 @@ describe('WebSocket', () => { await rc.installExtension(webSocketExtension); let eventCount = 0; - await webSocketExtension.subscribe(['/restapi/v1.0/account/~/extension/~/message-store'], (event: any) => { + await webSocketExtension.subscribe([ + "/restapi/v1.0/account/~/extension/~/message-store", + ], (event: any) => { expect(event).toBeDefined(); eventCount += 1; }); @@ -28,7 +30,7 @@ describe('WebSocket', () => { .post({ from: { extensionId: rc.token!.owner_id! }, to: [{ extensionId: rc.token!.owner_id! }], // send pager to oneself - text: 'Hello world', + text: "Hello world", }); const successful = await waitFor({ condition: () => eventCount > 0, diff --git a/test/ws-extension/empty-response.spec.ts b/test/ws-extension/empty-response.spec.ts index 4323d493..527ce6ea 100644 --- a/test/ws-extension/empty-response.spec.ts +++ b/test/ws-extension/empty-response.spec.ts @@ -1,8 +1,8 @@ -import WebSocketExtension from '@rc-ex/ws'; -import ReusableRestClient from '../reusable-rest-client'; +import WebSocketExtension from "@rc-ex/ws"; +import ReusableRestClient from "../reusable-rest-client"; -describe('WebSocket', () => { - test('empty response', async () => { +describe("WebSocket", () => { + test("empty response", async () => { const rc = await ReusableRestClient.getInstance(); const webSocketExtension = new WebSocketExtension({ restOverWebSocket: true, diff --git a/test/ws-extension/event-emitter.spec.ts b/test/ws-extension/event-emitter.spec.ts index 0e3ccbe5..e615ae25 100644 --- a/test/ws-extension/event-emitter.spec.ts +++ b/test/ws-extension/event-emitter.spec.ts @@ -1,10 +1,10 @@ -import WebSocketExtension, { Events } from '@rc-ex/ws'; -import waitFor from 'wait-for-async'; +import WebSocketExtension, { Events } from "@rc-ex/ws"; +import waitFor from "wait-for-async"; -import ReusableRestClient from '../reusable-rest-client'; +import ReusableRestClient from "../reusable-rest-client"; -describe('WebSocket', () => { - test('event emitter', async () => { +describe("WebSocket", () => { + test("event emitter", async () => { const rc = await ReusableRestClient.getInstance(); const webSocketExtension = new WebSocketExtension({ autoRecover: { @@ -16,7 +16,10 @@ describe('WebSocket', () => { await rc.installExtension(webSocketExtension); // must have at least 1 subscription, otherwise recoveryState = Failed - await webSocketExtension.subscribe(['/restapi/v1.0/account/~/extension/~'], () => {}); + await webSocketExtension.subscribe( + ["/restapi/v1.0/account/~/extension/~"], + () => {}, + ); const oldWS = webSocketExtension.ws; diff --git a/test/ws-extension/init.spec.ts b/test/ws-extension/init.spec.ts index 40454ac9..d4821070 100644 --- a/test/ws-extension/init.spec.ts +++ b/test/ws-extension/init.spec.ts @@ -1,8 +1,8 @@ -import WebSocketExtension from '@rc-ex/ws'; -import ReusableRestClient from '../reusable-rest-client'; +import WebSocketExtension from "@rc-ex/ws"; +import ReusableRestClient from "../reusable-rest-client"; -describe('WebSocket', () => { - test('subscription', async () => { +describe("WebSocket", () => { + test("subscription", async () => { const rc = await ReusableRestClient.getInstance(); const webSocketExtension = new WebSocketExtension({}); await rc.installExtension(webSocketExtension); diff --git a/test/ws-extension/override-ping-server.spec.ts b/test/ws-extension/override-ping-server.spec.ts index 363bb2b7..8d118ca7 100644 --- a/test/ws-extension/override-ping-server.spec.ts +++ b/test/ws-extension/override-ping-server.spec.ts @@ -1,17 +1,17 @@ -import WebSocketExtension from '@rc-ex/ws'; +import WebSocketExtension from "@rc-ex/ws"; -import ReusableRestClient from '../reusable-rest-client'; +import ReusableRestClient from "../reusable-rest-client"; // import waitFor from 'wait-for-async'; -describe('WebSocket', () => { - test('Override pingServer', async () => { +describe("WebSocket", () => { + test("Override pingServer", async () => { const rc = await ReusableRestClient.getInstance(); const webSocketExtension = new WebSocketExtension({ // debugMode: true, }); await rc.installExtension(webSocketExtension); webSocketExtension.pingServer = async () => { - await webSocketExtension.request('get', '/restapi/v1.0/status'); + await webSocketExtension.request("get", "/restapi/v1.0/status"); }; // await waitFor({interval: 90000}); await webSocketExtension.revoke(); diff --git a/test/ws-extension/rest-over-ws.spec.ts b/test/ws-extension/rest-over-ws.spec.ts index 31349973..24425551 100644 --- a/test/ws-extension/rest-over-ws.spec.ts +++ b/test/ws-extension/rest-over-ws.spec.ts @@ -1,13 +1,13 @@ -import WebSocketExtension from '@rc-ex/ws'; +import WebSocketExtension from "@rc-ex/ws"; -import ReusableRestClient from '../reusable-rest-client'; +import ReusableRestClient from "../reusable-rest-client"; // import path from 'path'; // import dotenv from 'dotenv-override-true'; // dotenv.config({path: path.join(__dirname, '..', '.env.lab')}); -describe('WebSocket', () => { - test('Rest API call via WebSocket', async () => { +describe("WebSocket", () => { + test("Rest API call via WebSocket", async () => { // if (process.env.IS_LAB_ENV !== 'true') { // return; // } diff --git a/test/ws-extension/session-recovery.spec.ts b/test/ws-extension/session-recovery.spec.ts index df0c0435..5855c45d 100644 --- a/test/ws-extension/session-recovery.spec.ts +++ b/test/ws-extension/session-recovery.spec.ts @@ -1,11 +1,11 @@ -import WebSocketExtension from '@rc-ex/ws'; -import waitFor from 'wait-for-async'; -import ReusableRestClient from '../reusable-rest-client'; +import WebSocketExtension from "@rc-ex/ws"; +import waitFor from "wait-for-async"; +import ReusableRestClient from "../reusable-rest-client"; jest.setTimeout(99999999); // to test recover failed -describe('WebSocket session recovery', () => { - test('default ', async () => { +describe("WebSocket session recovery", () => { + test("default ", async () => { const rc = await ReusableRestClient.getInstance(); const webSocketExtension = new WebSocketExtension({ // debugMode: true, @@ -14,7 +14,9 @@ describe('WebSocket session recovery', () => { await rc.installExtension(webSocketExtension); expect(webSocketExtension.connectionDetails.recoveryState).toBeUndefined(); let eventCount = 0; - await webSocketExtension.subscribe(['/restapi/v1.0/account/~/extension/~/message-store'], (event: any) => { + await webSocketExtension.subscribe([ + "/restapi/v1.0/account/~/extension/~/message-store", + ], (event: any) => { expect(event).toBeDefined(); eventCount += 1; }); @@ -25,7 +27,9 @@ describe('WebSocket session recovery', () => { await webSocketExtension.recover(); // sandbox doesn't support stickiness, so recovery may fail. expect( - ['Successful', 'Failed'].indexOf(webSocketExtension.connectionDetails.recoveryState ?? '') !== -1, + ["Successful", "Failed"].indexOf( + webSocketExtension.connectionDetails.recoveryState ?? "", + ) !== -1, ).toBeTruthy(); // expect(webSocketExtension.connectionDetails.recoveryState).toBe( // 'Successful', @@ -38,7 +42,7 @@ describe('WebSocket session recovery', () => { .post({ from: { extensionId: rc.token!.owner_id! }, to: [{ extensionId: rc.token!.owner_id! }], // send pager to oneself - text: 'Hello world', + text: "Hello world", }); const successful = await waitFor({ condition: () => eventCount > 0, @@ -50,8 +54,8 @@ describe('WebSocket session recovery', () => { await webSocketExtension.revoke(); }); - test('connect but do not recover session ', async () => { - if (process.env.IS_LAB_ENV !== 'true') { + test("connect but do not recover session ", async () => { + if (process.env.IS_LAB_ENV !== "true") { return; } const rc = await ReusableRestClient.getInstance(); @@ -62,7 +66,9 @@ describe('WebSocket session recovery', () => { await rc.installExtension(webSocketExtension); expect(webSocketExtension.connectionDetails.recoveryState).toBeUndefined(); let eventCount = 0; - await webSocketExtension.subscribe(['/restapi/v1.0/account/~/extension/~/message-store'], (event: any) => { + await webSocketExtension.subscribe([ + "/restapi/v1.0/account/~/extension/~/message-store", + ], (event: any) => { expect(event).toBeDefined(); eventCount += 1; }); @@ -80,7 +86,7 @@ describe('WebSocket session recovery', () => { .post({ from: { extensionId: rc.token!.owner_id! }, to: [{ extensionId: rc.token!.owner_id! }], // send pager to oneself - text: 'Hello world', + text: "Hello world", }); const successful = await waitFor({ condition: () => eventCount > 0, @@ -92,8 +98,8 @@ describe('WebSocket session recovery', () => { await webSocketExtension.revoke(); }); - test('re-connect existing session', async () => { - if (process.env.IS_LAB_ENV !== 'true') { + test("re-connect existing session", async () => { + if (process.env.IS_LAB_ENV !== "true") { return; } const rc = await ReusableRestClient.getInstance(); @@ -103,7 +109,9 @@ describe('WebSocket session recovery', () => { await rc.installExtension(webSocketExtension); expect(webSocketExtension.connectionDetails.recoveryState).toBeUndefined(); let eventCount = 0; - await webSocketExtension.subscribe(['/restapi/v1.0/account/~/extension/~/message-store'], (event: any) => { + await webSocketExtension.subscribe([ + "/restapi/v1.0/account/~/extension/~/message-store", + ], (event: any) => { expect(event).toBeDefined(); eventCount += 1; }); @@ -119,7 +127,7 @@ describe('WebSocket session recovery', () => { .post({ from: { extensionId: rc.token!.owner_id! }, to: [{ extensionId: rc.token!.owner_id! }], // send pager to oneself - text: 'Hello world', + text: "Hello world", }); const successful = await waitFor({ condition: () => eventCount > 0, diff --git a/test/ws-extension/subscription.spec.ts b/test/ws-extension/subscription.spec.ts index 5546507d..bb46b1ed 100644 --- a/test/ws-extension/subscription.spec.ts +++ b/test/ws-extension/subscription.spec.ts @@ -1,13 +1,13 @@ -import WebSocketExtension from '@rc-ex/ws'; -import waitFor from 'wait-for-async'; -import ReusableRestClient from '../reusable-rest-client'; +import WebSocketExtension from "@rc-ex/ws"; +import waitFor from "wait-for-async"; +import ReusableRestClient from "../reusable-rest-client"; // import path from 'path'; // import dotenv from 'dotenv-override-true'; // dotenv.config({path: path.join(__dirname, '..', '.env.lab')}); -describe('WebSocket', () => { - test('subscription', async () => { +describe("WebSocket", () => { + test("subscription", async () => { // if (process.env.IS_LAB_ENV !== 'true') { // return; // } @@ -28,14 +28,16 @@ describe('WebSocket', () => { // ); let messageEventCount = 0; - await webSocketExtension.subscribe(['/restapi/v1.0/account/~/extension/~/message-store'], (event) => { + await webSocketExtension.subscribe([ + "/restapi/v1.0/account/~/extension/~/message-store", + ], (event) => { expect(event).toBeDefined(); messageEventCount += 1; }); await rc.restapi().account().extension().presence().put({ - userStatus: 'Busy', - message: 'Hello world', + userStatus: "Busy", + message: "Hello world", }); await rc @@ -46,7 +48,7 @@ describe('WebSocket', () => { .post({ from: { extensionId: rc.token!.owner_id! }, to: [{ extensionId: rc.token!.owner_id! }], // send pager to oneself - text: 'Hello world', + text: "Hello world", }); // const successful1 = await waitFor({ diff --git a/yarn.lock b/yarn.lock index 16785cd9..df951113 100644 --- a/yarn.lock +++ b/yarn.lock @@ -462,57 +462,6 @@ resolved "https://registry.yarnpkg.com/@esbuild/win32-x64/-/win32-x64-0.23.1.tgz#81fd50d11e2c32b2d6241470e3185b70c7b30699" integrity sha512-BHpFFeslkWrXWyUPnbKm+xYYVYruCinGcftSBaa8zoF9hZO4BcSCFUvHVTtzpIY6YzUnYtuEhZ+C9iEXjxnasg== -"@eslint-community/eslint-utils@^4.2.0", "@eslint-community/eslint-utils@^4.4.0": - version "4.4.0" - resolved "https://registry.npmmirror.com/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz#a23514e8fb9af1269d5f7788aa556798d61c6b59" - integrity sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA== - dependencies: - eslint-visitor-keys "^3.3.0" - -"@eslint-community/regexpp@^4.10.0", "@eslint-community/regexpp@^4.6.1": - version "4.10.0" - resolved "https://registry.yarnpkg.com/@eslint-community/regexpp/-/regexpp-4.10.0.tgz#548f6de556857c8bb73bbee70c35dc82a2e74d63" - integrity sha512-Cu96Sd2By9mCNTx2iyKOmq10v22jUVQv0lQnlGNy16oE9589yE+QADPbrMGCkA51cKZSg3Pu/aTJVTGfL/qjUA== - -"@eslint/eslintrc@^2.1.4": - version "2.1.4" - resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-2.1.4.tgz#388a269f0f25c1b6adc317b5a2c55714894c70ad" - integrity sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ== - dependencies: - ajv "^6.12.4" - debug "^4.3.2" - espree "^9.6.0" - globals "^13.19.0" - ignore "^5.2.0" - import-fresh "^3.2.1" - js-yaml "^4.1.0" - minimatch "^3.1.2" - strip-json-comments "^3.1.1" - -"@eslint/js@8.57.0": - version "8.57.0" - resolved "https://registry.yarnpkg.com/@eslint/js/-/js-8.57.0.tgz#a5417ae8427873f1dd08b70b3574b453e67b5f7f" - integrity sha512-Ys+3g2TaW7gADOJzPt83SJtCDhMjndcDMFVQ/Tj9iA1BfJzFKD9mAUXT3OenpuPHbI6P/myECxRJrofUsDx/5g== - -"@humanwhocodes/config-array@^0.11.14": - version "0.11.14" - resolved "https://registry.yarnpkg.com/@humanwhocodes/config-array/-/config-array-0.11.14.tgz#d78e481a039f7566ecc9660b4ea7fe6b1fec442b" - integrity sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg== - dependencies: - "@humanwhocodes/object-schema" "^2.0.2" - debug "^4.3.1" - minimatch "^3.0.5" - -"@humanwhocodes/module-importer@^1.0.1": - version "1.0.1" - resolved "https://registry.yarnpkg.com/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz#af5b2691a22b44be847b0ca81641c5fb6ad0172c" - integrity sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA== - -"@humanwhocodes/object-schema@^2.0.2": - version "2.0.3" - resolved "https://registry.yarnpkg.com/@humanwhocodes/object-schema/-/object-schema-2.0.3.tgz#4a2868d75d6d6963e423bcf90b7fd1be343409d3" - integrity sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA== - "@hutson/parse-repository-url@^3.0.0": version "3.0.2" resolved "https://registry.yarnpkg.com/@hutson/parse-repository-url/-/parse-repository-url-3.0.2.tgz#98c23c950a3d9b6c8f0daed06da6c3af06981340" @@ -931,7 +880,7 @@ resolved "https://registry.yarnpkg.com/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz#5bd262af94e9d25bd1e71b05deed44876a222e8b" integrity sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A== -"@nodelib/fs.walk@^1.2.3", "@nodelib/fs.walk@^1.2.8": +"@nodelib/fs.walk@^1.2.3": version "1.2.8" resolved "https://registry.yarnpkg.com/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz#e95737e8bb6746ddedf69c556953494f196fe69a" integrity sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg== @@ -1309,40 +1258,35 @@ resolved "https://registry.npmmirror.com/@pkgjs/parseargs/-/parseargs-0.11.0.tgz#a77ea742fab25775145434eb1d2328cf5013ac33" integrity sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg== -"@pkgr/core@^0.1.0": - version "0.1.0" - resolved "https://registry.yarnpkg.com/@pkgr/core/-/core-0.1.0.tgz#7d8dacb7fdef0e4387caf7396cbd77f179867d06" - integrity sha512-Zwq5OCzuwJC2jwqmpEQt7Ds1DTi6BWSwoGkbb1n9pO3hzb35BoJELx7c0T23iDkBGkh2e7tvOtjF3tr3OaQHDQ== - "@rc-ex/authorize-uri@file:packages/extensions/authorize-uri": - version "1.1.18" + version "1.2.0" dependencies: "@types/urijs" "^1.19.25" urijs "^1.19.11" "@rc-ex/auto-refresh@file:packages/extensions/auto-refresh": - version "0.1.4" + version "0.2.0" "@rc-ex/core@file:packages/core": - version "1.4.2" + version "1.5.0" dependencies: "@types/qs" "^6.9.18" axios "^1.7.9" qs "^6.14.0" "@rc-ex/debug@file:packages/extensions/debug": - version "1.1.18" + version "1.2.0" "@rc-ex/events@file:packages/extensions/events": - version "1.1.18" + version "1.2.0" "@rc-ex/rcsdk@file:packages/extensions/rcsdk": - version "1.1.18" + version "1.2.0" "@rc-ex/ws@file:packages/extensions/ws": - version "1.1.18" + version "1.2.0" dependencies: - "@types/ws" "^8.5.13" + "@types/ws" "^8.5.14" http-status-codes "^2.3.0" hyperid "^3.3.0" isomorphic-ws "^5.0.0" @@ -1555,10 +1499,10 @@ resolved "https://registry.npmjs.org/@types/node/-/node-18.15.11.tgz#b3b790f09cb1696cffcec605de025b088fa4225f" integrity sha512-E5Kwq2n4SbMzQOn6wnmBjuK9ouqlURrcZDVfbo9ftDDTFt3nk7ZKK4GMOzoYgnpQJKcxwQw+lGaBvvlMo0qN/Q== -"@types/node@^22.10.7": - version "22.10.7" - resolved "https://registry.yarnpkg.com/@types/node/-/node-22.10.7.tgz#14a1ca33fd0ebdd9d63593ed8d3fbc882a6d28d7" - integrity sha512-V09KvXxFiutGp6B7XkpaDXlNadZxrzajcY50EuoLIpQ6WWYCSvf19lVIazzfIzQvhUN2HjX12spLojTnhuKlGg== +"@types/node@^22.10.10": + version "22.10.10" + resolved "https://registry.yarnpkg.com/@types/node/-/node-22.10.10.tgz#85fe89f8bf459dc57dfef1689bd5b52ad1af07e6" + integrity sha512-X47y/mPNzxviAGY5TcYPtYL8JsY3kAq2n8fMmKoRCxq/c4v4pyGNCzM2R6+M5/umG4ZfHuT+sgqDYqWc9rJ6ww== dependencies: undici-types "~6.20.0" @@ -1594,10 +1538,10 @@ resolved "https://registry.yarnpkg.com/@types/urijs/-/urijs-1.19.25.tgz#ac92b53e674c3b108decdbe88dc5f444a2f42f6a" integrity sha512-XOfUup9r3Y06nFAZh3WvO0rBU4OtlfPB/vgxpjg+NRdGU6CN6djdc6OEiH+PcqHCY6eFLo9Ista73uarf4gnBg== -"@types/ws@^8.5.13": - version "8.5.13" - resolved "https://registry.yarnpkg.com/@types/ws/-/ws-8.5.13.tgz#6414c280875e2691d0d1e080b05addbf5cb91e20" - integrity sha512-osM/gWBTPKgHV8XkTunnegTRIsvF6owmf5w+JtAfOw472dptdm0dlGv4xCt6GwQRcC2XVOvvRE/0bAoQcL2QkA== +"@types/ws@^8.5.14": + version "8.5.14" + resolved "https://registry.yarnpkg.com/@types/ws/-/ws-8.5.14.tgz#93d44b268c9127d96026cf44353725dd9b6c3c21" + integrity sha512-bd/YFLW+URhBzMXurx7lWByOu+xzU9+kb3RboOteXYDfW+tr+JZa99OyNmPINEGB/ahzKrEuc8rcv4gnpJmxTw== dependencies: "@types/node" "*" @@ -1613,92 +1557,6 @@ dependencies: "@types/yargs-parser" "*" -"@typescript-eslint/eslint-plugin@^8.20.0": - version "8.20.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.20.0.tgz#b47a398e0e551cb008c60190b804394e6852c863" - integrity sha512-naduuphVw5StFfqp4Gq4WhIBE2gN1GEmMUExpJYknZJdRnc+2gDzB8Z3+5+/Kv33hPQRDGzQO/0opHE72lZZ6A== - dependencies: - "@eslint-community/regexpp" "^4.10.0" - "@typescript-eslint/scope-manager" "8.20.0" - "@typescript-eslint/type-utils" "8.20.0" - "@typescript-eslint/utils" "8.20.0" - "@typescript-eslint/visitor-keys" "8.20.0" - graphemer "^1.4.0" - ignore "^5.3.1" - natural-compare "^1.4.0" - ts-api-utils "^2.0.0" - -"@typescript-eslint/parser@^8.20.0": - version "8.20.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-8.20.0.tgz#5caf2230a37094dc0e671cf836b96dd39b587ced" - integrity sha512-gKXG7A5HMyjDIedBi6bUrDcun8GIjnI8qOwVLiY3rx6T/sHP/19XLJOnIq/FgQvWLHja5JN/LSE7eklNBr612g== - dependencies: - "@typescript-eslint/scope-manager" "8.20.0" - "@typescript-eslint/types" "8.20.0" - "@typescript-eslint/typescript-estree" "8.20.0" - "@typescript-eslint/visitor-keys" "8.20.0" - debug "^4.3.4" - -"@typescript-eslint/scope-manager@8.20.0": - version "8.20.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-8.20.0.tgz#aaf4198b509fb87a6527c02cfbfaf8901179e75c" - integrity sha512-J7+VkpeGzhOt3FeG1+SzhiMj9NzGD/M6KoGn9f4dbz3YzK9hvbhVTmLj/HiTp9DazIzJ8B4XcM80LrR9Dm1rJw== - dependencies: - "@typescript-eslint/types" "8.20.0" - "@typescript-eslint/visitor-keys" "8.20.0" - -"@typescript-eslint/type-utils@8.20.0": - version "8.20.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-8.20.0.tgz#958171d86b213a3f32b5b16b91db267968a4ef19" - integrity sha512-bPC+j71GGvA7rVNAHAtOjbVXbLN5PkwqMvy1cwGeaxUoRQXVuKCebRoLzm+IPW/NtFFpstn1ummSIasD5t60GA== - dependencies: - "@typescript-eslint/typescript-estree" "8.20.0" - "@typescript-eslint/utils" "8.20.0" - debug "^4.3.4" - ts-api-utils "^2.0.0" - -"@typescript-eslint/types@8.20.0": - version "8.20.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-8.20.0.tgz#487de5314b5415dee075e95568b87a75a3e730cf" - integrity sha512-cqaMiY72CkP+2xZRrFt3ExRBu0WmVitN/rYPZErA80mHjHx/Svgp8yfbzkJmDoQ/whcytOPO9/IZXnOc+wigRA== - -"@typescript-eslint/typescript-estree@8.20.0": - version "8.20.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-8.20.0.tgz#658cea07b7e5981f19bce5cf1662cb70ad59f26b" - integrity sha512-Y7ncuy78bJqHI35NwzWol8E0X7XkRVS4K4P4TCyzWkOJih5NDvtoRDW4Ba9YJJoB2igm9yXDdYI/+fkiiAxPzA== - dependencies: - "@typescript-eslint/types" "8.20.0" - "@typescript-eslint/visitor-keys" "8.20.0" - debug "^4.3.4" - fast-glob "^3.3.2" - is-glob "^4.0.3" - minimatch "^9.0.4" - semver "^7.6.0" - ts-api-utils "^2.0.0" - -"@typescript-eslint/utils@8.20.0": - version "8.20.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-8.20.0.tgz#53127ecd314b3b08836b4498b71cdb86f4ef3aa2" - integrity sha512-dq70RUw6UK9ei7vxc4KQtBRk7qkHZv447OUZ6RPQMQl71I3NZxQJX/f32Smr+iqWrB02pHKn2yAdHBb0KNrRMA== - dependencies: - "@eslint-community/eslint-utils" "^4.4.0" - "@typescript-eslint/scope-manager" "8.20.0" - "@typescript-eslint/types" "8.20.0" - "@typescript-eslint/typescript-estree" "8.20.0" - -"@typescript-eslint/visitor-keys@8.20.0": - version "8.20.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-8.20.0.tgz#2df6e24bc69084b81f06aaaa48d198b10d382bed" - integrity sha512-v/BpkeeYAsPkKCkR8BDwcno0llhzWVqPOamQrAEMdpZav2Y9OVjd9dwJyBLJWwf335B5DmlifECIkZRJCaGaHA== - dependencies: - "@typescript-eslint/types" "8.20.0" - eslint-visitor-keys "^4.2.0" - -"@ungap/structured-clone@^1.2.0": - version "1.2.0" - resolved "https://registry.yarnpkg.com/@ungap/structured-clone/-/structured-clone-1.2.0.tgz#756641adb587851b5ccb3e095daf27ae581c8406" - integrity sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ== - "@yarnpkg/lockfile@^1.1.0": version "1.1.0" resolved "https://registry.yarnpkg.com/@yarnpkg/lockfile/-/lockfile-1.1.0.tgz#e77a97fbd345b76d83245edcd17d393b1b41fb31" @@ -1732,11 +1590,6 @@ abbrev@^2.0.0: resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-2.0.0.tgz#cf59829b8b4f03f89dda2771cb7f3653828c89bf" integrity sha512-6/mh1E2u2YgEsCHdY0Yx5oW+61gZU+1vXaoiHHrpKeuRNNgFvS+/jrwHiQhB5apAf5oB7UB7E19ol2R2LKH8hQ== -acorn-jsx@^5.3.2: - version "5.3.2" - resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-5.3.2.tgz#7ed5bb55908b3b2f1bc55c6af1653bada7f07937" - integrity sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ== - acorn-walk@^8.1.1: version "8.2.0" resolved "https://registry.yarnpkg.com/acorn-walk/-/acorn-walk-8.2.0.tgz#741210f2e2426454508853a2f44d0ab83b7f69c1" @@ -1747,11 +1600,6 @@ acorn@^8.4.1: resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.8.2.tgz#1b2f25db02af965399b9776b0c2c391276d37c4a" integrity sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw== -acorn@^8.9.0: - version "8.11.3" - resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.11.3.tgz#71e0b14e13a4ec160724b38fb7b0f233b1b81d7a" - integrity sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg== - add-stream@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/add-stream/-/add-stream-1.0.0.tgz#6a7990437ca736d5e1288db92bd3266d5f5cb2aa" @@ -1772,16 +1620,6 @@ aggregate-error@^3.0.0: clean-stack "^2.0.0" indent-string "^4.0.0" -ajv@^6.12.4: - version "6.12.6" - resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.12.6.tgz#baf5a62e802b07d977034586f8c3baf5adf26df4" - integrity sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g== - dependencies: - fast-deep-equal "^3.1.1" - fast-json-stable-stringify "^2.0.0" - json-schema-traverse "^0.4.1" - uri-js "^4.2.2" - ansi-colors@^4.1.1: version "4.1.3" resolved "https://registry.yarnpkg.com/ansi-colors/-/ansi-colors-4.1.3.tgz#37611340eb2243e70cc604cad35d63270d48781b" @@ -2543,7 +2381,7 @@ create-require@^1.1.0: resolved "https://registry.yarnpkg.com/create-require/-/create-require-1.1.1.tgz#c1d7e8f1e5f6cfc9ff65f9cd352d37348756c333" integrity sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ== -cross-spawn@^7.0.0, cross-spawn@^7.0.2, cross-spawn@^7.0.3: +cross-spawn@^7.0.0, cross-spawn@^7.0.3: version "7.0.3" resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.3.tgz#f73a85b9d5d41d045551c177e2882d4ac85728a6" integrity sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w== @@ -2567,7 +2405,7 @@ dateformat@^3.0.3: resolved "https://registry.npmmirror.com/dateformat/-/dateformat-3.0.3.tgz#a6e37499a4d9a9cf85ef5872044d62901c9889ae" integrity sha512-jyCETtSl3VMZMWeRo7iY1FL19ges1t55hMo5yaam4Jrsm5EPL89UQkoQRyiI+Yf4k8r2ZpdngkV8hr1lIdjb3Q== -debug@4, debug@^4.1.0, debug@^4.1.1, debug@^4.3.1, debug@^4.3.2, debug@^4.3.4: +debug@4, debug@^4.1.0, debug@^4.1.1, debug@^4.3.4: version "4.3.4" resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.4.tgz#1319f6579357f2338d3337d2cdd4914bb5dcc865" integrity sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ== @@ -2597,11 +2435,6 @@ dedent@^1.0.0: resolved "https://registry.npmmirror.com/dedent/-/dedent-1.5.1.tgz#4f3fc94c8b711e9bb2800d185cd6ad20f2a90aff" integrity sha512-+LxW+KLWxu3HW3M2w2ympwtqPrqYRzU8fqi6Fhd18fBALe15blJPI/I4+UHveMVG6lJqB4JNd4UG0S5cnVHwIg== -deep-is@^0.1.3: - version "0.1.4" - resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.4.tgz#a6f2dce612fadd2ef1f519b73551f17e85199831" - integrity sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ== - deepmerge@^4.2.2: version "4.3.1" resolved "https://registry.yarnpkg.com/deepmerge/-/deepmerge-4.3.1.tgz#44b5f2147cd3b00d4b56137685966f26fd25dd4a" @@ -2671,13 +2504,6 @@ dir-glob@^3.0.1: dependencies: path-type "^4.0.0" -doctrine@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-3.0.0.tgz#addebead72a6574db783639dc87a121773973961" - integrity sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w== - dependencies: - esutils "^2.0.2" - dom-storage@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/dom-storage/-/dom-storage-2.1.0.tgz#00fb868bc9201357ea243c7bcfd3304c1e34ea39" @@ -2878,134 +2704,11 @@ escape-string-regexp@^2.0.0: resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz#a30304e99daa32e23b2fd20f51babd07cffca344" integrity sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w== -escape-string-regexp@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34" - integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA== - -eslint-config-alloy@^5.1.2: - version "5.1.2" - resolved "https://registry.yarnpkg.com/eslint-config-alloy/-/eslint-config-alloy-5.1.2.tgz#e9950fc8006f1daffc26f82beb57e4f92a578e6b" - integrity sha512-jppzCxNqlhvMYPgfUzvPq4f9fEu070+m3CRIjWdUx/GJLZ6dXHARzMIrIhFuIvzYI5Qo40ht1gunguLnRhIB7A== - -eslint-config-prettier@^10.0.1: - version "10.0.1" - resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-10.0.1.tgz#fbb03bfc8db0651df9ce4e8b7150d11c5fe3addf" - integrity sha512-lZBts941cyJyeaooiKxAtzoPHTN+GbQTJFAIdQbRhA4/8whaAraEh47Whw/ZFfrjNSnlAxqfm9i0XVAEkULjCw== - -eslint-plugin-prettier@^5.2.2: - version "5.2.2" - resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-5.2.2.tgz#d1f068f65dc8490f102eda21d1f4cd150c205211" - integrity sha512-1yI3/hf35wmlq66C8yOyrujQnel+v5l1Vop5Cl2I6ylyNTT1JbuUUnV3/41PzwTzcyDp/oF0jWE3HXvcH5AQOQ== - dependencies: - prettier-linter-helpers "^1.0.0" - synckit "^0.9.1" - -eslint-scope@^7.2.2: - version "7.2.2" - resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-7.2.2.tgz#deb4f92563390f32006894af62a22dba1c46423f" - integrity sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg== - dependencies: - esrecurse "^4.3.0" - estraverse "^5.2.0" - -eslint-visitor-keys@^3.3.0: - version "3.4.0" - resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-3.4.0.tgz#c7f0f956124ce677047ddbc192a68f999454dedc" - integrity sha512-HPpKPUBQcAsZOsHAFwTtIKcYlCje62XB7SEAcxjtmW6TD1WVpkS6i6/hOVtTZIl4zGj/mBqpFVGvaDneik+VoQ== - -eslint-visitor-keys@^3.4.1, eslint-visitor-keys@^3.4.3: - version "3.4.3" - resolved "https://registry.npmmirror.com/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz#0cd72fe8550e3c2eae156a96a4dddcd1c8ac5800" - integrity sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag== - -eslint-visitor-keys@^4.2.0: - version "4.2.0" - resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-4.2.0.tgz#687bacb2af884fcdda8a6e7d65c606f46a14cd45" - integrity sha512-UyLnSehNt62FFhSwjZlHmeokpRK59rcz29j+F1/aDgbkbRTk7wIc9XzdoasMUbRNKDM0qQt/+BJ4BrpFeABemw== - -eslint@^8.57.0: - version "8.57.0" - resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.57.0.tgz#c786a6fd0e0b68941aaf624596fb987089195668" - integrity sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQ== - dependencies: - "@eslint-community/eslint-utils" "^4.2.0" - "@eslint-community/regexpp" "^4.6.1" - "@eslint/eslintrc" "^2.1.4" - "@eslint/js" "8.57.0" - "@humanwhocodes/config-array" "^0.11.14" - "@humanwhocodes/module-importer" "^1.0.1" - "@nodelib/fs.walk" "^1.2.8" - "@ungap/structured-clone" "^1.2.0" - ajv "^6.12.4" - chalk "^4.0.0" - cross-spawn "^7.0.2" - debug "^4.3.2" - doctrine "^3.0.0" - escape-string-regexp "^4.0.0" - eslint-scope "^7.2.2" - eslint-visitor-keys "^3.4.3" - espree "^9.6.1" - esquery "^1.4.2" - esutils "^2.0.2" - fast-deep-equal "^3.1.3" - file-entry-cache "^6.0.1" - find-up "^5.0.0" - glob-parent "^6.0.2" - globals "^13.19.0" - graphemer "^1.4.0" - ignore "^5.2.0" - imurmurhash "^0.1.4" - is-glob "^4.0.0" - is-path-inside "^3.0.3" - js-yaml "^4.1.0" - json-stable-stringify-without-jsonify "^1.0.1" - levn "^0.4.1" - lodash.merge "^4.6.2" - minimatch "^3.1.2" - natural-compare "^1.4.0" - optionator "^0.9.3" - strip-ansi "^6.0.1" - text-table "^0.2.0" - -espree@^9.6.0, espree@^9.6.1: - version "9.6.1" - resolved "https://registry.yarnpkg.com/espree/-/espree-9.6.1.tgz#a2a17b8e434690a5432f2f8018ce71d331a48c6f" - integrity sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ== - dependencies: - acorn "^8.9.0" - acorn-jsx "^5.3.2" - eslint-visitor-keys "^3.4.1" - esprima@^4.0.0: version "4.0.1" resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.1.tgz#13b04cdb3e6c5d19df91ab6987a8695619b0aa71" integrity sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A== -esquery@^1.4.2: - version "1.5.0" - resolved "https://registry.yarnpkg.com/esquery/-/esquery-1.5.0.tgz#6ce17738de8577694edd7361c57182ac8cb0db0b" - integrity sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg== - dependencies: - estraverse "^5.1.0" - -esrecurse@^4.3.0: - version "4.3.0" - resolved "https://registry.yarnpkg.com/esrecurse/-/esrecurse-4.3.0.tgz#7ad7964d679abb28bee72cec63758b1c5d2c9921" - integrity sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag== - dependencies: - estraverse "^5.2.0" - -estraverse@^5.1.0, estraverse@^5.2.0: - version "5.3.0" - resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-5.3.0.tgz#2eea5290702f26ab8fe5370370ff86c965d21123" - integrity sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA== - -esutils@^2.0.2: - version "2.0.3" - resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.3.tgz#74d2eb4de0b8da1293711910d50775b9b710ef64" - integrity sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g== - eventemitter3@^4.0.4: version "4.0.7" resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-4.0.7.tgz#2de9b68f6528d5644ef5c59526a1b4a07306169f" @@ -3082,16 +2785,6 @@ external-editor@^3.0.3: iconv-lite "^0.4.24" tmp "^0.0.33" -fast-deep-equal@^3.1.1, fast-deep-equal@^3.1.3: - version "3.1.3" - resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525" - integrity sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q== - -fast-diff@^1.1.2: - version "1.2.0" - resolved "https://registry.yarnpkg.com/fast-diff/-/fast-diff-1.2.0.tgz#73ee11982d86caaf7959828d519cfe927fac5f03" - integrity sha512-xJuoT5+L99XlZ8twedaRf6Ax2TgQVxvgZOYoPKqZufmJib0tL2tegPBOZb1pVNgIhlqDlA0eO0c3wBvQcmzx4w== - fast-glob@^3.2.9: version "3.2.12" resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.2.12.tgz#7f39ec99c2e6ab030337142da9e0c18f37afae80" @@ -3103,27 +2796,11 @@ fast-glob@^3.2.9: merge2 "^1.3.0" micromatch "^4.0.4" -fast-glob@^3.3.2: - version "3.3.2" - resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.3.2.tgz#a904501e57cfdd2ffcded45e99a54fef55e46129" - integrity sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow== - dependencies: - "@nodelib/fs.stat" "^2.0.2" - "@nodelib/fs.walk" "^1.2.3" - glob-parent "^5.1.2" - merge2 "^1.3.0" - micromatch "^4.0.4" - -fast-json-stable-stringify@2.x, fast-json-stable-stringify@^2.0.0, fast-json-stable-stringify@^2.1.0: +fast-json-stable-stringify@2.x, fast-json-stable-stringify@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz#874bf69c6f404c2b5d99c481341399fd55892633" integrity sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw== -fast-levenshtein@^2.0.6: - version "2.0.6" - resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917" - integrity sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw== - fastq@^1.6.0: version "1.15.0" resolved "https://registry.yarnpkg.com/fastq/-/fastq-1.15.0.tgz#d04d07c6a2a68fe4599fea8d2e103a937fae6b3a" @@ -3155,13 +2832,6 @@ figures@3.2.0, figures@^3.0.0: dependencies: escape-string-regexp "^1.0.5" -file-entry-cache@^6.0.1: - version "6.0.1" - resolved "https://registry.yarnpkg.com/file-entry-cache/-/file-entry-cache-6.0.1.tgz#211b2dd9659cb0394b073e7323ac3c933d522027" - integrity sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg== - dependencies: - flat-cache "^3.0.4" - filelist@^1.0.1: version "1.0.4" resolved "https://registry.yarnpkg.com/filelist/-/filelist-1.0.4.tgz#f78978a1e944775ff9e62e744424f215e58352b5" @@ -3191,33 +2861,11 @@ find-up@^4.0.0, find-up@^4.1.0: locate-path "^5.0.0" path-exists "^4.0.0" -find-up@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/find-up/-/find-up-5.0.0.tgz#4c92819ecb7083561e4f4a240a86be5198f536fc" - integrity sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng== - dependencies: - locate-path "^6.0.0" - path-exists "^4.0.0" - -flat-cache@^3.0.4: - version "3.2.0" - resolved "https://registry.yarnpkg.com/flat-cache/-/flat-cache-3.2.0.tgz#2c0c2d5040c99b1632771a9d105725c0115363ee" - integrity sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw== - dependencies: - flatted "^3.2.9" - keyv "^4.5.3" - rimraf "^3.0.2" - flat@^5.0.2: version "5.0.2" resolved "https://registry.yarnpkg.com/flat/-/flat-5.0.2.tgz#8ca6fe332069ffa9d324c327198c598259ceb241" integrity sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ== -flatted@^3.2.9: - version "3.3.1" - resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.3.1.tgz#21db470729a6734d4997002f439cb308987f567a" - integrity sha512-X8cqMLLie7KsNUDSdzeN8FYK9rEt4Dt67OsG/DNGnYTSDBG4uFAJFBnUeiV+zCVAvwFy56IjM9sH51jVaEhNxw== - fn.name@1.x.x: version "1.1.0" resolved "https://registry.yarnpkg.com/fn.name/-/fn.name-1.1.0.tgz#26cad8017967aea8731bc42961d04a3d5988accc" @@ -3433,7 +3081,7 @@ gitconfiglocal@^1.0.0: dependencies: ini "^1.3.2" -glob-parent@6.0.2, glob-parent@^6.0.2: +glob-parent@6.0.2: version "6.0.2" resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-6.0.2.tgz#6d237d99083950c79290f24c7642a3de9a28f9e3" integrity sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A== @@ -3496,13 +3144,6 @@ globals@^11.1.0: resolved "https://registry.yarnpkg.com/globals/-/globals-11.12.0.tgz#ab8795338868a0babd8525758018c2a7eb95c42e" integrity sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA== -globals@^13.19.0: - version "13.24.0" - resolved "https://registry.yarnpkg.com/globals/-/globals-13.24.0.tgz#8432a19d78ce0c1e833949c36adb345400bb1171" - integrity sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ== - dependencies: - type-fest "^0.20.2" - globby@11.1.0: version "11.1.0" resolved "https://registry.yarnpkg.com/globby/-/globby-11.1.0.tgz#bd4be98bb042f83d796f7e3811991fbe82a0d34b" @@ -3525,11 +3166,6 @@ graceful-fs@4.2.11, graceful-fs@^4.1.11, graceful-fs@^4.1.15, graceful-fs@^4.1.2 resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.11.tgz#4183e4e8bf08bb6e05bbb2f7d2e0c8f712ca40e3" integrity sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ== -graphemer@^1.4.0: - version "1.4.0" - resolved "https://registry.npmmirror.com/graphemer/-/graphemer-1.4.0.tgz#fb2f1d55e0e3a1849aeffc90c4fa0dd53a0e66c6" - integrity sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag== - handlebars@^4.7.7: version "4.7.7" resolved "https://registry.yarnpkg.com/handlebars/-/handlebars-4.7.7.tgz#9ce33416aad02dbd6c8fafa8240d5d98004945a1" @@ -3691,12 +3327,7 @@ ignore@^5.0.4, ignore@^5.2.0: resolved "https://registry.npmmirror.com/ignore/-/ignore-5.2.4.tgz#a291c0c6178ff1b960befe47fcdec301674a6324" integrity sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ== -ignore@^5.3.1: - version "5.3.1" - resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.3.1.tgz#5073e554cd42c5b33b394375f538b8593e34d4ef" - integrity sha512-5Fytz/IraMjqpwfd34ke28PTVMjZjJG2MPn5t7OE4eUCUNf8BAa7b5WUS9/Qvr6mwOQS7Mk6vdsMno5he+T8Xw== - -import-fresh@^3.2.1, import-fresh@^3.3.0: +import-fresh@^3.3.0: version "3.3.0" resolved "https://registry.yarnpkg.com/import-fresh/-/import-fresh-3.3.0.tgz#37162c25fcb9ebaa2e6e53d5b4d88ce17d9e0c2b" integrity sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw== @@ -3823,7 +3454,7 @@ is-generator-fn@^2.0.0: resolved "https://registry.yarnpkg.com/is-generator-fn/-/is-generator-fn-2.1.0.tgz#7d140adc389aaf3011a8f2a2a4cfa6faadffb118" integrity sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ== -is-glob@^4.0.0, is-glob@^4.0.1, is-glob@^4.0.3: +is-glob@^4.0.1, is-glob@^4.0.3: version "4.0.3" resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.3.tgz#64f61e42cbbb2eec2071a9dac0b28ba1e65d5084" integrity sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg== @@ -3850,11 +3481,6 @@ is-obj@^2.0.0: resolved "https://registry.yarnpkg.com/is-obj/-/is-obj-2.0.0.tgz#473fb05d973705e3fd9620545018ca8e22ef4982" integrity sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w== -is-path-inside@^3.0.3: - version "3.0.3" - resolved "https://registry.yarnpkg.com/is-path-inside/-/is-path-inside-3.0.3.tgz#d231362e53a07ff2b0e0ea7fed049161ffd16283" - integrity sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ== - is-plain-obj@^1.0.0, is-plain-obj@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-1.1.0.tgz#71a50c8429dfca773c92a390a4a03b39fcd51d3e" @@ -4464,11 +4090,6 @@ jsesc@^2.5.1: resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-2.5.2.tgz#80564d2e483dacf6e8ef209650a67df3f0c283a4" integrity sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA== -json-buffer@3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/json-buffer/-/json-buffer-3.0.1.tgz#9338802a30d3b6605fbe0613e094008ca8c05a13" - integrity sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ== - json-parse-better-errors@^1.0.1: version "1.0.2" resolved "https://registry.yarnpkg.com/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz#bb867cfb3450e69107c131d1c514bab3dc8bcaa9" @@ -4489,16 +4110,6 @@ json-parse-even-better-errors@^3.0.2: resolved "https://registry.yarnpkg.com/json-parse-even-better-errors/-/json-parse-even-better-errors-3.0.2.tgz#b43d35e89c0f3be6b5fbbe9dc6c82467b30c28da" integrity sha512-fi0NG4bPjCHunUJffmLd0gxssIgkNmArMvis4iNah6Owg1MCJjWhEcDLmsK6iGkJq3tHwbDkTlce70/tmXN4cQ== -json-schema-traverse@^0.4.1: - version "0.4.1" - resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz#69f6a87d9513ab8bb8fe63bdb0979c448e684660" - integrity sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg== - -json-stable-stringify-without-jsonify@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz#9db7b59496ad3f3cfef30a75142d2d930ad72651" - integrity sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw== - json-stringify-nice@^1.1.4: version "1.1.4" resolved "https://registry.yarnpkg.com/json-stringify-nice/-/json-stringify-nice-1.1.4.tgz#2c937962b80181d3f317dd39aa323e14f5a60a67" @@ -4543,13 +4154,6 @@ just-diff@^6.0.0: resolved "https://registry.yarnpkg.com/just-diff/-/just-diff-6.0.2.tgz#03b65908543ac0521caf6d8eb85035f7d27ea285" integrity sha512-S59eriX5u3/QhMNq3v/gm8Kd0w8OS6Tz2FS1NG4blv+z0MuQcBRJyFWjdovM0Rad4/P4aUPFtnkNjMjyMlMSYA== -keyv@^4.5.3: - version "4.5.4" - resolved "https://registry.yarnpkg.com/keyv/-/keyv-4.5.4.tgz#a879a99e29452f942439f2a405e3af8b31d4de93" - integrity sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw== - dependencies: - json-buffer "3.0.1" - kind-of@^6.0.2, kind-of@^6.0.3: version "6.0.3" resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-6.0.3.tgz#07c05034a6c349fa06e24fa35aa76db4580ce4dd" @@ -4657,14 +4261,6 @@ leven@^3.1.0: resolved "https://registry.yarnpkg.com/leven/-/leven-3.1.0.tgz#77891de834064cccba82ae7842bb6b14a13ed7f2" integrity sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A== -levn@^0.4.1: - version "0.4.1" - resolved "https://registry.yarnpkg.com/levn/-/levn-0.4.1.tgz#ae4562c007473b932a6200d403268dd2fffc6ade" - integrity sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ== - dependencies: - prelude-ls "^1.2.1" - type-check "~0.4.0" - libnpmaccess@8.0.6: version "8.0.6" resolved "https://registry.yarnpkg.com/libnpmaccess/-/libnpmaccess-8.0.6.tgz#73be4c236258babc0a0bca6d3b6a93a6adf937cf" @@ -4732,13 +4328,6 @@ locate-path@^5.0.0: dependencies: p-locate "^4.1.0" -locate-path@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-6.0.0.tgz#55321eb309febbc59c4801d931a72452a681d286" - integrity sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw== - dependencies: - p-locate "^5.0.0" - lodash.ismatch@^4.4.0: version "4.4.0" resolved "https://registry.yarnpkg.com/lodash.ismatch/-/lodash.ismatch-4.4.0.tgz#756cb5150ca3ba6f11085a78849645f188f85f37" @@ -4749,11 +4338,6 @@ lodash.memoize@^4.1.2: resolved "https://registry.yarnpkg.com/lodash.memoize/-/lodash.memoize-4.1.2.tgz#bcc6c49a42a2840ed997f323eada5ecd182e0bfe" integrity sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag== -lodash.merge@^4.6.2: - version "4.6.2" - resolved "https://registry.yarnpkg.com/lodash.merge/-/lodash.merge-4.6.2.tgz#558aa53b43b661e1925a0afdfa36a9a1085fe57a" - integrity sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ== - lodash@^4.17.21: version "4.17.21" resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c" @@ -4975,7 +4559,7 @@ minimatch@9.0.3, minimatch@^9.0.1: dependencies: brace-expansion "^2.0.1" -minimatch@^3.0.4, minimatch@^3.0.5, minimatch@^3.1.1, minimatch@^3.1.2: +minimatch@^3.0.4, minimatch@^3.1.1: version "3.1.2" resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.1.2.tgz#19cd194bfd3e428f049a70817c038d89ab4be35b" integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw== @@ -5457,18 +5041,6 @@ openapi-types@^12.1.3: resolved "https://registry.yarnpkg.com/openapi-types/-/openapi-types-12.1.3.tgz#471995eb26c4b97b7bd356aacf7b91b73e777dd3" integrity sha512-N4YtSYJqghVu4iek2ZUvcN/0aqH1kRDuNqzcycDxhOUpg7GdvLa2F3DgS6yBNhInhv2r/6I0Flkn7CqL8+nIcw== -optionator@^0.9.3: - version "0.9.4" - resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.9.4.tgz#7ea1c1a5d91d764fb282139c88fe11e182a3a734" - integrity sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g== - dependencies: - deep-is "^0.1.3" - fast-levenshtein "^2.0.6" - levn "^0.4.1" - prelude-ls "^1.2.1" - type-check "^0.4.0" - word-wrap "^1.2.5" - ora@5.3.0: version "5.3.0" resolved "https://registry.yarnpkg.com/ora/-/ora-5.3.0.tgz#fb832899d3a1372fe71c8b2c534bbfe74961bb6f" @@ -5522,7 +5094,7 @@ p-limit@^2.2.0: dependencies: p-try "^2.0.0" -p-limit@^3.0.2, p-limit@^3.1.0: +p-limit@^3.1.0: version "3.1.0" resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-3.1.0.tgz#e1daccbe78d0d1388ca18c64fea38e3e57e3706b" integrity sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ== @@ -5543,13 +5115,6 @@ p-locate@^4.1.0: dependencies: p-limit "^2.2.0" -p-locate@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-5.0.0.tgz#83c8315c6785005e3bd021839411c9e110e6d834" - integrity sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw== - dependencies: - p-limit "^3.0.2" - p-map-series@2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/p-map-series/-/p-map-series-2.1.0.tgz#7560d4c452d9da0c07e692fdbfe6e2c81a2a91f2" @@ -5807,18 +5372,6 @@ postcss-selector-parser@^6.0.10: cssesc "^3.0.0" util-deprecate "^1.0.2" -prelude-ls@^1.2.1: - version "1.2.1" - resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.2.1.tgz#debc6489d7a6e6b0e7611888cec880337d316396" - integrity sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g== - -prettier-linter-helpers@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz#d23d41fe1375646de2d0104d3454a3008802cf7b" - integrity sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w== - dependencies: - fast-diff "^1.1.2" - prettier@^3.4.2: version "3.4.2" resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.4.2.tgz#a5ce1fb522a588bf2b78ca44c6e6fe5aa5a2b13f" @@ -5919,11 +5472,6 @@ proxy-from-env@^1.1.0: resolved "https://registry.yarnpkg.com/proxy-from-env/-/proxy-from-env-1.1.0.tgz#e102f16ca355424865755d2c9e8ea4f24d58c3e2" integrity sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg== -punycode@^2.1.0: - version "2.3.1" - resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.3.1.tgz#027422e2faec0b25e1549c3e1bd8309b9133b6e5" - integrity sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg== - pure-rand@^6.0.0: version "6.0.1" resolved "https://registry.yarnpkg.com/pure-rand/-/pure-rand-6.0.1.tgz#31207dddd15d43f299fdcdb2f572df65030c19af" @@ -6113,7 +5661,7 @@ reusify@^1.0.4: resolved "https://registry.yarnpkg.com/reusify/-/reusify-1.0.4.tgz#90da382b1e126efc02146e90845a88db12925d76" integrity sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw== -rimraf@^3.0.0, rimraf@^3.0.2: +rimraf@^3.0.0: version "3.0.2" resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-3.0.2.tgz#f1a5402ba6220ad52cc1282bac1ae3aa49fd061a" integrity sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA== @@ -6615,14 +6163,6 @@ supports-preserve-symlinks-flag@^1.0.0: resolved "https://registry.yarnpkg.com/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz#6eda4bd344a3c94aea376d4cc31bc77311039e09" integrity sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w== -synckit@^0.9.1: - version "0.9.1" - resolved "https://registry.yarnpkg.com/synckit/-/synckit-0.9.1.tgz#febbfbb6649979450131f64735aa3f6c14575c88" - integrity sha512-7gr8p9TQP6RAHusBOSLs46F4564ZrjV8xFmw5zCmgmhGUcw2hxsShhJ6CEiHQMgPDwAQ1fWHPM0ypc4RMAig4A== - dependencies: - "@pkgr/core" "^0.1.0" - tslib "^2.6.2" - tar-stream@~2.2.0: version "2.2.0" resolved "https://registry.yarnpkg.com/tar-stream/-/tar-stream-2.2.0.tgz#acad84c284136b060dc3faa64474aa9aebd77287" @@ -6682,11 +6222,6 @@ text-hex@1.0.x: resolved "https://registry.yarnpkg.com/text-hex/-/text-hex-1.0.0.tgz#69dc9c1b17446ee79a92bf5b884bb4b9127506f5" integrity sha512-uuVGNWzgJ4yhRaNSiubPY7OjISw4sw4E5Uv0wbjp+OzcbmVU/rsT8ujgcXJhn9ypzsgr5vlzpPqP+MBBKcGvbg== -text-table@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/text-table/-/text-table-0.2.0.tgz#7f5ee823ae805207c00af2df4a84ec3fcfa570b4" - integrity sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw== - through2@^2.0.0: version "2.0.5" resolved "https://registry.yarnpkg.com/through2/-/through2-2.0.5.tgz#01c1e39eb31d07cb7d03a96a70823260b23132cd" @@ -6759,11 +6294,6 @@ triple-beam@^1.3.0: resolved "https://registry.yarnpkg.com/triple-beam/-/triple-beam-1.3.0.tgz#a595214c7298db8339eeeee083e4d10bd8cb8dd9" integrity sha512-XrHUvV5HpdLmIj4uVMxHggLbFSZYIn7HEWsqePZcI50pco+MPqJ50wMGY794X7AOOhxOBAjbkqfAbEe/QMp2Lw== -ts-api-utils@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/ts-api-utils/-/ts-api-utils-2.0.0.tgz#b9d7d5f7ec9f736f4d0f09758b8607979044a900" - integrity sha512-xCt/TOAc+EOHS1XPnijD3/yzpH6qg2xppZO1YDqGoVsNXfQfzHpOdNuXwrwOU8u4ITXJyDCTyt8w5g1sZv9ynQ== - ts-jest@^29.2.5: version "29.2.5" resolved "https://registry.yarnpkg.com/ts-jest/-/ts-jest-29.2.5.tgz#591a3c108e1f5ebd013d3152142cb5472b399d63" @@ -6817,11 +6347,6 @@ tslib@^2.0.3, tslib@^2.1.0, tslib@^2.3.0, tslib@^2.4.0: resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.5.0.tgz#42bfed86f5787aeb41d031866c8f402429e0fddf" integrity sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg== -tslib@^2.6.2: - version "2.6.2" - resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.6.2.tgz#703ac29425e7b37cd6fd456e92404d46d1f3e4ae" - integrity sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q== - tsx@^4.19.2: version "4.19.2" resolved "https://registry.yarnpkg.com/tsx/-/tsx-4.19.2.tgz#2d7814783440e0ae42354d0417d9c2989a2ae92c" @@ -6850,13 +6375,6 @@ tuf-js@^2.2.1: debug "^4.3.4" make-fetch-happen "^13.0.1" -type-check@^0.4.0, type-check@~0.4.0: - version "0.4.0" - resolved "https://registry.yarnpkg.com/type-check/-/type-check-0.4.0.tgz#07b8203bfa7056c0657050e3ccd2c37730bab8f1" - integrity sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew== - dependencies: - prelude-ls "^1.2.1" - type-detect@4.0.8: version "4.0.8" resolved "https://registry.yarnpkg.com/type-detect/-/type-detect-4.0.8.tgz#7646fb5f18871cfbb7749e69bd39a6388eb7450c" @@ -6867,11 +6385,6 @@ type-fest@^0.18.0: resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.18.1.tgz#db4bc151a4a2cf4eebf9add5db75508db6cc841f" integrity sha512-OIAYXk8+ISY+qTOwkHtKqzAuxchoMiD9Udx+FSGQDuiRR+PJKJHc2NJAXlbhkGwTt/4/nKZxELY1w3ReWOL8mw== -type-fest@^0.20.2: - version "0.20.2" - resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.20.2.tgz#1bf207f4b28f91583666cb5fbd327887301cd5f4" - integrity sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ== - type-fest@^0.21.3: version "0.21.3" resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.21.3.tgz#d260a24b0198436e133fa26a524a6d65fa3b2e37" @@ -6975,13 +6488,6 @@ upper-case@^2.0.2: dependencies: tslib "^2.0.3" -uri-js@^4.2.2: - version "4.4.1" - resolved "https://registry.yarnpkg.com/uri-js/-/uri-js-4.4.1.tgz#9b1a52595225859e55f669d928f88c6c57f2a77e" - integrity sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg== - dependencies: - punycode "^2.1.0" - urijs@^1.19.11: version "1.19.11" resolved "https://registry.yarnpkg.com/urijs/-/urijs-1.19.11.tgz#204b0d6b605ae80bea54bea39280cdb7c9f923cc" @@ -7125,11 +6631,6 @@ winston@^3.17.0: triple-beam "^1.3.0" winston-transport "^4.9.0" -word-wrap@^1.2.5: - version "1.2.5" - resolved "https://registry.yarnpkg.com/word-wrap/-/word-wrap-1.2.5.tgz#d2c45c6dd4fbce621a66f136cbe328afd0410b34" - integrity sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA== - wordwrap@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-1.0.0.tgz#27584810891456a4171c8d0226441ade90cbcaeb"