@experts_hub/shared 1.0.53 → 1.0.54

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,9 +4,11 @@ export declare enum QuestionFor {
4
4
  FREELANCER = "FREELANCER"
5
5
  }
6
6
  export declare class Question extends BaseEntity {
7
- questionId: number;
8
7
  question: string;
8
+ hint: string;
9
+ slug: string;
9
10
  questionFor: QuestionFor;
10
- options: string[];
11
+ type: string;
12
+ options: [];
11
13
  isActive: boolean;
12
14
  }
package/dist/index.d.mts CHANGED
@@ -304,10 +304,12 @@ declare enum QuestionFor {
304
304
  FREELANCER = "FREELANCER"
305
305
  }
306
306
  declare class Question extends BaseEntity {
307
- questionId: number;
308
307
  question: string;
308
+ hint: string;
309
+ slug: string;
309
310
  questionFor: QuestionFor;
310
- options: string[];
311
+ type: string;
312
+ options: [];
311
313
  isActive: boolean;
312
314
  }
313
315
 
package/dist/index.d.ts CHANGED
@@ -304,10 +304,12 @@ declare enum QuestionFor {
304
304
  FREELANCER = "FREELANCER"
305
305
  }
306
306
  declare class Question extends BaseEntity {
307
- questionId: number;
308
307
  question: string;
308
+ hint: string;
309
+ slug: string;
309
310
  questionFor: QuestionFor;
310
- options: string[];
311
+ type: string;
312
+ options: [];
311
313
  isActive: boolean;
312
314
  }
313
315
 
package/dist/index.js CHANGED
@@ -714,11 +714,14 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
714
714
  var Question = class extends BaseEntity {
715
715
  };
716
716
  __decorateClass([
717
- (0, import_typeorm7.Column)({ name: "question_id", type: "integer" })
718
- ], Question.prototype, "questionId", 2);
719
- __decorateClass([
720
- (0, import_typeorm7.Column)({ name: "question", type: "varchar", unique: true })
717
+ (0, import_typeorm7.Column)({ name: "question", type: "varchar" })
721
718
  ], Question.prototype, "question", 2);
719
+ __decorateClass([
720
+ (0, import_typeorm7.Column)({ name: "hint", type: "varchar", nullable: true })
721
+ ], Question.prototype, "hint", 2);
722
+ __decorateClass([
723
+ (0, import_typeorm7.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
724
+ ], Question.prototype, "slug", 2);
722
725
  __decorateClass([
723
726
  (0, import_typeorm7.Column)({
724
727
  name: "question_for",
@@ -728,7 +731,10 @@ __decorateClass([
728
731
  })
729
732
  ], Question.prototype, "questionFor", 2);
730
733
  __decorateClass([
731
- (0, import_typeorm7.Column)({ name: "options", type: "varchar", array: true })
734
+ (0, import_typeorm7.Column)({ name: "type", type: "varchar", nullable: true })
735
+ ], Question.prototype, "type", 2);
736
+ __decorateClass([
737
+ (0, import_typeorm7.Column)({ name: "options", type: "jsonb", nullable: true })
732
738
  ], Question.prototype, "options", 2);
733
739
  __decorateClass([
734
740
  (0, import_typeorm7.Column)({ name: "is_active", type: "boolean", default: false })
package/dist/index.mjs CHANGED
@@ -712,11 +712,14 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
712
712
  var Question = class extends BaseEntity {
713
713
  };
714
714
  __decorateClass([
715
- Column7({ name: "question_id", type: "integer" })
716
- ], Question.prototype, "questionId", 2);
717
- __decorateClass([
718
- Column7({ name: "question", type: "varchar", unique: true })
715
+ Column7({ name: "question", type: "varchar" })
719
716
  ], Question.prototype, "question", 2);
717
+ __decorateClass([
718
+ Column7({ name: "hint", type: "varchar", nullable: true })
719
+ ], Question.prototype, "hint", 2);
720
+ __decorateClass([
721
+ Column7({ name: "slug", type: "varchar", nullable: true, unique: true })
722
+ ], Question.prototype, "slug", 2);
720
723
  __decorateClass([
721
724
  Column7({
722
725
  name: "question_for",
@@ -726,7 +729,10 @@ __decorateClass([
726
729
  })
727
730
  ], Question.prototype, "questionFor", 2);
728
731
  __decorateClass([
729
- Column7({ name: "options", type: "varchar", array: true })
732
+ Column7({ name: "type", type: "varchar", nullable: true })
733
+ ], Question.prototype, "type", 2);
734
+ __decorateClass([
735
+ Column7({ name: "options", type: "jsonb", nullable: true })
730
736
  ], Question.prototype, "options", 2);
731
737
  __decorateClass([
732
738
  Column7({ name: "is_active", type: "boolean", default: false })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experts_hub/shared",
3
- "version": "1.0.53",
3
+ "version": "1.0.54",
4
4
  "description": "Shared DTOs, interfaces, and utilities for experts hub applications",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",