@thescaffold/ntx-apps-polylog 0.0.10
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/README.md +1 -0
- package/api/channel/channel.controller.d.ts +26 -0
- package/api/channel/channel.controller.js +49 -0
- package/api/channel/channel.controller.js.map +1 -0
- package/api/channel/channel.module.d.ts +2 -0
- package/api/channel/channel.module.js +30 -0
- package/api/channel/channel.module.js.map +1 -0
- package/api/channel/channel.service.d.ts +17 -0
- package/api/channel/channel.service.js +46 -0
- package/api/channel/channel.service.js.map +1 -0
- package/api/channel/dto/create-channel.dto.d.ts +14 -0
- package/api/channel/dto/create-channel.dto.js +79 -0
- package/api/channel/dto/create-channel.dto.js.map +1 -0
- package/api/channel/dto/update-channel.dto.d.ts +14 -0
- package/api/channel/dto/update-channel.dto.js +81 -0
- package/api/channel/dto/update-channel.dto.js.map +1 -0
- package/api/channel/entities/channel.entity.d.ts +20 -0
- package/api/channel/entities/channel.entity.js +126 -0
- package/api/channel/entities/channel.entity.js.map +1 -0
- package/api/channel/index.d.ts +6 -0
- package/api/channel/index.js +23 -0
- package/api/channel/index.js.map +1 -0
- package/api/event/dto/create-event.dto.d.ts +12 -0
- package/api/event/dto/create-event.dto.js +62 -0
- package/api/event/dto/create-event.dto.js.map +1 -0
- package/api/event/dto/update-event.dto.d.ts +12 -0
- package/api/event/dto/update-event.dto.js +68 -0
- package/api/event/dto/update-event.dto.js.map +1 -0
- package/api/event/entities/event.entity.d.ts +17 -0
- package/api/event/entities/event.entity.js +76 -0
- package/api/event/entities/event.entity.js.map +1 -0
- package/api/event/event.controller.d.ts +31 -0
- package/api/event/event.controller.js +77 -0
- package/api/event/event.controller.js.map +1 -0
- package/api/event/event.module.d.ts +4 -0
- package/api/event/event.module.js +33 -0
- package/api/event/event.module.js.map +1 -0
- package/api/event/event.service.d.ts +17 -0
- package/api/event/event.service.js +46 -0
- package/api/event/event.service.js.map +1 -0
- package/api/event/index.d.ts +6 -0
- package/api/event/index.js +23 -0
- package/api/event/index.js.map +1 -0
- package/api/event-log/dto/create-event-log.dto.d.ts +8 -0
- package/api/event-log/dto/create-event-log.dto.js +48 -0
- package/api/event-log/dto/create-event-log.dto.js.map +1 -0
- package/api/event-log/dto/update-event-log.dto.d.ts +8 -0
- package/api/event-log/dto/update-event-log.dto.js +49 -0
- package/api/event-log/dto/update-event-log.dto.js.map +1 -0
- package/api/event-log/entities/event-log.entity.d.ts +11 -0
- package/api/event-log/entities/event-log.entity.js +54 -0
- package/api/event-log/entities/event-log.entity.js.map +1 -0
- package/api/event-log/event-log.controller.d.ts +28 -0
- package/api/event-log/event-log.controller.js +66 -0
- package/api/event-log/event-log.controller.js.map +1 -0
- package/api/event-log/event-log.module.d.ts +4 -0
- package/api/event-log/event-log.module.js +33 -0
- package/api/event-log/event-log.module.js.map +1 -0
- package/api/event-log/event-log.service.d.ts +17 -0
- package/api/event-log/event-log.service.js +48 -0
- package/api/event-log/event-log.service.js.map +1 -0
- package/api/event-log/index.d.ts +6 -0
- package/api/event-log/index.js +23 -0
- package/api/event-log/index.js.map +1 -0
- package/api/sink/dto/create-sink.dto.d.ts +13 -0
- package/api/sink/dto/create-sink.dto.js +71 -0
- package/api/sink/dto/create-sink.dto.js.map +1 -0
- package/api/sink/dto/update-sink.dto.d.ts +12 -0
- package/api/sink/dto/update-sink.dto.js +68 -0
- package/api/sink/dto/update-sink.dto.js.map +1 -0
- package/api/sink/entities/sink.entity.d.ts +19 -0
- package/api/sink/entities/sink.entity.js +135 -0
- package/api/sink/entities/sink.entity.js.map +1 -0
- package/api/sink/index.d.ts +6 -0
- package/api/sink/index.js +23 -0
- package/api/sink/index.js.map +1 -0
- package/api/sink/sink.controller.d.ts +25 -0
- package/api/sink/sink.controller.js +47 -0
- package/api/sink/sink.controller.js.map +1 -0
- package/api/sink/sink.module.d.ts +2 -0
- package/api/sink/sink.module.js +27 -0
- package/api/sink/sink.module.js.map +1 -0
- package/api/sink/sink.service.d.ts +17 -0
- package/api/sink/sink.service.js +46 -0
- package/api/sink/sink.service.js.map +1 -0
- package/api/sink-type/dto/create-sink-type.dto.d.ts +14 -0
- package/api/sink-type/dto/create-sink-type.dto.js +79 -0
- package/api/sink-type/dto/create-sink-type.dto.js.map +1 -0
- package/api/sink-type/dto/update-sink-type.dto.d.ts +14 -0
- package/api/sink-type/dto/update-sink-type.dto.js +81 -0
- package/api/sink-type/dto/update-sink-type.dto.js.map +1 -0
- package/api/sink-type/entities/sink-type.entity.d.ts +16 -0
- package/api/sink-type/entities/sink-type.entity.js +80 -0
- package/api/sink-type/entities/sink-type.entity.js.map +1 -0
- package/api/sink-type/index.d.ts +6 -0
- package/api/sink-type/index.js +23 -0
- package/api/sink-type/index.js.map +1 -0
- package/api/sink-type/sink-type.controller.d.ts +21 -0
- package/api/sink-type/sink-type.controller.js +40 -0
- package/api/sink-type/sink-type.controller.js.map +1 -0
- package/api/sink-type/sink-type.module.d.ts +2 -0
- package/api/sink-type/sink-type.module.js +27 -0
- package/api/sink-type/sink-type.module.js.map +1 -0
- package/api/sink-type/sink-type.service.d.ts +13 -0
- package/api/sink-type/sink-type.service.js +46 -0
- package/api/sink-type/sink-type.service.js.map +1 -0
- package/api/source/dto/create-source.dto.d.ts +12 -0
- package/api/source/dto/create-source.dto.js +65 -0
- package/api/source/dto/create-source.dto.js.map +1 -0
- package/api/source/dto/update-source.dto.d.ts +12 -0
- package/api/source/dto/update-source.dto.js +68 -0
- package/api/source/dto/update-source.dto.js.map +1 -0
- package/api/source/entities/source.entity.d.ts +19 -0
- package/api/source/entities/source.entity.js +83 -0
- package/api/source/entities/source.entity.js.map +1 -0
- package/api/source/index.d.ts +6 -0
- package/api/source/index.js +23 -0
- package/api/source/index.js.map +1 -0
- package/api/source/source.controller.d.ts +24 -0
- package/api/source/source.controller.js +46 -0
- package/api/source/source.controller.js.map +1 -0
- package/api/source/source.module.d.ts +2 -0
- package/api/source/source.module.js +30 -0
- package/api/source/source.module.js.map +1 -0
- package/api/source/source.service.d.ts +17 -0
- package/api/source/source.service.js +46 -0
- package/api/source/source.service.js.map +1 -0
- package/api/source-type/dto/create-source-type.dto.d.ts +14 -0
- package/api/source-type/dto/create-source-type.dto.js +79 -0
- package/api/source-type/dto/create-source-type.dto.js.map +1 -0
- package/api/source-type/dto/update-source-type.dto.d.ts +14 -0
- package/api/source-type/dto/update-source-type.dto.js +81 -0
- package/api/source-type/dto/update-source-type.dto.js.map +1 -0
- package/api/source-type/entities/source-type.entity.d.ts +16 -0
- package/api/source-type/entities/source-type.entity.js +80 -0
- package/api/source-type/entities/source-type.entity.js.map +1 -0
- package/api/source-type/index.d.ts +6 -0
- package/api/source-type/index.js +23 -0
- package/api/source-type/index.js.map +1 -0
- package/api/source-type/source-type.controller.d.ts +21 -0
- package/api/source-type/source-type.controller.js +40 -0
- package/api/source-type/source-type.controller.js.map +1 -0
- package/api/source-type/source-type.module.d.ts +2 -0
- package/api/source-type/source-type.module.js +27 -0
- package/api/source-type/source-type.module.js.map +1 -0
- package/api/source-type/source-type.service.d.ts +13 -0
- package/api/source-type/source-type.service.js +46 -0
- package/api/source-type/source-type.service.js.map +1 -0
- package/app.config.d.ts +38 -0
- package/app.config.js +48 -0
- package/app.config.js.map +1 -0
- package/app.controller.d.ts +133 -0
- package/app.controller.js +265 -0
- package/app.controller.js.map +1 -0
- package/app.dto.d.ts +66 -0
- package/app.dto.js +288 -0
- package/app.dto.js.map +1 -0
- package/app.module.d.ts +2 -0
- package/app.module.js +74 -0
- package/app.module.js.map +1 -0
- package/app.service.d.ts +34 -0
- package/app.service.js +330 -0
- package/app.service.js.map +1 -0
- package/index.d.ts +31 -0
- package/index.js +80 -0
- package/index.js.map +1 -0
- package/migrations/1750186475187-Channels.d.ts +5 -0
- package/migrations/1750186475187-Channels.js +48 -0
- package/migrations/1750186475187-Channels.js.map +1 -0
- package/migrations/1750186475261-EventLogs.d.ts +5 -0
- package/migrations/1750186475261-EventLogs.js +33 -0
- package/migrations/1750186475261-EventLogs.js.map +1 -0
- package/migrations/1750186475329-Events.d.ts +5 -0
- package/migrations/1750186475329-Events.js +47 -0
- package/migrations/1750186475329-Events.js.map +1 -0
- package/migrations/1750186475466-Sinks.d.ts +5 -0
- package/migrations/1750186475466-Sinks.js +46 -0
- package/migrations/1750186475466-Sinks.js.map +1 -0
- package/migrations/1750186475532-SinkTypes.d.ts +5 -0
- package/migrations/1750186475532-SinkTypes.js +39 -0
- package/migrations/1750186475532-SinkTypes.js.map +1 -0
- package/migrations/1750186475601-Sources.d.ts +5 -0
- package/migrations/1750186475601-Sources.js +46 -0
- package/migrations/1750186475601-Sources.js.map +1 -0
- package/migrations/1750186475675-SourceTypes.d.ts +5 -0
- package/migrations/1750186475675-SourceTypes.js +39 -0
- package/migrations/1750186475675-SourceTypes.js.map +1 -0
- package/migrations/1750186762829-SourceTypeData.d.ts +5 -0
- package/migrations/1750186762829-SourceTypeData.js +85 -0
- package/migrations/1750186762829-SourceTypeData.js.map +1 -0
- package/migrations/1750186762911-SinkTypeData.d.ts +5 -0
- package/migrations/1750186762911-SinkTypeData.js +34 -0
- package/migrations/1750186762911-SinkTypeData.js.map +1 -0
- package/migrations/1750186762995-SinkData.d.ts +5 -0
- package/migrations/1750186762995-SinkData.js +34 -0
- package/migrations/1750186762995-SinkData.js.map +1 -0
- package/migrations/1750186763062-ChannelData.d.ts +5 -0
- package/migrations/1750186763062-ChannelData.js +43 -0
- package/migrations/1750186763062-ChannelData.js.map +1 -0
- package/migrations/1750186763130-SourceData.d.ts +5 -0
- package/migrations/1750186763130-SourceData.js +29 -0
- package/migrations/1750186763130-SourceData.js.map +1 -0
- package/migrations/index.d.ts +2 -0
- package/migrations/index.js +30 -0
- package/migrations/index.js.map +1 -0
- package/package.json +18 -0
- package/pkg/middleware/auth.middleware.d.ts +13 -0
- package/pkg/middleware/auth.middleware.js +70 -0
- package/pkg/middleware/auth.middleware.js.map +1 -0
- package/pkg/pipeline/index.d.ts +3 -0
- package/pkg/pipeline/index.js +20 -0
- package/pkg/pipeline/index.js.map +1 -0
- package/pkg/pipeline/pipeline.module.d.ts +2 -0
- package/pkg/pipeline/pipeline.module.js +33 -0
- package/pkg/pipeline/pipeline.module.js.map +1 -0
- package/pkg/pipeline/pipeline.service.d.ts +40 -0
- package/pkg/pipeline/pipeline.service.js +203 -0
- package/pkg/pipeline/pipeline.service.js.map +1 -0
- package/pkg/pipeline/xformer.service.d.ts +3 -0
- package/pkg/pipeline/xformer.service.js +19 -0
- package/pkg/pipeline/xformer.service.js.map +1 -0
- package/pkg/sinks/at.sms.sink.d.ts +4 -0
- package/pkg/sinks/at.sms.sink.js +18 -0
- package/pkg/sinks/at.sms.sink.js.map +1 -0
- package/pkg/sinks/form.sink.d.ts +7 -0
- package/pkg/sinks/form.sink.js +26 -0
- package/pkg/sinks/form.sink.js.map +1 -0
- package/pkg/sinks/index.d.ts +7 -0
- package/pkg/sinks/index.js +18 -0
- package/pkg/sinks/index.js.map +1 -0
- package/pkg/sinks/mailchimp.email.sink.d.ts +8 -0
- package/pkg/sinks/mailchimp.email.sink.js +40 -0
- package/pkg/sinks/mailchimp.email.sink.js.map +1 -0
- package/pkg/sinks/mailgun.email.sink.d.ts +8 -0
- package/pkg/sinks/mailgun.email.sink.js +40 -0
- package/pkg/sinks/mailgun.email.sink.js.map +1 -0
- package/pkg/sinks/sendgrid.email.sink.d.ts +8 -0
- package/pkg/sinks/sendgrid.email.sink.js +49 -0
- package/pkg/sinks/sendgrid.email.sink.js.map +1 -0
- package/pkg/sinks/sink.contract.d.ts +10 -0
- package/pkg/sinks/sink.contract.js +3 -0
- package/pkg/sinks/sink.contract.js.map +1 -0
- package/pkg/sinks/webhook.sink.d.ts +9 -0
- package/pkg/sinks/webhook.sink.js +67 -0
- package/pkg/sinks/webhook.sink.js.map +1 -0
- package/tsconfig.lib.tsbuildinfo +1 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-event-log.dto.js","sourceRoot":"","sources":["../../../../../../libs/polylog/src/api/event-log/dto/update-event-log.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAsD;AACtD,qDAAyE;AACzE,oDAAyD;AAEzD,MAAa,iBAAiB;CAyB7B;AAzBD,8CAyBC;AArBC;IAHC,IAAA,wBAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAmB,GAAE;;kDACL;AAKjB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAmB,GAAE;;+CACX;AAKX;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAmB,GAAE;;kDACR;AAKd;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAmB,GAAE;;mDACP;AAKf;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAmB,GAAE;;iDACM"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BaseEntity } from '@thescaffold/ntx-core';
|
|
2
|
+
import { EventLogStatusType } from '../../../app.config';
|
|
3
|
+
import { Event } from '../../event/entities/event.entity';
|
|
4
|
+
export declare class EventLog extends BaseEntity {
|
|
5
|
+
eventId: string;
|
|
6
|
+
event?: Event;
|
|
7
|
+
meta?: any;
|
|
8
|
+
request?: any;
|
|
9
|
+
response?: any;
|
|
10
|
+
status?: EventLogStatusType;
|
|
11
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.EventLog = void 0;
|
|
13
|
+
const ntx_core_1 = require("@thescaffold/ntx-core");
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
const app_config_1 = require("../../../app.config");
|
|
16
|
+
const event_entity_1 = require("../../event/entities/event.entity");
|
|
17
|
+
let EventLog = class EventLog extends ntx_core_1.BaseEntity {
|
|
18
|
+
};
|
|
19
|
+
exports.EventLog = EventLog;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, typeorm_1.Column)('char', { name: 'eventId', length: 36 }),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], EventLog.prototype, "eventId", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, typeorm_1.ManyToOne)((type) => event_entity_1.Event, (event) => event.logs, {
|
|
26
|
+
createForeignKeyConstraints: false,
|
|
27
|
+
}),
|
|
28
|
+
__metadata("design:type", event_entity_1.Event)
|
|
29
|
+
], EventLog.prototype, "event", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)('json', { name: 'meta', nullable: true }),
|
|
32
|
+
__metadata("design:type", Object)
|
|
33
|
+
], EventLog.prototype, "meta", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)('json', { name: 'request', nullable: true }),
|
|
36
|
+
__metadata("design:type", Object)
|
|
37
|
+
], EventLog.prototype, "request", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)('json', { name: 'response', nullable: true }),
|
|
40
|
+
__metadata("design:type", Object)
|
|
41
|
+
], EventLog.prototype, "response", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)('varchar', { name: 'status', nullable: true, length: 52 }),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], EventLog.prototype, "status", void 0);
|
|
46
|
+
exports.EventLog = EventLog = __decorate([
|
|
47
|
+
(0, typeorm_1.Entity)({
|
|
48
|
+
name: 'PolylogEventLogs',
|
|
49
|
+
orderBy: {
|
|
50
|
+
createdAt: 'DESC',
|
|
51
|
+
},
|
|
52
|
+
})
|
|
53
|
+
], EventLog);
|
|
54
|
+
//# sourceMappingURL=event-log.entity.js.map
|
|
@@ -0,0 +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,MAAM,EAAE,EAAE,EAAE,CAAC;;yCAChC;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,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sCACtC;AAGX;IADC,IAAA,gBAAM,EAAC,MAAM,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCACtC;AAGd;IADC,IAAA,gBAAM,EAAC,MAAM,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CACtC;AAGf;IADC,IAAA,gBAAM,EAAC,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;wCACtC;mBAnBjB,QAAQ;IANpB,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,kBAAkB;QACxB,OAAO,EAAE;YACP,SAAS,EAAE,MAAM;SAClB;KACF,CAAC;GACW,QAAQ,CAoBpB"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { LanguageService, MediaService } from '@thescaffold/ntx-core';
|
|
2
|
+
import { CreateEventLogDto } from './dto/create-event-log.dto';
|
|
3
|
+
import { UpdateEventLogDto } from './dto/update-event-log.dto';
|
|
4
|
+
import { EventLog } from './entities/event-log.entity';
|
|
5
|
+
import { EventLogService } from './event-log.service';
|
|
6
|
+
declare const EventLogController_base: import("@nestjs/common").Type<import("@thescaffold/ntx-core").CrudControllerContract<EventLog, CreateEventLogDto, UpdateEventLogDto>>;
|
|
7
|
+
export declare class EventLogController extends EventLogController_base {
|
|
8
|
+
private readonly eventLogService;
|
|
9
|
+
protected readonly languageService: LanguageService;
|
|
10
|
+
protected readonly mediaService: MediaService;
|
|
11
|
+
protected name: string;
|
|
12
|
+
protected searchable: any[];
|
|
13
|
+
protected service: EventLogService;
|
|
14
|
+
protected unique: (entity: EventLog) => any[];
|
|
15
|
+
protected morphRequest: (entity: EventLog) => EventLog;
|
|
16
|
+
protected hooks: {};
|
|
17
|
+
constructor(eventLogService: EventLogService, languageService: LanguageService, mediaService: MediaService);
|
|
18
|
+
dashboard(context: any, type: string): Promise<{
|
|
19
|
+
status: string;
|
|
20
|
+
title: string;
|
|
21
|
+
message: string;
|
|
22
|
+
data: any;
|
|
23
|
+
meta: any;
|
|
24
|
+
raw: string;
|
|
25
|
+
headers: any;
|
|
26
|
+
}>;
|
|
27
|
+
}
|
|
28
|
+
export {};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.EventLogController = void 0;
|
|
16
|
+
const common_1 = require("@nestjs/common");
|
|
17
|
+
const ntx_core_1 = require("@thescaffold/ntx-core");
|
|
18
|
+
const app_config_1 = require("../../app.config");
|
|
19
|
+
const create_event_log_dto_1 = require("./dto/create-event-log.dto");
|
|
20
|
+
const update_event_log_dto_1 = require("./dto/update-event-log.dto");
|
|
21
|
+
const event_log_entity_1 = require("./entities/event-log.entity");
|
|
22
|
+
const event_log_service_1 = require("./event-log.service");
|
|
23
|
+
let EventLogController = class EventLogController extends (0, ntx_core_1.CrudControllerFactory)(create_event_log_dto_1.CreateEventLogDto, update_event_log_dto_1.UpdateEventLogDto, event_log_entity_1.EventLog) {
|
|
24
|
+
constructor(eventLogService, languageService, mediaService) {
|
|
25
|
+
super();
|
|
26
|
+
this.eventLogService = eventLogService;
|
|
27
|
+
this.languageService = languageService;
|
|
28
|
+
this.mediaService = mediaService;
|
|
29
|
+
this.name = 'event log';
|
|
30
|
+
this.searchable = [];
|
|
31
|
+
this.service = this.eventLogService;
|
|
32
|
+
this.unique = (entity) => [];
|
|
33
|
+
this.morphRequest = (entity) => entity;
|
|
34
|
+
this.hooks = {};
|
|
35
|
+
}
|
|
36
|
+
async dashboard(context, type) {
|
|
37
|
+
const { preference } = context;
|
|
38
|
+
const completed = await this.eventLogService.withContext(context).count({
|
|
39
|
+
where: [{ event: { type }, status: app_config_1.EventLogStatusType.Completed }],
|
|
40
|
+
});
|
|
41
|
+
const inProgress = await this.eventLogService.withContext(context).count({
|
|
42
|
+
where: [{ event: { type }, status: app_config_1.EventLogStatusType.InProgress }],
|
|
43
|
+
});
|
|
44
|
+
return (0, ntx_core_1.success)({
|
|
45
|
+
total: completed + inProgress,
|
|
46
|
+
completed,
|
|
47
|
+
inProgress,
|
|
48
|
+
}, this.translate('apps.polylog.event-log.title', null, preference), this.translate('apps.polylog.event-log.get.dashboard.success', null, preference));
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
exports.EventLogController = EventLogController;
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, common_1.Get)('dashboard'),
|
|
54
|
+
__param(0, (0, ntx_core_1.GetContext)()),
|
|
55
|
+
__param(1, (0, common_1.Query)('type')),
|
|
56
|
+
__metadata("design:type", Function),
|
|
57
|
+
__metadata("design:paramtypes", [Object, String]),
|
|
58
|
+
__metadata("design:returntype", Promise)
|
|
59
|
+
], EventLogController.prototype, "dashboard", null);
|
|
60
|
+
exports.EventLogController = EventLogController = __decorate([
|
|
61
|
+
(0, common_1.Controller)('event-log'),
|
|
62
|
+
__metadata("design:paramtypes", [event_log_service_1.EventLogService,
|
|
63
|
+
ntx_core_1.LanguageService,
|
|
64
|
+
ntx_core_1.MediaService])
|
|
65
|
+
], EventLogController);
|
|
66
|
+
//# sourceMappingURL=event-log.controller.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"event-log.controller.js","sourceRoot":"","sources":["../../../../../libs/polylog/src/api/event-log/event-log.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAwD;AACxD,oDAM+B;AAC/B,iDAAsD;AACtD,qEAA+D;AAC/D,qEAA+D;AAC/D,kEAAuD;AACvD,2DAAsD;AAG/C,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,IAAA,gCAAqB,EAI3D,wCAAiB,EAAE,wCAAiB,EAAE,2BAAQ,CAAC;IAQ/C,YACmB,eAAgC,EAC9B,eAAgC,EAChC,YAA0B;QAE7C,KAAK,EAAE,CAAC;QAJS,oBAAe,GAAf,eAAe,CAAiB;QAC9B,oBAAe,GAAf,eAAe,CAAiB;QAChC,iBAAY,GAAZ,YAAY,CAAc;QAVrC,SAAI,GAAG,WAAW,CAAC;QACnB,eAAU,GAAG,EAAE,CAAC;QAChB,YAAO,GAAG,IAAI,CAAC,eAAe,CAAC;QAC/B,WAAM,GAAG,CAAC,MAAgB,EAAE,EAAE,CAAC,EAAE,CAAC;QAClC,iBAAY,GAAG,CAAC,MAAgB,EAAE,EAAE,CAAC,MAAM,CAAC;QAC5C,UAAK,GAAG,EAAE,CAAC;IAQrB,CAAC;IAGK,AAAN,KAAK,CAAC,SAAS,CAAe,OAAY,EAAiB,IAAY;QACrE,MAAM,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC;QAC/B,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC,eAAe,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,KAAK,CAAC;YACtE,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,MAAM,EAAE,+BAAkB,CAAC,SAAS,EAAE,CAAC;SACnE,CAAC,CAAC;QACH,MAAM,UAAU,GAAG,MAAM,IAAI,CAAC,eAAe,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,KAAK,CAAC;YACvE,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,MAAM,EAAE,+BAAkB,CAAC,UAAU,EAAE,CAAC;SACpE,CAAC,CAAC;QAEH,OAAO,IAAA,kBAAO,EACZ;YACE,KAAK,EAAE,SAAS,GAAG,UAAU;YAC7B,SAAS;YACT,UAAU;SACX,EACD,IAAI,CAAC,SAAS,CAAC,8BAA8B,EAAE,IAAI,EAAE,UAAU,CAAC,EAChE,IAAI,CAAC,SAAS,CACZ,8CAA8C,EAC9C,IAAI,EACJ,UAAU,CACX,CACF,CAAC;IACJ,CAAC;CACF,CAAA;AA5CY,gDAAkB;AAqBvB;IADL,IAAA,YAAG,EAAC,WAAW,CAAC;IACA,WAAA,IAAA,qBAAU,GAAE,CAAA;IAAgB,WAAA,IAAA,cAAK,EAAC,MAAM,CAAC,CAAA;;;;mDAsBzD;6BA3CU,kBAAkB;IAD9B,IAAA,mBAAU,EAAC,WAAW,CAAC;qCAcc,mCAAe;QACb,0BAAe;QAClB,uBAAY;GAfpC,kBAAkB,CA4C9B"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var EventLogModule_1;
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.EventLogModule = void 0;
|
|
11
|
+
const common_1 = require("@nestjs/common");
|
|
12
|
+
const typeorm_1 = require("@nestjs/typeorm");
|
|
13
|
+
const ntx_core_1 = require("@thescaffold/ntx-core");
|
|
14
|
+
const event_log_entity_1 = require("./entities/event-log.entity");
|
|
15
|
+
const event_log_controller_1 = require("./event-log.controller");
|
|
16
|
+
const event_log_service_1 = require("./event-log.service");
|
|
17
|
+
let EventLogModule = EventLogModule_1 = class EventLogModule {
|
|
18
|
+
static register() {
|
|
19
|
+
return {
|
|
20
|
+
module: EventLogModule_1,
|
|
21
|
+
imports: [typeorm_1.TypeOrmModule.forFeature([event_log_entity_1.EventLog]), ntx_core_1.ServicesModule],
|
|
22
|
+
controllers: process.env.EDGE_SWITCH === 'on' ? [] : [event_log_controller_1.EventLogController],
|
|
23
|
+
providers: [event_log_service_1.EventLogService],
|
|
24
|
+
exports: [event_log_service_1.EventLogService],
|
|
25
|
+
global: true,
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
exports.EventLogModule = EventLogModule;
|
|
30
|
+
exports.EventLogModule = EventLogModule = EventLogModule_1 = __decorate([
|
|
31
|
+
(0, common_1.Module)({})
|
|
32
|
+
], EventLogModule);
|
|
33
|
+
//# sourceMappingURL=event-log.module.js.map
|
|
@@ -0,0 +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;QACb,OAAO;YACL,MAAM,EAAE,gBAAc;YACtB,OAAO,EAAE,CAAC,uBAAa,CAAC,UAAU,CAAC,CAAC,2BAAQ,CAAC,CAAC,EAAE,yBAAc,CAAC;YAC/D,WAAW,EAAE,OAAO,CAAC,GAAG,CAAC,WAAW,KAAK,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,yCAAkB,CAAC;YACzE,SAAS,EAAE,CAAC,mCAAe,CAAC;YAC5B,OAAO,EAAE,CAAC,mCAAe,CAAC;YAC1B,MAAM,EAAE,IAAI;SACb,CAAC;IACJ,CAAC;CACF,CAAA;AAXY,wCAAc;yBAAd,cAAc;IAD1B,IAAA,eAAM,EAAC,EAAE,CAAC;GACE,cAAc,CAW1B"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ConfigService } from '@nestjs/config';
|
|
2
|
+
import { BaseRepository, LanguageService, MediaService, PermissionScopeType, TrackerService } from '@thescaffold/ntx-core';
|
|
3
|
+
import { EventLog } from './entities/event-log.entity';
|
|
4
|
+
export declare class EventLogService extends BaseRepository<EventLog> {
|
|
5
|
+
protected readonly trackerService: TrackerService;
|
|
6
|
+
protected readonly configService: ConfigService;
|
|
7
|
+
protected readonly languageService: LanguageService;
|
|
8
|
+
protected readonly mediaService: MediaService;
|
|
9
|
+
protected [PermissionScopeType.Self]: {
|
|
10
|
+
'event.userId': string;
|
|
11
|
+
}[];
|
|
12
|
+
protected [PermissionScopeType.Workspace]: {
|
|
13
|
+
'event.workspaceId': string;
|
|
14
|
+
}[];
|
|
15
|
+
protected [PermissionScopeType.Global]: any[];
|
|
16
|
+
constructor(request: any, trackerService: TrackerService, configService: ConfigService, languageService: LanguageService, mediaService: MediaService);
|
|
17
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
var _a, _b, _c;
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.EventLogService = void 0;
|
|
17
|
+
const common_1 = require("@nestjs/common");
|
|
18
|
+
const config_1 = require("@nestjs/config");
|
|
19
|
+
const core_1 = require("@nestjs/core");
|
|
20
|
+
const ntx_core_1 = require("@thescaffold/ntx-core");
|
|
21
|
+
const event_log_entity_1 = require("./entities/event-log.entity");
|
|
22
|
+
let EventLogService = class EventLogService extends ntx_core_1.BaseRepository {
|
|
23
|
+
constructor(request, trackerService, configService, languageService, mediaService) {
|
|
24
|
+
super(request, event_log_entity_1.EventLog);
|
|
25
|
+
this.trackerService = trackerService;
|
|
26
|
+
this.configService = configService;
|
|
27
|
+
this.languageService = languageService;
|
|
28
|
+
this.mediaService = mediaService;
|
|
29
|
+
this[_a] = [{ 'event.userId': 'user.id' }];
|
|
30
|
+
this[_b] = [
|
|
31
|
+
{ 'event.workspaceId': 'workspace.id' },
|
|
32
|
+
];
|
|
33
|
+
this[_c] = [];
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
exports.EventLogService = EventLogService;
|
|
37
|
+
_a = ntx_core_1.PermissionScopeType.Self;
|
|
38
|
+
_b = ntx_core_1.PermissionScopeType.Workspace;
|
|
39
|
+
_c = ntx_core_1.PermissionScopeType.Global;
|
|
40
|
+
exports.EventLogService = EventLogService = __decorate([
|
|
41
|
+
(0, common_1.Injectable)({ scope: common_1.Scope.REQUEST }),
|
|
42
|
+
__param(0, (0, common_1.Inject)(core_1.REQUEST)),
|
|
43
|
+
__metadata("design:paramtypes", [Object, ntx_core_1.TrackerService,
|
|
44
|
+
config_1.ConfigService,
|
|
45
|
+
ntx_core_1.LanguageService,
|
|
46
|
+
ntx_core_1.MediaService])
|
|
47
|
+
], EventLogService);
|
|
48
|
+
//# sourceMappingURL=event-log.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"event-log.service.js","sourceRoot":"","sources":["../../../../../libs/polylog/src/api/event-log/event-log.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAA2D;AAC3D,2CAA+C;AAC/C,uCAAuC;AACvC,oDAM+B;AAC/B,kEAAuD;AAGhD,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,yBAAwB;IAS3D,YACmB,OAAY,EACV,cAA8B,EAC9B,aAA4B,EAC5B,eAAgC,EAChC,YAA0B;QAE7C,KAAK,CAAC,OAAO,EAAE,2BAAQ,CAAC,CAAC;QALN,mBAAc,GAAd,cAAc,CAAgB;QAC9B,kBAAa,GAAb,aAAa,CAAe;QAC5B,oBAAe,GAAf,eAAe,CAAiB;QAChC,iBAAY,GAAZ,YAAY,CAAc;QAbrC,QAA0B,GAAG,CAAC,EAAE,cAAc,EAAE,SAAS,EAAE,CAAC,CAAC;QAE7D,QAA+B,GAAG;YAC1C,EAAE,mBAAmB,EAAE,cAAc,EAAE;SACxC,CAAC;QAEQ,QAA4B,GAAG,EAAE,CAAC;IAU5C,CAAC;CACF,CAAA;AAlBY,0CAAe;KACf,8BAAmB,CAAC,IAAI;KAExB,8BAAmB,CAAC,SAAS;KAI7B,8BAAmB,CAAC,MAAM;0BAP1B,eAAe;IAD3B,IAAA,mBAAU,EAAC,EAAE,KAAK,EAAE,cAAK,CAAC,OAAO,EAAE,CAAC;IAWhC,WAAA,IAAA,eAAM,EAAC,cAAO,CAAC,CAAA;6CACmB,yBAAc;QACf,sBAAa;QACX,0BAAe;QAClB,uBAAY;GAdpC,eAAe,CAkB3B"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./dto/create-event-log.dto"), exports);
|
|
18
|
+
__exportStar(require("./dto/update-event-log.dto"), exports);
|
|
19
|
+
__exportStar(require("./entities/event-log.entity"), exports);
|
|
20
|
+
__exportStar(require("./event-log.controller"), exports);
|
|
21
|
+
__exportStar(require("./event-log.service"), exports);
|
|
22
|
+
__exportStar(require("./event-log.module"), exports);
|
|
23
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/polylog/src/api/event-log/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6DAA2C;AAC3C,6DAA2C;AAC3C,8DAA4C;AAC5C,yDAAuC;AACvC,sDAAoC;AACpC,qDAAmC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { CategoryType } from '@thescaffold/ntx-core';
|
|
2
|
+
import { VisibilityType } from '../../../app.config';
|
|
3
|
+
export declare class CreateSinkDto {
|
|
4
|
+
id?: string;
|
|
5
|
+
category: CategoryType;
|
|
6
|
+
key?: string;
|
|
7
|
+
visibility?: VisibilityType;
|
|
8
|
+
typeId: string;
|
|
9
|
+
name: string;
|
|
10
|
+
desc?: string;
|
|
11
|
+
meta?: any;
|
|
12
|
+
status?: string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.CreateSinkDto = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
const ntx_core_1 = require("@thescaffold/ntx-core");
|
|
15
|
+
const class_validator_1 = require("class-validator");
|
|
16
|
+
const app_config_1 = require("../../../app.config");
|
|
17
|
+
class CreateSinkDto {
|
|
18
|
+
}
|
|
19
|
+
exports.CreateSinkDto = CreateSinkDto;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_validator_1.IsUUID)(),
|
|
22
|
+
(0, class_validator_1.IsOptional)(),
|
|
23
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], CreateSinkDto.prototype, "id", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_validator_1.IsEnum)(ntx_core_1.CategoryType),
|
|
28
|
+
(0, swagger_1.ApiProperty)(),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], CreateSinkDto.prototype, "category", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, class_validator_1.IsString)(),
|
|
33
|
+
(0, class_validator_1.IsOptional)(),
|
|
34
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], CreateSinkDto.prototype, "key", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_validator_1.IsEnum)(app_config_1.VisibilityType),
|
|
39
|
+
(0, class_validator_1.IsOptional)(),
|
|
40
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], CreateSinkDto.prototype, "visibility", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, class_validator_1.IsUUID)(),
|
|
45
|
+
(0, swagger_1.ApiProperty)(),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], CreateSinkDto.prototype, "typeId", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, class_validator_1.IsString)(),
|
|
50
|
+
(0, swagger_1.ApiProperty)(),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], CreateSinkDto.prototype, "name", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, class_validator_1.IsString)(),
|
|
55
|
+
(0, class_validator_1.IsOptional)(),
|
|
56
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
57
|
+
__metadata("design:type", String)
|
|
58
|
+
], CreateSinkDto.prototype, "desc", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, class_validator_1.IsObject)(),
|
|
61
|
+
(0, class_validator_1.IsOptional)(),
|
|
62
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
63
|
+
__metadata("design:type", Object)
|
|
64
|
+
], CreateSinkDto.prototype, "meta", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, class_validator_1.IsString)(),
|
|
67
|
+
(0, class_validator_1.IsOptional)(),
|
|
68
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
69
|
+
__metadata("design:type", String)
|
|
70
|
+
], CreateSinkDto.prototype, "status", void 0);
|
|
71
|
+
//# sourceMappingURL=create-sink.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-sink.dto.js","sourceRoot":"","sources":["../../../../../../libs/polylog/src/api/sink/dto/create-sink.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAmE;AACnE,oDAAqD;AACrD,qDAMyB;AACzB,oDAAqD;AAErD,MAAa,aAAa;CA0CzB;AA1CD,sCA0CC;AAtCC;IAHC,IAAA,wBAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAmB,GAAE;;yCACV;AAIZ;IAFC,IAAA,wBAAM,EAAC,uBAAY,CAAC;IACpB,IAAA,qBAAW,GAAE;;+CACS;AAKvB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAmB,GAAE;;0CACT;AAKb;IAHC,IAAA,wBAAM,EAAC,2BAAc,CAAC;IACtB,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAmB,GAAE;;iDACM;AAI5B;IAFC,IAAA,wBAAM,GAAE;IACR,IAAA,qBAAW,GAAE;;6CACC;AAIf;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,qBAAW,GAAE;;2CACD;AAKb;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAmB,GAAE;;2CACR;AAKd;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAmB,GAAE;;2CACX;AAKX;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAmB,GAAE;;6CACN"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CategoryType } from '@thescaffold/ntx-core';
|
|
2
|
+
import { VisibilityType } from '../../../app.config';
|
|
3
|
+
export declare class UpdateSinkDto {
|
|
4
|
+
category?: CategoryType;
|
|
5
|
+
key?: string;
|
|
6
|
+
visibility?: VisibilityType;
|
|
7
|
+
typeId?: string;
|
|
8
|
+
name?: string;
|
|
9
|
+
desc?: string;
|
|
10
|
+
meta?: any;
|
|
11
|
+
status?: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.UpdateSinkDto = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
const ntx_core_1 = require("@thescaffold/ntx-core");
|
|
15
|
+
const class_validator_1 = require("class-validator");
|
|
16
|
+
const app_config_1 = require("../../../app.config");
|
|
17
|
+
class UpdateSinkDto {
|
|
18
|
+
}
|
|
19
|
+
exports.UpdateSinkDto = UpdateSinkDto;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_validator_1.IsEnum)(ntx_core_1.CategoryType),
|
|
22
|
+
(0, class_validator_1.IsOptional)(),
|
|
23
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], UpdateSinkDto.prototype, "category", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_validator_1.IsString)(),
|
|
28
|
+
(0, class_validator_1.IsOptional)(),
|
|
29
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], UpdateSinkDto.prototype, "key", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsEnum)(app_config_1.VisibilityType),
|
|
34
|
+
(0, class_validator_1.IsOptional)(),
|
|
35
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], UpdateSinkDto.prototype, "visibility", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, class_validator_1.IsUUID)(),
|
|
40
|
+
(0, class_validator_1.IsOptional)(),
|
|
41
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], UpdateSinkDto.prototype, "typeId", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, class_validator_1.IsString)(),
|
|
46
|
+
(0, class_validator_1.IsOptional)(),
|
|
47
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], UpdateSinkDto.prototype, "name", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, class_validator_1.IsString)(),
|
|
52
|
+
(0, class_validator_1.IsOptional)(),
|
|
53
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
54
|
+
__metadata("design:type", String)
|
|
55
|
+
], UpdateSinkDto.prototype, "desc", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, class_validator_1.IsObject)(),
|
|
58
|
+
(0, class_validator_1.IsOptional)(),
|
|
59
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
60
|
+
__metadata("design:type", Object)
|
|
61
|
+
], UpdateSinkDto.prototype, "meta", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, class_validator_1.IsString)(),
|
|
64
|
+
(0, class_validator_1.IsOptional)(),
|
|
65
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
66
|
+
__metadata("design:type", String)
|
|
67
|
+
], UpdateSinkDto.prototype, "status", void 0);
|
|
68
|
+
//# sourceMappingURL=update-sink.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-sink.dto.js","sourceRoot":"","sources":["../../../../../../libs/polylog/src/api/sink/dto/update-sink.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAsD;AACtD,oDAAqD;AACrD,qDAMyB;AACzB,oDAAqD;AAErD,MAAa,aAAa;CAwCzB;AAxCD,sCAwCC;AApCC;IAHC,IAAA,wBAAM,EAAC,uBAAY,CAAC;IACpB,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAmB,GAAE;;+CACE;AAKxB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAmB,GAAE;;0CACT;AAKb;IAHC,IAAA,wBAAM,EAAC,2BAAc,CAAC;IACtB,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAmB,GAAE;;iDACM;AAK5B;IAHC,IAAA,wBAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAmB,GAAE;;6CACN;AAKhB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAmB,GAAE;;2CACR;AAKd;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAmB,GAAE;;2CACR;AAKd;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAmB,GAAE;;2CACX;AAKX;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAmB,GAAE;;6CACN"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { BaseEntity, CategoryType } from '@thescaffold/ntx-core';
|
|
2
|
+
import { VisibilityType } from '../../../app.config';
|
|
3
|
+
import { Channel } from '../../channel/entities/channel.entity';
|
|
4
|
+
import { SinkType } from '../../sink-type';
|
|
5
|
+
export declare class Sink extends BaseEntity {
|
|
6
|
+
userId: string;
|
|
7
|
+
clientId: string;
|
|
8
|
+
workspaceId: string;
|
|
9
|
+
category: CategoryType;
|
|
10
|
+
key?: string;
|
|
11
|
+
visibility?: VisibilityType;
|
|
12
|
+
typeId: string;
|
|
13
|
+
type?: SinkType;
|
|
14
|
+
name: string;
|
|
15
|
+
desc?: string;
|
|
16
|
+
meta?: any;
|
|
17
|
+
status?: string;
|
|
18
|
+
channels?: Channel[];
|
|
19
|
+
}
|