@medusajs/cart 2.0.2-snapshot-20241105102007 → 2.0.3-preview-20241107090147

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,6 @@
1
+ import { Migration } from '@mikro-orm/migrations';
2
+ export declare class Migration20241106085918 extends Migration {
3
+ up(): Promise<void>;
4
+ down(): Promise<void>;
5
+ }
6
+ //# sourceMappingURL=Migration20241106085918.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Migration20241106085918.d.ts","sourceRoot":"","sources":["../../src/migrations/Migration20241106085918.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,qBAAa,uBAAwB,SAAQ,SAAS;IAE9C,EAAE,IAAI,OAAO,CAAC,IAAI,CAAC;IAKnB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAK5B"}
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Migration20241106085918 = void 0;
4
+ const migrations_1 = require("@mikro-orm/migrations");
5
+ class Migration20241106085918 extends migrations_1.Migration {
6
+ async up() {
7
+ this.addSql('alter table if exists "cart_line_item" add column if not exists "product_type_id" text null;');
8
+ this.addSql('CREATE INDEX IF NOT EXISTS "IDX_line_item_product_type_id" ON "cart_line_item" (product_type_id) WHERE deleted_at IS NULL AND product_type_id IS NOT NULL;');
9
+ }
10
+ async down() {
11
+ this.addSql('drop index if exists "IDX_line_item_product_type_id";');
12
+ this.addSql('alter table if exists "cart_line_item" drop column if exists "product_type_id";');
13
+ }
14
+ }
15
+ exports.Migration20241106085918 = Migration20241106085918;
16
+ //# sourceMappingURL=Migration20241106085918.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Migration20241106085918.js","sourceRoot":"","sources":["../../src/migrations/Migration20241106085918.ts"],"names":[],"mappings":";;;AAAA,sDAAkD;AAElD,MAAa,uBAAwB,SAAQ,sBAAS;IAEpD,KAAK,CAAC,EAAE;QACN,IAAI,CAAC,MAAM,CAAC,8FAA8F,CAAC,CAAC;QAC5G,IAAI,CAAC,MAAM,CAAC,4JAA4J,CAAC,CAAC;IAC5K,CAAC;IAED,KAAK,CAAC,IAAI;QACR,IAAI,CAAC,MAAM,CAAC,uDAAuD,CAAC,CAAC;QACrE,IAAI,CAAC,MAAM,CAAC,iFAAiF,CAAC,CAAC;IACjG,CAAC;CAEF;AAZD,0DAYC"}
@@ -20,6 +20,7 @@ export default class LineItem {
20
20
  product_description: string | null;
21
21
  product_subtitle: string | null;
22
22
  product_type: string | null;
23
+ product_type_id: string | null;
23
24
  product_collection: string | null;
24
25
  product_handle: string | null;
25
26
  variant_sku: string | null;
@@ -1 +1 @@
1
- {"version":3,"file":"line-item.d.ts","sourceRoot":"","sources":["../../src/models/line-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,GAAG,EAAE,MAAM,2BAA2B,CAAA;AAClE,OAAO,EACL,SAAS,EAKV,MAAM,2BAA2B,CAAA;AAClC,OAAO,EAGL,UAAU,EAMV,aAAa,EAGb,GAAG,EACJ,MAAM,iBAAiB,CAAA;AACxB,OAAO,IAAI,MAAM,QAAQ,CAAA;AACzB,OAAO,kBAAkB,MAAM,wBAAwB,CAAA;AACvD,OAAO,eAAe,MAAM,sBAAsB,CAAA;AAElD,KAAK,qBAAqB,GACtB,gBAAgB,GAChB,kBAAkB,GAClB,uBAAuB,GACvB,mBAAmB,GACnB,MAAM,GACN,GAAG,CAAC,6BAA6B,CAAA;AA+BrC,MAAM,CAAC,OAAO,OAAO,QAAQ;IAC3B,CAAC,aAAa,CAAC,CAAC,EAAE,qBAAqB,CAAA;IAGvC,EAAE,EAAE,MAAM,CAAA;IASV,OAAO,EAAE,MAAM,CAAA;IAGf,IAAI,EAAE,GAAG,CAAC,IAAI,CAAC,CAAA;IAGf,KAAK,EAAE,MAAM,CAAA;IAGb,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAO;IAG9B,SAAS,EAAE,MAAM,GAAG,I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,GAAG,IAAI,CAAO;IAGrC,aAAa,EAAE,MAAM,GAAG,IAAI,CAAO;IAGnC,qBAAqB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAO;IAG5D,iBAAiB,EAAE,OAAO,CAAO;IAGjC,eAAe,EAAE,OAAO,CAAO;IAG/B,gBAAgB,EAAE,OAAO,CAAQ;IAGjC,qBAAqB,CAAC,EAAE,SAAS,GAAG,MAAM,GAAG,IAAI,CAAO;IAGxD,yBAAyB,EAAE,iBAAiB,GAAG,IAAI,CAAO;IAG1D,UAAU,EAAE,SAAS,GAAG,MAAM,CAAA;IAG9B,cAAc,EAAE,iBAAiB,CAAA;IAKjC,SAAS,sCAA6C;IAKtD,WAAW,yCAAgD;IAG3D,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;IAKR,MAAM;CAGP"}
@@ -35,6 +35,12 @@ const ProductIdIndex = (0, utils_1.createPsqlIndexStatementHelper)({
35
35
  columns: "product_id",
36
36
  where: "deleted_at IS NULL AND product_id IS NOT NULL",
37
37
  }).MikroORMIndex;
38
+ const ProductTypeIdIndex = (0, utils_1.createPsqlIndexStatementHelper)({
39
+ name: "IDX_line_item_product_type_id",
40
+ tableName: "cart_line_item",
41
+ columns: "product_type_id",
42
+ where: "deleted_at IS NULL AND product_type_id IS NOT NULL",
43
+ }).MikroORMIndex;
38
44
  const DeletedAtIndex = (0, utils_1.createPsqlIndexStatementHelper)({
39
45
  tableName: "cart_line_item",
40
46
  columns: "deleted_at",
@@ -50,6 +56,7 @@ let LineItem = class LineItem {
50
56
  this.product_description = null;
51
57
  this.product_subtitle = null;
52
58
  this.product_type = null;
59
+ this.product_type_id = null;
53
60
  this.product_collection = null;
54
61
  this.product_handle = null;
55
62
  this.variant_sku = null;
@@ -133,6 +140,11 @@ __decorate([
133
140
  (0, core_1.Property)({ columnType: "text", nullable: true }),
134
141
  __metadata("design:type", Object)
135
142
  ], LineItem.prototype, "product_type", void 0);
143
+ __decorate([
144
+ ProductTypeIdIndex(),
145
+ (0, core_1.Property)({ columnType: "text", nullable: true }),
146
+ __metadata("design:type", Object)
147
+ ], LineItem.prototype, "product_type_id", void 0);
136
148
  __decorate([
137
149
  (0, core_1.Property)({ columnType: "text", nullable: true }),
138
150
  __metadata("design:type", Object)
@@ -1 +1 @@
1
- {"version":3,"file":"line-item.js","sourceRoot":"","sources":["../../src/models/line-item.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AACA,qDAMkC;AAClC,0CAawB;AACxB,kDAAyB;AACzB,kFAAuD;AACvD,8EAAkD;AAUlD,MAAM,WAAW,GAAG,IAAA,sCAA8B,EAAC;IACjD,IAAI,EAAE,uBAAuB;IAC7B,SAAS,EAAE,gBAAgB;IAC3B,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,oBAAoB;CAC5B,CAAC,CAAC,aAAa,CAAA;AAEhB,MAAM,cAAc,GAAG,IAAA,sCAA8B,EAAC;IACpD,IAAI,EAAE,0BAA0B;IAChC,SAAS,EAAE,gBAAgB;IAC3B,OAAO,EAAE,YAAY;IACrB,KAAK,EAAE,+CAA+C;CACvD,CAAC,CAAC,aAAa,CAAA;AAEhB,MAAM,cAAc,GAAG,IAAA,sCAA8B,EAAC;IACpD,IAAI,EAAE,0BAA0B;IAChC,SAAS,EAAE,gBAAgB;IAC3B,OAAO,EAAE,YAAY;IACrB,KAAK,EAAE,+CAA+C;CACvD,CAAC,CAAC,aAAa,CAAA;AAEhB,MAAM,cAAc,GAAG,IAAA,sCAA8B,EAAC;IACpD,SAAS,EAAE,gBAAgB;IAC3B,OAAO,EAAE,YAAY;IACrB,KAAK,EAAE,wBAAwB;CAChC,CAAC,CAAC,aAAa,CAAA;AAID,IAAM,QAAQ,GAAd,MAAM,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tD;IAHC,IAAA,gBAAS,EAAC,GAAG,EAAE,CAAC,8BAAkB,EAAE,CAAC,UAAU,EAAE,EAAE,CAAC,UAAU,CAAC,IAAI,EAAE;QACpE,OAAO,EAAE,CAAC,cAAO,CAAC,OAAO,EAAE,aAAa,CAAQ;KACjD,CAAC;;6CACyD;AAG3D;IADC,IAAA,eAAQ,EAAC,EAAE,UAAU,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CACH;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;4CAAA;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;4CAAA;AAIhB;IAFC,cAAc,EAAE;IAChB,IAAA,eAAQ,EAAC,EAAE,UAAU,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CAC1B;AAG9B;IADC,IAAA,mBAAY,GAAE;;;;wCAGd;AAGD;IADC,IAAA,aAAM,GAAE;;;;sCAGR;AArIkB,QAAQ;IAF5B,IAAA,aAAM,EAAC,EAAE,SAAS,EAAE,gBAAgB,EAAE,CAAC;IACvC,IAAA,aAAM,EAAC,gBAAQ,CAAC,kCAAkC,CAAC;GAC/B,QAAQ,CAsI5B;kBAtIoB,QAAQ"}
@@ -1 +1 @@
1
- {"root":["../src/index.ts","../src/migrations/Migration20240222170223.ts","../src/migrations/Migration20240831125857.ts","../src/models/address.ts","../src/models/adjustment-line.ts","../src/models/cart.ts","../src/models/index.ts","../src/models/line-item-adjustment.ts","../src/models/line-item-tax-line.ts","../src/models/line-item.ts","../src/models/shipping-method-adjustment.ts","../src/models/shipping-method-tax-line.ts","../src/models/shipping-method.ts","../src/models/tax-line.ts","../src/services/cart-module.ts","../src/services/index.ts","../src/types/address.ts","../src/types/cart.ts","../src/types/index.ts","../src/types/line-item-adjustment.ts","../src/types/line-item-tax-line.ts","../src/types/line-item.ts","../src/types/shipping-method-adjustment.ts","../src/types/shipping-method-tax-line.ts","../src/types/shipping-method.ts","../src/types/tax-line.ts"],"version":"5.6.2"}
1
+ {"root":["../src/index.ts","../src/migrations/Migration20240222170223.ts","../src/migrations/Migration20240831125857.ts","../src/migrations/Migration20241106085918.ts","../src/models/address.ts","../src/models/adjustment-line.ts","../src/models/cart.ts","../src/models/index.ts","../src/models/line-item-adjustment.ts","../src/models/line-item-tax-line.ts","../src/models/line-item.ts","../src/models/shipping-method-adjustment.ts","../src/models/shipping-method-tax-line.ts","../src/models/shipping-method.ts","../src/models/tax-line.ts","../src/services/cart-module.ts","../src/services/index.ts","../src/types/address.ts","../src/types/cart.ts","../src/types/index.ts","../src/types/line-item-adjustment.ts","../src/types/line-item-tax-line.ts","../src/types/line-item.ts","../src/types/shipping-method-adjustment.ts","../src/types/shipping-method-tax-line.ts","../src/types/shipping-method.ts","../src/types/tax-line.ts"],"version":"5.6.2"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medusajs/cart",
3
- "version": "2.0.2-snapshot-20241105102007",
3
+ "version": "2.0.3-preview-20241107090147",
4
4
  "description": "Medusa Cart module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -37,7 +37,8 @@
37
37
  "orm:cache:clear": " MIKRO_ORM_CLI=./mikro-orm.config.dev.ts medusa-mikro-orm cache:clear"
38
38
  },
39
39
  "devDependencies": {
40
- "@medusajs/test-utils": "2.0.2-snapshot-20241105102007",
40
+ "@medusajs/framework": "2.0.3-preview-20241107090147",
41
+ "@medusajs/test-utils": "2.0.3-preview-20241107090147",
41
42
  "@mikro-orm/cli": "5.9.7",
42
43
  "@mikro-orm/core": "5.9.7",
43
44
  "@mikro-orm/migrations": "5.9.7",
@@ -50,7 +51,7 @@
50
51
  "typescript": "^5.6.2"
51
52
  },
52
53
  "peerDependencies": {
53
- "@medusajs/framework": "2.0.2-snapshot-20241105102007",
54
+ "@medusajs/framework": "2.0.3-preview-20241107090147",
54
55
  "@mikro-orm/core": "5.9.7",
55
56
  "@mikro-orm/migrations": "5.9.7",
56
57
  "@mikro-orm/postgresql": "5.9.7",