@thescaffold/ntx-apps-polylog 0.2.21 → 0.2.30
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/api/channel/entities/channel.entity.js +11 -14
- package/api/channel/entities/channel.entity.js.map +1 -1
- package/api/event/entities/event.entity.js +11 -11
- package/api/event/entities/event.entity.js.map +1 -1
- package/api/event/event.controller.d.ts +3 -1
- package/api/event/event.controller.js +1 -1
- package/api/event/event.controller.js.map +1 -1
- package/api/event/event.module.d.ts +1 -1
- package/api/event/event.module.js +6 -2
- package/api/event/event.module.js.map +1 -1
- package/api/event-log/entities/event-log.entity.js +5 -5
- package/api/event-log/entities/event-log.entity.js.map +1 -1
- package/api/event-log/event-log.module.d.ts +1 -1
- package/api/event-log/event-log.module.js +6 -2
- package/api/event-log/event-log.module.js.map +1 -1
- package/api/sink/entities/sink.entity.js +10 -13
- package/api/sink/entities/sink.entity.js.map +1 -1
- package/api/sink-type/entities/sink-type.entity.js +7 -9
- package/api/sink-type/entities/sink-type.entity.js.map +1 -1
- package/api/source/entities/source.entity.js +11 -11
- package/api/source/entities/source.entity.js.map +1 -1
- package/api/source-type/entities/source-type.entity.js +7 -9
- package/api/source-type/entities/source-type.entity.js.map +1 -1
- package/app.config.d.ts +1 -0
- package/app.config.js +2 -1
- package/app.config.js.map +1 -1
- package/app.service.js +7 -6
- package/app.service.js.map +1 -1
- package/migrations/1750186475187-Channels.js +34 -33
- package/migrations/1750186475187-Channels.js.map +1 -1
- package/migrations/1750186475261-EventLogs.js +18 -17
- package/migrations/1750186475261-EventLogs.js.map +1 -1
- package/migrations/1750186475329-Events.js +32 -31
- package/migrations/1750186475329-Events.js.map +1 -1
- package/migrations/1750186475466-Sinks.js +31 -30
- package/migrations/1750186475466-Sinks.js.map +1 -1
- package/migrations/1750186475532-SinkTypes.js +24 -23
- package/migrations/1750186475532-SinkTypes.js.map +1 -1
- package/migrations/1750186475601-Sources.js +31 -30
- package/migrations/1750186475601-Sources.js.map +1 -1
- package/migrations/1750186475675-SourceTypes.js +24 -23
- package/migrations/1750186475675-SourceTypes.js.map +1 -1
- package/migrations/1750186762829-SourceTypeData.js +7 -7
- package/migrations/1750186762911-SinkTypeData.js +4 -4
- package/migrations/1750186762995-SinkData.js +4 -4
- package/migrations/1750186763062-ChannelData.js +6 -6
- package/migrations/1750186763130-SourceData.js +3 -3
- package/package.json +42 -13
- package/pkg/middleware/auth.middleware.d.ts +2 -3
- package/pkg/middleware/auth.middleware.js +3 -10
- package/pkg/middleware/auth.middleware.js.map +1 -1
- package/pkg/pipeline/pipeline.module.js +2 -2
- package/pkg/pipeline/pipeline.module.js.map +1 -1
- package/pkg/pipeline/pipeline.service.js +5 -5
- package/pkg/pipeline/pipeline.service.js.map +1 -1
- package/tsconfig.lib.tsbuildinfo +1 -1
|
@@ -20,9 +20,8 @@ let Channel = class Channel extends ntx_core_1.BaseEntity {
|
|
|
20
20
|
};
|
|
21
21
|
exports.Channel = Channel;
|
|
22
22
|
__decorate([
|
|
23
|
-
(0, typeorm_1.Column)('
|
|
23
|
+
(0, typeorm_1.Column)('uuid', {
|
|
24
24
|
name: 'userId',
|
|
25
|
-
length: 36,
|
|
26
25
|
transformer: {
|
|
27
26
|
to: (value) => value,
|
|
28
27
|
from: (value) => {
|
|
@@ -38,7 +37,6 @@ __decorate([
|
|
|
38
37
|
__decorate([
|
|
39
38
|
(0, typeorm_1.Column)('varchar', {
|
|
40
39
|
name: 'clientId',
|
|
41
|
-
length: 52,
|
|
42
40
|
transformer: {
|
|
43
41
|
to: (value) => value,
|
|
44
42
|
from: (value) => {
|
|
@@ -52,9 +50,8 @@ __decorate([
|
|
|
52
50
|
__metadata("design:type", String)
|
|
53
51
|
], Channel.prototype, "clientId", void 0);
|
|
54
52
|
__decorate([
|
|
55
|
-
(0, typeorm_1.Column)('
|
|
53
|
+
(0, typeorm_1.Column)('uuid', {
|
|
56
54
|
name: 'workspaceId',
|
|
57
|
-
length: 36,
|
|
58
55
|
transformer: {
|
|
59
56
|
to: (value) => value,
|
|
60
57
|
from: (value) => {
|
|
@@ -68,23 +65,23 @@ __decorate([
|
|
|
68
65
|
__metadata("design:type", String)
|
|
69
66
|
], Channel.prototype, "workspaceId", void 0);
|
|
70
67
|
__decorate([
|
|
71
|
-
(0, typeorm_1.Column)('varchar', { name: 'category'
|
|
68
|
+
(0, typeorm_1.Column)('varchar', { name: 'category' }),
|
|
72
69
|
__metadata("design:type", String)
|
|
73
70
|
], Channel.prototype, "category", void 0);
|
|
74
71
|
__decorate([
|
|
75
|
-
(0, typeorm_1.Column)('varchar', { name: 'key',
|
|
72
|
+
(0, typeorm_1.Column)('varchar', { name: 'key', nullable: true }),
|
|
76
73
|
__metadata("design:type", String)
|
|
77
74
|
], Channel.prototype, "key", void 0);
|
|
78
75
|
__decorate([
|
|
79
|
-
(0, typeorm_1.Column)('varchar', { name: 'visibility', nullable: true
|
|
76
|
+
(0, typeorm_1.Column)('varchar', { name: 'visibility', nullable: true }),
|
|
80
77
|
__metadata("design:type", String)
|
|
81
78
|
], Channel.prototype, "visibility", void 0);
|
|
82
79
|
__decorate([
|
|
83
|
-
(0, typeorm_1.Column)('varchar', { name: 'type',
|
|
80
|
+
(0, typeorm_1.Column)('varchar', { name: 'type', nullable: true }),
|
|
84
81
|
__metadata("design:type", String)
|
|
85
82
|
], Channel.prototype, "type", void 0);
|
|
86
83
|
__decorate([
|
|
87
|
-
(0, typeorm_1.Column)('
|
|
84
|
+
(0, typeorm_1.Column)('uuid', { name: 'sourceId' }),
|
|
88
85
|
__metadata("design:type", String)
|
|
89
86
|
], Channel.prototype, "sourceId", void 0);
|
|
90
87
|
__decorate([
|
|
@@ -94,7 +91,7 @@ __decorate([
|
|
|
94
91
|
__metadata("design:type", source_entity_1.Source)
|
|
95
92
|
], Channel.prototype, "source", void 0);
|
|
96
93
|
__decorate([
|
|
97
|
-
(0, typeorm_1.Column)('
|
|
94
|
+
(0, typeorm_1.Column)('uuid', { name: 'sinkId', nullable: true }),
|
|
98
95
|
__metadata("design:type", String)
|
|
99
96
|
], Channel.prototype, "sinkId", void 0);
|
|
100
97
|
__decorate([
|
|
@@ -104,15 +101,15 @@ __decorate([
|
|
|
104
101
|
__metadata("design:type", sink_entity_1.Sink)
|
|
105
102
|
], Channel.prototype, "sink", void 0);
|
|
106
103
|
__decorate([
|
|
107
|
-
(0, typeorm_1.Column)('
|
|
104
|
+
(0, typeorm_1.Column)('jsonb', { name: 'tags', nullable: true }),
|
|
108
105
|
__metadata("design:type", Array)
|
|
109
106
|
], Channel.prototype, "tags", void 0);
|
|
110
107
|
__decorate([
|
|
111
|
-
(0, typeorm_1.Column)('
|
|
108
|
+
(0, typeorm_1.Column)('jsonb', { name: 'meta', nullable: true }),
|
|
112
109
|
__metadata("design:type", Object)
|
|
113
110
|
], Channel.prototype, "meta", void 0);
|
|
114
111
|
__decorate([
|
|
115
|
-
(0, typeorm_1.Column)('varchar', { name: 'status', nullable: true
|
|
112
|
+
(0, typeorm_1.Column)('varchar', { name: 'status', nullable: true }),
|
|
116
113
|
__metadata("design:type", String)
|
|
117
114
|
], Channel.prototype, "status", void 0);
|
|
118
115
|
exports.Channel = Channel = __decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"channel.entity.js","sourceRoot":"","sources":["../../../../../../libs/polylog/src/api/channel/entities/channel.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAiE;AACjE,uCAAkC;AAClC,qCAAoD;AACpD,oDAAqD;AACrD,iEAAuD;AACvD,uEAA6D;AAQtD,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,qBAAU;
|
|
1
|
+
{"version":3,"file":"channel.entity.js","sourceRoot":"","sources":["../../../../../../libs/polylog/src/api/channel/entities/channel.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAiE;AACjE,uCAAkC;AAClC,qCAAoD;AACpD,oDAAqD;AACrD,iEAAuD;AACvD,uEAA6D;AAQtD,IAAM,OA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E,QAAQ,EAAE,IAAI,EAAE,CAAC;;qCACvC;AAGX;IADC,IAAA,gBAAM,EAAC,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uCACtC;kBA9EL,OAAO;IANnB,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,iBAAiB;QACvB,OAAO,EAAE;YACP,SAAS,EAAE,MAAM;SAClB;KACF,CAAC;GACW,OAAO,CA+EnB"}
|
|
@@ -18,47 +18,47 @@ let Event = class Event extends ntx_core_1.BaseEntity {
|
|
|
18
18
|
};
|
|
19
19
|
exports.Event = Event;
|
|
20
20
|
__decorate([
|
|
21
|
-
(0, typeorm_1.Column)('
|
|
21
|
+
(0, typeorm_1.Column)('uuid', { name: 'userId' }),
|
|
22
22
|
__metadata("design:type", String)
|
|
23
23
|
], Event.prototype, "userId", void 0);
|
|
24
24
|
__decorate([
|
|
25
|
-
(0, typeorm_1.Column)('
|
|
25
|
+
(0, typeorm_1.Column)('varchar', { name: 'clientId' }),
|
|
26
26
|
__metadata("design:type", String)
|
|
27
27
|
], Event.prototype, "clientId", void 0);
|
|
28
28
|
__decorate([
|
|
29
|
-
(0, typeorm_1.Column)('
|
|
29
|
+
(0, typeorm_1.Column)('uuid', { name: 'workspaceId' }),
|
|
30
30
|
__metadata("design:type", String)
|
|
31
31
|
], Event.prototype, "workspaceId", void 0);
|
|
32
32
|
__decorate([
|
|
33
|
-
(0, typeorm_1.Column)('
|
|
33
|
+
(0, typeorm_1.Column)('uuid', { name: 'entityId' }),
|
|
34
34
|
__metadata("design:type", String)
|
|
35
35
|
], Event.prototype, "entityId", void 0);
|
|
36
36
|
__decorate([
|
|
37
|
-
(0, typeorm_1.Column)('varchar', { name: 'entity'
|
|
37
|
+
(0, typeorm_1.Column)('varchar', { name: 'entity' }),
|
|
38
38
|
__metadata("design:type", String)
|
|
39
39
|
], Event.prototype, "entityName", void 0);
|
|
40
40
|
__decorate([
|
|
41
|
-
(0, typeorm_1.Column)('varchar', { name: 'category'
|
|
41
|
+
(0, typeorm_1.Column)('varchar', { name: 'category' }),
|
|
42
42
|
__metadata("design:type", String)
|
|
43
43
|
], Event.prototype, "category", void 0);
|
|
44
44
|
__decorate([
|
|
45
|
-
(0, typeorm_1.Column)('varchar', { name: 'type',
|
|
45
|
+
(0, typeorm_1.Column)('varchar', { name: 'type', nullable: true }),
|
|
46
46
|
__metadata("design:type", String)
|
|
47
47
|
], Event.prototype, "type", void 0);
|
|
48
48
|
__decorate([
|
|
49
|
-
(0, typeorm_1.Column)('varchar', { name: 'reference'
|
|
49
|
+
(0, typeorm_1.Column)('varchar', { name: 'reference' }),
|
|
50
50
|
__metadata("design:type", String)
|
|
51
51
|
], Event.prototype, "reference", void 0);
|
|
52
52
|
__decorate([
|
|
53
|
-
(0, typeorm_1.Column)('
|
|
53
|
+
(0, typeorm_1.Column)('varchar', { name: 'version' }),
|
|
54
54
|
__metadata("design:type", String)
|
|
55
55
|
], Event.prototype, "version", void 0);
|
|
56
56
|
__decorate([
|
|
57
|
-
(0, typeorm_1.Column)('
|
|
57
|
+
(0, typeorm_1.Column)('jsonb', { name: 'payload' }),
|
|
58
58
|
__metadata("design:type", Object)
|
|
59
59
|
], Event.prototype, "payload", void 0);
|
|
60
60
|
__decorate([
|
|
61
|
-
(0, typeorm_1.Column)('varchar', { name: 'status', nullable: true
|
|
61
|
+
(0, typeorm_1.Column)('varchar', { name: 'status', nullable: true }),
|
|
62
62
|
__metadata("design:type", String)
|
|
63
63
|
], Event.prototype, "status", void 0);
|
|
64
64
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event.entity.js","sourceRoot":"","sources":["../../../../../../libs/polylog/src/api/event/entities/event.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAI+B;AAC/B,qCAAoD;AACpD,oDAAsD;AACtD,gFAAqE;AAQ9D,IAAM,KAAK,GAAX,MAAM,KAAM,SAAQ,qBAAU;CAoCpC,CAAA;AApCY,sBAAK;AAEhB;IADC,IAAA,gBAAM,EAAC,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"event.entity.js","sourceRoot":"","sources":["../../../../../../libs/polylog/src/api/event/entities/event.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAI+B;AAC/B,qCAAoD;AACpD,oDAAsD;AACtD,gFAAqE;AAQ9D,IAAM,KAAK,GAAX,MAAM,KAAM,SAAQ,qBAAU;CAoCpC,CAAA;AApCY,sBAAK;AAEhB;IADC,IAAA,gBAAM,EAAC,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;;qCACpB;AAGf;IADC,IAAA,gBAAM,EAAC,SAAS,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;;uCACvB;AAGjB;IADC,IAAA,gBAAM,EAAC,MAAM,EAAE,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;;0CACpB;AAGpB;IADC,IAAA,gBAAM,EAAC,MAAM,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;;uCACpB;AAGjB;IADC,IAAA,gBAAM,EAAC,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;;yCACV;AAG5B;IADC,IAAA,gBAAM,EAAC,SAAS,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;;uCACjB;AAGvB;IADC,IAAA,gBAAM,EAAC,SAAS,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mCACtC;AAGd;IADC,IAAA,gBAAM,EAAC,SAAS,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;;wCACvB;AAGlB;IADC,IAAA,gBAAM,EAAC,SAAS,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;sCACvB;AAGhB;IADC,IAAA,gBAAM,EAAC,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;sCACxB;AAGb;IADC,IAAA,gBAAM,EAAC,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qCAC7B;AAGzB;IADC,IAAA,mBAAS,EAAC,CAAC,IAAI,EAAE,EAAE,CAAC,2BAAQ,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC;;mCAC1C;gBAnCP,KAAK;IANjB,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,eAAe;QACrB,OAAO,EAAE;YACP,SAAS,EAAE,MAAM;SAClB;KACF,CAAC;GACW,KAAK,CAoCjB"}
|
|
@@ -11,7 +11,9 @@ export declare class EventController extends EventController_base {
|
|
|
11
11
|
protected name: string;
|
|
12
12
|
protected searchable: any[];
|
|
13
13
|
protected service: EventService;
|
|
14
|
-
protected unique: (
|
|
14
|
+
protected unique: ({ reference }: Event) => {
|
|
15
|
+
reference: string;
|
|
16
|
+
}[];
|
|
15
17
|
protected morphRequest: (entity: Event) => Event;
|
|
16
18
|
protected morphs: {
|
|
17
19
|
beforeCreate: (payload: any, context: any) => Promise<any>;
|
|
@@ -29,7 +29,7 @@ let EventController = class EventController extends (0, ntx_core_1.CrudControlle
|
|
|
29
29
|
this.name = 'event';
|
|
30
30
|
this.searchable = [];
|
|
31
31
|
this.service = this.eventService;
|
|
32
|
-
this.unique = (
|
|
32
|
+
this.unique = ({ reference }) => [{ reference }];
|
|
33
33
|
this.morphRequest = (entity) => entity;
|
|
34
34
|
this.morphs = {
|
|
35
35
|
[ntx_core_1.CrudActionType.beforeCreate]: async (payload, context) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event.controller.js","sourceRoot":"","sources":["../../../../../libs/polylog/src/api/event/event.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAwD;AACxD,oDAO+B;AAC/B,iDAAmD;AACnD,6DAAwD;AACxD,6DAAwD;AACxD,0DAAgD;AAChD,mDAA+C;AAGxC,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,IAAA,gCAAqB,EAIxD,iCAAc,EAAE,iCAAc,EAAE,oBAAK,CAAC;IAoBtC,YACmB,YAA0B,EACxB,eAAgC,EAChC,YAA0B;QAE7C,KAAK,EAAE,CAAC;QAJS,iBAAY,GAAZ,YAAY,CAAc;QACxB,oBAAe,GAAf,eAAe,CAAiB;QAChC,iBAAY,GAAZ,YAAY,CAAc;QAtBrC,SAAI,GAAG,OAAO,CAAC;QACf,eAAU,GAAG,EAAE,CAAC;QAChB,YAAO,GAAG,IAAI,CAAC,YAAY,CAAC;QAC5B,WAAM,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"event.controller.js","sourceRoot":"","sources":["../../../../../libs/polylog/src/api/event/event.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAwD;AACxD,oDAO+B;AAC/B,iDAAmD;AACnD,6DAAwD;AACxD,6DAAwD;AACxD,0DAAgD;AAChD,mDAA+C;AAGxC,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,IAAA,gCAAqB,EAIxD,iCAAc,EAAE,iCAAc,EAAE,oBAAK,CAAC;IAoBtC,YACmB,YAA0B,EACxB,eAAgC,EAChC,YAA0B;QAE7C,KAAK,EAAE,CAAC;QAJS,iBAAY,GAAZ,YAAY,CAAc;QACxB,oBAAe,GAAf,eAAe,CAAiB;QAChC,iBAAY,GAAZ,YAAY,CAAc;QAtBrC,SAAI,GAAG,OAAO,CAAC;QACf,eAAU,GAAG,EAAE,CAAC;QAChB,YAAO,GAAG,IAAI,CAAC,YAAY,CAAC;QAC5B,WAAM,GAAG,CAAC,EAAE,SAAS,EAAS,EAAE,EAAE,CAAC,CAAC,EAAE,SAAS,EAAE,CAAC,CAAC;QACnD,iBAAY,GAAG,CAAC,MAAa,EAAE,EAAE,CAAC,MAAM,CAAC;QACzC,WAAM,GAAG;YACjB,CAAC,yBAAc,CAAC,YAAY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,UAAU,CAAC,EAC5D,IAAI,CAAC,SAAS,CACZ,0CAA0C,EAC1C,IAAI,EACJ,UAAU,CACX,CACF,CAAC;IACJ,CAAC;CACF,CAAA;AA5DY,0CAAe;AAiCpB;IADL,IAAA,YAAG,EAAC,WAAW,CAAC;IACA,WAAA,IAAA,qBAAU,GAAE,CAAA;IAAgB,WAAA,IAAA,cAAK,EAAC,MAAM,CAAC,CAAA;;;;gDA0BzD;0BA3DU,eAAe;IAD3B,IAAA,mBAAU,EAAC,OAAO,CAAC;qCA0Be,4BAAY;QACP,0BAAe;QAClB,uBAAY;GA3BpC,eAAe,CA4D3B"}
|
|
@@ -15,11 +15,15 @@ const event_entity_1 = require("./entities/event.entity");
|
|
|
15
15
|
const event_controller_1 = require("./event.controller");
|
|
16
16
|
const event_service_1 = require("./event.service");
|
|
17
17
|
let EventModule = EventModule_1 = class EventModule {
|
|
18
|
-
static register() {
|
|
18
|
+
static register(withController = true) {
|
|
19
19
|
return {
|
|
20
20
|
module: EventModule_1,
|
|
21
21
|
imports: [typeorm_1.TypeOrmModule.forFeature([event_entity_1.Event]), ntx_core_1.ServicesModule],
|
|
22
|
-
controllers: process.env.EDGE_SWITCH === 'on'
|
|
22
|
+
controllers: process.env.EDGE_SWITCH === 'on'
|
|
23
|
+
? []
|
|
24
|
+
: withController
|
|
25
|
+
? [event_controller_1.EventController]
|
|
26
|
+
: [],
|
|
23
27
|
providers: [event_service_1.EventService],
|
|
24
28
|
exports: [event_service_1.EventService],
|
|
25
29
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event.module.js","sourceRoot":"","sources":["../../../../../libs/polylog/src/api/event/event.module.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,2CAAuD;AACvD,6CAAgD;AAChD,oDAAuD;AACvD,0DAAgD;AAChD,yDAAqD;AACrD,mDAA+C;AAGxC,IAAM,WAAW,mBAAjB,MAAM,WAAW;IACtB,MAAM,CAAC,QAAQ;
|
|
1
|
+
{"version":3,"file":"event.module.js","sourceRoot":"","sources":["../../../../../libs/polylog/src/api/event/event.module.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,2CAAuD;AACvD,6CAAgD;AAChD,oDAAuD;AACvD,0DAAgD;AAChD,yDAAqD;AACrD,mDAA+C;AAGxC,IAAM,WAAW,mBAAjB,MAAM,WAAW;IACtB,MAAM,CAAC,QAAQ,CAAC,cAAc,GAAG,IAAI;QACnC,OAAO;YACL,MAAM,EAAE,aAAW;YACnB,OAAO,EAAE,CAAC,uBAAa,CAAC,UAAU,CAAC,CAAC,oBAAK,CAAC,CAAC,EAAE,yBAAc,CAAC;YAC5D,WAAW,EACT,OAAO,CAAC,GAAG,CAAC,WAAW,KAAK,IAAI;gBAC9B,CAAC,CAAC,EAAE;gBACJ,CAAC,CAAC,cAAc;oBACd,CAAC,CAAC,CAAC,kCAAe,CAAC;oBACnB,CAAC,CAAC,EAAE;YACV,SAAS,EAAE,CAAC,4BAAY,CAAC;YACzB,OAAO,EAAE,CAAC,4BAAY,CAAC;SACxB,CAAC;IACJ,CAAC;CACF,CAAA;AAfY,kCAAW;sBAAX,WAAW;IADvB,IAAA,eAAM,EAAC,EAAE,CAAC;GACE,WAAW,CAevB"}
|
|
@@ -18,7 +18,7 @@ let EventLog = class EventLog extends ntx_core_1.BaseEntity {
|
|
|
18
18
|
};
|
|
19
19
|
exports.EventLog = EventLog;
|
|
20
20
|
__decorate([
|
|
21
|
-
(0, typeorm_1.Column)('
|
|
21
|
+
(0, typeorm_1.Column)('uuid', { name: 'eventId' }),
|
|
22
22
|
__metadata("design:type", String)
|
|
23
23
|
], EventLog.prototype, "eventId", void 0);
|
|
24
24
|
__decorate([
|
|
@@ -28,19 +28,19 @@ __decorate([
|
|
|
28
28
|
__metadata("design:type", event_entity_1.Event)
|
|
29
29
|
], EventLog.prototype, "event", void 0);
|
|
30
30
|
__decorate([
|
|
31
|
-
(0, typeorm_1.Column)('
|
|
31
|
+
(0, typeorm_1.Column)('jsonb', { name: 'meta', nullable: true }),
|
|
32
32
|
__metadata("design:type", Object)
|
|
33
33
|
], EventLog.prototype, "meta", void 0);
|
|
34
34
|
__decorate([
|
|
35
|
-
(0, typeorm_1.Column)('
|
|
35
|
+
(0, typeorm_1.Column)('jsonb', { name: 'request', nullable: true }),
|
|
36
36
|
__metadata("design:type", Object)
|
|
37
37
|
], EventLog.prototype, "request", void 0);
|
|
38
38
|
__decorate([
|
|
39
|
-
(0, typeorm_1.Column)('
|
|
39
|
+
(0, typeorm_1.Column)('jsonb', { name: 'response', nullable: true }),
|
|
40
40
|
__metadata("design:type", Object)
|
|
41
41
|
], EventLog.prototype, "response", void 0);
|
|
42
42
|
__decorate([
|
|
43
|
-
(0, typeorm_1.Column)('varchar', { name: 'status', nullable: true
|
|
43
|
+
(0, typeorm_1.Column)('varchar', { name: 'status', nullable: true }),
|
|
44
44
|
__metadata("design:type", String)
|
|
45
45
|
], EventLog.prototype, "status", void 0);
|
|
46
46
|
exports.EventLog = EventLog = __decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event-log.entity.js","sourceRoot":"","sources":["../../../../../../libs/polylog/src/api/event-log/entities/event-log.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAmD;AACnD,qCAAoD;AACpD,oDAAyD;AACzD,oEAA0D;AAQnD,IAAM,QAAQ,GAAd,MAAM,QAAS,SAAQ,qBAAU;CAoBvC,CAAA;AApBY,4BAAQ;AAEnB;IADC,IAAA,gBAAM,EAAC,MAAM,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"event-log.entity.js","sourceRoot":"","sources":["../../../../../../libs/polylog/src/api/event-log/entities/event-log.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAmD;AACnD,qCAAoD;AACpD,oDAAyD;AACzD,oEAA0D;AAQnD,IAAM,QAAQ,GAAd,MAAM,QAAS,SAAQ,qBAAU;CAoBvC,CAAA;AApBY,4BAAQ;AAEnB;IADC,IAAA,gBAAM,EAAC,MAAM,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;yCACpB;AAKhB;IAHC,IAAA,mBAAS,EAAC,CAAC,IAAI,EAAE,EAAE,CAAC,oBAAK,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,EAAE;QACjD,2BAA2B,EAAE,KAAK;KACnC,CAAC;8BACM,oBAAK;uCAAC;AAGd;IADC,IAAA,gBAAM,EAAC,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sCACvC;AAGX;IADC,IAAA,gBAAM,EAAC,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCACvC;AAGd;IADC,IAAA,gBAAM,EAAC,OAAO,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CACvC;AAGf;IADC,IAAA,gBAAM,EAAC,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wCAC1B;mBAnBjB,QAAQ;IANpB,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,kBAAkB;QACxB,OAAO,EAAE;YACP,SAAS,EAAE,MAAM;SAClB;KACF,CAAC;GACW,QAAQ,CAoBpB"}
|
|
@@ -15,11 +15,15 @@ const event_log_entity_1 = require("./entities/event-log.entity");
|
|
|
15
15
|
const event_log_controller_1 = require("./event-log.controller");
|
|
16
16
|
const event_log_service_1 = require("./event-log.service");
|
|
17
17
|
let EventLogModule = EventLogModule_1 = class EventLogModule {
|
|
18
|
-
static register() {
|
|
18
|
+
static register(withController = true) {
|
|
19
19
|
return {
|
|
20
20
|
module: EventLogModule_1,
|
|
21
21
|
imports: [typeorm_1.TypeOrmModule.forFeature([event_log_entity_1.EventLog]), ntx_core_1.ServicesModule],
|
|
22
|
-
controllers: process.env.EDGE_SWITCH === 'on'
|
|
22
|
+
controllers: process.env.EDGE_SWITCH === 'on'
|
|
23
|
+
? []
|
|
24
|
+
: withController
|
|
25
|
+
? [event_log_controller_1.EventLogController]
|
|
26
|
+
: [],
|
|
23
27
|
providers: [event_log_service_1.EventLogService],
|
|
24
28
|
exports: [event_log_service_1.EventLogService],
|
|
25
29
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event-log.module.js","sourceRoot":"","sources":["../../../../../libs/polylog/src/api/event-log/event-log.module.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,2CAAuD;AACvD,6CAAgD;AAChD,oDAAuD;AACvD,kEAAuD;AACvD,iEAA4D;AAC5D,2DAAsD;AAG/C,IAAM,cAAc,sBAApB,MAAM,cAAc;IACzB,MAAM,CAAC,QAAQ;
|
|
1
|
+
{"version":3,"file":"event-log.module.js","sourceRoot":"","sources":["../../../../../libs/polylog/src/api/event-log/event-log.module.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,2CAAuD;AACvD,6CAAgD;AAChD,oDAAuD;AACvD,kEAAuD;AACvD,iEAA4D;AAC5D,2DAAsD;AAG/C,IAAM,cAAc,sBAApB,MAAM,cAAc;IACzB,MAAM,CAAC,QAAQ,CAAC,cAAc,GAAG,IAAI;QACnC,OAAO;YACL,MAAM,EAAE,gBAAc;YACtB,OAAO,EAAE,CAAC,uBAAa,CAAC,UAAU,CAAC,CAAC,2BAAQ,CAAC,CAAC,EAAE,yBAAc,CAAC;YAC/D,WAAW,EACT,OAAO,CAAC,GAAG,CAAC,WAAW,KAAK,IAAI;gBAC9B,CAAC,CAAC,EAAE;gBACJ,CAAC,CAAC,cAAc;oBACd,CAAC,CAAC,CAAC,yCAAkB,CAAC;oBACtB,CAAC,CAAC,EAAE;YACV,SAAS,EAAE,CAAC,mCAAe,CAAC;YAC5B,OAAO,EAAE,CAAC,mCAAe,CAAC;SAC3B,CAAC;IACJ,CAAC;CACF,CAAA;AAfY,wCAAc;yBAAd,cAAc;IAD1B,IAAA,eAAM,EAAC,EAAE,CAAC;GACE,cAAc,CAe1B"}
|
|
@@ -20,9 +20,8 @@ let Sink = class Sink extends ntx_core_1.BaseEntity {
|
|
|
20
20
|
};
|
|
21
21
|
exports.Sink = Sink;
|
|
22
22
|
__decorate([
|
|
23
|
-
(0, typeorm_1.Column)('
|
|
23
|
+
(0, typeorm_1.Column)('uuid', {
|
|
24
24
|
name: 'userId',
|
|
25
|
-
length: 36,
|
|
26
25
|
transformer: {
|
|
27
26
|
to: (value) => value,
|
|
28
27
|
from: (value) => {
|
|
@@ -38,7 +37,6 @@ __decorate([
|
|
|
38
37
|
__decorate([
|
|
39
38
|
(0, typeorm_1.Column)('varchar', {
|
|
40
39
|
name: 'clientId',
|
|
41
|
-
length: 52,
|
|
42
40
|
transformer: {
|
|
43
41
|
to: (value) => value,
|
|
44
42
|
from: (value) => {
|
|
@@ -52,9 +50,8 @@ __decorate([
|
|
|
52
50
|
__metadata("design:type", String)
|
|
53
51
|
], Sink.prototype, "clientId", void 0);
|
|
54
52
|
__decorate([
|
|
55
|
-
(0, typeorm_1.Column)('
|
|
53
|
+
(0, typeorm_1.Column)('uuid', {
|
|
56
54
|
name: 'workspaceId',
|
|
57
|
-
length: 36,
|
|
58
55
|
transformer: {
|
|
59
56
|
to: (value) => value,
|
|
60
57
|
from: (value) => {
|
|
@@ -68,19 +65,19 @@ __decorate([
|
|
|
68
65
|
__metadata("design:type", String)
|
|
69
66
|
], Sink.prototype, "workspaceId", void 0);
|
|
70
67
|
__decorate([
|
|
71
|
-
(0, typeorm_1.Column)('varchar', { name: 'category'
|
|
68
|
+
(0, typeorm_1.Column)('varchar', { name: 'category' }),
|
|
72
69
|
__metadata("design:type", String)
|
|
73
70
|
], Sink.prototype, "category", void 0);
|
|
74
71
|
__decorate([
|
|
75
|
-
(0, typeorm_1.Column)('varchar', { name: 'key',
|
|
72
|
+
(0, typeorm_1.Column)('varchar', { name: 'key', nullable: true }),
|
|
76
73
|
__metadata("design:type", String)
|
|
77
74
|
], Sink.prototype, "key", void 0);
|
|
78
75
|
__decorate([
|
|
79
|
-
(0, typeorm_1.Column)('varchar', { name: 'visibility', nullable: true
|
|
76
|
+
(0, typeorm_1.Column)('varchar', { name: 'visibility', nullable: true }),
|
|
80
77
|
__metadata("design:type", String)
|
|
81
78
|
], Sink.prototype, "visibility", void 0);
|
|
82
79
|
__decorate([
|
|
83
|
-
(0, typeorm_1.Column)('
|
|
80
|
+
(0, typeorm_1.Column)('uuid', { name: 'typeId' }),
|
|
84
81
|
__metadata("design:type", String)
|
|
85
82
|
], Sink.prototype, "typeId", void 0);
|
|
86
83
|
__decorate([
|
|
@@ -90,15 +87,15 @@ __decorate([
|
|
|
90
87
|
__metadata("design:type", sink_type_1.SinkType)
|
|
91
88
|
], Sink.prototype, "type", void 0);
|
|
92
89
|
__decorate([
|
|
93
|
-
(0, typeorm_1.Column)('varchar', { name: 'name'
|
|
90
|
+
(0, typeorm_1.Column)('varchar', { name: 'name' }),
|
|
94
91
|
__metadata("design:type", String)
|
|
95
92
|
], Sink.prototype, "name", void 0);
|
|
96
93
|
__decorate([
|
|
97
|
-
(0, typeorm_1.Column)('varchar', { name: 'desc', nullable: true
|
|
94
|
+
(0, typeorm_1.Column)('varchar', { name: 'desc', nullable: true }),
|
|
98
95
|
__metadata("design:type", String)
|
|
99
96
|
], Sink.prototype, "desc", void 0);
|
|
100
97
|
__decorate([
|
|
101
|
-
(0, typeorm_1.Column)('
|
|
98
|
+
(0, typeorm_1.Column)('jsonb', {
|
|
102
99
|
name: 'meta',
|
|
103
100
|
nullable: true,
|
|
104
101
|
transformer: {
|
|
@@ -117,7 +114,7 @@ __decorate([
|
|
|
117
114
|
__metadata("design:type", Object)
|
|
118
115
|
], Sink.prototype, "meta", void 0);
|
|
119
116
|
__decorate([
|
|
120
|
-
(0, typeorm_1.Column)('varchar', { name: 'status', nullable: true
|
|
117
|
+
(0, typeorm_1.Column)('varchar', { name: 'status', nullable: true }),
|
|
121
118
|
__metadata("design:type", String)
|
|
122
119
|
], Sink.prototype, "status", void 0);
|
|
123
120
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sink.entity.js","sourceRoot":"","sources":["../../../../../../libs/polylog/src/api/sink/entities/sink.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAiE;AACjE,uCAAkC;AAClC,qCAA+D;AAC/D,oDAAqD;AACrD,0EAAgE;AAChE,+CAA2C;AAQpC,IAAM,IAAI,GAAV,MAAM,IAAK,SAAQ,qBAAU;
|
|
1
|
+
{"version":3,"file":"sink.entity.js","sourceRoot":"","sources":["../../../../../../libs/polylog/src/api/sink/entities/sink.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAiE;AACjE,uCAAkC;AAClC,qCAA+D;AAC/D,oDAAqD;AACrD,0EAAgE;AAChE,+CAA2C;AAQpC,IAAM,IAAI,GAAV,MAAM,IAAK,SAAQ,qBAAU;CA0FnC,CAAA;AA1FY,oBAAI;AAaf;IAZC,IAAA,gBAAM,EAAC,MAAM,EAAE;QACd,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE;YACX,EAAE,EAAE,CAAC,KAAa,EAAE,EAAE,CAAC,KAAK;YAC5B,IAAI,EAAE,CAAC,KAAa,EAAE,EAAE;gBACtB,IAAI,KAAK,IAAI,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;oBAClC,OAAO,IAAA,iBAAM,EAAC,KAAK,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC;gBACpC,CAAC;gBACD,OAAO,KAAK,CAAC;YACf,CAAC;SACF;KACF,CAAC;;oCACa;AAcf;IAZC,IAAA,gBAAM,EAAC,SAAS,EAAE;QACjB,IAAI,EAAE,UAAU;QAChB,WAAW,EAAE;YACX,EAAE,EAAE,CAAC,KAAa,EAAE,EAAE,CAAC,KAAK;YAC5B,IAAI,EAAE,CAAC,KAAa,EAAE,EAAE;gBACtB,IAA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20
20
|
__decorate([
|
|
21
|
-
(0, typeorm_1.Column)('varchar', { name: 'category'
|
|
21
|
+
(0, typeorm_1.Column)('varchar', { name: 'category' }),
|
|
22
22
|
__metadata("design:type", String)
|
|
23
23
|
], SinkType.prototype, "category", void 0);
|
|
24
24
|
__decorate([
|
|
25
|
-
(0, typeorm_1.Column)('varchar', { name: 'key',
|
|
25
|
+
(0, typeorm_1.Column)('varchar', { name: 'key', nullable: true }),
|
|
26
26
|
__metadata("design:type", String)
|
|
27
27
|
], SinkType.prototype, "key", void 0);
|
|
28
28
|
__decorate([
|
|
29
|
-
(0, typeorm_1.Column)('varchar', { name: 'visibility', nullable: true
|
|
29
|
+
(0, typeorm_1.Column)('varchar', { name: 'visibility', nullable: true }),
|
|
30
30
|
__metadata("design:type", String)
|
|
31
31
|
], SinkType.prototype, "visibility", void 0);
|
|
32
32
|
__decorate([
|
|
33
|
-
(0, typeorm_1.Column)('varchar', { name: 'name'
|
|
33
|
+
(0, typeorm_1.Column)('varchar', { name: 'name' }),
|
|
34
34
|
__metadata("design:type", String)
|
|
35
35
|
], SinkType.prototype, "name", void 0);
|
|
36
36
|
__decorate([
|
|
37
|
-
(0, typeorm_1.Column)('varchar', { name: 'desc', nullable: true
|
|
37
|
+
(0, typeorm_1.Column)('varchar', { name: 'desc', nullable: true }),
|
|
38
38
|
__metadata("design:type", String)
|
|
39
39
|
], SinkType.prototype, "desc", void 0);
|
|
40
40
|
__decorate([
|
|
@@ -44,7 +44,6 @@ __decorate([
|
|
|
44
44
|
__decorate([
|
|
45
45
|
(0, typeorm_1.Column)('varchar', {
|
|
46
46
|
name: 'thumbnailUrl',
|
|
47
|
-
length: 255,
|
|
48
47
|
nullable: true,
|
|
49
48
|
}),
|
|
50
49
|
__metadata("design:type", String)
|
|
@@ -52,17 +51,16 @@ __decorate([
|
|
|
52
51
|
__decorate([
|
|
53
52
|
(0, typeorm_1.Column)('varchar', {
|
|
54
53
|
name: 'bannerUrl',
|
|
55
|
-
length: 255,
|
|
56
54
|
nullable: true,
|
|
57
55
|
}),
|
|
58
56
|
__metadata("design:type", String)
|
|
59
57
|
], SinkType.prototype, "bannerUrl", void 0);
|
|
60
58
|
__decorate([
|
|
61
|
-
(0, typeorm_1.Column)('
|
|
59
|
+
(0, typeorm_1.Column)('jsonb', { name: 'tags', nullable: true }),
|
|
62
60
|
__metadata("design:type", Array)
|
|
63
61
|
], SinkType.prototype, "tags", void 0);
|
|
64
62
|
__decorate([
|
|
65
|
-
(0, typeorm_1.Column)('
|
|
63
|
+
(0, typeorm_1.Column)('jsonb', { name: 'meta', nullable: true }),
|
|
66
64
|
__metadata("design:type", Object)
|
|
67
65
|
], SinkType.prototype, "meta", void 0);
|
|
68
66
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sink-type.entity.js","sourceRoot":"","sources":["../../../../../../libs/polylog/src/api/sink-type/entities/sink-type.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAiE;AACjE,qCAAoD;AACpD,oDAAqD;AACrD,iEAAuD;AAQhD,IAAM,QAAQ,GAAd,MAAM,QAAS,SAAQ,qBAAU;
|
|
1
|
+
{"version":3,"file":"sink-type.entity.js","sourceRoot":"","sources":["../../../../../../libs/polylog/src/api/sink-type/entities/sink-type.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAiE;AACjE,qCAAoD;AACpD,oDAAqD;AACrD,iEAAuD;AAQhD,IAAM,QAAQ,GAAd,MAAM,QAAS,SAAQ,qBAAU;CAuCvC,CAAA;AAvCY,4BAAQ;AAEnB;IADC,IAAA,gBAAM,EAAC,SAAS,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;;0CACjB;AAGvB;IADC,IAAA,gBAAM,EAAC,SAAS,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qCACtC;AAGb;IADC,IAAA,gBAAM,EAAC,SAAS,EAAE,EAAE,IAAI,EAA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0, typeorm_1.Column)('
|
|
22
|
+
(0, typeorm_1.Column)('uuid', { name: 'userId' }),
|
|
23
23
|
__metadata("design:type", String)
|
|
24
24
|
], Source.prototype, "userId", void 0);
|
|
25
25
|
__decorate([
|
|
26
|
-
(0, typeorm_1.Column)('
|
|
26
|
+
(0, typeorm_1.Column)('varchar', { name: 'clientId' }),
|
|
27
27
|
__metadata("design:type", String)
|
|
28
28
|
], Source.prototype, "clientId", void 0);
|
|
29
29
|
__decorate([
|
|
30
|
-
(0, typeorm_1.Column)('
|
|
30
|
+
(0, typeorm_1.Column)('uuid', { name: 'workspaceId' }),
|
|
31
31
|
__metadata("design:type", String)
|
|
32
32
|
], Source.prototype, "workspaceId", void 0);
|
|
33
33
|
__decorate([
|
|
34
|
-
(0, typeorm_1.Column)('varchar', { name: 'category'
|
|
34
|
+
(0, typeorm_1.Column)('varchar', { name: 'category' }),
|
|
35
35
|
__metadata("design:type", String)
|
|
36
36
|
], Source.prototype, "category", void 0);
|
|
37
37
|
__decorate([
|
|
38
|
-
(0, typeorm_1.Column)('varchar', { name: 'key',
|
|
38
|
+
(0, typeorm_1.Column)('varchar', { name: 'key', nullable: true }),
|
|
39
39
|
__metadata("design:type", String)
|
|
40
40
|
], Source.prototype, "key", void 0);
|
|
41
41
|
__decorate([
|
|
42
|
-
(0, typeorm_1.Column)('varchar', { name: 'visibility', nullable: true
|
|
42
|
+
(0, typeorm_1.Column)('varchar', { name: 'visibility', nullable: true }),
|
|
43
43
|
__metadata("design:type", String)
|
|
44
44
|
], Source.prototype, "visibility", void 0);
|
|
45
45
|
__decorate([
|
|
46
|
-
(0, typeorm_1.Column)('
|
|
46
|
+
(0, typeorm_1.Column)('uuid', { name: 'typeId' }),
|
|
47
47
|
__metadata("design:type", String)
|
|
48
48
|
], Source.prototype, "typeId", void 0);
|
|
49
49
|
__decorate([
|
|
@@ -53,19 +53,19 @@ __decorate([
|
|
|
53
53
|
__metadata("design:type", source_type_1.SourceType)
|
|
54
54
|
], Source.prototype, "type", void 0);
|
|
55
55
|
__decorate([
|
|
56
|
-
(0, typeorm_1.Column)('varchar', { name: 'name'
|
|
56
|
+
(0, typeorm_1.Column)('varchar', { name: 'name' }),
|
|
57
57
|
__metadata("design:type", String)
|
|
58
58
|
], Source.prototype, "name", void 0);
|
|
59
59
|
__decorate([
|
|
60
|
-
(0, typeorm_1.Column)('varchar', { name: 'desc', nullable: true
|
|
60
|
+
(0, typeorm_1.Column)('varchar', { name: 'desc', nullable: true }),
|
|
61
61
|
__metadata("design:type", String)
|
|
62
62
|
], Source.prototype, "desc", void 0);
|
|
63
63
|
__decorate([
|
|
64
|
-
(0, typeorm_1.Column)('
|
|
64
|
+
(0, typeorm_1.Column)('jsonb', { name: 'meta', nullable: true }),
|
|
65
65
|
__metadata("design:type", Object)
|
|
66
66
|
], Source.prototype, "meta", void 0);
|
|
67
67
|
__decorate([
|
|
68
|
-
(0, typeorm_1.Column)('varchar', { name: 'status', nullable: true
|
|
68
|
+
(0, typeorm_1.Column)('varchar', { name: 'status', nullable: true }),
|
|
69
69
|
__metadata("design:type", String)
|
|
70
70
|
], Source.prototype, "status", void 0);
|
|
71
71
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"source.entity.js","sourceRoot":"","sources":["../../../../../../libs/polylog/src/api/source/entities/source.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAiE;AACjE,qCAA+D;AAC/D,oDAAqD;AACrD,0EAAgE;AAChE,mDAA+C;AAQxC,IAAM,MAAM,GAAZ,MAAM,MAAO,SAAQ,qBAAU;CAyCrC,CAAA;AAzCY,wBAAM;AAEjB;IADC,IAAA,gBAAM,EAAC,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"source.entity.js","sourceRoot":"","sources":["../../../../../../libs/polylog/src/api/source/entities/source.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAiE;AACjE,qCAA+D;AAC/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AE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oCACvC;AAGX;IADC,IAAA,gBAAM,EAAC,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sCACtC;AAGhB;IADC,IAAA,mBAAS,EAAC,CAAC,IAAI,EAAE,EAAE,CAAC,wBAAO,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC;;wCACrC;iBAxCV,MAAM;IANlB,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,gBAAgB;QACtB,OAAO,EAAE;YACP,SAAS,EAAE,MAAM;SAClB;KACF,CAAC;GACW,MAAM,CAyClB"}
|
|
@@ -18,23 +18,23 @@ let SourceType = class SourceType extends ntx_core_1.BaseEntity {
|
|
|
18
18
|
};
|
|
19
19
|
exports.SourceType = SourceType;
|
|
20
20
|
__decorate([
|
|
21
|
-
(0, typeorm_1.Column)('varchar', { name: 'category'
|
|
21
|
+
(0, typeorm_1.Column)('varchar', { name: 'category' }),
|
|
22
22
|
__metadata("design:type", String)
|
|
23
23
|
], SourceType.prototype, "category", void 0);
|
|
24
24
|
__decorate([
|
|
25
|
-
(0, typeorm_1.Column)('varchar', { name: 'key',
|
|
25
|
+
(0, typeorm_1.Column)('varchar', { name: 'key', nullable: true }),
|
|
26
26
|
__metadata("design:type", String)
|
|
27
27
|
], SourceType.prototype, "key", void 0);
|
|
28
28
|
__decorate([
|
|
29
|
-
(0, typeorm_1.Column)('varchar', { name: 'visibility', nullable: true
|
|
29
|
+
(0, typeorm_1.Column)('varchar', { name: 'visibility', nullable: true }),
|
|
30
30
|
__metadata("design:type", String)
|
|
31
31
|
], SourceType.prototype, "visibility", void 0);
|
|
32
32
|
__decorate([
|
|
33
|
-
(0, typeorm_1.Column)('varchar', { name: 'name'
|
|
33
|
+
(0, typeorm_1.Column)('varchar', { name: 'name' }),
|
|
34
34
|
__metadata("design:type", String)
|
|
35
35
|
], SourceType.prototype, "name", void 0);
|
|
36
36
|
__decorate([
|
|
37
|
-
(0, typeorm_1.Column)('varchar', { name: 'desc', nullable: true
|
|
37
|
+
(0, typeorm_1.Column)('varchar', { name: 'desc', nullable: true }),
|
|
38
38
|
__metadata("design:type", String)
|
|
39
39
|
], SourceType.prototype, "desc", void 0);
|
|
40
40
|
__decorate([
|
|
@@ -44,7 +44,6 @@ __decorate([
|
|
|
44
44
|
__decorate([
|
|
45
45
|
(0, typeorm_1.Column)('varchar', {
|
|
46
46
|
name: 'thumbnailUrl',
|
|
47
|
-
length: 255,
|
|
48
47
|
nullable: true,
|
|
49
48
|
}),
|
|
50
49
|
__metadata("design:type", String)
|
|
@@ -52,17 +51,16 @@ __decorate([
|
|
|
52
51
|
__decorate([
|
|
53
52
|
(0, typeorm_1.Column)('varchar', {
|
|
54
53
|
name: 'bannerUrl',
|
|
55
|
-
length: 255,
|
|
56
54
|
nullable: true,
|
|
57
55
|
}),
|
|
58
56
|
__metadata("design:type", String)
|
|
59
57
|
], SourceType.prototype, "bannerUrl", void 0);
|
|
60
58
|
__decorate([
|
|
61
|
-
(0, typeorm_1.Column)('
|
|
59
|
+
(0, typeorm_1.Column)('jsonb', { name: 'tags', nullable: true }),
|
|
62
60
|
__metadata("design:type", Array)
|
|
63
61
|
], SourceType.prototype, "tags", void 0);
|
|
64
62
|
__decorate([
|
|
65
|
-
(0, typeorm_1.Column)('
|
|
63
|
+
(0, typeorm_1.Column)('jsonb', { name: 'meta', nullable: true }),
|
|
66
64
|
__metadata("design:type", Object)
|
|
67
65
|
], SourceType.prototype, "meta", void 0);
|
|
68
66
|
__decorate([
|