@medusajs/order 0.1.3-snapshot-20240718073308 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.d.ts +8 -6
- package/dist/index.js +26 -4
- package/dist/index.js.map +1 -1
- package/dist/joiner-config.d.ts +5 -0
- package/dist/joiner-config.js +36 -0
- package/dist/joiner-config.js.map +1 -0
- package/dist/migrations/Migration20240219102530.d.ts +0 -1
- package/dist/migrations/Migration20240219102530.js +4 -38
- package/dist/migrations/Migration20240219102530.js.map +1 -1
- package/dist/models/address.d.ts +1 -2
- package/dist/models/adjustment-line.d.ts +1 -3
- package/dist/models/adjustment-line.js +0 -5
- package/dist/models/adjustment-line.js.map +1 -1
- package/dist/models/index.d.ts +0 -9
- package/dist/models/index.js +1 -17
- package/dist/models/index.js.map +1 -1
- package/dist/models/line-item-adjustment.d.ts +1 -3
- package/dist/models/line-item-adjustment.js +3 -3
- package/dist/models/line-item-adjustment.js.map +1 -1
- package/dist/models/line-item-tax-line.d.ts +1 -3
- package/dist/models/line-item-tax-line.js +3 -3
- package/dist/models/line-item-tax-line.js.map +1 -1
- package/dist/models/line-item.d.ts +1 -3
- package/dist/models/line-item.js +4 -18
- package/dist/models/line-item.js.map +1 -1
- package/dist/models/order-change-action.d.ts +4 -15
- package/dist/models/order-change-action.js +7 -102
- package/dist/models/order-change-action.js.map +1 -1
- package/dist/models/order-change.d.ts +5 -17
- package/dist/models/order-change.js +4 -109
- package/dist/models/order-change.js.map +1 -1
- package/dist/models/order-item.d.ts +4 -5
- package/dist/models/order-item.js +13 -13
- package/dist/models/order-item.js.map +1 -1
- package/dist/models/order-shipping-method.d.ts +4 -14
- package/dist/models/order-shipping-method.js +13 -89
- package/dist/models/order-shipping-method.js.map +1 -1
- package/dist/models/order-summary.d.ts +2 -6
- package/dist/models/order-summary.js +6 -9
- package/dist/models/order-summary.js.map +1 -1
- package/dist/models/order.d.ts +4 -6
- package/dist/models/order.js +1 -11
- package/dist/models/order.js.map +1 -1
- package/dist/models/shipping-method-adjustment.d.ts +1 -3
- package/dist/models/shipping-method-adjustment.js +3 -3
- package/dist/models/shipping-method-adjustment.js.map +1 -1
- package/dist/models/shipping-method-tax-line.d.ts +1 -3
- package/dist/models/shipping-method-tax-line.js +3 -3
- package/dist/models/shipping-method-tax-line.js.map +1 -1
- package/dist/models/shipping-method.d.ts +0 -2
- package/dist/models/shipping-method.js +4 -17
- package/dist/models/shipping-method.js.map +1 -1
- package/dist/models/tax-line.d.ts +0 -2
- package/dist/models/tax-line.js +0 -7
- package/dist/models/tax-line.js.map +1 -1
- package/dist/models/transaction.d.ts +3 -15
- package/dist/models/transaction.js +4 -109
- package/dist/models/transaction.js.map +1 -1
- package/dist/module-definition.d.ts +2 -0
- package/dist/module-definition.js +59 -0
- package/dist/module-definition.js.map +1 -0
- package/dist/repositories/index.d.ts +1 -4
- package/dist/repositories/index.js +16 -7
- package/dist/repositories/index.js.map +1 -1
- package/dist/repositories/order.d.ts +3 -1
- package/dist/repositories/order.js +85 -2
- package/dist/repositories/order.js.map +1 -1
- package/dist/scripts/bin/run-seed.d.ts +3 -0
- package/dist/scripts/bin/run-seed.js +49 -0
- package/dist/scripts/bin/run-seed.js.map +1 -0
- package/dist/services/index.d.ts +1 -1
- package/dist/services/index.js +3 -1
- package/dist/services/index.js.map +1 -1
- package/dist/services/order-change-service.d.ts +15 -0
- package/dist/services/order-change-service.js +96 -0
- package/dist/services/order-change-service.js.map +1 -0
- package/dist/services/order-module-service.d.ts +67 -138
- package/dist/services/order-module-service.js +240 -990
- package/dist/services/order-module-service.js.map +1 -1
- package/dist/services/order-service.d.ts +4 -5
- package/dist/services/order-service.js +1 -1
- package/dist/services/order-service.js.map +1 -1
- package/dist/types/address.d.ts +0 -1
- package/dist/types/index.d.ts +1 -3
- package/dist/types/index.js +0 -1
- package/dist/types/index.js.map +1 -1
- package/dist/types/line-item-adjustment.d.ts +0 -1
- package/dist/types/line-item-tax-line.d.ts +0 -1
- package/dist/types/line-item.d.ts +0 -1
- package/dist/types/order-detail.d.ts +1 -2
- package/dist/types/order.d.ts +2 -3
- package/dist/types/shipping-method-adjustment.d.ts +0 -1
- package/dist/types/shipping-method-tax-line.d.ts +0 -1
- package/dist/types/shipping-method.d.ts +0 -4
- package/dist/types/tax-line.d.ts +0 -1
- package/dist/types/transaction.d.ts +0 -1
- package/dist/types/utils/index.d.ts +11 -43
- package/dist/types/utils/index.js.map +1 -1
- package/dist/utils/action-key.d.ts +13 -0
- package/dist/utils/action-key.js +18 -0
- package/dist/utils/action-key.js.map +1 -0
- package/dist/utils/actions/cancel-return.d.ts +0 -1
- package/dist/utils/actions/cancel-return.js +6 -7
- package/dist/utils/actions/cancel-return.js.map +1 -1
- package/dist/utils/actions/cancel.d.ts +0 -1
- package/dist/utils/actions/cancel.js +2 -2
- package/dist/utils/actions/cancel.js.map +1 -1
- package/dist/utils/actions/fulfill-item.d.ts +0 -1
- package/dist/utils/actions/fulfill-item.js +6 -7
- package/dist/utils/actions/fulfill-item.js.map +1 -1
- package/dist/utils/actions/index.d.ts +0 -4
- package/dist/utils/actions/index.js +0 -3
- package/dist/utils/actions/index.js.map +1 -1
- package/dist/utils/actions/item-add.d.ts +0 -1
- package/dist/utils/actions/item-add.js +14 -17
- package/dist/utils/actions/item-add.js.map +1 -1
- package/dist/utils/actions/item-remove.d.ts +0 -1
- package/dist/utils/actions/item-remove.js +10 -11
- package/dist/utils/actions/item-remove.js.map +1 -1
- package/dist/utils/actions/receive-damaged-return-item.d.ts +0 -1
- package/dist/utils/actions/receive-damaged-return-item.js +7 -8
- package/dist/utils/actions/receive-damaged-return-item.js.map +1 -1
- package/dist/utils/actions/receive-return-item.d.ts +0 -1
- package/dist/utils/actions/receive-return-item.js +7 -8
- package/dist/utils/actions/receive-return-item.js.map +1 -1
- package/dist/utils/actions/return-item.d.ts +0 -1
- package/dist/utils/actions/return-item.js +8 -9
- package/dist/utils/actions/return-item.js.map +1 -1
- package/dist/utils/actions/ship-item.d.ts +0 -1
- package/dist/utils/actions/ship-item.js +6 -7
- package/dist/utils/actions/ship-item.js.map +1 -1
- package/dist/utils/actions/shipping-add.d.ts +0 -1
- package/dist/utils/actions/shipping-add.js +7 -16
- package/dist/utils/actions/shipping-add.js.map +1 -1
- package/dist/utils/actions/write-off-item.d.ts +0 -1
- package/dist/utils/actions/write-off-item.js +6 -7
- package/dist/utils/actions/write-off-item.js.map +1 -1
- package/dist/utils/calculate-order-change.d.ts +2 -11
- package/dist/utils/calculate-order-change.js +70 -68
- package/dist/utils/calculate-order-change.js.map +1 -1
- package/dist/utils/index.d.ts +1 -4
- package/dist/utils/index.js +1 -3
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/transform-order.d.ts +2 -4
- package/dist/utils/transform-order.js +17 -131
- package/dist/utils/transform-order.js.map +1 -1
- package/package.json +14 -8
- package/dist/index.d.ts.map +0 -1
- package/dist/migrations/Migration20240219102530.d.ts.map +0 -1
- package/dist/migrations/Migration20240604100512.d.ts +0 -5
- package/dist/migrations/Migration20240604100512.d.ts.map +0 -1
- package/dist/migrations/Migration20240604100512.js +0 -364
- package/dist/migrations/Migration20240604100512.js.map +0 -1
- package/dist/migrations/Migration20240715102100.d.ts +0 -5
- package/dist/migrations/Migration20240715102100.d.ts.map +0 -1
- package/dist/migrations/Migration20240715102100.js +0 -15
- package/dist/migrations/Migration20240715102100.js.map +0 -1
- package/dist/migrations/Migration20240715174100.d.ts +0 -5
- package/dist/migrations/Migration20240715174100.d.ts.map +0 -1
- package/dist/migrations/Migration20240715174100.js +0 -21
- package/dist/migrations/Migration20240715174100.js.map +0 -1
- package/dist/migrations/Migration20240716081800.d.ts +0 -5
- package/dist/migrations/Migration20240716081800.d.ts.map +0 -1
- package/dist/migrations/Migration20240716081800.js +0 -67
- package/dist/migrations/Migration20240716081800.js.map +0 -1
- package/dist/models/address.d.ts.map +0 -1
- package/dist/models/adjustment-line.d.ts.map +0 -1
- package/dist/models/claim-item-image.d.ts +0 -19
- package/dist/models/claim-item-image.d.ts.map +0 -1
- package/dist/models/claim-item-image.js +0 -109
- package/dist/models/claim-item-image.js.map +0 -1
- package/dist/models/claim-item.d.ts +0 -29
- package/dist/models/claim-item.d.ts.map +0 -1
- package/dist/models/claim-item.js +0 -156
- package/dist/models/claim-item.js.map +0 -1
- package/dist/models/claim.d.ts +0 -36
- package/dist/models/claim.d.ts.map +0 -1
- package/dist/models/claim.js +0 -195
- package/dist/models/claim.js.map +0 -1
- package/dist/models/exchange-item.d.ts +0 -24
- package/dist/models/exchange-item.d.ts.map +0 -1
- package/dist/models/exchange-item.js +0 -138
- package/dist/models/exchange-item.js.map +0 -1
- package/dist/models/exchange.d.ts +0 -34
- package/dist/models/exchange.d.ts.map +0 -1
- package/dist/models/exchange.js +0 -188
- package/dist/models/exchange.js.map +0 -1
- package/dist/models/index.d.ts.map +0 -1
- package/dist/models/line-item-adjustment.d.ts.map +0 -1
- package/dist/models/line-item-tax-line.d.ts.map +0 -1
- package/dist/models/line-item.d.ts.map +0 -1
- package/dist/models/order-change-action.d.ts.map +0 -1
- package/dist/models/order-change.d.ts.map +0 -1
- package/dist/models/order-item.d.ts.map +0 -1
- package/dist/models/order-shipping-method.d.ts.map +0 -1
- package/dist/models/order-summary.d.ts.map +0 -1
- package/dist/models/order.d.ts.map +0 -1
- package/dist/models/return-item.d.ts +0 -29
- package/dist/models/return-item.d.ts.map +0 -1
- package/dist/models/return-item.js +0 -170
- package/dist/models/return-item.js.map +0 -1
- package/dist/models/return-reason.d.ts +0 -21
- package/dist/models/return-reason.d.ts.map +0 -1
- package/dist/models/return-reason.js +0 -120
- package/dist/models/return-reason.js.map +0 -1
- package/dist/models/return.d.ts +0 -39
- package/dist/models/return.d.ts.map +0 -1
- package/dist/models/return.js +0 -216
- package/dist/models/return.js.map +0 -1
- package/dist/models/shipping-method-adjustment.d.ts.map +0 -1
- package/dist/models/shipping-method-tax-line.d.ts.map +0 -1
- package/dist/models/shipping-method.d.ts.map +0 -1
- package/dist/models/tax-line.d.ts.map +0 -1
- package/dist/models/transaction.d.ts.map +0 -1
- package/dist/repositories/claim.d.ts +0 -9
- package/dist/repositories/claim.d.ts.map +0 -1
- package/dist/repositories/claim.js +0 -11
- package/dist/repositories/claim.js.map +0 -1
- package/dist/repositories/exchange.d.ts +0 -9
- package/dist/repositories/exchange.d.ts.map +0 -1
- package/dist/repositories/exchange.js +0 -11
- package/dist/repositories/exchange.js.map +0 -1
- package/dist/repositories/index.d.ts.map +0 -1
- package/dist/repositories/order.d.ts.map +0 -1
- package/dist/repositories/return.d.ts +0 -9
- package/dist/repositories/return.d.ts.map +0 -1
- package/dist/repositories/return.js +0 -11
- package/dist/repositories/return.js.map +0 -1
- package/dist/services/actions/cancel-claim.d.ts +0 -3
- package/dist/services/actions/cancel-claim.d.ts.map +0 -1
- package/dist/services/actions/cancel-claim.js +0 -107
- package/dist/services/actions/cancel-claim.js.map +0 -1
- package/dist/services/actions/cancel-exchange.d.ts +0 -3
- package/dist/services/actions/cancel-exchange.d.ts.map +0 -1
- package/dist/services/actions/cancel-exchange.js +0 -92
- package/dist/services/actions/cancel-exchange.js.map +0 -1
- package/dist/services/actions/cancel-fulfillment.d.ts +0 -3
- package/dist/services/actions/cancel-fulfillment.d.ts.map +0 -1
- package/dist/services/actions/cancel-fulfillment.js +0 -32
- package/dist/services/actions/cancel-fulfillment.js.map +0 -1
- package/dist/services/actions/cancel-return.d.ts +0 -3
- package/dist/services/actions/cancel-return.d.ts.map +0 -1
- package/dist/services/actions/cancel-return.js +0 -72
- package/dist/services/actions/cancel-return.js.map +0 -1
- package/dist/services/actions/create-claim.d.ts +0 -3
- package/dist/services/actions/create-claim.d.ts.map +0 -1
- package/dist/services/actions/create-claim.js +0 -228
- package/dist/services/actions/create-claim.js.map +0 -1
- package/dist/services/actions/create-exchange.d.ts +0 -3
- package/dist/services/actions/create-exchange.d.ts.map +0 -1
- package/dist/services/actions/create-exchange.js +0 -193
- package/dist/services/actions/create-exchange.js.map +0 -1
- package/dist/services/actions/create-return.d.ts +0 -3
- package/dist/services/actions/create-return.d.ts.map +0 -1
- package/dist/services/actions/create-return.js +0 -102
- package/dist/services/actions/create-return.js.map +0 -1
- package/dist/services/actions/index.d.ts +0 -11
- package/dist/services/actions/index.d.ts.map +0 -1
- package/dist/services/actions/index.js +0 -27
- package/dist/services/actions/index.js.map +0 -1
- package/dist/services/actions/receive-return.d.ts +0 -3
- package/dist/services/actions/receive-return.d.ts.map +0 -1
- package/dist/services/actions/receive-return.js +0 -73
- package/dist/services/actions/receive-return.js.map +0 -1
- package/dist/services/actions/register-fulfillment.d.ts +0 -3
- package/dist/services/actions/register-fulfillment.d.ts.map +0 -1
- package/dist/services/actions/register-fulfillment.js +0 -30
- package/dist/services/actions/register-fulfillment.js.map +0 -1
- package/dist/services/actions/register-shipment.d.ts +0 -3
- package/dist/services/actions/register-shipment.d.ts.map +0 -1
- package/dist/services/actions/register-shipment.js +0 -38
- package/dist/services/actions/register-shipment.js.map +0 -1
- package/dist/services/index.d.ts.map +0 -1
- package/dist/services/order-module-service.d.ts.map +0 -1
- package/dist/services/order-service.d.ts.map +0 -1
- package/dist/types/address.d.ts.map +0 -1
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/line-item-adjustment.d.ts.map +0 -1
- package/dist/types/line-item-tax-line.d.ts.map +0 -1
- package/dist/types/line-item.d.ts.map +0 -1
- package/dist/types/order-change.d.ts +0 -6
- package/dist/types/order-change.d.ts.map +0 -1
- package/dist/types/order-change.js +0 -3
- package/dist/types/order-change.js.map +0 -1
- package/dist/types/order-detail.d.ts.map +0 -1
- package/dist/types/order.d.ts.map +0 -1
- package/dist/types/shipping-method-adjustment.d.ts.map +0 -1
- package/dist/types/shipping-method-tax-line.d.ts.map +0 -1
- package/dist/types/shipping-method.d.ts.map +0 -1
- package/dist/types/tax-line.d.ts.map +0 -1
- package/dist/types/transaction.d.ts.map +0 -1
- package/dist/types/utils/index.d.ts.map +0 -1
- package/dist/utils/actions/cancel-item-fulfillment.d.ts +0 -2
- package/dist/utils/actions/cancel-item-fulfillment.d.ts.map +0 -1
- package/dist/utils/actions/cancel-item-fulfillment.js +0 -39
- package/dist/utils/actions/cancel-item-fulfillment.js.map +0 -1
- package/dist/utils/actions/cancel-return.d.ts.map +0 -1
- package/dist/utils/actions/cancel.d.ts.map +0 -1
- package/dist/utils/actions/fulfill-item.d.ts.map +0 -1
- package/dist/utils/actions/index.d.ts.map +0 -1
- package/dist/utils/actions/item-add.d.ts.map +0 -1
- package/dist/utils/actions/item-remove.d.ts.map +0 -1
- package/dist/utils/actions/receive-damaged-return-item.d.ts.map +0 -1
- package/dist/utils/actions/receive-return-item.d.ts.map +0 -1
- package/dist/utils/actions/reinstate-item.d.ts +0 -2
- package/dist/utils/actions/reinstate-item.d.ts.map +0 -1
- package/dist/utils/actions/reinstate-item.js +0 -37
- package/dist/utils/actions/reinstate-item.js.map +0 -1
- package/dist/utils/actions/return-item.d.ts.map +0 -1
- package/dist/utils/actions/ship-item.d.ts.map +0 -1
- package/dist/utils/actions/shipping-add.d.ts.map +0 -1
- package/dist/utils/actions/shipping-remove.d.ts +0 -2
- package/dist/utils/actions/shipping-remove.d.ts.map +0 -1
- package/dist/utils/actions/shipping-remove.js +0 -41
- package/dist/utils/actions/shipping-remove.js.map +0 -1
- package/dist/utils/actions/write-off-item.d.ts.map +0 -1
- package/dist/utils/apply-order-changes.d.ts +0 -18
- package/dist/utils/apply-order-changes.d.ts.map +0 -1
- package/dist/utils/apply-order-changes.js +0 -95
- package/dist/utils/apply-order-changes.js.map +0 -1
- package/dist/utils/base-repository-find.d.ts +0 -3
- package/dist/utils/base-repository-find.d.ts.map +0 -1
- package/dist/utils/base-repository-find.js +0 -142
- package/dist/utils/base-repository-find.js.map +0 -1
- package/dist/utils/calculate-order-change.d.ts.map +0 -1
- package/dist/utils/index.d.ts.map +0 -1
- package/dist/utils/set-action-reference.d.ts +0 -3
- package/dist/utils/set-action-reference.d.ts.map +0 -1
- package/dist/utils/set-action-reference.js +0 -17
- package/dist/utils/set-action-reference.js.map +0 -1
- package/dist/utils/transform-order.d.ts.map +0 -1
@@ -1,109 +0,0 @@
|
|
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
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
12
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
13
|
-
};
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
15
|
-
const utils_1 = require("@medusajs/utils");
|
16
|
-
const core_1 = require("@mikro-orm/core");
|
17
|
-
const claim_item_1 = __importDefault(require("./claim-item"));
|
18
|
-
const ClaimItemImageDeletedAtIndex = (0, utils_1.createPsqlIndexStatementHelper)({
|
19
|
-
tableName: "order_claim_item_image",
|
20
|
-
columns: "deleted_at",
|
21
|
-
where: "deleted_at IS NOT NULL",
|
22
|
-
});
|
23
|
-
const ClaimItemIdIndex = (0, utils_1.createPsqlIndexStatementHelper)({
|
24
|
-
tableName: "order_claim_item_image",
|
25
|
-
columns: ["claim_item_id"],
|
26
|
-
where: "deleted_at IS NOT NULL",
|
27
|
-
});
|
28
|
-
let ClaimItemImage = class ClaimItemImage {
|
29
|
-
constructor() {
|
30
|
-
this.metadata = null;
|
31
|
-
this.deleted_at = null;
|
32
|
-
}
|
33
|
-
onCreate() {
|
34
|
-
this.id = (0, utils_1.generateEntityId)(this.id, "climg");
|
35
|
-
this.claim_item_id = this.item?.id;
|
36
|
-
}
|
37
|
-
onInit() {
|
38
|
-
this.id = (0, utils_1.generateEntityId)(this.id, "climg");
|
39
|
-
this.claim_item_id = this.item?.id;
|
40
|
-
}
|
41
|
-
};
|
42
|
-
__decorate([
|
43
|
-
(0, core_1.PrimaryKey)({ columnType: "text" }),
|
44
|
-
__metadata("design:type", String)
|
45
|
-
], ClaimItemImage.prototype, "id", void 0);
|
46
|
-
__decorate([
|
47
|
-
(0, core_1.ManyToOne)({
|
48
|
-
entity: () => claim_item_1.default,
|
49
|
-
mapToPk: true,
|
50
|
-
fieldName: "claim_item_id",
|
51
|
-
columnType: "text",
|
52
|
-
}),
|
53
|
-
ClaimItemIdIndex.MikroORMIndex(),
|
54
|
-
__metadata("design:type", String)
|
55
|
-
], ClaimItemImage.prototype, "claim_item_id", void 0);
|
56
|
-
__decorate([
|
57
|
-
(0, core_1.ManyToOne)(() => claim_item_1.default, {
|
58
|
-
persist: false,
|
59
|
-
}),
|
60
|
-
__metadata("design:type", Object)
|
61
|
-
], ClaimItemImage.prototype, "item", void 0);
|
62
|
-
__decorate([
|
63
|
-
(0, core_1.Property)({ columnType: "text" }),
|
64
|
-
__metadata("design:type", String)
|
65
|
-
], ClaimItemImage.prototype, "url", void 0);
|
66
|
-
__decorate([
|
67
|
-
(0, core_1.Property)({ columnType: "jsonb", nullable: true }),
|
68
|
-
__metadata("design:type", Object)
|
69
|
-
], ClaimItemImage.prototype, "metadata", void 0);
|
70
|
-
__decorate([
|
71
|
-
(0, core_1.Property)({
|
72
|
-
onCreate: () => new Date(),
|
73
|
-
columnType: "timestamptz",
|
74
|
-
defaultRaw: "now()",
|
75
|
-
}),
|
76
|
-
__metadata("design:type", Date)
|
77
|
-
], ClaimItemImage.prototype, "created_at", void 0);
|
78
|
-
__decorate([
|
79
|
-
(0, core_1.Property)({
|
80
|
-
onCreate: () => new Date(),
|
81
|
-
onUpdate: () => new Date(),
|
82
|
-
columnType: "timestamptz",
|
83
|
-
defaultRaw: "now()",
|
84
|
-
}),
|
85
|
-
__metadata("design:type", Date)
|
86
|
-
], ClaimItemImage.prototype, "updated_at", void 0);
|
87
|
-
__decorate([
|
88
|
-
(0, core_1.Property)({ columnType: "timestamptz", nullable: true }),
|
89
|
-
ClaimItemImageDeletedAtIndex.MikroORMIndex(),
|
90
|
-
__metadata("design:type", Object)
|
91
|
-
], ClaimItemImage.prototype, "deleted_at", void 0);
|
92
|
-
__decorate([
|
93
|
-
(0, core_1.BeforeCreate)(),
|
94
|
-
__metadata("design:type", Function),
|
95
|
-
__metadata("design:paramtypes", []),
|
96
|
-
__metadata("design:returntype", void 0)
|
97
|
-
], ClaimItemImage.prototype, "onCreate", null);
|
98
|
-
__decorate([
|
99
|
-
(0, core_1.OnInit)(),
|
100
|
-
__metadata("design:type", Function),
|
101
|
-
__metadata("design:paramtypes", []),
|
102
|
-
__metadata("design:returntype", void 0)
|
103
|
-
], ClaimItemImage.prototype, "onInit", null);
|
104
|
-
ClaimItemImage = __decorate([
|
105
|
-
(0, core_1.Entity)({ tableName: "order_claim_item_image" }),
|
106
|
-
(0, core_1.Filter)(utils_1.DALUtils.mikroOrmSoftDeletableFilterOptions)
|
107
|
-
], ClaimItemImage);
|
108
|
-
exports.default = ClaimItemImage;
|
109
|
-
//# sourceMappingURL=claim-item-image.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"claim-item-image.js","sourceRoot":"","sources":["../../src/models/claim-item-image.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AACA,2CAIwB;AACxB,0CAUwB;AACxB,8DAAoC;AAIpC,MAAM,4BAA4B,GAAG,IAAA,sCAA8B,EAAC;IAClE,SAAS,EAAE,wBAAwB;IACnC,OAAO,EAAE,YAAY;IACrB,KAAK,EAAE,wBAAwB;CAChC,CAAC,CAAA;AAEF,MAAM,gBAAgB,GAAG,IAAA,sCAA8B,EAAC;IACtD,SAAS,EAAE,wBAAwB;IACnC,OAAO,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a;QACzB,UAAU,EAAE,OAAO;KACpB,CAAC;8BACU,IAAI;kDAAA;AAQhB;IANC,IAAA,eAAQ,EAAC;QACR,QAAQ,EAAE,GAAG,EAAE,CAAC,IAAI,IAAI,EAAE;QAC1B,QAAQ,EAAE,GAAG,EAAE,CAAC,IAAI,IAAI,EAAE;QAC1B,UAAU,EAAE,aAAa;QACzB,UAAU,EAAE,OAAO;KACpB,CAAC;8BACU,IAAI;kDAAA;AAIhB;IAFC,IAAA,eAAQ,EAAC,EAAE,UAAU,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACvD,4BAA4B,CAAC,aAAa,EAAE;;kDACf;AAG9B;IADC,IAAA,mBAAY,GAAE;;;;8CAId;AAGD;IADC,IAAA,aAAM,GAAE;;;;4CAIR;AAvDkB,cAAc;IAFlC,IAAA,aAAM,EAAC,EAAE,SAAS,EAAE,wBAAwB,EAAE,CAAC;IAC/C,IAAA,aAAM,EAAC,gBAAQ,CAAC,kCAAkC,CAAC;GAC/B,cAAc,CAwDlC;kBAxDoB,cAAc"}
|
@@ -1,29 +0,0 @@
|
|
1
|
-
import { BigNumberRawValue, DAL } from "@medusajs/types";
|
2
|
-
import { ClaimReason } from "@medusajs/utils";
|
3
|
-
import { Collection, OptionalProps, Rel } from "@mikro-orm/core";
|
4
|
-
import Claim from "./claim";
|
5
|
-
import ClaimItemImage from "./claim-item-image";
|
6
|
-
import LineItem from "./line-item";
|
7
|
-
type OptionalLineItemProps = DAL.ModelDateColumns;
|
8
|
-
export default class OrderClaimItem {
|
9
|
-
[OptionalProps]?: OptionalLineItemProps;
|
10
|
-
id: string;
|
11
|
-
images: Collection<ClaimItemImage, object>;
|
12
|
-
reason: Rel<ClaimReason> | null;
|
13
|
-
quantity: Number | number;
|
14
|
-
raw_quantity: BigNumberRawValue;
|
15
|
-
claim_id: string;
|
16
|
-
claim: Rel<Claim>;
|
17
|
-
item_id: string;
|
18
|
-
item: Rel<LineItem>;
|
19
|
-
is_additional_item: boolean;
|
20
|
-
note: string;
|
21
|
-
metadata: Record<string, unknown> | null;
|
22
|
-
created_at: Date;
|
23
|
-
updated_at: Date;
|
24
|
-
deleted_at: Date | null;
|
25
|
-
onCreate(): void;
|
26
|
-
onInit(): void;
|
27
|
-
}
|
28
|
-
export {};
|
29
|
-
//# sourceMappingURL=claim-item.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"claim-item.d.ts","sourceRoot":"","sources":["../../src/models/claim-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAA;AACxD,OAAO,EACL,WAAW,EAIZ,MAAM,iBAAiB,CAAA;AACxB,OAAO,EAGL,UAAU,EAMV,aAAa,EAGb,GAAG,EACJ,MAAM,iBAAiB,CAAA;AACxB,OAAO,KAAK,MAAM,SAAS,CAAA;AAC3B,OAAO,cAAc,MAAM,oBAAoB,CAAA;AAC/C,OAAO,QAAQ,MAAM,aAAa,CAAA;AAElC,KAAK,qBAAqB,GAAG,GAAG,CAAC,gBAAgB,CAAA;AAqBjD,MAAM,CAAC,OAAO,OAAO,cAAc;IACjC,CAAC,aAAa,CAAC,CAAC,EAAE,qBAAqB,CAAA;IAGvC,EAAE,EAAE,MAAM,CAAA;IAKV,MAAM,qCAA4C;IAGlD,MAAM,EAAE,GAAG,CAAC,WAAW,CAAC,GAAG,IAAI,CAAO;IAGtC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAA;IAGzB,YAAY,EAAE,iBAAiB,CAAA;IAS/B,QAAQ,EAAE,MAAM,CAAA;IAKhB,KAAK,EAAE,GAAG,CAAC,KAAK,CAAC,CAAA;IASjB,OAAO,EAAE,MAAM,CAAA;IAKf,IAAI,EAAE,GAAG,CAAC,QAAQ,CAAC,CAAA;IAGnB,kBAAkB,EAAE,OAAO,CAAQ;IAGnC,IAAI,EAAE,MAAM,CAAA;IAGZ,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAO;IAO/C,UAAU,EAAE,IAAI,CAAA;IAQhB,UAAU,EAAE,IAAI,CAAA;IAIhB,UAAU,EAAE,IAAI,GAAG,IAAI,CAAO;IAG9B,QAAQ;IAMR,MAAM;CAIP"}
|
@@ -1,156 +0,0 @@
|
|
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
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
12
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
13
|
-
};
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
15
|
-
const utils_1 = require("@medusajs/utils");
|
16
|
-
const core_1 = require("@mikro-orm/core");
|
17
|
-
const claim_1 = __importDefault(require("./claim"));
|
18
|
-
const claim_item_image_1 = __importDefault(require("./claim-item-image"));
|
19
|
-
const line_item_1 = __importDefault(require("./line-item"));
|
20
|
-
const ClaimIdIndex = (0, utils_1.createPsqlIndexStatementHelper)({
|
21
|
-
tableName: "order_claim_item",
|
22
|
-
columns: "claim_id",
|
23
|
-
where: "deleted_at IS NOT NULL",
|
24
|
-
});
|
25
|
-
const ItemIdIndex = (0, utils_1.createPsqlIndexStatementHelper)({
|
26
|
-
tableName: "order_claim_item",
|
27
|
-
columns: "item_id",
|
28
|
-
where: "deleted_at IS NOT NULL",
|
29
|
-
});
|
30
|
-
const DeletedAtIndex = (0, utils_1.createPsqlIndexStatementHelper)({
|
31
|
-
tableName: "order_claim_item_image",
|
32
|
-
columns: "deleted_at",
|
33
|
-
where: "deleted_at IS NOT NULL",
|
34
|
-
});
|
35
|
-
let OrderClaimItem = class OrderClaimItem {
|
36
|
-
constructor() {
|
37
|
-
this.images = new core_1.Collection(this);
|
38
|
-
this.reason = null;
|
39
|
-
this.is_additional_item = false;
|
40
|
-
this.metadata = null;
|
41
|
-
this.deleted_at = null;
|
42
|
-
}
|
43
|
-
onCreate() {
|
44
|
-
this.id = (0, utils_1.generateEntityId)(this.id, "claitem");
|
45
|
-
this.claim_id = this.claim?.id;
|
46
|
-
}
|
47
|
-
onInit() {
|
48
|
-
this.id = (0, utils_1.generateEntityId)(this.id, "claitem");
|
49
|
-
this.claim_id = this.claim?.id;
|
50
|
-
}
|
51
|
-
};
|
52
|
-
__decorate([
|
53
|
-
(0, core_1.PrimaryKey)({ columnType: "text" }),
|
54
|
-
__metadata("design:type", String)
|
55
|
-
], OrderClaimItem.prototype, "id", void 0);
|
56
|
-
__decorate([
|
57
|
-
(0, core_1.OneToMany)(() => claim_item_image_1.default, (ci) => ci.item, {
|
58
|
-
cascade: [core_1.Cascade.PERSIST, core_1.Cascade.REMOVE],
|
59
|
-
}),
|
60
|
-
__metadata("design:type", Object)
|
61
|
-
], OrderClaimItem.prototype, "images", void 0);
|
62
|
-
__decorate([
|
63
|
-
(0, core_1.Enum)({ items: () => utils_1.ClaimReason, nullable: true }),
|
64
|
-
__metadata("design:type", Object)
|
65
|
-
], OrderClaimItem.prototype, "reason", void 0);
|
66
|
-
__decorate([
|
67
|
-
(0, utils_1.MikroOrmBigNumberProperty)(),
|
68
|
-
__metadata("design:type", Number)
|
69
|
-
], OrderClaimItem.prototype, "quantity", void 0);
|
70
|
-
__decorate([
|
71
|
-
(0, core_1.Property)({ columnType: "jsonb" }),
|
72
|
-
__metadata("design:type", Object)
|
73
|
-
], OrderClaimItem.prototype, "raw_quantity", void 0);
|
74
|
-
__decorate([
|
75
|
-
(0, core_1.ManyToOne)(() => claim_1.default, {
|
76
|
-
columnType: "text",
|
77
|
-
fieldName: "claim_id",
|
78
|
-
mapToPk: true,
|
79
|
-
onDelete: "cascade",
|
80
|
-
}),
|
81
|
-
ClaimIdIndex.MikroORMIndex(),
|
82
|
-
__metadata("design:type", String)
|
83
|
-
], OrderClaimItem.prototype, "claim_id", void 0);
|
84
|
-
__decorate([
|
85
|
-
(0, core_1.ManyToOne)(() => claim_1.default, {
|
86
|
-
persist: false,
|
87
|
-
}),
|
88
|
-
__metadata("design:type", Object)
|
89
|
-
], OrderClaimItem.prototype, "claim", void 0);
|
90
|
-
__decorate([
|
91
|
-
(0, core_1.ManyToOne)({
|
92
|
-
entity: () => line_item_1.default,
|
93
|
-
fieldName: "item_id",
|
94
|
-
mapToPk: true,
|
95
|
-
columnType: "text",
|
96
|
-
}),
|
97
|
-
ItemIdIndex.MikroORMIndex(),
|
98
|
-
__metadata("design:type", String)
|
99
|
-
], OrderClaimItem.prototype, "item_id", void 0);
|
100
|
-
__decorate([
|
101
|
-
(0, core_1.ManyToOne)(() => line_item_1.default, {
|
102
|
-
persist: false,
|
103
|
-
}),
|
104
|
-
__metadata("design:type", Object)
|
105
|
-
], OrderClaimItem.prototype, "item", void 0);
|
106
|
-
__decorate([
|
107
|
-
(0, core_1.Property)({ columnType: "boolean", default: false }),
|
108
|
-
__metadata("design:type", Boolean)
|
109
|
-
], OrderClaimItem.prototype, "is_additional_item", void 0);
|
110
|
-
__decorate([
|
111
|
-
(0, core_1.Property)({ columnType: "text", nullable: true }),
|
112
|
-
__metadata("design:type", String)
|
113
|
-
], OrderClaimItem.prototype, "note", void 0);
|
114
|
-
__decorate([
|
115
|
-
(0, core_1.Property)({ columnType: "jsonb", nullable: true }),
|
116
|
-
__metadata("design:type", Object)
|
117
|
-
], OrderClaimItem.prototype, "metadata", void 0);
|
118
|
-
__decorate([
|
119
|
-
(0, core_1.Property)({
|
120
|
-
onCreate: () => new Date(),
|
121
|
-
columnType: "timestamptz",
|
122
|
-
defaultRaw: "now()",
|
123
|
-
}),
|
124
|
-
__metadata("design:type", Date)
|
125
|
-
], OrderClaimItem.prototype, "created_at", void 0);
|
126
|
-
__decorate([
|
127
|
-
(0, core_1.Property)({
|
128
|
-
onCreate: () => new Date(),
|
129
|
-
onUpdate: () => new Date(),
|
130
|
-
columnType: "timestamptz",
|
131
|
-
defaultRaw: "now()",
|
132
|
-
}),
|
133
|
-
__metadata("design:type", Date)
|
134
|
-
], OrderClaimItem.prototype, "updated_at", void 0);
|
135
|
-
__decorate([
|
136
|
-
(0, core_1.Property)({ columnType: "timestamptz", nullable: true }),
|
137
|
-
DeletedAtIndex.MikroORMIndex(),
|
138
|
-
__metadata("design:type", Object)
|
139
|
-
], OrderClaimItem.prototype, "deleted_at", void 0);
|
140
|
-
__decorate([
|
141
|
-
(0, core_1.BeforeCreate)(),
|
142
|
-
__metadata("design:type", Function),
|
143
|
-
__metadata("design:paramtypes", []),
|
144
|
-
__metadata("design:returntype", void 0)
|
145
|
-
], OrderClaimItem.prototype, "onCreate", null);
|
146
|
-
__decorate([
|
147
|
-
(0, core_1.OnInit)(),
|
148
|
-
__metadata("design:type", Function),
|
149
|
-
__metadata("design:paramtypes", []),
|
150
|
-
__metadata("design:returntype", void 0)
|
151
|
-
], OrderClaimItem.prototype, "onInit", null);
|
152
|
-
OrderClaimItem = __decorate([
|
153
|
-
(0, core_1.Entity)({ tableName: "order_claim_item" })
|
154
|
-
], OrderClaimItem);
|
155
|
-
exports.default = OrderClaimItem;
|
156
|
-
//# sourceMappingURL=claim-item.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"claim-item.js","sourceRoot":"","sources":["../../src/models/claim-item.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AACA,2CAKwB;AACxB,0CAawB;AACxB,oDAA2B;AAC3B,0E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OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDACH;AAO/C;IALC,IAAA,eAAQ,EAAC;QACR,QAAQ,EAAE,GAAG,EAAE,CAAC,IAAI,IAAI,EAAE;QAC1B,UAAU,EAAE,aAAa;QACzB,UAAU,EAAE,OAAO;KACpB,CAAC;8BACU,IAAI;kDAAA;AAQhB;IANC,IAAA,eAAQ,EAAC;QACR,QAAQ,EAAE,GAAG,EAAE,CAAC,IAAI,IAAI,EAAE;QAC1B,QAAQ,EAAE,GAAG,EAAE,CAAC,IAAI,IAAI,EAAE;QAC1B,UAAU,EAAE,aAAa;QACzB,UAAU,EAAE,OAAO;KACpB,CAAC;8BACU,IAAI;kDAAA;AAIhB;IAFC,IAAA,eAAQ,EAAC,EAAE,UAAU,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACvD,cAAc,CAAC,aAAa,EAAE;;kDACD;AAG9B;IADC,IAAA,mBAAY,GAAE;;;;8CAId;AAGD;IADC,IAAA,aAAM,GAAE;;;;4CAIR;AAtFkB,cAAc;IADlC,IAAA,aAAM,EAAC,EAAE,SAAS,EAAE,kBAAkB,EAAE,CAAC;GACrB,cAAc,CAuFlC;kBAvFoB,cAAc"}
|
package/dist/models/claim.d.ts
DELETED
@@ -1,36 +0,0 @@
|
|
1
|
-
import { BigNumberRawValue, DAL } from "@medusajs/types";
|
2
|
-
import { BigNumber, ClaimType } from "@medusajs/utils";
|
3
|
-
import { Collection, OptionalProps, Rel } from "@mikro-orm/core";
|
4
|
-
import ClaimItem from "./claim-item";
|
5
|
-
import Order from "./order";
|
6
|
-
import OrderShippingMethod from "./order-shipping-method";
|
7
|
-
import Return from "./return";
|
8
|
-
import Transaction from "./transaction";
|
9
|
-
type OptionalOrderClaimProps = DAL.ModelDateColumns;
|
10
|
-
export default class OrderClaim {
|
11
|
-
[OptionalProps]?: OptionalOrderClaimProps;
|
12
|
-
id: string;
|
13
|
-
order_id: string;
|
14
|
-
order: Rel<Order>;
|
15
|
-
return: Rel<Return>;
|
16
|
-
return_id: string | null;
|
17
|
-
order_version: number;
|
18
|
-
display_id: number;
|
19
|
-
type: Rel<ClaimType>;
|
20
|
-
no_notification: boolean | null;
|
21
|
-
refund_amount: BigNumber | number;
|
22
|
-
raw_refund_amount: BigNumberRawValue;
|
23
|
-
additional_items: Collection<ClaimItem, object>;
|
24
|
-
claim_items: Collection<ClaimItem, object>;
|
25
|
-
shipping_methods: Collection<OrderShippingMethod, object>;
|
26
|
-
transactions: Collection<Transaction, object>;
|
27
|
-
metadata: Record<string, unknown> | null;
|
28
|
-
created_at: Date;
|
29
|
-
updated_at: Date;
|
30
|
-
deleted_at: Date | null;
|
31
|
-
canceled_at: Date | null;
|
32
|
-
onCreate(): void;
|
33
|
-
onInit(): void;
|
34
|
-
}
|
35
|
-
export {};
|
36
|
-
//# sourceMappingURL=claim.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"claim.d.ts","sourceRoot":"","sources":["../../src/models/claim.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAA;AACxD,OAAO,EACL,SAAS,EACT,SAAS,EAIV,MAAM,iBAAiB,CAAA;AACxB,OAAO,EAGL,UAAU,EAOV,aAAa,EAGb,GAAG,EACJ,MAAM,iBAAiB,CAAA;AACxB,OAAO,SAAS,MAAM,cAAc,CAAA;AACpC,OAAO,KAAK,MAAM,SAAS,CAAA;AAC3B,OAAO,mBAAmB,MAAM,yBAAyB,CAAA;AACzD,OAAO,MAAM,MAAM,UAAU,CAAA;AAC7B,OAAO,WAAW,MAAM,eAAe,CAAA;AAEvC,KAAK,uBAAuB,GAAG,GAAG,CAAC,gBAAgB,CAAA;AA2BnD,MAAM,CAAC,OAAO,OAAO,UAAU;IAC7B,CAAC,aAAa,CAAC,CAAC,EAAE,uBAAuB,CAAA;IAGzC,EAAE,EAAE,MAAM,CAAA;IASV,QAAQ,EAAE,MAAM,CAAA;IAKhB,KAAK,EAAE,GAAG,CAAC,KAAK,CAAC,CAAA;IASjB,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAInB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAO;IAK/B,aAAa,EAAE,MAAM,CAAA;IAIrB,UAAU,EAAE,MAAM,CAAA;IAGlB,IAAI,EAAE,GAAG,CAAC,SAAS,CAAC,CAAA;IAGpB,eAAe,EAAE,OAAO,GAAG,IAAI,CAAO;IAKtC,aAAa,EAAE,SAAS,GAAG,MAAM,CAAA;IAGjC,iBAAiB,EAAE,iBAAiB,CAAA;IAKpC,gBAAgB,gCAAuC;IAKvD,WAAW,gCAAuC;IASlD,gBAAgB,0CAAiD;IAKjE,YAAY,kCAAoC;IAGhD,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAO;IAO/C,UAAU,EAAE,IAAI,CAAA;IAQhB,UAAU,EAAE,IAAI,CAAA;IAIhB,UAAU,EAAE,IAAI,GAAG,IAAI,CAAO;IAG9B,WAAW,EAAE,IAAI,GAAG,IAAI,CAAO;IAG/B,QAAQ;IAKR,MAAM;CAGP"}
|
package/dist/models/claim.js
DELETED
@@ -1,195 +0,0 @@
|
|
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
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
12
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
13
|
-
};
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
15
|
-
const utils_1 = require("@medusajs/utils");
|
16
|
-
const core_1 = require("@mikro-orm/core");
|
17
|
-
const claim_item_1 = __importDefault(require("./claim-item"));
|
18
|
-
const order_1 = __importDefault(require("./order"));
|
19
|
-
const order_shipping_method_1 = __importDefault(require("./order-shipping-method"));
|
20
|
-
const return_1 = __importDefault(require("./return"));
|
21
|
-
const transaction_1 = __importDefault(require("./transaction"));
|
22
|
-
const DisplayIdIndex = (0, utils_1.createPsqlIndexStatementHelper)({
|
23
|
-
tableName: "order_claim",
|
24
|
-
columns: "display_id",
|
25
|
-
where: "deleted_at IS NOT NULL",
|
26
|
-
});
|
27
|
-
const OrderClaimDeletedAtIndex = (0, utils_1.createPsqlIndexStatementHelper)({
|
28
|
-
tableName: "order_claim",
|
29
|
-
columns: "deleted_at",
|
30
|
-
where: "deleted_at IS NOT NULL",
|
31
|
-
});
|
32
|
-
const OrderIdIndex = (0, utils_1.createPsqlIndexStatementHelper)({
|
33
|
-
tableName: "order_claim",
|
34
|
-
columns: ["order_id"],
|
35
|
-
where: "deleted_at IS NOT NULL",
|
36
|
-
});
|
37
|
-
const ReturnIdIndex = (0, utils_1.createPsqlIndexStatementHelper)({
|
38
|
-
tableName: "order_claim",
|
39
|
-
columns: "return_id",
|
40
|
-
where: "return_id IS NOT NULL AND deleted_at IS NOT NULL",
|
41
|
-
});
|
42
|
-
let OrderClaim = class OrderClaim {
|
43
|
-
constructor() {
|
44
|
-
this.return_id = null;
|
45
|
-
this.no_notification = null;
|
46
|
-
this.additional_items = new core_1.Collection(this);
|
47
|
-
this.claim_items = new core_1.Collection(this);
|
48
|
-
this.shipping_methods = new core_1.Collection(this);
|
49
|
-
this.transactions = new core_1.Collection(this);
|
50
|
-
this.metadata = null;
|
51
|
-
this.deleted_at = null;
|
52
|
-
this.canceled_at = null;
|
53
|
-
}
|
54
|
-
onCreate() {
|
55
|
-
this.id = (0, utils_1.generateEntityId)(this.id, "claim");
|
56
|
-
}
|
57
|
-
onInit() {
|
58
|
-
this.id = (0, utils_1.generateEntityId)(this.id, "claim");
|
59
|
-
}
|
60
|
-
};
|
61
|
-
__decorate([
|
62
|
-
(0, core_1.PrimaryKey)({ columnType: "text" }),
|
63
|
-
__metadata("design:type", String)
|
64
|
-
], OrderClaim.prototype, "id", void 0);
|
65
|
-
__decorate([
|
66
|
-
(0, core_1.ManyToOne)({
|
67
|
-
entity: () => order_1.default,
|
68
|
-
mapToPk: true,
|
69
|
-
fieldName: "order_id",
|
70
|
-
columnType: "text",
|
71
|
-
}),
|
72
|
-
OrderIdIndex.MikroORMIndex(),
|
73
|
-
__metadata("design:type", String)
|
74
|
-
], OrderClaim.prototype, "order_id", void 0);
|
75
|
-
__decorate([
|
76
|
-
(0, core_1.ManyToOne)(() => order_1.default, {
|
77
|
-
persist: false,
|
78
|
-
}),
|
79
|
-
__metadata("design:type", Object)
|
80
|
-
], OrderClaim.prototype, "order", void 0);
|
81
|
-
__decorate([
|
82
|
-
(0, core_1.OneToOne)({
|
83
|
-
entity: () => return_1.default,
|
84
|
-
mappedBy: (ret) => ret.claim,
|
85
|
-
fieldName: "return_id",
|
86
|
-
nullable: true,
|
87
|
-
owner: true,
|
88
|
-
}),
|
89
|
-
__metadata("design:type", Object)
|
90
|
-
], OrderClaim.prototype, "return", void 0);
|
91
|
-
__decorate([
|
92
|
-
(0, core_1.Property)({ columnType: "text", nullable: true }),
|
93
|
-
ReturnIdIndex.MikroORMIndex(),
|
94
|
-
__metadata("design:type", Object)
|
95
|
-
], OrderClaim.prototype, "return_id", void 0);
|
96
|
-
__decorate([
|
97
|
-
(0, core_1.Property)({
|
98
|
-
columnType: "integer",
|
99
|
-
}),
|
100
|
-
__metadata("design:type", Number)
|
101
|
-
], OrderClaim.prototype, "order_version", void 0);
|
102
|
-
__decorate([
|
103
|
-
(0, core_1.Property)({ autoincrement: true, primary: false }),
|
104
|
-
DisplayIdIndex.MikroORMIndex(),
|
105
|
-
__metadata("design:type", Number)
|
106
|
-
], OrderClaim.prototype, "display_id", void 0);
|
107
|
-
__decorate([
|
108
|
-
(0, core_1.Enum)({ items: () => utils_1.ClaimType }),
|
109
|
-
__metadata("design:type", Object)
|
110
|
-
], OrderClaim.prototype, "type", void 0);
|
111
|
-
__decorate([
|
112
|
-
(0, core_1.Property)({ columnType: "boolean", nullable: true }),
|
113
|
-
__metadata("design:type", Object)
|
114
|
-
], OrderClaim.prototype, "no_notification", void 0);
|
115
|
-
__decorate([
|
116
|
-
(0, utils_1.MikroOrmBigNumberProperty)({
|
117
|
-
nullable: true,
|
118
|
-
}),
|
119
|
-
__metadata("design:type", Object)
|
120
|
-
], OrderClaim.prototype, "refund_amount", void 0);
|
121
|
-
__decorate([
|
122
|
-
(0, core_1.Property)({ columnType: "jsonb", nullable: true }),
|
123
|
-
__metadata("design:type", Object)
|
124
|
-
], OrderClaim.prototype, "raw_refund_amount", void 0);
|
125
|
-
__decorate([
|
126
|
-
(0, core_1.OneToMany)(() => claim_item_1.default, (item) => item.claim, {
|
127
|
-
cascade: [core_1.Cascade.PERSIST],
|
128
|
-
}),
|
129
|
-
__metadata("design:type", Object)
|
130
|
-
], OrderClaim.prototype, "additional_items", void 0);
|
131
|
-
__decorate([
|
132
|
-
(0, core_1.OneToMany)(() => claim_item_1.default, (item) => item.claim, {
|
133
|
-
cascade: [core_1.Cascade.PERSIST],
|
134
|
-
}),
|
135
|
-
__metadata("design:type", Object)
|
136
|
-
], OrderClaim.prototype, "claim_items", void 0);
|
137
|
-
__decorate([
|
138
|
-
(0, core_1.OneToMany)(() => order_shipping_method_1.default, (shippingMethod) => shippingMethod.claim, {
|
139
|
-
cascade: [core_1.Cascade.PERSIST],
|
140
|
-
}),
|
141
|
-
__metadata("design:type", Object)
|
142
|
-
], OrderClaim.prototype, "shipping_methods", void 0);
|
143
|
-
__decorate([
|
144
|
-
(0, core_1.OneToMany)(() => transaction_1.default, (transaction) => transaction.claim, {
|
145
|
-
cascade: [core_1.Cascade.PERSIST],
|
146
|
-
}),
|
147
|
-
__metadata("design:type", Object)
|
148
|
-
], OrderClaim.prototype, "transactions", void 0);
|
149
|
-
__decorate([
|
150
|
-
(0, core_1.Property)({ columnType: "jsonb", nullable: true }),
|
151
|
-
__metadata("design:type", Object)
|
152
|
-
], OrderClaim.prototype, "metadata", void 0);
|
153
|
-
__decorate([
|
154
|
-
(0, core_1.Property)({
|
155
|
-
onCreate: () => new Date(),
|
156
|
-
columnType: "timestamptz",
|
157
|
-
defaultRaw: "now()",
|
158
|
-
}),
|
159
|
-
__metadata("design:type", Date)
|
160
|
-
], OrderClaim.prototype, "created_at", void 0);
|
161
|
-
__decorate([
|
162
|
-
(0, core_1.Property)({
|
163
|
-
onCreate: () => new Date(),
|
164
|
-
onUpdate: () => new Date(),
|
165
|
-
columnType: "timestamptz",
|
166
|
-
defaultRaw: "now()",
|
167
|
-
}),
|
168
|
-
__metadata("design:type", Date)
|
169
|
-
], OrderClaim.prototype, "updated_at", void 0);
|
170
|
-
__decorate([
|
171
|
-
(0, core_1.Property)({ columnType: "timestamptz", nullable: true }),
|
172
|
-
OrderClaimDeletedAtIndex.MikroORMIndex(),
|
173
|
-
__metadata("design:type", Object)
|
174
|
-
], OrderClaim.prototype, "deleted_at", void 0);
|
175
|
-
__decorate([
|
176
|
-
(0, core_1.Property)({ columnType: "timestamptz", nullable: true }),
|
177
|
-
__metadata("design:type", Object)
|
178
|
-
], OrderClaim.prototype, "canceled_at", void 0);
|
179
|
-
__decorate([
|
180
|
-
(0, core_1.BeforeCreate)(),
|
181
|
-
__metadata("design:type", Function),
|
182
|
-
__metadata("design:paramtypes", []),
|
183
|
-
__metadata("design:returntype", void 0)
|
184
|
-
], OrderClaim.prototype, "onCreate", null);
|
185
|
-
__decorate([
|
186
|
-
(0, core_1.OnInit)(),
|
187
|
-
__metadata("design:type", Function),
|
188
|
-
__metadata("design:paramtypes", []),
|
189
|
-
__metadata("design:returntype", void 0)
|
190
|
-
], OrderClaim.prototype, "onInit", null);
|
191
|
-
OrderClaim = __decorate([
|
192
|
-
(0, core_1.Entity)({ tableName: "order_claim" })
|
193
|
-
], OrderClaim);
|
194
|
-
exports.default = OrderClaim;
|
195
|
-
//# sourceMappingURL=claim.js.map
|
package/dist/models/claim.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"claim.js","sourceRoot":"","sources":["../../src/models/claim.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AACA,2CAMwB;AACxB,0CAcwB;AACxB,8DAAoC;AACpC,oDAA2B;AAC3B,oFAAyD;AACzD,sDAA6B;AAC7B,gEAAuC;AAIvC,MAAM,cAAc,GAAG,IAAA,sCAA8B,EAAC;IACpD,SAAS,EAAE,aAAa;IACxB,OAAO,EAAE,YAAY;IACrB,KAAK,EAAE,wBAAwB;CAChC,CAAC,CAAA;AAEF,MAAM,wBAAwB,GAAG,IAAA,sCAA8B,EAAC;IAC9D,SAAS,EAAE,aAAa;IACxB,OAAO,EAAE,YAAY;IACrB,KAAK,EAAE,wBAAwB;CAChC,CAAC,CAAA;AAEF,MAAM,YAAY,GAAG,IAAA,sCAA8B,EAAC;IAClD,SAAS,EAAE,aAAa;IACxB,OAAO,EAAE,CAAC,UAAU,CAAC;IACrB,KAAK,EAAE,wBAAwB;CAChC,CAAC,CAAA;AAEF,MAAM,aAAa,GAAG,IAAA,sCAA8B,EAAC;IACnD,SAAS,EAAE,aAAa;IACxB,OAAO,EAAE,WAAW;IACpB,KAAK,EAAE,kDAAkD;CAC1D,CAAC,CAAA;AAGa,IAAM,UAAU,GAAhB,MAAM,UAAU;IAAhB;QA+Bb,cAAS,GAAkB,IAAI,CAAA;QAe/B,oBAAe,GAAmB,IAAI,CAAA;QAatC,qBAAgB,GAAG,IAAI,iBAAU,CAAiB,IA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AE,CAAC,qBAAW,EAAE,CAAC,WAAW,EAAE,EAAE,CAAC,WAAW,CAAC,KAAK,EAAE;QAChE,OAAO,EAAE,CAAC,cAAO,CAAC,OAAO,CAAC;KAC3B,CAAC;;gDAC8C;AAGhD;IADC,IAAA,eAAQ,EAAC,EAAE,UAAU,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CACH;AAO/C;IALC,IAAA,eAAQ,EAAC;QACR,QAAQ,EAAE,GAAG,EAAE,CAAC,IAAI,IAAI,EAAE;QAC1B,UAAU,EAAE,aAAa;QACzB,UAAU,EAAE,OAAO;KACpB,CAAC;8BACU,IAAI;8CAAA;AAQhB;IANC,IAAA,eAAQ,EAAC;QACR,QAAQ,EAAE,GAAG,EAAE,CAAC,IAAI,IAAI,EAAE;QAC1B,QAAQ,EAAE,GAAG,EAAE,CAAC,IAAI,IAAI,EAAE;QAC1B,UAAU,EAAE,aAAa;QACzB,UAAU,EAAE,OAAO;KACpB,CAAC;8BACU,IAAI;8CAAA;AAIhB;IAFC,IAAA,eAAQ,EAAC,EAAE,UAAU,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACvD,wBAAwB,CAAC,aAAa,EAAE;;8CACX;AAG9B;IADC,IAAA,eAAQ,EAAC,EAAE,UAAU,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACzB;AAG/B;IADC,IAAA,mBAAY,GAAE;;;;0CAGd;AAGD;IADC,IAAA,aAAM,GAAE;;;;wCAGR;AAjHkB,UAAU;IAD9B,IAAA,aAAM,EAAC,EAAE,SAAS,EAAE,aAAa,EAAE,CAAC;GAChB,UAAU,CAkH9B;kBAlHoB,UAAU"}
|
@@ -1,24 +0,0 @@
|
|
1
|
-
import { BigNumberRawValue, DAL } from "@medusajs/types";
|
2
|
-
import { OptionalProps } from "@mikro-orm/core";
|
3
|
-
import Exchange from "./exchange";
|
4
|
-
import LineItem from "./line-item";
|
5
|
-
type OptionalLineItemProps = DAL.ModelDateColumns;
|
6
|
-
export default class OrderExchangeItem {
|
7
|
-
[OptionalProps]?: OptionalLineItemProps;
|
8
|
-
id: string;
|
9
|
-
quantity: Number | number;
|
10
|
-
raw_quantity: BigNumberRawValue;
|
11
|
-
exchange_id: string;
|
12
|
-
exchange: Exchange;
|
13
|
-
item_id: string;
|
14
|
-
item: LineItem;
|
15
|
-
note: string;
|
16
|
-
metadata: Record<string, unknown> | null;
|
17
|
-
created_at: Date;
|
18
|
-
updated_at: Date;
|
19
|
-
deleted_at: Date | null;
|
20
|
-
onCreate(): void;
|
21
|
-
onInit(): void;
|
22
|
-
}
|
23
|
-
export {};
|
24
|
-
//# sourceMappingURL=exchange-item.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"exchange-item.d.ts","sourceRoot":"","sources":["../../src/models/exchange-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAA;AAMxD,OAAO,EAKL,aAAa,EAGd,MAAM,iBAAiB,CAAA;AACxB,OAAO,QAAQ,MAAM,YAAY,CAAA;AACjC,OAAO,QAAQ,MAAM,aAAa,CAAA;AAElC,KAAK,qBAAqB,GAAG,GAAG,CAAC,gBAAgB,CAAA;AAqBjD,MAAM,CAAC,OAAO,OAAO,iBAAiB;IACpC,CAAC,aAAa,CAAC,CAAC,EAAE,qBAAqB,CAAA;IAGvC,EAAE,EAAE,MAAM,CAAA;IAGV,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAA;IAGzB,YAAY,EAAE,iBAAiB,CAAA;IAS/B,WAAW,EAAE,MAAM,CAAA;IAKnB,QAAQ,EAAE,QAAQ,CAAA;IASlB,OAAO,EAAE,MAAM,CAAA;IAKf,IAAI,EAAE,QAAQ,CAAA;IAGd,IAAI,EAAE,MAAM,CAAA;IAGZ,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAO;IAO/C,UAAU,EAAE,IAAI,CAAA;IAQhB,UAAU,EAAE,IAAI,CAAA;IAIhB,UAAU,EAAE,IAAI,GAAG,IAAI,CAAO;IAG9B,QAAQ;IAMR,MAAM;CAIP"}
|