@lyxa.ai/core 1.0.322 → 1.0.323
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.
- package/dist/libraries/mongo/models/default-chat.model.js +1 -1
- package/dist/libraries/mongo/models/default-chat.model.js.map +1 -1
- package/dist/libraries/mongo/models/embedded/support-reason-info.model.js +1 -1
- package/dist/libraries/mongo/models/embedded/support-reason-info.model.js.map +1 -1
- package/dist/libraries/mongo/models/support-reason.model.js +2 -1
- package/dist/libraries/mongo/models/support-reason.model.js.map +1 -1
- package/dist/types/README.md +1 -1
- package/dist/types/package.json +1 -1
- package/package.json +1 -1
|
@@ -17,7 +17,7 @@ let DefaultChat = class DefaultChat extends defaultClasses_1.TimeStamps {
|
|
|
17
17
|
};
|
|
18
18
|
exports.DefaultChat = DefaultChat;
|
|
19
19
|
__decorate([
|
|
20
|
-
(0, typegoose_1.prop)({ required: true, type: String }),
|
|
20
|
+
(0, typegoose_1.prop)({ required: true, type: String, unique: true }),
|
|
21
21
|
__metadata("design:type", String)
|
|
22
22
|
], DefaultChat.prototype, "text", void 0);
|
|
23
23
|
exports.DefaultChat = DefaultChat = __decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default-chat.model.js","sourceRoot":"/","sources":["libraries/mongo/models/default-chat.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA0D;AAC1D,4EAAqE;AAG9D,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,2BAAU;IAEnC,IAAI,CAAS;CACpB,CAAA;AAHY,kCAAW;AAEhB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;
|
|
1
|
+
{"version":3,"file":"default-chat.model.js","sourceRoot":"/","sources":["libraries/mongo/models/default-chat.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA0D;AAC1D,4EAAqE;AAG9D,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,2BAAU;IAEnC,IAAI,CAAS;CACpB,CAAA;AAHY,kCAAW;AAEhB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;yCACjC;sBAFR,WAAW;IADvB,IAAA,wBAAY,EAAC,EAAE,aAAa,EAAE,EAAE,UAAU,EAAE,cAAc,EAAE,UAAU,EAAE,IAAI,EAAE,EAAE,CAAC;GACrE,WAAW,CAGvB","sourcesContent":["import { modelOptions, prop } from '@typegoose/typegoose';\nimport { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';\n\n@modelOptions({ schemaOptions: { collection: 'default-chat', timestamps: true } })\nexport class DefaultChat extends TimeStamps {\n\t@prop({ required: true, type: String, unique: true })\n\tpublic text: string;\n}\n"]}
|
|
@@ -17,7 +17,7 @@ class SupportReasonInfo {
|
|
|
17
17
|
}
|
|
18
18
|
exports.SupportReasonInfo = SupportReasonInfo;
|
|
19
19
|
__decorate([
|
|
20
|
-
(0, typegoose_1.prop)({ type: String, maxlength: 200 }),
|
|
20
|
+
(0, typegoose_1.prop)({ type: String, maxlength: 200, trim: true }),
|
|
21
21
|
__metadata("design:type", String)
|
|
22
22
|
], SupportReasonInfo.prototype, "question", void 0);
|
|
23
23
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"support-reason-info.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/support-reason-info.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,MAAa,iBAAiB;IAEtB,QAAQ,CAAU;IAGlB,MAAM,CAAU;CACvB;AAND,8CAMC;AAJO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,EAAE,CAAC;;
|
|
1
|
+
{"version":3,"file":"support-reason-info.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/support-reason-info.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA4C;AAE5C,MAAa,iBAAiB;IAEtB,QAAQ,CAAU;IAGlB,MAAM,CAAU;CACvB;AAND,8CAMC;AAJO;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;mDAC1B;AAGlB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,EAAE,CAAC;;iDAChB","sourcesContent":["import { prop } from '@typegoose/typegoose';\n\nexport class SupportReasonInfo {\n\t@prop({ type: String, maxlength: 200, trim: true })\n\tpublic question?: string;\n\n\t@prop({ type: String, maxlength: 200 })\n\tpublic answer?: string;\n}\n"]}
|
|
@@ -50,6 +50,7 @@ exports.SupportReason = SupportReason = __decorate([
|
|
|
50
50
|
(0, typegoose_1.pre)('findOneAndUpdate', async function (next) {
|
|
51
51
|
await sortingOrderHooks_1.handlePreUpdateForSortingWithStatus.call(this, _1.SupportReasonModel, ['reasonType']);
|
|
52
52
|
next();
|
|
53
|
-
})
|
|
53
|
+
}),
|
|
54
|
+
(0, typegoose_1.index)({ reasonType: 1, "reason.question": 1 }, { unique: true })
|
|
54
55
|
], SupportReason);
|
|
55
56
|
//# sourceMappingURL=support-reason.model.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"support-reason.model.js","sourceRoot":"/","sources":["libraries/mongo/models/support-reason.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
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,sEAGwC;AAiBjC,IAAM,aAAa,GAAnB,MAAM,aAAc,S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CAYzB","sourcesContent":["import { index, modelOptions, pre, 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/sortingOrderHooks';\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"]}
|
package/dist/types/README.md
CHANGED
package/dist/types/package.json
CHANGED