UNPKG

@magic.batua/account

Version:

The Account modules powers the user account management features of the Magic Batua platform.

39 lines 1.3 kB
"use strict"; /** * @module Source * @overview Defines the `Source` enum that allows the application to ascertain input * data's source and purpose. * * @author Animesh Mishra <hello@animesh.ltd> * @copyright © 2018 Animesh Ltd. All Rights Reserved. */ Object.defineProperty(exports, "__esModule", { value: true }); /** * Often object in Magic Batua are initialised straight off the * JSON sent in with the request/response. Since the content * of JSON varies wildly depending on its source and purpose, some way * of tracking the data source and purpose is required. This enum allows * the application to do just that. * * ### Keys * * #### `Client` * JSON for initially creating a Magic Batua object from client-side input. * GUID and other auto-generated elements will be absent as they are generated * server-side. * * #### `Database` * JSON returned by a database query. Includes all the fields a given object * supports. * * @enum * @exports Source */ var Source; (function (Source) { /** @memberof Source */ Source[Source["Client"] = 0] = "Client"; /** @memberof Source */ Source[Source["Database"] = 1] = "Database"; })(Source = exports.Source || (exports.Source = {})); //# sourceMappingURL=Source.js.map