@lyxa.ai/core 1.3.143 → 1.3.144
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/embedded/order-refund.model.d.ts +5 -0
- package/dist/libraries/mongo/models/embedded/order-refund.model.js +18 -1
- package/dist/libraries/mongo/models/embedded/order-refund.model.js.map +1 -1
- package/dist/libraries/mongo/models/embedded/replacement-order.model.d.ts +4 -0
- package/dist/libraries/mongo/models/embedded/replacement-order.model.js +13 -1
- package/dist/libraries/mongo/models/embedded/replacement-order.model.js.map +1 -1
- package/dist/types/README.md +1 -1
- package/dist/types/package.json +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import { Ref } from '@typegoose/typegoose';
|
|
2
2
|
import { LineItem } from '../line-item.model';
|
|
3
|
+
import { LineItemAttribute } from './line-item-attribute.model';
|
|
4
|
+
import { Product } from '../product.model';
|
|
3
5
|
declare class SelectedLineItemsInfo {
|
|
4
6
|
lineItemId: Ref<LineItem>;
|
|
5
7
|
quantity?: number;
|
|
8
|
+
product?: Ref<Product>;
|
|
9
|
+
attributes?: LineItemAttribute[][];
|
|
10
|
+
isOnlyAttributeRefunded?: boolean;
|
|
6
11
|
}
|
|
7
12
|
export declare class OrderRefund {
|
|
8
13
|
isFullRefund?: boolean;
|
|
@@ -12,9 +12,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.OrderRefund = void 0;
|
|
13
13
|
const typegoose_1 = require("@typegoose/typegoose");
|
|
14
14
|
const line_item_model_1 = require("../line-item.model");
|
|
15
|
+
const line_item_attribute_model_1 = require("./line-item-attribute.model");
|
|
16
|
+
const product_model_1 = require("../product.model");
|
|
15
17
|
class SelectedLineItemsInfo {
|
|
16
18
|
lineItemId;
|
|
17
19
|
quantity;
|
|
20
|
+
product;
|
|
21
|
+
attributes;
|
|
22
|
+
isOnlyAttributeRefunded;
|
|
18
23
|
}
|
|
19
24
|
__decorate([
|
|
20
25
|
(0, typegoose_1.prop)({ required: true, ref: () => line_item_model_1.LineItem }),
|
|
@@ -24,6 +29,18 @@ __decorate([
|
|
|
24
29
|
(0, typegoose_1.prop)({ type: Number, default: 1 }),
|
|
25
30
|
__metadata("design:type", Number)
|
|
26
31
|
], SelectedLineItemsInfo.prototype, "quantity", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typegoose_1.prop)({ required: true, ref: () => product_model_1.Product }),
|
|
34
|
+
__metadata("design:type", Object)
|
|
35
|
+
], SelectedLineItemsInfo.prototype, "product", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, typegoose_1.prop)({ type: () => [[line_item_attribute_model_1.LineItemAttribute]], default: [] }),
|
|
38
|
+
__metadata("design:type", Array)
|
|
39
|
+
], SelectedLineItemsInfo.prototype, "attributes", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, typegoose_1.prop)({ type: Boolean }),
|
|
42
|
+
__metadata("design:type", Boolean)
|
|
43
|
+
], SelectedLineItemsInfo.prototype, "isOnlyAttributeRefunded", void 0);
|
|
27
44
|
class OrderRefund {
|
|
28
45
|
isFullRefund;
|
|
29
46
|
selectedLineItems;
|
|
@@ -44,7 +61,7 @@ __decorate([
|
|
|
44
61
|
__metadata("design:type", Boolean)
|
|
45
62
|
], OrderRefund.prototype, "isFullRefund", void 0);
|
|
46
63
|
__decorate([
|
|
47
|
-
(0, typegoose_1.prop)({ type: () => [SelectedLineItemsInfo], default: [] }),
|
|
64
|
+
(0, typegoose_1.prop)({ type: () => [SelectedLineItemsInfo], default: [], _id: false }),
|
|
48
65
|
__metadata("design:type", Array)
|
|
49
66
|
], OrderRefund.prototype, "selectedLineItems", void 0);
|
|
50
67
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"order-refund.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/order-refund.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAi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} from '../line-item.model';\nimport { LineItemAttribute } from './line-item-attribute.model';\nimport { Product } from '../product.model';\n\nclass SelectedLineItemsInfo {\n\t@prop({ required: true, ref: () => LineItem })\n\tpublic lineItemId!: Ref<LineItem>;\n\n\t@prop({ type: Number, default: 1 })\n\tpublic quantity?: number;\n\n\t@prop({ required: true, ref: () => Product })\n\tpublic product?: Ref<Product>;\n\n\t@prop({ type: () => [[LineItemAttribute]], default: [] })\n\tpublic attributes?: LineItemAttribute[][];\n\n\t@prop({ type: Boolean })\n\tpublic isOnlyAttributeRefunded?: boolean;\n}\n\nexport class OrderRefund {\n\t@prop({ type: Boolean, default: false })\n\tpublic isFullRefund?: boolean;\n\n\t@prop({ type: () => [SelectedLineItemsInfo], default: [], _id: false })\n\tpublic selectedLineItems?: SelectedLineItemsInfo[];\n\n\t@prop({ type: Number, default: 0 })\n\tpublic refundedAmountByShopForItems?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryRefundedAmountByShopForItems?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic refundedAmountByShopForDelivery?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryRefundedAmountByShopForDelivery?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic refundedAmountByCompanyForItems?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryRefundedAmountByCompanyForItems?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic refundedAmountByCompanyForDelivery?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryRefundedAmountByCompanyForDelivery?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic totalRefund?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryTotalRefund?: number;\n}\n"]}
|
|
@@ -2,9 +2,13 @@ import { Ref } from '@typegoose/typegoose';
|
|
|
2
2
|
import { ReplacementType } from '../../../../utilities/enum';
|
|
3
3
|
import { Order } from '../order.model';
|
|
4
4
|
import { LineItem } from '../line-item.model';
|
|
5
|
+
import { LineItemAttribute } from './line-item-attribute.model';
|
|
6
|
+
import { Product } from '../product.model';
|
|
5
7
|
declare class SelectedLineItemsInfo {
|
|
6
8
|
lineItemId: Ref<LineItem>;
|
|
7
9
|
quantity?: number;
|
|
10
|
+
product?: Ref<Product>;
|
|
11
|
+
attributes?: LineItemAttribute[][];
|
|
8
12
|
}
|
|
9
13
|
export declare class ReplacementOrder {
|
|
10
14
|
originalOrder: Ref<Order>;
|
|
@@ -14,9 +14,13 @@ const typegoose_1 = require("@typegoose/typegoose");
|
|
|
14
14
|
const enum_1 = require("../../../../utilities/enum");
|
|
15
15
|
const order_model_1 = require("../order.model");
|
|
16
16
|
const line_item_model_1 = require("../line-item.model");
|
|
17
|
+
const line_item_attribute_model_1 = require("./line-item-attribute.model");
|
|
18
|
+
const product_model_1 = require("../product.model");
|
|
17
19
|
class SelectedLineItemsInfo {
|
|
18
20
|
lineItemId;
|
|
19
21
|
quantity;
|
|
22
|
+
product;
|
|
23
|
+
attributes;
|
|
20
24
|
}
|
|
21
25
|
__decorate([
|
|
22
26
|
(0, typegoose_1.prop)({ required: true, ref: () => line_item_model_1.LineItem }),
|
|
@@ -26,6 +30,14 @@ __decorate([
|
|
|
26
30
|
(0, typegoose_1.prop)({ type: Number, default: 1 }),
|
|
27
31
|
__metadata("design:type", Number)
|
|
28
32
|
], SelectedLineItemsInfo.prototype, "quantity", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typegoose_1.prop)({ required: true, ref: () => product_model_1.Product }),
|
|
35
|
+
__metadata("design:type", Object)
|
|
36
|
+
], SelectedLineItemsInfo.prototype, "product", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typegoose_1.prop)({ type: () => [[line_item_attribute_model_1.LineItemAttribute]], default: [] }),
|
|
39
|
+
__metadata("design:type", Array)
|
|
40
|
+
], SelectedLineItemsInfo.prototype, "attributes", void 0);
|
|
29
41
|
class ReplacementOrder {
|
|
30
42
|
originalOrder;
|
|
31
43
|
selectedLineItems;
|
|
@@ -46,7 +58,7 @@ __decorate([
|
|
|
46
58
|
__metadata("design:type", Object)
|
|
47
59
|
], ReplacementOrder.prototype, "originalOrder", void 0);
|
|
48
60
|
__decorate([
|
|
49
|
-
(0, typegoose_1.prop)({ type: () => [SelectedLineItemsInfo], default: [] }),
|
|
61
|
+
(0, typegoose_1.prop)({ type: () => [SelectedLineItemsInfo], default: [], _id: false }),
|
|
50
62
|
__metadata("design:type", Array)
|
|
51
63
|
], ReplacementOrder.prototype, "selectedLineItems", void 0);
|
|
52
64
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"replacement-order.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/replacement-order.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAiD;AACjD,qDAA6D;AAC7D,gDAAuC;AACvC,wDAA8C;
|
|
1
|
+
{"version":3,"file":"replacement-order.model.js","sourceRoot":"/","sources":["libraries/mongo/models/embedded/replacement-order.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAiD;AACjD,qDAA6D;AAC7D,gDAAuC;AACvC,wDAA8C;AAC9C,2EAAgE;AAChE,oDAA2C;AAE3C,MAAM,qBAAqB;IAEnB,UAAU,CAAiB;IAG3B,QAAQ,CAAU;IAGlB,OAAO,CAAgB;IAGvB,UAAU,CAAyB;CAC1C;AAVO;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,0BAAQ,EAAE,CAAC;;yDACZ;AAG3B;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;uDACV;AAGlB;IADN,IAAA,gBAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,uBAAO,EAAE,CAAC;;sDACf;AAGvB;IADN,IAAA,gBAAI,EA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AAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;sEACU;AAGtC;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;+EACmB;AAG/C;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;yEACa;AAGzC;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;kFACsB;AAGlD;IADN,IAAA,gBAAI,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;mDACG","sourcesContent":["import { prop, Ref } from '@typegoose/typegoose';\nimport { ReplacementType } from '../../../../utilities/enum';\nimport { Order } from '../order.model';\nimport { LineItem } from '../line-item.model';\nimport { LineItemAttribute } from './line-item-attribute.model';\nimport { Product } from '../product.model';\n\nclass SelectedLineItemsInfo {\n\t@prop({ required: true, ref: () => LineItem })\n\tpublic lineItemId!: Ref<LineItem>;\n\n\t@prop({ type: Number, default: 1 })\n\tpublic quantity?: number;\n\n\t@prop({ required: true, ref: () => Product })\n\tpublic product?: Ref<Product>;\n\n\t@prop({ type: () => [[LineItemAttribute]], default: [] })\n\tpublic attributes?: LineItemAttribute[][];\n}\n\nexport class ReplacementOrder {\n\t@prop({ required: true, ref: () => Order })\n\tpublic originalOrder!: Ref<Order>;\n\n\t@prop({ type: () => [SelectedLineItemsInfo], default: [], _id: false })\n\tpublic selectedLineItems?: SelectedLineItemsInfo[];\n\n\t@prop({ required: true, type: String, enum: ReplacementType })\n\tpublic replacementType!: ReplacementType;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic replacementByShopForItems?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryReplacementByShopForItems?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic replacementByShopForDelivery?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryReplacementByShopForDelivery?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic replacementByCompanyForItems?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryReplacementByCompanyForItems?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic replacementByCompanyForDelivery?: number;\n\n\t@prop({ type: Number, default: 0 })\n\tpublic secondaryReplacementByCompanyForDelivery?: number;\n\n\t@prop({ type: String })\n\tpublic bringItem?: string;\n}\n"]}
|
package/dist/types/README.md
CHANGED
package/dist/types/package.json
CHANGED