0.3.0 • Published 2 months ago

@jifeline/customer-account v0.3.0

Weekly downloads
-
License
-
Repository
-
Last release
2 months ago

Customer Account library

The Customer Account library is an implementation of the account domain within the Customer API. With this library, after setting the config in the core auth module, the account of the logged-in user can be managed.

These are the current features within this library:

  • company
    • get company
    • update company

Account feature

Within the Account library, there is a company feature. The company of the current logged-in user can be retrieved and adjusted.

Example of usage of the account feature:

import { auth } from '@jifeline/core';
import { customerAccount } from '@jifeline/customer-account';

// Configure the core lib and authenticate by login in with connector / pin or username / password.
auth.configure(config);
auth.loginPin().subscribe();
auth.loginUsername().subscribe();

// After authentication - use the customer account library. Eg;
customerAccount
  .customer
  .getCustomer()
  .subscribe(customer => console.log(customer));

Features

The Customer Account library provides the following features:

  • user
  • customer
  • service center
  • service center status

User

Get the information of the current logged-in user.

The following functions are supported:

  • get user

Customer

Get the customer / company information of the current logged-in user.

The following functions are supported:

  • get customer
  • update customer
  • is ticket without product allowed

Service center

Get the service center information of the current logged-in user.

The following functions are supported:

  • get service center
  • has legacy pricing version

Service center status

Get the status updates of the service center of the current logged-in user.

The following functions are supported:

  • get service center status