@medusajs/utils 1.9.3 → 1.9.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ export declare const SoftDeletableFilterKey = "softDeletable";
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SoftDeletableFilterKey = void 0;
4
+ exports.SoftDeletableFilterKey = "softDeletable";
5
+ //# sourceMappingURL=dal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dal.js","sourceRoot":"","sources":["../../src/common/dal.ts"],"names":[],"mappings":";;;AAAa,QAAA,sBAAsB,GAAG,eAAe,CAAA"}
@@ -22,3 +22,4 @@ export * from "./stringify-circular";
22
22
  export * from "./to-kebab-case";
23
23
  export * from "./to-pascal-case";
24
24
  export * from "./wrap-handler";
25
+ export * from "./dal";
@@ -38,4 +38,5 @@ __exportStar(require("./stringify-circular"), exports);
38
38
  __exportStar(require("./to-kebab-case"), exports);
39
39
  __exportStar(require("./to-pascal-case"), exports);
40
40
  __exportStar(require("./wrap-handler"), exports);
41
+ __exportStar(require("./dal"), exports);
41
42
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA6B;AAC7B,gDAA6B;AAC7B,2CAAwB;AACxB,uDAAoC;AACpC,oDAAiC;AACjC,mEAAgD;AAChD,4CAAyB;AACzB,+CAA4B;AAC5B,6CAA0B;AAC1B,8CAA2B;AAC3B,8CAA2B;AAC3B,qDAAkC;AAClC,qDAAkC;AAClC,qDAAkC;AAClC,0DAAuC;AACvC,iDAA8B;AAC9B,gDAA6B;AAC7B,iDAA8B;AAC9B,kDAA+B;AAC/B,kDAA+B;AAC/B,uDAAoC;AACpC,kDAA+B;AAC/B,mDAAgC;AAChC,iDAA8B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA6B;AAC7B,gDAA6B;AAC7B,2CAAwB;AACxB,uDAAoC;AACpC,oDAAiC;AACjC,mEAAgD;AAChD,4CAAyB;AACzB,+CAA4B;AAC5B,6CAA0B;AAC1B,8CAA2B;AAC3B,8CAA2B;AAC3B,qDAAkC;AAClC,qDAAkC;AAClC,qDAAkC;AAClC,0DAAuC;AACvC,iDAA8B;AAC9B,gDAA6B;AAC7B,iDAA8B;AAC9B,kDAA+B;AAC/B,kDAA+B;AAC/B,uDAAoC;AACpC,kDAA+B;AAC/B,mDAAgC;AAChC,iDAA8B;AAC9B,wCAAqB"}
@@ -28,7 +28,6 @@ var __read = (this && this.__read) || function (o, n) {
28
28
  };
29
29
  Object.defineProperty(exports, "__esModule", { value: true });
30
30
  exports.buildQuery = void 0;
31
- var types_1 = require("@medusajs/types");
32
31
  var common_1 = require("../common");
33
32
  function buildQuery(filters, config) {
34
33
  var _a, _b, _c;
@@ -44,7 +43,7 @@ function buildQuery(filters, config) {
44
43
  };
45
44
  if (config.withDeleted) {
46
45
  (_c = findOptions.filters) !== null && _c !== void 0 ? _c : (findOptions.filters = {});
47
- findOptions.filters[types_1.SoftDeletableFilterKey] = {
46
+ findOptions.filters[common_1.SoftDeletableFilterKey] = {
48
47
  withDeleted: true,
49
48
  };
50
49
  }
@@ -1 +1 @@
1
- {"version":3,"file":"build-query.js","sourceRoot":"","sources":["../../src/modules-sdk/build-query.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAAyE;AACzE,oCAAiD;AAEjD,SAAgB,UAAU,CACxB,OAAiC,EACjC,MAA6B;;IAD7B,wBAAA,EAAA,YAAiC;IACjC,uBAAA,EAAA,WAA6B;IAE7B,IAAM,KAAK,GAAuB,EAAE,CAAA;IACpC,UAAU,CAAC,OAAO,EAAE,KAAK,CAAC,CAAA;IAE1B,IAAM,WAAW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nB,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;gBACxB,KAAK,GAAG,IAAA,oBAAW,EAAC,KAAK,CAAC,CAAA;gBAC1B,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,KAAK,EAAE,CAAA;gBACrE,SAAQ;aACT;YAED,IAAI,IAAA,iBAAQ,EAAC,KAAK,CAAC,EAAE;gBACnB,KAAK,CAAC,IAAI,CAAC,GAAG,EAAE,CAAA;gBAChB,UAAU,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC,CAAA;gBAC9B,SAAQ;aACT;YAED,KAAK,CAAC,IAAI,CAAC,GAAG,KAAK,CAAA;SACpB;;;;;;;;;AACH,CAAC"}
@@ -0,0 +1,3 @@
1
+ export declare const indexTypes: {
2
+ PRODUCTS: string;
3
+ };
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.indexTypes = void 0;
4
+ exports.indexTypes = {
5
+ PRODUCTS: "products",
6
+ };
7
+ //# sourceMappingURL=index-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-types.js","sourceRoot":"","sources":["../../src/search/index-types.ts"],"names":[],"mappings":";;;AAAa,QAAA,UAAU,GAAG;IACxB,QAAQ,EAAE,UAAU;CACrB,CAAA"}
@@ -1,3 +1,5 @@
1
1
  export * from "./abstract-service";
2
2
  export * from "./is-search-service";
3
3
  export * from "./search-relations";
4
+ export * from "./index-types";
5
+ export * from "./variant-keys";
@@ -17,4 +17,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./abstract-service"), exports);
18
18
  __exportStar(require("./is-search-service"), exports);
19
19
  __exportStar(require("./search-relations"), exports);
20
+ __exportStar(require("./index-types"), exports);
21
+ __exportStar(require("./variant-keys"), exports);
20
22
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/search/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAkC;AAClC,sDAAmC;AACnC,qDAAkC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/search/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAkC;AAClC,sDAAmC;AACnC,qDAAkC;AAClC,gDAA6B;AAC7B,iDAA8B"}
@@ -0,0 +1 @@
1
+ export declare const variantKeys: string[];
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.variantKeys = void 0;
4
+ exports.variantKeys = [
5
+ "sku",
6
+ "title",
7
+ "upc",
8
+ "ean",
9
+ "mid_code",
10
+ "hs_code",
11
+ "options",
12
+ ];
13
+ //# sourceMappingURL=variant-keys.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"variant-keys.js","sourceRoot":"","sources":["../../src/search/variant-keys.ts"],"names":[],"mappings":";;;AAAa,QAAA,WAAW,GAAG;IACzB,KAAK;IACL,OAAO;IACP,KAAK;IACL,KAAK;IACL,UAAU;IACV,SAAS;IACT,SAAS;CACV,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medusajs/utils",
3
- "version": "1.9.3",
3
+ "version": "1.9.4",
4
4
  "description": "Medusa utilities functions shared by Medusa core and Modules",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -18,7 +18,7 @@
18
18
  "author": "Medusa",
19
19
  "license": "MIT",
20
20
  "devDependencies": {
21
- "@medusajs/types": "^1.9.0",
21
+ "@medusajs/types": "^1.10.0",
22
22
  "@types/express": "^4.17.17",
23
23
  "cross-env": "^5.2.1",
24
24
  "express": "^4.18.2",