@reachu/database 1.0.87 → 1.0.88
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/entity/ChannelUser.d.ts +2 -0
- package/dist/entity/ChannelUser.js +6 -0
- package/dist/entity/ChannelUser.js.map +1 -1
- package/dist/entity/UserChannelApiKey.d.ts +0 -2
- package/dist/entity/UserChannelApiKey.js +0 -6
- package/dist/entity/UserChannelApiKey.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +10 -10
- package/package.json +3 -3
- package/src/entity/ChannelUser.ts +6 -0
- package/src/entity/UserChannelApiKey.ts +0 -5
|
@@ -4,6 +4,7 @@ import ChannelGroup from './ChannelGroup';
|
|
|
4
4
|
import ChannelUserProductSync from './ChannelUserProductSync';
|
|
5
5
|
import User from './User';
|
|
6
6
|
import ShopifyConnection from './ShopifyConnection';
|
|
7
|
+
import UserChannelApiKey from './UserChannelApiKey';
|
|
7
8
|
export default class ChannelUser extends AuditedModel {
|
|
8
9
|
deletedAt: Date;
|
|
9
10
|
id: number;
|
|
@@ -13,4 +14,5 @@ export default class ChannelUser extends AuditedModel {
|
|
|
13
14
|
channelGroup: ChannelGroup[];
|
|
14
15
|
channelUserProductSync: ChannelUserProductSync[];
|
|
15
16
|
shopifyConnection: ShopifyConnection;
|
|
17
|
+
userChannelApiKey: UserChannelApiKey;
|
|
16
18
|
}
|
|
@@ -19,6 +19,7 @@ const ChannelGroup_1 = __importDefault(require("./ChannelGroup"));
|
|
|
19
19
|
const ChannelUserProductSync_1 = __importDefault(require("./ChannelUserProductSync"));
|
|
20
20
|
const User_1 = __importDefault(require("./User"));
|
|
21
21
|
const ShopifyConnection_1 = __importDefault(require("./ShopifyConnection"));
|
|
22
|
+
const UserChannelApiKey_1 = __importDefault(require("./UserChannelApiKey"));
|
|
22
23
|
let ChannelUser = class ChannelUser extends AuditedModel_1.default {
|
|
23
24
|
};
|
|
24
25
|
__decorate([
|
|
@@ -62,6 +63,11 @@ __decorate([
|
|
|
62
63
|
typeorm_1.JoinColumn(),
|
|
63
64
|
__metadata("design:type", ShopifyConnection_1.default)
|
|
64
65
|
], ChannelUser.prototype, "shopifyConnection", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
typeorm_1.ManyToOne(() => UserChannelApiKey_1.default, (userChannelApiKey) => userChannelApiKey.id, { nullable: true }),
|
|
68
|
+
typeorm_1.JoinColumn(),
|
|
69
|
+
__metadata("design:type", UserChannelApiKey_1.default)
|
|
70
|
+
], ChannelUser.prototype, "userChannelApiKey", void 0);
|
|
65
71
|
ChannelUser = __decorate([
|
|
66
72
|
typeorm_1.Entity()
|
|
67
73
|
], ChannelUser);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChannelUser.js","sourceRoot":"","sources":["../../src/entity/ChannelUser.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAQiB;AACjB,kEAA0C;AAC1C,wDAAgC;AAChC,kEAA0C;AAC1C,sFAA8D;AAC9D,kDAA0B;AAC1B,4EAAoD;AAGpD,IAAqB,WAAW,GAAhC,MAAqB,WAAY,SAAQ,sBAAY;
|
|
1
|
+
{"version":3,"file":"ChannelUser.js","sourceRoot":"","sources":["../../src/entity/ChannelUser.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAQiB;AACjB,kEAA0C;AAC1C,wDAAgC;AAChC,kEAA0C;AAC1C,sFAA8D;AAC9D,kDAA0B;AAC1B,4EAAoD;AACpD,4EAAoD;AAGpD,IAAqB,WAAW,GAAhC,MAAqB,WAAY,SAAQ,sBAAY;CA2CpD,CAAA;AAzCC;IADC,0BAAgB,EAAE;8BACR,IAAI;8CAAC;AAGhB;IADC,gCAAsB,EAAE;;uCACd;AAGX;IADC,gBAAM,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACnB;AAInB;IAFC,mBAAS,CAAC,GAAG,EAAE,CAAC,cAAI,EAAE,CAAC,IAAI,EA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';
|
|
4
3
|
import User from './User';
|
|
5
4
|
export default class UserChannelApiKey extends AuditedModel {
|
|
6
5
|
id: number;
|
|
7
6
|
deletedAt: Date;
|
|
8
7
|
user: User;
|
|
9
8
|
channel: Channel;
|
|
10
|
-
ChannelUser: ChannelUser;
|
|
11
9
|
apiKey: string;
|
|
12
10
|
}
|
|
@@ -15,7 +15,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
15
15
|
const typeorm_1 = require("typeorm");
|
|
16
16
|
const AuditedModel_1 = __importDefault(require("./AuditedModel"));
|
|
17
17
|
const Channel_1 = __importDefault(require("./Channel"));
|
|
18
|
-
const ChannelUser_1 = __importDefault(require("./ChannelUser"));
|
|
19
18
|
const User_1 = __importDefault(require("./User"));
|
|
20
19
|
let UserChannelApiKey = class UserChannelApiKey extends AuditedModel_1.default {
|
|
21
20
|
};
|
|
@@ -37,11 +36,6 @@ __decorate([
|
|
|
37
36
|
typeorm_1.JoinColumn(),
|
|
38
37
|
__metadata("design:type", Channel_1.default)
|
|
39
38
|
], UserChannelApiKey.prototype, "channel", void 0);
|
|
40
|
-
__decorate([
|
|
41
|
-
typeorm_1.ManyToOne(() => ChannelUser_1.default, (channelUser) => channelUser.id, { nullable: true }),
|
|
42
|
-
typeorm_1.JoinColumn(),
|
|
43
|
-
__metadata("design:type", ChannelUser_1.default)
|
|
44
|
-
], UserChannelApiKey.prototype, "ChannelUser", void 0);
|
|
45
39
|
__decorate([
|
|
46
40
|
typeorm_1.Column('varchar'),
|
|
47
41
|
__metadata("design:type", String)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserChannelApiKey.js","sourceRoot":"","sources":["../../src/entity/UserChannelApiKey.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAQiB;AACjB,kEAA0C;AAC1C,wDAAgC;
|
|
1
|
+
{"version":3,"file":"UserChannelApiKey.js","sourceRoot":"","sources":["../../src/entity/UserChannelApiKey.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qCAQiB;AACjB,kEAA0C;AAC1C,wDAAgC;AAEhC,kDAA0B;AAG1B,IAAqB,iBAAiB,GAAtC,MAAqB,iBAAkB,SAAQ,sBAAY;CAiB1D,CAAA;AAfC;IADC,gCAAsB,EAAE;;6CACd;AAGX;IADC,0BAAgB,EAAE;8BACR,IAAI;oDAAC;AAIhB;IAFC,mBAAS,CAAC,GAAG,EAAE,CAAC,cAAI,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IACjE,oBAAU,EAAE;8BACP,cAAI;+CAAC;AAIX;IAFC,mBAAS,CAAC,GAAG,EAAE,CAAC,iBAAO,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,iBAAiB,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;IACzF,oBAAU,EAAE;8BACJ,iBAAO;kDAAC;AAGjB;IADC,gBAAM,CAAC,SAAS,CAAC;;iDACH;AAhBI,iBAAiB;IADrC,gBAAM,EAAE;GACY,iBAAiB,CAiBrC;kBAjBoB,iBAAiB"}
|
|
@@ -2466,14 +2466,14 @@
|
|
|
2466
2466
|
"signature": "e9d118f0a60d8d67e0c72eead579606c841069ac70ba7be9702f706a37fe94c3",
|
|
2467
2467
|
"affectsGlobalScope": false
|
|
2468
2468
|
},
|
|
2469
|
-
"../src/entity/
|
|
2470
|
-
"version": "
|
|
2471
|
-
"signature": "
|
|
2469
|
+
"../src/entity/userchannelapikey.ts": {
|
|
2470
|
+
"version": "a391e2581263b72579775f33f25b91b425d244c29aae2db9d0c1d3d317a30e8c",
|
|
2471
|
+
"signature": "7efd2406080e07894d8d335fbe75ba26c7dc03e64ce95245ba86c08a271ee76d",
|
|
2472
2472
|
"affectsGlobalScope": false
|
|
2473
2473
|
},
|
|
2474
|
-
"../src/entity/
|
|
2475
|
-
"version": "
|
|
2476
|
-
"signature": "
|
|
2474
|
+
"../src/entity/channeluser.ts": {
|
|
2475
|
+
"version": "f99d7796f370f4c60a26ecd3e2d6b042336502d00e2087377b3b2e8ce2ccfef2",
|
|
2476
|
+
"signature": "b5cfc310bf132bc5e972a17487c043e41dd68b670327b768ba3175ce6f464d58",
|
|
2477
2477
|
"affectsGlobalScope": false
|
|
2478
2478
|
},
|
|
2479
2479
|
"../src/entity/channel.ts": {
|
|
@@ -5339,7 +5339,8 @@
|
|
|
5339
5339
|
"../src/entity/channelgroup.ts",
|
|
5340
5340
|
"../src/entity/channeluserproductsync.ts",
|
|
5341
5341
|
"../src/entity/shopifyconnection.ts",
|
|
5342
|
-
"../src/entity/user.ts"
|
|
5342
|
+
"../src/entity/user.ts",
|
|
5343
|
+
"../src/entity/userchannelapikey.ts"
|
|
5343
5344
|
],
|
|
5344
5345
|
"../src/entity/channeluserproductsync.ts": [
|
|
5345
5346
|
"../node_modules/typeorm/index.d.ts",
|
|
@@ -5875,7 +5876,6 @@
|
|
|
5875
5876
|
"../node_modules/typeorm/index.d.ts",
|
|
5876
5877
|
"../src/entity/auditedmodel.ts",
|
|
5877
5878
|
"../src/entity/channel.ts",
|
|
5878
|
-
"../src/entity/channeluser.ts",
|
|
5879
5879
|
"../src/entity/user.ts"
|
|
5880
5880
|
],
|
|
5881
5881
|
"../src/entity/userrole.ts": [
|
|
@@ -8201,7 +8201,8 @@
|
|
|
8201
8201
|
"../src/entity/channelgroup.ts",
|
|
8202
8202
|
"../src/entity/channeluserproductsync.ts",
|
|
8203
8203
|
"../src/entity/shopifyconnection.ts",
|
|
8204
|
-
"../src/entity/user.ts"
|
|
8204
|
+
"../src/entity/user.ts",
|
|
8205
|
+
"../src/entity/userchannelapikey.ts"
|
|
8205
8206
|
],
|
|
8206
8207
|
"../src/entity/channeluserproductsync.ts": [
|
|
8207
8208
|
"../src/entity/auditedmodel.ts",
|
|
@@ -8626,7 +8627,6 @@
|
|
|
8626
8627
|
"../src/entity/userchannelapikey.ts": [
|
|
8627
8628
|
"../src/entity/auditedmodel.ts",
|
|
8628
8629
|
"../src/entity/channel.ts",
|
|
8629
|
-
"../src/entity/channeluser.ts",
|
|
8630
8630
|
"../src/entity/user.ts"
|
|
8631
8631
|
],
|
|
8632
8632
|
"../src/entity/userrole.ts": [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reachu/database",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.88",
|
|
4
4
|
"description": "reachu-database",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"author": "reachu",
|
|
22
22
|
"license": "ISC",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@reachu/logger": "1.0.
|
|
25
|
-
"@reachu/utils": "1.0.
|
|
24
|
+
"@reachu/logger": "1.0.88",
|
|
25
|
+
"@reachu/utils": "1.0.88",
|
|
26
26
|
"dotenv": "8.0.0",
|
|
27
27
|
"express": "4.17.1",
|
|
28
28
|
"mysql2": "1.5.2",
|
|
@@ -13,6 +13,7 @@ import ChannelGroup from './ChannelGroup';
|
|
|
13
13
|
import ChannelUserProductSync from './ChannelUserProductSync';
|
|
14
14
|
import User from './User';
|
|
15
15
|
import ShopifyConnection from './ShopifyConnection';
|
|
16
|
+
import UserChannelApiKey from './UserChannelApiKey';
|
|
16
17
|
|
|
17
18
|
@Entity()
|
|
18
19
|
export default class ChannelUser extends AuditedModel {
|
|
@@ -53,4 +54,9 @@ export default class ChannelUser extends AuditedModel {
|
|
|
53
54
|
@JoinColumn()
|
|
54
55
|
shopifyConnection: ShopifyConnection;
|
|
55
56
|
|
|
57
|
+
|
|
58
|
+
@ManyToOne(() => UserChannelApiKey, (userChannelApiKey) => userChannelApiKey.id, { nullable: true })
|
|
59
|
+
@JoinColumn()
|
|
60
|
+
userChannelApiKey: UserChannelApiKey;
|
|
61
|
+
|
|
56
62
|
}
|
|
@@ -9,7 +9,6 @@ import {
|
|
|
9
9
|
} from 'typeorm';
|
|
10
10
|
import AuditedModel from './AuditedModel';
|
|
11
11
|
import Channel from './Channel';
|
|
12
|
-
import ChannelUser from './ChannelUser';
|
|
13
12
|
|
|
14
13
|
import User from './User';
|
|
15
14
|
|
|
@@ -29,10 +28,6 @@ export default class UserChannelApiKey extends AuditedModel {
|
|
|
29
28
|
@JoinColumn()
|
|
30
29
|
channel: Channel;
|
|
31
30
|
|
|
32
|
-
@ManyToOne(() => ChannelUser, (channelUser) => channelUser.id, { nullable: true })
|
|
33
|
-
@JoinColumn()
|
|
34
|
-
ChannelUser: ChannelUser;
|
|
35
|
-
|
|
36
31
|
@Column('varchar')
|
|
37
32
|
apiKey: string;
|
|
38
33
|
}
|