build: update dependencies

This commit is contained in:
Jovan Krunić
2019-01-28 14:11:43 +01:00
parent db240aa4b1
commit e37a23e8e0
9 changed files with 260 additions and 159 deletions

View File

@@ -19,7 +19,7 @@ import {
SCBulkDoneRoute,
SCBulkResponse,
SCThings,
SCThingTypes,
SCThingType,
} from '@openstapps/core';
import {Client} from './client';
import {BulkWithMultipleTypesError} from './errors';
@@ -46,7 +46,7 @@ export class Bulk<T extends SCThings> {
* @see Client.bulk
*/
constructor(
private type: SCThingTypes,
private type: SCThingType,
private client: Client,
private bulkResponse: SCBulkResponse,
) {

View File

@@ -18,7 +18,7 @@ import {
SCLicensePlate,
SCNamespaces,
SCThings,
SCThingTypes,
SCThingType,
SCThingUpdateResponse,
SCThingUpdateRoute,
} from '@openstapps/core';
@@ -78,7 +78,7 @@ export class ConnectorClient extends Client {
* @param source Source identifier (should be unique per actual data source)
* @param timeout Timeout in seconds when the bulk should expire
*/
async bulk<T extends SCThings>(type: SCThingTypes, source: string, timeout?: number): Promise<Bulk<T>> {
async bulk<T extends SCThings>(type: SCThingType, source: string, timeout?: number): Promise<Bulk<T>> {
// set default value for timeout to one hour
if (typeof timeout !== 'number') {
timeout = 3600;

View File

@@ -12,7 +12,7 @@
* You should have received a copy of the GNU General Public License along with
* this program. If not, see <https://www.gnu.org/licenses/>.
*/
import {SCSearchRequest, SCThingTypes} from '@openstapps/core';
import {SCSearchRequest, SCThingType} from '@openstapps/core';
import {asyncPool} from 'async-pool-native/dist/async-pool';
import {Bar} from 'cli-progress';
import {Client} from './client';
@@ -47,7 +47,7 @@ export interface CopyOptions {
/**
* StAppsCore type to copy
*/
type: SCThingTypes;
type: SCThingType;
/**
* StApps version identifier to copy data for