@lyxa.ai/core 1.4.161-alpha.0 → 1.4.161-alpha.2
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.
|
@@ -6,9 +6,9 @@ import { OrderSlotRange } from './shared/duration.model';
|
|
|
6
6
|
import { Cart } from './cart.model';
|
|
7
7
|
export declare class ServiceCart extends Cart {
|
|
8
8
|
cartType?: CartType;
|
|
9
|
-
vendor
|
|
10
|
-
serviceType
|
|
9
|
+
vendor?: Ref<Vendor>;
|
|
10
|
+
serviceType?: ServiceType;
|
|
11
11
|
subServiceType?: SubServiceType;
|
|
12
|
-
serviceLineItems
|
|
12
|
+
serviceLineItems?: ServiceLineItem[];
|
|
13
13
|
slotRange?: OrderSlotRange;
|
|
14
14
|
}
|
|
@@ -16,24 +16,24 @@ const enum_1 = require("../../../utilities/enum");
|
|
|
16
16
|
const service_line_item_model_1 = require("./embedded/service-line-item.model");
|
|
17
17
|
const duration_model_1 = require("./shared/duration.model");
|
|
18
18
|
const cart_model_1 = require("./cart.model");
|
|
19
|
-
|
|
19
|
+
class ServiceCart extends cart_model_1.Cart {
|
|
20
20
|
vendor;
|
|
21
21
|
serviceType;
|
|
22
22
|
subServiceType;
|
|
23
23
|
serviceLineItems;
|
|
24
24
|
slotRange;
|
|
25
|
-
}
|
|
25
|
+
}
|
|
26
26
|
exports.ServiceCart = ServiceCart;
|
|
27
27
|
__decorate([
|
|
28
28
|
(0, typegoose_1.prop)({ type: String, enum: enum_1.CartType, default: enum_1.CartType.SERVICE }),
|
|
29
29
|
__metadata("design:type", String)
|
|
30
30
|
], ServiceCart.prototype, "cartType", void 0);
|
|
31
31
|
__decorate([
|
|
32
|
-
(0, typegoose_1.prop)({
|
|
32
|
+
(0, typegoose_1.prop)({ ref: () => vendor_model_1.Vendor }),
|
|
33
33
|
__metadata("design:type", Object)
|
|
34
34
|
], ServiceCart.prototype, "vendor", void 0);
|
|
35
35
|
__decorate([
|
|
36
|
-
(0, typegoose_1.prop)({
|
|
36
|
+
(0, typegoose_1.prop)({ type: String, enum: enum_1.ServiceType }),
|
|
37
37
|
__metadata("design:type", String)
|
|
38
38
|
], ServiceCart.prototype, "serviceType", void 0);
|
|
39
39
|
__decorate([
|
|
@@ -41,17 +41,11 @@ __decorate([
|
|
|
41
41
|
__metadata("design:type", String)
|
|
42
42
|
], ServiceCart.prototype, "subServiceType", void 0);
|
|
43
43
|
__decorate([
|
|
44
|
-
(0, typegoose_1.prop)({
|
|
44
|
+
(0, typegoose_1.prop)({ type: [service_line_item_model_1.ServiceLineItem] }),
|
|
45
45
|
__metadata("design:type", Array)
|
|
46
46
|
], ServiceCart.prototype, "serviceLineItems", void 0);
|
|
47
47
|
__decorate([
|
|
48
48
|
(0, typegoose_1.prop)({ type: duration_model_1.OrderSlotRange, _id: false }),
|
|
49
49
|
__metadata("design:type", duration_model_1.OrderSlotRange)
|
|
50
50
|
], ServiceCart.prototype, "slotRange", void 0);
|
|
51
|
-
exports.ServiceCart = ServiceCart = __decorate([
|
|
52
|
-
(0, typegoose_1.modelOptions)({
|
|
53
|
-
schemaOptions: { collection: 'carts', toJSON: { virtuals: true }, toObject: { virtuals: true } },
|
|
54
|
-
options: { allowMixed: typegoose_1.Severity.ALLOW },
|
|
55
|
-
})
|
|
56
|
-
], ServiceCart);
|
|
57
51
|
//# sourceMappingURL=service-cart.model.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service-cart.model.js","sourceRoot":"/","sources":["libraries/mongo/models/service-cart.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"service-cart.model.js","sourceRoot":"/","sources":["libraries/mongo/models/service-cart.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAiD;AACjD,iDAAwC;AACxC,kDAAgF;AAChF,gFAAqE;AACrE,4DAAyD;AACzD,6CAAoC;AAEpC,MAAa,WAAY,SAAQ,iBAAI;IAM7B,MAAM,CAAe;IAIrB,WAAW,CAAe;IAG1B,cAAc,CAAkB;IAIhC,gBAAgB,CAAqB;IAGrC,SAAS,CAAkB;CAClC;AArBD,kCAqBC;AAnBe;IADd,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,eAAQ,EAAE,OAAO,EAAE,eAAQ,CAAC,OAAO,EAAE,CAAC;;6CAC/B;AAI5B;IADN,IAAA,gBAAI,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,qBAAM,EAAE,CAAC;;2CACA;AAIrB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAW,EAAE,CAAC;;gDACT;AAG1B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,qBAAc,EAAE,CAAC;;mDACN;AAIhC;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,CAAC,yCAAe,CAAC,EAAE,CAAC;;qDACU;AAGrC;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,+BAAc,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;8BACxB,+BAAc;8CAAC","sourcesContent":["import { prop, Ref } from '@typegoose/typegoose';\nimport { Vendor } from './vendor.model';\nimport { CartType, ServiceType, SubServiceType } from '../../../utilities/enum';\nimport { ServiceLineItem } from './embedded/service-line-item.model';\nimport { OrderSlotRange } from './shared/duration.model';\nimport { Cart } from './cart.model';\n\nexport class ServiceCart extends Cart {\n\t@prop({ type: String, enum: CartType, default: CartType.SERVICE })\n\tdeclare public cartType?: CartType;\n\n\t// vendor is required for service cart but optional for regular cart\n\t@prop({ ref: () => Vendor })\n\tpublic vendor?: Ref<Vendor>;\n\n\t// serviceType is required for service cart but optional for regular cart\n\t@prop({ type: String, enum: ServiceType })\n\tpublic serviceType?: ServiceType;\n\n\t@prop({ type: String, enum: SubServiceType })\n\tpublic subServiceType?: SubServiceType;\n\n\t// serviceLineItems is required for service cart but optional for regular cart\n\t@prop({ type: [ServiceLineItem] })\n\tpublic serviceLineItems?: ServiceLineItem[];\n\n\t@prop({ type: OrderSlotRange, _id: false })\n\tpublic slotRange?: OrderSlotRange;\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.4.161-alpha.
|
|
3
|
+
"version": "1.4.161-alpha.2",
|
|
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