"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var _a, _b, _c;
Object.defineProperty(exports, "__esModule", { value: true });
exports.TrackableObjectStateInput = exports.TrackableObjectList = exports.TrackableObject = void 0;
const shell_1 = require("@things-factory/shell");
const auth_base_1 = require("@things-factory/auth-base");
const type_graphql_1 = require("type-graphql");
const robotarm_type_1 = require("../robotarm/robotarm-type");
// type TrackableObject {
//   id: String
//   name: String
//   domain: Domain
//   description: String
//   type: String
//   endpoint: String
//   status: Int
//   active: Boolean
//   config: Object
//   poiOffset: Pose
//   updater: User
//   creator: User
//   updatedAt: String
//   createdAt: String
// }
let TrackableObject = class TrackableObject {
};
__decorate([
    (0, type_graphql_1.Field)(type => type_graphql_1.ID, { nullable: true }),
    __metadata("design:type", String)
], TrackableObject.prototype, "id", void 0);
__decorate([
    (0, type_graphql_1.Field)(),
    __metadata("design:type", String)
], TrackableObject.prototype, "name", void 0);
__decorate([
    (0, type_graphql_1.Field)(type => shell_1.Domain),
    __metadata("design:type", typeof (_a = typeof shell_1.Domain !== "undefined" && shell_1.Domain) === "function" ? _a : Object)
], TrackableObject.prototype, "domain", void 0);
__decorate([
    (0, type_graphql_1.Field)({ nullable: true }),
    __metadata("design:type", String)
], TrackableObject.prototype, "description", void 0);
__decorate([
    (0, type_graphql_1.Field)({ nullable: true }),
    __metadata("design:type", String)
], TrackableObject.prototype, "type", void 0);
__decorate([
    (0, type_graphql_1.Field)({ nullable: true }),
    __metadata("design:type", String)
], TrackableObject.prototype, "endpoint", void 0);
__decorate([
    (0, type_graphql_1.Field)(type => type_graphql_1.Int, { nullable: true }),
    __metadata("design:type", Number)
], TrackableObject.prototype, "status", void 0);
__decorate([
    (0, type_graphql_1.Field)({ nullable: true }),
    __metadata("design:type", Boolean)
], TrackableObject.prototype, "active", void 0);
__decorate([
    (0, type_graphql_1.Field)(type => shell_1.ScalarAny, { nullable: true }),
    __metadata("design:type", Object)
], TrackableObject.prototype, "config", void 0);
__decorate([
    (0, type_graphql_1.Field)(type => robotarm_type_1.Pose, { nullable: true }),
    __metadata("design:type", robotarm_type_1.Pose)
], TrackableObject.prototype, "poiOffset", void 0);
__decorate([
    (0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true }),
    __metadata("design:type", typeof (_b = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _b : Object)
], TrackableObject.prototype, "updater", void 0);
__decorate([
    (0, type_graphql_1.Field)(type => auth_base_1.User, { nullable: true }),
    __metadata("design:type", typeof (_c = typeof auth_base_1.User !== "undefined" && auth_base_1.User) === "function" ? _c : Object)
], TrackableObject.prototype, "creator", void 0);
__decorate([
    (0, type_graphql_1.Field)({ nullable: true }),
    __metadata("design:type", String)
], TrackableObject.prototype, "updatedAt", void 0);
__decorate([
    (0, type_graphql_1.Field)({ nullable: true }),
    __metadata("design:type", String)
], TrackableObject.prototype, "createdAt", void 0);
TrackableObject = __decorate([
    (0, type_graphql_1.ObjectType)()
], TrackableObject);
exports.TrackableObject = TrackableObject;
// type TrackableObjectList {
//   items: [TrackableObject]
//   total: Int
// }
let TrackableObjectList = class TrackableObjectList {
};
__decorate([
    (0, type_graphql_1.Field)(type => [TrackableObject]),
    __metadata("design:type", Array)
], TrackableObjectList.prototype, "items", void 0);
__decorate([
    (0, type_graphql_1.Field)(type => type_graphql_1.Int),
    __metadata("design:type", Number)
], TrackableObjectList.prototype, "total", void 0);
TrackableObjectList = __decorate([
    (0, type_graphql_1.ObjectType)()
], TrackableObjectList);
exports.TrackableObjectList = TrackableObjectList;
// input TrackableObjectStateInput {
//   pose: PoseInput
//   roi: String
// }
let TrackableObjectStateInput = class TrackableObjectStateInput {
};
__decorate([
    (0, type_graphql_1.Field)(type => robotarm_type_1.PoseInput, { nullable: true }),
    __metadata("design:type", robotarm_type_1.PoseInput)
], TrackableObjectStateInput.prototype, "pose", void 0);
__decorate([
    (0, type_graphql_1.Field)({ nullable: true }),
    __metadata("design:type", String)
], TrackableObjectStateInput.prototype, "roi", void 0);
TrackableObjectStateInput = __decorate([
    (0, type_graphql_1.InputType)()
], TrackableObjectStateInput);
exports.TrackableObjectStateInput = TrackableObjectStateInput;
//# sourceMappingURL=trackable-object-type.js.map