@aiminaabeejs/link-modules 0.0.6 → 0.0.7
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/definitions/index.d.ts +2 -0
- package/dist/definitions/index.d.ts.map +1 -1
- package/dist/definitions/index.js +2 -0
- package/dist/definitions/index.js.map +1 -1
- package/dist/definitions/product-collection.d.ts +3 -0
- package/dist/definitions/product-collection.d.ts.map +1 -0
- package/dist/definitions/product-collection.js +82 -0
- package/dist/definitions/product-collection.js.map +1 -0
- package/dist/definitions/store-collection.d.ts +3 -0
- package/dist/definitions/store-collection.d.ts.map +1 -0
- package/dist/definitions/store-collection.js +82 -0
- package/dist/definitions/store-collection.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
export * from "./order-cart";
|
|
2
2
|
export * from "./product-variant-price-set";
|
|
3
3
|
export * from "./product-sales-channel";
|
|
4
|
+
export * from "./product-collection";
|
|
4
5
|
export * from "./region-payment-provider";
|
|
5
6
|
export * from "./store-region";
|
|
6
7
|
export * from "./store-product";
|
|
7
8
|
export * from "./store-sales-channel";
|
|
9
|
+
export * from "./store-collection";
|
|
8
10
|
export * from "./store-api-key";
|
|
9
11
|
export * from "./store-shipping-profile";
|
|
10
12
|
//# 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,2BAA2B,CAAA;AACzC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,uBAAuB,CAAA;AACrC,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,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"}
|
|
@@ -17,10 +17,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./order-cart"), exports);
|
|
18
18
|
__exportStar(require("./product-variant-price-set"), exports);
|
|
19
19
|
__exportStar(require("./product-sales-channel"), exports);
|
|
20
|
+
__exportStar(require("./product-collection"), exports);
|
|
20
21
|
__exportStar(require("./region-payment-provider"), exports);
|
|
21
22
|
__exportStar(require("./store-region"), exports);
|
|
22
23
|
__exportStar(require("./store-product"), exports);
|
|
23
24
|
__exportStar(require("./store-sales-channel"), exports);
|
|
25
|
+
__exportStar(require("./store-collection"), exports);
|
|
24
26
|
__exportStar(require("./store-api-key"), exports);
|
|
25
27
|
__exportStar(require("./store-shipping-profile"), exports);
|
|
26
28
|
//# 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,4DAAyC;AACzC,iDAA8B;AAC9B,kDAA+B;AAC/B,wDAAqC;AACrC,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,4DAAyC;AACzC,iDAA8B;AAC9B,kDAA+B;AAC/B,wDAAqC;AACrC,qDAAkC;AAClC,kDAA+B;AAC/B,2DAAwC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product-collection.d.ts","sourceRoot":"","sources":["../../src/definitions/product-collection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAA;AAGlE,eAAO,MAAM,iBAAiB,EAAE,kBA4E/B,CAAA"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ProductCollection = void 0;
|
|
4
|
+
const utils_1 = require("@aiminaabeejs/framework/utils");
|
|
5
|
+
exports.ProductCollection = {
|
|
6
|
+
serviceName: utils_1.LINKS.ProductCollection,
|
|
7
|
+
isLink: true,
|
|
8
|
+
databaseConfig: {
|
|
9
|
+
tableName: "product_collection",
|
|
10
|
+
idPrefix: "prcol",
|
|
11
|
+
},
|
|
12
|
+
alias: [
|
|
13
|
+
{
|
|
14
|
+
name: "product_collection",
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
name: "product_collections",
|
|
18
|
+
},
|
|
19
|
+
],
|
|
20
|
+
primaryKeys: ["id", "product_id", "collection_id"],
|
|
21
|
+
relationships: [
|
|
22
|
+
{
|
|
23
|
+
serviceName: utils_1.Modules.PRODUCT,
|
|
24
|
+
entity: "Product",
|
|
25
|
+
primaryKey: "id",
|
|
26
|
+
foreignKey: "product_id",
|
|
27
|
+
alias: "product",
|
|
28
|
+
args: {
|
|
29
|
+
methodSuffix: "Products",
|
|
30
|
+
},
|
|
31
|
+
hasMany: true,
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
serviceName: utils_1.Modules.COLLECTION,
|
|
35
|
+
entity: "Collection",
|
|
36
|
+
primaryKey: "id",
|
|
37
|
+
foreignKey: "collection_id",
|
|
38
|
+
alias: "collection",
|
|
39
|
+
args: {
|
|
40
|
+
methodSuffix: "Collections",
|
|
41
|
+
},
|
|
42
|
+
hasMany: true,
|
|
43
|
+
},
|
|
44
|
+
],
|
|
45
|
+
extends: [
|
|
46
|
+
{
|
|
47
|
+
serviceName: utils_1.Modules.PRODUCT,
|
|
48
|
+
entity: "Product",
|
|
49
|
+
fieldAlias: {
|
|
50
|
+
collections: {
|
|
51
|
+
path: "collections_link.collection",
|
|
52
|
+
isList: true,
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
relationship: {
|
|
56
|
+
serviceName: utils_1.LINKS.ProductCollection,
|
|
57
|
+
primaryKey: "product_id",
|
|
58
|
+
foreignKey: "id",
|
|
59
|
+
alias: "collections_link",
|
|
60
|
+
isList: true,
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
serviceName: utils_1.Modules.COLLECTION,
|
|
65
|
+
entity: "Collection",
|
|
66
|
+
fieldAlias: {
|
|
67
|
+
products: {
|
|
68
|
+
path: "products_link.product",
|
|
69
|
+
isList: true,
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
relationship: {
|
|
73
|
+
serviceName: utils_1.LINKS.ProductCollection,
|
|
74
|
+
primaryKey: "collection_id",
|
|
75
|
+
foreignKey: "id",
|
|
76
|
+
alias: "products_link",
|
|
77
|
+
isList: true,
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
],
|
|
81
|
+
};
|
|
82
|
+
//# sourceMappingURL=product-collection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product-collection.js","sourceRoot":"","sources":["../../src/definitions/product-collection.ts"],"names":[],"mappings":";;;AACA,yDAA8D;AAEjD,QAAA,iBAAiB,GAAuB;IACnD,WAAW,EAAE,aAAK,CAAC,iBAAiB;IACpC,MAAM,EAAE,IAAI;IACZ,cAAc,EAAE;QACd,SAAS,EAAE,oBAAoB;QAC/B,QAAQ,EAAE,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,EAAE,IAAI;gBAChB,KAAK,EAAE,eAAe;gBACtB,MAAM,EAAE,IAAI;aACb;SACF;KACF;CACF,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store-collection.d.ts","sourceRoot":"","sources":["../../src/definitions/store-collection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAA;AAGlE,eAAO,MAAM,eAAe,EAAE,kBA4E7B,CAAA"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StoreCollection = void 0;
|
|
4
|
+
const utils_1 = require("@aiminaabeejs/framework/utils");
|
|
5
|
+
exports.StoreCollection = {
|
|
6
|
+
serviceName: utils_1.LINKS.StoreCollection,
|
|
7
|
+
isLink: true,
|
|
8
|
+
databaseConfig: {
|
|
9
|
+
tableName: "store_collection",
|
|
10
|
+
idPrefix: "stcol",
|
|
11
|
+
},
|
|
12
|
+
alias: [
|
|
13
|
+
{
|
|
14
|
+
name: "store_collection",
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
name: "store_collections",
|
|
18
|
+
},
|
|
19
|
+
],
|
|
20
|
+
primaryKeys: ["id", "store_id", "collection_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.COLLECTION,
|
|
35
|
+
entity: "Collection",
|
|
36
|
+
primaryKey: "id",
|
|
37
|
+
foreignKey: "collection_id",
|
|
38
|
+
alias: "collection",
|
|
39
|
+
args: {
|
|
40
|
+
methodSuffix: "Collections",
|
|
41
|
+
},
|
|
42
|
+
hasMany: true,
|
|
43
|
+
},
|
|
44
|
+
],
|
|
45
|
+
extends: [
|
|
46
|
+
{
|
|
47
|
+
serviceName: utils_1.Modules.STORE,
|
|
48
|
+
entity: "Store",
|
|
49
|
+
fieldAlias: {
|
|
50
|
+
collections: {
|
|
51
|
+
path: "collections_link.collection",
|
|
52
|
+
isList: true,
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
relationship: {
|
|
56
|
+
serviceName: utils_1.LINKS.StoreCollection,
|
|
57
|
+
primaryKey: "store_id",
|
|
58
|
+
foreignKey: "id",
|
|
59
|
+
alias: "collections_link",
|
|
60
|
+
isList: true,
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
serviceName: utils_1.Modules.COLLECTION,
|
|
65
|
+
entity: "Collection",
|
|
66
|
+
fieldAlias: {
|
|
67
|
+
stores: {
|
|
68
|
+
path: "stores_link.store",
|
|
69
|
+
isList: true,
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
relationship: {
|
|
73
|
+
serviceName: utils_1.LINKS.StoreCollection,
|
|
74
|
+
primaryKey: "collection_id",
|
|
75
|
+
foreignKey: "id",
|
|
76
|
+
alias: "stores_link",
|
|
77
|
+
isList: true,
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
],
|
|
81
|
+
};
|
|
82
|
+
//# sourceMappingURL=store-collection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store-collection.js","sourceRoot":"","sources":["../../src/definitions/store-collection.ts"],"names":[],"mappings":";;;AACA,yDAA8D;AAEjD,QAAA,eAAe,GAAuB;IACjD,WAAW,EAAE,aAAK,CAAC,eAAe;IAClC,MAAM,EAAE,IAAI;IACZ,cAAc,EAAE;QACd,SAAS,EAAE,kBAAkB;QAC7B,QAAQ,EAAE,OAAO;KAClB;IACD,KAAK,EAAE;QACL;YACE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AM,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-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-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/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"}
|