PartitionKeyGenerators: {
    checkSystemExists(requestEnvelope: RequestEnvelope): boolean;
    deviceId(requestEnvelope: RequestEnvelope): string;
    getSystem(requestEnvelope: RequestEnvelope): SystemState;
    getSystemDevice(requestEnvelope: RequestEnvelope): undefined | Device;
    getSystemUser(requestEnvelope: RequestEnvelope): User;
    personId(requestEnvelope: RequestEnvelope): string;
    throwException(partitionUsed: string): void;
    userId(requestEnvelope: RequestEnvelope): string;
} = ...

Object containing implementations of PartitionKeyGenerator.

Type declaration

  • checkSystemExists:function
  • deviceId:function
    • Gets attributes id using device id.

      Parameters

      • requestEnvelope: RequestEnvelope

      Returns string

  • getSystem:function
  • getSystemDevice:function
    • Parameters

      • requestEnvelope: RequestEnvelope

      Returns undefined | Device

  • getSystemUser:function
  • personId:function
    • 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:function
  • userId:function
    • Gets attributes id using user id.

      Parameters

      • requestEnvelope: RequestEnvelope

      Returns string