@medusajs/product 0.4.0-snapshot-20240429113131 → 1.0.0-rc-20241001083650

Sign up to get free protection for your applications and to get access to all the features.
Files changed (119) hide show
  1. package/README.md +2 -4
  2. package/dist/index.d.ts +6 -7
  3. package/dist/index.d.ts.map +1 -0
  4. package/dist/index.js +6 -24
  5. package/dist/index.js.map +1 -0
  6. package/dist/joiner-config.d.ts +2 -16
  7. package/dist/joiner-config.d.ts.map +1 -0
  8. package/dist/joiner-config.js +23 -77
  9. package/dist/joiner-config.js.map +1 -0
  10. package/dist/migrations/InitialSetup20240401153642.d.ts +2 -1
  11. package/dist/migrations/InitialSetup20240401153642.d.ts.map +1 -0
  12. package/dist/migrations/InitialSetup20240401153642.js +3 -2
  13. package/dist/migrations/InitialSetup20240401153642.js.map +1 -0
  14. package/dist/migrations/Migration20240601111544.d.ts +6 -0
  15. package/dist/migrations/Migration20240601111544.d.ts.map +1 -0
  16. package/dist/migrations/Migration20240601111544.js +16 -0
  17. package/dist/migrations/Migration20240601111544.js.map +1 -0
  18. package/dist/migrations/Migration202408271511.d.ts +6 -0
  19. package/dist/migrations/Migration202408271511.d.ts.map +1 -0
  20. package/dist/migrations/Migration202408271511.js +14 -0
  21. package/dist/migrations/Migration202408271511.js.map +1 -0
  22. package/dist/models/index.d.ts +1 -0
  23. package/dist/models/index.d.ts.map +1 -0
  24. package/dist/models/index.js +1 -0
  25. package/dist/models/index.js.map +1 -0
  26. package/dist/models/product-category.d.ts +3 -1
  27. package/dist/models/product-category.d.ts.map +1 -0
  28. package/dist/models/product-category.js +18 -18
  29. package/dist/models/product-category.js.map +1 -0
  30. package/dist/models/product-collection.d.ts +1 -0
  31. package/dist/models/product-collection.d.ts.map +1 -0
  32. package/dist/models/product-collection.js +2 -1
  33. package/dist/models/product-collection.js.map +1 -0
  34. package/dist/models/product-image.d.ts +1 -0
  35. package/dist/models/product-image.d.ts.map +1 -0
  36. package/dist/models/product-image.js +2 -1
  37. package/dist/models/product-image.js.map +1 -0
  38. package/dist/models/product-option-value.d.ts +1 -0
  39. package/dist/models/product-option-value.d.ts.map +1 -0
  40. package/dist/models/product-option-value.js +3 -2
  41. package/dist/models/product-option-value.js.map +1 -0
  42. package/dist/models/product-option.d.ts +1 -0
  43. package/dist/models/product-option.d.ts.map +1 -0
  44. package/dist/models/product-option.js +3 -2
  45. package/dist/models/product-option.js.map +1 -0
  46. package/dist/models/product-tag.d.ts +1 -0
  47. package/dist/models/product-tag.d.ts.map +1 -0
  48. package/dist/models/product-tag.js +2 -1
  49. package/dist/models/product-tag.js.map +1 -0
  50. package/dist/models/product-type.d.ts +1 -0
  51. package/dist/models/product-type.d.ts.map +1 -0
  52. package/dist/models/product-type.js +2 -1
  53. package/dist/models/product-type.js.map +1 -0
  54. package/dist/models/product-variant.d.ts +1 -1
  55. package/dist/models/product-variant.d.ts.map +1 -0
  56. package/dist/models/product-variant.js +4 -17
  57. package/dist/models/product-variant.js.map +1 -0
  58. package/dist/models/product.d.ts +2 -1
  59. package/dist/models/product.d.ts.map +1 -0
  60. package/dist/models/product.js +5 -4
  61. package/dist/models/product.js.map +1 -0
  62. package/dist/repositories/index.d.ts +1 -1
  63. package/dist/repositories/index.d.ts.map +1 -0
  64. package/dist/repositories/index.js +2 -3
  65. package/dist/repositories/index.js.map +1 -0
  66. package/dist/repositories/product-category.d.ts +602 -20
  67. package/dist/repositories/product-category.d.ts.map +1 -0
  68. package/dist/repositories/product-category.js +273 -210
  69. package/dist/repositories/product-category.js.map +1 -0
  70. package/dist/repositories/product.d.ts +3 -2
  71. package/dist/repositories/product.d.ts.map +1 -0
  72. package/dist/repositories/product.js +2 -1
  73. package/dist/repositories/product.js.map +1 -0
  74. package/dist/schema/index.d.ts +3 -0
  75. package/dist/schema/index.d.ts.map +1 -0
  76. package/dist/schema/index.js +151 -0
  77. package/dist/schema/index.js.map +1 -0
  78. package/dist/services/index.d.ts +1 -1
  79. package/dist/services/index.d.ts.map +1 -0
  80. package/dist/services/index.js +2 -3
  81. package/dist/services/index.js.map +1 -0
  82. package/dist/services/product-category.d.ts +12 -8
  83. package/dist/services/product-category.d.ts.map +1 -0
  84. package/dist/services/product-category.js +38 -14
  85. package/dist/services/product-category.js.map +1 -0
  86. package/dist/services/product-module-service.d.ts +85 -79
  87. package/dist/services/product-module-service.d.ts.map +1 -0
  88. package/dist/services/product-module-service.js +364 -200
  89. package/dist/services/product-module-service.js.map +1 -0
  90. package/dist/tsconfig.tsbuildinfo +1 -0
  91. package/dist/types/index.d.ts +9 -2
  92. package/dist/types/index.d.ts.map +1 -0
  93. package/dist/types/index.js +1 -0
  94. package/dist/types/index.js.map +1 -0
  95. package/dist/utils/events.d.ts +147 -0
  96. package/dist/utils/events.d.ts.map +1 -0
  97. package/dist/utils/events.js +115 -0
  98. package/dist/utils/events.js.map +1 -0
  99. package/dist/utils/index.d.ts +2 -2
  100. package/dist/utils/index.d.ts.map +1 -0
  101. package/dist/utils/index.js +16 -9
  102. package/dist/utils/index.js.map +1 -0
  103. package/package.json +21 -24
  104. package/dist/initialize/index.d.ts +0 -4
  105. package/dist/initialize/index.js +0 -17
  106. package/dist/loaders/connection.d.ts +0 -4
  107. package/dist/loaders/connection.js +0 -40
  108. package/dist/loaders/container.d.ts +0 -2
  109. package/dist/loaders/container.js +0 -34
  110. package/dist/loaders/index.d.ts +0 -2
  111. package/dist/loaders/index.js +0 -18
  112. package/dist/module-definition.d.ts +0 -4
  113. package/dist/module-definition.js +0 -50
  114. package/dist/scripts/bin/run-seed.d.ts +0 -3
  115. package/dist/scripts/bin/run-seed.js +0 -52
  116. package/dist/scripts/seed-utils.d.ts +0 -5
  117. package/dist/scripts/seed-utils.js +0 -40
  118. package/dist/services/product.d.ts +0 -21
  119. package/dist/services/product.js +0 -63
package/README.md CHANGED
@@ -4,7 +4,7 @@ The Product Module gives you access Products, Variants, Categories, and more thr
4
4
 
5
5
  [Product Module documentation](https://docs.medusajs.com/modules/product/serverless-module) | [Medusa Website](https://medusajs.com/) | [Medusa Repository](https://github.com/medusajs/medusa)
6
6
 
7
- > The Product Module is currently in beta. The beta version comes with limited functionality, primarily centered around retrieving products. In the official version, the product module will be fully-fledged and on par with the product functionality in our core package.
7
+ > The Product Module is currently in beta. The beta version comes with limited functionality, primarily centered around retrieving products. In the official version, the product module will be fully-fledged and on par with the product functionality in our core package.
8
8
 
9
9
  ---
10
10
 
@@ -23,7 +23,7 @@ npm install @medusajs/product
23
23
  2\. Add Database URL to your environment variables
24
24
 
25
25
  ```bash
26
- POSTGRES_URL=<DATABASE_URL>
26
+ DATABASE_URL=<URL_GOES_HERE>
27
27
  ```
28
28
 
29
29
  3\. Apply database migrations
@@ -120,14 +120,12 @@ const variantsData = [
120
120
  title: "variant title",
121
121
  sku: "sku 1",
122
122
  product: { id: productsData[0].id },
123
- inventory_quantity: 10,
124
123
  },
125
124
  {
126
125
  id: "test-2",
127
126
  title: "variant title",
128
127
  sku: "sku 2",
129
128
  product: { id: productsData[1].id },
130
- inventory_quantity: 10,
131
129
  },
132
130
  ]
133
131
 
package/dist/index.d.ts CHANGED
@@ -1,7 +1,6 @@
1
- import { moduleDefinition, revertMigration, runMigrations } from "./module-definition";
2
- export default moduleDefinition;
3
- export { revertMigration, runMigrations };
4
- export * from "./initialize";
5
- export * from "./models";
6
- export * from "./services";
7
- export * from "./types";
1
+ import { ProductModuleService } from "./services";
2
+ declare const _default: import("@medusajs/types").ModuleExports<typeof ProductModuleService> & {
3
+ linkable: Record<string, any>;
4
+ };
5
+ export default _default;
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAA;;;;AAEhD,wBAEE"}
package/dist/index.js CHANGED
@@ -1,26 +1,8 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
2
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.runMigrations = exports.revertMigration = void 0;
18
- const module_definition_1 = require("./module-definition");
19
- Object.defineProperty(exports, "revertMigration", { enumerable: true, get: function () { return module_definition_1.revertMigration; } });
20
- Object.defineProperty(exports, "runMigrations", { enumerable: true, get: function () { return module_definition_1.runMigrations; } });
21
- exports.default = module_definition_1.moduleDefinition;
22
- __exportStar(require("./initialize"), exports);
23
- // TODO: remove export from models and services
24
- __exportStar(require("./models"), exports);
25
- __exportStar(require("./services"), exports);
26
- __exportStar(require("./types"), exports);
3
+ const utils_1 = require("@medusajs/framework/utils");
4
+ const _services_1 = require("./services");
5
+ exports.default = (0, utils_1.Module)(utils_1.Modules.PRODUCT, {
6
+ service: _services_1.ProductModuleService,
7
+ });
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;AAAA,qDAA2D;AAC3D,yCAAgD;AAEhD,kBAAe,IAAA,cAAM,EAAC,eAAO,CAAC,OAAO,EAAE;IACrC,OAAO,EAAE,gCAAoB;CAC9B,CAAC,CAAA"}
@@ -1,16 +1,2 @@
1
- import { ModuleJoinerConfig } from "@medusajs/types";
2
- import { MapToConfig } from "@medusajs/utils";
3
- export declare const LinkableKeys: {
4
- product_id: string;
5
- product_handle: string;
6
- variant_id: string;
7
- variant_sku: string;
8
- product_option_id: string;
9
- product_type_id: string;
10
- product_category_id: string;
11
- product_collection_id: string;
12
- product_tag_id: string;
13
- product_image_id: string;
14
- };
15
- export declare const entityNameToLinkableKeysMap: MapToConfig;
16
- export declare const joinerConfig: ModuleJoinerConfig;
1
+ export declare const joinerConfig: Omit<import("@medusajs/types").ModuleJoinerConfig, "serviceName" | "primaryKeys" | "alias" | "linkableKeys"> & Required<Pick<import("@medusajs/types").ModuleJoinerConfig, "serviceName" | "primaryKeys" | "alias" | "linkableKeys">>;
2
+ //# sourceMappingURL=joiner-config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"joiner-config.d.ts","sourceRoot":"","sources":["../src/joiner-config.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,YAAY,uOA0BvB,CAAA"}
@@ -3,90 +3,36 @@ 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.joinerConfig = exports.entityNameToLinkableKeysMap = exports.LinkableKeys = void 0;
7
- const modules_sdk_1 = require("@medusajs/modules-sdk");
6
+ exports.joinerConfig = void 0;
7
+ const utils_1 = require("@medusajs/framework/utils");
8
8
  const _models_1 = require("./models");
9
9
  const product_image_1 = __importDefault(require("./models/product-image"));
10
- exports.LinkableKeys = {
11
- product_id: _models_1.Product.name,
12
- product_handle: _models_1.Product.name,
13
- variant_id: _models_1.ProductVariant.name,
14
- variant_sku: _models_1.ProductVariant.name,
15
- product_option_id: _models_1.ProductOption.name,
16
- product_type_id: _models_1.ProductType.name,
17
- product_category_id: _models_1.ProductCategory.name,
18
- product_collection_id: _models_1.ProductCollection.name,
19
- product_tag_id: _models_1.ProductTag.name,
20
- product_image_id: product_image_1.default.name,
21
- };
22
- const entityLinkableKeysMap = {};
23
- Object.entries(exports.LinkableKeys).forEach(([key, value]) => {
24
- entityLinkableKeysMap[value] ?? (entityLinkableKeysMap[value] = []);
25
- entityLinkableKeysMap[value].push({
26
- mapTo: key,
27
- valueFrom: key.split("_").pop(),
28
- });
29
- });
30
- exports.entityNameToLinkableKeysMap = entityLinkableKeysMap;
31
- exports.joinerConfig = {
32
- serviceName: modules_sdk_1.Modules.PRODUCT,
10
+ const schema_1 = __importDefault(require("./schema"));
11
+ exports.joinerConfig = (0, utils_1.defineJoinerConfig)(utils_1.Modules.PRODUCT, {
12
+ schema: schema_1.default,
13
+ models: [
14
+ _models_1.Product,
15
+ _models_1.ProductVariant,
16
+ _models_1.ProductOption,
17
+ _models_1.ProductType,
18
+ product_image_1.default,
19
+ _models_1.ProductTag,
20
+ _models_1.ProductCollection,
21
+ _models_1.ProductCategory,
22
+ ],
23
+ linkableKeys: {
24
+ // Merged with the autogenerated ones to maintain backward compatibility
25
+ variant_id: "ProductVariant",
26
+ },
33
27
  primaryKeys: ["id", "handle"],
34
- linkableKeys: exports.LinkableKeys,
35
28
  alias: [
36
- {
37
- name: ["product", "products"],
38
- args: {
39
- entity: "Product",
40
- },
41
- },
42
29
  {
43
30
  name: ["product_variant", "product_variants", "variant", "variants"],
31
+ entity: "ProductVariant",
44
32
  args: {
45
- entity: "ProductVariant",
46
- methodSuffix: "Variants",
47
- },
48
- },
49
- {
50
- name: ["product_option", "product_options"],
51
- args: {
52
- entity: "ProductOption",
53
- methodSuffix: "Options",
54
- },
55
- },
56
- {
57
- name: ["product_type", "product_types"],
58
- args: {
59
- entity: "ProductType",
60
- methodSuffix: "Types",
61
- },
62
- },
63
- {
64
- name: ["product_image", "product_images"],
65
- args: {
66
- entity: "ProductImage",
67
- methodSuffix: "Images",
68
- },
69
- },
70
- {
71
- name: ["product_tag", "product_tags"],
72
- args: {
73
- entity: "ProductTag",
74
- methodSuffix: "Tags",
75
- },
76
- },
77
- {
78
- name: ["product_collection", "product_collections"],
79
- args: {
80
- entity: "ProductCollection",
81
- methodSuffix: "Collections",
82
- },
83
- },
84
- {
85
- name: ["product_category", "product_categories"],
86
- args: {
87
- entity: "ProductCategory",
88
- methodSuffix: "Categories",
33
+ methodSuffix: "ProductVariants",
89
34
  },
90
35
  },
91
36
  ],
92
- };
37
+ });
38
+ //# sourceMappingURL=joiner-config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"joiner-config.js","sourceRoot":"","sources":["../src/joiner-config.ts"],"names":[],"mappings":";;;;;;AAAA,qDAAuE;AACvE,qCAQgB;AAChB,2EAAiD;AACjD,sDAA4C;AAE/B,QAAA,YAAY,GAAG,IAAA,0BAAkB,EAAC,eAAO,CAAC,OAAO,EAAE;IAC9D,MAAM,EAAN,gBAAM;IACN,MAAM,EAAE;QACN,iBAAO;QACP,wBAAc;QACd,uBAAa;QACb,qBAAW;QACX,uBAAY;QACZ,oBAAU;QACV,2BAAiB;QACjB,yBAAe;KAChB;IACD,YAAY,EAAE;QACZ,wEAAwE;QACxE,UAAU,EAAE,gBAAgB;KAC7B;IACD,WAAW,EAAE,CAAC,IAAI,EAAE,QAAQ,CAAC;IAC7B,KAAK,EAAE;QACL;YACE,IAAI,EAAE,CAAC,iBAAiB,EAAE,kBAAkB,EAAE,SAAS,EAAE,UAAU,CAAC;YACpE,MAAM,EAAE,gBAAgB;YACxB,IAAI,EAAE;gBACJ,YAAY,EAAE,iBAAiB;aAChC;SACF;KACF;CACF,CAAC,CAAA"}
@@ -1,4 +1,5 @@
1
- import { Migration } from '@mikro-orm/migrations';
1
+ import { Migration } from "@mikro-orm/migrations";
2
2
  export declare class InitialSetup20240315083440 extends Migration {
3
3
  up(): Promise<void>;
4
4
  }
5
+ //# sourceMappingURL=InitialSetup20240401153642.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InitialSetup20240401153642.d.ts","sourceRoot":"","sources":["../../src/migrations/InitialSetup20240401153642.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAEjD,qBAAa,0BAA2B,SAAQ,SAAS;IACjD,EAAE,IAAI,OAAO,CAAC,IAAI,CAAC;CAuM1B"}
@@ -8,7 +8,7 @@ class InitialSetup20240315083440 extends migrations_1.Migration {
8
8
  if (productTables.length > 0) {
9
9
  // This is so we can still run the api tests, remove completely once that is not needed
10
10
  this.addSql(`alter table "product_option_value" alter column "variant_id" drop not null;`);
11
- this.addSql(`alter table "product_variant" alter column "inventory_quantity" drop not null;`);
11
+ this.addSql(`alter table "product_variant" drop column "inventory_quantity";`);
12
12
  this.addSql(`alter table "product_category" add column "deleted_at" timestamptz null;`);
13
13
  }
14
14
  /* --- ENTITY TABLES AND INDICES --- */
@@ -17,7 +17,7 @@ class InitialSetup20240315083440 extends migrations_1.Migration {
17
17
  this.addSql('create index if not exists "IDX_product_type_id" on "product" ("type_id") where deleted_at is null;');
18
18
  this.addSql('create index if not exists "IDX_product_collection_id" on "product" ("collection_id") where deleted_at is null;');
19
19
  this.addSql('create index if not exists "IDX_product_deleted_at" on "product" ("deleted_at");');
20
- this.addSql('create table if not exists "product_variant" ("id" text not null, "title" text not null, "sku" text null, "barcode" text null, "ean" text null, "upc" text null, "inventory_quantity" numeric not null default 100, "allow_backorder" boolean not null default false, "manage_inventory" boolean not null default true, "hs_code" text null, "origin_country" text null, "mid_code" text null, "material" text null, "weight" numeric null, "length" numeric null, "height" numeric null, "width" numeric null, "metadata" jsonb null, "variant_rank" numeric null default 0, "product_id" text null, "created_at" timestamptz not null default now(), "updated_at" timestamptz not null default now(), "deleted_at" timestamptz null, constraint "product_variant_pkey" primary key ("id"));');
20
+ this.addSql('create table if not exists "product_variant" ("id" text not null, "title" text not null, "sku" text null, "barcode" text null, "ean" text null, "upc" text null, "allow_backorder" boolean not null default false, "manage_inventory" boolean not null default true, "hs_code" text null, "origin_country" text null, "mid_code" text null, "material" text null, "weight" numeric null, "length" numeric null, "height" numeric null, "width" numeric null, "metadata" jsonb null, "variant_rank" numeric null default 0, "product_id" text null, "created_at" timestamptz not null default now(), "updated_at" timestamptz not null default now(), "deleted_at" timestamptz null, constraint "product_variant_pkey" primary key ("id"));');
21
21
  this.addSql('create unique index if not exists "IDX_product_variant_ean_unique" on "product_variant" (ean) where deleted_at is null;');
22
22
  this.addSql('create unique index if not exists "IDX_product_variant_upc_unique" on "product_variant" (upc) where deleted_at is null;');
23
23
  this.addSql('create unique index if not exists "IDX_product_variant_sku_unique" on "product_variant" (sku) where deleted_at is null;');
@@ -71,3 +71,4 @@ class InitialSetup20240315083440 extends migrations_1.Migration {
71
71
  }
72
72
  }
73
73
  exports.InitialSetup20240315083440 = InitialSetup20240315083440;
74
+ //# sourceMappingURL=InitialSetup20240401153642.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InitialSetup20240401153642.js","sourceRoot":"","sources":["../../src/migrations/InitialSetup20240401153642.ts"],"names":[],"mappings":";;;AAAA,sDAAiD;AAEjD,MAAa,0BAA2B,SAAQ,sBAAS;IACvD,KAAK,CAAC,EAAE;QACN,MAAM,aAAa,GAAG,MAAM,IAAI,CAAC,OAAO,CACtC,kGAAkG,CACnG,CAAA;QAED,IAAI,aAAa,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC7B,uFAAuF;YACvF,IAAI,CAAC,MAAM,CACT,6EAA6E,CAC9E,CAAA;YACD,IAAI,CAAC,MAAM,CACT,iEAAiE,CAClE,CAAA;YACD,IAAI,CAAC,MAAM,CACT,0EAA0E,CAC3E,CAAA;QACH,CAAC;QAED,uCAAuC;QACvC,IAAI,CAAC,MAAM,CACT,2yBAA2yB,CAC5yB,CAAA;QACD,IAAI,CAAC,MAAM,CACT,+GAA+G,CAChH,CAAA;QACD,IAAI,CAAC,MAAM,CACT,qGAAqG,CACtG,CAAA;QACD,IAAI,CAAC,MAAM,CACT,iHAAiH,CAClH,CAAA;QACD,IAAI,CAAC,MAAM,CACT,kFAAkF,CACnF,CAAA;QAED,IAAI,CAAC,MAAM,CACT,4sBAA4sB,CAC7sB,CAAA;QACD,IAAI,CAAC,MAAM,CACT,yHAAyH,CAC1H,CAAA;QACD,IAAI,CAAC,MAAM,CACT,yHAAyH,CAC1H,CAAA;QACD,IAAI,CAAC,MAAM,CAC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ACvG,CAAA;QACD,wHAAwH;QACxH,IAAI,CAAC,MAAM,CAAC,yDAAyD,CAAC,CAAA;QAEtE,0BAA0B;QAC1B,IAAI,CAAC,MAAM,CACT,sLAAsL,CACvL,CAAA;QACD,IAAI,CAAC,MAAM,CACT,8KAA8K,CAC/K,CAAA;QACD,IAAI,CAAC,MAAM,CACT,wNAAwN,CACzN,CAAA;QACD,IAAI,CAAC,MAAM,CACT,4MAA4M,CAC7M,CAAA;QAED,0CAA0C;QAC1C,IAAI,CAAC,MAAM,CACT,2LAA2L,CAC5L,CAAA;QACD,IAAI,CAAC,MAAM,CACT,yKAAyK,CAC1K,CAAA;QAED,IAAI,CAAC,MAAM,CACT,yLAAyL,CAC1L,CAAA;QAED,IAAI,CAAC,MAAM,CACT,uLAAuL,CACxL,CAAA;QAED,IAAI,CAAC,MAAM,CACT,wMAAwM,CACzM,CAAA;QAED,IAAI,CAAC,MAAM,CACT,+MAA+M,CAChN,CAAA;QACD,IAAI,CAAC,MAAM,CACT,8NAA8N,CAC/N,CAAA;QAED,IAAI,CAAC,MAAM,CACT,uLAAuL,CACxL,CAAA;QACD,IAAI,CAAC,MAAM,CACT,iLAAiL,CAClL,CAAA;QAED,IAAI,CAAC,MAAM,CACT,mLAAmL,CACpL,CAAA;QACD,IAAI,CAAC,MAAM,CACT,+LAA+L,CAChM,CAAA;QAED,IAAI,CAAC,MAAM,CACT,2MAA2M,CAC5M,CAAA;QACD,IAAI,CAAC,MAAM,CACT,sOAAsO,CACvO,CAAA;QAED,IAAI,CAAC,MAAM,CACT,oNAAoN,CACrN,CAAA;IACH,CAAC;CACF;AAxMD,gEAwMC"}
@@ -0,0 +1,6 @@
1
+ import { Migration } from "@mikro-orm/migrations";
2
+ export declare class Migration20240601111544 extends Migration {
3
+ up(): Promise<void>;
4
+ down(): Promise<void>;
5
+ }
6
+ //# sourceMappingURL=Migration20240601111544.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Migration20240601111544.d.ts","sourceRoot":"","sources":["../../src/migrations/Migration20240601111544.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAEjD,qBAAa,uBAAwB,SAAQ,SAAS;IAC9C,EAAE,IAAI,OAAO,CAAC,IAAI,CAAC;IAUnB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAS5B"}
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Migration20240601111544 = void 0;
4
+ const migrations_1 = require("@mikro-orm/migrations");
5
+ class Migration20240601111544 extends migrations_1.Migration {
6
+ async up() {
7
+ this.addSql('alter table if exists "product_category" alter column "rank" type integer using ("rank"::integer);');
8
+ this.addSql('alter table if exists "product_variant" alter column "variant_rank" type integer using ("variant_rank"::integer);');
9
+ }
10
+ async down() {
11
+ this.addSql('alter table if exists "product_category" alter column "rank" type numeric using ("rank"::numeric);');
12
+ this.addSql('alter table if exists "product_variant" alter column "variant_rank" type numeric using ("variant_rank"::numeric);');
13
+ }
14
+ }
15
+ exports.Migration20240601111544 = Migration20240601111544;
16
+ //# sourceMappingURL=Migration20240601111544.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Migration20240601111544.js","sourceRoot":"","sources":["../../src/migrations/Migration20240601111544.ts"],"names":[],"mappings":";;;AAAA,sDAAiD;AAEjD,MAAa,uBAAwB,SAAQ,sBAAS;IACpD,KAAK,CAAC,EAAE;QACN,IAAI,CAAC,MAAM,CACT,oGAAoG,CACrG,CAAA;QAED,IAAI,CAAC,MAAM,CACT,mHAAmH,CACpH,CAAA;IACH,CAAC;IAED,KAAK,CAAC,IAAI;QACR,IAAI,CAAC,MAAM,CACT,oGAAoG,CACrG,CAAA;QAED,IAAI,CAAC,MAAM,CACT,mHAAmH,CACpH,CAAA;IACH,CAAC;CACF;AApBD,0DAoBC"}
@@ -0,0 +1,6 @@
1
+ import { Migration } from "@mikro-orm/migrations";
2
+ export declare class Migration202408271511 extends Migration {
3
+ up(): Promise<void>;
4
+ down(): Promise<void>;
5
+ }
6
+ //# sourceMappingURL=Migration202408271511.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Migration202408271511.d.ts","sourceRoot":"","sources":["../../src/migrations/Migration202408271511.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAEjD,qBAAa,qBAAsB,SAAQ,SAAS;IAC5C,EAAE,IAAI,OAAO,CAAC,IAAI,CAAC;IAMnB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAK5B"}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Migration202408271511 = void 0;
4
+ const migrations_1 = require("@mikro-orm/migrations");
5
+ class Migration202408271511 extends migrations_1.Migration {
6
+ async up() {
7
+ this.addSql('alter table if exists "product_category" add column if not exists "metadata" jsonb;');
8
+ }
9
+ async down() {
10
+ this.addSql('alter table if exists "product_category" drop column if exists "metadata";');
11
+ }
12
+ }
13
+ exports.Migration202408271511 = Migration202408271511;
14
+ //# sourceMappingURL=Migration202408271511.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Migration202408271511.js","sourceRoot":"","sources":["../../src/migrations/Migration202408271511.ts"],"names":[],"mappings":";;;AAAA,sDAAiD;AAEjD,MAAa,qBAAsB,SAAQ,sBAAS;IAClD,KAAK,CAAC,EAAE;QACN,IAAI,CAAC,MAAM,CACT,qFAAqF,CACtF,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,IAAI;QACR,IAAI,CAAC,MAAM,CACT,4EAA4E,CAC7E,CAAC;IACJ,CAAC;CACF;AAZD,sDAYC"}
@@ -7,3 +7,4 @@ export { default as ProductVariant } from "./product-variant";
7
7
  export { default as ProductOption } from "./product-option";
8
8
  export { default as ProductOptionValue } from "./product-option-value";
9
9
  export { default as Image } from "./product-image";
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,WAAW,CAAA;AAC9C,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,oBAAoB,CAAA;AAC/D,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AACnE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,eAAe,CAAA;AACrD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,gBAAgB,CAAA;AACvD,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAC7D,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAC3D,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,wBAAwB,CAAA;AACtE,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,iBAAiB,CAAA"}
@@ -22,3 +22,4 @@ var product_option_value_1 = require("./product-option-value");
22
22
  Object.defineProperty(exports, "ProductOptionValue", { enumerable: true, get: function () { return __importDefault(product_option_value_1).default; } });
23
23
  var product_image_1 = require("./product-image");
24
24
  Object.defineProperty(exports, "Image", { enumerable: true, get: function () { return __importDefault(product_image_1).default; } });
25
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":";;;;;;AAAA,qCAA8C;AAArC,mHAAA,OAAO,OAAW;AAC3B,uDAA+D;AAAtD,oIAAA,OAAO,OAAmB;AACnC,2DAAmE;AAA1D,wIAAA,OAAO,OAAqB;AACrC,6CAAqD;AAA5C,0HAAA,OAAO,OAAc;AAC9B,+CAAuD;AAA9C,4HAAA,OAAO,OAAe;AAC/B,qDAA6D;AAApD,kIAAA,OAAO,OAAkB;AAClC,mDAA2D;AAAlD,gIAAA,OAAO,OAAiB;AACjC,+DAAsE;AAA7D,2IAAA,OAAO,OAAsB;AACtC,iDAAkD;AAAzC,uHAAA,OAAO,OAAS"}
@@ -8,15 +8,17 @@ declare class ProductCategory {
8
8
  mpath?: string;
9
9
  is_active?: boolean;
10
10
  is_internal?: boolean;
11
- rank?: number;
11
+ rank: number;
12
12
  parent_category_id?: string | null;
13
13
  parent_category?: ProductCategory;
14
14
  category_children: Collection<ProductCategory, object>;
15
15
  created_at?: Date;
16
16
  updated_at?: Date;
17
17
  deleted_at?: Date;
18
+ metadata: Record<string, unknown> | null;
18
19
  products: Collection<Product, object>;
19
20
  onInit(): Promise<void>;
20
21
  onCreate(args: EventArgs<ProductCategory>): Promise<void>;
21
22
  }
22
23
  export default ProductCategory;
24
+ //# sourceMappingURL=product-category.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product-category.d.ts","sourceRoot":"","sources":["../../src/models/product-category.ts"],"names":[],"mappings":"AAOA,OAAO,EAEL,UAAU,EAEV,SAAS,EASV,MAAM,iBAAiB,CAAA;AACxB,OAAO,OAAO,MAAM,WAAW,CAAA;AAsB/B,cAEM,eAAe;IAEnB,EAAE,EAAG,MAAM,CAAA;IAIX,IAAI,CAAC,EAAE,MAAM,CAAA;IAIb,WAAW,CAAC,EAAE,MAAM,CAAA;IAIpB,MAAM,CAAC,EAAE,MAAM,CAAA;IAGf,KAAK,CAAC,EAAE,MAAM,CAAA;IAGd,SAAS,CAAC,EAAE,OAAO,CAAA;IAGnB,WAAW,CAAC,EAAE,OAAO,CAAA;IAOrB,IAAI,EAAE,MAAM,CAAA;IASZ,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAGlC,eAAe,CAAC,EAAE,eAAe,CAAA;IAMjC,iBAAiB,sCAAwC;IAOzD,UAAU,CAAC,EAAE,IAAI,CAAA;IAQjB,UAAU,CAAC,EAAE,IAAI,CAAA;IAIjB,UAAU,CAAC,EAAE,IAAI,CAAA;IAGjB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAO;IAG/C,QAAQ,8BAAgC;IAGlC,MAAM;IAMN,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC,eAAe,CAAC;CAUhD;AAED,eAAe,eAAe,CAAA"}
@@ -11,9 +11,8 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  var __importDefault = (this && this.__importDefault) || function (mod) {
12
12
  return (mod && mod.__esModule) ? mod : { "default": mod };
13
13
  };
14
- var ProductCategory_1;
15
14
  Object.defineProperty(exports, "__esModule", { value: true });
16
- const utils_1 = require("@medusajs/utils");
15
+ const utils_1 = require("@medusajs/framework/utils");
17
16
  const core_1 = require("@mikro-orm/core");
18
17
  const product_1 = __importDefault(require("./product"));
19
18
  const categoryHandleIndexName = "IDX_category_handle_unique";
@@ -34,32 +33,23 @@ const categoryMpathIndexStatement = (0, utils_1.createPsqlIndexStatementHelper)(
34
33
  });
35
34
  categoryMpathIndexStatement.MikroORMIndex();
36
35
  categoryHandleIndexStatement.MikroORMIndex();
37
- let ProductCategory = ProductCategory_1 = class ProductCategory {
36
+ let ProductCategory = class ProductCategory {
38
37
  constructor() {
39
38
  this.category_children = new core_1.Collection(this);
39
+ this.metadata = null;
40
40
  this.products = new core_1.Collection(this);
41
41
  }
42
42
  async onInit() {
43
43
  this.id = (0, utils_1.generateEntityId)(this.id, "pcat");
44
- this.parent_category_id ?? (this.parent_category_id = this.parent_category?.id ?? null);
44
+ this.parent_category_id ??= this.parent_category?.id ?? null;
45
45
  }
46
46
  async onCreate(args) {
47
47
  this.id = (0, utils_1.generateEntityId)(this.id, "pcat");
48
- this.parent_category_id ?? (this.parent_category_id = this.parent_category?.id ?? null);
48
+ this.parent_category_id ??= this.parent_category?.id ?? null;
49
49
  if (!this.handle && this.name) {
50
50
  this.handle = (0, utils_1.kebabCase)(this.name);
51
51
  }
52
- const { em } = args;
53
- let parentCategory = null;
54
- if (this.parent_category_id) {
55
- parentCategory = await em.findOne(ProductCategory_1, this.parent_category_id);
56
- }
57
- if (parentCategory) {
58
- this.mpath = `${parentCategory?.mpath}${this.id}.`;
59
- }
60
- else {
61
- this.mpath = `${this.id}.`;
62
- }
52
+ this.mpath = `${this.mpath ? this.mpath + "." : ""}${this.id}`;
63
53
  }
64
54
  };
65
55
  __decorate([
@@ -77,6 +67,7 @@ __decorate([
77
67
  __metadata("design:type", String)
78
68
  ], ProductCategory.prototype, "description", void 0);
79
69
  __decorate([
70
+ (0, utils_1.Searchable)(),
80
71
  (0, core_1.Property)({ columnType: "text", nullable: false }),
81
72
  __metadata("design:type", String)
82
73
  ], ProductCategory.prototype, "handle", void 0);
@@ -93,7 +84,11 @@ __decorate([
93
84
  __metadata("design:type", Boolean)
94
85
  ], ProductCategory.prototype, "is_internal", void 0);
95
86
  __decorate([
96
- (0, core_1.Property)({ columnType: "numeric", nullable: false, default: 0 }),
87
+ (0, core_1.Property)({
88
+ columnType: "integer",
89
+ nullable: false,
90
+ default: 0,
91
+ }),
97
92
  __metadata("design:type", Number)
98
93
  ], ProductCategory.prototype, "rank", void 0);
99
94
  __decorate([
@@ -139,6 +134,10 @@ __decorate([
139
134
  (0, core_1.Property)({ columnType: "timestamptz", nullable: true }),
140
135
  __metadata("design:type", Date)
141
136
  ], ProductCategory.prototype, "deleted_at", void 0);
137
+ __decorate([
138
+ (0, core_1.Property)({ columnType: "jsonb", nullable: true }),
139
+ __metadata("design:type", Object)
140
+ ], ProductCategory.prototype, "metadata", void 0);
142
141
  __decorate([
143
142
  (0, core_1.ManyToMany)(() => product_1.default, (product) => product.categories),
144
143
  __metadata("design:type", Object)
@@ -155,8 +154,9 @@ __decorate([
155
154
  __metadata("design:paramtypes", [Object]),
156
155
  __metadata("design:returntype", Promise)
157
156
  ], ProductCategory.prototype, "onCreate", null);
158
- ProductCategory = ProductCategory_1 = __decorate([
157
+ ProductCategory = __decorate([
159
158
  (0, core_1.Entity)({ tableName: "product_category" }),
160
159
  (0, core_1.Filter)(utils_1.DALUtils.mikroOrmSoftDeletableFilterOptions)
161
160
  ], ProductCategory);
162
161
  exports.default = ProductCategory;
162
+ //# sourceMappingURL=product-category.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product-category.js","sourceRoot":"","sources":["../../src/models/product-category.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qDAMkC;AAClC,0CAawB;AACxB,wDAA+B;AAE/B,MAAM,uBAAuB,GAAG,4BAA4B,CAAA;AAC5D,MAAM,4BAA4B,GAAG,IAAA,sCAA8B,EAAC;IAClE,IAAI,EAAE,uBAAuB;IAC7B,SAAS,EAAE,kBAAkB;IAC7B,OAAO,EAAE,CAAC,QAAQ,CAAC;IACnB,MAAM,EAAE,IAAI;IACZ,KAAK,EAAE,oBAAoB;CAC5B,CAAC,CAAA;AAEF,MAAM,sBAAsB,GAAG,2BAA2B,CAAA;AAC1D,MAAM,2BAA2B,GAAG,IAAA,sCAA8B,EAAC;IACjE,IAAI,EAAE,sBAAsB;IAC5B,SAAS,EAAE,kBAAkB;IAC7B,OAAO,EAAE,CAAC,OAAO,CAAC;IAClB,MAAM,EAAE,KAAK;IACb,KAAK,EAAE,oBAAoB;CAC5B,CAAC,CAAA;AAEF,2BAA2B,CAAC,aAAa,EAAE,CAAA;AAC3C,4BAA4B,CAAC,aAAa,EAAE,CAAA;AAG5C,IAAM,eAAe,GAArB,MAAM,eAAe;IAArB;QAgDE,sBAAiB,GAAG,IAAI,iBAAU,CAAkB,IAAI,CAAC,CAAA;QAsBzD,aAAQ,GAAmC,IAAI,CAAA;QAG/C,aAAQ,GAAG,IAAI,iBAAU,CAAU,IAAI,CAAC,CAAA;IAmB1C,CAAC;IAhBO,AAAN,KAAK,CAAC,MAAM;QACV,IAAI,CAAC,EAAE,GAAG,IAAA,wBAAgB,EAAC,IAAI,CAAC,EAAE,EAAE,MAAM,CAAC,CAAA;QAC3C,IAAI,CAAC,kBAAkB,KAAK,IAAI,CAAC,eAAe,EAAE,EAAE,I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E,CAAC;IAClD,IAAA,eAAQ,EAAC,EAAE,UAAU,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BAC3C,IAAI;mDAAA;AAGjB;IADC,IAAA,eAAQ,EAAC,EAAE,UAAU,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDACH;AAG/C;IADC,IAAA,iBAAU,EAAC,GAAG,EAAE,CAAC,iBAAO,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,UAAU,CAAC;;iDACnB;AAGlC;IADL,IAAA,aAAM,GAAE;;;;6CAIR;AAGK;IADL,IAAA,mBAAY,GAAE;;;;+CAUd;AA3FG,eAAe;IAFpB,IAAA,aAAM,EAAC,EAAE,SAAS,EAAE,kBAAkB,EAAE,CAAC;IACzC,IAAA,aAAM,EAAC,gBAAQ,CAAC,kCAAkC,CAAC;GAC9C,eAAe,CA4FpB;AAED,kBAAe,eAAe,CAAA"}
@@ -12,3 +12,4 @@ declare class ProductCollection {
12
12
  onInit(): void;
13
13
  }
14
14
  export default ProductCollection;
15
+ //# sourceMappingURL=product-collection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product-collection.d.ts","sourceRoot":"","sources":["../../src/models/product-collection.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,UAAU,EAQX,MAAM,iBAAiB,CAAA;AASxB,OAAO,OAAO,MAAM,WAAW,CAAA;AAY/B,cAEM,iBAAiB;IAErB,EAAE,EAAG,MAAM,CAAA;IAIX,KAAK,EAAE,MAAM,CAAA;IAGb,MAAM,CAAC,EAAE,MAAM,CAAA;IAGf,QAAQ,8BAAgC;IAGxC,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;IAOzC,UAAU,EAAE,IAAI,CAAA;IAQhB,UAAU,EAAE,IAAI,CAAA;IAIhB,UAAU,CAAC,EAAE,IAAI,CAAA;IAIjB,MAAM;CAOP;AAED,eAAe,iBAAiB,CAAA"}
@@ -13,7 +13,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
13
13
  };
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  const core_1 = require("@mikro-orm/core");
16
- const utils_1 = require("@medusajs/utils");
16
+ const utils_1 = require("@medusajs/framework/utils");
17
17
  const product_1 = __importDefault(require("./product"));
18
18
  const collectionHandleIndexName = "IDX_collection_handle_unique";
19
19
  const collectionHandleIndexStatement = (0, utils_1.createPsqlIndexStatementHelper)({
@@ -90,3 +90,4 @@ ProductCollection = __decorate([
90
90
  (0, core_1.Filter)(utils_1.DALUtils.mikroOrmSoftDeletableFilterOptions)
91
91
  ], ProductCollection);
92
92
  exports.default = ProductCollection;
93
+ //# sourceMappingURL=product-collection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product-collection.js","sourceRoot":"","sources":["../../src/models/product-collection.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,0CAUwB;AAExB,qDAMkC;AAClC,wDAA+B;AAE/B,MAAM,yBAAyB,GAAG,8BAA8B,CAAA;AAChE,MAAM,8BAA8B,GAAG,IAAA,sCAA8B,EAAC;IACpE,IAAI,EAAE,yBAAyB;IAC/B,SAAS,EAAE,oBAAoB;IAC/B,OAAO,EAAE,CAAC,QAAQ,CAAC;IACnB,MAAM,EAAE,IAAI;IACZ,KAAK,EAAE,oBAAoB;CAC5B,CAAC,CAAA;AAEF,8BAA8B,CAAC,aAAa,EAAE,CAAA;AAG9C,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IAAvB;QAYE,aAAQ,GAAG,IAAI,iBAAU,CAAU,IAAI,CAAC,CAAA;IAiC1C,CAAC;IAPC,MAAM;QACJ,IAAI,CAAC,EAAE,GAAG,IAAA,wBAAgB,EAAC,IAAI,CAAC,EAAE,EAAE,MAAM,CAAC,CAAA;QAE3C,IAAI,CAAC,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC;YAC/B,I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FtB,IAAA,aAAM,EAAC,EAAE,SAAS,EAAE,oBAAoB,EAAE,CAAC;IAC3C,IAAA,aAAM,EAAC,gBAAQ,CAAC,kCAAkC,CAAC;GAC9C,iBAAiB,CA6CtB;AAED,kBAAe,iBAAiB,CAAA"}
@@ -12,3 +12,4 @@ declare class ProductImage {
12
12
  onCreate(): void;
13
13
  }
14
14
  export default ProductImage;
15
+ //# sourceMappingURL=product-image.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product-image.d.ts","sourceRoot":"","sources":["../../src/models/product-image.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,UAAU,EAQX,MAAM,iBAAiB,CAAA;AAOxB,OAAO,OAAO,MAAM,WAAW,CAAA;AAY/B,cAEM,YAAY;IAEhB,EAAE,EAAG,MAAM,CAAA;IAGX,GAAG,EAAE,MAAM,CAAA;IAGX,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;IAOzC,UAAU,EAAE,IAAI,CAAA;IAQhB,UAAU,EAAE,IAAI,CAAA;IAIhB,UAAU,CAAC,EAAE,IAAI,CAAA;IAGjB,QAAQ,8BAAgC;IAGxC,MAAM;IAKN,QAAQ;CAGT;AAED,eAAe,YAAY,CAAA"}
@@ -13,7 +13,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
13
13
  };
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  const core_1 = require("@mikro-orm/core");
16
- const utils_1 = require("@medusajs/utils");
16
+ const utils_1 = require("@medusajs/framework/utils");
17
17
  const product_1 = __importDefault(require("./product"));
18
18
  const imageUrlIndexName = "IDX_product_image_url";
19
19
  const imageUrlIndexStatement = (0, utils_1.createPsqlIndexStatementHelper)({
@@ -90,3 +90,4 @@ ProductImage = __decorate([
90
90
  (0, core_1.Filter)(utils_1.DALUtils.mikroOrmSoftDeletableFilterOptions)
91
91
  ], ProductImage);
92
92
  exports.default = ProductImage;
93
+ //# sourceMappingUR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AAA,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;AAIhB;IAFC,IAAA,YAAK,EAAC,EAAE,IAAI,EAAE,8BAA8B,EAAE,CAAC;IAC/C,IAAA,eAAQ,EAAC,EAAE,UAAU,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BAC3C,IAAI;gDAAA;AAGjB;IADC,IAAA,iBAAU,EAAC,GAAG,EAAE,CAAC,iBAAO,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC;;8CACf;AAGxC;IADC,IAAA,aAAM,GAAE;;;;0CAGR;AAGD;IADC,IAAA,mBAAY,GAAE;;;;4CAGd;AAxCG,YAAY;IAFjB,IAAA,aAAM,EAAC,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC;IAC9B,IAAA,aAAM,EAAC,gBAAQ,CAAC,kCAAkC,CAAC;GAC9C,YAAY,CAyCjB;AAED,kBAAe,YAAY,CAAA"}
@@ -13,3 +13,4 @@ declare class ProductOptionValue {
13
13
  onInit(): void;
14
14
  }
15
15
  export default ProductOptionValue;
16
+ //# sourceMappingURL=product-option-value.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product-option-value.d.ts","sourceRoot":"","sources":["../../src/models/product-option-value.ts"],"names":[],"mappings":"AAKA,OAAO,EAEL,UAAU,EASX,MAAM,iBAAiB,CAAA;AACxB,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAYvD,cAEM,kBAAkB;IAEtB,EAAE,EAAG,MAAM,CAAA;IAGX,KAAK,EAAE,MAAM,CAAA;IASb,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;IAMxB,MAAM,EAAE,aAAa,GAAG,IAAI,CAAA;IAG5B,QAAQ,qCAAuC;IAG/C,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;IAOzC,UAAU,EAAE,IAAI,CAAA;IAQhB,UAAU,EAAE,IAAI,CAAA;IAIhB,UAAU,CAAC,EAAE,IAAI,CAAA;IAIjB,MAAM;CAIP;AAED,eAAe,kBAAkB,CAAA"}
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- const utils_1 = require("@medusajs/utils");
12
+ const utils_1 = require("@medusajs/framework/utils");
13
13
  const core_1 = require("@mikro-orm/core");
14
14
  const index_1 = require("./index");
15
15
  const optionValueOptionIdIndexName = "IDX_option_value_option_id_unique";
@@ -27,7 +27,7 @@ let ProductOptionValue = class ProductOptionValue {
27
27
  }
28
28
  onInit() {
29
29
  this.id = (0, utils_1.generateEntityId)(this.id, "optval");
30
- this.option_id ?? (this.option_id = this.option?.id ?? null);
30
+ this.option_id ??= this.option?.id ?? null;
31
31
  }
32
32
  };
33
33
  __decorate([
@@ -97,3 +97,4 @@ ProductOptionValue = __decorate([
97
97
  (0, core_1.Filter)(utils_1.DALUtils.mikroOrmSoftDeletableFilterOptions)
98
98
  ], ProductOptionValue);
99
99
  exports.default = ProductOptionValue;
100
+ //# sourceMappingURL=product-option-value.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product-option-value.js","sourceRoot":"","sources":["../../src/models/product-option-value.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,qDAIkC;AAClC,0CAWwB;AACxB,mCAAuD;AAEvD,MAAM,4BAA4B,GAAG,mCAAmC,CAAA;AACxE,MAAM,iCAAiC,GAAG,IAAA,sCAA8B,EAAC;IACvE,IAAI,EAAE,4BAA4B;IAClC,SAAS,EAAE,s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Q,EAAC;QACR,QAAQ,EAAE,GAAG,EAAE,CAAC,IAAI,IAAI,EAAE;QAC1B,UAAU,EAAE,aAAa;QACzB,UAAU,EAAE,OAAO;KACpB,CAAC;8BACU,IAAI;sDAAA;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;sDAAA;AAIhB;IAFC,IAAA,YAAK,EAAC,EAAE,IAAI,EAAE,qCAAqC,EAAE,CAAC;IACtD,IAAA,eAAQ,EAAC,EAAE,UAAU,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BAC3C,IAAI;sDAAA;AAIjB;IAFC,IAAA,aAAM,GAAE;IACR,IAAA,mBAAY,GAAE;;;;gDAId;AApDG,kBAAkB;IAFvB,IAAA,aAAM,EAAC,EAAE,SAAS,EAAE,sBAAsB,EAAE,CAAC;IAC7C,IAAA,aAAM,EAAC,gBAAQ,CAAC,kCAAkC,CAAC;GAC9C,kBAAkB,CAqDvB;AAED,kBAAe,kBAAkB,CAAA"}
@@ -14,3 +14,4 @@ declare class ProductOption {
14
14
  onInit(): void;
15
15
  }
16
16
  export default ProductOption;
17
+ //# sourceMappingURL=product-option.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product-option.d.ts","sourceRoot":"","sources":["../../src/models/product-option.ts"],"names":[],"mappings":"AAMA,OAAO,EAGL,UAAU,EASX,MAAM,iBAAiB,CAAA;AACxB,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AACjC,OAAO,kBAAkB,MAAM,wBAAwB,CAAA;AAYvD,cAEM,aAAa;IAEjB,EAAE,EAAG,MAAM,CAAA;IAIX,KAAK,EAAE,MAAM,CAAA;IASb,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IAMzB,OAAO,EAAE,OAAO,GAAG,IAAI,CAAA;IAKvB,MAAM,yCAA2C;IAGjD,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;IAOzC,UAAU,EAAE,IAAI,CAAA;IAQhB,UAAU,EAAE,IAAI,CAAA;IAIhB,UAAU,CAAC,EAAE,IAAI,CAAA;IAIjB,MAAM;CAIP;AAED,eAAe,aAAa,CAAA"}