1 | "use strict";
|
2 | var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
3 | function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
4 | return new (P || (P = Promise))(function (resolve, reject) {
|
5 | function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
6 | function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
7 | function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
8 | step((generator = generator.apply(thisArg, _arguments || [])).next());
|
9 | });
|
10 | };
|
11 | Object.defineProperty(exports, "__esModule", { value: true });
|
12 | class Tag {
|
13 | constructor(client, id, name, visible, assignable, canAssign) {
|
14 | this.client = client;
|
15 | this.name = name;
|
16 | this.visible = visible;
|
17 | this.assignable = assignable;
|
18 | this.canAssign = canAssign;
|
19 | this.id = id;
|
20 | }
|
21 | delete() {
|
22 | return __awaiter(this, void 0, void 0, function* () {
|
23 | return yield this.client.deleteTag(this.id);
|
24 | });
|
25 | }
|
26 | toString() {
|
27 | return "id:" + this.id + " name:" + this.name;
|
28 | }
|
29 | }
|
30 | exports.default = Tag;
|