Skip to content

Commit

Permalink
[Librarian] Regenerated @ 2c6a7678456a1fa3a33c34b2c5efe6cb49d23085
Browse files Browse the repository at this point in the history
  • Loading branch information
twilio-ci committed Apr 7, 2020
1 parent 052acfe commit 681a016
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 0 deletions.
14 changes: 14 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@
twilio-node changelog
=====================

[2020-04-07] Version 3.42.1
---------------------------
**Library - Fix**
- [PR #558](https://github.com/twilio/twilio-node/pull/558): add list instance types and update 'object' type properties to 'any' in TS. Thanks to [@childish-sambino](https://github.com/childish-sambino)!
- [PR #556](https://github.com/twilio/twilio-node/pull/556): update allowed types for response body. Thanks to [@eshanholtz](https://github.com/eshanholtz)!
- [PR #554](https://github.com/twilio/twilio-node/pull/554): json parsing for non default clients. Thanks to [@eshanholtz](https://github.com/eshanholtz)!

**Library - Chore**
- [PR #557](https://github.com/twilio/twilio-node/pull/557): remove S3 URLs from test data. Thanks to [@childish-sambino](https://github.com/childish-sambino)!

**Studio**
- Add new `warnings` attribute v2 flow POST api


[2020-04-01] Version 3.42.0
---------------------------
**Library - Fix**
Expand Down
2 changes: 2 additions & 0 deletions lib/rest/studio/v2/flow.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ interface FlowResource {
status: FlowStatus;
url: string;
valid: boolean;
warnings: object[];
webhook_url: string;
}

Expand Down Expand Up @@ -362,6 +363,7 @@ declare class FlowInstance extends SerializableClass {
update(opts: FlowInstanceUpdateOptions, callback?: (error: Error | null, items: FlowInstance) => any): Promise<FlowInstance>;
url: string;
valid: boolean;
warnings: object[];
webhookUrl: string;
}

Expand Down
2 changes: 2 additions & 0 deletions lib/rest/studio/v2/flow.js
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,7 @@ FlowPage.prototype[util.inspect.custom] = function inspect(depth, options) {
* @property {string} commitMessage - Description on change made in the revision
* @property {boolean} valid - Boolean if the flow definition is valid
* @property {object} errors - List of error in the flow definition
* @property {object} warnings - List of warnings in the flow definition
* @property {Date} dateCreated -
* The ISO 8601 date and time in GMT when the resource was created
* @property {Date} dateUpdated -
Expand All @@ -510,6 +511,7 @@ FlowInstance = function FlowInstance(version, payload, sid) {
this.commitMessage = payload.commit_message; // jshint ignore:line
this.valid = payload.valid; // jshint ignore:line
this.errors = payload.errors; // jshint ignore:line
this.warnings = payload.warnings; // jshint ignore:line
this.dateCreated = deserialize.iso8601DateTime(payload.date_created); // jshint ignore:line
this.dateUpdated = deserialize.iso8601DateTime(payload.date_updated); // jshint ignore:line
this.webhookUrl = payload.webhook_url; // jshint ignore:line
Expand Down
7 changes: 7 additions & 0 deletions spec/integration/rest/studio/v2/flow.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ describe('Flow', function() {
'commit_message': null,
'valid': true,
'errors': [],
'warnings': [],
'webhook_url': 'http://webhooks.twilio.com/v1/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Flows/FWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
'date_created': '2017-11-06T12:00:00Z',
'date_updated': null,
Expand Down Expand Up @@ -129,6 +130,7 @@ describe('Flow', function() {
'commit_message': null,
'valid': true,
'errors': [],
'warnings': [],
'webhook_url': 'http://webhooks.twilio.com/v1/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Flows/FWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
'date_created': '2017-11-06T12:00:00Z',
'date_updated': '2017-11-06T12:00:00Z',
Expand Down Expand Up @@ -175,6 +177,7 @@ describe('Flow', function() {
'commit_message': null,
'valid': null,
'errors': null,
'warnings': null,
'webhook_url': 'http://webhooks.twilio.com/v1/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Flows/FWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
'date_created': '2017-11-06T12:00:00Z',
'date_updated': '2017-11-06T12:00:00Z',
Expand Down Expand Up @@ -214,6 +217,7 @@ describe('Flow', function() {
'commit_message': null,
'valid': null,
'errors': null,
'warnings': null,
'webhook_url': 'http://webhooks.twilio.com/v1/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Flows/FWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
'date_created': '2017-11-06T12:00:00Z',
'date_updated': '2017-11-06T12:00:00Z',
Expand Down Expand Up @@ -258,6 +262,7 @@ describe('Flow', function() {
'commit_message': null,
'valid': null,
'errors': null,
'warnings': null,
'webhook_url': 'http://webhooks.twilio.com/v1/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Flows/FWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
'date_created': '2017-11-06T12:00:00Z',
'date_updated': '2017-11-06T12:00:00Z',
Expand Down Expand Up @@ -317,6 +322,7 @@ describe('Flow', function() {
'commit_message': null,
'valid': null,
'errors': null,
'warnings': null,
'webhook_url': 'http://webhooks.twilio.com/v1/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Flows/FWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
'date_created': '2017-11-06T12:00:00Z',
'date_updated': '2017-11-06T12:00:00Z',
Expand Down Expand Up @@ -376,6 +382,7 @@ describe('Flow', function() {
'commit_message': 'commit',
'valid': true,
'errors': [],
'warnings': [],
'webhook_url': 'http://webhooks.twilio.com/v1/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Flows/FWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
'date_created': '2017-11-06T12:00:00Z',
'date_updated': null,
Expand Down

0 comments on commit 681a016

Please sign in to comment.