@aiminaabeejs/link-modules 0.0.3 → 0.0.5
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 +3 -0
- package/dist/definitions/index.d.ts.map +1 -1
- package/dist/definitions/index.js +3 -0
- package/dist/definitions/index.js.map +1 -1
- package/dist/definitions/store-api-key.d.ts +3 -0
- package/dist/definitions/store-api-key.d.ts.map +1 -0
- package/dist/definitions/store-api-key.js +82 -0
- package/dist/definitions/store-api-key.js.map +1 -0
- package/dist/definitions/store-product.d.ts +3 -0
- package/dist/definitions/store-product.d.ts.map +1 -0
- package/dist/definitions/store-product.js +82 -0
- package/dist/definitions/store-product.js.map +1 -0
- package/dist/definitions/store-sales-channel.d.ts +3 -0
- package/dist/definitions/store-sales-channel.d.ts.map +1 -0
- package/dist/definitions/store-sales-channel.js +82 -0
- package/dist/definitions/store-sales-channel.js.map +1 -0
- package/dist/repositories/link.d.ts +1 -33
- package/dist/repositories/link.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -1
|
@@ -3,4 +3,7 @@ export * from "./product-variant-price-set";
|
|
|
3
3
|
export * from "./product-sales-channel";
|
|
4
4
|
export * from "./region-payment-provider";
|
|
5
5
|
export * from "./store-region";
|
|
6
|
+
export * from "./store-product";
|
|
7
|
+
export * from "./store-sales-channel";
|
|
8
|
+
export * from "./store-api-key";
|
|
6
9
|
//# 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"}
|
|
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"}
|
|
@@ -19,4 +19,7 @@ __exportStar(require("./product-variant-price-set"), exports);
|
|
|
19
19
|
__exportStar(require("./product-sales-channel"), exports);
|
|
20
20
|
__exportStar(require("./region-payment-provider"), exports);
|
|
21
21
|
__exportStar(require("./store-region"), exports);
|
|
22
|
+
__exportStar(require("./store-product"), exports);
|
|
23
|
+
__exportStar(require("./store-sales-channel"), exports);
|
|
24
|
+
__exportStar(require("./store-api-key"), exports);
|
|
22
25
|
//# 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"}
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store-api-key.d.ts","sourceRoot":"","sources":["../../src/definitions/store-api-key.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAA;AAGlE,eAAO,MAAM,WAAW,EAAE,kBA4EzB,CAAA"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StoreApiKey = void 0;
|
|
4
|
+
const utils_1 = require("@aiminaabeejs/framework/utils");
|
|
5
|
+
exports.StoreApiKey = {
|
|
6
|
+
serviceName: utils_1.LINKS.StoreApiKey,
|
|
7
|
+
isLink: true,
|
|
8
|
+
databaseConfig: {
|
|
9
|
+
tableName: "store_api_key",
|
|
10
|
+
idPrefix: "stak",
|
|
11
|
+
},
|
|
12
|
+
alias: [
|
|
13
|
+
{
|
|
14
|
+
name: "store_api_key",
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
name: "store_api_keys",
|
|
18
|
+
},
|
|
19
|
+
],
|
|
20
|
+
primaryKeys: ["id", "store_id", "api_key_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
|
+
},
|
|
32
|
+
{
|
|
33
|
+
serviceName: utils_1.Modules.API_KEY,
|
|
34
|
+
entity: "ApiKey",
|
|
35
|
+
primaryKey: "id",
|
|
36
|
+
foreignKey: "api_key_id",
|
|
37
|
+
alias: "api_key",
|
|
38
|
+
args: {
|
|
39
|
+
methodSuffix: "ApiKeys",
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
],
|
|
43
|
+
extends: [
|
|
44
|
+
// This creates the "api_keys" relationship on Store
|
|
45
|
+
{
|
|
46
|
+
serviceName: utils_1.Modules.STORE,
|
|
47
|
+
entity: "Store",
|
|
48
|
+
fieldAlias: {
|
|
49
|
+
api_keys: {
|
|
50
|
+
path: "api_keys_link.api_key",
|
|
51
|
+
isList: true,
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
relationship: {
|
|
55
|
+
serviceName: utils_1.LINKS.StoreApiKey,
|
|
56
|
+
primaryKey: "store_id",
|
|
57
|
+
foreignKey: "id",
|
|
58
|
+
alias: "api_keys_link",
|
|
59
|
+
isList: true,
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
// This creates the "store" relationship on ApiKey
|
|
63
|
+
{
|
|
64
|
+
serviceName: utils_1.Modules.API_KEY,
|
|
65
|
+
entity: "ApiKey",
|
|
66
|
+
fieldAlias: {
|
|
67
|
+
store: {
|
|
68
|
+
path: "store_link.store",
|
|
69
|
+
isList: false,
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
relationship: {
|
|
73
|
+
serviceName: utils_1.LINKS.StoreApiKey,
|
|
74
|
+
primaryKey: "api_key_id",
|
|
75
|
+
foreignKey: "id",
|
|
76
|
+
alias: "store_link",
|
|
77
|
+
isList: false,
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
],
|
|
81
|
+
};
|
|
82
|
+
//# sourceMappingURL=store-api-key.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store-api-key.js","sourceRoot":"","sources":["../../src/definitions/store-api-key.ts"],"names":[],"mappings":";;;AACA,yDAA8D;AAEjD,QAAA,WAAW,GAAuB;IAC7C,WAAW,EAAE,aAAK,CAAC,WAAW;IAC9B,MAAM,EAAE,IAAI;IACZ,cAAc,EAAE;QACd,SAAS,EAAE,eAAe;QAC1B,QAAQ,EAAE,MAAM;KACjB;IACD,KAAK,EAAE;QACL;YACE,IAAI,EAAE,eAAe;SACtB;QACD;YACE,IAAI,EAAE,gBAAgB;SACvB;KACF;IACD,WAAW,EAAE,CAAC,IAAI,EAAE,UAAU,EAAE,YAAY,CAAC;IAC7C,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;SACF;QACD;YACE,WAAW,EAAE,eAAO,CAAC,OAAO;YAC5B,MAAM,EAAE,QAAQ;YAChB,UAAU,EAAE,IAAI;YAChB,UAAU,EAAE,YAAY;YACxB,KAAK,EAAE,SAAS;YAChB,IAAI,EAAE;gBACJ,YAAY,EAAE,SAAS;aACxB;SACF;KACF;IACD,OAAO,EAAE;QACP,oDAAoD;QACpD;YACE,WAAW,EAAE,eAAO,CAAC,KAAK;YAC1B,MAAM,EAAE,OAAO;YACf,UAAU,EAAE;gBACV,QAAQ,EAAE;oBACR,IAAI,EAAE,uBAAuB;oBAC7B,MAAM,EAAE,IAAI;iBACb;aACF;YACD,YAAY,EAAE;gBACZ,WAAW,EAAE,aAAK,CAAC,WAAW;gBAC9B,UAAU,EAAE,UAAU;gBACtB,UAAU,EAAE,IAAI;gBAChB,KAAK,EAAE,eAAe;gBACtB,MAAM,EAAE,IAAI;aACb;SACF;QACD,kDAAkD;QAClD;YACE,WAAW,EAAE,eAAO,CAAC,OAAO;YAC5B,MAAM,EAAE,QAAQ;YAChB,UAAU,EAAE;gBACV,KAAK,EAAE;oBACL,IAAI,EAAE,kBAAkB;oBACxB,MAAM,EAAE,KAAK;iBACd;aACF;YACD,YAAY,EAAE;gBACZ,WAAW,EAAE,aAAK,CAAC,WAAW;gBAC9B,UAAU,EAAE,YAAY;gBACxB,UAAU,EAAE,IAAI;gBAChB,KAAK,EAAE,YAAY;gBACnB,MAAM,EAAE,KAAK;aACd;SACF;KACF;CACF,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store-product.d.ts","sourceRoot":"","sources":["../../src/definitions/store-product.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAA;AAGlE,eAAO,MAAM,YAAY,EAAE,kBA4E1B,CAAA"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StoreProduct = void 0;
|
|
4
|
+
const utils_1 = require("@aiminaabeejs/framework/utils");
|
|
5
|
+
exports.StoreProduct = {
|
|
6
|
+
serviceName: utils_1.LINKS.StoreProduct,
|
|
7
|
+
isLink: true,
|
|
8
|
+
databaseConfig: {
|
|
9
|
+
tableName: "store_product",
|
|
10
|
+
idPrefix: "strprod",
|
|
11
|
+
},
|
|
12
|
+
alias: [
|
|
13
|
+
{
|
|
14
|
+
name: "store_product",
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
name: "store_products",
|
|
18
|
+
},
|
|
19
|
+
],
|
|
20
|
+
primaryKeys: ["id", "store_id", "product_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: "Product",
|
|
36
|
+
primaryKey: "id",
|
|
37
|
+
foreignKey: "product_id",
|
|
38
|
+
alias: "product",
|
|
39
|
+
args: {
|
|
40
|
+
methodSuffix: "Products",
|
|
41
|
+
},
|
|
42
|
+
hasMany: true,
|
|
43
|
+
},
|
|
44
|
+
],
|
|
45
|
+
extends: [
|
|
46
|
+
{
|
|
47
|
+
serviceName: utils_1.Modules.STORE,
|
|
48
|
+
entity: "Store",
|
|
49
|
+
fieldAlias: {
|
|
50
|
+
products: {
|
|
51
|
+
path: "products_link.product",
|
|
52
|
+
isList: true,
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
relationship: {
|
|
56
|
+
serviceName: utils_1.LINKS.StoreProduct,
|
|
57
|
+
primaryKey: "store_id",
|
|
58
|
+
foreignKey: "id",
|
|
59
|
+
alias: "products_link",
|
|
60
|
+
isList: true,
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
serviceName: utils_1.Modules.PRODUCT,
|
|
65
|
+
entity: "Product",
|
|
66
|
+
fieldAlias: {
|
|
67
|
+
stores: {
|
|
68
|
+
path: "stores_link.store",
|
|
69
|
+
isList: true,
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
relationship: {
|
|
73
|
+
serviceName: utils_1.LINKS.StoreProduct,
|
|
74
|
+
primaryKey: "product_id",
|
|
75
|
+
foreignKey: "id",
|
|
76
|
+
alias: "stores_link",
|
|
77
|
+
isList: true,
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
],
|
|
81
|
+
};
|
|
82
|
+
//# sourceMappingURL=store-product.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store-product.js","sourceRoot":"","sources":["../../src/definitions/store-product.ts"],"names":[],"mappings":";;;AACA,yDAA8D;AAEjD,QAAA,YAAY,GAAuB;IAC9C,WAAW,EAAE,aAAK,CAAC,YAAY;IAC/B,MAAM,EAAE,IAAI;IACZ,cAAc,EAAE;QACd,SAAS,EAAE,eAAe;QAC1B,QAAQ,EAAE,SAAS;KACpB;IACD,KAAK,EAAE;QACL;YACE,IAAI,EAAE,eAAe;SACtB;QACD;YACE,IAAI,EAAE,gBAAgB;SACvB;KACF;IACD,WAAW,EAAE,CAAC,IAAI,EAAE,UAAU,EAAE,YAAY,CAAC;IAC7C,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,OAAO;YAC5B,MAAM,EAAE,SAAS;YACjB,UAAU,EAAE,IAAI;YAChB,UAAU,EAAE,YAAY;YACxB,KAAK,EAAE,SAAS;YAChB,IAAI,EAAE;gBACJ,YAAY,EAAE,UAAU;aACzB;YACD,OAAO,EAAE,IAAI;SACd;KACF;IACD,OAAO,EAAE;QACP;YACE,WAAW,EAAE,eAAO,CAAC,KAAK;YAC1B,MAAM,EAAE,OAAO;YACf,UAAU,EAAE;gBACV,QAAQ,EAAE;oBACR,IAAI,EAAE,uBAAuB;oBAC7B,MAAM,EAAE,IAAI;iBACb;aACF;YACD,YAAY,EAAE;gBACZ,WAAW,EAAE,aAAK,CAAC,YAAY;gBAC/B,UAAU,EAAE,UAAU;gBACtB,UAAU,EAAE,IAAI;gBAChB,KAAK,EAAE,eAAe;gBACtB,MAAM,EAAE,IAAI;aACb;SACF;QACD;YACE,WAAW,EAAE,eAAO,CAAC,OAAO;YAC5B,MAAM,EAAE,SAAS;YACjB,UAAU,EAAE;gBACV,MAAM,EAAE;oBACN,IAAI,EAAE,mBAAmB;oBACzB,MAAM,EAAE,IAAI;iBACb;aACF;YACD,YAAY,EAAE;gBACZ,WAAW,EAAE,aAAK,CAAC,YAAY;gBAC/B,UAAU,EAAE,YAAY;gBACxB,UAAU,EAAE,IAAI;gBAChB,KAAK,EAAE,aAAa;gBACpB,MAAM,EAAE,IAAI;aACb;SACF;KACF;CACF,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store-sales-channel.d.ts","sourceRoot":"","sources":["../../src/definitions/store-sales-channel.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.StoreSalesChannel = void 0;
|
|
4
|
+
const utils_1 = require("@aiminaabeejs/framework/utils");
|
|
5
|
+
exports.StoreSalesChannel = {
|
|
6
|
+
serviceName: utils_1.LINKS.StoreSalesChannel,
|
|
7
|
+
isLink: true,
|
|
8
|
+
databaseConfig: {
|
|
9
|
+
tableName: "store_sales_channel",
|
|
10
|
+
idPrefix: "strsc",
|
|
11
|
+
},
|
|
12
|
+
alias: [
|
|
13
|
+
{
|
|
14
|
+
name: "store_sales_channel",
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
name: "store_sales_channels",
|
|
18
|
+
},
|
|
19
|
+
],
|
|
20
|
+
primaryKeys: ["id", "store_id", "sales_channel_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.SALES_CHANNEL,
|
|
35
|
+
entity: "SalesChannel",
|
|
36
|
+
primaryKey: "id",
|
|
37
|
+
foreignKey: "sales_channel_id",
|
|
38
|
+
alias: "sales_channel",
|
|
39
|
+
args: {
|
|
40
|
+
methodSuffix: "SalesChannels",
|
|
41
|
+
},
|
|
42
|
+
hasMany: true,
|
|
43
|
+
},
|
|
44
|
+
],
|
|
45
|
+
extends: [
|
|
46
|
+
{
|
|
47
|
+
serviceName: utils_1.Modules.STORE,
|
|
48
|
+
entity: "Store",
|
|
49
|
+
fieldAlias: {
|
|
50
|
+
sales_channels: {
|
|
51
|
+
path: "sales_channels_link.sales_channel",
|
|
52
|
+
isList: true,
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
relationship: {
|
|
56
|
+
serviceName: utils_1.LINKS.StoreSalesChannel,
|
|
57
|
+
primaryKey: "store_id",
|
|
58
|
+
foreignKey: "id",
|
|
59
|
+
alias: "sales_channels_link",
|
|
60
|
+
isList: true,
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
serviceName: utils_1.Modules.SALES_CHANNEL,
|
|
65
|
+
entity: "SalesChannel",
|
|
66
|
+
fieldAlias: {
|
|
67
|
+
stores: {
|
|
68
|
+
path: "stores_link.store",
|
|
69
|
+
isList: true,
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
relationship: {
|
|
73
|
+
serviceName: utils_1.LINKS.StoreSalesChannel,
|
|
74
|
+
primaryKey: "sales_channel_id",
|
|
75
|
+
foreignKey: "id",
|
|
76
|
+
alias: "stores_link",
|
|
77
|
+
isList: true,
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
],
|
|
81
|
+
};
|
|
82
|
+
//# sourceMappingURL=store-sales-channel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store-sales-channel.js","sourceRoot":"","sources":["../../src/definitions/store-sales-channel.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,qBAAqB;QAChC,QAAQ,EAAE,OAAO;KAClB;IACD,KAAK,EAAE;QACL;YACE,IAAI,EAAE,qBAAqB;SAC5B;QACD;YACE,IAAI,EAAE,sBAAsB;SAC7B;KACF;IACD,WAAW,EAAE,CAAC,IAAI,EAAE,UAAU,EAAE,kBAAkB,CAAC;IACnD,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,aAAa;YAClC,MAAM,EAAE,cAAc;YACtB,UAAU,EAAE,IAAI;YAChB,UAAU,EAAE,kBAAkB;YAC9B,KAAK,EAAE,eAAe;YACtB,IAAI,EAAE;gBACJ,YAAY,EAAE,eAAe;aAC9B;YACD,OAAO,EAAE,IAAI;SACd;KACF;IACD,OAAO,EAAE;QACP;YACE,WAAW,EAAE,eAAO,CAAC,KAAK;YAC1B,MAAM,EAAE,OAAO;YACf,UAAU,EAAE;gBACV,cAAc,EAAE;oBACd,IAAI,EAAE,mCAAmC;oBACzC,MAAM,EAAE,IAAI;iBACb;aACF;YACD,YAAY,EAAE;gBACZ,WAAW,EAAE,aAAK,CAAC,iBAAiB;gBACpC,UAAU,EAAE,UAAU;gBACtB,UAAU,EAAE,IAAI;gBAChB,KAAK,EAAE,qBAAqB;gBAC5B,MAAM,EAAE,IAAI;aACb;SACF;QACD;YACE,WAAW,EAAE,eAAO,CAAC,aAAa;YAClC,MAAM,EAAE,cAAc;YACtB,UAAU,EAAE;gBACV,MAAM,EAAE;oBACN,IAAI,EAAE,mBAAmB;oBACzB,MAAM,EAAE,IAAI;iBACb;aACF;YACD,YAAY,EAAE;gBACZ,WAAW,EAAE,aAAK,CAAC,iBAAiB;gBACpC,UAAU,EAAE,kBAAkB;gBAC9B,UAAU,EAAE,IAAI;gBAChB,KAAK,EAAE,aAAa;gBACpB,MAAM,EAAE,IAAI;aACb;SACF;KACF;CACF,CAAA"}
|
|
@@ -1,35 +1,3 @@
|
|
|
1
|
-
import { Context, ModuleJoinerConfig } from "@aiminaabeejs/framework/types";
|
|
2
1
|
import { EntitySchema } from "@mikro-orm/core";
|
|
3
|
-
export declare function getLinkRepository(model: EntitySchema):
|
|
4
|
-
new ({ joinerConfig }: {
|
|
5
|
-
joinerConfig: ModuleJoinerConfig;
|
|
6
|
-
}): {
|
|
7
|
-
readonly joinerConfig_: ModuleJoinerConfig;
|
|
8
|
-
delete(data: any, context?: Context): Promise<string[]>;
|
|
9
|
-
create(data: object[], context?: Context): Promise<object[]>;
|
|
10
|
-
entity: import("@mikro-orm/core").EntityClass<EntitySchema<any, never>>;
|
|
11
|
-
update(data: {
|
|
12
|
-
entity: any;
|
|
13
|
-
update: any;
|
|
14
|
-
}[], context?: Context): Promise<any[]>;
|
|
15
|
-
find(options?: import("@aiminaabeejs/framework/types").FindOptions<EntitySchema<any, never>> | undefined, context?: Context): Promise<any[]>;
|
|
16
|
-
findAndCount(options?: import("@aiminaabeejs/framework/types").FindOptions<EntitySchema<any, never>> | undefined, context?: Context): Promise<[any[], number]>;
|
|
17
|
-
upsert(data: unknown[], context?: Context): Promise<any[]>;
|
|
18
|
-
upsertWithReplace(data: unknown[], config?: import("@aiminaabeejs/framework/types").UpsertWithReplaceConfig<any> | undefined, context?: Context): Promise<{
|
|
19
|
-
entities: any[];
|
|
20
|
-
performedActions: import("@aiminaabeejs/framework/types").PerformedActions;
|
|
21
|
-
}>;
|
|
22
|
-
softDelete(filters: string | string[] | (import("@aiminaabeejs/types/dist/dal/utils").FilterQueryProperties<EntitySchema<any, never>, 3> & import("@aiminaabeejs/framework/types").BaseFilterable<import("@aiminaabeejs/types/dist/dal/utils").FilterQueryProperties<EntitySchema<any, never>, 3>>) | (import("@aiminaabeejs/types/dist/dal/utils").FilterQueryProperties<EntitySchema<any, never>, 3> & import("@aiminaabeejs/framework/types").BaseFilterable<import("@aiminaabeejs/types/dist/dal/utils").FilterQueryProperties<EntitySchema<any, never>, 3>>)[], sharedContext?: Context): Promise<[any[], Record<string, unknown[]>]>;
|
|
23
|
-
restore(idsOrFilter: string[] | import("@aiminaabeejs/framework/types").FilterQuery, sharedContext?: Context): Promise<[any[], Record<string, unknown[]>]>;
|
|
24
|
-
readonly manager_: any;
|
|
25
|
-
getFreshManager<TManager = unknown>(): TManager;
|
|
26
|
-
getActiveManager<TManager = unknown>({ transactionManager, manager, }?: Context): TManager;
|
|
27
|
-
transaction<TManager = unknown>(task: (transactionManager: TManager) => Promise<any>, options?: {
|
|
28
|
-
isolationLevel?: string;
|
|
29
|
-
enableNestedTransactions?: boolean;
|
|
30
|
-
transaction?: TManager;
|
|
31
|
-
}): Promise<any>;
|
|
32
|
-
serialize<TOutput extends object | object[]>(data: any, options?: any): Promise<TOutput>;
|
|
33
|
-
};
|
|
34
|
-
};
|
|
2
|
+
export declare function getLinkRepository(model: EntitySchema): any;
|
|
35
3
|
//# sourceMappingURL=link.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"link.d.ts","sourceRoot":"","sources":["../../src/repositories/link.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"link.d.ts","sourceRoot":"","sources":["../../src/repositories/link.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAQ9C,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,YAAY,GAAG,GAAG,CAsC1D"}
|
|
@@ -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-region.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-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/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.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"description": "Aiminaabeejs Default Link Modules Package and Definitions",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
},
|
|
19
19
|
"license": "MIT",
|
|
20
20
|
"scripts": {
|
|
21
|
+
"clean": "rm -rf .turbo node_modules",
|
|
21
22
|
"watch": "tsc --build --watch",
|
|
22
23
|
"watch:test": "tsc --build tsconfig.spec.json --watch",
|
|
23
24
|
"prepare": "cross-env NODE_ENV=production yarn run build",
|