@grapadigital/shared-schemas 1.0.186 → 1.0.188
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +4 -0
- package/dist/index.js +4 -0
- package/dist/schemas/comment.schema.d.ts +72 -0
- package/dist/schemas/comment.schema.js +117 -0
- package/dist/schemas/content-capture-process.schema.d.ts +167 -0
- package/dist/schemas/content-capture-process.schema.js +271 -0
- package/dist/schemas/content-draft.schema.d.ts +82 -0
- package/dist/schemas/content-draft.schema.js +128 -0
- package/dist/schemas/export-comments-job.schema.d.ts +64 -0
- package/dist/schemas/export-comments-job.schema.js +65 -0
- package/package.json +1 -1
- package/src/index.ts +4 -0
- package/src/schemas/comment.schema.ts +95 -0
- package/src/schemas/content-capture-process.schema.ts +220 -0
- package/src/schemas/content-draft.schema.ts +111 -0
- package/src/schemas/export-comments-job.schema.ts +52 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from './schemas/action.schema';
|
|
2
2
|
export * from './schemas/client.schema';
|
|
3
3
|
export * from './schemas/content.schema';
|
|
4
|
+
export * from './schemas/comment.schema';
|
|
4
5
|
export * from './schemas/influencer.schema';
|
|
5
6
|
export * from './schemas/supplier.schema';
|
|
6
7
|
export * from './schemas/campaign.schema';
|
|
@@ -27,3 +28,6 @@ export * from './schemas/group.schema';
|
|
|
27
28
|
export * from './schemas/tag.schema';
|
|
28
29
|
export * from './schemas/trigger.schema';
|
|
29
30
|
export { Note, NoteSchema, NoteMention, NoteMentionSchema } from './schemas/note.schema';
|
|
31
|
+
export * from './schemas/content-capture-process.schema';
|
|
32
|
+
export * from './schemas/content-draft.schema';
|
|
33
|
+
export * from './schemas/export-comments-job.schema';
|
package/dist/index.js
CHANGED
|
@@ -18,6 +18,7 @@ exports.NoteMentionSchema = exports.NoteMention = exports.NoteSchema = exports.N
|
|
|
18
18
|
__exportStar(require("./schemas/action.schema"), exports);
|
|
19
19
|
__exportStar(require("./schemas/client.schema"), exports);
|
|
20
20
|
__exportStar(require("./schemas/content.schema"), exports);
|
|
21
|
+
__exportStar(require("./schemas/comment.schema"), exports);
|
|
21
22
|
__exportStar(require("./schemas/influencer.schema"), exports);
|
|
22
23
|
__exportStar(require("./schemas/supplier.schema"), exports);
|
|
23
24
|
__exportStar(require("./schemas/campaign.schema"), exports);
|
|
@@ -48,3 +49,6 @@ Object.defineProperty(exports, "Note", { enumerable: true, get: function () { re
|
|
|
48
49
|
Object.defineProperty(exports, "NoteSchema", { enumerable: true, get: function () { return note_schema_1.NoteSchema; } });
|
|
49
50
|
Object.defineProperty(exports, "NoteMention", { enumerable: true, get: function () { return note_schema_1.NoteMention; } });
|
|
50
51
|
Object.defineProperty(exports, "NoteMentionSchema", { enumerable: true, get: function () { return note_schema_1.NoteMentionSchema; } });
|
|
52
|
+
__exportStar(require("./schemas/content-capture-process.schema"), exports);
|
|
53
|
+
__exportStar(require("./schemas/content-draft.schema"), exports);
|
|
54
|
+
__exportStar(require("./schemas/export-comments-job.schema"), exports);
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/// <reference types="mongoose/types/aggregate" />
|
|
2
|
+
/// <reference types="mongoose/types/callback" />
|
|
3
|
+
/// <reference types="mongoose/types/collection" />
|
|
4
|
+
/// <reference types="mongoose/types/connection" />
|
|
5
|
+
/// <reference types="mongoose/types/cursor" />
|
|
6
|
+
/// <reference types="mongoose/types/document" />
|
|
7
|
+
/// <reference types="mongoose/types/error" />
|
|
8
|
+
/// <reference types="mongoose/types/expressions" />
|
|
9
|
+
/// <reference types="mongoose/types/helpers" />
|
|
10
|
+
/// <reference types="mongoose/types/middlewares" />
|
|
11
|
+
/// <reference types="mongoose/types/indexes" />
|
|
12
|
+
/// <reference types="mongoose/types/models" />
|
|
13
|
+
/// <reference types="mongoose/types/mongooseoptions" />
|
|
14
|
+
/// <reference types="mongoose/types/pipelinestage" />
|
|
15
|
+
/// <reference types="mongoose/types/populate" />
|
|
16
|
+
/// <reference types="mongoose/types/query" />
|
|
17
|
+
/// <reference types="mongoose/types/schemaoptions" />
|
|
18
|
+
/// <reference types="mongoose/types/session" />
|
|
19
|
+
/// <reference types="mongoose/types/types" />
|
|
20
|
+
/// <reference types="mongoose/types/utility" />
|
|
21
|
+
/// <reference types="mongoose/types/validation" />
|
|
22
|
+
/// <reference types="mongoose/types/virtuals" />
|
|
23
|
+
/// <reference types="mongoose/types/schematypes" />
|
|
24
|
+
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
+
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
26
|
+
import { HydratedDocument, Schema as MongooseSchema, Types } from 'mongoose';
|
|
27
|
+
import { Content } from './content.schema';
|
|
28
|
+
import { Action } from './action.schema';
|
|
29
|
+
export type CommentDocument = HydratedDocument<Comment>;
|
|
30
|
+
export declare class Comment {
|
|
31
|
+
_id?: Types.ObjectId;
|
|
32
|
+
content: Types.ObjectId | Content;
|
|
33
|
+
action: Types.ObjectId | Action;
|
|
34
|
+
externalId: string;
|
|
35
|
+
author: string;
|
|
36
|
+
authorProfileUrl?: string | null;
|
|
37
|
+
authorThumbnailUrl?: string | null;
|
|
38
|
+
text: string;
|
|
39
|
+
url?: string | null;
|
|
40
|
+
postedAt: Date;
|
|
41
|
+
likeCount?: number;
|
|
42
|
+
parent?: Types.ObjectId | Comment | null;
|
|
43
|
+
target?: ('brand' | 'influencer' | 'content' | 'emoji' | 'spam')[];
|
|
44
|
+
polarity?: 'positive' | 'negative' | 'neutral' | null;
|
|
45
|
+
funnel?: 'awareness' | 'consideration' | 'conversion' | null;
|
|
46
|
+
isEmojiOnly?: boolean;
|
|
47
|
+
isSpam?: boolean;
|
|
48
|
+
createdAt?: Date;
|
|
49
|
+
updatedAt?: Date;
|
|
50
|
+
}
|
|
51
|
+
export declare const CommentSchema: MongooseSchema<Comment, import("mongoose").Model<Comment, any, any, any, import("mongoose").Document<unknown, any, Comment, any, {}> & Comment & Required<{
|
|
52
|
+
_id: Types.ObjectId;
|
|
53
|
+
}> & {
|
|
54
|
+
__v: number;
|
|
55
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Comment, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Comment>, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").FlatRecord<Comment> & Required<{
|
|
56
|
+
_id: Types.ObjectId;
|
|
57
|
+
}> & {
|
|
58
|
+
__v: number;
|
|
59
|
+
}>;
|
|
60
|
+
export declare const CommentModel: import("mongoose").Model<Comment, {}, {}, {}, import("mongoose").Document<unknown, {}, Comment, {}, import("mongoose").DefaultSchemaOptions> & Comment & Required<{
|
|
61
|
+
_id: Types.ObjectId;
|
|
62
|
+
}> & {
|
|
63
|
+
__v: number;
|
|
64
|
+
}, MongooseSchema<Comment, import("mongoose").Model<Comment, any, any, any, import("mongoose").Document<unknown, any, Comment, any, {}> & Comment & Required<{
|
|
65
|
+
_id: Types.ObjectId;
|
|
66
|
+
}> & {
|
|
67
|
+
__v: number;
|
|
68
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Comment, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Comment>, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").FlatRecord<Comment> & Required<{
|
|
69
|
+
_id: Types.ObjectId;
|
|
70
|
+
}> & {
|
|
71
|
+
__v: number;
|
|
72
|
+
}>>;
|
|
@@ -0,0 +1,117 @@
|
|
|
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.CommentModel = exports.CommentSchema = exports.Comment = void 0;
|
|
13
|
+
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
|
+
const mongoose_2 = require("mongoose");
|
|
15
|
+
let Comment = class Comment {
|
|
16
|
+
};
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId, auto: true, required: false }),
|
|
19
|
+
__metadata("design:type", mongoose_2.Types.ObjectId)
|
|
20
|
+
], Comment.prototype, "_id", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId, ref: 'Content', required: true }),
|
|
23
|
+
__metadata("design:type", Object)
|
|
24
|
+
], Comment.prototype, "content", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId, ref: 'Action', required: true }),
|
|
27
|
+
__metadata("design:type", Object)
|
|
28
|
+
], Comment.prototype, "action", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, mongoose_1.Prop)({ type: String, required: true }),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], Comment.prototype, "externalId", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, mongoose_1.Prop)({ type: String, required: true }),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], Comment.prototype, "author", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, mongoose_1.Prop)({ type: String, required: false, default: null }),
|
|
39
|
+
__metadata("design:type", Object)
|
|
40
|
+
], Comment.prototype, "authorProfileUrl", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, mongoose_1.Prop)({ type: String, required: false, default: null }),
|
|
43
|
+
__metadata("design:type", Object)
|
|
44
|
+
], Comment.prototype, "authorThumbnailUrl", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, mongoose_1.Prop)({ type: String, required: true }),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], Comment.prototype, "text", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, mongoose_1.Prop)({ type: String, required: false, default: null }),
|
|
51
|
+
__metadata("design:type", Object)
|
|
52
|
+
], Comment.prototype, "url", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, mongoose_1.Prop)({ type: Date, required: true }),
|
|
55
|
+
__metadata("design:type", Date)
|
|
56
|
+
], Comment.prototype, "postedAt", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, mongoose_1.Prop)({ type: Number, required: false, default: 0 }),
|
|
59
|
+
__metadata("design:type", Number)
|
|
60
|
+
], Comment.prototype, "likeCount", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId, ref: 'Comment', required: false, default: null }),
|
|
63
|
+
__metadata("design:type", Object)
|
|
64
|
+
], Comment.prototype, "parent", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, mongoose_1.Prop)({
|
|
67
|
+
type: [String],
|
|
68
|
+
enum: ['brand', 'influencer', 'content', 'emoji', 'spam'],
|
|
69
|
+
required: false,
|
|
70
|
+
default: [],
|
|
71
|
+
}),
|
|
72
|
+
__metadata("design:type", Array)
|
|
73
|
+
], Comment.prototype, "target", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
(0, mongoose_1.Prop)({
|
|
76
|
+
type: String,
|
|
77
|
+
enum: ['positive', 'negative', 'neutral'],
|
|
78
|
+
required: false,
|
|
79
|
+
default: null,
|
|
80
|
+
}),
|
|
81
|
+
__metadata("design:type", Object)
|
|
82
|
+
], Comment.prototype, "polarity", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, mongoose_1.Prop)({
|
|
85
|
+
type: String,
|
|
86
|
+
enum: ['awareness', 'consideration', 'conversion'],
|
|
87
|
+
required: false,
|
|
88
|
+
default: null,
|
|
89
|
+
}),
|
|
90
|
+
__metadata("design:type", Object)
|
|
91
|
+
], Comment.prototype, "funnel", void 0);
|
|
92
|
+
__decorate([
|
|
93
|
+
(0, mongoose_1.Prop)({ type: Boolean, required: false, default: false }),
|
|
94
|
+
__metadata("design:type", Boolean)
|
|
95
|
+
], Comment.prototype, "isEmojiOnly", void 0);
|
|
96
|
+
__decorate([
|
|
97
|
+
(0, mongoose_1.Prop)({ type: Boolean, required: false, default: false }),
|
|
98
|
+
__metadata("design:type", Boolean)
|
|
99
|
+
], Comment.prototype, "isSpam", void 0);
|
|
100
|
+
__decorate([
|
|
101
|
+
(0, mongoose_1.Prop)({ default: Date.now, required: false }),
|
|
102
|
+
__metadata("design:type", Date)
|
|
103
|
+
], Comment.prototype, "createdAt", void 0);
|
|
104
|
+
__decorate([
|
|
105
|
+
(0, mongoose_1.Prop)({ default: Date.now, required: false }),
|
|
106
|
+
__metadata("design:type", Date)
|
|
107
|
+
], Comment.prototype, "updatedAt", void 0);
|
|
108
|
+
Comment = __decorate([
|
|
109
|
+
(0, mongoose_1.Schema)({ timestamps: true })
|
|
110
|
+
], Comment);
|
|
111
|
+
exports.Comment = Comment;
|
|
112
|
+
exports.CommentSchema = mongoose_1.SchemaFactory.createForClass(Comment);
|
|
113
|
+
exports.CommentSchema.index({ content: 1, externalId: 1 }, { unique: true });
|
|
114
|
+
exports.CommentSchema.index({ action: 1, funnel: 1 });
|
|
115
|
+
exports.CommentSchema.index({ action: 1, target: 1 });
|
|
116
|
+
exports.CommentSchema.index({ content: 1, parent: 1 });
|
|
117
|
+
exports.CommentModel = (0, mongoose_2.model)('Comment', exports.CommentSchema);
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
/// <reference types="mongoose/types/aggregate" />
|
|
2
|
+
/// <reference types="mongoose/types/callback" />
|
|
3
|
+
/// <reference types="mongoose/types/collection" />
|
|
4
|
+
/// <reference types="mongoose/types/connection" />
|
|
5
|
+
/// <reference types="mongoose/types/cursor" />
|
|
6
|
+
/// <reference types="mongoose/types/document" />
|
|
7
|
+
/// <reference types="mongoose/types/error" />
|
|
8
|
+
/// <reference types="mongoose/types/expressions" />
|
|
9
|
+
/// <reference types="mongoose/types/helpers" />
|
|
10
|
+
/// <reference types="mongoose/types/middlewares" />
|
|
11
|
+
/// <reference types="mongoose/types/indexes" />
|
|
12
|
+
/// <reference types="mongoose/types/models" />
|
|
13
|
+
/// <reference types="mongoose/types/mongooseoptions" />
|
|
14
|
+
/// <reference types="mongoose/types/pipelinestage" />
|
|
15
|
+
/// <reference types="mongoose/types/populate" />
|
|
16
|
+
/// <reference types="mongoose/types/query" />
|
|
17
|
+
/// <reference types="mongoose/types/schemaoptions" />
|
|
18
|
+
/// <reference types="mongoose/types/session" />
|
|
19
|
+
/// <reference types="mongoose/types/types" />
|
|
20
|
+
/// <reference types="mongoose/types/utility" />
|
|
21
|
+
/// <reference types="mongoose/types/validation" />
|
|
22
|
+
/// <reference types="mongoose/types/virtuals" />
|
|
23
|
+
/// <reference types="mongoose/types/schematypes" />
|
|
24
|
+
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
+
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
26
|
+
import { HydratedDocument, Schema as MongooseSchema, Types } from 'mongoose';
|
|
27
|
+
import { Action } from './action.schema';
|
|
28
|
+
export type ContentCaptureProcessDocument = HydratedDocument<ContentCaptureProcess>;
|
|
29
|
+
export declare class ContentCaptureProcessMetrics {
|
|
30
|
+
impressionCount?: number | null;
|
|
31
|
+
reachCount?: number | null;
|
|
32
|
+
engagementCount?: number | null;
|
|
33
|
+
engagementRate?: number | null;
|
|
34
|
+
sentimentPositive?: number | null;
|
|
35
|
+
sentimentNegative?: number | null;
|
|
36
|
+
sentimentNeutral?: number | null;
|
|
37
|
+
emv?: number | null;
|
|
38
|
+
}
|
|
39
|
+
export declare const ContentCaptureProcessMetricsSchema: MongooseSchema<ContentCaptureProcessMetrics, import("mongoose").Model<ContentCaptureProcessMetrics, any, any, any, import("mongoose").Document<unknown, any, ContentCaptureProcessMetrics, any, {}> & ContentCaptureProcessMetrics & {
|
|
40
|
+
_id: Types.ObjectId;
|
|
41
|
+
} & {
|
|
42
|
+
__v: number;
|
|
43
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, ContentCaptureProcessMetrics, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<ContentCaptureProcessMetrics>, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").FlatRecord<ContentCaptureProcessMetrics> & {
|
|
44
|
+
_id: Types.ObjectId;
|
|
45
|
+
} & {
|
|
46
|
+
__v: number;
|
|
47
|
+
}>;
|
|
48
|
+
export declare class ContentCaptureProcessInfluencer {
|
|
49
|
+
username?: string;
|
|
50
|
+
displayName?: string;
|
|
51
|
+
platform?: string;
|
|
52
|
+
}
|
|
53
|
+
export declare const ContentCaptureProcessInfluencerSchema: MongooseSchema<ContentCaptureProcessInfluencer, import("mongoose").Model<ContentCaptureProcessInfluencer, any, any, any, import("mongoose").Document<unknown, any, ContentCaptureProcessInfluencer, any, {}> & ContentCaptureProcessInfluencer & {
|
|
54
|
+
_id: Types.ObjectId;
|
|
55
|
+
} & {
|
|
56
|
+
__v: number;
|
|
57
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, ContentCaptureProcessInfluencer, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<ContentCaptureProcessInfluencer>, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").FlatRecord<ContentCaptureProcessInfluencer> & {
|
|
58
|
+
_id: Types.ObjectId;
|
|
59
|
+
} & {
|
|
60
|
+
__v: number;
|
|
61
|
+
}>;
|
|
62
|
+
export declare class ContentCaptureProcessCommentCaptureStatus {
|
|
63
|
+
status: 'captured' | 'skipped_cooldown' | 'skipped_network' | 'out_of_scope' | 'failed';
|
|
64
|
+
commentsCaptured?: number;
|
|
65
|
+
error?: string;
|
|
66
|
+
}
|
|
67
|
+
export declare const ContentCaptureProcessCommentCaptureStatusSchema: MongooseSchema<ContentCaptureProcessCommentCaptureStatus, import("mongoose").Model<ContentCaptureProcessCommentCaptureStatus, any, any, any, import("mongoose").Document<unknown, any, ContentCaptureProcessCommentCaptureStatus, any, {}> & ContentCaptureProcessCommentCaptureStatus & {
|
|
68
|
+
_id: Types.ObjectId;
|
|
69
|
+
} & {
|
|
70
|
+
__v: number;
|
|
71
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, ContentCaptureProcessCommentCaptureStatus, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<ContentCaptureProcessCommentCaptureStatus>, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").FlatRecord<ContentCaptureProcessCommentCaptureStatus> & {
|
|
72
|
+
_id: Types.ObjectId;
|
|
73
|
+
} & {
|
|
74
|
+
__v: number;
|
|
75
|
+
}>;
|
|
76
|
+
export declare class ContentCaptureProcessItem {
|
|
77
|
+
primetagId?: string;
|
|
78
|
+
contentId?: Types.ObjectId;
|
|
79
|
+
link?: string;
|
|
80
|
+
type?: string;
|
|
81
|
+
socialnetwork?: string;
|
|
82
|
+
status?: 'created' | 'updated';
|
|
83
|
+
metrics?: ContentCaptureProcessMetrics;
|
|
84
|
+
previousMetrics?: ContentCaptureProcessMetrics;
|
|
85
|
+
influencer?: ContentCaptureProcessInfluencer;
|
|
86
|
+
commentCapture?: ContentCaptureProcessCommentCaptureStatus;
|
|
87
|
+
}
|
|
88
|
+
export declare const ContentCaptureProcessItemSchema: MongooseSchema<ContentCaptureProcessItem, import("mongoose").Model<ContentCaptureProcessItem, any, any, any, import("mongoose").Document<unknown, any, ContentCaptureProcessItem, any, {}> & ContentCaptureProcessItem & {
|
|
89
|
+
_id: Types.ObjectId;
|
|
90
|
+
} & {
|
|
91
|
+
__v: number;
|
|
92
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, ContentCaptureProcessItem, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<ContentCaptureProcessItem>, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").FlatRecord<ContentCaptureProcessItem> & {
|
|
93
|
+
_id: Types.ObjectId;
|
|
94
|
+
} & {
|
|
95
|
+
__v: number;
|
|
96
|
+
}>;
|
|
97
|
+
export declare class ContentCaptureProcessResponsibleContact {
|
|
98
|
+
name?: string;
|
|
99
|
+
team?: string;
|
|
100
|
+
email?: string;
|
|
101
|
+
}
|
|
102
|
+
export declare const ContentCaptureProcessResponsibleContactSchema: MongooseSchema<ContentCaptureProcessResponsibleContact, import("mongoose").Model<ContentCaptureProcessResponsibleContact, any, any, any, import("mongoose").Document<unknown, any, ContentCaptureProcessResponsibleContact, any, {}> & ContentCaptureProcessResponsibleContact & {
|
|
103
|
+
_id: Types.ObjectId;
|
|
104
|
+
} & {
|
|
105
|
+
__v: number;
|
|
106
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, ContentCaptureProcessResponsibleContact, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<ContentCaptureProcessResponsibleContact>, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").FlatRecord<ContentCaptureProcessResponsibleContact> & {
|
|
107
|
+
_id: Types.ObjectId;
|
|
108
|
+
} & {
|
|
109
|
+
__v: number;
|
|
110
|
+
}>;
|
|
111
|
+
export declare class ContentCaptureProcessResponsibles {
|
|
112
|
+
service?: ContentCaptureProcessResponsibleContact;
|
|
113
|
+
}
|
|
114
|
+
export declare const ContentCaptureProcessResponsiblesSchema: MongooseSchema<ContentCaptureProcessResponsibles, import("mongoose").Model<ContentCaptureProcessResponsibles, any, any, any, import("mongoose").Document<unknown, any, ContentCaptureProcessResponsibles, any, {}> & ContentCaptureProcessResponsibles & {
|
|
115
|
+
_id: Types.ObjectId;
|
|
116
|
+
} & {
|
|
117
|
+
__v: number;
|
|
118
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, ContentCaptureProcessResponsibles, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<ContentCaptureProcessResponsibles>, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").FlatRecord<ContentCaptureProcessResponsibles> & {
|
|
119
|
+
_id: Types.ObjectId;
|
|
120
|
+
} & {
|
|
121
|
+
__v: number;
|
|
122
|
+
}>;
|
|
123
|
+
export declare class ContentCaptureProcess {
|
|
124
|
+
_id?: Types.ObjectId;
|
|
125
|
+
actionId: Types.ObjectId | Action;
|
|
126
|
+
runId: string;
|
|
127
|
+
actionTitle: string;
|
|
128
|
+
primetagId?: string;
|
|
129
|
+
responsibles?: ContentCaptureProcessResponsibles;
|
|
130
|
+
status: 'fetching' | 'awaiting_comments' | 'reported' | 'failed';
|
|
131
|
+
publicationsFetched: number;
|
|
132
|
+
contentsMapped: number;
|
|
133
|
+
contentsCreated: number;
|
|
134
|
+
contentsUpdated: number;
|
|
135
|
+
expectedCommentCaptureCount: number;
|
|
136
|
+
processedContentIds: Types.ObjectId[];
|
|
137
|
+
contents: ContentCaptureProcessItem[];
|
|
138
|
+
error?: string;
|
|
139
|
+
startedAt: Date;
|
|
140
|
+
fetchFinishedAt?: Date;
|
|
141
|
+
commentsFinishedAt?: Date;
|
|
142
|
+
reportedAt?: Date;
|
|
143
|
+
createdAt?: Date;
|
|
144
|
+
updatedAt?: Date;
|
|
145
|
+
}
|
|
146
|
+
export declare const ContentCaptureProcessSchema: MongooseSchema<ContentCaptureProcess, import("mongoose").Model<ContentCaptureProcess, any, any, any, import("mongoose").Document<unknown, any, ContentCaptureProcess, any, {}> & ContentCaptureProcess & Required<{
|
|
147
|
+
_id: Types.ObjectId;
|
|
148
|
+
}> & {
|
|
149
|
+
__v: number;
|
|
150
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, ContentCaptureProcess, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<ContentCaptureProcess>, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").FlatRecord<ContentCaptureProcess> & Required<{
|
|
151
|
+
_id: Types.ObjectId;
|
|
152
|
+
}> & {
|
|
153
|
+
__v: number;
|
|
154
|
+
}>;
|
|
155
|
+
export declare const ContentCaptureProcessModel: import("mongoose").Model<ContentCaptureProcess, {}, {}, {}, import("mongoose").Document<unknown, {}, ContentCaptureProcess, {}, import("mongoose").DefaultSchemaOptions> & ContentCaptureProcess & Required<{
|
|
156
|
+
_id: Types.ObjectId;
|
|
157
|
+
}> & {
|
|
158
|
+
__v: number;
|
|
159
|
+
}, MongooseSchema<ContentCaptureProcess, import("mongoose").Model<ContentCaptureProcess, any, any, any, import("mongoose").Document<unknown, any, ContentCaptureProcess, any, {}> & ContentCaptureProcess & Required<{
|
|
160
|
+
_id: Types.ObjectId;
|
|
161
|
+
}> & {
|
|
162
|
+
__v: number;
|
|
163
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, ContentCaptureProcess, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<ContentCaptureProcess>, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").FlatRecord<ContentCaptureProcess> & Required<{
|
|
164
|
+
_id: Types.ObjectId;
|
|
165
|
+
}> & {
|
|
166
|
+
__v: number;
|
|
167
|
+
}>>;
|
|
@@ -0,0 +1,271 @@
|
|
|
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.ContentCaptureProcessModel = exports.ContentCaptureProcessSchema = exports.ContentCaptureProcess = exports.ContentCaptureProcessResponsiblesSchema = exports.ContentCaptureProcessResponsibles = exports.ContentCaptureProcessResponsibleContactSchema = exports.ContentCaptureProcessResponsibleContact = exports.ContentCaptureProcessItemSchema = exports.ContentCaptureProcessItem = exports.ContentCaptureProcessCommentCaptureStatusSchema = exports.ContentCaptureProcessCommentCaptureStatus = exports.ContentCaptureProcessInfluencerSchema = exports.ContentCaptureProcessInfluencer = exports.ContentCaptureProcessMetricsSchema = exports.ContentCaptureProcessMetrics = void 0;
|
|
13
|
+
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
|
+
const mongoose_2 = require("mongoose");
|
|
15
|
+
let ContentCaptureProcessMetrics = class ContentCaptureProcessMetrics {
|
|
16
|
+
};
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, mongoose_1.Prop)({ type: Number, required: false, default: null }),
|
|
19
|
+
__metadata("design:type", Object)
|
|
20
|
+
], ContentCaptureProcessMetrics.prototype, "impressionCount", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, mongoose_1.Prop)({ type: Number, required: false, default: null }),
|
|
23
|
+
__metadata("design:type", Object)
|
|
24
|
+
], ContentCaptureProcessMetrics.prototype, "reachCount", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, mongoose_1.Prop)({ type: Number, required: false, default: null }),
|
|
27
|
+
__metadata("design:type", Object)
|
|
28
|
+
], ContentCaptureProcessMetrics.prototype, "engagementCount", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, mongoose_1.Prop)({ type: Number, required: false, default: null }),
|
|
31
|
+
__metadata("design:type", Object)
|
|
32
|
+
], ContentCaptureProcessMetrics.prototype, "engagementRate", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, mongoose_1.Prop)({ type: Number, required: false, default: null }),
|
|
35
|
+
__metadata("design:type", Object)
|
|
36
|
+
], ContentCaptureProcessMetrics.prototype, "sentimentPositive", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, mongoose_1.Prop)({ type: Number, required: false, default: null }),
|
|
39
|
+
__metadata("design:type", Object)
|
|
40
|
+
], ContentCaptureProcessMetrics.prototype, "sentimentNegative", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, mongoose_1.Prop)({ type: Number, required: false, default: null }),
|
|
43
|
+
__metadata("design:type", Object)
|
|
44
|
+
], ContentCaptureProcessMetrics.prototype, "sentimentNeutral", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, mongoose_1.Prop)({ type: Number, required: false, default: null }),
|
|
47
|
+
__metadata("design:type", Object)
|
|
48
|
+
], ContentCaptureProcessMetrics.prototype, "emv", void 0);
|
|
49
|
+
ContentCaptureProcessMetrics = __decorate([
|
|
50
|
+
(0, mongoose_1.Schema)({ _id: false })
|
|
51
|
+
], ContentCaptureProcessMetrics);
|
|
52
|
+
exports.ContentCaptureProcessMetrics = ContentCaptureProcessMetrics;
|
|
53
|
+
exports.ContentCaptureProcessMetricsSchema = mongoose_1.SchemaFactory.createForClass(ContentCaptureProcessMetrics);
|
|
54
|
+
let ContentCaptureProcessInfluencer = class ContentCaptureProcessInfluencer {
|
|
55
|
+
};
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, mongoose_1.Prop)({ type: String, required: false }),
|
|
58
|
+
__metadata("design:type", String)
|
|
59
|
+
], ContentCaptureProcessInfluencer.prototype, "username", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, mongoose_1.Prop)({ type: String, required: false }),
|
|
62
|
+
__metadata("design:type", String)
|
|
63
|
+
], ContentCaptureProcessInfluencer.prototype, "displayName", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, mongoose_1.Prop)({ type: String, required: false }),
|
|
66
|
+
__metadata("design:type", String)
|
|
67
|
+
], ContentCaptureProcessInfluencer.prototype, "platform", void 0);
|
|
68
|
+
ContentCaptureProcessInfluencer = __decorate([
|
|
69
|
+
(0, mongoose_1.Schema)({ _id: false })
|
|
70
|
+
], ContentCaptureProcessInfluencer);
|
|
71
|
+
exports.ContentCaptureProcessInfluencer = ContentCaptureProcessInfluencer;
|
|
72
|
+
exports.ContentCaptureProcessInfluencerSchema = mongoose_1.SchemaFactory.createForClass(ContentCaptureProcessInfluencer);
|
|
73
|
+
let ContentCaptureProcessCommentCaptureStatus = class ContentCaptureProcessCommentCaptureStatus {
|
|
74
|
+
};
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, mongoose_1.Prop)({
|
|
77
|
+
type: String,
|
|
78
|
+
enum: ['captured', 'skipped_cooldown', 'skipped_network', 'out_of_scope', 'failed'],
|
|
79
|
+
required: true,
|
|
80
|
+
}),
|
|
81
|
+
__metadata("design:type", String)
|
|
82
|
+
], ContentCaptureProcessCommentCaptureStatus.prototype, "status", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, mongoose_1.Prop)({ type: Number, required: false }),
|
|
85
|
+
__metadata("design:type", Number)
|
|
86
|
+
], ContentCaptureProcessCommentCaptureStatus.prototype, "commentsCaptured", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
(0, mongoose_1.Prop)({ type: String, required: false }),
|
|
89
|
+
__metadata("design:type", String)
|
|
90
|
+
], ContentCaptureProcessCommentCaptureStatus.prototype, "error", void 0);
|
|
91
|
+
ContentCaptureProcessCommentCaptureStatus = __decorate([
|
|
92
|
+
(0, mongoose_1.Schema)({ _id: false })
|
|
93
|
+
], ContentCaptureProcessCommentCaptureStatus);
|
|
94
|
+
exports.ContentCaptureProcessCommentCaptureStatus = ContentCaptureProcessCommentCaptureStatus;
|
|
95
|
+
exports.ContentCaptureProcessCommentCaptureStatusSchema = mongoose_1.SchemaFactory.createForClass(ContentCaptureProcessCommentCaptureStatus);
|
|
96
|
+
let ContentCaptureProcessItem = class ContentCaptureProcessItem {
|
|
97
|
+
};
|
|
98
|
+
__decorate([
|
|
99
|
+
(0, mongoose_1.Prop)({ type: String, required: false }),
|
|
100
|
+
__metadata("design:type", String)
|
|
101
|
+
], ContentCaptureProcessItem.prototype, "primetagId", void 0);
|
|
102
|
+
__decorate([
|
|
103
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId, required: false }),
|
|
104
|
+
__metadata("design:type", mongoose_2.Types.ObjectId)
|
|
105
|
+
], ContentCaptureProcessItem.prototype, "contentId", void 0);
|
|
106
|
+
__decorate([
|
|
107
|
+
(0, mongoose_1.Prop)({ type: String, required: false }),
|
|
108
|
+
__metadata("design:type", String)
|
|
109
|
+
], ContentCaptureProcessItem.prototype, "link", void 0);
|
|
110
|
+
__decorate([
|
|
111
|
+
(0, mongoose_1.Prop)({ type: String, required: false }),
|
|
112
|
+
__metadata("design:type", String)
|
|
113
|
+
], ContentCaptureProcessItem.prototype, "type", void 0);
|
|
114
|
+
__decorate([
|
|
115
|
+
(0, mongoose_1.Prop)({ type: String, required: false }),
|
|
116
|
+
__metadata("design:type", String)
|
|
117
|
+
], ContentCaptureProcessItem.prototype, "socialnetwork", void 0);
|
|
118
|
+
__decorate([
|
|
119
|
+
(0, mongoose_1.Prop)({ type: String, enum: ['created', 'updated'], required: false }),
|
|
120
|
+
__metadata("design:type", String)
|
|
121
|
+
], ContentCaptureProcessItem.prototype, "status", void 0);
|
|
122
|
+
__decorate([
|
|
123
|
+
(0, mongoose_1.Prop)({ type: exports.ContentCaptureProcessMetricsSchema, required: false }),
|
|
124
|
+
__metadata("design:type", ContentCaptureProcessMetrics)
|
|
125
|
+
], ContentCaptureProcessItem.prototype, "metrics", void 0);
|
|
126
|
+
__decorate([
|
|
127
|
+
(0, mongoose_1.Prop)({ type: exports.ContentCaptureProcessMetricsSchema, required: false }),
|
|
128
|
+
__metadata("design:type", ContentCaptureProcessMetrics)
|
|
129
|
+
], ContentCaptureProcessItem.prototype, "previousMetrics", void 0);
|
|
130
|
+
__decorate([
|
|
131
|
+
(0, mongoose_1.Prop)({ type: exports.ContentCaptureProcessInfluencerSchema, required: false }),
|
|
132
|
+
__metadata("design:type", ContentCaptureProcessInfluencer)
|
|
133
|
+
], ContentCaptureProcessItem.prototype, "influencer", void 0);
|
|
134
|
+
__decorate([
|
|
135
|
+
(0, mongoose_1.Prop)({ type: exports.ContentCaptureProcessCommentCaptureStatusSchema, required: false }),
|
|
136
|
+
__metadata("design:type", ContentCaptureProcessCommentCaptureStatus)
|
|
137
|
+
], ContentCaptureProcessItem.prototype, "commentCapture", void 0);
|
|
138
|
+
ContentCaptureProcessItem = __decorate([
|
|
139
|
+
(0, mongoose_1.Schema)({ _id: false })
|
|
140
|
+
], ContentCaptureProcessItem);
|
|
141
|
+
exports.ContentCaptureProcessItem = ContentCaptureProcessItem;
|
|
142
|
+
exports.ContentCaptureProcessItemSchema = mongoose_1.SchemaFactory.createForClass(ContentCaptureProcessItem);
|
|
143
|
+
let ContentCaptureProcessResponsibleContact = class ContentCaptureProcessResponsibleContact {
|
|
144
|
+
};
|
|
145
|
+
__decorate([
|
|
146
|
+
(0, mongoose_1.Prop)({ type: String, required: false }),
|
|
147
|
+
__metadata("design:type", String)
|
|
148
|
+
], ContentCaptureProcessResponsibleContact.prototype, "name", void 0);
|
|
149
|
+
__decorate([
|
|
150
|
+
(0, mongoose_1.Prop)({ type: String, required: false }),
|
|
151
|
+
__metadata("design:type", String)
|
|
152
|
+
], ContentCaptureProcessResponsibleContact.prototype, "team", void 0);
|
|
153
|
+
__decorate([
|
|
154
|
+
(0, mongoose_1.Prop)({ type: String, required: false }),
|
|
155
|
+
__metadata("design:type", String)
|
|
156
|
+
], ContentCaptureProcessResponsibleContact.prototype, "email", void 0);
|
|
157
|
+
ContentCaptureProcessResponsibleContact = __decorate([
|
|
158
|
+
(0, mongoose_1.Schema)({ _id: false })
|
|
159
|
+
], ContentCaptureProcessResponsibleContact);
|
|
160
|
+
exports.ContentCaptureProcessResponsibleContact = ContentCaptureProcessResponsibleContact;
|
|
161
|
+
exports.ContentCaptureProcessResponsibleContactSchema = mongoose_1.SchemaFactory.createForClass(ContentCaptureProcessResponsibleContact);
|
|
162
|
+
let ContentCaptureProcessResponsibles = class ContentCaptureProcessResponsibles {
|
|
163
|
+
};
|
|
164
|
+
__decorate([
|
|
165
|
+
(0, mongoose_1.Prop)({ type: exports.ContentCaptureProcessResponsibleContactSchema, required: false }),
|
|
166
|
+
__metadata("design:type", ContentCaptureProcessResponsibleContact)
|
|
167
|
+
], ContentCaptureProcessResponsibles.prototype, "service", void 0);
|
|
168
|
+
ContentCaptureProcessResponsibles = __decorate([
|
|
169
|
+
(0, mongoose_1.Schema)({ _id: false })
|
|
170
|
+
], ContentCaptureProcessResponsibles);
|
|
171
|
+
exports.ContentCaptureProcessResponsibles = ContentCaptureProcessResponsibles;
|
|
172
|
+
exports.ContentCaptureProcessResponsiblesSchema = mongoose_1.SchemaFactory.createForClass(ContentCaptureProcessResponsibles);
|
|
173
|
+
let ContentCaptureProcess = class ContentCaptureProcess {
|
|
174
|
+
};
|
|
175
|
+
__decorate([
|
|
176
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId, auto: true, required: false }),
|
|
177
|
+
__metadata("design:type", mongoose_2.Types.ObjectId)
|
|
178
|
+
], ContentCaptureProcess.prototype, "_id", void 0);
|
|
179
|
+
__decorate([
|
|
180
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId, ref: 'Action', required: true }),
|
|
181
|
+
__metadata("design:type", Object)
|
|
182
|
+
], ContentCaptureProcess.prototype, "actionId", void 0);
|
|
183
|
+
__decorate([
|
|
184
|
+
(0, mongoose_1.Prop)({ type: String, required: true }),
|
|
185
|
+
__metadata("design:type", String)
|
|
186
|
+
], ContentCaptureProcess.prototype, "runId", void 0);
|
|
187
|
+
__decorate([
|
|
188
|
+
(0, mongoose_1.Prop)({ type: String, required: true }),
|
|
189
|
+
__metadata("design:type", String)
|
|
190
|
+
], ContentCaptureProcess.prototype, "actionTitle", void 0);
|
|
191
|
+
__decorate([
|
|
192
|
+
(0, mongoose_1.Prop)({ type: String, required: false }),
|
|
193
|
+
__metadata("design:type", String)
|
|
194
|
+
], ContentCaptureProcess.prototype, "primetagId", void 0);
|
|
195
|
+
__decorate([
|
|
196
|
+
(0, mongoose_1.Prop)({ type: exports.ContentCaptureProcessResponsiblesSchema, required: false }),
|
|
197
|
+
__metadata("design:type", ContentCaptureProcessResponsibles)
|
|
198
|
+
], ContentCaptureProcess.prototype, "responsibles", void 0);
|
|
199
|
+
__decorate([
|
|
200
|
+
(0, mongoose_1.Prop)({
|
|
201
|
+
type: String,
|
|
202
|
+
enum: ['fetching', 'awaiting_comments', 'reported', 'failed'],
|
|
203
|
+
required: true,
|
|
204
|
+
default: 'fetching',
|
|
205
|
+
}),
|
|
206
|
+
__metadata("design:type", String)
|
|
207
|
+
], ContentCaptureProcess.prototype, "status", void 0);
|
|
208
|
+
__decorate([
|
|
209
|
+
(0, mongoose_1.Prop)({ type: Number, required: true, default: 0 }),
|
|
210
|
+
__metadata("design:type", Number)
|
|
211
|
+
], ContentCaptureProcess.prototype, "publicationsFetched", void 0);
|
|
212
|
+
__decorate([
|
|
213
|
+
(0, mongoose_1.Prop)({ type: Number, required: true, default: 0 }),
|
|
214
|
+
__metadata("design:type", Number)
|
|
215
|
+
], ContentCaptureProcess.prototype, "contentsMapped", void 0);
|
|
216
|
+
__decorate([
|
|
217
|
+
(0, mongoose_1.Prop)({ type: Number, required: true, default: 0 }),
|
|
218
|
+
__metadata("design:type", Number)
|
|
219
|
+
], ContentCaptureProcess.prototype, "contentsCreated", void 0);
|
|
220
|
+
__decorate([
|
|
221
|
+
(0, mongoose_1.Prop)({ type: Number, required: true, default: 0 }),
|
|
222
|
+
__metadata("design:type", Number)
|
|
223
|
+
], ContentCaptureProcess.prototype, "contentsUpdated", void 0);
|
|
224
|
+
__decorate([
|
|
225
|
+
(0, mongoose_1.Prop)({ type: Number, required: true, default: 0 }),
|
|
226
|
+
__metadata("design:type", Number)
|
|
227
|
+
], ContentCaptureProcess.prototype, "expectedCommentCaptureCount", void 0);
|
|
228
|
+
__decorate([
|
|
229
|
+
(0, mongoose_1.Prop)({ type: [mongoose_2.Schema.Types.ObjectId], required: true, default: [] }),
|
|
230
|
+
__metadata("design:type", Array)
|
|
231
|
+
], ContentCaptureProcess.prototype, "processedContentIds", void 0);
|
|
232
|
+
__decorate([
|
|
233
|
+
(0, mongoose_1.Prop)({ type: [exports.ContentCaptureProcessItemSchema], required: true, default: [] }),
|
|
234
|
+
__metadata("design:type", Array)
|
|
235
|
+
], ContentCaptureProcess.prototype, "contents", void 0);
|
|
236
|
+
__decorate([
|
|
237
|
+
(0, mongoose_1.Prop)({ type: String, required: false }),
|
|
238
|
+
__metadata("design:type", String)
|
|
239
|
+
], ContentCaptureProcess.prototype, "error", void 0);
|
|
240
|
+
__decorate([
|
|
241
|
+
(0, mongoose_1.Prop)({ type: Date, required: true, default: Date.now }),
|
|
242
|
+
__metadata("design:type", Date)
|
|
243
|
+
], ContentCaptureProcess.prototype, "startedAt", void 0);
|
|
244
|
+
__decorate([
|
|
245
|
+
(0, mongoose_1.Prop)({ type: Date, required: false }),
|
|
246
|
+
__metadata("design:type", Date)
|
|
247
|
+
], ContentCaptureProcess.prototype, "fetchFinishedAt", void 0);
|
|
248
|
+
__decorate([
|
|
249
|
+
(0, mongoose_1.Prop)({ type: Date, required: false }),
|
|
250
|
+
__metadata("design:type", Date)
|
|
251
|
+
], ContentCaptureProcess.prototype, "commentsFinishedAt", void 0);
|
|
252
|
+
__decorate([
|
|
253
|
+
(0, mongoose_1.Prop)({ type: Date, required: false }),
|
|
254
|
+
__metadata("design:type", Date)
|
|
255
|
+
], ContentCaptureProcess.prototype, "reportedAt", void 0);
|
|
256
|
+
__decorate([
|
|
257
|
+
(0, mongoose_1.Prop)({ default: Date.now, required: false }),
|
|
258
|
+
__metadata("design:type", Date)
|
|
259
|
+
], ContentCaptureProcess.prototype, "createdAt", void 0);
|
|
260
|
+
__decorate([
|
|
261
|
+
(0, mongoose_1.Prop)({ default: Date.now, required: false }),
|
|
262
|
+
__metadata("design:type", Date)
|
|
263
|
+
], ContentCaptureProcess.prototype, "updatedAt", void 0);
|
|
264
|
+
ContentCaptureProcess = __decorate([
|
|
265
|
+
(0, mongoose_1.Schema)({ collection: 'content-capture-processes', timestamps: true })
|
|
266
|
+
], ContentCaptureProcess);
|
|
267
|
+
exports.ContentCaptureProcess = ContentCaptureProcess;
|
|
268
|
+
exports.ContentCaptureProcessSchema = mongoose_1.SchemaFactory.createForClass(ContentCaptureProcess);
|
|
269
|
+
exports.ContentCaptureProcessSchema.index({ actionId: 1, runId: 1 }, { unique: true });
|
|
270
|
+
exports.ContentCaptureProcessSchema.index({ status: 1 });
|
|
271
|
+
exports.ContentCaptureProcessModel = (0, mongoose_2.model)('ContentCaptureProcess', exports.ContentCaptureProcessSchema);
|