@medusajs/stock-location 1.8.0-rc.2 → 1.8.0
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.
- package/dist/config.d.ts +1 -0
- package/dist/config.js +5 -0
- package/dist/config.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -1
- package/dist/initialize/index.d.ts +1 -1
- package/dist/initialize/index.js +1 -1
- package/dist/initialize/index.js.map +1 -1
- package/package.json +4 -4
package/dist/config.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const CONNECTION_NAME = "stock_location_connection";
|
package/dist/config.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":";;;AAAa,QAAA,eAAe,GAAG,2BAA2B,CAAA"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
import { ModuleExports } from "@medusajs/modules-sdk";
|
|
2
2
|
declare const moduleDefinition: ModuleExports;
|
|
3
3
|
export default moduleDefinition;
|
|
4
|
+
export * from "./initialize";
|
|
5
|
+
export { revertMigration, runMigrations } from "./migrations/run-migration";
|
|
6
|
+
export * from "./types";
|
package/dist/index.js
CHANGED
|
@@ -22,10 +22,14 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
22
22
|
__setModuleDefault(result, mod);
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
26
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
|
+
};
|
|
25
28
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
29
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
30
|
};
|
|
28
31
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32
|
+
exports.runMigrations = exports.revertMigration = void 0;
|
|
29
33
|
const connection_1 = __importDefault(require("./loaders/connection"));
|
|
30
34
|
const migrations_1 = __importDefault(require("./migrations"));
|
|
31
35
|
const run_migration_1 = require("./migrations/run-migration");
|
|
@@ -43,4 +47,9 @@ const moduleDefinition = {
|
|
|
43
47
|
revertMigration: run_migration_1.revertMigration,
|
|
44
48
|
};
|
|
45
49
|
exports.default = moduleDefinition;
|
|
50
|
+
__exportStar(require("./initialize"), exports);
|
|
51
|
+
var run_migration_2 = require("./migrations/run-migration");
|
|
52
|
+
Object.defineProperty(exports, "revertMigration", { enumerable: true, get: function () { return run_migration_2.revertMigration; } });
|
|
53
|
+
Object.defineProperty(exports, "runMigrations", { enumerable: true, get: function () { return run_migration_2.runMigrations; } });
|
|
54
|
+
__exportStar(require("./types"), exports);
|
|
46
55
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,sEAAiD;AACjD,8DAAqC;AACrC,8DAA2E;AAC3E,8DAA+C;AAC/C,+EAA4D;AAE5D,MAAM,OAAO,GAAG,wBAAoB,CAAA;AACpC,MAAM,OAAO,GAAG,CAAC,oBAAc,CAAC,CAAA;AAChC,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,mBAAmB,CAAC,CAAA;AAEjD,MAAM,gBAAgB,GAAkB;IACtC,OAAO;IACP,UAAU,EAAV,oBAAU;IACV,OAAO;IACP,MAAM;IACN,aAAa,EAAb,6BAAa;IACb,eAAe,EAAf,+BAAe;CAChB,CAAA;AAED,kBAAe,gBAAgB,CAAA;AAC/B,+CAA4B;AAC5B,4DAA2E;AAAlE,gHAAA,eAAe,OAAA;AAAE,8GAAA,aAAa,OAAA;AACvC,0CAAuB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ExternalModuleDeclaration } from "@medusajs/modules-sdk";
|
|
2
2
|
import { IEventBusService, IStockLocationService } from "@medusajs/types";
|
|
3
3
|
import { StockLocationServiceInitializeOptions } from "../types";
|
|
4
|
-
export declare const initialize: (options
|
|
4
|
+
export declare const initialize: (options: StockLocationServiceInitializeOptions | ExternalModuleDeclaration, injectedDependencies?: {
|
|
5
5
|
eventBusService: IEventBusService;
|
|
6
6
|
}) => Promise<IStockLocationService>;
|
package/dist/initialize/index.js
CHANGED
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.initialize = void 0;
|
|
4
4
|
const modules_sdk_1 = require("@medusajs/modules-sdk");
|
|
5
5
|
const initialize = async (options, injectedDependencies) => {
|
|
6
|
-
const serviceKey =
|
|
6
|
+
const serviceKey = modules_sdk_1.Modules.STOCK_LOCATION;
|
|
7
7
|
const loaded = await modules_sdk_1.MedusaModule.bootstrap(serviceKey, "@medusajs/stock-location", options, injectedDependencies);
|
|
8
8
|
return loaded[serviceKey];
|
|
9
9
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/initialize/index.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/initialize/index.ts"],"names":[],"mappings":";;;AAAA,uDAK8B;AAIvB,MAAM,UAAU,GAAG,KAAK,EAC7B,OAA0E,EAC1E,oBAEC,EAC+B,EAAE;IAClC,MAAM,UAAU,GAAG,qBAAO,CAAC,cAAc,CAAA;IACzC,MAAM,MAAM,GAAG,MAAM,0BAAY,CAAC,SAAS,CACzC,UAAU,EACV,0BAA0B,EAC1B,OAAgE,EAChE,oBAAoB,CACrB,CAAA;IAED,OAAO,MAAM,CAAC,UAAU,CAA0B,CAAA;AACpD,CAAC,CAAA;AAfY,QAAA,UAAU,cAetB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@medusajs/stock-location",
|
|
3
|
-
"version": "1.8.0
|
|
3
|
+
"version": "1.8.0",
|
|
4
4
|
"description": "Stock Location Module for Medusa",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"repository": {
|
|
@@ -17,15 +17,15 @@
|
|
|
17
17
|
"author": "Medusa",
|
|
18
18
|
"license": "MIT",
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@medusajs/types": "
|
|
20
|
+
"@medusajs/types": "1.8.0",
|
|
21
21
|
"cross-env": "^5.2.1",
|
|
22
22
|
"jest": "^25.5.4",
|
|
23
23
|
"ts-jest": "^25.5.1",
|
|
24
24
|
"typescript": "^4.4.4"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@medusajs/modules-sdk": "
|
|
28
|
-
"@medusajs/utils": "
|
|
27
|
+
"@medusajs/modules-sdk": "1.8.0",
|
|
28
|
+
"@medusajs/utils": "1.8.0",
|
|
29
29
|
"awilix": "^8.0.0",
|
|
30
30
|
"typeorm": "^0.3.11"
|
|
31
31
|
},
|