13 Commits

Author SHA1 Message Date
Oscar Lorentzon
1969bd83bc refactor: use pipe operators
Use pipe operators everywhere.
Fix errors becasue of piping more than nine operations.
2018-06-13 12:03:40 +00:00
Oscar Lorentzon
72e778b921 chore: upgrade to rxjs 6 compat
Downgrade node types version because of observable type
compatibility issue.
Remove unsupported generics from empty calls.
Use observable create for API call wrapping
becasue of non compatible type when using
observable from promise.
Add frame generator because it was removed
from RxJS 6.
2018-06-12 06:01:04 +00:00
Oscar Lorentzon
c38f4e7c4f chore: remove typings dependency
Add types folder as type root.
Declare modules in type def files to be able to compile.
2018-06-11 06:16:58 +00:00
Oscar Lorentzon
e3250d8162 refactor: import rxjs operators in a single place 2018-04-17 12:50:59 +00:00
Oscar Lorentzon
38169b5125 refactor: request non nested sequence_key property
Request non nested sequence_key property for performance reasons.
Handle non exisiting sequences by returning empty sequence as
fallback in API.
Add tests for fallback logic.
2018-02-20 11:51:48 +01:00
Oscar Lorentzon
51f79ef802 chore: extend tslint recommended
Extend recommended while keeping functionality.
Remove duplicate blank lines.
2017-11-14 13:23:36 +00:00
Oscar Lorentzon
9e2d32107b fix(api): throw informative error when no result
Throw error with informative error message when requesting
an image that does not exist or is filtered.
2017-06-28 16:22:31 +00:00
Oscar Lorentzon
a720d1a2df Migrate to TS 2.1.
Extending Error does not create instances of the created error classes.
Act accordingly in unit test error type checks.
Upgrade three js typings for compatibility.
Error derived classes does not need to create stack trace
explicitly.
Use tilde ranges for ts dev deps for future compatibility.
2016-12-21 17:04:09 +01:00
Oscar Lorentzon
bf6179e1b4 Instantiate models in creator class.
Inject model creator to in APIv3 and test.
2016-11-09 14:41:46 +01:00
Oscar Lorentzon
a582ede529 API methods for all model calls.
Do not expose model on API. Wrap all methods in API
class to make retries simple.
Use API methods in stats component.
Unit test API.
2016-10-25 14:14:39 +02:00
Oscar Lorentzon
2ca1ae2865 Methods for invalidating API cache.
Unit tests.
2016-10-20 11:54:16 +02:00
Oscar Lorentzon
5bcf200286 Handle undefined imagesByH response.
Fill response to be equivalent to an empty response.
2016-10-18 10:39:32 +02:00
Oscar Lorentzon
fba319bfb6 Unit test API v3. 2016-10-14 14:24:12 +02:00