Skip to content

Commit ab815db

Browse files
committed
refactor: replace shared functionality files with a new dependency, ibm-cloud-sdk-core
1 parent c7ce58b commit ab815db

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+126
-2379
lines changed

assistant/v1.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,9 @@
1515
*/
1616

1717
import * as extend from 'extend';
18+
import { BaseService, getMissingParams } from 'ibm-cloud-sdk-core';
1819
import { RequestResponse } from 'request';
19-
import { BaseService } from '../lib/base_service';
2020
import { getDefaultHeaders } from '../lib/common';
21-
import { getMissingParams } from '../lib/helper';
2221

2322
/**
2423
* The IBM Watson™ Assistant service combines machine learning, natural language understanding, and integrated dialog tools to create conversation flows between your apps and your users.

assistant/v2.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616

1717
import * as extend from 'extend';
1818
import { RequestResponse } from 'request';
19-
import { BaseService } from '../lib/base_service';
19+
import { BaseService } from 'ibm-cloud-sdk-core';
20+
import { getMissingParams } from 'ibm-cloud-sdk-core';
2021
import { getDefaultHeaders } from '../lib/common';
21-
import { getMissingParams } from '../lib/helper';
2222

2323
/**
2424
* The IBM Watson™ Assistant service combines machine learning, natural language understanding, and integrated dialog tools to create conversation flows between your apps and your users.

authorization/v1.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
* limitations under the License.
1515
*/
1616

17+
import { BaseService } from 'ibm-cloud-sdk-core';
1718
import url = require('url');
18-
import { BaseService } from '../lib/base_service';
1919

2020
class AuthorizationV1 extends BaseService {
2121
static URL: string = 'https://stream.watsonplatform.net/authorization/api';

compare-comply/v1.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515
*/
1616

1717
import * as extend from 'extend';
18+
import { BaseService } from 'ibm-cloud-sdk-core';
19+
import { getMissingParams } from 'ibm-cloud-sdk-core';
20+
import { FileObject } from 'ibm-cloud-sdk-core';
1821
import { RequestResponse } from 'request';
19-
import { BaseService } from '../lib/base_service';
2022
import { getDefaultHeaders } from '../lib/common';
21-
import { getMissingParams } from '../lib/helper';
22-
import { FileObject } from '../lib/helper';
2323

2424
/**
2525
* IBM Watson™ Compare and Comply analyzes governing documents to provide details about critical aspects of the documents.

conversation/v1-generated.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
*/
1616

1717
import * as extend from 'extend';
18+
import { BaseService } from 'ibm-cloud-sdk-core';
19+
import { getMissingParams } from 'ibm-cloud-sdk-core';
1820
import { RequestResponse } from 'request';
19-
import { BaseService } from '../lib/base_service';
20-
import { getMissingParams } from '../lib/helper';
2121

2222
/**
2323
* The IBM Watson™ Conversation service combines machine learning, natural language understanding, and integrated dialog tools to create conversation flows between your apps and your users.

conversation/v1.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*/
1616

1717
import extend = require('extend');
18-
import { getMissingParams } from '../lib/helper';
18+
import { getMissingParams } from 'ibm-cloud-sdk-core';
1919
import GeneratedConversationV1 = require('./v1-generated');
2020

2121
class ConversationV1 extends GeneratedConversationV1 {

dialog/v1.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@
1515
*/
1616

1717
import extend = require('extend');
18+
import { BaseService } from 'ibm-cloud-sdk-core';
19+
import { FileObject } from 'ibm-cloud-sdk-core';
1820
import isStream = require('isstream');
1921
import omit = require('object.omit');
2022
import pick = require('object.pick');
2123
import { RequestResponse } from 'request';
22-
import { BaseService } from '../lib/base_service';
23-
import { FileObject } from '../lib/helper';
2424

2525
class DialogV1 extends BaseService {
2626
static URL: string = 'https://gateway.watsonplatform.net/dialog/api';

discovery/v1-generated.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515
*/
1616

1717
import * as extend from 'extend';
18+
import { BaseService } from 'ibm-cloud-sdk-core';
19+
import { getMissingParams } from 'ibm-cloud-sdk-core';
20+
import { FileObject } from 'ibm-cloud-sdk-core';
1821
import { RequestResponse } from 'request';
19-
import { BaseService } from '../lib/base_service';
2022
import { getDefaultHeaders } from '../lib/common';
21-
import { getMissingParams } from '../lib/helper';
22-
import { FileObject } from '../lib/helper';
2323

2424
/**
2525
* The IBM Watson™ Discovery Service is a cognitive search and content analytics engine that you can add to applications to identify patterns, trends and actionable insights to drive better decision-making. Securely unify structured and unstructured data with pre-enriched content, and use a simplified query language to eliminate the need for manual filtering of results.

iam-token-manager/v1.ts

Lines changed: 0 additions & 216 deletions
This file was deleted.

language-translator/v3.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,11 @@
1515
*/
1616

1717
import * as extend from 'extend';
18+
import { BaseService } from 'ibm-cloud-sdk-core';
19+
import { getMissingParams } from 'ibm-cloud-sdk-core';
20+
import { FileObject } from 'ibm-cloud-sdk-core';
1821
import { RequestResponse } from 'request';
19-
import { BaseService } from '../lib/base_service';
2022
import { getDefaultHeaders } from '../lib/common';
21-
import { getMissingParams } from '../lib/helper';
22-
import { FileObject } from '../lib/helper';
23-
2423
/**
2524
* IBM Watson™ Language Translator translates text from one language to another. The service offers multiple IBM provided translation models that you can customize based on your unique terminology and language. Use Language Translator to take news from across the globe and present it in your language, communicate with your customers in their own language, and more.
2625
*/

0 commit comments

Comments
 (0)