Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "PartitionKeyGenerators"

Index

Type aliases

Object literals

Type aliases

PartitionKeyGenerator

PartitionKeyGenerator: (requestEnvelope: RequestEnvelope) => string

Type definition of function used by {@link MongoDbPersistenceAdapter} to extract attributes id from {@link RequestEnvelope}.

Type declaration

    • (requestEnvelope: RequestEnvelope): string
    • Parameters

      • requestEnvelope: RequestEnvelope

      Returns string

Object literals

Const PartitionKeyGenerators

PartitionKeyGenerators: object

Object containing implementations of PartitionKeyGenerator.

checkSystemExists

  • checkSystemExists(requestEnvelope: RequestEnvelope): boolean

deviceId

  • deviceId(requestEnvelope: RequestEnvelope): string

getSystem

  • getSystem(requestEnvelope: RequestEnvelope): any

getSystemDevice

  • getSystemDevice(requestEnvelope: RequestEnvelope): any

getSystemUser

  • getSystemUser(requestEnvelope: RequestEnvelope): any

personId

  • personId(requestEnvelope: RequestEnvelope): string
  • Gets attributes id using person id. Fallback to fetching attributes id using user id, if personId is not present.

    Parameters

    • requestEnvelope: RequestEnvelope

    Returns string

throwException

  • throwException(partitionUsed: string): void

userId

  • userId(requestEnvelope: RequestEnvelope): string

Generated using TypeDoc