UNPKG

@xompass/sdk-cloud-api

Version:

Xompass Client for cloud-api

91 lines 2.63 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AssetTag = void 0; var AssetTag = /** @class */ (function () { function AssetTag(data) { Object.assign(this, data); } /** * The name of the model represented by this $resource, * i.e. `AssetTag`. */ AssetTag.getModelName = function () { return 'AssetTag'; }; /** * @method factory * @author Jonathan Casarrubias * @license MIT * This method creates an instance of AssetTag for dynamic purposes. */ AssetTag.factory = function (data) { return new AssetTag(data); }; /** * @method getModelDefinition * @author Julien Ledun * @license MIT * This method returns an object that represents some of the model * definitions. */ AssetTag.getModelDefinition = function () { return { name: 'AssetTag', plural: 'AssetTags', path: 'AssetTags', idName: 'id', properties: { name: { name: 'name', type: 'string' }, normalized: { name: 'normalized', type: 'string' }, created: { name: 'created', type: 'Date' }, modified: { name: 'modified', type: 'Date' }, deleted: { name: 'deleted', type: 'Date', default: undefined }, id: { name: 'id', type: 'any' }, customerId: { name: 'customerId', type: 'any' }, }, relations: { customer: { name: 'customer', type: 'Customer', model: 'Customer', relationType: 'belongsTo', keyFrom: 'customerId', keyTo: 'id' }, trackingLogs: { name: 'trackingLogs', type: 'Log[]', model: 'Log', relationType: 'hasMany', keyFrom: 'id', keyTo: 'trackingModelId' }, } }; }; return AssetTag; }()); exports.AssetTag = AssetTag; //# sourceMappingURL=AssetTag.js.map