@aiminaabeejs/link-modules 0.0.7 → 0.0.8

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,3 @@
1
+ import { ModuleJoinerConfig } from "@aiminaabeejs/framework/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,+BAA+B,CAAA;AAGlE,eAAO,MAAM,2BAA2B,EAAE,kBAqEzC,CAAA"}
@@ -0,0 +1,75 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LocationFulfillmentProvider = void 0;
4
+ const utils_1 = require("@aiminaabeejs/framework/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
+ entity: "LinkLocationFulfillmentProvider",
16
+ },
17
+ ],
18
+ primaryKeys: ["id", "stock_location_id", "fulfillment_provider_id"],
19
+ relationships: [
20
+ {
21
+ serviceName: utils_1.Modules.STOCK_LOCATION,
22
+ entity: "StockLocation",
23
+ primaryKey: "id",
24
+ foreignKey: "stock_location_id",
25
+ alias: "location",
26
+ args: { methodSuffix: "StockLocations" },
27
+ hasMany: true,
28
+ },
29
+ {
30
+ serviceName: utils_1.Modules.FULFILLMENT,
31
+ entity: "FulfillmentProvider",
32
+ primaryKey: "id",
33
+ foreignKey: "fulfillment_provider_id",
34
+ alias: "fulfillment_provider",
35
+ args: { methodSuffix: "FulfillmentProviders" },
36
+ hasMany: true,
37
+ },
38
+ ],
39
+ extends: [
40
+ {
41
+ serviceName: utils_1.Modules.STOCK_LOCATION,
42
+ relationship: {
43
+ serviceName: utils_1.LINKS.LocationFulfillmentProvider,
44
+ primaryKey: "stock_location_id",
45
+ foreignKey: "id",
46
+ alias: "fulfillment_provider_link",
47
+ isList: true,
48
+ },
49
+ fieldAlias: {
50
+ fulfillment_providers: {
51
+ path: "fulfillment_provider_link.fulfillment_provider",
52
+ isList: true,
53
+ },
54
+ },
55
+ },
56
+ {
57
+ serviceName: utils_1.Modules.FULFILLMENT,
58
+ entity: "FulfillmentProvider",
59
+ relationship: {
60
+ serviceName: utils_1.LINKS.LocationFulfillmentProvider,
61
+ primaryKey: "fulfillment_provider_id",
62
+ foreignKey: "id",
63
+ alias: "locations_link",
64
+ isList: true,
65
+ },
66
+ fieldAlias: {
67
+ locations: {
68
+ path: "locations_link.location",
69
+ isList: true,
70
+ },
71
+ },
72
+ },
73
+ ],
74
+ };
75
+ //# sourceMappingURL=fulfillment-provider-location.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fulfillment-provider-location.js","sourceRoot":"","sources":["../../src/definitions/fulfillment-provider-location.ts"],"names":[],"mappings":";;;AACA,yDAA8D;AAEjD,QAAA,2BAA2B,GAAuB;IAC7D,WAAW,EAAE,aAAK,CAAC,2BAA2B;IAC9C,MAAM,EAAE,IAAI;IACZ,cAAc,EAAE;QACd,SAAS,EAAE,+BAA+B;QAC1C,QAAQ,EAAE,OAAO;KAClB;IACD,KAAK,EAAE;QACL;YACE,IAAI,EAAE,CAAC,+BAA+B,EAAE,gCAAgC,CAAC;YACzE,MAAM,EAAE,iCAAiC;SAC1C;KACF;IACD,WAAW,EAAE,CAAC,IAAI,EAAE,mBAAmB,EAAE,yBAAyB,CAAC;IACnE,aAAa,EAAE;QACb;YACE,WAAW,EAAE,eAAO,CAAC,cAAc;YACnC,MAAM,EAAE,eAAe;YACvB,UAAU,EAAE,IAAI;YAChB,UAAU,EAAE,mBAAmB;YAC/B,KAAK,EAAE,UAAU;YACjB,IAAI,EAAE,EAAE,YAAY,EAAE,gBAAgB,EAAE;YACxC,OAAO,EAAE,IAAI;SACd;QACD;YACE,WAAW,EAAE,eAAO,CAAC,WAAW;YAChC,MAAM,EAAE,qBAAqB;YAC7B,UAAU,EAAE,IAAI;YAChB,UAAU,EAAE,yBAAyB;YACrC,KAAK,EAAE,sBAAsB;YAC7B,IAAI,EAAE,EAAE,YAAY,EAAE,sBAAsB,EAAE;YAC9C,OAAO,EAAE,IAAI;SACd;KACF;IACD,OAAO,EAAE;QACP;YACE,WAAW,EAAE,eAAO,CAAC,cAAc;YACnC,YAAY,EAAE;gBACZ,WAAW,EAAE,aAAK,CAAC,2BAA2B;gBAC9C,UAAU,EAAE,mBAAmB;gBAC/B,UAAU,EAAE,IAAI;gBAChB,KAAK,EAAE,2BAA2B;gBAClC,MAAM,EAAE,IAAI;aACb;YACD,UAAU,EAAE;gBACV,qBAAqB,EAAE;oBACrB,IAAI,EAAE,gDAAgD;oBACtD,MAAM,EAAE,IAAI;iBACb;aACF;SACF;QACD;YACE,WAAW,EAAE,eAAO,CAAC,WAAW;YAChC,MAAM,EAAE,qBAAqB;YAC7B,YAAY,EAAE;gBACZ,WAAW,EAAE,aAAK,CAAC,2BAA2B;gBAC9C,UAAU,EAAE,yBAAyB;gBACrC,UAAU,EAAE,IAAI;gBAChB,KAAK,EAAE,gBAAgB;gBACvB,MAAM,EAAE,IAAI;aACb;YACD,UAAU,EAAE;gBACV,SAAS,EAAE;oBACT,IAAI,EAAE,yBAAyB;oBAC/B,MAAM,EAAE,IAAI;iBACb;aACF;SACF;KACF;CACF,CAAA"}
@@ -0,0 +1,3 @@
1
+ import { ModuleJoinerConfig } from "@aiminaabeejs/framework/types";
2
+ export declare const LocationFulfillmentSet: ModuleJoinerConfig;
3
+ //# sourceMappingURL=fulfillment-set-location.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fulfillment-set-location.d.ts","sourceRoot":"","sources":["../../src/definitions/fulfillment-set-location.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAA;AAGlE,eAAO,MAAM,sBAAsB,EAAE,kBAqEpC,CAAA"}
@@ -0,0 +1,75 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LocationFulfillmentSet = void 0;
4
+ const utils_1 = require("@aiminaabeejs/framework/utils");
5
+ exports.LocationFulfillmentSet = {
6
+ serviceName: utils_1.LINKS.LocationFulfillmentSet,
7
+ isLink: true,
8
+ databaseConfig: {
9
+ tableName: "location_fulfillment_set",
10
+ idPrefix: "locfs",
11
+ },
12
+ alias: [
13
+ {
14
+ name: ["location_fulfillment_set", "location_fulfillment_sets"],
15
+ entity: "LinkLocationFulfillmentSet",
16
+ },
17
+ ],
18
+ primaryKeys: ["id", "stock_location_id", "fulfillment_set_id"],
19
+ relationships: [
20
+ {
21
+ serviceName: utils_1.Modules.STOCK_LOCATION,
22
+ entity: "StockLocation",
23
+ primaryKey: "id",
24
+ foreignKey: "stock_location_id",
25
+ alias: "location",
26
+ args: {
27
+ methodSuffix: "StockLocations",
28
+ },
29
+ },
30
+ {
31
+ serviceName: utils_1.Modules.FULFILLMENT,
32
+ entity: "FulfillmentSet",
33
+ primaryKey: "id",
34
+ foreignKey: "fulfillment_set_id",
35
+ alias: "fulfillment_set",
36
+ args: {
37
+ methodSuffix: "FulfillmentSets",
38
+ },
39
+ deleteCascade: true,
40
+ hasMany: true,
41
+ },
42
+ ],
43
+ extends: [
44
+ {
45
+ serviceName: utils_1.Modules.STOCK_LOCATION,
46
+ relationship: {
47
+ serviceName: utils_1.LINKS.LocationFulfillmentSet,
48
+ primaryKey: "stock_location_id",
49
+ foreignKey: "id",
50
+ alias: "fulfillment_set_link",
51
+ isList: true,
52
+ },
53
+ fieldAlias: {
54
+ fulfillment_sets: {
55
+ path: "fulfillment_set_link.fulfillment_set",
56
+ isList: true,
57
+ },
58
+ },
59
+ },
60
+ {
61
+ serviceName: utils_1.Modules.FULFILLMENT,
62
+ entity: "FulfillmentSet",
63
+ fieldAlias: {
64
+ location: "locations_link.location",
65
+ },
66
+ relationship: {
67
+ serviceName: utils_1.LINKS.LocationFulfillmentSet,
68
+ primaryKey: "fulfillment_set_id",
69
+ foreignKey: "id",
70
+ alias: "locations_link",
71
+ },
72
+ },
73
+ ],
74
+ };
75
+ //# sourceMappingURL=fulfillment-set-location.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fulfillment-set-location.js","sourceRoot":"","sources":["../../src/definitions/fulfillment-set-location.ts"],"names":[],"mappings":";;;AACA,yDAA8D;AAEjD,QAAA,sBAAsB,GAAuB;IACxD,WAAW,EAAE,aAAK,CAAC,sBAAsB;IACzC,MAAM,EAAE,IAAI;IACZ,cAAc,EAAE;QACd,SAAS,EAAE,0BAA0B;QACrC,QAAQ,EAAE,OAAO;KAClB;IACD,KAAK,EAAE;QACL;YACE,IAAI,EAAE,CAAC,0BAA0B,EAAE,2BAA2B,CAAC;YAC/D,MAAM,EAAE,4BAA4B;SACrC;KACF;IACD,WAAW,EAAE,CAAC,IAAI,EAAE,mBAAmB,EAAE,oBAAoB,CAAC;IAC9D,aAAa,EAAE;QACb;YACE,WAAW,EAAE,eAAO,CAAC,cAAc;YACnC,MAAM,EAAE,eAAe;YACvB,UAAU,EAAE,IAAI;YAChB,UAAU,EAAE,mBAAmB;YAC/B,KAAK,EAAE,UAAU;YACjB,IAAI,EAAE;gBACJ,YAAY,EAAE,gBAAgB;aAC/B;SACF;QACD;YACE,WAAW,EAAE,eAAO,CAAC,WAAW;YAChC,MAAM,EAAE,gBAAgB;YACxB,UAAU,EAAE,IAAI;YAChB,UAAU,EAAE,oBAAoB;YAChC,KAAK,EAAE,iBAAiB;YACxB,IAAI,EAAE;gBACJ,YAAY,EAAE,iBAAiB;aAChC;YACD,aAAa,EAAE,IAAI;YACnB,OAAO,EAAE,IAAI;SACd;KACF;IACD,OAAO,EAAE;QACP;YACE,WAAW,EAAE,eAAO,CAAC,cAAc;YACnC,YAAY,EAAE;gBACZ,WAAW,EAAE,aAAK,CAAC,sBAAsB;gBACzC,UAAU,EAAE,mBAAmB;gBAC/B,UAAU,EAAE,IAAI;gBAChB,KAAK,EAAE,sBAAsB;gBAC7B,MAAM,EAAE,IAAI;aACb;YACD,UAAU,EAAE;gBACV,gBAAgB,EAAE;oBAChB,IAAI,EAAE,sCAAsC;oBAC5C,MAAM,EAAE,IAAI;iBACb;aACF;SACF;QACD;YACE,WAAW,EAAE,eAAO,CAAC,WAAW;YAChC,MAAM,EAAE,gBAAgB;YACxB,UAAU,EAAE;gBACV,QAAQ,EAAE,yBAAyB;aACpC;YACD,YAAY,EAAE;gBACZ,WAAW,EAAE,aAAK,CAAC,sBAAsB;gBACzC,UAAU,EAAE,oBAAoB;gBAChC,UAAU,EAAE,IAAI;gBAChB,KAAK,EAAE,gBAAgB;aACxB;SACF;KACF;CACF,CAAA"}
@@ -2,6 +2,9 @@ export * from "./order-cart";
2
2
  export * from "./product-variant-price-set";
3
3
  export * from "./product-sales-channel";
4
4
  export * from "./product-collection";
5
+ export * from "./product-variant-inventory-item";
6
+ export * from "./fulfillment-provider-location";
7
+ export * from "./fulfillment-set-location";
5
8
  export * from "./region-payment-provider";
6
9
  export * from "./store-region";
7
10
  export * from "./store-product";
@@ -9,4 +12,5 @@ export * from "./store-sales-channel";
9
12
  export * from "./store-collection";
10
13
  export * from "./store-api-key";
11
14
  export * from "./store-shipping-profile";
15
+ export * from "./store-inventory-level";
12
16
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/definitions/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,6BAA6B,CAAA;AAC3C,cAAc,yBAAyB,CAAA;AACvC,cAAc,sBAAsB,CAAA;AACpC,cAAc,2BAA2B,CAAA;AACzC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,uBAAuB,CAAA;AACrC,cAAc,oBAAoB,CAAA;AAClC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,0BAA0B,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/definitions/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,6BAA6B,CAAA;AAC3C,cAAc,yBAAyB,CAAA;AACvC,cAAc,sBAAsB,CAAA;AACpC,cAAc,kCAAkC,CAAA;AAChD,cAAc,iCAAiC,CAAA;AAC/C,cAAc,4BAA4B,CAAA;AAC1C,cAAc,2BAA2B,CAAA;AACzC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,uBAAuB,CAAA;AACrC,cAAc,oBAAoB,CAAA;AAClC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,0BAA0B,CAAA;AACxC,cAAc,yBAAyB,CAAA"}
@@ -18,6 +18,9 @@ __exportStar(require("./order-cart"), exports);
18
18
  __exportStar(require("./product-variant-price-set"), exports);
19
19
  __exportStar(require("./product-sales-channel"), exports);
20
20
  __exportStar(require("./product-collection"), exports);
21
+ __exportStar(require("./product-variant-inventory-item"), exports);
22
+ __exportStar(require("./fulfillment-provider-location"), exports);
23
+ __exportStar(require("./fulfillment-set-location"), exports);
21
24
  __exportStar(require("./region-payment-provider"), exports);
22
25
  __exportStar(require("./store-region"), exports);
23
26
  __exportStar(require("./store-product"), exports);
@@ -25,4 +28,5 @@ __exportStar(require("./store-sales-channel"), exports);
25
28
  __exportStar(require("./store-collection"), exports);
26
29
  __exportStar(require("./store-api-key"), exports);
27
30
  __exportStar(require("./store-shipping-profile"), exports);
31
+ __exportStar(require("./store-inventory-level"), exports);
28
32
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/definitions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA4B;AAC5B,8DAA2C;AAC3C,0DAAuC;AACvC,uDAAoC;AACpC,4DAAyC;AACzC,iDAA8B;AAC9B,kDAA+B;AAC/B,wDAAqC;AACrC,qDAAkC;AAClC,kDAA+B;AAC/B,2DAAwC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/definitions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA4B;AAC5B,8DAA2C;AAC3C,0DAAuC;AACvC,uDAAoC;AACpC,mEAAgD;AAChD,kEAA+C;AAC/C,6DAA0C;AAC1C,4DAAyC;AACzC,iDAA8B;AAC9B,kDAA+B;AAC/B,wDAAqC;AACrC,qDAAkC;AAClC,kDAA+B;AAC/B,2DAAwC;AACxC,0DAAuC"}
@@ -0,0 +1,3 @@
1
+ import { ModuleJoinerConfig } from "@aiminaabeejs/framework/types";
2
+ export declare const ProductVariantInventoryItem: ModuleJoinerConfig;
3
+ //# sourceMappingURL=product-variant-inventory-item.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product-variant-inventory-item.d.ts","sourceRoot":"","sources":["../../src/definitions/product-variant-inventory-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAA;AAGlE,eAAO,MAAM,2BAA2B,EAAE,kBAgFzC,CAAA"}
@@ -0,0 +1,86 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ProductVariantInventoryItem = void 0;
4
+ const utils_1 = require("@aiminaabeejs/framework/utils");
5
+ exports.ProductVariantInventoryItem = {
6
+ serviceName: utils_1.LINKS.ProductVariantInventoryItem,
7
+ isLink: true,
8
+ databaseConfig: {
9
+ tableName: "product_variant_inventory_item",
10
+ idPrefix: "pvitem",
11
+ extraFields: {
12
+ required_quantity: {
13
+ type: "integer",
14
+ defaultValue: "1",
15
+ },
16
+ },
17
+ },
18
+ alias: [
19
+ {
20
+ name: [
21
+ "product_variant_inventory_item",
22
+ "product_variant_inventory_items",
23
+ ],
24
+ entity: "LinkProductVariantInventoryItem",
25
+ },
26
+ ],
27
+ primaryKeys: ["id", "variant_id", "inventory_item_id"],
28
+ relationships: [
29
+ {
30
+ serviceName: utils_1.Modules.PRODUCT,
31
+ entity: "ProductVariant",
32
+ primaryKey: "id",
33
+ foreignKey: "variant_id",
34
+ alias: "variant",
35
+ args: {
36
+ methodSuffix: "ProductVariants",
37
+ },
38
+ hasMany: true,
39
+ },
40
+ {
41
+ serviceName: utils_1.Modules.INVENTORY,
42
+ entity: "InventoryItem",
43
+ primaryKey: "id",
44
+ foreignKey: "inventory_item_id",
45
+ alias: "inventory",
46
+ args: {
47
+ methodSuffix: "InventoryItems",
48
+ },
49
+ hasMany: true,
50
+ },
51
+ ],
52
+ extends: [
53
+ {
54
+ serviceName: utils_1.Modules.PRODUCT,
55
+ entity: "ProductVariant",
56
+ fieldAlias: {
57
+ inventory: "inventory_items.inventory",
58
+ },
59
+ relationship: {
60
+ serviceName: utils_1.LINKS.ProductVariantInventoryItem,
61
+ primaryKey: "variant_id",
62
+ foreignKey: "id",
63
+ alias: "inventory_items",
64
+ isList: true,
65
+ },
66
+ },
67
+ {
68
+ serviceName: utils_1.Modules.INVENTORY,
69
+ entity: "InventoryItem",
70
+ fieldAlias: {
71
+ variants: {
72
+ path: "variant_link.variant",
73
+ isList: true,
74
+ },
75
+ },
76
+ relationship: {
77
+ serviceName: utils_1.LINKS.ProductVariantInventoryItem,
78
+ primaryKey: "inventory_item_id",
79
+ foreignKey: "id",
80
+ alias: "variant_link",
81
+ isList: true,
82
+ },
83
+ },
84
+ ],
85
+ };
86
+ //# sourceMappingURL=product-variant-inventory-item.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product-variant-inventory-item.js","sourceRoot":"","sources":["../../src/definitions/product-variant-inventory-item.ts"],"names":[],"mappings":";;;AACA,yDAA8D;AAEjD,QAAA,2BAA2B,GAAuB;IAC7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AE,eAAe;YACvB,UAAU,EAAE;gBACV,QAAQ,EAAE;oBACR,IAAI,EAAE,sBAAsB;oBAC5B,MAAM,EAAE,IAAI;iBACb;aACF;YACD,YAAY,EAAE;gBACZ,WAAW,EAAE,aAAK,CAAC,2BAA2B;gBAC9C,UAAU,EAAE,mBAAmB;gBAC/B,UAAU,EAAE,IAAI;gBAChB,KAAK,EAAE,cAAc;gBACrB,MAAM,EAAE,IAAI;aACb;SACF;KACF;CACF,CAAA"}
@@ -0,0 +1,3 @@
1
+ import { ModuleJoinerConfig } from "@aiminaabeejs/framework/types";
2
+ export declare const StoreInventoryLevel: ModuleJoinerConfig;
3
+ //# sourceMappingURL=store-inventory-level.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"store-inventory-level.d.ts","sourceRoot":"","sources":["../../src/definitions/store-inventory-level.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAA;AAGlE,eAAO,MAAM,mBAAmB,EAAE,kBAqFjC,CAAA"}
@@ -0,0 +1,91 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StoreInventoryLevel = void 0;
4
+ const utils_1 = require("@aiminaabeejs/framework/utils");
5
+ exports.StoreInventoryLevel = {
6
+ serviceName: utils_1.LINKS.StoreInventoryLevel,
7
+ isLink: true,
8
+ databaseConfig: {
9
+ tableName: "store_inventory_level",
10
+ idPrefix: "stinvlev",
11
+ extraFields: {
12
+ // Additional fields for store-specific inventory management
13
+ access_type: {
14
+ type: "text",
15
+ defaultValue: "full", // full, read_only, restricted
16
+ },
17
+ priority: {
18
+ type: "integer",
19
+ defaultValue: "0", // Higher priority = preferred location for this store
20
+ },
21
+ },
22
+ },
23
+ alias: [
24
+ {
25
+ name: ["store_inventory_level", "store_inventory_levels"],
26
+ entity: "LinkStoreInventoryLevel",
27
+ },
28
+ ],
29
+ primaryKeys: ["id", "store_id", "inventory_level_id"],
30
+ relationships: [
31
+ {
32
+ serviceName: utils_1.Modules.STORE,
33
+ entity: "Store",
34
+ primaryKey: "id",
35
+ foreignKey: "store_id",
36
+ alias: "store",
37
+ args: {
38
+ methodSuffix: "Stores",
39
+ },
40
+ hasMany: true,
41
+ },
42
+ {
43
+ serviceName: utils_1.Modules.INVENTORY,
44
+ entity: "InventoryLevel",
45
+ primaryKey: "id",
46
+ foreignKey: "inventory_level_id",
47
+ alias: "inventory_level",
48
+ args: {
49
+ methodSuffix: "InventoryLevels",
50
+ },
51
+ hasMany: true,
52
+ },
53
+ ],
54
+ extends: [
55
+ {
56
+ serviceName: utils_1.Modules.STORE,
57
+ entity: "Store",
58
+ fieldAlias: {
59
+ inventory_levels: {
60
+ path: "inventory_levels_link.inventory_level",
61
+ isList: true,
62
+ },
63
+ },
64
+ relationship: {
65
+ serviceName: utils_1.LINKS.StoreInventoryLevel,
66
+ primaryKey: "store_id",
67
+ foreignKey: "id",
68
+ alias: "inventory_levels_link",
69
+ isList: true,
70
+ },
71
+ },
72
+ {
73
+ serviceName: utils_1.Modules.INVENTORY,
74
+ entity: "InventoryLevel",
75
+ fieldAlias: {
76
+ stores: {
77
+ path: "stores_link.store",
78
+ isList: true,
79
+ },
80
+ },
81
+ relationship: {
82
+ serviceName: utils_1.LINKS.StoreInventoryLevel,
83
+ primaryKey: "inventory_level_id",
84
+ foreignKey: "id",
85
+ alias: "stores_link",
86
+ isList: true,
87
+ },
88
+ },
89
+ ],
90
+ };
91
+ //# sourceMappingURL=store-inventory-level.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"store-inventory-level.js","sourceRoot":"","sources":["../../src/definitions/store-inventory-level.ts"],"names":[],"mappings":";;;AACA,yDAA8D;AAEjD,QAAA,mBAAmB,GAAuB;IACrD,WAAW,EAAE,aAAK,CAAC,mBAAmB;IACtC,MAAM,EAAE,IAAI;IACZ,cAAc,EAAE;QACd,SAAS,EAAE,uBAAuB;QAClC,QAAQ,EAAE,UAAU;QACpB,WAAW,EAAE;YACX,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M,EAAE,gBAAgB;YACxB,UAAU,EAAE;gBACV,MAAM,EAAE;oBACN,IAAI,EAAE,mBAAmB;oBACzB,MAAM,EAAE,IAAI;iBACb;aACF;YACD,YAAY,EAAE;gBACZ,WAAW,EAAE,aAAK,CAAC,mBAAmB;gBACtC,UAAU,EAAE,oBAAoB;gBAChC,UAAU,EAAE,IAAI;gBAChB,KAAK,EAAE,aAAa;gBACpB,MAAM,EAAE,IAAI;aACb;SACF;KACF;CACF,CAAA"}
@@ -1 +1 @@
1
- {"root":["../src/index.ts","../src/definitions/index.ts","../src/definitions/order-cart.ts","../src/definitions/product-collection.ts","../src/definitions/product-sales-channel.ts","../src/definitions/product-variant-price-set.ts","../src/definitions/region-payment-provider.ts","../src/definitions/store-api-key.ts","../src/definitions/store-collection.ts","../src/definitions/store-product.ts","../src/definitions/store-region.ts","../src/definitions/store-sales-channel.ts","../src/definitions/store-shipping-profile.ts","../src/initialize/index.ts","../src/initialize/module-definition.ts","../src/loaders/connection.ts","../src/loaders/container.ts","../src/loaders/index.ts","../src/migration/index.ts","../src/repositories/index.ts","../src/repositories/link.ts","../src/services/dynamic-service-class.ts","../src/services/index.ts","../src/services/link-module-service.ts","../src/services/link.ts","../src/types/index.ts","../src/utils/generate-entity.ts","../src/utils/generate-schema.ts","../src/utils/index.ts"],"version":"5.7.3"}
1
+ {"root":["../src/index.ts","../src/definitions/fulfillment-provider-location.ts","../src/definitions/fulfillment-set-location.ts","../src/definitions/index.ts","../src/definitions/order-cart.ts","../src/definitions/product-collection.ts","../src/definitions/product-sales-channel.ts","../src/definitions/product-variant-inventory-item.ts","../src/definitions/product-variant-price-set.ts","../src/definitions/region-payment-provider.ts","../src/definitions/store-api-key.ts","../src/definitions/store-collection.ts","../src/definitions/store-inventory-level.ts","../src/definitions/store-product.ts","../src/definitions/store-region.ts","../src/definitions/store-sales-channel.ts","../src/definitions/store-shipping-profile.ts","../src/initialize/index.ts","../src/initialize/module-definition.ts","../src/loaders/connection.ts","../src/loaders/container.ts","../src/loaders/index.ts","../src/migration/index.ts","../src/repositories/index.ts","../src/repositories/link.ts","../src/services/dynamic-service-class.ts","../src/services/index.ts","../src/services/link-module-service.ts","../src/services/link.ts","../src/types/index.ts","../src/utils/generate-entity.ts","../src/utils/generate-schema.ts","../src/utils/index.ts"],"version":"5.7.3"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiminaabeejs/link-modules",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "description": "Aiminaabeejs Default Link Modules Package and Definitions",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",