@lyxa.ai/core 1.3.61 → 1.3.62

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.
@@ -1,9 +1,10 @@
1
1
  import { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';
2
- import { Status, SupportReasonTypeEnum } from '../../../utilities/enum';
2
+ import { FaqAccountType, Status, SupportReasonTypeEnum } from '../../../utilities/enum';
3
3
  import { SupportReasonInfo } from './embedded/support-reason-info.model';
4
4
  export declare class SupportReason extends TimeStamps {
5
5
  reason: SupportReasonInfo;
6
6
  reasonType: SupportReasonTypeEnum;
7
+ accountType?: FaqAccountType;
7
8
  status: Status;
8
9
  sortingOrder?: number;
9
10
  }
@@ -19,6 +19,7 @@ const sorting_order_hooks_1 = require("../utilities/sorting-order.hooks");
19
19
  let SupportReason = class SupportReason extends defaultClasses_1.TimeStamps {
20
20
  reason;
21
21
  reasonType;
22
+ accountType;
22
23
  status;
23
24
  sortingOrder;
24
25
  };
@@ -31,6 +32,10 @@ __decorate([
31
32
  (0, typegoose_1.prop)({ required: true, type: String, enum: enum_1.SupportReasonTypeEnum }),
32
33
  __metadata("design:type", String)
33
34
  ], SupportReason.prototype, "reasonType", void 0);
35
+ __decorate([
36
+ (0, typegoose_1.prop)({ required: true, enum: enum_1.FaqAccountType }),
37
+ __metadata("design:type", String)
38
+ ], SupportReason.prototype, "accountType", void 0);
34
39
  __decorate([
35
40
  (0, typegoose_1.prop)({ required: true, type: String, enum: enum_1.Status }),
36
41
  __metadata("design:type", String)
@@ -1 +1 @@
1
- {"version":3,"file":"support-reason.model.js","sourceRoot":"/","sources":["libraries/mongo/models/support-reason.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAsE;AACtE,4EAAqE;AACrE,kDAAwE;AACxE,oFAAyE;AAEzE,wBAAuC;AACvC,0EAG0C;AAiBnC,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,2BAAU;IAErC,MAAM,CAAoB;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prop } from '@typegoose/typegoose';\nimport { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';\nimport { Status, SupportReasonTypeEnum } from '../../../utilities/enum';\nimport { SupportReasonInfo } from './embedded/support-reason-info.model';\nimport { Query } from 'mongoose';\nimport { SupportReasonModel } from '.';\nimport {\n\thandlePreSaveForSortingWithStatus,\n\thandlePreUpdateForSortingWithStatus,\n} from '../utilities/sorting-order.hooks';\n\n@modelOptions({ schemaOptions: { collection: 'supportReasons' } })\n@pre<SupportReason>('save', async function (next) {\n\tawait handlePreSaveForSortingWithStatus.call(this, SupportReasonModel, {\n\t\treasonType: this.reasonType,\n\t});\n\n\tnext();\n})\n@pre<SupportReason>('findOneAndUpdate', async function (this: Query<any, SupportReason>, next) {\n\tawait handlePreUpdateForSortingWithStatus.call(this, SupportReasonModel, ['reasonType']);\n\n\tnext();\n})\n\n@index({ reasonType: 1, \"reason.question\": 1 }, { unique: true })\nexport class SupportReason extends TimeStamps {\n\t@prop({ required: true, type: () => SupportReasonInfo })\n\tpublic reason: SupportReasonInfo;\n\n\t@prop({ required: true, type: String, enum: SupportReasonTypeEnum })\n\tpublic reasonType: SupportReasonTypeEnum;\n\n\t@prop({ required: true, type: String, enum: Status })\n\tpublic status: Status;\n\n\t@prop({ type: Number })\n\tpublic sortingOrder?: number;\n}\n"]}
1
+ {"version":3,"file":"support-reason.model.js","sourceRoot":"/","sources":["libraries/mongo/models/support-reason.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAsE;AACtE,4EAAqE;AACrE,kDAAwF;AACxF,oFAAyE;AAEzE,wBAAuC;AACvC,0EAG0C;AAiBnC,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,2BAAU;IAErC,MAAM,CAAoB;IAG1B,UAAU,CAAwB;IAGlC,WAAW,CAAkB;IAG7B,MAAM,CAAS;IAGf,YAAY,CAAU;CAC7B,CAAA;AAfY,sCAAa;AAElB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,I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'@typegoose/typegoose/lib/defaultClasses';\nimport { FaqAccountType, Status, SupportReasonTypeEnum } from '../../../utilities/enum';\nimport { SupportReasonInfo } from './embedded/support-reason-info.model';\nimport { Query } from 'mongoose';\nimport { SupportReasonModel } from '.';\nimport {\n\thandlePreSaveForSortingWithStatus,\n\thandlePreUpdateForSortingWithStatus,\n} from '../utilities/sorting-order.hooks';\n\n@modelOptions({ schemaOptions: { collection: 'supportReasons' } })\n@pre<SupportReason>('save', async function (next) {\n\tawait handlePreSaveForSortingWithStatus.call(this, SupportReasonModel, {\n\t\treasonType: this.reasonType,\n\t});\n\n\tnext();\n})\n@pre<SupportReason>('findOneAndUpdate', async function (this: Query<any, SupportReason>, next) {\n\tawait handlePreUpdateForSortingWithStatus.call(this, SupportReasonModel, ['reasonType']);\n\n\tnext();\n})\n\n@index({ reasonType: 1, \"reason.question\": 1 }, { unique: true })\nexport class SupportReason extends TimeStamps {\n\t@prop({ required: true, type: () => SupportReasonInfo })\n\tpublic reason: SupportReasonInfo;\n\n\t@prop({ required: true, type: String, enum: SupportReasonTypeEnum })\n\tpublic reasonType: SupportReasonTypeEnum;\n\n\t@prop({ required: true, enum: FaqAccountType })\n\tpublic accountType?: FaqAccountType;\n\n\t@prop({ required: true, type: String, enum: Status })\n\tpublic status: Status;\n\n\t@prop({ type: Number })\n\tpublic sortingOrder?: number;\n}\n"]}
@@ -22,7 +22,7 @@ Perfect for sharing types between frontend and backend applications.
22
22
 
23
23
  ## Version
24
24
 
25
- Version: 1.3.61
25
+ Version: 1.3.62
26
26
 
27
27
  ## Dependencies
28
28
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lyxa.ai/types",
3
- "version": "1.3.61",
3
+ "version": "1.3.62",
4
4
  "description": "Lyxa type definitions and validation schemas for both frontend and backend",
5
5
  "author": "elie <42282499+Internalizable@users.noreply.github.com>",
6
6
  "license": "MIT",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lyxa.ai/core",
3
- "version": "1.3.61",
3
+ "version": "1.3.62",
4
4
  "description": "The Core system of the Lyxa services.",
5
5
  "author": "elie <42282499+Internalizable@users.noreply.github.com>",
6
6
  "license": "MIT",