Skip to content

Commit

Permalink
Correct the 'object' type hint for a bunch of resource instance prope…
Browse files Browse the repository at this point in the history
…rties (#475)
  • Loading branch information
childish-sambino committed Sep 11, 2019
1 parent a8212d4 commit 274f195
Show file tree
Hide file tree
Showing 11 changed files with 46 additions and 46 deletions.
28 changes: 14 additions & 14 deletions lib/rest/flexApi/v1/configuration.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,24 +59,24 @@ interface ConfigurationResource {
crm_type: string;
date_created: Date;
date_updated: Date;
features_enabled: string;
integrations: string[];
features_enabled: string[];
integrations: object[];
messaging_service_instance_sid: string;
outbound_call_flows: object;
plugin_service_attributes: object;
plugin_service_enabled: boolean;
public_attributes: object;
runtime_domain: string;
serverless_service_sids: string;
serverless_service_sids: string[];
service_version: string;
status: ConfigurationStatus;
taskrouter_offline_activity_sid: string;
taskrouter_skills: string[];
taskrouter_skills: object[];
taskrouter_target_taskqueue_sid: string;
taskrouter_target_workflow_sid: string;
taskrouter_taskqueues: string[];
taskrouter_worker_attributes: string;
taskrouter_worker_channels: string;
taskrouter_taskqueues: object[];
taskrouter_worker_attributes: object;
taskrouter_worker_channels: object;
taskrouter_workspace_sid: string;
ui_attributes: object;
ui_language: string;
Expand Down Expand Up @@ -150,31 +150,31 @@ declare class ConfigurationInstance extends SerializableClass {
crmType: string;
dateCreated: Date;
dateUpdated: Date;
featuresEnabled: string;
featuresEnabled: string[];
/**
* fetch a ConfigurationInstance
*
* @param opts - Options for request
* @param callback - Callback to handle processed record
*/
fetch(opts?: ConfigurationInstanceFetchOptions, callback?: (error: Error | null, items: ConfigurationInstance) => any): void;
integrations: string[];
integrations: object[];
messagingServiceInstanceSid: string;
outboundCallFlows: object;
pluginServiceAttributes: object;
pluginServiceEnabled: boolean;
publicAttributes: object;
runtimeDomain: string;
serverlessServiceSids: string;
serverlessServiceSids: string[];
serviceVersion: string;
status: ConfigurationStatus;
taskrouterOfflineActivitySid: string;
taskrouterSkills: string[];
taskrouterSkills: object[];
taskrouterTargetTaskqueueSid: string;
taskrouterTargetWorkflowSid: string;
taskrouterTaskqueues: string[];
taskrouterWorkerAttributes: string;
taskrouterWorkerChannels: string;
taskrouterTaskqueues: object[];
taskrouterWorkerAttributes: object;
taskrouterWorkerChannels: object;
taskrouterWorkspaceSid: string;
/**
* Provide a user-friendly representation
Expand Down
4 changes: 2 additions & 2 deletions lib/rest/insights/v1/summary.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ interface CallSummaryResource {
sip_edge: object;
start_time: Date;
tags: string[];
to: string;
to: object;
url: string;
}

Expand Down Expand Up @@ -148,7 +148,7 @@ declare class CallSummaryInstance extends SerializableClass {
sipEdge: object;
startTime: Date;
tags: string[];
to: string;
to: object;
/**
* Provide a user-friendly representation
*/
Expand Down
4 changes: 2 additions & 2 deletions lib/rest/messaging/v1/service/alphaSender.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ interface AlphaSenderPayload extends AlphaSenderResource, Page.TwilioResponsePay
interface AlphaSenderResource {
account_sid: string;
alpha_sender: string;
capabilities: string[];
capabilities: object[];
date_created: Date;
date_updated: Date;
service_sid: string;
Expand Down Expand Up @@ -229,7 +229,7 @@ declare class AlphaSenderInstance extends SerializableClass {
private _proxy: AlphaSenderContext;
accountSid: string;
alphaSender: string;
capabilities: string[];
capabilities: object[];
dateCreated: Date;
dateUpdated: Date;
/**
Expand Down
4 changes: 2 additions & 2 deletions lib/rest/messaging/v1/service/shortCode.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ interface ShortCodePayload extends ShortCodeResource, Page.TwilioResponsePayload

interface ShortCodeResource {
account_sid: string;
capabilities: string[];
capabilities: object[];
country_code: string;
date_created: Date;
date_updated: Date;
Expand Down Expand Up @@ -229,7 +229,7 @@ declare class ShortCodeInstance extends SerializableClass {

private _proxy: ShortCodeContext;
accountSid: string;
capabilities: string[];
capabilities: object[];
countryCode: string;
dateCreated: Date;
dateUpdated: Date;
Expand Down
22 changes: 11 additions & 11 deletions lib/rest/notify/v1/service/notification.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,14 @@ interface NotificationListInstanceCreateOptions {
alexa?: object;
apn?: object;
body?: string;
data?: string;
facebookMessenger?: string;
fcm?: string;
gcm?: string;
data?: object;
facebookMessenger?: object;
fcm?: object;
gcm?: object;
identity?: string | string[];
priority?: NotificationPriority;
segment?: string | string[];
sms?: string;
sms?: object;
sound?: string;
tag?: string | string[];
title?: string;
Expand All @@ -90,9 +90,9 @@ interface NotificationResource {
body: string;
data: object;
date_created: Date;
facebook_messenger: string;
fcm: string;
gcm: string;
facebook_messenger: object;
fcm: object;
gcm: object;
identities: string[];
priority: NotificationPriority;
segments: string[];
Expand Down Expand Up @@ -130,9 +130,9 @@ declare class NotificationInstance extends SerializableClass {
body: string;
data: object;
dateCreated: Date;
facebookMessenger: string;
fcm: string;
gcm: string;
facebookMessenger: object;
fcm: object;
gcm: object;
identities: string[];
priority: NotificationPriority;
segments: string[];
Expand Down
2 changes: 1 addition & 1 deletion lib/rest/proxy/v1/service/session.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ interface SessionListInstance {
interface SessionListInstanceCreateOptions {
dateExpiry?: Date;
mode?: SessionMode;
participants?: string | string[];
participants?: object | object[];
status?: SessionStatus;
ttl?: number;
uniqueName?: string;
Expand Down
12 changes: 6 additions & 6 deletions lib/rest/serverless/v1/service/build.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,11 +174,11 @@ interface BuildPayload extends BuildResource, Page.TwilioResponsePayload {

interface BuildResource {
account_sid: string;
asset_versions: string[];
asset_versions: object[];
date_created: Date;
date_updated: Date;
dependencies: string[];
function_versions: string[];
dependencies: object[];
function_versions: object[];
service_sid: string;
sid: string;
status: BuildStatus;
Expand Down Expand Up @@ -240,17 +240,17 @@ declare class BuildInstance extends SerializableClass {

private _proxy: BuildContext;
accountSid: string;
assetVersions: string[];
assetVersions: object[];
dateCreated: Date;
dateUpdated: Date;
dependencies: string[];
dependencies: object[];
/**
* fetch a BuildInstance
*
* @param callback - Callback to handle processed record
*/
fetch(callback?: (error: Error | null, items: BuildInstance) => any): void;
functionVersions: string[];
functionVersions: object[];
/**
* remove a BuildInstance
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ interface TaskQueueRealTimeStatisticsPayload extends TaskQueueRealTimeStatistics

interface TaskQueueRealTimeStatisticsResource {
account_sid: string;
activity_statistics: string[];
activity_statistics: object[];
longest_task_waiting_age: number;
longest_task_waiting_sid: string;
task_queue_sid: string;
Expand Down Expand Up @@ -104,7 +104,7 @@ declare class TaskQueueRealTimeStatisticsInstance extends SerializableClass {

private _proxy: TaskQueueRealTimeStatisticsContext;
accountSid: string;
activityStatistics: string[];
activityStatistics: object[];
/**
* fetch a TaskQueueRealTimeStatisticsInstance
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ interface WorkersCumulativeStatisticsPayload extends WorkersCumulativeStatistics

interface WorkersCumulativeStatisticsResource {
account_sid: string;
activity_durations: string[];
activity_durations: object[];
end_time: Date;
reservations_accepted: number;
reservations_canceled: number;
Expand Down Expand Up @@ -107,7 +107,7 @@ declare class WorkersCumulativeStatisticsInstance extends SerializableClass {

private _proxy: WorkersCumulativeStatisticsContext;
accountSid: string;
activityDurations: string[];
activityDurations: object[];
endTime: Date;
/**
* fetch a WorkersCumulativeStatisticsInstance
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ interface WorkersRealTimeStatisticsPayload extends WorkersRealTimeStatisticsReso

interface WorkersRealTimeStatisticsResource {
account_sid: string;
activity_statistics: string[];
activity_statistics: object[];
total_workers: number;
url: string;
workspace_sid: string;
Expand Down Expand Up @@ -93,7 +93,7 @@ declare class WorkersRealTimeStatisticsInstance extends SerializableClass {

private _proxy: WorkersRealTimeStatisticsContext;
accountSid: string;
activityStatistics: string[];
activityStatistics: object[];
/**
* fetch a WorkersRealTimeStatisticsInstance
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ interface WorkspaceRealTimeStatisticsPayload extends WorkspaceRealTimeStatistics

interface WorkspaceRealTimeStatisticsResource {
account_sid: string;
activity_statistics: string[];
activity_statistics: object[];
longest_task_waiting_age: number;
longest_task_waiting_sid: string;
tasks_by_priority: object;
Expand Down Expand Up @@ -98,7 +98,7 @@ declare class WorkspaceRealTimeStatisticsInstance extends SerializableClass {

private _proxy: WorkspaceRealTimeStatisticsContext;
accountSid: string;
activityStatistics: string[];
activityStatistics: object[];
/**
* fetch a WorkspaceRealTimeStatisticsInstance
*
Expand Down

0 comments on commit 274f195

Please sign in to comment.