@lyxa.ai/core 1.1.80 → 1.1.81
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/cart-participant.model.d.ts +2 -0
- package/dist/libraries/mongo/models/cart-participant.model.js +6 -0
- package/dist/libraries/mongo/models/cart-participant.model.js.map +1 -1
- package/dist/libraries/mongo/models/embedded/status-timeline.model.d.ts +1 -1
- package/dist/libraries/mongo/models/embedded/status-timeline.model.js +0 -2
- package/dist/libraries/mongo/models/embedded/status-timeline.model.js.map +1 -1
- package/dist/types/README.md +1 -1
- package/dist/types/package.json +1 -1
- package/package.json +1 -1
|
@@ -3,6 +3,7 @@ import { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';
|
|
|
3
3
|
import { Cart } from './cart.model';
|
|
4
4
|
import { PaymentInformation } from './embedded/payment-infromation.model';
|
|
5
5
|
import { User } from './user.model';
|
|
6
|
+
import { RegularOrderPricing } from './embedded/order-pricing.model';
|
|
6
7
|
export declare class CartParticipant extends TimeStamps {
|
|
7
8
|
cart: Ref<Cart>;
|
|
8
9
|
user: Ref<User>;
|
|
@@ -15,4 +16,5 @@ export declare class CartParticipant extends TimeStamps {
|
|
|
15
16
|
name: string;
|
|
16
17
|
profilePhoto?: string;
|
|
17
18
|
phoneNumber?: string;
|
|
19
|
+
pricing?: RegularOrderPricing;
|
|
18
20
|
}
|
|
@@ -15,6 +15,7 @@ const defaultClasses_1 = require("@typegoose/typegoose/lib/defaultClasses");
|
|
|
15
15
|
const cart_model_1 = require("./cart.model");
|
|
16
16
|
const payment_infromation_model_1 = require("./embedded/payment-infromation.model");
|
|
17
17
|
const user_model_1 = require("./user.model");
|
|
18
|
+
const order_pricing_model_1 = require("./embedded/order-pricing.model");
|
|
18
19
|
let CartParticipant = class CartParticipant extends defaultClasses_1.TimeStamps {
|
|
19
20
|
cart;
|
|
20
21
|
user;
|
|
@@ -27,6 +28,7 @@ let CartParticipant = class CartParticipant extends defaultClasses_1.TimeStamps
|
|
|
27
28
|
name;
|
|
28
29
|
profilePhoto;
|
|
29
30
|
phoneNumber;
|
|
31
|
+
pricing;
|
|
30
32
|
};
|
|
31
33
|
exports.CartParticipant = CartParticipant;
|
|
32
34
|
__decorate([
|
|
@@ -73,6 +75,10 @@ __decorate([
|
|
|
73
75
|
(0, typegoose_1.prop)({ type: String }),
|
|
74
76
|
__metadata("design:type", String)
|
|
75
77
|
], CartParticipant.prototype, "phoneNumber", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, typegoose_1.prop)({ type: () => order_pricing_model_1.RegularOrderPricing }),
|
|
80
|
+
__metadata("design:type", order_pricing_model_1.RegularOrderPricing)
|
|
81
|
+
], CartParticipant.prototype, "pricing", void 0);
|
|
76
82
|
exports.CartParticipant = CartParticipant = __decorate([
|
|
77
83
|
(0, typegoose_1.modelOptions)({
|
|
78
84
|
schemaOptions: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cart-participant.model.js","sourceRoot":"/","sources":["libraries/mongo/models/cart-participant.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAgF;AAChF,4EAAqE;AACrE,6CAAoC;
|
|
1
|
+
{"version":3,"file":"cart-participant.model.js","sourceRoot":"/","sources":["libraries/mongo/models/cart-participant.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAgF;AAChF,4EAAqE;AACrE,6CAAoC;AACpC,oFAA0E;AAC1E,6CAAoC;AACpC,wEAAqE;AAiB9D,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,2BAAU;IAEvC,IAAI,CAAa;IAGjB,IAAI,CAAa;IAGjB,QAAQ,CAAQ;IAGhB,OAAO,CAAW;IAGlB,OAAO,CAAQ;IAGf,WAAW,CAAU;IAGrB,kBAAkB,CAAsB;IAGxC,SAAS,CAAW;IAGpB,IAAI,CAAU;IAGd,YAAY,CAAU;IAGtB,WAAW,CAAU;IAGrB,OAAO,CAAuB;CACr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C;8BACzB,yCAAmB;gDAAC;0BAnCzB,eAAe;IAZ3B,IAAA,wBAAY,EAAC;QACb,aAAa,EAAE;YACd,UAAU,EAAE,kBAAkB;YAC9B,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;YAC1B,QAAQ,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;SAC5B;QACD,OAAO,EAAE;YACR,UAAU,EAAE,oBAAQ,CAAC,KAAK;SAC1B;KACD,CAAC;IACD,IAAA,iBAAK,EAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IAC7C,IAAA,iBAAK,EAAC,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC;GACN,eAAe,CAoC3B","sourcesContent":["import { prop, Ref, index, modelOptions, Severity } from '@typegoose/typegoose';\nimport { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';\nimport { Cart } from './cart.model';\nimport { PaymentInformation } from './embedded/payment-infromation.model';\nimport { User } from './user.model';\nimport { RegularOrderPricing } from './embedded/order-pricing.model';\n\n/**\n * CartParticipant model - Tracks users participating in a group cart\n */\n@modelOptions({\n\tschemaOptions: {\n\t\tcollection: 'cartParticipants',\n\t\ttoJSON: { virtuals: true },\n\t\ttoObject: { virtuals: true },\n\t},\n\toptions: {\n\t\tallowMixed: Severity.ALLOW,\n\t},\n})\n@index({ cart: 1, user: 1 }, { unique: true })\n@index({ cart: 1 })\nexport class CartParticipant extends TimeStamps {\n\t@prop({ required: true, ref: () => Cart })\n\tpublic cart!: Ref<Cart>;\n\n\t@prop({ required: true, ref: () => User })\n\tpublic user!: Ref<User>;\n\n\t@prop({ type: Date, default: () => new Date() })\n\tpublic joinedAt!: Date;\n\n\t@prop({ type: Boolean, default: false })\n\tpublic isReady!: boolean;\n\n\t@prop({ type: Date })\n\tpublic readyAt?: Date;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic spentAmount!: number;\n\n\t@prop({ type: () => PaymentInformation })\n\tpublic paymentInformation?: PaymentInformation;\n\n\t@prop({ type: Boolean, default: false })\n\tpublic isCreator!: boolean;\n\n\t@prop({ required: true, type: String })\n\tpublic name!: string;\n\n\t@prop({ type: String })\n\tpublic profilePhoto?: string;\n\n\t@prop({ type: String })\n\tpublic phoneNumber?: string;\n\n\t@prop({ type: () => RegularOrderPricing })\n\tpublic pricing?: RegularOrderPricing;\n}\n"]}
|
|
@@ -36,10 +36,8 @@ class RegularOrderStatusTimeline extends StatusTimeline {
|
|
|
36
36
|
exports.RegularOrderStatusTimeline = RegularOrderStatusTimeline;
|
|
37
37
|
__decorate([
|
|
38
38
|
(0, typegoose_1.prop)({
|
|
39
|
-
required: true,
|
|
40
39
|
type: String,
|
|
41
40
|
enum: enum_1.RegularOrderStatus,
|
|
42
|
-
default: enum_1.RegularOrderStatus.PLACED,
|
|
43
41
|
}),
|
|
44
42
|
__metadata("design:type", String)
|
|
45
43
|
], RegularOrderStatusTimeline.prototype, "status", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"status-timeline.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/status-timeline.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAiD;AACjD,gDAAuC;AACvC,qDAAwG;AAExG,MAAM,cAAc;IAEnB,SAAS,CAAO;IAGhB,SAAS,CAAc;IAGvB,KAAK,CAAU;CACf;AAPA;IADC,IAAA,gBAAI,GAAE;8BACI,IAAI;iDAAC;AAGhB;IADC,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,mBAAK,EAAE,CAAC;;iDACJ;AAGvB;IADC,IAAA,gBAAI,GAAE;;6CACQ;AAGhB,MAAa,0BAA2B,SAAQ,cAAc;
|
|
1
|
+
{"version":3,"file":"status-timeline.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/status-timeline.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAiD;AACjD,gDAAuC;AACvC,qDAAwG;AAExG,MAAM,cAAc;IAEnB,SAAS,CAAO;IAGhB,SAAS,CAAc;IAGvB,KAAK,CAAU;CACf;AAPA;IADC,IAAA,gBAAI,GAAE;8BACI,IAAI;iDAAC;AAGhB;IADC,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,mBAAK,EAAE,CAAC;;iDACJ;AAGvB;IADC,IAAA,gBAAI,GAAE;;6CACQ;AAGhB,MAAa,0BAA2B,SAAQ,cAAc;IAK7D,MAAM,CAAU;CAChB;AAND,gEAMC;AADA;IAJC,IAAA,gBAAI,EAAC;QACL,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,yBAAkB;KACxB,CAAC;;0DACc;AAGjB,MAAa,0BAA2B,SAAQ,cAAc;IAO7D,MAAM,CAAS;CACf;AARD,gEAQC;AADA;IANC,IAAA,gBAAI,EAAC;QACL,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,yBAAkB;QACxB,OAAO,EAAE,yBAAkB,CAAC,MAAM;KAClC,CAAC;;0DACa;AAGhB,MAAa,0BAA2B,SAAQ,cAAc;IAO7D,MAAM,CAAS;CACf;AARD,gEAQC;AADA;IANC,IAAA,gBAAI,EAAC;QACL,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,yBAAkB;QACxB,OAAO,EAAE,yBAAkB,CAAC,OAAO;KACnC,CAAC;;0DACa","sourcesContent":["import { prop, Ref } from '@typegoose/typegoose';\nimport { Admin } from '../admin.model';\nimport { CourierOrderStatus, RegularOrderStatus, ServiceOrderStatus } from '../../../../utilities/enum';\n\nclass StatusTimeline {\n\t@prop()\n\ttimestamp: Date; // scope for discussion to change the name to date\n\n\t@prop({ ref: () => Admin })\n\tupdatedBy?: Ref<Admin>;\n\n\t@prop()\n\tnotes?: string;\n}\n\nexport class RegularOrderStatusTimeline extends StatusTimeline {\n\t@prop({\n\t\ttype: String,\n\t\tenum: RegularOrderStatus,\n\t})\n\tstatus?: string;\n}\n\nexport class CourierOrderStatusTimeline extends StatusTimeline {\n\t@prop({\n\t\trequired: true,\n\t\ttype: String,\n\t\tenum: CourierOrderStatus,\n\t\tdefault: CourierOrderStatus.PLACED,\n\t})\n\tstatus: string;\n}\n\nexport class ServiceOrderStatusTimeline extends StatusTimeline {\n\t@prop({\n\t\trequired: true,\n\t\ttype: String,\n\t\tenum: ServiceOrderStatus,\n\t\tdefault: ServiceOrderStatus.PENDING,\n\t})\n\tstatus: string;\n}\n"]}
|
package/dist/types/README.md
CHANGED
package/dist/types/package.json
CHANGED