UNPKG

@xompass/sdk-cloud-api

Version:

Xompass Client for cloud-api

69 lines 1.82 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Email = void 0; var Email = /** @class */ (function () { function Email(data) { Object.assign(this, data); } /** * The name of the model represented by this $resource, * i.e. `Email`. */ Email.getModelName = function () { return 'Email'; }; /** * @method factory * @author Jonathan Casarrubias * @license MIT * This method creates an instance of Email for dynamic purposes. */ Email.factory = function (data) { return new Email(data); }; /** * @method getModelDefinition * @author Julien Ledun * @license MIT * This method returns an object that represents some of the model * definitions. */ Email.getModelDefinition = function () { return { name: 'Email', plural: 'Emails', path: 'Emails', idName: 'id', properties: { to: { name: 'to', type: 'string' }, from: { name: 'from', type: 'string' }, subject: { name: 'subject', type: 'string' }, text: { name: 'text', type: 'string' }, html: { name: 'html', type: 'string' }, id: { name: 'id', type: 'number' }, }, relations: {} }; }; return Email; }()); exports.Email = Email; //# sourceMappingURL=Email.js.map