@medusajs/store 0.1.2-preview-20240925143312 → 0.1.2-preview-20240930112011
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/models/currency.js +1 -1
- package/dist/models/currency.js.map +1 -1
- package/dist/models/store.d.ts +1 -1
- package/dist/models/store.d.ts.map +1 -1
- package/dist/models/store.js +1 -1
- package/dist/models/store.js.map +1 -1
- package/dist/services/store-module-service.d.ts +2 -2
- package/dist/services/store-module-service.d.ts.map +1 -1
- package/dist/services/store-module-service.js +2 -2
- package/dist/services/store-module-service.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +9 -8
package/dist/index.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const _services_1 = require("./services");
|
4
|
-
const utils_1 = require("@medusajs/utils");
|
4
|
+
const utils_1 = require("@medusajs/framework/utils");
|
5
5
|
exports.default = (0, utils_1.Module)(utils_1.Modules.STORE, {
|
6
6
|
service: _services_1.StoreModuleService,
|
7
7
|
});
|
package/dist/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;AAAA,yCAA8C;AAC9C,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;AAAA,yCAA8C;AAC9C,qDAA2D;AAE3D,kBAAe,IAAA,cAAM,EAAC,eAAO,CAAC,KAAK,EAAE;IACnC,OAAO,EAAE,8BAAkB;CAC5B,CAAC,CAAA"}
|
package/dist/models/currency.js
CHANGED
@@ -12,7 +12,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
12
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
13
13
|
};
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
15
|
-
const utils_1 = require("@medusajs/utils");
|
15
|
+
const utils_1 = require("@medusajs/framework/utils");
|
16
16
|
const core_1 = require("@mikro-orm/core");
|
17
17
|
const store_1 = __importDefault(require("./store"));
|
18
18
|
const StoreCurrencyDeletedAtIndex = (0, utils_1.createPsqlIndexStatementHelper)({
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"currency.js","sourceRoot":"","sources":["../../src/models/currency.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,
|
1
|
+
{"version":3,"file":"currency.js","sourceRoot":"","sources":["../../src/models/currency.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qDAKkC;AAElC,0CAQwB;AACxB,oDAA2B;AAE3B,MAAM,2BAA2B,GAAG,IAAA,sCAA8B,EAAC;IACjE,SAAS,EAAE,gBAAgB;IAC3B,OAAO,EAAE,YAAY;IACrB,KAAK,EAAE,wBAAwB;CAChC,CAAC,CAAA;AAIa,IAAM,aAAa,GAAnB,MAAM,aAAa;IAAnB;QA2Cb,eAAU,GAAgB,IAAI,CAAA;IAWhC,CAAC;IARC,QAAQ;QACN,IAAI,CAAC,EAAE,GAAG,IAAA,wBAAgB,EAAC,IAAI,CAAC,EAAE,EAAE,QAAQ,CAAC,CAAA;IAC/C,CAAC;IAGD,MAAM;QACJ,IAAI,CAAC,EAAE,GAAG,IAAA,wBAAgB,EAAC,IAAI,CAAC,EAAE,EAAE,QAAQ,CAAC,CAAA;IAC/C,CAAC;CACF,CAAA;AApDC;IADC,IAAA,iBAAU,EAAC,EAAE,UAAU,EAAE,MAAM,EAAE,CAAC;;yCACzB;AAIV;IAFC,IAAA,kBAAU,GAAE;IACZ,IAAA,eAAQ,EAAC,EAAE,UAAU,EAAE,MAAM,EAAE,CAAC;;oDACZ;AAGrB;IADC,IAAA,eAAQ,EAAC,EAAE,UAAU,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;iDAChC;AASpB;IAPC,IAAA,gBAAS,EAAC,GAAG,EAAE,CAAC,eAAK,EAAE;QACtB,UAAU,EAAE,MAAM;QAClB,SAAS,EAAE,UAAU;QACrB,OAAO,EAAE,IAAI;QACb,QAAQ,EAAE,IAAI;QACd,QAAQ,EAAE,SAAS;KACpB,CAAC;;+CACqB;AAMvB;IAJC,IAAA,gBAAS,EAAC,GAAG,EAAE,CAAC,eAAK,EAAE;QACtB,OAAO,EAAE,KAAK;QACd,QAAQ,EAAE,IAAI;KACf,CAAC;;4CACiB;AAOnB;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;iDAAA;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;iDAAA;AAIhB;IAFC,2BAA2B,CAAC,aAAa,EAAE;IAC3C,IAAA,eAAQ,EAAC,EAAE,UAAU,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDAC1B;AAG9B;IADC,IAAA,mBAAY,GAAE;;;;6CAGd;AAGD;IADC,IAAA,aAAM,GAAE;;;;2CAGR;AArDkB,aAAa;IAFjC,IAAA,aAAM,GAAE;IACR,IAAA,aAAM,EAAC,gBAAQ,CAAC,kCAAkC,CAAC;GAC/B,aAAa,CAsDjC;kBAtDoB,aAAa"}
|
package/dist/models/store.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../src/models/store.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,GAAG,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../src/models/store.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,GAAG,EAAE,MAAM,2BAA2B,CAAA;AAE/C,OAAO,EAOL,aAAa,EAEb,UAAU,EAEX,MAAM,iBAAiB,CAAA;AACxB,OAAO,aAAa,MAAM,YAAY,CAAA;AAEtC,KAAK,kBAAkB,GAAG,GAAG,CAAC,6BAA6B,CAAA;AAU3D,MAAM,CAAC,OAAO,OAAO,KAAK;IACxB,CAAC,aAAa,CAAC,CAAC,EAAE,kBAAkB,CAAA;IAGpC,EAAE,EAAE,MAAM,CAAA;IAIV,IAAI,EAAE,MAAM,CAAA;IAKZ,oBAAoB,oCAAsC;IAG1D,wBAAwB,EAAE,MAAM,GAAG,IAAI,CAAO;IAG9C,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAO;IAGvC,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAO;IAGzC,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"}
|
package/dist/models/store.js
CHANGED
@@ -12,7 +12,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
12
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
13
13
|
};
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
15
|
-
const utils_1 = require("@medusajs/utils");
|
15
|
+
const utils_1 = require("@medusajs/framework/utils");
|
16
16
|
const core_1 = require("@mikro-orm/core");
|
17
17
|
const currency_1 = __importDefault(require("./currency"));
|
18
18
|
const StoreDeletedAtIndex = (0, utils_1.createPsqlIndexStatementHelper)({
|
package/dist/models/store.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"store.js","sourceRoot":"","sources":["../../src/models/store.ts"],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ypes } from "@medusajs/types";
|
1
|
+
import { Context, DAL, InternalModuleDeclaration, IStoreModuleService, ModulesSdkTypes, StoreTypes } from "@medusajs/framework/types";
|
2
2
|
import { Store } from "../models";
|
3
3
|
import { UpdateStoreInput } from "../types";
|
4
4
|
type InjectedDependencies = {
|
5
5
|
baseRepository: DAL.RepositoryService;
|
6
6
|
storeService: ModulesSdkTypes.IMedusaInternalService<any>;
|
7
7
|
};
|
8
|
-
declare const StoreModuleService_base: import("@medusajs/utils").MedusaServiceReturnType<{
|
8
|
+
declare const StoreModuleService_base: import("@medusajs/framework/utils").MedusaServiceReturnType<{
|
9
9
|
Store: {
|
10
10
|
dto: StoreTypes.StoreDTO;
|
11
11
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"store-module-service.d.ts","sourceRoot":"","sources":["../../src/services/store-module-service.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EACP,GAAG,EACH,yBAAyB,EACzB,mBAAmB,EACnB,eAAe,EACf,UAAU,EACX,MAAM,
|
1
|
+
{"version":3,"file":"store-module-service.d.ts","sourceRoot":"","sources":["../../src/services/store-module-service.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EACP,GAAG,EACH,yBAAyB,EACzB,mBAAmB,EACnB,eAAe,EACf,UAAU,EACX,MAAM,2BAA2B,CAAA;AAalC,OAAO,EAAE,KAAK,EAAiB,MAAM,SAAS,CAAA;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAA;AAEzC,KAAK,oBAAoB,GAAG;IAC1B,cAAc,EAAE,GAAG,CAAC,iBAAiB,CAAA;IACrC,YAAY,EAAE,eAAe,CAAC,sBAAsB,CAAC,GAAG,CAAC,CAAA;CAC1D,CAAA;;WAIU;QAAE,GAAG,EAAE,UAAU,CAAC,QAAQ,CAAA;KAAE;mBACpB;QAAE,GAAG,EAAE,UAAU,CAAC,gBAAgB,CAAA;KAAE;;AAHvD,MAAM,CAAC,OAAO,OAAO,kB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UAAU,CAAC,QAAQ,EAAE,CAAC;cAiCjB,OAAO,CACrB,IAAI,EAAE,gBAAgB,EAAE,EACP,aAAa,GAAE,OAAY,GAC3C,OAAO,CAAC,KAAK,EAAE,CAAC;IAanB,OAAO,CAAC,MAAM,CAAC,cAAc;IAe7B,OAAO,CAAC,MAAM,CAAC,qBAAqB;IAuCpC,OAAO,CAAC,MAAM,CAAC,qBAAqB;CAGrC"}
|
@@ -12,8 +12,8 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
12
|
return function (target, key) { decorator(target, key, paramIndex); }
|
13
13
|
};
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
15
|
-
const types_1 = require("@medusajs/types");
|
16
|
-
const utils_1 = require("@medusajs/utils");
|
15
|
+
const types_1 = require("@medusajs/framework/types");
|
16
|
+
const utils_1 = require("@medusajs/framework/utils");
|
17
17
|
const _models_1 = require("../models");
|
18
18
|
class StoreModuleService extends (0, utils_1.MedusaService)({ Store: _models_1.Store, StoreCurrency: _models_1.StoreCurrency }) {
|
19
19
|
constructor({ baseRepository, storeService }, moduleDeclaration) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"store-module-service.js","sourceRoot":"","sources":["../../src/services/store-module-service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,
|
1
|
+
{"version":3,"file":"store-module-service.js","sourceRoot":"","sources":["../../src/services/store-module-service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qDAOkC;AAClC,qDAUkC;AAElC,qCAA8C;AAQ9C,MAAqB,kBACnB,SAAQ,IAAA,qBAAa,EAGlB,EAAE,KAAK,EAAL,eAAK,EAAE,aAAa,EAAb,uBAAa,EAAE,CAAC;IAM5B,YACE,EAAE,cAAc,EAAE,YAAY,EAAwB,EACnC,iBAA4C;QAE/D,aAAa;QACb,KAAK,CAAC,GAAG,SAAS,CAAC,CAAA;QAHA,sBAAiB,GAAjB,iBAAiB,CAA2B;QAI/D,IAAI,CAAC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uBjB;AAcK;IADL,IAAA,qBAAa,GAAE;IAIb,WAAA,IAAA,qBAAa,GAAE,CAAA;;;;sDAyBjB;AAGe;IADf,IAAA,gCAAwB,GAAE;IAGxB,WAAA,IAAA,qBAAa,GAAE,CAAA;;;;iDAYjB"}
|
@@ -1 +1 @@
|
|
1
|
-
{"root":["../src/index.ts","../src/migrations/
|
1
|
+
{"root":["../src/index.ts","../src/migrations/initialsetup20240227075933.ts","../src/migrations/migration20240621145944.ts","../src/models/currency.ts","../src/models/index.ts","../src/models/store.ts","../src/services/index.ts","../src/services/store-module-service.ts","../src/services/__tests__/noop.ts","../src/types/index.ts"],"version":"5.6.2"}
|
package/dist/types/index.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { IEventBusModuleService, Logger, StoreTypes } from "@medusajs/types";
|
1
|
+
import { IEventBusModuleService, Logger, StoreTypes } from "@medusajs/framework/types";
|
2
2
|
export type InitializeModuleInjectableDependencies = {
|
3
3
|
logger?: Logger;
|
4
4
|
EventBus?: IEventBusModuleService;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,EACtB,MAAM,EACN,UAAU,EACX,MAAM,2BAA2B,CAAA;AAElC,MAAM,MAAM,sCAAsC,GAAG;IACnD,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,QAAQ,CAAC,EAAE,sBAAsB,CAAA;CAClC,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG,UAAU,CAAC,cAAc,GAAG;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,CAAA"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@medusajs/store",
|
3
|
-
"version": "0.1.2-preview-
|
3
|
+
"version": "0.1.2-preview-20240930112011",
|
4
4
|
"description": "Medusa Store module",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"types": "dist/index.d.ts",
|
@@ -37,20 +37,21 @@
|
|
37
37
|
"orm:cache:clear": " MIKRO_ORM_CLI=./mikro-orm.config.dev.ts mikro-orm cache:clear"
|
38
38
|
},
|
39
39
|
"devDependencies": {
|
40
|
-
"@medusajs/
|
40
|
+
"@medusajs/framework": "0.0.2-preview-20240930112011",
|
41
41
|
"@mikro-orm/cli": "5.9.7",
|
42
|
-
"
|
42
|
+
"@mikro-orm/core": "5.9.7",
|
43
|
+
"@mikro-orm/migrations": "5.9.7",
|
44
|
+
"@mikro-orm/postgresql": "5.9.7",
|
45
|
+
"@swc/core": "^1.7.28",
|
46
|
+
"@swc/jest": "^0.2.36",
|
43
47
|
"jest": "^29.7.0",
|
44
|
-
"medusa-test-utils": "1.1.45-preview-
|
48
|
+
"medusa-test-utils": "1.1.45-preview-20240930112011",
|
45
49
|
"rimraf": "^3.0.2",
|
46
|
-
"ts-node": "^10.9.1",
|
47
50
|
"tsc-alias": "^1.8.6",
|
48
51
|
"typescript": "^5.6.2"
|
49
52
|
},
|
50
|
-
"dependencies": {
|
51
|
-
"@medusajs/utils": "1.12.0-preview-20240925143312"
|
52
|
-
},
|
53
53
|
"peerDependencies": {
|
54
|
+
"@medusajs/framework": "0.0.2-preview-20240930112011",
|
54
55
|
"@mikro-orm/core": "5.9.7",
|
55
56
|
"@mikro-orm/migrations": "5.9.7",
|
56
57
|
"@mikro-orm/postgresql": "5.9.7",
|