UNPKG

@dolittle/sdk.projections

Version:

Dolittle is a decentralized, distributed, event-driven microservice platform built to harness the power of events.

48 lines 2.49 kB
"use strict"; // Copyright (c) Dolittle. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. Object.defineProperty(exports, "__esModule", { value: true }); exports.Conversion = void 0; /** * Represents MongoDB read model field conversions. */ var Conversion; (function (Conversion) { /** * Applies no conversion. */ Conversion[Conversion["None"] = 0] = "None"; /** * Converts the field into a BSON Date. */ Conversion[Conversion["Date"] = 1] = "Date"; /** * Converts the field into a BSON Array with .NET ticks and offset in minutes as elements. */ Conversion[Conversion["DateAsArray"] = 2] = "DateAsArray"; /** * Converts the field into a BSON Document with Date, .NET ticks and offset in minutes as properties. */ Conversion[Conversion["DateAsDocument"] = 3] = "DateAsDocument"; /** * Converts the field into a BSON String formatted like JavaScript Date.toString(). */ Conversion[Conversion["DateAsString"] = 4] = "DateAsString"; /** * Converts the field into a BSON Int64 with .NET ticks as value. */ Conversion[Conversion["DateAsInt64"] = 5] = "DateAsInt64"; /** * Converts the field into a BSON Binary with standard Guid representation. */ Conversion[Conversion["Guid"] = 6] = "Guid"; /** * Converts the field into a BSON Binary with C# legacy Guid representation. */ Conversion[Conversion["GuidAsCSharpLegacy"] = 7] = "GuidAsCSharpLegacy"; /** * Converts the field into a BSON String from a parsed Guid. */ Conversion[Conversion["GuidAsString"] = 8] = "GuidAsString"; })(Conversion = exports.Conversion || (exports.Conversion = {})); //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ29udmVyc2lvbi5qcyIsInNvdXJjZVJvb3QiOiIuLi8iLCJzb3VyY2VzIjpbIkNvcGllcy9Nb25nb0RCL0NvbnZlcnNpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLCtDQUErQztBQUMvQyxxR0FBcUc7OztBQUVyRzs7R0FFRztBQUNILElBQVksVUE2Q1g7QUE3Q0QsV0FBWSxVQUFVO0lBQ2xCOztPQUVHO0lBQ0gsMkNBQVEsQ0FBQTtJQUVSOztPQUVHO0lBQ0gsMkNBQVEsQ0FBQTtJQUVSOztPQUVHO0lBQ0gseURBQWUsQ0FBQTtJQUVmOztPQUVHO0lBQ0gsK0RBQWtCLENBQUE7SUFFbEI7O09BRUc7SUFDSCwyREFBZ0IsQ0FBQTtJQUVoQjs7T0FFRztJQUNILHlEQUFlLENBQUE7SUFFZjs7T0FFRztJQUNILDJDQUFRLENBQUE7SUFFUjs7T0FFRztJQUNILHVFQUFzQixDQUFBO0lBRXRCOztPQUVHO0lBQ0gsMkRBQWdCLENBQUE7QUFDcEIsQ0FBQyxFQTdDVyxVQUFVLEdBQVYsa0JBQVUsS0FBVixrQkFBVSxRQTZDckIifQ==