Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

degiro-api

Package Overview
Dependencies
Maintainers
1
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

degiro-api - npm Package Compare versions

Comparing version 0.0.17 to 0.0.18

dist/lib/requests/searchProductRequest.d.ts

4

dist/lib/DeGiro.d.ts
import { DeGiroClassInterface } from './interfaces';
import { DeGiroSettupType, AccountConfigType, AccountDataType, CashFoundType, GetPorfolioConfigType } from './types';
import { DeGiroSettupType, AccountConfigType, AccountDataType, CashFoundType, SearchProductResultType, GetPorfolioConfigType, SearchProductOptionsType } from './types';
/**

@@ -23,4 +23,4 @@ * @class DeGiro

getProductsByIds(ids: string[]): Promise<any[]>;
printConfig(): void;
searchProduct(options: SearchProductOptionsType): Promise<SearchProductResultType[]>;
}
//# sourceMappingURL=DeGiro.d.ts.map

@@ -114,7 +114,7 @@ "use strict";

};
DeGiro.prototype.printConfig = function () {
console.log({
username: this.username,
pwd: this.pwd,
});
DeGiro.prototype.searchProduct = function (options) {
if (!this.accountConfig || !this.accountData) {
return Promise.reject('No session id found.');
}
return requests_1.searchProductRequest(options, this.accountConfig, this.accountData);
};

@@ -121,0 +121,0 @@ return DeGiro;

@@ -1,2 +0,2 @@

import { CashFoundType, AccountConfigType, GetPorfolioConfigType, AccountDataType } from '../types';
import { CashFoundType, AccountConfigType, GetPorfolioConfigType, AccountDataType, SearchProductOptionsType, SearchProductResultType } from '../types';
/**

@@ -13,5 +13,4 @@ * @interface DeGiroClassInterface

getProductsByIds(ids: string[]): Promise<any[]>;
printConfig(): void;
printConfig(): void;
searchProduct(options: SearchProductOptionsType): Promise<SearchProductResultType[]>;
}
//# sourceMappingURL=DeGiroClassInterface.d.ts.map

@@ -6,3 +6,4 @@ import { loginRequest } from './login';

import { getProductsByIdsRequest } from './getProductsByIdsRequest';
export { loginRequest, getAccountConfigRequest, getAccountDataRequest, getPortfolioRequest, getProductsByIdsRequest, };
import { searchProductRequest } from './searchProductRequest';
export { loginRequest, getAccountConfigRequest, getAccountDataRequest, getPortfolioRequest, getProductsByIdsRequest, searchProductRequest, };
//# sourceMappingURL=index.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getProductsByIdsRequest = exports.getPortfolioRequest = exports.getAccountDataRequest = exports.getAccountConfigRequest = exports.loginRequest = void 0;
exports.searchProductRequest = exports.getProductsByIdsRequest = exports.getPortfolioRequest = exports.getAccountDataRequest = exports.getAccountConfigRequest = exports.loginRequest = void 0;
var login_1 = require("./login");

@@ -14,2 +14,4 @@ Object.defineProperty(exports, "loginRequest", { enumerable: true, get: function () { return login_1.loginRequest; } });

Object.defineProperty(exports, "getProductsByIdsRequest", { enumerable: true, get: function () { return getProductsByIdsRequest_1.getProductsByIdsRequest; } });
var searchProductRequest_1 = require("./searchProductRequest");
Object.defineProperty(exports, "searchProductRequest", { enumerable: true, get: function () { return searchProductRequest_1.searchProductRequest; } });
//# sourceMappingURL=index.js.map

@@ -10,3 +10,5 @@ import { CashFoundType } from './CashFoundType';

import { GetPorfolioConfigType } from './GetPorfolioConfigType';
export { CashFoundType, DeGiroSettupType, PortfolioPositionType, LoginResponseType, LoginRequestParamsType, LoginRequestBodyType, AccountConfigType, AccountDataType, GetPorfolioConfigType, };
import { SearchProductOptionsType } from './SearchProductOptionsType';
import { SearchProductResultType } from './SearchProductResultType';
export { CashFoundType, DeGiroSettupType, PortfolioPositionType, LoginResponseType, LoginRequestParamsType, LoginRequestBodyType, AccountConfigType, AccountDataType, GetPorfolioConfigType, SearchProductOptionsType, SearchProductResultType, };
//# sourceMappingURL=index.d.ts.map
{
"name": "degiro-api",
"version": "0.0.17",
"version": "0.0.18",
"public": true,

@@ -5,0 +5,0 @@ "description": "Unofficial DeGiro API for Javascript. Buy and sell in the stock market. See your portfolio and much more",

@@ -8,6 +8,15 @@ // Import modules

// Import types
import { DeGiroSettupType, LoginResponseType, AccountConfigType, AccountDataType, CashFoundType, PortfolioPositionType, GetPorfolioConfigType } from './types'
import {
DeGiroSettupType,
LoginResponseType,
AccountConfigType,
AccountDataType,
CashFoundType,
SearchProductResultType,
GetPorfolioConfigType,
SearchProductOptionsType,
} from './types'
// Import requests
import { loginRequest, getAccountConfigRequest, getAccountDataRequest, getPortfolioRequest, getProductsByIdsRequest } from './requests'
import { loginRequest, getAccountConfigRequest, getAccountDataRequest, getPortfolioRequest, getProductsByIdsRequest, searchProductRequest } from './requests'

@@ -132,9 +141,9 @@ // Import debug console log

printConfig(): void {
console.log({
username: this.username,
pwd: this.pwd,
})
searchProduct(options: SearchProductOptionsType): Promise<SearchProductResultType[]> {
if (!this.accountConfig || !this.accountData) {
return Promise.reject('No session id found.')
}
return searchProductRequest(options, this.accountConfig, this.accountData)
}
}

@@ -1,2 +0,2 @@

import { CashFoundType, AccountConfigType, GetPorfolioConfigType, AccountDataType } from '../types'
import { CashFoundType, AccountConfigType, GetPorfolioConfigType, AccountDataType, SearchProductOptionsType, SearchProductResultType } from '../types'

@@ -22,16 +22,4 @@ /**

// setOrder
searchProduct (options: SearchProductOptionsType): Promise<SearchProductResultType[]>
// searchProduct
// askBidPrice
// getProductsById
// getClientInfo
printConfig(): void
printConfig(): void
}

@@ -6,2 +6,3 @@ import { loginRequest } from './login'

import { getProductsByIdsRequest } from './getProductsByIdsRequest'
import { searchProductRequest } from './searchProductRequest'

@@ -14,2 +15,3 @@ export {

getProductsByIdsRequest,
searchProductRequest,
}

@@ -10,2 +10,4 @@ import { CashFoundType } from './CashFoundType'

import { GetPorfolioConfigType } from './GetPorfolioConfigType'
import { SearchProductOptionsType } from './SearchProductOptionsType'
import { SearchProductResultType } from './SearchProductResultType'

@@ -22,2 +24,4 @@ export {

GetPorfolioConfigType,
SearchProductOptionsType,
SearchProductResultType,
}

@@ -13,3 +13,3 @@ {

{
"limit": 150,
"limit": 200,
"ignore-pattern": "^import |^export {(.*?)}",

@@ -16,0 +16,0 @@ "check-strings": true,

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc