@intelact/bright 0.7.34 → 0.8.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. package/lib/models/asset.js +14 -0
  2. package/lib/models/asset.js.map +1 -1
  3. package/lib/models/author.js +22 -0
  4. package/lib/models/author.js.map +1 -1
  5. package/lib/models/boost.js +31 -0
  6. package/lib/models/boost.js.map +1 -1
  7. package/lib/models/brand.js +39 -0
  8. package/lib/models/brand.js.map +1 -1
  9. package/lib/models/category.js +22 -0
  10. package/lib/models/category.js.map +1 -1
  11. package/lib/models/collection.js +19 -0
  12. package/lib/models/collection.js.map +1 -1
  13. package/lib/models/feedback.js +50 -0
  14. package/lib/models/feedback.js.map +1 -1
  15. package/lib/models/gallery.js +14 -0
  16. package/lib/models/gallery.js.map +1 -1
  17. package/lib/models/index.d.ts +2 -0
  18. package/lib/models/index.js +2 -0
  19. package/lib/models/index.js.map +1 -1
  20. package/lib/models/item.d.ts +12 -0
  21. package/lib/models/item.js +36 -0
  22. package/lib/models/item.js.map +1 -0
  23. package/lib/models/link.d.ts +11 -0
  24. package/lib/models/link.js +30 -0
  25. package/lib/models/link.js.map +1 -0
  26. package/lib/models/post.d.ts +12 -1
  27. package/lib/models/post.js +192 -1
  28. package/lib/models/post.js.map +1 -1
  29. package/lib/models/promotion.js +22 -0
  30. package/lib/models/promotion.js.map +1 -1
  31. package/lib/models/publisher.js +26 -0
  32. package/lib/models/publisher.js.map +1 -1
  33. package/lib/models/question.d.ts +13 -0
  34. package/lib/models/question.js +161 -0
  35. package/lib/models/question.js.map +1 -1
  36. package/lib/models/quote.js +18 -0
  37. package/lib/models/quote.js.map +1 -1
  38. package/lib/models/survey.js +70 -0
  39. package/lib/models/survey.js.map +1 -1
  40. package/lib/models/topic.js +22 -0
  41. package/lib/models/topic.js.map +1 -1
  42. package/lib/models/user.js +32 -0
  43. package/lib/models/user.js.map +1 -1
  44. package/lib/test.d.ts +1 -0
  45. package/lib/test.js +14 -0
  46. package/lib/test.js.map +1 -0
  47. package/lib/tsconfig.tsbuildinfo +1 -1
  48. package/package.json +5 -3
@@ -1,6 +1,16 @@
1
1
  "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ 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;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
2
11
  Object.defineProperty(exports, "__esModule", { value: true });
3
12
  exports.Asset = void 0;
13
+ const class_transformer_1 = require("class-transformer");
4
14
  class Asset {
5
15
  id;
6
16
  type;
@@ -13,4 +23,8 @@ class Asset {
13
23
  }
14
24
  }
15
25
  exports.Asset = Asset;
26
+ __decorate([
27
+ (0, class_transformer_1.Type)(() => Number),
28
+ __metadata("design:type", Number)
29
+ ], Asset.prototype, "id", void 0);
16
30
  //# sourceMappingURL=asset.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"asset.js","sourceRoot":"","sources":["../../src/models/asset.ts"],"names":[],"mappings":";;;AAKA,MAAa,KAAK;IAEjB,EAAE,CAAS;IAKX,IAAI,CAAY;IAKhB,GAAG,CAAS;IAKZ,KAAK,CAAS;IAKd,IAAI,CAAW;IAKf,QAAQ,CAAS;IAEjB,YAAY,KAAsB;QACjC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAhCD,sBAgCC"}
1
+ {"version":3,"file":"asset.js","sourceRoot":"","sources":["../../src/models/asset.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAyC;AAMzC,MAAa,KAAK;IAGjB,EAAE,CAAS;IAKX,IAAI,CAAY;IAKhB,GAAG,CAAS;IAKZ,KAAK,CAAS;IAKd,IAAI,CAAW;IAKf,QAAQ,CAAS;IAEjB,YAAY,KAAsB;QACjC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAjCD,sBAiCC;AA9BA;IADC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;iCACR"}
@@ -1,6 +1,16 @@
1
1
  "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ 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;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
2
11
  Object.defineProperty(exports, "__esModule", { value: true });
3
12
  exports.Author = void 0;
13
+ const class_transformer_1 = require("class-transformer");
4
14
  class Author {
5
15
  id;
6
16
  slug;
@@ -14,4 +24,16 @@ class Author {
14
24
  }
15
25
  }
16
26
  exports.Author = Author;
27
+ __decorate([
28
+ (0, class_transformer_1.Type)(() => Number),
29
+ __metadata("design:type", Number)
30
+ ], Author.prototype, "id", void 0);
31
+ __decorate([
32
+ (0, class_transformer_1.Type)(() => Number),
33
+ __metadata("design:type", Number)
34
+ ], Author.prototype, "totalPosts", void 0);
35
+ __decorate([
36
+ (0, class_transformer_1.Type)(() => Number),
37
+ __metadata("design:type", Number)
38
+ ], Author.prototype, "totalQuestionsComments", void 0);
17
39
  //# sourceMappingURL=author.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"author.js","sourceRoot":"","sources":["../../src/models/author.ts"],"names":[],"mappings":";;;AAGA,MAAa,MAAM;IAElB,EAAE,CAAS;IAKX,IAAI,CAAS;IAKb,IAAI,CAAS;IAKb,SAAS,CAAS;IAKlB,QAAQ,CAAS;IAKjB,UAAU,CAAS;IAKnB,sBAAsB,CAAS;IAE/B,YAAY,KAAuB;QAClC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AArCD,wBAqCC"}
1
+ {"version":3,"file":"author.js","sourceRoot":"","sources":["../../src/models/author.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAyC;AAKzC,MAAa,MAAM;IAGlB,EAAE,CAAS;IAKX,IAAI,CAAS;IAKb,IAAI,CAAS;IAKb,SAAS,CAAS;IAKlB,QAAQ,CAAS;IAMjB,UAAU,CAAS;IAMnB,sBAAsB,CAAS;IAE/B,YAAY,KAAuB;QAClC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAxCD,wBAwCC;AArCA;IADC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;kCACR;AA0BX;IADC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;0CACA;AAMnB;IADC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;sDACY"}
@@ -1,6 +1,17 @@
1
1
  "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ 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;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
2
11
  Object.defineProperty(exports, "__esModule", { value: true });
3
12
  exports.Boost = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const post_1 = require("./post");
4
15
  class Boost {
5
16
  id;
6
17
  title;
@@ -13,4 +24,24 @@ class Boost {
13
24
  }
14
25
  }
15
26
  exports.Boost = Boost;
27
+ __decorate([
28
+ (0, class_transformer_1.Type)(() => Number),
29
+ __metadata("design:type", Number)
30
+ ], Boost.prototype, "id", void 0);
31
+ __decorate([
32
+ (0, class_transformer_1.Type)(() => Date),
33
+ __metadata("design:type", Date)
34
+ ], Boost.prototype, "startDate", void 0);
35
+ __decorate([
36
+ (0, class_transformer_1.Type)(() => Date),
37
+ __metadata("design:type", Date)
38
+ ], Boost.prototype, "endDate", void 0);
39
+ __decorate([
40
+ (0, class_transformer_1.Type)(() => Number),
41
+ __metadata("design:type", Number)
42
+ ], Boost.prototype, "totalItems", void 0);
43
+ __decorate([
44
+ (0, class_transformer_1.Type)(() => post_1.Post),
45
+ __metadata("design:type", Array)
46
+ ], Boost.prototype, "items", void 0);
16
47
  //# sourceMappingURL=boost.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"boost.js","sourceRoot":"","sources":["../../src/models/boost.ts"],"names":[],"mappings":";;;AAEA,MAAa,KAAK;IAEjB,EAAE,CAAS;IAKX,KAAK,CAAS;IAKd,SAAS,CAAO;IAKhB,OAAO,CAAO;IAKd,UAAU,CAAS;IAKnB,KAAK,CAAS;IAEd,YAAY,KAAsB;QACjC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAhCD,sBAgCC"}
1
+ {"version":3,"file":"boost.js","sourceRoot":"","sources":["../../src/models/boost.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAyC;AACzC,iCAA8B;AAE9B,MAAa,KAAK;IAGjB,EAAE,CAAS;IAKX,KAAK,CAAS;IAMd,SAAS,CAAO;IAMhB,OAAO,CAAO;IAMd,UAAU,CAAS;IAMnB,KAAK,CAAS;IAEd,YAAY,KAAsB;QACjC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AArCD,sBAqCC;AAlCA;IADC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;iCACR;AAWX;IADC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACN,IAAI;wCAAC;AAMhB;IADC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACR,IAAI;sCAAC;AAMd;IADC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;yCACA;AAMnB;IADC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,WAAI,CAAC;;oCACH"}
@@ -1,6 +1,17 @@
1
1
  "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ 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;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
2
11
  Object.defineProperty(exports, "__esModule", { value: true });
3
12
  exports.BrandSetting = exports.Brand = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const publisher_1 = require("./publisher");
4
15
  class Brand {
5
16
  id;
6
17
  name;
@@ -24,6 +35,26 @@ class Brand {
24
35
  }
25
36
  }
26
37
  exports.Brand = Brand;
38
+ __decorate([
39
+ (0, class_transformer_1.Type)(() => Number),
40
+ __metadata("design:type", Number)
41
+ ], Brand.prototype, "id", void 0);
42
+ __decorate([
43
+ (0, class_transformer_1.Type)(() => Boolean),
44
+ __metadata("design:type", Boolean)
45
+ ], Brand.prototype, "maintaince", void 0);
46
+ __decorate([
47
+ (0, class_transformer_1.Type)(() => Boolean),
48
+ __metadata("design:type", Boolean)
49
+ ], Brand.prototype, "appUpgrade", void 0);
50
+ __decorate([
51
+ (0, class_transformer_1.Type)(() => BrandSetting),
52
+ __metadata("design:type", Array)
53
+ ], Brand.prototype, "settings", void 0);
54
+ __decorate([
55
+ (0, class_transformer_1.Type)(() => publisher_1.Publisher),
56
+ __metadata("design:type", Array)
57
+ ], Brand.prototype, "publishers", void 0);
27
58
  class BrandSetting {
28
59
  id;
29
60
  scope;
@@ -37,4 +68,12 @@ class BrandSetting {
37
68
  }
38
69
  }
39
70
  exports.BrandSetting = BrandSetting;
71
+ __decorate([
72
+ (0, class_transformer_1.Type)(() => Number),
73
+ __metadata("design:type", Number)
74
+ ], BrandSetting.prototype, "id", void 0);
75
+ __decorate([
76
+ (0, class_transformer_1.Type)(() => Brand),
77
+ __metadata("design:type", Brand)
78
+ ], BrandSetting.prototype, "brand", void 0);
40
79
  //# sourceMappingURL=brand.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"brand.js","sourceRoot":"","sources":["../../src/models/brand.ts"],"names":[],"mappings":";;;AAGA,MAAa,KAAK;IAEjB,EAAE,CAAS;IAMX,IAAI,CAAS;IAKb,KAAK,CAAS;IAKd,MAAM,CAAS;IAKf,GAAG,CAAS;IAKZ,KAAK,CAAS;IAKd,WAAW,CAAS;IAKpB,QAAQ,CAAS;IAKjB,IAAI,CAAS;IAKb,MAAM,CAAoB;IAK1B,UAAU,CAAU;IAKpB,UAAU,CAAS;IA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AAC;;yCACA;AAiBpB;IADC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,YAAY,CAAC;;uCACA;AAMzB;IADC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,qBAAS,CAAC;;yCACE;AAOzB,MAAa,YAAY;IAGxB,EAAE,CAAS;IAEX,KAAK,CAAc;IAEnB,IAAI,CAAS;IAEb,KAAK,CAAS;IAEd,KAAK,CAAS;IAEd,WAAW,CAAS;IAGpB,KAAK,CAAQ;IAEb,YAAY,KAA6B;QACxC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AArBD,oCAqBC;AAlBA;IADC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;wCACR;AAaX;IADC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,KAAK,CAAC;8BACX,KAAK;2CAAC"}
@@ -1,6 +1,16 @@
1
1
  "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ 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;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
2
11
  Object.defineProperty(exports, "__esModule", { value: true });
3
12
  exports.Category = void 0;
13
+ const class_transformer_1 = require("class-transformer");
4
14
  class Category {
5
15
  id;
6
16
  title;
@@ -13,4 +23,16 @@ class Category {
13
23
  }
14
24
  }
15
25
  exports.Category = Category;
26
+ __decorate([
27
+ (0, class_transformer_1.Type)(() => Number),
28
+ __metadata("design:type", Number)
29
+ ], Category.prototype, "id", void 0);
30
+ __decorate([
31
+ (0, class_transformer_1.Type)(() => Number),
32
+ __metadata("design:type", Number)
33
+ ], Category.prototype, "sort", void 0);
34
+ __decorate([
35
+ (0, class_transformer_1.Type)(() => Boolean),
36
+ __metadata("design:type", Boolean)
37
+ ], Category.prototype, "questionEnabled", void 0);
16
38
  //# sourceMappingURL=category.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"category.js","sourceRoot":"","sources":["../../src/models/category.ts"],"names":[],"mappings":";;;AAGA,MAAa,QAAQ;IAEpB,EAAE,CAAS;IAKX,KAAK,CAAS;IAKd,IAAI,CAAS;IAKb,WAAW,CAAS;IAKpB,IAAI,CAAS;IAEb,eAAe,CAAU;IAEzB,YAAY,KAAyB;QACpC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AA7BD,4BA6BC"}
1
+ {"version":3,"file":"category.js","sourceRoot":"","sources":["../../src/models/category.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAyC;AAKzC,MAAa,QAAQ;IAGpB,EAAE,CAAS;IAKX,KAAK,CAAS;IAKd,IAAI,CAAS;IAKb,WAAW,CAAS;IAMpB,IAAI,CAAS;IAGb,eAAe,CAAU;IAEzB,YAAY,KAAyB;QACpC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAhCD,4BAgCC;AA7BA;IADC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;oCACR;AAqBX;IADC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;sCACN;AAGb;IADC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,OAAO,CAAC;;iDACK"}
@@ -1,6 +1,17 @@
1
1
  "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ 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;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
2
11
  Object.defineProperty(exports, "__esModule", { value: true });
3
12
  exports.Collection = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const post_1 = require("./post");
4
15
  class Collection {
5
16
  id;
6
17
  title;
@@ -10,4 +21,12 @@ class Collection {
10
21
  }
11
22
  }
12
23
  exports.Collection = Collection;
24
+ __decorate([
25
+ (0, class_transformer_1.Type)(() => Number),
26
+ __metadata("design:type", Number)
27
+ ], Collection.prototype, "id", void 0);
28
+ __decorate([
29
+ (0, class_transformer_1.Type)(() => post_1.Post),
30
+ __metadata("design:type", Array)
31
+ ], Collection.prototype, "items", void 0);
13
32
  //# sourceMappingURL=collection.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"collection.js","sourceRoot":"","sources":["../../src/models/collection.ts"],"names":[],"mappings":";;;AAKA,MAAa,UAAU;IAEtB,EAAE,CAAS;IAKX,KAAK,CAAS;IAKd,KAAK,CAAS;IAEd,YAAY,KAA2B;QACtC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAjBD,gCAiBC"}
1
+ {"version":3,"file":"collection.js","sourceRoot":"","sources":["../../src/models/collection.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAyC;AACzC,iCAA8B;AAK9B,MAAa,UAAU;IAGtB,EAAE,CAAS;IAKX,KAAK,CAAS;IAMd,KAAK,CAAS;IAEd,YAAY,KAA2B;QACtC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAnBD,gCAmBC;AAhBA;IADC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;sCACR;AAWX;IADC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,WAAI,CAAC;;yCACH"}
@@ -1,6 +1,16 @@
1
1
  "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ 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;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
2
11
  Object.defineProperty(exports, "__esModule", { value: true });
3
12
  exports.FeedbackOption = exports.FeedbackItem = exports.Feedback = void 0;
13
+ const class_transformer_1 = require("class-transformer");
4
14
  class Feedback {
5
15
  id;
6
16
  type;
@@ -12,6 +22,14 @@ class Feedback {
12
22
  }
13
23
  }
14
24
  exports.Feedback = Feedback;
25
+ __decorate([
26
+ (0, class_transformer_1.Type)(() => Number),
27
+ __metadata("design:type", Number)
28
+ ], Feedback.prototype, "id", void 0);
29
+ __decorate([
30
+ (0, class_transformer_1.Type)(() => FeedbackItem),
31
+ __metadata("design:type", Array)
32
+ ], Feedback.prototype, "items", void 0);
15
33
  class FeedbackItem {
16
34
  id;
17
35
  question;
@@ -24,6 +42,26 @@ class FeedbackItem {
24
42
  }
25
43
  }
26
44
  exports.FeedbackItem = FeedbackItem;
45
+ __decorate([
46
+ (0, class_transformer_1.Type)(() => Number),
47
+ __metadata("design:type", Number)
48
+ ], FeedbackItem.prototype, "id", void 0);
49
+ __decorate([
50
+ (0, class_transformer_1.Type)(() => Boolean),
51
+ __metadata("design:type", Boolean)
52
+ ], FeedbackItem.prototype, "multiple", void 0);
53
+ __decorate([
54
+ (0, class_transformer_1.Type)(() => Number),
55
+ __metadata("design:type", Number)
56
+ ], FeedbackItem.prototype, "sort", void 0);
57
+ __decorate([
58
+ (0, class_transformer_1.Type)(() => Boolean),
59
+ __metadata("design:type", Boolean)
60
+ ], FeedbackItem.prototype, "readonly", void 0);
61
+ __decorate([
62
+ (0, class_transformer_1.Type)(() => FeedbackOption),
63
+ __metadata("design:type", Array)
64
+ ], FeedbackItem.prototype, "options", void 0);
27
65
  class FeedbackOption {
28
66
  id;
29
67
  content;
@@ -34,4 +72,16 @@ class FeedbackOption {
34
72
  }
35
73
  }
36
74
  exports.FeedbackOption = FeedbackOption;
75
+ __decorate([
76
+ (0, class_transformer_1.Type)(() => Number),
77
+ __metadata("design:type", Number)
78
+ ], FeedbackOption.prototype, "id", void 0);
79
+ __decorate([
80
+ (0, class_transformer_1.Type)(() => Number),
81
+ __metadata("design:type", Number)
82
+ ], FeedbackOption.prototype, "sort", void 0);
83
+ __decorate([
84
+ (0, class_transformer_1.Type)(() => Boolean),
85
+ __metadata("design:type", Boolean)
86
+ ], FeedbackOption.prototype, "isSelected", void 0);
37
87
  //# sourceMappingURL=feedback.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"feedback.js","sourceRoot":"","sources":["../../src/models/feedback.ts"],"names":[],"mappings":";;;AAEA,MAAa,QAAQ;IAEpB,EAAE,CAAS;IAKX,IAAI,CAAW;IAKf,KAAK,CAAS;IAKd,WAAW,CAAQ;IAOnB,KAAK,CAAiB;IAItB,YAAY,KAAyB;QACpC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AA/BD,4BA+BC;AAED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R;AAWX;IADC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,OAAO,CAAC;;8CACF;AAMlB;IADC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;0CACN;AAMb;IADC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,OAAO,CAAC;;8CACF;AAMlB;IADC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,cAAc,CAAC;;6CACD;AAO3B,MAAa,cAAc;IAM1B,EAAE,CAAS;IAKX,OAAO,CAAS;IAMhB,IAAI,CAAS;IAMb,UAAU,CAAU;IAEpB,YAAY,KAA+B;QAC1C,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AA5BD,wCA4BC;AAtBA;IADC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;0CACR;AAWX;IADC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;4CACN;AAMb;IADC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,OAAO,CAAC;;kDACA"}
@@ -1,6 +1,16 @@
1
1
  "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ 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;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
2
11
  Object.defineProperty(exports, "__esModule", { value: true });
3
12
  exports.GalleryItem = void 0;
13
+ const class_transformer_1 = require("class-transformer");
4
14
  class GalleryItem {
5
15
  title;
6
16
  imageUrl;
@@ -10,4 +20,8 @@ class GalleryItem {
10
20
  }
11
21
  }
12
22
  exports.GalleryItem = GalleryItem;
23
+ __decorate([
24
+ (0, class_transformer_1.Type)(() => Number),
25
+ __metadata("design:type", Number)
26
+ ], GalleryItem.prototype, "sort", void 0);
13
27
  //# sourceMappingURL=gallery.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"gallery.js","sourceRoot":"","sources":["../../src/models/gallery.ts"],"names":[],"mappings":";;;AAGA,MAAa,WAAW;IAKvB,KAAK,CAAS;IAKd,QAAQ,CAAS;IAKjB,IAAI,CAAS;IAEb,YAAY,KAA4B;QACvC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AApBD,kCAoBC"}
1
+ {"version":3,"file":"gallery.js","sourceRoot":"","sources":["../../src/models/gallery.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAyC;AAKzC,MAAa,WAAW;IAKvB,KAAK,CAAS;IAKd,QAAQ,CAAS;IAMjB,IAAI,CAAS;IAEb,YAAY,KAA4B;QACvC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AArBD,kCAqBC;AALA;IADC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;yCACN"}
@@ -6,6 +6,8 @@ export * from './category';
6
6
  export * from './collection';
7
7
  export * from './feedback';
8
8
  export * from './gallery';
9
+ export * from './item';
10
+ export * from './link';
9
11
  export * from './notification';
10
12
  export * from './pagination';
11
13
  export * from './post';
@@ -22,6 +22,8 @@ __exportStar(require("./category"), exports);
22
22
  __exportStar(require("./collection"), exports);
23
23
  __exportStar(require("./feedback"), exports);
24
24
  __exportStar(require("./gallery"), exports);
25
+ __exportStar(require("./item"), exports);
26
+ __exportStar(require("./link"), exports);
25
27
  __exportStar(require("./notification"), exports);
26
28
  __exportStar(require("./pagination"), exports);
27
29
  __exportStar(require("./post"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,2CAAyB;AACzB,0CAAwB;AACxB,0CAAwB;AACxB,6CAA2B;AAC3B,+CAA6B;AAC7B,6CAA2B;AAC3B,4CAA0B;AAC1B,iDAA+B;AAC/B,+CAA6B;AAC7B,yCAAuB;AACvB,8CAA4B;AAC5B,8CAA4B;AAC5B,6CAA2B;AAC3B,0CAAwB;AACxB,6CAA2B;AAC3B,2CAAyB;AACzB,0CAAwB;AACxB,0CAAwB;AACxB,yCAAuB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,2CAAyB;AACzB,0CAAwB;AACxB,0CAAwB;AACxB,6CAA2B;AAC3B,+CAA6B;AAC7B,6CAA2B;AAC3B,4CAA0B;AAC1B,yCAAuB;AACvB,yCAAuB;AACvB,iDAA+B;AAC/B,+CAA6B;AAC7B,yCAAuB;AACvB,8CAA4B;AAC5B,8CAA4B;AAC5B,6CAA2B;AAC3B,0CAAwB;AACxB,6CAA2B;AAC3B,2CAAyB;AACzB,0CAAwB;AACxB,0CAAwB;AACxB,yCAAuB"}
@@ -0,0 +1,12 @@
1
+ import { IconProp } from '@fortawesome/fontawesome-svg-core';
2
+ export declare class Item<T = any> {
3
+ name?: string;
4
+ title?: string;
5
+ value?: T;
6
+ active?: boolean;
7
+ readonly?: boolean;
8
+ icon?: IconProp;
9
+ iconSelected?: IconProp;
10
+ props?: any;
11
+ constructor(props?: Partial<Item>);
12
+ }
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ 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;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.Item = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ class Item {
15
+ name;
16
+ title;
17
+ value;
18
+ active;
19
+ readonly;
20
+ icon;
21
+ iconSelected;
22
+ props;
23
+ constructor(props) {
24
+ Object.assign(this, props);
25
+ }
26
+ }
27
+ exports.Item = Item;
28
+ __decorate([
29
+ (0, class_transformer_1.Type)(() => Number),
30
+ __metadata("design:type", Boolean)
31
+ ], Item.prototype, "active", void 0);
32
+ __decorate([
33
+ (0, class_transformer_1.Type)(() => Number),
34
+ __metadata("design:type", Boolean)
35
+ ], Item.prototype, "readonly", void 0);
36
+ //# sourceMappingURL=item.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"item.js","sourceRoot":"","sources":["../../src/models/item.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,yDAAyC;AAWzC,MAAa,IAAI;IAKhB,IAAI,CAAU;IAMd,KAAK,CAAU;IAKf,KAAK,CAAK;IAMV,MAAM,CAAW;IAMjB,QAAQ,CAAW;IAKnB,IAAI,CAAY;IAKhB,YAAY,CAAY;IAKxB,KAAK,CAAO;IAIZ,YAAY,KAAqB;QAChC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAlDD,oBAkDC;AA5BA;IADC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;oCACF;AAMjB;IADC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;sCACA"}
@@ -0,0 +1,11 @@
1
+ export declare class ILink {
2
+ id?: string;
3
+ title?: string;
4
+ icon?: AnimationPlaybackEvent;
5
+ iconName?: any;
6
+ image?: string;
7
+ url?: string;
8
+ href?: string;
9
+ active?: boolean;
10
+ permission?: string;
11
+ }
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ 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;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.ILink = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ class ILink {
15
+ id;
16
+ title;
17
+ icon;
18
+ iconName;
19
+ image;
20
+ url;
21
+ href;
22
+ active;
23
+ permission;
24
+ }
25
+ exports.ILink = ILink;
26
+ __decorate([
27
+ (0, class_transformer_1.Type)(() => Boolean),
28
+ __metadata("design:type", Boolean)
29
+ ], ILink.prototype, "active", void 0);
30
+ //# sourceMappingURL=link.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"link.js","sourceRoot":"","sources":["../../src/models/link.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAyC;AAOzC,MAAa,KAAK;IAIjB,EAAE,CAAU;IAKZ,KAAK,CAAU;IAKf,IAAI,CAA0B;IAK9B,QAAQ,CAAO;IAKf,KAAK,CAAU;IAKf,GAAG,CAAU;IAKb,IAAI,CAAU;IAMd,MAAM,CAAW;IAKjB,UAAU,CAAU;CACpB;AA9CD,sBA8CC;AANA;IADC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,OAAO,CAAC;;qCACH"}
@@ -1,9 +1,11 @@
1
+ import { IconProp } from '@fortawesome/fontawesome-svg-core';
1
2
  import { Author } from './author';
2
3
  import { Publisher } from './publisher';
3
4
  import { Topic } from './topic';
4
5
  import { FeedType, PostType, StatusType } from '../enums';
5
6
  import { GalleryItem } from './gallery';
6
7
  import { Feedback } from './feedback';
8
+ import { Item } from './item';
7
9
  export declare class Post {
8
10
  id: number;
9
11
  publisher: Publisher;
@@ -14,12 +16,12 @@ export declare class Post {
14
16
  gallery: GalleryItem[];
15
17
  postType: PostType | FeedType;
16
18
  status: StatusType;
19
+ info: IPostAdditionals;
17
20
  publishedDate: Date;
18
21
  slug: string;
19
22
  title: string;
20
23
  description: string;
21
24
  content: string;
22
- info: IPostAdditionals;
23
25
  duration: number;
24
26
  totalHits: number;
25
27
  totalLikes: number;
@@ -36,7 +38,16 @@ export declare class Post {
36
38
  mediaUrl: string;
37
39
  mediaEmbeddedUrl: string;
38
40
  externUrl: string;
41
+ icon: IconProp;
42
+ svgIcon: string;
43
+ tags: string[];
44
+ bookmark: Item<number>;
45
+ like: Item<number>;
46
+ share: Item<number>;
47
+ hit: Item<number>;
48
+ download: Item<number>;
39
49
  constructor(props?: Partial<Post>);
50
+ get type(): PostType;
40
51
  }
41
52
  export interface IPostAdditionals {
42
53
  translatedBy: string;