Skip to content

Commit f0fb0d4

Browse files
committed
[Librarian] Regenerated @ 517c6276943255de674e1d20cdae01266b89160c dc7e93834d14ebcc1f96c25b9fbc8af35330f99a
1 parent 0250e1e commit f0fb0d4

File tree

33 files changed

+617
-527
lines changed

33 files changed

+617
-527
lines changed

CHANGES.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
twilio-node changelog
22
=====================
33

4+
[2024-01-04] Version 5.0.0-rc.1
5+
-------------------------------
6+
**Library - Chore**
7+
- [PR #991](https://github.com/twilio/twilio-node/pull/991): sync with main. Thanks to [@tiwarishubham635](https://github.com/tiwarishubham635)!
8+
9+
410
[2023-12-15] Version 5.0.0-rc.0
511
---------------------------
612
- Release Candidate preparation

src/rest/PreviewMessagingBase.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class PreviewMessagingBase extends Domain {
1616
_v1?: V1;
1717

1818
/**
19-
* Initialize accounts domain
19+
* Initialize previewMessaging domain
2020
*
2121
* @param twilio - The twilio client
2222
*/

src/rest/Twilio.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ import Intelligence from "./Intelligence";
2525
import IpMessaging from "./IpMessaging";
2626
import Lookups from "./Lookups";
2727
import Media from "./Media";
28+
import PreviewMessaging from "./PreviewMessaging";
2829
import Messaging from "./Messaging";
2930
import Microvisor from "./Microvisor";
3031
import Monitor from "./Monitor";
@@ -107,6 +108,8 @@ class Twilio extends Client {
107108
_lookups?: Lookups;
108109
/** (Twilio.Media) - media domain */
109110
_media?: Media;
111+
/** (Twilio.PreviewMessaging) - previewMessaging domain */
112+
_previewMessaging?: PreviewMessaging;
110113
/** (Twilio.Messaging) - messaging domain */
111114
_messaging?: Messaging;
112115
/** (Twilio.Microvisor) - microvisor domain */
@@ -180,6 +183,7 @@ class Twilio extends Client {
180183
this.ipMessaging;
181184
this.lookups;
182185
this.media;
186+
this.previewMessaging;
183187
this.messaging;
184188
this.microvisor;
185189
this.monitor;
@@ -285,6 +289,13 @@ class Twilio extends Client {
285289
get media(): Media {
286290
return this._media ?? (this._media = new (require("./Media"))(this));
287291
}
292+
/** Getter for (Twilio.PreviewMessaging) domain */
293+
get previewMessaging(): PreviewMessaging {
294+
return (
295+
this._previewMessaging ??
296+
(this._previewMessaging = new (require("./PreviewMessaging"))(this))
297+
);
298+
}
288299
/** Getter for (Twilio.Messaging) domain */
289300
get messaging(): Messaging {
290301
return (

src/rest/api/v2010/account/authorizedConnectApp.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,8 @@ interface AuthorizedConnectAppResource {
160160
connect_app_friendly_name: string;
161161
connect_app_homepage_url: string;
162162
connect_app_sid: string;
163+
date_created: Date;
164+
date_updated: Date;
163165
permissions: Array<AuthorizedConnectAppPermission>;
164166
uri: string;
165167
}
@@ -180,6 +182,8 @@ export class AuthorizedConnectAppInstance {
180182
this.connectAppFriendlyName = payload.connect_app_friendly_name;
181183
this.connectAppHomepageUrl = payload.connect_app_homepage_url;
182184
this.connectAppSid = payload.connect_app_sid;
185+
this.dateCreated = deserialize.rfc2822DateTime(payload.date_created);
186+
this.dateUpdated = deserialize.rfc2822DateTime(payload.date_updated);
183187
this.permissions = payload.permissions;
184188
this.uri = payload.uri;
185189

@@ -213,6 +217,14 @@ export class AuthorizedConnectAppInstance {
213217
* The SID that we assigned to the Connect App.
214218
*/
215219
connectAppSid: string;
220+
/**
221+
* The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
222+
*/
223+
dateCreated: Date;
224+
/**
225+
* The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
226+
*/
227+
dateUpdated: Date;
216228
/**
217229
* The set of permissions that you authorized for the Connect App. Can be: `get-all` or `post-all`.
218230
*/
@@ -259,6 +271,8 @@ export class AuthorizedConnectAppInstance {
259271
connectAppFriendlyName: this.connectAppFriendlyName,
260272
connectAppHomepageUrl: this.connectAppHomepageUrl,
261273
connectAppSid: this.connectAppSid,
274+
dateCreated: this.dateCreated,
275+
dateUpdated: this.dateUpdated,
262276
permissions: this.permissions,
263277
uri: this.uri,
264278
};

src/rest/api/v2010/account/call.ts

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -156,16 +156,8 @@ export interface CallListInstanceEachOptions {
156156
status?: CallStatus;
157157
/** Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. */
158158
startTime?: Date;
159-
/** Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. */
160-
startTimeBefore?: Date;
161-
/** Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. */
162-
startTimeAfter?: Date;
163159
/** Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. */
164160
endTime?: Date;
165-
/** Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. */
166-
endTimeBefore?: Date;
167-
/** Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. */
168-
endTimeAfter?: Date;
169161
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
170162
pageSize?: number;
171163
/** Function to process each record. If this and a positional callback are passed, this one will be used */
@@ -190,16 +182,8 @@ export interface CallListInstanceOptions {
190182
status?: CallStatus;
191183
/** Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. */
192184
startTime?: Date;
193-
/** Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. */
194-
startTimeBefore?: Date;
195-
/** Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. */
196-
startTimeAfter?: Date;
197185
/** Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. */
198186
endTime?: Date;
199-
/** Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. */
200-
endTimeBefore?: Date;
201-
/** Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. */
202-
endTimeAfter?: Date;
203187
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
204188
pageSize?: number;
205189
/** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
@@ -220,16 +204,8 @@ export interface CallListInstancePageOptions {
220204
status?: CallStatus;
221205
/** Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. */
222206
startTime?: Date;
223-
/** Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. */
224-
startTimeBefore?: Date;
225-
/** Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date. */
226-
startTimeAfter?: Date;
227207
/** Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. */
228208
endTime?: Date;
229-
/** Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. */
230-
endTimeBefore?: Date;
231-
/** Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date. */
232-
endTimeAfter?: Date;
233209
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
234210
pageSize?: number;
235211
/** Page Number, this value is simply for client state */
@@ -1171,16 +1147,8 @@ export function CallListInstance(
11711147
if (params["status"] !== undefined) data["Status"] = params["status"];
11721148
if (params["startTime"] !== undefined)
11731149
data["StartTime"] = serialize.iso8601DateTime(params["startTime"]);
1174-
if (params["startTimeBefore"] !== undefined)
1175-
data["StartTime<"] = serialize.iso8601DateTime(params["startTimeBefore"]);
1176-
if (params["startTimeAfter"] !== undefined)
1177-
data["StartTime>"] = serialize.iso8601DateTime(params["startTimeAfter"]);
11781150
if (params["endTime"] !== undefined)
11791151
data["EndTime"] = serialize.iso8601DateTime(params["endTime"]);
1180-
if (params["endTimeBefore"] !== undefined)
1181-
data["EndTime<"] = serialize.iso8601DateTime(params["endTimeBefore"]);
1182-
if (params["endTimeAfter"] !== undefined)
1183-
data["EndTime>"] = serialize.iso8601DateTime(params["endTimeAfter"]);
11841152
if (params["pageSize"] !== undefined) data["PageSize"] = params["pageSize"];
11851153

11861154
if (params.pageNumber !== undefined) data["Page"] = params.pageNumber;

0 commit comments

Comments
 (0)