@xompass/sdk-cloud-api
Version:
Xompass Client for cloud-api
95 lines • 2.85 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.AWSRekognition = void 0;
var AWSRekognition = /** @class */ (function () {
function AWSRekognition(data) {
Object.assign(this, data);
}
/**
* The name of the model represented by this $resource,
* i.e. `AWSRekognition`.
*/
AWSRekognition.getModelName = function () {
return 'AWSRekognition';
};
/**
* @method factory
* @author Jonathan Casarrubias
* @license MIT
* This method creates an instance of AWSRekognition for dynamic purposes.
*/
AWSRekognition.factory = function (data) {
return new AWSRekognition(data);
};
/**
* @method getModelDefinition
* @author Julien Ledun
* @license MIT
* This method returns an object that represents some of the model
* definitions.
*/
AWSRekognition.getModelDefinition = function () {
return {
name: 'AWSRekognition',
plural: 'AWSRekognitions',
path: 'AWSRekognitions',
idName: 'id',
properties: {
name: {
name: 'name',
type: 'string'
},
description: {
name: 'description',
type: 'string'
},
options: {
name: 'options',
type: 'any'
},
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 AWSRekognition;
}());
exports.AWSRekognition = AWSRekognition;
//# sourceMappingURL=AWSRekognition.js.map