@lyxa.ai/core 1.0.149 → 1.0.151
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/providers/regular-order.model.d.ts +1 -0
- package/dist/libraries/mongo/models/providers/regular-order.model.js +5 -0
- package/dist/libraries/mongo/models/providers/regular-order.model.js.map +1 -1
- package/dist/libraries/mongo/models/service-parent.model.d.ts +22 -0
- package/dist/libraries/mongo/models/service-parent.model.js +92 -0
- package/dist/libraries/mongo/models/service-parent.model.js.map +1 -0
- package/dist/types/README.md +1 -1
- package/dist/types/package.json +1 -1
- package/package.json +2 -3
|
@@ -44,6 +44,7 @@ class RegularOrder extends order_model_1.Order {
|
|
|
44
44
|
endorseLossInformation;
|
|
45
45
|
finance;
|
|
46
46
|
adjustedFinance;
|
|
47
|
+
earnedLoyaltyPoints;
|
|
47
48
|
lineItems;
|
|
48
49
|
}
|
|
49
50
|
exports.RegularOrder = RegularOrder;
|
|
@@ -123,6 +124,10 @@ __decorate([
|
|
|
123
124
|
(0, typegoose_1.prop)({ type: regular_order_finance_model_1.RegularOrderFinance }),
|
|
124
125
|
__metadata("design:type", regular_order_finance_model_1.RegularOrderFinance)
|
|
125
126
|
], RegularOrder.prototype, "adjustedFinance", void 0);
|
|
127
|
+
__decorate([
|
|
128
|
+
(0, typegoose_1.prop)({ type: Number, required: true }),
|
|
129
|
+
__metadata("design:type", Number)
|
|
130
|
+
], RegularOrder.prototype, "earnedLoyaltyPoints", void 0);
|
|
126
131
|
__decorate([
|
|
127
132
|
(0, typegoose_1.prop)({
|
|
128
133
|
ref: () => line_item_model_1.LineItem,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"regular-order.model.js","sourceRoot":"/","sources":["libraries/mongo/models/providers/regular-order.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAiD;AACjD,gDAAuC;AACvC,qDAAqF;AACrF,kDAAyC;AACzC,8CAAqC;AACr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E,GAAE,EAAE,CAAC,0BAAQ;QAClB,YAAY,EAAE,MAAM;QACpB,UAAU,EAAE,MAAM;KAClB,CAAC;;+CAC+B","sourcesContent":["import { prop, Ref } from '@typegoose/typegoose';\nimport { Order } from '../order.model';\nimport { ItemType, OrderType, RegularOrderStatus } from '../../../../utilities/enum';\nimport { Parent } from '../parent.model';\nimport { Shop } from '../shop.model';\nimport { Cart } from '../cart.model';\nimport { Address, UserAddress } from '../shared/address.model';\nimport { RegularOrderStatusTimeline } from '../embedded/status-timeline.model';\nimport { OrderRefund } from '../embedded/order-refund.model';\nimport { RegularOrderFinance } from '../embedded/regular-order-finance.model';\nimport { EndorseLoss } from '../embedded/order-cancel.model';\nimport { ReplacementOrder } from '../embedded/replacement-order.model';\nimport { LineItem } from '../line-item.model';\n\nexport class RegularOrder extends Order {\n\tpublic orderType = OrderType.REGULAR as const;\n\n\t@prop({ type: String, enum: RegularOrderStatus, default: RegularOrderStatus.PLACED })\n\tpublic status: string;\n\n\t@prop({ type: () => [RegularOrderStatusTimeline], default: [] })\n\tpublic statusTimeline: RegularOrderStatusTimeline[];\n\n\t@prop({ type: String, enum: ItemType, default: ItemType.FOOD })\n\tpublic itemType?: string;\n\n\t@prop({ required: true, type: Address })\n\tpublic pickupAddress: Address;\n\n\t@prop({ required: true, type: UserAddress })\n\tpublic deliveryAddress: UserAddress;\n\n\t@prop({ required: true, ref: () => Parent })\n\tpublic parent!: Ref<Parent>;\n\n\t@prop({ required: true, ref: () => Shop })\n\tpublic shop!: Ref<Shop>;\n\n\t@prop({ required: true, ref: () => Cart, unique: true })\n\tpublic cart!: Ref<Cart>;\n\n\t@prop({ type: Boolean, default: false })\n\tpublic isShopDelivery?: boolean;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic preparingTimeInMinutes?: number;\n\n\t@prop({ type: Boolean, default: false })\n\tpublic isReplacementOrder?: boolean;\n\n\t@prop({ ref: () => Order })\n\tpublic originalOrderForReplacement?: Ref<Order>;\n\n\t@prop({ type: () => ReplacementOrder })\n\tpublic replacementOrderInformation?: ReplacementOrder;\n\n\t@prop({ type: Boolean, default: false })\n\tpublic isRefunded?: boolean;\n\n\t@prop({ type: OrderRefund })\n\tpublic refundInformation?: OrderRefund;\n\n\t@prop({ type: Boolean, default: false })\n\tpublic isEndorseLossApplied?: boolean;\n\n\t@prop({ type: () => EndorseLoss })\n\tpublic endorseLossInformation?: EndorseLoss;\n\n\t@prop({ required: true, type: RegularOrderFinance })\n\tpublic finance: RegularOrderFinance;\n\n\t@prop({ type: RegularOrderFinance })\n\tpublic adjustedFinance?: RegularOrderFinance;\n\n\t@prop({ type: Number, required: true })\n\tpublic earnedLoyaltyPoints!: number\n\n\t @prop({\n\t\tref: ()=> LineItem,\n\t\tforeignField: 'cart',\n\t\tlocalField: 'cart'\n\t})\n\tpublic lineItems: Ref<LineItem>[]\n}\n"]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Ref } from '@typegoose/typegoose';
|
|
2
|
+
import { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';
|
|
3
|
+
import { ChargeType, Status } from '../../../utilities/enum';
|
|
4
|
+
import { Admin } from './admin.model';
|
|
5
|
+
import { Charge } from './embedded/charge.model';
|
|
6
|
+
import { ParentDocument } from './embedded/parent-document.model';
|
|
7
|
+
import { Address } from './shared/address.model';
|
|
8
|
+
import { Duration } from './shared/duration.model';
|
|
9
|
+
export declare class ServiceParent extends TimeStamps {
|
|
10
|
+
name: string;
|
|
11
|
+
email: string;
|
|
12
|
+
phoneNumber: string;
|
|
13
|
+
address: Address;
|
|
14
|
+
chargeType: ChargeType;
|
|
15
|
+
charge: Charge;
|
|
16
|
+
commissionDuration: Duration;
|
|
17
|
+
isServiceFeeCharged: boolean;
|
|
18
|
+
businessDevExecutive?: Ref<Admin>;
|
|
19
|
+
status?: Status;
|
|
20
|
+
profilePhoto?: string;
|
|
21
|
+
document?: ParentDocument;
|
|
22
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.ServiceParent = void 0;
|
|
13
|
+
const typegoose_1 = require("@typegoose/typegoose");
|
|
14
|
+
const defaultClasses_1 = require("@typegoose/typegoose/lib/defaultClasses");
|
|
15
|
+
const enum_1 = require("../../../utilities/enum");
|
|
16
|
+
const admin_model_1 = require("./admin.model");
|
|
17
|
+
const charge_model_1 = require("./embedded/charge.model");
|
|
18
|
+
const parent_document_model_1 = require("./embedded/parent-document.model");
|
|
19
|
+
const address_model_1 = require("./shared/address.model");
|
|
20
|
+
const duration_model_1 = require("./shared/duration.model");
|
|
21
|
+
let ServiceParent = class ServiceParent extends defaultClasses_1.TimeStamps {
|
|
22
|
+
name;
|
|
23
|
+
email;
|
|
24
|
+
phoneNumber;
|
|
25
|
+
address;
|
|
26
|
+
chargeType;
|
|
27
|
+
charge;
|
|
28
|
+
commissionDuration;
|
|
29
|
+
isServiceFeeCharged;
|
|
30
|
+
businessDevExecutive;
|
|
31
|
+
status;
|
|
32
|
+
profilePhoto;
|
|
33
|
+
document;
|
|
34
|
+
};
|
|
35
|
+
exports.ServiceParent = ServiceParent;
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, typegoose_1.prop)({ required: true, type: String, maxlength: 50 }),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], ServiceParent.prototype, "name", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, typegoose_1.prop)({ required: true, type: String }),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], ServiceParent.prototype, "email", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, typegoose_1.prop)({ required: true, type: String }),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], ServiceParent.prototype, "phoneNumber", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, typegoose_1.prop)({ required: true, type: address_model_1.Address }),
|
|
50
|
+
__metadata("design:type", address_model_1.Address)
|
|
51
|
+
], ServiceParent.prototype, "address", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typegoose_1.prop)({ required: true, type: String, enum: enum_1.ChargeType, default: enum_1.ChargeType.CUSTOM }),
|
|
54
|
+
__metadata("design:type", String)
|
|
55
|
+
], ServiceParent.prototype, "chargeType", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, typegoose_1.prop)({ required: true, type: charge_model_1.Charge }),
|
|
58
|
+
__metadata("design:type", charge_model_1.Charge)
|
|
59
|
+
], ServiceParent.prototype, "charge", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, typegoose_1.prop)({ required: true, type: duration_model_1.Duration }),
|
|
62
|
+
__metadata("design:type", duration_model_1.Duration)
|
|
63
|
+
], ServiceParent.prototype, "commissionDuration", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, typegoose_1.prop)({ required: true, type: Boolean, default: true }),
|
|
66
|
+
__metadata("design:type", Boolean)
|
|
67
|
+
], ServiceParent.prototype, "isServiceFeeCharged", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, typegoose_1.prop)({ ref: () => admin_model_1.Admin }),
|
|
70
|
+
__metadata("design:type", Object)
|
|
71
|
+
], ServiceParent.prototype, "businessDevExecutive", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, typegoose_1.prop)({ type: String, enum: enum_1.Status, default: enum_1.Status.ACTIVE }),
|
|
74
|
+
__metadata("design:type", String)
|
|
75
|
+
], ServiceParent.prototype, "status", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, typegoose_1.prop)({ type: String }),
|
|
78
|
+
__metadata("design:type", String)
|
|
79
|
+
], ServiceParent.prototype, "profilePhoto", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, typegoose_1.prop)({ type: parent_document_model_1.ParentDocument }),
|
|
82
|
+
__metadata("design:type", parent_document_model_1.ParentDocument)
|
|
83
|
+
], ServiceParent.prototype, "document", void 0);
|
|
84
|
+
exports.ServiceParent = ServiceParent = __decorate([
|
|
85
|
+
(0, typegoose_1.modelOptions)({
|
|
86
|
+
schemaOptions: { collection: 'serviceParents', toJSON: { virtuals: true }, toObject: { virtuals: true } },
|
|
87
|
+
options: {
|
|
88
|
+
allowMixed: typegoose_1.Severity.ALLOW,
|
|
89
|
+
},
|
|
90
|
+
})
|
|
91
|
+
], ServiceParent);
|
|
92
|
+
//# sourceMappingURL=service-parent.model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service-parent.model.js","sourceRoot":"/","sources":["libraries/mongo/models/service-parent.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAyE;AACzE,4EAAqE;AACrE,kDAA6D;AAC7D,+CAAsC;AACtC,0DAAiD;AACjD,4EAAkE;AAClE,0DAAiD;AACjD,4DAAmD;AAQ5C,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,2BAAU;IAErC,IAAI,CAAU;IAGd,KAAK,CAAU;IAGf,WAAW,CAAU;IAGrB,OAAO,CAAW;IAGlB,UAAU,CAAc;IAGxB,MAAM,CAAU;IAGhB,kBAAkB,CAAY;IAG9B,mBAAmB,CAAW;IAG9B,oBA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AAE,OAAO,EAAE,aAAM,CAAC,MAAM,EAAE,CAAC;;6CACtC;AAGhB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;mDACM;AAGtB;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,sCAAc,EAAE,CAAC;8BACb,sCAAc;+CAAC;wBAnCrB,aAAa;IANzB,IAAA,wBAAY,EAAC;QACb,aAAa,EAAE,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAE;QACzG,OAAO,EAAE;YACR,UAAU,EAAE,oBAAQ,CAAC,KAAK;SAC1B;KACD,CAAC;GACW,aAAa,CA6CzB","sourcesContent":["import { modelOptions, prop, Ref, Severity } from '@typegoose/typegoose';\nimport { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses';\nimport { ChargeType, 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';\n\n@modelOptions({\n\tschemaOptions: { collection: 'serviceParents', toJSON: { virtuals: true }, toObject: { virtuals: true } },\n\toptions: {\n\t\tallowMixed: Severity.ALLOW,\n\t},\n})\nexport class ServiceParent extends TimeStamps {\n\t@prop({ required: true, type: String, maxlength: 50 })\n\tpublic name!: string;\n\n\t@prop({ required: true, type: String })\n\tpublic email!: string;\n\n\t@prop({ required: true, type: String })\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: 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\t// public shopCount?: number;\n}\n"]}
|
package/dist/types/README.md
CHANGED
package/dist/types/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lyxa.ai/core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.151",
|
|
4
4
|
"description": "The Core system of the Lyxa services.",
|
|
5
5
|
"author": "elie <42282499+Internalizable@users.noreply.github.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -12,11 +12,10 @@
|
|
|
12
12
|
"scripts": {
|
|
13
13
|
"build": "node build.js",
|
|
14
14
|
"clean": "rimraf dist",
|
|
15
|
-
"prepare": "npm run build",
|
|
16
15
|
"start": "npx ts-node src/index.ts",
|
|
17
16
|
"publish:types": "cd dist/types && npm publish",
|
|
18
17
|
"publish:core": "npm publish --ignore-scripts",
|
|
19
|
-
"
|
|
18
|
+
"release": "npm run build && npm run publish:types && npm run publish:core"
|
|
20
19
|
},
|
|
21
20
|
"dependencies": {
|
|
22
21
|
"@google-cloud/secret-manager": "^5.6.0",
|