npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@kontist/mock-solaris

v1.0.149

Published

Mock Service for Solaris API

Downloads

1,847

Readme

Solaris Mock Server

A super minimal implementation of the Solaris backend.

Usage

Running with hot reloading enabled

You need two terminal sessions:

  1. npm run build:hot (1st terminal session)
  2. Optionally (if you haven't built before): npm run build:docker (2nd terminal session)
  3. npm run start:docker (2nd terminal session)
  4. Enjoy. You may now access the backoffice at http://localhost:2091/__BACKOFFICE__/.

Running tests

  1. npm run start:mockredis Starts mock redis instance
  2. npm run test Runs tests

Example request

curl TODO

Backoffice screenshots

mockSolarisPerson

Persons and accounts

Navigate to the URL mentioned above. From there you can send simple, random transaction(s) to your test account.

To add further persons, please have a look at the savePerson method.

Scope

This mock service currently supports (at different extents)

  • Accounts
  • Statements
  • Transfers (incl. Batch Transfers, Timed Orders and Standing Orders)
  • Change Requests
  • Cards
  • Device Binding
  • Overdraft
  • Seizures
  • Direct Debit Returns
  • Webhooks
  • Customer Due Diligence
  • ...

TAN

For device binding, you can use any combination as the 6-digit TAN (it is not actually verified).

For other TAN confirmation (Change Requests, Transfer confirmation, etc.), you can find the 6-digit code on your user's UI: TAN

Onboarding a person - Customer due diligence (CDD)

A successfully onboarded person must have "green" values for screening values. You can set screening values from the "Person data" section (More info)

Seizure Protection

When querying the balance for P-konto accounts, you will get a seizure_protection object as stated in this API. Since solaris does not support changing an account to P-konto; we mocked the existence of seizure protection.

You can modify the values of seizure protection in this section:

seizure-protection

You can also delete the object afterwards:

allow-delete-seizure-protection

Configuration

Enable Redis

Reference

The following environment variables are supported:

SOLARIS_CLIENT_ID=...
SOLARIS_CLIENT_SECRET=...
SOLARIS_CARD_AUTHORIZATION_WEBHOOK_ORIGIN_VERIFICATION_SECRET=...
SOLARIS_OVERDRAFT_APPLICATION_WEBHOOK_ORIGIN_VERIFICATION_SECRET=...
SOLARIS_BIC=SOBKDEBBXXX

MOCKSOLARIS_REDIS_PREFIX=mocksolaris
MOCKSOLARIS_REDIS_SERVER=redis://:pwd@mocks-redis/

SOLARIS_KONTIST_ACCOUNT_ID=mockaccount_id
SOLARIS_KONTIST_ACCOUNT_CLIENT_ID=...
SOLARIS_KONTIST_ACCOUNT_CLIENT_SECRET=...
SOLARIS_KONTIST_BILLING_ACCOUNT_ID=mockaccount_billing_id

KONTIST_IBAN=DE01110101000000000000
KONTIST_DD_BILLING_IBAN=DE02110101000000000000

JOBS_USERNAME=jobuser
JOBS_PASSWORD=jobpassword

Publishing New Version

Create a branch that doesn't have the same name as the tag e.g. NOT v1.0.120

git checkout <some_name>

Increase the version

npm version patch

Push the changes with tags

git push --follow-tags