@medusajs/link-modules 0.2.12-snapshot-20240724143042 → 0.2.12-snapshot-20240728080605

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,3 @@
1
+ import { ModuleJoinerConfig } from "@medusajs/types";
2
+ export declare const LocationFulfillmentProvider: ModuleJoinerConfig;
3
+ //# sourceMappingURL=fulfillment-provider-location.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fulfillment-provider-location.d.ts","sourceRoot":"","sources":["../../src/definitions/fulfillment-provider-location.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAGpD,eAAO,MAAM,2BAA2B,EAAE,kBAgEzC,CAAA"}
@@ -0,0 +1,69 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LocationFulfillmentProvider = void 0;
4
+ const utils_1 = require("@medusajs/utils");
5
+ exports.LocationFulfillmentProvider = {
6
+ serviceName: utils_1.LINKS.LocationFulfillmentProvider,
7
+ isLink: true,
8
+ databaseConfig: {
9
+ tableName: "location_fulfillment_provider",
10
+ idPrefix: "locfp",
11
+ },
12
+ alias: [
13
+ {
14
+ name: ["location_fulfillment_provider", "location_fulfillment_providers"],
15
+ args: { entity: "LinkLocationFulfillmentProvider" },
16
+ },
17
+ ],
18
+ primaryKeys: ["id", "stock_location_id", "fulfillment_provider_id"],
19
+ relationships: [
20
+ {
21
+ serviceName: utils_1.Modules.STOCK_LOCATION,
22
+ primaryKey: "id",
23
+ foreignKey: "stock_location_id",
24
+ alias: "location",
25
+ args: { methodSuffix: "StockLocations" },
26
+ },
27
+ {
28
+ serviceName: utils_1.Modules.FULFILLMENT,
29
+ primaryKey: "id",
30
+ foreignKey: "fulfillment_provider_id",
31
+ alias: "fulfillment_provider",
32
+ args: { methodSuffix: "FulfillmentProviders" },
33
+ },
34
+ ],
35
+ extends: [
36
+ {
37
+ serviceName: utils_1.Modules.STOCK_LOCATION,
38
+ relationship: {
39
+ serviceName: utils_1.LINKS.LocationFulfillmentProvider,
40
+ primaryKey: "stock_location_id",
41
+ foreignKey: "id",
42
+ alias: "fulfillment_provider_link",
43
+ isList: true,
44
+ },
45
+ fieldAlias: {
46
+ fulfillment_providers: {
47
+ path: "fulfillment_provider_link.fulfillment_provider",
48
+ isList: true,
49
+ },
50
+ },
51
+ },
52
+ {
53
+ serviceName: utils_1.Modules.FULFILLMENT,
54
+ relationship: {
55
+ serviceName: utils_1.LINKS.LocationFulfillmentProvider,
56
+ primaryKey: "fulfillment_provider_id",
57
+ foreignKey: "id",
58
+ alias: "locations_link",
59
+ isList: true,
60
+ },
61
+ fieldAlias: {
62
+ locations: {
63
+ path: "locations_link.location",
64
+ isList: true,
65
+ },
66
+ },
67
+ },
68
+ ],
69
+ };
@@ -1,10 +1,12 @@
1
1
  export * from "./cart-payment-collection";
2
2
  export * from "./cart-promotion";
3
+ export * from "./fulfillment-provider-location";
3
4
  export * from "./fulfillment-set-location";
4
5
  export * from "./order-cart";
5
6
  export * from "./order-fulfillment";
6
7
  export * from "./order-payment-collection";
7
8
  export * from "./order-promotion";
9
+ export * from "./order-return-fulfillment";
8
10
  export * from "./product-sales-channel";
9
11
  export * from "./product-variant-inventory-item";
10
12
  export * from "./product-variant-price-set";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/definitions/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAA;AACzC,cAAc,kBAAkB,CAAA;AAChC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,cAAc,CAAA;AAC5B,cAAc,qBAAqB,CAAA;AACnC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,mBAAmB,CAAA;AACjC,cAAc,yBAAyB,CAAA;AACvC,cAAc,kCAAkC,CAAA;AAChD,cAAc,6BAA6B,CAAA;AAC3C,cAAc,qCAAqC,CAAA;AACnD,cAAc,YAAY,CAAA;AAC1B,cAAc,2BAA2B,CAAA;AACzC,cAAc,0BAA0B,CAAA;AACxC,cAAc,6BAA6B,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/definitions/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAA;AACzC,cAAc,kBAAkB,CAAA;AAChC,cAAc,iCAAiC,CAAA;AAC/C,cAAc,4BAA4B,CAAA;AAC1C,cAAc,cAAc,CAAA;AAC5B,cAAc,qBAAqB,CAAA;AACnC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,mBAAmB,CAAA;AACjC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,yBAAyB,CAAA;AACvC,cAAc,kCAAkC,CAAA;AAChD,cAAc,6BAA6B,CAAA;AAC3C,cAAc,qCAAqC,CAAA;AACnD,cAAc,YAAY,CAAA;AAC1B,cAAc,2BAA2B,CAAA;AACzC,cAAc,0BAA0B,CAAA;AACxC,cAAc,6BAA6B,CAAA"}
@@ -16,11 +16,13 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./cart-payment-collection"), exports);
18
18
  __exportStar(require("./cart-promotion"), exports);
19
+ __exportStar(require("./fulfillment-provider-location"), exports);
19
20
  __exportStar(require("./fulfillment-set-location"), exports);
20
21
  __exportStar(require("./order-cart"), exports);
21
22
  __exportStar(require("./order-fulfillment"), exports);
22
23
  __exportStar(require("./order-payment-collection"), exports);
23
24
  __exportStar(require("./order-promotion"), exports);
25
+ __exportStar(require("./order-return-fulfillment"), exports);
24
26
  __exportStar(require("./product-sales-channel"), exports);
25
27
  __exportStar(require("./product-variant-inventory-item"), exports);
26
28
  __exportStar(require("./product-variant-price-set"), exports);
@@ -0,0 +1,3 @@
1
+ import { ModuleJoinerConfig } from "@medusajs/types";
2
+ export declare const ReturnFulfillment: ModuleJoinerConfig;
3
+ //# sourceMappingURL=order-return-fulfillment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"order-return-fulfillment.d.ts","sourceRoot":"","sources":["../../src/definitions/order-return-fulfillment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAGpD,eAAO,MAAM,iBAAiB,EAAE,kBA+D/B,CAAA"}
@@ -0,0 +1,68 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ReturnFulfillment = void 0;
4
+ const utils_1 = require("@medusajs/utils");
5
+ exports.ReturnFulfillment = {
6
+ serviceName: utils_1.LINKS.ReturnFulfillment,
7
+ isLink: true,
8
+ databaseConfig: {
9
+ tableName: "return_fulfillment",
10
+ idPrefix: "retful",
11
+ },
12
+ alias: [
13
+ {
14
+ name: ["return_fulfillment", "return_fulfillments"],
15
+ args: {
16
+ entity: "LinkReturnFulfillment",
17
+ },
18
+ },
19
+ ],
20
+ primaryKeys: ["id", "return_id", "fulfillment_id"],
21
+ relationships: [
22
+ {
23
+ serviceName: utils_1.Modules.ORDER,
24
+ primaryKey: "id",
25
+ foreignKey: "return_id",
26
+ alias: "return",
27
+ args: {
28
+ methodSuffix: "Returns",
29
+ },
30
+ },
31
+ {
32
+ serviceName: utils_1.Modules.FULFILLMENT,
33
+ primaryKey: "id",
34
+ foreignKey: "fulfillment_id",
35
+ alias: "fulfillments",
36
+ args: {
37
+ methodSuffix: "Fulfillments",
38
+ },
39
+ },
40
+ ],
41
+ extends: [
42
+ {
43
+ serviceName: utils_1.Modules.ORDER,
44
+ fieldAlias: {
45
+ return_fulfillments: {
46
+ path: "return_fulfillment_link.fulfillments",
47
+ isList: true,
48
+ },
49
+ },
50
+ relationship: {
51
+ serviceName: utils_1.LINKS.OrderFulfillment,
52
+ primaryKey: "return_id",
53
+ foreignKey: "id",
54
+ alias: "return_fulfillment_link",
55
+ isList: true,
56
+ },
57
+ },
58
+ {
59
+ serviceName: utils_1.Modules.FULFILLMENT,
60
+ relationship: {
61
+ serviceName: utils_1.LINKS.OrderFulfillment,
62
+ primaryKey: "fulfillment_id",
63
+ foreignKey: "id",
64
+ alias: "return_link",
65
+ },
66
+ },
67
+ ],
68
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medusajs/link-modules",
3
- "version": "0.2.12-snapshot-20240724143042",
3
+ "version": "0.2.12-snapshot-20240728080605",
4
4
  "description": "Medusa Default Link Modules Package and Definitions",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -29,7 +29,7 @@
29
29
  "test:integration": "jest --forceExit -- integration-tests/**/__tests__/**/*.ts"
30
30
  },
31
31
  "devDependencies": {
32
- "@medusajs/types": "1.12.0-snapshot-20240724143042",
32
+ "@medusajs/types": "1.12.0-snapshot-20240728080605",
33
33
  "cross-env": "^5.2.1",
34
34
  "jest": "^29.7.0",
35
35
  "pg-god": "^1.0.12",
@@ -39,8 +39,8 @@
39
39
  "typescript": "^5.5.0"
40
40
  },
41
41
  "dependencies": {
42
- "@medusajs/modules-sdk": "1.13.0-snapshot-20240724143042",
43
- "@medusajs/utils": "1.12.0-snapshot-20240724143042",
42
+ "@medusajs/modules-sdk": "1.13.0-snapshot-20240728080605",
43
+ "@medusajs/utils": "1.12.0-snapshot-20240728080605",
44
44
  "@mikro-orm/core": "5.9.7",
45
45
  "@mikro-orm/postgresql": "5.9.7",
46
46
  "awilix": "^8.0.0"