@medusajs/order 0.1.3-snapshot-20240827104434 → 0.1.3-snapshot-20240829144419
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/migrations/Migration20240827133639.d.ts +6 -0
- package/dist/migrations/Migration20240827133639.d.ts.map +1 -0
- package/dist/migrations/Migration20240827133639.js +17 -0
- package/dist/migrations/Migration20240827133639.js.map +1 -0
- package/dist/models/address.d.ts +1 -1
- package/dist/models/address.d.ts.map +1 -1
- package/dist/models/address.js +21 -21
- package/dist/models/address.js.map +1 -1
- package/dist/models/claim-item.d.ts +2 -2
- package/dist/models/claim-item.d.ts.map +1 -1
- package/dist/models/claim-item.js.map +1 -1
- package/dist/models/claim.d.ts +4 -4
- package/dist/models/claim.d.ts.map +1 -1
- package/dist/models/claim.js.map +1 -1
- package/dist/models/exchange-item.d.ts +2 -2
- package/dist/models/exchange-item.d.ts.map +1 -1
- package/dist/models/exchange-item.js.map +1 -1
- package/dist/models/exchange.d.ts +4 -4
- package/dist/models/exchange.d.ts.map +1 -1
- package/dist/models/exchange.js +1 -1
- package/dist/models/exchange.js.map +1 -1
- package/dist/models/index.d.ts +9 -9
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +10 -10
- package/dist/models/index.js.map +1 -1
- package/dist/models/line-item-adjustment.d.ts +3 -3
- package/dist/models/line-item-adjustment.d.ts.map +1 -1
- package/dist/models/line-item-adjustment.js +8 -8
- package/dist/models/line-item-adjustment.js.map +1 -1
- package/dist/models/line-item-tax-line.d.ts +3 -3
- package/dist/models/line-item-tax-line.d.ts.map +1 -1
- package/dist/models/line-item-tax-line.js +8 -8
- package/dist/models/line-item-tax-line.js.map +1 -1
- package/dist/models/line-item.d.ts +5 -5
- package/dist/models/line-item.d.ts.map +1 -1
- package/dist/models/line-item.js +35 -35
- package/dist/models/line-item.js.map +1 -1
- package/dist/models/order-change-action.d.ts.map +1 -1
- package/dist/models/order-change-action.js +6 -2
- package/dist/models/order-change-action.js.map +1 -1
- package/dist/models/order-item.d.ts +2 -2
- package/dist/models/order-item.d.ts.map +1 -1
- package/dist/models/order-item.js.map +1 -1
- package/dist/models/order-shipping-method.d.ts +3 -3
- package/dist/models/order-shipping-method.d.ts.map +1 -1
- package/dist/models/order-shipping-method.js +21 -21
- package/dist/models/order-shipping-method.js.map +1 -1
- package/dist/models/order.d.ts +7 -7
- package/dist/models/order.d.ts.map +1 -1
- package/dist/models/order.js.map +1 -1
- package/dist/models/return-item.d.ts +4 -2
- package/dist/models/return-item.d.ts.map +1 -1
- package/dist/models/return-item.js +9 -0
- package/dist/models/return-item.js.map +1 -1
- package/dist/models/return.d.ts +4 -4
- package/dist/models/return.d.ts.map +1 -1
- package/dist/models/return.js +1 -1
- package/dist/models/return.js.map +1 -1
- package/dist/models/shipping-method-adjustment.d.ts +3 -3
- package/dist/models/shipping-method-adjustment.d.ts.map +1 -1
- package/dist/models/shipping-method-adjustment.js +8 -8
- package/dist/models/shipping-method-adjustment.js.map +1 -1
- package/dist/models/shipping-method-tax-line.d.ts +3 -3
- package/dist/models/shipping-method-tax-line.d.ts.map +1 -1
- package/dist/models/shipping-method-tax-line.js +8 -8
- package/dist/models/shipping-method-tax-line.js.map +1 -1
- package/dist/models/shipping-method.d.ts +5 -5
- package/dist/models/shipping-method.d.ts.map +1 -1
- package/dist/models/shipping-method.js +20 -20
- package/dist/models/shipping-method.js.map +1 -1
- package/dist/models/transaction.d.ts +1 -1
- package/dist/models/transaction.d.ts.map +1 -1
- package/dist/models/transaction.js +24 -24
- package/dist/models/transaction.js.map +1 -1
- package/dist/services/actions/create-claim.js +5 -5
- package/dist/services/actions/create-claim.js.map +1 -1
- package/dist/services/actions/create-exchange.js +5 -5
- package/dist/services/actions/create-exchange.js.map +1 -1
- package/dist/services/actions/create-return.js +2 -2
- package/dist/services/actions/create-return.js.map +1 -1
- package/dist/services/order-module-service.d.ts +73 -79
- package/dist/services/order-module-service.d.ts.map +1 -1
- package/dist/services/order-module-service.js +121 -184
- package/dist/services/order-module-service.js.map +1 -1
- package/package.json +4 -4
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Migration20240827133639.d.ts","sourceRoot":"","sources":["../../src/migrations/Migration20240827133639.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAEjD,qBAAa,uBAAwB,SAAQ,SAAS;IAC9C,EAAE,IAAI,OAAO,CAAC,IAAI,CAAC;IAcnB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAQ5B"}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.Migration20240827133639 = void 0;
|
4
|
+
const migrations_1 = require("@mikro-orm/migrations");
|
5
|
+
class Migration20240827133639 extends migrations_1.Migration {
|
6
|
+
async up() {
|
7
|
+
this.addSql('alter table if exists "return_item" add column if not exists "damaged_quantity" numeric not null default 0, add column if not exists "raw_damaged_quantity" jsonb;');
|
8
|
+
this.addSql(`UPDATE "return_item" SET raw_damaged_quantity = '{"value": "0", "precision": 20}'::jsonb;`);
|
9
|
+
this.addSql('ALTER TABLE IF EXISTS "return_item" ALTER COLUMN "raw_damaged_quantity" SET NOT NULL;');
|
10
|
+
}
|
11
|
+
async down() {
|
12
|
+
this.addSql('alter table if exists "return_item" drop column if exists "damaged_quantity";');
|
13
|
+
this.addSql('alter table if exists "return_item" drop column if exists "raw_damaged_quantity";');
|
14
|
+
}
|
15
|
+
}
|
16
|
+
exports.Migration20240827133639 = Migration20240827133639;
|
17
|
+
//# sourceMappingURL=Migration20240827133639.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Migration20240827133639.js","sourceRoot":"","sources":["../../src/migrations/Migration20240827133639.ts"],"names":[],"mappings":";;;AAAA,sDAAiD;AAEjD,MAAa,uBAAwB,SAAQ,sBAAS;IACpD,KAAK,CAAC,EAAE;QACN,IAAI,CAAC,MAAM,CACT,oKAAoK,CACrK,CAAA;QAED,IAAI,CAAC,MAAM,CACT,2FAA2F,CAC5F,CAAA;QAED,IAAI,CAAC,MAAM,CACT,uFAAuF,CACxF,CAAA;IACH,CAAC;IAED,KAAK,CAAC,IAAI;QACR,IAAI,CAAC,MAAM,CACT,+EAA+E,CAChF,CAAA;QACD,IAAI,CAAC,MAAM,CACT,mFAAmF,CACpF,CAAA;IACH,CAAC;CACF;AAvBD,0DAuBC"}
|
package/dist/models/address.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { DAL } from "@medusajs/types";
|
2
2
|
import { OptionalProps } from "@mikro-orm/core";
|
3
3
|
type OptionalAddressProps = DAL.ModelDateColumns;
|
4
|
-
export default class
|
4
|
+
export default class OrderAddress {
|
5
5
|
[OptionalProps]: OptionalAddressProps;
|
6
6
|
id: string;
|
7
7
|
customer_id: string | null;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"address.d.ts","sourceRoot":"","sources":["../../src/models/address.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAA;AAKrC,OAAO,EAIL,aAAa,EAGd,MAAM,iBAAiB,CAAA;AAExB,KAAK,oBAAoB,GAAG,GAAG,CAAC,gBAAgB,CAAA;AAQhD,MAAM,CAAC,OAAO,OAAO,
|
1
|
+
{"version":3,"file":"address.d.ts","sourceRoot":"","sources":["../../src/models/address.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAA;AAKrC,OAAO,EAIL,aAAa,EAGd,MAAM,iBAAiB,CAAA;AAExB,KAAK,oBAAoB,GAAG,GAAG,CAAC,gBAAgB,CAAA;AAQhD,MAAM,CAAC,OAAO,OAAO,YAAY;IAC/B,CAAC,aAAa,CAAC,EAAE,oBAAoB,CAAA;IAGrC,EAAE,EAAG,MAAM,CAAA;IAIX,WAAW,EAAE,MAAM,GAAG,IAAI,CAAO;IAGjC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAO;IAG7B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAO;IAGhC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAO;IAG/B,SAAS,EAAE,MAAM,GAAG,IAAI,CAAO;IAG/B,SAAS,EAAE,MAAM,GAAG,IAAI,CAAO;IAG/B,IAAI,EAAE,MAAM,GAAG,IAAI,CAAO;IAG1B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAO;IAGlC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAO;IAG9B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAO;IAGjC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAO;IAG3B,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAO;IAO/C,UAAU,EAAE,IAAI,CAAA;IAQhB,UAAU,EAAE,IAAI,CAAA;IAGhB,QAAQ;IAKR,MAAM;CAGP"}
|
package/dist/models/address.js
CHANGED
@@ -15,7 +15,7 @@ const CustomerIdIndex = (0, utils_1.createPsqlIndexStatementHelper)({
|
|
15
15
|
tableName: "order_address",
|
16
16
|
columns: "customer_id",
|
17
17
|
});
|
18
|
-
let
|
18
|
+
let OrderAddress = class OrderAddress {
|
19
19
|
constructor() {
|
20
20
|
this.customer_id = null;
|
21
21
|
this.company = null;
|
@@ -40,56 +40,56 @@ let Address = class Address {
|
|
40
40
|
__decorate([
|
41
41
|
(0, core_1.PrimaryKey)({ columnType: "text" }),
|
42
42
|
__metadata("design:type", String)
|
43
|
-
],
|
43
|
+
], OrderAddress.prototype, "id", void 0);
|
44
44
|
__decorate([
|
45
45
|
(0, core_1.Property)({ columnType: "text", nullable: true }),
|
46
46
|
CustomerIdIndex.MikroORMIndex(),
|
47
47
|
__metadata("design:type", Object)
|
48
|
-
],
|
48
|
+
], OrderAddress.prototype, "customer_id", void 0);
|
49
49
|
__decorate([
|
50
50
|
(0, core_1.Property)({ columnType: "text", nullable: true }),
|
51
51
|
__metadata("design:type", Object)
|
52
|
-
],
|
52
|
+
], OrderAddress.prototype, "company", void 0);
|
53
53
|
__decorate([
|
54
54
|
(0, core_1.Property)({ columnType: "text", nullable: true }),
|
55
55
|
__metadata("design:type", Object)
|
56
|
-
],
|
56
|
+
], OrderAddress.prototype, "first_name", void 0);
|
57
57
|
__decorate([
|
58
58
|
(0, core_1.Property)({ columnType: "text", nullable: true }),
|
59
59
|
__metadata("design:type", Object)
|
60
|
-
],
|
60
|
+
], OrderAddress.prototype, "last_name", void 0);
|
61
61
|
__decorate([
|
62
62
|
(0, core_1.Property)({ columnType: "text", nullable: true }),
|
63
63
|
__metadata("design:type", Object)
|
64
|
-
],
|
64
|
+
], OrderAddress.prototype, "address_1", void 0);
|
65
65
|
__decorate([
|
66
66
|
(0, core_1.Property)({ columnType: "text", nullable: true }),
|
67
67
|
__metadata("design:type", Object)
|
68
|
-
],
|
68
|
+
], OrderAddress.prototype, "address_2", void 0);
|
69
69
|
__decorate([
|
70
70
|
(0, core_1.Property)({ columnType: "text", nullable: true }),
|
71
71
|
__metadata("design:type", Object)
|
72
|
-
],
|
72
|
+
], OrderAddress.prototype, "city", void 0);
|
73
73
|
__decorate([
|
74
74
|
(0, core_1.Property)({ columnType: "text", nullable: true }),
|
75
75
|
__metadata("design:type", Object)
|
76
|
-
],
|
76
|
+
], OrderAddress.prototype, "country_code", void 0);
|
77
77
|
__decorate([
|
78
78
|
(0, core_1.Property)({ columnType: "text", nullable: true }),
|
79
79
|
__metadata("design:type", Object)
|
80
|
-
],
|
80
|
+
], OrderAddress.prototype, "province", void 0);
|
81
81
|
__decorate([
|
82
82
|
(0, core_1.Property)({ columnType: "text", nullable: true }),
|
83
83
|
__metadata("design:type", Object)
|
84
|
-
],
|
84
|
+
], OrderAddress.prototype, "postal_code", void 0);
|
85
85
|
__decorate([
|
86
86
|
(0, core_1.Property)({ columnType: "text", nullable: true }),
|
87
87
|
__metadata("design:type", Object)
|
88
|
-
],
|
88
|
+
], OrderAddress.prototype, "phone", void 0);
|
89
89
|
__decorate([
|
90
90
|
(0, core_1.Property)({ columnType: "jsonb", nullable: true }),
|
91
91
|
__metadata("design:type", Object)
|
92
|
-
],
|
92
|
+
], OrderAddress.prototype, "metadata", void 0);
|
93
93
|
__decorate([
|
94
94
|
(0, core_1.Property)({
|
95
95
|
onCreate: () => new Date(),
|
@@ -97,7 +97,7 @@ __decorate([
|
|
97
97
|
defaultRaw: "now()",
|
98
98
|
}),
|
99
99
|
__metadata("design:type", Date)
|
100
|
-
],
|
100
|
+
], OrderAddress.prototype, "created_at", void 0);
|
101
101
|
__decorate([
|
102
102
|
(0, core_1.Property)({
|
103
103
|
onCreate: () => new Date(),
|
@@ -106,21 +106,21 @@ __decorate([
|
|
106
106
|
defaultRaw: "now()",
|
107
107
|
}),
|
108
108
|
__metadata("design:type", Date)
|
109
|
-
],
|
109
|
+
], OrderAddress.prototype, "updated_at", void 0);
|
110
110
|
__decorate([
|
111
111
|
(0, core_1.BeforeCreate)(),
|
112
112
|
__metadata("design:type", Function),
|
113
113
|
__metadata("design:paramtypes", []),
|
114
114
|
__metadata("design:returntype", void 0)
|
115
|
-
],
|
115
|
+
], OrderAddress.prototype, "onCreate", null);
|
116
116
|
__decorate([
|
117
117
|
(0, core_1.OnInit)(),
|
118
118
|
__metadata("design:type", Function),
|
119
119
|
__metadata("design:paramtypes", []),
|
120
120
|
__metadata("design:returntype", void 0)
|
121
|
-
],
|
122
|
-
|
121
|
+
], OrderAddress.prototype, "onInit", null);
|
122
|
+
OrderAddress = __decorate([
|
123
123
|
(0, core_1.Entity)({ tableName: "order_address" })
|
124
|
-
],
|
125
|
-
exports.default =
|
124
|
+
], OrderAddress);
|
125
|
+
exports.default = OrderAddress;
|
126
126
|
//# sourceMappingURL=address.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"address.js","sourceRoot":"","sources":["../../src/models/address.ts"],"names":[],"mappings":";;;;;;;;;;;AACA,2CAGwB;AACxB,0CAOwB;AAIxB,MAAM,eAAe,GAAG,IAAA,sCAA8B,EAAC;IACrD,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AI;gDAAA;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;gDAAA;AAGhB;IADC,IAAA,mBAAY,GAAE;;;;4CAGd;AAGD;IADC,IAAA,aAAM,GAAE;;;;0CAGR;AAlEkB,YAAY;IADhC,IAAA,aAAM,EAAC,EAAE,SAAS,EAAE,eAAe,EAAE,CAAC;GAClB,YAAY,CAmEhC;kBAnEoB,YAAY"}
|
@@ -3,7 +3,7 @@ import { ClaimReason } from "@medusajs/utils";
|
|
3
3
|
import { Collection, OptionalProps, Rel } from "@mikro-orm/core";
|
4
4
|
import Claim from "./claim";
|
5
5
|
import OrderClaimItemImage from "./claim-item-image";
|
6
|
-
import
|
6
|
+
import OrderLineItem from "./line-item";
|
7
7
|
type OptionalLineItemProps = DAL.ModelDateColumns;
|
8
8
|
export default class OrderClaimItem {
|
9
9
|
[OptionalProps]?: OptionalLineItemProps;
|
@@ -15,7 +15,7 @@ export default class OrderClaimItem {
|
|
15
15
|
claim_id: string;
|
16
16
|
claim: Rel<Claim>;
|
17
17
|
item_id: string;
|
18
|
-
item: Rel<
|
18
|
+
item: Rel<OrderLineItem>;
|
19
19
|
is_additional_item: boolean;
|
20
20
|
note: string;
|
21
21
|
metadata: Record<string, unknown> | null;
|
@@ -1 +1 @@
|
|
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,CAA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;IAMR,MAAM;CAIP"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"claim-item.js","sourceRoot":"","sources":["../../src/models/claim-item.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AACA,2CAKwB;AACxB,0CAawB;AACxB,oDAA2B;AAC3B,0EAAoD;AACpD,
|
1
|
+
{"version":3,"file":"claim-item.js","sourceRoot":"","sources":["../../src/models/claim-item.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AACA,2CAKwB;AACxB,0CAawB;AACxB,oDAA2B;AAC3B,0EAAoD;AACpD,4DAAuC;AAIvC,MAAM,SAAS,GAAG,kBAAkB,CAAA;AACpC,MAAM,YAAY,GAAG,IAAA,sCAA8B,EAAC;IAClD,SAAS;IACT,OAAO,EAAE,UAAU;IACnB,KAAK,EAAE,wBAAwB;CAChC,CAAC,CAAA;AAEF,MAAM,WAAW,GAAG,IAAA,sCAA8B,EAAC;IACjD,SAAS;IACT,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,wBAAwB;CAChC,CAAC,CAAA;AAEF,MAAM,cAAc,GAAG,IAAA,sCAA8B,EAAC;IACpD,SAAS;IACT,OAAO,EAAE,YAAY;IACrB,KAAK,EAAE,wBAAwB;CAChC,CAAC,CAAA;AAGa,IAAM,cAAc,GAApB,MAAM,cAAc;IAApB;QASb,WAAM,GAAG,IAAI,iBAAU,CAA2B,IAAI,CAAC,CAAA;QAGvD,WAAM,GAA4B,IAAI,CAAA;QAqCtC,uBAAkB,GAAY,KAAK,CAAA;QAMnC,aAAQ,GAAmC,IAAI,CAAA;QAmB/C,eAAU,GAAgB,IAAI,CAAA;IAahC,CAAC;IAVC,QAAQ;QACN,IAAI,CAAC,EAAE,GAAG,IAAA,wBAAgB,EAAC,IAAI,CAAC,EAAE,EAAE,SAAS,CAAC,CAAA;QAC9C,IAAI,CAAC,QAAQ,KAAK,IAAI,CAAC,KAAK,EAAE,EAAE,CAAA;IAClC,CAAC;IAGD,MAAM;QACJ,IAAI,CAAC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AAC,GAAG,EAAE,CAAC,mBAAa,EAAE;QAC9B,OAAO,EAAE,KAAK;KACf,CAAC;;4CACsB;AAGxB;IADC,IAAA,eAAQ,EAAC,EAAE,UAAU,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;0DACjB;AAGnC;IADC,IAAA,eAAQ,EAAC,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CACrC;AAGZ;IADC,IAAA,eAAQ,EAAC,EAAE,UAAU,EAAE,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,CAAC;GACD,cAAc,CAuFlC;kBAvFoB,cAAc"}
|
package/dist/models/claim.d.ts
CHANGED
@@ -3,9 +3,9 @@ import { BigNumber, ClaimType } from "@medusajs/utils";
|
|
3
3
|
import { Collection, OptionalProps, Rel } from "@mikro-orm/core";
|
4
4
|
import ClaimItem from "./claim-item";
|
5
5
|
import Order from "./order";
|
6
|
-
import
|
6
|
+
import OrderShipping from "./order-shipping-method";
|
7
7
|
import Return from "./return";
|
8
|
-
import
|
8
|
+
import OrderTransaction from "./transaction";
|
9
9
|
type OptionalOrderClaimProps = DAL.ModelDateColumns;
|
10
10
|
export default class OrderClaim {
|
11
11
|
[OptionalProps]?: OptionalOrderClaimProps;
|
@@ -22,8 +22,8 @@ export default class OrderClaim {
|
|
22
22
|
raw_refund_amount: BigNumberRawValue;
|
23
23
|
additional_items: Collection<ClaimItem, object>;
|
24
24
|
claim_items: Collection<ClaimItem, object>;
|
25
|
-
shipping_methods: Collection<
|
26
|
-
transactions: Collection<
|
25
|
+
shipping_methods: Collection<OrderShipping, object>;
|
26
|
+
transactions: Collection<OrderTransaction, object>;
|
27
27
|
created_by: string | null;
|
28
28
|
metadata: Record<string, unknown> | null;
|
29
29
|
created_at: Date;
|
@@ -1 +1 @@
|
|
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,EAKV,MAAM,iBAAiB,CAAA;AACxB,OAAO,EAGL,UAAU,EAQV,aAAa,EAGb,GAAG,EACJ,MAAM,iBAAiB,CAAA;AACxB,OAAO,SAAS,MAAM,cAAc,CAAA;AACpC,OAAO,KAAK,MAAM,SAAS,CAAA;AAC3B,OAAO,
|
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,EAKV,MAAM,iBAAiB,CAAA;AACxB,OAAO,EAGL,UAAU,EAQV,aAAa,EAGb,GAAG,EACJ,MAAM,iBAAiB,CAAA;AACxB,OAAO,SAAS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../src/models/claim.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AACA,2CAOwB;AACxB,0CAewB;AACxB,8DAAoC;AACpC,oDAA2B;AAC3B,
|
1
|
+
{"version":3,"file":"claim.js","sourceRoot":"","sources":["../../src/models/claim.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AACA,2CAOwB;AACxB,0CAewB;AACxB,8DAAoC;AACpC,oDAA2B;AAC3B,oFAAmD;AACnD,sDAA6B;AAC7B,gEAA4C;AAI5C,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;AAIa,IAAM,UAAU,GAAhB,MAAM,UAAU;IAAhB;QA+Bb,cAAS,GAAkB,IAAI,CAAA;QAe/B,oBAAe,GAAmB,IAAI,CAAA;QAatC,qBAAgB,GAAG,IAAI,iBAAU,CAAiB,IAAI,CAAC,CAAA;QAKvD,gBAAW,GAAG,IAAI,iBAAU,CAAiB,IAAI,CAAC,CAAA;QAKlD,qBAAgB,GAAG,IAAI,iBAAU,CAAqB,IAAI,CAAC,CAAA;QAK3D,iBAAY,GAAG,IAAI,iBAAU,CAAmB,IAAI,CAAC,CAAA;QAGrD,eAAU,GAAkB,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AC,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CACjB;AAGhC;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;AAhHkB,UAAU;IAF9B,IAAA,aAAM,EAAC,EAAE,SAAS,EAAE,aAAa,EAAE,CAAC;IACpC,IAAA,aAAM,EAAC,gBAAQ,CAAC,kCAAkC,CAAC;GAC/B,UAAU,CAiH9B;kBAjHoB,UAAU"}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { BigNumberRawValue, DAL } from "@medusajs/types";
|
2
2
|
import { OptionalProps } from "@mikro-orm/core";
|
3
3
|
import Exchange from "./exchange";
|
4
|
-
import
|
4
|
+
import OrderLineItem from "./line-item";
|
5
5
|
type OptionalLineItemProps = DAL.ModelDateColumns;
|
6
6
|
export default class OrderExchangeItem {
|
7
7
|
[OptionalProps]?: OptionalLineItemProps;
|
@@ -11,7 +11,7 @@ export default class OrderExchangeItem {
|
|
11
11
|
exchange_id: string;
|
12
12
|
exchange: Exchange;
|
13
13
|
item_id: string;
|
14
|
-
item:
|
14
|
+
item: OrderLineItem;
|
15
15
|
note: string;
|
16
16
|
metadata: Record<string, unknown> | null;
|
17
17
|
created_at: Date;
|
@@ -1 +1 @@
|
|
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,
|
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,aAAa,MAAM,aAAa,CAAA;AAEvC,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,aAAa,CAAA;IAGnB,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 +1 @@
|
|
1
|
-
{"version":3,"file":"exchange-item.js","sourceRoot":"","sources":["../../src/models/exchange-item.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AACA,2CAIwB;AACxB,0CAQwB;AACxB,0DAAiC;AACjC,
|
1
|
+
{"version":3,"file":"exchange-item.js","sourceRoot":"","sources":["../../src/models/exchange-item.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AACA,2CAIwB;AACxB,0CAQwB;AACxB,0DAAiC;AACjC,4DAAuC;AAIvC,MAAM,eAAe,GAAG,IAAA,sCAA8B,EAAC;IACrD,SAAS,EAAE,qBAAqB;IAChC,OAAO,EAAE,aAAa;IACtB,KAAK,EAAE,wBAAwB;CAChC,CAAC,CAAA;AAEF,MAAM,WAAW,GAAG,IAAA,sCAA8B,EAAC;IACjD,SAAS,EAAE,qBAAqB;IAChC,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,wBAAwB;CAChC,CAAC,CAAA;AAEF,MAAM,cAAc,GAAG,IAAA,sCAA8B,EAAC;IACpD,SAAS,EAAE,wBAAwB;IACnC,OAAO,EAAE,YAAY;IACrB,KAAK,EAAE,wBAAwB;CAChC,CAAC,CAAA;AAGa,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IAAvB;QA4Cb,aAAQ,GAAmC,IAAI,CAAA;QAmB/C,eAAU,GAAgB,IAAI,CAAA;IAahC,CAAC;IAVC,QAAQ;QACN,IAAI,CAAC,EAAE,GAAG,IAAA,wBAAgB,EAAC,IAAI,CAAC,EAAE,EAAE,UAAU,CAAC,CAAA;QAC/C,IAAI,CAAC,WAAW,KAAK,IAAI,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AAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACH;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;qDAAA;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;qDAAA;AAIhB;IAFC,IAAA,eAAQ,EAAC,EAAE,UAAU,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACvD,cAAc,CAAC,aAAa,EAAE;;qDACD;AAG9B;IADC,IAAA,mBAAY,GAAE;;;;iDAId;AAGD;IADC,IAAA,aAAM,GAAE;;;;+CAIR;AA3EkB,iBAAiB;IADrC,IAAA,aAAM,EAAC,EAAE,SAAS,EAAE,qBAAqB,EAAE,CAAC;GACxB,iBAAiB,CA4ErC;kBA5EoB,iBAAiB"}
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import { BigNumberRawValue, DAL } from "@medusajs/types";
|
2
2
|
import { BigNumber } from "@medusajs/utils";
|
3
3
|
import { Collection, OptionalProps, Rel } from "@mikro-orm/core";
|
4
|
-
import { OrderExchangeItem,
|
4
|
+
import { OrderExchangeItem, OrderTransaction } from ".";
|
5
5
|
import Order from "./order";
|
6
|
-
import
|
6
|
+
import OrderShipping from "./order-shipping-method";
|
7
7
|
import Return from "./return";
|
8
8
|
type OptionalOrderExchangeProps = DAL.ModelDateColumns;
|
9
9
|
export default class OrderExchange {
|
@@ -20,8 +20,8 @@ export default class OrderExchange {
|
|
20
20
|
raw_difference_due: BigNumberRawValue;
|
21
21
|
allow_backorder: boolean;
|
22
22
|
additional_items: Collection<OrderExchangeItem, object>;
|
23
|
-
shipping_methods: Collection<
|
24
|
-
transactions: Collection<
|
23
|
+
shipping_methods: Collection<OrderShipping, object>;
|
24
|
+
transactions: Collection<OrderTransaction, object>;
|
25
25
|
created_by: string | null;
|
26
26
|
metadata: Record<string, unknown> | null;
|
27
27
|
created_at: Date;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"exchange.d.ts","sourceRoot":"","sources":["../../src/models/exchange.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAA;AACxD,OAAO,EACL,SAAS,EAKV,MAAM,iBAAiB,CAAA;AACxB,OAAO,EAGL,UAAU,EAOV,aAAa,EAGb,GAAG,EACJ,MAAM,iBAAiB,CAAA;AACxB,OAAO,EAAE,iBAAiB,EAAE,
|
1
|
+
{"version":3,"file":"exchange.d.ts","sourceRoot":"","sources":["../../src/models/exchange.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAA;AACxD,OAAO,EACL,SAAS,EAKV,MAAM,iBAAiB,CAAA;AACxB,OAAO,EAGL,UAAU,EAOV,aAAa,EAGb,GAAG,EACJ,MAAM,iBAAiB,CAAA;AACxB,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAC7D,OAAO,KAAK,MAAM,SAAS,CAAA;AAC3B,OAAO,aAAa,MAAM,yBAAyB,CAAA;AACnD,OAAO,MAAM,MAAM,UAAU,CAAA;AAE7B,KAAK,0BAA0B,GAAG,GAAG,CAAC,gBAAgB,CAAA;AA4BtD,MAAM,CAAC,OAAO,OAAO,aAAa;IAChC,CAAC,aAAa,CAAC,CAAC,EAAE,0BAA0B,CAAA;IAG5C,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,eAAe,EAAE,OAAO,GAAG,IAAI,CAAO;IAKtC,cAAc,EAAE,SAAS,GAAG,MAAM,CAAA;IAGlC,kBAAkB,EAAE,iBAAiB,CAAA;IAGrC,eAAe,EAAE,OAAO,CAAQ;IAKhC,gBAAgB,wCAA+C;IAK/D,gBAAgB,oCAA2C;IAK3D,YAAY,uCAAyC;IAGrD,UAAU,EAAE,MAAM,GAAG,IAAI,CAAO;IAGhC,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/exchange.js
CHANGED
@@ -135,7 +135,7 @@ __decorate([
|
|
135
135
|
__metadata("design:type", Object)
|
136
136
|
], OrderExchange.prototype, "shipping_methods", void 0);
|
137
137
|
__decorate([
|
138
|
-
(0, core_1.OneToMany)(() => _models_1.
|
138
|
+
(0, core_1.OneToMany)(() => _models_1.OrderTransaction, (transaction) => transaction.exchange, {
|
139
139
|
cascade: [core_1.Cascade.PERSIST],
|
140
140
|
}),
|
141
141
|
__metadata("design:type", Object)
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"exchange.js","sourceRoot":"","sources":["../../src/models/exchange.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AACA,2CAMwB;AACxB,0CAcwB;AACxB,
|
1
|
+
{"version":3,"file":"exchange.js","sourceRoot":"","sources":["../../src/models/exchange.ts"],"names":[],"mappings":";;;;;;;;;;;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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;iDAAA;AAIhB;IAFC,IAAA,eAAQ,EAAC,EAAE,UAAU,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACvD,2BAA2B,CAAC,aAAa,EAAE;;iDACd;AAG9B;IADC,IAAA,eAAQ,EAAC,EAAE,UAAU,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDACzB;AAG/B;IADC,IAAA,mBAAY,GAAE;;;;6CAGd;AAGD;IADC,IAAA,aAAM,GAAE;;;;2CAGR;AA3GkB,aAAa;IAFjC,IAAA,aAAM,EAAC,EAAE,SAAS,EAAE,gBAAgB,EAAE,CAAC;IACvC,IAAA,aAAM,EAAC,gBAAQ,CAAC,kCAAkC,CAAC;GAC/B,aAAa,CA4GjC;kBA5GoB,aAAa"}
|
package/dist/models/index.d.ts
CHANGED
@@ -1,23 +1,23 @@
|
|
1
|
-
export { default as
|
1
|
+
export { default as OrderAddress } from "./address";
|
2
2
|
export { default as OrderClaim } from "./claim";
|
3
3
|
export { default as OrderClaimItem } from "./claim-item";
|
4
4
|
export { default as OrderClaimItemImage } from "./claim-item-image";
|
5
5
|
export { default as OrderExchange } from "./exchange";
|
6
6
|
export { default as OrderExchangeItem } from "./exchange-item";
|
7
|
-
export { default as
|
8
|
-
export { default as
|
9
|
-
export { default as
|
7
|
+
export { default as OrderLineItem } from "./line-item";
|
8
|
+
export { default as OrderLineItemAdjustment } from "./line-item-adjustment";
|
9
|
+
export { default as OrderLineItemTaxLine } from "./line-item-tax-line";
|
10
10
|
export { default as Order } from "./order";
|
11
11
|
export { default as OrderChange } from "./order-change";
|
12
12
|
export { default as OrderChangeAction } from "./order-change-action";
|
13
13
|
export { default as OrderItem } from "./order-item";
|
14
|
-
export { default as
|
14
|
+
export { default as OrderShipping } from "./order-shipping-method";
|
15
15
|
export { default as OrderSummary } from "./order-summary";
|
16
16
|
export { default as Return } from "./return";
|
17
17
|
export { default as ReturnItem } from "./return-item";
|
18
18
|
export { default as ReturnReason } from "./return-reason";
|
19
|
-
export { default as
|
20
|
-
export { default as
|
21
|
-
export { default as
|
22
|
-
export { default as
|
19
|
+
export { default as OrderShippingMethod } from "./shipping-method";
|
20
|
+
export { default as OrderShippingMethodAdjustment } from "./shipping-method-adjustment";
|
21
|
+
export { default as OrderShippingMethodTaxLine } from "./shipping-method-tax-line";
|
22
|
+
export { default as OrderTransaction } from "./transaction";
|
23
23
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,WAAW,CAAA;AACnD,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,SAAS,CAAA;AAC/C,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,cAAc,CAAA;AACxD,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AACnE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,YAAY,CAAA;AACrD,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AAC9D,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,aAAa,CAAA;AACtD,OAAO,EAAE,OAAO,IAAI,uBAAuB,EAAE,MAAM,wBAAwB,CAAA;AAC3E,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AACtE,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAA;AAC1C,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,gBAAgB,CAAA;AACvD,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,uBAAuB,CAAA;AACpE,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,cAAc,CAAA;AACnD,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,yBAAyB,CAAA;AAClE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,iBAAiB,CAAA;AACzD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAA;AAC5C,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,eAAe,CAAA;AACrD,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,iBAAiB,CAAA;AACzD,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AAClE,OAAO,EAAE,OAAO,IAAI,6BAA6B,EAAE,MAAM,8BAA8B,CAAA;AACvF,OAAO,EAAE,OAAO,IAAI,0BAA0B,EAAE,MAAM,4BAA4B,CAAA;AAClF,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,eAAe,CAAA"}
|
package/dist/models/index.js
CHANGED
@@ -3,9 +3,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
4
|
};
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
exports.
|
6
|
+
exports.OrderTransaction = exports.OrderShippingMethodTaxLine = exports.OrderShippingMethodAdjustment = exports.OrderShippingMethod = exports.ReturnReason = exports.ReturnItem = exports.Return = exports.OrderSummary = exports.OrderShipping = exports.OrderItem = exports.OrderChangeAction = exports.OrderChange = exports.Order = exports.OrderLineItemTaxLine = exports.OrderLineItemAdjustment = exports.OrderLineItem = exports.OrderExchangeItem = exports.OrderExchange = exports.OrderClaimItemImage = exports.OrderClaimItem = exports.OrderClaim = exports.OrderAddress = void 0;
|
7
7
|
var address_1 = require("./address");
|
8
|
-
Object.defineProperty(exports, "
|
8
|
+
Object.defineProperty(exports, "OrderAddress", { enumerable: true, get: function () { return __importDefault(address_1).default; } });
|
9
9
|
var claim_1 = require("./claim");
|
10
10
|
Object.defineProperty(exports, "OrderClaim", { enumerable: true, get: function () { return __importDefault(claim_1).default; } });
|
11
11
|
var claim_item_1 = require("./claim-item");
|
@@ -17,11 +17,11 @@ Object.defineProperty(exports, "OrderExchange", { enumerable: true, get: functio
|
|
17
17
|
var exchange_item_1 = require("./exchange-item");
|
18
18
|
Object.defineProperty(exports, "OrderExchangeItem", { enumerable: true, get: function () { return __importDefault(exchange_item_1).default; } });
|
19
19
|
var line_item_1 = require("./line-item");
|
20
|
-
Object.defineProperty(exports, "
|
20
|
+
Object.defineProperty(exports, "OrderLineItem", { enumerable: true, get: function () { return __importDefault(line_item_1).default; } });
|
21
21
|
var line_item_adjustment_1 = require("./line-item-adjustment");
|
22
|
-
Object.defineProperty(exports, "
|
22
|
+
Object.defineProperty(exports, "OrderLineItemAdjustment", { enumerable: true, get: function () { return __importDefault(line_item_adjustment_1).default; } });
|
23
23
|
var line_item_tax_line_1 = require("./line-item-tax-line");
|
24
|
-
Object.defineProperty(exports, "
|
24
|
+
Object.defineProperty(exports, "OrderLineItemTaxLine", { enumerable: true, get: function () { return __importDefault(line_item_tax_line_1).default; } });
|
25
25
|
var order_1 = require("./order");
|
26
26
|
Object.defineProperty(exports, "Order", { enumerable: true, get: function () { return __importDefault(order_1).default; } });
|
27
27
|
var order_change_1 = require("./order-change");
|
@@ -31,7 +31,7 @@ Object.defineProperty(exports, "OrderChangeAction", { enumerable: true, get: fun
|
|
31
31
|
var order_item_1 = require("./order-item");
|
32
32
|
Object.defineProperty(exports, "OrderItem", { enumerable: true, get: function () { return __importDefault(order_item_1).default; } });
|
33
33
|
var order_shipping_method_1 = require("./order-shipping-method");
|
34
|
-
Object.defineProperty(exports, "
|
34
|
+
Object.defineProperty(exports, "OrderShipping", { enumerable: true, get: function () { return __importDefault(order_shipping_method_1).default; } });
|
35
35
|
var order_summary_1 = require("./order-summary");
|
36
36
|
Object.defineProperty(exports, "OrderSummary", { enumerable: true, get: function () { return __importDefault(order_summary_1).default; } });
|
37
37
|
var return_1 = require("./return");
|
@@ -41,11 +41,11 @@ Object.defineProperty(exports, "ReturnItem", { enumerable: true, get: function (
|
|
41
41
|
var return_reason_1 = require("./return-reason");
|
42
42
|
Object.defineProperty(exports, "ReturnReason", { enumerable: true, get: function () { return __importDefault(return_reason_1).default; } });
|
43
43
|
var shipping_method_1 = require("./shipping-method");
|
44
|
-
Object.defineProperty(exports, "
|
44
|
+
Object.defineProperty(exports, "OrderShippingMethod", { enumerable: true, get: function () { return __importDefault(shipping_method_1).default; } });
|
45
45
|
var shipping_method_adjustment_1 = require("./shipping-method-adjustment");
|
46
|
-
Object.defineProperty(exports, "
|
46
|
+
Object.defineProperty(exports, "OrderShippingMethodAdjustment", { enumerable: true, get: function () { return __importDefault(shipping_method_adjustment_1).default; } });
|
47
47
|
var shipping_method_tax_line_1 = require("./shipping-method-tax-line");
|
48
|
-
Object.defineProperty(exports, "
|
48
|
+
Object.defineProperty(exports, "OrderShippingMethodTaxLine", { enumerable: true, get: function () { return __importDefault(shipping_method_tax_line_1).default; } });
|
49
49
|
var transaction_1 = require("./transaction");
|
50
|
-
Object.defineProperty(exports, "
|
50
|
+
Object.defineProperty(exports, "OrderTransaction", { enumerable: true, get: function () { return __importDefault(transaction_1).default; } });
|
51
51
|
//# sourceMappingURL=index.js.map
|
package/dist/models/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":";;;;;;AAAA,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":";;;;;;AAAA,qCAAmD;AAA1C,wHAAA,OAAO,OAAgB;AAChC,iCAA+C;AAAtC,oHAAA,OAAO,OAAc;AAC9B,2CAAwD;AAA/C,6HAAA,OAAO,OAAkB;AAClC,uDAAmE;AAA1D,wIAAA,OAAO,OAAuB;AACvC,uCAAqD;AAA5C,0HAAA,OAAO,OAAiB;AACjC,iDAA8D;AAArD,mIAAA,OAAO,OAAqB;AACrC,yCAAsD;AAA7C,2HAAA,OAAO,OAAiB;AACjC,+DAA2E;AAAlE,gJAAA,OAAO,OAA2B;AAC3C,2DAAsE;AAA7D,2IAAA,OAAO,OAAwB;AACxC,iCAA0C;AAAjC,+GAAA,OAAO,OAAS;AACzB,+CAAuD;AAA9C,4HAAA,OAAO,OAAe;AAC/B,6DAAoE;AAA3D,yIAAA,OAAO,OAAqB;AACrC,2CAAmD;AAA1C,wHAAA,OAAO,OAAa;AAC7B,iEAAkE;AAAzD,uIAAA,OAAO,OAAiB;AACjC,iDAAyD;AAAhD,8HAAA,OAAO,OAAgB;AAChC,mCAA4C;AAAnC,iHAAA,OAAO,OAAU;AAC1B,6CAAqD;AAA5C,0HAAA,OAAO,OAAc;AAC9B,iDAAyD;AAAhD,8HAAA,OAAO,OAAgB;AAChC,qDAAkE;AAAzD,uIAAA,OAAO,OAAuB;AACvC,2EAAuF;AAA9E,4JAAA,OAAO,OAAiC;AACjD,uEAAkF;AAAzE,uJAAA,OAAO,OAA8B;AAC9C,6CAA2D;AAAlD,gIAAA,OAAO,OAAoB"}
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { Rel } from "@mikro-orm/core";
|
2
2
|
import AdjustmentLine from "./adjustment-line";
|
3
|
-
import
|
4
|
-
export default class
|
5
|
-
item: Rel<
|
3
|
+
import OrderLineItem from "./line-item";
|
4
|
+
export default class OrderLineItemAdjustment extends AdjustmentLine {
|
5
|
+
item: Rel<OrderLineItem>;
|
6
6
|
item_id: string;
|
7
7
|
onCreate(): void;
|
8
8
|
onInit(): void;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"line-item-adjustment.d.ts","sourceRoot":"","sources":["../../src/models/line-item-adjustment.ts"],"names":[],"mappings":"AAIA,OAAO,EAA2C,GAAG,EAAE,MAAM,iBAAiB,CAAA;AAC9E,OAAO,cAAc,MAAM,mBAAmB,CAAA;AAC9C,OAAO,
|
1
|
+
{"version":3,"file":"line-item-adjustment.d.ts","sourceRoot":"","sources":["../../src/models/line-item-adjustment.ts"],"names":[],"mappings":"AAIA,OAAO,EAA2C,GAAG,EAAE,MAAM,iBAAiB,CAAA;AAC9E,OAAO,cAAc,MAAM,mBAAmB,CAAA;AAC9C,OAAO,aAAa,MAAM,aAAa,CAAA;AAQvC,MAAM,CAAC,OAAO,OAAO,uBAAwB,SAAQ,cAAc;IAIjE,IAAI,EAAE,GAAG,CAAC,aAAa,CAAC,CAAA;IAUxB,OAAO,EAAE,MAAM,CAAA;IAGf,QAAQ;IAMR,MAAM;CAIP"}
|
@@ -20,7 +20,7 @@ const ItemIdIndex = (0, utils_1.createPsqlIndexStatementHelper)({
|
|
20
20
|
tableName: "order_line_item_adjustment",
|
21
21
|
columns: "item_id",
|
22
22
|
});
|
23
|
-
let
|
23
|
+
let OrderLineItemAdjustment = class OrderLineItemAdjustment extends adjustment_line_1.default {
|
24
24
|
onCreate() {
|
25
25
|
this.id = (0, utils_1.generateEntityId)(this.id, "ordliadj");
|
26
26
|
this.item_id ??= this.item?.id;
|
@@ -35,7 +35,7 @@ __decorate([
|
|
35
35
|
persist: false,
|
36
36
|
}),
|
37
37
|
__metadata("design:type", Object)
|
38
|
-
],
|
38
|
+
], OrderLineItemAdjustment.prototype, "item", void 0);
|
39
39
|
__decorate([
|
40
40
|
(0, core_1.ManyToOne)({
|
41
41
|
entity: () => line_item_1.default,
|
@@ -46,21 +46,21 @@ __decorate([
|
|
46
46
|
}),
|
47
47
|
ItemIdIndex.MikroORMIndex(),
|
48
48
|
__metadata("design:type", String)
|
49
|
-
],
|
49
|
+
], OrderLineItemAdjustment.prototype, "item_id", void 0);
|
50
50
|
__decorate([
|
51
51
|
(0, core_1.BeforeCreate)(),
|
52
52
|
__metadata("design:type", Function),
|
53
53
|
__metadata("design:paramtypes", []),
|
54
54
|
__metadata("design:returntype", void 0)
|
55
|
-
],
|
55
|
+
], OrderLineItemAdjustment.prototype, "onCreate", null);
|
56
56
|
__decorate([
|
57
57
|
(0, core_1.OnInit)(),
|
58
58
|
__metadata("design:type", Function),
|
59
59
|
__metadata("design:paramtypes", []),
|
60
60
|
__metadata("design:returntype", void 0)
|
61
|
-
],
|
62
|
-
|
61
|
+
], OrderLineItemAdjustment.prototype, "onInit", null);
|
62
|
+
OrderLineItemAdjustment = __decorate([
|
63
63
|
(0, core_1.Entity)({ tableName: "order_line_item_adjustment" })
|
64
|
-
],
|
65
|
-
exports.default =
|
64
|
+
], OrderLineItemAdjustment);
|
65
|
+
exports.default = OrderLineItemAdjustment;
|
66
66
|
//# sourceMappingURL=line-item-adjustment.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"line-item-adjustment.js","sourceRoot":"","sources":["../../src/models/line-item-adjustment.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,2CAGwB;AACxB,0CAA8E;AAC9E,wEAA8C;AAC9C,
|
1
|
+
{"version":3,"file":"line-item-adjustment.js","sourceRoot":"","sources":["../../src/models/line-item-adjustment.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,2CAGwB;AACxB,0CAA8E;AAC9E,wEAA8C;AAC9C,4DAAuC;AAEvC,MAAM,WAAW,GAAG,IAAA,sCAA8B,EAAC;IACjD,SAAS,EAAE,4BAA4B;IACvC,OAAO,EAAE,SAAS;CACnB,CAAC,CAAA;AAGa,IAAM,uBAAuB,GAA7B,MAAM,uBAAwB,SAAQ,yBAAc;IAiBjE,QAAQ;QACN,IAAI,CAAC,EAAE,GAAG,IAAA,wBAAgB,EAAC,IAAI,CAAC,EAAE,EAAE,UAAU,CAAC,CAAA;QAC/C,IAAI,CAAC,OAAO,KAAK,IAAI,CAAC,IAAI,EAAE,EAAE,CAAA;IAChC,CAAC;IAGD,MAAM;QACJ,IAAI,CAAC,EAAE,GAAG,IAAA,wBAAgB,EAAC,IAAI,CAAC,EAAE,EAAE,UAAU,CAAC,CAAA;QAC/C,IAAI,CAAC,OAAO,KAAK,IAAI,CAAC,IAAI,EAAE,EAAE,CAAA;IAChC,CAAC;CACF,CAAA;AAvBC;IAHC,IAAA,gBAAS,EAAC,GAAG,EAAE,CAAC,mBAAa,EAAE;QAC9B,OAAO,EAAE,KAAK;KACf,CAAC;;qDACsB;AAUxB;IARC,IAAA,gBAAS,EAAC;QACT,MAAM,EAAE,GAAG,EAAE,CAAC,mBAAa;QAC3B,UAAU,EAAE,MAAM;QAClB,SAAS,EAAE,SAAS;QACpB,QAAQ,EAAE,SAAS;QACnB,OAAO,EAAE,IAAI;KACd,CAAC;IACD,WAAW,CAAC,aAAa,EAAE;;wDACb;AAGf;IADC,IAAA,mBAAY,GAAE;;;;uDAId;AAGD;IADC,IAAA,aAAM,GAAE;;;;qDAIR;AA1BkB,uBAAuB;IAD3C,IAAA,aAAM,EAAC,EAAE,SAAS,EAAE,4BAA4B,EAAE,CAAC;GAC/B,uBAAuB,CA2B3C;kBA3BoB,uBAAuB"}
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { Rel } from "@mikro-orm/core";
|
2
|
-
import
|
2
|
+
import OrderLineItem from "./line-item";
|
3
3
|
import TaxLine from "./tax-line";
|
4
|
-
export default class
|
5
|
-
item: Rel<
|
4
|
+
export default class OrderLineItemTaxLine extends TaxLine {
|
5
|
+
item: Rel<OrderLineItem>;
|
6
6
|
item_id: string;
|
7
7
|
onCreate(): void;
|
8
8
|
onInit(): void;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"line-item-tax-line.d.ts","sourceRoot":"","sources":["../../src/models/line-item-tax-line.ts"],"names":[],"mappings":"AAIA,OAAO,EAML,GAAG,EACJ,MAAM,iBAAiB,CAAA;AACxB,OAAO,
|
1
|
+
{"version":3,"file":"line-item-tax-line.d.ts","sourceRoot":"","sources":["../../src/models/line-item-tax-line.ts"],"names":[],"mappings":"AAIA,OAAO,EAML,GAAG,EACJ,MAAM,iBAAiB,CAAA;AACxB,OAAO,aAAa,MAAM,aAAa,CAAA;AACvC,OAAO,OAAO,MAAM,YAAY,CAAA;AAQhC,MAAM,CAAC,OAAO,OAAO,oBAAqB,SAAQ,OAAO;IAKvD,IAAI,EAAE,GAAG,CAAC,aAAa,CAAC,CAAA;IAUxB,OAAO,EAAE,MAAM,CAAA;IAGf,QAAQ;IAMR,MAAM;CAIP"}
|