@lyxa.ai/core 1.0.316-test-2 → 1.0.317
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/nutrition.model.js +3 -2
- package/dist/libraries/mongo/models/nutrition.model.js.map +1 -1
- package/dist/libraries/mongo/models/parent.model.js +2 -5
- package/dist/libraries/mongo/models/parent.model.js.map +1 -1
- package/dist/types/README.md +1 -1
- package/dist/types/package.json +1 -1
- package/package.json +1 -1
|
@@ -19,7 +19,7 @@ let Nutrition = class Nutrition extends defaultClasses_1.TimeStamps {
|
|
|
19
19
|
};
|
|
20
20
|
exports.Nutrition = Nutrition;
|
|
21
21
|
__decorate([
|
|
22
|
-
(0, typegoose_1.prop)({ required: true, type: String }),
|
|
22
|
+
(0, typegoose_1.prop)({ required: true, type: String, maxlength: 50 }),
|
|
23
23
|
__metadata("design:type", String)
|
|
24
24
|
], Nutrition.prototype, "name", void 0);
|
|
25
25
|
__decorate([
|
|
@@ -27,6 +27,7 @@ __decorate([
|
|
|
27
27
|
__metadata("design:type", String)
|
|
28
28
|
], Nutrition.prototype, "status", void 0);
|
|
29
29
|
exports.Nutrition = Nutrition = __decorate([
|
|
30
|
-
(0, typegoose_1.modelOptions)({ schemaOptions: { collection: 'nutritions' } })
|
|
30
|
+
(0, typegoose_1.modelOptions)({ schemaOptions: { collection: 'nutritions' } }),
|
|
31
|
+
(0, typegoose_1.index)({ name: 1 }, { unique: true, partialFilterExpression: { deletedAt: null } })
|
|
31
32
|
], Nutrition);
|
|
32
33
|
//# sourceMappingURL=nutrition.model.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nutrition.model.js","sourceRoot":"/","sources":["libraries/mongo/models/nutrition.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"nutrition.model.js","sourceRoot":"/","sources":["libraries/mongo/models/nutrition.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAiE;AACjE,4EAAqE;AACrE,kDAAiD;AAI1C,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,2BAAU;IAEjC,IAAI,CAAU;IAGd,MAAM,CAAU;CACvB,CAAA;AANY,8BAAS;AAEd;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC;;uCACjC;AAGd;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,aAAM,EAAE,OAAO,EAAE,aAAM,CAAC,MAAM,EAAE,CAAC;;yCACtC;oBALX,SAAS;IAFrB,IAAA,wBAAY,EAAC,EAAE,aAAa,EAAE,EAAE,UAAU,EAAE,YAAY,EAAE,EAAE,CAAC;IAC7D,IAAA,iBAAK,EAAC,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,uBAAuB,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,CAAC;GACtE,SAAS,CAMrB","sourcesContent":["import { index, modelOptions, prop } from '@typegoose/typegoose';\nimport { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';\nimport { Status } from '../../../utilities/enum';\n\n@modelOptions({ schemaOptions: { collection: 'nutritions' } })\n@index({ name: 1 }, { unique: true, partialFilterExpression: { deletedAt: null } })\nexport class Nutrition extends TimeStamps {\n\t@prop({ required: true, type: String, maxlength: 50 })\n\tpublic name!: string;\n\n\t@prop({ type: String, enum: Status, default: Status.ACTIVE })\n\tpublic status?: Status;\n}\n"]}
|
|
@@ -39,7 +39,7 @@ let Parent = class Parent extends defaultClasses_1.TimeStamps {
|
|
|
39
39
|
};
|
|
40
40
|
exports.Parent = Parent;
|
|
41
41
|
__decorate([
|
|
42
|
-
(0, typegoose_1.prop)({ required: true, type: String, maxlength: 50 }),
|
|
42
|
+
(0, typegoose_1.prop)({ required: true, type: String, maxlength: 50, unique: true }),
|
|
43
43
|
__metadata("design:type", String)
|
|
44
44
|
], Parent.prototype, "name", void 0);
|
|
45
45
|
__decorate([
|
|
@@ -47,7 +47,7 @@ __decorate([
|
|
|
47
47
|
__metadata("design:type", String)
|
|
48
48
|
], Parent.prototype, "email", void 0);
|
|
49
49
|
__decorate([
|
|
50
|
-
(0, typegoose_1.prop)({ required: true, type: String }),
|
|
50
|
+
(0, typegoose_1.prop)({ required: true, type: String, unique: true }),
|
|
51
51
|
__metadata("design:type", String)
|
|
52
52
|
], Parent.prototype, "phoneNumber", void 0);
|
|
53
53
|
__decorate([
|
|
@@ -109,9 +109,6 @@ __decorate([
|
|
|
109
109
|
__metadata("design:type", Boolean)
|
|
110
110
|
], Parent.prototype, "showCustomerNumber", void 0);
|
|
111
111
|
exports.Parent = Parent = __decorate([
|
|
112
|
-
(0, typegoose_1.index)({ name: 1 }, { unique: true, partialFilterExpression: { deletedAt: null } }),
|
|
113
|
-
(0, typegoose_1.index)({ email: 1 }, { unique: true, partialFilterExpression: { deletedAt: null } }),
|
|
114
|
-
(0, typegoose_1.index)({ phoneNumber: 1 }, { unique: true, partialFilterExpression: { deletedAt: null } }),
|
|
115
112
|
(0, typegoose_1.modelOptions)({
|
|
116
113
|
schemaOptions: { collection: 'parents', toJSON: { virtuals: true }, toObject: { virtuals: true } },
|
|
117
114
|
options: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parent.model.js","sourceRoot":"/","sources":["libraries/mongo/models/parent.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAgF;AAChF,4EAAqE;AACrE,kDAAuE;AACvE,+CAAsC;AACtC,0DAAiD;AACjD,4EAAkE;AAClE,0DAAiD;AACjD,4DAAmD;AACnD,6CAAoC;
|
|
1
|
+
{"version":3,"file":"parent.model.js","sourceRoot":"/","sources":["libraries/mongo/models/parent.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAgF;AAChF,4EAAqE;AACrE,kD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,wBAAY,EAAC;QACb,aAAa,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAE;QAClG,OAAO,EAAE;YACR,UAAU,EAAE,oBAAQ,CAAC,KAAK;SAC1B;KACD,CAAC;GACW,MAAM,CAsDlB","sourcesContent":["import { index, modelOptions, prop, Ref, Severity } from '@typegoose/typegoose';\nimport { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';\nimport { ChargeType, ItemType, Status } from '../../../utilities/enum';\nimport { Admin } from './admin.model';\nimport { Charge } from './embedded/charge.model';\nimport { ParentDocument } from './embedded/parent-document.model';\nimport { Address } from './shared/address.model';\nimport { Duration } from './shared/duration.model';\nimport { Shop } from './shop.model';\n\n@modelOptions({\n\tschemaOptions: { collection: 'parents', toJSON: { virtuals: true }, toObject: { virtuals: true } },\n\toptions: {\n\t\tallowMixed: Severity.ALLOW,\n\t},\n})\nexport class Parent extends TimeStamps {\n\t@prop({ required: true, type: String, maxlength: 50, unique: true })\n\tpublic name!: string;\n\n\t@prop({ required: true, type: String })\n\tpublic email!: string;\n\n\t@prop({ required: true, type: String, unique: true })\n\tpublic phoneNumber!: string;\n\n\t@prop({ required: true, type: Address })\n\tpublic address!: Address;\n\n\t@prop({ required: true, type: String, enum: ChargeType, default: ChargeType.CUSTOM })\n\tpublic chargeType!: ChargeType;\n\n\t@prop({ required: true, type: Charge })\n\tpublic charge!: Charge;\n\n\t@prop({ required: true, type: Duration })\n\tpublic commissionDuration!: Duration;\n\n\t@prop({ required: true, type: String, enum: ItemType })\n\tpublic itemType!: ItemType;\n\n\t@prop({ required: true, type: Boolean, default: true })\n\tpublic isServiceFeeCharged!: boolean;\n\n\t@prop({ ref: () => Admin })\n\tpublic businessDevExecutive?: Ref<Admin>;\n\n\t@prop({ type: String, enum: Status, default: Status.ACTIVE })\n\tpublic status?: Status;\n\n\t@prop({ type: String })\n\tpublic profilePhoto?: string;\n\n\t@prop({ type: ParentDocument })\n\tpublic document?: ParentDocument;\n\n\t@prop({\n\t\tref: () => Shop,\n\t\tforeignField: 'parent',\n\t\tlocalField: '_id',\n\t\tcount: true,\n\t\tmatch: { deletedAt: null },\n\t})\n\tpublic shopCount?: number;\n\n\t@prop({ type: Boolean, default: false })\n\tpublic allowTakingOrders?: boolean;\n\n\t@prop({ type: Boolean, default: false })\n\tpublic showCustomerNumber?: boolean;\n}\n"]}
|
package/dist/types/README.md
CHANGED
package/dist/types/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lyxa.ai/types",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.317",
|
|
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",
|