Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions conversation/v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ class ConversationV1 extends GeneratedConversationV1 {
const _options = extend({}, options);
_options.version = _options.version_date || _options.version;
super(_options);
if (!options['silent']) {
// eslint-disable-next-line no-console
console.warn(
'WARNING: Conversation V1 is deprecated and will be removed in the next major release of the SDK. Use Assistant V1 or Assistant V2.' +
' Set {silent: true} to disable this message.'
);
}
}

workspaceStatus(params, callback) {
Expand Down
396 changes: 233 additions & 163 deletions discovery/v1-generated.ts

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions language-translator/v2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@ import GeneratedLanguageTranslatorV2 = require('./v2-generated');
class LanguageTranslatorV2 extends GeneratedLanguageTranslatorV2 {
constructor(options) {
super(options);
if (!options['silent']) {
// eslint-disable-next-line no-console
console.warn(
'WARNING: Language Translator V2 is deprecated and will be removed in the next major release of the SDK. Use Language Translator V3.' +
' Set {silent: true} to disable this message.'
);
}
}

getModels(params, callback) {
Expand Down
16 changes: 8 additions & 8 deletions personality-insights/v3-generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@ class PersonalityInsightsV3 extends BaseService {
* set). When specifying a content type of plain text or HTML, include the `charset` parameter to indicate the
* character encoding of the input text; for example: `Content-Type: text/plain;charset=utf-8`.
*
* For detailed information about calling the service and the responses it can generate, see [Requesting a
* profile](https://console.bluemix.net/docs/services/personality-insights/input.html), [Understanding a JSON
* profile](https://console.bluemix.net/docs/services/personality-insights/output.html), and [Understanding a CSV
* profile](https://console.bluemix.net/docs/services/personality-insights/output-csv.html).
* **See also:**
* * [Requesting a profile](https://console.bluemix.net/docs/services/personality-insights/input.html)
* * [Understanding a JSON profile](https://console.bluemix.net/docs/services/personality-insights/output.html)
* * [Understanding a CSV profile](https://console.bluemix.net/docs/services/personality-insights/output-csv.html).
*
* @param {Object} params - The parameters to send to the service.
* @param {Content|string} params.content - A maximum of 20 MB of content to analyze, though the service requires much
Expand Down Expand Up @@ -163,10 +163,10 @@ class PersonalityInsightsV3 extends BaseService {
* set). When specifying a content type of plain text or HTML, include the `charset` parameter to indicate the
* character encoding of the input text; for example: `Content-Type: text/plain;charset=utf-8`.
*
* For detailed information about calling the service and the responses it can generate, see [Requesting a
* profile](https://console.bluemix.net/docs/services/personality-insights/input.html), [Understanding a JSON
* profile](https://console.bluemix.net/docs/services/personality-insights/output.html), and [Understanding a CSV
* profile](https://console.bluemix.net/docs/services/personality-insights/output-csv.html).
* **See also:**
* * [Requesting a profile](https://console.bluemix.net/docs/services/personality-insights/input.html)
* * [Understanding a JSON profile](https://console.bluemix.net/docs/services/personality-insights/output.html)
* * [Understanding a CSV profile](https://console.bluemix.net/docs/services/personality-insights/output-csv.html).
*
* @param {Object} params - The parameters to send to the service.
* @param {Content|string} params.content - A maximum of 20 MB of content to analyze, though the service requires much
Expand Down
180 changes: 137 additions & 43 deletions speech-to-text/v1-generated.ts

Large diffs are not rendered by default.

19 changes: 4 additions & 15 deletions test/unit/test.discovery.v1.js
Original file line number Diff line number Diff line change
Expand Up @@ -503,15 +503,8 @@ describe('discovery-v1', function() {
},
noop
);
assert.equal(
req.uri.href,
service.url +
paths.query +
'?version=' +
service.version + // query string params order changed, shouldn't be a problem for the service...
'&filter=yesplease&natural_language_query=a%20question%20about%20stuff%20and%20things&passages=true&count=10&sort=%2Bfield_1%2C-field_2'
);
assert.equal(req.method, 'GET');
assert.equal(req.uri.href, service.url + paths.query + '?version=' + service.version);
assert.equal(req.method, 'POST');
});

it('should perform a query for notices', function() {
Expand Down Expand Up @@ -552,13 +545,9 @@ describe('discovery-v1', function() {
);
assert.equal(
req.uri.href,
service.url +
paths.federatedquery +
'?version=' +
service.version + // query string params order changed, shouldn't be a problem for the service...
'&collection_ids=col1-guid%2Ccol2-guid&filter=yesplease&natural_language_query=a%20question%20about%20stuff%20and%20things&count=10&sort=%2Bfield_1%2C-field_2'
service.url + paths.federatedquery + '?version=' + service.version
);
assert.equal(req.method, 'GET');
assert.equal(req.method, 'POST');
});

it('should perform a federated query for notices', function() {
Expand Down
Loading