Skip to content

Commit

Permalink
Merge branch 'main' into pass_http_agent
Browse files Browse the repository at this point in the history
  • Loading branch information
tiwarishubham635 authored Oct 28, 2024
2 parents d64c3be + 3723901 commit 530b172
Show file tree
Hide file tree
Showing 21 changed files with 756 additions and 6,363 deletions.
6 changes: 6 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
twilio-node changelog
=====================

[2024-10-24] Version 5.3.5
--------------------------
**Conversations**
- Expose ConversationWithParticipants resource that allows creating a conversation with participants


[2024-10-17] Version 5.3.4
--------------------------
**Api**
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "twilio",
"description": "A Twilio helper library",
"version": "5.3.4",
"version": "5.3.5",
"author": "API Team <api@twilio.com>",
"contributors": [
{
Expand Down
9 changes: 0 additions & 9 deletions src/rest/Preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { AuthorizationDocumentListInstance } from "./preview/hosted_numbers/auth
import { HostedNumberOrderListInstance } from "./preview/hosted_numbers/hostedNumberOrder";
import { AvailableAddOnListInstance } from "./preview/marketplace/availableAddOn";
import { InstalledAddOnListInstance } from "./preview/marketplace/installedAddOn";
import { ServiceListInstance } from "./preview/sync/service";
import { CommandListInstance } from "./preview/wireless/command";
import { RatePlanListInstance } from "./preview/wireless/ratePlan";
import { SimListInstance } from "./preview/wireless/sim";
Expand Down Expand Up @@ -49,14 +48,6 @@ class Preview extends PreviewBase {
return this.marketplace.installedAddOns;
}

/**
* @deprecated - Use sync.services instead
*/
get services(): ServiceListInstance {
console.warn("services is deprecated. Use sync.services instead.");
return this.sync.services;
}

/**
* @deprecated - Use wireless.commands instead
*/
Expand Down
6 changes: 0 additions & 6 deletions src/rest/PreviewBase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,11 @@

import Domain from "../base/Domain";
import HostedNumbers from "./preview/HostedNumbers";
import Sync from "./preview/Sync";
import Marketplace from "./preview/Marketplace";
import Wireless from "./preview/Wireless";

class PreviewBase extends Domain {
_hosted_numbers?: HostedNumbers;
_sync?: Sync;
_marketplace?: Marketplace;
_wireless?: Wireless;

Expand All @@ -34,10 +32,6 @@ class PreviewBase extends Domain {
this._hosted_numbers = this._hosted_numbers || new HostedNumbers(this);
return this._hosted_numbers;
}
get sync(): Sync {
this._sync = this._sync || new Sync(this);
return this._sync;
}
get marketplace(): Marketplace {
this._marketplace = this._marketplace || new Marketplace(this);
return this._marketplace;
Expand Down
11 changes: 11 additions & 0 deletions src/rest/conversations/V1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import Version from "../../base/Version";
import { AddressConfigurationListInstance } from "./v1/addressConfiguration";
import { ConfigurationListInstance } from "./v1/configuration";
import { ConversationListInstance } from "./v1/conversation";
import { ConversationWithParticipantsListInstance } from "./v1/conversationWithParticipants";
import { CredentialListInstance } from "./v1/credential";
import { ParticipantConversationListInstance } from "./v1/participantConversation";
import { RoleListInstance } from "./v1/role";
Expand All @@ -39,6 +40,8 @@ export default class V1 extends Version {
protected _configuration?: ConfigurationListInstance;
/** conversations - { Twilio.Conversations.V1.ConversationListInstance } resource */
protected _conversations?: ConversationListInstance;
/** conversationWithParticipants - { Twilio.Conversations.V1.ConversationWithParticipantsListInstance } resource */
protected _conversationWithParticipants?: ConversationWithParticipantsListInstance;
/** credentials - { Twilio.Conversations.V1.CredentialListInstance } resource */
protected _credentials?: CredentialListInstance;
/** participantConversations - { Twilio.Conversations.V1.ParticipantConversationListInstance } resource */
Expand Down Expand Up @@ -70,6 +73,14 @@ export default class V1 extends Version {
return this._conversations;
}

/** Getter for conversationWithParticipants resource */
get conversationWithParticipants(): ConversationWithParticipantsListInstance {
this._conversationWithParticipants =
this._conversationWithParticipants ||
ConversationWithParticipantsListInstance(this);
return this._conversationWithParticipants;
}

/** Getter for credentials resource */
get credentials(): CredentialListInstance {
this._credentials = this._credentials || CredentialListInstance(this);
Expand Down
Loading

0 comments on commit 530b172

Please sign in to comment.