ask-sdk-mongodb-persistence-adapter

    Variable PartitionKeyGeneratorsConst

    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
      • Parameters

        • requestEnvelope: RequestEnvelope

        Returns boolean

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

        Parameters

        • requestEnvelope: RequestEnvelope

        Returns string

    • getSystem: function
      • Parameters

        • requestEnvelope: RequestEnvelope

        Returns SystemState

    • getSystemDevice: function
      • Parameters

        • requestEnvelope: RequestEnvelope

        Returns undefined | Device

    • getSystemUser: function
      • Parameters

        • requestEnvelope: RequestEnvelope

        Returns User

    • 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

    MMNEPVFCICPMFPCPTTAAATR