@aiminaabeejs/link-modules 0.0.24 → 0.0.26

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.
@@ -16,6 +16,7 @@ export * from "./region-fulfillment-provider";
16
16
  export * from "./sales-channel-location";
17
17
  export * from "./shipping-option-price-set";
18
18
  export * from "./product-shipping-profile";
19
+ export * from "./store-location";
19
20
  export * from "./customer-account-holder";
20
21
  export * from "./store-api-key";
21
22
  export * from "./store-category";
@@ -24,9 +25,11 @@ export * from "./store-customer";
24
25
  export * from "./store-customer-group";
25
26
  export * from "./store-order";
26
27
  export * from "./store-price-list";
28
+ export * from "./store-return-reason";
27
29
  export * from "./store-product";
30
+ export * from "./store-product-tag";
31
+ export * from "./store-product-type";
28
32
  export * from "./store-region";
29
- export * from "./store-return-reason";
30
33
  export * from "./store-sales-channel";
31
34
  export * from "./store-tax-region";
32
35
  export * from "./store-shipping-profile";
@@ -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,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,2BAA2B,CAAA;AACzC,cAAc,+BAA+B,CAAA;AAC7C,cAAc,0BAA0B,CAAA;AACxC,cAAc,6BAA6B,CAAA;AAC3C,cAAc,4BAA4B,CAAA;AAC1C,cAAc,2BAA2B,CAAA;AACzC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,kBAAkB,CAA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Ac,sBAAsB,CAAA;AACpC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,uBAAuB,CAAA;AACrC,cAAc,oBAAoB,CAAA;AAClC,cAAc,0BAA0B,CAAA;AACxC,cAAc,cAAc,CAAA;AAG5B,cAAc,YAAY,CAAA"}
@@ -32,6 +32,7 @@ __exportStar(require("./region-fulfillment-provider"), exports);
32
32
  __exportStar(require("./sales-channel-location"), exports);
33
33
  __exportStar(require("./shipping-option-price-set"), exports);
34
34
  __exportStar(require("./product-shipping-profile"), exports);
35
+ __exportStar(require("./store-location"), exports);
35
36
  __exportStar(require("./customer-account-holder"), exports);
36
37
  __exportStar(require("./store-api-key"), exports);
37
38
  __exportStar(require("./store-category"), exports);
@@ -41,9 +42,11 @@ __exportStar(require("./store-customer-group"), exports);
41
42
  // export * from "./store-inventory-level"
42
43
  __exportStar(require("./store-order"), exports);
43
44
  __exportStar(require("./store-price-list"), exports);
45
+ __exportStar(require("./store-return-reason"), exports);
44
46
  __exportStar(require("./store-product"), exports);
47
+ __exportStar(require("./store-product-tag"), exports);
48
+ __exportStar(require("./store-product-type"), exports);
45
49
  __exportStar(require("./store-region"), exports);
46
- __exportStar(require("./store-return-reason"), exports);
47
50
  __exportStar(require("./store-sales-channel"), exports);
48
51
  __exportStar(require("./store-tax-region"), exports);
49
52
  __exportStar(require("./store-shipping-profile"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/definitions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAAyC;AACzC,mDAAgC;AAChC,kEAA+C;AAC/C,6DAA0C;AAC1C,+CAA4B;AAC5B,sDAAmC;AACnC,6DAA0C;AAC1C,oDAAiC;AACjC,6DAA0C;AAC1C,0DAAuC;AACvC,mEAAgD;AAChD,8DAA2C;AAC3C,sEAAmD;AACnD,4DAAyC;AACzC,gEAA6C;AAC7C,2DAAwC;AACxC,8DAA2C;AAC3C,6DAA0C;AAC1C,4DAAyC;AACzC,kDAA+B;AAC/B,mDAAgC;AAChC,qDAAkC;AAClC,mDAAgC;AAChC,yDAAsC;AACtC,0CAA0C;AAC1C,gDAA6B;AAC7B,qDAAkC;AAClC,kDAA+B;AAC/B,iDAA8B;AAC9B,wDAAqC;AACrC,wDAAqC;AACrC,qDAAkC;AAClC,2DAAwC;AACxC,+CAA4B;AAE5B,iBAAiB;AACjB,6CAA0B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/definitions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAAyC;AACzC,mDAAgC;AAChC,kEAA+C;AAC/C,6DAA0C;AAC1C,+CAA4B;AAC5B,sDAAmC;AACnC,6DAA0C;AAC1C,oDAAiC;AACjC,6DAA0C;AAC1C,0DAAuC;AACvC,mEAAgD;AAChD,8DAA2C;AAC3C,sEAAmD;AACnD,4DAAyC;AACzC,gEAA6C;AAC7C,2DAAwC;AACxC,8DAA2C;AAC3C,6DAA0C;AAC1C,mDAAgC;AAChC,4DAAyC;AACzC,kDAA+B;AAC/B,mDAAgC;AAChC,qDAAkC;AAClC,mDAAgC;AAChC,yDAAsC;AACtC,0CAA0C;AAC1C,gDAA6B;AAC7B,qDAAkC;AAClC,wDAAqC;AACrC,kDAA+B;AAC/B,sDAAmC;AACnC,uDAAoC;AACpC,iDAA8B;AAC9B,wDAAqC;AACrC,qDAAkC;AAClC,2DAAwC;AACxC,+CAA4B;AAE5B,iBAAiB;AACjB,6CAA0B"}
@@ -0,0 +1,3 @@
1
+ import { ModuleJoinerConfig } from "@aiminaabeejs/framework/types";
2
+ export declare const StoreLocation: ModuleJoinerConfig;
3
+ //# sourceMappingURL=store-location.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"store-location.d.ts","sourceRoot":"","sources":["../../src/definitions/store-location.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAA;AAGlE,eAAO,MAAM,aAAa,EAAE,kBA8E3B,CAAA"}
@@ -0,0 +1,84 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StoreLocation = void 0;
4
+ const utils_1 = require("@aiminaabeejs/framework/utils");
5
+ exports.StoreLocation = {
6
+ serviceName: utils_1.LINKS.StoreLocation,
7
+ isLink: true,
8
+ databaseConfig: {
9
+ tableName: "store_location",
10
+ idPrefix: "stloc",
11
+ },
12
+ alias: [
13
+ {
14
+ name: "store_location",
15
+ },
16
+ {
17
+ name: "store_locations",
18
+ },
19
+ ],
20
+ primaryKeys: ["id", "store_id", "location_id"],
21
+ relationships: [
22
+ {
23
+ serviceName: utils_1.Modules.STORE,
24
+ entity: "Store",
25
+ primaryKey: "id",
26
+ foreignKey: "store_id",
27
+ alias: "store",
28
+ args: {
29
+ methodSuffix: "Stores",
30
+ },
31
+ hasMany: true,
32
+ },
33
+ {
34
+ serviceName: utils_1.Modules.STOCK_LOCATION,
35
+ entity: "StockLocation",
36
+ primaryKey: "id",
37
+ foreignKey: "location_id",
38
+ alias: "location",
39
+ args: {
40
+ methodSuffix: "StockLocations",
41
+ },
42
+ hasMany: true,
43
+ },
44
+ ],
45
+ extends: [
46
+ // ONE-TO-MANY: Store has many StockLocations
47
+ {
48
+ serviceName: utils_1.Modules.STORE,
49
+ entity: "Store",
50
+ fieldAlias: {
51
+ locations: {
52
+ path: "locations_link.location",
53
+ isList: true, // ONE Store → MANY StockLocations
54
+ },
55
+ },
56
+ relationship: {
57
+ serviceName: utils_1.LINKS.StoreLocation,
58
+ primaryKey: "store_id",
59
+ foreignKey: "id",
60
+ alias: "locations_link",
61
+ isList: true,
62
+ },
63
+ },
64
+ // ONE-TO-ONE: StockLocation belongs to exactly one Store
65
+ {
66
+ serviceName: utils_1.Modules.STOCK_LOCATION,
67
+ entity: "StockLocation",
68
+ fieldAlias: {
69
+ store: {
70
+ path: "store_link.store",
71
+ isList: false, // ONE StockLocation → ONE Store
72
+ },
73
+ },
74
+ relationship: {
75
+ serviceName: utils_1.LINKS.StoreLocation,
76
+ primaryKey: "location_id",
77
+ foreignKey: "id",
78
+ alias: "store_link", // Singular alias
79
+ isList: false,
80
+ },
81
+ },
82
+ ],
83
+ };
84
+ //# sourceMappingURL=store-location.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"store-location.js","sourceRoot":"","sources":["../../src/definitions/store-location.ts"],"names":[],"mappings":";;;AACA,yDAA8D;AAEjD,QAAA,aAAa,GAAuB;IAC/C,WAAW,EAAE,aAAK,CAAC,aAAa;IAChC,MAAM,EAAE,IAAI;IACZ,cAAc,EAAE;QACd,SAAS,EAAE,gBAAgB;QAC3B,QAAQ,EAAE,OAAO;KAClB;IACD,KAAK,EAAE;QACL;YACE,IAAI,EAAE,gBAAgB;SACvB;QACD;YACE,IAAI,EAAE,iBAAiB;SACxB;KACF;IACD,WAAW,EAAE,CAAC,IAAI,EAAE,UAAU,EAAE,aAAa,CAAC;IAC9C,aAAa,EAAE;QACb;YACE,WAAW,EAAE,eAAO,CAAC,KAAK;YAC1B,MAAM,EAAE,OAAO;YACf,UAAU,EAAE,IAAI;YAChB,UAAU,EAAE,UAAU;YACtB,KAAK,EAAE,OAAO;YACd,IAAI,EAAE;gBACJ,YAAY,EAAE,QAAQ;aACvB;YACD,OAAO,EAAE,IAAI;SACd;QACD;YACE,WAAW,EAAE,eAAO,CAAC,cAAc;YACnC,MAAM,EAAE,eAAe;YACvB,UAAU,EAAE,IAAI;YAChB,UAAU,EAAE,aAAa;YACzB,KAAK,EAAE,UAAU;YACjB,IAAI,EAAE;gBACJ,YAAY,EAAE,gBAAgB;aAC/B;YACD,OAAO,EAAE,IAAI;SACd;KACF;IACD,OAAO,EAAE;QACP,6CAA6C;QAC7C;YACE,WAAW,EAAE,eAAO,CAAC,KAAK;YAC1B,MAAM,EAAE,OAAO;YACf,UAAU,EAAE;gBACV,SAAS,EAAE;oBACT,IAAI,EAAE,yBAAyB;oBAC/B,MAAM,EAAE,IAAI,EAAE,kCAAkC;iBACjD;aACF;YACD,YAAY,EAAE;gBACZ,WAAW,EAAE,aAAK,CAAC,aAAa;gBAChC,UAAU,EAAE,UAAU;gBACtB,UAAU,EAAE,IAAI;gBAChB,KAAK,EAAE,gBAAgB;gBACvB,MAAM,EAAE,IAAI;aACb;SACF;QACD,yDAAyD;QACzD;YACE,WAAW,EAAE,eAAO,CAAC,cAAc;YACnC,MAAM,EAAE,eAAe;YACvB,UAAU,EAAE;gBACV,KAAK,EAAE;oBACL,IAAI,EAAE,kBAAkB;oBACxB,MAAM,EAAE,KAAK,EAAE,gCAAgC;iBAChD;aACF;YACD,YAAY,EAAE;gBACZ,WAAW,EAAE,aAAK,CAAC,aAAa;gBAChC,UAAU,EAAE,aAAa;gBACzB,UAAU,EAAE,IAAI;gBAChB,KAAK,EAAE,YAAY,EAAE,iBAAiB;gBACtC,MAAM,EAAE,KAAK;aACd;SACF;KACF;CACF,CAAA"}
@@ -0,0 +1,3 @@
1
+ import { ModuleJoinerConfig } from "@aiminaabeejs/framework/types";
2
+ export declare const StoreProductTag: ModuleJoinerConfig;
3
+ //# sourceMappingURL=store-product-tag.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"store-product-tag.d.ts","sourceRoot":"","sources":["../../src/definitions/store-product-tag.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAA;AAGlE,eAAO,MAAM,eAAe,EAAE,kBA2E7B,CAAA"}
@@ -0,0 +1,81 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StoreProductTag = void 0;
4
+ const utils_1 = require("@aiminaabeejs/framework/utils");
5
+ exports.StoreProductTag = {
6
+ serviceName: utils_1.LINKS.StoreProductTag,
7
+ isLink: true,
8
+ databaseConfig: {
9
+ tableName: "store_product_tag",
10
+ idPrefix: "stptag",
11
+ },
12
+ alias: [
13
+ {
14
+ name: "store_product_tag",
15
+ },
16
+ {
17
+ name: "store_product_tags",
18
+ },
19
+ ],
20
+ primaryKeys: ["id", "store_id", "product_tag_id"],
21
+ relationships: [
22
+ {
23
+ serviceName: utils_1.Modules.STORE,
24
+ entity: "Store",
25
+ primaryKey: "id",
26
+ foreignKey: "store_id",
27
+ alias: "store",
28
+ args: {
29
+ methodSuffix: "Stores",
30
+ },
31
+ hasMany: true,
32
+ },
33
+ {
34
+ serviceName: utils_1.Modules.PRODUCT,
35
+ entity: "ProductTag",
36
+ primaryKey: "id",
37
+ foreignKey: "product_tag_id",
38
+ alias: "product_tag",
39
+ hasMany: true,
40
+ },
41
+ ],
42
+ extends: [
43
+ // ONE-TO-MANY: Store has many ProductTags
44
+ {
45
+ serviceName: utils_1.Modules.STORE,
46
+ entity: "Store",
47
+ fieldAlias: {
48
+ product_tags: {
49
+ path: "product_tags_link.product_tag",
50
+ isList: true, // ONE Store → MANY ProductTags
51
+ },
52
+ },
53
+ relationship: {
54
+ serviceName: utils_1.LINKS.StoreProductTag,
55
+ primaryKey: "store_id",
56
+ foreignKey: "id",
57
+ alias: "product_tags_link",
58
+ isList: true, // ONE Store → MANY ProductTags
59
+ },
60
+ },
61
+ // ONE-TO-MANY: ProductTag belongs to exactly one Store
62
+ {
63
+ serviceName: utils_1.Modules.PRODUCT,
64
+ entity: "ProductTag",
65
+ fieldAlias: {
66
+ store: {
67
+ path: "store_link.store",
68
+ isList: false, // ONE ProductTag → ONE Store (singular field name "store")
69
+ },
70
+ },
71
+ relationship: {
72
+ serviceName: utils_1.LINKS.StoreProductTag,
73
+ primaryKey: "product_tag_id",
74
+ foreignKey: "id",
75
+ alias: "store_link", // Singular alias (not "stores_link")
76
+ isList: false, // ONE ProductTag → ONE Store
77
+ },
78
+ },
79
+ ],
80
+ };
81
+ //# sourceMappingURL=store-product-tag.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"store-product-tag.js","sourceRoot":"","sources":["../../src/definitions/store-product-tag.ts"],"names":[],"mappings":";;;AACA,yDAA8D;AAEjD,QAAA,eAAe,GAAuB;IACjD,WA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oBACxB,MAAM,EAAE,KAAK,EAAE,2DAA2D;iBAC3E;aACF;YACD,YAAY,EAAE;gBACZ,WAAW,EAAE,aAAK,CAAC,eAAe;gBAClC,UAAU,EAAE,gBAAgB;gBAC5B,UAAU,EAAE,IAAI;gBAChB,KAAK,EAAE,YAAY,EAAE,qCAAqC;gBAC1D,MAAM,EAAE,KAAK,EAAE,6BAA6B;aAC7C;SACF;KACF;CACF,CAAA"}
@@ -0,0 +1,3 @@
1
+ import { ModuleJoinerConfig } from "@aiminaabeejs/framework/types";
2
+ export declare const StoreProductType: ModuleJoinerConfig;
3
+ //# sourceMappingURL=store-product-type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"store-product-type.d.ts","sourceRoot":"","sources":["../../src/definitions/store-product-type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAA;AAGlE,eAAO,MAAM,gBAAgB,EAAE,kBA2E9B,CAAA"}
@@ -0,0 +1,81 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StoreProductType = void 0;
4
+ const utils_1 = require("@aiminaabeejs/framework/utils");
5
+ exports.StoreProductType = {
6
+ serviceName: utils_1.LINKS.StoreProductType,
7
+ isLink: true,
8
+ databaseConfig: {
9
+ tableName: "store_product_type",
10
+ idPrefix: "stpt",
11
+ },
12
+ alias: [
13
+ {
14
+ name: "store_product_type",
15
+ },
16
+ {
17
+ name: "store_product_types",
18
+ },
19
+ ],
20
+ primaryKeys: ["id", "store_id", "product_type_id"],
21
+ relationships: [
22
+ {
23
+ serviceName: utils_1.Modules.STORE,
24
+ entity: "Store",
25
+ primaryKey: "id",
26
+ foreignKey: "store_id",
27
+ alias: "store",
28
+ args: {
29
+ methodSuffix: "Stores",
30
+ },
31
+ hasMany: true,
32
+ },
33
+ {
34
+ serviceName: utils_1.Modules.PRODUCT,
35
+ entity: "ProductType",
36
+ primaryKey: "id",
37
+ foreignKey: "product_type_id",
38
+ alias: "product_type",
39
+ hasMany: true,
40
+ },
41
+ ],
42
+ extends: [
43
+ // ONE-TO-MANY: Store has many ProductTypes
44
+ {
45
+ serviceName: utils_1.Modules.STORE,
46
+ entity: "Store",
47
+ fieldAlias: {
48
+ product_types: {
49
+ path: "product_types_link.product_type",
50
+ isList: true, // ONE Store → MANY ProductTypes
51
+ },
52
+ },
53
+ relationship: {
54
+ serviceName: utils_1.LINKS.StoreProductType,
55
+ primaryKey: "store_id",
56
+ foreignKey: "id",
57
+ alias: "product_types_link",
58
+ isList: true, // ONE Store → MANY ProductTypes
59
+ },
60
+ },
61
+ // ONE-TO-MANY: ProductType belongs to exactly one Store
62
+ {
63
+ serviceName: utils_1.Modules.PRODUCT,
64
+ entity: "ProductType",
65
+ fieldAlias: {
66
+ store: {
67
+ path: "store_link.store",
68
+ isList: false, // ONE ProductType → ONE Store (singular field name "store")
69
+ },
70
+ },
71
+ relationship: {
72
+ serviceName: utils_1.LINKS.StoreProductType,
73
+ primaryKey: "product_type_id",
74
+ foreignKey: "id",
75
+ alias: "store_link", // Singular alias (not "stores_link")
76
+ isList: false, // ONE ProductType → ONE Store
77
+ },
78
+ },
79
+ ],
80
+ };
81
+ //# sourceMappingURL=store-product-type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"store-product-type.js","sourceRoot":"","sources":["../../src/definitions/store-product-type.ts"],"names":[],"mappings":";;;AACA,yDAA8D;AAEjD,QAAA,gBAAgB,GAAuB;IAClD,WAAW,EAAE,aAAK,CAAC,gBAAgB;IACnC,MAAM,EAAE,IAAI;IACZ,cAAc,EAAE;QACd,SAAS,EAAE,oBAAoB;QAC/B,QAAQ,EAAE,MAAM;KACjB;IACD,KAAK,EAAE;QACL;YACE,IAAI,EAAE,oBAAoB;SAC3B;QACD;YACE,IAAI,EAAE,qBAAqB;SAC5B;KACF;IACD,WAAW,EAAE,CAAC,IAAI,EAAE,UAAU,EAAE,iBAAiB,CAAC;IAClD,aAAa,EAAE;QACb;YAC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/definitions/cart-payment-collection.ts","../src/definitions/cart-promotion.ts","../src/definitions/customer-account-holder.ts","../src/definitions/fulfillment-provider-location.ts","../src/definitions/fulfillment-set-location.ts","../src/definitions/index.ts","../src/definitions/order-cart.ts","../src/definitions/order-fulfillment.ts","../src/definitions/order-payment-collection.ts","../src/definitions/order-promotion.ts","../src/definitions/order-return-fulfillment.ts","../src/definitions/product-sales-channel.ts","../src/definitions/product-shipping-profile.ts","../src/definitions/product-variant-inventory-item.ts","../src/definitions/product-variant-price-set.ts","../src/definitions/publishable-api-key-sales-channel.ts","../src/definitions/region-fulfillment-provider.ts","../src/definitions/region-payment-provider.ts","../src/definitions/sales-channel-location.ts","../src/definitions/shipping-option-price-set.ts","../src/definitions/store-api-key.ts","../src/definitions/store-category.ts","../src/definitions/store-collection.ts","../src/definitions/store-customer-group.ts","../src/definitions/store-customer.ts","../src/definitions/store-inventory-level.ts","../src/definitions/store-order.ts","../src/definitions/store-price-list.ts","../src/definitions/store-product.ts","../src/definitions/store-region.ts","../src/definitions/store-return-reason.ts","../src/definitions/store-sales-channel.ts","../src/definitions/store-shipping-profile.ts","../src/definitions/store-tax-region.ts","../src/definitions/store-user.ts","../src/definitions/readonly/index.ts","../src/definitions/readonly/store-currency.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/cart-payment-collection.ts","../src/definitions/cart-promotion.ts","../src/definitions/customer-account-holder.ts","../src/definitions/fulfillment-provider-location.ts","../src/definitions/fulfillment-set-location.ts","../src/definitions/index.ts","../src/definitions/order-cart.ts","../src/definitions/order-fulfillment.ts","../src/definitions/order-payment-collection.ts","../src/definitions/order-promotion.ts","../src/definitions/order-return-fulfillment.ts","../src/definitions/product-sales-channel.ts","../src/definitions/product-shipping-profile.ts","../src/definitions/product-variant-inventory-item.ts","../src/definitions/product-variant-price-set.ts","../src/definitions/publishable-api-key-sales-channel.ts","../src/definitions/region-fulfillment-provider.ts","../src/definitions/region-payment-provider.ts","../src/definitions/sales-channel-location.ts","../src/definitions/shipping-option-price-set.ts","../src/definitions/store-api-key.ts","../src/definitions/store-category.ts","../src/definitions/store-collection.ts","../src/definitions/store-customer-group.ts","../src/definitions/store-customer.ts","../src/definitions/store-inventory-level.ts","../src/definitions/store-location.ts","../src/definitions/store-order.ts","../src/definitions/store-price-list.ts","../src/definitions/store-product-tag.ts","../src/definitions/store-product-type.ts","../src/definitions/store-product.ts","../src/definitions/store-region.ts","../src/definitions/store-return-reason.ts","../src/definitions/store-sales-channel.ts","../src/definitions/store-shipping-profile.ts","../src/definitions/store-tax-region.ts","../src/definitions/store-user.ts","../src/definitions/readonly/index.ts","../src/definitions/readonly/store-currency.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.24",
3
+ "version": "0.0.26",
4
4
  "description": "Aiminaabeejs Default Link Modules Package and Definitions",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",