Options
All
  • Public
  • Public/Protected
  • All
Menu

Class IdentityService

This class allwos for managing external identifiers.

Hierarchy

  • IdentityService

Index

Constructors

Methods

Constructors

constructor

Methods

create

  • Creates a new identity.

    example
    
      const identity: IExternalIdentity = {
         type: 'type',
         externalId: '1'
       };
    
       (async () => {
         const {data, res} = await identityService.create(identity);
      })();
    

    Parameters

    Returns Promise<IResult<IExternalIdentity>>

    Response wrapped in IResult

delete

  • Removes an identity with given id.

    example
    
      const identity: IExternalIdentity = {
         type: 'type',
         externalId: '1'
       };
    
       (async () => {
         const {data, res} = await identityService.delete(identity);
      })();
    

    Parameters

    Returns Promise<IResult<IExternalIdentity>>

    Response wrapped in IResult

detail

  • Gets the details of an identity.

    example
    
       const identity: IExternalIdentity = {
         type: 'type',
         externalId: '1'
       };
    
       (async () => {
         const {data, res} = await identityService.detail(identity);
      })();
    

    Parameters

    Returns Promise<IResult<IExternalIdentity>>

    Response wrapped in IResult

list

  • Gets the list of identities filtered by parameters.

    example
    
     const filter: object = {
        pageSize: 100,
        withTotalPages: true
      };
    
      (async () => {
        const {data, res, paging} = await identityService.list(filter);
      })();
    

    Parameters

    • managedObjectId: string

    Returns Promise<IResultList<IExternalIdentity>>

    Response wrapped in IResultList

Generated using TypeDoc