@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,46 @@
|
|
|
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.SourceTypeService = 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 source_type_entity_1 = require("./entities/source-type.entity");
|
|
22
|
+
let SourceTypeService = class SourceTypeService extends ntx_core_1.BaseRepository {
|
|
23
|
+
constructor(request, trackerService, configService, languageService, mediaService) {
|
|
24
|
+
super(request, source_type_entity_1.SourceType);
|
|
25
|
+
this.trackerService = trackerService;
|
|
26
|
+
this.configService = configService;
|
|
27
|
+
this.languageService = languageService;
|
|
28
|
+
this.mediaService = mediaService;
|
|
29
|
+
this[_a] = [];
|
|
30
|
+
this[_b] = [];
|
|
31
|
+
this[_c] = [];
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
exports.SourceTypeService = SourceTypeService;
|
|
35
|
+
_a = ntx_core_1.PermissionScopeType.Self;
|
|
36
|
+
_b = ntx_core_1.PermissionScopeType.Workspace;
|
|
37
|
+
_c = ntx_core_1.PermissionScopeType.Global;
|
|
38
|
+
exports.SourceTypeService = SourceTypeService = __decorate([
|
|
39
|
+
(0, common_1.Injectable)({ scope: common_1.Scope.REQUEST }),
|
|
40
|
+
__param(0, (0, common_1.Inject)(core_1.REQUEST)),
|
|
41
|
+
__metadata("design:paramtypes", [Object, ntx_core_1.TrackerService,
|
|
42
|
+
config_1.ConfigService,
|
|
43
|
+
ntx_core_1.LanguageService,
|
|
44
|
+
ntx_core_1.MediaService])
|
|
45
|
+
], SourceTypeService);
|
|
46
|
+
//# sourceMappingURL=source-type.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"source-type.service.js","sourceRoot":"","sources":["../../../../../libs/polylog/src/api/source-type/source-type.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAA2D;AAC3D,2CAA+C;AAC/C,uCAAuC;AACvC,oDAM+B;AAC/B,sEAA2D;AAGpD,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,yBAA0B;IAO/D,YACmB,OAAY,EACV,cAA8B,EAC9B,aAA4B,EAC5B,eAAgC,EAChC,YAA0B;QAE7C,KAAK,CAAC,OAAO,EAAE,+BAAU,CAAC,CAAC;QALR,mBAAc,GAAd,cAAc,CAAgB;QAC9B,kBAAa,GAAb,aAAa,CAAe;QAC5B,oBAAe,GAAf,eAAe,CAAiB;QAChC,iBAAY,GAAZ,YAAY,CAAc;QAXrC,QAA0B,GAAG,EAAE,CAAC;QAEhC,QAA+B,GAAG,EAAE,CAAC;QAErC,QAA4B,GAAG,EAAE,CAAC;IAU5C,CAAC;CACF,CAAA;AAhBY,8CAAiB;KACjB,8BAAmB,CAAC,IAAI;KAExB,8BAAmB,CAAC,SAAS;KAE7B,8BAAmB,CAAC,MAAM;4BAL1B,iBAAiB;IAD7B,IAAA,mBAAU,EAAC,EAAE,KAAK,EAAE,cAAK,CAAC,OAAO,EAAE,CAAC;IAShC,WAAA,IAAA,eAAM,EAAC,cAAO,CAAC,CAAA;6CACmB,yBAAc;QACf,sBAAa;QACX,0BAAe;QAClB,uBAAY;GAZpC,iBAAiB,CAgB7B"}
|
package/app.config.d.ts
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export declare enum PipeCategoryType {
|
|
2
|
+
PreFilter = "pre_filter",
|
|
3
|
+
PostFilter = "post_filter"
|
|
4
|
+
}
|
|
5
|
+
export declare enum EventStatusType {
|
|
6
|
+
New = "new",
|
|
7
|
+
Queued = "queued",
|
|
8
|
+
InProgress = "inprogress",
|
|
9
|
+
Completed = "completed",
|
|
10
|
+
Failed = "failed"
|
|
11
|
+
}
|
|
12
|
+
export declare enum EventLogStatusType {
|
|
13
|
+
Queued = "queued",
|
|
14
|
+
InProgress = "inprogress",
|
|
15
|
+
Completed = "completed",
|
|
16
|
+
Failed = "failed"
|
|
17
|
+
}
|
|
18
|
+
export declare enum SourceStatusType {
|
|
19
|
+
Pending = "pending",
|
|
20
|
+
Queued = "queued",
|
|
21
|
+
InProgress = "inprogress",
|
|
22
|
+
Completed = "completed",
|
|
23
|
+
Failed = "failed"
|
|
24
|
+
}
|
|
25
|
+
export declare enum VisibilityType {
|
|
26
|
+
Public = "public",
|
|
27
|
+
Private = "private"
|
|
28
|
+
}
|
|
29
|
+
export declare enum ListKeyType {
|
|
30
|
+
Setting = "setting",
|
|
31
|
+
Country = "country",
|
|
32
|
+
City = "city",
|
|
33
|
+
Currency = "currency",
|
|
34
|
+
Language = "language",
|
|
35
|
+
Timezone = "timezone",
|
|
36
|
+
Gender = "gender",
|
|
37
|
+
Industry = "industry"
|
|
38
|
+
}
|
package/app.config.js
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListKeyType = exports.VisibilityType = exports.SourceStatusType = exports.EventLogStatusType = exports.EventStatusType = exports.PipeCategoryType = void 0;
|
|
4
|
+
var PipeCategoryType;
|
|
5
|
+
(function (PipeCategoryType) {
|
|
6
|
+
PipeCategoryType["PreFilter"] = "pre_filter";
|
|
7
|
+
PipeCategoryType["PostFilter"] = "post_filter";
|
|
8
|
+
})(PipeCategoryType || (exports.PipeCategoryType = PipeCategoryType = {}));
|
|
9
|
+
var EventStatusType;
|
|
10
|
+
(function (EventStatusType) {
|
|
11
|
+
EventStatusType["New"] = "new";
|
|
12
|
+
EventStatusType["Queued"] = "queued";
|
|
13
|
+
EventStatusType["InProgress"] = "inprogress";
|
|
14
|
+
EventStatusType["Completed"] = "completed";
|
|
15
|
+
EventStatusType["Failed"] = "failed";
|
|
16
|
+
})(EventStatusType || (exports.EventStatusType = EventStatusType = {}));
|
|
17
|
+
var EventLogStatusType;
|
|
18
|
+
(function (EventLogStatusType) {
|
|
19
|
+
EventLogStatusType["Queued"] = "queued";
|
|
20
|
+
EventLogStatusType["InProgress"] = "inprogress";
|
|
21
|
+
EventLogStatusType["Completed"] = "completed";
|
|
22
|
+
EventLogStatusType["Failed"] = "failed";
|
|
23
|
+
})(EventLogStatusType || (exports.EventLogStatusType = EventLogStatusType = {}));
|
|
24
|
+
var SourceStatusType;
|
|
25
|
+
(function (SourceStatusType) {
|
|
26
|
+
SourceStatusType["Pending"] = "pending";
|
|
27
|
+
SourceStatusType["Queued"] = "queued";
|
|
28
|
+
SourceStatusType["InProgress"] = "inprogress";
|
|
29
|
+
SourceStatusType["Completed"] = "completed";
|
|
30
|
+
SourceStatusType["Failed"] = "failed";
|
|
31
|
+
})(SourceStatusType || (exports.SourceStatusType = SourceStatusType = {}));
|
|
32
|
+
var VisibilityType;
|
|
33
|
+
(function (VisibilityType) {
|
|
34
|
+
VisibilityType["Public"] = "public";
|
|
35
|
+
VisibilityType["Private"] = "private";
|
|
36
|
+
})(VisibilityType || (exports.VisibilityType = VisibilityType = {}));
|
|
37
|
+
var ListKeyType;
|
|
38
|
+
(function (ListKeyType) {
|
|
39
|
+
ListKeyType["Setting"] = "setting";
|
|
40
|
+
ListKeyType["Country"] = "country";
|
|
41
|
+
ListKeyType["City"] = "city";
|
|
42
|
+
ListKeyType["Currency"] = "currency";
|
|
43
|
+
ListKeyType["Language"] = "language";
|
|
44
|
+
ListKeyType["Timezone"] = "timezone";
|
|
45
|
+
ListKeyType["Gender"] = "gender";
|
|
46
|
+
ListKeyType["Industry"] = "industry";
|
|
47
|
+
})(ListKeyType || (exports.ListKeyType = ListKeyType = {}));
|
|
48
|
+
//# sourceMappingURL=app.config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.config.js","sourceRoot":"","sources":["../../../libs/polylog/src/app.config.ts"],"names":[],"mappings":";;;AAAA,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC1B,4CAAwB,CAAA;IACxB,8CAA0B,CAAA;AAC5B,CAAC,EAHW,gBAAgB,gCAAhB,gBAAgB,QAG3B;AAED,IAAY,eAMX;AAND,WAAY,eAAe;IACzB,8BAAW,CAAA;IACX,oCAAiB,CAAA;IACjB,4CAAyB,CAAA;IACzB,0CAAuB,CAAA;IACvB,oCAAiB,CAAA;AACnB,CAAC,EANW,eAAe,+BAAf,eAAe,QAM1B;AAED,IAAY,kBAKX;AALD,WAAY,kBAAkB;IAC5B,uCAAiB,CAAA;IACjB,+CAAyB,CAAA;IACzB,6CAAuB,CAAA;IACvB,uCAAiB,CAAA;AACnB,CAAC,EALW,kBAAkB,kCAAlB,kBAAkB,QAK7B;AAED,IAAY,gBAMX;AAND,WAAY,gBAAgB;IAC1B,uCAAmB,CAAA;IACnB,qCAAiB,CAAA;IACjB,6CAAyB,CAAA;IACzB,2CAAuB,CAAA;IACvB,qCAAiB,CAAA;AACnB,CAAC,EANW,gBAAgB,gCAAhB,gBAAgB,QAM3B;AAED,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,mCAAiB,CAAA;IACjB,qCAAmB,CAAA;AACrB,CAAC,EAHW,cAAc,8BAAd,cAAc,QAGzB;AAED,IAAY,WASX;AATD,WAAY,WAAW;IACrB,kCAAmB,CAAA;IACnB,kCAAmB,CAAA;IACnB,4BAAa,CAAA;IACb,oCAAqB,CAAA;IACrB,oCAAqB,CAAA;IACrB,oCAAqB,CAAA;IACrB,gCAAiB,CAAA;IACjB,oCAAqB,CAAA;AACvB,CAAC,EATW,WAAW,2BAAX,WAAW,QAStB"}
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import { ConfigService } from '@nestjs/config';
|
|
2
|
+
import { CategoryType, EventEntityType, Item, ItemDto, Items, LanguageService, MediaService, SyncService, TrackerService } from '@thescaffold/ntx-core';
|
|
3
|
+
import { DataSource } from 'typeorm';
|
|
4
|
+
import { ChannelService } from './api/channel';
|
|
5
|
+
import { SinkService } from './api/sink';
|
|
6
|
+
import { SinkTypeService } from './api/sink-type';
|
|
7
|
+
import { SourceService } from './api/source';
|
|
8
|
+
import { SourceTypeService } from './api/source-type';
|
|
9
|
+
import { SetConfigDto, UpdateConfigDto, UpsertRootSinkDto, UpsertRootSourceDto } from './app.dto';
|
|
10
|
+
import { AppService } from './app.service';
|
|
11
|
+
import { PipelineService } from './pkg/pipeline';
|
|
12
|
+
declare const AppController_base: import("@nestjs/common").Type<import("@thescaffold/ntx-core").AppControllerContract>;
|
|
13
|
+
export declare class AppController extends AppController_base {
|
|
14
|
+
protected readonly languageService: LanguageService;
|
|
15
|
+
protected readonly mediaService: MediaService;
|
|
16
|
+
protected readonly syncService: SyncService;
|
|
17
|
+
private readonly appService;
|
|
18
|
+
private readonly dataSource;
|
|
19
|
+
private readonly channelService;
|
|
20
|
+
private readonly sourceTypeService;
|
|
21
|
+
private readonly sourceService;
|
|
22
|
+
private readonly sinkTypeService;
|
|
23
|
+
private readonly sinkService;
|
|
24
|
+
private readonly pipelineService;
|
|
25
|
+
private readonly trackerService;
|
|
26
|
+
private readonly configService;
|
|
27
|
+
subscriptions: {
|
|
28
|
+
'apps.polylog.source.register': (item: Item) => Promise<void>;
|
|
29
|
+
'apps.polylog.sink.register': (item: Item) => Promise<void>;
|
|
30
|
+
'apps.cron.heartbeat.hourly': (item: Item) => Promise<void>;
|
|
31
|
+
};
|
|
32
|
+
constructor(languageService: LanguageService, mediaService: MediaService, syncService: SyncService, appService: AppService, dataSource: DataSource, channelService: ChannelService, sourceTypeService: SourceTypeService, sourceService: SourceService, sinkTypeService: SinkTypeService, sinkService: SinkService, pipelineService: PipelineService, trackerService: TrackerService, configService: ConfigService);
|
|
33
|
+
getHello(context: any): Promise<{
|
|
34
|
+
status: string;
|
|
35
|
+
title: string;
|
|
36
|
+
message: string;
|
|
37
|
+
data: any;
|
|
38
|
+
meta: any;
|
|
39
|
+
raw: string;
|
|
40
|
+
headers: any;
|
|
41
|
+
}>;
|
|
42
|
+
ingestBatch(body: Items, context: any): Promise<{
|
|
43
|
+
status: string;
|
|
44
|
+
title: string;
|
|
45
|
+
message: string;
|
|
46
|
+
data: any;
|
|
47
|
+
meta: any;
|
|
48
|
+
raw: string;
|
|
49
|
+
headers: any;
|
|
50
|
+
}>;
|
|
51
|
+
ingest(body: ItemDto, context: any): Promise<{
|
|
52
|
+
status: string;
|
|
53
|
+
title: string;
|
|
54
|
+
message: string;
|
|
55
|
+
data: any;
|
|
56
|
+
meta: any;
|
|
57
|
+
raw: string;
|
|
58
|
+
headers: any;
|
|
59
|
+
}>;
|
|
60
|
+
ingestSourceAlt(body: any, id: string, properties: any, context: any): Promise<{
|
|
61
|
+
status: string;
|
|
62
|
+
title: string;
|
|
63
|
+
message: string;
|
|
64
|
+
data: any;
|
|
65
|
+
meta: any;
|
|
66
|
+
raw: string;
|
|
67
|
+
headers: any;
|
|
68
|
+
}>;
|
|
69
|
+
ingestSource(body: any, id: string, properties: any, context: any): Promise<{
|
|
70
|
+
status: string;
|
|
71
|
+
title: string;
|
|
72
|
+
message: string;
|
|
73
|
+
data: any;
|
|
74
|
+
meta: any;
|
|
75
|
+
raw: string;
|
|
76
|
+
headers: any;
|
|
77
|
+
}>;
|
|
78
|
+
ingestChannel(body: any, id: string, properties: any, context: any): Promise<{
|
|
79
|
+
status: string;
|
|
80
|
+
title: string;
|
|
81
|
+
message: string;
|
|
82
|
+
data: any;
|
|
83
|
+
meta: any;
|
|
84
|
+
raw: string;
|
|
85
|
+
headers: any;
|
|
86
|
+
}>;
|
|
87
|
+
setConfig(context: any, body: SetConfigDto): Promise<{
|
|
88
|
+
status: string;
|
|
89
|
+
title: string;
|
|
90
|
+
message: string;
|
|
91
|
+
data: any;
|
|
92
|
+
meta: any;
|
|
93
|
+
raw: string;
|
|
94
|
+
headers: any;
|
|
95
|
+
}>;
|
|
96
|
+
getConfig(userId: string, clientId: string, workspaceId: string, entityId: string, entityName: EventEntityType, type: string, category: CategoryType, context: any): Promise<{
|
|
97
|
+
status: string;
|
|
98
|
+
title: string;
|
|
99
|
+
message: string;
|
|
100
|
+
data: any;
|
|
101
|
+
meta: any;
|
|
102
|
+
raw: string;
|
|
103
|
+
headers: any;
|
|
104
|
+
}>;
|
|
105
|
+
updateConfig(context: any, id: string, body: UpdateConfigDto): Promise<{
|
|
106
|
+
status: string;
|
|
107
|
+
title: string;
|
|
108
|
+
message: string;
|
|
109
|
+
data: any;
|
|
110
|
+
meta: any;
|
|
111
|
+
raw: string;
|
|
112
|
+
headers: any;
|
|
113
|
+
}>;
|
|
114
|
+
upsertRootSource(body: UpsertRootSourceDto, context: any): Promise<{
|
|
115
|
+
status: string;
|
|
116
|
+
title: string;
|
|
117
|
+
message: string;
|
|
118
|
+
data: any;
|
|
119
|
+
meta: any;
|
|
120
|
+
raw: string;
|
|
121
|
+
headers: any;
|
|
122
|
+
}>;
|
|
123
|
+
upsertRootSink(body: UpsertRootSinkDto, context: any): Promise<{
|
|
124
|
+
status: string;
|
|
125
|
+
title: string;
|
|
126
|
+
message: string;
|
|
127
|
+
data: any;
|
|
128
|
+
meta: any;
|
|
129
|
+
raw: string;
|
|
130
|
+
headers: any;
|
|
131
|
+
}>;
|
|
132
|
+
}
|
|
133
|
+
export {};
|
|
@@ -0,0 +1,265 @@
|
|
|
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.AppController = void 0;
|
|
16
|
+
const common_1 = require("@nestjs/common");
|
|
17
|
+
const config_1 = require("@nestjs/config");
|
|
18
|
+
const ntx_core_1 = require("@thescaffold/ntx-core");
|
|
19
|
+
const typeorm_1 = require("typeorm");
|
|
20
|
+
const channel_1 = require("./api/channel");
|
|
21
|
+
const event_1 = require("./api/event");
|
|
22
|
+
const event_log_1 = require("./api/event-log");
|
|
23
|
+
const sink_1 = require("./api/sink");
|
|
24
|
+
const sink_type_1 = require("./api/sink-type");
|
|
25
|
+
const source_1 = require("./api/source");
|
|
26
|
+
const source_type_1 = require("./api/source-type");
|
|
27
|
+
const app_dto_1 = require("./app.dto");
|
|
28
|
+
const app_service_1 = require("./app.service");
|
|
29
|
+
const pipeline_1 = require("./pkg/pipeline");
|
|
30
|
+
let AppController = class AppController extends (0, ntx_core_1.AppControllerFactory)() {
|
|
31
|
+
constructor(languageService, mediaService, syncService, appService, dataSource, channelService, sourceTypeService, sourceService, sinkTypeService, sinkService, pipelineService, trackerService, configService) {
|
|
32
|
+
super();
|
|
33
|
+
this.languageService = languageService;
|
|
34
|
+
this.mediaService = mediaService;
|
|
35
|
+
this.syncService = syncService;
|
|
36
|
+
this.appService = appService;
|
|
37
|
+
this.dataSource = dataSource;
|
|
38
|
+
this.channelService = channelService;
|
|
39
|
+
this.sourceTypeService = sourceTypeService;
|
|
40
|
+
this.sourceService = sourceService;
|
|
41
|
+
this.sinkTypeService = sinkTypeService;
|
|
42
|
+
this.sinkService = sinkService;
|
|
43
|
+
this.pipelineService = pipelineService;
|
|
44
|
+
this.trackerService = trackerService;
|
|
45
|
+
this.configService = configService;
|
|
46
|
+
this.subscriptions = {
|
|
47
|
+
'apps.polylog.source.register': async (item) => {
|
|
48
|
+
const { payload } = item;
|
|
49
|
+
await this.appService.createRootSource(payload);
|
|
50
|
+
},
|
|
51
|
+
'apps.polylog.sink.register': async (item) => {
|
|
52
|
+
const { payload } = item;
|
|
53
|
+
await this.appService.createRootSink(payload);
|
|
54
|
+
},
|
|
55
|
+
'apps.cron.heartbeat.hourly': async (item) => {
|
|
56
|
+
const { payload } = item;
|
|
57
|
+
const threshold = this.configService.get('LOG_RETENTION_THRESHOLD', 24);
|
|
58
|
+
await this.dataSource.getRepository(event_1.Event).delete({
|
|
59
|
+
createdAt: (0, typeorm_1.LessThan)(ntx_core_1.time.utc().now().subtract(threshold, 'hour').toDate()),
|
|
60
|
+
});
|
|
61
|
+
await this.dataSource.getRepository(event_log_1.EventLog).delete({
|
|
62
|
+
createdAt: (0, typeorm_1.LessThan)(ntx_core_1.time.utc().now().subtract(threshold, 'hour').toDate()),
|
|
63
|
+
});
|
|
64
|
+
},
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
async getHello(context) {
|
|
68
|
+
const { preference } = context;
|
|
69
|
+
return (0, ntx_core_1.success)(this.appService.getHello());
|
|
70
|
+
}
|
|
71
|
+
async ingestBatch(body, context) {
|
|
72
|
+
const { preference } = context;
|
|
73
|
+
return (0, ntx_core_1.success)(await this.appService.ingestBatch(body, context), this.translate('apps.polylog.app.title', null, preference), this.translate('apps.polylog.app.post.ingest.batch.success', null, preference));
|
|
74
|
+
}
|
|
75
|
+
async ingest(body, context) {
|
|
76
|
+
const { preference } = context;
|
|
77
|
+
return (0, ntx_core_1.success)(await this.appService.ingest(body, context), this.translate('apps.polylog.app.title', null, preference), this.translate('apps.polylog.app.post.ingest.success', null, preference));
|
|
78
|
+
}
|
|
79
|
+
async ingestSourceAlt(body, id, properties, context) {
|
|
80
|
+
const { preference } = context;
|
|
81
|
+
return (0, ntx_core_1.success)(await this.appService.ingestSourceAlt(body, id, properties, context), this.translate('apps.polylog.app.title', null, preference), this.translate('apps.polylog.app.post.ingest.success', null, preference));
|
|
82
|
+
}
|
|
83
|
+
async ingestSource(body, id, properties, context) {
|
|
84
|
+
const { preference } = context;
|
|
85
|
+
return (0, ntx_core_1.success)(await this.appService.ingestSource(body, id, properties, context), this.translate('apps.polylog.app.title', null, preference), this.translate('apps.polylog.app.post.ingest.source.success', null, preference));
|
|
86
|
+
}
|
|
87
|
+
async ingestChannel(body, id, properties, context) {
|
|
88
|
+
const { preference } = context;
|
|
89
|
+
return (0, ntx_core_1.success)(await this.appService.ingestChannel(body, id, properties, context), this.translate('apps.polylog.app.title', null, preference), this.translate('apps.polylog.app.post.ingest.channel.success', null, preference));
|
|
90
|
+
}
|
|
91
|
+
async setConfig(context, body) {
|
|
92
|
+
const { preference } = context;
|
|
93
|
+
return (0, ntx_core_1.success)(await this.appService.setConfig(body, context), this.translate('apps.polylog.app.title', null, preference), this.translate('apps.polylog.app.post.config.success', null, preference));
|
|
94
|
+
}
|
|
95
|
+
async getConfig(userId, clientId, workspaceId, entityId, entityName, type, category, context) {
|
|
96
|
+
const { preference } = context;
|
|
97
|
+
return (0, ntx_core_1.success)(await this.appService.getConfig(userId, clientId, workspaceId, entityId, entityName, type, category, context), this.translate('apps.polylog.app.title', null, preference), this.translate('apps.polylog.app.get.config.success', null, preference));
|
|
98
|
+
}
|
|
99
|
+
async updateConfig(context, id, body) {
|
|
100
|
+
const { preference } = context;
|
|
101
|
+
const data = await this.appService.updateConfig(id, body, context);
|
|
102
|
+
if (!data) {
|
|
103
|
+
return (0, ntx_core_1.error)(this.translate('apps.polylog.app.title', null, preference), this.translate('apps.polylog.app.patch.config.error.invalid-request'));
|
|
104
|
+
}
|
|
105
|
+
return (0, ntx_core_1.success)(data, this.translate('apps.polylog.app.title', null, preference), this.translate('apps.polylog.app.patch.config.success', null, preference));
|
|
106
|
+
}
|
|
107
|
+
async upsertRootSource(body, context) {
|
|
108
|
+
const { preference } = context;
|
|
109
|
+
const { category, key, visibility, typeKey, name, desc, meta, status } = body;
|
|
110
|
+
const source = await this.appService
|
|
111
|
+
.createRootSource({
|
|
112
|
+
category,
|
|
113
|
+
key,
|
|
114
|
+
visibility,
|
|
115
|
+
typeKey,
|
|
116
|
+
name,
|
|
117
|
+
desc,
|
|
118
|
+
meta,
|
|
119
|
+
status,
|
|
120
|
+
})
|
|
121
|
+
.catch((error) => {
|
|
122
|
+
this.trackerService.message('apps.common.log.error', {
|
|
123
|
+
error,
|
|
124
|
+
trace: (0, ntx_core_1.stackTrace)(),
|
|
125
|
+
});
|
|
126
|
+
});
|
|
127
|
+
return (0, ntx_core_1.success)(source, this.translate('apps.polylog.app.title', null, preference), this.translate('apps.polylog.app.post.root-source.success', null, preference));
|
|
128
|
+
}
|
|
129
|
+
async upsertRootSink(body, context) {
|
|
130
|
+
const { preference } = context;
|
|
131
|
+
const { category, type, sinkType, sink } = body;
|
|
132
|
+
const nSink = await this.appService
|
|
133
|
+
.createRootSink({
|
|
134
|
+
category,
|
|
135
|
+
type,
|
|
136
|
+
sinkType,
|
|
137
|
+
sink,
|
|
138
|
+
})
|
|
139
|
+
.catch((error) => {
|
|
140
|
+
this.trackerService.message('apps.common.log.error', {
|
|
141
|
+
error,
|
|
142
|
+
trace: (0, ntx_core_1.stackTrace)(),
|
|
143
|
+
});
|
|
144
|
+
});
|
|
145
|
+
return (0, ntx_core_1.success)(nSink, this.translate('apps.polylog.app.title', null, preference), this.translate('apps.polylog.app.post.root-sink.success', null, preference));
|
|
146
|
+
}
|
|
147
|
+
};
|
|
148
|
+
exports.AppController = AppController;
|
|
149
|
+
__decorate([
|
|
150
|
+
(0, common_1.Get)(),
|
|
151
|
+
__param(0, (0, ntx_core_1.GetContext)()),
|
|
152
|
+
__metadata("design:type", Function),
|
|
153
|
+
__metadata("design:paramtypes", [Object]),
|
|
154
|
+
__metadata("design:returntype", Promise)
|
|
155
|
+
], AppController.prototype, "getHello", null);
|
|
156
|
+
__decorate([
|
|
157
|
+
(0, common_1.Post)('ingest/batch'),
|
|
158
|
+
__param(0, (0, common_1.Body)()),
|
|
159
|
+
__param(1, (0, ntx_core_1.GetContext)()),
|
|
160
|
+
__metadata("design:type", Function),
|
|
161
|
+
__metadata("design:paramtypes", [Object, Object]),
|
|
162
|
+
__metadata("design:returntype", Promise)
|
|
163
|
+
], AppController.prototype, "ingestBatch", null);
|
|
164
|
+
__decorate([
|
|
165
|
+
(0, common_1.Post)('ingest'),
|
|
166
|
+
__param(0, (0, common_1.Body)()),
|
|
167
|
+
__param(1, (0, ntx_core_1.GetContext)()),
|
|
168
|
+
__metadata("design:type", Function),
|
|
169
|
+
__metadata("design:paramtypes", [ntx_core_1.ItemDto, Object]),
|
|
170
|
+
__metadata("design:returntype", Promise)
|
|
171
|
+
], AppController.prototype, "ingest", null);
|
|
172
|
+
__decorate([
|
|
173
|
+
(0, common_1.Post)('ingest/:id'),
|
|
174
|
+
__param(0, (0, common_1.Body)()),
|
|
175
|
+
__param(1, (0, common_1.Param)('id')),
|
|
176
|
+
__param(2, (0, common_1.Query)()),
|
|
177
|
+
__param(3, (0, ntx_core_1.GetContext)()),
|
|
178
|
+
__metadata("design:type", Function),
|
|
179
|
+
__metadata("design:paramtypes", [Object, String, Object, Object]),
|
|
180
|
+
__metadata("design:returntype", Promise)
|
|
181
|
+
], AppController.prototype, "ingestSourceAlt", null);
|
|
182
|
+
__decorate([
|
|
183
|
+
(0, common_1.Post)('ingest/source/:id'),
|
|
184
|
+
__param(0, (0, common_1.Body)()),
|
|
185
|
+
__param(1, (0, common_1.Param)('id')),
|
|
186
|
+
__param(2, (0, common_1.Query)()),
|
|
187
|
+
__param(3, (0, ntx_core_1.GetContext)()),
|
|
188
|
+
__metadata("design:type", Function),
|
|
189
|
+
__metadata("design:paramtypes", [Object, String, Object, Object]),
|
|
190
|
+
__metadata("design:returntype", Promise)
|
|
191
|
+
], AppController.prototype, "ingestSource", null);
|
|
192
|
+
__decorate([
|
|
193
|
+
(0, common_1.Post)('ingest/channel/:id'),
|
|
194
|
+
__param(0, (0, common_1.Body)()),
|
|
195
|
+
__param(1, (0, common_1.Param)('id')),
|
|
196
|
+
__param(2, (0, common_1.Query)()),
|
|
197
|
+
__param(3, (0, ntx_core_1.GetContext)()),
|
|
198
|
+
__metadata("design:type", Function),
|
|
199
|
+
__metadata("design:paramtypes", [Object, String, Object, Object]),
|
|
200
|
+
__metadata("design:returntype", Promise)
|
|
201
|
+
], AppController.prototype, "ingestChannel", null);
|
|
202
|
+
__decorate([
|
|
203
|
+
(0, common_1.Post)('config'),
|
|
204
|
+
__param(0, (0, ntx_core_1.GetContext)()),
|
|
205
|
+
__param(1, (0, common_1.Body)()),
|
|
206
|
+
__metadata("design:type", Function),
|
|
207
|
+
__metadata("design:paramtypes", [Object, app_dto_1.SetConfigDto]),
|
|
208
|
+
__metadata("design:returntype", Promise)
|
|
209
|
+
], AppController.prototype, "setConfig", null);
|
|
210
|
+
__decorate([
|
|
211
|
+
(0, common_1.Get)('config'),
|
|
212
|
+
__param(0, (0, common_1.Query)('userId')),
|
|
213
|
+
__param(1, (0, common_1.Query)('clientId')),
|
|
214
|
+
__param(2, (0, common_1.Query)('workspaceId')),
|
|
215
|
+
__param(3, (0, common_1.Query)('entityId')),
|
|
216
|
+
__param(4, (0, common_1.Query)('entityName')),
|
|
217
|
+
__param(5, (0, common_1.Query)('type')),
|
|
218
|
+
__param(6, (0, common_1.Query)('category')),
|
|
219
|
+
__param(7, (0, ntx_core_1.GetContext)()),
|
|
220
|
+
__metadata("design:type", Function),
|
|
221
|
+
__metadata("design:paramtypes", [String, String, String, String, String, String, String, Object]),
|
|
222
|
+
__metadata("design:returntype", Promise)
|
|
223
|
+
], AppController.prototype, "getConfig", null);
|
|
224
|
+
__decorate([
|
|
225
|
+
(0, common_1.Patch)('config/:id'),
|
|
226
|
+
__param(0, (0, ntx_core_1.GetContext)()),
|
|
227
|
+
__param(1, (0, common_1.Param)('id')),
|
|
228
|
+
__param(2, (0, common_1.Body)()),
|
|
229
|
+
__metadata("design:type", Function),
|
|
230
|
+
__metadata("design:paramtypes", [Object, String, app_dto_1.UpdateConfigDto]),
|
|
231
|
+
__metadata("design:returntype", Promise)
|
|
232
|
+
], AppController.prototype, "updateConfig", null);
|
|
233
|
+
__decorate([
|
|
234
|
+
(0, common_1.Post)('root-source'),
|
|
235
|
+
__param(0, (0, common_1.Body)()),
|
|
236
|
+
__param(1, (0, ntx_core_1.GetContext)()),
|
|
237
|
+
__metadata("design:type", Function),
|
|
238
|
+
__metadata("design:paramtypes", [app_dto_1.UpsertRootSourceDto, Object]),
|
|
239
|
+
__metadata("design:returntype", Promise)
|
|
240
|
+
], AppController.prototype, "upsertRootSource", null);
|
|
241
|
+
__decorate([
|
|
242
|
+
(0, common_1.Post)('root-sink'),
|
|
243
|
+
__param(0, (0, common_1.Body)()),
|
|
244
|
+
__param(1, (0, ntx_core_1.GetContext)()),
|
|
245
|
+
__metadata("design:type", Function),
|
|
246
|
+
__metadata("design:paramtypes", [app_dto_1.UpsertRootSinkDto, Object]),
|
|
247
|
+
__metadata("design:returntype", Promise)
|
|
248
|
+
], AppController.prototype, "upsertRootSink", null);
|
|
249
|
+
exports.AppController = AppController = __decorate([
|
|
250
|
+
(0, common_1.Controller)(),
|
|
251
|
+
__metadata("design:paramtypes", [ntx_core_1.LanguageService,
|
|
252
|
+
ntx_core_1.MediaService,
|
|
253
|
+
ntx_core_1.SyncService,
|
|
254
|
+
app_service_1.AppService,
|
|
255
|
+
typeorm_1.DataSource,
|
|
256
|
+
channel_1.ChannelService,
|
|
257
|
+
source_type_1.SourceTypeService,
|
|
258
|
+
source_1.SourceService,
|
|
259
|
+
sink_type_1.SinkTypeService,
|
|
260
|
+
sink_1.SinkService,
|
|
261
|
+
pipeline_1.PipelineService,
|
|
262
|
+
ntx_core_1.TrackerService,
|
|
263
|
+
config_1.ConfigService])
|
|
264
|
+
], AppController);
|
|
265
|
+
//# sourceMappingURL=app.controller.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.controller.js","sourceRoot":"","sources":["../../../libs/polylog/src/app.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAQwB;AACxB,2CAA+C;AAC/C,oDAgB+B;AAC/B,qCAA+C;AAC/C,2CAA+C;AAC/C,uCAAoC;AACpC,+CAA2C;AAC3C,qCAAyC;AACzC,+CAAkD;AAClD,yCAA6C;AAC7C,mDAAsD;AACtD,uCAKmB;AACnB,+CAA2C;AAC3C,6CAAiD;AAG1C,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,IAAA,+BAAoB,GAAE;IA6BvD,YACqB,eAAgC,EAChC,YAA0B,EAC1B,WAAwB,EAC1B,UAAsB,EACtB,UAAsB,EACtB,cAA8B,EAC9B,iBAAoC,EACpC,aAA4B,EAC5B,eAAgC,EAChC,WAAwB,EACxB,eAAgC,EAChC,cAA8B,EAC9B,aAA4B;QAE7C,KAAK,EAAE,CAAC;QAdW,oBAAe,GAAf,eAAe,CAAiB;QAChC,iBAAY,GAAZ,YAAY,CAAc;QAC1B,gBAAW,GAAX,WAAW,CAAa;QAC1B,eAAU,GAAV,UAAU,CAAY;QACtB,eAAU,GAAV,U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QACd,wBAAU;QACV,oBAAU;QACN,wBAAc;QACX,+BAAiB;QACrB,sBAAa;QACX,2BAAe;QACnB,kBAAW;QACP,0BAAe;QAChB,yBAAc;QACf,sBAAa;GA1CpC,aAAa,CAkQzB"}
|
package/app.dto.d.ts
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { CategoryType } from '@thescaffold/ntx-core';
|
|
2
|
+
import { SourceStatusType } from './app.config';
|
|
3
|
+
export declare enum VisibilityType {
|
|
4
|
+
Public = "public",
|
|
5
|
+
Private = "private"
|
|
6
|
+
}
|
|
7
|
+
export declare class SourceTypeDto {
|
|
8
|
+
key: string;
|
|
9
|
+
}
|
|
10
|
+
export declare class SourceDto {
|
|
11
|
+
id?: string;
|
|
12
|
+
category: CategoryType;
|
|
13
|
+
key?: string;
|
|
14
|
+
visibility?: VisibilityType;
|
|
15
|
+
name: string;
|
|
16
|
+
desc?: string;
|
|
17
|
+
detail?: string;
|
|
18
|
+
meta?: any;
|
|
19
|
+
status?: SourceStatusType;
|
|
20
|
+
}
|
|
21
|
+
export declare class SinkTypeDto {
|
|
22
|
+
key: string;
|
|
23
|
+
}
|
|
24
|
+
export declare class SinkDto {
|
|
25
|
+
id?: string;
|
|
26
|
+
category: CategoryType;
|
|
27
|
+
key?: string;
|
|
28
|
+
visibility?: VisibilityType;
|
|
29
|
+
name: string;
|
|
30
|
+
desc?: string;
|
|
31
|
+
detail?: string;
|
|
32
|
+
meta?: any;
|
|
33
|
+
}
|
|
34
|
+
export declare class SetConfigDto {
|
|
35
|
+
userId: string;
|
|
36
|
+
clientId: string;
|
|
37
|
+
workspaceId: string;
|
|
38
|
+
sourceType: SourceTypeDto;
|
|
39
|
+
source: SourceDto;
|
|
40
|
+
sinkType?: SinkTypeDto;
|
|
41
|
+
sink?: SinkDto;
|
|
42
|
+
type?: string;
|
|
43
|
+
category: CategoryType;
|
|
44
|
+
key?: string;
|
|
45
|
+
visibility?: VisibilityType;
|
|
46
|
+
}
|
|
47
|
+
export declare class UpdateConfigDto {
|
|
48
|
+
status: SourceStatusType;
|
|
49
|
+
}
|
|
50
|
+
export declare class UpsertRootSourceDto {
|
|
51
|
+
id?: string;
|
|
52
|
+
category: CategoryType;
|
|
53
|
+
key?: string;
|
|
54
|
+
visibility?: VisibilityType;
|
|
55
|
+
typeKey: string;
|
|
56
|
+
name: string;
|
|
57
|
+
desc?: string;
|
|
58
|
+
meta?: any;
|
|
59
|
+
status?: string;
|
|
60
|
+
}
|
|
61
|
+
export declare class UpsertRootSinkDto {
|
|
62
|
+
category: CategoryType;
|
|
63
|
+
type: string;
|
|
64
|
+
sinkType: SinkTypeDto;
|
|
65
|
+
sink: SinkDto;
|
|
66
|
+
}
|